diff --git a/dist/chrome/background.js b/dist/chrome/background.js index 2c64639..0883a42 100644 --- a/dist/chrome/background.js +++ b/dist/chrome/background.js @@ -1,4 +1,4 @@ -(()=>{var _o=Object.defineProperty;var Eo=(e,t)=>{for(var r in t)_o(e,r,{get:t[r],enumerable:!0})};var T={BUILD_TIME:"2023-09-17T09:32:32.000Z",VERSION:"0.9.5",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"0",BETA:"0",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { +(()=>{var _o=Object.defineProperty;var Eo=(e,t)=>{for(var r in t)_o(e,r,{get:t[r],enumerable:!0})};var T={BUILD_TIME:"2023-09-19T07:46:36.000Z",VERSION:"0.9.6",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"0",BETA:"0",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { --immersive-translate-theme-underline-borderColor: #72ece9; --immersive-translate-theme-nativeUnderline-borderColor: #72ece9; --immersive-translate-theme-nativeDashed-borderColor: #72ece9; @@ -4234,13 +4234,13 @@ select.text-label {
-`,PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",OPTIONS_URL:"https://dash.immersivetranslate.com/",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",MOCK:"0",DEBUG:"0",INSTALL_FROM:"chrome_zip"};var Lo=Object.create,Ar=Object.defineProperty,Ro=Object.getOwnPropertyDescriptor,kn=Object.getOwnPropertyNames,Io=Object.getPrototypeOf,Do=Object.prototype.hasOwnProperty,Oo=(e,t)=>function(){return t||(0,e[kn(e)[0]])((t={exports:{}}).exports,t),t.exports},No=(e,t)=>{for(var r in t)Ar(e,r,{get:t[r],enumerable:!0})},Sr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of kn(t))!Do.call(e,a)&&a!==r&&Ar(e,a,{get:()=>t[a],enumerable:!(n=Ro(t,a))||n.enumerable});return e},Uo=(e,t,r)=>(Sr(e,t,"default"),r&&Sr(r,t,"default")),Cn=(e,t,r)=>(r=e!=null?Lo(Io(e)):{},Sr(t||!e||!e.__esModule?Ar(r,"default",{value:e,enumerable:!0}):r,e)),Pn=Oo({"../esmd/npm/webextension-polyfill@0.10.0/node_modules/webextension-polyfill/dist/browser-polyfill.js"(e,t){(function(r,n){if(typeof define=="function"&&define.amd)define("webextension-polyfill",["module"],n);else if(typeof e<"u")n(t);else{var a={exports:{}};n(a),r.browser=a.exports}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:e,function(r){"use strict";if(!globalThis.chrome?.runtime?.id)throw new Error("This script should only be loaded in a browser extension.");if(typeof globalThis.browser>"u"||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){let n="The message port closed before a response was received.",a=o=>{let s={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(Object.keys(s).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class i extends WeakMap{constructor(y,w=void 0){super(w),this.createItem=y}get(y){return this.has(y)||this.set(y,this.createItem(y)),super.get(y)}}let c=S=>S&&typeof S=="object"&&typeof S.then=="function",d=(S,y)=>(...w)=>{o.runtime.lastError?S.reject(new Error(o.runtime.lastError.message)):y.singleCallbackArg||w.length<=1&&y.singleCallbackArg!==!1?S.resolve(w[0]):S.resolve(w)},u=S=>S==1?"argument":"arguments",f=(S,y)=>function(E,...I){if(I.lengthy.maxArgs)throw new Error(`Expected at most ${y.maxArgs} ${u(y.maxArgs)} for ${S}(), got ${I.length}`);return new Promise((A,q)=>{if(y.fallbackToNoCallback)try{E[S](...I,d({resolve:A,reject:q},y))}catch{E[S](...I),y.fallbackToNoCallback=!1,y.noCallback=!0,A()}else y.noCallback?(E[S](...I),A()):E[S](...I,d({resolve:A,reject:q},y))})},_=(S,y,w)=>new Proxy(y,{apply(E,I,A){return w.call(I,S,...A)}}),v=Function.call.bind(Object.prototype.hasOwnProperty),P=(S,y={},w={})=>{let E=Object.create(null),I={has(q,L){return L in S||L in E},get(q,L,Y){if(L in E)return E[L];if(!(L in S))return;let K=S[L];if(typeof K=="function")if(typeof y[L]=="function")K=_(S,S[L],y[L]);else if(v(w,L)){let ye=f(L,w[L]);K=_(S,S[L],ye)}else K=K.bind(S);else if(typeof K=="object"&&K!==null&&(v(y,L)||v(w,L)))K=P(K,y[L],w[L]);else if(v(w,"*"))K=P(K,y[L],w["*"]);else return Object.defineProperty(E,L,{configurable:!0,enumerable:!0,get(){return S[L]},set(ye){S[L]=ye}}),K;return E[L]=K,K},set(q,L,Y,K){return L in E?E[L]=Y:S[L]=Y,!0},defineProperty(q,L,Y){return Reflect.defineProperty(E,L,Y)},deleteProperty(q,L){return Reflect.deleteProperty(E,L)}},A=Object.create(S);return new Proxy(A,I)},ee=S=>({addListener(y,w,...E){y.addListener(S.get(w),...E)},hasListener(y,w){return y.hasListener(S.get(w))},removeListener(y,w){y.removeListener(S.get(w))}}),Z=new i(S=>typeof S!="function"?S:function(w){let E=P(w,{},{getContent:{minArgs:0,maxArgs:0}});S(E)}),m=new i(S=>typeof S!="function"?S:function(w,E,I){let A=!1,q,L=new Promise(X=>{q=function(C){A=!0,X(C)}}),Y;try{Y=S(w,E,q)}catch(X){Y=Promise.reject(X)}let K=Y!==!0&&c(Y);if(Y!==!0&&!K&&!A)return!1;let ye=X=>{X.then(C=>{I(C)},C=>{let W;C&&(C instanceof Error||typeof C.message=="string")?W=C.message:W="An unexpected error occurred",I({__mozWebExtensionPolyfillReject__:!0,message:W})}).catch(C=>{})};return ye(K?Y:L),!0}),ve=({reject:S,resolve:y},w)=>{o.runtime.lastError?o.runtime.lastError.message===n?y():S(new Error(o.runtime.lastError.message)):w&&w.__mozWebExtensionPolyfillReject__?S(new Error(w.message)):y(w)},G=(S,y,w,...E)=>{if(E.lengthy.maxArgs)throw new Error(`Expected at most ${y.maxArgs} ${u(y.maxArgs)} for ${S}(), got ${E.length}`);return new Promise((I,A)=>{let q=ve.bind(null,{resolve:I,reject:A});E.push(q),w.sendMessage(...E)})},te={devtools:{network:{onRequestFinished:ee(Z)}},runtime:{onMessage:ee(m),onMessageExternal:ee(m),sendMessage:G.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:G.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},be={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return s.privacy={network:{"*":be},services:{"*":be},websites:{"*":be}},P(o,te,s)};r.exports=a(chrome)}else r.exports=globalThis.browser})}}),_n={};No(_n,{default:()=>Qt});var Bo=Cn(Pn());Uo(_n,Cn(Pn()));var{default:An,...Fo}=Bo,Qt=An!==void 0?An:Fo;globalThis.immersiveTranslateBrowserAPI=Qt;function Mt(){let e,t="pending",r=new Promise((n,a)=>{e={async resolve(o){await o,t="fulfilled",n(o)},reject(o){t="rejected",a(o)}}});return Object.defineProperty(r,"state",{get:()=>t}),Object.assign(r,e)}function kr(e,t={}){let{signal:r,persistent:n}=t;return r?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((a,o)=>{let s=()=>{clearTimeout(c),o(new DOMException("Delay was aborted.","AbortError"))},c=setTimeout(()=>{r?.removeEventListener("abort",s),a()},e);if(r?.addEventListener("abort",s,{once:!0}),n===!1)try{Deno.unrefTimer(c)}catch(d){if(!(d instanceof ReferenceError))throw d}})}var En=class{#e=0;#t=[];#r=[];#n=Mt();add(t){++this.#e,this.#a(t[Symbol.asyncIterator]())}async#a(t){try{let{value:r,done:n}=await t.next();n?--this.#e:this.#t.push({iterator:t,value:r})}catch(r){this.#r.push(r)}this.#n.resolve()}async*iterate(){for(;this.#e>0;){await this.#n;for(let t=0;tmi,bgBlue:()=>fi,bgBrightBlack:()=>Ti,bgBrightBlue:()=>Ai,bgBrightCyan:()=>Ci,bgBrightGreen:()=>vi,bgBrightMagenta:()=>ki,bgBrightRed:()=>xi,bgBrightWhite:()=>Pi,bgBrightYellow:()=>Si,bgCyan:()=>yi,bgGreen:()=>pi,bgMagenta:()=>bi,bgRed:()=>gi,bgRgb24:()=>Li,bgRgb8:()=>Ei,bgWhite:()=>wi,bgYellow:()=>hi,black:()=>Qo,blue:()=>ei,bold:()=>Wo,brightBlack:()=>Rn,brightBlue:()=>li,brightCyan:()=>ui,brightGreen:()=>ii,brightMagenta:()=>ci,brightRed:()=>oi,brightWhite:()=>di,brightYellow:()=>si,cyan:()=>ri,dim:()=>zo,getColorEnabled:()=>qo,gray:()=>ai,green:()=>Jo,hidden:()=>$o,inverse:()=>Vo,italic:()=>Ho,magenta:()=>ti,red:()=>Zo,reset:()=>Ko,rgb24:()=>Mi,rgb8:()=>_i,setColorEnabled:()=>jo,strikethrough:()=>Yo,stripColor:()=>Ii,underline:()=>Go,white:()=>ni,yellow:()=>Xo});var{Deno:Mn}=globalThis,Ln=typeof Mn?.noColor=="boolean"?Mn.noColor:!0,Cr=!Ln;function jo(e){Ln||(Cr=e)}function qo(){return Cr}function F(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function j(e,t){return Cr?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function Ko(e){return j(e,F([0],0))}function Wo(e){return j(e,F([1],22))}function zo(e){return j(e,F([2],22))}function Ho(e){return j(e,F([3],23))}function Go(e){return j(e,F([4],24))}function Vo(e){return j(e,F([7],27))}function $o(e){return j(e,F([8],28))}function Yo(e){return j(e,F([9],29))}function Qo(e){return j(e,F([30],39))}function Zo(e){return j(e,F([31],39))}function Jo(e){return j(e,F([32],39))}function Xo(e){return j(e,F([33],39))}function ei(e){return j(e,F([34],39))}function ti(e){return j(e,F([35],39))}function ri(e){return j(e,F([36],39))}function ni(e){return j(e,F([37],39))}function ai(e){return Rn(e)}function Rn(e){return j(e,F([90],39))}function oi(e){return j(e,F([91],39))}function ii(e){return j(e,F([92],39))}function si(e){return j(e,F([93],39))}function li(e){return j(e,F([94],39))}function ci(e){return j(e,F([95],39))}function ui(e){return j(e,F([96],39))}function di(e){return j(e,F([97],39))}function mi(e){return j(e,F([40],49))}function gi(e){return j(e,F([41],49))}function pi(e){return j(e,F([42],49))}function hi(e){return j(e,F([43],49))}function fi(e){return j(e,F([44],49))}function bi(e){return j(e,F([45],49))}function yi(e){return j(e,F([46],49))}function wi(e){return j(e,F([47],49))}function Ti(e){return j(e,F([100],49))}function xi(e){return j(e,F([101],49))}function vi(e){return j(e,F([102],49))}function Si(e){return j(e,F([103],49))}function Ai(e){return j(e,F([104],49))}function ki(e){return j(e,F([105],49))}function Ci(e){return j(e,F([106],49))}function Pi(e){return j(e,F([107],49))}function at(e,t=255,r=0){return Math.trunc(Math.max(Math.min(e,t),r))}function _i(e,t){return j(e,F([38,5,at(t)],39))}function Ei(e,t){return j(e,F([48,5,at(t)],49))}function Mi(e,t){return typeof t=="number"?j(e,F([38,2,t>>16&255,t>>8&255,t&255],39)):j(e,F([38,2,at(t.r),at(t.g),at(t.b)],39))}function Li(e,t){return typeof t=="number"?j(e,F([48,2,t>>16&255,t>>8&255,t&255],49)):j(e,F([48,2,at(t.r),at(t.g),at(t.b)],49))}var Ri=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function Ii(e){return e.replace(Ri,"")}var Pr=class extends Error{constructor(t,r){super(`Exceeded max retry count (${r})`),this.name="RetryError",this.cause=t}},Di={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function _r(e,t){let r={...Di,...t};if(r.maxTimeout>=0&&r.minTimeout>r.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let n=r.minTimeout,a;for(let o=0;osetTimeout(i,n)),n*=r.multiplier,n=Math.max(n,r.minTimeout),r.maxTimeout>=0&&(n=Math.min(n,r.maxTimeout)),a=s}throw new Pr(a,r.maxAttempts)}var Kc=Number.isNaN||function(e){return typeof e=="number"&&e!==e};var Zt=globalThis||(typeof window<"u"?window:self),Ni=Object.create,Mr=Object.defineProperty,Ui=Object.getOwnPropertyDescriptor,Bi=Object.getOwnPropertyNames,Fi=Object.getPrototypeOf,ji=Object.prototype.hasOwnProperty,qi=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ki=(e,t)=>{for(var r in t)Mr(e,r,{get:t[r],enumerable:!0})},Er=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Bi(t))!ji.call(e,a)&&a!==r&&Mr(e,a,{get:()=>t[a],enumerable:!(n=Ui(t,a))||n.enumerable});return e},Wi=(e,t,r)=>(Er(e,t,"default"),r&&Er(r,t,"default")),Dn=(e,t,r)=>(r=e!=null?Ni(Fi(e)):{},Er(t||!e||!e.__esModule?Mr(r,"default",{value:e,enumerable:!0}):r,e)),On=qi((e,t)=>{var r="Expected a function",n=NaN,a="[object Symbol]",o=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt,u=typeof Zt=="object"&&Zt&&Zt.Object===Object&&Zt,f=typeof self=="object"&&self&&self.Object===Object&&self,_=u||f||Function("return this")(),v=Object.prototype,P=v.toString,ee=Math.max,Z=Math.min,m=function(){return _.Date.now()};function ve(w,E,I){var A,q,L,Y,K,ye,X=0,C=!1,W=!1,Ce=!0;if(typeof w!="function")throw new TypeError(r);E=y(E)||0,te(I)&&(C=!!I.leading,W="maxWait"in I,L=W?ee(y(I.maxWait)||0,E):L,Ce="trailing"in I?!!I.trailing:Ce);function ae(B){var z=A,Q=q;return A=q=void 0,X=B,Y=w.apply(Q,z),Y}function p(B){return X=B,K=setTimeout(V,E),C?ae(B):Y}function k(B){var z=B-ye,Q=B-X,re=E-z;return W?Z(re,L-Q):re}function M(B){var z=B-ye,Q=B-X;return ye===void 0||z>=E||z<0||W&&Q>=L}function V(){var B=m();if(M(B))return U(B);K=setTimeout(V,k(B))}function U(B){return K=void 0,Ce&&A?ae(B):(A=q=void 0,Y)}function ce(){K!==void 0&&clearTimeout(K),X=0,A=ye=q=K=void 0}function we(){return K===void 0?Y:U(m())}function pe(){var B=m(),z=M(B);if(A=arguments,q=this,ye=B,z){if(K===void 0)return p(ye);if(W)return K=setTimeout(V,E),ae(ye)}return K===void 0&&(K=setTimeout(V,E)),Y}return pe.cancel=ce,pe.flush=we,pe}function G(w,E,I){var A=!0,q=!0;if(typeof w!="function")throw new TypeError(r);return te(I)&&(A="leading"in I?!!I.leading:A,q="trailing"in I?!!I.trailing:q),ve(w,E,{leading:A,maxWait:E,trailing:q})}function te(w){var E=typeof w;return!!w&&(E=="object"||E=="function")}function be(w){return!!w&&typeof w=="object"}function S(w){return typeof w=="symbol"||be(w)&&P.call(w)==a}function y(w){if(typeof w=="number")return w;if(S(w))return n;if(te(w)){var E=typeof w.valueOf=="function"?w.valueOf():w;w=te(E)?E+"":E}if(typeof w!="string")return w===0?w:+w;w=w.replace(o,"");var I=i.test(w);return I||c.test(w)?d(w.slice(2),I?2:8):s.test(w)?n:+w}t.exports=G}),Nn={};Ki(Nn,{default:()=>Lr});var zi=Dn(On());Wi(Nn,Dn(On()));var{default:In,...Hi}=zi,Lr=In!==void 0?In:Hi;var Gi=Object.create,Ir=Object.defineProperty,Vi=Object.getOwnPropertyDescriptor,$i=Object.getOwnPropertyNames,Yi=Object.getPrototypeOf,Qi=Object.prototype.hasOwnProperty,Zi=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ji=(e,t)=>{for(var r in t)Ir(e,r,{get:t[r],enumerable:!0})},Rr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of $i(t))!Qi.call(e,a)&&a!==r&&Ir(e,a,{get:()=>t[a],enumerable:!(n=Vi(t,a))||n.enumerable});return e},Xi=(e,t,r)=>(Rr(e,t,"default"),r&&Rr(r,t,"default")),Bn=(e,t,r)=>(r=e!=null?Gi(Yi(e)):{},Rr(t||!e||!e.__esModule?Ir(r,"default",{value:e,enumerable:!0}):r,e)),Fn=Zi((e,t)=>{(function(r,n){typeof e=="object"&&typeof t=="object"?t.exports=n():typeof define=="function"&&define.amd?define([],n):typeof e=="object"?e.notie=n():r.notie=n()})(e,function(){return function(r){function n(o){if(a[o])return a[o].exports;var s=a[o]={i:o,l:!1,exports:{}};return r[o].call(s.exports,s,s.exports,n),s.l=!0,s.exports}var a={};return n.m=r,n.c=a,n.i=function(o){return o},n.d=function(o,s,i){n.o(o,s)||Object.defineProperty(o,s,{configurable:!1,enumerable:!0,get:i})},n.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(s,"a",s),s},n.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},n.p="",n(n.s=1)}([function(r,n){r.exports=function(a){return a.webpackPolyfill||(a.deprecate=function(){},a.paths=[],a.children||(a.children=[]),Object.defineProperty(a,"loaded",{enumerable:!0,get:function(){return a.l}}),Object.defineProperty(a,"id",{enumerable:!0,get:function(){return a.i}}),a.webpackPolyfill=1),a}},function(r,n,a){"use strict";(function(o){var s,i,c,d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u};(function(u,f){d(n)==="object"&&d(o)==="object"?o.exports=f():(i=[],s=f,c=typeof s=="function"?s.apply(n,i):s,c!==void 0&&(o.exports=c))})(void 0,function(){return function(u){function f(v){if(_[v])return _[v].exports;var P=_[v]={i:v,l:!1,exports:{}};return u[v].call(P.exports,P,P.exports,f),P.l=!0,P.exports}var _={};return f.m=u,f.c=_,f.i=function(v){return v},f.d=function(v,P,ee){f.o(v,P)||Object.defineProperty(v,P,{configurable:!1,enumerable:!0,get:ee})},f.n=function(v){var P=v&&v.__esModule?function(){return v.default}:function(){return v};return f.d(P,"a",P),P},f.o=function(v,P){return Object.prototype.hasOwnProperty.call(v,P)},f.p="",f(f.s=0)}([function(u,f,_){function v(p,k){var M={};for(var V in p)k.indexOf(V)>=0||Object.prototype.hasOwnProperty.call(p,V)&&(M[V]=p[V]);return M}Object.defineProperty(f,"__esModule",{value:!0});var P=typeof Symbol=="function"&&d(Symbol.iterator)==="symbol"?function(p){return typeof p>"u"?"undefined":d(p)}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p>"u"?"undefined":d(p)},ee=Object.assign||function(p){for(var k=1;k'+V+"",Q.onclick=function(){return q(re,z)},Q.listener=function(R){(E(R)||I(R))&&K()},A(Q,z),ce&&ce<1&&(ce=1),!pe&&ce&&te(ce).then(function(){return q(re,z)})},X=f.force=function(p,k){var M=p.type,V=M===void 0?5:M,U=p.text,ce=p.buttonText,we=ce===void 0?"OK":ce,pe=p.callback,B=p.position,z=B===void 0?m.positions.force||z.top:B;be(),K();var Q=document.createElement("div"),re=S();Q.id=re;var R=document.createElement("div");R.classList.add(m.classes.textbox),R.classList.add(m.classes.backgroundInfo),R.innerHTML='
'+U+"
";var J=document.createElement("div");J.classList.add(m.classes.button),J.classList.add(y[V]),J.innerHTML=we,J.onclick=function(){q(re,z),Y(),pe?pe():k&&k()},Q.appendChild(R),Q.appendChild(J),Q.listener=function(ue){E(ue)&&J.click()},A(Q,z),L()},C=f.confirm=function(p,k,M){var V=p.text,U=p.submitText,ce=U===void 0?"Yes":U,we=p.cancelText,pe=we===void 0?"Cancel":we,B=p.submitCallback,z=p.cancelCallback,Q=p.position,re=Q===void 0?m.positions.confirm||re.top:Q;be(),K();var R=document.createElement("div"),J=S();R.id=J;var ue=document.createElement("div");ue.classList.add(m.classes.textbox),ue.classList.add(m.classes.backgroundInfo),ue.innerHTML='
'+V+"
";var ie=document.createElement("div");ie.classList.add(m.classes.button),ie.classList.add(m.classes.elementHalf),ie.classList.add(m.classes.backgroundSuccess),ie.innerHTML=ce,ie.onclick=function(){q(J,re),Y(),B?B():k&&k()};var N=document.createElement("div");N.classList.add(m.classes.button),N.classList.add(m.classes.elementHalf),N.classList.add(m.classes.backgroundError),N.innerHTML=pe,N.onclick=function(){q(J,re),Y(),z?z():M&&M()},R.appendChild(ue),R.appendChild(ie),R.appendChild(N),R.listener=function(Se){E(Se)?ie.click():I(Se)&&N.click()},A(R,re),L(R,re)},W=function(p,k,M){var V=p.text,U=p.submitText,ce=U===void 0?"Submit":U,we=p.cancelText,pe=we===void 0?"Cancel":we,B=p.submitCallback,z=p.cancelCallback,Q=p.position,re=Q===void 0?m.positions.input||re.top:Q,R=v(p,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);be(),K();var J=document.createElement("div"),ue=S();J.id=ue;var ie=document.createElement("div");ie.classList.add(m.classes.textbox),ie.classList.add(m.classes.backgroundInfo),ie.innerHTML='
'+V+"
";var N=document.createElement("input");N.classList.add(m.classes.inputField),N.setAttribute("autocapitalize",R.autocapitalize||"none"),N.setAttribute("autocomplete",R.autocomplete||"off"),N.setAttribute("autocorrect",R.autocorrect||"off"),N.setAttribute("autofocus",R.autofocus||"true"),N.setAttribute("inputmode",R.inputmode||"verbatim"),N.setAttribute("max",R.max||""),N.setAttribute("maxlength",R.maxlength||""),N.setAttribute("min",R.min||""),N.setAttribute("minlength",R.minlength||""),N.setAttribute("placeholder",R.placeholder||""),N.setAttribute("spellcheck",R.spellcheck||"default"),N.setAttribute("step",R.step||"any"),N.setAttribute("type",R.type||"text"),N.value=R.value||"",R.allowed&&(N.oninput=function(){var me=void 0;if(Array.isArray(R.allowed)){for(var he="",Oe=R.allowed,ze=0;ze'+M+"",z.appendChild(re),we.forEach(function(J,ue){var ie=J.type,N=ie===void 0?1:ie,Se=J.text,De=J.handler,me=document.createElement("div");me.classList.add(y[N]),me.classList.add(m.classes.button),me.classList.add(m.classes.selectChoice);var he=we[ue+1];he&&!he.type&&(he.type=1),he&&he.type===N&&me.classList.add(m.classes.selectChoiceRepeated),me.innerHTML=Se,me.onclick=function(){q(Q,B),Y(),De()},z.appendChild(me)});var R=document.createElement("div");R.classList.add(m.classes.backgroundNeutral),R.classList.add(m.classes.button),R.innerHTML=U,R.onclick=function(){q(Q,B),Y(),ce?ce():k&&k()},z.appendChild(R),z.listener=function(J){I(J)&&R.click()},A(z,B),L(z,B)},ae=f.date=function(p,k,M){var V=p.value,U=V===void 0?new Date:V,ce=p.submitText,we=ce===void 0?"OK":ce,pe=p.cancelText,B=pe===void 0?"Cancel":pe,z=p.submitCallback,Q=p.cancelCallback,re=p.position,R=re===void 0?m.positions.date||R.top:re;be(),K();var J="▾",ue=document.createElement("div"),ie=document.createElement("div"),N=document.createElement("div"),Se=function(de){ue.innerHTML=m.dateMonths[de.getMonth()],ie.innerHTML=de.getDate(),N.innerHTML=de.getFullYear()},De=function(de){var oe=new Date(U.getFullYear(),U.getMonth()+1,0).getDate(),Ke=de.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(Ke)>oe&&(Ke=oe.toString()),de.target.textContent=Ke,Number(Ke)<1&&(Ke="1"),U.setDate(Number(Ke))},me=function(de){var oe=de.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);de.target.textContent=oe,U.setFullYear(Number(oe))},he=function(de){Se(U)},Oe=function(de){var oe=new Date(U.getFullYear(),U.getMonth()+de+1,0).getDate();U.getDate()>oe&&U.setDate(oe),U.setMonth(U.getMonth()+de),Se(U)},ze=function(de){U.setDate(U.getDate()+de),Se(U)},Et=function(de){var oe=U.getFullYear()+de;oe<0?U.setFullYear(0):U.setFullYear(U.getFullYear()+de),Se(U)},Ze=document.createElement("div"),lt=S();Ze.id=lt;var bt=document.createElement("div");bt.classList.add(m.classes.backgroundInfo);var _e=document.createElement("div");_e.classList.add(m.classes.dateSelectorInner);var Ve=document.createElement("div");Ve.classList.add(m.classes.button),Ve.classList.add(m.classes.elementThird),Ve.classList.add(m.classes.dateSelectorUp),Ve.innerHTML=J;var Ee=document.createElement("div");Ee.classList.add(m.classes.button),Ee.classList.add(m.classes.elementThird),Ee.classList.add(m.classes.dateSelectorUp),Ee.innerHTML=J;var qe=document.createElement("div");qe.classList.add(m.classes.button),qe.classList.add(m.classes.elementThird),qe.classList.add(m.classes.dateSelectorUp),qe.innerHTML=J,ue.classList.add(m.classes.element),ue.classList.add(m.classes.elementThird),ue.innerHTML=m.dateMonths[U.getMonth()],ie.classList.add(m.classes.element),ie.classList.add(m.classes.elementThird),ie.setAttribute("contentEditable",!0),ie.addEventListener("input",De),ie.addEventListener("blur",he),ie.innerHTML=U.getDate(),N.classList.add(m.classes.element),N.classList.add(m.classes.elementThird),N.setAttribute("contentEditable",!0),N.addEventListener("input",me),N.addEventListener("blur",he),N.innerHTML=U.getFullYear();var et=document.createElement("div");et.classList.add(m.classes.button),et.classList.add(m.classes.elementThird),et.innerHTML=J;var tt=document.createElement("div");tt.classList.add(m.classes.button),tt.classList.add(m.classes.elementThird),tt.innerHTML=J;var ct=document.createElement("div");ct.classList.add(m.classes.button),ct.classList.add(m.classes.elementThird),ct.innerHTML=J,Ve.onclick=function(){return Oe(1)},Ee.onclick=function(){return ze(1)},qe.onclick=function(){return Et(1)},et.onclick=function(){return Oe(-1)},tt.onclick=function(){return ze(-1)},ct.onclick=function(){return Et(-1)};var Ne=document.createElement("div");Ne.classList.add(m.classes.button),Ne.classList.add(m.classes.elementHalf),Ne.classList.add(m.classes.backgroundSuccess),Ne.innerHTML=we,Ne.onclick=function(){q(lt,R),Y(),z?z(U):k&&k(U)};var rt=document.createElement("div");rt.classList.add(m.classes.button),rt.classList.add(m.classes.elementHalf),rt.classList.add(m.classes.backgroundError),rt.innerHTML=B,rt.onclick=function(){q(lt,R),Y(),Q?Q(U):M&&M(U)},_e.appendChild(Ve),_e.appendChild(Ee),_e.appendChild(qe),_e.appendChild(ue),_e.appendChild(ie),_e.appendChild(N),_e.appendChild(et),_e.appendChild(tt),_e.appendChild(ct),bt.appendChild(_e),Ze.appendChild(bt),Ze.appendChild(Ne),Ze.appendChild(rt),Ze.listener=function(de){E(de)?Ne.click():I(de)&&rt.click()},A(Ze,R),L(Ze,R)};f.default={alert:ye,force:X,confirm:C,input:W,select:Ce,date:ae,setOptions:ve,hideAlerts:K}}])})}).call(n,a(0)(r))}])})}),jn={};Ji(jn,{default:()=>Jt});var es=Bn(Fn());Xi(jn,Bn(Fn()));var{default:Un,...ts}=es,Jt=Un!==void 0?Un:ts;var Dr=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Or(e,t,r,n){e.addEventListener?e.addEventListener(t,r,n):e.attachEvent&&e.attachEvent("on".concat(t),function(){r(window.event)})}function Hn(e,t){for(var r=t.slice(0,t.length-1),n=0;n=0;)t[r-1]+=",",t.splice(r,1),r=t.lastIndexOf("");return t}function rs(e,t){for(var r=e.length>=t.length?e:t,n=e.length>=t.length?t:e,a=!0,o=0;o=0&&le.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&le.splice(0,le.length),(t===93||t===224)&&(t=91),t in Pe){Pe[t]=!1;for(var n in Xe)Xe[n]===t&&(Je[n]=!1)}}function ds(e){if(typeof e>"u")Object.keys(Te).forEach(function(s){return delete Te[s]});else if(Array.isArray(e))e.forEach(function(s){s.key&&Nr(s)});else if(typeof e=="object")e.key&&Nr(e);else if(typeof e=="string"){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n1?Hn(Xe,c):[];Te[f]=Te[f].filter(function(v){var P=n?v.method===n:!0;return!(P&&v.scope===r&&rs(v.mods,_))})}})};function Kn(e,t,r,n){if(t.element===n){var a;if(t.scope===r||t.scope==="all"){a=t.mods.length>0;for(var o in Pe)Object.prototype.hasOwnProperty.call(Pe,o)&&(!Pe[o]&&t.mods.indexOf(+o)>-1||Pe[o]&&t.mods.indexOf(+o)===-1)&&(a=!1);(t.mods.length===0&&!Pe[16]&&!Pe[18]&&!Pe[17]&&!Pe[91]||a||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function Wn(e,t){var r=Te["*"],n=e.keyCode||e.which||e.charCode;if(Je.filter.call(this,e)){if((n===93||n===224)&&(n=91),le.indexOf(n)===-1&&n!==229&&le.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(P){var ee=Br[P];e[P]&&le.indexOf(ee)===-1?le.push(ee):!e[P]&&le.indexOf(ee)>-1?le.splice(le.indexOf(ee),1):P==="metaKey"&&e[P]&&le.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(le=le.slice(le.indexOf(ee))))}),n in Pe){Pe[n]=!0;for(var a in Xe)Xe[a]===n&&(Je[a]=!0);if(!r)return}for(var o in Pe)Object.prototype.hasOwnProperty.call(Pe,o)&&(Pe[o]=e[Br[o]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(le.indexOf(17)===-1&&le.push(17),le.indexOf(18)===-1&&le.push(18),Pe[17]=!0,Pe[18]=!0);var s=It();if(r)for(var i=0;i-1}function Je(e,t,r){le=[];var n=Gn(e),a=[],o="all",s=document,i=0,c=!1,d=!0,u="+",f=!1;for(r===void 0&&typeof t=="function"&&(r=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(o=t.scope),t.element&&(s=t.element),t.keyup&&(c=t.keyup),t.keydown!==void 0&&(d=t.keydown),t.capture!==void 0&&(f=t.capture),typeof t.splitKey=="string"&&(u=t.splitKey)),typeof t=="string"&&(o=t);i1&&(a=Hn(Xe,e)),e=e[e.length-1],e=e==="*"?"*":er(e),e in Te||(Te[e]=[]),Te[e].push({keyup:c,keydown:d,scope:o,mods:a,shortcut:n[i],method:r,key:n[i],splitKey:u,element:s});typeof s<"u"&&!ms(s)&&window&&($n.push(s),Or(s,"keydown",function(_){Wn(_,s)},f),qn||(qn=!0,Or(window,"focus",function(){le=[]},f)),Or(s,"keyup",function(_){Wn(_,s),us(_)},f))}function gs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(Te).forEach(function(r){var n=Te[r].filter(function(a){return a.scope===t&&a.shortcut===e});n.forEach(function(a){a&&a.method&&a.method()})})}var Ur={getPressedKeyString:is,setScope:Yn,getScope:It,deleteScope:cs,getPressedKeyCodes:os,isPressed:ls,filter:ss,trigger:gs,unbind:ds,keyMap:Rt,modifier:Xe,modifierMap:Br};for(Xt in Ur)Object.prototype.hasOwnProperty.call(Ur,Xt)&&(Je[Xt]=Ur[Xt]);var Xt;typeof document<"u"&&(zn=window.hotkeys,Je.noConflict=function(e){return e&&window.hotkeys===Je&&(window.hotkeys=zn),Je},window.hotkeys=Je);var zn;var ps={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},Zn={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},fe={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Be={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},ot={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},h=class{static getFirstMatch(e,t){let r=t.match(e);return r&&r.length>0&&r[1]||""}static getSecondMatch(e,t){let r=t.match(e);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(e,t,r){if(e.test(t))return r}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,r=!1){let n=h.getVersionPrecision(e),a=h.getVersionPrecision(t),o=Math.max(n,a),s=0,i=h.map([e,t],c=>{let d=o-h.getVersionPrecision(c),u=c+new Array(d+1).join(".0");return h.map(u.split("."),f=>new Array(20-f.length).join("0")+f).reverse()});for(r&&(s=o-Math.min(n,a)),o-=1;o>=s;){if(i[0][o]>i[1][o])return 1;if(i[0][o]===i[1][o]){if(o===s)return 0;o-=1}else if(i[0][o]{r[s]=o[s]})}return e}static getBrowserAlias(e){return ps[e]}static getBrowserTypeByAlias(e){return Zn[e]||""}},se=/version\/(\d+(\.?_?\d+)+)/i,hs=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},r=h.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},r=h.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},r=h.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},r=h.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},r=h.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},r=h.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},r=h.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},r=h.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=h.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},r=h.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},r=h.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},r=h.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},r=h.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},r=h.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},r=h.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},r=h.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},r=h.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},r=h.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},r=h.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},r=h.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},r=h.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},r=h.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},r=h.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},r=h.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},r=h.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},r=h.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},r=h.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test(e){let t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe(e){let t={name:"Android Browser"},r=h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},r=h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},r=h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,r=/^(.*)\/(.*)[ \t]\((.*)/,n=e.search("\\(")!==-1?r:t;return{name:h.getFirstMatch(n,e),version:h.getSecondMatch(n,e)}}}],fs=hs,bs=[{test:[/Roku\/DVP/],describe(e){let t=h.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Be.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=h.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Be.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=h.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=h.getWindowsVersionName(t);return{name:Be.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:Be.iOS},r=h.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe(e){let t=h.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=h.getMacOSVersionName(t),n={name:Be.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=h.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Be.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe(e){let t=h.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=h.getAndroidVersionName(t),n={name:Be.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=h.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:Be.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=h.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||h.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||h.getFirstMatch(/\bbb(\d+)/i,e);return{name:Be.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=h.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Be.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=h.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Be.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Be.Linux}}},{test:[/CrOS/],describe(){return{name:Be.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=h.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Be.PlayStation4,version:t}}}],ys=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=h.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:fe.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:fe.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:fe.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:fe.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:fe.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:fe.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:fe.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe(e){let t=h.getFirstMatch(/(ipod|iphone)/i,e);return{type:fe.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:fe.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:fe.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:fe.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:fe.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:fe.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:fe.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:fe.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:fe.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:fe.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:fe.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:fe.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:fe.tv}}}],ws=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:ot.Blink};let t=h.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:ot.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:ot.Trident},r=h.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:ot.Presto},r=h.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test(e){let t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe(e){let t={name:ot.Gecko},r=h.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:ot.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:ot.WebKit},r=h.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}],Ts=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=h.find(fs,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=h.find(bs,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=h.find(ys,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=h.find(ws,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return h.assign({},this.parsedResult)}satisfies(e){let t={},r=0,n={},a=0;if(Object.keys(e).forEach(o=>{let s=e[o];typeof s=="string"?(n[o]=s,a+=1):typeof s=="object"&&(t[o]=s,r+=1)}),r>0){let o=Object.keys(t),s=h.find(o,c=>this.isOS(c));if(s){let c=this.satisfies(t[s]);if(c!==void 0)return c}let i=h.find(o,c=>this.isPlatform(c));if(i){let c=this.satisfies(t[i]);if(c!==void 0)return c}}if(a>0){let o=Object.keys(n),s=h.find(o,i=>this.isBrowser(i,!0));if(s!==void 0)return this.compareVersion(n[s])}}isBrowser(e,t=!1){let r=this.getBrowserName().toLowerCase(),n=e.toLowerCase(),a=h.getBrowserTypeByAlias(n);return t&&a&&(n=a.toLowerCase()),n===r}compareVersion(e){let t=[0],r=e,n=!1,a=this.getBrowserVersion();if(typeof a=="string")return e[0]===">"||e[0]==="<"?(r=e.substr(1),e[1]==="="?(n=!0,r=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?r=e.substr(1):e[0]==="~"&&(n=!0,r=e.substr(1)),t.indexOf(h.compareVersions(a,r,n))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},Qn=Ts,xs=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new Qn(e,t)}static parse(e){return new Qn(e).getResult()}static get BROWSER_MAP(){return Zn}static get ENGINE_MAP(){return ot}static get OS_MAP(){return Be}static get PLATFORMS_MAP(){return fe}},tr=xs;var{entries:oa,setPrototypeOf:Jn,isFrozen:vs,getPrototypeOf:Ss,getOwnPropertyDescriptor:As}=Object,{freeze:Fe,seal:Ye,create:ks}=Object,{apply:zr,construct:Hr}=typeof Reflect<"u"&&Reflect;zr||(zr=function(e,t,r){return e.apply(t,r)});Fe||(Fe=function(e){return e});Ye||(Ye=function(e){return e});Hr||(Hr=function(e,t){return new e(...t)});var Cs=Ge(Array.prototype.forEach),Xn=Ge(Array.prototype.pop),Dt=Ge(Array.prototype.push),ar=Ge(String.prototype.toLowerCase),Fr=Ge(String.prototype.toString),Ps=Ge(String.prototype.match),$e=Ge(String.prototype.replace),_s=Ge(String.prototype.indexOf),Es=Ge(String.prototype.trim),We=Ge(RegExp.prototype.test),Ot=Ms(TypeError);function Ge(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a/gm),Os=Ye(/\${[\w\W]*}/gm),Ns=Ye(/^data-[\-\w.\u00B7-\uFFFF]/),Us=Ye(/^aria-[\-\w]+$/),ia=Ye(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Bs=Ye(/^(?:\w+script|data):/i),Fs=Ye(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),sa=Ye(/^html$/i),aa=Object.freeze({__proto__:null,MUSTACHE_EXPR:Is,ERB_EXPR:Ds,TMPLIT_EXPR:Os,DATA_ATTR:Ns,ARIA_ATTR:Us,IS_ALLOWED_URI:ia,IS_SCRIPT_OR_DATA:Bs,ATTR_WHITESPACE:Fs,DOCTYPE_NAME:sa}),js=()=>typeof window>"u"?null:window,qs=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null,n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(r=t.getAttribute(n));let a="dompurify"+(r?"#"+r:"");try{return e.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return null}};function la(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:js(),t=l=>la(l);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let r=e.document,n=r.currentScript,{document:a}=e,{DocumentFragment:o,HTMLTemplateElement:s,Node:i,Element:c,NodeFilter:d,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:_,trustedTypes:v}=e,P=c.prototype,ee=rr(P,"cloneNode"),Z=rr(P,"nextSibling"),m=rr(P,"childNodes"),ve=rr(P,"parentNode");if(typeof s=="function"){let l=a.createElement("template");l.content&&l.content.ownerDocument&&(a=l.content.ownerDocument)}let G,te="",{implementation:be,createNodeIterator:S,createDocumentFragment:y,getElementsByTagName:w}=a,{importNode:E}=r,I={};t.isSupported=typeof oa=="function"&&typeof ve=="function"&&be&&be.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:A,ERB_EXPR:q,TMPLIT_EXPR:L,DATA_ATTR:Y,ARIA_ATTR:K,IS_SCRIPT_OR_DATA:ye,ATTR_WHITESPACE:X}=aa,{IS_ALLOWED_URI:C}=aa,W=null,Ce=$({},[...ea,...jr,...qr,...Kr,...ta]),ae=null,p=$({},[...ra,...Wr,...na,...nr]),k=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),M=null,V=null,U=!0,ce=!0,we=!1,pe=!0,B=!1,z=!1,Q=!1,re=!1,R=!1,J=!1,ue=!1,ie=!0,N=!1,Se="user-content-",De=!0,me=!1,he={},Oe=null,ze=$({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Et=null,Ze=$({},["audio","video","img","source","image","track"]),lt=null,bt=$({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),_e="http://www.w3.org/1998/Math/MathML",Ve="http://www.w3.org/2000/svg",Ee="http://www.w3.org/1999/xhtml",qe=Ee,et=!1,tt=null,ct=$({},[_e,Ve,Ee],Fr),Ne,rt=["application/xhtml+xml","text/html"],de="text/html",oe,Ke=null,So=a.createElement("form"),pn=function(l){return l instanceof RegExp||l instanceof Function},Tr=function(l){if(!(Ke&&Ke===l)){if((!l||typeof l!="object")&&(l={}),l=Tt(l),Ne=rt.indexOf(l.PARSER_MEDIA_TYPE)===-1?Ne=de:Ne=l.PARSER_MEDIA_TYPE,oe=Ne==="application/xhtml+xml"?Fr:ar,W="ALLOWED_TAGS"in l?$({},l.ALLOWED_TAGS,oe):Ce,ae="ALLOWED_ATTR"in l?$({},l.ALLOWED_ATTR,oe):p,tt="ALLOWED_NAMESPACES"in l?$({},l.ALLOWED_NAMESPACES,Fr):ct,lt="ADD_URI_SAFE_ATTR"in l?$(Tt(bt),l.ADD_URI_SAFE_ATTR,oe):bt,Et="ADD_DATA_URI_TAGS"in l?$(Tt(Ze),l.ADD_DATA_URI_TAGS,oe):Ze,Oe="FORBID_CONTENTS"in l?$({},l.FORBID_CONTENTS,oe):ze,M="FORBID_TAGS"in l?$({},l.FORBID_TAGS,oe):{},V="FORBID_ATTR"in l?$({},l.FORBID_ATTR,oe):{},he="USE_PROFILES"in l?l.USE_PROFILES:!1,U=l.ALLOW_ARIA_ATTR!==!1,ce=l.ALLOW_DATA_ATTR!==!1,we=l.ALLOW_UNKNOWN_PROTOCOLS||!1,pe=l.ALLOW_SELF_CLOSE_IN_ATTR!==!1,B=l.SAFE_FOR_TEMPLATES||!1,z=l.WHOLE_DOCUMENT||!1,R=l.RETURN_DOM||!1,J=l.RETURN_DOM_FRAGMENT||!1,ue=l.RETURN_TRUSTED_TYPE||!1,re=l.FORCE_BODY||!1,ie=l.SANITIZE_DOM!==!1,N=l.SANITIZE_NAMED_PROPS||!1,De=l.KEEP_CONTENT!==!1,me=l.IN_PLACE||!1,C=l.ALLOWED_URI_REGEXP||ia,qe=l.NAMESPACE||Ee,k=l.CUSTOM_ELEMENT_HANDLING||{},l.CUSTOM_ELEMENT_HANDLING&&pn(l.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(k.tagNameCheck=l.CUSTOM_ELEMENT_HANDLING.tagNameCheck),l.CUSTOM_ELEMENT_HANDLING&&pn(l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(k.attributeNameCheck=l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),l.CUSTOM_ELEMENT_HANDLING&&typeof l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(k.allowCustomizedBuiltInElements=l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),B&&(ce=!1),J&&(R=!0),he&&(W=$({},[...ta]),ae=[],he.html===!0&&($(W,ea),$(ae,ra)),he.svg===!0&&($(W,jr),$(ae,Wr),$(ae,nr)),he.svgFilters===!0&&($(W,qr),$(ae,Wr),$(ae,nr)),he.mathMl===!0&&($(W,Kr),$(ae,na),$(ae,nr))),l.ADD_TAGS&&(W===Ce&&(W=Tt(W)),$(W,l.ADD_TAGS,oe)),l.ADD_ATTR&&(ae===p&&(ae=Tt(ae)),$(ae,l.ADD_ATTR,oe)),l.ADD_URI_SAFE_ATTR&&$(lt,l.ADD_URI_SAFE_ATTR,oe),l.FORBID_CONTENTS&&(Oe===ze&&(Oe=Tt(Oe)),$(Oe,l.FORBID_CONTENTS,oe)),De&&(W["#text"]=!0),z&&$(W,["html","head","body"]),W.table&&($(W,["tbody"]),delete M.tbody),l.TRUSTED_TYPES_POLICY){if(typeof l.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ot('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof l.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ot('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');G=l.TRUSTED_TYPES_POLICY,te=G.createHTML("")}else G===void 0&&(G=qs(v,n)),G!==null&&typeof te=="string"&&(te=G.createHTML(""));Fe&&Fe(l),Ke=l}},hn=$({},["mi","mo","mn","ms","mtext"]),fn=$({},["foreignobject","desc","title","annotation-xml"]),Ao=$({},["title","style","font","a","script"]),$t=$({},jr);$($t,qr),$($t,Ls);let xr=$({},Kr);$(xr,Rs);let ko=function(l){let x=ve(l);(!x||!x.tagName)&&(x={namespaceURI:qe,tagName:"template"});let b=ar(l.tagName),ne=ar(x.tagName);return tt[l.namespaceURI]?l.namespaceURI===Ve?x.namespaceURI===Ee?b==="svg":x.namespaceURI===_e?b==="svg"&&(ne==="annotation-xml"||hn[ne]):!!$t[b]:l.namespaceURI===_e?x.namespaceURI===Ee?b==="math":x.namespaceURI===Ve?b==="math"&&fn[ne]:!!xr[b]:l.namespaceURI===Ee?x.namespaceURI===Ve&&!fn[ne]||x.namespaceURI===_e&&!hn[ne]?!1:!xr[b]&&(Ao[b]||!$t[b]):!!(Ne==="application/xhtml+xml"&&tt[l.namespaceURI]):!1},yt=function(l){Dt(t.removed,{element:l});try{l.parentNode.removeChild(l)}catch{l.remove()}},vr=function(l,x){try{Dt(t.removed,{attribute:x.getAttributeNode(l),from:x})}catch{Dt(t.removed,{attribute:null,from:x})}if(x.removeAttribute(l),l==="is"&&!ae[l])if(R||J)try{yt(x)}catch{}else try{x.setAttribute(l,"")}catch{}},bn=function(l){let x,b;if(re)l=""+l;else{let Ue=Ps(l,/^[\r\n\t ]+/);b=Ue&&Ue[0]}Ne==="application/xhtml+xml"&&qe===Ee&&(l=''+l+"");let ne=G?G.createHTML(l):l;if(qe===Ee)try{x=new _().parseFromString(ne,Ne)}catch{}if(!x||!x.documentElement){x=be.createDocument(qe,"template",null);try{x.documentElement.innerHTML=et?te:ne}catch{}}let Ae=x.body||x.documentElement;return l&&b&&Ae.insertBefore(a.createTextNode(b),Ae.childNodes[0]||null),qe===Ee?w.call(x,z?"html":"body")[0]:z?x.documentElement:Ae},yn=function(l){return S.call(l.ownerDocument||l,l,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT,null,!1)},Co=function(l){return l instanceof f&&(typeof l.nodeName!="string"||typeof l.textContent!="string"||typeof l.removeChild!="function"||!(l.attributes instanceof u)||typeof l.removeAttribute!="function"||typeof l.setAttribute!="function"||typeof l.namespaceURI!="string"||typeof l.insertBefore!="function"||typeof l.hasChildNodes!="function")},Yt=function(l){return typeof i=="object"?l instanceof i:l&&typeof l=="object"&&typeof l.nodeType=="number"&&typeof l.nodeName=="string"},nt=function(l,x,b){I[l]&&Cs(I[l],ne=>{ne.call(t,x,b,Ke)})},wn=function(l){let x;if(nt("beforeSanitizeElements",l,null),Co(l))return yt(l),!0;let b=oe(l.nodeName);if(nt("uponSanitizeElement",l,{tagName:b,allowedTags:W}),l.hasChildNodes()&&!Yt(l.firstElementChild)&&(!Yt(l.content)||!Yt(l.content.firstElementChild))&&We(/<[/\w]/g,l.innerHTML)&&We(/<[/\w]/g,l.textContent))return yt(l),!0;if(!W[b]||M[b]){if(!M[b]&&xn(b)&&(k.tagNameCheck instanceof RegExp&&We(k.tagNameCheck,b)||k.tagNameCheck instanceof Function&&k.tagNameCheck(b)))return!1;if(De&&!Oe[b]){let ne=ve(l)||l.parentNode,Ae=m(l)||l.childNodes;if(Ae&&ne){let Ue=Ae.length;for(let je=Ue-1;je>=0;--je)ne.insertBefore(ee(Ae[je],!0),Z(l))}}return yt(l),!0}return l instanceof c&&!ko(l)||(b==="noscript"||b==="noembed")&&We(/<\/no(script|embed)/i,l.innerHTML)?(yt(l),!0):(B&&l.nodeType===3&&(x=l.textContent,x=$e(x,A," "),x=$e(x,q," "),x=$e(x,L," "),l.textContent!==x&&(Dt(t.removed,{element:l.cloneNode()}),l.textContent=x)),nt("afterSanitizeElements",l,null),!1)},Tn=function(l,x,b){if(ie&&(x==="id"||x==="name")&&(b in a||b in So))return!1;if(!(ce&&!V[x]&&We(Y,x))&&!(U&&We(K,x))){if(!ae[x]||V[x]){if(!(xn(l)&&(k.tagNameCheck instanceof RegExp&&We(k.tagNameCheck,l)||k.tagNameCheck instanceof Function&&k.tagNameCheck(l))&&(k.attributeNameCheck instanceof RegExp&&We(k.attributeNameCheck,x)||k.attributeNameCheck instanceof Function&&k.attributeNameCheck(x))||x==="is"&&k.allowCustomizedBuiltInElements&&(k.tagNameCheck instanceof RegExp&&We(k.tagNameCheck,b)||k.tagNameCheck instanceof Function&&k.tagNameCheck(b))))return!1}else if(!lt[x]&&!We(C,$e(b,X,""))&&!((x==="src"||x==="xlink:href"||x==="href")&&l!=="script"&&_s(b,"data:")===0&&Et[l])&&!(we&&!We(ye,$e(b,X,"")))&&b)return!1}return!0},xn=function(l){return l.indexOf("-")>0},vn=function(l){let x,b,ne,Ae;nt("beforeSanitizeAttributes",l,null);let{attributes:Ue}=l;if(!Ue)return;let je={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ae};for(Ae=Ue.length;Ae--;){x=Ue[Ae];let{name:ke,namespaceURI:wt}=x;if(b=ke==="value"?x.value:Es(x.value),ne=oe(ke),je.attrName=ne,je.attrValue=b,je.keepAttr=!0,je.forceKeepAttr=void 0,nt("uponSanitizeAttribute",l,je),b=je.attrValue,je.forceKeepAttr||(vr(ke,l),!je.keepAttr))continue;if(!pe&&We(/\/>/i,b)){vr(ke,l);continue}B&&(b=$e(b,A," "),b=$e(b,q," "),b=$e(b,L," "));let Sn=oe(l.nodeName);if(Tn(Sn,ne,b)){if(N&&(ne==="id"||ne==="name")&&(vr(ke,l),b=Se+b),G&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!wt)switch(v.getAttributeType(Sn,ne)){case"TrustedHTML":{b=G.createHTML(b);break}case"TrustedScriptURL":{b=G.createScriptURL(b);break}}try{wt?l.setAttributeNS(wt,ke,b):l.setAttribute(ke,b),Xn(t.removed)}catch{}}}nt("afterSanitizeAttributes",l,null)},Po=function l(x){let b,ne=yn(x);for(nt("beforeSanitizeShadowDOM",x,null);b=ne.nextNode();)nt("uponSanitizeShadowNode",b,null),!wn(b)&&(b.content instanceof o&&l(b.content),vn(b));nt("afterSanitizeShadowDOM",x,null)};return t.sanitize=function(l){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b,ne,Ae,Ue;if(et=!l,et&&(l=""),typeof l!="string"&&!Yt(l))if(typeof l.toString=="function"){if(l=l.toString(),typeof l!="string")throw Ot("dirty is not a string, aborting")}else throw Ot("toString is not a function");if(!t.isSupported)return l;if(Q||Tr(x),t.removed=[],typeof l=="string"&&(me=!1),me){if(l.nodeName){let wt=oe(l.nodeName);if(!W[wt]||M[wt])throw Ot("root node is forbidden and cannot be sanitized in-place")}}else if(l instanceof i)b=bn(""),ne=b.ownerDocument.importNode(l,!0),ne.nodeType===1&&ne.nodeName==="BODY"||ne.nodeName==="HTML"?b=ne:b.appendChild(ne);else{if(!R&&!B&&!z&&l.indexOf("<")===-1)return G&&ue?G.createHTML(l):l;if(b=bn(l),!b)return R?null:ue?te:""}b&&re&&yt(b.firstChild);let je=yn(me?l:b);for(;Ae=je.nextNode();)wn(Ae)||(Ae.content instanceof o&&Po(Ae.content),vn(Ae));if(me)return l;if(R){if(J)for(Ue=y.call(b.ownerDocument);b.firstChild;)Ue.appendChild(b.firstChild);else Ue=b;return(ae.shadowroot||ae.shadowrootmod)&&(Ue=E.call(r,Ue,!0)),Ue}let ke=z?b.outerHTML:b.innerHTML;return z&&W["!doctype"]&&b.ownerDocument&&b.ownerDocument.doctype&&b.ownerDocument.doctype.name&&We(sa,b.ownerDocument.doctype.name)&&(ke=" -`+ke),B&&(ke=$e(ke,A," "),ke=$e(ke,q," "),ke=$e(ke,L," ")),G&&ue?G.createHTML(ke):ke},t.setConfig=function(l){Tr(l),Q=!0},t.clearConfig=function(){Ke=null,Q=!1},t.isValidAttribute=function(l,x,b){Ke||Tr({});let ne=oe(l),Ae=oe(x);return Tn(ne,Ae,b)},t.addHook=function(l,x){typeof x=="function"&&(I[l]=I[l]||[],Dt(I[l],x))},t.removeHook=function(l){if(I[l])return Xn(I[l])},t.removeHooks=function(l){I[l]&&(I[l]=[])},t.removeAllHooks=function(){I={}},t}var ca=la();var Ru=Jt.alert;function ge(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():T}var H=ge();function xt(){return H.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function Nt(){return H.PROD==="1"}function Ut(){return H.PROD_API==="1"}function Qe(){if(H.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function ua(){return typeof Deno<"u"}var Gu=ge().PROD==="1",Vu=ge().PROD!=="1";function da(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}function Gr(){if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let e=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(e&&(e._isUserscript||e._isSafari))}else return!1}var ma={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",curentPlan:"\u5F53\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52A8\u7EED\u671F",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",sponsorLabel:"$1 \u8D77\u8D5E\u52A9\u5F00\u53D1\u8005",help:"\u5E2E\u52A9",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D\uFF0C\u518D\u70B9\u51FB\u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D\u5373\u53EF\u8BBE\u7F6E",browserShortcutsNoteForChrome:"\u7C7BChrome \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762\uFF0C\u5728`\u7BA1\u7406\u5FEB\u6377\u952E`\u9762\u677F(`chrome://extensions/shortcuts`)\u8BBE\u7F6E\uFF0C\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8DF3\u8F6C\u5230\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E\u683C\u5F0F\u4E3A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1: \u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1 & PDF\u6587\u6863\u7FFB\u8BD1","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7F51\u9875\u53CC\u8BED\u7FFB\u8BD1\u6269\u5C55\uFF0C\u540C\u65F6\u652F\u6301 PDF \u7FFB\u8BD1\uFF0C\u53CC\u8BED Epub \u7535\u5B50\u4E66\u5236\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u817E\u8BAF\u7FFB\u8BD1\u7B49\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\uFF0C\u514D\u8D39\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8BD1\u5E76\u9690\u85CF\u539F\u6587/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.toggleTranslationMask":"\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.donateContext":"\u4E86\u89E3\u8D5E\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5219\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875(\u4EC5\u8BD1\u6587)/\u663E\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7","fingers.0":"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478",mouseHoldKey:"+ {key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoverHoldKey:"\u9F20\u6807\u60AC\u505C\u540C\u65F6\u6309\u4E0B\u5FEB\u6377\u952E\u7FFB\u8BD1\u6BB5\u843D","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u6587\u6863",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",goAdvancedSettings:"\u53BB\u8FDB\u9636\u8BBE\u7F6E\u9875",goAdvancedInterfaceSettings:"\u53BB\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u8BBE\u7F6E\u9875\u9762",advanced:"\u8FDB\u9636\u8BBE\u7F6E",advancedDescription:"\u4E00\u822C\u65E0\u9700\u8BBE\u7F6E\uFF0C\u4FDD\u6301\u9ED8\u8BA4\u5373\u53EF\u3002\u4EC5\u5BF9\u4E8E\u66F4\u4E13\u4E1A\u7684\u7528\u6237\uFF0C\u63D0\u4F9B\u66F4\u4E2A\u6027\u5316\u7684\u8BBE\u7F6E\u9879\u3002",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00","display both the original text and the translation":"\u540C\u65F6\u663E\u793A\u539F\u6587\u548C\u8BD1\u6587","keyboard shortcuts":"\u952E\u76D8\u5FEB\u6377\u952E",modify:"\u4FEE\u6539\u5FEB\u6377\u952E",reset:"\u91CD\u7F6E",close:"\u5173\u95ED",homepage:"\u4E3B\u9875",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",changeToOnlyTranslationMode:"\u5207\u6362\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u5207\u6362\u4E3A\u53CC\u8BED\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",unknownError:"\u672A\u77E5\u9519\u8BEF",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",needActionForOptions:"(\u9700\u8BBE\u7F6E)",translationEngine:"\u5F15\u64CE\u9009\u9879",sourceLanguage:"\u539F\u6587\u8BED\u8A00",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",forThisSite:"\u5F53\u524D\u7F51\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1 {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8BD1 {language}",alwaysTranslateSomeSite:"\u603B\u662F\u7FFB\u8BD1 {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8BD1 {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u6DFB\u52A0",default:"\u9ED8\u8BA4",forThisLanguage:"\u9488\u5BF9\u8BE5\u8BED\u8A00\uFF1A","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91","translate other languages into specific language":"\u5C06\u5176\u4ED6\u8BED\u8A00\u7FFB\u8BD1\u4E3A\u4F60\u8BBE\u7F6E\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1",language:"\u8BED\u8A00","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",Error:"\u9519\u8BEF",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",interface:"\u754C\u9762\u8BBE\u7F6E",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8BD1\u9875\u9762\u6807\u9898","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1",enableUserscriptPagePopup:"\u5728\u9875\u9762\u4E0A\u663E\u793A\u60AC\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528\u5FEB\u6377\u952E/{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8BD1\u6587\u6837\u5F0F",currentUrl:"\u5F53\u524D\u7F51\u5740",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664","languages.auto":"\u81EA\u52A8\u68C0\u6D4B",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",upload:"\u4E0A\u4F20",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",download:"\u4E0B\u8F7D",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",deleteFail:"\u5220\u9664\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",backupToCloudDescription:"\u624B\u52A8\u4E0A\u4F20\u6216\u6062\u590D\u5907\u4EFD\u6587\u4EF6\uFF0C\u6700\u591A\u5141\u8BB83\u4E2A\u4E0D\u540C\u7684\u5907\u4EFD",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",updatedAt:"\u66F4\u65B0\u4E8E {date}",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u9891\u9053",joinTelegramChannel:"\u5173\u6CE8 Telegram \u9891\u9053\u83B7\u53D6\u6700\u65B0\u66F4\u65B0",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",autoSync:"\u81EA\u52A8\u5B9A\u65F6\u540C\u6B65",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863","edit border color":"\u4FEE\u6539\u8FB9\u6846\u989C\u8272",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",enableSubtitle:"\u5F00\u542F\u5B57\u5E55\u7FFB\u8BD1",enableSubtitleDescription:"\u9488\u5BF9 youtube \u7B49\u7F51\u7AD9\u7684\u5B57\u5E55\u533A\u57DF\u5F00\u542F\u7FFB\u8BD1",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",enableSearchEnhancement:"\u542F\u7528\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A",enableSearchEnhancementDescription:"\u5F00\u542F\u540E\uFF0C\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\u793E\u533A\uFF09\u53F3\u8FB9\u680F\u81EA\u52A8\u663E\u793A\u5BF9\u5E94\u82F1\u6587\u5173\u952E\u8BCD\u7684\u201C\u8C37\u6B4C\u65B0\u95FB\u201D\u641C\u7D22\u7ED3\u679C\u3002",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerMinute":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u5206\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u8350\uFF09, \u5C06\u4F1A\u5728\u5355\u72EC\u4F5C\u4E3A\u4E00\u6BB5\u53D1\u9001\u7ED9 OpenAI","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740",enabledExtension:"\u542F\u7528\u6269\u5C55",clickToDisableExtension:"\u70B9\u51FB\u7981\u7528\u6269\u5C55",clickToEnableExtension:"\u70B9\u51FB\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",modifyMouseHoverKey:"\u4FEE\u6539\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u8BBE\u7F6E",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",disableTint:"* \u4F60\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u542F\u7528\u3002",searchEnhancementNotes:"\u6211\u4EEC\u53D1\u73B0\uFF0C\u4E2D\u6587\u5173\u952E\u8BCD\u548C\u82F1\u6587\u5173\u952E\u8BCD\u7684\u65B0\u95FB\u7ED3\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u542F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u529F\u80FD\u540E\uFF0C\u6211\u4EEC\u4F1A\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\u7F51\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52A8\u7528\u82F1\u6587\u4E3A\u4F60\u641C\u7D22\u540C\u6837\u7684\u5173\u952E\u8BCD\u5E76\u5C55\u793A\u5728\u53F3\u4FA7\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8BE5\u529F\u80FD\u7684\u8BDD\uFF0C\u53EF\u4EE5\u9009\u62E9\u7981\u7528\u5B83\u3002",option:"\u8BBE\u7F6E",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",needLoginAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u81EA\u5B9A\u4E49)",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",onetime_7day:"7 \u5929\u4F53\u9A8C\u5305",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradePlan:"\u70B9\u6B64\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL \u548C OpenAI \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8BD1",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u8BBE\u7F6E\u5176\u4ED6\u5FEB\u6377\u952E\u6765\u89E6\u53D1\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1"};var ga={nologin:"\u672A\u767B\u9304",login:"\u767B\u9304",manageAccount:"\u7BA1\u7406\u8CEC\u6236",logout:"\u9000\u51FA",curentPlan:"\u7576\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u671F",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u64CA\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u8AAA\u660E",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u9644\u52A0\u5143\u4EF6\u7BA1\u7406\u9801\u9762 \u300Cabout:addons\u300D\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u5716\u793A\u300D\uFF0C\u518D\u9EDE\u9078\u300C\u7BA1\u7406\u64F4\u5145\u5957\u4EF6\u5FEB\u901F\u9375\u300D\u5373\u53EF\u8A2D\u5B9A",browserShortcutsNoteForChrome:"Chromium \u6838\u5FC3\u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u64F4\u5145\u529F\u80FD\u7BA1\u7406\u9801\u9762\uFF0C\u5728\u300C\u9375\u76E4\u5FEB\u901F\u9375\u300D\u9801\u9762(chrome://extensions/shortcuts)\u8A2D\u5B9A\uFF0C\u9EDE\u9078\u4E0B\u65B9\u6309\u9215\u524D\u5F80\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u901F\u9375\u683C\u5F0F\u70BA\uFF1A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F: \u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F & PDF\u6587\u6A94\u7FFB\u8B6F","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7DB2\u9801\u96D9\u8A9E\u7FFB\u8B6F\u64F4\u5C55\uFF0C\u540C\u6642\u652F\u6301 PDF \u7FFB\u8B6F\uFF0C\u96D9\u8A9E Epub \u96FB\u5B50\u66F8\u88FD\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u9A30\u8A0A\u7FFB\u8B6F\u7B49\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF0C\u514D\u8CBB\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8B6F\u4E26\u96B1\u85CF\u539F\u6587/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.toggleTranslationMask":"\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.donateContext":"\u4E86\u89E3\u8D0A\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u5247\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u6642\u89F8\u78B0\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801(\u50C5\u8B6F\u6587)/\u986F\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304","fingers.0":"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478",mouseHoldKey:"+ {key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u6377\u9375(\u6253\u958B\u8A2D\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoverHoldKey:"\u9F20\u6A19\u6ED1\u904E\u540C\u6642\u6309\u4E0B X \u9375\u7FFB\u8B6F\u6BB5\u843D","mouse-translate":"\u9F20\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",goAdvancedSettings:"\u524D\u5F80\u9032\u968E\u8A2D\u5B9A\u9801\u9762",goAdvancedInterfaceSettings:"\u524D\u5F80\u81EA\u8A02\u8A2D\u5B9A\u9801\u9762",advanced:"\u9032\u968E\u8A2D\u5B9A",advancedDescription:"\u6B63\u5E38\u60C5\u6CC1\u7121\u9700\u8A2D\u5B9A\uFF0C\u4FDD\u6301\u9810\u8A2D\u5373\u53EF\u3002\u50C5\u91DD\u5C0D\u66F4\u5C08\u696D\u7684\u4F7F\u7528\u8005\uFF0C\u63D0\u4F9B\u66F4\u500B\u4EBA\u5316\u7684\u8A2D\u5B9A\u9805\u76EE\u3002",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00","display both the original text and the translation":"\u540C\u6642\u986F\u793A\u539F\u6587\u548C\u8B6F\u6587","keyboard shortcuts":"\u9375\u76E4\u5FEB\u901F\u9375",modify:"\u8B8A\u66F4\u5FEB\u901F\u9375",reset:"\u91CD\u8A2D",close:"\u95DC\u9589",homepage:"\u9996\u9801",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",changeToOnlyTranslationMode:"\u5207\u63DB\u70BA\u50C5\u986F\u793A\u8B6F\u6587",changeToDualTranslationMode:"\u5207\u63DB\u70BA\u96D9\u8A9E\u7FFB\u8B6F",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:"\u672A\u77E5\u7684\u932F\u8AA4",canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u9078\u9805",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",needActionForOptions:"(\u9700\u8A2D\u5B9A)",translationEngine:"\u5F15\u64CE\u9078\u9805",sourceLanguage:"\u539F\u6587\u8A9E\u8A00",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",forThisSite:"\u7576\u524D\u7DB2\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8B6F {language}",alwaysTranslateSomeSite:"\u7E3D\u662F\u7FFB\u8B6F {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8B6F {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u65B0\u589E",default:"\u9810\u8A2D",forThisLanguage:"\u91DD\u5C0D\u8A72\u8A9E\u8A00\uFF1A","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F","translate other languages into specific language":"\u5C07\u5176\u5B83\u8A9E\u8A00\u7FFB\u8B6F\u70BA\u4F60\u8A2D\u5B9A\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9",language:"\u8A9E\u8A00","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",Error:"\u932F\u8AA4",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",interface:"\u4ECB\u9762\u8A2D\u5B9A",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65",syncToAccount:"\u540C\u6B65\u5230\u8CEC\u6236",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u8CEC\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u8A2D\u5099\u4E4B\u9593\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u8CEC\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u8CEC\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8B6F","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9E\u99AC\u905C\u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8B6F\u9801\u9762\u6A19\u984C","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F",enableUserscriptPagePopup:"\u5728\u9801\u9762\u4E0A\u986F\u793A\u61F8\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528\u5FEB\u901F\u9375/{touch}\u518D\u6B21\u986F\u793A\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5EFA\u8B70\u5C07\u672C\u8A2D\u5B9A\u9801\u9762\u52A0\u5165\u81F3\u6211\u7684\u6700\u611B","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8B6F\u6587\u6A23\u5F0F",currentUrl:"\u76EE\u524D\u7DB2\u5740",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6E96\u3002",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",upload:"\u4E0A\u50B3",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",download:"\u4E0B\u8F09",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",deleteFail:"\u522A\u9664\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",backupToCloudDescription:"\u624B\u52D5\u4E0A\u50B3\u6216\u9084\u539F\u5099\u4EFD\u6A94\u6848\uFF0C\u6700\u591A\u5141\u8A31 3 \u500B\u4E0D\u540C\u7684\u5099\u4EFD",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",updatedAt:"\u66F4\u65B0\u65BC {date}",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u4EEC\u7684<3>Twitter\uFF0C<4>Telegram \u983B\u9053\u4EE5\u53CA\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u90F5\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u983B\u9053",joinTelegramChannel:"\u95DC\u6CE8 Telegram \u983B\u9053\u77AD\u89E3\u66F4\u65B0\u8CC7\u8A0A",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",autoSync:"\u81EA\u52D5\u5B9A\u6642\u540C\u6B65",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6","edit border color":"\u8B8A\u66F4\u908A\u6846\u8272\u5F69",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",enableSubtitle:"\u958B\u555F\u5B57\u5E55\u7FFB\u8B6F",enableSubtitleDescription:"\u91DD\u5C0D youtube \u7B49\u7DB2\u7AD9\u7684\u5B57\u5E55\u5340\u57DF\u958B\u555F\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",enableSearchEnhancement:"\u958B\u555F\u641C\u7D22\u589E\u5F37",enableSearchEnhancementDescription:"\u4E2D\u6587\u641C\u7D22\u8C37\u6B4C\u6703\u5728\u53F3\u908A\u51FA\u73FE\u82F1\u6587\u7248\u8C37\u6B4C\u65B0\u805E",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerMinute":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u5206\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u4EFD\u50B3\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u85A6\uFF09, \u5C07\u6703\u5728\u55AE\u7368\u4F5C\u70BA\u4E00\u6BB5\u767C\u9001\u7D66 OpenAI","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u50B3\u9001\u767C\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",clickToDisableExtension:"\u9EDE\u9078\u505C\u7528\u5957\u4EF6",clickToEnableExtension:"\u9EDE\u9078\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u9F20\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u7F6E\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u5B57\u7B26\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8B58\u5225\u70BA\u89F8\u767C\u5B57\u7B26\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u7981\u7528\u78BA\u8A8D",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",disableTint:"* \u60A8\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u555F\u7528\u3002",searchEnhancementNotes:"\u6211\u5011\u767C\u73FE\uFF0C\u4E2D\u6587\u95DC\u9375\u8A5E\u548C\u82F1\u6587\u95DC\u9375\u8A5E\u7684\u65B0\u805E\u7D50\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u555F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u4FE1\u606F\u589E\u5F37\u529F\u80FD\u5F8C\uFF0C\u6211\u5011\u6703\u5728\u652F\u6301\u7684\u7DB2\u7AD9\uFF08\u8C37\u6B4C\u65B0\u805E\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u95DC\u9375\u8A5E\uFF09\uFF0C\u96EA\u7403\uFF0C\u6771\u65B9\u8CA1\u5BCC\u7DB2\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52D5\u7528\u82F1\u6587\u70BA\u4F60\u641C\u7D22\u540C\u6A23\u7684\u95DC\u9375\u8A5E\u4E26\u5C55\u793A\u5728\u53F3\u5074\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8A72\u529F\u80FD\u7684\u8A71\uFF0C\u53EF\u4EE5\u9078\u64C7\u7981\u7528\u5B83\u3002",option:"\u9078\u9805",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL \u548C OpenAI \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8B6F",currentAccount:"\u7576\u524D\u8CEC\u6236"};var pa={nologin:"Not logged in",login:"Login",manageAccount:"Manage Account",logout:"Logout",curentPlan:"Current Plan",endAt:"Expires",endAuto:"Auto Renew",lineBreakMaxTextCount:"Maximum number of characters allowed per sentence after line break","translate-pdf":"Click to translate PDF","noSupportTranslate-pdf":"The script is not supported, please use a plugin.","translate-firefox-local-pdf":"Click to upload PDF",enableLineBreak:"Whether to turn on automatic line wrapping for long paragraphs",sponsorLabel:"Sponsoring developers from $1 (monthly or one-time)",help:"Help",browserShortcutsNoteForFirefox:`To modify the shortcut key in Firefox browser, you need to open the extension management page 'about: addons', then click "Settings", and then click "Management shortcut key" to set it`,browserShortcutsNoteForChrome:"To modify the shortcut key in Chrome browser, you need to open the extension management page` chrome://extensions/shortcuts `) Settings, click the button below to jump to the shortcut key management page.",browserShortcutsSucks:"Please enter the shortcut key manually in the format:",enableLineBreakDescription:"After opening, a line break will be inserted at the end of each sentence in a long paragraph for easy reading","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate: Web Page&PDF Translation","browser.brandDescription":"Bilingual web page translation, also supports PDF translation, bilingual Epub eBook translation, free to use.","browser.toggleTranslatePage":"Toggle Translate Page","browser.toggleTranslateTheWholePage":"Toggle Translate the Whole Page","browser.toggleOnlyTransation":"Toggle Translate and Hide Original Text","browser.toggleTranslateToThePageEndImmediately":"Toggle Translate to the Bottom of the Page Immediately","browser.toggleTranslateTheMainPage":"Toggle Translate the Main Page","browser.openOptionsPage":"Open Settings Page","browser.toggleTranslationMask":"Toggle translation mask style","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-book","browser.openEbookBuilder":"Make Dual EPUB ebook","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.donateContext":"Sponsor Benefits","browser.translateLocalSubtitleFile":"Translate Subtitle File",confirmResetConfig:"Are you sure you want to reset the settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Create right button menu",toggleBeta:"Enable Beta experimental features",betaDescription:"Enable features that are still experimental, and translation services that are in testing. Join the <1>Telegram group to learn more.",translationLineBreakSettingDescription:"The always line break feature is suitable for layouts with less content, making the layout more neat and tidy. (Use smart line breaks for long paragraphs with more content (more than {count} characters) for saving space)",tempTranslateDomainTitle:"Open the translation time temporarily",tempTranslateDomainDescription:"When a page is translated manually, turn it temporarily on as automatic translation",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",toggleTranslatePageWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide translation display",toggleTranslationMaskWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide the blur effect of the translation",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"Multi-finger touch to show/hide only translation display",addUrlDescription:"The domain name is available and wildcard is supported e.g.: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import configuration from file",export:"Export to file",toggleDebug:"Print debug logs on the console","fingers.0":"Close","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch",mouseHoldKey:"+ {key} translate this paragraph",mouseHoldKeyAuto:"Translate the paragraph directly",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate this paragraph",mouseHoverHoldKey:"Mouse over and press X key to translate paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"All settings reset successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",goAdvancedSettings:"Go to Advanced Settings Page",goAdvancedInterfaceSettings:"Go to Advanced Custom Settings Page",advanced:"Advanced",advancedDescription:"Normally no settings are needed, keep the default. More personalized settings are provided for professional users only.",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"Translate to the bottom of the page immediately after opening the page?",feedback:"Feedback",toggleTranslatePage:"Toggle Translate",translateToThePageEndImmediatelyDescription:"Enabled will translate from the top to the bottom of the page immediately after opening. Disable will translate while reading. (Not recommended to enable)","translate all areas of the page":"Whether to translate all areas of the web page",translationAreaDescription:"When enabled, all areas of the entire web page will be translated. Disabled will use the default smart recognition and translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Directly translate the number of characters in front of the page without waiting to scroll to the visible area","interface language":"Interface language","display both the original text and the translation":"Display both the original text and the translation","keyboard shortcuts":"Keyboard shortcuts",modify:"Edit",reset:"Reset",close:"Close",homepage:"Home Page",more:"More",moreOptions:"Expand more custom settings",translateTheWholePage:"Translate the whole page area",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Dual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"Main areas of intelligent translation","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly implement the interface of the Greasemonkey extension, please use another browser that <1>supports the Greasemonkey extension such as (Firefox Nightly version)",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:"Unknown Error",canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha enabled successfully",disableAlphaSuccess:"Alpha has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(to set up)",goSettings:"to set up",needActionForOptions:"(need to set)",translationEngine:"Engine Options",sourceLanguage:"Original language",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",forThisSite:"Site:",alwaysTranslateSomeLanguage:"Always translate {language}",neverTranslateSomeLanguage:"Never translate {language}",alwaysTranslateSomeSite:"Always translate {hostname}",neverTranslateSomeSite:"Never translate {hostname}",alwaysTranslateSomeSiteOrWildSite:"Always translate this site",alwaysTranslateSomePage:"Always translate this page",add:"Add",default:"Default",forThisLanguage:"For This Language:","add url":"Add URL",edit:"Edit","translate other languages into specific language":"Translate other languages into the language you set","select translation service":"Select a translation service",language:"Language","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",Error:"Error",allowCacheTranslations:"Enable local translation caching (reduce translation requests for duplicate paragraphs)","translation display":"Translation display style","select diplay style":"Please refer to the following examples",interface:"Interface Settings",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dashed underline","translationTheme.dotted":"Dotted Underline","translationTheme.dashedBorder":"Dashed Border","translationTheme.solidBorder":"Dashed Border","translationTheme.underline":"Straight underline","translationTheme.mask":"Blur effect","translationTheme.opacity":"Opacity effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weakening","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dashed underline","translationTheme.nativeDashed":"System Dash Underline","translationTheme.nativeDotted":"System Dotted Underline","translationTheme.nativeUnderline":"System Straight Line Underline","translationTheme.wavy":"Squiggle","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeeplX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"Translate page title","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped",enableUserscriptPagePopup:"Always show Popup windows on the page",enableUserscriptPagePopupDescription:"Three-finger touch to show the Popup.","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",currentUrl:"Current URL",confirm:"Save",cancel:"Cancel",delete:"Delete","languages.auto":"Detect Language",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",authFail:"Authorization Failed",syncTitle:"Please select a file operation",import_hint:"Import",upload:"Upload",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",download:"Download",importSuccess:"Upload Success",importFail:"Import Failed",deleteFail:"Delete Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",backupToCloudDescription:"Upload or restore backup files manually, up to 3 different backups",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",updatedAt:"Updated at {date}",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. You can choose to subscribe to <6>Pro membership to use the out-of-the-box DeepL and OpenAI translation.

You can also follow out <3>Twitter, <4>Telegram Channel, and <5>Email Subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free and we hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. ",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",qqCommunities:"QQ Channel",joinTelegramChannel:"Subscribe to our Telegram channel to get the latest updates",feedbackAndJoin:"Feedback",autoSync:"Auto-Time Sync",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization","edit border color":"Edit border color",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",enableSubtitle:"enableSubtitleTranslation",enableSubtitleDescription:"Enable translations for subtitle areas on sites like youtube",isTranslateTitleDescription:"When enabled, the page title will be translated",enableSearchEnhancement:"Enable Search Enhancement",enableSearchEnhancementDescription:'After enabling, the right sidebar will automatically display "Google News" search results for corresponding English keywords on supported websites (such as Google News, Google Search (partial keywords), Xueqiu, East Money, Futu, Tiger Community).',verifyService:"Verify service",verified:"Successful","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerMinute":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next minute. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"Requests exceed this limit will be queued until the next seconds.","description.prompt":"Send as a user to OpenAI conversation, where {{text}} indicates the text of the paragraph,{{from}} indicates the language of the paragraph,{{to}} indicates the target language, you can omit {{text}}, if so, it'll be sent as a separated message","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"Send the conversation to OpenAI as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the original language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"Default is\uFF1Ageneral. Only set up if there is an API console open domain translation, support fields see <1>Here ","field.scene":"Scene","description.scene":"Default is\uFF1Ageneral. Only set up if there is an API console open Machine Translation Professional, support fields see<1>Here","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please provide a URL with the specific path.",enabledExtension:"Enable extensions",clickToDisableExtension:"Click to disable extension",clickToEnableExtension:"Click to enable the extension",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter customization content",inputOptions:"Writing",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter for translating part of the input box.",inputStartingTriggerKeyDescription:"When you don't need to translate the entire input box, the delimiter allows you to only translate the portion from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means only translating the portion from {startingKey}ja to the end of the input box.",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting is no prefix required, the partial text translation function of the input box cannot be used temporarily.",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Start the translation by quickly pressing 3 times {trailingKey}.",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time (milliseconds) for the input to end the combo trigger",spaceKey:"",noneKey:"Translate the entire text box without prefixes",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement in the following URL",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",clickToSeeQuickDemo:"Click to expand the 30s tutorial video",inputHelperInfo:`Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001". +`,PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",OPTIONS_URL:"https://dash.immersivetranslate.com/",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",MOCK:"0",DEBUG:"0",INSTALL_FROM:"chrome_zip"};var Lo=Object.create,kr=Object.defineProperty,Ro=Object.getOwnPropertyDescriptor,Cn=Object.getOwnPropertyNames,Io=Object.getPrototypeOf,Do=Object.prototype.hasOwnProperty,Oo=(e,t)=>function(){return t||(0,e[Cn(e)[0]])((t={exports:{}}).exports,t),t.exports},No=(e,t)=>{for(var r in t)kr(e,r,{get:t[r],enumerable:!0})},Ar=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Cn(t))!Do.call(e,a)&&a!==r&&kr(e,a,{get:()=>t[a],enumerable:!(n=Ro(t,a))||n.enumerable});return e},Uo=(e,t,r)=>(Ar(e,t,"default"),r&&Ar(r,t,"default")),Pn=(e,t,r)=>(r=e!=null?Lo(Io(e)):{},Ar(t||!e||!e.__esModule?kr(r,"default",{value:e,enumerable:!0}):r,e)),_n=Oo({"../esmd/npm/webextension-polyfill@0.10.0/node_modules/webextension-polyfill/dist/browser-polyfill.js"(e,t){(function(r,n){if(typeof define=="function"&&define.amd)define("webextension-polyfill",["module"],n);else if(typeof e<"u")n(t);else{var a={exports:{}};n(a),r.browser=a.exports}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:e,function(r){"use strict";if(!globalThis.chrome?.runtime?.id)throw new Error("This script should only be loaded in a browser extension.");if(typeof globalThis.browser>"u"||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){let n="The message port closed before a response was received.",a=o=>{let s={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(Object.keys(s).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class i extends WeakMap{constructor(y,w=void 0){super(w),this.createItem=y}get(y){return this.has(y)||this.set(y,this.createItem(y)),super.get(y)}}let c=S=>S&&typeof S=="object"&&typeof S.then=="function",d=(S,y)=>(...w)=>{o.runtime.lastError?S.reject(new Error(o.runtime.lastError.message)):y.singleCallbackArg||w.length<=1&&y.singleCallbackArg!==!1?S.resolve(w[0]):S.resolve(w)},u=S=>S==1?"argument":"arguments",f=(S,y)=>function(E,...I){if(I.lengthy.maxArgs)throw new Error(`Expected at most ${y.maxArgs} ${u(y.maxArgs)} for ${S}(), got ${I.length}`);return new Promise((A,q)=>{if(y.fallbackToNoCallback)try{E[S](...I,d({resolve:A,reject:q},y))}catch{E[S](...I),y.fallbackToNoCallback=!1,y.noCallback=!0,A()}else y.noCallback?(E[S](...I),A()):E[S](...I,d({resolve:A,reject:q},y))})},_=(S,y,w)=>new Proxy(y,{apply(E,I,A){return w.call(I,S,...A)}}),v=Function.call.bind(Object.prototype.hasOwnProperty),P=(S,y={},w={})=>{let E=Object.create(null),I={has(q,L){return L in S||L in E},get(q,L,Y){if(L in E)return E[L];if(!(L in S))return;let K=S[L];if(typeof K=="function")if(typeof y[L]=="function")K=_(S,S[L],y[L]);else if(v(w,L)){let ye=f(L,w[L]);K=_(S,S[L],ye)}else K=K.bind(S);else if(typeof K=="object"&&K!==null&&(v(y,L)||v(w,L)))K=P(K,y[L],w[L]);else if(v(w,"*"))K=P(K,y[L],w["*"]);else return Object.defineProperty(E,L,{configurable:!0,enumerable:!0,get(){return S[L]},set(ye){S[L]=ye}}),K;return E[L]=K,K},set(q,L,Y,K){return L in E?E[L]=Y:S[L]=Y,!0},defineProperty(q,L,Y){return Reflect.defineProperty(E,L,Y)},deleteProperty(q,L){return Reflect.deleteProperty(E,L)}},A=Object.create(S);return new Proxy(A,I)},ee=S=>({addListener(y,w,...E){y.addListener(S.get(w),...E)},hasListener(y,w){return y.hasListener(S.get(w))},removeListener(y,w){y.removeListener(S.get(w))}}),Z=new i(S=>typeof S!="function"?S:function(w){let E=P(w,{},{getContent:{minArgs:0,maxArgs:0}});S(E)}),m=new i(S=>typeof S!="function"?S:function(w,E,I){let A=!1,q,L=new Promise(X=>{q=function(C){A=!0,X(C)}}),Y;try{Y=S(w,E,q)}catch(X){Y=Promise.reject(X)}let K=Y!==!0&&c(Y);if(Y!==!0&&!K&&!A)return!1;let ye=X=>{X.then(C=>{I(C)},C=>{let W;C&&(C instanceof Error||typeof C.message=="string")?W=C.message:W="An unexpected error occurred",I({__mozWebExtensionPolyfillReject__:!0,message:W})}).catch(C=>{})};return ye(K?Y:L),!0}),ve=({reject:S,resolve:y},w)=>{o.runtime.lastError?o.runtime.lastError.message===n?y():S(new Error(o.runtime.lastError.message)):w&&w.__mozWebExtensionPolyfillReject__?S(new Error(w.message)):y(w)},G=(S,y,w,...E)=>{if(E.lengthy.maxArgs)throw new Error(`Expected at most ${y.maxArgs} ${u(y.maxArgs)} for ${S}(), got ${E.length}`);return new Promise((I,A)=>{let q=ve.bind(null,{resolve:I,reject:A});E.push(q),w.sendMessage(...E)})},te={devtools:{network:{onRequestFinished:ee(Z)}},runtime:{onMessage:ee(m),onMessageExternal:ee(m),sendMessage:G.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:G.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},be={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return s.privacy={network:{"*":be},services:{"*":be},websites:{"*":be}},P(o,te,s)};r.exports=a(chrome)}else r.exports=globalThis.browser})}}),En={};No(En,{default:()=>Qt});var Bo=Pn(_n());Uo(En,Pn(_n()));var{default:kn,...Fo}=Bo,Qt=kn!==void 0?kn:Fo;globalThis.immersiveTranslateBrowserAPI=Qt;function Mt(){let e,t="pending",r=new Promise((n,a)=>{e={async resolve(o){await o,t="fulfilled",n(o)},reject(o){t="rejected",a(o)}}});return Object.defineProperty(r,"state",{get:()=>t}),Object.assign(r,e)}function Cr(e,t={}){let{signal:r,persistent:n}=t;return r?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((a,o)=>{let s=()=>{clearTimeout(c),o(new DOMException("Delay was aborted.","AbortError"))},c=setTimeout(()=>{r?.removeEventListener("abort",s),a()},e);if(r?.addEventListener("abort",s,{once:!0}),n===!1)try{Deno.unrefTimer(c)}catch(d){if(!(d instanceof ReferenceError))throw d}})}var Mn=class{#e=0;#t=[];#r=[];#n=Mt();add(t){++this.#e,this.#a(t[Symbol.asyncIterator]())}async#a(t){try{let{value:r,done:n}=await t.next();n?--this.#e:this.#t.push({iterator:t,value:r})}catch(r){this.#r.push(r)}this.#n.resolve()}async*iterate(){for(;this.#e>0;){await this.#n;for(let t=0;tmi,bgBlue:()=>fi,bgBrightBlack:()=>Ti,bgBrightBlue:()=>Ai,bgBrightCyan:()=>Ci,bgBrightGreen:()=>vi,bgBrightMagenta:()=>ki,bgBrightRed:()=>xi,bgBrightWhite:()=>Pi,bgBrightYellow:()=>Si,bgCyan:()=>yi,bgGreen:()=>pi,bgMagenta:()=>bi,bgRed:()=>gi,bgRgb24:()=>Li,bgRgb8:()=>Ei,bgWhite:()=>wi,bgYellow:()=>hi,black:()=>Qo,blue:()=>ei,bold:()=>Wo,brightBlack:()=>In,brightBlue:()=>li,brightCyan:()=>ui,brightGreen:()=>ii,brightMagenta:()=>ci,brightRed:()=>oi,brightWhite:()=>di,brightYellow:()=>si,cyan:()=>ri,dim:()=>zo,getColorEnabled:()=>qo,gray:()=>ai,green:()=>Jo,hidden:()=>$o,inverse:()=>Vo,italic:()=>Ho,magenta:()=>ti,red:()=>Zo,reset:()=>Ko,rgb24:()=>Mi,rgb8:()=>_i,setColorEnabled:()=>jo,strikethrough:()=>Yo,stripColor:()=>Ii,underline:()=>Go,white:()=>ni,yellow:()=>Xo});var{Deno:Ln}=globalThis,Rn=typeof Ln?.noColor=="boolean"?Ln.noColor:!0,Pr=!Rn;function jo(e){Rn||(Pr=e)}function qo(){return Pr}function F(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function j(e,t){return Pr?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function Ko(e){return j(e,F([0],0))}function Wo(e){return j(e,F([1],22))}function zo(e){return j(e,F([2],22))}function Ho(e){return j(e,F([3],23))}function Go(e){return j(e,F([4],24))}function Vo(e){return j(e,F([7],27))}function $o(e){return j(e,F([8],28))}function Yo(e){return j(e,F([9],29))}function Qo(e){return j(e,F([30],39))}function Zo(e){return j(e,F([31],39))}function Jo(e){return j(e,F([32],39))}function Xo(e){return j(e,F([33],39))}function ei(e){return j(e,F([34],39))}function ti(e){return j(e,F([35],39))}function ri(e){return j(e,F([36],39))}function ni(e){return j(e,F([37],39))}function ai(e){return In(e)}function In(e){return j(e,F([90],39))}function oi(e){return j(e,F([91],39))}function ii(e){return j(e,F([92],39))}function si(e){return j(e,F([93],39))}function li(e){return j(e,F([94],39))}function ci(e){return j(e,F([95],39))}function ui(e){return j(e,F([96],39))}function di(e){return j(e,F([97],39))}function mi(e){return j(e,F([40],49))}function gi(e){return j(e,F([41],49))}function pi(e){return j(e,F([42],49))}function hi(e){return j(e,F([43],49))}function fi(e){return j(e,F([44],49))}function bi(e){return j(e,F([45],49))}function yi(e){return j(e,F([46],49))}function wi(e){return j(e,F([47],49))}function Ti(e){return j(e,F([100],49))}function xi(e){return j(e,F([101],49))}function vi(e){return j(e,F([102],49))}function Si(e){return j(e,F([103],49))}function Ai(e){return j(e,F([104],49))}function ki(e){return j(e,F([105],49))}function Ci(e){return j(e,F([106],49))}function Pi(e){return j(e,F([107],49))}function at(e,t=255,r=0){return Math.trunc(Math.max(Math.min(e,t),r))}function _i(e,t){return j(e,F([38,5,at(t)],39))}function Ei(e,t){return j(e,F([48,5,at(t)],49))}function Mi(e,t){return typeof t=="number"?j(e,F([38,2,t>>16&255,t>>8&255,t&255],39)):j(e,F([38,2,at(t.r),at(t.g),at(t.b)],39))}function Li(e,t){return typeof t=="number"?j(e,F([48,2,t>>16&255,t>>8&255,t&255],49)):j(e,F([48,2,at(t.r),at(t.g),at(t.b)],49))}var Ri=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function Ii(e){return e.replace(Ri,"")}var _r=class extends Error{constructor(t,r){super(`Exceeded max retry count (${r})`),this.name="RetryError",this.cause=t}},Di={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function Er(e,t){let r={...Di,...t};if(r.maxTimeout>=0&&r.minTimeout>r.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let n=r.minTimeout,a;for(let o=0;osetTimeout(i,n)),n*=r.multiplier,n=Math.max(n,r.minTimeout),r.maxTimeout>=0&&(n=Math.min(n,r.maxTimeout)),a=s}throw new _r(a,r.maxAttempts)}var Kc=Number.isNaN||function(e){return typeof e=="number"&&e!==e};var Zt=globalThis||(typeof window<"u"?window:self),Ni=Object.create,Lr=Object.defineProperty,Ui=Object.getOwnPropertyDescriptor,Bi=Object.getOwnPropertyNames,Fi=Object.getPrototypeOf,ji=Object.prototype.hasOwnProperty,qi=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ki=(e,t)=>{for(var r in t)Lr(e,r,{get:t[r],enumerable:!0})},Mr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Bi(t))!ji.call(e,a)&&a!==r&&Lr(e,a,{get:()=>t[a],enumerable:!(n=Ui(t,a))||n.enumerable});return e},Wi=(e,t,r)=>(Mr(e,t,"default"),r&&Mr(r,t,"default")),On=(e,t,r)=>(r=e!=null?Ni(Fi(e)):{},Mr(t||!e||!e.__esModule?Lr(r,"default",{value:e,enumerable:!0}):r,e)),Nn=qi((e,t)=>{var r="Expected a function",n=NaN,a="[object Symbol]",o=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt,u=typeof Zt=="object"&&Zt&&Zt.Object===Object&&Zt,f=typeof self=="object"&&self&&self.Object===Object&&self,_=u||f||Function("return this")(),v=Object.prototype,P=v.toString,ee=Math.max,Z=Math.min,m=function(){return _.Date.now()};function ve(w,E,I){var A,q,L,Y,K,ye,X=0,C=!1,W=!1,Ce=!0;if(typeof w!="function")throw new TypeError(r);E=y(E)||0,te(I)&&(C=!!I.leading,W="maxWait"in I,L=W?ee(y(I.maxWait)||0,E):L,Ce="trailing"in I?!!I.trailing:Ce);function ae(B){var z=A,Q=q;return A=q=void 0,X=B,Y=w.apply(Q,z),Y}function p(B){return X=B,K=setTimeout(V,E),C?ae(B):Y}function k(B){var z=B-ye,Q=B-X,re=E-z;return W?Z(re,L-Q):re}function M(B){var z=B-ye,Q=B-X;return ye===void 0||z>=E||z<0||W&&Q>=L}function V(){var B=m();if(M(B))return U(B);K=setTimeout(V,k(B))}function U(B){return K=void 0,Ce&&A?ae(B):(A=q=void 0,Y)}function ce(){K!==void 0&&clearTimeout(K),X=0,A=ye=q=K=void 0}function we(){return K===void 0?Y:U(m())}function pe(){var B=m(),z=M(B);if(A=arguments,q=this,ye=B,z){if(K===void 0)return p(ye);if(W)return K=setTimeout(V,E),ae(ye)}return K===void 0&&(K=setTimeout(V,E)),Y}return pe.cancel=ce,pe.flush=we,pe}function G(w,E,I){var A=!0,q=!0;if(typeof w!="function")throw new TypeError(r);return te(I)&&(A="leading"in I?!!I.leading:A,q="trailing"in I?!!I.trailing:q),ve(w,E,{leading:A,maxWait:E,trailing:q})}function te(w){var E=typeof w;return!!w&&(E=="object"||E=="function")}function be(w){return!!w&&typeof w=="object"}function S(w){return typeof w=="symbol"||be(w)&&P.call(w)==a}function y(w){if(typeof w=="number")return w;if(S(w))return n;if(te(w)){var E=typeof w.valueOf=="function"?w.valueOf():w;w=te(E)?E+"":E}if(typeof w!="string")return w===0?w:+w;w=w.replace(o,"");var I=i.test(w);return I||c.test(w)?d(w.slice(2),I?2:8):s.test(w)?n:+w}t.exports=G}),Un={};Ki(Un,{default:()=>Rr});var zi=On(Nn());Wi(Un,On(Nn()));var{default:Dn,...Hi}=zi,Rr=Dn!==void 0?Dn:Hi;var Gi=Object.create,Dr=Object.defineProperty,Vi=Object.getOwnPropertyDescriptor,$i=Object.getOwnPropertyNames,Yi=Object.getPrototypeOf,Qi=Object.prototype.hasOwnProperty,Zi=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ji=(e,t)=>{for(var r in t)Dr(e,r,{get:t[r],enumerable:!0})},Ir=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of $i(t))!Qi.call(e,a)&&a!==r&&Dr(e,a,{get:()=>t[a],enumerable:!(n=Vi(t,a))||n.enumerable});return e},Xi=(e,t,r)=>(Ir(e,t,"default"),r&&Ir(r,t,"default")),Fn=(e,t,r)=>(r=e!=null?Gi(Yi(e)):{},Ir(t||!e||!e.__esModule?Dr(r,"default",{value:e,enumerable:!0}):r,e)),jn=Zi((e,t)=>{(function(r,n){typeof e=="object"&&typeof t=="object"?t.exports=n():typeof define=="function"&&define.amd?define([],n):typeof e=="object"?e.notie=n():r.notie=n()})(e,function(){return function(r){function n(o){if(a[o])return a[o].exports;var s=a[o]={i:o,l:!1,exports:{}};return r[o].call(s.exports,s,s.exports,n),s.l=!0,s.exports}var a={};return n.m=r,n.c=a,n.i=function(o){return o},n.d=function(o,s,i){n.o(o,s)||Object.defineProperty(o,s,{configurable:!1,enumerable:!0,get:i})},n.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(s,"a",s),s},n.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},n.p="",n(n.s=1)}([function(r,n){r.exports=function(a){return a.webpackPolyfill||(a.deprecate=function(){},a.paths=[],a.children||(a.children=[]),Object.defineProperty(a,"loaded",{enumerable:!0,get:function(){return a.l}}),Object.defineProperty(a,"id",{enumerable:!0,get:function(){return a.i}}),a.webpackPolyfill=1),a}},function(r,n,a){"use strict";(function(o){var s,i,c,d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u};(function(u,f){d(n)==="object"&&d(o)==="object"?o.exports=f():(i=[],s=f,c=typeof s=="function"?s.apply(n,i):s,c!==void 0&&(o.exports=c))})(void 0,function(){return function(u){function f(v){if(_[v])return _[v].exports;var P=_[v]={i:v,l:!1,exports:{}};return u[v].call(P.exports,P,P.exports,f),P.l=!0,P.exports}var _={};return f.m=u,f.c=_,f.i=function(v){return v},f.d=function(v,P,ee){f.o(v,P)||Object.defineProperty(v,P,{configurable:!1,enumerable:!0,get:ee})},f.n=function(v){var P=v&&v.__esModule?function(){return v.default}:function(){return v};return f.d(P,"a",P),P},f.o=function(v,P){return Object.prototype.hasOwnProperty.call(v,P)},f.p="",f(f.s=0)}([function(u,f,_){function v(p,k){var M={};for(var V in p)k.indexOf(V)>=0||Object.prototype.hasOwnProperty.call(p,V)&&(M[V]=p[V]);return M}Object.defineProperty(f,"__esModule",{value:!0});var P=typeof Symbol=="function"&&d(Symbol.iterator)==="symbol"?function(p){return typeof p>"u"?"undefined":d(p)}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p>"u"?"undefined":d(p)},ee=Object.assign||function(p){for(var k=1;k'+V+"",Q.onclick=function(){return q(re,z)},Q.listener=function(R){(E(R)||I(R))&&K()},A(Q,z),ce&&ce<1&&(ce=1),!pe&&ce&&te(ce).then(function(){return q(re,z)})},X=f.force=function(p,k){var M=p.type,V=M===void 0?5:M,U=p.text,ce=p.buttonText,we=ce===void 0?"OK":ce,pe=p.callback,B=p.position,z=B===void 0?m.positions.force||z.top:B;be(),K();var Q=document.createElement("div"),re=S();Q.id=re;var R=document.createElement("div");R.classList.add(m.classes.textbox),R.classList.add(m.classes.backgroundInfo),R.innerHTML='
'+U+"
";var J=document.createElement("div");J.classList.add(m.classes.button),J.classList.add(y[V]),J.innerHTML=we,J.onclick=function(){q(re,z),Y(),pe?pe():k&&k()},Q.appendChild(R),Q.appendChild(J),Q.listener=function(ue){E(ue)&&J.click()},A(Q,z),L()},C=f.confirm=function(p,k,M){var V=p.text,U=p.submitText,ce=U===void 0?"Yes":U,we=p.cancelText,pe=we===void 0?"Cancel":we,B=p.submitCallback,z=p.cancelCallback,Q=p.position,re=Q===void 0?m.positions.confirm||re.top:Q;be(),K();var R=document.createElement("div"),J=S();R.id=J;var ue=document.createElement("div");ue.classList.add(m.classes.textbox),ue.classList.add(m.classes.backgroundInfo),ue.innerHTML='
'+V+"
";var ie=document.createElement("div");ie.classList.add(m.classes.button),ie.classList.add(m.classes.elementHalf),ie.classList.add(m.classes.backgroundSuccess),ie.innerHTML=ce,ie.onclick=function(){q(J,re),Y(),B?B():k&&k()};var N=document.createElement("div");N.classList.add(m.classes.button),N.classList.add(m.classes.elementHalf),N.classList.add(m.classes.backgroundError),N.innerHTML=pe,N.onclick=function(){q(J,re),Y(),z?z():M&&M()},R.appendChild(ue),R.appendChild(ie),R.appendChild(N),R.listener=function(Se){E(Se)?ie.click():I(Se)&&N.click()},A(R,re),L(R,re)},W=function(p,k,M){var V=p.text,U=p.submitText,ce=U===void 0?"Submit":U,we=p.cancelText,pe=we===void 0?"Cancel":we,B=p.submitCallback,z=p.cancelCallback,Q=p.position,re=Q===void 0?m.positions.input||re.top:Q,R=v(p,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);be(),K();var J=document.createElement("div"),ue=S();J.id=ue;var ie=document.createElement("div");ie.classList.add(m.classes.textbox),ie.classList.add(m.classes.backgroundInfo),ie.innerHTML='
'+V+"
";var N=document.createElement("input");N.classList.add(m.classes.inputField),N.setAttribute("autocapitalize",R.autocapitalize||"none"),N.setAttribute("autocomplete",R.autocomplete||"off"),N.setAttribute("autocorrect",R.autocorrect||"off"),N.setAttribute("autofocus",R.autofocus||"true"),N.setAttribute("inputmode",R.inputmode||"verbatim"),N.setAttribute("max",R.max||""),N.setAttribute("maxlength",R.maxlength||""),N.setAttribute("min",R.min||""),N.setAttribute("minlength",R.minlength||""),N.setAttribute("placeholder",R.placeholder||""),N.setAttribute("spellcheck",R.spellcheck||"default"),N.setAttribute("step",R.step||"any"),N.setAttribute("type",R.type||"text"),N.value=R.value||"",R.allowed&&(N.oninput=function(){var me=void 0;if(Array.isArray(R.allowed)){for(var he="",Oe=R.allowed,ze=0;ze'+M+"",z.appendChild(re),we.forEach(function(J,ue){var ie=J.type,N=ie===void 0?1:ie,Se=J.text,De=J.handler,me=document.createElement("div");me.classList.add(y[N]),me.classList.add(m.classes.button),me.classList.add(m.classes.selectChoice);var he=we[ue+1];he&&!he.type&&(he.type=1),he&&he.type===N&&me.classList.add(m.classes.selectChoiceRepeated),me.innerHTML=Se,me.onclick=function(){q(Q,B),Y(),De()},z.appendChild(me)});var R=document.createElement("div");R.classList.add(m.classes.backgroundNeutral),R.classList.add(m.classes.button),R.innerHTML=U,R.onclick=function(){q(Q,B),Y(),ce?ce():k&&k()},z.appendChild(R),z.listener=function(J){I(J)&&R.click()},A(z,B),L(z,B)},ae=f.date=function(p,k,M){var V=p.value,U=V===void 0?new Date:V,ce=p.submitText,we=ce===void 0?"OK":ce,pe=p.cancelText,B=pe===void 0?"Cancel":pe,z=p.submitCallback,Q=p.cancelCallback,re=p.position,R=re===void 0?m.positions.date||R.top:re;be(),K();var J="▾",ue=document.createElement("div"),ie=document.createElement("div"),N=document.createElement("div"),Se=function(de){ue.innerHTML=m.dateMonths[de.getMonth()],ie.innerHTML=de.getDate(),N.innerHTML=de.getFullYear()},De=function(de){var oe=new Date(U.getFullYear(),U.getMonth()+1,0).getDate(),Ke=de.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(Ke)>oe&&(Ke=oe.toString()),de.target.textContent=Ke,Number(Ke)<1&&(Ke="1"),U.setDate(Number(Ke))},me=function(de){var oe=de.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);de.target.textContent=oe,U.setFullYear(Number(oe))},he=function(de){Se(U)},Oe=function(de){var oe=new Date(U.getFullYear(),U.getMonth()+de+1,0).getDate();U.getDate()>oe&&U.setDate(oe),U.setMonth(U.getMonth()+de),Se(U)},ze=function(de){U.setDate(U.getDate()+de),Se(U)},Et=function(de){var oe=U.getFullYear()+de;oe<0?U.setFullYear(0):U.setFullYear(U.getFullYear()+de),Se(U)},Ze=document.createElement("div"),lt=S();Ze.id=lt;var yt=document.createElement("div");yt.classList.add(m.classes.backgroundInfo);var _e=document.createElement("div");_e.classList.add(m.classes.dateSelectorInner);var Ve=document.createElement("div");Ve.classList.add(m.classes.button),Ve.classList.add(m.classes.elementThird),Ve.classList.add(m.classes.dateSelectorUp),Ve.innerHTML=J;var Ee=document.createElement("div");Ee.classList.add(m.classes.button),Ee.classList.add(m.classes.elementThird),Ee.classList.add(m.classes.dateSelectorUp),Ee.innerHTML=J;var qe=document.createElement("div");qe.classList.add(m.classes.button),qe.classList.add(m.classes.elementThird),qe.classList.add(m.classes.dateSelectorUp),qe.innerHTML=J,ue.classList.add(m.classes.element),ue.classList.add(m.classes.elementThird),ue.innerHTML=m.dateMonths[U.getMonth()],ie.classList.add(m.classes.element),ie.classList.add(m.classes.elementThird),ie.setAttribute("contentEditable",!0),ie.addEventListener("input",De),ie.addEventListener("blur",he),ie.innerHTML=U.getDate(),N.classList.add(m.classes.element),N.classList.add(m.classes.elementThird),N.setAttribute("contentEditable",!0),N.addEventListener("input",me),N.addEventListener("blur",he),N.innerHTML=U.getFullYear();var et=document.createElement("div");et.classList.add(m.classes.button),et.classList.add(m.classes.elementThird),et.innerHTML=J;var tt=document.createElement("div");tt.classList.add(m.classes.button),tt.classList.add(m.classes.elementThird),tt.innerHTML=J;var ct=document.createElement("div");ct.classList.add(m.classes.button),ct.classList.add(m.classes.elementThird),ct.innerHTML=J,Ve.onclick=function(){return Oe(1)},Ee.onclick=function(){return ze(1)},qe.onclick=function(){return Et(1)},et.onclick=function(){return Oe(-1)},tt.onclick=function(){return ze(-1)},ct.onclick=function(){return Et(-1)};var Ne=document.createElement("div");Ne.classList.add(m.classes.button),Ne.classList.add(m.classes.elementHalf),Ne.classList.add(m.classes.backgroundSuccess),Ne.innerHTML=we,Ne.onclick=function(){q(lt,R),Y(),z?z(U):k&&k(U)};var rt=document.createElement("div");rt.classList.add(m.classes.button),rt.classList.add(m.classes.elementHalf),rt.classList.add(m.classes.backgroundError),rt.innerHTML=B,rt.onclick=function(){q(lt,R),Y(),Q?Q(U):M&&M(U)},_e.appendChild(Ve),_e.appendChild(Ee),_e.appendChild(qe),_e.appendChild(ue),_e.appendChild(ie),_e.appendChild(N),_e.appendChild(et),_e.appendChild(tt),_e.appendChild(ct),yt.appendChild(_e),Ze.appendChild(yt),Ze.appendChild(Ne),Ze.appendChild(rt),Ze.listener=function(de){E(de)?Ne.click():I(de)&&rt.click()},A(Ze,R),L(Ze,R)};f.default={alert:ye,force:X,confirm:C,input:W,select:Ce,date:ae,setOptions:ve,hideAlerts:K}}])})}).call(n,a(0)(r))}])})}),qn={};Ji(qn,{default:()=>Jt});var es=Fn(jn());Xi(qn,Fn(jn()));var{default:Bn,...ts}=es,Jt=Bn!==void 0?Bn:ts;var Or=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Nr(e,t,r,n){e.addEventListener?e.addEventListener(t,r,n):e.attachEvent&&e.attachEvent("on".concat(t),function(){r(window.event)})}function Gn(e,t){for(var r=t.slice(0,t.length-1),n=0;n=0;)t[r-1]+=",",t.splice(r,1),r=t.lastIndexOf("");return t}function rs(e,t){for(var r=e.length>=t.length?e:t,n=e.length>=t.length?t:e,a=!0,o=0;o=0&&le.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&le.splice(0,le.length),(t===93||t===224)&&(t=91),t in Pe){Pe[t]=!1;for(var n in Xe)Xe[n]===t&&(Je[n]=!1)}}function ds(e){if(typeof e>"u")Object.keys(Te).forEach(function(s){return delete Te[s]});else if(Array.isArray(e))e.forEach(function(s){s.key&&Ur(s)});else if(typeof e=="object")e.key&&Ur(e);else if(typeof e=="string"){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n1?Gn(Xe,c):[];Te[f]=Te[f].filter(function(v){var P=n?v.method===n:!0;return!(P&&v.scope===r&&rs(v.mods,_))})}})};function Wn(e,t,r,n){if(t.element===n){var a;if(t.scope===r||t.scope==="all"){a=t.mods.length>0;for(var o in Pe)Object.prototype.hasOwnProperty.call(Pe,o)&&(!Pe[o]&&t.mods.indexOf(+o)>-1||Pe[o]&&t.mods.indexOf(+o)===-1)&&(a=!1);(t.mods.length===0&&!Pe[16]&&!Pe[18]&&!Pe[17]&&!Pe[91]||a||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function zn(e,t){var r=Te["*"],n=e.keyCode||e.which||e.charCode;if(Je.filter.call(this,e)){if((n===93||n===224)&&(n=91),le.indexOf(n)===-1&&n!==229&&le.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(P){var ee=Fr[P];e[P]&&le.indexOf(ee)===-1?le.push(ee):!e[P]&&le.indexOf(ee)>-1?le.splice(le.indexOf(ee),1):P==="metaKey"&&e[P]&&le.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(le=le.slice(le.indexOf(ee))))}),n in Pe){Pe[n]=!0;for(var a in Xe)Xe[a]===n&&(Je[a]=!0);if(!r)return}for(var o in Pe)Object.prototype.hasOwnProperty.call(Pe,o)&&(Pe[o]=e[Fr[o]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(le.indexOf(17)===-1&&le.push(17),le.indexOf(18)===-1&&le.push(18),Pe[17]=!0,Pe[18]=!0);var s=It();if(r)for(var i=0;i-1}function Je(e,t,r){le=[];var n=Vn(e),a=[],o="all",s=document,i=0,c=!1,d=!0,u="+",f=!1;for(r===void 0&&typeof t=="function"&&(r=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(o=t.scope),t.element&&(s=t.element),t.keyup&&(c=t.keyup),t.keydown!==void 0&&(d=t.keydown),t.capture!==void 0&&(f=t.capture),typeof t.splitKey=="string"&&(u=t.splitKey)),typeof t=="string"&&(o=t);i1&&(a=Gn(Xe,e)),e=e[e.length-1],e=e==="*"?"*":er(e),e in Te||(Te[e]=[]),Te[e].push({keyup:c,keydown:d,scope:o,mods:a,shortcut:n[i],method:r,key:n[i],splitKey:u,element:s});typeof s<"u"&&!ms(s)&&window&&(Yn.push(s),Nr(s,"keydown",function(_){zn(_,s)},f),Kn||(Kn=!0,Nr(window,"focus",function(){le=[]},f)),Nr(s,"keyup",function(_){zn(_,s),us(_)},f))}function gs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(Te).forEach(function(r){var n=Te[r].filter(function(a){return a.scope===t&&a.shortcut===e});n.forEach(function(a){a&&a.method&&a.method()})})}var Br={getPressedKeyString:is,setScope:Qn,getScope:It,deleteScope:cs,getPressedKeyCodes:os,isPressed:ls,filter:ss,trigger:gs,unbind:ds,keyMap:Rt,modifier:Xe,modifierMap:Fr};for(Xt in Br)Object.prototype.hasOwnProperty.call(Br,Xt)&&(Je[Xt]=Br[Xt]);var Xt;typeof document<"u"&&(Hn=window.hotkeys,Je.noConflict=function(e){return e&&window.hotkeys===Je&&(window.hotkeys=Hn),Je},window.hotkeys=Je);var Hn;var ps={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},Jn={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},fe={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Be={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},ot={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},h=class{static getFirstMatch(e,t){let r=t.match(e);return r&&r.length>0&&r[1]||""}static getSecondMatch(e,t){let r=t.match(e);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(e,t,r){if(e.test(t))return r}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,r=!1){let n=h.getVersionPrecision(e),a=h.getVersionPrecision(t),o=Math.max(n,a),s=0,i=h.map([e,t],c=>{let d=o-h.getVersionPrecision(c),u=c+new Array(d+1).join(".0");return h.map(u.split("."),f=>new Array(20-f.length).join("0")+f).reverse()});for(r&&(s=o-Math.min(n,a)),o-=1;o>=s;){if(i[0][o]>i[1][o])return 1;if(i[0][o]===i[1][o]){if(o===s)return 0;o-=1}else if(i[0][o]{r[s]=o[s]})}return e}static getBrowserAlias(e){return ps[e]}static getBrowserTypeByAlias(e){return Jn[e]||""}},se=/version\/(\d+(\.?_?\d+)+)/i,hs=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},r=h.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},r=h.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},r=h.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},r=h.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},r=h.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},r=h.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},r=h.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},r=h.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=h.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},r=h.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},r=h.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},r=h.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},r=h.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},r=h.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},r=h.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},r=h.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},r=h.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},r=h.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},r=h.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},r=h.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},r=h.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},r=h.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},r=h.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},r=h.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},r=h.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},r=h.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},r=h.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test(e){let t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe(e){let t={name:"Android Browser"},r=h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},r=h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},r=h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,r=/^(.*)\/(.*)[ \t]\((.*)/,n=e.search("\\(")!==-1?r:t;return{name:h.getFirstMatch(n,e),version:h.getSecondMatch(n,e)}}}],fs=hs,bs=[{test:[/Roku\/DVP/],describe(e){let t=h.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Be.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=h.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Be.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=h.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=h.getWindowsVersionName(t);return{name:Be.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:Be.iOS},r=h.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe(e){let t=h.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=h.getMacOSVersionName(t),n={name:Be.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=h.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Be.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe(e){let t=h.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=h.getAndroidVersionName(t),n={name:Be.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=h.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:Be.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=h.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||h.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||h.getFirstMatch(/\bbb(\d+)/i,e);return{name:Be.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=h.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Be.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=h.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Be.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Be.Linux}}},{test:[/CrOS/],describe(){return{name:Be.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=h.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Be.PlayStation4,version:t}}}],ys=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=h.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:fe.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:fe.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:fe.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:fe.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:fe.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:fe.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:fe.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe(e){let t=h.getFirstMatch(/(ipod|iphone)/i,e);return{type:fe.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:fe.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:fe.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:fe.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:fe.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:fe.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:fe.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:fe.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:fe.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:fe.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:fe.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:fe.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:fe.tv}}}],ws=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:ot.Blink};let t=h.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:ot.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:ot.Trident},r=h.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:ot.Presto},r=h.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test(e){let t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe(e){let t={name:ot.Gecko},r=h.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:ot.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:ot.WebKit},r=h.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}],Ts=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=h.find(fs,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=h.find(bs,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=h.find(ys,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=h.find(ws,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return h.assign({},this.parsedResult)}satisfies(e){let t={},r=0,n={},a=0;if(Object.keys(e).forEach(o=>{let s=e[o];typeof s=="string"?(n[o]=s,a+=1):typeof s=="object"&&(t[o]=s,r+=1)}),r>0){let o=Object.keys(t),s=h.find(o,c=>this.isOS(c));if(s){let c=this.satisfies(t[s]);if(c!==void 0)return c}let i=h.find(o,c=>this.isPlatform(c));if(i){let c=this.satisfies(t[i]);if(c!==void 0)return c}}if(a>0){let o=Object.keys(n),s=h.find(o,i=>this.isBrowser(i,!0));if(s!==void 0)return this.compareVersion(n[s])}}isBrowser(e,t=!1){let r=this.getBrowserName().toLowerCase(),n=e.toLowerCase(),a=h.getBrowserTypeByAlias(n);return t&&a&&(n=a.toLowerCase()),n===r}compareVersion(e){let t=[0],r=e,n=!1,a=this.getBrowserVersion();if(typeof a=="string")return e[0]===">"||e[0]==="<"?(r=e.substr(1),e[1]==="="?(n=!0,r=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?r=e.substr(1):e[0]==="~"&&(n=!0,r=e.substr(1)),t.indexOf(h.compareVersions(a,r,n))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},Zn=Ts,xs=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new Zn(e,t)}static parse(e){return new Zn(e).getResult()}static get BROWSER_MAP(){return Jn}static get ENGINE_MAP(){return ot}static get OS_MAP(){return Be}static get PLATFORMS_MAP(){return fe}},tr=xs;var{entries:ia,setPrototypeOf:Xn,isFrozen:vs,getPrototypeOf:Ss,getOwnPropertyDescriptor:As}=Object,{freeze:Fe,seal:Ye,create:ks}=Object,{apply:Hr,construct:Gr}=typeof Reflect<"u"&&Reflect;Hr||(Hr=function(e,t,r){return e.apply(t,r)});Fe||(Fe=function(e){return e});Ye||(Ye=function(e){return e});Gr||(Gr=function(e,t){return new e(...t)});var Cs=Ge(Array.prototype.forEach),ea=Ge(Array.prototype.pop),Dt=Ge(Array.prototype.push),ar=Ge(String.prototype.toLowerCase),jr=Ge(String.prototype.toString),Ps=Ge(String.prototype.match),$e=Ge(String.prototype.replace),_s=Ge(String.prototype.indexOf),Es=Ge(String.prototype.trim),We=Ge(RegExp.prototype.test),Ot=Ms(TypeError);function Ge(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a/gm),Os=Ye(/\${[\w\W]*}/gm),Ns=Ye(/^data-[\-\w.\u00B7-\uFFFF]/),Us=Ye(/^aria-[\-\w]+$/),sa=Ye(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Bs=Ye(/^(?:\w+script|data):/i),Fs=Ye(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),la=Ye(/^html$/i),oa=Object.freeze({__proto__:null,MUSTACHE_EXPR:Is,ERB_EXPR:Ds,TMPLIT_EXPR:Os,DATA_ATTR:Ns,ARIA_ATTR:Us,IS_ALLOWED_URI:sa,IS_SCRIPT_OR_DATA:Bs,ATTR_WHITESPACE:Fs,DOCTYPE_NAME:la}),js=()=>typeof window>"u"?null:window,qs=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null,n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(r=t.getAttribute(n));let a="dompurify"+(r?"#"+r:"");try{return e.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return null}};function ca(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:js(),t=l=>ca(l);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let r=e.document,n=r.currentScript,{document:a}=e,{DocumentFragment:o,HTMLTemplateElement:s,Node:i,Element:c,NodeFilter:d,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:_,trustedTypes:v}=e,P=c.prototype,ee=rr(P,"cloneNode"),Z=rr(P,"nextSibling"),m=rr(P,"childNodes"),ve=rr(P,"parentNode");if(typeof s=="function"){let l=a.createElement("template");l.content&&l.content.ownerDocument&&(a=l.content.ownerDocument)}let G,te="",{implementation:be,createNodeIterator:S,createDocumentFragment:y,getElementsByTagName:w}=a,{importNode:E}=r,I={};t.isSupported=typeof ia=="function"&&typeof ve=="function"&&be&&be.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:A,ERB_EXPR:q,TMPLIT_EXPR:L,DATA_ATTR:Y,ARIA_ATTR:K,IS_SCRIPT_OR_DATA:ye,ATTR_WHITESPACE:X}=oa,{IS_ALLOWED_URI:C}=oa,W=null,Ce=$({},[...ta,...qr,...Kr,...Wr,...ra]),ae=null,p=$({},[...na,...zr,...aa,...nr]),k=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),M=null,V=null,U=!0,ce=!0,we=!1,pe=!0,B=!1,z=!1,Q=!1,re=!1,R=!1,J=!1,ue=!1,ie=!0,N=!1,Se="user-content-",De=!0,me=!1,he={},Oe=null,ze=$({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Et=null,Ze=$({},["audio","video","img","source","image","track"]),lt=null,yt=$({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),_e="http://www.w3.org/1998/Math/MathML",Ve="http://www.w3.org/2000/svg",Ee="http://www.w3.org/1999/xhtml",qe=Ee,et=!1,tt=null,ct=$({},[_e,Ve,Ee],jr),Ne,rt=["application/xhtml+xml","text/html"],de="text/html",oe,Ke=null,So=a.createElement("form"),hn=function(l){return l instanceof RegExp||l instanceof Function},xr=function(l){if(!(Ke&&Ke===l)){if((!l||typeof l!="object")&&(l={}),l=xt(l),Ne=rt.indexOf(l.PARSER_MEDIA_TYPE)===-1?Ne=de:Ne=l.PARSER_MEDIA_TYPE,oe=Ne==="application/xhtml+xml"?jr:ar,W="ALLOWED_TAGS"in l?$({},l.ALLOWED_TAGS,oe):Ce,ae="ALLOWED_ATTR"in l?$({},l.ALLOWED_ATTR,oe):p,tt="ALLOWED_NAMESPACES"in l?$({},l.ALLOWED_NAMESPACES,jr):ct,lt="ADD_URI_SAFE_ATTR"in l?$(xt(yt),l.ADD_URI_SAFE_ATTR,oe):yt,Et="ADD_DATA_URI_TAGS"in l?$(xt(Ze),l.ADD_DATA_URI_TAGS,oe):Ze,Oe="FORBID_CONTENTS"in l?$({},l.FORBID_CONTENTS,oe):ze,M="FORBID_TAGS"in l?$({},l.FORBID_TAGS,oe):{},V="FORBID_ATTR"in l?$({},l.FORBID_ATTR,oe):{},he="USE_PROFILES"in l?l.USE_PROFILES:!1,U=l.ALLOW_ARIA_ATTR!==!1,ce=l.ALLOW_DATA_ATTR!==!1,we=l.ALLOW_UNKNOWN_PROTOCOLS||!1,pe=l.ALLOW_SELF_CLOSE_IN_ATTR!==!1,B=l.SAFE_FOR_TEMPLATES||!1,z=l.WHOLE_DOCUMENT||!1,R=l.RETURN_DOM||!1,J=l.RETURN_DOM_FRAGMENT||!1,ue=l.RETURN_TRUSTED_TYPE||!1,re=l.FORCE_BODY||!1,ie=l.SANITIZE_DOM!==!1,N=l.SANITIZE_NAMED_PROPS||!1,De=l.KEEP_CONTENT!==!1,me=l.IN_PLACE||!1,C=l.ALLOWED_URI_REGEXP||sa,qe=l.NAMESPACE||Ee,k=l.CUSTOM_ELEMENT_HANDLING||{},l.CUSTOM_ELEMENT_HANDLING&&hn(l.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(k.tagNameCheck=l.CUSTOM_ELEMENT_HANDLING.tagNameCheck),l.CUSTOM_ELEMENT_HANDLING&&hn(l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(k.attributeNameCheck=l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),l.CUSTOM_ELEMENT_HANDLING&&typeof l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(k.allowCustomizedBuiltInElements=l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),B&&(ce=!1),J&&(R=!0),he&&(W=$({},[...ra]),ae=[],he.html===!0&&($(W,ta),$(ae,na)),he.svg===!0&&($(W,qr),$(ae,zr),$(ae,nr)),he.svgFilters===!0&&($(W,Kr),$(ae,zr),$(ae,nr)),he.mathMl===!0&&($(W,Wr),$(ae,aa),$(ae,nr))),l.ADD_TAGS&&(W===Ce&&(W=xt(W)),$(W,l.ADD_TAGS,oe)),l.ADD_ATTR&&(ae===p&&(ae=xt(ae)),$(ae,l.ADD_ATTR,oe)),l.ADD_URI_SAFE_ATTR&&$(lt,l.ADD_URI_SAFE_ATTR,oe),l.FORBID_CONTENTS&&(Oe===ze&&(Oe=xt(Oe)),$(Oe,l.FORBID_CONTENTS,oe)),De&&(W["#text"]=!0),z&&$(W,["html","head","body"]),W.table&&($(W,["tbody"]),delete M.tbody),l.TRUSTED_TYPES_POLICY){if(typeof l.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ot('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof l.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ot('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');G=l.TRUSTED_TYPES_POLICY,te=G.createHTML("")}else G===void 0&&(G=qs(v,n)),G!==null&&typeof te=="string"&&(te=G.createHTML(""));Fe&&Fe(l),Ke=l}},fn=$({},["mi","mo","mn","ms","mtext"]),bn=$({},["foreignobject","desc","title","annotation-xml"]),Ao=$({},["title","style","font","a","script"]),$t=$({},qr);$($t,Kr),$($t,Ls);let vr=$({},Wr);$(vr,Rs);let ko=function(l){let x=ve(l);(!x||!x.tagName)&&(x={namespaceURI:qe,tagName:"template"});let b=ar(l.tagName),ne=ar(x.tagName);return tt[l.namespaceURI]?l.namespaceURI===Ve?x.namespaceURI===Ee?b==="svg":x.namespaceURI===_e?b==="svg"&&(ne==="annotation-xml"||fn[ne]):!!$t[b]:l.namespaceURI===_e?x.namespaceURI===Ee?b==="math":x.namespaceURI===Ve?b==="math"&&bn[ne]:!!vr[b]:l.namespaceURI===Ee?x.namespaceURI===Ve&&!bn[ne]||x.namespaceURI===_e&&!fn[ne]?!1:!vr[b]&&(Ao[b]||!$t[b]):!!(Ne==="application/xhtml+xml"&&tt[l.namespaceURI]):!1},wt=function(l){Dt(t.removed,{element:l});try{l.parentNode.removeChild(l)}catch{l.remove()}},Sr=function(l,x){try{Dt(t.removed,{attribute:x.getAttributeNode(l),from:x})}catch{Dt(t.removed,{attribute:null,from:x})}if(x.removeAttribute(l),l==="is"&&!ae[l])if(R||J)try{wt(x)}catch{}else try{x.setAttribute(l,"")}catch{}},yn=function(l){let x,b;if(re)l=""+l;else{let Ue=Ps(l,/^[\r\n\t ]+/);b=Ue&&Ue[0]}Ne==="application/xhtml+xml"&&qe===Ee&&(l=''+l+"");let ne=G?G.createHTML(l):l;if(qe===Ee)try{x=new _().parseFromString(ne,Ne)}catch{}if(!x||!x.documentElement){x=be.createDocument(qe,"template",null);try{x.documentElement.innerHTML=et?te:ne}catch{}}let Ae=x.body||x.documentElement;return l&&b&&Ae.insertBefore(a.createTextNode(b),Ae.childNodes[0]||null),qe===Ee?w.call(x,z?"html":"body")[0]:z?x.documentElement:Ae},wn=function(l){return S.call(l.ownerDocument||l,l,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT,null,!1)},Co=function(l){return l instanceof f&&(typeof l.nodeName!="string"||typeof l.textContent!="string"||typeof l.removeChild!="function"||!(l.attributes instanceof u)||typeof l.removeAttribute!="function"||typeof l.setAttribute!="function"||typeof l.namespaceURI!="string"||typeof l.insertBefore!="function"||typeof l.hasChildNodes!="function")},Yt=function(l){return typeof i=="object"?l instanceof i:l&&typeof l=="object"&&typeof l.nodeType=="number"&&typeof l.nodeName=="string"},nt=function(l,x,b){I[l]&&Cs(I[l],ne=>{ne.call(t,x,b,Ke)})},Tn=function(l){let x;if(nt("beforeSanitizeElements",l,null),Co(l))return wt(l),!0;let b=oe(l.nodeName);if(nt("uponSanitizeElement",l,{tagName:b,allowedTags:W}),l.hasChildNodes()&&!Yt(l.firstElementChild)&&(!Yt(l.content)||!Yt(l.content.firstElementChild))&&We(/<[/\w]/g,l.innerHTML)&&We(/<[/\w]/g,l.textContent))return wt(l),!0;if(!W[b]||M[b]){if(!M[b]&&vn(b)&&(k.tagNameCheck instanceof RegExp&&We(k.tagNameCheck,b)||k.tagNameCheck instanceof Function&&k.tagNameCheck(b)))return!1;if(De&&!Oe[b]){let ne=ve(l)||l.parentNode,Ae=m(l)||l.childNodes;if(Ae&&ne){let Ue=Ae.length;for(let je=Ue-1;je>=0;--je)ne.insertBefore(ee(Ae[je],!0),Z(l))}}return wt(l),!0}return l instanceof c&&!ko(l)||(b==="noscript"||b==="noembed")&&We(/<\/no(script|embed)/i,l.innerHTML)?(wt(l),!0):(B&&l.nodeType===3&&(x=l.textContent,x=$e(x,A," "),x=$e(x,q," "),x=$e(x,L," "),l.textContent!==x&&(Dt(t.removed,{element:l.cloneNode()}),l.textContent=x)),nt("afterSanitizeElements",l,null),!1)},xn=function(l,x,b){if(ie&&(x==="id"||x==="name")&&(b in a||b in So))return!1;if(!(ce&&!V[x]&&We(Y,x))&&!(U&&We(K,x))){if(!ae[x]||V[x]){if(!(vn(l)&&(k.tagNameCheck instanceof RegExp&&We(k.tagNameCheck,l)||k.tagNameCheck instanceof Function&&k.tagNameCheck(l))&&(k.attributeNameCheck instanceof RegExp&&We(k.attributeNameCheck,x)||k.attributeNameCheck instanceof Function&&k.attributeNameCheck(x))||x==="is"&&k.allowCustomizedBuiltInElements&&(k.tagNameCheck instanceof RegExp&&We(k.tagNameCheck,b)||k.tagNameCheck instanceof Function&&k.tagNameCheck(b))))return!1}else if(!lt[x]&&!We(C,$e(b,X,""))&&!((x==="src"||x==="xlink:href"||x==="href")&&l!=="script"&&_s(b,"data:")===0&&Et[l])&&!(we&&!We(ye,$e(b,X,"")))&&b)return!1}return!0},vn=function(l){return l.indexOf("-")>0},Sn=function(l){let x,b,ne,Ae;nt("beforeSanitizeAttributes",l,null);let{attributes:Ue}=l;if(!Ue)return;let je={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ae};for(Ae=Ue.length;Ae--;){x=Ue[Ae];let{name:ke,namespaceURI:Tt}=x;if(b=ke==="value"?x.value:Es(x.value),ne=oe(ke),je.attrName=ne,je.attrValue=b,je.keepAttr=!0,je.forceKeepAttr=void 0,nt("uponSanitizeAttribute",l,je),b=je.attrValue,je.forceKeepAttr||(Sr(ke,l),!je.keepAttr))continue;if(!pe&&We(/\/>/i,b)){Sr(ke,l);continue}B&&(b=$e(b,A," "),b=$e(b,q," "),b=$e(b,L," "));let An=oe(l.nodeName);if(xn(An,ne,b)){if(N&&(ne==="id"||ne==="name")&&(Sr(ke,l),b=Se+b),G&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!Tt)switch(v.getAttributeType(An,ne)){case"TrustedHTML":{b=G.createHTML(b);break}case"TrustedScriptURL":{b=G.createScriptURL(b);break}}try{Tt?l.setAttributeNS(Tt,ke,b):l.setAttribute(ke,b),ea(t.removed)}catch{}}}nt("afterSanitizeAttributes",l,null)},Po=function l(x){let b,ne=wn(x);for(nt("beforeSanitizeShadowDOM",x,null);b=ne.nextNode();)nt("uponSanitizeShadowNode",b,null),!Tn(b)&&(b.content instanceof o&&l(b.content),Sn(b));nt("afterSanitizeShadowDOM",x,null)};return t.sanitize=function(l){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b,ne,Ae,Ue;if(et=!l,et&&(l=""),typeof l!="string"&&!Yt(l))if(typeof l.toString=="function"){if(l=l.toString(),typeof l!="string")throw Ot("dirty is not a string, aborting")}else throw Ot("toString is not a function");if(!t.isSupported)return l;if(Q||xr(x),t.removed=[],typeof l=="string"&&(me=!1),me){if(l.nodeName){let Tt=oe(l.nodeName);if(!W[Tt]||M[Tt])throw Ot("root node is forbidden and cannot be sanitized in-place")}}else if(l instanceof i)b=yn(""),ne=b.ownerDocument.importNode(l,!0),ne.nodeType===1&&ne.nodeName==="BODY"||ne.nodeName==="HTML"?b=ne:b.appendChild(ne);else{if(!R&&!B&&!z&&l.indexOf("<")===-1)return G&&ue?G.createHTML(l):l;if(b=yn(l),!b)return R?null:ue?te:""}b&&re&&wt(b.firstChild);let je=wn(me?l:b);for(;Ae=je.nextNode();)Tn(Ae)||(Ae.content instanceof o&&Po(Ae.content),Sn(Ae));if(me)return l;if(R){if(J)for(Ue=y.call(b.ownerDocument);b.firstChild;)Ue.appendChild(b.firstChild);else Ue=b;return(ae.shadowroot||ae.shadowrootmod)&&(Ue=E.call(r,Ue,!0)),Ue}let ke=z?b.outerHTML:b.innerHTML;return z&&W["!doctype"]&&b.ownerDocument&&b.ownerDocument.doctype&&b.ownerDocument.doctype.name&&We(la,b.ownerDocument.doctype.name)&&(ke=" +`+ke),B&&(ke=$e(ke,A," "),ke=$e(ke,q," "),ke=$e(ke,L," ")),G&&ue?G.createHTML(ke):ke},t.setConfig=function(l){xr(l),Q=!0},t.clearConfig=function(){Ke=null,Q=!1},t.isValidAttribute=function(l,x,b){Ke||xr({});let ne=oe(l),Ae=oe(x);return xn(ne,Ae,b)},t.addHook=function(l,x){typeof x=="function"&&(I[l]=I[l]||[],Dt(I[l],x))},t.removeHook=function(l){if(I[l])return ea(I[l])},t.removeHooks=function(l){I[l]&&(I[l]=[])},t.removeAllHooks=function(){I={}},t}var ua=ca();var Ru=Jt.alert;function ge(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():T}var H=ge();function vt(){return H.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function Nt(){return H.PROD==="1"}function Ut(){return H.PROD_API==="1"}function Qe(){if(H.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function da(){return typeof Deno<"u"}var Gu=ge().PROD==="1",Vu=ge().PROD!=="1";function ma(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}function Vr(){if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let e=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(e&&(e._isUserscript||e._isSafari))}else return!1}var ga={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",curentPlan:"\u5F53\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52A8\u7EED\u671F",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",sponsorLabel:"$1 \u8D77\u8D5E\u52A9\u5F00\u53D1\u8005",help:"\u5E2E\u52A9",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D\uFF0C\u518D\u70B9\u51FB\u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D\u5373\u53EF\u8BBE\u7F6E",browserShortcutsNoteForChrome:"\u7C7BChrome \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762\uFF0C\u5728`\u7BA1\u7406\u5FEB\u6377\u952E`\u9762\u677F(`chrome://extensions/shortcuts`)\u8BBE\u7F6E\uFF0C\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8DF3\u8F6C\u5230\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E\u683C\u5F0F\u4E3A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1: \u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1 & PDF\u6587\u6863\u7FFB\u8BD1","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7F51\u9875\u53CC\u8BED\u7FFB\u8BD1\u6269\u5C55\uFF0C\u540C\u65F6\u652F\u6301 PDF \u7FFB\u8BD1\uFF0C\u53CC\u8BED Epub \u7535\u5B50\u4E66\u5236\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u817E\u8BAF\u7FFB\u8BD1\u7B49\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\uFF0C\u514D\u8D39\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8BD1\u5E76\u9690\u85CF\u539F\u6587/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.toggleTranslationMask":"\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.donateContext":"\u4E86\u89E3\u8D5E\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5219\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875(\u4EC5\u8BD1\u6587)/\u663E\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7","fingers.0":"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478",mouseHoldKey:"+ {key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoverHoldKey:"\u9F20\u6807\u60AC\u505C\u540C\u65F6\u6309\u4E0B\u5FEB\u6377\u952E\u7FFB\u8BD1\u6BB5\u843D","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u6587\u6863",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",goAdvancedSettings:"\u53BB\u8FDB\u9636\u8BBE\u7F6E\u9875",goAdvancedInterfaceSettings:"\u53BB\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u8BBE\u7F6E\u9875\u9762",advanced:"\u8FDB\u9636\u8BBE\u7F6E",advancedDescription:"\u4E00\u822C\u65E0\u9700\u8BBE\u7F6E\uFF0C\u4FDD\u6301\u9ED8\u8BA4\u5373\u53EF\u3002\u4EC5\u5BF9\u4E8E\u66F4\u4E13\u4E1A\u7684\u7528\u6237\uFF0C\u63D0\u4F9B\u66F4\u4E2A\u6027\u5316\u7684\u8BBE\u7F6E\u9879\u3002",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00","display both the original text and the translation":"\u540C\u65F6\u663E\u793A\u539F\u6587\u548C\u8BD1\u6587","keyboard shortcuts":"\u952E\u76D8\u5FEB\u6377\u952E",modify:"\u4FEE\u6539\u5FEB\u6377\u952E",reset:"\u91CD\u7F6E",close:"\u5173\u95ED",homepage:"\u4E3B\u9875",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",changeToOnlyTranslationMode:"\u5207\u6362\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u5207\u6362\u4E3A\u53CC\u8BED\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",unknownError:"\u672A\u77E5\u9519\u8BEF",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",needActionForOptions:"(\u9700\u8BBE\u7F6E)",translationEngine:"\u5F15\u64CE\u9009\u9879",sourceLanguage:"\u539F\u6587\u8BED\u8A00",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",forThisSite:"\u5F53\u524D\u7F51\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1 {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8BD1 {language}",alwaysTranslateSomeSite:"\u603B\u662F\u7FFB\u8BD1 {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8BD1 {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u6DFB\u52A0",default:"\u9ED8\u8BA4",forThisLanguage:"\u9488\u5BF9\u8BE5\u8BED\u8A00\uFF1A","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91","translate other languages into specific language":"\u5C06\u5176\u4ED6\u8BED\u8A00\u7FFB\u8BD1\u4E3A\u4F60\u8BBE\u7F6E\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1",language:"\u8BED\u8A00","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",Error:"\u9519\u8BEF",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",interface:"\u754C\u9762\u8BBE\u7F6E",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8BD1\u9875\u9762\u6807\u9898","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1",enableUserscriptPagePopup:"\u5728\u9875\u9762\u4E0A\u663E\u793A\u60AC\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528\u5FEB\u6377\u952E/{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8BD1\u6587\u6837\u5F0F",currentUrl:"\u5F53\u524D\u7F51\u5740",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664","languages.auto":"\u81EA\u52A8\u68C0\u6D4B",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",upload:"\u4E0A\u4F20",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",download:"\u4E0B\u8F7D",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",deleteFail:"\u5220\u9664\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",backupToCloudDescription:"\u624B\u52A8\u4E0A\u4F20\u6216\u6062\u590D\u5907\u4EFD\u6587\u4EF6\uFF0C\u6700\u591A\u5141\u8BB83\u4E2A\u4E0D\u540C\u7684\u5907\u4EFD",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",updatedAt:"\u66F4\u65B0\u4E8E {date}",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u9891\u9053",joinTelegramChannel:"\u5173\u6CE8 Telegram \u9891\u9053\u83B7\u53D6\u6700\u65B0\u66F4\u65B0",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",autoSync:"\u81EA\u52A8\u5B9A\u65F6\u540C\u6B65",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863","edit border color":"\u4FEE\u6539\u8FB9\u6846\u989C\u8272",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",enableSubtitle:"\u5F00\u542F\u5B57\u5E55\u7FFB\u8BD1",enableSubtitleDescription:"\u9488\u5BF9 youtube \u7B49\u7F51\u7AD9\u7684\u5B57\u5E55\u533A\u57DF\u5F00\u542F\u7FFB\u8BD1",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",enableSearchEnhancement:"\u542F\u7528\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A",enableSearchEnhancementDescription:"\u5F00\u542F\u540E\uFF0C\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\u793E\u533A\uFF09\u53F3\u8FB9\u680F\u81EA\u52A8\u663E\u793A\u5BF9\u5E94\u82F1\u6587\u5173\u952E\u8BCD\u7684\u201C\u8C37\u6B4C\u65B0\u95FB\u201D\u641C\u7D22\u7ED3\u679C\u3002",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerMinute":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u5206\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u8350\uFF09, \u5C06\u4F1A\u5728\u5355\u72EC\u4F5C\u4E3A\u4E00\u6BB5\u53D1\u9001\u7ED9 OpenAI","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740",enabledExtension:"\u542F\u7528\u6269\u5C55",clickToDisableExtension:"\u70B9\u51FB\u7981\u7528\u6269\u5C55",clickToEnableExtension:"\u70B9\u51FB\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",modifyMouseHoverKey:"\u4FEE\u6539\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u8BBE\u7F6E",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",disableTint:"* \u4F60\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u542F\u7528\u3002",searchEnhancementNotes:"\u6211\u4EEC\u53D1\u73B0\uFF0C\u4E2D\u6587\u5173\u952E\u8BCD\u548C\u82F1\u6587\u5173\u952E\u8BCD\u7684\u65B0\u95FB\u7ED3\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u542F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u529F\u80FD\u540E\uFF0C\u6211\u4EEC\u4F1A\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\u7F51\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52A8\u7528\u82F1\u6587\u4E3A\u4F60\u641C\u7D22\u540C\u6837\u7684\u5173\u952E\u8BCD\u5E76\u5C55\u793A\u5728\u53F3\u4FA7\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8BE5\u529F\u80FD\u7684\u8BDD\uFF0C\u53EF\u4EE5\u9009\u62E9\u7981\u7528\u5B83\u3002",option:"\u8BBE\u7F6E",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",needLoginAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u81EA\u5B9A\u4E49)",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",onetime_7day:"7 \u5929\u4F53\u9A8C\u5305",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradePlan:"\u70B9\u6B64\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL \u548C OpenAI \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8BD1",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u8BBE\u7F6E\u5176\u4ED6\u5FEB\u6377\u952E\u6765\u89E6\u53D1\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1"};var pa={nologin:"\u672A\u767B\u9304",login:"\u767B\u9304",manageAccount:"\u7BA1\u7406\u8CEC\u6236",logout:"\u9000\u51FA",curentPlan:"\u7576\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u671F",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u64CA\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u8AAA\u660E",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u9644\u52A0\u5143\u4EF6\u7BA1\u7406\u9801\u9762 \u300Cabout:addons\u300D\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u5716\u793A\u300D\uFF0C\u518D\u9EDE\u9078\u300C\u7BA1\u7406\u64F4\u5145\u5957\u4EF6\u5FEB\u901F\u9375\u300D\u5373\u53EF\u8A2D\u5B9A",browserShortcutsNoteForChrome:"Chromium \u6838\u5FC3\u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u64F4\u5145\u529F\u80FD\u7BA1\u7406\u9801\u9762\uFF0C\u5728\u300C\u9375\u76E4\u5FEB\u901F\u9375\u300D\u9801\u9762(chrome://extensions/shortcuts)\u8A2D\u5B9A\uFF0C\u9EDE\u9078\u4E0B\u65B9\u6309\u9215\u524D\u5F80\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u901F\u9375\u683C\u5F0F\u70BA\uFF1A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F: \u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F & PDF\u6587\u6A94\u7FFB\u8B6F","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7DB2\u9801\u96D9\u8A9E\u7FFB\u8B6F\u64F4\u5C55\uFF0C\u540C\u6642\u652F\u6301 PDF \u7FFB\u8B6F\uFF0C\u96D9\u8A9E Epub \u96FB\u5B50\u66F8\u88FD\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u9A30\u8A0A\u7FFB\u8B6F\u7B49\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF0C\u514D\u8CBB\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8B6F\u4E26\u96B1\u85CF\u539F\u6587/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.toggleTranslationMask":"\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.donateContext":"\u4E86\u89E3\u8D0A\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u5247\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u6642\u89F8\u78B0\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801(\u50C5\u8B6F\u6587)/\u986F\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304","fingers.0":"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478",mouseHoldKey:"+ {key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u6377\u9375(\u6253\u958B\u8A2D\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoverHoldKey:"\u9F20\u6A19\u6ED1\u904E\u540C\u6642\u6309\u4E0B X \u9375\u7FFB\u8B6F\u6BB5\u843D","mouse-translate":"\u9F20\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",goAdvancedSettings:"\u524D\u5F80\u9032\u968E\u8A2D\u5B9A\u9801\u9762",goAdvancedInterfaceSettings:"\u524D\u5F80\u81EA\u8A02\u8A2D\u5B9A\u9801\u9762",advanced:"\u9032\u968E\u8A2D\u5B9A",advancedDescription:"\u6B63\u5E38\u60C5\u6CC1\u7121\u9700\u8A2D\u5B9A\uFF0C\u4FDD\u6301\u9810\u8A2D\u5373\u53EF\u3002\u50C5\u91DD\u5C0D\u66F4\u5C08\u696D\u7684\u4F7F\u7528\u8005\uFF0C\u63D0\u4F9B\u66F4\u500B\u4EBA\u5316\u7684\u8A2D\u5B9A\u9805\u76EE\u3002",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00","display both the original text and the translation":"\u540C\u6642\u986F\u793A\u539F\u6587\u548C\u8B6F\u6587","keyboard shortcuts":"\u9375\u76E4\u5FEB\u901F\u9375",modify:"\u8B8A\u66F4\u5FEB\u901F\u9375",reset:"\u91CD\u8A2D",close:"\u95DC\u9589",homepage:"\u9996\u9801",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",changeToOnlyTranslationMode:"\u5207\u63DB\u70BA\u50C5\u986F\u793A\u8B6F\u6587",changeToDualTranslationMode:"\u5207\u63DB\u70BA\u96D9\u8A9E\u7FFB\u8B6F",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:"\u672A\u77E5\u7684\u932F\u8AA4",canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u9078\u9805",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",needActionForOptions:"(\u9700\u8A2D\u5B9A)",translationEngine:"\u5F15\u64CE\u9078\u9805",sourceLanguage:"\u539F\u6587\u8A9E\u8A00",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",forThisSite:"\u7576\u524D\u7DB2\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8B6F {language}",alwaysTranslateSomeSite:"\u7E3D\u662F\u7FFB\u8B6F {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8B6F {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u65B0\u589E",default:"\u9810\u8A2D",forThisLanguage:"\u91DD\u5C0D\u8A72\u8A9E\u8A00\uFF1A","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F","translate other languages into specific language":"\u5C07\u5176\u5B83\u8A9E\u8A00\u7FFB\u8B6F\u70BA\u4F60\u8A2D\u5B9A\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9",language:"\u8A9E\u8A00","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",Error:"\u932F\u8AA4",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",interface:"\u4ECB\u9762\u8A2D\u5B9A",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65",syncToAccount:"\u540C\u6B65\u5230\u8CEC\u6236",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u8CEC\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u8A2D\u5099\u4E4B\u9593\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u8CEC\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u8CEC\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8B6F","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9E\u99AC\u905C\u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8B6F\u9801\u9762\u6A19\u984C","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F",enableUserscriptPagePopup:"\u5728\u9801\u9762\u4E0A\u986F\u793A\u61F8\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528\u5FEB\u901F\u9375/{touch}\u518D\u6B21\u986F\u793A\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5EFA\u8B70\u5C07\u672C\u8A2D\u5B9A\u9801\u9762\u52A0\u5165\u81F3\u6211\u7684\u6700\u611B","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8B6F\u6587\u6A23\u5F0F",currentUrl:"\u76EE\u524D\u7DB2\u5740",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6E96\u3002",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",upload:"\u4E0A\u50B3",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",download:"\u4E0B\u8F09",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",deleteFail:"\u522A\u9664\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",backupToCloudDescription:"\u624B\u52D5\u4E0A\u50B3\u6216\u9084\u539F\u5099\u4EFD\u6A94\u6848\uFF0C\u6700\u591A\u5141\u8A31 3 \u500B\u4E0D\u540C\u7684\u5099\u4EFD",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",updatedAt:"\u66F4\u65B0\u65BC {date}",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u4EEC\u7684<3>Twitter\uFF0C<4>Telegram \u983B\u9053\u4EE5\u53CA\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u90F5\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u983B\u9053",joinTelegramChannel:"\u95DC\u6CE8 Telegram \u983B\u9053\u77AD\u89E3\u66F4\u65B0\u8CC7\u8A0A",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",autoSync:"\u81EA\u52D5\u5B9A\u6642\u540C\u6B65",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6","edit border color":"\u8B8A\u66F4\u908A\u6846\u8272\u5F69",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",enableSubtitle:"\u958B\u555F\u5B57\u5E55\u7FFB\u8B6F",enableSubtitleDescription:"\u91DD\u5C0D youtube \u7B49\u7DB2\u7AD9\u7684\u5B57\u5E55\u5340\u57DF\u958B\u555F\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",enableSearchEnhancement:"\u958B\u555F\u641C\u7D22\u589E\u5F37",enableSearchEnhancementDescription:"\u4E2D\u6587\u641C\u7D22\u8C37\u6B4C\u6703\u5728\u53F3\u908A\u51FA\u73FE\u82F1\u6587\u7248\u8C37\u6B4C\u65B0\u805E",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerMinute":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u5206\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u4EFD\u50B3\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u85A6\uFF09, \u5C07\u6703\u5728\u55AE\u7368\u4F5C\u70BA\u4E00\u6BB5\u767C\u9001\u7D66 OpenAI","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u50B3\u9001\u767C\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",clickToDisableExtension:"\u9EDE\u9078\u505C\u7528\u5957\u4EF6",clickToEnableExtension:"\u9EDE\u9078\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u9F20\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u7F6E\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u5B57\u7B26\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8B58\u5225\u70BA\u89F8\u767C\u5B57\u7B26\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u7981\u7528\u78BA\u8A8D",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",disableTint:"* \u60A8\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u555F\u7528\u3002",searchEnhancementNotes:"\u6211\u5011\u767C\u73FE\uFF0C\u4E2D\u6587\u95DC\u9375\u8A5E\u548C\u82F1\u6587\u95DC\u9375\u8A5E\u7684\u65B0\u805E\u7D50\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u555F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u4FE1\u606F\u589E\u5F37\u529F\u80FD\u5F8C\uFF0C\u6211\u5011\u6703\u5728\u652F\u6301\u7684\u7DB2\u7AD9\uFF08\u8C37\u6B4C\u65B0\u805E\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u95DC\u9375\u8A5E\uFF09\uFF0C\u96EA\u7403\uFF0C\u6771\u65B9\u8CA1\u5BCC\u7DB2\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52D5\u7528\u82F1\u6587\u70BA\u4F60\u641C\u7D22\u540C\u6A23\u7684\u95DC\u9375\u8A5E\u4E26\u5C55\u793A\u5728\u53F3\u5074\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8A72\u529F\u80FD\u7684\u8A71\uFF0C\u53EF\u4EE5\u9078\u64C7\u7981\u7528\u5B83\u3002",option:"\u9078\u9805",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL \u548C OpenAI \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8B6F",currentAccount:"\u7576\u524D\u8CEC\u6236"};var ha={nologin:"Not logged in",login:"Login",manageAccount:"Manage Account",logout:"Logout",curentPlan:"Current Plan",endAt:"Expires",endAuto:"Auto Renew",lineBreakMaxTextCount:"Maximum number of characters allowed per sentence after line break","translate-pdf":"Click to translate PDF","noSupportTranslate-pdf":"The script is not supported, please use a plugin.","translate-firefox-local-pdf":"Click to upload PDF",enableLineBreak:"Whether to turn on automatic line wrapping for long paragraphs",sponsorLabel:"Sponsoring developers from $1 (monthly or one-time)",help:"Help",browserShortcutsNoteForFirefox:`To modify the shortcut key in Firefox browser, you need to open the extension management page 'about: addons', then click "Settings", and then click "Management shortcut key" to set it`,browserShortcutsNoteForChrome:"To modify the shortcut key in Chrome browser, you need to open the extension management page` chrome://extensions/shortcuts `) Settings, click the button below to jump to the shortcut key management page.",browserShortcutsSucks:"Please enter the shortcut key manually in the format:",enableLineBreakDescription:"After opening, a line break will be inserted at the end of each sentence in a long paragraph for easy reading","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate: Web Page&PDF Translation","browser.brandDescription":"Bilingual web page translation, also supports PDF translation, bilingual Epub eBook translation, free to use.","browser.toggleTranslatePage":"Toggle Translate Page","browser.toggleTranslateTheWholePage":"Toggle Translate the Whole Page","browser.toggleOnlyTransation":"Toggle Translate and Hide Original Text","browser.toggleTranslateToThePageEndImmediately":"Toggle Translate to the Bottom of the Page Immediately","browser.toggleTranslateTheMainPage":"Toggle Translate the Main Page","browser.openOptionsPage":"Open Settings Page","browser.toggleTranslationMask":"Toggle translation mask style","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-book","browser.openEbookBuilder":"Make Dual EPUB ebook","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.donateContext":"Sponsor Benefits","browser.translateLocalSubtitleFile":"Translate Subtitle File",confirmResetConfig:"Are you sure you want to reset the settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Create right button menu",toggleBeta:"Enable Beta experimental features",betaDescription:"Enable features that are still experimental, and translation services that are in testing. Join the <1>Telegram group to learn more.",translationLineBreakSettingDescription:"The always line break feature is suitable for layouts with less content, making the layout more neat and tidy. (Use smart line breaks for long paragraphs with more content (more than {count} characters) for saving space)",tempTranslateDomainTitle:"Open the translation time temporarily",tempTranslateDomainDescription:"When a page is translated manually, turn it temporarily on as automatic translation",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",toggleTranslatePageWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide translation display",toggleTranslationMaskWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide the blur effect of the translation",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"Multi-finger touch to show/hide only translation display",addUrlDescription:"The domain name is available and wildcard is supported e.g.: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import configuration from file",export:"Export to file",toggleDebug:"Print debug logs on the console","fingers.0":"Close","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch",mouseHoldKey:"+ {key} translate this paragraph",mouseHoldKeyAuto:"Translate the paragraph directly",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate this paragraph",mouseHoverHoldKey:"Mouse over and press X key to translate paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"All settings reset successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",goAdvancedSettings:"Go to Advanced Settings Page",goAdvancedInterfaceSettings:"Go to Advanced Custom Settings Page",advanced:"Advanced",advancedDescription:"Normally no settings are needed, keep the default. More personalized settings are provided for professional users only.",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"Translate to the bottom of the page immediately after opening the page?",feedback:"Feedback",toggleTranslatePage:"Toggle Translate",translateToThePageEndImmediatelyDescription:"Enabled will translate from the top to the bottom of the page immediately after opening. Disable will translate while reading. (Not recommended to enable)","translate all areas of the page":"Whether to translate all areas of the web page",translationAreaDescription:"When enabled, all areas of the entire web page will be translated. Disabled will use the default smart recognition and translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Directly translate the number of characters in front of the page without waiting to scroll to the visible area","interface language":"Interface language","display both the original text and the translation":"Display both the original text and the translation","keyboard shortcuts":"Keyboard shortcuts",modify:"Edit",reset:"Reset",close:"Close",homepage:"Home Page",more:"More",moreOptions:"Expand more custom settings",translateTheWholePage:"Translate the whole page area",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Dual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"Main areas of intelligent translation","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly implement the interface of the Greasemonkey extension, please use another browser that <1>supports the Greasemonkey extension such as (Firefox Nightly version)",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:"Unknown Error",canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha enabled successfully",disableAlphaSuccess:"Alpha has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(to set up)",goSettings:"to set up",needActionForOptions:"(need to set)",translationEngine:"Engine Options",sourceLanguage:"Original language",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",forThisSite:"Site:",alwaysTranslateSomeLanguage:"Always translate {language}",neverTranslateSomeLanguage:"Never translate {language}",alwaysTranslateSomeSite:"Always translate {hostname}",neverTranslateSomeSite:"Never translate {hostname}",alwaysTranslateSomeSiteOrWildSite:"Always translate this site",alwaysTranslateSomePage:"Always translate this page",add:"Add",default:"Default",forThisLanguage:"For This Language:","add url":"Add URL",edit:"Edit","translate other languages into specific language":"Translate other languages into the language you set","select translation service":"Select a translation service",language:"Language","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",Error:"Error",allowCacheTranslations:"Enable local translation caching (reduce translation requests for duplicate paragraphs)","translation display":"Translation display style","select diplay style":"Please refer to the following examples",interface:"Interface Settings",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dashed underline","translationTheme.dotted":"Dotted Underline","translationTheme.dashedBorder":"Dashed Border","translationTheme.solidBorder":"Dashed Border","translationTheme.underline":"Straight underline","translationTheme.mask":"Blur effect","translationTheme.opacity":"Opacity effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weakening","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dashed underline","translationTheme.nativeDashed":"System Dash Underline","translationTheme.nativeDotted":"System Dotted Underline","translationTheme.nativeUnderline":"System Straight Line Underline","translationTheme.wavy":"Squiggle","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeeplX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"Translate page title","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped",enableUserscriptPagePopup:"Always show Popup windows on the page",enableUserscriptPagePopupDescription:"Three-finger touch to show the Popup.","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",currentUrl:"Current URL",confirm:"Save",cancel:"Cancel",delete:"Delete","languages.auto":"Detect Language",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",authFail:"Authorization Failed",syncTitle:"Please select a file operation",import_hint:"Import",upload:"Upload",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",download:"Download",importSuccess:"Upload Success",importFail:"Import Failed",deleteFail:"Delete Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",backupToCloudDescription:"Upload or restore backup files manually, up to 3 different backups",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",updatedAt:"Updated at {date}",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. You can choose to subscribe to <6>Pro membership to use the out-of-the-box DeepL and OpenAI translation.

You can also follow out <3>Twitter, <4>Telegram Channel, and <5>Email Subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free and we hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. ",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",qqCommunities:"QQ Channel",joinTelegramChannel:"Subscribe to our Telegram channel to get the latest updates",feedbackAndJoin:"Feedback",autoSync:"Auto-Time Sync",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization","edit border color":"Edit border color",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",enableSubtitle:"enableSubtitleTranslation",enableSubtitleDescription:"Enable translations for subtitle areas on sites like youtube",isTranslateTitleDescription:"When enabled, the page title will be translated",enableSearchEnhancement:"Enable Search Enhancement",enableSearchEnhancementDescription:'After enabling, the right sidebar will automatically display "Google News" search results for corresponding English keywords on supported websites (such as Google News, Google Search (partial keywords), Xueqiu, East Money, Futu, Tiger Community).',verifyService:"Verify service",verified:"Successful","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerMinute":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next minute. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"Requests exceed this limit will be queued until the next seconds.","description.prompt":"Send as a user to OpenAI conversation, where {{text}} indicates the text of the paragraph,{{from}} indicates the language of the paragraph,{{to}} indicates the target language, you can omit {{text}}, if so, it'll be sent as a separated message","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"Send the conversation to OpenAI as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the original language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"Default is\uFF1Ageneral. Only set up if there is an API console open domain translation, support fields see <1>Here ","field.scene":"Scene","description.scene":"Default is\uFF1Ageneral. Only set up if there is an API console open Machine Translation Professional, support fields see<1>Here","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please provide a URL with the specific path.",enabledExtension:"Enable extensions",clickToDisableExtension:"Click to disable extension",clickToEnableExtension:"Click to enable the extension",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter customization content",inputOptions:"Writing",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter for translating part of the input box.",inputStartingTriggerKeyDescription:"When you don't need to translate the entire input box, the delimiter allows you to only translate the portion from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means only translating the portion from {startingKey}ja to the end of the input box.",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting is no prefix required, the partial text translation function of the input box cannot be used temporarily.",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Start the translation by quickly pressing 3 times {trailingKey}.",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time (milliseconds) for the input to end the combo trigger",spaceKey:"",noneKey:"Translate the entire text box without prefixes",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement in the following URL",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",clickToSeeQuickDemo:"Click to expand the 30s tutorial video",inputHelperInfo:`Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001". -Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.`,reloadCurrentPage:"Please refresh the current page before starting translation",noLocalFilePermissionForPDF:"No permission to read local files. Please click the button above and upload the local file.",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate the current page",retryAllParagraphs:"Retry all paragraphs",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Noops, something went wrong",disableConfirm:"Search Enhancement Settings",disableOnce:"Disable Once",disableGlobal:"Disable Forever",disableTint:"* You can re-enable in {option}.",searchEnhancementNotes:"We have discovered notable disparities in news results between Chinese and English keywords. By activating the immersive translation Bilingual Display Enhancement feature, we will automatically search for equivalent English keywords and display them on the right side of supported websites (e.g., Google News, Google Search (partial keywords), xueqiu, East Money, Futu, Tiger). You can disable this feature if you don't need it.",option:"Settings",saveSettings:"Save",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"Enable quick press 3 times {trailingKey}, directly translate the entire input box to {inputTargetLanguage}.",enableInputTranslationWithoutTriggerKeyDescription:"To specify the target language, please add a language code at the beginning, such as: ja Hello world",mouseHoverShortcutPlaceholder:"e.g. Shift",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",needLoginAction:"(Premium or custom)",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",daily:"Daily Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",profile:"Profile",billing:"Billing",onetime_7day:"7-day Trial Pack",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt} and will not auto-renew",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly pro membership",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"Current plan: {plan}, will expire on {endAt}, will not auto-renew after expiration.
<1>Enable consecutive annual plan",upgradePlan:"Click here to upgrade to Pro membership",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",upgradeToPro:"Upgrade to Pro","popup.openPro":"Enjoy unrestricted access to DeepL and OpenAI translations after upgrading to Pro Membership. Click here to upgrade","popup.openProForPro":"You are a Pro member, you can directly use DeepL and OpenAI translations",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You have just triggered the immersive translate of the input box by quickly tapping the space key 3 times. The content of the input box will be translated into the default target language.

If this was a mistake, don't worry. You can choose to disable it this time or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show again",disableInputTranslationTips:"* You can also set other shortcuts in {option}, {learnMore}.",learnMore:"Learn more",continueEnalbeInputTranslation:"Continue to enable input translation"};var Hs=[{code:"zh-CN",messages:ma},{code:"zh-TW",messages:ga},{code:"en",messages:pa}];var ut={};for(let e of Hs)ut[e.code]=e.messages;var dt="Immersive Translate",xe="immersive-translate",fa="pdf/index.html";var O="immersiveTranslate",or="759003177173-mfm15s5nd77vfmo6e7lanof1emnanf0e.apps.googleusercontent.com",vt=O+"GoogleAccessToken",ba=O+"AuthFlow",ir="immersive-translate-config-latest.json",nd=O+"AuthState",ad=O+"IframeMessage",od=O+"WaitForRateLimit",ya=O+"DocumentMessageAsk",id=O+"DocumentMessageTellThirdParty",sd=O+"showError",ld=O+"DocumentMessageThirdPartyTell",cd=O+"DocumentMessageEventUpload",Gs=O+"DocumentMessageHandler",ud=`${O}Container`,dd=`${O}SpecifiedContainer`,sr="buildinConfig",Bt="localConfig",Vr="openOptionsPage";var $r="translateLocalPdfFile",wa="donateContext",Yr="openEbookViewer",Qr="openEbookBuilder",Ta="openSubtitleBuilder",md=`${O}PageTranslatedStatus`,gd=`${O}PageUrlChanged`,pd=`${O}ReceiveCommand`,hd=O+"LastUseMouseHoverTime",fd=O+"LastUseInputTime",xa=O+"LastUseManualTranslatePageTime",bd=`${O}PopupReceiveMessage`,Vs="immersivetranslate.com",$s="config.immersivetranslate.com",yd=`https://${Vs}/`,wd=`https://${$s}/default_config.json`,Td=`${O}Mark`;var xd=`${O}Root`,vd=`data-${xe}-effect`,Sd=`data-${xe}-translation-element-mark`,Ad=`${O}TranslationElementMark`,kd=`${O}TranslatedMark`,Cd=`${O}ParagraphId`,Pd=`${O}LoadingId`,_d=`data-${xe}-loading-id`,Ed=`${O}ErrorId`,Md=`data-${xe}-error-id`,Ld=`${O}AtomicBlockMark`,Rd=`${O}ExcludeMark`,Id=`data-${xe}-exclude-mark`,Dd=`${O}StayOriginalMark`,Od=`${O}PreWhitespaceMark`,Nd=`${O}InlineMark`,Ud=`${O}BlockMark`,Bd=`${O}Left`,Fd=`${O}Right`,jd=`${O}Width`,qd=`${O}Height`,Kd=`${O}Top`,Wd=`${O}FontSize`;var zd=`${O}GlobalStyleMark`,Ys=["@","#"];var Hd=`${xe}-target-wrapper`,Gd=`${xe}-pdf-target-container`,Vd=`${xe}-target-inner`,$d=`${xe}-source-wrapper`,Yd=`${xe}-target-translation-block-wrapper`,Qd=`${xe}-root-translation-theme`,Zd=`${O}RootTranslationTheme`,Jd=`${xe}-target-translation-vertical-block-wrapper`,Xd=`${xe}-target-translation-pdf-block-wrapper`,em=`${xe}-target-translation-pre-whitespace`,tm=`${xe}-target-translation-inline-wrapper`;var Ft=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","ru","ar","it","ms","id","vi","af","th","ur","yue","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","nl","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu"];var lr="zh-CN";var ha=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],Qs={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},deepl:{name:"DeepL",homepage:"https://www.deepl.com/translator",docUrl:"https://immersivetranslate.com/docs/services/deepL/",providers:[{name:"pro",nameKey:"deepLProName",descriptionKey:"deepLProDescription",descriptionKeyForNormal:"deeplProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"deepLCustomName",descriptionKey:"deepLCustomDescription",descriptionLink1:"https://www.deepl.com/translator",descriptionLink2:"https://immersivetranslate.com/docs/services/deepL/"}],allProps:[{name:"authKey",providers:["custom"],label:"Auth Key",required:!0,type:"password"}]},openai:{name:"Open AI",homepage:"https://openai.com/api/",docUrl:"https://immersivetranslate.com/docs/services/openai/",providers:[{name:"pro",nameKey:"openaiProName",descriptionKey:"openaiProDescription",descriptionKeyForNormal:"openaiProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"openaiCustomName",descriptionKey:"openaiCustomDescription",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password"},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"openai-model-select",default:"gpt-3.5-turbo-0613",options:[{providers:["custom","pro"],label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{providers:["custom","pro"],label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{providers:["custom"],label:"gpt-4",value:"gpt-4"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.limitPerSecond",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.openai.com/v1/chat/completions",descriptionKey:"description.apiUrl",optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"text",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.`,reloadCurrentPage:"Please refresh the current page before starting translation",noLocalFilePermissionForPDF:"No permission to read local files. Please click the button above and upload the local file.",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate the current page",retryAllParagraphs:"Retry all paragraphs",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Noops, something went wrong",disableConfirm:"Search Enhancement Settings",disableOnce:"Disable Once",disableGlobal:"Disable Forever",disableTint:"* You can re-enable in {option}.",searchEnhancementNotes:"We have discovered notable disparities in news results between Chinese and English keywords. By activating the immersive translation Bilingual Display Enhancement feature, we will automatically search for equivalent English keywords and display them on the right side of supported websites (e.g., Google News, Google Search (partial keywords), xueqiu, East Money, Futu, Tiger). You can disable this feature if you don't need it.",option:"Settings",saveSettings:"Save",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"Enable quick press 3 times {trailingKey}, directly translate the entire input box to {inputTargetLanguage}.",enableInputTranslationWithoutTriggerKeyDescription:"To specify the target language, please add a language code at the beginning, such as: ja Hello world",mouseHoverShortcutPlaceholder:"e.g. Shift",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",needLoginAction:"(Premium or custom)",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",daily:"Daily Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",profile:"Profile",billing:"Billing",onetime_7day:"7-day Trial Pack",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt} and will not auto-renew",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly pro membership",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"Current plan: {plan}, will expire on {endAt}, will not auto-renew after expiration.
<1>Enable consecutive annual plan",upgradePlan:"Click here to upgrade to Pro membership",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",upgradeToPro:"Upgrade to Pro","popup.openPro":"Enjoy unrestricted access to DeepL and OpenAI translations after upgrading to Pro Membership. Click here to upgrade","popup.openProForPro":"You are a Pro member, you can directly use DeepL and OpenAI translations",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You have just triggered the immersive translate of the input box by quickly tapping the space key 3 times. The content of the input box will be translated into the default target language.

If this was a mistake, don't worry. You can choose to disable it this time or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show again",disableInputTranslationTips:"* You can also set other shortcuts in {option}, {learnMore}.",learnMore:"Learn more",continueEnalbeInputTranslation:"Continue to enable input translation"};var Hs=[{code:"zh-CN",messages:ga},{code:"zh-TW",messages:pa},{code:"en",messages:ha}];var ut={};for(let e of Hs)ut[e.code]=e.messages;var dt="Immersive Translate",xe="immersive-translate",ba="pdf/index.html";var O="immersiveTranslate",or="759003177173-mfm15s5nd77vfmo6e7lanof1emnanf0e.apps.googleusercontent.com",St=O+"GoogleAccessToken",ya=O+"AuthFlow",ir="immersive-translate-config-latest.json",nd=O+"AuthState",ad=O+"IframeMessage",od=O+"WaitForRateLimit",wa=O+"DocumentMessageAsk",id=O+"DocumentMessageTellThirdParty",sd=O+"showError",ld=O+"DocumentMessageThirdPartyTell",cd=O+"DocumentMessageEventUpload",Gs=O+"DocumentMessageHandler",ud=`${O}Container`,dd=`${O}SpecifiedContainer`,sr="buildinConfig",Bt="localConfig",$r="openOptionsPage";var Yr="translateLocalPdfFile",Ta="donateContext",Qr="openEbookViewer",Zr="openEbookBuilder",xa="openSubtitleBuilder",md=`${O}PageTranslatedStatus`,gd=`${O}PageUrlChanged`,pd=`${O}ReceiveCommand`,hd=O+"LastUseMouseHoverTime",fd=O+"LastUseInputTime",va=O+"LastUseManualTranslatePageTime",bd=`${O}PopupReceiveMessage`,Vs="immersivetranslate.com",$s="config.immersivetranslate.com",yd=`https://${Vs}/`,wd=`https://${$s}/default_config.json`,Td=`${O}Mark`;var xd=`${O}Root`,vd=`data-${xe}-effect`,Sd=`data-${xe}-translation-element-mark`,Ad=`${O}TranslationElementMark`,kd=`${O}TranslatedMark`,Cd=`${O}ParagraphId`,Pd=`${O}LoadingId`,_d=`data-${xe}-loading-id`,Ed=`${O}ErrorId`,Md=`data-${xe}-error-id`,Ld=`${O}AtomicBlockMark`,Rd=`${O}ExcludeMark`,Id=`data-${xe}-exclude-mark`,Dd=`${O}StayOriginalMark`,Od=`${O}PreWhitespaceMark`,Nd=`${O}InlineMark`,Ud=`${O}BlockMark`,Bd=`${O}Left`,Fd=`${O}Right`,jd=`${O}Width`,qd=`${O}Height`,Kd=`${O}Top`,Wd=`${O}FontSize`;var zd=`${O}GlobalStyleMark`,Ys=["@","#"];var Hd=`${xe}-target-wrapper`,Gd=`${xe}-pdf-target-container`,Vd=`${xe}-target-inner`,$d=`${xe}-source-wrapper`,Yd=`${xe}-target-translation-block-wrapper`,Qd=`${xe}-root-translation-theme`,Zd=`${O}RootTranslationTheme`,Jd=`${xe}-target-translation-vertical-block-wrapper`,Xd=`${xe}-target-translation-pdf-block-wrapper`,em=`${xe}-target-translation-pre-whitespace`,tm=`${xe}-target-translation-inline-wrapper`;var Ft=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","ru","ar","it","ms","id","vi","af","th","ur","yue","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","nl","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu"];var lr="zh-CN";var fa=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],Qs={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},deepl:{name:"DeepL",homepage:"https://www.deepl.com/translator",docUrl:"https://immersivetranslate.com/docs/services/deepL/",providers:[{name:"pro",nameKey:"deepLProName",descriptionKey:"deepLProDescription",descriptionKeyForNormal:"deeplProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"deepLCustomName",descriptionKey:"deepLCustomDescription",descriptionLink1:"https://www.deepl.com/translator",descriptionLink2:"https://immersivetranslate.com/docs/services/deepL/"}],allProps:[{name:"authKey",providers:["custom"],label:"Auth Key",required:!0,type:"password"}]},openai:{name:"Open AI",homepage:"https://openai.com/api/",docUrl:"https://immersivetranslate.com/docs/services/openai/",providers:[{name:"pro",nameKey:"openaiProName",descriptionKey:"openaiProDescription",descriptionKeyForNormal:"openaiProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"openaiCustomName",descriptionKey:"openaiCustomDescription",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password"},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"openai-model-select",default:"gpt-3.5-turbo-0613",options:[{providers:["custom","pro"],label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{providers:["custom","pro"],label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{providers:["custom"],label:"gpt-4",value:"gpt-4"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.limitPerSecond",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.openai.com/v1/chat/completions",descriptionKey:"description.apiUrl",optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"text",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`,optional:!0}]},transmart:{name:"Transmart",homepage:"https://transmart.qq.com/"},chatgpt:{name:"ChatGPT Web(3.5 mobile)",homepage:"https://chat.openai.com",beta:!0},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:"https://immersivetranslate.com/docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text"},{name:"appSecret",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/",docUrl:"https://immersivetranslate.com/docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text"},{name:"secretKey",required:!0,type:"password"}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:"https://immersivetranslate.com/docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text"},{name:"AccessKeySecret",required:!0,type:"password"},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:"https://immersivetranslate.com/docs/services/azure/",allProps:[{name:"region",required:!0,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password"}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:"https://immersivetranslate.com/docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text"},{name:"key",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:"https://immersivetranslate.com/docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text"},{name:"secretAccessKey",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:"https://immersivetranslate.com/docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password"}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:"https://immersivetranslate.com/docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:Ys,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:"https://immersivetranslate.com/docs/services/openL/",allProps:[...ha,{type:"password",name:"apikey",required:!0}],props:ha},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",alpha:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:"https://immersivetranslate.com/docs/services/niu",allProps:[{name:"APIKEY",required:!0,type:"password"}]}},rm={type:O+"ChildFrameToRootFrameIdentifier"};var va="user_info",nm=Nt()||Ut()?"https://api2.immersivetranslate.com":"https://test-api2.immersivetranslate.com",am=Nt()||Ut()?"https://immersivetranslate.com/accounts/login?from=plugin":"https://test.immersivetranslate.com/accounts/login?from=plugin",om=Nt()||Ut()?"https://immersivetranslate.com/profile":"https://test.immersivetranslate.com/profile",Zr=Nt()||Ut()?"https://immersivetranslate.com/pricing":"https://test.immersivetranslate.com/pricing",im=Zr+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",sm=Zr+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",lm=Zr+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal";var St=console,Jr=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let r=performance.now(),n=Math.round(r-this.#e),a=He.green;n>1e4?a=He.red:n>1e3&&(a=He.yellow),St.debug(He.dim(dt+" TIMING:"),t,"in",a(n+"ms")),this.#e=r}},jt=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&St.log(He.dim(dt+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&St.log(He.green(dt+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&St.warn(He.yellow(dt+" WARN:"),...t)}error(...t){this.#e<=3&&St.error(He.red(dt+" ERROR:"),...t)}fatal(...t){this.#e<=4&&St.error(He.red(dt+" FATAL:"),...t)}timing(){return this.level===0?new Jr:{reset:()=>{},stop:()=>{}}}},D=new jt;function mt(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t==="zh-hans")return"zh-CN";if(t==="zh-hant"||t==="zh-hk")return"zh-TW";if(t==="iw")return"he";if(t==="jv")return"jw";let r=Ft.map(a=>a.toLowerCase()),n=r.indexOf(t);if(n===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let a=r.indexOf(t);return a===-1?"auto":Ft[a]}else return"auto";else return Ft[n]}function Xr(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}var en="DENO",cr="CHROME",ur="FIREFOX";function Sa(e){let t=cr;try{let r=navigator?.userAgent||"";/firefox/i.test(r)||typeof InstallTrigger<"u"?t=ur:/deno/i.test(r)&&(t=en)}catch{}return e===cr&&t===cr||e===ur&&t===ur||e===en&&t===en}function Aa(){return Sa(cr)}function ka(){return typeof Deno<"u"}function Ca(){return Sa(ur)}var Pa={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},_a={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:Pa,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}}},tabs:{onUpdated:Pa,query:()=>{},sendMessage:()=>{}}};var g;ka()?g=_a:g=globalThis.immersiveTranslateBrowserAPI;var Ea=O+"SyncStoreKey_";function At(e,t){let r=Ea+e;return g.storage.sync.get(r).then(n=>n[r]===void 0?t:n[r])}function kt(e,t){let r=Ea+e;return g.storage.sync.set({[r]:t})}var Zs=O+"StoreKey_";function qt(e,t){let r=Zs+e;return g.storage.local.get(r).then(n=>n[r]===void 0?t:n[r])}var Ct=O+"CacheKey_";function Js(e,t){let r=Ct+e;return g.storage.local.get(r).then(n=>n[r]===void 0?t:n[r])}function Xs(){let e=g.storage.local.refresh;e&&e()}function el(e,t){let r=Ct+e;return g.storage.local.get(r).then(n=>{if(n[r]===void 0)return t;let{value:a,expired:o}=n[r];return o&&on.startsWith(Ct));if(r.length>0)return g.storage.local.remove(r)}}var Ma={get:Js,set:rl,getExpired:el,setExpired:tl,remove:nl,clear:al,refresh:Xs};var gt=class extends Error{details;constructor(t,r,n){super(r),this.name=t,n&&(this.details=n)}};async function dr(e){let t;if(e&&e.retry&&e.retry>0)try{t=await _r(La.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(r){throw r&&r.name==="RetryError"&&r.cause?r.cause:r}else t=await La(e);return t}async function La(e){e.body;let{url:t,responseType:r,...n}=e;r||(r="json"),n={mode:"cors",...n};let a=!0;e.fetchPolyfill&&(a=!1);let o=e.fetchPolyfill||fetch,s=3e5;if(e.timeout&&(s=e.timeout),a){let c=new AbortController,d=c.signal;setTimeout(()=>{c.abort()},s),n.signal=d}let i;try{i=await o(t,n)}catch(c){D.debug("fetch error",t,c);let d=c.message||"";throw c.message="\u7F51\u7EDC\u95EE\u9898\uFF0C\u65E0\u6CD5\u8FDE\u63A5\u5230\u670D\u52A1\uFF0C\u8BF7\u68C0\u67E5\u4F60\u7684\u4EE3\u7406\u6216\u672C\u5730\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u8BD5\u3002 "+d,c}if(i.ok&&i.status>=200&&i.status<400){if(r==="json")return await i.json();if(r==="text")return await i.text();if(r==="raw"){let c=await i.text(),d=Object.fromEntries([...i.headers.entries()]),u=i.url;return u||(i.headers.get("X-Final-URL")?u=i.headers.get("X-Final-URL"):u=t),{body:c,headers:d,status:i.status,statusText:i.statusText,url:u}}else if(r==="stream"){let c="",d;if(i.body&&i.body instanceof ReadableStream)for await(let u of ol(i.body)){let f=new TextDecoder().decode(u);c+=f;let _;for(;(_=c.indexOf(` -`))>=0;){let v=c.slice(0,_).trim();if(c=c.slice(_+1),v.startsWith("event:")||v==="")continue;let P="";if(v.startsWith("data:")&&(P=v.slice(5).trim()),P==="[DONE]")break;let ee;try{ee=JSON.parse(P??"")}catch(Z){D.debug("json error",Z);continue}d=ee}}return d}}else{let c;try{c=await i.text()}catch(v){D.error("parse response failed",v)}c&&D.error("fail response",c);let d="";c&&(d=c.slice(0,280));let u="\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u4EE3\u7801:"+i.status+": "+(i.statusText||"")+d,_=new URL(t).hostname.endsWith(".immersivetranslate.com");throw i.status===429?_?d.includes("quota exceeded")?u="ProQuota:"+d:u=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${d} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`:u=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A429\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${d}`:i.status===403?u=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A403\uFF0C \u8BF4\u660E\u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ${d}`:i.status===400?u=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A400\uFF0C \u8BF4\u660E\u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002 ${d}`:i.status===502?u=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A502\uFF0C \u8BF4\u660E\u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${d}`:i.status===401&&(u=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A401\uFF0C \u8BF4\u660E\u672A\u767B\u5F55\u6216\u767B\u5F55\u6001\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002 ${d}`),new gt("fetchError",u,c)}}async function*ol(e){let t=e.getReader();try{for(;;){let{done:r,value:n}=await t.read();if(r)return;yield n}}finally{t.releaseLock()}}var il=new Map;function Ra(e){let t=sl(64),r=new CustomEvent(ya,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(r),new Promise((n,a)=>{il.set(t,(o,s)=>{o?a(o):n(s)})})}function sl(e){let t="",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=r.length,a=0;for(;a","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};function Da(){return Ia.version}function Oa(){try{return globalThis.self!==globalThis.top}catch{return!0}}var Kt=new Map,pt=class{fromType;logger;constructor(t,r=!1){this.logger=new jt,r&&this.logger.setLevel("debug"),this.fromType=t,Kt.has(t)||(Kt.set(t,new Map),g.runtime.onMessage.addListener((n,a,o)=>{let s=n.from,i=n.to,c,d,u;a.tab&&a.tab.id&&(c=a.tab.id,s=`${s}:${c}`,d=a.tab.url,u=a.tab.active),this.logger.debug(`${n.to} received message [${n.payload.method}] from ${n.from}`,n.payload.data?n.payload.data:" ");let f=rn(i),{type:_,name:v}=f;if(_!==t)return!1;let P=rn(s),Z=Kt.get(_).get(v);if(!Z)return this.logger.debug(`no message handler for ${_}:${i}, but it's ok`),!1;let{messageHandler:m,sync:ve}=Z,G={type:t,name:P.name,id:c,url:d,active:u};if(ve){try{let te=m(n.payload,G);o({ok:!0,data:te})}catch(te){o({ok:!1,errorName:te.name,errorMessage:te.message,errorDetails:te.details})}return!1}else return m(n.payload,G).then(te=>{o({ok:!0,data:te})}).catch(te=>{o({ok:!1,errorName:te.name,errorMessage:te.message,errorDetails:te.details})}),!0}))}getConnection(t,r,n){let a=!1;n&&n.sync&&(a=!0);let o=this.fromType,s=Kt.get(o);if(s.has(t))return s.get(t).connectionInstance;{let i=new tn(`${o}:${t}`,this.logger);return Kt.get(o).set(t,{messageHandler:r,sync:a,connectionInstance:i}),i}}},tn=class{from;logger;constructor(t,r){this.from=t,this.logger=r}async sendMessage(t,r){let n=rn(t),{type:a,id:o}=n;if(a!=="content_script"){let s={to:t,from:this.from,payload:r};this.logger.debug(`${s.from} send message [${s.payload.method}] to ${s.to}`,s.payload.data?s.payload.data:" ");try{let i=await g.runtime.sendMessage(s);return Na(s,i,this.logger)}catch(i){if(a==="popup"){let c=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(r)}`;return this.logger.debug(c,r,t,i),Promise.resolve({message:c})}else throw i}}else{let s={from:this.from,to:t,payload:r};this.logger.debug(`${s.from} send message [${s.payload.method}] to ${s.to}`,s.payload.data?s.payload.data:" ");let i=await g.tabs.sendMessage(o,s);return Na(s,i,this.logger)}}};function Na(e,t,r){if(t){if(t.ok)return r.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new gt(t.errorName||"UnknownError",t.errorMessage||"Unknown error",t.errorDetails)}else throw new gt("noResponse","Unknown error")}function rn(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let r={type:t[0],name:t[1]};if(t[0]==="content_script"){let n=parseInt(t[2]);if(!isNaN(n))r.id=n;else throw new Error("tab id not a valid number")}return r}var mr;function cl(){return mr||(mr=new pt("content_script",!1).getConnection("pure_main",()=>{}),mr)}var Ua="G-MKMD9LWFTR";async function Fa(e,t){try{let r=ge();if(r.INSTALL_FROM==="firefox_store")return;let a=xt(),o=Oa(),s=r.PROD==="1",i="sitc4WmvShWYwfU0dANM3Q",c=await At("fakeUserId","");c||(c=await qt("fakeUserId",""),c&&await kt("fakeUserId",c));let d=Da(),u=new Date,f=await At("installedAt","");f||(f=await qt("installedAt",""),f&&await kt("installedAt",f)),c?f||(f=new Date(0).toISOString(),await kt("installedAt",f)):(c=ul(32),await kt("fakeUserId",c)),f||(f=u.toISOString(),await kt("installedAt",f));let _=new Date(f),v=Ba(_),P=Ba(u),ee=v===P,Z=u.getTime()-_.getTime()<7*24*60*60*1e3,m=`https://www.google-analytics.com/mp/collect?measurement_id=${Ua}&api_secret=${i}`;s||(m=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${Ua}&api_secret=${i}`);let ve="";typeof navigator<"u"&&(ve=window.navigator.userAgent);let G=tr.parse(ve),te=t.map(S=>{let y=S.params||{};return G.os&&(y.os_name=G.os.name||"unknown",y.os_version=G.os.version||"unknown",y.os_version_name=G.os.versionName||"unknown"),G.browser&&(y.browser_name=G.browser.name||"unknown",y.browser_version=G.browser.version||"unknown"),G.platform&&(y.platform_type=G.platform.type||"unknown"),G.engine&&(y.engine_name=G.engine.name||"unknown",y.engine_version=G.engine.version||"unknown"),d&&(y.version=d),r.INSTALL_FROM&&(y.install_from=r.INSTALL_FROM),v&&(y.install_day=dl(_)),y.userscript=a.toString(),ee?y.is_new_user_today="1":y.is_new_user_today="0",Z?y.is_new_user_this_week="1":y.is_new_user_this_week="0",o?y.main_frame=0:y.main_frame=1,{...S,params:y}}),be=await gl({responseType:"text",url:m,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:te})})}catch{}}function ul(e){let t="",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=r.length,a=0;for(;a",""]},custom:{placeholderDelimiters:["{","}"]},bing:{maxTextLengthPerRequest:1800,placeholderDelimiters:["","","b"]},deeplx:{limit:3},d:{immediateTranslationTextCount:0},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},openai:{placeholderDelimiters:["{{","}}","b"],immediateTranslationTextCount:3e3,translationDebounce:300,interval:1350,prompt:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +{{text}}`,optional:!0}]},transmart:{name:"Transmart",homepage:"https://transmart.qq.com/"},chatgpt:{name:"ChatGPT Web(3.5 mobile)",homepage:"https://chat.openai.com",beta:!0},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:"https://immersivetranslate.com/docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text"},{name:"appSecret",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/",docUrl:"https://immersivetranslate.com/docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text"},{name:"secretKey",required:!0,type:"password"}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:"https://immersivetranslate.com/docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text"},{name:"AccessKeySecret",required:!0,type:"password"},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:"https://immersivetranslate.com/docs/services/azure/",allProps:[{name:"region",required:!0,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password"}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:"https://immersivetranslate.com/docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text"},{name:"key",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:"https://immersivetranslate.com/docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text"},{name:"secretAccessKey",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:"https://immersivetranslate.com/docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password"}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:"https://immersivetranslate.com/docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:Ys,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:"https://immersivetranslate.com/docs/services/openL/",allProps:[...fa,{type:"password",name:"apikey",required:!0}],props:fa},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",alpha:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:"https://immersivetranslate.com/docs/services/niu",allProps:[{name:"APIKEY",required:!0,type:"password"}]}},rm={type:O+"ChildFrameToRootFrameIdentifier"};var cr="user_info",nm=Nt()||Ut()?"https://api2.immersivetranslate.com":"https://test-api2.immersivetranslate.com",am=Nt()||Ut()?"https://immersivetranslate.com/accounts/login?from=plugin":"https://test.immersivetranslate.com/accounts/login?from=plugin",om=Nt()||Ut()?"https://immersivetranslate.com/profile":"https://test.immersivetranslate.com/profile",Jr=Nt()||Ut()?"https://immersivetranslate.com/pricing":"https://test.immersivetranslate.com/pricing",im=Jr+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",sm=Jr+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",lm=Jr+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal";var At=console,Xr=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let r=performance.now(),n=Math.round(r-this.#e),a=He.green;n>1e4?a=He.red:n>1e3&&(a=He.yellow),At.debug(He.dim(dt+" TIMING:"),t,"in",a(n+"ms")),this.#e=r}},jt=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&At.log(He.dim(dt+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&At.log(He.green(dt+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&At.warn(He.yellow(dt+" WARN:"),...t)}error(...t){this.#e<=3&&At.error(He.red(dt+" ERROR:"),...t)}fatal(...t){this.#e<=4&&At.error(He.red(dt+" FATAL:"),...t)}timing(){return this.level===0?new Xr:{reset:()=>{},stop:()=>{}}}},D=new jt;function mt(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t==="zh-hans")return"zh-CN";if(t==="zh-hant"||t==="zh-hk")return"zh-TW";if(t==="iw")return"he";if(t==="jv")return"jw";let r=Ft.map(a=>a.toLowerCase()),n=r.indexOf(t);if(n===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let a=r.indexOf(t);return a===-1?"auto":Ft[a]}else return"auto";else return Ft[n]}function en(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}var tn="DENO",ur="CHROME",dr="FIREFOX";function Sa(e){let t=ur;try{let r=navigator?.userAgent||"";/firefox/i.test(r)||typeof InstallTrigger<"u"?t=dr:/deno/i.test(r)&&(t=tn)}catch{}return e===ur&&t===ur||e===dr&&t===dr||e===tn&&t===tn}function Aa(){return Sa(ur)}function ka(){return typeof Deno<"u"}function Ca(){return Sa(dr)}var Pa={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},_a={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:Pa,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}}},tabs:{onUpdated:Pa,query:()=>{},sendMessage:()=>{}}};var g;ka()?g=_a:g=globalThis.immersiveTranslateBrowserAPI;var Ea=O+"SyncStoreKey_";function kt(e,t){let r=Ea+e;return g.storage.sync.get(r).then(n=>n[r]===void 0?t:n[r])}function Ct(e,t){let r=Ea+e;return g.storage.sync.set({[r]:t})}var Zs=O+"StoreKey_";function qt(e,t){let r=Zs+e;return g.storage.local.get(r).then(n=>n[r]===void 0?t:n[r])}var gt=O+"CacheKey_";function Js(e,t){let r=gt+e;return g.storage.local.get(r).then(n=>n[r]===void 0?t:n[r])}function Xs(){let e=g.storage.local.refresh;e&&e()}function el(e,t){let r=gt+e;return g.storage.local.get(r).then(n=>{if(n[r]===void 0)return t;let{value:a,expired:o}=n[r];return o&&on.startsWith(gt)).filter(n=>n!==gt+cr);if(r.length>0)return g.storage.local.remove(r)}}var Ma={get:Js,set:rl,getExpired:el,setExpired:tl,remove:nl,clear:al,refresh:Xs};var pt=class extends Error{details;constructor(t,r,n){super(r),this.name=t,n&&(this.details=n)}};async function mr(e){let t;if(e&&e.retry&&e.retry>0)try{t=await Er(La.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(r){throw r&&r.name==="RetryError"&&r.cause?r.cause:r}else t=await La(e);return t}async function La(e){e.body;let{url:t,responseType:r,...n}=e;r||(r="json"),n={mode:"cors",...n};let a=!0;e.fetchPolyfill&&(a=!1);let o=e.fetchPolyfill||fetch,s=3e5;if(e.timeout&&(s=e.timeout),a){let c=new AbortController,d=c.signal;setTimeout(()=>{c.abort()},s),n.signal=d}let i;try{i=await o(t,n)}catch(c){D.debug("fetch error",t,c);let d=c.message||"";throw c.message="\u7F51\u7EDC\u95EE\u9898\uFF0C\u65E0\u6CD5\u8FDE\u63A5\u5230\u670D\u52A1\uFF0C\u8BF7\u68C0\u67E5\u4F60\u7684\u4EE3\u7406\u6216\u672C\u5730\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u8BD5\u3002 "+d,c}if(i.ok&&i.status>=200&&i.status<400){if(r==="json")return await i.json();if(r==="text")return await i.text();if(r==="raw"){let c=await i.text(),d=Object.fromEntries([...i.headers.entries()]),u=i.url;return u||(i.headers.get("X-Final-URL")?u=i.headers.get("X-Final-URL"):u=t),{body:c,headers:d,status:i.status,statusText:i.statusText,url:u}}else if(r==="stream"){let c="",d;if(i.body&&i.body instanceof ReadableStream)for await(let u of ol(i.body)){let f=new TextDecoder().decode(u);c+=f;let _;for(;(_=c.indexOf(` +`))>=0;){let v=c.slice(0,_).trim();if(c=c.slice(_+1),v.startsWith("event:")||v==="")continue;let P="";if(v.startsWith("data:")&&(P=v.slice(5).trim()),P==="[DONE]")break;let ee;try{ee=JSON.parse(P??"")}catch(Z){D.debug("json error",Z);continue}d=ee}}return d}}else{let c;try{c=await i.text()}catch(v){D.error("parse response failed",v)}c&&D.error("fail response",c);let d="";c&&(d=c.slice(0,280));let u="\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u4EE3\u7801:"+i.status+": "+(i.statusText||"")+d,_=new URL(t).hostname.endsWith(".immersivetranslate.com");throw i.status===429?_?d.includes("quota exceeded")?u="ProQuota:"+d:u=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${d} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`:u=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A429\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${d}`:i.status===403?u=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A403\uFF0C \u8BF4\u660E\u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ${d}`:i.status===400?u=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A400\uFF0C \u8BF4\u660E\u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002 ${d}`:i.status===502?u=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A502\uFF0C \u8BF4\u660E\u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${d}`:i.status===401&&(u=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A401\uFF0C \u8BF4\u660E\u672A\u767B\u5F55\u6216\u767B\u5F55\u6001\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002 ${d}`),new pt("fetchError",u,c)}}async function*ol(e){let t=e.getReader();try{for(;;){let{done:r,value:n}=await t.read();if(r)return;yield n}}finally{t.releaseLock()}}var il=new Map;function Ra(e){let t=sl(64),r=new CustomEvent(wa,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(r),new Promise((n,a)=>{il.set(t,(o,s)=>{o?a(o):n(s)})})}function sl(e){let t="",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=r.length,a=0;for(;a","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};function Da(){return Ia.version}function Oa(){try{return globalThis.self!==globalThis.top}catch{return!0}}var Kt=new Map,ht=class{fromType;logger;constructor(t,r=!1){this.logger=new jt,r&&this.logger.setLevel("debug"),this.fromType=t,Kt.has(t)||(Kt.set(t,new Map),g.runtime.onMessage.addListener((n,a,o)=>{let s=n.from,i=n.to,c,d,u;a.tab&&a.tab.id&&(c=a.tab.id,s=`${s}:${c}`,d=a.tab.url,u=a.tab.active),this.logger.debug(`${n.to} received message [${n.payload.method}] from ${n.from}`,n.payload.data?n.payload.data:" ");let f=nn(i),{type:_,name:v}=f;if(_!==t)return!1;let P=nn(s),Z=Kt.get(_).get(v);if(!Z)return this.logger.debug(`no message handler for ${_}:${i}, but it's ok`),!1;let{messageHandler:m,sync:ve}=Z,G={type:t,name:P.name,id:c,url:d,active:u};if(ve){try{let te=m(n.payload,G);o({ok:!0,data:te})}catch(te){o({ok:!1,errorName:te.name,errorMessage:te.message,errorDetails:te.details})}return!1}else return m(n.payload,G).then(te=>{o({ok:!0,data:te})}).catch(te=>{o({ok:!1,errorName:te.name,errorMessage:te.message,errorDetails:te.details})}),!0}))}getConnection(t,r,n){let a=!1;n&&n.sync&&(a=!0);let o=this.fromType,s=Kt.get(o);if(s.has(t))return s.get(t).connectionInstance;{let i=new rn(`${o}:${t}`,this.logger);return Kt.get(o).set(t,{messageHandler:r,sync:a,connectionInstance:i}),i}}},rn=class{from;logger;constructor(t,r){this.from=t,this.logger=r}async sendMessage(t,r){let n=nn(t),{type:a,id:o}=n;if(a!=="content_script"){let s={to:t,from:this.from,payload:r};this.logger.debug(`${s.from} send message [${s.payload.method}] to ${s.to}`,s.payload.data?s.payload.data:" ");try{let i=await g.runtime.sendMessage(s);return Na(s,i,this.logger)}catch(i){if(a==="popup"){let c=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(r)}`;return this.logger.debug(c,r,t,i),Promise.resolve({message:c})}else throw i}}else{let s={from:this.from,to:t,payload:r};this.logger.debug(`${s.from} send message [${s.payload.method}] to ${s.to}`,s.payload.data?s.payload.data:" ");let i=await g.tabs.sendMessage(o,s);return Na(s,i,this.logger)}}};function Na(e,t,r){if(t){if(t.ok)return r.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new pt(t.errorName||"UnknownError",t.errorMessage||"Unknown error",t.errorDetails)}else throw new pt("noResponse","Unknown error")}function nn(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let r={type:t[0],name:t[1]};if(t[0]==="content_script"){let n=parseInt(t[2]);if(!isNaN(n))r.id=n;else throw new Error("tab id not a valid number")}return r}var gr;function cl(){return gr||(gr=new ht("content_script",!1).getConnection("pure_main",()=>{}),gr)}var Ua="G-MKMD9LWFTR";async function Fa(e,t){try{let r=ge();if(r.INSTALL_FROM==="firefox_store")return;let a=vt(),o=Oa(),s=r.PROD==="1",i="sitc4WmvShWYwfU0dANM3Q",c=await kt("fakeUserId","");c||(c=await qt("fakeUserId",""),c&&await Ct("fakeUserId",c));let d=Da(),u=new Date,f=await kt("installedAt","");f||(f=await qt("installedAt",""),f&&await Ct("installedAt",f)),c?f||(f=new Date(0).toISOString(),await Ct("installedAt",f)):(c=ul(32),await Ct("fakeUserId",c)),f||(f=u.toISOString(),await Ct("installedAt",f));let _=new Date(f),v=Ba(_),P=Ba(u),ee=v===P,Z=u.getTime()-_.getTime()<7*24*60*60*1e3,m=`https://www.google-analytics.com/mp/collect?measurement_id=${Ua}&api_secret=${i}`;s||(m=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${Ua}&api_secret=${i}`);let ve="";typeof navigator<"u"&&(ve=window.navigator.userAgent);let G=tr.parse(ve),te=t.map(S=>{let y=S.params||{};return G.os&&(y.os_name=G.os.name||"unknown",y.os_version=G.os.version||"unknown",y.os_version_name=G.os.versionName||"unknown"),G.browser&&(y.browser_name=G.browser.name||"unknown",y.browser_version=G.browser.version||"unknown"),G.platform&&(y.platform_type=G.platform.type||"unknown"),G.engine&&(y.engine_name=G.engine.name||"unknown",y.engine_version=G.engine.version||"unknown"),d&&(y.version=d),r.INSTALL_FROM&&(y.install_from=r.INSTALL_FROM),v&&(y.install_day=dl(_)),y.userscript=a.toString(),ee?y.is_new_user_today="1":y.is_new_user_today="0",Z?y.is_new_user_this_week="1":y.is_new_user_this_week="0",o?y.main_frame=0:y.main_frame=1,{...S,params:y}}),be=await gl({responseType:"text",url:m,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:te})})}catch{}}function ul(e){let t="",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=r.length,a=0;for(;a",""],limit:5e3},custom:{placeholderDelimiters:["{","}"]},bing:{maxTextLengthPerRequest:1800,placeholderDelimiters:["","","b"]},deeplx:{limit:3},d:{immediateTranslationTextCount:0},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},openai:{placeholderDelimiters:["{{","}}","b"],immediateTranslationTextCount:3e3,translationDebounce:300,interval:1350,prompt:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: {{text}}`,maxTextGroupLengthPerRequest:1,newlinePlaceholderDelimiters:[` @@ -4263,8 +4263,8 @@ Additionally, we support using Chinese aliases of language codes as commands. Fo ?`]}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:""},tempTranslateDomainMinutes:0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","*.twitter.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","github.com","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","www.tumblr.com","*.twitter.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},generalRule:{_comment:"",enableSubtitle:!0,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan"],useIframePostMessage:!0,searchEnhancementConfig:[],injectedCss:[],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!0,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,isTransformPreTagNewLine:!1,urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".MathJax_Preview",".MathJax",".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:4,paragraphMinWordCount:2,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,globalAttributes:{},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{".sr-only":"display:none"},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{translate:"no"},"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:[],additionalExcludeSelectors:[".social-share",".breadcrumbs",".post__footer",".btn",".reference-citations",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","markerow8"],translationClasses:[],atomicBlockSelectors:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","INPUT","BUTTON","BASE","SELECT","OPTION","HR","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","XQDD_HIGHLIGHT_NEW_WORD","NOBR"],additionalInlineTags:[],extraInlineSelectors:[],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,mouseHoverHoldKey:"Off"},rules:[{id:"immersive",matches:["https://immersivetranslate.com","https://onboarding.immersivetranslate.com"],isInjectVersion:!0,isInjectMeta:!0},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"pdf",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],translationMode:"translation",skipEditableCheck:!0,selectors:["p"],wrapperPrefix:"",isInjectVersion:!0,isPdf:!0},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,injectedCss:[".immersive-translate-target-translation-block-wrapper { display: block; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"]},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","https://platform.twitter.com/embed*"],additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']"],extraBlockSelectors:['[data-testid="tweetText"] div.r-6koalj'],extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText']":"-webkit-line-clamp: unset;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]"]},{id:"threads",matches:"www.threads.net",selectors:["p",".x1npkx4u.x1exu5d8",".xw7yly9",".xgkxs2y"],stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x78zum5",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{span:"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],extraBlockSelectors:["span.comment-copy"],excludeSelectors:["a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md",".RichTextJSON-root","div[slot=title]","div[slot=text-body]","p.title > a","[role=main] .md-container"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none"},waitForSelectors:["[data-testid=post_author_link]"]},{id:"reddit",matches:"www.reddit.com",selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","div[slot=title]","div[slot=text-body]","p.title > a","[role=main] .md-container"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none"}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper"],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box"],extraBlockSelectors:[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],detectParagraphLanguage:!0},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"facebook",matches:"www.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]"],atomicBlockSelectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],extraBlockSelectors:["span.x1vvkbs"],excludeSelectors:["[role=button]"],translationClasses:["immersive-translate-text"],detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".caption-window",".caption-visual-line",".yt-spec-button-view-model",".yt-core-attributed-string > span",".title"],"excludeTags.remove":["BUTTON"],condition:{enableSubtitle:{false:{"selectors.remove":[".caption-window",".caption-visual-line"]}}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],extraBlockSelectors:[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,detectParagraphLanguage:!0,excludeSelectors:["[class^='lln-']"],globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","ytd-notification-renderer .message","#message",".caption-window",".caption-visual-line"],extraBlockSelectors:["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],condition:{enableSubtitle:{false:{"selectors.remove":[".caption-window",".caption-visual-line"]}}},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,selectors:["h1","div[class='x9f619 xjbqb8w x78zum5 x168nmei x13lgxp2 x5pf9jr xo71vjh x1uhb9sk x1plvlek xryxfnj x1c4vz4f x2lah0s xdt5ytf xqjyukv x1cy8zhl x1oa3qoh x1nhvcw1'] > span[class='x1lliihq x1plvlek xryxfnj x1n2onr6 x193iq5w xeuugli x1fj9vlw x13faqbe x1vvkbs x1s928wv xhkezso x1gmr53x x1cpjm7i x1fgarty x1943h6x x1i0vuye xvs91rp xo1l8bm x5n08af x10wh9bi x1wdrske x8viiok x18hxmgj']","span[class='x193iq5w xeuugli x1fj9vlw x13faqbe x1vvkbs xt0psk2 x1i0vuye xvs91rp xo1l8bm x5n08af x10wh9bi x1wdrske x8viiok x18hxmgj']"],wrapperPrefix:"
"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:["[style^=top]",".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;"},extraBlockSelectors:[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"]},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page"],excludeMatches:["https://www.inoreader.com/features/"],observeUrlChange:!1,globalStyles:{".article_title_link":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` `,selectors:["h3 a[data-clk]","div.gs_rs","td a.gsc_a_at","td div.gs_gray:last-of-type","div.gsc_oci_value","#gs_opinion"],extraInlineSelectors:["br"],atomicBlockSelectors:["h3 a[data-clk]"]},{id:"googleMail",matches:"mail.google.com",detectParagraphLanguage:!0,selectors:["h2[data-thread-perm-id]","span[data-thread-id]","div[data-message-id] div[class='']",".messageBody","#views"],globalStyles:{".Nk":"height:auto!important;",".kf":"white-space:unset!important;"}},{id:"googleNews",matches:"news.google.com",blockMinTextCount:26,blockMinWordCount:5,globalStyles:{".MCAGUe":"height: auto;",".To2ZZb.DbQnIe":"height: unset;",".cp7Yvc > h2":"display: block;",".oovtQ":"height: auto;",h4:"-webkit-line-clamp: unset;"},excludeSelectors:[".EyERq",".AOl7G.eejsDc","[aria-label='Home']","[aria-label='For you']","[aria-label='Following']","[aria-label='World']","[aria-label='Local']",".gb_Fc",".wBQf7b",".yPI8Rb",".jKHa4e",".u43Gd",".Zgjpyb","[role='button']","[jsname='rymPhb']",".cbz1ld",".VfPpkd-P5QLlc",".XvhY1d"]},{id:"outlook",matches:"outlook.live.com",excludeSelectors:[".jHAG3.XG5Jd",".OZZZK",".lDdSm"]},{id:"producthunt",matches:"www.producthunt.com",excludeMatches:"https://www.producthunt.com/stories/*",selectors:["h2","div[class^='styles_htmlText__']","[class^='styles_tagline']","a[href^='/discussions/'].fontWeight-600","button[class^='styles_textButton'] > div > span","h5 + p","div[data-test=product-item-name] + div",".noOfLines-1,.noOfLines-2,.noOfLines-3",".fontWeight-600","[class*='styles_dropdown']","[class*='styles_aboutText']"],globalStyles:{"h5 + p":"height:unset;",".noOfLines-1,.noOfLines-2,.noOfLines-3":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"]},{id:"codeforces",matches:"https://codeforces.com/*",stayOriginalTags:["[class^='MathJax']"]},{id:"arxivLabs",matches:"*.labs.arxiv.org/*",stayOriginalTags:["math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt"]},{id:"discord",matches:"https://discord.com/channels/*",isTranslateTitle:!1,selectors:["li[id^=chat-messages] div[id^=message-content]","div[class^=headerText]","section[aria-label='Search Results'] div[id^=message-content]"],extraBlockSelectors:["[class^='embedFieldValue']","li[class^='card'] div[class^='message']","[data-list-item-id^='forum-channel-list'] div[class^='headerText']"],globalStyles:{"div[class^=headerText]":"max-height: unset;","div[class^=message]":"max-height: unset;","div[class^=text]":"max-height: unset;","h3[data-text-variant='heading-lg/semibold']":"-webkit-line-clamp: none;"},detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:"",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"telegram",matches:["web.telegram.org/z/*","web.telegram.org/a/*"],isTranslateTitle:!1,selectors:[".text-content",".message",".reply-markup-button-text",".bot-commands-list-element-description"],detectParagraphLanguage:!0},{id:"telegramK",matches:["web.telegram.org/k/*","web.telegram.org/k/"],selectors:[".message",".reply-markup-button-text",".bot-commands-list-element-description"],detectParagraphLanguage:!0},{id:"githubGist",matches:"gist.github.com",selectors:[".markdown-body",".readme"],detectParagraphLanguage:!0},{id:"lobste",matches:"lobste.rs",excludeMatches:["https://lobste.rs/about","https://lobste.rs/chat"],selectors:[".u-repost-of",".comment_text",".story_text"]},{id:"slack",matches:"*.slack.com",selectors:[".p-rich_text_block",".p-message_pane__foreword",".c-alert__message","[data-qa=message_attachment_text]"],additionalStayOriginalSelectors:["[data-qa=emoji]"],detectParagraphLanguage:!0},{id:"artstationArtwork",matches:"www.artstation.com/artwork/*",excludeSelectors:".project-description a",selectors:[".project-description","div.project-comment-text"],detectParagraphLanguage:!0},{id:"artstationLearning",matches:"www.artstation.com/learning/courses/*",additionalSelectors:["footer.learning-course-description.ng-star-inserted > span"],excludeSelectors:[".learning-card-meta"]},{id:"artstationBlog",matches:["https://www.artstation.com/blogs","https://www.artstation.com/blogs/*"],detectParagraphLanguage:!0,additionalSelectors:[".comment-item-body"],atomicBlockSelectors:[".author-headline",".author-location"],excludeSelectors:["blog-card-thumbnail","blog-card-header",".blog-card-author",".blog-card-meta",".blog-view-header",".blog-grid-title",".post-meta-header"]},{id:"figmaCommunity",matches:"www.figma.com/community/*",normalizeBody:"div.ql-editor[contenteditable='false']",excludeSelectors:["div[class*='metadataRight']","div[class*='commentMetaAndOptions']"],globalStyles:{"div[class*='mini_cardBottomRowSizing']":"height: 3em;"},additionalSelectors:["div[class*='mini_cardBottomRow_Metadata']"],stayOriginalSelectors:["[data-tooltip='tooltip-user-info']"]},{id:"googleIndex",matches:["https://www.google.com/","https://www.google.com.hk/"],excludeSelectors:["#gb","#SIvCob"],inputTutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",inputTutorialsSelectors:["textarea#APjFqb"]},{id:"googleSearch",matches:"www.google.*/search*",blockMinTextCount:32,blockMinWordCount:3,wrapperSuffix:"",detectParagraphLanguage:!0,excludeSelectors:["a h3 + div","div#sfooter","a[role=presentation] > div > div:first-child",".b5ZQcf",".CEMjEf",".MgUUmf.NUnG9d","#result-stats","[role=navigation]","div.sCuL3","div.eFM0qc.BCF2pd","div.WZ8Tjf","div.adDDi","#headerSection","#rateChatDiv","[id=bres]",".title-D5Lgyj","[data-attrid='VisualDigestVideoResult']",".search-enhance-WDIEkP h4",".SPZz6b h2",".CtCigf",".VLkRKc",".EbH0bb",".Wr0c6d",".jleFbf","#searchform",".yg51vc",".CbAZb"],extraBlockSelectors:[".MUFPAc"],globalStyles:{".V82bz":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px",".pe7FNb":"-webkit-line-clamp: unset;",".promotion-3PDMAb":"display: none;",".uAKcGb":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px","div[data-content-feature='1'] > div":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:2']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:3']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:4']":"-webkit-line-clamp: unset;max-height: unset;",".Pw4Ldf.RsCEN":"height:unset;",".related-question-pair":"overflow:auto;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,searchEnhancementConfig:[{id:"google",urlMatch:"https://www\\.google\\..+/search",style:{source:"font-size:12px; margin-bottom: 6px;",enTitle:"margin-top:6px;font-size:14px;",searchTitle:"margin-top:6px;position:relative;padding-right:24px;",more:"color:#1a0dab;margin-top:8px;",enTitleClassName:"immersive-translate-search-enhancement-en-title"},keyword:{value:"[0]$1",matches:[{source:"url",matchRegex:"q=(.+?)&"}]},showCount:5}]},{id:"lowendtalk",matches:"lowendtalk.com",selectors:["[role=heading]","h1",".userContent"]},{id:"linkedinJobs",matches:"www.linkedin.com/jobs/*",selectors:["#job-details > span"]},{id:"linkedinFeed",matches:"https://linkedin.com/feed/*",selectors:["h1",".feed-shared-update-v2__description-wrapper"]},{id:"indiehackers",matches:"www.indiehackers.com",selectors:[".content","h1","h3.story__title",".feed-item__title-link",".article-body"]},{id:"libreddit",matches:"libreddit.de",selectors:["h2.post_title",".comment_body > .md"]},{id:"notionSite",matches:["notion.site","*.notion.site"],normalizeBody:"body",selectors:["div[data-block-id]"]},{id:"newyorker",matches:"www.newyorker.com",additionalSelectors:["h1","[data-testid=SummaryItemHed]"],excludeSelectors:["[data-testid=PersistentTop]","[data-testid=StackedNavigationHeader]"],urlChangeDelay:2e3},{id:"startme",matches:"start.me",selectors:[".rss-article__title",".rss-articles-list__article-link",".rss-showcase__title",".rss-showcase__text"]},{id:"scmp",matches:"www.scmp.com",additionalSelectors:[".info__subHeadline",".section-content h2"],globalStyles:{".topic__article-list":"height: unset;",".adverisers__adveriser":"height: unset;",".advertiser__content":"height: unset;",".content-title__link":"display:unset;overflow:unset;-webkit-line-clamp:unset;",".title__text":"max-height:unset; -webkit-line-clamp:unset;",".news-list-item__news-title":"max-height:unset; -webkit-line-clamp:unset;","a[class*='link'] > .link__headline":"max-height:unset; -webkit-line-clamp:unset;"}},{id:"lesswrong",matches:"www.lesswrong.com",extraBlockSelectors:["span.commentOnSelection"]},{id:"mastodon",matches:["mastodon.social","mastodon.online","kolektiva.social","indieweb.social","mastodon.world","infosec.exchange"],isTranslateTitle:!1,selectorMatches:["div#mastodon"],selectors:["div.status__content__text",".about__section__body",".content",".form-container",".account__header__extra"],globalAttributes:{"[class='notranslate app-holder']":{class:"app-holder"}},detectLanguage:!0},{id:"cnbc",matches:"www.cnbc.com",urlChangeDelay:1e3,globalStyles:{"div.Card-titleContainer > div":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"dailyDev",matches:"app.daily.dev",selectors:["h1",".typo-body","article h3","[class^=markdown_markdown]"],globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset"}},{id:"pornhub",matches:["*.pornhub.com","pornhub.com"],excludeMatches:["*.pornhub.com/insights/*","pornhub.com/insights/*"],extraBlockSelectors:[".trendingNow",".searchItem",".tagcloud > a"],detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:` `,globalStyles:{"span.title":"height:unset; max-height:unset;",".detailedInfo":"max-height:unset;",".pcVideoListItem":"max-height:unset;",".wrap":"height:unset;",".entry-header":"height:unset;",".entry-title > a":"height:unset;-webkit-line-clamp:unset;"}},{id:"yourporn",matches:"https://www.youporn.com/*",extraBlockSelectors:[".button"],globalStyles:{".video-box":"max-height:unset;",".video-box-title":"white-space:unset;"}},{id:"modelhub",matches:"https://www.modelhub.com/*",globalStyles:{".videoTitle":"height:unset;",a:"height:unset;"}},{id:"xvideos",matches:"https://www.xvideos.com/*",globalStyles:{".title":"-webkit-line-clamp:unset;max-height:unset;",".mozaique":"display:flex; flex-wrap:wrap;"},excludeSelectors:[".video-hd-mark"]},{id:"missav",matches:"https://missav.com/*",globalStyles:{".truncate":"white-space:unset;",".overflow-y-hidden":"max-height:unset;overflow-y:unset;"}},{id:"javbus",matches:"https://www.javbus.com/*",globalStyles:{".photo-info":"height:unset;"},excludeSelectors:[".item-tag","date"]},{id:"spankbang",matches:"https://spankbang.com/*",globalStyles:{".video-item > a":"white-space:unset;"},excludeSelectors:[".stats",".thumb"],extraBlockSelectors:[".searches > a",".tag > a",".extra > a",".positions > li"]},{id:"javdb",matches:"https://javdb*.com/*",globalStyles:{".video-title":"white-space:unset;"},excludeSelectors:[".video-number",".score",".has-addons"]},{id:"jable",matches:"https://jable.tv/*",globalStyles:{".title":"white-space:unset;max-height:unset;",".img-box > a":"position:relative;"}},{id:"netflav",matches:"https://netflav*.com/*",globalStyles:{".grid_title":"max-height:unset;"},extraBlockSelectors:[".genre_filter_item","button"]},{id:"czechvideo",matches:"https://czechvideo.co/*",globalStyles:{".short-story":"height:unset;",".short-title":"height:unset;"},globalAttributes:{header:{translate:"unset;"}}},{id:"weibo",matches:["weibo.com"],selectors:["div[class^='detail_wbtext']"]},{id:"medium",matches:["medium.com","*.medium.com"],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],urlChangeDelay:20,"additionalExcludeSelectors.remove":["i.fa","i[class^=fa-]",".navmenu-container",".google-symbols","markerow8"],selectors:["h1","h2","article section","[aria-hidden='false'] pre","article p"],excludeSelectors:["[aria-label='Post Preview Reading Time']",".al.b.bl.ag.bp",".al.b.bl.ag.ai"],globalStyles:{h2:"-webkit-line-clamp: unset;max-height:unset;","article p":"-webkit-line-clamp: unset;max-height:unset;"}},{id:"nitter",selectorMatches:["meta[property='og:site_name'][content='Nitter']"],selectors:[".tweet-content",".quote-text"]},{id:"economist",matches:"www.economist.com",extraInlineSelectors:["span[data-caps='initial']"],excludeSelectors:["footer.ds-footer"],injectedCss:["a::before {position:relative!important;}"]},{id:"healthline",matches:"www.healthline.com",excludeSelectors:[".icon-hl-trusted-source-after"]},{id:"ebay",matches:"www.ebay.com",excludeSelectors:["headers","[itemprop=offers]",".dne-itemtile-original-price"],paragraphMinTextCount:4,paragraphMinWordCount:2,globalStyles:{"[itemprop=name]":"-webkit-line-clamp: unset;max-height: unset;",".merch-item-title":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"skinstore",matches:"www.skinstore.com",excludeSelectors:[".responsiveFlyoutMenu_levelOneLink"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"tripadvisor",matches:"www.tripadvisor.com",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"amazon",matches:"www.amazon.com",paragraphMinTextCount:4,paragraphMinWordCount:2,extraBlockSelectors:[".a-size-small.a-link-normal.page-banner-link.a-nowrap"],globalStyles:{".a-carousel-viewport":"height:unset;","[class*='clamp']":"max-height: unset;-webkit-line-clamp: unset;","[data-rows]":"max-height: unset;-webkit-line-clamp: unset;","[data-a-expander-name='review_text_read_more']":" max-height: unset;"},excludeSelectors:["#navFooter","#navbar-main",".s-price-instructions-style","[class*='star']","[data-hook='acr-average-stars-rating-text']",".a-color-price"]},{id:"visualstudioMarketplace",matches:"marketplace.visualstudio.com",additionalExcludeSelectors:[".core-info-second-row",".core-info-third-row",".meta-data-list",".item-title",".breadcrumb",".itemDetails-right",".ux-user-name",".ux-updated-date",".ux-item-second-row-wrapper",".stats-and-offer",".header-container"],atomicBlockSelectors:[".core-info-cell > div.name"],globalStyles:{".item-details-control-root.ux-item-shortdesc":"height: unset; overflow: visible; max-height:unset;"}},{id:"bloomberg",matches:"www.bloomberg.com",urlChangeDelay:2e3,excludeSelectors:[".ticker-bar","nav","[aria-label=Banner]","aside","[data-component=ticker-bar]","footer.bb-global-footer"]},{id:"baiduXueshu",matches:"xueshu.baidu.com",globalStyles:{".abstract_wr":"height: unset; overflow: visible; max-height:unset;"}},{id:"sciencedirect",matches:"www.sciencedirect.com",urlChangeDelay:2e3,stayOriginalSelectors:["span.display","span.math"],extraBlockSelectors:["span.captions","span[id^=cap]"]},{id:"thehighestofthemountains",matches:"www.thehighestofthemountains.com",extraBlockSelectors:"div"},{id:"telegraph1",matches:"te.legra.ph",normalizeBody:"div.ql-editor[contenteditable='false']",urlChangeDelay:500},{id:"telegraph2",matches:["telegra.ph"],normalizeBody:"div.ql-editor[contenteditable='false']",wrapperPrefix:` -`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main > div > div[class*='h-[125]']":"height:auto"},normalizeBody:"body",extraBlockSelectors:["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,normalizeBody:"#mw-content-text",globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"]},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"}},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:"chat.openai.com",excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0}},{id:"newstop",matches:["chat.newstop.asia","chat.waixingyun.cn"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".n-button.n-button--warning-type.n-button--medium-type",messageWrapperSelector:".markdown-body",streamingChange:!1,streamingDeepChild:!0}},{id:"askgpt",matches:["askgpt.cn","chatcat.zhaoyoung.me"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".home_chat-message-status__EsVNi",messageWrapperSelector:".markdown-body",streamingChange:!0,streamingDeepChild:!0}},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__UyYrv *",".MarkdownLink_linkifiedLink__KxC9G"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__UyYrv",streamingChange:!1,streamingDeepChild:!0}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"newthingsunderthesun",matches:"www.newthingsunderthesun.com",additionalSelectors:["[translate=no]"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"https://steamcommunity.com/app/*",globalStyles:{".forum_topic":"height:auto;",".forum_topic_name":"white-space:normal;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampowered",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:"https://www.webofscience.com/*",globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},excludeSelectors:[".summary-left-panel",".authors","app-full-record-keywords mark"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],extraBlockSelectors:["app-summary-authors + div","app-full-record-keywords span span"],observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://www.jetbrains.com/help/*",extraBlockSelectors:["[data-test=prompt]"]},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails p"]},{id:"isEbook",isEbook:!0,isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span"},{id:"isEbookBuilder",isEbookBuilder:!0,isTranslateTitle:!1,targetWrapperTag:"span",selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com",extraBlockSelectors:["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],extraBlockSelectors:"font[face=verdana]"},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"isSubtitleBuilder",isSubtitleBuilder:!0,selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,wrapperPrefix:"",wrapperSuffix:""},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/",extraBlockSelectors:[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"vimeo",matches:"https://player.vimeo.com/video/*",extraBlockSelectors:["span.vp-captions-line","span[class^=CaptionsRenderer_]"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexityAi",matches:"https://www.perplexity.ai/search/*",extraBlockSelectors:[".prose > span"],additionalStayOriginalSelectors:["a.citation"],insertPosition:"afterend"},{id:"perplexity",matches:"https://www.perplexity.ai",globalStyles:{".line-clamp-1":"-webkit-line-clamp: unset !important;",".line-clamp-2":"-webkit-line-clamp: unset !important;"}},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"babelnovel",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*"],urlChangeDelay:0},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0},{globalAttributes:{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"youtrackJetbrains",matches:"youtrack.jetbrains.com/articles/*",selectors:["[role=presentation]","[data-test=article-content]"],excludeSelectors:[".toolbar__ee8"]},{id:"bbc",matches:"www.bbc.com",excludeSelectors:["section.module--languages",".drop-capped"]},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}}},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"openai",matches:"https://platform.openai.com/docs/*",urlChangeDelay:0},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout":"height:unset !important;",".EntrySummary--u4":"-webkit-line-clamp: unset;max-height:unset;",".EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:[".copyable-text > span"],wrapperPrefix:` -`,wrapperSuffix:"
"},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],globalStyles:{"[class*='lineclamp']":"-webkit-line-clamp:unset;"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],extraBlockSelectors:[".SIPGg",".sc-kzMCTH.pSZXj"],globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"]},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*",globalAttributes:{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead"],injectedCss:["a::after {position:relative!important;}"]},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},globalAttributes:{"#app":{class:""}}},{id:"haproxy",matches:["docs.haproxy.org","www.oreilly.com/openbook/opensources/book/*"],excludeTags:[],stayOriginalSelectors:[],stayOriginalTags:[],isTransformPreTagNewLine:!0},{id:"piAi",matches:"pi.ai/talk",excludeSelectors:[".whitespace-pre-wrap > span *"],aiRule:{streamingSelector:"button[class*='fixed'][disabled]",messageWrapperSelector:".whitespace-pre-wrap",streamingChange:!1,streamingDeepChild:!1},globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *"],"excludeTags.remove":["PRE"],injectedCss:"[data-testid='chat-menu-trigger'] br {display:none;}",aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1}},{id:"feishu",matches:"*.feishu.cn","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],excludeSelectors:[".catalogue__list"]},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"bugsWebkit",matches:"bugs.webkit.org",isTransformPreTagNewLine:!0},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",matches:"www.kaggle.com",excludeTags:["i","button"]},{id:"ieee",matches:"spectrum.ieee.org",extraBlockSelectors:["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"www.cnn.com",excludeSelectors:[".ad-slot-header__wrapper"]},{id:"marginalrevolution",matches:"marginalrevolution.com",globalAttributes:{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",condition:{enableSubtitle:{false:{"excludeSelectors.add":[".bpx-player-subtitle-panel-text"]}}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"docs-oracle",matches:"docs.oracle.com",urlChangeDelay:0},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"edstem",matches:"edstem.org","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:"pubmed.ncbi.nlm.nih.gov",urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share"]},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"tldrnewsletter",matches:"actions.tldrnewsletter.com","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"bugzilla",matches:"bugzilla.mozilla.org","excludeTags.remove":["PRE"],isTransformPreTagNewLine:!0},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"excludeSelectors.add":["aside",".DocSearch-Modal"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"mail.qq.com",useIframePostMessage:!1},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]}]};function ht(e){return Array.isArray(e)?e:e?[e]:[]}function ja(e,t){let r={...e};return Ka(r,t),hl(r,t),r}function qa(e,t,r){let n={...t};return fl(e,n,r),n}function hl(e,t){if(!t.condition)return;let r=t.condition.enableSubtitle?.true||{},n=t.condition.enableSubtitle?.false||{},a=e.enableSubtitle?r:n;Ka(e,a)}function fl(e,t,r){try{return Object.keys(t).forEach(n=>{let[a,o]=n.split(".");if(o){let s=t[n];if(Array.isArray(e[a])&&(s=ht(t[n])),o==="add"){t[a]=Wt(e[a],s),delete t[n];return}else if(o=="remove"){t[a]=an(e[a],s),delete t[n];return}}}),Object.keys(r).forEach(n=>{let[a,o]=n.split(".");if(!a||r[n]===void 0)return;let s=r[n],i=t[a];if(Array.isArray(e[a])&&(s=ht(r[n]),i=ht(t[a])),o==="add"){t[a]=Wt(i,s);return}else if(o=="remove"){t[a]=an(i,s);return}Array.isArray(i)&&a.startsWith("additional")?t[a]=Wt(i,s):t[a]=s}),t}catch{}}function Ka(e,t){return Object.keys(t).forEach(r=>{let[n,a]=r.split(".");if(!n||t[r]===void 0)return;let o=t[r];if(Array.isArray(e[n])&&(o=ht(t[r])),a==="add"){e[n]=Wt(e[n],o);return}else if(a=="remove"){e[n]=an(e[n],o);return}Array.isArray(e[n])&&n.startsWith("additional")?e[n]=Wt(e[n],o):e[n]=o}),e}function Wt(e,t){let r;if(Array.isArray(e)){let n=ht(t);r=[...e,...n],r=Array.from(new Set(r))}else typeof e=="object"&&typeof t=="object"&&(r={...e,...t});return r}function an(e,t){if(Array.isArray(e)){let r=ht(t);return e=e.filter(n=>!r.includes(n)),Array.from(new Set(e))}else typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(r=>{delete e[r]});return e}function bl(){if(H.PROD==="1")return{};let e={};if(H.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&H.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let r={secretId:H.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:H.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=r}if(H.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&H.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let r={appid:H.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:H.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=r}if(H.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let r={token:H.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=r}if(H.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let r={apikey:H.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=r}if(H.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&H.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let r={appId:H.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:H.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=r}if(H.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&H.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let r={accessKeyId:H.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:H.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=r}if(H.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let r={authKey:H.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=r}if(H.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=H.DEEPL_PROXY_ENDPOINT),H.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=H.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),H.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let r={APIKEY:H.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=r}H.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=H.IMMERSIVE_TRANSLATE_SERVICE);let t={};return H.DEBUG==="1"&&(t.debug=!0,t.cache=!1),H.MOCK==="1"&&(t.translationService="mock"),t}async function zt(){let e=await g.storage.local.get(Bt);if(e[Bt]){let t=e[Bt],r=t.tempTranslationUrlMatches||[],n=r.filter(s=>s.expiredAt>Date.now()),a=!1;n.length!==r.length&&(r=n,a=!0);let o={...t,tempTranslationUrlMatches:[...r]};return a&&await Pt(o),o}else return{}}async function Pt(e){await g.storage.local.set({[Bt]:e})}async function it(){let e=await g.storage.local.get(sr),t={...nn,buildinConfigUpdatedAt:H.BUILD_TIME};if(e[sr]){let X=e[sr];if(X&&X.buildinConfigUpdatedAt){let C=new Date(X.buildinConfigUpdatedAt),W=new Date(t.buildinConfigUpdatedAt);C>W&&(t=X)}}let r=await Ma.get(va,null),n={};if(!xt()&&g.commands&&g.commands.getAll){let X=await g.commands.getAll();for(let C of X)C.name&&C.shortcut&&(n[C.name]=C.shortcut)}let a=wl(),o=bl(),s=await Ht(),i=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},c=await zt(),d=new Date;if(c&&c.tempTranslationUrlMatches&&c.tempTranslationUrlMatches.length>0){let X=c.tempTranslationUrlMatches.filter(C=>new Date(C.expiredAt)>d);if(X.length>0){let C=s.translationUrlPattern?s.translationUrlPattern?.matches||[]:[],W=Array.isArray(C)?C:[C],Ce=Array.from(new Set(W.concat(X.map(ae=>ae.match))));s.translationUrlPattern={...s.translationUrlPattern,matches:Ce}}}let u=Object.assign({},i,o,s);if(!u.interfaceLanguage){let X=await yl();u.interfaceLanguage=X}let f=u.interfaceLanguage==="en",_=u.targetLanguage==="en",v=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,P=["bing","google","transmart","mock"].includes(u.translationService)||!u.translationService;!f&&!_&&!v&&P?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let ee=t&&t.enableDefaultAlwaysTranslatedUrls;u.enableDefaultAlwaysTranslatedUrls===!1&&(ee=!1);let Z=u&&u.isChangedAlwaysTranslatedUrls,m=[];u.translationUrlPattern&&u.translationUrlPattern.matches&&(m=u.translationUrlPattern.matches||[]);let ve=!1;Z===void 0&&(m.length>0?Z=!0:Z=!1,u.isChangedAlwaysTranslatedUrls=Z,s.isChangedAlwaysTranslatedUrls=Z,ve=!0);let G=(u?.translationLanguagePattern?.matches?.length||0)>0,te=await At("installedAt",""),be=Number(await qt("translage_page_daily",0)),S=Number(await At(xa,0)),y;S>0&&(Date.now()-S0&&(Date.now()-bep.id&&Ce[p.id]?qa(t.generalRule,Ce[p.id],p):p);A[C]=[...ae,...A[C]]}if(H.PROD==="0"&&H.DEV_RULES){let W=JSON.parse(H.DEV_RULES);A[C]=[...W,...A[C]]}}else u[C]!==void 0&&(A[C]=u[C])}return A.donateUrl=t.donateUrl,A.minVersion=t.minVersion,A.feedbackUrl=t.feedbackUrl,A}async function Ht(){return(await g.storage.sync.get("userConfig")||{}).userConfig||{}}async function ft(e){await g.storage.sync.set({userConfig:e})}var yl=async()=>{let e=["zh-CN"];try{e=await g.i18n.getAcceptLanguages()}catch(n){D.warn("get browser language error:",n)}let r=e.map(n=>mt(n)).find(n=>ut[n]);return r||"en"},wl=()=>{let e={...nn,buildinConfigUpdatedAt:H.BUILD_TIME};return{...e,targetLanguage:lr,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing"},rules:[]}};function Tl(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(n=>!e.includes(n)).length>0}function Wa(e){let t=g.runtime.getURL(fa),r=new URL(t);return(e.startsWith("http")||!Ca())&&r.searchParams.set("file",e),r.href}function za(){return ge().PDF_VIEWER_URL}function Ha(e){return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}var Ga=["*://*/*","*","*://*"],$a="immersive-translate-wildcard-placeholder.com";function xl(e,t){let r=[];if(!t||(t&&!Array.isArray(t)?r=[t]:r=t,r.length===0))return null;if(r.some(s=>Ga.includes(s)))return e;let n=new URL(e);n.hash="",n.search="";let a=n.href,o=n.hostname;if(r&&r.length>0){let s=r.find(i=>{let c=i;if(i===o)return!0;if(Ga.includes(i))return!0;if(!i.includes("*")&&i.includes("://")){try{let d=new URL(i);return d.pathname==="/"&&!i.endsWith("/")?d.hostname===o:Sl(a,i)}catch{}return!1}else{let d,u=i;if(i.includes("://")){let Z=i.split("://");d=Z[0],d==="*"&&Z.length>1&&(d="*",i="https://"+Z[1])}else d="*",i="https://"+i;let f=i.replace(/\*/g,$a),_;try{_=new URL(f)}catch{return D.debug("invalid match pattern",f,"raw match value:",u),!1}let v=_.hostname,P=_.pathname;P==="/"&&(u.replace("://","").includes("/")||(P="/*"));let ee=vl(d+":",Va(v),Va(P));if(ee){let Z=new URL(a);return Z.port="",ee.test(Z.href)}else return!1}});if(s)return s}return null}function Va(e){return e.replaceAll($a,"*")}function vl(e,t,r){let n="^";return e==="*:"?n+="(http:|https:|file:)":n+=e,n+="//",t&&(e==="file:"||(t==="*"?n+="[^/]+?":(t.match(/^\*\./)&&(n+="[^/]*?",t=t.substring(2)),n+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),r?r==="*"||r==="/*"?n+="(/.*)?":r.includes("*")?(n+=r.replace(/\*/g,".*?"),n+="/?"):n+=r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):n+="/?",n+="$",new RegExp(n)}function Ya(e,t){return xl(e,t)!==null}function Sl(e,t){let r=new URL(e),n=new URL(t);return r.hostname===n.hostname&&r.pathname===n.pathname&&r.protocol===n.protocol&&r.port===n.port}var gr=class{accessToken;constructor(t){this.accessToken=t}async listAll(){let t=[],r="";do{let{nextPageToken:n,files:a}=await this.list(r).catch(o=>{throw o});t.push(...a),r=n||""}while(r);return t}async getConfig(t){try{return await(await fetch(`https://www.googleapis.com/drive/v3/files/${t}?alt=media`,{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(r){return D.error("get config error, use default",r),{}}}async delete(t){await fetch(`https://www.googleapis.com/drive/v3/files/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${this.accessToken}`}})}findByName(t){return this.list(void 0,`name = '${t}'`)}uploadConfig(t,r=ir){let n=new Blob([JSON.stringify(t,null,2)],{type:"application/json"});return this.upload({name:r,parents:["appDataFolder"],mimeType:"application/json"},n)}updateConfig(t,r){let n=new Blob([JSON.stringify(r,null,2)],{type:"application/json"});return this.updateContent(t,n)}async upload(t,r){let n=new FormData;n.append("metadata",new Blob([JSON.stringify(t)],{type:"application/json; charset=UTF-8"})),n.append("file",r);let a=await fetch("https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart",{method:"POST",headers:{Authorization:`Bearer ${this.accessToken}`},body:n});return a.ok?await a.json():Promise.reject(a.text())}async list(t,r){let n=new URL("https://www.googleapis.com/drive/v3/files");t&&n.searchParams.append("pageToken",t),r&&n.searchParams.append("q",r),n.searchParams.append("spaces","appDataFolder"),n.searchParams.append("fields","files(id,name,createdTime,modifiedTime,size)"),n.searchParams.append("pageSize","100"),n.searchParams.append("orderBy","createdTime desc");try{return D.debug("list api:",n.toString(),this.accessToken),await(await fetch(n.toString(),{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(a){throw D.error("fetch google ip error",a),a}}async updateContent(t,r){return await(await fetch(`https://www.googleapis.com/upload/drive/v3/files/${t}?uploadType=media`,{method:"PATCH",headers:{Authorization:`Bearer ${this.accessToken}`},body:r})).text()}};function Qa(e,t){let r=["https://www.googleapis.com/auth/drive.appdata"];return`https://accounts.google.com/o/oauth2/v2/auth?client_id=${or}&response_type=token&redirect_uri=${encodeURIComponent(t)}&scope=${encodeURIComponent(r.join(" "))}&state=${encodeURIComponent(JSON.stringify(e))}`}function Za(e){let t=e.match(/[#?](.*)/);return!t||t.length<1?null:{access_token:new URLSearchParams(t[1].split("#")[0]).get("access_token")}}async function Ja(e,t,r,n,a,o,s){if(D.debug(`autoSyncStrategy accessToken: ${e}`),t===null){D.debug("autoSyncStrategy settings is null");return}let i=new gr(e);try{let c=(await i.findByName(ir)).files;D.debug("files",c);let d=c[0]?.id,u=null;if(d&&(u=await i.getConfig(d).then(f=>({fileId:d,config:f}))),u){let{config:f,fileId:_}=u,v=f.updatedAt?new Date(f.updatedAt):new Date(0),P=t.updatedAt?new Date(t.updatedAt):new Date(0);if(D.debug("remoteUpdatedAt",v,"localUpdatedAt",P),v>P)D.debug("remote is newer, update local config",f),r(f),o&&o(!0);else if(v.getTime()===P.getTime())D.debug("remote and local are the same, do nothing"),o&&o(!1);else if(v(await e.removeAuthInfo(),Gr()&&globalThis.location.reload(),n))}static async getAuthInfo(){let t=await g.storage.local.get(vt);if(t[vt])return t[vt]}static async removeAuthInfo(){return await g.storage.local.remove(vt)}static setAuthInfo(t){return g.storage.local.set({[vt]:t})}async auth(t=!1){let r=await e.getAuthInfo();if(D.debug(this.CLASSNAME,"token from cache:",r),r&&r.access_token&&await Xa(r.access_token).then(o=>!0).catch(o=>!1))return Promise.resolve(r);let n=Qa(this._state,this._redirectUrl);return D.debug(this.CLASSNAME,"auth url: "+n),Gr()?this.userscriptAuthWorkflow(n,t):this.extensionAuthWorkflow(n).then(a=>(e.setAuthInfo(a),a))}async userscriptAuthWorkflow(t,r){return r&&await g.storage.local.set({[ba]:!0}),globalThis.open(t,"_self"),Promise.resolve({})}extensionAuthWorkflow(t){let r,n=!1;return new Promise((a,o)=>{let s=()=>{g.tabs.onUpdated.removeListener(i),g.tabs.onRemoved.removeListener(c)},i=(_,v,P)=>{if(D.debug(this.CLASSNAME,"create tab onUpdated: "+P.url),r===_){let ee=new URL(P.url||""),Z=Za(P.url);ee.pathname.startsWith("/auth-done")&&Z?.access_token&&(D.debug(this.CLASSNAME,"auth done: "+P.url),a({access_token:Z.access_token}),n=!0,g.tabs.remove(_),s())}},c=(_,v)=>{D.debug(this.CLASSNAME,"create tab onRemoved: "+_),(_===r||!n)&&(s(),o(new Error("auth failed")))},d=Math.min(500,screen.availWidth),u=Math.min(650,screen.availHeight),f;g.windows===void 0?f=g.tabs.create({url:t}).then(_=>{r=_.id}):f=g.windows.create({url:t,type:"popup",width:d,height:u,left:Math.round((screen.width-d)/2),top:Math.round((screen.height-u)/2)}).then(_=>{r=_.tabs[0].id}),f.then(()=>{g.tabs.onUpdated.addListener(i),g.tabs.onRemoved.addListener(c)}).catch(_=>{D.debug(this.CLASSNAME,"create tab failed: "+_),o(_)})})}};var kl="https://www.googleapis.com/oauth2/v3/tokeninfo",Cl=or,Pl=ge().REDIRECT_URL;function Xa(e){if(!e)throw"Authorization failure";let t=`${kl}?access_token=${e}`,r=new Request(t,{method:"GET"});function n(a){return new Promise((o,s)=>{a.status!=200&&s("Token validation error"),a.json().then(i=>{i.aud&&i.aud===Cl?o(e):s("Token validation error")})})}return fetch(r).then(n)}function eo(e,t=!1){let r=Pl;if(typeof window<"u"&&window.location.protocol.startsWith("http")){let a=window.location.hostname,o=window.location.port;r=`${window.location.protocol}//${a}${o?`:${o}`:""}/auth-done/`}return new pr(e,r).auth(t)}async function to(){}function ro(e,t){let r=new Map;for(let o of t)r.set(o.header.toLowerCase(),o);let n=[],a=e.filter(o=>{let s=r.get(o.name.toLowerCase());if(s){if(s.operation==="remove")return!1;if(s.operation==="set")return!1}return!0});for(let o of t)o.operation==="set"&&n.push({name:o.header,value:o.value||""});return a.concat(n)}var hr=[{id:1,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://httpstat.us/429"},{header:"origin",operation:"set",value:"https://httpstat.us/429"},{header:"DNT",operation:"set",value:"1"}]},condition:{urlFilter:"https://httpstat.us/429",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh"]}},{id:2,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://www.deepl.com/"},{header:"origin",operation:"set",value:"https://www.deepl.com"},{header:"DNT",operation:"set",value:"1"},{header:"cookie",operation:"remove"}]},condition:{urlFilter:"https://www2.deepl.com/jsonrpc*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh"]}},{id:200,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://www.deepl.com/"},{header:"origin",operation:"set",value:"chrome-extension://cofdbpoegempjloogbagkncekinflcnj"},{header:"DNT",operation:"set",value:"1"}]},condition:{urlFilter:"https://api.deepl.com/jsonrpc*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh"]}},{id:201,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://www.deepl.com/"},{header:"origin",operation:"set",value:"chrome-extension://cofdbpoegempjloogbagkncekinflcnj"}]},condition:{urlFilter:"https://w.deepl.com/oidc/token",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh"]}},{id:3,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"origin",operation:"set",value:"chrome-extension://lkjkfecdnfjopaeaibboihfkmhdjmanm"}]},condition:{urlFilter:"https://transmart.qq.com/api/imt",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh"]}},{id:4,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"origin",operation:"set",value:"chrome-extension://lkjkfecdnfjopaeaibboihfkmhdjmanm"}]},condition:{urlFilter:"https://translate.volcengine.com/crx/translate/v1/",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh"]}}];function st(e,t){var r=(e&65535)+(t&65535),n=(e>>16)+(t>>16)+(r>>16);return n<<16|r&65535}function El(e,t){return e<>>32-t}function br(e,t,r,n,a,o){return st(El(st(st(t,e),st(n,o)),a),r)}function Me(e,t,r,n,a,o,s){return br(t&r|~t&n,e,t,a,o,s)}function Le(e,t,r,n,a,o,s){return br(t&n|r&~n,e,t,a,o,s)}function Re(e,t,r,n,a,o,s){return br(t^r^n,e,t,a,o,s)}function Ie(e,t,r,n,a,o,s){return br(r^(t|~n),e,t,a,o,s)}function fr(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var r,n,a,o,s,i=1732584193,c=-271733879,d=-1732584194,u=271733878;for(r=0;r>5]>>>t%32&255);return r}function on(e){var t,r=[];for(r[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(n=fr(n,e.length*8)),r=0;r<16;r+=1)a[r]=n[r]^909522486,o[r]=n[r]^1549556828;return s=fr(a.concat(on(t)),512+t.length*8),no(fr(o.concat(s),512+128))}function ao(e){var t="0123456789abcdef",r="",n,a;for(a=0;a>>4&15)+t.charAt(n&15);return r}function sn(e){return unescape(encodeURIComponent(e))}function oo(e){return Ml(sn(e))}function Rl(e){return ao(oo(e))}function io(e,t){return Ll(sn(e),sn(t))}function Il(e,t){return ao(io(e,t))}function so(e,t,r){return t?r?io(t,e):Il(t,e):r?oo(e):Rl(e)}function ln(e){if(Math.abs(e)<1024)return e+" Byte";let r=["KB","MB","GB","TB","PB","EB","ZB","YB"],n=-1;do e/=1024,++n;while(Math.abs(e)>=1024&&n{let a=e,o=1,s=indexedDB.open(a,o);s.onsuccess=i=>{r(s.result)},s.onerror=i=>{n()},s.onupgradeneeded=i=>{let c=s.result,d=t||"cache";c.createObjectStore(d,{keyPath:"key"})}})}async function lo(e){let t=`${xe}-${e.service}@${e.from}->${e.to}`;return await Ol(t,e)}async function co(e){let t=so(e.originalText),r=`${xe}-${e.service}@${e.from}->${e.to}`;return await Dl(r,t)}async function Dl(e,t){let r=await Gt(e);return await new Promise((n,a)=>{if(!r)return a();let o="cache",i=r.transaction([o],"readonly").objectStore(o).get(t);i.onsuccess=c=>{r.close();let d=i.result;n(d)},i.onerror=c=>{r.close(),a()}})}async function Ol(e,t){let r=await Gt(e);return(await uo()).includes(e)||await Nl(e),await new Promise(a=>{if(!r)return a(!1);let o="cache",i=r.transaction([o],"readwrite").objectStore(o).put(t);i.onsuccess=c=>{r.close(),a(!0)},i.onerror=c=>{r.close(),a(!1)}})}async function Nl(e){let t="cache_list",r=await Gt(xe+"-cacheList",t),a=r.transaction([t],"readwrite").objectStore(t).put({key:e});a.onsuccess=o=>{r.close(),_t.push(e)},a.onerror=o=>{r.close()}}async function uo(){if(_t&&_t.length>0)return _t;let e=await Gt(xe+"-cacheList","cache_list");return _t=await new Promise(t=>{let r="cache_list",a=e.transaction([r],"readonly").objectStore(r).getAllKeys();a.onsuccess=o=>{e.close(),t(a.result)},a.onerror=o=>{e.close(),t([])}}),_t}async function mo(){try{let e=[];(await uo()).forEach(n=>{e.push(Ul(n))});let r=await Promise.all(e);return ln(r.reduce((n,a)=>n+a,0))}catch{return ln(0)}}async function Ul(e){let t=await Gt(e),n=[...t.objectStoreNames].reduce((s,i)=>{let c=Bl(t,i);return s.push(c),s},[]),a=await Promise.all(n);return t.close(),a.reduce((s,i)=>s+i,0)}async function Bl(e,t){return await new Promise((r,n)=>{if(e==null)return n();let a=0,o=e.transaction([t]).objectStore(t).openCursor();o.onsuccess=s=>{let i=o.result;if(i){let c=i.value,d=JSON.stringify(c);a+=d.length,i.continue()}else r(a)},o.onerror=s=>n("error in "+t+": "+s)})}var yr,Fl=async function(e,t){let{method:r,data:n}=e;if(D.debug("background received message",r,n||" "),r==="mock")await kr(150);else{if(r==="queryParagraphCache")return co(n);if(r==="setParagraphCache")return lo(n);if(r==="calculateSize")return mo();if(r==="fetch")return dr(n);if(r==="getConfig")return it();if(r==="getLocalConfig")return zt();if(r==="openOptionsPage"){let a="";if(n&&n.pageRoute&&(a=n.pageRoute),Qe()){let s=ge().OPTIONS_URL+a;g.tabs.create({url:s})}else{let o=g.runtime.getURL("options.html");g.tabs.create({url:o+a})}}else if(r==="openAboutPage")if(Qe()){let o=ge().OPTIONS_URL;g.tabs.create({url:o+"#about"})}else g.tabs.create({url:g.runtime.getURL("options.html#about")});else if(r==="openInTab")n&&g.tabs.create({url:n});else if(r=="openSearchEnhancement")if(Qe()){let o=ge().OPTIONS_URL;g.tabs.create({url:o+"#advanced"})}else g.tabs.create({url:g.runtime.getURL("options.html#advanced")});else if(r==="openEbookViewerPage"){let o=ge().EBOOK_VIEWER_URL;g.tabs.create({url:o})}else if(r==="openSubtitleBuilderPage"){let o=ge().SUBTITLE_BUILDER_URL;g.tabs.create({url:o})}else if(r==="openEbookBuilderPage"){let o=ge().EBOOK_BUILDER_URL;g.tabs.create({url:o})}else if(r==="openHtmlViewerPage"){let a=g.runtime.getURL("html/index.html");g.tabs.create({url:a})}else if(r==="openPdfViewerPage"){let a=g.runtime.getURL("pdf/index.html");Qe()&&(a=ge().PDF_VIEWER_URL),g.tabs.create({url:a})}else{if(r==="setLocalConfig")return Pt(n);if(r=="getUserConfig")return Ht();if(r=="setUserConfig")return ft(n);if(r==="detectLanguage"){let{text:a,pageLangs:o}=n;if(g.i18n&&g.i18n.detectLanguage)try{let s=await go(g.i18n.detectLanguage(a),1500,{isReliable:!1,languages:[]});if(s.languages.length>0){if(s.isReliable)return mt(s.languages[0].language);for(let i of s.languages){let c=mt(i.language);if(o.includes(c)&&i.percentage>50)return c}}return"auto"}catch(s){return D.debug("detect language error",s),"auto"}else return"auto"}else if(r==="detectTabLanguage")try{let a=await go(g.tabs.detectLanguage(t.id),1500,"auto");return mt(a)}catch(a){return D.debug("detect tab language error, use auto ",a),"auto"}else if(r==="autoSyncLatestConfig"){try{await to()}catch(a){D.debug("auto sync latest config error",a)}return""}else if(r!=="updateCommands"){if(r==="setBadge"){let a=t.id,o=n&&n.text?n.text:"";a&&jl(a,o)}}}}};function po(){cn();let e=g.runtime.getManifest();if(e.manifest_version>2,e.manifest_version===2&&g.webRequest&&g.webRequest.onBeforeSendHeaders){let t=hr.map(n=>n.condition.urlFilter),r=hr.reduce((n,a)=>(a.condition.resourceTypes.forEach(o=>{n.includes(o)||n.push(o)}),n),[]);g.webRequest.onBeforeSendHeaders.addListener(function(n){if(!(n.originUrl&&n.originUrl.startsWith("http"))&&n.originUrl&&n.requestHeaders)for(let a=0;a{let o=setTimeout(()=>{n(r)},t);e.then(s=>{clearTimeout(o),n(s)}).catch(s=>{clearTimeout(o),a(s)})})}function ho(){typeof g.commands<"u"&&g.commands.onCommand.addListener(async e=>{if(D.debug(`received command: ${e}`),["toggleTranslatePage"].includes(e)){let t=await g.tabs.query({active:!0,currentWindow:!0});if(t.length===0||typeof t[0].id>"u")return;let n=t[0].url;if(Ha(n)){g.tabs.create({url:Wa(n)});return}}await un({method:e,data:{trigger:"shortcut"}})})}async function un(e){let r=(await g.tabs.query({currentWindow:!0,active:!0}))[0].id;cn().sendMessage(`content_script:main:${r}`,e).catch(a=>{D.error("send content message request failed",e,a)})}function Kl(e,t){let r=e;return t&&Object.keys(t).forEach(n=>{let a=t[n];if(a===void 0)return;let o=Wl(n);if(typeof a=="object"||o){let s=a;o&&typeof s=="string"&&(s={tag:"a",href:s});let i=`<${n}>`,c=r.indexOf(i);if(c!==-1){let d=s.tag||"a",u=r.indexOf(``);if(u!==-1){let f=r.substring(c+i.length,u),_=Object.keys(s).filter(v=>v!=="tag").map(v=>`${v}="${s[v]}"`).join(" ");r=r.replace(`${i}${f}`,`<${d} ${_}>${f}`)}}}else if(a){let s=new RegExp("{"+n+"}","gm");r=r.replace(s,a.toString())}}),r}function fo(e,t,r){let n=e[t];if(!n)return r;let a=r.split("."),o="";do{o+=a.shift();let s=n[o];s!==void 0&&(typeof s=="object"||!a.length)?(n=s,o=""):a.length?o+=".":n=r}while(a.length);return n}function bo(e,t,r,n,a){if(!e.hasOwnProperty(r))return t;let o=fo(e,r,t);return o===t&&r!==n&&(o=fo(e,n,t)),Kl(o,a)}function Wl(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}var yo={"zh-CN":{"languages.en":"\u82F1\u8BED","languages.ja":"\u65E5\u8BED","languages.ko":"\u97E9\u8BED","languages.es":"\u897F\u73ED\u7259\u8BED","languages.fr":"\u6CD5\u8BED","languages.de":"\u5FB7\u8BED","languages.it":"\u610F\u5927\u5229\u8BED","languages.pt":"\u8461\u8404\u7259\u8BED","languages.ru":"\u4FC4\u8BED","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"},"zh-TW":{"languages.en":"\u82F1\u8A9E","languages.ja":"\u65E5\u8A9E","languages.ko":"\u97D3\u8A9E","languages.es":"\u897F\u73ED\u7259\u8A9E","languages.fr":"\u6CD5\u8A9E","languages.de":"\u5FB7\u8A9E","languages.it":"\u610F\u5927\u5229\u8A9E","languages.pt":"\u8461\u8404\u7259\u8A9E","languages.ru":"\u4FC4\u8A9E","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"}},zl={...ut,"zh-CN":{...yo["zh-CN"],...ut["zh-CN"]},"zh-TW":{...yo["zh-TW"],...ut["zh-TW"]}};function wo(e,t,r){return bo(zl,e,t,lr,r)}var Vt=Aa()?["action"]:["browser_action","page_action"],To=[{id:"toggleTranslatePage",contexts:["page","frame","selection",...Vt]},{id:Vr,contexts:Vt},{id:Yr,contexts:Vt},{id:Qr,contexts:Vt},{id:$r,contexts:Vt}];async function dn(e){D.debug("createContextMenu",To);for(let t of To){let r=!0;e.isShowContextMenu===!1&&t.id==="toggleTranslatePage"&&(r=!1);try{g.contextMenus.create({id:t.id,title:wo(`browser.${t.id}`,e.interfaceLanguage),contexts:t.contexts,visible:r},()=>g.runtime.lastError)}catch(n){D.debug("create context menu error, it's ok!!",n,`menu id: ${t.id}`)}}}function xo(){g.contextMenus.onClicked.addListener(e=>{if(e.menuItemId===Vr)if(Qe()){let r=ge().OPTIONS_URL;g.tabs.create({url:r})}else g.runtime.openOptionsPage();else if(e.menuItemId===$r){let t=za();g.tabs.create({url:t})}else if(e.menuItemId===Qr){let r=ge().EBOOK_BUILDER_URL;g.tabs.create({url:r})}else if(e.menuItemId===Yr){let r=ge().EBOOK_VIEWER_URL;g.tabs.create({url:r})}else if(e.menuItemId===Ta){let r=ge().SUBTITLE_BUILDER_URL;g.tabs.create({url:r})}else e.menuItemId===wa?g.tabs.create({url:"https://immersivetranslate.com/docs/donate/"}):un({method:e.menuItemId,data:{trigger:"right_menu"}})})}function mn(){it().then(e=>{e.uninstallUrl&&g.runtime.setUninstallURL&&g.runtime.setUninstallURL(e.uninstallUrl),gn(e)}).catch(e=>{D.error("create menu error",e)})}function gn(e){e?dn(e):it().then(t=>{dn(t)}).catch(t=>{D.error("create menu error",t)})}function vo(){g.runtime.onInstalled.addListener(e=>{D.debug(`onInstalled reason: ${e.reason}`),D.debug(e),e.reason=="install"?(async()=>{let t="https://onboarding.immersivetranslate.com/",n=g.runtime.getURL("").startsWith("safari"),a=!1,o=!1;try{let s=await g.runtime.getPlatformInfo();n?s.os==="mac"?a=!0:s.os==="ios"&&(o=!0):s.os==="android"&&(t="https://onboarding.immersivetranslate.com/mobile/")}catch{}a?t="https://onboarding.immersivetranslate.com/mac-safari/":o&&(t="https://onboarding.immersivetranslate.com/ios/step-2/"),g.tabs.create({url:t}),mn()})():(e.reason=="update"&&g.runtime.getManifest().version!=e.previousVersion,mn())})}po();vo();ho();g.contextMenus&&xo();async function Hl(){g.contextMenus&&gn(),(await it()).debug&&D.setLevel("debug")}Hl().catch(e=>{});})(); +`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main div[class*='h-[125]']":"height:auto"},normalizeBody:"body",extraBlockSelectors:["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,normalizeBody:"#mw-content-text",globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"]},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"}},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:"chat.openai.com",excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0}},{id:"newstop",matches:["chat.newstop.asia","chat.waixingyun.cn"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".n-button.n-button--warning-type.n-button--medium-type",messageWrapperSelector:".markdown-body",streamingChange:!1,streamingDeepChild:!0}},{id:"askgpt",matches:["askgpt.cn","chatcat.zhaoyoung.me"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".home_chat-message-status__EsVNi",messageWrapperSelector:".markdown-body",streamingChange:!0,streamingDeepChild:!0}},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__UyYrv *",".MarkdownLink_linkifiedLink__KxC9G"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__UyYrv",streamingChange:!1,streamingDeepChild:!0}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"newthingsunderthesun",matches:"www.newthingsunderthesun.com",additionalSelectors:["[translate=no]"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"https://steamcommunity.com/app/*",globalStyles:{".forum_topic":"height:auto;",".forum_topic_name":"white-space:normal;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampowered",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:"https://www.webofscience.com/*",globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},excludeSelectors:[".summary-left-panel",".authors","app-full-record-keywords mark"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],extraBlockSelectors:["app-summary-authors + div","app-full-record-keywords span span"],observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://www.jetbrains.com/help/*",extraBlockSelectors:["[data-test=prompt]"]},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails p"]},{id:"isEbook",isEbook:!0,isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span"},{id:"isEbookBuilder",isEbookBuilder:!0,isTranslateTitle:!1,targetWrapperTag:"span",selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com",extraBlockSelectors:["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],extraBlockSelectors:"font[face=verdana]"},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"isSubtitleBuilder",isSubtitleBuilder:!0,selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,wrapperPrefix:"",wrapperSuffix:""},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/",extraBlockSelectors:[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"vimeo",matches:"https://player.vimeo.com/video/*",extraBlockSelectors:["span.vp-captions-line","span[class^=CaptionsRenderer_]"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexityAi",matches:"https://www.perplexity.ai/search/*",extraBlockSelectors:[".prose > span"],additionalStayOriginalSelectors:["a.citation"],insertPosition:"afterend"},{id:"perplexity",matches:"https://www.perplexity.ai",globalStyles:{".line-clamp-1":"-webkit-line-clamp: unset !important;",".line-clamp-2":"-webkit-line-clamp: unset !important;"}},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"babelnovel",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*"],urlChangeDelay:0},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0},{globalAttributes:{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"youtrackJetbrains",matches:"youtrack.jetbrains.com/articles/*",selectors:["[role=presentation]","[data-test=article-content]"],excludeSelectors:[".toolbar__ee8"]},{id:"bbc",matches:"www.bbc.com",excludeSelectors:["section.module--languages",".drop-capped"]},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}}},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"openai",matches:"https://platform.openai.com/docs/*",urlChangeDelay:0},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout":"height:unset !important;",".EntrySummary--u4":"-webkit-line-clamp: unset;max-height:unset;",".EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:[".copyable-text > span"],wrapperPrefix:` +`,wrapperSuffix:"
"},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],globalStyles:{"[class*='lineclamp']":"-webkit-line-clamp:unset;"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],extraBlockSelectors:[".SIPGg",".sc-kzMCTH.pSZXj"],globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"]},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*",globalAttributes:{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead"],injectedCss:["a::after {position:relative!important;}"]},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},globalAttributes:{"#app":{class:""}}},{id:"haproxy",matches:["docs.haproxy.org","www.oreilly.com/openbook/opensources/book/*"],excludeTags:[],stayOriginalSelectors:[],stayOriginalTags:[],isTransformPreTagNewLine:!0},{id:"piAi",matches:"pi.ai/talk",excludeSelectors:[".whitespace-pre-wrap > span *"],aiRule:{streamingSelector:"button[class*='fixed'][disabled]",messageWrapperSelector:".whitespace-pre-wrap",streamingChange:!1,streamingDeepChild:!1},globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *"],"excludeTags.remove":["PRE"],injectedCss:"[data-testid='chat-menu-trigger'] br {display:none;}",aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1}},{id:"feishu",matches:"*.feishu.cn","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],excludeSelectors:[".catalogue__list"]},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"bugsWebkit",matches:"bugs.webkit.org",isTransformPreTagNewLine:!0},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",matches:"www.kaggle.com",excludeTags:["i","button"]},{id:"ieee",matches:"spectrum.ieee.org",extraBlockSelectors:["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"www.cnn.com",excludeSelectors:[".ad-slot-header__wrapper"]},{id:"marginalrevolution",matches:"marginalrevolution.com",globalAttributes:{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",condition:{enableSubtitle:{false:{"excludeSelectors.add":[".bpx-player-subtitle-panel-text"]}}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"docs-oracle",matches:"docs.oracle.com",urlChangeDelay:0},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"edstem",matches:"edstem.org","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:"pubmed.ncbi.nlm.nih.gov",urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share"]},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"tldrnewsletter",matches:"actions.tldrnewsletter.com","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"bugzilla",matches:"bugzilla.mozilla.org","excludeTags.remove":["PRE"],isTransformPreTagNewLine:!0},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"excludeSelectors.add":["aside",".DocSearch-Modal"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"mail.qq.com",useIframePostMessage:!1},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]}]};function ft(e){return Array.isArray(e)?e:e?[e]:[]}function ja(e,t){let r={...e};return Ka(r,t),hl(r,t),r}function qa(e,t,r){let n={...t};return fl(e,n,r),n}function hl(e,t){if(!t.condition)return;let r=t.condition.enableSubtitle?.true||{},n=t.condition.enableSubtitle?.false||{},a=e.enableSubtitle?r:n;Ka(e,a)}function fl(e,t,r){try{return Object.keys(t).forEach(n=>{let[a,o]=n.split(".");if(o){let s=t[n];if(Array.isArray(e[a])&&(s=ft(t[n])),o==="add"){t[a]=Wt(e[a],s),delete t[n];return}else if(o=="remove"){t[a]=on(e[a],s),delete t[n];return}}}),Object.keys(r).forEach(n=>{let[a,o]=n.split(".");if(!a||r[n]===void 0)return;let s=r[n],i=t[a];if(Array.isArray(e[a])&&(s=ft(r[n]),i=ft(t[a])),o==="add"){t[a]=Wt(i,s);return}else if(o=="remove"){t[a]=on(i,s);return}Array.isArray(i)&&a.startsWith("additional")?t[a]=Wt(i,s):t[a]=s}),t}catch{}}function Ka(e,t){return Object.keys(t).forEach(r=>{let[n,a]=r.split(".");if(!n||t[r]===void 0)return;let o=t[r];if(Array.isArray(e[n])&&(o=ft(t[r])),a==="add"){e[n]=Wt(e[n],o);return}else if(a=="remove"){e[n]=on(e[n],o);return}Array.isArray(e[n])&&n.startsWith("additional")?e[n]=Wt(e[n],o):e[n]=o}),e}function Wt(e,t){let r;if(Array.isArray(e)){let n=ft(t);r=[...e,...n],r=Array.from(new Set(r))}else typeof e=="object"&&typeof t=="object"&&(r={...e,...t});return r}function on(e,t){if(Array.isArray(e)){let r=ft(t);return e=e.filter(n=>!r.includes(n)),Array.from(new Set(e))}else typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(r=>{delete e[r]});return e}function bl(){if(H.PROD==="1")return{};let e={};if(H.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&H.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let r={secretId:H.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:H.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=r}if(H.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&H.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let r={appid:H.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:H.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=r}if(H.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let r={token:H.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=r}if(H.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let r={apikey:H.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=r}if(H.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&H.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let r={appId:H.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:H.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=r}if(H.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&H.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let r={accessKeyId:H.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:H.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=r}if(H.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let r={authKey:H.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=r}if(H.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=H.DEEPL_PROXY_ENDPOINT),H.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=H.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),H.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let r={APIKEY:H.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=r}H.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=H.IMMERSIVE_TRANSLATE_SERVICE);let t={};return H.DEBUG==="1"&&(t.debug=!0,t.cache=!1),H.MOCK==="1"&&(t.translationService="mock"),t}async function zt(){let e=await g.storage.local.get(Bt);if(e[Bt]){let t=e[Bt],r=t.tempTranslationUrlMatches||[],n=r.filter(s=>s.expiredAt>Date.now()),a=!1;n.length!==r.length&&(r=n,a=!0);let o={...t,tempTranslationUrlMatches:[...r]};return a&&await Pt(o),o}else return{}}async function Pt(e){await g.storage.local.set({[Bt]:e})}async function it(){let e=await g.storage.local.get(sr),t={...an,buildinConfigUpdatedAt:H.BUILD_TIME};if(e[sr]){let X=e[sr];if(X&&X.buildinConfigUpdatedAt){let C=new Date(X.buildinConfigUpdatedAt),W=new Date(t.buildinConfigUpdatedAt);C>W&&(t=X)}}let r=await Ma.get(cr,null),n={};if(!vt()&&g.commands&&g.commands.getAll){let X=await g.commands.getAll();for(let C of X)C.name&&C.shortcut&&(n[C.name]=C.shortcut)}let a=wl(),o=bl(),s=await Ht(),i=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},c=await zt(),d=new Date;if(c&&c.tempTranslationUrlMatches&&c.tempTranslationUrlMatches.length>0){let X=c.tempTranslationUrlMatches.filter(C=>new Date(C.expiredAt)>d);if(X.length>0){let C=s.translationUrlPattern?s.translationUrlPattern?.matches||[]:[],W=Array.isArray(C)?C:[C],Ce=Array.from(new Set(W.concat(X.map(ae=>ae.match))));s.translationUrlPattern={...s.translationUrlPattern,matches:Ce}}}let u=Object.assign({},i,o,s);if(!u.interfaceLanguage){let X=await yl();u.interfaceLanguage=X}let f=u.interfaceLanguage==="en",_=u.targetLanguage==="en",v=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,P=["bing","google","transmart","mock"].includes(u.translationService)||!u.translationService;!f&&!_&&!v&&P?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let ee=t&&t.enableDefaultAlwaysTranslatedUrls;u.enableDefaultAlwaysTranslatedUrls===!1&&(ee=!1);let Z=u&&u.isChangedAlwaysTranslatedUrls,m=[];u.translationUrlPattern&&u.translationUrlPattern.matches&&(m=u.translationUrlPattern.matches||[]);let ve=!1;Z===void 0&&(m.length>0?Z=!0:Z=!1,u.isChangedAlwaysTranslatedUrls=Z,s.isChangedAlwaysTranslatedUrls=Z,ve=!0);let G=(u?.translationLanguagePattern?.matches?.length||0)>0,te=await kt("installedAt",""),be=Number(await qt("translage_page_daily",0)),S=Number(await kt(va,0)),y;S>0&&(Date.now()-S0&&(Date.now()-bep.id&&Ce[p.id]?qa(t.generalRule,Ce[p.id],p):p);A[C]=[...ae,...A[C]]}if(H.PROD==="0"&&H.DEV_RULES){let W=JSON.parse(H.DEV_RULES);A[C]=[...W,...A[C]]}}else u[C]!==void 0&&(A[C]=u[C])}return A.donateUrl=t.donateUrl,A.minVersion=t.minVersion,A.feedbackUrl=t.feedbackUrl,A}async function Ht(){return(await g.storage.sync.get("userConfig")||{}).userConfig||{}}async function bt(e){await g.storage.sync.set({userConfig:e})}var yl=async()=>{let e=["zh-CN"];try{e=await g.i18n.getAcceptLanguages()}catch(n){D.warn("get browser language error:",n)}let r=e.map(n=>mt(n)).find(n=>ut[n]);return r||"en"},wl=()=>{let e={...an,buildinConfigUpdatedAt:H.BUILD_TIME};return{...e,targetLanguage:lr,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing"},rules:[]}};function Tl(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(n=>!e.includes(n)).length>0}function Wa(e){let t=g.runtime.getURL(ba),r=new URL(t);return(e.startsWith("http")||!Ca())&&r.searchParams.set("file",e),r.href}function za(){return ge().PDF_VIEWER_URL}function Ha(e){return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}var Ga=["*://*/*","*","*://*"],$a="immersive-translate-wildcard-placeholder.com";function xl(e,t){let r=[];if(!t||(t&&!Array.isArray(t)?r=[t]:r=t,r.length===0))return null;if(r.some(s=>Ga.includes(s)))return e;let n=new URL(e);n.hash="",n.search="";let a=n.href,o=n.hostname;if(r&&r.length>0){let s=r.find(i=>{let c=i;if(i===o)return!0;if(Ga.includes(i))return!0;if(!i.includes("*")&&i.includes("://")){try{let d=new URL(i);return d.pathname==="/"&&!i.endsWith("/")?d.hostname===o:Sl(a,i)}catch{}return!1}else{let d,u=i;if(i.includes("://")){let Z=i.split("://");d=Z[0],d==="*"&&Z.length>1&&(d="*",i="https://"+Z[1])}else d="*",i="https://"+i;let f=i.replace(/\*/g,$a),_;try{_=new URL(f)}catch{return D.debug("invalid match pattern",f,"raw match value:",u),!1}let v=_.hostname,P=_.pathname;P==="/"&&(u.replace("://","").includes("/")||(P="/*"));let ee=vl(d+":",Va(v),Va(P));if(ee){let Z=new URL(a);return Z.port="",ee.test(Z.href)}else return!1}});if(s)return s}return null}function Va(e){return e.replaceAll($a,"*")}function vl(e,t,r){let n="^";return e==="*:"?n+="(http:|https:|file:)":n+=e,n+="//",t&&(e==="file:"||(t==="*"?n+="[^/]+?":(t.match(/^\*\./)&&(n+="[^/]*?",t=t.substring(2)),n+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),r?r==="*"||r==="/*"?n+="(/.*)?":r.includes("*")?(n+=r.replace(/\*/g,".*?"),n+="/?"):n+=r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):n+="/?",n+="$",new RegExp(n)}function Ya(e,t){return xl(e,t)!==null}function Sl(e,t){let r=new URL(e),n=new URL(t);return r.hostname===n.hostname&&r.pathname===n.pathname&&r.protocol===n.protocol&&r.port===n.port}var pr=class{accessToken;constructor(t){this.accessToken=t}async listAll(){let t=[],r="";do{let{nextPageToken:n,files:a}=await this.list(r).catch(o=>{throw o});t.push(...a),r=n||""}while(r);return t}async getConfig(t){try{return await(await fetch(`https://www.googleapis.com/drive/v3/files/${t}?alt=media`,{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(r){return D.error("get config error, use default",r),{}}}async delete(t){await fetch(`https://www.googleapis.com/drive/v3/files/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${this.accessToken}`}})}findByName(t){return this.list(void 0,`name = '${t}'`)}uploadConfig(t,r=ir){let n=new Blob([JSON.stringify(t,null,2)],{type:"application/json"});return this.upload({name:r,parents:["appDataFolder"],mimeType:"application/json"},n)}updateConfig(t,r){let n=new Blob([JSON.stringify(r,null,2)],{type:"application/json"});return this.updateContent(t,n)}async upload(t,r){let n=new FormData;n.append("metadata",new Blob([JSON.stringify(t)],{type:"application/json; charset=UTF-8"})),n.append("file",r);let a=await fetch("https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart",{method:"POST",headers:{Authorization:`Bearer ${this.accessToken}`},body:n});return a.ok?await a.json():Promise.reject(a.text())}async list(t,r){let n=new URL("https://www.googleapis.com/drive/v3/files");t&&n.searchParams.append("pageToken",t),r&&n.searchParams.append("q",r),n.searchParams.append("spaces","appDataFolder"),n.searchParams.append("fields","files(id,name,createdTime,modifiedTime,size)"),n.searchParams.append("pageSize","100"),n.searchParams.append("orderBy","createdTime desc");try{return D.debug("list api:",n.toString(),this.accessToken),await(await fetch(n.toString(),{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(a){throw D.error("fetch google ip error",a),a}}async updateContent(t,r){return await(await fetch(`https://www.googleapis.com/upload/drive/v3/files/${t}?uploadType=media`,{method:"PATCH",headers:{Authorization:`Bearer ${this.accessToken}`},body:r})).text()}};function Qa(e,t){let r=["https://www.googleapis.com/auth/drive.appdata"];return`https://accounts.google.com/o/oauth2/v2/auth?client_id=${or}&response_type=token&redirect_uri=${encodeURIComponent(t)}&scope=${encodeURIComponent(r.join(" "))}&state=${encodeURIComponent(JSON.stringify(e))}`}function Za(e){let t=e.match(/[#?](.*)/);return!t||t.length<1?null:{access_token:new URLSearchParams(t[1].split("#")[0]).get("access_token")}}async function Ja(e,t,r,n,a,o,s){if(D.debug(`autoSyncStrategy accessToken: ${e}`),t===null){D.debug("autoSyncStrategy settings is null");return}let i=new pr(e);try{let c=(await i.findByName(ir)).files;D.debug("files",c);let d=c[0]?.id,u=null;if(d&&(u=await i.getConfig(d).then(f=>({fileId:d,config:f}))),u){let{config:f,fileId:_}=u,v=f.updatedAt?new Date(f.updatedAt):new Date(0),P=t.updatedAt?new Date(t.updatedAt):new Date(0);if(D.debug("remoteUpdatedAt",v,"localUpdatedAt",P),v>P)D.debug("remote is newer, update local config",f),r(f),o&&o(!0);else if(v.getTime()===P.getTime())D.debug("remote and local are the same, do nothing"),o&&o(!1);else if(v(await e.removeAuthInfo(),Vr()&&globalThis.location.reload(),n))}static async getAuthInfo(){let t=await g.storage.local.get(St);if(t[St])return t[St]}static async removeAuthInfo(){return await g.storage.local.remove(St)}static setAuthInfo(t){return g.storage.local.set({[St]:t})}async auth(t=!1){let r=await e.getAuthInfo();if(D.debug(this.CLASSNAME,"token from cache:",r),r&&r.access_token&&await Xa(r.access_token).then(o=>!0).catch(o=>!1))return Promise.resolve(r);let n=Qa(this._state,this._redirectUrl);return D.debug(this.CLASSNAME,"auth url: "+n),Vr()?this.userscriptAuthWorkflow(n,t):this.extensionAuthWorkflow(n).then(a=>(e.setAuthInfo(a),a))}async userscriptAuthWorkflow(t,r){return r&&await g.storage.local.set({[ya]:!0}),globalThis.open(t,"_self"),Promise.resolve({})}extensionAuthWorkflow(t){let r,n=!1;return new Promise((a,o)=>{let s=()=>{g.tabs.onUpdated.removeListener(i),g.tabs.onRemoved.removeListener(c)},i=(_,v,P)=>{if(D.debug(this.CLASSNAME,"create tab onUpdated: "+P.url),r===_){let ee=new URL(P.url||""),Z=Za(P.url);ee.pathname.startsWith("/auth-done")&&Z?.access_token&&(D.debug(this.CLASSNAME,"auth done: "+P.url),a({access_token:Z.access_token}),n=!0,g.tabs.remove(_),s())}},c=(_,v)=>{D.debug(this.CLASSNAME,"create tab onRemoved: "+_),(_===r||!n)&&(s(),o(new Error("auth failed")))},d=Math.min(500,screen.availWidth),u=Math.min(650,screen.availHeight),f;g.windows===void 0?f=g.tabs.create({url:t}).then(_=>{r=_.id}):f=g.windows.create({url:t,type:"popup",width:d,height:u,left:Math.round((screen.width-d)/2),top:Math.round((screen.height-u)/2)}).then(_=>{r=_.tabs[0].id}),f.then(()=>{g.tabs.onUpdated.addListener(i),g.tabs.onRemoved.addListener(c)}).catch(_=>{D.debug(this.CLASSNAME,"create tab failed: "+_),o(_)})})}};var kl="https://www.googleapis.com/oauth2/v3/tokeninfo",Cl=or,Pl=ge().REDIRECT_URL;function Xa(e){if(!e)throw"Authorization failure";let t=`${kl}?access_token=${e}`,r=new Request(t,{method:"GET"});function n(a){return new Promise((o,s)=>{a.status!=200&&s("Token validation error"),a.json().then(i=>{i.aud&&i.aud===Cl?o(e):s("Token validation error")})})}return fetch(r).then(n)}function eo(e,t=!1){let r=Pl;if(typeof window<"u"&&window.location.protocol.startsWith("http")){let a=window.location.hostname,o=window.location.port;r=`${window.location.protocol}//${a}${o?`:${o}`:""}/auth-done/`}return new hr(e,r).auth(t)}async function to(){}function ro(e,t){let r=new Map;for(let o of t)r.set(o.header.toLowerCase(),o);let n=[],a=e.filter(o=>{let s=r.get(o.name.toLowerCase());if(s){if(s.operation==="remove")return!1;if(s.operation==="set")return!1}return!0});for(let o of t)o.operation==="set"&&n.push({name:o.header,value:o.value||""});return a.concat(n)}var fr=[{id:1,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://httpstat.us/429"},{header:"origin",operation:"set",value:"https://httpstat.us/429"},{header:"DNT",operation:"set",value:"1"}]},condition:{urlFilter:"https://httpstat.us/429",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh"]}},{id:2,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://www.deepl.com/"},{header:"origin",operation:"set",value:"https://www.deepl.com"},{header:"DNT",operation:"set",value:"1"},{header:"cookie",operation:"remove"}]},condition:{urlFilter:"https://www2.deepl.com/jsonrpc*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh"]}},{id:200,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://www.deepl.com/"},{header:"origin",operation:"set",value:"chrome-extension://cofdbpoegempjloogbagkncekinflcnj"},{header:"DNT",operation:"set",value:"1"}]},condition:{urlFilter:"https://api.deepl.com/jsonrpc*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh"]}},{id:201,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://www.deepl.com/"},{header:"origin",operation:"set",value:"chrome-extension://cofdbpoegempjloogbagkncekinflcnj"}]},condition:{urlFilter:"https://w.deepl.com/oidc/token",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh"]}},{id:3,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"origin",operation:"set",value:"chrome-extension://lkjkfecdnfjopaeaibboihfkmhdjmanm"}]},condition:{urlFilter:"https://transmart.qq.com/api/imt",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh"]}},{id:4,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"origin",operation:"set",value:"chrome-extension://lkjkfecdnfjopaeaibboihfkmhdjmanm"}]},condition:{urlFilter:"https://translate.volcengine.com/crx/translate/v1/",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh"]}}];function st(e,t){var r=(e&65535)+(t&65535),n=(e>>16)+(t>>16)+(r>>16);return n<<16|r&65535}function El(e,t){return e<>>32-t}function yr(e,t,r,n,a,o){return st(El(st(st(t,e),st(n,o)),a),r)}function Me(e,t,r,n,a,o,s){return yr(t&r|~t&n,e,t,a,o,s)}function Le(e,t,r,n,a,o,s){return yr(t&n|r&~n,e,t,a,o,s)}function Re(e,t,r,n,a,o,s){return yr(t^r^n,e,t,a,o,s)}function Ie(e,t,r,n,a,o,s){return yr(r^(t|~n),e,t,a,o,s)}function br(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var r,n,a,o,s,i=1732584193,c=-271733879,d=-1732584194,u=271733878;for(r=0;r>5]>>>t%32&255);return r}function sn(e){var t,r=[];for(r[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(n=br(n,e.length*8)),r=0;r<16;r+=1)a[r]=n[r]^909522486,o[r]=n[r]^1549556828;return s=br(a.concat(sn(t)),512+t.length*8),no(br(o.concat(s),512+128))}function ao(e){var t="0123456789abcdef",r="",n,a;for(a=0;a>>4&15)+t.charAt(n&15);return r}function ln(e){return unescape(encodeURIComponent(e))}function oo(e){return Ml(ln(e))}function Rl(e){return ao(oo(e))}function io(e,t){return Ll(ln(e),ln(t))}function Il(e,t){return ao(io(e,t))}function so(e,t,r){return t?r?io(t,e):Il(t,e):r?oo(e):Rl(e)}function cn(e){if(Math.abs(e)<1024)return e+" Byte";let r=["KB","MB","GB","TB","PB","EB","ZB","YB"],n=-1;do e/=1024,++n;while(Math.abs(e)>=1024&&n{let a=e,o=1,s=indexedDB.open(a,o);s.onsuccess=i=>{r(s.result)},s.onerror=i=>{n()},s.onupgradeneeded=i=>{let c=s.result,d=t||"cache";c.createObjectStore(d,{keyPath:"key"})}})}async function lo(e){let t=`${xe}-${e.service}@${e.from}->${e.to}`;return await Ol(t,e)}async function co(e){let t=so(e.originalText),r=`${xe}-${e.service}@${e.from}->${e.to}`;return await Dl(r,t)}async function Dl(e,t){let r=await Gt(e);return await new Promise((n,a)=>{if(!r)return a();let o="cache",i=r.transaction([o],"readonly").objectStore(o).get(t);i.onsuccess=c=>{r.close();let d=i.result;n(d)},i.onerror=c=>{r.close(),a()}})}async function Ol(e,t){let r=await Gt(e);return(await uo()).includes(e)||await Nl(e),await new Promise(a=>{if(!r)return a(!1);let o="cache",i=r.transaction([o],"readwrite").objectStore(o).put(t);i.onsuccess=c=>{r.close(),a(!0)},i.onerror=c=>{r.close(),a(!1)}})}async function Nl(e){let t="cache_list",r=await Gt(xe+"-cacheList",t),a=r.transaction([t],"readwrite").objectStore(t).put({key:e});a.onsuccess=o=>{r.close(),_t.push(e)},a.onerror=o=>{r.close()}}async function uo(){if(_t&&_t.length>0)return _t;let e=await Gt(xe+"-cacheList","cache_list");return _t=await new Promise(t=>{let r="cache_list",a=e.transaction([r],"readonly").objectStore(r).getAllKeys();a.onsuccess=o=>{e.close(),t(a.result)},a.onerror=o=>{e.close(),t([])}}),_t}async function mo(){try{let e=[];(await uo()).forEach(n=>{e.push(Ul(n))});let r=await Promise.all(e);return cn(r.reduce((n,a)=>n+a,0))}catch{return cn(0)}}async function Ul(e){let t=await Gt(e),n=[...t.objectStoreNames].reduce((s,i)=>{let c=Bl(t,i);return s.push(c),s},[]),a=await Promise.all(n);return t.close(),a.reduce((s,i)=>s+i,0)}async function Bl(e,t){return await new Promise((r,n)=>{if(e==null)return n();let a=0,o=e.transaction([t]).objectStore(t).openCursor();o.onsuccess=s=>{let i=o.result;if(i){let c=i.value,d=JSON.stringify(c);a+=d.length,i.continue()}else r(a)},o.onerror=s=>n("error in "+t+": "+s)})}var wr,Fl=async function(e,t){let{method:r,data:n}=e;if(D.debug("background received message",r,n||" "),r==="mock")await Cr(150);else{if(r==="queryParagraphCache")return co(n);if(r==="setParagraphCache")return lo(n);if(r==="calculateSize")return mo();if(r==="fetch")return mr(n);if(r==="getConfig")return it();if(r==="getLocalConfig")return zt();if(r==="openOptionsPage"){let a="";if(n&&n.pageRoute&&(a=n.pageRoute),Qe()){let s=ge().OPTIONS_URL+a;g.tabs.create({url:s})}else{let o=g.runtime.getURL("options.html");g.tabs.create({url:o+a})}}else if(r==="openAboutPage")if(Qe()){let o=ge().OPTIONS_URL;g.tabs.create({url:o+"#about"})}else g.tabs.create({url:g.runtime.getURL("options.html#about")});else if(r==="openInTab")n&&g.tabs.create({url:n});else if(r=="openSearchEnhancement")if(Qe()){let o=ge().OPTIONS_URL;g.tabs.create({url:o+"#advanced"})}else g.tabs.create({url:g.runtime.getURL("options.html#advanced")});else if(r==="openEbookViewerPage"){let o=ge().EBOOK_VIEWER_URL;g.tabs.create({url:o})}else if(r==="openSubtitleBuilderPage"){let o=ge().SUBTITLE_BUILDER_URL;g.tabs.create({url:o})}else if(r==="openEbookBuilderPage"){let o=ge().EBOOK_BUILDER_URL;g.tabs.create({url:o})}else if(r==="openHtmlViewerPage"){let a=g.runtime.getURL("html/index.html");g.tabs.create({url:a})}else if(r==="openPdfViewerPage"){let a=g.runtime.getURL("pdf/index.html");Qe()&&(a=ge().PDF_VIEWER_URL),g.tabs.create({url:a})}else{if(r==="setLocalConfig")return Pt(n);if(r=="getUserConfig")return Ht();if(r=="setUserConfig")return bt(n);if(r==="detectLanguage"){let{text:a,pageLangs:o}=n;if(g.i18n&&g.i18n.detectLanguage)try{let s=await go(g.i18n.detectLanguage(a),1500,{isReliable:!1,languages:[]});if(s.languages.length>0){if(s.isReliable)return mt(s.languages[0].language);for(let i of s.languages){let c=mt(i.language);if(o.includes(c)&&i.percentage>50)return c}}return"auto"}catch(s){return D.debug("detect language error",s),"auto"}else return"auto"}else if(r==="detectTabLanguage")try{let a=await go(g.tabs.detectLanguage(t.id),1500,"auto");return mt(a)}catch(a){return D.debug("detect tab language error, use auto ",a),"auto"}else if(r==="autoSyncLatestConfig"){try{await to()}catch(a){D.debug("auto sync latest config error",a)}return""}else if(r!=="updateCommands"){if(r==="setBadge"){let a=t.id,o=n&&n.text?n.text:"";a&&jl(a,o)}}}}};function po(){un();let e=g.runtime.getManifest();if(e.manifest_version>2,e.manifest_version===2&&g.webRequest&&g.webRequest.onBeforeSendHeaders){let t=fr.map(n=>n.condition.urlFilter),r=fr.reduce((n,a)=>(a.condition.resourceTypes.forEach(o=>{n.includes(o)||n.push(o)}),n),[]);g.webRequest.onBeforeSendHeaders.addListener(function(n){if(!(n.originUrl&&n.originUrl.startsWith("http"))&&n.originUrl&&n.requestHeaders)for(let a=0;a{let o=setTimeout(()=>{n(r)},t);e.then(s=>{clearTimeout(o),n(s)}).catch(s=>{clearTimeout(o),a(s)})})}function ho(){typeof g.commands<"u"&&g.commands.onCommand.addListener(async e=>{if(D.debug(`received command: ${e}`),["toggleTranslatePage"].includes(e)){let t=await g.tabs.query({active:!0,currentWindow:!0});if(t.length===0||typeof t[0].id>"u")return;let n=t[0].url;if(Ha(n)){g.tabs.create({url:Wa(n)});return}}await dn({method:e,data:{trigger:"shortcut"}})})}async function dn(e){let r=(await g.tabs.query({currentWindow:!0,active:!0}))[0].id;un().sendMessage(`content_script:main:${r}`,e).catch(a=>{D.error("send content message request failed",e,a)})}function Kl(e,t){let r=e;return t&&Object.keys(t).forEach(n=>{let a=t[n];if(a===void 0)return;let o=Wl(n);if(typeof a=="object"||o){let s=a;o&&typeof s=="string"&&(s={tag:"a",href:s});let i=`<${n}>`,c=r.indexOf(i);if(c!==-1){let d=s.tag||"a",u=r.indexOf(``);if(u!==-1){let f=r.substring(c+i.length,u),_=Object.keys(s).filter(v=>v!=="tag").map(v=>`${v}="${s[v]}"`).join(" ");r=r.replace(`${i}${f}`,`<${d} ${_}>${f}`)}}}else if(a){let s=new RegExp("{"+n+"}","gm");r=r.replace(s,a.toString())}}),r}function fo(e,t,r){let n=e[t];if(!n)return r;let a=r.split("."),o="";do{o+=a.shift();let s=n[o];s!==void 0&&(typeof s=="object"||!a.length)?(n=s,o=""):a.length?o+=".":n=r}while(a.length);return n}function bo(e,t,r,n,a){if(!e.hasOwnProperty(r))return t;let o=fo(e,r,t);return o===t&&r!==n&&(o=fo(e,n,t)),Kl(o,a)}function Wl(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}var yo={"zh-CN":{"languages.en":"\u82F1\u8BED","languages.ja":"\u65E5\u8BED","languages.ko":"\u97E9\u8BED","languages.es":"\u897F\u73ED\u7259\u8BED","languages.fr":"\u6CD5\u8BED","languages.de":"\u5FB7\u8BED","languages.it":"\u610F\u5927\u5229\u8BED","languages.pt":"\u8461\u8404\u7259\u8BED","languages.ru":"\u4FC4\u8BED","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"},"zh-TW":{"languages.en":"\u82F1\u8A9E","languages.ja":"\u65E5\u8A9E","languages.ko":"\u97D3\u8A9E","languages.es":"\u897F\u73ED\u7259\u8A9E","languages.fr":"\u6CD5\u8A9E","languages.de":"\u5FB7\u8A9E","languages.it":"\u610F\u5927\u5229\u8A9E","languages.pt":"\u8461\u8404\u7259\u8A9E","languages.ru":"\u4FC4\u8A9E","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"}},zl={...ut,"zh-CN":{...yo["zh-CN"],...ut["zh-CN"]},"zh-TW":{...yo["zh-TW"],...ut["zh-TW"]}};function wo(e,t,r){return bo(zl,e,t,lr,r)}var Vt=Aa()?["action"]:["browser_action","page_action"],To=[{id:"toggleTranslatePage",contexts:["page","frame","selection",...Vt]},{id:$r,contexts:Vt},{id:Qr,contexts:Vt},{id:Zr,contexts:Vt},{id:Yr,contexts:Vt}];async function mn(e){D.debug("createContextMenu",To);for(let t of To){let r=!0;e.isShowContextMenu===!1&&t.id==="toggleTranslatePage"&&(r=!1);try{g.contextMenus.create({id:t.id,title:wo(`browser.${t.id}`,e.interfaceLanguage),contexts:t.contexts,visible:r},()=>g.runtime.lastError)}catch(n){D.debug("create context menu error, it's ok!!",n,`menu id: ${t.id}`)}}}function xo(){g.contextMenus.onClicked.addListener(e=>{if(e.menuItemId===$r)if(Qe()){let r=ge().OPTIONS_URL;g.tabs.create({url:r})}else g.runtime.openOptionsPage();else if(e.menuItemId===Yr){let t=za();g.tabs.create({url:t})}else if(e.menuItemId===Zr){let r=ge().EBOOK_BUILDER_URL;g.tabs.create({url:r})}else if(e.menuItemId===Qr){let r=ge().EBOOK_VIEWER_URL;g.tabs.create({url:r})}else if(e.menuItemId===xa){let r=ge().SUBTITLE_BUILDER_URL;g.tabs.create({url:r})}else e.menuItemId===Ta?g.tabs.create({url:"https://immersivetranslate.com/docs/donate/"}):dn({method:e.menuItemId,data:{trigger:"right_menu"}})})}function gn(){it().then(e=>{e.uninstallUrl&&g.runtime.setUninstallURL&&g.runtime.setUninstallURL(e.uninstallUrl),pn(e)}).catch(e=>{D.error("create menu error",e)})}function pn(e){e?mn(e):it().then(t=>{mn(t)}).catch(t=>{D.error("create menu error",t)})}function vo(){g.runtime.onInstalled.addListener(e=>{D.debug(`onInstalled reason: ${e.reason}`),D.debug(e),e.reason=="install"?(async()=>{let t="https://onboarding.immersivetranslate.com/",n=g.runtime.getURL("").startsWith("safari"),a=!1,o=!1;try{let s=await g.runtime.getPlatformInfo();n?s.os==="mac"?a=!0:s.os==="ios"&&(o=!0):s.os==="android"&&(t="https://onboarding.immersivetranslate.com/mobile/")}catch{}a?t="https://onboarding.immersivetranslate.com/mac-safari/":o&&(t="https://onboarding.immersivetranslate.com/ios/step-2/"),g.tabs.create({url:t}),gn()})():(e.reason=="update"&&g.runtime.getManifest().version!=e.previousVersion,gn())})}po();vo();ho();g.contextMenus&&xo();async function Hl(){g.contextMenus&&pn(),(await it()).debug&&D.setLevel("debug")}Hl().catch(e=>{});})(); /*! Bundled license information: bowser/src/bowser.js: diff --git a/dist/chrome/content_script.js b/dist/chrome/content_script.js index 188b2f3..61acd40 100644 --- a/dist/chrome/content_script.js +++ b/dist/chrome/content_script.js @@ -1,4 +1,4 @@ -(()=>{var gf=Object.create;var Pi=Object.defineProperty;var pf=Object.getOwnPropertyDescriptor;var ff=Object.getOwnPropertyNames;var hf=Object.getPrototypeOf,bf=Object.prototype.hasOwnProperty;var yf=(e,t)=>()=>(e&&(t=e(e=0)),t);var xf=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ef=(e,t)=>{for(var n in t)Pi(e,n,{get:t[n],enumerable:!0})},Tf=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ff(t))!bf.call(e,r)&&r!==n&&Pi(e,r,{get:()=>t[r],enumerable:!(a=pf(t,r))||a.enumerable});return e};var Cf=(e,t,n)=>(n=e!=null?gf(hf(e)):{},Tf(t||!e||!e.__esModule?Pi(n,"default",{value:e,enumerable:!0}):n,e));var F,m=yf(()=>{F={BUILD_TIME:"2023-09-17T09:32:32.000Z",VERSION:"0.9.5",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"0",BETA:"0",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { +(()=>{var pf=Object.create;var Pi=Object.defineProperty;var ff=Object.getOwnPropertyDescriptor;var hf=Object.getOwnPropertyNames;var bf=Object.getPrototypeOf,yf=Object.prototype.hasOwnProperty;var xf=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ef=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Tf=(e,t)=>{for(var n in t)Pi(e,n,{get:t[n],enumerable:!0})},Cf=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of hf(t))!yf.call(e,r)&&r!==n&&Pi(e,r,{get:()=>t[r],enumerable:!(a=ff(t,r))||a.enumerable});return e};var wf=(e,t,n)=>(n=e!=null?pf(bf(e)):{},Cf(t||!e||!e.__esModule?Pi(n,"default",{value:e,enumerable:!0}):n,e));var F,m=xf(()=>{F={BUILD_TIME:"2023-09-19T07:46:36.000Z",VERSION:"0.9.6",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"0",BETA:"0",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { --immersive-translate-theme-underline-borderColor: #72ece9; --immersive-translate-theme-nativeUnderline-borderColor: #72ece9; --immersive-translate-theme-nativeDashed-borderColor: #72ece9; @@ -4234,14 +4234,14 @@ select.text-label {
-`,PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",OPTIONS_URL:"https://dash.immersivetranslate.com/",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",MOCK:"0",DEBUG:"0",INSTALL_FROM:"chrome_zip"}});var Dm=xf((Mo,Jr)=>{m();(function(){var e;function t(d){var b,C,h="",A=-1,S;if(d&&d.length)for(S=d.length;(A+=1)>>6&31,128|b&63):b<=65535?h+=String.fromCharCode(224|b>>>12&15,128|b>>>6&63,128|b&63):b<=2097151&&(h+=String.fromCharCode(240|b>>>18&7,128|b>>>12&63,128|b>>>6&63,128|b&63));return h}function n(d){var b,C,h,A,S,U=[],R;if(b=C=h=A=S=0,d&&d.length)for(R=d.length,d+="";b191&&h<224?(A=d.charCodeAt(b+1),U[C]=String.fromCharCode((h&31)<<6|A&63),b+=2):(A=d.charCodeAt(b+1),S=d.charCodeAt(b+2),U[C]=String.fromCharCode((h&15)<<12|(A&63)<<6|S&63),b+=3);return U.join("")}function a(d,b){var C=(d&65535)+(b&65535),h=(d>>16)+(b>>16)+(C>>16);return h<<16|C&65535}function r(d,b){return d<>>32-b}function u(d,b){for(var C=b?"0123456789ABCDEF":"0123456789abcdef",h="",A,S=0,U=d.length;S>>4&15)+C.charAt(A&15);return h}function o(d){var b,C=d.length,h="";for(b=0;b>>8&255);return h}function i(d){var b,C=d.length,h="";for(b=0;b>>8&255,d.charCodeAt(b)&255);return h}function s(d){var b,C=d.length*32,h="";for(b=0;b>5]>>>24-b%32&255);return h}function c(d){var b,C=d.length*32,h="";for(b=0;b>5]>>>b%32&255);return h}function l(d){var b,C=d.length*8,h=Array(d.length>>2),A=h.length;for(b=0;b>5]|=(d.charCodeAt(b/8)&255)<>2),A=h.length;for(b=0;b>5]|=(d.charCodeAt(b/8)&255)<<24-b%32;return h}function p(d,b){var C=b.length,h=Array(),A,S,U,R,y,T,k,v;for(T=Array(Math.ceil(d.length/2)),R=T.length,A=0;A0;){for(y=Array(),U=0,A=0;A0||S>0)&&(y[y.length]=S);h[h.length]=U,T=y}for(k="",A=h.length-1;A>=0;A--)k+=b.charAt(h[A]);for(v=Math.ceil(d.length*8/(Math.log(b.length)/Math.log(2))),A=k.length;Ad.length*8?h+=b:h+=C.charAt(R>>>6*(3-U)&63);return h}e={VERSION:"1.0.6",Base64:function(){var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b="=",C=!1,h=!0;this.encode=function(A){var S,U,R,y="";for(b=b||"=",A=h?t(A):A,len=A.length,S=0;Slen*8?y+=b:y+=d.charAt(R>>>6*(3-U)&63);return y},this.decode=function(A){var S,U,R,y,T,k,v,E,B,P,w="",_=[];if(!A)return A;S=P=0,A=A.replace(new RegExp("\\"+b,"gi"),"");do T=d.indexOf(A.charAt(S++)),k=d.indexOf(A.charAt(S++)),v=d.indexOf(A.charAt(S++)),E=d.indexOf(A.charAt(S++)),B=T<<18|k<<12|v<<6|E,U=B>>16&255,R=B>>8&255,y=B&255,P+=1,v===64?_[P]=String.fromCharCode(U):E===64?_[P]=String.fromCharCode(U,R):_[P]=String.fromCharCode(U,R,y);while(S>>8^C;return(b^-1)>>>0},MD5:function(d){var b=d&&typeof d.uppercase=="boolean"?d.uppercase:!1,C=d&&typeof d.pad=="string"?d.pad:"=",h=d&&typeof d.utf8=="boolean"?d.utf8:!0;this.hex=function(E){return u(A(E,h),b)},this.b64=function(E){return f(A(E),C)},this.any=function(E,B){return p(A(E,h),B)},this.raw=function(E){return A(E,h)},this.hex_hmac=function(E,B){return u(S(E,B),b)},this.b64_hmac=function(E,B){return f(S(E,B),C)},this.any_hmac=function(E,B,P){return p(S(E,B),P)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(E){return typeof E=="boolean"&&(b=E),this},this.setPad=function(E){return C=E||C,this},this.setUTF8=function(E){return typeof E=="boolean"&&(h=E),this};function A(E){return E=h?t(E):E,c(U(l(E),E.length*8))}function S(E,B){var P,w,_,O,N;for(E=h?t(E):E,B=h?t(B):B,P=l(E),P.length>16&&(P=U(P,E.length*8)),w=Array(16),_=Array(16),N=0;N<16;N+=1)w[N]=P[N]^909522486,_[N]=P[N]^1549556828;return O=U(w.concat(l(B)),512+B.length*8),c(U(_.concat(O),512+128))}function U(E,B){var P,w,_,O,N,M=1732584193,x=-271733879,L=-1732584194,I=271733878;for(E[B>>5]|=128<>>9<<4)+14]=B,P=0;P16&&(v=U(v,T.length*8)),E=Array(16),B=Array(16),P=0;P<16;P+=1)E[P]=v[P]^909522486,B[P]=v[P]^1549556828;return w=U(E.concat(g(k)),512+k.length*8),s(U(B.concat(w),512+160))}function U(T,k){var v,E,B,P,w,_,O,N,M=Array(80),x=1732584193,L=-271733879,I=-1732584194,$=271733878,z=-1009589776;for(T[k>>5]|=128<<24-k%32,T[(k+64>>9<<4)+15]=k,v=0;v16&&(z=M(z,x.length*8));$<16;$+=1)Y[$]=z[$]^909522486,q[$]=z[$]^1549556828;return I=M(Y.concat(g(L)),512+L.length*8),s(M(q.concat(I),512+256))}function R(x,L){return x>>>L|x<<32-L}function y(x,L){return x>>>L}function T(x,L,I){return x&L^~x&I}function k(x,L,I){return x&L^x&I^L&I}function v(x){return R(x,2)^R(x,13)^R(x,22)}function E(x){return R(x,6)^R(x,11)^R(x,25)}function B(x){return R(x,7)^R(x,18)^y(x,3)}function P(x){return R(x,17)^R(x,19)^y(x,10)}function w(x){return R(x,28)^R(x,34)^R(x,39)}function _(x){return R(x,14)^R(x,18)^R(x,41)}function O(x){return R(x,1)^R(x,8)^y(x,7)}function N(x){return R(x,19)^R(x,61)^y(x,6)}A=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function M(x,L){var I=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],$=new Array(64),z,Y,q,ae,Q,G,pe,he,re,K,se,me;for(x[L>>5]|=128<<24-L%32,x[(L+64>>9<<4)+15]=L,re=0;re32&&(x=R(x,_.length*8));M<32;M+=1)L[M]=x[M]^909522486,I[M]=x[M]^1549556828;return N=R(L.concat(g(O)),1024+O.length*8),s(R(I.concat(N),1024+512))}function R(_,O){var N,M,x,L=new Array(80),I=new Array(16),$=[new y(1779033703,-205731576),new y(-1150833019,-2067093701),new y(1013904242,-23791573),new y(-1521486534,1595750129),new y(1359893119,-1377402159),new y(-1694144372,725511199),new y(528734635,-79577749),new y(1541459225,327033209)],z=new y(0,0),Y=new y(0,0),q=new y(0,0),ae=new y(0,0),Q=new y(0,0),G=new y(0,0),pe=new y(0,0),he=new y(0,0),re=new y(0,0),K=new y(0,0),se=new y(0,0),me=new y(0,0),ce=new y(0,0),ye=new y(0,0),ke=new y(0,0),xe=new y(0,0),Z=new y(0,0);for(A===void 0&&(A=[new y(1116352408,-685199838),new y(1899447441,602891725),new y(-1245643825,-330482897),new y(-373957723,-2121671748),new y(961987163,-213338824),new y(1508970993,-1241133031),new y(-1841331548,-1357295717),new y(-1424204075,-630357736),new y(-670586216,-1560083902),new y(310598401,1164996542),new y(607225278,1323610764),new y(1426881987,-704662302),new y(1925078388,-226784913),new y(-2132889090,991336113),new y(-1680079193,633803317),new y(-1046744716,-815192428),new y(-459576895,-1628353838),new y(-272742522,944711139),new y(264347078,-1953704523),new y(604807628,2007800933),new y(770255983,1495990901),new y(1249150122,1856431235),new y(1555081692,-1119749164),new y(1996064986,-2096016459),new y(-1740746414,-295247957),new y(-1473132947,766784016),new y(-1341970488,-1728372417),new y(-1084653625,-1091629340),new y(-958395405,1034457026),new y(-710438585,-1828018395),new y(113926993,-536640913),new y(338241895,168717936),new y(666307205,1188179964),new y(773529912,1546045734),new y(1294757372,1522805485),new y(1396182291,-1651133473),new y(1695183700,-1951439906),new y(1986661051,1014477480),new y(-2117940946,1206759142),new y(-1838011259,344077627),new y(-1564481375,1290863460),new y(-1474664885,-1136513023),new y(-1035236496,-789014639),new y(-949202525,106217008),new y(-778901479,-688958952),new y(-694614492,1432725776),new y(-200395387,1467031594),new y(275423344,851169720),new y(430227734,-1194143544),new y(506948616,1363258195),new y(659060556,-544281703),new y(883997877,-509917016),new y(958139571,-976659869),new y(1322822218,-482243893),new y(1537002063,2003034995),new y(1747873779,-692930397),new y(1955562222,1575990012),new y(2024104815,1125592928),new y(-2067236844,-1578062990),new y(-1933114872,442776044),new y(-1866530822,593698344),new y(-1538233109,-561857047),new y(-1090935817,-1295615723),new y(-965641998,-479046869),new y(-903397682,-366583396),new y(-779700025,566280711),new y(-354779690,-840897762),new y(-176337025,-294727304),new y(116418474,1914138554),new y(174292421,-1563912026),new y(289380356,-1090974290),new y(460393269,320620315),new y(685471733,587496836),new y(852142971,1086792851),new y(1017036298,365543100),new y(1126000580,-1676669620),new y(1288033470,-885112138),new y(1501505948,-60457430),new y(1607167915,987167468),new y(1816402316,1246189591)]),M=0;M<80;M+=1)L[M]=new y(0,0);for(_[O>>5]|=128<<24-(O&31),_[(O+128>>10<<5)+31]=O,x=_.length,M=0;M>>N|O.h<<32-N,_.h=O.h>>>N|O.l<<32-N}function v(_,O,N){_.l=O.h>>>N|O.l<<32-N,_.h=O.l>>>N|O.h<<32-N}function E(_,O,N){_.l=O.l>>>N|O.h<<32-N,_.h=O.h>>>N}function B(_,O,N){var M=(O.l&65535)+(N.l&65535),x=(O.l>>>16)+(N.l>>>16)+(M>>>16),L=(O.h&65535)+(N.h&65535)+(x>>>16),I=(O.h>>>16)+(N.h>>>16)+(L>>>16);_.l=M&65535|x<<16,_.h=L&65535|I<<16}function P(_,O,N,M,x){var L=(O.l&65535)+(N.l&65535)+(M.l&65535)+(x.l&65535),I=(O.l>>>16)+(N.l>>>16)+(M.l>>>16)+(x.l>>>16)+(L>>>16),$=(O.h&65535)+(N.h&65535)+(M.h&65535)+(x.h&65535)+(I>>>16),z=(O.h>>>16)+(N.h>>>16)+(M.h>>>16)+(x.h>>>16)+($>>>16);_.l=L&65535|I<<16,_.h=$&65535|z<<16}function w(_,O,N,M,x,L){var I=(O.l&65535)+(N.l&65535)+(M.l&65535)+(x.l&65535)+(L.l&65535),$=(O.l>>>16)+(N.l>>>16)+(M.l>>>16)+(x.l>>>16)+(L.l>>>16)+(I>>>16),z=(O.h&65535)+(N.h&65535)+(M.h&65535)+(x.h&65535)+(L.h&65535)+($>>>16),Y=(O.h>>>16)+(N.h>>>16)+(M.h>>>16)+(x.h>>>16)+(L.h>>>16)+(z>>>16);_.l=I&65535|$<<16,_.h=z&65535|Y<<16}},RMD160:function(d){var b=d&&typeof d.uppercase=="boolean"?d.uppercase:!1,C=d&&typeof d.pad=="string"?d.pa:"=",h=d&&typeof d.utf8=="boolean"?d.utf8:!0,A=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],S=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],U=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],R=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(w){return u(y(w,h))},this.b64=function(w){return f(y(w,h),C)},this.any=function(w,_){return p(y(w,h),_)},this.raw=function(w){return y(w,h)},this.hex_hmac=function(w,_){return u(T(w,_))},this.b64_hmac=function(w,_){return f(T(w,_),C)},this.any_hmac=function(w,_,O){return p(T(w,_),O)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(w){return typeof w=="boolean"&&(b=w),this},this.setPad=function(w){return typeof w<"u"&&(C=w),this},this.setUTF8=function(w){return typeof w=="boolean"&&(h=w),this};function y(w){return w=h?t(w):w,k(v(l(w),w.length*8))}function T(w,_){w=h?t(w):w,_=h?t(_):_;var O,N,M=l(w),x=Array(16),L=Array(16);for(M.length>16&&(M=v(M,w.length*8)),O=0;O<16;O+=1)x[O]=M[O]^909522486,L[O]=M[O]^1549556828;return N=v(x.concat(l(_)),512+_.length*8),k(v(L.concat(N),512+160))}function k(w){var _,O="",N=w.length*32;for(_=0;_>5]>>>_%32&255);return O}function v(w,_){var O,N,M,x,L=1732584193,I=4023233417,$=2562383102,z=271733878,Y=3285377520,q,ae,Q,G,pe,he,re,K,se,me;for(w[_>>5]|=128<<_%32,w[(_+64>>>9<<4)+14]=_,x=w.length,M=0;Mfunction(){return t||(0,e[pc(e)[0]])((t={exports:{}}).exports,t),t.exports},Lf=(e,t)=>{for(var n in t)Bi(e,n,{get:t[n],enumerable:!0})},_i=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of pc(t))!Sf.call(e,r)&&r!==n&&Bi(e,r,{get:()=>t[r],enumerable:!(a=Af(t,r))||a.enumerable});return e},Mf=(e,t,n)=>(_i(e,t,"default"),n&&_i(n,t,"default")),fc=(e,t,n)=>(n=e!=null?vf(kf(e)):{},_i(t||!e||!e.__esModule?Bi(n,"default",{value:e,enumerable:!0}):n,e)),hc=Df({"../esmd/npm/webextension-polyfill@0.10.0/node_modules/webextension-polyfill/dist/browser-polyfill.js"(e,t){(function(n,a){if(typeof define=="function"&&define.amd)define("webextension-polyfill",["module"],a);else if(typeof e<"u")a(t);else{var r={exports:{}};a(r),n.browser=r.exports}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:e,function(n){"use strict";if(!globalThis.chrome?.runtime?.id)throw new Error("This script should only be loaded in a browser extension.");if(typeof globalThis.browser>"u"||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){let a="The message port closed before a response was received.",r=u=>{let o={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(Object.keys(o).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class i extends WeakMap{constructor(T,k=void 0){super(k),this.createItem=T}get(T){return this.has(T)||this.set(T,this.createItem(T)),super.get(T)}}let s=y=>y&&typeof y=="object"&&typeof y.then=="function",c=(y,T)=>(...k)=>{u.runtime.lastError?y.reject(new Error(u.runtime.lastError.message)):T.singleCallbackArg||k.length<=1&&T.singleCallbackArg!==!1?y.resolve(k[0]):y.resolve(k)},l=y=>y==1?"argument":"arguments",g=(y,T)=>function(v,...E){if(E.lengthT.maxArgs)throw new Error(`Expected at most ${T.maxArgs} ${l(T.maxArgs)} for ${y}(), got ${E.length}`);return new Promise((B,P)=>{if(T.fallbackToNoCallback)try{v[y](...E,c({resolve:B,reject:P},T))}catch{v[y](...E),T.fallbackToNoCallback=!1,T.noCallback=!0,B()}else T.noCallback?(v[y](...E),B()):v[y](...E,c({resolve:B,reject:P},T))})},p=(y,T,k)=>new Proxy(T,{apply(v,E,B){return k.call(E,y,...B)}}),f=Function.call.bind(Object.prototype.hasOwnProperty),d=(y,T={},k={})=>{let v=Object.create(null),E={has(P,w){return w in y||w in v},get(P,w,_){if(w in v)return v[w];if(!(w in y))return;let O=y[w];if(typeof O=="function")if(typeof T[w]=="function")O=p(y,y[w],T[w]);else if(f(k,w)){let N=g(w,k[w]);O=p(y,y[w],N)}else O=O.bind(y);else if(typeof O=="object"&&O!==null&&(f(T,w)||f(k,w)))O=d(O,T[w],k[w]);else if(f(k,"*"))O=d(O,T[w],k["*"]);else return Object.defineProperty(v,w,{configurable:!0,enumerable:!0,get(){return y[w]},set(N){y[w]=N}}),O;return v[w]=O,O},set(P,w,_,O){return w in v?v[w]=_:y[w]=_,!0},defineProperty(P,w,_){return Reflect.defineProperty(v,w,_)},deleteProperty(P,w){return Reflect.deleteProperty(v,w)}},B=Object.create(y);return new Proxy(B,E)},b=y=>({addListener(T,k,...v){T.addListener(y.get(k),...v)},hasListener(T,k){return T.hasListener(y.get(k))},removeListener(T,k){T.removeListener(y.get(k))}}),C=new i(y=>typeof y!="function"?y:function(k){let v=d(k,{},{getContent:{minArgs:0,maxArgs:0}});y(v)}),h=new i(y=>typeof y!="function"?y:function(k,v,E){let B=!1,P,w=new Promise(M=>{P=function(x){B=!0,M(x)}}),_;try{_=y(k,v,P)}catch(M){_=Promise.reject(M)}let O=_!==!0&&s(_);if(_!==!0&&!O&&!B)return!1;let N=M=>{M.then(x=>{E(x)},x=>{let L;x&&(x instanceof Error||typeof x.message=="string")?L=x.message:L="An unexpected error occurred",E({__mozWebExtensionPolyfillReject__:!0,message:L})}).catch(x=>{})};return N(O?_:w),!0}),A=({reject:y,resolve:T},k)=>{u.runtime.lastError?u.runtime.lastError.message===a?T():y(new Error(u.runtime.lastError.message)):k&&k.__mozWebExtensionPolyfillReject__?y(new Error(k.message)):T(k)},S=(y,T,k,...v)=>{if(v.lengthT.maxArgs)throw new Error(`Expected at most ${T.maxArgs} ${l(T.maxArgs)} for ${y}(), got ${v.length}`);return new Promise((E,B)=>{let P=A.bind(null,{resolve:E,reject:B});v.push(P),k.sendMessage(...v)})},U={devtools:{network:{onRequestFinished:b(C)}},runtime:{onMessage:b(h),onMessageExternal:b(h),sendMessage:S.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:S.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},R={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return o.privacy={network:{"*":R},services:{"*":R},websites:{"*":R}},d(u,U,o)};n.exports=r(chrome)}else n.exports=globalThis.browser})}}),bc={};Lf(bc,{default:()=>Eu});var Ff=fc(hc());Mf(bc,fc(hc()));var{default:gc,...Pf}=Ff,Eu=gc!==void 0?gc:Pf;globalThis.immersiveTranslateBrowserAPI=Eu;m();m();m();m();function Ve(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():F}var Ee=Ve();function fe(){return Ee.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function Fn(){return Ee.PROD==="1"}function Pn(){return Ee.PROD_API==="1"}function yc(){return Ee.HAS_CSP_ERROR=="1"}function Rt(){if(Ee.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function Tu(){return typeof Deno<"u"}var c5=Ve().PROD==="1",Oa=Ve().PROD!=="1";function Cu(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}m();m();m();m();m();m();m();function Ia(){let e,t="pending",n=new Promise((a,r)=>{e={async resolve(u){await u,t="fulfilled",a(u)},reject(u){t="rejected",r(u)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}m();var Ri=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function wu(e,t){let n=Ia(),a=setTimeout(()=>n.reject(new Ri),t);return Promise.race([e,n]).finally(()=>clearTimeout(a))}m();m();function Cr(e,t={}){let{signal:n,persistent:a}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((r,u)=>{let o=()=>{clearTimeout(s),u(new DOMException("Delay was aborted.","AbortError"))},s=setTimeout(()=>{n?.removeEventListener("abort",o),r()},e);if(n?.addEventListener("abort",o,{once:!0}),a===!1)try{Deno.unrefTimer(s)}catch(c){if(!(c instanceof ReferenceError))throw c}})}m();var xc=class{#e=0;#t=[];#n=[];#a=Ia();add(t){++this.#e,this.#r(t[Symbol.asyncIterator]())}async#r(t){try{let{value:n,done:a}=await t.next();a?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#a.resolve()}async*iterate(){for(;this.#e>0;){await this.#a;for(let t=0;tuh,bgBlue:()=>lh,bgBrightBlack:()=>gh,bgBrightBlue:()=>bh,bgBrightCyan:()=>xh,bgBrightGreen:()=>fh,bgBrightMagenta:()=>yh,bgBrightRed:()=>ph,bgBrightWhite:()=>Eh,bgBrightYellow:()=>hh,bgCyan:()=>dh,bgGreen:()=>ih,bgMagenta:()=>ch,bgRed:()=>oh,bgRgb24:()=>vh,bgRgb8:()=>Ch,bgWhite:()=>mh,bgYellow:()=>sh,black:()=>qf,blue:()=>Gf,bold:()=>Of,brightBlack:()=>Cc,brightBlue:()=>th,brightCyan:()=>ah,brightGreen:()=>Xf,brightMagenta:()=>nh,brightRed:()=>Zf,brightWhite:()=>rh,brightYellow:()=>eh,cyan:()=>Yf,dim:()=>If,getColorEnabled:()=>Bf,gray:()=>Qf,green:()=>$f,hidden:()=>zf,inverse:()=>Uf,italic:()=>Nf,magenta:()=>Vf,red:()=>Wf,reset:()=>Rf,rgb24:()=>wh,rgb8:()=>Th,setColorEnabled:()=>_f,strikethrough:()=>Hf,stripColor:()=>kh,underline:()=>jf,white:()=>Jf,yellow:()=>Kf});m();var{Deno:Ec}=globalThis,Tc=typeof Ec?.noColor=="boolean"?Ec.noColor:!0,Oi=!Tc;function _f(e){Tc||(Oi=e)}function Bf(){return Oi}function Te(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function Ce(e,t){return Oi?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function Rf(e){return Ce(e,Te([0],0))}function Of(e){return Ce(e,Te([1],22))}function If(e){return Ce(e,Te([2],22))}function Nf(e){return Ce(e,Te([3],23))}function jf(e){return Ce(e,Te([4],24))}function Uf(e){return Ce(e,Te([7],27))}function zf(e){return Ce(e,Te([8],28))}function Hf(e){return Ce(e,Te([9],29))}function qf(e){return Ce(e,Te([30],39))}function Wf(e){return Ce(e,Te([31],39))}function $f(e){return Ce(e,Te([32],39))}function Kf(e){return Ce(e,Te([33],39))}function Gf(e){return Ce(e,Te([34],39))}function Vf(e){return Ce(e,Te([35],39))}function Yf(e){return Ce(e,Te([36],39))}function Jf(e){return Ce(e,Te([37],39))}function Qf(e){return Cc(e)}function Cc(e){return Ce(e,Te([90],39))}function Zf(e){return Ce(e,Te([91],39))}function Xf(e){return Ce(e,Te([92],39))}function eh(e){return Ce(e,Te([93],39))}function th(e){return Ce(e,Te([94],39))}function nh(e){return Ce(e,Te([95],39))}function ah(e){return Ce(e,Te([96],39))}function rh(e){return Ce(e,Te([97],39))}function uh(e){return Ce(e,Te([40],49))}function oh(e){return Ce(e,Te([41],49))}function ih(e){return Ce(e,Te([42],49))}function sh(e){return Ce(e,Te([43],49))}function lh(e){return Ce(e,Te([44],49))}function ch(e){return Ce(e,Te([45],49))}function dh(e){return Ce(e,Te([46],49))}function mh(e){return Ce(e,Te([47],49))}function gh(e){return Ce(e,Te([100],49))}function ph(e){return Ce(e,Te([101],49))}function fh(e){return Ce(e,Te([102],49))}function hh(e){return Ce(e,Te([103],49))}function bh(e){return Ce(e,Te([104],49))}function yh(e){return Ce(e,Te([105],49))}function xh(e){return Ce(e,Te([106],49))}function Eh(e){return Ce(e,Te([107],49))}function Hn(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function Th(e,t){return Ce(e,Te([38,5,Hn(t)],39))}function Ch(e,t){return Ce(e,Te([48,5,Hn(t)],49))}function wh(e,t){return typeof t=="number"?Ce(e,Te([38,2,t>>16&255,t>>8&255,t&255],39)):Ce(e,Te([38,2,Hn(t.r),Hn(t.g),Hn(t.b)],39))}function vh(e,t){return typeof t=="number"?Ce(e,Te([48,2,t>>16&255,t>>8&255,t&255],49)):Ce(e,Te([48,2,Hn(t.r),Hn(t.g),Hn(t.b)],49))}var Ah=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function kh(e){return e.replace(Ah,"")}m();m();var Ii=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},Sh={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function Ni(e,t){let n={...Sh,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let a=n.minTimeout,r;for(let u=0;usetTimeout(i,a)),a*=n.multiplier,a=Math.max(a,n.minTimeout),n.maxTimeout>=0&&(a=Math.min(a,n.maxTimeout)),r=o}throw new Ii(r,n.maxAttempts)}m();var _n=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function ji(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",a,r=t.length;for(a=2;a>2],n+=_n[(t[a-2]&3)<<4|t[a-1]>>4],n+=_n[(t[a-1]&15)<<2|t[a]>>6],n+=_n[t[a]&63];return a===r+1&&(n+=_n[t[a-2]>>2],n+=_n[(t[a-2]&3)<<4],n+="=="),a===r&&(n+=_n[t[a-2]>>2],n+=_n[(t[a-2]&3)<<4|t[a-1]>>4],n+=_n[(t[a-1]&15)<<2],n+="="),n}m();m();var X5=Number.isNaN||function(e){return typeof e=="number"&&e!==e};m();m();var vu=globalThis||(typeof window<"u"?window:self),Lh=Object.create,zi=Object.defineProperty,Mh=Object.getOwnPropertyDescriptor,Fh=Object.getOwnPropertyNames,Ph=Object.getPrototypeOf,_h=Object.prototype.hasOwnProperty,Bh=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Rh=(e,t)=>{for(var n in t)zi(e,n,{get:t[n],enumerable:!0})},Ui=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Fh(t))!_h.call(e,r)&&r!==n&&zi(e,r,{get:()=>t[r],enumerable:!(a=Mh(t,r))||a.enumerable});return e},Oh=(e,t,n)=>(Ui(e,t,"default"),n&&Ui(n,t,"default")),vc=(e,t,n)=>(n=e!=null?Lh(Ph(e)):{},Ui(t||!e||!e.__esModule?zi(n,"default",{value:e,enumerable:!0}):n,e)),Ac=Bh((e,t)=>{var n="Expected a function",a=NaN,r="[object Symbol]",u=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,l=typeof vu=="object"&&vu&&vu.Object===Object&&vu,g=typeof self=="object"&&self&&self.Object===Object&&self,p=l||g||Function("return this")(),f=Object.prototype,d=f.toString,b=Math.max,C=Math.min,h=function(){return p.Date.now()};function A(k,v,E){var B,P,w,_,O,N,M=0,x=!1,L=!1,I=!0;if(typeof k!="function")throw new TypeError(n);v=T(v)||0,U(E)&&(x=!!E.leading,L="maxWait"in E,w=L?b(T(E.maxWait)||0,v):w,I="trailing"in E?!!E.trailing:I);function $(re){var K=B,se=P;return B=P=void 0,M=re,_=k.apply(se,K),_}function z(re){return M=re,O=setTimeout(ae,v),x?$(re):_}function Y(re){var K=re-N,se=re-M,me=v-K;return L?C(me,w-se):me}function q(re){var K=re-N,se=re-M;return N===void 0||K>=v||K<0||L&&se>=w}function ae(){var re=h();if(q(re))return Q(re);O=setTimeout(ae,Y(re))}function Q(re){return O=void 0,I&&B?$(re):(B=P=void 0,_)}function G(){O!==void 0&&clearTimeout(O),M=0,B=N=P=O=void 0}function pe(){return O===void 0?_:Q(h())}function he(){var re=h(),K=q(re);if(B=arguments,P=this,N=re,K){if(O===void 0)return z(N);if(L)return O=setTimeout(ae,v),$(N)}return O===void 0&&(O=setTimeout(ae,v)),_}return he.cancel=G,he.flush=pe,he}function S(k,v,E){var B=!0,P=!0;if(typeof k!="function")throw new TypeError(n);return U(E)&&(B="leading"in E?!!E.leading:B,P="trailing"in E?!!E.trailing:P),A(k,v,{leading:B,maxWait:v,trailing:P})}function U(k){var v=typeof k;return!!k&&(v=="object"||v=="function")}function R(k){return!!k&&typeof k=="object"}function y(k){return typeof k=="symbol"||R(k)&&d.call(k)==r}function T(k){if(typeof k=="number")return k;if(y(k))return a;if(U(k)){var v=typeof k.valueOf=="function"?k.valueOf():k;k=U(v)?v+"":v}if(typeof k!="string")return k===0?k:+k;k=k.replace(u,"");var E=i.test(k);return E||s.test(k)?c(k.slice(2),E?2:8):o.test(k)?a:+k}t.exports=S}),kc={};Rh(kc,{default:()=>bt});var Ih=vc(Ac());Oh(kc,vc(Ac()));var{default:wc,...Nh}=Ih,bt=wc!==void 0?wc:Nh;m();m();var jh=Object.create,qi=Object.defineProperty,Uh=Object.getOwnPropertyDescriptor,zh=Object.getOwnPropertyNames,Hh=Object.getPrototypeOf,qh=Object.prototype.hasOwnProperty,Wh=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),$h=(e,t)=>{for(var n in t)qi(e,n,{get:t[n],enumerable:!0})},Hi=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of zh(t))!qh.call(e,r)&&r!==n&&qi(e,r,{get:()=>t[r],enumerable:!(a=Uh(t,r))||a.enumerable});return e},Kh=(e,t,n)=>(Hi(e,t,"default"),n&&Hi(n,t,"default")),Dc=(e,t,n)=>(n=e!=null?jh(Hh(e)):{},Hi(t||!e||!e.__esModule?qi(n,"default",{value:e,enumerable:!0}):n,e)),Lc=Wh((e,t)=>{(function(n,a){typeof e=="object"&&typeof t=="object"?t.exports=a():typeof define=="function"&&define.amd?define([],a):typeof e=="object"?e.notie=a():n.notie=a()})(e,function(){return function(n){function a(u){if(r[u])return r[u].exports;var o=r[u]={i:u,l:!1,exports:{}};return n[u].call(o.exports,o,o.exports,a),o.l=!0,o.exports}var r={};return a.m=n,a.c=r,a.i=function(u){return u},a.d=function(u,o,i){a.o(u,o)||Object.defineProperty(u,o,{configurable:!1,enumerable:!0,get:i})},a.n=function(u){var o=u&&u.__esModule?function(){return u.default}:function(){return u};return a.d(o,"a",o),o},a.o=function(u,o){return Object.prototype.hasOwnProperty.call(u,o)},a.p="",a(a.s=1)}([function(n,a){n.exports=function(r){return r.webpackPolyfill||(r.deprecate=function(){},r.paths=[],r.children||(r.children=[]),Object.defineProperty(r,"loaded",{enumerable:!0,get:function(){return r.l}}),Object.defineProperty(r,"id",{enumerable:!0,get:function(){return r.i}}),r.webpackPolyfill=1),r}},function(n,a,r){"use strict";(function(u){var o,i,s,c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l};(function(l,g){c(a)==="object"&&c(u)==="object"?u.exports=g():(i=[],o=g,s=typeof o=="function"?o.apply(a,i):o,s!==void 0&&(u.exports=s))})(void 0,function(){return function(l){function g(f){if(p[f])return p[f].exports;var d=p[f]={i:f,l:!1,exports:{}};return l[f].call(d.exports,d,d.exports,g),d.l=!0,d.exports}var p={};return g.m=l,g.c=p,g.i=function(f){return f},g.d=function(f,d,b){g.o(f,d)||Object.defineProperty(f,d,{configurable:!1,enumerable:!0,get:b})},g.n=function(f){var d=f&&f.__esModule?function(){return f.default}:function(){return f};return g.d(d,"a",d),d},g.o=function(f,d){return Object.prototype.hasOwnProperty.call(f,d)},g.p="",g(g.s=0)}([function(l,g,p){function f(z,Y){var q={};for(var ae in z)Y.indexOf(ae)>=0||Object.prototype.hasOwnProperty.call(z,ae)&&(q[ae]=z[ae]);return q}Object.defineProperty(g,"__esModule",{value:!0});var d=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(z){return typeof z>"u"?"undefined":c(z)}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z>"u"?"undefined":c(z)},b=Object.assign||function(z){for(var Y=1;Y'+ae+"",se.onclick=function(){return P(me,K)},se.listener=function(ce){(v(ce)||E(ce))&&O()},B(se,K),G&&G<1&&(G=1),!he&&G&&U(G).then(function(){return P(me,K)})},M=g.force=function(z,Y){var q=z.type,ae=q===void 0?5:q,Q=z.text,G=z.buttonText,pe=G===void 0?"OK":G,he=z.callback,re=z.position,K=re===void 0?h.positions.force||K.top:re;R(),O();var se=document.createElement("div"),me=y();se.id=me;var ce=document.createElement("div");ce.classList.add(h.classes.textbox),ce.classList.add(h.classes.backgroundInfo),ce.innerHTML='
'+Q+"
";var ye=document.createElement("div");ye.classList.add(h.classes.button),ye.classList.add(T[ae]),ye.innerHTML=pe,ye.onclick=function(){P(me,K),_(),he?he():Y&&Y()},se.appendChild(ce),se.appendChild(ye),se.listener=function(ke){v(ke)&&ye.click()},B(se,K),w()},x=g.confirm=function(z,Y,q){var ae=z.text,Q=z.submitText,G=Q===void 0?"Yes":Q,pe=z.cancelText,he=pe===void 0?"Cancel":pe,re=z.submitCallback,K=z.cancelCallback,se=z.position,me=se===void 0?h.positions.confirm||me.top:se;R(),O();var ce=document.createElement("div"),ye=y();ce.id=ye;var ke=document.createElement("div");ke.classList.add(h.classes.textbox),ke.classList.add(h.classes.backgroundInfo),ke.innerHTML='
'+ae+"
";var xe=document.createElement("div");xe.classList.add(h.classes.button),xe.classList.add(h.classes.elementHalf),xe.classList.add(h.classes.backgroundSuccess),xe.innerHTML=G,xe.onclick=function(){P(ye,me),_(),re?re():Y&&Y()};var Z=document.createElement("div");Z.classList.add(h.classes.button),Z.classList.add(h.classes.elementHalf),Z.classList.add(h.classes.backgroundError),Z.innerHTML=he,Z.onclick=function(){P(ye,me),_(),K?K():q&&q()},ce.appendChild(ke),ce.appendChild(xe),ce.appendChild(Z),ce.listener=function(Ae){v(Ae)?xe.click():E(Ae)&&Z.click()},B(ce,me),w(ce,me)},L=function(z,Y,q){var ae=z.text,Q=z.submitText,G=Q===void 0?"Submit":Q,pe=z.cancelText,he=pe===void 0?"Cancel":pe,re=z.submitCallback,K=z.cancelCallback,se=z.position,me=se===void 0?h.positions.input||me.top:se,ce=f(z,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);R(),O();var ye=document.createElement("div"),ke=y();ye.id=ke;var xe=document.createElement("div");xe.classList.add(h.classes.textbox),xe.classList.add(h.classes.backgroundInfo),xe.innerHTML='
'+ae+"
";var Z=document.createElement("input");Z.classList.add(h.classes.inputField),Z.setAttribute("autocapitalize",ce.autocapitalize||"none"),Z.setAttribute("autocomplete",ce.autocomplete||"off"),Z.setAttribute("autocorrect",ce.autocorrect||"off"),Z.setAttribute("autofocus",ce.autofocus||"true"),Z.setAttribute("inputmode",ce.inputmode||"verbatim"),Z.setAttribute("max",ce.max||""),Z.setAttribute("maxlength",ce.maxlength||""),Z.setAttribute("min",ce.min||""),Z.setAttribute("minlength",ce.minlength||""),Z.setAttribute("placeholder",ce.placeholder||""),Z.setAttribute("spellcheck",ce.spellcheck||"default"),Z.setAttribute("step",ce.step||"any"),Z.setAttribute("type",ce.type||"text"),Z.value=ce.value||"",ce.allowed&&(Z.oninput=function(){var Re=void 0;if(Array.isArray(ce.allowed)){for(var Ne="",st=ce.allowed,Pt=0;Pt'+q+"",K.appendChild(me),pe.forEach(function(ye,ke){var xe=ye.type,Z=xe===void 0?1:xe,Ae=ye.text,Le=ye.handler,Re=document.createElement("div");Re.classList.add(T[Z]),Re.classList.add(h.classes.button),Re.classList.add(h.classes.selectChoice);var Ne=pe[ke+1];Ne&&!Ne.type&&(Ne.type=1),Ne&&Ne.type===Z&&Re.classList.add(h.classes.selectChoiceRepeated),Re.innerHTML=Ae,Re.onclick=function(){P(se,re),_(),Le()},K.appendChild(Re)});var ce=document.createElement("div");ce.classList.add(h.classes.backgroundNeutral),ce.classList.add(h.classes.button),ce.innerHTML=Q,ce.onclick=function(){P(se,re),_(),G?G():Y&&Y()},K.appendChild(ce),K.listener=function(ye){E(ye)&&ce.click()},B(K,re),w(K,re)},$=g.date=function(z,Y,q){var ae=z.value,Q=ae===void 0?new Date:ae,G=z.submitText,pe=G===void 0?"OK":G,he=z.cancelText,re=he===void 0?"Cancel":he,K=z.submitCallback,se=z.cancelCallback,me=z.position,ce=me===void 0?h.positions.date||ce.top:me;R(),O();var ye="▾",ke=document.createElement("div"),xe=document.createElement("div"),Z=document.createElement("div"),Ae=function(Ue){ke.innerHTML=h.dateMonths[Ue.getMonth()],xe.innerHTML=Ue.getDate(),Z.innerHTML=Ue.getFullYear()},Le=function(Ue){var H=new Date(Q.getFullYear(),Q.getMonth()+1,0).getDate(),de=Ue.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(de)>H&&(de=H.toString()),Ue.target.textContent=de,Number(de)<1&&(de="1"),Q.setDate(Number(de))},Re=function(Ue){var H=Ue.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);Ue.target.textContent=H,Q.setFullYear(Number(H))},Ne=function(Ue){Ae(Q)},st=function(Ue){var H=new Date(Q.getFullYear(),Q.getMonth()+Ue+1,0).getDate();Q.getDate()>H&&Q.setDate(H),Q.setMonth(Q.getMonth()+Ue),Ae(Q)},Pt=function(Ue){Q.setDate(Q.getDate()+Ue),Ae(Q)},pa=function(Ue){var H=Q.getFullYear()+Ue;H<0?Q.setFullYear(0):Q.setFullYear(Q.getFullYear()+Ue),Ae(Q)},Ht=document.createElement("div"),Dn=y();Ht.id=Dn;var Un=document.createElement("div");Un.classList.add(h.classes.backgroundInfo);var Oe=document.createElement("div");Oe.classList.add(h.classes.dateSelectorInner);var qt=document.createElement("div");qt.classList.add(h.classes.button),qt.classList.add(h.classes.elementThird),qt.classList.add(h.classes.dateSelectorUp),qt.innerHTML=ye;var rt=document.createElement("div");rt.classList.add(h.classes.button),rt.classList.add(h.classes.elementThird),rt.classList.add(h.classes.dateSelectorUp),rt.innerHTML=ye;var He=document.createElement("div");He.classList.add(h.classes.button),He.classList.add(h.classes.elementThird),He.classList.add(h.classes.dateSelectorUp),He.innerHTML=ye,ke.classList.add(h.classes.element),ke.classList.add(h.classes.elementThird),ke.innerHTML=h.dateMonths[Q.getMonth()],xe.classList.add(h.classes.element),xe.classList.add(h.classes.elementThird),xe.setAttribute("contentEditable",!0),xe.addEventListener("input",Le),xe.addEventListener("blur",Ne),xe.innerHTML=Q.getDate(),Z.classList.add(h.classes.element),Z.classList.add(h.classes.elementThird),Z.setAttribute("contentEditable",!0),Z.addEventListener("input",Re),Z.addEventListener("blur",Ne),Z.innerHTML=Q.getFullYear();var Yt=document.createElement("div");Yt.classList.add(h.classes.button),Yt.classList.add(h.classes.elementThird),Yt.innerHTML=ye;var _t=document.createElement("div");_t.classList.add(h.classes.button),_t.classList.add(h.classes.elementThird),_t.innerHTML=ye;var zn=document.createElement("div");zn.classList.add(h.classes.button),zn.classList.add(h.classes.elementThird),zn.innerHTML=ye,qt.onclick=function(){return st(1)},rt.onclick=function(){return Pt(1)},He.onclick=function(){return pa(1)},Yt.onclick=function(){return st(-1)},_t.onclick=function(){return Pt(-1)},zn.onclick=function(){return pa(-1)};var mt=document.createElement("div");mt.classList.add(h.classes.button),mt.classList.add(h.classes.elementHalf),mt.classList.add(h.classes.backgroundSuccess),mt.innerHTML=pe,mt.onclick=function(){P(Dn,ce),_(),K?K(Q):Y&&Y(Q)};var mn=document.createElement("div");mn.classList.add(h.classes.button),mn.classList.add(h.classes.elementHalf),mn.classList.add(h.classes.backgroundError),mn.innerHTML=re,mn.onclick=function(){P(Dn,ce),_(),se?se(Q):q&&q(Q)},Oe.appendChild(qt),Oe.appendChild(rt),Oe.appendChild(He),Oe.appendChild(ke),Oe.appendChild(xe),Oe.appendChild(Z),Oe.appendChild(Yt),Oe.appendChild(_t),Oe.appendChild(zn),Un.appendChild(Oe),Ht.appendChild(Un),Ht.appendChild(mt),Ht.appendChild(mn),Ht.listener=function(Ue){v(Ue)?mt.click():E(Ue)&&mn.click()},B(Ht,ce),w(Ht,ce)};g.default={alert:N,force:M,confirm:x,input:L,select:I,date:$,setOptions:A,hideAlerts:O}}])})}).call(a,r(0)(n))}])})}),Mc={};$h(Mc,{default:()=>Au});var Gh=Dc(Lc());Kh(Mc,Dc(Lc()));var{default:Sc,...Vh}=Gh,Au=Sc!==void 0?Sc:Vh;m();m();var Wi=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function $i(e,t,n,a){e.addEventListener?e.addEventListener(t,n,a):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function Rc(e,t){for(var n=t.slice(0,t.length-1),a=0;a=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function Yh(e,t){for(var n=e.length>=t.length?e:t,a=e.length>=t.length?t:e,r=!0,u=0;u=0&&ze.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&ze.splice(0,ze.length),(t===93||t===224)&&(t=91),t in gt){gt[t]=!1;for(var a in vn)vn[a]===t&&(Ye[a]=!1)}}function r2(e){if(typeof e>"u")Object.keys(nt).forEach(function(o){return delete nt[o]});else if(Array.isArray(e))e.forEach(function(o){o.key&&Ki(o)});else if(typeof e=="object")e.key&&Ki(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a1?Rc(vn,s):[];nt[g]=nt[g].filter(function(f){var d=a?f.method===a:!0;return!(d&&f.scope===n&&Yh(f.mods,p))})}})};function Pc(e,t,n,a){if(t.element===a){var r;if(t.scope===n||t.scope==="all"){r=t.mods.length>0;for(var u in gt)Object.prototype.hasOwnProperty.call(gt,u)&&(!gt[u]&&t.mods.indexOf(+u)>-1||gt[u]&&t.mods.indexOf(+u)===-1)&&(r=!1);(t.mods.length===0&&!gt[16]&&!gt[18]&&!gt[17]&&!gt[91]||r||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function _c(e,t){var n=nt["*"],a=e.keyCode||e.which||e.charCode;if(Ye.filter.call(this,e)){if((a===93||a===224)&&(a=91),ze.indexOf(a)===-1&&a!==229&&ze.push(a),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(d){var b=Vi[d];e[d]&&ze.indexOf(b)===-1?ze.push(b):!e[d]&&ze.indexOf(b)>-1?ze.splice(ze.indexOf(b),1):d==="metaKey"&&e[d]&&ze.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(ze=ze.slice(ze.indexOf(b))))}),a in gt){gt[a]=!0;for(var r in vn)vn[r]===a&&(Ye[r]=!0);if(!n)return}for(var u in gt)Object.prototype.hasOwnProperty.call(gt,u)&&(gt[u]=e[Vi[u]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(ze.indexOf(17)===-1&&ze.push(17),ze.indexOf(18)===-1&&ze.push(18),gt[17]=!0,gt[18]=!0);var o=Ar();if(n)for(var i=0;i-1}function Ye(e,t,n){ze=[];var a=Oc(e),r=[],u="all",o=document,i=0,s=!1,c=!0,l="+",g=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(u=t.scope),t.element&&(o=t.element),t.keyup&&(s=t.keyup),t.keydown!==void 0&&(c=t.keydown),t.capture!==void 0&&(g=t.capture),typeof t.splitKey=="string"&&(l=t.splitKey)),typeof t=="string"&&(u=t);i1&&(r=Rc(vn,e)),e=e[e.length-1],e=e==="*"?"*":Su(e),e in nt||(nt[e]=[]),nt[e].push({keyup:s,keydown:c,scope:u,mods:r,shortcut:a[i],method:n,key:a[i],splitKey:l,element:o});typeof o<"u"&&!u2(o)&&window&&(Nc.push(o),$i(o,"keydown",function(p){_c(p,o)},g),Fc||(Fc=!0,$i(window,"focus",function(){ze=[]},g)),$i(o,"keyup",function(p){_c(p,o),a2(p)},g))}function o2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(nt).forEach(function(n){var a=nt[n].filter(function(r){return r.scope===t&&r.shortcut===e});a.forEach(function(r){r&&r.method&&r.method()})})}var Gi={getPressedKeyString:Xh,setScope:jc,getScope:Ar,deleteScope:n2,getPressedKeyCodes:Zh,isPressed:t2,filter:e2,trigger:o2,unbind:r2,keyMap:vr,modifier:vn,modifierMap:Vi};for(ku in Gi)Object.prototype.hasOwnProperty.call(Gi,ku)&&(Ye[ku]=Gi[ku]);var ku;typeof document<"u"&&(Bc=window.hotkeys,Ye.noConflict=function(e){return e&&window.hotkeys===Ye&&(window.hotkeys=Bc),Ye},window.hotkeys=Ye);var Bc;m();m();var i2={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},zc={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Xe={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},At={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},qn={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},W=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let a=W.getVersionPrecision(e),r=W.getVersionPrecision(t),u=Math.max(a,r),o=0,i=W.map([e,t],s=>{let c=u-W.getVersionPrecision(s),l=s+new Array(c+1).join(".0");return W.map(l.split("."),g=>new Array(20-g.length).join("0")+g).reverse()});for(n&&(o=u-Math.min(a,r)),u-=1;u>=o;){if(i[0][u]>i[1][u])return 1;if(i[0][u]===i[1][u]){if(u===o)return 0;u-=1}else if(i[0][u]{n[o]=u[o]})}return e}static getBrowserAlias(e){return i2[e]}static getBrowserTypeByAlias(e){return zc[e]||""}},Ie=/version\/(\d+(\.?_?\d+)+)/i,s2=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=W.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=W.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=W.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=W.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=W.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=W.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=W.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=W.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=W.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=W.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=W.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=W.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=W.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=W.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=W.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=W.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=W.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=W.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=W.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=W.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=W.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=W.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=W.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=W.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=W.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=W.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=W.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,a=e.search("\\(")!==-1?n:t;return{name:W.getFirstMatch(a,e),version:W.getSecondMatch(a,e)}}}],l2=s2,c2=[{test:[/Roku\/DVP/],describe(e){let t=W.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:At.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=W.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:At.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=W.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=W.getWindowsVersionName(t);return{name:At.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:At.iOS},n=W.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=W.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=W.getMacOSVersionName(t),a={name:At.MacOS,version:t};return n&&(a.versionName=n),a}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=W.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:At.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=W.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=W.getAndroidVersionName(t),a={name:At.Android,version:t};return n&&(a.versionName=n),a}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=W.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:At.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=W.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||W.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||W.getFirstMatch(/\bbb(\d+)/i,e);return{name:At.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=W.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:At.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=W.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:At.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:At.Linux}}},{test:[/CrOS/],describe(){return{name:At.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=W.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:At.PlayStation4,version:t}}}],d2=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=W.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Xe.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Xe.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Xe.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Xe.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Xe.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Xe.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Xe.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=W.getFirstMatch(/(ipod|iphone)/i,e);return{type:Xe.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Xe.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Xe.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Xe.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Xe.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Xe.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Xe.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Xe.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Xe.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Xe.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Xe.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Xe.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Xe.tv}}}],m2=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:qn.Blink};let t=W.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:qn.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:qn.Trident},n=W.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:qn.Presto},n=W.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:qn.Gecko},n=W.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:qn.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:qn.WebKit},n=W.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],g2=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=W.find(l2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=W.find(c2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=W.find(d2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=W.find(m2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return W.assign({},this.parsedResult)}satisfies(e){let t={},n=0,a={},r=0;if(Object.keys(e).forEach(u=>{let o=e[u];typeof o=="string"?(a[u]=o,r+=1):typeof o=="object"&&(t[u]=o,n+=1)}),n>0){let u=Object.keys(t),o=W.find(u,s=>this.isOS(s));if(o){let s=this.satisfies(t[o]);if(s!==void 0)return s}let i=W.find(u,s=>this.isPlatform(s));if(i){let s=this.satisfies(t[i]);if(s!==void 0)return s}}if(r>0){let u=Object.keys(a),o=W.find(u,i=>this.isBrowser(i,!0));if(o!==void 0)return this.compareVersion(a[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),a=e.toLowerCase(),r=W.getBrowserTypeByAlias(a);return t&&r&&(a=r.toLowerCase()),a===n}compareVersion(e){let t=[0],n=e,a=!1,r=this.getBrowserVersion();if(typeof r=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(a=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(a=!0,n=e.substr(1)),t.indexOf(W.compareVersions(r,n,a))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},Uc=g2,p2=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new Uc(e,t)}static parse(e){return new Uc(e).getResult()}static get BROWSER_MAP(){return zc}static get ENGINE_MAP(){return qn}static get OS_MAP(){return At}static get PLATFORMS_MAP(){return Xe}},Na=p2;m();m();var{entries:Yc,setPrototypeOf:Hc,isFrozen:f2,getPrototypeOf:h2,getOwnPropertyDescriptor:b2}=Object,{freeze:kt,seal:pn,create:y2}=Object,{apply:es,construct:ts}=typeof Reflect<"u"&&Reflect;es||(es=function(e,t,n){return e.apply(t,n)});kt||(kt=function(e){return e});pn||(pn=function(e){return e});ts||(ts=function(e,t){return new e(...t)});var x2=Zt(Array.prototype.forEach),qc=Zt(Array.prototype.pop),kr=Zt(Array.prototype.push),Mu=Zt(String.prototype.toLowerCase),Yi=Zt(String.prototype.toString),E2=Zt(String.prototype.match),gn=Zt(String.prototype.replace),T2=Zt(String.prototype.indexOf),C2=Zt(String.prototype.trim),Wt=Zt(RegExp.prototype.test),Sr=w2(TypeError);function Zt(e){return function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r/gm),D2=pn(/\${[\w\W]*}/gm),L2=pn(/^data-[\-\w.\u00B7-\uFFFF]/),M2=pn(/^aria-[\-\w]+$/),Jc=pn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),F2=pn(/^(?:\w+script|data):/i),P2=pn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Qc=pn(/^html$/i),Vc=Object.freeze({__proto__:null,MUSTACHE_EXPR:k2,ERB_EXPR:S2,TMPLIT_EXPR:D2,DATA_ATTR:L2,ARIA_ATTR:M2,IS_ALLOWED_URI:Jc,IS_SCRIPT_OR_DATA:F2,ATTR_WHITESPACE:P2,DOCTYPE_NAME:Qc}),_2=()=>typeof window>"u"?null:window,B2=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,a="data-tt-policy-suffix";t&&t.hasAttribute(a)&&(n=t.getAttribute(a));let r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML(u){return u},createScriptURL(u){return u}})}catch{return null}};function Zc(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_2(),t=D=>Zc(D);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,a=n.currentScript,{document:r}=e,{DocumentFragment:u,HTMLTemplateElement:o,Node:i,Element:s,NodeFilter:c,NamedNodeMap:l=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:g,DOMParser:p,trustedTypes:f}=e,d=s.prototype,b=Du(d,"cloneNode"),C=Du(d,"nextSibling"),h=Du(d,"childNodes"),A=Du(d,"parentNode");if(typeof o=="function"){let D=r.createElement("template");D.content&&D.content.ownerDocument&&(r=D.content.ownerDocument)}let S,U="",{implementation:R,createNodeIterator:y,createDocumentFragment:T,getElementsByTagName:k}=r,{importNode:v}=n,E={};t.isSupported=typeof Yc=="function"&&typeof A=="function"&&R&&R.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:B,ERB_EXPR:P,TMPLIT_EXPR:w,DATA_ATTR:_,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:M}=Vc,{IS_ALLOWED_URI:x}=Vc,L=null,I=Se({},[...Wc,...Ji,...Qi,...Zi,...$c]),$=null,z=Se({},[...Kc,...Xi,...Gc,...Lu]),Y=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),q=null,ae=null,Q=!0,G=!0,pe=!1,he=!0,re=!1,K=!1,se=!1,me=!1,ce=!1,ye=!1,ke=!1,xe=!0,Z=!1,Ae="user-content-",Le=!0,Re=!1,Ne={},st=null,Pt=Se({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),pa=null,Ht=Se({},["audio","video","img","source","image","track"]),Dn=null,Un=Se({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Oe="http://www.w3.org/1998/Math/MathML",qt="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml",He=rt,Yt=!1,_t=null,zn=Se({},[Oe,qt,rt],Yi),mt,mn=["application/xhtml+xml","text/html"],Ue="text/html",H,de=null,$e=r.createElement("form"),Me=function(D){return D instanceof RegExp||D instanceof Function},Pe=function(D){if(!(de&&de===D)){if((!D||typeof D!="object")&&(D={}),D=ja(D),mt=mn.indexOf(D.PARSER_MEDIA_TYPE)===-1?mt=Ue:mt=D.PARSER_MEDIA_TYPE,H=mt==="application/xhtml+xml"?Yi:Mu,L="ALLOWED_TAGS"in D?Se({},D.ALLOWED_TAGS,H):I,$="ALLOWED_ATTR"in D?Se({},D.ALLOWED_ATTR,H):z,_t="ALLOWED_NAMESPACES"in D?Se({},D.ALLOWED_NAMESPACES,Yi):zn,Dn="ADD_URI_SAFE_ATTR"in D?Se(ja(Un),D.ADD_URI_SAFE_ATTR,H):Un,pa="ADD_DATA_URI_TAGS"in D?Se(ja(Ht),D.ADD_DATA_URI_TAGS,H):Ht,st="FORBID_CONTENTS"in D?Se({},D.FORBID_CONTENTS,H):Pt,q="FORBID_TAGS"in D?Se({},D.FORBID_TAGS,H):{},ae="FORBID_ATTR"in D?Se({},D.FORBID_ATTR,H):{},Ne="USE_PROFILES"in D?D.USE_PROFILES:!1,Q=D.ALLOW_ARIA_ATTR!==!1,G=D.ALLOW_DATA_ATTR!==!1,pe=D.ALLOW_UNKNOWN_PROTOCOLS||!1,he=D.ALLOW_SELF_CLOSE_IN_ATTR!==!1,re=D.SAFE_FOR_TEMPLATES||!1,K=D.WHOLE_DOCUMENT||!1,ce=D.RETURN_DOM||!1,ye=D.RETURN_DOM_FRAGMENT||!1,ke=D.RETURN_TRUSTED_TYPE||!1,me=D.FORCE_BODY||!1,xe=D.SANITIZE_DOM!==!1,Z=D.SANITIZE_NAMED_PROPS||!1,Le=D.KEEP_CONTENT!==!1,Re=D.IN_PLACE||!1,x=D.ALLOWED_URI_REGEXP||Jc,He=D.NAMESPACE||rt,Y=D.CUSTOM_ELEMENT_HANDLING||{},D.CUSTOM_ELEMENT_HANDLING&&Me(D.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Y.tagNameCheck=D.CUSTOM_ELEMENT_HANDLING.tagNameCheck),D.CUSTOM_ELEMENT_HANDLING&&Me(D.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Y.attributeNameCheck=D.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),D.CUSTOM_ELEMENT_HANDLING&&typeof D.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Y.allowCustomizedBuiltInElements=D.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),re&&(G=!1),ye&&(ce=!0),Ne&&(L=Se({},[...$c]),$=[],Ne.html===!0&&(Se(L,Wc),Se($,Kc)),Ne.svg===!0&&(Se(L,Ji),Se($,Xi),Se($,Lu)),Ne.svgFilters===!0&&(Se(L,Qi),Se($,Xi),Se($,Lu)),Ne.mathMl===!0&&(Se(L,Zi),Se($,Gc),Se($,Lu))),D.ADD_TAGS&&(L===I&&(L=ja(L)),Se(L,D.ADD_TAGS,H)),D.ADD_ATTR&&($===z&&($=ja($)),Se($,D.ADD_ATTR,H)),D.ADD_URI_SAFE_ATTR&&Se(Dn,D.ADD_URI_SAFE_ATTR,H),D.FORBID_CONTENTS&&(st===Pt&&(st=ja(st)),Se(st,D.FORBID_CONTENTS,H)),Le&&(L["#text"]=!0),K&&Se(L,["html","head","body"]),L.table&&(Se(L,["tbody"]),delete q.tbody),D.TRUSTED_TYPES_POLICY){if(typeof D.TRUSTED_TYPES_POLICY.createHTML!="function")throw Sr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof D.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Sr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=D.TRUSTED_TYPES_POLICY,U=S.createHTML("")}else S===void 0&&(S=B2(f,a)),S!==null&&typeof U=="string"&&(U=S.createHTML(""));kt&&kt(D),de=D}},Ln=Se({},["mi","mo","mn","ms","mtext"]),wn=Se({},["foreignobject","desc","title","annotation-xml"]),Jt=Se({},["title","style","font","a","script"]),_a=Se({},Ji);Se(_a,Qi),Se(_a,v2);let Mi=Se({},Zi);Se(Mi,A2);let cf=function(D){let ie=A(D);(!ie||!ie.tagName)&&(ie={namespaceURI:He,tagName:"template"});let X=Mu(D.tagName),Be=Mu(ie.tagName);return _t[D.namespaceURI]?D.namespaceURI===qt?ie.namespaceURI===rt?X==="svg":ie.namespaceURI===Oe?X==="svg"&&(Be==="annotation-xml"||Ln[Be]):!!_a[X]:D.namespaceURI===Oe?ie.namespaceURI===rt?X==="math":ie.namespaceURI===qt?X==="math"&&wn[Be]:!!Mi[X]:D.namespaceURI===rt?ie.namespaceURI===qt&&!wn[Be]||ie.namespaceURI===Oe&&!Ln[Be]?!1:!Mi[X]&&(Jt[X]||!_a[X]):!!(mt==="application/xhtml+xml"&&_t[D.namespaceURI]):!1},Ba=function(D){kr(t.removed,{element:D});try{D.parentNode.removeChild(D)}catch{D.remove()}},Fi=function(D,ie){try{kr(t.removed,{attribute:ie.getAttributeNode(D),from:ie})}catch{kr(t.removed,{attribute:null,from:ie})}if(ie.removeAttribute(D),D==="is"&&!$[D])if(ce||ye)try{Ba(ie)}catch{}else try{ie.setAttribute(D,"")}catch{}},oc=function(D){let ie,X;if(me)D=""+D;else{let vt=E2(D,/^[\r\n\t ]+/);X=vt&&vt[0]}mt==="application/xhtml+xml"&&He===rt&&(D=''+D+"");let Be=S?S.createHTML(D):D;if(He===rt)try{ie=new p().parseFromString(Be,mt)}catch{}if(!ie||!ie.documentElement){ie=R.createDocument(He,"template",null);try{ie.documentElement.innerHTML=Yt?U:Be}catch{}}let ut=ie.body||ie.documentElement;return D&&X&&ut.insertBefore(r.createTextNode(X),ut.childNodes[0]||null),He===rt?k.call(ie,K?"html":"body")[0]:K?ie.documentElement:ut},ic=function(D){return y.call(D.ownerDocument||D,D,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},df=function(D){return D instanceof g&&(typeof D.nodeName!="string"||typeof D.textContent!="string"||typeof D.removeChild!="function"||!(D.attributes instanceof l)||typeof D.removeAttribute!="function"||typeof D.setAttribute!="function"||typeof D.namespaceURI!="string"||typeof D.insertBefore!="function"||typeof D.hasChildNodes!="function")},xu=function(D){return typeof i=="object"?D instanceof i:D&&typeof D=="object"&&typeof D.nodeType=="number"&&typeof D.nodeName=="string"},Mn=function(D,ie,X){E[D]&&x2(E[D],Be=>{Be.call(t,ie,X,de)})},sc=function(D){let ie;if(Mn("beforeSanitizeElements",D,null),df(D))return Ba(D),!0;let X=H(D.nodeName);if(Mn("uponSanitizeElement",D,{tagName:X,allowedTags:L}),D.hasChildNodes()&&!xu(D.firstElementChild)&&(!xu(D.content)||!xu(D.content.firstElementChild))&&Wt(/<[/\w]/g,D.innerHTML)&&Wt(/<[/\w]/g,D.textContent))return Ba(D),!0;if(!L[X]||q[X]){if(!q[X]&&cc(X)&&(Y.tagNameCheck instanceof RegExp&&Wt(Y.tagNameCheck,X)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(X)))return!1;if(Le&&!st[X]){let Be=A(D)||D.parentNode,ut=h(D)||D.childNodes;if(ut&&Be){let vt=ut.length;for(let Bt=vt-1;Bt>=0;--Bt)Be.insertBefore(b(ut[Bt],!0),C(D))}}return Ba(D),!0}return D instanceof s&&!cf(D)||(X==="noscript"||X==="noembed")&&Wt(/<\/no(script|embed)/i,D.innerHTML)?(Ba(D),!0):(re&&D.nodeType===3&&(ie=D.textContent,ie=gn(ie,B," "),ie=gn(ie,P," "),ie=gn(ie,w," "),D.textContent!==ie&&(kr(t.removed,{element:D.cloneNode()}),D.textContent=ie)),Mn("afterSanitizeElements",D,null),!1)},lc=function(D,ie,X){if(xe&&(ie==="id"||ie==="name")&&(X in r||X in $e))return!1;if(!(G&&!ae[ie]&&Wt(_,ie))&&!(Q&&Wt(O,ie))){if(!$[ie]||ae[ie]){if(!(cc(D)&&(Y.tagNameCheck instanceof RegExp&&Wt(Y.tagNameCheck,D)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(D))&&(Y.attributeNameCheck instanceof RegExp&&Wt(Y.attributeNameCheck,ie)||Y.attributeNameCheck instanceof Function&&Y.attributeNameCheck(ie))||ie==="is"&&Y.allowCustomizedBuiltInElements&&(Y.tagNameCheck instanceof RegExp&&Wt(Y.tagNameCheck,X)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(X))))return!1}else if(!Dn[ie]&&!Wt(x,gn(X,M,""))&&!((ie==="src"||ie==="xlink:href"||ie==="href")&&D!=="script"&&T2(X,"data:")===0&&pa[D])&&!(pe&&!Wt(N,gn(X,M,"")))&&X)return!1}return!0},cc=function(D){return D.indexOf("-")>0},dc=function(D){let ie,X,Be,ut;Mn("beforeSanitizeAttributes",D,null);let{attributes:vt}=D;if(!vt)return;let Bt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:$};for(ut=vt.length;ut--;){ie=vt[ut];let{name:lt,namespaceURI:Ra}=ie;if(X=lt==="value"?ie.value:C2(ie.value),Be=H(lt),Bt.attrName=Be,Bt.attrValue=X,Bt.keepAttr=!0,Bt.forceKeepAttr=void 0,Mn("uponSanitizeAttribute",D,Bt),X=Bt.attrValue,Bt.forceKeepAttr||(Fi(lt,D),!Bt.keepAttr))continue;if(!he&&Wt(/\/>/i,X)){Fi(lt,D);continue}re&&(X=gn(X,B," "),X=gn(X,P," "),X=gn(X,w," "));let mc=H(D.nodeName);if(lc(mc,Be,X)){if(Z&&(Be==="id"||Be==="name")&&(Fi(lt,D),X=Ae+X),S&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!Ra)switch(f.getAttributeType(mc,Be)){case"TrustedHTML":{X=S.createHTML(X);break}case"TrustedScriptURL":{X=S.createScriptURL(X);break}}try{Ra?D.setAttributeNS(Ra,lt,X):D.setAttribute(lt,X),qc(t.removed)}catch{}}}Mn("afterSanitizeAttributes",D,null)},mf=function D(ie){let X,Be=ic(ie);for(Mn("beforeSanitizeShadowDOM",ie,null);X=Be.nextNode();)Mn("uponSanitizeShadowNode",X,null),!sc(X)&&(X.content instanceof u&&D(X.content),dc(X));Mn("afterSanitizeShadowDOM",ie,null)};return t.sanitize=function(D){let ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X,Be,ut,vt;if(Yt=!D,Yt&&(D=""),typeof D!="string"&&!xu(D))if(typeof D.toString=="function"){if(D=D.toString(),typeof D!="string")throw Sr("dirty is not a string, aborting")}else throw Sr("toString is not a function");if(!t.isSupported)return D;if(se||Pe(ie),t.removed=[],typeof D=="string"&&(Re=!1),Re){if(D.nodeName){let Ra=H(D.nodeName);if(!L[Ra]||q[Ra])throw Sr("root node is forbidden and cannot be sanitized in-place")}}else if(D instanceof i)X=oc(""),Be=X.ownerDocument.importNode(D,!0),Be.nodeType===1&&Be.nodeName==="BODY"||Be.nodeName==="HTML"?X=Be:X.appendChild(Be);else{if(!ce&&!re&&!K&&D.indexOf("<")===-1)return S&&ke?S.createHTML(D):D;if(X=oc(D),!X)return ce?null:ke?U:""}X&&me&&Ba(X.firstChild);let Bt=ic(Re?D:X);for(;ut=Bt.nextNode();)sc(ut)||(ut.content instanceof u&&mf(ut.content),dc(ut));if(Re)return D;if(ce){if(ye)for(vt=T.call(X.ownerDocument);X.firstChild;)vt.appendChild(X.firstChild);else vt=X;return($.shadowroot||$.shadowrootmod)&&(vt=v.call(n,vt,!0)),vt}let lt=K?X.outerHTML:X.innerHTML;return K&&L["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&Wt(Qc,X.ownerDocument.doctype.name)&&(lt=" -`+lt),re&&(lt=gn(lt,B," "),lt=gn(lt,P," "),lt=gn(lt,w," ")),S&&ke?S.createHTML(lt):lt},t.setConfig=function(D){Pe(D),se=!0},t.clearConfig=function(){de=null,se=!1},t.isValidAttribute=function(D,ie,X){de||Pe({});let Be=H(D),ut=H(ie);return lc(Be,ut,X)},t.addHook=function(D,ie){typeof ie=="function"&&(E[D]=E[D]||[],kr(E[D],ie))},t.removeHook=function(D){if(E[D])return qc(E[D])},t.removeHooks=function(D){E[D]&&(E[D]=[])},t.removeAllHooks=function(){E={}},t}var _e=Zc();var R2=Au.alert;m();m();var Xc={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",curentPlan:"\u5F53\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52A8\u7EED\u671F",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",sponsorLabel:"$1 \u8D77\u8D5E\u52A9\u5F00\u53D1\u8005",help:"\u5E2E\u52A9",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D\uFF0C\u518D\u70B9\u51FB\u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D\u5373\u53EF\u8BBE\u7F6E",browserShortcutsNoteForChrome:"\u7C7BChrome \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762\uFF0C\u5728`\u7BA1\u7406\u5FEB\u6377\u952E`\u9762\u677F(`chrome://extensions/shortcuts`)\u8BBE\u7F6E\uFF0C\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8DF3\u8F6C\u5230\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E\u683C\u5F0F\u4E3A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1: \u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1 & PDF\u6587\u6863\u7FFB\u8BD1","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7F51\u9875\u53CC\u8BED\u7FFB\u8BD1\u6269\u5C55\uFF0C\u540C\u65F6\u652F\u6301 PDF \u7FFB\u8BD1\uFF0C\u53CC\u8BED Epub \u7535\u5B50\u4E66\u5236\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u817E\u8BAF\u7FFB\u8BD1\u7B49\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\uFF0C\u514D\u8D39\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8BD1\u5E76\u9690\u85CF\u539F\u6587/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.toggleTranslationMask":"\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.donateContext":"\u4E86\u89E3\u8D5E\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5219\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875(\u4EC5\u8BD1\u6587)/\u663E\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7","fingers.0":"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478",mouseHoldKey:"+ {key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoverHoldKey:"\u9F20\u6807\u60AC\u505C\u540C\u65F6\u6309\u4E0B\u5FEB\u6377\u952E\u7FFB\u8BD1\u6BB5\u843D","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u6587\u6863",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",goAdvancedSettings:"\u53BB\u8FDB\u9636\u8BBE\u7F6E\u9875",goAdvancedInterfaceSettings:"\u53BB\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u8BBE\u7F6E\u9875\u9762",advanced:"\u8FDB\u9636\u8BBE\u7F6E",advancedDescription:"\u4E00\u822C\u65E0\u9700\u8BBE\u7F6E\uFF0C\u4FDD\u6301\u9ED8\u8BA4\u5373\u53EF\u3002\u4EC5\u5BF9\u4E8E\u66F4\u4E13\u4E1A\u7684\u7528\u6237\uFF0C\u63D0\u4F9B\u66F4\u4E2A\u6027\u5316\u7684\u8BBE\u7F6E\u9879\u3002",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00","display both the original text and the translation":"\u540C\u65F6\u663E\u793A\u539F\u6587\u548C\u8BD1\u6587","keyboard shortcuts":"\u952E\u76D8\u5FEB\u6377\u952E",modify:"\u4FEE\u6539\u5FEB\u6377\u952E",reset:"\u91CD\u7F6E",close:"\u5173\u95ED",homepage:"\u4E3B\u9875",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",changeToOnlyTranslationMode:"\u5207\u6362\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u5207\u6362\u4E3A\u53CC\u8BED\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",unknownError:"\u672A\u77E5\u9519\u8BEF",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",needActionForOptions:"(\u9700\u8BBE\u7F6E)",translationEngine:"\u5F15\u64CE\u9009\u9879",sourceLanguage:"\u539F\u6587\u8BED\u8A00",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",forThisSite:"\u5F53\u524D\u7F51\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1 {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8BD1 {language}",alwaysTranslateSomeSite:"\u603B\u662F\u7FFB\u8BD1 {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8BD1 {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u6DFB\u52A0",default:"\u9ED8\u8BA4",forThisLanguage:"\u9488\u5BF9\u8BE5\u8BED\u8A00\uFF1A","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91","translate other languages into specific language":"\u5C06\u5176\u4ED6\u8BED\u8A00\u7FFB\u8BD1\u4E3A\u4F60\u8BBE\u7F6E\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1",language:"\u8BED\u8A00","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",Error:"\u9519\u8BEF",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",interface:"\u754C\u9762\u8BBE\u7F6E",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8BD1\u9875\u9762\u6807\u9898","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1",enableUserscriptPagePopup:"\u5728\u9875\u9762\u4E0A\u663E\u793A\u60AC\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528\u5FEB\u6377\u952E/{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8BD1\u6587\u6837\u5F0F",currentUrl:"\u5F53\u524D\u7F51\u5740",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664","languages.auto":"\u81EA\u52A8\u68C0\u6D4B",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",upload:"\u4E0A\u4F20",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",download:"\u4E0B\u8F7D",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",deleteFail:"\u5220\u9664\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",backupToCloudDescription:"\u624B\u52A8\u4E0A\u4F20\u6216\u6062\u590D\u5907\u4EFD\u6587\u4EF6\uFF0C\u6700\u591A\u5141\u8BB83\u4E2A\u4E0D\u540C\u7684\u5907\u4EFD",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",updatedAt:"\u66F4\u65B0\u4E8E {date}",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u9891\u9053",joinTelegramChannel:"\u5173\u6CE8 Telegram \u9891\u9053\u83B7\u53D6\u6700\u65B0\u66F4\u65B0",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",autoSync:"\u81EA\u52A8\u5B9A\u65F6\u540C\u6B65",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863","edit border color":"\u4FEE\u6539\u8FB9\u6846\u989C\u8272",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",enableSubtitle:"\u5F00\u542F\u5B57\u5E55\u7FFB\u8BD1",enableSubtitleDescription:"\u9488\u5BF9 youtube \u7B49\u7F51\u7AD9\u7684\u5B57\u5E55\u533A\u57DF\u5F00\u542F\u7FFB\u8BD1",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",enableSearchEnhancement:"\u542F\u7528\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A",enableSearchEnhancementDescription:"\u5F00\u542F\u540E\uFF0C\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\u793E\u533A\uFF09\u53F3\u8FB9\u680F\u81EA\u52A8\u663E\u793A\u5BF9\u5E94\u82F1\u6587\u5173\u952E\u8BCD\u7684\u201C\u8C37\u6B4C\u65B0\u95FB\u201D\u641C\u7D22\u7ED3\u679C\u3002",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerMinute":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u5206\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u8350\uFF09, \u5C06\u4F1A\u5728\u5355\u72EC\u4F5C\u4E3A\u4E00\u6BB5\u53D1\u9001\u7ED9 OpenAI","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740",enabledExtension:"\u542F\u7528\u6269\u5C55",clickToDisableExtension:"\u70B9\u51FB\u7981\u7528\u6269\u5C55",clickToEnableExtension:"\u70B9\u51FB\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",modifyMouseHoverKey:"\u4FEE\u6539\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u8BBE\u7F6E",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",disableTint:"* \u4F60\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u542F\u7528\u3002",searchEnhancementNotes:"\u6211\u4EEC\u53D1\u73B0\uFF0C\u4E2D\u6587\u5173\u952E\u8BCD\u548C\u82F1\u6587\u5173\u952E\u8BCD\u7684\u65B0\u95FB\u7ED3\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u542F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u529F\u80FD\u540E\uFF0C\u6211\u4EEC\u4F1A\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\u7F51\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52A8\u7528\u82F1\u6587\u4E3A\u4F60\u641C\u7D22\u540C\u6837\u7684\u5173\u952E\u8BCD\u5E76\u5C55\u793A\u5728\u53F3\u4FA7\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8BE5\u529F\u80FD\u7684\u8BDD\uFF0C\u53EF\u4EE5\u9009\u62E9\u7981\u7528\u5B83\u3002",option:"\u8BBE\u7F6E",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",needLoginAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u81EA\u5B9A\u4E49)",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",onetime_7day:"7 \u5929\u4F53\u9A8C\u5305",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradePlan:"\u70B9\u6B64\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL \u548C OpenAI \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8BD1",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u8BBE\u7F6E\u5176\u4ED6\u5FEB\u6377\u952E\u6765\u89E6\u53D1\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1"};var e4={nologin:"\u672A\u767B\u9304",login:"\u767B\u9304",manageAccount:"\u7BA1\u7406\u8CEC\u6236",logout:"\u9000\u51FA",curentPlan:"\u7576\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u671F",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u64CA\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u8AAA\u660E",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u9644\u52A0\u5143\u4EF6\u7BA1\u7406\u9801\u9762 \u300Cabout:addons\u300D\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u5716\u793A\u300D\uFF0C\u518D\u9EDE\u9078\u300C\u7BA1\u7406\u64F4\u5145\u5957\u4EF6\u5FEB\u901F\u9375\u300D\u5373\u53EF\u8A2D\u5B9A",browserShortcutsNoteForChrome:"Chromium \u6838\u5FC3\u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u64F4\u5145\u529F\u80FD\u7BA1\u7406\u9801\u9762\uFF0C\u5728\u300C\u9375\u76E4\u5FEB\u901F\u9375\u300D\u9801\u9762(chrome://extensions/shortcuts)\u8A2D\u5B9A\uFF0C\u9EDE\u9078\u4E0B\u65B9\u6309\u9215\u524D\u5F80\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u901F\u9375\u683C\u5F0F\u70BA\uFF1A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F: \u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F & PDF\u6587\u6A94\u7FFB\u8B6F","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7DB2\u9801\u96D9\u8A9E\u7FFB\u8B6F\u64F4\u5C55\uFF0C\u540C\u6642\u652F\u6301 PDF \u7FFB\u8B6F\uFF0C\u96D9\u8A9E Epub \u96FB\u5B50\u66F8\u88FD\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u9A30\u8A0A\u7FFB\u8B6F\u7B49\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF0C\u514D\u8CBB\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8B6F\u4E26\u96B1\u85CF\u539F\u6587/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.toggleTranslationMask":"\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.donateContext":"\u4E86\u89E3\u8D0A\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u5247\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u6642\u89F8\u78B0\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801(\u50C5\u8B6F\u6587)/\u986F\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304","fingers.0":"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478",mouseHoldKey:"+ {key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u6377\u9375(\u6253\u958B\u8A2D\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoverHoldKey:"\u9F20\u6A19\u6ED1\u904E\u540C\u6642\u6309\u4E0B X \u9375\u7FFB\u8B6F\u6BB5\u843D","mouse-translate":"\u9F20\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",goAdvancedSettings:"\u524D\u5F80\u9032\u968E\u8A2D\u5B9A\u9801\u9762",goAdvancedInterfaceSettings:"\u524D\u5F80\u81EA\u8A02\u8A2D\u5B9A\u9801\u9762",advanced:"\u9032\u968E\u8A2D\u5B9A",advancedDescription:"\u6B63\u5E38\u60C5\u6CC1\u7121\u9700\u8A2D\u5B9A\uFF0C\u4FDD\u6301\u9810\u8A2D\u5373\u53EF\u3002\u50C5\u91DD\u5C0D\u66F4\u5C08\u696D\u7684\u4F7F\u7528\u8005\uFF0C\u63D0\u4F9B\u66F4\u500B\u4EBA\u5316\u7684\u8A2D\u5B9A\u9805\u76EE\u3002",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00","display both the original text and the translation":"\u540C\u6642\u986F\u793A\u539F\u6587\u548C\u8B6F\u6587","keyboard shortcuts":"\u9375\u76E4\u5FEB\u901F\u9375",modify:"\u8B8A\u66F4\u5FEB\u901F\u9375",reset:"\u91CD\u8A2D",close:"\u95DC\u9589",homepage:"\u9996\u9801",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",changeToOnlyTranslationMode:"\u5207\u63DB\u70BA\u50C5\u986F\u793A\u8B6F\u6587",changeToDualTranslationMode:"\u5207\u63DB\u70BA\u96D9\u8A9E\u7FFB\u8B6F",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:"\u672A\u77E5\u7684\u932F\u8AA4",canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u9078\u9805",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",needActionForOptions:"(\u9700\u8A2D\u5B9A)",translationEngine:"\u5F15\u64CE\u9078\u9805",sourceLanguage:"\u539F\u6587\u8A9E\u8A00",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",forThisSite:"\u7576\u524D\u7DB2\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8B6F {language}",alwaysTranslateSomeSite:"\u7E3D\u662F\u7FFB\u8B6F {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8B6F {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u65B0\u589E",default:"\u9810\u8A2D",forThisLanguage:"\u91DD\u5C0D\u8A72\u8A9E\u8A00\uFF1A","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F","translate other languages into specific language":"\u5C07\u5176\u5B83\u8A9E\u8A00\u7FFB\u8B6F\u70BA\u4F60\u8A2D\u5B9A\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9",language:"\u8A9E\u8A00","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",Error:"\u932F\u8AA4",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",interface:"\u4ECB\u9762\u8A2D\u5B9A",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65",syncToAccount:"\u540C\u6B65\u5230\u8CEC\u6236",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u8CEC\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u8A2D\u5099\u4E4B\u9593\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u8CEC\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u8CEC\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8B6F","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9E\u99AC\u905C\u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8B6F\u9801\u9762\u6A19\u984C","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F",enableUserscriptPagePopup:"\u5728\u9801\u9762\u4E0A\u986F\u793A\u61F8\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528\u5FEB\u901F\u9375/{touch}\u518D\u6B21\u986F\u793A\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5EFA\u8B70\u5C07\u672C\u8A2D\u5B9A\u9801\u9762\u52A0\u5165\u81F3\u6211\u7684\u6700\u611B","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8B6F\u6587\u6A23\u5F0F",currentUrl:"\u76EE\u524D\u7DB2\u5740",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6E96\u3002",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",upload:"\u4E0A\u50B3",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",download:"\u4E0B\u8F09",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",deleteFail:"\u522A\u9664\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",backupToCloudDescription:"\u624B\u52D5\u4E0A\u50B3\u6216\u9084\u539F\u5099\u4EFD\u6A94\u6848\uFF0C\u6700\u591A\u5141\u8A31 3 \u500B\u4E0D\u540C\u7684\u5099\u4EFD",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",updatedAt:"\u66F4\u65B0\u65BC {date}",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u4EEC\u7684<3>Twitter\uFF0C<4>Telegram \u983B\u9053\u4EE5\u53CA\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u90F5\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u983B\u9053",joinTelegramChannel:"\u95DC\u6CE8 Telegram \u983B\u9053\u77AD\u89E3\u66F4\u65B0\u8CC7\u8A0A",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",autoSync:"\u81EA\u52D5\u5B9A\u6642\u540C\u6B65",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6","edit border color":"\u8B8A\u66F4\u908A\u6846\u8272\u5F69",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",enableSubtitle:"\u958B\u555F\u5B57\u5E55\u7FFB\u8B6F",enableSubtitleDescription:"\u91DD\u5C0D youtube \u7B49\u7DB2\u7AD9\u7684\u5B57\u5E55\u5340\u57DF\u958B\u555F\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",enableSearchEnhancement:"\u958B\u555F\u641C\u7D22\u589E\u5F37",enableSearchEnhancementDescription:"\u4E2D\u6587\u641C\u7D22\u8C37\u6B4C\u6703\u5728\u53F3\u908A\u51FA\u73FE\u82F1\u6587\u7248\u8C37\u6B4C\u65B0\u805E",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerMinute":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u5206\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u4EFD\u50B3\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u85A6\uFF09, \u5C07\u6703\u5728\u55AE\u7368\u4F5C\u70BA\u4E00\u6BB5\u767C\u9001\u7D66 OpenAI","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u50B3\u9001\u767C\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",clickToDisableExtension:"\u9EDE\u9078\u505C\u7528\u5957\u4EF6",clickToEnableExtension:"\u9EDE\u9078\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u9F20\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u7F6E\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u5B57\u7B26\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8B58\u5225\u70BA\u89F8\u767C\u5B57\u7B26\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u7981\u7528\u78BA\u8A8D",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",disableTint:"* \u60A8\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u555F\u7528\u3002",searchEnhancementNotes:"\u6211\u5011\u767C\u73FE\uFF0C\u4E2D\u6587\u95DC\u9375\u8A5E\u548C\u82F1\u6587\u95DC\u9375\u8A5E\u7684\u65B0\u805E\u7D50\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u555F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u4FE1\u606F\u589E\u5F37\u529F\u80FD\u5F8C\uFF0C\u6211\u5011\u6703\u5728\u652F\u6301\u7684\u7DB2\u7AD9\uFF08\u8C37\u6B4C\u65B0\u805E\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u95DC\u9375\u8A5E\uFF09\uFF0C\u96EA\u7403\uFF0C\u6771\u65B9\u8CA1\u5BCC\u7DB2\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52D5\u7528\u82F1\u6587\u70BA\u4F60\u641C\u7D22\u540C\u6A23\u7684\u95DC\u9375\u8A5E\u4E26\u5C55\u793A\u5728\u53F3\u5074\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8A72\u529F\u80FD\u7684\u8A71\uFF0C\u53EF\u4EE5\u9078\u64C7\u7981\u7528\u5B83\u3002",option:"\u9078\u9805",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL \u548C OpenAI \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8B6F",currentAccount:"\u7576\u524D\u8CEC\u6236"};var t4={nologin:"Not logged in",login:"Login",manageAccount:"Manage Account",logout:"Logout",curentPlan:"Current Plan",endAt:"Expires",endAuto:"Auto Renew",lineBreakMaxTextCount:"Maximum number of characters allowed per sentence after line break","translate-pdf":"Click to translate PDF","noSupportTranslate-pdf":"The script is not supported, please use a plugin.","translate-firefox-local-pdf":"Click to upload PDF",enableLineBreak:"Whether to turn on automatic line wrapping for long paragraphs",sponsorLabel:"Sponsoring developers from $1 (monthly or one-time)",help:"Help",browserShortcutsNoteForFirefox:`To modify the shortcut key in Firefox browser, you need to open the extension management page 'about: addons', then click "Settings", and then click "Management shortcut key" to set it`,browserShortcutsNoteForChrome:"To modify the shortcut key in Chrome browser, you need to open the extension management page` chrome://extensions/shortcuts `) Settings, click the button below to jump to the shortcut key management page.",browserShortcutsSucks:"Please enter the shortcut key manually in the format:",enableLineBreakDescription:"After opening, a line break will be inserted at the end of each sentence in a long paragraph for easy reading","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate: Web Page&PDF Translation","browser.brandDescription":"Bilingual web page translation, also supports PDF translation, bilingual Epub eBook translation, free to use.","browser.toggleTranslatePage":"Toggle Translate Page","browser.toggleTranslateTheWholePage":"Toggle Translate the Whole Page","browser.toggleOnlyTransation":"Toggle Translate and Hide Original Text","browser.toggleTranslateToThePageEndImmediately":"Toggle Translate to the Bottom of the Page Immediately","browser.toggleTranslateTheMainPage":"Toggle Translate the Main Page","browser.openOptionsPage":"Open Settings Page","browser.toggleTranslationMask":"Toggle translation mask style","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-book","browser.openEbookBuilder":"Make Dual EPUB ebook","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.donateContext":"Sponsor Benefits","browser.translateLocalSubtitleFile":"Translate Subtitle File",confirmResetConfig:"Are you sure you want to reset the settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Create right button menu",toggleBeta:"Enable Beta experimental features",betaDescription:"Enable features that are still experimental, and translation services that are in testing. Join the <1>Telegram group to learn more.",translationLineBreakSettingDescription:"The always line break feature is suitable for layouts with less content, making the layout more neat and tidy. (Use smart line breaks for long paragraphs with more content (more than {count} characters) for saving space)",tempTranslateDomainTitle:"Open the translation time temporarily",tempTranslateDomainDescription:"When a page is translated manually, turn it temporarily on as automatic translation",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",toggleTranslatePageWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide translation display",toggleTranslationMaskWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide the blur effect of the translation",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"Multi-finger touch to show/hide only translation display",addUrlDescription:"The domain name is available and wildcard is supported e.g.: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import configuration from file",export:"Export to file",toggleDebug:"Print debug logs on the console","fingers.0":"Close","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch",mouseHoldKey:"+ {key} translate this paragraph",mouseHoldKeyAuto:"Translate the paragraph directly",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate this paragraph",mouseHoverHoldKey:"Mouse over and press X key to translate paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"All settings reset successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",goAdvancedSettings:"Go to Advanced Settings Page",goAdvancedInterfaceSettings:"Go to Advanced Custom Settings Page",advanced:"Advanced",advancedDescription:"Normally no settings are needed, keep the default. More personalized settings are provided for professional users only.",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"Translate to the bottom of the page immediately after opening the page?",feedback:"Feedback",toggleTranslatePage:"Toggle Translate",translateToThePageEndImmediatelyDescription:"Enabled will translate from the top to the bottom of the page immediately after opening. Disable will translate while reading. (Not recommended to enable)","translate all areas of the page":"Whether to translate all areas of the web page",translationAreaDescription:"When enabled, all areas of the entire web page will be translated. Disabled will use the default smart recognition and translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Directly translate the number of characters in front of the page without waiting to scroll to the visible area","interface language":"Interface language","display both the original text and the translation":"Display both the original text and the translation","keyboard shortcuts":"Keyboard shortcuts",modify:"Edit",reset:"Reset",close:"Close",homepage:"Home Page",more:"More",moreOptions:"Expand more custom settings",translateTheWholePage:"Translate the whole page area",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Dual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"Main areas of intelligent translation","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly implement the interface of the Greasemonkey extension, please use another browser that <1>supports the Greasemonkey extension such as (Firefox Nightly version)",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:"Unknown Error",canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha enabled successfully",disableAlphaSuccess:"Alpha has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(to set up)",goSettings:"to set up",needActionForOptions:"(need to set)",translationEngine:"Engine Options",sourceLanguage:"Original language",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",forThisSite:"Site:",alwaysTranslateSomeLanguage:"Always translate {language}",neverTranslateSomeLanguage:"Never translate {language}",alwaysTranslateSomeSite:"Always translate {hostname}",neverTranslateSomeSite:"Never translate {hostname}",alwaysTranslateSomeSiteOrWildSite:"Always translate this site",alwaysTranslateSomePage:"Always translate this page",add:"Add",default:"Default",forThisLanguage:"For This Language:","add url":"Add URL",edit:"Edit","translate other languages into specific language":"Translate other languages into the language you set","select translation service":"Select a translation service",language:"Language","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",Error:"Error",allowCacheTranslations:"Enable local translation caching (reduce translation requests for duplicate paragraphs)","translation display":"Translation display style","select diplay style":"Please refer to the following examples",interface:"Interface Settings",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dashed underline","translationTheme.dotted":"Dotted Underline","translationTheme.dashedBorder":"Dashed Border","translationTheme.solidBorder":"Dashed Border","translationTheme.underline":"Straight underline","translationTheme.mask":"Blur effect","translationTheme.opacity":"Opacity effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weakening","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dashed underline","translationTheme.nativeDashed":"System Dash Underline","translationTheme.nativeDotted":"System Dotted Underline","translationTheme.nativeUnderline":"System Straight Line Underline","translationTheme.wavy":"Squiggle","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeeplX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"Translate page title","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped",enableUserscriptPagePopup:"Always show Popup windows on the page",enableUserscriptPagePopupDescription:"Three-finger touch to show the Popup.","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",currentUrl:"Current URL",confirm:"Save",cancel:"Cancel",delete:"Delete","languages.auto":"Detect Language",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",authFail:"Authorization Failed",syncTitle:"Please select a file operation",import_hint:"Import",upload:"Upload",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",download:"Download",importSuccess:"Upload Success",importFail:"Import Failed",deleteFail:"Delete Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",backupToCloudDescription:"Upload or restore backup files manually, up to 3 different backups",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",updatedAt:"Updated at {date}",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. You can choose to subscribe to <6>Pro membership to use the out-of-the-box DeepL and OpenAI translation.

You can also follow out <3>Twitter, <4>Telegram Channel, and <5>Email Subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free and we hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. ",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",qqCommunities:"QQ Channel",joinTelegramChannel:"Subscribe to our Telegram channel to get the latest updates",feedbackAndJoin:"Feedback",autoSync:"Auto-Time Sync",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization","edit border color":"Edit border color",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",enableSubtitle:"enableSubtitleTranslation",enableSubtitleDescription:"Enable translations for subtitle areas on sites like youtube",isTranslateTitleDescription:"When enabled, the page title will be translated",enableSearchEnhancement:"Enable Search Enhancement",enableSearchEnhancementDescription:'After enabling, the right sidebar will automatically display "Google News" search results for corresponding English keywords on supported websites (such as Google News, Google Search (partial keywords), Xueqiu, East Money, Futu, Tiger Community).',verifyService:"Verify service",verified:"Successful","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerMinute":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next minute. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"Requests exceed this limit will be queued until the next seconds.","description.prompt":"Send as a user to OpenAI conversation, where {{text}} indicates the text of the paragraph,{{from}} indicates the language of the paragraph,{{to}} indicates the target language, you can omit {{text}}, if so, it'll be sent as a separated message","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"Send the conversation to OpenAI as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the original language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"Default is\uFF1Ageneral. Only set up if there is an API console open domain translation, support fields see <1>Here ","field.scene":"Scene","description.scene":"Default is\uFF1Ageneral. Only set up if there is an API console open Machine Translation Professional, support fields see<1>Here","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please provide a URL with the specific path.",enabledExtension:"Enable extensions",clickToDisableExtension:"Click to disable extension",clickToEnableExtension:"Click to enable the extension",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter customization content",inputOptions:"Writing",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter for translating part of the input box.",inputStartingTriggerKeyDescription:"When you don't need to translate the entire input box, the delimiter allows you to only translate the portion from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means only translating the portion from {startingKey}ja to the end of the input box.",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting is no prefix required, the partial text translation function of the input box cannot be used temporarily.",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Start the translation by quickly pressing 3 times {trailingKey}.",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time (milliseconds) for the input to end the combo trigger",spaceKey:"",noneKey:"Translate the entire text box without prefixes",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement in the following URL",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",clickToSeeQuickDemo:"Click to expand the 30s tutorial video",inputHelperInfo:`Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001". +`,PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",OPTIONS_URL:"https://dash.immersivetranslate.com/",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",MOCK:"0",DEBUG:"0",INSTALL_FROM:"chrome_zip"}});var Lm=Ef((Mo,Yr)=>{m();(function(){var e;function t(d){var b,C,h="",A=-1,S;if(d&&d.length)for(S=d.length;(A+=1)>>6&31,128|b&63):b<=65535?h+=String.fromCharCode(224|b>>>12&15,128|b>>>6&63,128|b&63):b<=2097151&&(h+=String.fromCharCode(240|b>>>18&7,128|b>>>12&63,128|b>>>6&63,128|b&63));return h}function n(d){var b,C,h,A,S,U=[],R;if(b=C=h=A=S=0,d&&d.length)for(R=d.length,d+="";b191&&h<224?(A=d.charCodeAt(b+1),U[C]=String.fromCharCode((h&31)<<6|A&63),b+=2):(A=d.charCodeAt(b+1),S=d.charCodeAt(b+2),U[C]=String.fromCharCode((h&15)<<12|(A&63)<<6|S&63),b+=3);return U.join("")}function a(d,b){var C=(d&65535)+(b&65535),h=(d>>16)+(b>>16)+(C>>16);return h<<16|C&65535}function r(d,b){return d<>>32-b}function u(d,b){for(var C=b?"0123456789ABCDEF":"0123456789abcdef",h="",A,S=0,U=d.length;S>>4&15)+C.charAt(A&15);return h}function o(d){var b,C=d.length,h="";for(b=0;b>>8&255);return h}function i(d){var b,C=d.length,h="";for(b=0;b>>8&255,d.charCodeAt(b)&255);return h}function s(d){var b,C=d.length*32,h="";for(b=0;b>5]>>>24-b%32&255);return h}function c(d){var b,C=d.length*32,h="";for(b=0;b>5]>>>b%32&255);return h}function l(d){var b,C=d.length*8,h=Array(d.length>>2),A=h.length;for(b=0;b>5]|=(d.charCodeAt(b/8)&255)<>2),A=h.length;for(b=0;b>5]|=(d.charCodeAt(b/8)&255)<<24-b%32;return h}function p(d,b){var C=b.length,h=Array(),A,S,U,R,y,T,k,v;for(T=Array(Math.ceil(d.length/2)),R=T.length,A=0;A0;){for(y=Array(),U=0,A=0;A0||S>0)&&(y[y.length]=S);h[h.length]=U,T=y}for(k="",A=h.length-1;A>=0;A--)k+=b.charAt(h[A]);for(v=Math.ceil(d.length*8/(Math.log(b.length)/Math.log(2))),A=k.length;Ad.length*8?h+=b:h+=C.charAt(R>>>6*(3-U)&63);return h}e={VERSION:"1.0.6",Base64:function(){var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b="=",C=!1,h=!0;this.encode=function(A){var S,U,R,y="";for(b=b||"=",A=h?t(A):A,len=A.length,S=0;Slen*8?y+=b:y+=d.charAt(R>>>6*(3-U)&63);return y},this.decode=function(A){var S,U,R,y,T,k,v,E,B,P,w="",_=[];if(!A)return A;S=P=0,A=A.replace(new RegExp("\\"+b,"gi"),"");do T=d.indexOf(A.charAt(S++)),k=d.indexOf(A.charAt(S++)),v=d.indexOf(A.charAt(S++)),E=d.indexOf(A.charAt(S++)),B=T<<18|k<<12|v<<6|E,U=B>>16&255,R=B>>8&255,y=B&255,P+=1,v===64?_[P]=String.fromCharCode(U):E===64?_[P]=String.fromCharCode(U,R):_[P]=String.fromCharCode(U,R,y);while(S>>8^C;return(b^-1)>>>0},MD5:function(d){var b=d&&typeof d.uppercase=="boolean"?d.uppercase:!1,C=d&&typeof d.pad=="string"?d.pad:"=",h=d&&typeof d.utf8=="boolean"?d.utf8:!0;this.hex=function(E){return u(A(E,h),b)},this.b64=function(E){return f(A(E),C)},this.any=function(E,B){return p(A(E,h),B)},this.raw=function(E){return A(E,h)},this.hex_hmac=function(E,B){return u(S(E,B),b)},this.b64_hmac=function(E,B){return f(S(E,B),C)},this.any_hmac=function(E,B,P){return p(S(E,B),P)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(E){return typeof E=="boolean"&&(b=E),this},this.setPad=function(E){return C=E||C,this},this.setUTF8=function(E){return typeof E=="boolean"&&(h=E),this};function A(E){return E=h?t(E):E,c(U(l(E),E.length*8))}function S(E,B){var P,w,_,O,N;for(E=h?t(E):E,B=h?t(B):B,P=l(E),P.length>16&&(P=U(P,E.length*8)),w=Array(16),_=Array(16),N=0;N<16;N+=1)w[N]=P[N]^909522486,_[N]=P[N]^1549556828;return O=U(w.concat(l(B)),512+B.length*8),c(U(_.concat(O),512+128))}function U(E,B){var P,w,_,O,N,M=1732584193,x=-271733879,L=-1732584194,I=271733878;for(E[B>>5]|=128<>>9<<4)+14]=B,P=0;P16&&(v=U(v,T.length*8)),E=Array(16),B=Array(16),P=0;P<16;P+=1)E[P]=v[P]^909522486,B[P]=v[P]^1549556828;return w=U(E.concat(g(k)),512+k.length*8),s(U(B.concat(w),512+160))}function U(T,k){var v,E,B,P,w,_,O,N,M=Array(80),x=1732584193,L=-271733879,I=-1732584194,$=271733878,z=-1009589776;for(T[k>>5]|=128<<24-k%32,T[(k+64>>9<<4)+15]=k,v=0;v16&&(z=M(z,x.length*8));$<16;$+=1)Y[$]=z[$]^909522486,q[$]=z[$]^1549556828;return I=M(Y.concat(g(L)),512+L.length*8),s(M(q.concat(I),512+256))}function R(x,L){return x>>>L|x<<32-L}function y(x,L){return x>>>L}function T(x,L,I){return x&L^~x&I}function k(x,L,I){return x&L^x&I^L&I}function v(x){return R(x,2)^R(x,13)^R(x,22)}function E(x){return R(x,6)^R(x,11)^R(x,25)}function B(x){return R(x,7)^R(x,18)^y(x,3)}function P(x){return R(x,17)^R(x,19)^y(x,10)}function w(x){return R(x,28)^R(x,34)^R(x,39)}function _(x){return R(x,14)^R(x,18)^R(x,41)}function O(x){return R(x,1)^R(x,8)^y(x,7)}function N(x){return R(x,19)^R(x,61)^y(x,6)}A=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function M(x,L){var I=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],$=new Array(64),z,Y,q,ae,Q,G,fe,he,re,K,se,me;for(x[L>>5]|=128<<24-L%32,x[(L+64>>9<<4)+15]=L,re=0;re32&&(x=R(x,_.length*8));M<32;M+=1)L[M]=x[M]^909522486,I[M]=x[M]^1549556828;return N=R(L.concat(g(O)),1024+O.length*8),s(R(I.concat(N),1024+512))}function R(_,O){var N,M,x,L=new Array(80),I=new Array(16),$=[new y(1779033703,-205731576),new y(-1150833019,-2067093701),new y(1013904242,-23791573),new y(-1521486534,1595750129),new y(1359893119,-1377402159),new y(-1694144372,725511199),new y(528734635,-79577749),new y(1541459225,327033209)],z=new y(0,0),Y=new y(0,0),q=new y(0,0),ae=new y(0,0),Q=new y(0,0),G=new y(0,0),fe=new y(0,0),he=new y(0,0),re=new y(0,0),K=new y(0,0),se=new y(0,0),me=new y(0,0),ce=new y(0,0),ye=new y(0,0),ke=new y(0,0),xe=new y(0,0),Z=new y(0,0);for(A===void 0&&(A=[new y(1116352408,-685199838),new y(1899447441,602891725),new y(-1245643825,-330482897),new y(-373957723,-2121671748),new y(961987163,-213338824),new y(1508970993,-1241133031),new y(-1841331548,-1357295717),new y(-1424204075,-630357736),new y(-670586216,-1560083902),new y(310598401,1164996542),new y(607225278,1323610764),new y(1426881987,-704662302),new y(1925078388,-226784913),new y(-2132889090,991336113),new y(-1680079193,633803317),new y(-1046744716,-815192428),new y(-459576895,-1628353838),new y(-272742522,944711139),new y(264347078,-1953704523),new y(604807628,2007800933),new y(770255983,1495990901),new y(1249150122,1856431235),new y(1555081692,-1119749164),new y(1996064986,-2096016459),new y(-1740746414,-295247957),new y(-1473132947,766784016),new y(-1341970488,-1728372417),new y(-1084653625,-1091629340),new y(-958395405,1034457026),new y(-710438585,-1828018395),new y(113926993,-536640913),new y(338241895,168717936),new y(666307205,1188179964),new y(773529912,1546045734),new y(1294757372,1522805485),new y(1396182291,-1651133473),new y(1695183700,-1951439906),new y(1986661051,1014477480),new y(-2117940946,1206759142),new y(-1838011259,344077627),new y(-1564481375,1290863460),new y(-1474664885,-1136513023),new y(-1035236496,-789014639),new y(-949202525,106217008),new y(-778901479,-688958952),new y(-694614492,1432725776),new y(-200395387,1467031594),new y(275423344,851169720),new y(430227734,-1194143544),new y(506948616,1363258195),new y(659060556,-544281703),new y(883997877,-509917016),new y(958139571,-976659869),new y(1322822218,-482243893),new y(1537002063,2003034995),new y(1747873779,-692930397),new y(1955562222,1575990012),new y(2024104815,1125592928),new y(-2067236844,-1578062990),new y(-1933114872,442776044),new y(-1866530822,593698344),new y(-1538233109,-561857047),new y(-1090935817,-1295615723),new y(-965641998,-479046869),new y(-903397682,-366583396),new y(-779700025,566280711),new y(-354779690,-840897762),new y(-176337025,-294727304),new y(116418474,1914138554),new y(174292421,-1563912026),new y(289380356,-1090974290),new y(460393269,320620315),new y(685471733,587496836),new y(852142971,1086792851),new y(1017036298,365543100),new y(1126000580,-1676669620),new y(1288033470,-885112138),new y(1501505948,-60457430),new y(1607167915,987167468),new y(1816402316,1246189591)]),M=0;M<80;M+=1)L[M]=new y(0,0);for(_[O>>5]|=128<<24-(O&31),_[(O+128>>10<<5)+31]=O,x=_.length,M=0;M>>N|O.h<<32-N,_.h=O.h>>>N|O.l<<32-N}function v(_,O,N){_.l=O.h>>>N|O.l<<32-N,_.h=O.l>>>N|O.h<<32-N}function E(_,O,N){_.l=O.l>>>N|O.h<<32-N,_.h=O.h>>>N}function B(_,O,N){var M=(O.l&65535)+(N.l&65535),x=(O.l>>>16)+(N.l>>>16)+(M>>>16),L=(O.h&65535)+(N.h&65535)+(x>>>16),I=(O.h>>>16)+(N.h>>>16)+(L>>>16);_.l=M&65535|x<<16,_.h=L&65535|I<<16}function P(_,O,N,M,x){var L=(O.l&65535)+(N.l&65535)+(M.l&65535)+(x.l&65535),I=(O.l>>>16)+(N.l>>>16)+(M.l>>>16)+(x.l>>>16)+(L>>>16),$=(O.h&65535)+(N.h&65535)+(M.h&65535)+(x.h&65535)+(I>>>16),z=(O.h>>>16)+(N.h>>>16)+(M.h>>>16)+(x.h>>>16)+($>>>16);_.l=L&65535|I<<16,_.h=$&65535|z<<16}function w(_,O,N,M,x,L){var I=(O.l&65535)+(N.l&65535)+(M.l&65535)+(x.l&65535)+(L.l&65535),$=(O.l>>>16)+(N.l>>>16)+(M.l>>>16)+(x.l>>>16)+(L.l>>>16)+(I>>>16),z=(O.h&65535)+(N.h&65535)+(M.h&65535)+(x.h&65535)+(L.h&65535)+($>>>16),Y=(O.h>>>16)+(N.h>>>16)+(M.h>>>16)+(x.h>>>16)+(L.h>>>16)+(z>>>16);_.l=I&65535|$<<16,_.h=z&65535|Y<<16}},RMD160:function(d){var b=d&&typeof d.uppercase=="boolean"?d.uppercase:!1,C=d&&typeof d.pad=="string"?d.pa:"=",h=d&&typeof d.utf8=="boolean"?d.utf8:!0,A=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],S=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],U=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],R=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(w){return u(y(w,h))},this.b64=function(w){return f(y(w,h),C)},this.any=function(w,_){return p(y(w,h),_)},this.raw=function(w){return y(w,h)},this.hex_hmac=function(w,_){return u(T(w,_))},this.b64_hmac=function(w,_){return f(T(w,_),C)},this.any_hmac=function(w,_,O){return p(T(w,_),O)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(w){return typeof w=="boolean"&&(b=w),this},this.setPad=function(w){return typeof w<"u"&&(C=w),this},this.setUTF8=function(w){return typeof w=="boolean"&&(h=w),this};function y(w){return w=h?t(w):w,k(v(l(w),w.length*8))}function T(w,_){w=h?t(w):w,_=h?t(_):_;var O,N,M=l(w),x=Array(16),L=Array(16);for(M.length>16&&(M=v(M,w.length*8)),O=0;O<16;O+=1)x[O]=M[O]^909522486,L[O]=M[O]^1549556828;return N=v(x.concat(l(_)),512+_.length*8),k(v(L.concat(N),512+160))}function k(w){var _,O="",N=w.length*32;for(_=0;_>5]>>>_%32&255);return O}function v(w,_){var O,N,M,x,L=1732584193,I=4023233417,$=2562383102,z=271733878,Y=3285377520,q,ae,Q,G,fe,he,re,K,se,me;for(w[_>>5]|=128<<_%32,w[(_+64>>>9<<4)+14]=_,x=w.length,M=0;Mfunction(){return t||(0,e[pc(e)[0]])((t={exports:{}}).exports,t),t.exports},Mf=(e,t)=>{for(var n in t)Bi(e,n,{get:t[n],enumerable:!0})},_i=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of pc(t))!Df.call(e,r)&&r!==n&&Bi(e,r,{get:()=>t[r],enumerable:!(a=kf(t,r))||a.enumerable});return e},Ff=(e,t,n)=>(_i(e,t,"default"),n&&_i(n,t,"default")),fc=(e,t,n)=>(n=e!=null?Af(Sf(e)):{},_i(t||!e||!e.__esModule?Bi(n,"default",{value:e,enumerable:!0}):n,e)),hc=Lf({"../esmd/npm/webextension-polyfill@0.10.0/node_modules/webextension-polyfill/dist/browser-polyfill.js"(e,t){(function(n,a){if(typeof define=="function"&&define.amd)define("webextension-polyfill",["module"],a);else if(typeof e<"u")a(t);else{var r={exports:{}};a(r),n.browser=r.exports}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:e,function(n){"use strict";if(!globalThis.chrome?.runtime?.id)throw new Error("This script should only be loaded in a browser extension.");if(typeof globalThis.browser>"u"||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){let a="The message port closed before a response was received.",r=u=>{let o={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(Object.keys(o).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class i extends WeakMap{constructor(T,k=void 0){super(k),this.createItem=T}get(T){return this.has(T)||this.set(T,this.createItem(T)),super.get(T)}}let s=y=>y&&typeof y=="object"&&typeof y.then=="function",c=(y,T)=>(...k)=>{u.runtime.lastError?y.reject(new Error(u.runtime.lastError.message)):T.singleCallbackArg||k.length<=1&&T.singleCallbackArg!==!1?y.resolve(k[0]):y.resolve(k)},l=y=>y==1?"argument":"arguments",g=(y,T)=>function(v,...E){if(E.lengthT.maxArgs)throw new Error(`Expected at most ${T.maxArgs} ${l(T.maxArgs)} for ${y}(), got ${E.length}`);return new Promise((B,P)=>{if(T.fallbackToNoCallback)try{v[y](...E,c({resolve:B,reject:P},T))}catch{v[y](...E),T.fallbackToNoCallback=!1,T.noCallback=!0,B()}else T.noCallback?(v[y](...E),B()):v[y](...E,c({resolve:B,reject:P},T))})},p=(y,T,k)=>new Proxy(T,{apply(v,E,B){return k.call(E,y,...B)}}),f=Function.call.bind(Object.prototype.hasOwnProperty),d=(y,T={},k={})=>{let v=Object.create(null),E={has(P,w){return w in y||w in v},get(P,w,_){if(w in v)return v[w];if(!(w in y))return;let O=y[w];if(typeof O=="function")if(typeof T[w]=="function")O=p(y,y[w],T[w]);else if(f(k,w)){let N=g(w,k[w]);O=p(y,y[w],N)}else O=O.bind(y);else if(typeof O=="object"&&O!==null&&(f(T,w)||f(k,w)))O=d(O,T[w],k[w]);else if(f(k,"*"))O=d(O,T[w],k["*"]);else return Object.defineProperty(v,w,{configurable:!0,enumerable:!0,get(){return y[w]},set(N){y[w]=N}}),O;return v[w]=O,O},set(P,w,_,O){return w in v?v[w]=_:y[w]=_,!0},defineProperty(P,w,_){return Reflect.defineProperty(v,w,_)},deleteProperty(P,w){return Reflect.deleteProperty(v,w)}},B=Object.create(y);return new Proxy(B,E)},b=y=>({addListener(T,k,...v){T.addListener(y.get(k),...v)},hasListener(T,k){return T.hasListener(y.get(k))},removeListener(T,k){T.removeListener(y.get(k))}}),C=new i(y=>typeof y!="function"?y:function(k){let v=d(k,{},{getContent:{minArgs:0,maxArgs:0}});y(v)}),h=new i(y=>typeof y!="function"?y:function(k,v,E){let B=!1,P,w=new Promise(M=>{P=function(x){B=!0,M(x)}}),_;try{_=y(k,v,P)}catch(M){_=Promise.reject(M)}let O=_!==!0&&s(_);if(_!==!0&&!O&&!B)return!1;let N=M=>{M.then(x=>{E(x)},x=>{let L;x&&(x instanceof Error||typeof x.message=="string")?L=x.message:L="An unexpected error occurred",E({__mozWebExtensionPolyfillReject__:!0,message:L})}).catch(x=>{})};return N(O?_:w),!0}),A=({reject:y,resolve:T},k)=>{u.runtime.lastError?u.runtime.lastError.message===a?T():y(new Error(u.runtime.lastError.message)):k&&k.__mozWebExtensionPolyfillReject__?y(new Error(k.message)):T(k)},S=(y,T,k,...v)=>{if(v.lengthT.maxArgs)throw new Error(`Expected at most ${T.maxArgs} ${l(T.maxArgs)} for ${y}(), got ${v.length}`);return new Promise((E,B)=>{let P=A.bind(null,{resolve:E,reject:B});v.push(P),k.sendMessage(...v)})},U={devtools:{network:{onRequestFinished:b(C)}},runtime:{onMessage:b(h),onMessageExternal:b(h),sendMessage:S.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:S.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},R={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return o.privacy={network:{"*":R},services:{"*":R},websites:{"*":R}},d(u,U,o)};n.exports=r(chrome)}else n.exports=globalThis.browser})}}),bc={};Mf(bc,{default:()=>xu});var Pf=fc(hc());Ff(bc,fc(hc()));var{default:gc,..._f}=Pf,xu=gc!==void 0?gc:_f;globalThis.immersiveTranslateBrowserAPI=xu;m();m();m();m();function Ve(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():F}var Ee=Ve();function pe(){return Ee.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function Fn(){return Ee.PROD==="1"}function Pn(){return Ee.PROD_API==="1"}function yc(){return Ee.HAS_CSP_ERROR=="1"}function Rt(){if(Ee.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function Eu(){return typeof Deno<"u"}var c5=Ve().PROD==="1",Ia=Ve().PROD!=="1";function Tu(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}m();m();m();m();m();m();m();function Na(){let e,t="pending",n=new Promise((a,r)=>{e={async resolve(u){await u,t="fulfilled",a(u)},reject(u){t="rejected",r(u)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}m();var Ri=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function Cu(e,t){let n=Na(),a=setTimeout(()=>n.reject(new Ri),t);return Promise.race([e,n]).finally(()=>clearTimeout(a))}m();m();function Cr(e,t={}){let{signal:n,persistent:a}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((r,u)=>{let o=()=>{clearTimeout(s),u(new DOMException("Delay was aborted.","AbortError"))},s=setTimeout(()=>{n?.removeEventListener("abort",o),r()},e);if(n?.addEventListener("abort",o,{once:!0}),a===!1)try{Deno.unrefTimer(s)}catch(c){if(!(c instanceof ReferenceError))throw c}})}m();var xc=class{#e=0;#t=[];#n=[];#a=Na();add(t){++this.#e,this.#r(t[Symbol.asyncIterator]())}async#r(t){try{let{value:n,done:a}=await t.next();a?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#a.resolve()}async*iterate(){for(;this.#e>0;){await this.#a;for(let t=0;toh,bgBlue:()=>ch,bgBrightBlack:()=>ph,bgBrightBlue:()=>yh,bgBrightCyan:()=>Eh,bgBrightGreen:()=>hh,bgBrightMagenta:()=>xh,bgBrightRed:()=>fh,bgBrightWhite:()=>Th,bgBrightYellow:()=>bh,bgCyan:()=>mh,bgGreen:()=>sh,bgMagenta:()=>dh,bgRed:()=>ih,bgRgb24:()=>Ah,bgRgb8:()=>wh,bgWhite:()=>gh,bgYellow:()=>lh,black:()=>Wf,blue:()=>Vf,bold:()=>If,brightBlack:()=>Cc,brightBlue:()=>nh,brightCyan:()=>rh,brightGreen:()=>eh,brightMagenta:()=>ah,brightRed:()=>Xf,brightWhite:()=>uh,brightYellow:()=>th,cyan:()=>Jf,dim:()=>Nf,getColorEnabled:()=>Rf,gray:()=>Zf,green:()=>Kf,hidden:()=>Hf,inverse:()=>zf,italic:()=>jf,magenta:()=>Yf,red:()=>$f,reset:()=>Of,rgb24:()=>vh,rgb8:()=>Ch,setColorEnabled:()=>Bf,strikethrough:()=>qf,stripColor:()=>Sh,underline:()=>Uf,white:()=>Qf,yellow:()=>Gf});m();var{Deno:Ec}=globalThis,Tc=typeof Ec?.noColor=="boolean"?Ec.noColor:!0,Oi=!Tc;function Bf(e){Tc||(Oi=e)}function Rf(){return Oi}function Te(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function Ce(e,t){return Oi?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function Of(e){return Ce(e,Te([0],0))}function If(e){return Ce(e,Te([1],22))}function Nf(e){return Ce(e,Te([2],22))}function jf(e){return Ce(e,Te([3],23))}function Uf(e){return Ce(e,Te([4],24))}function zf(e){return Ce(e,Te([7],27))}function Hf(e){return Ce(e,Te([8],28))}function qf(e){return Ce(e,Te([9],29))}function Wf(e){return Ce(e,Te([30],39))}function $f(e){return Ce(e,Te([31],39))}function Kf(e){return Ce(e,Te([32],39))}function Gf(e){return Ce(e,Te([33],39))}function Vf(e){return Ce(e,Te([34],39))}function Yf(e){return Ce(e,Te([35],39))}function Jf(e){return Ce(e,Te([36],39))}function Qf(e){return Ce(e,Te([37],39))}function Zf(e){return Cc(e)}function Cc(e){return Ce(e,Te([90],39))}function Xf(e){return Ce(e,Te([91],39))}function eh(e){return Ce(e,Te([92],39))}function th(e){return Ce(e,Te([93],39))}function nh(e){return Ce(e,Te([94],39))}function ah(e){return Ce(e,Te([95],39))}function rh(e){return Ce(e,Te([96],39))}function uh(e){return Ce(e,Te([97],39))}function oh(e){return Ce(e,Te([40],49))}function ih(e){return Ce(e,Te([41],49))}function sh(e){return Ce(e,Te([42],49))}function lh(e){return Ce(e,Te([43],49))}function ch(e){return Ce(e,Te([44],49))}function dh(e){return Ce(e,Te([45],49))}function mh(e){return Ce(e,Te([46],49))}function gh(e){return Ce(e,Te([47],49))}function ph(e){return Ce(e,Te([100],49))}function fh(e){return Ce(e,Te([101],49))}function hh(e){return Ce(e,Te([102],49))}function bh(e){return Ce(e,Te([103],49))}function yh(e){return Ce(e,Te([104],49))}function xh(e){return Ce(e,Te([105],49))}function Eh(e){return Ce(e,Te([106],49))}function Th(e){return Ce(e,Te([107],49))}function Hn(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function Ch(e,t){return Ce(e,Te([38,5,Hn(t)],39))}function wh(e,t){return Ce(e,Te([48,5,Hn(t)],49))}function vh(e,t){return typeof t=="number"?Ce(e,Te([38,2,t>>16&255,t>>8&255,t&255],39)):Ce(e,Te([38,2,Hn(t.r),Hn(t.g),Hn(t.b)],39))}function Ah(e,t){return typeof t=="number"?Ce(e,Te([48,2,t>>16&255,t>>8&255,t&255],49)):Ce(e,Te([48,2,Hn(t.r),Hn(t.g),Hn(t.b)],49))}var kh=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function Sh(e){return e.replace(kh,"")}m();m();var Ii=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},Dh={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function Ni(e,t){let n={...Dh,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let a=n.minTimeout,r;for(let u=0;usetTimeout(i,a)),a*=n.multiplier,a=Math.max(a,n.minTimeout),n.maxTimeout>=0&&(a=Math.min(a,n.maxTimeout)),r=o}throw new Ii(r,n.maxAttempts)}m();var _n=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function ji(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",a,r=t.length;for(a=2;a>2],n+=_n[(t[a-2]&3)<<4|t[a-1]>>4],n+=_n[(t[a-1]&15)<<2|t[a]>>6],n+=_n[t[a]&63];return a===r+1&&(n+=_n[t[a-2]>>2],n+=_n[(t[a-2]&3)<<4],n+="=="),a===r&&(n+=_n[t[a-2]>>2],n+=_n[(t[a-2]&3)<<4|t[a-1]>>4],n+=_n[(t[a-1]&15)<<2],n+="="),n}m();m();var X5=Number.isNaN||function(e){return typeof e=="number"&&e!==e};m();m();var wu=globalThis||(typeof window<"u"?window:self),Mh=Object.create,zi=Object.defineProperty,Fh=Object.getOwnPropertyDescriptor,Ph=Object.getOwnPropertyNames,_h=Object.getPrototypeOf,Bh=Object.prototype.hasOwnProperty,Rh=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Oh=(e,t)=>{for(var n in t)zi(e,n,{get:t[n],enumerable:!0})},Ui=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Ph(t))!Bh.call(e,r)&&r!==n&&zi(e,r,{get:()=>t[r],enumerable:!(a=Fh(t,r))||a.enumerable});return e},Ih=(e,t,n)=>(Ui(e,t,"default"),n&&Ui(n,t,"default")),vc=(e,t,n)=>(n=e!=null?Mh(_h(e)):{},Ui(t||!e||!e.__esModule?zi(n,"default",{value:e,enumerable:!0}):n,e)),Ac=Rh((e,t)=>{var n="Expected a function",a=NaN,r="[object Symbol]",u=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,l=typeof wu=="object"&&wu&&wu.Object===Object&&wu,g=typeof self=="object"&&self&&self.Object===Object&&self,p=l||g||Function("return this")(),f=Object.prototype,d=f.toString,b=Math.max,C=Math.min,h=function(){return p.Date.now()};function A(k,v,E){var B,P,w,_,O,N,M=0,x=!1,L=!1,I=!0;if(typeof k!="function")throw new TypeError(n);v=T(v)||0,U(E)&&(x=!!E.leading,L="maxWait"in E,w=L?b(T(E.maxWait)||0,v):w,I="trailing"in E?!!E.trailing:I);function $(re){var K=B,se=P;return B=P=void 0,M=re,_=k.apply(se,K),_}function z(re){return M=re,O=setTimeout(ae,v),x?$(re):_}function Y(re){var K=re-N,se=re-M,me=v-K;return L?C(me,w-se):me}function q(re){var K=re-N,se=re-M;return N===void 0||K>=v||K<0||L&&se>=w}function ae(){var re=h();if(q(re))return Q(re);O=setTimeout(ae,Y(re))}function Q(re){return O=void 0,I&&B?$(re):(B=P=void 0,_)}function G(){O!==void 0&&clearTimeout(O),M=0,B=N=P=O=void 0}function fe(){return O===void 0?_:Q(h())}function he(){var re=h(),K=q(re);if(B=arguments,P=this,N=re,K){if(O===void 0)return z(N);if(L)return O=setTimeout(ae,v),$(N)}return O===void 0&&(O=setTimeout(ae,v)),_}return he.cancel=G,he.flush=fe,he}function S(k,v,E){var B=!0,P=!0;if(typeof k!="function")throw new TypeError(n);return U(E)&&(B="leading"in E?!!E.leading:B,P="trailing"in E?!!E.trailing:P),A(k,v,{leading:B,maxWait:v,trailing:P})}function U(k){var v=typeof k;return!!k&&(v=="object"||v=="function")}function R(k){return!!k&&typeof k=="object"}function y(k){return typeof k=="symbol"||R(k)&&d.call(k)==r}function T(k){if(typeof k=="number")return k;if(y(k))return a;if(U(k)){var v=typeof k.valueOf=="function"?k.valueOf():k;k=U(v)?v+"":v}if(typeof k!="string")return k===0?k:+k;k=k.replace(u,"");var E=i.test(k);return E||s.test(k)?c(k.slice(2),E?2:8):o.test(k)?a:+k}t.exports=S}),kc={};Oh(kc,{default:()=>bt});var Nh=vc(Ac());Ih(kc,vc(Ac()));var{default:wc,...jh}=Nh,bt=wc!==void 0?wc:jh;m();m();var Uh=Object.create,qi=Object.defineProperty,zh=Object.getOwnPropertyDescriptor,Hh=Object.getOwnPropertyNames,qh=Object.getPrototypeOf,Wh=Object.prototype.hasOwnProperty,$h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Kh=(e,t)=>{for(var n in t)qi(e,n,{get:t[n],enumerable:!0})},Hi=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Hh(t))!Wh.call(e,r)&&r!==n&&qi(e,r,{get:()=>t[r],enumerable:!(a=zh(t,r))||a.enumerable});return e},Gh=(e,t,n)=>(Hi(e,t,"default"),n&&Hi(n,t,"default")),Dc=(e,t,n)=>(n=e!=null?Uh(qh(e)):{},Hi(t||!e||!e.__esModule?qi(n,"default",{value:e,enumerable:!0}):n,e)),Lc=$h((e,t)=>{(function(n,a){typeof e=="object"&&typeof t=="object"?t.exports=a():typeof define=="function"&&define.amd?define([],a):typeof e=="object"?e.notie=a():n.notie=a()})(e,function(){return function(n){function a(u){if(r[u])return r[u].exports;var o=r[u]={i:u,l:!1,exports:{}};return n[u].call(o.exports,o,o.exports,a),o.l=!0,o.exports}var r={};return a.m=n,a.c=r,a.i=function(u){return u},a.d=function(u,o,i){a.o(u,o)||Object.defineProperty(u,o,{configurable:!1,enumerable:!0,get:i})},a.n=function(u){var o=u&&u.__esModule?function(){return u.default}:function(){return u};return a.d(o,"a",o),o},a.o=function(u,o){return Object.prototype.hasOwnProperty.call(u,o)},a.p="",a(a.s=1)}([function(n,a){n.exports=function(r){return r.webpackPolyfill||(r.deprecate=function(){},r.paths=[],r.children||(r.children=[]),Object.defineProperty(r,"loaded",{enumerable:!0,get:function(){return r.l}}),Object.defineProperty(r,"id",{enumerable:!0,get:function(){return r.i}}),r.webpackPolyfill=1),r}},function(n,a,r){"use strict";(function(u){var o,i,s,c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l};(function(l,g){c(a)==="object"&&c(u)==="object"?u.exports=g():(i=[],o=g,s=typeof o=="function"?o.apply(a,i):o,s!==void 0&&(u.exports=s))})(void 0,function(){return function(l){function g(f){if(p[f])return p[f].exports;var d=p[f]={i:f,l:!1,exports:{}};return l[f].call(d.exports,d,d.exports,g),d.l=!0,d.exports}var p={};return g.m=l,g.c=p,g.i=function(f){return f},g.d=function(f,d,b){g.o(f,d)||Object.defineProperty(f,d,{configurable:!1,enumerable:!0,get:b})},g.n=function(f){var d=f&&f.__esModule?function(){return f.default}:function(){return f};return g.d(d,"a",d),d},g.o=function(f,d){return Object.prototype.hasOwnProperty.call(f,d)},g.p="",g(g.s=0)}([function(l,g,p){function f(z,Y){var q={};for(var ae in z)Y.indexOf(ae)>=0||Object.prototype.hasOwnProperty.call(z,ae)&&(q[ae]=z[ae]);return q}Object.defineProperty(g,"__esModule",{value:!0});var d=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(z){return typeof z>"u"?"undefined":c(z)}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z>"u"?"undefined":c(z)},b=Object.assign||function(z){for(var Y=1;Y'+ae+"",se.onclick=function(){return P(me,K)},se.listener=function(ce){(v(ce)||E(ce))&&O()},B(se,K),G&&G<1&&(G=1),!he&&G&&U(G).then(function(){return P(me,K)})},M=g.force=function(z,Y){var q=z.type,ae=q===void 0?5:q,Q=z.text,G=z.buttonText,fe=G===void 0?"OK":G,he=z.callback,re=z.position,K=re===void 0?h.positions.force||K.top:re;R(),O();var se=document.createElement("div"),me=y();se.id=me;var ce=document.createElement("div");ce.classList.add(h.classes.textbox),ce.classList.add(h.classes.backgroundInfo),ce.innerHTML='
'+Q+"
";var ye=document.createElement("div");ye.classList.add(h.classes.button),ye.classList.add(T[ae]),ye.innerHTML=fe,ye.onclick=function(){P(me,K),_(),he?he():Y&&Y()},se.appendChild(ce),se.appendChild(ye),se.listener=function(ke){v(ke)&&ye.click()},B(se,K),w()},x=g.confirm=function(z,Y,q){var ae=z.text,Q=z.submitText,G=Q===void 0?"Yes":Q,fe=z.cancelText,he=fe===void 0?"Cancel":fe,re=z.submitCallback,K=z.cancelCallback,se=z.position,me=se===void 0?h.positions.confirm||me.top:se;R(),O();var ce=document.createElement("div"),ye=y();ce.id=ye;var ke=document.createElement("div");ke.classList.add(h.classes.textbox),ke.classList.add(h.classes.backgroundInfo),ke.innerHTML='
'+ae+"
";var xe=document.createElement("div");xe.classList.add(h.classes.button),xe.classList.add(h.classes.elementHalf),xe.classList.add(h.classes.backgroundSuccess),xe.innerHTML=G,xe.onclick=function(){P(ye,me),_(),re?re():Y&&Y()};var Z=document.createElement("div");Z.classList.add(h.classes.button),Z.classList.add(h.classes.elementHalf),Z.classList.add(h.classes.backgroundError),Z.innerHTML=he,Z.onclick=function(){P(ye,me),_(),K?K():q&&q()},ce.appendChild(ke),ce.appendChild(xe),ce.appendChild(Z),ce.listener=function(Ae){v(Ae)?xe.click():E(Ae)&&Z.click()},B(ce,me),w(ce,me)},L=function(z,Y,q){var ae=z.text,Q=z.submitText,G=Q===void 0?"Submit":Q,fe=z.cancelText,he=fe===void 0?"Cancel":fe,re=z.submitCallback,K=z.cancelCallback,se=z.position,me=se===void 0?h.positions.input||me.top:se,ce=f(z,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);R(),O();var ye=document.createElement("div"),ke=y();ye.id=ke;var xe=document.createElement("div");xe.classList.add(h.classes.textbox),xe.classList.add(h.classes.backgroundInfo),xe.innerHTML='
'+ae+"
";var Z=document.createElement("input");Z.classList.add(h.classes.inputField),Z.setAttribute("autocapitalize",ce.autocapitalize||"none"),Z.setAttribute("autocomplete",ce.autocomplete||"off"),Z.setAttribute("autocorrect",ce.autocorrect||"off"),Z.setAttribute("autofocus",ce.autofocus||"true"),Z.setAttribute("inputmode",ce.inputmode||"verbatim"),Z.setAttribute("max",ce.max||""),Z.setAttribute("maxlength",ce.maxlength||""),Z.setAttribute("min",ce.min||""),Z.setAttribute("minlength",ce.minlength||""),Z.setAttribute("placeholder",ce.placeholder||""),Z.setAttribute("spellcheck",ce.spellcheck||"default"),Z.setAttribute("step",ce.step||"any"),Z.setAttribute("type",ce.type||"text"),Z.value=ce.value||"",ce.allowed&&(Z.oninput=function(){var Re=void 0;if(Array.isArray(ce.allowed)){for(var Ne="",st=ce.allowed,Pt=0;Pt'+q+"",K.appendChild(me),fe.forEach(function(ye,ke){var xe=ye.type,Z=xe===void 0?1:xe,Ae=ye.text,Le=ye.handler,Re=document.createElement("div");Re.classList.add(T[Z]),Re.classList.add(h.classes.button),Re.classList.add(h.classes.selectChoice);var Ne=fe[ke+1];Ne&&!Ne.type&&(Ne.type=1),Ne&&Ne.type===Z&&Re.classList.add(h.classes.selectChoiceRepeated),Re.innerHTML=Ae,Re.onclick=function(){P(se,re),_(),Le()},K.appendChild(Re)});var ce=document.createElement("div");ce.classList.add(h.classes.backgroundNeutral),ce.classList.add(h.classes.button),ce.innerHTML=Q,ce.onclick=function(){P(se,re),_(),G?G():Y&&Y()},K.appendChild(ce),K.listener=function(ye){E(ye)&&ce.click()},B(K,re),w(K,re)},$=g.date=function(z,Y,q){var ae=z.value,Q=ae===void 0?new Date:ae,G=z.submitText,fe=G===void 0?"OK":G,he=z.cancelText,re=he===void 0?"Cancel":he,K=z.submitCallback,se=z.cancelCallback,me=z.position,ce=me===void 0?h.positions.date||ce.top:me;R(),O();var ye="▾",ke=document.createElement("div"),xe=document.createElement("div"),Z=document.createElement("div"),Ae=function(Ue){ke.innerHTML=h.dateMonths[Ue.getMonth()],xe.innerHTML=Ue.getDate(),Z.innerHTML=Ue.getFullYear()},Le=function(Ue){var H=new Date(Q.getFullYear(),Q.getMonth()+1,0).getDate(),de=Ue.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(de)>H&&(de=H.toString()),Ue.target.textContent=de,Number(de)<1&&(de="1"),Q.setDate(Number(de))},Re=function(Ue){var H=Ue.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);Ue.target.textContent=H,Q.setFullYear(Number(H))},Ne=function(Ue){Ae(Q)},st=function(Ue){var H=new Date(Q.getFullYear(),Q.getMonth()+Ue+1,0).getDate();Q.getDate()>H&&Q.setDate(H),Q.setMonth(Q.getMonth()+Ue),Ae(Q)},Pt=function(Ue){Q.setDate(Q.getDate()+Ue),Ae(Q)},pa=function(Ue){var H=Q.getFullYear()+Ue;H<0?Q.setFullYear(0):Q.setFullYear(Q.getFullYear()+Ue),Ae(Q)},qt=document.createElement("div"),Dn=y();qt.id=Dn;var Un=document.createElement("div");Un.classList.add(h.classes.backgroundInfo);var Oe=document.createElement("div");Oe.classList.add(h.classes.dateSelectorInner);var Wt=document.createElement("div");Wt.classList.add(h.classes.button),Wt.classList.add(h.classes.elementThird),Wt.classList.add(h.classes.dateSelectorUp),Wt.innerHTML=ye;var rt=document.createElement("div");rt.classList.add(h.classes.button),rt.classList.add(h.classes.elementThird),rt.classList.add(h.classes.dateSelectorUp),rt.innerHTML=ye;var He=document.createElement("div");He.classList.add(h.classes.button),He.classList.add(h.classes.elementThird),He.classList.add(h.classes.dateSelectorUp),He.innerHTML=ye,ke.classList.add(h.classes.element),ke.classList.add(h.classes.elementThird),ke.innerHTML=h.dateMonths[Q.getMonth()],xe.classList.add(h.classes.element),xe.classList.add(h.classes.elementThird),xe.setAttribute("contentEditable",!0),xe.addEventListener("input",Le),xe.addEventListener("blur",Ne),xe.innerHTML=Q.getDate(),Z.classList.add(h.classes.element),Z.classList.add(h.classes.elementThird),Z.setAttribute("contentEditable",!0),Z.addEventListener("input",Re),Z.addEventListener("blur",Ne),Z.innerHTML=Q.getFullYear();var Jt=document.createElement("div");Jt.classList.add(h.classes.button),Jt.classList.add(h.classes.elementThird),Jt.innerHTML=ye;var _t=document.createElement("div");_t.classList.add(h.classes.button),_t.classList.add(h.classes.elementThird),_t.innerHTML=ye;var zn=document.createElement("div");zn.classList.add(h.classes.button),zn.classList.add(h.classes.elementThird),zn.innerHTML=ye,Wt.onclick=function(){return st(1)},rt.onclick=function(){return Pt(1)},He.onclick=function(){return pa(1)},Jt.onclick=function(){return st(-1)},_t.onclick=function(){return Pt(-1)},zn.onclick=function(){return pa(-1)};var mt=document.createElement("div");mt.classList.add(h.classes.button),mt.classList.add(h.classes.elementHalf),mt.classList.add(h.classes.backgroundSuccess),mt.innerHTML=fe,mt.onclick=function(){P(Dn,ce),_(),K?K(Q):Y&&Y(Q)};var mn=document.createElement("div");mn.classList.add(h.classes.button),mn.classList.add(h.classes.elementHalf),mn.classList.add(h.classes.backgroundError),mn.innerHTML=re,mn.onclick=function(){P(Dn,ce),_(),se?se(Q):q&&q(Q)},Oe.appendChild(Wt),Oe.appendChild(rt),Oe.appendChild(He),Oe.appendChild(ke),Oe.appendChild(xe),Oe.appendChild(Z),Oe.appendChild(Jt),Oe.appendChild(_t),Oe.appendChild(zn),Un.appendChild(Oe),qt.appendChild(Un),qt.appendChild(mt),qt.appendChild(mn),qt.listener=function(Ue){v(Ue)?mt.click():E(Ue)&&mn.click()},B(qt,ce),w(qt,ce)};g.default={alert:N,force:M,confirm:x,input:L,select:I,date:$,setOptions:A,hideAlerts:O}}])})}).call(a,r(0)(n))}])})}),Mc={};Kh(Mc,{default:()=>vu});var Vh=Dc(Lc());Gh(Mc,Dc(Lc()));var{default:Sc,...Yh}=Vh,vu=Sc!==void 0?Sc:Yh;m();m();var Wi=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function $i(e,t,n,a){e.addEventListener?e.addEventListener(t,n,a):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function Rc(e,t){for(var n=t.slice(0,t.length-1),a=0;a=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function Jh(e,t){for(var n=e.length>=t.length?e:t,a=e.length>=t.length?t:e,r=!0,u=0;u=0&&ze.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&ze.splice(0,ze.length),(t===93||t===224)&&(t=91),t in gt){gt[t]=!1;for(var a in vn)vn[a]===t&&(Ye[a]=!1)}}function u2(e){if(typeof e>"u")Object.keys(nt).forEach(function(o){return delete nt[o]});else if(Array.isArray(e))e.forEach(function(o){o.key&&Ki(o)});else if(typeof e=="object")e.key&&Ki(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a1?Rc(vn,s):[];nt[g]=nt[g].filter(function(f){var d=a?f.method===a:!0;return!(d&&f.scope===n&&Jh(f.mods,p))})}})};function Pc(e,t,n,a){if(t.element===a){var r;if(t.scope===n||t.scope==="all"){r=t.mods.length>0;for(var u in gt)Object.prototype.hasOwnProperty.call(gt,u)&&(!gt[u]&&t.mods.indexOf(+u)>-1||gt[u]&&t.mods.indexOf(+u)===-1)&&(r=!1);(t.mods.length===0&&!gt[16]&&!gt[18]&&!gt[17]&&!gt[91]||r||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function _c(e,t){var n=nt["*"],a=e.keyCode||e.which||e.charCode;if(Ye.filter.call(this,e)){if((a===93||a===224)&&(a=91),ze.indexOf(a)===-1&&a!==229&&ze.push(a),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(d){var b=Vi[d];e[d]&&ze.indexOf(b)===-1?ze.push(b):!e[d]&&ze.indexOf(b)>-1?ze.splice(ze.indexOf(b),1):d==="metaKey"&&e[d]&&ze.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(ze=ze.slice(ze.indexOf(b))))}),a in gt){gt[a]=!0;for(var r in vn)vn[r]===a&&(Ye[r]=!0);if(!n)return}for(var u in gt)Object.prototype.hasOwnProperty.call(gt,u)&&(gt[u]=e[Vi[u]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(ze.indexOf(17)===-1&&ze.push(17),ze.indexOf(18)===-1&&ze.push(18),gt[17]=!0,gt[18]=!0);var o=Ar();if(n)for(var i=0;i-1}function Ye(e,t,n){ze=[];var a=Oc(e),r=[],u="all",o=document,i=0,s=!1,c=!0,l="+",g=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(u=t.scope),t.element&&(o=t.element),t.keyup&&(s=t.keyup),t.keydown!==void 0&&(c=t.keydown),t.capture!==void 0&&(g=t.capture),typeof t.splitKey=="string"&&(l=t.splitKey)),typeof t=="string"&&(u=t);i1&&(r=Rc(vn,e)),e=e[e.length-1],e=e==="*"?"*":ku(e),e in nt||(nt[e]=[]),nt[e].push({keyup:s,keydown:c,scope:u,mods:r,shortcut:a[i],method:n,key:a[i],splitKey:l,element:o});typeof o<"u"&&!o2(o)&&window&&(Nc.push(o),$i(o,"keydown",function(p){_c(p,o)},g),Fc||(Fc=!0,$i(window,"focus",function(){ze=[]},g)),$i(o,"keyup",function(p){_c(p,o),r2(p)},g))}function i2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(nt).forEach(function(n){var a=nt[n].filter(function(r){return r.scope===t&&r.shortcut===e});a.forEach(function(r){r&&r.method&&r.method()})})}var Gi={getPressedKeyString:e2,setScope:jc,getScope:Ar,deleteScope:a2,getPressedKeyCodes:Xh,isPressed:n2,filter:t2,trigger:i2,unbind:u2,keyMap:vr,modifier:vn,modifierMap:Vi};for(Au in Gi)Object.prototype.hasOwnProperty.call(Gi,Au)&&(Ye[Au]=Gi[Au]);var Au;typeof document<"u"&&(Bc=window.hotkeys,Ye.noConflict=function(e){return e&&window.hotkeys===Ye&&(window.hotkeys=Bc),Ye},window.hotkeys=Ye);var Bc;m();m();var s2={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},zc={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Xe={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},At={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},qn={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},W=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let a=W.getVersionPrecision(e),r=W.getVersionPrecision(t),u=Math.max(a,r),o=0,i=W.map([e,t],s=>{let c=u-W.getVersionPrecision(s),l=s+new Array(c+1).join(".0");return W.map(l.split("."),g=>new Array(20-g.length).join("0")+g).reverse()});for(n&&(o=u-Math.min(a,r)),u-=1;u>=o;){if(i[0][u]>i[1][u])return 1;if(i[0][u]===i[1][u]){if(u===o)return 0;u-=1}else if(i[0][u]{n[o]=u[o]})}return e}static getBrowserAlias(e){return s2[e]}static getBrowserTypeByAlias(e){return zc[e]||""}},Ie=/version\/(\d+(\.?_?\d+)+)/i,l2=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=W.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=W.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=W.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=W.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=W.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=W.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=W.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=W.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=W.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=W.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=W.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=W.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=W.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=W.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=W.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=W.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=W.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=W.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=W.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=W.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=W.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=W.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=W.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=W.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=W.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=W.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=W.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,a=e.search("\\(")!==-1?n:t;return{name:W.getFirstMatch(a,e),version:W.getSecondMatch(a,e)}}}],c2=l2,d2=[{test:[/Roku\/DVP/],describe(e){let t=W.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:At.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=W.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:At.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=W.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=W.getWindowsVersionName(t);return{name:At.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:At.iOS},n=W.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=W.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=W.getMacOSVersionName(t),a={name:At.MacOS,version:t};return n&&(a.versionName=n),a}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=W.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:At.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=W.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=W.getAndroidVersionName(t),a={name:At.Android,version:t};return n&&(a.versionName=n),a}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=W.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:At.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=W.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||W.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||W.getFirstMatch(/\bbb(\d+)/i,e);return{name:At.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=W.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:At.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=W.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:At.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:At.Linux}}},{test:[/CrOS/],describe(){return{name:At.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=W.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:At.PlayStation4,version:t}}}],m2=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=W.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Xe.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Xe.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Xe.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Xe.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Xe.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Xe.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Xe.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=W.getFirstMatch(/(ipod|iphone)/i,e);return{type:Xe.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Xe.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Xe.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Xe.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Xe.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Xe.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Xe.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Xe.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Xe.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Xe.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Xe.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Xe.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Xe.tv}}}],g2=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:qn.Blink};let t=W.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:qn.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:qn.Trident},n=W.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:qn.Presto},n=W.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:qn.Gecko},n=W.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:qn.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:qn.WebKit},n=W.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],p2=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=W.find(c2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=W.find(d2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=W.find(m2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=W.find(g2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return W.assign({},this.parsedResult)}satisfies(e){let t={},n=0,a={},r=0;if(Object.keys(e).forEach(u=>{let o=e[u];typeof o=="string"?(a[u]=o,r+=1):typeof o=="object"&&(t[u]=o,n+=1)}),n>0){let u=Object.keys(t),o=W.find(u,s=>this.isOS(s));if(o){let s=this.satisfies(t[o]);if(s!==void 0)return s}let i=W.find(u,s=>this.isPlatform(s));if(i){let s=this.satisfies(t[i]);if(s!==void 0)return s}}if(r>0){let u=Object.keys(a),o=W.find(u,i=>this.isBrowser(i,!0));if(o!==void 0)return this.compareVersion(a[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),a=e.toLowerCase(),r=W.getBrowserTypeByAlias(a);return t&&r&&(a=r.toLowerCase()),a===n}compareVersion(e){let t=[0],n=e,a=!1,r=this.getBrowserVersion();if(typeof r=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(a=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(a=!0,n=e.substr(1)),t.indexOf(W.compareVersions(r,n,a))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},Uc=p2,f2=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new Uc(e,t)}static parse(e){return new Uc(e).getResult()}static get BROWSER_MAP(){return zc}static get ENGINE_MAP(){return qn}static get OS_MAP(){return At}static get PLATFORMS_MAP(){return Xe}},ja=f2;m();m();var{entries:Yc,setPrototypeOf:Hc,isFrozen:h2,getPrototypeOf:b2,getOwnPropertyDescriptor:y2}=Object,{freeze:kt,seal:pn,create:x2}=Object,{apply:es,construct:ts}=typeof Reflect<"u"&&Reflect;es||(es=function(e,t,n){return e.apply(t,n)});kt||(kt=function(e){return e});pn||(pn=function(e){return e});ts||(ts=function(e,t){return new e(...t)});var E2=Xt(Array.prototype.forEach),qc=Xt(Array.prototype.pop),kr=Xt(Array.prototype.push),Lu=Xt(String.prototype.toLowerCase),Yi=Xt(String.prototype.toString),T2=Xt(String.prototype.match),gn=Xt(String.prototype.replace),C2=Xt(String.prototype.indexOf),w2=Xt(String.prototype.trim),$t=Xt(RegExp.prototype.test),Sr=v2(TypeError);function Xt(e){return function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r/gm),L2=pn(/\${[\w\W]*}/gm),M2=pn(/^data-[\-\w.\u00B7-\uFFFF]/),F2=pn(/^aria-[\-\w]+$/),Jc=pn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),P2=pn(/^(?:\w+script|data):/i),_2=pn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Qc=pn(/^html$/i),Vc=Object.freeze({__proto__:null,MUSTACHE_EXPR:S2,ERB_EXPR:D2,TMPLIT_EXPR:L2,DATA_ATTR:M2,ARIA_ATTR:F2,IS_ALLOWED_URI:Jc,IS_SCRIPT_OR_DATA:P2,ATTR_WHITESPACE:_2,DOCTYPE_NAME:Qc}),B2=()=>typeof window>"u"?null:window,R2=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,a="data-tt-policy-suffix";t&&t.hasAttribute(a)&&(n=t.getAttribute(a));let r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML(u){return u},createScriptURL(u){return u}})}catch{return null}};function Zc(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:B2(),t=D=>Zc(D);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,a=n.currentScript,{document:r}=e,{DocumentFragment:u,HTMLTemplateElement:o,Node:i,Element:s,NodeFilter:c,NamedNodeMap:l=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:g,DOMParser:p,trustedTypes:f}=e,d=s.prototype,b=Su(d,"cloneNode"),C=Su(d,"nextSibling"),h=Su(d,"childNodes"),A=Su(d,"parentNode");if(typeof o=="function"){let D=r.createElement("template");D.content&&D.content.ownerDocument&&(r=D.content.ownerDocument)}let S,U="",{implementation:R,createNodeIterator:y,createDocumentFragment:T,getElementsByTagName:k}=r,{importNode:v}=n,E={};t.isSupported=typeof Yc=="function"&&typeof A=="function"&&R&&R.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:B,ERB_EXPR:P,TMPLIT_EXPR:w,DATA_ATTR:_,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:M}=Vc,{IS_ALLOWED_URI:x}=Vc,L=null,I=Se({},[...Wc,...Ji,...Qi,...Zi,...$c]),$=null,z=Se({},[...Kc,...Xi,...Gc,...Du]),Y=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),q=null,ae=null,Q=!0,G=!0,fe=!1,he=!0,re=!1,K=!1,se=!1,me=!1,ce=!1,ye=!1,ke=!1,xe=!0,Z=!1,Ae="user-content-",Le=!0,Re=!1,Ne={},st=null,Pt=Se({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),pa=null,qt=Se({},["audio","video","img","source","image","track"]),Dn=null,Un=Se({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Oe="http://www.w3.org/1998/Math/MathML",Wt="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml",He=rt,Jt=!1,_t=null,zn=Se({},[Oe,Wt,rt],Yi),mt,mn=["application/xhtml+xml","text/html"],Ue="text/html",H,de=null,$e=r.createElement("form"),Me=function(D){return D instanceof RegExp||D instanceof Function},Pe=function(D){if(!(de&&de===D)){if((!D||typeof D!="object")&&(D={}),D=Ua(D),mt=mn.indexOf(D.PARSER_MEDIA_TYPE)===-1?mt=Ue:mt=D.PARSER_MEDIA_TYPE,H=mt==="application/xhtml+xml"?Yi:Lu,L="ALLOWED_TAGS"in D?Se({},D.ALLOWED_TAGS,H):I,$="ALLOWED_ATTR"in D?Se({},D.ALLOWED_ATTR,H):z,_t="ALLOWED_NAMESPACES"in D?Se({},D.ALLOWED_NAMESPACES,Yi):zn,Dn="ADD_URI_SAFE_ATTR"in D?Se(Ua(Un),D.ADD_URI_SAFE_ATTR,H):Un,pa="ADD_DATA_URI_TAGS"in D?Se(Ua(qt),D.ADD_DATA_URI_TAGS,H):qt,st="FORBID_CONTENTS"in D?Se({},D.FORBID_CONTENTS,H):Pt,q="FORBID_TAGS"in D?Se({},D.FORBID_TAGS,H):{},ae="FORBID_ATTR"in D?Se({},D.FORBID_ATTR,H):{},Ne="USE_PROFILES"in D?D.USE_PROFILES:!1,Q=D.ALLOW_ARIA_ATTR!==!1,G=D.ALLOW_DATA_ATTR!==!1,fe=D.ALLOW_UNKNOWN_PROTOCOLS||!1,he=D.ALLOW_SELF_CLOSE_IN_ATTR!==!1,re=D.SAFE_FOR_TEMPLATES||!1,K=D.WHOLE_DOCUMENT||!1,ce=D.RETURN_DOM||!1,ye=D.RETURN_DOM_FRAGMENT||!1,ke=D.RETURN_TRUSTED_TYPE||!1,me=D.FORCE_BODY||!1,xe=D.SANITIZE_DOM!==!1,Z=D.SANITIZE_NAMED_PROPS||!1,Le=D.KEEP_CONTENT!==!1,Re=D.IN_PLACE||!1,x=D.ALLOWED_URI_REGEXP||Jc,He=D.NAMESPACE||rt,Y=D.CUSTOM_ELEMENT_HANDLING||{},D.CUSTOM_ELEMENT_HANDLING&&Me(D.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Y.tagNameCheck=D.CUSTOM_ELEMENT_HANDLING.tagNameCheck),D.CUSTOM_ELEMENT_HANDLING&&Me(D.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Y.attributeNameCheck=D.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),D.CUSTOM_ELEMENT_HANDLING&&typeof D.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Y.allowCustomizedBuiltInElements=D.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),re&&(G=!1),ye&&(ce=!0),Ne&&(L=Se({},[...$c]),$=[],Ne.html===!0&&(Se(L,Wc),Se($,Kc)),Ne.svg===!0&&(Se(L,Ji),Se($,Xi),Se($,Du)),Ne.svgFilters===!0&&(Se(L,Qi),Se($,Xi),Se($,Du)),Ne.mathMl===!0&&(Se(L,Zi),Se($,Gc),Se($,Du))),D.ADD_TAGS&&(L===I&&(L=Ua(L)),Se(L,D.ADD_TAGS,H)),D.ADD_ATTR&&($===z&&($=Ua($)),Se($,D.ADD_ATTR,H)),D.ADD_URI_SAFE_ATTR&&Se(Dn,D.ADD_URI_SAFE_ATTR,H),D.FORBID_CONTENTS&&(st===Pt&&(st=Ua(st)),Se(st,D.FORBID_CONTENTS,H)),Le&&(L["#text"]=!0),K&&Se(L,["html","head","body"]),L.table&&(Se(L,["tbody"]),delete q.tbody),D.TRUSTED_TYPES_POLICY){if(typeof D.TRUSTED_TYPES_POLICY.createHTML!="function")throw Sr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof D.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Sr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=D.TRUSTED_TYPES_POLICY,U=S.createHTML("")}else S===void 0&&(S=R2(f,a)),S!==null&&typeof U=="string"&&(U=S.createHTML(""));kt&&kt(D),de=D}},Ln=Se({},["mi","mo","mn","ms","mtext"]),wn=Se({},["foreignobject","desc","title","annotation-xml"]),Qt=Se({},["title","style","font","a","script"]),Ba=Se({},Ji);Se(Ba,Qi),Se(Ba,A2);let Mi=Se({},Zi);Se(Mi,k2);let df=function(D){let ie=A(D);(!ie||!ie.tagName)&&(ie={namespaceURI:He,tagName:"template"});let X=Lu(D.tagName),Be=Lu(ie.tagName);return _t[D.namespaceURI]?D.namespaceURI===Wt?ie.namespaceURI===rt?X==="svg":ie.namespaceURI===Oe?X==="svg"&&(Be==="annotation-xml"||Ln[Be]):!!Ba[X]:D.namespaceURI===Oe?ie.namespaceURI===rt?X==="math":ie.namespaceURI===Wt?X==="math"&&wn[Be]:!!Mi[X]:D.namespaceURI===rt?ie.namespaceURI===Wt&&!wn[Be]||ie.namespaceURI===Oe&&!Ln[Be]?!1:!Mi[X]&&(Qt[X]||!Ba[X]):!!(mt==="application/xhtml+xml"&&_t[D.namespaceURI]):!1},Ra=function(D){kr(t.removed,{element:D});try{D.parentNode.removeChild(D)}catch{D.remove()}},Fi=function(D,ie){try{kr(t.removed,{attribute:ie.getAttributeNode(D),from:ie})}catch{kr(t.removed,{attribute:null,from:ie})}if(ie.removeAttribute(D),D==="is"&&!$[D])if(ce||ye)try{Ra(ie)}catch{}else try{ie.setAttribute(D,"")}catch{}},oc=function(D){let ie,X;if(me)D=""+D;else{let vt=T2(D,/^[\r\n\t ]+/);X=vt&&vt[0]}mt==="application/xhtml+xml"&&He===rt&&(D=''+D+"");let Be=S?S.createHTML(D):D;if(He===rt)try{ie=new p().parseFromString(Be,mt)}catch{}if(!ie||!ie.documentElement){ie=R.createDocument(He,"template",null);try{ie.documentElement.innerHTML=Jt?U:Be}catch{}}let ut=ie.body||ie.documentElement;return D&&X&&ut.insertBefore(r.createTextNode(X),ut.childNodes[0]||null),He===rt?k.call(ie,K?"html":"body")[0]:K?ie.documentElement:ut},ic=function(D){return y.call(D.ownerDocument||D,D,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},mf=function(D){return D instanceof g&&(typeof D.nodeName!="string"||typeof D.textContent!="string"||typeof D.removeChild!="function"||!(D.attributes instanceof l)||typeof D.removeAttribute!="function"||typeof D.setAttribute!="function"||typeof D.namespaceURI!="string"||typeof D.insertBefore!="function"||typeof D.hasChildNodes!="function")},yu=function(D){return typeof i=="object"?D instanceof i:D&&typeof D=="object"&&typeof D.nodeType=="number"&&typeof D.nodeName=="string"},Mn=function(D,ie,X){E[D]&&E2(E[D],Be=>{Be.call(t,ie,X,de)})},sc=function(D){let ie;if(Mn("beforeSanitizeElements",D,null),mf(D))return Ra(D),!0;let X=H(D.nodeName);if(Mn("uponSanitizeElement",D,{tagName:X,allowedTags:L}),D.hasChildNodes()&&!yu(D.firstElementChild)&&(!yu(D.content)||!yu(D.content.firstElementChild))&&$t(/<[/\w]/g,D.innerHTML)&&$t(/<[/\w]/g,D.textContent))return Ra(D),!0;if(!L[X]||q[X]){if(!q[X]&&cc(X)&&(Y.tagNameCheck instanceof RegExp&&$t(Y.tagNameCheck,X)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(X)))return!1;if(Le&&!st[X]){let Be=A(D)||D.parentNode,ut=h(D)||D.childNodes;if(ut&&Be){let vt=ut.length;for(let Bt=vt-1;Bt>=0;--Bt)Be.insertBefore(b(ut[Bt],!0),C(D))}}return Ra(D),!0}return D instanceof s&&!df(D)||(X==="noscript"||X==="noembed")&&$t(/<\/no(script|embed)/i,D.innerHTML)?(Ra(D),!0):(re&&D.nodeType===3&&(ie=D.textContent,ie=gn(ie,B," "),ie=gn(ie,P," "),ie=gn(ie,w," "),D.textContent!==ie&&(kr(t.removed,{element:D.cloneNode()}),D.textContent=ie)),Mn("afterSanitizeElements",D,null),!1)},lc=function(D,ie,X){if(xe&&(ie==="id"||ie==="name")&&(X in r||X in $e))return!1;if(!(G&&!ae[ie]&&$t(_,ie))&&!(Q&&$t(O,ie))){if(!$[ie]||ae[ie]){if(!(cc(D)&&(Y.tagNameCheck instanceof RegExp&&$t(Y.tagNameCheck,D)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(D))&&(Y.attributeNameCheck instanceof RegExp&&$t(Y.attributeNameCheck,ie)||Y.attributeNameCheck instanceof Function&&Y.attributeNameCheck(ie))||ie==="is"&&Y.allowCustomizedBuiltInElements&&(Y.tagNameCheck instanceof RegExp&&$t(Y.tagNameCheck,X)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(X))))return!1}else if(!Dn[ie]&&!$t(x,gn(X,M,""))&&!((ie==="src"||ie==="xlink:href"||ie==="href")&&D!=="script"&&C2(X,"data:")===0&&pa[D])&&!(fe&&!$t(N,gn(X,M,"")))&&X)return!1}return!0},cc=function(D){return D.indexOf("-")>0},dc=function(D){let ie,X,Be,ut;Mn("beforeSanitizeAttributes",D,null);let{attributes:vt}=D;if(!vt)return;let Bt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:$};for(ut=vt.length;ut--;){ie=vt[ut];let{name:lt,namespaceURI:Oa}=ie;if(X=lt==="value"?ie.value:w2(ie.value),Be=H(lt),Bt.attrName=Be,Bt.attrValue=X,Bt.keepAttr=!0,Bt.forceKeepAttr=void 0,Mn("uponSanitizeAttribute",D,Bt),X=Bt.attrValue,Bt.forceKeepAttr||(Fi(lt,D),!Bt.keepAttr))continue;if(!he&&$t(/\/>/i,X)){Fi(lt,D);continue}re&&(X=gn(X,B," "),X=gn(X,P," "),X=gn(X,w," "));let mc=H(D.nodeName);if(lc(mc,Be,X)){if(Z&&(Be==="id"||Be==="name")&&(Fi(lt,D),X=Ae+X),S&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!Oa)switch(f.getAttributeType(mc,Be)){case"TrustedHTML":{X=S.createHTML(X);break}case"TrustedScriptURL":{X=S.createScriptURL(X);break}}try{Oa?D.setAttributeNS(Oa,lt,X):D.setAttribute(lt,X),qc(t.removed)}catch{}}}Mn("afterSanitizeAttributes",D,null)},gf=function D(ie){let X,Be=ic(ie);for(Mn("beforeSanitizeShadowDOM",ie,null);X=Be.nextNode();)Mn("uponSanitizeShadowNode",X,null),!sc(X)&&(X.content instanceof u&&D(X.content),dc(X));Mn("afterSanitizeShadowDOM",ie,null)};return t.sanitize=function(D){let ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X,Be,ut,vt;if(Jt=!D,Jt&&(D=""),typeof D!="string"&&!yu(D))if(typeof D.toString=="function"){if(D=D.toString(),typeof D!="string")throw Sr("dirty is not a string, aborting")}else throw Sr("toString is not a function");if(!t.isSupported)return D;if(se||Pe(ie),t.removed=[],typeof D=="string"&&(Re=!1),Re){if(D.nodeName){let Oa=H(D.nodeName);if(!L[Oa]||q[Oa])throw Sr("root node is forbidden and cannot be sanitized in-place")}}else if(D instanceof i)X=oc(""),Be=X.ownerDocument.importNode(D,!0),Be.nodeType===1&&Be.nodeName==="BODY"||Be.nodeName==="HTML"?X=Be:X.appendChild(Be);else{if(!ce&&!re&&!K&&D.indexOf("<")===-1)return S&&ke?S.createHTML(D):D;if(X=oc(D),!X)return ce?null:ke?U:""}X&&me&&Ra(X.firstChild);let Bt=ic(Re?D:X);for(;ut=Bt.nextNode();)sc(ut)||(ut.content instanceof u&&gf(ut.content),dc(ut));if(Re)return D;if(ce){if(ye)for(vt=T.call(X.ownerDocument);X.firstChild;)vt.appendChild(X.firstChild);else vt=X;return($.shadowroot||$.shadowrootmod)&&(vt=v.call(n,vt,!0)),vt}let lt=K?X.outerHTML:X.innerHTML;return K&&L["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&$t(Qc,X.ownerDocument.doctype.name)&&(lt=" +`+lt),re&&(lt=gn(lt,B," "),lt=gn(lt,P," "),lt=gn(lt,w," ")),S&&ke?S.createHTML(lt):lt},t.setConfig=function(D){Pe(D),se=!0},t.clearConfig=function(){de=null,se=!1},t.isValidAttribute=function(D,ie,X){de||Pe({});let Be=H(D),ut=H(ie);return lc(Be,ut,X)},t.addHook=function(D,ie){typeof ie=="function"&&(E[D]=E[D]||[],kr(E[D],ie))},t.removeHook=function(D){if(E[D])return qc(E[D])},t.removeHooks=function(D){E[D]&&(E[D]=[])},t.removeAllHooks=function(){E={}},t}var _e=Zc();var O2=vu.alert;m();m();var Xc={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",curentPlan:"\u5F53\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52A8\u7EED\u671F",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",sponsorLabel:"$1 \u8D77\u8D5E\u52A9\u5F00\u53D1\u8005",help:"\u5E2E\u52A9",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D\uFF0C\u518D\u70B9\u51FB\u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D\u5373\u53EF\u8BBE\u7F6E",browserShortcutsNoteForChrome:"\u7C7BChrome \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762\uFF0C\u5728`\u7BA1\u7406\u5FEB\u6377\u952E`\u9762\u677F(`chrome://extensions/shortcuts`)\u8BBE\u7F6E\uFF0C\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8DF3\u8F6C\u5230\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E\u683C\u5F0F\u4E3A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1: \u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1 & PDF\u6587\u6863\u7FFB\u8BD1","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7F51\u9875\u53CC\u8BED\u7FFB\u8BD1\u6269\u5C55\uFF0C\u540C\u65F6\u652F\u6301 PDF \u7FFB\u8BD1\uFF0C\u53CC\u8BED Epub \u7535\u5B50\u4E66\u5236\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u817E\u8BAF\u7FFB\u8BD1\u7B49\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\uFF0C\u514D\u8D39\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8BD1\u5E76\u9690\u85CF\u539F\u6587/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.toggleTranslationMask":"\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.donateContext":"\u4E86\u89E3\u8D5E\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5219\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875(\u4EC5\u8BD1\u6587)/\u663E\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7","fingers.0":"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478",mouseHoldKey:"+ {key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoverHoldKey:"\u9F20\u6807\u60AC\u505C\u540C\u65F6\u6309\u4E0B\u5FEB\u6377\u952E\u7FFB\u8BD1\u6BB5\u843D","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u6587\u6863",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",goAdvancedSettings:"\u53BB\u8FDB\u9636\u8BBE\u7F6E\u9875",goAdvancedInterfaceSettings:"\u53BB\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u8BBE\u7F6E\u9875\u9762",advanced:"\u8FDB\u9636\u8BBE\u7F6E",advancedDescription:"\u4E00\u822C\u65E0\u9700\u8BBE\u7F6E\uFF0C\u4FDD\u6301\u9ED8\u8BA4\u5373\u53EF\u3002\u4EC5\u5BF9\u4E8E\u66F4\u4E13\u4E1A\u7684\u7528\u6237\uFF0C\u63D0\u4F9B\u66F4\u4E2A\u6027\u5316\u7684\u8BBE\u7F6E\u9879\u3002",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00","display both the original text and the translation":"\u540C\u65F6\u663E\u793A\u539F\u6587\u548C\u8BD1\u6587","keyboard shortcuts":"\u952E\u76D8\u5FEB\u6377\u952E",modify:"\u4FEE\u6539\u5FEB\u6377\u952E",reset:"\u91CD\u7F6E",close:"\u5173\u95ED",homepage:"\u4E3B\u9875",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",changeToOnlyTranslationMode:"\u5207\u6362\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u5207\u6362\u4E3A\u53CC\u8BED\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",unknownError:"\u672A\u77E5\u9519\u8BEF",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",needActionForOptions:"(\u9700\u8BBE\u7F6E)",translationEngine:"\u5F15\u64CE\u9009\u9879",sourceLanguage:"\u539F\u6587\u8BED\u8A00",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",forThisSite:"\u5F53\u524D\u7F51\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1 {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8BD1 {language}",alwaysTranslateSomeSite:"\u603B\u662F\u7FFB\u8BD1 {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8BD1 {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u6DFB\u52A0",default:"\u9ED8\u8BA4",forThisLanguage:"\u9488\u5BF9\u8BE5\u8BED\u8A00\uFF1A","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91","translate other languages into specific language":"\u5C06\u5176\u4ED6\u8BED\u8A00\u7FFB\u8BD1\u4E3A\u4F60\u8BBE\u7F6E\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1",language:"\u8BED\u8A00","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",Error:"\u9519\u8BEF",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",interface:"\u754C\u9762\u8BBE\u7F6E",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8BD1\u9875\u9762\u6807\u9898","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1",enableUserscriptPagePopup:"\u5728\u9875\u9762\u4E0A\u663E\u793A\u60AC\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528\u5FEB\u6377\u952E/{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8BD1\u6587\u6837\u5F0F",currentUrl:"\u5F53\u524D\u7F51\u5740",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664","languages.auto":"\u81EA\u52A8\u68C0\u6D4B",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",upload:"\u4E0A\u4F20",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",download:"\u4E0B\u8F7D",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",deleteFail:"\u5220\u9664\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",backupToCloudDescription:"\u624B\u52A8\u4E0A\u4F20\u6216\u6062\u590D\u5907\u4EFD\u6587\u4EF6\uFF0C\u6700\u591A\u5141\u8BB83\u4E2A\u4E0D\u540C\u7684\u5907\u4EFD",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",updatedAt:"\u66F4\u65B0\u4E8E {date}",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u9891\u9053",joinTelegramChannel:"\u5173\u6CE8 Telegram \u9891\u9053\u83B7\u53D6\u6700\u65B0\u66F4\u65B0",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",autoSync:"\u81EA\u52A8\u5B9A\u65F6\u540C\u6B65",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863","edit border color":"\u4FEE\u6539\u8FB9\u6846\u989C\u8272",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",enableSubtitle:"\u5F00\u542F\u5B57\u5E55\u7FFB\u8BD1",enableSubtitleDescription:"\u9488\u5BF9 youtube \u7B49\u7F51\u7AD9\u7684\u5B57\u5E55\u533A\u57DF\u5F00\u542F\u7FFB\u8BD1",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",enableSearchEnhancement:"\u542F\u7528\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A",enableSearchEnhancementDescription:"\u5F00\u542F\u540E\uFF0C\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\u793E\u533A\uFF09\u53F3\u8FB9\u680F\u81EA\u52A8\u663E\u793A\u5BF9\u5E94\u82F1\u6587\u5173\u952E\u8BCD\u7684\u201C\u8C37\u6B4C\u65B0\u95FB\u201D\u641C\u7D22\u7ED3\u679C\u3002",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerMinute":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u5206\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u8350\uFF09, \u5C06\u4F1A\u5728\u5355\u72EC\u4F5C\u4E3A\u4E00\u6BB5\u53D1\u9001\u7ED9 OpenAI","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740",enabledExtension:"\u542F\u7528\u6269\u5C55",clickToDisableExtension:"\u70B9\u51FB\u7981\u7528\u6269\u5C55",clickToEnableExtension:"\u70B9\u51FB\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",modifyMouseHoverKey:"\u4FEE\u6539\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u8BBE\u7F6E",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",disableTint:"* \u4F60\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u542F\u7528\u3002",searchEnhancementNotes:"\u6211\u4EEC\u53D1\u73B0\uFF0C\u4E2D\u6587\u5173\u952E\u8BCD\u548C\u82F1\u6587\u5173\u952E\u8BCD\u7684\u65B0\u95FB\u7ED3\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u542F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u529F\u80FD\u540E\uFF0C\u6211\u4EEC\u4F1A\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\u7F51\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52A8\u7528\u82F1\u6587\u4E3A\u4F60\u641C\u7D22\u540C\u6837\u7684\u5173\u952E\u8BCD\u5E76\u5C55\u793A\u5728\u53F3\u4FA7\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8BE5\u529F\u80FD\u7684\u8BDD\uFF0C\u53EF\u4EE5\u9009\u62E9\u7981\u7528\u5B83\u3002",option:"\u8BBE\u7F6E",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",needLoginAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u81EA\u5B9A\u4E49)",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",onetime_7day:"7 \u5929\u4F53\u9A8C\u5305",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradePlan:"\u70B9\u6B64\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL \u548C OpenAI \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8BD1",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u8BBE\u7F6E\u5176\u4ED6\u5FEB\u6377\u952E\u6765\u89E6\u53D1\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1"};var e4={nologin:"\u672A\u767B\u9304",login:"\u767B\u9304",manageAccount:"\u7BA1\u7406\u8CEC\u6236",logout:"\u9000\u51FA",curentPlan:"\u7576\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u671F",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u64CA\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u8AAA\u660E",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u9644\u52A0\u5143\u4EF6\u7BA1\u7406\u9801\u9762 \u300Cabout:addons\u300D\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u5716\u793A\u300D\uFF0C\u518D\u9EDE\u9078\u300C\u7BA1\u7406\u64F4\u5145\u5957\u4EF6\u5FEB\u901F\u9375\u300D\u5373\u53EF\u8A2D\u5B9A",browserShortcutsNoteForChrome:"Chromium \u6838\u5FC3\u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u64F4\u5145\u529F\u80FD\u7BA1\u7406\u9801\u9762\uFF0C\u5728\u300C\u9375\u76E4\u5FEB\u901F\u9375\u300D\u9801\u9762(chrome://extensions/shortcuts)\u8A2D\u5B9A\uFF0C\u9EDE\u9078\u4E0B\u65B9\u6309\u9215\u524D\u5F80\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u901F\u9375\u683C\u5F0F\u70BA\uFF1A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F: \u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F & PDF\u6587\u6A94\u7FFB\u8B6F","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7DB2\u9801\u96D9\u8A9E\u7FFB\u8B6F\u64F4\u5C55\uFF0C\u540C\u6642\u652F\u6301 PDF \u7FFB\u8B6F\uFF0C\u96D9\u8A9E Epub \u96FB\u5B50\u66F8\u88FD\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u9A30\u8A0A\u7FFB\u8B6F\u7B49\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF0C\u514D\u8CBB\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8B6F\u4E26\u96B1\u85CF\u539F\u6587/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.toggleTranslationMask":"\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.donateContext":"\u4E86\u89E3\u8D0A\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u5247\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u6642\u89F8\u78B0\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801(\u50C5\u8B6F\u6587)/\u986F\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304","fingers.0":"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478",mouseHoldKey:"+ {key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u6377\u9375(\u6253\u958B\u8A2D\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoverHoldKey:"\u9F20\u6A19\u6ED1\u904E\u540C\u6642\u6309\u4E0B X \u9375\u7FFB\u8B6F\u6BB5\u843D","mouse-translate":"\u9F20\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",goAdvancedSettings:"\u524D\u5F80\u9032\u968E\u8A2D\u5B9A\u9801\u9762",goAdvancedInterfaceSettings:"\u524D\u5F80\u81EA\u8A02\u8A2D\u5B9A\u9801\u9762",advanced:"\u9032\u968E\u8A2D\u5B9A",advancedDescription:"\u6B63\u5E38\u60C5\u6CC1\u7121\u9700\u8A2D\u5B9A\uFF0C\u4FDD\u6301\u9810\u8A2D\u5373\u53EF\u3002\u50C5\u91DD\u5C0D\u66F4\u5C08\u696D\u7684\u4F7F\u7528\u8005\uFF0C\u63D0\u4F9B\u66F4\u500B\u4EBA\u5316\u7684\u8A2D\u5B9A\u9805\u76EE\u3002",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00","display both the original text and the translation":"\u540C\u6642\u986F\u793A\u539F\u6587\u548C\u8B6F\u6587","keyboard shortcuts":"\u9375\u76E4\u5FEB\u901F\u9375",modify:"\u8B8A\u66F4\u5FEB\u901F\u9375",reset:"\u91CD\u8A2D",close:"\u95DC\u9589",homepage:"\u9996\u9801",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",changeToOnlyTranslationMode:"\u5207\u63DB\u70BA\u50C5\u986F\u793A\u8B6F\u6587",changeToDualTranslationMode:"\u5207\u63DB\u70BA\u96D9\u8A9E\u7FFB\u8B6F",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:"\u672A\u77E5\u7684\u932F\u8AA4",canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u9078\u9805",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",needActionForOptions:"(\u9700\u8A2D\u5B9A)",translationEngine:"\u5F15\u64CE\u9078\u9805",sourceLanguage:"\u539F\u6587\u8A9E\u8A00",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",forThisSite:"\u7576\u524D\u7DB2\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8B6F {language}",alwaysTranslateSomeSite:"\u7E3D\u662F\u7FFB\u8B6F {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8B6F {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u65B0\u589E",default:"\u9810\u8A2D",forThisLanguage:"\u91DD\u5C0D\u8A72\u8A9E\u8A00\uFF1A","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F","translate other languages into specific language":"\u5C07\u5176\u5B83\u8A9E\u8A00\u7FFB\u8B6F\u70BA\u4F60\u8A2D\u5B9A\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9",language:"\u8A9E\u8A00","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",Error:"\u932F\u8AA4",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",interface:"\u4ECB\u9762\u8A2D\u5B9A",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65",syncToAccount:"\u540C\u6B65\u5230\u8CEC\u6236",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u8CEC\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u8A2D\u5099\u4E4B\u9593\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u8CEC\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u8CEC\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8B6F","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9E\u99AC\u905C\u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8B6F\u9801\u9762\u6A19\u984C","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F",enableUserscriptPagePopup:"\u5728\u9801\u9762\u4E0A\u986F\u793A\u61F8\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528\u5FEB\u901F\u9375/{touch}\u518D\u6B21\u986F\u793A\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5EFA\u8B70\u5C07\u672C\u8A2D\u5B9A\u9801\u9762\u52A0\u5165\u81F3\u6211\u7684\u6700\u611B","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8B6F\u6587\u6A23\u5F0F",currentUrl:"\u76EE\u524D\u7DB2\u5740",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6E96\u3002",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",upload:"\u4E0A\u50B3",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",download:"\u4E0B\u8F09",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",deleteFail:"\u522A\u9664\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",backupToCloudDescription:"\u624B\u52D5\u4E0A\u50B3\u6216\u9084\u539F\u5099\u4EFD\u6A94\u6848\uFF0C\u6700\u591A\u5141\u8A31 3 \u500B\u4E0D\u540C\u7684\u5099\u4EFD",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",updatedAt:"\u66F4\u65B0\u65BC {date}",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u4EEC\u7684<3>Twitter\uFF0C<4>Telegram \u983B\u9053\u4EE5\u53CA\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u90F5\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u983B\u9053",joinTelegramChannel:"\u95DC\u6CE8 Telegram \u983B\u9053\u77AD\u89E3\u66F4\u65B0\u8CC7\u8A0A",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",autoSync:"\u81EA\u52D5\u5B9A\u6642\u540C\u6B65",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6","edit border color":"\u8B8A\u66F4\u908A\u6846\u8272\u5F69",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",enableSubtitle:"\u958B\u555F\u5B57\u5E55\u7FFB\u8B6F",enableSubtitleDescription:"\u91DD\u5C0D youtube \u7B49\u7DB2\u7AD9\u7684\u5B57\u5E55\u5340\u57DF\u958B\u555F\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",enableSearchEnhancement:"\u958B\u555F\u641C\u7D22\u589E\u5F37",enableSearchEnhancementDescription:"\u4E2D\u6587\u641C\u7D22\u8C37\u6B4C\u6703\u5728\u53F3\u908A\u51FA\u73FE\u82F1\u6587\u7248\u8C37\u6B4C\u65B0\u805E",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerMinute":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u5206\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u4EFD\u50B3\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u85A6\uFF09, \u5C07\u6703\u5728\u55AE\u7368\u4F5C\u70BA\u4E00\u6BB5\u767C\u9001\u7D66 OpenAI","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u50B3\u9001\u767C\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",clickToDisableExtension:"\u9EDE\u9078\u505C\u7528\u5957\u4EF6",clickToEnableExtension:"\u9EDE\u9078\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u9F20\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u7F6E\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u5B57\u7B26\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8B58\u5225\u70BA\u89F8\u767C\u5B57\u7B26\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u7981\u7528\u78BA\u8A8D",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",disableTint:"* \u60A8\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u555F\u7528\u3002",searchEnhancementNotes:"\u6211\u5011\u767C\u73FE\uFF0C\u4E2D\u6587\u95DC\u9375\u8A5E\u548C\u82F1\u6587\u95DC\u9375\u8A5E\u7684\u65B0\u805E\u7D50\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u555F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u4FE1\u606F\u589E\u5F37\u529F\u80FD\u5F8C\uFF0C\u6211\u5011\u6703\u5728\u652F\u6301\u7684\u7DB2\u7AD9\uFF08\u8C37\u6B4C\u65B0\u805E\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u95DC\u9375\u8A5E\uFF09\uFF0C\u96EA\u7403\uFF0C\u6771\u65B9\u8CA1\u5BCC\u7DB2\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52D5\u7528\u82F1\u6587\u70BA\u4F60\u641C\u7D22\u540C\u6A23\u7684\u95DC\u9375\u8A5E\u4E26\u5C55\u793A\u5728\u53F3\u5074\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8A72\u529F\u80FD\u7684\u8A71\uFF0C\u53EF\u4EE5\u9078\u64C7\u7981\u7528\u5B83\u3002",option:"\u9078\u9805",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL \u548C OpenAI \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8B6F",currentAccount:"\u7576\u524D\u8CEC\u6236"};var t4={nologin:"Not logged in",login:"Login",manageAccount:"Manage Account",logout:"Logout",curentPlan:"Current Plan",endAt:"Expires",endAuto:"Auto Renew",lineBreakMaxTextCount:"Maximum number of characters allowed per sentence after line break","translate-pdf":"Click to translate PDF","noSupportTranslate-pdf":"The script is not supported, please use a plugin.","translate-firefox-local-pdf":"Click to upload PDF",enableLineBreak:"Whether to turn on automatic line wrapping for long paragraphs",sponsorLabel:"Sponsoring developers from $1 (monthly or one-time)",help:"Help",browserShortcutsNoteForFirefox:`To modify the shortcut key in Firefox browser, you need to open the extension management page 'about: addons', then click "Settings", and then click "Management shortcut key" to set it`,browserShortcutsNoteForChrome:"To modify the shortcut key in Chrome browser, you need to open the extension management page` chrome://extensions/shortcuts `) Settings, click the button below to jump to the shortcut key management page.",browserShortcutsSucks:"Please enter the shortcut key manually in the format:",enableLineBreakDescription:"After opening, a line break will be inserted at the end of each sentence in a long paragraph for easy reading","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate: Web Page&PDF Translation","browser.brandDescription":"Bilingual web page translation, also supports PDF translation, bilingual Epub eBook translation, free to use.","browser.toggleTranslatePage":"Toggle Translate Page","browser.toggleTranslateTheWholePage":"Toggle Translate the Whole Page","browser.toggleOnlyTransation":"Toggle Translate and Hide Original Text","browser.toggleTranslateToThePageEndImmediately":"Toggle Translate to the Bottom of the Page Immediately","browser.toggleTranslateTheMainPage":"Toggle Translate the Main Page","browser.openOptionsPage":"Open Settings Page","browser.toggleTranslationMask":"Toggle translation mask style","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-book","browser.openEbookBuilder":"Make Dual EPUB ebook","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.donateContext":"Sponsor Benefits","browser.translateLocalSubtitleFile":"Translate Subtitle File",confirmResetConfig:"Are you sure you want to reset the settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Create right button menu",toggleBeta:"Enable Beta experimental features",betaDescription:"Enable features that are still experimental, and translation services that are in testing. Join the <1>Telegram group to learn more.",translationLineBreakSettingDescription:"The always line break feature is suitable for layouts with less content, making the layout more neat and tidy. (Use smart line breaks for long paragraphs with more content (more than {count} characters) for saving space)",tempTranslateDomainTitle:"Open the translation time temporarily",tempTranslateDomainDescription:"When a page is translated manually, turn it temporarily on as automatic translation",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",toggleTranslatePageWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide translation display",toggleTranslationMaskWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide the blur effect of the translation",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"Multi-finger touch to show/hide only translation display",addUrlDescription:"The domain name is available and wildcard is supported e.g.: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import configuration from file",export:"Export to file",toggleDebug:"Print debug logs on the console","fingers.0":"Close","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch",mouseHoldKey:"+ {key} translate this paragraph",mouseHoldKeyAuto:"Translate the paragraph directly",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate this paragraph",mouseHoverHoldKey:"Mouse over and press X key to translate paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"All settings reset successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",goAdvancedSettings:"Go to Advanced Settings Page",goAdvancedInterfaceSettings:"Go to Advanced Custom Settings Page",advanced:"Advanced",advancedDescription:"Normally no settings are needed, keep the default. More personalized settings are provided for professional users only.",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"Translate to the bottom of the page immediately after opening the page?",feedback:"Feedback",toggleTranslatePage:"Toggle Translate",translateToThePageEndImmediatelyDescription:"Enabled will translate from the top to the bottom of the page immediately after opening. Disable will translate while reading. (Not recommended to enable)","translate all areas of the page":"Whether to translate all areas of the web page",translationAreaDescription:"When enabled, all areas of the entire web page will be translated. Disabled will use the default smart recognition and translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Directly translate the number of characters in front of the page without waiting to scroll to the visible area","interface language":"Interface language","display both the original text and the translation":"Display both the original text and the translation","keyboard shortcuts":"Keyboard shortcuts",modify:"Edit",reset:"Reset",close:"Close",homepage:"Home Page",more:"More",moreOptions:"Expand more custom settings",translateTheWholePage:"Translate the whole page area",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Dual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"Main areas of intelligent translation","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly implement the interface of the Greasemonkey extension, please use another browser that <1>supports the Greasemonkey extension such as (Firefox Nightly version)",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:"Unknown Error",canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha enabled successfully",disableAlphaSuccess:"Alpha has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(to set up)",goSettings:"to set up",needActionForOptions:"(need to set)",translationEngine:"Engine Options",sourceLanguage:"Original language",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",forThisSite:"Site:",alwaysTranslateSomeLanguage:"Always translate {language}",neverTranslateSomeLanguage:"Never translate {language}",alwaysTranslateSomeSite:"Always translate {hostname}",neverTranslateSomeSite:"Never translate {hostname}",alwaysTranslateSomeSiteOrWildSite:"Always translate this site",alwaysTranslateSomePage:"Always translate this page",add:"Add",default:"Default",forThisLanguage:"For This Language:","add url":"Add URL",edit:"Edit","translate other languages into specific language":"Translate other languages into the language you set","select translation service":"Select a translation service",language:"Language","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",Error:"Error",allowCacheTranslations:"Enable local translation caching (reduce translation requests for duplicate paragraphs)","translation display":"Translation display style","select diplay style":"Please refer to the following examples",interface:"Interface Settings",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dashed underline","translationTheme.dotted":"Dotted Underline","translationTheme.dashedBorder":"Dashed Border","translationTheme.solidBorder":"Dashed Border","translationTheme.underline":"Straight underline","translationTheme.mask":"Blur effect","translationTheme.opacity":"Opacity effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weakening","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dashed underline","translationTheme.nativeDashed":"System Dash Underline","translationTheme.nativeDotted":"System Dotted Underline","translationTheme.nativeUnderline":"System Straight Line Underline","translationTheme.wavy":"Squiggle","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeeplX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"Translate page title","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped",enableUserscriptPagePopup:"Always show Popup windows on the page",enableUserscriptPagePopupDescription:"Three-finger touch to show the Popup.","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",currentUrl:"Current URL",confirm:"Save",cancel:"Cancel",delete:"Delete","languages.auto":"Detect Language",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",authFail:"Authorization Failed",syncTitle:"Please select a file operation",import_hint:"Import",upload:"Upload",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",download:"Download",importSuccess:"Upload Success",importFail:"Import Failed",deleteFail:"Delete Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",backupToCloudDescription:"Upload or restore backup files manually, up to 3 different backups",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",updatedAt:"Updated at {date}",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. You can choose to subscribe to <6>Pro membership to use the out-of-the-box DeepL and OpenAI translation.

You can also follow out <3>Twitter, <4>Telegram Channel, and <5>Email Subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free and we hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. ",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",qqCommunities:"QQ Channel",joinTelegramChannel:"Subscribe to our Telegram channel to get the latest updates",feedbackAndJoin:"Feedback",autoSync:"Auto-Time Sync",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization","edit border color":"Edit border color",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",enableSubtitle:"enableSubtitleTranslation",enableSubtitleDescription:"Enable translations for subtitle areas on sites like youtube",isTranslateTitleDescription:"When enabled, the page title will be translated",enableSearchEnhancement:"Enable Search Enhancement",enableSearchEnhancementDescription:'After enabling, the right sidebar will automatically display "Google News" search results for corresponding English keywords on supported websites (such as Google News, Google Search (partial keywords), Xueqiu, East Money, Futu, Tiger Community).',verifyService:"Verify service",verified:"Successful","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerMinute":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next minute. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"Requests exceed this limit will be queued until the next seconds.","description.prompt":"Send as a user to OpenAI conversation, where {{text}} indicates the text of the paragraph,{{from}} indicates the language of the paragraph,{{to}} indicates the target language, you can omit {{text}}, if so, it'll be sent as a separated message","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"Send the conversation to OpenAI as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the original language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"Default is\uFF1Ageneral. Only set up if there is an API console open domain translation, support fields see <1>Here ","field.scene":"Scene","description.scene":"Default is\uFF1Ageneral. Only set up if there is an API console open Machine Translation Professional, support fields see<1>Here","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please provide a URL with the specific path.",enabledExtension:"Enable extensions",clickToDisableExtension:"Click to disable extension",clickToEnableExtension:"Click to enable the extension",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter customization content",inputOptions:"Writing",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter for translating part of the input box.",inputStartingTriggerKeyDescription:"When you don't need to translate the entire input box, the delimiter allows you to only translate the portion from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means only translating the portion from {startingKey}ja to the end of the input box.",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting is no prefix required, the partial text translation function of the input box cannot be used temporarily.",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Start the translation by quickly pressing 3 times {trailingKey}.",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time (milliseconds) for the input to end the combo trigger",spaceKey:"",noneKey:"Translate the entire text box without prefixes",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement in the following URL",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",clickToSeeQuickDemo:"Click to expand the 30s tutorial video",inputHelperInfo:`Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001". -Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.`,reloadCurrentPage:"Please refresh the current page before starting translation",noLocalFilePermissionForPDF:"No permission to read local files. Please click the button above and upload the local file.",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate the current page",retryAllParagraphs:"Retry all paragraphs",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Noops, something went wrong",disableConfirm:"Search Enhancement Settings",disableOnce:"Disable Once",disableGlobal:"Disable Forever",disableTint:"* You can re-enable in {option}.",searchEnhancementNotes:"We have discovered notable disparities in news results between Chinese and English keywords. By activating the immersive translation Bilingual Display Enhancement feature, we will automatically search for equivalent English keywords and display them on the right side of supported websites (e.g., Google News, Google Search (partial keywords), xueqiu, East Money, Futu, Tiger). You can disable this feature if you don't need it.",option:"Settings",saveSettings:"Save",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"Enable quick press 3 times {trailingKey}, directly translate the entire input box to {inputTargetLanguage}.",enableInputTranslationWithoutTriggerKeyDescription:"To specify the target language, please add a language code at the beginning, such as: ja Hello world",mouseHoverShortcutPlaceholder:"e.g. Shift",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",needLoginAction:"(Premium or custom)",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",daily:"Daily Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",profile:"Profile",billing:"Billing",onetime_7day:"7-day Trial Pack",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt} and will not auto-renew",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly pro membership",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"Current plan: {plan}, will expire on {endAt}, will not auto-renew after expiration.
<1>Enable consecutive annual plan",upgradePlan:"Click here to upgrade to Pro membership",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",upgradeToPro:"Upgrade to Pro","popup.openPro":"Enjoy unrestricted access to DeepL and OpenAI translations after upgrading to Pro Membership. Click here to upgrade","popup.openProForPro":"You are a Pro member, you can directly use DeepL and OpenAI translations",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You have just triggered the immersive translate of the input box by quickly tapping the space key 3 times. The content of the input box will be translated into the default target language.

If this was a mistake, don't worry. You can choose to disable it this time or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show again",disableInputTranslationTips:"* You can also set other shortcuts in {option}, {learnMore}.",learnMore:"Learn more",continueEnalbeInputTranslation:"Continue to enable input translation"};var j2=[{code:"zh-CN",messages:Xc},{code:"zh-TW",messages:e4},{code:"en",messages:t4}];var Fu="immersiveTranslateBingGlobalState",Ot={};for(let e of j2)Ot[e.code]=e.messages;var fa="Immersive Translate",J="immersive-translate";var ge="immersiveTranslate";var a4=ge+"GoogleAccessToken",r4=ge+"AuthFlow";var U2=ge+"AuthState",Pu=ge+"IframeMessage",iE=ge+"WaitForRateLimit",_u=ge+"DocumentMessageAsk",yt=ge+"DocumentMessageTellThirdParty",Bu=ge+"showError",u4=ge+"DocumentMessageThirdPartyTell",o4=ge+"DocumentMessageEventUpload",Ru=ge+"DocumentMessageHandler",z2=`${ge}Container`,i4=`${ge}SpecifiedContainer`,Wn="buildinConfig",Dr="localConfig",ns="openOptionsPage",as="openAboutPage";var rs="openEbookViewer",us="openEbookBuilder";var Ou=`${ge}PageTranslatedStatus`,sE=`${ge}PageUrlChanged`,$n=`${ge}ReceiveCommand`,s4=ge+"LastUseMouseHoverTime",os=ge+"LastUseInputTime",fn=ge+"LastUseManualTranslatePageTime",lE=`${ge}PopupReceiveMessage`,H2="immersivetranslate.com",q2="config.immersivetranslate.com",cE=`https://${H2}/`,Lr=`https://${q2}/default_config.json`,dE=`${ge}Mark`,Mr="immersiveTranslateEffect",It=`${ge}Root`,mE=`data-${J}-effect`,An=`data-${J}-translation-element-mark`,l4=`${ge}TranslationElementMark`,gE=`${ge}TranslatedMark`,pE=`${ge}ParagraphId`,c4=`${ge}LoadingId`,is=`data-${J}-loading-id`,d4=`${ge}ErrorId`,Iu=`data-${J}-error-id`,W2=`${ge}AtomicBlockMark`,m4=`${ge}ExcludeMark`,fE=`data-${J}-exclude-mark`,$2=`${ge}StayOriginalMark`,hE=`${ge}PreWhitespaceMark`,Nu=`${ge}InlineMark`,g4=`${ge}BlockMark`,bE=`${ge}Left`,yE=`${ge}Right`,xE=`${ge}Width`,EE=`${ge}Height`,TE=`${ge}Top`,CE=`${ge}FontSize`,Fr="lastRunTime",wE=`${ge}GlobalStyleMark`,ha=["@","#"],ju=" --- ",p4=` -`,$t=`${J}-target-wrapper`,vE=`${J}-pdf-target-container`,f4=`${J}-target-inner`,AE=`${J}-source-wrapper`,ss=`${J}-target-translation-block-wrapper`,kE=`${J}-root-translation-theme`,Ua=`${ge}RootTranslationTheme`,h4=`${J}-target-translation-vertical-block-wrapper`,SE=`${J}-target-translation-pdf-block-wrapper`,b4=`${J}-target-translation-pre-whitespace`,ls=`${J}-target-translation-inline-wrapper`;var y4={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]},Xt=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","ru","ar","it","ms","id","vi","af","th","ur","yue","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","nl","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu"],x4={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Detect Language",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese",zu:"Zulu","":"All Languages"},E4={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B\u8BED\u8A00",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00"},T4={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C\u8A9E\u8A00",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00"};var C4=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/"];var Uu="zh-CN";var n4=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],Bn={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},deepl:{name:"DeepL",homepage:"https://www.deepl.com/translator",docUrl:"https://immersivetranslate.com/docs/services/deepL/",providers:[{name:"pro",nameKey:"deepLProName",descriptionKey:"deepLProDescription",descriptionKeyForNormal:"deeplProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"deepLCustomName",descriptionKey:"deepLCustomDescription",descriptionLink1:"https://www.deepl.com/translator",descriptionLink2:"https://immersivetranslate.com/docs/services/deepL/"}],allProps:[{name:"authKey",providers:["custom"],label:"Auth Key",required:!0,type:"password"}]},openai:{name:"Open AI",homepage:"https://openai.com/api/",docUrl:"https://immersivetranslate.com/docs/services/openai/",providers:[{name:"pro",nameKey:"openaiProName",descriptionKey:"openaiProDescription",descriptionKeyForNormal:"openaiProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"openaiCustomName",descriptionKey:"openaiCustomDescription",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password"},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"openai-model-select",default:"gpt-3.5-turbo-0613",options:[{providers:["custom","pro"],label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{providers:["custom","pro"],label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{providers:["custom"],label:"gpt-4",value:"gpt-4"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.limitPerSecond",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.openai.com/v1/chat/completions",descriptionKey:"description.apiUrl",optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"text",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.`,reloadCurrentPage:"Please refresh the current page before starting translation",noLocalFilePermissionForPDF:"No permission to read local files. Please click the button above and upload the local file.",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate the current page",retryAllParagraphs:"Retry all paragraphs",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Noops, something went wrong",disableConfirm:"Search Enhancement Settings",disableOnce:"Disable Once",disableGlobal:"Disable Forever",disableTint:"* You can re-enable in {option}.",searchEnhancementNotes:"We have discovered notable disparities in news results between Chinese and English keywords. By activating the immersive translation Bilingual Display Enhancement feature, we will automatically search for equivalent English keywords and display them on the right side of supported websites (e.g., Google News, Google Search (partial keywords), xueqiu, East Money, Futu, Tiger). You can disable this feature if you don't need it.",option:"Settings",saveSettings:"Save",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"Enable quick press 3 times {trailingKey}, directly translate the entire input box to {inputTargetLanguage}.",enableInputTranslationWithoutTriggerKeyDescription:"To specify the target language, please add a language code at the beginning, such as: ja Hello world",mouseHoverShortcutPlaceholder:"e.g. Shift",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",needLoginAction:"(Premium or custom)",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",daily:"Daily Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",profile:"Profile",billing:"Billing",onetime_7day:"7-day Trial Pack",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt} and will not auto-renew",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly pro membership",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"Current plan: {plan}, will expire on {endAt}, will not auto-renew after expiration.
<1>Enable consecutive annual plan",upgradePlan:"Click here to upgrade to Pro membership",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",upgradeToPro:"Upgrade to Pro","popup.openPro":"Enjoy unrestricted access to DeepL and OpenAI translations after upgrading to Pro Membership. Click here to upgrade","popup.openProForPro":"You are a Pro member, you can directly use DeepL and OpenAI translations",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You have just triggered the immersive translate of the input box by quickly tapping the space key 3 times. The content of the input box will be translated into the default target language.

If this was a mistake, don't worry. You can choose to disable it this time or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show again",disableInputTranslationTips:"* You can also set other shortcuts in {option}, {learnMore}.",learnMore:"Learn more",continueEnalbeInputTranslation:"Continue to enable input translation"};var U2=[{code:"zh-CN",messages:Xc},{code:"zh-TW",messages:e4},{code:"en",messages:t4}];var Mu="immersiveTranslateBingGlobalState",Ot={};for(let e of U2)Ot[e.code]=e.messages;var fa="Immersive Translate",J="immersive-translate";var ge="immersiveTranslate";var a4=ge+"GoogleAccessToken",r4=ge+"AuthFlow";var z2=ge+"AuthState",Fu=ge+"IframeMessage",iE=ge+"WaitForRateLimit",Pu=ge+"DocumentMessageAsk",yt=ge+"DocumentMessageTellThirdParty",_u=ge+"showError",u4=ge+"DocumentMessageThirdPartyTell",o4=ge+"DocumentMessageEventUpload",Bu=ge+"DocumentMessageHandler",H2=`${ge}Container`,i4=`${ge}SpecifiedContainer`,Wn="buildinConfig",Dr="localConfig",ns="openOptionsPage",as="openAboutPage";var rs="openEbookViewer",us="openEbookBuilder";var Ru=`${ge}PageTranslatedStatus`,sE=`${ge}PageUrlChanged`,$n=`${ge}ReceiveCommand`,s4=ge+"LastUseMouseHoverTime",os=ge+"LastUseInputTime",fn=ge+"LastUseManualTranslatePageTime",lE=`${ge}PopupReceiveMessage`,q2="immersivetranslate.com",W2="config.immersivetranslate.com",cE=`https://${q2}/`,Lr=`https://${W2}/default_config.json`,dE=`${ge}Mark`,Mr="immersiveTranslateEffect",It=`${ge}Root`,mE=`data-${J}-effect`,An=`data-${J}-translation-element-mark`,l4=`${ge}TranslationElementMark`,gE=`${ge}TranslatedMark`,pE=`${ge}ParagraphId`,c4=`${ge}LoadingId`,is=`data-${J}-loading-id`,d4=`${ge}ErrorId`,Ou=`data-${J}-error-id`,$2=`${ge}AtomicBlockMark`,m4=`${ge}ExcludeMark`,fE=`data-${J}-exclude-mark`,K2=`${ge}StayOriginalMark`,hE=`${ge}PreWhitespaceMark`,Iu=`${ge}InlineMark`,g4=`${ge}BlockMark`,bE=`${ge}Left`,yE=`${ge}Right`,xE=`${ge}Width`,EE=`${ge}Height`,TE=`${ge}Top`,CE=`${ge}FontSize`,Fr="lastRunTime",wE=`${ge}GlobalStyleMark`,ha=["@","#"],Nu=" --- ",p4=` +`,Kt=`${J}-target-wrapper`,vE=`${J}-pdf-target-container`,f4=`${J}-target-inner`,AE=`${J}-source-wrapper`,ss=`${J}-target-translation-block-wrapper`,kE=`${J}-root-translation-theme`,za=`${ge}RootTranslationTheme`,h4=`${J}-target-translation-vertical-block-wrapper`,SE=`${J}-target-translation-pdf-block-wrapper`,b4=`${J}-target-translation-pre-whitespace`,ls=`${J}-target-translation-inline-wrapper`;var y4={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]},en=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","ru","ar","it","ms","id","vi","af","th","ur","yue","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","nl","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu"],x4={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Detect Language",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese",zu:"Zulu","":"All Languages"},E4={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B\u8BED\u8A00",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00"},T4={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C\u8A9E\u8A00",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00"};var C4=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/"];var ju="zh-CN";var n4=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],Bn={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},deepl:{name:"DeepL",homepage:"https://www.deepl.com/translator",docUrl:"https://immersivetranslate.com/docs/services/deepL/",providers:[{name:"pro",nameKey:"deepLProName",descriptionKey:"deepLProDescription",descriptionKeyForNormal:"deeplProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"deepLCustomName",descriptionKey:"deepLCustomDescription",descriptionLink1:"https://www.deepl.com/translator",descriptionLink2:"https://immersivetranslate.com/docs/services/deepL/"}],allProps:[{name:"authKey",providers:["custom"],label:"Auth Key",required:!0,type:"password"}]},openai:{name:"Open AI",homepage:"https://openai.com/api/",docUrl:"https://immersivetranslate.com/docs/services/openai/",providers:[{name:"pro",nameKey:"openaiProName",descriptionKey:"openaiProDescription",descriptionKeyForNormal:"openaiProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"openaiCustomName",descriptionKey:"openaiCustomDescription",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password"},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"openai-model-select",default:"gpt-3.5-turbo-0613",options:[{providers:["custom","pro"],label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{providers:["custom","pro"],label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{providers:["custom"],label:"gpt-4",value:"gpt-4"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.limitPerSecond",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.openai.com/v1/chat/completions",descriptionKey:"description.apiUrl",optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"text",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`,optional:!0}]},transmart:{name:"Transmart",homepage:"https://transmart.qq.com/"},chatgpt:{name:"ChatGPT Web(3.5 mobile)",homepage:"https://chat.openai.com",beta:!0},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:"https://immersivetranslate.com/docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text"},{name:"appSecret",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/",docUrl:"https://immersivetranslate.com/docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text"},{name:"secretKey",required:!0,type:"password"}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:"https://immersivetranslate.com/docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text"},{name:"AccessKeySecret",required:!0,type:"password"},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:"https://immersivetranslate.com/docs/services/azure/",allProps:[{name:"region",required:!0,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password"}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:"https://immersivetranslate.com/docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text"},{name:"key",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:"https://immersivetranslate.com/docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text"},{name:"secretAccessKey",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:"https://immersivetranslate.com/docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password"}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:"https://immersivetranslate.com/docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:ha,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:"https://immersivetranslate.com/docs/services/openL/",allProps:[...n4,{type:"password",name:"apikey",required:!0}],props:n4},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",alpha:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:"https://immersivetranslate.com/docs/services/niu",allProps:[{name:"APIKEY",required:!0,type:"password"}]}},zu={type:ge+"ChildFrameToRootFrameIdentifier"},Hu=["Alt","Ctrl","Shift","Auto","Off","OtherCustom","Other"];var cs="user_from_plugin",en="user_info",ds=Fn()||Pn()?"https://api2.immersivetranslate.com":"https://test-api2.immersivetranslate.com",DE=Fn()||Pn()?"https://immersivetranslate.com/accounts/login?from=plugin":"https://test.immersivetranslate.com/accounts/login?from=plugin",ms=Fn()||Pn()?"https://immersivetranslate.com/profile":"https://test.immersivetranslate.com/profile",Pr=Fn()||Pn()?"https://immersivetranslate.com/pricing":"https://test.immersivetranslate.com/pricing",w4=Pr+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",gs=Pr+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",v4=Pr+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal";var za=console,ps=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),a=Math.round(n-this.#e),r=Qt.green;a>1e4?r=Qt.red:a>1e3&&(r=Qt.yellow),za.debug(Qt.dim(fa+" TIMING:"),t,"in",r(a+"ms")),this.#e=n}},_r=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&za.log(Qt.dim(fa+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&za.log(Qt.green(fa+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&za.warn(Qt.yellow(fa+" WARN:"),...t)}error(...t){this.#e<=3&&za.error(Qt.red(fa+" ERROR:"),...t)}fatal(...t){this.#e<=4&&za.error(Qt.red(fa+" FATAL:"),...t)}timing(){return this.level===0?new ps:{reset:()=>{},stop:()=>{}}}},j=new _r;m();m();m();var fs=/iPhone/i,A4=/iPod/i,k4=/iPad/i,S4=/\biOS-universal(?:.+)Mac\b/i,hs=/\bAndroid(?:.+)Mobile\b/i,D4=/Android/i,Ha=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,qu=/Silk/i,Rn=/Windows Phone/i,L4=/\bWindows(?:.+)ARM\b/i,M4=/BlackBerry/i,F4=/BB10/i,P4=/Opera Mini/i,_4=/\b(CriOS|Chrome)(?:.+)Mobile/i,B4=/Mobile(?:.+)Firefox\b/i,R4=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function K2(e){return t=>t.test(e)}function Kn(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,a=n.split("[FBAN");typeof a[1]<"u"&&(n=a[0]),a=n.split("Twitter"),typeof a[1]<"u"&&(n=a[0]);let r=K2(n),u={apple:{phone:r(fs)&&!r(Rn),ipod:r(A4),tablet:!r(fs)&&(r(k4)||R4(t))&&!r(Rn),universal:r(S4),device:(r(fs)||r(A4)||r(k4)||r(S4)||R4(t))&&!r(Rn)},amazon:{phone:r(Ha),tablet:!r(Ha)&&r(qu),device:r(Ha)||r(qu)},android:{phone:!r(Rn)&&r(Ha)||!r(Rn)&&r(hs),tablet:!r(Rn)&&!r(Ha)&&!r(hs)&&(r(qu)||r(D4)),device:!r(Rn)&&(r(Ha)||r(qu)||r(hs)||r(D4))||r(/\bokhttp\b/i)},windows:{phone:r(Rn),tablet:r(L4),device:r(Rn)||r(L4)},other:{blackberry:r(M4),blackberry10:r(F4),opera:r(P4),firefox:r(B4),chrome:r(_4),device:r(M4)||r(F4)||r(P4)||r(B4)||r(_4)},any:!1,phone:!1,tablet:!1};return u.any=u.apple.device||u.android.device||u.windows.device||u.other.device,u.phone=u.apple.phone||u.android.phone||u.windows.phone,u.tablet=u.apple.tablet||u.android.tablet||u.windows.tablet,u}var bs="DENO",ys="CHROME",Wu="FIREFOX";function G2(e){let t=ys;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=Wu:/deno/i.test(n)&&(t=bs)}catch{}return e===ys&&t===ys||e===Wu&&t===Wu||e===bs&&t===bs}function O4(){return typeof Deno<"u"}function $u(){return G2(Wu)}function I4(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function Br(){return!!globalThis.matchMedia("(pointer:fine)").matches}m();var N4={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},j4={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:N4,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}}},tabs:{onUpdated:N4,query:()=>{},sendMessage:()=>{}}};var ue;O4()?ue=j4:ue=globalThis.immersiveTranslateBrowserAPI;m();m();m();m();m();var YE=z4(2),U4=z4(3);function z4(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let a=[];if(n==null)return a;let r=typeof n.slice=="function"?n:String(n),u=r.length-e+1;if(u<1)return a;for(;u--;)a[u]=r.slice(u,u+e);return a}}m();var V2=/\s+/g,Y2=/[\t\n\v\f\r ]+/g;function H4(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?J2:Q2;return String(e).replace(t.style==="html"?Y2:V2,t.trim?Z2(n):n)}function J2(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function Q2(){return" "}function Z2(e){return t;function t(n,a,r){return a===0||a+n.length===r.length?"":e(n)}}var q4={}.hasOwnProperty;function X2(e){return e==null?"":H4(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function e1(e){return U4(" "+X2(e)+" ")}function t1(e){let t=e1(e),n={},a=-1;for(;++an&&(n=u,a=r)}return[a,n]}function s1(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function l1(e,t,n,a){t=d1(t,n,a);let r=[],u;if(t)for(u in t)Ku.call(t,u)&&r.push([u,c1(e,t[u])]);return r.length===0?Es():r.sort(m1)}function c1(e,t){let n=0,a=-1;for(;++at.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterso+i.length,0));let u=e.length-a;for(let o of C1){let i=o[1],s=o[0],c=e.match(i),l=c?c.length:0;l>n&&(n=l,t=s)}return n*2.5/u>.5?t==="zh-CN"?Q4(e)?"zh-TW":"zh-CN":t:"auto"}var X4=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],Ts=new Map(X4),w1=new Map(X4.map(([e,t])=>[t,e]));function ed(e,t,n=["en"]){if(!e)return"auto";let a=n.map(i=>w1.get(i));!t&&t!==0&&(t=25);let r=Vu(e);if(r!=="auto")return r;let u={minLength:t,whitelist:[...Ts.keys()]},o=K4(e,u);if(o&&o.length>0){for(let[l,g]of o)if(a.includes(l)&&g>.5)return Ts.get(l);let[i,s]=o[0],c=Ts.get(i);if(c&&s>.5)return c}return"auto"}m();m();function qa(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t==="zh-hans")return"zh-CN";if(t==="zh-hant"||t==="zh-hk")return"zh-TW";if(t==="iw")return"he";if(t==="jv")return"jw";let n=Xt.map(r=>r.toLowerCase()),a=n.indexOf(t);if(a===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let r=n.indexOf(t);return r===-1?"auto":Xt[r]}else return"auto";else return Xt[a]}function ba(){return qa(document?.documentElement?.lang||"en")}m();function tn(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function td(e){if(e){let t=new Date(e.createTime),n=v1(t),a="free",r="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(a=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?r="stripe":r="admin"),{user_type:a,user_register_day:n,subscription_from:r}}else return null}function v1(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[a,r,u]=n.split("/");return n=`${u}-${a}-${r}`,n}catch{return"unknown"}}m();var nd=ge+"SyncStoreKey_";function St(e,t){let n=nd+e;return ue.storage.sync.get(n).then(a=>a[n]===void 0?t:a[n])}function je(e,t){let n=nd+e;return ue.storage.sync.set({[n]:t})}m();var ad=ge+"StoreKey_";function On(e,t){let n=ad+e;return ue.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function rd(e,t){let n=ad+e;return ue.storage.local.set({[n]:t})}m();var Wa=ge+"CacheKey_";function A1(e,t){let n=Wa+e;return ue.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function k1(){let e=ue.storage.local.refresh;e&&e()}function Or(e,t){let n=Wa+e;return ue.storage.local.get(n).then(a=>{if(a[n]===void 0)return t;let{value:r,expired:u}=a[n];return u&&ua.startsWith(Wa));if(n.length>0)return ue.storage.local.remove(n)}}var Nt={get:A1,set:S1,getExpired:Or,setExpired:Ir,remove:Nr,clear:D1,refresh:k1};m();m();m();var ot=class extends Error{details;constructor(t,n,a){super(n),this.name=t,a&&(this.details=a)}};async function ya(e){let t;if(e&&e.retry&&e.retry>0)try{t=await Ni(ud.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await ud(e);return t}async function ud(e){e.body;let{url:t,responseType:n,...a}=e;n||(n="json"),a={mode:"cors",...a};let r=!0;e.fetchPolyfill&&(r=!1);let u=e.fetchPolyfill||fetch,o=3e5;if(e.timeout&&(o=e.timeout),r){let s=new AbortController,c=s.signal;setTimeout(()=>{s.abort()},o),a.signal=c}let i;try{i=await u(t,a)}catch(s){j.debug("fetch error",t,s);let c=s.message||"";throw s.message="\u7F51\u7EDC\u95EE\u9898\uFF0C\u65E0\u6CD5\u8FDE\u63A5\u5230\u670D\u52A1\uFF0C\u8BF7\u68C0\u67E5\u4F60\u7684\u4EE3\u7406\u6216\u672C\u5730\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u8BD5\u3002 "+c,s}if(i.ok&&i.status>=200&&i.status<400){if(n==="json")return await i.json();if(n==="text")return await i.text();if(n==="raw"){let s=await i.text(),c=Object.fromEntries([...i.headers.entries()]),l=i.url;return l||(i.headers.get("X-Final-URL")?l=i.headers.get("X-Final-URL"):l=t),{body:s,headers:c,status:i.status,statusText:i.statusText,url:l}}else if(n==="stream"){let s="",c;if(i.body&&i.body instanceof ReadableStream)for await(let l of L1(i.body)){let g=new TextDecoder().decode(l);s+=g;let p;for(;(p=s.indexOf(` -`))>=0;){let f=s.slice(0,p).trim();if(s=s.slice(p+1),f.startsWith("event:")||f==="")continue;let d="";if(f.startsWith("data:")&&(d=f.slice(5).trim()),d==="[DONE]")break;let b;try{b=JSON.parse(d??"")}catch(C){j.debug("json error",C);continue}c=b}}return c}}else{let s;try{s=await i.text()}catch(f){j.error("parse response failed",f)}s&&j.error("fail response",s);let c="";s&&(c=s.slice(0,280));let l="\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u4EE3\u7801:"+i.status+": "+(i.statusText||"")+c,p=new URL(t).hostname.endsWith(".immersivetranslate.com");throw i.status===429?p?c.includes("quota exceeded")?l="ProQuota:"+c:l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${c} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`:l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A429\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===403?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A403\uFF0C \u8BF4\u660E\u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ${c}`:i.status===400?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A400\uFF0C \u8BF4\u660E\u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002 ${c}`:i.status===502?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A502\uFF0C \u8BF4\u660E\u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===401&&(l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A401\uFF0C \u8BF4\u660E\u672A\u767B\u5F55\u6216\u767B\u5F55\u6001\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002 ${c}`),new ot("fetchError",l,s)}}async function*L1(e){let t=e.getReader();try{for(;;){let{done:n,value:a}=await t.read();if(n)return;yield a}}finally{t.releaseLock()}}m();var M1=new Map;function Yu(e){let t=F1(64),n=new CustomEvent(_u,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((a,r)=>{M1.set(t,(u,o)=>{u?r(u):a(o)})})}function F1(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};function nn(){return Ju.version}m();function Je(){try{return globalThis.self!==globalThis.top}catch{return!0}}m();var jr=new Map,Gn=class{fromType;logger;constructor(t,n=!1){this.logger=new _r,n&&this.logger.setLevel("debug"),this.fromType=t,jr.has(t)||(jr.set(t,new Map),ue.runtime.onMessage.addListener((a,r,u)=>{let o=a.from,i=a.to,s,c,l;r.tab&&r.tab.id&&(s=r.tab.id,o=`${o}:${s}`,c=r.tab.url,l=r.tab.active),this.logger.debug(`${a.to} received message [${a.payload.method}] from ${a.from}`,a.payload.data?a.payload.data:" ");let g=ws(i),{type:p,name:f}=g;if(p!==t)return!1;let d=ws(o),C=jr.get(p).get(f);if(!C)return this.logger.debug(`no message handler for ${p}:${i}, but it's ok`),!1;let{messageHandler:h,sync:A}=C,S={type:t,name:d.name,id:s,url:c,active:l};if(A){try{let U=h(a.payload,S);u({ok:!0,data:U})}catch(U){u({ok:!1,errorName:U.name,errorMessage:U.message,errorDetails:U.details})}return!1}else return h(a.payload,S).then(U=>{u({ok:!0,data:U})}).catch(U=>{u({ok:!1,errorName:U.name,errorMessage:U.message,errorDetails:U.details})}),!0}))}getConnection(t,n,a){let r=!1;a&&a.sync&&(r=!0);let u=this.fromType,o=jr.get(u);if(o.has(t))return o.get(t).connectionInstance;{let i=new Cs(`${u}:${t}`,this.logger);return jr.get(u).set(t,{messageHandler:n,sync:r,connectionInstance:i}),i}}},Cs=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let a=ws(t),{type:r,id:u}=a;if(r!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let i=await ue.runtime.sendMessage(o);return od(o,i,this.logger)}catch(i){if(r==="popup"){let s=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(s,n,t,i),Promise.resolve({message:s})}else throw i}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let i=await ue.tabs.sendMessage(u,o);return od(o,i,this.logger)}}};function od(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new ot(t.errorName||"UnknownError",t.errorMessage||"Unknown error",t.errorDetails)}else throw new ot("noResponse","Unknown error")}function ws(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let a=parseInt(t[2]);if(!isNaN(a))n.id=a;else throw new Error("tab id not a valid number")}return n}var Qu;function _1(){return Qu||(Qu=new Gn("content_script",!1).getConnection("pure_main",()=>{}),Qu)}var id="G-MKMD9LWFTR";async function Ur(e,t){try{let n=Ve();if(n.INSTALL_FROM==="firefox_store")return;let r=fe(),u=Je(),o=n.PROD==="1",i="sitc4WmvShWYwfU0dANM3Q",s=await St("fakeUserId","");s||(s=await On("fakeUserId",""),s&&await je("fakeUserId",s));let c=nn(),l=new Date,g=await St("installedAt","");g||(g=await On("installedAt",""),g&&await je("installedAt",g)),s?g||(g=new Date(0).toISOString(),await je("installedAt",g)):(s=B1(32),await je("fakeUserId",s)),g||(g=l.toISOString(),await je("installedAt",g));let p=new Date(g),f=sd(p),d=sd(l),b=f===d,C=l.getTime()-p.getTime()<7*24*60*60*1e3,h=`https://www.google-analytics.com/mp/collect?measurement_id=${id}&api_secret=${i}`;o||(h=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${id}&api_secret=${i}`);let A="";typeof navigator<"u"&&(A=window.navigator.userAgent);let S=Na.parse(A),U=t.map(y=>{let T=y.params||{};return S.os&&(T.os_name=S.os.name||"unknown",T.os_version=S.os.version||"unknown",T.os_version_name=S.os.versionName||"unknown"),S.browser&&(T.browser_name=S.browser.name||"unknown",T.browser_version=S.browser.version||"unknown"),S.platform&&(T.platform_type=S.platform.type||"unknown"),S.engine&&(T.engine_name=S.engine.name||"unknown",T.engine_version=S.engine.version||"unknown"),c&&(T.version=c),n.INSTALL_FROM&&(T.install_from=n.INSTALL_FROM),f&&(T.install_day=R1(p)),T.userscript=r.toString(),b?T.is_new_user_today="1":T.is_new_user_today="0",C?T.is_new_user_this_week="1":T.is_new_user_this_week="0",u?T.main_frame=0:T.main_frame=1,{...y,params:T}}),R=await Zu({responseType:"text",url:h,method:"POST",body:JSON.stringify({client_id:s,user_id:s,events:U})})}catch{}}function B1(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r",""]},custom:{placeholderDelimiters:["{","}"]},bing:{maxTextLengthPerRequest:1800,placeholderDelimiters:["","","b"]},deeplx:{limit:3},d:{immediateTranslationTextCount:0},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},openai:{placeholderDelimiters:["{{","}}","b"],immediateTranslationTextCount:3e3,translationDebounce:300,interval:1350,prompt:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +{{text}}`,optional:!0}]},transmart:{name:"Transmart",homepage:"https://transmart.qq.com/"},chatgpt:{name:"ChatGPT Web(3.5 mobile)",homepage:"https://chat.openai.com",beta:!0},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:"https://immersivetranslate.com/docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text"},{name:"appSecret",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/",docUrl:"https://immersivetranslate.com/docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text"},{name:"secretKey",required:!0,type:"password"}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:"https://immersivetranslate.com/docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text"},{name:"AccessKeySecret",required:!0,type:"password"},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:"https://immersivetranslate.com/docs/services/azure/",allProps:[{name:"region",required:!0,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password"}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:"https://immersivetranslate.com/docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text"},{name:"key",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:"https://immersivetranslate.com/docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text"},{name:"secretAccessKey",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:"https://immersivetranslate.com/docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password"}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:"https://immersivetranslate.com/docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:ha,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:"https://immersivetranslate.com/docs/services/openL/",allProps:[...n4,{type:"password",name:"apikey",required:!0}],props:n4},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",alpha:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:"https://immersivetranslate.com/docs/services/niu",allProps:[{name:"APIKEY",required:!0,type:"password"}]}},Uu={type:ge+"ChildFrameToRootFrameIdentifier"},zu=["Alt","Ctrl","Shift","Auto","Off","OtherCustom","Other"];var cs="user_from_plugin",Nt="user_info",ds=Fn()||Pn()?"https://api2.immersivetranslate.com":"https://test-api2.immersivetranslate.com",DE=Fn()||Pn()?"https://immersivetranslate.com/accounts/login?from=plugin":"https://test.immersivetranslate.com/accounts/login?from=plugin",ms=Fn()||Pn()?"https://immersivetranslate.com/profile":"https://test.immersivetranslate.com/profile",Pr=Fn()||Pn()?"https://immersivetranslate.com/pricing":"https://test.immersivetranslate.com/pricing",w4=Pr+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",gs=Pr+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",v4=Pr+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal";var Ha=console,ps=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),a=Math.round(n-this.#e),r=Zt.green;a>1e4?r=Zt.red:a>1e3&&(r=Zt.yellow),Ha.debug(Zt.dim(fa+" TIMING:"),t,"in",r(a+"ms")),this.#e=n}},_r=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&Ha.log(Zt.dim(fa+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&Ha.log(Zt.green(fa+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&Ha.warn(Zt.yellow(fa+" WARN:"),...t)}error(...t){this.#e<=3&&Ha.error(Zt.red(fa+" ERROR:"),...t)}fatal(...t){this.#e<=4&&Ha.error(Zt.red(fa+" FATAL:"),...t)}timing(){return this.level===0?new ps:{reset:()=>{},stop:()=>{}}}},j=new _r;m();m();m();var fs=/iPhone/i,A4=/iPod/i,k4=/iPad/i,S4=/\biOS-universal(?:.+)Mac\b/i,hs=/\bAndroid(?:.+)Mobile\b/i,D4=/Android/i,qa=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,Hu=/Silk/i,Rn=/Windows Phone/i,L4=/\bWindows(?:.+)ARM\b/i,M4=/BlackBerry/i,F4=/BB10/i,P4=/Opera Mini/i,_4=/\b(CriOS|Chrome)(?:.+)Mobile/i,B4=/Mobile(?:.+)Firefox\b/i,R4=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function G2(e){return t=>t.test(e)}function Kn(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,a=n.split("[FBAN");typeof a[1]<"u"&&(n=a[0]),a=n.split("Twitter"),typeof a[1]<"u"&&(n=a[0]);let r=G2(n),u={apple:{phone:r(fs)&&!r(Rn),ipod:r(A4),tablet:!r(fs)&&(r(k4)||R4(t))&&!r(Rn),universal:r(S4),device:(r(fs)||r(A4)||r(k4)||r(S4)||R4(t))&&!r(Rn)},amazon:{phone:r(qa),tablet:!r(qa)&&r(Hu),device:r(qa)||r(Hu)},android:{phone:!r(Rn)&&r(qa)||!r(Rn)&&r(hs),tablet:!r(Rn)&&!r(qa)&&!r(hs)&&(r(Hu)||r(D4)),device:!r(Rn)&&(r(qa)||r(Hu)||r(hs)||r(D4))||r(/\bokhttp\b/i)},windows:{phone:r(Rn),tablet:r(L4),device:r(Rn)||r(L4)},other:{blackberry:r(M4),blackberry10:r(F4),opera:r(P4),firefox:r(B4),chrome:r(_4),device:r(M4)||r(F4)||r(P4)||r(B4)||r(_4)},any:!1,phone:!1,tablet:!1};return u.any=u.apple.device||u.android.device||u.windows.device||u.other.device,u.phone=u.apple.phone||u.android.phone||u.windows.phone,u.tablet=u.apple.tablet||u.android.tablet||u.windows.tablet,u}var bs="DENO",ys="CHROME",qu="FIREFOX";function V2(e){let t=ys;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=qu:/deno/i.test(n)&&(t=bs)}catch{}return e===ys&&t===ys||e===qu&&t===qu||e===bs&&t===bs}function O4(){return typeof Deno<"u"}function Wu(){return V2(qu)}function I4(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function Br(){return!!globalThis.matchMedia("(pointer:fine)").matches}m();var N4={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},j4={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:N4,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}}},tabs:{onUpdated:N4,query:()=>{},sendMessage:()=>{}}};var ue;O4()?ue=j4:ue=globalThis.immersiveTranslateBrowserAPI;m();m();m();m();m();var YE=z4(2),U4=z4(3);function z4(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let a=[];if(n==null)return a;let r=typeof n.slice=="function"?n:String(n),u=r.length-e+1;if(u<1)return a;for(;u--;)a[u]=r.slice(u,u+e);return a}}m();var Y2=/\s+/g,J2=/[\t\n\v\f\r ]+/g;function H4(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?Q2:Z2;return String(e).replace(t.style==="html"?J2:Y2,t.trim?X2(n):n)}function Q2(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function Z2(){return" "}function X2(e){return t;function t(n,a,r){return a===0||a+n.length===r.length?"":e(n)}}var q4={}.hasOwnProperty;function e1(e){return e==null?"":H4(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function t1(e){return U4(" "+e1(e)+" ")}function n1(e){let t=t1(e),n={},a=-1;for(;++an&&(n=u,a=r)}return[a,n]}function l1(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function c1(e,t,n,a){t=m1(t,n,a);let r=[],u;if(t)for(u in t)$u.call(t,u)&&r.push([u,d1(e,t[u])]);return r.length===0?Es():r.sort(g1)}function d1(e,t){let n=0,a=-1;for(;++at.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterso+i.length,0));let u=e.length-a;for(let o of w1){let i=o[1],s=o[0],c=e.match(i),l=c?c.length:0;l>n&&(n=l,t=s)}return n*2.5/u>.5?t==="zh-CN"?Q4(e)?"zh-TW":"zh-CN":t:"auto"}var X4=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],Ts=new Map(X4),v1=new Map(X4.map(([e,t])=>[t,e]));function ed(e,t,n=["en"]){if(!e)return"auto";let a=n.map(i=>v1.get(i));!t&&t!==0&&(t=25);let r=Gu(e);if(r!=="auto")return r;let u={minLength:t,whitelist:[...Ts.keys()]},o=K4(e,u);if(o&&o.length>0){for(let[l,g]of o)if(a.includes(l)&&g>.5)return Ts.get(l);let[i,s]=o[0],c=Ts.get(i);if(c&&s>.5)return c}return"auto"}m();m();function Wa(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t==="zh-hans")return"zh-CN";if(t==="zh-hant"||t==="zh-hk")return"zh-TW";if(t==="iw")return"he";if(t==="jv")return"jw";let n=en.map(r=>r.toLowerCase()),a=n.indexOf(t);if(a===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let r=n.indexOf(t);return r===-1?"auto":en[r]}else return"auto";else return en[a]}function ba(){return Wa(document?.documentElement?.lang||"en")}m();function tn(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function td(e){if(e){let t=new Date(e.createTime),n=A1(t),a="free",r="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(a=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?r="stripe":r="admin"),{user_type:a,user_register_day:n,subscription_from:r}}else return null}function A1(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[a,r,u]=n.split("/");return n=`${u}-${a}-${r}`,n}catch{return"unknown"}}m();var nd=ge+"SyncStoreKey_";function St(e,t){let n=nd+e;return ue.storage.sync.get(n).then(a=>a[n]===void 0?t:a[n])}function je(e,t){let n=nd+e;return ue.storage.sync.set({[n]:t})}m();var ad=ge+"StoreKey_";function On(e,t){let n=ad+e;return ue.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function rd(e,t){let n=ad+e;return ue.storage.local.set({[n]:t})}m();var ya=ge+"CacheKey_";function k1(e,t){let n=ya+e;return ue.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function S1(){let e=ue.storage.local.refresh;e&&e()}function Or(e,t){let n=ya+e;return ue.storage.local.get(n).then(a=>{if(a[n]===void 0)return t;let{value:r,expired:u}=a[n];return u&&ua.startsWith(ya)).filter(a=>a!==ya+Nt);if(n.length>0)return ue.storage.local.remove(n)}}var jt={get:k1,set:D1,getExpired:Or,setExpired:Ir,remove:Nr,clear:ud,refresh:S1};m();m();m();var ot=class extends Error{details;constructor(t,n,a){super(n),this.name=t,a&&(this.details=a)}};async function xa(e){let t;if(e&&e.retry&&e.retry>0)try{t=await Ni(od.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await od(e);return t}async function od(e){e.body;let{url:t,responseType:n,...a}=e;n||(n="json"),a={mode:"cors",...a};let r=!0;e.fetchPolyfill&&(r=!1);let u=e.fetchPolyfill||fetch,o=3e5;if(e.timeout&&(o=e.timeout),r){let s=new AbortController,c=s.signal;setTimeout(()=>{s.abort()},o),a.signal=c}let i;try{i=await u(t,a)}catch(s){j.debug("fetch error",t,s);let c=s.message||"";throw s.message="\u7F51\u7EDC\u95EE\u9898\uFF0C\u65E0\u6CD5\u8FDE\u63A5\u5230\u670D\u52A1\uFF0C\u8BF7\u68C0\u67E5\u4F60\u7684\u4EE3\u7406\u6216\u672C\u5730\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u8BD5\u3002 "+c,s}if(i.ok&&i.status>=200&&i.status<400){if(n==="json")return await i.json();if(n==="text")return await i.text();if(n==="raw"){let s=await i.text(),c=Object.fromEntries([...i.headers.entries()]),l=i.url;return l||(i.headers.get("X-Final-URL")?l=i.headers.get("X-Final-URL"):l=t),{body:s,headers:c,status:i.status,statusText:i.statusText,url:l}}else if(n==="stream"){let s="",c;if(i.body&&i.body instanceof ReadableStream)for await(let l of L1(i.body)){let g=new TextDecoder().decode(l);s+=g;let p;for(;(p=s.indexOf(` +`))>=0;){let f=s.slice(0,p).trim();if(s=s.slice(p+1),f.startsWith("event:")||f==="")continue;let d="";if(f.startsWith("data:")&&(d=f.slice(5).trim()),d==="[DONE]")break;let b;try{b=JSON.parse(d??"")}catch(C){j.debug("json error",C);continue}c=b}}return c}}else{let s;try{s=await i.text()}catch(f){j.error("parse response failed",f)}s&&j.error("fail response",s);let c="";s&&(c=s.slice(0,280));let l="\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u4EE3\u7801:"+i.status+": "+(i.statusText||"")+c,p=new URL(t).hostname.endsWith(".immersivetranslate.com");throw i.status===429?p?c.includes("quota exceeded")?l="ProQuota:"+c:l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${c} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`:l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A429\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===403?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A403\uFF0C \u8BF4\u660E\u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ${c}`:i.status===400?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A400\uFF0C \u8BF4\u660E\u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002 ${c}`:i.status===502?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A502\uFF0C \u8BF4\u660E\u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===401&&(l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A401\uFF0C \u8BF4\u660E\u672A\u767B\u5F55\u6216\u767B\u5F55\u6001\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002 ${c}`),new ot("fetchError",l,s)}}async function*L1(e){let t=e.getReader();try{for(;;){let{done:n,value:a}=await t.read();if(n)return;yield a}}finally{t.releaseLock()}}m();var M1=new Map;function Vu(e){let t=F1(64),n=new CustomEvent(Pu,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((a,r)=>{M1.set(t,(u,o)=>{u?r(u):a(o)})})}function F1(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};function nn(){return Yu.version}m();function Je(){try{return globalThis.self!==globalThis.top}catch{return!0}}m();var jr=new Map,Gn=class{fromType;logger;constructor(t,n=!1){this.logger=new _r,n&&this.logger.setLevel("debug"),this.fromType=t,jr.has(t)||(jr.set(t,new Map),ue.runtime.onMessage.addListener((a,r,u)=>{let o=a.from,i=a.to,s,c,l;r.tab&&r.tab.id&&(s=r.tab.id,o=`${o}:${s}`,c=r.tab.url,l=r.tab.active),this.logger.debug(`${a.to} received message [${a.payload.method}] from ${a.from}`,a.payload.data?a.payload.data:" ");let g=ws(i),{type:p,name:f}=g;if(p!==t)return!1;let d=ws(o),C=jr.get(p).get(f);if(!C)return this.logger.debug(`no message handler for ${p}:${i}, but it's ok`),!1;let{messageHandler:h,sync:A}=C,S={type:t,name:d.name,id:s,url:c,active:l};if(A){try{let U=h(a.payload,S);u({ok:!0,data:U})}catch(U){u({ok:!1,errorName:U.name,errorMessage:U.message,errorDetails:U.details})}return!1}else return h(a.payload,S).then(U=>{u({ok:!0,data:U})}).catch(U=>{u({ok:!1,errorName:U.name,errorMessage:U.message,errorDetails:U.details})}),!0}))}getConnection(t,n,a){let r=!1;a&&a.sync&&(r=!0);let u=this.fromType,o=jr.get(u);if(o.has(t))return o.get(t).connectionInstance;{let i=new Cs(`${u}:${t}`,this.logger);return jr.get(u).set(t,{messageHandler:n,sync:r,connectionInstance:i}),i}}},Cs=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let a=ws(t),{type:r,id:u}=a;if(r!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let i=await ue.runtime.sendMessage(o);return id(o,i,this.logger)}catch(i){if(r==="popup"){let s=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(s,n,t,i),Promise.resolve({message:s})}else throw i}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let i=await ue.tabs.sendMessage(u,o);return id(o,i,this.logger)}}};function id(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new ot(t.errorName||"UnknownError",t.errorMessage||"Unknown error",t.errorDetails)}else throw new ot("noResponse","Unknown error")}function ws(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let a=parseInt(t[2]);if(!isNaN(a))n.id=a;else throw new Error("tab id not a valid number")}return n}var Ju;function _1(){return Ju||(Ju=new Gn("content_script",!1).getConnection("pure_main",()=>{}),Ju)}var sd="G-MKMD9LWFTR";async function Ur(e,t){try{let n=Ve();if(n.INSTALL_FROM==="firefox_store")return;let r=pe(),u=Je(),o=n.PROD==="1",i="sitc4WmvShWYwfU0dANM3Q",s=await St("fakeUserId","");s||(s=await On("fakeUserId",""),s&&await je("fakeUserId",s));let c=nn(),l=new Date,g=await St("installedAt","");g||(g=await On("installedAt",""),g&&await je("installedAt",g)),s?g||(g=new Date(0).toISOString(),await je("installedAt",g)):(s=B1(32),await je("fakeUserId",s)),g||(g=l.toISOString(),await je("installedAt",g));let p=new Date(g),f=ld(p),d=ld(l),b=f===d,C=l.getTime()-p.getTime()<7*24*60*60*1e3,h=`https://www.google-analytics.com/mp/collect?measurement_id=${sd}&api_secret=${i}`;o||(h=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${sd}&api_secret=${i}`);let A="";typeof navigator<"u"&&(A=window.navigator.userAgent);let S=ja.parse(A),U=t.map(y=>{let T=y.params||{};return S.os&&(T.os_name=S.os.name||"unknown",T.os_version=S.os.version||"unknown",T.os_version_name=S.os.versionName||"unknown"),S.browser&&(T.browser_name=S.browser.name||"unknown",T.browser_version=S.browser.version||"unknown"),S.platform&&(T.platform_type=S.platform.type||"unknown"),S.engine&&(T.engine_name=S.engine.name||"unknown",T.engine_version=S.engine.version||"unknown"),c&&(T.version=c),n.INSTALL_FROM&&(T.install_from=n.INSTALL_FROM),f&&(T.install_day=R1(p)),T.userscript=r.toString(),b?T.is_new_user_today="1":T.is_new_user_today="0",C?T.is_new_user_this_week="1":T.is_new_user_this_week="0",u?T.main_frame=0:T.main_frame=1,{...y,params:T}}),R=await Qu({responseType:"text",url:h,method:"POST",body:JSON.stringify({client_id:s,user_id:s,events:U})})}catch{}}function B1(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r",""],limit:5e3},custom:{placeholderDelimiters:["{","}"]},bing:{maxTextLengthPerRequest:1800,placeholderDelimiters:["","","b"]},deeplx:{limit:3},d:{immediateTranslationTextCount:0},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},openai:{placeholderDelimiters:["{{","}}","b"],immediateTranslationTextCount:3e3,translationDebounce:300,interval:1350,prompt:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: {{text}}`,maxTextGroupLengthPerRequest:1,newlinePlaceholderDelimiters:[` @@ -4264,61 +4264,63 @@ Additionally, we support using Chinese aliases of language codes as commands. Fo ?`]}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:""},tempTranslateDomainMinutes:0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","*.twitter.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","github.com","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","www.tumblr.com","*.twitter.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},generalRule:{_comment:"",enableSubtitle:!0,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan"],useIframePostMessage:!0,searchEnhancementConfig:[],injectedCss:[],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!0,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,isTransformPreTagNewLine:!1,urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".MathJax_Preview",".MathJax",".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:4,paragraphMinWordCount:2,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,globalAttributes:{},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{".sr-only":"display:none"},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{translate:"no"},"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:[],additionalExcludeSelectors:[".social-share",".breadcrumbs",".post__footer",".btn",".reference-citations",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","markerow8"],translationClasses:[],atomicBlockSelectors:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","INPUT","BUTTON","BASE","SELECT","OPTION","HR","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","XQDD_HIGHLIGHT_NEW_WORD","NOBR"],additionalInlineTags:[],extraInlineSelectors:[],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,mouseHoverHoldKey:"Off"},rules:[{id:"immersive",matches:["https://immersivetranslate.com","https://onboarding.immersivetranslate.com"],isInjectVersion:!0,isInjectMeta:!0},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"pdf",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],translationMode:"translation",skipEditableCheck:!0,selectors:["p"],wrapperPrefix:"",isInjectVersion:!0,isPdf:!0},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,injectedCss:[".immersive-translate-target-translation-block-wrapper { display: block; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"]},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","https://platform.twitter.com/embed*"],additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']"],extraBlockSelectors:['[data-testid="tweetText"] div.r-6koalj'],extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText']":"-webkit-line-clamp: unset;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]"]},{id:"threads",matches:"www.threads.net",selectors:["p",".x1npkx4u.x1exu5d8",".xw7yly9",".xgkxs2y"],stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x78zum5",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{span:"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],extraBlockSelectors:["span.comment-copy"],excludeSelectors:["a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md",".RichTextJSON-root","div[slot=title]","div[slot=text-body]","p.title > a","[role=main] .md-container"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none"},waitForSelectors:["[data-testid=post_author_link]"]},{id:"reddit",matches:"www.reddit.com",selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","div[slot=title]","div[slot=text-body]","p.title > a","[role=main] .md-container"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none"}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper"],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box"],extraBlockSelectors:[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],detectParagraphLanguage:!0},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"facebook",matches:"www.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]"],atomicBlockSelectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],extraBlockSelectors:["span.x1vvkbs"],excludeSelectors:["[role=button]"],translationClasses:["immersive-translate-text"],detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".caption-window",".caption-visual-line",".yt-spec-button-view-model",".yt-core-attributed-string > span",".title"],"excludeTags.remove":["BUTTON"],condition:{enableSubtitle:{false:{"selectors.remove":[".caption-window",".caption-visual-line"]}}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],extraBlockSelectors:[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,detectParagraphLanguage:!0,excludeSelectors:["[class^='lln-']"],globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","ytd-notification-renderer .message","#message",".caption-window",".caption-visual-line"],extraBlockSelectors:["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],condition:{enableSubtitle:{false:{"selectors.remove":[".caption-window",".caption-visual-line"]}}},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,selectors:["h1","div[class='x9f619 xjbqb8w x78zum5 x168nmei x13lgxp2 x5pf9jr xo71vjh x1uhb9sk x1plvlek xryxfnj x1c4vz4f x2lah0s xdt5ytf xqjyukv x1cy8zhl x1oa3qoh x1nhvcw1'] > span[class='x1lliihq x1plvlek xryxfnj x1n2onr6 x193iq5w xeuugli x1fj9vlw x13faqbe x1vvkbs x1s928wv xhkezso x1gmr53x x1cpjm7i x1fgarty x1943h6x x1i0vuye xvs91rp xo1l8bm x5n08af x10wh9bi x1wdrske x8viiok x18hxmgj']","span[class='x193iq5w xeuugli x1fj9vlw x13faqbe x1vvkbs xt0psk2 x1i0vuye xvs91rp xo1l8bm x5n08af x10wh9bi x1wdrske x8viiok x18hxmgj']"],wrapperPrefix:"
"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:["[style^=top]",".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;"},extraBlockSelectors:[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"]},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page"],excludeMatches:["https://www.inoreader.com/features/"],observeUrlChange:!1,globalStyles:{".article_title_link":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` `,selectors:["h3 a[data-clk]","div.gs_rs","td a.gsc_a_at","td div.gs_gray:last-of-type","div.gsc_oci_value","#gs_opinion"],extraInlineSelectors:["br"],atomicBlockSelectors:["h3 a[data-clk]"]},{id:"googleMail",matches:"mail.google.com",detectParagraphLanguage:!0,selectors:["h2[data-thread-perm-id]","span[data-thread-id]","div[data-message-id] div[class='']",".messageBody","#views"],globalStyles:{".Nk":"height:auto!important;",".kf":"white-space:unset!important;"}},{id:"googleNews",matches:"news.google.com",blockMinTextCount:26,blockMinWordCount:5,globalStyles:{".MCAGUe":"height: auto;",".To2ZZb.DbQnIe":"height: unset;",".cp7Yvc > h2":"display: block;",".oovtQ":"height: auto;",h4:"-webkit-line-clamp: unset;"},excludeSelectors:[".EyERq",".AOl7G.eejsDc","[aria-label='Home']","[aria-label='For you']","[aria-label='Following']","[aria-label='World']","[aria-label='Local']",".gb_Fc",".wBQf7b",".yPI8Rb",".jKHa4e",".u43Gd",".Zgjpyb","[role='button']","[jsname='rymPhb']",".cbz1ld",".VfPpkd-P5QLlc",".XvhY1d"]},{id:"outlook",matches:"outlook.live.com",excludeSelectors:[".jHAG3.XG5Jd",".OZZZK",".lDdSm"]},{id:"producthunt",matches:"www.producthunt.com",excludeMatches:"https://www.producthunt.com/stories/*",selectors:["h2","div[class^='styles_htmlText__']","[class^='styles_tagline']","a[href^='/discussions/'].fontWeight-600","button[class^='styles_textButton'] > div > span","h5 + p","div[data-test=product-item-name] + div",".noOfLines-1,.noOfLines-2,.noOfLines-3",".fontWeight-600","[class*='styles_dropdown']","[class*='styles_aboutText']"],globalStyles:{"h5 + p":"height:unset;",".noOfLines-1,.noOfLines-2,.noOfLines-3":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"]},{id:"codeforces",matches:"https://codeforces.com/*",stayOriginalTags:["[class^='MathJax']"]},{id:"arxivLabs",matches:"*.labs.arxiv.org/*",stayOriginalTags:["math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt"]},{id:"discord",matches:"https://discord.com/channels/*",isTranslateTitle:!1,selectors:["li[id^=chat-messages] div[id^=message-content]","div[class^=headerText]","section[aria-label='Search Results'] div[id^=message-content]"],extraBlockSelectors:["[class^='embedFieldValue']","li[class^='card'] div[class^='message']","[data-list-item-id^='forum-channel-list'] div[class^='headerText']"],globalStyles:{"div[class^=headerText]":"max-height: unset;","div[class^=message]":"max-height: unset;","div[class^=text]":"max-height: unset;","h3[data-text-variant='heading-lg/semibold']":"-webkit-line-clamp: none;"},detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:"",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"telegram",matches:["web.telegram.org/z/*","web.telegram.org/a/*"],isTranslateTitle:!1,selectors:[".text-content",".message",".reply-markup-button-text",".bot-commands-list-element-description"],detectParagraphLanguage:!0},{id:"telegramK",matches:["web.telegram.org/k/*","web.telegram.org/k/"],selectors:[".message",".reply-markup-button-text",".bot-commands-list-element-description"],detectParagraphLanguage:!0},{id:"githubGist",matches:"gist.github.com",selectors:[".markdown-body",".readme"],detectParagraphLanguage:!0},{id:"lobste",matches:"lobste.rs",excludeMatches:["https://lobste.rs/about","https://lobste.rs/chat"],selectors:[".u-repost-of",".comment_text",".story_text"]},{id:"slack",matches:"*.slack.com",selectors:[".p-rich_text_block",".p-message_pane__foreword",".c-alert__message","[data-qa=message_attachment_text]"],additionalStayOriginalSelectors:["[data-qa=emoji]"],detectParagraphLanguage:!0},{id:"artstationArtwork",matches:"www.artstation.com/artwork/*",excludeSelectors:".project-description a",selectors:[".project-description","div.project-comment-text"],detectParagraphLanguage:!0},{id:"artstationLearning",matches:"www.artstation.com/learning/courses/*",additionalSelectors:["footer.learning-course-description.ng-star-inserted > span"],excludeSelectors:[".learning-card-meta"]},{id:"artstationBlog",matches:["https://www.artstation.com/blogs","https://www.artstation.com/blogs/*"],detectParagraphLanguage:!0,additionalSelectors:[".comment-item-body"],atomicBlockSelectors:[".author-headline",".author-location"],excludeSelectors:["blog-card-thumbnail","blog-card-header",".blog-card-author",".blog-card-meta",".blog-view-header",".blog-grid-title",".post-meta-header"]},{id:"figmaCommunity",matches:"www.figma.com/community/*",normalizeBody:"div.ql-editor[contenteditable='false']",excludeSelectors:["div[class*='metadataRight']","div[class*='commentMetaAndOptions']"],globalStyles:{"div[class*='mini_cardBottomRowSizing']":"height: 3em;"},additionalSelectors:["div[class*='mini_cardBottomRow_Metadata']"],stayOriginalSelectors:["[data-tooltip='tooltip-user-info']"]},{id:"googleIndex",matches:["https://www.google.com/","https://www.google.com.hk/"],excludeSelectors:["#gb","#SIvCob"],inputTutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",inputTutorialsSelectors:["textarea#APjFqb"]},{id:"googleSearch",matches:"www.google.*/search*",blockMinTextCount:32,blockMinWordCount:3,wrapperSuffix:"",detectParagraphLanguage:!0,excludeSelectors:["a h3 + div","div#sfooter","a[role=presentation] > div > div:first-child",".b5ZQcf",".CEMjEf",".MgUUmf.NUnG9d","#result-stats","[role=navigation]","div.sCuL3","div.eFM0qc.BCF2pd","div.WZ8Tjf","div.adDDi","#headerSection","#rateChatDiv","[id=bres]",".title-D5Lgyj","[data-attrid='VisualDigestVideoResult']",".search-enhance-WDIEkP h4",".SPZz6b h2",".CtCigf",".VLkRKc",".EbH0bb",".Wr0c6d",".jleFbf","#searchform",".yg51vc",".CbAZb"],extraBlockSelectors:[".MUFPAc"],globalStyles:{".V82bz":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px",".pe7FNb":"-webkit-line-clamp: unset;",".promotion-3PDMAb":"display: none;",".uAKcGb":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px","div[data-content-feature='1'] > div":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:2']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:3']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:4']":"-webkit-line-clamp: unset;max-height: unset;",".Pw4Ldf.RsCEN":"height:unset;",".related-question-pair":"overflow:auto;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,searchEnhancementConfig:[{id:"google",urlMatch:"https://www\\.google\\..+/search",style:{source:"font-size:12px; margin-bottom: 6px;",enTitle:"margin-top:6px;font-size:14px;",searchTitle:"margin-top:6px;position:relative;padding-right:24px;",more:"color:#1a0dab;margin-top:8px;",enTitleClassName:"immersive-translate-search-enhancement-en-title"},keyword:{value:"[0]$1",matches:[{source:"url",matchRegex:"q=(.+?)&"}]},showCount:5}]},{id:"lowendtalk",matches:"lowendtalk.com",selectors:["[role=heading]","h1",".userContent"]},{id:"linkedinJobs",matches:"www.linkedin.com/jobs/*",selectors:["#job-details > span"]},{id:"linkedinFeed",matches:"https://linkedin.com/feed/*",selectors:["h1",".feed-shared-update-v2__description-wrapper"]},{id:"indiehackers",matches:"www.indiehackers.com",selectors:[".content","h1","h3.story__title",".feed-item__title-link",".article-body"]},{id:"libreddit",matches:"libreddit.de",selectors:["h2.post_title",".comment_body > .md"]},{id:"notionSite",matches:["notion.site","*.notion.site"],normalizeBody:"body",selectors:["div[data-block-id]"]},{id:"newyorker",matches:"www.newyorker.com",additionalSelectors:["h1","[data-testid=SummaryItemHed]"],excludeSelectors:["[data-testid=PersistentTop]","[data-testid=StackedNavigationHeader]"],urlChangeDelay:2e3},{id:"startme",matches:"start.me",selectors:[".rss-article__title",".rss-articles-list__article-link",".rss-showcase__title",".rss-showcase__text"]},{id:"scmp",matches:"www.scmp.com",additionalSelectors:[".info__subHeadline",".section-content h2"],globalStyles:{".topic__article-list":"height: unset;",".adverisers__adveriser":"height: unset;",".advertiser__content":"height: unset;",".content-title__link":"display:unset;overflow:unset;-webkit-line-clamp:unset;",".title__text":"max-height:unset; -webkit-line-clamp:unset;",".news-list-item__news-title":"max-height:unset; -webkit-line-clamp:unset;","a[class*='link'] > .link__headline":"max-height:unset; -webkit-line-clamp:unset;"}},{id:"lesswrong",matches:"www.lesswrong.com",extraBlockSelectors:["span.commentOnSelection"]},{id:"mastodon",matches:["mastodon.social","mastodon.online","kolektiva.social","indieweb.social","mastodon.world","infosec.exchange"],isTranslateTitle:!1,selectorMatches:["div#mastodon"],selectors:["div.status__content__text",".about__section__body",".content",".form-container",".account__header__extra"],globalAttributes:{"[class='notranslate app-holder']":{class:"app-holder"}},detectLanguage:!0},{id:"cnbc",matches:"www.cnbc.com",urlChangeDelay:1e3,globalStyles:{"div.Card-titleContainer > div":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"dailyDev",matches:"app.daily.dev",selectors:["h1",".typo-body","article h3","[class^=markdown_markdown]"],globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset"}},{id:"pornhub",matches:["*.pornhub.com","pornhub.com"],excludeMatches:["*.pornhub.com/insights/*","pornhub.com/insights/*"],extraBlockSelectors:[".trendingNow",".searchItem",".tagcloud > a"],detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:` `,globalStyles:{"span.title":"height:unset; max-height:unset;",".detailedInfo":"max-height:unset;",".pcVideoListItem":"max-height:unset;",".wrap":"height:unset;",".entry-header":"height:unset;",".entry-title > a":"height:unset;-webkit-line-clamp:unset;"}},{id:"yourporn",matches:"https://www.youporn.com/*",extraBlockSelectors:[".button"],globalStyles:{".video-box":"max-height:unset;",".video-box-title":"white-space:unset;"}},{id:"modelhub",matches:"https://www.modelhub.com/*",globalStyles:{".videoTitle":"height:unset;",a:"height:unset;"}},{id:"xvideos",matches:"https://www.xvideos.com/*",globalStyles:{".title":"-webkit-line-clamp:unset;max-height:unset;",".mozaique":"display:flex; flex-wrap:wrap;"},excludeSelectors:[".video-hd-mark"]},{id:"missav",matches:"https://missav.com/*",globalStyles:{".truncate":"white-space:unset;",".overflow-y-hidden":"max-height:unset;overflow-y:unset;"}},{id:"javbus",matches:"https://www.javbus.com/*",globalStyles:{".photo-info":"height:unset;"},excludeSelectors:[".item-tag","date"]},{id:"spankbang",matches:"https://spankbang.com/*",globalStyles:{".video-item > a":"white-space:unset;"},excludeSelectors:[".stats",".thumb"],extraBlockSelectors:[".searches > a",".tag > a",".extra > a",".positions > li"]},{id:"javdb",matches:"https://javdb*.com/*",globalStyles:{".video-title":"white-space:unset;"},excludeSelectors:[".video-number",".score",".has-addons"]},{id:"jable",matches:"https://jable.tv/*",globalStyles:{".title":"white-space:unset;max-height:unset;",".img-box > a":"position:relative;"}},{id:"netflav",matches:"https://netflav*.com/*",globalStyles:{".grid_title":"max-height:unset;"},extraBlockSelectors:[".genre_filter_item","button"]},{id:"czechvideo",matches:"https://czechvideo.co/*",globalStyles:{".short-story":"height:unset;",".short-title":"height:unset;"},globalAttributes:{header:{translate:"unset;"}}},{id:"weibo",matches:["weibo.com"],selectors:["div[class^='detail_wbtext']"]},{id:"medium",matches:["medium.com","*.medium.com"],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],urlChangeDelay:20,"additionalExcludeSelectors.remove":["i.fa","i[class^=fa-]",".navmenu-container",".google-symbols","markerow8"],selectors:["h1","h2","article section","[aria-hidden='false'] pre","article p"],excludeSelectors:["[aria-label='Post Preview Reading Time']",".al.b.bl.ag.bp",".al.b.bl.ag.ai"],globalStyles:{h2:"-webkit-line-clamp: unset;max-height:unset;","article p":"-webkit-line-clamp: unset;max-height:unset;"}},{id:"nitter",selectorMatches:["meta[property='og:site_name'][content='Nitter']"],selectors:[".tweet-content",".quote-text"]},{id:"economist",matches:"www.economist.com",extraInlineSelectors:["span[data-caps='initial']"],excludeSelectors:["footer.ds-footer"],injectedCss:["a::before {position:relative!important;}"]},{id:"healthline",matches:"www.healthline.com",excludeSelectors:[".icon-hl-trusted-source-after"]},{id:"ebay",matches:"www.ebay.com",excludeSelectors:["headers","[itemprop=offers]",".dne-itemtile-original-price"],paragraphMinTextCount:4,paragraphMinWordCount:2,globalStyles:{"[itemprop=name]":"-webkit-line-clamp: unset;max-height: unset;",".merch-item-title":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"skinstore",matches:"www.skinstore.com",excludeSelectors:[".responsiveFlyoutMenu_levelOneLink"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"tripadvisor",matches:"www.tripadvisor.com",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"amazon",matches:"www.amazon.com",paragraphMinTextCount:4,paragraphMinWordCount:2,extraBlockSelectors:[".a-size-small.a-link-normal.page-banner-link.a-nowrap"],globalStyles:{".a-carousel-viewport":"height:unset;","[class*='clamp']":"max-height: unset;-webkit-line-clamp: unset;","[data-rows]":"max-height: unset;-webkit-line-clamp: unset;","[data-a-expander-name='review_text_read_more']":" max-height: unset;"},excludeSelectors:["#navFooter","#navbar-main",".s-price-instructions-style","[class*='star']","[data-hook='acr-average-stars-rating-text']",".a-color-price"]},{id:"visualstudioMarketplace",matches:"marketplace.visualstudio.com",additionalExcludeSelectors:[".core-info-second-row",".core-info-third-row",".meta-data-list",".item-title",".breadcrumb",".itemDetails-right",".ux-user-name",".ux-updated-date",".ux-item-second-row-wrapper",".stats-and-offer",".header-container"],atomicBlockSelectors:[".core-info-cell > div.name"],globalStyles:{".item-details-control-root.ux-item-shortdesc":"height: unset; overflow: visible; max-height:unset;"}},{id:"bloomberg",matches:"www.bloomberg.com",urlChangeDelay:2e3,excludeSelectors:[".ticker-bar","nav","[aria-label=Banner]","aside","[data-component=ticker-bar]","footer.bb-global-footer"]},{id:"baiduXueshu",matches:"xueshu.baidu.com",globalStyles:{".abstract_wr":"height: unset; overflow: visible; max-height:unset;"}},{id:"sciencedirect",matches:"www.sciencedirect.com",urlChangeDelay:2e3,stayOriginalSelectors:["span.display","span.math"],extraBlockSelectors:["span.captions","span[id^=cap]"]},{id:"thehighestofthemountains",matches:"www.thehighestofthemountains.com",extraBlockSelectors:"div"},{id:"telegraph1",matches:"te.legra.ph",normalizeBody:"div.ql-editor[contenteditable='false']",urlChangeDelay:500},{id:"telegraph2",matches:["telegra.ph"],normalizeBody:"div.ql-editor[contenteditable='false']",wrapperPrefix:` -`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main > div > div[class*='h-[125]']":"height:auto"},normalizeBody:"body",extraBlockSelectors:["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,normalizeBody:"#mw-content-text",globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"]},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"}},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:"chat.openai.com",excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0}},{id:"newstop",matches:["chat.newstop.asia","chat.waixingyun.cn"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".n-button.n-button--warning-type.n-button--medium-type",messageWrapperSelector:".markdown-body",streamingChange:!1,streamingDeepChild:!0}},{id:"askgpt",matches:["askgpt.cn","chatcat.zhaoyoung.me"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".home_chat-message-status__EsVNi",messageWrapperSelector:".markdown-body",streamingChange:!0,streamingDeepChild:!0}},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__UyYrv *",".MarkdownLink_linkifiedLink__KxC9G"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__UyYrv",streamingChange:!1,streamingDeepChild:!0}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"newthingsunderthesun",matches:"www.newthingsunderthesun.com",additionalSelectors:["[translate=no]"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"https://steamcommunity.com/app/*",globalStyles:{".forum_topic":"height:auto;",".forum_topic_name":"white-space:normal;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampowered",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:"https://www.webofscience.com/*",globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},excludeSelectors:[".summary-left-panel",".authors","app-full-record-keywords mark"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],extraBlockSelectors:["app-summary-authors + div","app-full-record-keywords span span"],observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://www.jetbrains.com/help/*",extraBlockSelectors:["[data-test=prompt]"]},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails p"]},{id:"isEbook",isEbook:!0,isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span"},{id:"isEbookBuilder",isEbookBuilder:!0,isTranslateTitle:!1,targetWrapperTag:"span",selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com",extraBlockSelectors:["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],extraBlockSelectors:"font[face=verdana]"},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"isSubtitleBuilder",isSubtitleBuilder:!0,selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,wrapperPrefix:"",wrapperSuffix:""},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/",extraBlockSelectors:[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"vimeo",matches:"https://player.vimeo.com/video/*",extraBlockSelectors:["span.vp-captions-line","span[class^=CaptionsRenderer_]"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexityAi",matches:"https://www.perplexity.ai/search/*",extraBlockSelectors:[".prose > span"],additionalStayOriginalSelectors:["a.citation"],insertPosition:"afterend"},{id:"perplexity",matches:"https://www.perplexity.ai",globalStyles:{".line-clamp-1":"-webkit-line-clamp: unset !important;",".line-clamp-2":"-webkit-line-clamp: unset !important;"}},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"babelnovel",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*"],urlChangeDelay:0},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0},{globalAttributes:{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"youtrackJetbrains",matches:"youtrack.jetbrains.com/articles/*",selectors:["[role=presentation]","[data-test=article-content]"],excludeSelectors:[".toolbar__ee8"]},{id:"bbc",matches:"www.bbc.com",excludeSelectors:["section.module--languages",".drop-capped"]},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}}},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"openai",matches:"https://platform.openai.com/docs/*",urlChangeDelay:0},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout":"height:unset !important;",".EntrySummary--u4":"-webkit-line-clamp: unset;max-height:unset;",".EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:[".copyable-text > span"],wrapperPrefix:` -`,wrapperSuffix:"
"},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],globalStyles:{"[class*='lineclamp']":"-webkit-line-clamp:unset;"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],extraBlockSelectors:[".SIPGg",".sc-kzMCTH.pSZXj"],globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"]},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*",globalAttributes:{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead"],injectedCss:["a::after {position:relative!important;}"]},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},globalAttributes:{"#app":{class:""}}},{id:"haproxy",matches:["docs.haproxy.org","www.oreilly.com/openbook/opensources/book/*"],excludeTags:[],stayOriginalSelectors:[],stayOriginalTags:[],isTransformPreTagNewLine:!0},{id:"piAi",matches:"pi.ai/talk",excludeSelectors:[".whitespace-pre-wrap > span *"],aiRule:{streamingSelector:"button[class*='fixed'][disabled]",messageWrapperSelector:".whitespace-pre-wrap",streamingChange:!1,streamingDeepChild:!1},globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *"],"excludeTags.remove":["PRE"],injectedCss:"[data-testid='chat-menu-trigger'] br {display:none;}",aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1}},{id:"feishu",matches:"*.feishu.cn","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],excludeSelectors:[".catalogue__list"]},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"bugsWebkit",matches:"bugs.webkit.org",isTransformPreTagNewLine:!0},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",matches:"www.kaggle.com",excludeTags:["i","button"]},{id:"ieee",matches:"spectrum.ieee.org",extraBlockSelectors:["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"www.cnn.com",excludeSelectors:[".ad-slot-header__wrapper"]},{id:"marginalrevolution",matches:"marginalrevolution.com",globalAttributes:{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",condition:{enableSubtitle:{false:{"excludeSelectors.add":[".bpx-player-subtitle-panel-text"]}}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"docs-oracle",matches:"docs.oracle.com",urlChangeDelay:0},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"edstem",matches:"edstem.org","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:"pubmed.ncbi.nlm.nih.gov",urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share"]},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"tldrnewsletter",matches:"actions.tldrnewsletter.com","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"bugzilla",matches:"bugzilla.mozilla.org","excludeTags.remove":["PRE"],isTransformPreTagNewLine:!0},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"excludeSelectors.add":["aside",".DocSearch-Modal"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"mail.qq.com",useIframePostMessage:!1},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]}]};m();m();function xa(e){return Array.isArray(e)?e:e?[e]:[]}function vs(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function Vn(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function eo(e,t){let n={...e};return cd(n,t),N1(n,t),n}function ld(e,t,n){let a={...t};return j1(e,a,n),a}function N1(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},a=t.condition.enableSubtitle?.false||{},r=e.enableSubtitle?n:a;cd(e,r)}function j1(e,t,n){try{return Object.keys(t).forEach(a=>{let[r,u]=a.split(".");if(u){let o=t[a];if(Array.isArray(e[r])&&(o=xa(t[a])),u==="add"){t[r]=zr(e[r],o),delete t[a];return}else if(u=="remove"){t[r]=As(e[r],o),delete t[a];return}}}),Object.keys(n).forEach(a=>{let[r,u]=a.split(".");if(!r||n[a]===void 0)return;let o=n[a],i=t[r];if(Array.isArray(e[r])&&(o=xa(n[a]),i=xa(t[r])),u==="add"){t[r]=zr(i,o);return}else if(u=="remove"){t[r]=As(i,o);return}Array.isArray(i)&&r.startsWith("additional")?t[r]=zr(i,o):t[r]=o}),t}catch{}}function cd(e,t){return Object.keys(t).forEach(n=>{let[a,r]=n.split(".");if(!a||t[n]===void 0)return;let u=t[n];if(Array.isArray(e[a])&&(u=xa(t[n])),r==="add"){e[a]=zr(e[a],u);return}else if(r=="remove"){e[a]=As(e[a],u);return}Array.isArray(e[a])&&a.startsWith("additional")?e[a]=zr(e[a],u):e[a]=u}),e}function zr(e,t){let n;if(Array.isArray(e)){let a=xa(t);n=[...e,...a],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"&&(n={...e,...t});return n}function As(e,t){if(Array.isArray(e)){let n=xa(t);return e=e.filter(a=>!n.includes(a)),Array.from(new Set(e))}else typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(n=>{delete e[n]});return e}function dd(){if(Ee.PROD==="1")return{};let e={};if(Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:Ee.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:Ee.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:Ee.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(Ee.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=Ee.DEEPL_PROXY_ENDPOINT),Ee.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=Ee.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),Ee.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:Ee.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}Ee.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=Ee.IMMERSIVE_TRANSLATE_SERVICE);let t={};return Ee.DEBUG==="1"&&(t.debug=!0,t.cache=!1),Ee.MOCK==="1"&&(t.translationService="mock"),t}async function Yn(){let e=await ue.storage.local.get(Dr);if(e[Dr]){let t=e[Dr],n=t.tempTranslationUrlMatches||[],a=n.filter(o=>o.expiredAt>Date.now()),r=!1;a.length!==n.length&&(n=a,r=!0);let u={...t,tempTranslationUrlMatches:[...n]};return r&&await kn(u),u}else return{}}async function kn(e){await ue.storage.local.set({[Dr]:e})}async function md(e){await ue.storage.local.set({[Wn]:e})}async function gd(){let e=await ue.storage.local.get(Wn),n={...pd(),...Xu,buildinConfigUpdatedAt:Ee.BUILD_TIME};if(e[Wn]){let a=e[Wn];if(a&&a.buildinConfigUpdatedAt){let r=new Date(a.buildinConfigUpdatedAt),u=new Date(n.buildinConfigUpdatedAt);r>u&&(n=a)}}return n}async function Jn(){let e=await ue.storage.local.get(Wn),t={...Xu,buildinConfigUpdatedAt:Ee.BUILD_TIME};if(e[Wn]){let M=e[Wn];if(M&&M.buildinConfigUpdatedAt){let x=new Date(M.buildinConfigUpdatedAt),L=new Date(t.buildinConfigUpdatedAt);x>L&&(t=M)}}let n=await Nt.get(en,null),a={};if(!fe()&&ue.commands&&ue.commands.getAll){let M=await ue.commands.getAll();for(let x of M)x.name&&x.shortcut&&(a[x.name]=x.shortcut)}let r=pd(),u=dd(),o=await ks(),i=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},s=await Yn(),c=new Date;if(s&&s.tempTranslationUrlMatches&&s.tempTranslationUrlMatches.length>0){let M=s.tempTranslationUrlMatches.filter(x=>new Date(x.expiredAt)>c);if(M.length>0){let x=o.translationUrlPattern?o.translationUrlPattern?.matches||[]:[],L=Array.isArray(x)?x:[x],I=Array.from(new Set(L.concat(M.map($=>$.match))));o.translationUrlPattern={...o.translationUrlPattern,matches:I}}}let l=Object.assign({},i,u,o);if(!l.interfaceLanguage){let M=await U1();l.interfaceLanguage=M}let g=l.interfaceLanguage==="en",p=l.targetLanguage==="en",f=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,d=["bing","google","transmart","mock"].includes(l.translationService)||!l.translationService;!g&&!p&&!f&&d?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let b=t&&t.enableDefaultAlwaysTranslatedUrls;l.enableDefaultAlwaysTranslatedUrls===!1&&(b=!1);let C=l&&l.isChangedAlwaysTranslatedUrls,h=[];l.translationUrlPattern&&l.translationUrlPattern.matches&&(h=l.translationUrlPattern.matches||[]);let A=!1;C===void 0&&(h.length>0?C=!0:C=!1,l.isChangedAlwaysTranslatedUrls=C,o.isChangedAlwaysTranslatedUrls=C,A=!0);let S=(l?.translationLanguagePattern?.matches?.length||0)>0,U=await St("installedAt",""),R=Number(await On("translage_page_daily",0)),y=Number(await St(fn,0)),T;y>0&&(Date.now()-y0&&(Date.now()-Rz.id&&I[z.id]?ld(t.generalRule,I[z.id],z):z);B[x]=[...$,...B[x]]}if(Ee.PROD==="0"&&Ee.DEV_RULES){let L=JSON.parse(Ee.DEV_RULES);B[x]=[...L,...B[x]]}}else l[x]!==void 0&&(B[x]=l[x])}return B.donateUrl=t.donateUrl,B.minVersion=t.minVersion,B.feedbackUrl=t.feedbackUrl,B}async function ks(){return(await ue.storage.sync.get("userConfig")||{}).userConfig||{}}async function Ss(e){await ue.storage.sync.set({userConfig:e})}var U1=async()=>{let e=["zh-CN"];try{e=await ue.i18n.getAcceptLanguages()}catch(a){j.warn("get browser language error:",a)}let n=e.map(a=>qa(a)).find(a=>Ot[a]);return n||"en"},pd=()=>{let e={...Xu,buildinConfigUpdatedAt:Ee.BUILD_TIME};return{...e,targetLanguage:Uu,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing"},rules:[]}};function z1(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(a=>!e.includes(a)).length>0}m();m();function Qn(e,t){var n=(e&65535)+(t&65535),a=(e>>16)+(t>>16)+(n>>16);return a<<16|n&65535}function H1(e,t){return e<>>32-t}function no(e,t,n,a,r,u){return Qn(H1(Qn(Qn(t,e),Qn(a,u)),r),n)}function xt(e,t,n,a,r,u,o){return no(t&n|~t&a,e,t,r,u,o)}function Et(e,t,n,a,r,u,o){return no(t&a|n&~a,e,t,r,u,o)}function Tt(e,t,n,a,r,u,o){return no(t^n^a,e,t,r,u,o)}function Ct(e,t,n,a,r,u,o){return no(n^(t|~a),e,t,r,u,o)}function to(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,a,r,u,o,i=1732584193,s=-271733879,c=-1732584194,l=271733878;for(n=0;n>5]>>>t%32&255);return n}function Ds(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(a=to(a,e.length*8)),n=0;n<16;n+=1)r[n]=a[n]^909522486,u[n]=a[n]^1549556828;return o=to(r.concat(Ds(t)),512+t.length*8),fd(to(u.concat(o),512+128))}function hd(e){var t="0123456789abcdef",n="",a,r;for(r=0;r>>4&15)+t.charAt(a&15);return n}function Ls(e){return unescape(encodeURIComponent(e))}function bd(e){return q1(Ls(e))}function $1(e){return hd(bd(e))}function yd(e,t){return W1(Ls(e),Ls(t))}function K1(e,t){return hd(yd(e,t))}function Zn(e,t,n){return t?n?yd(t,e):K1(t,e):n?bd(e):$1(e)}m();function xd(e,t,n){let a=G1(e,t),r=[],u={from:e[0].from,fromByClient:e[0].fromByClient,to:e[0].to,tempSentences:[],url:e[0].url};for(let o of a)(u.tempSentences.reduce((s,c)=>s+c.text.length,0)+o.text.length>t||u.tempSentences.length>=n)&&(r.push(u),u={fromByClient:u.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}),(u.from!==o.from||u.to!==o.to)&&(u.tempSentences.length>0?(r.push(u),u={fromByClient:u.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}):(u.from=o.from,u.to=o.to)),u.tempSentences.push(o);return u.tempSentences.length>0&&r.push(u),r}function G1(e,t){let n=[],a=[];for(let r=0;r0?d header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,normalizeBody:"#mw-content-text",globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"]},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"}},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:"chat.openai.com",excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0}},{id:"newstop",matches:["chat.newstop.asia","chat.waixingyun.cn"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".n-button.n-button--warning-type.n-button--medium-type",messageWrapperSelector:".markdown-body",streamingChange:!1,streamingDeepChild:!0}},{id:"askgpt",matches:["askgpt.cn","chatcat.zhaoyoung.me"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".home_chat-message-status__EsVNi",messageWrapperSelector:".markdown-body",streamingChange:!0,streamingDeepChild:!0}},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__UyYrv *",".MarkdownLink_linkifiedLink__KxC9G"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__UyYrv",streamingChange:!1,streamingDeepChild:!0}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"newthingsunderthesun",matches:"www.newthingsunderthesun.com",additionalSelectors:["[translate=no]"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"https://steamcommunity.com/app/*",globalStyles:{".forum_topic":"height:auto;",".forum_topic_name":"white-space:normal;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampowered",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:"https://www.webofscience.com/*",globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},excludeSelectors:[".summary-left-panel",".authors","app-full-record-keywords mark"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],extraBlockSelectors:["app-summary-authors + div","app-full-record-keywords span span"],observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://www.jetbrains.com/help/*",extraBlockSelectors:["[data-test=prompt]"]},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails p"]},{id:"isEbook",isEbook:!0,isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span"},{id:"isEbookBuilder",isEbookBuilder:!0,isTranslateTitle:!1,targetWrapperTag:"span",selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com",extraBlockSelectors:["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],extraBlockSelectors:"font[face=verdana]"},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"isSubtitleBuilder",isSubtitleBuilder:!0,selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,wrapperPrefix:"",wrapperSuffix:""},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/",extraBlockSelectors:[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"vimeo",matches:"https://player.vimeo.com/video/*",extraBlockSelectors:["span.vp-captions-line","span[class^=CaptionsRenderer_]"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexityAi",matches:"https://www.perplexity.ai/search/*",extraBlockSelectors:[".prose > span"],additionalStayOriginalSelectors:["a.citation"],insertPosition:"afterend"},{id:"perplexity",matches:"https://www.perplexity.ai",globalStyles:{".line-clamp-1":"-webkit-line-clamp: unset !important;",".line-clamp-2":"-webkit-line-clamp: unset !important;"}},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"babelnovel",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*"],urlChangeDelay:0},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0},{globalAttributes:{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"youtrackJetbrains",matches:"youtrack.jetbrains.com/articles/*",selectors:["[role=presentation]","[data-test=article-content]"],excludeSelectors:[".toolbar__ee8"]},{id:"bbc",matches:"www.bbc.com",excludeSelectors:["section.module--languages",".drop-capped"]},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}}},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"openai",matches:"https://platform.openai.com/docs/*",urlChangeDelay:0},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout":"height:unset !important;",".EntrySummary--u4":"-webkit-line-clamp: unset;max-height:unset;",".EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:[".copyable-text > span"],wrapperPrefix:` +`,wrapperSuffix:"
"},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],globalStyles:{"[class*='lineclamp']":"-webkit-line-clamp:unset;"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],extraBlockSelectors:[".SIPGg",".sc-kzMCTH.pSZXj"],globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"]},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*",globalAttributes:{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead"],injectedCss:["a::after {position:relative!important;}"]},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},globalAttributes:{"#app":{class:""}}},{id:"haproxy",matches:["docs.haproxy.org","www.oreilly.com/openbook/opensources/book/*"],excludeTags:[],stayOriginalSelectors:[],stayOriginalTags:[],isTransformPreTagNewLine:!0},{id:"piAi",matches:"pi.ai/talk",excludeSelectors:[".whitespace-pre-wrap > span *"],aiRule:{streamingSelector:"button[class*='fixed'][disabled]",messageWrapperSelector:".whitespace-pre-wrap",streamingChange:!1,streamingDeepChild:!1},globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *"],"excludeTags.remove":["PRE"],injectedCss:"[data-testid='chat-menu-trigger'] br {display:none;}",aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1}},{id:"feishu",matches:"*.feishu.cn","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],excludeSelectors:[".catalogue__list"]},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"bugsWebkit",matches:"bugs.webkit.org",isTransformPreTagNewLine:!0},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",matches:"www.kaggle.com",excludeTags:["i","button"]},{id:"ieee",matches:"spectrum.ieee.org",extraBlockSelectors:["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"www.cnn.com",excludeSelectors:[".ad-slot-header__wrapper"]},{id:"marginalrevolution",matches:"marginalrevolution.com",globalAttributes:{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",condition:{enableSubtitle:{false:{"excludeSelectors.add":[".bpx-player-subtitle-panel-text"]}}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"docs-oracle",matches:"docs.oracle.com",urlChangeDelay:0},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"edstem",matches:"edstem.org","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:"pubmed.ncbi.nlm.nih.gov",urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share"]},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"tldrnewsletter",matches:"actions.tldrnewsletter.com","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"bugzilla",matches:"bugzilla.mozilla.org","excludeTags.remove":["PRE"],isTransformPreTagNewLine:!0},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"excludeSelectors.add":["aside",".DocSearch-Modal"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"mail.qq.com",useIframePostMessage:!1},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]}]};m();m();function Ea(e){return Array.isArray(e)?e:e?[e]:[]}function vs(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function Vn(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function Xu(e,t){let n={...e};return dd(n,t),N1(n,t),n}function cd(e,t,n){let a={...t};return j1(e,a,n),a}function N1(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},a=t.condition.enableSubtitle?.false||{},r=e.enableSubtitle?n:a;dd(e,r)}function j1(e,t,n){try{return Object.keys(t).forEach(a=>{let[r,u]=a.split(".");if(u){let o=t[a];if(Array.isArray(e[r])&&(o=Ea(t[a])),u==="add"){t[r]=zr(e[r],o),delete t[a];return}else if(u=="remove"){t[r]=As(e[r],o),delete t[a];return}}}),Object.keys(n).forEach(a=>{let[r,u]=a.split(".");if(!r||n[a]===void 0)return;let o=n[a],i=t[r];if(Array.isArray(e[r])&&(o=Ea(n[a]),i=Ea(t[r])),u==="add"){t[r]=zr(i,o);return}else if(u=="remove"){t[r]=As(i,o);return}Array.isArray(i)&&r.startsWith("additional")?t[r]=zr(i,o):t[r]=o}),t}catch{}}function dd(e,t){return Object.keys(t).forEach(n=>{let[a,r]=n.split(".");if(!a||t[n]===void 0)return;let u=t[n];if(Array.isArray(e[a])&&(u=Ea(t[n])),r==="add"){e[a]=zr(e[a],u);return}else if(r=="remove"){e[a]=As(e[a],u);return}Array.isArray(e[a])&&a.startsWith("additional")?e[a]=zr(e[a],u):e[a]=u}),e}function zr(e,t){let n;if(Array.isArray(e)){let a=Ea(t);n=[...e,...a],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"&&(n={...e,...t});return n}function As(e,t){if(Array.isArray(e)){let n=Ea(t);return e=e.filter(a=>!n.includes(a)),Array.from(new Set(e))}else typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(n=>{delete e[n]});return e}function md(){if(Ee.PROD==="1")return{};let e={};if(Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:Ee.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:Ee.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:Ee.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(Ee.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=Ee.DEEPL_PROXY_ENDPOINT),Ee.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=Ee.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),Ee.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:Ee.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}Ee.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=Ee.IMMERSIVE_TRANSLATE_SERVICE);let t={};return Ee.DEBUG==="1"&&(t.debug=!0,t.cache=!1),Ee.MOCK==="1"&&(t.translationService="mock"),t}async function Yn(){let e=await ue.storage.local.get(Dr);if(e[Dr]){let t=e[Dr],n=t.tempTranslationUrlMatches||[],a=n.filter(o=>o.expiredAt>Date.now()),r=!1;a.length!==n.length&&(n=a,r=!0);let u={...t,tempTranslationUrlMatches:[...n]};return r&&await kn(u),u}else return{}}async function kn(e){await ue.storage.local.set({[Dr]:e})}async function gd(e){await ue.storage.local.set({[Wn]:e})}async function pd(){let e=await ue.storage.local.get(Wn),n={...fd(),...Zu,buildinConfigUpdatedAt:Ee.BUILD_TIME};if(e[Wn]){let a=e[Wn];if(a&&a.buildinConfigUpdatedAt){let r=new Date(a.buildinConfigUpdatedAt),u=new Date(n.buildinConfigUpdatedAt);r>u&&(n=a)}}return n}async function Jn(){let e=await ue.storage.local.get(Wn),t={...Zu,buildinConfigUpdatedAt:Ee.BUILD_TIME};if(e[Wn]){let M=e[Wn];if(M&&M.buildinConfigUpdatedAt){let x=new Date(M.buildinConfigUpdatedAt),L=new Date(t.buildinConfigUpdatedAt);x>L&&(t=M)}}let n=await jt.get(Nt,null),a={};if(!pe()&&ue.commands&&ue.commands.getAll){let M=await ue.commands.getAll();for(let x of M)x.name&&x.shortcut&&(a[x.name]=x.shortcut)}let r=fd(),u=md(),o=await ks(),i=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},s=await Yn(),c=new Date;if(s&&s.tempTranslationUrlMatches&&s.tempTranslationUrlMatches.length>0){let M=s.tempTranslationUrlMatches.filter(x=>new Date(x.expiredAt)>c);if(M.length>0){let x=o.translationUrlPattern?o.translationUrlPattern?.matches||[]:[],L=Array.isArray(x)?x:[x],I=Array.from(new Set(L.concat(M.map($=>$.match))));o.translationUrlPattern={...o.translationUrlPattern,matches:I}}}let l=Object.assign({},i,u,o);if(!l.interfaceLanguage){let M=await U1();l.interfaceLanguage=M}let g=l.interfaceLanguage==="en",p=l.targetLanguage==="en",f=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,d=["bing","google","transmart","mock"].includes(l.translationService)||!l.translationService;!g&&!p&&!f&&d?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let b=t&&t.enableDefaultAlwaysTranslatedUrls;l.enableDefaultAlwaysTranslatedUrls===!1&&(b=!1);let C=l&&l.isChangedAlwaysTranslatedUrls,h=[];l.translationUrlPattern&&l.translationUrlPattern.matches&&(h=l.translationUrlPattern.matches||[]);let A=!1;C===void 0&&(h.length>0?C=!0:C=!1,l.isChangedAlwaysTranslatedUrls=C,o.isChangedAlwaysTranslatedUrls=C,A=!0);let S=(l?.translationLanguagePattern?.matches?.length||0)>0,U=await St("installedAt",""),R=Number(await On("translage_page_daily",0)),y=Number(await St(fn,0)),T;y>0&&(Date.now()-y0&&(Date.now()-Rz.id&&I[z.id]?cd(t.generalRule,I[z.id],z):z);B[x]=[...$,...B[x]]}if(Ee.PROD==="0"&&Ee.DEV_RULES){let L=JSON.parse(Ee.DEV_RULES);B[x]=[...L,...B[x]]}}else l[x]!==void 0&&(B[x]=l[x])}return B.donateUrl=t.donateUrl,B.minVersion=t.minVersion,B.feedbackUrl=t.feedbackUrl,B}async function ks(){return(await ue.storage.sync.get("userConfig")||{}).userConfig||{}}async function Ss(e){await ue.storage.sync.set({userConfig:e})}var U1=async()=>{let e=["zh-CN"];try{e=await ue.i18n.getAcceptLanguages()}catch(a){j.warn("get browser language error:",a)}let n=e.map(a=>Wa(a)).find(a=>Ot[a]);return n||"en"},fd=()=>{let e={...Zu,buildinConfigUpdatedAt:Ee.BUILD_TIME};return{...e,targetLanguage:ju,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing"},rules:[]}};function z1(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(a=>!e.includes(a)).length>0}m();m();function Qn(e,t){var n=(e&65535)+(t&65535),a=(e>>16)+(t>>16)+(n>>16);return a<<16|n&65535}function H1(e,t){return e<>>32-t}function to(e,t,n,a,r,u){return Qn(H1(Qn(Qn(t,e),Qn(a,u)),r),n)}function xt(e,t,n,a,r,u,o){return to(t&n|~t&a,e,t,r,u,o)}function Et(e,t,n,a,r,u,o){return to(t&a|n&~a,e,t,r,u,o)}function Tt(e,t,n,a,r,u,o){return to(t^n^a,e,t,r,u,o)}function Ct(e,t,n,a,r,u,o){return to(n^(t|~a),e,t,r,u,o)}function eo(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,a,r,u,o,i=1732584193,s=-271733879,c=-1732584194,l=271733878;for(n=0;n>5]>>>t%32&255);return n}function Ds(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(a=eo(a,e.length*8)),n=0;n<16;n+=1)r[n]=a[n]^909522486,u[n]=a[n]^1549556828;return o=eo(r.concat(Ds(t)),512+t.length*8),hd(eo(u.concat(o),512+128))}function bd(e){var t="0123456789abcdef",n="",a,r;for(r=0;r>>4&15)+t.charAt(a&15);return n}function Ls(e){return unescape(encodeURIComponent(e))}function yd(e){return q1(Ls(e))}function $1(e){return bd(yd(e))}function xd(e,t){return W1(Ls(e),Ls(t))}function K1(e,t){return bd(xd(e,t))}function Zn(e,t,n){return t?n?xd(t,e):K1(t,e):n?yd(e):$1(e)}m();function Ed(e,t,n){let a=G1(e,t),r=[],u={from:e[0].from,fromByClient:e[0].fromByClient,to:e[0].to,tempSentences:[],url:e[0].url};for(let o of a)(u.tempSentences.reduce((s,c)=>s+c.text.length,0)+o.text.length>t||u.tempSentences.length>=n)&&(r.push(u),u={fromByClient:u.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}),(u.from!==o.from||u.to!==o.to)&&(u.tempSentences.length>0?(r.push(u),u={fromByClient:u.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}):(u.from=o.from,u.to=o.to)),u.tempSentences.push(o);return u.tempSentences.length>0&&r.push(u),r}function G1(e,t){let n=[],a=[];for(let r=0;r0?dt){let h=[];Ms(b,t,h);for(let A=0;A0&&d{let i=e.lastIndexOf(o,t);return i>u?i:u},-1);if(r===-1){let u=e.slice(0,t);if(u&&!u.trim())return;n.push({text:u,prefix:"",suffix:""}),e.length>t&&Ms(e.slice(t),t,n)}else{let u=e.slice(0,r+1);if(u&&u.trim()==="")return;u.startsWith(" ")?n.push({text:u.slice(1),prefix:" ",suffix:""}):n.push({text:u,prefix:"",suffix:""}),r+10){l.forEach(d=>{c.length>0&&d.providers&&d.providers.length>0&&!d.providers.includes(s)||(d.optional?p.push(d):g.push(d))});let f=p.concat(g).filter(d=>d.required);if(f.length>0){for(let d of f)if(!r[d.name]){i=!1;break}}}return{...a,id:t,selected:n[e]===t,ok:i,currentProvider:s,config:r,providers:a.providers||[],props:a.props||[],allProps:l,optionalProps:p,explicitProps:g}}var Ed=(e,t)=>{let{config:n}=e,a=n.alpha,r=n.beta,u=n.canary,o=n.debug,i=e.user,s=tn(i);return Object.keys(Bn).filter(l=>{let g=Bn[l];if(l.startsWith("mock"))return o?!0:l===e.config[t];if(l===e.config[t])return!0;if(l==="openai"&&Rt())return e.config.showOpenaiOnSafari||s?!0:!!(r||a||u||s);let p=!!g.canary,f=!!g.alpha,d=!!g.beta;return l===e[t]||p&&u||f&&(a||u)||d&&(r||a||u)?!0:!f&&!d&&!p}).map(l=>Fs(t,l,e))};function hn(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}var $a=[];async function ao(e,t){return await new Promise((n,a)=>{let r=e,u=1,o=indexedDB.open(r,u);o.onsuccess=i=>{n(o.result)},o.onerror=i=>{a()},o.onupgradeneeded=i=>{let s=o.result,c=t||"cache";s.createObjectStore(c,{keyPath:"key"})}})}async function Td(e){let t=`${J}-${e.service}@${e.from}->${e.to}`;return await J1(t,e)}async function Cd(e){let t=Zn(e.originalText),n=`${J}-${e.service}@${e.from}->${e.to}`;return await Y1(n,t)}async function Y1(e,t){let n=await ao(e);return await new Promise((a,r)=>{if(!n)return r();let u="cache",i=n.transaction([u],"readonly").objectStore(u).get(t);i.onsuccess=s=>{n.close();let c=i.result;a(c)},i.onerror=s=>{n.close(),r()}})}async function J1(e,t){let n=await ao(e);return(await Z1()).includes(e)||await Q1(e),await new Promise(r=>{if(!n)return r(!1);let u="cache",i=n.transaction([u],"readwrite").objectStore(u).put(t);i.onsuccess=s=>{n.close(),r(!0)},i.onerror=s=>{n.close(),r(!1)}})}async function Q1(e){let t="cache_list",n=await ao(J+"-cacheList",t),r=n.transaction([t],"readwrite").objectStore(t).put({key:e});r.onsuccess=u=>{n.close(),$a.push(e)},r.onerror=u=>{n.close()}}async function Z1(){if($a&&$a.length>0)return $a;let e=await ao(J+"-cacheList","cache_list");return $a=await new Promise(t=>{let n="cache_list",r=e.transaction([n],"readonly").objectStore(n).getAllKeys();r.onsuccess=u=>{e.close(),t(r.result)},r.onerror=u=>{e.close(),t([])}}),$a}m();m();var Ps="Original";function qe(){return Ps}function Dt(e){Ps=e,wd(Ps)}m();var Ad="auto",ro="auto",vd="auto";function kd(e){Ad=e}function an(e){ro=e}function pt(){return ro!=="auto"?ro:vd!=="auto"?vd:Ad}function uo(){return ro}var Ka=async function(e,t){let{method:n,data:a}=e,r=await Pd(),u=Date.now();if(j.debug(`content script received message: ${n}`,a||" "),n==="translateTheWholePage")await Bs(a),je(fn,u);else if(n==="translateTheMainPage")await go(a),je(fn,u);else if(n==="translateToThePageEndImmediately")await Fd(a),je(fn,u);else if(n==="toggleTranslatePage")await lo(a),je(fn,u);else if(n==="toggleTranslateTheWholePage")await Md(a),je(fn,u);else if(n==="toggleTranslateTheMainPage")await Dd(a),je(fn,u);else if(n==="toggleOnlyTransation")await po(a),je(fn,u);else if(n==="translatePage")await rn(r,a),je(fn,u);else if(n==="toggleTranslationMask")await mo(a);else if(n==="restorePage")Ea();else if(n==="setCurrentPageLanguageByClient")an(a);else if(n==="retryFailedParagraphs")co();else if(n==="switchTranslationMode"){if(r.rule.isPdf)return;a&&a.mode&&Ld(a.mode)}},X1=function(e,t){let{method:n,data:a}=e;if(j.debug(`content script received sync message: ${n}`,a||" "),n==="ping")return"pong";if(n==="getPageStatus")return qe();if(n==="getCurrentPageLanguage"){let r=pt();return _s().catch(u=>{j.warn("detectCurrentPageLanguage failed",u)}),r}},oo,io;function Sd(){let e=so();Je()||e6(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function so(){return oo||(oo=new Gn("content_script",!1).getConnection("main",Ka),oo)}function e6(){return io||(io=new Gn("content_script",!1).getConnection("main_sync",X1,{sync:!0}),io)}async function Ke(e){return await so().sendMessage("background:main",e)}function oe(e){return Cu()?Yu({method:"request",data:e}):fe()||Tu()?(e.fetchPolyfill=globalThis.GM_fetch,ya(e)):Ke({method:"fetch",data:e})}function Lt(){return fe()?Jn():Ke({method:"getConfig"})}function un(e){return fe()?Ss(e):Ke({method:"setUserConfig",data:e})}function on(){return fe()?ks():Ke({method:"getUserConfig"})}function _d(){return fe()?Yn():Ke({method:"getLocalConfig"})}function fo(e){return fe()?kn(e):Ke({method:"setLocalConfig",data:e})}function Bd(e){return fe()?md(e):Ke({method:"setBuildinConfig",data:e})}async function Qe(e){if(e.text){let n=Vu(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(fe()||Rt()){let n=ed(e.text,e.minLength,e.pageLangs);return Promise.resolve(n)}let t=await Ke({method:"detectLanguage",data:e});return Promise.resolve(t)}function Rd(){return Ke({method:"detectTabLanguage"})}function wd(e){if(fe()){let n=new CustomEvent(Ou,{detail:e});document.dispatchEvent(n);return}so().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(n=>{})}function Od(e){return fe()?Cd(e):Ke({method:"queryParagraphCache",data:e})}async function Id(e){if(fe()){await Td(e);return}return Ke({method:"setParagraphCache",data:e})}async function Nd(){if(fe())return Promise.resolve();await Ke({method:"mockRequest"})}function Ga(e=!1,t=""){return fe()?(ue.runtime.openOptionsPage(e,t),Promise.resolve()):Ke({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function jd(e=""){return fe()||Rt()?Ve().OPTIONS_URL:ue.runtime.getURL("options.html")}function Ud(e=""){return ue&&ue.runtime&&ue.runtime.getURL?ue.runtime.getURL("options.html"):""}function ho(e=!1){return fe()?(ue.extra.openAboutPage(e),Promise.resolve()):Ke({method:"openAboutPage"})}function zd(e=!1){return fe()?(ue.extra.openSearchEnhancement(e),Promise.resolve()):Ke({method:"openSearchEnhancement"})}function bo(e){return fe()?(ue.extra.openInTab(e),Promise.resolve()):Ke({method:"openInTab",data:e})}function yo(e=!1){return fe()?(ue.extra.openEbookViewerPage(e),Promise.resolve()):Ke({method:"openEbookViewerPage"})}function Hd(e=!1){return fe()?Promise.resolve():Ke({method:"openHtmlViewerPage"})}function xo(e=!1){return fe()?(ue.extra.openEbookBuilderPage(e),Promise.resolve()):Ke({method:"openEbookBuilderPage"})}function Eo(e){Rt()}function Rs(e=!1){return fe()?(ue.extra.openPdfViewerPage(e),Promise.resolve()):Ke({method:"openPdfViewerPage"})}function qd(e=!1){return fe()?(ue.extra.openSubtitleBuilderPage(e),Promise.resolve()):Ke({method:"openSubtitleBuilderPage"})}function Os(e){return fe()?Promise.resolve():Ke({method:"setBadge",data:{text:e}})}function Wd(){return fe()?(j.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):Ke({method:"autoSyncLatestConfig"})}var $d="G-MKMD9LWFTR";async function We(e,t,n){try{let a=Ve();if(a.INSTALL_FROM==="firefox_store")return;let u=fe(),o=Je(),i=a.PROD==="1",s=`report_${e}`,c=e.endsWith("_daily");if(c){if(o)return;let k=await On(s,0),v=To(new Date(k)),E=Date.now(),B=To(new Date(E));if(v===B)return;await rd(s,E)}else if(!n.config.telemetry)return;let l="sitc4WmvShWYwfU0dANM3Q",g=await St("fakeUserId","");g||(g=await On("fakeUserId",""),g&&await je("fakeUserId",g));let p=nn(),f=new Date,d=await St("installedAt","");d||(d=await On("installedAt",""),d&&await je("installedAt",d)),g?d||(d=new Date(0).toISOString(),await je("installedAt",d)):(g=t6(32),await je("fakeUserId",g)),d||(d=f.toISOString(),await je("installedAt",d));let b=new Date(d),C=To(b),h=To(f),A=C===h,S=f.getTime()-b.getTime()<7*24*60*60*1e3,U=`https://www.google-analytics.com/mp/collect?measurement_id=${$d}&api_secret=${l}`;i||(U=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${$d}&api_secret=${l}`);let R=Na.parse(window.navigator.userAgent),y=t.map(k=>{let v=k.params||{};if(R.os&&(v.os_name=R.os.name||"unknown",v.os_version=R.os.version||"unknown",v.os_version_name=R.os.versionName||"unknown"),R.browser&&(v.browser_name=R.browser.name||"unknown",v.browser_version=R.browser.version||"unknown"),R.platform&&(v.platform_type=R.platform.type||"unknown"),R.engine&&(v.engine_name=R.engine.name||"unknown",v.engine_version=R.engine.version||"unknown"),n.translationService&&(v.translation_service||(v.translation_service=n.translationService),n.config.translationServices&&n.config.translationServices[n.translationService]&&(n.config.translationServices[n.translationService].provider&&(v.translation_service_provider=n.config.translationServices[n.translationService].provider),n.translationService==="openai"&&n.config.translationServices[n.translationService].provider==="custom"&&(n.config.translationServices[n.translationService].apiUrl?n.config.translationServices[n.translationService].apiUrl.startsWith("https://api.openai.com/")?v.openai_is_official="1":v.openai_is_official="0":v.openai_is_official="1"))),n.targetLanguage&&(v.target_language=n.targetLanguage),n.config.interfaceLanguage&&(v.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?v.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":v.enable_default_always_translated_urls="0",p&&(v.version=p),n.config.enableInputTranslation?v.enable_input_translation=n.config.enableInputTranslation?"1":"0":v.enable_input_translation="0",n.config.translationTheme&&(v.translation_theme=n.config.translationTheme),n.config.alpha&&(v.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?v.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):v.always_translate_languages="none",a.INSTALL_FROM&&(v.install_from=a.INSTALL_FROM),n.config.beta&&(v.beta=n.config.alpha.toString()),n.config.translationArea&&(v.translation_area=n.config.translationArea),n.rule&&n.rule.enableSearchEnhancement!==void 0&&(v.enable_search_enhancement=n.rule.enableSearchEnhancement?"1":"0"),C&&(v.install_day=n6(b)),n.user){let B=td(n.user);B&&Object.keys(B).forEach(P=>{v[P]=B[P]})}else v.user_type="anonymous";n.config.translationMode&&(v.translation_mode=n.config.translationMode),v.userscript=u.toString(),A?v.is_new_user_today="1":v.is_new_user_today="0",S?v.is_new_user_this_week="1":v.is_new_user_this_week="0",n.config.tempTranslateDomainMinutes?v.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():v.temp_translate_domain_minutes="0";let E="html";if(n.rule.isEbook?E="ebookReader":n.rule.isPdf?E="pdfReader":n.rule.isEbookBuilder?E="ebookBuilder":n.rule.isSubtitleBuilder&&(E="subtitleBuilder"),v.page_type=E,o?v.main_frame=0:v.main_frame=1,!c){let B=n.url;try{let P=new URL(B);v.site_host=P.hostname}catch{v.site_host="unknown"}n.sourceLanguage&&(v.source_language=n.sourceLanguage)}return{...k,params:v}}),T=await oe({responseType:"text",url:U,method:"POST",body:JSON.stringify({client_id:g,user_id:g,events:y})})}catch{}}function t6(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;rt.removeEventListener("message",n)),e.length=0}function o6(e,t,n,a){return new Promise(r=>{let u=o=>{let i=o.data;r6(t,n,i)&&i.id===a&&(e.removeEventListener("message",u),r(i.response))};e.addEventListener("message",u)})}function i6(e,t,n,a){let r=u=>{let o=u.data;Jd(t,"tell",n,o)&&a(o.body)};return e.addEventListener("message",r),[e,r]}function Kd(e,t,n,a,r,u){let o=async i=>{let s=i.data;if(Jd(n,"ask",a,s)){let c=await u(s.body);t=i.source,t.postMessage(a6(n,a,s.id,c),i.origin)}};return e.addEventListener("message",o),[e,o]}function s6(e,t,n,a,r){let u=Math.random().toString();return e.postMessage(Yd(t,"tell",n,u,a),r)}async function Gd(e,t,n,a,r,u,o){let i=Math.random().toString(),s=new Promise(async(c,l)=>{let g=setTimeout(()=>l(new Error(`Failed to get response within ${o}ms`)),o),p=await o6(e,n,a,i);clearTimeout(g),c(p)});return t.postMessage(Yd(n,"ask",a,i,r),u),s}var ta=class e{constructor(t,n,a=window,r="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=a;this.targetOrigin=r;Kd(a,n,this.getSystemProtocol("ping"),"ping",r,()=>Promise.resolve({}))}static async connect(t,n=10,a=500){for(let r=0;r<=n;r++)try{return await t.ping({timeout:a}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*a}ms`)}static parent(t,n,a="*",r=window){let u=n.contentWindow;if(ea(u))return new e(t,u,r,a);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:a=window,targetWindow:r=window.parent}={}){return new e(t,r,a,n)}static rootIframe(t,n="*",{thisWindow:a=window}={}){return new e(t,null,a,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await Gd(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(i6(this.thisWindow,this.protocol,t,n))}tell(t,n){s6(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(Kd(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,a=1e4){if(this.targetWindow)return Gd(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,a);throw new Error("target window is requried")}destroy(){u6(this.listeners)}};var Qd;async function Zd(){if(Je()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=ta.iframe(zu,"*",{targetWindow:t});Qd=n,await ta.connect(n).catch(a=>{j.error("connect with parent frame error",a)})}}function Co(){return Qd}m();function Xd(e,t){let n=t.matches||[],a=t.excludeMatches||[];if(a&&!Array.isArray(a)&&(a=[a]),n&&!Array.isArray(n)&&(n=[n]),a.length>0){if(a.includes(e)||a.includes(""))return!1;for(let r of a)if(r.includes("*")&&new RegExp(r).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let r of n)if(r.includes("*")&&new RegExp(r).test(e))return!0}return!1}m();m();m();m();m();var ft=class{options;strictTicks=[];constructor(t){this.options=t,this.setOptions(t)}setOptions(t){t&&(t.interval!==void 0&&(this.options.interval=Number(t.interval)),t.limit!==void 0&&(this.options.limit=Number(t.limit)))}wait(){return new Promise((t,n)=>{setTimeout(t,this.getDelay())})}getDelay(){let t=this.strictTicks,n=this.options.limit,a=this.options.interval,r=Date.now();if(t.length=u?(t.push(r),0):(t.push(u),u-r)}};var l6=new ft({limit:7,interval:1250}),c6={tencent:new ft({limit:3,interval:1350}),baidu:new ft({limit:1,interval:1550}),strict:new ft({limit:1,interval:1050}),d:new ft({limit:1,interval:1050}),youdao:new ft({limit:5,interval:1050}),you:new ft({limit:5,interval:1050}),cai:new ft({limit:5,interval:1050}),google:new ft({limit:10,interval:1050}),deepl:new ft({limit:10,interval:1050}),transmart:new ft({limit:30,interval:1050}),papago:new ft({limit:3,interval:1150}),openai:new ft({limit:10,interval:1300}),chatgpt:new ft({limit:1,interval:1350})};function Hr(e){return c6[e]||l6}async function em(e){if(Je()){let n=Co();if(n)try{return(await n.ask("getRateLimitDelay",{key:e})).value}catch(a){return j.error("can not comunicate with root frame, use strict limiter",a),Hr("strict").getDelay()}else return Hr("strict").getDelay()}else return Hr(e).getDelay()}async function tm(e,t){if(!Je()){let a=Hr(e);t&&a.setOptions(t)}}async function nm(e){let t=e.key;return{value:Hr(t).getDelay()}}var be=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=200;translationOptions;constructor(t,n,a){this.serviceConfig=t,this.generalConfig=n,this.translationOptions=a}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getDefaultRateLimit(){return null}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,a){if(t.sentences.length===0)return{sentences:[]};let{sentences:r}=t,u=[],o=null,i=new Set;for(let b of r)b.from&&b.from!=="auto"&&i.add(b.from);let s=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(s=this.serviceConfig.maxTextLengthPerRequest);let c=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(c=this.serviceConfig.maxTextGroupLengthPerRequest);try{u=xd(r,s,c)}catch(b){if(a)for(let C=0;Cb));let l=[],g=[],p=(b,C,h)=>{let A=C.translatedTexts[0];g[b]||(g[b]=C,g[b].translatedTexts=Array(C.sentenceTotalParts).fill(null)),g[b].translatedTexts[C.partIndex]=A;let S=g[b],U=0;for(let R=0;R{let S=await em(this.translationOptions.translationService);await Cr(S||0);let U=C.from;if(C.fromByClient&&C.fromByClient!=="auto"&&(U=C.fromByClient),this.isSupportList)return{...await this.translateList({text:C.tempSentences.map(y=>y.text),from:U,to:C.to,url:h,options:n}),sourceTempSentences:C.tempSentences};{let R=p4;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(R=this.serviceConfig.translationTextSeparator);let y=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(y=this.serviceConfig.newlinePlaceholderDelimiters);let T="";y&&y.length>=2?T=C.tempSentences.map((P,w)=>w===C.tempSentences.length-1?P.text:P.text+y[0]+(w+1)+y[1]).join(""):T=C.tempSentences.map(P=>P.text).join(R);let k=await this.translate({text:T,from:U,to:C.to,url:h,options:n}),{text:v}=k,E=[];if(y&&y.length>=2){let P=`${y[0]}\\d+${y[1]}`;y&&y.length>=3&&(P=y[2]);let w=new RegExp(P,"g");E=v.split(w)}else E=v.split(R);let B=[];if(E.length>C.tempSentences.length){for(let P=0;P{let{text:U,sourceTempSentences:R}=S;for(let y=0;y{if(a){for(let U=0;U({...b.sentence,text:b.translatedTexts.join("")}))}}detectLanguageLocally(t){return Qe({text:t,minLength:18,pageLangs:[pt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}};m();m();var Va="input is invalid type",Is=typeof window=="object",na=Is?window:{};na.JS_SHA256_NO_WINDOW&&(Is=!1);var d6=!Is&&typeof self=="object",m6=!na.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;m6?na=global:d6&&(na=self);var Lw=!na.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,Mw=typeof define=="function"&&define.amd,qr=!na.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",le="0123456789abcdef".split(""),g6=[-2147483648,8388608,32768,128],bn=[24,16,8,0],wo=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],vo=["hex","array","digest","arrayBuffer"],ct=[];(na.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});qr&&(na.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var am=function(e,t){return function(n){return new dt(t,!0).update(n)[e]()}},um=function(e){var t=am("hex",e);t.create=function(){return new dt(e)},t.update=function(r){return t.create().update(r)};for(var n=0;n>2]|=e[r]<>2]|=a<>2]|=(192|a>>6)<>2]|=(128|a&63)<=57344?(i[u>>2]|=(224|a>>12)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<>2]|=(240|a>>18)<>2]|=(128|a>>12&63)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<=64?(this.block=i[16],this.start=u-64,this.hash(),this.hashed=!0):this.start=u}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};dt.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=g6[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};dt.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,s=this.blocks,c,l,g,p,f,d,b,C,h,A,S;for(c=16;c<64;++c)f=s[c-15],l=(f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3,f=s[c-2],g=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10,s[c]=s[c-16]+l+s[c-7]+g<<0;for(S=t&n,c=0;c<64;c+=4)this.first?(this.is224?(C=300032,f=s[0]-1413257819,i=f-150054599<<0,a=f+24177077<<0):(C=704751109,f=s[0]-210244248,i=f-1521486534<<0,a=f+143694565<<0),this.first=!1):(l=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),g=(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7),C=e&t,p=C^e&n^S,b=r&u^~r&o,f=i+g+b+wo[c]+s[c],d=l+p,i=a+f<<0,a=f+d<<0),l=(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10),g=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),h=a&e,p=h^a&t^C,b=i&r^~i&u,f=o+g+b+wo[c+1]+s[c+1],d=l+p,o=n+f<<0,n=f+d<<0,l=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),g=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),A=n&a,p=A^n&e^h,b=o&i^~o&r,f=u+g+b+wo[c+2]+s[c+2],d=l+p,u=t+f<<0,t=f+d<<0,l=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),g=(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7),S=t&n,p=S^t&a^A,b=u&o^~u&i,f=r+g+b+wo[c+3]+s[c+3],d=l+p,r=e+f<<0,e=f+d<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+a<<0,this.h4=this.h4+r<<0,this.h5=this.h5+u<<0,this.h6=this.h6+o<<0,this.h7=this.h7+i<<0};dt.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,s=le[e>>28&15]+le[e>>24&15]+le[e>>20&15]+le[e>>16&15]+le[e>>12&15]+le[e>>8&15]+le[e>>4&15]+le[e&15]+le[t>>28&15]+le[t>>24&15]+le[t>>20&15]+le[t>>16&15]+le[t>>12&15]+le[t>>8&15]+le[t>>4&15]+le[t&15]+le[n>>28&15]+le[n>>24&15]+le[n>>20&15]+le[n>>16&15]+le[n>>12&15]+le[n>>8&15]+le[n>>4&15]+le[n&15]+le[a>>28&15]+le[a>>24&15]+le[a>>20&15]+le[a>>16&15]+le[a>>12&15]+le[a>>8&15]+le[a>>4&15]+le[a&15]+le[r>>28&15]+le[r>>24&15]+le[r>>20&15]+le[r>>16&15]+le[r>>12&15]+le[r>>8&15]+le[r>>4&15]+le[r&15]+le[u>>28&15]+le[u>>24&15]+le[u>>20&15]+le[u>>16&15]+le[u>>12&15]+le[u>>8&15]+le[u>>4&15]+le[u&15]+le[o>>28&15]+le[o>>24&15]+le[o>>20&15]+le[o>>16&15]+le[o>>12&15]+le[o>>8&15]+le[o>>4&15]+le[o&15];return this.is224||(s+=le[i>>28&15]+le[i>>24&15]+le[i>>20&15]+le[i>>16&15]+le[i>>12&15]+le[i>>8&15]+le[i>>4&15]+le[i&15]),s};dt.prototype.toString=dt.prototype.hex;dt.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,s=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,a>>24&255,a>>16&255,a>>8&255,a&255,r>>24&255,r>>16&255,r>>8&255,r&255,u>>24&255,u>>16&255,u>>8&255,u&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||s.push(i>>24&255,i>>16&255,i>>8&255,i&255),s};dt.prototype.array=dt.prototype.digest;dt.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function Ao(e,t,n){var a,r=typeof e;if(r==="string"){var u=[],o=e.length,i=0,s;for(a=0;a>6,u[i++]=128|s&63):s<55296||s>=57344?(u[i++]=224|s>>12,u[i++]=128|s>>6&63,u[i++]=128|s&63):(s=65536+((s&1023)<<10|e.charCodeAt(++a)&1023),u[i++]=240|s>>18,u[i++]=128|s>>12&63,u[i++]=128|s>>6&63,u[i++]=128|s&63);e=u}else if(r==="object"){if(e===null)throw new Error(Va);if(qr&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!qr||!ArrayBuffer.isView(e)))throw new Error(Va)}else throw new Error(Va);e.length>64&&(e=new dt(t,!0).update(e).array());var c=[],l=[];for(a=0;a<64;++a){var g=e[a]||0;c[a]=92^g,l[a]=54^g}dt.call(this,t,n),this.update(l),this.oKeyPad=c,this.inner=!0,this.sharedMemory=n}Ao.prototype=new dt;Ao.prototype.finalize=function(){if(dt.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();dt.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),dt.prototype.finalize.call(this)}};var Ya=um();Ya.sha256=Ya;Ya.sha224=um(!0);Ya.sha256.hmac=om();Ya.sha224.hmac=om(!0);var im=Ya;var sm=im.sha256;function yn(e){return Promise.resolve(sm(e))}function ko(e){return Array.from(new Uint8Array(e)).map(a=>a.toString(16).padStart(2,"0")).join("")}function aa(e,t){let n=sm.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function lm(e,t){let n=await aa(e,t);return ko(n)}async function So(e,t){let n=p6(t),a=await aa(e,n);return ko(a)}function p6(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var cm=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Wr=class e extends be{static langMap=new Map(cm);static langMapReverse=new Map(cm.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),a=`${t.getUTCMonth()+1}`.padStart(2,"0"),r=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${a}-${r}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.secretId||!t.secretKey)throw new Error("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}async translate(t){let{text:n,from:a,to:r}=t,u=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceText:n,Target:e.langMap.get(r)||r}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:u,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||a,to:e.langMapReverse.get(o.Response.Target)||r}}async translateList(t){let{text:n,from:a,to:r}=t,u=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceTextList:n,Target:e.langMap.get(r)||r}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:u,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||a,to:e.langMapReverse.get(o.Response.Target)||r}}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:u,version:o}){let i=`${u}.tencentcloudapi.com`,s=new Date,c=`${new Date().valueOf()}`.slice(0,10),l=["POST","/","","content-type:application/json; charset=utf-8",`host:${i}`,"","content-type;host",await yn(r)].join(` +`)}n.push(...p)}for(let r=0;r{let i=e.lastIndexOf(o,t);return i>u?i:u},-1);if(r===-1){let u=e.slice(0,t);if(u&&!u.trim())return;n.push({text:u,prefix:"",suffix:""}),e.length>t&&Ms(e.slice(t),t,n)}else{let u=e.slice(0,r+1);if(u&&u.trim()==="")return;u.startsWith(" ")?n.push({text:u.slice(1),prefix:" ",suffix:""}):n.push({text:u,prefix:"",suffix:""}),r+10){l.forEach(d=>{c.length>0&&d.providers&&d.providers.length>0&&!d.providers.includes(s)||(d.optional?p.push(d):g.push(d))});let f=p.concat(g).filter(d=>d.required);if(f.length>0){for(let d of f)if(!r[d.name]){i=!1;break}}}return{...a,id:t,selected:n[e]===t,ok:i,currentProvider:s,config:r,providers:a.providers||[],props:a.props||[],allProps:l,optionalProps:p,explicitProps:g}}var Td=(e,t)=>{let{config:n}=e,a=n.alpha,r=n.beta,u=n.canary,o=n.debug,i=e.user,s=tn(i);return Object.keys(Bn).filter(l=>{let g=Bn[l];if(l.startsWith("mock"))return o?!0:l===e.config[t];if(l===e.config[t])return!0;if(l==="openai"&&Rt())return e.config.showOpenaiOnSafari||s?!0:!!(r||a||u||s);let p=!!g.canary,f=!!g.alpha,d=!!g.beta;return l===e[t]||p&&u||f&&(a||u)||d&&(r||a||u)?!0:!f&&!d&&!p}).map(l=>Fs(t,l,e))};function hn(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}var $a=[];async function no(e,t){return await new Promise((n,a)=>{let r=e,u=1,o=indexedDB.open(r,u);o.onsuccess=i=>{n(o.result)},o.onerror=i=>{a()},o.onupgradeneeded=i=>{let s=o.result,c=t||"cache";s.createObjectStore(c,{keyPath:"key"})}})}async function Cd(e){let t=`${J}-${e.service}@${e.from}->${e.to}`;return await J1(t,e)}async function wd(e){let t=Zn(e.originalText),n=`${J}-${e.service}@${e.from}->${e.to}`;return await Y1(n,t)}async function Y1(e,t){let n=await no(e);return await new Promise((a,r)=>{if(!n)return r();let u="cache",i=n.transaction([u],"readonly").objectStore(u).get(t);i.onsuccess=s=>{n.close();let c=i.result;a(c)},i.onerror=s=>{n.close(),r()}})}async function J1(e,t){let n=await no(e);return(await Z1()).includes(e)||await Q1(e),await new Promise(r=>{if(!n)return r(!1);let u="cache",i=n.transaction([u],"readwrite").objectStore(u).put(t);i.onsuccess=s=>{n.close(),r(!0)},i.onerror=s=>{n.close(),r(!1)}})}async function Q1(e){let t="cache_list",n=await no(J+"-cacheList",t),r=n.transaction([t],"readwrite").objectStore(t).put({key:e});r.onsuccess=u=>{n.close(),$a.push(e)},r.onerror=u=>{n.close()}}async function Z1(){if($a&&$a.length>0)return $a;let e=await no(J+"-cacheList","cache_list");return $a=await new Promise(t=>{let n="cache_list",r=e.transaction([n],"readonly").objectStore(n).getAllKeys();r.onsuccess=u=>{e.close(),t(r.result)},r.onerror=u=>{e.close(),t([])}}),$a}m();m();var Ps="Original";function qe(){return Ps}function Dt(e){Ps=e,vd(Ps)}m();var kd="auto",ao="auto",Ad="auto";function Sd(e){kd=e}function an(e){ao=e}function pt(){return ao!=="auto"?ao:Ad!=="auto"?Ad:kd}function ro(){return ao}var Ka=async function(e,t){let{method:n,data:a}=e,r=await _d(),u=Date.now();if(j.debug(`content script received message: ${n}`,a||" "),n==="translateTheWholePage")await Bs(a),je(fn,u);else if(n==="translateTheMainPage")await mo(a),je(fn,u);else if(n==="translateToThePageEndImmediately")await Pd(a),je(fn,u);else if(n==="toggleTranslatePage")await so(a),je(fn,u);else if(n==="toggleTranslateTheWholePage")await Fd(a),je(fn,u);else if(n==="toggleTranslateTheMainPage")await Ld(a),je(fn,u);else if(n==="toggleOnlyTransation")await go(a),je(fn,u);else if(n==="translatePage")await rn(r,a),je(fn,u);else if(n==="toggleTranslationMask")await co(a);else if(n==="restorePage")Ta();else if(n==="setCurrentPageLanguageByClient")an(a);else if(n==="retryFailedParagraphs")lo();else if(n==="switchTranslationMode"){if(r.rule.isPdf)return;a&&a.mode&&Md(a.mode)}},X1=function(e,t){let{method:n,data:a}=e;if(j.debug(`content script received sync message: ${n}`,a||" "),n==="ping")return"pong";if(n==="getPageStatus")return qe();if(n==="getCurrentPageLanguage"){let r=pt();return _s().catch(u=>{j.warn("detectCurrentPageLanguage failed",u)}),r}},uo,oo;function Dd(){let e=io();Je()||e6(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function io(){return uo||(uo=new Gn("content_script",!1).getConnection("main",Ka),uo)}function e6(){return oo||(oo=new Gn("content_script",!1).getConnection("main_sync",X1,{sync:!0}),oo)}async function Ke(e){return await io().sendMessage("background:main",e)}function oe(e){return Tu()?Vu({method:"request",data:e}):pe()||Eu()?(e.fetchPolyfill=globalThis.GM_fetch,xa(e)):Ke({method:"fetch",data:e})}function Lt(){return pe()?Jn():Ke({method:"getConfig"})}function un(e){return pe()?Ss(e):Ke({method:"setUserConfig",data:e})}function on(){return pe()?ks():Ke({method:"getUserConfig"})}function Bd(){return pe()?Yn():Ke({method:"getLocalConfig"})}function po(e){return pe()?kn(e):Ke({method:"setLocalConfig",data:e})}function Rd(e){return pe()?gd(e):Ke({method:"setBuildinConfig",data:e})}async function Qe(e){if(e.text){let n=Gu(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(pe()||Rt()){let n=ed(e.text,e.minLength,e.pageLangs);return Promise.resolve(n)}let t=await Ke({method:"detectLanguage",data:e});return Promise.resolve(t)}function Od(){return Ke({method:"detectTabLanguage"})}function vd(e){if(pe()){let n=new CustomEvent(Ru,{detail:e});document.dispatchEvent(n);return}io().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(n=>{})}function Id(e){return pe()?wd(e):Ke({method:"queryParagraphCache",data:e})}async function Nd(e){if(pe()){await Cd(e);return}return Ke({method:"setParagraphCache",data:e})}async function jd(){if(pe())return Promise.resolve();await Ke({method:"mockRequest"})}function Ga(e=!1,t=""){return pe()?(ue.runtime.openOptionsPage(e,t),Promise.resolve()):Ke({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function Ud(e=""){return pe()||Rt()?Ve().OPTIONS_URL:ue.runtime.getURL("options.html")}function zd(e=""){return ue&&ue.runtime&&ue.runtime.getURL?ue.runtime.getURL("options.html"):""}function fo(e=!1){return pe()?(ue.extra.openAboutPage(e),Promise.resolve()):Ke({method:"openAboutPage"})}function Hd(e=!1){return pe()?(ue.extra.openSearchEnhancement(e),Promise.resolve()):Ke({method:"openSearchEnhancement"})}function ho(e){return pe()?(ue.extra.openInTab(e),Promise.resolve()):Ke({method:"openInTab",data:e})}function bo(e=!1){return pe()?(ue.extra.openEbookViewerPage(e),Promise.resolve()):Ke({method:"openEbookViewerPage"})}function qd(e=!1){return pe()?Promise.resolve():Ke({method:"openHtmlViewerPage"})}function yo(e=!1){return pe()?(ue.extra.openEbookBuilderPage(e),Promise.resolve()):Ke({method:"openEbookBuilderPage"})}function xo(e){Rt()}function Rs(e=!1){return pe()?(ue.extra.openPdfViewerPage(e),Promise.resolve()):Ke({method:"openPdfViewerPage"})}function Wd(e=!1){return pe()?(ue.extra.openSubtitleBuilderPage(e),Promise.resolve()):Ke({method:"openSubtitleBuilderPage"})}function Os(e){return pe()?Promise.resolve():Ke({method:"setBadge",data:{text:e}})}function $d(){return pe()?(j.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):Ke({method:"autoSyncLatestConfig"})}var Kd="G-MKMD9LWFTR";async function We(e,t,n){try{let a=Ve();if(a.INSTALL_FROM==="firefox_store")return;let u=pe(),o=Je(),i=a.PROD==="1",s=`report_${e}`,c=e.endsWith("_daily");if(c){if(o)return;let k=await On(s,0),v=Eo(new Date(k)),E=Date.now(),B=Eo(new Date(E));if(v===B)return;await rd(s,E)}else if(!n.config.telemetry)return;let l="sitc4WmvShWYwfU0dANM3Q",g=await St("fakeUserId","");g||(g=await On("fakeUserId",""),g&&await je("fakeUserId",g));let p=nn(),f=new Date,d=await St("installedAt","");d||(d=await On("installedAt",""),d&&await je("installedAt",d)),g?d||(d=new Date(0).toISOString(),await je("installedAt",d)):(g=t6(32),await je("fakeUserId",g)),d||(d=f.toISOString(),await je("installedAt",d));let b=new Date(d),C=Eo(b),h=Eo(f),A=C===h,S=f.getTime()-b.getTime()<7*24*60*60*1e3,U=`https://www.google-analytics.com/mp/collect?measurement_id=${Kd}&api_secret=${l}`;i||(U=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${Kd}&api_secret=${l}`);let R=ja.parse(window.navigator.userAgent),y=t.map(k=>{let v=k.params||{};if(R.os&&(v.os_name=R.os.name||"unknown",v.os_version=R.os.version||"unknown",v.os_version_name=R.os.versionName||"unknown"),R.browser&&(v.browser_name=R.browser.name||"unknown",v.browser_version=R.browser.version||"unknown"),R.platform&&(v.platform_type=R.platform.type||"unknown"),R.engine&&(v.engine_name=R.engine.name||"unknown",v.engine_version=R.engine.version||"unknown"),n.translationService&&(v.translation_service||(v.translation_service=n.translationService),n.config.translationServices&&n.config.translationServices[n.translationService]&&(n.config.translationServices[n.translationService].provider&&(v.translation_service_provider=n.config.translationServices[n.translationService].provider),n.translationService==="openai"&&n.config.translationServices[n.translationService].provider==="custom"&&(n.config.translationServices[n.translationService].apiUrl?n.config.translationServices[n.translationService].apiUrl.startsWith("https://api.openai.com/")?v.openai_is_official="1":v.openai_is_official="0":v.openai_is_official="1"))),n.targetLanguage&&(v.target_language=n.targetLanguage),n.config.interfaceLanguage&&(v.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?v.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":v.enable_default_always_translated_urls="0",p&&(v.version=p),n.config.enableInputTranslation?v.enable_input_translation=n.config.enableInputTranslation?"1":"0":v.enable_input_translation="0",n.config.translationTheme&&(v.translation_theme=n.config.translationTheme),n.config.alpha&&(v.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?v.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):v.always_translate_languages="none",a.INSTALL_FROM&&(v.install_from=a.INSTALL_FROM),n.config.beta&&(v.beta=n.config.alpha.toString()),n.config.translationArea&&(v.translation_area=n.config.translationArea),n.rule&&n.rule.enableSearchEnhancement!==void 0&&(v.enable_search_enhancement=n.rule.enableSearchEnhancement?"1":"0"),C&&(v.install_day=n6(b)),n.user){let B=td(n.user);B&&Object.keys(B).forEach(P=>{v[P]=B[P]})}else v.user_type="anonymous";n.config.translationMode&&(v.translation_mode=n.config.translationMode),v.userscript=u.toString(),A?v.is_new_user_today="1":v.is_new_user_today="0",S?v.is_new_user_this_week="1":v.is_new_user_this_week="0",n.config.tempTranslateDomainMinutes?v.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():v.temp_translate_domain_minutes="0";let E="html";if(n.rule.isEbook?E="ebookReader":n.rule.isPdf?E="pdfReader":n.rule.isEbookBuilder?E="ebookBuilder":n.rule.isSubtitleBuilder&&(E="subtitleBuilder"),v.page_type=E,o?v.main_frame=0:v.main_frame=1,!c){let B=n.url;try{let P=new URL(B);v.site_host=P.hostname}catch{v.site_host="unknown"}n.sourceLanguage&&(v.source_language=n.sourceLanguage)}return{...k,params:v}}),T=await oe({responseType:"text",url:U,method:"POST",body:JSON.stringify({client_id:g,user_id:g,events:y})})}catch{}}function t6(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;rt.removeEventListener("message",n)),e.length=0}function o6(e,t,n,a){return new Promise(r=>{let u=o=>{let i=o.data;r6(t,n,i)&&i.id===a&&(e.removeEventListener("message",u),r(i.response))};e.addEventListener("message",u)})}function i6(e,t,n,a){let r=u=>{let o=u.data;Qd(t,"tell",n,o)&&a(o.body)};return e.addEventListener("message",r),[e,r]}function Gd(e,t,n,a,r,u){let o=async i=>{let s=i.data;if(Qd(n,"ask",a,s)){let c=await u(s.body);t=i.source,t.postMessage(a6(n,a,s.id,c),i.origin)}};return e.addEventListener("message",o),[e,o]}function s6(e,t,n,a,r){let u=Math.random().toString();return e.postMessage(Jd(t,"tell",n,u,a),r)}async function Vd(e,t,n,a,r,u,o){let i=Math.random().toString(),s=new Promise(async(c,l)=>{let g=setTimeout(()=>l(new Error(`Failed to get response within ${o}ms`)),o),p=await o6(e,n,a,i);clearTimeout(g),c(p)});return t.postMessage(Jd(n,"ask",a,i,r),u),s}var ta=class e{constructor(t,n,a=window,r="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=a;this.targetOrigin=r;Gd(a,n,this.getSystemProtocol("ping"),"ping",r,()=>Promise.resolve({}))}static async connect(t,n=10,a=500){for(let r=0;r<=n;r++)try{return await t.ping({timeout:a}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*a}ms`)}static parent(t,n,a="*",r=window){let u=n.contentWindow;if(ea(u))return new e(t,u,r,a);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:a=window,targetWindow:r=window.parent}={}){return new e(t,r,a,n)}static rootIframe(t,n="*",{thisWindow:a=window}={}){return new e(t,null,a,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await Vd(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(i6(this.thisWindow,this.protocol,t,n))}tell(t,n){s6(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(Gd(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,a=1e4){if(this.targetWindow)return Vd(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,a);throw new Error("target window is requried")}destroy(){u6(this.listeners)}};var Zd;async function Xd(){if(Je()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=ta.iframe(Uu,"*",{targetWindow:t});Zd=n,await ta.connect(n).catch(a=>{j.error("connect with parent frame error",a)})}}function To(){return Zd}m();function em(e,t){let n=t.matches||[],a=t.excludeMatches||[];if(a&&!Array.isArray(a)&&(a=[a]),n&&!Array.isArray(n)&&(n=[n]),a.length>0){if(a.includes(e)||a.includes(""))return!1;for(let r of a)if(r.includes("*")&&new RegExp(r).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let r of n)if(r.includes("*")&&new RegExp(r).test(e))return!0}return!1}m();m();m();m();m();var ft=class{options;strictTicks=[];constructor(t){this.options=t,this.setOptions(t)}setOptions(t){t&&(t.interval!==void 0&&(this.options.interval=Number(t.interval)),t.limit!==void 0&&(this.options.limit=Number(t.limit)))}wait(){return new Promise((t,n)=>{setTimeout(t,this.getDelay())})}getDelay(){let t=this.strictTicks,n=this.options.limit,a=this.options.interval,r=Date.now();if(t.length=u?(t.push(r),0):(t.push(u),u-r)}};var l6=new ft({limit:7,interval:1250}),c6={tencent:new ft({limit:3,interval:1350}),baidu:new ft({limit:1,interval:1550}),strict:new ft({limit:1,interval:1050}),d:new ft({limit:1,interval:1050}),youdao:new ft({limit:5,interval:1050}),you:new ft({limit:5,interval:1050}),cai:new ft({limit:5,interval:1050}),google:new ft({limit:10,interval:1050}),deepl:new ft({limit:10,interval:1050}),transmart:new ft({limit:30,interval:1050}),papago:new ft({limit:3,interval:1150}),openai:new ft({limit:10,interval:1300}),chatgpt:new ft({limit:1,interval:1350})};function Hr(e){return c6[e]||l6}async function tm(e){if(Je()){let n=To();if(n)try{return(await n.ask("getRateLimitDelay",{key:e})).value}catch(a){return j.error("can not comunicate with root frame, use strict limiter",a),Hr("strict").getDelay()}else return Hr("strict").getDelay()}else return Hr(e).getDelay()}async function nm(e,t){if(!Je()){let a=Hr(e);t&&a.setOptions(t)}}async function am(e){let t=e.key;return{value:Hr(t).getDelay()}}var be=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=200;translationOptions;constructor(t,n,a){this.serviceConfig=t,this.generalConfig=n,this.translationOptions=a}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getDefaultRateLimit(){return null}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,a){if(t.sentences.length===0)return{sentences:[]};let{sentences:r}=t,u=[],o=null,i=new Set;for(let b of r)b.from&&b.from!=="auto"&&i.add(b.from);let s=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(s=this.serviceConfig.maxTextLengthPerRequest);let c=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(c=this.serviceConfig.maxTextGroupLengthPerRequest);try{u=Ed(r,s,c)}catch(b){if(a)for(let C=0;Cb));let l=[],g=[],p=(b,C,h)=>{let A=C.translatedTexts[0];g[b]||(g[b]=C,g[b].translatedTexts=Array(C.sentenceTotalParts).fill(null)),g[b].translatedTexts[C.partIndex]=A;let S=g[b],U=0;for(let R=0;R{let S=await tm(this.translationOptions.translationService);await Cr(S||0);let U=C.from;if(C.fromByClient&&C.fromByClient!=="auto"&&(U=C.fromByClient),this.isSupportList)return{...await this.translateList({text:C.tempSentences.map(y=>y.text),from:U,to:C.to,url:h,options:n}),sourceTempSentences:C.tempSentences};{let R=p4;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(R=this.serviceConfig.translationTextSeparator);let y=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(y=this.serviceConfig.newlinePlaceholderDelimiters);let T="";y&&y.length>=2?T=C.tempSentences.map((P,w)=>w===C.tempSentences.length-1?P.text:P.text+y[0]+(w+1)+y[1]).join(""):T=C.tempSentences.map(P=>P.text).join(R);let k=await this.translate({text:T,from:U,to:C.to,url:h,options:n}),{text:v}=k,E=[];if(y&&y.length>=2){let P=`${y[0]}\\d+${y[1]}`;y&&y.length>=3&&(P=y[2]);let w=new RegExp(P,"g");E=v.split(w)}else E=v.split(R);let B=[];if(E.length>C.tempSentences.length){for(let P=0;P{let{text:U,sourceTempSentences:R}=S;for(let y=0;y{if(a){for(let U=0;U({...b.sentence,text:b.translatedTexts.join("")}))}}detectLanguageLocally(t){return Qe({text:t,minLength:18,pageLangs:[pt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}};m();m();var Va="input is invalid type",Is=typeof window=="object",na=Is?window:{};na.JS_SHA256_NO_WINDOW&&(Is=!1);var d6=!Is&&typeof self=="object",m6=!na.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;m6?na=global:d6&&(na=self);var Lw=!na.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,Mw=typeof define=="function"&&define.amd,qr=!na.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",le="0123456789abcdef".split(""),g6=[-2147483648,8388608,32768,128],bn=[24,16,8,0],Co=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],wo=["hex","array","digest","arrayBuffer"],ct=[];(na.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});qr&&(na.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var rm=function(e,t){return function(n){return new dt(t,!0).update(n)[e]()}},om=function(e){var t=rm("hex",e);t.create=function(){return new dt(e)},t.update=function(r){return t.create().update(r)};for(var n=0;n>2]|=e[r]<>2]|=a<>2]|=(192|a>>6)<>2]|=(128|a&63)<=57344?(i[u>>2]|=(224|a>>12)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<>2]|=(240|a>>18)<>2]|=(128|a>>12&63)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<=64?(this.block=i[16],this.start=u-64,this.hash(),this.hashed=!0):this.start=u}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};dt.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=g6[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};dt.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,s=this.blocks,c,l,g,p,f,d,b,C,h,A,S;for(c=16;c<64;++c)f=s[c-15],l=(f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3,f=s[c-2],g=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10,s[c]=s[c-16]+l+s[c-7]+g<<0;for(S=t&n,c=0;c<64;c+=4)this.first?(this.is224?(C=300032,f=s[0]-1413257819,i=f-150054599<<0,a=f+24177077<<0):(C=704751109,f=s[0]-210244248,i=f-1521486534<<0,a=f+143694565<<0),this.first=!1):(l=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),g=(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7),C=e&t,p=C^e&n^S,b=r&u^~r&o,f=i+g+b+Co[c]+s[c],d=l+p,i=a+f<<0,a=f+d<<0),l=(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10),g=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),h=a&e,p=h^a&t^C,b=i&r^~i&u,f=o+g+b+Co[c+1]+s[c+1],d=l+p,o=n+f<<0,n=f+d<<0,l=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),g=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),A=n&a,p=A^n&e^h,b=o&i^~o&r,f=u+g+b+Co[c+2]+s[c+2],d=l+p,u=t+f<<0,t=f+d<<0,l=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),g=(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7),S=t&n,p=S^t&a^A,b=u&o^~u&i,f=r+g+b+Co[c+3]+s[c+3],d=l+p,r=e+f<<0,e=f+d<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+a<<0,this.h4=this.h4+r<<0,this.h5=this.h5+u<<0,this.h6=this.h6+o<<0,this.h7=this.h7+i<<0};dt.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,s=le[e>>28&15]+le[e>>24&15]+le[e>>20&15]+le[e>>16&15]+le[e>>12&15]+le[e>>8&15]+le[e>>4&15]+le[e&15]+le[t>>28&15]+le[t>>24&15]+le[t>>20&15]+le[t>>16&15]+le[t>>12&15]+le[t>>8&15]+le[t>>4&15]+le[t&15]+le[n>>28&15]+le[n>>24&15]+le[n>>20&15]+le[n>>16&15]+le[n>>12&15]+le[n>>8&15]+le[n>>4&15]+le[n&15]+le[a>>28&15]+le[a>>24&15]+le[a>>20&15]+le[a>>16&15]+le[a>>12&15]+le[a>>8&15]+le[a>>4&15]+le[a&15]+le[r>>28&15]+le[r>>24&15]+le[r>>20&15]+le[r>>16&15]+le[r>>12&15]+le[r>>8&15]+le[r>>4&15]+le[r&15]+le[u>>28&15]+le[u>>24&15]+le[u>>20&15]+le[u>>16&15]+le[u>>12&15]+le[u>>8&15]+le[u>>4&15]+le[u&15]+le[o>>28&15]+le[o>>24&15]+le[o>>20&15]+le[o>>16&15]+le[o>>12&15]+le[o>>8&15]+le[o>>4&15]+le[o&15];return this.is224||(s+=le[i>>28&15]+le[i>>24&15]+le[i>>20&15]+le[i>>16&15]+le[i>>12&15]+le[i>>8&15]+le[i>>4&15]+le[i&15]),s};dt.prototype.toString=dt.prototype.hex;dt.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,s=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,a>>24&255,a>>16&255,a>>8&255,a&255,r>>24&255,r>>16&255,r>>8&255,r&255,u>>24&255,u>>16&255,u>>8&255,u&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||s.push(i>>24&255,i>>16&255,i>>8&255,i&255),s};dt.prototype.array=dt.prototype.digest;dt.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function vo(e,t,n){var a,r=typeof e;if(r==="string"){var u=[],o=e.length,i=0,s;for(a=0;a>6,u[i++]=128|s&63):s<55296||s>=57344?(u[i++]=224|s>>12,u[i++]=128|s>>6&63,u[i++]=128|s&63):(s=65536+((s&1023)<<10|e.charCodeAt(++a)&1023),u[i++]=240|s>>18,u[i++]=128|s>>12&63,u[i++]=128|s>>6&63,u[i++]=128|s&63);e=u}else if(r==="object"){if(e===null)throw new Error(Va);if(qr&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!qr||!ArrayBuffer.isView(e)))throw new Error(Va)}else throw new Error(Va);e.length>64&&(e=new dt(t,!0).update(e).array());var c=[],l=[];for(a=0;a<64;++a){var g=e[a]||0;c[a]=92^g,l[a]=54^g}dt.call(this,t,n),this.update(l),this.oKeyPad=c,this.inner=!0,this.sharedMemory=n}vo.prototype=new dt;vo.prototype.finalize=function(){if(dt.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();dt.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),dt.prototype.finalize.call(this)}};var Ya=om();Ya.sha256=Ya;Ya.sha224=om(!0);Ya.sha256.hmac=im();Ya.sha224.hmac=im(!0);var sm=Ya;var lm=sm.sha256;function yn(e){return Promise.resolve(lm(e))}function Ao(e){return Array.from(new Uint8Array(e)).map(a=>a.toString(16).padStart(2,"0")).join("")}function aa(e,t){let n=lm.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function cm(e,t){let n=await aa(e,t);return Ao(n)}async function ko(e,t){let n=p6(t),a=await aa(e,n);return Ao(a)}function p6(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var dm=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Wr=class e extends be{static langMap=new Map(dm);static langMapReverse=new Map(dm.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),a=`${t.getUTCMonth()+1}`.padStart(2,"0"),r=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${a}-${r}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.secretId||!t.secretKey)throw new Error("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}async translate(t){let{text:n,from:a,to:r}=t,u=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceText:n,Target:e.langMap.get(r)||r}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:u,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||a,to:e.langMapReverse.get(o.Response.Target)||r}}async translateList(t){let{text:n,from:a,to:r}=t,u=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceTextList:n,Target:e.langMap.get(r)||r}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:u,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||a,to:e.langMapReverse.get(o.Response.Target)||r}}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:u,version:o}){let i=`${u}.tencentcloudapi.com`,s=new Date,c=`${new Date().valueOf()}`.slice(0,10),l=["POST","/","","content-type:application/json; charset=utf-8",`host:${i}`,"","content-type;host",await yn(r)].join(` `),g=e.getUTCDate(s),p=["TC3-HMAC-SHA256",c,`${g}/${u}/tc3_request`,await yn(l)].join(` -`),f=await lm(g,`TC3${n}`),d=await So(u,f),b=await So("tc3_request",d),C=await So(p,b),h=await oe({retry:1,url:`https://${u}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:i,"X-TC-Action":a,"X-TC-Timestamp":c,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${g}/${u}/tc3_request, SignedHeaders=content-type;host, Signature=${C}`},body:r});if(h instanceof Error)throw h;if(h.Response&&h.Response.Error&&h.Response.Error.Message)throw new Error(h.Response.Error.Message);return h}};m();var dm=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],f6={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},$r=class e extends be{static langMap=new Map(dm);static langMapReverse=new Map(dm.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,a){super(t,n,a)}async translate(t){let{text:n,from:a,to:r}=t,u=new URLSearchParams({source:a,target:r,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await oe({url:`https://wxapp.translator.qq.com/api/translate?${u}`,retry:1,method:"GET",headers:f6});return{text:o.targetText,from:e.langMapReverse.get(o.source)||a,to:e.langMapReverse.get(o.target)||r}}};m();var mm=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],Ta=class e extends be{static langMap=new Map(mm);static langMapReverse=new Map(mm.map(([t,n])=>[n,t]));isSupportList=!1;apiUrl="https://translate.googleapis.com/translate_a/single";constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.apiUrl=jt(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let u=e.langMap.get(a)||"auto",o=e.langMap.get(r)||r,i=await this.fetchWithoutToken(n,u,o);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async translateXml(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let u=e.langMap.get(a)||"auto",o=e.langMap.get(r)||r,i=await this.fetchXmlWithoutToken(n,u,o);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async fetchXmlWithoutToken(t,n,a){let u="https://translate.googleapis.com/translate_a/t?"+new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}).toString();return{data:await oe({retry:2,url:u})}}async fetchWithoutToken(t,n,a){let r=new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}),u=this.apiUrl+"?"+r.toString();return{data:await oe({retry:2,url:u})}}};m();m();m();function h6(e,t){return t?e+(t-e%t):e}function b6(e,t){return e.split(t).length-1}function Ns(e){let t=Date.now(),n=1;for(let a of e)n+=b6(a,"i");return h6(t,n)}function y6(e,t){return Math.floor(Math.random()*(t-e+1))+e}function js(){return y6(1e6,1e8)}m();m();m();var Us="https://www2.deepl.com/jsonrpc",zs="auto",gm=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];m();function x6(e=gm){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function Hs(e){return x6()[e.toLowerCase()]}var E6={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function T6(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function C6(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function w6(e,t,n,a,r,u,o){let i=js(),s=C6(a,n),c=[];t.forEach(p=>{c.push({text:p,requestAlternatives:3})}),s.id=i,s.params.texts=c,s.params.timestamp=Ns(t);let l=await oe({retry:2,method:"POST",url:e,body:T6(s),headers:E6}),g={from:l.result.lang,to:n,text:[]};return l.result.texts.forEach(p=>{g.text.push(p.text)}),g}async function pm(e,t,n,a=zs,r,u,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:a,to:n}:w6(e,t,Hs(n),Hs(a)??"auto",r,u,o):{text:[],from:a,to:n}}var fm=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Ja=class e extends be{static langMap=new Map(fm);static langMapReverse=new Map(fm.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=Us;constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.API_URL=jt(Us,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:a,from:r}=t,u=await pm(this.API_URL,n,e.langMap.get(a)||a,e.langMap.get(r)||"auto");return{text:u.text,from:e.langMapReverse.get(u.from),to:e.langMapReverse.get(u.to)}}};m();var hm=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],qs="https://transmart.qq.com/api/imt",Ca=class e extends be{static langMap=new Map(hm);static langMapReverse=new Map(hm.map(([t,n])=>[n,t]));clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,a){super(t,n,a),this.clientKey=e.getClientKey()}static getClientKey(){return btoa("transmart_crx_"+navigator.userAgent).slice(0,100)}async translate(t){let{text:n,to:a}=t,r=await this.detectLanguage(n),u=e.langMap.get(r)||r,o=e.langMap.get(a)||a;if(r===a)return{text:n,from:r,to:a};let i=Ve(),s=t.url;i.INSTALL_FROM==="firefox_store"&&(s=bm());let l=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:u,orig_url:s},target:{lang:o}}),g=await oe({url:qs,body:l,method:"POST",retry:2});if(g.header.ret_code!=="succ")throw new Error(g.message||g.header.ret_code);return{text:g.auto_translation,from:r||"auto",to:a}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:a,to:r}=t,u=Ve(),o=t.url;if(u.INSTALL_FROM==="firefox_store"&&(o=bm()),a.length===1){let f=await this.translate({from:n,text:a[0],to:r,url:o,options:t.options});return{text:[f.text],from:f.from,to:f.to}}let s=await this.detectLanguage(a.join(` -`));if(s===r)return{text:a,from:s,to:r};let c=e.langMap.get(s)||s,l=e.langMap.get(r)||r,g=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:a,lang:c,orig_url:o},target:{lang:l},type:"plain"}),p=await oe({url:qs,body:g,method:"POST"});if(p.header.ret_code!=="succ")throw new Error(p.message||p.header.ret_code);return{text:p.auto_translation,from:s||"auto",to:r}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return e.detectLanguageRemotelyByTransmart(t)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},a=await oe({url:qs,method:"POST",body:JSON.stringify(n)});if(a.header.ret_code!=="succ")throw new Error(a.message||a.header.ret_code);let r=a.language,u=e.langMapReverse.get(r);return u||r}};function bm(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}m();m();function ym(){return Math.random()>=0}var Qa=class extends be{isSupportList=!0;maxTextLength=1200;maxTextGroupLength=25;async translate(t){let{text:n}=t,a=n.match(/^\s*/)[0].length;return{text:n.slice(0,a)+"\u6A21\u62DF\uFF1A"+n.slice(a,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:a,to:r}=t;if(await Nd(),!ym())throw new Error("\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:a,to:r,text:[""]}:{from:a,to:r,text:n.map(u=>{let o=u.match(/^\s*/)[0].length;return u.slice(0,o)+"\u6A21\u62DF\uFF1A"+u.slice(o,-6)})}}};m();var Em=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],Ws=new Map(Em),xm=new Map(Em.map(([e,t])=>[t,e])),$s=class e extends be{static langMap=Ws;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,a){if(super(t,n,a),!t||!t.apikey)throw new Error("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:a,to:r}=t,u=await oe({retry:2,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:Ws.get(a)||"auto",target_lang:Ws.get(r)||r})});if(u.status){let o=u;return o.result&&r=="zh-TW",{text:o.result,from:xm.get(o.source_lang),to:xm.get(o.target_lang)}}else throw new Error(u.msg)}},Do=$s;m();var Tm=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Kr=new Map(Tm),v6=new Map(Tm.map(([e,t])=>[t,e])),Ks=class extends be{static langMap=Kr;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl="https://deepl.immersivetranslate.com/v2/translate";immersiveTranslateDeeplTokenUrl="https://api.immersivetranslate.com";immersiveTranslateDeeplProApiUrl=Fn()||Pn()?"https://api2.immersivetranslate.com/deepl/translate":"https://test-api2.immersivetranslate.com/deepl/translate";provider="custom";splitor="";apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,a){if(super(t,n,a),t=t||{},this.splitor=t.qualityDelimiterBeta||"",t.provider==="pro")if(this.provider="pro",a.userToken){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=a.userToken,this.apiKeys=this.authKey.split(",").map(r=>r.trim())}else throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey.split(",").map(r=>r.trim()),!this.authKey)throw new Error("authKey are required");if(!this.authKey)throw new Error("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=jt(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=jt(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=jt(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=jt(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=jt(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getDefaultRateLimit(){if(this.provider==="pro"){if(this.serviceConfig&&this.serviceConfig.immersiveTranslateProLimit){let t=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(t)&&(t=15),{limit:t,interval:1050}}return{limit:15,interval:1050}}else return{limit:3,interval:1050}}async translateList(t){let{from:n,to:a,text:r}=t,u={source_lang:Kr.get(n)||"",target_lang:Kr.get(a)||a},o=this.getRandomKey(),i=new URLSearchParams(u);this.splitor?i.append("text",r.join(this.splitor)):r.forEach(d=>{i.append("text",d)});let s=i.toString(),c={text:this.splitor?[r.join(this.splitor)]:r,source_lang:Kr.get(n)||"auto",target_lang:Kr.get(a)||a},l=this.freeApiUrl;o.endsWith(":im")?l=this.immersiveTranslateApiUrl:o.endsWith(":fx")||(l=this.proApiUrl);let g;this.provider==="pro"?g=await oe({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:o,"Content-Type":"application/json"}}):o.startsWith("immersive_")?g=await oe({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:o,"Content-Type":"application/json"}}):g=await oe({retry:2,url:l,method:"POST",body:s,headers:{Authorization:"DeepL-Auth-Key "+o,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}});let{translations:p}=g,f=[];if(this.splitor?f=p[0]?.text.split(this.splitor).map(d=>d):f=p.map(d=>d.text),a==="zh-TW"){let d=this.serviceConfig||{};d&&d.googleApiUrl&&(d.apiUrl=d.googleApiUrl);let C=await new Ta(this.serviceConfig,this.generalConfig,this.translationOptions).translate({from:"zh-CN",to:"zh-TW",text:p.map(h=>h.text).join(` +`),f=await cm(g,`TC3${n}`),d=await ko(u,f),b=await ko("tc3_request",d),C=await ko(p,b),h=await oe({retry:1,url:`https://${u}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:i,"X-TC-Action":a,"X-TC-Timestamp":c,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${g}/${u}/tc3_request, SignedHeaders=content-type;host, Signature=${C}`},body:r});if(h instanceof Error)throw h;if(h.Response&&h.Response.Error&&h.Response.Error.Message)throw new Error(h.Response.Error.Message);return h}};m();var mm=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],f6={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},$r=class e extends be{static langMap=new Map(mm);static langMapReverse=new Map(mm.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,a){super(t,n,a)}async translate(t){let{text:n,from:a,to:r}=t,u=new URLSearchParams({source:a,target:r,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await oe({url:`https://wxapp.translator.qq.com/api/translate?${u}`,retry:1,method:"GET",headers:f6});return{text:o.targetText,from:e.langMapReverse.get(o.source)||a,to:e.langMapReverse.get(o.target)||r}}};m();var gm=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],Ca=class e extends be{static langMap=new Map(gm);static langMapReverse=new Map(gm.map(([t,n])=>[n,t]));isSupportList=!1;apiUrl="https://translate.googleapis.com/translate_a/single";constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.apiUrl=Ut(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let u=e.langMap.get(a)||"auto",o=e.langMap.get(r)||r,i=await this.fetchWithoutToken(n,u,o);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async translateXml(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let u=e.langMap.get(a)||"auto",o=e.langMap.get(r)||r,i=await this.fetchXmlWithoutToken(n,u,o);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async fetchXmlWithoutToken(t,n,a){let u="https://translate.googleapis.com/translate_a/t?"+new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}).toString();return{data:await oe({retry:2,url:u})}}async fetchWithoutToken(t,n,a){let r=new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}),u=this.apiUrl+"?"+r.toString();return{data:await oe({retry:2,url:u})}}};m();m();m();function h6(e,t){return t?e+(t-e%t):e}function b6(e,t){return e.split(t).length-1}function Ns(e){let t=Date.now(),n=1;for(let a of e)n+=b6(a,"i");return h6(t,n)}function y6(e,t){return Math.floor(Math.random()*(t-e+1))+e}function js(){return y6(1e6,1e8)}m();m();m();var Us="https://www2.deepl.com/jsonrpc",zs="auto",pm=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];m();function x6(e=pm){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function Hs(e){return x6()[e.toLowerCase()]}var E6={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function T6(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function C6(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function w6(e,t,n,a,r,u,o){let i=js(),s=C6(a,n),c=[];t.forEach(p=>{c.push({text:p,requestAlternatives:3})}),s.id=i,s.params.texts=c,s.params.timestamp=Ns(t);let l=await oe({retry:2,method:"POST",url:e,body:T6(s),headers:E6}),g={from:l.result.lang,to:n,text:[]};return l.result.texts.forEach(p=>{g.text.push(p.text)}),g}async function fm(e,t,n,a=zs,r,u,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:a,to:n}:w6(e,t,Hs(n),Hs(a)??"auto",r,u,o):{text:[],from:a,to:n}}var hm=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Ja=class e extends be{static langMap=new Map(hm);static langMapReverse=new Map(hm.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=Us;constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.API_URL=Ut(Us,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:a,from:r}=t,u=await fm(this.API_URL,n,e.langMap.get(a)||a,e.langMap.get(r)||"auto");return{text:u.text,from:e.langMapReverse.get(u.from),to:e.langMapReverse.get(u.to)}}};m();var bm=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],qs="https://transmart.qq.com/api/imt",wa=class e extends be{static langMap=new Map(bm);static langMapReverse=new Map(bm.map(([t,n])=>[n,t]));clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,a){super(t,n,a),this.clientKey=e.getClientKey()}static getClientKey(){return btoa("transmart_crx_"+navigator.userAgent).slice(0,100)}async translate(t){let{text:n,to:a}=t,r=await this.detectLanguage(n),u=e.langMap.get(r)||r,o=e.langMap.get(a)||a;if(r===a)return{text:n,from:r,to:a};let i=Ve(),s=t.url;i.INSTALL_FROM==="firefox_store"&&(s=ym());let l=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:u,orig_url:s},target:{lang:o}}),g=await oe({url:qs,body:l,method:"POST",retry:2});if(g.header.ret_code!=="succ")throw new Error(g.message||g.header.ret_code);return{text:g.auto_translation,from:r||"auto",to:a}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:a,to:r}=t,u=Ve(),o=t.url;if(u.INSTALL_FROM==="firefox_store"&&(o=ym()),a.length===1){let f=await this.translate({from:n,text:a[0],to:r,url:o,options:t.options});return{text:[f.text],from:f.from,to:f.to}}let s=await this.detectLanguage(a.join(` +`));if(s===r)return{text:a,from:s,to:r};let c=e.langMap.get(s)||s,l=e.langMap.get(r)||r,g=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:a,lang:c,orig_url:o},target:{lang:l},type:"plain"}),p=await oe({url:qs,body:g,method:"POST"});if(p.header.ret_code!=="succ")throw new Error(p.message||p.header.ret_code);return{text:p.auto_translation,from:s||"auto",to:r}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return e.detectLanguageRemotelyByTransmart(t)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},a=await oe({url:qs,method:"POST",body:JSON.stringify(n)});if(a.header.ret_code!=="succ")throw new Error(a.message||a.header.ret_code);let r=a.language,u=e.langMapReverse.get(r);return u||r}};function ym(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}m();m();function xm(){return Math.random()>=0}var Qa=class extends be{isSupportList=!0;maxTextLength=1200;maxTextGroupLength=25;async translate(t){let{text:n}=t,a=n.match(/^\s*/)[0].length;return{text:n.slice(0,a)+"\u6A21\u62DF\uFF1A"+n.slice(a,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:a,to:r}=t;if(await jd(),!xm())throw new Error("\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:a,to:r,text:[""]}:{from:a,to:r,text:n.map(u=>{let o=u.match(/^\s*/)[0].length;return u.slice(0,o)+"\u6A21\u62DF\uFF1A"+u.slice(o,-6)})}}};m();var Tm=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],Ws=new Map(Tm),Em=new Map(Tm.map(([e,t])=>[t,e])),$s=class e extends be{static langMap=Ws;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,a){if(super(t,n,a),!t||!t.apikey)throw new Error("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:a,to:r}=t,u=await oe({retry:2,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:Ws.get(a)||"auto",target_lang:Ws.get(r)||r})});if(u.status){let o=u;return o.result&&r=="zh-TW",{text:o.result,from:Em.get(o.source_lang),to:Em.get(o.target_lang)}}else throw new Error(u.msg)}},So=$s;m();var Cm=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Kr=new Map(Cm),v6=new Map(Cm.map(([e,t])=>[t,e])),Ks=class extends be{static langMap=Kr;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl="https://deepl.immersivetranslate.com/v2/translate";immersiveTranslateDeeplTokenUrl="https://api.immersivetranslate.com";immersiveTranslateDeeplProApiUrl=Fn()||Pn()?"https://api2.immersivetranslate.com/deepl/translate":"https://test-api2.immersivetranslate.com/deepl/translate";provider="custom";splitor="";apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,a){if(super(t,n,a),t=t||{},this.splitor=t.qualityDelimiterBeta||"",t.provider==="pro")if(this.provider="pro",a.userToken){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=a.userToken,this.apiKeys=this.authKey.split(",").map(r=>r.trim())}else throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey.split(",").map(r=>r.trim()),!this.authKey)throw new Error("authKey are required");if(!this.authKey)throw new Error("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=Ut(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=Ut(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=Ut(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=Ut(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=Ut(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getDefaultRateLimit(){if(this.provider==="pro"){if(this.serviceConfig&&this.serviceConfig.immersiveTranslateProLimit){let t=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(t)&&(t=15),{limit:t,interval:1050}}return{limit:15,interval:1050}}else return{limit:3,interval:1050}}async translateList(t){let{from:n,to:a,text:r}=t,u={source_lang:Kr.get(n)||"",target_lang:Kr.get(a)||a},o=this.getRandomKey(),i=new URLSearchParams(u);this.splitor?i.append("text",r.join(this.splitor)):r.forEach(d=>{i.append("text",d)});let s=i.toString(),c={text:this.splitor?[r.join(this.splitor)]:r,source_lang:Kr.get(n)||"auto",target_lang:Kr.get(a)||a},l=this.freeApiUrl;o.endsWith(":im")?l=this.immersiveTranslateApiUrl:o.endsWith(":fx")||(l=this.proApiUrl);let g;this.provider==="pro"?g=await oe({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:o,"Content-Type":"application/json"}}):o.startsWith("immersive_")?g=await oe({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:o,"Content-Type":"application/json"}}):g=await oe({retry:2,url:l,method:"POST",body:s,headers:{Authorization:"DeepL-Auth-Key "+o,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}});let{translations:p}=g,f=[];if(this.splitor?f=p[0]?.text.split(this.splitor).map(d=>d):f=p.map(d=>d.text),a==="zh-TW"){let d=this.serviceConfig||{};d&&d.googleApiUrl&&(d.apiUrl=d.googleApiUrl);let C=await new Ca(this.serviceConfig,this.generalConfig,this.translationOptions).translate({from:"zh-CN",to:"zh-TW",text:p.map(h=>h.text).join(` `),url:"",options:{}});C&&C.text&&(f=C.text.split(` -`))}return{text:f,from:p[0]&&v6.get(p[0].detected_source_language)||n,to:a}}},Cm=Ks;m();var A6=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],Gs=new Map(A6),Vs=class extends be{static langMap=Gs;APIKEY="";isSupportList=!1;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:a,to:r}=t,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:2,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:n,from:Gs.get(a)||a,to:Gs.get(r)||r,apikey:this.APIKEY})},i=await oe(o);if(i.tgt_text){let s=i.tgt_text;return s.endsWith(` -`)&&(s=s.slice(0,-1)),{text:s,from:a,to:r}}else throw new Error(JSON.stringify(i))}},wm=Vs;m();var k6=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],Ys=new Map(k6),Js=class extends be{static langMap=Ys;APIKEY="";region="eastasia";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region)}async translateList(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:[]};let u={"api-version":"3.0",to:Ys.get(r)||r};a!=="auto"&&(u.from=Ys.get(a)||a);let o=new URLSearchParams(u),i=JSON.stringify(n.map(l=>({text:l}))),s={url:"https://api.cognitive.microsofttranslator.com/translate?"+o.toString(),retry:2,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:i},c=await oe(s);if(c.length===0)throw new Error("server response invalid");return{from:a,to:r,text:c.map(l=>l.translations.map(p=>p.text).join(" "))}}},vm=Js;m();var S6=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],Gr=new Map(S6),Qs=class extends be{isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:3,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t,u;if(n.length===0)return{from:a,to:r,text:[]};let o=` +`))}return{text:f,from:p[0]&&v6.get(p[0].detected_source_language)||n,to:a}}},wm=Ks;m();var A6=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],Gs=new Map(A6),Vs=class extends be{static langMap=Gs;APIKEY="";isSupportList=!1;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:a,to:r}=t,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:2,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:n,from:Gs.get(a)||a,to:Gs.get(r)||r,apikey:this.APIKEY})},i=await oe(o);if(i.tgt_text){let s=i.tgt_text;return s.endsWith(` +`)&&(s=s.slice(0,-1)),{text:s,from:a,to:r}}else throw new Error(JSON.stringify(i))}},vm=Vs;m();var k6=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],Ys=new Map(k6),Js=class extends be{static langMap=Ys;APIKEY="";region="eastasia";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region)}async translateList(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:[]};let u={"api-version":"3.0",to:Ys.get(r)||r};a!=="auto"&&(u.from=Ys.get(a)||a);let o=new URLSearchParams(u),i=JSON.stringify(n.map(l=>({text:l}))),s={url:"https://api.cognitive.microsofttranslator.com/translate?"+o.toString(),retry:2,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:i},c=await oe(s);if(c.length===0)throw new Error("server response invalid");return{from:a,to:r,text:c.map(l=>l.translations.map(p=>p.text).join(" "))}}},Am=Js;m();var S6=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],Gr=new Map(S6),Qs=class extends be{isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:3,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t,u;if(n.length===0)return{from:a,to:r,text:[]};let o=`
-`,i=n.join(o),s={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:2,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:""};a==="auto"||!Gr.get(a)?(u=(await oe({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:i})).langCode,s.body=JSON.stringify({text:i,source:u||Gr.get(a)||a,target:Gr.get(r)||r})):s.body=JSON.stringify({text:i,source:Gr.get(a),target:Gr.get(r)||r});let c=await oe(s);if(c.translatedText==="")throw new Error("server response invalid");let l=c.translatedText.split("
").map(g=>g.trim());return{from:a,to:r,text:l}}},Am=Qs;m();var D6=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],Vr=new Map(D6),Zs=class extends be{static langMap=Vr;provider="custom";APIKEY="";apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;systemPrompt="You are a professional translation engine, please translate the text into a colloquial, professional, elegant and fluent content, without the style of machine translation. You must only translate the text content, never interpret it.";prompt=`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +`,i=n.join(o),s={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:2,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:""};a==="auto"||!Gr.get(a)?(u=(await oe({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:i})).langCode,s.body=JSON.stringify({text:i,source:u||Gr.get(a)||a,target:Gr.get(r)||r})):s.body=JSON.stringify({text:i,source:Gr.get(a),target:Gr.get(r)||r});let c=await oe(s);if(c.translatedText==="")throw new Error("server response invalid");let l=c.translatedText.split("
").map(g=>g.trim());return{from:a,to:r,text:l}}},km=Qs;m();var D6=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],Do=new Map(D6),Zs=class extends be{static langMap=Do;provider="custom";APIKEY="";apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;systemPrompt="You are a professional translation engine, please translate the text into a colloquial, professional, elegant and fluent content, without the style of machine translation. You must only translate the text content, never interpret it.";prompt=`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`;model="gpt-3.5-turbo-0613";apiUrl="https://api.openai.com/v1/chat/completions";immersiveApiUrl="https://openai-api.immersivetranslate.com/v1/chat/completions";immersiveProApiUrl=Fn()||Pn()?"https://api2.immersivetranslate.com/openai/v1/chat/completions":"https://test-api2.immersivetranslate.com/openai/v1/chat/completions";splitor="
";constructor(t,n,a){if(super(t,n,a),t||(t={}),t.provider&&(this.provider=t.provider),t.APIKEY&&(this.APIKEY=t.APIKEY?.trim(),this.apiKeys=this.APIKEY.split(",").map(r=>r.trim())),this.provider==="pro"){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");if(this.APIKEY=a.userToken||"",this.apiKeys=this.APIKEY.split(",").map(r=>r.trim()),!this.APIKEY)throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002")}t.prompt&&(this.prompt=t.prompt),t.model&&(this.model=t.model),t&&t.apiUrl&&(this.apiUrl=jt(this.apiUrl,t.apiUrl)),t&&t.immersiveApiUrl&&(this.immersiveApiUrl=jt(this.immersiveApiUrl,t.immersiveApiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=jt(this.immersiveProApiUrl,t.immersiveProApiUrl)),t&&t.systemPrompt&&(this.systemPrompt=t.systemPrompt)}getDefaultRateLimit(){return{limit:10,interval:1300}}translate(t){return this.model.includes("003")?(this.maxTextGroupLength=1,this.translate3(t)):this.translate3_5(t)}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate3_5(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let u=Vr.get(a)||a,o=Vr.get(r)||r,i=this.prompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u),s=[];if(this.systemPrompt){let p=this.systemPrompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u);s.push({role:"system",content:p})}this.prompt&&s.push({role:"user",content:i}),this.prompt.indexOf("{{text}}")===-1&&s.push({role:"user",content:n});let c={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:this.model,temperature:0,messages:s})},l=this.getRandomKey();this.provider==="pro"?(c.url=this.immersiveProApiUrl,c.headers.token=l):l&&(c.headers.Authorization="Bearer "+l,c.headers["api-key"]=l,l.startsWith("immersiveopenai_")&&(c.url=this.immersiveProApiUrl,c.headers.token=l,l.endsWith("x")||(c.headers["Immersive-Corpus-Campagin"]="yes"),delete c.headers.Authorization,delete c.headers["api-key"]));let g=await oe(c);if(g&&g.choices&&g.choices.length>0&&g.choices[0].message&&g.choices[0].message.content){let p=g.choices[0].message.content.trim();return(p.includes("\u62B1\u6B49")&&p.includes("\u7FFB\u8BD1")||p.includes("\u8BF7\u5C06\u6587\u672C\u7FFB\u8BD1\u6210")||p.includes("\u4E0D\u8981\u89E3\u91CA\u4EFB\u4F55"))&&(p=n),!n.includes(".")&&(p.endsWith("\u3002")||p.endsWith("."))&&(p=p.slice(0,-1)),{from:a,to:r,text:p}}else throw new Error("server response invalid: "+JSON.stringify(g))}async translate3(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let u=this.prompt.replace(/{{to}}/g,Vr.get(r)||r).replace(/{{text}}/g,n).replace(/{{from}}/g,Vr.get(a)||a),o={url:"https://api.openai.com/v1/completions",method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.APIKEY},body:JSON.stringify({model:this.model,prompt:u,temperature:0})},i=await oe(o);if(i&&i.choices&&i.choices.length>0&&i.choices[0].text){let s=i.choices[0].text.trim();return{from:a,to:r,text:s}}else throw new Error("server response invalid: "+JSON.stringify(i))}},km=Zs;m();var L6=[["auto","auto"],["zh-CN","zh-Hans"],["zh-TW","zh-Hant"],["en","en"],["yue","\u7CA4\u8BED"],["wyw","\u53E4\u6587"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["de","de"],["es","es"],["it","it"],["ru","ru"],["pt","pt"],["nl","nl"],["pl","pl"],["ar","ar"],["af","af"],["am","am"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["el","el"],["eo","eo"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ku","ku"],["ky","ky"],["la","lo"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["no","no"],["ny","ny"],["pa","pa"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["sr-Cyrl","sr"],["sr-Latn","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],Lo=new Map(L6),Xs="chatgptWebAccessToken";async function Sm(){let e=await Or(Xs);if(e)return e;let t=await oe({url:"https://chat.openai.com/api/auth/session",method:"get",responseType:"json"});if(!t.accessToken)throw new Error("UNAUTHORIZED");return await Ir(Xs,t.accessToken,10*60*1e3),t.accessToken}var e0=class e{static instance;constructor(){return e.instance||(e.instance=this),this}#e=Promise.resolve();enqueue(t){return this.#e=this.#e.then(()=>t()),this.#e}},t0=new e0;Object.freeze(t0);var Yr=class extends be{accessToken="";customChatGptWebApiUrl="https://chat.openai.com";customChatGptWebApiPath="/backend-api/conversation";maxTextGroupLength=1;maxTextLength=1200;isStream=!1;isSupportList=!1;prompt=`You are a translation engine, you can only translate text and cannot interpret it, and do not explain.Translate the text below to {{to}}: +{{text}}`;model="gpt-3.5-turbo-0613";apiUrl="https://api.openai.com/v1/chat/completions";immersiveApiUrl="https://openai-api.immersivetranslate.com/v1/chat/completions";immersiveProApiUrl=Fn()||Pn()?"https://api2.immersivetranslate.com/openai/v1/chat/completions":"https://test-api2.immersivetranslate.com/openai/v1/chat/completions";splitor="
";constructor(t,n,a){if(super(t,n,a),t||(t={}),t.provider&&(this.provider=t.provider),t.APIKEY&&(this.APIKEY=t.APIKEY?.trim(),this.apiKeys=this.APIKEY.split(",").map(r=>r.trim())),this.provider==="pro"){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");if(this.APIKEY=a.userToken||"",this.apiKeys=this.APIKEY.split(",").map(r=>r.trim()),!this.APIKEY)throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002")}t.prompt&&(this.prompt=t.prompt),t.model&&(this.model=t.model),t&&t.apiUrl&&(this.apiUrl=Ut(this.apiUrl,t.apiUrl)),t&&t.immersiveApiUrl&&(this.immersiveApiUrl=Ut(this.immersiveApiUrl,t.immersiveApiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=Ut(this.immersiveProApiUrl,t.immersiveProApiUrl)),t&&t.systemPrompt&&(this.systemPrompt=t.systemPrompt)}getDefaultRateLimit(){return{limit:10,interval:1300}}translate(t){return this.model.includes("003")||this.model.includes("gpt-3.5-turbo-instruct")?(this.maxTextGroupLength=1,this.translate3(t)):this.translate3_5(t)}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate3_5(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let u=Do.get(a)||a,o=Do.get(r)||r,i=this.prompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u),s=[];if(this.systemPrompt){let p=this.systemPrompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u);s.push({role:"system",content:p})}this.prompt&&s.push({role:"user",content:i}),this.prompt.indexOf("{{text}}")===-1&&s.push({role:"user",content:n});let c={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:this.model,temperature:0,messages:s})},l=this.getRandomKey();this.provider==="pro"?(c.url=this.immersiveProApiUrl,c.headers.token=l):l&&(c.headers.Authorization="Bearer "+l,c.headers["api-key"]=l,l.startsWith("immersiveopenai_")&&(c.url=this.immersiveProApiUrl,c.headers.token=l,l.endsWith("x")||(c.headers["Immersive-Corpus-Campagin"]="yes"),delete c.headers.Authorization,delete c.headers["api-key"]));let g=await oe(c);if(g&&g.choices&&g.choices.length>0&&g.choices[0].message&&g.choices[0].message.content){let p=g.choices[0].message.content.trim();return(p.includes("\u62B1\u6B49")&&p.includes("\u7FFB\u8BD1")||p.includes("\u8BF7\u5C06\u6587\u672C\u7FFB\u8BD1\u6210")||p.includes("\u4E0D\u8981\u89E3\u91CA\u4EFB\u4F55"))&&(p=n),!n.includes(".")&&(p.endsWith("\u3002")||p.endsWith("."))&&(p=p.slice(0,-1)),{from:a,to:r,text:p}}else throw new Error("server response invalid: "+JSON.stringify(g))}async translate3(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let u=`Translate to ${Do.get(r)||r}: -{{text}}`;constructor(t,n,a){super(t,n,a)}throttleDebounce(t,n,a){let r=0,u;return(...o)=>{let i=Date.now(),s=this,c=()=>{r=i,t.apply(s,o)};i-r>=n?(clearTimeout(u),c()):(clearTimeout(u),u=setTimeout(()=>{c()},a))}}async deleteConversation(t){if(t){let n=await oe({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}/${t}`,method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({is_visible:!1})});return j.debug("delete conversation res:",n),n}}async translate(t){return await t0.enqueue(async()=>{let{text:n,from:a,to:r}=t;if(n.length===0)return Promise.resolve({from:a,to:r,text:""});let u=Lo.get(a)||a,o=Lo.get(r)||r;if(this.accessToken=await Sm(),!this.accessToken||this.accessToken==="")throw new Error("token error");let i="text-davinci-002-render-sha-mobile";if(!i)throw new Error("No available model");let s=this.prompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u);try{let c=await oe({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"stream",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:hn(),role:"user",content:{content_type:"text",parts:[s]}}],model:i,parent_message_id:hn()})});return j.debug("get chatgpt res:",c),await this.deleteConversation(c?.conversation_id),Promise.resolve({from:a,to:r,text:c?.message?.content?.parts?.[0]})}catch(c){throw j.debug("post chatgpt error:",c),await Nr(Xs),c}})}async translateStream(t,n){let{text:a,from:r,to:u}=t;if(a.length===0){n(null,{from:r,to:u,text:""});return}let o=this.throttleDebounce(function(i){let{from:s,to:c,text:l}=i;n(null,{from:s,to:c,text:l})},300,200);await t0.enqueue(async()=>{let i="chatgpt"+hn(),s=ue.runtime.connect({name:i}),c,l;s.onMessage.addListener(b=>{if(!(!b||b==="")){if(b==="[DONE]"){s.disconnect(),this.deleteConversation(c);return}try{l=JSON.parse(b)}catch(C){j.debug("chatgpt json error",C,b);return}c=l?.conversation_id,l?.message?.author?.role==="assistant"&&o({from:r,to:u,text:l?.message?.content?.parts?.[0]})}});let g=Lo.get(r)||r,p=Lo.get(u)||u;if(this.accessToken=await Sm(),!this.accessToken||this.accessToken==="")throw new Error("token error");let f="text-davinci-002-render-sha";if(!f)throw new Error("No available model");let d=this.prompt.replace(/{{to}}/g,p).replace(/{{text}}/g,a).replace(/{{from}}/g,g);oe({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"realStream",extra:{portName:i},headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:hn(),role:"user",content:{content_type:"text",parts:[d]}}],model:f,parent_message_id:hn()})}).catch(b=>{j.debug("chatgpt error",b),s.disconnect(),this.deleteConversation(c),n(b,{from:r,to:u,text:""})})})}};m();var Mm=Cf(Dm()),Lm=[["af","af"],["am","am"],["ar","ar"],["auto","auto"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fil","fil"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["mww","mww"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["otq","otq"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["tn","tn"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tlh","tlh"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["yua","yua"],["yue","yue"],["bo","bo"],["sa","sa"],["zh-CN","zh"],["zh-TW","zh-tw"],["zu","zu"]],Qr=class e extends be{static langMap=new Map(Lm);static langMapReverse=new Map(Lm.map(([t,n])=>[n,t]));static SHA1=new Mm.default.SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,a){if(super(t,n,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new Error("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:a,to:r}=t,u={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:n,TargetLanguage:e.langMap.get(r)||r},o=this.scene=="general"?"TranslateGeneral":"Translate",i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:u,service:"mt",version:"2018-10-12"});return{text:i.Data.Translated,from:i.Data.DetectedLanguage&&e.langMapReverse.get(i.Data.DetectedLanguage)||a||"auto",to:e.langMapReverse.get(r)||r}}async translateList(t){let{text:n,from:a,to:r}=t,u=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:JSON.stringify(n.reduce((c,l,g)=>(c[g]=l,c),{})),TargetLanguage:e.langMap.get(r)||r,ApiType:u},i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),s=i.TranslatedList.length&&i.TranslatedList[0].detectedLanguage;return{text:i.TranslatedList.sort((c,l)=>parseInt(c.index)-parseInt(l.index)).map(c=>c.translated),from:s&&e.langMapReverse.get(s)||a||"auto",to:e.langMapReverse.get(r)||r}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:u,version:o}){let i=new Date().toISOString(),s=Math.random().toString(36).slice(2),c={Action:a,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:s,Timestamp:i,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},g=(b=>{let h=Object.keys(b).sort().map(A=>`${this.encode(A)}=${this.encode(b[A])}`).join("&");return`POST&%2F&${this.encode(h)}`})(Object.assign({},c,r)),p=e.SHA1.b64_hmac(`${n}&`,g),f=new URLSearchParams(Object.assign({},c,{Signature:p})).toString(),d=await oe({retry:1,url:`https://${u}.aliyuncs.com?${f}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(r).toString()});if(d instanceof Error)throw d;if(d.Code!=="200")throw new Error(d.Message);return d}};m();m();var M6=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],et={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},n0=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},a0=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let a=n0(t);if(a)return Array.isArray(n)?`${a}=${n.map(n0).sort().join(`&${a}=`)}`:`${a}=${n0(n)}`}).filter(t=>t).join("&"),Za=class{request;serviceName;bodySha256;constructor(t,n,a){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,a=a||{},this.bodySha256=a.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(a=>{let r=t[a];return typeof r<"u"&&r!==null}).sort().map(a=>{n[a]=t[a]}),n}async addAuthorization(t,n){let a=this.getDateTime(n);await this.addHeaders(t,a),this.request.headers.Authorization=await this.authorization(t,a)}async authorization(t,n){let a=[],r=this.credentialString(n);return a.push(`${et.algorithm} Credential=${t.accessKeyId}/${r}`),a.push(`SignedHeaders=${this.signedHeaders()}`),a.push(`Signature=${await this.signature(t,n)}`),a.join(", ")}async getSignUrl(t,n){let a=this.getDateTime(n),r={...this.request.params},u=this.request.params,o=this.request.headers;t.sessionToken&&(r[et.tokenHeader]=t.sessionToken),r[et.dateHeader]=a,r[et.notSignBody]="",r[et.credential]=`${t.accessKeyId}/${this.credentialString(a)}`,r[et.algorithmKey]=et.algorithm,r[et.signHeadersKey]="",r[et.signQueriesKey]=void 0,r[et.signatureKey]=void 0,r=this.sortParams(r),this.request.params=r,this.request.headers={};let i=await this.signature(t,a);return this.request.params=u,this.request.headers=o,r[et.signQueriesKey]=Object.keys(r).sort().join(";"),r[et.signatureKey]=i,a0(r)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[et.dateHeader]=n,t.sessionToken&&(this.request.headers[et.tokenHeader]=t.sessionToken),this.request.body){let a=this.request.body;this.request.headers[et.contentSha256Header]=await yn(a)}}async signature(t,n){let a=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return ko(await aa(await this.stringToSign(n),a))}async stringToSign(t){let n=[];n.push(et.algorithm),n.push(t),n.push(this.credentialString(t));let a=await this.canonicalString();return n.push(await this.hexEncodedHash(a)),n.join(` +${n} =>`,o=this.getRandomKey(),i={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.APIKEY}},s={model:this.model,prompt:u,temperature:0};this.provider==="pro"?(i.url=this.immersiveProApiUrl,i.headers.token=o):o&&(i.headers.Authorization="Bearer "+o,i.headers["api-key"]=o,o.startsWith("immersiveopenai_")&&(i.url=this.immersiveProApiUrl,i.headers.token=o,o.endsWith("x")||(i.headers["Immersive-Corpus-Campagin"]="yes"),delete i.headers.Authorization,delete i.headers["api-key"])),i.url=i.url.replace("/chat/","/");let c=2048,l=u.length*2.2;l0&&g.choices[0].text){let p=g.choices[0].text.trim();return{from:a,to:r,text:p}}else throw new Error("server response invalid: "+JSON.stringify(g))}},Sm=Zs;m();var L6=[["auto","auto"],["zh-CN","zh-Hans"],["zh-TW","zh-Hant"],["en","en"],["yue","\u7CA4\u8BED"],["wyw","\u53E4\u6587"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["de","de"],["es","es"],["it","it"],["ru","ru"],["pt","pt"],["nl","nl"],["pl","pl"],["ar","ar"],["af","af"],["am","am"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["el","el"],["eo","eo"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ku","ku"],["ky","ky"],["la","lo"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["no","no"],["ny","ny"],["pa","pa"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["sr-Cyrl","sr"],["sr-Latn","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],Lo=new Map(L6),Xs="chatgptWebAccessToken";async function Dm(){let e=await Or(Xs);if(e)return e;let t=await oe({url:"https://chat.openai.com/api/auth/session",method:"get",responseType:"json"});if(!t.accessToken)throw new Error("UNAUTHORIZED");return await Ir(Xs,t.accessToken,10*60*1e3),t.accessToken}var e0=class e{static instance;constructor(){return e.instance||(e.instance=this),this}#e=Promise.resolve();enqueue(t){return this.#e=this.#e.then(()=>t()),this.#e}},t0=new e0;Object.freeze(t0);var Vr=class extends be{accessToken="";customChatGptWebApiUrl="https://chat.openai.com";customChatGptWebApiPath="/backend-api/conversation";maxTextGroupLength=1;maxTextLength=1200;isStream=!1;isSupportList=!1;prompt=`You are a translation engine, you can only translate text and cannot interpret it, and do not explain.Translate the text below to {{to}}: + +{{text}}`;constructor(t,n,a){super(t,n,a)}throttleDebounce(t,n,a){let r=0,u;return(...o)=>{let i=Date.now(),s=this,c=()=>{r=i,t.apply(s,o)};i-r>=n?(clearTimeout(u),c()):(clearTimeout(u),u=setTimeout(()=>{c()},a))}}async deleteConversation(t){if(t){let n=await oe({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}/${t}`,method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({is_visible:!1})});return j.debug("delete conversation res:",n),n}}async translate(t){return await t0.enqueue(async()=>{let{text:n,from:a,to:r}=t;if(n.length===0)return Promise.resolve({from:a,to:r,text:""});let u=Lo.get(a)||a,o=Lo.get(r)||r;if(this.accessToken=await Dm(),!this.accessToken||this.accessToken==="")throw new Error("token error");let i="text-davinci-002-render-sha-mobile";if(!i)throw new Error("No available model");let s=this.prompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u);try{let c=await oe({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"stream",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:hn(),role:"user",content:{content_type:"text",parts:[s]}}],model:i,parent_message_id:hn()})});return j.debug("get chatgpt res:",c),await this.deleteConversation(c?.conversation_id),Promise.resolve({from:a,to:r,text:c?.message?.content?.parts?.[0]})}catch(c){throw j.debug("post chatgpt error:",c),await Nr(Xs),c}})}async translateStream(t,n){let{text:a,from:r,to:u}=t;if(a.length===0){n(null,{from:r,to:u,text:""});return}let o=this.throttleDebounce(function(i){let{from:s,to:c,text:l}=i;n(null,{from:s,to:c,text:l})},300,200);await t0.enqueue(async()=>{let i="chatgpt"+hn(),s=ue.runtime.connect({name:i}),c,l;s.onMessage.addListener(b=>{if(!(!b||b==="")){if(b==="[DONE]"){s.disconnect(),this.deleteConversation(c);return}try{l=JSON.parse(b)}catch(C){j.debug("chatgpt json error",C,b);return}c=l?.conversation_id,l?.message?.author?.role==="assistant"&&o({from:r,to:u,text:l?.message?.content?.parts?.[0]})}});let g=Lo.get(r)||r,p=Lo.get(u)||u;if(this.accessToken=await Dm(),!this.accessToken||this.accessToken==="")throw new Error("token error");let f="text-davinci-002-render-sha";if(!f)throw new Error("No available model");let d=this.prompt.replace(/{{to}}/g,p).replace(/{{text}}/g,a).replace(/{{from}}/g,g);oe({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"realStream",extra:{portName:i},headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:hn(),role:"user",content:{content_type:"text",parts:[d]}}],model:f,parent_message_id:hn()})}).catch(b=>{j.debug("chatgpt error",b),s.disconnect(),this.deleteConversation(c),n(b,{from:r,to:u,text:""})})})}};m();var Fm=wf(Lm()),Mm=[["af","af"],["am","am"],["ar","ar"],["auto","auto"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fil","fil"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["mww","mww"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["otq","otq"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["tn","tn"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tlh","tlh"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["yua","yua"],["yue","yue"],["bo","bo"],["sa","sa"],["zh-CN","zh"],["zh-TW","zh-tw"],["zu","zu"]],Jr=class e extends be{static langMap=new Map(Mm);static langMapReverse=new Map(Mm.map(([t,n])=>[n,t]));static SHA1=new Fm.default.SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,a){if(super(t,n,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new Error("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:a,to:r}=t,u={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:n,TargetLanguage:e.langMap.get(r)||r},o=this.scene=="general"?"TranslateGeneral":"Translate",i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:u,service:"mt",version:"2018-10-12"});return{text:i.Data.Translated,from:i.Data.DetectedLanguage&&e.langMapReverse.get(i.Data.DetectedLanguage)||a||"auto",to:e.langMapReverse.get(r)||r}}async translateList(t){let{text:n,from:a,to:r}=t,u=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:JSON.stringify(n.reduce((c,l,g)=>(c[g]=l,c),{})),TargetLanguage:e.langMap.get(r)||r,ApiType:u},i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),s=i.TranslatedList.length&&i.TranslatedList[0].detectedLanguage;return{text:i.TranslatedList.sort((c,l)=>parseInt(c.index)-parseInt(l.index)).map(c=>c.translated),from:s&&e.langMapReverse.get(s)||a||"auto",to:e.langMapReverse.get(r)||r}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:u,version:o}){let i=new Date().toISOString(),s=Math.random().toString(36).slice(2),c={Action:a,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:s,Timestamp:i,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},g=(b=>{let h=Object.keys(b).sort().map(A=>`${this.encode(A)}=${this.encode(b[A])}`).join("&");return`POST&%2F&${this.encode(h)}`})(Object.assign({},c,r)),p=e.SHA1.b64_hmac(`${n}&`,g),f=new URLSearchParams(Object.assign({},c,{Signature:p})).toString(),d=await oe({retry:1,url:`https://${u}.aliyuncs.com?${f}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(r).toString()});if(d instanceof Error)throw d;if(d.Code!=="200")throw new Error(d.Message);return d}};m();m();var M6=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],et={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},n0=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},a0=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let a=n0(t);if(a)return Array.isArray(n)?`${a}=${n.map(n0).sort().join(`&${a}=`)}`:`${a}=${n0(n)}`}).filter(t=>t).join("&"),Za=class{request;serviceName;bodySha256;constructor(t,n,a){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,a=a||{},this.bodySha256=a.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(a=>{let r=t[a];return typeof r<"u"&&r!==null}).sort().map(a=>{n[a]=t[a]}),n}async addAuthorization(t,n){let a=this.getDateTime(n);await this.addHeaders(t,a),this.request.headers.Authorization=await this.authorization(t,a)}async authorization(t,n){let a=[],r=this.credentialString(n);return a.push(`${et.algorithm} Credential=${t.accessKeyId}/${r}`),a.push(`SignedHeaders=${this.signedHeaders()}`),a.push(`Signature=${await this.signature(t,n)}`),a.join(", ")}async getSignUrl(t,n){let a=this.getDateTime(n),r={...this.request.params},u=this.request.params,o=this.request.headers;t.sessionToken&&(r[et.tokenHeader]=t.sessionToken),r[et.dateHeader]=a,r[et.notSignBody]="",r[et.credential]=`${t.accessKeyId}/${this.credentialString(a)}`,r[et.algorithmKey]=et.algorithm,r[et.signHeadersKey]="",r[et.signQueriesKey]=void 0,r[et.signatureKey]=void 0,r=this.sortParams(r),this.request.params=r,this.request.headers={};let i=await this.signature(t,a);return this.request.params=u,this.request.headers=o,r[et.signQueriesKey]=Object.keys(r).sort().join(";"),r[et.signatureKey]=i,a0(r)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[et.dateHeader]=n,t.sessionToken&&(this.request.headers[et.tokenHeader]=t.sessionToken),this.request.body){let a=this.request.body;this.request.headers[et.contentSha256Header]=await yn(a)}}async signature(t,n){let a=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return Ao(await aa(await this.stringToSign(n),a))}async stringToSign(t){let n=[];n.push(et.algorithm),n.push(t),n.push(this.credentialString(t));let a=await this.canonicalString();return n.push(await this.hexEncodedHash(a)),n.join(` `)}async canonicalString(){let t=[],n=this.request.pathname||"/";t.push(this.request.method.toUpperCase()),t.push(n);let a=a0(this.request.params)||"";return t.push(a),t.push(`${this.canonicalHeaders()} `),t.push(this.signedHeaders()),t.push(await this.hexEncodedBodyHash()),t.join(` `)}canonicalHeaders(){let t=[];Object.keys(this.request.headers).forEach(a=>{t.push([a,this.request.headers[a]])}),t.sort((a,r)=>a[0].toLowerCase(){let r=a[0].toLowerCase();if(this.isSignableHeader(r)){let u=a[1];if(typeof u>"u"||u===null||typeof u.toString!="function")throw new Error(`Header ${r} contains invalid value`);n.push(`${r}:${this.canonicalHeaderValues(u.toString())}`)}}),n.join(` -`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await yn(t)}async hexEncodedBodyHash(){return this.request.headers[et.contentSha256Header]?this.request.headers[et.contentSha256Header]:this.request.body?await this.hexEncodedHash(a0(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return M6.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,a,r){let u=await aa(n,`${et.kDatePrefix}${t.secretKey}`),o=await aa(a,u),i=await aa(r,o);return aa(et.v4Identifier,i)}createScope(t,n,a){return[t.substr(0,8),n,a,et.v4Identifier].join("/")}};var Fm=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],r0=new Map(Fm),F6=new Map(Fm.map(([e,t])=>[t,e])),u0=class extends be{static langMap=r0;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,a){if(super(t,n,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new Error("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let a={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},r=new Za(a,"translate");await r.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let u=new URLSearchParams(a.params),o=await oe({retry:2,url:"https://open.volcengineapi.com"+a.pathname+"?"+u.toString(),headers:r.request.headers,method:a.method,body:a.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let i=o.ResponseMetadata.Error;throw new ot(i.Code,i.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let i=o.ResponseMetaData.Error;throw new ot(i.Code,i.Message)}else throw new Error("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:a,to:r}=t,u=r0.get(a),o={TargetLanguage:r0.get(r)||r,TextList:n};u?o.SourceLanguage=u:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` -`).slice(0,1e3));let i={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},s=new Za(i,"translate");await s.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let c=new URLSearchParams(i.params),l=await oe({retry:2,url:"https://open.volcengineapi.com"+i.pathname+"?"+c.toString(),headers:s.request.headers,method:i.method,body:i.body});if(l.TranslationList){let g=l.TranslationList.map(f=>f.Translation),p=a;return l.TranslationList.length>0&&l.TranslationList[0].DetectedSourceLanguage&&(p=F6.get(l.TranslationList[0].DetectedSourceLanguage)||a),{text:g,from:p,to:r}}else if(l.ResponseMetadata&&l.ResponseMetadata.Error){let g=l.ResponseMetadata.Error;throw new ot(g.Code,g.Message)}else if(l.ResponseMetaData&&l.ResponseMetaData.Error){let g=l.ResponseMetaData.Error;throw new ot(g.Code,g.Message)}else throw new Error("response: "+JSON.stringify(l))}},Pm=u0;m();var _m=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],o0=new Map(_m),P6=new Map(_m.map(([e,t])=>[t,e])),Zr=class extends be{static langMap=o0;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:a,to:r}=t,u=o0.get(a)||"detect",o=o0.get(r)||r,s=await oe({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:u,target_language:o,text:n})});if(s.base_resp&&s.base_resp.status_code===0){let c=s.translation,l=a;return s.detected_language&&(l=P6.get(s.detected_language)||a),{text:c,from:l,to:r}}else{let c=s.base_resp;throw new ot(c.status_code.toString(),c.status_message)}}};m();var _6=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],i0=new Map(_6),Xr=class extends be{static langMap=i0;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,a){if(super(t,n,a),!t||!t.url)throw new Error("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(r=>r.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:a,to:r}=t,u=this.getRandomKey(),i=await oe({retry:2,url:u,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({source_lang:i0.get(a)||a,target_lang:i0.get(r)||r,text:n})});if(i.code===200)return{text:i.data,from:a,to:r};throw new Error(i.message||i.message||"API Error")}};m();m();var s0="https://{s}bing.com",Nm=s0+"/translator",B6=s0+"/ttranslatev3",R6=s0+"/tspellcheckv3",Fo="bingGlobalConfig",jm=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],Bm=new Map(jm),Rm=new Map(jm.map(([e,t])=>[t,e])),Om=1e3,xn,Xa;function l0(e,t){return e.replace("{s}",t?t+".":"")}async function O6(){if(!xn){let n=await ue.storage.local.get(Fo);return n&&(xn=n[Fo]),!0}let{tokenTs:e,tokenExpiryInterval:t}=xn;return Date.now()-e>t}async function Im(){let e,t,n,a,r,u,o,i,s,c;try{let l=l0(Nm,e),g=await oe({retry:2,url:l,responseType:"raw"}),{body:p,headers:f,url:d}=g;e=d.match(/^https?:\/\/(\w+)\.bing\.com/)[1],c=f["set-cookie"],t=p.match(/IG:"([^"]+)"/)[1],n=p.match(/data-iid="([^"]+)"/)[1],[r,a,u,o,i,s]=JSON.parse(p.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(l){throw l}return xn={subdomain:e,IG:t,IID:n,key:r,token:a,tokenTs:r,tokenExpiryInterval:u,isVertical:o,frontDoorBotClassification:i,isSignedInOrCorporateUser:s,cookie:c,count:0},await ue.storage.local.set({[Fo]:xn}),xn}function I6(e){let{IG:t,IID:n,subdomain:a,isVertical:r}=xn;return l0(e?R6:B6,a)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+xn.count++:"")}function N6(e,t,n,a){let{token:r,key:u}=xn,o={fromLang:n,text:t,token:r,key:u};return!e&&a&&(o.to=a),o}async function Um(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>Om)throw new Error(`The supported maximum length of text is ${Om}. Please shorten the text.`);Xa||(Xa=Im()),await Xa,await O6()&&(Xa=Im(),await Xa),t=t||"auto",n=n||"zh-CN",t=Bm.get(t)||t,n=Bm.get(n)||n;let r=I6(!1),u=N6(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:l0(Nm,xn.subdomain),"content-type":"application/x-www-form-urlencoded"},i=new URLSearchParams(u),s=r,c=i.toString(),l=await oe({retry:2,url:s,headers:o,method:"POST",body:c});if(l.ShowCaptcha||l.StatusCode===401||l.statusCode){if(xn=null,Xa=null,await ue.storage.local.remove(Fo),l.ShowCaptcha)throw new Error(` +`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await yn(t)}async hexEncodedBodyHash(){return this.request.headers[et.contentSha256Header]?this.request.headers[et.contentSha256Header]:this.request.body?await this.hexEncodedHash(a0(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return M6.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,a,r){let u=await aa(n,`${et.kDatePrefix}${t.secretKey}`),o=await aa(a,u),i=await aa(r,o);return aa(et.v4Identifier,i)}createScope(t,n,a){return[t.substr(0,8),n,a,et.v4Identifier].join("/")}};var Pm=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],r0=new Map(Pm),F6=new Map(Pm.map(([e,t])=>[t,e])),u0=class extends be{static langMap=r0;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,a){if(super(t,n,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new Error("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let a={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},r=new Za(a,"translate");await r.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let u=new URLSearchParams(a.params),o=await oe({retry:2,url:"https://open.volcengineapi.com"+a.pathname+"?"+u.toString(),headers:r.request.headers,method:a.method,body:a.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let i=o.ResponseMetadata.Error;throw new ot(i.Code,i.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let i=o.ResponseMetaData.Error;throw new ot(i.Code,i.Message)}else throw new Error("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:a,to:r}=t,u=r0.get(a),o={TargetLanguage:r0.get(r)||r,TextList:n};u?o.SourceLanguage=u:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` +`).slice(0,1e3));let i={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},s=new Za(i,"translate");await s.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let c=new URLSearchParams(i.params),l=await oe({retry:2,url:"https://open.volcengineapi.com"+i.pathname+"?"+c.toString(),headers:s.request.headers,method:i.method,body:i.body});if(l.TranslationList){let g=l.TranslationList.map(f=>f.Translation),p=a;return l.TranslationList.length>0&&l.TranslationList[0].DetectedSourceLanguage&&(p=F6.get(l.TranslationList[0].DetectedSourceLanguage)||a),{text:g,from:p,to:r}}else if(l.ResponseMetadata&&l.ResponseMetadata.Error){let g=l.ResponseMetadata.Error;throw new ot(g.Code,g.Message)}else if(l.ResponseMetaData&&l.ResponseMetaData.Error){let g=l.ResponseMetaData.Error;throw new ot(g.Code,g.Message)}else throw new Error("response: "+JSON.stringify(l))}},_m=u0;m();var Bm=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],o0=new Map(Bm),P6=new Map(Bm.map(([e,t])=>[t,e])),Qr=class extends be{static langMap=o0;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:a,to:r}=t,u=o0.get(a)||"detect",o=o0.get(r)||r,s=await oe({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:u,target_language:o,text:n})});if(s.base_resp&&s.base_resp.status_code===0){let c=s.translation,l=a;return s.detected_language&&(l=P6.get(s.detected_language)||a),{text:c,from:l,to:r}}else{let c=s.base_resp;throw new ot(c.status_code.toString(),c.status_message)}}};m();var _6=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],i0=new Map(_6),Zr=class extends be{static langMap=i0;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,a){if(super(t,n,a),!t||!t.url)throw new Error("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(r=>r.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:a,to:r}=t,u=this.getRandomKey(),i=await oe({retry:2,url:u,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({source_lang:i0.get(a)||a,target_lang:i0.get(r)||r,text:n})});if(i.code===200)return{text:i.data,from:a,to:r};throw new Error(i.message||i.message||"API Error")}};m();m();var s0="https://{s}bing.com",jm=s0+"/translator",B6=s0+"/ttranslatev3",R6=s0+"/tspellcheckv3",Fo="bingGlobalConfig",Um=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],Rm=new Map(Um),Om=new Map(Um.map(([e,t])=>[t,e])),Im=1e3,xn,Xa;function l0(e,t){return e.replace("{s}",t?t+".":"")}async function O6(){if(!xn){let n=await ue.storage.local.get(Fo);return n&&(xn=n[Fo]),!0}let{tokenTs:e,tokenExpiryInterval:t}=xn;return Date.now()-e>t}async function Nm(){let e,t,n,a,r,u,o,i,s,c;try{let l=l0(jm,e),g=await oe({retry:2,url:l,responseType:"raw"}),{body:p,headers:f,url:d}=g;e=d.match(/^https?:\/\/(\w+)\.bing\.com/)[1],c=f["set-cookie"],t=p.match(/IG:"([^"]+)"/)[1],n=p.match(/data-iid="([^"]+)"/)[1],[r,a,u,o,i,s]=JSON.parse(p.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(l){throw l}return xn={subdomain:e,IG:t,IID:n,key:r,token:a,tokenTs:r,tokenExpiryInterval:u,isVertical:o,frontDoorBotClassification:i,isSignedInOrCorporateUser:s,cookie:c,count:0},await ue.storage.local.set({[Fo]:xn}),xn}function I6(e){let{IG:t,IID:n,subdomain:a,isVertical:r}=xn;return l0(e?R6:B6,a)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+xn.count++:"")}function N6(e,t,n,a){let{token:r,key:u}=xn,o={fromLang:n,text:t,token:r,key:u};return!e&&a&&(o.to=a),o}async function zm(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>Im)throw new Error(`The supported maximum length of text is ${Im}. Please shorten the text.`);Xa||(Xa=Nm()),await Xa,await O6()&&(Xa=Nm(),await Xa),t=t||"auto",n=n||"zh-CN",t=Rm.get(t)||t,n=Rm.get(n)||n;let r=I6(!1),u=N6(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:l0(jm,xn.subdomain),"content-type":"application/x-www-form-urlencoded"},i=new URLSearchParams(u),s=r,c=i.toString(),l=await oe({retry:2,url:s,headers:o,method:"POST",body:c});if(l.ShowCaptcha||l.StatusCode===401||l.statusCode){if(xn=null,Xa=null,await ue.storage.local.remove(Fo),l.ShowCaptcha)throw new Error(` Sorry that bing translator seems to be asking for the captcha, Please take care not to request too frequently. The response code is ${l.StatusCode}. `);if(l.StatusCode===401)throw new Error(` Max count of translation exceeded. Please try it again later. The response code is 401. - `);if(l.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(l)}.`)}let g=l[0].translations[0],p=l[0].detectedLanguage;return{text:g.text,from:Rm.get(p.language),to:Rm.get(g.to)}}m();var Po=new Map;async function c0(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=Zn(e.body)),Po.has(t))return Po.get(t);let n=oe(e);Po.set(t,n);try{return await n}catch(a){throw a}finally{setTimeout(()=>{Po.delete(t)},3e4)}}async function zm(e){return c0(e)}async function Hm(e){if(Je()){let n=Co();if(n)try{return await n.ask("throttleRequest",e)}catch(a){throw j.error("can not comunicate with root frame, use strict limiter",a),a}else return c0(e)}else return c0(e)}m();function qm(e){let t=e.split(".");if(t.length<=1)throw new Error("invlaid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let a=n.replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(globalThis.atob(a).split("").map(function(i){return"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)}).join("")),u=JSON.parse(r),o=new Date(u.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}var wa=null,j6=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],d0=new Map(j6),eu=class extends be{static langMap=d0;isSupportList=!0;maxTextLength=1800;static async clearState(){wa=null,await Nr(Fu)}async translate(t){let{text:n,from:a,to:r}=t;return n?await Um(n,a,r):{...t}}async init(){if(!wa){wa={};let t=await Or(Fu);t&&(wa=t)}await Wm(wa)}async translateList(t){let{from:n,to:a,text:r}=t,u=d0.get(n)||"auto",o=d0.get(a)||a;u==="auto"&&(u="");let i=await Wm(wa),s=[];for(let p of r)s.push({Text:p});let c=JSON.stringify(s),l=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${u}&to=${o}&api-version=3.0&includeSentenceLength=true`,g=await oe({url:l,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+i.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin"},body:c,method:"POST"});if(g&&g.length>0&&g[0].translations&&g[0].translations.length>0)return{text:g.map(p=>p.translations[0]?.text||""),from:n,to:a};throw new Error("Microsoft translate error "+JSON.stringify(g))}};async function Wm(e){if(e&&e.accessToken&&e.accessTokenExpiresAt){let t=Date.now(),a=new Date(e.accessTokenExpiresAt).getTime();if(a-t>30*1e3)return e;if(a-t>3e3)return $m().catch(r=>{j.error(r)}),e}return $m()}async function $m(){let e=await Hm({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET"}),t=qm(e),n=t.accessTokenExpiresAt,r=new Date(n).getTime()-Date.now();return wa=t,await Ir(Fu,t,r-1e3),{accessToken:e,accessTokenExpiresAt:t.accessTokenExpiresAt}}m();var Km=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],m0=new Map(Km),U6=new Map(Km.map(([e,t])=>[t,e])),g0=class extends be{static langMap=m0;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";appid="";key="";isSupportList=!1;maxTextGroupLength=20;constructor(t,n,a){if(super(t,n,a),!t||!t.appid||!t.key)throw new Error("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim()}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:a}=this,{appid:r,key:u}=this,{text:o,from:i,to:s}=t,c=new URLSearchParams({from:m0.get(i)||"auto",to:m0.get(s)||s,q:o,salt:n,appid:r,sign:Zn(r+o+n+u)}),l=new URL(a);l.search=c.toString();let g=await oe({url:l.toString()});if(g.error_code)throw new ot("API_SERVER_ERROR",g.error_msg);let{trans_result:p,from:f}=g,d=p.map(({dst:C})=>C);return{from:U6.get(f)||f,to:s,text:d.join(` -`)}}},Gm=g0;m();m();var va=class extends be{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,a){super(t,n,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let u=await this.checkLang(a,n);if(!u)return{text:n,from:a,to:r};a=u;let o=this.handleRequest(n,a,r),i=await Zu(o);return{text:this.handleResponseText(i),from:a,to:r}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let u=await this.checkLang(a,n.join(" "));if(!u)return{text:n,from:a,to:r};a=u;let o=this.handleRequest(n,a,r),i=await Zu(o);return{text:this.handleResponseText(i),from:a,to:r}}handleBaseApiServiceConfig(t){let n=t.request.url,a=t.request.headers||{};return a["content-type"]||(a["content-type"]="application/json"),{url:n,retry:t.request.retry||2,method:t.request.method||"POST",headers:a,body:JSON.stringify(t.request.body)}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,a){let r={...this.requestBaseConfig},u=r?.body||"",o=this.apiServiceConfig.keywords||{};r.body=s(u);let i=r.headers||{};return Object.keys(i).forEach(c=>{i[c]=s(i[c])}),r.headers=i,r.url=s(r.url||""),r;function s(c){return c.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",a).replaceAll(/{([a-z:_]+)}/gi,(g,p)=>{let[f,d]=p.split(":"),b=o[f];return d==="random"?z6(b.split(",")):b})}}handleResponseText(t){let n=this.apiServiceConfig.response,a=t,r=n.text.split(".");for(let u of r){if(Array.isArray(a))return a=a.map(o=>o[u]),a;a=a[u]}return a}detectLanguageRemotely(t){return Ca.detectLanguageRemotelyByTransmart(t)}};function z6(e){let t=Math.floor(Math.random()*e.length);return e[t]}var p0=class extends va{constructor(t,n,a){if(!t?.token)throw new Error("token are required");super({...t,isSupportList:!0,langs:[["zh-CN","zh"],["en","en"],["ja","ja"]],keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,a)}},Vm=p0;m();var H6=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],_o=new Map(H6),f0=class extends be{static langMap=_o;token="ssdj273ksdiwi923bsd9";constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t;if(!_o.get(r))throw new Error(`Unsupported language: ${r}`);if(a==="auto")throw new Error("Unsupported language: auto");let o=n;return{text:(await oe({retry:2,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${_o.get(a)||"auto"}2${_o.get(r)}`})})).target,from:a,to:r}}},Ym=f0;m();var Jm=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],h0=new Map(Jm),q6=new Map(Jm.map(([e,t])=>[t,e]));function W6(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var b0=class extends be{static langMap=h0;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,a){if(super(t,n,a),!t||!t.appId||!t.appSecret)throw new Error("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,u=$6(32),o=Math.round(new Date().getTime()/1e3),i=this.appId+W6(n)+u+o+this.appSecret,s=await yn(i),c={q:n,appKey:this.appId,salt:u.toString(),from:h0.get(a)||"auto",to:h0.get(r)||r,sign:s,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(c.domain=this.domain),this.vocabId&&(c.vocabId=this.vocabId);let l=new URLSearchParams(c),p=await oe({url:"https://openapi.youdao.com/api",method:"POST",body:l.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"}});if(!p.translation)throw new Error(JSON.stringify(p));let f=p.l,[d,b]=f.split("2");return{text:p.translation.join(` -`),from:q6.get(d),to:r}}};function $6(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r[t,e]));var x0=class extends be{static langMap=y0;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,u={q:n,from:y0.get(a)||"auto",to:y0.get(r)||r},o=new URLSearchParams(u),i=await oe({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"}});if(i&&i.translation)return{text:i.translation.join(` -`),from:a,to:r};throw new Error("Youdao translation failed: "+JSON.stringify(i))}},Xm=x0;m();var tu=class extends va{constructor(t,n,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(r=>[r,r]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||ha,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,a)}};var K6={mock:Qa,mock2:Qa,custom:tu,google:Ta,transmart:Ca,deepl:Cm,volc:Pm,volcAlpha:Zr,bing:eu,tencent:Wr,tenAlpha:$r,baidu:Gm,caiyun:Vm,cai:Ym,openl:Do,youdao:Qm,you:Xm,d:Ja,dpro:Ja,deeplx:Xr,niu:wm,azure:vm,openai:km,chatgpt:Yr,papago:Am,aliyun:Qr},ra={};Object.keys(Bn).forEach(e=>{ra[e]={...Bn[e],class:K6[e]}});function eg(e,t){let n=Xt;if(ra[e]&&ra[e].class&&ra[e].class.langMap&&ra[e].class.langMap.size>0){let a=ra[e].class.langMap,r=n.filter(u=>a.get(u));return r.includes(t)||r.unshift("placeholder"),r}else return Xt}async function Aa(e,t){if(!e.text)return e;let n=await ua({sentences:[e]},t);if(n.sentences.length>0)return{...e,...n.sentences[0]};throw new ot("translateFailed","translate failed")}async function tg(e,t){for(let n of e)try{return await Aa({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n}),n}catch{continue}return null}async function E0(e){let{config:t,translationService:n}=e,a=t.translationGeneralConfig,r=t.translationServices,u=n,o=r[u]||{},i=tn(e.user),s=new ra[u].class(o,a,{translationService:u,userToken:e.user?.token,isPro:i}),c=s.getDefaultRateLimit();c&&(o&&!o.limit&&(o.limit=c.limit),o&&!o.interval&&(o.interval=c.interval)),u==="deepl"&&o&&o.provider==="pro"&&(o.limitForImmersiveDeepl?o.limit=o.limitForImmersiveDeepl:c&&(o.limit=c.limit)),await tm(u,o),await s.init()}async function ua(e,t,n){if(!e.sentences.length)return{...e};let{config:a,translationService:r,state:u}=t,o=a.translationGeneralConfig,i=a.translationServices,s=r,c=i[s]||{};s==="openai"&&(e.sentences=e.sentences.map(A=>({...A,from:"auto"})));let l=[],g={sentences:Array(e.sentences.length)},p=e.sentences.length,f=-1;if(u.cache)for(let A of e.sentences){f++;let S=s;s==="openl"&&(S=s+"-"+c.codename||Do.DEFAULT_CODENAME);let U=null;try{U=await wu(Od({originalText:A.text,from:A.from,to:A.to,service:S}),200)}catch(R){j.warn("query cache DB error, but it's ok",R)}if(U){let R={...A,text:U.translatedText};g.sentences[f]=R,n&&n(null,R,A)}else l.push(A)}else l.push(...e.sentences);let d=l.length;if(p-d>0&&j.debug(`use ${p-d} sentences from cache`),!l.length)return g;let b,C=tn(t.user);try{b=new ra[s].class(c,o,{translationService:s,userToken:t.user?.token,isPro:C}),await b.init()}catch(A){if(n)for(let S of l)n(A,null,S);throw A}let h=await b.multipleTranslate({sentences:l},c,(A,S,U)=>{if(n&&n(A,S,U),!A&&S&&!s.startsWith("mock")&&u.cache){let R=s;s==="openl"&&(R=s+"-"+c.codename||Do.DEFAULT_CODENAME),u.cache&&wu(Id({translatedText:S.text,from:U.from,to:U.to,detectedFrom:S.from,key:Zn(U.text),service:R}),3e3).catch(y=>{j.warn("set cache DB error",y)})}});for(let A of h.sentences){let S=g.sentences.findIndex(U=>!U);if(S===-1)throw new ot("translateFailed","can not match the result");g.sentences[S]=A}return g}m();var Bo=!1,G6=fe();function ng(e,t){let n=[];for(let a of t){let r=e.querySelectorAll(a);for(let u of r)n.push(u)}return n}function V6(e,t){let n=function(u){return u.nodeType===Node.ELEMENT_NODE||u.nodeType===Node.TEXT_NODE?u.nodeType===Node.ELEMENT_NODE&&ag(u,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),r=!0;for(;a.nextNode();){let u=a.currentNode;if(u.nodeType===Node.ELEMENT_NODE){if(oa(u,Nu)){if(r===!0)return!0;continue}if(nu(u.nodeName,t.inlineTags))return!0;if(!T0(u,t))return!1}}return!0}function C0(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(nu(e.nodeName,n)||T0(e,t)){if(oa(e,g4)||nu(e.nodeName,["BR"]))return!1;if(oa(e,Nu))return!0;if(T0(e,t)){let a=globalThis.getComputedStyle(e);if(a.display==="block"||a.display==="flex")return!1}return V6(e,t)}else return oa(e,Nu);return!1}function ag(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&oa(e,m4,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&oa(e,i4))return!1;let{stayOriginalTags:a,excludeTags:r}=t,u=[];return n&&r&&r.length>0?u=r||[]:u=r.filter(o=>!a.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||nu(e.nodeName,u))}function er(e,t,n){let a=e.trim();return a.length>=t||a.split(" ").filter(o=>o.trim()!=="").length>=n||!ug(a)&&a.length>=n}function rg(e,t,n){let a=e.trim();if(a.length<=t)return!0;if(ug(a)){if(a.split(" ").length<=n)return!0}else if(a.length<=n)return!0;return!1}function ug(e){for(let t=0;t127)return!1;return!0}function og(e){if(e&&e.includes("://"))try{return new URL(e),!0}catch{return!1}else return!1}function ig(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function sg(e){return e?/^[-+]?[0-9]*\.?[0-9]+%?$/.test(e):!1}function lg(e){return!!(e&&e.startsWith("#")&&e.indexOf(" ")===-1)}function cg(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function oa(e,t,n=!1){return w0(e,t,"1",n)}function w0(e,t,n,a=!1){return Bo&&!a?e[It]?!!(e[It]&&e[It][t]===n):!1:e.dataset[t]===n}function tr(e){return(e.innerText||e.textContent||"").trim()}function v0(e){let t=e.querySelectorAll("iframe"),n="";for(let a=0;a2e3))break}return n}function Ro(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function at(e,t,n,a=!1,r=!1){e.isContentEditable&&!r||(Bo&&!a?(e.dataset[Mr]||(e.dataset[Mr]="1"),e[It]||(e[It]={}),e[It][t]||(e[It][t]=n)):(e.dataset[Mr]||(e.dataset[Mr]="1"),e.dataset[t]!==n&&(e.dataset[t]=n)))}function Oo(e,t,n=!1){if(Bo&&!n){if(!e[It]||!e[It][t])return;delete e[It][t]}else delete e.dataset[t]}function nr(e,t,n=!1){return Bo&&!n?!e[It]||!e[It][t]?void 0:e[It][t]:e.dataset[t]}function T0(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!nu(e.nodeName,n)}function ar(e){let{config:t}=e,n=ha;return t.translationServices[e.translationService]&&t.translationServices[e.translationService].placeholderDelimiters&&(n=t.translationServices[e.translationService].placeholderDelimiters),n}function Ze(){if(!globalThis||!globalThis.location)return"https://example.com";if(!Je())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let a="";try{a=globalThis.parent.location.href}catch{}return a||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function ia(e,t,n){if(e instanceof ShadowRoot){try{e.appendChild(document.createElement("style")).textContent=t}catch(a){j.warn("injectCSS failed, rootDocument"+a?.message,e)}return}if(e&&e.head&&e.head.appendChild){let a=e.createElement("style");if(n){let r=e.querySelector(`style[data-id="${n}"]`);r&&r.remove(),a.dataset.id=n}a.textContent=t,e.head.appendChild(a)}else if(e){let a=document.createElement("head"),r=document.createElement("style");r.textContent=t,a.appendChild(r),e.appendChild(a)}else j.warn("injectCSS failed, rootDocument does not have head node",e)}function rr(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(G6){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!document.querySelector("meta[name='immersive-translate-ebook-viewer']")||!t.startsWith("blob:http");return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function nu(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function dg(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),a=parseInt(t.substring(2,4),16),r=parseInt(t.substring(4,6),16);return{r:n,g:a,b:r}}function mg(e,t,n,a){if(a.document.caretPositionFromPoint){let r=a.document.caretPositionFromPoint(e,t);if(r){let u=a.document.createRange(),o=r.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||ag(o,n,!0))return null;try{u.setStart(o,r.offset),u.setEnd(o,r.offset)}catch(i){return j.warn("getRangeFromPoint error",i),null}return u}return null}else return a.document.caretRangeFromPoint?a.document.caretRangeFromPoint(e,t):null}function gg(e,t,n){let a=0,r=(u,o,i,s)=>{if(++a>100||s===u)return u;let c=u.shadowRoot;if(!c||typeof c.elementFromPoint!="function")return u;let l=c.elementFromPoint(o,i);return l?r(l,o,i,u):u};return r(e,t,n)}m();m();var Y6=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function En(e,t){if(t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function A0(e,t,n){let{blockSelectors:a,extraBlockSelectors:r,extraInlineSelectors:u}=t;if(En(e,u))return!1;if(En(e,r)||e.nodeName.toLowerCase()==="br")return!0;let s=null;return e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(s=e.parentNode.immersiveTranslateComputedStyle),s&&s.display&&s.display==="inline-flex"?!1:n&&n.display?!!Y6.includes(n.display):En(e,a)}var Mt=En;function ka(e){return!!e.shadowRoot}function sa(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function au(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Io(e){let t=ha;return e&&(t=e),t}function No(e,t){return Xn(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function J6(e){let{rule:t}=e,n=e.config.loadingTheme;return` <${t.targetWrapperTag} class="${J}-loading-${n} notranslate">`}function ru(e,t){let n=e.rule,a=document.createElement(n.targetWrapperTag);a.classList.add("notranslate",$t),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),at(a,c4,t.toString());let r=J6(e);return a.append(_e.sanitize(r,{RETURN_DOM_FRAGMENT:!0})),a}function ur(e,t){return e.querySelector(`[${is}='${t}']`)}function pg(){document.querySelectorAll(`[${is}]`).forEach(t=>{t.remove()})}function fg(){document.querySelectorAll(`.${$t}-error`).forEach(t=>{t.remove()})}function hg(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{rr(n)&&t.push(n)}),t}function bg(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:a,delimiters:r,text:u}=e,o=new RegExp(`${r[0]}(\\d+)${r[1]}`,"gi");if(r.length>2){let s=r[2];o=new RegExp(`<${s}(\\d+)>(.*?)`,"gi")}let i=u.trim();return i=i.replace(o,""),i=i.trim(),i===""||i.length===1&&i.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(u)||i.includes("")||i.includes("< styles>")||cg(i)||og(i)||lg(i)||ig(i)||sg(i)||o.test(i)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(i)?!1:er(u,n,a)}function Tn(e){return e.nodeType===Node.ELEMENT_NODE}function yg(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}function xg(e){try{let t=Math.floor((new Date-new Date(e))/1e3);return t<60?`${t} \u79D2\u524D`:t<3600?`${Math.floor(t/60)} \u5206\u949F\u524D`:t<86400?`${Math.floor(t/3600)} \u5C0F\u65F6\u524D`:`${Math.floor(t/86400)} \u5929\u524D`}catch{return e}}async function Eg(e){let n=Ve().INSTALL_FROM,a=nn(),r=await St("installedAt",""),u=await St("fakeUserId","");return{installFrom:n,version:a,installedAt:r,interfaceLang:e,deviceId:u}}var Q6=1e5;function la(e){let{onParagraph:t,filterRule:n,id:a}=e;n=Z6(n);let{stayOriginalSelectors:r,globalStyles:u,selectors:o,isTransformPreTagNewLine:i,lineBreakMaxTextCount:s,globalAttributes:c,isModifyImage:l,skipEditableCheck:g}=n,p={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},f=!1,d=null;function b(R){let{container:y,onFrame:T,onIgnoreElement:k,id:v}=R,E=document.createTreeWalker(y,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,w=>{let _=P(w);return _==NodeFilter.FILTER_ACCEPT?Ut.mark(w,v,g):_==NodeFilter.FILTER_REJECT,_}),B=y;if(P(B)===NodeFilter.FILTER_REJECT)return;for(Ut.mark(B,v,g);B;){if(o&&o.length>0){let{currentNode:w,isMatchedSelection:_}=C(E,B,o);if(w)B=w;else break;if(!_)continue}if(B.nodeType===Node.ELEMENT_NODE||B.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let w=B;if(w.nodeName==="IFRAME"){T&&T(w),h(),k0(p,!0),B=E.nextNode();continue}w.nodeType===Node.ELEMENT_NODE&&(u&&D0(w,u),c&&M0(w,c));let _=A0(w,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},w.immersiveTranslateComputedStyle||null);if(Mt(w,r)&&!_){A(w);let M=null;for(;!(M=E.nextSibling())&&E.parentNode(););B=M;continue}let O=ka(w);(!Tg(p,w)||_)&&(h(),w.childNodes.length>0&&S(p,w,w.immersiveTranslateComputedStyle||null)),O&&w.shadowRoot?.mode==="open"&&(_?T?.(w.shadowRoot):b({...R,container:w.shadowRoot})),w.nodeType===Node.ELEMENT_NODE&&w.nodeName==="PRE"&&i&&n9(w)}else if(B.nodeType===Node.TEXT_NODE)A(B);else throw new Error("should not be here");B=E.nextNode(),p.commonAncestorContainer&&B&&B.parentNode===p.commonAncestorContainer&&(p._currentStacks=[]),p.commonAncestorContainer&&B&&B.nodeType===Node.ELEMENT_NODE&&p._currentStacks.push(B)}function P(w){if(w.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Tn(w)){if(c){let M=Object.keys(c);if(M.length>0&&Mt(w,M))for(let L of M){let I=c[L];if(w.matches(L)){let $=c[L],z=Object.keys($);for(let Y of z){let q=$[Y];w.getAttribute(Y)!==q&&(q===null?w.removeAttribute(Y):w.setAttribute(Y,q))}break}}}if(!R.force&&Ut.isMarked(w,v)||yg(w,v)||F0(w,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,stayOriginalSelectors:r})||w.nodeName==="IFRAME"&&!rr(w))return NodeFilter.FILTER_REJECT;let _=w.getBoundingClientRect(),{width:O,height:N}=_;if(w.nodeType===Node.ELEMENT_NODE){let M=window.getComputedStyle(w);if(w.immersiveTranslateComputedStyle={display:M.display,whiteSpace:M.whiteSpace,left:_.left+"px",right:_.right+"px",top:_.top+"px",bottom:_.bottom+"px"},L0(w.immersiveTranslateComputedStyle))return k&&k(w),NodeFilter.FILTER_REJECT;let x=A0(w,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},w.immersiveTranslateComputedStyle||null);if(Mt(w,r)&&x)return NodeFilter.FILTER_REJECT}return w.nodeName==="IMG"&&(O>48&&N>48?w.immersiveTranslateComputedStyle={display:"block"}:O>0&&N>0&&l!==!1&&(w.setAttribute("width",O),w.setAttribute("height",N))),!w.childNodes||w.childNodes&&w.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!p.isPreWhitespace&&(O>0&&O<4||N>0&&N<4)&&(w.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(w.nodeType===Node.TEXT_NODE){let _=w.textContent?.trim();if(!_)return p.isPreWhitespace?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let O=w.parentNode;if(O.getBoundingClientRect){let{width:N,height:M}=O.getBoundingClientRect();if(N>0&&N<4||M>0&&M<4)return NodeFilter.FILTER_REJECT}return s>0&&_.length>=s&&S0(w,s),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}b(e),p&&p.commonAncestorContainer&&p.flatNodes.length>0&&h();function C(R,y,T){let k=y.immersiveTranslateComputedStyle||null;if(d){if(!d.contains(y))if(f=!1,y&&y.nodeType===Node.ELEMENT_NODE)if(jo(y,T))f=!0,d=y,h(),S(p,d,k);else return f=!1,y=R.nextNode(),{currentNode:y,isMatchedSelection:f};else return f=!1,y=R.nextNode(),{currentNode:y,isMatchedSelection:f}}else if(y&&y.nodeType===Node.ELEMENT_NODE)if(jo(y,T))f=!0,d=y,h(),S(p,d,k);else return f=!1,y=R.nextNode(),{currentNode:y,isMatchedSelection:f};else return f=!1,y=R.nextNode(),{currentNode:y,isMatchedSelection:f};return{currentNode:y,isMatchedSelection:!0}}function h(){let R=t9(p,a);R&&t&&t(R),k0(p)}function A(R){if(!Tg(p,R)){h(),k0(p);let y=R.parentNode;y&&S(p,y,y.computedStyle)}p.flatNodes.push(R)}function S(R,y,T){R.commonAncestorContainer=y;let k=U(T);R.isPreWhitespace=k}function U(R){return R&&R.whiteSpace&&R.whiteSpace.startsWith("pre")||R&&R.whiteSpace==="break-spaces"||!1}}function Tg(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=ka(t));let a=e9(e),r=!0;return!n&&!a&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?r=!0:e.commonAncestorContainer&&(r=!1,e._currentStacks=[])),r}function Z6(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let a=n!=="iframe";return t?a&&n!=="pre":a}),e}function X6(e,t,n){if(t){for(let a of t.childNodes)if(a.contains(n))return a}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function D0(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Mt(e,n))for(let r of n){let u=t[r];if(e.matches(r)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+u;break}}}}function e9(e){return e&&e._currentStacks?e._currentStacks.some(t=>ka(t)):!1}function t9(e,t){let{flatNodes:n,commonAncestorContainer:a}=e;if(a&&n.length>0){if(!n.map(p=>p.textContent?.trim()||"").join(""))return null;if(n.length===1)return{ctxId:t,stepState:1,commonAncestorContainer:n[0].parentNode,rootNodes:[n[0]],flatNodes:n,isPreWhitespace:e.isPreWhitespace,variables:{}};let u=a9(n,a);u||(u=a);let o=[];for(let p of n){let f=X6(e,u,p);f&&(o.includes(f)||o.push(f))}if(o.length<1)return null;let i=o[0],s=o[o.length-1],c=[],l=i,g=0;for(;l&&(c.push(l),l!==s);){if(g++,g>Q6){j.warn("loop too many times for convert root nodes, break");break}l=l.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:n,commonAncestorContainer:u,variables:{},isPreWhitespace:e.isPreWhitespace}}else return null}function k0(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function L0(e){let t=e.top?parseInt(e.top):0,n=e.left?parseInt(e.left):0,a=e.right?parseInt(e.right):0,r=e.bottom?parseInt(e.bottom):0;return isNaN(t)&&(t=0),isNaN(n)&&(n=0),isNaN(a)&&(a=0),isNaN(r)&&(r=0),e.display==="none"||t<-1e3||n<-1e3||a<-1e3||r<-1e3}var Ut={_marked_key:"immersive_translate_walked",isMarked(e,t){return w0(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||ka(e)))return Oo(e,this._marked_key)},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||ka(e)))return at(e,this._marked_key,t,!1,n)},markWalk(e,t,n){if(!e||e.nodeType!==Node.ELEMENT_NODE||this.isSkipMarkEle(e))return;let a=nr(e,"markWalk")||"";return at(e,"markWalk",a+","+t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||ka(e)):!1}};function n9(e){let n=e.innerHTML.replace(/\n\n/g,"
");e.innerHTML=_e.sanitize(n)}function a9(e,t){if(!e.length)return null;let n=e.map(a=>{let r=new Set;for(;(a=a.parentNode)&&(r.add(a),a!==t););return r});for(let a of n[0])if((a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&n.every(r=>r.has(a)))return a;return null}function S0(e,t){let n=e.textContent||"";if(n.trim().length<=t)return;let u=[". ","? ","! ","\u3002","\uFF1F","\uFF01"].reduce((o,i)=>{let s=n.lastIndexOf(i,t);return s>o?s:o},-1);if(u>1){let o=n[u-1]||"",i=n[u-2]||"",s=n[u+1]||"";o==="."||s==="."||s===")"||i==="."&&o==="S"||i.toUpperCase()==="M"&&(o.toUpperCase()==="R"||o.toUpperCase()==="S")?u=-1:isNaN(Number(o))||(u=-1)}if(u===-1)n.length>t+20&&S0(e,t+20);else{let o=n.slice(u+1);u++,o.startsWith(" ")&&u++;let i=e.splitText(u),s=document.createElement("br");i.parentNode?.insertBefore(s,i),u+10)for(let a of n){let r=t[a],u=Object.keys(r),o=ng(e,[a]);for(let i of o)for(let s of u){let c=r[s];i.getAttribute(s)!==c&&(c===null?i.removeAttribute(s):i.setAttribute(s,c))}}}function wg(e,t,n,a,r,u){let o=Object.keys(t);if(o.length>0)for(let i of o){let s=t[i],c=Object.keys(s),l=e.querySelector(i);if(l)for(let g of c){let p=s[g];if(g==="translate"&&p==="no"){let d=l.innerText||l.textContent||"";if(!d.trim()||r9(l,r,u)||!rg(d,n,a))continue}l.getAttribute(g)!==p&&(p===null?l.removeAttribute(g):l.setAttribute(g,p))}}}function M0(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Mt(e,n))for(let r of n){let u=t[r];if(e.matches(r)){let o=t[r],i=Object.keys(o);for(let s of i){let c=o[s];e.getAttribute(s)!==c&&(c===null?e.removeAttribute(s):e.setAttribute(s,c))}break}}}}function F0(e,t){return Mt(e,t.excludeSelectors||[])?Mt(e,t.selectors||[])?!1:!Mt(e,t.stayOriginalSelectors||[]):!1}function jo(e,t){if(t.length===0)return!1;let n=t.filter(a=>!a.endsWith("*")).map(a=>a+" *");return Mt(e,t.concat(n))}function r9(e,t,n){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,r=>NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let r=a.currentNode;if(r.nodeType===Node.TEXT_NODE&&parent){let u=r.textContent||"";if(u.includes("Copyright"))continue;if(er(u,t,n))return!0}}return!1}m();m();var vg=["*://*/*","*","*://*"],kg="immersive-translate-wildcard-placeholder.com";function P0(e,t){let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(o=>vg.includes(o)))return e;let a=new URL(e);a.hash="",a.search="";let r=a.href,u=a.hostname;if(n&&n.length>0){let o=n.find(i=>{let s=i;if(i===u)return!0;if(vg.includes(i))return!0;if(!i.includes("*")&&i.includes("://")){try{let c=new URL(i);return c.pathname==="/"&&!i.endsWith("/")?c.hostname===u:o9(r,i)}catch{}return!1}else{let c,l=i;if(i.includes("://")){let C=i.split("://");c=C[0],c==="*"&&C.length>1&&(c="*",i="https://"+C[1])}else c="*",i="https://"+i;let g=i.replace(/\*/g,kg),p;try{p=new URL(g)}catch{return j.debug("invalid match pattern",g,"raw match value:",l),!1}let f=p.hostname,d=p.pathname;d==="/"&&(l.replace("://","").includes("/")||(d="/*"));let b=u9(c+":",Ag(f),Ag(d));if(b){let C=new URL(r);return C.port="",b.test(C.href)}else return!1}});if(o)return o}return null}function Ag(e){return e.replaceAll(kg,"*")}function u9(e,t,n){let a="^";return e==="*:"?a+="(http:|https:|file:)":a+=e,a+="//",t&&(e==="file:"||(t==="*"?a+="[^/]+?":(t.match(/^\*\./)&&(a+="[^/]*?",t=t.substring(2)),a+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?a+="(/.*)?":n.includes("*")?(a+=n.replace(/\*/g,".*?"),a+="/?"):a+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):a+="/?",a+="$",new RegExp(a)}function sn(e,t){return P0(e,t)!==null}function o9(e,t){let n=new URL(e),a=new URL(t);return n.hostname===a.hostname&&n.pathname===a.pathname&&n.protocol===a.protocol&&n.port===a.port}async function ln(e){let{url:t,config:n,state:a}=e,r=new URL(t),u="auto",{translationParagraphLanguagePattern:o,translationService:i,translationServices:s,translationTheme:c,translationThemePatterns:l,translationUrlPattern:g,targetLanguage:p,sourceLanguageUrlPattern:f,immediateTranslationPattern:d}=n,b=or(t,o),C=or(t,d),h=i,A=Object.keys(s);for(let K of A){let se=s[K];if(or(t,se)){h=K;break}}let S=c,U=Object.keys(l);for(let K of U){let se=l[K];if(se&&or(t,se)){S=K;break}}let R=or(t,g),y=Sg(t,g);y||(y=sn(t,C4)),y||(y=sn(t,n.blockUrls));let T=Sg(t,n.inputTranslationUrlPattern);T||(T=sn(t,n.inputTranslationBlockUrls));let k=sn(t,n.mutationBlockUrls),v=Object.keys(f),E={};for(let K of v){let se=f[K];if(se&&se.matches)for(let me of se.matches)E[me]=K}let B=Object.keys(E),P=P0(t,B);P&&(u=E[P]??"auto",E[P]&&E[P]!=="auto"&&an(E[P]));let w=p||"zh-CN",_=r.hostname,O=await yn(_),N=r.pathname+r.search+r.hash,M=await yn(N),x=`https://${O}.com/${M}`,L=await Yn(),I=await gd(),$=n.translationStartMode;$==="dynamic"&&C&&($="immediate");let z=h;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(z=n.inputTranslationService);let Y=h;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(Y=n.mouseHoverTranslationService);let q={targetLanguage:w,config:n,translationService:h,inputTranslationService:z,mouseHoverTranslationService:Y,isTranslateUrl:R,sourceLanguage:u,mainFrame:document.body,isTranslateExcludeUrl:y,isMutationTranslationExcludeUrl:k,isInputTranslationExcludeUrl:T,rule:n.generalRule,url:t,encryptedUrl:x,state:a?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:$,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S},a):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:$,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S},localConfig:L},ae=await Nt.get(en,null);ae&&(q.user=ae),q.state.translationArea==="body"&&(q.config.generalRule.excludeTags=q.config.generalRule.excludeTags.filter(K=>!q.config.generalRule.bodyTranslateTags.includes(K)),q.config.generalRule.additionalExcludeSelectors=q.config.generalRule.additionalExcludeSelectors.filter(K=>K!==".btn"));let Q=n.translationServices[q.translationService]||{};Q.immediateTranslationTextCount!==void 0&&i9(Q.immediateTranslationTextCount)&&Q.immediateTranslationTextCount>=0&&(q.state.immediateTranslationTextCount=Q.immediateTranslationTextCount),q.translationService==="deepl"&&(Q&&Q.authKey&&Q.authKey.startsWith("immersive_")||Q&&Q.provider==="pro"&&q.user?.token)&&Q.immediateTranslationTextCountForImmersiveDeepl!==void 0&&Q.immediateTranslationTextCountForImmersiveDeepl>=0&&(q.state.immediateTranslationTextCount=Q.immediateTranslationTextCountForImmersiveDeepl),Q&&Q.translationDebounce&&typeof Q.translationDebounce=="number"&&(q.state.translationDebounce=Q.translationDebounce);let G=I.immediateTranslationTextCount;n.immediateTranslationTextCount!==G&&(q.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let pe=n.rules,he;globalThis.PDFViewerApplication?he=pe.find(K=>K.isPdf):globalThis.immersiveTranslateEbookViewer?he=pe.find(K=>K.isEbook):globalThis.immersiveTranslateEbookBuilder?he=pe.find(K=>K.isEbookBuilder):he=pe.find(K=>or(t,K)),q.state.translationArea==="body"&&(q.rule.paragraphMinTextCount=1,q.rule.paragraphMinWordCount=1),he&&he.isEbookBuilder&&(q.state.translationStartMode="immediate");let re=n.generalRule;if(he&&(q.rule=eo(re,he)),q.rule.selectors.length>0&&(q.rule.paragraphMinTextCount=2,q.rule.paragraphMinWordCount=1),q.state.translationArea==="body"&&q.rule.excludeTags&&(q.rule.excludeTags=q.rule.excludeTags.filter(K=>!q.rule.bodyTranslateTags.includes(K)&&!q.rule.forceTranslateTags.includes(K))),q.rule.mainFrameSelector){let K=document.querySelector(q.rule.mainFrameSelector);K&&(q.mainFrame=K)}return q}function or(e,t){if(!t)return!1;let{matches:n,excludeMatches:a,selectorMatches:r,excludeSelectorMatches:u}=t;return a&&a.length>0&&sn(e,a)?!1:n&&n.length>0&&sn(e,n)?!0:u&&u.length>0&&Ro(u)?!1:!!(r&&r.length>0&&Ro(r))}function Sg(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:a}=t;return!!(n&&n.length>0&&sn(e,n)||a&&a.length>0&&Ro(a))}function i9(e){return typeof e=="number"}m();m();m();function Dg(e,t,n,a){let r=t,u=y4[r]||[],o="";e&&u&&u.length>0&&u.forEach(c=>{let{name:l}=c;if(e&&n&&n[l]){let g=n[l];if(["borderRadius"].includes(l)&&(g+="px"),o+=`--immersive-translate-theme-${r}-${l}: ${g}; -`,t==="marker"&&l==="backgroundColor"&&typeof g=="string"){let{r:p,g:f,b:d}=dg(g);o+=`--immersive-translate-theme-${r}-${l}-rgb: ${p}, ${f}, ${d}; + `);if(l.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(l)}.`)}let g=l[0].translations[0],p=l[0].detectedLanguage;return{text:g.text,from:Om.get(p.language),to:Om.get(g.to)}}m();var Po=new Map;async function c0(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=Zn(e.body)),Po.has(t))return Po.get(t);let n=oe(e);Po.set(t,n);try{return await n}catch(a){throw a}finally{setTimeout(()=>{Po.delete(t)},3e4)}}async function Hm(e){return c0(e)}async function qm(e){if(Je()){let n=To();if(n)try{return await n.ask("throttleRequest",e)}catch(a){throw j.error("can not comunicate with root frame, use strict limiter",a),a}else return c0(e)}else return c0(e)}m();function Wm(e){let t=e.split(".");if(t.length<=1)throw new Error("invlaid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let a=n.replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(globalThis.atob(a).split("").map(function(i){return"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)}).join("")),u=JSON.parse(r),o=new Date(u.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}var va=null,j6=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],d0=new Map(j6),Xr=class extends be{static langMap=d0;isSupportList=!0;maxTextLength=1800;static async clearState(){va=null,await Nr(Mu)}async translate(t){let{text:n,from:a,to:r}=t;return n?await zm(n,a,r):{...t}}async init(){if(!va){va={};let t=await Or(Mu);t&&(va=t)}await $m(va)}async translateList(t){let{from:n,to:a,text:r}=t,u=d0.get(n)||"auto",o=d0.get(a)||a;u==="auto"&&(u="");let i=await $m(va),s=[];for(let p of r)s.push({Text:p});let c=JSON.stringify(s),l=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${u}&to=${o}&api-version=3.0&includeSentenceLength=true`,g=await oe({url:l,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+i.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin"},body:c,method:"POST"});if(g&&g.length>0&&g[0].translations&&g[0].translations.length>0)return{text:g.map(p=>p.translations[0]?.text||""),from:n,to:a};throw new Error("Microsoft translate error "+JSON.stringify(g))}};async function $m(e){if(e&&e.accessToken&&e.accessTokenExpiresAt){let t=Date.now(),a=new Date(e.accessTokenExpiresAt).getTime();if(a-t>30*1e3)return e;if(a-t>3e3)return Km().catch(r=>{j.error(r)}),e}return Km()}async function Km(){let e=await qm({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET"}),t=Wm(e),n=t.accessTokenExpiresAt,r=new Date(n).getTime()-Date.now();return va=t,await Ir(Mu,t,r-1e3),{accessToken:e,accessTokenExpiresAt:t.accessTokenExpiresAt}}m();var Gm=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],m0=new Map(Gm),U6=new Map(Gm.map(([e,t])=>[t,e])),g0=class extends be{static langMap=m0;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";appid="";key="";isSupportList=!1;maxTextGroupLength=20;constructor(t,n,a){if(super(t,n,a),!t||!t.appid||!t.key)throw new Error("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim()}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:a}=this,{appid:r,key:u}=this,{text:o,from:i,to:s}=t,c=new URLSearchParams({from:m0.get(i)||"auto",to:m0.get(s)||s,q:o,salt:n,appid:r,sign:Zn(r+o+n+u)}),l=new URL(a);l.search=c.toString();let g=await oe({url:l.toString()});if(g.error_code)throw new ot("API_SERVER_ERROR",g.error_msg);let{trans_result:p,from:f}=g,d=p.map(({dst:C})=>C);return{from:U6.get(f)||f,to:s,text:d.join(` +`)}}},Vm=g0;m();m();var Aa=class extends be{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,a){super(t,n,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let u=await this.checkLang(a,n);if(!u)return{text:n,from:a,to:r};a=u;let o=this.handleRequest(n,a,r),i=await Qu(o);return{text:this.handleResponseText(i),from:a,to:r}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let u=await this.checkLang(a,n.join(" "));if(!u)return{text:n,from:a,to:r};a=u;let o=this.handleRequest(n,a,r),i=await Qu(o);return{text:this.handleResponseText(i),from:a,to:r}}handleBaseApiServiceConfig(t){let n=t.request.url,a=t.request.headers||{};return a["content-type"]||(a["content-type"]="application/json"),{url:n,retry:t.request.retry||2,method:t.request.method||"POST",headers:a,body:JSON.stringify(t.request.body)}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,a){let r={...this.requestBaseConfig},u=r?.body||"",o=this.apiServiceConfig.keywords||{};r.body=s(u);let i=r.headers||{};return Object.keys(i).forEach(c=>{i[c]=s(i[c])}),r.headers=i,r.url=s(r.url||""),r;function s(c){return c.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",a).replaceAll(/{([a-z:_]+)}/gi,(g,p)=>{let[f,d]=p.split(":"),b=o[f];return d==="random"?z6(b.split(",")):b})}}handleResponseText(t){let n=this.apiServiceConfig.response,a=t,r=n.text.split(".");for(let u of r){if(Array.isArray(a))return a=a.map(o=>o[u]),a;a=a[u]}return a}detectLanguageRemotely(t){return wa.detectLanguageRemotelyByTransmart(t)}};function z6(e){let t=Math.floor(Math.random()*e.length);return e[t]}var p0=class extends Aa{constructor(t,n,a){if(!t?.token)throw new Error("token are required");super({...t,isSupportList:!0,langs:[["zh-CN","zh"],["en","en"],["ja","ja"]],keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,a)}},Ym=p0;m();var H6=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],_o=new Map(H6),f0=class extends be{static langMap=_o;token="ssdj273ksdiwi923bsd9";constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t;if(!_o.get(r))throw new Error(`Unsupported language: ${r}`);if(a==="auto")throw new Error("Unsupported language: auto");let o=n;return{text:(await oe({retry:2,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${_o.get(a)||"auto"}2${_o.get(r)}`})})).target,from:a,to:r}}},Jm=f0;m();var Qm=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],h0=new Map(Qm),q6=new Map(Qm.map(([e,t])=>[t,e]));function W6(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var b0=class extends be{static langMap=h0;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,a){if(super(t,n,a),!t||!t.appId||!t.appSecret)throw new Error("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,u=$6(32),o=Math.round(new Date().getTime()/1e3),i=this.appId+W6(n)+u+o+this.appSecret,s=await yn(i),c={q:n,appKey:this.appId,salt:u.toString(),from:h0.get(a)||"auto",to:h0.get(r)||r,sign:s,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(c.domain=this.domain),this.vocabId&&(c.vocabId=this.vocabId);let l=new URLSearchParams(c),p=await oe({url:"https://openapi.youdao.com/api",method:"POST",body:l.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"}});if(!p.translation)throw new Error(JSON.stringify(p));let f=p.l,[d,b]=f.split("2");return{text:p.translation.join(` +`),from:q6.get(d),to:r}}};function $6(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r[t,e]));var x0=class extends be{static langMap=y0;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,u={q:n,from:y0.get(a)||"auto",to:y0.get(r)||r},o=new URLSearchParams(u),i=await oe({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"}});if(i&&i.translation)return{text:i.translation.join(` +`),from:a,to:r};throw new Error("Youdao translation failed: "+JSON.stringify(i))}},eg=x0;m();var eu=class extends Aa{constructor(t,n,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(r=>[r,r]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||ha,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,a)}};var K6={mock:Qa,mock2:Qa,custom:eu,google:Ca,transmart:wa,deepl:wm,volc:_m,volcAlpha:Qr,bing:Xr,tencent:Wr,tenAlpha:$r,baidu:Vm,caiyun:Ym,cai:Jm,openl:So,youdao:Zm,you:eg,d:Ja,dpro:Ja,deeplx:Zr,niu:vm,azure:Am,openai:Sm,chatgpt:Vr,papago:km,aliyun:Jr},ra={};Object.keys(Bn).forEach(e=>{ra[e]={...Bn[e],class:K6[e]}});function tg(e,t){let n=en;if(ra[e]&&ra[e].class&&ra[e].class.langMap&&ra[e].class.langMap.size>0){let a=ra[e].class.langMap,r=n.filter(u=>a.get(u));return r.includes(t)||r.unshift("placeholder"),r}else return en}async function ka(e,t){if(!e.text)return e;let n=await ua({sentences:[e]},t);if(n.sentences.length>0)return{...e,...n.sentences[0]};throw new ot("translateFailed","translate failed")}async function ng(e,t){for(let n of e)try{return await ka({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n}),n}catch{continue}return null}async function E0(e){let{config:t,translationService:n}=e,a=t.translationGeneralConfig,r=t.translationServices,u=n,o=r[u]||{},i=tn(e.user),s=new ra[u].class(o,a,{translationService:u,userToken:e.user?.token,isPro:i}),c=s.getDefaultRateLimit();c&&(o&&!o.limit&&(o.limit=c.limit),o&&!o.interval&&(o.interval=c.interval)),u==="deepl"&&o&&o.provider==="pro"&&(o.limitForImmersiveDeepl?o.limit=o.limitForImmersiveDeepl:c&&(o.limit=c.limit)),await nm(u,o),await s.init()}async function ua(e,t,n){if(!e.sentences.length)return{...e};let{config:a,translationService:r,state:u}=t,o=a.translationGeneralConfig,i=a.translationServices,s=r,c=i[s]||{};s==="openai"&&(e.sentences=e.sentences.map(A=>({...A,from:"auto"})));let l=[],g={sentences:Array(e.sentences.length)},p=e.sentences.length,f=-1;if(u.cache)for(let A of e.sentences){f++;let S=s;s==="openl"&&(S=s+"-"+c.codename||So.DEFAULT_CODENAME);let U=null;try{U=await Cu(Id({originalText:A.text,from:A.from,to:A.to,service:S}),200)}catch(R){j.warn("query cache DB error, but it's ok",R)}if(U){let R={...A,text:U.translatedText};g.sentences[f]=R,n&&n(null,R,A)}else l.push(A)}else l.push(...e.sentences);let d=l.length;if(p-d>0&&j.debug(`use ${p-d} sentences from cache`),!l.length)return g;let b,C=tn(t.user);try{b=new ra[s].class(c,o,{translationService:s,userToken:t.user?.token,isPro:C}),await b.init()}catch(A){if(n)for(let S of l)n(A,null,S);throw A}let h=await b.multipleTranslate({sentences:l},c,(A,S,U)=>{if(n&&n(A,S,U),!A&&S&&!s.startsWith("mock")&&u.cache){let R=s;s==="openl"&&(R=s+"-"+c.codename||So.DEFAULT_CODENAME),u.cache&&Cu(Nd({translatedText:S.text,from:U.from,to:U.to,detectedFrom:S.from,key:Zn(U.text),service:R}),3e3).catch(y=>{j.warn("set cache DB error",y)})}});for(let A of h.sentences){let S=g.sentences.findIndex(U=>!U);if(S===-1)throw new ot("translateFailed","can not match the result");g.sentences[S]=A}return g}m();var Bo=!1,G6=pe();function ag(e,t){let n=[];for(let a of t){let r=e.querySelectorAll(a);for(let u of r)n.push(u)}return n}function V6(e,t){let n=function(u){return u.nodeType===Node.ELEMENT_NODE||u.nodeType===Node.TEXT_NODE?u.nodeType===Node.ELEMENT_NODE&&rg(u,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),r=!0;for(;a.nextNode();){let u=a.currentNode;if(u.nodeType===Node.ELEMENT_NODE){if(oa(u,Iu)){if(r===!0)return!0;continue}if(tu(u.nodeName,t.inlineTags))return!0;if(!T0(u,t))return!1}}return!0}function C0(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(tu(e.nodeName,n)||T0(e,t)){if(oa(e,g4)||tu(e.nodeName,["BR"]))return!1;if(oa(e,Iu))return!0;if(T0(e,t)){let a=globalThis.getComputedStyle(e);if(a.display==="block"||a.display==="flex")return!1}return V6(e,t)}else return oa(e,Iu);return!1}function rg(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&oa(e,m4,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&oa(e,i4))return!1;let{stayOriginalTags:a,excludeTags:r}=t,u=[];return n&&r&&r.length>0?u=r||[]:u=r.filter(o=>!a.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||tu(e.nodeName,u))}function er(e,t,n){let a=e.trim();return a.length>=t||a.split(" ").filter(o=>o.trim()!=="").length>=n||!og(a)&&a.length>=n}function ug(e,t,n){let a=e.trim();if(a.length<=t)return!0;if(og(a)){if(a.split(" ").length<=n)return!0}else if(a.length<=n)return!0;return!1}function og(e){for(let t=0;t127)return!1;return!0}function ig(e){if(e&&e.includes("://"))try{return new URL(e),!0}catch{return!1}else return!1}function sg(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function lg(e){return e?/^[-+]?[0-9]*\.?[0-9]+%?$/.test(e):!1}function cg(e){return!!(e&&e.startsWith("#")&&e.indexOf(" ")===-1)}function dg(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function oa(e,t,n=!1){return w0(e,t,"1",n)}function w0(e,t,n,a=!1){return Bo&&!a?e[It]?!!(e[It]&&e[It][t]===n):!1:e.dataset[t]===n}function tr(e){return(e.innerText||e.textContent||"").trim()}function v0(e){let t=e.querySelectorAll("iframe"),n="";for(let a=0;a2e3))break}return n}function Ro(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function at(e,t,n,a=!1,r=!1){e.isContentEditable&&!r||(Bo&&!a?(e.dataset[Mr]||(e.dataset[Mr]="1"),e[It]||(e[It]={}),e[It][t]||(e[It][t]=n)):(e.dataset[Mr]||(e.dataset[Mr]="1"),e.dataset[t]!==n&&(e.dataset[t]=n)))}function Oo(e,t,n=!1){if(Bo&&!n){if(!e[It]||!e[It][t])return;delete e[It][t]}else delete e.dataset[t]}function nr(e,t,n=!1){return Bo&&!n?!e[It]||!e[It][t]?void 0:e[It][t]:e.dataset[t]}function T0(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!tu(e.nodeName,n)}function ar(e){let{config:t}=e,n=ha;return t.translationServices[e.translationService]&&t.translationServices[e.translationService].placeholderDelimiters&&(n=t.translationServices[e.translationService].placeholderDelimiters),n}function Ze(){if(!globalThis||!globalThis.location)return"https://example.com";if(!Je())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let a="";try{a=globalThis.parent.location.href}catch{}return a||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function ia(e,t,n){if(e instanceof ShadowRoot){try{e.appendChild(document.createElement("style")).textContent=t}catch(a){j.warn("injectCSS failed, rootDocument"+a?.message,e)}return}if(e&&e.head&&e.head.appendChild){let a=e.createElement("style");if(n){let r=e.querySelector(`style[data-id="${n}"]`);r&&r.remove(),a.dataset.id=n}a.textContent=t,e.head.appendChild(a)}else if(e){let a=document.createElement("head"),r=document.createElement("style");r.textContent=t,a.appendChild(r),e.appendChild(a)}else j.warn("injectCSS failed, rootDocument does not have head node",e)}function rr(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(G6){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!document.querySelector("meta[name='immersive-translate-ebook-viewer']")||!t.startsWith("blob:http");return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function tu(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function mg(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),a=parseInt(t.substring(2,4),16),r=parseInt(t.substring(4,6),16);return{r:n,g:a,b:r}}function gg(e,t,n,a){if(a.document.caretPositionFromPoint){let r=a.document.caretPositionFromPoint(e,t);if(r){let u=a.document.createRange(),o=r.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||rg(o,n,!0))return null;try{u.setStart(o,r.offset),u.setEnd(o,r.offset)}catch(i){return j.warn("getRangeFromPoint error",i),null}return u}return null}else return a.document.caretRangeFromPoint?a.document.caretRangeFromPoint(e,t):null}function pg(e,t,n){let a=0,r=(u,o,i,s)=>{if(++a>100||s===u)return u;let c=u.shadowRoot;if(!c||typeof c.elementFromPoint!="function")return u;let l=c.elementFromPoint(o,i);return l?r(l,o,i,u):u};return r(e,t,n)}m();m();var Y6=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function En(e,t){if(t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function A0(e,t,n){let{blockSelectors:a,extraBlockSelectors:r,extraInlineSelectors:u}=t;if(En(e,u))return!1;if(En(e,r)||e.nodeName.toLowerCase()==="br")return!0;let s=null;return e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(s=e.parentNode.immersiveTranslateComputedStyle),s&&s.display&&s.display==="inline-flex"?!1:n&&n.display?!!Y6.includes(n.display):En(e,a)}var Mt=En;function Sa(e){return!!e.shadowRoot}function sa(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function nu(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Io(e){let t=ha;return e&&(t=e),t}function No(e,t){return Xn(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function J6(e){let{rule:t}=e,n=e.config.loadingTheme;return` <${t.targetWrapperTag} class="${J}-loading-${n} notranslate">`}function au(e,t){let n=e.rule,a=document.createElement(n.targetWrapperTag);a.classList.add("notranslate",Kt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),at(a,c4,t.toString());let r=J6(e);return a.append(_e.sanitize(r,{RETURN_DOM_FRAGMENT:!0})),a}function ur(e,t){return e.querySelector(`[${is}='${t}']`)}function fg(){document.querySelectorAll(`[${is}]`).forEach(t=>{t.remove()})}function hg(){document.querySelectorAll(`.${Kt}-error`).forEach(t=>{t.remove()})}function bg(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{rr(n)&&t.push(n)}),t}function yg(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:a,delimiters:r,text:u}=e,o=new RegExp(`${r[0]}(\\d+)${r[1]}`,"gi");if(r.length>2){let s=r[2];o=new RegExp(`<${s}(\\d+)>(.*?)`,"gi")}let i=u.trim();return i=i.replace(o,""),i=i.trim(),i===""||i.length===1&&i.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(u)||i.includes("")||i.includes("< styles>")||dg(i)||ig(i)||cg(i)||sg(i)||lg(i)||o.test(i)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(i)?!1:er(u,n,a)}function Tn(e){return e.nodeType===Node.ELEMENT_NODE}function xg(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}function Eg(e){try{let t=Math.floor((new Date-new Date(e))/1e3);return t<60?`${t} \u79D2\u524D`:t<3600?`${Math.floor(t/60)} \u5206\u949F\u524D`:t<86400?`${Math.floor(t/3600)} \u5C0F\u65F6\u524D`:`${Math.floor(t/86400)} \u5929\u524D`}catch{return e}}async function Tg(e){let n=Ve().INSTALL_FROM,a=nn(),r=await St("installedAt",""),u=await St("fakeUserId","");return{installFrom:n,version:a,installedAt:r,interfaceLang:e,deviceId:u}}var Q6=1e5;function la(e){let{onParagraph:t,filterRule:n,id:a}=e;n=Z6(n);let{stayOriginalSelectors:r,globalStyles:u,selectors:o,isTransformPreTagNewLine:i,lineBreakMaxTextCount:s,globalAttributes:c,isModifyImage:l,skipEditableCheck:g}=n,p={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},f=!1,d=null;function b(R){let{container:y,onFrame:T,onIgnoreElement:k,id:v}=R,E=document.createTreeWalker(y,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,w=>{let _=P(w);return _==NodeFilter.FILTER_ACCEPT?zt.mark(w,v,g):_==NodeFilter.FILTER_REJECT,_}),B=y;if(P(B)===NodeFilter.FILTER_REJECT)return;for(zt.mark(B,v,g);B;){if(o&&o.length>0){let{currentNode:w,isMatchedSelection:_}=C(E,B,o);if(w)B=w;else break;if(!_)continue}if(B.nodeType===Node.ELEMENT_NODE||B.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let w=B;if(w.nodeName==="IFRAME"){T&&T(w),h(),k0(p,!0),B=E.nextNode();continue}w.nodeType===Node.ELEMENT_NODE&&(u&&D0(w,u),c&&M0(w,c));let _=A0(w,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},w.immersiveTranslateComputedStyle||null);if(Mt(w,r)&&!_){A(w);let M=null;for(;!(M=E.nextSibling())&&E.parentNode(););B=M;continue}let O=Sa(w);(!Cg(p,w)||_)&&(h(),w.childNodes.length>0&&S(p,w,w.immersiveTranslateComputedStyle||null)),O&&w.shadowRoot?.mode==="open"&&(_?T?.(w.shadowRoot):b({...R,container:w.shadowRoot})),w.nodeType===Node.ELEMENT_NODE&&w.nodeName==="PRE"&&i&&n9(w)}else if(B.nodeType===Node.TEXT_NODE)A(B);else throw new Error("should not be here");B=E.nextNode(),p.commonAncestorContainer&&B&&B.parentNode===p.commonAncestorContainer&&(p._currentStacks=[]),p.commonAncestorContainer&&B&&B.nodeType===Node.ELEMENT_NODE&&p._currentStacks.push(B)}function P(w){if(w.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Tn(w)){if(c){let M=Object.keys(c);if(M.length>0&&Mt(w,M))for(let L of M){let I=c[L];if(w.matches(L)){let $=c[L],z=Object.keys($);for(let Y of z){let q=$[Y];w.getAttribute(Y)!==q&&(q===null?w.removeAttribute(Y):w.setAttribute(Y,q))}break}}}if(!R.force&&zt.isMarked(w,v)||xg(w,v)||F0(w,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,stayOriginalSelectors:r})||w.nodeName==="IFRAME"&&!rr(w))return NodeFilter.FILTER_REJECT;let _=w.getBoundingClientRect(),{width:O,height:N}=_;if(w.nodeType===Node.ELEMENT_NODE){let M=window.getComputedStyle(w);if(w.immersiveTranslateComputedStyle={display:M.display,whiteSpace:M.whiteSpace,left:_.left+"px",right:_.right+"px",top:_.top+"px",bottom:_.bottom+"px"},L0(w.immersiveTranslateComputedStyle))return k&&k(w),NodeFilter.FILTER_REJECT;let x=A0(w,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},w.immersiveTranslateComputedStyle||null);if(Mt(w,r)&&x)return NodeFilter.FILTER_REJECT}return w.nodeName==="IMG"&&(O>48&&N>48?w.immersiveTranslateComputedStyle={display:"block"}:O>0&&N>0&&l!==!1&&(w.setAttribute("width",O),w.setAttribute("height",N))),!w.childNodes||w.childNodes&&w.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!p.isPreWhitespace&&(O>0&&O<4||N>0&&N<4)&&(w.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(w.nodeType===Node.TEXT_NODE){let _=w.textContent?.trim();if(!_)return p.isPreWhitespace?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let O=w.parentNode;if(O.getBoundingClientRect){let{width:N,height:M}=O.getBoundingClientRect();if(N>0&&N<4||M>0&&M<4)return NodeFilter.FILTER_REJECT}return s>0&&_.length>=s&&S0(w,s),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}b(e),p&&p.commonAncestorContainer&&p.flatNodes.length>0&&h();function C(R,y,T){let k=y.immersiveTranslateComputedStyle||null;if(d){if(!d.contains(y))if(f=!1,y&&y.nodeType===Node.ELEMENT_NODE)if(jo(y,T))f=!0,d=y,h(),S(p,d,k);else return f=!1,y=R.nextNode(),{currentNode:y,isMatchedSelection:f};else return f=!1,y=R.nextNode(),{currentNode:y,isMatchedSelection:f}}else if(y&&y.nodeType===Node.ELEMENT_NODE)if(jo(y,T))f=!0,d=y,h(),S(p,d,k);else return f=!1,y=R.nextNode(),{currentNode:y,isMatchedSelection:f};else return f=!1,y=R.nextNode(),{currentNode:y,isMatchedSelection:f};return{currentNode:y,isMatchedSelection:!0}}function h(){let R=t9(p,a);R&&t&&t(R),k0(p)}function A(R){if(!Cg(p,R)){h(),k0(p);let y=R.parentNode;y&&S(p,y,y.computedStyle)}p.flatNodes.push(R)}function S(R,y,T){R.commonAncestorContainer=y;let k=U(T);R.isPreWhitespace=k}function U(R){return R&&R.whiteSpace&&R.whiteSpace.startsWith("pre")||R&&R.whiteSpace==="break-spaces"||!1}}function Cg(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Sa(t));let a=e9(e),r=!0;return!n&&!a&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?r=!0:e.commonAncestorContainer&&(r=!1,e._currentStacks=[])),r}function Z6(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let a=n!=="iframe";return t?a&&n!=="pre":a}),e}function X6(e,t,n){if(t){for(let a of t.childNodes)if(a.contains(n))return a}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function D0(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Mt(e,n))for(let r of n){let u=t[r];if(e.matches(r)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+u;break}}}}function e9(e){return e&&e._currentStacks?e._currentStacks.some(t=>Sa(t)):!1}function t9(e,t){let{flatNodes:n,commonAncestorContainer:a}=e;if(a&&n.length>0){if(!n.map(p=>p.textContent?.trim()||"").join(""))return null;if(n.length===1)return{ctxId:t,stepState:1,commonAncestorContainer:n[0].parentNode,rootNodes:[n[0]],flatNodes:n,isPreWhitespace:e.isPreWhitespace,variables:{}};let u=a9(n,a);u||(u=a);let o=[];for(let p of n){let f=X6(e,u,p);f&&(o.includes(f)||o.push(f))}if(o.length<1)return null;let i=o[0],s=o[o.length-1],c=[],l=i,g=0;for(;l&&(c.push(l),l!==s);){if(g++,g>Q6){j.warn("loop too many times for convert root nodes, break");break}l=l.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:n,commonAncestorContainer:u,variables:{},isPreWhitespace:e.isPreWhitespace}}else return null}function k0(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function L0(e){let t=e.top?parseInt(e.top):0,n=e.left?parseInt(e.left):0,a=e.right?parseInt(e.right):0,r=e.bottom?parseInt(e.bottom):0;return isNaN(t)&&(t=0),isNaN(n)&&(n=0),isNaN(a)&&(a=0),isNaN(r)&&(r=0),e.display==="none"||t<-1e3||n<-1e3||a<-1e3||r<-1e3}var zt={_marked_key:"immersive_translate_walked",isMarked(e,t){return w0(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Sa(e)))return Oo(e,this._marked_key)},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Sa(e)))return at(e,this._marked_key,t,!1,n)},markWalk(e,t,n){if(!e||e.nodeType!==Node.ELEMENT_NODE||this.isSkipMarkEle(e))return;let a=nr(e,"markWalk")||"";return at(e,"markWalk",a+","+t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Sa(e)):!1}};function n9(e){let n=e.innerHTML.replace(/\n\n/g,"
");e.innerHTML=_e.sanitize(n)}function a9(e,t){if(!e.length)return null;let n=e.map(a=>{let r=new Set;for(;(a=a.parentNode)&&(r.add(a),a!==t););return r});for(let a of n[0])if((a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&n.every(r=>r.has(a)))return a;return null}function S0(e,t){let n=e.textContent||"";if(n.trim().length<=t)return;let u=[". ","? ","! ","\u3002","\uFF1F","\uFF01"].reduce((o,i)=>{let s=n.lastIndexOf(i,t);return s>o?s:o},-1);if(u>1){let o=n[u-1]||"",i=n[u-2]||"",s=n[u+1]||"";o==="."||s==="."||s===")"||i==="."&&o==="S"||i.toUpperCase()==="M"&&(o.toUpperCase()==="R"||o.toUpperCase()==="S")?u=-1:isNaN(Number(o))||(u=-1)}if(u===-1)n.length>t+20&&S0(e,t+20);else{let o=n.slice(u+1);u++,o.startsWith(" ")&&u++;let i=e.splitText(u),s=document.createElement("br");i.parentNode?.insertBefore(s,i),u+10)for(let a of n){let r=t[a],u=Object.keys(r),o=ag(e,[a]);for(let i of o)for(let s of u){let c=r[s];i.getAttribute(s)!==c&&(c===null?i.removeAttribute(s):i.setAttribute(s,c))}}}function vg(e,t,n,a,r,u){let o=Object.keys(t);if(o.length>0)for(let i of o){let s=t[i],c=Object.keys(s),l=e.querySelector(i);if(l)for(let g of c){let p=s[g];if(g==="translate"&&p==="no"){let d=l.innerText||l.textContent||"";if(!d.trim()||r9(l,r,u)||!ug(d,n,a))continue}l.getAttribute(g)!==p&&(p===null?l.removeAttribute(g):l.setAttribute(g,p))}}}function M0(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Mt(e,n))for(let r of n){let u=t[r];if(e.matches(r)){let o=t[r],i=Object.keys(o);for(let s of i){let c=o[s];e.getAttribute(s)!==c&&(c===null?e.removeAttribute(s):e.setAttribute(s,c))}break}}}}function F0(e,t){return Mt(e,t.excludeSelectors||[])?Mt(e,t.selectors||[])?!1:!Mt(e,t.stayOriginalSelectors||[]):!1}function jo(e,t){if(t.length===0)return!1;let n=t.filter(a=>!a.endsWith("*")).map(a=>a+" *");return Mt(e,t.concat(n))}function r9(e,t,n){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,r=>NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let r=a.currentNode;if(r.nodeType===Node.TEXT_NODE&&parent){let u=r.textContent||"";if(u.includes("Copyright"))continue;if(er(u,t,n))return!0}}return!1}m();m();var Ag=["*://*/*","*","*://*"],Sg="immersive-translate-wildcard-placeholder.com";function P0(e,t){let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(o=>Ag.includes(o)))return e;let a=new URL(e);a.hash="",a.search="";let r=a.href,u=a.hostname;if(n&&n.length>0){let o=n.find(i=>{let s=i;if(i===u)return!0;if(Ag.includes(i))return!0;if(!i.includes("*")&&i.includes("://")){try{let c=new URL(i);return c.pathname==="/"&&!i.endsWith("/")?c.hostname===u:o9(r,i)}catch{}return!1}else{let c,l=i;if(i.includes("://")){let C=i.split("://");c=C[0],c==="*"&&C.length>1&&(c="*",i="https://"+C[1])}else c="*",i="https://"+i;let g=i.replace(/\*/g,Sg),p;try{p=new URL(g)}catch{return j.debug("invalid match pattern",g,"raw match value:",l),!1}let f=p.hostname,d=p.pathname;d==="/"&&(l.replace("://","").includes("/")||(d="/*"));let b=u9(c+":",kg(f),kg(d));if(b){let C=new URL(r);return C.port="",b.test(C.href)}else return!1}});if(o)return o}return null}function kg(e){return e.replaceAll(Sg,"*")}function u9(e,t,n){let a="^";return e==="*:"?a+="(http:|https:|file:)":a+=e,a+="//",t&&(e==="file:"||(t==="*"?a+="[^/]+?":(t.match(/^\*\./)&&(a+="[^/]*?",t=t.substring(2)),a+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?a+="(/.*)?":n.includes("*")?(a+=n.replace(/\*/g,".*?"),a+="/?"):a+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):a+="/?",a+="$",new RegExp(a)}function sn(e,t){return P0(e,t)!==null}function o9(e,t){let n=new URL(e),a=new URL(t);return n.hostname===a.hostname&&n.pathname===a.pathname&&n.protocol===a.protocol&&n.port===a.port}async function ln(e){let{url:t,config:n,state:a}=e,r=new URL(t),u="auto",{translationParagraphLanguagePattern:o,translationService:i,translationServices:s,translationTheme:c,translationThemePatterns:l,translationUrlPattern:g,targetLanguage:p,sourceLanguageUrlPattern:f,immediateTranslationPattern:d}=n,b=or(t,o),C=or(t,d),h=i,A=Object.keys(s);for(let K of A){let se=s[K];if(or(t,se)){h=K;break}}let S=c,U=Object.keys(l);for(let K of U){let se=l[K];if(se&&or(t,se)){S=K;break}}let R=or(t,g),y=Dg(t,g);y||(y=sn(t,C4)),y||(y=sn(t,n.blockUrls));let T=Dg(t,n.inputTranslationUrlPattern);T||(T=sn(t,n.inputTranslationBlockUrls));let k=sn(t,n.mutationBlockUrls),v=Object.keys(f),E={};for(let K of v){let se=f[K];if(se&&se.matches)for(let me of se.matches)E[me]=K}let B=Object.keys(E),P=P0(t,B);P&&(u=E[P]??"auto",E[P]&&E[P]!=="auto"&&an(E[P]));let w=p||"zh-CN",_=r.hostname,O=await yn(_),N=r.pathname+r.search+r.hash,M=await yn(N),x=`https://${O}.com/${M}`,L=await Yn(),I=await pd(),$=n.translationStartMode;$==="dynamic"&&C&&($="immediate");let z=h;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(z=n.inputTranslationService);let Y=h;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(Y=n.mouseHoverTranslationService);let q={targetLanguage:w,config:n,translationService:h,inputTranslationService:z,mouseHoverTranslationService:Y,isTranslateUrl:R,sourceLanguage:u,mainFrame:document.body,isTranslateExcludeUrl:y,isMutationTranslationExcludeUrl:k,isInputTranslationExcludeUrl:T,rule:n.generalRule,url:t,encryptedUrl:x,state:a?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:$,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S},a):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:$,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S},localConfig:L},ae=await jt.get(Nt,null);ae&&(q.user=ae),q.state.translationArea==="body"&&(q.config.generalRule.excludeTags=q.config.generalRule.excludeTags.filter(K=>!q.config.generalRule.bodyTranslateTags.includes(K)),q.config.generalRule.additionalExcludeSelectors=q.config.generalRule.additionalExcludeSelectors.filter(K=>K!==".btn"));let Q=n.translationServices[q.translationService]||{};Q.immediateTranslationTextCount!==void 0&&i9(Q.immediateTranslationTextCount)&&Q.immediateTranslationTextCount>=0&&(q.state.immediateTranslationTextCount=Q.immediateTranslationTextCount),q.translationService==="deepl"&&(Q&&Q.authKey&&Q.authKey.startsWith("immersive_")||Q&&Q.provider==="pro"&&q.user?.token)&&Q.immediateTranslationTextCountForImmersiveDeepl!==void 0&&Q.immediateTranslationTextCountForImmersiveDeepl>=0&&(q.state.immediateTranslationTextCount=Q.immediateTranslationTextCountForImmersiveDeepl),Q&&Q.translationDebounce&&typeof Q.translationDebounce=="number"&&(q.state.translationDebounce=Q.translationDebounce);let G=I.immediateTranslationTextCount;n.immediateTranslationTextCount!==G&&(q.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let fe=n.rules,he;globalThis.PDFViewerApplication?he=fe.find(K=>K.isPdf):globalThis.immersiveTranslateEbookViewer?he=fe.find(K=>K.isEbook):globalThis.immersiveTranslateEbookBuilder?he=fe.find(K=>K.isEbookBuilder):he=fe.find(K=>or(t,K)),q.state.translationArea==="body"&&(q.rule.paragraphMinTextCount=1,q.rule.paragraphMinWordCount=1),he&&he.isEbookBuilder&&(q.state.translationStartMode="immediate");let re=n.generalRule;if(he&&(q.rule=Xu(re,he)),q.rule.selectors.length>0&&(q.rule.paragraphMinTextCount=2,q.rule.paragraphMinWordCount=1),q.state.translationArea==="body"&&q.rule.excludeTags&&(q.rule.excludeTags=q.rule.excludeTags.filter(K=>!q.rule.bodyTranslateTags.includes(K)&&!q.rule.forceTranslateTags.includes(K))),q.rule.mainFrameSelector){let K=document.querySelector(q.rule.mainFrameSelector);K&&(q.mainFrame=K)}return q}function or(e,t){if(!t)return!1;let{matches:n,excludeMatches:a,selectorMatches:r,excludeSelectorMatches:u}=t;return a&&a.length>0&&sn(e,a)?!1:n&&n.length>0&&sn(e,n)?!0:u&&u.length>0&&Ro(u)?!1:!!(r&&r.length>0&&Ro(r))}function Dg(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:a}=t;return!!(n&&n.length>0&&sn(e,n)||a&&a.length>0&&Ro(a))}function i9(e){return typeof e=="number"}m();m();m();function Lg(e,t,n,a){let r=t,u=y4[r]||[],o="";e&&u&&u.length>0&&u.forEach(c=>{let{name:l}=c;if(e&&n&&n[l]){let g=n[l];if(["borderRadius"].includes(l)&&(g+="px"),o+=`--immersive-translate-theme-${r}-${l}: ${g}; +`,t==="marker"&&l==="backgroundColor"&&typeof g=="string"){let{r:p,g:f,b:d}=mg(g);o+=`--immersive-translate-theme-${r}-${l}-rgb: ${p}, ${f}, ${d}; `}}});let i="";if(n&&n.textColor){let c=n.textColor;i+=` .immersive-translate-target-translation-theme-${r}-inner{color: ${c};} `}if(n&&n.zoom){let c=n.zoom;i+=` .immersive-translate-target-translation-theme-${r}-inner{font-size: max(13px, ${c}%);} `}let s="";o&&(s=`:root { ${o}} -`),i&&(s+=i),s?ia(e,s,"immersive-translate-user-custom-style"):a&&ia(e,"","immersive-translate-user-custom-style")}function ir(e,t){let a=Ve().IMMERSIVE_TRANSLATE_INJECTED_CSS;ia(e,a,"immersive-translate-default-injected-css");let r=t.config.translationThemePatterns||{},u=t.state.translationTheme,o=r[u]||{};Dg(e,u,o);let i="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?i+=t.rule.injectedCss.join(` +`),i&&(s+=i),s?ia(e,s,"immersive-translate-user-custom-style"):a&&ia(e,"","immersive-translate-user-custom-style")}function ir(e,t){let a=Ve().IMMERSIVE_TRANSLATE_INJECTED_CSS;ia(e,a,"immersive-translate-default-injected-css");let r=t.config.translationThemePatterns||{},u=t.state.translationTheme,o=r[u]||{};Lg(e,u,o);let i="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?i+=t.rule.injectedCss.join(` `):t.rule.injectedCss&&(i+=t.rule.injectedCss),t.rule.additionalInjectedCss&&Array.isArray(t.rule.additionalInjectedCss)&&t.rule.additionalInjectedCss.length>0?i+=` `+t.rule.additionalInjectedCss.join(` `):t.rule.additionalInjectedCss&&(i+=` -`+t.rule.additionalInjectedCss)),i&&ia(e,i,"immersive-translate-dynamic-injected-css")}m();async function Lg(){let e="auto",t=[ba(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await Qe({text:tr(document.body),pageLangs:t})),e}m();m();function Mg(e,t){return[e,!e||e.endsWith("/")?"":"/",t,".json"].join("")}function _0(e,t){let n=e;return t&&Object.keys(t).forEach(a=>{let r=t[a];if(r===void 0)return;let u=s9(a);if(typeof r=="object"||u){let o=r;u&&typeof o=="string"&&(o={tag:"a",href:o});let i=`<${a}>`,s=n.indexOf(i);if(s!==-1){let c=o.tag||"a",l=n.indexOf(``);if(l!==-1){let g=n.substring(s+i.length,l),p=Object.keys(o).filter(f=>f!=="tag").map(f=>`${f}="${o[f]}"`).join(" ");n=n.replace(`${i}${g}`,`<${c} ${p}>${g}`)}}}else if(r){let o=new RegExp("{"+a+"}","gm");n=n.replace(o,r.toString())}}),n}function uu(e,t,n){let a=e[t];if(!a)return n;let r=n.split("."),u="";do{u+=r.shift();let o=a[u];o!==void 0&&(typeof o=="object"||!r.length)?(a=o,u=""):r.length?u+=".":a=n}while(r.length);return a}function In(e,t,n,a,r){if(!e.hasOwnProperty(n))return t;let u=uu(e,n,t);return u===t&&n!==a&&(u=uu(e,a,t)),_0(u,r)}function s9(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}m();m();function B0(e,t,n=[],a){let r=["notranslate"];return a&&r.push(b4),e&&(r.push(`${J}-target-translation-theme-${e}`),t?r.push(`${ls}-theme-${e}`):r.push(`${ss}-theme-${e}`)),n.length>0&&r.push(...n),t?r.push(ls):r.push(ss),r}function R0(e){let t=["notranslate",f4];return e&&t.push(`${J}-target-translation-theme-${e}-inner`),t}function Fg(e,t,n){let{rule:a,state:r}=n,{translationTheme:u}=r,{variables:o,isVertical:i}=e;o=o||[];let{text:s}=t,{wrapperPrefix:c,wrapperSuffix:l}=a,g=ar(n),p="afterend",f=g[0],d=g[1],b=`${f}(\\d+)${d}`,C=new RegExp(b,"g"),h=_e.sanitize(s);o.length>0&&(h=h.replace(C,R=>{let y=h.indexOf(R),T=h[y-1]===" ",k=h[y+R.length]===" ",v=R.slice(g[0].length,-g[1].length),E=Number(v);if(isNaN(E))return R;let B=o[Number(E)];if(B&&B.type==="element"){let P=B.value.outerHTML;return T||(P=" "+P),k||(P=P+" "),P}else j.error("variable type not supported",B,R);return R}));let A=B0(u,e.inline,a.translationClasses||[],e.preWhitespace);i&&A.push(h4);let S=R0(u),U="";return a.translationBlockStyle&&(U=`style="${a.translationBlockStyle}"`),h=`<${n.rule.targetWrapperTag} ${U} class="${A.join(" ")}" ${An}="1"><${a.targetWrapperTag} class="${S.join(" ")}" ${An}="1">${h}`,e.inline||(c==="smart"?h=`
${h}`:h=`${c}${h}`),e.inline&&(c!=="smart"?h=`${c}${h}`:h=`<${a.targetWrapperTag} class="notranslate" ${An}="1"> ${h}`),l==="smart"?h=`${h}`:h=`${h}${l}`,{html:h,position:p}}function Uo(e,t){let n=null,{stayOriginalSelectors:a,delimiters:r,isPreWhitespace:u}=t,o=[],i={};for(let s=0;s2&&(C=`<${r[2]}${b}>`),i[b]=c,o.push({text:C,type:"variable"})}else o.push({text:c.textContent||"",type:"text"});else{let d=c.textContent||"";g&&(d=sa(O0(c))),o.push({text:d,type:"text"})}else if(c.nodeType===Node.ELEMENT_NODE)if(c&&Mt(c,a)){let b=Object.keys(i).length,C=`${r[0]}${b}${r[1]}`;r.length>2&&(C=`<${r[2]}${b}>`),i[b]=c;let h=I0(o).endsWith(" ")?" ":"",A=sa(c.innerText||c.textContent),S=sa(c.nextSibling).startsWith(" ")?" ":"",U=au(h+A+S),R=U[0]+C+U[1];if(h===" ")R=R.trimStart();else if(!R.startsWith(" ")){let y=au(c.previousSibling)[1];y===""&&(y=" "),R=y+R}o.push({text:R,type:"variable"})}else{let d=I0(o).endsWith(" ")?" ":"",b=sa(c.innerText||c.textContent);g&&(b=sa(O0(c)));let C=sa(c.nextSibling).startsWith(" ")?" ":"",h=au(d+b+C),A=h[0]+(c.innerText?.trim()||c.textContent?.trim()||"")+h[1];if(d===" ")A=A.trimStart();else{let S=au(c.previousSibling)[1];S===""&&(c.nodeName==="A"||c.nodeName==="CODE")&&(S=" "),A=S+A}o.push({text:A,type:"text"})}else{let d=I0(o).endsWith(" ")?" ":"",b="";c.textContent&&(b=sa(O0(c))),d===" "&&(b=b.trimStart()),o.push({text:b,type:"text"})}}if(o&&o.length>0){let s="";for(let c=0;c0&&(g=o[c-1].text),c2){let l=c[2];return l9({delimiterTag:l,targetText:e.targetText,inline:r,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:a}).html}else{let l=Fg(s,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return l.html}}function O0(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function l9(e){let{delimiterTag:t,inline:n,translationClasses:a,targetWrapperTag:r,wrapperPrefix:u,variables:o,preWhitespace:i,wrapperSuffix:s,translationTheme:c,translationBlockStyle:l}=e;o=o||[];let g=e.targetText;g=_e.sanitize(g);let p=g,f=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),d=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(f,A=>{let S=p.indexOf(A),U=p[S-1]===" ",R=p[S+A.length]===" ",y=A.match(d);if(!y)return A;let T=y[1],k=Number(T);if(isNaN(k))return A;let v=o[Number(k)];if(v&&v.type==="element"){let E=v.value.outerHTML;return U||(E=" "+E),R||(E=E+" "),E}else if(v&&v.type==="text"){let E=v.value;return U||(E=" "+E),R||(E=E+" "),E}else j.error("variable type not supported",v,A);return A}));let b=B0(c,n,a||[],i),C=R0(c),h="";return l&&(h=`style="${l}"`),p=`<${r} ${h} class="${b.join(" ")}" ${An}="1"><${r} class="${C.join(" ")}" ${An}="1">${p}`,n||(u==="smart"?p=`
${p}`:p=`${u}${p}`),n&&(u!=="smart"?p=`${u}${p}`:p=`<${r} class="notranslate" ${An}="1"> ${p}`),s==="smart"?p=`${p}`:p=`${p}${s}`,{html:p,position:"afterend"}}function I0(e){let t=e[e.length-1];return t?t.text:""}function cn(e){let t=e.rule.selectors,n=e.rule.excludeTags,a=e.rule.additionalExcludeTags,r=e.rule.excludeSelectors,u=e.rule.additionalExcludeSelectors;return e.state.translationArea==="body"&&(t=[],r=[]),{globalStyles:e.rule.globalStyles,globalAttributes:e.rule.globalAttributes,selectors:t,skipEditableCheck:e.rule.skipEditableCheck,lineBreakMaxTextCount:e.rule.lineBreakMaxTextCount,isTransformPreTagNewLine:e.rule.isTransformPreTagNewLine,excludeSelectors:n.concat(a).map(i=>i.toLowerCase()).filter(i=>i!=="code"&&i!=="img").concat(r).concat(u),blockSelectors:e.rule.allBlockTags.map(i=>i.toLowerCase()).concat(e.rule.extraBlockSelectors),extraBlockSelectors:e.rule.extraBlockSelectors,extraInlineSelectors:e.rule.extraInlineSelectors.concat(e.rule.additionalInlineSelectors),stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(i=>i.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)}}var c9={sanitize:e=>e};function Ho(e,t){e.interruptEffectDOM||(e.walkContainer({id:e.id,container:t,filterRule:cn(e.ctx),onParagraph:ou.bind(null,e),onFrame:n=>{j0(e,n,!0)},onIgnoreElement:n=>{e.ignoreResizeObserver?.observe(n)}}),Oa&&at(t,"consumeContainer",e.id))}function j0(e,t,n){try{if(e.injectCssToDocument(t,e.ctx),t instanceof HTMLIFrameElement){if(!rr(t))return;j.debug("onFrame fragment",t);let a=t.contentWindow?.document.body;a&&(lr(a,e,n),e.dynamicContainerObserver?.observe(a,{childList:!0,subtree:!0}))}else j.debug("onFrame shadowRoot",t.host),lr(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0})}catch{}}function lr(e,t,n=!0){let{globalStyles:a,globalAttributes:r}=cn(t.ctx),u=0;if(s(t,e,n))return;if(Tn(e)&&i(e)){o(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,l=>(Tn(l)&&(a&&D0(l,a),r&&M0(l,r)),s(t,l,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(Ut.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode();){Ut.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let l=c.currentNode;if(i(l))for(o(l);;){if(c.nextSibling()){let g=c.currentNode;if(Ut.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),i(g)){o(g);continue}else break}if(!c.parentNode())return}}}catch{}if(u==0&&e instanceof HTMLElement){o(e);return}return t.observeContainers;function o(c){Ut.clearMark(c),u++,t.immediateTranslateCapacity>=0?Ho(t,c):(Oa&&at(c,"observeContainer",t.id),t.containerVisibleObserver?.observe(c))}function i(c){let l=c.nodeName.toLowerCase();if(c.shadowRoot)return j0(t,c.shadowRoot,n),!1;if(l==="iframe")return j0(t,c,n),!1;if(["script","#document-fragment","img"].includes(l))return!1;let g=t.containerRule;if(g.selectors&&g.selectors?.length>0)return jo(c,g.selectors);if(g.pageHeight){let p=c.scrollHeight;if(p>0&&p0)return!0}return!1}function s(c,l,g){if(l.nodeName.toLowerCase()=="script")return l.childNodes.length==0||l.childNodes.length==1&&l.childNodes[0].nodeType==Node.TEXT_NODE;if(l.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(l.nodeType!==Node.ELEMENT_NODE||g&&Ut.isMarked(l,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&l.nodeName==="PRE")return!1;let f=cn(c.ctx);return!!F0(l,{excludeSelectors:f.excludeSelectors,selectors:f.selectors,stayOriginalSelectors:f.stayOriginalSelectors})}}function U0(e,t){if(!e.targetNodes)return;let n=e.state||"original",a=e.commonAncestorContainer;if(!Ut.isMarked(a,e.ctxId))return;let r=a.contains(e.rootNodes[0]),u=a.contains(e.targetNodes[0]);if(r&&u)n="dual";else if(r)n="original";else if(u)n="translation";else return;if(t!=n){e.state=t;try{if(n=="dual"&&t=="translation"&&(zo(e.rootNodes),Bg(e.commonAncestorContainer)),n=="original"&&t=="translation"){let o=N0(e.rootNodes);if(zo(e.rootNodes),_g(o))return;sr(o,a,e.targetNodes||[]),Bg(e.commonAncestorContainer)}if(n=="translation"&&t=="dual"){let o=e.targetNodes[0];sr(o,a,e.rootNodes||[]),Rg(e.commonAncestorContainer)}if(n=="original"&&t=="dual"){let o=N0(e.rootNodes);if(_g(o))return;sr(o,a,e.targetNodes||[]),Rg(e.commonAncestorContainer)}if(n=="translation"&&t=="original"){let o=N0(e.targetNodes);zo(e.targetNodes),sr(o,a,e.rootNodes||[])}n=="dual"&&t=="original"&&zo(e.targetNodes)}catch(o){j.error(o)}}}function _g(e){return!e||!Tn(e)?!1:e.classList.contains($t)}function Bg(e){if(!Tn(e))return;e.querySelectorAll("font[class*=immersive-translate-target-translation]").forEach(a=>{at(a,"immersiveTranslateClassBak",a.className),a.className="notranslate immersive-translate-target-dual"});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.add("immersive-translate-state-dual")}function Rg(e){if(!Tn(e))return;e.querySelectorAll("font[class*=immersive-translate-target-dual]").forEach(a=>{let r=nr(a,"immersiveTranslateClassBak");Oo(a,"immersiveTranslateClassBak"),a.className=r});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.remove("immersive-translate-state-dual")}function N0(e){return e?e[e.length-1].nextSibling:null}function zo(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function sr(e,t,n){let a=e;t&&(a?n.forEach(r=>{a.parentNode?.insertBefore(r,a)}):n.forEach(r=>{t.appendChild(r)}))}var d9=bt(H0,300);async function ou(e,t,n=!1){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||m9(t.rootNodes)||t.stepState>=2)return;t.stepState=2,Oa&&at(a,"onParseParagraph",e.id);let{ctx:r}=e,{rule:u}=r,o=ar(r),i=Uo(t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:o,stayOriginalSelectors:r.rule.stayOriginalTags.concat(r.rule.stayOriginalTags).map(c=>c.toLowerCase()).concat(r.rule.stayOriginalSelectors).concat(r.rule.additionalStayOriginalSelectors)});if(!i)return;t.variables=i?.variables||{},t.text=i?.text;let s=await q0(t,{excludeLanguages:r?.config?.translationLanguagePattern?.excludeMatches||[],targetLanguage:r.targetLanguage,noTranslateRegexp:r.rule.noTranslateRegexp,delimiters:Io(r.config.translationServices[r.translationService]?.placeholderDelimiters),minTextCount:n||r.state.translationArea==="body"?2:u.paragraphMinTextCount,minWordCount:n||r.state.translationArea==="body"?1:u.paragraphMinWordCount,isDetectParagraphLanguage:r.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:r.rule.ignoreZhCNandZhTW});if(s){if(j.debug("on paragraph",s.text,s),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(s))return;a.paragraphs.push(s),e.immediateTranslateCapacity>0||n?(g9(e,t.text),z0(e,t)):(Oa&&at(a,"observeParagraph",e.id),e.observeParagraphs.push(s),e.paragraphVisibleObserver?.observe(a))}return s}function m9(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Tn(t)&&t.classList.contains($t):!1}function g9(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function z0(e,t){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let n=e.autoIncreaseParagraphId++;t.id=n.toString(),e.paragraphEntities[n]=t,e.paragraphQueue.push(n.toString()),Oa&&at(t.commonAncestorContainer,"consumeParagraph",e.id),d9.call(e,e.ctx)}async function H0(e){if(this.interruptEffectDOM)return;let t=this.paragraphQueue;this.paragraphQueue=[];let n=[];for(let a=0;a0)try{await ua(a,t,(r,u,o)=>{let i=o.id,s=p9(e,i.toString());s&&f9.call(null,r,u,o,s,t,n)})}catch(r){j.error("translateCurrentQueue error",r);return}}function p9(e,t){return e.find(n=>n.id===t)}function f9(e,t,n,a,r,u){let o=!1,i=a;if(ur(i.commonAncestorContainer,n.id)?.remove(),i&&(e||!t)){e||(j.error("translate error",n,e,t),e=new Error("no response from server"));let{rule:s}=r,c=n.id,l=document.createElement(s.targetWrapperTag);at(l,d4,c.toString()),l.classList.add("notranslate",$t,$t+"-error"),l.setAttribute("translate","no"),l.setAttribute("lang",r.targetLanguage);let g=a.rootNodes[a.rootNodes.length-1].nextSibling;sr(g,a.commonAncestorContainer,[l]),h9(r,e);let p=e.message.replaceAll(` -`,"");if(p=p.replaceAll('"',"""),i&&(i.error=new Error(p)),l){let f=In(Ot,"retryAllParagraphs",r.config.interfaceLanguage,"zh-CN"),d=In(Ot,"errorTooltipTitle",r.config.interfaceLanguage,"zh-CN"),b=`<${s.targetWrapperTag} class="${J}-error notranslate"><${s.targetWrapperTag} class="${J}-error-wrapper">\u{1F504}  \u2753`;l.innerHTML=_e.sanitize(b)}}else if(a){if(i.error=void 0,a.targetText=t?.text||"",!(a.text?.toLocaleLowerCase()==a.targetText?.toLocaleLowerCase())){let c=Pg(a,r),l=document.createElement(r.rule.targetWrapperTag);l.classList.add("notranslate",$t),l.setAttribute("lang",r.targetLanguage),l.setAttribute(An,"1");let g=c9.sanitize(c);l.innerHTML=g,a.targetNodes=[l],U0(a,u)}o=!0}else j.error("paragraph not found",n.id);document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}))}async function q0(e,t){let{text:n}=e,a=await Qe({text:n||"",minLength:15,pageLangs:[pt(),"en"]}),{targetLanguage:r}=t;if(!bg({text:n||"",delimiters:t.delimiters,minWordCount:t.minWordCount,minTextCount:t.minTextCount,noTranslateRegexp:t.noTranslateRegexp}))return null;let o=t.excludeLanguages||[],i=uo();t.isDetectParagraphLanguage&&(i="auto");let s=pt(),c=a;c==="auto"&&!t.isDetectParagraphLanguage&&(c=s),e.languageByLocal=c,e.languageByClient=i;let l=i!=="auto"?i:c;return Xn(l,r,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW})||o.length>0&&o.some(f=>Xn(l,f,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW}))?null:e}function h9(e,t){if(t.message.startsWith("ProQuota:")){t.message=t.message.replace("ProQuota:","");let n=t.message;try{n=JSON.parse(t.message).error}catch(u){j.error(u)}t.message=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${t.message} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`;let a=e.translationService,r=a=="deepl"?"OpenAI":"Deepl";e.translationService=="openai"?a="OpenAI":e.translationService=="deepl"&&(a="Deepl"),document.dispatchEvent(new CustomEvent(Bu,{detail:{type:"ProQuotaExceeded",subscriptionType:e.user?.subscription?.subscriptionType,translationService:a,anotherService:r,message:n}}))}}m();var b9=[];function Og(e){b9.push(e)}m();function Ig(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(a){a.length>0&&(a[0].target.text.includes(ju)||W0(e).catch(u=>{j.error("translateTitle error:",u.name,u.message,u.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var Wo="";async function W0(e){let t=document.title;if(!t||t.includes(ju))return;Wo!==t&&(Wo=t);let n=await Qe({text:t,pageLangs:[pt(),"en"]});if(!No(e,n))try{let a=await Aa({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n},e);a&&a.text&&(document.title=Wo+ju+a.text)}catch(a){throw a}}function Ng(e){e.rule.isTranslateTitle&&(document.title=Wo)}m();var $0;function jg(e){let t=e.ctx.rule.aiRule;if(j.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=cn(e.ctx),a=n.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);n.excludeSelectors.splice(a,1);let r,u;document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(p=>{p.translated=!0,iu(e,p,n)});let o=t.streamingDelayTime||100;$0=new MutationObserver(p=>{p.forEach(function(f){if(Tn(f.target)&&!s(f)&&(l(f.target),f.addedNodes&&f.addedNodes.length&&f.addedNodes.forEach(d=>{l(d)}),!c(f)&&i())){let d=f.target===u;if(t.streamingDeepChild&&!d&&(d=f.target.parentNode===u),!d)return;f.addedNodes.forEach(b=>{let C=b.previousSibling;!C||C.translated||(C.translated=!0,setTimeout(()=>{C.childNodes[0]?.translated||(j.debug("\u7FFB\u8BD1\u4E0A\u4E00\u4E2A\u6BB5\u843D",C),iu(e,C,n))},o))})}})}),$0.observe(document.body,{attributes:!0,childList:!0,subtree:!0});function i(){return!!(t.streamingChange&&t.streamingSelector&&r||t.streamingChange&&t.messageContainerSelector&&t.messageStreamEndSelector&&u&&!u.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector))}function s(p){return t.streamingSelector&&p.target===r&&p.type==="attributes"&&!En(p.target,[t.streamingSelector])?(g(),!0):t.streamingSelector&&p.removedNodes.length>0&&u&&u!=r?(p.removedNodes?.forEach(f=>{f===r&&g()}),!0):t.messageContainerSelector&&t.messageStreamEndSelector&&u&&u.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector)?(g(),!0):!1}function c(p){if(t.streamingSelector&&p.target.querySelector(t.messageWrapperSelector||"")&&!r){let f=p.target;return f.translated||(f.translated=!0,setTimeout(()=>{r||f.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(d=>{d.translated||(d.translated=!0,iu(e,d,n))})},o)),!0}else if(t.messageContainerSelector&&p.target.querySelector(t.messageContainerSelector||"")){let f=p.target;if(f.translated)return!0;f.translated=!0,setTimeout(()=>{f.querySelectorAll(t.messageContainerSelector).forEach(d=>{t.messageStreamEndSelector&&!d.querySelector(t.messageStreamEndSelector)||d.translated||(d.translated=!0,iu(e,d,n))})},o)}return!1}function l(p){t.streamingSelector&&En(p,[t.streamingSelector])&&(r=p,j.debug("streamingNode",r)),En(p,[t.messageWrapperSelector])&&(u=p,j.debug("markdownNode",u))}function g(){u&&setTimeout(()=>{u.childNodes.forEach(p=>p.translated=!1),j.debug("\u7ED3\u675F\u7FFB\u8BD1\u5168\u90E8",u),iu(e,u,n),r=void 0,u=null},o)}}function iu(e,t,n){la({id:e.id,container:t,filterRule:n,force:!0,onParagraph:a=>{ou(e,a,!0)},onFrame:()=>{},onIgnoreElement:()=>{}})}function Ug(){$0?.disconnect()}var ne=null;function Ko(){return ne||null}function cr(e){y9(e),A9(e),C9(e),v9(e),ir(document,e),Dt("Translated"),w9(ne),T9(ne),Og(Nn),x9(ne)}function y9(e){e.state.translationArea==="main"&&e.rule.initialSelectorGlobalAttributes&&wg(document.body,e.rule.initialSelectorGlobalAttributes,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph)}function x9(e){jg(e)}function E9(){Ug()}function T9(e){e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0});let t=[];e.ctx.rule.mainFrameSelector&&(t=[...document.querySelectorAll(e.ctx.rule.mainFrameSelector||"")]),t.length<=0&&(t=[document.body]),t.forEach(n=>{lr(n,e)})}async function C9(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=Date.now(),a=new URL(e.url).hostname,r=e.localConfig.tempTranslationUrlMatches||[],u=r.findIndex(i=>i.match===a&&i.expiredAt>t),o=!1;u>-1||(r.push({match:a,expiredAt:t+e.config.tempTranslateDomainMinutes*60*1e3}),o=!0),o&&await kn({...e.localConfig,tempTranslationUrlMatches:[...r]})}}function w9(e){e.ctx.rule.isTranslateTitle&&(W0(e.ctx),e.titleDynamicObserver=Ig(e.ctx))}function v9(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function A9(e){let t=hn();ne&&(t=ne.id);let n=cn(e);ne=ne||{},ne.ctx=e,ne.id=t,ne.paragraphQueue=ne.paragraphQueue||[],ne.rule={excludeSelectors:n.excludeSelectors||[],selectors:n.selectors||[]},ne.currentUrl=window.location.href,ne.containerRule={pageHeight:screen.availHeight,selectors:n.selectors},ne.translationService=e.translationService,ne.paragraphEntities=ne.paragraphEntities||{},ne.autoIncreaseParagraphId=ne.autoIncreaseParagraphId||1,ne.interruptEffectDOM=!1,ne.urlChangeDelay=e.rule.urlChangeDelay,ne.immediateTranslateCapacity=e.state.immediateTranslationTextCount,ne.observeContainers=ne.observeContainers||[],ne.observeParagraphs=ne.observeParagraphs||[],ne.dynamicContainerObserver=ne.dynamicContainerObserver||M9(ne),ne.ignoreResizeObserver=ne.ignoreResizeObserver||F9(ne),ne.containerVisibleObserver=ne.containerVisibleObserver||S9(ne),ne.paragraphVisibleObserver=ne.paragraphVisibleObserver||D9(ne),ne.injectCssToDocument=$o,ne.walkContainer=la,ne.translateState=e.state.translationMode||e.config.translationMode||"dual",ne.allInlineWindows=[window],window.onerror=k9(ne,e),window.immersiveTranslateSwitchTranslateState=G0.bind(ne)}function Hg(e,t){t.getRootNode()instanceof ShadowRoot?$o(t.getRootNode(),e):$o(t.ownerDocument,e),K0(e)}function K0(e){if(ne)return;ne={},ne.ctx=e,ne.id=hn(),ne.paragraphQueue=[],ne.injectCssToDocument=$o;let t=cn(e);ne.rule={excludeSelectors:t.excludeSelectors,selectors:t.selectors||[]},ne.translationService=e.mouseHoverTranslationService,ne.currentUrl=window.location.href,ne.paragraphEntities={},ne.autoIncreaseParagraphId=1,ne.interruptEffectDOM=!1,ne.urlChangeDelay=e.rule.urlChangeDelay,ne.translateState=e.config.translationMode||"dual",ne.observeContainers=[],ne.observeParagraphs=[],ne.allInlineWindows=[window],window.switchTranslateState=G0.bind(ne)}function Nn(e=!0){ne&&(Dt("Original"),E9(),ne.interruptEffectDOM=!0,ne.ignoreResizeObserver?.disconnect(),ne.dynamicContainerObserver?.disconnect(),ne.containerVisibleObserver?.disconnect(),ne.paragraphVisibleObserver?.disconnect(),ne.titleDynamicObserver?.disconnect(),Ng(ne.ctx),pg(),fg(),e&&G0.call(ne,"original"),Object.values(ne.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),ne=null)}function k9(e,t){e.interruptEffectDOM=!1;let n;return function(a){let r=a.message,u=!1;return r?.indexOf("Minified React error")>=0&&(u=!0),u&&(clearTimeout(n),Nn(),n=setTimeout(()=>{cr(t)},e.urlChangeDelay||2e3)),!0}}function S9(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{a.intersectionRatio>0&&(Ho(e,a.target),n.unobserve(a.target))})})}function D9(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{if(a.intersectionRatio>0){let r=a.target;(r.paragraphs||[]).forEach(o=>{z0(e,o)}),n.unobserve(r)}})})}var zg;function L9(e){if(e.urlChangeDelay<=0)return!1;let n=(window.location.href||"").split("#")[0];return e.currentUrl.split("#")[0]!=n?(clearTimeout(zg),e.translateState=="original"?!1:(Nn(e.urlChangeDelay>20),zg=setTimeout(()=>{let r=e.ctx;cr(r)},e.urlChangeDelay),!0)):!1}function M9(e){return new MutationObserver(t=>{if(!L9(e)&&!e.interruptEffectDOM)for(let n of t){let a=e.ctx.rule.mutationObserverLimitTargetSelectors;if(a.length>0&&!En(n.target,a))return;if((n.addedNodes||[]).length<=0||n.target.nodeType!==Node.ELEMENT_NODE||!Ut.isSkipMarkEle(n.target)&&!Ut.isMarked(n.target,e.id))continue;let u=(n.target?.paragraphs||[]).reduce((o,i)=>{let s=i.rootNodes||[],c=i.targetNodes||[];return[...o,...s,...c]},[]);if(n.addedNodes.length>0&&n.addedNodes.length===n.target.childNodes.length&&En(n.target,e.ctx.rule.mutationObserverContainerSelectors)){Ut.clearMark(n.target),n.target.paragraphs=void 0,Ho(e,n.target);return}n.addedNodes.forEach((o,i)=>{o.nodeType===Node.ELEMENT_NODE&&(u.includes(o)||Mt(o,e.ctx.rule.mutationExcludeSelectors)||lr(o,e))})}})}function F9(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let a of t){if(a.target.nodeType!==Node.ELEMENT_NODE)return;let r=a.target,u=globalThis.getComputedStyle(r);L0(u)||(n.unobserve(a.target),lr(r,e))}})}function G0(e){this.translateState=e,Object.values(this.paragraphEntities).forEach(t=>{U0(t,e)}),e=="original"&&document.querySelectorAll(`.${$t}`).forEach(t=>t.remove())}function $o(e,t){if(e instanceof HTMLIFrameElement){ir(e.contentDocument,t);return}ir(e,t)}async function qg(e){let t=Je(),n="auto";if(fe()){let a="";e.rule.isEbook||e.rule.isEbookBuilder?(a=v0(e.mainFrame),n=await Qe({text:a,pageLangs:["en"]})):(a=tr(e.mainFrame).slice(0,1e3),n=await Qe({text:a,pageLangs:[ba(),"en"]}))}else if(t)n=await Qe({text:tr(e.mainFrame).slice(0,1e3),pageLangs:[ba(),"en"]});else if(e.rule.isEbook||e.rule.isEbookBuilder){let a="";a=v0(e.mainFrame),n=await Qe({text:a,pageLangs:["en"]})}else n=await Rd();return n==="auto"&&(n=await Lg()),kd(n),n}async function Wg(){if(!ne)return;document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=ne.paragraphEntities,t=Object.keys(e);for(let n of t){let a=e[n];if(a.error){ne.paragraphQueue.push(n);let u=a.commonAncestorContainer.querySelector(`[${Iu}='${n}']`);u&&u.remove()}}H0.call(ne,ne.ctx)}m();m();var $g={"zh-CN":{"languages.en":"\u82F1\u8BED","languages.ja":"\u65E5\u8BED","languages.ko":"\u97E9\u8BED","languages.es":"\u897F\u73ED\u7259\u8BED","languages.fr":"\u6CD5\u8BED","languages.de":"\u5FB7\u8BED","languages.it":"\u610F\u5927\u5229\u8BED","languages.pt":"\u8461\u8404\u7259\u8BED","languages.ru":"\u4FC4\u8BED","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"},"zh-TW":{"languages.en":"\u82F1\u8A9E","languages.ja":"\u65E5\u8A9E","languages.ko":"\u97D3\u8A9E","languages.es":"\u897F\u73ED\u7259\u8A9E","languages.fr":"\u6CD5\u8A9E","languages.de":"\u5FB7\u8A9E","languages.it":"\u610F\u5927\u5229\u8A9E","languages.pt":"\u8461\u8404\u7259\u8A9E","languages.ru":"\u4FC4\u8A9E","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"}},Kg={...Ot,"zh-CN":{...$g["zh-CN"],...Ot["zh-CN"]},"zh-TW":{...$g["zh-TW"],...Ot["zh-TW"]}},Gg=Kg;function dr(e,t,n){return In(Kg,e,t,Uu,n)}var Go=(e,t,n,a)=>{let r=x4[e]||e,u=E4[e],o=T4[e],i={"zh-CN":u,"zh-TW":o,en:r};if(n)return i[e]?i[e]:r;if(i[t]){let s=i[t];return a||e==="auto"||e==="placeholder"?s:`${s} (${r})`}else return r};m();m();function mr(e){Ka(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(a=>{j.error("send content message request failed",e,a)}),document.querySelectorAll("iframe").forEach(a=>{a.contentWindow&&a.contentWindow.postMessage({author:Pu,payload:e},"*")});let n=new CustomEvent($n,{detail:e});globalThis.document.dispatchEvent(n)}function V0(e){let t=e.shortcuts||{},a=Object.keys(t).reduce((u,o)=>(u[t[o]]=o,u),{}),r=Object.keys(a);for(let u of r){let o=u.replace(/MacCtrl/ig,"Ctrl");o&&Ye(o,i=>{i.preventDefault(),mr({method:a[u],data:{trigger:"shortcut"}})})}}m();m();m();m();m();var Xo,ve,Zg,P9,su,Vg,Xg,Jo={},e3=[],_9=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ca(e,t){for(var n in t)e[n]=t[n];return e}function t3(e){var t=e.parentNode;t&&t.removeChild(e)}function J0(e,t,n){var a,r,u,o={};for(u in t)u=="key"?a=t[u]:u=="ref"?r=t[u]:o[u]=t[u];if(arguments.length>2&&(o.children=arguments.length>3?Xo.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(u in e.defaultProps)o[u]===void 0&&(o[u]=e.defaultProps[u]);return Vo(e,o,a,r,null)}function Vo(e,t,n,a,r){var u={type:e,props:t,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++Zg};return r==null&&ve.vnode!=null&&ve.vnode(u),u}function Kt(e){return e.children}function Yo(e,t){this.props=e,this.context=t}function gr(e,t){if(t==null)return e.__?gr(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?Vo(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=n,f.__b=n.__b+1,(p=h[l])===null||p&&f.key==p.key&&f.type===p.type)h[l]=void 0;else for(g=0;g=n.__.length&&n.__.push({__V:ti}),n.__[e]}function De(e){return cu=1,I9(y3,e)}function I9(e,t,n){var a=ai(du++,2);if(a.t=e,!a.__c&&(a.__=[n?n(t):y3(void 0,t),function(u){var o=a.__N?a.__N[0]:a.__[0],i=a.t(o,u);o!==i&&(a.__N=[i,a.__[1]],a.__c.setState({}))}],a.__c=tt,!tt.u)){tt.u=!0;var r=tt.shouldComponentUpdate;tt.shouldComponentUpdate=function(u,o,i){if(!a.__c.__H)return!0;var s=a.__c.__H.__.filter(function(l){return l.__c});if(s.every(function(l){return!l.__N}))return!r||r.call(this,u,o,i);var c=!1;return s.forEach(function(l){if(l.__N){var g=l.__[0];l.__=l.__N,l.__N=void 0,g!==l.__[0]&&(c=!0)}}),!!c&&(!r||r.call(this,u,o,i))}}return a.__N||a.__}function Ge(e,t){var n=ai(du++,3);!ve.__s&&b3(n.__H,t)&&(n.__=e,n.i=t,tt.__H.__h.push(n))}function ri(e){return cu=5,el(function(){return{current:e}},[])}function el(e,t){var n=ai(du++,7);return b3(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function da(e,t){return cu=8,el(function(){return e},t)}function ui(e){var t=tt.context[e.__c],n=ai(du++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(tt)),t.props.value):e.__}function N9(){for(var e;e=h3.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ni),e.__H.__h.forEach(X0),e.__H.__h=[]}catch(t){e.__H.__h=[],ve.__e(t,e.__v)}}ve.__b=function(e){typeof e.type!="function"||e.o||e.type===Kt?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),tt=null,c3&&c3(e)},ve.__r=function(e){d3&&d3(e),du=0;var t=(tt=e.__c).__H;t&&(Z0===tt?(t.__h=[],tt.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=ti,n.__N=n.i=void 0})):(t.__h.forEach(ni),t.__h.forEach(X0),t.__h=[])),Z0=tt},ve.diffed=function(e){m3&&m3(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(h3.push(t)!==1&&l3===ve.requestAnimationFrame||((l3=ve.requestAnimationFrame)||j9)(N9)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==ti&&(n.__=n.__V),n.i=void 0,n.__V=ti})),Z0=tt=null},ve.__c=function(e,t){t.some(function(n){try{n.__h.forEach(ni),n.__h=n.__h.filter(function(a){return!a.__||X0(a)})}catch(a){t.some(function(r){r.__h&&(r.__h=[])}),t=[],ve.__e(a,n.__v)}}),g3&&g3(e,t)},ve.unmount=function(e){p3&&p3(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(a){try{ni(a)}catch(r){t=r}}),n.__H=void 0,t&&ve.__e(t,n.__v))};var f3=typeof requestAnimationFrame=="function";function j9(e){var t,n=function(){clearTimeout(a),f3&&cancelAnimationFrame(t),setTimeout(e)},a=setTimeout(n,100);f3&&(t=requestAnimationFrame(n))}function ni(e){var t=tt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),tt=t}function X0(e){var t=tt;e.__c=e.__(),tt=t}function b3(e,t){return!e||e.length!==t.length||t.some(function(n,a){return n!==e[a]})}function y3(e,t){return typeof t=="function"?t(e):t}m();m();var pr={},U9={root:"",lang:"en",fallbackLang:"en"};function tl(e,t){let n=Object.assign({},U9,e);pr=t||pr;let[a,r]=De(n.lang),[u,o]=De(pr),[i,s]=De(!1),c=g=>{if(u.hasOwnProperty(g))return;s(!1);let p=Mg(n.root||"",g);n.getUrl&&(p=n.getUrl(n.root||"",g),fetch(p).then(f=>f.json()).then(f=>{pr[g]=f,o({...pr}),s(!0)}).catch(f=>{o({...pr}),s(!0)}))};return Ge(()=>{c(n.fallbackLang||"en"),c(a)},[a]),{lang:a,setLang:r,t:(g,p)=>{if(!u.hasOwnProperty(a))return g;let f=uu(u,a,g);return f===g&&a!==n.fallbackLang&&(f=uu(u,n.fallbackLang,g)),_0(f,p)},isReady:i}}m();m();var z9=0;function V(e,t,n,a,r){var u,o,i={};for(o in t)o=="ref"?u=t[o]:i[o]=t[o];var s={type:e,props:i,key:n,ref:u,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--z9,__source:r,__self:a};if(typeof e=="function"&&(u=e.defaultProps))for(o in u)i[o]===void 0&&(i[o]=u[o]);return ve.vnode&&ve.vnode(s),s}var al=ei(null),nl={root:"assets",lang:"en",fallbackLang:"en"},x3=e=>{let{t,setLang:n,lang:a,isReady:r}=tl({root:e.root||nl.root,lang:e.lang||nl.lang,fallbackLang:e.fallbackLang||nl.fallbackLang,getUrl:e.getUrl},e.translations);return V(al.Provider,{value:{t,setLang:n,lang:a,isReady:r},children:e.children})};m();m();function E3(e,t,n){let a=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),a=t!=="auto"?n[t].matches:[];let r={},u=Object.keys(n);for(let c of u){let g=n[c].matches;for(let p of g)r[p]||(r[p]=[]),r[p].push(c)}let o=r[e];if(o&&o.length>0)for(let c of o)n[c].matches.indexOf(e)>-1&&(n[c]={...n[c],matches:n[c].matches.filter(g=>g!==e)});let i=new Set(a);if(t==="auto")return{...n};i.add(e);let s=Array.from(i);return{...n,[t]:{...n[t],matches:s}}}m();m();function rl(){return V("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[V("path",{d:"M10.3873 2.29166C10.6319 2.29193 10.8664 2.38929 11.0392 2.56234C11.2121 2.73539 11.3092 2.96998 11.3092 3.21457V4.07811L12.1175 4.38332C12.7273 4.61277 13.2952 4.94074 13.7988 5.35416L14.4675 5.90207L15.2165 5.46978L15.2394 5.45624C15.3787 5.37479 15.5373 5.332 15.6988 5.33228C15.861 5.3325 16.0203 5.37522 16.1608 5.45618C16.3014 5.53715 16.4182 5.65353 16.4998 5.79374L16.8925 6.47395C17.0145 6.68593 17.0475 6.93764 16.9843 7.17391C16.921 7.41019 16.7666 7.61173 16.555 7.73436L16.5321 7.74791L15.7842 8.17916L15.9227 9.0302C16.031 9.67953 16.031 10.3423 15.9227 10.9917L15.781 11.8458L16.531 12.2781L16.5467 12.2875C16.758 12.4101 16.9122 12.6115 16.9754 12.8475C17.0387 13.0835 17.0059 13.335 16.8842 13.5469L16.5154 14.1844C16.3932 14.3961 16.1919 14.5507 15.9558 14.6141C15.7196 14.6776 15.468 14.6448 15.256 14.5229L15.2415 14.5135L14.4904 14.0802L13.8206 14.6323C13.3125 15.0519 12.7384 15.3845 12.1217 15.6167L11.3133 15.9219V16.7864C11.3132 16.9078 11.2891 17.028 11.2425 17.14C11.1958 17.2521 11.1276 17.3539 11.0415 17.4395C10.9555 17.5251 10.8535 17.5929 10.7412 17.6391C10.6289 17.6852 10.5087 17.7087 10.3873 17.7083H9.61229C9.3677 17.708 9.13322 17.6107 8.96037 17.4376C8.78751 17.2646 8.69042 17.03 8.69042 16.7854V15.9219L7.88209 15.6167C7.27233 15.3872 6.70437 15.0592 6.20084 14.6458L5.53209 14.0979L4.78313 14.5302L4.76021 14.5437C4.62084 14.6252 4.46226 14.668 4.30084 14.6677C4.13864 14.6675 3.97932 14.6248 3.83877 14.5438C3.69823 14.4628 3.58135 14.3464 3.49979 14.2062L3.10709 13.526C2.98505 13.3141 2.95205 13.0623 3.01532 12.8261C3.07858 12.5898 3.23296 12.3882 3.44459 12.2656L3.4675 12.2521L4.21542 11.8208L4.07688 10.9698C3.96856 10.3204 3.96856 9.65766 4.07688 9.00832L4.21854 8.1552L3.46959 7.72186L3.45709 7.70832C3.24914 7.58489 3.09787 7.38486 3.03575 7.15116C2.97362 6.91746 3.00559 6.66872 3.12479 6.45832L3.49354 5.82082C3.57469 5.68049 3.69133 5.56397 3.83175 5.48297C3.97217 5.40197 4.13144 5.35934 4.29354 5.35936C4.45497 5.35908 4.61355 5.40187 4.75292 5.48332L4.7675 5.49166L5.51854 5.92499L6.18834 5.37291C6.69646 4.95329 7.27054 4.62067 7.88729 4.38853L8.69563 4.08332V3.21874C8.69452 2.97433 8.79041 2.73945 8.96226 2.56565C9.13411 2.39185 9.36788 2.29331 9.61229 2.29166H10.3873ZM10.3873 1.04166H9.61229C9.03636 1.04193 8.4841 1.27084 8.07685 1.67809C7.66961 2.08533 7.4407 2.6376 7.44042 3.21353C6.69518 3.49423 6.00146 3.89618 5.38729 4.40312L5.37271 4.39478C4.87362 4.10685 4.2806 4.02894 3.72407 4.17818C3.16753 4.32742 2.69307 4.6916 2.405 5.19062L2.03729 5.83332C1.74928 6.33229 1.67121 6.92522 1.82025 7.48173C1.96929 8.03825 2.33324 8.51279 2.83209 8.80103L2.84771 8.80936C2.78023 9.20444 2.74539 9.6044 2.74354 10.0052C2.74367 10.3971 2.77572 10.7883 2.83938 11.175L2.81646 11.1885C2.56927 11.3311 2.35259 11.5209 2.1788 11.7472C2.00501 11.9735 1.87752 12.2319 1.80361 12.5075C1.7297 12.7831 1.71083 13.0706 1.74807 13.3535C1.7853 13.6364 1.87792 13.9091 2.02063 14.1562L2.41334 14.8364C2.55638 15.0837 2.74681 15.3003 2.97371 15.4738C3.20061 15.6473 3.45953 15.7743 3.73561 15.8475C4.01169 15.9208 4.29952 15.9388 4.58259 15.9007C4.86566 15.8625 5.13841 15.7688 5.38521 15.625L5.40813 15.6114C6.01714 16.1105 6.70362 16.5067 7.44042 16.7844C7.44028 17.0697 7.49635 17.3523 7.60542 17.616C7.7145 17.8797 7.87444 18.1193 8.07612 18.3212C8.27779 18.523 8.51726 18.6832 8.78084 18.7925C9.04441 18.9018 9.32694 18.9582 9.61229 18.9583H10.3873C10.9632 18.958 11.5155 18.7291 11.9227 18.3219C12.33 17.9146 12.5589 17.3624 12.5592 16.7864C13.3043 16.5061 13.9981 16.1045 14.6123 15.5979L14.6269 15.6062C15.126 15.8942 15.719 15.9721 16.2755 15.8228C16.8321 15.6736 17.3065 15.3094 17.5946 14.8104L17.9623 14.1729C18.2503 13.6739 18.3284 13.081 18.1793 12.5245C18.0303 11.968 17.6663 11.4934 17.1675 11.2052L17.1519 11.1969C17.2194 10.8018 17.2542 10.4018 17.256 10.001C17.2559 9.60915 17.2239 9.21792 17.1602 8.83124L17.1831 8.8177C17.4303 8.67516 17.647 8.48531 17.8208 8.259C17.9946 8.03269 18.1221 7.77435 18.196 7.49875C18.2699 7.22314 18.2888 6.93568 18.2515 6.65278C18.2143 6.36987 18.1217 6.09708 17.979 5.84999L17.5863 5.16978C17.4437 4.92202 17.2537 4.70485 17.027 4.53072C16.8003 4.3566 16.5415 4.22895 16.2654 4.1551C15.9893 4.08126 15.7013 4.06267 15.418 4.1004C15.1346 4.13814 14.8616 4.23145 14.6144 4.37499L14.5915 4.38853C13.9824 3.88946 13.296 3.49327 12.5592 3.21561C12.5593 2.93026 12.5032 2.64768 12.3942 2.384C12.2851 2.12031 12.1252 1.8807 11.9235 1.67883C11.7218 1.47695 11.4823 1.31678 11.2188 1.20746C10.9552 1.09813 10.6726 1.04179 10.3873 1.04166Z",fill:"#666666"}),V("path",{d:"M10.0003 7.91666C10.4124 7.91666 10.8152 8.03884 11.1578 8.26776C11.5004 8.49668 11.7674 8.82205 11.9251 9.20273C12.0828 9.58341 12.124 10.0023 12.0436 10.4064C11.9632 10.8106 11.7648 11.1818 11.4735 11.4731C11.1821 11.7645 10.8109 11.9629 10.4068 12.0433C10.0026 12.1237 9.58375 12.0824 9.20307 11.9247C8.82239 11.7671 8.49702 11.5 8.2681 11.1574C8.03918 10.8148 7.91699 10.412 7.91699 9.99999C7.91699 9.44745 8.13649 8.91755 8.52719 8.52685C8.91789 8.13615 9.44779 7.91666 10.0003 7.91666ZM10.0003 6.66666C9.34106 6.66666 8.69659 6.86215 8.14843 7.22842C7.60026 7.5947 7.17302 8.11529 6.92073 8.72438C6.66844 9.33346 6.60243 10.0037 6.73104 10.6503C6.85966 11.2969 7.17713 11.8908 7.6433 12.357C8.10948 12.8232 8.70342 13.1407 9.35003 13.2693C9.99663 13.3979 10.6669 13.3319 11.2759 13.0796C11.885 12.8273 12.4056 12.4001 12.7719 11.8519C13.1382 11.3037 13.3337 10.6593 13.3337 9.99999C13.3337 9.11593 12.9825 8.26809 12.3573 7.64297C11.7322 7.01785 10.8844 6.66666 10.0003 6.66666Z",fill:"#666666"})]})}m();function T3(e,t=2e3){return n=>{let a,r=0;return u=>{++r==e&&(n(u),r=0),clearTimeout(a),a=setTimeout(()=>r=0,t)}}}m();function C3(e){let t;try{t=new URL(e)}catch{return!1}let n=Ud(),a="";try{a=new URL(n).hostname}catch{}return a&&t.hostname===a?!0:!(H9(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function H9(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}m();function w3(e){let t=e.split(".");return t.length>2?(t[0]="*",t.join(".")):null}m();function v3(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}m();m();function zt(){return ui(al)}function jn(e){let{items:t,maxWidth:n,className:a}=e,{lang:r}=zt();return n=n||(r==="en"?144:160),V("select",{autoComplete:"off",class:a||"min-select",style:{maxWidth:`${n}px`},value:t.find(u=>u.selected)?.value,onChange:u=>{let o=u.target.value,i=t.find(s=>s.value===o);i&&i.onSelected(i)},children:t.map((u,o)=>V("option",{value:u.value,selected:u.selected,children:u.label},"selectlink"+o))})}m();var oi="DROP_DOWN_DEFAULT_VALUE";function ul(e){let{showArrow:t,onSelected:n,className:a,menus:r,maxWidth:u}=e;a=a||"",t=t??!0,u=u||80;let o=ri(null);return V("select",{ref:o,autoComplete:"off",class:`text-label min-select ${t?"":"min-select-no-arrow"} ${a||""}`,value:oi,style:{maxWidth:`${u}px`},onChange:i=>{i.preventDefault();let s=i.target.value;if(o.current&&s!==oi){o.current.value=oi,o.current?.dispatchEvent(new Event("change"));let c=r.find(l=>l.value===s);c&&n(c)}},children:[{value:oi,label:e.label}].concat(r).map((i,s)=>V("option",{value:i.value,children:i.label},"option-"+s))})}m();function ol(e){let{field:t,onChange:n,value:a}=e;a=a||t.default||"";let{t:r}=zt(),u=t.name;return t.label&&(u=t.label),t.labelKey&&(u=r(t.labelKey)),t.type==="select"?V("div",{class:"flex justify-between items-center mb-2",children:[V("label",{class:"inline-block",children:[u,"\uFF1A"]}),V(jn,{items:t.options.map(o=>({label:`${o.label?r(o.label):o.value}`,value:o.value,selected:a===o.value,onSelected:()=>{n(o.value)}}))})]}):null}m();m();function mu(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var q9=({date:e})=>{let{t}=zt(),[n,a]=De(!1);return Ge(()=>{setTimeout(()=>{a(!0)},5e3)},[]),n?null:V("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},W9=({minVersion:e})=>{let{t}=zt();return V("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},$9=()=>{let{t:e}=zt();return V("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:"https://immersivetranslate.com/docs/installation/"})}})},K9=({message:e,handleSyncing:t,date:n})=>{let{t:a}=zt();return V("p",{class:"text-sm",children:[a("failToSyncRules")," ",V("a",{onClick:t,children:a("retry")}),V("br",{}),a("failedReason"),"\uFF1A",e,V("br",{}),a("currentRuleVersion"),"\uFF1A",n]})};function il(e){let{isShowError:t,request:n}=e,[a,r]=De(null),{t:u}=zt(),[o,i]=De(null),[s,c]=De(null),[l,g]=De(""),[p,f]=De(!1),[d,b]=De(!1),[C,h]=De(!1),[A,S]=De(null),[U,R]=De(null),y=nn(),T=async()=>{g("");let k=o;if(o===null)try{let v=await n({url:Lr});v?(i(v),k=v,f(!0)):(g(u("unknownError")),c(null))}catch(v){c(null),g(v.message);return}k!==null?(e.setStorageBuildinConfig(k),c(!1),r(k.buildinConfigUpdatedAt)):(g(u("canNotFetchRemoteRule")),c(null))};return Ge(()=>{Jn().then(k=>{let v=k.buildinConfigUpdatedAt;S(k);let E=new Date(v);if(r(v),y==="0.0.0"){h(!0);return}n({url:Lr}).then(B=>{let P=B,w=P.minVersion,_=y;i(P);let O=P.latestVersion;if(O&&(mu(_,O)?R(!0):R(!1)),mu(_,w)){let N=P.buildinConfigUpdatedAt;new Date(N)>E?(c(!0),T()):c(!1)}else b(!0),c(null)}).catch(B=>{c(null),g(B.message)})})},[]),Ge(()=>{Jn().then(k=>{S(k)})},[a]),A?V("div",{class:"text-sm mt-2",style:{maxWidth:218},children:C?V($9,{}):l?t===!1?null:V(K9,{handleSyncing:T,message:l,date:a||""}):d?t===!1?null:V(W9,{minVersion:o.minVersion}):s===null||s===!0?null:p?V(q9,{date:a}):null}):null}m();var ii='',sl="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMTEuNjIzLS4zMTguODQ1Yy0uMjA4LjIyMi0uNTI3LjMzMy0uOTI4LjMzM2gtMS4zM1Y5LjI0MmgxLjMzWm05Ljg0NiAxLjc4OGMuMzg4IDAgLjY2NS4xNTIuODQ1LjQ1Ny4xNTIuMjY0LjIzNS41ODIuMjYzLjk4NHYuMzE5YzAgLjQ5OS0uMDgzLjg4Ny0uMjYzIDEuMTkyLS4xOC4zMDQtLjQ1Ny40NTctLjgzLjQ1Ny0uMzg5IDAtLjY2Ni0uMTUzLS44NDYtLjQ0NC0uMTUyLS4yNjMtLjIzNS0uNTk1LS4yNjMtMS4wMTF2LS4yOTFjMC0uNDg1LjA4My0uODczLjI2My0xLjE3OC4xOC0uMzA1LjQ0My0uNDg1LjgzMS0uNDg1Wm0tMy40MDctMS4xMzZhMS4xNyAxLjE3IDAgMCAwLS43MDYuMjM1IDEuNDgyIDEuNDgyIDAgMCAwLS40MTUuNWwtLjA4My4xNjUtLjA3LS44MDNoLTEuMzU3djUuNDMyaDEuNDU0di0zLjY1OWEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiA4LjEySDQuMTE0djcuMzE3aDEuNDY4VjEyLjc5aDEuMzNjLjg0NCAwIDEuNDk1LS4yMDggMS45OC0uNjM4LjQ4NS0uNDMuNzItLjk4My43Mi0xLjY5cy0uMjM1LTEuMjYxLS43Mi0xLjY5Yy0uNDQzLS4zODktMS4wMzktLjYxLTEuNzczLS42MzhsLS4yMjEtLjAxNFptOS44NDcgMS43NzRjLS44MDMgMC0xLjQyNi4yNjMtMS44ODMuNzc2LS40MTYuNDctLjYzNyAxLjA2Ny0uNjc5IDEuNzczdi4zMzNjMCAuODE4LjIyMiAxLjQ4My42NzkgMS45OTUuNDU3LjUxMyAxLjA4Ljc3NiAxLjg4My43NzYuODA0IDAgMS40MjctLjI2MyAxLjg4NC0uNzc2LjQxNS0uNDcuNjM3LTEuMDUzLjY3OC0xLjc3M3YtLjMzM2MwLS44MTctLjIyMS0xLjQ4Mi0uNjc4LTEuOTk1LS40NTctLjUxMy0xLjA4LS43NzYtMS44ODQtLjc3NlpNMTguMDAzIDZhNiA2IDAgMCAxIDAgMTJIMFY5LjQyM0EzLjQyIDMuNDIgMCAwIDEgMy40MiA2aDE0LjU4M1oiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSI3LjUiIHgyPSIyMiIgeTE9IjE5IiB5Mj0iNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMyMjIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM2OTY5NjkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=",ll="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzk5OSIgZD0iTTYuODk3IDMuMjQyYy40MTUgMCAuNzIuMTExLjkyOC4zNDcuMjA3LjIzNS4zMTguNTI2LjMxOC44NzMgMCAuMzQ2LS4xMS42MjMtLjMxOC44NDUtLjIwOC4yMjItLjUyNy4zMzMtLjkyOC4zMzNoLTEuMzNWMy4yNDJoMS4zM1ptOS44NDYgMS43ODhjLjM4OCAwIC42NjUuMTUyLjg0NS40NTcuMTUyLjI2NC4yMzUuNTgyLjI2My45ODR2LjMxOWMwIC40OTktLjA4My44ODctLjI2MyAxLjE5Mi0uMTguMzA0LS40NTcuNDU3LS44My40NTctLjM4OSAwLS42NjYtLjE1My0uODQ2LS40NDQtLjE1Mi0uMjYzLS4yMzUtLjU5NS0uMjYzLTEuMDExdi0uMjkxYzAtLjQ4NS4wODMtLjg3My4yNjMtMS4xNzguMTgtLjMwNS40NDMtLjQ4NS44MzEtLjQ4NVptLTMuNDA3LTEuMTM2YTEuMTcgMS4xNyAwIDAgMC0uNzA2LjIzNSAxLjQ4MiAxLjQ4MiAwIDAgMC0uNDE1LjVsLS4wODMuMTY1LS4wNy0uODAzaC0xLjM1N3Y1LjQzMmgxLjQ1NFY1Ljc2NGEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiAyLjEySDQuMTE0djcuMzE3aDEuNDY4VjYuNzloMS4zM2MuODQ0IDAgMS40OTUtLjIwOCAxLjk4LS42MzguNDg1LS40My43Mi0uOTgzLjcyLTEuNjlzLS4yMzUtMS4yNjEtLjcyLTEuNjljLS40NDMtLjM4OS0xLjAzOS0uNjEtMS43NzMtLjYzOGwtLjIyMS0uMDE0Wm05Ljg0NyAxLjc3NGMtLjgwMyAwLTEuNDI2LjI2My0xLjg4My43NzYtLjQxNi40Ny0uNjM3IDEuMDY3LS42NzkgMS43NzN2LjMzM2MwIC44MTguMjIyIDEuNDgzLjY3OSAxLjk5NS40NTcuNTEzIDEuMDguNzc2IDEuODgzLjc3Ni44MDQgMCAxLjQyNy0uMjYzIDEuODg0LS43NzYuNDE1LS40Ny42MzctMS4wNTMuNjc4LTEuNzczdi0uMzMzYzAtLjgxNy0uMjIxLTEuNDgzLS42NzgtMS45OTUtLjQ1Ny0uNTEzLTEuMDgtLjc3Ni0xLjg4NC0uNzc2Wk0xOC4wMDMgMGE2IDYgMCAwIDEgMCAxMkgwVjMuNDIzQTMuNDIgMy40MiAwIDAgMSAzLjQyIDBoMTQuNTgzWiIvPjwvc3ZnPg==";function cl(e){let t=nn(),{onTranslateTheMainPage:n,onUserConfigChange:a,request:r,onTranslateLocalHtmlFile:u,onSwitchTranslationMode:o,onTranslateLocalSubtitleFile:i,onSetBuildinConfig:s,pageStatus:c,openEbookBuilderPage:l,openPricingPage:g,openEbookViewerPage:p,config:f,openAboutPage:d,onTranslateTheWholePage:b,onToggleEnabled:C,openOptionsPage:h,ontranslateToThePageEndImmediately:A,onSetPageLanguage:S,onToggleTranslate:U,onTranslateLocalPdfFile:R,onTranslatePdf:y,onRestorePage:T,ctx:k,currentUrl:v,currentLang:E,onClose:B,onTranslatePage:P,onSetLocalConfig:w,onMouseTriggerChanged:_,errorMsg:O,disabledButton:N,noPermissionPDF:M}=e,x=a,[L,I]=De(""),[$,z]=De(O),[Y,q]=De(null),[ae,Q]=De(null),{t:G,lang:pe}=zt(),he=70;pe.startsWith("zh")||(he=75);let re=null,K=null,se=null,me=null,ce=null,ye=null,ke=null,xe=null,Z=null,Ae=null,Le=null,Re=null;Ge(()=>{Nt.get(en,null).then(H=>{H?(q(H),Q(tn(H))):Q(!1)}).catch(H=>{Q(!1)})},[]);let Ne=!0,st=Rt();if(f){st&&f&&(Ne=f.generalRule.showSponsorOnSafari);let{translationService:H,translationServices:de,translationUrlPattern:$e}=f;Bn[H]&&(xe=Fs("translationService",H,k)),de&&de[H]?Re=de[H]||{}:Re={};try{Z=new URL(v||"")}catch{}if(v&&C3(v)){Ae=w3(Z.hostname),Le=v3(v);let{matches:Me,excludeMatches:Pe}=$e;K=Me.includes(Ae),re=Me.includes(Z.hostname),me=Pe.includes(Ae),se=Pe.includes(Z.hostname),ye=Me.includes(Le),ke=Pe.includes(Le)}}if(f&&E&&E!=="auto"){let{translationLanguagePattern:H}=f,{matches:de}=H;de.includes(E)?ce=!0:ce=!1}let Pt=H=>{H.preventDefault(),h()},pa=H=>{x(de=>(de.alpha?I("Success disable alpha!"):I("Success enable alpha!"),{...de,alpha:!de.alpha}))},Ht=H=>{x(de=>({...de,translationMode:H})),o(H)},Dn=()=>{x(H=>({...H,translationArea:"body"})),b()},Un=()=>{x(H=>({...H,translationArea:"main"})),n()},Oe=(H,de,$e,Me)=>{if(H==="default"){x(wn=>{let Jt={...wn.translationUrlPattern};return{...wn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...wn.translationUrlPattern,matches:Vn([Z?.hostname,Ae,v],Jt.matches),excludeMatches:Vn([Z?.hostname,Ae,v],Jt.excludeMatches)}}});return}let Pe=H,Ln=Pe==="matches"?"excludeMatches":"matches";Z&&x(wn=>{let Jt={...wn.translationUrlPattern};return Jt[Pe]=vs(de,Jt[Pe]),Me.length>0&&(Jt[Pe]=Vn(Me,Jt[Pe])),Jt[Ln]=Vn($e,Jt[Ln]),{...wn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...wn.translationUrlPattern,...Jt}}}),Pe==="matches"&&c==="Original"?setTimeout(()=>{P(),B()},100):Pe==="excludeMatches"&&c==="Translated"&&setTimeout(()=>{T(),B()},100)},qt=H=>{if(!H){x(Me=>{let Pe={...Me.translationLanguagePattern};return{...Me,translationLanguagePattern:{...Me.translationLanguagePattern,matches:Vn(E,Pe.matches),excludeMatches:Vn(E,Pe.excludeMatches)}}});return}let de=H,$e=de==="matches"?"excludeMatches":"matches";E&&x(Me=>{let Pe={...Me.translationLanguagePattern};return Pe[de]=vs(E,Pe[de]),Pe[$e]=Vn(E,Pe[$e]),{...Me,translationLanguagePattern:{...Me.translationLanguagePattern,...Pe}}}),de==="matches"&&c==="Original"&&setTimeout(()=>{P(),B()},100)},rt=Z?.pathname.toLowerCase().endsWith(".pdf"),He=G("translate");c==="Translated"||c==="Error"?He=G("show-original"):c==="Original"?rt?$u()&&Z.protocol==="file:"||M?He=G("translate-firefox-local-pdf"):fe()?He=G("noSupportTranslate-pdf"):He=G("translate-pdf"):He=G("translate"):He=G(c);let Yt=G("translateToThePageEndImmediately");(c==="Original"||c==="Translated")&&(f.shortcuts.toggleTranslatePage&&(I4()&&k.rule.fingerCountToToggleTranslagePageWhenTouching>=2?He+=` (${G(`fingers.${k.rule.fingerCountToToggleTranslagePageWhenTouching}`)})`:He+=` (${f.shortcuts.toggleTranslatePage})`),f.shortcuts.toggleTranslateToThePageEndImmediately&&(Yt+=` (${f.shortcuts.toggleTranslateToThePageEndImmediately})`));let _t=[];k&&(_t=Ed(k,"translationService"));let zn=H=>{H.preventDefault(),B()},mt=eg(k.config.translationService,k.config.targetLanguage),mn=ye||re||K,Ue=()=>ye?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!ye,onChange:H=>{let de=H.target.checked;Oe(de?"matches":"default",Le,[Le],[])}}),G("alwaysTranslateSomePage")]}):re?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!re,onChange:H=>{let de=H.target.checked;Oe(de?"matches":"default",Z.hostname,[Z.hostname,Ae,Le],[Ae])}}),G("alwaysTranslateSomeSiteOrWildSite")]}):K?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!K,onChange:H=>{let de=H.target.checked;Oe(de?"matches":"default",Ae,[Le,Z.hostname,Ae],[Z.hostname])}}),G("alwaysTranslateSomeSiteOrWildSite")]}):null;return V("div",{children:[V("div",{class:"popup-container px-6 pt-6 max-content",children:[V("div",{class:"text-sm",children:[V("div",{class:"flex justify-between mb-3 items-center",children:[V("label",{class:"inline-block text-label",children:[G("popupSourceLanguage"),"\uFF1A"]}),V(jn,{maxWidth:186,items:Xt.map(H=>({label:Go(H,f.interfaceLanguage),value:H,selected:H===k.sourceLanguage,onSelected:de=>{S(de.value)}}))})]}),f&&f.targetLanguage&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[G("popupTarget"),"\uFF1A"]}),V(jn,{maxWidth:186,items:mt.filter(H=>H!=="auto").map(H=>({label:Go(H,f.interfaceLanguage),value:H,selected:H===f.targetLanguage,onSelected:de=>{x($e=>({...$e,targetLanguage:de.value}))}}))})]}),xe&&_t.length>0&&V(Kt,{children:[V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[G("popupService"),"\uFF1A"]}),V(jn,{maxWidth:186,items:_t.map(H=>({label:`${G("translationServices."+H.id)}${H.ok?"":" "+(" "+(!ae&&!st&&H.providers&&H.providers.length>0?G("goLoginOrAction"):G("needAction")))}`,value:H.id,selected:H.selected,onSelected:de=>{let $e=_t.find(Me=>Me.id===de.value);if($e.ok){if(x(Me=>({...Me,translationService:$e.id})),c!="Translated")return;$e.props.length===0?setTimeout(()=>{P()},1):setTimeout(()=>{T()},1)}else x(Me=>({...Me,translationService:$e.id})),setTimeout(()=>{h()},100)}}))})]}),Re&&xe.props.length>0&&xe.props.map((H,de)=>V("div",{class:"pl-4 text-sm",children:V(ol,{field:H,value:Re[H.name],onChange:$e=>{x(Me=>{let Pe=Me.translationServices||{},Ln=Pe[xe.id]||{};return setTimeout(()=>{T()},1),{...Me,translationServices:{...Pe,[xe.id]:{...Ln,[H.name]:$e}}}})}},"field-"+de)},"service"+de))]}),Z&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:G("forThisSite")}),V(jn,{maxWidth:186,items:[{label:G("default"),value:"default",selected:re===!1&&se===!1&&!K&&!me&&!ye&&!ke,onSelected:()=>{Oe("default",Z.hostname,[],[]);let H=Z.hostname,de=k.localConfig.tempTranslationUrlMatches||[],$e=de.filter(Pe=>Pe.match!==H),Me=!1;$e.length!==de.length&&(Me=!0),Me&&w({...k.localConfig,tempTranslationUrlMatches:[...$e]})}},Le&&{label:G("alwaysTranslateSomeSite",{hostname:G("currentUrl")}),value:"matchesUrl",selected:ye,onSelected:()=>{Oe("matches",Le,[Le],[])}},{label:G("alwaysTranslateSomeSite",{hostname:Z.hostname}),value:"matches",selected:re,onSelected:H=>{Oe(H.value,Z.hostname,[Z.hostname,Ae,Le],[Ae])}},Ae&&{label:G("alwaysTranslateSomeSite",{hostname:Ae}),value:"matchesWild",selected:K,onSelected:()=>{Oe("matches",Ae,[Le,Z.hostname,Ae],[Z.hostname])}},Le&&{label:G("neverTranslateSomeSite",{hostname:G("currentUrl")}),value:"excludeMatchesUrl",selected:ke,onSelected:()=>{Oe("excludeMatches",Le,[Le],[])}},{label:G("neverTranslateSomeSite",{hostname:Z.hostname}),value:"excludeMatches",selected:se,onSelected:H=>{Oe(H.value,Z.hostname,[Z.hostname,Ae,Le],[Ae])}},Ae&&{label:G("neverTranslateSomeSite",{hostname:Ae}),value:"excludeMatchesWild",selected:me,onSelected:()=>{Oe("excludeMatches",Ae,[Z.hostname,Le,Ae],[Z.hostname])}}].filter(Boolean)})]}),_&&Br()&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[G("mouse-translate"),"\uFF1A"]}),V(jn,{maxWidth:186,items:Hu.filter(H=>!(Hu.includes(f.generalRule.mouseHoverHoldKey)&&H==="OtherCustom")).map(H=>{let de=G("mouseHoldKey",{key:H}),$e=Hu.includes(f.generalRule.mouseHoverHoldKey),Me=H===f.generalRule.mouseHoverHoldKey;return H==="Auto"?de=G("mouseHoldKeyAuto"):H==="Off"?de=G("mouseHoldKeyOff"):H==="OtherCustom"?de=$e?G("mouseHoldKeyOther"):G("mouseHoldKeyCustomKey",{key:f.generalRule.mouseHoverHoldKey}):H==="Other"&&(de=G("mouseHoldKeyOther")),$e||H==="OtherCustom"&&(Me=!0),{label:de,value:H,selected:Me,onSelected:Pe=>{Pe.value==="Other"?h("#interface"):_(Pe.value)}}})})]})]}),V("div",{class:"",children:V("button",{class:"py-2 mt-1 mb-5 main-button ",onClick:()=>{rt?y&&y():U()},"aria-busy":c==="Translating",disabled:N||c==="Translating",children:He})}),V("div",{class:"text-sm",children:L}),V("div",{class:`pb-2 text-sm ${$?"":"display-none"}`,children:$}),V("div",{class:"flex items-center justify-between flex-wrap",children:[mn?V(Ue,{}):E&&E!=="auto"?V("label",{for:"alwaysTranslateThisLanugage",class:"text-sm text-label text-overflow-ellipsis max-w-20",children:[V("input",{type:"checkbox",id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",checked:!!ce,onChange:H=>{let de=H.target.checked;qt(de?"matches":void 0)}}),G("alwaysTranslateSomeLanguage",{language:Go(E,f.interfaceLanguage,!1,!0)})]}):V("span",{}),V("div",{class:`flex flex-end flex-grow ${$?"display-none":""}`,children:V("span",{class:"immersive-translate-no-select muted text-sm",onClick:T3(7)(pa),children:["V",t,f.enabled?null:V("a",{href:"#",onClick:C,children:[" ","(",G("hasBeenDisabled"),")"]})]})})]})]}),V("footer",{children:[V("div",{class:"px-6 text-label",children:V(il,{isShowError:!1,request:r,setStorageBuildinConfig:s})}),V("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer text-label",children:[V("div",{class:"flex flex-row items-center justify-center secondary clickable",style:{width:70},onClick:Pt,children:[V(rl,{}),V("span",{class:"ml-1",children:G("options")})]}),Ne?V("a",{title:G(ae?"popup.openProForPro":"popup.openPro"),target:"_blank",href:ae?ms:gs,children:V("img",{src:ae?sl:ll})}):ae&&V("a",{title:G(ae?"popup.openProForPro":"popup.openPro"),target:"_blank",href:ae?ms:gs,children:V("img",{src:ae?sl:ll})}),V(ul,{label:G("more"),showArrow:!0,maxWidth:he,onSelected:H=>{H.value==="openPremium"?(globalThis.open(Pr),B()):H.value==="changeToOnlyTranslationMode"?Ht("translation"):H.value==="changeToDualTranslationMode"?Ht("dual"):H.value==="translateTheWholePage"?b():H.value==="translateToThePageEndImmediately"?A():H.value==="translateTheMainPage"?n():H.value==="showTranslationOnly"||(H.value==="translateLocalPdfFile"?R&&R():H.value==="translateLocalHtmlFile"?u&&u():H.value==="translateLocalSubtitleFile"?i&&i():H.value==="donate"?(globalThis.open(f.donateUrl),B()):H.value==="feedback"?(globalThis.open(f.feedbackUrl),B()):H.value==="options"?(h(),B()):H.value==="changeToTranslateTheWholePage"?Dn():H.value==="changeToTranslateTheMainPage"?Un():H.value==="about"?d():H.value==="toggleEnabled"?C():H.value==="openEbookViewer"?p():H.value==="openEbookBuilder"?l():H.value==="goPro"&&g())},menus:[f.translationMode==="dual"&&{label:"\u{1F524} "+G("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},f.translationMode==="translation"&&{label:"\u{1F521} "+G("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},f.translationArea==="main"&&{label:"\u{1F480} "+G("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},f.translationArea==="body"&&{label:"\u{1F4D6} "+G("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},{label:"\u26A1 "+Yt,value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+G("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+G("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+G("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},!fe()&&{label:"\u{1F310} "+G("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+G("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},ae===!1&&Ne&&{label:"\u{1F451} "+G("upgradeToPro"),value:"goPro"},{label:"\u2764\uFE0F "+G(Ne?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})]})]})}m();m();m();m();var dl={get:(e,t,n)=>{let a=t===void 0?e:{[e]:t};return ue.storage[n].get(a)},set:(e,t,n)=>ue.storage[n].set({[e]:t})};function si(e,t,n){let[a]=De(()=>typeof t=="function"?t():t),[r]=De(n),[u,o]=De(a),[i,s]=De(!1),[c,l]=De("");Ge(()=>{dl.get(e,a,r).then(p=>{p[e]&&o(p[e]),s(!0),l("")}).catch(p=>{s(!1),l(p)})},[e,a,r]);let g=da(p=>{let f=typeof p=="function"?p(u):p;j.debug("new settings",f),dl.set(e,f,r).then(()=>{o(f),s(!0),l("")}).catch(d=>{o(f),s(!1),l(d)})},[r,e,u]);return[u,g,i,c]}m();function ml(e,t,n){let a=[];return function(){let[u,o,i,s]=si(e,t,n),c=da(l=>{for(let g of a)g(l)},[]);return Ge(()=>(a.push(o),()=>{a.splice(a.indexOf(o),1)}),[o]),[u,c,i,s]}}function A3(e,t){return ml(e,t,"sync")}var G9="userConfig",V9=null,Y9=A3(G9,V9);function li(e){let[t,n,a,r]=Y9(),u=da(o=>{let i=typeof o=="function"?o(t):o;i&&(i.updatedAt=new Date().toISOString()),n(i),e&&e(i)},[t]);return[t,u,a,r,n]}m();m();async function ci(e){try{let t=new Date;j.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await ue.storage.local.set({[Fr]:t.toISOString()}),await J9(),fe()||await Wd()}catch(t){j.error("run cron task failed",t)}}async function k3(){let t=(await Lt()).interval;if(t){let n=await ue.storage.local.get(Fr);if(n&&n[Fr]){let a=n[Fr];if(Date.now()-new Date(a).getTime()a?(await ue.storage.local.set({buildinConfig:t}),j.info(`sync remote rules success, latest: ${new Date(r).toLocaleString()}`)):j.debug(`no need to sync rules, latest: ${a}`):j.info(`local version is too old, please update to ${o} or later`)}catch(e){j.error("sync rules error: ",e)}}m();m();m();m();m();var gl;function wl(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function R3(e,t=","){return e.map(wl).join(t)}var O3=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function mi(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function gi(e,t="@media "){return t+Gt(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(a=>`(${a}-width:${n[a]})`).join(" and "))).join(",")}function Gt(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function Q9(){}var ht={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function I3(e){return e.match(/[-=:;]/g)?.length||0}function xl(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(I3(e),15)<<18}var Z9=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function vl({n:e,i:t,v:n=[]},a,r,u){e&&(e=wl({n:e,i:t,v:n})),u=[...Gt(u)];for(let i of n){let s=a.theme("screens",i);for(let c of Gt(s&&gi(s)||a.v(i))){var o;u.push(c),r|=s?67108864|xl(c):i=="dark"?1073741824:c[0]=="@"?xl(c):(o=c,1<<~(/:([a-z-]+)/.test(o)&&~Z9.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:r,r:u,i:t}}var Al=new Map;function S3(e){if(e.d){let t=[],n=pl(e.r.reduce((a,r)=>r[0]=="@"?(t.push(r),a):r?pl(a,u=>pl(r,o=>{let i=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(i){let s=u.indexOf(i[1]);return~s?u.slice(0,s)+i[0]+u.slice(s+i[1].length):fl(u,o)}return fl(o,u)})):a,"&"),a=>fl(a,e.n?"."+O3(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((a,r)=>r+"{"+a+"}",e.d)}}function pl(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,a,r)=>t(a)+r)}function fl(e,t){return e.replace(/&/g,t)}var D3=new Intl.Collator("en",{numeric:!0});function X9(e,t){for(var n=0,a=e.length;n>1;0>=N3(e[r],t)?n=r+1:a=r}return a}function N3(e,t){let n=e.p&ht.o;return n==(t.p&ht.o)&&(n==ht.b||n==ht.o)?0:e.p-t.p||e.o-t.o||D3.compare(L3(e.n),L3(t.n))||D3.compare(M3(e.n),M3(t.n))}function L3(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function M3(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function hl(e,t){return Math.round(parseInt(e,16)*t)}function ma(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:a}=t,r=a?`var(${a})`:n;if(e.includes(""))return e.replace("",r);if(e[0]=="#"&&(e.length==4||e.length==7)){let u=(e.length-1)/3,o=[17,1,.062272][u-1];return`rgba(${[hl(e.substr(1,u),o),hl(e.substr(1+u,u),o),hl(e.substr(1+2*u,u),o),r]})`}return r=="1"?e:r=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${r})`)}function j3(e,t,n,a,r=[]){return function u(o,{n:i,p:s,r:c=[],i:l},g){let p=[],f="",d=0,b=0;for(let A in o||{}){var C,h;let S=o[A];if(A[0]=="@"){if(!S)continue;if(A[1]=="a"){p.push(...z3(i,s,Sl(""+S),g,s,c,l,!0));continue}if(A[1]=="l"){for(let U of Gt(S))p.push(...u(U,{n:i,p:(C=ht[A[7]],s&~ht.o|C),r:A[7]=="d"?[]:c,i:l},g));continue}if(A[1]=="i"){p.push(...Gt(S).map(U=>({p:-1,o:0,r:[],d:A+" "+U})));continue}if(A[1]=="k"){p.push({p:ht.d,o:0,r:[A],d:u(S,{p:ht.d},g).map(S3).join("")});continue}if(A[1]=="f"){p.push(...Gt(S).map(U=>({p:ht.d,o:0,r:[A],d:u(U,{p:ht.d},g).map(S3).join("")})));continue}}if(typeof S!="object"||Array.isArray(S))A=="label"&&S?i=S+mi(JSON.stringify([s,l,o])):(S||S===0)&&(A=A.replace(/[A-Z]/g,U=>"-"+U.toLowerCase()),b+=1,d=Math.max(d,(h=A)[0]=="-"?0:I3(h)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(h)?+!!RegExp.$1||-!!RegExp.$2:0)+1),f+=(f?";":"")+Gt(S).map(U=>g.s(A,U3(""+U,g.theme)+(l?" !important":""))).join(";"));else if(A[0]=="@"||A.includes("&")){let U=s;A[0]=="@"&&(A=A.replace(/\bscreen\(([^)]+)\)/g,(R,y)=>{let T=g.theme("screens",y);return T?(U|=67108864,gi(T,"")):R}),U|=xl(A)),p.push(...u(S,{n:i,p:U,r:[...c,A],i:l},g))}else p.push(...u(S,{p:s,r:[...c,A]},g))}return p.unshift({n:i,p:s,o:Math.max(0,15-b)+1.5*Math.min(d||15,15),r:c,d:f}),p.sort(N3)}(e,vl(t,n,a,r),n)}function U3(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,a,r,u,o="")=>{let i=t(r,o);return typeof i=="function"&&/color|fill|stroke/i.test(r)?ma(i):""+Gt(i).filter(s=>Object(s)!==s)})}function kl(e,t){let n,a=[];for(let r of e)r.d&&r.n?n?.p==r.p&&""+n.r==""+r.r?(n.c=[n.c,r.c].filter(Boolean).join(" "),n.d=n.d+";"+r.d):a.push(n={...r,n:r.n&&t}):a.push({...r,n:r.n&&t});return a}function El(e,t,n=ht.u,a,r){let u=[];for(let o of e)for(let i of function(s,c,l,g,p){s={...s,i:s.i||p};let f=function(d,b){let C=Al.get(d.n);return C?C(d,b):b.r(d.n,d.v[0]=="dark")}(s,c);return f?typeof f=="string"?({r:g,p:l}=vl(s,c,l,g),kl(El(Sl(f),c,l,g,s.i),s.n)):Array.isArray(f)?f.map(d=>{var b,C;return{o:0,...d,r:[...Gt(g),...Gt(d.r)],p:(b=l,C=d.p??l,b&~ht.o|C)}}):j3(f,s,c,l,g):[{c:wl(s),p:0,o:0,r:[]}]}(o,t,n,a,r))u.splice(X9(u,i),0,i);return u}function z3(e,t,n,a,r,u,o,i){return kl((i?n.flatMap(s=>El([s],a,r,u,o)):El(n,a,r,u,o)).map(s=>s.p&ht.o&&(s.n||t==ht.b)?{...s,p:s.p&~ht.o|t,o:0}:s),e)}function eb(e,t,n,a){var r;return r=(u,o)=>{let{n:i,p:s,r:c,i:l}=vl(u,o,t);return n&&z3(i,t,n,o,s,c,l,a)},Al.set(e,r),e}function bl(e,t,n){if(e[e.length-1]!="("){let a=[],r=!1,u=!1,o="";for(let i of e)if(!(i=="("||/[~@]$/.test(i))){if(i[0]=="!"&&(i=i.slice(1),r=!r),i.endsWith(":")){a[i=="dark:"?"unshift":"push"](i.slice(0,-1));continue}i[0]=="-"&&(i=i.slice(1),u=!u),i.endsWith("-")&&(i=i.slice(0,-1)),i&&i!="&"&&(o+=(o&&"-")+i)}o&&(u&&(o="-"+o),t[0].push({n:o,v:a.filter(tb),i:r}))}}function tb(e,t,n){return n.indexOf(e)==t}var F3=new Map;function Sl(e){let t=F3.get(e);if(!t){let n=[],a=[[]],r=0,u=0,o=null,i=0,s=(c,l=0)=>{r!=i&&(n.push(e.slice(r,i+l)),c&&bl(n,a)),r=i+1};for(;i1?g.slice(0,-1)+mi(JSON.stringify([g,p])):g+"("+R3(p)+")",ht.a,p,/@$/.test(g))],a)}l=n.lastIndexOf("(",l-1)}n.length=l+1}else/[~@]/.test(c)&&e[i+1]=="("&&a.unshift([])}s(!0),F3.set(e,t=a[0])}return t}function H3(e,t,n){return t.reduce((a,r,u)=>a+n(r)+e[u+1],e[0])}function q3(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?H3(e,t,n=>yl(n).trim()):t.filter(Boolean).reduce((n,a)=>n+yl(a),e?yl(e):"")}function yl(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=q3(e[0],e.slice(1)))&&(n+=" "+t);else for(let a in e)e[a]&&(n+=" "+a);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var iP=W3("@"),sP=W3("~");function W3(e){return new Proxy(function(n,...a){return t("",n,a)},{get(n,a){return a in n?n[a]:function(r,...u){return t(a,r,u)}}});function t(n,a,r){return R3(Sl(n+e+"("+q3(a,r)+")"))}}function Tl(e,t){return Array.isArray(e)?P3(H3(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?P3(e):[e]}var nb=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function P3(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],a=[n[0]],r=[];for(;t=nb.exec(e);)t[4]&&(n.shift(),r.shift()),t[3]?(r.unshift(t[3]),n.unshift({}),a.push(r.reduce((u,o)=>({[o]:u}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),a.push(r.reduce((u,o)=>({[o]:u}),n[0]))),n[0][t[1]]=t[2]);return a}function $3(e,...t){var n;let a=Tl(e,t),r=(a.find(u=>u.label)?.label||"css")+mi(JSON.stringify(a));return n=(u,o)=>kl(a.flatMap(i=>j3(i,u,o,ht.o)),r),Al.set(r,n),r}var lP=new Proxy(function(e,t){return _3("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,a){return _3(t,n,a)}}});function _3(e,t,n){return{toString(){return $3({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function ee(e,t,n){return[e,ab(t,n)]}function ab(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,a)=>({[e]:t?t(n,a):Cl(n,1)}):n=>e||{[n[1]]:Cl(n,2)}}function Cl(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function te(e,t,n,a){return[e,rb(t,n,a)]}function rb(e,t,n){let a=typeof t=="string"?(r,u)=>({[t]:n?n(r,u):r._}):t||(({1:r,_:u},o,i)=>({[r||i]:u}));return(r,u)=>{let o=K3(e||r[1]),i=u.theme(o,r.$$)??fr(r.$$,o,u);if(i!=null)return r._=Cl(r,0,i),a(r,u,o)}}function it(e,t={},n){return[e,ub(t,n)]}function ub(e={},t){return(n,a)=>{let{section:r=K3(n[0]).replace("-","")+"Color"}=e,[u,o]=ob(n.$$);if(!u)return;let i=a.theme(r,u)||fr(u,r,a);if(!i||typeof i=="object")return;let{opacityVariable:s=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:c=r.replace("Color","Opacity"),property:l=r,selector:g}=e,p=a.theme(c,o||"DEFAULT")||o&&fr(o,c,a),f=t||(({_:b})=>{let C=gu(l,b);return g?{[g]:C}:C});n._={value:ma(i,{opacityVariable:s||void 0,opacityValue:p||void 0}),color:b=>ma(i,b),opacityVariable:s||void 0,opacityValue:p||void 0};let d=f(n,a);if(!n.dark){let b=a.d(r,u,i);b&&b!==i&&(n._={value:ma(b,{opacityVariable:s||void 0,opacityValue:p||"1"}),color:C=>ma(b,C),opacityVariable:s||void 0,opacityValue:p||void 0},d={"&":d,[a.v("dark")]:f(n,a)})}return d}}function ob(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function gu(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function fr(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=di(U3(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function K3(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function di(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",a,r="")=>di(n)+a+di(r)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var cP=Symbol();var G3=new Proxy(Q9,{apply(e,t,n){return gl(n[0])},get(e,t){let n=gl[t];return typeof n=="function"?function(){return n.apply(gl,arguments)}:n}});var dP=function e(t){return new Proxy(function(n,...a){return B3(t,"",n,a)},{get(n,a){return a==="bind"?e:a in n?n[a]:function(r,...u){return B3(t,a,r,u)}}})}();function B3(e,t,n,a){return{toString(){let r=Tl(n,a),u=O3(t+mi(JSON.stringify([t,r])));return(typeof e=="function"?e:G3)($3({[`@keyframes ${u}`]:Tl(n,a)})),u}}}m();m();m();m();m();var V3={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...Vt(4,"rem",4,.5,.5),...Vt(12,"rem",4,5),14:"3.5rem",...Vt(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Fe("blur"),backdropBrightness:Fe("brightness"),backdropContrast:Fe("contrast"),backdropGrayscale:Fe("grayscale"),backdropHueRotate:Fe("hueRotate"),backdropInvert:Fe("invert"),backdropOpacity:Fe("opacity"),backdropSaturate:Fe("saturate"),backdropSepia:Fe("sepia"),backgroundColor:Fe("colors"),backgroundImage:{none:"none"},backgroundOpacity:Fe("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...Vt(200,"",100,0,50),...Vt(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Fe("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Fe("spacing"),borderWidth:{DEFAULT:"1px",...dn(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Fe("colors"),caretColor:Fe("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...Vt(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Fe("borderColor"),divideOpacity:Fe("borderOpacity"),divideWidth:Fe("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...pu(2,6),...pu(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Fe("spacing"),gradientColorStops:Fe("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...pu(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...pu(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...Vt(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...Vt(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Fe("spacing"),placeholderColor:Fe("colors"),placeholderOpacity:Fe("opacity"),outlineColor:Fe("colors"),outlineOffset:dn(8,"px"),outlineWidth:dn(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Fe("colors"),ringOffsetWidth:dn(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...dn(8,"px")},rotate:{...dn(2,"deg"),...dn(12,"deg",3),...dn(180,"deg",45)},saturate:Vt(200,"",100,0,50),scale:{...Vt(150,"",100,0,50),...Vt(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Fe("spacing"),scrollPadding:Fe("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...dn(2,"deg"),...dn(12,"deg",3)},space:Fe("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:Vt(2),textColor:Fe("colors"),textDecorationColor:Fe("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...dn(8,"px")},textUnderlineOffset:{auto:"auto",...dn(8,"px")},textIndent:Fe("spacing"),textOpacity:Fe("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Fe("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...pu(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...Vt(50,"",1,0,10),auto:"auto"}};function pu(e,t){let n={};do for(var a=1;at(e)}var LP={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${V3.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${V3.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},FP=[ee("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:fr(`[${t}]`,"",n)}}})),ee("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),te("aspect-","aspectRatio"),ee("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:a,padding:r}=t("container"),u={width:"100%",marginRight:a&&"auto",marginLeft:a&&"auto",...o("xs")};for(let i in n){let s=n[i];typeof s=="string"&&(u[gi(s)]={"&":{maxWidth:s,...o(i)}})}return u;function o(i){let s=r&&(typeof r=="string"?r:r[i]||r.DEFAULT);if(s)return{paddingRight:s,paddingLeft:s}}}),te("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),ee("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),ee("box-(border|content)","boxSizing",({1:e})=>e+"-box"),ee("hidden",{display:"none"}),ee("table-(auto|fixed)","tableLayout"),ee(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",ee("isolate","isolation"),ee("object-(contain|cover|fill|none|scale-down)","objectFit"),te("object-","objectPosition"),ee("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",pi),ee("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),ee("(static|fixed|absolute|relative|sticky)","position"),te("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),te("-?(top|bottom|left|right)(?:$|-)","inset"),ee("(visible|collapse)","visibility"),ee("invisible",{visibility:"hidden"}),te("-?z-","zIndex"),ee("flex-((row|col)(-reverse)?)","flexDirection",Y3),ee("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),te("(flex-(?:grow|shrink))(?:$|-)"),te("(flex)-"),te("grow(?:$|-)","flexGrow"),te("shrink(?:$|-)","flexShrink"),te("basis-","flexBasis"),te("-?(order)-"),"-?(order)-(\\d+)",te("grid-cols-","gridTemplateColumns"),ee("grid-cols-(\\d+)","gridTemplateColumns",X3),te("col-","gridColumn"),ee("col-(span)-(\\d+)","gridColumn",Z3),te("col-start-","gridColumnStart"),ee("col-start-(auto|\\d+)","gridColumnStart"),te("col-end-","gridColumnEnd"),ee("col-end-(auto|\\d+)","gridColumnEnd"),te("grid-rows-","gridTemplateRows"),ee("grid-rows-(\\d+)","gridTemplateRows",X3),te("row-","gridRow"),ee("row-(span)-(\\d+)","gridRow",Z3),te("row-start-","gridRowStart"),ee("row-start-(auto|\\d+)","gridRowStart"),te("row-end-","gridRowEnd"),ee("row-end-(auto|\\d+)","gridRowEnd"),ee("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>pi(Y3(e))),ee("grid-flow-(dense)","gridAutoFlow"),te("auto-cols-","gridAutoColumns"),te("auto-rows-","gridAutoRows"),te("gap-x(?:$|-)","gap","columnGap"),te("gap-y(?:$|-)","gap","rowGap"),te("gap(?:$|-)","gap"),"(justify-(?:items|self))-",ee("justify-","justifyContent",J3),ee("(content|items|self)-",e=>({["align-"+e[1]]:J3(e)})),ee("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),te("p([xytrbl])?(?:$|-)","padding",hr("padding")),te("-?m([xytrbl])?(?:$|-)","margin",hr("margin")),te("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),ee("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),te("w-","width"),te("min-w-","minWidth"),te("max-w-","maxWidth"),te("h-","height"),te("min-h-","minHeight"),te("max-h-","maxHeight"),te("font-","fontWeight"),te("font-","fontFamily",({_:e})=>typeof(e=Gt(e))[1]=="string"?{fontFamily:Cn(e)}:{fontFamily:Cn(e[0]),...e[1]}),ee("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),ee("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),ee("italic","fontStyle"),ee("not-italic",{fontStyle:"normal"}),ee("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...ga({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),te("tracking-","letterSpacing"),te("leading-","lineHeight"),ee("list-(inside|outside)","listStylePosition"),te("list-","listStyleType"),ee("list-","listStyleType"),te("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),it("placeholder-",{property:"color",selector:"&::placeholder"}),ee("text-(left|center|right|justify|start|end)","textAlign"),ee("text-(ellipsis|clip)","textOverflow"),te("text-opacity-","textOpacity","--tw-text-opacity"),it("text-",{property:"color"}),te("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),te("indent-","textIndent"),ee("(overline|underline|line-through)","textDecorationLine"),ee("no-underline",{textDecorationLine:"none"}),te("underline-offset-","textUnderlineOffset"),it("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),te("decoration-","textDecorationThickness"),ee("decoration-","textDecorationStyle"),ee("(uppercase|lowercase|capitalize)","textTransform"),ee("normal-case",{textTransform:"none"}),ee("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),ee("align-","verticalAlign"),ee("whitespace-","whiteSpace"),ee("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),ee("break-words",{overflowWrap:"break-word"}),ee("break-all",{wordBreak:"break-all"}),ee("break-keep",{wordBreak:"keep-all"}),it("caret-",{opacityVariable:!1,opacitySection:"opacity"}),it("accent-",{opacityVariable:!1,opacitySection:"opacity"}),ee("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${Sa(e," ")},var(--tw-gradient-stops))`),it("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),it("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),it("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),ee("bg-(fixed|local|scroll)","backgroundAttachment"),ee("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),ee(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),ee("bg-blend-","backgroundBlendMode"),ee("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),te("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),it("bg-",{section:"backgroundColor"}),te("bg-","backgroundImage"),te("bg-","backgroundPosition"),ee("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",pi),te("bg-","backgroundSize"),te("rounded(?:$|-)","borderRadius"),te("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${Sa(n[0])}-radius`]:t,[`border-${Sa(n[1])}-radius`]:t}}),ee("border-(collapse|separate)","borderCollapse"),te("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),ee("border-(solid|dashed|dotted|double|none)","borderStyle"),te("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...ga({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),it("border-([xytrbl])-",{section:"borderColor"},hr("border","Color")),it("border-"),te("border-([xytrbl])(?:$|-)","borderWidth",hr("border","Width")),te("border(?:$|-)","borderWidth"),te("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),ee("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),ee("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),te("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${Sa(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${Sa(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),it("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),te("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),it("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),te("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),ee("ring-inset",{"--tw-ring-inset":"inset"}),it("ring-",{property:"--tw-ring-color"}),te("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...ga({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":ma(t("ringOffsetColor","","#fff")),"--tw-ring-color":ma(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),it("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),te("shadow(?:$|-)","boxShadow",({_:e})=>({...ga({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Cn(e),"--tw-shadow-colored":Cn(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),te("(opacity)-"),ee("mix-blend-","mixBlendMode"),...Q3(),...Q3("backdrop-"),te("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Cn(e),transitionTimingFunction:e._=="none"?void 0:Cn(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:Cn(t("transitionDuration",""))})),te("duration(?:$|-)","transitionDuration","transitionDuration",Cn),te("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Cn),te("delay(?:$|-)","transitionDelay","transitionDelay",Cn),te("animate(?:$|-)","animation",(e,{theme:t,h:n,e:a})=>{let r=Cn(e),u=r.split(" "),o=t("keyframes",u[0]);return o?{["@keyframes "+(u[0]=a(n(u[0])))]:o,animation:u.join(" ")}:{animation:r}}),"(transform)-(none)",ee("transform",Ll),ee("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":ep(e=="gpu")})),te("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...Ll()})),te("-?(rotate)-","rotate",Dl),te("-?(translate-[xy])-","translate",Dl),te("-?(skew-[xy])-","skew",Dl),ee("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",pi),"(appearance)-",te("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",te("(cursor)-"),"(cursor)-",ee("snap-(none)","scroll-snap-type"),ee("snap-(x|y|both)",({1:e})=>({...ga({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),ee("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),ee("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),ee("snap-(normal|always)","scroll-snap-stop"),ee("scroll-(auto|smooth)","scroll-behavior"),te("scroll-p([xytrbl])?(?:$|-)","padding",hr("scroll-padding")),te("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",hr("scroll-margin")),ee("touch-(auto|none|manipulation)","touch-action"),ee("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...ga({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),ee("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),ee("outline",{outlineStyle:"solid"}),ee("outline-(dashed|dotted|double)","outlineStyle"),te("-?(outline-offset)-"),it("outline-",{opacityVariable:!1,opacitySection:"opacity"}),te("outline-","outlineWidth"),"(pointer-events)-",te("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],ee("select-(none|text|all|auto)","userSelect"),it("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),it("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),te("stroke-","strokeWidth"),ee("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),ee("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function pi(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function Y3(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function Sa(e,t="-"){let n=[];for(let a of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[a]);return n.join(t)}function Cn(e){return e&&""+(e._||e)}function J3({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function hr(e,t=""){return({1:n,_:a})=>{let r={x:"lr",y:"tb"}[n]||n+n;return r?{...gu(e+"-"+Sa(r[0])+t,a),...gu(e+"-"+Sa(r[1])+t,a)}:gu(e+t,a)}}function Q3(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let a of t)n[`--tw-${e}${a}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...ga(n),[`${e}filter`]:t.map(a=>`var(--tw-${e}${a})`).join(" ")},[`(${e}filter)-(none)`,ee(`${e}filter`,n),...t.map(a=>te(`${a[0]=="h"?"-?":""}(${e}${a})(?:$|-)`,a,({1:r,_:u})=>({[`--tw-${r}`]:Gt(u).map(o=>`${a}(${o})`).join(" "),...n})))]}function Dl({1:e,_:t}){return{["--tw-"+e]:t,...Ll()}}function Ll(){return{...ga({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":ep()}),transform:"var(--tw-transform)"}}function ep(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function Z3({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function X3({1:e}){return`repeat(${e},minmax(0,1fr))`}function ga(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}m();m();var fi=globalThis||(typeof window<"u"?window:self),lb=Object.create,Fl=Object.defineProperty,cb=Object.getOwnPropertyDescriptor,db=Object.getOwnPropertyNames,mb=Object.getPrototypeOf,gb=Object.prototype.hasOwnProperty,pb=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),fb=(e,t)=>{for(var n in t)Fl(e,n,{get:t[n],enumerable:!0})},Ml=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of db(t))!gb.call(e,r)&&r!==n&&Fl(e,r,{get:()=>t[r],enumerable:!(a=cb(t,r))||a.enumerable});return e},hb=(e,t,n)=>(Ml(e,t,"default"),n&&Ml(n,t,"default")),np=(e,t,n)=>(n=e!=null?lb(mb(e)):{},Ml(t||!e||!e.__esModule?Fl(n,"default",{value:e,enumerable:!0}):n,e)),ap=pb((e,t)=>{(function(n,a){typeof define=="function"&&define.amd?define([],a):typeof e<"u"?a():(a(),n.FileSaver={})})(e,function(){"use strict";function n(c,l){return typeof l>"u"?l={autoBom:!1}:typeof l!="object"&&(l={autoBom:!l}),l.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function a(c,l,g){var p=new XMLHttpRequest;p.open("GET",c),p.responseType="blob",p.onload=function(){s(p.response,l,g)},p.onerror=function(){},p.send()}function r(c){var l=new XMLHttpRequest;l.open("HEAD",c,!1);try{l.send()}catch{}return 200<=l.status&&299>=l.status}function u(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var l=document.createEvent("MouseEvents");l.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(l)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof fi=="object"&&fi.global===fi?fi:void 0,i=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(c,l,g){var p=o.URL||o.webkitURL,f=document.createElement("a");l=l||c.name||"download",f.download=l,f.rel="noopener",typeof c=="string"?(f.href=c,f.origin===location.origin?u(f):r(f.href)?a(c,l,g):u(f,f.target="_blank")):(f.href=p.createObjectURL(c),setTimeout(function(){p.revokeObjectURL(f.href)},4e4),setTimeout(function(){u(f)},0))}:"msSaveOrOpenBlob"in navigator?function(c,l,g){if(l=l||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(n(c,g),l);else if(r(c))a(c,l,g);else{var p=document.createElement("a");p.href=c,p.target="_blank",setTimeout(function(){u(p)})}}:function(c,l,g,p){if(p=p||open("","_blank"),p&&(p.document.title=p.document.body.innerText="downloading..."),typeof c=="string")return a(c,l,g);var f=c.type==="application/octet-stream",d=/constructor/i.test(o.HTMLElement)||o.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||f&&d||i)&&typeof FileReader<"u"){var C=new FileReader;C.onloadend=function(){var S=C.result;S=b?S:S.replace(/^data:[^;]*;/,"data:attachment/file;"),p?p.location.href=S:location=S,p=null},C.readAsDataURL(c)}else{var h=o.URL||o.webkitURL,A=h.createObjectURL(c);p?p.location=A:location.href=A,p=null,setTimeout(function(){h.revokeObjectURL(A)},4e4)}});o.saveAs=s.saveAs=s,typeof t<"u"&&(t.exports=s)})}),rp={};fb(rp,{default:()=>hi});var bb=np(ap());hb(rp,np(ap()));var{default:tp,...yb}=bb,hi=tp!==void 0?tp:yb;m();m();m();m();m();m();var b_=Ve().REDIRECT_URL;function kb(){let[e,t]=De(null);return Ge(()=>{Yn().then(a=>{t(a)})},[]),[e,a=>{t(a),kn(a)}]}async function Sb(e,t,n){try{if(t===null)return"noupdate";let a=await Mb(e),r=await Yn();r.accountLastSyncedAt=Date.now(),j.debug("settings",t),j.debug("local settings.updatedAt",t.updatedAt),j.debug("remote settings.updatedAt",a.updatedAt),j.debug("last synced at",r.accountLastSyncedAt);let u=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(u=!0),!u&&t.updatedAt>a.updatedAt&&(u=!0),j.debug("isUpload",u),u)return await Fb(e,t),await kn(r),"upload";let o=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(o=!0),!o&&t.updatedAt0&&Nt.remove(en),a}}function ip(e,t){let n=Lb(),[a,r]=kb();Ge(()=>{!n||!n.token||a&&a.proAutoSync===!1||Db(n)&&Sb(n.token,e,t)},[e,n])}function Db(e){return tn(e)?!0:new Date(e.createTime){Nt.get(en,null).then(n=>{t(n)})},[t]),e}function Mb(e){return(location.href?.indexOf("popup.html")>0?ya:oe)({responseType:"json",url:ds+"/v1/user/settings",method:"get",headers:{token:e}}).then(n=>n.data)}function Fb(e,t){return(location.href?.indexOf("popup.html")>0?ya:oe)({responseType:"json",url:ds+"/v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(a=>a.data)}function Pl(e){let{onClose:t}=e,[n,a]=De("Original"),[r,u,o,i]=li(()=>{setTimeout(()=>{S("updateGlobalContext",!1)()},250)});ip(r,u);let[s,c]=De(null),[l,g]=De(globalThis.location.href),[p,f]=De("auto"),[d,b]=De(null),C=N=>{a(N.detail)},h=N=>{f(N);let M=E3(l,N,s.sourceLanguageUrlPattern);u(x=>({...x,sourceLanguageUrlPattern:M})),an(N)},A=()=>{g(globalThis.location.href)};Ge(()=>(document.addEventListener(Ou,C,!1),Lt().then(N=>{c(N);let M=pt();f(M);let x=qe();a(x),ci(N.interval)}),document.addEventListener("urlChange",A),()=>{document.removeEventListener("pageTranslatedStatus",C),document.removeEventListener("urlChange",A)}),[]),Ge(()=>{Lt().then(N=>{c(N)})},[r]),Ge(()=>{l&&s&&ln({url:l,config:s}).then(N=>{b(N)})},[l,s]);let S=(N,M,x={})=>()=>{mr({method:N,data:x||{}}),M&&t()},U=()=>{t()},R=()=>{u(N=>({...N,enabled:!N.enabled})),setTimeout(()=>{U()},50)},y=()=>{Rs(),setTimeout(()=>{U()},50)},T=()=>{Rs(),setTimeout(()=>{U()},50)},k=(N="")=>{Ga(!0,N),setTimeout(()=>{t()},50)},v=()=>{bo(w4),setTimeout(()=>{globalThis.close()},50)},E=()=>{ho(),setTimeout(()=>{t()},50)},B=()=>{yo(),setTimeout(()=>{t()},50)},P=()=>{Hd(),setTimeout(()=>{t()},50)},w=()=>{xo(),setTimeout(()=>{t()},50)},_=()=>{qd(),setTimeout(()=>{t()},50)},O=N=>{u(M=>({...M,generalRule:{...M.generalRule,mouseHoverHoldKey:N}}))};return!s||!d?null:V(cl,{openEbookViewerPage:B,openEbookBuilderPage:w,onSwitchTranslationMode:N=>{S("switchTranslationMode",!0,{mode:N})()},onTranslateLocalHtmlFile:P,onTranslateLocalSubtitleFile:_,request:oe,onClose:U,onToggleEnabled:R,onTranslateTheWholePage:S("translateTheWholePage",!0),openOptionsPage:k,openPricingPage:v,onToggleTranslate:S("toggleTranslatePage",!0),onTranslateTheMainPage:S("translateTheMainPage",!0),ontranslateToThePageEndImmediately:S("translateToThePageEndImmediately",!0),onTranslatePage:S("translatePage",!0),onRestorePage:S("restorePage",!1),onTranslatePdf:y,openAboutPage:E,onTranslateLocalPdfFile:T,onSetPageLanguage:h,onUserConfigChange:u,config:s,pageStatus:n,ctx:d,currentUrl:l,currentLang:p,onSetLocalConfig:fo,onSetBuildinConfig:Bd,onMouseTriggerChanged:O})}function Pb(e,t){for(let n of t){if(fe()&&!$u()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}var _l={position:"right",right:0,top:335},Ft={..._l},xi=!1,Da=null,Sn=null,Ei=null,Bl=null,br=null,Rl=null,sp=6,bi,yi,cp=null,dp=null;async function Il(){let e=Ve();Rl=await _d(),Ft=Rl.pagePopupConfig||Ft;let t=document.createElement("div");t.id="immersive-translate-popup",t.setAttribute("style","all: initial"),document.documentElement.appendChild(t);let n=t.attachShadow({mode:"open"});Bl=n;let a=[e.IMMERSIVE_TRANSLATE_PICO_CSS,e.IMMERSIVE_TRANSLATE_COMMON_CSS,e.IMMERSIVE_TRANSLATE_POPUP_CSS,e.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);Pb(n,[a]);let r=document.createElement("div");r.innerHTML=e.IMMERSIVE_TRANSLATE_POPUP_HTML,n.appendChild(r),Da=n.querySelector("#immersive-translate-popup-container");let o=n.querySelector("#immersive-translate-popup-btn");Sn=o,Ei=n.querySelector("#mount"),Da.setAttribute("style",Ol(Ft)),zl(),o.addEventListener("mousedown",mp),o.addEventListener("touchstart",Rb),globalThis.addEventListener("resize",s=>{Da.setAttribute("style",Ol(Ft))})}function _b(){lu(null,Ei),Ei.style.display="none",Sn.style.display="block",br=setTimeout(()=>{zl(!0)},2e3)}function lp(e){let t=e.querySelector("#mount"),n=()=>{_b()},a=r=>{r&&r.target&&r.target.id==="immersive-translate-popup-overlay"&&n()};(async()=>{let r=await Lt();lu(V(x3,{lang:r.interfaceLanguage,fallbackLang:"zh-CN",translations:Gg,children:V("div",{onClick:a,id:"immersive-translate-popup-overlay",class:"immersive-translate-popup-overlay",children:V("div",{class:"immersive-translate-popup-wrapper",style:Bb(),children:V(Pl,{onClose:n})})})}),t)})().then(()=>{Sn.style.display="none",Ei.style.display="block"})}function Bb(){let e=Nl(),t=e.height,{position:n,top:a,left:r}=Ft,u={position:"fixed"},o=300,i=300,s=100;return yc()&&(n=_l.position,a=_l.top),n==="right"||n==="left"?(u.top=a-s,u.top+o>=t?(u.bottom=30,delete u.top):u.top<=10&&(u.top=10),n==="right"?u.right=0:n==="left"&&(u.left=0)):(n==="top"||n==="bottom")&&(u.left=r-s,u.left+i>=e.width?(u.right=0,delete u.left):u.left<=10&&(u.left=0),n==="top"?u.top=0:n==="bottom"&&(u.bottom=0)),u}function Nl(){return{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}function mp(e){dp=Da.getAttribute("style"),bi=e.pageX,yi=e.pageY,br&&clearTimeout(br),xi=!1,Sn.style.opacity="1",Sn.style.transform="none",cp=Sn.getAttribute("style"),globalThis.addEventListener("mousemove",jl),globalThis.addEventListener("mouseup",Ul),globalThis.addEventListener("touchmove",gp),globalThis.addEventListener("touchend",Ti),globalThis.addEventListener("touchcancel",Ti)}function Rb(e){e.preventDefault&&e.preventDefault(),mp(e.changedTouches[0])}function gp(e){jl(e.changedTouches[0])}function Ti(e){e.preventDefault&&e.preventDefault(),Ul(e.changedTouches[0])}function jl(e){e.preventDefault&&e.preventDefault(),xi=!0,Da.setAttribute("style",`left:${e.clientX}px;top:${e.clientY}px;transform:scale(1.6);`)}function Ul(e){e.preventDefault&&e.preventDefault(),Ib(),br&&clearTimeout(br),bi=bi||0,yi=yi||0;let t=Math.abs(e.pageX-bi),n=Math.abs(e.pageY-yi);t{zl(!0)},2e3)}function zl(e=!1){Sn.style.opacity="0.4";let t="";Ft.position==="left"?t="translateX(-40%)":Ft.position==="right"?t="translateX(40%)":Ft.position==="top"?t="translateY(-40%)":Ft.position==="bottom"&&(t="translateY(40%)"),Sn.style.transform=t,e&&(Sn.style.transition="transform 0.2s ease-in-out, opacity 0.2s ease-in-out")}function Ib(){globalThis.removeEventListener("mousemove",jl),globalThis.removeEventListener("mouseup",Ul),globalThis.removeEventListener("touchmove",gp),globalThis.removeEventListener("touchend",Ti),globalThis.removeEventListener("touchcancel",Ti)}function Ol(e){let t=Nb(e);return Object.keys(t).map(n=>typeof t[n]=="number"?`${n}:${t[n]}px;`:"").join("")}function Nb(e){let{position:t,...n}=e,a=Nl(),r={};return t==="left"?(r.left=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="right"?(r.right=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="top"?(r.top=0,n.left>a.width?r.left=a.width-100:r.left=n.left):t==="bottom"&&(r.bottom=0,n.left>a.width?r.left=a.width-100:r.left=n.left),r}var Ci=!1;async function pp(e){if(!e){let t=await Lt(),n={url:globalThis.location.href,config:t};e=await ln(n)}e.config.debug&&j.setLevel("debug"),e.isTranslateExcludeUrl?j.debug("detect exclude url, do not inject anything."):(Kn().any||fe())&&e.rule.isShowUserscriptPagePopup&&(Ci||(Ci=!0,Il().catch(t=>{j.error("init popup error",t)})))}async function fp(){Ci||(Ci=!0,Il().catch(e=>{j.error("init popup error",e)}))}var hp=!1,Ep=[()=>{Ye.unbind()}],ql=[...Ep],jb=bt(async()=>{await Ga()},50),Ub=bt(async()=>{await ho()},50),zb=bt(async()=>{await xo()},50),Hb=bt(async()=>{await yo()},50),Tp=bt(e=>{mr({method:e,data:{trigger:"userscript_menu"}})},50),qb=bt(()=>{lo();let e=new CustomEvent($n,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},200),Wb=bt(()=>{po();let e=new CustomEvent($n,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},200),$b=bt(()=>{mo();let e=new CustomEvent($n,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},200);function Kb(e,t){let n=e.document;if(hp)return;if(hp=!0,fe()||Sd(),n.addEventListener("securitypolicyviolation",ry),document.addEventListener(ge+"DocumentMessageUser",vp),document.addEventListener(ge+"DocumentMessageUpdateUser",Ap),document.addEventListener(ge+"ChangeSuccessService",kp.bind(null,t)),document.addEventListener(Bu,ty.bind(null,t)),n.addEventListener(ge+"EbookLoaded",ay),n.addEventListener(u4,ny),n.addEventListener(o4,uy.bind(null,t)),n.addEventListener("click",r=>{Jb(r,t)}),fe()&&(globalThis.top!=globalThis.self?e.addEventListener("message",Vb,!1):n.addEventListener($n,Gb)),globalThis.top===globalThis.self){let r=ta.rootIframe(zu);r.handleAsk("getRateLimitDelay",nm),r.handleAsk("throttleRequest",zm)}}function fu(e,t){oy(),Kb(t,e);let n=t.document,a=Yb.bind(null,e);e.rule.fingerCountToToggleTranslagePageWhenTouching>=2&&n.addEventListener("touchstart",a),ql.push(()=>{n.removeEventListener("touchstart",a)}),fe()&&globalThis.top===globalThis.self&&(V0(e.config),iy(e.config)),Rt()&&V0(e.config)}function Gb(e){fp()}function Vb(e){let t=e;t&&t.data&&t.data.payload&&t.data.author===Pu&&Ka(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})}function Yb(e,t){let n=t;n.touches.length==e.rule.fingerCountToToggleTranslagePageWhenTouching?qb():n.touches.length===e.rule.fingerCountToToggleTranslationMaskWhenTouching?$b():n.touches.length===e.rule.fingerCountToToggleTranslagePageOnlyTranslationWhenTouching&&Wb()}function Jb(e,t){let n=e.target;if(!n||!n.getAttribute){Hl(n);return}let a=n.getAttribute("data-immersive-translate-event");a&&We(a,[{name:a}],{...t,sourceLanguage:"none"});let r=n.getAttribute(`data-${J}-action`);if(r)if(r==="retry"){e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),co(),Hl(n,!0);return}else if(r=="toast-error"){let u=n.getAttribute(`data-${J}-tooltip-text`);Wl(wp.bind(null,t,u||""))}else r=="close-search"&&(e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),Wl(Xb.bind(null,t)));Hl(n)}async function bp(e=!1){let t=document.querySelector(`.${J}-search-recomend`);if(!t||(t.remove(),!e))return;let n=await on();n.generalRule||(n.generalRule={}),n.generalRule.enableSearchEnhancement=!1,await un(n)}async function Qb(){let e=await on(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,a=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(a=e.translationUrlPattern.matches||[]),!n&&a.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await un(e)}async function Zb(){let e=await on(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await un(e)}var yp=0;function Wl(e){let t=Date.now();if(t-yp<2e3)return;yp=t;let n=`${J}-modal`,a=document.querySelector(`.${n}`);if(a?.style.display=="block")return;let r=`${J}-modal-title`,u=`${J}-modal-body`,o=`${J}-modal-footer`;if(a){let i=a.querySelector(`.${r}`),s=a.querySelector(`.${o}`),c=a.querySelector(`.${u}`);e(a,i,c,s)}else{a=document.createElement("div"),a.className=n+" notranslate",a.id=n;let i=document.createElement("div");i.className=J+"-modal-content notranslate",a.appendChild(i);let s=document.createElement("span");s.textContent="\xD7",s.className=J+"-close",i.appendChild(s);let c=document.createElement("div");c.className=r+" notranslate",i.appendChild(c);let l=document.createElement("div");l.className=u+" notranslate",i.appendChild(l);let g=document.createElement("div");g.className=o,i.appendChild(g),document.body.appendChild(a),s.onclick=function(){a.style.display="none"},window.onclick=function(p){p.target==a&&(a.style.display="none")},e(a,c,l,g)}setTimeout(()=>{ey()},100)}function Xb(e,t,n,a,r){let u=Cp.bind(null,e);n.innerHTML=`
${ii} ${u("disableConfirm")}
`,a.innerHTML="";let o=document.querySelector(`div[data-${J}-cancel-desc]`),i=document.createElement("p");i.innerHTML=o?_e.sanitize(o.textContent||""):_e.sanitize(u("searchEnhancementNotes")),i.style.cssText="margin-bottom:12px",a.appendChild(i);let s=[{id:"enable-search-enhancement",value:"enable",text:u("enableSearchEnhancement")},{id:"disable-once",value:"once",text:u("disableOnce")},{id:"disable-global",value:"global",text:u("disableGlobal")}];for(let f=0;f${u("option")}`})),a.appendChild(c);let l=a.querySelector(`.${J}-open-enhancement`);l&&(l.onclick=function(){zd(!0)});let g=document.createElement("button");g.innerText=u("closeModal"),g.className=`${J}-btn ${J}-cancel-btn`;let p=document.createElement("button");p.className=`${J}-btn`,p.innerText=u("saveSettings"),r.innerHTML="",r.appendChild(g),r.appendChild(p),g.onclick=function(){t.style.display="none"},p.onclick=function(){let f=a.getElementsByTagName("input"),d="";for(let b=0;b
1. \u5207\u6362\u5230 ${u} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458`:i+=`

\u5982\u679C\u60A8\u6709\u7591\u95EE\uFF0C\u8BF7\u8054\u7CFB support@immersivetranslate.com`,Wl(wp.bind(null,e,i))}catch(a){j.warn("parse message error",a)}}function ny(e){let t=e;if(j.debug("receive third party message",t),t&&t.detail)try{let n=JSON.parse(t.detail);n&&n.type&&(n.type==="retryFailedParagraphs"?sy({method:"retryFailedParagraphs"}):n.type==="updateCommands"?Eo(n.data):n.type==="toggleEnableDefaultAlwaysTranslatedUrls"?Qb():n.type==="toggleEnableInputTranslation"?Zb():Tp(n.type))}catch(n){j.warn("parse message error",n)}}function ay(e){setTimeout(()=>{wi()},10)}function ry(e){Ee.HAS_CSP_ERROR="1"}function uy(e,t){let n=event.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&We(n.name,[{name:n.name}],{...e})}function oy(){ql.forEach(e=>{e()}),ql=Ep}function iy(e){if(fe()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=Ju.commands,r=[...Object.keys(t).filter(u=>u==="toggleTranslatePage").map(u=>{let o=t[u].description,i=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(i=dr(`browser.${o.slice(6,-2)}`,e.interfaceLanguage)),{id:u,title:i}}),{id:rs,title:dr("browser.openEbookViewer",e.interfaceLanguage),key:"e"},{id:us,title:dr("browser.openEbookBuilder",e.interfaceLanguage),key:"m"},{id:ns,title:dr("browser.openOptionsPage",e.interfaceLanguage),key:"o"},{id:as,title:dr("browser.openAboutPage",e.interfaceLanguage),key:"a"}];for(let u of r)GM.registerMenuCommand(u.title,()=>{u.id===ns?jb():u.id===as?Ub():u.id===us?zb():u.id===rs?Hb():Tp(u.id)},u.key)}}function sy(e){Ka(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{j.error("send content message request failed",e,n)});let t=new CustomEvent($n,{detail:e});globalThis.document.dispatchEvent(t)}m();var La={};async function $l(){let t=[...document.querySelectorAll(".source-text")].map(a=>a.textContent).join(""),n=await Qe({text:t,minLength:200,pageLangs:[ba(),"en"]});return an(n),n}async function Sp(e){Dt("Translating");let t=pt(),n=uo(),a=[...document.querySelectorAll(".source-text")];if(No(e,t))return;let r=a.filter(u=>u.innerText?.trim()).map((u,o)=>{let i=u.parentElement?.parentElement?.querySelector(".target-text");return at(u,"id",o+""),i&&(ur(i,o)?.remove(),i.appendChild(ru(e,o))),{text:u.innerText||"",id:o,from:t,to:e.targetLanguage,url:"https://google.com",fromByClient:n}});document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await ua({sentences:r},e,(u,o,i)=>{let s=i.id,c=ur(document.body,s);if(!c)return;let l=c.parentElement;l&&(c.remove(),u?(l.innerHTML=_e.sanitize(`${u.message}`),La[s]={ok:!1,sentence:i}):o&&(l.innerHTML=_e.sanitize(o.text),La[s]={ok:!0,sentence:i}),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!u}})})))})}catch(u){throw u}finally{Dt("Translated")}}async function Dp(e){Dt("Translating"),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(La),n=[],a=[];for(let r of t){let u=La[r];if(!u.ok){let i=document.querySelector(`#error-id-${r}`);if(i){let s=i.parentElement;i.remove(),s&&(delete La[r],s.appendChild(ru(e,r)),a.push(u.sentence))}}}try{await ua({sentences:a},e,(r,u,o)=>{let i=o.id,s=ur(document.body,i);if(!s)return;let c=s.parentElement;c&&(s.remove(),r?(c.innerHTML=_e.sanitize(`${r.message}`),La[i]={ok:!1,sentence:o}):u&&(c.innerHTML=_e.sanitize(u.text),La[i]={ok:!0,sentence:o}),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!r}})})))})}catch(r){throw r}finally{Dt("Translated")}}function Kl(){Dt("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}m();var Gl={};async function Lp(){let e=[...document.querySelectorAll("iframe")],t="";for(let a of e){let r=a.contentDocument;if(!r)continue;let u=r.body;if(u&&(t=t+u.innerText||"",t.length>1e3))break}let n=await Qe({text:t,pageLangs:["en"]});return an(n),n}async function Mp(e){Dt("Translating"),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(Gl),n=[];for(let a of t){let r=Gl[a];if(r.error){let o=r.commonAncestorContainer.querySelector(`[${Iu}='${a}']`);o&&o.remove(),n.push(r)}}try{await qo(n,e,e.config.translationMode)}catch{}finally{Dt("Translated")}}function Fp(){let e=[...document.querySelectorAll("iframe")];for(let t of e){let n=t.contentDocument;if(!n)continue;let a=n.querySelectorAll("."+$t);for(let r of a)r.remove()}Dt("Original")}async function Pp(e){Dt("Translating");let t=hn(),n=[...document.querySelectorAll("iframe")],a=[],r=[];for(let i of n){let s=i.contentDocument;if(!s)continue;ir(s,e);let c=s.body;if(!c)continue;let l=cn(e);l.isModifyImage=!1,la({id:t,container:c,filterRule:l,onParagraph:g=>{a.push(g)}})}let u=Io(e.config.translationServices[e.translationService]?.placeholderDelimiters),o=1;for(let i of a){let s=Uo(i.flatNodes,{isPreWhitespace:i.isPreWhitespace||!1,delimiters:u,stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(l=>l.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)});if(!s)continue;i.variables=s?.variables||{},i.text=s?.text,i.id=(o++).toString();let c=await q0(i,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:u,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});c&&(r.push(c),Gl[c.id]=c)}a=[],document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await qo(r,e,e.config.translationMode)}catch{}finally{Dt("Translated")}}m();var ly=new AbortController,{signal:cy}=ly,Zl=0,Xl=0,Vl=!1,Yl=0,hu=!1,Ma,_p=0,Fa=[];function vi(e,t){dy();let n=e,a=n.config,r=a.generalRule.mouseHoverHoldKey==="Off",u=a.generalRule.mouseHoverHoldKey==="Auto",o=bt(l=>{if(Vl==!1&&Math.abs(l.clientX-Zl)+Math.abs(l.clientY-Xl)>3&&(Yl<2?Yl+=1:Vl=!0),Zl=l.clientX,Xl=l.clientY,u||hu&&!Ma){let g=Np(n.rule,t);if(g){if(ec(g))return;Rp(n,g)}}},u?700:300),i=l=>{let g=l.target;ec(g)||Rp(n)},s=l=>{let g=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=Ye.getPressedKeyCodes();if(p.length>1&&Ye[g]&&(_p=Date.now(),hu=!1),p.length===1&&Ye[g]){let f=Date.now();hu=!0,Ma&&clearTimeout(Ma),Ma=setTimeout(()=>{let d=_p-f;d>0&&d<=150?hu=!1:i(l),Ma=void 0},150)}};if(Fa.push(()=>{Ma&&clearTimeout(Ma)}),r)return;Jl("mousemove",o,t),Fa.push(()=>{t.removeEventListener("mousemove",o)});function c(){Vl=!1,Yl=0,o.cancel()}if(u)Jl("blur",c,t),Fa.push(()=>{t.removeEventListener("blur",c)});else{let l=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",g=["ctrl","alt","shift","cmd","command","option","control"];Jl("keyup",Bp,t),Fa.push(()=>{t.removeEventListener("keyup",Bp)}),g.includes(l)?Ye("*","mouseHover",s):Ye(a.generalRule.mouseHoverHoldKey,"mouseHover",i),Ye.setScope("mouseHover"),Fa.push(()=>{Ye.deleteScope("mouseHover")})}}function dy(){Fa.forEach(e=>e()),Fa=[]}function Bp(e){hu=!1}function Jl(e,t,n=window){return n.addEventListener(e,t,{signal:cy})}function Rp(e,t,n=window){if(t=t||Np(e.rule,n),!t){j.debug("can not find selection part!");return}if(ec(t)){j.debug("exclude dom");return}Hg(e,t);let a=Ko();a?.currentUrl!==window.location.href&&(Nn(),K0(e)),a&&(a.setupMouseHoverListener=vi);let r=cn(e);r.excludeSelectors=[],r.selectors=[];let u=!1;la({id:a.id,container:t,filterRule:r,force:!0,onParagraph:o=>{ou(a,o,!0).then(i=>{if(i&&!u){u=!0;let s=Date.now();je(s4,s),We("mouse_hover_translate",[{name:"mouse_hover_translate"}],{...e,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function Np(e,t){return my(Zl,Xl,e,t)}function my(e,t,n,a){let r=mg(e,t,n,a);if(r==null)return;let u=()=>{let s=a.document.elementFromPoint(e,t);if(!s)return;let c=gg(s,e,t);return c===s?s.nodeName==="BUTTON"?s:void 0:Ip(c,n)},o=()=>{try{r.setStartBefore(r.startContainer),r.setEndAfter(r.startContainer)}catch(c){j.debug("get mouse over word fail",c)}let s=r.getBoundingClientRect();if(!(s.left>e||s.rightt||s.bottomn[l]=[l,...n[l]||[]]);let a=t.inputStartingTriggerKeyAlias[t.inputStartingTriggerKey]||[];a.includes(t.inputStartingTriggerKey)||a.unshift(t.inputStartingTriggerKey),n[t.inputTargetLanguage]=[...a,...n[t.inputTargetLanguage]];let r=t.inputTrailingTriggerKeyTimeout;Kn().any&&(r=t.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:t.inputTrailingTriggerKeyRepeatTimes,triggerKey:t.inputTrailingTriggerKey,triggerTimeout:r,codePrefix:t.inputStartingTriggerKey,codeAlias:n,flatAlias:Object.values(n).flat(),codePrefixAlias:t.inputStartingTriggerKeyAlias},o=0,i=Date.now();Ai&&self.removeEventListener("keydown",Ai),Ai=s,self.addEventListener("keydown",Ai);function s(l){if(yr||ki===!1)return;let g=l,p=g.target||g.srcElement,f=p?.tagName;(p?.isContentEditable||f=="INPUT"||f=="SELECT"||f=="TEXTAREA")&&(My(l,u.triggerKey,u.codePrefixAlias)?c(l):o=0)}async function c(l){Date.now()-i=u.triggerTimes&&by()&&(o=0,hy(l,e,u))}Fy(e)}function gy({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let a=[],r=n[e]||[];r.includes(e)||r.unshift(e);for(let u of r){let o=t.map(i=>{let s=u+i;return r.includes(i)||(s+=" "),s});a.push(...o)}return new RegExp(a.join("|"))}function Up(e,t){for(let[n,a]of Object.entries(t))if(a.includes(e))return n;return""}var xr;function py(e){let t=e.parentElement;if(!t)return;xr=document.createElement("div"),xr.className=J+"-input",xr.innerHTML=`
`,t.appendChild(xr);let n=t,a=!1;do{let r=getComputedStyle(n).position;if(["fixed","absolute","relative"].includes(r)){a=!0;break}n=n.parentElement}while(n);if(n=t,!a)do{if(getComputedStyle(n).position==="static"){n.style.position="relative";break}n=n?.parentElement||null}while(n)}function fy(){xr&&xr.remove()}async function hy(e,t,n){if(!yr)try{let p=function(){i=t.config.inputTargetLanguage;let d=o.split(" ")[0];d&&d[0]&&(d=d[0].toLowerCase()+d.slice(1)),d.trim()&&n.flatAlias.includes(d)?(i=Up(d,n.codeAlias),u=o.slice(d.length+1)):u=o},f=function(){i="";let d=gy(n),b=o.split(d);if(b.length<2)return;if(u=b[b.length-1],r=b[0],b.length>2){let h=o.lastIndexOf(u),A=o.slice(0,h).lastIndexOf(b[b.length-2]);r=o.slice(0,A+b[b.length-2].length)}if(r.endsWith(n.codePrefix))return;let C=o.slice(r.length+1,o.indexOf(u)).trim();if(i=Up(C,n.codeAlias),!i){j.warn("not found alias",C);return}},a=document.activeElement;yr=!0;let r="",u="",o=Er(a)||"",i=t.config.inputTargetLanguage;n.codePrefix==="none"?p():(f(),!i&&t.config.enableInputTranslationWithoutTriggerKey&&p());let s=xy(u,n),c=await Qe({text:s,pageLangs:["en"]});j.debug("translateContent",s,c);let l={text:s||"",id:0,from:c,to:i,url:"https://google.com",fromByClient:c};if(!l.text)return;if(t.config.isShowInputTranslationConsent&&!jp){jp=!0;let d=await Py(t);if(e.target&&e.target.focus(),d==="open_settings"){Ga(!0,"#input");return}else if(d==="open_learn_more"){bo("https://immersivetranslate.com/docs/input/");return}else if(d==="disable_once"||d==="disable_forever"){if(ki=!1,d==="disable_forever"){let b=await on();b.enableInputTranslation=!1,b.isShowInputTranslationConsent=!1,await un(b)}else if(d==="disable_once"){let b=await on();b.isShowInputTranslationConsent=!1,await un(b)}return}else if(d==="close_disable_once"||d==="close_disable_forever"){if(ki=!1,d==="close_disable_forever"){let b=await on();b.enableInputTranslation=!1,b.isShowInputTranslationConsent=!1,await un(b)}return}else if(d==="enable"){let b=await on();b.enableInputTranslation=!0,b.isShowInputTranslationConsent=!1,await un(b)}else if(d==="close_enable"){let b=await on();b.enableInputTranslation=!0,await un(b)}}py(a),je(os,Date.now());let g=await Aa(l,{...t,translationService:t.inputTranslationService});Ly(t),Dy(a,r+g.text),yr=!1}catch(a){throw yr=!1,a}finally{yr=!1,fy()}}function by(){let e=document.activeElement;if(!e)return!1;if(Si(e)){let t=e.selectionStart||0,n=e.value.length,r=e.value.split(` -`).reverse()[0].trim(),u=n<=t;return j.debug("cursorPosition",t,"textLength",n),j.debug("input isTail",u,"tailHasText",r),u&&!!r}else{let t=window.getSelection();if(!t)return j.debug("No active selection found."),!1;if(t.rangeCount>0){let n=t.getRangeAt(0),a=n.startContainer;if(a.nodeType===Node.TEXT_NODE){let r=yy(a,e);j.debug("Current text node:",a.textContent),j.debug("Cursor position within text node:",n.startOffset);let u=a.textContent?.length===n.startOffset&&r,o=a.textContent?.trim();return j.debug("editdiv isTail",u,"tailHasText",o),u&&!!o}else j.debug("Cursor is not within a text node.")}}return!1}function yy(e,t){let n;function a(r){if(r.nodeType===Node.TEXT_NODE)n=r;else for(let u of r.childNodes)a(u)}return a(t),n==e}function xy(e,t){let{triggerTimes:n,triggerKey:a}=t,r=0,u=" ";a.length==1?(r=n,u=a):a.toLowerCase()=="space"&&(r=n);let o=e.length;for(let i=e.length-1;i>=e.length-r;i--){if([10,8629].includes(e[i].charCodeAt(0))){o--;continue}if(![...t.codePrefixAlias[a]||[],u].includes(e[i]))break;o--}return e.length-o<3&&[".","\u3002"].includes(e[o-1])&&o--,e.slice(0,o)}function Ey(e,t){let n=t.innerHTML,a=Er(t);return{html:n.replace(a,e),text:e}}function zp(e,t,n=!1){let a=Er(t);return n?a.trim().endsWith(e.text.trim()):a.trim()==e.text.trim()}function Er(e){return e.value||e.innerText||e.textContent}async function Pa(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function Ty(e,t,n){await Pa(10);let a=new DataTransfer;e.forEach(r=>{r==="plain"&&a.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:a,bubbles:!0,cancelable:!0})),a.clearData(),await Pa(10)}async function Cy(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await Pa(10))}async function wy(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await Pa(20),(t.value||t.value==="")&&(t.value=e.text)}async function vy(e,t){Si(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await Pa(20))}var Ay=[Ty.bind(null,["plain"])];function ky(e){let t;Si(e)?t=new InputEvent("beforeinput",{bubbles:!0,cancelable:!0,inputType:"deleteContent"}):t=new KeyboardEvent("keydown",{bubbles:!0,cancelable:!0,keyCode:8,which:8,location:0,key:"Backspace"}),e.dispatchEvent(t)}function Si(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function Sy(e){if(Si(e))return;e.focus();let t=window.getSelection();if(!t)return;let n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}async function Dy(e,t){await Sy(e),await Pa(50);let n=Ey(t,e);ky(e),j.debug("clearContent",Er(e)),await Pa(50);for(let a of[...Ay,wy,vy,Cy])if(await a(n,e),j.debug("setContent",a.name,zp(n,e),Er(e),n),zp(n,e))break}function Ly(e){We("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage}}],e)}function My(e,t,n){let a="";e&&e.code&&(a=e.code.toLowerCase());let r="";e&&e.key&&(r=e.key.toLowerCase());let u=e.keyCode,o=n[t]||[];return u===229&&t!=="space"?!1:!!(o.includes(a)||o.includes(r)||a===t||r===t)}async function Fy(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await St(t,"")||Number(await St(os,0))>0)return;let r=e.rule.inputTutorialsSelectors,u=e.rule.inputTutorialsText;if((r?.length||0)>0&&u)for(let o=0;o{By()},100),new Promise(c=>{let l=c;if(u){let T=u.querySelector(`.${n}`),k=u.querySelector(`.${r}`),v=u.querySelector(`.${a}`)}else{u=document.createElement("div"),u.className=t+" notranslate",u.id=t;let T=document.createElement("div");T.className=J+"-modal-content notranslate",u.appendChild(T);let k=document.createElement("span");k.textContent="\xD7",k.className=J+"-close",T.appendChild(k),o=document.createElement("div"),o.className=n+" notranslate",T.appendChild(o),s=document.createElement("div"),s.className=a+" notranslate",T.appendChild(s),i=document.createElement("div"),i.className=r,T.appendChild(i),document.body.appendChild(u),k.onclick=function(){S(),c("close")},window.onclick=function(v){v.target==u&&(u.style.display="none",c("close"))}}document.addEventListener("keydown",y);let g=_y.bind(null,e);o.innerHTML=`
${ii} ${g("modalEnableInputTranslationTitle")}
`,s.innerHTML="";let p=document.createElement("p");p.innerHTML=g("modalEnableInputTranslationDesc",{1:"https://immersivetranslate.com/docs/input/"}),p.style.cssText="margin-bottom:12px",s.appendChild(p);let f=document.createElement("div");f.style.cssText="margin-bottom: 12px;",f.innerHTML=_e.sanitize(g("disableInputTranslationTips",{option:`${g("option")}`,learnMore:`${g("learnMore")}`})),s.appendChild(f);let d=[{id:"enable-search-enhancement",value:"enable",text:g("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:g("disableOnce")},{id:"disable-global",value:"global",text:g("disableGlobal")}];for(let T=0;T{ua({sentences:r},{...e,translationService:"google"},(s,c,l)=>{if(s)return o([]);let g=c?.id||0,p=n[g];p&&p.className==J+"-search-title-wrapper"&&(p.innerHTML+=_e.sanitize(`
${c?.text}
`,{ADD_ATTR:["target"]}))})})}function Di(e,t,n){t&&We(t.key,[{name:t.key}],{...e,sourceLanguage:t.sourceLanguage||n})}function nc(e,t,n,a){let r=n.querySelectorAll('[translate="true"]');return Ry(e,t,[...r],a),n}async function ac(e,t){let a=(await oe({url:Oy(e),method:"GET",responseType:"raw",headers:{"cache-control":"no-cache","content-type":"application/xml","Sec-Fetch-Site":"none",accept:"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}})).body,u=new DOMParser().parseFromString(a,"text/xml"),o=[],i=u.querySelectorAll("item");for(let s=0;s${e.cancelDescription}
`:""} +`+t.rule.additionalInjectedCss)),i&&ia(e,i,"immersive-translate-dynamic-injected-css")}m();async function Mg(){let e="auto",t=[ba(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await Qe({text:tr(document.body),pageLangs:t})),e}m();m();function Fg(e,t){return[e,!e||e.endsWith("/")?"":"/",t,".json"].join("")}function _0(e,t){let n=e;return t&&Object.keys(t).forEach(a=>{let r=t[a];if(r===void 0)return;let u=s9(a);if(typeof r=="object"||u){let o=r;u&&typeof o=="string"&&(o={tag:"a",href:o});let i=`<${a}>`,s=n.indexOf(i);if(s!==-1){let c=o.tag||"a",l=n.indexOf(``);if(l!==-1){let g=n.substring(s+i.length,l),p=Object.keys(o).filter(f=>f!=="tag").map(f=>`${f}="${o[f]}"`).join(" ");n=n.replace(`${i}${g}`,`<${c} ${p}>${g}`)}}}else if(r){let o=new RegExp("{"+a+"}","gm");n=n.replace(o,r.toString())}}),n}function ru(e,t,n){let a=e[t];if(!a)return n;let r=n.split("."),u="";do{u+=r.shift();let o=a[u];o!==void 0&&(typeof o=="object"||!r.length)?(a=o,u=""):r.length?u+=".":a=n}while(r.length);return a}function In(e,t,n,a,r){if(!e.hasOwnProperty(n))return t;let u=ru(e,n,t);return u===t&&n!==a&&(u=ru(e,a,t)),_0(u,r)}function s9(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}m();m();function B0(e,t,n=[],a){let r=["notranslate"];return a&&r.push(b4),e&&(r.push(`${J}-target-translation-theme-${e}`),t?r.push(`${ls}-theme-${e}`):r.push(`${ss}-theme-${e}`)),n.length>0&&r.push(...n),t?r.push(ls):r.push(ss),r}function R0(e){let t=["notranslate",f4];return e&&t.push(`${J}-target-translation-theme-${e}-inner`),t}function Pg(e,t,n){let{rule:a,state:r}=n,{translationTheme:u}=r,{variables:o,isVertical:i}=e;o=o||[];let{text:s}=t,{wrapperPrefix:c,wrapperSuffix:l}=a,g=ar(n),p="afterend",f=g[0],d=g[1],b=`${f}(\\d+)${d}`,C=new RegExp(b,"g"),h=_e.sanitize(s);o.length>0&&(h=h.replace(C,R=>{let y=h.indexOf(R),T=h[y-1]===" ",k=h[y+R.length]===" ",v=R.slice(g[0].length,-g[1].length),E=Number(v);if(isNaN(E))return R;let B=o[Number(E)];if(B&&B.type==="element"){let P=B.value.outerHTML;return T||(P=" "+P),k||(P=P+" "),P}else j.error("variable type not supported",B,R);return R}));let A=B0(u,e.inline,a.translationClasses||[],e.preWhitespace);i&&A.push(h4);let S=R0(u),U="";return a.translationBlockStyle&&(U=`style="${a.translationBlockStyle}"`),h=`<${n.rule.targetWrapperTag} ${U} class="${A.join(" ")}" ${An}="1"><${a.targetWrapperTag} class="${S.join(" ")}" ${An}="1">${h}`,e.inline||(c==="smart"?h=`
${h}`:h=`${c}${h}`),e.inline&&(c!=="smart"?h=`${c}${h}`:h=`<${a.targetWrapperTag} class="notranslate" ${An}="1"> ${h}`),l==="smart"?h=`${h}`:h=`${h}${l}`,{html:h,position:p}}function Uo(e,t){let n=null,{stayOriginalSelectors:a,delimiters:r,isPreWhitespace:u}=t,o=[],i={};for(let s=0;s2&&(C=`<${r[2]}${b}>`),i[b]=c,o.push({text:C,type:"variable"})}else o.push({text:c.textContent||"",type:"text"});else{let d=c.textContent||"";g&&(d=sa(O0(c))),o.push({text:d,type:"text"})}else if(c.nodeType===Node.ELEMENT_NODE)if(c&&Mt(c,a)){let b=Object.keys(i).length,C=`${r[0]}${b}${r[1]}`;r.length>2&&(C=`<${r[2]}${b}>`),i[b]=c;let h=I0(o).endsWith(" ")?" ":"",A=sa(c.innerText||c.textContent),S=sa(c.nextSibling).startsWith(" ")?" ":"",U=nu(h+A+S),R=U[0]+C+U[1];if(h===" ")R=R.trimStart();else if(!R.startsWith(" ")){let y=nu(c.previousSibling)[1];y===""&&(y=" "),R=y+R}o.push({text:R,type:"variable"})}else{let d=I0(o).endsWith(" ")?" ":"",b=sa(c.innerText||c.textContent);g&&(b=sa(O0(c)));let C=sa(c.nextSibling).startsWith(" ")?" ":"",h=nu(d+b+C),A=h[0]+(c.innerText?.trim()||c.textContent?.trim()||"")+h[1];if(d===" ")A=A.trimStart();else{let S=nu(c.previousSibling)[1];S===""&&(c.nodeName==="A"||c.nodeName==="CODE")&&(S=" "),A=S+A}o.push({text:A,type:"text"})}else{let d=I0(o).endsWith(" ")?" ":"",b="";c.textContent&&(b=sa(O0(c))),d===" "&&(b=b.trimStart()),o.push({text:b,type:"text"})}}if(o&&o.length>0){let s="";for(let c=0;c0&&(g=o[c-1].text),c2){let l=c[2];return l9({delimiterTag:l,targetText:e.targetText,inline:r,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:a}).html}else{let l=Pg(s,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return l.html}}function O0(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function l9(e){let{delimiterTag:t,inline:n,translationClasses:a,targetWrapperTag:r,wrapperPrefix:u,variables:o,preWhitespace:i,wrapperSuffix:s,translationTheme:c,translationBlockStyle:l}=e;o=o||[];let g=e.targetText;g=_e.sanitize(g);let p=g,f=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),d=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(f,A=>{let S=p.indexOf(A),U=p[S-1]===" ",R=p[S+A.length]===" ",y=A.match(d);if(!y)return A;let T=y[1],k=Number(T);if(isNaN(k))return A;let v=o[Number(k)];if(v&&v.type==="element"){let E=v.value.outerHTML;return U||(E=" "+E),R||(E=E+" "),E}else if(v&&v.type==="text"){let E=v.value;return U||(E=" "+E),R||(E=E+" "),E}else j.error("variable type not supported",v,A);return A}));let b=B0(c,n,a||[],i),C=R0(c),h="";return l&&(h=`style="${l}"`),p=`<${r} ${h} class="${b.join(" ")}" ${An}="1"><${r} class="${C.join(" ")}" ${An}="1">${p}`,n||(u==="smart"?p=`
${p}`:p=`${u}${p}`),n&&(u!=="smart"?p=`${u}${p}`:p=`<${r} class="notranslate" ${An}="1"> ${p}`),s==="smart"?p=`${p}`:p=`${p}${s}`,{html:p,position:"afterend"}}function I0(e){let t=e[e.length-1];return t?t.text:""}function cn(e){let t=e.rule.selectors,n=e.rule.excludeTags,a=e.rule.additionalExcludeTags,r=e.rule.excludeSelectors,u=e.rule.additionalExcludeSelectors;return e.state.translationArea==="body"&&(t=[],r=[]),{globalStyles:e.rule.globalStyles,globalAttributes:e.rule.globalAttributes,selectors:t,skipEditableCheck:e.rule.skipEditableCheck,lineBreakMaxTextCount:e.rule.lineBreakMaxTextCount,isTransformPreTagNewLine:e.rule.isTransformPreTagNewLine,excludeSelectors:n.concat(a).map(i=>i.toLowerCase()).filter(i=>i!=="code"&&i!=="img").concat(r).concat(u),blockSelectors:e.rule.allBlockTags.map(i=>i.toLowerCase()).concat(e.rule.extraBlockSelectors),extraBlockSelectors:e.rule.extraBlockSelectors,extraInlineSelectors:e.rule.extraInlineSelectors.concat(e.rule.additionalInlineSelectors),stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(i=>i.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)}}var c9={sanitize:e=>e};function Ho(e,t){e.interruptEffectDOM||(e.walkContainer({id:e.id,container:t,filterRule:cn(e.ctx),onParagraph:uu.bind(null,e),onFrame:n=>{j0(e,n,!0)},onIgnoreElement:n=>{e.ignoreResizeObserver?.observe(n)}}),Ia&&at(t,"consumeContainer",e.id))}function j0(e,t,n){try{if(e.injectCssToDocument(t,e.ctx),t instanceof HTMLIFrameElement){if(!rr(t))return;j.debug("onFrame fragment",t);let a=t.contentWindow?.document.body;a&&(lr(a,e,n),e.dynamicContainerObserver?.observe(a,{childList:!0,subtree:!0}))}else j.debug("onFrame shadowRoot",t.host),lr(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0})}catch{}}function lr(e,t,n=!0){let{globalStyles:a,globalAttributes:r}=cn(t.ctx),u=0;if(s(t,e,n))return;if(Tn(e)&&i(e)){o(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,l=>(Tn(l)&&(a&&D0(l,a),r&&M0(l,r)),s(t,l,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(zt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode();){zt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let l=c.currentNode;if(i(l))for(o(l);;){if(c.nextSibling()){let g=c.currentNode;if(zt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),i(g)){o(g);continue}else break}if(!c.parentNode())return}}}catch{}if(u==0&&e instanceof HTMLElement){o(e);return}return t.observeContainers;function o(c){zt.clearMark(c),u++,t.immediateTranslateCapacity>=0?Ho(t,c):(Ia&&at(c,"observeContainer",t.id),t.containerVisibleObserver?.observe(c))}function i(c){let l=c.nodeName.toLowerCase();if(c.shadowRoot)return j0(t,c.shadowRoot,n),!1;if(l==="iframe")return j0(t,c,n),!1;if(["script","#document-fragment","img"].includes(l))return!1;let g=t.containerRule;if(g.selectors&&g.selectors?.length>0)return jo(c,g.selectors);if(g.pageHeight){let p=c.scrollHeight;if(p>0&&p0)return!0}return!1}function s(c,l,g){if(l.nodeName.toLowerCase()=="script")return l.childNodes.length==0||l.childNodes.length==1&&l.childNodes[0].nodeType==Node.TEXT_NODE;if(l.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(l.nodeType!==Node.ELEMENT_NODE||g&&zt.isMarked(l,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&l.nodeName==="PRE")return!1;let f=cn(c.ctx);return!!F0(l,{excludeSelectors:f.excludeSelectors,selectors:f.selectors,stayOriginalSelectors:f.stayOriginalSelectors})}}function U0(e,t){if(!e.targetNodes)return;let n=e.state||"original",a=e.commonAncestorContainer;if(!zt.isMarked(a,e.ctxId))return;let r=a.contains(e.rootNodes[0]),u=a.contains(e.targetNodes[0]);if(r&&u)n="dual";else if(r)n="original";else if(u)n="translation";else return;if(t!=n){e.state=t;try{if(n=="dual"&&t=="translation"&&(zo(e.rootNodes),Rg(e.commonAncestorContainer)),n=="original"&&t=="translation"){let o=N0(e.rootNodes);if(zo(e.rootNodes),Bg(o))return;sr(o,a,e.targetNodes||[]),Rg(e.commonAncestorContainer)}if(n=="translation"&&t=="dual"){let o=e.targetNodes[0];sr(o,a,e.rootNodes||[]),Og(e.commonAncestorContainer)}if(n=="original"&&t=="dual"){let o=N0(e.rootNodes);if(Bg(o))return;sr(o,a,e.targetNodes||[]),Og(e.commonAncestorContainer)}if(n=="translation"&&t=="original"){let o=N0(e.targetNodes);zo(e.targetNodes),sr(o,a,e.rootNodes||[])}n=="dual"&&t=="original"&&zo(e.targetNodes)}catch(o){j.error(o)}}}function Bg(e){return!e||!Tn(e)?!1:e.classList.contains(Kt)}function Rg(e){if(!Tn(e))return;e.querySelectorAll("font[class*=immersive-translate-target-translation]").forEach(a=>{at(a,"immersiveTranslateClassBak",a.className),a.className="notranslate immersive-translate-target-dual"});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.add("immersive-translate-state-dual")}function Og(e){if(!Tn(e))return;e.querySelectorAll("font[class*=immersive-translate-target-dual]").forEach(a=>{let r=nr(a,"immersiveTranslateClassBak");Oo(a,"immersiveTranslateClassBak"),a.className=r});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.remove("immersive-translate-state-dual")}function N0(e){return e?e[e.length-1].nextSibling:null}function zo(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function sr(e,t,n){let a=e;t&&(a?n.forEach(r=>{a.parentNode?.insertBefore(r,a)}):n.forEach(r=>{t.appendChild(r)}))}var d9=bt(H0,300);async function uu(e,t,n=!1){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||m9(t.rootNodes)||t.stepState>=2)return;t.stepState=2,Ia&&at(a,"onParseParagraph",e.id);let{ctx:r}=e,{rule:u}=r,o=ar(r),i=Uo(t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:o,stayOriginalSelectors:r.rule.stayOriginalTags.concat(r.rule.stayOriginalTags).map(c=>c.toLowerCase()).concat(r.rule.stayOriginalSelectors).concat(r.rule.additionalStayOriginalSelectors)});if(!i)return;t.variables=i?.variables||{},t.text=i?.text;let s=await q0(t,{excludeLanguages:r?.config?.translationLanguagePattern?.excludeMatches||[],targetLanguage:r.targetLanguage,noTranslateRegexp:r.rule.noTranslateRegexp,delimiters:Io(r.config.translationServices[r.translationService]?.placeholderDelimiters),minTextCount:n||r.state.translationArea==="body"?2:u.paragraphMinTextCount,minWordCount:n||r.state.translationArea==="body"?1:u.paragraphMinWordCount,isDetectParagraphLanguage:r.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:r.rule.ignoreZhCNandZhTW});if(s){if(j.debug("on paragraph",s.text,s),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(s))return;a.paragraphs.push(s),e.immediateTranslateCapacity>0||n?(g9(e,t.text),z0(e,t)):(Ia&&at(a,"observeParagraph",e.id),e.observeParagraphs.push(s),e.paragraphVisibleObserver?.observe(a))}return s}function m9(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Tn(t)&&t.classList.contains(Kt):!1}function g9(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function z0(e,t){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let n=e.autoIncreaseParagraphId++;t.id=n.toString(),e.paragraphEntities[n]=t,e.paragraphQueue.push(n.toString()),Ia&&at(t.commonAncestorContainer,"consumeParagraph",e.id),d9.call(e,e.ctx)}async function H0(e){if(this.interruptEffectDOM)return;let t=this.paragraphQueue;this.paragraphQueue=[];let n=[];for(let a=0;a0)try{await ua(a,t,(r,u,o)=>{let i=o.id,s=p9(e,i.toString());s&&f9.call(null,r,u,o,s,t,n)})}catch(r){j.error("translateCurrentQueue error",r);return}}function p9(e,t){return e.find(n=>n.id===t)}function f9(e,t,n,a,r,u){let o=!1,i=a;if(ur(i.commonAncestorContainer,n.id)?.remove(),i&&(e||!t)){e||(j.error("translate error",n,e,t),e=new Error("no response from server"));let{rule:s}=r,c=n.id,l=document.createElement(s.targetWrapperTag);at(l,d4,c.toString()),l.classList.add("notranslate",Kt,Kt+"-error"),l.setAttribute("translate","no"),l.setAttribute("lang",r.targetLanguage);let g=a.rootNodes[a.rootNodes.length-1].nextSibling;sr(g,a.commonAncestorContainer,[l]),h9(r,e);let p=e.message.replaceAll(` +`,"");if(p=p.replaceAll('"',"""),i&&(i.error=new Error(p)),l){let f=In(Ot,"retryAllParagraphs",r.config.interfaceLanguage,"zh-CN"),d=In(Ot,"errorTooltipTitle",r.config.interfaceLanguage,"zh-CN"),b=`<${s.targetWrapperTag} class="${J}-error notranslate"><${s.targetWrapperTag} class="${J}-error-wrapper">\u{1F504}  \u2753`;l.innerHTML=_e.sanitize(b)}}else if(a){if(i.error=void 0,a.targetText=t?.text||"",!(a.text?.toLocaleLowerCase()==a.targetText?.toLocaleLowerCase())){let c=_g(a,r),l=document.createElement(r.rule.targetWrapperTag);l.classList.add("notranslate",Kt),l.setAttribute("lang",r.targetLanguage),l.setAttribute(An,"1");let g=c9.sanitize(c);l.innerHTML=g,a.targetNodes=[l],U0(a,u)}o=!0}else j.error("paragraph not found",n.id);document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}))}async function q0(e,t){let{text:n}=e,a=await Qe({text:n||"",minLength:15,pageLangs:[pt(),"en"]}),{targetLanguage:r}=t;if(!yg({text:n||"",delimiters:t.delimiters,minWordCount:t.minWordCount,minTextCount:t.minTextCount,noTranslateRegexp:t.noTranslateRegexp}))return null;let o=t.excludeLanguages||[],i=ro();t.isDetectParagraphLanguage&&(i="auto");let s=pt(),c=a;c==="auto"&&!t.isDetectParagraphLanguage&&(c=s),e.languageByLocal=c,e.languageByClient=i;let l=i!=="auto"?i:c;return Xn(l,r,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW})||o.length>0&&o.some(f=>Xn(l,f,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW}))?null:e}function h9(e,t){if(t.message.startsWith("ProQuota:")){t.message=t.message.replace("ProQuota:","");let n=t.message;try{n=JSON.parse(t.message).error}catch(u){j.error(u)}t.message=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${t.message} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`;let a=e.translationService,r=a=="deepl"?"OpenAI":"Deepl";e.translationService=="openai"?a="OpenAI":e.translationService=="deepl"&&(a="Deepl"),document.dispatchEvent(new CustomEvent(_u,{detail:{type:"ProQuotaExceeded",subscriptionType:e.user?.subscription?.subscriptionType,translationService:a,anotherService:r,message:n}}))}}m();var b9=[];function Ig(e){b9.push(e)}m();function Ng(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(a){a.length>0&&(a[0].target.text.includes(Nu)||W0(e).catch(u=>{j.error("translateTitle error:",u.name,u.message,u.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var Wo="";async function W0(e){let t=document.title;if(!t||t.includes(Nu))return;Wo!==t&&(Wo=t);let n=await Qe({text:t,pageLangs:[pt(),"en"]});if(!No(e,n))try{let a=await ka({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n},e);a&&a.text&&(document.title=Wo+Nu+a.text)}catch(a){throw a}}function jg(e){e.rule.isTranslateTitle&&(document.title=Wo)}m();var $0;function Ug(e){let t=e.ctx.rule.aiRule;if(j.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=cn(e.ctx),a=n.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);n.excludeSelectors.splice(a,1);let r,u;document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(p=>{p.translated=!0,ou(e,p,n)});let o=t.streamingDelayTime||100;$0=new MutationObserver(p=>{p.forEach(function(f){if(Tn(f.target)&&!s(f)&&(l(f.target),f.addedNodes&&f.addedNodes.length&&f.addedNodes.forEach(d=>{l(d)}),!c(f)&&i())){let d=f.target===u;if(t.streamingDeepChild&&!d&&(d=f.target.parentNode===u),!d)return;f.addedNodes.forEach(b=>{let C=b.previousSibling;!C||C.translated||(C.translated=!0,setTimeout(()=>{C.childNodes[0]?.translated||(j.debug("\u7FFB\u8BD1\u4E0A\u4E00\u4E2A\u6BB5\u843D",C),ou(e,C,n))},o))})}})}),$0.observe(document.body,{attributes:!0,childList:!0,subtree:!0});function i(){return!!(t.streamingChange&&t.streamingSelector&&r||t.streamingChange&&t.messageContainerSelector&&t.messageStreamEndSelector&&u&&!u.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector))}function s(p){return t.streamingSelector&&p.target===r&&p.type==="attributes"&&!En(p.target,[t.streamingSelector])?(g(),!0):t.streamingSelector&&p.removedNodes.length>0&&u&&u!=r?(p.removedNodes?.forEach(f=>{f===r&&g()}),!0):t.messageContainerSelector&&t.messageStreamEndSelector&&u&&u.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector)?(g(),!0):!1}function c(p){if(t.streamingSelector&&p.target.querySelector(t.messageWrapperSelector||"")&&!r){let f=p.target;return f.translated||(f.translated=!0,setTimeout(()=>{r||f.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(d=>{d.translated||(d.translated=!0,ou(e,d,n))})},o)),!0}else if(t.messageContainerSelector&&p.target.querySelector(t.messageContainerSelector||"")){let f=p.target;if(f.translated)return!0;f.translated=!0,setTimeout(()=>{f.querySelectorAll(t.messageContainerSelector).forEach(d=>{t.messageStreamEndSelector&&!d.querySelector(t.messageStreamEndSelector)||d.translated||(d.translated=!0,ou(e,d,n))})},o)}return!1}function l(p){t.streamingSelector&&En(p,[t.streamingSelector])&&(r=p,j.debug("streamingNode",r)),En(p,[t.messageWrapperSelector])&&(u=p,j.debug("markdownNode",u))}function g(){u&&setTimeout(()=>{u.childNodes.forEach(p=>p.translated=!1),j.debug("\u7ED3\u675F\u7FFB\u8BD1\u5168\u90E8",u),ou(e,u,n),r=void 0,u=null},o)}}function ou(e,t,n){la({id:e.id,container:t,filterRule:n,force:!0,onParagraph:a=>{uu(e,a,!0)},onFrame:()=>{},onIgnoreElement:()=>{}})}function zg(){$0?.disconnect()}var ne=null;function Ko(){return ne||null}function cr(e){y9(e),A9(e),C9(e),v9(e),ir(document,e),Dt("Translated"),w9(ne),T9(ne),Ig(Nn),x9(ne)}function y9(e){e.state.translationArea==="main"&&e.rule.initialSelectorGlobalAttributes&&vg(document.body,e.rule.initialSelectorGlobalAttributes,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph)}function x9(e){Ug(e)}function E9(){zg()}function T9(e){e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0});let t=[];e.ctx.rule.mainFrameSelector&&(t=[...document.querySelectorAll(e.ctx.rule.mainFrameSelector||"")]),t.length<=0&&(t=[document.body]),t.forEach(n=>{lr(n,e)})}async function C9(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=Date.now(),a=new URL(e.url).hostname,r=e.localConfig.tempTranslationUrlMatches||[],u=r.findIndex(i=>i.match===a&&i.expiredAt>t),o=!1;u>-1||(r.push({match:a,expiredAt:t+e.config.tempTranslateDomainMinutes*60*1e3}),o=!0),o&&await kn({...e.localConfig,tempTranslationUrlMatches:[...r]})}}function w9(e){e.ctx.rule.isTranslateTitle&&(W0(e.ctx),e.titleDynamicObserver=Ng(e.ctx))}function v9(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function A9(e){let t=hn();ne&&(t=ne.id);let n=cn(e);ne=ne||{},ne.ctx=e,ne.id=t,ne.paragraphQueue=ne.paragraphQueue||[],ne.rule={excludeSelectors:n.excludeSelectors||[],selectors:n.selectors||[]},ne.currentUrl=window.location.href,ne.containerRule={pageHeight:screen.availHeight,selectors:n.selectors},ne.translationService=e.translationService,ne.paragraphEntities=ne.paragraphEntities||{},ne.autoIncreaseParagraphId=ne.autoIncreaseParagraphId||1,ne.interruptEffectDOM=!1,ne.urlChangeDelay=e.rule.urlChangeDelay,ne.immediateTranslateCapacity=e.state.immediateTranslationTextCount,ne.observeContainers=ne.observeContainers||[],ne.observeParagraphs=ne.observeParagraphs||[],ne.dynamicContainerObserver=ne.dynamicContainerObserver||M9(ne),ne.ignoreResizeObserver=ne.ignoreResizeObserver||F9(ne),ne.containerVisibleObserver=ne.containerVisibleObserver||S9(ne),ne.paragraphVisibleObserver=ne.paragraphVisibleObserver||D9(ne),ne.injectCssToDocument=$o,ne.walkContainer=la,ne.translateState=e.state.translationMode||e.config.translationMode||"dual",ne.allInlineWindows=[window],window.onerror=k9(ne,e),window.immersiveTranslateSwitchTranslateState=G0.bind(ne)}function qg(e,t){t.getRootNode()instanceof ShadowRoot?$o(t.getRootNode(),e):$o(t.ownerDocument,e),K0(e)}function K0(e){if(ne)return;ne={},ne.ctx=e,ne.id=hn(),ne.paragraphQueue=[],ne.injectCssToDocument=$o;let t=cn(e);ne.rule={excludeSelectors:t.excludeSelectors,selectors:t.selectors||[]},ne.translationService=e.mouseHoverTranslationService,ne.currentUrl=window.location.href,ne.paragraphEntities={},ne.autoIncreaseParagraphId=1,ne.interruptEffectDOM=!1,ne.urlChangeDelay=e.rule.urlChangeDelay,ne.translateState=e.config.translationMode||"dual",ne.observeContainers=[],ne.observeParagraphs=[],ne.allInlineWindows=[window],window.switchTranslateState=G0.bind(ne)}function Nn(e=!0){ne&&(Dt("Original"),E9(),ne.interruptEffectDOM=!0,ne.ignoreResizeObserver?.disconnect(),ne.dynamicContainerObserver?.disconnect(),ne.containerVisibleObserver?.disconnect(),ne.paragraphVisibleObserver?.disconnect(),ne.titleDynamicObserver?.disconnect(),jg(ne.ctx),fg(),hg(),e&&G0.call(ne,"original"),Object.values(ne.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),ne=null)}function k9(e,t){e.interruptEffectDOM=!1;let n;return function(a){let r=a.message,u=!1;return r?.indexOf("Minified React error")>=0&&(u=!0),u&&(clearTimeout(n),Nn(),n=setTimeout(()=>{cr(t)},e.urlChangeDelay||2e3)),!0}}function S9(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{a.intersectionRatio>0&&(Ho(e,a.target),n.unobserve(a.target))})})}function D9(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{if(a.intersectionRatio>0){let r=a.target;(r.paragraphs||[]).forEach(o=>{z0(e,o)}),n.unobserve(r)}})})}var Hg;function L9(e){if(e.urlChangeDelay<=0)return!1;let n=(window.location.href||"").split("#")[0];return e.currentUrl.split("#")[0]!=n?(clearTimeout(Hg),e.translateState=="original"?!1:(Nn(e.urlChangeDelay>20),Hg=setTimeout(()=>{let r=e.ctx;cr(r)},e.urlChangeDelay),!0)):!1}function M9(e){return new MutationObserver(t=>{if(!L9(e)&&!e.interruptEffectDOM)for(let n of t){let a=e.ctx.rule.mutationObserverLimitTargetSelectors;if(a.length>0&&!En(n.target,a))return;if((n.addedNodes||[]).length<=0||n.target.nodeType!==Node.ELEMENT_NODE||!zt.isSkipMarkEle(n.target)&&!zt.isMarked(n.target,e.id))continue;let u=(n.target?.paragraphs||[]).reduce((o,i)=>{let s=i.rootNodes||[],c=i.targetNodes||[];return[...o,...s,...c]},[]);if(n.addedNodes.length>0&&n.addedNodes.length===n.target.childNodes.length&&En(n.target,e.ctx.rule.mutationObserverContainerSelectors)){zt.clearMark(n.target),n.target.paragraphs=void 0,Ho(e,n.target);return}n.addedNodes.forEach((o,i)=>{o.nodeType===Node.ELEMENT_NODE&&(u.includes(o)||Mt(o,e.ctx.rule.mutationExcludeSelectors)||lr(o,e))})}})}function F9(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let a of t){if(a.target.nodeType!==Node.ELEMENT_NODE)return;let r=a.target,u=globalThis.getComputedStyle(r);L0(u)||(n.unobserve(a.target),lr(r,e))}})}function G0(e){this.translateState=e,Object.values(this.paragraphEntities).forEach(t=>{U0(t,e)}),e=="original"&&document.querySelectorAll(`.${Kt}`).forEach(t=>t.remove())}function $o(e,t){if(e instanceof HTMLIFrameElement){ir(e.contentDocument,t);return}ir(e,t)}async function Wg(e){let t=Je(),n="auto";if(pe()){let a="";e.rule.isEbook||e.rule.isEbookBuilder?(a=v0(e.mainFrame),n=await Qe({text:a,pageLangs:["en"]})):(a=tr(e.mainFrame).slice(0,1e3),n=await Qe({text:a,pageLangs:[ba(),"en"]}))}else if(t)n=await Qe({text:tr(e.mainFrame).slice(0,1e3),pageLangs:[ba(),"en"]});else if(e.rule.isEbook||e.rule.isEbookBuilder){let a="";a=v0(e.mainFrame),n=await Qe({text:a,pageLangs:["en"]})}else n=await Od();return n==="auto"&&(n=await Mg()),Sd(n),n}async function $g(){if(!ne)return;document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=ne.paragraphEntities,t=Object.keys(e);for(let n of t){let a=e[n];if(a.error){ne.paragraphQueue.push(n);let u=a.commonAncestorContainer.querySelector(`[${Ou}='${n}']`);u&&u.remove()}}H0.call(ne,ne.ctx)}m();m();var Kg={"zh-CN":{"languages.en":"\u82F1\u8BED","languages.ja":"\u65E5\u8BED","languages.ko":"\u97E9\u8BED","languages.es":"\u897F\u73ED\u7259\u8BED","languages.fr":"\u6CD5\u8BED","languages.de":"\u5FB7\u8BED","languages.it":"\u610F\u5927\u5229\u8BED","languages.pt":"\u8461\u8404\u7259\u8BED","languages.ru":"\u4FC4\u8BED","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"},"zh-TW":{"languages.en":"\u82F1\u8A9E","languages.ja":"\u65E5\u8A9E","languages.ko":"\u97D3\u8A9E","languages.es":"\u897F\u73ED\u7259\u8A9E","languages.fr":"\u6CD5\u8A9E","languages.de":"\u5FB7\u8A9E","languages.it":"\u610F\u5927\u5229\u8A9E","languages.pt":"\u8461\u8404\u7259\u8A9E","languages.ru":"\u4FC4\u8A9E","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"}},Gg={...Ot,"zh-CN":{...Kg["zh-CN"],...Ot["zh-CN"]},"zh-TW":{...Kg["zh-TW"],...Ot["zh-TW"]}},Vg=Gg;function dr(e,t,n){return In(Gg,e,t,ju,n)}var Go=(e,t,n,a)=>{let r=x4[e]||e,u=E4[e],o=T4[e],i={"zh-CN":u,"zh-TW":o,en:r};if(n)return i[e]?i[e]:r;if(i[t]){let s=i[t];return a||e==="auto"||e==="placeholder"?s:`${s} (${r})`}else return r};m();m();function mr(e){Ka(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(a=>{j.error("send content message request failed",e,a)}),document.querySelectorAll("iframe").forEach(a=>{a.contentWindow&&a.contentWindow.postMessage({author:Fu,payload:e},"*")});let n=new CustomEvent($n,{detail:e});globalThis.document.dispatchEvent(n)}function V0(e){let t=e.shortcuts||{},a=Object.keys(t).reduce((u,o)=>(u[t[o]]=o,u),{}),r=Object.keys(a);for(let u of r){let o=u.replace(/MacCtrl/ig,"Ctrl");o&&Ye(o,i=>{i.preventDefault(),mr({method:a[u],data:{trigger:"shortcut"}})})}}m();m();m();m();m();var Xo,ve,Xg,P9,iu,Yg,e3,Jo={},t3=[],_9=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ca(e,t){for(var n in t)e[n]=t[n];return e}function n3(e){var t=e.parentNode;t&&t.removeChild(e)}function J0(e,t,n){var a,r,u,o={};for(u in t)u=="key"?a=t[u]:u=="ref"?r=t[u]:o[u]=t[u];if(arguments.length>2&&(o.children=arguments.length>3?Xo.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(u in e.defaultProps)o[u]===void 0&&(o[u]=e.defaultProps[u]);return Vo(e,o,a,r,null)}function Vo(e,t,n,a,r){var u={type:e,props:t,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++Xg};return r==null&&ve.vnode!=null&&ve.vnode(u),u}function Gt(e){return e.children}function Yo(e,t){this.props=e,this.context=t}function gr(e,t){if(t==null)return e.__?gr(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?Vo(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=n,f.__b=n.__b+1,(p=h[l])===null||p&&f.key==p.key&&f.type===p.type)h[l]=void 0;else for(g=0;g=n.__.length&&n.__.push({__V:ti}),n.__[e]}function De(e){return lu=1,I9(x3,e)}function I9(e,t,n){var a=ai(cu++,2);if(a.t=e,!a.__c&&(a.__=[n?n(t):x3(void 0,t),function(u){var o=a.__N?a.__N[0]:a.__[0],i=a.t(o,u);o!==i&&(a.__N=[i,a.__[1]],a.__c.setState({}))}],a.__c=tt,!tt.u)){tt.u=!0;var r=tt.shouldComponentUpdate;tt.shouldComponentUpdate=function(u,o,i){if(!a.__c.__H)return!0;var s=a.__c.__H.__.filter(function(l){return l.__c});if(s.every(function(l){return!l.__N}))return!r||r.call(this,u,o,i);var c=!1;return s.forEach(function(l){if(l.__N){var g=l.__[0];l.__=l.__N,l.__N=void 0,g!==l.__[0]&&(c=!0)}}),!!c&&(!r||r.call(this,u,o,i))}}return a.__N||a.__}function Ge(e,t){var n=ai(cu++,3);!ve.__s&&y3(n.__H,t)&&(n.__=e,n.i=t,tt.__H.__h.push(n))}function ri(e){return lu=5,el(function(){return{current:e}},[])}function el(e,t){var n=ai(cu++,7);return y3(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function da(e,t){return lu=8,el(function(){return e},t)}function ui(e){var t=tt.context[e.__c],n=ai(cu++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(tt)),t.props.value):e.__}function N9(){for(var e;e=b3.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ni),e.__H.__h.forEach(X0),e.__H.__h=[]}catch(t){e.__H.__h=[],ve.__e(t,e.__v)}}ve.__b=function(e){typeof e.type!="function"||e.o||e.type===Gt?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),tt=null,d3&&d3(e)},ve.__r=function(e){m3&&m3(e),cu=0;var t=(tt=e.__c).__H;t&&(Z0===tt?(t.__h=[],tt.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=ti,n.__N=n.i=void 0})):(t.__h.forEach(ni),t.__h.forEach(X0),t.__h=[])),Z0=tt},ve.diffed=function(e){g3&&g3(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(b3.push(t)!==1&&c3===ve.requestAnimationFrame||((c3=ve.requestAnimationFrame)||j9)(N9)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==ti&&(n.__=n.__V),n.i=void 0,n.__V=ti})),Z0=tt=null},ve.__c=function(e,t){t.some(function(n){try{n.__h.forEach(ni),n.__h=n.__h.filter(function(a){return!a.__||X0(a)})}catch(a){t.some(function(r){r.__h&&(r.__h=[])}),t=[],ve.__e(a,n.__v)}}),p3&&p3(e,t)},ve.unmount=function(e){f3&&f3(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(a){try{ni(a)}catch(r){t=r}}),n.__H=void 0,t&&ve.__e(t,n.__v))};var h3=typeof requestAnimationFrame=="function";function j9(e){var t,n=function(){clearTimeout(a),h3&&cancelAnimationFrame(t),setTimeout(e)},a=setTimeout(n,100);h3&&(t=requestAnimationFrame(n))}function ni(e){var t=tt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),tt=t}function X0(e){var t=tt;e.__c=e.__(),tt=t}function y3(e,t){return!e||e.length!==t.length||t.some(function(n,a){return n!==e[a]})}function x3(e,t){return typeof t=="function"?t(e):t}m();m();var pr={},U9={root:"",lang:"en",fallbackLang:"en"};function tl(e,t){let n=Object.assign({},U9,e);pr=t||pr;let[a,r]=De(n.lang),[u,o]=De(pr),[i,s]=De(!1),c=g=>{if(u.hasOwnProperty(g))return;s(!1);let p=Fg(n.root||"",g);n.getUrl&&(p=n.getUrl(n.root||"",g),fetch(p).then(f=>f.json()).then(f=>{pr[g]=f,o({...pr}),s(!0)}).catch(f=>{o({...pr}),s(!0)}))};return Ge(()=>{c(n.fallbackLang||"en"),c(a)},[a]),{lang:a,setLang:r,t:(g,p)=>{if(!u.hasOwnProperty(a))return g;let f=ru(u,a,g);return f===g&&a!==n.fallbackLang&&(f=ru(u,n.fallbackLang,g)),_0(f,p)},isReady:i}}m();m();var z9=0;function V(e,t,n,a,r){var u,o,i={};for(o in t)o=="ref"?u=t[o]:i[o]=t[o];var s={type:e,props:i,key:n,ref:u,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--z9,__source:r,__self:a};if(typeof e=="function"&&(u=e.defaultProps))for(o in u)i[o]===void 0&&(i[o]=u[o]);return ve.vnode&&ve.vnode(s),s}var al=ei(null),nl={root:"assets",lang:"en",fallbackLang:"en"},E3=e=>{let{t,setLang:n,lang:a,isReady:r}=tl({root:e.root||nl.root,lang:e.lang||nl.lang,fallbackLang:e.fallbackLang||nl.fallbackLang,getUrl:e.getUrl},e.translations);return V(al.Provider,{value:{t,setLang:n,lang:a,isReady:r},children:e.children})};m();m();function T3(e,t,n){let a=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),a=t!=="auto"?n[t].matches:[];let r={},u=Object.keys(n);for(let c of u){let g=n[c].matches;for(let p of g)r[p]||(r[p]=[]),r[p].push(c)}let o=r[e];if(o&&o.length>0)for(let c of o)n[c].matches.indexOf(e)>-1&&(n[c]={...n[c],matches:n[c].matches.filter(g=>g!==e)});let i=new Set(a);if(t==="auto")return{...n};i.add(e);let s=Array.from(i);return{...n,[t]:{...n[t],matches:s}}}m();m();function rl(){return V("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[V("path",{d:"M10.3873 2.29166C10.6319 2.29193 10.8664 2.38929 11.0392 2.56234C11.2121 2.73539 11.3092 2.96998 11.3092 3.21457V4.07811L12.1175 4.38332C12.7273 4.61277 13.2952 4.94074 13.7988 5.35416L14.4675 5.90207L15.2165 5.46978L15.2394 5.45624C15.3787 5.37479 15.5373 5.332 15.6988 5.33228C15.861 5.3325 16.0203 5.37522 16.1608 5.45618C16.3014 5.53715 16.4182 5.65353 16.4998 5.79374L16.8925 6.47395C17.0145 6.68593 17.0475 6.93764 16.9843 7.17391C16.921 7.41019 16.7666 7.61173 16.555 7.73436L16.5321 7.74791L15.7842 8.17916L15.9227 9.0302C16.031 9.67953 16.031 10.3423 15.9227 10.9917L15.781 11.8458L16.531 12.2781L16.5467 12.2875C16.758 12.4101 16.9122 12.6115 16.9754 12.8475C17.0387 13.0835 17.0059 13.335 16.8842 13.5469L16.5154 14.1844C16.3932 14.3961 16.1919 14.5507 15.9558 14.6141C15.7196 14.6776 15.468 14.6448 15.256 14.5229L15.2415 14.5135L14.4904 14.0802L13.8206 14.6323C13.3125 15.0519 12.7384 15.3845 12.1217 15.6167L11.3133 15.9219V16.7864C11.3132 16.9078 11.2891 17.028 11.2425 17.14C11.1958 17.2521 11.1276 17.3539 11.0415 17.4395C10.9555 17.5251 10.8535 17.5929 10.7412 17.6391C10.6289 17.6852 10.5087 17.7087 10.3873 17.7083H9.61229C9.3677 17.708 9.13322 17.6107 8.96037 17.4376C8.78751 17.2646 8.69042 17.03 8.69042 16.7854V15.9219L7.88209 15.6167C7.27233 15.3872 6.70437 15.0592 6.20084 14.6458L5.53209 14.0979L4.78313 14.5302L4.76021 14.5437C4.62084 14.6252 4.46226 14.668 4.30084 14.6677C4.13864 14.6675 3.97932 14.6248 3.83877 14.5438C3.69823 14.4628 3.58135 14.3464 3.49979 14.2062L3.10709 13.526C2.98505 13.3141 2.95205 13.0623 3.01532 12.8261C3.07858 12.5898 3.23296 12.3882 3.44459 12.2656L3.4675 12.2521L4.21542 11.8208L4.07688 10.9698C3.96856 10.3204 3.96856 9.65766 4.07688 9.00832L4.21854 8.1552L3.46959 7.72186L3.45709 7.70832C3.24914 7.58489 3.09787 7.38486 3.03575 7.15116C2.97362 6.91746 3.00559 6.66872 3.12479 6.45832L3.49354 5.82082C3.57469 5.68049 3.69133 5.56397 3.83175 5.48297C3.97217 5.40197 4.13144 5.35934 4.29354 5.35936C4.45497 5.35908 4.61355 5.40187 4.75292 5.48332L4.7675 5.49166L5.51854 5.92499L6.18834 5.37291C6.69646 4.95329 7.27054 4.62067 7.88729 4.38853L8.69563 4.08332V3.21874C8.69452 2.97433 8.79041 2.73945 8.96226 2.56565C9.13411 2.39185 9.36788 2.29331 9.61229 2.29166H10.3873ZM10.3873 1.04166H9.61229C9.03636 1.04193 8.4841 1.27084 8.07685 1.67809C7.66961 2.08533 7.4407 2.6376 7.44042 3.21353C6.69518 3.49423 6.00146 3.89618 5.38729 4.40312L5.37271 4.39478C4.87362 4.10685 4.2806 4.02894 3.72407 4.17818C3.16753 4.32742 2.69307 4.6916 2.405 5.19062L2.03729 5.83332C1.74928 6.33229 1.67121 6.92522 1.82025 7.48173C1.96929 8.03825 2.33324 8.51279 2.83209 8.80103L2.84771 8.80936C2.78023 9.20444 2.74539 9.6044 2.74354 10.0052C2.74367 10.3971 2.77572 10.7883 2.83938 11.175L2.81646 11.1885C2.56927 11.3311 2.35259 11.5209 2.1788 11.7472C2.00501 11.9735 1.87752 12.2319 1.80361 12.5075C1.7297 12.7831 1.71083 13.0706 1.74807 13.3535C1.7853 13.6364 1.87792 13.9091 2.02063 14.1562L2.41334 14.8364C2.55638 15.0837 2.74681 15.3003 2.97371 15.4738C3.20061 15.6473 3.45953 15.7743 3.73561 15.8475C4.01169 15.9208 4.29952 15.9388 4.58259 15.9007C4.86566 15.8625 5.13841 15.7688 5.38521 15.625L5.40813 15.6114C6.01714 16.1105 6.70362 16.5067 7.44042 16.7844C7.44028 17.0697 7.49635 17.3523 7.60542 17.616C7.7145 17.8797 7.87444 18.1193 8.07612 18.3212C8.27779 18.523 8.51726 18.6832 8.78084 18.7925C9.04441 18.9018 9.32694 18.9582 9.61229 18.9583H10.3873C10.9632 18.958 11.5155 18.7291 11.9227 18.3219C12.33 17.9146 12.5589 17.3624 12.5592 16.7864C13.3043 16.5061 13.9981 16.1045 14.6123 15.5979L14.6269 15.6062C15.126 15.8942 15.719 15.9721 16.2755 15.8228C16.8321 15.6736 17.3065 15.3094 17.5946 14.8104L17.9623 14.1729C18.2503 13.6739 18.3284 13.081 18.1793 12.5245C18.0303 11.968 17.6663 11.4934 17.1675 11.2052L17.1519 11.1969C17.2194 10.8018 17.2542 10.4018 17.256 10.001C17.2559 9.60915 17.2239 9.21792 17.1602 8.83124L17.1831 8.8177C17.4303 8.67516 17.647 8.48531 17.8208 8.259C17.9946 8.03269 18.1221 7.77435 18.196 7.49875C18.2699 7.22314 18.2888 6.93568 18.2515 6.65278C18.2143 6.36987 18.1217 6.09708 17.979 5.84999L17.5863 5.16978C17.4437 4.92202 17.2537 4.70485 17.027 4.53072C16.8003 4.3566 16.5415 4.22895 16.2654 4.1551C15.9893 4.08126 15.7013 4.06267 15.418 4.1004C15.1346 4.13814 14.8616 4.23145 14.6144 4.37499L14.5915 4.38853C13.9824 3.88946 13.296 3.49327 12.5592 3.21561C12.5593 2.93026 12.5032 2.64768 12.3942 2.384C12.2851 2.12031 12.1252 1.8807 11.9235 1.67883C11.7218 1.47695 11.4823 1.31678 11.2188 1.20746C10.9552 1.09813 10.6726 1.04179 10.3873 1.04166Z",fill:"#666666"}),V("path",{d:"M10.0003 7.91666C10.4124 7.91666 10.8152 8.03884 11.1578 8.26776C11.5004 8.49668 11.7674 8.82205 11.9251 9.20273C12.0828 9.58341 12.124 10.0023 12.0436 10.4064C11.9632 10.8106 11.7648 11.1818 11.4735 11.4731C11.1821 11.7645 10.8109 11.9629 10.4068 12.0433C10.0026 12.1237 9.58375 12.0824 9.20307 11.9247C8.82239 11.7671 8.49702 11.5 8.2681 11.1574C8.03918 10.8148 7.91699 10.412 7.91699 9.99999C7.91699 9.44745 8.13649 8.91755 8.52719 8.52685C8.91789 8.13615 9.44779 7.91666 10.0003 7.91666ZM10.0003 6.66666C9.34106 6.66666 8.69659 6.86215 8.14843 7.22842C7.60026 7.5947 7.17302 8.11529 6.92073 8.72438C6.66844 9.33346 6.60243 10.0037 6.73104 10.6503C6.85966 11.2969 7.17713 11.8908 7.6433 12.357C8.10948 12.8232 8.70342 13.1407 9.35003 13.2693C9.99663 13.3979 10.6669 13.3319 11.2759 13.0796C11.885 12.8273 12.4056 12.4001 12.7719 11.8519C13.1382 11.3037 13.3337 10.6593 13.3337 9.99999C13.3337 9.11593 12.9825 8.26809 12.3573 7.64297C11.7322 7.01785 10.8844 6.66666 10.0003 6.66666Z",fill:"#666666"})]})}m();function C3(e,t=2e3){return n=>{let a,r=0;return u=>{++r==e&&(n(u),r=0),clearTimeout(a),a=setTimeout(()=>r=0,t)}}}m();function w3(e){let t;try{t=new URL(e)}catch{return!1}let n=zd(),a="";try{a=new URL(n).hostname}catch{}return a&&t.hostname===a?!0:!(H9(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function H9(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}m();function v3(e){let t=e.split(".");return t.length>2?(t[0]="*",t.join(".")):null}m();function A3(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}m();m();function Ht(){return ui(al)}function jn(e){let{items:t,maxWidth:n,className:a}=e,{lang:r}=Ht();return n=n||(r==="en"?144:160),V("select",{autoComplete:"off",class:a||"min-select",style:{maxWidth:`${n}px`},value:t.find(u=>u.selected)?.value,onChange:u=>{let o=u.target.value,i=t.find(s=>s.value===o);i&&i.onSelected(i)},children:t.map((u,o)=>V("option",{value:u.value,selected:u.selected,children:u.label},"selectlink"+o))})}m();var oi="DROP_DOWN_DEFAULT_VALUE";function ul(e){let{showArrow:t,onSelected:n,className:a,menus:r,maxWidth:u}=e;a=a||"",t=t??!0,u=u||80;let o=ri(null);return V("select",{ref:o,autoComplete:"off",class:`text-label min-select ${t?"":"min-select-no-arrow"} ${a||""}`,value:oi,style:{maxWidth:`${u}px`},onChange:i=>{i.preventDefault();let s=i.target.value;if(o.current&&s!==oi){o.current.value=oi,o.current?.dispatchEvent(new Event("change"));let c=r.find(l=>l.value===s);c&&n(c)}},children:[{value:oi,label:e.label}].concat(r).map((i,s)=>V("option",{value:i.value,children:i.label},"option-"+s))})}m();function ol(e){let{field:t,onChange:n,value:a}=e;a=a||t.default||"";let{t:r}=Ht(),u=t.name;return t.label&&(u=t.label),t.labelKey&&(u=r(t.labelKey)),t.type==="select"?V("div",{class:"flex justify-between items-center mb-2",children:[V("label",{class:"inline-block",children:[u,"\uFF1A"]}),V(jn,{items:t.options.map(o=>({label:`${o.label?r(o.label):o.value}`,value:o.value,selected:a===o.value,onSelected:()=>{n(o.value)}}))})]}):null}m();m();function du(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var q9=({date:e})=>{let{t}=Ht(),[n,a]=De(!1);return Ge(()=>{setTimeout(()=>{a(!0)},5e3)},[]),n?null:V("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},W9=({minVersion:e})=>{let{t}=Ht();return V("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},$9=()=>{let{t:e}=Ht();return V("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:"https://immersivetranslate.com/docs/installation/"})}})},K9=({message:e,handleSyncing:t,date:n})=>{let{t:a}=Ht();return V("p",{class:"text-sm",children:[a("failToSyncRules")," ",V("a",{onClick:t,children:a("retry")}),V("br",{}),a("failedReason"),"\uFF1A",e,V("br",{}),a("currentRuleVersion"),"\uFF1A",n]})};function il(e){let{isShowError:t,request:n}=e,[a,r]=De(null),{t:u}=Ht(),[o,i]=De(null),[s,c]=De(null),[l,g]=De(""),[p,f]=De(!1),[d,b]=De(!1),[C,h]=De(!1),[A,S]=De(null),[U,R]=De(null),y=nn(),T=async()=>{g("");let k=o;if(o===null)try{let v=await n({url:Lr});v?(i(v),k=v,f(!0)):(g(u("unknownError")),c(null))}catch(v){c(null),g(v.message);return}k!==null?(e.setStorageBuildinConfig(k),c(!1),r(k.buildinConfigUpdatedAt)):(g(u("canNotFetchRemoteRule")),c(null))};return Ge(()=>{Jn().then(k=>{let v=k.buildinConfigUpdatedAt;S(k);let E=new Date(v);if(r(v),y==="0.0.0"){h(!0);return}n({url:Lr}).then(B=>{let P=B,w=P.minVersion,_=y;i(P);let O=P.latestVersion;if(O&&(du(_,O)?R(!0):R(!1)),du(_,w)){let N=P.buildinConfigUpdatedAt;new Date(N)>E?(c(!0),T()):c(!1)}else b(!0),c(null)}).catch(B=>{c(null),g(B.message)})})},[]),Ge(()=>{Jn().then(k=>{S(k)})},[a]),A?V("div",{class:"text-sm mt-2",style:{maxWidth:218},children:C?V($9,{}):l?t===!1?null:V(K9,{handleSyncing:T,message:l,date:a||""}):d?t===!1?null:V(W9,{minVersion:o.minVersion}):s===null||s===!0?null:p?V(q9,{date:a}):null}):null}m();var ii='',sl="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMTEuNjIzLS4zMTguODQ1Yy0uMjA4LjIyMi0uNTI3LjMzMy0uOTI4LjMzM2gtMS4zM1Y5LjI0MmgxLjMzWm05Ljg0NiAxLjc4OGMuMzg4IDAgLjY2NS4xNTIuODQ1LjQ1Ny4xNTIuMjY0LjIzNS41ODIuMjYzLjk4NHYuMzE5YzAgLjQ5OS0uMDgzLjg4Ny0uMjYzIDEuMTkyLS4xOC4zMDQtLjQ1Ny40NTctLjgzLjQ1Ny0uMzg5IDAtLjY2Ni0uMTUzLS44NDYtLjQ0NC0uMTUyLS4yNjMtLjIzNS0uNTk1LS4yNjMtMS4wMTF2LS4yOTFjMC0uNDg1LjA4My0uODczLjI2My0xLjE3OC4xOC0uMzA1LjQ0My0uNDg1LjgzMS0uNDg1Wm0tMy40MDctMS4xMzZhMS4xNyAxLjE3IDAgMCAwLS43MDYuMjM1IDEuNDgyIDEuNDgyIDAgMCAwLS40MTUuNWwtLjA4My4xNjUtLjA3LS44MDNoLTEuMzU3djUuNDMyaDEuNDU0di0zLjY1OWEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiA4LjEySDQuMTE0djcuMzE3aDEuNDY4VjEyLjc5aDEuMzNjLjg0NCAwIDEuNDk1LS4yMDggMS45OC0uNjM4LjQ4NS0uNDMuNzItLjk4My43Mi0xLjY5cy0uMjM1LTEuMjYxLS43Mi0xLjY5Yy0uNDQzLS4zODktMS4wMzktLjYxLTEuNzczLS42MzhsLS4yMjEtLjAxNFptOS44NDcgMS43NzRjLS44MDMgMC0xLjQyNi4yNjMtMS44ODMuNzc2LS40MTYuNDctLjYzNyAxLjA2Ny0uNjc5IDEuNzczdi4zMzNjMCAuODE4LjIyMiAxLjQ4My42NzkgMS45OTUuNDU3LjUxMyAxLjA4Ljc3NiAxLjg4My43NzYuODA0IDAgMS40MjctLjI2MyAxLjg4NC0uNzc2LjQxNS0uNDcuNjM3LTEuMDUzLjY3OC0xLjc3M3YtLjMzM2MwLS44MTctLjIyMS0xLjQ4Mi0uNjc4LTEuOTk1LS40NTctLjUxMy0xLjA4LS43NzYtMS44ODQtLjc3NlpNMTguMDAzIDZhNiA2IDAgMCAxIDAgMTJIMFY5LjQyM0EzLjQyIDMuNDIgMCAwIDEgMy40MiA2aDE0LjU4M1oiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSI3LjUiIHgyPSIyMiIgeTE9IjE5IiB5Mj0iNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMyMjIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM2OTY5NjkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=",ll="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzk5OSIgZD0iTTYuODk3IDMuMjQyYy40MTUgMCAuNzIuMTExLjkyOC4zNDcuMjA3LjIzNS4zMTguNTI2LjMxOC44NzMgMCAuMzQ2LS4xMS42MjMtLjMxOC44NDUtLjIwOC4yMjItLjUyNy4zMzMtLjkyOC4zMzNoLTEuMzNWMy4yNDJoMS4zM1ptOS44NDYgMS43ODhjLjM4OCAwIC42NjUuMTUyLjg0NS40NTcuMTUyLjI2NC4yMzUuNTgyLjI2My45ODR2LjMxOWMwIC40OTktLjA4My44ODctLjI2MyAxLjE5Mi0uMTguMzA0LS40NTcuNDU3LS44My40NTctLjM4OSAwLS42NjYtLjE1My0uODQ2LS40NDQtLjE1Mi0uMjYzLS4yMzUtLjU5NS0uMjYzLTEuMDExdi0uMjkxYzAtLjQ4NS4wODMtLjg3My4yNjMtMS4xNzguMTgtLjMwNS40NDMtLjQ4NS44MzEtLjQ4NVptLTMuNDA3LTEuMTM2YTEuMTcgMS4xNyAwIDAgMC0uNzA2LjIzNSAxLjQ4MiAxLjQ4MiAwIDAgMC0uNDE1LjVsLS4wODMuMTY1LS4wNy0uODAzaC0xLjM1N3Y1LjQzMmgxLjQ1NFY1Ljc2NGEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiAyLjEySDQuMTE0djcuMzE3aDEuNDY4VjYuNzloMS4zM2MuODQ0IDAgMS40OTUtLjIwOCAxLjk4LS42MzguNDg1LS40My43Mi0uOTgzLjcyLTEuNjlzLS4yMzUtMS4yNjEtLjcyLTEuNjljLS40NDMtLjM4OS0xLjAzOS0uNjEtMS43NzMtLjYzOGwtLjIyMS0uMDE0Wm05Ljg0NyAxLjc3NGMtLjgwMyAwLTEuNDI2LjI2My0xLjg4My43NzYtLjQxNi40Ny0uNjM3IDEuMDY3LS42NzkgMS43NzN2LjMzM2MwIC44MTguMjIyIDEuNDgzLjY3OSAxLjk5NS40NTcuNTEzIDEuMDguNzc2IDEuODgzLjc3Ni44MDQgMCAxLjQyNy0uMjYzIDEuODg0LS43NzYuNDE1LS40Ny42MzctMS4wNTMuNjc4LTEuNzczdi0uMzMzYzAtLjgxNy0uMjIxLTEuNDgzLS42NzgtMS45OTUtLjQ1Ny0uNTEzLTEuMDgtLjc3Ni0xLjg4NC0uNzc2Wk0xOC4wMDMgMGE2IDYgMCAwIDEgMCAxMkgwVjMuNDIzQTMuNDIgMy40MiAwIDAgMSAzLjQyIDBoMTQuNTgzWiIvPjwvc3ZnPg==";function cl(e){let t=nn(),{onTranslateTheMainPage:n,onUserConfigChange:a,request:r,onTranslateLocalHtmlFile:u,onSwitchTranslationMode:o,onTranslateLocalSubtitleFile:i,onSetBuildinConfig:s,pageStatus:c,openEbookBuilderPage:l,openPricingPage:g,openEbookViewerPage:p,config:f,openAboutPage:d,onTranslateTheWholePage:b,onToggleEnabled:C,openOptionsPage:h,ontranslateToThePageEndImmediately:A,onSetPageLanguage:S,onToggleTranslate:U,onTranslateLocalPdfFile:R,onTranslatePdf:y,onRestorePage:T,ctx:k,currentUrl:v,currentLang:E,onClose:B,onTranslatePage:P,onSetLocalConfig:w,onMouseTriggerChanged:_,errorMsg:O,disabledButton:N,noPermissionPDF:M}=e,x=a,[L,I]=De(""),[$,z]=De(O),[Y,q]=De(null),[ae,Q]=De(null),{t:G,lang:fe}=Ht(),he=70;fe.startsWith("zh")||(he=75);let re=null,K=null,se=null,me=null,ce=null,ye=null,ke=null,xe=null,Z=null,Ae=null,Le=null,Re=null;Ge(()=>{jt.get(Nt,null).then(H=>{H?(q(H),Q(tn(H))):Q(!1)}).catch(H=>{Q(!1)})},[]);let Ne=!0,st=Rt();if(f){st&&f&&(Ne=f.generalRule.showSponsorOnSafari);let{translationService:H,translationServices:de,translationUrlPattern:$e}=f;Bn[H]&&(xe=Fs("translationService",H,k)),de&&de[H]?Re=de[H]||{}:Re={};try{Z=new URL(v||"")}catch{}if(v&&w3(v)){Ae=v3(Z.hostname),Le=A3(v);let{matches:Me,excludeMatches:Pe}=$e;K=Me.includes(Ae),re=Me.includes(Z.hostname),me=Pe.includes(Ae),se=Pe.includes(Z.hostname),ye=Me.includes(Le),ke=Pe.includes(Le)}}if(f&&E&&E!=="auto"){let{translationLanguagePattern:H}=f,{matches:de}=H;de.includes(E)?ce=!0:ce=!1}let Pt=H=>{H.preventDefault(),h()},pa=H=>{x(de=>(de.alpha?I("Success disable alpha!"):I("Success enable alpha!"),{...de,alpha:!de.alpha}))},qt=H=>{x(de=>({...de,translationMode:H})),o(H)},Dn=()=>{x(H=>({...H,translationArea:"body"})),b()},Un=()=>{x(H=>({...H,translationArea:"main"})),n()},Oe=(H,de,$e,Me)=>{if(H==="default"){x(wn=>{let Qt={...wn.translationUrlPattern};return{...wn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...wn.translationUrlPattern,matches:Vn([Z?.hostname,Ae,v],Qt.matches),excludeMatches:Vn([Z?.hostname,Ae,v],Qt.excludeMatches)}}});return}let Pe=H,Ln=Pe==="matches"?"excludeMatches":"matches";Z&&x(wn=>{let Qt={...wn.translationUrlPattern};return Qt[Pe]=vs(de,Qt[Pe]),Me.length>0&&(Qt[Pe]=Vn(Me,Qt[Pe])),Qt[Ln]=Vn($e,Qt[Ln]),{...wn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...wn.translationUrlPattern,...Qt}}}),Pe==="matches"&&c==="Original"?setTimeout(()=>{P(),B()},100):Pe==="excludeMatches"&&c==="Translated"&&setTimeout(()=>{T(),B()},100)},Wt=H=>{if(!H){x(Me=>{let Pe={...Me.translationLanguagePattern};return{...Me,translationLanguagePattern:{...Me.translationLanguagePattern,matches:Vn(E,Pe.matches),excludeMatches:Vn(E,Pe.excludeMatches)}}});return}let de=H,$e=de==="matches"?"excludeMatches":"matches";E&&x(Me=>{let Pe={...Me.translationLanguagePattern};return Pe[de]=vs(E,Pe[de]),Pe[$e]=Vn(E,Pe[$e]),{...Me,translationLanguagePattern:{...Me.translationLanguagePattern,...Pe}}}),de==="matches"&&c==="Original"&&setTimeout(()=>{P(),B()},100)},rt=Z?.pathname.toLowerCase().endsWith(".pdf"),He=G("translate");c==="Translated"||c==="Error"?He=G("show-original"):c==="Original"?rt?Wu()&&Z.protocol==="file:"||M?He=G("translate-firefox-local-pdf"):pe()?He=G("noSupportTranslate-pdf"):He=G("translate-pdf"):He=G("translate"):He=G(c);let Jt=G("translateToThePageEndImmediately");(c==="Original"||c==="Translated")&&(f.shortcuts.toggleTranslatePage&&(I4()&&k.rule.fingerCountToToggleTranslagePageWhenTouching>=2?He+=` (${G(`fingers.${k.rule.fingerCountToToggleTranslagePageWhenTouching}`)})`:He+=` (${f.shortcuts.toggleTranslatePage})`),f.shortcuts.toggleTranslateToThePageEndImmediately&&(Jt+=` (${f.shortcuts.toggleTranslateToThePageEndImmediately})`));let _t=[];k&&(_t=Td(k,"translationService"));let zn=H=>{H.preventDefault(),B()},mt=tg(k.config.translationService,k.config.targetLanguage),mn=ye||re||K,Ue=()=>ye?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!ye,onChange:H=>{let de=H.target.checked;Oe(de?"matches":"default",Le,[Le],[])}}),G("alwaysTranslateSomePage")]}):re?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!re,onChange:H=>{let de=H.target.checked;Oe(de?"matches":"default",Z.hostname,[Z.hostname,Ae,Le],[Ae])}}),G("alwaysTranslateSomeSiteOrWildSite")]}):K?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!K,onChange:H=>{let de=H.target.checked;Oe(de?"matches":"default",Ae,[Le,Z.hostname,Ae],[Z.hostname])}}),G("alwaysTranslateSomeSiteOrWildSite")]}):null;return V("div",{children:[V("div",{class:"popup-container px-6 pt-6 max-content",children:[V("div",{class:"text-sm",children:[V("div",{class:"flex justify-between mb-3 items-center",children:[V("label",{class:"inline-block text-label",children:[G("popupSourceLanguage"),"\uFF1A"]}),V(jn,{maxWidth:186,items:en.map(H=>({label:Go(H,f.interfaceLanguage),value:H,selected:H===k.sourceLanguage,onSelected:de=>{S(de.value)}}))})]}),f&&f.targetLanguage&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[G("popupTarget"),"\uFF1A"]}),V(jn,{maxWidth:186,items:mt.filter(H=>H!=="auto").map(H=>({label:Go(H,f.interfaceLanguage),value:H,selected:H===f.targetLanguage,onSelected:de=>{x($e=>({...$e,targetLanguage:de.value}))}}))})]}),xe&&_t.length>0&&V(Gt,{children:[V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[G("popupService"),"\uFF1A"]}),V(jn,{maxWidth:186,items:_t.map(H=>({label:`${G("translationServices."+H.id)}${H.ok?"":" "+(" "+(!ae&&!st&&H.providers&&H.providers.length>0?G("goLoginOrAction"):G("needAction")))}`,value:H.id,selected:H.selected,onSelected:de=>{let $e=_t.find(Me=>Me.id===de.value);if($e.ok){if(x(Me=>({...Me,translationService:$e.id})),c!="Translated")return;$e.props.length===0?setTimeout(()=>{P()},1):setTimeout(()=>{T()},1)}else x(Me=>({...Me,translationService:$e.id})),setTimeout(()=>{h()},100)}}))})]}),Re&&xe.props.length>0&&xe.props.map((H,de)=>V("div",{class:"pl-4 text-sm",children:V(ol,{field:H,value:Re[H.name],onChange:$e=>{x(Me=>{let Pe=Me.translationServices||{},Ln=Pe[xe.id]||{};return setTimeout(()=>{T()},1),{...Me,translationServices:{...Pe,[xe.id]:{...Ln,[H.name]:$e}}}})}},"field-"+de)},"service"+de))]}),Z&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:G("forThisSite")}),V(jn,{maxWidth:186,items:[{label:G("default"),value:"default",selected:re===!1&&se===!1&&!K&&!me&&!ye&&!ke,onSelected:()=>{Oe("default",Z.hostname,[],[]);let H=Z.hostname,de=k.localConfig.tempTranslationUrlMatches||[],$e=de.filter(Pe=>Pe.match!==H),Me=!1;$e.length!==de.length&&(Me=!0),Me&&w({...k.localConfig,tempTranslationUrlMatches:[...$e]})}},Le&&{label:G("alwaysTranslateSomeSite",{hostname:G("currentUrl")}),value:"matchesUrl",selected:ye,onSelected:()=>{Oe("matches",Le,[Le],[])}},{label:G("alwaysTranslateSomeSite",{hostname:Z.hostname}),value:"matches",selected:re,onSelected:H=>{Oe(H.value,Z.hostname,[Z.hostname,Ae,Le],[Ae])}},Ae&&{label:G("alwaysTranslateSomeSite",{hostname:Ae}),value:"matchesWild",selected:K,onSelected:()=>{Oe("matches",Ae,[Le,Z.hostname,Ae],[Z.hostname])}},Le&&{label:G("neverTranslateSomeSite",{hostname:G("currentUrl")}),value:"excludeMatchesUrl",selected:ke,onSelected:()=>{Oe("excludeMatches",Le,[Le],[])}},{label:G("neverTranslateSomeSite",{hostname:Z.hostname}),value:"excludeMatches",selected:se,onSelected:H=>{Oe(H.value,Z.hostname,[Z.hostname,Ae,Le],[Ae])}},Ae&&{label:G("neverTranslateSomeSite",{hostname:Ae}),value:"excludeMatchesWild",selected:me,onSelected:()=>{Oe("excludeMatches",Ae,[Z.hostname,Le,Ae],[Z.hostname])}}].filter(Boolean)})]}),_&&Br()&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[G("mouse-translate"),"\uFF1A"]}),V(jn,{maxWidth:186,items:zu.filter(H=>!(zu.includes(f.generalRule.mouseHoverHoldKey)&&H==="OtherCustom")).map(H=>{let de=G("mouseHoldKey",{key:H}),$e=zu.includes(f.generalRule.mouseHoverHoldKey),Me=H===f.generalRule.mouseHoverHoldKey;return H==="Auto"?de=G("mouseHoldKeyAuto"):H==="Off"?de=G("mouseHoldKeyOff"):H==="OtherCustom"?de=$e?G("mouseHoldKeyOther"):G("mouseHoldKeyCustomKey",{key:f.generalRule.mouseHoverHoldKey}):H==="Other"&&(de=G("mouseHoldKeyOther")),$e||H==="OtherCustom"&&(Me=!0),{label:de,value:H,selected:Me,onSelected:Pe=>{Pe.value==="Other"?h("#interface"):_(Pe.value)}}})})]})]}),V("div",{class:"",children:V("button",{class:"py-2 mt-1 mb-5 main-button ",onClick:()=>{rt?y&&y():U()},"aria-busy":c==="Translating",disabled:N||c==="Translating",children:He})}),V("div",{class:"text-sm",children:L}),V("div",{class:`pb-2 text-sm ${$?"":"display-none"}`,children:$}),V("div",{class:"flex items-center justify-between flex-wrap",children:[mn?V(Ue,{}):E&&E!=="auto"?V("label",{for:"alwaysTranslateThisLanugage",class:"text-sm text-label text-overflow-ellipsis max-w-20",children:[V("input",{type:"checkbox",id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",checked:!!ce,onChange:H=>{let de=H.target.checked;Wt(de?"matches":void 0)}}),G("alwaysTranslateSomeLanguage",{language:Go(E,f.interfaceLanguage,!1,!0)})]}):V("span",{}),V("div",{class:`flex flex-end flex-grow ${$?"display-none":""}`,children:V("span",{class:"immersive-translate-no-select muted text-sm",onClick:C3(7)(pa),children:["V",t,f.enabled?null:V("a",{href:"#",onClick:C,children:[" ","(",G("hasBeenDisabled"),")"]})]})})]})]}),V("footer",{children:[V("div",{class:"px-6 text-label",children:V(il,{isShowError:!1,request:r,setStorageBuildinConfig:s})}),V("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer text-label",children:[V("div",{class:"flex flex-row items-center justify-center secondary clickable",style:{width:70},onClick:Pt,children:[V(rl,{}),V("span",{class:"ml-1",children:G("options")})]}),Ne?V("a",{title:G(ae?"popup.openProForPro":"popup.openPro"),target:"_blank",href:ae?ms:gs,children:V("img",{src:ae?sl:ll})}):ae&&V("a",{title:G(ae?"popup.openProForPro":"popup.openPro"),target:"_blank",href:ae?ms:gs,children:V("img",{src:ae?sl:ll})}),V(ul,{label:G("more"),showArrow:!0,maxWidth:he,onSelected:H=>{H.value==="openPremium"?(globalThis.open(Pr),B()):H.value==="changeToOnlyTranslationMode"?qt("translation"):H.value==="changeToDualTranslationMode"?qt("dual"):H.value==="translateTheWholePage"?b():H.value==="translateToThePageEndImmediately"?A():H.value==="translateTheMainPage"?n():H.value==="showTranslationOnly"||(H.value==="translateLocalPdfFile"?R&&R():H.value==="translateLocalHtmlFile"?u&&u():H.value==="translateLocalSubtitleFile"?i&&i():H.value==="donate"?(globalThis.open(f.donateUrl),B()):H.value==="feedback"?(globalThis.open(f.feedbackUrl),B()):H.value==="options"?(h(),B()):H.value==="changeToTranslateTheWholePage"?Dn():H.value==="changeToTranslateTheMainPage"?Un():H.value==="about"?d():H.value==="toggleEnabled"?C():H.value==="openEbookViewer"?p():H.value==="openEbookBuilder"?l():H.value==="goPro"&&g())},menus:[f.translationMode==="dual"&&{label:"\u{1F524} "+G("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},f.translationMode==="translation"&&{label:"\u{1F521} "+G("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},f.translationArea==="main"&&{label:"\u{1F480} "+G("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},f.translationArea==="body"&&{label:"\u{1F4D6} "+G("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},{label:"\u26A1 "+Jt,value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+G("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+G("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+G("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},!pe()&&{label:"\u{1F310} "+G("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+G("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},ae===!1&&Ne&&{label:"\u{1F451} "+G("upgradeToPro"),value:"goPro"},{label:"\u2764\uFE0F "+G(Ne?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})]})]})}m();m();m();m();var dl={get:(e,t,n)=>{let a=t===void 0?e:{[e]:t};return ue.storage[n].get(a)},set:(e,t,n)=>ue.storage[n].set({[e]:t})};function si(e,t,n){let[a]=De(()=>typeof t=="function"?t():t),[r]=De(n),[u,o]=De(a),[i,s]=De(!1),[c,l]=De("");Ge(()=>{dl.get(e,a,r).then(p=>{p[e]&&o(p[e]),s(!0),l("")}).catch(p=>{s(!1),l(p)})},[e,a,r]);let g=da(p=>{let f=typeof p=="function"?p(u):p;j.debug("new settings",f),dl.set(e,f,r).then(()=>{o(f),s(!0),l("")}).catch(d=>{o(f),s(!1),l(d)})},[r,e,u]);return[u,g,i,c]}m();function ml(e,t,n){let a=[];return function(){let[u,o,i,s]=si(e,t,n),c=da(l=>{for(let g of a)g(l)},[]);return Ge(()=>(a.push(o),()=>{a.splice(a.indexOf(o),1)}),[o]),[u,c,i,s]}}function k3(e,t){return ml(e,t,"sync")}var G9="userConfig",V9=null,Y9=k3(G9,V9);function li(e){let[t,n,a,r]=Y9(),u=da(o=>{let i=typeof o=="function"?o(t):o;i&&(i.updatedAt=new Date().toISOString()),n(i),e&&e(i)},[t]);return[t,u,a,r,n]}m();m();async function ci(e){try{let t=new Date;j.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await ue.storage.local.set({[Fr]:t.toISOString()}),await J9(),pe()||await $d()}catch(t){j.error("run cron task failed",t)}}async function S3(){let t=(await Lt()).interval;if(t){let n=await ue.storage.local.get(Fr);if(n&&n[Fr]){let a=n[Fr];if(Date.now()-new Date(a).getTime()a?(await ue.storage.local.set({buildinConfig:t}),j.info(`sync remote rules success, latest: ${new Date(r).toLocaleString()}`)):j.debug(`no need to sync rules, latest: ${a}`):j.info(`local version is too old, please update to ${o} or later`)}catch(e){j.error("sync rules error: ",e)}}m();m();m();m();m();m();var gl;function wl(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function O3(e,t=","){return e.map(wl).join(t)}var I3=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function mi(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function gi(e,t="@media "){return t+Vt(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(a=>`(${a}-width:${n[a]})`).join(" and "))).join(",")}function Vt(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function Q9(){}var ht={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function N3(e){return e.match(/[-=:;]/g)?.length||0}function xl(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(N3(e),15)<<18}var Z9=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function vl({n:e,i:t,v:n=[]},a,r,u){e&&(e=wl({n:e,i:t,v:n})),u=[...Vt(u)];for(let i of n){let s=a.theme("screens",i);for(let c of Vt(s&&gi(s)||a.v(i))){var o;u.push(c),r|=s?67108864|xl(c):i=="dark"?1073741824:c[0]=="@"?xl(c):(o=c,1<<~(/:([a-z-]+)/.test(o)&&~Z9.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:r,r:u,i:t}}var Al=new Map;function D3(e){if(e.d){let t=[],n=pl(e.r.reduce((a,r)=>r[0]=="@"?(t.push(r),a):r?pl(a,u=>pl(r,o=>{let i=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(i){let s=u.indexOf(i[1]);return~s?u.slice(0,s)+i[0]+u.slice(s+i[1].length):fl(u,o)}return fl(o,u)})):a,"&"),a=>fl(a,e.n?"."+I3(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((a,r)=>r+"{"+a+"}",e.d)}}function pl(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,a,r)=>t(a)+r)}function fl(e,t){return e.replace(/&/g,t)}var L3=new Intl.Collator("en",{numeric:!0});function X9(e,t){for(var n=0,a=e.length;n>1;0>=j3(e[r],t)?n=r+1:a=r}return a}function j3(e,t){let n=e.p&ht.o;return n==(t.p&ht.o)&&(n==ht.b||n==ht.o)?0:e.p-t.p||e.o-t.o||L3.compare(M3(e.n),M3(t.n))||L3.compare(F3(e.n),F3(t.n))}function M3(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function F3(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function hl(e,t){return Math.round(parseInt(e,16)*t)}function ma(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:a}=t,r=a?`var(${a})`:n;if(e.includes(""))return e.replace("",r);if(e[0]=="#"&&(e.length==4||e.length==7)){let u=(e.length-1)/3,o=[17,1,.062272][u-1];return`rgba(${[hl(e.substr(1,u),o),hl(e.substr(1+u,u),o),hl(e.substr(1+2*u,u),o),r]})`}return r=="1"?e:r=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${r})`)}function U3(e,t,n,a,r=[]){return function u(o,{n:i,p:s,r:c=[],i:l},g){let p=[],f="",d=0,b=0;for(let A in o||{}){var C,h;let S=o[A];if(A[0]=="@"){if(!S)continue;if(A[1]=="a"){p.push(...H3(i,s,Sl(""+S),g,s,c,l,!0));continue}if(A[1]=="l"){for(let U of Vt(S))p.push(...u(U,{n:i,p:(C=ht[A[7]],s&~ht.o|C),r:A[7]=="d"?[]:c,i:l},g));continue}if(A[1]=="i"){p.push(...Vt(S).map(U=>({p:-1,o:0,r:[],d:A+" "+U})));continue}if(A[1]=="k"){p.push({p:ht.d,o:0,r:[A],d:u(S,{p:ht.d},g).map(D3).join("")});continue}if(A[1]=="f"){p.push(...Vt(S).map(U=>({p:ht.d,o:0,r:[A],d:u(U,{p:ht.d},g).map(D3).join("")})));continue}}if(typeof S!="object"||Array.isArray(S))A=="label"&&S?i=S+mi(JSON.stringify([s,l,o])):(S||S===0)&&(A=A.replace(/[A-Z]/g,U=>"-"+U.toLowerCase()),b+=1,d=Math.max(d,(h=A)[0]=="-"?0:N3(h)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(h)?+!!RegExp.$1||-!!RegExp.$2:0)+1),f+=(f?";":"")+Vt(S).map(U=>g.s(A,z3(""+U,g.theme)+(l?" !important":""))).join(";"));else if(A[0]=="@"||A.includes("&")){let U=s;A[0]=="@"&&(A=A.replace(/\bscreen\(([^)]+)\)/g,(R,y)=>{let T=g.theme("screens",y);return T?(U|=67108864,gi(T,"")):R}),U|=xl(A)),p.push(...u(S,{n:i,p:U,r:[...c,A],i:l},g))}else p.push(...u(S,{p:s,r:[...c,A]},g))}return p.unshift({n:i,p:s,o:Math.max(0,15-b)+1.5*Math.min(d||15,15),r:c,d:f}),p.sort(j3)}(e,vl(t,n,a,r),n)}function z3(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,a,r,u,o="")=>{let i=t(r,o);return typeof i=="function"&&/color|fill|stroke/i.test(r)?ma(i):""+Vt(i).filter(s=>Object(s)!==s)})}function kl(e,t){let n,a=[];for(let r of e)r.d&&r.n?n?.p==r.p&&""+n.r==""+r.r?(n.c=[n.c,r.c].filter(Boolean).join(" "),n.d=n.d+";"+r.d):a.push(n={...r,n:r.n&&t}):a.push({...r,n:r.n&&t});return a}function El(e,t,n=ht.u,a,r){let u=[];for(let o of e)for(let i of function(s,c,l,g,p){s={...s,i:s.i||p};let f=function(d,b){let C=Al.get(d.n);return C?C(d,b):b.r(d.n,d.v[0]=="dark")}(s,c);return f?typeof f=="string"?({r:g,p:l}=vl(s,c,l,g),kl(El(Sl(f),c,l,g,s.i),s.n)):Array.isArray(f)?f.map(d=>{var b,C;return{o:0,...d,r:[...Vt(g),...Vt(d.r)],p:(b=l,C=d.p??l,b&~ht.o|C)}}):U3(f,s,c,l,g):[{c:wl(s),p:0,o:0,r:[]}]}(o,t,n,a,r))u.splice(X9(u,i),0,i);return u}function H3(e,t,n,a,r,u,o,i){return kl((i?n.flatMap(s=>El([s],a,r,u,o)):El(n,a,r,u,o)).map(s=>s.p&ht.o&&(s.n||t==ht.b)?{...s,p:s.p&~ht.o|t,o:0}:s),e)}function eb(e,t,n,a){var r;return r=(u,o)=>{let{n:i,p:s,r:c,i:l}=vl(u,o,t);return n&&H3(i,t,n,o,s,c,l,a)},Al.set(e,r),e}function bl(e,t,n){if(e[e.length-1]!="("){let a=[],r=!1,u=!1,o="";for(let i of e)if(!(i=="("||/[~@]$/.test(i))){if(i[0]=="!"&&(i=i.slice(1),r=!r),i.endsWith(":")){a[i=="dark:"?"unshift":"push"](i.slice(0,-1));continue}i[0]=="-"&&(i=i.slice(1),u=!u),i.endsWith("-")&&(i=i.slice(0,-1)),i&&i!="&"&&(o+=(o&&"-")+i)}o&&(u&&(o="-"+o),t[0].push({n:o,v:a.filter(tb),i:r}))}}function tb(e,t,n){return n.indexOf(e)==t}var P3=new Map;function Sl(e){let t=P3.get(e);if(!t){let n=[],a=[[]],r=0,u=0,o=null,i=0,s=(c,l=0)=>{r!=i&&(n.push(e.slice(r,i+l)),c&&bl(n,a)),r=i+1};for(;i1?g.slice(0,-1)+mi(JSON.stringify([g,p])):g+"("+O3(p)+")",ht.a,p,/@$/.test(g))],a)}l=n.lastIndexOf("(",l-1)}n.length=l+1}else/[~@]/.test(c)&&e[i+1]=="("&&a.unshift([])}s(!0),P3.set(e,t=a[0])}return t}function q3(e,t,n){return t.reduce((a,r,u)=>a+n(r)+e[u+1],e[0])}function W3(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?q3(e,t,n=>yl(n).trim()):t.filter(Boolean).reduce((n,a)=>n+yl(a),e?yl(e):"")}function yl(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=W3(e[0],e.slice(1)))&&(n+=" "+t);else for(let a in e)e[a]&&(n+=" "+a);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var bP=$3("@"),yP=$3("~");function $3(e){return new Proxy(function(n,...a){return t("",n,a)},{get(n,a){return a in n?n[a]:function(r,...u){return t(a,r,u)}}});function t(n,a,r){return O3(Sl(n+e+"("+W3(a,r)+")"))}}function Tl(e,t){return Array.isArray(e)?_3(q3(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?_3(e):[e]}var nb=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function _3(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],a=[n[0]],r=[];for(;t=nb.exec(e);)t[4]&&(n.shift(),r.shift()),t[3]?(r.unshift(t[3]),n.unshift({}),a.push(r.reduce((u,o)=>({[o]:u}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),a.push(r.reduce((u,o)=>({[o]:u}),n[0]))),n[0][t[1]]=t[2]);return a}function K3(e,...t){var n;let a=Tl(e,t),r=(a.find(u=>u.label)?.label||"css")+mi(JSON.stringify(a));return n=(u,o)=>kl(a.flatMap(i=>U3(i,u,o,ht.o)),r),Al.set(r,n),r}var xP=new Proxy(function(e,t){return B3("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,a){return B3(t,n,a)}}});function B3(e,t,n){return{toString(){return K3({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function ee(e,t,n){return[e,ab(t,n)]}function ab(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,a)=>({[e]:t?t(n,a):Cl(n,1)}):n=>e||{[n[1]]:Cl(n,2)}}function Cl(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function te(e,t,n,a){return[e,rb(t,n,a)]}function rb(e,t,n){let a=typeof t=="string"?(r,u)=>({[t]:n?n(r,u):r._}):t||(({1:r,_:u},o,i)=>({[r||i]:u}));return(r,u)=>{let o=G3(e||r[1]),i=u.theme(o,r.$$)??fr(r.$$,o,u);if(i!=null)return r._=Cl(r,0,i),a(r,u,o)}}function it(e,t={},n){return[e,ub(t,n)]}function ub(e={},t){return(n,a)=>{let{section:r=G3(n[0]).replace("-","")+"Color"}=e,[u,o]=ob(n.$$);if(!u)return;let i=a.theme(r,u)||fr(u,r,a);if(!i||typeof i=="object")return;let{opacityVariable:s=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:c=r.replace("Color","Opacity"),property:l=r,selector:g}=e,p=a.theme(c,o||"DEFAULT")||o&&fr(o,c,a),f=t||(({_:b})=>{let C=mu(l,b);return g?{[g]:C}:C});n._={value:ma(i,{opacityVariable:s||void 0,opacityValue:p||void 0}),color:b=>ma(i,b),opacityVariable:s||void 0,opacityValue:p||void 0};let d=f(n,a);if(!n.dark){let b=a.d(r,u,i);b&&b!==i&&(n._={value:ma(b,{opacityVariable:s||void 0,opacityValue:p||"1"}),color:C=>ma(b,C),opacityVariable:s||void 0,opacityValue:p||void 0},d={"&":d,[a.v("dark")]:f(n,a)})}return d}}function ob(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function mu(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function fr(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=di(z3(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function G3(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function di(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",a,r="")=>di(n)+a+di(r)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var EP=Symbol();var V3=new Proxy(Q9,{apply(e,t,n){return gl(n[0])},get(e,t){let n=gl[t];return typeof n=="function"?function(){return n.apply(gl,arguments)}:n}});var TP=function e(t){return new Proxy(function(n,...a){return R3(t,"",n,a)},{get(n,a){return a==="bind"?e:a in n?n[a]:function(r,...u){return R3(t,a,r,u)}}})}();function R3(e,t,n,a){return{toString(){let r=Tl(n,a),u=I3(t+mi(JSON.stringify([t,r])));return(typeof e=="function"?e:V3)(K3({[`@keyframes ${u}`]:Tl(n,a)})),u}}}m();m();m();m();m();var Y3={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...Yt(4,"rem",4,.5,.5),...Yt(12,"rem",4,5),14:"3.5rem",...Yt(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Fe("blur"),backdropBrightness:Fe("brightness"),backdropContrast:Fe("contrast"),backdropGrayscale:Fe("grayscale"),backdropHueRotate:Fe("hueRotate"),backdropInvert:Fe("invert"),backdropOpacity:Fe("opacity"),backdropSaturate:Fe("saturate"),backdropSepia:Fe("sepia"),backgroundColor:Fe("colors"),backgroundImage:{none:"none"},backgroundOpacity:Fe("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...Yt(200,"",100,0,50),...Yt(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Fe("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Fe("spacing"),borderWidth:{DEFAULT:"1px",...dn(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Fe("colors"),caretColor:Fe("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...Yt(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Fe("borderColor"),divideOpacity:Fe("borderOpacity"),divideWidth:Fe("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...gu(2,6),...gu(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Fe("spacing"),gradientColorStops:Fe("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...gu(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...gu(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...Yt(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...Yt(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Fe("spacing"),placeholderColor:Fe("colors"),placeholderOpacity:Fe("opacity"),outlineColor:Fe("colors"),outlineOffset:dn(8,"px"),outlineWidth:dn(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Fe("colors"),ringOffsetWidth:dn(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...dn(8,"px")},rotate:{...dn(2,"deg"),...dn(12,"deg",3),...dn(180,"deg",45)},saturate:Yt(200,"",100,0,50),scale:{...Yt(150,"",100,0,50),...Yt(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Fe("spacing"),scrollPadding:Fe("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...dn(2,"deg"),...dn(12,"deg",3)},space:Fe("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:Yt(2),textColor:Fe("colors"),textDecorationColor:Fe("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...dn(8,"px")},textUnderlineOffset:{auto:"auto",...dn(8,"px")},textIndent:Fe("spacing"),textOpacity:Fe("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Fe("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...gu(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...Yt(50,"",1,0,10),auto:"auto"}};function gu(e,t){let n={};do for(var a=1;at(e)}var jP={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${Y3.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${Y3.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},zP=[ee("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:fr(`[${t}]`,"",n)}}})),ee("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),te("aspect-","aspectRatio"),ee("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:a,padding:r}=t("container"),u={width:"100%",marginRight:a&&"auto",marginLeft:a&&"auto",...o("xs")};for(let i in n){let s=n[i];typeof s=="string"&&(u[gi(s)]={"&":{maxWidth:s,...o(i)}})}return u;function o(i){let s=r&&(typeof r=="string"?r:r[i]||r.DEFAULT);if(s)return{paddingRight:s,paddingLeft:s}}}),te("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),ee("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),ee("box-(border|content)","boxSizing",({1:e})=>e+"-box"),ee("hidden",{display:"none"}),ee("table-(auto|fixed)","tableLayout"),ee(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",ee("isolate","isolation"),ee("object-(contain|cover|fill|none|scale-down)","objectFit"),te("object-","objectPosition"),ee("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",pi),ee("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),ee("(static|fixed|absolute|relative|sticky)","position"),te("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),te("-?(top|bottom|left|right)(?:$|-)","inset"),ee("(visible|collapse)","visibility"),ee("invisible",{visibility:"hidden"}),te("-?z-","zIndex"),ee("flex-((row|col)(-reverse)?)","flexDirection",J3),ee("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),te("(flex-(?:grow|shrink))(?:$|-)"),te("(flex)-"),te("grow(?:$|-)","flexGrow"),te("shrink(?:$|-)","flexShrink"),te("basis-","flexBasis"),te("-?(order)-"),"-?(order)-(\\d+)",te("grid-cols-","gridTemplateColumns"),ee("grid-cols-(\\d+)","gridTemplateColumns",ep),te("col-","gridColumn"),ee("col-(span)-(\\d+)","gridColumn",X3),te("col-start-","gridColumnStart"),ee("col-start-(auto|\\d+)","gridColumnStart"),te("col-end-","gridColumnEnd"),ee("col-end-(auto|\\d+)","gridColumnEnd"),te("grid-rows-","gridTemplateRows"),ee("grid-rows-(\\d+)","gridTemplateRows",ep),te("row-","gridRow"),ee("row-(span)-(\\d+)","gridRow",X3),te("row-start-","gridRowStart"),ee("row-start-(auto|\\d+)","gridRowStart"),te("row-end-","gridRowEnd"),ee("row-end-(auto|\\d+)","gridRowEnd"),ee("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>pi(J3(e))),ee("grid-flow-(dense)","gridAutoFlow"),te("auto-cols-","gridAutoColumns"),te("auto-rows-","gridAutoRows"),te("gap-x(?:$|-)","gap","columnGap"),te("gap-y(?:$|-)","gap","rowGap"),te("gap(?:$|-)","gap"),"(justify-(?:items|self))-",ee("justify-","justifyContent",Q3),ee("(content|items|self)-",e=>({["align-"+e[1]]:Q3(e)})),ee("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),te("p([xytrbl])?(?:$|-)","padding",hr("padding")),te("-?m([xytrbl])?(?:$|-)","margin",hr("margin")),te("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),ee("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),te("w-","width"),te("min-w-","minWidth"),te("max-w-","maxWidth"),te("h-","height"),te("min-h-","minHeight"),te("max-h-","maxHeight"),te("font-","fontWeight"),te("font-","fontFamily",({_:e})=>typeof(e=Vt(e))[1]=="string"?{fontFamily:Cn(e)}:{fontFamily:Cn(e[0]),...e[1]}),ee("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),ee("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),ee("italic","fontStyle"),ee("not-italic",{fontStyle:"normal"}),ee("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...ga({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),te("tracking-","letterSpacing"),te("leading-","lineHeight"),ee("list-(inside|outside)","listStylePosition"),te("list-","listStyleType"),ee("list-","listStyleType"),te("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),it("placeholder-",{property:"color",selector:"&::placeholder"}),ee("text-(left|center|right|justify|start|end)","textAlign"),ee("text-(ellipsis|clip)","textOverflow"),te("text-opacity-","textOpacity","--tw-text-opacity"),it("text-",{property:"color"}),te("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),te("indent-","textIndent"),ee("(overline|underline|line-through)","textDecorationLine"),ee("no-underline",{textDecorationLine:"none"}),te("underline-offset-","textUnderlineOffset"),it("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),te("decoration-","textDecorationThickness"),ee("decoration-","textDecorationStyle"),ee("(uppercase|lowercase|capitalize)","textTransform"),ee("normal-case",{textTransform:"none"}),ee("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),ee("align-","verticalAlign"),ee("whitespace-","whiteSpace"),ee("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),ee("break-words",{overflowWrap:"break-word"}),ee("break-all",{wordBreak:"break-all"}),ee("break-keep",{wordBreak:"keep-all"}),it("caret-",{opacityVariable:!1,opacitySection:"opacity"}),it("accent-",{opacityVariable:!1,opacitySection:"opacity"}),ee("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${Da(e," ")},var(--tw-gradient-stops))`),it("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),it("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),it("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),ee("bg-(fixed|local|scroll)","backgroundAttachment"),ee("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),ee(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),ee("bg-blend-","backgroundBlendMode"),ee("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),te("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),it("bg-",{section:"backgroundColor"}),te("bg-","backgroundImage"),te("bg-","backgroundPosition"),ee("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",pi),te("bg-","backgroundSize"),te("rounded(?:$|-)","borderRadius"),te("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${Da(n[0])}-radius`]:t,[`border-${Da(n[1])}-radius`]:t}}),ee("border-(collapse|separate)","borderCollapse"),te("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),ee("border-(solid|dashed|dotted|double|none)","borderStyle"),te("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...ga({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),it("border-([xytrbl])-",{section:"borderColor"},hr("border","Color")),it("border-"),te("border-([xytrbl])(?:$|-)","borderWidth",hr("border","Width")),te("border(?:$|-)","borderWidth"),te("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),ee("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),ee("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),te("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${Da(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${Da(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),it("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),te("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),it("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),te("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),ee("ring-inset",{"--tw-ring-inset":"inset"}),it("ring-",{property:"--tw-ring-color"}),te("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...ga({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":ma(t("ringOffsetColor","","#fff")),"--tw-ring-color":ma(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),it("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),te("shadow(?:$|-)","boxShadow",({_:e})=>({...ga({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Cn(e),"--tw-shadow-colored":Cn(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),te("(opacity)-"),ee("mix-blend-","mixBlendMode"),...Z3(),...Z3("backdrop-"),te("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Cn(e),transitionTimingFunction:e._=="none"?void 0:Cn(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:Cn(t("transitionDuration",""))})),te("duration(?:$|-)","transitionDuration","transitionDuration",Cn),te("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Cn),te("delay(?:$|-)","transitionDelay","transitionDelay",Cn),te("animate(?:$|-)","animation",(e,{theme:t,h:n,e:a})=>{let r=Cn(e),u=r.split(" "),o=t("keyframes",u[0]);return o?{["@keyframes "+(u[0]=a(n(u[0])))]:o,animation:u.join(" ")}:{animation:r}}),"(transform)-(none)",ee("transform",Ll),ee("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":tp(e=="gpu")})),te("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...Ll()})),te("-?(rotate)-","rotate",Dl),te("-?(translate-[xy])-","translate",Dl),te("-?(skew-[xy])-","skew",Dl),ee("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",pi),"(appearance)-",te("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",te("(cursor)-"),"(cursor)-",ee("snap-(none)","scroll-snap-type"),ee("snap-(x|y|both)",({1:e})=>({...ga({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),ee("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),ee("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),ee("snap-(normal|always)","scroll-snap-stop"),ee("scroll-(auto|smooth)","scroll-behavior"),te("scroll-p([xytrbl])?(?:$|-)","padding",hr("scroll-padding")),te("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",hr("scroll-margin")),ee("touch-(auto|none|manipulation)","touch-action"),ee("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...ga({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),ee("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),ee("outline",{outlineStyle:"solid"}),ee("outline-(dashed|dotted|double)","outlineStyle"),te("-?(outline-offset)-"),it("outline-",{opacityVariable:!1,opacitySection:"opacity"}),te("outline-","outlineWidth"),"(pointer-events)-",te("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],ee("select-(none|text|all|auto)","userSelect"),it("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),it("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),te("stroke-","strokeWidth"),ee("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),ee("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function pi(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function J3(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function Da(e,t="-"){let n=[];for(let a of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[a]);return n.join(t)}function Cn(e){return e&&""+(e._||e)}function Q3({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function hr(e,t=""){return({1:n,_:a})=>{let r={x:"lr",y:"tb"}[n]||n+n;return r?{...mu(e+"-"+Da(r[0])+t,a),...mu(e+"-"+Da(r[1])+t,a)}:mu(e+t,a)}}function Z3(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let a of t)n[`--tw-${e}${a}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...ga(n),[`${e}filter`]:t.map(a=>`var(--tw-${e}${a})`).join(" ")},[`(${e}filter)-(none)`,ee(`${e}filter`,n),...t.map(a=>te(`${a[0]=="h"?"-?":""}(${e}${a})(?:$|-)`,a,({1:r,_:u})=>({[`--tw-${r}`]:Vt(u).map(o=>`${a}(${o})`).join(" "),...n})))]}function Dl({1:e,_:t}){return{["--tw-"+e]:t,...Ll()}}function Ll(){return{...ga({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":tp()}),transform:"var(--tw-transform)"}}function tp(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function X3({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function ep({1:e}){return`repeat(${e},minmax(0,1fr))`}function ga(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}m();m();var fi=globalThis||(typeof window<"u"?window:self),lb=Object.create,Fl=Object.defineProperty,cb=Object.getOwnPropertyDescriptor,db=Object.getOwnPropertyNames,mb=Object.getPrototypeOf,gb=Object.prototype.hasOwnProperty,pb=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),fb=(e,t)=>{for(var n in t)Fl(e,n,{get:t[n],enumerable:!0})},Ml=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of db(t))!gb.call(e,r)&&r!==n&&Fl(e,r,{get:()=>t[r],enumerable:!(a=cb(t,r))||a.enumerable});return e},hb=(e,t,n)=>(Ml(e,t,"default"),n&&Ml(n,t,"default")),ap=(e,t,n)=>(n=e!=null?lb(mb(e)):{},Ml(t||!e||!e.__esModule?Fl(n,"default",{value:e,enumerable:!0}):n,e)),rp=pb((e,t)=>{(function(n,a){typeof define=="function"&&define.amd?define([],a):typeof e<"u"?a():(a(),n.FileSaver={})})(e,function(){"use strict";function n(c,l){return typeof l>"u"?l={autoBom:!1}:typeof l!="object"&&(l={autoBom:!l}),l.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function a(c,l,g){var p=new XMLHttpRequest;p.open("GET",c),p.responseType="blob",p.onload=function(){s(p.response,l,g)},p.onerror=function(){},p.send()}function r(c){var l=new XMLHttpRequest;l.open("HEAD",c,!1);try{l.send()}catch{}return 200<=l.status&&299>=l.status}function u(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var l=document.createEvent("MouseEvents");l.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(l)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof fi=="object"&&fi.global===fi?fi:void 0,i=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(c,l,g){var p=o.URL||o.webkitURL,f=document.createElement("a");l=l||c.name||"download",f.download=l,f.rel="noopener",typeof c=="string"?(f.href=c,f.origin===location.origin?u(f):r(f.href)?a(c,l,g):u(f,f.target="_blank")):(f.href=p.createObjectURL(c),setTimeout(function(){p.revokeObjectURL(f.href)},4e4),setTimeout(function(){u(f)},0))}:"msSaveOrOpenBlob"in navigator?function(c,l,g){if(l=l||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(n(c,g),l);else if(r(c))a(c,l,g);else{var p=document.createElement("a");p.href=c,p.target="_blank",setTimeout(function(){u(p)})}}:function(c,l,g,p){if(p=p||open("","_blank"),p&&(p.document.title=p.document.body.innerText="downloading..."),typeof c=="string")return a(c,l,g);var f=c.type==="application/octet-stream",d=/constructor/i.test(o.HTMLElement)||o.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||f&&d||i)&&typeof FileReader<"u"){var C=new FileReader;C.onloadend=function(){var S=C.result;S=b?S:S.replace(/^data:[^;]*;/,"data:attachment/file;"),p?p.location.href=S:location=S,p=null},C.readAsDataURL(c)}else{var h=o.URL||o.webkitURL,A=h.createObjectURL(c);p?p.location=A:location.href=A,p=null,setTimeout(function(){h.revokeObjectURL(A)},4e4)}});o.saveAs=s.saveAs=s,typeof t<"u"&&(t.exports=s)})}),up={};fb(up,{default:()=>hi});var bb=ap(rp());hb(up,ap(rp()));var{default:np,...yb}=bb,hi=np!==void 0?np:yb;m();m();m();m();m();m();var S_=Ve().REDIRECT_URL;function kb(){let[e,t]=De(null);return Ge(()=>{Yn().then(a=>{t(a)})},[]),[e,a=>{t(a),kn(a)}]}async function Sb(e,t,n){try{if(t===null)return"noupdate";let a=await Mb(e),r=await Yn();r.accountLastSyncedAt=Date.now(),j.debug("settings",t),j.debug("local settings.updatedAt",t.updatedAt),j.debug("remote settings.updatedAt",a.updatedAt),j.debug("last synced at",r.accountLastSyncedAt);let u=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(u=!0),!u&&t.updatedAt>a.updatedAt&&(u=!0),j.debug("isUpload",u),u)return await Fb(e,t),await kn(r),"upload";let o=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(o=!0),!o&&t.updatedAt0&&jt.remove(Nt),a}}function sp(e,t){let n=Lb(),[a,r]=kb();Ge(()=>{!n||!n.token||a&&a.proAutoSync===!1||Db(n)&&Sb(n.token,e,t)},[e,n])}function Db(e){return tn(e)?!0:new Date(e.createTime){jt.get(Nt,null).then(n=>{t(n)})},[t]),e}function Mb(e){return(location.href?.indexOf("popup.html")>0?xa:oe)({responseType:"json",url:ds+"/v1/user/settings",method:"get",headers:{token:e}}).then(n=>n.data)}function Fb(e,t){return(location.href?.indexOf("popup.html")>0?xa:oe)({responseType:"json",url:ds+"/v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(a=>a.data)}function Pl(e){let{onClose:t}=e,[n,a]=De("Original"),[r,u,o,i]=li(()=>{setTimeout(()=>{S("updateGlobalContext",!1)()},250)});sp(r,u);let[s,c]=De(null),[l,g]=De(globalThis.location.href),[p,f]=De("auto"),[d,b]=De(null),C=N=>{a(N.detail)},h=N=>{f(N);let M=T3(l,N,s.sourceLanguageUrlPattern);u(x=>({...x,sourceLanguageUrlPattern:M})),an(N)},A=()=>{g(globalThis.location.href)};Ge(()=>(document.addEventListener(Ru,C,!1),Lt().then(N=>{c(N);let M=pt();f(M);let x=qe();a(x),ci(N.interval)}),document.addEventListener("urlChange",A),()=>{document.removeEventListener("pageTranslatedStatus",C),document.removeEventListener("urlChange",A)}),[]),Ge(()=>{Lt().then(N=>{c(N)})},[r]),Ge(()=>{l&&s&&ln({url:l,config:s}).then(N=>{b(N)})},[l,s]);let S=(N,M,x={})=>()=>{mr({method:N,data:x||{}}),M&&t()},U=()=>{t()},R=()=>{u(N=>({...N,enabled:!N.enabled})),setTimeout(()=>{U()},50)},y=()=>{Rs(),setTimeout(()=>{U()},50)},T=()=>{Rs(),setTimeout(()=>{U()},50)},k=(N="")=>{Ga(!0,N),setTimeout(()=>{t()},50)},v=()=>{ho(w4),setTimeout(()=>{globalThis.close()},50)},E=()=>{fo(),setTimeout(()=>{t()},50)},B=()=>{bo(),setTimeout(()=>{t()},50)},P=()=>{qd(),setTimeout(()=>{t()},50)},w=()=>{yo(),setTimeout(()=>{t()},50)},_=()=>{Wd(),setTimeout(()=>{t()},50)},O=N=>{u(M=>({...M,generalRule:{...M.generalRule,mouseHoverHoldKey:N}}))};return!s||!d?null:V(cl,{openEbookViewerPage:B,openEbookBuilderPage:w,onSwitchTranslationMode:N=>{S("switchTranslationMode",!0,{mode:N})()},onTranslateLocalHtmlFile:P,onTranslateLocalSubtitleFile:_,request:oe,onClose:U,onToggleEnabled:R,onTranslateTheWholePage:S("translateTheWholePage",!0),openOptionsPage:k,openPricingPage:v,onToggleTranslate:S("toggleTranslatePage",!0),onTranslateTheMainPage:S("translateTheMainPage",!0),ontranslateToThePageEndImmediately:S("translateToThePageEndImmediately",!0),onTranslatePage:S("translatePage",!0),onRestorePage:S("restorePage",!1),onTranslatePdf:y,openAboutPage:E,onTranslateLocalPdfFile:T,onSetPageLanguage:h,onUserConfigChange:u,config:s,pageStatus:n,ctx:d,currentUrl:l,currentLang:p,onSetLocalConfig:po,onSetBuildinConfig:Rd,onMouseTriggerChanged:O})}function Pb(e,t){for(let n of t){if(pe()&&!Wu()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}var _l={position:"right",right:0,top:335},Ft={..._l},xi=!1,La=null,Sn=null,Ei=null,Bl=null,br=null,Rl=null,lp=6,bi,yi,dp=null,mp=null;async function Il(){let e=Ve();Rl=await Bd(),Ft=Rl.pagePopupConfig||Ft;let t=document.createElement("div");t.id="immersive-translate-popup",t.setAttribute("style","all: initial"),document.documentElement.appendChild(t);let n=t.attachShadow({mode:"open"});Bl=n;let a=[e.IMMERSIVE_TRANSLATE_PICO_CSS,e.IMMERSIVE_TRANSLATE_COMMON_CSS,e.IMMERSIVE_TRANSLATE_POPUP_CSS,e.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);Pb(n,[a]);let r=document.createElement("div");r.innerHTML=e.IMMERSIVE_TRANSLATE_POPUP_HTML,n.appendChild(r),La=n.querySelector("#immersive-translate-popup-container");let o=n.querySelector("#immersive-translate-popup-btn");Sn=o,Ei=n.querySelector("#mount"),La.setAttribute("style",Ol(Ft)),zl(),o.addEventListener("mousedown",gp),o.addEventListener("touchstart",Rb),globalThis.addEventListener("resize",s=>{La.setAttribute("style",Ol(Ft))})}function _b(){su(null,Ei),Ei.style.display="none",Sn.style.display="block",br=setTimeout(()=>{zl(!0)},2e3)}function cp(e){let t=e.querySelector("#mount"),n=()=>{_b()},a=r=>{r&&r.target&&r.target.id==="immersive-translate-popup-overlay"&&n()};(async()=>{let r=await Lt();su(V(E3,{lang:r.interfaceLanguage,fallbackLang:"zh-CN",translations:Vg,children:V("div",{onClick:a,id:"immersive-translate-popup-overlay",class:"immersive-translate-popup-overlay",children:V("div",{class:"immersive-translate-popup-wrapper",style:Bb(),children:V(Pl,{onClose:n})})})}),t)})().then(()=>{Sn.style.display="none",Ei.style.display="block"})}function Bb(){let e=Nl(),t=e.height,{position:n,top:a,left:r}=Ft,u={position:"fixed"},o=300,i=300,s=100;return yc()&&(n=_l.position,a=_l.top),n==="right"||n==="left"?(u.top=a-s,u.top+o>=t?(u.bottom=30,delete u.top):u.top<=10&&(u.top=10),n==="right"?u.right=0:n==="left"&&(u.left=0)):(n==="top"||n==="bottom")&&(u.left=r-s,u.left+i>=e.width?(u.right=0,delete u.left):u.left<=10&&(u.left=0),n==="top"?u.top=0:n==="bottom"&&(u.bottom=0)),u}function Nl(){return{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}function gp(e){mp=La.getAttribute("style"),bi=e.pageX,yi=e.pageY,br&&clearTimeout(br),xi=!1,Sn.style.opacity="1",Sn.style.transform="none",dp=Sn.getAttribute("style"),globalThis.addEventListener("mousemove",jl),globalThis.addEventListener("mouseup",Ul),globalThis.addEventListener("touchmove",pp),globalThis.addEventListener("touchend",Ti),globalThis.addEventListener("touchcancel",Ti)}function Rb(e){e.preventDefault&&e.preventDefault(),gp(e.changedTouches[0])}function pp(e){jl(e.changedTouches[0])}function Ti(e){e.preventDefault&&e.preventDefault(),Ul(e.changedTouches[0])}function jl(e){e.preventDefault&&e.preventDefault(),xi=!0,La.setAttribute("style",`left:${e.clientX}px;top:${e.clientY}px;transform:scale(1.6);`)}function Ul(e){e.preventDefault&&e.preventDefault(),Ib(),br&&clearTimeout(br),bi=bi||0,yi=yi||0;let t=Math.abs(e.pageX-bi),n=Math.abs(e.pageY-yi);t{zl(!0)},2e3)}function zl(e=!1){Sn.style.opacity="0.4";let t="";Ft.position==="left"?t="translateX(-40%)":Ft.position==="right"?t="translateX(40%)":Ft.position==="top"?t="translateY(-40%)":Ft.position==="bottom"&&(t="translateY(40%)"),Sn.style.transform=t,e&&(Sn.style.transition="transform 0.2s ease-in-out, opacity 0.2s ease-in-out")}function Ib(){globalThis.removeEventListener("mousemove",jl),globalThis.removeEventListener("mouseup",Ul),globalThis.removeEventListener("touchmove",pp),globalThis.removeEventListener("touchend",Ti),globalThis.removeEventListener("touchcancel",Ti)}function Ol(e){let t=Nb(e);return Object.keys(t).map(n=>typeof t[n]=="number"?`${n}:${t[n]}px;`:"").join("")}function Nb(e){let{position:t,...n}=e,a=Nl(),r={};return t==="left"?(r.left=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="right"?(r.right=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="top"?(r.top=0,n.left>a.width?r.left=a.width-100:r.left=n.left):t==="bottom"&&(r.bottom=0,n.left>a.width?r.left=a.width-100:r.left=n.left),r}var Ci=!1;async function fp(e){if(!e){let t=await Lt(),n={url:globalThis.location.href,config:t};e=await ln(n)}e.config.debug&&j.setLevel("debug"),e.isTranslateExcludeUrl?j.debug("detect exclude url, do not inject anything."):(Kn().any||pe())&&e.rule.isShowUserscriptPagePopup&&(Ci||(Ci=!0,Il().catch(t=>{j.error("init popup error",t)})))}async function hp(){Ci||(Ci=!0,Il().catch(e=>{j.error("init popup error",e)}))}var bp=!1,Tp=[()=>{Ye.unbind()}],ql=[...Tp],jb=bt(async()=>{await Ga()},50),Ub=bt(async()=>{await fo()},50),zb=bt(async()=>{await yo()},50),Hb=bt(async()=>{await bo()},50),Cp=bt(e=>{mr({method:e,data:{trigger:"userscript_menu"}})},50),qb=bt(()=>{so();let e=new CustomEvent($n,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},200),Wb=bt(()=>{go();let e=new CustomEvent($n,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},200),$b=bt(()=>{co();let e=new CustomEvent($n,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},200);function Kb(e,t){let n=e.document;if(bp)return;if(bp=!0,pe()||Dd(),n.addEventListener("securitypolicyviolation",ry),document.addEventListener(ge+"DocumentMessageUser",Ap),document.addEventListener(ge+"DocumentMessageUpdateUser",kp),document.addEventListener(ge+"ChangeSuccessService",Sp.bind(null,t)),document.addEventListener(_u,ty.bind(null,t)),n.addEventListener(ge+"EbookLoaded",ay),n.addEventListener(u4,ny),n.addEventListener(o4,uy.bind(null,t)),n.addEventListener("click",r=>{Jb(r,t)}),pe()&&(globalThis.top!=globalThis.self?e.addEventListener("message",Vb,!1):n.addEventListener($n,Gb)),globalThis.top===globalThis.self){let r=ta.rootIframe(Uu);r.handleAsk("getRateLimitDelay",am),r.handleAsk("throttleRequest",Hm)}}function pu(e,t){oy(),Kb(t,e);let n=t.document,a=Yb.bind(null,e);e.rule.fingerCountToToggleTranslagePageWhenTouching>=2&&n.addEventListener("touchstart",a),ql.push(()=>{n.removeEventListener("touchstart",a)}),pe()&&globalThis.top===globalThis.self&&(V0(e.config),iy(e.config)),Rt()&&V0(e.config)}function Gb(e){hp()}function Vb(e){let t=e;t&&t.data&&t.data.payload&&t.data.author===Fu&&Ka(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})}function Yb(e,t){let n=t;n.touches.length==e.rule.fingerCountToToggleTranslagePageWhenTouching?qb():n.touches.length===e.rule.fingerCountToToggleTranslationMaskWhenTouching?$b():n.touches.length===e.rule.fingerCountToToggleTranslagePageOnlyTranslationWhenTouching&&Wb()}function Jb(e,t){let n=e.target;if(!n||!n.getAttribute){Hl(n);return}let a=n.getAttribute("data-immersive-translate-event");a&&We(a,[{name:a}],{...t,sourceLanguage:"none"});let r=n.getAttribute(`data-${J}-action`);if(r)if(r==="retry"){e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),lo(),Hl(n,!0);return}else if(r=="toast-error"){let u=n.getAttribute(`data-${J}-tooltip-text`);Wl(vp.bind(null,t,u||""))}else r=="close-search"&&(e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),Wl(Xb.bind(null,t)));Hl(n)}async function yp(e=!1){let t=document.querySelector(`.${J}-search-recomend`);if(!t||(t.remove(),!e))return;let n=await on();n.generalRule||(n.generalRule={}),n.generalRule.enableSearchEnhancement=!1,await un(n)}async function Qb(){let e=await on(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,a=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(a=e.translationUrlPattern.matches||[]),!n&&a.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await un(e)}async function Zb(){let e=await on(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await un(e)}var xp=0;function Wl(e){let t=Date.now();if(t-xp<2e3)return;xp=t;let n=`${J}-modal`,a=document.querySelector(`.${n}`);if(a?.style.display=="block")return;let r=`${J}-modal-title`,u=`${J}-modal-body`,o=`${J}-modal-footer`;if(a){let i=a.querySelector(`.${r}`),s=a.querySelector(`.${o}`),c=a.querySelector(`.${u}`);e(a,i,c,s)}else{a=document.createElement("div"),a.className=n+" notranslate",a.id=n;let i=document.createElement("div");i.className=J+"-modal-content notranslate",a.appendChild(i);let s=document.createElement("span");s.textContent="\xD7",s.className=J+"-close",i.appendChild(s);let c=document.createElement("div");c.className=r+" notranslate",i.appendChild(c);let l=document.createElement("div");l.className=u+" notranslate",i.appendChild(l);let g=document.createElement("div");g.className=o,i.appendChild(g),document.body.appendChild(a),s.onclick=function(){a.style.display="none"},window.onclick=function(p){p.target==a&&(a.style.display="none")},e(a,c,l,g)}setTimeout(()=>{ey()},100)}function Xb(e,t,n,a,r){let u=wp.bind(null,e);n.innerHTML=`
${ii} ${u("disableConfirm")}
`,a.innerHTML="";let o=document.querySelector(`div[data-${J}-cancel-desc]`),i=document.createElement("p");i.innerHTML=o?_e.sanitize(o.textContent||""):_e.sanitize(u("searchEnhancementNotes")),i.style.cssText="margin-bottom:12px",a.appendChild(i);let s=[{id:"enable-search-enhancement",value:"enable",text:u("enableSearchEnhancement")},{id:"disable-once",value:"once",text:u("disableOnce")},{id:"disable-global",value:"global",text:u("disableGlobal")}];for(let f=0;f${u("option")}`})),a.appendChild(c);let l=a.querySelector(`.${J}-open-enhancement`);l&&(l.onclick=function(){Hd(!0)});let g=document.createElement("button");g.innerText=u("closeModal"),g.className=`${J}-btn ${J}-cancel-btn`;let p=document.createElement("button");p.className=`${J}-btn`,p.innerText=u("saveSettings"),r.innerHTML="",r.appendChild(g),r.appendChild(p),g.onclick=function(){t.style.display="none"},p.onclick=function(){let f=a.getElementsByTagName("input"),d="";for(let b=0;b
1. \u5207\u6362\u5230 ${u} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458`:i+=`

\u5982\u679C\u60A8\u6709\u7591\u95EE\uFF0C\u8BF7\u8054\u7CFB support@immersivetranslate.com`,Wl(vp.bind(null,e,i))}catch(a){j.warn("parse message error",a)}}function ny(e){let t=e;if(j.debug("receive third party message",t),t&&t.detail)try{let n=JSON.parse(t.detail);n&&n.type&&(n.type==="retryFailedParagraphs"?sy({method:"retryFailedParagraphs"}):n.type==="updateCommands"?xo(n.data):n.type==="toggleEnableDefaultAlwaysTranslatedUrls"?Qb():n.type==="toggleEnableInputTranslation"?Zb():Cp(n.type))}catch(n){j.warn("parse message error",n)}}function ay(e){setTimeout(()=>{wi()},10)}function ry(e){Ee.HAS_CSP_ERROR="1"}function uy(e,t){let n=event.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&We(n.name,[{name:n.name}],{...e})}function oy(){ql.forEach(e=>{e()}),ql=Tp}function iy(e){if(pe()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=Yu.commands,r=[...Object.keys(t).filter(u=>u==="toggleTranslatePage").map(u=>{let o=t[u].description,i=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(i=dr(`browser.${o.slice(6,-2)}`,e.interfaceLanguage)),{id:u,title:i}}),{id:rs,title:dr("browser.openEbookViewer",e.interfaceLanguage),key:"e"},{id:us,title:dr("browser.openEbookBuilder",e.interfaceLanguage),key:"m"},{id:ns,title:dr("browser.openOptionsPage",e.interfaceLanguage),key:"o"},{id:as,title:dr("browser.openAboutPage",e.interfaceLanguage),key:"a"}];for(let u of r)GM.registerMenuCommand(u.title,()=>{u.id===ns?jb():u.id===as?Ub():u.id===us?zb():u.id===rs?Hb():Cp(u.id)},u.key)}}function sy(e){Ka(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{j.error("send content message request failed",e,n)});let t=new CustomEvent($n,{detail:e});globalThis.document.dispatchEvent(t)}m();var Ma={};async function $l(){let t=[...document.querySelectorAll(".source-text")].map(a=>a.textContent).join(""),n=await Qe({text:t,minLength:200,pageLangs:[ba(),"en"]});return an(n),n}async function Dp(e){Dt("Translating");let t=pt(),n=ro(),a=[...document.querySelectorAll(".source-text")];if(No(e,t))return;let r=a.filter(u=>u.innerText?.trim()).map((u,o)=>{let i=u.parentElement?.parentElement?.querySelector(".target-text");return at(u,"id",o+""),i&&(ur(i,o)?.remove(),i.appendChild(au(e,o))),{text:u.innerText||"",id:o,from:t,to:e.targetLanguage,url:"https://google.com",fromByClient:n}});document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await ua({sentences:r},e,(u,o,i)=>{let s=i.id,c=ur(document.body,s);if(!c)return;let l=c.parentElement;l&&(c.remove(),u?(l.innerHTML=_e.sanitize(`${u.message}`),Ma[s]={ok:!1,sentence:i}):o&&(l.innerHTML=_e.sanitize(o.text),Ma[s]={ok:!0,sentence:i}),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!u}})})))})}catch(u){throw u}finally{Dt("Translated")}}async function Lp(e){Dt("Translating"),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(Ma),n=[],a=[];for(let r of t){let u=Ma[r];if(!u.ok){let i=document.querySelector(`#error-id-${r}`);if(i){let s=i.parentElement;i.remove(),s&&(delete Ma[r],s.appendChild(au(e,r)),a.push(u.sentence))}}}try{await ua({sentences:a},e,(r,u,o)=>{let i=o.id,s=ur(document.body,i);if(!s)return;let c=s.parentElement;c&&(s.remove(),r?(c.innerHTML=_e.sanitize(`${r.message}`),Ma[i]={ok:!1,sentence:o}):u&&(c.innerHTML=_e.sanitize(u.text),Ma[i]={ok:!0,sentence:o}),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!r}})})))})}catch(r){throw r}finally{Dt("Translated")}}function Kl(){Dt("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}m();var Gl={};async function Mp(){let e=[...document.querySelectorAll("iframe")],t="";for(let a of e){let r=a.contentDocument;if(!r)continue;let u=r.body;if(u&&(t=t+u.innerText||"",t.length>1e3))break}let n=await Qe({text:t,pageLangs:["en"]});return an(n),n}async function Fp(e){Dt("Translating"),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(Gl),n=[];for(let a of t){let r=Gl[a];if(r.error){let o=r.commonAncestorContainer.querySelector(`[${Ou}='${a}']`);o&&o.remove(),n.push(r)}}try{await qo(n,e,e.config.translationMode)}catch{}finally{Dt("Translated")}}function Pp(){let e=[...document.querySelectorAll("iframe")];for(let t of e){let n=t.contentDocument;if(!n)continue;let a=n.querySelectorAll("."+Kt);for(let r of a)r.remove()}Dt("Original")}async function _p(e){Dt("Translating");let t=hn(),n=[...document.querySelectorAll("iframe")],a=[],r=[];for(let i of n){let s=i.contentDocument;if(!s)continue;ir(s,e);let c=s.body;if(!c)continue;let l=cn(e);l.isModifyImage=!1,la({id:t,container:c,filterRule:l,onParagraph:g=>{a.push(g)}})}let u=Io(e.config.translationServices[e.translationService]?.placeholderDelimiters),o=1;for(let i of a){let s=Uo(i.flatNodes,{isPreWhitespace:i.isPreWhitespace||!1,delimiters:u,stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(l=>l.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)});if(!s)continue;i.variables=s?.variables||{},i.text=s?.text,i.id=(o++).toString();let c=await q0(i,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:u,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});c&&(r.push(c),Gl[c.id]=c)}a=[],document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await qo(r,e,e.config.translationMode)}catch{}finally{Dt("Translated")}}m();var ly=new AbortController,{signal:cy}=ly,Zl=0,Xl=0,Vl=!1,Yl=0,fu=!1,Fa,Bp=0,Pa=[];function vi(e,t){dy();let n=e,a=n.config,r=a.generalRule.mouseHoverHoldKey==="Off",u=a.generalRule.mouseHoverHoldKey==="Auto",o=bt(l=>{if(Vl==!1&&Math.abs(l.clientX-Zl)+Math.abs(l.clientY-Xl)>3&&(Yl<2?Yl+=1:Vl=!0),Zl=l.clientX,Xl=l.clientY,u||fu&&!Fa){let g=jp(n.rule,t);if(g){if(ec(g))return;Op(n,g)}}},u?700:300),i=l=>{let g=l.target;ec(g)||Op(n)},s=l=>{let g=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=Ye.getPressedKeyCodes();if(p.length>1&&Ye[g]&&(Bp=Date.now(),fu=!1),p.length===1&&Ye[g]){let f=Date.now();fu=!0,Fa&&clearTimeout(Fa),Fa=setTimeout(()=>{let d=Bp-f;d>0&&d<=150?fu=!1:i(l),Fa=void 0},150)}};if(Pa.push(()=>{Fa&&clearTimeout(Fa)}),r)return;Jl("mousemove",o,t),Pa.push(()=>{t.removeEventListener("mousemove",o)});function c(){Vl=!1,Yl=0,o.cancel()}if(u)Jl("blur",c,t),Pa.push(()=>{t.removeEventListener("blur",c)});else{let l=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",g=["ctrl","alt","shift","cmd","command","option","control"];Jl("keyup",Rp,t),Pa.push(()=>{t.removeEventListener("keyup",Rp)}),g.includes(l)?Ye("*","mouseHover",s):Ye(a.generalRule.mouseHoverHoldKey,"mouseHover",i),Ye.setScope("mouseHover"),Pa.push(()=>{Ye.deleteScope("mouseHover")})}}function dy(){Pa.forEach(e=>e()),Pa=[]}function Rp(e){fu=!1}function Jl(e,t,n=window){return n.addEventListener(e,t,{signal:cy})}function Op(e,t,n=window){if(t=t||jp(e.rule,n),!t){j.debug("can not find selection part!");return}if(ec(t)){j.debug("exclude dom");return}qg(e,t);let a=Ko();a?.currentUrl!==window.location.href&&(Nn(),K0(e)),a&&(a.setupMouseHoverListener=vi);let r=cn(e);r.excludeSelectors=[],r.selectors=[];let u=!1;la({id:a.id,container:t,filterRule:r,force:!0,onParagraph:o=>{uu(a,o,!0).then(i=>{if(i&&!u){u=!0;let s=Date.now();je(s4,s),We("mouse_hover_translate",[{name:"mouse_hover_translate"}],{...e,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function jp(e,t){return my(Zl,Xl,e,t)}function my(e,t,n,a){let r=gg(e,t,n,a);if(r==null)return;let u=()=>{let s=a.document.elementFromPoint(e,t);if(!s)return;let c=pg(s,e,t);return c===s?s.nodeName==="BUTTON"?s:void 0:Np(c,n)},o=()=>{try{r.setStartBefore(r.startContainer),r.setEndAfter(r.startContainer)}catch(c){j.debug("get mouse over word fail",c)}let s=r.getBoundingClientRect();if(!(s.left>e||s.rightt||s.bottomn[l]=[l,...n[l]||[]]);let a=t.inputStartingTriggerKeyAlias[t.inputStartingTriggerKey]||[];a.includes(t.inputStartingTriggerKey)||a.unshift(t.inputStartingTriggerKey),n[t.inputTargetLanguage]=[...a,...n[t.inputTargetLanguage]];let r=t.inputTrailingTriggerKeyTimeout;Kn().any&&(r=t.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:t.inputTrailingTriggerKeyRepeatTimes,triggerKey:t.inputTrailingTriggerKey,triggerTimeout:r,codePrefix:t.inputStartingTriggerKey,codeAlias:n,flatAlias:Object.values(n).flat(),codePrefixAlias:t.inputStartingTriggerKeyAlias},o=0,i=Date.now();Ai&&self.removeEventListener("keydown",Ai),Ai=s,self.addEventListener("keydown",Ai);function s(l){if(yr||ki===!1)return;let g=l,p=g.target||g.srcElement,f=p?.tagName;(p?.isContentEditable||f=="INPUT"||f=="SELECT"||f=="TEXTAREA")&&(My(l,u.triggerKey,u.codePrefixAlias)?c(l):o=0)}async function c(l){Date.now()-i=u.triggerTimes&&by()&&(o=0,hy(l,e,u))}Fy(e)}function gy({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let a=[],r=n[e]||[];r.includes(e)||r.unshift(e);for(let u of r){let o=t.map(i=>{let s=u+i;return r.includes(i)||(s+=" "),s});a.push(...o)}return new RegExp(a.join("|"))}function zp(e,t){for(let[n,a]of Object.entries(t))if(a.includes(e))return n;return""}var xr;function py(e){let t=e.parentElement;if(!t)return;xr=document.createElement("div"),xr.className=J+"-input",xr.innerHTML=`
`,t.appendChild(xr);let n=t,a=!1;do{let r=getComputedStyle(n).position;if(["fixed","absolute","relative"].includes(r)){a=!0;break}n=n.parentElement}while(n);if(n=t,!a)do{if(getComputedStyle(n).position==="static"){n.style.position="relative";break}n=n?.parentElement||null}while(n)}function fy(){xr&&xr.remove()}async function hy(e,t,n){if(!yr)try{let p=function(){i=t.config.inputTargetLanguage;let d=o.split(" ")[0];d&&d[0]&&(d=d[0].toLowerCase()+d.slice(1)),d.trim()&&n.flatAlias.includes(d)?(i=zp(d,n.codeAlias),u=o.slice(d.length+1)):u=o},f=function(){i="";let d=gy(n),b=o.split(d);if(b.length<2)return;if(u=b[b.length-1],r=b[0],b.length>2){let h=o.lastIndexOf(u),A=o.slice(0,h).lastIndexOf(b[b.length-2]);r=o.slice(0,A+b[b.length-2].length)}if(r.endsWith(n.codePrefix))return;let C=o.slice(r.length+1,o.indexOf(u)).trim();if(i=zp(C,n.codeAlias),!i){j.warn("not found alias",C);return}},a=document.activeElement;yr=!0;let r="",u="",o=Er(a)||"",i=t.config.inputTargetLanguage;n.codePrefix==="none"?p():(f(),!i&&t.config.enableInputTranslationWithoutTriggerKey&&p());let s=xy(u,n),c=await Qe({text:s,pageLangs:["en"]});j.debug("translateContent",s,c);let l={text:s||"",id:0,from:c,to:i,url:"https://google.com",fromByClient:c};if(!l.text)return;if(t.config.isShowInputTranslationConsent&&!Up){Up=!0;let d=await Py(t);if(e.target&&e.target.focus(),d==="open_settings"){Ga(!0,"#input");return}else if(d==="open_learn_more"){ho("https://immersivetranslate.com/docs/input/");return}else if(d==="disable_once"||d==="disable_forever"){if(ki=!1,d==="disable_forever"){let b=await on();b.enableInputTranslation=!1,b.isShowInputTranslationConsent=!1,await un(b)}else if(d==="disable_once"){let b=await on();b.isShowInputTranslationConsent=!1,await un(b)}return}else if(d==="close_disable_once"||d==="close_disable_forever"){if(ki=!1,d==="close_disable_forever"){let b=await on();b.enableInputTranslation=!1,b.isShowInputTranslationConsent=!1,await un(b)}return}else if(d==="enable"){let b=await on();b.enableInputTranslation=!0,b.isShowInputTranslationConsent=!1,await un(b)}else if(d==="close_enable"){let b=await on();b.enableInputTranslation=!0,await un(b)}}py(a),je(os,Date.now());let g=await ka(l,{...t,translationService:t.inputTranslationService});Ly(t),Dy(a,r+g.text),yr=!1}catch(a){throw yr=!1,a}finally{yr=!1,fy()}}function by(){let e=document.activeElement;if(!e)return!1;if(Si(e)){let t=e.selectionStart||0,n=e.value.length,r=e.value.split(` +`).reverse()[0].trim(),u=n<=t;return j.debug("cursorPosition",t,"textLength",n),j.debug("input isTail",u,"tailHasText",r),u&&!!r}else{let t=window.getSelection();if(!t)return j.debug("No active selection found."),!1;if(t.rangeCount>0){let n=t.getRangeAt(0),a=n.startContainer;if(a.nodeType===Node.TEXT_NODE){let r=yy(a,e);j.debug("Current text node:",a.textContent),j.debug("Cursor position within text node:",n.startOffset);let u=a.textContent?.length===n.startOffset&&r,o=a.textContent?.trim();return j.debug("editdiv isTail",u,"tailHasText",o),u&&!!o}else j.debug("Cursor is not within a text node.")}}return!1}function yy(e,t){let n;function a(r){if(r.nodeType===Node.TEXT_NODE)n=r;else for(let u of r.childNodes)a(u)}return a(t),n==e}function xy(e,t){let{triggerTimes:n,triggerKey:a}=t,r=0,u=" ";a.length==1?(r=n,u=a):a.toLowerCase()=="space"&&(r=n);let o=e.length;for(let i=e.length-1;i>=e.length-r;i--){if([10,8629].includes(e[i].charCodeAt(0))){o--;continue}if(![...t.codePrefixAlias[a]||[],u].includes(e[i]))break;o--}return e.length-o<3&&[".","\u3002"].includes(e[o-1])&&o--,e.slice(0,o)}function Ey(e,t){let n=t.innerHTML,a=Er(t);return{html:n.replace(a,e),text:e}}function Hp(e,t,n=!1){let a=Er(t);return n?a.trim().endsWith(e.text.trim()):a.trim()==e.text.trim()}function Er(e){return e.value||e.innerText||e.textContent}async function _a(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function Ty(e,t,n){await _a(10);let a=new DataTransfer;e.forEach(r=>{r==="plain"&&a.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:a,bubbles:!0,cancelable:!0})),a.clearData(),await _a(10)}async function Cy(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await _a(10))}async function wy(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await _a(20),(t.value||t.value==="")&&(t.value=e.text)}async function vy(e,t){Si(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await _a(20))}var Ay=[Ty.bind(null,["plain"])];function ky(e){let t;Si(e)?t=new InputEvent("beforeinput",{bubbles:!0,cancelable:!0,inputType:"deleteContent"}):t=new KeyboardEvent("keydown",{bubbles:!0,cancelable:!0,keyCode:8,which:8,location:0,key:"Backspace"}),e.dispatchEvent(t)}function Si(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function Sy(e){if(Si(e))return;e.focus();let t=window.getSelection();if(!t)return;let n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}async function Dy(e,t){await Sy(e),await _a(50);let n=Ey(t,e);ky(e),j.debug("clearContent",Er(e)),await _a(50);for(let a of[...Ay,wy,vy,Cy])if(await a(n,e),j.debug("setContent",a.name,Hp(n,e),Er(e),n),Hp(n,e))break}function Ly(e){We("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage}}],e)}function My(e,t,n){let a="";e&&e.code&&(a=e.code.toLowerCase());let r="";e&&e.key&&(r=e.key.toLowerCase());let u=e.keyCode,o=n[t]||[];return u===229&&t!=="space"?!1:!!(o.includes(a)||o.includes(r)||a===t||r===t)}async function Fy(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await St(t,"")||Number(await St(os,0))>0)return;let r=e.rule.inputTutorialsSelectors,u=e.rule.inputTutorialsText;if((r?.length||0)>0&&u)for(let o=0;o{By()},100),new Promise(c=>{let l=c;if(u){let T=u.querySelector(`.${n}`),k=u.querySelector(`.${r}`),v=u.querySelector(`.${a}`)}else{u=document.createElement("div"),u.className=t+" notranslate",u.id=t;let T=document.createElement("div");T.className=J+"-modal-content notranslate",u.appendChild(T);let k=document.createElement("span");k.textContent="\xD7",k.className=J+"-close",T.appendChild(k),o=document.createElement("div"),o.className=n+" notranslate",T.appendChild(o),s=document.createElement("div"),s.className=a+" notranslate",T.appendChild(s),i=document.createElement("div"),i.className=r,T.appendChild(i),document.body.appendChild(u),k.onclick=function(){S(),c("close")},window.onclick=function(v){v.target==u&&(u.style.display="none",c("close"))}}document.addEventListener("keydown",y);let g=_y.bind(null,e);o.innerHTML=`
${ii} ${g("modalEnableInputTranslationTitle")}
`,s.innerHTML="";let p=document.createElement("p");p.innerHTML=g("modalEnableInputTranslationDesc",{1:"https://immersivetranslate.com/docs/input/"}),p.style.cssText="margin-bottom:12px",s.appendChild(p);let f=document.createElement("div");f.style.cssText="margin-bottom: 12px;",f.innerHTML=_e.sanitize(g("disableInputTranslationTips",{option:`${g("option")}`,learnMore:`${g("learnMore")}`})),s.appendChild(f);let d=[{id:"enable-search-enhancement",value:"enable",text:g("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:g("disableOnce")},{id:"disable-global",value:"global",text:g("disableGlobal")}];for(let T=0;T{ua({sentences:r},{...e,translationService:"google"},(s,c,l)=>{if(s)return o([]);let g=c?.id||0,p=n[g];p&&p.className==J+"-search-title-wrapper"&&(p.innerHTML+=_e.sanitize(`
${c?.text}
`,{ADD_ATTR:["target"]}))})})}function Di(e,t,n){t&&We(t.key,[{name:t.key}],{...e,sourceLanguage:t.sourceLanguage||n})}function nc(e,t,n,a){let r=n.querySelectorAll('[translate="true"]');return Ry(e,t,[...r],a),n}async function ac(e,t){let a=(await oe({url:Oy(e),method:"GET",responseType:"raw",headers:{"cache-control":"no-cache","content-type":"application/xml","Sec-Fetch-Site":"none",accept:"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}})).body,u=new DOMParser().parseFromString(a,"text/xml"),o=[],i=u.querySelectorAll("item");for(let s=0;s${e.cancelDescription}
`:""}

\u82F1\u6587\u641C\u7D22 - ${n} \u7684\u76F8\u5173\u65B0\u95FB:
+ ${n} \u7684\u76F8\u5173\u65B0\u95FB:

${o}
`.replaceAll(` -`,""),{ADD_ATTR:["target"]});let c=r.querySelector(`.${J}-search-more`);return c&&(c.onclick=()=>{let l=r.querySelector(`.${J}-expand-items`);l.style.display=="none"?(l.style.display="block",c.innerText="\u66F4\u591A\u76F8\u5173\u65B0\u95FB"):window.open(Hp(n))}),r}function qp(e,t){let n=e.style;return t.map((a,r)=>{let u=a.title||"",o=a.source||"",i=u.split("-");return i.length>1&&(o=i[i.length-1].trim(),i=i.slice(0,i.length-1)),u=i.join("-"),u=u.trim(),`
${o}
+`,""),{ADD_ATTR:["target"]});let c=r.querySelector(`.${J}-search-more`);return c&&(c.onclick=()=>{let l=r.querySelector(`.${J}-expand-items`);l.style.display=="none"?(l.style.display="block",c.innerText="\u66F4\u591A\u76F8\u5173\u65B0\u95FB"):window.open(qp(n))}),r}function Wp(e,t){let n=e.style;return t.map((a,r)=>{let u=a.title||"",o=a.source||"",i=u.split("-");return i.length>1&&(o=i[i.length-1].trim(),i=i.slice(0,i.length-1)),u=i.join("-"),u=u.trim(),`
${o}
-
${xg(a.pubDate||"")}
+
${Eg(a.pubDate||"")}
`}).join(` -`)}function $p(e,t){if(!e.keyword)return;let n=e.keyword.value||"";for(let a=0;anew RegExp(a.urlMatch).test(t))}async function Gp(e){if(Kn().any)return;if(!e.rule.enableSearchEnhancement){j.debug("enable is false");return}let t=Iy(e.rule.searchEnhancementConfig||[],e.url);if(!t){j.debug("not found siteConfig",e.url);return}let n=$p(t,e.url);if(!n){j.debug("not found keyword",e.url);return}t.id=="google"?jy(e,t,n):Ny(e,t,n)}async function Ny(e,t,n){let a=await Qe({text:document.title,pageLangs:[pt(),"en"]});t.selector&&setTimeout(async()=>{let r=document.querySelector(t.selector);if(!r){j.debug("selector node not found",t.selector);return}let u=await ac(n,t.showCount);if(u&&u.length<=0){j.debug("list not found");return}let o=await rc(t,u,n,t.showCount);if(!o){j.debug("getInseredNode none");return}o.style.cssText=t.style.container||"";let i=t.selectorAction||"appendChild";i=="insertBefore"?r.parentElement?.insertBefore(o,r):i=="appendChild"?r.appendChild(o):i=="replace"&&r?.replaceWith(o),nc(e,t,o,a),Di(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a)},t.delayTime||0)}async function jy(e,t,n){let a=await Qe({text:n,pageLangs:["en"]});if(Di(e,{key:"detect_search_action"},a),!["zh-CN","zh-TW"].includes(a))return;j.debug("use dual search");let r=!1;if(new URL(e.url).searchParams.get("tbm")==="nws")r=!0;else if(!Kp(document.body))return;let o=document.querySelector("#rhs");if(!o){let i=document.querySelector("#rcnt");if(!i)return;let s=i.children;if(s&&s.length>1)o=s[1];else{let c=s[0];o=document.createElement("div"),o.id="rhs",o.style.maxWidth="372px",o.style.marginLeft="50px",i.insertBefore(o,c.nextSibling)}}if(r||Kp(document.body)){j.debug("find story");let i=await Wp(e,n,a);j.debug("enKeyword",i);let s=await ac(i,t.showCount);if(j.debug("news list",s),s&&s.length<=0)return;let c=await rc(t,s,i,t.showCount);if(!c)return;Di(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a),nc(e,t,c,a),o.insertBefore(c,o?.firstChild)}}function Kp(e){let t=e.querySelectorAll("[aria-level='2'][role=heading]");if(!t)return!1;for(let n of t){let a=(n?.textContent||"").trim();if(a.indexOf("\u7126\u70B9\u65B0\u95FB")>=0||a.indexOf("\u7126\u9EDE\u65B0\u805E")>=0||a.indexOf("Top stories")>=0)return!0}return!1}m();function Vp(e){e.state.translationMode="translation",cr(e)}var we=null,Li={},Tr,Yp=!1;async function lo(e){if(qe()==="Original"){let t={translationMode:void 0};Tr&&(t.translationTheme=Tr),we&&(t={...we.state,...t}),await wt(Ze(),t),await rn(we,e)}else(qe()==="Translated"||qe()==="Error")&&Ea()}async function co(){if(we=await wt(Ze(),{}),we.rule.isEbookBuilder)return Mp(we);if(we.rule.isSubtitleBuilder)return Dp(we);Wg()}async function mo(e){if(qe()==="Original")we=await wt(Ze(),{}),Tr||(Tr=we.state.translationTheme),we=await wt(Ze(),{translationTheme:"mask"}),await rn(we,e);else if(qe()==="Translated"){let t=hg().filter(r=>r.contentDocument?.body).map(r=>r.contentDocument.body),n=[we.mainFrame,...t],a=we?.state.translationTheme;for(let r of n){let u=nr(r,Ua,!0);a==="mask"?u!=="none"?at(r,Ua,"none",!0):at(r,Ua,"mask",!0):u!=="mask"?at(r,Ua,"mask",!0):at(r,Ua,"none",!0)}}}async function _s(){let e=await wt(Ze(),{});return e.rule.isSubtitleBuilder?$l():qg(e)}function Uy(e){qe()==="Original"?Vp(e):Nn()}function zy(e){qe()==="Original"?Sp(e):Kl()}function Hy(e){qe()==="Original"?cr(e):Nn()}async function Ea(){Os("");let e=await wt(Ze(),{});if(e.rule.isSubtitleBuilder){Kl();return}else e.rule.isEbookBuilder&&Fp();Nn()}async function rn(e,t){qe()!=="Original"&&await Ea(),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"translateStart",payload:{}})})),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"targetLanguage",payload:{targetLanguage:e.targetLanguage}})})),Li[e.translationService]||(Li[e.translationService]=!0,Je()||E0(e).catch(a=>{j.warn("init translation engine error",a)}));let n={};if(t&&t.trigger&&(n.trigger=t.trigger),We("translage_page_daily",[{name:"translage_page_daily",params:n}],e),We("translate_page",[{name:"translate_page",params:n}],{...e,sourceLanguage:pt()}),e.rule.isSubtitleBuilder)return zy(e);if(e.rule.isEbookBuilder)return Pp(e);if(e.rule.isPdf)return Uy(e);Hy(e),Os("yes")}async function Dd(e){qe()==="Original"?await go(e):(qe()==="Translated"||qe()==="Error")&&(we=await wt(Ze(),{}),we.state.translationArea!=="main"?await go(e):Ea())}async function go(e){we=await wt(Ze(),{translationArea:"main"}),await rn(we,e)}async function Bs(e){we=await wt(Ze(),{translationArea:"body"}),await rn(we,e)}async function po(e){if(qe()==="Original"){let t=await wt(Ze(),{translationMode:"translation"});await rn(t,e)}else(qe()==="Translated"||qe()==="Error")&&await Ea()}async function Ld(e){if(we=await wt(Ze(),{translationMode:void 0}),We("switch_translation_mode",[{name:"switch_translation_mode",params:{mode:e}}],{...we,sourceLanguage:"unknown"}),qe()==="Original"){rn(we);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(e)}async function Md(e){if(qe()==="Original")await Bs(e);else if(qe()==="Translated"||qe()==="Error"){let t={};we&&we.state&&(t=we.state),we=await wt(Ze(),t),we.state.translationArea!=="body"?(we.state.translationArea="body",we=await wt(Ze(),we.state),await rn(we,e)):Ea()}}async function Fd(e){we=await wt(Ze(),{translationStartMode:"immediate"}),await rn(we,e)}async function Jp(){let e=await wt(Ze(),{});if(!sn(e.url,e.config.inputStyleBlockUrls)){let n=Ve().IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS;ia(document,n,"immersive-translate-input-injected-css")}e.rule.isPdf||e.rule.isSubtitleBuilder||e.rule.isEbookBuilder||e.rule.isEbook||e.config.enableInputTranslation&&tc(e)}async function wi(){let e=await wt(Ze(),{});if(j.debug("init page ctx",e),e.rule.isSubtitleBuilder){$l();return}if(e.rule.isEbookBuilder){Lp();return}if(Gp(e),Tr||(Tr=e.state.translationTheme),e.rule.urlChangeDelay&&await Cr(e.rule.urlChangeDelay),e.rule.waitForSelectors&&e.rule.waitForSelectors.length>0&&await qy(e.rule.waitForSelectors,e.rule.waitForSelectorsTimeout),e.rule.isInjectOptionsUrl){let a=jd(),r=document.createElement("meta");r.name="immersive-translate-options-url",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(u){j.warn("inject options url failed",u)}}if(e.rule.isInjectVersion){let a=nn(),r=document.createElement("meta");r.name="immersive-translate-version",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(u){j.warn("inject version failed",u)}}if(e.rule.globalMeta&&Object.keys(e.rule.globalMeta).forEach(r=>{let u=document.createElement("meta");u.name=r,u.content=e.rule.globalMeta[r],document.head.appendChild(u)}),e.rule.initialGlobalAttributes&&Cg(document.body,e.rule.initialGlobalAttributes),e.rule.isPdf){rn(e);return}if(e.rule.isOnBoardingPage){document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"currentConfig",payload:{enableDefaultAlwaysTranslatedUrls:!!e.config.enableDefaultAlwaysTranslatedUrls}})}));let a=document.querySelector("#immersiveTranslateEnableDefaultAlwaysTranslatedUrlsValue");a&&(a.value="helloworld",a.value=String(!!e.config.enableDefaultAlwaysTranslatedUrls),a.dispatchEvent(new Event("change")))}Yp||(Yp=!0,globalThis.top!==globalThis.self&&e.rule.useIframePostMessage&&await Zd());let t=e.sourceLanguage;if(t==="auto"?t=await _s():an(t),e.rule.isInjectMeta)try{let a=await Eg(t),r=document.createElement("meta");r.name="immersive-translate-meta",r.content=ji(JSON.stringify(a)),document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(a){j.warn("inject meta failed",a)}let n=e.state.isAutoTranslate||e.isTranslateUrl||e.rule.isPdf;if(!n&&!e.isTranslateExcludeUrl&&(j.debug(`detect page language: ${e.url} ${t}`),Xn(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto"||Xd(t,e.config.translationLanguagePattern)&&(n=!0,j.debug(`match language pattern ${t}, auto translate`))),e.rule.isEbookBuilder&&(n=!1),!e.rule.isPdf&&Br()&&vi(e,window),n)we.state.isAutoTranslate=!0,rn(we);else if(j.debug("do not auto translate",e),e.rule.initTranslationServiceAsSoonAsPossible&&e.translationService==="deepl"){if(Xn(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto")return;e.config&&e.config.translationServices&&e.config.translationServices.deepl&&e.config.translationServices.deepl.authKey&&typeof e.config.translationServices.deepl.authKey=="string"&&e.config.translationServices.deepl.authKey.startsWith("immersive_")&&(Li[e.translationService]||(Li[e.translationService]=!0,Je()||E0(e).catch(a=>{j.warn("init translation engine error",a)})))}}async function wt(e,t){let n=Object.keys(t);if(we){let a={url:e,config:we.config,state:{...we.state,...t}};we=await ln(a)}else{let a=await Lt(),r=t;n.length===0&&(r=void 0),we=await ln({url:e,config:a,state:r})}return we}async function Pd(){let e=await Lt(),t;we&&we.state&&(t=we.state);let n={url:Ze(),config:e,state:t},a=await ln(n);we=a;let r=Ko(),u=[];return r?u=r.allInlineWindows||[window]:u=[window],u.forEach(o=>{fu(a,o),Br()&&vi(a,o),tc(a)}),a}function qy(e,t=3e3){return new Promise((n,a)=>{let r=t?setTimeout(()=>{n(new Error("timeout"))},t):void 0,u=setInterval(()=>{e.every(i=>document.querySelector(i)!==null)&&(clearInterval(u),r&&clearTimeout(r),n(null))},50)})}async function vp(e){let t=e.detail;Nt.set(en,t);let n=await Nt.get(cs,!1);Nt.set(cs,!1),document.dispatchEvent(new CustomEvent("immersiveTranslateDocumentMessageUserResult",{detail:n?"close":"success"}))}function Ap(e){j.debug("update user info",e);let t=e.detail;Nt.set(en,t)}async function kp(e){let t=await on();if(t.translationService)return;let n=e.config.translationService,a=["bing","transmart","google"];a.sort((u,o)=>u===n?-1:o===n?1:0);let r=await tg(a,e);if(!r){Ur("no_avaliable_translation_service",[{name:"no_avaliable_translation_service"}]);return}e.translationService!==r&&(t.translationService=r,un(t),e.translationService=r,Ur("change_default_translation_service",[{name:"change_default_translation_service",params:{translation_service:r}}]))}async function Qp(e){if(!e){let n=await Lt();e=await ln({config:n,url:Ze()})}e.config.debug?j.setLevel("debug"):j.setLevel("info"),globalThis.top!=globalThis.self||await pp().catch(n=>{j.error(`init popup page error: ${n}`)}),e.isTranslateExcludeUrl||(e.rule.isEbook||e.rule.isEbookBuilder||await wi(),globalThis.top===globalThis.self&&k3()),await Jp()}m();var bu={capture:!0,once:!0,passive:!0},ef=()=>document.readyState==="interactive"||document.readyState==="complete",Wy=e=>document.readyState===e,yu=(e,t)=>Wy(e)||ef()?(t(e),!0):!1,$y=()=>new Promise(e=>{yu("loading",e)||document.addEventListener("readystatechange",()=>{document.readyState==="loading"&&e("loading")},bu)}),Ky=()=>new Promise(e=>{yu("interactive",e)||document.addEventListener("readystatechange",()=>{document.readyState==="interactive"&&e("interactive")},bu)}),Gy=()=>new Promise(e=>{yu("complete",e)||document.addEventListener("readystatechange",()=>{document.readyState==="complete"&&e("complete")},bu)}),Zp=()=>new Promise(e=>{yu("domready",e)||document.addEventListener("DOMContentLoaded",()=>{e("domready")},bu)}),Xp=()=>new Promise(e=>{yu("load",e)||window.addEventListener("load",()=>{e("load")},bu)}),tf={};Object.defineProperties(tf,{state:{get:function(){return document.readyState}},loading:{get:function(){return $y()}},interactive:{get:function(){return Ky()}},complete:{get:function(){return Gy()}},window:{get:function(){return Xp()}},load:{get:function(){return Xp()}},domready:{get:function(){return Zp()}},dom:{get:function(){return Zp()}},ready:{get:function(){return ef()}}});var nf=tf;m();m();var af={NOT_FUNCTION:"Your executor is not a function. functions and promises are valid.",FAILED_TO_WAIT:"Failed to wait"};function Vy(e){return()=>Promise.resolve().then(()=>e()).catch(t=>{throw t})}function Yy(e){if(typeof e!="function")throw new Error(af.NOT_FUNCTION)}var uc=class{_interval;_timeout;_stopOnFailure;_backoffFactor;_backoffMaxInterval;_Console;originalStacktraceError;_userMessage;_verbose;_isWaiting;_isResolved;_executeFn;start;promise;resolve;reject;_lastError;constructor({interval:t=100,timeout:n=1e3,stopOnFailure:a=!1,verbose:r=!1,backoffFactor:u=1,backoffMaxInterval:o,message:i=""}={}){this._interval=t,this._timeout=n,this._stopOnFailure=a,this._isWaiting=!1,this._isResolved=!1,this._verbose=r,this._userMessage=i,this.originalStacktraceError=new Error,this._Console=console,this._backoffFactor=u,this._backoffMaxInterval=o||n,this.start=+Date.now()}tryEvery(t){return this._interval=t,this}stopAfter(t){return this._timeout=t,this}execute(t){return this._applyPromiseHandlers(),Yy(t),this._executeFn=Vy(t),this.start=Date.now(),this._isWaiting=!0,this._log("starting to execute"),this._runFunction(),this.promise}getPromise(){return this.promise}isResolved(){return this._isResolved}isWaiting(){return this._isWaiting}stopOnFailure(t){return this._stopOnFailure=t,this}_applyPromiseHandlers(){this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}_timeFromStart(){return Date.now()-this.start}_shouldStopTrying(){return this._timeFromStart()>this._timeout}_executeAgain(){this._log("executing again");let t=this._interval,n=t*this._backoffFactor;this._interval=n>this._backoffMaxInterval?this._backoffMaxInterval:n,setTimeout(this._runFunction.bind(this),t)}_failedToWait(){let t=`${af.FAILED_TO_WAIT} after ${this._timeFromStart()}ms`;if(this._userMessage&&(t=`${t}: ${this._userMessage}`),this._lastError){this._lastError.message=`${t} +`)}function Kp(e,t){if(!e.keyword)return;let n=e.keyword.value||"";for(let a=0;anew RegExp(a.urlMatch).test(t))}async function Vp(e){if(Kn().any)return;if(!e.rule.enableSearchEnhancement){j.debug("enable is false");return}let t=Iy(e.rule.searchEnhancementConfig||[],e.url);if(!t){j.debug("not found siteConfig",e.url);return}let n=Kp(t,e.url);if(!n){j.debug("not found keyword",e.url);return}t.id=="google"?jy(e,t,n):Ny(e,t,n)}async function Ny(e,t,n){let a=await Qe({text:document.title,pageLangs:[pt(),"en"]});t.selector&&setTimeout(async()=>{let r=document.querySelector(t.selector);if(!r){j.debug("selector node not found",t.selector);return}let u=await ac(n,t.showCount);if(u&&u.length<=0){j.debug("list not found");return}let o=await rc(t,u,n,t.showCount);if(!o){j.debug("getInseredNode none");return}o.style.cssText=t.style.container||"";let i=t.selectorAction||"appendChild";i=="insertBefore"?r.parentElement?.insertBefore(o,r):i=="appendChild"?r.appendChild(o):i=="replace"&&r?.replaceWith(o),nc(e,t,o,a),Di(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a)},t.delayTime||0)}async function jy(e,t,n){let a=await Qe({text:n,pageLangs:["en"]});if(Di(e,{key:"detect_search_action"},a),!["zh-CN","zh-TW"].includes(a))return;j.debug("use dual search");let r=!1;if(new URL(e.url).searchParams.get("tbm")==="nws")r=!0;else if(!Gp(document.body))return;let o=document.querySelector("#rhs");if(!o){let i=document.querySelector("#rcnt");if(!i)return;let s=i.children;if(s&&s.length>1)o=s[1];else{let c=s[0];o=document.createElement("div"),o.id="rhs",o.style.maxWidth="372px",o.style.marginLeft="50px",i.insertBefore(o,c.nextSibling)}}if(r||Gp(document.body)){j.debug("find story");let i=await $p(e,n,a);j.debug("enKeyword",i);let s=await ac(i,t.showCount);if(j.debug("news list",s),s&&s.length<=0)return;let c=await rc(t,s,i,t.showCount);if(!c)return;Di(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a),nc(e,t,c,a),o.insertBefore(c,o?.firstChild)}}function Gp(e){let t=e.querySelectorAll("[aria-level='2'][role=heading]");if(!t)return!1;for(let n of t){let a=(n?.textContent||"").trim();if(a.indexOf("\u7126\u70B9\u65B0\u95FB")>=0||a.indexOf("\u7126\u9EDE\u65B0\u805E")>=0||a.indexOf("Top stories")>=0)return!0}return!1}m();function Yp(e){e.state.translationMode="translation",cr(e)}var we=null,Li={},Tr,Jp=!1;async function so(e){if(qe()==="Original"){let t={translationMode:void 0};Tr&&(t.translationTheme=Tr),we&&(t={...we.state,...t}),await wt(Ze(),t),await rn(we,e)}else(qe()==="Translated"||qe()==="Error")&&Ta()}async function lo(){if(we=await wt(Ze(),{}),we.rule.isEbookBuilder)return Fp(we);if(we.rule.isSubtitleBuilder)return Lp(we);$g()}async function co(e){if(qe()==="Original")we=await wt(Ze(),{}),Tr||(Tr=we.state.translationTheme),we=await wt(Ze(),{translationTheme:"mask"}),await rn(we,e);else if(qe()==="Translated"){let t=bg().filter(r=>r.contentDocument?.body).map(r=>r.contentDocument.body),n=[we.mainFrame,...t],a=we?.state.translationTheme;for(let r of n){let u=nr(r,za,!0);a==="mask"?u!=="none"?at(r,za,"none",!0):at(r,za,"mask",!0):u!=="mask"?at(r,za,"mask",!0):at(r,za,"none",!0)}}}async function _s(){let e=await wt(Ze(),{});return e.rule.isSubtitleBuilder?$l():Wg(e)}function Uy(e){qe()==="Original"?Yp(e):Nn()}function zy(e){qe()==="Original"?Dp(e):Kl()}function Hy(e){qe()==="Original"?cr(e):Nn()}async function Ta(){Os("");let e=await wt(Ze(),{});if(e.rule.isSubtitleBuilder){Kl();return}else e.rule.isEbookBuilder&&Pp();Nn()}async function rn(e,t){qe()!=="Original"&&await Ta(),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"translateStart",payload:{}})})),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"targetLanguage",payload:{targetLanguage:e.targetLanguage}})})),Li[e.translationService]||(Li[e.translationService]=!0,Je()||E0(e).catch(a=>{j.warn("init translation engine error",a)}));let n={};if(t&&t.trigger&&(n.trigger=t.trigger),We("translage_page_daily",[{name:"translage_page_daily",params:n}],e),We("translate_page",[{name:"translate_page",params:n}],{...e,sourceLanguage:pt()}),e.rule.isSubtitleBuilder)return zy(e);if(e.rule.isEbookBuilder)return _p(e);if(e.rule.isPdf)return Uy(e);Hy(e),Os("yes")}async function Ld(e){qe()==="Original"?await mo(e):(qe()==="Translated"||qe()==="Error")&&(we=await wt(Ze(),{}),we.state.translationArea!=="main"?await mo(e):Ta())}async function mo(e){we=await wt(Ze(),{translationArea:"main"}),await rn(we,e)}async function Bs(e){we=await wt(Ze(),{translationArea:"body"}),await rn(we,e)}async function go(e){if(qe()==="Original"){let t=await wt(Ze(),{translationMode:"translation"});await rn(t,e)}else(qe()==="Translated"||qe()==="Error")&&await Ta()}async function Md(e){if(we=await wt(Ze(),{translationMode:void 0}),We("switch_translation_mode",[{name:"switch_translation_mode",params:{mode:e}}],{...we,sourceLanguage:"unknown"}),qe()==="Original"){rn(we);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(e)}async function Fd(e){if(qe()==="Original")await Bs(e);else if(qe()==="Translated"||qe()==="Error"){let t={};we&&we.state&&(t=we.state),we=await wt(Ze(),t),we.state.translationArea!=="body"?(we.state.translationArea="body",we=await wt(Ze(),we.state),await rn(we,e)):Ta()}}async function Pd(e){we=await wt(Ze(),{translationStartMode:"immediate"}),await rn(we,e)}async function Qp(){let e=await wt(Ze(),{});if(!sn(e.url,e.config.inputStyleBlockUrls)){let n=Ve().IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS;ia(document,n,"immersive-translate-input-injected-css")}e.rule.isPdf||e.rule.isSubtitleBuilder||e.rule.isEbookBuilder||e.rule.isEbook||e.config.enableInputTranslation&&tc(e)}async function wi(){let e=await wt(Ze(),{});if(j.debug("init page ctx",e),e.rule.isSubtitleBuilder){$l();return}if(e.rule.isEbookBuilder){Mp();return}if(Vp(e),Tr||(Tr=e.state.translationTheme),e.rule.urlChangeDelay&&await Cr(e.rule.urlChangeDelay),e.rule.waitForSelectors&&e.rule.waitForSelectors.length>0&&await qy(e.rule.waitForSelectors,e.rule.waitForSelectorsTimeout),e.rule.isInjectOptionsUrl){let a=Ud(),r=document.createElement("meta");r.name="immersive-translate-options-url",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(u){j.warn("inject options url failed",u)}}if(e.rule.isInjectVersion){let a=nn(),r=document.createElement("meta");r.name="immersive-translate-version",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(u){j.warn("inject version failed",u)}}if(e.rule.globalMeta&&Object.keys(e.rule.globalMeta).forEach(r=>{let u=document.createElement("meta");u.name=r,u.content=e.rule.globalMeta[r],document.head.appendChild(u)}),e.rule.initialGlobalAttributes&&wg(document.body,e.rule.initialGlobalAttributes),e.rule.isPdf){rn(e);return}if(e.rule.isOnBoardingPage){document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"currentConfig",payload:{enableDefaultAlwaysTranslatedUrls:!!e.config.enableDefaultAlwaysTranslatedUrls}})}));let a=document.querySelector("#immersiveTranslateEnableDefaultAlwaysTranslatedUrlsValue");a&&(a.value="helloworld",a.value=String(!!e.config.enableDefaultAlwaysTranslatedUrls),a.dispatchEvent(new Event("change")))}Jp||(Jp=!0,globalThis.top!==globalThis.self&&e.rule.useIframePostMessage&&await Xd());let t=e.sourceLanguage;if(t==="auto"?t=await _s():an(t),e.rule.isInjectMeta)try{let a=await Tg(t),r=document.createElement("meta");r.name="immersive-translate-meta",r.content=ji(JSON.stringify(a)),document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(a){j.warn("inject meta failed",a)}let n=e.state.isAutoTranslate||e.isTranslateUrl||e.rule.isPdf;if(!n&&!e.isTranslateExcludeUrl&&(j.debug(`detect page language: ${e.url} ${t}`),Xn(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto"||em(t,e.config.translationLanguagePattern)&&(n=!0,j.debug(`match language pattern ${t}, auto translate`))),e.rule.isEbookBuilder&&(n=!1),!e.rule.isPdf&&Br()&&vi(e,window),n)we.state.isAutoTranslate=!0,rn(we);else if(j.debug("do not auto translate",e),e.rule.initTranslationServiceAsSoonAsPossible&&e.translationService==="deepl"){if(Xn(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto")return;e.config&&e.config.translationServices&&e.config.translationServices.deepl&&e.config.translationServices.deepl.authKey&&typeof e.config.translationServices.deepl.authKey=="string"&&e.config.translationServices.deepl.authKey.startsWith("immersive_")&&(Li[e.translationService]||(Li[e.translationService]=!0,Je()||E0(e).catch(a=>{j.warn("init translation engine error",a)})))}}async function wt(e,t){let n=Object.keys(t);if(we){let a={url:e,config:we.config,state:{...we.state,...t}};we=await ln(a)}else{let a=await Lt(),r=t;n.length===0&&(r=void 0),we=await ln({url:e,config:a,state:r})}return we}async function _d(){let e=await Lt(),t;we&&we.state&&(t=we.state);let n={url:Ze(),config:e,state:t},a=await ln(n);we=a;let r=Ko(),u=[];return r?u=r.allInlineWindows||[window]:u=[window],u.forEach(o=>{pu(a,o),Br()&&vi(a,o),tc(a)}),a}function qy(e,t=3e3){return new Promise((n,a)=>{let r=t?setTimeout(()=>{n(new Error("timeout"))},t):void 0,u=setInterval(()=>{e.every(i=>document.querySelector(i)!==null)&&(clearInterval(u),r&&clearTimeout(r),n(null))},50)})}async function Ap(e){let t=e.detail;jt.set(Nt,t);let n=await jt.get(cs,!1);jt.set(cs,!1),document.dispatchEvent(new CustomEvent("immersiveTranslateDocumentMessageUserResult",{detail:n?"close":"success"}))}function kp(e){j.debug("update user info",e);let t=e.detail;jt.set(Nt,t)}async function Sp(e){let t=await on();if(t.translationService)return;let n=e.config.translationService,a=["bing","transmart","google"];a.sort((u,o)=>u===n?-1:o===n?1:0);let r=await ng(a,e);if(!r){Ur("no_avaliable_translation_service",[{name:"no_avaliable_translation_service"}]);return}e.translationService!==r&&(t.translationService=r,un(t),e.translationService=r,Ur("change_default_translation_service",[{name:"change_default_translation_service",params:{translation_service:r}}]))}async function Zp(e){if(!e){let n=await Lt();e=await ln({config:n,url:Ze()})}e.config.debug?j.setLevel("debug"):j.setLevel("info"),globalThis.top!=globalThis.self||await fp().catch(n=>{j.error(`init popup page error: ${n}`)}),e.isTranslateExcludeUrl||(e.rule.isEbook||e.rule.isEbookBuilder||await wi(),globalThis.top===globalThis.self&&S3()),await Qp()}m();var hu={capture:!0,once:!0,passive:!0},tf=()=>document.readyState==="interactive"||document.readyState==="complete",Wy=e=>document.readyState===e,bu=(e,t)=>Wy(e)||tf()?(t(e),!0):!1,$y=()=>new Promise(e=>{bu("loading",e)||document.addEventListener("readystatechange",()=>{document.readyState==="loading"&&e("loading")},hu)}),Ky=()=>new Promise(e=>{bu("interactive",e)||document.addEventListener("readystatechange",()=>{document.readyState==="interactive"&&e("interactive")},hu)}),Gy=()=>new Promise(e=>{bu("complete",e)||document.addEventListener("readystatechange",()=>{document.readyState==="complete"&&e("complete")},hu)}),Xp=()=>new Promise(e=>{bu("domready",e)||document.addEventListener("DOMContentLoaded",()=>{e("domready")},hu)}),ef=()=>new Promise(e=>{bu("load",e)||window.addEventListener("load",()=>{e("load")},hu)}),nf={};Object.defineProperties(nf,{state:{get:function(){return document.readyState}},loading:{get:function(){return $y()}},interactive:{get:function(){return Ky()}},complete:{get:function(){return Gy()}},window:{get:function(){return ef()}},load:{get:function(){return ef()}},domready:{get:function(){return Xp()}},dom:{get:function(){return Xp()}},ready:{get:function(){return tf()}}});var af=nf;m();m();var rf={NOT_FUNCTION:"Your executor is not a function. functions and promises are valid.",FAILED_TO_WAIT:"Failed to wait"};function Vy(e){return()=>Promise.resolve().then(()=>e()).catch(t=>{throw t})}function Yy(e){if(typeof e!="function")throw new Error(rf.NOT_FUNCTION)}var uc=class{_interval;_timeout;_stopOnFailure;_backoffFactor;_backoffMaxInterval;_Console;originalStacktraceError;_userMessage;_verbose;_isWaiting;_isResolved;_executeFn;start;promise;resolve;reject;_lastError;constructor({interval:t=100,timeout:n=1e3,stopOnFailure:a=!1,verbose:r=!1,backoffFactor:u=1,backoffMaxInterval:o,message:i=""}={}){this._interval=t,this._timeout=n,this._stopOnFailure=a,this._isWaiting=!1,this._isResolved=!1,this._verbose=r,this._userMessage=i,this.originalStacktraceError=new Error,this._Console=console,this._backoffFactor=u,this._backoffMaxInterval=o||n,this.start=+Date.now()}tryEvery(t){return this._interval=t,this}stopAfter(t){return this._timeout=t,this}execute(t){return this._applyPromiseHandlers(),Yy(t),this._executeFn=Vy(t),this.start=Date.now(),this._isWaiting=!0,this._log("starting to execute"),this._runFunction(),this.promise}getPromise(){return this.promise}isResolved(){return this._isResolved}isWaiting(){return this._isWaiting}stopOnFailure(t){return this._stopOnFailure=t,this}_applyPromiseHandlers(){this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}_timeFromStart(){return Date.now()-this.start}_shouldStopTrying(){return this._timeFromStart()>this._timeout}_executeAgain(){this._log("executing again");let t=this._interval,n=t*this._backoffFactor;this._interval=n>this._backoffMaxInterval?this._backoffMaxInterval:n,setTimeout(this._runFunction.bind(this),t)}_failedToWait(){let t=`${rf.FAILED_TO_WAIT} after ${this._timeFromStart()}ms`;if(this._userMessage&&(t=`${t}: ${this._userMessage}`),this._lastError){this._lastError.message=`${t} ${this._lastError.message}`;let n=this.originalStacktraceError.stack;n&&(this._lastError.stack+=n.substring(n.indexOf(` -`)+1))}else this._lastError=this.originalStacktraceError,this._lastError.message=t;return this._log(this._lastError),this._lastError}_runFunction(){if(this._shouldStopTrying()){this._isWaiting=!1,this.reject?.(this._failedToWait());return}this._executeFn().then(t=>{if(t===!1){this._log(`then execute again with result: ${t}`),this._executeAgain();return}this.resolve?.(t),this._isWaiting=!1,this._isResolved=!0,this._log(`then done waiting with result: ${t}`)}).catch(t=>this._stopOnFailure?(this._log(`stopped on failure with err: ${t}`),this.reject?.(t)):(this._lastError=t,this._log(`catch with err: ${t}`),this._executeAgain()))}_log(t){this._verbose&&this._Console&&this._Console.log&&this._Console.log(t)}},rf=(e,t)=>new uc(t).execute(e);async function uf(e){try{return await rf(()=>{let n=e.mainFrame.innerText||"";if(er(n,e.rule.mainFrameMinTextCount,e.rule.mainFrameMinWordCount))return!0;throw new Error("there is no main text")},{timeout:5e3}),!0}catch(t){if(Je())throw t;return j.error("check dom element ready failed:",t,e),!0}}m();function of(){let e=document.querySelector("meta[name=immersive-translate-options]");return!!(e&&e.getAttribute("content")==="true")}m();async function lf(){if(!document.getElementById("immersive-translate-status")){j.error("Could not find status element");return}await sf("local"),await sf("sync"),Qy();let t=document.getElementById("immersive-translate-page-ready");t&&setTimeout(()=>{t.value="true",t.dispatchEvent(new Event("change"))},100)}async function Jy(e,t){let n;try{n=JSON.parse(e.detail)}catch(r){j.error("parse detail failed",r);return}let a=n.id||"default";try{let r=n.data||{},u=await t(r),o={id:a,ok:!0,data:u};document.dispatchEvent(new CustomEvent(Ru,{detail:JSON.stringify({...o,type:"answer"})}))}catch(r){let u={ok:!1,errorName:r.name,errorMessage:r.message,errorDetails:r.details||r.detail};document.dispatchEvent(new CustomEvent(Ru,{detail:JSON.stringify({...u,id:a,type:"answer"})}))}}function Qy(){document.addEventListener(_u,a=>{let r=a;if(j.debug("document message",r),r&&r.detail){let u;try{u=JSON.parse(r.detail)}catch(o){j.error("parse detail failed",o);return}u.type==="ask"?u.method==="request"&&Jy(r,oe):u.type==="tell"&&u.method==="updateCommands"&&Eo(u.data)}});let e=document.getElementById("immersive-translate-manifest");if(!e){j.error("Could not find manifest element");return}let t=ue.runtime.getManifest();Rt()&&(t._isSafari=!0),e.value=JSON.stringify(t),e.dispatchEvent(new Event("change")),document.getElementById("immersive-translate-message").addEventListener("change",a=>{try{let r=JSON.parse(a.target.value);r&&r.method==="removeStorageKey"&&r.data&&r.data.area&&r.data.keys&&ue.storage[r.data.area].remove(r.data.keys)}catch(r){j.error("parse message error",r)}})}async function sf(e){let t=document.getElementById("immersive-translate-status"),n=document.getElementById(`immersive-translate-${e}-storage`);if(n){j.debug("init storage");let a=await ue.storage[e].get(null);n.value=JSON.stringify(a),n.dispatchEvent(new Event("change")),n.addEventListener("change",r=>{try{let u=JSON.parse(r.target.value);ue.storage[e].set(u)}catch(u){j.error("save to storage error",u)}}),n.addEventListener("refresh-"+e,async r=>{let u=await ue.storage[e].get(null);n.value=JSON.stringify(u),j.debug("refresh ",e,"storage")})}else{j.error(`Could not find storage ${e} element`),t.innerText="Could not find storage local input element";return}}var Zy=["textarea","input","button","select","option","iframe"];async function Xy(){_e.addHook("beforeSanitizeElements",function(a,r,u){let o=(a.nodeName||"").toLowerCase();if(Zy.includes(o)){let s=`<${o}>${a.textContent||""}`,c=document.createTextNode(s);return a.replaceWith(c),a}return a}),_e.addHook("uponSanitizeElement",function(a,r){let u=a.nodeName||"";/\d+$/.test(u)&&(r.allowedTags[r.tagName]=!0)});let e=await Jn(),t=Ze(),n=await ln({config:e,url:t});We("init_page_daily",[{name:"init_page_daily"}],n),nf.domready.then(()=>{if(n.isTranslateExcludeUrl&&of())j.debug("detect web options page"),fu(n,window),lf();else{if(!n.config.enabled||sn(n.url,n.config.blockUrls))return;fu(n,window),uf(n).then(()=>{Qp(n).catch(r=>{r&&j.error("translate page error",r.name,r.message,r.details||"",r)})}).catch(r=>{j.debug("can not detect a valid body: ",r)})}}).catch(a=>{a&&j.error("translate dom ready detect error",a)})}Xy().catch(e=>{j.error("init error",e)});})(); +`)+1))}else this._lastError=this.originalStacktraceError,this._lastError.message=t;return this._log(this._lastError),this._lastError}_runFunction(){if(this._shouldStopTrying()){this._isWaiting=!1,this.reject?.(this._failedToWait());return}this._executeFn().then(t=>{if(t===!1){this._log(`then execute again with result: ${t}`),this._executeAgain();return}this.resolve?.(t),this._isWaiting=!1,this._isResolved=!0,this._log(`then done waiting with result: ${t}`)}).catch(t=>this._stopOnFailure?(this._log(`stopped on failure with err: ${t}`),this.reject?.(t)):(this._lastError=t,this._log(`catch with err: ${t}`),this._executeAgain()))}_log(t){this._verbose&&this._Console&&this._Console.log&&this._Console.log(t)}},uf=(e,t)=>new uc(t).execute(e);async function of(e){try{return await uf(()=>{let n=e.mainFrame.innerText||"";if(er(n,e.rule.mainFrameMinTextCount,e.rule.mainFrameMinWordCount))return!0;throw new Error("there is no main text")},{timeout:5e3}),!0}catch(t){if(Je())throw t;return j.error("check dom element ready failed:",t,e),!0}}m();function sf(){let e=document.querySelector("meta[name=immersive-translate-options]");return!!(e&&e.getAttribute("content")==="true")}m();async function cf(){if(!document.getElementById("immersive-translate-status")){j.error("Could not find status element");return}await lf("local"),await lf("sync"),Qy();let t=document.getElementById("immersive-translate-page-ready");t&&setTimeout(()=>{t.value="true",t.dispatchEvent(new Event("change"))},100)}async function Jy(e,t){let n;try{n=JSON.parse(e.detail)}catch(r){j.error("parse detail failed",r);return}let a=n.id||"default";try{let r=n.data||{},u=await t(r),o={id:a,ok:!0,data:u};document.dispatchEvent(new CustomEvent(Bu,{detail:JSON.stringify({...o,type:"answer"})}))}catch(r){let u={ok:!1,errorName:r.name,errorMessage:r.message,errorDetails:r.details||r.detail};document.dispatchEvent(new CustomEvent(Bu,{detail:JSON.stringify({...u,id:a,type:"answer"})}))}}function Qy(){document.addEventListener(Pu,a=>{let r=a;if(j.debug("document message",r),r&&r.detail){let u;try{u=JSON.parse(r.detail)}catch(o){j.error("parse detail failed",o);return}u.type==="ask"?u.method==="request"&&Jy(r,oe):u.type==="tell"&&u.method==="updateCommands"&&xo(u.data)}});let e=document.getElementById("immersive-translate-manifest");if(!e){j.error("Could not find manifest element");return}let t=ue.runtime.getManifest();Rt()&&(t._isSafari=!0),e.value=JSON.stringify(t),e.dispatchEvent(new Event("change")),document.getElementById("immersive-translate-message").addEventListener("change",a=>{try{let r=JSON.parse(a.target.value);r&&r.method==="removeStorageKey"&&r.data&&r.data.area&&r.data.keys&&ue.storage[r.data.area].remove(r.data.keys)}catch(r){j.error("parse message error",r)}})}async function lf(e){let t=document.getElementById("immersive-translate-status"),n=document.getElementById(`immersive-translate-${e}-storage`);if(n){j.debug("init storage");let a=await ue.storage[e].get(null);n.value=JSON.stringify(a),n.dispatchEvent(new Event("change")),n.addEventListener("change",r=>{try{let u=JSON.parse(r.target.value);ue.storage[e].set(u)}catch(u){j.error("save to storage error",u)}}),n.addEventListener("refresh-"+e,async r=>{let u=await ue.storage[e].get(null);n.value=JSON.stringify(u),j.debug("refresh ",e,"storage")})}else{j.error(`Could not find storage ${e} element`),t.innerText="Could not find storage local input element";return}}var Zy=["textarea","input","button","select","option","iframe"];async function Xy(){_e.addHook("beforeSanitizeElements",function(a,r,u){let o=(a.nodeName||"").toLowerCase();if(Zy.includes(o)){let s=`<${o}>${a.textContent||""}`,c=document.createTextNode(s);return a.replaceWith(c),a}return a}),_e.addHook("uponSanitizeElement",function(a,r){let u=a.nodeName||"";/\d+$/.test(u)&&(r.allowedTags[r.tagName]=!0)});let e=await Jn(),t=Ze(),n=await ln({config:e,url:t});We("init_page_daily",[{name:"init_page_daily"}],n),af.domready.then(()=>{if(n.isTranslateExcludeUrl&&sf())j.debug("detect web options page"),pu(n,window),cf();else{if(!n.config.enabled||sn(n.url,n.config.blockUrls))return;pu(n,window),of(n).then(()=>{Zp(n).catch(r=>{r&&j.error("translate page error",r.name,r.message,r.details||"",r)})}).catch(r=>{j.debug("can not detect a valid body: ",r)})}}).catch(a=>{a&&j.error("translate dom ready detect error",a)})}Xy().catch(e=>{j.error("init error",e)});})(); /*! Bundled license information: bowser/src/bowser.js: diff --git a/dist/chrome/manifest.json b/dist/chrome/manifest.json index be716bc..8a52fab 100644 --- a/dist/chrome/manifest.json +++ b/dist/chrome/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 3, "name": "__MSG_brandName__", "description": "__MSG_brandDescription__", - "version": "0.9.5", + "version": "0.9.6", "default_locale": "en", "background": { "service_worker": "background.js" diff --git a/dist/chrome/options.js b/dist/chrome/options.js index 25e3c37..fa8475f 100644 --- a/dist/chrome/options.js +++ b/dist/chrome/options.js @@ -1,4 +1,4 @@ -(()=>{var Kh=Object.create;var Bs=Object.defineProperty;var $h=Object.getOwnPropertyDescriptor;var Gh=Object.getOwnPropertyNames;var Vh=Object.getPrototypeOf,Yh=Object.prototype.hasOwnProperty;var Jh=(e,t)=>()=>(e&&(t=e(e=0)),t);var Qh=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Zh=(e,t)=>{for(var n in t)Bs(e,n,{get:t[n],enumerable:!0})},Xh=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Gh(t))!Yh.call(e,r)&&r!==n&&Bs(e,r,{get:()=>t[r],enumerable:!(a=$h(t,r))||a.enumerable});return e};var e2=(e,t,n)=>(n=e!=null?Kh(Vh(e)):{},Xh(t||!e||!e.__esModule?Bs(n,"default",{value:e,enumerable:!0}):n,e));var F,h=Jh(()=>{F={BUILD_TIME:"2023-09-17T09:32:32.000Z",VERSION:"0.9.5",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"0",BETA:"0",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { +(()=>{var $h=Object.create;var Bs=Object.defineProperty;var Gh=Object.getOwnPropertyDescriptor;var Vh=Object.getOwnPropertyNames;var Yh=Object.getPrototypeOf,Jh=Object.prototype.hasOwnProperty;var Qh=(e,t)=>()=>(e&&(t=e(e=0)),t);var Zh=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Xh=(e,t)=>{for(var n in t)Bs(e,n,{get:t[n],enumerable:!0})},e2=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Vh(t))!Jh.call(e,r)&&r!==n&&Bs(e,r,{get:()=>t[r],enumerable:!(a=Gh(t,r))||a.enumerable});return e};var t2=(e,t,n)=>(n=e!=null?$h(Yh(e)):{},e2(t||!e||!e.__esModule?Bs(n,"default",{value:e,enumerable:!0}):n,e));var F,h=Qh(()=>{F={BUILD_TIME:"2023-09-19T07:46:36.000Z",VERSION:"0.9.6",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"0",BETA:"0",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { --immersive-translate-theme-underline-borderColor: #72ece9; --immersive-translate-theme-nativeUnderline-borderColor: #72ece9; --immersive-translate-theme-nativeDashed-borderColor: #72ece9; @@ -4234,26 +4234,26 @@ select.text-label {
-`,PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",OPTIONS_URL:"https://dash.immersivetranslate.com/",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",MOCK:"0",DEBUG:"0",INSTALL_FROM:"chrome_zip"}});var ih=Qh((ws,cu)=>{h();(function(){var e;function t(g){var T,w,b="",S=-1,D;if(g&&g.length)for(D=g.length;(S+=1)>>6&31,128|T&63):T<=65535?b+=String.fromCharCode(224|T>>>12&15,128|T>>>6&63,128|T&63):T<=2097151&&(b+=String.fromCharCode(240|T>>>18&7,128|T>>>12&63,128|T>>>6&63,128|T&63));return b}function n(g){var T,w,b,S,D,N=[],_;if(T=w=b=S=D=0,g&&g.length)for(_=g.length,g+="";T<_;)b=g.charCodeAt(T),w+=1,b<128?(N[w]=String.fromCharCode(b),T+=1):b>191&&b<224?(S=g.charCodeAt(T+1),N[w]=String.fromCharCode((b&31)<<6|S&63),T+=2):(S=g.charCodeAt(T+1),D=g.charCodeAt(T+2),N[w]=String.fromCharCode((b&15)<<12|(S&63)<<6|D&63),T+=3);return N.join("")}function a(g,T){var w=(g&65535)+(T&65535),b=(g>>16)+(T>>16)+(w>>16);return b<<16|w&65535}function r(g,T){return g<>>32-T}function o(g,T){for(var w=T?"0123456789ABCDEF":"0123456789abcdef",b="",S,D=0,N=g.length;D>>4&15)+w.charAt(S&15);return b}function u(g){var T,w=g.length,b="";for(T=0;T>>8&255);return b}function i(g){var T,w=g.length,b="";for(T=0;T>>8&255,g.charCodeAt(T)&255);return b}function s(g){var T,w=g.length*32,b="";for(T=0;T>5]>>>24-T%32&255);return b}function c(g){var T,w=g.length*32,b="";for(T=0;T>5]>>>T%32&255);return b}function l(g){var T,w=g.length*8,b=Array(g.length>>2),S=b.length;for(T=0;T>5]|=(g.charCodeAt(T/8)&255)<>2),S=b.length;for(T=0;T>5]|=(g.charCodeAt(T/8)&255)<<24-T%32;return b}function p(g,T){var w=T.length,b=Array(),S,D,N,_,y,E,x,v;for(E=Array(Math.ceil(g.length/2)),_=E.length,S=0;S<_;S+=1)E[S]=g.charCodeAt(S*2)<<8|g.charCodeAt(S*2+1);for(;E.length>0;){for(y=Array(),N=0,S=0;S0||D>0)&&(y[y.length]=D);b[b.length]=N,E=y}for(x="",S=b.length-1;S>=0;S--)x+=T.charAt(b[S]);for(v=Math.ceil(g.length*8/(Math.log(T.length)/Math.log(2))),S=x.length;Sg.length*8?b+=T:b+=w.charAt(_>>>6*(3-N)&63);return b}e={VERSION:"1.0.6",Base64:function(){var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",T="=",w=!1,b=!0;this.encode=function(S){var D,N,_,y="";for(T=T||"=",S=b?t(S):S,len=S.length,D=0;Dlen*8?y+=T:y+=g.charAt(_>>>6*(3-N)&63);return y},this.decode=function(S){var D,N,_,y,E,x,v,C,R,M,k="",P=[];if(!S)return S;D=M=0,S=S.replace(new RegExp("\\"+T,"gi"),"");do E=g.indexOf(S.charAt(D++)),x=g.indexOf(S.charAt(D++)),v=g.indexOf(S.charAt(D++)),C=g.indexOf(S.charAt(D++)),R=E<<18|x<<12|v<<6|C,N=R>>16&255,_=R>>8&255,y=R&255,M+=1,v===64?P[M]=String.fromCharCode(N):C===64?P[M]=String.fromCharCode(N,_):P[M]=String.fromCharCode(N,_,y);while(D>>8^w;return(T^-1)>>>0},MD5:function(g){var T=g&&typeof g.uppercase=="boolean"?g.uppercase:!1,w=g&&typeof g.pad=="string"?g.pad:"=",b=g&&typeof g.utf8=="boolean"?g.utf8:!0;this.hex=function(C){return o(S(C,b),T)},this.b64=function(C){return m(S(C),w)},this.any=function(C,R){return p(S(C,b),R)},this.raw=function(C){return S(C,b)},this.hex_hmac=function(C,R){return o(D(C,R),T)},this.b64_hmac=function(C,R){return m(D(C,R),w)},this.any_hmac=function(C,R,M){return p(D(C,R),M)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(C){return typeof C=="boolean"&&(T=C),this},this.setPad=function(C){return w=C||w,this},this.setUTF8=function(C){return typeof C=="boolean"&&(b=C),this};function S(C){return C=b?t(C):C,c(N(l(C),C.length*8))}function D(C,R){var M,k,P,O,j;for(C=b?t(C):C,R=b?t(R):R,M=l(C),M.length>16&&(M=N(M,C.length*8)),k=Array(16),P=Array(16),j=0;j<16;j+=1)k[j]=M[j]^909522486,P[j]=M[j]^1549556828;return O=N(k.concat(l(R)),512+R.length*8),c(N(P.concat(O),512+128))}function N(C,R){var M,k,P,O,j,B=1732584193,A=-271733879,L=-1732584194,U=271733878;for(C[R>>5]|=128<>>9<<4)+14]=R,M=0;M16&&(v=N(v,E.length*8)),C=Array(16),R=Array(16),M=0;M<16;M+=1)C[M]=v[M]^909522486,R[M]=v[M]^1549556828;return k=N(C.concat(f(x)),512+x.length*8),s(N(R.concat(k),512+160))}function N(E,x){var v,C,R,M,k,P,O,j,B=Array(80),A=1732584193,L=-271733879,U=-1732584194,K=271733878,H=-1009589776;for(E[x>>5]|=128<<24-x%32,E[(x+64>>9<<4)+15]=x,v=0;v16&&(H=B(H,A.length*8));K<16;K+=1)V[K]=H[K]^909522486,q[K]=H[K]^1549556828;return U=B(V.concat(f(L)),512+L.length*8),s(B(q.concat(U),512+256))}function _(A,L){return A>>>L|A<<32-L}function y(A,L){return A>>>L}function E(A,L,U){return A&L^~A&U}function x(A,L,U){return A&L^A&U^L&U}function v(A){return _(A,2)^_(A,13)^_(A,22)}function C(A){return _(A,6)^_(A,11)^_(A,25)}function R(A){return _(A,7)^_(A,18)^y(A,3)}function M(A){return _(A,17)^_(A,19)^y(A,10)}function k(A){return _(A,28)^_(A,34)^_(A,39)}function P(A){return _(A,14)^_(A,18)^_(A,41)}function O(A){return _(A,1)^_(A,8)^y(A,7)}function j(A){return _(A,19)^_(A,61)^y(A,6)}S=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function B(A,L){var U=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],K=new Array(64),H,V,q,oe,Z,J,ye,xe,ie,Y,ce,fe;for(A[L>>5]|=128<<24-L%32,A[(L+64>>9<<4)+15]=L,ie=0;ie32&&(A=_(A,P.length*8));B<32;B+=1)L[B]=A[B]^909522486,U[B]=A[B]^1549556828;return j=_(L.concat(f(O)),1024+O.length*8),s(_(U.concat(j),1024+512))}function _(P,O){var j,B,A,L=new Array(80),U=new Array(16),K=[new y(1779033703,-205731576),new y(-1150833019,-2067093701),new y(1013904242,-23791573),new y(-1521486534,1595750129),new y(1359893119,-1377402159),new y(-1694144372,725511199),new y(528734635,-79577749),new y(1541459225,327033209)],H=new y(0,0),V=new y(0,0),q=new y(0,0),oe=new y(0,0),Z=new y(0,0),J=new y(0,0),ye=new y(0,0),xe=new y(0,0),ie=new y(0,0),Y=new y(0,0),ce=new y(0,0),fe=new y(0,0),ge=new y(0,0),Ee=new y(0,0),Le=new y(0,0),ve=new y(0,0),ee=new y(0,0);for(S===void 0&&(S=[new y(1116352408,-685199838),new y(1899447441,602891725),new y(-1245643825,-330482897),new y(-373957723,-2121671748),new y(961987163,-213338824),new y(1508970993,-1241133031),new y(-1841331548,-1357295717),new y(-1424204075,-630357736),new y(-670586216,-1560083902),new y(310598401,1164996542),new y(607225278,1323610764),new y(1426881987,-704662302),new y(1925078388,-226784913),new y(-2132889090,991336113),new y(-1680079193,633803317),new y(-1046744716,-815192428),new y(-459576895,-1628353838),new y(-272742522,944711139),new y(264347078,-1953704523),new y(604807628,2007800933),new y(770255983,1495990901),new y(1249150122,1856431235),new y(1555081692,-1119749164),new y(1996064986,-2096016459),new y(-1740746414,-295247957),new y(-1473132947,766784016),new y(-1341970488,-1728372417),new y(-1084653625,-1091629340),new y(-958395405,1034457026),new y(-710438585,-1828018395),new y(113926993,-536640913),new y(338241895,168717936),new y(666307205,1188179964),new y(773529912,1546045734),new y(1294757372,1522805485),new y(1396182291,-1651133473),new y(1695183700,-1951439906),new y(1986661051,1014477480),new y(-2117940946,1206759142),new y(-1838011259,344077627),new y(-1564481375,1290863460),new y(-1474664885,-1136513023),new y(-1035236496,-789014639),new y(-949202525,106217008),new y(-778901479,-688958952),new y(-694614492,1432725776),new y(-200395387,1467031594),new y(275423344,851169720),new y(430227734,-1194143544),new y(506948616,1363258195),new y(659060556,-544281703),new y(883997877,-509917016),new y(958139571,-976659869),new y(1322822218,-482243893),new y(1537002063,2003034995),new y(1747873779,-692930397),new y(1955562222,1575990012),new y(2024104815,1125592928),new y(-2067236844,-1578062990),new y(-1933114872,442776044),new y(-1866530822,593698344),new y(-1538233109,-561857047),new y(-1090935817,-1295615723),new y(-965641998,-479046869),new y(-903397682,-366583396),new y(-779700025,566280711),new y(-354779690,-840897762),new y(-176337025,-294727304),new y(116418474,1914138554),new y(174292421,-1563912026),new y(289380356,-1090974290),new y(460393269,320620315),new y(685471733,587496836),new y(852142971,1086792851),new y(1017036298,365543100),new y(1126000580,-1676669620),new y(1288033470,-885112138),new y(1501505948,-60457430),new y(1607167915,987167468),new y(1816402316,1246189591)]),B=0;B<80;B+=1)L[B]=new y(0,0);for(P[O>>5]|=128<<24-(O&31),P[(O+128>>10<<5)+31]=O,A=P.length,B=0;B>>j|O.h<<32-j,P.h=O.h>>>j|O.l<<32-j}function v(P,O,j){P.l=O.h>>>j|O.l<<32-j,P.h=O.l>>>j|O.h<<32-j}function C(P,O,j){P.l=O.l>>>j|O.h<<32-j,P.h=O.h>>>j}function R(P,O,j){var B=(O.l&65535)+(j.l&65535),A=(O.l>>>16)+(j.l>>>16)+(B>>>16),L=(O.h&65535)+(j.h&65535)+(A>>>16),U=(O.h>>>16)+(j.h>>>16)+(L>>>16);P.l=B&65535|A<<16,P.h=L&65535|U<<16}function M(P,O,j,B,A){var L=(O.l&65535)+(j.l&65535)+(B.l&65535)+(A.l&65535),U=(O.l>>>16)+(j.l>>>16)+(B.l>>>16)+(A.l>>>16)+(L>>>16),K=(O.h&65535)+(j.h&65535)+(B.h&65535)+(A.h&65535)+(U>>>16),H=(O.h>>>16)+(j.h>>>16)+(B.h>>>16)+(A.h>>>16)+(K>>>16);P.l=L&65535|U<<16,P.h=K&65535|H<<16}function k(P,O,j,B,A,L){var U=(O.l&65535)+(j.l&65535)+(B.l&65535)+(A.l&65535)+(L.l&65535),K=(O.l>>>16)+(j.l>>>16)+(B.l>>>16)+(A.l>>>16)+(L.l>>>16)+(U>>>16),H=(O.h&65535)+(j.h&65535)+(B.h&65535)+(A.h&65535)+(L.h&65535)+(K>>>16),V=(O.h>>>16)+(j.h>>>16)+(B.h>>>16)+(A.h>>>16)+(L.h>>>16)+(H>>>16);P.l=U&65535|K<<16,P.h=H&65535|V<<16}},RMD160:function(g){var T=g&&typeof g.uppercase=="boolean"?g.uppercase:!1,w=g&&typeof g.pad=="string"?g.pa:"=",b=g&&typeof g.utf8=="boolean"?g.utf8:!0,S=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],D=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],N=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],_=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(k){return o(y(k,b))},this.b64=function(k){return m(y(k,b),w)},this.any=function(k,P){return p(y(k,b),P)},this.raw=function(k){return y(k,b)},this.hex_hmac=function(k,P){return o(E(k,P))},this.b64_hmac=function(k,P){return m(E(k,P),w)},this.any_hmac=function(k,P,O){return p(E(k,P),O)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(k){return typeof k=="boolean"&&(T=k),this},this.setPad=function(k){return typeof k<"u"&&(w=k),this},this.setUTF8=function(k){return typeof k=="boolean"&&(b=k),this};function y(k){return k=b?t(k):k,x(v(l(k),k.length*8))}function E(k,P){k=b?t(k):k,P=b?t(P):P;var O,j,B=l(k),A=Array(16),L=Array(16);for(B.length>16&&(B=v(B,k.length*8)),O=0;O<16;O+=1)A[O]=B[O]^909522486,L[O]=B[O]^1549556828;return j=v(A.concat(l(P)),512+P.length*8),x(v(L.concat(j),512+160))}function x(k){var P,O="",j=k.length*32;for(P=0;P>5]>>>P%32&255);return O}function v(k,P){var O,j,B,A,L=1732584193,U=4023233417,K=2562383102,H=271733878,V=3285377520,q,oe,Z,J,ye,xe,ie,Y,ce,fe;for(k[P>>5]|=128<>>9<<4)+14]=P,A=k.length,B=0;Bfunction(){return t||(0,e[B4(e)[0]])((t={exports:{}}).exports,t),t.exports},i2=(e,t)=>{for(var n in t)Is(e,n,{get:t[n],enumerable:!0})},Rs=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of B4(t))!o2.call(e,r)&&r!==n&&Is(e,r,{get:()=>t[r],enumerable:!(a=a2(t,r))||a.enumerable});return e},s2=(e,t,n)=>(Rs(e,t,"default"),n&&Rs(n,t,"default")),R4=(e,t,n)=>(n=e!=null?n2(r2(e)):{},Rs(t||!e||!e.__esModule?Is(n,"default",{value:e,enumerable:!0}):n,e)),I4=u2({"../esmd/npm/webextension-polyfill@0.10.0/node_modules/webextension-polyfill/dist/browser-polyfill.js"(e,t){(function(n,a){if(typeof define=="function"&&define.amd)define("webextension-polyfill",["module"],a);else if(typeof e<"u")a(t);else{var r={exports:{}};a(r),n.browser=r.exports}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:e,function(n){"use strict";if(!globalThis.chrome?.runtime?.id)throw new Error("This script should only be loaded in a browser extension.");if(typeof globalThis.browser>"u"||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){let a="The message port closed before a response was received.",r=o=>{let u={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(Object.keys(u).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class i extends WeakMap{constructor(E,x=void 0){super(x),this.createItem=E}get(E){return this.has(E)||this.set(E,this.createItem(E)),super.get(E)}}let s=y=>y&&typeof y=="object"&&typeof y.then=="function",c=(y,E)=>(...x)=>{o.runtime.lastError?y.reject(new Error(o.runtime.lastError.message)):E.singleCallbackArg||x.length<=1&&E.singleCallbackArg!==!1?y.resolve(x[0]):y.resolve(x)},l=y=>y==1?"argument":"arguments",f=(y,E)=>function(v,...C){if(C.lengthE.maxArgs)throw new Error(`Expected at most ${E.maxArgs} ${l(E.maxArgs)} for ${y}(), got ${C.length}`);return new Promise((R,M)=>{if(E.fallbackToNoCallback)try{v[y](...C,c({resolve:R,reject:M},E))}catch{v[y](...C),E.fallbackToNoCallback=!1,E.noCallback=!0,R()}else E.noCallback?(v[y](...C),R()):v[y](...C,c({resolve:R,reject:M},E))})},p=(y,E,x)=>new Proxy(E,{apply(v,C,R){return x.call(C,y,...R)}}),m=Function.call.bind(Object.prototype.hasOwnProperty),g=(y,E={},x={})=>{let v=Object.create(null),C={has(M,k){return k in y||k in v},get(M,k,P){if(k in v)return v[k];if(!(k in y))return;let O=y[k];if(typeof O=="function")if(typeof E[k]=="function")O=p(y,y[k],E[k]);else if(m(x,k)){let j=f(k,x[k]);O=p(y,y[k],j)}else O=O.bind(y);else if(typeof O=="object"&&O!==null&&(m(E,k)||m(x,k)))O=g(O,E[k],x[k]);else if(m(x,"*"))O=g(O,E[k],x["*"]);else return Object.defineProperty(v,k,{configurable:!0,enumerable:!0,get(){return y[k]},set(j){y[k]=j}}),O;return v[k]=O,O},set(M,k,P,O){return k in v?v[k]=P:y[k]=P,!0},defineProperty(M,k,P){return Reflect.defineProperty(v,k,P)},deleteProperty(M,k){return Reflect.deleteProperty(v,k)}},R=Object.create(y);return new Proxy(R,C)},T=y=>({addListener(E,x,...v){E.addListener(y.get(x),...v)},hasListener(E,x){return E.hasListener(y.get(x))},removeListener(E,x){E.removeListener(y.get(x))}}),w=new i(y=>typeof y!="function"?y:function(x){let v=g(x,{},{getContent:{minArgs:0,maxArgs:0}});y(v)}),b=new i(y=>typeof y!="function"?y:function(x,v,C){let R=!1,M,k=new Promise(B=>{M=function(A){R=!0,B(A)}}),P;try{P=y(x,v,M)}catch(B){P=Promise.reject(B)}let O=P!==!0&&s(P);if(P!==!0&&!O&&!R)return!1;let j=B=>{B.then(A=>{C(A)},A=>{let L;A&&(A instanceof Error||typeof A.message=="string")?L=A.message:L="An unexpected error occurred",C({__mozWebExtensionPolyfillReject__:!0,message:L})}).catch(A=>{})};return j(O?P:k),!0}),S=({reject:y,resolve:E},x)=>{o.runtime.lastError?o.runtime.lastError.message===a?E():y(new Error(o.runtime.lastError.message)):x&&x.__mozWebExtensionPolyfillReject__?y(new Error(x.message)):E(x)},D=(y,E,x,...v)=>{if(v.lengthE.maxArgs)throw new Error(`Expected at most ${E.maxArgs} ${l(E.maxArgs)} for ${y}(), got ${v.length}`);return new Promise((C,R)=>{let M=S.bind(null,{resolve:C,reject:R});v.push(M),x.sendMessage(...v)})},N={devtools:{network:{onRequestFinished:T(w)}},runtime:{onMessage:T(b),onMessageExternal:T(b),sendMessage:D.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:D.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},_={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return u.privacy={network:{"*":_},services:{"*":_},websites:{"*":_}},g(o,N,u)};n.exports=r(chrome)}else n.exports=globalThis.browser})}}),O4={};i2(O4,{default:()=>xu});var l2=R4(I4());s2(O4,R4(I4()));var{default:_4,...c2}=l2,xu=_4!==void 0?_4:c2;globalThis.immersiveTranslateBrowserAPI=xu;h();h();h();h();var Au,Se,H4,d2,co,N4,q4,Cu={},W4=[],g2=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function fa(e,t){for(var n in t)e[n]=t[n];return e}function K4(e){var t=e.parentNode;t&&t.removeChild(e)}function Ns(e,t,n){var a,r,o,u={};for(o in t)o=="key"?a=t[o]:o=="ref"?r=t[o]:u[o]=t[o];if(arguments.length>2&&(u.children=arguments.length>3?Au.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)u[o]===void 0&&(u[o]=e.defaultProps[o]);return Tu(e,u,a,r,null)}function Tu(e,t,n,a,r){var o={type:e,props:t,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++H4};return r==null&&Se.vnode!=null&&Se.vnode(o),o}function Fe(e){return e.children}function Eu(e,t){this.props=e,this.context=t}function pr(e,t){if(t==null)return e.__?pr(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?Tu(m.type,m.props,m.key,m.ref?m.ref:null,m.__v):m)!=null){if(m.__=n,m.__b=n.__b+1,(p=b[l])===null||p&&m.key==p.key&&m.type===p.type)b[l]=void 0;else for(f=0;f=n.__.length&&n.__.push({__V:ku}),n.__[e]}function $(e){return go=1,h2(sd,e)}function h2(e,t,n){var a=Du(mo++,2);if(a.t=e,!a.__c&&(a.__=[n?n(t):sd(void 0,t),function(o){var u=a.__N?a.__N[0]:a.__[0],i=a.t(u,o);u!==i&&(a.__N=[i,a.__[1]],a.__c.setState({}))}],a.__c=st,!st.u)){st.u=!0;var r=st.shouldComponentUpdate;st.shouldComponentUpdate=function(o,u,i){if(!a.__c.__H)return!0;var s=a.__c.__H.__.filter(function(l){return l.__c});if(s.every(function(l){return!l.__N}))return!r||r.call(this,o,u,i);var c=!1;return s.forEach(function(l){if(l.__N){var f=l.__[0];l.__=l.__N,l.__N=void 0,f!==l.__[0]&&(c=!0)}}),!!c&&(!r||r.call(this,o,u,i))}}return a.__N||a.__}function he(e,t){var n=Du(mo++,3);!Se.__s&&id(n.__H,t)&&(n.__=e,n.i=t,st.__H.__h.push(n))}function zn(e){return go=5,ha(function(){return{current:e}},[])}function ha(e,t){var n=Du(mo++,7);return id(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function dn(e,t){return go=8,ha(function(){return e},t)}function Ye(e){var t=st.context[e.__c],n=Du(mo++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(st)),t.props.value):e.__}function b2(){for(var e;e=ud.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Su),e.__H.__h.forEach(zs),e.__H.__h=[]}catch(t){e.__H.__h=[],Se.__e(t,e.__v)}}Se.__b=function(e){typeof e.type!="function"||e.o||e.type===Fe?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),st=null,ed&&ed(e)},Se.__r=function(e){td&&td(e),mo=0;var t=(st=e.__c).__H;t&&(js===st?(t.__h=[],st.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=ku,n.__N=n.i=void 0})):(t.__h.forEach(Su),t.__h.forEach(zs),t.__h=[])),js=st},Se.diffed=function(e){nd&&nd(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ud.push(t)!==1&&X4===Se.requestAnimationFrame||((X4=Se.requestAnimationFrame)||y2)(b2)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==ku&&(n.__=n.__V),n.i=void 0,n.__V=ku})),js=st=null},Se.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Su),n.__h=n.__h.filter(function(a){return!a.__||zs(a)})}catch(a){t.some(function(r){r.__h&&(r.__h=[])}),t=[],Se.__e(a,n.__v)}}),ad&&ad(e,t)},Se.unmount=function(e){rd&&rd(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(a){try{Su(a)}catch(r){t=r}}),n.__H=void 0,t&&Se.__e(t,n.__v))};var od=typeof requestAnimationFrame=="function";function y2(e){var t,n=function(){clearTimeout(a),od&&cancelAnimationFrame(t),setTimeout(e)},a=setTimeout(n,100);od&&(t=requestAnimationFrame(n))}function Su(e){var t=st,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),st=t}function zs(e){var t=st;e.__c=e.__(),st=t}function id(e,t){return!e||e.length!==t.length||t.some(function(n,a){return n!==e[a]})}function sd(e,t){return typeof t=="function"?t(e):t}h();h();h();var po;function Xs(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function yd(e,t=","){return e.map(Xs).join(t)}var e0=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function hr(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function Mu(e,t="@media "){return t+He(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(a=>`(${a}-width:${n[a]})`).join(" and "))).join(",")}function He(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function ld(e){return e}function ho(){}var dt={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function xd(e){return e.match(/[-=:;]/g)?.length||0}function Gs(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(xd(e),15)<<18}var x2=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function t0({n:e,i:t,v:n=[]},a,r,o){e&&(e=Xs({n:e,i:t,v:n})),o=[...He(o)];for(let i of n){let s=a.theme("screens",i);for(let c of He(s&&Mu(s)||a.v(i))){var u;o.push(c),r|=s?67108864|Gs(c):i=="dark"?1073741824:c[0]=="@"?Gs(c):(u=c,1<<~(/:([a-z-]+)/.test(u)&&~x2.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:r,r:o,i:t}}var n0=new Map;function Vs(e){if(e.d){let t=[],n=Hs(e.r.reduce((a,r)=>r[0]=="@"?(t.push(r),a):r?Hs(a,o=>Hs(r,u=>{let i=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(u);if(i){let s=o.indexOf(i[1]);return~s?o.slice(0,s)+i[0]+o.slice(s+i[1].length):qs(o,u)}return qs(u,o)})):a,"&"),a=>qs(a,e.n?"."+e0(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((a,r)=>r+"{"+a+"}",e.d)}}function Hs(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,a,r)=>t(a)+r)}function qs(e,t){return e.replace(/&/g,t)}var cd=new Intl.Collator("en",{numeric:!0});function Td(e,t){for(var n=0,a=e.length;n>1;0>=Ed(e[r],t)?n=r+1:a=r}return a}function Ed(e,t){let n=e.p&dt.o;return n==(t.p&dt.o)&&(n==dt.b||n==dt.o)?0:e.p-t.p||e.o-t.o||cd.compare(dd(e.n),dd(t.n))||cd.compare(gd(e.n),gd(t.n))}function dd(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function gd(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function Ws(e,t){return Math.round(parseInt(e,16)*t)}function ea(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:a}=t,r=a?`var(${a})`:n;if(e.includes(""))return e.replace("",r);if(e[0]=="#"&&(e.length==4||e.length==7)){let o=(e.length-1)/3,u=[17,1,.062272][o-1];return`rgba(${[Ws(e.substr(1,o),u),Ws(e.substr(1+o,o),u),Ws(e.substr(1+2*o,o),u),r]})`}return r=="1"?e:r=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${r})`)}function a0(e,t,n,a,r=[]){return function o(u,{n:i,p:s,r:c=[],i:l},f){let p=[],m="",g=0,T=0;for(let S in u||{}){var w,b;let D=u[S];if(S[0]=="@"){if(!D)continue;if(S[1]=="a"){p.push(...u0(i,s,fo(""+D),f,s,c,l,!0));continue}if(S[1]=="l"){for(let N of He(D))p.push(...o(N,{n:i,p:(w=dt[S[7]],s&~dt.o|w),r:S[7]=="d"?[]:c,i:l},f));continue}if(S[1]=="i"){p.push(...He(D).map(N=>({p:-1,o:0,r:[],d:S+" "+N})));continue}if(S[1]=="k"){p.push({p:dt.d,o:0,r:[S],d:o(D,{p:dt.d},f).map(Vs).join("")});continue}if(S[1]=="f"){p.push(...He(D).map(N=>({p:dt.d,o:0,r:[S],d:o(N,{p:dt.d},f).map(Vs).join("")})));continue}}if(typeof D!="object"||Array.isArray(D))S=="label"&&D?i=D+hr(JSON.stringify([s,l,u])):(D||D===0)&&(S=S.replace(/[A-Z]/g,N=>"-"+N.toLowerCase()),T+=1,g=Math.max(g,(b=S)[0]=="-"?0:xd(b)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(b)?+!!RegExp.$1||-!!RegExp.$2:0)+1),m+=(m?";":"")+He(D).map(N=>f.s(S,r0(""+N,f.theme)+(l?" !important":""))).join(";"));else if(S[0]=="@"||S.includes("&")){let N=s;S[0]=="@"&&(S=S.replace(/\bscreen\(([^)]+)\)/g,(_,y)=>{let E=f.theme("screens",y);return E?(N|=67108864,Mu(E,"")):_}),N|=Gs(S)),p.push(...o(D,{n:i,p:N,r:[...c,S],i:l},f))}else p.push(...o(D,{p:s,r:[...c,S]},f))}return p.unshift({n:i,p:s,o:Math.max(0,15-T)+1.5*Math.min(g||15,15),r:c,d:m}),p.sort(Ed)}(e,t0(t,n,a,r),n)}function r0(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,a,r,o,u="")=>{let i=t(r,u);return typeof i=="function"&&/color|fill|stroke/i.test(r)?ea(i):""+He(i).filter(s=>Object(s)!==s)})}function o0(e,t){let n,a=[];for(let r of e)r.d&&r.n?n?.p==r.p&&""+n.r==""+r.r?(n.c=[n.c,r.c].filter(Boolean).join(" "),n.d=n.d+";"+r.d):a.push(n={...r,n:r.n&&t}):a.push({...r,n:r.n&&t});return a}function Lu(e,t,n=dt.u,a,r){let o=[];for(let u of e)for(let i of function(s,c,l,f,p){s={...s,i:s.i||p};let m=function(g,T){let w=n0.get(g.n);return w?w(g,T):T.r(g.n,g.v[0]=="dark")}(s,c);return m?typeof m=="string"?({r:f,p:l}=t0(s,c,l,f),o0(Lu(fo(m),c,l,f,s.i),s.n)):Array.isArray(m)?m.map(g=>{var T,w;return{o:0,...g,r:[...He(f),...He(g.r)],p:(T=l,w=g.p??l,T&~dt.o|w)}}):a0(m,s,c,l,f):[{c:Xs(s),p:0,o:0,r:[]}]}(u,t,n,a,r))o.splice(Td(o,i),0,i);return o}function u0(e,t,n,a,r,o,u,i){return o0((i?n.flatMap(s=>Lu([s],a,r,o,u)):Lu(n,a,r,o,u)).map(s=>s.p&dt.o&&(s.n||t==dt.b)?{...s,p:s.p&~dt.o|t,o:0}:s),e)}function T2(e,t,n,a){var r;return r=(o,u)=>{let{n:i,p:s,r:c,i:l}=t0(o,u,t);return n&&u0(i,t,n,u,s,c,l,a)},n0.set(e,r),e}function Ks(e,t,n){if(e[e.length-1]!="("){let a=[],r=!1,o=!1,u="";for(let i of e)if(!(i=="("||/[~@]$/.test(i))){if(i[0]=="!"&&(i=i.slice(1),r=!r),i.endsWith(":")){a[i=="dark:"?"unshift":"push"](i.slice(0,-1));continue}i[0]=="-"&&(i=i.slice(1),o=!o),i.endsWith("-")&&(i=i.slice(0,-1)),i&&i!="&"&&(u+=(u&&"-")+i)}u&&(o&&(u="-"+u),t[0].push({n:u,v:a.filter(E2),i:r}))}}function E2(e,t,n){return n.indexOf(e)==t}var md=new Map;function fo(e){let t=md.get(e);if(!t){let n=[],a=[[]],r=0,o=0,u=null,i=0,s=(c,l=0)=>{r!=i&&(n.push(e.slice(r,i+l)),c&&Ks(n,a)),r=i+1};for(;i1?f.slice(0,-1)+hr(JSON.stringify([f,p])):f+"("+yd(p)+")",dt.a,p,/@$/.test(f))],a)}l=n.lastIndexOf("(",l-1)}n.length=l+1}else/[~@]/.test(c)&&e[i+1]=="("&&a.unshift([])}s(!0),md.set(e,t=a[0])}return t}function Cd(e,t,n){return t.reduce((a,r,o)=>a+n(r)+e[o+1],e[0])}function vd(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?Cd(e,t,n=>$s(n).trim()):t.filter(Boolean).reduce((n,a)=>n+$s(a),e?$s(e):"")}function $s(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=vd(e[0],e.slice(1)))&&(n+=" "+t);else for(let a in e)e[a]&&(n+=" "+a);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var uE=wd("@"),iE=wd("~");function wd(e){return new Proxy(function(n,...a){return t("",n,a)},{get(n,a){return a in n?n[a]:function(r,...o){return t(a,r,o)}}});function t(n,a,r){return yd(fo(n+e+"("+vd(a,r)+")"))}}function Ys(e,t){return Array.isArray(e)?pd(Cd(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?pd(e):[e]}var C2=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function pd(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],a=[n[0]],r=[];for(;t=C2.exec(e);)t[4]&&(n.shift(),r.shift()),t[3]?(r.unshift(t[3]),n.unshift({}),a.push(r.reduce((o,u)=>({[u]:o}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),a.push(r.reduce((o,u)=>({[u]:o}),n[0]))),n[0][t[1]]=t[2]);return a}function Ad(e,...t){var n;let a=Ys(e,t),r=(a.find(o=>o.label)?.label||"css")+hr(JSON.stringify(a));return n=(o,u)=>o0(a.flatMap(i=>a0(i,o,u,dt.o)),r),n0.set(r,n),r}var sE=new Proxy(function(e,t){return fd("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,a){return fd(t,n,a)}}});function fd(e,t,n){return{toString(){return Ad({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function ne(e,t,n){return[e,Js(t,n)]}function Js(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,a)=>({[e]:t?t(n,a):Qs(n,1)}):n=>e||{[n[1]]:Qs(n,2)}}function Qs(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function ae(e,t,n,a){return[e,v2(t,n,a)]}function v2(e,t,n){let a=typeof t=="string"?(r,o)=>({[t]:n?n(r,o):r._}):t||(({1:r,_:o},u,i)=>({[r||i]:o}));return(r,o)=>{let u=kd(e||r[1]),i=o.theme(u,r.$$)??Hn(r.$$,u,o);if(i!=null)return r._=Qs(r,0,i),a(r,o,u)}}function yt(e,t={},n){return[e,w2(t,n)]}function w2(e={},t){return(n,a)=>{let{section:r=kd(n[0]).replace("-","")+"Color"}=e,[o,u]=A2(n.$$);if(!o)return;let i=a.theme(r,o)||Hn(o,r,a);if(!i||typeof i=="object")return;let{opacityVariable:s=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:c=r.replace("Color","Opacity"),property:l=r,selector:f}=e,p=a.theme(c,u||"DEFAULT")||u&&Hn(u,c,a),m=t||(({_:T})=>{let w=bo(l,T);return f?{[f]:w}:w});n._={value:ea(i,{opacityVariable:s||void 0,opacityValue:p||void 0}),color:T=>ea(i,T),opacityVariable:s||void 0,opacityValue:p||void 0};let g=m(n,a);if(!n.dark){let T=a.d(r,o,i);T&&T!==i&&(n._={value:ea(T,{opacityVariable:s||void 0,opacityValue:p||"1"}),color:w=>ea(T,w),opacityVariable:s||void 0,opacityValue:p||void 0},g={"&":g,[a.v("dark")]:m(n,a)})}return g}}function A2(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function bo(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function Hn(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=br(r0(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function kd(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function br(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",a,r="")=>br(n)+a+br(r)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var lE=Symbol();function yo({presets:e=[],...t}){let n={darkMode:void 0,darkColor:void 0,preflight:t.preflight!==!1&&[],theme:{},variants:He(t.variants),rules:He(t.rules),ignorelist:He(t.ignorelist),hash:void 0,stringify:(a,r)=>a+":"+r,finalize:[]};for(let a of He([...e,{darkMode:t.darkMode,darkColor:t.darkColor,preflight:t.preflight!==!1&&He(t.preflight),theme:t.theme,hash:t.hash,stringify:t.stringify,finalize:t.finalize}])){let{preflight:r,darkMode:o=n.darkMode,darkColor:u=n.darkColor,theme:i,variants:s,rules:c,ignorelist:l,hash:f=n.hash,stringify:p=n.stringify,finalize:m}=typeof a=="function"?a(n):a;n={preflight:n.preflight!==!1&&r!==!1&&[...n.preflight,...He(r)],darkMode:o,darkColor:u,theme:{...n.theme,...i,extend:{...n.theme.extend,...i?.extend}},variants:[...n.variants,...He(s)],rules:[...n.rules,...He(c)],ignorelist:[...n.ignorelist,...He(l)],hash:f,stringify:p,finalize:[...n.finalize,...He(m)]}}return n}function hd(e,t,n,a,r,o){for(let u of t){let i=n.get(u);i||n.set(u,i=a(u));let s=i(e,r,o);if(s)return s}}function k2(e){var t;return Zs(e[0],typeof(t=e[1])=="function"?t:()=>t)}function S2(e){var t,n;return Array.isArray(e)?Zs(e[0],Js(e[1],e[2])):Zs(e,Js(t,n))}function Zs(e,t){return Sd(e,(n,a,r,o)=>{let u=a.exec(n);if(u)return u.$$=n.slice(u[0].length),u.dark=o,t(u,r)})}function Sd(e,t){let n=He(e).map(D2);return(a,r,o)=>{for(let u of n){let i=t(a,u,r,o);if(i)return i}}}function D2(e){return typeof e=="string"?RegExp("^"+e+(e.includes("$")||e.slice(-1)=="-"?"":"$")):e}function L2(e,t){let n=yo(e),a=function({theme:s,darkMode:c,darkColor:l=ho,variants:f,rules:p,hash:m,stringify:g,ignorelist:T,finalize:w}){let b=new Map,S=new Map,D=new Map,N=new Map,_=Sd(T,(x,v)=>v.test(x));f.push(["dark",Array.isArray(c)||c=="class"?`${He(c)[1]||".dark"} &`:typeof c=="string"&&c!="media"?c:"@media (prefers-color-scheme:dark)"]);let y=typeof m=="function"?x=>m(x,hr):m?hr:ld;y!==ld&&w.push(x=>({...x,n:x.n&&y(x.n),d:x.d?.replace(/--(tw(?:-[\w-]+)?)\b/g,(v,C)=>"--"+y(C).replace("#",""))}));let E={theme:function({extend:x={},...v}){let C={},R={get colors(){return M("colors")},theme:M,negative(){return{}},breakpoints(P){let O={};for(let j in P)typeof P[j]=="string"&&(O["screen-"+j]=P[j]);return O}};return M;function M(P,O,j,B){if(P){if({1:P,2:B}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(P)||[,P],/[.[]/.test(P)){let K=[];P.replace(/\[([^\]]+)\]|([^.[]+)/g,(H,V,q=V)=>K.push(q)),P=K.shift(),j=O,O=K.join("-")}let L=C[P]||Object.assign(Object.assign(C[P]={},k(v,P)),k(x,P));if(O==null)return L;O||="DEFAULT";let U=L[O]??O.split("-").reduce((K,H)=>K?.[H],L)??j;return B?ea(U,{opacityValue:r0(B,M)}):U}let A={};for(let L of[...Object.keys(v),...Object.keys(x)])A[L]=M(L);return A}function k(P,O){let j=P[O];return typeof j=="function"&&(j=j(R)),j&&/color|fill|stroke/i.test(O)?function B(A,L=[]){let U={};for(let K in A){let H=A[K],V=[...L,K];U[V.join("-")]=H,K=="DEFAULT"&&(V=L,U[L.join("-")]=H),typeof H=="object"&&Object.assign(U,B(H,V))}return U}(j):j}}(s),e:e0,h:y,s(x,v){return g(x,v,E)},d(x,v,C){return l(x,v,E,C)},v(x){return b.has(x)||b.set(x,hd(x,f,S,k2,E)||"&:"+x),b.get(x)},r(x,v){let C=JSON.stringify([x,v]);return D.has(C)||D.set(C,!_(x,E)&&hd(x,p,N,S2,E,v)),D.get(C)},f(x){return w.reduce((v,C)=>C(v,E),x)}};return E}(n),r=new Map,o=[],u=new Set;t.resume(s=>r.set(s,s),(s,c)=>{t.insert(s,o.length,c),o.push(c),u.add(s)});function i(s){let c=a.f(s),l=Vs(c);if(l&&!u.has(l)){u.add(l);let f=Td(o,s);t.insert(l,f,s),o.splice(f,0,s)}return c.n}return Object.defineProperties(function(s){if(!r.size)for(let l of He(n.preflight))typeof l=="function"&&(l=l(a)),l&&(typeof l=="string"?u0("",dt.b,fo(l),a,dt.b,[],!1,!0):a0(l,{},a,dt.b)).forEach(i);s=""+s;let c=r.get(s);if(!c){let l=new Set;for(let f of Lu(fo(s),a))l.add(f.c).add(i(f));c=[...l].filter(Boolean).join(" "),r.set(s,c).set(c,c)}return c},Object.getOwnPropertyDescriptors({get target(){return t.target},theme:a.theme,config:n,snapshot(){let s=t.snapshot(),c=new Set(u),l=new Map(r),f=[...o];return()=>{s(),u=c,r=l,o=f}},clear(){t.clear(),u=new Set,r=new Map,o=[]},destroy(){this.clear(),t.destroy()}}))}function M2(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function P2(e){let t=new MutationObserver(n);return{observe(r){t.observe(r,{attributeFilter:["class"],subtree:!0,childList:!0}),a(r),n([{target:r,type:""}])},disconnect(){t.disconnect()}};function n(r){for(let{type:o,target:u}of r)if(o[0]=="a")a(u);else for(let i of u.querySelectorAll("[class]"))a(i);t.takeRecords()}function a(r){let o,u=r.getAttribute?.("class");u&&M2(u,o=e(u))&&r.setAttribute("class",o)}}function F2(e=i0,t=typeof document<"u"&&document.documentElement){if(t){let n=P2(e);n.observe(t);let{destroy:a}=e;e.destroy=()=>{n.disconnect(),a.call(e)}}return e}function Dd(e){let t=document.querySelector(e||'style[data-twind=""]');return(!t||t.tagName!="STYLE")&&(t=document.createElement("style"),document.head.prepend(t)),t.dataset.twind="claimed",t}function _2(e){let t=e?.cssRules?e:(e&&typeof e!="string"?e:Dd(e)).sheet;return{target:t,snapshot(){let n=Array.from(t.cssRules,a=>a.cssText);return()=>{this.clear(),n.forEach(this.insert)}},clear(){for(let n=t.cssRules.length;n--;)t.deleteRule(n)},destroy(){t.ownerNode?.remove()},insert(n,a){try{t.insertRule(n,a)}catch{t.insertRule(":root{}",a)}},resume:ho}}function B2(e){let t=e&&typeof e!="string"?e:Dd(e);return{target:t,snapshot(){let n=Array.from(t.childNodes,a=>a.textContent);return()=>{this.clear(),n.forEach(this.insert)}},clear(){t.textContent=""},destroy(){t.remove()},insert(n,a){t.insertBefore(document.createTextNode(n),t.childNodes[a]||null)},resume:ho}}function R2(e){let t=[];return{target:t,snapshot(){let n=[...t];return()=>{t.splice(0,t.length,...n)}},clear(){t.length=0},destroy(){this.clear()},insert(n,a,r){t.splice(a,0,e?`/*!${r.p.toString(36)},${(2*r.o).toString(36)}${r.n?","+r.n:""}*/${n}`:n)},resume:ho}}function Ld(e,t){let n=typeof document>"u"?R2(!t):e?B2():_2();return t||(n.resume=O2),n}function I2(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,t=>t.cssText):He(e)).join("")}function O2(e,t){let n=I2(this.target),a=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(a.test(n)){var r;let o;if(a.lastIndex=0,this.clear(),typeof document<"u")for(let u of document.querySelectorAll("[class]"))e(u.getAttribute("class"));for(;r=a.exec(n),o&&t(n.slice(o.index+o[0].length,r?.index),{p:parseInt(o[1],36),o:parseInt(o[2],36)/2,n:o[3]}),o=r;);}}var i0=new Proxy(ho,{apply(e,t,n){return po(n[0])},get(e,t){let n=po[t];return typeof n=="function"?function(){return n.apply(po,arguments)}:n}});function Md(e={},t=Ld,n){return po?.destroy(),po=F2(L2(e,typeof t=="function"?t():t),n)}function s0(e,t=!0){let n=yo(e);return Md({...n,hash:n.hash??t},()=>Ld(!t))}var cE=function e(t){return new Proxy(function(n,...a){return bd(t,"",n,a)},{get(n,a){return a==="bind"?e:a in n?n[a]:function(r,...o){return bd(t,a,r,o)}}})}();function bd(e,t,n,a){return{toString(){let r=Ys(n,a),o=e0(t+hr(JSON.stringify([t,r])));return(typeof e=="function"?e:i0)(Ad({[`@keyframes ${o}`]:Ys(n,a)})),o}}}h();h();h();var N2=new Map([["align-self","-ms-grid-row-align"],["color-adjust","-webkit-print-color-adjust"],["column-gap","grid-column-gap"],["forced-color-adjust","-ms-high-contrast-adjust"],["gap","grid-gap"],["grid-template-columns","-ms-grid-columns"],["grid-template-rows","-ms-grid-rows"],["justify-self","-ms-grid-column-align"],["margin-inline-end","-webkit-margin-end"],["margin-inline-start","-webkit-margin-start"],["mask-border","-webkit-mask-box-image"],["mask-border-outset","-webkit-mask-box-image-outset"],["mask-border-slice","-webkit-mask-box-image-slice"],["mask-border-source","-webkit-mask-box-image-source"],["mask-border-repeat","-webkit-mask-box-image-repeat"],["mask-border-width","-webkit-mask-box-image-width"],["overflow-wrap","word-wrap"],["padding-inline-end","-webkit-padding-end"],["padding-inline-start","-webkit-padding-start"],["print-color-adjust","color-adjust"],["row-gap","grid-row-gap"],["scroll-margin-bottom","scroll-snap-margin-bottom"],["scroll-margin-left","scroll-snap-margin-left"],["scroll-margin-right","scroll-snap-margin-right"],["scroll-margin-top","scroll-snap-margin-top"],["scroll-margin","scroll-snap-margin"],["text-combine-upright","-ms-text-combine-horizontal"]]);function Pd(e){return N2.get(e)}function Fd(e){var t=/^(?:(text-(?:decoration$|e|or|si)|back(?:ground-cl|d|f)|box-d|mask(?:$|-[ispro]|-cl)|pr|hyphena|flex-d)|(tab-|column(?!-s)|text-align-l)|(ap)|u|hy)/i.exec(e);return t?t[1]?1:t[2]?2:t[3]?3:5:0}function _d(e,t){var n=/^(?:(pos)|(cli)|(background-i)|(flex(?:$|-b)|(?:max-|min-)?(?:block-s|inl|he|widt))|dis)/i.exec(e);return n?n[1]?/^sti/i.test(t)?1:0:n[2]?/^pat/i.test(t)?1:0:n[3]?/^image-/i.test(t)?1:0:n[4]?t[3]==="-"?2:0:/^(?:inline-)?grid$/i.test(t)?4:0:0}var U2=[["-webkit-",1],["-moz-",2],["-ms-",4]];function Pu(){return({stringify:e})=>({stringify(t,n,a){let r="",o=Pd(t);o&&(r+=e(o,n,a)+";");let u=Fd(t),i=_d(t,n);for(let s of U2)u&s[1]&&(r+=e(s[0]+t,n,a)+";"),i&s[1]&&(r+=e(t,s[0]+n,a)+";");return r+e(t,n,a)}})}h();h();var c0={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...rn(4,"rem",4,.5,.5),...rn(12,"rem",4,5),14:"3.5rem",...rn(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Re("blur"),backdropBrightness:Re("brightness"),backdropContrast:Re("contrast"),backdropGrayscale:Re("grayscale"),backdropHueRotate:Re("hueRotate"),backdropInvert:Re("invert"),backdropOpacity:Re("opacity"),backdropSaturate:Re("saturate"),backdropSepia:Re("sepia"),backgroundColor:Re("colors"),backgroundImage:{none:"none"},backgroundOpacity:Re("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...rn(200,"",100,0,50),...rn(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Re("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Re("spacing"),borderWidth:{DEFAULT:"1px",...gn(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Re("colors"),caretColor:Re("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...rn(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Re("borderColor"),divideOpacity:Re("borderOpacity"),divideWidth:Re("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...xo(2,6),...xo(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Re("spacing"),gradientColorStops:Re("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...xo(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...xo(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...rn(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...rn(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Re("spacing"),placeholderColor:Re("colors"),placeholderOpacity:Re("opacity"),outlineColor:Re("colors"),outlineOffset:gn(8,"px"),outlineWidth:gn(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Re("colors"),ringOffsetWidth:gn(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...gn(8,"px")},rotate:{...gn(2,"deg"),...gn(12,"deg",3),...gn(180,"deg",45)},saturate:rn(200,"",100,0,50),scale:{...rn(150,"",100,0,50),...rn(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Re("spacing"),scrollPadding:Re("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...gn(2,"deg"),...gn(12,"deg",3)},space:Re("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:rn(2),textColor:Re("colors"),textDecorationColor:Re("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...gn(8,"px")},textUnderlineOffset:{auto:"auto",...gn(8,"px")},textIndent:Re("spacing"),textOpacity:Re("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Re("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...xo(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...rn(50,"",1,0,10),auto:"auto"}};function xo(e,t){let n={};do for(var a=1;at(e)}var j2={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${c0.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${c0.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},z2=[ne("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:Hn(`[${t}]`,"",n)}}})),ne("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),ae("aspect-","aspectRatio"),ne("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:a,padding:r}=t("container"),o={width:"100%",marginRight:a&&"auto",marginLeft:a&&"auto",...u("xs")};for(let i in n){let s=n[i];typeof s=="string"&&(o[Mu(s)]={"&":{maxWidth:s,...u(i)}})}return o;function u(i){let s=r&&(typeof r=="string"?r:r[i]||r.DEFAULT);if(s)return{paddingRight:s,paddingLeft:s}}}),ae("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),ne("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),ne("box-(border|content)","boxSizing",({1:e})=>e+"-box"),ne("hidden",{display:"none"}),ne("table-(auto|fixed)","tableLayout"),ne(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",ne("isolate","isolation"),ne("object-(contain|cover|fill|none|scale-down)","objectFit"),ae("object-","objectPosition"),ne("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",Fu),ne("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),ne("(static|fixed|absolute|relative|sticky)","position"),ae("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),ae("-?(top|bottom|left|right)(?:$|-)","inset"),ne("(visible|collapse)","visibility"),ne("invisible",{visibility:"hidden"}),ae("-?z-","zIndex"),ne("flex-((row|col)(-reverse)?)","flexDirection",Bd),ne("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),ae("(flex-(?:grow|shrink))(?:$|-)"),ae("(flex)-"),ae("grow(?:$|-)","flexGrow"),ae("shrink(?:$|-)","flexShrink"),ae("basis-","flexBasis"),ae("-?(order)-"),"-?(order)-(\\d+)",ae("grid-cols-","gridTemplateColumns"),ne("grid-cols-(\\d+)","gridTemplateColumns",Nd),ae("col-","gridColumn"),ne("col-(span)-(\\d+)","gridColumn",Od),ae("col-start-","gridColumnStart"),ne("col-start-(auto|\\d+)","gridColumnStart"),ae("col-end-","gridColumnEnd"),ne("col-end-(auto|\\d+)","gridColumnEnd"),ae("grid-rows-","gridTemplateRows"),ne("grid-rows-(\\d+)","gridTemplateRows",Nd),ae("row-","gridRow"),ne("row-(span)-(\\d+)","gridRow",Od),ae("row-start-","gridRowStart"),ne("row-start-(auto|\\d+)","gridRowStart"),ae("row-end-","gridRowEnd"),ne("row-end-(auto|\\d+)","gridRowEnd"),ne("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>Fu(Bd(e))),ne("grid-flow-(dense)","gridAutoFlow"),ae("auto-cols-","gridAutoColumns"),ae("auto-rows-","gridAutoRows"),ae("gap-x(?:$|-)","gap","columnGap"),ae("gap-y(?:$|-)","gap","rowGap"),ae("gap(?:$|-)","gap"),"(justify-(?:items|self))-",ne("justify-","justifyContent",Rd),ne("(content|items|self)-",e=>({["align-"+e[1]]:Rd(e)})),ne("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),ae("p([xytrbl])?(?:$|-)","padding",yr("padding")),ae("-?m([xytrbl])?(?:$|-)","margin",yr("margin")),ae("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),ne("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),ae("w-","width"),ae("min-w-","minWidth"),ae("max-w-","maxWidth"),ae("h-","height"),ae("min-h-","minHeight"),ae("max-h-","maxHeight"),ae("font-","fontWeight"),ae("font-","fontFamily",({_:e})=>typeof(e=He(e))[1]=="string"?{fontFamily:kn(e)}:{fontFamily:kn(e[0]),...e[1]}),ne("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),ne("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),ne("italic","fontStyle"),ne("not-italic",{fontStyle:"normal"}),ne("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...ba({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),ae("tracking-","letterSpacing"),ae("leading-","lineHeight"),ne("list-(inside|outside)","listStylePosition"),ae("list-","listStyleType"),ne("list-","listStyleType"),ae("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),yt("placeholder-",{property:"color",selector:"&::placeholder"}),ne("text-(left|center|right|justify|start|end)","textAlign"),ne("text-(ellipsis|clip)","textOverflow"),ae("text-opacity-","textOpacity","--tw-text-opacity"),yt("text-",{property:"color"}),ae("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),ae("indent-","textIndent"),ne("(overline|underline|line-through)","textDecorationLine"),ne("no-underline",{textDecorationLine:"none"}),ae("underline-offset-","textUnderlineOffset"),yt("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),ae("decoration-","textDecorationThickness"),ne("decoration-","textDecorationStyle"),ne("(uppercase|lowercase|capitalize)","textTransform"),ne("normal-case",{textTransform:"none"}),ne("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),ne("align-","verticalAlign"),ne("whitespace-","whiteSpace"),ne("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),ne("break-words",{overflowWrap:"break-word"}),ne("break-all",{wordBreak:"break-all"}),ne("break-keep",{wordBreak:"keep-all"}),yt("caret-",{opacityVariable:!1,opacitySection:"opacity"}),yt("accent-",{opacityVariable:!1,opacitySection:"opacity"}),ne("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${qa(e," ")},var(--tw-gradient-stops))`),yt("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),yt("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),yt("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),ne("bg-(fixed|local|scroll)","backgroundAttachment"),ne("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),ne(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),ne("bg-blend-","backgroundBlendMode"),ne("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),ae("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),yt("bg-",{section:"backgroundColor"}),ae("bg-","backgroundImage"),ae("bg-","backgroundPosition"),ne("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",Fu),ae("bg-","backgroundSize"),ae("rounded(?:$|-)","borderRadius"),ae("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${qa(n[0])}-radius`]:t,[`border-${qa(n[1])}-radius`]:t}}),ne("border-(collapse|separate)","borderCollapse"),ae("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),ne("border-(solid|dashed|dotted|double|none)","borderStyle"),ae("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...ba({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),yt("border-([xytrbl])-",{section:"borderColor"},yr("border","Color")),yt("border-"),ae("border-([xytrbl])(?:$|-)","borderWidth",yr("border","Width")),ae("border(?:$|-)","borderWidth"),ae("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),ne("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),ne("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),ae("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${qa(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${qa(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),yt("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),ae("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),yt("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),ae("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),ne("ring-inset",{"--tw-ring-inset":"inset"}),yt("ring-",{property:"--tw-ring-color"}),ae("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...ba({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":ea(t("ringOffsetColor","","#fff")),"--tw-ring-color":ea(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),yt("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),ae("shadow(?:$|-)","boxShadow",({_:e})=>({...ba({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":kn(e),"--tw-shadow-colored":kn(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),ae("(opacity)-"),ne("mix-blend-","mixBlendMode"),...Id(),...Id("backdrop-"),ae("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:kn(e),transitionTimingFunction:e._=="none"?void 0:kn(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:kn(t("transitionDuration",""))})),ae("duration(?:$|-)","transitionDuration","transitionDuration",kn),ae("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",kn),ae("delay(?:$|-)","transitionDelay","transitionDelay",kn),ae("animate(?:$|-)","animation",(e,{theme:t,h:n,e:a})=>{let r=kn(e),o=r.split(" "),u=t("keyframes",o[0]);return u?{["@keyframes "+(o[0]=a(n(o[0])))]:u,animation:o.join(" ")}:{animation:r}}),"(transform)-(none)",ne("transform",d0),ne("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":Ud(e=="gpu")})),ae("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...d0()})),ae("-?(rotate)-","rotate",l0),ae("-?(translate-[xy])-","translate",l0),ae("-?(skew-[xy])-","skew",l0),ne("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",Fu),"(appearance)-",ae("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",ae("(cursor)-"),"(cursor)-",ne("snap-(none)","scroll-snap-type"),ne("snap-(x|y|both)",({1:e})=>({...ba({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),ne("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),ne("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),ne("snap-(normal|always)","scroll-snap-stop"),ne("scroll-(auto|smooth)","scroll-behavior"),ae("scroll-p([xytrbl])?(?:$|-)","padding",yr("scroll-padding")),ae("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",yr("scroll-margin")),ne("touch-(auto|none|manipulation)","touch-action"),ne("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...ba({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),ne("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),ne("outline",{outlineStyle:"solid"}),ne("outline-(dashed|dotted|double)","outlineStyle"),ae("-?(outline-offset)-"),yt("outline-",{opacityVariable:!1,opacitySection:"opacity"}),ae("outline-","outlineWidth"),"(pointer-events)-",ae("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],ne("select-(none|text|all|auto)","userSelect"),yt("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),yt("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),ae("stroke-","strokeWidth"),ne("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),ne("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function Fu(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function Bd(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function qa(e,t="-"){let n=[];for(let a of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[a]);return n.join(t)}function kn(e){return e&&""+(e._||e)}function Rd({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function yr(e,t=""){return({1:n,_:a})=>{let r={x:"lr",y:"tb"}[n]||n+n;return r?{...bo(e+"-"+qa(r[0])+t,a),...bo(e+"-"+qa(r[1])+t,a)}:bo(e+t,a)}}function Id(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let a of t)n[`--tw-${e}${a}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...ba(n),[`${e}filter`]:t.map(a=>`var(--tw-${e}${a})`).join(" ")},[`(${e}filter)-(none)`,ne(`${e}filter`,n),...t.map(a=>ae(`${a[0]=="h"?"-?":""}(${e}${a})(?:$|-)`,a,({1:r,_:o})=>({[`--tw-${r}`]:He(o).map(u=>`${a}(${u})`).join(" "),...n})))]}function l0({1:e,_:t}){return{["--tw-"+e]:t,...d0()}}function d0(){return{...ba({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":Ud()}),transform:"var(--tw-transform)"}}function Ud(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function Od({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function Nd({1:e}){return`repeat(${e},minmax(0,1fr))`}function ba(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}var H2=[["sticky","@supports ((position: -webkit-sticky) or (position:sticky))"],["motion-reduce","@media (prefers-reduced-motion:reduce)"],["motion-safe","@media (prefers-reduced-motion:no-preference)"],["print","@media print"],["(portrait|landscape)",({1:e})=>`@media (orientation:${e})`],["contrast-(more|less)",({1:e})=>`@media (prefers-contrast:${e})`],["(first-(letter|line)|placeholder|backdrop|before|after)",({1:e})=>`&::${e}`],["(marker|selection)",({1:e})=>`& *::${e},&::${e}`],["file","&::file-selector-button"],["(first|last|only)",({1:e})=>`&:${e}-child`],["even","&:nth-child(2n)"],["odd","&:nth-child(odd)"],["open","&[open]"],["(aria|data)-",({1:e,$$:t},n)=>t&&`&[${e}-${n.theme(e,t)||Hn(t,"",n)||`${t}="true"`}]`],["((group|peer)(~[^-[]+)?)(-\\[(.+)]|[-[].+?)(\\/.+)?",({2:e,3:t="",4:n,5:a="",6:r=t},{e:o,h:u,v:i})=>{let s=br(a)||(n[0]=="["?n:i(n.slice(1)));return`${(s.includes("&")?s:"&"+s).replace(/&/g,`:merge(.${o(u(e+r))})`)}${e[0]=="p"?"~":" "}&`}],["(ltr|rtl)",({1:e})=>`[dir="${e}"] &`],["supports-",({$$:e},t)=>{if(e&&=t.theme("supports",e)||Hn(e,"",t),e)return e.includes(":")||(e+=":var(--tw)"),/^\w*\s*\(/.test(e)||(e=`(${e})`),`@supports ${e.replace(/\b(and|or|not)\b/g," $1 ").trim()}`}],["max-",({$$:e},t)=>{if(e&&=t.theme("screens",e)||Hn(e,"",t),typeof e=="string")return`@media not all and (min-width:${e})`}],["min-",({$$:e},t)=>(e&&=Hn(e,"",t))&&`@media (min-width:${e})`],[/^\[(.+)]$/,({1:e})=>/[&@]/.test(e)&&br(e).replace(/[}]+$/,"").split("{")]];function q2({colors:e,disablePreflight:t}={}){return{preflight:t?void 0:j2,theme:{...c0,colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",...e}},variants:H2,rules:z2,finalize(n){return n.n&&n.d&&n.r.some(a=>/^&::(before|after)$/.test(a))&&!/(^|;)content:/.test(n.d)?{...n,d:"content:var(--tw-content);"+n.d}:n}}}var W2={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},K2={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},$2={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},G2={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},V2={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},Y2={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},J2={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},Q2={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},Z2={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},X2={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},e1={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},t1={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},n1={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},a1={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},r1={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},o1={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},u1={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},i1={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},s1={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},l1={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},c1={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},d1={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},g1={__proto__:null,slate:W2,gray:K2,zinc:$2,neutral:G2,stone:V2,red:Y2,orange:J2,amber:Q2,yellow:Z2,lime:X2,green:e1,emerald:t1,teal:n1,cyan:a1,sky:r1,blue:o1,indigo:u1,violet:i1,purple:s1,fuchsia:l1,pink:c1,rose:d1};function _u({disablePreflight:e}={}){return q2({colors:g1,disablePreflight:e})}h();h();var Bu=globalThis||(typeof window<"u"?window:self),m1=Object.create,m0=Object.defineProperty,p1=Object.getOwnPropertyDescriptor,f1=Object.getOwnPropertyNames,h1=Object.getPrototypeOf,b1=Object.prototype.hasOwnProperty,y1=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),x1=(e,t)=>{for(var n in t)m0(e,n,{get:t[n],enumerable:!0})},g0=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of f1(t))!b1.call(e,r)&&r!==n&&m0(e,r,{get:()=>t[r],enumerable:!(a=p1(t,r))||a.enumerable});return e},T1=(e,t,n)=>(g0(e,t,"default"),n&&g0(n,t,"default")),zd=(e,t,n)=>(n=e!=null?m1(h1(e)):{},g0(t||!e||!e.__esModule?m0(n,"default",{value:e,enumerable:!0}):n,e)),Hd=y1((e,t)=>{(function(n,a){typeof define=="function"&&define.amd?define([],a):typeof e<"u"?a():(a(),n.FileSaver={})})(e,function(){"use strict";function n(c,l){return typeof l>"u"?l={autoBom:!1}:typeof l!="object"&&(l={autoBom:!l}),l.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function a(c,l,f){var p=new XMLHttpRequest;p.open("GET",c),p.responseType="blob",p.onload=function(){s(p.response,l,f)},p.onerror=function(){},p.send()}function r(c){var l=new XMLHttpRequest;l.open("HEAD",c,!1);try{l.send()}catch{}return 200<=l.status&&299>=l.status}function o(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var l=document.createEvent("MouseEvents");l.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(l)}}var u=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Bu=="object"&&Bu.global===Bu?Bu:void 0,i=u.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=u.saveAs||(typeof window!="object"||window!==u?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(c,l,f){var p=u.URL||u.webkitURL,m=document.createElement("a");l=l||c.name||"download",m.download=l,m.rel="noopener",typeof c=="string"?(m.href=c,m.origin===location.origin?o(m):r(m.href)?a(c,l,f):o(m,m.target="_blank")):(m.href=p.createObjectURL(c),setTimeout(function(){p.revokeObjectURL(m.href)},4e4),setTimeout(function(){o(m)},0))}:"msSaveOrOpenBlob"in navigator?function(c,l,f){if(l=l||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(n(c,f),l);else if(r(c))a(c,l,f);else{var p=document.createElement("a");p.href=c,p.target="_blank",setTimeout(function(){o(p)})}}:function(c,l,f,p){if(p=p||open("","_blank"),p&&(p.document.title=p.document.body.innerText="downloading..."),typeof c=="string")return a(c,l,f);var m=c.type==="application/octet-stream",g=/constructor/i.test(u.HTMLElement)||u.safari,T=/CriOS\/[\d]+/.test(navigator.userAgent);if((T||m&&g||i)&&typeof FileReader<"u"){var w=new FileReader;w.onloadend=function(){var D=w.result;D=T?D:D.replace(/^data:[^;]*;/,"data:attachment/file;"),p?p.location.href=D:location=D,p=null},w.readAsDataURL(c)}else{var b=u.URL||u.webkitURL,S=b.createObjectURL(c);p?p.location=S:location.href=S,p=null,setTimeout(function(){b.revokeObjectURL(S)},4e4)}});u.saveAs=s.saveAs=s,typeof t<"u"&&(t.exports=s)})}),qd={};x1(qd,{default:()=>To});var E1=zd(Hd());T1(qd,zd(Hd()));var{default:jd,...C1}=E1,To=jd!==void 0?jd:C1;h();h();h();h();h();h();h();function xr(){let e,t="pending",n=new Promise((a,r)=>{e={async resolve(o){await o,t="fulfilled",a(o)},reject(o){t="rejected",r(o)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}h();var p0=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function Ru(e,t){let n=xr(),a=setTimeout(()=>n.reject(new p0),t);return Promise.race([e,n]).finally(()=>clearTimeout(a))}h();h();function qn(e,t={}){let{signal:n,persistent:a}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((r,o)=>{let u=()=>{clearTimeout(s),o(new DOMException("Delay was aborted.","AbortError"))},s=setTimeout(()=>{n?.removeEventListener("abort",u),r()},e);if(n?.addEventListener("abort",u,{once:!0}),a===!1)try{Deno.unrefTimer(s)}catch(c){if(!(c instanceof ReferenceError))throw c}})}h();var Wd=class{#e=0;#t=[];#n=[];#a=xr();add(t){++this.#e,this.#r(t[Symbol.asyncIterator]())}async#r(t){try{let{value:n,done:a}=await t.next();a?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#a.resolve()}async*iterate(){for(;this.#e>0;){await this.#a;for(let t=0;tY1,bgBlue:()=>X1,bgBrightBlack:()=>a6,bgBrightBlue:()=>i6,bgBrightCyan:()=>l6,bgBrightGreen:()=>o6,bgBrightMagenta:()=>s6,bgBrightRed:()=>r6,bgBrightWhite:()=>c6,bgBrightYellow:()=>u6,bgCyan:()=>t6,bgGreen:()=>Q1,bgMagenta:()=>e6,bgRed:()=>J1,bgRgb24:()=>p6,bgRgb8:()=>g6,bgWhite:()=>n6,bgYellow:()=>Z1,black:()=>_1,blue:()=>O1,bold:()=>k1,brightBlack:()=>Gd,brightBlue:()=>K1,brightCyan:()=>G1,brightGreen:()=>q1,brightMagenta:()=>$1,brightRed:()=>H1,brightWhite:()=>V1,brightYellow:()=>W1,cyan:()=>U1,dim:()=>S1,getColorEnabled:()=>w1,gray:()=>z1,green:()=>R1,hidden:()=>P1,inverse:()=>M1,italic:()=>D1,magenta:()=>N1,red:()=>B1,reset:()=>A1,rgb24:()=>m6,rgb8:()=>d6,setColorEnabled:()=>v1,strikethrough:()=>F1,stripColor:()=>h6,underline:()=>L1,white:()=>j1,yellow:()=>I1});h();var{Deno:Kd}=globalThis,$d=typeof Kd?.noColor=="boolean"?Kd.noColor:!0,f0=!$d;function v1(e){$d||(f0=e)}function w1(){return f0}function we(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function Ae(e,t){return f0?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function A1(e){return Ae(e,we([0],0))}function k1(e){return Ae(e,we([1],22))}function S1(e){return Ae(e,we([2],22))}function D1(e){return Ae(e,we([3],23))}function L1(e){return Ae(e,we([4],24))}function M1(e){return Ae(e,we([7],27))}function P1(e){return Ae(e,we([8],28))}function F1(e){return Ae(e,we([9],29))}function _1(e){return Ae(e,we([30],39))}function B1(e){return Ae(e,we([31],39))}function R1(e){return Ae(e,we([32],39))}function I1(e){return Ae(e,we([33],39))}function O1(e){return Ae(e,we([34],39))}function N1(e){return Ae(e,we([35],39))}function U1(e){return Ae(e,we([36],39))}function j1(e){return Ae(e,we([37],39))}function z1(e){return Gd(e)}function Gd(e){return Ae(e,we([90],39))}function H1(e){return Ae(e,we([91],39))}function q1(e){return Ae(e,we([92],39))}function W1(e){return Ae(e,we([93],39))}function K1(e){return Ae(e,we([94],39))}function $1(e){return Ae(e,we([95],39))}function G1(e){return Ae(e,we([96],39))}function V1(e){return Ae(e,we([97],39))}function Y1(e){return Ae(e,we([40],49))}function J1(e){return Ae(e,we([41],49))}function Q1(e){return Ae(e,we([42],49))}function Z1(e){return Ae(e,we([43],49))}function X1(e){return Ae(e,we([44],49))}function e6(e){return Ae(e,we([45],49))}function t6(e){return Ae(e,we([46],49))}function n6(e){return Ae(e,we([47],49))}function a6(e){return Ae(e,we([100],49))}function r6(e){return Ae(e,we([101],49))}function o6(e){return Ae(e,we([102],49))}function u6(e){return Ae(e,we([103],49))}function i6(e){return Ae(e,we([104],49))}function s6(e){return Ae(e,we([105],49))}function l6(e){return Ae(e,we([106],49))}function c6(e){return Ae(e,we([107],49))}function ya(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function d6(e,t){return Ae(e,we([38,5,ya(t)],39))}function g6(e,t){return Ae(e,we([48,5,ya(t)],49))}function m6(e,t){return typeof t=="number"?Ae(e,we([38,2,t>>16&255,t>>8&255,t&255],39)):Ae(e,we([38,2,ya(t.r),ya(t.g),ya(t.b)],39))}function p6(e,t){return typeof t=="number"?Ae(e,we([48,2,t>>16&255,t>>8&255,t&255],49)):Ae(e,we([48,2,ya(t.r),ya(t.g),ya(t.b)],49))}var f6=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function h6(e){return e.replace(f6,"")}h();h();var h0=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},b6={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function b0(e,t){let n={...b6,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let a=n.minTimeout,r;for(let o=0;osetTimeout(i,a)),a*=n.multiplier,a=Math.max(a,n.minTimeout),n.maxTimeout>=0&&(a=Math.min(a,n.maxTimeout)),r=u}throw new h0(r,n.maxAttempts)}h();var ta=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function y0(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",a,r=t.length;for(a=2;a>2],n+=ta[(t[a-2]&3)<<4|t[a-1]>>4],n+=ta[(t[a-1]&15)<<2|t[a]>>6],n+=ta[t[a]&63];return a===r+1&&(n+=ta[t[a-2]>>2],n+=ta[(t[a-2]&3)<<4],n+="=="),a===r&&(n+=ta[t[a-2]>>2],n+=ta[(t[a-2]&3)<<4|t[a-1]>>4],n+=ta[(t[a-1]&15)<<2],n+="="),n}h();h();var BC=Number.isNaN||function(e){return typeof e=="number"&&e!==e};h();h();var Iu=globalThis||(typeof window<"u"?window:self),x6=Object.create,T0=Object.defineProperty,T6=Object.getOwnPropertyDescriptor,E6=Object.getOwnPropertyNames,C6=Object.getPrototypeOf,v6=Object.prototype.hasOwnProperty,w6=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),A6=(e,t)=>{for(var n in t)T0(e,n,{get:t[n],enumerable:!0})},x0=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of E6(t))!v6.call(e,r)&&r!==n&&T0(e,r,{get:()=>t[r],enumerable:!(a=T6(t,r))||a.enumerable});return e},k6=(e,t,n)=>(x0(e,t,"default"),n&&x0(n,t,"default")),Yd=(e,t,n)=>(n=e!=null?x6(C6(e)):{},x0(t||!e||!e.__esModule?T0(n,"default",{value:e,enumerable:!0}):n,e)),Jd=w6((e,t)=>{var n="Expected a function",a=NaN,r="[object Symbol]",o=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,l=typeof Iu=="object"&&Iu&&Iu.Object===Object&&Iu,f=typeof self=="object"&&self&&self.Object===Object&&self,p=l||f||Function("return this")(),m=Object.prototype,g=m.toString,T=Math.max,w=Math.min,b=function(){return p.Date.now()};function S(x,v,C){var R,M,k,P,O,j,B=0,A=!1,L=!1,U=!0;if(typeof x!="function")throw new TypeError(n);v=E(v)||0,N(C)&&(A=!!C.leading,L="maxWait"in C,k=L?T(E(C.maxWait)||0,v):k,U="trailing"in C?!!C.trailing:U);function K(ie){var Y=R,ce=M;return R=M=void 0,B=ie,P=x.apply(ce,Y),P}function H(ie){return B=ie,O=setTimeout(oe,v),A?K(ie):P}function V(ie){var Y=ie-j,ce=ie-B,fe=v-Y;return L?w(fe,k-ce):fe}function q(ie){var Y=ie-j,ce=ie-B;return j===void 0||Y>=v||Y<0||L&&ce>=k}function oe(){var ie=b();if(q(ie))return Z(ie);O=setTimeout(oe,V(ie))}function Z(ie){return O=void 0,U&&R?K(ie):(R=M=void 0,P)}function J(){O!==void 0&&clearTimeout(O),B=0,R=j=M=O=void 0}function ye(){return O===void 0?P:Z(b())}function xe(){var ie=b(),Y=q(ie);if(R=arguments,M=this,j=ie,Y){if(O===void 0)return H(j);if(L)return O=setTimeout(oe,v),K(j)}return O===void 0&&(O=setTimeout(oe,v)),P}return xe.cancel=J,xe.flush=ye,xe}function D(x,v,C){var R=!0,M=!0;if(typeof x!="function")throw new TypeError(n);return N(C)&&(R="leading"in C?!!C.leading:R,M="trailing"in C?!!C.trailing:M),S(x,v,{leading:R,maxWait:v,trailing:M})}function N(x){var v=typeof x;return!!x&&(v=="object"||v=="function")}function _(x){return!!x&&typeof x=="object"}function y(x){return typeof x=="symbol"||_(x)&&g.call(x)==r}function E(x){if(typeof x=="number")return x;if(y(x))return a;if(N(x)){var v=typeof x.valueOf=="function"?x.valueOf():x;x=N(v)?v+"":v}if(typeof x!="string")return x===0?x:+x;x=x.replace(o,"");var C=i.test(x);return C||s.test(x)?c(x.slice(2),C?2:8):u.test(x)?a:+x}t.exports=D}),Qd={};A6(Qd,{default:()=>Ft});var S6=Yd(Jd());k6(Qd,Yd(Jd()));var{default:Vd,...D6}=S6,Ft=Vd!==void 0?Vd:D6;h();h();var L6=Object.create,C0=Object.defineProperty,M6=Object.getOwnPropertyDescriptor,P6=Object.getOwnPropertyNames,F6=Object.getPrototypeOf,_6=Object.prototype.hasOwnProperty,B6=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),R6=(e,t)=>{for(var n in t)C0(e,n,{get:t[n],enumerable:!0})},E0=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of P6(t))!_6.call(e,r)&&r!==n&&C0(e,r,{get:()=>t[r],enumerable:!(a=M6(t,r))||a.enumerable});return e},I6=(e,t,n)=>(E0(e,t,"default"),n&&E0(n,t,"default")),Xd=(e,t,n)=>(n=e!=null?L6(F6(e)):{},E0(t||!e||!e.__esModule?C0(n,"default",{value:e,enumerable:!0}):n,e)),eg=B6((e,t)=>{(function(n,a){typeof e=="object"&&typeof t=="object"?t.exports=a():typeof define=="function"&&define.amd?define([],a):typeof e=="object"?e.notie=a():n.notie=a()})(e,function(){return function(n){function a(o){if(r[o])return r[o].exports;var u=r[o]={i:o,l:!1,exports:{}};return n[o].call(u.exports,u,u.exports,a),u.l=!0,u.exports}var r={};return a.m=n,a.c=r,a.i=function(o){return o},a.d=function(o,u,i){a.o(o,u)||Object.defineProperty(o,u,{configurable:!1,enumerable:!0,get:i})},a.n=function(o){var u=o&&o.__esModule?function(){return o.default}:function(){return o};return a.d(u,"a",u),u},a.o=function(o,u){return Object.prototype.hasOwnProperty.call(o,u)},a.p="",a(a.s=1)}([function(n,a){n.exports=function(r){return r.webpackPolyfill||(r.deprecate=function(){},r.paths=[],r.children||(r.children=[]),Object.defineProperty(r,"loaded",{enumerable:!0,get:function(){return r.l}}),Object.defineProperty(r,"id",{enumerable:!0,get:function(){return r.i}}),r.webpackPolyfill=1),r}},function(n,a,r){"use strict";(function(o){var u,i,s,c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l};(function(l,f){c(a)==="object"&&c(o)==="object"?o.exports=f():(i=[],u=f,s=typeof u=="function"?u.apply(a,i):u,s!==void 0&&(o.exports=s))})(void 0,function(){return function(l){function f(m){if(p[m])return p[m].exports;var g=p[m]={i:m,l:!1,exports:{}};return l[m].call(g.exports,g,g.exports,f),g.l=!0,g.exports}var p={};return f.m=l,f.c=p,f.i=function(m){return m},f.d=function(m,g,T){f.o(m,g)||Object.defineProperty(m,g,{configurable:!1,enumerable:!0,get:T})},f.n=function(m){var g=m&&m.__esModule?function(){return m.default}:function(){return m};return f.d(g,"a",g),g},f.o=function(m,g){return Object.prototype.hasOwnProperty.call(m,g)},f.p="",f(f.s=0)}([function(l,f,p){function m(H,V){var q={};for(var oe in H)V.indexOf(oe)>=0||Object.prototype.hasOwnProperty.call(H,oe)&&(q[oe]=H[oe]);return q}Object.defineProperty(f,"__esModule",{value:!0});var g=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(H){return typeof H>"u"?"undefined":c(H)}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H>"u"?"undefined":c(H)},T=Object.assign||function(H){for(var V=1;V'+oe+"",ce.onclick=function(){return M(fe,Y)},ce.listener=function(ge){(v(ge)||C(ge))&&O()},R(ce,Y),J&&J<1&&(J=1),!xe&&J&&N(J).then(function(){return M(fe,Y)})},B=f.force=function(H,V){var q=H.type,oe=q===void 0?5:q,Z=H.text,J=H.buttonText,ye=J===void 0?"OK":J,xe=H.callback,ie=H.position,Y=ie===void 0?b.positions.force||Y.top:ie;_(),O();var ce=document.createElement("div"),fe=y();ce.id=fe;var ge=document.createElement("div");ge.classList.add(b.classes.textbox),ge.classList.add(b.classes.backgroundInfo),ge.innerHTML='
'+Z+"
";var Ee=document.createElement("div");Ee.classList.add(b.classes.button),Ee.classList.add(E[oe]),Ee.innerHTML=ye,Ee.onclick=function(){M(fe,Y),P(),xe?xe():V&&V()},ce.appendChild(ge),ce.appendChild(Ee),ce.listener=function(Le){v(Le)&&Ee.click()},R(ce,Y),k()},A=f.confirm=function(H,V,q){var oe=H.text,Z=H.submitText,J=Z===void 0?"Yes":Z,ye=H.cancelText,xe=ye===void 0?"Cancel":ye,ie=H.submitCallback,Y=H.cancelCallback,ce=H.position,fe=ce===void 0?b.positions.confirm||fe.top:ce;_(),O();var ge=document.createElement("div"),Ee=y();ge.id=Ee;var Le=document.createElement("div");Le.classList.add(b.classes.textbox),Le.classList.add(b.classes.backgroundInfo),Le.innerHTML='
'+oe+"
";var ve=document.createElement("div");ve.classList.add(b.classes.button),ve.classList.add(b.classes.elementHalf),ve.classList.add(b.classes.backgroundSuccess),ve.innerHTML=J,ve.onclick=function(){M(Ee,fe),P(),ie?ie():V&&V()};var ee=document.createElement("div");ee.classList.add(b.classes.button),ee.classList.add(b.classes.elementHalf),ee.classList.add(b.classes.backgroundError),ee.innerHTML=xe,ee.onclick=function(){M(Ee,fe),P(),Y?Y():q&&q()},ge.appendChild(Le),ge.appendChild(ve),ge.appendChild(ee),ge.listener=function(De){v(De)?ve.click():C(De)&&ee.click()},R(ge,fe),k(ge,fe)},L=function(H,V,q){var oe=H.text,Z=H.submitText,J=Z===void 0?"Submit":Z,ye=H.cancelText,xe=ye===void 0?"Cancel":ye,ie=H.submitCallback,Y=H.cancelCallback,ce=H.position,fe=ce===void 0?b.positions.input||fe.top:ce,ge=m(H,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);_(),O();var Ee=document.createElement("div"),Le=y();Ee.id=Le;var ve=document.createElement("div");ve.classList.add(b.classes.textbox),ve.classList.add(b.classes.backgroundInfo),ve.innerHTML='
'+oe+"
";var ee=document.createElement("input");ee.classList.add(b.classes.inputField),ee.setAttribute("autocapitalize",ge.autocapitalize||"none"),ee.setAttribute("autocomplete",ge.autocomplete||"off"),ee.setAttribute("autocorrect",ge.autocorrect||"off"),ee.setAttribute("autofocus",ge.autofocus||"true"),ee.setAttribute("inputmode",ge.inputmode||"verbatim"),ee.setAttribute("max",ge.max||""),ee.setAttribute("maxlength",ge.maxlength||""),ee.setAttribute("min",ge.min||""),ee.setAttribute("minlength",ge.minlength||""),ee.setAttribute("placeholder",ge.placeholder||""),ee.setAttribute("spellcheck",ge.spellcheck||"default"),ee.setAttribute("step",ge.step||"any"),ee.setAttribute("type",ge.type||"text"),ee.value=ge.value||"",ge.allowed&&(ee.oninput=function(){var je=void 0;if(Array.isArray(ge.allowed)){for(var We="",Et=ge.allowed,Vt=0;Vt'+q+"",Y.appendChild(fe),ye.forEach(function(Ee,Le){var ve=Ee.type,ee=ve===void 0?1:ve,De=Ee.text,_e=Ee.handler,je=document.createElement("div");je.classList.add(E[ee]),je.classList.add(b.classes.button),je.classList.add(b.classes.selectChoice);var We=ye[Le+1];We&&!We.type&&(We.type=1),We&&We.type===ee&&je.classList.add(b.classes.selectChoiceRepeated),je.innerHTML=De,je.onclick=function(){M(ce,ie),P(),_e()},Y.appendChild(je)});var ge=document.createElement("div");ge.classList.add(b.classes.backgroundNeutral),ge.classList.add(b.classes.button),ge.innerHTML=Z,ge.onclick=function(){M(ce,ie),P(),J?J():V&&V()},Y.appendChild(ge),Y.listener=function(Ee){C(Ee)&&ge.click()},R(Y,ie),k(Y,ie)},K=f.date=function(H,V,q){var oe=H.value,Z=oe===void 0?new Date:oe,J=H.submitText,ye=J===void 0?"OK":J,xe=H.cancelText,ie=xe===void 0?"Cancel":xe,Y=H.submitCallback,ce=H.cancelCallback,fe=H.position,ge=fe===void 0?b.positions.date||ge.top:fe;_(),O();var Ee="▾",Le=document.createElement("div"),ve=document.createElement("div"),ee=document.createElement("div"),De=function(Ve){Le.innerHTML=b.dateMonths[Ve.getMonth()],ve.innerHTML=Ve.getDate(),ee.innerHTML=Ve.getFullYear()},_e=function(Ve){var W=new Date(Z.getFullYear(),Z.getMonth()+1,0).getDate(),pe=Ve.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(pe)>W&&(pe=W.toString()),Ve.target.textContent=pe,Number(pe)<1&&(pe="1"),Z.setDate(Number(pe))},je=function(Ve){var W=Ve.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);Ve.target.textContent=W,Z.setFullYear(Number(W))},We=function(Ve){De(Z)},Et=function(Ve){var W=new Date(Z.getFullYear(),Z.getMonth()+Ve+1,0).getDate();Z.getDate()>W&&Z.setDate(W),Z.setMonth(Z.getMonth()+Ve),De(Z)},Vt=function(Ve){Z.setDate(Z.getDate()+Ve),De(Z)},za=function(Ve){var W=Z.getFullYear()+Ve;W<0?Z.setFullYear(0):Z.setFullYear(Z.getFullYear()+Ve),De(Z)},nn=document.createElement("div"),Qn=y();nn.id=Qn;var ma=document.createElement("div");ma.classList.add(b.classes.backgroundInfo);var ze=document.createElement("div");ze.classList.add(b.classes.dateSelectorInner);var an=document.createElement("div");an.classList.add(b.classes.button),an.classList.add(b.classes.elementThird),an.classList.add(b.classes.dateSelectorUp),an.innerHTML=Ee;var ht=document.createElement("div");ht.classList.add(b.classes.button),ht.classList.add(b.classes.elementThird),ht.classList.add(b.classes.dateSelectorUp),ht.innerHTML=Ee;var Ze=document.createElement("div");Ze.classList.add(b.classes.button),Ze.classList.add(b.classes.elementThird),Ze.classList.add(b.classes.dateSelectorUp),Ze.innerHTML=Ee,Le.classList.add(b.classes.element),Le.classList.add(b.classes.elementThird),Le.innerHTML=b.dateMonths[Z.getMonth()],ve.classList.add(b.classes.element),ve.classList.add(b.classes.elementThird),ve.setAttribute("contentEditable",!0),ve.addEventListener("input",_e),ve.addEventListener("blur",We),ve.innerHTML=Z.getDate(),ee.classList.add(b.classes.element),ee.classList.add(b.classes.elementThird),ee.setAttribute("contentEditable",!0),ee.addEventListener("input",je),ee.addEventListener("blur",We),ee.innerHTML=Z.getFullYear();var ln=document.createElement("div");ln.classList.add(b.classes.button),ln.classList.add(b.classes.elementThird),ln.innerHTML=Ee;var Yt=document.createElement("div");Yt.classList.add(b.classes.button),Yt.classList.add(b.classes.elementThird),Yt.innerHTML=Ee;var pa=document.createElement("div");pa.classList.add(b.classes.button),pa.classList.add(b.classes.elementThird),pa.innerHTML=Ee,an.onclick=function(){return Et(1)},ht.onclick=function(){return Vt(1)},Ze.onclick=function(){return za(1)},ln.onclick=function(){return Et(-1)},Yt.onclick=function(){return Vt(-1)},pa.onclick=function(){return za(-1)};var At=document.createElement("div");At.classList.add(b.classes.button),At.classList.add(b.classes.elementHalf),At.classList.add(b.classes.backgroundSuccess),At.innerHTML=ye,At.onclick=function(){M(Qn,ge),P(),Y?Y(Z):V&&V(Z)};var An=document.createElement("div");An.classList.add(b.classes.button),An.classList.add(b.classes.elementHalf),An.classList.add(b.classes.backgroundError),An.innerHTML=ie,An.onclick=function(){M(Qn,ge),P(),ce?ce(Z):q&&q(Z)},ze.appendChild(an),ze.appendChild(ht),ze.appendChild(Ze),ze.appendChild(Le),ze.appendChild(ve),ze.appendChild(ee),ze.appendChild(ln),ze.appendChild(Yt),ze.appendChild(pa),ma.appendChild(ze),nn.appendChild(ma),nn.appendChild(At),nn.appendChild(An),nn.listener=function(Ve){v(Ve)?At.click():C(Ve)&&An.click()},R(nn,ge),k(nn,ge)};f.default={alert:j,force:B,confirm:A,input:L,select:U,date:K,setOptions:S,hideAlerts:O}}])})}).call(a,r(0)(n))}])})}),tg={};R6(tg,{default:()=>Ou});var O6=Xd(eg());I6(tg,Xd(eg()));var{default:Zd,...N6}=O6,Ou=Zd!==void 0?Zd:N6;h();h();var v0=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function w0(e,t,n,a){e.addEventListener?e.addEventListener(t,n,a):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function ug(e,t){for(var n=t.slice(0,t.length-1),a=0;a=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function U6(e,t){for(var n=e.length>=t.length?e:t,a=e.length>=t.length?t:e,r=!0,o=0;o=0&&Je.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Je.splice(0,Je.length),(t===93||t===224)&&(t=91),t in kt){kt[t]=!1;for(var a in Wn)Wn[a]===t&&(Ue[a]=!1)}}function V6(e){if(typeof e>"u")Object.keys(gt).forEach(function(u){return delete gt[u]});else if(Array.isArray(e))e.forEach(function(u){u.key&&A0(u)});else if(typeof e=="object")e.key&&A0(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a1?ug(Wn,s):[];gt[f]=gt[f].filter(function(m){var g=a?m.method===a:!0;return!(g&&m.scope===n&&U6(m.mods,p))})}})};function ag(e,t,n,a){if(t.element===a){var r;if(t.scope===n||t.scope==="all"){r=t.mods.length>0;for(var o in kt)Object.prototype.hasOwnProperty.call(kt,o)&&(!kt[o]&&t.mods.indexOf(+o)>-1||kt[o]&&t.mods.indexOf(+o)===-1)&&(r=!1);(t.mods.length===0&&!kt[16]&&!kt[18]&&!kt[17]&&!kt[91]||r||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function rg(e,t){var n=gt["*"],a=e.keyCode||e.which||e.charCode;if(Ue.filter.call(this,e)){if((a===93||a===224)&&(a=91),Je.indexOf(a)===-1&&a!==229&&Je.push(a),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(g){var T=S0[g];e[g]&&Je.indexOf(T)===-1?Je.push(T):!e[g]&&Je.indexOf(T)>-1?Je.splice(Je.indexOf(T),1):g==="metaKey"&&e[g]&&Je.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Je=Je.slice(Je.indexOf(T))))}),a in kt){kt[a]=!0;for(var r in Wn)Wn[r]===a&&(Ue[r]=!0);if(!n)return}for(var o in kt)Object.prototype.hasOwnProperty.call(kt,o)&&(kt[o]=e[S0[o]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Je.indexOf(17)===-1&&Je.push(17),Je.indexOf(18)===-1&&Je.push(18),kt[17]=!0,kt[18]=!0);var u=vo();if(n)for(var i=0;i-1}function Ue(e,t,n){Je=[];var a=ig(e),r=[],o="all",u=document,i=0,s=!1,c=!0,l="+",f=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(o=t.scope),t.element&&(u=t.element),t.keyup&&(s=t.keyup),t.keydown!==void 0&&(c=t.keydown),t.capture!==void 0&&(f=t.capture),typeof t.splitKey=="string"&&(l=t.splitKey)),typeof t=="string"&&(o=t);i1&&(r=ug(Wn,e)),e=e[e.length-1],e=e==="*"?"*":Uu(e),e in gt||(gt[e]=[]),gt[e].push({keyup:s,keydown:c,scope:o,mods:r,shortcut:a[i],method:n,key:a[i],splitKey:l,element:u});typeof u<"u"&&!Y6(u)&&window&&(lg.push(u),w0(u,"keydown",function(p){rg(p,u)},f),ng||(ng=!0,w0(window,"focus",function(){Je=[]},f)),w0(u,"keyup",function(p){rg(p,u),G6(p)},f))}function J6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(gt).forEach(function(n){var a=gt[n].filter(function(r){return r.scope===t&&r.shortcut===e});a.forEach(function(r){r&&r.method&&r.method()})})}var k0={getPressedKeyString:q6,setScope:cg,getScope:vo,deleteScope:$6,getPressedKeyCodes:H6,isPressed:K6,filter:W6,trigger:J6,unbind:V6,keyMap:Co,modifier:Wn,modifierMap:S0};for(Nu in k0)Object.prototype.hasOwnProperty.call(k0,Nu)&&(Ue[Nu]=k0[Nu]);var Nu;typeof document<"u"&&(og=window.hotkeys,Ue.noConflict=function(e){return e&&window.hotkeys===Ue&&(window.hotkeys=og),Ue},window.hotkeys=Ue);var og;h();h();var Q6={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},gg={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},lt={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},jt={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},xa={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},G=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let a=G.getVersionPrecision(e),r=G.getVersionPrecision(t),o=Math.max(a,r),u=0,i=G.map([e,t],s=>{let c=o-G.getVersionPrecision(s),l=s+new Array(c+1).join(".0");return G.map(l.split("."),f=>new Array(20-f.length).join("0")+f).reverse()});for(n&&(u=o-Math.min(a,r)),o-=1;o>=u;){if(i[0][o]>i[1][o])return 1;if(i[0][o]===i[1][o]){if(o===u)return 0;o-=1}else if(i[0][o]{n[u]=o[u]})}return e}static getBrowserAlias(e){return Q6[e]}static getBrowserTypeByAlias(e){return gg[e]||""}},qe=/version\/(\d+(\.?_?\d+)+)/i,Z6=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=G.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=G.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=G.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=G.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=G.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=G.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=G.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=G.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=G.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=G.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=G.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=G.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=G.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=G.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=G.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=G.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=G.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=G.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=G.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=G.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=G.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=G.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=G.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=G.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=G.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=G.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=G.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,a=e.search("\\(")!==-1?n:t;return{name:G.getFirstMatch(a,e),version:G.getSecondMatch(a,e)}}}],X6=Z6,e9=[{test:[/Roku\/DVP/],describe(e){let t=G.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:jt.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=G.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:jt.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=G.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=G.getWindowsVersionName(t);return{name:jt.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:jt.iOS},n=G.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=G.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=G.getMacOSVersionName(t),a={name:jt.MacOS,version:t};return n&&(a.versionName=n),a}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=G.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:jt.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=G.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=G.getAndroidVersionName(t),a={name:jt.Android,version:t};return n&&(a.versionName=n),a}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=G.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:jt.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=G.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||G.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||G.getFirstMatch(/\bbb(\d+)/i,e);return{name:jt.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=G.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:jt.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=G.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:jt.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:jt.Linux}}},{test:[/CrOS/],describe(){return{name:jt.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=G.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:jt.PlayStation4,version:t}}}],t9=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=G.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:lt.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:lt.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:lt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:lt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:lt.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:lt.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:lt.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=G.getFirstMatch(/(ipod|iphone)/i,e);return{type:lt.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:lt.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:lt.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:lt.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:lt.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:lt.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:lt.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:lt.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:lt.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:lt.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:lt.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:lt.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:lt.tv}}}],n9=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:xa.Blink};let t=G.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:xa.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:xa.Trident},n=G.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:xa.Presto},n=G.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:xa.Gecko},n=G.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:xa.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:xa.WebKit},n=G.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],a9=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=G.find(X6,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=G.find(e9,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=G.find(t9,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=G.find(n9,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return G.assign({},this.parsedResult)}satisfies(e){let t={},n=0,a={},r=0;if(Object.keys(e).forEach(o=>{let u=e[o];typeof u=="string"?(a[o]=u,r+=1):typeof u=="object"&&(t[o]=u,n+=1)}),n>0){let o=Object.keys(t),u=G.find(o,s=>this.isOS(s));if(u){let s=this.satisfies(t[u]);if(s!==void 0)return s}let i=G.find(o,s=>this.isPlatform(s));if(i){let s=this.satisfies(t[i]);if(s!==void 0)return s}}if(r>0){let o=Object.keys(a),u=G.find(o,i=>this.isBrowser(i,!0));if(u!==void 0)return this.compareVersion(a[u])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),a=e.toLowerCase(),r=G.getBrowserTypeByAlias(a);return t&&r&&(a=r.toLowerCase()),a===n}compareVersion(e){let t=[0],n=e,a=!1,r=this.getBrowserVersion();if(typeof r=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(a=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(a=!0,n=e.substr(1)),t.indexOf(G.compareVersions(r,n,a))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},dg=a9,r9=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new dg(e,t)}static parse(e){return new dg(e).getResult()}static get BROWSER_MAP(){return gg}static get ENGINE_MAP(){return xa}static get OS_MAP(){return jt}static get PLATFORMS_MAP(){return lt}},Tr=r9;h();h();var{entries:Tg,setPrototypeOf:mg,isFrozen:o9,getPrototypeOf:u9,getOwnPropertyDescriptor:i9}=Object,{freeze:zt,seal:Dn,create:s9}=Object,{apply:_0,construct:B0}=typeof Reflect<"u"&&Reflect;_0||(_0=function(e,t,n){return e.apply(t,n)});zt||(zt=function(e){return e});Dn||(Dn=function(e){return e});B0||(B0=function(e,t){return new e(...t)});var l9=pn(Array.prototype.forEach),pg=pn(Array.prototype.pop),wo=pn(Array.prototype.push),Hu=pn(String.prototype.toLowerCase),D0=pn(String.prototype.toString),c9=pn(String.prototype.match),Sn=pn(String.prototype.replace),d9=pn(String.prototype.indexOf),g9=pn(String.prototype.trim),on=pn(RegExp.prototype.test),Ao=m9(TypeError);function pn(e){return function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r/gm),y9=Dn(/\${[\w\W]*}/gm),x9=Dn(/^data-[\-\w.\u00B7-\uFFFF]/),T9=Dn(/^aria-[\-\w]+$/),Eg=Dn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),E9=Dn(/^(?:\w+script|data):/i),C9=Dn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Cg=Dn(/^html$/i),xg=Object.freeze({__proto__:null,MUSTACHE_EXPR:h9,ERB_EXPR:b9,TMPLIT_EXPR:y9,DATA_ATTR:x9,ARIA_ATTR:T9,IS_ALLOWED_URI:Eg,IS_SCRIPT_OR_DATA:E9,ATTR_WHITESPACE:C9,DOCTYPE_NAME:Cg}),v9=()=>typeof window>"u"?null:window,w9=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,a="data-tt-policy-suffix";t&&t.hasAttribute(a)&&(n=t.getAttribute(a));let r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return null}};function vg(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v9(),t=I=>vg(I);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,a=n.currentScript,{document:r}=e,{DocumentFragment:o,HTMLTemplateElement:u,Node:i,Element:s,NodeFilter:c,NamedNodeMap:l=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:p,trustedTypes:m}=e,g=s.prototype,T=ju(g,"cloneNode"),w=ju(g,"nextSibling"),b=ju(g,"childNodes"),S=ju(g,"parentNode");if(typeof u=="function"){let I=r.createElement("template");I.content&&I.content.ownerDocument&&(r=I.content.ownerDocument)}let D,N="",{implementation:_,createNodeIterator:y,createDocumentFragment:E,getElementsByTagName:x}=r,{importNode:v}=n,C={};t.isSupported=typeof Tg=="function"&&typeof S=="function"&&_&&_.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:R,ERB_EXPR:M,TMPLIT_EXPR:k,DATA_ATTR:P,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:j,ATTR_WHITESPACE:B}=xg,{IS_ALLOWED_URI:A}=xg,L=null,U=Me({},[...fg,...L0,...M0,...P0,...hg]),K=null,H=Me({},[...bg,...F0,...yg,...zu]),V=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),q=null,oe=null,Z=!0,J=!0,ye=!1,xe=!0,ie=!1,Y=!1,ce=!1,fe=!1,ge=!1,Ee=!1,Le=!1,ve=!0,ee=!1,De="user-content-",_e=!0,je=!1,We={},Et=null,Vt=Me({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),za=null,nn=Me({},["audio","video","img","source","image","track"]),Qn=null,ma=Me({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ze="http://www.w3.org/1998/Math/MathML",an="http://www.w3.org/2000/svg",ht="http://www.w3.org/1999/xhtml",Ze=ht,ln=!1,Yt=null,pa=Me({},[ze,an,ht],D0),At,An=["application/xhtml+xml","text/html"],Ve="text/html",W,pe=null,nt=r.createElement("form"),Be=function(I){return I instanceof RegExp||I instanceof Function},Ie=function(I){if(!(pe&&pe===I)){if((!I||typeof I!="object")&&(I={}),I=Er(I),At=An.indexOf(I.PARSER_MEDIA_TYPE)===-1?At=Ve:At=I.PARSER_MEDIA_TYPE,W=At==="application/xhtml+xml"?D0:Hu,L="ALLOWED_TAGS"in I?Me({},I.ALLOWED_TAGS,W):U,K="ALLOWED_ATTR"in I?Me({},I.ALLOWED_ATTR,W):H,Yt="ALLOWED_NAMESPACES"in I?Me({},I.ALLOWED_NAMESPACES,D0):pa,Qn="ADD_URI_SAFE_ATTR"in I?Me(Er(ma),I.ADD_URI_SAFE_ATTR,W):ma,za="ADD_DATA_URI_TAGS"in I?Me(Er(nn),I.ADD_DATA_URI_TAGS,W):nn,Et="FORBID_CONTENTS"in I?Me({},I.FORBID_CONTENTS,W):Vt,q="FORBID_TAGS"in I?Me({},I.FORBID_TAGS,W):{},oe="FORBID_ATTR"in I?Me({},I.FORBID_ATTR,W):{},We="USE_PROFILES"in I?I.USE_PROFILES:!1,Z=I.ALLOW_ARIA_ATTR!==!1,J=I.ALLOW_DATA_ATTR!==!1,ye=I.ALLOW_UNKNOWN_PROTOCOLS||!1,xe=I.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ie=I.SAFE_FOR_TEMPLATES||!1,Y=I.WHOLE_DOCUMENT||!1,ge=I.RETURN_DOM||!1,Ee=I.RETURN_DOM_FRAGMENT||!1,Le=I.RETURN_TRUSTED_TYPE||!1,fe=I.FORCE_BODY||!1,ve=I.SANITIZE_DOM!==!1,ee=I.SANITIZE_NAMED_PROPS||!1,_e=I.KEEP_CONTENT!==!1,je=I.IN_PLACE||!1,A=I.ALLOWED_URI_REGEXP||Eg,Ze=I.NAMESPACE||ht,V=I.CUSTOM_ELEMENT_HANDLING||{},I.CUSTOM_ELEMENT_HANDLING&&Be(I.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(V.tagNameCheck=I.CUSTOM_ELEMENT_HANDLING.tagNameCheck),I.CUSTOM_ELEMENT_HANDLING&&Be(I.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(V.attributeNameCheck=I.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),I.CUSTOM_ELEMENT_HANDLING&&typeof I.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(V.allowCustomizedBuiltInElements=I.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ie&&(J=!1),Ee&&(ge=!0),We&&(L=Me({},[...hg]),K=[],We.html===!0&&(Me(L,fg),Me(K,bg)),We.svg===!0&&(Me(L,L0),Me(K,F0),Me(K,zu)),We.svgFilters===!0&&(Me(L,M0),Me(K,F0),Me(K,zu)),We.mathMl===!0&&(Me(L,P0),Me(K,yg),Me(K,zu))),I.ADD_TAGS&&(L===U&&(L=Er(L)),Me(L,I.ADD_TAGS,W)),I.ADD_ATTR&&(K===H&&(K=Er(K)),Me(K,I.ADD_ATTR,W)),I.ADD_URI_SAFE_ATTR&&Me(Qn,I.ADD_URI_SAFE_ATTR,W),I.FORBID_CONTENTS&&(Et===Vt&&(Et=Er(Et)),Me(Et,I.FORBID_CONTENTS,W)),_e&&(L["#text"]=!0),Y&&Me(L,["html","head","body"]),L.table&&(Me(L,["tbody"]),delete q.tbody),I.TRUSTED_TYPES_POLICY){if(typeof I.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ao('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof I.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ao('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');D=I.TRUSTED_TYPES_POLICY,N=D.createHTML("")}else D===void 0&&(D=w9(m,a)),D!==null&&typeof N=="string"&&(N=D.createHTML(""));zt&&zt(I),pe=I}},Zn=Me({},["mi","mo","mn","ms","mtext"]),jn=Me({},["foreignobject","desc","title","annotation-xml"]),cn=Me({},["title","style","font","a","script"]),dr=Me({},L0);Me(dr,M0),Me(dr,p9);let Fs=Me({},P0);Me(Fs,f9);let Hh=function(I){let le=S(I);(!le||!le.tagName)&&(le={namespaceURI:Ze,tagName:"template"});let te=Hu(I.tagName),Oe=Hu(le.tagName);return Yt[I.namespaceURI]?I.namespaceURI===an?le.namespaceURI===ht?te==="svg":le.namespaceURI===ze?te==="svg"&&(Oe==="annotation-xml"||Zn[Oe]):!!dr[te]:I.namespaceURI===ze?le.namespaceURI===ht?te==="math":le.namespaceURI===an?te==="math"&&jn[Oe]:!!Fs[te]:I.namespaceURI===ht?le.namespaceURI===an&&!jn[Oe]||le.namespaceURI===ze&&!Zn[Oe]?!1:!Fs[te]&&(cn[te]||!dr[te]):!!(At==="application/xhtml+xml"&&Yt[I.namespaceURI]):!1},gr=function(I){wo(t.removed,{element:I});try{I.parentNode.removeChild(I)}catch{I.remove()}},_s=function(I,le){try{wo(t.removed,{attribute:le.getAttributeNode(I),from:le})}catch{wo(t.removed,{attribute:null,from:le})}if(le.removeAttribute(I),I==="is"&&!K[I])if(ge||Ee)try{gr(le)}catch{}else try{le.setAttribute(I,"")}catch{}},k4=function(I){let le,te;if(fe)I=""+I;else{let Ut=c9(I,/^[\r\n\t ]+/);te=Ut&&Ut[0]}At==="application/xhtml+xml"&&Ze===ht&&(I=''+I+"");let Oe=D?D.createHTML(I):I;if(Ze===ht)try{le=new p().parseFromString(Oe,At)}catch{}if(!le||!le.documentElement){le=_.createDocument(Ze,"template",null);try{le.documentElement.innerHTML=ln?N:Oe}catch{}}let bt=le.body||le.documentElement;return I&&te&&bt.insertBefore(r.createTextNode(te),bt.childNodes[0]||null),Ze===ht?x.call(le,Y?"html":"body")[0]:Y?le.documentElement:bt},S4=function(I){return y.call(I.ownerDocument||I,I,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},qh=function(I){return I instanceof f&&(typeof I.nodeName!="string"||typeof I.textContent!="string"||typeof I.removeChild!="function"||!(I.attributes instanceof l)||typeof I.removeAttribute!="function"||typeof I.setAttribute!="function"||typeof I.namespaceURI!="string"||typeof I.insertBefore!="function"||typeof I.hasChildNodes!="function")},yu=function(I){return typeof i=="object"?I instanceof i:I&&typeof I=="object"&&typeof I.nodeType=="number"&&typeof I.nodeName=="string"},Xn=function(I,le,te){C[I]&&l9(C[I],Oe=>{Oe.call(t,le,te,pe)})},D4=function(I){let le;if(Xn("beforeSanitizeElements",I,null),qh(I))return gr(I),!0;let te=W(I.nodeName);if(Xn("uponSanitizeElement",I,{tagName:te,allowedTags:L}),I.hasChildNodes()&&!yu(I.firstElementChild)&&(!yu(I.content)||!yu(I.content.firstElementChild))&&on(/<[/\w]/g,I.innerHTML)&&on(/<[/\w]/g,I.textContent))return gr(I),!0;if(!L[te]||q[te]){if(!q[te]&&M4(te)&&(V.tagNameCheck instanceof RegExp&&on(V.tagNameCheck,te)||V.tagNameCheck instanceof Function&&V.tagNameCheck(te)))return!1;if(_e&&!Et[te]){let Oe=S(I)||I.parentNode,bt=b(I)||I.childNodes;if(bt&&Oe){let Ut=bt.length;for(let Jt=Ut-1;Jt>=0;--Jt)Oe.insertBefore(T(bt[Jt],!0),w(I))}}return gr(I),!0}return I instanceof s&&!Hh(I)||(te==="noscript"||te==="noembed")&&on(/<\/no(script|embed)/i,I.innerHTML)?(gr(I),!0):(ie&&I.nodeType===3&&(le=I.textContent,le=Sn(le,R," "),le=Sn(le,M," "),le=Sn(le,k," "),I.textContent!==le&&(wo(t.removed,{element:I.cloneNode()}),I.textContent=le)),Xn("afterSanitizeElements",I,null),!1)},L4=function(I,le,te){if(ve&&(le==="id"||le==="name")&&(te in r||te in nt))return!1;if(!(J&&!oe[le]&&on(P,le))&&!(Z&&on(O,le))){if(!K[le]||oe[le]){if(!(M4(I)&&(V.tagNameCheck instanceof RegExp&&on(V.tagNameCheck,I)||V.tagNameCheck instanceof Function&&V.tagNameCheck(I))&&(V.attributeNameCheck instanceof RegExp&&on(V.attributeNameCheck,le)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(le))||le==="is"&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&on(V.tagNameCheck,te)||V.tagNameCheck instanceof Function&&V.tagNameCheck(te))))return!1}else if(!Qn[le]&&!on(A,Sn(te,B,""))&&!((le==="src"||le==="xlink:href"||le==="href")&&I!=="script"&&d9(te,"data:")===0&&za[I])&&!(ye&&!on(j,Sn(te,B,"")))&&te)return!1}return!0},M4=function(I){return I.indexOf("-")>0},P4=function(I){let le,te,Oe,bt;Xn("beforeSanitizeAttributes",I,null);let{attributes:Ut}=I;if(!Ut)return;let Jt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:K};for(bt=Ut.length;bt--;){le=Ut[bt];let{name:Ct,namespaceURI:mr}=le;if(te=Ct==="value"?le.value:g9(le.value),Oe=W(Ct),Jt.attrName=Oe,Jt.attrValue=te,Jt.keepAttr=!0,Jt.forceKeepAttr=void 0,Xn("uponSanitizeAttribute",I,Jt),te=Jt.attrValue,Jt.forceKeepAttr||(_s(Ct,I),!Jt.keepAttr))continue;if(!xe&&on(/\/>/i,te)){_s(Ct,I);continue}ie&&(te=Sn(te,R," "),te=Sn(te,M," "),te=Sn(te,k," "));let F4=W(I.nodeName);if(L4(F4,Oe,te)){if(ee&&(Oe==="id"||Oe==="name")&&(_s(Ct,I),te=De+te),D&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!mr)switch(m.getAttributeType(F4,Oe)){case"TrustedHTML":{te=D.createHTML(te);break}case"TrustedScriptURL":{te=D.createScriptURL(te);break}}try{mr?I.setAttributeNS(mr,Ct,te):I.setAttribute(Ct,te),pg(t.removed)}catch{}}}Xn("afterSanitizeAttributes",I,null)},Wh=function I(le){let te,Oe=S4(le);for(Xn("beforeSanitizeShadowDOM",le,null);te=Oe.nextNode();)Xn("uponSanitizeShadowNode",te,null),!D4(te)&&(te.content instanceof o&&I(te.content),P4(te));Xn("afterSanitizeShadowDOM",le,null)};return t.sanitize=function(I){let le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te,Oe,bt,Ut;if(ln=!I,ln&&(I=""),typeof I!="string"&&!yu(I))if(typeof I.toString=="function"){if(I=I.toString(),typeof I!="string")throw Ao("dirty is not a string, aborting")}else throw Ao("toString is not a function");if(!t.isSupported)return I;if(ce||Ie(le),t.removed=[],typeof I=="string"&&(je=!1),je){if(I.nodeName){let mr=W(I.nodeName);if(!L[mr]||q[mr])throw Ao("root node is forbidden and cannot be sanitized in-place")}}else if(I instanceof i)te=k4(""),Oe=te.ownerDocument.importNode(I,!0),Oe.nodeType===1&&Oe.nodeName==="BODY"||Oe.nodeName==="HTML"?te=Oe:te.appendChild(Oe);else{if(!ge&&!ie&&!Y&&I.indexOf("<")===-1)return D&&Le?D.createHTML(I):I;if(te=k4(I),!te)return ge?null:Le?N:""}te&&fe&&gr(te.firstChild);let Jt=S4(je?I:te);for(;bt=Jt.nextNode();)D4(bt)||(bt.content instanceof o&&Wh(bt.content),P4(bt));if(je)return I;if(ge){if(Ee)for(Ut=E.call(te.ownerDocument);te.firstChild;)Ut.appendChild(te.firstChild);else Ut=te;return(K.shadowroot||K.shadowrootmod)&&(Ut=v.call(n,Ut,!0)),Ut}let Ct=Y?te.outerHTML:te.innerHTML;return Y&&L["!doctype"]&&te.ownerDocument&&te.ownerDocument.doctype&&te.ownerDocument.doctype.name&&on(Cg,te.ownerDocument.doctype.name)&&(Ct=" -`+Ct),ie&&(Ct=Sn(Ct,R," "),Ct=Sn(Ct,M," "),Ct=Sn(Ct,k," ")),D&&Le?D.createHTML(Ct):Ct},t.setConfig=function(I){Ie(I),ce=!0},t.clearConfig=function(){pe=null,ce=!1},t.isValidAttribute=function(I,le,te){pe||Ie({});let Oe=W(I),bt=W(le);return L4(Oe,bt,te)},t.addHook=function(I,le){typeof le=="function"&&(C[I]=C[I]||[],wo(C[I],le))},t.removeHook=function(I){if(C[I])return pg(C[I])},t.removeHooks=function(I){C[I]&&(C[I]=[])},t.removeAllHooks=function(){C={}},t}var Ne=vg();var R0=Ou.alert;h();h();h();function Ke(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():F}var Ce=Ke();function me(){return Ce.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function wg(){return Ce.BETA==="1"}function na(){return Ce.PROD==="1"}function aa(){return Ce.PROD_API==="1"}function Ag(){return Ce.HAS_CSP_ERROR=="1"}function ot(){if(Ce.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function qu(){return typeof Deno<"u"}var R8=Ke().PROD==="1",Cr=Ke().PROD!=="1";function Wu(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}function ko(){if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let e=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(e&&(e._isUserscript||e._isSafari))}else return!1}var kg={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",curentPlan:"\u5F53\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52A8\u7EED\u671F",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",sponsorLabel:"$1 \u8D77\u8D5E\u52A9\u5F00\u53D1\u8005",help:"\u5E2E\u52A9",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D\uFF0C\u518D\u70B9\u51FB\u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D\u5373\u53EF\u8BBE\u7F6E",browserShortcutsNoteForChrome:"\u7C7BChrome \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762\uFF0C\u5728`\u7BA1\u7406\u5FEB\u6377\u952E`\u9762\u677F(`chrome://extensions/shortcuts`)\u8BBE\u7F6E\uFF0C\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8DF3\u8F6C\u5230\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E\u683C\u5F0F\u4E3A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1: \u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1 & PDF\u6587\u6863\u7FFB\u8BD1","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7F51\u9875\u53CC\u8BED\u7FFB\u8BD1\u6269\u5C55\uFF0C\u540C\u65F6\u652F\u6301 PDF \u7FFB\u8BD1\uFF0C\u53CC\u8BED Epub \u7535\u5B50\u4E66\u5236\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u817E\u8BAF\u7FFB\u8BD1\u7B49\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\uFF0C\u514D\u8D39\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8BD1\u5E76\u9690\u85CF\u539F\u6587/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.toggleTranslationMask":"\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.donateContext":"\u4E86\u89E3\u8D5E\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5219\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875(\u4EC5\u8BD1\u6587)/\u663E\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7","fingers.0":"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478",mouseHoldKey:"+ {key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoverHoldKey:"\u9F20\u6807\u60AC\u505C\u540C\u65F6\u6309\u4E0B\u5FEB\u6377\u952E\u7FFB\u8BD1\u6BB5\u843D","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u6587\u6863",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",goAdvancedSettings:"\u53BB\u8FDB\u9636\u8BBE\u7F6E\u9875",goAdvancedInterfaceSettings:"\u53BB\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u8BBE\u7F6E\u9875\u9762",advanced:"\u8FDB\u9636\u8BBE\u7F6E",advancedDescription:"\u4E00\u822C\u65E0\u9700\u8BBE\u7F6E\uFF0C\u4FDD\u6301\u9ED8\u8BA4\u5373\u53EF\u3002\u4EC5\u5BF9\u4E8E\u66F4\u4E13\u4E1A\u7684\u7528\u6237\uFF0C\u63D0\u4F9B\u66F4\u4E2A\u6027\u5316\u7684\u8BBE\u7F6E\u9879\u3002",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00","display both the original text and the translation":"\u540C\u65F6\u663E\u793A\u539F\u6587\u548C\u8BD1\u6587","keyboard shortcuts":"\u952E\u76D8\u5FEB\u6377\u952E",modify:"\u4FEE\u6539\u5FEB\u6377\u952E",reset:"\u91CD\u7F6E",close:"\u5173\u95ED",homepage:"\u4E3B\u9875",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",changeToOnlyTranslationMode:"\u5207\u6362\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u5207\u6362\u4E3A\u53CC\u8BED\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",unknownError:"\u672A\u77E5\u9519\u8BEF",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",needActionForOptions:"(\u9700\u8BBE\u7F6E)",translationEngine:"\u5F15\u64CE\u9009\u9879",sourceLanguage:"\u539F\u6587\u8BED\u8A00",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",forThisSite:"\u5F53\u524D\u7F51\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1 {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8BD1 {language}",alwaysTranslateSomeSite:"\u603B\u662F\u7FFB\u8BD1 {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8BD1 {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u6DFB\u52A0",default:"\u9ED8\u8BA4",forThisLanguage:"\u9488\u5BF9\u8BE5\u8BED\u8A00\uFF1A","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91","translate other languages into specific language":"\u5C06\u5176\u4ED6\u8BED\u8A00\u7FFB\u8BD1\u4E3A\u4F60\u8BBE\u7F6E\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1",language:"\u8BED\u8A00","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",Error:"\u9519\u8BEF",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",interface:"\u754C\u9762\u8BBE\u7F6E",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8BD1\u9875\u9762\u6807\u9898","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1",enableUserscriptPagePopup:"\u5728\u9875\u9762\u4E0A\u663E\u793A\u60AC\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528\u5FEB\u6377\u952E/{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8BD1\u6587\u6837\u5F0F",currentUrl:"\u5F53\u524D\u7F51\u5740",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664","languages.auto":"\u81EA\u52A8\u68C0\u6D4B",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",upload:"\u4E0A\u4F20",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",download:"\u4E0B\u8F7D",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",deleteFail:"\u5220\u9664\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",backupToCloudDescription:"\u624B\u52A8\u4E0A\u4F20\u6216\u6062\u590D\u5907\u4EFD\u6587\u4EF6\uFF0C\u6700\u591A\u5141\u8BB83\u4E2A\u4E0D\u540C\u7684\u5907\u4EFD",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",updatedAt:"\u66F4\u65B0\u4E8E {date}",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u9891\u9053",joinTelegramChannel:"\u5173\u6CE8 Telegram \u9891\u9053\u83B7\u53D6\u6700\u65B0\u66F4\u65B0",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",autoSync:"\u81EA\u52A8\u5B9A\u65F6\u540C\u6B65",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863","edit border color":"\u4FEE\u6539\u8FB9\u6846\u989C\u8272",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",enableSubtitle:"\u5F00\u542F\u5B57\u5E55\u7FFB\u8BD1",enableSubtitleDescription:"\u9488\u5BF9 youtube \u7B49\u7F51\u7AD9\u7684\u5B57\u5E55\u533A\u57DF\u5F00\u542F\u7FFB\u8BD1",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",enableSearchEnhancement:"\u542F\u7528\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A",enableSearchEnhancementDescription:"\u5F00\u542F\u540E\uFF0C\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\u793E\u533A\uFF09\u53F3\u8FB9\u680F\u81EA\u52A8\u663E\u793A\u5BF9\u5E94\u82F1\u6587\u5173\u952E\u8BCD\u7684\u201C\u8C37\u6B4C\u65B0\u95FB\u201D\u641C\u7D22\u7ED3\u679C\u3002",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerMinute":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u5206\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u8350\uFF09, \u5C06\u4F1A\u5728\u5355\u72EC\u4F5C\u4E3A\u4E00\u6BB5\u53D1\u9001\u7ED9 OpenAI","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740",enabledExtension:"\u542F\u7528\u6269\u5C55",clickToDisableExtension:"\u70B9\u51FB\u7981\u7528\u6269\u5C55",clickToEnableExtension:"\u70B9\u51FB\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",modifyMouseHoverKey:"\u4FEE\u6539\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u8BBE\u7F6E",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",disableTint:"* \u4F60\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u542F\u7528\u3002",searchEnhancementNotes:"\u6211\u4EEC\u53D1\u73B0\uFF0C\u4E2D\u6587\u5173\u952E\u8BCD\u548C\u82F1\u6587\u5173\u952E\u8BCD\u7684\u65B0\u95FB\u7ED3\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u542F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u529F\u80FD\u540E\uFF0C\u6211\u4EEC\u4F1A\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\u7F51\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52A8\u7528\u82F1\u6587\u4E3A\u4F60\u641C\u7D22\u540C\u6837\u7684\u5173\u952E\u8BCD\u5E76\u5C55\u793A\u5728\u53F3\u4FA7\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8BE5\u529F\u80FD\u7684\u8BDD\uFF0C\u53EF\u4EE5\u9009\u62E9\u7981\u7528\u5B83\u3002",option:"\u8BBE\u7F6E",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",needLoginAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u81EA\u5B9A\u4E49)",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",onetime_7day:"7 \u5929\u4F53\u9A8C\u5305",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradePlan:"\u70B9\u6B64\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL \u548C OpenAI \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8BD1",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u8BBE\u7F6E\u5176\u4ED6\u5FEB\u6377\u952E\u6765\u89E6\u53D1\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1"};var Sg={nologin:"\u672A\u767B\u9304",login:"\u767B\u9304",manageAccount:"\u7BA1\u7406\u8CEC\u6236",logout:"\u9000\u51FA",curentPlan:"\u7576\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u671F",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u64CA\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u8AAA\u660E",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u9644\u52A0\u5143\u4EF6\u7BA1\u7406\u9801\u9762 \u300Cabout:addons\u300D\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u5716\u793A\u300D\uFF0C\u518D\u9EDE\u9078\u300C\u7BA1\u7406\u64F4\u5145\u5957\u4EF6\u5FEB\u901F\u9375\u300D\u5373\u53EF\u8A2D\u5B9A",browserShortcutsNoteForChrome:"Chromium \u6838\u5FC3\u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u64F4\u5145\u529F\u80FD\u7BA1\u7406\u9801\u9762\uFF0C\u5728\u300C\u9375\u76E4\u5FEB\u901F\u9375\u300D\u9801\u9762(chrome://extensions/shortcuts)\u8A2D\u5B9A\uFF0C\u9EDE\u9078\u4E0B\u65B9\u6309\u9215\u524D\u5F80\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u901F\u9375\u683C\u5F0F\u70BA\uFF1A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F: \u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F & PDF\u6587\u6A94\u7FFB\u8B6F","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7DB2\u9801\u96D9\u8A9E\u7FFB\u8B6F\u64F4\u5C55\uFF0C\u540C\u6642\u652F\u6301 PDF \u7FFB\u8B6F\uFF0C\u96D9\u8A9E Epub \u96FB\u5B50\u66F8\u88FD\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u9A30\u8A0A\u7FFB\u8B6F\u7B49\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF0C\u514D\u8CBB\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8B6F\u4E26\u96B1\u85CF\u539F\u6587/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.toggleTranslationMask":"\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.donateContext":"\u4E86\u89E3\u8D0A\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u5247\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u6642\u89F8\u78B0\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801(\u50C5\u8B6F\u6587)/\u986F\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304","fingers.0":"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478",mouseHoldKey:"+ {key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u6377\u9375(\u6253\u958B\u8A2D\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoverHoldKey:"\u9F20\u6A19\u6ED1\u904E\u540C\u6642\u6309\u4E0B X \u9375\u7FFB\u8B6F\u6BB5\u843D","mouse-translate":"\u9F20\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",goAdvancedSettings:"\u524D\u5F80\u9032\u968E\u8A2D\u5B9A\u9801\u9762",goAdvancedInterfaceSettings:"\u524D\u5F80\u81EA\u8A02\u8A2D\u5B9A\u9801\u9762",advanced:"\u9032\u968E\u8A2D\u5B9A",advancedDescription:"\u6B63\u5E38\u60C5\u6CC1\u7121\u9700\u8A2D\u5B9A\uFF0C\u4FDD\u6301\u9810\u8A2D\u5373\u53EF\u3002\u50C5\u91DD\u5C0D\u66F4\u5C08\u696D\u7684\u4F7F\u7528\u8005\uFF0C\u63D0\u4F9B\u66F4\u500B\u4EBA\u5316\u7684\u8A2D\u5B9A\u9805\u76EE\u3002",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00","display both the original text and the translation":"\u540C\u6642\u986F\u793A\u539F\u6587\u548C\u8B6F\u6587","keyboard shortcuts":"\u9375\u76E4\u5FEB\u901F\u9375",modify:"\u8B8A\u66F4\u5FEB\u901F\u9375",reset:"\u91CD\u8A2D",close:"\u95DC\u9589",homepage:"\u9996\u9801",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",changeToOnlyTranslationMode:"\u5207\u63DB\u70BA\u50C5\u986F\u793A\u8B6F\u6587",changeToDualTranslationMode:"\u5207\u63DB\u70BA\u96D9\u8A9E\u7FFB\u8B6F",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:"\u672A\u77E5\u7684\u932F\u8AA4",canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u9078\u9805",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",needActionForOptions:"(\u9700\u8A2D\u5B9A)",translationEngine:"\u5F15\u64CE\u9078\u9805",sourceLanguage:"\u539F\u6587\u8A9E\u8A00",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",forThisSite:"\u7576\u524D\u7DB2\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8B6F {language}",alwaysTranslateSomeSite:"\u7E3D\u662F\u7FFB\u8B6F {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8B6F {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u65B0\u589E",default:"\u9810\u8A2D",forThisLanguage:"\u91DD\u5C0D\u8A72\u8A9E\u8A00\uFF1A","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F","translate other languages into specific language":"\u5C07\u5176\u5B83\u8A9E\u8A00\u7FFB\u8B6F\u70BA\u4F60\u8A2D\u5B9A\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9",language:"\u8A9E\u8A00","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",Error:"\u932F\u8AA4",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",interface:"\u4ECB\u9762\u8A2D\u5B9A",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65",syncToAccount:"\u540C\u6B65\u5230\u8CEC\u6236",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u8CEC\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u8A2D\u5099\u4E4B\u9593\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u8CEC\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u8CEC\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8B6F","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9E\u99AC\u905C\u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8B6F\u9801\u9762\u6A19\u984C","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F",enableUserscriptPagePopup:"\u5728\u9801\u9762\u4E0A\u986F\u793A\u61F8\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528\u5FEB\u901F\u9375/{touch}\u518D\u6B21\u986F\u793A\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5EFA\u8B70\u5C07\u672C\u8A2D\u5B9A\u9801\u9762\u52A0\u5165\u81F3\u6211\u7684\u6700\u611B","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8B6F\u6587\u6A23\u5F0F",currentUrl:"\u76EE\u524D\u7DB2\u5740",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6E96\u3002",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",upload:"\u4E0A\u50B3",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",download:"\u4E0B\u8F09",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",deleteFail:"\u522A\u9664\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",backupToCloudDescription:"\u624B\u52D5\u4E0A\u50B3\u6216\u9084\u539F\u5099\u4EFD\u6A94\u6848\uFF0C\u6700\u591A\u5141\u8A31 3 \u500B\u4E0D\u540C\u7684\u5099\u4EFD",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",updatedAt:"\u66F4\u65B0\u65BC {date}",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u4EEC\u7684<3>Twitter\uFF0C<4>Telegram \u983B\u9053\u4EE5\u53CA\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u90F5\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u983B\u9053",joinTelegramChannel:"\u95DC\u6CE8 Telegram \u983B\u9053\u77AD\u89E3\u66F4\u65B0\u8CC7\u8A0A",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",autoSync:"\u81EA\u52D5\u5B9A\u6642\u540C\u6B65",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6","edit border color":"\u8B8A\u66F4\u908A\u6846\u8272\u5F69",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",enableSubtitle:"\u958B\u555F\u5B57\u5E55\u7FFB\u8B6F",enableSubtitleDescription:"\u91DD\u5C0D youtube \u7B49\u7DB2\u7AD9\u7684\u5B57\u5E55\u5340\u57DF\u958B\u555F\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",enableSearchEnhancement:"\u958B\u555F\u641C\u7D22\u589E\u5F37",enableSearchEnhancementDescription:"\u4E2D\u6587\u641C\u7D22\u8C37\u6B4C\u6703\u5728\u53F3\u908A\u51FA\u73FE\u82F1\u6587\u7248\u8C37\u6B4C\u65B0\u805E",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerMinute":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u5206\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u4EFD\u50B3\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u85A6\uFF09, \u5C07\u6703\u5728\u55AE\u7368\u4F5C\u70BA\u4E00\u6BB5\u767C\u9001\u7D66 OpenAI","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u50B3\u9001\u767C\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",clickToDisableExtension:"\u9EDE\u9078\u505C\u7528\u5957\u4EF6",clickToEnableExtension:"\u9EDE\u9078\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u9F20\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u7F6E\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u5B57\u7B26\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8B58\u5225\u70BA\u89F8\u767C\u5B57\u7B26\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u7981\u7528\u78BA\u8A8D",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",disableTint:"* \u60A8\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u555F\u7528\u3002",searchEnhancementNotes:"\u6211\u5011\u767C\u73FE\uFF0C\u4E2D\u6587\u95DC\u9375\u8A5E\u548C\u82F1\u6587\u95DC\u9375\u8A5E\u7684\u65B0\u805E\u7D50\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u555F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u4FE1\u606F\u589E\u5F37\u529F\u80FD\u5F8C\uFF0C\u6211\u5011\u6703\u5728\u652F\u6301\u7684\u7DB2\u7AD9\uFF08\u8C37\u6B4C\u65B0\u805E\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u95DC\u9375\u8A5E\uFF09\uFF0C\u96EA\u7403\uFF0C\u6771\u65B9\u8CA1\u5BCC\u7DB2\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52D5\u7528\u82F1\u6587\u70BA\u4F60\u641C\u7D22\u540C\u6A23\u7684\u95DC\u9375\u8A5E\u4E26\u5C55\u793A\u5728\u53F3\u5074\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8A72\u529F\u80FD\u7684\u8A71\uFF0C\u53EF\u4EE5\u9078\u64C7\u7981\u7528\u5B83\u3002",option:"\u9078\u9805",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL \u548C OpenAI \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8B6F",currentAccount:"\u7576\u524D\u8CEC\u6236"};var Dg={nologin:"Not logged in",login:"Login",manageAccount:"Manage Account",logout:"Logout",curentPlan:"Current Plan",endAt:"Expires",endAuto:"Auto Renew",lineBreakMaxTextCount:"Maximum number of characters allowed per sentence after line break","translate-pdf":"Click to translate PDF","noSupportTranslate-pdf":"The script is not supported, please use a plugin.","translate-firefox-local-pdf":"Click to upload PDF",enableLineBreak:"Whether to turn on automatic line wrapping for long paragraphs",sponsorLabel:"Sponsoring developers from $1 (monthly or one-time)",help:"Help",browserShortcutsNoteForFirefox:`To modify the shortcut key in Firefox browser, you need to open the extension management page 'about: addons', then click "Settings", and then click "Management shortcut key" to set it`,browserShortcutsNoteForChrome:"To modify the shortcut key in Chrome browser, you need to open the extension management page` chrome://extensions/shortcuts `) Settings, click the button below to jump to the shortcut key management page.",browserShortcutsSucks:"Please enter the shortcut key manually in the format:",enableLineBreakDescription:"After opening, a line break will be inserted at the end of each sentence in a long paragraph for easy reading","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate: Web Page&PDF Translation","browser.brandDescription":"Bilingual web page translation, also supports PDF translation, bilingual Epub eBook translation, free to use.","browser.toggleTranslatePage":"Toggle Translate Page","browser.toggleTranslateTheWholePage":"Toggle Translate the Whole Page","browser.toggleOnlyTransation":"Toggle Translate and Hide Original Text","browser.toggleTranslateToThePageEndImmediately":"Toggle Translate to the Bottom of the Page Immediately","browser.toggleTranslateTheMainPage":"Toggle Translate the Main Page","browser.openOptionsPage":"Open Settings Page","browser.toggleTranslationMask":"Toggle translation mask style","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-book","browser.openEbookBuilder":"Make Dual EPUB ebook","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.donateContext":"Sponsor Benefits","browser.translateLocalSubtitleFile":"Translate Subtitle File",confirmResetConfig:"Are you sure you want to reset the settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Create right button menu",toggleBeta:"Enable Beta experimental features",betaDescription:"Enable features that are still experimental, and translation services that are in testing. Join the <1>Telegram group to learn more.",translationLineBreakSettingDescription:"The always line break feature is suitable for layouts with less content, making the layout more neat and tidy. (Use smart line breaks for long paragraphs with more content (more than {count} characters) for saving space)",tempTranslateDomainTitle:"Open the translation time temporarily",tempTranslateDomainDescription:"When a page is translated manually, turn it temporarily on as automatic translation",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",toggleTranslatePageWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide translation display",toggleTranslationMaskWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide the blur effect of the translation",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"Multi-finger touch to show/hide only translation display",addUrlDescription:"The domain name is available and wildcard is supported e.g.: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import configuration from file",export:"Export to file",toggleDebug:"Print debug logs on the console","fingers.0":"Close","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch",mouseHoldKey:"+ {key} translate this paragraph",mouseHoldKeyAuto:"Translate the paragraph directly",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate this paragraph",mouseHoverHoldKey:"Mouse over and press X key to translate paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"All settings reset successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",goAdvancedSettings:"Go to Advanced Settings Page",goAdvancedInterfaceSettings:"Go to Advanced Custom Settings Page",advanced:"Advanced",advancedDescription:"Normally no settings are needed, keep the default. More personalized settings are provided for professional users only.",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"Translate to the bottom of the page immediately after opening the page?",feedback:"Feedback",toggleTranslatePage:"Toggle Translate",translateToThePageEndImmediatelyDescription:"Enabled will translate from the top to the bottom of the page immediately after opening. Disable will translate while reading. (Not recommended to enable)","translate all areas of the page":"Whether to translate all areas of the web page",translationAreaDescription:"When enabled, all areas of the entire web page will be translated. Disabled will use the default smart recognition and translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Directly translate the number of characters in front of the page without waiting to scroll to the visible area","interface language":"Interface language","display both the original text and the translation":"Display both the original text and the translation","keyboard shortcuts":"Keyboard shortcuts",modify:"Edit",reset:"Reset",close:"Close",homepage:"Home Page",more:"More",moreOptions:"Expand more custom settings",translateTheWholePage:"Translate the whole page area",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Dual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"Main areas of intelligent translation","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly implement the interface of the Greasemonkey extension, please use another browser that <1>supports the Greasemonkey extension such as (Firefox Nightly version)",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:"Unknown Error",canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha enabled successfully",disableAlphaSuccess:"Alpha has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(to set up)",goSettings:"to set up",needActionForOptions:"(need to set)",translationEngine:"Engine Options",sourceLanguage:"Original language",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",forThisSite:"Site:",alwaysTranslateSomeLanguage:"Always translate {language}",neverTranslateSomeLanguage:"Never translate {language}",alwaysTranslateSomeSite:"Always translate {hostname}",neverTranslateSomeSite:"Never translate {hostname}",alwaysTranslateSomeSiteOrWildSite:"Always translate this site",alwaysTranslateSomePage:"Always translate this page",add:"Add",default:"Default",forThisLanguage:"For This Language:","add url":"Add URL",edit:"Edit","translate other languages into specific language":"Translate other languages into the language you set","select translation service":"Select a translation service",language:"Language","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",Error:"Error",allowCacheTranslations:"Enable local translation caching (reduce translation requests for duplicate paragraphs)","translation display":"Translation display style","select diplay style":"Please refer to the following examples",interface:"Interface Settings",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dashed underline","translationTheme.dotted":"Dotted Underline","translationTheme.dashedBorder":"Dashed Border","translationTheme.solidBorder":"Dashed Border","translationTheme.underline":"Straight underline","translationTheme.mask":"Blur effect","translationTheme.opacity":"Opacity effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weakening","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dashed underline","translationTheme.nativeDashed":"System Dash Underline","translationTheme.nativeDotted":"System Dotted Underline","translationTheme.nativeUnderline":"System Straight Line Underline","translationTheme.wavy":"Squiggle","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeeplX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"Translate page title","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped",enableUserscriptPagePopup:"Always show Popup windows on the page",enableUserscriptPagePopupDescription:"Three-finger touch to show the Popup.","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",currentUrl:"Current URL",confirm:"Save",cancel:"Cancel",delete:"Delete","languages.auto":"Detect Language",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",authFail:"Authorization Failed",syncTitle:"Please select a file operation",import_hint:"Import",upload:"Upload",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",download:"Download",importSuccess:"Upload Success",importFail:"Import Failed",deleteFail:"Delete Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",backupToCloudDescription:"Upload or restore backup files manually, up to 3 different backups",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",updatedAt:"Updated at {date}",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. You can choose to subscribe to <6>Pro membership to use the out-of-the-box DeepL and OpenAI translation.

You can also follow out <3>Twitter, <4>Telegram Channel, and <5>Email Subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free and we hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. ",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",qqCommunities:"QQ Channel",joinTelegramChannel:"Subscribe to our Telegram channel to get the latest updates",feedbackAndJoin:"Feedback",autoSync:"Auto-Time Sync",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization","edit border color":"Edit border color",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",enableSubtitle:"enableSubtitleTranslation",enableSubtitleDescription:"Enable translations for subtitle areas on sites like youtube",isTranslateTitleDescription:"When enabled, the page title will be translated",enableSearchEnhancement:"Enable Search Enhancement",enableSearchEnhancementDescription:'After enabling, the right sidebar will automatically display "Google News" search results for corresponding English keywords on supported websites (such as Google News, Google Search (partial keywords), Xueqiu, East Money, Futu, Tiger Community).',verifyService:"Verify service",verified:"Successful","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerMinute":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next minute. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"Requests exceed this limit will be queued until the next seconds.","description.prompt":"Send as a user to OpenAI conversation, where {{text}} indicates the text of the paragraph,{{from}} indicates the language of the paragraph,{{to}} indicates the target language, you can omit {{text}}, if so, it'll be sent as a separated message","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"Send the conversation to OpenAI as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the original language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"Default is\uFF1Ageneral. Only set up if there is an API console open domain translation, support fields see <1>Here ","field.scene":"Scene","description.scene":"Default is\uFF1Ageneral. Only set up if there is an API console open Machine Translation Professional, support fields see<1>Here","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please provide a URL with the specific path.",enabledExtension:"Enable extensions",clickToDisableExtension:"Click to disable extension",clickToEnableExtension:"Click to enable the extension",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter customization content",inputOptions:"Writing",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter for translating part of the input box.",inputStartingTriggerKeyDescription:"When you don't need to translate the entire input box, the delimiter allows you to only translate the portion from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means only translating the portion from {startingKey}ja to the end of the input box.",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting is no prefix required, the partial text translation function of the input box cannot be used temporarily.",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Start the translation by quickly pressing 3 times {trailingKey}.",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time (milliseconds) for the input to end the combo trigger",spaceKey:"",noneKey:"Translate the entire text box without prefixes",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement in the following URL",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",clickToSeeQuickDemo:"Click to expand the 30s tutorial video",inputHelperInfo:`Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001". +`,PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",OPTIONS_URL:"https://dash.immersivetranslate.com/",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",MOCK:"0",DEBUG:"0",INSTALL_FROM:"chrome_zip"}});var lh=Zh((ws,lu)=>{h();(function(){var e;function t(g){var y,w,b="",S=-1,D;if(g&&g.length)for(D=g.length;(S+=1)>>6&31,128|y&63):y<=65535?b+=String.fromCharCode(224|y>>>12&15,128|y>>>6&63,128|y&63):y<=2097151&&(b+=String.fromCharCode(240|y>>>18&7,128|y>>>12&63,128|y>>>6&63,128|y&63));return b}function n(g){var y,w,b,S,D,N=[],_;if(y=w=b=S=D=0,g&&g.length)for(_=g.length,g+="";y<_;)b=g.charCodeAt(y),w+=1,b<128?(N[w]=String.fromCharCode(b),y+=1):b>191&&b<224?(S=g.charCodeAt(y+1),N[w]=String.fromCharCode((b&31)<<6|S&63),y+=2):(S=g.charCodeAt(y+1),D=g.charCodeAt(y+2),N[w]=String.fromCharCode((b&15)<<12|(S&63)<<6|D&63),y+=3);return N.join("")}function a(g,y){var w=(g&65535)+(y&65535),b=(g>>16)+(y>>16)+(w>>16);return b<<16|w&65535}function r(g,y){return g<>>32-y}function o(g,y){for(var w=y?"0123456789ABCDEF":"0123456789abcdef",b="",S,D=0,N=g.length;D>>4&15)+w.charAt(S&15);return b}function u(g){var y,w=g.length,b="";for(y=0;y>>8&255);return b}function i(g){var y,w=g.length,b="";for(y=0;y>>8&255,g.charCodeAt(y)&255);return b}function s(g){var y,w=g.length*32,b="";for(y=0;y>5]>>>24-y%32&255);return b}function c(g){var y,w=g.length*32,b="";for(y=0;y>5]>>>y%32&255);return b}function l(g){var y,w=g.length*8,b=Array(g.length>>2),S=b.length;for(y=0;y>5]|=(g.charCodeAt(y/8)&255)<>2),S=b.length;for(y=0;y>5]|=(g.charCodeAt(y/8)&255)<<24-y%32;return b}function p(g,y){var w=y.length,b=Array(),S,D,N,_,x,E,T,v;for(E=Array(Math.ceil(g.length/2)),_=E.length,S=0;S<_;S+=1)E[S]=g.charCodeAt(S*2)<<8|g.charCodeAt(S*2+1);for(;E.length>0;){for(x=Array(),N=0,S=0;S0||D>0)&&(x[x.length]=D);b[b.length]=N,E=x}for(T="",S=b.length-1;S>=0;S--)T+=y.charAt(b[S]);for(v=Math.ceil(g.length*8/(Math.log(y.length)/Math.log(2))),S=T.length;Sg.length*8?b+=y:b+=w.charAt(_>>>6*(3-N)&63);return b}e={VERSION:"1.0.6",Base64:function(){var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y="=",w=!1,b=!0;this.encode=function(S){var D,N,_,x="";for(y=y||"=",S=b?t(S):S,len=S.length,D=0;Dlen*8?x+=y:x+=g.charAt(_>>>6*(3-N)&63);return x},this.decode=function(S){var D,N,_,x,E,T,v,C,R,M,k="",P=[];if(!S)return S;D=M=0,S=S.replace(new RegExp("\\"+y,"gi"),"");do E=g.indexOf(S.charAt(D++)),T=g.indexOf(S.charAt(D++)),v=g.indexOf(S.charAt(D++)),C=g.indexOf(S.charAt(D++)),R=E<<18|T<<12|v<<6|C,N=R>>16&255,_=R>>8&255,x=R&255,M+=1,v===64?P[M]=String.fromCharCode(N):C===64?P[M]=String.fromCharCode(N,_):P[M]=String.fromCharCode(N,_,x);while(D>>8^w;return(y^-1)>>>0},MD5:function(g){var y=g&&typeof g.uppercase=="boolean"?g.uppercase:!1,w=g&&typeof g.pad=="string"?g.pad:"=",b=g&&typeof g.utf8=="boolean"?g.utf8:!0;this.hex=function(C){return o(S(C,b),y)},this.b64=function(C){return f(S(C),w)},this.any=function(C,R){return p(S(C,b),R)},this.raw=function(C){return S(C,b)},this.hex_hmac=function(C,R){return o(D(C,R),y)},this.b64_hmac=function(C,R){return f(D(C,R),w)},this.any_hmac=function(C,R,M){return p(D(C,R),M)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(C){return typeof C=="boolean"&&(y=C),this},this.setPad=function(C){return w=C||w,this},this.setUTF8=function(C){return typeof C=="boolean"&&(b=C),this};function S(C){return C=b?t(C):C,c(N(l(C),C.length*8))}function D(C,R){var M,k,P,O,j;for(C=b?t(C):C,R=b?t(R):R,M=l(C),M.length>16&&(M=N(M,C.length*8)),k=Array(16),P=Array(16),j=0;j<16;j+=1)k[j]=M[j]^909522486,P[j]=M[j]^1549556828;return O=N(k.concat(l(R)),512+R.length*8),c(N(P.concat(O),512+128))}function N(C,R){var M,k,P,O,j,B=1732584193,A=-271733879,L=-1732584194,U=271733878;for(C[R>>5]|=128<>>9<<4)+14]=R,M=0;M16&&(v=N(v,E.length*8)),C=Array(16),R=Array(16),M=0;M<16;M+=1)C[M]=v[M]^909522486,R[M]=v[M]^1549556828;return k=N(C.concat(m(T)),512+T.length*8),s(N(R.concat(k),512+160))}function N(E,T){var v,C,R,M,k,P,O,j,B=Array(80),A=1732584193,L=-271733879,U=-1732584194,K=271733878,H=-1009589776;for(E[T>>5]|=128<<24-T%32,E[(T+64>>9<<4)+15]=T,v=0;v16&&(H=B(H,A.length*8));K<16;K+=1)V[K]=H[K]^909522486,q[K]=H[K]^1549556828;return U=B(V.concat(m(L)),512+L.length*8),s(B(q.concat(U),512+256))}function _(A,L){return A>>>L|A<<32-L}function x(A,L){return A>>>L}function E(A,L,U){return A&L^~A&U}function T(A,L,U){return A&L^A&U^L&U}function v(A){return _(A,2)^_(A,13)^_(A,22)}function C(A){return _(A,6)^_(A,11)^_(A,25)}function R(A){return _(A,7)^_(A,18)^x(A,3)}function M(A){return _(A,17)^_(A,19)^x(A,10)}function k(A){return _(A,28)^_(A,34)^_(A,39)}function P(A){return _(A,14)^_(A,18)^_(A,41)}function O(A){return _(A,1)^_(A,8)^x(A,7)}function j(A){return _(A,19)^_(A,61)^x(A,6)}S=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function B(A,L){var U=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],K=new Array(64),H,V,q,oe,Q,J,ye,xe,ie,Y,ce,fe;for(A[L>>5]|=128<<24-L%32,A[(L+64>>9<<4)+15]=L,ie=0;ie32&&(A=_(A,P.length*8));B<32;B+=1)L[B]=A[B]^909522486,U[B]=A[B]^1549556828;return j=_(L.concat(m(O)),1024+O.length*8),s(_(U.concat(j),1024+512))}function _(P,O){var j,B,A,L=new Array(80),U=new Array(16),K=[new x(1779033703,-205731576),new x(-1150833019,-2067093701),new x(1013904242,-23791573),new x(-1521486534,1595750129),new x(1359893119,-1377402159),new x(-1694144372,725511199),new x(528734635,-79577749),new x(1541459225,327033209)],H=new x(0,0),V=new x(0,0),q=new x(0,0),oe=new x(0,0),Q=new x(0,0),J=new x(0,0),ye=new x(0,0),xe=new x(0,0),ie=new x(0,0),Y=new x(0,0),ce=new x(0,0),fe=new x(0,0),ge=new x(0,0),Ee=new x(0,0),Le=new x(0,0),ve=new x(0,0),ee=new x(0,0);for(S===void 0&&(S=[new x(1116352408,-685199838),new x(1899447441,602891725),new x(-1245643825,-330482897),new x(-373957723,-2121671748),new x(961987163,-213338824),new x(1508970993,-1241133031),new x(-1841331548,-1357295717),new x(-1424204075,-630357736),new x(-670586216,-1560083902),new x(310598401,1164996542),new x(607225278,1323610764),new x(1426881987,-704662302),new x(1925078388,-226784913),new x(-2132889090,991336113),new x(-1680079193,633803317),new x(-1046744716,-815192428),new x(-459576895,-1628353838),new x(-272742522,944711139),new x(264347078,-1953704523),new x(604807628,2007800933),new x(770255983,1495990901),new x(1249150122,1856431235),new x(1555081692,-1119749164),new x(1996064986,-2096016459),new x(-1740746414,-295247957),new x(-1473132947,766784016),new x(-1341970488,-1728372417),new x(-1084653625,-1091629340),new x(-958395405,1034457026),new x(-710438585,-1828018395),new x(113926993,-536640913),new x(338241895,168717936),new x(666307205,1188179964),new x(773529912,1546045734),new x(1294757372,1522805485),new x(1396182291,-1651133473),new x(1695183700,-1951439906),new x(1986661051,1014477480),new x(-2117940946,1206759142),new x(-1838011259,344077627),new x(-1564481375,1290863460),new x(-1474664885,-1136513023),new x(-1035236496,-789014639),new x(-949202525,106217008),new x(-778901479,-688958952),new x(-694614492,1432725776),new x(-200395387,1467031594),new x(275423344,851169720),new x(430227734,-1194143544),new x(506948616,1363258195),new x(659060556,-544281703),new x(883997877,-509917016),new x(958139571,-976659869),new x(1322822218,-482243893),new x(1537002063,2003034995),new x(1747873779,-692930397),new x(1955562222,1575990012),new x(2024104815,1125592928),new x(-2067236844,-1578062990),new x(-1933114872,442776044),new x(-1866530822,593698344),new x(-1538233109,-561857047),new x(-1090935817,-1295615723),new x(-965641998,-479046869),new x(-903397682,-366583396),new x(-779700025,566280711),new x(-354779690,-840897762),new x(-176337025,-294727304),new x(116418474,1914138554),new x(174292421,-1563912026),new x(289380356,-1090974290),new x(460393269,320620315),new x(685471733,587496836),new x(852142971,1086792851),new x(1017036298,365543100),new x(1126000580,-1676669620),new x(1288033470,-885112138),new x(1501505948,-60457430),new x(1607167915,987167468),new x(1816402316,1246189591)]),B=0;B<80;B+=1)L[B]=new x(0,0);for(P[O>>5]|=128<<24-(O&31),P[(O+128>>10<<5)+31]=O,A=P.length,B=0;B>>j|O.h<<32-j,P.h=O.h>>>j|O.l<<32-j}function v(P,O,j){P.l=O.h>>>j|O.l<<32-j,P.h=O.l>>>j|O.h<<32-j}function C(P,O,j){P.l=O.l>>>j|O.h<<32-j,P.h=O.h>>>j}function R(P,O,j){var B=(O.l&65535)+(j.l&65535),A=(O.l>>>16)+(j.l>>>16)+(B>>>16),L=(O.h&65535)+(j.h&65535)+(A>>>16),U=(O.h>>>16)+(j.h>>>16)+(L>>>16);P.l=B&65535|A<<16,P.h=L&65535|U<<16}function M(P,O,j,B,A){var L=(O.l&65535)+(j.l&65535)+(B.l&65535)+(A.l&65535),U=(O.l>>>16)+(j.l>>>16)+(B.l>>>16)+(A.l>>>16)+(L>>>16),K=(O.h&65535)+(j.h&65535)+(B.h&65535)+(A.h&65535)+(U>>>16),H=(O.h>>>16)+(j.h>>>16)+(B.h>>>16)+(A.h>>>16)+(K>>>16);P.l=L&65535|U<<16,P.h=K&65535|H<<16}function k(P,O,j,B,A,L){var U=(O.l&65535)+(j.l&65535)+(B.l&65535)+(A.l&65535)+(L.l&65535),K=(O.l>>>16)+(j.l>>>16)+(B.l>>>16)+(A.l>>>16)+(L.l>>>16)+(U>>>16),H=(O.h&65535)+(j.h&65535)+(B.h&65535)+(A.h&65535)+(L.h&65535)+(K>>>16),V=(O.h>>>16)+(j.h>>>16)+(B.h>>>16)+(A.h>>>16)+(L.h>>>16)+(H>>>16);P.l=U&65535|K<<16,P.h=H&65535|V<<16}},RMD160:function(g){var y=g&&typeof g.uppercase=="boolean"?g.uppercase:!1,w=g&&typeof g.pad=="string"?g.pa:"=",b=g&&typeof g.utf8=="boolean"?g.utf8:!0,S=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],D=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],N=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],_=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(k){return o(x(k,b))},this.b64=function(k){return f(x(k,b),w)},this.any=function(k,P){return p(x(k,b),P)},this.raw=function(k){return x(k,b)},this.hex_hmac=function(k,P){return o(E(k,P))},this.b64_hmac=function(k,P){return f(E(k,P),w)},this.any_hmac=function(k,P,O){return p(E(k,P),O)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(k){return typeof k=="boolean"&&(y=k),this},this.setPad=function(k){return typeof k<"u"&&(w=k),this},this.setUTF8=function(k){return typeof k=="boolean"&&(b=k),this};function x(k){return k=b?t(k):k,T(v(l(k),k.length*8))}function E(k,P){k=b?t(k):k,P=b?t(P):P;var O,j,B=l(k),A=Array(16),L=Array(16);for(B.length>16&&(B=v(B,k.length*8)),O=0;O<16;O+=1)A[O]=B[O]^909522486,L[O]=B[O]^1549556828;return j=v(A.concat(l(P)),512+P.length*8),T(v(L.concat(j),512+160))}function T(k){var P,O="",j=k.length*32;for(P=0;P>5]>>>P%32&255);return O}function v(k,P){var O,j,B,A,L=1732584193,U=4023233417,K=2562383102,H=271733878,V=3285377520,q,oe,Q,J,ye,xe,ie,Y,ce,fe;for(k[P>>5]|=128<>>9<<4)+14]=P,A=k.length,B=0;Bfunction(){return t||(0,e[R4(e)[0]])((t={exports:{}}).exports,t),t.exports},s2=(e,t)=>{for(var n in t)Is(e,n,{get:t[n],enumerable:!0})},Rs=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of R4(t))!u2.call(e,r)&&r!==n&&Is(e,r,{get:()=>t[r],enumerable:!(a=r2(t,r))||a.enumerable});return e},l2=(e,t,n)=>(Rs(e,t,"default"),n&&Rs(n,t,"default")),I4=(e,t,n)=>(n=e!=null?a2(o2(e)):{},Rs(t||!e||!e.__esModule?Is(n,"default",{value:e,enumerable:!0}):n,e)),O4=i2({"../esmd/npm/webextension-polyfill@0.10.0/node_modules/webextension-polyfill/dist/browser-polyfill.js"(e,t){(function(n,a){if(typeof define=="function"&&define.amd)define("webextension-polyfill",["module"],a);else if(typeof e<"u")a(t);else{var r={exports:{}};a(r),n.browser=r.exports}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:e,function(n){"use strict";if(!globalThis.chrome?.runtime?.id)throw new Error("This script should only be loaded in a browser extension.");if(typeof globalThis.browser>"u"||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){let a="The message port closed before a response was received.",r=o=>{let u={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(Object.keys(u).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class i extends WeakMap{constructor(E,T=void 0){super(T),this.createItem=E}get(E){return this.has(E)||this.set(E,this.createItem(E)),super.get(E)}}let s=x=>x&&typeof x=="object"&&typeof x.then=="function",c=(x,E)=>(...T)=>{o.runtime.lastError?x.reject(new Error(o.runtime.lastError.message)):E.singleCallbackArg||T.length<=1&&E.singleCallbackArg!==!1?x.resolve(T[0]):x.resolve(T)},l=x=>x==1?"argument":"arguments",m=(x,E)=>function(v,...C){if(C.lengthE.maxArgs)throw new Error(`Expected at most ${E.maxArgs} ${l(E.maxArgs)} for ${x}(), got ${C.length}`);return new Promise((R,M)=>{if(E.fallbackToNoCallback)try{v[x](...C,c({resolve:R,reject:M},E))}catch{v[x](...C),E.fallbackToNoCallback=!1,E.noCallback=!0,R()}else E.noCallback?(v[x](...C),R()):v[x](...C,c({resolve:R,reject:M},E))})},p=(x,E,T)=>new Proxy(E,{apply(v,C,R){return T.call(C,x,...R)}}),f=Function.call.bind(Object.prototype.hasOwnProperty),g=(x,E={},T={})=>{let v=Object.create(null),C={has(M,k){return k in x||k in v},get(M,k,P){if(k in v)return v[k];if(!(k in x))return;let O=x[k];if(typeof O=="function")if(typeof E[k]=="function")O=p(x,x[k],E[k]);else if(f(T,k)){let j=m(k,T[k]);O=p(x,x[k],j)}else O=O.bind(x);else if(typeof O=="object"&&O!==null&&(f(E,k)||f(T,k)))O=g(O,E[k],T[k]);else if(f(T,"*"))O=g(O,E[k],T["*"]);else return Object.defineProperty(v,k,{configurable:!0,enumerable:!0,get(){return x[k]},set(j){x[k]=j}}),O;return v[k]=O,O},set(M,k,P,O){return k in v?v[k]=P:x[k]=P,!0},defineProperty(M,k,P){return Reflect.defineProperty(v,k,P)},deleteProperty(M,k){return Reflect.deleteProperty(v,k)}},R=Object.create(x);return new Proxy(R,C)},y=x=>({addListener(E,T,...v){E.addListener(x.get(T),...v)},hasListener(E,T){return E.hasListener(x.get(T))},removeListener(E,T){E.removeListener(x.get(T))}}),w=new i(x=>typeof x!="function"?x:function(T){let v=g(T,{},{getContent:{minArgs:0,maxArgs:0}});x(v)}),b=new i(x=>typeof x!="function"?x:function(T,v,C){let R=!1,M,k=new Promise(B=>{M=function(A){R=!0,B(A)}}),P;try{P=x(T,v,M)}catch(B){P=Promise.reject(B)}let O=P!==!0&&s(P);if(P!==!0&&!O&&!R)return!1;let j=B=>{B.then(A=>{C(A)},A=>{let L;A&&(A instanceof Error||typeof A.message=="string")?L=A.message:L="An unexpected error occurred",C({__mozWebExtensionPolyfillReject__:!0,message:L})}).catch(A=>{})};return j(O?P:k),!0}),S=({reject:x,resolve:E},T)=>{o.runtime.lastError?o.runtime.lastError.message===a?E():x(new Error(o.runtime.lastError.message)):T&&T.__mozWebExtensionPolyfillReject__?x(new Error(T.message)):E(T)},D=(x,E,T,...v)=>{if(v.lengthE.maxArgs)throw new Error(`Expected at most ${E.maxArgs} ${l(E.maxArgs)} for ${x}(), got ${v.length}`);return new Promise((C,R)=>{let M=S.bind(null,{resolve:C,reject:R});v.push(M),T.sendMessage(...v)})},N={devtools:{network:{onRequestFinished:y(w)}},runtime:{onMessage:y(b),onMessageExternal:y(b),sendMessage:D.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:D.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},_={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return u.privacy={network:{"*":_},services:{"*":_},websites:{"*":_}},g(o,N,u)};n.exports=r(chrome)}else n.exports=globalThis.browser})}}),N4={};s2(N4,{default:()=>yu});var c2=I4(O4());l2(N4,I4(O4()));var{default:B4,...d2}=c2,yu=B4!==void 0?B4:d2;globalThis.immersiveTranslateBrowserAPI=yu;h();h();h();h();var wu,Se,q4,g2,co,U4,W4,Eu={},K4=[],m2=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function pa(e,t){for(var n in t)e[n]=t[n];return e}function $4(e){var t=e.parentNode;t&&t.removeChild(e)}function Ns(e,t,n){var a,r,o,u={};for(o in t)o=="key"?a=t[o]:o=="ref"?r=t[o]:u[o]=t[o];if(arguments.length>2&&(u.children=arguments.length>3?wu.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)u[o]===void 0&&(u[o]=e.defaultProps[o]);return xu(e,u,a,r,null)}function xu(e,t,n,a,r){var o={type:e,props:t,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++q4};return r==null&&Se.vnode!=null&&Se.vnode(o),o}function Fe(e){return e.children}function Tu(e,t){this.props=e,this.context=t}function br(e,t){if(t==null)return e.__?br(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?xu(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=n,f.__b=n.__b+1,(p=b[l])===null||p&&f.key==p.key&&f.type===p.type)b[l]=void 0;else for(m=0;m=n.__.length&&n.__.push({__V:Au}),n.__[e]}function $(e){return go=1,b2(ld,e)}function b2(e,t,n){var a=Su(mo++,2);if(a.t=e,!a.__c&&(a.__=[n?n(t):ld(void 0,t),function(o){var u=a.__N?a.__N[0]:a.__[0],i=a.t(u,o);u!==i&&(a.__N=[i,a.__[1]],a.__c.setState({}))}],a.__c=st,!st.u)){st.u=!0;var r=st.shouldComponentUpdate;st.shouldComponentUpdate=function(o,u,i){if(!a.__c.__H)return!0;var s=a.__c.__H.__.filter(function(l){return l.__c});if(s.every(function(l){return!l.__N}))return!r||r.call(this,o,u,i);var c=!1;return s.forEach(function(l){if(l.__N){var m=l.__[0];l.__=l.__N,l.__N=void 0,m!==l.__[0]&&(c=!0)}}),!!c&&(!r||r.call(this,o,u,i))}}return a.__N||a.__}function he(e,t){var n=Su(mo++,3);!Se.__s&&sd(n.__H,t)&&(n.__=e,n.i=t,st.__H.__h.push(n))}function zn(e){return go=5,fa(function(){return{current:e}},[])}function fa(e,t){var n=Su(mo++,7);return sd(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function dn(e,t){return go=8,fa(function(){return e},t)}function Ye(e){var t=st.context[e.__c],n=Su(mo++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(st)),t.props.value):e.__}function y2(){for(var e;e=id.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ku),e.__H.__h.forEach(zs),e.__H.__h=[]}catch(t){e.__H.__h=[],Se.__e(t,e.__v)}}Se.__b=function(e){typeof e.type!="function"||e.o||e.type===Fe?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),st=null,td&&td(e)},Se.__r=function(e){nd&&nd(e),mo=0;var t=(st=e.__c).__H;t&&(js===st?(t.__h=[],st.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Au,n.__N=n.i=void 0})):(t.__h.forEach(ku),t.__h.forEach(zs),t.__h=[])),js=st},Se.diffed=function(e){ad&&ad(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(id.push(t)!==1&&ed===Se.requestAnimationFrame||((ed=Se.requestAnimationFrame)||x2)(y2)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Au&&(n.__=n.__V),n.i=void 0,n.__V=Au})),js=st=null},Se.__c=function(e,t){t.some(function(n){try{n.__h.forEach(ku),n.__h=n.__h.filter(function(a){return!a.__||zs(a)})}catch(a){t.some(function(r){r.__h&&(r.__h=[])}),t=[],Se.__e(a,n.__v)}}),rd&&rd(e,t)},Se.unmount=function(e){od&&od(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(a){try{ku(a)}catch(r){t=r}}),n.__H=void 0,t&&Se.__e(t,n.__v))};var ud=typeof requestAnimationFrame=="function";function x2(e){var t,n=function(){clearTimeout(a),ud&&cancelAnimationFrame(t),setTimeout(e)},a=setTimeout(n,100);ud&&(t=requestAnimationFrame(n))}function ku(e){var t=st,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),st=t}function zs(e){var t=st;e.__c=e.__(),st=t}function sd(e,t){return!e||e.length!==t.length||t.some(function(n,a){return n!==e[a]})}function ld(e,t){return typeof t=="function"?t(e):t}h();h();h();var po;function Xs(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function xd(e,t=","){return e.map(Xs).join(t)}var e0=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function xr(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function Lu(e,t="@media "){return t+He(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(a=>`(${a}-width:${n[a]})`).join(" and "))).join(",")}function He(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function cd(e){return e}function ho(){}var gt={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function Td(e){return e.match(/[-=:;]/g)?.length||0}function Gs(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(Td(e),15)<<18}var T2=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function t0({n:e,i:t,v:n=[]},a,r,o){e&&(e=Xs({n:e,i:t,v:n})),o=[...He(o)];for(let i of n){let s=a.theme("screens",i);for(let c of He(s&&Lu(s)||a.v(i))){var u;o.push(c),r|=s?67108864|Gs(c):i=="dark"?1073741824:c[0]=="@"?Gs(c):(u=c,1<<~(/:([a-z-]+)/.test(u)&&~T2.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:r,r:o,i:t}}var n0=new Map;function Vs(e){if(e.d){let t=[],n=Hs(e.r.reduce((a,r)=>r[0]=="@"?(t.push(r),a):r?Hs(a,o=>Hs(r,u=>{let i=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(u);if(i){let s=o.indexOf(i[1]);return~s?o.slice(0,s)+i[0]+o.slice(s+i[1].length):qs(o,u)}return qs(u,o)})):a,"&"),a=>qs(a,e.n?"."+e0(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((a,r)=>r+"{"+a+"}",e.d)}}function Hs(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,a,r)=>t(a)+r)}function qs(e,t){return e.replace(/&/g,t)}var dd=new Intl.Collator("en",{numeric:!0});function Ed(e,t){for(var n=0,a=e.length;n>1;0>=Cd(e[r],t)?n=r+1:a=r}return a}function Cd(e,t){let n=e.p>.o;return n==(t.p>.o)&&(n==gt.b||n==gt.o)?0:e.p-t.p||e.o-t.o||dd.compare(gd(e.n),gd(t.n))||dd.compare(md(e.n),md(t.n))}function gd(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function md(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function Ws(e,t){return Math.round(parseInt(e,16)*t)}function Xn(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:a}=t,r=a?`var(${a})`:n;if(e.includes(""))return e.replace("",r);if(e[0]=="#"&&(e.length==4||e.length==7)){let o=(e.length-1)/3,u=[17,1,.062272][o-1];return`rgba(${[Ws(e.substr(1,o),u),Ws(e.substr(1+o,o),u),Ws(e.substr(1+2*o,o),u),r]})`}return r=="1"?e:r=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${r})`)}function a0(e,t,n,a,r=[]){return function o(u,{n:i,p:s,r:c=[],i:l},m){let p=[],f="",g=0,y=0;for(let S in u||{}){var w,b;let D=u[S];if(S[0]=="@"){if(!D)continue;if(S[1]=="a"){p.push(...u0(i,s,fo(""+D),m,s,c,l,!0));continue}if(S[1]=="l"){for(let N of He(D))p.push(...o(N,{n:i,p:(w=gt[S[7]],s&~gt.o|w),r:S[7]=="d"?[]:c,i:l},m));continue}if(S[1]=="i"){p.push(...He(D).map(N=>({p:-1,o:0,r:[],d:S+" "+N})));continue}if(S[1]=="k"){p.push({p:gt.d,o:0,r:[S],d:o(D,{p:gt.d},m).map(Vs).join("")});continue}if(S[1]=="f"){p.push(...He(D).map(N=>({p:gt.d,o:0,r:[S],d:o(N,{p:gt.d},m).map(Vs).join("")})));continue}}if(typeof D!="object"||Array.isArray(D))S=="label"&&D?i=D+xr(JSON.stringify([s,l,u])):(D||D===0)&&(S=S.replace(/[A-Z]/g,N=>"-"+N.toLowerCase()),y+=1,g=Math.max(g,(b=S)[0]=="-"?0:Td(b)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(b)?+!!RegExp.$1||-!!RegExp.$2:0)+1),f+=(f?";":"")+He(D).map(N=>m.s(S,r0(""+N,m.theme)+(l?" !important":""))).join(";"));else if(S[0]=="@"||S.includes("&")){let N=s;S[0]=="@"&&(S=S.replace(/\bscreen\(([^)]+)\)/g,(_,x)=>{let E=m.theme("screens",x);return E?(N|=67108864,Lu(E,"")):_}),N|=Gs(S)),p.push(...o(D,{n:i,p:N,r:[...c,S],i:l},m))}else p.push(...o(D,{p:s,r:[...c,S]},m))}return p.unshift({n:i,p:s,o:Math.max(0,15-y)+1.5*Math.min(g||15,15),r:c,d:f}),p.sort(Cd)}(e,t0(t,n,a,r),n)}function r0(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,a,r,o,u="")=>{let i=t(r,u);return typeof i=="function"&&/color|fill|stroke/i.test(r)?Xn(i):""+He(i).filter(s=>Object(s)!==s)})}function o0(e,t){let n,a=[];for(let r of e)r.d&&r.n?n?.p==r.p&&""+n.r==""+r.r?(n.c=[n.c,r.c].filter(Boolean).join(" "),n.d=n.d+";"+r.d):a.push(n={...r,n:r.n&&t}):a.push({...r,n:r.n&&t});return a}function Du(e,t,n=gt.u,a,r){let o=[];for(let u of e)for(let i of function(s,c,l,m,p){s={...s,i:s.i||p};let f=function(g,y){let w=n0.get(g.n);return w?w(g,y):y.r(g.n,g.v[0]=="dark")}(s,c);return f?typeof f=="string"?({r:m,p:l}=t0(s,c,l,m),o0(Du(fo(f),c,l,m,s.i),s.n)):Array.isArray(f)?f.map(g=>{var y,w;return{o:0,...g,r:[...He(m),...He(g.r)],p:(y=l,w=g.p??l,y&~gt.o|w)}}):a0(f,s,c,l,m):[{c:Xs(s),p:0,o:0,r:[]}]}(u,t,n,a,r))o.splice(Ed(o,i),0,i);return o}function u0(e,t,n,a,r,o,u,i){return o0((i?n.flatMap(s=>Du([s],a,r,o,u)):Du(n,a,r,o,u)).map(s=>s.p>.o&&(s.n||t==gt.b)?{...s,p:s.p&~gt.o|t,o:0}:s),e)}function E2(e,t,n,a){var r;return r=(o,u)=>{let{n:i,p:s,r:c,i:l}=t0(o,u,t);return n&&u0(i,t,n,u,s,c,l,a)},n0.set(e,r),e}function Ks(e,t,n){if(e[e.length-1]!="("){let a=[],r=!1,o=!1,u="";for(let i of e)if(!(i=="("||/[~@]$/.test(i))){if(i[0]=="!"&&(i=i.slice(1),r=!r),i.endsWith(":")){a[i=="dark:"?"unshift":"push"](i.slice(0,-1));continue}i[0]=="-"&&(i=i.slice(1),o=!o),i.endsWith("-")&&(i=i.slice(0,-1)),i&&i!="&"&&(u+=(u&&"-")+i)}u&&(o&&(u="-"+u),t[0].push({n:u,v:a.filter(C2),i:r}))}}function C2(e,t,n){return n.indexOf(e)==t}var pd=new Map;function fo(e){let t=pd.get(e);if(!t){let n=[],a=[[]],r=0,o=0,u=null,i=0,s=(c,l=0)=>{r!=i&&(n.push(e.slice(r,i+l)),c&&Ks(n,a)),r=i+1};for(;i1?m.slice(0,-1)+xr(JSON.stringify([m,p])):m+"("+xd(p)+")",gt.a,p,/@$/.test(m))],a)}l=n.lastIndexOf("(",l-1)}n.length=l+1}else/[~@]/.test(c)&&e[i+1]=="("&&a.unshift([])}s(!0),pd.set(e,t=a[0])}return t}function vd(e,t,n){return t.reduce((a,r,o)=>a+n(r)+e[o+1],e[0])}function wd(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?vd(e,t,n=>$s(n).trim()):t.filter(Boolean).reduce((n,a)=>n+$s(a),e?$s(e):"")}function $s(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=wd(e[0],e.slice(1)))&&(n+=" "+t);else for(let a in e)e[a]&&(n+=" "+a);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var iE=Ad("@"),sE=Ad("~");function Ad(e){return new Proxy(function(n,...a){return t("",n,a)},{get(n,a){return a in n?n[a]:function(r,...o){return t(a,r,o)}}});function t(n,a,r){return xd(fo(n+e+"("+wd(a,r)+")"))}}function Ys(e,t){return Array.isArray(e)?fd(vd(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?fd(e):[e]}var v2=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function fd(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],a=[n[0]],r=[];for(;t=v2.exec(e);)t[4]&&(n.shift(),r.shift()),t[3]?(r.unshift(t[3]),n.unshift({}),a.push(r.reduce((o,u)=>({[u]:o}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),a.push(r.reduce((o,u)=>({[u]:o}),n[0]))),n[0][t[1]]=t[2]);return a}function kd(e,...t){var n;let a=Ys(e,t),r=(a.find(o=>o.label)?.label||"css")+xr(JSON.stringify(a));return n=(o,u)=>o0(a.flatMap(i=>a0(i,o,u,gt.o)),r),n0.set(r,n),r}var lE=new Proxy(function(e,t){return hd("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,a){return hd(t,n,a)}}});function hd(e,t,n){return{toString(){return kd({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function ne(e,t,n){return[e,Js(t,n)]}function Js(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,a)=>({[e]:t?t(n,a):Qs(n,1)}):n=>e||{[n[1]]:Qs(n,2)}}function Qs(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function ae(e,t,n,a){return[e,w2(t,n,a)]}function w2(e,t,n){let a=typeof t=="string"?(r,o)=>({[t]:n?n(r,o):r._}):t||(({1:r,_:o},u,i)=>({[r||i]:o}));return(r,o)=>{let u=Sd(e||r[1]),i=o.theme(u,r.$$)??Hn(r.$$,u,o);if(i!=null)return r._=Qs(r,0,i),a(r,o,u)}}function xt(e,t={},n){return[e,A2(t,n)]}function A2(e={},t){return(n,a)=>{let{section:r=Sd(n[0]).replace("-","")+"Color"}=e,[o,u]=k2(n.$$);if(!o)return;let i=a.theme(r,o)||Hn(o,r,a);if(!i||typeof i=="object")return;let{opacityVariable:s=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:c=r.replace("Color","Opacity"),property:l=r,selector:m}=e,p=a.theme(c,u||"DEFAULT")||u&&Hn(u,c,a),f=t||(({_:y})=>{let w=bo(l,y);return m?{[m]:w}:w});n._={value:Xn(i,{opacityVariable:s||void 0,opacityValue:p||void 0}),color:y=>Xn(i,y),opacityVariable:s||void 0,opacityValue:p||void 0};let g=f(n,a);if(!n.dark){let y=a.d(r,o,i);y&&y!==i&&(n._={value:Xn(y,{opacityVariable:s||void 0,opacityValue:p||"1"}),color:w=>Xn(y,w),opacityVariable:s||void 0,opacityValue:p||void 0},g={"&":g,[a.v("dark")]:f(n,a)})}return g}}function k2(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function bo(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function Hn(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=Tr(r0(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function Sd(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function Tr(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",a,r="")=>Tr(n)+a+Tr(r)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var cE=Symbol();function yo({presets:e=[],...t}){let n={darkMode:void 0,darkColor:void 0,preflight:t.preflight!==!1&&[],theme:{},variants:He(t.variants),rules:He(t.rules),ignorelist:He(t.ignorelist),hash:void 0,stringify:(a,r)=>a+":"+r,finalize:[]};for(let a of He([...e,{darkMode:t.darkMode,darkColor:t.darkColor,preflight:t.preflight!==!1&&He(t.preflight),theme:t.theme,hash:t.hash,stringify:t.stringify,finalize:t.finalize}])){let{preflight:r,darkMode:o=n.darkMode,darkColor:u=n.darkColor,theme:i,variants:s,rules:c,ignorelist:l,hash:m=n.hash,stringify:p=n.stringify,finalize:f}=typeof a=="function"?a(n):a;n={preflight:n.preflight!==!1&&r!==!1&&[...n.preflight,...He(r)],darkMode:o,darkColor:u,theme:{...n.theme,...i,extend:{...n.theme.extend,...i?.extend}},variants:[...n.variants,...He(s)],rules:[...n.rules,...He(c)],ignorelist:[...n.ignorelist,...He(l)],hash:m,stringify:p,finalize:[...n.finalize,...He(f)]}}return n}function bd(e,t,n,a,r,o){for(let u of t){let i=n.get(u);i||n.set(u,i=a(u));let s=i(e,r,o);if(s)return s}}function S2(e){var t;return Zs(e[0],typeof(t=e[1])=="function"?t:()=>t)}function D2(e){var t,n;return Array.isArray(e)?Zs(e[0],Js(e[1],e[2])):Zs(e,Js(t,n))}function Zs(e,t){return Dd(e,(n,a,r,o)=>{let u=a.exec(n);if(u)return u.$$=n.slice(u[0].length),u.dark=o,t(u,r)})}function Dd(e,t){let n=He(e).map(L2);return(a,r,o)=>{for(let u of n){let i=t(a,u,r,o);if(i)return i}}}function L2(e){return typeof e=="string"?RegExp("^"+e+(e.includes("$")||e.slice(-1)=="-"?"":"$")):e}function M2(e,t){let n=yo(e),a=function({theme:s,darkMode:c,darkColor:l=ho,variants:m,rules:p,hash:f,stringify:g,ignorelist:y,finalize:w}){let b=new Map,S=new Map,D=new Map,N=new Map,_=Dd(y,(T,v)=>v.test(T));m.push(["dark",Array.isArray(c)||c=="class"?`${He(c)[1]||".dark"} &`:typeof c=="string"&&c!="media"?c:"@media (prefers-color-scheme:dark)"]);let x=typeof f=="function"?T=>f(T,xr):f?xr:cd;x!==cd&&w.push(T=>({...T,n:T.n&&x(T.n),d:T.d?.replace(/--(tw(?:-[\w-]+)?)\b/g,(v,C)=>"--"+x(C).replace("#",""))}));let E={theme:function({extend:T={},...v}){let C={},R={get colors(){return M("colors")},theme:M,negative(){return{}},breakpoints(P){let O={};for(let j in P)typeof P[j]=="string"&&(O["screen-"+j]=P[j]);return O}};return M;function M(P,O,j,B){if(P){if({1:P,2:B}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(P)||[,P],/[.[]/.test(P)){let K=[];P.replace(/\[([^\]]+)\]|([^.[]+)/g,(H,V,q=V)=>K.push(q)),P=K.shift(),j=O,O=K.join("-")}let L=C[P]||Object.assign(Object.assign(C[P]={},k(v,P)),k(T,P));if(O==null)return L;O||="DEFAULT";let U=L[O]??O.split("-").reduce((K,H)=>K?.[H],L)??j;return B?Xn(U,{opacityValue:r0(B,M)}):U}let A={};for(let L of[...Object.keys(v),...Object.keys(T)])A[L]=M(L);return A}function k(P,O){let j=P[O];return typeof j=="function"&&(j=j(R)),j&&/color|fill|stroke/i.test(O)?function B(A,L=[]){let U={};for(let K in A){let H=A[K],V=[...L,K];U[V.join("-")]=H,K=="DEFAULT"&&(V=L,U[L.join("-")]=H),typeof H=="object"&&Object.assign(U,B(H,V))}return U}(j):j}}(s),e:e0,h:x,s(T,v){return g(T,v,E)},d(T,v,C){return l(T,v,E,C)},v(T){return b.has(T)||b.set(T,bd(T,m,S,S2,E)||"&:"+T),b.get(T)},r(T,v){let C=JSON.stringify([T,v]);return D.has(C)||D.set(C,!_(T,E)&&bd(T,p,N,D2,E,v)),D.get(C)},f(T){return w.reduce((v,C)=>C(v,E),T)}};return E}(n),r=new Map,o=[],u=new Set;t.resume(s=>r.set(s,s),(s,c)=>{t.insert(s,o.length,c),o.push(c),u.add(s)});function i(s){let c=a.f(s),l=Vs(c);if(l&&!u.has(l)){u.add(l);let m=Ed(o,s);t.insert(l,m,s),o.splice(m,0,s)}return c.n}return Object.defineProperties(function(s){if(!r.size)for(let l of He(n.preflight))typeof l=="function"&&(l=l(a)),l&&(typeof l=="string"?u0("",gt.b,fo(l),a,gt.b,[],!1,!0):a0(l,{},a,gt.b)).forEach(i);s=""+s;let c=r.get(s);if(!c){let l=new Set;for(let m of Du(fo(s),a))l.add(m.c).add(i(m));c=[...l].filter(Boolean).join(" "),r.set(s,c).set(c,c)}return c},Object.getOwnPropertyDescriptors({get target(){return t.target},theme:a.theme,config:n,snapshot(){let s=t.snapshot(),c=new Set(u),l=new Map(r),m=[...o];return()=>{s(),u=c,r=l,o=m}},clear(){t.clear(),u=new Set,r=new Map,o=[]},destroy(){this.clear(),t.destroy()}}))}function P2(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function F2(e){let t=new MutationObserver(n);return{observe(r){t.observe(r,{attributeFilter:["class"],subtree:!0,childList:!0}),a(r),n([{target:r,type:""}])},disconnect(){t.disconnect()}};function n(r){for(let{type:o,target:u}of r)if(o[0]=="a")a(u);else for(let i of u.querySelectorAll("[class]"))a(i);t.takeRecords()}function a(r){let o,u=r.getAttribute?.("class");u&&P2(u,o=e(u))&&r.setAttribute("class",o)}}function _2(e=i0,t=typeof document<"u"&&document.documentElement){if(t){let n=F2(e);n.observe(t);let{destroy:a}=e;e.destroy=()=>{n.disconnect(),a.call(e)}}return e}function Ld(e){let t=document.querySelector(e||'style[data-twind=""]');return(!t||t.tagName!="STYLE")&&(t=document.createElement("style"),document.head.prepend(t)),t.dataset.twind="claimed",t}function B2(e){let t=e?.cssRules?e:(e&&typeof e!="string"?e:Ld(e)).sheet;return{target:t,snapshot(){let n=Array.from(t.cssRules,a=>a.cssText);return()=>{this.clear(),n.forEach(this.insert)}},clear(){for(let n=t.cssRules.length;n--;)t.deleteRule(n)},destroy(){t.ownerNode?.remove()},insert(n,a){try{t.insertRule(n,a)}catch{t.insertRule(":root{}",a)}},resume:ho}}function R2(e){let t=e&&typeof e!="string"?e:Ld(e);return{target:t,snapshot(){let n=Array.from(t.childNodes,a=>a.textContent);return()=>{this.clear(),n.forEach(this.insert)}},clear(){t.textContent=""},destroy(){t.remove()},insert(n,a){t.insertBefore(document.createTextNode(n),t.childNodes[a]||null)},resume:ho}}function I2(e){let t=[];return{target:t,snapshot(){let n=[...t];return()=>{t.splice(0,t.length,...n)}},clear(){t.length=0},destroy(){this.clear()},insert(n,a,r){t.splice(a,0,e?`/*!${r.p.toString(36)},${(2*r.o).toString(36)}${r.n?","+r.n:""}*/${n}`:n)},resume:ho}}function Md(e,t){let n=typeof document>"u"?I2(!t):e?R2():B2();return t||(n.resume=N2),n}function O2(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,t=>t.cssText):He(e)).join("")}function N2(e,t){let n=O2(this.target),a=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(a.test(n)){var r;let o;if(a.lastIndex=0,this.clear(),typeof document<"u")for(let u of document.querySelectorAll("[class]"))e(u.getAttribute("class"));for(;r=a.exec(n),o&&t(n.slice(o.index+o[0].length,r?.index),{p:parseInt(o[1],36),o:parseInt(o[2],36)/2,n:o[3]}),o=r;);}}var i0=new Proxy(ho,{apply(e,t,n){return po(n[0])},get(e,t){let n=po[t];return typeof n=="function"?function(){return n.apply(po,arguments)}:n}});function Pd(e={},t=Md,n){return po?.destroy(),po=_2(M2(e,typeof t=="function"?t():t),n)}function s0(e,t=!0){let n=yo(e);return Pd({...n,hash:n.hash??t},()=>Md(!t))}var dE=function e(t){return new Proxy(function(n,...a){return yd(t,"",n,a)},{get(n,a){return a==="bind"?e:a in n?n[a]:function(r,...o){return yd(t,a,r,o)}}})}();function yd(e,t,n,a){return{toString(){let r=Ys(n,a),o=e0(t+xr(JSON.stringify([t,r])));return(typeof e=="function"?e:i0)(kd({[`@keyframes ${o}`]:Ys(n,a)})),o}}}h();h();h();var U2=new Map([["align-self","-ms-grid-row-align"],["color-adjust","-webkit-print-color-adjust"],["column-gap","grid-column-gap"],["forced-color-adjust","-ms-high-contrast-adjust"],["gap","grid-gap"],["grid-template-columns","-ms-grid-columns"],["grid-template-rows","-ms-grid-rows"],["justify-self","-ms-grid-column-align"],["margin-inline-end","-webkit-margin-end"],["margin-inline-start","-webkit-margin-start"],["mask-border","-webkit-mask-box-image"],["mask-border-outset","-webkit-mask-box-image-outset"],["mask-border-slice","-webkit-mask-box-image-slice"],["mask-border-source","-webkit-mask-box-image-source"],["mask-border-repeat","-webkit-mask-box-image-repeat"],["mask-border-width","-webkit-mask-box-image-width"],["overflow-wrap","word-wrap"],["padding-inline-end","-webkit-padding-end"],["padding-inline-start","-webkit-padding-start"],["print-color-adjust","color-adjust"],["row-gap","grid-row-gap"],["scroll-margin-bottom","scroll-snap-margin-bottom"],["scroll-margin-left","scroll-snap-margin-left"],["scroll-margin-right","scroll-snap-margin-right"],["scroll-margin-top","scroll-snap-margin-top"],["scroll-margin","scroll-snap-margin"],["text-combine-upright","-ms-text-combine-horizontal"]]);function Fd(e){return U2.get(e)}function _d(e){var t=/^(?:(text-(?:decoration$|e|or|si)|back(?:ground-cl|d|f)|box-d|mask(?:$|-[ispro]|-cl)|pr|hyphena|flex-d)|(tab-|column(?!-s)|text-align-l)|(ap)|u|hy)/i.exec(e);return t?t[1]?1:t[2]?2:t[3]?3:5:0}function Bd(e,t){var n=/^(?:(pos)|(cli)|(background-i)|(flex(?:$|-b)|(?:max-|min-)?(?:block-s|inl|he|widt))|dis)/i.exec(e);return n?n[1]?/^sti/i.test(t)?1:0:n[2]?/^pat/i.test(t)?1:0:n[3]?/^image-/i.test(t)?1:0:n[4]?t[3]==="-"?2:0:/^(?:inline-)?grid$/i.test(t)?4:0:0}var j2=[["-webkit-",1],["-moz-",2],["-ms-",4]];function Mu(){return({stringify:e})=>({stringify(t,n,a){let r="",o=Fd(t);o&&(r+=e(o,n,a)+";");let u=_d(t),i=Bd(t,n);for(let s of j2)u&s[1]&&(r+=e(s[0]+t,n,a)+";"),i&s[1]&&(r+=e(t,s[0]+n,a)+";");return r+e(t,n,a)}})}h();h();var c0={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...rn(4,"rem",4,.5,.5),...rn(12,"rem",4,5),14:"3.5rem",...rn(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Re("blur"),backdropBrightness:Re("brightness"),backdropContrast:Re("contrast"),backdropGrayscale:Re("grayscale"),backdropHueRotate:Re("hueRotate"),backdropInvert:Re("invert"),backdropOpacity:Re("opacity"),backdropSaturate:Re("saturate"),backdropSepia:Re("sepia"),backgroundColor:Re("colors"),backgroundImage:{none:"none"},backgroundOpacity:Re("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...rn(200,"",100,0,50),...rn(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Re("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Re("spacing"),borderWidth:{DEFAULT:"1px",...gn(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Re("colors"),caretColor:Re("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...rn(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Re("borderColor"),divideOpacity:Re("borderOpacity"),divideWidth:Re("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...xo(2,6),...xo(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Re("spacing"),gradientColorStops:Re("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...xo(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...xo(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...rn(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...rn(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Re("spacing"),placeholderColor:Re("colors"),placeholderOpacity:Re("opacity"),outlineColor:Re("colors"),outlineOffset:gn(8,"px"),outlineWidth:gn(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Re("colors"),ringOffsetWidth:gn(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...gn(8,"px")},rotate:{...gn(2,"deg"),...gn(12,"deg",3),...gn(180,"deg",45)},saturate:rn(200,"",100,0,50),scale:{...rn(150,"",100,0,50),...rn(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Re("spacing"),scrollPadding:Re("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...gn(2,"deg"),...gn(12,"deg",3)},space:Re("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:rn(2),textColor:Re("colors"),textDecorationColor:Re("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...gn(8,"px")},textUnderlineOffset:{auto:"auto",...gn(8,"px")},textIndent:Re("spacing"),textOpacity:Re("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Re("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...xo(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...rn(50,"",1,0,10),auto:"auto"}};function xo(e,t){let n={};do for(var a=1;at(e)}var z2={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${c0.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${c0.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},H2=[ne("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:Hn(`[${t}]`,"",n)}}})),ne("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),ae("aspect-","aspectRatio"),ne("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:a,padding:r}=t("container"),o={width:"100%",marginRight:a&&"auto",marginLeft:a&&"auto",...u("xs")};for(let i in n){let s=n[i];typeof s=="string"&&(o[Lu(s)]={"&":{maxWidth:s,...u(i)}})}return o;function u(i){let s=r&&(typeof r=="string"?r:r[i]||r.DEFAULT);if(s)return{paddingRight:s,paddingLeft:s}}}),ae("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),ne("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),ne("box-(border|content)","boxSizing",({1:e})=>e+"-box"),ne("hidden",{display:"none"}),ne("table-(auto|fixed)","tableLayout"),ne(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",ne("isolate","isolation"),ne("object-(contain|cover|fill|none|scale-down)","objectFit"),ae("object-","objectPosition"),ne("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",Pu),ne("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),ne("(static|fixed|absolute|relative|sticky)","position"),ae("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),ae("-?(top|bottom|left|right)(?:$|-)","inset"),ne("(visible|collapse)","visibility"),ne("invisible",{visibility:"hidden"}),ae("-?z-","zIndex"),ne("flex-((row|col)(-reverse)?)","flexDirection",Rd),ne("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),ae("(flex-(?:grow|shrink))(?:$|-)"),ae("(flex)-"),ae("grow(?:$|-)","flexGrow"),ae("shrink(?:$|-)","flexShrink"),ae("basis-","flexBasis"),ae("-?(order)-"),"-?(order)-(\\d+)",ae("grid-cols-","gridTemplateColumns"),ne("grid-cols-(\\d+)","gridTemplateColumns",Ud),ae("col-","gridColumn"),ne("col-(span)-(\\d+)","gridColumn",Nd),ae("col-start-","gridColumnStart"),ne("col-start-(auto|\\d+)","gridColumnStart"),ae("col-end-","gridColumnEnd"),ne("col-end-(auto|\\d+)","gridColumnEnd"),ae("grid-rows-","gridTemplateRows"),ne("grid-rows-(\\d+)","gridTemplateRows",Ud),ae("row-","gridRow"),ne("row-(span)-(\\d+)","gridRow",Nd),ae("row-start-","gridRowStart"),ne("row-start-(auto|\\d+)","gridRowStart"),ae("row-end-","gridRowEnd"),ne("row-end-(auto|\\d+)","gridRowEnd"),ne("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>Pu(Rd(e))),ne("grid-flow-(dense)","gridAutoFlow"),ae("auto-cols-","gridAutoColumns"),ae("auto-rows-","gridAutoRows"),ae("gap-x(?:$|-)","gap","columnGap"),ae("gap-y(?:$|-)","gap","rowGap"),ae("gap(?:$|-)","gap"),"(justify-(?:items|self))-",ne("justify-","justifyContent",Id),ne("(content|items|self)-",e=>({["align-"+e[1]]:Id(e)})),ne("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),ae("p([xytrbl])?(?:$|-)","padding",Er("padding")),ae("-?m([xytrbl])?(?:$|-)","margin",Er("margin")),ae("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),ne("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),ae("w-","width"),ae("min-w-","minWidth"),ae("max-w-","maxWidth"),ae("h-","height"),ae("min-h-","minHeight"),ae("max-h-","maxHeight"),ae("font-","fontWeight"),ae("font-","fontFamily",({_:e})=>typeof(e=He(e))[1]=="string"?{fontFamily:kn(e)}:{fontFamily:kn(e[0]),...e[1]}),ne("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),ne("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),ne("italic","fontStyle"),ne("not-italic",{fontStyle:"normal"}),ne("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...ha({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),ae("tracking-","letterSpacing"),ae("leading-","lineHeight"),ne("list-(inside|outside)","listStylePosition"),ae("list-","listStyleType"),ne("list-","listStyleType"),ae("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),xt("placeholder-",{property:"color",selector:"&::placeholder"}),ne("text-(left|center|right|justify|start|end)","textAlign"),ne("text-(ellipsis|clip)","textOverflow"),ae("text-opacity-","textOpacity","--tw-text-opacity"),xt("text-",{property:"color"}),ae("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),ae("indent-","textIndent"),ne("(overline|underline|line-through)","textDecorationLine"),ne("no-underline",{textDecorationLine:"none"}),ae("underline-offset-","textUnderlineOffset"),xt("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),ae("decoration-","textDecorationThickness"),ne("decoration-","textDecorationStyle"),ne("(uppercase|lowercase|capitalize)","textTransform"),ne("normal-case",{textTransform:"none"}),ne("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),ne("align-","verticalAlign"),ne("whitespace-","whiteSpace"),ne("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),ne("break-words",{overflowWrap:"break-word"}),ne("break-all",{wordBreak:"break-all"}),ne("break-keep",{wordBreak:"keep-all"}),xt("caret-",{opacityVariable:!1,opacitySection:"opacity"}),xt("accent-",{opacityVariable:!1,opacitySection:"opacity"}),ne("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${Ka(e," ")},var(--tw-gradient-stops))`),xt("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),xt("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),xt("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),ne("bg-(fixed|local|scroll)","backgroundAttachment"),ne("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),ne(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),ne("bg-blend-","backgroundBlendMode"),ne("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),ae("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),xt("bg-",{section:"backgroundColor"}),ae("bg-","backgroundImage"),ae("bg-","backgroundPosition"),ne("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",Pu),ae("bg-","backgroundSize"),ae("rounded(?:$|-)","borderRadius"),ae("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${Ka(n[0])}-radius`]:t,[`border-${Ka(n[1])}-radius`]:t}}),ne("border-(collapse|separate)","borderCollapse"),ae("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),ne("border-(solid|dashed|dotted|double|none)","borderStyle"),ae("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...ha({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),xt("border-([xytrbl])-",{section:"borderColor"},Er("border","Color")),xt("border-"),ae("border-([xytrbl])(?:$|-)","borderWidth",Er("border","Width")),ae("border(?:$|-)","borderWidth"),ae("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),ne("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),ne("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),ae("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${Ka(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${Ka(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),xt("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),ae("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),xt("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),ae("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),ne("ring-inset",{"--tw-ring-inset":"inset"}),xt("ring-",{property:"--tw-ring-color"}),ae("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...ha({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":Xn(t("ringOffsetColor","","#fff")),"--tw-ring-color":Xn(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),xt("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),ae("shadow(?:$|-)","boxShadow",({_:e})=>({...ha({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":kn(e),"--tw-shadow-colored":kn(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),ae("(opacity)-"),ne("mix-blend-","mixBlendMode"),...Od(),...Od("backdrop-"),ae("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:kn(e),transitionTimingFunction:e._=="none"?void 0:kn(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:kn(t("transitionDuration",""))})),ae("duration(?:$|-)","transitionDuration","transitionDuration",kn),ae("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",kn),ae("delay(?:$|-)","transitionDelay","transitionDelay",kn),ae("animate(?:$|-)","animation",(e,{theme:t,h:n,e:a})=>{let r=kn(e),o=r.split(" "),u=t("keyframes",o[0]);return u?{["@keyframes "+(o[0]=a(n(o[0])))]:u,animation:o.join(" ")}:{animation:r}}),"(transform)-(none)",ne("transform",d0),ne("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":jd(e=="gpu")})),ae("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...d0()})),ae("-?(rotate)-","rotate",l0),ae("-?(translate-[xy])-","translate",l0),ae("-?(skew-[xy])-","skew",l0),ne("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",Pu),"(appearance)-",ae("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",ae("(cursor)-"),"(cursor)-",ne("snap-(none)","scroll-snap-type"),ne("snap-(x|y|both)",({1:e})=>({...ha({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),ne("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),ne("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),ne("snap-(normal|always)","scroll-snap-stop"),ne("scroll-(auto|smooth)","scroll-behavior"),ae("scroll-p([xytrbl])?(?:$|-)","padding",Er("scroll-padding")),ae("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",Er("scroll-margin")),ne("touch-(auto|none|manipulation)","touch-action"),ne("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...ha({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),ne("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),ne("outline",{outlineStyle:"solid"}),ne("outline-(dashed|dotted|double)","outlineStyle"),ae("-?(outline-offset)-"),xt("outline-",{opacityVariable:!1,opacitySection:"opacity"}),ae("outline-","outlineWidth"),"(pointer-events)-",ae("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],ne("select-(none|text|all|auto)","userSelect"),xt("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),xt("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),ae("stroke-","strokeWidth"),ne("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),ne("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function Pu(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function Rd(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function Ka(e,t="-"){let n=[];for(let a of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[a]);return n.join(t)}function kn(e){return e&&""+(e._||e)}function Id({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function Er(e,t=""){return({1:n,_:a})=>{let r={x:"lr",y:"tb"}[n]||n+n;return r?{...bo(e+"-"+Ka(r[0])+t,a),...bo(e+"-"+Ka(r[1])+t,a)}:bo(e+t,a)}}function Od(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let a of t)n[`--tw-${e}${a}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...ha(n),[`${e}filter`]:t.map(a=>`var(--tw-${e}${a})`).join(" ")},[`(${e}filter)-(none)`,ne(`${e}filter`,n),...t.map(a=>ae(`${a[0]=="h"?"-?":""}(${e}${a})(?:$|-)`,a,({1:r,_:o})=>({[`--tw-${r}`]:He(o).map(u=>`${a}(${u})`).join(" "),...n})))]}function l0({1:e,_:t}){return{["--tw-"+e]:t,...d0()}}function d0(){return{...ha({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":jd()}),transform:"var(--tw-transform)"}}function jd(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function Nd({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function Ud({1:e}){return`repeat(${e},minmax(0,1fr))`}function ha(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}var q2=[["sticky","@supports ((position: -webkit-sticky) or (position:sticky))"],["motion-reduce","@media (prefers-reduced-motion:reduce)"],["motion-safe","@media (prefers-reduced-motion:no-preference)"],["print","@media print"],["(portrait|landscape)",({1:e})=>`@media (orientation:${e})`],["contrast-(more|less)",({1:e})=>`@media (prefers-contrast:${e})`],["(first-(letter|line)|placeholder|backdrop|before|after)",({1:e})=>`&::${e}`],["(marker|selection)",({1:e})=>`& *::${e},&::${e}`],["file","&::file-selector-button"],["(first|last|only)",({1:e})=>`&:${e}-child`],["even","&:nth-child(2n)"],["odd","&:nth-child(odd)"],["open","&[open]"],["(aria|data)-",({1:e,$$:t},n)=>t&&`&[${e}-${n.theme(e,t)||Hn(t,"",n)||`${t}="true"`}]`],["((group|peer)(~[^-[]+)?)(-\\[(.+)]|[-[].+?)(\\/.+)?",({2:e,3:t="",4:n,5:a="",6:r=t},{e:o,h:u,v:i})=>{let s=Tr(a)||(n[0]=="["?n:i(n.slice(1)));return`${(s.includes("&")?s:"&"+s).replace(/&/g,`:merge(.${o(u(e+r))})`)}${e[0]=="p"?"~":" "}&`}],["(ltr|rtl)",({1:e})=>`[dir="${e}"] &`],["supports-",({$$:e},t)=>{if(e&&=t.theme("supports",e)||Hn(e,"",t),e)return e.includes(":")||(e+=":var(--tw)"),/^\w*\s*\(/.test(e)||(e=`(${e})`),`@supports ${e.replace(/\b(and|or|not)\b/g," $1 ").trim()}`}],["max-",({$$:e},t)=>{if(e&&=t.theme("screens",e)||Hn(e,"",t),typeof e=="string")return`@media not all and (min-width:${e})`}],["min-",({$$:e},t)=>(e&&=Hn(e,"",t))&&`@media (min-width:${e})`],[/^\[(.+)]$/,({1:e})=>/[&@]/.test(e)&&Tr(e).replace(/[}]+$/,"").split("{")]];function W2({colors:e,disablePreflight:t}={}){return{preflight:t?void 0:z2,theme:{...c0,colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",...e}},variants:q2,rules:H2,finalize(n){return n.n&&n.d&&n.r.some(a=>/^&::(before|after)$/.test(a))&&!/(^|;)content:/.test(n.d)?{...n,d:"content:var(--tw-content);"+n.d}:n}}}var K2={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},$2={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},G2={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},V2={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},Y2={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},J2={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},Q2={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},Z2={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},X2={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},e1={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},t1={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},n1={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},a1={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},r1={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},o1={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},u1={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},i1={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},s1={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},l1={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},c1={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},d1={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},g1={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},m1={__proto__:null,slate:K2,gray:$2,zinc:G2,neutral:V2,stone:Y2,red:J2,orange:Q2,amber:Z2,yellow:X2,lime:e1,green:t1,emerald:n1,teal:a1,cyan:r1,sky:o1,blue:u1,indigo:i1,violet:s1,purple:l1,fuchsia:c1,pink:d1,rose:g1};function Fu({disablePreflight:e}={}){return W2({colors:m1,disablePreflight:e})}h();h();var _u=globalThis||(typeof window<"u"?window:self),p1=Object.create,m0=Object.defineProperty,f1=Object.getOwnPropertyDescriptor,h1=Object.getOwnPropertyNames,b1=Object.getPrototypeOf,y1=Object.prototype.hasOwnProperty,x1=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),T1=(e,t)=>{for(var n in t)m0(e,n,{get:t[n],enumerable:!0})},g0=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of h1(t))!y1.call(e,r)&&r!==n&&m0(e,r,{get:()=>t[r],enumerable:!(a=f1(t,r))||a.enumerable});return e},E1=(e,t,n)=>(g0(e,t,"default"),n&&g0(n,t,"default")),Hd=(e,t,n)=>(n=e!=null?p1(b1(e)):{},g0(t||!e||!e.__esModule?m0(n,"default",{value:e,enumerable:!0}):n,e)),qd=x1((e,t)=>{(function(n,a){typeof define=="function"&&define.amd?define([],a):typeof e<"u"?a():(a(),n.FileSaver={})})(e,function(){"use strict";function n(c,l){return typeof l>"u"?l={autoBom:!1}:typeof l!="object"&&(l={autoBom:!l}),l.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function a(c,l,m){var p=new XMLHttpRequest;p.open("GET",c),p.responseType="blob",p.onload=function(){s(p.response,l,m)},p.onerror=function(){},p.send()}function r(c){var l=new XMLHttpRequest;l.open("HEAD",c,!1);try{l.send()}catch{}return 200<=l.status&&299>=l.status}function o(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var l=document.createEvent("MouseEvents");l.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(l)}}var u=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof _u=="object"&&_u.global===_u?_u:void 0,i=u.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=u.saveAs||(typeof window!="object"||window!==u?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(c,l,m){var p=u.URL||u.webkitURL,f=document.createElement("a");l=l||c.name||"download",f.download=l,f.rel="noopener",typeof c=="string"?(f.href=c,f.origin===location.origin?o(f):r(f.href)?a(c,l,m):o(f,f.target="_blank")):(f.href=p.createObjectURL(c),setTimeout(function(){p.revokeObjectURL(f.href)},4e4),setTimeout(function(){o(f)},0))}:"msSaveOrOpenBlob"in navigator?function(c,l,m){if(l=l||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(n(c,m),l);else if(r(c))a(c,l,m);else{var p=document.createElement("a");p.href=c,p.target="_blank",setTimeout(function(){o(p)})}}:function(c,l,m,p){if(p=p||open("","_blank"),p&&(p.document.title=p.document.body.innerText="downloading..."),typeof c=="string")return a(c,l,m);var f=c.type==="application/octet-stream",g=/constructor/i.test(u.HTMLElement)||u.safari,y=/CriOS\/[\d]+/.test(navigator.userAgent);if((y||f&&g||i)&&typeof FileReader<"u"){var w=new FileReader;w.onloadend=function(){var D=w.result;D=y?D:D.replace(/^data:[^;]*;/,"data:attachment/file;"),p?p.location.href=D:location=D,p=null},w.readAsDataURL(c)}else{var b=u.URL||u.webkitURL,S=b.createObjectURL(c);p?p.location=S:location.href=S,p=null,setTimeout(function(){b.revokeObjectURL(S)},4e4)}});u.saveAs=s.saveAs=s,typeof t<"u"&&(t.exports=s)})}),Wd={};T1(Wd,{default:()=>To});var C1=Hd(qd());E1(Wd,Hd(qd()));var{default:zd,...v1}=C1,To=zd!==void 0?zd:v1;h();h();h();h();h();h();h();function Cr(){let e,t="pending",n=new Promise((a,r)=>{e={async resolve(o){await o,t="fulfilled",a(o)},reject(o){t="rejected",r(o)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}h();var p0=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function Bu(e,t){let n=Cr(),a=setTimeout(()=>n.reject(new p0),t);return Promise.race([e,n]).finally(()=>clearTimeout(a))}h();h();function qn(e,t={}){let{signal:n,persistent:a}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((r,o)=>{let u=()=>{clearTimeout(s),o(new DOMException("Delay was aborted.","AbortError"))},s=setTimeout(()=>{n?.removeEventListener("abort",u),r()},e);if(n?.addEventListener("abort",u,{once:!0}),a===!1)try{Deno.unrefTimer(s)}catch(c){if(!(c instanceof ReferenceError))throw c}})}h();var Kd=class{#e=0;#t=[];#n=[];#a=Cr();add(t){++this.#e,this.#r(t[Symbol.asyncIterator]())}async#r(t){try{let{value:n,done:a}=await t.next();a?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#a.resolve()}async*iterate(){for(;this.#e>0;){await this.#a;for(let t=0;tJ1,bgBlue:()=>e6,bgBrightBlack:()=>r6,bgBrightBlue:()=>s6,bgBrightCyan:()=>c6,bgBrightGreen:()=>u6,bgBrightMagenta:()=>l6,bgBrightRed:()=>o6,bgBrightWhite:()=>d6,bgBrightYellow:()=>i6,bgCyan:()=>n6,bgGreen:()=>Z1,bgMagenta:()=>t6,bgRed:()=>Q1,bgRgb24:()=>f6,bgRgb8:()=>m6,bgWhite:()=>a6,bgYellow:()=>X1,black:()=>B1,blue:()=>N1,bold:()=>S1,brightBlack:()=>Vd,brightBlue:()=>$1,brightCyan:()=>V1,brightGreen:()=>W1,brightMagenta:()=>G1,brightRed:()=>q1,brightWhite:()=>Y1,brightYellow:()=>K1,cyan:()=>j1,dim:()=>D1,getColorEnabled:()=>A1,gray:()=>H1,green:()=>I1,hidden:()=>F1,inverse:()=>P1,italic:()=>L1,magenta:()=>U1,red:()=>R1,reset:()=>k1,rgb24:()=>p6,rgb8:()=>g6,setColorEnabled:()=>w1,strikethrough:()=>_1,stripColor:()=>b6,underline:()=>M1,white:()=>z1,yellow:()=>O1});h();var{Deno:$d}=globalThis,Gd=typeof $d?.noColor=="boolean"?$d.noColor:!0,f0=!Gd;function w1(e){Gd||(f0=e)}function A1(){return f0}function we(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function Ae(e,t){return f0?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function k1(e){return Ae(e,we([0],0))}function S1(e){return Ae(e,we([1],22))}function D1(e){return Ae(e,we([2],22))}function L1(e){return Ae(e,we([3],23))}function M1(e){return Ae(e,we([4],24))}function P1(e){return Ae(e,we([7],27))}function F1(e){return Ae(e,we([8],28))}function _1(e){return Ae(e,we([9],29))}function B1(e){return Ae(e,we([30],39))}function R1(e){return Ae(e,we([31],39))}function I1(e){return Ae(e,we([32],39))}function O1(e){return Ae(e,we([33],39))}function N1(e){return Ae(e,we([34],39))}function U1(e){return Ae(e,we([35],39))}function j1(e){return Ae(e,we([36],39))}function z1(e){return Ae(e,we([37],39))}function H1(e){return Vd(e)}function Vd(e){return Ae(e,we([90],39))}function q1(e){return Ae(e,we([91],39))}function W1(e){return Ae(e,we([92],39))}function K1(e){return Ae(e,we([93],39))}function $1(e){return Ae(e,we([94],39))}function G1(e){return Ae(e,we([95],39))}function V1(e){return Ae(e,we([96],39))}function Y1(e){return Ae(e,we([97],39))}function J1(e){return Ae(e,we([40],49))}function Q1(e){return Ae(e,we([41],49))}function Z1(e){return Ae(e,we([42],49))}function X1(e){return Ae(e,we([43],49))}function e6(e){return Ae(e,we([44],49))}function t6(e){return Ae(e,we([45],49))}function n6(e){return Ae(e,we([46],49))}function a6(e){return Ae(e,we([47],49))}function r6(e){return Ae(e,we([100],49))}function o6(e){return Ae(e,we([101],49))}function u6(e){return Ae(e,we([102],49))}function i6(e){return Ae(e,we([103],49))}function s6(e){return Ae(e,we([104],49))}function l6(e){return Ae(e,we([105],49))}function c6(e){return Ae(e,we([106],49))}function d6(e){return Ae(e,we([107],49))}function ba(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function g6(e,t){return Ae(e,we([38,5,ba(t)],39))}function m6(e,t){return Ae(e,we([48,5,ba(t)],49))}function p6(e,t){return typeof t=="number"?Ae(e,we([38,2,t>>16&255,t>>8&255,t&255],39)):Ae(e,we([38,2,ba(t.r),ba(t.g),ba(t.b)],39))}function f6(e,t){return typeof t=="number"?Ae(e,we([48,2,t>>16&255,t>>8&255,t&255],49)):Ae(e,we([48,2,ba(t.r),ba(t.g),ba(t.b)],49))}var h6=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function b6(e){return e.replace(h6,"")}h();h();var h0=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},y6={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function b0(e,t){let n={...y6,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let a=n.minTimeout,r;for(let o=0;osetTimeout(i,a)),a*=n.multiplier,a=Math.max(a,n.minTimeout),n.maxTimeout>=0&&(a=Math.min(a,n.maxTimeout)),r=u}throw new h0(r,n.maxAttempts)}h();var ea=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function y0(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",a,r=t.length;for(a=2;a>2],n+=ea[(t[a-2]&3)<<4|t[a-1]>>4],n+=ea[(t[a-1]&15)<<2|t[a]>>6],n+=ea[t[a]&63];return a===r+1&&(n+=ea[t[a-2]>>2],n+=ea[(t[a-2]&3)<<4],n+="=="),a===r&&(n+=ea[t[a-2]>>2],n+=ea[(t[a-2]&3)<<4|t[a-1]>>4],n+=ea[(t[a-1]&15)<<2],n+="="),n}h();h();var RC=Number.isNaN||function(e){return typeof e=="number"&&e!==e};h();h();var Ru=globalThis||(typeof window<"u"?window:self),T6=Object.create,T0=Object.defineProperty,E6=Object.getOwnPropertyDescriptor,C6=Object.getOwnPropertyNames,v6=Object.getPrototypeOf,w6=Object.prototype.hasOwnProperty,A6=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),k6=(e,t)=>{for(var n in t)T0(e,n,{get:t[n],enumerable:!0})},x0=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of C6(t))!w6.call(e,r)&&r!==n&&T0(e,r,{get:()=>t[r],enumerable:!(a=E6(t,r))||a.enumerable});return e},S6=(e,t,n)=>(x0(e,t,"default"),n&&x0(n,t,"default")),Jd=(e,t,n)=>(n=e!=null?T6(v6(e)):{},x0(t||!e||!e.__esModule?T0(n,"default",{value:e,enumerable:!0}):n,e)),Qd=A6((e,t)=>{var n="Expected a function",a=NaN,r="[object Symbol]",o=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,l=typeof Ru=="object"&&Ru&&Ru.Object===Object&&Ru,m=typeof self=="object"&&self&&self.Object===Object&&self,p=l||m||Function("return this")(),f=Object.prototype,g=f.toString,y=Math.max,w=Math.min,b=function(){return p.Date.now()};function S(T,v,C){var R,M,k,P,O,j,B=0,A=!1,L=!1,U=!0;if(typeof T!="function")throw new TypeError(n);v=E(v)||0,N(C)&&(A=!!C.leading,L="maxWait"in C,k=L?y(E(C.maxWait)||0,v):k,U="trailing"in C?!!C.trailing:U);function K(ie){var Y=R,ce=M;return R=M=void 0,B=ie,P=T.apply(ce,Y),P}function H(ie){return B=ie,O=setTimeout(oe,v),A?K(ie):P}function V(ie){var Y=ie-j,ce=ie-B,fe=v-Y;return L?w(fe,k-ce):fe}function q(ie){var Y=ie-j,ce=ie-B;return j===void 0||Y>=v||Y<0||L&&ce>=k}function oe(){var ie=b();if(q(ie))return Q(ie);O=setTimeout(oe,V(ie))}function Q(ie){return O=void 0,U&&R?K(ie):(R=M=void 0,P)}function J(){O!==void 0&&clearTimeout(O),B=0,R=j=M=O=void 0}function ye(){return O===void 0?P:Q(b())}function xe(){var ie=b(),Y=q(ie);if(R=arguments,M=this,j=ie,Y){if(O===void 0)return H(j);if(L)return O=setTimeout(oe,v),K(j)}return O===void 0&&(O=setTimeout(oe,v)),P}return xe.cancel=J,xe.flush=ye,xe}function D(T,v,C){var R=!0,M=!0;if(typeof T!="function")throw new TypeError(n);return N(C)&&(R="leading"in C?!!C.leading:R,M="trailing"in C?!!C.trailing:M),S(T,v,{leading:R,maxWait:v,trailing:M})}function N(T){var v=typeof T;return!!T&&(v=="object"||v=="function")}function _(T){return!!T&&typeof T=="object"}function x(T){return typeof T=="symbol"||_(T)&&g.call(T)==r}function E(T){if(typeof T=="number")return T;if(x(T))return a;if(N(T)){var v=typeof T.valueOf=="function"?T.valueOf():T;T=N(v)?v+"":v}if(typeof T!="string")return T===0?T:+T;T=T.replace(o,"");var C=i.test(T);return C||s.test(T)?c(T.slice(2),C?2:8):u.test(T)?a:+T}t.exports=D}),Zd={};k6(Zd,{default:()=>Ft});var D6=Jd(Qd());S6(Zd,Jd(Qd()));var{default:Yd,...L6}=D6,Ft=Yd!==void 0?Yd:L6;h();h();var M6=Object.create,C0=Object.defineProperty,P6=Object.getOwnPropertyDescriptor,F6=Object.getOwnPropertyNames,_6=Object.getPrototypeOf,B6=Object.prototype.hasOwnProperty,R6=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),I6=(e,t)=>{for(var n in t)C0(e,n,{get:t[n],enumerable:!0})},E0=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of F6(t))!B6.call(e,r)&&r!==n&&C0(e,r,{get:()=>t[r],enumerable:!(a=P6(t,r))||a.enumerable});return e},O6=(e,t,n)=>(E0(e,t,"default"),n&&E0(n,t,"default")),eg=(e,t,n)=>(n=e!=null?M6(_6(e)):{},E0(t||!e||!e.__esModule?C0(n,"default",{value:e,enumerable:!0}):n,e)),tg=R6((e,t)=>{(function(n,a){typeof e=="object"&&typeof t=="object"?t.exports=a():typeof define=="function"&&define.amd?define([],a):typeof e=="object"?e.notie=a():n.notie=a()})(e,function(){return function(n){function a(o){if(r[o])return r[o].exports;var u=r[o]={i:o,l:!1,exports:{}};return n[o].call(u.exports,u,u.exports,a),u.l=!0,u.exports}var r={};return a.m=n,a.c=r,a.i=function(o){return o},a.d=function(o,u,i){a.o(o,u)||Object.defineProperty(o,u,{configurable:!1,enumerable:!0,get:i})},a.n=function(o){var u=o&&o.__esModule?function(){return o.default}:function(){return o};return a.d(u,"a",u),u},a.o=function(o,u){return Object.prototype.hasOwnProperty.call(o,u)},a.p="",a(a.s=1)}([function(n,a){n.exports=function(r){return r.webpackPolyfill||(r.deprecate=function(){},r.paths=[],r.children||(r.children=[]),Object.defineProperty(r,"loaded",{enumerable:!0,get:function(){return r.l}}),Object.defineProperty(r,"id",{enumerable:!0,get:function(){return r.i}}),r.webpackPolyfill=1),r}},function(n,a,r){"use strict";(function(o){var u,i,s,c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l};(function(l,m){c(a)==="object"&&c(o)==="object"?o.exports=m():(i=[],u=m,s=typeof u=="function"?u.apply(a,i):u,s!==void 0&&(o.exports=s))})(void 0,function(){return function(l){function m(f){if(p[f])return p[f].exports;var g=p[f]={i:f,l:!1,exports:{}};return l[f].call(g.exports,g,g.exports,m),g.l=!0,g.exports}var p={};return m.m=l,m.c=p,m.i=function(f){return f},m.d=function(f,g,y){m.o(f,g)||Object.defineProperty(f,g,{configurable:!1,enumerable:!0,get:y})},m.n=function(f){var g=f&&f.__esModule?function(){return f.default}:function(){return f};return m.d(g,"a",g),g},m.o=function(f,g){return Object.prototype.hasOwnProperty.call(f,g)},m.p="",m(m.s=0)}([function(l,m,p){function f(H,V){var q={};for(var oe in H)V.indexOf(oe)>=0||Object.prototype.hasOwnProperty.call(H,oe)&&(q[oe]=H[oe]);return q}Object.defineProperty(m,"__esModule",{value:!0});var g=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(H){return typeof H>"u"?"undefined":c(H)}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H>"u"?"undefined":c(H)},y=Object.assign||function(H){for(var V=1;V'+oe+"",ce.onclick=function(){return M(fe,Y)},ce.listener=function(ge){(v(ge)||C(ge))&&O()},R(ce,Y),J&&J<1&&(J=1),!xe&&J&&N(J).then(function(){return M(fe,Y)})},B=m.force=function(H,V){var q=H.type,oe=q===void 0?5:q,Q=H.text,J=H.buttonText,ye=J===void 0?"OK":J,xe=H.callback,ie=H.position,Y=ie===void 0?b.positions.force||Y.top:ie;_(),O();var ce=document.createElement("div"),fe=x();ce.id=fe;var ge=document.createElement("div");ge.classList.add(b.classes.textbox),ge.classList.add(b.classes.backgroundInfo),ge.innerHTML='
'+Q+"
";var Ee=document.createElement("div");Ee.classList.add(b.classes.button),Ee.classList.add(E[oe]),Ee.innerHTML=ye,Ee.onclick=function(){M(fe,Y),P(),xe?xe():V&&V()},ce.appendChild(ge),ce.appendChild(Ee),ce.listener=function(Le){v(Le)&&Ee.click()},R(ce,Y),k()},A=m.confirm=function(H,V,q){var oe=H.text,Q=H.submitText,J=Q===void 0?"Yes":Q,ye=H.cancelText,xe=ye===void 0?"Cancel":ye,ie=H.submitCallback,Y=H.cancelCallback,ce=H.position,fe=ce===void 0?b.positions.confirm||fe.top:ce;_(),O();var ge=document.createElement("div"),Ee=x();ge.id=Ee;var Le=document.createElement("div");Le.classList.add(b.classes.textbox),Le.classList.add(b.classes.backgroundInfo),Le.innerHTML='
'+oe+"
";var ve=document.createElement("div");ve.classList.add(b.classes.button),ve.classList.add(b.classes.elementHalf),ve.classList.add(b.classes.backgroundSuccess),ve.innerHTML=J,ve.onclick=function(){M(Ee,fe),P(),ie?ie():V&&V()};var ee=document.createElement("div");ee.classList.add(b.classes.button),ee.classList.add(b.classes.elementHalf),ee.classList.add(b.classes.backgroundError),ee.innerHTML=xe,ee.onclick=function(){M(Ee,fe),P(),Y?Y():q&&q()},ge.appendChild(Le),ge.appendChild(ve),ge.appendChild(ee),ge.listener=function(De){v(De)?ve.click():C(De)&&ee.click()},R(ge,fe),k(ge,fe)},L=function(H,V,q){var oe=H.text,Q=H.submitText,J=Q===void 0?"Submit":Q,ye=H.cancelText,xe=ye===void 0?"Cancel":ye,ie=H.submitCallback,Y=H.cancelCallback,ce=H.position,fe=ce===void 0?b.positions.input||fe.top:ce,ge=f(H,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);_(),O();var Ee=document.createElement("div"),Le=x();Ee.id=Le;var ve=document.createElement("div");ve.classList.add(b.classes.textbox),ve.classList.add(b.classes.backgroundInfo),ve.innerHTML='
'+oe+"
";var ee=document.createElement("input");ee.classList.add(b.classes.inputField),ee.setAttribute("autocapitalize",ge.autocapitalize||"none"),ee.setAttribute("autocomplete",ge.autocomplete||"off"),ee.setAttribute("autocorrect",ge.autocorrect||"off"),ee.setAttribute("autofocus",ge.autofocus||"true"),ee.setAttribute("inputmode",ge.inputmode||"verbatim"),ee.setAttribute("max",ge.max||""),ee.setAttribute("maxlength",ge.maxlength||""),ee.setAttribute("min",ge.min||""),ee.setAttribute("minlength",ge.minlength||""),ee.setAttribute("placeholder",ge.placeholder||""),ee.setAttribute("spellcheck",ge.spellcheck||"default"),ee.setAttribute("step",ge.step||"any"),ee.setAttribute("type",ge.type||"text"),ee.value=ge.value||"",ge.allowed&&(ee.oninput=function(){var je=void 0;if(Array.isArray(ge.allowed)){for(var We="",Et=ge.allowed,Vt=0;Vt'+q+"",Y.appendChild(fe),ye.forEach(function(Ee,Le){var ve=Ee.type,ee=ve===void 0?1:ve,De=Ee.text,_e=Ee.handler,je=document.createElement("div");je.classList.add(E[ee]),je.classList.add(b.classes.button),je.classList.add(b.classes.selectChoice);var We=ye[Le+1];We&&!We.type&&(We.type=1),We&&We.type===ee&&je.classList.add(b.classes.selectChoiceRepeated),je.innerHTML=De,je.onclick=function(){M(ce,ie),P(),_e()},Y.appendChild(je)});var ge=document.createElement("div");ge.classList.add(b.classes.backgroundNeutral),ge.classList.add(b.classes.button),ge.innerHTML=Q,ge.onclick=function(){M(ce,ie),P(),J?J():V&&V()},Y.appendChild(ge),Y.listener=function(Ee){C(Ee)&&ge.click()},R(Y,ie),k(Y,ie)},K=m.date=function(H,V,q){var oe=H.value,Q=oe===void 0?new Date:oe,J=H.submitText,ye=J===void 0?"OK":J,xe=H.cancelText,ie=xe===void 0?"Cancel":xe,Y=H.submitCallback,ce=H.cancelCallback,fe=H.position,ge=fe===void 0?b.positions.date||ge.top:fe;_(),O();var Ee="▾",Le=document.createElement("div"),ve=document.createElement("div"),ee=document.createElement("div"),De=function(Ve){Le.innerHTML=b.dateMonths[Ve.getMonth()],ve.innerHTML=Ve.getDate(),ee.innerHTML=Ve.getFullYear()},_e=function(Ve){var W=new Date(Q.getFullYear(),Q.getMonth()+1,0).getDate(),pe=Ve.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(pe)>W&&(pe=W.toString()),Ve.target.textContent=pe,Number(pe)<1&&(pe="1"),Q.setDate(Number(pe))},je=function(Ve){var W=Ve.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);Ve.target.textContent=W,Q.setFullYear(Number(W))},We=function(Ve){De(Q)},Et=function(Ve){var W=new Date(Q.getFullYear(),Q.getMonth()+Ve+1,0).getDate();Q.getDate()>W&&Q.setDate(W),Q.setMonth(Q.getMonth()+Ve),De(Q)},Vt=function(Ve){Q.setDate(Q.getDate()+Ve),De(Q)},qa=function(Ve){var W=Q.getFullYear()+Ve;W<0?Q.setFullYear(0):Q.setFullYear(Q.getFullYear()+Ve),De(Q)},nn=document.createElement("div"),Jn=x();nn.id=Jn;var ga=document.createElement("div");ga.classList.add(b.classes.backgroundInfo);var ze=document.createElement("div");ze.classList.add(b.classes.dateSelectorInner);var an=document.createElement("div");an.classList.add(b.classes.button),an.classList.add(b.classes.elementThird),an.classList.add(b.classes.dateSelectorUp),an.innerHTML=Ee;var bt=document.createElement("div");bt.classList.add(b.classes.button),bt.classList.add(b.classes.elementThird),bt.classList.add(b.classes.dateSelectorUp),bt.innerHTML=Ee;var Ze=document.createElement("div");Ze.classList.add(b.classes.button),Ze.classList.add(b.classes.elementThird),Ze.classList.add(b.classes.dateSelectorUp),Ze.innerHTML=Ee,Le.classList.add(b.classes.element),Le.classList.add(b.classes.elementThird),Le.innerHTML=b.dateMonths[Q.getMonth()],ve.classList.add(b.classes.element),ve.classList.add(b.classes.elementThird),ve.setAttribute("contentEditable",!0),ve.addEventListener("input",_e),ve.addEventListener("blur",We),ve.innerHTML=Q.getDate(),ee.classList.add(b.classes.element),ee.classList.add(b.classes.elementThird),ee.setAttribute("contentEditable",!0),ee.addEventListener("input",je),ee.addEventListener("blur",We),ee.innerHTML=Q.getFullYear();var ln=document.createElement("div");ln.classList.add(b.classes.button),ln.classList.add(b.classes.elementThird),ln.innerHTML=Ee;var Yt=document.createElement("div");Yt.classList.add(b.classes.button),Yt.classList.add(b.classes.elementThird),Yt.innerHTML=Ee;var ma=document.createElement("div");ma.classList.add(b.classes.button),ma.classList.add(b.classes.elementThird),ma.innerHTML=Ee,an.onclick=function(){return Et(1)},bt.onclick=function(){return Vt(1)},Ze.onclick=function(){return qa(1)},ln.onclick=function(){return Et(-1)},Yt.onclick=function(){return Vt(-1)},ma.onclick=function(){return qa(-1)};var At=document.createElement("div");At.classList.add(b.classes.button),At.classList.add(b.classes.elementHalf),At.classList.add(b.classes.backgroundSuccess),At.innerHTML=ye,At.onclick=function(){M(Jn,ge),P(),Y?Y(Q):V&&V(Q)};var An=document.createElement("div");An.classList.add(b.classes.button),An.classList.add(b.classes.elementHalf),An.classList.add(b.classes.backgroundError),An.innerHTML=ie,An.onclick=function(){M(Jn,ge),P(),ce?ce(Q):q&&q(Q)},ze.appendChild(an),ze.appendChild(bt),ze.appendChild(Ze),ze.appendChild(Le),ze.appendChild(ve),ze.appendChild(ee),ze.appendChild(ln),ze.appendChild(Yt),ze.appendChild(ma),ga.appendChild(ze),nn.appendChild(ga),nn.appendChild(At),nn.appendChild(An),nn.listener=function(Ve){v(Ve)?At.click():C(Ve)&&An.click()},R(nn,ge),k(nn,ge)};m.default={alert:j,force:B,confirm:A,input:L,select:U,date:K,setOptions:S,hideAlerts:O}}])})}).call(a,r(0)(n))}])})}),ng={};I6(ng,{default:()=>Iu});var N6=eg(tg());O6(ng,eg(tg()));var{default:Xd,...U6}=N6,Iu=Xd!==void 0?Xd:U6;h();h();var v0=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function w0(e,t,n,a){e.addEventListener?e.addEventListener(t,n,a):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function ig(e,t){for(var n=t.slice(0,t.length-1),a=0;a=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function j6(e,t){for(var n=e.length>=t.length?e:t,a=e.length>=t.length?t:e,r=!0,o=0;o=0&&Je.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Je.splice(0,Je.length),(t===93||t===224)&&(t=91),t in kt){kt[t]=!1;for(var a in Wn)Wn[a]===t&&(Ue[a]=!1)}}function Y6(e){if(typeof e>"u")Object.keys(mt).forEach(function(u){return delete mt[u]});else if(Array.isArray(e))e.forEach(function(u){u.key&&A0(u)});else if(typeof e=="object")e.key&&A0(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a1?ig(Wn,s):[];mt[m]=mt[m].filter(function(f){var g=a?f.method===a:!0;return!(g&&f.scope===n&&j6(f.mods,p))})}})};function rg(e,t,n,a){if(t.element===a){var r;if(t.scope===n||t.scope==="all"){r=t.mods.length>0;for(var o in kt)Object.prototype.hasOwnProperty.call(kt,o)&&(!kt[o]&&t.mods.indexOf(+o)>-1||kt[o]&&t.mods.indexOf(+o)===-1)&&(r=!1);(t.mods.length===0&&!kt[16]&&!kt[18]&&!kt[17]&&!kt[91]||r||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function og(e,t){var n=mt["*"],a=e.keyCode||e.which||e.charCode;if(Ue.filter.call(this,e)){if((a===93||a===224)&&(a=91),Je.indexOf(a)===-1&&a!==229&&Je.push(a),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(g){var y=S0[g];e[g]&&Je.indexOf(y)===-1?Je.push(y):!e[g]&&Je.indexOf(y)>-1?Je.splice(Je.indexOf(y),1):g==="metaKey"&&e[g]&&Je.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Je=Je.slice(Je.indexOf(y))))}),a in kt){kt[a]=!0;for(var r in Wn)Wn[r]===a&&(Ue[r]=!0);if(!n)return}for(var o in kt)Object.prototype.hasOwnProperty.call(kt,o)&&(kt[o]=e[S0[o]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Je.indexOf(17)===-1&&Je.push(17),Je.indexOf(18)===-1&&Je.push(18),kt[17]=!0,kt[18]=!0);var u=vo();if(n)for(var i=0;i-1}function Ue(e,t,n){Je=[];var a=sg(e),r=[],o="all",u=document,i=0,s=!1,c=!0,l="+",m=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(o=t.scope),t.element&&(u=t.element),t.keyup&&(s=t.keyup),t.keydown!==void 0&&(c=t.keydown),t.capture!==void 0&&(m=t.capture),typeof t.splitKey=="string"&&(l=t.splitKey)),typeof t=="string"&&(o=t);i1&&(r=ig(Wn,e)),e=e[e.length-1],e=e==="*"?"*":Nu(e),e in mt||(mt[e]=[]),mt[e].push({keyup:s,keydown:c,scope:o,mods:r,shortcut:a[i],method:n,key:a[i],splitKey:l,element:u});typeof u<"u"&&!J6(u)&&window&&(cg.push(u),w0(u,"keydown",function(p){og(p,u)},m),ag||(ag=!0,w0(window,"focus",function(){Je=[]},m)),w0(u,"keyup",function(p){og(p,u),V6(p)},m))}function Q6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(mt).forEach(function(n){var a=mt[n].filter(function(r){return r.scope===t&&r.shortcut===e});a.forEach(function(r){r&&r.method&&r.method()})})}var k0={getPressedKeyString:W6,setScope:dg,getScope:vo,deleteScope:G6,getPressedKeyCodes:q6,isPressed:$6,filter:K6,trigger:Q6,unbind:Y6,keyMap:Co,modifier:Wn,modifierMap:S0};for(Ou in k0)Object.prototype.hasOwnProperty.call(k0,Ou)&&(Ue[Ou]=k0[Ou]);var Ou;typeof document<"u"&&(ug=window.hotkeys,Ue.noConflict=function(e){return e&&window.hotkeys===Ue&&(window.hotkeys=ug),Ue},window.hotkeys=Ue);var ug;h();h();var Z6={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},mg={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},lt={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},jt={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},ya={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},G=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let a=G.getVersionPrecision(e),r=G.getVersionPrecision(t),o=Math.max(a,r),u=0,i=G.map([e,t],s=>{let c=o-G.getVersionPrecision(s),l=s+new Array(c+1).join(".0");return G.map(l.split("."),m=>new Array(20-m.length).join("0")+m).reverse()});for(n&&(u=o-Math.min(a,r)),o-=1;o>=u;){if(i[0][o]>i[1][o])return 1;if(i[0][o]===i[1][o]){if(o===u)return 0;o-=1}else if(i[0][o]{n[u]=o[u]})}return e}static getBrowserAlias(e){return Z6[e]}static getBrowserTypeByAlias(e){return mg[e]||""}},qe=/version\/(\d+(\.?_?\d+)+)/i,X6=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=G.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=G.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=G.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=G.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=G.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=G.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=G.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=G.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=G.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=G.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=G.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=G.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=G.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=G.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=G.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=G.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=G.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=G.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=G.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=G.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=G.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=G.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=G.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=G.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=G.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=G.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=G.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,a=e.search("\\(")!==-1?n:t;return{name:G.getFirstMatch(a,e),version:G.getSecondMatch(a,e)}}}],e9=X6,t9=[{test:[/Roku\/DVP/],describe(e){let t=G.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:jt.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=G.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:jt.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=G.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=G.getWindowsVersionName(t);return{name:jt.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:jt.iOS},n=G.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=G.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=G.getMacOSVersionName(t),a={name:jt.MacOS,version:t};return n&&(a.versionName=n),a}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=G.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:jt.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=G.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=G.getAndroidVersionName(t),a={name:jt.Android,version:t};return n&&(a.versionName=n),a}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=G.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:jt.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=G.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||G.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||G.getFirstMatch(/\bbb(\d+)/i,e);return{name:jt.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=G.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:jt.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=G.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:jt.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:jt.Linux}}},{test:[/CrOS/],describe(){return{name:jt.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=G.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:jt.PlayStation4,version:t}}}],n9=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=G.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:lt.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:lt.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:lt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:lt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:lt.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:lt.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:lt.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=G.getFirstMatch(/(ipod|iphone)/i,e);return{type:lt.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:lt.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:lt.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:lt.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:lt.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:lt.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:lt.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:lt.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:lt.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:lt.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:lt.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:lt.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:lt.tv}}}],a9=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:ya.Blink};let t=G.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:ya.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:ya.Trident},n=G.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:ya.Presto},n=G.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:ya.Gecko},n=G.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:ya.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:ya.WebKit},n=G.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],r9=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=G.find(e9,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=G.find(t9,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=G.find(n9,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=G.find(a9,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return G.assign({},this.parsedResult)}satisfies(e){let t={},n=0,a={},r=0;if(Object.keys(e).forEach(o=>{let u=e[o];typeof u=="string"?(a[o]=u,r+=1):typeof u=="object"&&(t[o]=u,n+=1)}),n>0){let o=Object.keys(t),u=G.find(o,s=>this.isOS(s));if(u){let s=this.satisfies(t[u]);if(s!==void 0)return s}let i=G.find(o,s=>this.isPlatform(s));if(i){let s=this.satisfies(t[i]);if(s!==void 0)return s}}if(r>0){let o=Object.keys(a),u=G.find(o,i=>this.isBrowser(i,!0));if(u!==void 0)return this.compareVersion(a[u])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),a=e.toLowerCase(),r=G.getBrowserTypeByAlias(a);return t&&r&&(a=r.toLowerCase()),a===n}compareVersion(e){let t=[0],n=e,a=!1,r=this.getBrowserVersion();if(typeof r=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(a=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(a=!0,n=e.substr(1)),t.indexOf(G.compareVersions(r,n,a))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},gg=r9,o9=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new gg(e,t)}static parse(e){return new gg(e).getResult()}static get BROWSER_MAP(){return mg}static get ENGINE_MAP(){return ya}static get OS_MAP(){return jt}static get PLATFORMS_MAP(){return lt}},vr=o9;h();h();var{entries:Eg,setPrototypeOf:pg,isFrozen:u9,getPrototypeOf:i9,getOwnPropertyDescriptor:s9}=Object,{freeze:zt,seal:Dn,create:l9}=Object,{apply:_0,construct:B0}=typeof Reflect<"u"&&Reflect;_0||(_0=function(e,t,n){return e.apply(t,n)});zt||(zt=function(e){return e});Dn||(Dn=function(e){return e});B0||(B0=function(e,t){return new e(...t)});var c9=pn(Array.prototype.forEach),fg=pn(Array.prototype.pop),wo=pn(Array.prototype.push),zu=pn(String.prototype.toLowerCase),D0=pn(String.prototype.toString),d9=pn(String.prototype.match),Sn=pn(String.prototype.replace),g9=pn(String.prototype.indexOf),m9=pn(String.prototype.trim),on=pn(RegExp.prototype.test),Ao=p9(TypeError);function pn(e){return function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r/gm),x9=Dn(/\${[\w\W]*}/gm),T9=Dn(/^data-[\-\w.\u00B7-\uFFFF]/),E9=Dn(/^aria-[\-\w]+$/),Cg=Dn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),C9=Dn(/^(?:\w+script|data):/i),v9=Dn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),vg=Dn(/^html$/i),Tg=Object.freeze({__proto__:null,MUSTACHE_EXPR:b9,ERB_EXPR:y9,TMPLIT_EXPR:x9,DATA_ATTR:T9,ARIA_ATTR:E9,IS_ALLOWED_URI:Cg,IS_SCRIPT_OR_DATA:C9,ATTR_WHITESPACE:v9,DOCTYPE_NAME:vg}),w9=()=>typeof window>"u"?null:window,A9=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,a="data-tt-policy-suffix";t&&t.hasAttribute(a)&&(n=t.getAttribute(a));let r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return null}};function wg(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:w9(),t=I=>wg(I);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,a=n.currentScript,{document:r}=e,{DocumentFragment:o,HTMLTemplateElement:u,Node:i,Element:s,NodeFilter:c,NamedNodeMap:l=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:m,DOMParser:p,trustedTypes:f}=e,g=s.prototype,y=Uu(g,"cloneNode"),w=Uu(g,"nextSibling"),b=Uu(g,"childNodes"),S=Uu(g,"parentNode");if(typeof u=="function"){let I=r.createElement("template");I.content&&I.content.ownerDocument&&(r=I.content.ownerDocument)}let D,N="",{implementation:_,createNodeIterator:x,createDocumentFragment:E,getElementsByTagName:T}=r,{importNode:v}=n,C={};t.isSupported=typeof Eg=="function"&&typeof S=="function"&&_&&_.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:R,ERB_EXPR:M,TMPLIT_EXPR:k,DATA_ATTR:P,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:j,ATTR_WHITESPACE:B}=Tg,{IS_ALLOWED_URI:A}=Tg,L=null,U=Me({},[...hg,...L0,...M0,...P0,...bg]),K=null,H=Me({},[...yg,...F0,...xg,...ju]),V=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),q=null,oe=null,Q=!0,J=!0,ye=!1,xe=!0,ie=!1,Y=!1,ce=!1,fe=!1,ge=!1,Ee=!1,Le=!1,ve=!0,ee=!1,De="user-content-",_e=!0,je=!1,We={},Et=null,Vt=Me({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),qa=null,nn=Me({},["audio","video","img","source","image","track"]),Jn=null,ga=Me({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ze="http://www.w3.org/1998/Math/MathML",an="http://www.w3.org/2000/svg",bt="http://www.w3.org/1999/xhtml",Ze=bt,ln=!1,Yt=null,ma=Me({},[ze,an,bt],D0),At,An=["application/xhtml+xml","text/html"],Ve="text/html",W,pe=null,nt=r.createElement("form"),Be=function(I){return I instanceof RegExp||I instanceof Function},Ie=function(I){if(!(pe&&pe===I)){if((!I||typeof I!="object")&&(I={}),I=wr(I),At=An.indexOf(I.PARSER_MEDIA_TYPE)===-1?At=Ve:At=I.PARSER_MEDIA_TYPE,W=At==="application/xhtml+xml"?D0:zu,L="ALLOWED_TAGS"in I?Me({},I.ALLOWED_TAGS,W):U,K="ALLOWED_ATTR"in I?Me({},I.ALLOWED_ATTR,W):H,Yt="ALLOWED_NAMESPACES"in I?Me({},I.ALLOWED_NAMESPACES,D0):ma,Jn="ADD_URI_SAFE_ATTR"in I?Me(wr(ga),I.ADD_URI_SAFE_ATTR,W):ga,qa="ADD_DATA_URI_TAGS"in I?Me(wr(nn),I.ADD_DATA_URI_TAGS,W):nn,Et="FORBID_CONTENTS"in I?Me({},I.FORBID_CONTENTS,W):Vt,q="FORBID_TAGS"in I?Me({},I.FORBID_TAGS,W):{},oe="FORBID_ATTR"in I?Me({},I.FORBID_ATTR,W):{},We="USE_PROFILES"in I?I.USE_PROFILES:!1,Q=I.ALLOW_ARIA_ATTR!==!1,J=I.ALLOW_DATA_ATTR!==!1,ye=I.ALLOW_UNKNOWN_PROTOCOLS||!1,xe=I.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ie=I.SAFE_FOR_TEMPLATES||!1,Y=I.WHOLE_DOCUMENT||!1,ge=I.RETURN_DOM||!1,Ee=I.RETURN_DOM_FRAGMENT||!1,Le=I.RETURN_TRUSTED_TYPE||!1,fe=I.FORCE_BODY||!1,ve=I.SANITIZE_DOM!==!1,ee=I.SANITIZE_NAMED_PROPS||!1,_e=I.KEEP_CONTENT!==!1,je=I.IN_PLACE||!1,A=I.ALLOWED_URI_REGEXP||Cg,Ze=I.NAMESPACE||bt,V=I.CUSTOM_ELEMENT_HANDLING||{},I.CUSTOM_ELEMENT_HANDLING&&Be(I.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(V.tagNameCheck=I.CUSTOM_ELEMENT_HANDLING.tagNameCheck),I.CUSTOM_ELEMENT_HANDLING&&Be(I.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(V.attributeNameCheck=I.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),I.CUSTOM_ELEMENT_HANDLING&&typeof I.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(V.allowCustomizedBuiltInElements=I.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ie&&(J=!1),Ee&&(ge=!0),We&&(L=Me({},[...bg]),K=[],We.html===!0&&(Me(L,hg),Me(K,yg)),We.svg===!0&&(Me(L,L0),Me(K,F0),Me(K,ju)),We.svgFilters===!0&&(Me(L,M0),Me(K,F0),Me(K,ju)),We.mathMl===!0&&(Me(L,P0),Me(K,xg),Me(K,ju))),I.ADD_TAGS&&(L===U&&(L=wr(L)),Me(L,I.ADD_TAGS,W)),I.ADD_ATTR&&(K===H&&(K=wr(K)),Me(K,I.ADD_ATTR,W)),I.ADD_URI_SAFE_ATTR&&Me(Jn,I.ADD_URI_SAFE_ATTR,W),I.FORBID_CONTENTS&&(Et===Vt&&(Et=wr(Et)),Me(Et,I.FORBID_CONTENTS,W)),_e&&(L["#text"]=!0),Y&&Me(L,["html","head","body"]),L.table&&(Me(L,["tbody"]),delete q.tbody),I.TRUSTED_TYPES_POLICY){if(typeof I.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ao('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof I.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ao('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');D=I.TRUSTED_TYPES_POLICY,N=D.createHTML("")}else D===void 0&&(D=A9(f,a)),D!==null&&typeof N=="string"&&(N=D.createHTML(""));zt&&zt(I),pe=I}},Qn=Me({},["mi","mo","mn","ms","mtext"]),jn=Me({},["foreignobject","desc","title","annotation-xml"]),cn=Me({},["title","style","font","a","script"]),pr=Me({},L0);Me(pr,M0),Me(pr,f9);let Fs=Me({},P0);Me(Fs,h9);let qh=function(I){let le=S(I);(!le||!le.tagName)&&(le={namespaceURI:Ze,tagName:"template"});let te=zu(I.tagName),Oe=zu(le.tagName);return Yt[I.namespaceURI]?I.namespaceURI===an?le.namespaceURI===bt?te==="svg":le.namespaceURI===ze?te==="svg"&&(Oe==="annotation-xml"||Qn[Oe]):!!pr[te]:I.namespaceURI===ze?le.namespaceURI===bt?te==="math":le.namespaceURI===an?te==="math"&&jn[Oe]:!!Fs[te]:I.namespaceURI===bt?le.namespaceURI===an&&!jn[Oe]||le.namespaceURI===ze&&!Qn[Oe]?!1:!Fs[te]&&(cn[te]||!pr[te]):!!(At==="application/xhtml+xml"&&Yt[I.namespaceURI]):!1},fr=function(I){wo(t.removed,{element:I});try{I.parentNode.removeChild(I)}catch{I.remove()}},_s=function(I,le){try{wo(t.removed,{attribute:le.getAttributeNode(I),from:le})}catch{wo(t.removed,{attribute:null,from:le})}if(le.removeAttribute(I),I==="is"&&!K[I])if(ge||Ee)try{fr(le)}catch{}else try{le.setAttribute(I,"")}catch{}},S4=function(I){let le,te;if(fe)I=""+I;else{let Ut=d9(I,/^[\r\n\t ]+/);te=Ut&&Ut[0]}At==="application/xhtml+xml"&&Ze===bt&&(I=''+I+"");let Oe=D?D.createHTML(I):I;if(Ze===bt)try{le=new p().parseFromString(Oe,At)}catch{}if(!le||!le.documentElement){le=_.createDocument(Ze,"template",null);try{le.documentElement.innerHTML=ln?N:Oe}catch{}}let yt=le.body||le.documentElement;return I&&te&&yt.insertBefore(r.createTextNode(te),yt.childNodes[0]||null),Ze===bt?T.call(le,Y?"html":"body")[0]:Y?le.documentElement:yt},D4=function(I){return x.call(I.ownerDocument||I,I,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},Wh=function(I){return I instanceof m&&(typeof I.nodeName!="string"||typeof I.textContent!="string"||typeof I.removeChild!="function"||!(I.attributes instanceof l)||typeof I.removeAttribute!="function"||typeof I.setAttribute!="function"||typeof I.namespaceURI!="string"||typeof I.insertBefore!="function"||typeof I.hasChildNodes!="function")},bu=function(I){return typeof i=="object"?I instanceof i:I&&typeof I=="object"&&typeof I.nodeType=="number"&&typeof I.nodeName=="string"},Zn=function(I,le,te){C[I]&&c9(C[I],Oe=>{Oe.call(t,le,te,pe)})},L4=function(I){let le;if(Zn("beforeSanitizeElements",I,null),Wh(I))return fr(I),!0;let te=W(I.nodeName);if(Zn("uponSanitizeElement",I,{tagName:te,allowedTags:L}),I.hasChildNodes()&&!bu(I.firstElementChild)&&(!bu(I.content)||!bu(I.content.firstElementChild))&&on(/<[/\w]/g,I.innerHTML)&&on(/<[/\w]/g,I.textContent))return fr(I),!0;if(!L[te]||q[te]){if(!q[te]&&P4(te)&&(V.tagNameCheck instanceof RegExp&&on(V.tagNameCheck,te)||V.tagNameCheck instanceof Function&&V.tagNameCheck(te)))return!1;if(_e&&!Et[te]){let Oe=S(I)||I.parentNode,yt=b(I)||I.childNodes;if(yt&&Oe){let Ut=yt.length;for(let Jt=Ut-1;Jt>=0;--Jt)Oe.insertBefore(y(yt[Jt],!0),w(I))}}return fr(I),!0}return I instanceof s&&!qh(I)||(te==="noscript"||te==="noembed")&&on(/<\/no(script|embed)/i,I.innerHTML)?(fr(I),!0):(ie&&I.nodeType===3&&(le=I.textContent,le=Sn(le,R," "),le=Sn(le,M," "),le=Sn(le,k," "),I.textContent!==le&&(wo(t.removed,{element:I.cloneNode()}),I.textContent=le)),Zn("afterSanitizeElements",I,null),!1)},M4=function(I,le,te){if(ve&&(le==="id"||le==="name")&&(te in r||te in nt))return!1;if(!(J&&!oe[le]&&on(P,le))&&!(Q&&on(O,le))){if(!K[le]||oe[le]){if(!(P4(I)&&(V.tagNameCheck instanceof RegExp&&on(V.tagNameCheck,I)||V.tagNameCheck instanceof Function&&V.tagNameCheck(I))&&(V.attributeNameCheck instanceof RegExp&&on(V.attributeNameCheck,le)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(le))||le==="is"&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&on(V.tagNameCheck,te)||V.tagNameCheck instanceof Function&&V.tagNameCheck(te))))return!1}else if(!Jn[le]&&!on(A,Sn(te,B,""))&&!((le==="src"||le==="xlink:href"||le==="href")&&I!=="script"&&g9(te,"data:")===0&&qa[I])&&!(ye&&!on(j,Sn(te,B,"")))&&te)return!1}return!0},P4=function(I){return I.indexOf("-")>0},F4=function(I){let le,te,Oe,yt;Zn("beforeSanitizeAttributes",I,null);let{attributes:Ut}=I;if(!Ut)return;let Jt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:K};for(yt=Ut.length;yt--;){le=Ut[yt];let{name:Ct,namespaceURI:hr}=le;if(te=Ct==="value"?le.value:m9(le.value),Oe=W(Ct),Jt.attrName=Oe,Jt.attrValue=te,Jt.keepAttr=!0,Jt.forceKeepAttr=void 0,Zn("uponSanitizeAttribute",I,Jt),te=Jt.attrValue,Jt.forceKeepAttr||(_s(Ct,I),!Jt.keepAttr))continue;if(!xe&&on(/\/>/i,te)){_s(Ct,I);continue}ie&&(te=Sn(te,R," "),te=Sn(te,M," "),te=Sn(te,k," "));let _4=W(I.nodeName);if(M4(_4,Oe,te)){if(ee&&(Oe==="id"||Oe==="name")&&(_s(Ct,I),te=De+te),D&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!hr)switch(f.getAttributeType(_4,Oe)){case"TrustedHTML":{te=D.createHTML(te);break}case"TrustedScriptURL":{te=D.createScriptURL(te);break}}try{hr?I.setAttributeNS(hr,Ct,te):I.setAttribute(Ct,te),fg(t.removed)}catch{}}}Zn("afterSanitizeAttributes",I,null)},Kh=function I(le){let te,Oe=D4(le);for(Zn("beforeSanitizeShadowDOM",le,null);te=Oe.nextNode();)Zn("uponSanitizeShadowNode",te,null),!L4(te)&&(te.content instanceof o&&I(te.content),F4(te));Zn("afterSanitizeShadowDOM",le,null)};return t.sanitize=function(I){let le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te,Oe,yt,Ut;if(ln=!I,ln&&(I=""),typeof I!="string"&&!bu(I))if(typeof I.toString=="function"){if(I=I.toString(),typeof I!="string")throw Ao("dirty is not a string, aborting")}else throw Ao("toString is not a function");if(!t.isSupported)return I;if(ce||Ie(le),t.removed=[],typeof I=="string"&&(je=!1),je){if(I.nodeName){let hr=W(I.nodeName);if(!L[hr]||q[hr])throw Ao("root node is forbidden and cannot be sanitized in-place")}}else if(I instanceof i)te=S4(""),Oe=te.ownerDocument.importNode(I,!0),Oe.nodeType===1&&Oe.nodeName==="BODY"||Oe.nodeName==="HTML"?te=Oe:te.appendChild(Oe);else{if(!ge&&!ie&&!Y&&I.indexOf("<")===-1)return D&&Le?D.createHTML(I):I;if(te=S4(I),!te)return ge?null:Le?N:""}te&&fe&&fr(te.firstChild);let Jt=D4(je?I:te);for(;yt=Jt.nextNode();)L4(yt)||(yt.content instanceof o&&Kh(yt.content),F4(yt));if(je)return I;if(ge){if(Ee)for(Ut=E.call(te.ownerDocument);te.firstChild;)Ut.appendChild(te.firstChild);else Ut=te;return(K.shadowroot||K.shadowrootmod)&&(Ut=v.call(n,Ut,!0)),Ut}let Ct=Y?te.outerHTML:te.innerHTML;return Y&&L["!doctype"]&&te.ownerDocument&&te.ownerDocument.doctype&&te.ownerDocument.doctype.name&&on(vg,te.ownerDocument.doctype.name)&&(Ct=" +`+Ct),ie&&(Ct=Sn(Ct,R," "),Ct=Sn(Ct,M," "),Ct=Sn(Ct,k," ")),D&&Le?D.createHTML(Ct):Ct},t.setConfig=function(I){Ie(I),ce=!0},t.clearConfig=function(){pe=null,ce=!1},t.isValidAttribute=function(I,le,te){pe||Ie({});let Oe=W(I),yt=W(le);return M4(Oe,yt,te)},t.addHook=function(I,le){typeof le=="function"&&(C[I]=C[I]||[],wo(C[I],le))},t.removeHook=function(I){if(C[I])return fg(C[I])},t.removeHooks=function(I){C[I]&&(C[I]=[])},t.removeAllHooks=function(){C={}},t}var Ne=wg();var R0=Iu.alert;h();h();h();function Ke(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():F}var Ce=Ke();function me(){return Ce.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function Ag(){return Ce.BETA==="1"}function ta(){return Ce.PROD==="1"}function na(){return Ce.PROD_API==="1"}function kg(){return Ce.HAS_CSP_ERROR=="1"}function ot(){if(Ce.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function Hu(){return typeof Deno<"u"}var I8=Ke().PROD==="1",Ar=Ke().PROD!=="1";function qu(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}function ko(){if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let e=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(e&&(e._isUserscript||e._isSafari))}else return!1}var Sg={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",curentPlan:"\u5F53\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52A8\u7EED\u671F",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",sponsorLabel:"$1 \u8D77\u8D5E\u52A9\u5F00\u53D1\u8005",help:"\u5E2E\u52A9",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D\uFF0C\u518D\u70B9\u51FB\u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D\u5373\u53EF\u8BBE\u7F6E",browserShortcutsNoteForChrome:"\u7C7BChrome \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762\uFF0C\u5728`\u7BA1\u7406\u5FEB\u6377\u952E`\u9762\u677F(`chrome://extensions/shortcuts`)\u8BBE\u7F6E\uFF0C\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8DF3\u8F6C\u5230\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E\u683C\u5F0F\u4E3A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1: \u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1 & PDF\u6587\u6863\u7FFB\u8BD1","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7F51\u9875\u53CC\u8BED\u7FFB\u8BD1\u6269\u5C55\uFF0C\u540C\u65F6\u652F\u6301 PDF \u7FFB\u8BD1\uFF0C\u53CC\u8BED Epub \u7535\u5B50\u4E66\u5236\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u817E\u8BAF\u7FFB\u8BD1\u7B49\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\uFF0C\u514D\u8D39\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8BD1\u5E76\u9690\u85CF\u539F\u6587/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.toggleTranslationMask":"\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.donateContext":"\u4E86\u89E3\u8D5E\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5219\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875(\u4EC5\u8BD1\u6587)/\u663E\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7","fingers.0":"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478",mouseHoldKey:"+ {key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoverHoldKey:"\u9F20\u6807\u60AC\u505C\u540C\u65F6\u6309\u4E0B\u5FEB\u6377\u952E\u7FFB\u8BD1\u6BB5\u843D","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u6587\u6863",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",goAdvancedSettings:"\u53BB\u8FDB\u9636\u8BBE\u7F6E\u9875",goAdvancedInterfaceSettings:"\u53BB\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u8BBE\u7F6E\u9875\u9762",advanced:"\u8FDB\u9636\u8BBE\u7F6E",advancedDescription:"\u4E00\u822C\u65E0\u9700\u8BBE\u7F6E\uFF0C\u4FDD\u6301\u9ED8\u8BA4\u5373\u53EF\u3002\u4EC5\u5BF9\u4E8E\u66F4\u4E13\u4E1A\u7684\u7528\u6237\uFF0C\u63D0\u4F9B\u66F4\u4E2A\u6027\u5316\u7684\u8BBE\u7F6E\u9879\u3002",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00","display both the original text and the translation":"\u540C\u65F6\u663E\u793A\u539F\u6587\u548C\u8BD1\u6587","keyboard shortcuts":"\u952E\u76D8\u5FEB\u6377\u952E",modify:"\u4FEE\u6539\u5FEB\u6377\u952E",reset:"\u91CD\u7F6E",close:"\u5173\u95ED",homepage:"\u4E3B\u9875",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",changeToOnlyTranslationMode:"\u5207\u6362\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u5207\u6362\u4E3A\u53CC\u8BED\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",unknownError:"\u672A\u77E5\u9519\u8BEF",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",needActionForOptions:"(\u9700\u8BBE\u7F6E)",translationEngine:"\u5F15\u64CE\u9009\u9879",sourceLanguage:"\u539F\u6587\u8BED\u8A00",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",forThisSite:"\u5F53\u524D\u7F51\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1 {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8BD1 {language}",alwaysTranslateSomeSite:"\u603B\u662F\u7FFB\u8BD1 {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8BD1 {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u6DFB\u52A0",default:"\u9ED8\u8BA4",forThisLanguage:"\u9488\u5BF9\u8BE5\u8BED\u8A00\uFF1A","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91","translate other languages into specific language":"\u5C06\u5176\u4ED6\u8BED\u8A00\u7FFB\u8BD1\u4E3A\u4F60\u8BBE\u7F6E\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1",language:"\u8BED\u8A00","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",Error:"\u9519\u8BEF",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",interface:"\u754C\u9762\u8BBE\u7F6E",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8BD1\u9875\u9762\u6807\u9898","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1",enableUserscriptPagePopup:"\u5728\u9875\u9762\u4E0A\u663E\u793A\u60AC\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528\u5FEB\u6377\u952E/{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8BD1\u6587\u6837\u5F0F",currentUrl:"\u5F53\u524D\u7F51\u5740",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664","languages.auto":"\u81EA\u52A8\u68C0\u6D4B",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",upload:"\u4E0A\u4F20",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",download:"\u4E0B\u8F7D",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",deleteFail:"\u5220\u9664\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",backupToCloudDescription:"\u624B\u52A8\u4E0A\u4F20\u6216\u6062\u590D\u5907\u4EFD\u6587\u4EF6\uFF0C\u6700\u591A\u5141\u8BB83\u4E2A\u4E0D\u540C\u7684\u5907\u4EFD",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",updatedAt:"\u66F4\u65B0\u4E8E {date}",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u9891\u9053",joinTelegramChannel:"\u5173\u6CE8 Telegram \u9891\u9053\u83B7\u53D6\u6700\u65B0\u66F4\u65B0",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",autoSync:"\u81EA\u52A8\u5B9A\u65F6\u540C\u6B65",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863","edit border color":"\u4FEE\u6539\u8FB9\u6846\u989C\u8272",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",enableSubtitle:"\u5F00\u542F\u5B57\u5E55\u7FFB\u8BD1",enableSubtitleDescription:"\u9488\u5BF9 youtube \u7B49\u7F51\u7AD9\u7684\u5B57\u5E55\u533A\u57DF\u5F00\u542F\u7FFB\u8BD1",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",enableSearchEnhancement:"\u542F\u7528\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A",enableSearchEnhancementDescription:"\u5F00\u542F\u540E\uFF0C\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\u793E\u533A\uFF09\u53F3\u8FB9\u680F\u81EA\u52A8\u663E\u793A\u5BF9\u5E94\u82F1\u6587\u5173\u952E\u8BCD\u7684\u201C\u8C37\u6B4C\u65B0\u95FB\u201D\u641C\u7D22\u7ED3\u679C\u3002",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerMinute":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u5206\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u8350\uFF09, \u5C06\u4F1A\u5728\u5355\u72EC\u4F5C\u4E3A\u4E00\u6BB5\u53D1\u9001\u7ED9 OpenAI","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740",enabledExtension:"\u542F\u7528\u6269\u5C55",clickToDisableExtension:"\u70B9\u51FB\u7981\u7528\u6269\u5C55",clickToEnableExtension:"\u70B9\u51FB\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",modifyMouseHoverKey:"\u4FEE\u6539\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u8BBE\u7F6E",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",disableTint:"* \u4F60\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u542F\u7528\u3002",searchEnhancementNotes:"\u6211\u4EEC\u53D1\u73B0\uFF0C\u4E2D\u6587\u5173\u952E\u8BCD\u548C\u82F1\u6587\u5173\u952E\u8BCD\u7684\u65B0\u95FB\u7ED3\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u542F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u529F\u80FD\u540E\uFF0C\u6211\u4EEC\u4F1A\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\u7F51\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52A8\u7528\u82F1\u6587\u4E3A\u4F60\u641C\u7D22\u540C\u6837\u7684\u5173\u952E\u8BCD\u5E76\u5C55\u793A\u5728\u53F3\u4FA7\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8BE5\u529F\u80FD\u7684\u8BDD\uFF0C\u53EF\u4EE5\u9009\u62E9\u7981\u7528\u5B83\u3002",option:"\u8BBE\u7F6E",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",needLoginAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u81EA\u5B9A\u4E49)",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",onetime_7day:"7 \u5929\u4F53\u9A8C\u5305",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradePlan:"\u70B9\u6B64\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL \u548C OpenAI \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8BD1",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u8BBE\u7F6E\u5176\u4ED6\u5FEB\u6377\u952E\u6765\u89E6\u53D1\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1"};var Dg={nologin:"\u672A\u767B\u9304",login:"\u767B\u9304",manageAccount:"\u7BA1\u7406\u8CEC\u6236",logout:"\u9000\u51FA",curentPlan:"\u7576\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u671F",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u64CA\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u8AAA\u660E",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u9644\u52A0\u5143\u4EF6\u7BA1\u7406\u9801\u9762 \u300Cabout:addons\u300D\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u5716\u793A\u300D\uFF0C\u518D\u9EDE\u9078\u300C\u7BA1\u7406\u64F4\u5145\u5957\u4EF6\u5FEB\u901F\u9375\u300D\u5373\u53EF\u8A2D\u5B9A",browserShortcutsNoteForChrome:"Chromium \u6838\u5FC3\u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u64F4\u5145\u529F\u80FD\u7BA1\u7406\u9801\u9762\uFF0C\u5728\u300C\u9375\u76E4\u5FEB\u901F\u9375\u300D\u9801\u9762(chrome://extensions/shortcuts)\u8A2D\u5B9A\uFF0C\u9EDE\u9078\u4E0B\u65B9\u6309\u9215\u524D\u5F80\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u901F\u9375\u683C\u5F0F\u70BA\uFF1A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F: \u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F & PDF\u6587\u6A94\u7FFB\u8B6F","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7DB2\u9801\u96D9\u8A9E\u7FFB\u8B6F\u64F4\u5C55\uFF0C\u540C\u6642\u652F\u6301 PDF \u7FFB\u8B6F\uFF0C\u96D9\u8A9E Epub \u96FB\u5B50\u66F8\u88FD\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u9A30\u8A0A\u7FFB\u8B6F\u7B49\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF0C\u514D\u8CBB\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8B6F\u4E26\u96B1\u85CF\u539F\u6587/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.toggleTranslationMask":"\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.donateContext":"\u4E86\u89E3\u8D0A\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u5247\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u6642\u89F8\u78B0\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801(\u50C5\u8B6F\u6587)/\u986F\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304","fingers.0":"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478",mouseHoldKey:"+ {key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u6377\u9375(\u6253\u958B\u8A2D\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoverHoldKey:"\u9F20\u6A19\u6ED1\u904E\u540C\u6642\u6309\u4E0B X \u9375\u7FFB\u8B6F\u6BB5\u843D","mouse-translate":"\u9F20\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",goAdvancedSettings:"\u524D\u5F80\u9032\u968E\u8A2D\u5B9A\u9801\u9762",goAdvancedInterfaceSettings:"\u524D\u5F80\u81EA\u8A02\u8A2D\u5B9A\u9801\u9762",advanced:"\u9032\u968E\u8A2D\u5B9A",advancedDescription:"\u6B63\u5E38\u60C5\u6CC1\u7121\u9700\u8A2D\u5B9A\uFF0C\u4FDD\u6301\u9810\u8A2D\u5373\u53EF\u3002\u50C5\u91DD\u5C0D\u66F4\u5C08\u696D\u7684\u4F7F\u7528\u8005\uFF0C\u63D0\u4F9B\u66F4\u500B\u4EBA\u5316\u7684\u8A2D\u5B9A\u9805\u76EE\u3002",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00","display both the original text and the translation":"\u540C\u6642\u986F\u793A\u539F\u6587\u548C\u8B6F\u6587","keyboard shortcuts":"\u9375\u76E4\u5FEB\u901F\u9375",modify:"\u8B8A\u66F4\u5FEB\u901F\u9375",reset:"\u91CD\u8A2D",close:"\u95DC\u9589",homepage:"\u9996\u9801",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",changeToOnlyTranslationMode:"\u5207\u63DB\u70BA\u50C5\u986F\u793A\u8B6F\u6587",changeToDualTranslationMode:"\u5207\u63DB\u70BA\u96D9\u8A9E\u7FFB\u8B6F",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:"\u672A\u77E5\u7684\u932F\u8AA4",canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u9078\u9805",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",needActionForOptions:"(\u9700\u8A2D\u5B9A)",translationEngine:"\u5F15\u64CE\u9078\u9805",sourceLanguage:"\u539F\u6587\u8A9E\u8A00",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",forThisSite:"\u7576\u524D\u7DB2\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8B6F {language}",alwaysTranslateSomeSite:"\u7E3D\u662F\u7FFB\u8B6F {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8B6F {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u65B0\u589E",default:"\u9810\u8A2D",forThisLanguage:"\u91DD\u5C0D\u8A72\u8A9E\u8A00\uFF1A","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F","translate other languages into specific language":"\u5C07\u5176\u5B83\u8A9E\u8A00\u7FFB\u8B6F\u70BA\u4F60\u8A2D\u5B9A\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9",language:"\u8A9E\u8A00","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",Error:"\u932F\u8AA4",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",interface:"\u4ECB\u9762\u8A2D\u5B9A",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65",syncToAccount:"\u540C\u6B65\u5230\u8CEC\u6236",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u8CEC\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u8A2D\u5099\u4E4B\u9593\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u8CEC\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u8CEC\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8B6F","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9E\u99AC\u905C\u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8B6F\u9801\u9762\u6A19\u984C","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F",enableUserscriptPagePopup:"\u5728\u9801\u9762\u4E0A\u986F\u793A\u61F8\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528\u5FEB\u901F\u9375/{touch}\u518D\u6B21\u986F\u793A\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5EFA\u8B70\u5C07\u672C\u8A2D\u5B9A\u9801\u9762\u52A0\u5165\u81F3\u6211\u7684\u6700\u611B","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8B6F\u6587\u6A23\u5F0F",currentUrl:"\u76EE\u524D\u7DB2\u5740",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6E96\u3002",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",upload:"\u4E0A\u50B3",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",download:"\u4E0B\u8F09",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",deleteFail:"\u522A\u9664\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",backupToCloudDescription:"\u624B\u52D5\u4E0A\u50B3\u6216\u9084\u539F\u5099\u4EFD\u6A94\u6848\uFF0C\u6700\u591A\u5141\u8A31 3 \u500B\u4E0D\u540C\u7684\u5099\u4EFD",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",updatedAt:"\u66F4\u65B0\u65BC {date}",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u4EEC\u7684<3>Twitter\uFF0C<4>Telegram \u983B\u9053\u4EE5\u53CA\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u90F5\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u983B\u9053",joinTelegramChannel:"\u95DC\u6CE8 Telegram \u983B\u9053\u77AD\u89E3\u66F4\u65B0\u8CC7\u8A0A",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",autoSync:"\u81EA\u52D5\u5B9A\u6642\u540C\u6B65",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6","edit border color":"\u8B8A\u66F4\u908A\u6846\u8272\u5F69",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",enableSubtitle:"\u958B\u555F\u5B57\u5E55\u7FFB\u8B6F",enableSubtitleDescription:"\u91DD\u5C0D youtube \u7B49\u7DB2\u7AD9\u7684\u5B57\u5E55\u5340\u57DF\u958B\u555F\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",enableSearchEnhancement:"\u958B\u555F\u641C\u7D22\u589E\u5F37",enableSearchEnhancementDescription:"\u4E2D\u6587\u641C\u7D22\u8C37\u6B4C\u6703\u5728\u53F3\u908A\u51FA\u73FE\u82F1\u6587\u7248\u8C37\u6B4C\u65B0\u805E",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerMinute":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u5206\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u4EFD\u50B3\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u85A6\uFF09, \u5C07\u6703\u5728\u55AE\u7368\u4F5C\u70BA\u4E00\u6BB5\u767C\u9001\u7D66 OpenAI","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u50B3\u9001\u767C\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",clickToDisableExtension:"\u9EDE\u9078\u505C\u7528\u5957\u4EF6",clickToEnableExtension:"\u9EDE\u9078\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u9F20\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u7F6E\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u5B57\u7B26\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8B58\u5225\u70BA\u89F8\u767C\u5B57\u7B26\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u7981\u7528\u78BA\u8A8D",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",disableTint:"* \u60A8\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u555F\u7528\u3002",searchEnhancementNotes:"\u6211\u5011\u767C\u73FE\uFF0C\u4E2D\u6587\u95DC\u9375\u8A5E\u548C\u82F1\u6587\u95DC\u9375\u8A5E\u7684\u65B0\u805E\u7D50\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u555F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u4FE1\u606F\u589E\u5F37\u529F\u80FD\u5F8C\uFF0C\u6211\u5011\u6703\u5728\u652F\u6301\u7684\u7DB2\u7AD9\uFF08\u8C37\u6B4C\u65B0\u805E\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u95DC\u9375\u8A5E\uFF09\uFF0C\u96EA\u7403\uFF0C\u6771\u65B9\u8CA1\u5BCC\u7DB2\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52D5\u7528\u82F1\u6587\u70BA\u4F60\u641C\u7D22\u540C\u6A23\u7684\u95DC\u9375\u8A5E\u4E26\u5C55\u793A\u5728\u53F3\u5074\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8A72\u529F\u80FD\u7684\u8A71\uFF0C\u53EF\u4EE5\u9078\u64C7\u7981\u7528\u5B83\u3002",option:"\u9078\u9805",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL \u548C OpenAI \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8B6F",currentAccount:"\u7576\u524D\u8CEC\u6236"};var Lg={nologin:"Not logged in",login:"Login",manageAccount:"Manage Account",logout:"Logout",curentPlan:"Current Plan",endAt:"Expires",endAuto:"Auto Renew",lineBreakMaxTextCount:"Maximum number of characters allowed per sentence after line break","translate-pdf":"Click to translate PDF","noSupportTranslate-pdf":"The script is not supported, please use a plugin.","translate-firefox-local-pdf":"Click to upload PDF",enableLineBreak:"Whether to turn on automatic line wrapping for long paragraphs",sponsorLabel:"Sponsoring developers from $1 (monthly or one-time)",help:"Help",browserShortcutsNoteForFirefox:`To modify the shortcut key in Firefox browser, you need to open the extension management page 'about: addons', then click "Settings", and then click "Management shortcut key" to set it`,browserShortcutsNoteForChrome:"To modify the shortcut key in Chrome browser, you need to open the extension management page` chrome://extensions/shortcuts `) Settings, click the button below to jump to the shortcut key management page.",browserShortcutsSucks:"Please enter the shortcut key manually in the format:",enableLineBreakDescription:"After opening, a line break will be inserted at the end of each sentence in a long paragraph for easy reading","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate: Web Page&PDF Translation","browser.brandDescription":"Bilingual web page translation, also supports PDF translation, bilingual Epub eBook translation, free to use.","browser.toggleTranslatePage":"Toggle Translate Page","browser.toggleTranslateTheWholePage":"Toggle Translate the Whole Page","browser.toggleOnlyTransation":"Toggle Translate and Hide Original Text","browser.toggleTranslateToThePageEndImmediately":"Toggle Translate to the Bottom of the Page Immediately","browser.toggleTranslateTheMainPage":"Toggle Translate the Main Page","browser.openOptionsPage":"Open Settings Page","browser.toggleTranslationMask":"Toggle translation mask style","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-book","browser.openEbookBuilder":"Make Dual EPUB ebook","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.donateContext":"Sponsor Benefits","browser.translateLocalSubtitleFile":"Translate Subtitle File",confirmResetConfig:"Are you sure you want to reset the settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Create right button menu",toggleBeta:"Enable Beta experimental features",betaDescription:"Enable features that are still experimental, and translation services that are in testing. Join the <1>Telegram group to learn more.",translationLineBreakSettingDescription:"The always line break feature is suitable for layouts with less content, making the layout more neat and tidy. (Use smart line breaks for long paragraphs with more content (more than {count} characters) for saving space)",tempTranslateDomainTitle:"Open the translation time temporarily",tempTranslateDomainDescription:"When a page is translated manually, turn it temporarily on as automatic translation",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",toggleTranslatePageWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide translation display",toggleTranslationMaskWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide the blur effect of the translation",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"Multi-finger touch to show/hide only translation display",addUrlDescription:"The domain name is available and wildcard is supported e.g.: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import configuration from file",export:"Export to file",toggleDebug:"Print debug logs on the console","fingers.0":"Close","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch",mouseHoldKey:"+ {key} translate this paragraph",mouseHoldKeyAuto:"Translate the paragraph directly",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate this paragraph",mouseHoverHoldKey:"Mouse over and press X key to translate paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"All settings reset successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",goAdvancedSettings:"Go to Advanced Settings Page",goAdvancedInterfaceSettings:"Go to Advanced Custom Settings Page",advanced:"Advanced",advancedDescription:"Normally no settings are needed, keep the default. More personalized settings are provided for professional users only.",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"Translate to the bottom of the page immediately after opening the page?",feedback:"Feedback",toggleTranslatePage:"Toggle Translate",translateToThePageEndImmediatelyDescription:"Enabled will translate from the top to the bottom of the page immediately after opening. Disable will translate while reading. (Not recommended to enable)","translate all areas of the page":"Whether to translate all areas of the web page",translationAreaDescription:"When enabled, all areas of the entire web page will be translated. Disabled will use the default smart recognition and translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Directly translate the number of characters in front of the page without waiting to scroll to the visible area","interface language":"Interface language","display both the original text and the translation":"Display both the original text and the translation","keyboard shortcuts":"Keyboard shortcuts",modify:"Edit",reset:"Reset",close:"Close",homepage:"Home Page",more:"More",moreOptions:"Expand more custom settings",translateTheWholePage:"Translate the whole page area",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Dual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"Main areas of intelligent translation","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly implement the interface of the Greasemonkey extension, please use another browser that <1>supports the Greasemonkey extension such as (Firefox Nightly version)",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:"Unknown Error",canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha enabled successfully",disableAlphaSuccess:"Alpha has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(to set up)",goSettings:"to set up",needActionForOptions:"(need to set)",translationEngine:"Engine Options",sourceLanguage:"Original language",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",forThisSite:"Site:",alwaysTranslateSomeLanguage:"Always translate {language}",neverTranslateSomeLanguage:"Never translate {language}",alwaysTranslateSomeSite:"Always translate {hostname}",neverTranslateSomeSite:"Never translate {hostname}",alwaysTranslateSomeSiteOrWildSite:"Always translate this site",alwaysTranslateSomePage:"Always translate this page",add:"Add",default:"Default",forThisLanguage:"For This Language:","add url":"Add URL",edit:"Edit","translate other languages into specific language":"Translate other languages into the language you set","select translation service":"Select a translation service",language:"Language","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",Error:"Error",allowCacheTranslations:"Enable local translation caching (reduce translation requests for duplicate paragraphs)","translation display":"Translation display style","select diplay style":"Please refer to the following examples",interface:"Interface Settings",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dashed underline","translationTheme.dotted":"Dotted Underline","translationTheme.dashedBorder":"Dashed Border","translationTheme.solidBorder":"Dashed Border","translationTheme.underline":"Straight underline","translationTheme.mask":"Blur effect","translationTheme.opacity":"Opacity effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weakening","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dashed underline","translationTheme.nativeDashed":"System Dash Underline","translationTheme.nativeDotted":"System Dotted Underline","translationTheme.nativeUnderline":"System Straight Line Underline","translationTheme.wavy":"Squiggle","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeeplX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"Translate page title","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped",enableUserscriptPagePopup:"Always show Popup windows on the page",enableUserscriptPagePopupDescription:"Three-finger touch to show the Popup.","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",currentUrl:"Current URL",confirm:"Save",cancel:"Cancel",delete:"Delete","languages.auto":"Detect Language",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",authFail:"Authorization Failed",syncTitle:"Please select a file operation",import_hint:"Import",upload:"Upload",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",download:"Download",importSuccess:"Upload Success",importFail:"Import Failed",deleteFail:"Delete Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",backupToCloudDescription:"Upload or restore backup files manually, up to 3 different backups",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",updatedAt:"Updated at {date}",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. You can choose to subscribe to <6>Pro membership to use the out-of-the-box DeepL and OpenAI translation.

You can also follow out <3>Twitter, <4>Telegram Channel, and <5>Email Subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free and we hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. ",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",qqCommunities:"QQ Channel",joinTelegramChannel:"Subscribe to our Telegram channel to get the latest updates",feedbackAndJoin:"Feedback",autoSync:"Auto-Time Sync",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization","edit border color":"Edit border color",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",enableSubtitle:"enableSubtitleTranslation",enableSubtitleDescription:"Enable translations for subtitle areas on sites like youtube",isTranslateTitleDescription:"When enabled, the page title will be translated",enableSearchEnhancement:"Enable Search Enhancement",enableSearchEnhancementDescription:'After enabling, the right sidebar will automatically display "Google News" search results for corresponding English keywords on supported websites (such as Google News, Google Search (partial keywords), Xueqiu, East Money, Futu, Tiger Community).',verifyService:"Verify service",verified:"Successful","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerMinute":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next minute. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"Requests exceed this limit will be queued until the next seconds.","description.prompt":"Send as a user to OpenAI conversation, where {{text}} indicates the text of the paragraph,{{from}} indicates the language of the paragraph,{{to}} indicates the target language, you can omit {{text}}, if so, it'll be sent as a separated message","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"Send the conversation to OpenAI as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the original language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"Default is\uFF1Ageneral. Only set up if there is an API console open domain translation, support fields see <1>Here ","field.scene":"Scene","description.scene":"Default is\uFF1Ageneral. Only set up if there is an API console open Machine Translation Professional, support fields see<1>Here","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please provide a URL with the specific path.",enabledExtension:"Enable extensions",clickToDisableExtension:"Click to disable extension",clickToEnableExtension:"Click to enable the extension",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter customization content",inputOptions:"Writing",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter for translating part of the input box.",inputStartingTriggerKeyDescription:"When you don't need to translate the entire input box, the delimiter allows you to only translate the portion from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means only translating the portion from {startingKey}ja to the end of the input box.",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting is no prefix required, the partial text translation function of the input box cannot be used temporarily.",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Start the translation by quickly pressing 3 times {trailingKey}.",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time (milliseconds) for the input to end the combo trigger",spaceKey:"",noneKey:"Translate the entire text box without prefixes",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement in the following URL",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",clickToSeeQuickDemo:"Click to expand the 30s tutorial video",inputHelperInfo:`Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001". -Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.`,reloadCurrentPage:"Please refresh the current page before starting translation",noLocalFilePermissionForPDF:"No permission to read local files. Please click the button above and upload the local file.",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate the current page",retryAllParagraphs:"Retry all paragraphs",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Noops, something went wrong",disableConfirm:"Search Enhancement Settings",disableOnce:"Disable Once",disableGlobal:"Disable Forever",disableTint:"* You can re-enable in {option}.",searchEnhancementNotes:"We have discovered notable disparities in news results between Chinese and English keywords. By activating the immersive translation Bilingual Display Enhancement feature, we will automatically search for equivalent English keywords and display them on the right side of supported websites (e.g., Google News, Google Search (partial keywords), xueqiu, East Money, Futu, Tiger). You can disable this feature if you don't need it.",option:"Settings",saveSettings:"Save",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"Enable quick press 3 times {trailingKey}, directly translate the entire input box to {inputTargetLanguage}.",enableInputTranslationWithoutTriggerKeyDescription:"To specify the target language, please add a language code at the beginning, such as: ja Hello world",mouseHoverShortcutPlaceholder:"e.g. Shift",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",needLoginAction:"(Premium or custom)",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",daily:"Daily Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",profile:"Profile",billing:"Billing",onetime_7day:"7-day Trial Pack",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt} and will not auto-renew",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly pro membership",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"Current plan: {plan}, will expire on {endAt}, will not auto-renew after expiration.
<1>Enable consecutive annual plan",upgradePlan:"Click here to upgrade to Pro membership",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",upgradeToPro:"Upgrade to Pro","popup.openPro":"Enjoy unrestricted access to DeepL and OpenAI translations after upgrading to Pro Membership. Click here to upgrade","popup.openProForPro":"You are a Pro member, you can directly use DeepL and OpenAI translations",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You have just triggered the immersive translate of the input box by quickly tapping the space key 3 times. The content of the input box will be translated into the default target language.

If this was a mistake, don't worry. You can choose to disable it this time or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show again",disableInputTranslationTips:"* You can also set other shortcuts in {option}, {learnMore}.",learnMore:"Learn more",continueEnalbeInputTranslation:"Continue to enable input translation"};var D9=[{code:"zh-CN",messages:kg},{code:"zh-TW",messages:Sg},{code:"en",messages:Dg}],Mg="immersiveTranslateDeeplGlobalState",Ku="immersiveTranslateBingGlobalState",Qt={};for(let e of D9)Qt[e.code]=e.messages;var Wa="Immersive Translate",X="immersive-translate";var be="immersiveTranslate",$u="759003177173-mfm15s5nd77vfmo6e7lanof1emnanf0e.apps.googleusercontent.com",Kn=be+"GoogleAccessToken",So=be+"AuthFlow",Gu="immersive-translate-config-latest.json",I0=be+"AuthState",Vu=be+"IframeMessage",K8=be+"WaitForRateLimit",Pg=be+"DocumentMessageAsk",_t=be+"DocumentMessageTellThirdParty",Yu=be+"showError",Fg=be+"DocumentMessageThirdPartyTell",_g=be+"DocumentMessageEventUpload",L9=be+"DocumentMessageHandler",M9=`${be}Container`,Bg=`${be}SpecifiedContainer`,ra="buildinConfig",vr="localConfig",Do="openOptionsPage",O0="openAboutPage",Rg="translateLocalPdfFile";var Lo="openEbookViewer",Mo="openEbookBuilder";var Ju=`${be}PageTranslatedStatus`,$8=`${be}PageUrlChanged`,Ta=`${be}ReceiveCommand`,Ig=be+"LastUseMouseHoverTime",N0=be+"LastUseInputTime",Ln=be+"LastUseManualTranslatePageTime",G8=`${be}PopupReceiveMessage`,P9="immersivetranslate.com",F9="config.immersivetranslate.com",V8=`https://${P9}/`,Ea=`https://${F9}/default_config.json`,Y8=`${be}Mark`,Po="immersiveTranslateEffect",Zt=`${be}Root`,J8=`data-${X}-effect`,$n=`data-${X}-translation-element-mark`,Og=`${be}TranslationElementMark`,Q8=`${be}TranslatedMark`,Z8=`${be}ParagraphId`,Ng=`${be}LoadingId`,U0=`data-${X}-loading-id`,Ug=`${be}ErrorId`,Qu=`data-${X}-error-id`,_9=`${be}AtomicBlockMark`,jg=`${be}ExcludeMark`,X8=`data-${X}-exclude-mark`,B9=`${be}StayOriginalMark`,ev=`${be}PreWhitespaceMark`,Zu=`${be}InlineMark`,zg=`${be}BlockMark`,tv=`${be}Left`,nv=`${be}Right`,av=`${be}Width`,rv=`${be}Height`,ov=`${be}Top`,uv=`${be}FontSize`,Hg="lastRunTime",iv=`${be}GlobalStyleMark`,Ka=["@","#"],Xu=" --- ",qg=` -`,un=`${X}-target-wrapper`,sv=`${X}-pdf-target-container`,Wg=`${X}-target-inner`,lv=`${X}-source-wrapper`,j0=`${X}-target-translation-block-wrapper`,cv=`${X}-root-translation-theme`,wr=`${be}RootTranslationTheme`,Kg=`${X}-target-translation-vertical-block-wrapper`,dv=`${X}-target-translation-pdf-block-wrapper`,$g=`${X}-target-translation-pre-whitespace`,z0=`${X}-target-translation-inline-wrapper`,H0=["none","dashed","underline","dashedBorder","solidBorder","mask","opacity","dotted","dividingLine","highlight","marker","marker2","blockquote","weakening","grey","paper","italic","bold","thinDashed","wavy","nativeDotted","nativeDashed","nativeUnderline"],Fo={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]},sn=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","ru","ar","it","ms","id","vi","af","th","ur","yue","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","nl","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu"],Gg={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Detect Language",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese",zu:"Zulu","":"All Languages"},Vg={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B\u8BED\u8A00",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00"},Yg={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C\u8A9E\u8A00",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00"};var Jg=["toggleTranslatePage","toggleTranslateTheWholePage","toggleOnlyTransation","toggleTranslateToThePageEndImmediately","toggleTranslateTheMainPage","toggleTranslationMask"],Qg=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/"],Zg="Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post.",q0="\u957F\u591C\u5C06\u81F3\uFF0C\u6211\u4ECE\u4ECA\u5F00\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002\u6211\u5C06\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002\u6211\u5C06\u4E0D\u6234\u5B9D\u51A0\uFF0C\u4E0D\u4E89\u8363\u5BA0\u3002\u6211\u5C06\u5C3D\u5FE0\u804C\u5B88\uFF0C\u751F\u6B7B\u4E8E\u65AF\u3002",ei="zh-CN",ti="https://immersivetranslate.com/docs/communities/",Lg=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],Mn={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},deepl:{name:"DeepL",homepage:"https://www.deepl.com/translator",docUrl:"https://immersivetranslate.com/docs/services/deepL/",providers:[{name:"pro",nameKey:"deepLProName",descriptionKey:"deepLProDescription",descriptionKeyForNormal:"deeplProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"deepLCustomName",descriptionKey:"deepLCustomDescription",descriptionLink1:"https://www.deepl.com/translator",descriptionLink2:"https://immersivetranslate.com/docs/services/deepL/"}],allProps:[{name:"authKey",providers:["custom"],label:"Auth Key",required:!0,type:"password"}]},openai:{name:"Open AI",homepage:"https://openai.com/api/",docUrl:"https://immersivetranslate.com/docs/services/openai/",providers:[{name:"pro",nameKey:"openaiProName",descriptionKey:"openaiProDescription",descriptionKeyForNormal:"openaiProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"openaiCustomName",descriptionKey:"openaiCustomDescription",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password"},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"openai-model-select",default:"gpt-3.5-turbo-0613",options:[{providers:["custom","pro"],label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{providers:["custom","pro"],label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{providers:["custom"],label:"gpt-4",value:"gpt-4"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.limitPerSecond",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.openai.com/v1/chat/completions",descriptionKey:"description.apiUrl",optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"text",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.`,reloadCurrentPage:"Please refresh the current page before starting translation",noLocalFilePermissionForPDF:"No permission to read local files. Please click the button above and upload the local file.",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate the current page",retryAllParagraphs:"Retry all paragraphs",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Noops, something went wrong",disableConfirm:"Search Enhancement Settings",disableOnce:"Disable Once",disableGlobal:"Disable Forever",disableTint:"* You can re-enable in {option}.",searchEnhancementNotes:"We have discovered notable disparities in news results between Chinese and English keywords. By activating the immersive translation Bilingual Display Enhancement feature, we will automatically search for equivalent English keywords and display them on the right side of supported websites (e.g., Google News, Google Search (partial keywords), xueqiu, East Money, Futu, Tiger). You can disable this feature if you don't need it.",option:"Settings",saveSettings:"Save",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"Enable quick press 3 times {trailingKey}, directly translate the entire input box to {inputTargetLanguage}.",enableInputTranslationWithoutTriggerKeyDescription:"To specify the target language, please add a language code at the beginning, such as: ja Hello world",mouseHoverShortcutPlaceholder:"e.g. Shift",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",needLoginAction:"(Premium or custom)",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",daily:"Daily Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",profile:"Profile",billing:"Billing",onetime_7day:"7-day Trial Pack",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt} and will not auto-renew",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly pro membership",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"Current plan: {plan}, will expire on {endAt}, will not auto-renew after expiration.
<1>Enable consecutive annual plan",upgradePlan:"Click here to upgrade to Pro membership",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",upgradeToPro:"Upgrade to Pro","popup.openPro":"Enjoy unrestricted access to DeepL and OpenAI translations after upgrading to Pro Membership. Click here to upgrade","popup.openProForPro":"You are a Pro member, you can directly use DeepL and OpenAI translations",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You have just triggered the immersive translate of the input box by quickly tapping the space key 3 times. The content of the input box will be translated into the default target language.

If this was a mistake, don't worry. You can choose to disable it this time or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show again",disableInputTranslationTips:"* You can also set other shortcuts in {option}, {learnMore}.",learnMore:"Learn more",continueEnalbeInputTranslation:"Continue to enable input translation"};var L9=[{code:"zh-CN",messages:Sg},{code:"zh-TW",messages:Dg},{code:"en",messages:Lg}],Pg="immersiveTranslateDeeplGlobalState",Wu="immersiveTranslateBingGlobalState",Qt={};for(let e of L9)Qt[e.code]=e.messages;var $a="Immersive Translate",Z="immersive-translate";var be="immersiveTranslate",Ku="759003177173-mfm15s5nd77vfmo6e7lanof1emnanf0e.apps.googleusercontent.com",xa=be+"GoogleAccessToken",So=be+"AuthFlow",$u="immersive-translate-config-latest.json",I0=be+"AuthState",Gu=be+"IframeMessage",$8=be+"WaitForRateLimit",Fg=be+"DocumentMessageAsk",_t=be+"DocumentMessageTellThirdParty",Vu=be+"showError",_g=be+"DocumentMessageThirdPartyTell",Bg=be+"DocumentMessageEventUpload",M9=be+"DocumentMessageHandler",P9=`${be}Container`,Rg=`${be}SpecifiedContainer`,aa="buildinConfig",kr="localConfig",Do="openOptionsPage",O0="openAboutPage",Ig="translateLocalPdfFile";var Lo="openEbookViewer",Mo="openEbookBuilder";var Yu=`${be}PageTranslatedStatus`,G8=`${be}PageUrlChanged`,Ta=`${be}ReceiveCommand`,Og=be+"LastUseMouseHoverTime",N0=be+"LastUseInputTime",Ln=be+"LastUseManualTranslatePageTime",V8=`${be}PopupReceiveMessage`,F9="immersivetranslate.com",_9="config.immersivetranslate.com",Y8=`https://${F9}/`,Ea=`https://${_9}/default_config.json`,J8=`${be}Mark`,Po="immersiveTranslateEffect",Zt=`${be}Root`,Q8=`data-${Z}-effect`,Kn=`data-${Z}-translation-element-mark`,Ng=`${be}TranslationElementMark`,Z8=`${be}TranslatedMark`,X8=`${be}ParagraphId`,Ug=`${be}LoadingId`,U0=`data-${Z}-loading-id`,jg=`${be}ErrorId`,Ju=`data-${Z}-error-id`,B9=`${be}AtomicBlockMark`,zg=`${be}ExcludeMark`,ev=`data-${Z}-exclude-mark`,R9=`${be}StayOriginalMark`,tv=`${be}PreWhitespaceMark`,Qu=`${be}InlineMark`,Hg=`${be}BlockMark`,nv=`${be}Left`,av=`${be}Right`,rv=`${be}Width`,ov=`${be}Height`,uv=`${be}Top`,iv=`${be}FontSize`,qg="lastRunTime",sv=`${be}GlobalStyleMark`,Ga=["@","#"],Zu=" --- ",Wg=` +`,un=`${Z}-target-wrapper`,lv=`${Z}-pdf-target-container`,Kg=`${Z}-target-inner`,cv=`${Z}-source-wrapper`,j0=`${Z}-target-translation-block-wrapper`,dv=`${Z}-root-translation-theme`,Sr=`${be}RootTranslationTheme`,$g=`${Z}-target-translation-vertical-block-wrapper`,gv=`${Z}-target-translation-pdf-block-wrapper`,Gg=`${Z}-target-translation-pre-whitespace`,z0=`${Z}-target-translation-inline-wrapper`,H0=["none","dashed","underline","dashedBorder","solidBorder","mask","opacity","dotted","dividingLine","highlight","marker","marker2","blockquote","weakening","grey","paper","italic","bold","thinDashed","wavy","nativeDotted","nativeDashed","nativeUnderline"],Fo={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]},sn=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","ru","ar","it","ms","id","vi","af","th","ur","yue","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","nl","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu"],Vg={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Detect Language",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese",zu:"Zulu","":"All Languages"},Yg={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B\u8BED\u8A00",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00"},Jg={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C\u8A9E\u8A00",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00"};var Qg=["toggleTranslatePage","toggleTranslateTheWholePage","toggleOnlyTransation","toggleTranslateToThePageEndImmediately","toggleTranslateTheMainPage","toggleTranslationMask"],Zg=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/"],Xg="Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post.",q0="\u957F\u591C\u5C06\u81F3\uFF0C\u6211\u4ECE\u4ECA\u5F00\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002\u6211\u5C06\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002\u6211\u5C06\u4E0D\u6234\u5B9D\u51A0\uFF0C\u4E0D\u4E89\u8363\u5BA0\u3002\u6211\u5C06\u5C3D\u5FE0\u804C\u5B88\uFF0C\u751F\u6B7B\u4E8E\u65AF\u3002",Xu="zh-CN",ei="https://immersivetranslate.com/docs/communities/",Mg=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],Mn={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},deepl:{name:"DeepL",homepage:"https://www.deepl.com/translator",docUrl:"https://immersivetranslate.com/docs/services/deepL/",providers:[{name:"pro",nameKey:"deepLProName",descriptionKey:"deepLProDescription",descriptionKeyForNormal:"deeplProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"deepLCustomName",descriptionKey:"deepLCustomDescription",descriptionLink1:"https://www.deepl.com/translator",descriptionLink2:"https://immersivetranslate.com/docs/services/deepL/"}],allProps:[{name:"authKey",providers:["custom"],label:"Auth Key",required:!0,type:"password"}]},openai:{name:"Open AI",homepage:"https://openai.com/api/",docUrl:"https://immersivetranslate.com/docs/services/openai/",providers:[{name:"pro",nameKey:"openaiProName",descriptionKey:"openaiProDescription",descriptionKeyForNormal:"openaiProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"openaiCustomName",descriptionKey:"openaiCustomDescription",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password"},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"openai-model-select",default:"gpt-3.5-turbo-0613",options:[{providers:["custom","pro"],label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{providers:["custom","pro"],label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{providers:["custom"],label:"gpt-4",value:"gpt-4"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.limitPerSecond",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.openai.com/v1/chat/completions",descriptionKey:"description.apiUrl",optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"text",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`,optional:!0}]},transmart:{name:"Transmart",homepage:"https://transmart.qq.com/"},chatgpt:{name:"ChatGPT Web(3.5 mobile)",homepage:"https://chat.openai.com",beta:!0},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:"https://immersivetranslate.com/docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text"},{name:"appSecret",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/",docUrl:"https://immersivetranslate.com/docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text"},{name:"secretKey",required:!0,type:"password"}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:"https://immersivetranslate.com/docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text"},{name:"AccessKeySecret",required:!0,type:"password"},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:"https://immersivetranslate.com/docs/services/azure/",allProps:[{name:"region",required:!0,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password"}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:"https://immersivetranslate.com/docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text"},{name:"key",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:"https://immersivetranslate.com/docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text"},{name:"secretAccessKey",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:"https://immersivetranslate.com/docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password"}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:"https://immersivetranslate.com/docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:Ka,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:"https://immersivetranslate.com/docs/services/openL/",allProps:[...Lg,{type:"password",name:"apikey",required:!0}],props:Lg},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",alpha:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:"https://immersivetranslate.com/docs/services/niu",allProps:[{name:"APIKEY",required:!0,type:"password"}]}},ni={type:be+"ChildFrameToRootFrameIdentifier"},Ca=["Alt","Ctrl","Shift","Auto","Off","OtherCustom","Other"],ai=[{key:"/"},{key:"="},{key:";"},{key:","},{key:"."},{key:":"},{key:"space",labelKey:"spaceKey",skipForStarting:!0},{key:"none",labelKey:"noneKey",skipForTrailing:!0}],_o="user_from_plugin",xt="user_info",Bo=na()||aa()?"https://api2.immersivetranslate.com":"https://test-api2.immersivetranslate.com",Xg=na()||aa()?"https://immersivetranslate.com/accounts/login?from=plugin":"https://test.immersivetranslate.com/accounts/login?from=plugin",Ar=na()||aa()?"https://immersivetranslate.com/profile":"https://test.immersivetranslate.com/profile",$a=na()||aa()?"https://immersivetranslate.com/pricing":"https://test.immersivetranslate.com/pricing",em=$a+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",W0=$a+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",tm=$a+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal";var kr=console,K0=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),a=Math.round(n-this.#e),r=mn.green;a>1e4?r=mn.red:a>1e3&&(r=mn.yellow),kr.debug(mn.dim(Wa+" TIMING:"),t,"in",r(a+"ms")),this.#e=n}},Ro=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&kr.log(mn.dim(Wa+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&kr.log(mn.green(Wa+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&kr.warn(mn.yellow(Wa+" WARN:"),...t)}error(...t){this.#e<=3&&kr.error(mn.red(Wa+" ERROR:"),...t)}fatal(...t){this.#e<=4&&kr.error(mn.red(Wa+" FATAL:"),...t)}timing(){return this.level===0?new K0:{reset:()=>{},stop:()=>{}}}},z=new Ro;h();function mt(){try{return globalThis.self!==globalThis.top}catch{return!0}}var ri=!1,R9=me();function nm(e,t){let n=[];for(let a of t){let r=e.querySelectorAll(a);for(let o of r)n.push(o)}return n}function I9(e,t){let n=function(o){return o.nodeType===Node.ELEMENT_NODE||o.nodeType===Node.TEXT_NODE?o.nodeType===Node.ELEMENT_NODE&&am(o,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),r=!0;for(;a.nextNode();){let o=a.currentNode;if(o.nodeType===Node.ELEMENT_NODE){if(va(o,Zu)){if(r===!0)return!0;continue}if(Io(o.nodeName,t.inlineTags))return!0;if(!$0(o,t))return!1}}return!0}function G0(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(Io(e.nodeName,n)||$0(e,t)){if(va(e,zg)||Io(e.nodeName,["BR"]))return!1;if(va(e,Zu))return!0;if($0(e,t)){let a=globalThis.getComputedStyle(e);if(a.display==="block"||a.display==="flex")return!1}return I9(e,t)}else return va(e,Zu);return!1}function am(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&va(e,jg,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&va(e,Bg))return!1;let{stayOriginalTags:a,excludeTags:r}=t,o=[];return n&&r&&r.length>0?o=r||[]:o=r.filter(u=>!a.includes(u)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||Io(e.nodeName,o))}function oi(e,t,n){let a=e.trim();return a.length>=t||a.split(" ").filter(u=>u.trim()!=="").length>=n||!om(a)&&a.length>=n}function rm(e,t,n){let a=e.trim();if(a.length<=t)return!0;if(om(a)){if(a.split(" ").length<=n)return!0}else if(a.length<=n)return!0;return!1}function om(e){for(let t=0;t127)return!1;return!0}function um(e){if(e&&e.includes("://"))try{return new URL(e),!0}catch{return!1}else return!1}function im(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function sm(e){return e?/^[-+]?[0-9]*\.?[0-9]+%?$/.test(e):!1}function lm(e){return!!(e&&e.startsWith("#")&&e.indexOf(" ")===-1)}function cm(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function va(e,t,n=!1){return V0(e,t,"1",n)}function V0(e,t,n,a=!1){return ri&&!a?e[Zt]?!!(e[Zt]&&e[Zt][t]===n):!1:e.dataset[t]===n}function Sr(e){return(e.innerText||e.textContent||"").trim()}function Y0(e){let t=e.querySelectorAll("iframe"),n="";for(let a=0;a2e3))break}return n}function ui(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function pt(e,t,n,a=!1,r=!1){e.isContentEditable&&!r||(ri&&!a?(e.dataset[Po]||(e.dataset[Po]="1"),e[Zt]||(e[Zt]={}),e[Zt][t]||(e[Zt][t]=n)):(e.dataset[Po]||(e.dataset[Po]="1"),e.dataset[t]!==n&&(e.dataset[t]=n)))}function ii(e,t,n=!1){if(ri&&!n){if(!e[Zt]||!e[Zt][t])return;delete e[Zt][t]}else delete e.dataset[t]}function Dr(e,t,n=!1){return ri&&!n?!e[Zt]||!e[Zt][t]?void 0:e[Zt][t]:e.dataset[t]}function $0(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!Io(e.nodeName,n)}function Lr(e){let{config:t}=e,n=Ka;return t.translationServices[e.translationService]&&t.translationServices[e.translationService].placeholderDelimiters&&(n=t.translationServices[e.translationService].placeholderDelimiters),n}function St(){if(!globalThis||!globalThis.location)return"https://example.com";if(!mt())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let a="";try{a=globalThis.parent.location.href}catch{}return a||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function Ga(e,t,n){if(e instanceof ShadowRoot){try{e.appendChild(document.createElement("style")).textContent=t}catch(a){z.warn("injectCSS failed, rootDocument"+a?.message,e)}return}if(e&&e.head&&e.head.appendChild){let a=e.createElement("style");if(n){let r=e.querySelector(`style[data-id="${n}"]`);r&&r.remove(),a.dataset.id=n}a.textContent=t,e.head.appendChild(a)}else if(e){let a=document.createElement("head"),r=document.createElement("style");r.textContent=t,a.appendChild(r),e.appendChild(a)}else z.warn("injectCSS failed, rootDocument does not have head node",e)}function Mr(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(R9){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!document.querySelector("meta[name='immersive-translate-ebook-viewer']")||!t.startsWith("blob:http");return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function Io(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function dm(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),a=parseInt(t.substring(2,4),16),r=parseInt(t.substring(4,6),16);return{r:n,g:a,b:r}}function gm(e,t,n,a){if(a.document.caretPositionFromPoint){let r=a.document.caretPositionFromPoint(e,t);if(r){let o=a.document.createRange(),u=r.offsetNode;if(!u||u.nodeType!==Node.TEXT_NODE||am(u,n,!0))return null;try{o.setStart(u,r.offset),o.setEnd(u,r.offset)}catch(i){return z.warn("getRangeFromPoint error",i),null}return o}return null}else return a.document.caretRangeFromPoint?a.document.caretRangeFromPoint(e,t):null}function mm(e,t,n){let a=0,r=(o,u,i,s)=>{if(++a>100||s===o)return o;let c=o.shadowRoot;if(!c||typeof c.elementFromPoint!="function")return o;let l=c.elementFromPoint(u,i);return l?r(l,u,i,o):o};return r(e,t,n)}h();function Pr(e,t,n,a){let r=t,o=Fo[r]||[],u="";e&&o&&o.length>0&&o.forEach(c=>{let{name:l}=c;if(e&&n&&n[l]){let f=n[l];if(["borderRadius"].includes(l)&&(f+="px"),u+=`--immersive-translate-theme-${r}-${l}: ${f}; -`,t==="marker"&&l==="backgroundColor"&&typeof f=="string"){let{r:p,g:m,b:g}=dm(f);u+=`--immersive-translate-theme-${r}-${l}-rgb: ${p}, ${m}, ${g}; +{{text}}`,optional:!0}]},transmart:{name:"Transmart",homepage:"https://transmart.qq.com/"},chatgpt:{name:"ChatGPT Web(3.5 mobile)",homepage:"https://chat.openai.com",beta:!0},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:"https://immersivetranslate.com/docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text"},{name:"appSecret",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/",docUrl:"https://immersivetranslate.com/docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text"},{name:"secretKey",required:!0,type:"password"}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:"https://immersivetranslate.com/docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text"},{name:"AccessKeySecret",required:!0,type:"password"},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:"https://immersivetranslate.com/docs/services/azure/",allProps:[{name:"region",required:!0,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password"}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:"https://immersivetranslate.com/docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text"},{name:"key",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:"https://immersivetranslate.com/docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text"},{name:"secretAccessKey",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:"https://immersivetranslate.com/docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password"}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:"https://immersivetranslate.com/docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:Ga,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:"https://immersivetranslate.com/docs/services/openL/",allProps:[...Mg,{type:"password",name:"apikey",required:!0}],props:Mg},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",alpha:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:"https://immersivetranslate.com/docs/services/niu",allProps:[{name:"APIKEY",required:!0,type:"password"}]}},ti={type:be+"ChildFrameToRootFrameIdentifier"},Ca=["Alt","Ctrl","Shift","Auto","Off","OtherCustom","Other"],ni=[{key:"/"},{key:"="},{key:";"},{key:","},{key:"."},{key:":"},{key:"space",labelKey:"spaceKey",skipForStarting:!0},{key:"none",labelKey:"noneKey",skipForTrailing:!0}],_o="user_from_plugin",ct="user_info",Bo=ta()||na()?"https://api2.immersivetranslate.com":"https://test-api2.immersivetranslate.com",em=ta()||na()?"https://immersivetranslate.com/accounts/login?from=plugin":"https://test.immersivetranslate.com/accounts/login?from=plugin",Dr=ta()||na()?"https://immersivetranslate.com/profile":"https://test.immersivetranslate.com/profile",Va=ta()||na()?"https://immersivetranslate.com/pricing":"https://test.immersivetranslate.com/pricing",tm=Va+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",W0=Va+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",nm=Va+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal";var Lr=console,K0=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),a=Math.round(n-this.#e),r=mn.green;a>1e4?r=mn.red:a>1e3&&(r=mn.yellow),Lr.debug(mn.dim($a+" TIMING:"),t,"in",r(a+"ms")),this.#e=n}},Ro=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&Lr.log(mn.dim($a+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&Lr.log(mn.green($a+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&Lr.warn(mn.yellow($a+" WARN:"),...t)}error(...t){this.#e<=3&&Lr.error(mn.red($a+" ERROR:"),...t)}fatal(...t){this.#e<=4&&Lr.error(mn.red($a+" FATAL:"),...t)}timing(){return this.level===0?new K0:{reset:()=>{},stop:()=>{}}}},z=new Ro;h();function pt(){try{return globalThis.self!==globalThis.top}catch{return!0}}var ai=!1,I9=me();function am(e,t){let n=[];for(let a of t){let r=e.querySelectorAll(a);for(let o of r)n.push(o)}return n}function O9(e,t){let n=function(o){return o.nodeType===Node.ELEMENT_NODE||o.nodeType===Node.TEXT_NODE?o.nodeType===Node.ELEMENT_NODE&&rm(o,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),r=!0;for(;a.nextNode();){let o=a.currentNode;if(o.nodeType===Node.ELEMENT_NODE){if(va(o,Qu)){if(r===!0)return!0;continue}if(Io(o.nodeName,t.inlineTags))return!0;if(!$0(o,t))return!1}}return!0}function G0(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(Io(e.nodeName,n)||$0(e,t)){if(va(e,Hg)||Io(e.nodeName,["BR"]))return!1;if(va(e,Qu))return!0;if($0(e,t)){let a=globalThis.getComputedStyle(e);if(a.display==="block"||a.display==="flex")return!1}return O9(e,t)}else return va(e,Qu);return!1}function rm(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&va(e,zg,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&va(e,Rg))return!1;let{stayOriginalTags:a,excludeTags:r}=t,o=[];return n&&r&&r.length>0?o=r||[]:o=r.filter(u=>!a.includes(u)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||Io(e.nodeName,o))}function ri(e,t,n){let a=e.trim();return a.length>=t||a.split(" ").filter(u=>u.trim()!=="").length>=n||!um(a)&&a.length>=n}function om(e,t,n){let a=e.trim();if(a.length<=t)return!0;if(um(a)){if(a.split(" ").length<=n)return!0}else if(a.length<=n)return!0;return!1}function um(e){for(let t=0;t127)return!1;return!0}function im(e){if(e&&e.includes("://"))try{return new URL(e),!0}catch{return!1}else return!1}function sm(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function lm(e){return e?/^[-+]?[0-9]*\.?[0-9]+%?$/.test(e):!1}function cm(e){return!!(e&&e.startsWith("#")&&e.indexOf(" ")===-1)}function dm(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function va(e,t,n=!1){return V0(e,t,"1",n)}function V0(e,t,n,a=!1){return ai&&!a?e[Zt]?!!(e[Zt]&&e[Zt][t]===n):!1:e.dataset[t]===n}function Mr(e){return(e.innerText||e.textContent||"").trim()}function Y0(e){let t=e.querySelectorAll("iframe"),n="";for(let a=0;a2e3))break}return n}function oi(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function ft(e,t,n,a=!1,r=!1){e.isContentEditable&&!r||(ai&&!a?(e.dataset[Po]||(e.dataset[Po]="1"),e[Zt]||(e[Zt]={}),e[Zt][t]||(e[Zt][t]=n)):(e.dataset[Po]||(e.dataset[Po]="1"),e.dataset[t]!==n&&(e.dataset[t]=n)))}function ui(e,t,n=!1){if(ai&&!n){if(!e[Zt]||!e[Zt][t])return;delete e[Zt][t]}else delete e.dataset[t]}function Pr(e,t,n=!1){return ai&&!n?!e[Zt]||!e[Zt][t]?void 0:e[Zt][t]:e.dataset[t]}function $0(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!Io(e.nodeName,n)}function Fr(e){let{config:t}=e,n=Ga;return t.translationServices[e.translationService]&&t.translationServices[e.translationService].placeholderDelimiters&&(n=t.translationServices[e.translationService].placeholderDelimiters),n}function St(){if(!globalThis||!globalThis.location)return"https://example.com";if(!pt())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let a="";try{a=globalThis.parent.location.href}catch{}return a||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function Ya(e,t,n){if(e instanceof ShadowRoot){try{e.appendChild(document.createElement("style")).textContent=t}catch(a){z.warn("injectCSS failed, rootDocument"+a?.message,e)}return}if(e&&e.head&&e.head.appendChild){let a=e.createElement("style");if(n){let r=e.querySelector(`style[data-id="${n}"]`);r&&r.remove(),a.dataset.id=n}a.textContent=t,e.head.appendChild(a)}else if(e){let a=document.createElement("head"),r=document.createElement("style");r.textContent=t,a.appendChild(r),e.appendChild(a)}else z.warn("injectCSS failed, rootDocument does not have head node",e)}function _r(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(I9){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!document.querySelector("meta[name='immersive-translate-ebook-viewer']")||!t.startsWith("blob:http");return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function Io(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function gm(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),a=parseInt(t.substring(2,4),16),r=parseInt(t.substring(4,6),16);return{r:n,g:a,b:r}}function mm(e,t,n,a){if(a.document.caretPositionFromPoint){let r=a.document.caretPositionFromPoint(e,t);if(r){let o=a.document.createRange(),u=r.offsetNode;if(!u||u.nodeType!==Node.TEXT_NODE||rm(u,n,!0))return null;try{o.setStart(u,r.offset),o.setEnd(u,r.offset)}catch(i){return z.warn("getRangeFromPoint error",i),null}return o}return null}else return a.document.caretRangeFromPoint?a.document.caretRangeFromPoint(e,t):null}function pm(e,t,n){let a=0,r=(o,u,i,s)=>{if(++a>100||s===o)return o;let c=o.shadowRoot;if(!c||typeof c.elementFromPoint!="function")return o;let l=c.elementFromPoint(u,i);return l?r(l,u,i,o):o};return r(e,t,n)}h();function Br(e,t,n,a){let r=t,o=Fo[r]||[],u="";e&&o&&o.length>0&&o.forEach(c=>{let{name:l}=c;if(e&&n&&n[l]){let m=n[l];if(["borderRadius"].includes(l)&&(m+="px"),u+=`--immersive-translate-theme-${r}-${l}: ${m}; +`,t==="marker"&&l==="backgroundColor"&&typeof m=="string"){let{r:p,g:f,b:g}=gm(m);u+=`--immersive-translate-theme-${r}-${l}-rgb: ${p}, ${f}, ${g}; `}}});let i="";if(n&&n.textColor){let c=n.textColor;i+=` .immersive-translate-target-translation-theme-${r}-inner{color: ${c};} `}if(n&&n.zoom){let c=n.zoom;i+=` .immersive-translate-target-translation-theme-${r}-inner{font-size: max(13px, ${c}%);} `}let s="";u&&(s=`:root { ${u}} -`),i&&(s+=i),s?Ga(e,s,"immersive-translate-user-custom-style"):a&&Ga(e,"","immersive-translate-user-custom-style")}function wa(e,t){let a=Ke().IMMERSIVE_TRANSLATE_INJECTED_CSS;Ga(e,a,"immersive-translate-default-injected-css");let r=t.config.translationThemePatterns||{},o=t.state.translationTheme,u=r[o]||{};Pr(e,o,u);let i="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?i+=t.rule.injectedCss.join(` +`),i&&(s+=i),s?Ya(e,s,"immersive-translate-user-custom-style"):a&&Ya(e,"","immersive-translate-user-custom-style")}function wa(e,t){let a=Ke().IMMERSIVE_TRANSLATE_INJECTED_CSS;Ya(e,a,"immersive-translate-default-injected-css");let r=t.config.translationThemePatterns||{},o=t.state.translationTheme,u=r[o]||{};Br(e,o,u);let i="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?i+=t.rule.injectedCss.join(` `):t.rule.injectedCss&&(i+=t.rule.injectedCss),t.rule.additionalInjectedCss&&Array.isArray(t.rule.additionalInjectedCss)&&t.rule.additionalInjectedCss.length>0?i+=` `+t.rule.additionalInjectedCss.join(` `):t.rule.additionalInjectedCss&&(i+=` -`+t.rule.additionalInjectedCss)),i&&Ga(e,i,"immersive-translate-dynamic-injected-css")}h();h();h();var O9=0;function d(e,t,n,a,r){var o,u,i={};for(u in t)u=="ref"?o=t[u]:i[u]=t[u];var s={type:e,props:i,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--O9,__source:r,__self:a};if(typeof e=="function"&&(o=e.defaultProps))for(u in o)i[u]===void 0&&(i[u]=o[u]);return Se.vnode&&Se.vnode(s),s}function J0({value:e,defaultCase:t=null,cases:n}){return e==null?null:d(Fe,{children:n[e]!=null?n[e]:t})}h();function Q0(){let[e,t]=$(location.hash);return he(()=>{let n=()=>t(location.hash);return globalThis.addEventListener("hashchange",n,!1),()=>{globalThis.removeEventListener("hashchange",n)}},[]),e}h();h();function ut(e){R0({type:"success",text:e})}function Bt(e){R0({type:"error",text:e})}h();function Xt(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function pm(e){if(e){let t="unknown";if(e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?t="stripe":t="admin"),t==="stripe")return!0}return!1}function fm(e){if(e){let t=new Date(e.createTime),n=N9(t),a="free",r="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(a=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?r="stripe":r="admin"),{user_type:a,user_register_day:n,subscription_from:r}}else return null}function N9(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[a,r,o]=n.split("/");return n=`${o}-${a}-${r}`,n}catch{return"unknown"}}h();h();h();h();h();function hm(e,t){return[e,!e||e.endsWith("/")?"":"/",t,".json"].join("")}function Z0(e,t){let n=e;return t&&Object.keys(t).forEach(a=>{let r=t[a];if(r===void 0)return;let o=U9(a);if(typeof r=="object"||o){let u=r;o&&typeof u=="string"&&(u={tag:"a",href:u});let i=`<${a}>`,s=n.indexOf(i);if(s!==-1){let c=u.tag||"a",l=n.indexOf(``);if(l!==-1){let f=n.substring(s+i.length,l),p=Object.keys(u).filter(m=>m!=="tag").map(m=>`${m}="${u[m]}"`).join(" ");n=n.replace(`${i}${f}`,`<${c} ${p}>${f}`)}}}else if(r){let u=new RegExp("{"+a+"}","gm");n=n.replace(u,r.toString())}}),n}function No(e,t,n){let a=e[t];if(!a)return n;let r=n.split("."),o="";do{o+=r.shift();let u=a[o];u!==void 0&&(typeof u=="object"||!r.length)?(a=u,o=""):r.length?o+=".":a=n}while(r.length);return a}function oa(e,t,n,a,r){if(!e.hasOwnProperty(n))return t;let o=No(e,n,t);return o===t&&n!==a&&(o=No(e,a,t)),Z0(o,r)}function U9(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}var Fr={},j9={root:"",lang:"en",fallbackLang:"en"};function X0(e,t){let n=Object.assign({},j9,e);Fr=t||Fr;let[a,r]=$(n.lang),[o,u]=$(Fr),[i,s]=$(!1),c=f=>{if(o.hasOwnProperty(f))return;s(!1);let p=hm(n.root||"",f);n.getUrl&&(p=n.getUrl(n.root||"",f),fetch(p).then(m=>m.json()).then(m=>{Fr[f]=m,u({...Fr}),s(!0)}).catch(m=>{u({...Fr}),s(!0)}))};return he(()=>{c(n.fallbackLang||"en"),c(a)},[a]),{lang:a,setLang:r,t:(f,p)=>{if(!o.hasOwnProperty(a))return f;let m=No(o,a,f);return m===f&&a!==n.fallbackLang&&(m=No(o,n.fallbackLang,f)),Z0(m,p)},isReady:i}}var tl=fr(null),el={root:"assets",lang:"en",fallbackLang:"en"},si=e=>{let{t,setLang:n,lang:a,isReady:r}=X0({root:e.root||el.root,lang:e.lang||el.lang,fallbackLang:e.fallbackLang||el.fallbackLang,getUrl:e.getUrl},e.translations);return d(tl.Provider,{value:{t,setLang:n,lang:a,isReady:r},children:e.children})};function ue(){return Ye(tl)}function nl(e){let{t}=ue(),{isProUser:n,currentProvider:a,provider:r,onChange:o}=e,u=t(r.descriptionKey,{1:r.descriptionLink1,2:r.descriptionLink2});return!n&&r.descriptionKeyForNormal&&(u=t(r.descriptionKeyForNormal,{1:r.descriptionLink1,2:r.descriptionLink2})),d("label",{class:"pro-radio-label",for:r.name,children:[d("div",{class:"pro-input-radio",children:d("input",{type:"radio",id:r.name,name:r.name,value:r.name,onClick:o,checked:r.name===a})}),d("div",{class:"pl-4",children:[d("div",{class:"pro-radio-title",children:t(r.nameKey)}),d("small",{class:"pro-radio-desc muted",dangerouslySetInnerHTML:{__html:u}})]})]})}h();h();h();h();h();h();h();var al=/iPhone/i,bm=/iPod/i,ym=/iPad/i,xm=/\biOS-universal(?:.+)Mac\b/i,rl=/\bAndroid(?:.+)Mobile\b/i,Tm=/Android/i,_r=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,li=/Silk/i,ua=/Windows Phone/i,Em=/\bWindows(?:.+)ARM\b/i,Cm=/BlackBerry/i,vm=/BB10/i,wm=/Opera Mini/i,Am=/\b(CriOS|Chrome)(?:.+)Mobile/i,km=/Mobile(?:.+)Firefox\b/i,Sm=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function z9(e){return t=>t.test(e)}function fn(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,a=n.split("[FBAN");typeof a[1]<"u"&&(n=a[0]),a=n.split("Twitter"),typeof a[1]<"u"&&(n=a[0]);let r=z9(n),o={apple:{phone:r(al)&&!r(ua),ipod:r(bm),tablet:!r(al)&&(r(ym)||Sm(t))&&!r(ua),universal:r(xm),device:(r(al)||r(bm)||r(ym)||r(xm)||Sm(t))&&!r(ua)},amazon:{phone:r(_r),tablet:!r(_r)&&r(li),device:r(_r)||r(li)},android:{phone:!r(ua)&&r(_r)||!r(ua)&&r(rl),tablet:!r(ua)&&!r(_r)&&!r(rl)&&(r(li)||r(Tm)),device:!r(ua)&&(r(_r)||r(li)||r(rl)||r(Tm))||r(/\bokhttp\b/i)},windows:{phone:r(ua),tablet:r(Em),device:r(ua)||r(Em)},other:{blackberry:r(Cm),blackberry10:r(vm),opera:r(wm),firefox:r(km),chrome:r(Am),device:r(Cm)||r(vm)||r(wm)||r(km)||r(Am)},any:!1,phone:!1,tablet:!1};return o.any=o.apple.device||o.android.device||o.windows.device||o.other.device,o.phone=o.apple.phone||o.android.phone||o.windows.phone,o.tablet=o.apple.tablet||o.android.tablet||o.windows.tablet,o}var ol="DENO",ci="CHROME",di="FIREFOX";function Dm(e){let t=ci;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=di:/deno/i.test(n)&&(t=ol)}catch{}return e===ci&&t===ci||e===di&&t===di||e===ol&&t===ol}function Lm(){return Dm(ci)}function Mm(){return typeof Deno<"u"}function Va(){return Dm(di)}function Br(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function ia(){return!!globalThis.matchMedia("(pointer:fine)").matches}h();var Pm={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},Fm={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:Pm,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}}},tabs:{onUpdated:Pm,query:()=>{},sendMessage:()=>{}}};var Q;Mm()?Q=Fm:Q=globalThis.immersiveTranslateBrowserAPI;var ul={get:(e,t,n)=>{let a=t===void 0?e:{[e]:t};return Q.storage[n].get(a)},set:(e,t,n)=>Q.storage[n].set({[e]:t})};function gi(e,t,n){let[a]=$(()=>typeof t=="function"?t():t),[r]=$(n),[o,u]=$(a),[i,s]=$(!1),[c,l]=$("");he(()=>{ul.get(e,a,r).then(p=>{p[e]&&u(p[e]),s(!0),l("")}).catch(p=>{s(!1),l(p)})},[e,a,r]);let f=dn(p=>{let m=typeof p=="function"?p(o):p;z.debug("new settings",m),ul.set(e,m,r).then(()=>{u(m),s(!0),l("")}).catch(g=>{u(m),s(!1),l(g)})},[r,e,o]);return[o,f,i,c]}h();function mi(e,t,n){let a=[];return function(){let[o,u,i,s]=gi(e,t,n),c=dn(l=>{for(let f of a)f(l)},[]);return he(()=>(a.push(u),()=>{a.splice(a.indexOf(u),1)}),[u]),[o,c,i,s]}}function _m(e,t){return mi(e,t,"local")}function Bm(e,t){return mi(e,t,"sync")}var H9="userConfig",q9=null,W9=Bm(H9,q9);function ft(e){let[t,n,a,r]=W9(),o=dn(u=>{let i=typeof u=="function"?u(t):u;i&&(i.updatedAt=new Date().toISOString()),n(i),e&&e(i)},[t]);return[t,o,a,r,n]}h();h();function Ya(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t==="zh-hans")return"zh-CN";if(t==="zh-hant"||t==="zh-hk")return"zh-TW";if(t==="iw")return"he";if(t==="jv")return"jw";let n=sn.map(r=>r.toLowerCase()),a=n.indexOf(t);if(a===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let r=n.indexOf(t);return r===-1?"auto":sn[r]}else return"auto";else return sn[a]}function Ja(){return Ya(document?.documentElement?.lang||"en")}h();var Rm=be+"SyncStoreKey_";function Ht(e,t){let n=Rm+e;return Q.storage.sync.get(n).then(a=>a[n]===void 0?t:a[n])}function $e(e,t){let n=Rm+e;return Q.storage.sync.set({[n]:t})}h();var Im=be+"StoreKey_";function sa(e,t){let n=Im+e;return Q.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function Om(e,t){let n=Im+e;return Q.storage.local.set({[n]:t})}h();var Rr=be+"CacheKey_";function K9(e,t){let n=Rr+e;return Q.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function $9(){let e=Q.storage.local.refresh;e&&e()}function Uo(e,t){let n=Rr+e;return Q.storage.local.get(n).then(a=>{if(a[n]===void 0)return t;let{value:r,expired:o}=a[n];return o&&oa.startsWith(Rr));if(n.length>0)return Q.storage.local.remove(n)}}var Xe={get:K9,set:G9,getExpired:Uo,setExpired:jo,remove:zo,clear:il,refresh:$9};h();h();h();var Tt=class extends Error{details;constructor(t,n,a){super(n),this.name=t,a&&(this.details=a)}};async function Pn(e){let t;if(e&&e.retry&&e.retry>0)try{t=await b0(Nm.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await Nm(e);return t}async function Nm(e){e.body;let{url:t,responseType:n,...a}=e;n||(n="json"),a={mode:"cors",...a};let r=!0;e.fetchPolyfill&&(r=!1);let o=e.fetchPolyfill||fetch,u=3e5;if(e.timeout&&(u=e.timeout),r){let s=new AbortController,c=s.signal;setTimeout(()=>{s.abort()},u),a.signal=c}let i;try{i=await o(t,a)}catch(s){z.debug("fetch error",t,s);let c=s.message||"";throw s.message="\u7F51\u7EDC\u95EE\u9898\uFF0C\u65E0\u6CD5\u8FDE\u63A5\u5230\u670D\u52A1\uFF0C\u8BF7\u68C0\u67E5\u4F60\u7684\u4EE3\u7406\u6216\u672C\u5730\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u8BD5\u3002 "+c,s}if(i.ok&&i.status>=200&&i.status<400){if(n==="json")return await i.json();if(n==="text")return await i.text();if(n==="raw"){let s=await i.text(),c=Object.fromEntries([...i.headers.entries()]),l=i.url;return l||(i.headers.get("X-Final-URL")?l=i.headers.get("X-Final-URL"):l=t),{body:s,headers:c,status:i.status,statusText:i.statusText,url:l}}else if(n==="stream"){let s="",c;if(i.body&&i.body instanceof ReadableStream)for await(let l of V9(i.body)){let f=new TextDecoder().decode(l);s+=f;let p;for(;(p=s.indexOf(` -`))>=0;){let m=s.slice(0,p).trim();if(s=s.slice(p+1),m.startsWith("event:")||m==="")continue;let g="";if(m.startsWith("data:")&&(g=m.slice(5).trim()),g==="[DONE]")break;let T;try{T=JSON.parse(g??"")}catch(w){z.debug("json error",w);continue}c=T}}return c}}else{let s;try{s=await i.text()}catch(m){z.error("parse response failed",m)}s&&z.error("fail response",s);let c="";s&&(c=s.slice(0,280));let l="\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u4EE3\u7801:"+i.status+": "+(i.statusText||"")+c,p=new URL(t).hostname.endsWith(".immersivetranslate.com");throw i.status===429?p?c.includes("quota exceeded")?l="ProQuota:"+c:l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${c} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`:l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A429\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===403?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A403\uFF0C \u8BF4\u660E\u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ${c}`:i.status===400?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A400\uFF0C \u8BF4\u660E\u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002 ${c}`:i.status===502?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A502\uFF0C \u8BF4\u660E\u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===401&&(l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A401\uFF0C \u8BF4\u660E\u672A\u767B\u5F55\u6216\u767B\u5F55\u6001\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002 ${c}`),new Tt("fetchError",l,s)}}async function*V9(e){let t=e.getReader();try{for(;;){let{done:n,value:a}=await t.read();if(n)return;yield a}}finally{t.releaseLock()}}h();var Y9=new Map;function pi(e){let t=J9(64),n=new CustomEvent(Pg,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((a,r)=>{Y9.set(t,(o,u)=>{o?r(o):a(u)})})}function J9(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};function hn(){return fi.version}function hi(){return Q.runtime.getManifest().version}h();var Ho=new Map,la=class{fromType;logger;constructor(t,n=!1){this.logger=new Ro,n&&this.logger.setLevel("debug"),this.fromType=t,Ho.has(t)||(Ho.set(t,new Map),Q.runtime.onMessage.addListener((a,r,o)=>{let u=a.from,i=a.to,s,c,l;r.tab&&r.tab.id&&(s=r.tab.id,u=`${u}:${s}`,c=r.tab.url,l=r.tab.active),this.logger.debug(`${a.to} received message [${a.payload.method}] from ${a.from}`,a.payload.data?a.payload.data:" ");let f=ll(i),{type:p,name:m}=f;if(p!==t)return!1;let g=ll(u),w=Ho.get(p).get(m);if(!w)return this.logger.debug(`no message handler for ${p}:${i}, but it's ok`),!1;let{messageHandler:b,sync:S}=w,D={type:t,name:g.name,id:s,url:c,active:l};if(S){try{let N=b(a.payload,D);o({ok:!0,data:N})}catch(N){o({ok:!1,errorName:N.name,errorMessage:N.message,errorDetails:N.details})}return!1}else return b(a.payload,D).then(N=>{o({ok:!0,data:N})}).catch(N=>{o({ok:!1,errorName:N.name,errorMessage:N.message,errorDetails:N.details})}),!0}))}getConnection(t,n,a){let r=!1;a&&a.sync&&(r=!0);let o=this.fromType,u=Ho.get(o);if(u.has(t))return u.get(t).connectionInstance;{let i=new sl(`${o}:${t}`,this.logger);return Ho.get(o).set(t,{messageHandler:n,sync:r,connectionInstance:i}),i}}},sl=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let a=ll(t),{type:r,id:o}=a;if(r!=="content_script"){let u={to:t,from:this.from,payload:n};this.logger.debug(`${u.from} send message [${u.payload.method}] to ${u.to}`,u.payload.data?u.payload.data:" ");try{let i=await Q.runtime.sendMessage(u);return Um(u,i,this.logger)}catch(i){if(r==="popup"){let s=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(s,n,t,i),Promise.resolve({message:s})}else throw i}}else{let u={from:this.from,to:t,payload:n};this.logger.debug(`${u.from} send message [${u.payload.method}] to ${u.to}`,u.payload.data?u.payload.data:" ");let i=await Q.tabs.sendMessage(o,u);return Um(u,i,this.logger)}}};function Um(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new Tt(t.errorName||"UnknownError",t.errorMessage||"Unknown error",t.errorDetails)}else throw new Tt("noResponse","Unknown error")}function ll(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let a=parseInt(t[2]);if(!isNaN(a))n.id=a;else throw new Error("tab id not a valid number")}return n}var bi;function Z9(){return bi||(bi=new la("content_script",!1).getConnection("pure_main",()=>{}),bi)}var jm="G-MKMD9LWFTR";async function qo(e,t){try{let n=Ke();if(n.INSTALL_FROM==="firefox_store")return;let r=me(),o=mt(),u=n.PROD==="1",i="sitc4WmvShWYwfU0dANM3Q",s=await Ht("fakeUserId","");s||(s=await sa("fakeUserId",""),s&&await $e("fakeUserId",s));let c=hn(),l=new Date,f=await Ht("installedAt","");f||(f=await sa("installedAt",""),f&&await $e("installedAt",f)),s?f||(f=new Date(0).toISOString(),await $e("installedAt",f)):(s=X9(32),await $e("fakeUserId",s)),f||(f=l.toISOString(),await $e("installedAt",f));let p=new Date(f),m=zm(p),g=zm(l),T=m===g,w=l.getTime()-p.getTime()<7*24*60*60*1e3,b=`https://www.google-analytics.com/mp/collect?measurement_id=${jm}&api_secret=${i}`;u||(b=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${jm}&api_secret=${i}`);let S="";typeof navigator<"u"&&(S=window.navigator.userAgent);let D=Tr.parse(S),N=t.map(y=>{let E=y.params||{};return D.os&&(E.os_name=D.os.name||"unknown",E.os_version=D.os.version||"unknown",E.os_version_name=D.os.versionName||"unknown"),D.browser&&(E.browser_name=D.browser.name||"unknown",E.browser_version=D.browser.version||"unknown"),D.platform&&(E.platform_type=D.platform.type||"unknown"),D.engine&&(E.engine_name=D.engine.name||"unknown",E.engine_version=D.engine.version||"unknown"),c&&(E.version=c),n.INSTALL_FROM&&(E.install_from=n.INSTALL_FROM),m&&(E.install_day=eb(p)),E.userscript=r.toString(),T?E.is_new_user_today="1":E.is_new_user_today="0",w?E.is_new_user_this_week="1":E.is_new_user_this_week="0",o?E.main_frame=0:E.main_frame=1,{...y,params:E}}),_=await yi({responseType:"text",url:b,method:"POST",body:JSON.stringify({client_id:s,user_id:s,events:N})})}catch{}}function X9(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r",""]},custom:{placeholderDelimiters:["{","}"]},bing:{maxTextLengthPerRequest:1800,placeholderDelimiters:["","","b"]},deeplx:{limit:3},d:{immediateTranslationTextCount:0},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},openai:{placeholderDelimiters:["{{","}}","b"],immediateTranslationTextCount:3e3,translationDebounce:300,interval:1350,prompt:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +`+t.rule.additionalInjectedCss)),i&&Ya(e,i,"immersive-translate-dynamic-injected-css")}h();h();h();var N9=0;function d(e,t,n,a,r){var o,u,i={};for(u in t)u=="ref"?o=t[u]:i[u]=t[u];var s={type:e,props:i,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--N9,__source:r,__self:a};if(typeof e=="function"&&(o=e.defaultProps))for(u in o)i[u]===void 0&&(i[u]=o[u]);return Se.vnode&&Se.vnode(s),s}function J0({value:e,defaultCase:t=null,cases:n}){return e==null?null:d(Fe,{children:n[e]!=null?n[e]:t})}h();function Q0(){let[e,t]=$(location.hash);return he(()=>{let n=()=>t(location.hash);return globalThis.addEventListener("hashchange",n,!1),()=>{globalThis.removeEventListener("hashchange",n)}},[]),e}h();h();function ut(e){R0({type:"success",text:e})}function Bt(e){R0({type:"error",text:e})}h();function Xt(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function fm(e){if(e){let t="unknown";if(e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?t="stripe":t="admin"),t==="stripe")return!0}return!1}function hm(e){if(e){let t=new Date(e.createTime),n=U9(t),a="free",r="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(a=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?r="stripe":r="admin"),{user_type:a,user_register_day:n,subscription_from:r}}else return null}function U9(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[a,r,o]=n.split("/");return n=`${o}-${a}-${r}`,n}catch{return"unknown"}}h();h();h();h();h();function bm(e,t){return[e,!e||e.endsWith("/")?"":"/",t,".json"].join("")}function Z0(e,t){let n=e;return t&&Object.keys(t).forEach(a=>{let r=t[a];if(r===void 0)return;let o=j9(a);if(typeof r=="object"||o){let u=r;o&&typeof u=="string"&&(u={tag:"a",href:u});let i=`<${a}>`,s=n.indexOf(i);if(s!==-1){let c=u.tag||"a",l=n.indexOf(``);if(l!==-1){let m=n.substring(s+i.length,l),p=Object.keys(u).filter(f=>f!=="tag").map(f=>`${f}="${u[f]}"`).join(" ");n=n.replace(`${i}${m}`,`<${c} ${p}>${m}`)}}}else if(r){let u=new RegExp("{"+a+"}","gm");n=n.replace(u,r.toString())}}),n}function No(e,t,n){let a=e[t];if(!a)return n;let r=n.split("."),o="";do{o+=r.shift();let u=a[o];u!==void 0&&(typeof u=="object"||!r.length)?(a=u,o=""):r.length?o+=".":a=n}while(r.length);return a}function ra(e,t,n,a,r){if(!e.hasOwnProperty(n))return t;let o=No(e,n,t);return o===t&&n!==a&&(o=No(e,a,t)),Z0(o,r)}function j9(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}var Rr={},z9={root:"",lang:"en",fallbackLang:"en"};function X0(e,t){let n=Object.assign({},z9,e);Rr=t||Rr;let[a,r]=$(n.lang),[o,u]=$(Rr),[i,s]=$(!1),c=m=>{if(o.hasOwnProperty(m))return;s(!1);let p=bm(n.root||"",m);n.getUrl&&(p=n.getUrl(n.root||"",m),fetch(p).then(f=>f.json()).then(f=>{Rr[m]=f,u({...Rr}),s(!0)}).catch(f=>{u({...Rr}),s(!0)}))};return he(()=>{c(n.fallbackLang||"en"),c(a)},[a]),{lang:a,setLang:r,t:(m,p)=>{if(!o.hasOwnProperty(a))return m;let f=No(o,a,m);return f===m&&a!==n.fallbackLang&&(f=No(o,n.fallbackLang,m)),Z0(f,p)},isReady:i}}var tl=yr(null),el={root:"assets",lang:"en",fallbackLang:"en"},ii=e=>{let{t,setLang:n,lang:a,isReady:r}=X0({root:e.root||el.root,lang:e.lang||el.lang,fallbackLang:e.fallbackLang||el.fallbackLang,getUrl:e.getUrl},e.translations);return d(tl.Provider,{value:{t,setLang:n,lang:a,isReady:r},children:e.children})};function ue(){return Ye(tl)}function nl(e){let{t}=ue(),{isProUser:n,currentProvider:a,provider:r,onChange:o}=e,u=t(r.descriptionKey,{1:r.descriptionLink1,2:r.descriptionLink2});return!n&&r.descriptionKeyForNormal&&(u=t(r.descriptionKeyForNormal,{1:r.descriptionLink1,2:r.descriptionLink2})),d("label",{class:"pro-radio-label",for:r.name,children:[d("div",{class:"pro-input-radio",children:d("input",{type:"radio",id:r.name,name:r.name,value:r.name,onClick:o,checked:r.name===a})}),d("div",{class:"pl-4",children:[d("div",{class:"pro-radio-title",children:t(r.nameKey)}),d("small",{class:"pro-radio-desc muted",dangerouslySetInnerHTML:{__html:u}})]})]})}h();h();h();h();h();h();h();var al=/iPhone/i,ym=/iPod/i,xm=/iPad/i,Tm=/\biOS-universal(?:.+)Mac\b/i,rl=/\bAndroid(?:.+)Mobile\b/i,Em=/Android/i,Ir=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,si=/Silk/i,oa=/Windows Phone/i,Cm=/\bWindows(?:.+)ARM\b/i,vm=/BlackBerry/i,wm=/BB10/i,Am=/Opera Mini/i,km=/\b(CriOS|Chrome)(?:.+)Mobile/i,Sm=/Mobile(?:.+)Firefox\b/i,Dm=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function H9(e){return t=>t.test(e)}function fn(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,a=n.split("[FBAN");typeof a[1]<"u"&&(n=a[0]),a=n.split("Twitter"),typeof a[1]<"u"&&(n=a[0]);let r=H9(n),o={apple:{phone:r(al)&&!r(oa),ipod:r(ym),tablet:!r(al)&&(r(xm)||Dm(t))&&!r(oa),universal:r(Tm),device:(r(al)||r(ym)||r(xm)||r(Tm)||Dm(t))&&!r(oa)},amazon:{phone:r(Ir),tablet:!r(Ir)&&r(si),device:r(Ir)||r(si)},android:{phone:!r(oa)&&r(Ir)||!r(oa)&&r(rl),tablet:!r(oa)&&!r(Ir)&&!r(rl)&&(r(si)||r(Em)),device:!r(oa)&&(r(Ir)||r(si)||r(rl)||r(Em))||r(/\bokhttp\b/i)},windows:{phone:r(oa),tablet:r(Cm),device:r(oa)||r(Cm)},other:{blackberry:r(vm),blackberry10:r(wm),opera:r(Am),firefox:r(Sm),chrome:r(km),device:r(vm)||r(wm)||r(Am)||r(Sm)||r(km)},any:!1,phone:!1,tablet:!1};return o.any=o.apple.device||o.android.device||o.windows.device||o.other.device,o.phone=o.apple.phone||o.android.phone||o.windows.phone,o.tablet=o.apple.tablet||o.android.tablet||o.windows.tablet,o}var ol="DENO",li="CHROME",ci="FIREFOX";function Lm(e){let t=li;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=ci:/deno/i.test(n)&&(t=ol)}catch{}return e===li&&t===li||e===ci&&t===ci||e===ol&&t===ol}function Mm(){return Lm(li)}function Pm(){return typeof Deno<"u"}function Ja(){return Lm(ci)}function Or(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function ua(){return!!globalThis.matchMedia("(pointer:fine)").matches}h();var Fm={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},_m={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:Fm,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}}},tabs:{onUpdated:Fm,query:()=>{},sendMessage:()=>{}}};var X;Pm()?X=_m:X=globalThis.immersiveTranslateBrowserAPI;var ul={get:(e,t,n)=>{let a=t===void 0?e:{[e]:t};return X.storage[n].get(a)},set:(e,t,n)=>X.storage[n].set({[e]:t})};function di(e,t,n){let[a]=$(()=>typeof t=="function"?t():t),[r]=$(n),[o,u]=$(a),[i,s]=$(!1),[c,l]=$("");he(()=>{ul.get(e,a,r).then(p=>{p[e]&&u(p[e]),s(!0),l("")}).catch(p=>{s(!1),l(p)})},[e,a,r]);let m=dn(p=>{let f=typeof p=="function"?p(o):p;z.debug("new settings",f),ul.set(e,f,r).then(()=>{u(f),s(!0),l("")}).catch(g=>{u(f),s(!1),l(g)})},[r,e,o]);return[o,m,i,c]}h();function gi(e,t,n){let a=[];return function(){let[o,u,i,s]=di(e,t,n),c=dn(l=>{for(let m of a)m(l)},[]);return he(()=>(a.push(u),()=>{a.splice(a.indexOf(u),1)}),[u]),[o,c,i,s]}}function Bm(e,t){return gi(e,t,"local")}function Rm(e,t){return gi(e,t,"sync")}var q9="userConfig",W9=null,K9=Rm(q9,W9);function ht(e){let[t,n,a,r]=K9(),o=dn(u=>{let i=typeof u=="function"?u(t):u;i&&(i.updatedAt=new Date().toISOString()),n(i),e&&e(i)},[t]);return[t,o,a,r,n]}h();h();function Qa(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t==="zh-hans")return"zh-CN";if(t==="zh-hant"||t==="zh-hk")return"zh-TW";if(t==="iw")return"he";if(t==="jv")return"jw";let n=sn.map(r=>r.toLowerCase()),a=n.indexOf(t);if(a===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let r=n.indexOf(t);return r===-1?"auto":sn[r]}else return"auto";else return sn[a]}function Za(){return Qa(document?.documentElement?.lang||"en")}h();var Im=be+"SyncStoreKey_";function Ht(e,t){let n=Im+e;return X.storage.sync.get(n).then(a=>a[n]===void 0?t:a[n])}function $e(e,t){let n=Im+e;return X.storage.sync.set({[n]:t})}h();var Om=be+"StoreKey_";function ia(e,t){let n=Om+e;return X.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function Nm(e,t){let n=Om+e;return X.storage.local.set({[n]:t})}h();var Xa=be+"CacheKey_";function $9(e,t){let n=Xa+e;return X.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function G9(){let e=X.storage.local.refresh;e&&e()}function Uo(e,t){let n=Xa+e;return X.storage.local.get(n).then(a=>{if(a[n]===void 0)return t;let{value:r,expired:o}=a[n];return o&&oa.startsWith(Xa)).filter(a=>a!==Xa+ct);if(n.length>0)return X.storage.local.remove(n)}}var Xe={get:$9,set:V9,getExpired:Uo,setExpired:jo,remove:zo,clear:il,refresh:G9};h();h();h();var Tt=class extends Error{details;constructor(t,n,a){super(n),this.name=t,a&&(this.details=a)}};async function Pn(e){let t;if(e&&e.retry&&e.retry>0)try{t=await b0(Um.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await Um(e);return t}async function Um(e){e.body;let{url:t,responseType:n,...a}=e;n||(n="json"),a={mode:"cors",...a};let r=!0;e.fetchPolyfill&&(r=!1);let o=e.fetchPolyfill||fetch,u=3e5;if(e.timeout&&(u=e.timeout),r){let s=new AbortController,c=s.signal;setTimeout(()=>{s.abort()},u),a.signal=c}let i;try{i=await o(t,a)}catch(s){z.debug("fetch error",t,s);let c=s.message||"";throw s.message="\u7F51\u7EDC\u95EE\u9898\uFF0C\u65E0\u6CD5\u8FDE\u63A5\u5230\u670D\u52A1\uFF0C\u8BF7\u68C0\u67E5\u4F60\u7684\u4EE3\u7406\u6216\u672C\u5730\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u8BD5\u3002 "+c,s}if(i.ok&&i.status>=200&&i.status<400){if(n==="json")return await i.json();if(n==="text")return await i.text();if(n==="raw"){let s=await i.text(),c=Object.fromEntries([...i.headers.entries()]),l=i.url;return l||(i.headers.get("X-Final-URL")?l=i.headers.get("X-Final-URL"):l=t),{body:s,headers:c,status:i.status,statusText:i.statusText,url:l}}else if(n==="stream"){let s="",c;if(i.body&&i.body instanceof ReadableStream)for await(let l of Y9(i.body)){let m=new TextDecoder().decode(l);s+=m;let p;for(;(p=s.indexOf(` +`))>=0;){let f=s.slice(0,p).trim();if(s=s.slice(p+1),f.startsWith("event:")||f==="")continue;let g="";if(f.startsWith("data:")&&(g=f.slice(5).trim()),g==="[DONE]")break;let y;try{y=JSON.parse(g??"")}catch(w){z.debug("json error",w);continue}c=y}}return c}}else{let s;try{s=await i.text()}catch(f){z.error("parse response failed",f)}s&&z.error("fail response",s);let c="";s&&(c=s.slice(0,280));let l="\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u4EE3\u7801:"+i.status+": "+(i.statusText||"")+c,p=new URL(t).hostname.endsWith(".immersivetranslate.com");throw i.status===429?p?c.includes("quota exceeded")?l="ProQuota:"+c:l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${c} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`:l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A429\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===403?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A403\uFF0C \u8BF4\u660E\u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ${c}`:i.status===400?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A400\uFF0C \u8BF4\u660E\u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002 ${c}`:i.status===502?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A502\uFF0C \u8BF4\u660E\u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===401&&(l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A401\uFF0C \u8BF4\u660E\u672A\u767B\u5F55\u6216\u767B\u5F55\u6001\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002 ${c}`),new Tt("fetchError",l,s)}}async function*Y9(e){let t=e.getReader();try{for(;;){let{done:n,value:a}=await t.read();if(n)return;yield a}}finally{t.releaseLock()}}h();var J9=new Map;function mi(e){let t=Q9(64),n=new CustomEvent(Fg,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((a,r)=>{J9.set(t,(o,u)=>{o?r(o):a(u)})})}function Q9(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};function hn(){return pi.version}function fi(){return X.runtime.getManifest().version}h();var Ho=new Map,sa=class{fromType;logger;constructor(t,n=!1){this.logger=new Ro,n&&this.logger.setLevel("debug"),this.fromType=t,Ho.has(t)||(Ho.set(t,new Map),X.runtime.onMessage.addListener((a,r,o)=>{let u=a.from,i=a.to,s,c,l;r.tab&&r.tab.id&&(s=r.tab.id,u=`${u}:${s}`,c=r.tab.url,l=r.tab.active),this.logger.debug(`${a.to} received message [${a.payload.method}] from ${a.from}`,a.payload.data?a.payload.data:" ");let m=ll(i),{type:p,name:f}=m;if(p!==t)return!1;let g=ll(u),w=Ho.get(p).get(f);if(!w)return this.logger.debug(`no message handler for ${p}:${i}, but it's ok`),!1;let{messageHandler:b,sync:S}=w,D={type:t,name:g.name,id:s,url:c,active:l};if(S){try{let N=b(a.payload,D);o({ok:!0,data:N})}catch(N){o({ok:!1,errorName:N.name,errorMessage:N.message,errorDetails:N.details})}return!1}else return b(a.payload,D).then(N=>{o({ok:!0,data:N})}).catch(N=>{o({ok:!1,errorName:N.name,errorMessage:N.message,errorDetails:N.details})}),!0}))}getConnection(t,n,a){let r=!1;a&&a.sync&&(r=!0);let o=this.fromType,u=Ho.get(o);if(u.has(t))return u.get(t).connectionInstance;{let i=new sl(`${o}:${t}`,this.logger);return Ho.get(o).set(t,{messageHandler:n,sync:r,connectionInstance:i}),i}}},sl=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let a=ll(t),{type:r,id:o}=a;if(r!=="content_script"){let u={to:t,from:this.from,payload:n};this.logger.debug(`${u.from} send message [${u.payload.method}] to ${u.to}`,u.payload.data?u.payload.data:" ");try{let i=await X.runtime.sendMessage(u);return jm(u,i,this.logger)}catch(i){if(r==="popup"){let s=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(s,n,t,i),Promise.resolve({message:s})}else throw i}}else{let u={from:this.from,to:t,payload:n};this.logger.debug(`${u.from} send message [${u.payload.method}] to ${u.to}`,u.payload.data?u.payload.data:" ");let i=await X.tabs.sendMessage(o,u);return jm(u,i,this.logger)}}};function jm(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new Tt(t.errorName||"UnknownError",t.errorMessage||"Unknown error",t.errorDetails)}else throw new Tt("noResponse","Unknown error")}function ll(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let a=parseInt(t[2]);if(!isNaN(a))n.id=a;else throw new Error("tab id not a valid number")}return n}var hi;function X9(){return hi||(hi=new sa("content_script",!1).getConnection("pure_main",()=>{}),hi)}var zm="G-MKMD9LWFTR";async function qo(e,t){try{let n=Ke();if(n.INSTALL_FROM==="firefox_store")return;let r=me(),o=pt(),u=n.PROD==="1",i="sitc4WmvShWYwfU0dANM3Q",s=await Ht("fakeUserId","");s||(s=await ia("fakeUserId",""),s&&await $e("fakeUserId",s));let c=hn(),l=new Date,m=await Ht("installedAt","");m||(m=await ia("installedAt",""),m&&await $e("installedAt",m)),s?m||(m=new Date(0).toISOString(),await $e("installedAt",m)):(s=eb(32),await $e("fakeUserId",s)),m||(m=l.toISOString(),await $e("installedAt",m));let p=new Date(m),f=Hm(p),g=Hm(l),y=f===g,w=l.getTime()-p.getTime()<7*24*60*60*1e3,b=`https://www.google-analytics.com/mp/collect?measurement_id=${zm}&api_secret=${i}`;u||(b=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${zm}&api_secret=${i}`);let S="";typeof navigator<"u"&&(S=window.navigator.userAgent);let D=vr.parse(S),N=t.map(x=>{let E=x.params||{};return D.os&&(E.os_name=D.os.name||"unknown",E.os_version=D.os.version||"unknown",E.os_version_name=D.os.versionName||"unknown"),D.browser&&(E.browser_name=D.browser.name||"unknown",E.browser_version=D.browser.version||"unknown"),D.platform&&(E.platform_type=D.platform.type||"unknown"),D.engine&&(E.engine_name=D.engine.name||"unknown",E.engine_version=D.engine.version||"unknown"),c&&(E.version=c),n.INSTALL_FROM&&(E.install_from=n.INSTALL_FROM),f&&(E.install_day=tb(p)),E.userscript=r.toString(),y?E.is_new_user_today="1":E.is_new_user_today="0",w?E.is_new_user_this_week="1":E.is_new_user_this_week="0",o?E.main_frame=0:E.main_frame=1,{...x,params:E}}),_=await bi({responseType:"text",url:b,method:"POST",body:JSON.stringify({client_id:s,user_id:s,events:N})})}catch{}}function eb(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r",""],limit:5e3},custom:{placeholderDelimiters:["{","}"]},bing:{maxTextLengthPerRequest:1800,placeholderDelimiters:["","","b"]},deeplx:{limit:3},d:{immediateTranslationTextCount:0},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},openai:{placeholderDelimiters:["{{","}}","b"],immediateTranslationTextCount:3e3,translationDebounce:300,interval:1350,prompt:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: {{text}}`,maxTextGroupLengthPerRequest:1,newlinePlaceholderDelimiters:[` @@ -4276,68 +4276,70 @@ ${u}} ?`]}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:""},tempTranslateDomainMinutes:0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","*.twitter.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","github.com","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","www.tumblr.com","*.twitter.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},generalRule:{_comment:"",enableSubtitle:!0,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan"],useIframePostMessage:!0,searchEnhancementConfig:[],injectedCss:[],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!0,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,isTransformPreTagNewLine:!1,urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".MathJax_Preview",".MathJax",".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:4,paragraphMinWordCount:2,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,globalAttributes:{},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{".sr-only":"display:none"},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{translate:"no"},"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:[],additionalExcludeSelectors:[".social-share",".breadcrumbs",".post__footer",".btn",".reference-citations",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","markerow8"],translationClasses:[],atomicBlockSelectors:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","INPUT","BUTTON","BASE","SELECT","OPTION","HR","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","XQDD_HIGHLIGHT_NEW_WORD","NOBR"],additionalInlineTags:[],extraInlineSelectors:[],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,mouseHoverHoldKey:"Off"},rules:[{id:"immersive",matches:["https://immersivetranslate.com","https://onboarding.immersivetranslate.com"],isInjectVersion:!0,isInjectMeta:!0},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"pdf",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],translationMode:"translation",skipEditableCheck:!0,selectors:["p"],wrapperPrefix:"",isInjectVersion:!0,isPdf:!0},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,injectedCss:[".immersive-translate-target-translation-block-wrapper { display: block; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"]},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","https://platform.twitter.com/embed*"],additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']"],extraBlockSelectors:['[data-testid="tweetText"] div.r-6koalj'],extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText']":"-webkit-line-clamp: unset;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]"]},{id:"threads",matches:"www.threads.net",selectors:["p",".x1npkx4u.x1exu5d8",".xw7yly9",".xgkxs2y"],stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x78zum5",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{span:"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],extraBlockSelectors:["span.comment-copy"],excludeSelectors:["a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md",".RichTextJSON-root","div[slot=title]","div[slot=text-body]","p.title > a","[role=main] .md-container"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none"},waitForSelectors:["[data-testid=post_author_link]"]},{id:"reddit",matches:"www.reddit.com",selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","div[slot=title]","div[slot=text-body]","p.title > a","[role=main] .md-container"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none"}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper"],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box"],extraBlockSelectors:[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],detectParagraphLanguage:!0},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"facebook",matches:"www.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]"],atomicBlockSelectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],extraBlockSelectors:["span.x1vvkbs"],excludeSelectors:["[role=button]"],translationClasses:["immersive-translate-text"],detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".caption-window",".caption-visual-line",".yt-spec-button-view-model",".yt-core-attributed-string > span",".title"],"excludeTags.remove":["BUTTON"],condition:{enableSubtitle:{false:{"selectors.remove":[".caption-window",".caption-visual-line"]}}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],extraBlockSelectors:[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,detectParagraphLanguage:!0,excludeSelectors:["[class^='lln-']"],globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","ytd-notification-renderer .message","#message",".caption-window",".caption-visual-line"],extraBlockSelectors:["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],condition:{enableSubtitle:{false:{"selectors.remove":[".caption-window",".caption-visual-line"]}}},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,selectors:["h1","div[class='x9f619 xjbqb8w x78zum5 x168nmei x13lgxp2 x5pf9jr xo71vjh x1uhb9sk x1plvlek xryxfnj x1c4vz4f x2lah0s xdt5ytf xqjyukv x1cy8zhl x1oa3qoh x1nhvcw1'] > span[class='x1lliihq x1plvlek xryxfnj x1n2onr6 x193iq5w xeuugli x1fj9vlw x13faqbe x1vvkbs x1s928wv xhkezso x1gmr53x x1cpjm7i x1fgarty x1943h6x x1i0vuye xvs91rp xo1l8bm x5n08af x10wh9bi x1wdrske x8viiok x18hxmgj']","span[class='x193iq5w xeuugli x1fj9vlw x13faqbe x1vvkbs xt0psk2 x1i0vuye xvs91rp xo1l8bm x5n08af x10wh9bi x1wdrske x8viiok x18hxmgj']"],wrapperPrefix:"
"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:["[style^=top]",".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;"},extraBlockSelectors:[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"]},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page"],excludeMatches:["https://www.inoreader.com/features/"],observeUrlChange:!1,globalStyles:{".article_title_link":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` `,selectors:["h3 a[data-clk]","div.gs_rs","td a.gsc_a_at","td div.gs_gray:last-of-type","div.gsc_oci_value","#gs_opinion"],extraInlineSelectors:["br"],atomicBlockSelectors:["h3 a[data-clk]"]},{id:"googleMail",matches:"mail.google.com",detectParagraphLanguage:!0,selectors:["h2[data-thread-perm-id]","span[data-thread-id]","div[data-message-id] div[class='']",".messageBody","#views"],globalStyles:{".Nk":"height:auto!important;",".kf":"white-space:unset!important;"}},{id:"googleNews",matches:"news.google.com",blockMinTextCount:26,blockMinWordCount:5,globalStyles:{".MCAGUe":"height: auto;",".To2ZZb.DbQnIe":"height: unset;",".cp7Yvc > h2":"display: block;",".oovtQ":"height: auto;",h4:"-webkit-line-clamp: unset;"},excludeSelectors:[".EyERq",".AOl7G.eejsDc","[aria-label='Home']","[aria-label='For you']","[aria-label='Following']","[aria-label='World']","[aria-label='Local']",".gb_Fc",".wBQf7b",".yPI8Rb",".jKHa4e",".u43Gd",".Zgjpyb","[role='button']","[jsname='rymPhb']",".cbz1ld",".VfPpkd-P5QLlc",".XvhY1d"]},{id:"outlook",matches:"outlook.live.com",excludeSelectors:[".jHAG3.XG5Jd",".OZZZK",".lDdSm"]},{id:"producthunt",matches:"www.producthunt.com",excludeMatches:"https://www.producthunt.com/stories/*",selectors:["h2","div[class^='styles_htmlText__']","[class^='styles_tagline']","a[href^='/discussions/'].fontWeight-600","button[class^='styles_textButton'] > div > span","h5 + p","div[data-test=product-item-name] + div",".noOfLines-1,.noOfLines-2,.noOfLines-3",".fontWeight-600","[class*='styles_dropdown']","[class*='styles_aboutText']"],globalStyles:{"h5 + p":"height:unset;",".noOfLines-1,.noOfLines-2,.noOfLines-3":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"]},{id:"codeforces",matches:"https://codeforces.com/*",stayOriginalTags:["[class^='MathJax']"]},{id:"arxivLabs",matches:"*.labs.arxiv.org/*",stayOriginalTags:["math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt"]},{id:"discord",matches:"https://discord.com/channels/*",isTranslateTitle:!1,selectors:["li[id^=chat-messages] div[id^=message-content]","div[class^=headerText]","section[aria-label='Search Results'] div[id^=message-content]"],extraBlockSelectors:["[class^='embedFieldValue']","li[class^='card'] div[class^='message']","[data-list-item-id^='forum-channel-list'] div[class^='headerText']"],globalStyles:{"div[class^=headerText]":"max-height: unset;","div[class^=message]":"max-height: unset;","div[class^=text]":"max-height: unset;","h3[data-text-variant='heading-lg/semibold']":"-webkit-line-clamp: none;"},detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:"",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"telegram",matches:["web.telegram.org/z/*","web.telegram.org/a/*"],isTranslateTitle:!1,selectors:[".text-content",".message",".reply-markup-button-text",".bot-commands-list-element-description"],detectParagraphLanguage:!0},{id:"telegramK",matches:["web.telegram.org/k/*","web.telegram.org/k/"],selectors:[".message",".reply-markup-button-text",".bot-commands-list-element-description"],detectParagraphLanguage:!0},{id:"githubGist",matches:"gist.github.com",selectors:[".markdown-body",".readme"],detectParagraphLanguage:!0},{id:"lobste",matches:"lobste.rs",excludeMatches:["https://lobste.rs/about","https://lobste.rs/chat"],selectors:[".u-repost-of",".comment_text",".story_text"]},{id:"slack",matches:"*.slack.com",selectors:[".p-rich_text_block",".p-message_pane__foreword",".c-alert__message","[data-qa=message_attachment_text]"],additionalStayOriginalSelectors:["[data-qa=emoji]"],detectParagraphLanguage:!0},{id:"artstationArtwork",matches:"www.artstation.com/artwork/*",excludeSelectors:".project-description a",selectors:[".project-description","div.project-comment-text"],detectParagraphLanguage:!0},{id:"artstationLearning",matches:"www.artstation.com/learning/courses/*",additionalSelectors:["footer.learning-course-description.ng-star-inserted > span"],excludeSelectors:[".learning-card-meta"]},{id:"artstationBlog",matches:["https://www.artstation.com/blogs","https://www.artstation.com/blogs/*"],detectParagraphLanguage:!0,additionalSelectors:[".comment-item-body"],atomicBlockSelectors:[".author-headline",".author-location"],excludeSelectors:["blog-card-thumbnail","blog-card-header",".blog-card-author",".blog-card-meta",".blog-view-header",".blog-grid-title",".post-meta-header"]},{id:"figmaCommunity",matches:"www.figma.com/community/*",normalizeBody:"div.ql-editor[contenteditable='false']",excludeSelectors:["div[class*='metadataRight']","div[class*='commentMetaAndOptions']"],globalStyles:{"div[class*='mini_cardBottomRowSizing']":"height: 3em;"},additionalSelectors:["div[class*='mini_cardBottomRow_Metadata']"],stayOriginalSelectors:["[data-tooltip='tooltip-user-info']"]},{id:"googleIndex",matches:["https://www.google.com/","https://www.google.com.hk/"],excludeSelectors:["#gb","#SIvCob"],inputTutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",inputTutorialsSelectors:["textarea#APjFqb"]},{id:"googleSearch",matches:"www.google.*/search*",blockMinTextCount:32,blockMinWordCount:3,wrapperSuffix:"",detectParagraphLanguage:!0,excludeSelectors:["a h3 + div","div#sfooter","a[role=presentation] > div > div:first-child",".b5ZQcf",".CEMjEf",".MgUUmf.NUnG9d","#result-stats","[role=navigation]","div.sCuL3","div.eFM0qc.BCF2pd","div.WZ8Tjf","div.adDDi","#headerSection","#rateChatDiv","[id=bres]",".title-D5Lgyj","[data-attrid='VisualDigestVideoResult']",".search-enhance-WDIEkP h4",".SPZz6b h2",".CtCigf",".VLkRKc",".EbH0bb",".Wr0c6d",".jleFbf","#searchform",".yg51vc",".CbAZb"],extraBlockSelectors:[".MUFPAc"],globalStyles:{".V82bz":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px",".pe7FNb":"-webkit-line-clamp: unset;",".promotion-3PDMAb":"display: none;",".uAKcGb":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px","div[data-content-feature='1'] > div":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:2']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:3']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:4']":"-webkit-line-clamp: unset;max-height: unset;",".Pw4Ldf.RsCEN":"height:unset;",".related-question-pair":"overflow:auto;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,searchEnhancementConfig:[{id:"google",urlMatch:"https://www\\.google\\..+/search",style:{source:"font-size:12px; margin-bottom: 6px;",enTitle:"margin-top:6px;font-size:14px;",searchTitle:"margin-top:6px;position:relative;padding-right:24px;",more:"color:#1a0dab;margin-top:8px;",enTitleClassName:"immersive-translate-search-enhancement-en-title"},keyword:{value:"[0]$1",matches:[{source:"url",matchRegex:"q=(.+?)&"}]},showCount:5}]},{id:"lowendtalk",matches:"lowendtalk.com",selectors:["[role=heading]","h1",".userContent"]},{id:"linkedinJobs",matches:"www.linkedin.com/jobs/*",selectors:["#job-details > span"]},{id:"linkedinFeed",matches:"https://linkedin.com/feed/*",selectors:["h1",".feed-shared-update-v2__description-wrapper"]},{id:"indiehackers",matches:"www.indiehackers.com",selectors:[".content","h1","h3.story__title",".feed-item__title-link",".article-body"]},{id:"libreddit",matches:"libreddit.de",selectors:["h2.post_title",".comment_body > .md"]},{id:"notionSite",matches:["notion.site","*.notion.site"],normalizeBody:"body",selectors:["div[data-block-id]"]},{id:"newyorker",matches:"www.newyorker.com",additionalSelectors:["h1","[data-testid=SummaryItemHed]"],excludeSelectors:["[data-testid=PersistentTop]","[data-testid=StackedNavigationHeader]"],urlChangeDelay:2e3},{id:"startme",matches:"start.me",selectors:[".rss-article__title",".rss-articles-list__article-link",".rss-showcase__title",".rss-showcase__text"]},{id:"scmp",matches:"www.scmp.com",additionalSelectors:[".info__subHeadline",".section-content h2"],globalStyles:{".topic__article-list":"height: unset;",".adverisers__adveriser":"height: unset;",".advertiser__content":"height: unset;",".content-title__link":"display:unset;overflow:unset;-webkit-line-clamp:unset;",".title__text":"max-height:unset; -webkit-line-clamp:unset;",".news-list-item__news-title":"max-height:unset; -webkit-line-clamp:unset;","a[class*='link'] > .link__headline":"max-height:unset; -webkit-line-clamp:unset;"}},{id:"lesswrong",matches:"www.lesswrong.com",extraBlockSelectors:["span.commentOnSelection"]},{id:"mastodon",matches:["mastodon.social","mastodon.online","kolektiva.social","indieweb.social","mastodon.world","infosec.exchange"],isTranslateTitle:!1,selectorMatches:["div#mastodon"],selectors:["div.status__content__text",".about__section__body",".content",".form-container",".account__header__extra"],globalAttributes:{"[class='notranslate app-holder']":{class:"app-holder"}},detectLanguage:!0},{id:"cnbc",matches:"www.cnbc.com",urlChangeDelay:1e3,globalStyles:{"div.Card-titleContainer > div":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"dailyDev",matches:"app.daily.dev",selectors:["h1",".typo-body","article h3","[class^=markdown_markdown]"],globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset"}},{id:"pornhub",matches:["*.pornhub.com","pornhub.com"],excludeMatches:["*.pornhub.com/insights/*","pornhub.com/insights/*"],extraBlockSelectors:[".trendingNow",".searchItem",".tagcloud > a"],detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:` `,globalStyles:{"span.title":"height:unset; max-height:unset;",".detailedInfo":"max-height:unset;",".pcVideoListItem":"max-height:unset;",".wrap":"height:unset;",".entry-header":"height:unset;",".entry-title > a":"height:unset;-webkit-line-clamp:unset;"}},{id:"yourporn",matches:"https://www.youporn.com/*",extraBlockSelectors:[".button"],globalStyles:{".video-box":"max-height:unset;",".video-box-title":"white-space:unset;"}},{id:"modelhub",matches:"https://www.modelhub.com/*",globalStyles:{".videoTitle":"height:unset;",a:"height:unset;"}},{id:"xvideos",matches:"https://www.xvideos.com/*",globalStyles:{".title":"-webkit-line-clamp:unset;max-height:unset;",".mozaique":"display:flex; flex-wrap:wrap;"},excludeSelectors:[".video-hd-mark"]},{id:"missav",matches:"https://missav.com/*",globalStyles:{".truncate":"white-space:unset;",".overflow-y-hidden":"max-height:unset;overflow-y:unset;"}},{id:"javbus",matches:"https://www.javbus.com/*",globalStyles:{".photo-info":"height:unset;"},excludeSelectors:[".item-tag","date"]},{id:"spankbang",matches:"https://spankbang.com/*",globalStyles:{".video-item > a":"white-space:unset;"},excludeSelectors:[".stats",".thumb"],extraBlockSelectors:[".searches > a",".tag > a",".extra > a",".positions > li"]},{id:"javdb",matches:"https://javdb*.com/*",globalStyles:{".video-title":"white-space:unset;"},excludeSelectors:[".video-number",".score",".has-addons"]},{id:"jable",matches:"https://jable.tv/*",globalStyles:{".title":"white-space:unset;max-height:unset;",".img-box > a":"position:relative;"}},{id:"netflav",matches:"https://netflav*.com/*",globalStyles:{".grid_title":"max-height:unset;"},extraBlockSelectors:[".genre_filter_item","button"]},{id:"czechvideo",matches:"https://czechvideo.co/*",globalStyles:{".short-story":"height:unset;",".short-title":"height:unset;"},globalAttributes:{header:{translate:"unset;"}}},{id:"weibo",matches:["weibo.com"],selectors:["div[class^='detail_wbtext']"]},{id:"medium",matches:["medium.com","*.medium.com"],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],urlChangeDelay:20,"additionalExcludeSelectors.remove":["i.fa","i[class^=fa-]",".navmenu-container",".google-symbols","markerow8"],selectors:["h1","h2","article section","[aria-hidden='false'] pre","article p"],excludeSelectors:["[aria-label='Post Preview Reading Time']",".al.b.bl.ag.bp",".al.b.bl.ag.ai"],globalStyles:{h2:"-webkit-line-clamp: unset;max-height:unset;","article p":"-webkit-line-clamp: unset;max-height:unset;"}},{id:"nitter",selectorMatches:["meta[property='og:site_name'][content='Nitter']"],selectors:[".tweet-content",".quote-text"]},{id:"economist",matches:"www.economist.com",extraInlineSelectors:["span[data-caps='initial']"],excludeSelectors:["footer.ds-footer"],injectedCss:["a::before {position:relative!important;}"]},{id:"healthline",matches:"www.healthline.com",excludeSelectors:[".icon-hl-trusted-source-after"]},{id:"ebay",matches:"www.ebay.com",excludeSelectors:["headers","[itemprop=offers]",".dne-itemtile-original-price"],paragraphMinTextCount:4,paragraphMinWordCount:2,globalStyles:{"[itemprop=name]":"-webkit-line-clamp: unset;max-height: unset;",".merch-item-title":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"skinstore",matches:"www.skinstore.com",excludeSelectors:[".responsiveFlyoutMenu_levelOneLink"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"tripadvisor",matches:"www.tripadvisor.com",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"amazon",matches:"www.amazon.com",paragraphMinTextCount:4,paragraphMinWordCount:2,extraBlockSelectors:[".a-size-small.a-link-normal.page-banner-link.a-nowrap"],globalStyles:{".a-carousel-viewport":"height:unset;","[class*='clamp']":"max-height: unset;-webkit-line-clamp: unset;","[data-rows]":"max-height: unset;-webkit-line-clamp: unset;","[data-a-expander-name='review_text_read_more']":" max-height: unset;"},excludeSelectors:["#navFooter","#navbar-main",".s-price-instructions-style","[class*='star']","[data-hook='acr-average-stars-rating-text']",".a-color-price"]},{id:"visualstudioMarketplace",matches:"marketplace.visualstudio.com",additionalExcludeSelectors:[".core-info-second-row",".core-info-third-row",".meta-data-list",".item-title",".breadcrumb",".itemDetails-right",".ux-user-name",".ux-updated-date",".ux-item-second-row-wrapper",".stats-and-offer",".header-container"],atomicBlockSelectors:[".core-info-cell > div.name"],globalStyles:{".item-details-control-root.ux-item-shortdesc":"height: unset; overflow: visible; max-height:unset;"}},{id:"bloomberg",matches:"www.bloomberg.com",urlChangeDelay:2e3,excludeSelectors:[".ticker-bar","nav","[aria-label=Banner]","aside","[data-component=ticker-bar]","footer.bb-global-footer"]},{id:"baiduXueshu",matches:"xueshu.baidu.com",globalStyles:{".abstract_wr":"height: unset; overflow: visible; max-height:unset;"}},{id:"sciencedirect",matches:"www.sciencedirect.com",urlChangeDelay:2e3,stayOriginalSelectors:["span.display","span.math"],extraBlockSelectors:["span.captions","span[id^=cap]"]},{id:"thehighestofthemountains",matches:"www.thehighestofthemountains.com",extraBlockSelectors:"div"},{id:"telegraph1",matches:"te.legra.ph",normalizeBody:"div.ql-editor[contenteditable='false']",urlChangeDelay:500},{id:"telegraph2",matches:["telegra.ph"],normalizeBody:"div.ql-editor[contenteditable='false']",wrapperPrefix:` -`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main > div > div[class*='h-[125]']":"height:auto"},normalizeBody:"body",extraBlockSelectors:["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,normalizeBody:"#mw-content-text",globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"]},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"}},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:"chat.openai.com",excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0}},{id:"newstop",matches:["chat.newstop.asia","chat.waixingyun.cn"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".n-button.n-button--warning-type.n-button--medium-type",messageWrapperSelector:".markdown-body",streamingChange:!1,streamingDeepChild:!0}},{id:"askgpt",matches:["askgpt.cn","chatcat.zhaoyoung.me"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".home_chat-message-status__EsVNi",messageWrapperSelector:".markdown-body",streamingChange:!0,streamingDeepChild:!0}},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__UyYrv *",".MarkdownLink_linkifiedLink__KxC9G"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__UyYrv",streamingChange:!1,streamingDeepChild:!0}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"newthingsunderthesun",matches:"www.newthingsunderthesun.com",additionalSelectors:["[translate=no]"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"https://steamcommunity.com/app/*",globalStyles:{".forum_topic":"height:auto;",".forum_topic_name":"white-space:normal;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampowered",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:"https://www.webofscience.com/*",globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},excludeSelectors:[".summary-left-panel",".authors","app-full-record-keywords mark"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],extraBlockSelectors:["app-summary-authors + div","app-full-record-keywords span span"],observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://www.jetbrains.com/help/*",extraBlockSelectors:["[data-test=prompt]"]},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails p"]},{id:"isEbook",isEbook:!0,isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span"},{id:"isEbookBuilder",isEbookBuilder:!0,isTranslateTitle:!1,targetWrapperTag:"span",selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com",extraBlockSelectors:["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],extraBlockSelectors:"font[face=verdana]"},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"isSubtitleBuilder",isSubtitleBuilder:!0,selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,wrapperPrefix:"",wrapperSuffix:""},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/",extraBlockSelectors:[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"vimeo",matches:"https://player.vimeo.com/video/*",extraBlockSelectors:["span.vp-captions-line","span[class^=CaptionsRenderer_]"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexityAi",matches:"https://www.perplexity.ai/search/*",extraBlockSelectors:[".prose > span"],additionalStayOriginalSelectors:["a.citation"],insertPosition:"afterend"},{id:"perplexity",matches:"https://www.perplexity.ai",globalStyles:{".line-clamp-1":"-webkit-line-clamp: unset !important;",".line-clamp-2":"-webkit-line-clamp: unset !important;"}},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"babelnovel",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*"],urlChangeDelay:0},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0},{globalAttributes:{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"youtrackJetbrains",matches:"youtrack.jetbrains.com/articles/*",selectors:["[role=presentation]","[data-test=article-content]"],excludeSelectors:[".toolbar__ee8"]},{id:"bbc",matches:"www.bbc.com",excludeSelectors:["section.module--languages",".drop-capped"]},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}}},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"openai",matches:"https://platform.openai.com/docs/*",urlChangeDelay:0},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout":"height:unset !important;",".EntrySummary--u4":"-webkit-line-clamp: unset;max-height:unset;",".EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:[".copyable-text > span"],wrapperPrefix:` -`,wrapperSuffix:"
"},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],globalStyles:{"[class*='lineclamp']":"-webkit-line-clamp:unset;"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],extraBlockSelectors:[".SIPGg",".sc-kzMCTH.pSZXj"],globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"]},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*",globalAttributes:{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead"],injectedCss:["a::after {position:relative!important;}"]},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},globalAttributes:{"#app":{class:""}}},{id:"haproxy",matches:["docs.haproxy.org","www.oreilly.com/openbook/opensources/book/*"],excludeTags:[],stayOriginalSelectors:[],stayOriginalTags:[],isTransformPreTagNewLine:!0},{id:"piAi",matches:"pi.ai/talk",excludeSelectors:[".whitespace-pre-wrap > span *"],aiRule:{streamingSelector:"button[class*='fixed'][disabled]",messageWrapperSelector:".whitespace-pre-wrap",streamingChange:!1,streamingDeepChild:!1},globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *"],"excludeTags.remove":["PRE"],injectedCss:"[data-testid='chat-menu-trigger'] br {display:none;}",aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1}},{id:"feishu",matches:"*.feishu.cn","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],excludeSelectors:[".catalogue__list"]},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"bugsWebkit",matches:"bugs.webkit.org",isTransformPreTagNewLine:!0},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",matches:"www.kaggle.com",excludeTags:["i","button"]},{id:"ieee",matches:"spectrum.ieee.org",extraBlockSelectors:["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"www.cnn.com",excludeSelectors:[".ad-slot-header__wrapper"]},{id:"marginalrevolution",matches:"marginalrevolution.com",globalAttributes:{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",condition:{enableSubtitle:{false:{"excludeSelectors.add":[".bpx-player-subtitle-panel-text"]}}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"docs-oracle",matches:"docs.oracle.com",urlChangeDelay:0},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"edstem",matches:"edstem.org","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:"pubmed.ncbi.nlm.nih.gov",urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share"]},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"tldrnewsletter",matches:"actions.tldrnewsletter.com","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"bugzilla",matches:"bugzilla.mozilla.org","excludeTags.remove":["PRE"],isTransformPreTagNewLine:!0},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"excludeSelectors.add":["aside",".DocSearch-Modal"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"mail.qq.com",useIframePostMessage:!1},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]}]};h();h();function Qa(e){return Array.isArray(e)?e:e?[e]:[]}function bn(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function at(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function Ti(e,t){let n={...e};return qm(n,t),ab(n,t),n}function Hm(e,t,n){let a={...t};return rb(e,a,n),a}function ab(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},a=t.condition.enableSubtitle?.false||{},r=e.enableSubtitle?n:a;qm(e,r)}function rb(e,t,n){try{return Object.keys(t).forEach(a=>{let[r,o]=a.split(".");if(o){let u=t[a];if(Array.isArray(e[r])&&(u=Qa(t[a])),o==="add"){t[r]=Wo(e[r],u),delete t[a];return}else if(o=="remove"){t[r]=cl(e[r],u),delete t[a];return}}}),Object.keys(n).forEach(a=>{let[r,o]=a.split(".");if(!r||n[a]===void 0)return;let u=n[a],i=t[r];if(Array.isArray(e[r])&&(u=Qa(n[a]),i=Qa(t[r])),o==="add"){t[r]=Wo(i,u);return}else if(o=="remove"){t[r]=cl(i,u);return}Array.isArray(i)&&r.startsWith("additional")?t[r]=Wo(i,u):t[r]=u}),t}catch{}}function qm(e,t){return Object.keys(t).forEach(n=>{let[a,r]=n.split(".");if(!a||t[n]===void 0)return;let o=t[n];if(Array.isArray(e[a])&&(o=Qa(t[n])),r==="add"){e[a]=Wo(e[a],o);return}else if(r=="remove"){e[a]=cl(e[a],o);return}Array.isArray(e[a])&&a.startsWith("additional")?e[a]=Wo(e[a],o):e[a]=o}),e}function Wo(e,t){let n;if(Array.isArray(e)){let a=Qa(t);n=[...e,...a],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"&&(n={...e,...t});return n}function cl(e,t){if(Array.isArray(e)){let n=Qa(t);return e=e.filter(a=>!n.includes(a)),Array.from(new Set(e))}else typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(n=>{delete e[n]});return e}function Za(){if(Ce.PROD==="1")return{};let e={};if(Ce.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&Ce.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:Ce.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:Ce.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&Ce.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:Ce.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:Ce.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:Ce.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:Ce.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&Ce.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:Ce.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:Ce.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&Ce.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:Ce.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:Ce.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:Ce.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(Ce.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=Ce.DEEPL_PROXY_ENDPOINT),Ce.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=Ce.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),Ce.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:Ce.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}Ce.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=Ce.IMMERSIVE_TRANSLATE_SERVICE);let t={};return Ce.DEBUG==="1"&&(t.debug=!0,t.cache=!1),Ce.MOCK==="1"&&(t.translationService="mock"),t}async function Gn(){let e=await Q.storage.local.get(vr);if(e[vr]){let t=e[vr],n=t.tempTranslationUrlMatches||[],a=n.filter(u=>u.expiredAt>Date.now()),r=!1;a.length!==n.length&&(n=a,r=!0);let o={...t,tempTranslationUrlMatches:[...n]};return r&&await yn(o),o}else return{}}async function yn(e){await Q.storage.local.set({[vr]:e})}async function Wm(e){await Q.storage.local.set({[ra]:e})}async function Ir(){await Q.storage.local.set({[ra]:{}})}async function Aa(){await Q.storage.local.set({[vr]:{}})}async function Km(){let e=await Q.storage.local.get(ra),n={...Ei(),...xi,buildinConfigUpdatedAt:Ce.BUILD_TIME};if(e[ra]){let a=e[ra];if(a&&a.buildinConfigUpdatedAt){let r=new Date(a.buildinConfigUpdatedAt),o=new Date(n.buildinConfigUpdatedAt);r>o&&(n=a)}}return n}async function Ge(){let e=await Q.storage.local.get(ra),t={...xi,buildinConfigUpdatedAt:Ce.BUILD_TIME};if(e[ra]){let B=e[ra];if(B&&B.buildinConfigUpdatedAt){let A=new Date(B.buildinConfigUpdatedAt),L=new Date(t.buildinConfigUpdatedAt);A>L&&(t=B)}}let n=await Xe.get(xt,null),a={};if(!me()&&Q.commands&&Q.commands.getAll){let B=await Q.commands.getAll();for(let A of B)A.name&&A.shortcut&&(a[A.name]=A.shortcut)}let r=Ei(),o=Za(),u=await Ko(),i=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},s=await Gn(),c=new Date;if(s&&s.tempTranslationUrlMatches&&s.tempTranslationUrlMatches.length>0){let B=s.tempTranslationUrlMatches.filter(A=>new Date(A.expiredAt)>c);if(B.length>0){let A=u.translationUrlPattern?u.translationUrlPattern?.matches||[]:[],L=Array.isArray(A)?A:[A],U=Array.from(new Set(L.concat(B.map(K=>K.match))));u.translationUrlPattern={...u.translationUrlPattern,matches:U}}}let l=Object.assign({},i,o,u);if(!l.interfaceLanguage){let B=await ob();l.interfaceLanguage=B}let f=l.interfaceLanguage==="en",p=l.targetLanguage==="en",m=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,g=["bing","google","transmart","mock"].includes(l.translationService)||!l.translationService;!f&&!p&&!m&&g?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let T=t&&t.enableDefaultAlwaysTranslatedUrls;l.enableDefaultAlwaysTranslatedUrls===!1&&(T=!1);let w=l&&l.isChangedAlwaysTranslatedUrls,b=[];l.translationUrlPattern&&l.translationUrlPattern.matches&&(b=l.translationUrlPattern.matches||[]);let S=!1;w===void 0&&(b.length>0?w=!0:w=!1,l.isChangedAlwaysTranslatedUrls=w,u.isChangedAlwaysTranslatedUrls=w,S=!0);let D=(l?.translationLanguagePattern?.matches?.length||0)>0,N=await Ht("installedAt",""),_=Number(await sa("translage_page_daily",0)),y=Number(await Ht(Ln,0)),E;y>0&&(Date.now()-y0&&(Date.now()-_H.id&&U[H.id]?Hm(t.generalRule,U[H.id],H):H);R[A]=[...K,...R[A]]}if(Ce.PROD==="0"&&Ce.DEV_RULES){let L=JSON.parse(Ce.DEV_RULES);R[A]=[...L,...R[A]]}}else l[A]!==void 0&&(R[A]=l[A])}return R.donateUrl=t.donateUrl,R.minVersion=t.minVersion,R.feedbackUrl=t.feedbackUrl,R}async function Ko(){return(await Q.storage.sync.get("userConfig")||{}).userConfig||{}}async function $o(e){await Q.storage.sync.set({userConfig:e})}var ob=async()=>{let e=["zh-CN"];try{e=await Q.i18n.getAcceptLanguages()}catch(a){z.warn("get browser language error:",a)}let n=e.map(a=>Ya(a)).find(a=>Qt[a]);return n||"en"},Ei=()=>{let e={...xi,buildinConfigUpdatedAt:Ce.BUILD_TIME};return{...e,targetLanguage:ei,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing"},rules:[]}};function ub(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(a=>!e.includes(a)).length>0}h();function Go(e){if(Math.abs(e)<1024)return e+" Byte";let n=["KB","MB","GB","TB","PB","EB","ZB","YB"],a=-1;do e/=1024,++a;while(Math.abs(e)>=1024&&as+c.text.length,0)+u.text.length>t||o.tempSentences.length>=n)&&(r.push(o),o={fromByClient:o.fromByClient,from:u.from,to:u.to,tempSentences:[],url:u.url}),(o.from!==u.from||o.to!==u.to)&&(o.tempSentences.length>0?(r.push(o),o={fromByClient:o.fromByClient,from:u.from,to:u.to,tempSentences:[],url:u.url}):(o.from=u.from,o.to=u.to)),o.tempSentences.push(u);return o.tempSentences.length>0&&r.push(o),r}function ib(e,t){let n=[],a=[];for(let r=0;r0?gt){let b=[];dl(T,t,b);for(let S=0;S0&&g{let i=e.lastIndexOf(u,t);return i>o?i:o},-1);if(r===-1){let o=e.slice(0,t);if(o&&!o.trim())return;n.push({text:o,prefix:"",suffix:""}),e.length>t&&dl(e.slice(t),t,n)}else{let o=e.slice(0,r+1);if(o&&o.trim()==="")return;o.startsWith(" ")?n.push({text:o.slice(1),prefix:" ",suffix:""}):n.push({text:o,prefix:"",suffix:""}),r+10){l.forEach(g=>{c.length>0&&g.providers&&g.providers.length>0&&!g.providers.includes(s)||(g.optional?p.push(g):f.push(g))});let m=p.concat(f).filter(g=>g.required);if(m.length>0){for(let g of m)if(!r[g.name]){i=!1;break}}}return{...a,id:t,selected:n[e]===t,ok:i,currentProvider:s,config:r,providers:a.providers||[],props:a.props||[],allProps:l,optionalProps:p,explicitProps:f}}var Ci=(e,t)=>{let{config:n}=e,a=n.alpha,r=n.beta,o=n.canary,u=n.debug,i=e.user,s=Xt(i);return Object.keys(Mn).filter(l=>{let f=Mn[l];if(l.startsWith("mock"))return u?!0:l===e.config[t];if(l===e.config[t])return!0;if(l==="openai"&&ot())return e.config.showOpenaiOnSafari||s?!0:!!(r||a||o||s);let p=!!f.canary,m=!!f.alpha,g=!!f.beta;return l===e[t]||p&&o||m&&(a||o)||g&&(r||a||o)?!0:!m&&!g&&!p}).map(l=>gl(t,l,e))};function Fn(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}h();h();h();h();h();h();h();h();h();var kA=Vm(2),Gm=Vm(3);function Vm(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let a=[];if(n==null)return a;let r=typeof n.slice=="function"?n:String(n),o=r.length-e+1;if(o<1)return a;for(;o--;)a[o]=r.slice(o,o+e);return a}}h();var sb=/\s+/g,lb=/[\t\n\v\f\r ]+/g;function Ym(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?cb:db;return String(e).replace(t.style==="html"?lb:sb,t.trim?gb(n):n)}function cb(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function db(){return" "}function gb(e){return t;function t(n,a,r){return a===0||a+n.length===r.length?"":e(n)}}var Jm={}.hasOwnProperty;function mb(e){return e==null?"":Ym(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function pb(e){return Gm(" "+mb(e)+" ")}function fb(e){let t=pb(e),n={},a=-1;for(;++an&&(n=o,a=r)}return[a,n]}function Cb(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function vb(e,t,n,a){t=Ab(t,n,a);let r=[],o;if(t)for(o in t)vi.call(t,o)&&r.push([o,wb(e,t[o])]);return r.length===0?pl():r.sort(kb)}function wb(e,t){let n=0,a=-1;for(;++at.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharactersu+i.length,0));let o=e.length-a;for(let u of Ib){let i=u[1],s=u[0],c=e.match(i),l=c?c.length:0;l>n&&(n=l,t=s)}return n*2.5/o>.5?t==="zh-CN"?rp(e)?"zh-TW":"zh-CN":t:"auto"}var up=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],fl=new Map(up),Ob=new Map(up.map(([e,t])=>[t,e]));function ip(e,t,n=["en"]){if(!e)return"auto";let a=n.map(i=>Ob.get(i));!t&&t!==0&&(t=25);let r=Ai(e);if(r!=="auto")return r;let o={minLength:t,whitelist:[...fl.keys()]},u=Xm(e,o);if(u&&u.length>0){for(let[l,f]of u)if(a.includes(l)&&f>.5)return fl.get(l);let[i,s]=u[0],c=fl.get(i);if(c&&s>.5)return c}return"auto"}h();h();function Sa(e,t){var n=(e&65535)+(t&65535),a=(e>>16)+(t>>16)+(n>>16);return a<<16|n&65535}function Nb(e,t){return e<>>32-t}function Si(e,t,n,a,r,o){return Sa(Nb(Sa(Sa(t,e),Sa(a,o)),r),n)}function Rt(e,t,n,a,r,o,u){return Si(t&n|~t&a,e,t,r,o,u)}function It(e,t,n,a,r,o,u){return Si(t&a|n&~a,e,t,r,o,u)}function Ot(e,t,n,a,r,o,u){return Si(t^n^a,e,t,r,o,u)}function Nt(e,t,n,a,r,o,u){return Si(n^(t|~a),e,t,r,o,u)}function ki(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,a,r,o,u,i=1732584193,s=-271733879,c=-1732584194,l=271733878;for(n=0;n>5]>>>t%32&255);return n}function hl(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(a=ki(a,e.length*8)),n=0;n<16;n+=1)r[n]=a[n]^909522486,o[n]=a[n]^1549556828;return u=ki(r.concat(hl(t)),512+t.length*8),sp(ki(o.concat(u),512+128))}function lp(e){var t="0123456789abcdef",n="",a,r;for(r=0;r>>4&15)+t.charAt(a&15);return n}function bl(e){return unescape(encodeURIComponent(e))}function cp(e){return Ub(bl(e))}function zb(e){return lp(cp(e))}function dp(e,t){return jb(bl(e),bl(t))}function Hb(e,t){return lp(dp(e,t))}function Da(e,t,n){return t?n?dp(t,e):Hb(t,e):n?cp(e):zb(e)}var Or=[];async function Yo(e,t){return await new Promise((n,a)=>{let r=e,o=1,u=indexedDB.open(r,o);u.onsuccess=i=>{n(u.result)},u.onerror=i=>{a()},u.onupgradeneeded=i=>{let s=u.result,c=t||"cache";s.createObjectStore(c,{keyPath:"key"})}})}async function yl(e){let t=`${X}-${e.service}@${e.from}->${e.to}`;return await Wb(t,e)}async function xl(e){let t=Da(e.originalText),n=`${X}-${e.service}@${e.from}->${e.to}`;return await qb(n,t)}async function qb(e,t){let n=await Yo(e);return await new Promise((a,r)=>{if(!n)return r();let o="cache",i=n.transaction([o],"readonly").objectStore(o).get(t);i.onsuccess=s=>{n.close();let c=i.result;a(c)},i.onerror=s=>{n.close(),r()}})}async function Wb(e,t){let n=await Yo(e);return(await Tl()).includes(e)||await Kb(e),await new Promise(r=>{if(!n)return r(!1);let o="cache",i=n.transaction([o],"readwrite").objectStore(o).put(t);i.onsuccess=s=>{n.close(),r(!0)},i.onerror=s=>{n.close(),r(!1)}})}async function Kb(e){let t="cache_list",n=await Yo(X+"-cacheList",t),r=n.transaction([t],"readwrite").objectStore(t).put({key:e});r.onsuccess=o=>{n.close(),Or.push(e)},r.onerror=o=>{n.close()}}async function Tl(){if(Or&&Or.length>0)return Or;let e=await Yo(X+"-cacheList","cache_list");return Or=await new Promise(t=>{let n="cache_list",r=e.transaction([n],"readonly").objectStore(n).getAllKeys();r.onsuccess=o=>{e.close(),t(r.result)},r.onerror=o=>{e.close(),t([])}}),Or}async function El(){try{let e=[];(await Tl()).forEach(a=>{e.push($b(a))});let n=await Promise.all(e);return Go(n.reduce((a,r)=>a+r,0))}catch{return Go(0)}}async function $b(e){let t=await Yo(e),a=[...t.objectStoreNames].reduce((u,i)=>{let s=Gb(t,i);return u.push(s),u},[]),r=await Promise.all(a);return t.close(),r.reduce((u,i)=>u+i,0)}async function Gb(e,t){return await new Promise((n,a)=>{if(e==null)return a();let r=0,o=e.transaction([t]).objectStore(t).openCursor();o.onsuccess=u=>{let i=o.result;if(i){let s=i.value,c=JSON.stringify(s);r+=c.length,i.continue()}else n(r)},o.onerror=u=>a("error in "+t+": "+u)})}async function gp(){try{let t=(await Tl()).map(a=>Vb(a));return!!(await Promise.all(t)).every(a=>a)}catch{return!1}}async function Vb(e){return await new Promise(t=>{let n=indexedDB.deleteDatabase(e);n.onsuccess=()=>{t(!0)},n.onerror=a=>{t(!1)}})}h();h();h();var mp="G-MKMD9LWFTR";async function et(e,t,n){try{let a=Ke();if(a.INSTALL_FROM==="firefox_store")return;let o=me(),u=mt(),i=a.PROD==="1",s=`report_${e}`,c=e.endsWith("_daily");if(c){if(u)return;let x=await sa(s,0),v=Di(new Date(x)),C=Date.now(),R=Di(new Date(C));if(v===R)return;await Om(s,C)}else if(!n.config.telemetry)return;let l="sitc4WmvShWYwfU0dANM3Q",f=await Ht("fakeUserId","");f||(f=await sa("fakeUserId",""),f&&await $e("fakeUserId",f));let p=hn(),m=new Date,g=await Ht("installedAt","");g||(g=await sa("installedAt",""),g&&await $e("installedAt",g)),f?g||(g=new Date(0).toISOString(),await $e("installedAt",g)):(f=Yb(32),await $e("fakeUserId",f)),g||(g=m.toISOString(),await $e("installedAt",g));let T=new Date(g),w=Di(T),b=Di(m),S=w===b,D=m.getTime()-T.getTime()<7*24*60*60*1e3,N=`https://www.google-analytics.com/mp/collect?measurement_id=${mp}&api_secret=${l}`;i||(N=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${mp}&api_secret=${l}`);let _=Tr.parse(window.navigator.userAgent),y=t.map(x=>{let v=x.params||{};if(_.os&&(v.os_name=_.os.name||"unknown",v.os_version=_.os.version||"unknown",v.os_version_name=_.os.versionName||"unknown"),_.browser&&(v.browser_name=_.browser.name||"unknown",v.browser_version=_.browser.version||"unknown"),_.platform&&(v.platform_type=_.platform.type||"unknown"),_.engine&&(v.engine_name=_.engine.name||"unknown",v.engine_version=_.engine.version||"unknown"),n.translationService&&(v.translation_service||(v.translation_service=n.translationService),n.config.translationServices&&n.config.translationServices[n.translationService]&&(n.config.translationServices[n.translationService].provider&&(v.translation_service_provider=n.config.translationServices[n.translationService].provider),n.translationService==="openai"&&n.config.translationServices[n.translationService].provider==="custom"&&(n.config.translationServices[n.translationService].apiUrl?n.config.translationServices[n.translationService].apiUrl.startsWith("https://api.openai.com/")?v.openai_is_official="1":v.openai_is_official="0":v.openai_is_official="1"))),n.targetLanguage&&(v.target_language=n.targetLanguage),n.config.interfaceLanguage&&(v.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?v.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":v.enable_default_always_translated_urls="0",p&&(v.version=p),n.config.enableInputTranslation?v.enable_input_translation=n.config.enableInputTranslation?"1":"0":v.enable_input_translation="0",n.config.translationTheme&&(v.translation_theme=n.config.translationTheme),n.config.alpha&&(v.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?v.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):v.always_translate_languages="none",a.INSTALL_FROM&&(v.install_from=a.INSTALL_FROM),n.config.beta&&(v.beta=n.config.alpha.toString()),n.config.translationArea&&(v.translation_area=n.config.translationArea),n.rule&&n.rule.enableSearchEnhancement!==void 0&&(v.enable_search_enhancement=n.rule.enableSearchEnhancement?"1":"0"),w&&(v.install_day=Jb(T)),n.user){let R=fm(n.user);R&&Object.keys(R).forEach(M=>{v[M]=R[M]})}else v.user_type="anonymous";n.config.translationMode&&(v.translation_mode=n.config.translationMode),v.userscript=o.toString(),S?v.is_new_user_today="1":v.is_new_user_today="0",D?v.is_new_user_this_week="1":v.is_new_user_this_week="0",n.config.tempTranslateDomainMinutes?v.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():v.temp_translate_domain_minutes="0";let C="html";if(n.rule.isEbook?C="ebookReader":n.rule.isPdf?C="pdfReader":n.rule.isEbookBuilder?C="ebookBuilder":n.rule.isSubtitleBuilder&&(C="subtitleBuilder"),v.page_type=C,u?v.main_frame=0:v.main_frame=1,!c){let R=n.url;try{let M=new URL(R);v.site_host=M.hostname}catch{v.site_host="unknown"}n.sourceLanguage&&(v.source_language=n.sourceLanguage)}return{...x,params:v}}),E=await se({responseType:"text",url:N,method:"POST",body:JSON.stringify({client_id:f,user_id:f,events:y})})}catch{}}function Yb(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;rt.removeEventListener("message",n)),e.length=0}function ey(e,t,n,a){return new Promise(r=>{let o=u=>{let i=u.data;Zb(t,n,i)&&i.id===a&&(e.removeEventListener("message",o),r(i.response))};e.addEventListener("message",o)})}function ty(e,t,n,a){let r=o=>{let u=o.data;yp(t,"tell",n,u)&&a(u.body)};return e.addEventListener("message",r),[e,r]}function pp(e,t,n,a,r,o){let u=async i=>{let s=i.data;if(yp(n,"ask",a,s)){let c=await o(s.body);t=i.source,t.postMessage(Qb(n,a,s.id,c),i.origin)}};return e.addEventListener("message",u),[e,u]}function ny(e,t,n,a,r){let o=Math.random().toString();return e.postMessage(bp(t,"tell",n,o,a),r)}async function fp(e,t,n,a,r,o,u){let i=Math.random().toString(),s=new Promise(async(c,l)=>{let f=setTimeout(()=>l(new Error(`Failed to get response within ${u}ms`)),u),p=await ey(e,n,a,i);clearTimeout(f),c(p)});return t.postMessage(bp(n,"ask",a,i,r),o),s}var Ma=class e{constructor(t,n,a=window,r="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=a;this.targetOrigin=r;pp(a,n,this.getSystemProtocol("ping"),"ping",r,()=>Promise.resolve({}))}static async connect(t,n=10,a=500){for(let r=0;r<=n;r++)try{return await t.ping({timeout:a}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*a}ms`)}static parent(t,n,a="*",r=window){let o=n.contentWindow;if(La(o))return new e(t,o,r,a);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:a=window,targetWindow:r=window.parent}={}){return new e(t,r,a,n)}static rootIframe(t,n="*",{thisWindow:a=window}={}){return new e(t,null,a,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await fp(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(ty(this.thisWindow,this.protocol,t,n))}tell(t,n){ny(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(pp(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,a=1e4){if(this.targetWindow)return fp(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,a);throw new Error("target window is requried")}destroy(){Xb(this.listeners)}};var xp;async function Tp(){if(mt()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=Ma.iframe(ni,"*",{targetWindow:t});xp=n,await Ma.connect(n).catch(a=>{z.error("connect with parent frame error",a)})}}function Li(){return xp}h();function Ep(e,t){let n=t.matches||[],a=t.excludeMatches||[];if(a&&!Array.isArray(a)&&(a=[a]),n&&!Array.isArray(n)&&(n=[n]),a.length>0){if(a.includes(e)||a.includes(""))return!1;for(let r of a)if(r.includes("*")&&new RegExp(r).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let r of n)if(r.includes("*")&&new RegExp(r).test(e))return!0}return!1}h();h();var ay=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function _n(e,t){if(t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function Cl(e,t,n){let{blockSelectors:a,extraBlockSelectors:r,extraInlineSelectors:o}=t;if(_n(e,o))return!1;if(_n(e,r)||e.nodeName.toLowerCase()==="br")return!0;let s=null;return e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(s=e.parentNode.immersiveTranslateComputedStyle),s&&s.display&&s.display==="inline-flex"?!1:n&&n.display?!!ay.includes(n.display):_n(e,a)}var qt=_n;function Xa(e){return!!e.shadowRoot}function Pa(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function Jo(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Mi(e){let t=Ka;return e&&(t=e),t}function Pi(e,t){return ka(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function ry(e){let{rule:t}=e,n=e.config.loadingTheme;return` <${t.targetWrapperTag} class="${X}-loading-${n} notranslate">`}function Qo(e,t){let n=e.rule,a=document.createElement(n.targetWrapperTag);a.classList.add("notranslate",un),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),pt(a,Ng,t.toString());let r=ry(e);return a.append(Ne.sanitize(r,{RETURN_DOM_FRAGMENT:!0})),a}function Nr(e,t){return e.querySelector(`[${U0}='${t}']`)}function Cp(){document.querySelectorAll(`[${U0}]`).forEach(t=>{t.remove()})}function vp(){document.querySelectorAll(`.${un}-error`).forEach(t=>{t.remove()})}function wp(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{Mr(n)&&t.push(n)}),t}function Ap(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:a,delimiters:r,text:o}=e,u=new RegExp(`${r[0]}(\\d+)${r[1]}`,"gi");if(r.length>2){let s=r[2];u=new RegExp(`<${s}(\\d+)>(.*?)`,"gi")}let i=o.trim();return i=i.replace(u,""),i=i.trim(),i===""||i.length===1&&i.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(o)||i.includes("")||i.includes("< styles>")||cm(i)||um(i)||lm(i)||im(i)||sm(i)||u.test(i)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(i)?!1:oi(o,n,a)}function Bn(e){return e.nodeType===Node.ELEMENT_NODE}function kp(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}function Sp(e){try{let t=Math.floor((new Date-new Date(e))/1e3);return t<60?`${t} \u79D2\u524D`:t<3600?`${Math.floor(t/60)} \u5206\u949F\u524D`:t<86400?`${Math.floor(t/3600)} \u5C0F\u65F6\u524D`:`${Math.floor(t/86400)} \u5929\u524D`}catch{return e}}function Dp(e){let t=new Date(e),n=t.getFullYear(),a=t.getMonth()+1,r=t.getDate(),o=t.getHours(),u=t.getMinutes(),i=t.getSeconds();return`${n}/${a}/${r} ${o}:${u}:${i}`}async function Lp(e){let n=Ke().INSTALL_FROM,a=hn(),r=await Ht("installedAt",""),o=await Ht("fakeUserId","");return{installFrom:n,version:a,installedAt:r,interfaceLang:e,deviceId:o}}var oy=1e5;function Fa(e){let{onParagraph:t,filterRule:n,id:a}=e;n=uy(n);let{stayOriginalSelectors:r,globalStyles:o,selectors:u,isTransformPreTagNewLine:i,lineBreakMaxTextCount:s,globalAttributes:c,isModifyImage:l,skipEditableCheck:f}=n,p={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},m=!1,g=null;function T(_){let{container:y,onFrame:E,onIgnoreElement:x,id:v}=_,C=document.createTreeWalker(y,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,k=>{let P=M(k);return P==NodeFilter.FILTER_ACCEPT?tn.mark(k,v,f):P==NodeFilter.FILTER_REJECT,P}),R=y;if(M(R)===NodeFilter.FILTER_REJECT)return;for(tn.mark(R,v,f);R;){if(u&&u.length>0){let{currentNode:k,isMatchedSelection:P}=w(C,R,u);if(k)R=k;else break;if(!P)continue}if(R.nodeType===Node.ELEMENT_NODE||R.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let k=R;if(k.nodeName==="IFRAME"){E&&E(k),b(),vl(p,!0),R=C.nextNode();continue}k.nodeType===Node.ELEMENT_NODE&&(o&&Al(k,o),c&&Sl(k,c));let P=Cl(k,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},k.immersiveTranslateComputedStyle||null);if(qt(k,r)&&!P){S(k);let B=null;for(;!(B=C.nextSibling())&&C.parentNode(););R=B;continue}let O=Xa(k);(!Mp(p,k)||P)&&(b(),k.childNodes.length>0&&D(p,k,k.immersiveTranslateComputedStyle||null)),O&&k.shadowRoot?.mode==="open"&&(P?E?.(k.shadowRoot):T({..._,container:k.shadowRoot})),k.nodeType===Node.ELEMENT_NODE&&k.nodeName==="PRE"&&i&&cy(k)}else if(R.nodeType===Node.TEXT_NODE)S(R);else throw new Error("should not be here");R=C.nextNode(),p.commonAncestorContainer&&R&&R.parentNode===p.commonAncestorContainer&&(p._currentStacks=[]),p.commonAncestorContainer&&R&&R.nodeType===Node.ELEMENT_NODE&&p._currentStacks.push(R)}function M(k){if(k.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Bn(k)){if(c){let B=Object.keys(c);if(B.length>0&&qt(k,B))for(let L of B){let U=c[L];if(k.matches(L)){let K=c[L],H=Object.keys(K);for(let V of H){let q=K[V];k.getAttribute(V)!==q&&(q===null?k.removeAttribute(V):k.setAttribute(V,q))}break}}}if(!_.force&&tn.isMarked(k,v)||kp(k,v)||Dl(k,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,stayOriginalSelectors:r})||k.nodeName==="IFRAME"&&!Mr(k))return NodeFilter.FILTER_REJECT;let P=k.getBoundingClientRect(),{width:O,height:j}=P;if(k.nodeType===Node.ELEMENT_NODE){let B=window.getComputedStyle(k);if(k.immersiveTranslateComputedStyle={display:B.display,whiteSpace:B.whiteSpace,left:P.left+"px",right:P.right+"px",top:P.top+"px",bottom:P.bottom+"px"},kl(k.immersiveTranslateComputedStyle))return x&&x(k),NodeFilter.FILTER_REJECT;let A=Cl(k,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},k.immersiveTranslateComputedStyle||null);if(qt(k,r)&&A)return NodeFilter.FILTER_REJECT}return k.nodeName==="IMG"&&(O>48&&j>48?k.immersiveTranslateComputedStyle={display:"block"}:O>0&&j>0&&l!==!1&&(k.setAttribute("width",O),k.setAttribute("height",j))),!k.childNodes||k.childNodes&&k.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!p.isPreWhitespace&&(O>0&&O<4||j>0&&j<4)&&(k.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(k.nodeType===Node.TEXT_NODE){let P=k.textContent?.trim();if(!P)return p.isPreWhitespace?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let O=k.parentNode;if(O.getBoundingClientRect){let{width:j,height:B}=O.getBoundingClientRect();if(j>0&&j<4||B>0&&B<4)return NodeFilter.FILTER_REJECT}return s>0&&P.length>=s&&wl(k,s),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}T(e),p&&p.commonAncestorContainer&&p.flatNodes.length>0&&b();function w(_,y,E){let x=y.immersiveTranslateComputedStyle||null;if(g){if(!g.contains(y))if(m=!1,y&&y.nodeType===Node.ELEMENT_NODE)if(Fi(y,E))m=!0,g=y,b(),D(p,g,x);else return m=!1,y=_.nextNode(),{currentNode:y,isMatchedSelection:m};else return m=!1,y=_.nextNode(),{currentNode:y,isMatchedSelection:m}}else if(y&&y.nodeType===Node.ELEMENT_NODE)if(Fi(y,E))m=!0,g=y,b(),D(p,g,x);else return m=!1,y=_.nextNode(),{currentNode:y,isMatchedSelection:m};else return m=!1,y=_.nextNode(),{currentNode:y,isMatchedSelection:m};return{currentNode:y,isMatchedSelection:!0}}function b(){let _=ly(p,a);_&&t&&t(_),vl(p)}function S(_){if(!Mp(p,_)){b(),vl(p);let y=_.parentNode;y&&D(p,y,y.computedStyle)}p.flatNodes.push(_)}function D(_,y,E){_.commonAncestorContainer=y;let x=N(E);_.isPreWhitespace=x}function N(_){return _&&_.whiteSpace&&_.whiteSpace.startsWith("pre")||_&&_.whiteSpace==="break-spaces"||!1}}function Mp(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Xa(t));let a=sy(e),r=!0;return!n&&!a&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?r=!0:e.commonAncestorContainer&&(r=!1,e._currentStacks=[])),r}function uy(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let a=n!=="iframe";return t?a&&n!=="pre":a}),e}function iy(e,t,n){if(t){for(let a of t.childNodes)if(a.contains(n))return a}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function Al(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let r of n){let o=t[r];if(e.matches(r)){let u=e.style.cssText||"";u&&(u=u.trim()),u&&!u.endsWith(";")&&(u+=";"),e.style.cssText=u+o;break}}}}function sy(e){return e&&e._currentStacks?e._currentStacks.some(t=>Xa(t)):!1}function ly(e,t){let{flatNodes:n,commonAncestorContainer:a}=e;if(a&&n.length>0){if(!n.map(p=>p.textContent?.trim()||"").join(""))return null;if(n.length===1)return{ctxId:t,stepState:1,commonAncestorContainer:n[0].parentNode,rootNodes:[n[0]],flatNodes:n,isPreWhitespace:e.isPreWhitespace,variables:{}};let o=dy(n,a);o||(o=a);let u=[];for(let p of n){let m=iy(e,o,p);m&&(u.includes(m)||u.push(m))}if(u.length<1)return null;let i=u[0],s=u[u.length-1],c=[],l=i,f=0;for(;l&&(c.push(l),l!==s);){if(f++,f>oy){z.warn("loop too many times for convert root nodes, break");break}l=l.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:n,commonAncestorContainer:o,variables:{},isPreWhitespace:e.isPreWhitespace}}else return null}function vl(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function kl(e){let t=e.top?parseInt(e.top):0,n=e.left?parseInt(e.left):0,a=e.right?parseInt(e.right):0,r=e.bottom?parseInt(e.bottom):0;return isNaN(t)&&(t=0),isNaN(n)&&(n=0),isNaN(a)&&(a=0),isNaN(r)&&(r=0),e.display==="none"||t<-1e3||n<-1e3||a<-1e3||r<-1e3}var tn={_marked_key:"immersive_translate_walked",isMarked(e,t){return V0(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Xa(e)))return ii(e,this._marked_key)},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Xa(e)))return pt(e,this._marked_key,t,!1,n)},markWalk(e,t,n){if(!e||e.nodeType!==Node.ELEMENT_NODE||this.isSkipMarkEle(e))return;let a=Dr(e,"markWalk")||"";return pt(e,"markWalk",a+","+t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Xa(e)):!1}};function cy(e){let n=e.innerHTML.replace(/\n\n/g,"
");e.innerHTML=Ne.sanitize(n)}function dy(e,t){if(!e.length)return null;let n=e.map(a=>{let r=new Set;for(;(a=a.parentNode)&&(r.add(a),a!==t););return r});for(let a of n[0])if((a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&n.every(r=>r.has(a)))return a;return null}function wl(e,t){let n=e.textContent||"";if(n.trim().length<=t)return;let o=[". ","? ","! ","\u3002","\uFF1F","\uFF01"].reduce((u,i)=>{let s=n.lastIndexOf(i,t);return s>u?s:u},-1);if(o>1){let u=n[o-1]||"",i=n[o-2]||"",s=n[o+1]||"";u==="."||s==="."||s===")"||i==="."&&u==="S"||i.toUpperCase()==="M"&&(u.toUpperCase()==="R"||u.toUpperCase()==="S")?o=-1:isNaN(Number(u))||(o=-1)}if(o===-1)n.length>t+20&&wl(e,t+20);else{let u=n.slice(o+1);o++,u.startsWith(" ")&&o++;let i=e.splitText(o),s=document.createElement("br");i.parentNode?.insertBefore(s,i),o+10)for(let a of n){let r=t[a],o=Object.keys(r),u=nm(e,[a]);for(let i of u)for(let s of o){let c=r[s];i.getAttribute(s)!==c&&(c===null?i.removeAttribute(s):i.setAttribute(s,c))}}}function Fp(e,t,n,a,r,o){let u=Object.keys(t);if(u.length>0)for(let i of u){let s=t[i],c=Object.keys(s),l=e.querySelector(i);if(l)for(let f of c){let p=s[f];if(f==="translate"&&p==="no"){let g=l.innerText||l.textContent||"";if(!g.trim()||gy(l,r,o)||!rm(g,n,a))continue}l.getAttribute(f)!==p&&(p===null?l.removeAttribute(f):l.setAttribute(f,p))}}}function Sl(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let r of n){let o=t[r];if(e.matches(r)){let u=t[r],i=Object.keys(u);for(let s of i){let c=u[s];e.getAttribute(s)!==c&&(c===null?e.removeAttribute(s):e.setAttribute(s,c))}break}}}}function Dl(e,t){return qt(e,t.excludeSelectors||[])?qt(e,t.selectors||[])?!1:!qt(e,t.stayOriginalSelectors||[]):!1}function Fi(e,t){if(t.length===0)return!1;let n=t.filter(a=>!a.endsWith("*")).map(a=>a+" *");return qt(e,t.concat(n))}function gy(e,t,n){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,r=>NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let r=a.currentNode;if(r.nodeType===Node.TEXT_NODE&&parent){let o=r.textContent||"";if(o.includes("Copyright"))continue;if(oi(o,t,n))return!0}}return!1}h();h();var _p=["*://*/*","*","*://*"],Rp="immersive-translate-wildcard-placeholder.com";function Ll(e,t){let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(u=>_p.includes(u)))return e;let a=new URL(e);a.hash="",a.search="";let r=a.href,o=a.hostname;if(n&&n.length>0){let u=n.find(i=>{let s=i;if(i===o)return!0;if(_p.includes(i))return!0;if(!i.includes("*")&&i.includes("://")){try{let c=new URL(i);return c.pathname==="/"&&!i.endsWith("/")?c.hostname===o:py(r,i)}catch{}return!1}else{let c,l=i;if(i.includes("://")){let w=i.split("://");c=w[0],c==="*"&&w.length>1&&(c="*",i="https://"+w[1])}else c="*",i="https://"+i;let f=i.replace(/\*/g,Rp),p;try{p=new URL(f)}catch{return z.debug("invalid match pattern",f,"raw match value:",l),!1}let m=p.hostname,g=p.pathname;g==="/"&&(l.replace("://","").includes("/")||(g="/*"));let T=my(c+":",Bp(m),Bp(g));if(T){let w=new URL(r);return w.port="",T.test(w.href)}else return!1}});if(u)return u}return null}function Bp(e){return e.replaceAll(Rp,"*")}function my(e,t,n){let a="^";return e==="*:"?a+="(http:|https:|file:)":a+=e,a+="//",t&&(e==="file:"||(t==="*"?a+="[^/]+?":(t.match(/^\*\./)&&(a+="[^/]*?",t=t.substring(2)),a+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?a+="(/.*)?":n.includes("*")?(a+=n.replace(/\*/g,".*?"),a+="/?"):a+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):a+="/?",a+="$",new RegExp(a)}function Vn(e,t){return Ll(e,t)!==null}function py(e,t){let n=new URL(e),a=new URL(t);return n.hostname===a.hostname&&n.pathname===a.pathname&&n.protocol===a.protocol&&n.port===a.port}h();h();var Ur="input is invalid type",Ml=typeof window=="object",_a=Ml?window:{};_a.JS_SHA256_NO_WINDOW&&(Ml=!1);var fy=!Ml&&typeof self=="object",hy=!_a.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;hy?_a=global:fy&&(_a=self);var eS=!_a.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,tS=typeof define=="function"&&define.amd,Zo=!_a.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",de="0123456789abcdef".split(""),by=[-2147483648,8388608,32768,128],Rn=[24,16,8,0],_i=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Bi=["hex","array","digest","arrayBuffer"],vt=[];(_a.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});Zo&&(_a.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var Ip=function(e,t){return function(n){return new wt(t,!0).update(n)[e]()}},Np=function(e){var t=Ip("hex",e);t.create=function(){return new wt(e)},t.update=function(r){return t.create().update(r)};for(var n=0;n>2]|=e[r]<>2]|=a<>2]|=(192|a>>6)<>2]|=(128|a&63)<=57344?(i[o>>2]|=(224|a>>12)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<>2]|=(240|a>>18)<>2]|=(128|a>>12&63)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<=64?(this.block=i[16],this.start=o-64,this.hash(),this.hashed=!0):this.start=o}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};wt.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=by[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};wt.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,o=this.h5,u=this.h6,i=this.h7,s=this.blocks,c,l,f,p,m,g,T,w,b,S,D;for(c=16;c<64;++c)m=s[c-15],l=(m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3,m=s[c-2],f=(m>>>17|m<<15)^(m>>>19|m<<13)^m>>>10,s[c]=s[c-16]+l+s[c-7]+f<<0;for(D=t&n,c=0;c<64;c+=4)this.first?(this.is224?(w=300032,m=s[0]-1413257819,i=m-150054599<<0,a=m+24177077<<0):(w=704751109,m=s[0]-210244248,i=m-1521486534<<0,a=m+143694565<<0),this.first=!1):(l=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),f=(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7),w=e&t,p=w^e&n^D,T=r&o^~r&u,m=i+f+T+_i[c]+s[c],g=l+p,i=a+m<<0,a=m+g<<0),l=(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10),f=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),b=a&e,p=b^a&t^w,T=i&r^~i&o,m=u+f+T+_i[c+1]+s[c+1],g=l+p,u=n+m<<0,n=m+g<<0,l=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),f=(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7),S=n&a,p=S^n&e^b,T=u&i^~u&r,m=o+f+T+_i[c+2]+s[c+2],g=l+p,o=t+m<<0,t=m+g<<0,l=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),f=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),D=t&n,p=D^t&a^S,T=o&u^~o&i,m=r+f+T+_i[c+3]+s[c+3],g=l+p,r=e+m<<0,e=m+g<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+a<<0,this.h4=this.h4+r<<0,this.h5=this.h5+o<<0,this.h6=this.h6+u<<0,this.h7=this.h7+i<<0};wt.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,o=this.h5,u=this.h6,i=this.h7,s=de[e>>28&15]+de[e>>24&15]+de[e>>20&15]+de[e>>16&15]+de[e>>12&15]+de[e>>8&15]+de[e>>4&15]+de[e&15]+de[t>>28&15]+de[t>>24&15]+de[t>>20&15]+de[t>>16&15]+de[t>>12&15]+de[t>>8&15]+de[t>>4&15]+de[t&15]+de[n>>28&15]+de[n>>24&15]+de[n>>20&15]+de[n>>16&15]+de[n>>12&15]+de[n>>8&15]+de[n>>4&15]+de[n&15]+de[a>>28&15]+de[a>>24&15]+de[a>>20&15]+de[a>>16&15]+de[a>>12&15]+de[a>>8&15]+de[a>>4&15]+de[a&15]+de[r>>28&15]+de[r>>24&15]+de[r>>20&15]+de[r>>16&15]+de[r>>12&15]+de[r>>8&15]+de[r>>4&15]+de[r&15]+de[o>>28&15]+de[o>>24&15]+de[o>>20&15]+de[o>>16&15]+de[o>>12&15]+de[o>>8&15]+de[o>>4&15]+de[o&15]+de[u>>28&15]+de[u>>24&15]+de[u>>20&15]+de[u>>16&15]+de[u>>12&15]+de[u>>8&15]+de[u>>4&15]+de[u&15];return this.is224||(s+=de[i>>28&15]+de[i>>24&15]+de[i>>20&15]+de[i>>16&15]+de[i>>12&15]+de[i>>8&15]+de[i>>4&15]+de[i&15]),s};wt.prototype.toString=wt.prototype.hex;wt.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,o=this.h5,u=this.h6,i=this.h7,s=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,a>>24&255,a>>16&255,a>>8&255,a&255,r>>24&255,r>>16&255,r>>8&255,r&255,o>>24&255,o>>16&255,o>>8&255,o&255,u>>24&255,u>>16&255,u>>8&255,u&255];return this.is224||s.push(i>>24&255,i>>16&255,i>>8&255,i&255),s};wt.prototype.array=wt.prototype.digest;wt.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function Ri(e,t,n){var a,r=typeof e;if(r==="string"){var o=[],u=e.length,i=0,s;for(a=0;a>6,o[i++]=128|s&63):s<55296||s>=57344?(o[i++]=224|s>>12,o[i++]=128|s>>6&63,o[i++]=128|s&63):(s=65536+((s&1023)<<10|e.charCodeAt(++a)&1023),o[i++]=240|s>>18,o[i++]=128|s>>12&63,o[i++]=128|s>>6&63,o[i++]=128|s&63);e=o}else if(r==="object"){if(e===null)throw new Error(Ur);if(Zo&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!Zo||!ArrayBuffer.isView(e)))throw new Error(Ur)}else throw new Error(Ur);e.length>64&&(e=new wt(t,!0).update(e).array());var c=[],l=[];for(a=0;a<64;++a){var f=e[a]||0;c[a]=92^f,l[a]=54^f}wt.call(this,t,n),this.update(l),this.oKeyPad=c,this.inner=!0,this.sharedMemory=n}Ri.prototype=new wt;Ri.prototype.finalize=function(){if(wt.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();wt.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),wt.prototype.finalize.call(this)}};var jr=Np();jr.sha256=jr;jr.sha224=Np(!0);jr.sha256.hmac=Up();jr.sha224.hmac=Up(!0);var jp=jr;var zp=jp.sha256;function In(e){return Promise.resolve(zp(e))}function Ii(e){return Array.from(new Uint8Array(e)).map(a=>a.toString(16).padStart(2,"0")).join("")}function Ba(e,t){let n=zp.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function Hp(e,t){let n=await Ba(e,t);return Ii(n)}async function Oi(e,t){let n=yy(t),a=await Ba(e,n);return Ii(a)}function yy(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}h();var Wp="auto",Ni="auto",qp="auto";function Kp(e){Wp=e}function xn(e){Ni=e}function Dt(){return Ni!=="auto"?Ni:qp!=="auto"?qp:Wp}function Ui(){return Ni}async function Lt(e){let{url:t,config:n,state:a}=e,r=new URL(t),o="auto",{translationParagraphLanguagePattern:u,translationService:i,translationServices:s,translationTheme:c,translationThemePatterns:l,translationUrlPattern:f,targetLanguage:p,sourceLanguageUrlPattern:m,immediateTranslationPattern:g}=n,T=zr(t,u),w=zr(t,g),b=i,S=Object.keys(s);for(let Y of S){let ce=s[Y];if(zr(t,ce)){b=Y;break}}let D=c,N=Object.keys(l);for(let Y of N){let ce=l[Y];if(ce&&zr(t,ce)){D=Y;break}}let _=zr(t,f),y=$p(t,f);y||(y=Vn(t,Qg)),y||(y=Vn(t,n.blockUrls));let E=$p(t,n.inputTranslationUrlPattern);E||(E=Vn(t,n.inputTranslationBlockUrls));let x=Vn(t,n.mutationBlockUrls),v=Object.keys(m),C={};for(let Y of v){let ce=m[Y];if(ce&&ce.matches)for(let fe of ce.matches)C[fe]=Y}let R=Object.keys(C),M=Ll(t,R);M&&(o=C[M]??"auto",C[M]&&C[M]!=="auto"&&xn(C[M]));let k=p||"zh-CN",P=r.hostname,O=await In(P),j=r.pathname+r.search+r.hash,B=await In(j),A=`https://${O}.com/${B}`,L=await Gn(),U=await Km(),K=n.translationStartMode;K==="dynamic"&&w&&(K="immediate");let H=b;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(H=n.inputTranslationService);let V=b;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(V=n.mouseHoverTranslationService);let q={targetLanguage:k,config:n,translationService:b,inputTranslationService:H,mouseHoverTranslationService:V,isTranslateUrl:_,sourceLanguage:o,mainFrame:document.body,isTranslateExcludeUrl:y,isMutationTranslationExcludeUrl:x,isInputTranslationExcludeUrl:E,rule:n.generalRule,url:t,encryptedUrl:A,state:a?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:K,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:T,cache:n.cache,translationTheme:D},a):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:K,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:T,cache:n.cache,translationTheme:D},localConfig:L},oe=await Xe.get(xt,null);oe&&(q.user=oe),q.state.translationArea==="body"&&(q.config.generalRule.excludeTags=q.config.generalRule.excludeTags.filter(Y=>!q.config.generalRule.bodyTranslateTags.includes(Y)),q.config.generalRule.additionalExcludeSelectors=q.config.generalRule.additionalExcludeSelectors.filter(Y=>Y!==".btn"));let Z=n.translationServices[q.translationService]||{};Z.immediateTranslationTextCount!==void 0&&xy(Z.immediateTranslationTextCount)&&Z.immediateTranslationTextCount>=0&&(q.state.immediateTranslationTextCount=Z.immediateTranslationTextCount),q.translationService==="deepl"&&(Z&&Z.authKey&&Z.authKey.startsWith("immersive_")||Z&&Z.provider==="pro"&&q.user?.token)&&Z.immediateTranslationTextCountForImmersiveDeepl!==void 0&&Z.immediateTranslationTextCountForImmersiveDeepl>=0&&(q.state.immediateTranslationTextCount=Z.immediateTranslationTextCountForImmersiveDeepl),Z&&Z.translationDebounce&&typeof Z.translationDebounce=="number"&&(q.state.translationDebounce=Z.translationDebounce);let J=U.immediateTranslationTextCount;n.immediateTranslationTextCount!==J&&(q.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let ye=n.rules,xe;globalThis.PDFViewerApplication?xe=ye.find(Y=>Y.isPdf):globalThis.immersiveTranslateEbookViewer?xe=ye.find(Y=>Y.isEbook):globalThis.immersiveTranslateEbookBuilder?xe=ye.find(Y=>Y.isEbookBuilder):xe=ye.find(Y=>zr(t,Y)),q.state.translationArea==="body"&&(q.rule.paragraphMinTextCount=1,q.rule.paragraphMinWordCount=1),xe&&xe.isEbookBuilder&&(q.state.translationStartMode="immediate");let ie=n.generalRule;if(xe&&(q.rule=Ti(ie,xe)),q.rule.selectors.length>0&&(q.rule.paragraphMinTextCount=2,q.rule.paragraphMinWordCount=1),q.state.translationArea==="body"&&q.rule.excludeTags&&(q.rule.excludeTags=q.rule.excludeTags.filter(Y=>!q.rule.bodyTranslateTags.includes(Y)&&!q.rule.forceTranslateTags.includes(Y))),q.rule.mainFrameSelector){let Y=document.querySelector(q.rule.mainFrameSelector);Y&&(q.mainFrame=Y)}return q}function zr(e,t){if(!t)return!1;let{matches:n,excludeMatches:a,selectorMatches:r,excludeSelectorMatches:o}=t;return a&&a.length>0&&Vn(e,a)?!1:n&&n.length>0&&Vn(e,n)?!0:o&&o.length>0&&ui(o)?!1:!!(r&&r.length>0&&ui(r))}function $p(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:a}=t;return!!(n&&n.length>0&&Vn(e,n)||a&&a.length>0&&ui(a))}function xy(e){return typeof e=="number"}h();h();async function Gp(){let e="auto",t=[Ja(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await it({text:Sr(document.body),pageLangs:t})),e}h();h();h();function Hr(e,t,n=[],a){let r=["notranslate"];return a&&r.push($g),e&&(r.push(`${X}-target-translation-theme-${e}`),t?r.push(`${z0}-theme-${e}`):r.push(`${j0}-theme-${e}`)),n.length>0&&r.push(...n),t?r.push(z0):r.push(j0),r}function qr(e){let t=["notranslate",Wg];return e&&t.push(`${X}-target-translation-theme-${e}-inner`),t}function Vp(e,t,n){let{rule:a,state:r}=n,{translationTheme:o}=r,{variables:u,isVertical:i}=e;u=u||[];let{text:s}=t,{wrapperPrefix:c,wrapperSuffix:l}=a,f=Lr(n),p="afterend",m=f[0],g=f[1],T=`${m}(\\d+)${g}`,w=new RegExp(T,"g"),b=Ne.sanitize(s);u.length>0&&(b=b.replace(w,_=>{let y=b.indexOf(_),E=b[y-1]===" ",x=b[y+_.length]===" ",v=_.slice(f[0].length,-f[1].length),C=Number(v);if(isNaN(C))return _;let R=u[Number(C)];if(R&&R.type==="element"){let M=R.value.outerHTML;return E||(M=" "+M),x||(M=M+" "),M}else z.error("variable type not supported",R,_);return _}));let S=Hr(o,e.inline,a.translationClasses||[],e.preWhitespace);i&&S.push(Kg);let D=qr(o),N="";return a.translationBlockStyle&&(N=`style="${a.translationBlockStyle}"`),b=`<${n.rule.targetWrapperTag} ${N} class="${S.join(" ")}" ${$n}="1"><${a.targetWrapperTag} class="${D.join(" ")}" ${$n}="1">${b}`,e.inline||(c==="smart"?b=`
${b}`:b=`${c}${b}`),e.inline&&(c!=="smart"?b=`${c}${b}`:b=`<${a.targetWrapperTag} class="notranslate" ${$n}="1"> ${b}`),l==="smart"?b=`${b}`:b=`${b}${l}`,{html:b,position:p}}function ji(e,t){let n=null,{stayOriginalSelectors:a,delimiters:r,isPreWhitespace:o}=t,u=[],i={};for(let s=0;s2&&(w=`<${r[2]}${T}>`),i[T]=c,u.push({text:w,type:"variable"})}else u.push({text:c.textContent||"",type:"text"});else{let g=c.textContent||"";f&&(g=Pa(Pl(c))),u.push({text:g,type:"text"})}else if(c.nodeType===Node.ELEMENT_NODE)if(c&&qt(c,a)){let T=Object.keys(i).length,w=`${r[0]}${T}${r[1]}`;r.length>2&&(w=`<${r[2]}${T}>`),i[T]=c;let b=Fl(u).endsWith(" ")?" ":"",S=Pa(c.innerText||c.textContent),D=Pa(c.nextSibling).startsWith(" ")?" ":"",N=Jo(b+S+D),_=N[0]+w+N[1];if(b===" ")_=_.trimStart();else if(!_.startsWith(" ")){let y=Jo(c.previousSibling)[1];y===""&&(y=" "),_=y+_}u.push({text:_,type:"variable"})}else{let g=Fl(u).endsWith(" ")?" ":"",T=Pa(c.innerText||c.textContent);f&&(T=Pa(Pl(c)));let w=Pa(c.nextSibling).startsWith(" ")?" ":"",b=Jo(g+T+w),S=b[0]+(c.innerText?.trim()||c.textContent?.trim()||"")+b[1];if(g===" ")S=S.trimStart();else{let D=Jo(c.previousSibling)[1];D===""&&(c.nodeName==="A"||c.nodeName==="CODE")&&(D=" "),S=D+S}u.push({text:S,type:"text"})}else{let g=Fl(u).endsWith(" ")?" ":"",T="";c.textContent&&(T=Pa(Pl(c))),g===" "&&(T=T.trimStart()),u.push({text:T,type:"text"})}}if(u&&u.length>0){let s="";for(let c=0;c0&&(f=u[c-1].text),c2){let l=c[2];return Ty({delimiterTag:l,targetText:e.targetText,inline:r,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:a}).html}else{let l=Vp(s,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return l.html}}function Pl(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function Ty(e){let{delimiterTag:t,inline:n,translationClasses:a,targetWrapperTag:r,wrapperPrefix:o,variables:u,preWhitespace:i,wrapperSuffix:s,translationTheme:c,translationBlockStyle:l}=e;u=u||[];let f=e.targetText;f=Ne.sanitize(f);let p=f,m=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),g=new RegExp(`<${t}(\\d+)>`);u.length>0&&(p=p.replace(m,S=>{let D=p.indexOf(S),N=p[D-1]===" ",_=p[D+S.length]===" ",y=S.match(g);if(!y)return S;let E=y[1],x=Number(E);if(isNaN(x))return S;let v=u[Number(x)];if(v&&v.type==="element"){let C=v.value.outerHTML;return N||(C=" "+C),_||(C=C+" "),C}else if(v&&v.type==="text"){let C=v.value;return N||(C=" "+C),_||(C=C+" "),C}else z.error("variable type not supported",v,S);return S}));let T=Hr(c,n,a||[],i),w=qr(c),b="";return l&&(b=`style="${l}"`),p=`<${r} ${b} class="${T.join(" ")}" ${$n}="1"><${r} class="${w.join(" ")}" ${$n}="1">${p}`,n||(o==="smart"?p=`
${p}`:p=`${o}${p}`),n&&(o!=="smart"?p=`${o}${p}`:p=`<${r} class="notranslate" ${$n}="1"> ${p}`),s==="smart"?p=`${p}`:p=`${p}${s}`,{html:p,position:"afterend"}}function Fl(e){let t=e[e.length-1];return t?t.text:""}function Tn(e){let t=e.rule.selectors,n=e.rule.excludeTags,a=e.rule.additionalExcludeTags,r=e.rule.excludeSelectors,o=e.rule.additionalExcludeSelectors;return e.state.translationArea==="body"&&(t=[],r=[]),{globalStyles:e.rule.globalStyles,globalAttributes:e.rule.globalAttributes,selectors:t,skipEditableCheck:e.rule.skipEditableCheck,lineBreakMaxTextCount:e.rule.lineBreakMaxTextCount,isTransformPreTagNewLine:e.rule.isTransformPreTagNewLine,excludeSelectors:n.concat(a).map(i=>i.toLowerCase()).filter(i=>i!=="code"&&i!=="img").concat(r).concat(o),blockSelectors:e.rule.allBlockTags.map(i=>i.toLowerCase()).concat(e.rule.extraBlockSelectors),extraBlockSelectors:e.rule.extraBlockSelectors,extraInlineSelectors:e.rule.extraInlineSelectors.concat(e.rule.additionalInlineSelectors),stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(i=>i.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)}}var Ey={sanitize:e=>e};function Hi(e,t){e.interruptEffectDOM||(e.walkContainer({id:e.id,container:t,filterRule:Tn(e.ctx),onParagraph:Xo.bind(null,e),onFrame:n=>{Bl(e,n,!0)},onIgnoreElement:n=>{e.ignoreResizeObserver?.observe(n)}}),Cr&&pt(t,"consumeContainer",e.id))}function Bl(e,t,n){try{if(e.injectCssToDocument(t,e.ctx),t instanceof HTMLIFrameElement){if(!Mr(t))return;z.debug("onFrame fragment",t);let a=t.contentWindow?.document.body;a&&(Kr(a,e,n),e.dynamicContainerObserver?.observe(a,{childList:!0,subtree:!0}))}else z.debug("onFrame shadowRoot",t.host),Kr(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0})}catch{}}function Kr(e,t,n=!0){let{globalStyles:a,globalAttributes:r}=Tn(t.ctx),o=0;if(s(t,e,n))return;if(Bn(e)&&i(e)){u(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,l=>(Bn(l)&&(a&&Al(l,a),r&&Sl(l,r)),s(t,l,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(tn.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode();){tn.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let l=c.currentNode;if(i(l))for(u(l);;){if(c.nextSibling()){let f=c.currentNode;if(tn.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),i(f)){u(f);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){u(e);return}return t.observeContainers;function u(c){tn.clearMark(c),o++,t.immediateTranslateCapacity>=0?Hi(t,c):(Cr&&pt(c,"observeContainer",t.id),t.containerVisibleObserver?.observe(c))}function i(c){let l=c.nodeName.toLowerCase();if(c.shadowRoot)return Bl(t,c.shadowRoot,n),!1;if(l==="iframe")return Bl(t,c,n),!1;if(["script","#document-fragment","img"].includes(l))return!1;let f=t.containerRule;if(f.selectors&&f.selectors?.length>0)return Fi(c,f.selectors);if(f.pageHeight){let p=c.scrollHeight;if(p>0&&p0)return!0}return!1}function s(c,l,f){if(l.nodeName.toLowerCase()=="script")return l.childNodes.length==0||l.childNodes.length==1&&l.childNodes[0].nodeType==Node.TEXT_NODE;if(l.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(l.nodeType!==Node.ELEMENT_NODE||f&&tn.isMarked(l,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&l.nodeName==="PRE")return!1;let m=Tn(c.ctx);return!!Dl(l,{excludeSelectors:m.excludeSelectors,selectors:m.selectors,stayOriginalSelectors:m.stayOriginalSelectors})}}function Rl(e,t){if(!e.targetNodes)return;let n=e.state||"original",a=e.commonAncestorContainer;if(!tn.isMarked(a,e.ctxId))return;let r=a.contains(e.rootNodes[0]),o=a.contains(e.targetNodes[0]);if(r&&o)n="dual";else if(r)n="original";else if(o)n="translation";else return;if(t!=n){e.state=t;try{if(n=="dual"&&t=="translation"&&(zi(e.rootNodes),Qp(e.commonAncestorContainer)),n=="original"&&t=="translation"){let u=_l(e.rootNodes);if(zi(e.rootNodes),Jp(u))return;Wr(u,a,e.targetNodes||[]),Qp(e.commonAncestorContainer)}if(n=="translation"&&t=="dual"){let u=e.targetNodes[0];Wr(u,a,e.rootNodes||[]),Zp(e.commonAncestorContainer)}if(n=="original"&&t=="dual"){let u=_l(e.rootNodes);if(Jp(u))return;Wr(u,a,e.targetNodes||[]),Zp(e.commonAncestorContainer)}if(n=="translation"&&t=="original"){let u=_l(e.targetNodes);zi(e.targetNodes),Wr(u,a,e.rootNodes||[])}n=="dual"&&t=="original"&&zi(e.targetNodes)}catch(u){z.error(u)}}}function Jp(e){return!e||!Bn(e)?!1:e.classList.contains(un)}function Qp(e){if(!Bn(e))return;e.querySelectorAll("font[class*=immersive-translate-target-translation]").forEach(a=>{pt(a,"immersiveTranslateClassBak",a.className),a.className="notranslate immersive-translate-target-dual"});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.add("immersive-translate-state-dual")}function Zp(e){if(!Bn(e))return;e.querySelectorAll("font[class*=immersive-translate-target-dual]").forEach(a=>{let r=Dr(a,"immersiveTranslateClassBak");ii(a,"immersiveTranslateClassBak"),a.className=r});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.remove("immersive-translate-state-dual")}function _l(e){return e?e[e.length-1].nextSibling:null}function zi(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function Wr(e,t,n){let a=e;t&&(a?n.forEach(r=>{a.parentNode?.insertBefore(r,a)}):n.forEach(r=>{t.appendChild(r)}))}var Cy=Ft(Ol,300);async function Xo(e,t,n=!1){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||vy(t.rootNodes)||t.stepState>=2)return;t.stepState=2,Cr&&pt(a,"onParseParagraph",e.id);let{ctx:r}=e,{rule:o}=r,u=Lr(r),i=ji(t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:u,stayOriginalSelectors:r.rule.stayOriginalTags.concat(r.rule.stayOriginalTags).map(c=>c.toLowerCase()).concat(r.rule.stayOriginalSelectors).concat(r.rule.additionalStayOriginalSelectors)});if(!i)return;t.variables=i?.variables||{},t.text=i?.text;let s=await Nl(t,{excludeLanguages:r?.config?.translationLanguagePattern?.excludeMatches||[],targetLanguage:r.targetLanguage,noTranslateRegexp:r.rule.noTranslateRegexp,delimiters:Mi(r.config.translationServices[r.translationService]?.placeholderDelimiters),minTextCount:n||r.state.translationArea==="body"?2:o.paragraphMinTextCount,minWordCount:n||r.state.translationArea==="body"?1:o.paragraphMinWordCount,isDetectParagraphLanguage:r.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:r.rule.ignoreZhCNandZhTW});if(s){if(z.debug("on paragraph",s.text,s),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(s))return;a.paragraphs.push(s),e.immediateTranslateCapacity>0||n?(wy(e,t.text),Il(e,t)):(Cr&&pt(a,"observeParagraph",e.id),e.observeParagraphs.push(s),e.paragraphVisibleObserver?.observe(a))}return s}function vy(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Bn(t)&&t.classList.contains(un):!1}function wy(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function Il(e,t){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let n=e.autoIncreaseParagraphId++;t.id=n.toString(),e.paragraphEntities[n]=t,e.paragraphQueue.push(n.toString()),Cr&&pt(t.commonAncestorContainer,"consumeParagraph",e.id),Cy.call(e,e.ctx)}async function Ol(e){if(this.interruptEffectDOM)return;let t=this.paragraphQueue;this.paragraphQueue=[];let n=[];for(let a=0;a0)try{await Ra(a,t,(r,o,u)=>{let i=u.id,s=Ay(e,i.toString());s&&ky.call(null,r,o,u,s,t,n)})}catch(r){z.error("translateCurrentQueue error",r);return}}function Ay(e,t){return e.find(n=>n.id===t)}function ky(e,t,n,a,r,o){let u=!1,i=a;if(Nr(i.commonAncestorContainer,n.id)?.remove(),i&&(e||!t)){e||(z.error("translate error",n,e,t),e=new Error("no response from server"));let{rule:s}=r,c=n.id,l=document.createElement(s.targetWrapperTag);pt(l,Ug,c.toString()),l.classList.add("notranslate",un,un+"-error"),l.setAttribute("translate","no"),l.setAttribute("lang",r.targetLanguage);let f=a.rootNodes[a.rootNodes.length-1].nextSibling;Wr(f,a.commonAncestorContainer,[l]),Sy(r,e);let p=e.message.replaceAll(` -`,"");if(p=p.replaceAll('"',"""),i&&(i.error=new Error(p)),l){let m=oa(Qt,"retryAllParagraphs",r.config.interfaceLanguage,"zh-CN"),g=oa(Qt,"errorTooltipTitle",r.config.interfaceLanguage,"zh-CN"),T=`<${s.targetWrapperTag} class="${X}-error notranslate"><${s.targetWrapperTag} class="${X}-error-wrapper">\u{1F504}  \u2753`;l.innerHTML=Ne.sanitize(T)}}else if(a){if(i.error=void 0,a.targetText=t?.text||"",!(a.text?.toLocaleLowerCase()==a.targetText?.toLocaleLowerCase())){let c=Yp(a,r),l=document.createElement(r.rule.targetWrapperTag);l.classList.add("notranslate",un),l.setAttribute("lang",r.targetLanguage),l.setAttribute($n,"1");let f=Ey.sanitize(c);l.innerHTML=f,a.targetNodes=[l],Rl(a,o)}u=!0}else z.error("paragraph not found",n.id);document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:u}})}))}async function Nl(e,t){let{text:n}=e,a=await it({text:n||"",minLength:15,pageLangs:[Dt(),"en"]}),{targetLanguage:r}=t;if(!Ap({text:n||"",delimiters:t.delimiters,minWordCount:t.minWordCount,minTextCount:t.minTextCount,noTranslateRegexp:t.noTranslateRegexp}))return null;let u=t.excludeLanguages||[],i=Ui();t.isDetectParagraphLanguage&&(i="auto");let s=Dt(),c=a;c==="auto"&&!t.isDetectParagraphLanguage&&(c=s),e.languageByLocal=c,e.languageByClient=i;let l=i!=="auto"?i:c;return ka(l,r,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW})||u.length>0&&u.some(m=>ka(l,m,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW}))?null:e}function Sy(e,t){if(t.message.startsWith("ProQuota:")){t.message=t.message.replace("ProQuota:","");let n=t.message;try{n=JSON.parse(t.message).error}catch(o){z.error(o)}t.message=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${t.message} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`;let a=e.translationService,r=a=="deepl"?"OpenAI":"Deepl";e.translationService=="openai"?a="OpenAI":e.translationService=="deepl"&&(a="Deepl"),document.dispatchEvent(new CustomEvent(Yu,{detail:{type:"ProQuotaExceeded",subscriptionType:e.user?.subscription?.subscriptionType,translationService:a,anotherService:r,message:n}}))}}h();var Dy=[];function Xp(e){Dy.push(e)}h();function e3(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(a){a.length>0&&(a[0].target.text.includes(Xu)||Ul(e).catch(o=>{z.error("translateTitle error:",o.name,o.message,o.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var Wi="";async function Ul(e){let t=document.title;if(!t||t.includes(Xu))return;Wi!==t&&(Wi=t);let n=await it({text:t,pageLangs:[Dt(),"en"]});if(!Pi(e,n))try{let a=await ca({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n},e);a&&a.text&&(document.title=Wi+Xu+a.text)}catch(a){throw a}}function t3(e){e.rule.isTranslateTitle&&(document.title=Wi)}h();var jl="Original";function tt(){return jl}function Wt(e){jl=e,n3(jl)}h();var zl;function a3(e){let t=e.ctx.rule.aiRule;if(z.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=Tn(e.ctx),a=n.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);n.excludeSelectors.splice(a,1);let r,o;document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(p=>{p.translated=!0,eu(e,p,n)});let u=t.streamingDelayTime||100;zl=new MutationObserver(p=>{p.forEach(function(m){if(Bn(m.target)&&!s(m)&&(l(m.target),m.addedNodes&&m.addedNodes.length&&m.addedNodes.forEach(g=>{l(g)}),!c(m)&&i())){let g=m.target===o;if(t.streamingDeepChild&&!g&&(g=m.target.parentNode===o),!g)return;m.addedNodes.forEach(T=>{let w=T.previousSibling;!w||w.translated||(w.translated=!0,setTimeout(()=>{w.childNodes[0]?.translated||(z.debug("\u7FFB\u8BD1\u4E0A\u4E00\u4E2A\u6BB5\u843D",w),eu(e,w,n))},u))})}})}),zl.observe(document.body,{attributes:!0,childList:!0,subtree:!0});function i(){return!!(t.streamingChange&&t.streamingSelector&&r||t.streamingChange&&t.messageContainerSelector&&t.messageStreamEndSelector&&o&&!o.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector))}function s(p){return t.streamingSelector&&p.target===r&&p.type==="attributes"&&!_n(p.target,[t.streamingSelector])?(f(),!0):t.streamingSelector&&p.removedNodes.length>0&&o&&o!=r?(p.removedNodes?.forEach(m=>{m===r&&f()}),!0):t.messageContainerSelector&&t.messageStreamEndSelector&&o&&o.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector)?(f(),!0):!1}function c(p){if(t.streamingSelector&&p.target.querySelector(t.messageWrapperSelector||"")&&!r){let m=p.target;return m.translated||(m.translated=!0,setTimeout(()=>{r||m.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(g=>{g.translated||(g.translated=!0,eu(e,g,n))})},u)),!0}else if(t.messageContainerSelector&&p.target.querySelector(t.messageContainerSelector||"")){let m=p.target;if(m.translated)return!0;m.translated=!0,setTimeout(()=>{m.querySelectorAll(t.messageContainerSelector).forEach(g=>{t.messageStreamEndSelector&&!g.querySelector(t.messageStreamEndSelector)||g.translated||(g.translated=!0,eu(e,g,n))})},u)}return!1}function l(p){t.streamingSelector&&_n(p,[t.streamingSelector])&&(r=p,z.debug("streamingNode",r)),_n(p,[t.messageWrapperSelector])&&(o=p,z.debug("markdownNode",o))}function f(){o&&setTimeout(()=>{o.childNodes.forEach(p=>p.translated=!1),z.debug("\u7ED3\u675F\u7FFB\u8BD1\u5168\u90E8",o),eu(e,o,n),r=void 0,o=null},u)}}function eu(e,t,n){Fa({id:e.id,container:t,filterRule:n,force:!0,onParagraph:a=>{Xo(e,a,!0)},onFrame:()=>{},onIgnoreElement:()=>{}})}function r3(){zl?.disconnect()}var re=null;function $i(){return re||null}function $r(e){Ly(e),Iy(e),_y(e),Ry(e),wa(document,e),Wt("Translated"),By(re),Fy(re),Xp(da),My(re)}function Ly(e){e.state.translationArea==="main"&&e.rule.initialSelectorGlobalAttributes&&Fp(document.body,e.rule.initialSelectorGlobalAttributes,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph)}function My(e){a3(e)}function Py(){r3()}function Fy(e){e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0});let t=[];e.ctx.rule.mainFrameSelector&&(t=[...document.querySelectorAll(e.ctx.rule.mainFrameSelector||"")]),t.length<=0&&(t=[document.body]),t.forEach(n=>{Kr(n,e)})}async function _y(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=Date.now(),a=new URL(e.url).hostname,r=e.localConfig.tempTranslationUrlMatches||[],o=r.findIndex(i=>i.match===a&&i.expiredAt>t),u=!1;o>-1||(r.push({match:a,expiredAt:t+e.config.tempTranslateDomainMinutes*60*1e3}),u=!0),u&&await yn({...e.localConfig,tempTranslationUrlMatches:[...r]})}}function By(e){e.ctx.rule.isTranslateTitle&&(Ul(e.ctx),e.titleDynamicObserver=e3(e.ctx))}function Ry(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function Iy(e){let t=Fn();re&&(t=re.id);let n=Tn(e);re=re||{},re.ctx=e,re.id=t,re.paragraphQueue=re.paragraphQueue||[],re.rule={excludeSelectors:n.excludeSelectors||[],selectors:n.selectors||[]},re.currentUrl=window.location.href,re.containerRule={pageHeight:screen.availHeight,selectors:n.selectors},re.translationService=e.translationService,re.paragraphEntities=re.paragraphEntities||{},re.autoIncreaseParagraphId=re.autoIncreaseParagraphId||1,re.interruptEffectDOM=!1,re.urlChangeDelay=e.rule.urlChangeDelay,re.immediateTranslateCapacity=e.state.immediateTranslationTextCount,re.observeContainers=re.observeContainers||[],re.observeParagraphs=re.observeParagraphs||[],re.dynamicContainerObserver=re.dynamicContainerObserver||zy(re),re.ignoreResizeObserver=re.ignoreResizeObserver||Hy(re),re.containerVisibleObserver=re.containerVisibleObserver||Ny(re),re.paragraphVisibleObserver=re.paragraphVisibleObserver||Uy(re),re.injectCssToDocument=Ki,re.walkContainer=Fa,re.translateState=e.state.translationMode||e.config.translationMode||"dual",re.allInlineWindows=[window],window.onerror=Oy(re,e),window.immersiveTranslateSwitchTranslateState=ql.bind(re)}function u3(e,t){t.getRootNode()instanceof ShadowRoot?Ki(t.getRootNode(),e):Ki(t.ownerDocument,e),Hl(e)}function Hl(e){if(re)return;re={},re.ctx=e,re.id=Fn(),re.paragraphQueue=[],re.injectCssToDocument=Ki;let t=Tn(e);re.rule={excludeSelectors:t.excludeSelectors,selectors:t.selectors||[]},re.translationService=e.mouseHoverTranslationService,re.currentUrl=window.location.href,re.paragraphEntities={},re.autoIncreaseParagraphId=1,re.interruptEffectDOM=!1,re.urlChangeDelay=e.rule.urlChangeDelay,re.translateState=e.config.translationMode||"dual",re.observeContainers=[],re.observeParagraphs=[],re.allInlineWindows=[window],window.switchTranslateState=ql.bind(re)}function da(e=!0){re&&(Wt("Original"),Py(),re.interruptEffectDOM=!0,re.ignoreResizeObserver?.disconnect(),re.dynamicContainerObserver?.disconnect(),re.containerVisibleObserver?.disconnect(),re.paragraphVisibleObserver?.disconnect(),re.titleDynamicObserver?.disconnect(),t3(re.ctx),Cp(),vp(),e&&ql.call(re,"original"),Object.values(re.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),re=null)}function Oy(e,t){e.interruptEffectDOM=!1;let n;return function(a){let r=a.message,o=!1;return r?.indexOf("Minified React error")>=0&&(o=!0),o&&(clearTimeout(n),da(),n=setTimeout(()=>{$r(t)},e.urlChangeDelay||2e3)),!0}}function Ny(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{a.intersectionRatio>0&&(Hi(e,a.target),n.unobserve(a.target))})})}function Uy(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{if(a.intersectionRatio>0){let r=a.target;(r.paragraphs||[]).forEach(u=>{Il(e,u)}),n.unobserve(r)}})})}var o3;function jy(e){if(e.urlChangeDelay<=0)return!1;let n=(window.location.href||"").split("#")[0];return e.currentUrl.split("#")[0]!=n?(clearTimeout(o3),e.translateState=="original"?!1:(da(e.urlChangeDelay>20),o3=setTimeout(()=>{let r=e.ctx;$r(r)},e.urlChangeDelay),!0)):!1}function zy(e){return new MutationObserver(t=>{if(!jy(e)&&!e.interruptEffectDOM)for(let n of t){let a=e.ctx.rule.mutationObserverLimitTargetSelectors;if(a.length>0&&!_n(n.target,a))return;if((n.addedNodes||[]).length<=0||n.target.nodeType!==Node.ELEMENT_NODE||!tn.isSkipMarkEle(n.target)&&!tn.isMarked(n.target,e.id))continue;let o=(n.target?.paragraphs||[]).reduce((u,i)=>{let s=i.rootNodes||[],c=i.targetNodes||[];return[...u,...s,...c]},[]);if(n.addedNodes.length>0&&n.addedNodes.length===n.target.childNodes.length&&_n(n.target,e.ctx.rule.mutationObserverContainerSelectors)){tn.clearMark(n.target),n.target.paragraphs=void 0,Hi(e,n.target);return}n.addedNodes.forEach((u,i)=>{u.nodeType===Node.ELEMENT_NODE&&(o.includes(u)||qt(u,e.ctx.rule.mutationExcludeSelectors)||Kr(u,e))})}})}function Hy(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let a of t){if(a.target.nodeType!==Node.ELEMENT_NODE)return;let r=a.target,o=globalThis.getComputedStyle(r);kl(o)||(n.unobserve(a.target),Kr(r,e))}})}function ql(e){this.translateState=e,Object.values(this.paragraphEntities).forEach(t=>{Rl(t,e)}),e=="original"&&document.querySelectorAll(`.${un}`).forEach(t=>t.remove())}function Ki(e,t){if(e instanceof HTMLIFrameElement){wa(e.contentDocument,t);return}wa(e,t)}async function i3(e){let t=mt(),n="auto";if(me()){let a="";e.rule.isEbook||e.rule.isEbookBuilder?(a=Y0(e.mainFrame),n=await it({text:a,pageLangs:["en"]})):(a=Sr(e.mainFrame).slice(0,1e3),n=await it({text:a,pageLangs:[Ja(),"en"]}))}else if(t)n=await it({text:Sr(e.mainFrame).slice(0,1e3),pageLangs:[Ja(),"en"]});else if(e.rule.isEbook||e.rule.isEbookBuilder){let a="";a=Y0(e.mainFrame),n=await it({text:a,pageLangs:["en"]})}else n=await l3();return n==="auto"&&(n=await Gp()),Kp(n),n}async function s3(){if(!re)return;document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=re.paragraphEntities,t=Object.keys(e);for(let n of t){let a=e[n];if(a.error){re.paragraphQueue.push(n);let o=a.commonAncestorContainer.querySelector(`[${Qu}='${n}']`);o&&o.remove()}}Ol.call(re,re.ctx)}h();h();var c3={"zh-CN":{"languages.en":"\u82F1\u8BED","languages.ja":"\u65E5\u8BED","languages.ko":"\u97E9\u8BED","languages.es":"\u897F\u73ED\u7259\u8BED","languages.fr":"\u6CD5\u8BED","languages.de":"\u5FB7\u8BED","languages.it":"\u610F\u5927\u5229\u8BED","languages.pt":"\u8461\u8404\u7259\u8BED","languages.ru":"\u4FC4\u8BED","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"},"zh-TW":{"languages.en":"\u82F1\u8A9E","languages.ja":"\u65E5\u8A9E","languages.ko":"\u97D3\u8A9E","languages.es":"\u897F\u73ED\u7259\u8A9E","languages.fr":"\u6CD5\u8A9E","languages.de":"\u5FB7\u8A9E","languages.it":"\u610F\u5927\u5229\u8A9E","languages.pt":"\u8461\u8404\u7259\u8A9E","languages.ru":"\u4FC4\u8A9E","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"}},d3={...Qt,"zh-CN":{...c3["zh-CN"],...Qt["zh-CN"]},"zh-TW":{...c3["zh-TW"],...Qt["zh-TW"]}},Gr=d3;function Ia(e,t,n){return oa(d3,e,t,ei,n)}var g3=()=>sn.filter(e=>e!=="auto"),Mt=(e,t,n,a)=>{let r=Gg[e]||e,o=Vg[e],u=Yg[e],i={"zh-CN":o,"zh-TW":u,en:r};if(n)return i[e]?i[e]:r;if(i[t]){let s=i[t];return a||e==="auto"||e==="placeholder"?s:`${s} (${r})`}else return r};h();h();function Vr(e){Yr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(a=>{z.error("send content message request failed",e,a)}),document.querySelectorAll("iframe").forEach(a=>{a.contentWindow&&a.contentWindow.postMessage({author:Vu,payload:e},"*")});let n=new CustomEvent(Ta,{detail:e});globalThis.document.dispatchEvent(n)}function Wl(e){let t=e.shortcuts||{},a=Object.keys(t).reduce((o,u)=>(o[t[u]]=u,o),{}),r=Object.keys(a);for(let o of r){let u=o.replace(/MacCtrl/ig,"Ctrl");u&&Ue(u,i=>{i.preventDefault(),Vr({method:a[o],data:{trigger:"shortcut"}})})}}h();h();var Pt=class{options;strictTicks=[];constructor(t){this.options=t,this.setOptions(t)}setOptions(t){t&&(t.interval!==void 0&&(this.options.interval=Number(t.interval)),t.limit!==void 0&&(this.options.limit=Number(t.limit)))}wait(){return new Promise((t,n)=>{setTimeout(t,this.getDelay())})}getDelay(){let t=this.strictTicks,n=this.options.limit,a=this.options.interval,r=Date.now();if(t.length=o?(t.push(r),0):(t.push(o),o-r)}};var qy=new Pt({limit:7,interval:1250}),Wy={tencent:new Pt({limit:3,interval:1350}),baidu:new Pt({limit:1,interval:1550}),strict:new Pt({limit:1,interval:1050}),d:new Pt({limit:1,interval:1050}),youdao:new Pt({limit:5,interval:1050}),you:new Pt({limit:5,interval:1050}),cai:new Pt({limit:5,interval:1050}),google:new Pt({limit:10,interval:1050}),deepl:new Pt({limit:10,interval:1050}),transmart:new Pt({limit:30,interval:1050}),papago:new Pt({limit:3,interval:1150}),openai:new Pt({limit:10,interval:1300}),chatgpt:new Pt({limit:1,interval:1350})};function tu(e){return Wy[e]||qy}async function m3(e){if(mt()){let n=Li();if(n)try{return(await n.ask("getRateLimitDelay",{key:e})).value}catch(a){return z.error("can not comunicate with root frame, use strict limiter",a),tu("strict").getDelay()}else return tu("strict").getDelay()}else return tu(e).getDelay()}async function p3(e,t){if(!mt()){let a=tu(e);t&&a.setOptions(t)}}async function f3(e){let t=e.key;return{value:tu(t).getDelay()}}h();var Gi=new Map;async function Kl(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=Da(e.body)),Gi.has(t))return Gi.get(t);let n=se(e);Gi.set(t,n);try{return await n}catch(a){throw a}finally{setTimeout(()=>{Gi.delete(t)},3e4)}}async function h3(e){return Kl(e)}async function b3(e){if(mt()){let n=Li();if(n)try{return await n.ask("throttleRequest",e)}catch(a){throw z.error("can not comunicate with root frame, use strict limiter",a),a}else return Kl(e)}else return Kl(e)}h();h();h();h();function y3(e,t,n){let a=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),a=t!=="auto"?n[t].matches:[];let r={},o=Object.keys(n);for(let c of o){let f=n[c].matches;for(let p of f)r[p]||(r[p]=[]),r[p].push(c)}let u=r[e];if(u&&u.length>0)for(let c of u)n[c].matches.indexOf(e)>-1&&(n[c]={...n[c],matches:n[c].matches.filter(f=>f!==e)});let i=new Set(a);if(t==="auto")return{...n};i.add(e);let s=Array.from(i);return{...n,[t]:{...n[t],matches:s}}}h();h();function $l(){return d("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M10.3873 2.29166C10.6319 2.29193 10.8664 2.38929 11.0392 2.56234C11.2121 2.73539 11.3092 2.96998 11.3092 3.21457V4.07811L12.1175 4.38332C12.7273 4.61277 13.2952 4.94074 13.7988 5.35416L14.4675 5.90207L15.2165 5.46978L15.2394 5.45624C15.3787 5.37479 15.5373 5.332 15.6988 5.33228C15.861 5.3325 16.0203 5.37522 16.1608 5.45618C16.3014 5.53715 16.4182 5.65353 16.4998 5.79374L16.8925 6.47395C17.0145 6.68593 17.0475 6.93764 16.9843 7.17391C16.921 7.41019 16.7666 7.61173 16.555 7.73436L16.5321 7.74791L15.7842 8.17916L15.9227 9.0302C16.031 9.67953 16.031 10.3423 15.9227 10.9917L15.781 11.8458L16.531 12.2781L16.5467 12.2875C16.758 12.4101 16.9122 12.6115 16.9754 12.8475C17.0387 13.0835 17.0059 13.335 16.8842 13.5469L16.5154 14.1844C16.3932 14.3961 16.1919 14.5507 15.9558 14.6141C15.7196 14.6776 15.468 14.6448 15.256 14.5229L15.2415 14.5135L14.4904 14.0802L13.8206 14.6323C13.3125 15.0519 12.7384 15.3845 12.1217 15.6167L11.3133 15.9219V16.7864C11.3132 16.9078 11.2891 17.028 11.2425 17.14C11.1958 17.2521 11.1276 17.3539 11.0415 17.4395C10.9555 17.5251 10.8535 17.5929 10.7412 17.6391C10.6289 17.6852 10.5087 17.7087 10.3873 17.7083H9.61229C9.3677 17.708 9.13322 17.6107 8.96037 17.4376C8.78751 17.2646 8.69042 17.03 8.69042 16.7854V15.9219L7.88209 15.6167C7.27233 15.3872 6.70437 15.0592 6.20084 14.6458L5.53209 14.0979L4.78313 14.5302L4.76021 14.5437C4.62084 14.6252 4.46226 14.668 4.30084 14.6677C4.13864 14.6675 3.97932 14.6248 3.83877 14.5438C3.69823 14.4628 3.58135 14.3464 3.49979 14.2062L3.10709 13.526C2.98505 13.3141 2.95205 13.0623 3.01532 12.8261C3.07858 12.5898 3.23296 12.3882 3.44459 12.2656L3.4675 12.2521L4.21542 11.8208L4.07688 10.9698C3.96856 10.3204 3.96856 9.65766 4.07688 9.00832L4.21854 8.1552L3.46959 7.72186L3.45709 7.70832C3.24914 7.58489 3.09787 7.38486 3.03575 7.15116C2.97362 6.91746 3.00559 6.66872 3.12479 6.45832L3.49354 5.82082C3.57469 5.68049 3.69133 5.56397 3.83175 5.48297C3.97217 5.40197 4.13144 5.35934 4.29354 5.35936C4.45497 5.35908 4.61355 5.40187 4.75292 5.48332L4.7675 5.49166L5.51854 5.92499L6.18834 5.37291C6.69646 4.95329 7.27054 4.62067 7.88729 4.38853L8.69563 4.08332V3.21874C8.69452 2.97433 8.79041 2.73945 8.96226 2.56565C9.13411 2.39185 9.36788 2.29331 9.61229 2.29166H10.3873ZM10.3873 1.04166H9.61229C9.03636 1.04193 8.4841 1.27084 8.07685 1.67809C7.66961 2.08533 7.4407 2.6376 7.44042 3.21353C6.69518 3.49423 6.00146 3.89618 5.38729 4.40312L5.37271 4.39478C4.87362 4.10685 4.2806 4.02894 3.72407 4.17818C3.16753 4.32742 2.69307 4.6916 2.405 5.19062L2.03729 5.83332C1.74928 6.33229 1.67121 6.92522 1.82025 7.48173C1.96929 8.03825 2.33324 8.51279 2.83209 8.80103L2.84771 8.80936C2.78023 9.20444 2.74539 9.6044 2.74354 10.0052C2.74367 10.3971 2.77572 10.7883 2.83938 11.175L2.81646 11.1885C2.56927 11.3311 2.35259 11.5209 2.1788 11.7472C2.00501 11.9735 1.87752 12.2319 1.80361 12.5075C1.7297 12.7831 1.71083 13.0706 1.74807 13.3535C1.7853 13.6364 1.87792 13.9091 2.02063 14.1562L2.41334 14.8364C2.55638 15.0837 2.74681 15.3003 2.97371 15.4738C3.20061 15.6473 3.45953 15.7743 3.73561 15.8475C4.01169 15.9208 4.29952 15.9388 4.58259 15.9007C4.86566 15.8625 5.13841 15.7688 5.38521 15.625L5.40813 15.6114C6.01714 16.1105 6.70362 16.5067 7.44042 16.7844C7.44028 17.0697 7.49635 17.3523 7.60542 17.616C7.7145 17.8797 7.87444 18.1193 8.07612 18.3212C8.27779 18.523 8.51726 18.6832 8.78084 18.7925C9.04441 18.9018 9.32694 18.9582 9.61229 18.9583H10.3873C10.9632 18.958 11.5155 18.7291 11.9227 18.3219C12.33 17.9146 12.5589 17.3624 12.5592 16.7864C13.3043 16.5061 13.9981 16.1045 14.6123 15.5979L14.6269 15.6062C15.126 15.8942 15.719 15.9721 16.2755 15.8228C16.8321 15.6736 17.3065 15.3094 17.5946 14.8104L17.9623 14.1729C18.2503 13.6739 18.3284 13.081 18.1793 12.5245C18.0303 11.968 17.6663 11.4934 17.1675 11.2052L17.1519 11.1969C17.2194 10.8018 17.2542 10.4018 17.256 10.001C17.2559 9.60915 17.2239 9.21792 17.1602 8.83124L17.1831 8.8177C17.4303 8.67516 17.647 8.48531 17.8208 8.259C17.9946 8.03269 18.1221 7.77435 18.196 7.49875C18.2699 7.22314 18.2888 6.93568 18.2515 6.65278C18.2143 6.36987 18.1217 6.09708 17.979 5.84999L17.5863 5.16978C17.4437 4.92202 17.2537 4.70485 17.027 4.53072C16.8003 4.3566 16.5415 4.22895 16.2654 4.1551C15.9893 4.08126 15.7013 4.06267 15.418 4.1004C15.1346 4.13814 14.8616 4.23145 14.6144 4.37499L14.5915 4.38853C13.9824 3.88946 13.296 3.49327 12.5592 3.21561C12.5593 2.93026 12.5032 2.64768 12.3942 2.384C12.2851 2.12031 12.1252 1.8807 11.9235 1.67883C11.7218 1.47695 11.4823 1.31678 11.2188 1.20746C10.9552 1.09813 10.6726 1.04179 10.3873 1.04166Z",fill:"#666666"}),d("path",{d:"M10.0003 7.91666C10.4124 7.91666 10.8152 8.03884 11.1578 8.26776C11.5004 8.49668 11.7674 8.82205 11.9251 9.20273C12.0828 9.58341 12.124 10.0023 12.0436 10.4064C11.9632 10.8106 11.7648 11.1818 11.4735 11.4731C11.1821 11.7645 10.8109 11.9629 10.4068 12.0433C10.0026 12.1237 9.58375 12.0824 9.20307 11.9247C8.82239 11.7671 8.49702 11.5 8.2681 11.1574C8.03918 10.8148 7.91699 10.412 7.91699 9.99999C7.91699 9.44745 8.13649 8.91755 8.52719 8.52685C8.91789 8.13615 9.44779 7.91666 10.0003 7.91666ZM10.0003 6.66666C9.34106 6.66666 8.69659 6.86215 8.14843 7.22842C7.60026 7.5947 7.17302 8.11529 6.92073 8.72438C6.66844 9.33346 6.60243 10.0037 6.73104 10.6503C6.85966 11.2969 7.17713 11.8908 7.6433 12.357C8.10948 12.8232 8.70342 13.1407 9.35003 13.2693C9.99663 13.3979 10.6669 13.3319 11.2759 13.0796C11.885 12.8273 12.4056 12.4001 12.7719 11.8519C13.1382 11.3037 13.3337 10.6593 13.3337 9.99999C13.3337 9.11593 12.9825 8.26809 12.3573 7.64297C11.7322 7.01785 10.8844 6.66666 10.0003 6.66666Z",fill:"#666666"})]})}h();function nu(e,t=2e3){return n=>{let a,r=0;return o=>{++r==e&&(n(o),r=0),clearTimeout(a),a=setTimeout(()=>r=0,t)}}}h();function x3(e){let t;try{t=new URL(e)}catch{return!1}let n=T3(),a="";try{a=new URL(n).hostname}catch{}return a&&t.hostname===a?!0:!(Ky(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function Ky(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}h();function E3(e){let t=e.split(".");return t.length>2?(t[0]="*",t.join(".")):null}h();function C3(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}h();function On(e){let{items:t,maxWidth:n,className:a}=e,{lang:r}=ue();return n=n||(r==="en"?144:160),d("select",{autoComplete:"off",class:a||"min-select",style:{maxWidth:`${n}px`},value:t.find(o=>o.selected)?.value,onChange:o=>{let u=o.target.value,i=t.find(s=>s.value===u);i&&i.onSelected(i)},children:t.map((o,u)=>d("option",{value:o.value,selected:o.selected,children:o.label},"selectlink"+u))})}function Gl(e){let{items:t,maxWidth:n,isInput:a,value:r}=e;return n=n||128,a?d("input",{value:r,onChange:o=>{e.onChange(o.target.value)}}):d("select",{autoComplete:"off",style:{maxWidth:`${n}px`},value:t.find(o=>o.selected)?.value,onChange:o=>{let u=o.target.value,i=t.find(s=>s.value===u);i&&i.onSelected(i)},children:t.map((o,u)=>d("option",{value:o.value,selected:o.selected,children:o.label},"selectlink"+u))})}h();var Vi="DROP_DOWN_DEFAULT_VALUE";function Vl(e){let{showArrow:t,onSelected:n,className:a,menus:r,maxWidth:o}=e;a=a||"",t=t??!0,o=o||80;let u=zn(null);return d("select",{ref:u,autoComplete:"off",class:`text-label min-select ${t?"":"min-select-no-arrow"} ${a||""}`,value:Vi,style:{maxWidth:`${o}px`},onChange:i=>{i.preventDefault();let s=i.target.value;if(u.current&&s!==Vi){u.current.value=Vi,u.current?.dispatchEvent(new Event("change"));let c=r.find(l=>l.value===s);c&&n(c)}},children:[{value:Vi,label:e.label}].concat(r).map((i,s)=>d("option",{value:i.value,children:i.label},"option-"+s))})}h();function Yl(e){let{field:t,onChange:n,value:a}=e;a=a||t.default||"";let{t:r}=ue(),o=t.name;return t.label&&(o=t.label),t.labelKey&&(o=r(t.labelKey)),t.type==="select"?d("div",{class:"flex justify-between items-center mb-2",children:[d("label",{class:"inline-block",children:[o,"\uFF1A"]}),d(On,{items:t.options.map(u=>({label:`${u.label?r(u.label):u.value}`,value:u.value,selected:a===u.value,onSelected:()=>{n(u.value)}}))})]}):null}h();h();function Oa(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var $y=({date:e})=>{let{t}=ue(),[n,a]=$(!1);return he(()=>{setTimeout(()=>{a(!0)},5e3)},[]),n?null:d("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},Gy=({minVersion:e})=>{let{t}=ue();return d("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},Vy=()=>{let{t:e}=ue();return d("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:"https://immersivetranslate.com/docs/installation/"})}})},Yy=({message:e,handleSyncing:t,date:n})=>{let{t:a}=ue();return d("p",{class:"text-sm",children:[a("failToSyncRules")," ",d("a",{onClick:t,children:a("retry")}),d("br",{}),a("failedReason"),"\uFF1A",e,d("br",{}),a("currentRuleVersion"),"\uFF1A",n]})};function Jl(e){let{isShowError:t,request:n}=e,[a,r]=$(null),{t:o}=ue(),[u,i]=$(null),[s,c]=$(null),[l,f]=$(""),[p,m]=$(!1),[g,T]=$(!1),[w,b]=$(!1),[S,D]=$(null),[N,_]=$(null),y=hn(),E=async()=>{f("");let x=u;if(u===null)try{let v=await n({url:Ea});v?(i(v),x=v,m(!0)):(f(o("unknownError")),c(null))}catch(v){c(null),f(v.message);return}x!==null?(e.setStorageBuildinConfig(x),c(!1),r(x.buildinConfigUpdatedAt)):(f(o("canNotFetchRemoteRule")),c(null))};return he(()=>{Ge().then(x=>{let v=x.buildinConfigUpdatedAt;D(x);let C=new Date(v);if(r(v),y==="0.0.0"){b(!0);return}n({url:Ea}).then(R=>{let M=R,k=M.minVersion,P=y;i(M);let O=M.latestVersion;if(O&&(Oa(P,O)?_(!0):_(!1)),Oa(P,k)){let j=M.buildinConfigUpdatedAt;new Date(j)>C?(c(!0),E()):c(!1)}else T(!0),c(null)}).catch(R=>{c(null),f(R.message)})})},[]),he(()=>{Ge().then(x=>{D(x)})},[a]),S?d("div",{class:"text-sm mt-2",style:{maxWidth:218},children:w?d(Vy,{}):l?t===!1?null:d(Yy,{handleSyncing:E,message:l,date:a||""}):g?t===!1?null:d(Gy,{minVersion:u.minVersion}):s===null||s===!0?null:p?d($y,{date:a}):null}):null}h();var Yi='',Jr="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMTEuNjIzLS4zMTguODQ1Yy0uMjA4LjIyMi0uNTI3LjMzMy0uOTI4LjMzM2gtMS4zM1Y5LjI0MmgxLjMzWm05Ljg0NiAxLjc4OGMuMzg4IDAgLjY2NS4xNTIuODQ1LjQ1Ny4xNTIuMjY0LjIzNS41ODIuMjYzLjk4NHYuMzE5YzAgLjQ5OS0uMDgzLjg4Ny0uMjYzIDEuMTkyLS4xOC4zMDQtLjQ1Ny40NTctLjgzLjQ1Ny0uMzg5IDAtLjY2Ni0uMTUzLS44NDYtLjQ0NC0uMTUyLS4yNjMtLjIzNS0uNTk1LS4yNjMtMS4wMTF2LS4yOTFjMC0uNDg1LjA4My0uODczLjI2My0xLjE3OC4xOC0uMzA1LjQ0My0uNDg1LjgzMS0uNDg1Wm0tMy40MDctMS4xMzZhMS4xNyAxLjE3IDAgMCAwLS43MDYuMjM1IDEuNDgyIDEuNDgyIDAgMCAwLS40MTUuNWwtLjA4My4xNjUtLjA3LS44MDNoLTEuMzU3djUuNDMyaDEuNDU0di0zLjY1OWEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiA4LjEySDQuMTE0djcuMzE3aDEuNDY4VjEyLjc5aDEuMzNjLjg0NCAwIDEuNDk1LS4yMDggMS45OC0uNjM4LjQ4NS0uNDMuNzItLjk4My43Mi0xLjY5cy0uMjM1LTEuMjYxLS43Mi0xLjY5Yy0uNDQzLS4zODktMS4wMzktLjYxLTEuNzczLS42MzhsLS4yMjEtLjAxNFptOS44NDcgMS43NzRjLS44MDMgMC0xLjQyNi4yNjMtMS44ODMuNzc2LS40MTYuNDctLjYzNyAxLjA2Ny0uNjc5IDEuNzczdi4zMzNjMCAuODE4LjIyMiAxLjQ4My42NzkgMS45OTUuNDU3LjUxMyAxLjA4Ljc3NiAxLjg4My43NzYuODA0IDAgMS40MjctLjI2MyAxLjg4NC0uNzc2LjQxNS0uNDcuNjM3LTEuMDUzLjY3OC0xLjc3M3YtLjMzM2MwLS44MTctLjIyMS0xLjQ4Mi0uNjc4LTEuOTk1LS40NTctLjUxMy0xLjA4LS43NzYtMS44ODQtLjc3NlpNMTguMDAzIDZhNiA2IDAgMCAxIDAgMTJIMFY5LjQyM0EzLjQyIDMuNDIgMCAwIDEgMy40MiA2aDE0LjU4M1oiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSI3LjUiIHgyPSIyMiIgeTE9IjE5IiB5Mj0iNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMyMjIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM2OTY5NjkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=",Ql="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzk5OSIgZD0iTTYuODk3IDMuMjQyYy40MTUgMCAuNzIuMTExLjkyOC4zNDcuMjA3LjIzNS4zMTguNTI2LjMxOC44NzMgMCAuMzQ2LS4xMS42MjMtLjMxOC44NDUtLjIwOC4yMjItLjUyNy4zMzMtLjkyOC4zMzNoLTEuMzNWMy4yNDJoMS4zM1ptOS44NDYgMS43ODhjLjM4OCAwIC42NjUuMTUyLjg0NS40NTcuMTUyLjI2NC4yMzUuNTgyLjI2My45ODR2LjMxOWMwIC40OTktLjA4My44ODctLjI2MyAxLjE5Mi0uMTguMzA0LS40NTcuNDU3LS44My40NTctLjM4OSAwLS42NjYtLjE1My0uODQ2LS40NDQtLjE1Mi0uMjYzLS4yMzUtLjU5NS0uMjYzLTEuMDExdi0uMjkxYzAtLjQ4NS4wODMtLjg3My4yNjMtMS4xNzguMTgtLjMwNS40NDMtLjQ4NS44MzEtLjQ4NVptLTMuNDA3LTEuMTM2YTEuMTcgMS4xNyAwIDAgMC0uNzA2LjIzNSAxLjQ4MiAxLjQ4MiAwIDAgMC0uNDE1LjVsLS4wODMuMTY1LS4wNy0uODAzaC0xLjM1N3Y1LjQzMmgxLjQ1NFY1Ljc2NGEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiAyLjEySDQuMTE0djcuMzE3aDEuNDY4VjYuNzloMS4zM2MuODQ0IDAgMS40OTUtLjIwOCAxLjk4LS42MzguNDg1LS40My43Mi0uOTgzLjcyLTEuNjlzLS4yMzUtMS4yNjEtLjcyLTEuNjljLS40NDMtLjM4OS0xLjAzOS0uNjEtMS43NzMtLjYzOGwtLjIyMS0uMDE0Wm05Ljg0NyAxLjc3NGMtLjgwMyAwLTEuNDI2LjI2My0xLjg4My43NzYtLjQxNi40Ny0uNjM3IDEuMDY3LS42NzkgMS43NzN2LjMzM2MwIC44MTguMjIyIDEuNDgzLjY3OSAxLjk5NS40NTcuNTEzIDEuMDguNzc2IDEuODgzLjc3Ni44MDQgMCAxLjQyNy0uMjYzIDEuODg0LS43NzYuNDE1LS40Ny42MzctMS4wNTMuNjc4LTEuNzczdi0uMzMzYzAtLjgxNy0uMjIxLTEuNDgzLS42NzgtMS45OTUtLjQ1Ny0uNTEzLTEuMDgtLjc3Ni0xLjg4NC0uNzc2Wk0xOC4wMDMgMGE2IDYgMCAwIDEgMCAxMkgwVjMuNDIzQTMuNDIgMy40MiAwIDAgMSAzLjQyIDBoMTQuNTgzWiIvPjwvc3ZnPg==",v3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAABC1BMVEUAAADt7vHt7vHn5+/v7+/u7vLs7O/Y2urv7+/I0uTu7/Ls7e/r6+/r7e/J1OTE0OGdrMHu7/Hu7/Lt7vHHz9/I0+Ps7O/V3eju7/GXp72YqL7s7u/I0uPH0+Pv7/OWpr3H0uLH0+OXp7vl6e67xtmquszi5u3W3ejAzd66x9jJ0+O5xdimtcmYprzI0+Ps7e+Yp73t7vHI0+OXp7309vnCzt/N1+Xd4+ucrMHp7PLa4evR2uff5O3F0OHo6+/j5+6uu82jssedrMKaqr/Y3+nP2ObR2OOpt8rm6e/k5+68yNq6xdW2w9XT3OivvdCmtcnu8fa/ytezwNKhsMTL09/c4+zZ3+m/y9zGz9seNO0nAAAAMXRSTlMA3+8gEJ9gECDfv3BAgO/v78+vkCCQUO/f37ewoIB/cGBAQO/v79/f39/Pz8/Pv6CfPHl8AQAAAyVJREFUSMedluda4kAUQAcUkGJB0bXturq9b3JTaUkITQOiYHv/JzEzmZYYIp/nhyYz93hnbqaI0ijVqoX6oRJyWNmt1tBqlIqVvBIjv1tcQfvALZlcYe0tGmEvQz3gWmrW4rJ0BeUVCutp3lpOeZXc2ts8YWZ72abw3mKWqOdMp+3U8OaWanSpKVeI1rOrdnTVuHyhOaq6/V1tsdoKr0ib+roF/khvJry++mMHwFPZ+8GLCbZGENJ7nI7b/amBaX0zP7W2fgOmM2Zrlw12T6EYC8D4HTXGFyBc8Tls0oQKQ/UBs7MdF3eo+FWJpyzIovAEuiUyyinFJzQ8APC4J0yPzJGIImVREeIEvF8k9Op61uuB3/PcQMfvEws8dSwi8UbZ5W9dlsD1QcKbkMaOKn2mSijmuWcQreNCkp6uEkx5rDX+0ooGaUEK15HZ5cE1VGWPbdI1gXRGpLfFxaqYIhloAJBp8sIWUEVOqPuwlHksZR3l5BnOIANdnmUO0QebFAayGMUKy0QHt44yNLr2+0nRxKK1VCI9QRgySIpN/Olxr7kAN3Dpn7h1hmSnPdkWLY/BxZwQdRyjmWBrmmbeuVjUNHsOELY80VVg8OLUk6J2o0XYw+AO/w7ADRsti4gDvlj/ic/YIeJLhk74wzFhLn3IE7bkuqw4OF8qJjxKVa3yRY7FazwdEuTaLN6eOzRvT15zNbSel8rqA5g4yIVbJt6CS8WJVJs8Qmyx2iQlFWdCDGAWPfTlhXMiHR0POOUChjjozuJDdWbD6GGAE3bF0YHHKlLq1lBLp4m72/wrYjbp2yUxzQzvQexGJKVUSKfhpGg3ZNMN8kzcQDQlN0m/nfTuo3b5PGYpxR4hIWNpGdjTqPEdj8pt8H9T5KOVutP7dkiTjJF48dM4cV85JC4dgx3ke0iwXqc3aCb9LrvKBRvhthwbGRJNKiYozLa6Aib3hFleRSyn/GvVSJhXo95iNom3/WygFEr7sbuUX1SCfbSEj2X59k6a5XO0lMa+8BLm1vsSyqJxWk4e6V6mJg/4b+KS/Hx6jlbk4uz4+Ag7R3/+n12khjwDw+rmuecPQ74AAAAASUVORK5CYII=";function Zl(e){let t=hn(),{onTranslateTheMainPage:n,onUserConfigChange:a,request:r,onTranslateLocalHtmlFile:o,onSwitchTranslationMode:u,onTranslateLocalSubtitleFile:i,onSetBuildinConfig:s,pageStatus:c,openEbookBuilderPage:l,openPricingPage:f,openEbookViewerPage:p,config:m,openAboutPage:g,onTranslateTheWholePage:T,onToggleEnabled:w,openOptionsPage:b,ontranslateToThePageEndImmediately:S,onSetPageLanguage:D,onToggleTranslate:N,onTranslateLocalPdfFile:_,onTranslatePdf:y,onRestorePage:E,ctx:x,currentUrl:v,currentLang:C,onClose:R,onTranslatePage:M,onSetLocalConfig:k,onMouseTriggerChanged:P,errorMsg:O,disabledButton:j,noPermissionPDF:B}=e,A=a,[L,U]=$(""),[K,H]=$(O),[V,q]=$(null),[oe,Z]=$(null),{t:J,lang:ye}=ue(),xe=70;ye.startsWith("zh")||(xe=75);let ie=null,Y=null,ce=null,fe=null,ge=null,Ee=null,Le=null,ve=null,ee=null,De=null,_e=null,je=null;he(()=>{Xe.get(xt,null).then(W=>{W?(q(W),Z(Xt(W))):Z(!1)}).catch(W=>{Z(!1)})},[]);let We=!0,Et=ot();if(m){Et&&m&&(We=m.generalRule.showSponsorOnSafari);let{translationService:W,translationServices:pe,translationUrlPattern:nt}=m;Mn[W]&&(ve=gl("translationService",W,x)),pe&&pe[W]?je=pe[W]||{}:je={};try{ee=new URL(v||"")}catch{}if(v&&x3(v)){De=E3(ee.hostname),_e=C3(v);let{matches:Be,excludeMatches:Ie}=nt;Y=Be.includes(De),ie=Be.includes(ee.hostname),fe=Ie.includes(De),ce=Ie.includes(ee.hostname),Ee=Be.includes(_e),Le=Ie.includes(_e)}}if(m&&C&&C!=="auto"){let{translationLanguagePattern:W}=m,{matches:pe}=W;pe.includes(C)?ge=!0:ge=!1}let Vt=W=>{W.preventDefault(),b()},za=W=>{A(pe=>(pe.alpha?U("Success disable alpha!"):U("Success enable alpha!"),{...pe,alpha:!pe.alpha}))},nn=W=>{A(pe=>({...pe,translationMode:W})),u(W)},Qn=()=>{A(W=>({...W,translationArea:"body"})),T()},ma=()=>{A(W=>({...W,translationArea:"main"})),n()},ze=(W,pe,nt,Be)=>{if(W==="default"){A(jn=>{let cn={...jn.translationUrlPattern};return{...jn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...jn.translationUrlPattern,matches:at([ee?.hostname,De,v],cn.matches),excludeMatches:at([ee?.hostname,De,v],cn.excludeMatches)}}});return}let Ie=W,Zn=Ie==="matches"?"excludeMatches":"matches";ee&&A(jn=>{let cn={...jn.translationUrlPattern};return cn[Ie]=bn(pe,cn[Ie]),Be.length>0&&(cn[Ie]=at(Be,cn[Ie])),cn[Zn]=at(nt,cn[Zn]),{...jn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...jn.translationUrlPattern,...cn}}}),Ie==="matches"&&c==="Original"?setTimeout(()=>{M(),R()},100):Ie==="excludeMatches"&&c==="Translated"&&setTimeout(()=>{E(),R()},100)},an=W=>{if(!W){A(Be=>{let Ie={...Be.translationLanguagePattern};return{...Be,translationLanguagePattern:{...Be.translationLanguagePattern,matches:at(C,Ie.matches),excludeMatches:at(C,Ie.excludeMatches)}}});return}let pe=W,nt=pe==="matches"?"excludeMatches":"matches";C&&A(Be=>{let Ie={...Be.translationLanguagePattern};return Ie[pe]=bn(C,Ie[pe]),Ie[nt]=at(C,Ie[nt]),{...Be,translationLanguagePattern:{...Be.translationLanguagePattern,...Ie}}}),pe==="matches"&&c==="Original"&&setTimeout(()=>{M(),R()},100)},ht=ee?.pathname.toLowerCase().endsWith(".pdf"),Ze=J("translate");c==="Translated"||c==="Error"?Ze=J("show-original"):c==="Original"?ht?Va()&&ee.protocol==="file:"||B?Ze=J("translate-firefox-local-pdf"):me()?Ze=J("noSupportTranslate-pdf"):Ze=J("translate-pdf"):Ze=J("translate"):Ze=J(c);let ln=J("translateToThePageEndImmediately");(c==="Original"||c==="Translated")&&(m.shortcuts.toggleTranslatePage&&(Br()&&x.rule.fingerCountToToggleTranslagePageWhenTouching>=2?Ze+=` (${J(`fingers.${x.rule.fingerCountToToggleTranslagePageWhenTouching}`)})`:Ze+=` (${m.shortcuts.toggleTranslatePage})`),m.shortcuts.toggleTranslateToThePageEndImmediately&&(ln+=` (${m.shortcuts.toggleTranslateToThePageEndImmediately})`));let Yt=[];x&&(Yt=Ci(x,"translationService"));let pa=W=>{W.preventDefault(),R()},At=Qr(x.config.translationService,x.config.targetLanguage),An=Ee||ie||Y,Ve=()=>Ee?d("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[d("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!Ee,onChange:W=>{let pe=W.target.checked;ze(pe?"matches":"default",_e,[_e],[])}}),J("alwaysTranslateSomePage")]}):ie?d("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[d("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!ie,onChange:W=>{let pe=W.target.checked;ze(pe?"matches":"default",ee.hostname,[ee.hostname,De,_e],[De])}}),J("alwaysTranslateSomeSiteOrWildSite")]}):Y?d("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[d("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!Y,onChange:W=>{let pe=W.target.checked;ze(pe?"matches":"default",De,[_e,ee.hostname,De],[ee.hostname])}}),J("alwaysTranslateSomeSiteOrWildSite")]}):null;return d("div",{children:[d("div",{class:"popup-container px-6 pt-6 max-content",children:[d("div",{class:"text-sm",children:[d("div",{class:"flex justify-between mb-3 items-center",children:[d("label",{class:"inline-block text-label",children:[J("popupSourceLanguage"),"\uFF1A"]}),d(On,{maxWidth:186,items:sn.map(W=>({label:Mt(W,m.interfaceLanguage),value:W,selected:W===x.sourceLanguage,onSelected:pe=>{D(pe.value)}}))})]}),m&&m.targetLanguage&&d("div",{class:"flex items-center justify-between mb-3",children:[d("label",{class:"inline-block text-label",children:[J("popupTarget"),"\uFF1A"]}),d(On,{maxWidth:186,items:At.filter(W=>W!=="auto").map(W=>({label:Mt(W,m.interfaceLanguage),value:W,selected:W===m.targetLanguage,onSelected:pe=>{A(nt=>({...nt,targetLanguage:pe.value}))}}))})]}),ve&&Yt.length>0&&d(Fe,{children:[d("div",{class:"flex items-center justify-between mb-3",children:[d("label",{class:"inline-block text-label",children:[J("popupService"),"\uFF1A"]}),d(On,{maxWidth:186,items:Yt.map(W=>({label:`${J("translationServices."+W.id)}${W.ok?"":" "+(" "+(!oe&&!Et&&W.providers&&W.providers.length>0?J("goLoginOrAction"):J("needAction")))}`,value:W.id,selected:W.selected,onSelected:pe=>{let nt=Yt.find(Be=>Be.id===pe.value);if(nt.ok){if(A(Be=>({...Be,translationService:nt.id})),c!="Translated")return;nt.props.length===0?setTimeout(()=>{M()},1):setTimeout(()=>{E()},1)}else A(Be=>({...Be,translationService:nt.id})),setTimeout(()=>{b()},100)}}))})]}),je&&ve.props.length>0&&ve.props.map((W,pe)=>d("div",{class:"pl-4 text-sm",children:d(Yl,{field:W,value:je[W.name],onChange:nt=>{A(Be=>{let Ie=Be.translationServices||{},Zn=Ie[ve.id]||{};return setTimeout(()=>{E()},1),{...Be,translationServices:{...Ie,[ve.id]:{...Zn,[W.name]:nt}}}})}},"field-"+pe)},"service"+pe))]}),ee&&d("div",{class:"flex items-center justify-between mb-3",children:[d("label",{class:"inline-block text-label",children:J("forThisSite")}),d(On,{maxWidth:186,items:[{label:J("default"),value:"default",selected:ie===!1&&ce===!1&&!Y&&!fe&&!Ee&&!Le,onSelected:()=>{ze("default",ee.hostname,[],[]);let W=ee.hostname,pe=x.localConfig.tempTranslationUrlMatches||[],nt=pe.filter(Ie=>Ie.match!==W),Be=!1;nt.length!==pe.length&&(Be=!0),Be&&k({...x.localConfig,tempTranslationUrlMatches:[...nt]})}},_e&&{label:J("alwaysTranslateSomeSite",{hostname:J("currentUrl")}),value:"matchesUrl",selected:Ee,onSelected:()=>{ze("matches",_e,[_e],[])}},{label:J("alwaysTranslateSomeSite",{hostname:ee.hostname}),value:"matches",selected:ie,onSelected:W=>{ze(W.value,ee.hostname,[ee.hostname,De,_e],[De])}},De&&{label:J("alwaysTranslateSomeSite",{hostname:De}),value:"matchesWild",selected:Y,onSelected:()=>{ze("matches",De,[_e,ee.hostname,De],[ee.hostname])}},_e&&{label:J("neverTranslateSomeSite",{hostname:J("currentUrl")}),value:"excludeMatchesUrl",selected:Le,onSelected:()=>{ze("excludeMatches",_e,[_e],[])}},{label:J("neverTranslateSomeSite",{hostname:ee.hostname}),value:"excludeMatches",selected:ce,onSelected:W=>{ze(W.value,ee.hostname,[ee.hostname,De,_e],[De])}},De&&{label:J("neverTranslateSomeSite",{hostname:De}),value:"excludeMatchesWild",selected:fe,onSelected:()=>{ze("excludeMatches",De,[ee.hostname,_e,De],[ee.hostname])}}].filter(Boolean)})]}),P&&ia()&&d("div",{class:"flex items-center justify-between mb-3",children:[d("label",{class:"inline-block text-label",children:[J("mouse-translate"),"\uFF1A"]}),d(On,{maxWidth:186,items:Ca.filter(W=>!(Ca.includes(m.generalRule.mouseHoverHoldKey)&&W==="OtherCustom")).map(W=>{let pe=J("mouseHoldKey",{key:W}),nt=Ca.includes(m.generalRule.mouseHoverHoldKey),Be=W===m.generalRule.mouseHoverHoldKey;return W==="Auto"?pe=J("mouseHoldKeyAuto"):W==="Off"?pe=J("mouseHoldKeyOff"):W==="OtherCustom"?pe=nt?J("mouseHoldKeyOther"):J("mouseHoldKeyCustomKey",{key:m.generalRule.mouseHoverHoldKey}):W==="Other"&&(pe=J("mouseHoldKeyOther")),nt||W==="OtherCustom"&&(Be=!0),{label:pe,value:W,selected:Be,onSelected:Ie=>{Ie.value==="Other"?b("#interface"):P(Ie.value)}}})})]})]}),d("div",{class:"",children:d("button",{class:"py-2 mt-1 mb-5 main-button ",onClick:()=>{ht?y&&y():N()},"aria-busy":c==="Translating",disabled:j||c==="Translating",children:Ze})}),d("div",{class:"text-sm",children:L}),d("div",{class:`pb-2 text-sm ${K?"":"display-none"}`,children:K}),d("div",{class:"flex items-center justify-between flex-wrap",children:[An?d(Ve,{}):C&&C!=="auto"?d("label",{for:"alwaysTranslateThisLanugage",class:"text-sm text-label text-overflow-ellipsis max-w-20",children:[d("input",{type:"checkbox",id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",checked:!!ge,onChange:W=>{let pe=W.target.checked;an(pe?"matches":void 0)}}),J("alwaysTranslateSomeLanguage",{language:Mt(C,m.interfaceLanguage,!1,!0)})]}):d("span",{}),d("div",{class:`flex flex-end flex-grow ${K?"display-none":""}`,children:d("span",{class:"immersive-translate-no-select muted text-sm",onClick:nu(7)(za),children:["V",t,m.enabled?null:d("a",{href:"#",onClick:w,children:[" ","(",J("hasBeenDisabled"),")"]})]})})]})]}),d("footer",{children:[d("div",{class:"px-6 text-label",children:d(Jl,{isShowError:!1,request:r,setStorageBuildinConfig:s})}),d("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer text-label",children:[d("div",{class:"flex flex-row items-center justify-center secondary clickable",style:{width:70},onClick:Vt,children:[d($l,{}),d("span",{class:"ml-1",children:J("options")})]}),We?d("a",{title:J(oe?"popup.openProForPro":"popup.openPro"),target:"_blank",href:oe?Ar:W0,children:d("img",{src:oe?Jr:Ql})}):oe&&d("a",{title:J(oe?"popup.openProForPro":"popup.openPro"),target:"_blank",href:oe?Ar:W0,children:d("img",{src:oe?Jr:Ql})}),d(Vl,{label:J("more"),showArrow:!0,maxWidth:xe,onSelected:W=>{W.value==="openPremium"?(globalThis.open($a),R()):W.value==="changeToOnlyTranslationMode"?nn("translation"):W.value==="changeToDualTranslationMode"?nn("dual"):W.value==="translateTheWholePage"?T():W.value==="translateToThePageEndImmediately"?S():W.value==="translateTheMainPage"?n():W.value==="showTranslationOnly"||(W.value==="translateLocalPdfFile"?_&&_():W.value==="translateLocalHtmlFile"?o&&o():W.value==="translateLocalSubtitleFile"?i&&i():W.value==="donate"?(globalThis.open(m.donateUrl),R()):W.value==="feedback"?(globalThis.open(m.feedbackUrl),R()):W.value==="options"?(b(),R()):W.value==="changeToTranslateTheWholePage"?Qn():W.value==="changeToTranslateTheMainPage"?ma():W.value==="about"?g():W.value==="toggleEnabled"?w():W.value==="openEbookViewer"?p():W.value==="openEbookBuilder"?l():W.value==="goPro"&&f())},menus:[m.translationMode==="dual"&&{label:"\u{1F524} "+J("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},m.translationMode==="translation"&&{label:"\u{1F521} "+J("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},m.translationArea==="main"&&{label:"\u{1F480} "+J("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},m.translationArea==="body"&&{label:"\u{1F4D6} "+J("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},{label:"\u26A1 "+ln,value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+J("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+J("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+J("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},!me()&&{label:"\u{1F310} "+J("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+J("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},oe===!1&&We&&{label:"\u{1F451} "+J("upgradeToPro"),value:"goPro"},{label:"\u2764\uFE0F "+J(We?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})]})]})}h();h();async function w3(e){try{let t=new Date;z.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await Q.storage.local.set({[Hg]:t.toISOString()}),await Jy(),me()||await A3()}catch(t){z.error("run cron task failed",t)}}async function Jy(){try{let e=await Nn(),t=await se({url:Ea}),n=e.buildinConfigUpdatedAt,a=new Date(n),r=t.buildinConfigUpdatedAt,o=new Date(r),u=t.minVersion,i=Q.runtime.getManifest().version;Oa(i,u)?o>a?(await Q.storage.local.set({buildinConfig:t}),z.info(`sync remote rules success, latest: ${new Date(r).toLocaleString()}`)):z.debug(`no need to sync rules, latest: ${a}`):z.info(`local version is too old, please update to ${u} or later`)}catch(e){z.error("sync rules error: ",e)}}h();h();function Ji(){let e=new Date;return`${e.getFullYear()}-${e.getMonth()+1}-${e.getDate()}_${e.getHours()}-${e.getMinutes()}-${e.getSeconds()}`}h();h();var Yn=class{accessToken;constructor(t){this.accessToken=t}async listAll(){let t=[],n="";do{let{nextPageToken:a,files:r}=await this.list(n).catch(o=>{throw o});t.push(...r),n=a||""}while(n);return t}async getConfig(t){try{return await(await fetch(`https://www.googleapis.com/drive/v3/files/${t}?alt=media`,{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(n){return z.error("get config error, use default",n),{}}}async delete(t){await fetch(`https://www.googleapis.com/drive/v3/files/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${this.accessToken}`}})}findByName(t){return this.list(void 0,`name = '${t}'`)}uploadConfig(t,n=Gu){let a=new Blob([JSON.stringify(t,null,2)],{type:"application/json"});return this.upload({name:n,parents:["appDataFolder"],mimeType:"application/json"},a)}updateConfig(t,n){let a=new Blob([JSON.stringify(n,null,2)],{type:"application/json"});return this.updateContent(t,a)}async upload(t,n){let a=new FormData;a.append("metadata",new Blob([JSON.stringify(t)],{type:"application/json; charset=UTF-8"})),a.append("file",n);let r=await fetch("https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart",{method:"POST",headers:{Authorization:`Bearer ${this.accessToken}`},body:a});return r.ok?await r.json():Promise.reject(r.text())}async list(t,n){let a=new URL("https://www.googleapis.com/drive/v3/files");t&&a.searchParams.append("pageToken",t),n&&a.searchParams.append("q",n),a.searchParams.append("spaces","appDataFolder"),a.searchParams.append("fields","files(id,name,createdTime,modifiedTime,size)"),a.searchParams.append("pageSize","100"),a.searchParams.append("orderBy","createdTime desc");try{return z.debug("list api:",a.toString(),this.accessToken),await(await fetch(a.toString(),{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(r){throw z.error("fetch google ip error",r),r}}async updateContent(t,n){return await(await fetch(`https://www.googleapis.com/upload/drive/v3/files/${t}?uploadType=media`,{method:"PATCH",headers:{Authorization:`Bearer ${this.accessToken}`},body:n})).text()}};h();h();function k3(e,t){let n=["https://www.googleapis.com/auth/drive.appdata"];return`https://accounts.google.com/o/oauth2/v2/auth?client_id=${$u}&response_type=token&redirect_uri=${encodeURIComponent(t)}&scope=${encodeURIComponent(n.join(" "))}&state=${encodeURIComponent(JSON.stringify(e))}`}function S3(e){let t=e.match(/[#?](.*)/);return!t||t.length<1?null:{access_token:new URLSearchParams(t[1].split("#")[0]).get("access_token")}}async function Xl(e,t,n,a,r,o,u){if(z.debug(`autoSyncStrategy accessToken: ${e}`),t===null){z.debug("autoSyncStrategy settings is null");return}let i=new Yn(e);try{let s=(await i.findByName(Gu)).files;z.debug("files",s);let c=s[0]?.id,l=null;if(c&&(l=await i.getConfig(c).then(f=>({fileId:c,config:f}))),l){let{config:f,fileId:p}=l,m=f.updatedAt?new Date(f.updatedAt):new Date(0),g=t.updatedAt?new Date(t.updatedAt):new Date(0);if(z.debug("remoteUpdatedAt",m,"localUpdatedAt",g),m>g)z.debug("remote is newer, update local config",f),n(f),o&&o(!0);else if(m.getTime()===g.getTime())z.debug("remote and local are the same, do nothing"),o&&o(!1);else if(m{r.status!=200&&u("Token validation error"),r.json().then(i=>{i.aud&&i.aud===Zy?o(e):u("Token validation error")})})}return fetch(n).then(a)}function L3(e,t=!1){let n=Xy;if(typeof window<"u"&&window.location.protocol.startsWith("http")){let r=window.location.hostname,o=window.location.port;n=`${window.location.protocol}//${r}${o?`:${o}`:""}/auth-done/`}return new Na(e,n).auth(t)}function ec(e,t=!1){return L3(e,t).then(n=>n.access_token||null)}var ex="https://oauth2.googleapis.com/revoke",Na=class e{CLASSNAME="GoogleAuth";_state;_redirectUrl;constructor(t,n){this._state=t,this._redirectUrl=n}static revoke(t){let n=`${ex}?token=${t}`;return fetch(n,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then(async a=>(await e.removeAuthInfo(),ko()&&globalThis.location.reload(),a))}static async getAuthInfo(){let t=await Q.storage.local.get(Kn);if(t[Kn])return t[Kn]}static async removeAuthInfo(){return await Q.storage.local.remove(Kn)}static setAuthInfo(t){return Q.storage.local.set({[Kn]:t})}async auth(t=!1){let n=await e.getAuthInfo();if(z.debug(this.CLASSNAME,"token from cache:",n),n&&n.access_token&&await D3(n.access_token).then(o=>!0).catch(o=>!1))return Promise.resolve(n);let a=k3(this._state,this._redirectUrl);return z.debug(this.CLASSNAME,"auth url: "+a),ko()?this.userscriptAuthWorkflow(a,t):this.extensionAuthWorkflow(a).then(r=>(e.setAuthInfo(r),r))}async userscriptAuthWorkflow(t,n){return n&&await Q.storage.local.set({[So]:!0}),globalThis.open(t,"_self"),Promise.resolve({})}extensionAuthWorkflow(t){let n,a=!1;return new Promise((r,o)=>{let u=()=>{Q.tabs.onUpdated.removeListener(i),Q.tabs.onRemoved.removeListener(s)},i=(p,m,g)=>{if(z.debug(this.CLASSNAME,"create tab onUpdated: "+g.url),n===p){let T=new URL(g.url||""),w=S3(g.url);T.pathname.startsWith("/auth-done")&&w?.access_token&&(z.debug(this.CLASSNAME,"auth done: "+g.url),r({access_token:w.access_token}),a=!0,Q.tabs.remove(p),u())}},s=(p,m)=>{z.debug(this.CLASSNAME,"create tab onRemoved: "+p),(p===n||!a)&&(u(),o(new Error("auth failed")))},c=Math.min(500,screen.availWidth),l=Math.min(650,screen.availHeight),f;Q.windows===void 0?f=Q.tabs.create({url:t}).then(p=>{n=p.id}):f=Q.windows.create({url:t,type:"popup",width:c,height:l,left:Math.round((screen.width-c)/2),top:Math.round((screen.height-l)/2)}).then(p=>{n=p.tabs[0].id}),f.then(()=>{Q.tabs.onUpdated.addListener(i),Q.tabs.onRemoved.addListener(s)}).catch(p=>{z.debug(this.CLASSNAME,"create tab failed: "+p),o(p)})})}};function tx(e){let{t}=ue(),{accessToken:n,id:a,listAllFiles:r}=e,[o,u]=$(!1);function i(s,c){s.preventDefault(),u(!0),new Yn(n).delete(c).catch(l=>{Bt(t("delete"))}).then(()=>r()).finally(()=>u(!1))}return d("a",{href:"#",className:"secondary margin-left text-sm",onClick:s=>i(s,a),"aria-busy":o,children:t("delete")})}function tc(e){let{onClose:t,accessToken:n,authExpire:a}=e,{t:r}=ue(),[o,u,i,s]=ft(),[c,l]=$([]),[f,p]=$(!0),[m,g]=$(!1),[T,w]=$({});he(()=>{n&&S().then(()=>p(!1))},[n]);let b=E=>{E.target&&E.target.id==="immersive-translate-overlay"&&t()};function S(){return new Yn(n).listAll().then(x=>{l(x)}).catch(x=>a())}function D(E){if(E.preventDefault(),c.length>=10)return Bt(r("maxBackupFiles",{count:10}));g(!0);let x="immersive-translate-config-"+Ji()+".json";new Yn(n).uploadConfig(o,x).catch(v=>{Bt(r("uploadFail"))}).then(()=>S()).finally(()=>g(!1))}function N(E,x,v){E.preventDefault(),w({[v]:!0}),new Yn(n).getConfig(x).then(C=>{u(()=>({...C})),ut(r("importSuccess"))}).catch(C=>{z.error(C),Bt(r("importFail"))}).finally(()=>w({}))}function _(E,x){new Yn(n).getConfig(E).then(v=>{let C=document.createElement("a");C.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(JSON.stringify(v,null,2))),C.setAttribute("download",x),C.style.display="none",document.body.appendChild(C),C.click(),document.body.removeChild(C)}).catch(v=>{z.error("download google config file failed",v),Bt(r("downloadFail")+": "+v.message)})}function y(E){E.preventDefault(),u({...o,autoSync:!1}),Na.revoke(n).then(()=>t())}return d("dialog",{id:"immersive-translate-overlay",onClick:b,open:!0,children:d("article",{class:"md:w-[32rem] px-4",children:[d("a",{href:"#",title:r("clickToDownload"),"aria-label":"Close",className:"close","data-target":"modal-example",onClick:E=>{E.preventDefault(),t()}}),d("h4",{children:r("syncTitle")}),d("div",{className:"mb-4",children:c.map((E,x)=>d("div",{class:"flex flex-wrap justify-between",children:[d("div",{class:"mr-2 mb-2",children:[d("div",{children:d("a",{href:"#",onClick:v=>{v.preventDefault(),_(E.id,E.name)},class:"block truncate w-40 sm:w-auto",children:E.name.replace("immersive-translate-","")})}),d("div",{class:"text-xs text-gray-500",children:[new Date(E.modifiedTime).toLocaleString(),",\xA0",Go(parseInt(E.size))]})]}),d("div",{children:[d("a",{href:"#",role:"button",className:"margin-right secondary","aria-busy":T[x],disabled:T[x],onClick:v=>N(v,E.id,x),children:r("import_hint")}),d(tx,{accessToken:n,id:E.id,listAllFiles:S})]})]},"file"+x))}),d("div",{className:"flex items-center",children:[d("a",{href:"#",role:"button",className:"mr-4","data-target":"modal-example","aria-busy":m,onClick:D,disabled:f,children:r("create_new_backup")}),d("a",{href:"#",className:"secondary text-sm","data-target":"modal-example",onClick:y,disabled:f,children:r("revokeAuth")})]})]})})}function nx(){let[e,t]=$(null);return he(()=>{Ge().then(n=>{t(n)})},[]),e}function P3(){let[e,t]=$(null);return he(()=>{Gn().then(a=>{t(a)})},[]),[e,a=>{t(a),yn(a)}]}function nc(){let[e,t,n,a,r]=ft(),o=nx(),{t:u,setLang:i}=ue(),[s,c]=P3();if(!o)return null;return d("div",{class:"pb-4",children:[d(l,{}),d(f,{}),d(p,{}),d(m,{config:o})]});function l(){let g=b=>{b.preventDefault(),confirm(u("confirmResetConfig"))&&(r(Za()),ut(u("resetSuccess")),setTimeout(()=>{Q.storage.local.remove(Kn),Aa().catch(S=>{z.error("clean local config error",S)})},500))},T=b=>{t(()=>({...b}))},w=b=>{b.preventDefault();let S=document.createElement("input");S.setAttribute("type","file"),S.setAttribute("accept","text/plain"),S.style.display="none",document.body.appendChild(S),S.oninput=D=>{let N=D.target,_=new FileReader;_.onload=function(){try{let y=JSON.parse(_.result);T(y),ut(u("successImportConfig"))}catch(y){Bt(`Invalid JSON ${y.message}`)}},_.readAsText(N.files[0])},S.click(),document.body.removeChild(S)};return d(Fe,{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("import_export_title")})}),d("div",{class:"pb-2",children:[d("a",{class:"mr-2 secondary mb-2 !text-sm",onClick:w,href:"#",role:"button",children:[ux,u("import")]}),d("a",{href:"#",class:"secondary mr-2 mb-2 !text-sm",onClick:b=>{b.preventDefault();let S=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});To.saveAs(S,"immersive-translate-config-"+Ji()+".txt")},role:"button",children:[ix,u("export")]}),d("a",{href:"#",onClick:g,class:"secondary text-sm",children:u("reset")})]})]})}function f(){return d("details",{class:"mt-4 mb-6",children:[d("summary",{children:u("clickToExpandConfig")}),d("pre",{children:d("code",{children:JSON.stringify(e,null,2)})})]})}function p(){let[g,T]=$(!1),[w,b]=$(!1),[S,D]=$(!1),[N,_]=$("");he(()=>{if(ko()&&n){let k=localStorage.getItem(So);if(localStorage.removeItem(So),k){let P=globalThis.localStorage.getItem(I0);z.debug("import_export","rawAuthInfoStr",P);let O={},j={},B="";if(P){globalThis.localStorage.removeItem(I0);try{O=JSON.parse(P),j=O.state||{},B=O.access_token||""}catch(A){z.error("parse state error",A)}}if(B&&j&&(Na.setAuthInfo({access_token:B}),z.debug("import_export","Google OAuth:",O),O)){let A=O.state;z.debug("state",A),A?.mode==="auto"?(b(!0),R(B)):(D(!0),v(B))}}}},[n]);function y(){b(!0),ec({source:globalThis.location.href,mode:"auto"},!0).then(k=>{z.debug("import_export","Google OAuth:"+k),k!==null&&R(k)}).catch(k=>{k&&k.message==="tokenValidateErrorRedirectToAuthUrl"?z.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):C(k)})}function E(){D(!0),T(!1),ec({source:globalThis.location.href,mode:"manual"},!0).then(k=>{z.debug("import_export","Google OAuth:"+k),k!==null&&v(k)}).catch(k=>{k&&k.message==="tokenValidateErrorRedirectToAuthUrl"?z.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):C(k)})}function x(){_(""),y()}function v(k){_(k),D(!1),T(!0)}function C(k){b(!1),D(!1),T(!1),t({...e,autoSync:!1}),z.error("import_export","Google OAuth error:"+k),Bt(u("authFail"))}function R(k){b(!0),z.debug("sync latest with drive",k,e),_(k),Xl(k,e,P=>{P.interfaceLanguage&&i(P.interfaceLanguage),r(P)},P=>c({...s,lastSyncedAt:P}),P=>t({...e,updatedAt:P}),P=>{P?ut(u("successSyncConfig")):ut(u("successSyncButNoChange"))},P=>Bt(u("syncFail")+P)).finally(()=>{b(!1)})}function M(k){t({...e,autoSync:k.checked}),k.checked&&y()}return d(Fe,{children:[d("hgroup",{class:"my-2",children:[d("h5",{children:u("syncToCloud")}),d("h6",{class:"!text-sm",children:u("syncToCloudDescription")})]}),d("div",{children:[d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:k=>{k.preventDefault(),y()},"aria-busy":w,href:"#",role:"button",children:[w?d(Fe,{}):M3,u("syncToGoogleDrive")]}),d("a",{href:"#","aria-busy":S,onClick:k=>{k.preventDefault(),E()},class:"secondary text-sm",children:u("backupToCloud")})]}),d("div",{class:"text-xs text-gray-500",children:s?.lastSyncedAt&&u("lastSyncedAt",{date:new Date(s.lastSyncedAt).toLocaleString()})}),s?.lastSyncErrorMessage&&d("p",{class:"mt-2 text-xs text-red-500"}),g?d(tc,{onClose:()=>T(!1),authExpire:x,accessToken:N}):null]})}function m({config:g}){let T=F3(),[w,b]=$(!1),[S,D]=$(""),[N,_]=$(""),[y,E]=$(null),{t:x}=ue();if(!T||!T.token)return null;async function v(){try{if(w)return;b(!0),_("");let M=await Qi(T?.token,e,r),k="";switch(M){case"upload":{k=x("successSyncConfigToAccount");break}case"override":{k=x("successSyncConfigInAccount");break}default:k=x("syncConfigNoUpdate")}D(k)}catch(M){D(""),_(M.message)}finally{b(!1)}}let C=M=>{c({...s,proAutoSync:M})},R=s&&s.proAutoSync!==void 0?s.proAutoSync:!0;return d(Fe,{children:[d("hgroup",{class:"my-2 mt-4",children:[d("h5",{children:x("syncToAccount")}),d("h6",{class:"!text-sm",children:x("syncToAccountDescription")})]}),d("fieldset",{class:"my-4",children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onChange:()=>{C(!R)},checked:R}),x("enableAutoSyncUserSettings")]})}),d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:M=>{M.preventDefault(),v()},"aria-busy":w,href:"#",role:"button",children:[M3," ",x("syncToAccountButton")]}),N?d("p",{class:"text-xs text-red-500",children:N}):d("p",{class:"text-xs text-gray-500",children:S||s?.accountLastSyncedAt&&x("lastSyncedAt",{date:Dp(s.accountLastSyncedAt)})})]})}}async function Qi(e,t,n){try{if(t===null)return"noupdate";let a=await rx(e),r=await Gn();r.accountLastSyncedAt=Date.now(),z.debug("settings",t),z.debug("local settings.updatedAt",t.updatedAt),z.debug("remote settings.updatedAt",a.updatedAt),z.debug("last synced at",r.accountLastSyncedAt);let o=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(o=!0),!o&&t.updatedAt>a.updatedAt&&(o=!0),z.debug("isUpload",o),o)return await ox(e,t),await yn(r),"upload";let u=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(u=!0),!u&&t.updatedAt0&&Xe.remove(xt),a}}function En(e,t){let n=F3(),[a,r]=P3();he(()=>{!n||!n.token||a&&a.proAutoSync===!1||ax(n)&&Qi(n.token,e,t)},[e,n])}function ax(e){return Xt(e)?!0:new Date(e.createTime){Xe.get(xt,null).then(n=>{t(n)})},[t]),e}function rx(e){return(location.href?.indexOf("popup.html")>0?Pn:se)({responseType:"json",url:Bo+"/v1/user/settings",method:"get",headers:{token:e}}).then(n=>n.data)}function ox(e,t){return(location.href?.indexOf("popup.html")>0?Pn:se)({responseType:"json",url:Bo+"/v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(a=>a.data)}var M3=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",children:d("path",{fill:"currentColor",d:"M15.375 19.25q-.525.25-.95-.038q-.425-.287-.425-.937q0-.25.163-.487q.162-.238.412-.363q1.575-.75 2.5-2.225T18 11.95q0-1.125-.425-2.188Q17.15 8.7 16.25 7.8L16 7.55V9q0 .425-.287.712Q15.425 10 15 10t-.712-.288Q14 9.425 14 9V5q0-.425.288-.713Q14.575 4 15 4h4q.425 0 .712.287Q20 4.575 20 5t-.288.713Q19.425 6 19 6h-1.75l.4.35q1.225 1.225 1.788 2.662Q20 10.45 20 11.95q0 2.4-1.25 4.362q-1.25 1.963-3.375 2.938ZM5 20q-.425 0-.713-.288Q4 19.425 4 19t.287-.712Q4.575 18 5 18h1.75l-.4-.35q-1.225-1.225-1.788-2.662Q4 13.55 4 12.05q0-2.4 1.25-4.363Q6.5 5.725 8.625 4.75q.525-.25.95.037q.425.288.425.938q0 .25-.162.487q-.163.238-.413.363q-1.575.75-2.5 2.225T6 12.05q0 1.125.425 2.187Q6.85 15.3 7.75 16.2l.25.25V15q0-.425.288-.713Q8.575 14 9 14t.713.287Q10 14.575 10 15v4q0 .425-.287.712Q9.425 20 9 20Z"})}),ux=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zm10-5.828L19.071 7.1l1.414 1.414L12 17 3.515 8.515 4.929 7.1 11 13.17V2h2v11.172z"})]}),ix=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zM13 5.828V17h-2V5.828L4.929 11.9l-1.414-1.414L12 2l8.485 8.485-1.414 1.414L13 5.83z"})]});function rc(e){let{onClose:t}=e,[n,a]=$("Original"),[r,o,u,i]=ft(()=>{setTimeout(()=>{D("updateGlobalContext",!1)()},250)});En(r,o);let[s,c]=$(null),[l,f]=$(globalThis.location.href),[p,m]=$("auto"),[g,T]=$(null),w=j=>{a(j.detail)},b=j=>{m(j);let B=y3(l,j,s.sourceLanguageUrlPattern);o(A=>({...A,sourceLanguageUrlPattern:B})),xn(j)},S=()=>{f(globalThis.location.href)};he(()=>(document.addEventListener(Ju,w,!1),Nn().then(j=>{c(j);let B=Dt();m(B);let A=tt();a(A),w3(j.interval)}),document.addEventListener("urlChange",S),()=>{document.removeEventListener("pageTranslatedStatus",w),document.removeEventListener("urlChange",S)}),[]),he(()=>{Nn().then(j=>{c(j)})},[r]),he(()=>{l&&s&&Lt({url:l,config:s}).then(j=>{T(j)})},[l,s]);let D=(j,B,A={})=>()=>{Vr({method:j,data:A||{}}),B&&t()},N=()=>{t()},_=()=>{o(j=>({...j,enabled:!j.enabled})),setTimeout(()=>{N()},50)},y=()=>{ac(),setTimeout(()=>{N()},50)},E=()=>{ac(),setTimeout(()=>{N()},50)},x=(j="")=>{Zr(!0,j),setTimeout(()=>{t()},50)},v=()=>{es(em),setTimeout(()=>{globalThis.close()},50)},C=()=>{Xi(),setTimeout(()=>{t()},50)},R=()=>{ts(),setTimeout(()=>{t()},50)},M=()=>{B3(),setTimeout(()=>{t()},50)},k=()=>{ns(),setTimeout(()=>{t()},50)},P=()=>{R3(),setTimeout(()=>{t()},50)},O=j=>{o(B=>({...B,generalRule:{...B.generalRule,mouseHoverHoldKey:j}}))};return!s||!g?null:d(Zl,{openEbookViewerPage:R,openEbookBuilderPage:k,onSwitchTranslationMode:j=>{D("switchTranslationMode",!0,{mode:j})()},onTranslateLocalHtmlFile:M,onTranslateLocalSubtitleFile:P,request:se,onClose:N,onToggleEnabled:_,onTranslateTheWholePage:D("translateTheWholePage",!0),openOptionsPage:x,openPricingPage:v,onToggleTranslate:D("toggleTranslatePage",!0),onTranslateTheMainPage:D("translateTheMainPage",!0),ontranslateToThePageEndImmediately:D("translateToThePageEndImmediately",!0),onTranslatePage:D("translatePage",!0),onRestorePage:D("restorePage",!1),onTranslatePdf:y,openAboutPage:C,onTranslateLocalPdfFile:E,onSetPageLanguage:b,onUserConfigChange:o,config:s,pageStatus:n,ctx:g,currentUrl:l,currentLang:p,onSetLocalConfig:Zi,onSetBuildinConfig:_3,onMouseTriggerChanged:O})}function sx(e,t){for(let n of t){if(me()&&!Va()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}var oc={position:"right",right:0,top:335},Kt={...oc},os=!1,er=null,Jn=null,us=null,uc=null,Xr=null,ic=null,I3=6,as,rs,N3=null,U3=null;async function j3(){let e=Ke();ic=await q3(),Kt=ic.pagePopupConfig||Kt;let t=document.createElement("div");t.id="immersive-translate-popup",t.setAttribute("style","all: initial"),document.documentElement.appendChild(t);let n=t.attachShadow({mode:"open"});uc=n;let a=[e.IMMERSIVE_TRANSLATE_PICO_CSS,e.IMMERSIVE_TRANSLATE_COMMON_CSS,e.IMMERSIVE_TRANSLATE_POPUP_CSS,e.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);sx(n,[a]);let r=document.createElement("div");r.innerHTML=e.IMMERSIVE_TRANSLATE_POPUP_HTML,n.appendChild(r),er=n.querySelector("#immersive-translate-popup-container");let u=n.querySelector("#immersive-translate-popup-btn");Jn=u,us=n.querySelector("#mount"),er.setAttribute("style",sc(Kt)),gc(),u.addEventListener("mousedown",z3),u.addEventListener("touchstart",dx),globalThis.addEventListener("resize",s=>{er.setAttribute("style",sc(Kt))})}function lx(){Ha(null,us),us.style.display="none",Jn.style.display="block",Xr=setTimeout(()=>{gc(!0)},2e3)}function O3(e){let t=e.querySelector("#mount"),n=()=>{lx()},a=r=>{r&&r.target&&r.target.id==="immersive-translate-popup-overlay"&&n()};(async()=>{let r=await Nn();Ha(d(si,{lang:r.interfaceLanguage,fallbackLang:"zh-CN",translations:Gr,children:d("div",{onClick:a,id:"immersive-translate-popup-overlay",class:"immersive-translate-popup-overlay",children:d("div",{class:"immersive-translate-popup-wrapper",style:cx(),children:d(rc,{onClose:n})})})}),t)})().then(()=>{Jn.style.display="none",us.style.display="block"})}function cx(){let e=lc(),t=e.height,{position:n,top:a,left:r}=Kt,o={position:"fixed"},u=300,i=300,s=100;return Ag()&&(n=oc.position,a=oc.top),n==="right"||n==="left"?(o.top=a-s,o.top+u>=t?(o.bottom=30,delete o.top):o.top<=10&&(o.top=10),n==="right"?o.right=0:n==="left"&&(o.left=0)):(n==="top"||n==="bottom")&&(o.left=r-s,o.left+i>=e.width?(o.right=0,delete o.left):o.left<=10&&(o.left=0),n==="top"?o.top=0:n==="bottom"&&(o.bottom=0)),o}function lc(){return{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}function z3(e){U3=er.getAttribute("style"),as=e.pageX,rs=e.pageY,Xr&&clearTimeout(Xr),os=!1,Jn.style.opacity="1",Jn.style.transform="none",N3=Jn.getAttribute("style"),globalThis.addEventListener("mousemove",cc),globalThis.addEventListener("mouseup",dc),globalThis.addEventListener("touchmove",H3),globalThis.addEventListener("touchend",is),globalThis.addEventListener("touchcancel",is)}function dx(e){e.preventDefault&&e.preventDefault(),z3(e.changedTouches[0])}function H3(e){cc(e.changedTouches[0])}function is(e){e.preventDefault&&e.preventDefault(),dc(e.changedTouches[0])}function cc(e){e.preventDefault&&e.preventDefault(),os=!0,er.setAttribute("style",`left:${e.clientX}px;top:${e.clientY}px;transform:scale(1.6);`)}function dc(e){e.preventDefault&&e.preventDefault(),mx(),Xr&&clearTimeout(Xr),as=as||0,rs=rs||0;let t=Math.abs(e.pageX-as),n=Math.abs(e.pageY-rs);t{gc(!0)},2e3)}function gc(e=!1){Jn.style.opacity="0.4";let t="";Kt.position==="left"?t="translateX(-40%)":Kt.position==="right"?t="translateX(40%)":Kt.position==="top"?t="translateY(-40%)":Kt.position==="bottom"&&(t="translateY(40%)"),Jn.style.transform=t,e&&(Jn.style.transition="transform 0.2s ease-in-out, opacity 0.2s ease-in-out")}function mx(){globalThis.removeEventListener("mousemove",cc),globalThis.removeEventListener("mouseup",dc),globalThis.removeEventListener("touchmove",H3),globalThis.removeEventListener("touchend",is),globalThis.removeEventListener("touchcancel",is)}function sc(e){let t=px(e);return Object.keys(t).map(n=>typeof t[n]=="number"?`${n}:${t[n]}px;`:"").join("")}function px(e){let{position:t,...n}=e,a=lc(),r={};return t==="left"?(r.left=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="right"?(r.right=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="top"?(r.top=0,n.left>a.width?r.left=a.width-100:r.left=n.left):t==="bottom"&&(r.bottom=0,n.left>a.width?r.left=a.width-100:r.left=n.left),r}var W3=!1;async function K3(){W3||(W3=!0,j3().catch(e=>{z.error("init popup error",e)}))}var $3=!1,J3=[()=>{Ue.unbind()}],pc=[...J3],fx=Ft(async()=>{await Zr()},50),hx=Ft(async()=>{await Xi()},50),bx=Ft(async()=>{await ns()},50),yx=Ft(async()=>{await ts()},50),Q3=Ft(e=>{Vr({method:e,data:{trigger:"userscript_menu"}})},50),xx=Ft(()=>{ss();let e=new CustomEvent(Ta,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},200),Tx=Ft(()=>{ds();let e=new CustomEvent(Ta,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},200),Ex=Ft(()=>{cs();let e=new CustomEvent(Ta,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},200);function Cx(e,t){let n=e.document;if($3)return;if($3=!0,me()||of(),n.addEventListener("securitypolicyviolation",Bx),document.addEventListener(be+"DocumentMessageUser",nf),document.addEventListener(be+"DocumentMessageUpdateUser",af),document.addEventListener(be+"ChangeSuccessService",rf.bind(null,t)),document.addEventListener(Yu,Px.bind(null,t)),n.addEventListener(be+"EbookLoaded",_x),n.addEventListener(Fg,Fx),n.addEventListener(_g,Rx.bind(null,t)),n.addEventListener("click",r=>{kx(r,t)}),me()&&(globalThis.top!=globalThis.self?e.addEventListener("message",wx,!1):n.addEventListener(Ta,vx)),globalThis.top===globalThis.self){let r=Ma.rootIframe(ni);r.handleAsk("getRateLimitDelay",f3),r.handleAsk("throttleRequest",h3)}}function Z3(e,t){Ix(),Cx(t,e);let n=t.document,a=Ax.bind(null,e);e.rule.fingerCountToToggleTranslagePageWhenTouching>=2&&n.addEventListener("touchstart",a),pc.push(()=>{n.removeEventListener("touchstart",a)}),me()&&globalThis.top===globalThis.self&&(Wl(e.config),Ox(e.config)),ot()&&Wl(e.config)}function vx(e){K3()}function wx(e){let t=e;t&&t.data&&t.data.payload&&t.data.author===Vu&&Yr(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})}function Ax(e,t){let n=t;n.touches.length==e.rule.fingerCountToToggleTranslagePageWhenTouching?xx():n.touches.length===e.rule.fingerCountToToggleTranslationMaskWhenTouching?Ex():n.touches.length===e.rule.fingerCountToToggleTranslagePageOnlyTranslationWhenTouching&&Tx()}function kx(e,t){let n=e.target;if(!n||!n.getAttribute){mc(n);return}let a=n.getAttribute("data-immersive-translate-event");a&&et(a,[{name:a}],{...t,sourceLanguage:"none"});let r=n.getAttribute(`data-${X}-action`);if(r)if(r==="retry"){e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),ls(),mc(n,!0);return}else if(r=="toast-error"){let o=n.getAttribute(`data-${X}-tooltip-text`);fc(ef.bind(null,t,o||""))}else r=="close-search"&&(e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),fc(Lx.bind(null,t)));mc(n)}async function G3(e=!1){let t=document.querySelector(`.${X}-search-recomend`);if(!t||(t.remove(),!e))return;let n=await vn();n.generalRule||(n.generalRule={}),n.generalRule.enableSearchEnhancement=!1,await Cn(n)}async function Sx(){let e=await vn(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,a=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(a=e.translationUrlPattern.matches||[]),!n&&a.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await Cn(e)}async function Dx(){let e=await vn(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await Cn(e)}var V3=0;function fc(e){let t=Date.now();if(t-V3<2e3)return;V3=t;let n=`${X}-modal`,a=document.querySelector(`.${n}`);if(a?.style.display=="block")return;let r=`${X}-modal-title`,o=`${X}-modal-body`,u=`${X}-modal-footer`;if(a){let i=a.querySelector(`.${r}`),s=a.querySelector(`.${u}`),c=a.querySelector(`.${o}`);e(a,i,c,s)}else{a=document.createElement("div"),a.className=n+" notranslate",a.id=n;let i=document.createElement("div");i.className=X+"-modal-content notranslate",a.appendChild(i);let s=document.createElement("span");s.textContent="\xD7",s.className=X+"-close",i.appendChild(s);let c=document.createElement("div");c.className=r+" notranslate",i.appendChild(c);let l=document.createElement("div");l.className=o+" notranslate",i.appendChild(l);let f=document.createElement("div");f.className=u,i.appendChild(f),document.body.appendChild(a),s.onclick=function(){a.style.display="none"},window.onclick=function(p){p.target==a&&(a.style.display="none")},e(a,c,l,f)}setTimeout(()=>{Mx()},100)}function Lx(e,t,n,a,r){let o=X3.bind(null,e);n.innerHTML=`
${Yi} ${o("disableConfirm")}
`,a.innerHTML="";let u=document.querySelector(`div[data-${X}-cancel-desc]`),i=document.createElement("p");i.innerHTML=u?Ne.sanitize(u.textContent||""):Ne.sanitize(o("searchEnhancementNotes")),i.style.cssText="margin-bottom:12px",a.appendChild(i);let s=[{id:"enable-search-enhancement",value:"enable",text:o("enableSearchEnhancement")},{id:"disable-once",value:"once",text:o("disableOnce")},{id:"disable-global",value:"global",text:o("disableGlobal")}];for(let m=0;m${o("option")}`})),a.appendChild(c);let l=a.querySelector(`.${X}-open-enhancement`);l&&(l.onclick=function(){uf(!0)});let f=document.createElement("button");f.innerText=o("closeModal"),f.className=`${X}-btn ${X}-cancel-btn`;let p=document.createElement("button");p.className=`${X}-btn`,p.innerText=o("saveSettings"),r.innerHTML="",r.appendChild(f),r.appendChild(p),f.onclick=function(){t.style.display="none"},p.onclick=function(){let m=a.getElementsByTagName("input"),g="";for(let T=0;T
1. \u5207\u6362\u5230 ${o} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458`:i+=`

\u5982\u679C\u60A8\u6709\u7591\u95EE\uFF0C\u8BF7\u8054\u7CFB support@immersivetranslate.com`,fc(ef.bind(null,e,i))}catch(a){z.warn("parse message error",a)}}function Fx(e){let t=e;if(z.debug("receive third party message",t),t&&t.detail)try{let n=JSON.parse(t.detail);n&&n.type&&(n.type==="retryFailedParagraphs"?Nx({method:"retryFailedParagraphs"}):n.type==="updateCommands"?sf(n.data):n.type==="toggleEnableDefaultAlwaysTranslatedUrls"?Sx():n.type==="toggleEnableInputTranslation"?Dx():Q3(n.type))}catch(n){z.warn("parse message error",n)}}function _x(e){setTimeout(()=>{tf()},10)}function Bx(e){Ce.HAS_CSP_ERROR="1"}function Rx(e,t){let n=event.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&et(n.name,[{name:n.name}],{...e})}function Ix(){pc.forEach(e=>{e()}),pc=J3}function Ox(e){if(me()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=fi.commands,r=[...Object.keys(t).filter(o=>o==="toggleTranslatePage").map(o=>{let u=t[o].description,i=u;return u.startsWith("__MSG_")&&u.endsWith("__")&&(i=Ia(`browser.${u.slice(6,-2)}`,e.interfaceLanguage)),{id:o,title:i}}),{id:Lo,title:Ia("browser.openEbookViewer",e.interfaceLanguage),key:"e"},{id:Mo,title:Ia("browser.openEbookBuilder",e.interfaceLanguage),key:"m"},{id:Do,title:Ia("browser.openOptionsPage",e.interfaceLanguage),key:"o"},{id:O0,title:Ia("browser.openAboutPage",e.interfaceLanguage),key:"a"}];for(let o of r)GM.registerMenuCommand(o.title,()=>{o.id===Do?fx():o.id===O0?hx():o.id===Mo?bx():o.id===Lo?yx():Q3(o.id)},o.key)}}function Nx(e){Yr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{z.error("send content message request failed",e,n)});let t=new CustomEvent(Ta,{detail:e});globalThis.document.dispatchEvent(t)}h();var tr={};async function hc(){let t=[...document.querySelectorAll(".source-text")].map(a=>a.textContent).join(""),n=await it({text:t,minLength:200,pageLangs:[Ja(),"en"]});return xn(n),n}async function lf(e){Wt("Translating");let t=Dt(),n=Ui(),a=[...document.querySelectorAll(".source-text")];if(Pi(e,t))return;let r=a.filter(o=>o.innerText?.trim()).map((o,u)=>{let i=o.parentElement?.parentElement?.querySelector(".target-text");return pt(o,"id",u+""),i&&(Nr(i,u)?.remove(),i.appendChild(Qo(e,u))),{text:o.innerText||"",id:u,from:t,to:e.targetLanguage,url:"https://google.com",fromByClient:n}});document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await Ra({sentences:r},e,(o,u,i)=>{let s=i.id,c=Nr(document.body,s);if(!c)return;let l=c.parentElement;l&&(c.remove(),o?(l.innerHTML=Ne.sanitize(`${o.message}`),tr[s]={ok:!1,sentence:i}):u&&(l.innerHTML=Ne.sanitize(u.text),tr[s]={ok:!0,sentence:i}),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!o}})})))})}catch(o){throw o}finally{Wt("Translated")}}async function cf(e){Wt("Translating"),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(tr),n=[],a=[];for(let r of t){let o=tr[r];if(!o.ok){let i=document.querySelector(`#error-id-${r}`);if(i){let s=i.parentElement;i.remove(),s&&(delete tr[r],s.appendChild(Qo(e,r)),a.push(o.sentence))}}}try{await Ra({sentences:a},e,(r,o,u)=>{let i=u.id,s=Nr(document.body,i);if(!s)return;let c=s.parentElement;c&&(s.remove(),r?(c.innerHTML=Ne.sanitize(`${r.message}`),tr[i]={ok:!1,sentence:u}):o&&(c.innerHTML=Ne.sanitize(o.text),tr[i]={ok:!0,sentence:u}),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!r}})})))})}catch(r){throw r}finally{Wt("Translated")}}function bc(){Wt("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}h();var yc={};async function df(){let e=[...document.querySelectorAll("iframe")],t="";for(let a of e){let r=a.contentDocument;if(!r)continue;let o=r.body;if(o&&(t=t+o.innerText||"",t.length>1e3))break}let n=await it({text:t,pageLangs:["en"]});return xn(n),n}async function gf(e){Wt("Translating"),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(yc),n=[];for(let a of t){let r=yc[a];if(r.error){let u=r.commonAncestorContainer.querySelector(`[${Qu}='${a}']`);u&&u.remove(),n.push(r)}}try{await qi(n,e,e.config.translationMode)}catch{}finally{Wt("Translated")}}function mf(){let e=[...document.querySelectorAll("iframe")];for(let t of e){let n=t.contentDocument;if(!n)continue;let a=n.querySelectorAll("."+un);for(let r of a)r.remove()}Wt("Original")}async function pf(e){Wt("Translating");let t=Fn(),n=[...document.querySelectorAll("iframe")],a=[],r=[];for(let i of n){let s=i.contentDocument;if(!s)continue;wa(s,e);let c=s.body;if(!c)continue;let l=Tn(e);l.isModifyImage=!1,Fa({id:t,container:c,filterRule:l,onParagraph:f=>{a.push(f)}})}let o=Mi(e.config.translationServices[e.translationService]?.placeholderDelimiters),u=1;for(let i of a){let s=ji(i.flatNodes,{isPreWhitespace:i.isPreWhitespace||!1,delimiters:o,stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(l=>l.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)});if(!s)continue;i.variables=s?.variables||{},i.text=s?.text,i.id=(u++).toString();let c=await Nl(i,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:o,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});c&&(r.push(c),yc[c.id]=c)}a=[],document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await qi(r,e,e.config.translationMode)}catch{}finally{Wt("Translated")}}h();var Ux=new AbortController,{signal:jx}=Ux,vc=0,wc=0,xc=!1,Tc=0,au=!1,nr,ff=0,ar=[];function gs(e,t){zx();let n=e,a=n.config,r=a.generalRule.mouseHoverHoldKey==="Off",o=a.generalRule.mouseHoverHoldKey==="Auto",u=Ft(l=>{if(xc==!1&&Math.abs(l.clientX-vc)+Math.abs(l.clientY-wc)>3&&(Tc<2?Tc+=1:xc=!0),vc=l.clientX,wc=l.clientY,o||au&&!nr){let f=Tf(n.rule,t);if(f){if(Ac(f))return;bf(n,f)}}},o?700:300),i=l=>{let f=l.target;Ac(f)||bf(n)},s=l=>{let f=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=Ue.getPressedKeyCodes();if(p.length>1&&Ue[f]&&(ff=Date.now(),au=!1),p.length===1&&Ue[f]){let m=Date.now();au=!0,nr&&clearTimeout(nr),nr=setTimeout(()=>{let g=ff-m;g>0&&g<=150?au=!1:i(l),nr=void 0},150)}};if(ar.push(()=>{nr&&clearTimeout(nr)}),r)return;Ec("mousemove",u,t),ar.push(()=>{t.removeEventListener("mousemove",u)});function c(){xc=!1,Tc=0,u.cancel()}if(o)Ec("blur",c,t),ar.push(()=>{t.removeEventListener("blur",c)});else{let l=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",f=["ctrl","alt","shift","cmd","command","option","control"];Ec("keyup",hf,t),ar.push(()=>{t.removeEventListener("keyup",hf)}),f.includes(l)?Ue("*","mouseHover",s):Ue(a.generalRule.mouseHoverHoldKey,"mouseHover",i),Ue.setScope("mouseHover"),ar.push(()=>{Ue.deleteScope("mouseHover")})}}function zx(){ar.forEach(e=>e()),ar=[]}function hf(e){au=!1}function Ec(e,t,n=window){return n.addEventListener(e,t,{signal:jx})}function bf(e,t,n=window){if(t=t||Tf(e.rule,n),!t){z.debug("can not find selection part!");return}if(Ac(t)){z.debug("exclude dom");return}u3(e,t);let a=$i();a?.currentUrl!==window.location.href&&(da(),Hl(e)),a&&(a.setupMouseHoverListener=gs);let r=Tn(e);r.excludeSelectors=[],r.selectors=[];let o=!1;Fa({id:a.id,container:t,filterRule:r,force:!0,onParagraph:u=>{Xo(a,u,!0).then(i=>{if(i&&!o){o=!0;let s=Date.now();$e(Ig,s),et("mouse_hover_translate",[{name:"mouse_hover_translate"}],{...e,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function Tf(e,t){return Hx(vc,wc,e,t)}function Hx(e,t,n,a){let r=gm(e,t,n,a);if(r==null)return;let o=()=>{let s=a.document.elementFromPoint(e,t);if(!s)return;let c=mm(s,e,t);return c===s?s.nodeName==="BUTTON"?s:void 0:xf(c,n)},u=()=>{try{r.setStartBefore(r.startContainer),r.setEndAfter(r.startContainer)}catch(c){z.debug("get mouse over word fail",c)}let s=r.getBoundingClientRect();if(!(s.left>e||s.rightt||s.bottomn[l]=[l,...n[l]||[]]);let a=t.inputStartingTriggerKeyAlias[t.inputStartingTriggerKey]||[];a.includes(t.inputStartingTriggerKey)||a.unshift(t.inputStartingTriggerKey),n[t.inputTargetLanguage]=[...a,...n[t.inputTargetLanguage]];let r=t.inputTrailingTriggerKeyTimeout;fn().any&&(r=t.inputTrailingMobileTriggerKeyTimeout);let o={triggerTimes:t.inputTrailingTriggerKeyRepeatTimes,triggerKey:t.inputTrailingTriggerKey,triggerTimeout:r,codePrefix:t.inputStartingTriggerKey,codeAlias:n,flatAlias:Object.values(n).flat(),codePrefixAlias:t.inputStartingTriggerKeyAlias},u=0,i=Date.now();ms&&self.removeEventListener("keydown",ms),ms=s,self.addEventListener("keydown",ms);function s(l){if(eo||ps===!1)return;let f=l,p=f.target||f.srcElement,m=p?.tagName;(p?.isContentEditable||m=="INPUT"||m=="SELECT"||m=="TEXTAREA")&&(uT(l,o.triggerKey,o.codePrefixAlias)?c(l):u=0)}async function c(l){Date.now()-i=o.triggerTimes&&Gx()&&(u=0,$x(l,e,o))}iT(e)}function qx({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let a=[],r=n[e]||[];r.includes(e)||r.unshift(e);for(let o of r){let u=t.map(i=>{let s=o+i;return r.includes(i)||(s+=" "),s});a.push(...u)}return new RegExp(a.join("|"))}function Cf(e,t){for(let[n,a]of Object.entries(t))if(a.includes(e))return n;return""}var to;function Wx(e){let t=e.parentElement;if(!t)return;to=document.createElement("div"),to.className=X+"-input",to.innerHTML=`
`,t.appendChild(to);let n=t,a=!1;do{let r=getComputedStyle(n).position;if(["fixed","absolute","relative"].includes(r)){a=!0;break}n=n.parentElement}while(n);if(n=t,!a)do{if(getComputedStyle(n).position==="static"){n.style.position="relative";break}n=n?.parentElement||null}while(n)}function Kx(){to&&to.remove()}async function $x(e,t,n){if(!eo)try{let p=function(){i=t.config.inputTargetLanguage;let g=u.split(" ")[0];g&&g[0]&&(g=g[0].toLowerCase()+g.slice(1)),g.trim()&&n.flatAlias.includes(g)?(i=Cf(g,n.codeAlias),o=u.slice(g.length+1)):o=u},m=function(){i="";let g=qx(n),T=u.split(g);if(T.length<2)return;if(o=T[T.length-1],r=T[0],T.length>2){let b=u.lastIndexOf(o),S=u.slice(0,b).lastIndexOf(T[T.length-2]);r=u.slice(0,S+T[T.length-2].length)}if(r.endsWith(n.codePrefix))return;let w=u.slice(r.length+1,u.indexOf(o)).trim();if(i=Cf(w,n.codeAlias),!i){z.warn("not found alias",w);return}},a=document.activeElement;eo=!0;let r="",o="",u=no(a)||"",i=t.config.inputTargetLanguage;n.codePrefix==="none"?p():(m(),!i&&t.config.enableInputTranslationWithoutTriggerKey&&p());let s=Yx(o,n),c=await it({text:s,pageLangs:["en"]});z.debug("translateContent",s,c);let l={text:s||"",id:0,from:c,to:i,url:"https://google.com",fromByClient:c};if(!l.text)return;if(t.config.isShowInputTranslationConsent&&!Ef){Ef=!0;let g=await sT(t);if(e.target&&e.target.focus(),g==="open_settings"){Zr(!0,"#input");return}else if(g==="open_learn_more"){es("https://immersivetranslate.com/docs/input/");return}else if(g==="disable_once"||g==="disable_forever"){if(ps=!1,g==="disable_forever"){let T=await vn();T.enableInputTranslation=!1,T.isShowInputTranslationConsent=!1,await Cn(T)}else if(g==="disable_once"){let T=await vn();T.isShowInputTranslationConsent=!1,await Cn(T)}return}else if(g==="close_disable_once"||g==="close_disable_forever"){if(ps=!1,g==="close_disable_forever"){let T=await vn();T.enableInputTranslation=!1,T.isShowInputTranslationConsent=!1,await Cn(T)}return}else if(g==="enable"){let T=await vn();T.enableInputTranslation=!0,T.isShowInputTranslationConsent=!1,await Cn(T)}else if(g==="close_enable"){let T=await vn();T.enableInputTranslation=!0,await Cn(T)}}Wx(a),$e(N0,Date.now());let f=await ca(l,{...t,translationService:t.inputTranslationService});oT(t),rT(a,r+f.text),eo=!1}catch(a){throw eo=!1,a}finally{eo=!1,Kx()}}function Gx(){let e=document.activeElement;if(!e)return!1;if(fs(e)){let t=e.selectionStart||0,n=e.value.length,r=e.value.split(` -`).reverse()[0].trim(),o=n<=t;return z.debug("cursorPosition",t,"textLength",n),z.debug("input isTail",o,"tailHasText",r),o&&!!r}else{let t=window.getSelection();if(!t)return z.debug("No active selection found."),!1;if(t.rangeCount>0){let n=t.getRangeAt(0),a=n.startContainer;if(a.nodeType===Node.TEXT_NODE){let r=Vx(a,e);z.debug("Current text node:",a.textContent),z.debug("Cursor position within text node:",n.startOffset);let o=a.textContent?.length===n.startOffset&&r,u=a.textContent?.trim();return z.debug("editdiv isTail",o,"tailHasText",u),o&&!!u}else z.debug("Cursor is not within a text node.")}}return!1}function Vx(e,t){let n;function a(r){if(r.nodeType===Node.TEXT_NODE)n=r;else for(let o of r.childNodes)a(o)}return a(t),n==e}function Yx(e,t){let{triggerTimes:n,triggerKey:a}=t,r=0,o=" ";a.length==1?(r=n,o=a):a.toLowerCase()=="space"&&(r=n);let u=e.length;for(let i=e.length-1;i>=e.length-r;i--){if([10,8629].includes(e[i].charCodeAt(0))){u--;continue}if(![...t.codePrefixAlias[a]||[],o].includes(e[i]))break;u--}return e.length-u<3&&[".","\u3002"].includes(e[u-1])&&u--,e.slice(0,u)}function Jx(e,t){let n=t.innerHTML,a=no(t);return{html:n.replace(a,e),text:e}}function vf(e,t,n=!1){let a=no(t);return n?a.trim().endsWith(e.text.trim()):a.trim()==e.text.trim()}function no(e){return e.value||e.innerText||e.textContent}async function rr(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function Qx(e,t,n){await rr(10);let a=new DataTransfer;e.forEach(r=>{r==="plain"&&a.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:a,bubbles:!0,cancelable:!0})),a.clearData(),await rr(10)}async function Zx(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await rr(10))}async function Xx(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await rr(20),(t.value||t.value==="")&&(t.value=e.text)}async function eT(e,t){fs(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await rr(20))}var tT=[Qx.bind(null,["plain"])];function nT(e){let t;fs(e)?t=new InputEvent("beforeinput",{bubbles:!0,cancelable:!0,inputType:"deleteContent"}):t=new KeyboardEvent("keydown",{bubbles:!0,cancelable:!0,keyCode:8,which:8,location:0,key:"Backspace"}),e.dispatchEvent(t)}function fs(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function aT(e){if(fs(e))return;e.focus();let t=window.getSelection();if(!t)return;let n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}async function rT(e,t){await aT(e),await rr(50);let n=Jx(t,e);nT(e),z.debug("clearContent",no(e)),await rr(50);for(let a of[...tT,Xx,eT,Zx])if(await a(n,e),z.debug("setContent",a.name,vf(n,e),no(e),n),vf(n,e))break}function oT(e){et("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage}}],e)}function uT(e,t,n){let a="";e&&e.code&&(a=e.code.toLowerCase());let r="";e&&e.key&&(r=e.key.toLowerCase());let o=e.keyCode,u=n[t]||[];return o===229&&t!=="space"?!1:!!(u.includes(a)||u.includes(r)||a===t||r===t)}async function iT(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await Ht(t,"")||Number(await Ht(N0,0))>0)return;let r=e.rule.inputTutorialsSelectors,o=e.rule.inputTutorialsText;if((r?.length||0)>0&&o)for(let u=0;u{cT()},100),new Promise(c=>{let l=c;if(o){let E=o.querySelector(`.${n}`),x=o.querySelector(`.${r}`),v=o.querySelector(`.${a}`)}else{o=document.createElement("div"),o.className=t+" notranslate",o.id=t;let E=document.createElement("div");E.className=X+"-modal-content notranslate",o.appendChild(E);let x=document.createElement("span");x.textContent="\xD7",x.className=X+"-close",E.appendChild(x),u=document.createElement("div"),u.className=n+" notranslate",E.appendChild(u),s=document.createElement("div"),s.className=a+" notranslate",E.appendChild(s),i=document.createElement("div"),i.className=r,E.appendChild(i),document.body.appendChild(o),x.onclick=function(){D(),c("close")},window.onclick=function(v){v.target==o&&(o.style.display="none",c("close"))}}document.addEventListener("keydown",y);let f=lT.bind(null,e);u.innerHTML=`
${Yi} ${f("modalEnableInputTranslationTitle")}
`,s.innerHTML="";let p=document.createElement("p");p.innerHTML=f("modalEnableInputTranslationDesc",{1:"https://immersivetranslate.com/docs/input/"}),p.style.cssText="margin-bottom:12px",s.appendChild(p);let m=document.createElement("div");m.style.cssText="margin-bottom: 12px;",m.innerHTML=Ne.sanitize(f("disableInputTranslationTips",{option:`${f("option")}`,learnMore:`${f("learnMore")}`})),s.appendChild(m);let g=[{id:"enable-search-enhancement",value:"enable",text:f("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:f("disableOnce")},{id:"disable-global",value:"global",text:f("disableGlobal")}];for(let E=0;E{Ra({sentences:r},{...e,translationService:"google"},(s,c,l)=>{if(s)return u([]);let f=c?.id||0,p=n[f];p&&p.className==X+"-search-title-wrapper"&&(p.innerHTML+=Ne.sanitize(`
${c?.text}
`,{ADD_ATTR:["target"]}))})})}function hs(e,t,n){t&&et(t.key,[{name:t.key}],{...e,sourceLanguage:t.sourceLanguage||n})}function kc(e,t,n,a){let r=n.querySelectorAll('[translate="true"]');return dT(e,t,[...r],a),n}async function Sc(e,t){let a=(await se({url:gT(e),method:"GET",responseType:"raw",headers:{"cache-control":"no-cache","content-type":"application/xml","Sec-Fetch-Site":"none",accept:"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}})).body,o=new DOMParser().parseFromString(a,"text/xml"),u=[],i=o.querySelectorAll("item");for(let s=0;s${e.cancelDescription}
`:""} +`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main div[class*='h-[125]']":"height:auto"},normalizeBody:"body",extraBlockSelectors:["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,normalizeBody:"#mw-content-text",globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"]},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"}},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:"chat.openai.com",excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0}},{id:"newstop",matches:["chat.newstop.asia","chat.waixingyun.cn"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".n-button.n-button--warning-type.n-button--medium-type",messageWrapperSelector:".markdown-body",streamingChange:!1,streamingDeepChild:!0}},{id:"askgpt",matches:["askgpt.cn","chatcat.zhaoyoung.me"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".home_chat-message-status__EsVNi",messageWrapperSelector:".markdown-body",streamingChange:!0,streamingDeepChild:!0}},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__UyYrv *",".MarkdownLink_linkifiedLink__KxC9G"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__UyYrv",streamingChange:!1,streamingDeepChild:!0}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"newthingsunderthesun",matches:"www.newthingsunderthesun.com",additionalSelectors:["[translate=no]"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"https://steamcommunity.com/app/*",globalStyles:{".forum_topic":"height:auto;",".forum_topic_name":"white-space:normal;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampowered",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:"https://www.webofscience.com/*",globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},excludeSelectors:[".summary-left-panel",".authors","app-full-record-keywords mark"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],extraBlockSelectors:["app-summary-authors + div","app-full-record-keywords span span"],observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://www.jetbrains.com/help/*",extraBlockSelectors:["[data-test=prompt]"]},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails p"]},{id:"isEbook",isEbook:!0,isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span"},{id:"isEbookBuilder",isEbookBuilder:!0,isTranslateTitle:!1,targetWrapperTag:"span",selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com",extraBlockSelectors:["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],extraBlockSelectors:"font[face=verdana]"},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"isSubtitleBuilder",isSubtitleBuilder:!0,selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,wrapperPrefix:"",wrapperSuffix:""},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/",extraBlockSelectors:[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"vimeo",matches:"https://player.vimeo.com/video/*",extraBlockSelectors:["span.vp-captions-line","span[class^=CaptionsRenderer_]"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexityAi",matches:"https://www.perplexity.ai/search/*",extraBlockSelectors:[".prose > span"],additionalStayOriginalSelectors:["a.citation"],insertPosition:"afterend"},{id:"perplexity",matches:"https://www.perplexity.ai",globalStyles:{".line-clamp-1":"-webkit-line-clamp: unset !important;",".line-clamp-2":"-webkit-line-clamp: unset !important;"}},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"babelnovel",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*"],urlChangeDelay:0},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0},{globalAttributes:{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"youtrackJetbrains",matches:"youtrack.jetbrains.com/articles/*",selectors:["[role=presentation]","[data-test=article-content]"],excludeSelectors:[".toolbar__ee8"]},{id:"bbc",matches:"www.bbc.com",excludeSelectors:["section.module--languages",".drop-capped"]},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}}},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"openai",matches:"https://platform.openai.com/docs/*",urlChangeDelay:0},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout":"height:unset !important;",".EntrySummary--u4":"-webkit-line-clamp: unset;max-height:unset;",".EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:[".copyable-text > span"],wrapperPrefix:` +`,wrapperSuffix:"
"},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],globalStyles:{"[class*='lineclamp']":"-webkit-line-clamp:unset;"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],extraBlockSelectors:[".SIPGg",".sc-kzMCTH.pSZXj"],globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"]},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*",globalAttributes:{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead"],injectedCss:["a::after {position:relative!important;}"]},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},globalAttributes:{"#app":{class:""}}},{id:"haproxy",matches:["docs.haproxy.org","www.oreilly.com/openbook/opensources/book/*"],excludeTags:[],stayOriginalSelectors:[],stayOriginalTags:[],isTransformPreTagNewLine:!0},{id:"piAi",matches:"pi.ai/talk",excludeSelectors:[".whitespace-pre-wrap > span *"],aiRule:{streamingSelector:"button[class*='fixed'][disabled]",messageWrapperSelector:".whitespace-pre-wrap",streamingChange:!1,streamingDeepChild:!1},globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *"],"excludeTags.remove":["PRE"],injectedCss:"[data-testid='chat-menu-trigger'] br {display:none;}",aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1}},{id:"feishu",matches:"*.feishu.cn","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],excludeSelectors:[".catalogue__list"]},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"bugsWebkit",matches:"bugs.webkit.org",isTransformPreTagNewLine:!0},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",matches:"www.kaggle.com",excludeTags:["i","button"]},{id:"ieee",matches:"spectrum.ieee.org",extraBlockSelectors:["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"www.cnn.com",excludeSelectors:[".ad-slot-header__wrapper"]},{id:"marginalrevolution",matches:"marginalrevolution.com",globalAttributes:{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",condition:{enableSubtitle:{false:{"excludeSelectors.add":[".bpx-player-subtitle-panel-text"]}}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"docs-oracle",matches:"docs.oracle.com",urlChangeDelay:0},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"edstem",matches:"edstem.org","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:"pubmed.ncbi.nlm.nih.gov",urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share"]},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"tldrnewsletter",matches:"actions.tldrnewsletter.com","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"bugzilla",matches:"bugzilla.mozilla.org","excludeTags.remove":["PRE"],isTransformPreTagNewLine:!0},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"excludeSelectors.add":["aside",".DocSearch-Modal"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"mail.qq.com",useIframePostMessage:!1},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]}]};h();h();function er(e){return Array.isArray(e)?e:e?[e]:[]}function bn(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function at(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function xi(e,t){let n={...e};return Wm(n,t),rb(n,t),n}function qm(e,t,n){let a={...t};return ob(e,a,n),a}function rb(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},a=t.condition.enableSubtitle?.false||{},r=e.enableSubtitle?n:a;Wm(e,r)}function ob(e,t,n){try{return Object.keys(t).forEach(a=>{let[r,o]=a.split(".");if(o){let u=t[a];if(Array.isArray(e[r])&&(u=er(t[a])),o==="add"){t[r]=Wo(e[r],u),delete t[a];return}else if(o=="remove"){t[r]=cl(e[r],u),delete t[a];return}}}),Object.keys(n).forEach(a=>{let[r,o]=a.split(".");if(!r||n[a]===void 0)return;let u=n[a],i=t[r];if(Array.isArray(e[r])&&(u=er(n[a]),i=er(t[r])),o==="add"){t[r]=Wo(i,u);return}else if(o=="remove"){t[r]=cl(i,u);return}Array.isArray(i)&&r.startsWith("additional")?t[r]=Wo(i,u):t[r]=u}),t}catch{}}function Wm(e,t){return Object.keys(t).forEach(n=>{let[a,r]=n.split(".");if(!a||t[n]===void 0)return;let o=t[n];if(Array.isArray(e[a])&&(o=er(t[n])),r==="add"){e[a]=Wo(e[a],o);return}else if(r=="remove"){e[a]=cl(e[a],o);return}Array.isArray(e[a])&&a.startsWith("additional")?e[a]=Wo(e[a],o):e[a]=o}),e}function Wo(e,t){let n;if(Array.isArray(e)){let a=er(t);n=[...e,...a],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"&&(n={...e,...t});return n}function cl(e,t){if(Array.isArray(e)){let n=er(t);return e=e.filter(a=>!n.includes(a)),Array.from(new Set(e))}else typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(n=>{delete e[n]});return e}function tr(){if(Ce.PROD==="1")return{};let e={};if(Ce.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&Ce.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:Ce.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:Ce.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&Ce.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:Ce.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:Ce.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:Ce.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:Ce.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&Ce.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:Ce.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:Ce.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&Ce.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:Ce.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:Ce.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:Ce.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(Ce.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=Ce.DEEPL_PROXY_ENDPOINT),Ce.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=Ce.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),Ce.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:Ce.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}Ce.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=Ce.IMMERSIVE_TRANSLATE_SERVICE);let t={};return Ce.DEBUG==="1"&&(t.debug=!0,t.cache=!1),Ce.MOCK==="1"&&(t.translationService="mock"),t}async function $n(){let e=await X.storage.local.get(kr);if(e[kr]){let t=e[kr],n=t.tempTranslationUrlMatches||[],a=n.filter(u=>u.expiredAt>Date.now()),r=!1;a.length!==n.length&&(n=a,r=!0);let o={...t,tempTranslationUrlMatches:[...n]};return r&&await yn(o),o}else return{}}async function yn(e){await X.storage.local.set({[kr]:e})}async function Km(e){await X.storage.local.set({[aa]:e})}async function Aa(){await X.storage.local.set({[aa]:{}})}async function ka(){await X.storage.local.set({[kr]:{}})}async function $m(){let e=await X.storage.local.get(aa),n={...Ti(),...yi,buildinConfigUpdatedAt:Ce.BUILD_TIME};if(e[aa]){let a=e[aa];if(a&&a.buildinConfigUpdatedAt){let r=new Date(a.buildinConfigUpdatedAt),o=new Date(n.buildinConfigUpdatedAt);r>o&&(n=a)}}return n}async function Ge(){let e=await X.storage.local.get(aa),t={...yi,buildinConfigUpdatedAt:Ce.BUILD_TIME};if(e[aa]){let B=e[aa];if(B&&B.buildinConfigUpdatedAt){let A=new Date(B.buildinConfigUpdatedAt),L=new Date(t.buildinConfigUpdatedAt);A>L&&(t=B)}}let n=await Xe.get(ct,null),a={};if(!me()&&X.commands&&X.commands.getAll){let B=await X.commands.getAll();for(let A of B)A.name&&A.shortcut&&(a[A.name]=A.shortcut)}let r=Ti(),o=tr(),u=await Ko(),i=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},s=await $n(),c=new Date;if(s&&s.tempTranslationUrlMatches&&s.tempTranslationUrlMatches.length>0){let B=s.tempTranslationUrlMatches.filter(A=>new Date(A.expiredAt)>c);if(B.length>0){let A=u.translationUrlPattern?u.translationUrlPattern?.matches||[]:[],L=Array.isArray(A)?A:[A],U=Array.from(new Set(L.concat(B.map(K=>K.match))));u.translationUrlPattern={...u.translationUrlPattern,matches:U}}}let l=Object.assign({},i,o,u);if(!l.interfaceLanguage){let B=await ub();l.interfaceLanguage=B}let m=l.interfaceLanguage==="en",p=l.targetLanguage==="en",f=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,g=["bing","google","transmart","mock"].includes(l.translationService)||!l.translationService;!m&&!p&&!f&&g?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let y=t&&t.enableDefaultAlwaysTranslatedUrls;l.enableDefaultAlwaysTranslatedUrls===!1&&(y=!1);let w=l&&l.isChangedAlwaysTranslatedUrls,b=[];l.translationUrlPattern&&l.translationUrlPattern.matches&&(b=l.translationUrlPattern.matches||[]);let S=!1;w===void 0&&(b.length>0?w=!0:w=!1,l.isChangedAlwaysTranslatedUrls=w,u.isChangedAlwaysTranslatedUrls=w,S=!0);let D=(l?.translationLanguagePattern?.matches?.length||0)>0,N=await Ht("installedAt",""),_=Number(await ia("translage_page_daily",0)),x=Number(await Ht(Ln,0)),E;x>0&&(Date.now()-x0&&(Date.now()-_H.id&&U[H.id]?qm(t.generalRule,U[H.id],H):H);R[A]=[...K,...R[A]]}if(Ce.PROD==="0"&&Ce.DEV_RULES){let L=JSON.parse(Ce.DEV_RULES);R[A]=[...L,...R[A]]}}else l[A]!==void 0&&(R[A]=l[A])}return R.donateUrl=t.donateUrl,R.minVersion=t.minVersion,R.feedbackUrl=t.feedbackUrl,R}async function Ko(){return(await X.storage.sync.get("userConfig")||{}).userConfig||{}}async function $o(e){await X.storage.sync.set({userConfig:e})}var ub=async()=>{let e=["zh-CN"];try{e=await X.i18n.getAcceptLanguages()}catch(a){z.warn("get browser language error:",a)}let n=e.map(a=>Qa(a)).find(a=>Qt[a]);return n||"en"},Ti=()=>{let e={...yi,buildinConfigUpdatedAt:Ce.BUILD_TIME};return{...e,targetLanguage:Xu,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing"},rules:[]}};function ib(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(a=>!e.includes(a)).length>0}h();function Go(e){if(Math.abs(e)<1024)return e+" Byte";let n=["KB","MB","GB","TB","PB","EB","ZB","YB"],a=-1;do e/=1024,++a;while(Math.abs(e)>=1024&&as+c.text.length,0)+u.text.length>t||o.tempSentences.length>=n)&&(r.push(o),o={fromByClient:o.fromByClient,from:u.from,to:u.to,tempSentences:[],url:u.url}),(o.from!==u.from||o.to!==u.to)&&(o.tempSentences.length>0?(r.push(o),o={fromByClient:o.fromByClient,from:u.from,to:u.to,tempSentences:[],url:u.url}):(o.from=u.from,o.to=u.to)),o.tempSentences.push(u);return o.tempSentences.length>0&&r.push(o),r}function sb(e,t){let n=[],a=[];for(let r=0;r0?gt){let b=[];dl(y,t,b);for(let S=0;S0&&g{let i=e.lastIndexOf(u,t);return i>o?i:o},-1);if(r===-1){let o=e.slice(0,t);if(o&&!o.trim())return;n.push({text:o,prefix:"",suffix:""}),e.length>t&&dl(e.slice(t),t,n)}else{let o=e.slice(0,r+1);if(o&&o.trim()==="")return;o.startsWith(" ")?n.push({text:o.slice(1),prefix:" ",suffix:""}):n.push({text:o,prefix:"",suffix:""}),r+10){l.forEach(g=>{c.length>0&&g.providers&&g.providers.length>0&&!g.providers.includes(s)||(g.optional?p.push(g):m.push(g))});let f=p.concat(m).filter(g=>g.required);if(f.length>0){for(let g of f)if(!r[g.name]){i=!1;break}}}return{...a,id:t,selected:n[e]===t,ok:i,currentProvider:s,config:r,providers:a.providers||[],props:a.props||[],allProps:l,optionalProps:p,explicitProps:m}}var Ei=(e,t)=>{let{config:n}=e,a=n.alpha,r=n.beta,o=n.canary,u=n.debug,i=e.user,s=Xt(i);return Object.keys(Mn).filter(l=>{let m=Mn[l];if(l.startsWith("mock"))return u?!0:l===e.config[t];if(l===e.config[t])return!0;if(l==="openai"&&ot())return e.config.showOpenaiOnSafari||s?!0:!!(r||a||o||s);let p=!!m.canary,f=!!m.alpha,g=!!m.beta;return l===e[t]||p&&o||f&&(a||o)||g&&(r||a||o)?!0:!f&&!g&&!p}).map(l=>gl(t,l,e))};function Fn(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}h();h();h();h();h();h();h();h();h();var SA=Ym(2),Vm=Ym(3);function Ym(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let a=[];if(n==null)return a;let r=typeof n.slice=="function"?n:String(n),o=r.length-e+1;if(o<1)return a;for(;o--;)a[o]=r.slice(o,o+e);return a}}h();var lb=/\s+/g,cb=/[\t\n\v\f\r ]+/g;function Jm(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?db:gb;return String(e).replace(t.style==="html"?cb:lb,t.trim?mb(n):n)}function db(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function gb(){return" "}function mb(e){return t;function t(n,a,r){return a===0||a+n.length===r.length?"":e(n)}}var Qm={}.hasOwnProperty;function pb(e){return e==null?"":Jm(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function fb(e){return Vm(" "+pb(e)+" ")}function hb(e){let t=fb(e),n={},a=-1;for(;++an&&(n=o,a=r)}return[a,n]}function vb(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function wb(e,t,n,a){t=kb(t,n,a);let r=[],o;if(t)for(o in t)Ci.call(t,o)&&r.push([o,Ab(e,t[o])]);return r.length===0?pl():r.sort(Sb)}function Ab(e,t){let n=0,a=-1;for(;++at.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharactersu+i.length,0));let o=e.length-a;for(let u of Ob){let i=u[1],s=u[0],c=e.match(i),l=c?c.length:0;l>n&&(n=l,t=s)}return n*2.5/o>.5?t==="zh-CN"?op(e)?"zh-TW":"zh-CN":t:"auto"}var ip=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],fl=new Map(ip),Nb=new Map(ip.map(([e,t])=>[t,e]));function sp(e,t,n=["en"]){if(!e)return"auto";let a=n.map(i=>Nb.get(i));!t&&t!==0&&(t=25);let r=wi(e);if(r!=="auto")return r;let o={minLength:t,whitelist:[...fl.keys()]},u=ep(e,o);if(u&&u.length>0){for(let[l,m]of u)if(a.includes(l)&&m>.5)return fl.get(l);let[i,s]=u[0],c=fl.get(i);if(c&&s>.5)return c}return"auto"}h();h();function Da(e,t){var n=(e&65535)+(t&65535),a=(e>>16)+(t>>16)+(n>>16);return a<<16|n&65535}function Ub(e,t){return e<>>32-t}function ki(e,t,n,a,r,o){return Da(Ub(Da(Da(t,e),Da(a,o)),r),n)}function Rt(e,t,n,a,r,o,u){return ki(t&n|~t&a,e,t,r,o,u)}function It(e,t,n,a,r,o,u){return ki(t&a|n&~a,e,t,r,o,u)}function Ot(e,t,n,a,r,o,u){return ki(t^n^a,e,t,r,o,u)}function Nt(e,t,n,a,r,o,u){return ki(n^(t|~a),e,t,r,o,u)}function Ai(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,a,r,o,u,i=1732584193,s=-271733879,c=-1732584194,l=271733878;for(n=0;n>5]>>>t%32&255);return n}function hl(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(a=Ai(a,e.length*8)),n=0;n<16;n+=1)r[n]=a[n]^909522486,o[n]=a[n]^1549556828;return u=Ai(r.concat(hl(t)),512+t.length*8),lp(Ai(o.concat(u),512+128))}function cp(e){var t="0123456789abcdef",n="",a,r;for(r=0;r>>4&15)+t.charAt(a&15);return n}function bl(e){return unescape(encodeURIComponent(e))}function dp(e){return jb(bl(e))}function Hb(e){return cp(dp(e))}function gp(e,t){return zb(bl(e),bl(t))}function qb(e,t){return cp(gp(e,t))}function La(e,t,n){return t?n?gp(t,e):qb(t,e):n?dp(e):Hb(e)}var Nr=[];async function Yo(e,t){return await new Promise((n,a)=>{let r=e,o=1,u=indexedDB.open(r,o);u.onsuccess=i=>{n(u.result)},u.onerror=i=>{a()},u.onupgradeneeded=i=>{let s=u.result,c=t||"cache";s.createObjectStore(c,{keyPath:"key"})}})}async function yl(e){let t=`${Z}-${e.service}@${e.from}->${e.to}`;return await Kb(t,e)}async function xl(e){let t=La(e.originalText),n=`${Z}-${e.service}@${e.from}->${e.to}`;return await Wb(n,t)}async function Wb(e,t){let n=await Yo(e);return await new Promise((a,r)=>{if(!n)return r();let o="cache",i=n.transaction([o],"readonly").objectStore(o).get(t);i.onsuccess=s=>{n.close();let c=i.result;a(c)},i.onerror=s=>{n.close(),r()}})}async function Kb(e,t){let n=await Yo(e);return(await Tl()).includes(e)||await $b(e),await new Promise(r=>{if(!n)return r(!1);let o="cache",i=n.transaction([o],"readwrite").objectStore(o).put(t);i.onsuccess=s=>{n.close(),r(!0)},i.onerror=s=>{n.close(),r(!1)}})}async function $b(e){let t="cache_list",n=await Yo(Z+"-cacheList",t),r=n.transaction([t],"readwrite").objectStore(t).put({key:e});r.onsuccess=o=>{n.close(),Nr.push(e)},r.onerror=o=>{n.close()}}async function Tl(){if(Nr&&Nr.length>0)return Nr;let e=await Yo(Z+"-cacheList","cache_list");return Nr=await new Promise(t=>{let n="cache_list",r=e.transaction([n],"readonly").objectStore(n).getAllKeys();r.onsuccess=o=>{e.close(),t(r.result)},r.onerror=o=>{e.close(),t([])}}),Nr}async function El(){try{let e=[];(await Tl()).forEach(a=>{e.push(Gb(a))});let n=await Promise.all(e);return Go(n.reduce((a,r)=>a+r,0))}catch{return Go(0)}}async function Gb(e){let t=await Yo(e),a=[...t.objectStoreNames].reduce((u,i)=>{let s=Vb(t,i);return u.push(s),u},[]),r=await Promise.all(a);return t.close(),r.reduce((u,i)=>u+i,0)}async function Vb(e,t){return await new Promise((n,a)=>{if(e==null)return a();let r=0,o=e.transaction([t]).objectStore(t).openCursor();o.onsuccess=u=>{let i=o.result;if(i){let s=i.value,c=JSON.stringify(s);r+=c.length,i.continue()}else n(r)},o.onerror=u=>a("error in "+t+": "+u)})}async function mp(){try{let t=(await Tl()).map(a=>Yb(a));return!!(await Promise.all(t)).every(a=>a)}catch{return!1}}async function Yb(e){return await new Promise(t=>{let n=indexedDB.deleteDatabase(e);n.onsuccess=()=>{t(!0)},n.onerror=a=>{t(!1)}})}h();h();h();var pp="G-MKMD9LWFTR";async function et(e,t,n){try{let a=Ke();if(a.INSTALL_FROM==="firefox_store")return;let o=me(),u=pt(),i=a.PROD==="1",s=`report_${e}`,c=e.endsWith("_daily");if(c){if(u)return;let T=await ia(s,0),v=Si(new Date(T)),C=Date.now(),R=Si(new Date(C));if(v===R)return;await Nm(s,C)}else if(!n.config.telemetry)return;let l="sitc4WmvShWYwfU0dANM3Q",m=await Ht("fakeUserId","");m||(m=await ia("fakeUserId",""),m&&await $e("fakeUserId",m));let p=hn(),f=new Date,g=await Ht("installedAt","");g||(g=await ia("installedAt",""),g&&await $e("installedAt",g)),m?g||(g=new Date(0).toISOString(),await $e("installedAt",g)):(m=Jb(32),await $e("fakeUserId",m)),g||(g=f.toISOString(),await $e("installedAt",g));let y=new Date(g),w=Si(y),b=Si(f),S=w===b,D=f.getTime()-y.getTime()<7*24*60*60*1e3,N=`https://www.google-analytics.com/mp/collect?measurement_id=${pp}&api_secret=${l}`;i||(N=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${pp}&api_secret=${l}`);let _=vr.parse(window.navigator.userAgent),x=t.map(T=>{let v=T.params||{};if(_.os&&(v.os_name=_.os.name||"unknown",v.os_version=_.os.version||"unknown",v.os_version_name=_.os.versionName||"unknown"),_.browser&&(v.browser_name=_.browser.name||"unknown",v.browser_version=_.browser.version||"unknown"),_.platform&&(v.platform_type=_.platform.type||"unknown"),_.engine&&(v.engine_name=_.engine.name||"unknown",v.engine_version=_.engine.version||"unknown"),n.translationService&&(v.translation_service||(v.translation_service=n.translationService),n.config.translationServices&&n.config.translationServices[n.translationService]&&(n.config.translationServices[n.translationService].provider&&(v.translation_service_provider=n.config.translationServices[n.translationService].provider),n.translationService==="openai"&&n.config.translationServices[n.translationService].provider==="custom"&&(n.config.translationServices[n.translationService].apiUrl?n.config.translationServices[n.translationService].apiUrl.startsWith("https://api.openai.com/")?v.openai_is_official="1":v.openai_is_official="0":v.openai_is_official="1"))),n.targetLanguage&&(v.target_language=n.targetLanguage),n.config.interfaceLanguage&&(v.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?v.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":v.enable_default_always_translated_urls="0",p&&(v.version=p),n.config.enableInputTranslation?v.enable_input_translation=n.config.enableInputTranslation?"1":"0":v.enable_input_translation="0",n.config.translationTheme&&(v.translation_theme=n.config.translationTheme),n.config.alpha&&(v.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?v.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):v.always_translate_languages="none",a.INSTALL_FROM&&(v.install_from=a.INSTALL_FROM),n.config.beta&&(v.beta=n.config.alpha.toString()),n.config.translationArea&&(v.translation_area=n.config.translationArea),n.rule&&n.rule.enableSearchEnhancement!==void 0&&(v.enable_search_enhancement=n.rule.enableSearchEnhancement?"1":"0"),w&&(v.install_day=Qb(y)),n.user){let R=hm(n.user);R&&Object.keys(R).forEach(M=>{v[M]=R[M]})}else v.user_type="anonymous";n.config.translationMode&&(v.translation_mode=n.config.translationMode),v.userscript=o.toString(),S?v.is_new_user_today="1":v.is_new_user_today="0",D?v.is_new_user_this_week="1":v.is_new_user_this_week="0",n.config.tempTranslateDomainMinutes?v.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():v.temp_translate_domain_minutes="0";let C="html";if(n.rule.isEbook?C="ebookReader":n.rule.isPdf?C="pdfReader":n.rule.isEbookBuilder?C="ebookBuilder":n.rule.isSubtitleBuilder&&(C="subtitleBuilder"),v.page_type=C,u?v.main_frame=0:v.main_frame=1,!c){let R=n.url;try{let M=new URL(R);v.site_host=M.hostname}catch{v.site_host="unknown"}n.sourceLanguage&&(v.source_language=n.sourceLanguage)}return{...T,params:v}}),E=await se({responseType:"text",url:N,method:"POST",body:JSON.stringify({client_id:m,user_id:m,events:x})})}catch{}}function Jb(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;rt.removeEventListener("message",n)),e.length=0}function ty(e,t,n,a){return new Promise(r=>{let o=u=>{let i=u.data;Xb(t,n,i)&&i.id===a&&(e.removeEventListener("message",o),r(i.response))};e.addEventListener("message",o)})}function ny(e,t,n,a){let r=o=>{let u=o.data;xp(t,"tell",n,u)&&a(u.body)};return e.addEventListener("message",r),[e,r]}function fp(e,t,n,a,r,o){let u=async i=>{let s=i.data;if(xp(n,"ask",a,s)){let c=await o(s.body);t=i.source,t.postMessage(Zb(n,a,s.id,c),i.origin)}};return e.addEventListener("message",u),[e,u]}function ay(e,t,n,a,r){let o=Math.random().toString();return e.postMessage(yp(t,"tell",n,o,a),r)}async function hp(e,t,n,a,r,o,u){let i=Math.random().toString(),s=new Promise(async(c,l)=>{let m=setTimeout(()=>l(new Error(`Failed to get response within ${u}ms`)),u),p=await ty(e,n,a,i);clearTimeout(m),c(p)});return t.postMessage(yp(n,"ask",a,i,r),o),s}var Pa=class e{constructor(t,n,a=window,r="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=a;this.targetOrigin=r;fp(a,n,this.getSystemProtocol("ping"),"ping",r,()=>Promise.resolve({}))}static async connect(t,n=10,a=500){for(let r=0;r<=n;r++)try{return await t.ping({timeout:a}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*a}ms`)}static parent(t,n,a="*",r=window){let o=n.contentWindow;if(Ma(o))return new e(t,o,r,a);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:a=window,targetWindow:r=window.parent}={}){return new e(t,r,a,n)}static rootIframe(t,n="*",{thisWindow:a=window}={}){return new e(t,null,a,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await hp(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(ny(this.thisWindow,this.protocol,t,n))}tell(t,n){ay(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(fp(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,a=1e4){if(this.targetWindow)return hp(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,a);throw new Error("target window is requried")}destroy(){ey(this.listeners)}};var Tp;async function Ep(){if(pt()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=Pa.iframe(ti,"*",{targetWindow:t});Tp=n,await Pa.connect(n).catch(a=>{z.error("connect with parent frame error",a)})}}function Di(){return Tp}h();function Cp(e,t){let n=t.matches||[],a=t.excludeMatches||[];if(a&&!Array.isArray(a)&&(a=[a]),n&&!Array.isArray(n)&&(n=[n]),a.length>0){if(a.includes(e)||a.includes(""))return!1;for(let r of a)if(r.includes("*")&&new RegExp(r).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let r of n)if(r.includes("*")&&new RegExp(r).test(e))return!0}return!1}h();h();var ry=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function _n(e,t){if(t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function Cl(e,t,n){let{blockSelectors:a,extraBlockSelectors:r,extraInlineSelectors:o}=t;if(_n(e,o))return!1;if(_n(e,r)||e.nodeName.toLowerCase()==="br")return!0;let s=null;return e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(s=e.parentNode.immersiveTranslateComputedStyle),s&&s.display&&s.display==="inline-flex"?!1:n&&n.display?!!ry.includes(n.display):_n(e,a)}var qt=_n;function nr(e){return!!e.shadowRoot}function Fa(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function Jo(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Li(e){let t=Ga;return e&&(t=e),t}function Mi(e,t){return Sa(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function oy(e){let{rule:t}=e,n=e.config.loadingTheme;return` <${t.targetWrapperTag} class="${Z}-loading-${n} notranslate">`}function Qo(e,t){let n=e.rule,a=document.createElement(n.targetWrapperTag);a.classList.add("notranslate",un),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),ft(a,Ug,t.toString());let r=oy(e);return a.append(Ne.sanitize(r,{RETURN_DOM_FRAGMENT:!0})),a}function Ur(e,t){return e.querySelector(`[${U0}='${t}']`)}function vp(){document.querySelectorAll(`[${U0}]`).forEach(t=>{t.remove()})}function wp(){document.querySelectorAll(`.${un}-error`).forEach(t=>{t.remove()})}function Ap(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{_r(n)&&t.push(n)}),t}function kp(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:a,delimiters:r,text:o}=e,u=new RegExp(`${r[0]}(\\d+)${r[1]}`,"gi");if(r.length>2){let s=r[2];u=new RegExp(`<${s}(\\d+)>(.*?)`,"gi")}let i=o.trim();return i=i.replace(u,""),i=i.trim(),i===""||i.length===1&&i.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(o)||i.includes("")||i.includes("< styles>")||dm(i)||im(i)||cm(i)||sm(i)||lm(i)||u.test(i)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(i)?!1:ri(o,n,a)}function Bn(e){return e.nodeType===Node.ELEMENT_NODE}function Sp(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}function Dp(e){try{let t=Math.floor((new Date-new Date(e))/1e3);return t<60?`${t} \u79D2\u524D`:t<3600?`${Math.floor(t/60)} \u5206\u949F\u524D`:t<86400?`${Math.floor(t/3600)} \u5C0F\u65F6\u524D`:`${Math.floor(t/86400)} \u5929\u524D`}catch{return e}}function Lp(e){let t=new Date(e),n=t.getFullYear(),a=t.getMonth()+1,r=t.getDate(),o=t.getHours(),u=t.getMinutes(),i=t.getSeconds();return`${n}/${a}/${r} ${o}:${u}:${i}`}async function Mp(e){let n=Ke().INSTALL_FROM,a=hn(),r=await Ht("installedAt",""),o=await Ht("fakeUserId","");return{installFrom:n,version:a,installedAt:r,interfaceLang:e,deviceId:o}}var uy=1e5;function _a(e){let{onParagraph:t,filterRule:n,id:a}=e;n=iy(n);let{stayOriginalSelectors:r,globalStyles:o,selectors:u,isTransformPreTagNewLine:i,lineBreakMaxTextCount:s,globalAttributes:c,isModifyImage:l,skipEditableCheck:m}=n,p={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},f=!1,g=null;function y(_){let{container:x,onFrame:E,onIgnoreElement:T,id:v}=_,C=document.createTreeWalker(x,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,k=>{let P=M(k);return P==NodeFilter.FILTER_ACCEPT?tn.mark(k,v,m):P==NodeFilter.FILTER_REJECT,P}),R=x;if(M(R)===NodeFilter.FILTER_REJECT)return;for(tn.mark(R,v,m);R;){if(u&&u.length>0){let{currentNode:k,isMatchedSelection:P}=w(C,R,u);if(k)R=k;else break;if(!P)continue}if(R.nodeType===Node.ELEMENT_NODE||R.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let k=R;if(k.nodeName==="IFRAME"){E&&E(k),b(),vl(p,!0),R=C.nextNode();continue}k.nodeType===Node.ELEMENT_NODE&&(o&&Al(k,o),c&&Sl(k,c));let P=Cl(k,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},k.immersiveTranslateComputedStyle||null);if(qt(k,r)&&!P){S(k);let B=null;for(;!(B=C.nextSibling())&&C.parentNode(););R=B;continue}let O=nr(k);(!Pp(p,k)||P)&&(b(),k.childNodes.length>0&&D(p,k,k.immersiveTranslateComputedStyle||null)),O&&k.shadowRoot?.mode==="open"&&(P?E?.(k.shadowRoot):y({..._,container:k.shadowRoot})),k.nodeType===Node.ELEMENT_NODE&&k.nodeName==="PRE"&&i&&dy(k)}else if(R.nodeType===Node.TEXT_NODE)S(R);else throw new Error("should not be here");R=C.nextNode(),p.commonAncestorContainer&&R&&R.parentNode===p.commonAncestorContainer&&(p._currentStacks=[]),p.commonAncestorContainer&&R&&R.nodeType===Node.ELEMENT_NODE&&p._currentStacks.push(R)}function M(k){if(k.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Bn(k)){if(c){let B=Object.keys(c);if(B.length>0&&qt(k,B))for(let L of B){let U=c[L];if(k.matches(L)){let K=c[L],H=Object.keys(K);for(let V of H){let q=K[V];k.getAttribute(V)!==q&&(q===null?k.removeAttribute(V):k.setAttribute(V,q))}break}}}if(!_.force&&tn.isMarked(k,v)||Sp(k,v)||Dl(k,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,stayOriginalSelectors:r})||k.nodeName==="IFRAME"&&!_r(k))return NodeFilter.FILTER_REJECT;let P=k.getBoundingClientRect(),{width:O,height:j}=P;if(k.nodeType===Node.ELEMENT_NODE){let B=window.getComputedStyle(k);if(k.immersiveTranslateComputedStyle={display:B.display,whiteSpace:B.whiteSpace,left:P.left+"px",right:P.right+"px",top:P.top+"px",bottom:P.bottom+"px"},kl(k.immersiveTranslateComputedStyle))return T&&T(k),NodeFilter.FILTER_REJECT;let A=Cl(k,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},k.immersiveTranslateComputedStyle||null);if(qt(k,r)&&A)return NodeFilter.FILTER_REJECT}return k.nodeName==="IMG"&&(O>48&&j>48?k.immersiveTranslateComputedStyle={display:"block"}:O>0&&j>0&&l!==!1&&(k.setAttribute("width",O),k.setAttribute("height",j))),!k.childNodes||k.childNodes&&k.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!p.isPreWhitespace&&(O>0&&O<4||j>0&&j<4)&&(k.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(k.nodeType===Node.TEXT_NODE){let P=k.textContent?.trim();if(!P)return p.isPreWhitespace?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let O=k.parentNode;if(O.getBoundingClientRect){let{width:j,height:B}=O.getBoundingClientRect();if(j>0&&j<4||B>0&&B<4)return NodeFilter.FILTER_REJECT}return s>0&&P.length>=s&&wl(k,s),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}y(e),p&&p.commonAncestorContainer&&p.flatNodes.length>0&&b();function w(_,x,E){let T=x.immersiveTranslateComputedStyle||null;if(g){if(!g.contains(x))if(f=!1,x&&x.nodeType===Node.ELEMENT_NODE)if(Pi(x,E))f=!0,g=x,b(),D(p,g,T);else return f=!1,x=_.nextNode(),{currentNode:x,isMatchedSelection:f};else return f=!1,x=_.nextNode(),{currentNode:x,isMatchedSelection:f}}else if(x&&x.nodeType===Node.ELEMENT_NODE)if(Pi(x,E))f=!0,g=x,b(),D(p,g,T);else return f=!1,x=_.nextNode(),{currentNode:x,isMatchedSelection:f};else return f=!1,x=_.nextNode(),{currentNode:x,isMatchedSelection:f};return{currentNode:x,isMatchedSelection:!0}}function b(){let _=cy(p,a);_&&t&&t(_),vl(p)}function S(_){if(!Pp(p,_)){b(),vl(p);let x=_.parentNode;x&&D(p,x,x.computedStyle)}p.flatNodes.push(_)}function D(_,x,E){_.commonAncestorContainer=x;let T=N(E);_.isPreWhitespace=T}function N(_){return _&&_.whiteSpace&&_.whiteSpace.startsWith("pre")||_&&_.whiteSpace==="break-spaces"||!1}}function Pp(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=nr(t));let a=ly(e),r=!0;return!n&&!a&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?r=!0:e.commonAncestorContainer&&(r=!1,e._currentStacks=[])),r}function iy(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let a=n!=="iframe";return t?a&&n!=="pre":a}),e}function sy(e,t,n){if(t){for(let a of t.childNodes)if(a.contains(n))return a}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function Al(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let r of n){let o=t[r];if(e.matches(r)){let u=e.style.cssText||"";u&&(u=u.trim()),u&&!u.endsWith(";")&&(u+=";"),e.style.cssText=u+o;break}}}}function ly(e){return e&&e._currentStacks?e._currentStacks.some(t=>nr(t)):!1}function cy(e,t){let{flatNodes:n,commonAncestorContainer:a}=e;if(a&&n.length>0){if(!n.map(p=>p.textContent?.trim()||"").join(""))return null;if(n.length===1)return{ctxId:t,stepState:1,commonAncestorContainer:n[0].parentNode,rootNodes:[n[0]],flatNodes:n,isPreWhitespace:e.isPreWhitespace,variables:{}};let o=gy(n,a);o||(o=a);let u=[];for(let p of n){let f=sy(e,o,p);f&&(u.includes(f)||u.push(f))}if(u.length<1)return null;let i=u[0],s=u[u.length-1],c=[],l=i,m=0;for(;l&&(c.push(l),l!==s);){if(m++,m>uy){z.warn("loop too many times for convert root nodes, break");break}l=l.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:n,commonAncestorContainer:o,variables:{},isPreWhitespace:e.isPreWhitespace}}else return null}function vl(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function kl(e){let t=e.top?parseInt(e.top):0,n=e.left?parseInt(e.left):0,a=e.right?parseInt(e.right):0,r=e.bottom?parseInt(e.bottom):0;return isNaN(t)&&(t=0),isNaN(n)&&(n=0),isNaN(a)&&(a=0),isNaN(r)&&(r=0),e.display==="none"||t<-1e3||n<-1e3||a<-1e3||r<-1e3}var tn={_marked_key:"immersive_translate_walked",isMarked(e,t){return V0(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||nr(e)))return ui(e,this._marked_key)},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||nr(e)))return ft(e,this._marked_key,t,!1,n)},markWalk(e,t,n){if(!e||e.nodeType!==Node.ELEMENT_NODE||this.isSkipMarkEle(e))return;let a=Pr(e,"markWalk")||"";return ft(e,"markWalk",a+","+t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||nr(e)):!1}};function dy(e){let n=e.innerHTML.replace(/\n\n/g,"
");e.innerHTML=Ne.sanitize(n)}function gy(e,t){if(!e.length)return null;let n=e.map(a=>{let r=new Set;for(;(a=a.parentNode)&&(r.add(a),a!==t););return r});for(let a of n[0])if((a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&n.every(r=>r.has(a)))return a;return null}function wl(e,t){let n=e.textContent||"";if(n.trim().length<=t)return;let o=[". ","? ","! ","\u3002","\uFF1F","\uFF01"].reduce((u,i)=>{let s=n.lastIndexOf(i,t);return s>u?s:u},-1);if(o>1){let u=n[o-1]||"",i=n[o-2]||"",s=n[o+1]||"";u==="."||s==="."||s===")"||i==="."&&u==="S"||i.toUpperCase()==="M"&&(u.toUpperCase()==="R"||u.toUpperCase()==="S")?o=-1:isNaN(Number(u))||(o=-1)}if(o===-1)n.length>t+20&&wl(e,t+20);else{let u=n.slice(o+1);o++,u.startsWith(" ")&&o++;let i=e.splitText(o),s=document.createElement("br");i.parentNode?.insertBefore(s,i),o+10)for(let a of n){let r=t[a],o=Object.keys(r),u=am(e,[a]);for(let i of u)for(let s of o){let c=r[s];i.getAttribute(s)!==c&&(c===null?i.removeAttribute(s):i.setAttribute(s,c))}}}function _p(e,t,n,a,r,o){let u=Object.keys(t);if(u.length>0)for(let i of u){let s=t[i],c=Object.keys(s),l=e.querySelector(i);if(l)for(let m of c){let p=s[m];if(m==="translate"&&p==="no"){let g=l.innerText||l.textContent||"";if(!g.trim()||my(l,r,o)||!om(g,n,a))continue}l.getAttribute(m)!==p&&(p===null?l.removeAttribute(m):l.setAttribute(m,p))}}}function Sl(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let r of n){let o=t[r];if(e.matches(r)){let u=t[r],i=Object.keys(u);for(let s of i){let c=u[s];e.getAttribute(s)!==c&&(c===null?e.removeAttribute(s):e.setAttribute(s,c))}break}}}}function Dl(e,t){return qt(e,t.excludeSelectors||[])?qt(e,t.selectors||[])?!1:!qt(e,t.stayOriginalSelectors||[]):!1}function Pi(e,t){if(t.length===0)return!1;let n=t.filter(a=>!a.endsWith("*")).map(a=>a+" *");return qt(e,t.concat(n))}function my(e,t,n){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,r=>NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let r=a.currentNode;if(r.nodeType===Node.TEXT_NODE&&parent){let o=r.textContent||"";if(o.includes("Copyright"))continue;if(ri(o,t,n))return!0}}return!1}h();h();var Bp=["*://*/*","*","*://*"],Ip="immersive-translate-wildcard-placeholder.com";function Ll(e,t){let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(u=>Bp.includes(u)))return e;let a=new URL(e);a.hash="",a.search="";let r=a.href,o=a.hostname;if(n&&n.length>0){let u=n.find(i=>{let s=i;if(i===o)return!0;if(Bp.includes(i))return!0;if(!i.includes("*")&&i.includes("://")){try{let c=new URL(i);return c.pathname==="/"&&!i.endsWith("/")?c.hostname===o:fy(r,i)}catch{}return!1}else{let c,l=i;if(i.includes("://")){let w=i.split("://");c=w[0],c==="*"&&w.length>1&&(c="*",i="https://"+w[1])}else c="*",i="https://"+i;let m=i.replace(/\*/g,Ip),p;try{p=new URL(m)}catch{return z.debug("invalid match pattern",m,"raw match value:",l),!1}let f=p.hostname,g=p.pathname;g==="/"&&(l.replace("://","").includes("/")||(g="/*"));let y=py(c+":",Rp(f),Rp(g));if(y){let w=new URL(r);return w.port="",y.test(w.href)}else return!1}});if(u)return u}return null}function Rp(e){return e.replaceAll(Ip,"*")}function py(e,t,n){let a="^";return e==="*:"?a+="(http:|https:|file:)":a+=e,a+="//",t&&(e==="file:"||(t==="*"?a+="[^/]+?":(t.match(/^\*\./)&&(a+="[^/]*?",t=t.substring(2)),a+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?a+="(/.*)?":n.includes("*")?(a+=n.replace(/\*/g,".*?"),a+="/?"):a+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):a+="/?",a+="$",new RegExp(a)}function Gn(e,t){return Ll(e,t)!==null}function fy(e,t){let n=new URL(e),a=new URL(t);return n.hostname===a.hostname&&n.pathname===a.pathname&&n.protocol===a.protocol&&n.port===a.port}h();h();var jr="input is invalid type",Ml=typeof window=="object",Ba=Ml?window:{};Ba.JS_SHA256_NO_WINDOW&&(Ml=!1);var hy=!Ml&&typeof self=="object",by=!Ba.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;by?Ba=global:hy&&(Ba=self);var tS=!Ba.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,nS=typeof define=="function"&&define.amd,Zo=!Ba.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",de="0123456789abcdef".split(""),yy=[-2147483648,8388608,32768,128],Rn=[24,16,8,0],Fi=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],_i=["hex","array","digest","arrayBuffer"],vt=[];(Ba.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});Zo&&(Ba.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var Op=function(e,t){return function(n){return new wt(t,!0).update(n)[e]()}},Up=function(e){var t=Op("hex",e);t.create=function(){return new wt(e)},t.update=function(r){return t.create().update(r)};for(var n=0;n<_i.length;++n){var a=_i[n];t[a]=Op(a,e)}return t},Np=function(e,t){return function(n,a){return new Bi(n,t,!0).update(a)[e]()}},jp=function(e){var t=Np("hex",e);t.create=function(r){return new Bi(r,e)},t.update=function(r,o){return t.create(r).update(o)};for(var n=0;n<_i.length;++n){var a=_i[n];t[a]=Np(a,e)}return t};function wt(e,t){t?(vt[0]=vt[16]=vt[1]=vt[2]=vt[3]=vt[4]=vt[5]=vt[6]=vt[7]=vt[8]=vt[9]=vt[10]=vt[11]=vt[12]=vt[13]=vt[14]=vt[15]=0,this.blocks=vt):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=e}wt.prototype.update=function(e){if(!this.finalized){var t,n=typeof e;if(n!=="string"){if(n==="object"){if(e===null)throw new Error(jr);if(Zo&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!Zo||!ArrayBuffer.isView(e)))throw new Error(jr)}else throw new Error(jr);t=!0}for(var a,r=0,o,u=e.length,i=this.blocks;r>2]|=e[r]<>2]|=a<>2]|=(192|a>>6)<>2]|=(128|a&63)<=57344?(i[o>>2]|=(224|a>>12)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<>2]|=(240|a>>18)<>2]|=(128|a>>12&63)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<=64?(this.block=i[16],this.start=o-64,this.hash(),this.hashed=!0):this.start=o}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};wt.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=yy[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};wt.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,o=this.h5,u=this.h6,i=this.h7,s=this.blocks,c,l,m,p,f,g,y,w,b,S,D;for(c=16;c<64;++c)f=s[c-15],l=(f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3,f=s[c-2],m=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10,s[c]=s[c-16]+l+s[c-7]+m<<0;for(D=t&n,c=0;c<64;c+=4)this.first?(this.is224?(w=300032,f=s[0]-1413257819,i=f-150054599<<0,a=f+24177077<<0):(w=704751109,f=s[0]-210244248,i=f-1521486534<<0,a=f+143694565<<0),this.first=!1):(l=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),m=(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7),w=e&t,p=w^e&n^D,y=r&o^~r&u,f=i+m+y+Fi[c]+s[c],g=l+p,i=a+f<<0,a=f+g<<0),l=(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10),m=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),b=a&e,p=b^a&t^w,y=i&r^~i&o,f=u+m+y+Fi[c+1]+s[c+1],g=l+p,u=n+f<<0,n=f+g<<0,l=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),m=(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7),S=n&a,p=S^n&e^b,y=u&i^~u&r,f=o+m+y+Fi[c+2]+s[c+2],g=l+p,o=t+f<<0,t=f+g<<0,l=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),m=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),D=t&n,p=D^t&a^S,y=o&u^~o&i,f=r+m+y+Fi[c+3]+s[c+3],g=l+p,r=e+f<<0,e=f+g<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+a<<0,this.h4=this.h4+r<<0,this.h5=this.h5+o<<0,this.h6=this.h6+u<<0,this.h7=this.h7+i<<0};wt.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,o=this.h5,u=this.h6,i=this.h7,s=de[e>>28&15]+de[e>>24&15]+de[e>>20&15]+de[e>>16&15]+de[e>>12&15]+de[e>>8&15]+de[e>>4&15]+de[e&15]+de[t>>28&15]+de[t>>24&15]+de[t>>20&15]+de[t>>16&15]+de[t>>12&15]+de[t>>8&15]+de[t>>4&15]+de[t&15]+de[n>>28&15]+de[n>>24&15]+de[n>>20&15]+de[n>>16&15]+de[n>>12&15]+de[n>>8&15]+de[n>>4&15]+de[n&15]+de[a>>28&15]+de[a>>24&15]+de[a>>20&15]+de[a>>16&15]+de[a>>12&15]+de[a>>8&15]+de[a>>4&15]+de[a&15]+de[r>>28&15]+de[r>>24&15]+de[r>>20&15]+de[r>>16&15]+de[r>>12&15]+de[r>>8&15]+de[r>>4&15]+de[r&15]+de[o>>28&15]+de[o>>24&15]+de[o>>20&15]+de[o>>16&15]+de[o>>12&15]+de[o>>8&15]+de[o>>4&15]+de[o&15]+de[u>>28&15]+de[u>>24&15]+de[u>>20&15]+de[u>>16&15]+de[u>>12&15]+de[u>>8&15]+de[u>>4&15]+de[u&15];return this.is224||(s+=de[i>>28&15]+de[i>>24&15]+de[i>>20&15]+de[i>>16&15]+de[i>>12&15]+de[i>>8&15]+de[i>>4&15]+de[i&15]),s};wt.prototype.toString=wt.prototype.hex;wt.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,o=this.h5,u=this.h6,i=this.h7,s=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,a>>24&255,a>>16&255,a>>8&255,a&255,r>>24&255,r>>16&255,r>>8&255,r&255,o>>24&255,o>>16&255,o>>8&255,o&255,u>>24&255,u>>16&255,u>>8&255,u&255];return this.is224||s.push(i>>24&255,i>>16&255,i>>8&255,i&255),s};wt.prototype.array=wt.prototype.digest;wt.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function Bi(e,t,n){var a,r=typeof e;if(r==="string"){var o=[],u=e.length,i=0,s;for(a=0;a>6,o[i++]=128|s&63):s<55296||s>=57344?(o[i++]=224|s>>12,o[i++]=128|s>>6&63,o[i++]=128|s&63):(s=65536+((s&1023)<<10|e.charCodeAt(++a)&1023),o[i++]=240|s>>18,o[i++]=128|s>>12&63,o[i++]=128|s>>6&63,o[i++]=128|s&63);e=o}else if(r==="object"){if(e===null)throw new Error(jr);if(Zo&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!Zo||!ArrayBuffer.isView(e)))throw new Error(jr)}else throw new Error(jr);e.length>64&&(e=new wt(t,!0).update(e).array());var c=[],l=[];for(a=0;a<64;++a){var m=e[a]||0;c[a]=92^m,l[a]=54^m}wt.call(this,t,n),this.update(l),this.oKeyPad=c,this.inner=!0,this.sharedMemory=n}Bi.prototype=new wt;Bi.prototype.finalize=function(){if(wt.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();wt.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),wt.prototype.finalize.call(this)}};var zr=Up();zr.sha256=zr;zr.sha224=Up(!0);zr.sha256.hmac=jp();zr.sha224.hmac=jp(!0);var zp=zr;var Hp=zp.sha256;function In(e){return Promise.resolve(Hp(e))}function Ri(e){return Array.from(new Uint8Array(e)).map(a=>a.toString(16).padStart(2,"0")).join("")}function Ra(e,t){let n=Hp.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function qp(e,t){let n=await Ra(e,t);return Ri(n)}async function Ii(e,t){let n=xy(t),a=await Ra(e,n);return Ri(a)}function xy(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}h();var Kp="auto",Oi="auto",Wp="auto";function $p(e){Kp=e}function xn(e){Oi=e}function Dt(){return Oi!=="auto"?Oi:Wp!=="auto"?Wp:Kp}function Ni(){return Oi}async function Lt(e){let{url:t,config:n,state:a}=e,r=new URL(t),o="auto",{translationParagraphLanguagePattern:u,translationService:i,translationServices:s,translationTheme:c,translationThemePatterns:l,translationUrlPattern:m,targetLanguage:p,sourceLanguageUrlPattern:f,immediateTranslationPattern:g}=n,y=Hr(t,u),w=Hr(t,g),b=i,S=Object.keys(s);for(let Y of S){let ce=s[Y];if(Hr(t,ce)){b=Y;break}}let D=c,N=Object.keys(l);for(let Y of N){let ce=l[Y];if(ce&&Hr(t,ce)){D=Y;break}}let _=Hr(t,m),x=Gp(t,m);x||(x=Gn(t,Zg)),x||(x=Gn(t,n.blockUrls));let E=Gp(t,n.inputTranslationUrlPattern);E||(E=Gn(t,n.inputTranslationBlockUrls));let T=Gn(t,n.mutationBlockUrls),v=Object.keys(f),C={};for(let Y of v){let ce=f[Y];if(ce&&ce.matches)for(let fe of ce.matches)C[fe]=Y}let R=Object.keys(C),M=Ll(t,R);M&&(o=C[M]??"auto",C[M]&&C[M]!=="auto"&&xn(C[M]));let k=p||"zh-CN",P=r.hostname,O=await In(P),j=r.pathname+r.search+r.hash,B=await In(j),A=`https://${O}.com/${B}`,L=await $n(),U=await $m(),K=n.translationStartMode;K==="dynamic"&&w&&(K="immediate");let H=b;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(H=n.inputTranslationService);let V=b;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(V=n.mouseHoverTranslationService);let q={targetLanguage:k,config:n,translationService:b,inputTranslationService:H,mouseHoverTranslationService:V,isTranslateUrl:_,sourceLanguage:o,mainFrame:document.body,isTranslateExcludeUrl:x,isMutationTranslationExcludeUrl:T,isInputTranslationExcludeUrl:E,rule:n.generalRule,url:t,encryptedUrl:A,state:a?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:K,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:y,cache:n.cache,translationTheme:D},a):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:K,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:y,cache:n.cache,translationTheme:D},localConfig:L},oe=await Xe.get(ct,null);oe&&(q.user=oe),q.state.translationArea==="body"&&(q.config.generalRule.excludeTags=q.config.generalRule.excludeTags.filter(Y=>!q.config.generalRule.bodyTranslateTags.includes(Y)),q.config.generalRule.additionalExcludeSelectors=q.config.generalRule.additionalExcludeSelectors.filter(Y=>Y!==".btn"));let Q=n.translationServices[q.translationService]||{};Q.immediateTranslationTextCount!==void 0&&Ty(Q.immediateTranslationTextCount)&&Q.immediateTranslationTextCount>=0&&(q.state.immediateTranslationTextCount=Q.immediateTranslationTextCount),q.translationService==="deepl"&&(Q&&Q.authKey&&Q.authKey.startsWith("immersive_")||Q&&Q.provider==="pro"&&q.user?.token)&&Q.immediateTranslationTextCountForImmersiveDeepl!==void 0&&Q.immediateTranslationTextCountForImmersiveDeepl>=0&&(q.state.immediateTranslationTextCount=Q.immediateTranslationTextCountForImmersiveDeepl),Q&&Q.translationDebounce&&typeof Q.translationDebounce=="number"&&(q.state.translationDebounce=Q.translationDebounce);let J=U.immediateTranslationTextCount;n.immediateTranslationTextCount!==J&&(q.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let ye=n.rules,xe;globalThis.PDFViewerApplication?xe=ye.find(Y=>Y.isPdf):globalThis.immersiveTranslateEbookViewer?xe=ye.find(Y=>Y.isEbook):globalThis.immersiveTranslateEbookBuilder?xe=ye.find(Y=>Y.isEbookBuilder):xe=ye.find(Y=>Hr(t,Y)),q.state.translationArea==="body"&&(q.rule.paragraphMinTextCount=1,q.rule.paragraphMinWordCount=1),xe&&xe.isEbookBuilder&&(q.state.translationStartMode="immediate");let ie=n.generalRule;if(xe&&(q.rule=xi(ie,xe)),q.rule.selectors.length>0&&(q.rule.paragraphMinTextCount=2,q.rule.paragraphMinWordCount=1),q.state.translationArea==="body"&&q.rule.excludeTags&&(q.rule.excludeTags=q.rule.excludeTags.filter(Y=>!q.rule.bodyTranslateTags.includes(Y)&&!q.rule.forceTranslateTags.includes(Y))),q.rule.mainFrameSelector){let Y=document.querySelector(q.rule.mainFrameSelector);Y&&(q.mainFrame=Y)}return q}function Hr(e,t){if(!t)return!1;let{matches:n,excludeMatches:a,selectorMatches:r,excludeSelectorMatches:o}=t;return a&&a.length>0&&Gn(e,a)?!1:n&&n.length>0&&Gn(e,n)?!0:o&&o.length>0&&oi(o)?!1:!!(r&&r.length>0&&oi(r))}function Gp(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:a}=t;return!!(n&&n.length>0&&Gn(e,n)||a&&a.length>0&&oi(a))}function Ty(e){return typeof e=="number"}h();h();async function Vp(){let e="auto",t=[Za(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await it({text:Mr(document.body),pageLangs:t})),e}h();h();h();function qr(e,t,n=[],a){let r=["notranslate"];return a&&r.push(Gg),e&&(r.push(`${Z}-target-translation-theme-${e}`),t?r.push(`${z0}-theme-${e}`):r.push(`${j0}-theme-${e}`)),n.length>0&&r.push(...n),t?r.push(z0):r.push(j0),r}function Wr(e){let t=["notranslate",Kg];return e&&t.push(`${Z}-target-translation-theme-${e}-inner`),t}function Yp(e,t,n){let{rule:a,state:r}=n,{translationTheme:o}=r,{variables:u,isVertical:i}=e;u=u||[];let{text:s}=t,{wrapperPrefix:c,wrapperSuffix:l}=a,m=Fr(n),p="afterend",f=m[0],g=m[1],y=`${f}(\\d+)${g}`,w=new RegExp(y,"g"),b=Ne.sanitize(s);u.length>0&&(b=b.replace(w,_=>{let x=b.indexOf(_),E=b[x-1]===" ",T=b[x+_.length]===" ",v=_.slice(m[0].length,-m[1].length),C=Number(v);if(isNaN(C))return _;let R=u[Number(C)];if(R&&R.type==="element"){let M=R.value.outerHTML;return E||(M=" "+M),T||(M=M+" "),M}else z.error("variable type not supported",R,_);return _}));let S=qr(o,e.inline,a.translationClasses||[],e.preWhitespace);i&&S.push($g);let D=Wr(o),N="";return a.translationBlockStyle&&(N=`style="${a.translationBlockStyle}"`),b=`<${n.rule.targetWrapperTag} ${N} class="${S.join(" ")}" ${Kn}="1"><${a.targetWrapperTag} class="${D.join(" ")}" ${Kn}="1">${b}`,e.inline||(c==="smart"?b=`
${b}`:b=`${c}${b}`),e.inline&&(c!=="smart"?b=`${c}${b}`:b=`<${a.targetWrapperTag} class="notranslate" ${Kn}="1"> ${b}`),l==="smart"?b=`${b}`:b=`${b}${l}`,{html:b,position:p}}function Ui(e,t){let n=null,{stayOriginalSelectors:a,delimiters:r,isPreWhitespace:o}=t,u=[],i={};for(let s=0;s2&&(w=`<${r[2]}${y}>`),i[y]=c,u.push({text:w,type:"variable"})}else u.push({text:c.textContent||"",type:"text"});else{let g=c.textContent||"";m&&(g=Fa(Pl(c))),u.push({text:g,type:"text"})}else if(c.nodeType===Node.ELEMENT_NODE)if(c&&qt(c,a)){let y=Object.keys(i).length,w=`${r[0]}${y}${r[1]}`;r.length>2&&(w=`<${r[2]}${y}>`),i[y]=c;let b=Fl(u).endsWith(" ")?" ":"",S=Fa(c.innerText||c.textContent),D=Fa(c.nextSibling).startsWith(" ")?" ":"",N=Jo(b+S+D),_=N[0]+w+N[1];if(b===" ")_=_.trimStart();else if(!_.startsWith(" ")){let x=Jo(c.previousSibling)[1];x===""&&(x=" "),_=x+_}u.push({text:_,type:"variable"})}else{let g=Fl(u).endsWith(" ")?" ":"",y=Fa(c.innerText||c.textContent);m&&(y=Fa(Pl(c)));let w=Fa(c.nextSibling).startsWith(" ")?" ":"",b=Jo(g+y+w),S=b[0]+(c.innerText?.trim()||c.textContent?.trim()||"")+b[1];if(g===" ")S=S.trimStart();else{let D=Jo(c.previousSibling)[1];D===""&&(c.nodeName==="A"||c.nodeName==="CODE")&&(D=" "),S=D+S}u.push({text:S,type:"text"})}else{let g=Fl(u).endsWith(" ")?" ":"",y="";c.textContent&&(y=Fa(Pl(c))),g===" "&&(y=y.trimStart()),u.push({text:y,type:"text"})}}if(u&&u.length>0){let s="";for(let c=0;c0&&(m=u[c-1].text),c2){let l=c[2];return Ey({delimiterTag:l,targetText:e.targetText,inline:r,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:a}).html}else{let l=Yp(s,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return l.html}}function Pl(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function Ey(e){let{delimiterTag:t,inline:n,translationClasses:a,targetWrapperTag:r,wrapperPrefix:o,variables:u,preWhitespace:i,wrapperSuffix:s,translationTheme:c,translationBlockStyle:l}=e;u=u||[];let m=e.targetText;m=Ne.sanitize(m);let p=m,f=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),g=new RegExp(`<${t}(\\d+)>`);u.length>0&&(p=p.replace(f,S=>{let D=p.indexOf(S),N=p[D-1]===" ",_=p[D+S.length]===" ",x=S.match(g);if(!x)return S;let E=x[1],T=Number(E);if(isNaN(T))return S;let v=u[Number(T)];if(v&&v.type==="element"){let C=v.value.outerHTML;return N||(C=" "+C),_||(C=C+" "),C}else if(v&&v.type==="text"){let C=v.value;return N||(C=" "+C),_||(C=C+" "),C}else z.error("variable type not supported",v,S);return S}));let y=qr(c,n,a||[],i),w=Wr(c),b="";return l&&(b=`style="${l}"`),p=`<${r} ${b} class="${y.join(" ")}" ${Kn}="1"><${r} class="${w.join(" ")}" ${Kn}="1">${p}`,n||(o==="smart"?p=`
${p}`:p=`${o}${p}`),n&&(o!=="smart"?p=`${o}${p}`:p=`<${r} class="notranslate" ${Kn}="1"> ${p}`),s==="smart"?p=`${p}`:p=`${p}${s}`,{html:p,position:"afterend"}}function Fl(e){let t=e[e.length-1];return t?t.text:""}function Tn(e){let t=e.rule.selectors,n=e.rule.excludeTags,a=e.rule.additionalExcludeTags,r=e.rule.excludeSelectors,o=e.rule.additionalExcludeSelectors;return e.state.translationArea==="body"&&(t=[],r=[]),{globalStyles:e.rule.globalStyles,globalAttributes:e.rule.globalAttributes,selectors:t,skipEditableCheck:e.rule.skipEditableCheck,lineBreakMaxTextCount:e.rule.lineBreakMaxTextCount,isTransformPreTagNewLine:e.rule.isTransformPreTagNewLine,excludeSelectors:n.concat(a).map(i=>i.toLowerCase()).filter(i=>i!=="code"&&i!=="img").concat(r).concat(o),blockSelectors:e.rule.allBlockTags.map(i=>i.toLowerCase()).concat(e.rule.extraBlockSelectors),extraBlockSelectors:e.rule.extraBlockSelectors,extraInlineSelectors:e.rule.extraInlineSelectors.concat(e.rule.additionalInlineSelectors),stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(i=>i.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)}}var Cy={sanitize:e=>e};function zi(e,t){e.interruptEffectDOM||(e.walkContainer({id:e.id,container:t,filterRule:Tn(e.ctx),onParagraph:Xo.bind(null,e),onFrame:n=>{Bl(e,n,!0)},onIgnoreElement:n=>{e.ignoreResizeObserver?.observe(n)}}),Ar&&ft(t,"consumeContainer",e.id))}function Bl(e,t,n){try{if(e.injectCssToDocument(t,e.ctx),t instanceof HTMLIFrameElement){if(!_r(t))return;z.debug("onFrame fragment",t);let a=t.contentWindow?.document.body;a&&($r(a,e,n),e.dynamicContainerObserver?.observe(a,{childList:!0,subtree:!0}))}else z.debug("onFrame shadowRoot",t.host),$r(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0})}catch{}}function $r(e,t,n=!0){let{globalStyles:a,globalAttributes:r}=Tn(t.ctx),o=0;if(s(t,e,n))return;if(Bn(e)&&i(e)){u(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,l=>(Bn(l)&&(a&&Al(l,a),r&&Sl(l,r)),s(t,l,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(tn.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode();){tn.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let l=c.currentNode;if(i(l))for(u(l);;){if(c.nextSibling()){let m=c.currentNode;if(tn.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),i(m)){u(m);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){u(e);return}return t.observeContainers;function u(c){tn.clearMark(c),o++,t.immediateTranslateCapacity>=0?zi(t,c):(Ar&&ft(c,"observeContainer",t.id),t.containerVisibleObserver?.observe(c))}function i(c){let l=c.nodeName.toLowerCase();if(c.shadowRoot)return Bl(t,c.shadowRoot,n),!1;if(l==="iframe")return Bl(t,c,n),!1;if(["script","#document-fragment","img"].includes(l))return!1;let m=t.containerRule;if(m.selectors&&m.selectors?.length>0)return Pi(c,m.selectors);if(m.pageHeight){let p=c.scrollHeight;if(p>0&&p0)return!0}return!1}function s(c,l,m){if(l.nodeName.toLowerCase()=="script")return l.childNodes.length==0||l.childNodes.length==1&&l.childNodes[0].nodeType==Node.TEXT_NODE;if(l.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(l.nodeType!==Node.ELEMENT_NODE||m&&tn.isMarked(l,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&l.nodeName==="PRE")return!1;let f=Tn(c.ctx);return!!Dl(l,{excludeSelectors:f.excludeSelectors,selectors:f.selectors,stayOriginalSelectors:f.stayOriginalSelectors})}}function Rl(e,t){if(!e.targetNodes)return;let n=e.state||"original",a=e.commonAncestorContainer;if(!tn.isMarked(a,e.ctxId))return;let r=a.contains(e.rootNodes[0]),o=a.contains(e.targetNodes[0]);if(r&&o)n="dual";else if(r)n="original";else if(o)n="translation";else return;if(t!=n){e.state=t;try{if(n=="dual"&&t=="translation"&&(ji(e.rootNodes),Zp(e.commonAncestorContainer)),n=="original"&&t=="translation"){let u=_l(e.rootNodes);if(ji(e.rootNodes),Qp(u))return;Kr(u,a,e.targetNodes||[]),Zp(e.commonAncestorContainer)}if(n=="translation"&&t=="dual"){let u=e.targetNodes[0];Kr(u,a,e.rootNodes||[]),Xp(e.commonAncestorContainer)}if(n=="original"&&t=="dual"){let u=_l(e.rootNodes);if(Qp(u))return;Kr(u,a,e.targetNodes||[]),Xp(e.commonAncestorContainer)}if(n=="translation"&&t=="original"){let u=_l(e.targetNodes);ji(e.targetNodes),Kr(u,a,e.rootNodes||[])}n=="dual"&&t=="original"&&ji(e.targetNodes)}catch(u){z.error(u)}}}function Qp(e){return!e||!Bn(e)?!1:e.classList.contains(un)}function Zp(e){if(!Bn(e))return;e.querySelectorAll("font[class*=immersive-translate-target-translation]").forEach(a=>{ft(a,"immersiveTranslateClassBak",a.className),a.className="notranslate immersive-translate-target-dual"});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.add("immersive-translate-state-dual")}function Xp(e){if(!Bn(e))return;e.querySelectorAll("font[class*=immersive-translate-target-dual]").forEach(a=>{let r=Pr(a,"immersiveTranslateClassBak");ui(a,"immersiveTranslateClassBak"),a.className=r});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.remove("immersive-translate-state-dual")}function _l(e){return e?e[e.length-1].nextSibling:null}function ji(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function Kr(e,t,n){let a=e;t&&(a?n.forEach(r=>{a.parentNode?.insertBefore(r,a)}):n.forEach(r=>{t.appendChild(r)}))}var vy=Ft(Ol,300);async function Xo(e,t,n=!1){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||wy(t.rootNodes)||t.stepState>=2)return;t.stepState=2,Ar&&ft(a,"onParseParagraph",e.id);let{ctx:r}=e,{rule:o}=r,u=Fr(r),i=Ui(t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:u,stayOriginalSelectors:r.rule.stayOriginalTags.concat(r.rule.stayOriginalTags).map(c=>c.toLowerCase()).concat(r.rule.stayOriginalSelectors).concat(r.rule.additionalStayOriginalSelectors)});if(!i)return;t.variables=i?.variables||{},t.text=i?.text;let s=await Nl(t,{excludeLanguages:r?.config?.translationLanguagePattern?.excludeMatches||[],targetLanguage:r.targetLanguage,noTranslateRegexp:r.rule.noTranslateRegexp,delimiters:Li(r.config.translationServices[r.translationService]?.placeholderDelimiters),minTextCount:n||r.state.translationArea==="body"?2:o.paragraphMinTextCount,minWordCount:n||r.state.translationArea==="body"?1:o.paragraphMinWordCount,isDetectParagraphLanguage:r.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:r.rule.ignoreZhCNandZhTW});if(s){if(z.debug("on paragraph",s.text,s),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(s))return;a.paragraphs.push(s),e.immediateTranslateCapacity>0||n?(Ay(e,t.text),Il(e,t)):(Ar&&ft(a,"observeParagraph",e.id),e.observeParagraphs.push(s),e.paragraphVisibleObserver?.observe(a))}return s}function wy(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Bn(t)&&t.classList.contains(un):!1}function Ay(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function Il(e,t){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let n=e.autoIncreaseParagraphId++;t.id=n.toString(),e.paragraphEntities[n]=t,e.paragraphQueue.push(n.toString()),Ar&&ft(t.commonAncestorContainer,"consumeParagraph",e.id),vy.call(e,e.ctx)}async function Ol(e){if(this.interruptEffectDOM)return;let t=this.paragraphQueue;this.paragraphQueue=[];let n=[];for(let a=0;a0)try{await Ia(a,t,(r,o,u)=>{let i=u.id,s=ky(e,i.toString());s&&Sy.call(null,r,o,u,s,t,n)})}catch(r){z.error("translateCurrentQueue error",r);return}}function ky(e,t){return e.find(n=>n.id===t)}function Sy(e,t,n,a,r,o){let u=!1,i=a;if(Ur(i.commonAncestorContainer,n.id)?.remove(),i&&(e||!t)){e||(z.error("translate error",n,e,t),e=new Error("no response from server"));let{rule:s}=r,c=n.id,l=document.createElement(s.targetWrapperTag);ft(l,jg,c.toString()),l.classList.add("notranslate",un,un+"-error"),l.setAttribute("translate","no"),l.setAttribute("lang",r.targetLanguage);let m=a.rootNodes[a.rootNodes.length-1].nextSibling;Kr(m,a.commonAncestorContainer,[l]),Dy(r,e);let p=e.message.replaceAll(` +`,"");if(p=p.replaceAll('"',"""),i&&(i.error=new Error(p)),l){let f=ra(Qt,"retryAllParagraphs",r.config.interfaceLanguage,"zh-CN"),g=ra(Qt,"errorTooltipTitle",r.config.interfaceLanguage,"zh-CN"),y=`<${s.targetWrapperTag} class="${Z}-error notranslate"><${s.targetWrapperTag} class="${Z}-error-wrapper">\u{1F504}  \u2753`;l.innerHTML=Ne.sanitize(y)}}else if(a){if(i.error=void 0,a.targetText=t?.text||"",!(a.text?.toLocaleLowerCase()==a.targetText?.toLocaleLowerCase())){let c=Jp(a,r),l=document.createElement(r.rule.targetWrapperTag);l.classList.add("notranslate",un),l.setAttribute("lang",r.targetLanguage),l.setAttribute(Kn,"1");let m=Cy.sanitize(c);l.innerHTML=m,a.targetNodes=[l],Rl(a,o)}u=!0}else z.error("paragraph not found",n.id);document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:u}})}))}async function Nl(e,t){let{text:n}=e,a=await it({text:n||"",minLength:15,pageLangs:[Dt(),"en"]}),{targetLanguage:r}=t;if(!kp({text:n||"",delimiters:t.delimiters,minWordCount:t.minWordCount,minTextCount:t.minTextCount,noTranslateRegexp:t.noTranslateRegexp}))return null;let u=t.excludeLanguages||[],i=Ni();t.isDetectParagraphLanguage&&(i="auto");let s=Dt(),c=a;c==="auto"&&!t.isDetectParagraphLanguage&&(c=s),e.languageByLocal=c,e.languageByClient=i;let l=i!=="auto"?i:c;return Sa(l,r,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW})||u.length>0&&u.some(f=>Sa(l,f,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW}))?null:e}function Dy(e,t){if(t.message.startsWith("ProQuota:")){t.message=t.message.replace("ProQuota:","");let n=t.message;try{n=JSON.parse(t.message).error}catch(o){z.error(o)}t.message=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${t.message} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`;let a=e.translationService,r=a=="deepl"?"OpenAI":"Deepl";e.translationService=="openai"?a="OpenAI":e.translationService=="deepl"&&(a="Deepl"),document.dispatchEvent(new CustomEvent(Vu,{detail:{type:"ProQuotaExceeded",subscriptionType:e.user?.subscription?.subscriptionType,translationService:a,anotherService:r,message:n}}))}}h();var Ly=[];function e3(e){Ly.push(e)}h();function t3(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(a){a.length>0&&(a[0].target.text.includes(Zu)||Ul(e).catch(o=>{z.error("translateTitle error:",o.name,o.message,o.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var qi="";async function Ul(e){let t=document.title;if(!t||t.includes(Zu))return;qi!==t&&(qi=t);let n=await it({text:t,pageLangs:[Dt(),"en"]});if(!Mi(e,n))try{let a=await la({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n},e);a&&a.text&&(document.title=qi+Zu+a.text)}catch(a){throw a}}function n3(e){e.rule.isTranslateTitle&&(document.title=qi)}h();var jl="Original";function tt(){return jl}function Wt(e){jl=e,a3(jl)}h();var zl;function r3(e){let t=e.ctx.rule.aiRule;if(z.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=Tn(e.ctx),a=n.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);n.excludeSelectors.splice(a,1);let r,o;document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(p=>{p.translated=!0,eu(e,p,n)});let u=t.streamingDelayTime||100;zl=new MutationObserver(p=>{p.forEach(function(f){if(Bn(f.target)&&!s(f)&&(l(f.target),f.addedNodes&&f.addedNodes.length&&f.addedNodes.forEach(g=>{l(g)}),!c(f)&&i())){let g=f.target===o;if(t.streamingDeepChild&&!g&&(g=f.target.parentNode===o),!g)return;f.addedNodes.forEach(y=>{let w=y.previousSibling;!w||w.translated||(w.translated=!0,setTimeout(()=>{w.childNodes[0]?.translated||(z.debug("\u7FFB\u8BD1\u4E0A\u4E00\u4E2A\u6BB5\u843D",w),eu(e,w,n))},u))})}})}),zl.observe(document.body,{attributes:!0,childList:!0,subtree:!0});function i(){return!!(t.streamingChange&&t.streamingSelector&&r||t.streamingChange&&t.messageContainerSelector&&t.messageStreamEndSelector&&o&&!o.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector))}function s(p){return t.streamingSelector&&p.target===r&&p.type==="attributes"&&!_n(p.target,[t.streamingSelector])?(m(),!0):t.streamingSelector&&p.removedNodes.length>0&&o&&o!=r?(p.removedNodes?.forEach(f=>{f===r&&m()}),!0):t.messageContainerSelector&&t.messageStreamEndSelector&&o&&o.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector)?(m(),!0):!1}function c(p){if(t.streamingSelector&&p.target.querySelector(t.messageWrapperSelector||"")&&!r){let f=p.target;return f.translated||(f.translated=!0,setTimeout(()=>{r||f.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(g=>{g.translated||(g.translated=!0,eu(e,g,n))})},u)),!0}else if(t.messageContainerSelector&&p.target.querySelector(t.messageContainerSelector||"")){let f=p.target;if(f.translated)return!0;f.translated=!0,setTimeout(()=>{f.querySelectorAll(t.messageContainerSelector).forEach(g=>{t.messageStreamEndSelector&&!g.querySelector(t.messageStreamEndSelector)||g.translated||(g.translated=!0,eu(e,g,n))})},u)}return!1}function l(p){t.streamingSelector&&_n(p,[t.streamingSelector])&&(r=p,z.debug("streamingNode",r)),_n(p,[t.messageWrapperSelector])&&(o=p,z.debug("markdownNode",o))}function m(){o&&setTimeout(()=>{o.childNodes.forEach(p=>p.translated=!1),z.debug("\u7ED3\u675F\u7FFB\u8BD1\u5168\u90E8",o),eu(e,o,n),r=void 0,o=null},u)}}function eu(e,t,n){_a({id:e.id,container:t,filterRule:n,force:!0,onParagraph:a=>{Xo(e,a,!0)},onFrame:()=>{},onIgnoreElement:()=>{}})}function o3(){zl?.disconnect()}var re=null;function Ki(){return re||null}function Gr(e){My(e),Oy(e),By(e),Iy(e),wa(document,e),Wt("Translated"),Ry(re),_y(re),e3(ca),Py(re)}function My(e){e.state.translationArea==="main"&&e.rule.initialSelectorGlobalAttributes&&_p(document.body,e.rule.initialSelectorGlobalAttributes,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph)}function Py(e){r3(e)}function Fy(){o3()}function _y(e){e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0});let t=[];e.ctx.rule.mainFrameSelector&&(t=[...document.querySelectorAll(e.ctx.rule.mainFrameSelector||"")]),t.length<=0&&(t=[document.body]),t.forEach(n=>{$r(n,e)})}async function By(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=Date.now(),a=new URL(e.url).hostname,r=e.localConfig.tempTranslationUrlMatches||[],o=r.findIndex(i=>i.match===a&&i.expiredAt>t),u=!1;o>-1||(r.push({match:a,expiredAt:t+e.config.tempTranslateDomainMinutes*60*1e3}),u=!0),u&&await yn({...e.localConfig,tempTranslationUrlMatches:[...r]})}}function Ry(e){e.ctx.rule.isTranslateTitle&&(Ul(e.ctx),e.titleDynamicObserver=t3(e.ctx))}function Iy(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function Oy(e){let t=Fn();re&&(t=re.id);let n=Tn(e);re=re||{},re.ctx=e,re.id=t,re.paragraphQueue=re.paragraphQueue||[],re.rule={excludeSelectors:n.excludeSelectors||[],selectors:n.selectors||[]},re.currentUrl=window.location.href,re.containerRule={pageHeight:screen.availHeight,selectors:n.selectors},re.translationService=e.translationService,re.paragraphEntities=re.paragraphEntities||{},re.autoIncreaseParagraphId=re.autoIncreaseParagraphId||1,re.interruptEffectDOM=!1,re.urlChangeDelay=e.rule.urlChangeDelay,re.immediateTranslateCapacity=e.state.immediateTranslationTextCount,re.observeContainers=re.observeContainers||[],re.observeParagraphs=re.observeParagraphs||[],re.dynamicContainerObserver=re.dynamicContainerObserver||Hy(re),re.ignoreResizeObserver=re.ignoreResizeObserver||qy(re),re.containerVisibleObserver=re.containerVisibleObserver||Uy(re),re.paragraphVisibleObserver=re.paragraphVisibleObserver||jy(re),re.injectCssToDocument=Wi,re.walkContainer=_a,re.translateState=e.state.translationMode||e.config.translationMode||"dual",re.allInlineWindows=[window],window.onerror=Ny(re,e),window.immersiveTranslateSwitchTranslateState=ql.bind(re)}function i3(e,t){t.getRootNode()instanceof ShadowRoot?Wi(t.getRootNode(),e):Wi(t.ownerDocument,e),Hl(e)}function Hl(e){if(re)return;re={},re.ctx=e,re.id=Fn(),re.paragraphQueue=[],re.injectCssToDocument=Wi;let t=Tn(e);re.rule={excludeSelectors:t.excludeSelectors,selectors:t.selectors||[]},re.translationService=e.mouseHoverTranslationService,re.currentUrl=window.location.href,re.paragraphEntities={},re.autoIncreaseParagraphId=1,re.interruptEffectDOM=!1,re.urlChangeDelay=e.rule.urlChangeDelay,re.translateState=e.config.translationMode||"dual",re.observeContainers=[],re.observeParagraphs=[],re.allInlineWindows=[window],window.switchTranslateState=ql.bind(re)}function ca(e=!0){re&&(Wt("Original"),Fy(),re.interruptEffectDOM=!0,re.ignoreResizeObserver?.disconnect(),re.dynamicContainerObserver?.disconnect(),re.containerVisibleObserver?.disconnect(),re.paragraphVisibleObserver?.disconnect(),re.titleDynamicObserver?.disconnect(),n3(re.ctx),vp(),wp(),e&&ql.call(re,"original"),Object.values(re.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),re=null)}function Ny(e,t){e.interruptEffectDOM=!1;let n;return function(a){let r=a.message,o=!1;return r?.indexOf("Minified React error")>=0&&(o=!0),o&&(clearTimeout(n),ca(),n=setTimeout(()=>{Gr(t)},e.urlChangeDelay||2e3)),!0}}function Uy(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{a.intersectionRatio>0&&(zi(e,a.target),n.unobserve(a.target))})})}function jy(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{if(a.intersectionRatio>0){let r=a.target;(r.paragraphs||[]).forEach(u=>{Il(e,u)}),n.unobserve(r)}})})}var u3;function zy(e){if(e.urlChangeDelay<=0)return!1;let n=(window.location.href||"").split("#")[0];return e.currentUrl.split("#")[0]!=n?(clearTimeout(u3),e.translateState=="original"?!1:(ca(e.urlChangeDelay>20),u3=setTimeout(()=>{let r=e.ctx;Gr(r)},e.urlChangeDelay),!0)):!1}function Hy(e){return new MutationObserver(t=>{if(!zy(e)&&!e.interruptEffectDOM)for(let n of t){let a=e.ctx.rule.mutationObserverLimitTargetSelectors;if(a.length>0&&!_n(n.target,a))return;if((n.addedNodes||[]).length<=0||n.target.nodeType!==Node.ELEMENT_NODE||!tn.isSkipMarkEle(n.target)&&!tn.isMarked(n.target,e.id))continue;let o=(n.target?.paragraphs||[]).reduce((u,i)=>{let s=i.rootNodes||[],c=i.targetNodes||[];return[...u,...s,...c]},[]);if(n.addedNodes.length>0&&n.addedNodes.length===n.target.childNodes.length&&_n(n.target,e.ctx.rule.mutationObserverContainerSelectors)){tn.clearMark(n.target),n.target.paragraphs=void 0,zi(e,n.target);return}n.addedNodes.forEach((u,i)=>{u.nodeType===Node.ELEMENT_NODE&&(o.includes(u)||qt(u,e.ctx.rule.mutationExcludeSelectors)||$r(u,e))})}})}function qy(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let a of t){if(a.target.nodeType!==Node.ELEMENT_NODE)return;let r=a.target,o=globalThis.getComputedStyle(r);kl(o)||(n.unobserve(a.target),$r(r,e))}})}function ql(e){this.translateState=e,Object.values(this.paragraphEntities).forEach(t=>{Rl(t,e)}),e=="original"&&document.querySelectorAll(`.${un}`).forEach(t=>t.remove())}function Wi(e,t){if(e instanceof HTMLIFrameElement){wa(e.contentDocument,t);return}wa(e,t)}async function s3(e){let t=pt(),n="auto";if(me()){let a="";e.rule.isEbook||e.rule.isEbookBuilder?(a=Y0(e.mainFrame),n=await it({text:a,pageLangs:["en"]})):(a=Mr(e.mainFrame).slice(0,1e3),n=await it({text:a,pageLangs:[Za(),"en"]}))}else if(t)n=await it({text:Mr(e.mainFrame).slice(0,1e3),pageLangs:[Za(),"en"]});else if(e.rule.isEbook||e.rule.isEbookBuilder){let a="";a=Y0(e.mainFrame),n=await it({text:a,pageLangs:["en"]})}else n=await c3();return n==="auto"&&(n=await Vp()),$p(n),n}async function l3(){if(!re)return;document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=re.paragraphEntities,t=Object.keys(e);for(let n of t){let a=e[n];if(a.error){re.paragraphQueue.push(n);let o=a.commonAncestorContainer.querySelector(`[${Ju}='${n}']`);o&&o.remove()}}Ol.call(re,re.ctx)}h();h();var d3={"zh-CN":{"languages.en":"\u82F1\u8BED","languages.ja":"\u65E5\u8BED","languages.ko":"\u97E9\u8BED","languages.es":"\u897F\u73ED\u7259\u8BED","languages.fr":"\u6CD5\u8BED","languages.de":"\u5FB7\u8BED","languages.it":"\u610F\u5927\u5229\u8BED","languages.pt":"\u8461\u8404\u7259\u8BED","languages.ru":"\u4FC4\u8BED","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"},"zh-TW":{"languages.en":"\u82F1\u8A9E","languages.ja":"\u65E5\u8A9E","languages.ko":"\u97D3\u8A9E","languages.es":"\u897F\u73ED\u7259\u8A9E","languages.fr":"\u6CD5\u8A9E","languages.de":"\u5FB7\u8A9E","languages.it":"\u610F\u5927\u5229\u8A9E","languages.pt":"\u8461\u8404\u7259\u8A9E","languages.ru":"\u4FC4\u8A9E","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"}},g3={...Qt,"zh-CN":{...d3["zh-CN"],...Qt["zh-CN"]},"zh-TW":{...d3["zh-TW"],...Qt["zh-TW"]}},Vr=g3;function Oa(e,t,n){return ra(g3,e,t,Xu,n)}var m3=()=>sn.filter(e=>e!=="auto"),Mt=(e,t,n,a)=>{let r=Vg[e]||e,o=Yg[e],u=Jg[e],i={"zh-CN":o,"zh-TW":u,en:r};if(n)return i[e]?i[e]:r;if(i[t]){let s=i[t];return a||e==="auto"||e==="placeholder"?s:`${s} (${r})`}else return r};h();h();function Yr(e){Jr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(a=>{z.error("send content message request failed",e,a)}),document.querySelectorAll("iframe").forEach(a=>{a.contentWindow&&a.contentWindow.postMessage({author:Gu,payload:e},"*")});let n=new CustomEvent(Ta,{detail:e});globalThis.document.dispatchEvent(n)}function Wl(e){let t=e.shortcuts||{},a=Object.keys(t).reduce((o,u)=>(o[t[u]]=u,o),{}),r=Object.keys(a);for(let o of r){let u=o.replace(/MacCtrl/ig,"Ctrl");u&&Ue(u,i=>{i.preventDefault(),Yr({method:a[o],data:{trigger:"shortcut"}})})}}h();h();var Pt=class{options;strictTicks=[];constructor(t){this.options=t,this.setOptions(t)}setOptions(t){t&&(t.interval!==void 0&&(this.options.interval=Number(t.interval)),t.limit!==void 0&&(this.options.limit=Number(t.limit)))}wait(){return new Promise((t,n)=>{setTimeout(t,this.getDelay())})}getDelay(){let t=this.strictTicks,n=this.options.limit,a=this.options.interval,r=Date.now();if(t.length=o?(t.push(r),0):(t.push(o),o-r)}};var Wy=new Pt({limit:7,interval:1250}),Ky={tencent:new Pt({limit:3,interval:1350}),baidu:new Pt({limit:1,interval:1550}),strict:new Pt({limit:1,interval:1050}),d:new Pt({limit:1,interval:1050}),youdao:new Pt({limit:5,interval:1050}),you:new Pt({limit:5,interval:1050}),cai:new Pt({limit:5,interval:1050}),google:new Pt({limit:10,interval:1050}),deepl:new Pt({limit:10,interval:1050}),transmart:new Pt({limit:30,interval:1050}),papago:new Pt({limit:3,interval:1150}),openai:new Pt({limit:10,interval:1300}),chatgpt:new Pt({limit:1,interval:1350})};function tu(e){return Ky[e]||Wy}async function p3(e){if(pt()){let n=Di();if(n)try{return(await n.ask("getRateLimitDelay",{key:e})).value}catch(a){return z.error("can not comunicate with root frame, use strict limiter",a),tu("strict").getDelay()}else return tu("strict").getDelay()}else return tu(e).getDelay()}async function f3(e,t){if(!pt()){let a=tu(e);t&&a.setOptions(t)}}async function h3(e){let t=e.key;return{value:tu(t).getDelay()}}h();var $i=new Map;async function Kl(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=La(e.body)),$i.has(t))return $i.get(t);let n=se(e);$i.set(t,n);try{return await n}catch(a){throw a}finally{setTimeout(()=>{$i.delete(t)},3e4)}}async function b3(e){return Kl(e)}async function y3(e){if(pt()){let n=Di();if(n)try{return await n.ask("throttleRequest",e)}catch(a){throw z.error("can not comunicate with root frame, use strict limiter",a),a}else return Kl(e)}else return Kl(e)}h();h();h();h();function x3(e,t,n){let a=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),a=t!=="auto"?n[t].matches:[];let r={},o=Object.keys(n);for(let c of o){let m=n[c].matches;for(let p of m)r[p]||(r[p]=[]),r[p].push(c)}let u=r[e];if(u&&u.length>0)for(let c of u)n[c].matches.indexOf(e)>-1&&(n[c]={...n[c],matches:n[c].matches.filter(m=>m!==e)});let i=new Set(a);if(t==="auto")return{...n};i.add(e);let s=Array.from(i);return{...n,[t]:{...n[t],matches:s}}}h();h();function $l(){return d("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M10.3873 2.29166C10.6319 2.29193 10.8664 2.38929 11.0392 2.56234C11.2121 2.73539 11.3092 2.96998 11.3092 3.21457V4.07811L12.1175 4.38332C12.7273 4.61277 13.2952 4.94074 13.7988 5.35416L14.4675 5.90207L15.2165 5.46978L15.2394 5.45624C15.3787 5.37479 15.5373 5.332 15.6988 5.33228C15.861 5.3325 16.0203 5.37522 16.1608 5.45618C16.3014 5.53715 16.4182 5.65353 16.4998 5.79374L16.8925 6.47395C17.0145 6.68593 17.0475 6.93764 16.9843 7.17391C16.921 7.41019 16.7666 7.61173 16.555 7.73436L16.5321 7.74791L15.7842 8.17916L15.9227 9.0302C16.031 9.67953 16.031 10.3423 15.9227 10.9917L15.781 11.8458L16.531 12.2781L16.5467 12.2875C16.758 12.4101 16.9122 12.6115 16.9754 12.8475C17.0387 13.0835 17.0059 13.335 16.8842 13.5469L16.5154 14.1844C16.3932 14.3961 16.1919 14.5507 15.9558 14.6141C15.7196 14.6776 15.468 14.6448 15.256 14.5229L15.2415 14.5135L14.4904 14.0802L13.8206 14.6323C13.3125 15.0519 12.7384 15.3845 12.1217 15.6167L11.3133 15.9219V16.7864C11.3132 16.9078 11.2891 17.028 11.2425 17.14C11.1958 17.2521 11.1276 17.3539 11.0415 17.4395C10.9555 17.5251 10.8535 17.5929 10.7412 17.6391C10.6289 17.6852 10.5087 17.7087 10.3873 17.7083H9.61229C9.3677 17.708 9.13322 17.6107 8.96037 17.4376C8.78751 17.2646 8.69042 17.03 8.69042 16.7854V15.9219L7.88209 15.6167C7.27233 15.3872 6.70437 15.0592 6.20084 14.6458L5.53209 14.0979L4.78313 14.5302L4.76021 14.5437C4.62084 14.6252 4.46226 14.668 4.30084 14.6677C4.13864 14.6675 3.97932 14.6248 3.83877 14.5438C3.69823 14.4628 3.58135 14.3464 3.49979 14.2062L3.10709 13.526C2.98505 13.3141 2.95205 13.0623 3.01532 12.8261C3.07858 12.5898 3.23296 12.3882 3.44459 12.2656L3.4675 12.2521L4.21542 11.8208L4.07688 10.9698C3.96856 10.3204 3.96856 9.65766 4.07688 9.00832L4.21854 8.1552L3.46959 7.72186L3.45709 7.70832C3.24914 7.58489 3.09787 7.38486 3.03575 7.15116C2.97362 6.91746 3.00559 6.66872 3.12479 6.45832L3.49354 5.82082C3.57469 5.68049 3.69133 5.56397 3.83175 5.48297C3.97217 5.40197 4.13144 5.35934 4.29354 5.35936C4.45497 5.35908 4.61355 5.40187 4.75292 5.48332L4.7675 5.49166L5.51854 5.92499L6.18834 5.37291C6.69646 4.95329 7.27054 4.62067 7.88729 4.38853L8.69563 4.08332V3.21874C8.69452 2.97433 8.79041 2.73945 8.96226 2.56565C9.13411 2.39185 9.36788 2.29331 9.61229 2.29166H10.3873ZM10.3873 1.04166H9.61229C9.03636 1.04193 8.4841 1.27084 8.07685 1.67809C7.66961 2.08533 7.4407 2.6376 7.44042 3.21353C6.69518 3.49423 6.00146 3.89618 5.38729 4.40312L5.37271 4.39478C4.87362 4.10685 4.2806 4.02894 3.72407 4.17818C3.16753 4.32742 2.69307 4.6916 2.405 5.19062L2.03729 5.83332C1.74928 6.33229 1.67121 6.92522 1.82025 7.48173C1.96929 8.03825 2.33324 8.51279 2.83209 8.80103L2.84771 8.80936C2.78023 9.20444 2.74539 9.6044 2.74354 10.0052C2.74367 10.3971 2.77572 10.7883 2.83938 11.175L2.81646 11.1885C2.56927 11.3311 2.35259 11.5209 2.1788 11.7472C2.00501 11.9735 1.87752 12.2319 1.80361 12.5075C1.7297 12.7831 1.71083 13.0706 1.74807 13.3535C1.7853 13.6364 1.87792 13.9091 2.02063 14.1562L2.41334 14.8364C2.55638 15.0837 2.74681 15.3003 2.97371 15.4738C3.20061 15.6473 3.45953 15.7743 3.73561 15.8475C4.01169 15.9208 4.29952 15.9388 4.58259 15.9007C4.86566 15.8625 5.13841 15.7688 5.38521 15.625L5.40813 15.6114C6.01714 16.1105 6.70362 16.5067 7.44042 16.7844C7.44028 17.0697 7.49635 17.3523 7.60542 17.616C7.7145 17.8797 7.87444 18.1193 8.07612 18.3212C8.27779 18.523 8.51726 18.6832 8.78084 18.7925C9.04441 18.9018 9.32694 18.9582 9.61229 18.9583H10.3873C10.9632 18.958 11.5155 18.7291 11.9227 18.3219C12.33 17.9146 12.5589 17.3624 12.5592 16.7864C13.3043 16.5061 13.9981 16.1045 14.6123 15.5979L14.6269 15.6062C15.126 15.8942 15.719 15.9721 16.2755 15.8228C16.8321 15.6736 17.3065 15.3094 17.5946 14.8104L17.9623 14.1729C18.2503 13.6739 18.3284 13.081 18.1793 12.5245C18.0303 11.968 17.6663 11.4934 17.1675 11.2052L17.1519 11.1969C17.2194 10.8018 17.2542 10.4018 17.256 10.001C17.2559 9.60915 17.2239 9.21792 17.1602 8.83124L17.1831 8.8177C17.4303 8.67516 17.647 8.48531 17.8208 8.259C17.9946 8.03269 18.1221 7.77435 18.196 7.49875C18.2699 7.22314 18.2888 6.93568 18.2515 6.65278C18.2143 6.36987 18.1217 6.09708 17.979 5.84999L17.5863 5.16978C17.4437 4.92202 17.2537 4.70485 17.027 4.53072C16.8003 4.3566 16.5415 4.22895 16.2654 4.1551C15.9893 4.08126 15.7013 4.06267 15.418 4.1004C15.1346 4.13814 14.8616 4.23145 14.6144 4.37499L14.5915 4.38853C13.9824 3.88946 13.296 3.49327 12.5592 3.21561C12.5593 2.93026 12.5032 2.64768 12.3942 2.384C12.2851 2.12031 12.1252 1.8807 11.9235 1.67883C11.7218 1.47695 11.4823 1.31678 11.2188 1.20746C10.9552 1.09813 10.6726 1.04179 10.3873 1.04166Z",fill:"#666666"}),d("path",{d:"M10.0003 7.91666C10.4124 7.91666 10.8152 8.03884 11.1578 8.26776C11.5004 8.49668 11.7674 8.82205 11.9251 9.20273C12.0828 9.58341 12.124 10.0023 12.0436 10.4064C11.9632 10.8106 11.7648 11.1818 11.4735 11.4731C11.1821 11.7645 10.8109 11.9629 10.4068 12.0433C10.0026 12.1237 9.58375 12.0824 9.20307 11.9247C8.82239 11.7671 8.49702 11.5 8.2681 11.1574C8.03918 10.8148 7.91699 10.412 7.91699 9.99999C7.91699 9.44745 8.13649 8.91755 8.52719 8.52685C8.91789 8.13615 9.44779 7.91666 10.0003 7.91666ZM10.0003 6.66666C9.34106 6.66666 8.69659 6.86215 8.14843 7.22842C7.60026 7.5947 7.17302 8.11529 6.92073 8.72438C6.66844 9.33346 6.60243 10.0037 6.73104 10.6503C6.85966 11.2969 7.17713 11.8908 7.6433 12.357C8.10948 12.8232 8.70342 13.1407 9.35003 13.2693C9.99663 13.3979 10.6669 13.3319 11.2759 13.0796C11.885 12.8273 12.4056 12.4001 12.7719 11.8519C13.1382 11.3037 13.3337 10.6593 13.3337 9.99999C13.3337 9.11593 12.9825 8.26809 12.3573 7.64297C11.7322 7.01785 10.8844 6.66666 10.0003 6.66666Z",fill:"#666666"})]})}h();function nu(e,t=2e3){return n=>{let a,r=0;return o=>{++r==e&&(n(o),r=0),clearTimeout(a),a=setTimeout(()=>r=0,t)}}}h();function T3(e){let t;try{t=new URL(e)}catch{return!1}let n=E3(),a="";try{a=new URL(n).hostname}catch{}return a&&t.hostname===a?!0:!($y(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function $y(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}h();function C3(e){let t=e.split(".");return t.length>2?(t[0]="*",t.join(".")):null}h();function v3(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}h();function On(e){let{items:t,maxWidth:n,className:a}=e,{lang:r}=ue();return n=n||(r==="en"?144:160),d("select",{autoComplete:"off",class:a||"min-select",style:{maxWidth:`${n}px`},value:t.find(o=>o.selected)?.value,onChange:o=>{let u=o.target.value,i=t.find(s=>s.value===u);i&&i.onSelected(i)},children:t.map((o,u)=>d("option",{value:o.value,selected:o.selected,children:o.label},"selectlink"+u))})}function Gl(e){let{items:t,maxWidth:n,isInput:a,value:r}=e;return n=n||128,a?d("input",{value:r,onChange:o=>{e.onChange(o.target.value)}}):d("select",{autoComplete:"off",style:{maxWidth:`${n}px`},value:t.find(o=>o.selected)?.value,onChange:o=>{let u=o.target.value,i=t.find(s=>s.value===u);i&&i.onSelected(i)},children:t.map((o,u)=>d("option",{value:o.value,selected:o.selected,children:o.label},"selectlink"+u))})}h();var Gi="DROP_DOWN_DEFAULT_VALUE";function Vl(e){let{showArrow:t,onSelected:n,className:a,menus:r,maxWidth:o}=e;a=a||"",t=t??!0,o=o||80;let u=zn(null);return d("select",{ref:u,autoComplete:"off",class:`text-label min-select ${t?"":"min-select-no-arrow"} ${a||""}`,value:Gi,style:{maxWidth:`${o}px`},onChange:i=>{i.preventDefault();let s=i.target.value;if(u.current&&s!==Gi){u.current.value=Gi,u.current?.dispatchEvent(new Event("change"));let c=r.find(l=>l.value===s);c&&n(c)}},children:[{value:Gi,label:e.label}].concat(r).map((i,s)=>d("option",{value:i.value,children:i.label},"option-"+s))})}h();function Yl(e){let{field:t,onChange:n,value:a}=e;a=a||t.default||"";let{t:r}=ue(),o=t.name;return t.label&&(o=t.label),t.labelKey&&(o=r(t.labelKey)),t.type==="select"?d("div",{class:"flex justify-between items-center mb-2",children:[d("label",{class:"inline-block",children:[o,"\uFF1A"]}),d(On,{items:t.options.map(u=>({label:`${u.label?r(u.label):u.value}`,value:u.value,selected:a===u.value,onSelected:()=>{n(u.value)}}))})]}):null}h();h();function Na(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var Gy=({date:e})=>{let{t}=ue(),[n,a]=$(!1);return he(()=>{setTimeout(()=>{a(!0)},5e3)},[]),n?null:d("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},Vy=({minVersion:e})=>{let{t}=ue();return d("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},Yy=()=>{let{t:e}=ue();return d("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:"https://immersivetranslate.com/docs/installation/"})}})},Jy=({message:e,handleSyncing:t,date:n})=>{let{t:a}=ue();return d("p",{class:"text-sm",children:[a("failToSyncRules")," ",d("a",{onClick:t,children:a("retry")}),d("br",{}),a("failedReason"),"\uFF1A",e,d("br",{}),a("currentRuleVersion"),"\uFF1A",n]})};function Jl(e){let{isShowError:t,request:n}=e,[a,r]=$(null),{t:o}=ue(),[u,i]=$(null),[s,c]=$(null),[l,m]=$(""),[p,f]=$(!1),[g,y]=$(!1),[w,b]=$(!1),[S,D]=$(null),[N,_]=$(null),x=hn(),E=async()=>{m("");let T=u;if(u===null)try{let v=await n({url:Ea});v?(i(v),T=v,f(!0)):(m(o("unknownError")),c(null))}catch(v){c(null),m(v.message);return}T!==null?(e.setStorageBuildinConfig(T),c(!1),r(T.buildinConfigUpdatedAt)):(m(o("canNotFetchRemoteRule")),c(null))};return he(()=>{Ge().then(T=>{let v=T.buildinConfigUpdatedAt;D(T);let C=new Date(v);if(r(v),x==="0.0.0"){b(!0);return}n({url:Ea}).then(R=>{let M=R,k=M.minVersion,P=x;i(M);let O=M.latestVersion;if(O&&(Na(P,O)?_(!0):_(!1)),Na(P,k)){let j=M.buildinConfigUpdatedAt;new Date(j)>C?(c(!0),E()):c(!1)}else y(!0),c(null)}).catch(R=>{c(null),m(R.message)})})},[]),he(()=>{Ge().then(T=>{D(T)})},[a]),S?d("div",{class:"text-sm mt-2",style:{maxWidth:218},children:w?d(Yy,{}):l?t===!1?null:d(Jy,{handleSyncing:E,message:l,date:a||""}):g?t===!1?null:d(Vy,{minVersion:u.minVersion}):s===null||s===!0?null:p?d(Gy,{date:a}):null}):null}h();var Vi='',Qr="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMTEuNjIzLS4zMTguODQ1Yy0uMjA4LjIyMi0uNTI3LjMzMy0uOTI4LjMzM2gtMS4zM1Y5LjI0MmgxLjMzWm05Ljg0NiAxLjc4OGMuMzg4IDAgLjY2NS4xNTIuODQ1LjQ1Ny4xNTIuMjY0LjIzNS41ODIuMjYzLjk4NHYuMzE5YzAgLjQ5OS0uMDgzLjg4Ny0uMjYzIDEuMTkyLS4xOC4zMDQtLjQ1Ny40NTctLjgzLjQ1Ny0uMzg5IDAtLjY2Ni0uMTUzLS44NDYtLjQ0NC0uMTUyLS4yNjMtLjIzNS0uNTk1LS4yNjMtMS4wMTF2LS4yOTFjMC0uNDg1LjA4My0uODczLjI2My0xLjE3OC4xOC0uMzA1LjQ0My0uNDg1LjgzMS0uNDg1Wm0tMy40MDctMS4xMzZhMS4xNyAxLjE3IDAgMCAwLS43MDYuMjM1IDEuNDgyIDEuNDgyIDAgMCAwLS40MTUuNWwtLjA4My4xNjUtLjA3LS44MDNoLTEuMzU3djUuNDMyaDEuNDU0di0zLjY1OWEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiA4LjEySDQuMTE0djcuMzE3aDEuNDY4VjEyLjc5aDEuMzNjLjg0NCAwIDEuNDk1LS4yMDggMS45OC0uNjM4LjQ4NS0uNDMuNzItLjk4My43Mi0xLjY5cy0uMjM1LTEuMjYxLS43Mi0xLjY5Yy0uNDQzLS4zODktMS4wMzktLjYxLTEuNzczLS42MzhsLS4yMjEtLjAxNFptOS44NDcgMS43NzRjLS44MDMgMC0xLjQyNi4yNjMtMS44ODMuNzc2LS40MTYuNDctLjYzNyAxLjA2Ny0uNjc5IDEuNzczdi4zMzNjMCAuODE4LjIyMiAxLjQ4My42NzkgMS45OTUuNDU3LjUxMyAxLjA4Ljc3NiAxLjg4My43NzYuODA0IDAgMS40MjctLjI2MyAxLjg4NC0uNzc2LjQxNS0uNDcuNjM3LTEuMDUzLjY3OC0xLjc3M3YtLjMzM2MwLS44MTctLjIyMS0xLjQ4Mi0uNjc4LTEuOTk1LS40NTctLjUxMy0xLjA4LS43NzYtMS44ODQtLjc3NlpNMTguMDAzIDZhNiA2IDAgMCAxIDAgMTJIMFY5LjQyM0EzLjQyIDMuNDIgMCAwIDEgMy40MiA2aDE0LjU4M1oiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSI3LjUiIHgyPSIyMiIgeTE9IjE5IiB5Mj0iNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMyMjIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM2OTY5NjkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=",Ql="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzk5OSIgZD0iTTYuODk3IDMuMjQyYy40MTUgMCAuNzIuMTExLjkyOC4zNDcuMjA3LjIzNS4zMTguNTI2LjMxOC44NzMgMCAuMzQ2LS4xMS42MjMtLjMxOC44NDUtLjIwOC4yMjItLjUyNy4zMzMtLjkyOC4zMzNoLTEuMzNWMy4yNDJoMS4zM1ptOS44NDYgMS43ODhjLjM4OCAwIC42NjUuMTUyLjg0NS40NTcuMTUyLjI2NC4yMzUuNTgyLjI2My45ODR2LjMxOWMwIC40OTktLjA4My44ODctLjI2MyAxLjE5Mi0uMTguMzA0LS40NTcuNDU3LS44My40NTctLjM4OSAwLS42NjYtLjE1My0uODQ2LS40NDQtLjE1Mi0uMjYzLS4yMzUtLjU5NS0uMjYzLTEuMDExdi0uMjkxYzAtLjQ4NS4wODMtLjg3My4yNjMtMS4xNzguMTgtLjMwNS40NDMtLjQ4NS44MzEtLjQ4NVptLTMuNDA3LTEuMTM2YTEuMTcgMS4xNyAwIDAgMC0uNzA2LjIzNSAxLjQ4MiAxLjQ4MiAwIDAgMC0uNDE1LjVsLS4wODMuMTY1LS4wNy0uODAzaC0xLjM1N3Y1LjQzMmgxLjQ1NFY1Ljc2NGEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiAyLjEySDQuMTE0djcuMzE3aDEuNDY4VjYuNzloMS4zM2MuODQ0IDAgMS40OTUtLjIwOCAxLjk4LS42MzguNDg1LS40My43Mi0uOTgzLjcyLTEuNjlzLS4yMzUtMS4yNjEtLjcyLTEuNjljLS40NDMtLjM4OS0xLjAzOS0uNjEtMS43NzMtLjYzOGwtLjIyMS0uMDE0Wm05Ljg0NyAxLjc3NGMtLjgwMyAwLTEuNDI2LjI2My0xLjg4My43NzYtLjQxNi40Ny0uNjM3IDEuMDY3LS42NzkgMS43NzN2LjMzM2MwIC44MTguMjIyIDEuNDgzLjY3OSAxLjk5NS40NTcuNTEzIDEuMDguNzc2IDEuODgzLjc3Ni44MDQgMCAxLjQyNy0uMjYzIDEuODg0LS43NzYuNDE1LS40Ny42MzctMS4wNTMuNjc4LTEuNzczdi0uMzMzYzAtLjgxNy0uMjIxLTEuNDgzLS42NzgtMS45OTUtLjQ1Ny0uNTEzLTEuMDgtLjc3Ni0xLjg4NC0uNzc2Wk0xOC4wMDMgMGE2IDYgMCAwIDEgMCAxMkgwVjMuNDIzQTMuNDIgMy40MiAwIDAgMSAzLjQyIDBoMTQuNTgzWiIvPjwvc3ZnPg==",w3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAABC1BMVEUAAADt7vHt7vHn5+/v7+/u7vLs7O/Y2urv7+/I0uTu7/Ls7e/r6+/r7e/J1OTE0OGdrMHu7/Hu7/Lt7vHHz9/I0+Ps7O/V3eju7/GXp72YqL7s7u/I0uPH0+Pv7/OWpr3H0uLH0+OXp7vl6e67xtmquszi5u3W3ejAzd66x9jJ0+O5xdimtcmYprzI0+Ps7e+Yp73t7vHI0+OXp7309vnCzt/N1+Xd4+ucrMHp7PLa4evR2uff5O3F0OHo6+/j5+6uu82jssedrMKaqr/Y3+nP2ObR2OOpt8rm6e/k5+68yNq6xdW2w9XT3OivvdCmtcnu8fa/ytezwNKhsMTL09/c4+zZ3+m/y9zGz9seNO0nAAAAMXRSTlMA3+8gEJ9gECDfv3BAgO/v78+vkCCQUO/f37ewoIB/cGBAQO/v79/f39/Pz8/Pv6CfPHl8AQAAAyVJREFUSMedluda4kAUQAcUkGJB0bXturq9b3JTaUkITQOiYHv/JzEzmZYYIp/nhyYz93hnbqaI0ijVqoX6oRJyWNmt1tBqlIqVvBIjv1tcQfvALZlcYe0tGmEvQz3gWmrW4rJ0BeUVCutp3lpOeZXc2ts8YWZ72abw3mKWqOdMp+3U8OaWanSpKVeI1rOrdnTVuHyhOaq6/V1tsdoKr0ib+roF/khvJry++mMHwFPZ+8GLCbZGENJ7nI7b/amBaX0zP7W2fgOmM2Zrlw12T6EYC8D4HTXGFyBc8Tls0oQKQ/UBs7MdF3eo+FWJpyzIovAEuiUyyinFJzQ8APC4J0yPzJGIImVREeIEvF8k9Op61uuB3/PcQMfvEws8dSwi8UbZ5W9dlsD1QcKbkMaOKn2mSijmuWcQreNCkp6uEkx5rDX+0ooGaUEK15HZ5cE1VGWPbdI1gXRGpLfFxaqYIhloAJBp8sIWUEVOqPuwlHksZR3l5BnOIANdnmUO0QebFAayGMUKy0QHt44yNLr2+0nRxKK1VCI9QRgySIpN/Olxr7kAN3Dpn7h1hmSnPdkWLY/BxZwQdRyjmWBrmmbeuVjUNHsOELY80VVg8OLUk6J2o0XYw+AO/w7ADRsti4gDvlj/ic/YIeJLhk74wzFhLn3IE7bkuqw4OF8qJjxKVa3yRY7FazwdEuTaLN6eOzRvT15zNbSel8rqA5g4yIVbJt6CS8WJVJs8Qmyx2iQlFWdCDGAWPfTlhXMiHR0POOUChjjozuJDdWbD6GGAE3bF0YHHKlLq1lBLp4m72/wrYjbp2yUxzQzvQexGJKVUSKfhpGg3ZNMN8kzcQDQlN0m/nfTuo3b5PGYpxR4hIWNpGdjTqPEdj8pt8H9T5KOVutP7dkiTjJF48dM4cV85JC4dgx3ke0iwXqc3aCb9LrvKBRvhthwbGRJNKiYozLa6Aib3hFleRSyn/GvVSJhXo95iNom3/WygFEr7sbuUX1SCfbSEj2X59k6a5XO0lMa+8BLm1vsSyqJxWk4e6V6mJg/4b+KS/Hx6jlbk4uz4+Ag7R3/+n12khjwDw+rmuecPQ74AAAAASUVORK5CYII=";function Zl(e){let t=hn(),{onTranslateTheMainPage:n,onUserConfigChange:a,request:r,onTranslateLocalHtmlFile:o,onSwitchTranslationMode:u,onTranslateLocalSubtitleFile:i,onSetBuildinConfig:s,pageStatus:c,openEbookBuilderPage:l,openPricingPage:m,openEbookViewerPage:p,config:f,openAboutPage:g,onTranslateTheWholePage:y,onToggleEnabled:w,openOptionsPage:b,ontranslateToThePageEndImmediately:S,onSetPageLanguage:D,onToggleTranslate:N,onTranslateLocalPdfFile:_,onTranslatePdf:x,onRestorePage:E,ctx:T,currentUrl:v,currentLang:C,onClose:R,onTranslatePage:M,onSetLocalConfig:k,onMouseTriggerChanged:P,errorMsg:O,disabledButton:j,noPermissionPDF:B}=e,A=a,[L,U]=$(""),[K,H]=$(O),[V,q]=$(null),[oe,Q]=$(null),{t:J,lang:ye}=ue(),xe=70;ye.startsWith("zh")||(xe=75);let ie=null,Y=null,ce=null,fe=null,ge=null,Ee=null,Le=null,ve=null,ee=null,De=null,_e=null,je=null;he(()=>{Xe.get(ct,null).then(W=>{W?(q(W),Q(Xt(W))):Q(!1)}).catch(W=>{Q(!1)})},[]);let We=!0,Et=ot();if(f){Et&&f&&(We=f.generalRule.showSponsorOnSafari);let{translationService:W,translationServices:pe,translationUrlPattern:nt}=f;Mn[W]&&(ve=gl("translationService",W,T)),pe&&pe[W]?je=pe[W]||{}:je={};try{ee=new URL(v||"")}catch{}if(v&&T3(v)){De=C3(ee.hostname),_e=v3(v);let{matches:Be,excludeMatches:Ie}=nt;Y=Be.includes(De),ie=Be.includes(ee.hostname),fe=Ie.includes(De),ce=Ie.includes(ee.hostname),Ee=Be.includes(_e),Le=Ie.includes(_e)}}if(f&&C&&C!=="auto"){let{translationLanguagePattern:W}=f,{matches:pe}=W;pe.includes(C)?ge=!0:ge=!1}let Vt=W=>{W.preventDefault(),b()},qa=W=>{A(pe=>(pe.alpha?U("Success disable alpha!"):U("Success enable alpha!"),{...pe,alpha:!pe.alpha}))},nn=W=>{A(pe=>({...pe,translationMode:W})),u(W)},Jn=()=>{A(W=>({...W,translationArea:"body"})),y()},ga=()=>{A(W=>({...W,translationArea:"main"})),n()},ze=(W,pe,nt,Be)=>{if(W==="default"){A(jn=>{let cn={...jn.translationUrlPattern};return{...jn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...jn.translationUrlPattern,matches:at([ee?.hostname,De,v],cn.matches),excludeMatches:at([ee?.hostname,De,v],cn.excludeMatches)}}});return}let Ie=W,Qn=Ie==="matches"?"excludeMatches":"matches";ee&&A(jn=>{let cn={...jn.translationUrlPattern};return cn[Ie]=bn(pe,cn[Ie]),Be.length>0&&(cn[Ie]=at(Be,cn[Ie])),cn[Qn]=at(nt,cn[Qn]),{...jn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...jn.translationUrlPattern,...cn}}}),Ie==="matches"&&c==="Original"?setTimeout(()=>{M(),R()},100):Ie==="excludeMatches"&&c==="Translated"&&setTimeout(()=>{E(),R()},100)},an=W=>{if(!W){A(Be=>{let Ie={...Be.translationLanguagePattern};return{...Be,translationLanguagePattern:{...Be.translationLanguagePattern,matches:at(C,Ie.matches),excludeMatches:at(C,Ie.excludeMatches)}}});return}let pe=W,nt=pe==="matches"?"excludeMatches":"matches";C&&A(Be=>{let Ie={...Be.translationLanguagePattern};return Ie[pe]=bn(C,Ie[pe]),Ie[nt]=at(C,Ie[nt]),{...Be,translationLanguagePattern:{...Be.translationLanguagePattern,...Ie}}}),pe==="matches"&&c==="Original"&&setTimeout(()=>{M(),R()},100)},bt=ee?.pathname.toLowerCase().endsWith(".pdf"),Ze=J("translate");c==="Translated"||c==="Error"?Ze=J("show-original"):c==="Original"?bt?Ja()&&ee.protocol==="file:"||B?Ze=J("translate-firefox-local-pdf"):me()?Ze=J("noSupportTranslate-pdf"):Ze=J("translate-pdf"):Ze=J("translate"):Ze=J(c);let ln=J("translateToThePageEndImmediately");(c==="Original"||c==="Translated")&&(f.shortcuts.toggleTranslatePage&&(Or()&&T.rule.fingerCountToToggleTranslagePageWhenTouching>=2?Ze+=` (${J(`fingers.${T.rule.fingerCountToToggleTranslagePageWhenTouching}`)})`:Ze+=` (${f.shortcuts.toggleTranslatePage})`),f.shortcuts.toggleTranslateToThePageEndImmediately&&(ln+=` (${f.shortcuts.toggleTranslateToThePageEndImmediately})`));let Yt=[];T&&(Yt=Ei(T,"translationService"));let ma=W=>{W.preventDefault(),R()},At=Zr(T.config.translationService,T.config.targetLanguage),An=Ee||ie||Y,Ve=()=>Ee?d("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[d("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!Ee,onChange:W=>{let pe=W.target.checked;ze(pe?"matches":"default",_e,[_e],[])}}),J("alwaysTranslateSomePage")]}):ie?d("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[d("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!ie,onChange:W=>{let pe=W.target.checked;ze(pe?"matches":"default",ee.hostname,[ee.hostname,De,_e],[De])}}),J("alwaysTranslateSomeSiteOrWildSite")]}):Y?d("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[d("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!Y,onChange:W=>{let pe=W.target.checked;ze(pe?"matches":"default",De,[_e,ee.hostname,De],[ee.hostname])}}),J("alwaysTranslateSomeSiteOrWildSite")]}):null;return d("div",{children:[d("div",{class:"popup-container px-6 pt-6 max-content",children:[d("div",{class:"text-sm",children:[d("div",{class:"flex justify-between mb-3 items-center",children:[d("label",{class:"inline-block text-label",children:[J("popupSourceLanguage"),"\uFF1A"]}),d(On,{maxWidth:186,items:sn.map(W=>({label:Mt(W,f.interfaceLanguage),value:W,selected:W===T.sourceLanguage,onSelected:pe=>{D(pe.value)}}))})]}),f&&f.targetLanguage&&d("div",{class:"flex items-center justify-between mb-3",children:[d("label",{class:"inline-block text-label",children:[J("popupTarget"),"\uFF1A"]}),d(On,{maxWidth:186,items:At.filter(W=>W!=="auto").map(W=>({label:Mt(W,f.interfaceLanguage),value:W,selected:W===f.targetLanguage,onSelected:pe=>{A(nt=>({...nt,targetLanguage:pe.value}))}}))})]}),ve&&Yt.length>0&&d(Fe,{children:[d("div",{class:"flex items-center justify-between mb-3",children:[d("label",{class:"inline-block text-label",children:[J("popupService"),"\uFF1A"]}),d(On,{maxWidth:186,items:Yt.map(W=>({label:`${J("translationServices."+W.id)}${W.ok?"":" "+(" "+(!oe&&!Et&&W.providers&&W.providers.length>0?J("goLoginOrAction"):J("needAction")))}`,value:W.id,selected:W.selected,onSelected:pe=>{let nt=Yt.find(Be=>Be.id===pe.value);if(nt.ok){if(A(Be=>({...Be,translationService:nt.id})),c!="Translated")return;nt.props.length===0?setTimeout(()=>{M()},1):setTimeout(()=>{E()},1)}else A(Be=>({...Be,translationService:nt.id})),setTimeout(()=>{b()},100)}}))})]}),je&&ve.props.length>0&&ve.props.map((W,pe)=>d("div",{class:"pl-4 text-sm",children:d(Yl,{field:W,value:je[W.name],onChange:nt=>{A(Be=>{let Ie=Be.translationServices||{},Qn=Ie[ve.id]||{};return setTimeout(()=>{E()},1),{...Be,translationServices:{...Ie,[ve.id]:{...Qn,[W.name]:nt}}}})}},"field-"+pe)},"service"+pe))]}),ee&&d("div",{class:"flex items-center justify-between mb-3",children:[d("label",{class:"inline-block text-label",children:J("forThisSite")}),d(On,{maxWidth:186,items:[{label:J("default"),value:"default",selected:ie===!1&&ce===!1&&!Y&&!fe&&!Ee&&!Le,onSelected:()=>{ze("default",ee.hostname,[],[]);let W=ee.hostname,pe=T.localConfig.tempTranslationUrlMatches||[],nt=pe.filter(Ie=>Ie.match!==W),Be=!1;nt.length!==pe.length&&(Be=!0),Be&&k({...T.localConfig,tempTranslationUrlMatches:[...nt]})}},_e&&{label:J("alwaysTranslateSomeSite",{hostname:J("currentUrl")}),value:"matchesUrl",selected:Ee,onSelected:()=>{ze("matches",_e,[_e],[])}},{label:J("alwaysTranslateSomeSite",{hostname:ee.hostname}),value:"matches",selected:ie,onSelected:W=>{ze(W.value,ee.hostname,[ee.hostname,De,_e],[De])}},De&&{label:J("alwaysTranslateSomeSite",{hostname:De}),value:"matchesWild",selected:Y,onSelected:()=>{ze("matches",De,[_e,ee.hostname,De],[ee.hostname])}},_e&&{label:J("neverTranslateSomeSite",{hostname:J("currentUrl")}),value:"excludeMatchesUrl",selected:Le,onSelected:()=>{ze("excludeMatches",_e,[_e],[])}},{label:J("neverTranslateSomeSite",{hostname:ee.hostname}),value:"excludeMatches",selected:ce,onSelected:W=>{ze(W.value,ee.hostname,[ee.hostname,De,_e],[De])}},De&&{label:J("neverTranslateSomeSite",{hostname:De}),value:"excludeMatchesWild",selected:fe,onSelected:()=>{ze("excludeMatches",De,[ee.hostname,_e,De],[ee.hostname])}}].filter(Boolean)})]}),P&&ua()&&d("div",{class:"flex items-center justify-between mb-3",children:[d("label",{class:"inline-block text-label",children:[J("mouse-translate"),"\uFF1A"]}),d(On,{maxWidth:186,items:Ca.filter(W=>!(Ca.includes(f.generalRule.mouseHoverHoldKey)&&W==="OtherCustom")).map(W=>{let pe=J("mouseHoldKey",{key:W}),nt=Ca.includes(f.generalRule.mouseHoverHoldKey),Be=W===f.generalRule.mouseHoverHoldKey;return W==="Auto"?pe=J("mouseHoldKeyAuto"):W==="Off"?pe=J("mouseHoldKeyOff"):W==="OtherCustom"?pe=nt?J("mouseHoldKeyOther"):J("mouseHoldKeyCustomKey",{key:f.generalRule.mouseHoverHoldKey}):W==="Other"&&(pe=J("mouseHoldKeyOther")),nt||W==="OtherCustom"&&(Be=!0),{label:pe,value:W,selected:Be,onSelected:Ie=>{Ie.value==="Other"?b("#interface"):P(Ie.value)}}})})]})]}),d("div",{class:"",children:d("button",{class:"py-2 mt-1 mb-5 main-button ",onClick:()=>{bt?x&&x():N()},"aria-busy":c==="Translating",disabled:j||c==="Translating",children:Ze})}),d("div",{class:"text-sm",children:L}),d("div",{class:`pb-2 text-sm ${K?"":"display-none"}`,children:K}),d("div",{class:"flex items-center justify-between flex-wrap",children:[An?d(Ve,{}):C&&C!=="auto"?d("label",{for:"alwaysTranslateThisLanugage",class:"text-sm text-label text-overflow-ellipsis max-w-20",children:[d("input",{type:"checkbox",id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",checked:!!ge,onChange:W=>{let pe=W.target.checked;an(pe?"matches":void 0)}}),J("alwaysTranslateSomeLanguage",{language:Mt(C,f.interfaceLanguage,!1,!0)})]}):d("span",{}),d("div",{class:`flex flex-end flex-grow ${K?"display-none":""}`,children:d("span",{class:"immersive-translate-no-select muted text-sm",onClick:nu(7)(qa),children:["V",t,f.enabled?null:d("a",{href:"#",onClick:w,children:[" ","(",J("hasBeenDisabled"),")"]})]})})]})]}),d("footer",{children:[d("div",{class:"px-6 text-label",children:d(Jl,{isShowError:!1,request:r,setStorageBuildinConfig:s})}),d("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer text-label",children:[d("div",{class:"flex flex-row items-center justify-center secondary clickable",style:{width:70},onClick:Vt,children:[d($l,{}),d("span",{class:"ml-1",children:J("options")})]}),We?d("a",{title:J(oe?"popup.openProForPro":"popup.openPro"),target:"_blank",href:oe?Dr:W0,children:d("img",{src:oe?Qr:Ql})}):oe&&d("a",{title:J(oe?"popup.openProForPro":"popup.openPro"),target:"_blank",href:oe?Dr:W0,children:d("img",{src:oe?Qr:Ql})}),d(Vl,{label:J("more"),showArrow:!0,maxWidth:xe,onSelected:W=>{W.value==="openPremium"?(globalThis.open(Va),R()):W.value==="changeToOnlyTranslationMode"?nn("translation"):W.value==="changeToDualTranslationMode"?nn("dual"):W.value==="translateTheWholePage"?y():W.value==="translateToThePageEndImmediately"?S():W.value==="translateTheMainPage"?n():W.value==="showTranslationOnly"||(W.value==="translateLocalPdfFile"?_&&_():W.value==="translateLocalHtmlFile"?o&&o():W.value==="translateLocalSubtitleFile"?i&&i():W.value==="donate"?(globalThis.open(f.donateUrl),R()):W.value==="feedback"?(globalThis.open(f.feedbackUrl),R()):W.value==="options"?(b(),R()):W.value==="changeToTranslateTheWholePage"?Jn():W.value==="changeToTranslateTheMainPage"?ga():W.value==="about"?g():W.value==="toggleEnabled"?w():W.value==="openEbookViewer"?p():W.value==="openEbookBuilder"?l():W.value==="goPro"&&m())},menus:[f.translationMode==="dual"&&{label:"\u{1F524} "+J("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},f.translationMode==="translation"&&{label:"\u{1F521} "+J("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},f.translationArea==="main"&&{label:"\u{1F480} "+J("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},f.translationArea==="body"&&{label:"\u{1F4D6} "+J("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},{label:"\u26A1 "+ln,value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+J("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+J("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+J("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},!me()&&{label:"\u{1F310} "+J("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+J("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},oe===!1&&We&&{label:"\u{1F451} "+J("upgradeToPro"),value:"goPro"},{label:"\u2764\uFE0F "+J(We?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})]})]})}h();h();async function A3(e){try{let t=new Date;z.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await X.storage.local.set({[qg]:t.toISOString()}),await Qy(),me()||await k3()}catch(t){z.error("run cron task failed",t)}}async function Qy(){try{let e=await Nn(),t=await se({url:Ea}),n=e.buildinConfigUpdatedAt,a=new Date(n),r=t.buildinConfigUpdatedAt,o=new Date(r),u=t.minVersion,i=X.runtime.getManifest().version;Na(i,u)?o>a?(await X.storage.local.set({buildinConfig:t}),z.info(`sync remote rules success, latest: ${new Date(r).toLocaleString()}`)):z.debug(`no need to sync rules, latest: ${a}`):z.info(`local version is too old, please update to ${u} or later`)}catch(e){z.error("sync rules error: ",e)}}h();h();function Yi(){let e=new Date;return`${e.getFullYear()}-${e.getMonth()+1}-${e.getDate()}_${e.getHours()}-${e.getMinutes()}-${e.getSeconds()}`}h();async function Ua(){let e=["bingGlobalConfig","baiduGlobalConfig",Pg,xa];for(let t of e)await X.storage.local.remove(t);me()||await mp(),await il()}function S3(){return me()?Promise.resolve("0 B"):El()}h();h();var Vn=class{accessToken;constructor(t){this.accessToken=t}async listAll(){let t=[],n="";do{let{nextPageToken:a,files:r}=await this.list(n).catch(o=>{throw o});t.push(...r),n=a||""}while(n);return t}async getConfig(t){try{return await(await fetch(`https://www.googleapis.com/drive/v3/files/${t}?alt=media`,{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(n){return z.error("get config error, use default",n),{}}}async delete(t){await fetch(`https://www.googleapis.com/drive/v3/files/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${this.accessToken}`}})}findByName(t){return this.list(void 0,`name = '${t}'`)}uploadConfig(t,n=$u){let a=new Blob([JSON.stringify(t,null,2)],{type:"application/json"});return this.upload({name:n,parents:["appDataFolder"],mimeType:"application/json"},a)}updateConfig(t,n){let a=new Blob([JSON.stringify(n,null,2)],{type:"application/json"});return this.updateContent(t,a)}async upload(t,n){let a=new FormData;a.append("metadata",new Blob([JSON.stringify(t)],{type:"application/json; charset=UTF-8"})),a.append("file",n);let r=await fetch("https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart",{method:"POST",headers:{Authorization:`Bearer ${this.accessToken}`},body:a});return r.ok?await r.json():Promise.reject(r.text())}async list(t,n){let a=new URL("https://www.googleapis.com/drive/v3/files");t&&a.searchParams.append("pageToken",t),n&&a.searchParams.append("q",n),a.searchParams.append("spaces","appDataFolder"),a.searchParams.append("fields","files(id,name,createdTime,modifiedTime,size)"),a.searchParams.append("pageSize","100"),a.searchParams.append("orderBy","createdTime desc");try{return z.debug("list api:",a.toString(),this.accessToken),await(await fetch(a.toString(),{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(r){throw z.error("fetch google ip error",r),r}}async updateContent(t,n){return await(await fetch(`https://www.googleapis.com/upload/drive/v3/files/${t}?uploadType=media`,{method:"PATCH",headers:{Authorization:`Bearer ${this.accessToken}`},body:n})).text()}};h();h();function D3(e,t){let n=["https://www.googleapis.com/auth/drive.appdata"];return`https://accounts.google.com/o/oauth2/v2/auth?client_id=${Ku}&response_type=token&redirect_uri=${encodeURIComponent(t)}&scope=${encodeURIComponent(n.join(" "))}&state=${encodeURIComponent(JSON.stringify(e))}`}function L3(e){let t=e.match(/[#?](.*)/);return!t||t.length<1?null:{access_token:new URLSearchParams(t[1].split("#")[0]).get("access_token")}}async function Xl(e,t,n,a,r,o,u){if(z.debug(`autoSyncStrategy accessToken: ${e}`),t===null){z.debug("autoSyncStrategy settings is null");return}let i=new Vn(e);try{let s=(await i.findByName($u)).files;z.debug("files",s);let c=s[0]?.id,l=null;if(c&&(l=await i.getConfig(c).then(m=>({fileId:c,config:m}))),l){let{config:m,fileId:p}=l,f=m.updatedAt?new Date(m.updatedAt):new Date(0),g=t.updatedAt?new Date(t.updatedAt):new Date(0);if(z.debug("remoteUpdatedAt",f,"localUpdatedAt",g),f>g)z.debug("remote is newer, update local config",m),n(m),o&&o(!0);else if(f.getTime()===g.getTime())z.debug("remote and local are the same, do nothing"),o&&o(!1);else if(f{r.status!=200&&u("Token validation error"),r.json().then(i=>{i.aud&&i.aud===Xy?o(e):u("Token validation error")})})}return fetch(n).then(a)}function P3(e,t=!1){let n=ex;if(typeof window<"u"&&window.location.protocol.startsWith("http")){let r=window.location.hostname,o=window.location.port;n=`${window.location.protocol}//${r}${o?`:${o}`:""}/auth-done/`}return new ja(e,n).auth(t)}function ec(e,t=!1){return P3(e,t).then(n=>n.access_token||null)}var tx="https://oauth2.googleapis.com/revoke",ja=class e{CLASSNAME="GoogleAuth";_state;_redirectUrl;constructor(t,n){this._state=t,this._redirectUrl=n}static revoke(t){let n=`${tx}?token=${t}`;return fetch(n,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then(async a=>(await e.removeAuthInfo(),ko()&&globalThis.location.reload(),a))}static async getAuthInfo(){let t=await X.storage.local.get(xa);if(t[xa])return t[xa]}static async removeAuthInfo(){return await X.storage.local.remove(xa)}static setAuthInfo(t){return X.storage.local.set({[xa]:t})}async auth(t=!1){let n=await e.getAuthInfo();if(z.debug(this.CLASSNAME,"token from cache:",n),n&&n.access_token&&await M3(n.access_token).then(o=>!0).catch(o=>!1))return Promise.resolve(n);let a=D3(this._state,this._redirectUrl);return z.debug(this.CLASSNAME,"auth url: "+a),ko()?this.userscriptAuthWorkflow(a,t):this.extensionAuthWorkflow(a).then(r=>(e.setAuthInfo(r),r))}async userscriptAuthWorkflow(t,n){return n&&await X.storage.local.set({[So]:!0}),globalThis.open(t,"_self"),Promise.resolve({})}extensionAuthWorkflow(t){let n,a=!1;return new Promise((r,o)=>{let u=()=>{X.tabs.onUpdated.removeListener(i),X.tabs.onRemoved.removeListener(s)},i=(p,f,g)=>{if(z.debug(this.CLASSNAME,"create tab onUpdated: "+g.url),n===p){let y=new URL(g.url||""),w=L3(g.url);y.pathname.startsWith("/auth-done")&&w?.access_token&&(z.debug(this.CLASSNAME,"auth done: "+g.url),r({access_token:w.access_token}),a=!0,X.tabs.remove(p),u())}},s=(p,f)=>{z.debug(this.CLASSNAME,"create tab onRemoved: "+p),(p===n||!a)&&(u(),o(new Error("auth failed")))},c=Math.min(500,screen.availWidth),l=Math.min(650,screen.availHeight),m;X.windows===void 0?m=X.tabs.create({url:t}).then(p=>{n=p.id}):m=X.windows.create({url:t,type:"popup",width:c,height:l,left:Math.round((screen.width-c)/2),top:Math.round((screen.height-l)/2)}).then(p=>{n=p.tabs[0].id}),m.then(()=>{X.tabs.onUpdated.addListener(i),X.tabs.onRemoved.addListener(s)}).catch(p=>{z.debug(this.CLASSNAME,"create tab failed: "+p),o(p)})})}};function nx(e){let{t}=ue(),{accessToken:n,id:a,listAllFiles:r}=e,[o,u]=$(!1);function i(s,c){s.preventDefault(),u(!0),new Vn(n).delete(c).catch(l=>{Bt(t("delete"))}).then(()=>r()).finally(()=>u(!1))}return d("a",{href:"#",className:"secondary margin-left text-sm",onClick:s=>i(s,a),"aria-busy":o,children:t("delete")})}function tc(e){let{onClose:t,accessToken:n,authExpire:a}=e,{t:r}=ue(),[o,u,i,s]=ht(),[c,l]=$([]),[m,p]=$(!0),[f,g]=$(!1),[y,w]=$({});he(()=>{n&&S().then(()=>p(!1))},[n]);let b=E=>{E.target&&E.target.id==="immersive-translate-overlay"&&t()};function S(){return new Vn(n).listAll().then(T=>{l(T)}).catch(T=>a())}function D(E){if(E.preventDefault(),c.length>=10)return Bt(r("maxBackupFiles",{count:10}));g(!0);let T="immersive-translate-config-"+Yi()+".json";new Vn(n).uploadConfig(o,T).catch(v=>{Bt(r("uploadFail"))}).then(()=>S()).finally(()=>g(!1))}function N(E,T,v){E.preventDefault(),w({[v]:!0}),new Vn(n).getConfig(T).then(C=>{u(()=>({...C})),ut(r("importSuccess"))}).catch(C=>{z.error(C),Bt(r("importFail"))}).finally(()=>w({}))}function _(E,T){new Vn(n).getConfig(E).then(v=>{let C=document.createElement("a");C.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(JSON.stringify(v,null,2))),C.setAttribute("download",T),C.style.display="none",document.body.appendChild(C),C.click(),document.body.removeChild(C)}).catch(v=>{z.error("download google config file failed",v),Bt(r("downloadFail")+": "+v.message)})}function x(E){E.preventDefault(),u({...o,autoSync:!1}),ja.revoke(n).then(()=>t())}return d("dialog",{id:"immersive-translate-overlay",onClick:b,open:!0,children:d("article",{class:"md:w-[32rem] px-4",children:[d("a",{href:"#",title:r("clickToDownload"),"aria-label":"Close",className:"close","data-target":"modal-example",onClick:E=>{E.preventDefault(),t()}}),d("h4",{children:r("syncTitle")}),d("div",{className:"mb-4",children:c.map((E,T)=>d("div",{class:"flex flex-wrap justify-between",children:[d("div",{class:"mr-2 mb-2",children:[d("div",{children:d("a",{href:"#",onClick:v=>{v.preventDefault(),_(E.id,E.name)},class:"block truncate w-40 sm:w-auto",children:E.name.replace("immersive-translate-","")})}),d("div",{class:"text-xs text-gray-500",children:[new Date(E.modifiedTime).toLocaleString(),",\xA0",Go(parseInt(E.size))]})]}),d("div",{children:[d("a",{href:"#",role:"button",className:"margin-right secondary","aria-busy":y[T],disabled:y[T],onClick:v=>N(v,E.id,T),children:r("import_hint")}),d(nx,{accessToken:n,id:E.id,listAllFiles:S})]})]},"file"+T))}),d("div",{className:"flex items-center",children:[d("a",{href:"#",role:"button",className:"mr-4","data-target":"modal-example","aria-busy":f,onClick:D,disabled:m,children:r("create_new_backup")}),d("a",{href:"#",className:"secondary text-sm","data-target":"modal-example",onClick:x,disabled:m,children:r("revokeAuth")})]})]})})}var nc=z;function ax(){let[e,t]=$(null);return he(()=>{Ge().then(n=>{t(n)})},[]),e}function _3(){let[e,t]=$(null);return he(()=>{$n().then(a=>{t(a)})},[]),[e,a=>{t(a),yn(a)}]}function ac(){let[e,t,n,a,r]=ht(),o=ax(),{t:u,setLang:i}=ue(),[s,c]=_3();if(!o)return null;return d("div",{class:"pb-4",children:[d(l,{}),d(m,{}),d(p,{}),d(f,{config:o})]});function l(){let g=b=>{b.preventDefault(),confirm(u("confirmResetConfig"))&&(r({...tr(),updatedAt:new Date().toISOString()}),ka().catch(S=>{nc.error("clean local config error",S)}),Aa().catch(S=>{nc.error("clean buildin config error",S)}),Ua().catch(S=>{nc.error("clean cache error",S)}),ut(u("resetSuccess")),setTimeout(()=>{window.location.reload()},500))},y=b=>{t(()=>({...b}))},w=b=>{b.preventDefault();let S=document.createElement("input");S.setAttribute("type","file"),S.setAttribute("accept","text/plain"),S.style.display="none",document.body.appendChild(S),S.oninput=D=>{let N=D.target,_=new FileReader;_.onload=function(){try{let x=JSON.parse(_.result);y(x),ut(u("successImportConfig"))}catch(x){Bt(`Invalid JSON ${x.message}`)}},_.readAsText(N.files[0])},S.click(),document.body.removeChild(S)};return d(Fe,{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("import_export_title")})}),d("div",{class:"pb-2",children:[d("a",{class:"mr-2 secondary mb-2 !text-sm",onClick:w,href:"#",role:"button",children:[ix,u("import")]}),d("a",{href:"#",class:"secondary mr-2 mb-2 !text-sm",onClick:b=>{b.preventDefault();let S=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});To.saveAs(S,"immersive-translate-config-"+Yi()+".txt")},role:"button",children:[sx,u("export")]}),d("a",{href:"#",onClick:g,class:"secondary text-sm",children:u("reset")})]})]})}function m(){return d("details",{class:"mt-4 mb-6",children:[d("summary",{children:u("clickToExpandConfig")}),d("pre",{children:d("code",{children:JSON.stringify(e,null,2)})})]})}function p(){let[g,y]=$(!1),[w,b]=$(!1),[S,D]=$(!1),[N,_]=$("");he(()=>{if(ko()&&n){let k=localStorage.getItem(So);if(localStorage.removeItem(So),k){let P=globalThis.localStorage.getItem(I0);z.debug("import_export","rawAuthInfoStr",P);let O={},j={},B="";if(P){globalThis.localStorage.removeItem(I0);try{O=JSON.parse(P),j=O.state||{},B=O.access_token||""}catch(A){z.error("parse state error",A)}}if(B&&j&&(ja.setAuthInfo({access_token:B}),z.debug("import_export","Google OAuth:",O),O)){let A=O.state;z.debug("state",A),A?.mode==="auto"?(b(!0),R(B)):(D(!0),v(B))}}}},[n]);function x(){b(!0),ec({source:globalThis.location.href,mode:"auto"},!0).then(k=>{z.debug("import_export","Google OAuth:"+k),k!==null&&R(k)}).catch(k=>{k&&k.message==="tokenValidateErrorRedirectToAuthUrl"?z.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):C(k)})}function E(){D(!0),y(!1),ec({source:globalThis.location.href,mode:"manual"},!0).then(k=>{z.debug("import_export","Google OAuth:"+k),k!==null&&v(k)}).catch(k=>{k&&k.message==="tokenValidateErrorRedirectToAuthUrl"?z.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):C(k)})}function T(){_(""),x()}function v(k){_(k),D(!1),y(!0)}function C(k){b(!1),D(!1),y(!1),t({...e,autoSync:!1}),z.error("import_export","Google OAuth error:"+k),Bt(u("authFail"))}function R(k){b(!0),z.debug("sync latest with drive",k,e),_(k),Xl(k,e,P=>{P.interfaceLanguage&&i(P.interfaceLanguage),r(P)},P=>c({...s,lastSyncedAt:P}),P=>t({...e,updatedAt:P}),P=>{P?ut(u("successSyncConfig")):ut(u("successSyncButNoChange"))},P=>Bt(u("syncFail")+P)).finally(()=>{b(!1)})}function M(k){t({...e,autoSync:k.checked}),k.checked&&x()}return d(Fe,{children:[d("hgroup",{class:"my-2",children:[d("h5",{children:u("syncToCloud")}),d("h6",{class:"!text-sm",children:u("syncToCloudDescription")})]}),d("div",{children:[d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:k=>{k.preventDefault(),x()},"aria-busy":w,href:"#",role:"button",children:[w?d(Fe,{}):F3,u("syncToGoogleDrive")]}),d("a",{href:"#","aria-busy":S,onClick:k=>{k.preventDefault(),E()},class:"secondary text-sm",children:u("backupToCloud")})]}),d("div",{class:"text-xs text-gray-500",children:s?.lastSyncedAt&&u("lastSyncedAt",{date:new Date(s.lastSyncedAt).toLocaleString()})}),s?.lastSyncErrorMessage&&d("p",{class:"mt-2 text-xs text-red-500"}),g?d(tc,{onClose:()=>y(!1),authExpire:T,accessToken:N}):null]})}function f({config:g}){let y=B3(),[w,b]=$(!1),[S,D]=$(""),[N,_]=$(""),[x,E]=$(null),{t:T}=ue();if(!y||!y.token)return null;async function v(){try{if(w)return;b(!0),_("");let M=await Ji(y?.token,e,r),k="";switch(M){case"upload":{k=T("successSyncConfigToAccount");break}case"override":{k=T("successSyncConfigInAccount");break}default:k=T("syncConfigNoUpdate")}D(k)}catch(M){D(""),_(M.message)}finally{b(!1)}}let C=M=>{c({...s,proAutoSync:M})},R=s&&s.proAutoSync!==void 0?s.proAutoSync:!0;return d(Fe,{children:[d("hgroup",{class:"my-2 mt-4",children:[d("h5",{children:T("syncToAccount")}),d("h6",{class:"!text-sm",children:T("syncToAccountDescription")})]}),d("fieldset",{class:"my-4",children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onChange:()=>{C(!R)},checked:R}),T("enableAutoSyncUserSettings")]})}),d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:M=>{M.preventDefault(),v()},"aria-busy":w,href:"#",role:"button",children:[F3," ",T("syncToAccountButton")]}),N?d("p",{class:"text-xs text-red-500",children:N}):d("p",{class:"text-xs text-gray-500",children:S||s?.accountLastSyncedAt&&T("lastSyncedAt",{date:Lp(s.accountLastSyncedAt)})})]})}}async function Ji(e,t,n){try{if(t===null)return"noupdate";let a=await ox(e),r=await $n();r.accountLastSyncedAt=Date.now(),z.debug("settings",t),z.debug("local settings.updatedAt",t.updatedAt),z.debug("remote settings.updatedAt",a.updatedAt),z.debug("last synced at",r.accountLastSyncedAt);let o=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(o=!0),!o&&t.updatedAt>a.updatedAt&&(o=!0),z.debug("isUpload",o),o)return await ux(e,t),await yn(r),"upload";let u=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(u=!0),!u&&t.updatedAt0&&Xe.remove(ct),a}}function En(e,t){let n=B3(),[a,r]=_3();he(()=>{!n||!n.token||a&&a.proAutoSync===!1||rx(n)&&Ji(n.token,e,t)},[e,n])}function rx(e){return Xt(e)?!0:new Date(e.createTime){Xe.get(ct,null).then(n=>{t(n)})},[t]),e}function ox(e){return(location.href?.indexOf("popup.html")>0?Pn:se)({responseType:"json",url:Bo+"/v1/user/settings",method:"get",headers:{token:e}}).then(n=>n.data)}function ux(e,t){return(location.href?.indexOf("popup.html")>0?Pn:se)({responseType:"json",url:Bo+"/v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(a=>a.data)}var F3=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",children:d("path",{fill:"currentColor",d:"M15.375 19.25q-.525.25-.95-.038q-.425-.287-.425-.937q0-.25.163-.487q.162-.238.412-.363q1.575-.75 2.5-2.225T18 11.95q0-1.125-.425-2.188Q17.15 8.7 16.25 7.8L16 7.55V9q0 .425-.287.712Q15.425 10 15 10t-.712-.288Q14 9.425 14 9V5q0-.425.288-.713Q14.575 4 15 4h4q.425 0 .712.287Q20 4.575 20 5t-.288.713Q19.425 6 19 6h-1.75l.4.35q1.225 1.225 1.788 2.662Q20 10.45 20 11.95q0 2.4-1.25 4.362q-1.25 1.963-3.375 2.938ZM5 20q-.425 0-.713-.288Q4 19.425 4 19t.287-.712Q4.575 18 5 18h1.75l-.4-.35q-1.225-1.225-1.788-2.662Q4 13.55 4 12.05q0-2.4 1.25-4.363Q6.5 5.725 8.625 4.75q.525-.25.95.037q.425.288.425.938q0 .25-.162.487q-.163.238-.413.363q-1.575.75-2.5 2.225T6 12.05q0 1.125.425 2.187Q6.85 15.3 7.75 16.2l.25.25V15q0-.425.288-.713Q8.575 14 9 14t.713.287Q10 14.575 10 15v4q0 .425-.287.712Q9.425 20 9 20Z"})}),ix=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zm10-5.828L19.071 7.1l1.414 1.414L12 17 3.515 8.515 4.929 7.1 11 13.17V2h2v11.172z"})]}),sx=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zM13 5.828V17h-2V5.828L4.929 11.9l-1.414-1.414L12 2l8.485 8.485-1.414 1.414L13 5.83z"})]});function oc(e){let{onClose:t}=e,[n,a]=$("Original"),[r,o,u,i]=ht(()=>{setTimeout(()=>{D("updateGlobalContext",!1)()},250)});En(r,o);let[s,c]=$(null),[l,m]=$(globalThis.location.href),[p,f]=$("auto"),[g,y]=$(null),w=j=>{a(j.detail)},b=j=>{f(j);let B=x3(l,j,s.sourceLanguageUrlPattern);o(A=>({...A,sourceLanguageUrlPattern:B})),xn(j)},S=()=>{m(globalThis.location.href)};he(()=>(document.addEventListener(Yu,w,!1),Nn().then(j=>{c(j);let B=Dt();f(B);let A=tt();a(A),A3(j.interval)}),document.addEventListener("urlChange",S),()=>{document.removeEventListener("pageTranslatedStatus",w),document.removeEventListener("urlChange",S)}),[]),he(()=>{Nn().then(j=>{c(j)})},[r]),he(()=>{l&&s&&Lt({url:l,config:s}).then(j=>{y(j)})},[l,s]);let D=(j,B,A={})=>()=>{Yr({method:j,data:A||{}}),B&&t()},N=()=>{t()},_=()=>{o(j=>({...j,enabled:!j.enabled})),setTimeout(()=>{N()},50)},x=()=>{rc(),setTimeout(()=>{N()},50)},E=()=>{rc(),setTimeout(()=>{N()},50)},T=(j="")=>{Xr(!0,j),setTimeout(()=>{t()},50)},v=()=>{Xi(tm),setTimeout(()=>{globalThis.close()},50)},C=()=>{Zi(),setTimeout(()=>{t()},50)},R=()=>{es(),setTimeout(()=>{t()},50)},M=()=>{I3(),setTimeout(()=>{t()},50)},k=()=>{ts(),setTimeout(()=>{t()},50)},P=()=>{O3(),setTimeout(()=>{t()},50)},O=j=>{o(B=>({...B,generalRule:{...B.generalRule,mouseHoverHoldKey:j}}))};return!s||!g?null:d(Zl,{openEbookViewerPage:R,openEbookBuilderPage:k,onSwitchTranslationMode:j=>{D("switchTranslationMode",!0,{mode:j})()},onTranslateLocalHtmlFile:M,onTranslateLocalSubtitleFile:P,request:se,onClose:N,onToggleEnabled:_,onTranslateTheWholePage:D("translateTheWholePage",!0),openOptionsPage:T,openPricingPage:v,onToggleTranslate:D("toggleTranslatePage",!0),onTranslateTheMainPage:D("translateTheMainPage",!0),ontranslateToThePageEndImmediately:D("translateToThePageEndImmediately",!0),onTranslatePage:D("translatePage",!0),onRestorePage:D("restorePage",!1),onTranslatePdf:x,openAboutPage:C,onTranslateLocalPdfFile:E,onSetPageLanguage:b,onUserConfigChange:o,config:s,pageStatus:n,ctx:g,currentUrl:l,currentLang:p,onSetLocalConfig:Qi,onSetBuildinConfig:R3,onMouseTriggerChanged:O})}function lx(e,t){for(let n of t){if(me()&&!Ja()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}var uc={position:"right",right:0,top:335},Kt={...uc},rs=!1,ar=null,Yn=null,os=null,ic=null,eo=null,sc=null,N3=6,ns,as,j3=null,z3=null;async function H3(){let e=Ke();sc=await K3(),Kt=sc.pagePopupConfig||Kt;let t=document.createElement("div");t.id="immersive-translate-popup",t.setAttribute("style","all: initial"),document.documentElement.appendChild(t);let n=t.attachShadow({mode:"open"});ic=n;let a=[e.IMMERSIVE_TRANSLATE_PICO_CSS,e.IMMERSIVE_TRANSLATE_COMMON_CSS,e.IMMERSIVE_TRANSLATE_POPUP_CSS,e.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);lx(n,[a]);let r=document.createElement("div");r.innerHTML=e.IMMERSIVE_TRANSLATE_POPUP_HTML,n.appendChild(r),ar=n.querySelector("#immersive-translate-popup-container");let u=n.querySelector("#immersive-translate-popup-btn");Yn=u,os=n.querySelector("#mount"),ar.setAttribute("style",lc(Kt)),mc(),u.addEventListener("mousedown",q3),u.addEventListener("touchstart",gx),globalThis.addEventListener("resize",s=>{ar.setAttribute("style",lc(Kt))})}function cx(){Wa(null,os),os.style.display="none",Yn.style.display="block",eo=setTimeout(()=>{mc(!0)},2e3)}function U3(e){let t=e.querySelector("#mount"),n=()=>{cx()},a=r=>{r&&r.target&&r.target.id==="immersive-translate-popup-overlay"&&n()};(async()=>{let r=await Nn();Wa(d(ii,{lang:r.interfaceLanguage,fallbackLang:"zh-CN",translations:Vr,children:d("div",{onClick:a,id:"immersive-translate-popup-overlay",class:"immersive-translate-popup-overlay",children:d("div",{class:"immersive-translate-popup-wrapper",style:dx(),children:d(oc,{onClose:n})})})}),t)})().then(()=>{Yn.style.display="none",os.style.display="block"})}function dx(){let e=cc(),t=e.height,{position:n,top:a,left:r}=Kt,o={position:"fixed"},u=300,i=300,s=100;return kg()&&(n=uc.position,a=uc.top),n==="right"||n==="left"?(o.top=a-s,o.top+u>=t?(o.bottom=30,delete o.top):o.top<=10&&(o.top=10),n==="right"?o.right=0:n==="left"&&(o.left=0)):(n==="top"||n==="bottom")&&(o.left=r-s,o.left+i>=e.width?(o.right=0,delete o.left):o.left<=10&&(o.left=0),n==="top"?o.top=0:n==="bottom"&&(o.bottom=0)),o}function cc(){return{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}function q3(e){z3=ar.getAttribute("style"),ns=e.pageX,as=e.pageY,eo&&clearTimeout(eo),rs=!1,Yn.style.opacity="1",Yn.style.transform="none",j3=Yn.getAttribute("style"),globalThis.addEventListener("mousemove",dc),globalThis.addEventListener("mouseup",gc),globalThis.addEventListener("touchmove",W3),globalThis.addEventListener("touchend",us),globalThis.addEventListener("touchcancel",us)}function gx(e){e.preventDefault&&e.preventDefault(),q3(e.changedTouches[0])}function W3(e){dc(e.changedTouches[0])}function us(e){e.preventDefault&&e.preventDefault(),gc(e.changedTouches[0])}function dc(e){e.preventDefault&&e.preventDefault(),rs=!0,ar.setAttribute("style",`left:${e.clientX}px;top:${e.clientY}px;transform:scale(1.6);`)}function gc(e){e.preventDefault&&e.preventDefault(),px(),eo&&clearTimeout(eo),ns=ns||0,as=as||0;let t=Math.abs(e.pageX-ns),n=Math.abs(e.pageY-as);t{mc(!0)},2e3)}function mc(e=!1){Yn.style.opacity="0.4";let t="";Kt.position==="left"?t="translateX(-40%)":Kt.position==="right"?t="translateX(40%)":Kt.position==="top"?t="translateY(-40%)":Kt.position==="bottom"&&(t="translateY(40%)"),Yn.style.transform=t,e&&(Yn.style.transition="transform 0.2s ease-in-out, opacity 0.2s ease-in-out")}function px(){globalThis.removeEventListener("mousemove",dc),globalThis.removeEventListener("mouseup",gc),globalThis.removeEventListener("touchmove",W3),globalThis.removeEventListener("touchend",us),globalThis.removeEventListener("touchcancel",us)}function lc(e){let t=fx(e);return Object.keys(t).map(n=>typeof t[n]=="number"?`${n}:${t[n]}px;`:"").join("")}function fx(e){let{position:t,...n}=e,a=cc(),r={};return t==="left"?(r.left=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="right"?(r.right=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="top"?(r.top=0,n.left>a.width?r.left=a.width-100:r.left=n.left):t==="bottom"&&(r.bottom=0,n.left>a.width?r.left=a.width-100:r.left=n.left),r}var $3=!1;async function G3(){$3||($3=!0,H3().catch(e=>{z.error("init popup error",e)}))}var V3=!1,Z3=[()=>{Ue.unbind()}],fc=[...Z3],hx=Ft(async()=>{await Xr()},50),bx=Ft(async()=>{await Zi()},50),yx=Ft(async()=>{await ts()},50),xx=Ft(async()=>{await es()},50),X3=Ft(e=>{Yr({method:e,data:{trigger:"userscript_menu"}})},50),Tx=Ft(()=>{is();let e=new CustomEvent(Ta,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},200),Ex=Ft(()=>{cs();let e=new CustomEvent(Ta,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},200),Cx=Ft(()=>{ls();let e=new CustomEvent(Ta,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},200);function vx(e,t){let n=e.document;if(V3)return;if(V3=!0,me()||sf(),n.addEventListener("securitypolicyviolation",Rx),document.addEventListener(be+"DocumentMessageUser",rf),document.addEventListener(be+"DocumentMessageUpdateUser",of),document.addEventListener(be+"ChangeSuccessService",uf.bind(null,t)),document.addEventListener(Vu,Fx.bind(null,t)),n.addEventListener(be+"EbookLoaded",Bx),n.addEventListener(_g,_x),n.addEventListener(Bg,Ix.bind(null,t)),n.addEventListener("click",r=>{Sx(r,t)}),me()&&(globalThis.top!=globalThis.self?e.addEventListener("message",Ax,!1):n.addEventListener(Ta,wx)),globalThis.top===globalThis.self){let r=Pa.rootIframe(ti);r.handleAsk("getRateLimitDelay",h3),r.handleAsk("throttleRequest",b3)}}function ef(e,t){Ox(),vx(t,e);let n=t.document,a=kx.bind(null,e);e.rule.fingerCountToToggleTranslagePageWhenTouching>=2&&n.addEventListener("touchstart",a),fc.push(()=>{n.removeEventListener("touchstart",a)}),me()&&globalThis.top===globalThis.self&&(Wl(e.config),Nx(e.config)),ot()&&Wl(e.config)}function wx(e){G3()}function Ax(e){let t=e;t&&t.data&&t.data.payload&&t.data.author===Gu&&Jr(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})}function kx(e,t){let n=t;n.touches.length==e.rule.fingerCountToToggleTranslagePageWhenTouching?Tx():n.touches.length===e.rule.fingerCountToToggleTranslationMaskWhenTouching?Cx():n.touches.length===e.rule.fingerCountToToggleTranslagePageOnlyTranslationWhenTouching&&Ex()}function Sx(e,t){let n=e.target;if(!n||!n.getAttribute){pc(n);return}let a=n.getAttribute("data-immersive-translate-event");a&&et(a,[{name:a}],{...t,sourceLanguage:"none"});let r=n.getAttribute(`data-${Z}-action`);if(r)if(r==="retry"){e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),ss(),pc(n,!0);return}else if(r=="toast-error"){let o=n.getAttribute(`data-${Z}-tooltip-text`);hc(nf.bind(null,t,o||""))}else r=="close-search"&&(e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),hc(Mx.bind(null,t)));pc(n)}async function Y3(e=!1){let t=document.querySelector(`.${Z}-search-recomend`);if(!t||(t.remove(),!e))return;let n=await vn();n.generalRule||(n.generalRule={}),n.generalRule.enableSearchEnhancement=!1,await Cn(n)}async function Dx(){let e=await vn(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,a=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(a=e.translationUrlPattern.matches||[]),!n&&a.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await Cn(e)}async function Lx(){let e=await vn(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await Cn(e)}var J3=0;function hc(e){let t=Date.now();if(t-J3<2e3)return;J3=t;let n=`${Z}-modal`,a=document.querySelector(`.${n}`);if(a?.style.display=="block")return;let r=`${Z}-modal-title`,o=`${Z}-modal-body`,u=`${Z}-modal-footer`;if(a){let i=a.querySelector(`.${r}`),s=a.querySelector(`.${u}`),c=a.querySelector(`.${o}`);e(a,i,c,s)}else{a=document.createElement("div"),a.className=n+" notranslate",a.id=n;let i=document.createElement("div");i.className=Z+"-modal-content notranslate",a.appendChild(i);let s=document.createElement("span");s.textContent="\xD7",s.className=Z+"-close",i.appendChild(s);let c=document.createElement("div");c.className=r+" notranslate",i.appendChild(c);let l=document.createElement("div");l.className=o+" notranslate",i.appendChild(l);let m=document.createElement("div");m.className=u,i.appendChild(m),document.body.appendChild(a),s.onclick=function(){a.style.display="none"},window.onclick=function(p){p.target==a&&(a.style.display="none")},e(a,c,l,m)}setTimeout(()=>{Px()},100)}function Mx(e,t,n,a,r){let o=tf.bind(null,e);n.innerHTML=`
${Vi} ${o("disableConfirm")}
`,a.innerHTML="";let u=document.querySelector(`div[data-${Z}-cancel-desc]`),i=document.createElement("p");i.innerHTML=u?Ne.sanitize(u.textContent||""):Ne.sanitize(o("searchEnhancementNotes")),i.style.cssText="margin-bottom:12px",a.appendChild(i);let s=[{id:"enable-search-enhancement",value:"enable",text:o("enableSearchEnhancement")},{id:"disable-once",value:"once",text:o("disableOnce")},{id:"disable-global",value:"global",text:o("disableGlobal")}];for(let f=0;f${o("option")}`})),a.appendChild(c);let l=a.querySelector(`.${Z}-open-enhancement`);l&&(l.onclick=function(){lf(!0)});let m=document.createElement("button");m.innerText=o("closeModal"),m.className=`${Z}-btn ${Z}-cancel-btn`;let p=document.createElement("button");p.className=`${Z}-btn`,p.innerText=o("saveSettings"),r.innerHTML="",r.appendChild(m),r.appendChild(p),m.onclick=function(){t.style.display="none"},p.onclick=function(){let f=a.getElementsByTagName("input"),g="";for(let y=0;y
1. \u5207\u6362\u5230 ${o} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458`:i+=`

\u5982\u679C\u60A8\u6709\u7591\u95EE\uFF0C\u8BF7\u8054\u7CFB support@immersivetranslate.com`,hc(nf.bind(null,e,i))}catch(a){z.warn("parse message error",a)}}function _x(e){let t=e;if(z.debug("receive third party message",t),t&&t.detail)try{let n=JSON.parse(t.detail);n&&n.type&&(n.type==="retryFailedParagraphs"?Ux({method:"retryFailedParagraphs"}):n.type==="updateCommands"?cf(n.data):n.type==="toggleEnableDefaultAlwaysTranslatedUrls"?Dx():n.type==="toggleEnableInputTranslation"?Lx():X3(n.type))}catch(n){z.warn("parse message error",n)}}function Bx(e){setTimeout(()=>{af()},10)}function Rx(e){Ce.HAS_CSP_ERROR="1"}function Ix(e,t){let n=event.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&et(n.name,[{name:n.name}],{...e})}function Ox(){fc.forEach(e=>{e()}),fc=Z3}function Nx(e){if(me()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=pi.commands,r=[...Object.keys(t).filter(o=>o==="toggleTranslatePage").map(o=>{let u=t[o].description,i=u;return u.startsWith("__MSG_")&&u.endsWith("__")&&(i=Oa(`browser.${u.slice(6,-2)}`,e.interfaceLanguage)),{id:o,title:i}}),{id:Lo,title:Oa("browser.openEbookViewer",e.interfaceLanguage),key:"e"},{id:Mo,title:Oa("browser.openEbookBuilder",e.interfaceLanguage),key:"m"},{id:Do,title:Oa("browser.openOptionsPage",e.interfaceLanguage),key:"o"},{id:O0,title:Oa("browser.openAboutPage",e.interfaceLanguage),key:"a"}];for(let o of r)GM.registerMenuCommand(o.title,()=>{o.id===Do?hx():o.id===O0?bx():o.id===Mo?yx():o.id===Lo?xx():X3(o.id)},o.key)}}function Ux(e){Jr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{z.error("send content message request failed",e,n)});let t=new CustomEvent(Ta,{detail:e});globalThis.document.dispatchEvent(t)}h();var rr={};async function bc(){let t=[...document.querySelectorAll(".source-text")].map(a=>a.textContent).join(""),n=await it({text:t,minLength:200,pageLangs:[Za(),"en"]});return xn(n),n}async function df(e){Wt("Translating");let t=Dt(),n=Ni(),a=[...document.querySelectorAll(".source-text")];if(Mi(e,t))return;let r=a.filter(o=>o.innerText?.trim()).map((o,u)=>{let i=o.parentElement?.parentElement?.querySelector(".target-text");return ft(o,"id",u+""),i&&(Ur(i,u)?.remove(),i.appendChild(Qo(e,u))),{text:o.innerText||"",id:u,from:t,to:e.targetLanguage,url:"https://google.com",fromByClient:n}});document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await Ia({sentences:r},e,(o,u,i)=>{let s=i.id,c=Ur(document.body,s);if(!c)return;let l=c.parentElement;l&&(c.remove(),o?(l.innerHTML=Ne.sanitize(`${o.message}`),rr[s]={ok:!1,sentence:i}):u&&(l.innerHTML=Ne.sanitize(u.text),rr[s]={ok:!0,sentence:i}),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!o}})})))})}catch(o){throw o}finally{Wt("Translated")}}async function gf(e){Wt("Translating"),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(rr),n=[],a=[];for(let r of t){let o=rr[r];if(!o.ok){let i=document.querySelector(`#error-id-${r}`);if(i){let s=i.parentElement;i.remove(),s&&(delete rr[r],s.appendChild(Qo(e,r)),a.push(o.sentence))}}}try{await Ia({sentences:a},e,(r,o,u)=>{let i=u.id,s=Ur(document.body,i);if(!s)return;let c=s.parentElement;c&&(s.remove(),r?(c.innerHTML=Ne.sanitize(`${r.message}`),rr[i]={ok:!1,sentence:u}):o&&(c.innerHTML=Ne.sanitize(o.text),rr[i]={ok:!0,sentence:u}),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!r}})})))})}catch(r){throw r}finally{Wt("Translated")}}function yc(){Wt("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}h();var xc={};async function mf(){let e=[...document.querySelectorAll("iframe")],t="";for(let a of e){let r=a.contentDocument;if(!r)continue;let o=r.body;if(o&&(t=t+o.innerText||"",t.length>1e3))break}let n=await it({text:t,pageLangs:["en"]});return xn(n),n}async function pf(e){Wt("Translating"),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(xc),n=[];for(let a of t){let r=xc[a];if(r.error){let u=r.commonAncestorContainer.querySelector(`[${Ju}='${a}']`);u&&u.remove(),n.push(r)}}try{await Hi(n,e,e.config.translationMode)}catch{}finally{Wt("Translated")}}function ff(){let e=[...document.querySelectorAll("iframe")];for(let t of e){let n=t.contentDocument;if(!n)continue;let a=n.querySelectorAll("."+un);for(let r of a)r.remove()}Wt("Original")}async function hf(e){Wt("Translating");let t=Fn(),n=[...document.querySelectorAll("iframe")],a=[],r=[];for(let i of n){let s=i.contentDocument;if(!s)continue;wa(s,e);let c=s.body;if(!c)continue;let l=Tn(e);l.isModifyImage=!1,_a({id:t,container:c,filterRule:l,onParagraph:m=>{a.push(m)}})}let o=Li(e.config.translationServices[e.translationService]?.placeholderDelimiters),u=1;for(let i of a){let s=Ui(i.flatNodes,{isPreWhitespace:i.isPreWhitespace||!1,delimiters:o,stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(l=>l.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)});if(!s)continue;i.variables=s?.variables||{},i.text=s?.text,i.id=(u++).toString();let c=await Nl(i,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:o,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});c&&(r.push(c),xc[c.id]=c)}a=[],document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await Hi(r,e,e.config.translationMode)}catch{}finally{Wt("Translated")}}h();var jx=new AbortController,{signal:zx}=jx,wc=0,Ac=0,Tc=!1,Ec=0,au=!1,or,bf=0,ur=[];function ds(e,t){Hx();let n=e,a=n.config,r=a.generalRule.mouseHoverHoldKey==="Off",o=a.generalRule.mouseHoverHoldKey==="Auto",u=Ft(l=>{if(Tc==!1&&Math.abs(l.clientX-wc)+Math.abs(l.clientY-Ac)>3&&(Ec<2?Ec+=1:Tc=!0),wc=l.clientX,Ac=l.clientY,o||au&&!or){let m=Cf(n.rule,t);if(m){if(kc(m))return;xf(n,m)}}},o?700:300),i=l=>{let m=l.target;kc(m)||xf(n)},s=l=>{let m=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=Ue.getPressedKeyCodes();if(p.length>1&&Ue[m]&&(bf=Date.now(),au=!1),p.length===1&&Ue[m]){let f=Date.now();au=!0,or&&clearTimeout(or),or=setTimeout(()=>{let g=bf-f;g>0&&g<=150?au=!1:i(l),or=void 0},150)}};if(ur.push(()=>{or&&clearTimeout(or)}),r)return;Cc("mousemove",u,t),ur.push(()=>{t.removeEventListener("mousemove",u)});function c(){Tc=!1,Ec=0,u.cancel()}if(o)Cc("blur",c,t),ur.push(()=>{t.removeEventListener("blur",c)});else{let l=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",m=["ctrl","alt","shift","cmd","command","option","control"];Cc("keyup",yf,t),ur.push(()=>{t.removeEventListener("keyup",yf)}),m.includes(l)?Ue("*","mouseHover",s):Ue(a.generalRule.mouseHoverHoldKey,"mouseHover",i),Ue.setScope("mouseHover"),ur.push(()=>{Ue.deleteScope("mouseHover")})}}function Hx(){ur.forEach(e=>e()),ur=[]}function yf(e){au=!1}function Cc(e,t,n=window){return n.addEventListener(e,t,{signal:zx})}function xf(e,t,n=window){if(t=t||Cf(e.rule,n),!t){z.debug("can not find selection part!");return}if(kc(t)){z.debug("exclude dom");return}i3(e,t);let a=Ki();a?.currentUrl!==window.location.href&&(ca(),Hl(e)),a&&(a.setupMouseHoverListener=ds);let r=Tn(e);r.excludeSelectors=[],r.selectors=[];let o=!1;_a({id:a.id,container:t,filterRule:r,force:!0,onParagraph:u=>{Xo(a,u,!0).then(i=>{if(i&&!o){o=!0;let s=Date.now();$e(Og,s),et("mouse_hover_translate",[{name:"mouse_hover_translate"}],{...e,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function Cf(e,t){return qx(wc,Ac,e,t)}function qx(e,t,n,a){let r=mm(e,t,n,a);if(r==null)return;let o=()=>{let s=a.document.elementFromPoint(e,t);if(!s)return;let c=pm(s,e,t);return c===s?s.nodeName==="BUTTON"?s:void 0:Ef(c,n)},u=()=>{try{r.setStartBefore(r.startContainer),r.setEndAfter(r.startContainer)}catch(c){z.debug("get mouse over word fail",c)}let s=r.getBoundingClientRect();if(!(s.left>e||s.rightt||s.bottomn[l]=[l,...n[l]||[]]);let a=t.inputStartingTriggerKeyAlias[t.inputStartingTriggerKey]||[];a.includes(t.inputStartingTriggerKey)||a.unshift(t.inputStartingTriggerKey),n[t.inputTargetLanguage]=[...a,...n[t.inputTargetLanguage]];let r=t.inputTrailingTriggerKeyTimeout;fn().any&&(r=t.inputTrailingMobileTriggerKeyTimeout);let o={triggerTimes:t.inputTrailingTriggerKeyRepeatTimes,triggerKey:t.inputTrailingTriggerKey,triggerTimeout:r,codePrefix:t.inputStartingTriggerKey,codeAlias:n,flatAlias:Object.values(n).flat(),codePrefixAlias:t.inputStartingTriggerKeyAlias},u=0,i=Date.now();gs&&self.removeEventListener("keydown",gs),gs=s,self.addEventListener("keydown",gs);function s(l){if(to||ms===!1)return;let m=l,p=m.target||m.srcElement,f=p?.tagName;(p?.isContentEditable||f=="INPUT"||f=="SELECT"||f=="TEXTAREA")&&(iT(l,o.triggerKey,o.codePrefixAlias)?c(l):u=0)}async function c(l){Date.now()-i=o.triggerTimes&&Vx()&&(u=0,Gx(l,e,o))}sT(e)}function Wx({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let a=[],r=n[e]||[];r.includes(e)||r.unshift(e);for(let o of r){let u=t.map(i=>{let s=o+i;return r.includes(i)||(s+=" "),s});a.push(...u)}return new RegExp(a.join("|"))}function wf(e,t){for(let[n,a]of Object.entries(t))if(a.includes(e))return n;return""}var no;function Kx(e){let t=e.parentElement;if(!t)return;no=document.createElement("div"),no.className=Z+"-input",no.innerHTML=`
`,t.appendChild(no);let n=t,a=!1;do{let r=getComputedStyle(n).position;if(["fixed","absolute","relative"].includes(r)){a=!0;break}n=n.parentElement}while(n);if(n=t,!a)do{if(getComputedStyle(n).position==="static"){n.style.position="relative";break}n=n?.parentElement||null}while(n)}function $x(){no&&no.remove()}async function Gx(e,t,n){if(!to)try{let p=function(){i=t.config.inputTargetLanguage;let g=u.split(" ")[0];g&&g[0]&&(g=g[0].toLowerCase()+g.slice(1)),g.trim()&&n.flatAlias.includes(g)?(i=wf(g,n.codeAlias),o=u.slice(g.length+1)):o=u},f=function(){i="";let g=Wx(n),y=u.split(g);if(y.length<2)return;if(o=y[y.length-1],r=y[0],y.length>2){let b=u.lastIndexOf(o),S=u.slice(0,b).lastIndexOf(y[y.length-2]);r=u.slice(0,S+y[y.length-2].length)}if(r.endsWith(n.codePrefix))return;let w=u.slice(r.length+1,u.indexOf(o)).trim();if(i=wf(w,n.codeAlias),!i){z.warn("not found alias",w);return}},a=document.activeElement;to=!0;let r="",o="",u=ao(a)||"",i=t.config.inputTargetLanguage;n.codePrefix==="none"?p():(f(),!i&&t.config.enableInputTranslationWithoutTriggerKey&&p());let s=Jx(o,n),c=await it({text:s,pageLangs:["en"]});z.debug("translateContent",s,c);let l={text:s||"",id:0,from:c,to:i,url:"https://google.com",fromByClient:c};if(!l.text)return;if(t.config.isShowInputTranslationConsent&&!vf){vf=!0;let g=await lT(t);if(e.target&&e.target.focus(),g==="open_settings"){Xr(!0,"#input");return}else if(g==="open_learn_more"){Xi("https://immersivetranslate.com/docs/input/");return}else if(g==="disable_once"||g==="disable_forever"){if(ms=!1,g==="disable_forever"){let y=await vn();y.enableInputTranslation=!1,y.isShowInputTranslationConsent=!1,await Cn(y)}else if(g==="disable_once"){let y=await vn();y.isShowInputTranslationConsent=!1,await Cn(y)}return}else if(g==="close_disable_once"||g==="close_disable_forever"){if(ms=!1,g==="close_disable_forever"){let y=await vn();y.enableInputTranslation=!1,y.isShowInputTranslationConsent=!1,await Cn(y)}return}else if(g==="enable"){let y=await vn();y.enableInputTranslation=!0,y.isShowInputTranslationConsent=!1,await Cn(y)}else if(g==="close_enable"){let y=await vn();y.enableInputTranslation=!0,await Cn(y)}}Kx(a),$e(N0,Date.now());let m=await la(l,{...t,translationService:t.inputTranslationService});uT(t),oT(a,r+m.text),to=!1}catch(a){throw to=!1,a}finally{to=!1,$x()}}function Vx(){let e=document.activeElement;if(!e)return!1;if(ps(e)){let t=e.selectionStart||0,n=e.value.length,r=e.value.split(` +`).reverse()[0].trim(),o=n<=t;return z.debug("cursorPosition",t,"textLength",n),z.debug("input isTail",o,"tailHasText",r),o&&!!r}else{let t=window.getSelection();if(!t)return z.debug("No active selection found."),!1;if(t.rangeCount>0){let n=t.getRangeAt(0),a=n.startContainer;if(a.nodeType===Node.TEXT_NODE){let r=Yx(a,e);z.debug("Current text node:",a.textContent),z.debug("Cursor position within text node:",n.startOffset);let o=a.textContent?.length===n.startOffset&&r,u=a.textContent?.trim();return z.debug("editdiv isTail",o,"tailHasText",u),o&&!!u}else z.debug("Cursor is not within a text node.")}}return!1}function Yx(e,t){let n;function a(r){if(r.nodeType===Node.TEXT_NODE)n=r;else for(let o of r.childNodes)a(o)}return a(t),n==e}function Jx(e,t){let{triggerTimes:n,triggerKey:a}=t,r=0,o=" ";a.length==1?(r=n,o=a):a.toLowerCase()=="space"&&(r=n);let u=e.length;for(let i=e.length-1;i>=e.length-r;i--){if([10,8629].includes(e[i].charCodeAt(0))){u--;continue}if(![...t.codePrefixAlias[a]||[],o].includes(e[i]))break;u--}return e.length-u<3&&[".","\u3002"].includes(e[u-1])&&u--,e.slice(0,u)}function Qx(e,t){let n=t.innerHTML,a=ao(t);return{html:n.replace(a,e),text:e}}function Af(e,t,n=!1){let a=ao(t);return n?a.trim().endsWith(e.text.trim()):a.trim()==e.text.trim()}function ao(e){return e.value||e.innerText||e.textContent}async function ir(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function Zx(e,t,n){await ir(10);let a=new DataTransfer;e.forEach(r=>{r==="plain"&&a.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:a,bubbles:!0,cancelable:!0})),a.clearData(),await ir(10)}async function Xx(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await ir(10))}async function eT(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await ir(20),(t.value||t.value==="")&&(t.value=e.text)}async function tT(e,t){ps(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await ir(20))}var nT=[Zx.bind(null,["plain"])];function aT(e){let t;ps(e)?t=new InputEvent("beforeinput",{bubbles:!0,cancelable:!0,inputType:"deleteContent"}):t=new KeyboardEvent("keydown",{bubbles:!0,cancelable:!0,keyCode:8,which:8,location:0,key:"Backspace"}),e.dispatchEvent(t)}function ps(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function rT(e){if(ps(e))return;e.focus();let t=window.getSelection();if(!t)return;let n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}async function oT(e,t){await rT(e),await ir(50);let n=Qx(t,e);aT(e),z.debug("clearContent",ao(e)),await ir(50);for(let a of[...nT,eT,tT,Xx])if(await a(n,e),z.debug("setContent",a.name,Af(n,e),ao(e),n),Af(n,e))break}function uT(e){et("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage}}],e)}function iT(e,t,n){let a="";e&&e.code&&(a=e.code.toLowerCase());let r="";e&&e.key&&(r=e.key.toLowerCase());let o=e.keyCode,u=n[t]||[];return o===229&&t!=="space"?!1:!!(u.includes(a)||u.includes(r)||a===t||r===t)}async function sT(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await Ht(t,"")||Number(await Ht(N0,0))>0)return;let r=e.rule.inputTutorialsSelectors,o=e.rule.inputTutorialsText;if((r?.length||0)>0&&o)for(let u=0;u{dT()},100),new Promise(c=>{let l=c;if(o){let E=o.querySelector(`.${n}`),T=o.querySelector(`.${r}`),v=o.querySelector(`.${a}`)}else{o=document.createElement("div"),o.className=t+" notranslate",o.id=t;let E=document.createElement("div");E.className=Z+"-modal-content notranslate",o.appendChild(E);let T=document.createElement("span");T.textContent="\xD7",T.className=Z+"-close",E.appendChild(T),u=document.createElement("div"),u.className=n+" notranslate",E.appendChild(u),s=document.createElement("div"),s.className=a+" notranslate",E.appendChild(s),i=document.createElement("div"),i.className=r,E.appendChild(i),document.body.appendChild(o),T.onclick=function(){D(),c("close")},window.onclick=function(v){v.target==o&&(o.style.display="none",c("close"))}}document.addEventListener("keydown",x);let m=cT.bind(null,e);u.innerHTML=`
${Vi} ${m("modalEnableInputTranslationTitle")}
`,s.innerHTML="";let p=document.createElement("p");p.innerHTML=m("modalEnableInputTranslationDesc",{1:"https://immersivetranslate.com/docs/input/"}),p.style.cssText="margin-bottom:12px",s.appendChild(p);let f=document.createElement("div");f.style.cssText="margin-bottom: 12px;",f.innerHTML=Ne.sanitize(m("disableInputTranslationTips",{option:`${m("option")}`,learnMore:`${m("learnMore")}`})),s.appendChild(f);let g=[{id:"enable-search-enhancement",value:"enable",text:m("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:m("disableOnce")},{id:"disable-global",value:"global",text:m("disableGlobal")}];for(let E=0;E{Ia({sentences:r},{...e,translationService:"google"},(s,c,l)=>{if(s)return u([]);let m=c?.id||0,p=n[m];p&&p.className==Z+"-search-title-wrapper"&&(p.innerHTML+=Ne.sanitize(`
${c?.text}
`,{ADD_ATTR:["target"]}))})})}function fs(e,t,n){t&&et(t.key,[{name:t.key}],{...e,sourceLanguage:t.sourceLanguage||n})}function Sc(e,t,n,a){let r=n.querySelectorAll('[translate="true"]');return gT(e,t,[...r],a),n}async function Dc(e,t){let a=(await se({url:mT(e),method:"GET",responseType:"raw",headers:{"cache-control":"no-cache","content-type":"application/xml","Sec-Fetch-Site":"none",accept:"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}})).body,o=new DOMParser().parseFromString(a,"text/xml"),u=[],i=o.querySelectorAll("item");for(let s=0;s${e.cancelDescription}
`:""}

\u82F1\u6587\u641C\u7D22 - ${n} \u7684\u76F8\u5173\u65B0\u95FB:
+ ${n} \u7684\u76F8\u5173\u65B0\u95FB:

${u}
- - `.replaceAll(` -`,""),{ADD_ATTR:["target"]});let c=r.querySelector(`.${X}-search-more`);return c&&(c.onclick=()=>{let l=r.querySelector(`.${X}-expand-items`);l.style.display=="none"?(l.style.display="block",c.innerText="\u66F4\u591A\u76F8\u5173\u65B0\u95FB"):window.open(Af(n))}),r}function kf(e,t){let n=e.style;return t.map((a,r)=>{let o=a.title||"",u=a.source||"",i=o.split("-");return i.length>1&&(u=i[i.length-1].trim(),i=i.slice(0,i.length-1)),o=i.join("-"),o=o.trim(),`
${u}
-
+ + `.replaceAll(` +`,""),{ADD_ATTR:["target"]});let c=r.querySelector(`.${Z}-search-more`);return c&&(c.onclick=()=>{let l=r.querySelector(`.${Z}-expand-items`);l.style.display=="none"?(l.style.display="block",c.innerText="\u66F4\u591A\u76F8\u5173\u65B0\u95FB"):window.open(Sf(n))}),r}function Df(e,t){let n=e.style;return t.map((a,r)=>{let o=a.title||"",u=a.source||"",i=o.split("-");return i.length>1&&(u=i[i.length-1].trim(),i=i.slice(0,i.length-1)),o=i.join("-"),o=o.trim(),`
${u}
+ -
${Sp(a.pubDate||"")}
+
${Dp(a.pubDate||"")}
`}).join(` -`)}function Df(e,t){if(!e.keyword)return;let n=e.keyword.value||"";for(let a=0;anew RegExp(a.urlMatch).test(t))}async function Mf(e){if(fn().any)return;if(!e.rule.enableSearchEnhancement){z.debug("enable is false");return}let t=mT(e.rule.searchEnhancementConfig||[],e.url);if(!t){z.debug("not found siteConfig",e.url);return}let n=Df(t,e.url);if(!n){z.debug("not found keyword",e.url);return}t.id=="google"?fT(e,t,n):pT(e,t,n)}async function pT(e,t,n){let a=await it({text:document.title,pageLangs:[Dt(),"en"]});t.selector&&setTimeout(async()=>{let r=document.querySelector(t.selector);if(!r){z.debug("selector node not found",t.selector);return}let o=await Sc(n,t.showCount);if(o&&o.length<=0){z.debug("list not found");return}let u=await Dc(t,o,n,t.showCount);if(!u){z.debug("getInseredNode none");return}u.style.cssText=t.style.container||"";let i=t.selectorAction||"appendChild";i=="insertBefore"?r.parentElement?.insertBefore(u,r):i=="appendChild"?r.appendChild(u):i=="replace"&&r?.replaceWith(u),kc(e,t,u,a),hs(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a)},t.delayTime||0)}async function fT(e,t,n){let a=await it({text:n,pageLangs:["en"]});if(hs(e,{key:"detect_search_action"},a),!["zh-CN","zh-TW"].includes(a))return;z.debug("use dual search");let r=!1;if(new URL(e.url).searchParams.get("tbm")==="nws")r=!0;else if(!Lf(document.body))return;let u=document.querySelector("#rhs");if(!u){let i=document.querySelector("#rcnt");if(!i)return;let s=i.children;if(s&&s.length>1)u=s[1];else{let c=s[0];u=document.createElement("div"),u.id="rhs",u.style.maxWidth="372px",u.style.marginLeft="50px",i.insertBefore(u,c.nextSibling)}}if(r||Lf(document.body)){z.debug("find story");let i=await Sf(e,n,a);z.debug("enKeyword",i);let s=await Sc(i,t.showCount);if(z.debug("news list",s),s&&s.length<=0)return;let c=await Dc(t,s,i,t.showCount);if(!c)return;hs(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a),kc(e,t,c,a),u.insertBefore(c,u?.firstChild)}}function Lf(e){let t=e.querySelectorAll("[aria-level='2'][role=heading]");if(!t)return!1;for(let n of t){let a=(n?.textContent||"").trim();if(a.indexOf("\u7126\u70B9\u65B0\u95FB")>=0||a.indexOf("\u7126\u9EDE\u65B0\u805E")>=0||a.indexOf("Top stories")>=0)return!0}return!1}h();function Pf(e){e.state.translationMode="translation",$r(e)}var ke=null,bs={},ao,Ff=!1;async function ss(e){if(tt()==="Original"){let t={translationMode:void 0};ao&&(t.translationTheme=ao),ke&&(t={...ke.state,...t}),await $t(St(),t),await wn(ke,e)}else(tt()==="Translated"||tt()==="Error")&&or()}async function ls(){if(ke=await $t(St(),{}),ke.rule.isEbookBuilder)return gf(ke);if(ke.rule.isSubtitleBuilder)return cf(ke);s3()}async function cs(e){if(tt()==="Original")ke=await $t(St(),{}),ao||(ao=ke.state.translationTheme),ke=await $t(St(),{translationTheme:"mask"}),await wn(ke,e);else if(tt()==="Translated"){let t=wp().filter(r=>r.contentDocument?.body).map(r=>r.contentDocument.body),n=[ke.mainFrame,...t],a=ke?.state.translationTheme;for(let r of n){let o=Dr(r,wr,!0);a==="mask"?o!=="none"?pt(r,wr,"none",!0):pt(r,wr,"mask",!0):o!=="mask"?pt(r,wr,"mask",!0):pt(r,wr,"none",!0)}}}async function Lc(){let e=await $t(St(),{});return e.rule.isSubtitleBuilder?hc():i3(e)}function hT(e){tt()==="Original"?Pf(e):da()}function bT(e){tt()==="Original"?lf(e):bc()}function yT(e){tt()==="Original"?$r(e):da()}async function or(){Pc("");let e=await $t(St(),{});if(e.rule.isSubtitleBuilder){bc();return}else e.rule.isEbookBuilder&&mf();da()}async function wn(e,t){tt()!=="Original"&&await or(),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"translateStart",payload:{}})})),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"targetLanguage",payload:{targetLanguage:e.targetLanguage}})})),bs[e.translationService]||(bs[e.translationService]=!0,mt()||Fc(e).catch(a=>{z.warn("init translation engine error",a)}));let n={};if(t&&t.trigger&&(n.trigger=t.trigger),et("translage_page_daily",[{name:"translage_page_daily",params:n}],e),et("translate_page",[{name:"translate_page",params:n}],{...e,sourceLanguage:Dt()}),e.rule.isSubtitleBuilder)return bT(e);if(e.rule.isEbookBuilder)return pf(e);if(e.rule.isPdf)return hT(e);yT(e),Pc("yes")}async function _f(e){tt()==="Original"?await ys(e):(tt()==="Translated"||tt()==="Error")&&(ke=await $t(St(),{}),ke.state.translationArea!=="main"?await ys(e):or())}async function ys(e){ke=await $t(St(),{translationArea:"main"}),await wn(ke,e)}async function Mc(e){ke=await $t(St(),{translationArea:"body"}),await wn(ke,e)}async function ds(e){if(tt()==="Original"){let t=await $t(St(),{translationMode:"translation"});await wn(t,e)}else(tt()==="Translated"||tt()==="Error")&&await or()}async function Bf(e){if(ke=await $t(St(),{translationMode:void 0}),et("switch_translation_mode",[{name:"switch_translation_mode",params:{mode:e}}],{...ke,sourceLanguage:"unknown"}),tt()==="Original"){wn(ke);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(e)}async function Rf(e){if(tt()==="Original")await Mc(e);else if(tt()==="Translated"||tt()==="Error"){let t={};ke&&ke.state&&(t=ke.state),ke=await $t(St(),t),ke.state.translationArea!=="body"?(ke.state.translationArea="body",ke=await $t(St(),ke.state),await wn(ke,e)):or()}}async function If(e){ke=await $t(St(),{translationStartMode:"immediate"}),await wn(ke,e)}async function tf(){let e=await $t(St(),{});if(z.debug("init page ctx",e),e.rule.isSubtitleBuilder){hc();return}if(e.rule.isEbookBuilder){df();return}if(Mf(e),ao||(ao=e.state.translationTheme),e.rule.urlChangeDelay&&await qn(e.rule.urlChangeDelay),e.rule.waitForSelectors&&e.rule.waitForSelectors.length>0&&await xT(e.rule.waitForSelectors,e.rule.waitForSelectorsTimeout),e.rule.isInjectOptionsUrl){let a=Nf(),r=document.createElement("meta");r.name="immersive-translate-options-url",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(o){z.warn("inject options url failed",o)}}if(e.rule.isInjectVersion){let a=hn(),r=document.createElement("meta");r.name="immersive-translate-version",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(o){z.warn("inject version failed",o)}}if(e.rule.globalMeta&&Object.keys(e.rule.globalMeta).forEach(r=>{let o=document.createElement("meta");o.name=r,o.content=e.rule.globalMeta[r],document.head.appendChild(o)}),e.rule.initialGlobalAttributes&&Pp(document.body,e.rule.initialGlobalAttributes),e.rule.isPdf){wn(e);return}if(e.rule.isOnBoardingPage){document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"currentConfig",payload:{enableDefaultAlwaysTranslatedUrls:!!e.config.enableDefaultAlwaysTranslatedUrls}})}));let a=document.querySelector("#immersiveTranslateEnableDefaultAlwaysTranslatedUrlsValue");a&&(a.value="helloworld",a.value=String(!!e.config.enableDefaultAlwaysTranslatedUrls),a.dispatchEvent(new Event("change")))}Ff||(Ff=!0,globalThis.top!==globalThis.self&&e.rule.useIframePostMessage&&await Tp());let t=e.sourceLanguage;if(t==="auto"?t=await Lc():xn(t),e.rule.isInjectMeta)try{let a=await Lp(t),r=document.createElement("meta");r.name="immersive-translate-meta",r.content=y0(JSON.stringify(a)),document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(a){z.warn("inject meta failed",a)}let n=e.state.isAutoTranslate||e.isTranslateUrl||e.rule.isPdf;if(!n&&!e.isTranslateExcludeUrl&&(z.debug(`detect page language: ${e.url} ${t}`),ka(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto"||Ep(t,e.config.translationLanguagePattern)&&(n=!0,z.debug(`match language pattern ${t}, auto translate`))),e.rule.isEbookBuilder&&(n=!1),!e.rule.isPdf&&ia()&&gs(e,window),n)ke.state.isAutoTranslate=!0,wn(ke);else if(z.debug("do not auto translate",e),e.rule.initTranslationServiceAsSoonAsPossible&&e.translationService==="deepl"){if(ka(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto")return;e.config&&e.config.translationServices&&e.config.translationServices.deepl&&e.config.translationServices.deepl.authKey&&typeof e.config.translationServices.deepl.authKey=="string"&&e.config.translationServices.deepl.authKey.startsWith("immersive_")&&(bs[e.translationService]||(bs[e.translationService]=!0,mt()||Fc(e).catch(a=>{z.warn("init translation engine error",a)})))}}async function $t(e,t){let n=Object.keys(t);if(ke){let a={url:e,config:ke.config,state:{...ke.state,...t}};ke=await Lt(a)}else{let a=await Nn(),r=t;n.length===0&&(r=void 0),ke=await Lt({url:e,config:a,state:r})}return ke}async function Of(){let e=await Nn(),t;ke&&ke.state&&(t=ke.state);let n={url:St(),config:e,state:t},a=await Lt(n);ke=a;let r=$i(),o=[];return r?o=r.allInlineWindows||[window]:o=[window],o.forEach(u=>{Z3(a,u),ia()&&gs(a,u),wf(a)}),a}function xT(e,t=3e3){return new Promise((n,a)=>{let r=t?setTimeout(()=>{n(new Error("timeout"))},t):void 0,o=setInterval(()=>{e.every(i=>document.querySelector(i)!==null)&&(clearInterval(o),r&&clearTimeout(r),n(null))},50)})}async function nf(e){let t=e.detail;Xe.set(xt,t);let n=await Xe.get(_o,!1);Xe.set(_o,!1),document.dispatchEvent(new CustomEvent("immersiveTranslateDocumentMessageUserResult",{detail:n?"close":"success"}))}function af(e){z.debug("update user info",e);let t=e.detail;Xe.set(xt,t)}async function rf(e){let t=await vn();if(t.translationService)return;let n=e.config.translationService,a=["bing","transmart","google"];a.sort((o,u)=>o===n?-1:u===n?1:0);let r=await Uf(a,e);if(!r){qo("no_avaliable_translation_service",[{name:"no_avaliable_translation_service"}]);return}e.translationService!==r&&(t.translationService=r,Cn(t),e.translationService=r,qo("change_default_translation_service",[{name:"change_default_translation_service",params:{translation_service:r}}]))}var Yr=async function(e,t){let{method:n,data:a}=e,r=await Of(),o=Date.now();if(z.debug(`content script received message: ${n}`,a||" "),n==="translateTheWholePage")await Mc(a),$e(Ln,o);else if(n==="translateTheMainPage")await ys(a),$e(Ln,o);else if(n==="translateToThePageEndImmediately")await If(a),$e(Ln,o);else if(n==="toggleTranslatePage")await ss(a),$e(Ln,o);else if(n==="toggleTranslateTheWholePage")await Rf(a),$e(Ln,o);else if(n==="toggleTranslateTheMainPage")await _f(a),$e(Ln,o);else if(n==="toggleOnlyTransation")await ds(a),$e(Ln,o);else if(n==="translatePage")await wn(r,a),$e(Ln,o);else if(n==="toggleTranslationMask")await cs(a);else if(n==="restorePage")or();else if(n==="setCurrentPageLanguageByClient")xn(a);else if(n==="retryFailedParagraphs")ls();else if(n==="switchTranslationMode"){if(r.rule.isPdf)return;a&&a.mode&&Bf(a.mode)}},TT=function(e,t){let{method:n,data:a}=e;if(z.debug(`content script received sync message: ${n}`,a||" "),n==="ping")return"pong";if(n==="getPageStatus")return tt();if(n==="getCurrentPageLanguage"){let r=Dt();return Lc().catch(o=>{z.warn("detectCurrentPageLanguage failed",o)}),r}},xs,Ts;function of(){let e=Es();mt()||ET(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function Es(){return xs||(xs=new la("content_script",!1).getConnection("main",Yr),xs)}function ET(){return Ts||(Ts=new la("content_script",!1).getConnection("main_sync",TT,{sync:!0}),Ts)}async function rt(e){return await Es().sendMessage("background:main",e)}function se(e){return Wu()?pi({method:"request",data:e}):me()||qu()?(e.fetchPolyfill=globalThis.GM_fetch,Pn(e)):rt({method:"fetch",data:e})}function Nn(){return me()?Ge():rt({method:"getConfig"})}function Cn(e){return me()?$o(e):rt({method:"setUserConfig",data:e})}function vn(){return me()?Ko():rt({method:"getUserConfig"})}function q3(){return me()?Gn():rt({method:"getLocalConfig"})}function Zi(e){return me()?yn(e):rt({method:"setLocalConfig",data:e})}function _3(e){return me()?Wm(e):rt({method:"setBuildinConfig",data:e})}async function it(e){if(e.text){let n=Ai(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(me()||ot()){let n=ip(e.text,e.minLength,e.pageLangs);return Promise.resolve(n)}let t=await rt({method:"detectLanguage",data:e});return Promise.resolve(t)}function l3(){return rt({method:"detectTabLanguage"})}function n3(e){if(me()){let n=new CustomEvent(Ju,{detail:e});document.dispatchEvent(n);return}Es().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(n=>{})}function jf(e){return me()?xl(e):rt({method:"queryParagraphCache",data:e})}async function zf(e){if(me()){await yl(e);return}return rt({method:"setParagraphCache",data:e})}async function Hf(){if(me())return Promise.resolve();await rt({method:"mockRequest"})}function Zr(e=!1,t=""){return me()?(Q.runtime.openOptionsPage(e,t),Promise.resolve()):rt({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function Nf(e=""){return me()||ot()?Ke().OPTIONS_URL:Q.runtime.getURL("options.html")}function T3(e=""){return Q&&Q.runtime&&Q.runtime.getURL?Q.runtime.getURL("options.html"):""}function Xi(e=!1){return me()?(Q.extra.openAboutPage(e),Promise.resolve()):rt({method:"openAboutPage"})}function uf(e=!1){return me()?(Q.extra.openSearchEnhancement(e),Promise.resolve()):rt({method:"openSearchEnhancement"})}function es(e){return me()?(Q.extra.openInTab(e),Promise.resolve()):rt({method:"openInTab",data:e})}function ts(e=!1){return me()?(Q.extra.openEbookViewerPage(e),Promise.resolve()):rt({method:"openEbookViewerPage"})}function B3(e=!1){return me()?Promise.resolve():rt({method:"openHtmlViewerPage"})}function ns(e=!1){return me()?(Q.extra.openEbookBuilderPage(e),Promise.resolve()):rt({method:"openEbookBuilderPage"})}function sf(e){ot()}function ac(e=!1){return me()?(Q.extra.openPdfViewerPage(e),Promise.resolve()):rt({method:"openPdfViewerPage"})}function R3(e=!1){return me()?(Q.extra.openSubtitleBuilderPage(e),Promise.resolve()):rt({method:"openSubtitleBuilderPage"})}function Pc(e){return me()?Promise.resolve():rt({method:"setBadge",data:{text:e}})}function A3(){return me()?(z.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):rt({method:"autoSyncLatestConfig"})}var Te=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=200;translationOptions;constructor(t,n,a){this.serviceConfig=t,this.generalConfig=n,this.translationOptions=a}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getDefaultRateLimit(){return null}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,a){if(t.sentences.length===0)return{sentences:[]};let{sentences:r}=t,o=[],u=null,i=new Set;for(let T of r)T.from&&T.from!=="auto"&&i.add(T.from);let s=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(s=this.serviceConfig.maxTextLengthPerRequest);let c=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(c=this.serviceConfig.maxTextGroupLengthPerRequest);try{o=$m(r,s,c)}catch(T){if(a)for(let w=0;wT));let l=[],f=[],p=(T,w,b)=>{let S=w.translatedTexts[0];f[T]||(f[T]=w,f[T].translatedTexts=Array(w.sentenceTotalParts).fill(null)),f[T].translatedTexts[w.partIndex]=S;let D=f[T],N=0;for(let _=0;_{let D=await m3(this.translationOptions.translationService);await qn(D||0);let N=w.from;if(w.fromByClient&&w.fromByClient!=="auto"&&(N=w.fromByClient),this.isSupportList)return{...await this.translateList({text:w.tempSentences.map(y=>y.text),from:N,to:w.to,url:b,options:n}),sourceTempSentences:w.tempSentences};{let _=qg;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(_=this.serviceConfig.translationTextSeparator);let y=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(y=this.serviceConfig.newlinePlaceholderDelimiters);let E="";y&&y.length>=2?E=w.tempSentences.map((M,k)=>k===w.tempSentences.length-1?M.text:M.text+y[0]+(k+1)+y[1]).join(""):E=w.tempSentences.map(M=>M.text).join(_);let x=await this.translate({text:E,from:N,to:w.to,url:b,options:n}),{text:v}=x,C=[];if(y&&y.length>=2){let M=`${y[0]}\\d+${y[1]}`;y&&y.length>=3&&(M=y[2]);let k=new RegExp(M,"g");C=v.split(k)}else C=v.split(_);let R=[];if(C.length>w.tempSentences.length){for(let M=0;M{let{text:N,sourceTempSentences:_}=D;for(let y=0;y{if(a){for(let N=0;N({...T.sentence,text:T.translatedTexts.join("")}))}}detectLanguageLocally(t){return it({text:t,minLength:18,pageLangs:[Dt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}};var qf=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],ru=class e extends Te{static langMap=new Map(qf);static langMapReverse=new Map(qf.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),a=`${t.getUTCMonth()+1}`.padStart(2,"0"),r=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${a}-${r}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.secretId||!t.secretKey)throw new Error("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}async translate(t){let{text:n,from:a,to:r}=t,o=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceText:n,Target:e.langMap.get(r)||r}),u=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:o,service:"tmt",version:"2018-03-21"});return{text:u.Response.TargetText,from:e.langMapReverse.get(u.Response.Source)||a,to:e.langMapReverse.get(u.Response.Target)||r}}async translateList(t){let{text:n,from:a,to:r}=t,o=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceTextList:n,Target:e.langMap.get(r)||r}),u=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:o,service:"tmt",version:"2018-03-21"});return{text:u.Response.TargetTextList,from:e.langMapReverse.get(u.Response.Source)||a,to:e.langMapReverse.get(u.Response.Target)||r}}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:o,version:u}){let i=`${o}.tencentcloudapi.com`,s=new Date,c=`${new Date().valueOf()}`.slice(0,10),l=["POST","/","","content-type:application/json; charset=utf-8",`host:${i}`,"","content-type;host",await In(r)].join(` -`),f=e.getUTCDate(s),p=["TC3-HMAC-SHA256",c,`${f}/${o}/tc3_request`,await In(l)].join(` -`),m=await Hp(f,`TC3${n}`),g=await Oi(o,m),T=await Oi("tc3_request",g),w=await Oi(p,T),b=await se({retry:1,url:`https://${o}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:i,"X-TC-Action":a,"X-TC-Timestamp":c,"X-TC-Region":"ap-beijing","X-TC-Version":u,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${f}/${o}/tc3_request, SignedHeaders=content-type;host, Signature=${w}`},body:r});if(b instanceof Error)throw b;if(b.Response&&b.Response.Error&&b.Response.Error.Message)throw new Error(b.Response.Error.Message);return b}};h();var Wf=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],CT={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},ou=class e extends Te{static langMap=new Map(Wf);static langMapReverse=new Map(Wf.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,a){super(t,n,a)}async translate(t){let{text:n,from:a,to:r}=t,o=new URLSearchParams({source:a,target:r,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),u=await se({url:`https://wxapp.translator.qq.com/api/translate?${o}`,retry:1,method:"GET",headers:CT});return{text:u.targetText,from:e.langMapReverse.get(u.source)||a,to:e.langMapReverse.get(u.target)||r}}};h();var Kf=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],ur=class e extends Te{static langMap=new Map(Kf);static langMapReverse=new Map(Kf.map(([t,n])=>[n,t]));isSupportList=!1;apiUrl="https://translate.googleapis.com/translate_a/single";constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.apiUrl=en(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let o=e.langMap.get(a)||"auto",u=e.langMap.get(r)||r,i=await this.fetchWithoutToken(n,o,u);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async translateXml(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let o=e.langMap.get(a)||"auto",u=e.langMap.get(r)||r,i=await this.fetchXmlWithoutToken(n,o,u);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async fetchXmlWithoutToken(t,n,a){let o="https://translate.googleapis.com/translate_a/t?"+new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}).toString();return{data:await se({retry:2,url:o})}}async fetchWithoutToken(t,n,a){let r=new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}),o=this.apiUrl+"?"+r.toString();return{data:await se({retry:2,url:o})}}};h();h();h();function vT(e,t){return t?e+(t-e%t):e}function wT(e,t){return e.split(t).length-1}function _c(e){let t=Date.now(),n=1;for(let a of e)n+=wT(a,"i");return vT(t,n)}function AT(e,t){return Math.floor(Math.random()*(t-e+1))+e}function Bc(){return AT(1e6,1e8)}h();h();h();var Rc="https://www2.deepl.com/jsonrpc",Ic="auto",$f=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];h();function kT(e=$f){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function Oc(e){return kT()[e.toLowerCase()]}var ST={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function DT(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function LT(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function MT(e,t,n,a,r,o,u){let i=Bc(),s=LT(a,n),c=[];t.forEach(p=>{c.push({text:p,requestAlternatives:3})}),s.id=i,s.params.texts=c,s.params.timestamp=_c(t);let l=await se({retry:2,method:"POST",url:e,body:DT(s),headers:ST}),f={from:l.result.lang,to:n,text:[]};return l.result.texts.forEach(p=>{f.text.push(p.text)}),f}async function Gf(e,t,n,a=Ic,r,o,u){return t?t&&t.length===1&&t[0]===""?{text:[""],from:a,to:n}:MT(e,t,Oc(n),Oc(a)??"auto",r,o,u):{text:[],from:a,to:n}}var Vf=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],ro=class e extends Te{static langMap=new Map(Vf);static langMapReverse=new Map(Vf.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=Rc;constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.API_URL=en(Rc,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:a,from:r}=t,o=await Gf(this.API_URL,n,e.langMap.get(a)||a,e.langMap.get(r)||"auto");return{text:o.text,from:e.langMapReverse.get(o.from),to:e.langMapReverse.get(o.to)}}};h();var Yf=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Nc="https://transmart.qq.com/api/imt",ir=class e extends Te{static langMap=new Map(Yf);static langMapReverse=new Map(Yf.map(([t,n])=>[n,t]));clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,a){super(t,n,a),this.clientKey=e.getClientKey()}static getClientKey(){return btoa("transmart_crx_"+navigator.userAgent).slice(0,100)}async translate(t){let{text:n,to:a}=t,r=await this.detectLanguage(n),o=e.langMap.get(r)||r,u=e.langMap.get(a)||a;if(r===a)return{text:n,from:r,to:a};let i=Ke(),s=t.url;i.INSTALL_FROM==="firefox_store"&&(s=Jf());let l=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:o,orig_url:s},target:{lang:u}}),f=await se({url:Nc,body:l,method:"POST",retry:2});if(f.header.ret_code!=="succ")throw new Error(f.message||f.header.ret_code);return{text:f.auto_translation,from:r||"auto",to:a}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:a,to:r}=t,o=Ke(),u=t.url;if(o.INSTALL_FROM==="firefox_store"&&(u=Jf()),a.length===1){let m=await this.translate({from:n,text:a[0],to:r,url:u,options:t.options});return{text:[m.text],from:m.from,to:m.to}}let s=await this.detectLanguage(a.join(` -`));if(s===r)return{text:a,from:s,to:r};let c=e.langMap.get(s)||s,l=e.langMap.get(r)||r,f=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:a,lang:c,orig_url:u},target:{lang:l},type:"plain"}),p=await se({url:Nc,body:f,method:"POST"});if(p.header.ret_code!=="succ")throw new Error(p.message||p.header.ret_code);return{text:p.auto_translation,from:s||"auto",to:r}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return e.detectLanguageRemotelyByTransmart(t)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},a=await se({url:Nc,method:"POST",body:JSON.stringify(n)});if(a.header.ret_code!=="succ")throw new Error(a.message||a.header.ret_code);let r=a.language,o=e.langMapReverse.get(r);return o||r}};function Jf(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}h();h();function Qf(){return Math.random()>=0}var oo=class extends Te{isSupportList=!0;maxTextLength=1200;maxTextGroupLength=25;async translate(t){let{text:n}=t,a=n.match(/^\s*/)[0].length;return{text:n.slice(0,a)+"\u6A21\u62DF\uFF1A"+n.slice(a,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:a,to:r}=t;if(await Hf(),!Qf())throw new Error("\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:a,to:r,text:[""]}:{from:a,to:r,text:n.map(o=>{let u=o.match(/^\s*/)[0].length;return o.slice(0,u)+"\u6A21\u62DF\uFF1A"+o.slice(u,-6)})}}};h();var Xf=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],Uc=new Map(Xf),Zf=new Map(Xf.map(([e,t])=>[t,e])),jc=class e extends Te{static langMap=Uc;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,a){if(super(t,n,a),!t||!t.apikey)throw new Error("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:a,to:r}=t,o=await se({retry:2,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:Uc.get(a)||"auto",target_lang:Uc.get(r)||r})});if(o.status){let u=o;return u.result&&r=="zh-TW",{text:u.result,from:Zf.get(u.source_lang),to:Zf.get(u.target_lang)}}else throw new Error(o.msg)}},Cs=jc;h();var eh=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],uu=new Map(eh),PT=new Map(eh.map(([e,t])=>[t,e])),zc=class extends Te{static langMap=uu;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl="https://deepl.immersivetranslate.com/v2/translate";immersiveTranslateDeeplTokenUrl="https://api.immersivetranslate.com";immersiveTranslateDeeplProApiUrl=na()||aa()?"https://api2.immersivetranslate.com/deepl/translate":"https://test-api2.immersivetranslate.com/deepl/translate";provider="custom";splitor="";apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,a){if(super(t,n,a),t=t||{},this.splitor=t.qualityDelimiterBeta||"",t.provider==="pro")if(this.provider="pro",a.userToken){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=a.userToken,this.apiKeys=this.authKey.split(",").map(r=>r.trim())}else throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey.split(",").map(r=>r.trim()),!this.authKey)throw new Error("authKey are required");if(!this.authKey)throw new Error("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=en(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=en(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=en(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=en(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=en(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getDefaultRateLimit(){if(this.provider==="pro"){if(this.serviceConfig&&this.serviceConfig.immersiveTranslateProLimit){let t=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(t)&&(t=15),{limit:t,interval:1050}}return{limit:15,interval:1050}}else return{limit:3,interval:1050}}async translateList(t){let{from:n,to:a,text:r}=t,o={source_lang:uu.get(n)||"",target_lang:uu.get(a)||a},u=this.getRandomKey(),i=new URLSearchParams(o);this.splitor?i.append("text",r.join(this.splitor)):r.forEach(g=>{i.append("text",g)});let s=i.toString(),c={text:this.splitor?[r.join(this.splitor)]:r,source_lang:uu.get(n)||"auto",target_lang:uu.get(a)||a},l=this.freeApiUrl;u.endsWith(":im")?l=this.immersiveTranslateApiUrl:u.endsWith(":fx")||(l=this.proApiUrl);let f;this.provider==="pro"?f=await se({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:u,"Content-Type":"application/json"}}):u.startsWith("immersive_")?f=await se({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:u,"Content-Type":"application/json"}}):f=await se({retry:2,url:l,method:"POST",body:s,headers:{Authorization:"DeepL-Auth-Key "+u,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}});let{translations:p}=f,m=[];if(this.splitor?m=p[0]?.text.split(this.splitor).map(g=>g):m=p.map(g=>g.text),a==="zh-TW"){let g=this.serviceConfig||{};g&&g.googleApiUrl&&(g.apiUrl=g.googleApiUrl);let w=await new ur(this.serviceConfig,this.generalConfig,this.translationOptions).translate({from:"zh-CN",to:"zh-TW",text:p.map(b=>b.text).join(` -`),url:"",options:{}});w&&w.text&&(m=w.text.split(` -`))}return{text:m,from:p[0]&&PT.get(p[0].detected_source_language)||n,to:a}}},th=zc;h();var FT=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],Hc=new Map(FT),qc=class extends Te{static langMap=Hc;APIKEY="";isSupportList=!1;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:a,to:r}=t,u={url:"https://api.niutrans.com/NiuTransServer/translation",retry:2,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:n,from:Hc.get(a)||a,to:Hc.get(r)||r,apikey:this.APIKEY})},i=await se(u);if(i.tgt_text){let s=i.tgt_text;return s.endsWith(` -`)&&(s=s.slice(0,-1)),{text:s,from:a,to:r}}else throw new Error(JSON.stringify(i))}},nh=qc;h();var _T=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],Wc=new Map(_T),Kc=class extends Te{static langMap=Wc;APIKEY="";region="eastasia";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region)}async translateList(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:[]};let o={"api-version":"3.0",to:Wc.get(r)||r};a!=="auto"&&(o.from=Wc.get(a)||a);let u=new URLSearchParams(o),i=JSON.stringify(n.map(l=>({text:l}))),s={url:"https://api.cognitive.microsofttranslator.com/translate?"+u.toString(),retry:2,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:i},c=await se(s);if(c.length===0)throw new Error("server response invalid");return{from:a,to:r,text:c.map(l=>l.translations.map(p=>p.text).join(" "))}}},ah=Kc;h();var BT=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],iu=new Map(BT),$c=class extends Te{isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:3,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t,o;if(n.length===0)return{from:a,to:r,text:[]};let u=` +`)}function Mf(e,t){if(!e.keyword)return;let n=e.keyword.value||"";for(let a=0;anew RegExp(a.urlMatch).test(t))}async function Ff(e){if(fn().any)return;if(!e.rule.enableSearchEnhancement){z.debug("enable is false");return}let t=pT(e.rule.searchEnhancementConfig||[],e.url);if(!t){z.debug("not found siteConfig",e.url);return}let n=Mf(t,e.url);if(!n){z.debug("not found keyword",e.url);return}t.id=="google"?hT(e,t,n):fT(e,t,n)}async function fT(e,t,n){let a=await it({text:document.title,pageLangs:[Dt(),"en"]});t.selector&&setTimeout(async()=>{let r=document.querySelector(t.selector);if(!r){z.debug("selector node not found",t.selector);return}let o=await Dc(n,t.showCount);if(o&&o.length<=0){z.debug("list not found");return}let u=await Lc(t,o,n,t.showCount);if(!u){z.debug("getInseredNode none");return}u.style.cssText=t.style.container||"";let i=t.selectorAction||"appendChild";i=="insertBefore"?r.parentElement?.insertBefore(u,r):i=="appendChild"?r.appendChild(u):i=="replace"&&r?.replaceWith(u),Sc(e,t,u,a),fs(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a)},t.delayTime||0)}async function hT(e,t,n){let a=await it({text:n,pageLangs:["en"]});if(fs(e,{key:"detect_search_action"},a),!["zh-CN","zh-TW"].includes(a))return;z.debug("use dual search");let r=!1;if(new URL(e.url).searchParams.get("tbm")==="nws")r=!0;else if(!Pf(document.body))return;let u=document.querySelector("#rhs");if(!u){let i=document.querySelector("#rcnt");if(!i)return;let s=i.children;if(s&&s.length>1)u=s[1];else{let c=s[0];u=document.createElement("div"),u.id="rhs",u.style.maxWidth="372px",u.style.marginLeft="50px",i.insertBefore(u,c.nextSibling)}}if(r||Pf(document.body)){z.debug("find story");let i=await Lf(e,n,a);z.debug("enKeyword",i);let s=await Dc(i,t.showCount);if(z.debug("news list",s),s&&s.length<=0)return;let c=await Lc(t,s,i,t.showCount);if(!c)return;fs(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a),Sc(e,t,c,a),u.insertBefore(c,u?.firstChild)}}function Pf(e){let t=e.querySelectorAll("[aria-level='2'][role=heading]");if(!t)return!1;for(let n of t){let a=(n?.textContent||"").trim();if(a.indexOf("\u7126\u70B9\u65B0\u95FB")>=0||a.indexOf("\u7126\u9EDE\u65B0\u805E")>=0||a.indexOf("Top stories")>=0)return!0}return!1}h();function _f(e){e.state.translationMode="translation",Gr(e)}var ke=null,hs={},ro,Bf=!1;async function is(e){if(tt()==="Original"){let t={translationMode:void 0};ro&&(t.translationTheme=ro),ke&&(t={...ke.state,...t}),await $t(St(),t),await wn(ke,e)}else(tt()==="Translated"||tt()==="Error")&&sr()}async function ss(){if(ke=await $t(St(),{}),ke.rule.isEbookBuilder)return pf(ke);if(ke.rule.isSubtitleBuilder)return gf(ke);l3()}async function ls(e){if(tt()==="Original")ke=await $t(St(),{}),ro||(ro=ke.state.translationTheme),ke=await $t(St(),{translationTheme:"mask"}),await wn(ke,e);else if(tt()==="Translated"){let t=Ap().filter(r=>r.contentDocument?.body).map(r=>r.contentDocument.body),n=[ke.mainFrame,...t],a=ke?.state.translationTheme;for(let r of n){let o=Pr(r,Sr,!0);a==="mask"?o!=="none"?ft(r,Sr,"none",!0):ft(r,Sr,"mask",!0):o!=="mask"?ft(r,Sr,"mask",!0):ft(r,Sr,"none",!0)}}}async function Mc(){let e=await $t(St(),{});return e.rule.isSubtitleBuilder?bc():s3(e)}function bT(e){tt()==="Original"?_f(e):ca()}function yT(e){tt()==="Original"?df(e):yc()}function xT(e){tt()==="Original"?Gr(e):ca()}async function sr(){Fc("");let e=await $t(St(),{});if(e.rule.isSubtitleBuilder){yc();return}else e.rule.isEbookBuilder&&ff();ca()}async function wn(e,t){tt()!=="Original"&&await sr(),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"translateStart",payload:{}})})),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"targetLanguage",payload:{targetLanguage:e.targetLanguage}})})),hs[e.translationService]||(hs[e.translationService]=!0,pt()||_c(e).catch(a=>{z.warn("init translation engine error",a)}));let n={};if(t&&t.trigger&&(n.trigger=t.trigger),et("translage_page_daily",[{name:"translage_page_daily",params:n}],e),et("translate_page",[{name:"translate_page",params:n}],{...e,sourceLanguage:Dt()}),e.rule.isSubtitleBuilder)return yT(e);if(e.rule.isEbookBuilder)return hf(e);if(e.rule.isPdf)return bT(e);xT(e),Fc("yes")}async function Rf(e){tt()==="Original"?await bs(e):(tt()==="Translated"||tt()==="Error")&&(ke=await $t(St(),{}),ke.state.translationArea!=="main"?await bs(e):sr())}async function bs(e){ke=await $t(St(),{translationArea:"main"}),await wn(ke,e)}async function Pc(e){ke=await $t(St(),{translationArea:"body"}),await wn(ke,e)}async function cs(e){if(tt()==="Original"){let t=await $t(St(),{translationMode:"translation"});await wn(t,e)}else(tt()==="Translated"||tt()==="Error")&&await sr()}async function If(e){if(ke=await $t(St(),{translationMode:void 0}),et("switch_translation_mode",[{name:"switch_translation_mode",params:{mode:e}}],{...ke,sourceLanguage:"unknown"}),tt()==="Original"){wn(ke);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(e)}async function Of(e){if(tt()==="Original")await Pc(e);else if(tt()==="Translated"||tt()==="Error"){let t={};ke&&ke.state&&(t=ke.state),ke=await $t(St(),t),ke.state.translationArea!=="body"?(ke.state.translationArea="body",ke=await $t(St(),ke.state),await wn(ke,e)):sr()}}async function Nf(e){ke=await $t(St(),{translationStartMode:"immediate"}),await wn(ke,e)}async function af(){let e=await $t(St(),{});if(z.debug("init page ctx",e),e.rule.isSubtitleBuilder){bc();return}if(e.rule.isEbookBuilder){mf();return}if(Ff(e),ro||(ro=e.state.translationTheme),e.rule.urlChangeDelay&&await qn(e.rule.urlChangeDelay),e.rule.waitForSelectors&&e.rule.waitForSelectors.length>0&&await TT(e.rule.waitForSelectors,e.rule.waitForSelectorsTimeout),e.rule.isInjectOptionsUrl){let a=jf(),r=document.createElement("meta");r.name="immersive-translate-options-url",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(o){z.warn("inject options url failed",o)}}if(e.rule.isInjectVersion){let a=hn(),r=document.createElement("meta");r.name="immersive-translate-version",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(o){z.warn("inject version failed",o)}}if(e.rule.globalMeta&&Object.keys(e.rule.globalMeta).forEach(r=>{let o=document.createElement("meta");o.name=r,o.content=e.rule.globalMeta[r],document.head.appendChild(o)}),e.rule.initialGlobalAttributes&&Fp(document.body,e.rule.initialGlobalAttributes),e.rule.isPdf){wn(e);return}if(e.rule.isOnBoardingPage){document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"currentConfig",payload:{enableDefaultAlwaysTranslatedUrls:!!e.config.enableDefaultAlwaysTranslatedUrls}})}));let a=document.querySelector("#immersiveTranslateEnableDefaultAlwaysTranslatedUrlsValue");a&&(a.value="helloworld",a.value=String(!!e.config.enableDefaultAlwaysTranslatedUrls),a.dispatchEvent(new Event("change")))}Bf||(Bf=!0,globalThis.top!==globalThis.self&&e.rule.useIframePostMessage&&await Ep());let t=e.sourceLanguage;if(t==="auto"?t=await Mc():xn(t),e.rule.isInjectMeta)try{let a=await Mp(t),r=document.createElement("meta");r.name="immersive-translate-meta",r.content=y0(JSON.stringify(a)),document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(a){z.warn("inject meta failed",a)}let n=e.state.isAutoTranslate||e.isTranslateUrl||e.rule.isPdf;if(!n&&!e.isTranslateExcludeUrl&&(z.debug(`detect page language: ${e.url} ${t}`),Sa(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto"||Cp(t,e.config.translationLanguagePattern)&&(n=!0,z.debug(`match language pattern ${t}, auto translate`))),e.rule.isEbookBuilder&&(n=!1),!e.rule.isPdf&&ua()&&ds(e,window),n)ke.state.isAutoTranslate=!0,wn(ke);else if(z.debug("do not auto translate",e),e.rule.initTranslationServiceAsSoonAsPossible&&e.translationService==="deepl"){if(Sa(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto")return;e.config&&e.config.translationServices&&e.config.translationServices.deepl&&e.config.translationServices.deepl.authKey&&typeof e.config.translationServices.deepl.authKey=="string"&&e.config.translationServices.deepl.authKey.startsWith("immersive_")&&(hs[e.translationService]||(hs[e.translationService]=!0,pt()||_c(e).catch(a=>{z.warn("init translation engine error",a)})))}}async function $t(e,t){let n=Object.keys(t);if(ke){let a={url:e,config:ke.config,state:{...ke.state,...t}};ke=await Lt(a)}else{let a=await Nn(),r=t;n.length===0&&(r=void 0),ke=await Lt({url:e,config:a,state:r})}return ke}async function Uf(){let e=await Nn(),t;ke&&ke.state&&(t=ke.state);let n={url:St(),config:e,state:t},a=await Lt(n);ke=a;let r=Ki(),o=[];return r?o=r.allInlineWindows||[window]:o=[window],o.forEach(u=>{ef(a,u),ua()&&ds(a,u),kf(a)}),a}function TT(e,t=3e3){return new Promise((n,a)=>{let r=t?setTimeout(()=>{n(new Error("timeout"))},t):void 0,o=setInterval(()=>{e.every(i=>document.querySelector(i)!==null)&&(clearInterval(o),r&&clearTimeout(r),n(null))},50)})}async function rf(e){let t=e.detail;Xe.set(ct,t);let n=await Xe.get(_o,!1);Xe.set(_o,!1),document.dispatchEvent(new CustomEvent("immersiveTranslateDocumentMessageUserResult",{detail:n?"close":"success"}))}function of(e){z.debug("update user info",e);let t=e.detail;Xe.set(ct,t)}async function uf(e){let t=await vn();if(t.translationService)return;let n=e.config.translationService,a=["bing","transmart","google"];a.sort((o,u)=>o===n?-1:u===n?1:0);let r=await zf(a,e);if(!r){qo("no_avaliable_translation_service",[{name:"no_avaliable_translation_service"}]);return}e.translationService!==r&&(t.translationService=r,Cn(t),e.translationService=r,qo("change_default_translation_service",[{name:"change_default_translation_service",params:{translation_service:r}}]))}var Jr=async function(e,t){let{method:n,data:a}=e,r=await Uf(),o=Date.now();if(z.debug(`content script received message: ${n}`,a||" "),n==="translateTheWholePage")await Pc(a),$e(Ln,o);else if(n==="translateTheMainPage")await bs(a),$e(Ln,o);else if(n==="translateToThePageEndImmediately")await Nf(a),$e(Ln,o);else if(n==="toggleTranslatePage")await is(a),$e(Ln,o);else if(n==="toggleTranslateTheWholePage")await Of(a),$e(Ln,o);else if(n==="toggleTranslateTheMainPage")await Rf(a),$e(Ln,o);else if(n==="toggleOnlyTransation")await cs(a),$e(Ln,o);else if(n==="translatePage")await wn(r,a),$e(Ln,o);else if(n==="toggleTranslationMask")await ls(a);else if(n==="restorePage")sr();else if(n==="setCurrentPageLanguageByClient")xn(a);else if(n==="retryFailedParagraphs")ss();else if(n==="switchTranslationMode"){if(r.rule.isPdf)return;a&&a.mode&&If(a.mode)}},ET=function(e,t){let{method:n,data:a}=e;if(z.debug(`content script received sync message: ${n}`,a||" "),n==="ping")return"pong";if(n==="getPageStatus")return tt();if(n==="getCurrentPageLanguage"){let r=Dt();return Mc().catch(o=>{z.warn("detectCurrentPageLanguage failed",o)}),r}},ys,xs;function sf(){let e=Ts();pt()||CT(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function Ts(){return ys||(ys=new sa("content_script",!1).getConnection("main",Jr),ys)}function CT(){return xs||(xs=new sa("content_script",!1).getConnection("main_sync",ET,{sync:!0}),xs)}async function rt(e){return await Ts().sendMessage("background:main",e)}function se(e){return qu()?mi({method:"request",data:e}):me()||Hu()?(e.fetchPolyfill=globalThis.GM_fetch,Pn(e)):rt({method:"fetch",data:e})}function Nn(){return me()?Ge():rt({method:"getConfig"})}function Cn(e){return me()?$o(e):rt({method:"setUserConfig",data:e})}function vn(){return me()?Ko():rt({method:"getUserConfig"})}function K3(){return me()?$n():rt({method:"getLocalConfig"})}function Qi(e){return me()?yn(e):rt({method:"setLocalConfig",data:e})}function R3(e){return me()?Km(e):rt({method:"setBuildinConfig",data:e})}async function it(e){if(e.text){let n=wi(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(me()||ot()){let n=sp(e.text,e.minLength,e.pageLangs);return Promise.resolve(n)}let t=await rt({method:"detectLanguage",data:e});return Promise.resolve(t)}function c3(){return rt({method:"detectTabLanguage"})}function a3(e){if(me()){let n=new CustomEvent(Yu,{detail:e});document.dispatchEvent(n);return}Ts().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(n=>{})}function Hf(e){return me()?xl(e):rt({method:"queryParagraphCache",data:e})}async function qf(e){if(me()){await yl(e);return}return rt({method:"setParagraphCache",data:e})}async function Wf(){if(me())return Promise.resolve();await rt({method:"mockRequest"})}function Xr(e=!1,t=""){return me()?(X.runtime.openOptionsPage(e,t),Promise.resolve()):rt({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function jf(e=""){return me()||ot()?Ke().OPTIONS_URL:X.runtime.getURL("options.html")}function E3(e=""){return X&&X.runtime&&X.runtime.getURL?X.runtime.getURL("options.html"):""}function Zi(e=!1){return me()?(X.extra.openAboutPage(e),Promise.resolve()):rt({method:"openAboutPage"})}function lf(e=!1){return me()?(X.extra.openSearchEnhancement(e),Promise.resolve()):rt({method:"openSearchEnhancement"})}function Xi(e){return me()?(X.extra.openInTab(e),Promise.resolve()):rt({method:"openInTab",data:e})}function es(e=!1){return me()?(X.extra.openEbookViewerPage(e),Promise.resolve()):rt({method:"openEbookViewerPage"})}function I3(e=!1){return me()?Promise.resolve():rt({method:"openHtmlViewerPage"})}function ts(e=!1){return me()?(X.extra.openEbookBuilderPage(e),Promise.resolve()):rt({method:"openEbookBuilderPage"})}function cf(e){ot()}function rc(e=!1){return me()?(X.extra.openPdfViewerPage(e),Promise.resolve()):rt({method:"openPdfViewerPage"})}function O3(e=!1){return me()?(X.extra.openSubtitleBuilderPage(e),Promise.resolve()):rt({method:"openSubtitleBuilderPage"})}function Fc(e){return me()?Promise.resolve():rt({method:"setBadge",data:{text:e}})}function k3(){return me()?(z.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):rt({method:"autoSyncLatestConfig"})}var Te=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=200;translationOptions;constructor(t,n,a){this.serviceConfig=t,this.generalConfig=n,this.translationOptions=a}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getDefaultRateLimit(){return null}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,a){if(t.sentences.length===0)return{sentences:[]};let{sentences:r}=t,o=[],u=null,i=new Set;for(let y of r)y.from&&y.from!=="auto"&&i.add(y.from);let s=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(s=this.serviceConfig.maxTextLengthPerRequest);let c=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(c=this.serviceConfig.maxTextGroupLengthPerRequest);try{o=Gm(r,s,c)}catch(y){if(a)for(let w=0;wy));let l=[],m=[],p=(y,w,b)=>{let S=w.translatedTexts[0];m[y]||(m[y]=w,m[y].translatedTexts=Array(w.sentenceTotalParts).fill(null)),m[y].translatedTexts[w.partIndex]=S;let D=m[y],N=0;for(let _=0;_{let D=await p3(this.translationOptions.translationService);await qn(D||0);let N=w.from;if(w.fromByClient&&w.fromByClient!=="auto"&&(N=w.fromByClient),this.isSupportList)return{...await this.translateList({text:w.tempSentences.map(x=>x.text),from:N,to:w.to,url:b,options:n}),sourceTempSentences:w.tempSentences};{let _=Wg;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(_=this.serviceConfig.translationTextSeparator);let x=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(x=this.serviceConfig.newlinePlaceholderDelimiters);let E="";x&&x.length>=2?E=w.tempSentences.map((M,k)=>k===w.tempSentences.length-1?M.text:M.text+x[0]+(k+1)+x[1]).join(""):E=w.tempSentences.map(M=>M.text).join(_);let T=await this.translate({text:E,from:N,to:w.to,url:b,options:n}),{text:v}=T,C=[];if(x&&x.length>=2){let M=`${x[0]}\\d+${x[1]}`;x&&x.length>=3&&(M=x[2]);let k=new RegExp(M,"g");C=v.split(k)}else C=v.split(_);let R=[];if(C.length>w.tempSentences.length){for(let M=0;M{let{text:N,sourceTempSentences:_}=D;for(let x=0;x{if(a){for(let N=0;N({...y.sentence,text:y.translatedTexts.join("")}))}}detectLanguageLocally(t){return it({text:t,minLength:18,pageLangs:[Dt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}};var Kf=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],ru=class e extends Te{static langMap=new Map(Kf);static langMapReverse=new Map(Kf.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),a=`${t.getUTCMonth()+1}`.padStart(2,"0"),r=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${a}-${r}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.secretId||!t.secretKey)throw new Error("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}async translate(t){let{text:n,from:a,to:r}=t,o=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceText:n,Target:e.langMap.get(r)||r}),u=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:o,service:"tmt",version:"2018-03-21"});return{text:u.Response.TargetText,from:e.langMapReverse.get(u.Response.Source)||a,to:e.langMapReverse.get(u.Response.Target)||r}}async translateList(t){let{text:n,from:a,to:r}=t,o=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceTextList:n,Target:e.langMap.get(r)||r}),u=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:o,service:"tmt",version:"2018-03-21"});return{text:u.Response.TargetTextList,from:e.langMapReverse.get(u.Response.Source)||a,to:e.langMapReverse.get(u.Response.Target)||r}}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:o,version:u}){let i=`${o}.tencentcloudapi.com`,s=new Date,c=`${new Date().valueOf()}`.slice(0,10),l=["POST","/","","content-type:application/json; charset=utf-8",`host:${i}`,"","content-type;host",await In(r)].join(` +`),m=e.getUTCDate(s),p=["TC3-HMAC-SHA256",c,`${m}/${o}/tc3_request`,await In(l)].join(` +`),f=await qp(m,`TC3${n}`),g=await Ii(o,f),y=await Ii("tc3_request",g),w=await Ii(p,y),b=await se({retry:1,url:`https://${o}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:i,"X-TC-Action":a,"X-TC-Timestamp":c,"X-TC-Region":"ap-beijing","X-TC-Version":u,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${m}/${o}/tc3_request, SignedHeaders=content-type;host, Signature=${w}`},body:r});if(b instanceof Error)throw b;if(b.Response&&b.Response.Error&&b.Response.Error.Message)throw new Error(b.Response.Error.Message);return b}};h();var $f=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],vT={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},ou=class e extends Te{static langMap=new Map($f);static langMapReverse=new Map($f.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,a){super(t,n,a)}async translate(t){let{text:n,from:a,to:r}=t,o=new URLSearchParams({source:a,target:r,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),u=await se({url:`https://wxapp.translator.qq.com/api/translate?${o}`,retry:1,method:"GET",headers:vT});return{text:u.targetText,from:e.langMapReverse.get(u.source)||a,to:e.langMapReverse.get(u.target)||r}}};h();var Gf=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],lr=class e extends Te{static langMap=new Map(Gf);static langMapReverse=new Map(Gf.map(([t,n])=>[n,t]));isSupportList=!1;apiUrl="https://translate.googleapis.com/translate_a/single";constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.apiUrl=en(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let o=e.langMap.get(a)||"auto",u=e.langMap.get(r)||r,i=await this.fetchWithoutToken(n,o,u);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async translateXml(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let o=e.langMap.get(a)||"auto",u=e.langMap.get(r)||r,i=await this.fetchXmlWithoutToken(n,o,u);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async fetchXmlWithoutToken(t,n,a){let o="https://translate.googleapis.com/translate_a/t?"+new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}).toString();return{data:await se({retry:2,url:o})}}async fetchWithoutToken(t,n,a){let r=new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}),o=this.apiUrl+"?"+r.toString();return{data:await se({retry:2,url:o})}}};h();h();h();function wT(e,t){return t?e+(t-e%t):e}function AT(e,t){return e.split(t).length-1}function Bc(e){let t=Date.now(),n=1;for(let a of e)n+=AT(a,"i");return wT(t,n)}function kT(e,t){return Math.floor(Math.random()*(t-e+1))+e}function Rc(){return kT(1e6,1e8)}h();h();h();var Ic="https://www2.deepl.com/jsonrpc",Oc="auto",Vf=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];h();function ST(e=Vf){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function Nc(e){return ST()[e.toLowerCase()]}var DT={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function LT(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function MT(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function PT(e,t,n,a,r,o,u){let i=Rc(),s=MT(a,n),c=[];t.forEach(p=>{c.push({text:p,requestAlternatives:3})}),s.id=i,s.params.texts=c,s.params.timestamp=Bc(t);let l=await se({retry:2,method:"POST",url:e,body:LT(s),headers:DT}),m={from:l.result.lang,to:n,text:[]};return l.result.texts.forEach(p=>{m.text.push(p.text)}),m}async function Yf(e,t,n,a=Oc,r,o,u){return t?t&&t.length===1&&t[0]===""?{text:[""],from:a,to:n}:PT(e,t,Nc(n),Nc(a)??"auto",r,o,u):{text:[],from:a,to:n}}var Jf=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],oo=class e extends Te{static langMap=new Map(Jf);static langMapReverse=new Map(Jf.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=Ic;constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.API_URL=en(Ic,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:a,from:r}=t,o=await Yf(this.API_URL,n,e.langMap.get(a)||a,e.langMap.get(r)||"auto");return{text:o.text,from:e.langMapReverse.get(o.from),to:e.langMapReverse.get(o.to)}}};h();var Qf=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Uc="https://transmart.qq.com/api/imt",cr=class e extends Te{static langMap=new Map(Qf);static langMapReverse=new Map(Qf.map(([t,n])=>[n,t]));clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,a){super(t,n,a),this.clientKey=e.getClientKey()}static getClientKey(){return btoa("transmart_crx_"+navigator.userAgent).slice(0,100)}async translate(t){let{text:n,to:a}=t,r=await this.detectLanguage(n),o=e.langMap.get(r)||r,u=e.langMap.get(a)||a;if(r===a)return{text:n,from:r,to:a};let i=Ke(),s=t.url;i.INSTALL_FROM==="firefox_store"&&(s=Zf());let l=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:o,orig_url:s},target:{lang:u}}),m=await se({url:Uc,body:l,method:"POST",retry:2});if(m.header.ret_code!=="succ")throw new Error(m.message||m.header.ret_code);return{text:m.auto_translation,from:r||"auto",to:a}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:a,to:r}=t,o=Ke(),u=t.url;if(o.INSTALL_FROM==="firefox_store"&&(u=Zf()),a.length===1){let f=await this.translate({from:n,text:a[0],to:r,url:u,options:t.options});return{text:[f.text],from:f.from,to:f.to}}let s=await this.detectLanguage(a.join(` +`));if(s===r)return{text:a,from:s,to:r};let c=e.langMap.get(s)||s,l=e.langMap.get(r)||r,m=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:a,lang:c,orig_url:u},target:{lang:l},type:"plain"}),p=await se({url:Uc,body:m,method:"POST"});if(p.header.ret_code!=="succ")throw new Error(p.message||p.header.ret_code);return{text:p.auto_translation,from:s||"auto",to:r}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return e.detectLanguageRemotelyByTransmart(t)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},a=await se({url:Uc,method:"POST",body:JSON.stringify(n)});if(a.header.ret_code!=="succ")throw new Error(a.message||a.header.ret_code);let r=a.language,o=e.langMapReverse.get(r);return o||r}};function Zf(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}h();h();function Xf(){return Math.random()>=0}var uo=class extends Te{isSupportList=!0;maxTextLength=1200;maxTextGroupLength=25;async translate(t){let{text:n}=t,a=n.match(/^\s*/)[0].length;return{text:n.slice(0,a)+"\u6A21\u62DF\uFF1A"+n.slice(a,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:a,to:r}=t;if(await Wf(),!Xf())throw new Error("\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:a,to:r,text:[""]}:{from:a,to:r,text:n.map(o=>{let u=o.match(/^\s*/)[0].length;return o.slice(0,u)+"\u6A21\u62DF\uFF1A"+o.slice(u,-6)})}}};h();var th=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],jc=new Map(th),eh=new Map(th.map(([e,t])=>[t,e])),zc=class e extends Te{static langMap=jc;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,a){if(super(t,n,a),!t||!t.apikey)throw new Error("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:a,to:r}=t,o=await se({retry:2,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:jc.get(a)||"auto",target_lang:jc.get(r)||r})});if(o.status){let u=o;return u.result&&r=="zh-TW",{text:u.result,from:eh.get(u.source_lang),to:eh.get(u.target_lang)}}else throw new Error(o.msg)}},Es=zc;h();var nh=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],uu=new Map(nh),FT=new Map(nh.map(([e,t])=>[t,e])),Hc=class extends Te{static langMap=uu;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl="https://deepl.immersivetranslate.com/v2/translate";immersiveTranslateDeeplTokenUrl="https://api.immersivetranslate.com";immersiveTranslateDeeplProApiUrl=ta()||na()?"https://api2.immersivetranslate.com/deepl/translate":"https://test-api2.immersivetranslate.com/deepl/translate";provider="custom";splitor="";apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,a){if(super(t,n,a),t=t||{},this.splitor=t.qualityDelimiterBeta||"",t.provider==="pro")if(this.provider="pro",a.userToken){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=a.userToken,this.apiKeys=this.authKey.split(",").map(r=>r.trim())}else throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey.split(",").map(r=>r.trim()),!this.authKey)throw new Error("authKey are required");if(!this.authKey)throw new Error("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=en(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=en(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=en(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=en(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=en(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getDefaultRateLimit(){if(this.provider==="pro"){if(this.serviceConfig&&this.serviceConfig.immersiveTranslateProLimit){let t=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(t)&&(t=15),{limit:t,interval:1050}}return{limit:15,interval:1050}}else return{limit:3,interval:1050}}async translateList(t){let{from:n,to:a,text:r}=t,o={source_lang:uu.get(n)||"",target_lang:uu.get(a)||a},u=this.getRandomKey(),i=new URLSearchParams(o);this.splitor?i.append("text",r.join(this.splitor)):r.forEach(g=>{i.append("text",g)});let s=i.toString(),c={text:this.splitor?[r.join(this.splitor)]:r,source_lang:uu.get(n)||"auto",target_lang:uu.get(a)||a},l=this.freeApiUrl;u.endsWith(":im")?l=this.immersiveTranslateApiUrl:u.endsWith(":fx")||(l=this.proApiUrl);let m;this.provider==="pro"?m=await se({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:u,"Content-Type":"application/json"}}):u.startsWith("immersive_")?m=await se({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:u,"Content-Type":"application/json"}}):m=await se({retry:2,url:l,method:"POST",body:s,headers:{Authorization:"DeepL-Auth-Key "+u,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}});let{translations:p}=m,f=[];if(this.splitor?f=p[0]?.text.split(this.splitor).map(g=>g):f=p.map(g=>g.text),a==="zh-TW"){let g=this.serviceConfig||{};g&&g.googleApiUrl&&(g.apiUrl=g.googleApiUrl);let w=await new lr(this.serviceConfig,this.generalConfig,this.translationOptions).translate({from:"zh-CN",to:"zh-TW",text:p.map(b=>b.text).join(` +`),url:"",options:{}});w&&w.text&&(f=w.text.split(` +`))}return{text:f,from:p[0]&&FT.get(p[0].detected_source_language)||n,to:a}}},ah=Hc;h();var _T=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],qc=new Map(_T),Wc=class extends Te{static langMap=qc;APIKEY="";isSupportList=!1;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:a,to:r}=t,u={url:"https://api.niutrans.com/NiuTransServer/translation",retry:2,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:n,from:qc.get(a)||a,to:qc.get(r)||r,apikey:this.APIKEY})},i=await se(u);if(i.tgt_text){let s=i.tgt_text;return s.endsWith(` +`)&&(s=s.slice(0,-1)),{text:s,from:a,to:r}}else throw new Error(JSON.stringify(i))}},rh=Wc;h();var BT=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],Kc=new Map(BT),$c=class extends Te{static langMap=Kc;APIKEY="";region="eastasia";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region)}async translateList(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:[]};let o={"api-version":"3.0",to:Kc.get(r)||r};a!=="auto"&&(o.from=Kc.get(a)||a);let u=new URLSearchParams(o),i=JSON.stringify(n.map(l=>({text:l}))),s={url:"https://api.cognitive.microsofttranslator.com/translate?"+u.toString(),retry:2,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:i},c=await se(s);if(c.length===0)throw new Error("server response invalid");return{from:a,to:r,text:c.map(l=>l.translations.map(p=>p.text).join(" "))}}},oh=$c;h();var RT=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],iu=new Map(RT),Gc=class extends Te{isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:3,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t,o;if(n.length===0)return{from:a,to:r,text:[]};let u=`
-`,i=n.join(u),s={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:2,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:""};a==="auto"||!iu.get(a)?(o=(await se({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:i})).langCode,s.body=JSON.stringify({text:i,source:o||iu.get(a)||a,target:iu.get(r)||r})):s.body=JSON.stringify({text:i,source:iu.get(a),target:iu.get(r)||r});let c=await se(s);if(c.translatedText==="")throw new Error("server response invalid");let l=c.translatedText.split("
").map(f=>f.trim());return{from:a,to:r,text:l}}},rh=$c;h();var RT=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],su=new Map(RT),Gc=class extends Te{static langMap=su;provider="custom";APIKEY="";apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;systemPrompt="You are a professional translation engine, please translate the text into a colloquial, professional, elegant and fluent content, without the style of machine translation. You must only translate the text content, never interpret it.";prompt=`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +`,i=n.join(u),s={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:2,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:""};a==="auto"||!iu.get(a)?(o=(await se({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:i})).langCode,s.body=JSON.stringify({text:i,source:o||iu.get(a)||a,target:iu.get(r)||r})):s.body=JSON.stringify({text:i,source:iu.get(a),target:iu.get(r)||r});let c=await se(s);if(c.translatedText==="")throw new Error("server response invalid");let l=c.translatedText.split("
").map(m=>m.trim());return{from:a,to:r,text:l}}},uh=Gc;h();var IT=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],Cs=new Map(IT),Vc=class extends Te{static langMap=Cs;provider="custom";APIKEY="";apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;systemPrompt="You are a professional translation engine, please translate the text into a colloquial, professional, elegant and fluent content, without the style of machine translation. You must only translate the text content, never interpret it.";prompt=`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`;model="gpt-3.5-turbo-0613";apiUrl="https://api.openai.com/v1/chat/completions";immersiveApiUrl="https://openai-api.immersivetranslate.com/v1/chat/completions";immersiveProApiUrl=na()||aa()?"https://api2.immersivetranslate.com/openai/v1/chat/completions":"https://test-api2.immersivetranslate.com/openai/v1/chat/completions";splitor="
";constructor(t,n,a){if(super(t,n,a),t||(t={}),t.provider&&(this.provider=t.provider),t.APIKEY&&(this.APIKEY=t.APIKEY?.trim(),this.apiKeys=this.APIKEY.split(",").map(r=>r.trim())),this.provider==="pro"){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");if(this.APIKEY=a.userToken||"",this.apiKeys=this.APIKEY.split(",").map(r=>r.trim()),!this.APIKEY)throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002")}t.prompt&&(this.prompt=t.prompt),t.model&&(this.model=t.model),t&&t.apiUrl&&(this.apiUrl=en(this.apiUrl,t.apiUrl)),t&&t.immersiveApiUrl&&(this.immersiveApiUrl=en(this.immersiveApiUrl,t.immersiveApiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=en(this.immersiveProApiUrl,t.immersiveProApiUrl)),t&&t.systemPrompt&&(this.systemPrompt=t.systemPrompt)}getDefaultRateLimit(){return{limit:10,interval:1300}}translate(t){return this.model.includes("003")?(this.maxTextGroupLength=1,this.translate3(t)):this.translate3_5(t)}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate3_5(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let o=su.get(a)||a,u=su.get(r)||r,i=this.prompt.replace(/{{to}}/g,u).replace(/{{text}}/g,n).replace(/{{from}}/g,o),s=[];if(this.systemPrompt){let p=this.systemPrompt.replace(/{{to}}/g,u).replace(/{{text}}/g,n).replace(/{{from}}/g,o);s.push({role:"system",content:p})}this.prompt&&s.push({role:"user",content:i}),this.prompt.indexOf("{{text}}")===-1&&s.push({role:"user",content:n});let c={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:this.model,temperature:0,messages:s})},l=this.getRandomKey();this.provider==="pro"?(c.url=this.immersiveProApiUrl,c.headers.token=l):l&&(c.headers.Authorization="Bearer "+l,c.headers["api-key"]=l,l.startsWith("immersiveopenai_")&&(c.url=this.immersiveProApiUrl,c.headers.token=l,l.endsWith("x")||(c.headers["Immersive-Corpus-Campagin"]="yes"),delete c.headers.Authorization,delete c.headers["api-key"]));let f=await se(c);if(f&&f.choices&&f.choices.length>0&&f.choices[0].message&&f.choices[0].message.content){let p=f.choices[0].message.content.trim();return(p.includes("\u62B1\u6B49")&&p.includes("\u7FFB\u8BD1")||p.includes("\u8BF7\u5C06\u6587\u672C\u7FFB\u8BD1\u6210")||p.includes("\u4E0D\u8981\u89E3\u91CA\u4EFB\u4F55"))&&(p=n),!n.includes(".")&&(p.endsWith("\u3002")||p.endsWith("."))&&(p=p.slice(0,-1)),{from:a,to:r,text:p}}else throw new Error("server response invalid: "+JSON.stringify(f))}async translate3(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let o=this.prompt.replace(/{{to}}/g,su.get(r)||r).replace(/{{text}}/g,n).replace(/{{from}}/g,su.get(a)||a),u={url:"https://api.openai.com/v1/completions",method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.APIKEY},body:JSON.stringify({model:this.model,prompt:o,temperature:0})},i=await se(u);if(i&&i.choices&&i.choices.length>0&&i.choices[0].text){let s=i.choices[0].text.trim();return{from:a,to:r,text:s}}else throw new Error("server response invalid: "+JSON.stringify(i))}},oh=Gc;h();var IT=[["auto","auto"],["zh-CN","zh-Hans"],["zh-TW","zh-Hant"],["en","en"],["yue","\u7CA4\u8BED"],["wyw","\u53E4\u6587"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["de","de"],["es","es"],["it","it"],["ru","ru"],["pt","pt"],["nl","nl"],["pl","pl"],["ar","ar"],["af","af"],["am","am"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["el","el"],["eo","eo"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ku","ku"],["ky","ky"],["la","lo"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["no","no"],["ny","ny"],["pa","pa"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["sr-Cyrl","sr"],["sr-Latn","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],vs=new Map(IT),Vc="chatgptWebAccessToken";async function uh(){let e=await Uo(Vc);if(e)return e;let t=await se({url:"https://chat.openai.com/api/auth/session",method:"get",responseType:"json"});if(!t.accessToken)throw new Error("UNAUTHORIZED");return await jo(Vc,t.accessToken,10*60*1e3),t.accessToken}var Yc=class e{static instance;constructor(){return e.instance||(e.instance=this),this}#e=Promise.resolve();enqueue(t){return this.#e=this.#e.then(()=>t()),this.#e}},Jc=new Yc;Object.freeze(Jc);var lu=class extends Te{accessToken="";customChatGptWebApiUrl="https://chat.openai.com";customChatGptWebApiPath="/backend-api/conversation";maxTextGroupLength=1;maxTextLength=1200;isStream=!1;isSupportList=!1;prompt=`You are a translation engine, you can only translate text and cannot interpret it, and do not explain.Translate the text below to {{to}}: +{{text}}`;model="gpt-3.5-turbo-0613";apiUrl="https://api.openai.com/v1/chat/completions";immersiveApiUrl="https://openai-api.immersivetranslate.com/v1/chat/completions";immersiveProApiUrl=ta()||na()?"https://api2.immersivetranslate.com/openai/v1/chat/completions":"https://test-api2.immersivetranslate.com/openai/v1/chat/completions";splitor="
";constructor(t,n,a){if(super(t,n,a),t||(t={}),t.provider&&(this.provider=t.provider),t.APIKEY&&(this.APIKEY=t.APIKEY?.trim(),this.apiKeys=this.APIKEY.split(",").map(r=>r.trim())),this.provider==="pro"){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");if(this.APIKEY=a.userToken||"",this.apiKeys=this.APIKEY.split(",").map(r=>r.trim()),!this.APIKEY)throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002")}t.prompt&&(this.prompt=t.prompt),t.model&&(this.model=t.model),t&&t.apiUrl&&(this.apiUrl=en(this.apiUrl,t.apiUrl)),t&&t.immersiveApiUrl&&(this.immersiveApiUrl=en(this.immersiveApiUrl,t.immersiveApiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=en(this.immersiveProApiUrl,t.immersiveProApiUrl)),t&&t.systemPrompt&&(this.systemPrompt=t.systemPrompt)}getDefaultRateLimit(){return{limit:10,interval:1300}}translate(t){return this.model.includes("003")||this.model.includes("gpt-3.5-turbo-instruct")?(this.maxTextGroupLength=1,this.translate3(t)):this.translate3_5(t)}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate3_5(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let o=Cs.get(a)||a,u=Cs.get(r)||r,i=this.prompt.replace(/{{to}}/g,u).replace(/{{text}}/g,n).replace(/{{from}}/g,o),s=[];if(this.systemPrompt){let p=this.systemPrompt.replace(/{{to}}/g,u).replace(/{{text}}/g,n).replace(/{{from}}/g,o);s.push({role:"system",content:p})}this.prompt&&s.push({role:"user",content:i}),this.prompt.indexOf("{{text}}")===-1&&s.push({role:"user",content:n});let c={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:this.model,temperature:0,messages:s})},l=this.getRandomKey();this.provider==="pro"?(c.url=this.immersiveProApiUrl,c.headers.token=l):l&&(c.headers.Authorization="Bearer "+l,c.headers["api-key"]=l,l.startsWith("immersiveopenai_")&&(c.url=this.immersiveProApiUrl,c.headers.token=l,l.endsWith("x")||(c.headers["Immersive-Corpus-Campagin"]="yes"),delete c.headers.Authorization,delete c.headers["api-key"]));let m=await se(c);if(m&&m.choices&&m.choices.length>0&&m.choices[0].message&&m.choices[0].message.content){let p=m.choices[0].message.content.trim();return(p.includes("\u62B1\u6B49")&&p.includes("\u7FFB\u8BD1")||p.includes("\u8BF7\u5C06\u6587\u672C\u7FFB\u8BD1\u6210")||p.includes("\u4E0D\u8981\u89E3\u91CA\u4EFB\u4F55"))&&(p=n),!n.includes(".")&&(p.endsWith("\u3002")||p.endsWith("."))&&(p=p.slice(0,-1)),{from:a,to:r,text:p}}else throw new Error("server response invalid: "+JSON.stringify(m))}async translate3(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let o=`Translate to ${Cs.get(r)||r}: -{{text}}`;constructor(t,n,a){super(t,n,a)}throttleDebounce(t,n,a){let r=0,o;return(...u)=>{let i=Date.now(),s=this,c=()=>{r=i,t.apply(s,u)};i-r>=n?(clearTimeout(o),c()):(clearTimeout(o),o=setTimeout(()=>{c()},a))}}async deleteConversation(t){if(t){let n=await se({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}/${t}`,method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({is_visible:!1})});return z.debug("delete conversation res:",n),n}}async translate(t){return await Jc.enqueue(async()=>{let{text:n,from:a,to:r}=t;if(n.length===0)return Promise.resolve({from:a,to:r,text:""});let o=vs.get(a)||a,u=vs.get(r)||r;if(this.accessToken=await uh(),!this.accessToken||this.accessToken==="")throw new Error("token error");let i="text-davinci-002-render-sha-mobile";if(!i)throw new Error("No available model");let s=this.prompt.replace(/{{to}}/g,u).replace(/{{text}}/g,n).replace(/{{from}}/g,o);try{let c=await se({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"stream",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:Fn(),role:"user",content:{content_type:"text",parts:[s]}}],model:i,parent_message_id:Fn()})});return z.debug("get chatgpt res:",c),await this.deleteConversation(c?.conversation_id),Promise.resolve({from:a,to:r,text:c?.message?.content?.parts?.[0]})}catch(c){throw z.debug("post chatgpt error:",c),await zo(Vc),c}})}async translateStream(t,n){let{text:a,from:r,to:o}=t;if(a.length===0){n(null,{from:r,to:o,text:""});return}let u=this.throttleDebounce(function(i){let{from:s,to:c,text:l}=i;n(null,{from:s,to:c,text:l})},300,200);await Jc.enqueue(async()=>{let i="chatgpt"+Fn(),s=Q.runtime.connect({name:i}),c,l;s.onMessage.addListener(T=>{if(!(!T||T==="")){if(T==="[DONE]"){s.disconnect(),this.deleteConversation(c);return}try{l=JSON.parse(T)}catch(w){z.debug("chatgpt json error",w,T);return}c=l?.conversation_id,l?.message?.author?.role==="assistant"&&u({from:r,to:o,text:l?.message?.content?.parts?.[0]})}});let f=vs.get(r)||r,p=vs.get(o)||o;if(this.accessToken=await uh(),!this.accessToken||this.accessToken==="")throw new Error("token error");let m="text-davinci-002-render-sha";if(!m)throw new Error("No available model");let g=this.prompt.replace(/{{to}}/g,p).replace(/{{text}}/g,a).replace(/{{from}}/g,f);se({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"realStream",extra:{portName:i},headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:Fn(),role:"user",content:{content_type:"text",parts:[g]}}],model:m,parent_message_id:Fn()})}).catch(T=>{z.debug("chatgpt error",T),s.disconnect(),this.deleteConversation(c),n(T,{from:r,to:o,text:""})})})}};h();var lh=e2(ih()),sh=[["af","af"],["am","am"],["ar","ar"],["auto","auto"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fil","fil"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["mww","mww"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["otq","otq"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["tn","tn"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tlh","tlh"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["yua","yua"],["yue","yue"],["bo","bo"],["sa","sa"],["zh-CN","zh"],["zh-TW","zh-tw"],["zu","zu"]],du=class e extends Te{static langMap=new Map(sh);static langMapReverse=new Map(sh.map(([t,n])=>[n,t]));static SHA1=new lh.default.SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,a){if(super(t,n,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new Error("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:a,to:r}=t,o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:n,TargetLanguage:e.langMap.get(r)||r},u=this.scene=="general"?"TranslateGeneral":"Translate",i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:u,payload:o,service:"mt",version:"2018-10-12"});return{text:i.Data.Translated,from:i.Data.DetectedLanguage&&e.langMapReverse.get(i.Data.DetectedLanguage)||a||"auto",to:e.langMapReverse.get(r)||r}}async translateList(t){let{text:n,from:a,to:r}=t,o=this.scene=="general"?"translate_standard":"translate_ecommerce",u={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:JSON.stringify(n.reduce((c,l,f)=>(c[f]=l,c),{})),TargetLanguage:e.langMap.get(r)||r,ApiType:o},i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:u,service:"mt",version:"2018-10-12"}),s=i.TranslatedList.length&&i.TranslatedList[0].detectedLanguage;return{text:i.TranslatedList.sort((c,l)=>parseInt(c.index)-parseInt(l.index)).map(c=>c.translated),from:s&&e.langMapReverse.get(s)||a||"auto",to:e.langMapReverse.get(r)||r}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:o,version:u}){let i=new Date().toISOString(),s=Math.random().toString(36).slice(2),c={Action:a,Version:u,Format:"JSON",AccessKeyId:t,SignatureNonce:s,Timestamp:i,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},f=(T=>{let b=Object.keys(T).sort().map(S=>`${this.encode(S)}=${this.encode(T[S])}`).join("&");return`POST&%2F&${this.encode(b)}`})(Object.assign({},c,r)),p=e.SHA1.b64_hmac(`${n}&`,f),m=new URLSearchParams(Object.assign({},c,{Signature:p})).toString(),g=await se({retry:1,url:`https://${o}.aliyuncs.com?${m}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(r).toString()});if(g instanceof Error)throw g;if(g.Code!=="200")throw new Error(g.Message);return g}};h();h();var OT=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],ct={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},Qc=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},Zc=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let a=Qc(t);if(a)return Array.isArray(n)?`${a}=${n.map(Qc).sort().join(`&${a}=`)}`:`${a}=${Qc(n)}`}).filter(t=>t).join("&"),uo=class{request;serviceName;bodySha256;constructor(t,n,a){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,a=a||{},this.bodySha256=a.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(a=>{let r=t[a];return typeof r<"u"&&r!==null}).sort().map(a=>{n[a]=t[a]}),n}async addAuthorization(t,n){let a=this.getDateTime(n);await this.addHeaders(t,a),this.request.headers.Authorization=await this.authorization(t,a)}async authorization(t,n){let a=[],r=this.credentialString(n);return a.push(`${ct.algorithm} Credential=${t.accessKeyId}/${r}`),a.push(`SignedHeaders=${this.signedHeaders()}`),a.push(`Signature=${await this.signature(t,n)}`),a.join(", ")}async getSignUrl(t,n){let a=this.getDateTime(n),r={...this.request.params},o=this.request.params,u=this.request.headers;t.sessionToken&&(r[ct.tokenHeader]=t.sessionToken),r[ct.dateHeader]=a,r[ct.notSignBody]="",r[ct.credential]=`${t.accessKeyId}/${this.credentialString(a)}`,r[ct.algorithmKey]=ct.algorithm,r[ct.signHeadersKey]="",r[ct.signQueriesKey]=void 0,r[ct.signatureKey]=void 0,r=this.sortParams(r),this.request.params=r,this.request.headers={};let i=await this.signature(t,a);return this.request.params=o,this.request.headers=u,r[ct.signQueriesKey]=Object.keys(r).sort().join(";"),r[ct.signatureKey]=i,Zc(r)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[ct.dateHeader]=n,t.sessionToken&&(this.request.headers[ct.tokenHeader]=t.sessionToken),this.request.body){let a=this.request.body;this.request.headers[ct.contentSha256Header]=await In(a)}}async signature(t,n){let a=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return Ii(await Ba(await this.stringToSign(n),a))}async stringToSign(t){let n=[];n.push(ct.algorithm),n.push(t),n.push(this.credentialString(t));let a=await this.canonicalString();return n.push(await this.hexEncodedHash(a)),n.join(` -`)}async canonicalString(){let t=[],n=this.request.pathname||"/";t.push(this.request.method.toUpperCase()),t.push(n);let a=Zc(this.request.params)||"";return t.push(a),t.push(`${this.canonicalHeaders()} +${n} =>`,u=this.getRandomKey(),i={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.APIKEY}},s={model:this.model,prompt:o,temperature:0};this.provider==="pro"?(i.url=this.immersiveProApiUrl,i.headers.token=u):u&&(i.headers.Authorization="Bearer "+u,i.headers["api-key"]=u,u.startsWith("immersiveopenai_")&&(i.url=this.immersiveProApiUrl,i.headers.token=u,u.endsWith("x")||(i.headers["Immersive-Corpus-Campagin"]="yes"),delete i.headers.Authorization,delete i.headers["api-key"])),i.url=i.url.replace("/chat/","/");let c=2048,l=o.length*2.2;l0&&m.choices[0].text){let p=m.choices[0].text.trim();return{from:a,to:r,text:p}}else throw new Error("server response invalid: "+JSON.stringify(m))}},ih=Vc;h();var OT=[["auto","auto"],["zh-CN","zh-Hans"],["zh-TW","zh-Hant"],["en","en"],["yue","\u7CA4\u8BED"],["wyw","\u53E4\u6587"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["de","de"],["es","es"],["it","it"],["ru","ru"],["pt","pt"],["nl","nl"],["pl","pl"],["ar","ar"],["af","af"],["am","am"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["el","el"],["eo","eo"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ku","ku"],["ky","ky"],["la","lo"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["no","no"],["ny","ny"],["pa","pa"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["sr-Cyrl","sr"],["sr-Latn","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],vs=new Map(OT),Yc="chatgptWebAccessToken";async function sh(){let e=await Uo(Yc);if(e)return e;let t=await se({url:"https://chat.openai.com/api/auth/session",method:"get",responseType:"json"});if(!t.accessToken)throw new Error("UNAUTHORIZED");return await jo(Yc,t.accessToken,10*60*1e3),t.accessToken}var Jc=class e{static instance;constructor(){return e.instance||(e.instance=this),this}#e=Promise.resolve();enqueue(t){return this.#e=this.#e.then(()=>t()),this.#e}},Qc=new Jc;Object.freeze(Qc);var su=class extends Te{accessToken="";customChatGptWebApiUrl="https://chat.openai.com";customChatGptWebApiPath="/backend-api/conversation";maxTextGroupLength=1;maxTextLength=1200;isStream=!1;isSupportList=!1;prompt=`You are a translation engine, you can only translate text and cannot interpret it, and do not explain.Translate the text below to {{to}}: + +{{text}}`;constructor(t,n,a){super(t,n,a)}throttleDebounce(t,n,a){let r=0,o;return(...u)=>{let i=Date.now(),s=this,c=()=>{r=i,t.apply(s,u)};i-r>=n?(clearTimeout(o),c()):(clearTimeout(o),o=setTimeout(()=>{c()},a))}}async deleteConversation(t){if(t){let n=await se({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}/${t}`,method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({is_visible:!1})});return z.debug("delete conversation res:",n),n}}async translate(t){return await Qc.enqueue(async()=>{let{text:n,from:a,to:r}=t;if(n.length===0)return Promise.resolve({from:a,to:r,text:""});let o=vs.get(a)||a,u=vs.get(r)||r;if(this.accessToken=await sh(),!this.accessToken||this.accessToken==="")throw new Error("token error");let i="text-davinci-002-render-sha-mobile";if(!i)throw new Error("No available model");let s=this.prompt.replace(/{{to}}/g,u).replace(/{{text}}/g,n).replace(/{{from}}/g,o);try{let c=await se({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"stream",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:Fn(),role:"user",content:{content_type:"text",parts:[s]}}],model:i,parent_message_id:Fn()})});return z.debug("get chatgpt res:",c),await this.deleteConversation(c?.conversation_id),Promise.resolve({from:a,to:r,text:c?.message?.content?.parts?.[0]})}catch(c){throw z.debug("post chatgpt error:",c),await zo(Yc),c}})}async translateStream(t,n){let{text:a,from:r,to:o}=t;if(a.length===0){n(null,{from:r,to:o,text:""});return}let u=this.throttleDebounce(function(i){let{from:s,to:c,text:l}=i;n(null,{from:s,to:c,text:l})},300,200);await Qc.enqueue(async()=>{let i="chatgpt"+Fn(),s=X.runtime.connect({name:i}),c,l;s.onMessage.addListener(y=>{if(!(!y||y==="")){if(y==="[DONE]"){s.disconnect(),this.deleteConversation(c);return}try{l=JSON.parse(y)}catch(w){z.debug("chatgpt json error",w,y);return}c=l?.conversation_id,l?.message?.author?.role==="assistant"&&u({from:r,to:o,text:l?.message?.content?.parts?.[0]})}});let m=vs.get(r)||r,p=vs.get(o)||o;if(this.accessToken=await sh(),!this.accessToken||this.accessToken==="")throw new Error("token error");let f="text-davinci-002-render-sha";if(!f)throw new Error("No available model");let g=this.prompt.replace(/{{to}}/g,p).replace(/{{text}}/g,a).replace(/{{from}}/g,m);se({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"realStream",extra:{portName:i},headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:Fn(),role:"user",content:{content_type:"text",parts:[g]}}],model:f,parent_message_id:Fn()})}).catch(y=>{z.debug("chatgpt error",y),s.disconnect(),this.deleteConversation(c),n(y,{from:r,to:o,text:""})})})}};h();var dh=t2(lh()),ch=[["af","af"],["am","am"],["ar","ar"],["auto","auto"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fil","fil"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["mww","mww"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["otq","otq"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["tn","tn"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tlh","tlh"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["yua","yua"],["yue","yue"],["bo","bo"],["sa","sa"],["zh-CN","zh"],["zh-TW","zh-tw"],["zu","zu"]],cu=class e extends Te{static langMap=new Map(ch);static langMapReverse=new Map(ch.map(([t,n])=>[n,t]));static SHA1=new dh.default.SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,a){if(super(t,n,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new Error("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:a,to:r}=t,o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:n,TargetLanguage:e.langMap.get(r)||r},u=this.scene=="general"?"TranslateGeneral":"Translate",i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:u,payload:o,service:"mt",version:"2018-10-12"});return{text:i.Data.Translated,from:i.Data.DetectedLanguage&&e.langMapReverse.get(i.Data.DetectedLanguage)||a||"auto",to:e.langMapReverse.get(r)||r}}async translateList(t){let{text:n,from:a,to:r}=t,o=this.scene=="general"?"translate_standard":"translate_ecommerce",u={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:JSON.stringify(n.reduce((c,l,m)=>(c[m]=l,c),{})),TargetLanguage:e.langMap.get(r)||r,ApiType:o},i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:u,service:"mt",version:"2018-10-12"}),s=i.TranslatedList.length&&i.TranslatedList[0].detectedLanguage;return{text:i.TranslatedList.sort((c,l)=>parseInt(c.index)-parseInt(l.index)).map(c=>c.translated),from:s&&e.langMapReverse.get(s)||a||"auto",to:e.langMapReverse.get(r)||r}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:o,version:u}){let i=new Date().toISOString(),s=Math.random().toString(36).slice(2),c={Action:a,Version:u,Format:"JSON",AccessKeyId:t,SignatureNonce:s,Timestamp:i,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},m=(y=>{let b=Object.keys(y).sort().map(S=>`${this.encode(S)}=${this.encode(y[S])}`).join("&");return`POST&%2F&${this.encode(b)}`})(Object.assign({},c,r)),p=e.SHA1.b64_hmac(`${n}&`,m),f=new URLSearchParams(Object.assign({},c,{Signature:p})).toString(),g=await se({retry:1,url:`https://${o}.aliyuncs.com?${f}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(r).toString()});if(g instanceof Error)throw g;if(g.Code!=="200")throw new Error(g.Message);return g}};h();h();var NT=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],dt={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},Zc=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},Xc=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let a=Zc(t);if(a)return Array.isArray(n)?`${a}=${n.map(Zc).sort().join(`&${a}=`)}`:`${a}=${Zc(n)}`}).filter(t=>t).join("&"),io=class{request;serviceName;bodySha256;constructor(t,n,a){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,a=a||{},this.bodySha256=a.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(a=>{let r=t[a];return typeof r<"u"&&r!==null}).sort().map(a=>{n[a]=t[a]}),n}async addAuthorization(t,n){let a=this.getDateTime(n);await this.addHeaders(t,a),this.request.headers.Authorization=await this.authorization(t,a)}async authorization(t,n){let a=[],r=this.credentialString(n);return a.push(`${dt.algorithm} Credential=${t.accessKeyId}/${r}`),a.push(`SignedHeaders=${this.signedHeaders()}`),a.push(`Signature=${await this.signature(t,n)}`),a.join(", ")}async getSignUrl(t,n){let a=this.getDateTime(n),r={...this.request.params},o=this.request.params,u=this.request.headers;t.sessionToken&&(r[dt.tokenHeader]=t.sessionToken),r[dt.dateHeader]=a,r[dt.notSignBody]="",r[dt.credential]=`${t.accessKeyId}/${this.credentialString(a)}`,r[dt.algorithmKey]=dt.algorithm,r[dt.signHeadersKey]="",r[dt.signQueriesKey]=void 0,r[dt.signatureKey]=void 0,r=this.sortParams(r),this.request.params=r,this.request.headers={};let i=await this.signature(t,a);return this.request.params=o,this.request.headers=u,r[dt.signQueriesKey]=Object.keys(r).sort().join(";"),r[dt.signatureKey]=i,Xc(r)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[dt.dateHeader]=n,t.sessionToken&&(this.request.headers[dt.tokenHeader]=t.sessionToken),this.request.body){let a=this.request.body;this.request.headers[dt.contentSha256Header]=await In(a)}}async signature(t,n){let a=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return Ri(await Ra(await this.stringToSign(n),a))}async stringToSign(t){let n=[];n.push(dt.algorithm),n.push(t),n.push(this.credentialString(t));let a=await this.canonicalString();return n.push(await this.hexEncodedHash(a)),n.join(` +`)}async canonicalString(){let t=[],n=this.request.pathname||"/";t.push(this.request.method.toUpperCase()),t.push(n);let a=Xc(this.request.params)||"";return t.push(a),t.push(`${this.canonicalHeaders()} `),t.push(this.signedHeaders()),t.push(await this.hexEncodedBodyHash()),t.join(` `)}canonicalHeaders(){let t=[];Object.keys(this.request.headers).forEach(a=>{t.push([a,this.request.headers[a]])}),t.sort((a,r)=>a[0].toLowerCase(){let r=a[0].toLowerCase();if(this.isSignableHeader(r)){let o=a[1];if(typeof o>"u"||o===null||typeof o.toString!="function")throw new Error(`Header ${r} contains invalid value`);n.push(`${r}:${this.canonicalHeaderValues(o.toString())}`)}}),n.join(` -`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await In(t)}async hexEncodedBodyHash(){return this.request.headers[ct.contentSha256Header]?this.request.headers[ct.contentSha256Header]:this.request.body?await this.hexEncodedHash(Zc(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return OT.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,a,r){let o=await Ba(n,`${ct.kDatePrefix}${t.secretKey}`),u=await Ba(a,o),i=await Ba(r,u);return Ba(ct.v4Identifier,i)}createScope(t,n,a){return[t.substr(0,8),n,a,ct.v4Identifier].join("/")}};var ch=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Xc=new Map(ch),NT=new Map(ch.map(([e,t])=>[t,e])),e4=class extends Te{static langMap=Xc;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,a){if(super(t,n,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new Error("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let a={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},r=new uo(a,"translate");await r.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let o=new URLSearchParams(a.params),u=await se({retry:2,url:"https://open.volcengineapi.com"+a.pathname+"?"+o.toString(),headers:r.request.headers,method:a.method,body:a.body});if(u.DetectedLanguageList&&u.DetectedLanguageList.length>0)return u.DetectedLanguageList[0].Language;if(u.ResponseMetadata&&u.ResponseMetadata.Error){let i=u.ResponseMetadata.Error;throw new Tt(i.Code,i.Message)}else if(u.ResponseMetaData&&u.ResponseMetaData.Error){let i=u.ResponseMetaData.Error;throw new Tt(i.Code,i.Message)}else throw new Error("response: "+JSON.stringify(u))}async translateList(t){let{text:n,from:a,to:r}=t,o=Xc.get(a),u={TargetLanguage:Xc.get(r)||r,TextList:n};o?u.SourceLanguage=o:u.SourceLanguage=await this.remoteDetectLanguage(n.join(` -`).slice(0,1e3));let i={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(u)},s=new uo(i,"translate");await s.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let c=new URLSearchParams(i.params),l=await se({retry:2,url:"https://open.volcengineapi.com"+i.pathname+"?"+c.toString(),headers:s.request.headers,method:i.method,body:i.body});if(l.TranslationList){let f=l.TranslationList.map(m=>m.Translation),p=a;return l.TranslationList.length>0&&l.TranslationList[0].DetectedSourceLanguage&&(p=NT.get(l.TranslationList[0].DetectedSourceLanguage)||a),{text:f,from:p,to:r}}else if(l.ResponseMetadata&&l.ResponseMetadata.Error){let f=l.ResponseMetadata.Error;throw new Tt(f.Code,f.Message)}else if(l.ResponseMetaData&&l.ResponseMetaData.Error){let f=l.ResponseMetaData.Error;throw new Tt(f.Code,f.Message)}else throw new Error("response: "+JSON.stringify(l))}},dh=e4;h();var gh=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],t4=new Map(gh),UT=new Map(gh.map(([e,t])=>[t,e])),gu=class extends Te{static langMap=t4;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:a,to:r}=t,o=t4.get(a)||"detect",u=t4.get(r)||r,s=await se({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:o,target_language:u,text:n})});if(s.base_resp&&s.base_resp.status_code===0){let c=s.translation,l=a;return s.detected_language&&(l=UT.get(s.detected_language)||a),{text:c,from:l,to:r}}else{let c=s.base_resp;throw new Tt(c.status_code.toString(),c.status_message)}}};h();var jT=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],n4=new Map(jT),mu=class extends Te{static langMap=n4;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,a){if(super(t,n,a),!t||!t.url)throw new Error("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(r=>r.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:a,to:r}=t,o=this.getRandomKey(),i=await se({retry:2,url:o,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({source_lang:n4.get(a)||a,target_lang:n4.get(r)||r,text:n})});if(i.code===200)return{text:i.data,from:a,to:r};throw new Error(i.message||i.message||"API Error")}};h();h();var a4="https://{s}bing.com",bh=a4+"/translator",zT=a4+"/ttranslatev3",HT=a4+"/tspellcheckv3",As="bingGlobalConfig",yh=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],mh=new Map(yh),ph=new Map(yh.map(([e,t])=>[t,e])),fh=1e3,Un,io;function r4(e,t){return e.replace("{s}",t?t+".":"")}async function qT(){if(!Un){let n=await Q.storage.local.get(As);return n&&(Un=n[As]),!0}let{tokenTs:e,tokenExpiryInterval:t}=Un;return Date.now()-e>t}async function hh(){let e,t,n,a,r,o,u,i,s,c;try{let l=r4(bh,e),f=await se({retry:2,url:l,responseType:"raw"}),{body:p,headers:m,url:g}=f;e=g.match(/^https?:\/\/(\w+)\.bing\.com/)[1],c=m["set-cookie"],t=p.match(/IG:"([^"]+)"/)[1],n=p.match(/data-iid="([^"]+)"/)[1],[r,a,o,u,i,s]=JSON.parse(p.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(l){throw l}return Un={subdomain:e,IG:t,IID:n,key:r,token:a,tokenTs:r,tokenExpiryInterval:o,isVertical:u,frontDoorBotClassification:i,isSignedInOrCorporateUser:s,cookie:c,count:0},await Q.storage.local.set({[As]:Un}),Un}function WT(e){let{IG:t,IID:n,subdomain:a,isVertical:r}=Un;return r4(e?HT:zT,a)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+Un.count++:"")}function KT(e,t,n,a){let{token:r,key:o}=Un,u={fromLang:n,text:t,token:r,key:o};return!e&&a&&(u.to=a),u}async function xh(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>fh)throw new Error(`The supported maximum length of text is ${fh}. Please shorten the text.`);io||(io=hh()),await io,await qT()&&(io=hh(),await io),t=t||"auto",n=n||"zh-CN",t=mh.get(t)||t,n=mh.get(n)||n;let r=WT(!1),o=KT(!1,e,t,n==="auto-detect"?"zh-Hans":n),u={referer:r4(bh,Un.subdomain),"content-type":"application/x-www-form-urlencoded"},i=new URLSearchParams(o),s=r,c=i.toString(),l=await se({retry:2,url:s,headers:u,method:"POST",body:c});if(l.ShowCaptcha||l.StatusCode===401||l.statusCode){if(Un=null,io=null,await Q.storage.local.remove(As),l.ShowCaptcha)throw new Error(` +`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await In(t)}async hexEncodedBodyHash(){return this.request.headers[dt.contentSha256Header]?this.request.headers[dt.contentSha256Header]:this.request.body?await this.hexEncodedHash(Xc(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return NT.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,a,r){let o=await Ra(n,`${dt.kDatePrefix}${t.secretKey}`),u=await Ra(a,o),i=await Ra(r,u);return Ra(dt.v4Identifier,i)}createScope(t,n,a){return[t.substr(0,8),n,a,dt.v4Identifier].join("/")}};var gh=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],e4=new Map(gh),UT=new Map(gh.map(([e,t])=>[t,e])),t4=class extends Te{static langMap=e4;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,a){if(super(t,n,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new Error("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let a={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},r=new io(a,"translate");await r.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let o=new URLSearchParams(a.params),u=await se({retry:2,url:"https://open.volcengineapi.com"+a.pathname+"?"+o.toString(),headers:r.request.headers,method:a.method,body:a.body});if(u.DetectedLanguageList&&u.DetectedLanguageList.length>0)return u.DetectedLanguageList[0].Language;if(u.ResponseMetadata&&u.ResponseMetadata.Error){let i=u.ResponseMetadata.Error;throw new Tt(i.Code,i.Message)}else if(u.ResponseMetaData&&u.ResponseMetaData.Error){let i=u.ResponseMetaData.Error;throw new Tt(i.Code,i.Message)}else throw new Error("response: "+JSON.stringify(u))}async translateList(t){let{text:n,from:a,to:r}=t,o=e4.get(a),u={TargetLanguage:e4.get(r)||r,TextList:n};o?u.SourceLanguage=o:u.SourceLanguage=await this.remoteDetectLanguage(n.join(` +`).slice(0,1e3));let i={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(u)},s=new io(i,"translate");await s.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let c=new URLSearchParams(i.params),l=await se({retry:2,url:"https://open.volcengineapi.com"+i.pathname+"?"+c.toString(),headers:s.request.headers,method:i.method,body:i.body});if(l.TranslationList){let m=l.TranslationList.map(f=>f.Translation),p=a;return l.TranslationList.length>0&&l.TranslationList[0].DetectedSourceLanguage&&(p=UT.get(l.TranslationList[0].DetectedSourceLanguage)||a),{text:m,from:p,to:r}}else if(l.ResponseMetadata&&l.ResponseMetadata.Error){let m=l.ResponseMetadata.Error;throw new Tt(m.Code,m.Message)}else if(l.ResponseMetaData&&l.ResponseMetaData.Error){let m=l.ResponseMetaData.Error;throw new Tt(m.Code,m.Message)}else throw new Error("response: "+JSON.stringify(l))}},mh=t4;h();var ph=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],n4=new Map(ph),jT=new Map(ph.map(([e,t])=>[t,e])),du=class extends Te{static langMap=n4;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:a,to:r}=t,o=n4.get(a)||"detect",u=n4.get(r)||r,s=await se({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:o,target_language:u,text:n})});if(s.base_resp&&s.base_resp.status_code===0){let c=s.translation,l=a;return s.detected_language&&(l=jT.get(s.detected_language)||a),{text:c,from:l,to:r}}else{let c=s.base_resp;throw new Tt(c.status_code.toString(),c.status_message)}}};h();var zT=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],a4=new Map(zT),gu=class extends Te{static langMap=a4;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,a){if(super(t,n,a),!t||!t.url)throw new Error("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(r=>r.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:a,to:r}=t,o=this.getRandomKey(),i=await se({retry:2,url:o,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({source_lang:a4.get(a)||a,target_lang:a4.get(r)||r,text:n})});if(i.code===200)return{text:i.data,from:a,to:r};throw new Error(i.message||i.message||"API Error")}};h();h();var r4="https://{s}bing.com",xh=r4+"/translator",HT=r4+"/ttranslatev3",qT=r4+"/tspellcheckv3",As="bingGlobalConfig",Th=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],fh=new Map(Th),hh=new Map(Th.map(([e,t])=>[t,e])),bh=1e3,Un,so;function o4(e,t){return e.replace("{s}",t?t+".":"")}async function WT(){if(!Un){let n=await X.storage.local.get(As);return n&&(Un=n[As]),!0}let{tokenTs:e,tokenExpiryInterval:t}=Un;return Date.now()-e>t}async function yh(){let e,t,n,a,r,o,u,i,s,c;try{let l=o4(xh,e),m=await se({retry:2,url:l,responseType:"raw"}),{body:p,headers:f,url:g}=m;e=g.match(/^https?:\/\/(\w+)\.bing\.com/)[1],c=f["set-cookie"],t=p.match(/IG:"([^"]+)"/)[1],n=p.match(/data-iid="([^"]+)"/)[1],[r,a,o,u,i,s]=JSON.parse(p.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(l){throw l}return Un={subdomain:e,IG:t,IID:n,key:r,token:a,tokenTs:r,tokenExpiryInterval:o,isVertical:u,frontDoorBotClassification:i,isSignedInOrCorporateUser:s,cookie:c,count:0},await X.storage.local.set({[As]:Un}),Un}function KT(e){let{IG:t,IID:n,subdomain:a,isVertical:r}=Un;return o4(e?qT:HT,a)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+Un.count++:"")}function $T(e,t,n,a){let{token:r,key:o}=Un,u={fromLang:n,text:t,token:r,key:o};return!e&&a&&(u.to=a),u}async function Eh(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>bh)throw new Error(`The supported maximum length of text is ${bh}. Please shorten the text.`);so||(so=yh()),await so,await WT()&&(so=yh(),await so),t=t||"auto",n=n||"zh-CN",t=fh.get(t)||t,n=fh.get(n)||n;let r=KT(!1),o=$T(!1,e,t,n==="auto-detect"?"zh-Hans":n),u={referer:o4(xh,Un.subdomain),"content-type":"application/x-www-form-urlencoded"},i=new URLSearchParams(o),s=r,c=i.toString(),l=await se({retry:2,url:s,headers:u,method:"POST",body:c});if(l.ShowCaptcha||l.StatusCode===401||l.statusCode){if(Un=null,so=null,await X.storage.local.remove(As),l.ShowCaptcha)throw new Error(` Sorry that bing translator seems to be asking for the captcha, Please take care not to request too frequently. The response code is ${l.StatusCode}. `);if(l.StatusCode===401)throw new Error(` Max count of translation exceeded. Please try it again later. The response code is 401. - `);if(l.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(l)}.`)}let f=l[0].translations[0],p=l[0].detectedLanguage;return{text:f.text,from:ph.get(p.language),to:ph.get(f.to)}}h();function Th(e){let t=e.split(".");if(t.length<=1)throw new Error("invlaid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let a=n.replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(globalThis.atob(a).split("").map(function(i){return"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)}).join("")),o=JSON.parse(r),u=new Date(o.exp*1e3);return{accessToken:e,accessTokenExpiresAt:u.toISOString()}}var sr=null,$T=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],o4=new Map($T),pu=class extends Te{static langMap=o4;isSupportList=!0;maxTextLength=1800;static async clearState(){sr=null,await zo(Ku)}async translate(t){let{text:n,from:a,to:r}=t;return n?await xh(n,a,r):{...t}}async init(){if(!sr){sr={};let t=await Uo(Ku);t&&(sr=t)}await Eh(sr)}async translateList(t){let{from:n,to:a,text:r}=t,o=o4.get(n)||"auto",u=o4.get(a)||a;o==="auto"&&(o="");let i=await Eh(sr),s=[];for(let p of r)s.push({Text:p});let c=JSON.stringify(s),l=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${o}&to=${u}&api-version=3.0&includeSentenceLength=true`,f=await se({url:l,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+i.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin"},body:c,method:"POST"});if(f&&f.length>0&&f[0].translations&&f[0].translations.length>0)return{text:f.map(p=>p.translations[0]?.text||""),from:n,to:a};throw new Error("Microsoft translate error "+JSON.stringify(f))}};async function Eh(e){if(e&&e.accessToken&&e.accessTokenExpiresAt){let t=Date.now(),a=new Date(e.accessTokenExpiresAt).getTime();if(a-t>30*1e3)return e;if(a-t>3e3)return Ch().catch(r=>{z.error(r)}),e}return Ch()}async function Ch(){let e=await b3({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET"}),t=Th(e),n=t.accessTokenExpiresAt,r=new Date(n).getTime()-Date.now();return sr=t,await jo(Ku,t,r-1e3),{accessToken:e,accessTokenExpiresAt:t.accessTokenExpiresAt}}h();var vh=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],u4=new Map(vh),GT=new Map(vh.map(([e,t])=>[t,e])),i4=class extends Te{static langMap=u4;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";appid="";key="";isSupportList=!1;maxTextGroupLength=20;constructor(t,n,a){if(super(t,n,a),!t||!t.appid||!t.key)throw new Error("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim()}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:a}=this,{appid:r,key:o}=this,{text:u,from:i,to:s}=t,c=new URLSearchParams({from:u4.get(i)||"auto",to:u4.get(s)||s,q:u,salt:n,appid:r,sign:Da(r+u+n+o)}),l=new URL(a);l.search=c.toString();let f=await se({url:l.toString()});if(f.error_code)throw new Tt("API_SERVER_ERROR",f.error_msg);let{trans_result:p,from:m}=f,g=p.map(({dst:w})=>w);return{from:GT.get(m)||m,to:s,text:g.join(` -`)}}},wh=i4;h();h();var lr=class extends Te{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,a){super(t,n,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let o=await this.checkLang(a,n);if(!o)return{text:n,from:a,to:r};a=o;let u=this.handleRequest(n,a,r),i=await yi(u);return{text:this.handleResponseText(i),from:a,to:r}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let o=await this.checkLang(a,n.join(" "));if(!o)return{text:n,from:a,to:r};a=o;let u=this.handleRequest(n,a,r),i=await yi(u);return{text:this.handleResponseText(i),from:a,to:r}}handleBaseApiServiceConfig(t){let n=t.request.url,a=t.request.headers||{};return a["content-type"]||(a["content-type"]="application/json"),{url:n,retry:t.request.retry||2,method:t.request.method||"POST",headers:a,body:JSON.stringify(t.request.body)}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,a){let r={...this.requestBaseConfig},o=r?.body||"",u=this.apiServiceConfig.keywords||{};r.body=s(o);let i=r.headers||{};return Object.keys(i).forEach(c=>{i[c]=s(i[c])}),r.headers=i,r.url=s(r.url||""),r;function s(c){return c.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",a).replaceAll(/{([a-z:_]+)}/gi,(f,p)=>{let[m,g]=p.split(":"),T=u[m];return g==="random"?VT(T.split(",")):T})}}handleResponseText(t){let n=this.apiServiceConfig.response,a=t,r=n.text.split(".");for(let o of r){if(Array.isArray(a))return a=a.map(u=>u[o]),a;a=a[o]}return a}detectLanguageRemotely(t){return ir.detectLanguageRemotelyByTransmart(t)}};function VT(e){let t=Math.floor(Math.random()*e.length);return e[t]}var s4=class extends lr{constructor(t,n,a){if(!t?.token)throw new Error("token are required");super({...t,isSupportList:!0,langs:[["zh-CN","zh"],["en","en"],["ja","ja"]],keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,a)}},Ah=s4;h();var YT=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],ks=new Map(YT),l4=class extends Te{static langMap=ks;token="ssdj273ksdiwi923bsd9";constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t;if(!ks.get(r))throw new Error(`Unsupported language: ${r}`);if(a==="auto")throw new Error("Unsupported language: auto");let u=n;return{text:(await se({retry:2,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:u,trans_type:`${ks.get(a)||"auto"}2${ks.get(r)}`})})).target,from:a,to:r}}},kh=l4;h();var Sh=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],c4=new Map(Sh),JT=new Map(Sh.map(([e,t])=>[t,e]));function QT(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var d4=class extends Te{static langMap=c4;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,a){if(super(t,n,a),!t||!t.appId||!t.appSecret)throw new Error("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,o=ZT(32),u=Math.round(new Date().getTime()/1e3),i=this.appId+QT(n)+o+u+this.appSecret,s=await In(i),c={q:n,appKey:this.appId,salt:o.toString(),from:c4.get(a)||"auto",to:c4.get(r)||r,sign:s,signType:"v3",curtime:u.toString()};this.domain&&this.domain!=="general"&&(c.domain=this.domain),this.vocabId&&(c.vocabId=this.vocabId);let l=new URLSearchParams(c),p=await se({url:"https://openapi.youdao.com/api",method:"POST",body:l.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"}});if(!p.translation)throw new Error(JSON.stringify(p));let m=p.l,[g,T]=m.split("2");return{text:p.translation.join(` -`),from:JT.get(g),to:r}}};function ZT(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r[t,e]));var m4=class extends Te{static langMap=g4;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,o={q:n,from:g4.get(a)||"auto",to:g4.get(r)||r},u=new URLSearchParams(o),i=await se({url:"https://aidemo.youdao.com/trans",method:"POST",body:u.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"}});if(i&&i.translation)return{text:i.translation.join(` -`),from:a,to:r};throw new Error("Youdao translation failed: "+JSON.stringify(i))}},Mh=m4;h();var fu=class extends lr{constructor(t,n,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(r=>[r,r]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||Ka,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,a)}};var XT={mock:oo,mock2:oo,custom:fu,google:ur,transmart:ir,deepl:th,volc:dh,volcAlpha:gu,bing:pu,tencent:ru,tenAlpha:ou,baidu:wh,caiyun:Ah,cai:kh,openl:Cs,youdao:Dh,you:Mh,d:ro,dpro:ro,deeplx:mu,niu:nh,azure:ah,openai:oh,chatgpt:lu,papago:rh,aliyun:du},ga={};Object.keys(Mn).forEach(e=>{ga[e]={...Mn[e],class:XT[e]}});function Qr(e,t){let n=sn;if(ga[e]&&ga[e].class&&ga[e].class.langMap&&ga[e].class.langMap.size>0){let a=ga[e].class.langMap,r=n.filter(o=>a.get(o));return r.includes(t)||r.unshift("placeholder"),r}else return sn}function Ph(e,t,n){let a=ga[t],r=n.config.translationServices[t]||{},o=r.provider||"",u=!0,i=[...a.allProps||[]],s=a.providers||[],c=[],l=[];if(i.length>0){i.forEach((p,m)=>{let g=p;if(s.length>0){if(p.providers&&p.providers.length>0&&!p.providers.includes(o))return;p.type=="select"&&(g={...p},g.options=p.options?.filter(T=>T.providers?.includes(o)))}p.optional?l.push(g):c.push(g)});let f=l.concat(c).filter(p=>p.required);if(f.length>0){for(let p of f)if(!r[p.name]){u=!1;break}}}return{...a,id:t,selected:n[e]===t,ok:u,currentProvider:o,providers:s,config:r,props:a.props||[],allProps:i,explicitProps:c||[],optionalProps:l||[]}}async function ca(e,t){if(!e.text)return e;let n=await Ra({sentences:[e]},t);if(n.sentences.length>0)return{...e,...n.sentences[0]};throw new Tt("translateFailed","translate failed")}async function Uf(e,t){for(let n of e)try{return await ca({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n}),n}catch{continue}return null}async function Fc(e){let{config:t,translationService:n}=e,a=t.translationGeneralConfig,r=t.translationServices,o=n,u=r[o]||{},i=Xt(e.user),s=new ga[o].class(u,a,{translationService:o,userToken:e.user?.token,isPro:i}),c=s.getDefaultRateLimit();c&&(u&&!u.limit&&(u.limit=c.limit),u&&!u.interval&&(u.interval=c.interval)),o==="deepl"&&u&&u.provider==="pro"&&(u.limitForImmersiveDeepl?u.limit=u.limitForImmersiveDeepl:c&&(u.limit=c.limit)),await p3(o,u),await s.init()}async function Ra(e,t,n){if(!e.sentences.length)return{...e};let{config:a,translationService:r,state:o}=t,u=a.translationGeneralConfig,i=a.translationServices,s=r,c=i[s]||{};s==="openai"&&(e.sentences=e.sentences.map(S=>({...S,from:"auto"})));let l=[],f={sentences:Array(e.sentences.length)},p=e.sentences.length,m=-1;if(o.cache)for(let S of e.sentences){m++;let D=s;s==="openl"&&(D=s+"-"+c.codename||Cs.DEFAULT_CODENAME);let N=null;try{N=await Ru(jf({originalText:S.text,from:S.from,to:S.to,service:D}),200)}catch(_){z.warn("query cache DB error, but it's ok",_)}if(N){let _={...S,text:N.translatedText};f.sentences[m]=_,n&&n(null,_,S)}else l.push(S)}else l.push(...e.sentences);let g=l.length;if(p-g>0&&z.debug(`use ${p-g} sentences from cache`),!l.length)return f;let T,w=Xt(t.user);try{T=new ga[s].class(c,u,{translationService:s,userToken:t.user?.token,isPro:w}),await T.init()}catch(S){if(n)for(let D of l)n(S,null,D);throw S}let b=await T.multipleTranslate({sentences:l},c,(S,D,N)=>{if(n&&n(S,D,N),!S&&D&&!s.startsWith("mock")&&o.cache){let _=s;s==="openl"&&(_=s+"-"+c.codename||Cs.DEFAULT_CODENAME),o.cache&&Ru(zf({translatedText:D.text,from:N.from,to:N.to,detectedFrom:D.from,key:Da(N.text),service:_}),3e3).catch(y=>{z.warn("set cache DB error",y)})}});for(let S of b.sentences){let D=f.sentences.findIndex(N=>!N);if(D===-1)throw new Tt("translateFailed","can not match the result");f.sentences[D]=S}return f}h();function Pe(e){return d("div",{class:"nav-left",children:[d("div",{class:"title",children:e.title}),d("div",{class:"description",children:e.description})]})}h();h();function cr(e){let{t}=ue(),n={};e.width&&(n={width:`${e.width}px`});let[a,r]=$(e.value),{field:o,onFinish:u}=e,i=o.name;o.label&&(i=o.label),o.labelKey&&(i=t(o.labelKey));let s={};return o.descriptionLink1&&(s[1]=o.descriptionLink1),d("div",{class:"mt-3",children:[d("label",{for:e.field.name,class:"mb-[var(--spacing)]",children:[i,"\uFF1A"]}),e.field.type==="textarea"?d(Fe,{children:[d("textarea",{style:n,autoComplete:"off",required:e.field.required,placeholder:e.field.placeholder||e.field.name,class:"input",rows:e.rows,value:Array.isArray(a)?a.join(","):a,type:e.type,onInput:c=>{let l=c.target.value,f=Array.isArray(a)?l.split(","):l;r(f),e.onChange(f)},onChange:()=>{u&&u()}}),e.field.descriptionKey?d("small",{dangerouslySetInnerHTML:{__html:t(e.field.descriptionKey,s)}}):null]}):d(Fe,{children:[d("input",{style:n,required:e.field.required,placeholder:e.field.placeholder||e.field.name,value:a,type:e.type,disabled:e.field.disabled||!1,name:e.field.name,autoComplete:"off",onInput:c=>{r(c.target.value),e.onChange(c.target.value)},onChange:()=>{(e.type==="text"||e.type==="password")&&u&&u()}}),e.field.descriptionKey?d("small",{dangerouslySetInnerHTML:{__html:t(e.field.descriptionKey,s)}}):null]})]})}function so(e){let{t}=ue(),[n,a]=$(!0),[r,o]=$(!1),{currentProvider:u,onFinish:i,field:s,onChange:c,value:l,isProUser:f}=e;l=l??(s.default||""),he(()=>{s.options&&(s.options.some(g=>g.value===l)||o(!0))},[]);let p=s.name;if(s.label&&(p=s.label),s.labelKey&&(p=t(s.labelKey)),s.type==="select")return d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[p,"\uFF1A"]}),d(Gl,{maxWidth:200,items:s.options.map(m=>({label:`${m.label?t(m.label):m.value}`,value:m.value,selected:l===m.value,onSelected:()=>{c(m.value)}})),onChange:c,isInput:r,value:l})]});if(s.type==="openai-model-select")return d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[p,"\uFF1A"]}),d(Gl,{maxWidth:200,items:s.options.map(m=>({label:`${m.label?t(m.label):m.value}`,value:m.value,selected:l===m.value,onSelected:()=>{c(m.value)}})),onChange:c,isInput:r,value:l}),u!=="pro"&&d("label",{for:"customContent",class:"text-sm",onClick:()=>{o(!r)},children:[d("input",{type:"checkbox",id:"customContent",name:"customContent",checked:r}),t("customContent")]})]});if(s.type==="text")return d("div",{children:d(cr,{field:s,value:l,type:s.type,onChange:c,onFinish:i})});if(s.type==="textarea")return d("div",{children:d(cr,{field:s,value:l,type:s.type,onChange:c,onFinish:i})});if(s.type==="jsonarea")return d("div",{children:d(cr,{field:{...s,type:"textarea"},value:l,rows:5,type:s.type,onChange:c,onFinish:i})});if(s.type==="number")return d("div",{children:d(cr,{field:s,value:l,type:s.type,width:196,onChange:c})});if(s.type==="password")return d("div",{children:[d(cr,{field:s,value:l,type:n?s.type:"text",onChange:c,onFinish:i}),d("label",{for:"translate",onClick:()=>{a(!n)},children:[d("input",{type:"checkbox",id:"translate",name:"translate"}),t("show password")]})]});if(s.type==="color"){let m=l,g="";return m||(m="#FFFFFF",g="#FFFFFF"),d("div",{children:d("label",{class:"flex items-center",for:s.name,children:[d("span",{class:"mr-2",children:s.label||s.name}),d("input",{type:"text",id:s.name,class:"border-color-text mr-2",placeholder:g||"",value:l,onInput:T=>{c(T.target.value)}}),d("input",{id:s.name,type:"color",name:s.name,value:m,onInput:T=>{c(T.target.value)}})]})})}else return null}h();function Ss(e){let{t,lang:n}=ue();return d("details",{role:"list",class:"nav-right",children:[d("summary",{"aria-haspopup":"listbox",children:t("edit")}),d("ul",{role:"listbox",class:"option-list",children:e.options.map((a,r)=>{let o=Mt(a.value,n);return d("li",{children:d("label",{children:[d("input",{type:"checkbox",onChange:()=>{e.onToggleAlwaysLangs(!a.checked,a.value)},value:a.value,checked:a.checked}),o]})},"language-"+r)})})]})}h();function Ua(e){let{t}=ue(),[n,a]=$([]),[r,o]=$(!1);function u(){e.onDeleteUrl(n,e.type),a([]),o(!1)}return e.urls.length?d("div",{children:[e.urls.length>1?d("div",{style:"display:flex;flex-direction:row;align-items:center;padding: 0 24px;margin-bottom:12px;",children:[d("input",{type:"checkbox",id:"checkAll",checked:r,onChange:i=>{if(i.target.checked){let s=e.urls;a(s)}else a([]);o(i.target.checked)}}),d("label",{htmlFor:"checkAll",children:"\u5168\u9009"}),d("div",{style:"flex:1;"}),d("a",{style:{cursor:"pointer"},onClick:u,children:t("delete")})]}):null,d("div",{class:"url-list-item",children:e.urls.map((i,s)=>d("div",{className:"url-list",style:"padding:6px 24px;",children:d("div",{className:"url-left",style:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%"},children:[d("input",{type:"checkbox",checked:n.includes(i),style:"margin-right:12px;",onChange:c=>{c.target.checked?a([...n,i]):a(n.filter(l=>l!==i))}}),d("div",{className:"url-name height-tight",children:i}),d("div",{style:{flex:1}}),d("a",{style:{marginRight:"12px",cursor:"pointer"},onClick:c=>{e.onEditUrl(i,e.type,s)},children:t("edit")}),d("a",{style:{cursor:"pointer"},onClick:c=>{e.onDeleteUrl([i],e.type)},children:t("delete")})]})},"menu"+s))})]}):null}h();function ja(e){let{t}=ue(),n=zn(null),{toggleModal:a}=e;return d("dialog",{id:"immersive-translate-overlay",onClick:o=>{o.target&&o.target.id==="immersive-translate-overlay"&&a(o)},open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:e.toggleModal}),d("div",{class:"add-text",children:t("add url")}),d("input",{placeholder:"URL",ref:n,value:e.urlValue}),d("blockquote",{children:d("p",{class:"text-sm",children:t("addUrlDescription")})}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"#cancel",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:e.toggleModal,children:t("cancel")})}),d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:o=>{if(o.preventDefault(),n.current&&n.current.value){if(e.onSubmitAddUrl){if(e.urlValue!==""){e.onSubmitAddUrl(n.current.value,e.index,e.type,"edit");return}e.onSubmitAddUrl(n.current.value,e.index,e.type);return}else if(e.onAddInterfaceUrl){if(e.urlValue!==""){e.onAddInterfaceUrl(n.current.value,"edit");return}e.onAddInterfaceUrl(n.current.value)}}},children:t("confirm")})})]})]})})}h();async function lo(){let e=["bingGlobalConfig","baiduGlobalConfig",Mg,Kn];for(let t of e)await Q.storage.local.remove(t);me()||await gp(),await il()}function Fh(){return me()?Promise.resolve("0 B"):El()}h();var Qe=fr([]);function Ds(e){let[t,n]=$(null);return he(()=>{Ge().then(a=>{n(a),z.debug("current config",a)})},[]),he(()=>{Ge().then(a=>{n(a)})},[e]),t}function Ls(e){let[t,n]=$(null);return he(()=>{e&&Lt({url:"http://localhost",config:e,state:{cache:!1}}).then(a=>n(a))},[e]),t}var Bh=g3();function Ms(){let e=ft(),[t,n,a,r,o]=e,u=Ds(t),i=Ls(u);return En(t,n),he(()=>()=>{Ue.unbind("esc")},[]),u?d(Qe.Provider,{value:e,children:[d(e5,{}),d(u5,{config:u}),d(t5,{config:u}),d(hu,{config:u,ctx:i,serviceType:"translationService"}),d(n5,{config:u,ctx:i}),d(a5,{config:u,ctx:i}),d(r5,{config:u}),d(o5,{config:u})]}):d("div",{children:"loading"})}function e5(){let[e,t,n,a,r]=Ye(Qe),{t:o}=ue(),u=i=>{i.preventDefault(),confirm(o("confirmResetConfig"))&&(r(Za()),Aa().catch(s=>{z.error("clean local config error",s)}),Ir().catch(s=>{z.error("clean buildin config error",s)}),lo().catch(s=>{z.error("clean cache error",s)}),ut(o("resetSuccess")))};return d("div",{class:"nav",children:[d("strong",{class:"text-lg",children:o("general")}),d("a",{class:"text-sm",href:"#",onClick:u,children:o("reset")})]})}function t5({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue();if(!e)return null;let i=c=>{n(l=>({...l,targetLanguage:c}))},s=Qr(e.translationService,e.targetLanguage);return d("div",{class:"nav",children:[d(Pe,{title:u("target"),description:u("translate other languages into specific language")}),d("select",{class:"select",onChange:c=>{c.preventDefault(),i(c.target.value)},children:s.filter(c=>c!=="auto").map((c,l)=>d("option",{value:c,selected:c===e?.targetLanguage,children:Mt(c,e?.interfaceLanguage)},"language"+l))})]})}function hu({config:e,ctx:t,serviceType:n}){let{t:a}=ue(),r=ot(),[o,u]=$(!1),[i,s]=$(""),[c,l]=$(""),[f,p]=$(null),[m,g]=$(null),[T,w,b,S,D]=Ye(Qe),N=x=>{w(v=>({...v,[n]:x}))},_=t&&Ci(t,n)||[],y=ha(()=>{if(e&&t){let{translationServices:x}=e,v=t[n],C=x?.[v];return C?{...C}:{}}return null},[e,t]),E=ha(()=>{if(e&&t){let x=t[n];if(Mn[x])return Ph(n,x,t)}return null},[e,t]);return he(()=>{Xe.get(xt,null).then(x=>{x?(p(x),g(Xt(x))):g(!1)}).catch(x=>{g(!1)})},[]),m===null?null:d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:a("service"),description:a("select translation service")}),d("select",{class:"select",onChange:x=>{x.preventDefault(),s(""),l(""),N(x.target.value)},children:_.map((x,v)=>d("option",{value:x.id,selected:x.id===t?.[n],children:`${a("translationServices."+x.id)}${x.ok?"":" "+(!m&&!r&&x.providers&&x.providers.length>0?a("needLoginAction"):a("needActionForOptions"))}`},"service-item="+v))})]}),y&&E&&d("div",{class:"text-right text-sm",children:[c&&d("span",{class:"verified text-green-500 mr-2",children:a("verified")}),i&&d("span",{class:"verified text-red-500 mr-2",children:i}),d("a",{"aria-busy":o,href:"#",class:"secondary",onClick:async x=>{x.preventDefault();try{s(""),l(""),u(!0),await qn(500);let v=E.class;v&&v.clearState&&await v.clearState(),await ca({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:E.id}),l("verified")}catch(v){s(v.message)}finally{u(!1)}},children:a("verifyService")})]}),E?.providers?.length||E?.explicitProps?.length||E?.optionalProps?.length?d("article",{children:[E&&E.providers&&E.providers.length>0&&d("fieldset",{children:[d("legend",{class:"mb-4",children:a("chooseProviderLabel")}),E.providers.map((x,v)=>d(nl,{isProUser:m,provider:x,currentProvider:E.currentProvider,onChange:C=>{C.preventDefault();let M=C.target.value;M&&w(k=>{let P=k.translationServices||{},O=P[E.id]||{};return{...k,translationServices:{...P,[E.id]:{...O,provider:M}}}})}}))]}),E?.titleKey?d("div",{class:"description pb-1",dangerouslySetInnerHTML:{__html:Ne.sanitize(a(E?.titleKey),{ALLOWED_ATTR:["href","target"]})}}):null,E?.docUrl&&(!E.providers||E.providers.length===0)?d("div",{children:[d("a",{target:"_blank",class:"pb-1 docUrl",href:E.homepage,children:a(`translationServices.${E.id}`)}),"\xA0",d("span",{class:"description pb-1",children:a("please refer to")}),"\xA0",d("a",{target:"_blank",class:"pb-1 docUrl",href:E.docUrl,children:a("KeyAndConfigurationTutorial")})]}):null,y&&(E?.explicitProps||[]).map((x,v)=>d("div",{class:"mt-2",children:d(so,{isProUser:m,currentProvider:E.currentProvider,field:x,value:y[x.name],onChange:C=>{w(R=>{let M=R.translationServices||{},k=M[E.id]||{};return{...R,translationServices:{...M,[E.id]:{...k,[x.name]:C}}}})},onFinish:()=>{ut(a("saved"))}},x.name+v)},"service-item-prop-"+x.name+v)),y&&E&&E.optionalProps&&E.optionalProps.length>0&&d("details",{class:"pt-2 border-none",children:[d("summary",{style:{lineHeight:"1rem"},children:[a("moreOptions"),"\xA0\u{1F449}"]}),d("div",{children:E.optionalProps.map((x,v)=>{let C=y[x.name];return x.name==="apiUrl"&&E?.id==="openai"&&y?.APIKEY?.startsWith("immersiveopenai_")&&(x={...x,disabled:!0},C="https://openai-api.immersivetranslate.com/v1/chat/completions"),x.name=="placeholderDelimiters"&&(x.default=y.placeholderDelimiters||x.default),d("div",{class:"mt-2",children:d(so,{field:x,value:C,onChange:R=>{w(M=>{let k=M.translationServices||{},P=k[E.id]||{};return{...M,translationServices:{...k,[E.id]:{...P,[x.name]:R}}}})},onFinish:()=>{ut(a("saved"))}},x.name+v)},"service-item-optional-prop-"+x.name+v)})}),d("a",{href:"#",class:"secondary",onClick:x=>{x.preventDefault(),w(v=>{let C=v.translationServices||{};return{...v,translationServices:{...C,[E.id]:{}}}}),setTimeout(()=>{window.location.reload()},100)},children:a("resetToDefaultSettings")})]})]}):null]})}function n5({config:e,ctx:t}){let{t:n}=ue(),[a,r,o,u,i]=Ye(Qe),s=e?.translationLanguagePattern?.matches||[],{handleTranslationLanguagePatternSelected:c}=Rh(r),l=(p,m)=>{c(p?"matches":void 0,m)},f=ha(()=>!e||!t?[]:Bh.concat("").map(p=>({checked:e.translationLanguagePattern?.matches?.includes(p),value:p})),[e,t]);return d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:n("always languages"),description:n("always translate the following languages")}),d(Ss,{options:f,onToggleAlwaysLangs:l})]}),d("div",{class:"langs-list",children:s.map((p,m)=>d("div",{class:"lang-card",children:[d("div",{id:`${p}`,children:Mt(p,e?.interfaceLanguage)}),d("a",{href:"#close",class:"close",target:"_blank","aria-label":"Close","data-target":`${p}`,onClick:g=>{g.preventDefault(),l(!1,s[m])}})]},"lang-"+m))})]})}function a5({config:e,ctx:t}){let{t:n}=ue(),[a,r,o,u,i]=Ye(Qe),s=e?.translationLanguagePattern.excludeMatches||[],{handleTranslationLanguagePatternSelected:c}=Rh(r),l=(p,m)=>{c(p?"excludeMatches":void 0,m)},f=ha(()=>!e||!t?[]:Bh.map(p=>({checked:e?.translationLanguagePattern?.excludeMatches?.includes(p),value:p})),[e,t]);return d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:n("neverTranslateLanguagesLabel"),description:n("neverTranslateTheFollowingLanguagesDescription")}),d(Ss,{options:f,onToggleAlwaysLangs:l})]}),d("div",{class:"langs-list",children:s.map((p,m)=>d("div",{class:"lang-card",children:[d("div",{id:`${p}`,children:Mt(p,e?.interfaceLanguage)}),d("a",{href:"#close",class:"close",target:"_blank","aria-label":"Close","data-target":`${p}`,onClick:g=>{g.preventDefault(),l(!1,s[m])}})]},"never-lang-"+m))})]})}function r5({config:e}){let{t}=ue(),[n,a,r,o,u]=Ye(Qe),[i,s]=$(""),[c,l]=$(0),[f,p]=$(!1);he(()=>{Ue("esc",()=>{p(!1)})},[]);let m=(w,b,S,D)=>{p(!f),a(N=>{let _=N.translationUrlPattern,y=[],E=[];_&&_.matches&&_.excludeMatches&&(y=_.matches,E=_.excludeMatches);let x=[...y],v=[...E];return D==="edit"&&(x[b]=w),x=bn(w,x),v=at(w,E),{...N,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...N.translationUrlPattern,matches:x,excludeMatches:v}}})},g=(w,b)=>{a(S=>{let D=S.translationUrlPattern,N=[];D&&D.matches&&(N=D.matches);let _=[...N];return w.forEach(y=>{_=at(y,_)}),{...S,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...S.translationUrlPattern,[b]:_}}})},T=(w,b,S)=>{p(!f),s(w),l(S)};return d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:t("always sites"),description:t("always translate the following sites")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:w=>{w.preventDefault(),p(!f)},children:t("add")})}),f?d(ja,{toggleModal:w=>{w.preventDefault(),p(!f)},onSubmitAddUrl:m,urlValue:i,index:c}):null]}),d(Ua,{urls:e?.translationUrlPattern.matches||[],type:"matches",onDeleteUrl:g,onEditUrl:T})]})}function o5({config:e}){let{t}=ue(),[n,a,r,o,u]=Ye(Qe),[i,s]=$(!1),[c,l]=$(""),[f,p]=$(0);he(()=>{Ue("esc",()=>{s(!1)})},[]);let m=()=>{s(!i)},g=(b,S,D,N)=>{m(),a(_=>{let y=_.translationUrlPattern,E=[],x=[];y&&y.matches&&y.excludeMatches&&(E=y.matches,x=y.excludeMatches);let v=[...E],C=[...x];return N==="edit"&&(C[S]=b),v=at(b,E),C=bn(b,C),{..._,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{..._.translationUrlPattern,matches:v,excludeMatches:C}}})},T=(b,S)=>{a(D=>{let N=D.translationUrlPattern,_=[];N&&N.excludeMatches&&(_=N.excludeMatches);let y=[..._];return b.forEach(E=>{y=at(E,y)}),{...D,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...D.translationUrlPattern,[S]:y}}})},w=(b,S,D)=>{s(!i),l(b),p(D)};return d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:t("never sites"),description:t("never translate the following sites")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:b=>{b.preventDefault(),m()},children:t("add")})}),i?d(ja,{toggleModal:b=>{b.preventDefault(),m()},onSubmitAddUrl:g,type:"excludeMatches",urlValue:c,index:f}):null]}),d(Ua,{urls:e?.translationUrlPattern.excludeMatches||[],type:"excludeMatches",onDeleteUrl:T,onEditUrl:w})]})}function Rh(e){return{handleTranslationLanguagePatternSelected:dn((n,a)=>{if(!n){e(u=>{let i={...u.translationLanguagePattern};return{...u,translationLanguagePattern:{...u.translationLanguagePattern,matches:at(a,i.matches),excludeMatches:at(a,i.excludeMatches)}}});return}let r=n,o=r==="matches"?"excludeMatches":"matches";a&&e(u=>{let i={...u.translationLanguagePattern};return i[r]=bn(a,i[r]),i[o]=at(a,i[o]),{...u,translationLanguagePattern:{...u.translationLanguagePattern,...i}}})},[e])}}var p4=0,f4;async function Ih(e){if(p4>60*10)return null;p4++,Xe.refresh(),await qn(300);let t=await Xe.get(xt,null);z.debug("loopCheckUser",p4,t),t?(clearTimeout(f4),e(t)):f4=setTimeout(Ih.bind(null,e),1500)}function _h(e){let{user:t}=e,n=ot(),a=t&&t.email==="test@immersivetranslate.com",{t:r}=ue();if(t&&t.subscription&&t.subscription.subscriptionStatus=="active"){let o=t,u=o.subscription,i=c5(u.subscriptionTo),s=u.subscriptionType,c=s.startsWith("onetime_"),l=!c&&u.cancelAtPeriodEnd!="true",f="";return l?f=r("currentPlanDescriptionForContinuous",{plan:`${r(s)}`,endAt:i}):c?f=r("currentPlanDescriptionForOneTime",{plan:r(s),endAt:i,1:"https://immersivetranslate.com/accounts/upgrade?type=year",2:"https://immersivetranslate.com/accounts/upgrade?type=month"}):s==="yearly"||s==="year"?pm(o)?f=r("currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser",{plan:r(s+"ForOnce"),endAt:i,1:"https://immersivetranslate.com/billing"}):f=r("currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin",{plan:r(s+"ForOnce"),endAt:i,1:"https://immersivetranslate.com/accounts/upgrade?type=year"}):f=r("currentPlanDescriptionForAutoRenewCaceling",{plan:r(s+"ForOnce"),endAt:i}),d("span",{class:"info-subtitle",dangerouslySetInnerHTML:{__html:f}})}else return d("span",{class:"info-subtitle",children:n||a?"":r("currentPlanDescriptionForFree")})}function u5({config:e}){let{t}=ue(),n=ot(),[a,r]=$(null),o=!!e.showSponsorOnSafari,[u,i,s,c,l]=Ye(Qe);he(()=>(Xe.get(xt,null).then(g=>{g&&(r(g),i5(g.token).then(T=>{let w=T.data;w.token=g.token,Xe.set(xt,w),r(w)}).catch(T=>{Xe.remove(xt),r(null)}))}),()=>{clearTimeout(f4)}),[]);let f=dn(g=>{g&&g.preventDefault&&g.preventDefault(),a?.token&&s5(a.token).finally(async()=>{await Xe.remove(xt),await qn(200),await Xe.refresh(),r(null)})},[a]),p=dn(async g=>{g&&g.preventDefault&&g.preventDefault(),await Xe.set(_o,!0),l5(Xg),Ih(T=>{Qi(T.token,u,i),r(T),h4?.close(),window.location.reload()})},[r]),m=a?.avatar||v3;return a?!a.subscription||a.subscription.subscriptionStatus!="active"?d("div",{children:[d("div",{class:"title",children:t("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("span",{class:"info-title",title:a.email,children:a.email}),d(_h,{user:a})]}),d("div",{class:"ops",children:[d("a",{class:n&&o===!1?"!hidden":"",style:{display:"flex",flexDirection:"row",alignItems:"center",marginRight:"24px"},href:`${$a}?from=${n?"safari":"extension"}`,children:[t("openPremium"),d("img",{width:24,height:24,style:{width:"24px",height:"24px"},src:Jr})]}),d("div",{class:"",children:d("a",{href:`${Ar}?from=${n?"safari":"extension"}`,children:t("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:f,children:t("logout")})})]})]})]}):d("div",{class:"",children:[d("div",{class:"title",children:t("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("div",{className:"flex",children:[d("span",{class:"info-title info-primary",children:a.userName}),d("img",{width:24,height:24,style:{width:"24px",height:"24px",marginLeft:"4px"},src:Jr})]}),d(_h,{user:a})]}),d("div",{class:"",children:d("a",{href:Ar,children:t("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:f,children:t("logout")})})]})]}):d("div",{class:"header nav",children:[d("img",{src:m}),d("div",{class:"info",children:d("span",{class:"info-subtitle",children:t("nologin")})}),d("a",{class:"py-4",href:"#",onClick:p,children:t(n?"loginForSafari":"login")})]})}var Oh=Bo;function i5(e){return se({responseType:"json",url:Oh+"/v1/user",method:"get",headers:{token:e}})}function s5(e){return se({responseType:"json",url:Oh+"/v1/user/logout",method:"delete",headers:{token:e}})}var h4=null;function l5(e){let a=screen.width/2-230,r=screen.height/2-640/2;return h4=window.open(e,"loginWindow",`toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no,left=${a},top=${r},width=460,height=640,chrome=yes,centerscreen=yes`),h4}function c5(e){let t=new Date(e),n=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),r=String(t.getDate()).padStart(2,"0");return`${n}-${a}-${r}`}h();var Gt={};ai.forEach(e=>{e.labelKey&&(Gt[e.key]=e.labelKey)});function b4(){let e=ft(),[t,n,a,r,o]=e,[u,i]=$(null),{t:s}=ue();if(he(()=>{Ge().then(l=>{Lt({config:l,url:globalThis.location.href}).then(f=>{i(f)})})},[t]),!u)return d("div",{children:"loading"});let c=u.config;return d(Qe.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:s("inputOptions")})}),d(d5,{config:c}),d(g5,{config:c}),d(m5,{config:c}),d(hu,{config:c,ctx:u,serviceType:"inputTranslationService"}),d(p5,{config:c}),d(f5,{config:c}),d(b5,{config:c}),d(h5,{config:c})]})}function d5({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue();return e?d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:u("enableInputTranslation"),description:e.enableInputTranslationWithoutTriggerKey?u("enableInputTranslationDescriptionForNoneKey",{inputTargetLanguage:Mt(e.inputTargetLanguage,e.interfaceLanguage),trailingKey:Gt[e.inputTrailingTriggerKey]?u(Gt[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes}):u("enableInputTranslationDescription",{inputTargetLanguage:Mt(e.inputTargetLanguage,e.interfaceLanguage),startingKey:Gt[e.inputStartingTriggerKey]?u(Gt[e.inputStartingTriggerKey]):e.inputStartingTriggerKey,trailingKey:Gt[e.inputTrailingTriggerKey]?u(Gt[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes})}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:i=>{let s=i.target.checked;n(c=>({...c,enableInputTranslation:!!s}))},checked:e.enableInputTranslation})})]}),d("details",{class:"mt-3",children:[d("summary",{children:[u("clickToSeeQuickDemo")," \u{1F447}\u{1F447}"]}),d("video",{controls:!0,src:"https://s.immersivetranslate.com/videos/immpersive-translate-input-translation-demo-202307044.mp4"})]})]}):null}function g5({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue(),i=c=>{n(l=>({...l,inputTargetLanguage:c}))};if(!e)return null;let s=Qr(e.translationService,e.targetLanguage);return d("div",{class:"nav",children:[d(Pe,{title:u("inputTargetLanguage"),description:e.enableInputTranslationWithoutTriggerKey?u("inputTargetLanguageDescriptionForNoneKey"):u("inputTargetLanguageDescription",{startingKey:Gt[e.inputStartingTriggerKey]?u(Gt[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:c=>{c.preventDefault(),i(c.target.value)},children:s.filter(c=>c!=="auto").map((c,l)=>d("option",{value:c,selected:c===e.inputTargetLanguage,children:Mt(c,e.interfaceLanguage)},"language"+l))})]})}function m5({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue();return e?d("div",{class:"nav",children:[d(Pe,{title:u("enableInputTranslationWithoutTriggerKeyTitle",{trailingKey:Gt[e.inputTrailingTriggerKey]?u(Gt[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTargetLanguage:Mt(e.inputTargetLanguage,e.interfaceLanguage)}),description:""}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:i=>{let s=i.target.checked;n(c=>({...c,enableInputTranslationWithoutTriggerKey:!!s}))},checked:e.enableInputTranslationWithoutTriggerKey})})]}):null}function p5({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue(),i=s=>{n(c=>({...c,inputStartingTriggerKey:s}))};return e?d("div",{class:"nav",children:[d(Pe,{title:u("inputStartingTriggerKeyTitle"),description:e.inputStartingTriggerKey==="none"?u("inputStartingTriggerKeyDescriptionForNoneKey"):u("inputStartingTriggerKeyDescription",{startingKey:Gt[e.inputStartingTriggerKey]?u(Gt[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:s=>{s.preventDefault(),i(s.target.value)},children:ai.filter(s=>s.skipForStarting!==!0).map((s,c)=>d("option",{value:s.key,selected:s.key===e.inputStartingTriggerKey,children:s.labelKey?u(s.labelKey):s.key},"startingkey-"+c))})]}):null}function f5({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue(),i=s=>{n(c=>({...c,inputTrailingTriggerKey:s}))};return e?d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:u("inputTrailingTriggerKeyTitle"),description:u("inputTrailingTriggerKeyDescription",{trailingKey:Gt[e.inputTrailingTriggerKey]?u(Gt[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey})}),d("select",{class:"select",onChange:s=>{s.preventDefault(),i(s.target.value)},children:ai.filter(s=>s.skipForTrailing!==!0).map((s,c)=>d("option",{value:s.key,selected:s.key===e.inputTrailingTriggerKey,children:s.labelKey?u(s.labelKey):s.key},"startingkey-"+c))})]}),d("blockquote",{class:"text-sm",dangerouslySetInnerHTML:{__html:u("inputHelperInfo",{1:"https://immersivetranslate.com/docs/input/"})}})]}):null}function h5({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue(),[i,s]=$(!1),c=b=>{s(!i)},[l,f]=$(0),[p,m]=$(""),g=(b,S,D,N)=>{c(D),n(_=>{let y=_.inputTranslationUrlPattern,E=[],x=[];y&&y.matches&&y.excludeMatches&&(E=y.matches,x=y.excludeMatches);let v=[...E],C=[...x];return N==="edit"&&(D==="matches"?v[S]=b:C[S]=b),D==="matches"?(v=bn(b,v),C=at(b,x)):(v=at(b,E),C=bn(b,C)),{..._,inputTranslationUrlPattern:{..._.inputTranslationUrlPattern,matches:v,excludeMatches:C}}})},T=(b,S)=>{n(D=>{let N=D.inputTranslationUrlPattern,_=[];S==="matches"?N&&N.matches&&(_=N.matches):N&&N.excludeMatches&&(_=N.excludeMatches);let y=[..._];return b.forEach(E=>{y=at(E,y)}),{...D,inputTranslationUrlPattern:{...D.inputTranslationUrlPattern,[S]:y}}})},w=(b,S,D)=>{c(S),m(b),f(D)};return e?d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:u("inputTranslationBlockUrlsTitle"),description:u("inputTranslationBlockUrlsDescription")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:b=>{b.preventDefault(),c("excludeMatches")},children:u("add")})}),i?d(ja,{toggleModal:b=>{b.preventDefault(),c("excludeMatches")},onSubmitAddUrl:g,type:"excludeMatches",urlValue:p,index:l}):null]}),d(Ua,{urls:e.inputTranslationUrlPattern.excludeMatches,type:"excludeMatches",onDeleteUrl:T,onEditUrl:w})]}):null}function b5({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue();if(!e)return null;let i=()=>fn().any?e.inputTrailingMobileTriggerKeyTimeout:e.inputTrailingTriggerKeyTimeout,s=c=>{n(l=>fn().any?{...l,inputTrailingMobileTriggerKeyTimeout:c}:{...l,inputTrailingTriggerKeyTimeout:c})};return d("nav",{children:[d(Pe,{title:u("inputTrailingTriggerKeyTimeout"),description:u("inputTrailingTriggerKeyTimeoutDescription")}),d("div",{class:"option-input",children:d("input",{type:"number",value:i(),onChange:c=>{c.target&&s(Number(c.target.value))}})})]})}h();h();function y4(e){let{t}=ue(),{corfirmText:n,fingerCountToToggleTranslagePageWhenTouching:a,fingerCountToToggleTranslationMaskWhenTouching:r,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:o,onChange:u,onClose:i,shortcuts:s,mouseHoverHoldKey:c}=e,l={mouseHoverHoldKey:zn(null)},f=zn(null);for(let m=0;m{m.target&&m.target.id==="immersive-translate-overlay"&&i()};return he(()=>{},[]),d("dialog",{id:"immersive-translate-overlay",onClick:p,open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:m=>{m.preventDefault(),i()}}),s.map((m,g)=>{let{name:T,description:w,shortcut:b}=m;return d("div",{class:"flex justify-between items-center",children:[d("label",{class:"mb-2 text-sm",for:T,children:[w,":"]}),d("input",{type:"text",class:"!w-36",ref:l[T],disabled:m.disabled,id:T,name:T,value:b})]},`key-${g}`)}),ia()&&d("div",{class:"flex justify-between items-center",children:[d("label",{for:"switch",class:"text-sm mb-2",children:t("mouseHoverHoldKey")}),d("input",{type:"text",class:"!w-36",placeholder:t("mouseHoverShortcutPlaceholder"),ref:l.mouseHoverHoldKey,id:"mouseHoverHoldKey",name:"mouseHoverHoldKey",value:c})]}),Br()&&d("div",{class:"flex justify-between items-center",children:[d("label",{for:"switch",class:"text-sm mb-2",children:t("toggleTranslatePageWhenThreeFingersOnTheScreen")}),d("select",{class:"select !w-36",ref:f,onChange:m=>{m.preventDefault();let g=m.target.value,T={fingerCountToToggleTranslagePageWhenTouching:parseInt(g)};u(T)},children:[0,2,3,4,5].map((m,g)=>d("option",{value:m,selected:m===a,children:`${t("fingers."+m)}`},"finger-"+g))})]}),Br()&&d("div",{class:"mt-2 flex justify-between items-center",children:[d("label",{for:"switch",class:"text-sm mb-2",children:t("fingerCountToToggleTranslagePageOnlyTranslationWhenTouching")}),d("select",{class:"select !w-36",onChange:m=>{m.preventDefault();let g=m.target.value,T={fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:parseInt(g)};u(T)},children:[0,2,3,4,5].map((m,g)=>d("option",{value:m,selected:m===o,children:`${t("fingers."+m)}`},"finger-"+g))})]}),Br()&&d("div",{class:"mt-2 flex justify-between items-center",children:[d("label",{for:"switch",class:"text-sm mb-2",children:t("toggleTranslationMaskWhenThreeFingersOnTheScreen")}),d("select",{class:"select !w-36",onChange:m=>{m.preventDefault();let g=m.target.value,T={fingerCountToToggleTranslationMaskWhenTouching:parseInt(g)};u(T)},children:[0,2,3,4,5].map((m,g)=>d("option",{value:m,selected:m===r,children:`${t("fingers."+m)}`},"finger-"+g))})]}),e.note&&d(e.note,{}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"#cancel",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:m=>{m.preventDefault(),i()},children:t("cancel")})}),n&&d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:m=>{m.preventDefault();let g=[];for(let w=0;w{let t=e.translationTheme;return!e.translationThemePatterns[t]||!e.translationThemePatterns[t].matches?[]:[...e.translationThemePatterns[t].matches]};function x4(e){let t=[];return Fo[e]&&(t=t.concat(Fo[e])),t.push({name:"textColor",type:"color",required:!1}),t.push({name:"zoom",type:"number",default:100,required:!1}),t}function T4(){let e=ft(),[t,n,a,r,o]=e;En(t,n);let[u,i]=$(!1),[s,c]=$(!1),[l,f]=$(0),[p,m]=$(null),{t:g,setLang:T}=ue(),[w,b]=$("");he(()=>(Ue("esc",()=>{i(!1),c(!1)}),()=>{Ue.unbind("esc")}),[]),he(()=>{Ge().then(x=>{Lt({config:x,url:globalThis.location.href}).then(v=>{m(v)})})},[t]);let S=x=>{n(v=>{let C={matches:[],excludeMatches:[]};return v&&v.translationThemePatterns&&v.translationThemePatterns[x]&&(C=v.translationThemePatterns[x]),Pr(document,x,C),{...v,translationTheme:x}})},D=x=>{n(v=>({...v,interfaceLanguage:x}))},N=(x,v,C)=>{i(!u),n(R=>{let M=R.translationThemePatterns||{},k=M[v]||{},P=k.matches||[],O=[...P];return C==="edit"&&(O=at(w,P)),O=bn(x,O),{...R,translationThemePatterns:{...M,[v]:{...k,matches:O}}}})},_=(x,v)=>{n(C=>{let R=C.translationThemePatterns||{},M=R[v]||{},P=[...M.matches||[]];return x.forEach(O=>{P=at(O,P)}),{...C,translationThemePatterns:{...R,[v]:{...M,matches:P}}}})},y=(x,v,C)=>{i(!u),b(x),f(C)};if(!p)return d("div",{children:"loading"});let E=p.config;return d(Qe.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:g("interface")})}),d("div",{class:"nav",children:[d(Pe,{title:g("interface language")}),d("select",{class:"select",onChange:x=>{T(x.target.value),D(x.target.value),me()||setTimeout(()=>{Ps()},200)},children:x5.map((x,v)=>d("option",{value:x,selected:x===E.interfaceLanguage,children:Mt(x,E.interfaceLanguage,!0)},"locale"+v))})]}),d("div",{class:"nav",children:[d(Pe,{title:g("keyboard shortcuts")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:x=>{x.preventDefault(),c(!s)},children:g("modify")})})]}),d("div",{class:"nav",children:[d(Pe,{title:g("enableLineBreak"),description:g("enableLineBreakDescription")}),d("label",{for:"switch",children:d("input",{type:"checkbox",onChange:x=>{let v=x.target.checked;n(C=>{let R=C.generalRule||{};return{...C,generalRule:{...R,lineBreakMaxTextCount:v?280:0}}})},checked:p.rule.lineBreakMaxTextCount>0,id:"switch",name:"switch",role:"switch"})})]}),p.rule.lineBreakMaxTextCount>0&&d("div",{class:"nav",children:[d(Pe,{title:g("lineBreakMaxTextCount")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:x=>{let v=x.target.value;n(C=>{let R=C.generalRule||{};return{...C,generalRule:{...R,lineBreakMaxTextCount:parseInt(v)}}})},name:"count",value:p.rule.lineBreakMaxTextCount,placeholder:"Text Length",required:!0})})]}),(fn().any||me())&&d("div",{class:"nav",children:[d(Pe,{title:g("enableUserscriptPagePopup"),description:g("enableUserscriptPagePopupDescription",{touch:g("fingers."+E.generalRule.fingerCountToToggleTranslagePageWhenTouching)})}),d("label",{for:"switch",children:d("input",{type:"checkbox",onChange:x=>{let v=x.target.checked;n(C=>{let R=C.generalRule||{};return{...C,generalRule:{...R,isShowUserscriptPagePopup:v}}})},checked:p.rule.isShowUserscriptPagePopup,id:"switch",name:"switch",role:"switch"})})]}),d("div",{class:"nav",children:[d(Pe,{title:g("translation display"),description:g("select diplay style")}),d("select",{class:"select",onChange:x=>{S(x.target.value)},children:H0.map((x,v)=>d("option",{value:x,selected:x===E.translationTheme,children:g(`translationTheme.${x}`)},"theme"+v))})]}),d("div",{class:"pt-2 text-sm",children:d("p",{children:[Zg,d("div",{class:"pt-2"}),d("font",{class:Hr(E.translationTheme,!1,[],!1).join(" "),children:d("font",{class:qr(E.translationTheme).join(" "),children:q0})}),E.translationTheme&&x4(E.translationTheme).length>0?d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:g("customTheme")}),d("div",{class:"flex flex-col items-end",children:[x4(E.translationTheme).map((x,v)=>{x.label=g(`customThemeLabel.${x.name}`);let C=E.translationThemePatterns||{},R=E.translationTheme,M=C[R]||{},k=`theme-${R}-${x.name}`,P=Nh(k)||void 0,O=M[x.name]||P;return d(so,{field:x,value:O,onChange:j=>{n(B=>{let A=B.translationThemePatterns||{},U={...A[E.translationTheme]||{},[x.name]:j},K={...B,translationThemePatterns:{...A,[E.translationTheme]:U}};return Pr(document,E.translationTheme,U),K})}},"theme-prop"+v)}),d("a",{href:"#",class:"text-sm secondary",onClick:x=>{x.preventDefault(),n(v=>{let C=v.translationThemePatterns||{},R={...C[E.translationTheme]};x4(E.translationTheme).forEach(k=>{delete R[k.name]});let M={...v,translationThemePatterns:{...C,[E.translationTheme]:R}};return Pr(document,E.translationTheme,{matches:[],excludeMatches:[]},!0),M})},children:g("resetToDefaultColor")})]})]}):null,d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:g("previewAllThemes")}),H0.map((x,v)=>d("div",{class:"pt-2",children:d("label",{children:[d("div",{class:"flex justify-between",children:d("div",{children:[d("input",{type:"radio",name:"theme",value:x,checked:x===E.translationTheme,onChange:C=>{S(C.target.value)}}),g(`translationTheme.${x}`)]})}),d("p",{children:d("font",{class:Hr(x,!1,[],!1).join(" "),children:d("font",{class:qr(x).join(" "),children:q0})})})]})},"theme-index-"+v))]})]})}),d("div",{class:"nav",children:[d(Pe,{title:"",description:g("useAboveStyleForTheseSites",{theme:g(`translationTheme.${E.translationTheme}`)})}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:x=>{x.preventDefault(),i(!u)},children:g("add")})})]}),u?d(ja,{toggleModal:x=>{x.preventDefault(),i(!u)},onAddInterfaceUrl:(x,v)=>{N(x,E.translationTheme,v)},urlValue:w,index:l}):null,d(Ua,{urls:T5(E),type:"matches",onDeleteUrl:x=>{_(x,E.translationTheme)},onEditUrl:y}),d(E4,{config:E,visible:s,onClose:()=>c(!1)})]})}function E4({config:e,visible:t,onClose:n}){let{t:a}=ue(),[r,o,u,i,s]=Ye(Qe);if(!t||!e)return null;let c=a("confirm"),l=()=>d("blockquote",{class:"text-sm",children:[a("browserShortcutsSucks")," ",d("kbd",{children:"Ctrl+A"}),"\xA0",d("kbd",{children:"Alt+B"}),"\xA0",d("kbd",{children:"Command+C"}),"\xA0 ",d("kbd",{children:"Ctrl+Shift+D"})," "]});return me()||(Va()?(l=()=>d("blockquote",{class:"text-sm",children:[a("browserShortcutsNoteForFirefox")," ",d("a",{target:"_blank",href:"https://support.mozilla.org/zh-CN/kb/%E7%AE%A1%E7%90%86Firefox%E7%9A%84%E6%89%A9%E5%B1%95%E5%BF%AB%E6%8D%B7%E6%96%B9%E5%BC%8F",children:[a("help"),"?"]}),d("br",{}),d("br",{}),a("browserShortcutsSucks")," ",d("kbd",{children:"Ctrl+A"}),"\xA0",d("kbd",{children:"Alt+B"}),"\xA0",d("kbd",{children:"Cmd+C"}),"\xA0 ",d("kbd",{children:"Ctrl"}),"\xA0",d("kbd",{children:"D"})," "]}),c=a("confirm")):(l=()=>d("blockquote",{class:"text-sm",children:[a("browserShortcutsNoteForChrome"),"\xA0",d("a",{href:"#",onClick:f=>{f.preventDefault(),Q.tabs.create({url:"chrome://extensions/shortcuts"})},children:a("goSettings")})]}),c=a("confirm"))),d(y4,{note:l,corfirmText:c,fingerCountToToggleTranslagePageWhenTouching:e.generalRule.fingerCountToToggleTranslagePageWhenTouching,fingerCountToToggleTranslationMaskWhenTouching:e.generalRule.fingerCountToToggleTranslationMaskWhenTouching,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:e.generalRule.fingerCountToToggleTranslagePageOnlyTranslationWhenTouching,mouseHoverHoldKey:e.generalRule.mouseHoverHoldKey,shortcuts:Jg.map(f=>({name:f,shortcut:e.shortcuts[f],description:a(`browser.${f}`),disabled:!me()})),onChange:f=>{if(f){let{shortcuts:p,fingerCountToToggleTranslagePageWhenTouching:m,fingerCountToToggleTranslationMaskWhenTouching:g,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:T,mouseHoverHoldKey:w}=f;me()?o(b=>{p=p||[];let S=p.reduce((N,_)=>(N[_.name]=_.shortcut,N),{...b.shortcuts}),D={...b,shortcuts:S};return m!==void 0&&(D.generalRule={...D.generalRule,fingerCountToToggleTranslagePageWhenTouching:m}),g!==void 0&&(D.generalRule={...D.generalRule,fingerCountToToggleTranslationMaskWhenTouching:g}),T!==void 0&&(D.generalRule={...D.generalRule,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:T}),w&&(D.generalRule={...D.generalRule,mouseHoverHoldKey:w}),D}):(m!==void 0||g!==void 0||w||T!==void 0)&&o(b=>{let S={...b};return m!==void 0&&(S.generalRule={...S.generalRule,fingerCountToToggleTranslagePageWhenTouching:m}),g!==void 0&&(S.generalRule={...S.generalRule,fingerCountToToggleTranslationMaskWhenTouching:g}),T!==void 0&&(S.generalRule={...S.generalRule,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:T}),w&&(S.generalRule={...S.generalRule,mouseHoverHoldKey:w}),S}),f&&f.isClose&&n()}else n(),Q.tabs.create({url:"chrome://extensions/shortcuts"})},onClose:n})}h();function C4(){let[e,t,n,a]=ft();En(e,t);let[r,o]=$(null),{t:u}=ue(),[i,s]=$({}),[c,l]=$({});he(()=>{Ge().then(y=>{o(y)}),Q.storage.sync.get(null).then(y=>{s(y),Q.storage.local.get(null).then(E=>{l(E)})})},[e]);let f=y=>{t(E=>({...E,debug:y}))},p=y=>{t(E=>({...E,beta:y}))},m=y=>{t(()=>({...y}))},g=y=>{try{let E=y.target.value,x={...e};if(!E)delete x.rules;else{let v=JSON.parse(E);if(!Array.isArray(v)){Bt("Invalid rules, rules must be an array");return}x.rules=v}m(x),ut(u("saved"))}catch(E){Bt(`Invalid JSON ${E.message}`)}},T=y=>{let E={...e};E.generalRule||(E.generalRule={}),E.generalRule={...E.generalRule,injectedCss:y.target.value||""},m(E),ut(u("saved"))},w=y=>{try{let E=JSON.parse(y.target.value);m(E),ut(u("saved"))}catch(E){Bt(`Invalid JSON ${E.message}`)}},b=y=>{y.preventDefault()},S=y=>{y.preventDefault(),confirm(u("confirmResetConfig"))&&(m(Za()),Aa().catch(E=>{z.error("clean local config error",E)}),Ir().catch(E=>{z.error("clean buildin config error",E)}),lo().catch(E=>{z.error("clean cache error",E)}),ut(u("resetSuccess")))},D=y=>{if(y.preventDefault(),confirm(u("confirmResetConfig"))){let E={...e};delete E.rules,m(E),ut(u("resetThisSuccess"))}},N=y=>{if(y.preventDefault(),confirm(u("confirmResetConfig"))){let E={...e};E.generalRule||(E.generalRule={}),E.generalRule={...E.generalRule},delete E.generalRule.injectedCss,m(E),ut(u("resetThisSuccess"))}},_=`[{ + `);if(l.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(l)}.`)}let m=l[0].translations[0],p=l[0].detectedLanguage;return{text:m.text,from:hh.get(p.language),to:hh.get(m.to)}}h();function Ch(e){let t=e.split(".");if(t.length<=1)throw new Error("invlaid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let a=n.replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(globalThis.atob(a).split("").map(function(i){return"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)}).join("")),o=JSON.parse(r),u=new Date(o.exp*1e3);return{accessToken:e,accessTokenExpiresAt:u.toISOString()}}var dr=null,GT=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],u4=new Map(GT),mu=class extends Te{static langMap=u4;isSupportList=!0;maxTextLength=1800;static async clearState(){dr=null,await zo(Wu)}async translate(t){let{text:n,from:a,to:r}=t;return n?await Eh(n,a,r):{...t}}async init(){if(!dr){dr={};let t=await Uo(Wu);t&&(dr=t)}await vh(dr)}async translateList(t){let{from:n,to:a,text:r}=t,o=u4.get(n)||"auto",u=u4.get(a)||a;o==="auto"&&(o="");let i=await vh(dr),s=[];for(let p of r)s.push({Text:p});let c=JSON.stringify(s),l=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${o}&to=${u}&api-version=3.0&includeSentenceLength=true`,m=await se({url:l,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+i.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin"},body:c,method:"POST"});if(m&&m.length>0&&m[0].translations&&m[0].translations.length>0)return{text:m.map(p=>p.translations[0]?.text||""),from:n,to:a};throw new Error("Microsoft translate error "+JSON.stringify(m))}};async function vh(e){if(e&&e.accessToken&&e.accessTokenExpiresAt){let t=Date.now(),a=new Date(e.accessTokenExpiresAt).getTime();if(a-t>30*1e3)return e;if(a-t>3e3)return wh().catch(r=>{z.error(r)}),e}return wh()}async function wh(){let e=await y3({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET"}),t=Ch(e),n=t.accessTokenExpiresAt,r=new Date(n).getTime()-Date.now();return dr=t,await jo(Wu,t,r-1e3),{accessToken:e,accessTokenExpiresAt:t.accessTokenExpiresAt}}h();var Ah=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],i4=new Map(Ah),VT=new Map(Ah.map(([e,t])=>[t,e])),s4=class extends Te{static langMap=i4;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";appid="";key="";isSupportList=!1;maxTextGroupLength=20;constructor(t,n,a){if(super(t,n,a),!t||!t.appid||!t.key)throw new Error("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim()}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:a}=this,{appid:r,key:o}=this,{text:u,from:i,to:s}=t,c=new URLSearchParams({from:i4.get(i)||"auto",to:i4.get(s)||s,q:u,salt:n,appid:r,sign:La(r+u+n+o)}),l=new URL(a);l.search=c.toString();let m=await se({url:l.toString()});if(m.error_code)throw new Tt("API_SERVER_ERROR",m.error_msg);let{trans_result:p,from:f}=m,g=p.map(({dst:w})=>w);return{from:VT.get(f)||f,to:s,text:g.join(` +`)}}},kh=s4;h();h();var gr=class extends Te{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,a){super(t,n,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let o=await this.checkLang(a,n);if(!o)return{text:n,from:a,to:r};a=o;let u=this.handleRequest(n,a,r),i=await bi(u);return{text:this.handleResponseText(i),from:a,to:r}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let o=await this.checkLang(a,n.join(" "));if(!o)return{text:n,from:a,to:r};a=o;let u=this.handleRequest(n,a,r),i=await bi(u);return{text:this.handleResponseText(i),from:a,to:r}}handleBaseApiServiceConfig(t){let n=t.request.url,a=t.request.headers||{};return a["content-type"]||(a["content-type"]="application/json"),{url:n,retry:t.request.retry||2,method:t.request.method||"POST",headers:a,body:JSON.stringify(t.request.body)}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,a){let r={...this.requestBaseConfig},o=r?.body||"",u=this.apiServiceConfig.keywords||{};r.body=s(o);let i=r.headers||{};return Object.keys(i).forEach(c=>{i[c]=s(i[c])}),r.headers=i,r.url=s(r.url||""),r;function s(c){return c.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",a).replaceAll(/{([a-z:_]+)}/gi,(m,p)=>{let[f,g]=p.split(":"),y=u[f];return g==="random"?YT(y.split(",")):y})}}handleResponseText(t){let n=this.apiServiceConfig.response,a=t,r=n.text.split(".");for(let o of r){if(Array.isArray(a))return a=a.map(u=>u[o]),a;a=a[o]}return a}detectLanguageRemotely(t){return cr.detectLanguageRemotelyByTransmart(t)}};function YT(e){let t=Math.floor(Math.random()*e.length);return e[t]}var l4=class extends gr{constructor(t,n,a){if(!t?.token)throw new Error("token are required");super({...t,isSupportList:!0,langs:[["zh-CN","zh"],["en","en"],["ja","ja"]],keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,a)}},Sh=l4;h();var JT=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],ks=new Map(JT),c4=class extends Te{static langMap=ks;token="ssdj273ksdiwi923bsd9";constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t;if(!ks.get(r))throw new Error(`Unsupported language: ${r}`);if(a==="auto")throw new Error("Unsupported language: auto");let u=n;return{text:(await se({retry:2,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:u,trans_type:`${ks.get(a)||"auto"}2${ks.get(r)}`})})).target,from:a,to:r}}},Dh=c4;h();var Lh=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],d4=new Map(Lh),QT=new Map(Lh.map(([e,t])=>[t,e]));function ZT(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var g4=class extends Te{static langMap=d4;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,a){if(super(t,n,a),!t||!t.appId||!t.appSecret)throw new Error("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,o=XT(32),u=Math.round(new Date().getTime()/1e3),i=this.appId+ZT(n)+o+u+this.appSecret,s=await In(i),c={q:n,appKey:this.appId,salt:o.toString(),from:d4.get(a)||"auto",to:d4.get(r)||r,sign:s,signType:"v3",curtime:u.toString()};this.domain&&this.domain!=="general"&&(c.domain=this.domain),this.vocabId&&(c.vocabId=this.vocabId);let l=new URLSearchParams(c),p=await se({url:"https://openapi.youdao.com/api",method:"POST",body:l.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"}});if(!p.translation)throw new Error(JSON.stringify(p));let f=p.l,[g,y]=f.split("2");return{text:p.translation.join(` +`),from:QT.get(g),to:r}}};function XT(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r[t,e]));var p4=class extends Te{static langMap=m4;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,o={q:n,from:m4.get(a)||"auto",to:m4.get(r)||r},u=new URLSearchParams(o),i=await se({url:"https://aidemo.youdao.com/trans",method:"POST",body:u.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"}});if(i&&i.translation)return{text:i.translation.join(` +`),from:a,to:r};throw new Error("Youdao translation failed: "+JSON.stringify(i))}},Fh=p4;h();var pu=class extends gr{constructor(t,n,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(r=>[r,r]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||Ga,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,a)}};var e5={mock:uo,mock2:uo,custom:pu,google:lr,transmart:cr,deepl:ah,volc:mh,volcAlpha:du,bing:mu,tencent:ru,tenAlpha:ou,baidu:kh,caiyun:Sh,cai:Dh,openl:Es,youdao:Mh,you:Fh,d:oo,dpro:oo,deeplx:gu,niu:rh,azure:oh,openai:ih,chatgpt:su,papago:uh,aliyun:cu},da={};Object.keys(Mn).forEach(e=>{da[e]={...Mn[e],class:e5[e]}});function Zr(e,t){let n=sn;if(da[e]&&da[e].class&&da[e].class.langMap&&da[e].class.langMap.size>0){let a=da[e].class.langMap,r=n.filter(o=>a.get(o));return r.includes(t)||r.unshift("placeholder"),r}else return sn}function _h(e,t,n){let a=da[t],r=n.config.translationServices[t]||{},o=r.provider||"",u=!0,i=[...a.allProps||[]],s=a.providers||[],c=[],l=[];if(i.length>0){i.forEach((p,f)=>{let g=p;if(s.length>0){if(p.providers&&p.providers.length>0&&!p.providers.includes(o))return;p.type=="select"&&(g={...p},g.options=p.options?.filter(y=>y.providers?.includes(o)))}p.optional?l.push(g):c.push(g)});let m=l.concat(c).filter(p=>p.required);if(m.length>0){for(let p of m)if(!r[p.name]){u=!1;break}}}return{...a,id:t,selected:n[e]===t,ok:u,currentProvider:o,providers:s,config:r,props:a.props||[],allProps:i,explicitProps:c||[],optionalProps:l||[]}}async function la(e,t){if(!e.text)return e;let n=await Ia({sentences:[e]},t);if(n.sentences.length>0)return{...e,...n.sentences[0]};throw new Tt("translateFailed","translate failed")}async function zf(e,t){for(let n of e)try{return await la({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n}),n}catch{continue}return null}async function _c(e){let{config:t,translationService:n}=e,a=t.translationGeneralConfig,r=t.translationServices,o=n,u=r[o]||{},i=Xt(e.user),s=new da[o].class(u,a,{translationService:o,userToken:e.user?.token,isPro:i}),c=s.getDefaultRateLimit();c&&(u&&!u.limit&&(u.limit=c.limit),u&&!u.interval&&(u.interval=c.interval)),o==="deepl"&&u&&u.provider==="pro"&&(u.limitForImmersiveDeepl?u.limit=u.limitForImmersiveDeepl:c&&(u.limit=c.limit)),await f3(o,u),await s.init()}async function Ia(e,t,n){if(!e.sentences.length)return{...e};let{config:a,translationService:r,state:o}=t,u=a.translationGeneralConfig,i=a.translationServices,s=r,c=i[s]||{};s==="openai"&&(e.sentences=e.sentences.map(S=>({...S,from:"auto"})));let l=[],m={sentences:Array(e.sentences.length)},p=e.sentences.length,f=-1;if(o.cache)for(let S of e.sentences){f++;let D=s;s==="openl"&&(D=s+"-"+c.codename||Es.DEFAULT_CODENAME);let N=null;try{N=await Bu(Hf({originalText:S.text,from:S.from,to:S.to,service:D}),200)}catch(_){z.warn("query cache DB error, but it's ok",_)}if(N){let _={...S,text:N.translatedText};m.sentences[f]=_,n&&n(null,_,S)}else l.push(S)}else l.push(...e.sentences);let g=l.length;if(p-g>0&&z.debug(`use ${p-g} sentences from cache`),!l.length)return m;let y,w=Xt(t.user);try{y=new da[s].class(c,u,{translationService:s,userToken:t.user?.token,isPro:w}),await y.init()}catch(S){if(n)for(let D of l)n(S,null,D);throw S}let b=await y.multipleTranslate({sentences:l},c,(S,D,N)=>{if(n&&n(S,D,N),!S&&D&&!s.startsWith("mock")&&o.cache){let _=s;s==="openl"&&(_=s+"-"+c.codename||Es.DEFAULT_CODENAME),o.cache&&Bu(qf({translatedText:D.text,from:N.from,to:N.to,detectedFrom:D.from,key:La(N.text),service:_}),3e3).catch(x=>{z.warn("set cache DB error",x)})}});for(let S of b.sentences){let D=m.sentences.findIndex(N=>!N);if(D===-1)throw new Tt("translateFailed","can not match the result");m.sentences[D]=S}return m}h();function Pe(e){return d("div",{class:"nav-left",children:[d("div",{class:"title",children:e.title}),d("div",{class:"description",children:e.description})]})}h();h();function mr(e){let{t}=ue(),n={};e.width&&(n={width:`${e.width}px`});let[a,r]=$(e.value),{field:o,onFinish:u}=e,i=o.name;o.label&&(i=o.label),o.labelKey&&(i=t(o.labelKey));let s={};return o.descriptionLink1&&(s[1]=o.descriptionLink1),d("div",{class:"mt-3",children:[d("label",{for:e.field.name,class:"mb-[var(--spacing)]",children:[i,"\uFF1A"]}),e.field.type==="textarea"?d(Fe,{children:[d("textarea",{style:n,autoComplete:"off",required:e.field.required,placeholder:e.field.placeholder||e.field.name,class:"input",rows:e.rows,value:Array.isArray(a)?a.join(","):a,type:e.type,onInput:c=>{let l=c.target.value,m=Array.isArray(a)?l.split(","):l;r(m),e.onChange(m)},onChange:()=>{u&&u()}}),e.field.descriptionKey?d("small",{dangerouslySetInnerHTML:{__html:t(e.field.descriptionKey,s)}}):null]}):d(Fe,{children:[d("input",{style:n,required:e.field.required,placeholder:e.field.placeholder||e.field.name,value:a,type:e.type,disabled:e.field.disabled||!1,name:e.field.name,autoComplete:"off",onInput:c=>{r(c.target.value),e.onChange(c.target.value)},onChange:()=>{(e.type==="text"||e.type==="password")&&u&&u()}}),e.field.descriptionKey?d("small",{dangerouslySetInnerHTML:{__html:t(e.field.descriptionKey,s)}}):null]})]})}function lo(e){let{t}=ue(),[n,a]=$(!0),[r,o]=$(!1),{config:u,currentProvider:i,onFinish:s,field:c,onChange:l,value:m,isProUser:p}=e;m=m??(c.default||""),he(()=>{c.options&&(c.options.some(y=>y.value===m)||o(!0))},[]);let f=c.name;if(c.label&&(f=c.label),c.labelKey&&(f=t(c.labelKey)),c.type==="select")return d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[f,"\uFF1A"]}),d(Gl,{maxWidth:200,items:c.options.map(g=>({label:`${g.label?t(g.label):g.value}`,value:g.value,selected:m===g.value,onSelected:()=>{l(g.value)}})),onChange:l,isInput:r,value:m})]});if(c.type==="openai-model-select"){let g=[];return u.proOpenaiModels.includes(m)?g=u.proOpenaiModels:g=u.proOpenaiModels.concat(m),d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[f,"\uFF1A"]}),d(Gl,{maxWidth:250,items:g.map(y=>({label:y,value:y,selected:m===y,onSelected:()=>{l(y)}})),onChange:l,isInput:i!=="pro"?r:!1,value:m}),i!=="pro"&&d("label",{for:"customContent",class:"text-sm",onClick:()=>{o(!r)},children:[d("input",{type:"checkbox",id:"customContent",name:"customContent",checked:r}),t("customContent")]})]})}else{if(c.type==="text")return d("div",{children:d(mr,{field:c,value:m,type:c.type,onChange:l,onFinish:s})});if(c.type==="textarea")return d("div",{children:d(mr,{field:c,value:m,type:c.type,onChange:l,onFinish:s})});if(c.type==="jsonarea")return d("div",{children:d(mr,{field:{...c,type:"textarea"},value:m,rows:5,type:c.type,onChange:l,onFinish:s})});if(c.type==="number")return d("div",{children:d(mr,{field:c,value:m,type:c.type,width:196,onChange:l})});if(c.type==="password")return d("div",{children:[d(mr,{field:c,value:m,type:n?c.type:"text",onChange:l,onFinish:s}),d("label",{for:"translate",onClick:()=>{a(!n)},children:[d("input",{type:"checkbox",id:"translate",name:"translate"}),t("show password")]})]});if(c.type==="color"){let g=m,y="";return g||(g="#FFFFFF",y="#FFFFFF"),d("div",{children:d("label",{class:"flex items-center",for:c.name,children:[d("span",{class:"mr-2",children:c.label||c.name}),d("input",{type:"text",id:c.name,class:"border-color-text mr-2",placeholder:y||"",value:m,onInput:w=>{l(w.target.value)}}),d("input",{id:c.name,type:"color",name:c.name,value:g,onInput:w=>{l(w.target.value)}})]})})}else return null}}h();function Ss(e){let{t,lang:n}=ue();return d("details",{role:"list",class:"nav-right",children:[d("summary",{"aria-haspopup":"listbox",children:t("edit")}),d("ul",{role:"listbox",class:"option-list",children:e.options.map((a,r)=>{let o=Mt(a.value,n);return d("li",{children:d("label",{children:[d("input",{type:"checkbox",onChange:()=>{e.onToggleAlwaysLangs(!a.checked,a.value)},value:a.value,checked:a.checked}),o]})},"language-"+r)})})]})}h();function za(e){let{t}=ue(),[n,a]=$([]),[r,o]=$(!1);function u(){e.onDeleteUrl(n,e.type),a([]),o(!1)}return e.urls.length?d("div",{children:[e.urls.length>1?d("div",{style:"display:flex;flex-direction:row;align-items:center;padding: 0 24px;margin-bottom:12px;",children:[d("input",{type:"checkbox",id:"checkAll",checked:r,onChange:i=>{if(i.target.checked){let s=e.urls;a(s)}else a([]);o(i.target.checked)}}),d("label",{htmlFor:"checkAll",children:"\u5168\u9009"}),d("div",{style:"flex:1;"}),d("a",{style:{cursor:"pointer"},onClick:u,children:t("delete")})]}):null,d("div",{class:"url-list-item",children:e.urls.map((i,s)=>d("div",{className:"url-list",style:"padding:6px 24px;",children:d("div",{className:"url-left",style:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%"},children:[d("input",{type:"checkbox",checked:n.includes(i),style:"margin-right:12px;",onChange:c=>{c.target.checked?a([...n,i]):a(n.filter(l=>l!==i))}}),d("div",{className:"url-name height-tight",children:i}),d("div",{style:{flex:1}}),d("a",{style:{marginRight:"12px",cursor:"pointer"},onClick:c=>{e.onEditUrl(i,e.type,s)},children:t("edit")}),d("a",{style:{cursor:"pointer"},onClick:c=>{e.onDeleteUrl([i],e.type)},children:t("delete")})]})},"menu"+s))})]}):null}h();function Ha(e){let{t}=ue(),n=zn(null),{toggleModal:a}=e;return d("dialog",{id:"immersive-translate-overlay",onClick:o=>{o.target&&o.target.id==="immersive-translate-overlay"&&a(o)},open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:e.toggleModal}),d("div",{class:"add-text",children:t("add url")}),d("input",{placeholder:"URL",ref:n,value:e.urlValue}),d("blockquote",{children:d("p",{class:"text-sm",children:t("addUrlDescription")})}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"#cancel",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:e.toggleModal,children:t("cancel")})}),d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:o=>{if(o.preventDefault(),n.current&&n.current.value){if(e.onSubmitAddUrl){if(e.urlValue!==""){e.onSubmitAddUrl(n.current.value,e.index,e.type,"edit");return}e.onSubmitAddUrl(n.current.value,e.index,e.type);return}else if(e.onAddInterfaceUrl){if(e.urlValue!==""){e.onAddInterfaceUrl(n.current.value,"edit");return}e.onAddInterfaceUrl(n.current.value)}}},children:t("confirm")})})]})]})})}h();var Qe=yr([]);function Ds(e){let[t,n]=$(null);return he(()=>{Ge().then(a=>{n(a),z.debug("current config",a)})},[]),he(()=>{Ge().then(a=>{n(a)})},[e]),t}function Ls(e){let[t,n]=$(null);return he(()=>{e&&Lt({url:"http://localhost",config:e,state:{cache:!1}}).then(a=>n(a))},[e]),t}var Rh=m3();function Ms(){let e=ht(),[t,n,a,r,o]=e,u=Ds(t),i=Ls(u);return En(t,n),he(()=>()=>{Ue.unbind("esc")},[]),u?d(Qe.Provider,{value:e,children:[d(t5,{}),d(i5,{config:u}),d(n5,{config:u}),d(fu,{config:u,ctx:i,serviceType:"translationService"}),d(a5,{config:u,ctx:i}),d(r5,{config:u,ctx:i}),d(o5,{config:u}),d(u5,{config:u})]}):d("div",{children:"loading"})}function t5(){let[e,t,n,a,r]=Ye(Qe),{t:o}=ue(),u=i=>{i.preventDefault(),confirm(o("confirmResetConfig"))&&(r({...tr(),updatedAt:new Date().toISOString()}),ka().catch(s=>{z.error("clean local config error",s)}),Aa().catch(s=>{z.error("clean buildin config error",s)}),Ua().catch(s=>{z.error("clean cache error",s)}),ut(o("resetSuccess")),setTimeout(()=>{window.location.reload()},500))};return d("div",{class:"nav",children:[d("strong",{class:"text-lg",children:o("general")}),d("a",{class:"text-sm",href:"#",onClick:u,children:o("reset")})]})}function n5({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue();if(!e)return null;let i=c=>{n(l=>({...l,targetLanguage:c}))},s=Zr(e.translationService,e.targetLanguage);return d("div",{class:"nav",children:[d(Pe,{title:u("target"),description:u("translate other languages into specific language")}),d("select",{class:"select",onChange:c=>{c.preventDefault(),i(c.target.value)},children:s.filter(c=>c!=="auto").map((c,l)=>d("option",{value:c,selected:c===e?.targetLanguage,children:Mt(c,e?.interfaceLanguage)},"language"+l))})]})}function fu({config:e,ctx:t,serviceType:n}){let{t:a}=ue(),r=ot(),[o,u]=$(!1),[i,s]=$(""),[c,l]=$(""),[m,p]=$(null),[f,g]=$(null),[y,w,b,S,D]=Ye(Qe),N=T=>{w(v=>({...v,[n]:T}))},_=t&&Ei(t,n)||[],x=fa(()=>{if(e&&t){let{translationServices:T}=e,v=t[n],C=T?.[v];return C?{...C}:{}}return null},[e,t]),E=fa(()=>{if(e&&t){let T=t[n];if(Mn[T])return _h(n,T,t)}return null},[e,t]);return he(()=>{Xe.get(ct,null).then(T=>{T?(p(T),g(Xt(T))):g(!1)}).catch(T=>{g(!1)})},[]),f===null?null:d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:a("service"),description:a("select translation service")}),d("select",{class:"select",onChange:T=>{T.preventDefault(),s(""),l(""),N(T.target.value)},children:_.map((T,v)=>d("option",{value:T.id,selected:T.id===t?.[n],children:`${a("translationServices."+T.id)}${T.ok?"":" "+(!f&&!r&&T.providers&&T.providers.length>0?a("needLoginAction"):a("needActionForOptions"))}`},"service-item="+v))})]}),x&&E&&d("div",{class:"text-right text-sm",children:[c&&d("span",{class:"verified text-green-500 mr-2",children:a("verified")}),i&&d("span",{class:"verified text-red-500 mr-2",children:i}),d("a",{"aria-busy":o,href:"#",class:"secondary",onClick:async T=>{T.preventDefault();try{s(""),l(""),u(!0),await qn(500);let v=E.class;v&&v.clearState&&await v.clearState(),await la({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:E.id}),l("verified")}catch(v){s(v.message)}finally{u(!1)}},children:a("verifyService")})]}),E?.providers?.length||E?.explicitProps?.length||E?.optionalProps?.length?d("article",{children:[E&&E.providers&&E.providers.length>0&&d("fieldset",{children:[d("legend",{class:"mb-4",children:a("chooseProviderLabel")}),E.providers.map((T,v)=>d(nl,{isProUser:f,provider:T,currentProvider:E.currentProvider,onChange:C=>{C.preventDefault();let M=C.target.value;M&&w(k=>{let P=k.translationServices||{},O=P[E.id]||{};return{...k,translationServices:{...P,[E.id]:{...O,provider:M}}}})}}))]}),E?.titleKey?d("div",{class:"description pb-1",dangerouslySetInnerHTML:{__html:Ne.sanitize(a(E?.titleKey),{ALLOWED_ATTR:["href","target"]})}}):null,E?.docUrl&&(!E.providers||E.providers.length===0)?d("div",{children:[d("a",{target:"_blank",class:"pb-1 docUrl",href:E.homepage,children:a(`translationServices.${E.id}`)}),"\xA0",d("span",{class:"description pb-1",children:a("please refer to")}),"\xA0",d("a",{target:"_blank",class:"pb-1 docUrl",href:E.docUrl,children:a("KeyAndConfigurationTutorial")})]}):null,x&&e&&(E?.explicitProps||[]).map((T,v)=>d("div",{class:"mt-2",children:d(lo,{config:e,isProUser:f,currentProvider:E.currentProvider,field:T,value:x[T.name],onChange:C=>{w(R=>{let M=R.translationServices||{},k=M[E.id]||{};return{...R,translationServices:{...M,[E.id]:{...k,[T.name]:C}}}})},onFinish:()=>{ut(a("saved"))}},T.name+v)},"service-item-prop-"+T.name+v)),x&&e&&E&&E.optionalProps&&E.optionalProps.length>0&&d("details",{class:"pt-2 border-none",children:[d("summary",{style:{lineHeight:"1rem"},children:[a("moreOptions"),"\xA0\u{1F449}"]}),d("div",{children:E.optionalProps.map((T,v)=>{let C=x[T.name];return T.name==="apiUrl"&&E?.id==="openai"&&x?.APIKEY?.startsWith("immersiveopenai_")&&(T={...T,disabled:!0},C="https://openai-api.immersivetranslate.com/v1/chat/completions"),T.name=="placeholderDelimiters"&&(T.default=x.placeholderDelimiters||T.default),d("div",{class:"mt-2",children:d(lo,{config:e,field:T,value:C,onChange:R=>{w(M=>{let k=M.translationServices||{},P=k[E.id]||{};return{...M,translationServices:{...k,[E.id]:{...P,[T.name]:R}}}})},onFinish:()=>{ut(a("saved"))}},T.name+v)},"service-item-optional-prop-"+T.name+v)})}),d("a",{href:"#",class:"secondary",onClick:T=>{T.preventDefault(),w(v=>{let C=v.translationServices||{};return{...v,translationServices:{...C,[E.id]:{}}}}),setTimeout(()=>{window.location.reload()},100)},children:a("resetToDefaultSettings")})]})]}):null]})}function a5({config:e,ctx:t}){let{t:n}=ue(),[a,r,o,u,i]=Ye(Qe),s=e?.translationLanguagePattern?.matches||[],{handleTranslationLanguagePatternSelected:c}=Ih(r),l=(p,f)=>{c(p?"matches":void 0,f)},m=fa(()=>!e||!t?[]:Rh.concat("").map(p=>({checked:e.translationLanguagePattern?.matches?.includes(p),value:p})),[e,t]);return d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:n("always languages"),description:n("always translate the following languages")}),d(Ss,{options:m,onToggleAlwaysLangs:l})]}),d("div",{class:"langs-list",children:s.map((p,f)=>d("div",{class:"lang-card",children:[d("div",{id:`${p}`,children:Mt(p,e?.interfaceLanguage)}),d("a",{href:"#close",class:"close",target:"_blank","aria-label":"Close","data-target":`${p}`,onClick:g=>{g.preventDefault(),l(!1,s[f])}})]},"lang-"+f))})]})}function r5({config:e,ctx:t}){let{t:n}=ue(),[a,r,o,u,i]=Ye(Qe),s=e?.translationLanguagePattern.excludeMatches||[],{handleTranslationLanguagePatternSelected:c}=Ih(r),l=(p,f)=>{c(p?"excludeMatches":void 0,f)},m=fa(()=>!e||!t?[]:Rh.map(p=>({checked:e?.translationLanguagePattern?.excludeMatches?.includes(p),value:p})),[e,t]);return d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:n("neverTranslateLanguagesLabel"),description:n("neverTranslateTheFollowingLanguagesDescription")}),d(Ss,{options:m,onToggleAlwaysLangs:l})]}),d("div",{class:"langs-list",children:s.map((p,f)=>d("div",{class:"lang-card",children:[d("div",{id:`${p}`,children:Mt(p,e?.interfaceLanguage)}),d("a",{href:"#close",class:"close",target:"_blank","aria-label":"Close","data-target":`${p}`,onClick:g=>{g.preventDefault(),l(!1,s[f])}})]},"never-lang-"+f))})]})}function o5({config:e}){let{t}=ue(),[n,a,r,o,u]=Ye(Qe),[i,s]=$(""),[c,l]=$(0),[m,p]=$(!1);he(()=>{Ue("esc",()=>{p(!1)})},[]);let f=(w,b,S,D)=>{p(!m),a(N=>{let _=N.translationUrlPattern,x=[],E=[];_&&_.matches&&_.excludeMatches&&(x=_.matches,E=_.excludeMatches);let T=[...x],v=[...E];return D==="edit"&&(T[b]=w),T=bn(w,T),v=at(w,E),{...N,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...N.translationUrlPattern,matches:T,excludeMatches:v}}})},g=(w,b)=>{a(S=>{let D=S.translationUrlPattern,N=[];D&&D.matches&&(N=D.matches);let _=[...N];return w.forEach(x=>{_=at(x,_)}),{...S,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...S.translationUrlPattern,[b]:_}}})},y=(w,b,S)=>{p(!m),s(w),l(S)};return d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:t("always sites"),description:t("always translate the following sites")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:w=>{w.preventDefault(),p(!m)},children:t("add")})}),m?d(Ha,{toggleModal:w=>{w.preventDefault(),p(!m)},onSubmitAddUrl:f,urlValue:i,index:c}):null]}),d(za,{urls:e?.translationUrlPattern.matches||[],type:"matches",onDeleteUrl:g,onEditUrl:y})]})}function u5({config:e}){let{t}=ue(),[n,a,r,o,u]=Ye(Qe),[i,s]=$(!1),[c,l]=$(""),[m,p]=$(0);he(()=>{Ue("esc",()=>{s(!1)})},[]);let f=()=>{s(!i)},g=(b,S,D,N)=>{f(),a(_=>{let x=_.translationUrlPattern,E=[],T=[];x&&x.matches&&x.excludeMatches&&(E=x.matches,T=x.excludeMatches);let v=[...E],C=[...T];return N==="edit"&&(C[S]=b),v=at(b,E),C=bn(b,C),{..._,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{..._.translationUrlPattern,matches:v,excludeMatches:C}}})},y=(b,S)=>{a(D=>{let N=D.translationUrlPattern,_=[];N&&N.excludeMatches&&(_=N.excludeMatches);let x=[..._];return b.forEach(E=>{x=at(E,x)}),{...D,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...D.translationUrlPattern,[S]:x}}})},w=(b,S,D)=>{s(!i),l(b),p(D)};return d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:t("never sites"),description:t("never translate the following sites")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:b=>{b.preventDefault(),f()},children:t("add")})}),i?d(Ha,{toggleModal:b=>{b.preventDefault(),f()},onSubmitAddUrl:g,type:"excludeMatches",urlValue:c,index:m}):null]}),d(za,{urls:e?.translationUrlPattern.excludeMatches||[],type:"excludeMatches",onDeleteUrl:y,onEditUrl:w})]})}function Ih(e){return{handleTranslationLanguagePatternSelected:dn((n,a)=>{if(!n){e(u=>{let i={...u.translationLanguagePattern};return{...u,translationLanguagePattern:{...u.translationLanguagePattern,matches:at(a,i.matches),excludeMatches:at(a,i.excludeMatches)}}});return}let r=n,o=r==="matches"?"excludeMatches":"matches";a&&e(u=>{let i={...u.translationLanguagePattern};return i[r]=bn(a,i[r]),i[o]=at(a,i[o]),{...u,translationLanguagePattern:{...u.translationLanguagePattern,...i}}})},[e])}}var f4=0,h4;async function Oh(e){if(f4>60*10)return null;f4++,Xe.refresh(),await qn(300);let t=await Xe.get(ct,null);z.debug("loopCheckUser",f4,t),t?(clearTimeout(h4),e(t)):h4=setTimeout(Oh.bind(null,e),1500)}function Bh(e){let{user:t}=e,n=ot(),a=t&&t.email==="test@immersivetranslate.com",{t:r}=ue();if(t&&t.subscription&&t.subscription.subscriptionStatus=="active"){let o=t,u=o.subscription,i=d5(u.subscriptionTo),s=u.subscriptionType,c=s.startsWith("onetime_"),l=!c&&u.cancelAtPeriodEnd!="true",m="";return l?m=r("currentPlanDescriptionForContinuous",{plan:`${r(s)}`,endAt:i}):c?m=r("currentPlanDescriptionForOneTime",{plan:r(s),endAt:i,1:"https://immersivetranslate.com/accounts/upgrade?type=year",2:"https://immersivetranslate.com/accounts/upgrade?type=month"}):s==="yearly"||s==="year"?fm(o)?m=r("currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser",{plan:r(s+"ForOnce"),endAt:i,1:"https://immersivetranslate.com/billing"}):m=r("currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin",{plan:r(s+"ForOnce"),endAt:i,1:"https://immersivetranslate.com/accounts/upgrade?type=year"}):m=r("currentPlanDescriptionForAutoRenewCaceling",{plan:r(s+"ForOnce"),endAt:i}),d("span",{class:"info-subtitle",dangerouslySetInnerHTML:{__html:m}})}else return d("span",{class:"info-subtitle",children:n||a?"":r("currentPlanDescriptionForFree")})}function i5({config:e}){let{t}=ue(),n=ot(),[a,r]=$(null),o=!!e.showSponsorOnSafari,[u,i,s,c,l]=Ye(Qe);he(()=>(Xe.get(ct,null).then(g=>{g&&(r(g),s5(g.token).then(y=>{let w=y.data;w.token=g.token,Xe.set(ct,w),r(w)}).catch(y=>{Xe.remove(ct),r(null)}))}),()=>{clearTimeout(h4)}),[]);let m=dn(g=>{g&&g.preventDefault&&g.preventDefault(),a?.token&&l5(a.token).finally(async()=>{await Xe.remove(ct),await qn(200),await Xe.refresh(),r(null)})},[a]),p=dn(async g=>{g&&g.preventDefault&&g.preventDefault(),await Xe.set(_o,!0),c5(em),Oh(y=>{Ji(y.token,u,i),r(y),b4?.close(),window.location.reload()})},[r]),f=a?.avatar||w3;return a?!a.subscription||a.subscription.subscriptionStatus!="active"?d("div",{children:[d("div",{class:"title",children:t("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("span",{class:"info-title",title:a.email,children:a.email}),d(Bh,{user:a})]}),d("div",{class:"ops",children:[d("a",{class:n&&o===!1?"!hidden":"",style:{display:"flex",flexDirection:"row",alignItems:"center",marginRight:"24px"},href:`${Va}?from=${n?"safari":"extension"}`,children:[t("openPremium"),d("img",{width:24,height:24,style:{width:"24px",height:"24px"},src:Qr})]}),d("div",{class:"",children:d("a",{href:`${Dr}?from=${n?"safari":"extension"}`,children:t("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:m,children:t("logout")})})]})]})]}):d("div",{class:"",children:[d("div",{class:"title",children:t("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("div",{className:"flex",children:[d("span",{class:"info-title info-primary",children:a.userName}),d("img",{width:24,height:24,style:{width:"24px",height:"24px",marginLeft:"4px"},src:Qr})]}),d(Bh,{user:a})]}),d("div",{class:"",children:d("a",{href:Dr,children:t("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:m,children:t("logout")})})]})]}):d("div",{class:"header nav",children:[d("img",{src:f}),d("div",{class:"info",children:d("span",{class:"info-subtitle",children:t("nologin")})}),d("a",{class:"py-4",href:"#",onClick:p,children:t(n?"loginForSafari":"login")})]})}var Nh=Bo;function s5(e){return se({responseType:"json",url:Nh+"/v1/user",method:"get",headers:{token:e}})}function l5(e){return se({responseType:"json",url:Nh+"/v1/user/logout",method:"delete",headers:{token:e}})}var b4=null;function c5(e){let a=screen.width/2-230,r=screen.height/2-640/2;return b4=window.open(e,"loginWindow",`toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no,left=${a},top=${r},width=460,height=640,chrome=yes,centerscreen=yes`),b4}function d5(e){let t=new Date(e),n=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),r=String(t.getDate()).padStart(2,"0");return`${n}-${a}-${r}`}h();var Gt={};ni.forEach(e=>{e.labelKey&&(Gt[e.key]=e.labelKey)});function y4(){let e=ht(),[t,n,a,r,o]=e,[u,i]=$(null),{t:s}=ue();if(he(()=>{Ge().then(l=>{Lt({config:l,url:globalThis.location.href}).then(m=>{i(m)})})},[t]),!u)return d("div",{children:"loading"});let c=u.config;return d(Qe.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:s("inputOptions")})}),d(g5,{config:c}),d(m5,{config:c}),d(p5,{config:c}),d(fu,{config:c,ctx:u,serviceType:"inputTranslationService"}),d(f5,{config:c}),d(h5,{config:c}),d(y5,{config:c}),d(b5,{config:c})]})}function g5({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue();return e?d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:u("enableInputTranslation"),description:e.enableInputTranslationWithoutTriggerKey?u("enableInputTranslationDescriptionForNoneKey",{inputTargetLanguage:Mt(e.inputTargetLanguage,e.interfaceLanguage),trailingKey:Gt[e.inputTrailingTriggerKey]?u(Gt[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes}):u("enableInputTranslationDescription",{inputTargetLanguage:Mt(e.inputTargetLanguage,e.interfaceLanguage),startingKey:Gt[e.inputStartingTriggerKey]?u(Gt[e.inputStartingTriggerKey]):e.inputStartingTriggerKey,trailingKey:Gt[e.inputTrailingTriggerKey]?u(Gt[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes})}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:i=>{let s=i.target.checked;n(c=>({...c,enableInputTranslation:!!s}))},checked:e.enableInputTranslation})})]}),d("details",{class:"mt-3",children:[d("summary",{children:[u("clickToSeeQuickDemo")," \u{1F447}\u{1F447}"]}),d("video",{controls:!0,src:"https://s.immersivetranslate.com/videos/immpersive-translate-input-translation-demo-202307044.mp4"})]})]}):null}function m5({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue(),i=c=>{n(l=>({...l,inputTargetLanguage:c}))};if(!e)return null;let s=Zr(e.translationService,e.targetLanguage);return d("div",{class:"nav",children:[d(Pe,{title:u("inputTargetLanguage"),description:e.enableInputTranslationWithoutTriggerKey?u("inputTargetLanguageDescriptionForNoneKey"):u("inputTargetLanguageDescription",{startingKey:Gt[e.inputStartingTriggerKey]?u(Gt[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:c=>{c.preventDefault(),i(c.target.value)},children:s.filter(c=>c!=="auto").map((c,l)=>d("option",{value:c,selected:c===e.inputTargetLanguage,children:Mt(c,e.interfaceLanguage)},"language"+l))})]})}function p5({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue();return e?d("div",{class:"nav",children:[d(Pe,{title:u("enableInputTranslationWithoutTriggerKeyTitle",{trailingKey:Gt[e.inputTrailingTriggerKey]?u(Gt[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTargetLanguage:Mt(e.inputTargetLanguage,e.interfaceLanguage)}),description:""}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:i=>{let s=i.target.checked;n(c=>({...c,enableInputTranslationWithoutTriggerKey:!!s}))},checked:e.enableInputTranslationWithoutTriggerKey})})]}):null}function f5({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue(),i=s=>{n(c=>({...c,inputStartingTriggerKey:s}))};return e?d("div",{class:"nav",children:[d(Pe,{title:u("inputStartingTriggerKeyTitle"),description:e.inputStartingTriggerKey==="none"?u("inputStartingTriggerKeyDescriptionForNoneKey"):u("inputStartingTriggerKeyDescription",{startingKey:Gt[e.inputStartingTriggerKey]?u(Gt[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:s=>{s.preventDefault(),i(s.target.value)},children:ni.filter(s=>s.skipForStarting!==!0).map((s,c)=>d("option",{value:s.key,selected:s.key===e.inputStartingTriggerKey,children:s.labelKey?u(s.labelKey):s.key},"startingkey-"+c))})]}):null}function h5({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue(),i=s=>{n(c=>({...c,inputTrailingTriggerKey:s}))};return e?d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:u("inputTrailingTriggerKeyTitle"),description:u("inputTrailingTriggerKeyDescription",{trailingKey:Gt[e.inputTrailingTriggerKey]?u(Gt[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey})}),d("select",{class:"select",onChange:s=>{s.preventDefault(),i(s.target.value)},children:ni.filter(s=>s.skipForTrailing!==!0).map((s,c)=>d("option",{value:s.key,selected:s.key===e.inputTrailingTriggerKey,children:s.labelKey?u(s.labelKey):s.key},"startingkey-"+c))})]}),d("blockquote",{class:"text-sm",dangerouslySetInnerHTML:{__html:u("inputHelperInfo",{1:"https://immersivetranslate.com/docs/input/"})}})]}):null}function b5({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue(),[i,s]=$(!1),c=b=>{s(!i)},[l,m]=$(0),[p,f]=$(""),g=(b,S,D,N)=>{c(D),n(_=>{let x=_.inputTranslationUrlPattern,E=[],T=[];x&&x.matches&&x.excludeMatches&&(E=x.matches,T=x.excludeMatches);let v=[...E],C=[...T];return N==="edit"&&(D==="matches"?v[S]=b:C[S]=b),D==="matches"?(v=bn(b,v),C=at(b,T)):(v=at(b,E),C=bn(b,C)),{..._,inputTranslationUrlPattern:{..._.inputTranslationUrlPattern,matches:v,excludeMatches:C}}})},y=(b,S)=>{n(D=>{let N=D.inputTranslationUrlPattern,_=[];S==="matches"?N&&N.matches&&(_=N.matches):N&&N.excludeMatches&&(_=N.excludeMatches);let x=[..._];return b.forEach(E=>{x=at(E,x)}),{...D,inputTranslationUrlPattern:{...D.inputTranslationUrlPattern,[S]:x}}})},w=(b,S,D)=>{c(S),f(b),m(D)};return e?d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:u("inputTranslationBlockUrlsTitle"),description:u("inputTranslationBlockUrlsDescription")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:b=>{b.preventDefault(),c("excludeMatches")},children:u("add")})}),i?d(Ha,{toggleModal:b=>{b.preventDefault(),c("excludeMatches")},onSubmitAddUrl:g,type:"excludeMatches",urlValue:p,index:l}):null]}),d(za,{urls:e.inputTranslationUrlPattern.excludeMatches,type:"excludeMatches",onDeleteUrl:y,onEditUrl:w})]}):null}function y5({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue();if(!e)return null;let i=()=>fn().any?e.inputTrailingMobileTriggerKeyTimeout:e.inputTrailingTriggerKeyTimeout,s=c=>{n(l=>fn().any?{...l,inputTrailingMobileTriggerKeyTimeout:c}:{...l,inputTrailingTriggerKeyTimeout:c})};return d("nav",{children:[d(Pe,{title:u("inputTrailingTriggerKeyTimeout"),description:u("inputTrailingTriggerKeyTimeoutDescription")}),d("div",{class:"option-input",children:d("input",{type:"number",value:i(),onChange:c=>{c.target&&s(Number(c.target.value))}})})]})}h();h();function x4(e){let{t}=ue(),{corfirmText:n,fingerCountToToggleTranslagePageWhenTouching:a,fingerCountToToggleTranslationMaskWhenTouching:r,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:o,onChange:u,onClose:i,shortcuts:s,mouseHoverHoldKey:c}=e,l={mouseHoverHoldKey:zn(null)},m=zn(null);for(let f=0;f{f.target&&f.target.id==="immersive-translate-overlay"&&i()};return he(()=>{},[]),d("dialog",{id:"immersive-translate-overlay",onClick:p,open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:f=>{f.preventDefault(),i()}}),s.map((f,g)=>{let{name:y,description:w,shortcut:b}=f;return d("div",{class:"flex justify-between items-center",children:[d("label",{class:"mb-2 text-sm",for:y,children:[w,":"]}),d("input",{type:"text",class:"!w-36",ref:l[y],disabled:f.disabled,id:y,name:y,value:b})]},`key-${g}`)}),ua()&&d("div",{class:"flex justify-between items-center",children:[d("label",{for:"switch",class:"text-sm mb-2",children:t("mouseHoverHoldKey")}),d("input",{type:"text",class:"!w-36",placeholder:t("mouseHoverShortcutPlaceholder"),ref:l.mouseHoverHoldKey,id:"mouseHoverHoldKey",name:"mouseHoverHoldKey",value:c})]}),Or()&&d("div",{class:"flex justify-between items-center",children:[d("label",{for:"switch",class:"text-sm mb-2",children:t("toggleTranslatePageWhenThreeFingersOnTheScreen")}),d("select",{class:"select !w-36",ref:m,onChange:f=>{f.preventDefault();let g=f.target.value,y={fingerCountToToggleTranslagePageWhenTouching:parseInt(g)};u(y)},children:[0,2,3,4,5].map((f,g)=>d("option",{value:f,selected:f===a,children:`${t("fingers."+f)}`},"finger-"+g))})]}),Or()&&d("div",{class:"mt-2 flex justify-between items-center",children:[d("label",{for:"switch",class:"text-sm mb-2",children:t("fingerCountToToggleTranslagePageOnlyTranslationWhenTouching")}),d("select",{class:"select !w-36",onChange:f=>{f.preventDefault();let g=f.target.value,y={fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:parseInt(g)};u(y)},children:[0,2,3,4,5].map((f,g)=>d("option",{value:f,selected:f===o,children:`${t("fingers."+f)}`},"finger-"+g))})]}),Or()&&d("div",{class:"mt-2 flex justify-between items-center",children:[d("label",{for:"switch",class:"text-sm mb-2",children:t("toggleTranslationMaskWhenThreeFingersOnTheScreen")}),d("select",{class:"select !w-36",onChange:f=>{f.preventDefault();let g=f.target.value,y={fingerCountToToggleTranslationMaskWhenTouching:parseInt(g)};u(y)},children:[0,2,3,4,5].map((f,g)=>d("option",{value:f,selected:f===r,children:`${t("fingers."+f)}`},"finger-"+g))})]}),e.note&&d(e.note,{}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"#cancel",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:f=>{f.preventDefault(),i()},children:t("cancel")})}),n&&d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:f=>{f.preventDefault();let g=[];for(let w=0;w{let t=e.translationTheme;return!e.translationThemePatterns[t]||!e.translationThemePatterns[t].matches?[]:[...e.translationThemePatterns[t].matches]};function T4(e){let t=[];return Fo[e]&&(t=t.concat(Fo[e])),t.push({name:"textColor",type:"color",required:!1}),t.push({name:"zoom",type:"number",default:100,required:!1}),t}function E4(){let e=ht(),[t,n,a,r,o]=e;En(t,n);let[u,i]=$(!1),[s,c]=$(!1),[l,m]=$(0),[p,f]=$(null),{t:g,setLang:y}=ue(),[w,b]=$("");he(()=>(Ue("esc",()=>{i(!1),c(!1)}),()=>{Ue.unbind("esc")}),[]),he(()=>{Ge().then(T=>{Lt({config:T,url:globalThis.location.href}).then(v=>{f(v)})})},[t]);let S=T=>{n(v=>{let C={matches:[],excludeMatches:[]};return v&&v.translationThemePatterns&&v.translationThemePatterns[T]&&(C=v.translationThemePatterns[T]),Br(document,T,C),{...v,translationTheme:T}})},D=T=>{n(v=>({...v,interfaceLanguage:T}))},N=(T,v,C)=>{i(!u),n(R=>{let M=R.translationThemePatterns||{},k=M[v]||{},P=k.matches||[],O=[...P];return C==="edit"&&(O=at(w,P)),O=bn(T,O),{...R,translationThemePatterns:{...M,[v]:{...k,matches:O}}}})},_=(T,v)=>{n(C=>{let R=C.translationThemePatterns||{},M=R[v]||{},P=[...M.matches||[]];return T.forEach(O=>{P=at(O,P)}),{...C,translationThemePatterns:{...R,[v]:{...M,matches:P}}}})},x=(T,v,C)=>{i(!u),b(T),m(C)};if(!p)return d("div",{children:"loading"});let E=p.config;return d(Qe.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:g("interface")})}),d("div",{class:"nav",children:[d(Pe,{title:g("interface language")}),d("select",{class:"select",onChange:T=>{y(T.target.value),D(T.target.value),me()||setTimeout(()=>{Ps()},200)},children:T5.map((T,v)=>d("option",{value:T,selected:T===E.interfaceLanguage,children:Mt(T,E.interfaceLanguage,!0)},"locale"+v))})]}),d("div",{class:"nav",children:[d(Pe,{title:g("keyboard shortcuts")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:T=>{T.preventDefault(),c(!s)},children:g("modify")})})]}),d("div",{class:"nav",children:[d(Pe,{title:g("enableLineBreak"),description:g("enableLineBreakDescription")}),d("label",{for:"switch",children:d("input",{type:"checkbox",onChange:T=>{let v=T.target.checked;n(C=>{let R=C.generalRule||{};return{...C,generalRule:{...R,lineBreakMaxTextCount:v?280:0}}})},checked:p.rule.lineBreakMaxTextCount>0,id:"switch",name:"switch",role:"switch"})})]}),p.rule.lineBreakMaxTextCount>0&&d("div",{class:"nav",children:[d(Pe,{title:g("lineBreakMaxTextCount")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:T=>{let v=T.target.value;n(C=>{let R=C.generalRule||{};return{...C,generalRule:{...R,lineBreakMaxTextCount:parseInt(v)}}})},name:"count",value:p.rule.lineBreakMaxTextCount,placeholder:"Text Length",required:!0})})]}),(fn().any||me())&&d("div",{class:"nav",children:[d(Pe,{title:g("enableUserscriptPagePopup"),description:g("enableUserscriptPagePopupDescription",{touch:g("fingers."+E.generalRule.fingerCountToToggleTranslagePageWhenTouching)})}),d("label",{for:"switch",children:d("input",{type:"checkbox",onChange:T=>{let v=T.target.checked;n(C=>{let R=C.generalRule||{};return{...C,generalRule:{...R,isShowUserscriptPagePopup:v}}})},checked:p.rule.isShowUserscriptPagePopup,id:"switch",name:"switch",role:"switch"})})]}),d("div",{class:"nav",children:[d(Pe,{title:g("translation display"),description:g("select diplay style")}),d("select",{class:"select",onChange:T=>{S(T.target.value)},children:H0.map((T,v)=>d("option",{value:T,selected:T===E.translationTheme,children:g(`translationTheme.${T}`)},"theme"+v))})]}),d("div",{class:"pt-2 text-sm",children:d("p",{children:[Xg,d("div",{class:"pt-2"}),d("font",{class:qr(E.translationTheme,!1,[],!1).join(" "),children:d("font",{class:Wr(E.translationTheme).join(" "),children:q0})}),E.translationTheme&&T4(E.translationTheme).length>0?d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:g("customTheme")}),d("div",{class:"flex flex-col items-end",children:[T4(E.translationTheme).map((T,v)=>{T.label=g(`customThemeLabel.${T.name}`);let C=E.translationThemePatterns||{},R=E.translationTheme,M=C[R]||{},k=`theme-${R}-${T.name}`,P=Uh(k)||void 0,O=M[T.name]||P;return d(lo,{config:E,field:T,value:O,onChange:j=>{n(B=>{let A=B.translationThemePatterns||{},U={...A[E.translationTheme]||{},[T.name]:j},K={...B,translationThemePatterns:{...A,[E.translationTheme]:U}};return Br(document,E.translationTheme,U),K})}},"theme-prop"+v)}),d("a",{href:"#",class:"text-sm secondary",onClick:T=>{T.preventDefault(),n(v=>{let C=v.translationThemePatterns||{},R={...C[E.translationTheme]};T4(E.translationTheme).forEach(k=>{delete R[k.name]});let M={...v,translationThemePatterns:{...C,[E.translationTheme]:R}};return Br(document,E.translationTheme,{matches:[],excludeMatches:[]},!0),M})},children:g("resetToDefaultColor")})]})]}):null,d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:g("previewAllThemes")}),H0.map((T,v)=>d("div",{class:"pt-2",children:d("label",{children:[d("div",{class:"flex justify-between",children:d("div",{children:[d("input",{type:"radio",name:"theme",value:T,checked:T===E.translationTheme,onChange:C=>{S(C.target.value)}}),g(`translationTheme.${T}`)]})}),d("p",{children:d("font",{class:qr(T,!1,[],!1).join(" "),children:d("font",{class:Wr(T).join(" "),children:q0})})})]})},"theme-index-"+v))]})]})}),d("div",{class:"nav",children:[d(Pe,{title:"",description:g("useAboveStyleForTheseSites",{theme:g(`translationTheme.${E.translationTheme}`)})}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:T=>{T.preventDefault(),i(!u)},children:g("add")})})]}),u?d(Ha,{toggleModal:T=>{T.preventDefault(),i(!u)},onAddInterfaceUrl:(T,v)=>{N(T,E.translationTheme,v)},urlValue:w,index:l}):null,d(za,{urls:E5(E),type:"matches",onDeleteUrl:T=>{_(T,E.translationTheme)},onEditUrl:x}),d(C4,{config:E,visible:s,onClose:()=>c(!1)})]})}function C4({config:e,visible:t,onClose:n}){let{t:a}=ue(),[r,o,u,i,s]=Ye(Qe);if(!t||!e)return null;let c=a("confirm"),l=()=>d("blockquote",{class:"text-sm",children:[a("browserShortcutsSucks")," ",d("kbd",{children:"Ctrl+A"}),"\xA0",d("kbd",{children:"Alt+B"}),"\xA0",d("kbd",{children:"Command+C"}),"\xA0 ",d("kbd",{children:"Ctrl+Shift+D"})," "]});return me()||(Ja()?(l=()=>d("blockquote",{class:"text-sm",children:[a("browserShortcutsNoteForFirefox")," ",d("a",{target:"_blank",href:"https://support.mozilla.org/zh-CN/kb/%E7%AE%A1%E7%90%86Firefox%E7%9A%84%E6%89%A9%E5%B1%95%E5%BF%AB%E6%8D%B7%E6%96%B9%E5%BC%8F",children:[a("help"),"?"]}),d("br",{}),d("br",{}),a("browserShortcutsSucks")," ",d("kbd",{children:"Ctrl+A"}),"\xA0",d("kbd",{children:"Alt+B"}),"\xA0",d("kbd",{children:"Cmd+C"}),"\xA0 ",d("kbd",{children:"Ctrl"}),"\xA0",d("kbd",{children:"D"})," "]}),c=a("confirm")):(l=()=>d("blockquote",{class:"text-sm",children:[a("browserShortcutsNoteForChrome"),"\xA0",d("a",{href:"#",onClick:m=>{m.preventDefault(),X.tabs.create({url:"chrome://extensions/shortcuts"})},children:a("goSettings")})]}),c=a("confirm"))),d(x4,{note:l,corfirmText:c,fingerCountToToggleTranslagePageWhenTouching:e.generalRule.fingerCountToToggleTranslagePageWhenTouching,fingerCountToToggleTranslationMaskWhenTouching:e.generalRule.fingerCountToToggleTranslationMaskWhenTouching,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:e.generalRule.fingerCountToToggleTranslagePageOnlyTranslationWhenTouching,mouseHoverHoldKey:e.generalRule.mouseHoverHoldKey,shortcuts:Qg.map(m=>({name:m,shortcut:e.shortcuts[m],description:a(`browser.${m}`),disabled:!me()})),onChange:m=>{if(m){let{shortcuts:p,fingerCountToToggleTranslagePageWhenTouching:f,fingerCountToToggleTranslationMaskWhenTouching:g,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:y,mouseHoverHoldKey:w}=m;me()?o(b=>{p=p||[];let S=p.reduce((N,_)=>(N[_.name]=_.shortcut,N),{...b.shortcuts}),D={...b,shortcuts:S};return f!==void 0&&(D.generalRule={...D.generalRule,fingerCountToToggleTranslagePageWhenTouching:f}),g!==void 0&&(D.generalRule={...D.generalRule,fingerCountToToggleTranslationMaskWhenTouching:g}),y!==void 0&&(D.generalRule={...D.generalRule,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:y}),w&&(D.generalRule={...D.generalRule,mouseHoverHoldKey:w}),D}):(f!==void 0||g!==void 0||w||y!==void 0)&&o(b=>{let S={...b};return f!==void 0&&(S.generalRule={...S.generalRule,fingerCountToToggleTranslagePageWhenTouching:f}),g!==void 0&&(S.generalRule={...S.generalRule,fingerCountToToggleTranslationMaskWhenTouching:g}),y!==void 0&&(S.generalRule={...S.generalRule,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:y}),w&&(S.generalRule={...S.generalRule,mouseHoverHoldKey:w}),S}),m&&m.isClose&&n()}else n(),X.tabs.create({url:"chrome://extensions/shortcuts"})},onClose:n})}h();function v4(){let[e,t,n,a]=ht();En(e,t);let[r,o]=$(null),{t:u}=ue(),[i,s]=$({}),[c,l]=$({});he(()=>{Ge().then(x=>{o(x)}),X.storage.sync.get(null).then(x=>{s(x),X.storage.local.get(null).then(E=>{l(E)})})},[e]);let m=x=>{t(E=>({...E,debug:x}))},p=x=>{t(E=>({...E,beta:x}))},f=x=>{t(()=>({...x}))},g=x=>{try{let E=x.target.value,T={...e};if(!E)delete T.rules;else{let v=JSON.parse(E);if(!Array.isArray(v)){Bt("Invalid rules, rules must be an array");return}T.rules=v}f(T),ut(u("saved"))}catch(E){Bt(`Invalid JSON ${E.message}`)}},y=x=>{let E={...e};E.generalRule||(E.generalRule={}),E.generalRule={...E.generalRule,injectedCss:x.target.value||""},f(E),ut(u("saved"))},w=x=>{try{let E=JSON.parse(x.target.value);f(E),ut(u("saved"))}catch(E){Bt(`Invalid JSON ${E.message}`)}},b=x=>{x.preventDefault()},S=x=>{x.preventDefault(),confirm(u("confirmResetConfig"))&&(f(tr()),ka().catch(E=>{z.error("clean local config error",E)}),Aa().catch(E=>{z.error("clean buildin config error",E)}),Ua().catch(E=>{z.error("clean cache error",E)}),ut(u("resetSuccess")))},D=x=>{if(x.preventDefault(),confirm(u("confirmResetConfig"))){let E={...e};delete E.rules,f(E),ut(u("resetThisSuccess"))}},N=x=>{if(x.preventDefault(),confirm(u("confirmResetConfig"))){let E={...e};E.generalRule||(E.generalRule={}),E.generalRule={...E.generalRule},delete E.generalRule.injectedCss,f(E),ut(u("resetThisSuccess"))}},_=`[{ "matches": "www.google.com", "selectors": [".title"] }, { "matches": "*.twitter.com", "selectors": [".text"], "excludeSelectors": ["footer"] -}]`;return!r||!e?d("div",{children:"loading"}):d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("developer")})}),d("div",{dangerouslySetInnerHTML:{__html:u("developerDescription",{1:"https://immersivetranslate.com/docs/advanced/"})},class:"secondary text-xs text-gray-500 mb-4"}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"cache",name:"cache",role:"switch",onChange:()=>{f(!r.debug)},checked:r.debug}),u("toggleDebug")]})}),d("fieldset",{class:"mt-2",children:[d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"beta",name:"beta",role:"switch",onChange:()=>{p(!r.beta)},checked:!!r.beta}),u("toggleBeta")]}),d("small",{class:"text-gray-500",dangerouslySetInnerHTML:{__html:u("betaDescription",{1:ti})}})]}),d("details",{class:"py-2",children:[d("summary",{children:"Edit User Rules"}),d("textarea",{class:"user-rule",rows:10,onChange:g,placeholder:_,spellcheck:!1,value:e.rules?JSON.stringify(e.rules||[],null,2):""}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:b,role:"button",children:u("save")}),d("a",{target:"_blank",class:"secondary text-sm mr-3",href:"https://immersivetranslate.com/docs/advanced/",children:[u("help"),"?"]}),d("a",{href:"#",onClick:D,class:"text-sm secondary mr-2",children:u("reset")})]})]}),d("details",{class:"py-2",children:[d("summary",{children:"Edit Injected CSS"}),d("textarea",{rows:10,onChange:T,spellcheck:!1,placeholder:".title { color: red }",value:e.generalRule&&e.generalRule.injectedCss?e.generalRule.injectedCss:""}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:b,role:"button",children:u("save")}),d("a",{class:"secondary text-sm mr-3",target:"_blank",href:"https://immersivetranslate.com/docs/advanced/",children:[u("help"),"?"]}),d("a",{href:"#",onClick:N,class:"text-sm secondary mr-2",children:u("reset")})]})]}),d("details",{class:"py-2",children:[d("summary",{children:"Edit Full User Config"}),d("textarea",{rows:10,onChange:w,spellcheck:!1,value:JSON.stringify(e,null,2)}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:b,role:"button",children:u("save")}),d("a",{class:"secondary text-sm mr-3",target:"_blank",href:"https://immersivetranslate.com/docs/advanced/",children:[u("help"),"?"]}),d("a",{href:"#",onClick:S,class:"text-sm secondary mr-2",children:u("reset")})]})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the final config"}),d("pre",{children:d("code",{children:JSON.stringify(r,null,2)})})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the sync storage object"}),d("pre",{children:d("code",{children:JSON.stringify(i,null,2)})})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the local storage object"}),d("pre",{children:d("code",{children:JSON.stringify(c,null,2)})})]})]})}h();h();var E5="buildinConfig",C5={},Uh=_m(E5,C5);var v5=({date:e})=>{let{t}=ue();return d("p",{class:"text-sm",children:[t("The local rules are up to date")," ",new Date(e).toLocaleString()]})},w5=({date:e})=>{let{t}=ue();return d("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},A5=()=>{let{t:e}=ue();return d("p",{class:"text-sm","aria-busy":!0,children:[e("Checking for updates"),"..."]})},k5=()=>{let{t:e}=ue();return d("p",{class:"text-sm",children:[e("Rules are being synchronized"),"..."]})},S5=({minVersion:e})=>{let{t}=ue();return d("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},D5=({latestVersion:e})=>{let{t}=ue();return d("p",{class:"text-sm",children:[t("foundNewVersion"),":"," ",d("a",{href:"https://github.com/immersive-translate/immersive-translate/releases",children:e})]})},L5=()=>{let{t:e}=ue();return d("p",{class:"text-sm",children:e("theLocalExtensionIsUpToUpdate")})},M5=({message:e,handleSyncing:t,date:n})=>{let{t:a}=ue();return d("p",{class:"text-sm",children:[a("failToSyncRules")," ",d("a",{onClick:t,children:a("retry")}),d("br",{}),a("failedReason"),"\uFF1A",e,d("br",{}),a("currentRuleVersion"),"\uFF1A",n]})};function v4(){let[e,t]=$(null),{t:n}=ue(),[a,r]=$(n("calculating")+"..."),[o,u]=$(null),[i,s]=Uh(),[c,l]=$(null),[f,p]=$(""),[m,g]=$(!1),[T,w]=$(!1),[b,S]=$(null),[D,N]=$(null),[_,y,E,x]=ft();En(_,y);let[v,C]=$(!1),R=hi(),M=!0;ot()&&b&&(M=b.generalRule.showSponsorOnSafari);let k=async()=>{p("");let L=o;if(o===null)try{let U=await Pn({url:Ea});U?(u(U),L=U,g(!0)):(p(n("unknownError")),l(null))}catch(U){l(null),p(U.message);return}L!==null?(s(L),l(!1),t(L.buildinConfigUpdatedAt)):(p(n("canNotFetchRemoteRule")),l(null))};he(()=>{Ge().then(L=>{let U=L.buildinConfigUpdatedAt;S(L);let K=new Date(U);t(U),Pn({url:Ea}).then(H=>{let V=H.minVersion,q=R;u(H);let oe=H.latestVersion;if(oe&&(Oa(q,oe)?N(!0):N(!1)),Oa(q,V)){let Z=H.buildinConfigUpdatedAt;new Date(Z)>K?(l(!0),k()):l(!1)}else w(!0),l(null)}).catch(H=>{l(null),p(H.message)})}),Fh().then(L=>{r(L)})},[]),he(()=>{Ge().then(L=>{S(L)})},[_,e]);let P=L=>{y(U=>{let K=!U.alpha;return K?ut(n("enableAlphaSuccess")):ut(n("disableAlphaSuccess")),{...U,alpha:K}})},O=L=>{L.preventDefault(),L.stopPropagation(),C(!0),Ir().catch(U=>{z.error("clear build config failed:",U)}),Aa().catch(U=>{z.error("clear local config failed:",U)}),lo().then(()=>{C(!1),ut("\u6E05\u7406\u6210\u529F"),r("0 B")}).catch(U=>{C(!1),Bt(U.message)})},j=L=>{y(U=>({...U,cache:L}))},B=L=>{y(U=>({...U,enabled:L}))},A="aboutIntro";return M||(A="aboutIntroWithoutSponsor"),b?d("div",{class:"text-sm",children:[d("div",{class:"nav",children:d("strong",{onClick:nu(7)(P),class:"text-lg immersive-translate-no-select",children:n("about")})}),d("p",{onClick:nu(7)(P),class:"mb-2 immersive-translate-no-select",children:["V",R,wg()?"(Beta)":""]}),D===!1&&d(D5,{latestVersion:o?.latestVersion}),D===!0&&d(L5,{}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onChange:()=>{B(!b.enabled)},checked:b.enabled}),n("enabledExtension")]})}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"cache",name:"cache",role:"switch",onChange:()=>{j(!b.cache)},checked:b.cache}),n("allowCacheTranslations")]})}),!me()&&a&&d("p",{class:"text-sm",children:[n("cacheSize"),"\xA0",a," \xA0 ",v?d("span",{children:[n("cleaning"),"..."]}):d("a",{class:"text-sm",href:"#",onClick:O,children:n("cleanCache")})]}),f?d(M5,{handleSyncing:k,message:f,date:e||""}):T?d(S5,{minVersion:o.minVersion}):c===null?d(A5,{}):c===!0?d(k5,{}):m?d(w5,{date:e}):d(v5,{date:e}),d("blockquote",{class:"text-sm",dangerouslySetInnerHTML:{__html:n(A,{1:"https://immersivetranslate.com/docs/thanks/",2:"https://immersivetranslate.com/docs/donate/",3:"twitter.com/immersivetran",4:"https://t.me/immersivetranslate",5:"https://immersivetranslate.substack.com",6:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=about_page",7:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=about_page",8:"mailto:support@immersivetranslate.com"})}}),d("div",{class:"flex items-center justify-center",children:[d("div",{class:"flex flex-col items-center",children:[d("img",{width:"120",src:"https://immersivetranslate.com/assets/wechat-qrcode.jpg",alt:"wechat contact"}),d("div",{class:"text-sm",children:n("wechatPublicAccount")})]}),d("div",{class:"w-16"}),d("div",{class:"flex flex-col items-center",children:[d("img",{width:"125",src:"https://immersivetranslate.com/assets/wechat-contact.png",alt:"qq channel contact"}),d("div",{class:"text-sm text-center",children:n("wechatCommunities")})]})]}),d("ul",{class:"text-sm ml-4",children:[d("li",{children:d("a",{class:"secondary",href:"https://github.com/immersive-translate/immersive-translate/issues",children:n("feedback")})}),d("li",{children:d("a",{class:"secondary",href:ti,children:n("joinTelegramGroup")})}),d("li",{children:d("a",{class:"secondary",href:"https://immersivetranslate.com/docs/CHANGELOG/",children:n("changelog")})}),d("li",{children:d("a",{class:"secondary",href:"https://immersivetranslate.com/",children:n("projectHomepage")})}),d("li",{children:d("a",{class:"secondary",href:"https://github.com/immersive-translate/immersive-translate/",children:n("Github")})}),M&&!1]}),d("div",{class:"flex justify-center",children:d("iframe",{src:"https://immersivetranslate.substack.com/embed",width:"480",height:"320",style:"border:1px solid #EEE; background:white;",frameBorder:0,scrolling:"no"})})]}):null}h();function w4(){let e=Ei(),[t,n,a,r]=ft(),[o,u]=$(null);En(t,n);let{t:i}=ue();he(()=>{Ge().then(f=>{Lt({config:f,url:globalThis.location.href}).then(p=>{u(p)})})},[t]);let s=f=>{n(p=>({...p,translationTheme:f}))},c=f=>{n(p=>({...p,interfaceLanguage:f}))};if(!o)return d("div",{children:"loading"});let l=o.config;return d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:i("advanced")})}),d("div",{class:"nav",children:[d(Pe,{title:i("translate all areas of the page"),description:i("translationAreaDescription")}),d("label",{for:"translationAreaDescription",children:d("input",{type:"checkbox",id:"translationAreaDescription",name:"switch",role:"switch",onChange:f=>{let p=f.target.checked;n(m=>({...m,translationArea:p?"body":"main"}))},checked:l.translationArea==="body"})})]}),d("div",{class:"nav",children:[d(Pe,{title:i("translate to the bottom of the page"),description:i("translateToThePageEndImmediatelyDescription")}),d("label",{for:"translateToThePageEndImmediatelyDescription",children:d("input",{type:"checkbox",onChange:f=>{let p=f.target.checked;n(m=>({...m,translationStartMode:p?"immediate":"dynamic"}))},checked:l.translationStartMode==="immediate",id:"translateToThePageEndImmediatelyDescription",name:"switch",role:"switch"})})]}),!me()&&d("div",{class:"nav",children:[d(Pe,{title:i("isShowContextMenu")}),d("label",{for:"isShowContextMenu",children:d("input",{type:"checkbox",onChange:f=>{let p=f.target.checked;Ps({...o.config,isShowContextMenu:p}),n(m=>({...m,isShowContextMenu:p}))},checked:o.config.isShowContextMenu===!0,id:"isShowContextMenu",name:"switch",role:"switch"})})]}),d("div",{class:"nav",children:[d(Pe,{title:i("isTranslateTitle"),description:i("isTranslateTitleDescription")}),d("label",{for:"isTranslateTitle",children:d("input",{type:"checkbox",id:"isTranslateTitle",name:"isTranslateTitle",role:"switch",onChange:f=>{let p=f.target.checked;n(m=>({...m,generalRule:{...m.generalRule,isTranslateTitle:p}}))},checked:l.generalRule.isTranslateTitle})})]}),d("div",{class:"nav",children:[d(Pe,{title:i("enableSubtitle"),description:i("enableSubtitleDescription")}),d("label",{for:"enableSubtitle",children:d("input",{type:"checkbox",id:"enableSubtitle",name:"enableSubtitle",role:"switch",onChange:f=>{let p=f.target.checked;n(m=>({...m,generalRule:{...m.generalRule,enableSubtitle:p}}))},checked:l.generalRule.enableSubtitle})})]}),d("div",{class:"nav",children:[d(Pe,{title:i("enableSearchEnhancement"),description:i("enableSearchEnhancementDescription")}),d("label",{for:"enableSearchEnhancement",children:d("input",{type:"checkbox",id:"enableSearchEnhancement",name:"enableSearchEnhancement",role:"switch",onChange:f=>{let p=f.target.checked;n(m=>({...m,generalRule:{...m.generalRule,enableSearchEnhancement:p}}))},checked:l.generalRule.enableSearchEnhancement})})]}),d("div",{class:"nav",children:[d(Pe,{title:i("loadingThemeTitle"),description:i("loadingThemeDescription")}),d("select",{class:"select",onChange:f=>{n(p=>({...p,loadingTheme:f.target.value}))},children:[d("option",{value:"spinner",selected:l.loadingTheme==="spinner",children:i("loadingTheme.spinner")}),d("option",{value:"text",selected:l.loadingTheme==="text",children:i("loadingTheme.text")}),d("option",{value:"none",selected:l.loadingTheme==="none",children:i("loadingTheme.none")})]})]}),d("div",{class:"nav",children:[d(Pe,{title:i("translationLineBreakSettingTitle"),description:i("translationLineBreakSettingDescription",{count:e.generalRule.blockMinTextCount})}),d("select",{class:"select",onChange:f=>{n(p=>{let m=p.generalRule||{};return parseInt(f.target.value)===0?m={...m,blockMinTextCount:0,blockMinWordCount:0}:m={...m,blockMinTextCount:e.generalRule.blockMinTextCount,blockMinWordCount:e.generalRule.blockMinWordCount},{...p,generalRule:m}})},children:[d("option",{value:32,selected:l.generalRule.blockMinTextCount>0,children:i("smartLineBreak")}),d("option",{value:0,selected:l.generalRule.blockMinTextCount===0,children:i("alwaysLineBreak")})]})]}),d("div",{class:"nav",children:[d(Pe,{title:i("tempTranslateDomainTitle"),description:i("tempTranslateDomainDescription")}),d("select",{class:"select",onChange:f=>{n(p=>({...p,tempTranslateDomainMinutes:parseInt(f.target.value)}))},children:[d("option",{value:0,selected:l.tempTranslateDomainMinutes===0,children:i("disabled")}),d("option",{value:5,selected:l.tempTranslateDomainMinutes===5,children:i("xMinutes",{count:5})}),d("option",{value:10,selected:l.tempTranslateDomainMinutes===10,children:i("xMinutes",{count:10})}),d("option",{value:15,selected:l.tempTranslateDomainMinutes===15,children:i("xMinutes",{count:15})}),d("option",{value:30,selected:l.tempTranslateDomainMinutes===30,children:i("xMinutes",{count:30})}),d("option",{value:60,selected:l.tempTranslateDomainMinutes===60,children:i("xMinutes",{count:60})})]})]}),d("div",{class:"nav",children:[d(Pe,{title:i("the number of characters to be translated first")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:f=>{let p=f.target.value;n(m=>({...m,immediateTranslationTextCount:parseInt(p)}))},name:"count",value:l.immediateTranslationTextCount,placeholder:"Text Length",required:!0})})]})]})}h();var jh=yo({presets:[Pu(),_u()]});h();function A4(){let e=ft(),[t,n,a,r,o]=e,{t:u}=ue(),i=Ds(t),s=Ls(i);return d(Qe.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("mouseHoverOptions")})}),d(hu,{config:i,ctx:s,serviceType:"mouseHoverTranslationService"}),d(P5,{config:i})]})}function P5({config:e}){let[t,n,a,r,o]=Ye(Qe),[u,i]=$(!1),{t:s}=ue();return ia()?d("div",{class:"flex justify-between items-center nav",children:[d(Pe,{title:s("modifyMouseHoverKey"),description:s("mouseHoverHoldKey")}),d(F5,{config:e,setSettings:n,className:"select",clickOther:()=>i(!0)}),d(E4,{config:e,visible:u,onClose:()=>i(!1)})]}):null}function F5({config:e,setSettings:t,className:n,clickOther:a}){let{t:r}=ue();return e?d(On,{className:n,items:Ca.filter(o=>!(Ca.includes(e.generalRule.mouseHoverHoldKey)&&o==="OtherCustom")).map(o=>{let u=r("mouseHoldKey",{key:o}),i=Ca.includes(e.generalRule.mouseHoverHoldKey),s=o===e.generalRule.mouseHoverHoldKey;return o==="Auto"?u=r("mouseHoldKeyAuto"):o==="Off"?u=r("mouseHoldKeyOff"):o==="OtherCustom"?u=i?r("mouseHoldKeyOther"):r("mouseHoldKeyCustomKey",{key:e.generalRule.mouseHoverHoldKey}):o==="Other"&&(u=r("mouseHoldKeyOther")),i||o==="OtherCustom"&&(s=!0),{label:u,value:o,selected:s,onSelected:c=>{c.value==="Other"?a():t(l=>({...l,generalRule:{...l.generalRule,mouseHoverHoldKey:c.value}}))}}})}):null}function zh(){let e=document.getElementById("mount");e&&(async()=>{s0(jh);let t=await Ge();t.debug&&z.setLevel("debug"),globalThis.location.hash||(globalThis.location.hash="#general");let n=await Lt({url:"http://localhost",config:t});et("options_page_view",[{name:"options_page_view"}],{...n,sourceLanguage:globalThis.location.hash}),wa(document,n),Ha(d(si,{lang:t.interfaceLanguage,fallbackLang:"zh-CN",translations:Gr,children:d(_5,{donateUrl:t.donateUrl,config:t})}),e)})()}function _5(e){let t=Q0(),{t:n}=ue(),a=hi(),{config:r}=e,o=[{name:n("general"),props:{href:"#general",className:"secondary"}},{name:n("interface"),props:{href:"#interface",className:"secondary"}},{name:n("mouseHoverOptions"),props:{href:"#mouse_hover",className:"secondary"}},{name:n("inputOptions"),props:{href:"#input",className:"secondary"}},{name:n("advanced"),props:{href:"#advanced",className:"secondary"}},{name:n("import_export"),props:{href:"#import_export",className:"secondary"}},{name:n("about"),props:{href:"#about",className:"secondary"}}];o.forEach(i=>{t===i.props.href&&(i.props.className="primary",i.props["aria-current"]="page")});let u=!0;return ot()&&(u=r.generalRule.showSponsorOnSafari),d(Fe,{children:d("main",{class:"container-fluid",children:[d("aside",{children:d("nav",{class:"flex flex-col h-full justify-between",children:[d("div",{children:[d("hgroup",{class:"mb-2",children:[d("h4",{class:"cursor-pointer p-0 m-0",onClick:()=>{globalThis.location.hash="#general"},children:n("browser.shortBrandName")}),d("h6",{class:"!text-sm",children:a})]}),d("ul",{class:"flex flex-wrap justify-between md:block text-sm md:text-base",children:o.map((i,s)=>d("li",{class:"li",children:d("a",{...i.props,children:i.name})},`nav-${s}`))})]}),d("div",{class:"m-0 p-0 flex flex-col",children:[u&&d("a",{class:"py-3 text-xs no-focus secondary",href:e.donateUrl,children:n("donateCafe")}),d("a",{class:"py-3 text-xs no-focus secondary",href:"https://immersivetranslate.com/docs/communities/",children:n("feedbackAndJoin")}),d("a",{class:"py-3 text-xs no-focus secondary",href:"https://immersivetranslate.com/docs/",children:n("document")}),d("a",{class:"py-3 text-xs no-focus secondary",href:"#developer",children:n("developer")})]})]})}),d("div",{role:"main",children:d(J0,{value:t,defaultCase:d(Ms,{}),cases:{"#general":d(Ms,{}),"#mouse_hover":d(A4,{}),"#input":d(b4,{}),"#interface":d(T4,{}),"#import_export":d(nc,{}),"#about":d(v4,{}),"#advanced":d(w4,{}),"#developer":d(C4,{})}})})]})})}zh();})(); +}]`;return!r||!e?d("div",{children:"loading"}):d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("developer")})}),d("div",{dangerouslySetInnerHTML:{__html:u("developerDescription",{1:"https://immersivetranslate.com/docs/advanced/"})},class:"secondary text-xs text-gray-500 mb-4"}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"cache",name:"cache",role:"switch",onChange:()=>{m(!r.debug)},checked:r.debug}),u("toggleDebug")]})}),d("fieldset",{class:"mt-2",children:[d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"beta",name:"beta",role:"switch",onChange:()=>{p(!r.beta)},checked:!!r.beta}),u("toggleBeta")]}),d("small",{class:"text-gray-500",dangerouslySetInnerHTML:{__html:u("betaDescription",{1:ei})}})]}),d("details",{class:"py-2",children:[d("summary",{children:"Edit User Rules"}),d("textarea",{class:"user-rule",rows:10,onChange:g,placeholder:_,spellcheck:!1,value:e.rules?JSON.stringify(e.rules||[],null,2):""}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:b,role:"button",children:u("save")}),d("a",{target:"_blank",class:"secondary text-sm mr-3",href:"https://immersivetranslate.com/docs/advanced/",children:[u("help"),"?"]}),d("a",{href:"#",onClick:D,class:"text-sm secondary mr-2",children:u("reset")})]})]}),d("details",{class:"py-2",children:[d("summary",{children:"Edit Injected CSS"}),d("textarea",{rows:10,onChange:y,spellcheck:!1,placeholder:".title { color: red }",value:e.generalRule&&e.generalRule.injectedCss?e.generalRule.injectedCss:""}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:b,role:"button",children:u("save")}),d("a",{class:"secondary text-sm mr-3",target:"_blank",href:"https://immersivetranslate.com/docs/advanced/",children:[u("help"),"?"]}),d("a",{href:"#",onClick:N,class:"text-sm secondary mr-2",children:u("reset")})]})]}),d("details",{class:"py-2",children:[d("summary",{children:"Edit Full User Config"}),d("textarea",{rows:10,onChange:w,spellcheck:!1,value:JSON.stringify(e,null,2)}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:b,role:"button",children:u("save")}),d("a",{class:"secondary text-sm mr-3",target:"_blank",href:"https://immersivetranslate.com/docs/advanced/",children:[u("help"),"?"]}),d("a",{href:"#",onClick:S,class:"text-sm secondary mr-2",children:u("reset")})]})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the final config"}),d("pre",{children:d("code",{children:JSON.stringify(r,null,2)})})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the sync storage object"}),d("pre",{children:d("code",{children:JSON.stringify(i,null,2)})})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the local storage object"}),d("pre",{children:d("code",{children:JSON.stringify(c,null,2)})})]})]})}h();h();var C5="buildinConfig",v5={},jh=Bm(C5,v5);var w5=({date:e})=>{let{t}=ue();return d("p",{class:"text-sm",children:[t("The local rules are up to date")," ",new Date(e).toLocaleString()]})},A5=({date:e})=>{let{t}=ue();return d("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},k5=()=>{let{t:e}=ue();return d("p",{class:"text-sm","aria-busy":!0,children:[e("Checking for updates"),"..."]})},S5=()=>{let{t:e}=ue();return d("p",{class:"text-sm",children:[e("Rules are being synchronized"),"..."]})},D5=({minVersion:e})=>{let{t}=ue();return d("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},L5=({latestVersion:e})=>{let{t}=ue();return d("p",{class:"text-sm",children:[t("foundNewVersion"),":"," ",d("a",{href:"https://github.com/immersive-translate/immersive-translate/releases",children:e})]})},M5=()=>{let{t:e}=ue();return d("p",{class:"text-sm",children:e("theLocalExtensionIsUpToUpdate")})},P5=({message:e,handleSyncing:t,date:n})=>{let{t:a}=ue();return d("p",{class:"text-sm",children:[a("failToSyncRules")," ",d("a",{onClick:t,children:a("retry")}),d("br",{}),a("failedReason"),"\uFF1A",e,d("br",{}),a("currentRuleVersion"),"\uFF1A",n]})};function w4(){let[e,t]=$(null),{t:n}=ue(),[a,r]=$(n("calculating")+"..."),[o,u]=$(null),[i,s]=jh(),[c,l]=$(null),[m,p]=$(""),[f,g]=$(!1),[y,w]=$(!1),[b,S]=$(null),[D,N]=$(null),[_,x,E,T]=ht();En(_,x);let[v,C]=$(!1),R=fi(),M=!0;ot()&&b&&(M=b.generalRule.showSponsorOnSafari);let k=async()=>{p("");let L=o;if(o===null)try{let U=await Pn({url:Ea});U?(u(U),L=U,g(!0)):(p(n("unknownError")),l(null))}catch(U){l(null),p(U.message);return}L!==null?(s(L),l(!1),t(L.buildinConfigUpdatedAt)):(p(n("canNotFetchRemoteRule")),l(null))};he(()=>{Ge().then(L=>{let U=L.buildinConfigUpdatedAt;S(L);let K=new Date(U);t(U),Pn({url:Ea}).then(H=>{let V=H.minVersion,q=R;u(H);let oe=H.latestVersion;if(oe&&(Na(q,oe)?N(!0):N(!1)),Na(q,V)){let Q=H.buildinConfigUpdatedAt;new Date(Q)>K?(l(!0),k()):l(!1)}else w(!0),l(null)}).catch(H=>{l(null),p(H.message)})}),S3().then(L=>{r(L)})},[]),he(()=>{Ge().then(L=>{S(L)})},[_,e]);let P=L=>{x(U=>{let K=!U.alpha;return K?ut(n("enableAlphaSuccess")):ut(n("disableAlphaSuccess")),{...U,alpha:K}})},O=L=>{L.preventDefault(),L.stopPropagation(),C(!0),Aa().catch(U=>{z.error("clear build config failed:",U)}),ka().catch(U=>{z.error("clear local config failed:",U)}),Ua().then(()=>{C(!1),ut("\u6E05\u7406\u6210\u529F"),r("0 B")}).catch(U=>{C(!1),Bt(U.message)})},j=L=>{x(U=>({...U,cache:L}))},B=L=>{x(U=>({...U,enabled:L}))},A="aboutIntro";return M||(A="aboutIntroWithoutSponsor"),b?d("div",{class:"text-sm",children:[d("div",{class:"nav",children:d("strong",{onClick:nu(7)(P),class:"text-lg immersive-translate-no-select",children:n("about")})}),d("p",{onClick:nu(7)(P),class:"mb-2 immersive-translate-no-select",children:["V",R,Ag()?"(Beta)":""]}),D===!1&&d(L5,{latestVersion:o?.latestVersion}),D===!0&&d(M5,{}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onChange:()=>{B(!b.enabled)},checked:b.enabled}),n("enabledExtension")]})}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"cache",name:"cache",role:"switch",onChange:()=>{j(!b.cache)},checked:b.cache}),n("allowCacheTranslations")]})}),!me()&&a&&d("p",{class:"text-sm",children:[n("cacheSize"),"\xA0",a," \xA0 ",v?d("span",{children:[n("cleaning"),"..."]}):d("a",{class:"text-sm",href:"#",onClick:O,children:n("cleanCache")})]}),m?d(P5,{handleSyncing:k,message:m,date:e||""}):y?d(D5,{minVersion:o.minVersion}):c===null?d(k5,{}):c===!0?d(S5,{}):f?d(A5,{date:e}):d(w5,{date:e}),d("blockquote",{class:"text-sm",dangerouslySetInnerHTML:{__html:n(A,{1:"https://immersivetranslate.com/docs/thanks/",2:"https://immersivetranslate.com/docs/donate/",3:"twitter.com/immersivetran",4:"https://t.me/immersivetranslate",5:"https://immersivetranslate.substack.com",6:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=about_page",7:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=about_page",8:"mailto:support@immersivetranslate.com"})}}),d("div",{class:"flex items-center justify-center",children:[d("div",{class:"flex flex-col items-center",children:[d("img",{width:"120",src:"https://immersivetranslate.com/assets/wechat-qrcode.jpg",alt:"wechat contact"}),d("div",{class:"text-sm",children:n("wechatPublicAccount")})]}),d("div",{class:"w-16"}),d("div",{class:"flex flex-col items-center",children:[d("img",{width:"125",src:"https://immersivetranslate.com/assets/wechat-contact.png",alt:"qq channel contact"}),d("div",{class:"text-sm text-center",children:n("wechatCommunities")})]})]}),d("ul",{class:"text-sm ml-4",children:[d("li",{children:d("a",{class:"secondary",href:"https://github.com/immersive-translate/immersive-translate/issues",children:n("feedback")})}),d("li",{children:d("a",{class:"secondary",href:ei,children:n("joinTelegramGroup")})}),d("li",{children:d("a",{class:"secondary",href:"https://immersivetranslate.com/docs/CHANGELOG/",children:n("changelog")})}),d("li",{children:d("a",{class:"secondary",href:"https://immersivetranslate.com/",children:n("projectHomepage")})}),d("li",{children:d("a",{class:"secondary",href:"https://github.com/immersive-translate/immersive-translate/",children:n("Github")})}),M&&!1]}),d("div",{class:"flex justify-center",children:d("iframe",{src:"https://immersivetranslate.substack.com/embed",width:"480",height:"320",style:"border:1px solid #EEE; background:white;",frameBorder:0,scrolling:"no"})})]}):null}h();function A4(){let e=Ti(),[t,n,a,r]=ht(),[o,u]=$(null);En(t,n);let{t:i}=ue();he(()=>{Ge().then(m=>{Lt({config:m,url:globalThis.location.href}).then(p=>{u(p)})})},[t]);let s=m=>{n(p=>({...p,translationTheme:m}))},c=m=>{n(p=>({...p,interfaceLanguage:m}))};if(!o)return d("div",{children:"loading"});let l=o.config;return d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:i("advanced")})}),d("div",{class:"nav",children:[d(Pe,{title:i("translate all areas of the page"),description:i("translationAreaDescription")}),d("label",{for:"translationAreaDescription",children:d("input",{type:"checkbox",id:"translationAreaDescription",name:"switch",role:"switch",onChange:m=>{let p=m.target.checked;n(f=>({...f,translationArea:p?"body":"main"}))},checked:l.translationArea==="body"})})]}),d("div",{class:"nav",children:[d(Pe,{title:i("translate to the bottom of the page"),description:i("translateToThePageEndImmediatelyDescription")}),d("label",{for:"translateToThePageEndImmediatelyDescription",children:d("input",{type:"checkbox",onChange:m=>{let p=m.target.checked;n(f=>({...f,translationStartMode:p?"immediate":"dynamic"}))},checked:l.translationStartMode==="immediate",id:"translateToThePageEndImmediatelyDescription",name:"switch",role:"switch"})})]}),!me()&&d("div",{class:"nav",children:[d(Pe,{title:i("isShowContextMenu")}),d("label",{for:"isShowContextMenu",children:d("input",{type:"checkbox",onChange:m=>{let p=m.target.checked;Ps({...o.config,isShowContextMenu:p}),n(f=>({...f,isShowContextMenu:p}))},checked:o.config.isShowContextMenu===!0,id:"isShowContextMenu",name:"switch",role:"switch"})})]}),d("div",{class:"nav",children:[d(Pe,{title:i("isTranslateTitle"),description:i("isTranslateTitleDescription")}),d("label",{for:"isTranslateTitle",children:d("input",{type:"checkbox",id:"isTranslateTitle",name:"isTranslateTitle",role:"switch",onChange:m=>{let p=m.target.checked;n(f=>({...f,generalRule:{...f.generalRule,isTranslateTitle:p}}))},checked:l.generalRule.isTranslateTitle})})]}),d("div",{class:"nav",children:[d(Pe,{title:i("enableSubtitle"),description:i("enableSubtitleDescription")}),d("label",{for:"enableSubtitle",children:d("input",{type:"checkbox",id:"enableSubtitle",name:"enableSubtitle",role:"switch",onChange:m=>{let p=m.target.checked;n(f=>({...f,generalRule:{...f.generalRule,enableSubtitle:p}}))},checked:l.generalRule.enableSubtitle})})]}),d("div",{class:"nav",children:[d(Pe,{title:i("enableSearchEnhancement"),description:i("enableSearchEnhancementDescription")}),d("label",{for:"enableSearchEnhancement",children:d("input",{type:"checkbox",id:"enableSearchEnhancement",name:"enableSearchEnhancement",role:"switch",onChange:m=>{let p=m.target.checked;n(f=>({...f,generalRule:{...f.generalRule,enableSearchEnhancement:p}}))},checked:l.generalRule.enableSearchEnhancement})})]}),d("div",{class:"nav",children:[d(Pe,{title:i("loadingThemeTitle"),description:i("loadingThemeDescription")}),d("select",{class:"select",onChange:m=>{n(p=>({...p,loadingTheme:m.target.value}))},children:[d("option",{value:"spinner",selected:l.loadingTheme==="spinner",children:i("loadingTheme.spinner")}),d("option",{value:"text",selected:l.loadingTheme==="text",children:i("loadingTheme.text")}),d("option",{value:"none",selected:l.loadingTheme==="none",children:i("loadingTheme.none")})]})]}),d("div",{class:"nav",children:[d(Pe,{title:i("translationLineBreakSettingTitle"),description:i("translationLineBreakSettingDescription",{count:e.generalRule.blockMinTextCount})}),d("select",{class:"select",onChange:m=>{n(p=>{let f=p.generalRule||{};return parseInt(m.target.value)===0?f={...f,blockMinTextCount:0,blockMinWordCount:0}:f={...f,blockMinTextCount:e.generalRule.blockMinTextCount,blockMinWordCount:e.generalRule.blockMinWordCount},{...p,generalRule:f}})},children:[d("option",{value:32,selected:l.generalRule.blockMinTextCount>0,children:i("smartLineBreak")}),d("option",{value:0,selected:l.generalRule.blockMinTextCount===0,children:i("alwaysLineBreak")})]})]}),d("div",{class:"nav",children:[d(Pe,{title:i("tempTranslateDomainTitle"),description:i("tempTranslateDomainDescription")}),d("select",{class:"select",onChange:m=>{n(p=>({...p,tempTranslateDomainMinutes:parseInt(m.target.value)}))},children:[d("option",{value:0,selected:l.tempTranslateDomainMinutes===0,children:i("disabled")}),d("option",{value:5,selected:l.tempTranslateDomainMinutes===5,children:i("xMinutes",{count:5})}),d("option",{value:10,selected:l.tempTranslateDomainMinutes===10,children:i("xMinutes",{count:10})}),d("option",{value:15,selected:l.tempTranslateDomainMinutes===15,children:i("xMinutes",{count:15})}),d("option",{value:30,selected:l.tempTranslateDomainMinutes===30,children:i("xMinutes",{count:30})}),d("option",{value:60,selected:l.tempTranslateDomainMinutes===60,children:i("xMinutes",{count:60})})]})]}),d("div",{class:"nav",children:[d(Pe,{title:i("the number of characters to be translated first")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:m=>{let p=m.target.value;n(f=>({...f,immediateTranslationTextCount:parseInt(p)}))},name:"count",value:l.immediateTranslationTextCount,placeholder:"Text Length",required:!0})})]})]})}h();var zh=yo({presets:[Mu(),Fu()]});h();function k4(){let e=ht(),[t,n,a,r,o]=e,{t:u}=ue(),i=Ds(t),s=Ls(i);return d(Qe.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("mouseHoverOptions")})}),d(fu,{config:i,ctx:s,serviceType:"mouseHoverTranslationService"}),d(F5,{config:i})]})}function F5({config:e}){let[t,n,a,r,o]=Ye(Qe),[u,i]=$(!1),{t:s}=ue();return ua()?d("div",{class:"flex justify-between items-center nav",children:[d(Pe,{title:s("modifyMouseHoverKey"),description:s("mouseHoverHoldKey")}),d(_5,{config:e,setSettings:n,className:"select",clickOther:()=>i(!0)}),d(C4,{config:e,visible:u,onClose:()=>i(!1)})]}):null}function _5({config:e,setSettings:t,className:n,clickOther:a}){let{t:r}=ue();return e?d(On,{className:n,items:Ca.filter(o=>!(Ca.includes(e.generalRule.mouseHoverHoldKey)&&o==="OtherCustom")).map(o=>{let u=r("mouseHoldKey",{key:o}),i=Ca.includes(e.generalRule.mouseHoverHoldKey),s=o===e.generalRule.mouseHoverHoldKey;return o==="Auto"?u=r("mouseHoldKeyAuto"):o==="Off"?u=r("mouseHoldKeyOff"):o==="OtherCustom"?u=i?r("mouseHoldKeyOther"):r("mouseHoldKeyCustomKey",{key:e.generalRule.mouseHoverHoldKey}):o==="Other"&&(u=r("mouseHoldKeyOther")),i||o==="OtherCustom"&&(s=!0),{label:u,value:o,selected:s,onSelected:c=>{c.value==="Other"?a():t(l=>({...l,generalRule:{...l.generalRule,mouseHoverHoldKey:c.value}}))}}})}):null}function Hh(){let e=document.getElementById("mount");e&&(async()=>{s0(zh);let t=await Ge();t.debug&&z.setLevel("debug"),globalThis.location.hash||(globalThis.location.hash="#general");let n=await Lt({url:"http://localhost",config:t});et("options_page_view",[{name:"options_page_view"}],{...n,sourceLanguage:globalThis.location.hash}),wa(document,n),Wa(d(ii,{lang:t.interfaceLanguage,fallbackLang:"zh-CN",translations:Vr,children:d(B5,{donateUrl:t.donateUrl,config:t})}),e)})()}function B5(e){let t=Q0(),{t:n}=ue(),a=fi(),{config:r}=e,o=[{name:n("general"),props:{href:"#general",className:"secondary"}},{name:n("interface"),props:{href:"#interface",className:"secondary"}},{name:n("mouseHoverOptions"),props:{href:"#mouse_hover",className:"secondary"}},{name:n("inputOptions"),props:{href:"#input",className:"secondary"}},{name:n("advanced"),props:{href:"#advanced",className:"secondary"}},{name:n("import_export"),props:{href:"#import_export",className:"secondary"}},{name:n("about"),props:{href:"#about",className:"secondary"}}];o.forEach(i=>{t===i.props.href&&(i.props.className="primary",i.props["aria-current"]="page")});let u=!0;return ot()&&(u=r.generalRule.showSponsorOnSafari),d(Fe,{children:d("main",{class:"container-fluid",children:[d("aside",{children:d("nav",{class:"flex flex-col h-full justify-between",children:[d("div",{children:[d("hgroup",{class:"mb-2",children:[d("h4",{class:"cursor-pointer p-0 m-0",onClick:()=>{globalThis.location.hash="#general"},children:n("browser.shortBrandName")}),d("h6",{class:"!text-sm",children:a})]}),d("ul",{class:"flex flex-wrap justify-between md:block text-sm md:text-base",children:o.map((i,s)=>d("li",{class:"li",children:d("a",{...i.props,children:i.name})},`nav-${s}`))})]}),d("div",{class:"m-0 p-0 flex flex-col",children:[u&&d("a",{class:"py-3 text-xs no-focus secondary",href:e.donateUrl,children:n("donateCafe")}),d("a",{class:"py-3 text-xs no-focus secondary",href:"https://immersivetranslate.com/docs/communities/",children:n("feedbackAndJoin")}),d("a",{class:"py-3 text-xs no-focus secondary",href:"https://immersivetranslate.com/docs/",children:n("document")}),d("a",{class:"py-3 text-xs no-focus secondary",href:"#developer",children:n("developer")})]})]})}),d("div",{role:"main",children:d(J0,{value:t,defaultCase:d(Ms,{}),cases:{"#general":d(Ms,{}),"#mouse_hover":d(k4,{}),"#input":d(y4,{}),"#interface":d(E4,{}),"#import_export":d(ac,{}),"#about":d(w4,{}),"#advanced":d(A4,{}),"#developer":d(v4,{})}})})]})})}Hh();})(); /*! Bundled license information: bowser/src/bowser.js: diff --git a/dist/chrome/pdf/immservie.js b/dist/chrome/pdf/immservie.js index 7f4c75f..a1cd7db 100644 --- a/dist/chrome/pdf/immservie.js +++ b/dist/chrome/pdf/immservie.js @@ -1,4 +1,4 @@ -(()=>{var Ff=Object.create;var Di=Object.defineProperty;var _f=Object.getOwnPropertyDescriptor;var Bf=Object.getOwnPropertyNames;var Rf=Object.getPrototypeOf,If=Object.prototype.hasOwnProperty;var Of=(e,t)=>()=>(e&&(t=e(e=0)),t);var Nf=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),jf=(e,t)=>{for(var n in t)Di(e,n,{get:t[n],enumerable:!0})},zf=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Bf(t))!If.call(e,r)&&r!==n&&Di(e,r,{get:()=>t[r],enumerable:!(a=_f(t,r))||a.enumerable});return e};var Uf=(e,t,n)=>(n=e!=null?Ff(Rf(e)):{},zf(t||!e||!e.__esModule?Di(n,"default",{value:e,enumerable:!0}):n,e));var P,p=Of(()=>{P={BUILD_TIME:"2023-09-17T09:32:32.000Z",VERSION:"0.9.5",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"0",BETA:"0",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { +(()=>{var _f=Object.create;var Di=Object.defineProperty;var Bf=Object.getOwnPropertyDescriptor;var Rf=Object.getOwnPropertyNames;var If=Object.getPrototypeOf,Of=Object.prototype.hasOwnProperty;var Nf=(e,t)=>()=>(e&&(t=e(e=0)),t);var jf=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),zf=(e,t)=>{for(var n in t)Di(e,n,{get:t[n],enumerable:!0})},Uf=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Rf(t))!Of.call(e,r)&&r!==n&&Di(e,r,{get:()=>t[r],enumerable:!(a=Bf(t,r))||a.enumerable});return e};var Hf=(e,t,n)=>(n=e!=null?_f(If(e)):{},Uf(t||!e||!e.__esModule?Di(n,"default",{value:e,enumerable:!0}):n,e));var P,p=Nf(()=>{P={BUILD_TIME:"2023-09-19T07:46:36.000Z",VERSION:"0.9.6",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"0",BETA:"0",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { --immersive-translate-theme-underline-borderColor: #72ece9; --immersive-translate-theme-nativeUnderline-borderColor: #72ece9; --immersive-translate-theme-nativeDashed-borderColor: #72ece9; @@ -4234,17 +4234,17 @@ select.text-label {
-`,PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",OPTIONS_URL:"https://dash.immersivetranslate.com/",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",MOCK:"0",DEBUG:"0",INSTALL_FROM:"chrome_zip"}});var om=Nf((po,Qr)=>{p();(function(){var e;function t(d){var b,T,h="",C=-1,v;if(d&&d.length)for(v=d.length;(C+=1)>>6&31,128|b&63):b<=65535?h+=String.fromCharCode(224|b>>>12&15,128|b>>>6&63,128|b&63):b<=2097151&&(h+=String.fromCharCode(240|b>>>18&7,128|b>>>12&63,128|b>>>6&63,128|b&63));return h}function n(d){var b,T,h,C,v,O=[],B;if(b=T=h=C=v=0,d&&d.length)for(B=d.length,d+="";b191&&h<224?(C=d.charCodeAt(b+1),O[T]=String.fromCharCode((h&31)<<6|C&63),b+=2):(C=d.charCodeAt(b+1),v=d.charCodeAt(b+2),O[T]=String.fromCharCode((h&15)<<12|(C&63)<<6|v&63),b+=3);return O.join("")}function a(d,b){var T=(d&65535)+(b&65535),h=(d>>16)+(b>>16)+(T>>16);return h<<16|T&65535}function r(d,b){return d<>>32-b}function u(d,b){for(var T=b?"0123456789ABCDEF":"0123456789abcdef",h="",C,v=0,O=d.length;v>>4&15)+T.charAt(C&15);return h}function o(d){var b,T=d.length,h="";for(b=0;b>>8&255);return h}function i(d){var b,T=d.length,h="";for(b=0;b>>8&255,d.charCodeAt(b)&255);return h}function s(d){var b,T=d.length*32,h="";for(b=0;b>5]>>>24-b%32&255);return h}function c(d){var b,T=d.length*32,h="";for(b=0;b>5]>>>b%32&255);return h}function l(d){var b,T=d.length*8,h=Array(d.length>>2),C=h.length;for(b=0;b>5]|=(d.charCodeAt(b/8)&255)<>2),C=h.length;for(b=0;b>5]|=(d.charCodeAt(b/8)&255)<<24-b%32;return h}function g(d,b){var T=b.length,h=Array(),C,v,O,B,x,L,M,w;for(L=Array(Math.ceil(d.length/2)),B=L.length,C=0;C0;){for(x=Array(),O=0,C=0;C0||v>0)&&(x[x.length]=v);h[h.length]=O,L=x}for(M="",C=h.length-1;C>=0;C--)M+=b.charAt(h[C]);for(w=Math.ceil(d.length*8/(Math.log(b.length)/Math.log(2))),C=M.length;Cd.length*8?h+=b:h+=T.charAt(B>>>6*(3-O)&63);return h}e={VERSION:"1.0.6",Base64:function(){var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b="=",T=!1,h=!0;this.encode=function(C){var v,O,B,x="";for(b=b||"=",C=h?t(C):C,len=C.length,v=0;vlen*8?x+=b:x+=d.charAt(B>>>6*(3-O)&63);return x},this.decode=function(C){var v,O,B,x,L,M,w,E,I,F,A="",_=[];if(!C)return C;v=F=0,C=C.replace(new RegExp("\\"+b,"gi"),"");do L=d.indexOf(C.charAt(v++)),M=d.indexOf(C.charAt(v++)),w=d.indexOf(C.charAt(v++)),E=d.indexOf(C.charAt(v++)),I=L<<18|M<<12|w<<6|E,O=I>>16&255,B=I>>8&255,x=I&255,F+=1,w===64?_[F]=String.fromCharCode(O):E===64?_[F]=String.fromCharCode(O,B):_[F]=String.fromCharCode(O,B,x);while(v>>8^T;return(b^-1)>>>0},MD5:function(d){var b=d&&typeof d.uppercase=="boolean"?d.uppercase:!1,T=d&&typeof d.pad=="string"?d.pad:"=",h=d&&typeof d.utf8=="boolean"?d.utf8:!0;this.hex=function(E){return u(C(E,h),b)},this.b64=function(E){return f(C(E),T)},this.any=function(E,I){return g(C(E,h),I)},this.raw=function(E){return C(E,h)},this.hex_hmac=function(E,I){return u(v(E,I),b)},this.b64_hmac=function(E,I){return f(v(E,I),T)},this.any_hmac=function(E,I,F){return g(v(E,I),F)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(E){return typeof E=="boolean"&&(b=E),this},this.setPad=function(E){return T=E||T,this},this.setUTF8=function(E){return typeof E=="boolean"&&(h=E),this};function C(E){return E=h?t(E):E,c(O(l(E),E.length*8))}function v(E,I){var F,A,_,j,N;for(E=h?t(E):E,I=h?t(I):I,F=l(E),F.length>16&&(F=O(F,E.length*8)),A=Array(16),_=Array(16),N=0;N<16;N+=1)A[N]=F[N]^909522486,_[N]=F[N]^1549556828;return j=O(A.concat(l(I)),512+I.length*8),c(O(_.concat(j),512+128))}function O(E,I){var F,A,_,j,N,D=1732584193,y=-271733879,S=-1732584194,R=271733878;for(E[I>>5]|=128<>>9<<4)+14]=I,F=0;F16&&(w=O(w,L.length*8)),E=Array(16),I=Array(16),F=0;F<16;F+=1)E[F]=w[F]^909522486,I[F]=w[F]^1549556828;return A=O(E.concat(m(M)),512+M.length*8),s(O(I.concat(A),512+160))}function O(L,M){var w,E,I,F,A,_,j,N,D=Array(80),y=1732584193,S=-271733879,R=-1732584194,$=271733878,z=-1009589776;for(L[M>>5]|=128<<24-M%32,L[(M+64>>9<<4)+15]=M,w=0;w16&&(z=D(z,y.length*8));$<16;$+=1)Y[$]=z[$]^909522486,q[$]=z[$]^1549556828;return R=D(Y.concat(m(S)),512+S.length*8),s(D(q.concat(R),512+256))}function B(y,S){return y>>>S|y<<32-S}function x(y,S){return y>>>S}function L(y,S,R){return y&S^~y&R}function M(y,S,R){return y&S^y&R^S&R}function w(y){return B(y,2)^B(y,13)^B(y,22)}function E(y){return B(y,6)^B(y,11)^B(y,25)}function I(y){return B(y,7)^B(y,18)^x(y,3)}function F(y){return B(y,17)^B(y,19)^x(y,10)}function A(y){return B(y,28)^B(y,34)^B(y,39)}function _(y){return B(y,14)^B(y,18)^B(y,41)}function j(y){return B(y,1)^B(y,8)^x(y,7)}function N(y){return B(y,19)^B(y,61)^x(y,6)}C=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function D(y,S){var R=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],$=new Array(64),z,Y,q,ae,Q,G,pe,fe,re,K,oe,me;for(y[S>>5]|=128<<24-S%32,y[(S+64>>9<<4)+15]=S,re=0;re32&&(y=B(y,_.length*8));D<32;D+=1)S[D]=y[D]^909522486,R[D]=y[D]^1549556828;return N=B(S.concat(m(j)),1024+j.length*8),s(B(R.concat(N),1024+512))}function B(_,j){var N,D,y,S=new Array(80),R=new Array(16),$=[new x(1779033703,-205731576),new x(-1150833019,-2067093701),new x(1013904242,-23791573),new x(-1521486534,1595750129),new x(1359893119,-1377402159),new x(-1694144372,725511199),new x(528734635,-79577749),new x(1541459225,327033209)],z=new x(0,0),Y=new x(0,0),q=new x(0,0),ae=new x(0,0),Q=new x(0,0),G=new x(0,0),pe=new x(0,0),fe=new x(0,0),re=new x(0,0),K=new x(0,0),oe=new x(0,0),me=new x(0,0),ce=new x(0,0),ye=new x(0,0),Se=new x(0,0),xe=new x(0,0),Z=new x(0,0);for(C===void 0&&(C=[new x(1116352408,-685199838),new x(1899447441,602891725),new x(-1245643825,-330482897),new x(-373957723,-2121671748),new x(961987163,-213338824),new x(1508970993,-1241133031),new x(-1841331548,-1357295717),new x(-1424204075,-630357736),new x(-670586216,-1560083902),new x(310598401,1164996542),new x(607225278,1323610764),new x(1426881987,-704662302),new x(1925078388,-226784913),new x(-2132889090,991336113),new x(-1680079193,633803317),new x(-1046744716,-815192428),new x(-459576895,-1628353838),new x(-272742522,944711139),new x(264347078,-1953704523),new x(604807628,2007800933),new x(770255983,1495990901),new x(1249150122,1856431235),new x(1555081692,-1119749164),new x(1996064986,-2096016459),new x(-1740746414,-295247957),new x(-1473132947,766784016),new x(-1341970488,-1728372417),new x(-1084653625,-1091629340),new x(-958395405,1034457026),new x(-710438585,-1828018395),new x(113926993,-536640913),new x(338241895,168717936),new x(666307205,1188179964),new x(773529912,1546045734),new x(1294757372,1522805485),new x(1396182291,-1651133473),new x(1695183700,-1951439906),new x(1986661051,1014477480),new x(-2117940946,1206759142),new x(-1838011259,344077627),new x(-1564481375,1290863460),new x(-1474664885,-1136513023),new x(-1035236496,-789014639),new x(-949202525,106217008),new x(-778901479,-688958952),new x(-694614492,1432725776),new x(-200395387,1467031594),new x(275423344,851169720),new x(430227734,-1194143544),new x(506948616,1363258195),new x(659060556,-544281703),new x(883997877,-509917016),new x(958139571,-976659869),new x(1322822218,-482243893),new x(1537002063,2003034995),new x(1747873779,-692930397),new x(1955562222,1575990012),new x(2024104815,1125592928),new x(-2067236844,-1578062990),new x(-1933114872,442776044),new x(-1866530822,593698344),new x(-1538233109,-561857047),new x(-1090935817,-1295615723),new x(-965641998,-479046869),new x(-903397682,-366583396),new x(-779700025,566280711),new x(-354779690,-840897762),new x(-176337025,-294727304),new x(116418474,1914138554),new x(174292421,-1563912026),new x(289380356,-1090974290),new x(460393269,320620315),new x(685471733,587496836),new x(852142971,1086792851),new x(1017036298,365543100),new x(1126000580,-1676669620),new x(1288033470,-885112138),new x(1501505948,-60457430),new x(1607167915,987167468),new x(1816402316,1246189591)]),D=0;D<80;D+=1)S[D]=new x(0,0);for(_[j>>5]|=128<<24-(j&31),_[(j+128>>10<<5)+31]=j,y=_.length,D=0;D>>N|j.h<<32-N,_.h=j.h>>>N|j.l<<32-N}function w(_,j,N){_.l=j.h>>>N|j.l<<32-N,_.h=j.l>>>N|j.h<<32-N}function E(_,j,N){_.l=j.l>>>N|j.h<<32-N,_.h=j.h>>>N}function I(_,j,N){var D=(j.l&65535)+(N.l&65535),y=(j.l>>>16)+(N.l>>>16)+(D>>>16),S=(j.h&65535)+(N.h&65535)+(y>>>16),R=(j.h>>>16)+(N.h>>>16)+(S>>>16);_.l=D&65535|y<<16,_.h=S&65535|R<<16}function F(_,j,N,D,y){var S=(j.l&65535)+(N.l&65535)+(D.l&65535)+(y.l&65535),R=(j.l>>>16)+(N.l>>>16)+(D.l>>>16)+(y.l>>>16)+(S>>>16),$=(j.h&65535)+(N.h&65535)+(D.h&65535)+(y.h&65535)+(R>>>16),z=(j.h>>>16)+(N.h>>>16)+(D.h>>>16)+(y.h>>>16)+($>>>16);_.l=S&65535|R<<16,_.h=$&65535|z<<16}function A(_,j,N,D,y,S){var R=(j.l&65535)+(N.l&65535)+(D.l&65535)+(y.l&65535)+(S.l&65535),$=(j.l>>>16)+(N.l>>>16)+(D.l>>>16)+(y.l>>>16)+(S.l>>>16)+(R>>>16),z=(j.h&65535)+(N.h&65535)+(D.h&65535)+(y.h&65535)+(S.h&65535)+($>>>16),Y=(j.h>>>16)+(N.h>>>16)+(D.h>>>16)+(y.h>>>16)+(S.h>>>16)+(z>>>16);_.l=R&65535|$<<16,_.h=z&65535|Y<<16}},RMD160:function(d){var b=d&&typeof d.uppercase=="boolean"?d.uppercase:!1,T=d&&typeof d.pad=="string"?d.pa:"=",h=d&&typeof d.utf8=="boolean"?d.utf8:!0,C=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],v=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],O=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],B=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(A){return u(x(A,h))},this.b64=function(A){return f(x(A,h),T)},this.any=function(A,_){return g(x(A,h),_)},this.raw=function(A){return x(A,h)},this.hex_hmac=function(A,_){return u(L(A,_))},this.b64_hmac=function(A,_){return f(L(A,_),T)},this.any_hmac=function(A,_,j){return g(L(A,_),j)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(A){return typeof A=="boolean"&&(b=A),this},this.setPad=function(A){return typeof A<"u"&&(T=A),this},this.setUTF8=function(A){return typeof A=="boolean"&&(h=A),this};function x(A){return A=h?t(A):A,M(w(l(A),A.length*8))}function L(A,_){A=h?t(A):A,_=h?t(_):_;var j,N,D=l(A),y=Array(16),S=Array(16);for(D.length>16&&(D=w(D,A.length*8)),j=0;j<16;j+=1)y[j]=D[j]^909522486,S[j]=D[j]^1549556828;return N=w(y.concat(l(_)),512+_.length*8),M(w(S.concat(N),512+160))}function M(A){var _,j="",N=A.length*32;for(_=0;_>5]>>>_%32&255);return j}function w(A,_){var j,N,D,y,S=1732584193,R=4023233417,$=2562383102,z=271733878,Y=3285377520,q,ae,Q,G,pe,fe,re,K,oe,me;for(A[_>>5]|=128<<_%32,A[(_+64>>>9<<4)+14]=_,y=A.length,D=0;D"u"&&typeof Deno<"u"?Deno.env.toObject():P}var Ee=Qe();function he(){return Ee.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function Pn(){return Ee.PROD==="1"}function Mn(){return Ee.PROD_API==="1"}function mc(){return Ee.HAS_CSP_ERROR=="1"}function Zt(){if(Ee.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function Eu(){return typeof Deno<"u"}var k5=Qe().PROD==="1",Oa=Qe().PROD!=="1";function Tu(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}var gc={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",curentPlan:"\u5F53\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52A8\u7EED\u671F",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",sponsorLabel:"$1 \u8D77\u8D5E\u52A9\u5F00\u53D1\u8005",help:"\u5E2E\u52A9",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D\uFF0C\u518D\u70B9\u51FB\u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D\u5373\u53EF\u8BBE\u7F6E",browserShortcutsNoteForChrome:"\u7C7BChrome \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762\uFF0C\u5728`\u7BA1\u7406\u5FEB\u6377\u952E`\u9762\u677F(`chrome://extensions/shortcuts`)\u8BBE\u7F6E\uFF0C\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8DF3\u8F6C\u5230\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E\u683C\u5F0F\u4E3A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1: \u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1 & PDF\u6587\u6863\u7FFB\u8BD1","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7F51\u9875\u53CC\u8BED\u7FFB\u8BD1\u6269\u5C55\uFF0C\u540C\u65F6\u652F\u6301 PDF \u7FFB\u8BD1\uFF0C\u53CC\u8BED Epub \u7535\u5B50\u4E66\u5236\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u817E\u8BAF\u7FFB\u8BD1\u7B49\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\uFF0C\u514D\u8D39\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8BD1\u5E76\u9690\u85CF\u539F\u6587/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.toggleTranslationMask":"\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.donateContext":"\u4E86\u89E3\u8D5E\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5219\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875(\u4EC5\u8BD1\u6587)/\u663E\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7","fingers.0":"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478",mouseHoldKey:"+ {key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoverHoldKey:"\u9F20\u6807\u60AC\u505C\u540C\u65F6\u6309\u4E0B\u5FEB\u6377\u952E\u7FFB\u8BD1\u6BB5\u843D","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u6587\u6863",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",goAdvancedSettings:"\u53BB\u8FDB\u9636\u8BBE\u7F6E\u9875",goAdvancedInterfaceSettings:"\u53BB\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u8BBE\u7F6E\u9875\u9762",advanced:"\u8FDB\u9636\u8BBE\u7F6E",advancedDescription:"\u4E00\u822C\u65E0\u9700\u8BBE\u7F6E\uFF0C\u4FDD\u6301\u9ED8\u8BA4\u5373\u53EF\u3002\u4EC5\u5BF9\u4E8E\u66F4\u4E13\u4E1A\u7684\u7528\u6237\uFF0C\u63D0\u4F9B\u66F4\u4E2A\u6027\u5316\u7684\u8BBE\u7F6E\u9879\u3002",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00","display both the original text and the translation":"\u540C\u65F6\u663E\u793A\u539F\u6587\u548C\u8BD1\u6587","keyboard shortcuts":"\u952E\u76D8\u5FEB\u6377\u952E",modify:"\u4FEE\u6539\u5FEB\u6377\u952E",reset:"\u91CD\u7F6E",close:"\u5173\u95ED",homepage:"\u4E3B\u9875",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",changeToOnlyTranslationMode:"\u5207\u6362\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u5207\u6362\u4E3A\u53CC\u8BED\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",unknownError:"\u672A\u77E5\u9519\u8BEF",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",needActionForOptions:"(\u9700\u8BBE\u7F6E)",translationEngine:"\u5F15\u64CE\u9009\u9879",sourceLanguage:"\u539F\u6587\u8BED\u8A00",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",forThisSite:"\u5F53\u524D\u7F51\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1 {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8BD1 {language}",alwaysTranslateSomeSite:"\u603B\u662F\u7FFB\u8BD1 {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8BD1 {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u6DFB\u52A0",default:"\u9ED8\u8BA4",forThisLanguage:"\u9488\u5BF9\u8BE5\u8BED\u8A00\uFF1A","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91","translate other languages into specific language":"\u5C06\u5176\u4ED6\u8BED\u8A00\u7FFB\u8BD1\u4E3A\u4F60\u8BBE\u7F6E\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1",language:"\u8BED\u8A00","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",Error:"\u9519\u8BEF",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",interface:"\u754C\u9762\u8BBE\u7F6E",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8BD1\u9875\u9762\u6807\u9898","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1",enableUserscriptPagePopup:"\u5728\u9875\u9762\u4E0A\u663E\u793A\u60AC\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528\u5FEB\u6377\u952E/{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8BD1\u6587\u6837\u5F0F",currentUrl:"\u5F53\u524D\u7F51\u5740",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664","languages.auto":"\u81EA\u52A8\u68C0\u6D4B",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",upload:"\u4E0A\u4F20",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",download:"\u4E0B\u8F7D",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",deleteFail:"\u5220\u9664\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",backupToCloudDescription:"\u624B\u52A8\u4E0A\u4F20\u6216\u6062\u590D\u5907\u4EFD\u6587\u4EF6\uFF0C\u6700\u591A\u5141\u8BB83\u4E2A\u4E0D\u540C\u7684\u5907\u4EFD",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",updatedAt:"\u66F4\u65B0\u4E8E {date}",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u9891\u9053",joinTelegramChannel:"\u5173\u6CE8 Telegram \u9891\u9053\u83B7\u53D6\u6700\u65B0\u66F4\u65B0",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",autoSync:"\u81EA\u52A8\u5B9A\u65F6\u540C\u6B65",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863","edit border color":"\u4FEE\u6539\u8FB9\u6846\u989C\u8272",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",enableSubtitle:"\u5F00\u542F\u5B57\u5E55\u7FFB\u8BD1",enableSubtitleDescription:"\u9488\u5BF9 youtube \u7B49\u7F51\u7AD9\u7684\u5B57\u5E55\u533A\u57DF\u5F00\u542F\u7FFB\u8BD1",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",enableSearchEnhancement:"\u542F\u7528\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A",enableSearchEnhancementDescription:"\u5F00\u542F\u540E\uFF0C\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\u793E\u533A\uFF09\u53F3\u8FB9\u680F\u81EA\u52A8\u663E\u793A\u5BF9\u5E94\u82F1\u6587\u5173\u952E\u8BCD\u7684\u201C\u8C37\u6B4C\u65B0\u95FB\u201D\u641C\u7D22\u7ED3\u679C\u3002",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerMinute":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u5206\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u8350\uFF09, \u5C06\u4F1A\u5728\u5355\u72EC\u4F5C\u4E3A\u4E00\u6BB5\u53D1\u9001\u7ED9 OpenAI","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740",enabledExtension:"\u542F\u7528\u6269\u5C55",clickToDisableExtension:"\u70B9\u51FB\u7981\u7528\u6269\u5C55",clickToEnableExtension:"\u70B9\u51FB\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",modifyMouseHoverKey:"\u4FEE\u6539\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u8BBE\u7F6E",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",disableTint:"* \u4F60\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u542F\u7528\u3002",searchEnhancementNotes:"\u6211\u4EEC\u53D1\u73B0\uFF0C\u4E2D\u6587\u5173\u952E\u8BCD\u548C\u82F1\u6587\u5173\u952E\u8BCD\u7684\u65B0\u95FB\u7ED3\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u542F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u529F\u80FD\u540E\uFF0C\u6211\u4EEC\u4F1A\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\u7F51\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52A8\u7528\u82F1\u6587\u4E3A\u4F60\u641C\u7D22\u540C\u6837\u7684\u5173\u952E\u8BCD\u5E76\u5C55\u793A\u5728\u53F3\u4FA7\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8BE5\u529F\u80FD\u7684\u8BDD\uFF0C\u53EF\u4EE5\u9009\u62E9\u7981\u7528\u5B83\u3002",option:"\u8BBE\u7F6E",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",needLoginAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u81EA\u5B9A\u4E49)",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",onetime_7day:"7 \u5929\u4F53\u9A8C\u5305",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradePlan:"\u70B9\u6B64\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL \u548C OpenAI \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8BD1",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u8BBE\u7F6E\u5176\u4ED6\u5FEB\u6377\u952E\u6765\u89E6\u53D1\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1"};var pc={nologin:"\u672A\u767B\u9304",login:"\u767B\u9304",manageAccount:"\u7BA1\u7406\u8CEC\u6236",logout:"\u9000\u51FA",curentPlan:"\u7576\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u671F",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u64CA\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u8AAA\u660E",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u9644\u52A0\u5143\u4EF6\u7BA1\u7406\u9801\u9762 \u300Cabout:addons\u300D\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u5716\u793A\u300D\uFF0C\u518D\u9EDE\u9078\u300C\u7BA1\u7406\u64F4\u5145\u5957\u4EF6\u5FEB\u901F\u9375\u300D\u5373\u53EF\u8A2D\u5B9A",browserShortcutsNoteForChrome:"Chromium \u6838\u5FC3\u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u64F4\u5145\u529F\u80FD\u7BA1\u7406\u9801\u9762\uFF0C\u5728\u300C\u9375\u76E4\u5FEB\u901F\u9375\u300D\u9801\u9762(chrome://extensions/shortcuts)\u8A2D\u5B9A\uFF0C\u9EDE\u9078\u4E0B\u65B9\u6309\u9215\u524D\u5F80\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u901F\u9375\u683C\u5F0F\u70BA\uFF1A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F: \u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F & PDF\u6587\u6A94\u7FFB\u8B6F","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7DB2\u9801\u96D9\u8A9E\u7FFB\u8B6F\u64F4\u5C55\uFF0C\u540C\u6642\u652F\u6301 PDF \u7FFB\u8B6F\uFF0C\u96D9\u8A9E Epub \u96FB\u5B50\u66F8\u88FD\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u9A30\u8A0A\u7FFB\u8B6F\u7B49\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF0C\u514D\u8CBB\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8B6F\u4E26\u96B1\u85CF\u539F\u6587/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.toggleTranslationMask":"\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.donateContext":"\u4E86\u89E3\u8D0A\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u5247\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u6642\u89F8\u78B0\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801(\u50C5\u8B6F\u6587)/\u986F\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304","fingers.0":"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478",mouseHoldKey:"+ {key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u6377\u9375(\u6253\u958B\u8A2D\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoverHoldKey:"\u9F20\u6A19\u6ED1\u904E\u540C\u6642\u6309\u4E0B X \u9375\u7FFB\u8B6F\u6BB5\u843D","mouse-translate":"\u9F20\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",goAdvancedSettings:"\u524D\u5F80\u9032\u968E\u8A2D\u5B9A\u9801\u9762",goAdvancedInterfaceSettings:"\u524D\u5F80\u81EA\u8A02\u8A2D\u5B9A\u9801\u9762",advanced:"\u9032\u968E\u8A2D\u5B9A",advancedDescription:"\u6B63\u5E38\u60C5\u6CC1\u7121\u9700\u8A2D\u5B9A\uFF0C\u4FDD\u6301\u9810\u8A2D\u5373\u53EF\u3002\u50C5\u91DD\u5C0D\u66F4\u5C08\u696D\u7684\u4F7F\u7528\u8005\uFF0C\u63D0\u4F9B\u66F4\u500B\u4EBA\u5316\u7684\u8A2D\u5B9A\u9805\u76EE\u3002",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00","display both the original text and the translation":"\u540C\u6642\u986F\u793A\u539F\u6587\u548C\u8B6F\u6587","keyboard shortcuts":"\u9375\u76E4\u5FEB\u901F\u9375",modify:"\u8B8A\u66F4\u5FEB\u901F\u9375",reset:"\u91CD\u8A2D",close:"\u95DC\u9589",homepage:"\u9996\u9801",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",changeToOnlyTranslationMode:"\u5207\u63DB\u70BA\u50C5\u986F\u793A\u8B6F\u6587",changeToDualTranslationMode:"\u5207\u63DB\u70BA\u96D9\u8A9E\u7FFB\u8B6F",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:"\u672A\u77E5\u7684\u932F\u8AA4",canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u9078\u9805",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",needActionForOptions:"(\u9700\u8A2D\u5B9A)",translationEngine:"\u5F15\u64CE\u9078\u9805",sourceLanguage:"\u539F\u6587\u8A9E\u8A00",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",forThisSite:"\u7576\u524D\u7DB2\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8B6F {language}",alwaysTranslateSomeSite:"\u7E3D\u662F\u7FFB\u8B6F {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8B6F {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u65B0\u589E",default:"\u9810\u8A2D",forThisLanguage:"\u91DD\u5C0D\u8A72\u8A9E\u8A00\uFF1A","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F","translate other languages into specific language":"\u5C07\u5176\u5B83\u8A9E\u8A00\u7FFB\u8B6F\u70BA\u4F60\u8A2D\u5B9A\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9",language:"\u8A9E\u8A00","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",Error:"\u932F\u8AA4",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",interface:"\u4ECB\u9762\u8A2D\u5B9A",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65",syncToAccount:"\u540C\u6B65\u5230\u8CEC\u6236",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u8CEC\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u8A2D\u5099\u4E4B\u9593\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u8CEC\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u8CEC\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8B6F","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9E\u99AC\u905C\u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8B6F\u9801\u9762\u6A19\u984C","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F",enableUserscriptPagePopup:"\u5728\u9801\u9762\u4E0A\u986F\u793A\u61F8\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528\u5FEB\u901F\u9375/{touch}\u518D\u6B21\u986F\u793A\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5EFA\u8B70\u5C07\u672C\u8A2D\u5B9A\u9801\u9762\u52A0\u5165\u81F3\u6211\u7684\u6700\u611B","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8B6F\u6587\u6A23\u5F0F",currentUrl:"\u76EE\u524D\u7DB2\u5740",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6E96\u3002",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",upload:"\u4E0A\u50B3",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",download:"\u4E0B\u8F09",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",deleteFail:"\u522A\u9664\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",backupToCloudDescription:"\u624B\u52D5\u4E0A\u50B3\u6216\u9084\u539F\u5099\u4EFD\u6A94\u6848\uFF0C\u6700\u591A\u5141\u8A31 3 \u500B\u4E0D\u540C\u7684\u5099\u4EFD",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",updatedAt:"\u66F4\u65B0\u65BC {date}",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u4EEC\u7684<3>Twitter\uFF0C<4>Telegram \u983B\u9053\u4EE5\u53CA\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u90F5\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u983B\u9053",joinTelegramChannel:"\u95DC\u6CE8 Telegram \u983B\u9053\u77AD\u89E3\u66F4\u65B0\u8CC7\u8A0A",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",autoSync:"\u81EA\u52D5\u5B9A\u6642\u540C\u6B65",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6","edit border color":"\u8B8A\u66F4\u908A\u6846\u8272\u5F69",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",enableSubtitle:"\u958B\u555F\u5B57\u5E55\u7FFB\u8B6F",enableSubtitleDescription:"\u91DD\u5C0D youtube \u7B49\u7DB2\u7AD9\u7684\u5B57\u5E55\u5340\u57DF\u958B\u555F\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",enableSearchEnhancement:"\u958B\u555F\u641C\u7D22\u589E\u5F37",enableSearchEnhancementDescription:"\u4E2D\u6587\u641C\u7D22\u8C37\u6B4C\u6703\u5728\u53F3\u908A\u51FA\u73FE\u82F1\u6587\u7248\u8C37\u6B4C\u65B0\u805E",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerMinute":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u5206\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u4EFD\u50B3\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u85A6\uFF09, \u5C07\u6703\u5728\u55AE\u7368\u4F5C\u70BA\u4E00\u6BB5\u767C\u9001\u7D66 OpenAI","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u50B3\u9001\u767C\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",clickToDisableExtension:"\u9EDE\u9078\u505C\u7528\u5957\u4EF6",clickToEnableExtension:"\u9EDE\u9078\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u9F20\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u7F6E\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u5B57\u7B26\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8B58\u5225\u70BA\u89F8\u767C\u5B57\u7B26\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u7981\u7528\u78BA\u8A8D",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",disableTint:"* \u60A8\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u555F\u7528\u3002",searchEnhancementNotes:"\u6211\u5011\u767C\u73FE\uFF0C\u4E2D\u6587\u95DC\u9375\u8A5E\u548C\u82F1\u6587\u95DC\u9375\u8A5E\u7684\u65B0\u805E\u7D50\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u555F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u4FE1\u606F\u589E\u5F37\u529F\u80FD\u5F8C\uFF0C\u6211\u5011\u6703\u5728\u652F\u6301\u7684\u7DB2\u7AD9\uFF08\u8C37\u6B4C\u65B0\u805E\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u95DC\u9375\u8A5E\uFF09\uFF0C\u96EA\u7403\uFF0C\u6771\u65B9\u8CA1\u5BCC\u7DB2\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52D5\u7528\u82F1\u6587\u70BA\u4F60\u641C\u7D22\u540C\u6A23\u7684\u95DC\u9375\u8A5E\u4E26\u5C55\u793A\u5728\u53F3\u5074\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8A72\u529F\u80FD\u7684\u8A71\uFF0C\u53EF\u4EE5\u9078\u64C7\u7981\u7528\u5B83\u3002",option:"\u9078\u9805",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL \u548C OpenAI \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8B6F",currentAccount:"\u7576\u524D\u8CEC\u6236"};var fc={nologin:"Not logged in",login:"Login",manageAccount:"Manage Account",logout:"Logout",curentPlan:"Current Plan",endAt:"Expires",endAuto:"Auto Renew",lineBreakMaxTextCount:"Maximum number of characters allowed per sentence after line break","translate-pdf":"Click to translate PDF","noSupportTranslate-pdf":"The script is not supported, please use a plugin.","translate-firefox-local-pdf":"Click to upload PDF",enableLineBreak:"Whether to turn on automatic line wrapping for long paragraphs",sponsorLabel:"Sponsoring developers from $1 (monthly or one-time)",help:"Help",browserShortcutsNoteForFirefox:`To modify the shortcut key in Firefox browser, you need to open the extension management page 'about: addons', then click "Settings", and then click "Management shortcut key" to set it`,browserShortcutsNoteForChrome:"To modify the shortcut key in Chrome browser, you need to open the extension management page` chrome://extensions/shortcuts `) Settings, click the button below to jump to the shortcut key management page.",browserShortcutsSucks:"Please enter the shortcut key manually in the format:",enableLineBreakDescription:"After opening, a line break will be inserted at the end of each sentence in a long paragraph for easy reading","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate: Web Page&PDF Translation","browser.brandDescription":"Bilingual web page translation, also supports PDF translation, bilingual Epub eBook translation, free to use.","browser.toggleTranslatePage":"Toggle Translate Page","browser.toggleTranslateTheWholePage":"Toggle Translate the Whole Page","browser.toggleOnlyTransation":"Toggle Translate and Hide Original Text","browser.toggleTranslateToThePageEndImmediately":"Toggle Translate to the Bottom of the Page Immediately","browser.toggleTranslateTheMainPage":"Toggle Translate the Main Page","browser.openOptionsPage":"Open Settings Page","browser.toggleTranslationMask":"Toggle translation mask style","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-book","browser.openEbookBuilder":"Make Dual EPUB ebook","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.donateContext":"Sponsor Benefits","browser.translateLocalSubtitleFile":"Translate Subtitle File",confirmResetConfig:"Are you sure you want to reset the settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Create right button menu",toggleBeta:"Enable Beta experimental features",betaDescription:"Enable features that are still experimental, and translation services that are in testing. Join the <1>Telegram group to learn more.",translationLineBreakSettingDescription:"The always line break feature is suitable for layouts with less content, making the layout more neat and tidy. (Use smart line breaks for long paragraphs with more content (more than {count} characters) for saving space)",tempTranslateDomainTitle:"Open the translation time temporarily",tempTranslateDomainDescription:"When a page is translated manually, turn it temporarily on as automatic translation",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",toggleTranslatePageWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide translation display",toggleTranslationMaskWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide the blur effect of the translation",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"Multi-finger touch to show/hide only translation display",addUrlDescription:"The domain name is available and wildcard is supported e.g.: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import configuration from file",export:"Export to file",toggleDebug:"Print debug logs on the console","fingers.0":"Close","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch",mouseHoldKey:"+ {key} translate this paragraph",mouseHoldKeyAuto:"Translate the paragraph directly",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate this paragraph",mouseHoverHoldKey:"Mouse over and press X key to translate paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"All settings reset successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",goAdvancedSettings:"Go to Advanced Settings Page",goAdvancedInterfaceSettings:"Go to Advanced Custom Settings Page",advanced:"Advanced",advancedDescription:"Normally no settings are needed, keep the default. More personalized settings are provided for professional users only.",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"Translate to the bottom of the page immediately after opening the page?",feedback:"Feedback",toggleTranslatePage:"Toggle Translate",translateToThePageEndImmediatelyDescription:"Enabled will translate from the top to the bottom of the page immediately after opening. Disable will translate while reading. (Not recommended to enable)","translate all areas of the page":"Whether to translate all areas of the web page",translationAreaDescription:"When enabled, all areas of the entire web page will be translated. Disabled will use the default smart recognition and translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Directly translate the number of characters in front of the page without waiting to scroll to the visible area","interface language":"Interface language","display both the original text and the translation":"Display both the original text and the translation","keyboard shortcuts":"Keyboard shortcuts",modify:"Edit",reset:"Reset",close:"Close",homepage:"Home Page",more:"More",moreOptions:"Expand more custom settings",translateTheWholePage:"Translate the whole page area",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Dual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"Main areas of intelligent translation","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly implement the interface of the Greasemonkey extension, please use another browser that <1>supports the Greasemonkey extension such as (Firefox Nightly version)",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:"Unknown Error",canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha enabled successfully",disableAlphaSuccess:"Alpha has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(to set up)",goSettings:"to set up",needActionForOptions:"(need to set)",translationEngine:"Engine Options",sourceLanguage:"Original language",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",forThisSite:"Site:",alwaysTranslateSomeLanguage:"Always translate {language}",neverTranslateSomeLanguage:"Never translate {language}",alwaysTranslateSomeSite:"Always translate {hostname}",neverTranslateSomeSite:"Never translate {hostname}",alwaysTranslateSomeSiteOrWildSite:"Always translate this site",alwaysTranslateSomePage:"Always translate this page",add:"Add",default:"Default",forThisLanguage:"For This Language:","add url":"Add URL",edit:"Edit","translate other languages into specific language":"Translate other languages into the language you set","select translation service":"Select a translation service",language:"Language","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",Error:"Error",allowCacheTranslations:"Enable local translation caching (reduce translation requests for duplicate paragraphs)","translation display":"Translation display style","select diplay style":"Please refer to the following examples",interface:"Interface Settings",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dashed underline","translationTheme.dotted":"Dotted Underline","translationTheme.dashedBorder":"Dashed Border","translationTheme.solidBorder":"Dashed Border","translationTheme.underline":"Straight underline","translationTheme.mask":"Blur effect","translationTheme.opacity":"Opacity effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weakening","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dashed underline","translationTheme.nativeDashed":"System Dash Underline","translationTheme.nativeDotted":"System Dotted Underline","translationTheme.nativeUnderline":"System Straight Line Underline","translationTheme.wavy":"Squiggle","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeeplX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"Translate page title","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped",enableUserscriptPagePopup:"Always show Popup windows on the page",enableUserscriptPagePopupDescription:"Three-finger touch to show the Popup.","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",currentUrl:"Current URL",confirm:"Save",cancel:"Cancel",delete:"Delete","languages.auto":"Detect Language",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",authFail:"Authorization Failed",syncTitle:"Please select a file operation",import_hint:"Import",upload:"Upload",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",download:"Download",importSuccess:"Upload Success",importFail:"Import Failed",deleteFail:"Delete Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",backupToCloudDescription:"Upload or restore backup files manually, up to 3 different backups",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",updatedAt:"Updated at {date}",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. You can choose to subscribe to <6>Pro membership to use the out-of-the-box DeepL and OpenAI translation.

You can also follow out <3>Twitter, <4>Telegram Channel, and <5>Email Subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free and we hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. ",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",qqCommunities:"QQ Channel",joinTelegramChannel:"Subscribe to our Telegram channel to get the latest updates",feedbackAndJoin:"Feedback",autoSync:"Auto-Time Sync",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization","edit border color":"Edit border color",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",enableSubtitle:"enableSubtitleTranslation",enableSubtitleDescription:"Enable translations for subtitle areas on sites like youtube",isTranslateTitleDescription:"When enabled, the page title will be translated",enableSearchEnhancement:"Enable Search Enhancement",enableSearchEnhancementDescription:'After enabling, the right sidebar will automatically display "Google News" search results for corresponding English keywords on supported websites (such as Google News, Google Search (partial keywords), Xueqiu, East Money, Futu, Tiger Community).',verifyService:"Verify service",verified:"Successful","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerMinute":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next minute. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"Requests exceed this limit will be queued until the next seconds.","description.prompt":"Send as a user to OpenAI conversation, where {{text}} indicates the text of the paragraph,{{from}} indicates the language of the paragraph,{{to}} indicates the target language, you can omit {{text}}, if so, it'll be sent as a separated message","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"Send the conversation to OpenAI as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the original language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"Default is\uFF1Ageneral. Only set up if there is an API console open domain translation, support fields see <1>Here ","field.scene":"Scene","description.scene":"Default is\uFF1Ageneral. Only set up if there is an API console open Machine Translation Professional, support fields see<1>Here","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please provide a URL with the specific path.",enabledExtension:"Enable extensions",clickToDisableExtension:"Click to disable extension",clickToEnableExtension:"Click to enable the extension",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter customization content",inputOptions:"Writing",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter for translating part of the input box.",inputStartingTriggerKeyDescription:"When you don't need to translate the entire input box, the delimiter allows you to only translate the portion from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means only translating the portion from {startingKey}ja to the end of the input box.",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting is no prefix required, the partial text translation function of the input box cannot be used temporarily.",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Start the translation by quickly pressing 3 times {trailingKey}.",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time (milliseconds) for the input to end the combo trigger",spaceKey:"",noneKey:"Translate the entire text box without prefixes",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement in the following URL",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",clickToSeeQuickDemo:"Click to expand the 30s tutorial video",inputHelperInfo:`Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001". +`,PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",OPTIONS_URL:"https://dash.immersivetranslate.com/",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",MOCK:"0",DEBUG:"0",INSTALL_FROM:"chrome_zip"}});var im=jf((po,Jr)=>{p();(function(){var e;function t(d){var b,T,h="",C=-1,v;if(d&&d.length)for(v=d.length;(C+=1)>>6&31,128|b&63):b<=65535?h+=String.fromCharCode(224|b>>>12&15,128|b>>>6&63,128|b&63):b<=2097151&&(h+=String.fromCharCode(240|b>>>18&7,128|b>>>12&63,128|b>>>6&63,128|b&63));return h}function n(d){var b,T,h,C,v,O=[],B;if(b=T=h=C=v=0,d&&d.length)for(B=d.length,d+="";b191&&h<224?(C=d.charCodeAt(b+1),O[T]=String.fromCharCode((h&31)<<6|C&63),b+=2):(C=d.charCodeAt(b+1),v=d.charCodeAt(b+2),O[T]=String.fromCharCode((h&15)<<12|(C&63)<<6|v&63),b+=3);return O.join("")}function a(d,b){var T=(d&65535)+(b&65535),h=(d>>16)+(b>>16)+(T>>16);return h<<16|T&65535}function r(d,b){return d<>>32-b}function u(d,b){for(var T=b?"0123456789ABCDEF":"0123456789abcdef",h="",C,v=0,O=d.length;v>>4&15)+T.charAt(C&15);return h}function o(d){var b,T=d.length,h="";for(b=0;b>>8&255);return h}function i(d){var b,T=d.length,h="";for(b=0;b>>8&255,d.charCodeAt(b)&255);return h}function s(d){var b,T=d.length*32,h="";for(b=0;b>5]>>>24-b%32&255);return h}function c(d){var b,T=d.length*32,h="";for(b=0;b>5]>>>b%32&255);return h}function l(d){var b,T=d.length*8,h=Array(d.length>>2),C=h.length;for(b=0;b>5]|=(d.charCodeAt(b/8)&255)<>2),C=h.length;for(b=0;b>5]|=(d.charCodeAt(b/8)&255)<<24-b%32;return h}function g(d,b){var T=b.length,h=Array(),C,v,O,B,x,L,M,w;for(L=Array(Math.ceil(d.length/2)),B=L.length,C=0;C0;){for(x=Array(),O=0,C=0;C0||v>0)&&(x[x.length]=v);h[h.length]=O,L=x}for(M="",C=h.length-1;C>=0;C--)M+=b.charAt(h[C]);for(w=Math.ceil(d.length*8/(Math.log(b.length)/Math.log(2))),C=M.length;Cd.length*8?h+=b:h+=T.charAt(B>>>6*(3-O)&63);return h}e={VERSION:"1.0.6",Base64:function(){var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b="=",T=!1,h=!0;this.encode=function(C){var v,O,B,x="";for(b=b||"=",C=h?t(C):C,len=C.length,v=0;vlen*8?x+=b:x+=d.charAt(B>>>6*(3-O)&63);return x},this.decode=function(C){var v,O,B,x,L,M,w,E,I,F,A="",_=[];if(!C)return C;v=F=0,C=C.replace(new RegExp("\\"+b,"gi"),"");do L=d.indexOf(C.charAt(v++)),M=d.indexOf(C.charAt(v++)),w=d.indexOf(C.charAt(v++)),E=d.indexOf(C.charAt(v++)),I=L<<18|M<<12|w<<6|E,O=I>>16&255,B=I>>8&255,x=I&255,F+=1,w===64?_[F]=String.fromCharCode(O):E===64?_[F]=String.fromCharCode(O,B):_[F]=String.fromCharCode(O,B,x);while(v>>8^T;return(b^-1)>>>0},MD5:function(d){var b=d&&typeof d.uppercase=="boolean"?d.uppercase:!1,T=d&&typeof d.pad=="string"?d.pad:"=",h=d&&typeof d.utf8=="boolean"?d.utf8:!0;this.hex=function(E){return u(C(E,h),b)},this.b64=function(E){return f(C(E),T)},this.any=function(E,I){return g(C(E,h),I)},this.raw=function(E){return C(E,h)},this.hex_hmac=function(E,I){return u(v(E,I),b)},this.b64_hmac=function(E,I){return f(v(E,I),T)},this.any_hmac=function(E,I,F){return g(v(E,I),F)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(E){return typeof E=="boolean"&&(b=E),this},this.setPad=function(E){return T=E||T,this},this.setUTF8=function(E){return typeof E=="boolean"&&(h=E),this};function C(E){return E=h?t(E):E,c(O(l(E),E.length*8))}function v(E,I){var F,A,_,j,N;for(E=h?t(E):E,I=h?t(I):I,F=l(E),F.length>16&&(F=O(F,E.length*8)),A=Array(16),_=Array(16),N=0;N<16;N+=1)A[N]=F[N]^909522486,_[N]=F[N]^1549556828;return j=O(A.concat(l(I)),512+I.length*8),c(O(_.concat(j),512+128))}function O(E,I){var F,A,_,j,N,D=1732584193,y=-271733879,S=-1732584194,R=271733878;for(E[I>>5]|=128<>>9<<4)+14]=I,F=0;F16&&(w=O(w,L.length*8)),E=Array(16),I=Array(16),F=0;F<16;F+=1)E[F]=w[F]^909522486,I[F]=w[F]^1549556828;return A=O(E.concat(m(M)),512+M.length*8),s(O(I.concat(A),512+160))}function O(L,M){var w,E,I,F,A,_,j,N,D=Array(80),y=1732584193,S=-271733879,R=-1732584194,$=271733878,z=-1009589776;for(L[M>>5]|=128<<24-M%32,L[(M+64>>9<<4)+15]=M,w=0;w16&&(z=D(z,y.length*8));$<16;$+=1)Y[$]=z[$]^909522486,q[$]=z[$]^1549556828;return R=D(Y.concat(m(S)),512+S.length*8),s(D(q.concat(R),512+256))}function B(y,S){return y>>>S|y<<32-S}function x(y,S){return y>>>S}function L(y,S,R){return y&S^~y&R}function M(y,S,R){return y&S^y&R^S&R}function w(y){return B(y,2)^B(y,13)^B(y,22)}function E(y){return B(y,6)^B(y,11)^B(y,25)}function I(y){return B(y,7)^B(y,18)^x(y,3)}function F(y){return B(y,17)^B(y,19)^x(y,10)}function A(y){return B(y,28)^B(y,34)^B(y,39)}function _(y){return B(y,14)^B(y,18)^B(y,41)}function j(y){return B(y,1)^B(y,8)^x(y,7)}function N(y){return B(y,19)^B(y,61)^x(y,6)}C=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function D(y,S){var R=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],$=new Array(64),z,Y,q,ae,Q,G,pe,he,re,K,oe,me;for(y[S>>5]|=128<<24-S%32,y[(S+64>>9<<4)+15]=S,re=0;re32&&(y=B(y,_.length*8));D<32;D+=1)S[D]=y[D]^909522486,R[D]=y[D]^1549556828;return N=B(S.concat(m(j)),1024+j.length*8),s(B(R.concat(N),1024+512))}function B(_,j){var N,D,y,S=new Array(80),R=new Array(16),$=[new x(1779033703,-205731576),new x(-1150833019,-2067093701),new x(1013904242,-23791573),new x(-1521486534,1595750129),new x(1359893119,-1377402159),new x(-1694144372,725511199),new x(528734635,-79577749),new x(1541459225,327033209)],z=new x(0,0),Y=new x(0,0),q=new x(0,0),ae=new x(0,0),Q=new x(0,0),G=new x(0,0),pe=new x(0,0),he=new x(0,0),re=new x(0,0),K=new x(0,0),oe=new x(0,0),me=new x(0,0),ce=new x(0,0),ye=new x(0,0),Se=new x(0,0),xe=new x(0,0),Z=new x(0,0);for(C===void 0&&(C=[new x(1116352408,-685199838),new x(1899447441,602891725),new x(-1245643825,-330482897),new x(-373957723,-2121671748),new x(961987163,-213338824),new x(1508970993,-1241133031),new x(-1841331548,-1357295717),new x(-1424204075,-630357736),new x(-670586216,-1560083902),new x(310598401,1164996542),new x(607225278,1323610764),new x(1426881987,-704662302),new x(1925078388,-226784913),new x(-2132889090,991336113),new x(-1680079193,633803317),new x(-1046744716,-815192428),new x(-459576895,-1628353838),new x(-272742522,944711139),new x(264347078,-1953704523),new x(604807628,2007800933),new x(770255983,1495990901),new x(1249150122,1856431235),new x(1555081692,-1119749164),new x(1996064986,-2096016459),new x(-1740746414,-295247957),new x(-1473132947,766784016),new x(-1341970488,-1728372417),new x(-1084653625,-1091629340),new x(-958395405,1034457026),new x(-710438585,-1828018395),new x(113926993,-536640913),new x(338241895,168717936),new x(666307205,1188179964),new x(773529912,1546045734),new x(1294757372,1522805485),new x(1396182291,-1651133473),new x(1695183700,-1951439906),new x(1986661051,1014477480),new x(-2117940946,1206759142),new x(-1838011259,344077627),new x(-1564481375,1290863460),new x(-1474664885,-1136513023),new x(-1035236496,-789014639),new x(-949202525,106217008),new x(-778901479,-688958952),new x(-694614492,1432725776),new x(-200395387,1467031594),new x(275423344,851169720),new x(430227734,-1194143544),new x(506948616,1363258195),new x(659060556,-544281703),new x(883997877,-509917016),new x(958139571,-976659869),new x(1322822218,-482243893),new x(1537002063,2003034995),new x(1747873779,-692930397),new x(1955562222,1575990012),new x(2024104815,1125592928),new x(-2067236844,-1578062990),new x(-1933114872,442776044),new x(-1866530822,593698344),new x(-1538233109,-561857047),new x(-1090935817,-1295615723),new x(-965641998,-479046869),new x(-903397682,-366583396),new x(-779700025,566280711),new x(-354779690,-840897762),new x(-176337025,-294727304),new x(116418474,1914138554),new x(174292421,-1563912026),new x(289380356,-1090974290),new x(460393269,320620315),new x(685471733,587496836),new x(852142971,1086792851),new x(1017036298,365543100),new x(1126000580,-1676669620),new x(1288033470,-885112138),new x(1501505948,-60457430),new x(1607167915,987167468),new x(1816402316,1246189591)]),D=0;D<80;D+=1)S[D]=new x(0,0);for(_[j>>5]|=128<<24-(j&31),_[(j+128>>10<<5)+31]=j,y=_.length,D=0;D>>N|j.h<<32-N,_.h=j.h>>>N|j.l<<32-N}function w(_,j,N){_.l=j.h>>>N|j.l<<32-N,_.h=j.l>>>N|j.h<<32-N}function E(_,j,N){_.l=j.l>>>N|j.h<<32-N,_.h=j.h>>>N}function I(_,j,N){var D=(j.l&65535)+(N.l&65535),y=(j.l>>>16)+(N.l>>>16)+(D>>>16),S=(j.h&65535)+(N.h&65535)+(y>>>16),R=(j.h>>>16)+(N.h>>>16)+(S>>>16);_.l=D&65535|y<<16,_.h=S&65535|R<<16}function F(_,j,N,D,y){var S=(j.l&65535)+(N.l&65535)+(D.l&65535)+(y.l&65535),R=(j.l>>>16)+(N.l>>>16)+(D.l>>>16)+(y.l>>>16)+(S>>>16),$=(j.h&65535)+(N.h&65535)+(D.h&65535)+(y.h&65535)+(R>>>16),z=(j.h>>>16)+(N.h>>>16)+(D.h>>>16)+(y.h>>>16)+($>>>16);_.l=S&65535|R<<16,_.h=$&65535|z<<16}function A(_,j,N,D,y,S){var R=(j.l&65535)+(N.l&65535)+(D.l&65535)+(y.l&65535)+(S.l&65535),$=(j.l>>>16)+(N.l>>>16)+(D.l>>>16)+(y.l>>>16)+(S.l>>>16)+(R>>>16),z=(j.h&65535)+(N.h&65535)+(D.h&65535)+(y.h&65535)+(S.h&65535)+($>>>16),Y=(j.h>>>16)+(N.h>>>16)+(D.h>>>16)+(y.h>>>16)+(S.h>>>16)+(z>>>16);_.l=R&65535|$<<16,_.h=z&65535|Y<<16}},RMD160:function(d){var b=d&&typeof d.uppercase=="boolean"?d.uppercase:!1,T=d&&typeof d.pad=="string"?d.pa:"=",h=d&&typeof d.utf8=="boolean"?d.utf8:!0,C=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],v=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],O=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],B=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(A){return u(x(A,h))},this.b64=function(A){return f(x(A,h),T)},this.any=function(A,_){return g(x(A,h),_)},this.raw=function(A){return x(A,h)},this.hex_hmac=function(A,_){return u(L(A,_))},this.b64_hmac=function(A,_){return f(L(A,_),T)},this.any_hmac=function(A,_,j){return g(L(A,_),j)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(A){return typeof A=="boolean"&&(b=A),this},this.setPad=function(A){return typeof A<"u"&&(T=A),this},this.setUTF8=function(A){return typeof A=="boolean"&&(h=A),this};function x(A){return A=h?t(A):A,M(w(l(A),A.length*8))}function L(A,_){A=h?t(A):A,_=h?t(_):_;var j,N,D=l(A),y=Array(16),S=Array(16);for(D.length>16&&(D=w(D,A.length*8)),j=0;j<16;j+=1)y[j]=D[j]^909522486,S[j]=D[j]^1549556828;return N=w(y.concat(l(_)),512+_.length*8),M(w(S.concat(N),512+160))}function M(A){var _,j="",N=A.length*32;for(_=0;_>5]>>>_%32&255);return j}function w(A,_){var j,N,D,y,S=1732584193,R=4023233417,$=2562383102,z=271733878,Y=3285377520,q,ae,Q,G,pe,he,re,K,oe,me;for(A[_>>5]|=128<<_%32,A[(_+64>>>9<<4)+14]=_,y=A.length,D=0;D"u"&&typeof Deno<"u"?Deno.env.toObject():P}var Ee=Qe();function fe(){return Ee.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function Pn(){return Ee.PROD==="1"}function Mn(){return Ee.PROD_API==="1"}function mc(){return Ee.HAS_CSP_ERROR=="1"}function Xt(){if(Ee.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function xu(){return typeof Deno<"u"}var k5=Qe().PROD==="1",Na=Qe().PROD!=="1";function Eu(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}var gc={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",curentPlan:"\u5F53\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52A8\u7EED\u671F",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",sponsorLabel:"$1 \u8D77\u8D5E\u52A9\u5F00\u53D1\u8005",help:"\u5E2E\u52A9",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D\uFF0C\u518D\u70B9\u51FB\u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D\u5373\u53EF\u8BBE\u7F6E",browserShortcutsNoteForChrome:"\u7C7BChrome \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762\uFF0C\u5728`\u7BA1\u7406\u5FEB\u6377\u952E`\u9762\u677F(`chrome://extensions/shortcuts`)\u8BBE\u7F6E\uFF0C\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8DF3\u8F6C\u5230\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E\u683C\u5F0F\u4E3A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1: \u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1 & PDF\u6587\u6863\u7FFB\u8BD1","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7F51\u9875\u53CC\u8BED\u7FFB\u8BD1\u6269\u5C55\uFF0C\u540C\u65F6\u652F\u6301 PDF \u7FFB\u8BD1\uFF0C\u53CC\u8BED Epub \u7535\u5B50\u4E66\u5236\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u817E\u8BAF\u7FFB\u8BD1\u7B49\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\uFF0C\u514D\u8D39\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8BD1\u5E76\u9690\u85CF\u539F\u6587/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.toggleTranslationMask":"\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.donateContext":"\u4E86\u89E3\u8D5E\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5219\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875(\u4EC5\u8BD1\u6587)/\u663E\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7","fingers.0":"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478",mouseHoldKey:"+ {key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoverHoldKey:"\u9F20\u6807\u60AC\u505C\u540C\u65F6\u6309\u4E0B\u5FEB\u6377\u952E\u7FFB\u8BD1\u6BB5\u843D","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u6587\u6863",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",goAdvancedSettings:"\u53BB\u8FDB\u9636\u8BBE\u7F6E\u9875",goAdvancedInterfaceSettings:"\u53BB\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u8BBE\u7F6E\u9875\u9762",advanced:"\u8FDB\u9636\u8BBE\u7F6E",advancedDescription:"\u4E00\u822C\u65E0\u9700\u8BBE\u7F6E\uFF0C\u4FDD\u6301\u9ED8\u8BA4\u5373\u53EF\u3002\u4EC5\u5BF9\u4E8E\u66F4\u4E13\u4E1A\u7684\u7528\u6237\uFF0C\u63D0\u4F9B\u66F4\u4E2A\u6027\u5316\u7684\u8BBE\u7F6E\u9879\u3002",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00","display both the original text and the translation":"\u540C\u65F6\u663E\u793A\u539F\u6587\u548C\u8BD1\u6587","keyboard shortcuts":"\u952E\u76D8\u5FEB\u6377\u952E",modify:"\u4FEE\u6539\u5FEB\u6377\u952E",reset:"\u91CD\u7F6E",close:"\u5173\u95ED",homepage:"\u4E3B\u9875",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",changeToOnlyTranslationMode:"\u5207\u6362\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u5207\u6362\u4E3A\u53CC\u8BED\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",unknownError:"\u672A\u77E5\u9519\u8BEF",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",needActionForOptions:"(\u9700\u8BBE\u7F6E)",translationEngine:"\u5F15\u64CE\u9009\u9879",sourceLanguage:"\u539F\u6587\u8BED\u8A00",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",forThisSite:"\u5F53\u524D\u7F51\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1 {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8BD1 {language}",alwaysTranslateSomeSite:"\u603B\u662F\u7FFB\u8BD1 {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8BD1 {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u6DFB\u52A0",default:"\u9ED8\u8BA4",forThisLanguage:"\u9488\u5BF9\u8BE5\u8BED\u8A00\uFF1A","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91","translate other languages into specific language":"\u5C06\u5176\u4ED6\u8BED\u8A00\u7FFB\u8BD1\u4E3A\u4F60\u8BBE\u7F6E\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1",language:"\u8BED\u8A00","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",Error:"\u9519\u8BEF",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",interface:"\u754C\u9762\u8BBE\u7F6E",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8BD1\u9875\u9762\u6807\u9898","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1",enableUserscriptPagePopup:"\u5728\u9875\u9762\u4E0A\u663E\u793A\u60AC\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528\u5FEB\u6377\u952E/{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8BD1\u6587\u6837\u5F0F",currentUrl:"\u5F53\u524D\u7F51\u5740",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664","languages.auto":"\u81EA\u52A8\u68C0\u6D4B",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",upload:"\u4E0A\u4F20",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",download:"\u4E0B\u8F7D",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",deleteFail:"\u5220\u9664\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",backupToCloudDescription:"\u624B\u52A8\u4E0A\u4F20\u6216\u6062\u590D\u5907\u4EFD\u6587\u4EF6\uFF0C\u6700\u591A\u5141\u8BB83\u4E2A\u4E0D\u540C\u7684\u5907\u4EFD",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",updatedAt:"\u66F4\u65B0\u4E8E {date}",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u9891\u9053",joinTelegramChannel:"\u5173\u6CE8 Telegram \u9891\u9053\u83B7\u53D6\u6700\u65B0\u66F4\u65B0",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",autoSync:"\u81EA\u52A8\u5B9A\u65F6\u540C\u6B65",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863","edit border color":"\u4FEE\u6539\u8FB9\u6846\u989C\u8272",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",enableSubtitle:"\u5F00\u542F\u5B57\u5E55\u7FFB\u8BD1",enableSubtitleDescription:"\u9488\u5BF9 youtube \u7B49\u7F51\u7AD9\u7684\u5B57\u5E55\u533A\u57DF\u5F00\u542F\u7FFB\u8BD1",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",enableSearchEnhancement:"\u542F\u7528\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A",enableSearchEnhancementDescription:"\u5F00\u542F\u540E\uFF0C\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\u793E\u533A\uFF09\u53F3\u8FB9\u680F\u81EA\u52A8\u663E\u793A\u5BF9\u5E94\u82F1\u6587\u5173\u952E\u8BCD\u7684\u201C\u8C37\u6B4C\u65B0\u95FB\u201D\u641C\u7D22\u7ED3\u679C\u3002",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerMinute":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u5206\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u8350\uFF09, \u5C06\u4F1A\u5728\u5355\u72EC\u4F5C\u4E3A\u4E00\u6BB5\u53D1\u9001\u7ED9 OpenAI","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740",enabledExtension:"\u542F\u7528\u6269\u5C55",clickToDisableExtension:"\u70B9\u51FB\u7981\u7528\u6269\u5C55",clickToEnableExtension:"\u70B9\u51FB\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",modifyMouseHoverKey:"\u4FEE\u6539\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u8BBE\u7F6E",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",disableTint:"* \u4F60\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u542F\u7528\u3002",searchEnhancementNotes:"\u6211\u4EEC\u53D1\u73B0\uFF0C\u4E2D\u6587\u5173\u952E\u8BCD\u548C\u82F1\u6587\u5173\u952E\u8BCD\u7684\u65B0\u95FB\u7ED3\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u542F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u529F\u80FD\u540E\uFF0C\u6211\u4EEC\u4F1A\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\u7F51\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52A8\u7528\u82F1\u6587\u4E3A\u4F60\u641C\u7D22\u540C\u6837\u7684\u5173\u952E\u8BCD\u5E76\u5C55\u793A\u5728\u53F3\u4FA7\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8BE5\u529F\u80FD\u7684\u8BDD\uFF0C\u53EF\u4EE5\u9009\u62E9\u7981\u7528\u5B83\u3002",option:"\u8BBE\u7F6E",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",needLoginAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u81EA\u5B9A\u4E49)",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",onetime_7day:"7 \u5929\u4F53\u9A8C\u5305",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradePlan:"\u70B9\u6B64\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL \u548C OpenAI \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8BD1",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u8BBE\u7F6E\u5176\u4ED6\u5FEB\u6377\u952E\u6765\u89E6\u53D1\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1"};var pc={nologin:"\u672A\u767B\u9304",login:"\u767B\u9304",manageAccount:"\u7BA1\u7406\u8CEC\u6236",logout:"\u9000\u51FA",curentPlan:"\u7576\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u671F",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u64CA\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u8AAA\u660E",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u9644\u52A0\u5143\u4EF6\u7BA1\u7406\u9801\u9762 \u300Cabout:addons\u300D\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u5716\u793A\u300D\uFF0C\u518D\u9EDE\u9078\u300C\u7BA1\u7406\u64F4\u5145\u5957\u4EF6\u5FEB\u901F\u9375\u300D\u5373\u53EF\u8A2D\u5B9A",browserShortcutsNoteForChrome:"Chromium \u6838\u5FC3\u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u64F4\u5145\u529F\u80FD\u7BA1\u7406\u9801\u9762\uFF0C\u5728\u300C\u9375\u76E4\u5FEB\u901F\u9375\u300D\u9801\u9762(chrome://extensions/shortcuts)\u8A2D\u5B9A\uFF0C\u9EDE\u9078\u4E0B\u65B9\u6309\u9215\u524D\u5F80\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u901F\u9375\u683C\u5F0F\u70BA\uFF1A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F: \u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F & PDF\u6587\u6A94\u7FFB\u8B6F","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7DB2\u9801\u96D9\u8A9E\u7FFB\u8B6F\u64F4\u5C55\uFF0C\u540C\u6642\u652F\u6301 PDF \u7FFB\u8B6F\uFF0C\u96D9\u8A9E Epub \u96FB\u5B50\u66F8\u88FD\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u9A30\u8A0A\u7FFB\u8B6F\u7B49\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF0C\u514D\u8CBB\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8B6F\u4E26\u96B1\u85CF\u539F\u6587/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.toggleTranslationMask":"\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.donateContext":"\u4E86\u89E3\u8D0A\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u5247\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u6642\u89F8\u78B0\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801(\u50C5\u8B6F\u6587)/\u986F\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304","fingers.0":"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478",mouseHoldKey:"+ {key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u6377\u9375(\u6253\u958B\u8A2D\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoverHoldKey:"\u9F20\u6A19\u6ED1\u904E\u540C\u6642\u6309\u4E0B X \u9375\u7FFB\u8B6F\u6BB5\u843D","mouse-translate":"\u9F20\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",goAdvancedSettings:"\u524D\u5F80\u9032\u968E\u8A2D\u5B9A\u9801\u9762",goAdvancedInterfaceSettings:"\u524D\u5F80\u81EA\u8A02\u8A2D\u5B9A\u9801\u9762",advanced:"\u9032\u968E\u8A2D\u5B9A",advancedDescription:"\u6B63\u5E38\u60C5\u6CC1\u7121\u9700\u8A2D\u5B9A\uFF0C\u4FDD\u6301\u9810\u8A2D\u5373\u53EF\u3002\u50C5\u91DD\u5C0D\u66F4\u5C08\u696D\u7684\u4F7F\u7528\u8005\uFF0C\u63D0\u4F9B\u66F4\u500B\u4EBA\u5316\u7684\u8A2D\u5B9A\u9805\u76EE\u3002",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00","display both the original text and the translation":"\u540C\u6642\u986F\u793A\u539F\u6587\u548C\u8B6F\u6587","keyboard shortcuts":"\u9375\u76E4\u5FEB\u901F\u9375",modify:"\u8B8A\u66F4\u5FEB\u901F\u9375",reset:"\u91CD\u8A2D",close:"\u95DC\u9589",homepage:"\u9996\u9801",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",changeToOnlyTranslationMode:"\u5207\u63DB\u70BA\u50C5\u986F\u793A\u8B6F\u6587",changeToDualTranslationMode:"\u5207\u63DB\u70BA\u96D9\u8A9E\u7FFB\u8B6F",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:"\u672A\u77E5\u7684\u932F\u8AA4",canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u9078\u9805",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",needActionForOptions:"(\u9700\u8A2D\u5B9A)",translationEngine:"\u5F15\u64CE\u9078\u9805",sourceLanguage:"\u539F\u6587\u8A9E\u8A00",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",forThisSite:"\u7576\u524D\u7DB2\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8B6F {language}",alwaysTranslateSomeSite:"\u7E3D\u662F\u7FFB\u8B6F {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8B6F {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u65B0\u589E",default:"\u9810\u8A2D",forThisLanguage:"\u91DD\u5C0D\u8A72\u8A9E\u8A00\uFF1A","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F","translate other languages into specific language":"\u5C07\u5176\u5B83\u8A9E\u8A00\u7FFB\u8B6F\u70BA\u4F60\u8A2D\u5B9A\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9",language:"\u8A9E\u8A00","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",Error:"\u932F\u8AA4",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",interface:"\u4ECB\u9762\u8A2D\u5B9A",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65",syncToAccount:"\u540C\u6B65\u5230\u8CEC\u6236",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u8CEC\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u8A2D\u5099\u4E4B\u9593\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u8CEC\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u8CEC\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8B6F","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9E\u99AC\u905C\u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8B6F\u9801\u9762\u6A19\u984C","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F",enableUserscriptPagePopup:"\u5728\u9801\u9762\u4E0A\u986F\u793A\u61F8\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528\u5FEB\u901F\u9375/{touch}\u518D\u6B21\u986F\u793A\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5EFA\u8B70\u5C07\u672C\u8A2D\u5B9A\u9801\u9762\u52A0\u5165\u81F3\u6211\u7684\u6700\u611B","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8B6F\u6587\u6A23\u5F0F",currentUrl:"\u76EE\u524D\u7DB2\u5740",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6E96\u3002",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",upload:"\u4E0A\u50B3",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",download:"\u4E0B\u8F09",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",deleteFail:"\u522A\u9664\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",backupToCloudDescription:"\u624B\u52D5\u4E0A\u50B3\u6216\u9084\u539F\u5099\u4EFD\u6A94\u6848\uFF0C\u6700\u591A\u5141\u8A31 3 \u500B\u4E0D\u540C\u7684\u5099\u4EFD",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",updatedAt:"\u66F4\u65B0\u65BC {date}",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u4EEC\u7684<3>Twitter\uFF0C<4>Telegram \u983B\u9053\u4EE5\u53CA\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u90F5\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u983B\u9053",joinTelegramChannel:"\u95DC\u6CE8 Telegram \u983B\u9053\u77AD\u89E3\u66F4\u65B0\u8CC7\u8A0A",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",autoSync:"\u81EA\u52D5\u5B9A\u6642\u540C\u6B65",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6","edit border color":"\u8B8A\u66F4\u908A\u6846\u8272\u5F69",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",enableSubtitle:"\u958B\u555F\u5B57\u5E55\u7FFB\u8B6F",enableSubtitleDescription:"\u91DD\u5C0D youtube \u7B49\u7DB2\u7AD9\u7684\u5B57\u5E55\u5340\u57DF\u958B\u555F\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",enableSearchEnhancement:"\u958B\u555F\u641C\u7D22\u589E\u5F37",enableSearchEnhancementDescription:"\u4E2D\u6587\u641C\u7D22\u8C37\u6B4C\u6703\u5728\u53F3\u908A\u51FA\u73FE\u82F1\u6587\u7248\u8C37\u6B4C\u65B0\u805E",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerMinute":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u5206\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u4EFD\u50B3\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u85A6\uFF09, \u5C07\u6703\u5728\u55AE\u7368\u4F5C\u70BA\u4E00\u6BB5\u767C\u9001\u7D66 OpenAI","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u50B3\u9001\u767C\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",clickToDisableExtension:"\u9EDE\u9078\u505C\u7528\u5957\u4EF6",clickToEnableExtension:"\u9EDE\u9078\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u9F20\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u7F6E\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u5B57\u7B26\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8B58\u5225\u70BA\u89F8\u767C\u5B57\u7B26\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u7981\u7528\u78BA\u8A8D",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",disableTint:"* \u60A8\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u555F\u7528\u3002",searchEnhancementNotes:"\u6211\u5011\u767C\u73FE\uFF0C\u4E2D\u6587\u95DC\u9375\u8A5E\u548C\u82F1\u6587\u95DC\u9375\u8A5E\u7684\u65B0\u805E\u7D50\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u555F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u4FE1\u606F\u589E\u5F37\u529F\u80FD\u5F8C\uFF0C\u6211\u5011\u6703\u5728\u652F\u6301\u7684\u7DB2\u7AD9\uFF08\u8C37\u6B4C\u65B0\u805E\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u95DC\u9375\u8A5E\uFF09\uFF0C\u96EA\u7403\uFF0C\u6771\u65B9\u8CA1\u5BCC\u7DB2\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52D5\u7528\u82F1\u6587\u70BA\u4F60\u641C\u7D22\u540C\u6A23\u7684\u95DC\u9375\u8A5E\u4E26\u5C55\u793A\u5728\u53F3\u5074\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8A72\u529F\u80FD\u7684\u8A71\uFF0C\u53EF\u4EE5\u9078\u64C7\u7981\u7528\u5B83\u3002",option:"\u9078\u9805",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL \u548C OpenAI \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8B6F",currentAccount:"\u7576\u524D\u8CEC\u6236"};var fc={nologin:"Not logged in",login:"Login",manageAccount:"Manage Account",logout:"Logout",curentPlan:"Current Plan",endAt:"Expires",endAuto:"Auto Renew",lineBreakMaxTextCount:"Maximum number of characters allowed per sentence after line break","translate-pdf":"Click to translate PDF","noSupportTranslate-pdf":"The script is not supported, please use a plugin.","translate-firefox-local-pdf":"Click to upload PDF",enableLineBreak:"Whether to turn on automatic line wrapping for long paragraphs",sponsorLabel:"Sponsoring developers from $1 (monthly or one-time)",help:"Help",browserShortcutsNoteForFirefox:`To modify the shortcut key in Firefox browser, you need to open the extension management page 'about: addons', then click "Settings", and then click "Management shortcut key" to set it`,browserShortcutsNoteForChrome:"To modify the shortcut key in Chrome browser, you need to open the extension management page` chrome://extensions/shortcuts `) Settings, click the button below to jump to the shortcut key management page.",browserShortcutsSucks:"Please enter the shortcut key manually in the format:",enableLineBreakDescription:"After opening, a line break will be inserted at the end of each sentence in a long paragraph for easy reading","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate: Web Page&PDF Translation","browser.brandDescription":"Bilingual web page translation, also supports PDF translation, bilingual Epub eBook translation, free to use.","browser.toggleTranslatePage":"Toggle Translate Page","browser.toggleTranslateTheWholePage":"Toggle Translate the Whole Page","browser.toggleOnlyTransation":"Toggle Translate and Hide Original Text","browser.toggleTranslateToThePageEndImmediately":"Toggle Translate to the Bottom of the Page Immediately","browser.toggleTranslateTheMainPage":"Toggle Translate the Main Page","browser.openOptionsPage":"Open Settings Page","browser.toggleTranslationMask":"Toggle translation mask style","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-book","browser.openEbookBuilder":"Make Dual EPUB ebook","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.donateContext":"Sponsor Benefits","browser.translateLocalSubtitleFile":"Translate Subtitle File",confirmResetConfig:"Are you sure you want to reset the settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Create right button menu",toggleBeta:"Enable Beta experimental features",betaDescription:"Enable features that are still experimental, and translation services that are in testing. Join the <1>Telegram group to learn more.",translationLineBreakSettingDescription:"The always line break feature is suitable for layouts with less content, making the layout more neat and tidy. (Use smart line breaks for long paragraphs with more content (more than {count} characters) for saving space)",tempTranslateDomainTitle:"Open the translation time temporarily",tempTranslateDomainDescription:"When a page is translated manually, turn it temporarily on as automatic translation",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",toggleTranslatePageWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide translation display",toggleTranslationMaskWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide the blur effect of the translation",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"Multi-finger touch to show/hide only translation display",addUrlDescription:"The domain name is available and wildcard is supported e.g.: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import configuration from file",export:"Export to file",toggleDebug:"Print debug logs on the console","fingers.0":"Close","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch",mouseHoldKey:"+ {key} translate this paragraph",mouseHoldKeyAuto:"Translate the paragraph directly",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate this paragraph",mouseHoverHoldKey:"Mouse over and press X key to translate paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"All settings reset successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",goAdvancedSettings:"Go to Advanced Settings Page",goAdvancedInterfaceSettings:"Go to Advanced Custom Settings Page",advanced:"Advanced",advancedDescription:"Normally no settings are needed, keep the default. More personalized settings are provided for professional users only.",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"Translate to the bottom of the page immediately after opening the page?",feedback:"Feedback",toggleTranslatePage:"Toggle Translate",translateToThePageEndImmediatelyDescription:"Enabled will translate from the top to the bottom of the page immediately after opening. Disable will translate while reading. (Not recommended to enable)","translate all areas of the page":"Whether to translate all areas of the web page",translationAreaDescription:"When enabled, all areas of the entire web page will be translated. Disabled will use the default smart recognition and translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Directly translate the number of characters in front of the page without waiting to scroll to the visible area","interface language":"Interface language","display both the original text and the translation":"Display both the original text and the translation","keyboard shortcuts":"Keyboard shortcuts",modify:"Edit",reset:"Reset",close:"Close",homepage:"Home Page",more:"More",moreOptions:"Expand more custom settings",translateTheWholePage:"Translate the whole page area",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Dual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"Main areas of intelligent translation","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly implement the interface of the Greasemonkey extension, please use another browser that <1>supports the Greasemonkey extension such as (Firefox Nightly version)",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:"Unknown Error",canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha enabled successfully",disableAlphaSuccess:"Alpha has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(to set up)",goSettings:"to set up",needActionForOptions:"(need to set)",translationEngine:"Engine Options",sourceLanguage:"Original language",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",forThisSite:"Site:",alwaysTranslateSomeLanguage:"Always translate {language}",neverTranslateSomeLanguage:"Never translate {language}",alwaysTranslateSomeSite:"Always translate {hostname}",neverTranslateSomeSite:"Never translate {hostname}",alwaysTranslateSomeSiteOrWildSite:"Always translate this site",alwaysTranslateSomePage:"Always translate this page",add:"Add",default:"Default",forThisLanguage:"For This Language:","add url":"Add URL",edit:"Edit","translate other languages into specific language":"Translate other languages into the language you set","select translation service":"Select a translation service",language:"Language","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",Error:"Error",allowCacheTranslations:"Enable local translation caching (reduce translation requests for duplicate paragraphs)","translation display":"Translation display style","select diplay style":"Please refer to the following examples",interface:"Interface Settings",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dashed underline","translationTheme.dotted":"Dotted Underline","translationTheme.dashedBorder":"Dashed Border","translationTheme.solidBorder":"Dashed Border","translationTheme.underline":"Straight underline","translationTheme.mask":"Blur effect","translationTheme.opacity":"Opacity effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weakening","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dashed underline","translationTheme.nativeDashed":"System Dash Underline","translationTheme.nativeDotted":"System Dotted Underline","translationTheme.nativeUnderline":"System Straight Line Underline","translationTheme.wavy":"Squiggle","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeeplX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"Translate page title","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped",enableUserscriptPagePopup:"Always show Popup windows on the page",enableUserscriptPagePopupDescription:"Three-finger touch to show the Popup.","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",currentUrl:"Current URL",confirm:"Save",cancel:"Cancel",delete:"Delete","languages.auto":"Detect Language",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",authFail:"Authorization Failed",syncTitle:"Please select a file operation",import_hint:"Import",upload:"Upload",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",download:"Download",importSuccess:"Upload Success",importFail:"Import Failed",deleteFail:"Delete Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",backupToCloudDescription:"Upload or restore backup files manually, up to 3 different backups",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",updatedAt:"Updated at {date}",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. You can choose to subscribe to <6>Pro membership to use the out-of-the-box DeepL and OpenAI translation.

You can also follow out <3>Twitter, <4>Telegram Channel, and <5>Email Subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free and we hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. ",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",qqCommunities:"QQ Channel",joinTelegramChannel:"Subscribe to our Telegram channel to get the latest updates",feedbackAndJoin:"Feedback",autoSync:"Auto-Time Sync",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization","edit border color":"Edit border color",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",enableSubtitle:"enableSubtitleTranslation",enableSubtitleDescription:"Enable translations for subtitle areas on sites like youtube",isTranslateTitleDescription:"When enabled, the page title will be translated",enableSearchEnhancement:"Enable Search Enhancement",enableSearchEnhancementDescription:'After enabling, the right sidebar will automatically display "Google News" search results for corresponding English keywords on supported websites (such as Google News, Google Search (partial keywords), Xueqiu, East Money, Futu, Tiger Community).',verifyService:"Verify service",verified:"Successful","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerMinute":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next minute. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"Requests exceed this limit will be queued until the next seconds.","description.prompt":"Send as a user to OpenAI conversation, where {{text}} indicates the text of the paragraph,{{from}} indicates the language of the paragraph,{{to}} indicates the target language, you can omit {{text}}, if so, it'll be sent as a separated message","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"Send the conversation to OpenAI as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the original language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"Default is\uFF1Ageneral. Only set up if there is an API console open domain translation, support fields see <1>Here ","field.scene":"Scene","description.scene":"Default is\uFF1Ageneral. Only set up if there is an API console open Machine Translation Professional, support fields see<1>Here","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please provide a URL with the specific path.",enabledExtension:"Enable extensions",clickToDisableExtension:"Click to disable extension",clickToEnableExtension:"Click to enable the extension",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter customization content",inputOptions:"Writing",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter for translating part of the input box.",inputStartingTriggerKeyDescription:"When you don't need to translate the entire input box, the delimiter allows you to only translate the portion from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means only translating the portion from {startingKey}ja to the end of the input box.",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting is no prefix required, the partial text translation function of the input box cannot be used temporarily.",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Start the translation by quickly pressing 3 times {trailingKey}.",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time (milliseconds) for the input to end the combo trigger",spaceKey:"",noneKey:"Translate the entire text box without prefixes",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement in the following URL",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",clickToSeeQuickDemo:"Click to expand the 30s tutorial video",inputHelperInfo:`Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001". -Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.`,reloadCurrentPage:"Please refresh the current page before starting translation",noLocalFilePermissionForPDF:"No permission to read local files. Please click the button above and upload the local file.",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate the current page",retryAllParagraphs:"Retry all paragraphs",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Noops, something went wrong",disableConfirm:"Search Enhancement Settings",disableOnce:"Disable Once",disableGlobal:"Disable Forever",disableTint:"* You can re-enable in {option}.",searchEnhancementNotes:"We have discovered notable disparities in news results between Chinese and English keywords. By activating the immersive translation Bilingual Display Enhancement feature, we will automatically search for equivalent English keywords and display them on the right side of supported websites (e.g., Google News, Google Search (partial keywords), xueqiu, East Money, Futu, Tiger). You can disable this feature if you don't need it.",option:"Settings",saveSettings:"Save",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"Enable quick press 3 times {trailingKey}, directly translate the entire input box to {inputTargetLanguage}.",enableInputTranslationWithoutTriggerKeyDescription:"To specify the target language, please add a language code at the beginning, such as: ja Hello world",mouseHoverShortcutPlaceholder:"e.g. Shift",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",needLoginAction:"(Premium or custom)",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",daily:"Daily Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",profile:"Profile",billing:"Billing",onetime_7day:"7-day Trial Pack",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt} and will not auto-renew",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly pro membership",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"Current plan: {plan}, will expire on {endAt}, will not auto-renew after expiration.
<1>Enable consecutive annual plan",upgradePlan:"Click here to upgrade to Pro membership",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",upgradeToPro:"Upgrade to Pro","popup.openPro":"Enjoy unrestricted access to DeepL and OpenAI translations after upgrading to Pro Membership. Click here to upgrade","popup.openProForPro":"You are a Pro member, you can directly use DeepL and OpenAI translations",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You have just triggered the immersive translate of the input box by quickly tapping the space key 3 times. The content of the input box will be translated into the default target language.

If this was a mistake, don't worry. You can choose to disable it this time or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show again",disableInputTranslationTips:"* You can also set other shortcuts in {option}, {learnMore}.",learnMore:"Learn more",continueEnalbeInputTranslation:"Continue to enable input translation"};var Gf=[{code:"zh-CN",messages:gc},{code:"zh-TW",messages:pc},{code:"en",messages:fc}];var Cu="immersiveTranslateBingGlobalState",Rt={};for(let e of Gf)Rt[e.code]=e.messages;var ma="Immersive Translate",J="immersive-translate";var ge="immersiveTranslate";var bc=ge+"GoogleAccessToken",yc=ge+"AuthFlow";var Vf=ge+"AuthState",wu=ge+"IframeMessage",R5=ge+"WaitForRateLimit",xc=ge+"DocumentMessageAsk",yt=ge+"DocumentMessageTellThirdParty",vu=ge+"showError",Ec=ge+"DocumentMessageThirdPartyTell",Tc=ge+"DocumentMessageEventUpload",Yf=ge+"DocumentMessageHandler",Jf=`${ge}Container`,Cc=`${ge}SpecifiedContainer`,qn="buildinConfig",vr="localConfig",Li="openOptionsPage",Pi="openAboutPage";var Mi="openEbookViewer",Fi="openEbookBuilder";var ku=`${ge}PageTranslatedStatus`,I5=`${ge}PageUrlChanged`,Wn=`${ge}ReceiveCommand`,wc=ge+"LastUseMouseHoverTime",_i=ge+"LastUseInputTime",mn=ge+"LastUseManualTranslatePageTime",O5=`${ge}PopupReceiveMessage`,Qf="immersivetranslate.com",Zf="config.immersivetranslate.com",N5=`https://${Qf}/`,kr=`https://${Zf}/default_config.json`,j5=`${ge}Mark`,Sr="immersiveTranslateEffect",It=`${ge}Root`,z5=`data-${J}-effect`,wn=`data-${J}-translation-element-mark`,vc=`${ge}TranslationElementMark`,U5=`${ge}TranslatedMark`,H5=`${ge}ParagraphId`,kc=`${ge}LoadingId`,Bi=`data-${J}-loading-id`,Sc=`${ge}ErrorId`,Su=`data-${J}-error-id`,Xf=`${ge}AtomicBlockMark`,Ac=`${ge}ExcludeMark`,q5=`data-${J}-exclude-mark`,eh=`${ge}StayOriginalMark`,W5=`${ge}PreWhitespaceMark`,Au=`${ge}InlineMark`,Dc=`${ge}BlockMark`,$5=`${ge}Left`,K5=`${ge}Right`,G5=`${ge}Width`,V5=`${ge}Height`,Y5=`${ge}Top`,J5=`${ge}FontSize`,Lc="lastRunTime",Q5=`${ge}GlobalStyleMark`,ga=["@","#"],Du=" --- ",Pc=` -`,qt=`${J}-target-wrapper`,Z5=`${J}-pdf-target-container`,Mc=`${J}-target-inner`,X5=`${J}-source-wrapper`,Ri=`${J}-target-translation-block-wrapper`,ex=`${J}-root-translation-theme`,Na=`${ge}RootTranslationTheme`,Fc=`${J}-target-translation-vertical-block-wrapper`,tx=`${J}-target-translation-pdf-block-wrapper`,_c=`${J}-target-translation-pre-whitespace`,Ii=`${J}-target-translation-inline-wrapper`;var Bc={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]},Xt=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","ru","ar","it","ms","id","vi","af","th","ur","yue","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","nl","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu"],Rc={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Detect Language",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese",zu:"Zulu","":"All Languages"},Ic={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B\u8BED\u8A00",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00"},Oc={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C\u8A9E\u8A00",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00"};var Nc=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/"];var Lu="zh-CN";var hc=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],Fn={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},deepl:{name:"DeepL",homepage:"https://www.deepl.com/translator",docUrl:"https://immersivetranslate.com/docs/services/deepL/",providers:[{name:"pro",nameKey:"deepLProName",descriptionKey:"deepLProDescription",descriptionKeyForNormal:"deeplProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"deepLCustomName",descriptionKey:"deepLCustomDescription",descriptionLink1:"https://www.deepl.com/translator",descriptionLink2:"https://immersivetranslate.com/docs/services/deepL/"}],allProps:[{name:"authKey",providers:["custom"],label:"Auth Key",required:!0,type:"password"}]},openai:{name:"Open AI",homepage:"https://openai.com/api/",docUrl:"https://immersivetranslate.com/docs/services/openai/",providers:[{name:"pro",nameKey:"openaiProName",descriptionKey:"openaiProDescription",descriptionKeyForNormal:"openaiProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"openaiCustomName",descriptionKey:"openaiCustomDescription",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password"},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"openai-model-select",default:"gpt-3.5-turbo-0613",options:[{providers:["custom","pro"],label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{providers:["custom","pro"],label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{providers:["custom"],label:"gpt-4",value:"gpt-4"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.limitPerSecond",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.openai.com/v1/chat/completions",descriptionKey:"description.apiUrl",optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"text",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.`,reloadCurrentPage:"Please refresh the current page before starting translation",noLocalFilePermissionForPDF:"No permission to read local files. Please click the button above and upload the local file.",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate the current page",retryAllParagraphs:"Retry all paragraphs",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Noops, something went wrong",disableConfirm:"Search Enhancement Settings",disableOnce:"Disable Once",disableGlobal:"Disable Forever",disableTint:"* You can re-enable in {option}.",searchEnhancementNotes:"We have discovered notable disparities in news results between Chinese and English keywords. By activating the immersive translation Bilingual Display Enhancement feature, we will automatically search for equivalent English keywords and display them on the right side of supported websites (e.g., Google News, Google Search (partial keywords), xueqiu, East Money, Futu, Tiger). You can disable this feature if you don't need it.",option:"Settings",saveSettings:"Save",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"Enable quick press 3 times {trailingKey}, directly translate the entire input box to {inputTargetLanguage}.",enableInputTranslationWithoutTriggerKeyDescription:"To specify the target language, please add a language code at the beginning, such as: ja Hello world",mouseHoverShortcutPlaceholder:"e.g. Shift",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",needLoginAction:"(Premium or custom)",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",daily:"Daily Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",profile:"Profile",billing:"Billing",onetime_7day:"7-day Trial Pack",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt} and will not auto-renew",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly pro membership",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"Current plan: {plan}, will expire on {endAt}, will not auto-renew after expiration.
<1>Enable consecutive annual plan",upgradePlan:"Click here to upgrade to Pro membership",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",upgradeToPro:"Upgrade to Pro","popup.openPro":"Enjoy unrestricted access to DeepL and OpenAI translations after upgrading to Pro Membership. Click here to upgrade","popup.openProForPro":"You are a Pro member, you can directly use DeepL and OpenAI translations",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You have just triggered the immersive translate of the input box by quickly tapping the space key 3 times. The content of the input box will be translated into the default target language.

If this was a mistake, don't worry. You can choose to disable it this time or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show again",disableInputTranslationTips:"* You can also set other shortcuts in {option}, {learnMore}.",learnMore:"Learn more",continueEnalbeInputTranslation:"Continue to enable input translation"};var Vf=[{code:"zh-CN",messages:gc},{code:"zh-TW",messages:pc},{code:"en",messages:fc}];var Tu="immersiveTranslateBingGlobalState",Rt={};for(let e of Vf)Rt[e.code]=e.messages;var ma="Immersive Translate",J="immersive-translate";var ge="immersiveTranslate";var bc=ge+"GoogleAccessToken",yc=ge+"AuthFlow";var Yf=ge+"AuthState",Cu=ge+"IframeMessage",R5=ge+"WaitForRateLimit",xc=ge+"DocumentMessageAsk",yt=ge+"DocumentMessageTellThirdParty",wu=ge+"showError",Ec=ge+"DocumentMessageThirdPartyTell",Tc=ge+"DocumentMessageEventUpload",Jf=ge+"DocumentMessageHandler",Qf=`${ge}Container`,Cc=`${ge}SpecifiedContainer`,qn="buildinConfig",vr="localConfig",Li="openOptionsPage",Pi="openAboutPage";var Mi="openEbookViewer",Fi="openEbookBuilder";var vu=`${ge}PageTranslatedStatus`,I5=`${ge}PageUrlChanged`,Wn=`${ge}ReceiveCommand`,wc=ge+"LastUseMouseHoverTime",_i=ge+"LastUseInputTime",mn=ge+"LastUseManualTranslatePageTime",O5=`${ge}PopupReceiveMessage`,Zf="immersivetranslate.com",Xf="config.immersivetranslate.com",N5=`https://${Zf}/`,kr=`https://${Xf}/default_config.json`,j5=`${ge}Mark`,Sr="immersiveTranslateEffect",It=`${ge}Root`,z5=`data-${J}-effect`,wn=`data-${J}-translation-element-mark`,vc=`${ge}TranslationElementMark`,U5=`${ge}TranslatedMark`,H5=`${ge}ParagraphId`,kc=`${ge}LoadingId`,Bi=`data-${J}-loading-id`,Sc=`${ge}ErrorId`,ku=`data-${J}-error-id`,eh=`${ge}AtomicBlockMark`,Ac=`${ge}ExcludeMark`,q5=`data-${J}-exclude-mark`,th=`${ge}StayOriginalMark`,W5=`${ge}PreWhitespaceMark`,Su=`${ge}InlineMark`,Dc=`${ge}BlockMark`,$5=`${ge}Left`,K5=`${ge}Right`,G5=`${ge}Width`,V5=`${ge}Height`,Y5=`${ge}Top`,J5=`${ge}FontSize`,Lc="lastRunTime",Q5=`${ge}GlobalStyleMark`,ga=["@","#"],Au=" --- ",Pc=` +`,Wt=`${J}-target-wrapper`,Z5=`${J}-pdf-target-container`,Mc=`${J}-target-inner`,X5=`${J}-source-wrapper`,Ri=`${J}-target-translation-block-wrapper`,ex=`${J}-root-translation-theme`,ja=`${ge}RootTranslationTheme`,Fc=`${J}-target-translation-vertical-block-wrapper`,tx=`${J}-target-translation-pdf-block-wrapper`,_c=`${J}-target-translation-pre-whitespace`,Ii=`${J}-target-translation-inline-wrapper`;var Bc={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]},en=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","ru","ar","it","ms","id","vi","af","th","ur","yue","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","nl","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu"],Rc={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Detect Language",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese",zu:"Zulu","":"All Languages"},Ic={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B\u8BED\u8A00",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00"},Oc={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C\u8A9E\u8A00",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00"};var Nc=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/"];var Du="zh-CN";var hc=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],Fn={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},deepl:{name:"DeepL",homepage:"https://www.deepl.com/translator",docUrl:"https://immersivetranslate.com/docs/services/deepL/",providers:[{name:"pro",nameKey:"deepLProName",descriptionKey:"deepLProDescription",descriptionKeyForNormal:"deeplProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"deepLCustomName",descriptionKey:"deepLCustomDescription",descriptionLink1:"https://www.deepl.com/translator",descriptionLink2:"https://immersivetranslate.com/docs/services/deepL/"}],allProps:[{name:"authKey",providers:["custom"],label:"Auth Key",required:!0,type:"password"}]},openai:{name:"Open AI",homepage:"https://openai.com/api/",docUrl:"https://immersivetranslate.com/docs/services/openai/",providers:[{name:"pro",nameKey:"openaiProName",descriptionKey:"openaiProDescription",descriptionKeyForNormal:"openaiProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"openaiCustomName",descriptionKey:"openaiCustomDescription",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password"},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"openai-model-select",default:"gpt-3.5-turbo-0613",options:[{providers:["custom","pro"],label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{providers:["custom","pro"],label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{providers:["custom"],label:"gpt-4",value:"gpt-4"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.limitPerSecond",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.openai.com/v1/chat/completions",descriptionKey:"description.apiUrl",optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"text",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`,optional:!0}]},transmart:{name:"Transmart",homepage:"https://transmart.qq.com/"},chatgpt:{name:"ChatGPT Web(3.5 mobile)",homepage:"https://chat.openai.com",beta:!0},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:"https://immersivetranslate.com/docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text"},{name:"appSecret",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/",docUrl:"https://immersivetranslate.com/docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text"},{name:"secretKey",required:!0,type:"password"}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:"https://immersivetranslate.com/docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text"},{name:"AccessKeySecret",required:!0,type:"password"},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:"https://immersivetranslate.com/docs/services/azure/",allProps:[{name:"region",required:!0,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password"}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:"https://immersivetranslate.com/docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text"},{name:"key",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:"https://immersivetranslate.com/docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text"},{name:"secretAccessKey",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:"https://immersivetranslate.com/docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password"}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:"https://immersivetranslate.com/docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:ga,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:"https://immersivetranslate.com/docs/services/openL/",allProps:[...hc,{type:"password",name:"apikey",required:!0}],props:hc},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",alpha:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:"https://immersivetranslate.com/docs/services/niu",allProps:[{name:"APIKEY",required:!0,type:"password"}]}},Pu={type:ge+"ChildFrameToRootFrameIdentifier"},Mu=["Alt","Ctrl","Shift","Auto","Off","OtherCustom","Other"];var Oi="user_from_plugin",en="user_info",Ni=Pn()||Mn()?"https://api2.immersivetranslate.com":"https://test-api2.immersivetranslate.com",nx=Pn()||Mn()?"https://immersivetranslate.com/accounts/login?from=plugin":"https://test.immersivetranslate.com/accounts/login?from=plugin",ji=Pn()||Mn()?"https://immersivetranslate.com/profile":"https://test.immersivetranslate.com/profile",Ar=Pn()||Mn()?"https://immersivetranslate.com/pricing":"https://test.immersivetranslate.com/pricing",jc=Ar+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",zi=Ar+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",zc=Ar+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal";function ja(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t==="zh-hans")return"zh-CN";if(t==="zh-hant"||t==="zh-hk")return"zh-TW";if(t==="iw")return"he";if(t==="jv")return"jw";let n=Xt.map(r=>r.toLowerCase()),a=n.indexOf(t);if(a===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let r=n.indexOf(t);return r===-1?"auto":Xt[r]}else return"auto";else return Xt[a]}function pa(){return ja(document?.documentElement?.lang||"en")}function Uc(e,t,n){let a=th(e,t),r=[],u={from:e[0].from,fromByClient:e[0].fromByClient,to:e[0].to,tempSentences:[],url:e[0].url};for(let o of a)(u.tempSentences.reduce((s,c)=>s+c.text.length,0)+o.text.length>t||u.tempSentences.length>=n)&&(r.push(u),u={fromByClient:u.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}),(u.from!==o.from||u.to!==o.to)&&(u.tempSentences.length>0?(r.push(u),u={fromByClient:u.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}):(u.from=o.from,u.to=o.to)),u.tempSentences.push(o);return u.tempSentences.length>0&&r.push(u),r}function th(e,t){let n=[],a=[];for(let r=0;r0?dr.toLowerCase()),a=n.indexOf(t);if(a===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let r=n.indexOf(t);return r===-1?"auto":en[r]}else return"auto";else return en[a]}function pa(){return za(document?.documentElement?.lang||"en")}function Uc(e,t,n){let a=nh(e,t),r=[],u={from:e[0].from,fromByClient:e[0].fromByClient,to:e[0].to,tempSentences:[],url:e[0].url};for(let o of a)(u.tempSentences.reduce((s,c)=>s+c.text.length,0)+o.text.length>t||u.tempSentences.length>=n)&&(r.push(u),u={fromByClient:u.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}),(u.from!==o.from||u.to!==o.to)&&(u.tempSentences.length>0?(r.push(u),u={fromByClient:u.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}):(u.from=o.from,u.to=o.to)),u.tempSentences.push(o);return u.tempSentences.length>0&&r.push(u),r}function nh(e,t){let n=[],a=[];for(let r=0;r0?dt){let h=[];Ui(b,t,h);for(let C=0;C0&&d{let i=e.lastIndexOf(o,t);return i>u?i:u},-1);if(r===-1){let u=e.slice(0,t);if(u&&!u.trim())return;n.push({text:u,prefix:"",suffix:""}),e.length>t&&Ui(e.slice(t),t,n)}else{let u=e.slice(0,r+1);if(u&&u.trim()==="")return;u.startsWith(" ")?n.push({text:u.slice(1),prefix:" ",suffix:""}):n.push({text:u,prefix:"",suffix:""}),r+10){l.forEach(d=>{c.length>0&&d.providers&&d.providers.length>0&&!d.providers.includes(s)||(d.optional?g.push(d):m.push(d))});let f=g.concat(m).filter(d=>d.required);if(f.length>0){for(let d of f)if(!r[d.name]){i=!1;break}}}return{...a,id:t,selected:n[e]===t,ok:i,currentProvider:s,config:r,providers:a.providers||[],props:a.props||[],allProps:l,optionalProps:g,explicitProps:m}}var Hc=(e,t)=>{let{config:n}=e,a=n.alpha,r=n.beta,u=n.canary,o=n.debug,i=e.user,s=Qt(i);return Object.keys(Fn).filter(l=>{let m=Fn[l];if(l.startsWith("mock"))return o?!0:l===e.config[t];if(l===e.config[t])return!0;if(l==="openai"&&Zt())return e.config.showOpenaiOnSafari||s?!0:!!(r||a||u||s);let g=!!m.canary,f=!!m.alpha,d=!!m.beta;return l===e[t]||g&&u||f&&(a||u)||d&&(r||a||u)?!0:!f&&!d&&!g}).map(l=>Hi(t,l,e))};function Wt(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}p();p();p();p();function za(){let e,t="pending",n=new Promise((a,r)=>{e={async resolve(u){await u,t="fulfilled",a(u)},reject(u){t="rejected",r(u)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}p();var qi=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function Fu(e,t){let n=za(),a=setTimeout(()=>n.reject(new qi),t);return Promise.race([e,n]).finally(()=>clearTimeout(a))}p();p();function Dr(e,t={}){let{signal:n,persistent:a}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((r,u)=>{let o=()=>{clearTimeout(s),u(new DOMException("Delay was aborted.","AbortError"))},s=setTimeout(()=>{n?.removeEventListener("abort",o),r()},e);if(n?.addEventListener("abort",o,{once:!0}),a===!1)try{Deno.unrefTimer(s)}catch(c){if(!(c instanceof ReferenceError))throw c}})}p();var qc=class{#e=0;#t=[];#n=[];#a=za();add(t){++this.#e,this.#r(t[Symbol.asyncIterator]())}async#r(t){try{let{value:n,done:a}=await t.next();a?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#a.resolve()}async*iterate(){for(;this.#e>0;){await this.#a;for(let t=0;tDh,bgBlue:()=>Fh,bgBrightBlack:()=>Ih,bgBrightBlue:()=>zh,bgBrightCyan:()=>Hh,bgBrightGreen:()=>Nh,bgBrightMagenta:()=>Uh,bgBrightRed:()=>Oh,bgBrightWhite:()=>qh,bgBrightYellow:()=>jh,bgCyan:()=>Bh,bgGreen:()=>Ph,bgMagenta:()=>_h,bgRed:()=>Lh,bgRgb24:()=>Gh,bgRgb8:()=>$h,bgWhite:()=>Rh,bgYellow:()=>Mh,black:()=>mh,blue:()=>hh,bold:()=>uh,brightBlack:()=>Kc,brightBlue:()=>vh,brightCyan:()=>Sh,brightGreen:()=>Ch,brightMagenta:()=>kh,brightRed:()=>Th,brightWhite:()=>Ah,brightYellow:()=>wh,cyan:()=>yh,dim:()=>oh,getColorEnabled:()=>ah,gray:()=>Eh,green:()=>ph,hidden:()=>ch,inverse:()=>lh,italic:()=>ih,magenta:()=>bh,red:()=>gh,reset:()=>rh,rgb24:()=>Kh,rgb8:()=>Wh,setColorEnabled:()=>nh,strikethrough:()=>dh,stripColor:()=>Yh,underline:()=>sh,white:()=>xh,yellow:()=>fh});p();var{Deno:Wc}=globalThis,$c=typeof Wc?.noColor=="boolean"?Wc.noColor:!0,Wi=!$c;function nh(e){$c||(Wi=e)}function ah(){return Wi}function Te(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function Ce(e,t){return Wi?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function rh(e){return Ce(e,Te([0],0))}function uh(e){return Ce(e,Te([1],22))}function oh(e){return Ce(e,Te([2],22))}function ih(e){return Ce(e,Te([3],23))}function sh(e){return Ce(e,Te([4],24))}function lh(e){return Ce(e,Te([7],27))}function ch(e){return Ce(e,Te([8],28))}function dh(e){return Ce(e,Te([9],29))}function mh(e){return Ce(e,Te([30],39))}function gh(e){return Ce(e,Te([31],39))}function ph(e){return Ce(e,Te([32],39))}function fh(e){return Ce(e,Te([33],39))}function hh(e){return Ce(e,Te([34],39))}function bh(e){return Ce(e,Te([35],39))}function yh(e){return Ce(e,Te([36],39))}function xh(e){return Ce(e,Te([37],39))}function Eh(e){return Kc(e)}function Kc(e){return Ce(e,Te([90],39))}function Th(e){return Ce(e,Te([91],39))}function Ch(e){return Ce(e,Te([92],39))}function wh(e){return Ce(e,Te([93],39))}function vh(e){return Ce(e,Te([94],39))}function kh(e){return Ce(e,Te([95],39))}function Sh(e){return Ce(e,Te([96],39))}function Ah(e){return Ce(e,Te([97],39))}function Dh(e){return Ce(e,Te([40],49))}function Lh(e){return Ce(e,Te([41],49))}function Ph(e){return Ce(e,Te([42],49))}function Mh(e){return Ce(e,Te([43],49))}function Fh(e){return Ce(e,Te([44],49))}function _h(e){return Ce(e,Te([45],49))}function Bh(e){return Ce(e,Te([46],49))}function Rh(e){return Ce(e,Te([47],49))}function Ih(e){return Ce(e,Te([100],49))}function Oh(e){return Ce(e,Te([101],49))}function Nh(e){return Ce(e,Te([102],49))}function jh(e){return Ce(e,Te([103],49))}function zh(e){return Ce(e,Te([104],49))}function Uh(e){return Ce(e,Te([105],49))}function Hh(e){return Ce(e,Te([106],49))}function qh(e){return Ce(e,Te([107],49))}function Kn(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function Wh(e,t){return Ce(e,Te([38,5,Kn(t)],39))}function $h(e,t){return Ce(e,Te([48,5,Kn(t)],49))}function Kh(e,t){return typeof t=="number"?Ce(e,Te([38,2,t>>16&255,t>>8&255,t&255],39)):Ce(e,Te([38,2,Kn(t.r),Kn(t.g),Kn(t.b)],39))}function Gh(e,t){return typeof t=="number"?Ce(e,Te([48,2,t>>16&255,t>>8&255,t&255],49)):Ce(e,Te([48,2,Kn(t.r),Kn(t.g),Kn(t.b)],49))}var Vh=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function Yh(e){return e.replace(Vh,"")}p();p();var $i=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},Jh={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function Ki(e,t){let n={...Jh,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let a=n.minTimeout,r;for(let u=0;usetTimeout(i,a)),a*=n.multiplier,a=Math.max(a,n.minTimeout),n.maxTimeout>=0&&(a=Math.min(a,n.maxTimeout)),r=o}throw new $i(r,n.maxAttempts)}p();var _n=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function Gi(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",a,r=t.length;for(a=2;a>2],n+=_n[(t[a-2]&3)<<4|t[a-1]>>4],n+=_n[(t[a-1]&15)<<2|t[a]>>6],n+=_n[t[a]&63];return a===r+1&&(n+=_n[t[a-2]>>2],n+=_n[(t[a-2]&3)<<4],n+="=="),a===r&&(n+=_n[t[a-2]>>2],n+=_n[(t[a-2]&3)<<4|t[a-1]>>4],n+=_n[(t[a-1]&15)<<2],n+="="),n}p();p();var tE=Number.isNaN||function(e){return typeof e=="number"&&e!==e};p();p();var _u=globalThis||(typeof window<"u"?window:self),Zh=Object.create,Yi=Object.defineProperty,Xh=Object.getOwnPropertyDescriptor,e2=Object.getOwnPropertyNames,t2=Object.getPrototypeOf,n2=Object.prototype.hasOwnProperty,a2=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),r2=(e,t)=>{for(var n in t)Yi(e,n,{get:t[n],enumerable:!0})},Vi=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of e2(t))!n2.call(e,r)&&r!==n&&Yi(e,r,{get:()=>t[r],enumerable:!(a=Xh(t,r))||a.enumerable});return e},u2=(e,t,n)=>(Vi(e,t,"default"),n&&Vi(n,t,"default")),Vc=(e,t,n)=>(n=e!=null?Zh(t2(e)):{},Vi(t||!e||!e.__esModule?Yi(n,"default",{value:e,enumerable:!0}):n,e)),Yc=a2((e,t)=>{var n="Expected a function",a=NaN,r="[object Symbol]",u=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,l=typeof _u=="object"&&_u&&_u.Object===Object&&_u,m=typeof self=="object"&&self&&self.Object===Object&&self,g=l||m||Function("return this")(),f=Object.prototype,d=f.toString,b=Math.max,T=Math.min,h=function(){return g.Date.now()};function C(M,w,E){var I,F,A,_,j,N,D=0,y=!1,S=!1,R=!0;if(typeof M!="function")throw new TypeError(n);w=L(w)||0,O(E)&&(y=!!E.leading,S="maxWait"in E,A=S?b(L(E.maxWait)||0,w):A,R="trailing"in E?!!E.trailing:R);function $(re){var K=I,oe=F;return I=F=void 0,D=re,_=M.apply(oe,K),_}function z(re){return D=re,j=setTimeout(ae,w),y?$(re):_}function Y(re){var K=re-N,oe=re-D,me=w-K;return S?T(me,A-oe):me}function q(re){var K=re-N,oe=re-D;return N===void 0||K>=w||K<0||S&&oe>=A}function ae(){var re=h();if(q(re))return Q(re);j=setTimeout(ae,Y(re))}function Q(re){return j=void 0,R&&I?$(re):(I=F=void 0,_)}function G(){j!==void 0&&clearTimeout(j),D=0,I=N=F=j=void 0}function pe(){return j===void 0?_:Q(h())}function fe(){var re=h(),K=q(re);if(I=arguments,F=this,N=re,K){if(j===void 0)return z(N);if(S)return j=setTimeout(ae,w),$(N)}return j===void 0&&(j=setTimeout(ae,w)),_}return fe.cancel=G,fe.flush=pe,fe}function v(M,w,E){var I=!0,F=!0;if(typeof M!="function")throw new TypeError(n);return O(E)&&(I="leading"in E?!!E.leading:I,F="trailing"in E?!!E.trailing:F),C(M,w,{leading:I,maxWait:w,trailing:F})}function O(M){var w=typeof M;return!!M&&(w=="object"||w=="function")}function B(M){return!!M&&typeof M=="object"}function x(M){return typeof M=="symbol"||B(M)&&d.call(M)==r}function L(M){if(typeof M=="number")return M;if(x(M))return a;if(O(M)){var w=typeof M.valueOf=="function"?M.valueOf():M;M=O(w)?w+"":w}if(typeof M!="string")return M===0?M:+M;M=M.replace(u,"");var E=i.test(M);return E||s.test(M)?c(M.slice(2),E?2:8):o.test(M)?a:+M}t.exports=v}),Jc={};r2(Jc,{default:()=>xt});var o2=Vc(Yc());u2(Jc,Vc(Yc()));var{default:Gc,...i2}=o2,xt=Gc!==void 0?Gc:i2;p();p();var s2=Object.create,Qi=Object.defineProperty,l2=Object.getOwnPropertyDescriptor,c2=Object.getOwnPropertyNames,d2=Object.getPrototypeOf,m2=Object.prototype.hasOwnProperty,g2=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),p2=(e,t)=>{for(var n in t)Qi(e,n,{get:t[n],enumerable:!0})},Ji=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of c2(t))!m2.call(e,r)&&r!==n&&Qi(e,r,{get:()=>t[r],enumerable:!(a=l2(t,r))||a.enumerable});return e},f2=(e,t,n)=>(Ji(e,t,"default"),n&&Ji(n,t,"default")),Zc=(e,t,n)=>(n=e!=null?s2(d2(e)):{},Ji(t||!e||!e.__esModule?Qi(n,"default",{value:e,enumerable:!0}):n,e)),Xc=g2((e,t)=>{(function(n,a){typeof e=="object"&&typeof t=="object"?t.exports=a():typeof define=="function"&&define.amd?define([],a):typeof e=="object"?e.notie=a():n.notie=a()})(e,function(){return function(n){function a(u){if(r[u])return r[u].exports;var o=r[u]={i:u,l:!1,exports:{}};return n[u].call(o.exports,o,o.exports,a),o.l=!0,o.exports}var r={};return a.m=n,a.c=r,a.i=function(u){return u},a.d=function(u,o,i){a.o(u,o)||Object.defineProperty(u,o,{configurable:!1,enumerable:!0,get:i})},a.n=function(u){var o=u&&u.__esModule?function(){return u.default}:function(){return u};return a.d(o,"a",o),o},a.o=function(u,o){return Object.prototype.hasOwnProperty.call(u,o)},a.p="",a(a.s=1)}([function(n,a){n.exports=function(r){return r.webpackPolyfill||(r.deprecate=function(){},r.paths=[],r.children||(r.children=[]),Object.defineProperty(r,"loaded",{enumerable:!0,get:function(){return r.l}}),Object.defineProperty(r,"id",{enumerable:!0,get:function(){return r.i}}),r.webpackPolyfill=1),r}},function(n,a,r){"use strict";(function(u){var o,i,s,c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l};(function(l,m){c(a)==="object"&&c(u)==="object"?u.exports=m():(i=[],o=m,s=typeof o=="function"?o.apply(a,i):o,s!==void 0&&(u.exports=s))})(void 0,function(){return function(l){function m(f){if(g[f])return g[f].exports;var d=g[f]={i:f,l:!1,exports:{}};return l[f].call(d.exports,d,d.exports,m),d.l=!0,d.exports}var g={};return m.m=l,m.c=g,m.i=function(f){return f},m.d=function(f,d,b){m.o(f,d)||Object.defineProperty(f,d,{configurable:!1,enumerable:!0,get:b})},m.n=function(f){var d=f&&f.__esModule?function(){return f.default}:function(){return f};return m.d(d,"a",d),d},m.o=function(f,d){return Object.prototype.hasOwnProperty.call(f,d)},m.p="",m(m.s=0)}([function(l,m,g){function f(z,Y){var q={};for(var ae in z)Y.indexOf(ae)>=0||Object.prototype.hasOwnProperty.call(z,ae)&&(q[ae]=z[ae]);return q}Object.defineProperty(m,"__esModule",{value:!0});var d=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(z){return typeof z>"u"?"undefined":c(z)}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z>"u"?"undefined":c(z)},b=Object.assign||function(z){for(var Y=1;Y'+ae+"",oe.onclick=function(){return F(me,K)},oe.listener=function(ce){(w(ce)||E(ce))&&j()},I(oe,K),G&&G<1&&(G=1),!fe&&G&&O(G).then(function(){return F(me,K)})},D=m.force=function(z,Y){var q=z.type,ae=q===void 0?5:q,Q=z.text,G=z.buttonText,pe=G===void 0?"OK":G,fe=z.callback,re=z.position,K=re===void 0?h.positions.force||K.top:re;B(),j();var oe=document.createElement("div"),me=x();oe.id=me;var ce=document.createElement("div");ce.classList.add(h.classes.textbox),ce.classList.add(h.classes.backgroundInfo),ce.innerHTML='
'+Q+"
";var ye=document.createElement("div");ye.classList.add(h.classes.button),ye.classList.add(L[ae]),ye.innerHTML=pe,ye.onclick=function(){F(me,K),_(),fe?fe():Y&&Y()},oe.appendChild(ce),oe.appendChild(ye),oe.listener=function(Se){w(Se)&&ye.click()},I(oe,K),A()},y=m.confirm=function(z,Y,q){var ae=z.text,Q=z.submitText,G=Q===void 0?"Yes":Q,pe=z.cancelText,fe=pe===void 0?"Cancel":pe,re=z.submitCallback,K=z.cancelCallback,oe=z.position,me=oe===void 0?h.positions.confirm||me.top:oe;B(),j();var ce=document.createElement("div"),ye=x();ce.id=ye;var Se=document.createElement("div");Se.classList.add(h.classes.textbox),Se.classList.add(h.classes.backgroundInfo),Se.innerHTML='
'+ae+"
";var xe=document.createElement("div");xe.classList.add(h.classes.button),xe.classList.add(h.classes.elementHalf),xe.classList.add(h.classes.backgroundSuccess),xe.innerHTML=G,xe.onclick=function(){F(ye,me),_(),re?re():Y&&Y()};var Z=document.createElement("div");Z.classList.add(h.classes.button),Z.classList.add(h.classes.elementHalf),Z.classList.add(h.classes.backgroundError),Z.innerHTML=fe,Z.onclick=function(){F(ye,me),_(),K?K():q&&q()},ce.appendChild(Se),ce.appendChild(xe),ce.appendChild(Z),ce.listener=function(ke){w(ke)?xe.click():E(ke)&&Z.click()},I(ce,me),A(ce,me)},S=function(z,Y,q){var ae=z.text,Q=z.submitText,G=Q===void 0?"Submit":Q,pe=z.cancelText,fe=pe===void 0?"Cancel":pe,re=z.submitCallback,K=z.cancelCallback,oe=z.position,me=oe===void 0?h.positions.input||me.top:oe,ce=f(z,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);B(),j();var ye=document.createElement("div"),Se=x();ye.id=Se;var xe=document.createElement("div");xe.classList.add(h.classes.textbox),xe.classList.add(h.classes.backgroundInfo),xe.innerHTML='
'+ae+"
";var Z=document.createElement("input");Z.classList.add(h.classes.inputField),Z.setAttribute("autocapitalize",ce.autocapitalize||"none"),Z.setAttribute("autocomplete",ce.autocomplete||"off"),Z.setAttribute("autocorrect",ce.autocorrect||"off"),Z.setAttribute("autofocus",ce.autofocus||"true"),Z.setAttribute("inputmode",ce.inputmode||"verbatim"),Z.setAttribute("max",ce.max||""),Z.setAttribute("maxlength",ce.maxlength||""),Z.setAttribute("min",ce.min||""),Z.setAttribute("minlength",ce.minlength||""),Z.setAttribute("placeholder",ce.placeholder||""),Z.setAttribute("spellcheck",ce.spellcheck||"default"),Z.setAttribute("step",ce.step||"any"),Z.setAttribute("type",ce.type||"text"),Z.value=ce.value||"",ce.allowed&&(Z.oninput=function(){var Re=void 0;if(Array.isArray(ce.allowed)){for(var Ne="",st=ce.allowed,Ft=0;Ft'+q+"",K.appendChild(me),pe.forEach(function(ye,Se){var xe=ye.type,Z=xe===void 0?1:xe,ke=ye.text,Pe=ye.handler,Re=document.createElement("div");Re.classList.add(L[Z]),Re.classList.add(h.classes.button),Re.classList.add(h.classes.selectChoice);var Ne=pe[Se+1];Ne&&!Ne.type&&(Ne.type=1),Ne&&Ne.type===Z&&Re.classList.add(h.classes.selectChoiceRepeated),Re.innerHTML=ke,Re.onclick=function(){F(oe,re),_(),Pe()},K.appendChild(Re)});var ce=document.createElement("div");ce.classList.add(h.classes.backgroundNeutral),ce.classList.add(h.classes.button),ce.innerHTML=Q,ce.onclick=function(){F(oe,re),_(),G?G():Y&&Y()},K.appendChild(ce),K.listener=function(ye){E(ye)&&ce.click()},I(K,re),A(K,re)},$=m.date=function(z,Y,q){var ae=z.value,Q=ae===void 0?new Date:ae,G=z.submitText,pe=G===void 0?"OK":G,fe=z.cancelText,re=fe===void 0?"Cancel":fe,K=z.submitCallback,oe=z.cancelCallback,me=z.position,ce=me===void 0?h.positions.date||ce.top:me;B(),j();var ye="▾",Se=document.createElement("div"),xe=document.createElement("div"),Z=document.createElement("div"),ke=function(ze){Se.innerHTML=h.dateMonths[ze.getMonth()],xe.innerHTML=ze.getDate(),Z.innerHTML=ze.getFullYear()},Pe=function(ze){var H=new Date(Q.getFullYear(),Q.getMonth()+1,0).getDate(),de=ze.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(de)>H&&(de=H.toString()),ze.target.textContent=de,Number(de)<1&&(de="1"),Q.setDate(Number(de))},Re=function(ze){var H=ze.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);ze.target.textContent=H,Q.setFullYear(Number(H))},Ne=function(ze){ke(Q)},st=function(ze){var H=new Date(Q.getFullYear(),Q.getMonth()+ze+1,0).getDate();Q.getDate()>H&&Q.setDate(H),Q.setMonth(Q.getMonth()+ze),ke(Q)},Ft=function(ze){Q.setDate(Q.getDate()+ze),ke(Q)},da=function(ze){var H=Q.getFullYear()+ze;H<0?Q.setFullYear(0):Q.setFullYear(Q.getFullYear()+ze),ke(Q)},Ut=document.createElement("div"),An=x();Ut.id=An;var Un=document.createElement("div");Un.classList.add(h.classes.backgroundInfo);var Ie=document.createElement("div");Ie.classList.add(h.classes.dateSelectorInner);var Ht=document.createElement("div");Ht.classList.add(h.classes.button),Ht.classList.add(h.classes.elementThird),Ht.classList.add(h.classes.dateSelectorUp),Ht.innerHTML=ye;var rt=document.createElement("div");rt.classList.add(h.classes.button),rt.classList.add(h.classes.elementThird),rt.classList.add(h.classes.dateSelectorUp),rt.innerHTML=ye;var He=document.createElement("div");He.classList.add(h.classes.button),He.classList.add(h.classes.elementThird),He.classList.add(h.classes.dateSelectorUp),He.innerHTML=ye,Se.classList.add(h.classes.element),Se.classList.add(h.classes.elementThird),Se.innerHTML=h.dateMonths[Q.getMonth()],xe.classList.add(h.classes.element),xe.classList.add(h.classes.elementThird),xe.setAttribute("contentEditable",!0),xe.addEventListener("input",Pe),xe.addEventListener("blur",Ne),xe.innerHTML=Q.getDate(),Z.classList.add(h.classes.element),Z.classList.add(h.classes.elementThird),Z.setAttribute("contentEditable",!0),Z.addEventListener("input",Re),Z.addEventListener("blur",Ne),Z.innerHTML=Q.getFullYear();var Yt=document.createElement("div");Yt.classList.add(h.classes.button),Yt.classList.add(h.classes.elementThird),Yt.innerHTML=ye;var _t=document.createElement("div");_t.classList.add(h.classes.button),_t.classList.add(h.classes.elementThird),_t.innerHTML=ye;var Hn=document.createElement("div");Hn.classList.add(h.classes.button),Hn.classList.add(h.classes.elementThird),Hn.innerHTML=ye,Ht.onclick=function(){return st(1)},rt.onclick=function(){return Ft(1)},He.onclick=function(){return da(1)},Yt.onclick=function(){return st(-1)},_t.onclick=function(){return Ft(-1)},Hn.onclick=function(){return da(-1)};var gt=document.createElement("div");gt.classList.add(h.classes.button),gt.classList.add(h.classes.elementHalf),gt.classList.add(h.classes.backgroundSuccess),gt.innerHTML=pe,gt.onclick=function(){F(An,ce),_(),K?K(Q):Y&&Y(Q)};var dn=document.createElement("div");dn.classList.add(h.classes.button),dn.classList.add(h.classes.elementHalf),dn.classList.add(h.classes.backgroundError),dn.innerHTML=re,dn.onclick=function(){F(An,ce),_(),oe?oe(Q):q&&q(Q)},Ie.appendChild(Ht),Ie.appendChild(rt),Ie.appendChild(He),Ie.appendChild(Se),Ie.appendChild(xe),Ie.appendChild(Z),Ie.appendChild(Yt),Ie.appendChild(_t),Ie.appendChild(Hn),Un.appendChild(Ie),Ut.appendChild(Un),Ut.appendChild(gt),Ut.appendChild(dn),Ut.listener=function(ze){w(ze)?gt.click():E(ze)&&dn.click()},I(Ut,ce),A(Ut,ce)};m.default={alert:N,force:D,confirm:y,input:S,select:R,date:$,setOptions:C,hideAlerts:j}}])})}).call(a,r(0)(n))}])})}),e4={};p2(e4,{default:()=>Bu});var h2=Zc(Xc());f2(e4,Zc(Xc()));var{default:Qc,...b2}=h2,Bu=Qc!==void 0?Qc:b2;p();p();var Zi=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Xi(e,t,n,a){e.addEventListener?e.addEventListener(t,n,a):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function u4(e,t){for(var n=t.slice(0,t.length-1),a=0;a=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function y2(e,t){for(var n=e.length>=t.length?e:t,a=e.length>=t.length?t:e,r=!0,u=0;u=0&&Ue.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Ue.splice(0,Ue.length),(t===93||t===224)&&(t=91),t in pt){pt[t]=!1;for(var a in vn)vn[a]===t&&(Ye[a]=!1)}}function A2(e){if(typeof e>"u")Object.keys(tt).forEach(function(o){return delete tt[o]});else if(Array.isArray(e))e.forEach(function(o){o.key&&es(o)});else if(typeof e=="object")e.key&&es(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a1?u4(vn,s):[];tt[m]=tt[m].filter(function(f){var d=a?f.method===a:!0;return!(d&&f.scope===n&&y2(f.mods,g))})}})};function n4(e,t,n,a){if(t.element===a){var r;if(t.scope===n||t.scope==="all"){r=t.mods.length>0;for(var u in pt)Object.prototype.hasOwnProperty.call(pt,u)&&(!pt[u]&&t.mods.indexOf(+u)>-1||pt[u]&&t.mods.indexOf(+u)===-1)&&(r=!1);(t.mods.length===0&&!pt[16]&&!pt[18]&&!pt[17]&&!pt[91]||r||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function a4(e,t){var n=tt["*"],a=e.keyCode||e.which||e.charCode;if(Ye.filter.call(this,e)){if((a===93||a===224)&&(a=91),Ue.indexOf(a)===-1&&a!==229&&Ue.push(a),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(d){var b=ns[d];e[d]&&Ue.indexOf(b)===-1?Ue.push(b):!e[d]&&Ue.indexOf(b)>-1?Ue.splice(Ue.indexOf(b),1):d==="metaKey"&&e[d]&&Ue.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Ue=Ue.slice(Ue.indexOf(b))))}),a in pt){pt[a]=!0;for(var r in vn)vn[r]===a&&(Ye[r]=!0);if(!n)return}for(var u in pt)Object.prototype.hasOwnProperty.call(pt,u)&&(pt[u]=e[ns[u]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Ue.indexOf(17)===-1&&Ue.push(17),Ue.indexOf(18)===-1&&Ue.push(18),pt[17]=!0,pt[18]=!0);var o=Mr();if(n)for(var i=0;i-1}function Ye(e,t,n){Ue=[];var a=o4(e),r=[],u="all",o=document,i=0,s=!1,c=!0,l="+",m=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(u=t.scope),t.element&&(o=t.element),t.keyup&&(s=t.keyup),t.keydown!==void 0&&(c=t.keydown),t.capture!==void 0&&(m=t.capture),typeof t.splitKey=="string"&&(l=t.splitKey)),typeof t=="string"&&(u=t);i1&&(r=u4(vn,e)),e=e[e.length-1],e=e==="*"?"*":Iu(e),e in tt||(tt[e]=[]),tt[e].push({keyup:s,keydown:c,scope:u,mods:r,shortcut:a[i],method:n,key:a[i],splitKey:l,element:o});typeof o<"u"&&!D2(o)&&window&&(s4.push(o),Xi(o,"keydown",function(g){a4(g,o)},m),t4||(t4=!0,Xi(window,"focus",function(){Ue=[]},m)),Xi(o,"keyup",function(g){a4(g,o),S2(g)},m))}function L2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(tt).forEach(function(n){var a=tt[n].filter(function(r){return r.scope===t&&r.shortcut===e});a.forEach(function(r){r&&r.method&&r.method()})})}var ts={getPressedKeyString:C2,setScope:l4,getScope:Mr,deleteScope:k2,getPressedKeyCodes:T2,isPressed:v2,filter:w2,trigger:L2,unbind:A2,keyMap:Pr,modifier:vn,modifierMap:ns};for(Ru in ts)Object.prototype.hasOwnProperty.call(ts,Ru)&&(Ye[Ru]=ts[Ru]);var Ru;typeof document<"u"&&(r4=window.hotkeys,Ye.noConflict=function(e){return e&&window.hotkeys===Ye&&(window.hotkeys=r4),Ye},window.hotkeys=Ye);var r4;p();p();var P2={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},d4={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Ze={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},kt={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Gn={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},W=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let a=W.getVersionPrecision(e),r=W.getVersionPrecision(t),u=Math.max(a,r),o=0,i=W.map([e,t],s=>{let c=u-W.getVersionPrecision(s),l=s+new Array(c+1).join(".0");return W.map(l.split("."),m=>new Array(20-m.length).join("0")+m).reverse()});for(n&&(o=u-Math.min(a,r)),u-=1;u>=o;){if(i[0][u]>i[1][u])return 1;if(i[0][u]===i[1][u]){if(u===o)return 0;u-=1}else if(i[0][u]{n[o]=u[o]})}return e}static getBrowserAlias(e){return P2[e]}static getBrowserTypeByAlias(e){return d4[e]||""}},Oe=/version\/(\d+(\.?_?\d+)+)/i,M2=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=W.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=W.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=W.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=W.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=W.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=W.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=W.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=W.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=W.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=W.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=W.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=W.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=W.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=W.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=W.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=W.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=W.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=W.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=W.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=W.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=W.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=W.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=W.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=W.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=W.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=W.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=W.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,a=e.search("\\(")!==-1?n:t;return{name:W.getFirstMatch(a,e),version:W.getSecondMatch(a,e)}}}],F2=M2,_2=[{test:[/Roku\/DVP/],describe(e){let t=W.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:kt.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=W.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:kt.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=W.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=W.getWindowsVersionName(t);return{name:kt.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:kt.iOS},n=W.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=W.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=W.getMacOSVersionName(t),a={name:kt.MacOS,version:t};return n&&(a.versionName=n),a}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=W.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:kt.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=W.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=W.getAndroidVersionName(t),a={name:kt.Android,version:t};return n&&(a.versionName=n),a}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=W.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:kt.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=W.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||W.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||W.getFirstMatch(/\bbb(\d+)/i,e);return{name:kt.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=W.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:kt.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=W.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:kt.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:kt.Linux}}},{test:[/CrOS/],describe(){return{name:kt.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=W.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:kt.PlayStation4,version:t}}}],B2=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=W.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Ze.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Ze.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Ze.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Ze.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Ze.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Ze.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Ze.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=W.getFirstMatch(/(ipod|iphone)/i,e);return{type:Ze.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Ze.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Ze.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Ze.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Ze.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Ze.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Ze.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Ze.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Ze.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Ze.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Ze.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Ze.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Ze.tv}}}],R2=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Gn.Blink};let t=W.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Gn.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:Gn.Trident},n=W.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:Gn.Presto},n=W.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:Gn.Gecko},n=W.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Gn.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:Gn.WebKit},n=W.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],I2=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=W.find(F2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=W.find(_2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=W.find(B2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=W.find(R2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return W.assign({},this.parsedResult)}satisfies(e){let t={},n=0,a={},r=0;if(Object.keys(e).forEach(u=>{let o=e[u];typeof o=="string"?(a[u]=o,r+=1):typeof o=="object"&&(t[u]=o,n+=1)}),n>0){let u=Object.keys(t),o=W.find(u,s=>this.isOS(s));if(o){let s=this.satisfies(t[o]);if(s!==void 0)return s}let i=W.find(u,s=>this.isPlatform(s));if(i){let s=this.satisfies(t[i]);if(s!==void 0)return s}}if(r>0){let u=Object.keys(a),o=W.find(u,i=>this.isBrowser(i,!0));if(o!==void 0)return this.compareVersion(a[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),a=e.toLowerCase(),r=W.getBrowserTypeByAlias(a);return t&&r&&(a=r.toLowerCase()),a===n}compareVersion(e){let t=[0],n=e,a=!1,r=this.getBrowserVersion();if(typeof r=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(a=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(a=!0,n=e.substr(1)),t.indexOf(W.compareVersions(r,n,a))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},c4=I2,O2=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new c4(e,t)}static parse(e){return new c4(e).getResult()}static get BROWSER_MAP(){return d4}static get ENGINE_MAP(){return Gn}static get OS_MAP(){return kt}static get PLATFORMS_MAP(){return Ze}},Ua=O2;p();p();var{entries:x4,setPrototypeOf:m4,isFrozen:N2,getPrototypeOf:j2,getOwnPropertyDescriptor:z2}=Object,{freeze:St,seal:pn,create:U2}=Object,{apply:ss,construct:ls}=typeof Reflect<"u"&&Reflect;ss||(ss=function(e,t,n){return e.apply(t,n)});St||(St=function(e){return e});pn||(pn=function(e){return e});ls||(ls=function(e,t){return new e(...t)});var H2=nn(Array.prototype.forEach),g4=nn(Array.prototype.pop),Fr=nn(Array.prototype.push),ju=nn(String.prototype.toLowerCase),as=nn(String.prototype.toString),q2=nn(String.prototype.match),gn=nn(String.prototype.replace),W2=nn(String.prototype.indexOf),$2=nn(String.prototype.trim),$t=nn(RegExp.prototype.test),_r=K2(TypeError);function nn(e){return function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r/gm),Q2=pn(/\${[\w\W]*}/gm),Z2=pn(/^data-[\-\w.\u00B7-\uFFFF]/),X2=pn(/^aria-[\-\w]+$/),E4=pn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),e1=pn(/^(?:\w+script|data):/i),t1=pn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),T4=pn(/^html$/i),y4=Object.freeze({__proto__:null,MUSTACHE_EXPR:Y2,ERB_EXPR:J2,TMPLIT_EXPR:Q2,DATA_ATTR:Z2,ARIA_ATTR:X2,IS_ALLOWED_URI:E4,IS_SCRIPT_OR_DATA:e1,ATTR_WHITESPACE:t1,DOCTYPE_NAME:T4}),n1=()=>typeof window>"u"?null:window,a1=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,a="data-tt-policy-suffix";t&&t.hasAttribute(a)&&(n=t.getAttribute(a));let r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML(u){return u},createScriptURL(u){return u}})}catch{return null}};function C4(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:n1(),t=k=>C4(k);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,a=n.currentScript,{document:r}=e,{DocumentFragment:u,HTMLTemplateElement:o,Node:i,Element:s,NodeFilter:c,NamedNodeMap:l=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:m,DOMParser:g,trustedTypes:f}=e,d=s.prototype,b=Ou(d,"cloneNode"),T=Ou(d,"nextSibling"),h=Ou(d,"childNodes"),C=Ou(d,"parentNode");if(typeof o=="function"){let k=r.createElement("template");k.content&&k.content.ownerDocument&&(r=k.content.ownerDocument)}let v,O="",{implementation:B,createNodeIterator:x,createDocumentFragment:L,getElementsByTagName:M}=r,{importNode:w}=n,E={};t.isSupported=typeof x4=="function"&&typeof C=="function"&&B&&B.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:I,ERB_EXPR:F,TMPLIT_EXPR:A,DATA_ATTR:_,ARIA_ATTR:j,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:D}=y4,{IS_ALLOWED_URI:y}=y4,S=null,R=Ae({},[...p4,...rs,...us,...os,...f4]),$=null,z=Ae({},[...h4,...is,...b4,...Nu]),Y=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),q=null,ae=null,Q=!0,G=!0,pe=!1,fe=!0,re=!1,K=!1,oe=!1,me=!1,ce=!1,ye=!1,Se=!1,xe=!0,Z=!1,ke="user-content-",Pe=!0,Re=!1,Ne={},st=null,Ft=Ae({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),da=null,Ut=Ae({},["audio","video","img","source","image","track"]),An=null,Un=Ae({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ie="http://www.w3.org/1998/Math/MathML",Ht="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml",He=rt,Yt=!1,_t=null,Hn=Ae({},[Ie,Ht,rt],as),gt,dn=["application/xhtml+xml","text/html"],ze="text/html",H,de=null,$e=r.createElement("form"),Me=function(k){return k instanceof RegExp||k instanceof Function},_e=function(k){if(!(de&&de===k)){if((!k||typeof k!="object")&&(k={}),k=Ha(k),gt=dn.indexOf(k.PARSER_MEDIA_TYPE)===-1?gt=ze:gt=k.PARSER_MEDIA_TYPE,H=gt==="application/xhtml+xml"?as:ju,S="ALLOWED_TAGS"in k?Ae({},k.ALLOWED_TAGS,H):R,$="ALLOWED_ATTR"in k?Ae({},k.ALLOWED_ATTR,H):z,_t="ALLOWED_NAMESPACES"in k?Ae({},k.ALLOWED_NAMESPACES,as):Hn,An="ADD_URI_SAFE_ATTR"in k?Ae(Ha(Un),k.ADD_URI_SAFE_ATTR,H):Un,da="ADD_DATA_URI_TAGS"in k?Ae(Ha(Ut),k.ADD_DATA_URI_TAGS,H):Ut,st="FORBID_CONTENTS"in k?Ae({},k.FORBID_CONTENTS,H):Ft,q="FORBID_TAGS"in k?Ae({},k.FORBID_TAGS,H):{},ae="FORBID_ATTR"in k?Ae({},k.FORBID_ATTR,H):{},Ne="USE_PROFILES"in k?k.USE_PROFILES:!1,Q=k.ALLOW_ARIA_ATTR!==!1,G=k.ALLOW_DATA_ATTR!==!1,pe=k.ALLOW_UNKNOWN_PROTOCOLS||!1,fe=k.ALLOW_SELF_CLOSE_IN_ATTR!==!1,re=k.SAFE_FOR_TEMPLATES||!1,K=k.WHOLE_DOCUMENT||!1,ce=k.RETURN_DOM||!1,ye=k.RETURN_DOM_FRAGMENT||!1,Se=k.RETURN_TRUSTED_TYPE||!1,me=k.FORCE_BODY||!1,xe=k.SANITIZE_DOM!==!1,Z=k.SANITIZE_NAMED_PROPS||!1,Pe=k.KEEP_CONTENT!==!1,Re=k.IN_PLACE||!1,y=k.ALLOWED_URI_REGEXP||E4,He=k.NAMESPACE||rt,Y=k.CUSTOM_ELEMENT_HANDLING||{},k.CUSTOM_ELEMENT_HANDLING&&Me(k.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Y.tagNameCheck=k.CUSTOM_ELEMENT_HANDLING.tagNameCheck),k.CUSTOM_ELEMENT_HANDLING&&Me(k.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Y.attributeNameCheck=k.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),k.CUSTOM_ELEMENT_HANDLING&&typeof k.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Y.allowCustomizedBuiltInElements=k.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),re&&(G=!1),ye&&(ce=!0),Ne&&(S=Ae({},[...f4]),$=[],Ne.html===!0&&(Ae(S,p4),Ae($,h4)),Ne.svg===!0&&(Ae(S,rs),Ae($,is),Ae($,Nu)),Ne.svgFilters===!0&&(Ae(S,us),Ae($,is),Ae($,Nu)),Ne.mathMl===!0&&(Ae(S,os),Ae($,b4),Ae($,Nu))),k.ADD_TAGS&&(S===R&&(S=Ha(S)),Ae(S,k.ADD_TAGS,H)),k.ADD_ATTR&&($===z&&($=Ha($)),Ae($,k.ADD_ATTR,H)),k.ADD_URI_SAFE_ATTR&&Ae(An,k.ADD_URI_SAFE_ATTR,H),k.FORBID_CONTENTS&&(st===Ft&&(st=Ha(st)),Ae(st,k.FORBID_CONTENTS,H)),Pe&&(S["#text"]=!0),K&&Ae(S,["html","head","body"]),S.table&&(Ae(S,["tbody"]),delete q.tbody),k.TRUSTED_TYPES_POLICY){if(typeof k.TRUSTED_TYPES_POLICY.createHTML!="function")throw _r('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof k.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw _r('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=k.TRUSTED_TYPES_POLICY,O=v.createHTML("")}else v===void 0&&(v=a1(f,a)),v!==null&&typeof O=="string"&&(O=v.createHTML(""));St&&St(k),de=k}},Dn=Ae({},["mi","mo","mn","ms","mtext"]),Cn=Ae({},["foreignobject","desc","title","annotation-xml"]),Jt=Ae({},["title","style","font","a","script"]),Ba=Ae({},rs);Ae(Ba,us),Ae(Ba,G2);let Si=Ae({},os);Ae(Si,V2);let Lf=function(k){let ue=C(k);(!ue||!ue.tagName)&&(ue={namespaceURI:He,tagName:"template"});let X=ju(k.tagName),Be=ju(ue.tagName);return _t[k.namespaceURI]?k.namespaceURI===Ht?ue.namespaceURI===rt?X==="svg":ue.namespaceURI===Ie?X==="svg"&&(Be==="annotation-xml"||Dn[Be]):!!Ba[X]:k.namespaceURI===Ie?ue.namespaceURI===rt?X==="math":ue.namespaceURI===Ht?X==="math"&&Cn[Be]:!!Si[X]:k.namespaceURI===rt?ue.namespaceURI===Ht&&!Cn[Be]||ue.namespaceURI===Ie&&!Dn[Be]?!1:!Si[X]&&(Jt[X]||!Ba[X]):!!(gt==="application/xhtml+xml"&&_t[k.namespaceURI]):!1},Ra=function(k){Fr(t.removed,{element:k});try{k.parentNode.removeChild(k)}catch{k.remove()}},Ai=function(k,ue){try{Fr(t.removed,{attribute:ue.getAttributeNode(k),from:ue})}catch{Fr(t.removed,{attribute:null,from:ue})}if(ue.removeAttribute(k),k==="is"&&!$[k])if(ce||ye)try{Ra(ue)}catch{}else try{ue.setAttribute(k,"")}catch{}},rc=function(k){let ue,X;if(me)k=""+k;else{let vt=q2(k,/^[\r\n\t ]+/);X=vt&&vt[0]}gt==="application/xhtml+xml"&&He===rt&&(k=''+k+"");let Be=v?v.createHTML(k):k;if(He===rt)try{ue=new g().parseFromString(Be,gt)}catch{}if(!ue||!ue.documentElement){ue=B.createDocument(He,"template",null);try{ue.documentElement.innerHTML=Yt?O:Be}catch{}}let ut=ue.body||ue.documentElement;return k&&X&&ut.insertBefore(r.createTextNode(X),ut.childNodes[0]||null),He===rt?M.call(ue,K?"html":"body")[0]:K?ue.documentElement:ut},uc=function(k){return x.call(k.ownerDocument||k,k,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},Pf=function(k){return k instanceof m&&(typeof k.nodeName!="string"||typeof k.textContent!="string"||typeof k.removeChild!="function"||!(k.attributes instanceof l)||typeof k.removeAttribute!="function"||typeof k.setAttribute!="function"||typeof k.namespaceURI!="string"||typeof k.insertBefore!="function"||typeof k.hasChildNodes!="function")},xu=function(k){return typeof i=="object"?k instanceof i:k&&typeof k=="object"&&typeof k.nodeType=="number"&&typeof k.nodeName=="string"},Ln=function(k,ue,X){E[k]&&H2(E[k],Be=>{Be.call(t,ue,X,de)})},oc=function(k){let ue;if(Ln("beforeSanitizeElements",k,null),Pf(k))return Ra(k),!0;let X=H(k.nodeName);if(Ln("uponSanitizeElement",k,{tagName:X,allowedTags:S}),k.hasChildNodes()&&!xu(k.firstElementChild)&&(!xu(k.content)||!xu(k.content.firstElementChild))&&$t(/<[/\w]/g,k.innerHTML)&&$t(/<[/\w]/g,k.textContent))return Ra(k),!0;if(!S[X]||q[X]){if(!q[X]&&sc(X)&&(Y.tagNameCheck instanceof RegExp&&$t(Y.tagNameCheck,X)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(X)))return!1;if(Pe&&!st[X]){let Be=C(k)||k.parentNode,ut=h(k)||k.childNodes;if(ut&&Be){let vt=ut.length;for(let Bt=vt-1;Bt>=0;--Bt)Be.insertBefore(b(ut[Bt],!0),T(k))}}return Ra(k),!0}return k instanceof s&&!Lf(k)||(X==="noscript"||X==="noembed")&&$t(/<\/no(script|embed)/i,k.innerHTML)?(Ra(k),!0):(re&&k.nodeType===3&&(ue=k.textContent,ue=gn(ue,I," "),ue=gn(ue,F," "),ue=gn(ue,A," "),k.textContent!==ue&&(Fr(t.removed,{element:k.cloneNode()}),k.textContent=ue)),Ln("afterSanitizeElements",k,null),!1)},ic=function(k,ue,X){if(xe&&(ue==="id"||ue==="name")&&(X in r||X in $e))return!1;if(!(G&&!ae[ue]&&$t(_,ue))&&!(Q&&$t(j,ue))){if(!$[ue]||ae[ue]){if(!(sc(k)&&(Y.tagNameCheck instanceof RegExp&&$t(Y.tagNameCheck,k)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(k))&&(Y.attributeNameCheck instanceof RegExp&&$t(Y.attributeNameCheck,ue)||Y.attributeNameCheck instanceof Function&&Y.attributeNameCheck(ue))||ue==="is"&&Y.allowCustomizedBuiltInElements&&(Y.tagNameCheck instanceof RegExp&&$t(Y.tagNameCheck,X)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(X))))return!1}else if(!An[ue]&&!$t(y,gn(X,D,""))&&!((ue==="src"||ue==="xlink:href"||ue==="href")&&k!=="script"&&W2(X,"data:")===0&&da[k])&&!(pe&&!$t(N,gn(X,D,"")))&&X)return!1}return!0},sc=function(k){return k.indexOf("-")>0},lc=function(k){let ue,X,Be,ut;Ln("beforeSanitizeAttributes",k,null);let{attributes:vt}=k;if(!vt)return;let Bt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:$};for(ut=vt.length;ut--;){ue=vt[ut];let{name:lt,namespaceURI:Ia}=ue;if(X=lt==="value"?ue.value:$2(ue.value),Be=H(lt),Bt.attrName=Be,Bt.attrValue=X,Bt.keepAttr=!0,Bt.forceKeepAttr=void 0,Ln("uponSanitizeAttribute",k,Bt),X=Bt.attrValue,Bt.forceKeepAttr||(Ai(lt,k),!Bt.keepAttr))continue;if(!fe&&$t(/\/>/i,X)){Ai(lt,k);continue}re&&(X=gn(X,I," "),X=gn(X,F," "),X=gn(X,A," "));let cc=H(k.nodeName);if(ic(cc,Be,X)){if(Z&&(Be==="id"||Be==="name")&&(Ai(lt,k),X=ke+X),v&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!Ia)switch(f.getAttributeType(cc,Be)){case"TrustedHTML":{X=v.createHTML(X);break}case"TrustedScriptURL":{X=v.createScriptURL(X);break}}try{Ia?k.setAttributeNS(Ia,lt,X):k.setAttribute(lt,X),g4(t.removed)}catch{}}}Ln("afterSanitizeAttributes",k,null)},Mf=function k(ue){let X,Be=uc(ue);for(Ln("beforeSanitizeShadowDOM",ue,null);X=Be.nextNode();)Ln("uponSanitizeShadowNode",X,null),!oc(X)&&(X.content instanceof u&&k(X.content),lc(X));Ln("afterSanitizeShadowDOM",ue,null)};return t.sanitize=function(k){let ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X,Be,ut,vt;if(Yt=!k,Yt&&(k=""),typeof k!="string"&&!xu(k))if(typeof k.toString=="function"){if(k=k.toString(),typeof k!="string")throw _r("dirty is not a string, aborting")}else throw _r("toString is not a function");if(!t.isSupported)return k;if(oe||_e(ue),t.removed=[],typeof k=="string"&&(Re=!1),Re){if(k.nodeName){let Ia=H(k.nodeName);if(!S[Ia]||q[Ia])throw _r("root node is forbidden and cannot be sanitized in-place")}}else if(k instanceof i)X=rc(""),Be=X.ownerDocument.importNode(k,!0),Be.nodeType===1&&Be.nodeName==="BODY"||Be.nodeName==="HTML"?X=Be:X.appendChild(Be);else{if(!ce&&!re&&!K&&k.indexOf("<")===-1)return v&&Se?v.createHTML(k):k;if(X=rc(k),!X)return ce?null:Se?O:""}X&&me&&Ra(X.firstChild);let Bt=uc(Re?k:X);for(;ut=Bt.nextNode();)oc(ut)||(ut.content instanceof u&&Mf(ut.content),lc(ut));if(Re)return k;if(ce){if(ye)for(vt=L.call(X.ownerDocument);X.firstChild;)vt.appendChild(X.firstChild);else vt=X;return($.shadowroot||$.shadowrootmod)&&(vt=w.call(n,vt,!0)),vt}let lt=K?X.outerHTML:X.innerHTML;return K&&S["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&$t(T4,X.ownerDocument.doctype.name)&&(lt=" -`+lt),re&&(lt=gn(lt,I," "),lt=gn(lt,F," "),lt=gn(lt,A," ")),v&&Se?v.createHTML(lt):lt},t.setConfig=function(k){_e(k),oe=!0},t.clearConfig=function(){de=null,oe=!1},t.isValidAttribute=function(k,ue,X){de||_e({});let Be=H(k),ut=H(ue);return ic(Be,ut,X)},t.addHook=function(k,ue){typeof ue=="function"&&(E[k]=E[k]||[],Fr(E[k],ue))},t.removeHook=function(k){if(E[k])return g4(E[k])},t.removeHooks=function(k){E[k]&&(E[k]=[])},t.removeAllHooks=function(){E={}},t}var Le=C4();var r1=Bu.alert;p();p();p();p();var qa=console,cs=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),a=Math.round(n-this.#e),r=tn.green;a>1e4?r=tn.red:a>1e3&&(r=tn.yellow),qa.debug(tn.dim(ma+" TIMING:"),t,"in",r(a+"ms")),this.#e=n}},Br=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&qa.log(tn.dim(ma+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&qa.log(tn.green(ma+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&qa.warn(tn.yellow(ma+" WARN:"),...t)}error(...t){this.#e<=3&&qa.error(tn.red(ma+" ERROR:"),...t)}fatal(...t){this.#e<=4&&qa.error(tn.red(ma+" FATAL:"),...t)}timing(){return this.level===0?new cs:{reset:()=>{},stop:()=>{}}}},U=new Br;p();p();p();var ds=/iPhone/i,w4=/iPod/i,v4=/iPad/i,k4=/\biOS-universal(?:.+)Mac\b/i,ms=/\bAndroid(?:.+)Mobile\b/i,S4=/Android/i,Wa=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,zu=/Silk/i,Bn=/Windows Phone/i,A4=/\bWindows(?:.+)ARM\b/i,D4=/BlackBerry/i,L4=/BB10/i,P4=/Opera Mini/i,M4=/\b(CriOS|Chrome)(?:.+)Mobile/i,F4=/Mobile(?:.+)Firefox\b/i,_4=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function u1(e){return t=>t.test(e)}function fa(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,a=n.split("[FBAN");typeof a[1]<"u"&&(n=a[0]),a=n.split("Twitter"),typeof a[1]<"u"&&(n=a[0]);let r=u1(n),u={apple:{phone:r(ds)&&!r(Bn),ipod:r(w4),tablet:!r(ds)&&(r(v4)||_4(t))&&!r(Bn),universal:r(k4),device:(r(ds)||r(w4)||r(v4)||r(k4)||_4(t))&&!r(Bn)},amazon:{phone:r(Wa),tablet:!r(Wa)&&r(zu),device:r(Wa)||r(zu)},android:{phone:!r(Bn)&&r(Wa)||!r(Bn)&&r(ms),tablet:!r(Bn)&&!r(Wa)&&!r(ms)&&(r(zu)||r(S4)),device:!r(Bn)&&(r(Wa)||r(zu)||r(ms)||r(S4))||r(/\bokhttp\b/i)},windows:{phone:r(Bn),tablet:r(A4),device:r(Bn)||r(A4)},other:{blackberry:r(D4),blackberry10:r(L4),opera:r(P4),firefox:r(F4),chrome:r(M4),device:r(D4)||r(L4)||r(P4)||r(F4)||r(M4)},any:!1,phone:!1,tablet:!1};return u.any=u.apple.device||u.android.device||u.windows.device||u.other.device,u.phone=u.apple.phone||u.android.phone||u.windows.phone,u.tablet=u.apple.tablet||u.android.tablet||u.windows.tablet,u}var gs="DENO",Uu="CHROME",Hu="FIREFOX";function B4(e){let t=Uu;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=Hu:/deno/i.test(n)&&(t=gs)}catch{}return e===Uu&&t===Uu||e===Hu&&t===Hu||e===gs&&t===gs}function R4(){return B4(Uu)}function I4(){return typeof Deno<"u"}function qu(){return B4(Hu)}function O4(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function Rr(){return!!globalThis.matchMedia("(pointer:fine)").matches}p();var N4={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},j4={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:N4,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}}},tabs:{onUpdated:N4,query:()=>{},sendMessage:()=>{}}};var se;I4()?se=j4:se=globalThis.immersiveTranslateBrowserAPI;p();p();p();p();p();var E8=U4(2),z4=U4(3);function U4(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let a=[];if(n==null)return a;let r=typeof n.slice=="function"?n:String(n),u=r.length-e+1;if(u<1)return a;for(;u--;)a[u]=r.slice(u,u+e);return a}}p();var o1=/\s+/g,i1=/[\t\n\v\f\r ]+/g;function H4(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?s1:l1;return String(e).replace(t.style==="html"?i1:o1,t.trim?c1(n):n)}function s1(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function l1(){return" "}function c1(e){return t;function t(n,a,r){return a===0||a+n.length===r.length?"":e(n)}}var q4={}.hasOwnProperty;function d1(e){return e==null?"":H4(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function m1(e){return z4(" "+d1(e)+" ")}function g1(e){let t=m1(e),n={},a=-1;for(;++an&&(n=u,a=r)}return[a,n]}function E1(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function T1(e,t,n,a){t=w1(t,n,a);let r=[],u;if(t)for(u in t)Wu.call(t,u)&&r.push([u,C1(e,t[u])]);return r.length===0?fs():r.sort(v1)}function C1(e,t){let n=0,a=-1;for(;++at.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterso+i.length,0));let u=e.length-a;for(let o of B1){let i=o[1],s=o[0],c=e.match(i),l=c?c.length:0;l>n&&(n=l,t=s)}return n*2.5/u>.5?t==="zh-CN"?Q4(e)?"zh-TW":"zh-CN":t:"auto"}var X4=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],hs=new Map(X4),R1=new Map(X4.map(([e,t])=>[t,e]));function ed(e,t,n=["en"]){if(!e)return"auto";let a=n.map(i=>R1.get(i));!t&&t!==0&&(t=25);let r=Ku(e);if(r!=="auto")return r;let u={minLength:t,whitelist:[...hs.keys()]},o=K4(e,u);if(o&&o.length>0){for(let[l,m]of o)if(a.includes(l)&&m>.5)return hs.get(l);let[i,s]=o[0],c=hs.get(i);if(c&&s>.5)return c}return"auto"}p();p();var td=ge+"SyncStoreKey_";function At(e,t){let n=td+e;return se.storage.sync.get(n).then(a=>a[n]===void 0?t:a[n])}function je(e,t){let n=td+e;return se.storage.sync.set({[n]:t})}p();var nd=ge+"StoreKey_";function Rn(e,t){let n=nd+e;return se.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function ad(e,t){let n=nd+e;return se.storage.local.set({[n]:t})}p();var $a=ge+"CacheKey_";function I1(e,t){let n=$a+e;return se.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function O1(){let e=se.storage.local.refresh;e&&e()}function Or(e,t){let n=$a+e;return se.storage.local.get(n).then(a=>{if(a[n]===void 0)return t;let{value:r,expired:u}=a[n];return u&&ua.startsWith($a));if(n.length>0)return se.storage.local.remove(n)}}var Nt={get:I1,set:N1,getExpired:Or,setExpired:Nr,remove:jr,clear:j1,refresh:O1};p();p();p();var ot=class extends Error{details;constructor(t,n,a){super(n),this.name=t,a&&(this.details=a)}};async function ha(e){let t;if(e&&e.retry&&e.retry>0)try{t=await Ki(rd.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await rd(e);return t}async function rd(e){e.body;let{url:t,responseType:n,...a}=e;n||(n="json"),a={mode:"cors",...a};let r=!0;e.fetchPolyfill&&(r=!1);let u=e.fetchPolyfill||fetch,o=3e5;if(e.timeout&&(o=e.timeout),r){let s=new AbortController,c=s.signal;setTimeout(()=>{s.abort()},o),a.signal=c}let i;try{i=await u(t,a)}catch(s){U.debug("fetch error",t,s);let c=s.message||"";throw s.message="\u7F51\u7EDC\u95EE\u9898\uFF0C\u65E0\u6CD5\u8FDE\u63A5\u5230\u670D\u52A1\uFF0C\u8BF7\u68C0\u67E5\u4F60\u7684\u4EE3\u7406\u6216\u672C\u5730\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u8BD5\u3002 "+c,s}if(i.ok&&i.status>=200&&i.status<400){if(n==="json")return await i.json();if(n==="text")return await i.text();if(n==="raw"){let s=await i.text(),c=Object.fromEntries([...i.headers.entries()]),l=i.url;return l||(i.headers.get("X-Final-URL")?l=i.headers.get("X-Final-URL"):l=t),{body:s,headers:c,status:i.status,statusText:i.statusText,url:l}}else if(n==="stream"){let s="",c;if(i.body&&i.body instanceof ReadableStream)for await(let l of z1(i.body)){let m=new TextDecoder().decode(l);s+=m;let g;for(;(g=s.indexOf(` -`))>=0;){let f=s.slice(0,g).trim();if(s=s.slice(g+1),f.startsWith("event:")||f==="")continue;let d="";if(f.startsWith("data:")&&(d=f.slice(5).trim()),d==="[DONE]")break;let b;try{b=JSON.parse(d??"")}catch(T){U.debug("json error",T);continue}c=b}}return c}}else{let s;try{s=await i.text()}catch(f){U.error("parse response failed",f)}s&&U.error("fail response",s);let c="";s&&(c=s.slice(0,280));let l="\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u4EE3\u7801:"+i.status+": "+(i.statusText||"")+c,g=new URL(t).hostname.endsWith(".immersivetranslate.com");throw i.status===429?g?c.includes("quota exceeded")?l="ProQuota:"+c:l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${c} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`:l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A429\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===403?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A403\uFF0C \u8BF4\u660E\u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ${c}`:i.status===400?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A400\uFF0C \u8BF4\u660E\u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002 ${c}`:i.status===502?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A502\uFF0C \u8BF4\u660E\u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===401&&(l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A401\uFF0C \u8BF4\u660E\u672A\u767B\u5F55\u6216\u767B\u5F55\u6001\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002 ${c}`),new ot("fetchError",l,s)}}async function*z1(e){let t=e.getReader();try{for(;;){let{done:n,value:a}=await t.read();if(n)return;yield a}}finally{t.releaseLock()}}p();var U1=new Map;function Gu(e){let t=H1(64),n=new CustomEvent(xc,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((a,r)=>{U1.set(t,(u,o)=>{u?r(u):a(o)})})}function H1(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};function an(){return Vu.version}p();function nt(){try{return globalThis.self!==globalThis.top}catch{return!0}}p();var zr=new Map,Vn=class{fromType;logger;constructor(t,n=!1){this.logger=new Br,n&&this.logger.setLevel("debug"),this.fromType=t,zr.has(t)||(zr.set(t,new Map),se.runtime.onMessage.addListener((a,r,u)=>{let o=a.from,i=a.to,s,c,l;r.tab&&r.tab.id&&(s=r.tab.id,o=`${o}:${s}`,c=r.tab.url,l=r.tab.active),this.logger.debug(`${a.to} received message [${a.payload.method}] from ${a.from}`,a.payload.data?a.payload.data:" ");let m=ys(i),{type:g,name:f}=m;if(g!==t)return!1;let d=ys(o),T=zr.get(g).get(f);if(!T)return this.logger.debug(`no message handler for ${g}:${i}, but it's ok`),!1;let{messageHandler:h,sync:C}=T,v={type:t,name:d.name,id:s,url:c,active:l};if(C){try{let O=h(a.payload,v);u({ok:!0,data:O})}catch(O){u({ok:!1,errorName:O.name,errorMessage:O.message,errorDetails:O.details})}return!1}else return h(a.payload,v).then(O=>{u({ok:!0,data:O})}).catch(O=>{u({ok:!1,errorName:O.name,errorMessage:O.message,errorDetails:O.details})}),!0}))}getConnection(t,n,a){let r=!1;a&&a.sync&&(r=!0);let u=this.fromType,o=zr.get(u);if(o.has(t))return o.get(t).connectionInstance;{let i=new bs(`${u}:${t}`,this.logger);return zr.get(u).set(t,{messageHandler:n,sync:r,connectionInstance:i}),i}}},bs=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let a=ys(t),{type:r,id:u}=a;if(r!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let i=await se.runtime.sendMessage(o);return ud(o,i,this.logger)}catch(i){if(r==="popup"){let s=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(s,n,t,i),Promise.resolve({message:s})}else throw i}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let i=await se.tabs.sendMessage(u,o);return ud(o,i,this.logger)}}};function ud(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new ot(t.errorName||"UnknownError",t.errorMessage||"Unknown error",t.errorDetails)}else throw new ot("noResponse","Unknown error")}function ys(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let a=parseInt(t[2]);if(!isNaN(a))n.id=a;else throw new Error("tab id not a valid number")}return n}var Yu;function W1(){return Yu||(Yu=new Vn("content_script",!1).getConnection("pure_main",()=>{}),Yu)}var od="G-MKMD9LWFTR";async function Ur(e,t){try{let n=Qe();if(n.INSTALL_FROM==="firefox_store")return;let r=he(),u=nt(),o=n.PROD==="1",i="sitc4WmvShWYwfU0dANM3Q",s=await At("fakeUserId","");s||(s=await Rn("fakeUserId",""),s&&await je("fakeUserId",s));let c=an(),l=new Date,m=await At("installedAt","");m||(m=await Rn("installedAt",""),m&&await je("installedAt",m)),s?m||(m=new Date(0).toISOString(),await je("installedAt",m)):(s=$1(32),await je("fakeUserId",s)),m||(m=l.toISOString(),await je("installedAt",m));let g=new Date(m),f=id(g),d=id(l),b=f===d,T=l.getTime()-g.getTime()<7*24*60*60*1e3,h=`https://www.google-analytics.com/mp/collect?measurement_id=${od}&api_secret=${i}`;o||(h=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${od}&api_secret=${i}`);let C="";typeof navigator<"u"&&(C=window.navigator.userAgent);let v=Ua.parse(C),O=t.map(x=>{let L=x.params||{};return v.os&&(L.os_name=v.os.name||"unknown",L.os_version=v.os.version||"unknown",L.os_version_name=v.os.versionName||"unknown"),v.browser&&(L.browser_name=v.browser.name||"unknown",L.browser_version=v.browser.version||"unknown"),v.platform&&(L.platform_type=v.platform.type||"unknown"),v.engine&&(L.engine_name=v.engine.name||"unknown",L.engine_version=v.engine.version||"unknown"),c&&(L.version=c),n.INSTALL_FROM&&(L.install_from=n.INSTALL_FROM),f&&(L.install_day=K1(g)),L.userscript=r.toString(),b?L.is_new_user_today="1":L.is_new_user_today="0",T?L.is_new_user_this_week="1":L.is_new_user_this_week="0",u?L.main_frame=0:L.main_frame=1,{...x,params:L}}),B=await Ju({responseType:"text",url:h,method:"POST",body:JSON.stringify({client_id:s,user_id:s,events:O})})}catch{}}function $1(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r",""]},custom:{placeholderDelimiters:["{","}"]},bing:{maxTextLengthPerRequest:1800,placeholderDelimiters:["","","b"]},deeplx:{limit:3},d:{immediateTranslationTextCount:0},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},openai:{placeholderDelimiters:["{{","}}","b"],immediateTranslationTextCount:3e3,translationDebounce:300,interval:1350,prompt:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +`)}n.push(...g)}for(let r=0;r{let i=e.lastIndexOf(o,t);return i>u?i:u},-1);if(r===-1){let u=e.slice(0,t);if(u&&!u.trim())return;n.push({text:u,prefix:"",suffix:""}),e.length>t&&Ui(e.slice(t),t,n)}else{let u=e.slice(0,r+1);if(u&&u.trim()==="")return;u.startsWith(" ")?n.push({text:u.slice(1),prefix:" ",suffix:""}):n.push({text:u,prefix:"",suffix:""}),r+10){l.forEach(d=>{c.length>0&&d.providers&&d.providers.length>0&&!d.providers.includes(s)||(d.optional?g.push(d):m.push(d))});let f=g.concat(m).filter(d=>d.required);if(f.length>0){for(let d of f)if(!r[d.name]){i=!1;break}}}return{...a,id:t,selected:n[e]===t,ok:i,currentProvider:s,config:r,providers:a.providers||[],props:a.props||[],allProps:l,optionalProps:g,explicitProps:m}}var Hc=(e,t)=>{let{config:n}=e,a=n.alpha,r=n.beta,u=n.canary,o=n.debug,i=e.user,s=Zt(i);return Object.keys(Fn).filter(l=>{let m=Fn[l];if(l.startsWith("mock"))return o?!0:l===e.config[t];if(l===e.config[t])return!0;if(l==="openai"&&Xt())return e.config.showOpenaiOnSafari||s?!0:!!(r||a||u||s);let g=!!m.canary,f=!!m.alpha,d=!!m.beta;return l===e[t]||g&&u||f&&(a||u)||d&&(r||a||u)?!0:!f&&!d&&!g}).map(l=>Hi(t,l,e))};function $t(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}p();p();p();p();function Ua(){let e,t="pending",n=new Promise((a,r)=>{e={async resolve(u){await u,t="fulfilled",a(u)},reject(u){t="rejected",r(u)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}p();var qi=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function Mu(e,t){let n=Ua(),a=setTimeout(()=>n.reject(new qi),t);return Promise.race([e,n]).finally(()=>clearTimeout(a))}p();p();function Dr(e,t={}){let{signal:n,persistent:a}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((r,u)=>{let o=()=>{clearTimeout(s),u(new DOMException("Delay was aborted.","AbortError"))},s=setTimeout(()=>{n?.removeEventListener("abort",o),r()},e);if(n?.addEventListener("abort",o,{once:!0}),a===!1)try{Deno.unrefTimer(s)}catch(c){if(!(c instanceof ReferenceError))throw c}})}p();var qc=class{#e=0;#t=[];#n=[];#a=Ua();add(t){++this.#e,this.#r(t[Symbol.asyncIterator]())}async#r(t){try{let{value:n,done:a}=await t.next();a?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#a.resolve()}async*iterate(){for(;this.#e>0;){await this.#a;for(let t=0;tLh,bgBlue:()=>_h,bgBrightBlack:()=>Oh,bgBrightBlue:()=>Uh,bgBrightCyan:()=>qh,bgBrightGreen:()=>jh,bgBrightMagenta:()=>Hh,bgBrightRed:()=>Nh,bgBrightWhite:()=>Wh,bgBrightYellow:()=>zh,bgCyan:()=>Rh,bgGreen:()=>Mh,bgMagenta:()=>Bh,bgRed:()=>Ph,bgRgb24:()=>Vh,bgRgb8:()=>Kh,bgWhite:()=>Ih,bgYellow:()=>Fh,black:()=>gh,blue:()=>bh,bold:()=>oh,brightBlack:()=>Kc,brightBlue:()=>kh,brightCyan:()=>Ah,brightGreen:()=>wh,brightMagenta:()=>Sh,brightRed:()=>Ch,brightWhite:()=>Dh,brightYellow:()=>vh,cyan:()=>xh,dim:()=>ih,getColorEnabled:()=>rh,gray:()=>Th,green:()=>fh,hidden:()=>dh,inverse:()=>ch,italic:()=>sh,magenta:()=>yh,red:()=>ph,reset:()=>uh,rgb24:()=>Gh,rgb8:()=>$h,setColorEnabled:()=>ah,strikethrough:()=>mh,stripColor:()=>Jh,underline:()=>lh,white:()=>Eh,yellow:()=>hh});p();var{Deno:Wc}=globalThis,$c=typeof Wc?.noColor=="boolean"?Wc.noColor:!0,Wi=!$c;function ah(e){$c||(Wi=e)}function rh(){return Wi}function Te(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function Ce(e,t){return Wi?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function uh(e){return Ce(e,Te([0],0))}function oh(e){return Ce(e,Te([1],22))}function ih(e){return Ce(e,Te([2],22))}function sh(e){return Ce(e,Te([3],23))}function lh(e){return Ce(e,Te([4],24))}function ch(e){return Ce(e,Te([7],27))}function dh(e){return Ce(e,Te([8],28))}function mh(e){return Ce(e,Te([9],29))}function gh(e){return Ce(e,Te([30],39))}function ph(e){return Ce(e,Te([31],39))}function fh(e){return Ce(e,Te([32],39))}function hh(e){return Ce(e,Te([33],39))}function bh(e){return Ce(e,Te([34],39))}function yh(e){return Ce(e,Te([35],39))}function xh(e){return Ce(e,Te([36],39))}function Eh(e){return Ce(e,Te([37],39))}function Th(e){return Kc(e)}function Kc(e){return Ce(e,Te([90],39))}function Ch(e){return Ce(e,Te([91],39))}function wh(e){return Ce(e,Te([92],39))}function vh(e){return Ce(e,Te([93],39))}function kh(e){return Ce(e,Te([94],39))}function Sh(e){return Ce(e,Te([95],39))}function Ah(e){return Ce(e,Te([96],39))}function Dh(e){return Ce(e,Te([97],39))}function Lh(e){return Ce(e,Te([40],49))}function Ph(e){return Ce(e,Te([41],49))}function Mh(e){return Ce(e,Te([42],49))}function Fh(e){return Ce(e,Te([43],49))}function _h(e){return Ce(e,Te([44],49))}function Bh(e){return Ce(e,Te([45],49))}function Rh(e){return Ce(e,Te([46],49))}function Ih(e){return Ce(e,Te([47],49))}function Oh(e){return Ce(e,Te([100],49))}function Nh(e){return Ce(e,Te([101],49))}function jh(e){return Ce(e,Te([102],49))}function zh(e){return Ce(e,Te([103],49))}function Uh(e){return Ce(e,Te([104],49))}function Hh(e){return Ce(e,Te([105],49))}function qh(e){return Ce(e,Te([106],49))}function Wh(e){return Ce(e,Te([107],49))}function Kn(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function $h(e,t){return Ce(e,Te([38,5,Kn(t)],39))}function Kh(e,t){return Ce(e,Te([48,5,Kn(t)],49))}function Gh(e,t){return typeof t=="number"?Ce(e,Te([38,2,t>>16&255,t>>8&255,t&255],39)):Ce(e,Te([38,2,Kn(t.r),Kn(t.g),Kn(t.b)],39))}function Vh(e,t){return typeof t=="number"?Ce(e,Te([48,2,t>>16&255,t>>8&255,t&255],49)):Ce(e,Te([48,2,Kn(t.r),Kn(t.g),Kn(t.b)],49))}var Yh=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function Jh(e){return e.replace(Yh,"")}p();p();var $i=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},Qh={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function Ki(e,t){let n={...Qh,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let a=n.minTimeout,r;for(let u=0;usetTimeout(i,a)),a*=n.multiplier,a=Math.max(a,n.minTimeout),n.maxTimeout>=0&&(a=Math.min(a,n.maxTimeout)),r=o}throw new $i(r,n.maxAttempts)}p();var _n=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function Gi(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",a,r=t.length;for(a=2;a>2],n+=_n[(t[a-2]&3)<<4|t[a-1]>>4],n+=_n[(t[a-1]&15)<<2|t[a]>>6],n+=_n[t[a]&63];return a===r+1&&(n+=_n[t[a-2]>>2],n+=_n[(t[a-2]&3)<<4],n+="=="),a===r&&(n+=_n[t[a-2]>>2],n+=_n[(t[a-2]&3)<<4|t[a-1]>>4],n+=_n[(t[a-1]&15)<<2],n+="="),n}p();p();var tE=Number.isNaN||function(e){return typeof e=="number"&&e!==e};p();p();var Fu=globalThis||(typeof window<"u"?window:self),Xh=Object.create,Yi=Object.defineProperty,e2=Object.getOwnPropertyDescriptor,t2=Object.getOwnPropertyNames,n2=Object.getPrototypeOf,a2=Object.prototype.hasOwnProperty,r2=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),u2=(e,t)=>{for(var n in t)Yi(e,n,{get:t[n],enumerable:!0})},Vi=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of t2(t))!a2.call(e,r)&&r!==n&&Yi(e,r,{get:()=>t[r],enumerable:!(a=e2(t,r))||a.enumerable});return e},o2=(e,t,n)=>(Vi(e,t,"default"),n&&Vi(n,t,"default")),Vc=(e,t,n)=>(n=e!=null?Xh(n2(e)):{},Vi(t||!e||!e.__esModule?Yi(n,"default",{value:e,enumerable:!0}):n,e)),Yc=r2((e,t)=>{var n="Expected a function",a=NaN,r="[object Symbol]",u=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,l=typeof Fu=="object"&&Fu&&Fu.Object===Object&&Fu,m=typeof self=="object"&&self&&self.Object===Object&&self,g=l||m||Function("return this")(),f=Object.prototype,d=f.toString,b=Math.max,T=Math.min,h=function(){return g.Date.now()};function C(M,w,E){var I,F,A,_,j,N,D=0,y=!1,S=!1,R=!0;if(typeof M!="function")throw new TypeError(n);w=L(w)||0,O(E)&&(y=!!E.leading,S="maxWait"in E,A=S?b(L(E.maxWait)||0,w):A,R="trailing"in E?!!E.trailing:R);function $(re){var K=I,oe=F;return I=F=void 0,D=re,_=M.apply(oe,K),_}function z(re){return D=re,j=setTimeout(ae,w),y?$(re):_}function Y(re){var K=re-N,oe=re-D,me=w-K;return S?T(me,A-oe):me}function q(re){var K=re-N,oe=re-D;return N===void 0||K>=w||K<0||S&&oe>=A}function ae(){var re=h();if(q(re))return Q(re);j=setTimeout(ae,Y(re))}function Q(re){return j=void 0,R&&I?$(re):(I=F=void 0,_)}function G(){j!==void 0&&clearTimeout(j),D=0,I=N=F=j=void 0}function pe(){return j===void 0?_:Q(h())}function he(){var re=h(),K=q(re);if(I=arguments,F=this,N=re,K){if(j===void 0)return z(N);if(S)return j=setTimeout(ae,w),$(N)}return j===void 0&&(j=setTimeout(ae,w)),_}return he.cancel=G,he.flush=pe,he}function v(M,w,E){var I=!0,F=!0;if(typeof M!="function")throw new TypeError(n);return O(E)&&(I="leading"in E?!!E.leading:I,F="trailing"in E?!!E.trailing:F),C(M,w,{leading:I,maxWait:w,trailing:F})}function O(M){var w=typeof M;return!!M&&(w=="object"||w=="function")}function B(M){return!!M&&typeof M=="object"}function x(M){return typeof M=="symbol"||B(M)&&d.call(M)==r}function L(M){if(typeof M=="number")return M;if(x(M))return a;if(O(M)){var w=typeof M.valueOf=="function"?M.valueOf():M;M=O(w)?w+"":w}if(typeof M!="string")return M===0?M:+M;M=M.replace(u,"");var E=i.test(M);return E||s.test(M)?c(M.slice(2),E?2:8):o.test(M)?a:+M}t.exports=v}),Jc={};u2(Jc,{default:()=>xt});var i2=Vc(Yc());o2(Jc,Vc(Yc()));var{default:Gc,...s2}=i2,xt=Gc!==void 0?Gc:s2;p();p();var l2=Object.create,Qi=Object.defineProperty,c2=Object.getOwnPropertyDescriptor,d2=Object.getOwnPropertyNames,m2=Object.getPrototypeOf,g2=Object.prototype.hasOwnProperty,p2=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),f2=(e,t)=>{for(var n in t)Qi(e,n,{get:t[n],enumerable:!0})},Ji=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of d2(t))!g2.call(e,r)&&r!==n&&Qi(e,r,{get:()=>t[r],enumerable:!(a=c2(t,r))||a.enumerable});return e},h2=(e,t,n)=>(Ji(e,t,"default"),n&&Ji(n,t,"default")),Zc=(e,t,n)=>(n=e!=null?l2(m2(e)):{},Ji(t||!e||!e.__esModule?Qi(n,"default",{value:e,enumerable:!0}):n,e)),Xc=p2((e,t)=>{(function(n,a){typeof e=="object"&&typeof t=="object"?t.exports=a():typeof define=="function"&&define.amd?define([],a):typeof e=="object"?e.notie=a():n.notie=a()})(e,function(){return function(n){function a(u){if(r[u])return r[u].exports;var o=r[u]={i:u,l:!1,exports:{}};return n[u].call(o.exports,o,o.exports,a),o.l=!0,o.exports}var r={};return a.m=n,a.c=r,a.i=function(u){return u},a.d=function(u,o,i){a.o(u,o)||Object.defineProperty(u,o,{configurable:!1,enumerable:!0,get:i})},a.n=function(u){var o=u&&u.__esModule?function(){return u.default}:function(){return u};return a.d(o,"a",o),o},a.o=function(u,o){return Object.prototype.hasOwnProperty.call(u,o)},a.p="",a(a.s=1)}([function(n,a){n.exports=function(r){return r.webpackPolyfill||(r.deprecate=function(){},r.paths=[],r.children||(r.children=[]),Object.defineProperty(r,"loaded",{enumerable:!0,get:function(){return r.l}}),Object.defineProperty(r,"id",{enumerable:!0,get:function(){return r.i}}),r.webpackPolyfill=1),r}},function(n,a,r){"use strict";(function(u){var o,i,s,c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l};(function(l,m){c(a)==="object"&&c(u)==="object"?u.exports=m():(i=[],o=m,s=typeof o=="function"?o.apply(a,i):o,s!==void 0&&(u.exports=s))})(void 0,function(){return function(l){function m(f){if(g[f])return g[f].exports;var d=g[f]={i:f,l:!1,exports:{}};return l[f].call(d.exports,d,d.exports,m),d.l=!0,d.exports}var g={};return m.m=l,m.c=g,m.i=function(f){return f},m.d=function(f,d,b){m.o(f,d)||Object.defineProperty(f,d,{configurable:!1,enumerable:!0,get:b})},m.n=function(f){var d=f&&f.__esModule?function(){return f.default}:function(){return f};return m.d(d,"a",d),d},m.o=function(f,d){return Object.prototype.hasOwnProperty.call(f,d)},m.p="",m(m.s=0)}([function(l,m,g){function f(z,Y){var q={};for(var ae in z)Y.indexOf(ae)>=0||Object.prototype.hasOwnProperty.call(z,ae)&&(q[ae]=z[ae]);return q}Object.defineProperty(m,"__esModule",{value:!0});var d=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(z){return typeof z>"u"?"undefined":c(z)}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z>"u"?"undefined":c(z)},b=Object.assign||function(z){for(var Y=1;Y'+ae+"",oe.onclick=function(){return F(me,K)},oe.listener=function(ce){(w(ce)||E(ce))&&j()},I(oe,K),G&&G<1&&(G=1),!he&&G&&O(G).then(function(){return F(me,K)})},D=m.force=function(z,Y){var q=z.type,ae=q===void 0?5:q,Q=z.text,G=z.buttonText,pe=G===void 0?"OK":G,he=z.callback,re=z.position,K=re===void 0?h.positions.force||K.top:re;B(),j();var oe=document.createElement("div"),me=x();oe.id=me;var ce=document.createElement("div");ce.classList.add(h.classes.textbox),ce.classList.add(h.classes.backgroundInfo),ce.innerHTML='
'+Q+"
";var ye=document.createElement("div");ye.classList.add(h.classes.button),ye.classList.add(L[ae]),ye.innerHTML=pe,ye.onclick=function(){F(me,K),_(),he?he():Y&&Y()},oe.appendChild(ce),oe.appendChild(ye),oe.listener=function(Se){w(Se)&&ye.click()},I(oe,K),A()},y=m.confirm=function(z,Y,q){var ae=z.text,Q=z.submitText,G=Q===void 0?"Yes":Q,pe=z.cancelText,he=pe===void 0?"Cancel":pe,re=z.submitCallback,K=z.cancelCallback,oe=z.position,me=oe===void 0?h.positions.confirm||me.top:oe;B(),j();var ce=document.createElement("div"),ye=x();ce.id=ye;var Se=document.createElement("div");Se.classList.add(h.classes.textbox),Se.classList.add(h.classes.backgroundInfo),Se.innerHTML='
'+ae+"
";var xe=document.createElement("div");xe.classList.add(h.classes.button),xe.classList.add(h.classes.elementHalf),xe.classList.add(h.classes.backgroundSuccess),xe.innerHTML=G,xe.onclick=function(){F(ye,me),_(),re?re():Y&&Y()};var Z=document.createElement("div");Z.classList.add(h.classes.button),Z.classList.add(h.classes.elementHalf),Z.classList.add(h.classes.backgroundError),Z.innerHTML=he,Z.onclick=function(){F(ye,me),_(),K?K():q&&q()},ce.appendChild(Se),ce.appendChild(xe),ce.appendChild(Z),ce.listener=function(ke){w(ke)?xe.click():E(ke)&&Z.click()},I(ce,me),A(ce,me)},S=function(z,Y,q){var ae=z.text,Q=z.submitText,G=Q===void 0?"Submit":Q,pe=z.cancelText,he=pe===void 0?"Cancel":pe,re=z.submitCallback,K=z.cancelCallback,oe=z.position,me=oe===void 0?h.positions.input||me.top:oe,ce=f(z,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);B(),j();var ye=document.createElement("div"),Se=x();ye.id=Se;var xe=document.createElement("div");xe.classList.add(h.classes.textbox),xe.classList.add(h.classes.backgroundInfo),xe.innerHTML='
'+ae+"
";var Z=document.createElement("input");Z.classList.add(h.classes.inputField),Z.setAttribute("autocapitalize",ce.autocapitalize||"none"),Z.setAttribute("autocomplete",ce.autocomplete||"off"),Z.setAttribute("autocorrect",ce.autocorrect||"off"),Z.setAttribute("autofocus",ce.autofocus||"true"),Z.setAttribute("inputmode",ce.inputmode||"verbatim"),Z.setAttribute("max",ce.max||""),Z.setAttribute("maxlength",ce.maxlength||""),Z.setAttribute("min",ce.min||""),Z.setAttribute("minlength",ce.minlength||""),Z.setAttribute("placeholder",ce.placeholder||""),Z.setAttribute("spellcheck",ce.spellcheck||"default"),Z.setAttribute("step",ce.step||"any"),Z.setAttribute("type",ce.type||"text"),Z.value=ce.value||"",ce.allowed&&(Z.oninput=function(){var Re=void 0;if(Array.isArray(ce.allowed)){for(var Ne="",st=ce.allowed,Ft=0;Ft'+q+"",K.appendChild(me),pe.forEach(function(ye,Se){var xe=ye.type,Z=xe===void 0?1:xe,ke=ye.text,Pe=ye.handler,Re=document.createElement("div");Re.classList.add(L[Z]),Re.classList.add(h.classes.button),Re.classList.add(h.classes.selectChoice);var Ne=pe[Se+1];Ne&&!Ne.type&&(Ne.type=1),Ne&&Ne.type===Z&&Re.classList.add(h.classes.selectChoiceRepeated),Re.innerHTML=ke,Re.onclick=function(){F(oe,re),_(),Pe()},K.appendChild(Re)});var ce=document.createElement("div");ce.classList.add(h.classes.backgroundNeutral),ce.classList.add(h.classes.button),ce.innerHTML=Q,ce.onclick=function(){F(oe,re),_(),G?G():Y&&Y()},K.appendChild(ce),K.listener=function(ye){E(ye)&&ce.click()},I(K,re),A(K,re)},$=m.date=function(z,Y,q){var ae=z.value,Q=ae===void 0?new Date:ae,G=z.submitText,pe=G===void 0?"OK":G,he=z.cancelText,re=he===void 0?"Cancel":he,K=z.submitCallback,oe=z.cancelCallback,me=z.position,ce=me===void 0?h.positions.date||ce.top:me;B(),j();var ye="▾",Se=document.createElement("div"),xe=document.createElement("div"),Z=document.createElement("div"),ke=function(ze){Se.innerHTML=h.dateMonths[ze.getMonth()],xe.innerHTML=ze.getDate(),Z.innerHTML=ze.getFullYear()},Pe=function(ze){var H=new Date(Q.getFullYear(),Q.getMonth()+1,0).getDate(),de=ze.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(de)>H&&(de=H.toString()),ze.target.textContent=de,Number(de)<1&&(de="1"),Q.setDate(Number(de))},Re=function(ze){var H=ze.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);ze.target.textContent=H,Q.setFullYear(Number(H))},Ne=function(ze){ke(Q)},st=function(ze){var H=new Date(Q.getFullYear(),Q.getMonth()+ze+1,0).getDate();Q.getDate()>H&&Q.setDate(H),Q.setMonth(Q.getMonth()+ze),ke(Q)},Ft=function(ze){Q.setDate(Q.getDate()+ze),ke(Q)},da=function(ze){var H=Q.getFullYear()+ze;H<0?Q.setFullYear(0):Q.setFullYear(Q.getFullYear()+ze),ke(Q)},Ht=document.createElement("div"),An=x();Ht.id=An;var Un=document.createElement("div");Un.classList.add(h.classes.backgroundInfo);var Ie=document.createElement("div");Ie.classList.add(h.classes.dateSelectorInner);var qt=document.createElement("div");qt.classList.add(h.classes.button),qt.classList.add(h.classes.elementThird),qt.classList.add(h.classes.dateSelectorUp),qt.innerHTML=ye;var rt=document.createElement("div");rt.classList.add(h.classes.button),rt.classList.add(h.classes.elementThird),rt.classList.add(h.classes.dateSelectorUp),rt.innerHTML=ye;var He=document.createElement("div");He.classList.add(h.classes.button),He.classList.add(h.classes.elementThird),He.classList.add(h.classes.dateSelectorUp),He.innerHTML=ye,Se.classList.add(h.classes.element),Se.classList.add(h.classes.elementThird),Se.innerHTML=h.dateMonths[Q.getMonth()],xe.classList.add(h.classes.element),xe.classList.add(h.classes.elementThird),xe.setAttribute("contentEditable",!0),xe.addEventListener("input",Pe),xe.addEventListener("blur",Ne),xe.innerHTML=Q.getDate(),Z.classList.add(h.classes.element),Z.classList.add(h.classes.elementThird),Z.setAttribute("contentEditable",!0),Z.addEventListener("input",Re),Z.addEventListener("blur",Ne),Z.innerHTML=Q.getFullYear();var Jt=document.createElement("div");Jt.classList.add(h.classes.button),Jt.classList.add(h.classes.elementThird),Jt.innerHTML=ye;var _t=document.createElement("div");_t.classList.add(h.classes.button),_t.classList.add(h.classes.elementThird),_t.innerHTML=ye;var Hn=document.createElement("div");Hn.classList.add(h.classes.button),Hn.classList.add(h.classes.elementThird),Hn.innerHTML=ye,qt.onclick=function(){return st(1)},rt.onclick=function(){return Ft(1)},He.onclick=function(){return da(1)},Jt.onclick=function(){return st(-1)},_t.onclick=function(){return Ft(-1)},Hn.onclick=function(){return da(-1)};var gt=document.createElement("div");gt.classList.add(h.classes.button),gt.classList.add(h.classes.elementHalf),gt.classList.add(h.classes.backgroundSuccess),gt.innerHTML=pe,gt.onclick=function(){F(An,ce),_(),K?K(Q):Y&&Y(Q)};var dn=document.createElement("div");dn.classList.add(h.classes.button),dn.classList.add(h.classes.elementHalf),dn.classList.add(h.classes.backgroundError),dn.innerHTML=re,dn.onclick=function(){F(An,ce),_(),oe?oe(Q):q&&q(Q)},Ie.appendChild(qt),Ie.appendChild(rt),Ie.appendChild(He),Ie.appendChild(Se),Ie.appendChild(xe),Ie.appendChild(Z),Ie.appendChild(Jt),Ie.appendChild(_t),Ie.appendChild(Hn),Un.appendChild(Ie),Ht.appendChild(Un),Ht.appendChild(gt),Ht.appendChild(dn),Ht.listener=function(ze){w(ze)?gt.click():E(ze)&&dn.click()},I(Ht,ce),A(Ht,ce)};m.default={alert:N,force:D,confirm:y,input:S,select:R,date:$,setOptions:C,hideAlerts:j}}])})}).call(a,r(0)(n))}])})}),e4={};f2(e4,{default:()=>_u});var b2=Zc(Xc());h2(e4,Zc(Xc()));var{default:Qc,...y2}=b2,_u=Qc!==void 0?Qc:y2;p();p();var Zi=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Xi(e,t,n,a){e.addEventListener?e.addEventListener(t,n,a):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function u4(e,t){for(var n=t.slice(0,t.length-1),a=0;a=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function x2(e,t){for(var n=e.length>=t.length?e:t,a=e.length>=t.length?t:e,r=!0,u=0;u=0&&Ue.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Ue.splice(0,Ue.length),(t===93||t===224)&&(t=91),t in pt){pt[t]=!1;for(var a in vn)vn[a]===t&&(Ye[a]=!1)}}function D2(e){if(typeof e>"u")Object.keys(tt).forEach(function(o){return delete tt[o]});else if(Array.isArray(e))e.forEach(function(o){o.key&&es(o)});else if(typeof e=="object")e.key&&es(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a1?u4(vn,s):[];tt[m]=tt[m].filter(function(f){var d=a?f.method===a:!0;return!(d&&f.scope===n&&x2(f.mods,g))})}})};function n4(e,t,n,a){if(t.element===a){var r;if(t.scope===n||t.scope==="all"){r=t.mods.length>0;for(var u in pt)Object.prototype.hasOwnProperty.call(pt,u)&&(!pt[u]&&t.mods.indexOf(+u)>-1||pt[u]&&t.mods.indexOf(+u)===-1)&&(r=!1);(t.mods.length===0&&!pt[16]&&!pt[18]&&!pt[17]&&!pt[91]||r||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function a4(e,t){var n=tt["*"],a=e.keyCode||e.which||e.charCode;if(Ye.filter.call(this,e)){if((a===93||a===224)&&(a=91),Ue.indexOf(a)===-1&&a!==229&&Ue.push(a),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(d){var b=ns[d];e[d]&&Ue.indexOf(b)===-1?Ue.push(b):!e[d]&&Ue.indexOf(b)>-1?Ue.splice(Ue.indexOf(b),1):d==="metaKey"&&e[d]&&Ue.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Ue=Ue.slice(Ue.indexOf(b))))}),a in pt){pt[a]=!0;for(var r in vn)vn[r]===a&&(Ye[r]=!0);if(!n)return}for(var u in pt)Object.prototype.hasOwnProperty.call(pt,u)&&(pt[u]=e[ns[u]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Ue.indexOf(17)===-1&&Ue.push(17),Ue.indexOf(18)===-1&&Ue.push(18),pt[17]=!0,pt[18]=!0);var o=Mr();if(n)for(var i=0;i-1}function Ye(e,t,n){Ue=[];var a=o4(e),r=[],u="all",o=document,i=0,s=!1,c=!0,l="+",m=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(u=t.scope),t.element&&(o=t.element),t.keyup&&(s=t.keyup),t.keydown!==void 0&&(c=t.keydown),t.capture!==void 0&&(m=t.capture),typeof t.splitKey=="string"&&(l=t.splitKey)),typeof t=="string"&&(u=t);i1&&(r=u4(vn,e)),e=e[e.length-1],e=e==="*"?"*":Ru(e),e in tt||(tt[e]=[]),tt[e].push({keyup:s,keydown:c,scope:u,mods:r,shortcut:a[i],method:n,key:a[i],splitKey:l,element:o});typeof o<"u"&&!L2(o)&&window&&(s4.push(o),Xi(o,"keydown",function(g){a4(g,o)},m),t4||(t4=!0,Xi(window,"focus",function(){Ue=[]},m)),Xi(o,"keyup",function(g){a4(g,o),A2(g)},m))}function P2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(tt).forEach(function(n){var a=tt[n].filter(function(r){return r.scope===t&&r.shortcut===e});a.forEach(function(r){r&&r.method&&r.method()})})}var ts={getPressedKeyString:w2,setScope:l4,getScope:Mr,deleteScope:S2,getPressedKeyCodes:C2,isPressed:k2,filter:v2,trigger:P2,unbind:D2,keyMap:Pr,modifier:vn,modifierMap:ns};for(Bu in ts)Object.prototype.hasOwnProperty.call(ts,Bu)&&(Ye[Bu]=ts[Bu]);var Bu;typeof document<"u"&&(r4=window.hotkeys,Ye.noConflict=function(e){return e&&window.hotkeys===Ye&&(window.hotkeys=r4),Ye},window.hotkeys=Ye);var r4;p();p();var M2={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},d4={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Ze={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},kt={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Gn={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},W=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let a=W.getVersionPrecision(e),r=W.getVersionPrecision(t),u=Math.max(a,r),o=0,i=W.map([e,t],s=>{let c=u-W.getVersionPrecision(s),l=s+new Array(c+1).join(".0");return W.map(l.split("."),m=>new Array(20-m.length).join("0")+m).reverse()});for(n&&(o=u-Math.min(a,r)),u-=1;u>=o;){if(i[0][u]>i[1][u])return 1;if(i[0][u]===i[1][u]){if(u===o)return 0;u-=1}else if(i[0][u]{n[o]=u[o]})}return e}static getBrowserAlias(e){return M2[e]}static getBrowserTypeByAlias(e){return d4[e]||""}},Oe=/version\/(\d+(\.?_?\d+)+)/i,F2=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=W.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=W.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=W.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=W.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=W.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=W.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=W.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=W.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=W.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=W.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=W.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=W.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=W.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=W.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=W.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=W.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=W.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=W.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=W.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=W.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=W.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=W.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=W.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=W.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=W.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=W.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=W.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,a=e.search("\\(")!==-1?n:t;return{name:W.getFirstMatch(a,e),version:W.getSecondMatch(a,e)}}}],_2=F2,B2=[{test:[/Roku\/DVP/],describe(e){let t=W.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:kt.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=W.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:kt.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=W.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=W.getWindowsVersionName(t);return{name:kt.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:kt.iOS},n=W.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=W.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=W.getMacOSVersionName(t),a={name:kt.MacOS,version:t};return n&&(a.versionName=n),a}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=W.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:kt.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=W.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=W.getAndroidVersionName(t),a={name:kt.Android,version:t};return n&&(a.versionName=n),a}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=W.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:kt.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=W.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||W.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||W.getFirstMatch(/\bbb(\d+)/i,e);return{name:kt.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=W.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:kt.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=W.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:kt.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:kt.Linux}}},{test:[/CrOS/],describe(){return{name:kt.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=W.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:kt.PlayStation4,version:t}}}],R2=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=W.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Ze.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Ze.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Ze.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Ze.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Ze.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Ze.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Ze.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=W.getFirstMatch(/(ipod|iphone)/i,e);return{type:Ze.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Ze.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Ze.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Ze.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Ze.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Ze.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Ze.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Ze.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Ze.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Ze.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Ze.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Ze.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Ze.tv}}}],I2=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Gn.Blink};let t=W.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Gn.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:Gn.Trident},n=W.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:Gn.Presto},n=W.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:Gn.Gecko},n=W.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Gn.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:Gn.WebKit},n=W.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],O2=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=W.find(_2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=W.find(B2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=W.find(R2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=W.find(I2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return W.assign({},this.parsedResult)}satisfies(e){let t={},n=0,a={},r=0;if(Object.keys(e).forEach(u=>{let o=e[u];typeof o=="string"?(a[u]=o,r+=1):typeof o=="object"&&(t[u]=o,n+=1)}),n>0){let u=Object.keys(t),o=W.find(u,s=>this.isOS(s));if(o){let s=this.satisfies(t[o]);if(s!==void 0)return s}let i=W.find(u,s=>this.isPlatform(s));if(i){let s=this.satisfies(t[i]);if(s!==void 0)return s}}if(r>0){let u=Object.keys(a),o=W.find(u,i=>this.isBrowser(i,!0));if(o!==void 0)return this.compareVersion(a[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),a=e.toLowerCase(),r=W.getBrowserTypeByAlias(a);return t&&r&&(a=r.toLowerCase()),a===n}compareVersion(e){let t=[0],n=e,a=!1,r=this.getBrowserVersion();if(typeof r=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(a=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(a=!0,n=e.substr(1)),t.indexOf(W.compareVersions(r,n,a))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},c4=O2,N2=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new c4(e,t)}static parse(e){return new c4(e).getResult()}static get BROWSER_MAP(){return d4}static get ENGINE_MAP(){return Gn}static get OS_MAP(){return kt}static get PLATFORMS_MAP(){return Ze}},Ha=N2;p();p();var{entries:x4,setPrototypeOf:m4,isFrozen:j2,getPrototypeOf:z2,getOwnPropertyDescriptor:U2}=Object,{freeze:St,seal:pn,create:H2}=Object,{apply:ss,construct:ls}=typeof Reflect<"u"&&Reflect;ss||(ss=function(e,t,n){return e.apply(t,n)});St||(St=function(e){return e});pn||(pn=function(e){return e});ls||(ls=function(e,t){return new e(...t)});var q2=nn(Array.prototype.forEach),g4=nn(Array.prototype.pop),Fr=nn(Array.prototype.push),Nu=nn(String.prototype.toLowerCase),as=nn(String.prototype.toString),W2=nn(String.prototype.match),gn=nn(String.prototype.replace),$2=nn(String.prototype.indexOf),K2=nn(String.prototype.trim),Kt=nn(RegExp.prototype.test),_r=G2(TypeError);function nn(e){return function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r/gm),Z2=pn(/\${[\w\W]*}/gm),X2=pn(/^data-[\-\w.\u00B7-\uFFFF]/),e1=pn(/^aria-[\-\w]+$/),E4=pn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),t1=pn(/^(?:\w+script|data):/i),n1=pn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),T4=pn(/^html$/i),y4=Object.freeze({__proto__:null,MUSTACHE_EXPR:J2,ERB_EXPR:Q2,TMPLIT_EXPR:Z2,DATA_ATTR:X2,ARIA_ATTR:e1,IS_ALLOWED_URI:E4,IS_SCRIPT_OR_DATA:t1,ATTR_WHITESPACE:n1,DOCTYPE_NAME:T4}),a1=()=>typeof window>"u"?null:window,r1=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,a="data-tt-policy-suffix";t&&t.hasAttribute(a)&&(n=t.getAttribute(a));let r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML(u){return u},createScriptURL(u){return u}})}catch{return null}};function C4(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a1(),t=k=>C4(k);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,a=n.currentScript,{document:r}=e,{DocumentFragment:u,HTMLTemplateElement:o,Node:i,Element:s,NodeFilter:c,NamedNodeMap:l=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:m,DOMParser:g,trustedTypes:f}=e,d=s.prototype,b=Iu(d,"cloneNode"),T=Iu(d,"nextSibling"),h=Iu(d,"childNodes"),C=Iu(d,"parentNode");if(typeof o=="function"){let k=r.createElement("template");k.content&&k.content.ownerDocument&&(r=k.content.ownerDocument)}let v,O="",{implementation:B,createNodeIterator:x,createDocumentFragment:L,getElementsByTagName:M}=r,{importNode:w}=n,E={};t.isSupported=typeof x4=="function"&&typeof C=="function"&&B&&B.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:I,ERB_EXPR:F,TMPLIT_EXPR:A,DATA_ATTR:_,ARIA_ATTR:j,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:D}=y4,{IS_ALLOWED_URI:y}=y4,S=null,R=Ae({},[...p4,...rs,...us,...os,...f4]),$=null,z=Ae({},[...h4,...is,...b4,...Ou]),Y=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),q=null,ae=null,Q=!0,G=!0,pe=!1,he=!0,re=!1,K=!1,oe=!1,me=!1,ce=!1,ye=!1,Se=!1,xe=!0,Z=!1,ke="user-content-",Pe=!0,Re=!1,Ne={},st=null,Ft=Ae({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),da=null,Ht=Ae({},["audio","video","img","source","image","track"]),An=null,Un=Ae({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ie="http://www.w3.org/1998/Math/MathML",qt="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml",He=rt,Jt=!1,_t=null,Hn=Ae({},[Ie,qt,rt],as),gt,dn=["application/xhtml+xml","text/html"],ze="text/html",H,de=null,$e=r.createElement("form"),Me=function(k){return k instanceof RegExp||k instanceof Function},_e=function(k){if(!(de&&de===k)){if((!k||typeof k!="object")&&(k={}),k=qa(k),gt=dn.indexOf(k.PARSER_MEDIA_TYPE)===-1?gt=ze:gt=k.PARSER_MEDIA_TYPE,H=gt==="application/xhtml+xml"?as:Nu,S="ALLOWED_TAGS"in k?Ae({},k.ALLOWED_TAGS,H):R,$="ALLOWED_ATTR"in k?Ae({},k.ALLOWED_ATTR,H):z,_t="ALLOWED_NAMESPACES"in k?Ae({},k.ALLOWED_NAMESPACES,as):Hn,An="ADD_URI_SAFE_ATTR"in k?Ae(qa(Un),k.ADD_URI_SAFE_ATTR,H):Un,da="ADD_DATA_URI_TAGS"in k?Ae(qa(Ht),k.ADD_DATA_URI_TAGS,H):Ht,st="FORBID_CONTENTS"in k?Ae({},k.FORBID_CONTENTS,H):Ft,q="FORBID_TAGS"in k?Ae({},k.FORBID_TAGS,H):{},ae="FORBID_ATTR"in k?Ae({},k.FORBID_ATTR,H):{},Ne="USE_PROFILES"in k?k.USE_PROFILES:!1,Q=k.ALLOW_ARIA_ATTR!==!1,G=k.ALLOW_DATA_ATTR!==!1,pe=k.ALLOW_UNKNOWN_PROTOCOLS||!1,he=k.ALLOW_SELF_CLOSE_IN_ATTR!==!1,re=k.SAFE_FOR_TEMPLATES||!1,K=k.WHOLE_DOCUMENT||!1,ce=k.RETURN_DOM||!1,ye=k.RETURN_DOM_FRAGMENT||!1,Se=k.RETURN_TRUSTED_TYPE||!1,me=k.FORCE_BODY||!1,xe=k.SANITIZE_DOM!==!1,Z=k.SANITIZE_NAMED_PROPS||!1,Pe=k.KEEP_CONTENT!==!1,Re=k.IN_PLACE||!1,y=k.ALLOWED_URI_REGEXP||E4,He=k.NAMESPACE||rt,Y=k.CUSTOM_ELEMENT_HANDLING||{},k.CUSTOM_ELEMENT_HANDLING&&Me(k.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Y.tagNameCheck=k.CUSTOM_ELEMENT_HANDLING.tagNameCheck),k.CUSTOM_ELEMENT_HANDLING&&Me(k.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Y.attributeNameCheck=k.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),k.CUSTOM_ELEMENT_HANDLING&&typeof k.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Y.allowCustomizedBuiltInElements=k.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),re&&(G=!1),ye&&(ce=!0),Ne&&(S=Ae({},[...f4]),$=[],Ne.html===!0&&(Ae(S,p4),Ae($,h4)),Ne.svg===!0&&(Ae(S,rs),Ae($,is),Ae($,Ou)),Ne.svgFilters===!0&&(Ae(S,us),Ae($,is),Ae($,Ou)),Ne.mathMl===!0&&(Ae(S,os),Ae($,b4),Ae($,Ou))),k.ADD_TAGS&&(S===R&&(S=qa(S)),Ae(S,k.ADD_TAGS,H)),k.ADD_ATTR&&($===z&&($=qa($)),Ae($,k.ADD_ATTR,H)),k.ADD_URI_SAFE_ATTR&&Ae(An,k.ADD_URI_SAFE_ATTR,H),k.FORBID_CONTENTS&&(st===Ft&&(st=qa(st)),Ae(st,k.FORBID_CONTENTS,H)),Pe&&(S["#text"]=!0),K&&Ae(S,["html","head","body"]),S.table&&(Ae(S,["tbody"]),delete q.tbody),k.TRUSTED_TYPES_POLICY){if(typeof k.TRUSTED_TYPES_POLICY.createHTML!="function")throw _r('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof k.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw _r('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=k.TRUSTED_TYPES_POLICY,O=v.createHTML("")}else v===void 0&&(v=r1(f,a)),v!==null&&typeof O=="string"&&(O=v.createHTML(""));St&&St(k),de=k}},Dn=Ae({},["mi","mo","mn","ms","mtext"]),Cn=Ae({},["foreignobject","desc","title","annotation-xml"]),Qt=Ae({},["title","style","font","a","script"]),Ra=Ae({},rs);Ae(Ra,us),Ae(Ra,V2);let Si=Ae({},os);Ae(Si,Y2);let Pf=function(k){let ue=C(k);(!ue||!ue.tagName)&&(ue={namespaceURI:He,tagName:"template"});let X=Nu(k.tagName),Be=Nu(ue.tagName);return _t[k.namespaceURI]?k.namespaceURI===qt?ue.namespaceURI===rt?X==="svg":ue.namespaceURI===Ie?X==="svg"&&(Be==="annotation-xml"||Dn[Be]):!!Ra[X]:k.namespaceURI===Ie?ue.namespaceURI===rt?X==="math":ue.namespaceURI===qt?X==="math"&&Cn[Be]:!!Si[X]:k.namespaceURI===rt?ue.namespaceURI===qt&&!Cn[Be]||ue.namespaceURI===Ie&&!Dn[Be]?!1:!Si[X]&&(Qt[X]||!Ra[X]):!!(gt==="application/xhtml+xml"&&_t[k.namespaceURI]):!1},Ia=function(k){Fr(t.removed,{element:k});try{k.parentNode.removeChild(k)}catch{k.remove()}},Ai=function(k,ue){try{Fr(t.removed,{attribute:ue.getAttributeNode(k),from:ue})}catch{Fr(t.removed,{attribute:null,from:ue})}if(ue.removeAttribute(k),k==="is"&&!$[k])if(ce||ye)try{Ia(ue)}catch{}else try{ue.setAttribute(k,"")}catch{}},rc=function(k){let ue,X;if(me)k=""+k;else{let vt=W2(k,/^[\r\n\t ]+/);X=vt&&vt[0]}gt==="application/xhtml+xml"&&He===rt&&(k=''+k+"");let Be=v?v.createHTML(k):k;if(He===rt)try{ue=new g().parseFromString(Be,gt)}catch{}if(!ue||!ue.documentElement){ue=B.createDocument(He,"template",null);try{ue.documentElement.innerHTML=Jt?O:Be}catch{}}let ut=ue.body||ue.documentElement;return k&&X&&ut.insertBefore(r.createTextNode(X),ut.childNodes[0]||null),He===rt?M.call(ue,K?"html":"body")[0]:K?ue.documentElement:ut},uc=function(k){return x.call(k.ownerDocument||k,k,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},Mf=function(k){return k instanceof m&&(typeof k.nodeName!="string"||typeof k.textContent!="string"||typeof k.removeChild!="function"||!(k.attributes instanceof l)||typeof k.removeAttribute!="function"||typeof k.setAttribute!="function"||typeof k.namespaceURI!="string"||typeof k.insertBefore!="function"||typeof k.hasChildNodes!="function")},yu=function(k){return typeof i=="object"?k instanceof i:k&&typeof k=="object"&&typeof k.nodeType=="number"&&typeof k.nodeName=="string"},Ln=function(k,ue,X){E[k]&&q2(E[k],Be=>{Be.call(t,ue,X,de)})},oc=function(k){let ue;if(Ln("beforeSanitizeElements",k,null),Mf(k))return Ia(k),!0;let X=H(k.nodeName);if(Ln("uponSanitizeElement",k,{tagName:X,allowedTags:S}),k.hasChildNodes()&&!yu(k.firstElementChild)&&(!yu(k.content)||!yu(k.content.firstElementChild))&&Kt(/<[/\w]/g,k.innerHTML)&&Kt(/<[/\w]/g,k.textContent))return Ia(k),!0;if(!S[X]||q[X]){if(!q[X]&&sc(X)&&(Y.tagNameCheck instanceof RegExp&&Kt(Y.tagNameCheck,X)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(X)))return!1;if(Pe&&!st[X]){let Be=C(k)||k.parentNode,ut=h(k)||k.childNodes;if(ut&&Be){let vt=ut.length;for(let Bt=vt-1;Bt>=0;--Bt)Be.insertBefore(b(ut[Bt],!0),T(k))}}return Ia(k),!0}return k instanceof s&&!Pf(k)||(X==="noscript"||X==="noembed")&&Kt(/<\/no(script|embed)/i,k.innerHTML)?(Ia(k),!0):(re&&k.nodeType===3&&(ue=k.textContent,ue=gn(ue,I," "),ue=gn(ue,F," "),ue=gn(ue,A," "),k.textContent!==ue&&(Fr(t.removed,{element:k.cloneNode()}),k.textContent=ue)),Ln("afterSanitizeElements",k,null),!1)},ic=function(k,ue,X){if(xe&&(ue==="id"||ue==="name")&&(X in r||X in $e))return!1;if(!(G&&!ae[ue]&&Kt(_,ue))&&!(Q&&Kt(j,ue))){if(!$[ue]||ae[ue]){if(!(sc(k)&&(Y.tagNameCheck instanceof RegExp&&Kt(Y.tagNameCheck,k)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(k))&&(Y.attributeNameCheck instanceof RegExp&&Kt(Y.attributeNameCheck,ue)||Y.attributeNameCheck instanceof Function&&Y.attributeNameCheck(ue))||ue==="is"&&Y.allowCustomizedBuiltInElements&&(Y.tagNameCheck instanceof RegExp&&Kt(Y.tagNameCheck,X)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(X))))return!1}else if(!An[ue]&&!Kt(y,gn(X,D,""))&&!((ue==="src"||ue==="xlink:href"||ue==="href")&&k!=="script"&&$2(X,"data:")===0&&da[k])&&!(pe&&!Kt(N,gn(X,D,"")))&&X)return!1}return!0},sc=function(k){return k.indexOf("-")>0},lc=function(k){let ue,X,Be,ut;Ln("beforeSanitizeAttributes",k,null);let{attributes:vt}=k;if(!vt)return;let Bt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:$};for(ut=vt.length;ut--;){ue=vt[ut];let{name:lt,namespaceURI:Oa}=ue;if(X=lt==="value"?ue.value:K2(ue.value),Be=H(lt),Bt.attrName=Be,Bt.attrValue=X,Bt.keepAttr=!0,Bt.forceKeepAttr=void 0,Ln("uponSanitizeAttribute",k,Bt),X=Bt.attrValue,Bt.forceKeepAttr||(Ai(lt,k),!Bt.keepAttr))continue;if(!he&&Kt(/\/>/i,X)){Ai(lt,k);continue}re&&(X=gn(X,I," "),X=gn(X,F," "),X=gn(X,A," "));let cc=H(k.nodeName);if(ic(cc,Be,X)){if(Z&&(Be==="id"||Be==="name")&&(Ai(lt,k),X=ke+X),v&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!Oa)switch(f.getAttributeType(cc,Be)){case"TrustedHTML":{X=v.createHTML(X);break}case"TrustedScriptURL":{X=v.createScriptURL(X);break}}try{Oa?k.setAttributeNS(Oa,lt,X):k.setAttribute(lt,X),g4(t.removed)}catch{}}}Ln("afterSanitizeAttributes",k,null)},Ff=function k(ue){let X,Be=uc(ue);for(Ln("beforeSanitizeShadowDOM",ue,null);X=Be.nextNode();)Ln("uponSanitizeShadowNode",X,null),!oc(X)&&(X.content instanceof u&&k(X.content),lc(X));Ln("afterSanitizeShadowDOM",ue,null)};return t.sanitize=function(k){let ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X,Be,ut,vt;if(Jt=!k,Jt&&(k=""),typeof k!="string"&&!yu(k))if(typeof k.toString=="function"){if(k=k.toString(),typeof k!="string")throw _r("dirty is not a string, aborting")}else throw _r("toString is not a function");if(!t.isSupported)return k;if(oe||_e(ue),t.removed=[],typeof k=="string"&&(Re=!1),Re){if(k.nodeName){let Oa=H(k.nodeName);if(!S[Oa]||q[Oa])throw _r("root node is forbidden and cannot be sanitized in-place")}}else if(k instanceof i)X=rc(""),Be=X.ownerDocument.importNode(k,!0),Be.nodeType===1&&Be.nodeName==="BODY"||Be.nodeName==="HTML"?X=Be:X.appendChild(Be);else{if(!ce&&!re&&!K&&k.indexOf("<")===-1)return v&&Se?v.createHTML(k):k;if(X=rc(k),!X)return ce?null:Se?O:""}X&&me&&Ia(X.firstChild);let Bt=uc(Re?k:X);for(;ut=Bt.nextNode();)oc(ut)||(ut.content instanceof u&&Ff(ut.content),lc(ut));if(Re)return k;if(ce){if(ye)for(vt=L.call(X.ownerDocument);X.firstChild;)vt.appendChild(X.firstChild);else vt=X;return($.shadowroot||$.shadowrootmod)&&(vt=w.call(n,vt,!0)),vt}let lt=K?X.outerHTML:X.innerHTML;return K&&S["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&Kt(T4,X.ownerDocument.doctype.name)&&(lt=" +`+lt),re&&(lt=gn(lt,I," "),lt=gn(lt,F," "),lt=gn(lt,A," ")),v&&Se?v.createHTML(lt):lt},t.setConfig=function(k){_e(k),oe=!0},t.clearConfig=function(){de=null,oe=!1},t.isValidAttribute=function(k,ue,X){de||_e({});let Be=H(k),ut=H(ue);return ic(Be,ut,X)},t.addHook=function(k,ue){typeof ue=="function"&&(E[k]=E[k]||[],Fr(E[k],ue))},t.removeHook=function(k){if(E[k])return g4(E[k])},t.removeHooks=function(k){E[k]&&(E[k]=[])},t.removeAllHooks=function(){E={}},t}var Le=C4();var u1=_u.alert;p();p();p();p();var Wa=console,cs=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),a=Math.round(n-this.#e),r=tn.green;a>1e4?r=tn.red:a>1e3&&(r=tn.yellow),Wa.debug(tn.dim(ma+" TIMING:"),t,"in",r(a+"ms")),this.#e=n}},Br=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&Wa.log(tn.dim(ma+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&Wa.log(tn.green(ma+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&Wa.warn(tn.yellow(ma+" WARN:"),...t)}error(...t){this.#e<=3&&Wa.error(tn.red(ma+" ERROR:"),...t)}fatal(...t){this.#e<=4&&Wa.error(tn.red(ma+" FATAL:"),...t)}timing(){return this.level===0?new cs:{reset:()=>{},stop:()=>{}}}},U=new Br;p();p();p();var ds=/iPhone/i,w4=/iPod/i,v4=/iPad/i,k4=/\biOS-universal(?:.+)Mac\b/i,ms=/\bAndroid(?:.+)Mobile\b/i,S4=/Android/i,$a=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,ju=/Silk/i,Bn=/Windows Phone/i,A4=/\bWindows(?:.+)ARM\b/i,D4=/BlackBerry/i,L4=/BB10/i,P4=/Opera Mini/i,M4=/\b(CriOS|Chrome)(?:.+)Mobile/i,F4=/Mobile(?:.+)Firefox\b/i,_4=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function o1(e){return t=>t.test(e)}function fa(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,a=n.split("[FBAN");typeof a[1]<"u"&&(n=a[0]),a=n.split("Twitter"),typeof a[1]<"u"&&(n=a[0]);let r=o1(n),u={apple:{phone:r(ds)&&!r(Bn),ipod:r(w4),tablet:!r(ds)&&(r(v4)||_4(t))&&!r(Bn),universal:r(k4),device:(r(ds)||r(w4)||r(v4)||r(k4)||_4(t))&&!r(Bn)},amazon:{phone:r($a),tablet:!r($a)&&r(ju),device:r($a)||r(ju)},android:{phone:!r(Bn)&&r($a)||!r(Bn)&&r(ms),tablet:!r(Bn)&&!r($a)&&!r(ms)&&(r(ju)||r(S4)),device:!r(Bn)&&(r($a)||r(ju)||r(ms)||r(S4))||r(/\bokhttp\b/i)},windows:{phone:r(Bn),tablet:r(A4),device:r(Bn)||r(A4)},other:{blackberry:r(D4),blackberry10:r(L4),opera:r(P4),firefox:r(F4),chrome:r(M4),device:r(D4)||r(L4)||r(P4)||r(F4)||r(M4)},any:!1,phone:!1,tablet:!1};return u.any=u.apple.device||u.android.device||u.windows.device||u.other.device,u.phone=u.apple.phone||u.android.phone||u.windows.phone,u.tablet=u.apple.tablet||u.android.tablet||u.windows.tablet,u}var gs="DENO",zu="CHROME",Uu="FIREFOX";function B4(e){let t=zu;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=Uu:/deno/i.test(n)&&(t=gs)}catch{}return e===zu&&t===zu||e===Uu&&t===Uu||e===gs&&t===gs}function R4(){return B4(zu)}function I4(){return typeof Deno<"u"}function Hu(){return B4(Uu)}function O4(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function Rr(){return!!globalThis.matchMedia("(pointer:fine)").matches}p();var N4={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},j4={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:N4,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}}},tabs:{onUpdated:N4,query:()=>{},sendMessage:()=>{}}};var se;I4()?se=j4:se=globalThis.immersiveTranslateBrowserAPI;p();p();p();p();p();var E8=U4(2),z4=U4(3);function U4(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let a=[];if(n==null)return a;let r=typeof n.slice=="function"?n:String(n),u=r.length-e+1;if(u<1)return a;for(;u--;)a[u]=r.slice(u,u+e);return a}}p();var i1=/\s+/g,s1=/[\t\n\v\f\r ]+/g;function H4(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?l1:c1;return String(e).replace(t.style==="html"?s1:i1,t.trim?d1(n):n)}function l1(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function c1(){return" "}function d1(e){return t;function t(n,a,r){return a===0||a+n.length===r.length?"":e(n)}}var q4={}.hasOwnProperty;function m1(e){return e==null?"":H4(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function g1(e){return z4(" "+m1(e)+" ")}function p1(e){let t=g1(e),n={},a=-1;for(;++an&&(n=u,a=r)}return[a,n]}function T1(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function C1(e,t,n,a){t=v1(t,n,a);let r=[],u;if(t)for(u in t)qu.call(t,u)&&r.push([u,w1(e,t[u])]);return r.length===0?fs():r.sort(k1)}function w1(e,t){let n=0,a=-1;for(;++at.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterso+i.length,0));let u=e.length-a;for(let o of R1){let i=o[1],s=o[0],c=e.match(i),l=c?c.length:0;l>n&&(n=l,t=s)}return n*2.5/u>.5?t==="zh-CN"?Q4(e)?"zh-TW":"zh-CN":t:"auto"}var X4=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],hs=new Map(X4),I1=new Map(X4.map(([e,t])=>[t,e]));function ed(e,t,n=["en"]){if(!e)return"auto";let a=n.map(i=>I1.get(i));!t&&t!==0&&(t=25);let r=$u(e);if(r!=="auto")return r;let u={minLength:t,whitelist:[...hs.keys()]},o=K4(e,u);if(o&&o.length>0){for(let[l,m]of o)if(a.includes(l)&&m>.5)return hs.get(l);let[i,s]=o[0],c=hs.get(i);if(c&&s>.5)return c}return"auto"}p();p();var td=ge+"SyncStoreKey_";function At(e,t){let n=td+e;return se.storage.sync.get(n).then(a=>a[n]===void 0?t:a[n])}function je(e,t){let n=td+e;return se.storage.sync.set({[n]:t})}p();var nd=ge+"StoreKey_";function Rn(e,t){let n=nd+e;return se.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function ad(e,t){let n=nd+e;return se.storage.local.set({[n]:t})}p();var ha=ge+"CacheKey_";function O1(e,t){let n=ha+e;return se.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function N1(){let e=se.storage.local.refresh;e&&e()}function Or(e,t){let n=ha+e;return se.storage.local.get(n).then(a=>{if(a[n]===void 0)return t;let{value:r,expired:u}=a[n];return u&&ua.startsWith(ha)).filter(a=>a!==ha+Ot);if(n.length>0)return se.storage.local.remove(n)}}var jt={get:O1,set:j1,getExpired:Or,setExpired:Nr,remove:jr,clear:rd,refresh:N1};p();p();p();var ot=class extends Error{details;constructor(t,n,a){super(n),this.name=t,a&&(this.details=a)}};async function ba(e){let t;if(e&&e.retry&&e.retry>0)try{t=await Ki(ud.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await ud(e);return t}async function ud(e){e.body;let{url:t,responseType:n,...a}=e;n||(n="json"),a={mode:"cors",...a};let r=!0;e.fetchPolyfill&&(r=!1);let u=e.fetchPolyfill||fetch,o=3e5;if(e.timeout&&(o=e.timeout),r){let s=new AbortController,c=s.signal;setTimeout(()=>{s.abort()},o),a.signal=c}let i;try{i=await u(t,a)}catch(s){U.debug("fetch error",t,s);let c=s.message||"";throw s.message="\u7F51\u7EDC\u95EE\u9898\uFF0C\u65E0\u6CD5\u8FDE\u63A5\u5230\u670D\u52A1\uFF0C\u8BF7\u68C0\u67E5\u4F60\u7684\u4EE3\u7406\u6216\u672C\u5730\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u8BD5\u3002 "+c,s}if(i.ok&&i.status>=200&&i.status<400){if(n==="json")return await i.json();if(n==="text")return await i.text();if(n==="raw"){let s=await i.text(),c=Object.fromEntries([...i.headers.entries()]),l=i.url;return l||(i.headers.get("X-Final-URL")?l=i.headers.get("X-Final-URL"):l=t),{body:s,headers:c,status:i.status,statusText:i.statusText,url:l}}else if(n==="stream"){let s="",c;if(i.body&&i.body instanceof ReadableStream)for await(let l of z1(i.body)){let m=new TextDecoder().decode(l);s+=m;let g;for(;(g=s.indexOf(` +`))>=0;){let f=s.slice(0,g).trim();if(s=s.slice(g+1),f.startsWith("event:")||f==="")continue;let d="";if(f.startsWith("data:")&&(d=f.slice(5).trim()),d==="[DONE]")break;let b;try{b=JSON.parse(d??"")}catch(T){U.debug("json error",T);continue}c=b}}return c}}else{let s;try{s=await i.text()}catch(f){U.error("parse response failed",f)}s&&U.error("fail response",s);let c="";s&&(c=s.slice(0,280));let l="\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u4EE3\u7801:"+i.status+": "+(i.statusText||"")+c,g=new URL(t).hostname.endsWith(".immersivetranslate.com");throw i.status===429?g?c.includes("quota exceeded")?l="ProQuota:"+c:l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${c} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`:l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A429\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===403?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A403\uFF0C \u8BF4\u660E\u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ${c}`:i.status===400?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A400\uFF0C \u8BF4\u660E\u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002 ${c}`:i.status===502?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A502\uFF0C \u8BF4\u660E\u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===401&&(l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A401\uFF0C \u8BF4\u660E\u672A\u767B\u5F55\u6216\u767B\u5F55\u6001\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002 ${c}`),new ot("fetchError",l,s)}}async function*z1(e){let t=e.getReader();try{for(;;){let{done:n,value:a}=await t.read();if(n)return;yield a}}finally{t.releaseLock()}}p();var U1=new Map;function Ku(e){let t=H1(64),n=new CustomEvent(xc,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((a,r)=>{U1.set(t,(u,o)=>{u?r(u):a(o)})})}function H1(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};function an(){return Gu.version}p();function nt(){try{return globalThis.self!==globalThis.top}catch{return!0}}p();var zr=new Map,Vn=class{fromType;logger;constructor(t,n=!1){this.logger=new Br,n&&this.logger.setLevel("debug"),this.fromType=t,zr.has(t)||(zr.set(t,new Map),se.runtime.onMessage.addListener((a,r,u)=>{let o=a.from,i=a.to,s,c,l;r.tab&&r.tab.id&&(s=r.tab.id,o=`${o}:${s}`,c=r.tab.url,l=r.tab.active),this.logger.debug(`${a.to} received message [${a.payload.method}] from ${a.from}`,a.payload.data?a.payload.data:" ");let m=ys(i),{type:g,name:f}=m;if(g!==t)return!1;let d=ys(o),T=zr.get(g).get(f);if(!T)return this.logger.debug(`no message handler for ${g}:${i}, but it's ok`),!1;let{messageHandler:h,sync:C}=T,v={type:t,name:d.name,id:s,url:c,active:l};if(C){try{let O=h(a.payload,v);u({ok:!0,data:O})}catch(O){u({ok:!1,errorName:O.name,errorMessage:O.message,errorDetails:O.details})}return!1}else return h(a.payload,v).then(O=>{u({ok:!0,data:O})}).catch(O=>{u({ok:!1,errorName:O.name,errorMessage:O.message,errorDetails:O.details})}),!0}))}getConnection(t,n,a){let r=!1;a&&a.sync&&(r=!0);let u=this.fromType,o=zr.get(u);if(o.has(t))return o.get(t).connectionInstance;{let i=new bs(`${u}:${t}`,this.logger);return zr.get(u).set(t,{messageHandler:n,sync:r,connectionInstance:i}),i}}},bs=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let a=ys(t),{type:r,id:u}=a;if(r!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let i=await se.runtime.sendMessage(o);return od(o,i,this.logger)}catch(i){if(r==="popup"){let s=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(s,n,t,i),Promise.resolve({message:s})}else throw i}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let i=await se.tabs.sendMessage(u,o);return od(o,i,this.logger)}}};function od(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new ot(t.errorName||"UnknownError",t.errorMessage||"Unknown error",t.errorDetails)}else throw new ot("noResponse","Unknown error")}function ys(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let a=parseInt(t[2]);if(!isNaN(a))n.id=a;else throw new Error("tab id not a valid number")}return n}var Vu;function W1(){return Vu||(Vu=new Vn("content_script",!1).getConnection("pure_main",()=>{}),Vu)}var id="G-MKMD9LWFTR";async function Ur(e,t){try{let n=Qe();if(n.INSTALL_FROM==="firefox_store")return;let r=fe(),u=nt(),o=n.PROD==="1",i="sitc4WmvShWYwfU0dANM3Q",s=await At("fakeUserId","");s||(s=await Rn("fakeUserId",""),s&&await je("fakeUserId",s));let c=an(),l=new Date,m=await At("installedAt","");m||(m=await Rn("installedAt",""),m&&await je("installedAt",m)),s?m||(m=new Date(0).toISOString(),await je("installedAt",m)):(s=$1(32),await je("fakeUserId",s)),m||(m=l.toISOString(),await je("installedAt",m));let g=new Date(m),f=sd(g),d=sd(l),b=f===d,T=l.getTime()-g.getTime()<7*24*60*60*1e3,h=`https://www.google-analytics.com/mp/collect?measurement_id=${id}&api_secret=${i}`;o||(h=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${id}&api_secret=${i}`);let C="";typeof navigator<"u"&&(C=window.navigator.userAgent);let v=Ha.parse(C),O=t.map(x=>{let L=x.params||{};return v.os&&(L.os_name=v.os.name||"unknown",L.os_version=v.os.version||"unknown",L.os_version_name=v.os.versionName||"unknown"),v.browser&&(L.browser_name=v.browser.name||"unknown",L.browser_version=v.browser.version||"unknown"),v.platform&&(L.platform_type=v.platform.type||"unknown"),v.engine&&(L.engine_name=v.engine.name||"unknown",L.engine_version=v.engine.version||"unknown"),c&&(L.version=c),n.INSTALL_FROM&&(L.install_from=n.INSTALL_FROM),f&&(L.install_day=K1(g)),L.userscript=r.toString(),b?L.is_new_user_today="1":L.is_new_user_today="0",T?L.is_new_user_this_week="1":L.is_new_user_this_week="0",u?L.main_frame=0:L.main_frame=1,{...x,params:L}}),B=await Yu({responseType:"text",url:h,method:"POST",body:JSON.stringify({client_id:s,user_id:s,events:O})})}catch{}}function $1(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r",""],limit:5e3},custom:{placeholderDelimiters:["{","}"]},bing:{maxTextLengthPerRequest:1800,placeholderDelimiters:["","","b"]},deeplx:{limit:3},d:{immediateTranslationTextCount:0},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},openai:{placeholderDelimiters:["{{","}}","b"],immediateTranslationTextCount:3e3,translationDebounce:300,interval:1350,prompt:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: {{text}}`,maxTextGroupLengthPerRequest:1,newlinePlaceholderDelimiters:[` @@ -4267,58 +4267,60 @@ Additionally, we support using Chinese aliases of language codes as commands. Fo ?`]}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:""},tempTranslateDomainMinutes:0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","*.twitter.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","github.com","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","www.tumblr.com","*.twitter.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},generalRule:{_comment:"",enableSubtitle:!0,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan"],useIframePostMessage:!0,searchEnhancementConfig:[],injectedCss:[],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!0,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,isTransformPreTagNewLine:!1,urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".MathJax_Preview",".MathJax",".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:4,paragraphMinWordCount:2,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,globalAttributes:{},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{".sr-only":"display:none"},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{translate:"no"},"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:[],additionalExcludeSelectors:[".social-share",".breadcrumbs",".post__footer",".btn",".reference-citations",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","markerow8"],translationClasses:[],atomicBlockSelectors:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","INPUT","BUTTON","BASE","SELECT","OPTION","HR","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","XQDD_HIGHLIGHT_NEW_WORD","NOBR"],additionalInlineTags:[],extraInlineSelectors:[],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,mouseHoverHoldKey:"Off"},rules:[{id:"immersive",matches:["https://immersivetranslate.com","https://onboarding.immersivetranslate.com"],isInjectVersion:!0,isInjectMeta:!0},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"pdf",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],translationMode:"translation",skipEditableCheck:!0,selectors:["p"],wrapperPrefix:"",isInjectVersion:!0,isPdf:!0},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,injectedCss:[".immersive-translate-target-translation-block-wrapper { display: block; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"]},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","https://platform.twitter.com/embed*"],additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']"],extraBlockSelectors:['[data-testid="tweetText"] div.r-6koalj'],extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText']":"-webkit-line-clamp: unset;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]"]},{id:"threads",matches:"www.threads.net",selectors:["p",".x1npkx4u.x1exu5d8",".xw7yly9",".xgkxs2y"],stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x78zum5",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{span:"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],extraBlockSelectors:["span.comment-copy"],excludeSelectors:["a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md",".RichTextJSON-root","div[slot=title]","div[slot=text-body]","p.title > a","[role=main] .md-container"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none"},waitForSelectors:["[data-testid=post_author_link]"]},{id:"reddit",matches:"www.reddit.com",selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","div[slot=title]","div[slot=text-body]","p.title > a","[role=main] .md-container"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none"}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper"],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box"],extraBlockSelectors:[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],detectParagraphLanguage:!0},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"facebook",matches:"www.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]"],atomicBlockSelectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],extraBlockSelectors:["span.x1vvkbs"],excludeSelectors:["[role=button]"],translationClasses:["immersive-translate-text"],detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".caption-window",".caption-visual-line",".yt-spec-button-view-model",".yt-core-attributed-string > span",".title"],"excludeTags.remove":["BUTTON"],condition:{enableSubtitle:{false:{"selectors.remove":[".caption-window",".caption-visual-line"]}}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],extraBlockSelectors:[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,detectParagraphLanguage:!0,excludeSelectors:["[class^='lln-']"],globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","ytd-notification-renderer .message","#message",".caption-window",".caption-visual-line"],extraBlockSelectors:["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],condition:{enableSubtitle:{false:{"selectors.remove":[".caption-window",".caption-visual-line"]}}},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,selectors:["h1","div[class='x9f619 xjbqb8w x78zum5 x168nmei x13lgxp2 x5pf9jr xo71vjh x1uhb9sk x1plvlek xryxfnj x1c4vz4f x2lah0s xdt5ytf xqjyukv x1cy8zhl x1oa3qoh x1nhvcw1'] > span[class='x1lliihq x1plvlek xryxfnj x1n2onr6 x193iq5w xeuugli x1fj9vlw x13faqbe x1vvkbs x1s928wv xhkezso x1gmr53x x1cpjm7i x1fgarty x1943h6x x1i0vuye xvs91rp xo1l8bm x5n08af x10wh9bi x1wdrske x8viiok x18hxmgj']","span[class='x193iq5w xeuugli x1fj9vlw x13faqbe x1vvkbs xt0psk2 x1i0vuye xvs91rp xo1l8bm x5n08af x10wh9bi x1wdrske x8viiok x18hxmgj']"],wrapperPrefix:"
"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:["[style^=top]",".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;"},extraBlockSelectors:[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"]},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page"],excludeMatches:["https://www.inoreader.com/features/"],observeUrlChange:!1,globalStyles:{".article_title_link":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` `,selectors:["h3 a[data-clk]","div.gs_rs","td a.gsc_a_at","td div.gs_gray:last-of-type","div.gsc_oci_value","#gs_opinion"],extraInlineSelectors:["br"],atomicBlockSelectors:["h3 a[data-clk]"]},{id:"googleMail",matches:"mail.google.com",detectParagraphLanguage:!0,selectors:["h2[data-thread-perm-id]","span[data-thread-id]","div[data-message-id] div[class='']",".messageBody","#views"],globalStyles:{".Nk":"height:auto!important;",".kf":"white-space:unset!important;"}},{id:"googleNews",matches:"news.google.com",blockMinTextCount:26,blockMinWordCount:5,globalStyles:{".MCAGUe":"height: auto;",".To2ZZb.DbQnIe":"height: unset;",".cp7Yvc > h2":"display: block;",".oovtQ":"height: auto;",h4:"-webkit-line-clamp: unset;"},excludeSelectors:[".EyERq",".AOl7G.eejsDc","[aria-label='Home']","[aria-label='For you']","[aria-label='Following']","[aria-label='World']","[aria-label='Local']",".gb_Fc",".wBQf7b",".yPI8Rb",".jKHa4e",".u43Gd",".Zgjpyb","[role='button']","[jsname='rymPhb']",".cbz1ld",".VfPpkd-P5QLlc",".XvhY1d"]},{id:"outlook",matches:"outlook.live.com",excludeSelectors:[".jHAG3.XG5Jd",".OZZZK",".lDdSm"]},{id:"producthunt",matches:"www.producthunt.com",excludeMatches:"https://www.producthunt.com/stories/*",selectors:["h2","div[class^='styles_htmlText__']","[class^='styles_tagline']","a[href^='/discussions/'].fontWeight-600","button[class^='styles_textButton'] > div > span","h5 + p","div[data-test=product-item-name] + div",".noOfLines-1,.noOfLines-2,.noOfLines-3",".fontWeight-600","[class*='styles_dropdown']","[class*='styles_aboutText']"],globalStyles:{"h5 + p":"height:unset;",".noOfLines-1,.noOfLines-2,.noOfLines-3":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"]},{id:"codeforces",matches:"https://codeforces.com/*",stayOriginalTags:["[class^='MathJax']"]},{id:"arxivLabs",matches:"*.labs.arxiv.org/*",stayOriginalTags:["math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt"]},{id:"discord",matches:"https://discord.com/channels/*",isTranslateTitle:!1,selectors:["li[id^=chat-messages] div[id^=message-content]","div[class^=headerText]","section[aria-label='Search Results'] div[id^=message-content]"],extraBlockSelectors:["[class^='embedFieldValue']","li[class^='card'] div[class^='message']","[data-list-item-id^='forum-channel-list'] div[class^='headerText']"],globalStyles:{"div[class^=headerText]":"max-height: unset;","div[class^=message]":"max-height: unset;","div[class^=text]":"max-height: unset;","h3[data-text-variant='heading-lg/semibold']":"-webkit-line-clamp: none;"},detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:"",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"telegram",matches:["web.telegram.org/z/*","web.telegram.org/a/*"],isTranslateTitle:!1,selectors:[".text-content",".message",".reply-markup-button-text",".bot-commands-list-element-description"],detectParagraphLanguage:!0},{id:"telegramK",matches:["web.telegram.org/k/*","web.telegram.org/k/"],selectors:[".message",".reply-markup-button-text",".bot-commands-list-element-description"],detectParagraphLanguage:!0},{id:"githubGist",matches:"gist.github.com",selectors:[".markdown-body",".readme"],detectParagraphLanguage:!0},{id:"lobste",matches:"lobste.rs",excludeMatches:["https://lobste.rs/about","https://lobste.rs/chat"],selectors:[".u-repost-of",".comment_text",".story_text"]},{id:"slack",matches:"*.slack.com",selectors:[".p-rich_text_block",".p-message_pane__foreword",".c-alert__message","[data-qa=message_attachment_text]"],additionalStayOriginalSelectors:["[data-qa=emoji]"],detectParagraphLanguage:!0},{id:"artstationArtwork",matches:"www.artstation.com/artwork/*",excludeSelectors:".project-description a",selectors:[".project-description","div.project-comment-text"],detectParagraphLanguage:!0},{id:"artstationLearning",matches:"www.artstation.com/learning/courses/*",additionalSelectors:["footer.learning-course-description.ng-star-inserted > span"],excludeSelectors:[".learning-card-meta"]},{id:"artstationBlog",matches:["https://www.artstation.com/blogs","https://www.artstation.com/blogs/*"],detectParagraphLanguage:!0,additionalSelectors:[".comment-item-body"],atomicBlockSelectors:[".author-headline",".author-location"],excludeSelectors:["blog-card-thumbnail","blog-card-header",".blog-card-author",".blog-card-meta",".blog-view-header",".blog-grid-title",".post-meta-header"]},{id:"figmaCommunity",matches:"www.figma.com/community/*",normalizeBody:"div.ql-editor[contenteditable='false']",excludeSelectors:["div[class*='metadataRight']","div[class*='commentMetaAndOptions']"],globalStyles:{"div[class*='mini_cardBottomRowSizing']":"height: 3em;"},additionalSelectors:["div[class*='mini_cardBottomRow_Metadata']"],stayOriginalSelectors:["[data-tooltip='tooltip-user-info']"]},{id:"googleIndex",matches:["https://www.google.com/","https://www.google.com.hk/"],excludeSelectors:["#gb","#SIvCob"],inputTutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",inputTutorialsSelectors:["textarea#APjFqb"]},{id:"googleSearch",matches:"www.google.*/search*",blockMinTextCount:32,blockMinWordCount:3,wrapperSuffix:"",detectParagraphLanguage:!0,excludeSelectors:["a h3 + div","div#sfooter","a[role=presentation] > div > div:first-child",".b5ZQcf",".CEMjEf",".MgUUmf.NUnG9d","#result-stats","[role=navigation]","div.sCuL3","div.eFM0qc.BCF2pd","div.WZ8Tjf","div.adDDi","#headerSection","#rateChatDiv","[id=bres]",".title-D5Lgyj","[data-attrid='VisualDigestVideoResult']",".search-enhance-WDIEkP h4",".SPZz6b h2",".CtCigf",".VLkRKc",".EbH0bb",".Wr0c6d",".jleFbf","#searchform",".yg51vc",".CbAZb"],extraBlockSelectors:[".MUFPAc"],globalStyles:{".V82bz":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px",".pe7FNb":"-webkit-line-clamp: unset;",".promotion-3PDMAb":"display: none;",".uAKcGb":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px","div[data-content-feature='1'] > div":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:2']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:3']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:4']":"-webkit-line-clamp: unset;max-height: unset;",".Pw4Ldf.RsCEN":"height:unset;",".related-question-pair":"overflow:auto;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,searchEnhancementConfig:[{id:"google",urlMatch:"https://www\\.google\\..+/search",style:{source:"font-size:12px; margin-bottom: 6px;",enTitle:"margin-top:6px;font-size:14px;",searchTitle:"margin-top:6px;position:relative;padding-right:24px;",more:"color:#1a0dab;margin-top:8px;",enTitleClassName:"immersive-translate-search-enhancement-en-title"},keyword:{value:"[0]$1",matches:[{source:"url",matchRegex:"q=(.+?)&"}]},showCount:5}]},{id:"lowendtalk",matches:"lowendtalk.com",selectors:["[role=heading]","h1",".userContent"]},{id:"linkedinJobs",matches:"www.linkedin.com/jobs/*",selectors:["#job-details > span"]},{id:"linkedinFeed",matches:"https://linkedin.com/feed/*",selectors:["h1",".feed-shared-update-v2__description-wrapper"]},{id:"indiehackers",matches:"www.indiehackers.com",selectors:[".content","h1","h3.story__title",".feed-item__title-link",".article-body"]},{id:"libreddit",matches:"libreddit.de",selectors:["h2.post_title",".comment_body > .md"]},{id:"notionSite",matches:["notion.site","*.notion.site"],normalizeBody:"body",selectors:["div[data-block-id]"]},{id:"newyorker",matches:"www.newyorker.com",additionalSelectors:["h1","[data-testid=SummaryItemHed]"],excludeSelectors:["[data-testid=PersistentTop]","[data-testid=StackedNavigationHeader]"],urlChangeDelay:2e3},{id:"startme",matches:"start.me",selectors:[".rss-article__title",".rss-articles-list__article-link",".rss-showcase__title",".rss-showcase__text"]},{id:"scmp",matches:"www.scmp.com",additionalSelectors:[".info__subHeadline",".section-content h2"],globalStyles:{".topic__article-list":"height: unset;",".adverisers__adveriser":"height: unset;",".advertiser__content":"height: unset;",".content-title__link":"display:unset;overflow:unset;-webkit-line-clamp:unset;",".title__text":"max-height:unset; -webkit-line-clamp:unset;",".news-list-item__news-title":"max-height:unset; -webkit-line-clamp:unset;","a[class*='link'] > .link__headline":"max-height:unset; -webkit-line-clamp:unset;"}},{id:"lesswrong",matches:"www.lesswrong.com",extraBlockSelectors:["span.commentOnSelection"]},{id:"mastodon",matches:["mastodon.social","mastodon.online","kolektiva.social","indieweb.social","mastodon.world","infosec.exchange"],isTranslateTitle:!1,selectorMatches:["div#mastodon"],selectors:["div.status__content__text",".about__section__body",".content",".form-container",".account__header__extra"],globalAttributes:{"[class='notranslate app-holder']":{class:"app-holder"}},detectLanguage:!0},{id:"cnbc",matches:"www.cnbc.com",urlChangeDelay:1e3,globalStyles:{"div.Card-titleContainer > div":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"dailyDev",matches:"app.daily.dev",selectors:["h1",".typo-body","article h3","[class^=markdown_markdown]"],globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset"}},{id:"pornhub",matches:["*.pornhub.com","pornhub.com"],excludeMatches:["*.pornhub.com/insights/*","pornhub.com/insights/*"],extraBlockSelectors:[".trendingNow",".searchItem",".tagcloud > a"],detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:` `,globalStyles:{"span.title":"height:unset; max-height:unset;",".detailedInfo":"max-height:unset;",".pcVideoListItem":"max-height:unset;",".wrap":"height:unset;",".entry-header":"height:unset;",".entry-title > a":"height:unset;-webkit-line-clamp:unset;"}},{id:"yourporn",matches:"https://www.youporn.com/*",extraBlockSelectors:[".button"],globalStyles:{".video-box":"max-height:unset;",".video-box-title":"white-space:unset;"}},{id:"modelhub",matches:"https://www.modelhub.com/*",globalStyles:{".videoTitle":"height:unset;",a:"height:unset;"}},{id:"xvideos",matches:"https://www.xvideos.com/*",globalStyles:{".title":"-webkit-line-clamp:unset;max-height:unset;",".mozaique":"display:flex; flex-wrap:wrap;"},excludeSelectors:[".video-hd-mark"]},{id:"missav",matches:"https://missav.com/*",globalStyles:{".truncate":"white-space:unset;",".overflow-y-hidden":"max-height:unset;overflow-y:unset;"}},{id:"javbus",matches:"https://www.javbus.com/*",globalStyles:{".photo-info":"height:unset;"},excludeSelectors:[".item-tag","date"]},{id:"spankbang",matches:"https://spankbang.com/*",globalStyles:{".video-item > a":"white-space:unset;"},excludeSelectors:[".stats",".thumb"],extraBlockSelectors:[".searches > a",".tag > a",".extra > a",".positions > li"]},{id:"javdb",matches:"https://javdb*.com/*",globalStyles:{".video-title":"white-space:unset;"},excludeSelectors:[".video-number",".score",".has-addons"]},{id:"jable",matches:"https://jable.tv/*",globalStyles:{".title":"white-space:unset;max-height:unset;",".img-box > a":"position:relative;"}},{id:"netflav",matches:"https://netflav*.com/*",globalStyles:{".grid_title":"max-height:unset;"},extraBlockSelectors:[".genre_filter_item","button"]},{id:"czechvideo",matches:"https://czechvideo.co/*",globalStyles:{".short-story":"height:unset;",".short-title":"height:unset;"},globalAttributes:{header:{translate:"unset;"}}},{id:"weibo",matches:["weibo.com"],selectors:["div[class^='detail_wbtext']"]},{id:"medium",matches:["medium.com","*.medium.com"],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],urlChangeDelay:20,"additionalExcludeSelectors.remove":["i.fa","i[class^=fa-]",".navmenu-container",".google-symbols","markerow8"],selectors:["h1","h2","article section","[aria-hidden='false'] pre","article p"],excludeSelectors:["[aria-label='Post Preview Reading Time']",".al.b.bl.ag.bp",".al.b.bl.ag.ai"],globalStyles:{h2:"-webkit-line-clamp: unset;max-height:unset;","article p":"-webkit-line-clamp: unset;max-height:unset;"}},{id:"nitter",selectorMatches:["meta[property='og:site_name'][content='Nitter']"],selectors:[".tweet-content",".quote-text"]},{id:"economist",matches:"www.economist.com",extraInlineSelectors:["span[data-caps='initial']"],excludeSelectors:["footer.ds-footer"],injectedCss:["a::before {position:relative!important;}"]},{id:"healthline",matches:"www.healthline.com",excludeSelectors:[".icon-hl-trusted-source-after"]},{id:"ebay",matches:"www.ebay.com",excludeSelectors:["headers","[itemprop=offers]",".dne-itemtile-original-price"],paragraphMinTextCount:4,paragraphMinWordCount:2,globalStyles:{"[itemprop=name]":"-webkit-line-clamp: unset;max-height: unset;",".merch-item-title":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"skinstore",matches:"www.skinstore.com",excludeSelectors:[".responsiveFlyoutMenu_levelOneLink"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"tripadvisor",matches:"www.tripadvisor.com",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"amazon",matches:"www.amazon.com",paragraphMinTextCount:4,paragraphMinWordCount:2,extraBlockSelectors:[".a-size-small.a-link-normal.page-banner-link.a-nowrap"],globalStyles:{".a-carousel-viewport":"height:unset;","[class*='clamp']":"max-height: unset;-webkit-line-clamp: unset;","[data-rows]":"max-height: unset;-webkit-line-clamp: unset;","[data-a-expander-name='review_text_read_more']":" max-height: unset;"},excludeSelectors:["#navFooter","#navbar-main",".s-price-instructions-style","[class*='star']","[data-hook='acr-average-stars-rating-text']",".a-color-price"]},{id:"visualstudioMarketplace",matches:"marketplace.visualstudio.com",additionalExcludeSelectors:[".core-info-second-row",".core-info-third-row",".meta-data-list",".item-title",".breadcrumb",".itemDetails-right",".ux-user-name",".ux-updated-date",".ux-item-second-row-wrapper",".stats-and-offer",".header-container"],atomicBlockSelectors:[".core-info-cell > div.name"],globalStyles:{".item-details-control-root.ux-item-shortdesc":"height: unset; overflow: visible; max-height:unset;"}},{id:"bloomberg",matches:"www.bloomberg.com",urlChangeDelay:2e3,excludeSelectors:[".ticker-bar","nav","[aria-label=Banner]","aside","[data-component=ticker-bar]","footer.bb-global-footer"]},{id:"baiduXueshu",matches:"xueshu.baidu.com",globalStyles:{".abstract_wr":"height: unset; overflow: visible; max-height:unset;"}},{id:"sciencedirect",matches:"www.sciencedirect.com",urlChangeDelay:2e3,stayOriginalSelectors:["span.display","span.math"],extraBlockSelectors:["span.captions","span[id^=cap]"]},{id:"thehighestofthemountains",matches:"www.thehighestofthemountains.com",extraBlockSelectors:"div"},{id:"telegraph1",matches:"te.legra.ph",normalizeBody:"div.ql-editor[contenteditable='false']",urlChangeDelay:500},{id:"telegraph2",matches:["telegra.ph"],normalizeBody:"div.ql-editor[contenteditable='false']",wrapperPrefix:` -`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main > div > div[class*='h-[125]']":"height:auto"},normalizeBody:"body",extraBlockSelectors:["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,normalizeBody:"#mw-content-text",globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"]},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"}},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:"chat.openai.com",excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0}},{id:"newstop",matches:["chat.newstop.asia","chat.waixingyun.cn"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".n-button.n-button--warning-type.n-button--medium-type",messageWrapperSelector:".markdown-body",streamingChange:!1,streamingDeepChild:!0}},{id:"askgpt",matches:["askgpt.cn","chatcat.zhaoyoung.me"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".home_chat-message-status__EsVNi",messageWrapperSelector:".markdown-body",streamingChange:!0,streamingDeepChild:!0}},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__UyYrv *",".MarkdownLink_linkifiedLink__KxC9G"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__UyYrv",streamingChange:!1,streamingDeepChild:!0}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"newthingsunderthesun",matches:"www.newthingsunderthesun.com",additionalSelectors:["[translate=no]"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"https://steamcommunity.com/app/*",globalStyles:{".forum_topic":"height:auto;",".forum_topic_name":"white-space:normal;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampowered",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:"https://www.webofscience.com/*",globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},excludeSelectors:[".summary-left-panel",".authors","app-full-record-keywords mark"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],extraBlockSelectors:["app-summary-authors + div","app-full-record-keywords span span"],observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://www.jetbrains.com/help/*",extraBlockSelectors:["[data-test=prompt]"]},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails p"]},{id:"isEbook",isEbook:!0,isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span"},{id:"isEbookBuilder",isEbookBuilder:!0,isTranslateTitle:!1,targetWrapperTag:"span",selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com",extraBlockSelectors:["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],extraBlockSelectors:"font[face=verdana]"},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"isSubtitleBuilder",isSubtitleBuilder:!0,selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,wrapperPrefix:"",wrapperSuffix:""},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/",extraBlockSelectors:[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"vimeo",matches:"https://player.vimeo.com/video/*",extraBlockSelectors:["span.vp-captions-line","span[class^=CaptionsRenderer_]"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexityAi",matches:"https://www.perplexity.ai/search/*",extraBlockSelectors:[".prose > span"],additionalStayOriginalSelectors:["a.citation"],insertPosition:"afterend"},{id:"perplexity",matches:"https://www.perplexity.ai",globalStyles:{".line-clamp-1":"-webkit-line-clamp: unset !important;",".line-clamp-2":"-webkit-line-clamp: unset !important;"}},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"babelnovel",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*"],urlChangeDelay:0},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0},{globalAttributes:{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"youtrackJetbrains",matches:"youtrack.jetbrains.com/articles/*",selectors:["[role=presentation]","[data-test=article-content]"],excludeSelectors:[".toolbar__ee8"]},{id:"bbc",matches:"www.bbc.com",excludeSelectors:["section.module--languages",".drop-capped"]},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}}},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"openai",matches:"https://platform.openai.com/docs/*",urlChangeDelay:0},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout":"height:unset !important;",".EntrySummary--u4":"-webkit-line-clamp: unset;max-height:unset;",".EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:[".copyable-text > span"],wrapperPrefix:` -`,wrapperSuffix:"
"},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],globalStyles:{"[class*='lineclamp']":"-webkit-line-clamp:unset;"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],extraBlockSelectors:[".SIPGg",".sc-kzMCTH.pSZXj"],globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"]},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*",globalAttributes:{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead"],injectedCss:["a::after {position:relative!important;}"]},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},globalAttributes:{"#app":{class:""}}},{id:"haproxy",matches:["docs.haproxy.org","www.oreilly.com/openbook/opensources/book/*"],excludeTags:[],stayOriginalSelectors:[],stayOriginalTags:[],isTransformPreTagNewLine:!0},{id:"piAi",matches:"pi.ai/talk",excludeSelectors:[".whitespace-pre-wrap > span *"],aiRule:{streamingSelector:"button[class*='fixed'][disabled]",messageWrapperSelector:".whitespace-pre-wrap",streamingChange:!1,streamingDeepChild:!1},globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *"],"excludeTags.remove":["PRE"],injectedCss:"[data-testid='chat-menu-trigger'] br {display:none;}",aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1}},{id:"feishu",matches:"*.feishu.cn","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],excludeSelectors:[".catalogue__list"]},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"bugsWebkit",matches:"bugs.webkit.org",isTransformPreTagNewLine:!0},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",matches:"www.kaggle.com",excludeTags:["i","button"]},{id:"ieee",matches:"spectrum.ieee.org",extraBlockSelectors:["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"www.cnn.com",excludeSelectors:[".ad-slot-header__wrapper"]},{id:"marginalrevolution",matches:"marginalrevolution.com",globalAttributes:{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",condition:{enableSubtitle:{false:{"excludeSelectors.add":[".bpx-player-subtitle-panel-text"]}}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"docs-oracle",matches:"docs.oracle.com",urlChangeDelay:0},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"edstem",matches:"edstem.org","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:"pubmed.ncbi.nlm.nih.gov",urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share"]},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"tldrnewsletter",matches:"actions.tldrnewsletter.com","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"bugzilla",matches:"bugzilla.mozilla.org","excludeTags.remove":["PRE"],isTransformPreTagNewLine:!0},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"excludeSelectors.add":["aside",".DocSearch-Modal"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"mail.qq.com",useIframePostMessage:!1},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]}]};p();p();function ba(e){return Array.isArray(e)?e:e?[e]:[]}function xs(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function Yn(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function Zu(e,t){let n={...e};return ld(n,t),Y1(n,t),n}function sd(e,t,n){let a={...t};return J1(e,a,n),a}function Y1(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},a=t.condition.enableSubtitle?.false||{},r=e.enableSubtitle?n:a;ld(e,r)}function J1(e,t,n){try{return Object.keys(t).forEach(a=>{let[r,u]=a.split(".");if(u){let o=t[a];if(Array.isArray(e[r])&&(o=ba(t[a])),u==="add"){t[r]=Hr(e[r],o),delete t[a];return}else if(u=="remove"){t[r]=Es(e[r],o),delete t[a];return}}}),Object.keys(n).forEach(a=>{let[r,u]=a.split(".");if(!r||n[a]===void 0)return;let o=n[a],i=t[r];if(Array.isArray(e[r])&&(o=ba(n[a]),i=ba(t[r])),u==="add"){t[r]=Hr(i,o);return}else if(u=="remove"){t[r]=Es(i,o);return}Array.isArray(i)&&r.startsWith("additional")?t[r]=Hr(i,o):t[r]=o}),t}catch{}}function ld(e,t){return Object.keys(t).forEach(n=>{let[a,r]=n.split(".");if(!a||t[n]===void 0)return;let u=t[n];if(Array.isArray(e[a])&&(u=ba(t[n])),r==="add"){e[a]=Hr(e[a],u);return}else if(r=="remove"){e[a]=Es(e[a],u);return}Array.isArray(e[a])&&a.startsWith("additional")?e[a]=Hr(e[a],u):e[a]=u}),e}function Hr(e,t){let n;if(Array.isArray(e)){let a=ba(t);n=[...e,...a],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"&&(n={...e,...t});return n}function Es(e,t){if(Array.isArray(e)){let n=ba(t);return e=e.filter(a=>!n.includes(a)),Array.from(new Set(e))}else typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(n=>{delete e[n]});return e}function cd(){if(Ee.PROD==="1")return{};let e={};if(Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:Ee.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:Ee.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:Ee.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(Ee.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=Ee.DEEPL_PROXY_ENDPOINT),Ee.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=Ee.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),Ee.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:Ee.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}Ee.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=Ee.IMMERSIVE_TRANSLATE_SERVICE);let t={};return Ee.DEBUG==="1"&&(t.debug=!0,t.cache=!1),Ee.MOCK==="1"&&(t.translationService="mock"),t}async function Jn(){let e=await se.storage.local.get(vr);if(e[vr]){let t=e[vr],n=t.tempTranslationUrlMatches||[],a=n.filter(o=>o.expiredAt>Date.now()),r=!1;a.length!==n.length&&(n=a,r=!0);let u={...t,tempTranslationUrlMatches:[...n]};return r&&await kn(u),u}else return{}}async function kn(e){await se.storage.local.set({[vr]:e})}async function dd(e){await se.storage.local.set({[qn]:e})}async function md(){let e=await se.storage.local.get(qn),n={...gd(),...Qu,buildinConfigUpdatedAt:Ee.BUILD_TIME};if(e[qn]){let a=e[qn];if(a&&a.buildinConfigUpdatedAt){let r=new Date(a.buildinConfigUpdatedAt),u=new Date(n.buildinConfigUpdatedAt);r>u&&(n=a)}}return n}async function Ka(){let e=await se.storage.local.get(qn),t={...Qu,buildinConfigUpdatedAt:Ee.BUILD_TIME};if(e[qn]){let D=e[qn];if(D&&D.buildinConfigUpdatedAt){let y=new Date(D.buildinConfigUpdatedAt),S=new Date(t.buildinConfigUpdatedAt);y>S&&(t=D)}}let n=await Nt.get(en,null),a={};if(!he()&&se.commands&&se.commands.getAll){let D=await se.commands.getAll();for(let y of D)y.name&&y.shortcut&&(a[y.name]=y.shortcut)}let r=gd(),u=cd(),o=await Ts(),i=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},s=await Jn(),c=new Date;if(s&&s.tempTranslationUrlMatches&&s.tempTranslationUrlMatches.length>0){let D=s.tempTranslationUrlMatches.filter(y=>new Date(y.expiredAt)>c);if(D.length>0){let y=o.translationUrlPattern?o.translationUrlPattern?.matches||[]:[],S=Array.isArray(y)?y:[y],R=Array.from(new Set(S.concat(D.map($=>$.match))));o.translationUrlPattern={...o.translationUrlPattern,matches:R}}}let l=Object.assign({},i,u,o);if(!l.interfaceLanguage){let D=await Q1();l.interfaceLanguage=D}let m=l.interfaceLanguage==="en",g=l.targetLanguage==="en",f=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,d=["bing","google","transmart","mock"].includes(l.translationService)||!l.translationService;!m&&!g&&!f&&d?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let b=t&&t.enableDefaultAlwaysTranslatedUrls;l.enableDefaultAlwaysTranslatedUrls===!1&&(b=!1);let T=l&&l.isChangedAlwaysTranslatedUrls,h=[];l.translationUrlPattern&&l.translationUrlPattern.matches&&(h=l.translationUrlPattern.matches||[]);let C=!1;T===void 0&&(h.length>0?T=!0:T=!1,l.isChangedAlwaysTranslatedUrls=T,o.isChangedAlwaysTranslatedUrls=T,C=!0);let v=(l?.translationLanguagePattern?.matches?.length||0)>0,O=await At("installedAt",""),B=Number(await Rn("translage_page_daily",0)),x=Number(await At(mn,0)),L;x>0&&(Date.now()-x0&&(Date.now()-Bz.id&&R[z.id]?sd(t.generalRule,R[z.id],z):z);I[y]=[...$,...I[y]]}if(Ee.PROD==="0"&&Ee.DEV_RULES){let S=JSON.parse(Ee.DEV_RULES);I[y]=[...S,...I[y]]}}else l[y]!==void 0&&(I[y]=l[y])}return I.donateUrl=t.donateUrl,I.minVersion=t.minVersion,I.feedbackUrl=t.feedbackUrl,I}async function Ts(){return(await se.storage.sync.get("userConfig")||{}).userConfig||{}}async function Cs(e){await se.storage.sync.set({userConfig:e})}var Q1=async()=>{let e=["zh-CN"];try{e=await se.i18n.getAcceptLanguages()}catch(a){U.warn("get browser language error:",a)}let n=e.map(a=>ja(a)).find(a=>Rt[a]);return n||"en"},gd=()=>{let e={...Qu,buildinConfigUpdatedAt:Ee.BUILD_TIME};return{...e,targetLanguage:Lu,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing"},rules:[]}};function Z1(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(a=>!e.includes(a)).length>0}p();p();function Qn(e,t){var n=(e&65535)+(t&65535),a=(e>>16)+(t>>16)+(n>>16);return a<<16|n&65535}function X1(e,t){return e<>>32-t}function eo(e,t,n,a,r,u){return Qn(X1(Qn(Qn(t,e),Qn(a,u)),r),n)}function Et(e,t,n,a,r,u,o){return eo(t&n|~t&a,e,t,r,u,o)}function Tt(e,t,n,a,r,u,o){return eo(t&a|n&~a,e,t,r,u,o)}function Ct(e,t,n,a,r,u,o){return eo(t^n^a,e,t,r,u,o)}function wt(e,t,n,a,r,u,o){return eo(n^(t|~a),e,t,r,u,o)}function Xu(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,a,r,u,o,i=1732584193,s=-271733879,c=-1732584194,l=271733878;for(n=0;n>5]>>>t%32&255);return n}function ws(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(a=Xu(a,e.length*8)),n=0;n<16;n+=1)r[n]=a[n]^909522486,u[n]=a[n]^1549556828;return o=Xu(r.concat(ws(t)),512+t.length*8),pd(Xu(u.concat(o),512+128))}function fd(e){var t="0123456789abcdef",n="",a,r;for(r=0;r>>4&15)+t.charAt(a&15);return n}function vs(e){return unescape(encodeURIComponent(e))}function hd(e){return e6(vs(e))}function n6(e){return fd(hd(e))}function bd(e,t){return t6(vs(e),vs(t))}function a6(e,t){return fd(bd(e,t))}function Zn(e,t,n){return t?n?bd(t,e):a6(t,e):n?hd(e):n6(e)}var Ga=[];async function to(e,t){return await new Promise((n,a)=>{let r=e,u=1,o=indexedDB.open(r,u);o.onsuccess=i=>{n(o.result)},o.onerror=i=>{a()},o.onupgradeneeded=i=>{let s=o.result,c=t||"cache";s.createObjectStore(c,{keyPath:"key"})}})}async function yd(e){let t=`${J}-${e.service}@${e.from}->${e.to}`;return await o6(t,e)}async function xd(e){let t=Zn(e.originalText),n=`${J}-${e.service}@${e.from}->${e.to}`;return await u6(n,t)}async function u6(e,t){let n=await to(e);return await new Promise((a,r)=>{if(!n)return r();let u="cache",i=n.transaction([u],"readonly").objectStore(u).get(t);i.onsuccess=s=>{n.close();let c=i.result;a(c)},i.onerror=s=>{n.close(),r()}})}async function o6(e,t){let n=await to(e);return(await s6()).includes(e)||await i6(e),await new Promise(r=>{if(!n)return r(!1);let u="cache",i=n.transaction([u],"readwrite").objectStore(u).put(t);i.onsuccess=s=>{n.close(),r(!0)},i.onerror=s=>{n.close(),r(!1)}})}async function i6(e){let t="cache_list",n=await to(J+"-cacheList",t),r=n.transaction([t],"readwrite").objectStore(t).put({key:e});r.onsuccess=u=>{n.close(),Ga.push(e)},r.onerror=u=>{n.close()}}async function s6(){if(Ga&&Ga.length>0)return Ga;let e=await to(J+"-cacheList","cache_list");return Ga=await new Promise(t=>{let n="cache_list",r=e.transaction([n],"readonly").objectStore(n).getAllKeys();r.onsuccess=u=>{e.close(),t(r.result)},r.onerror=u=>{e.close(),t([])}}),Ga}p();p();p();var Ed="G-MKMD9LWFTR";async function Je(e,t,n){try{let a=Qe();if(a.INSTALL_FROM==="firefox_store")return;let u=he(),o=nt(),i=a.PROD==="1",s=`report_${e}`,c=e.endsWith("_daily");if(c){if(o)return;let M=await Rn(s,0),w=no(new Date(M)),E=Date.now(),I=no(new Date(E));if(w===I)return;await ad(s,E)}else if(!n.config.telemetry)return;let l="sitc4WmvShWYwfU0dANM3Q",m=await At("fakeUserId","");m||(m=await Rn("fakeUserId",""),m&&await je("fakeUserId",m));let g=an(),f=new Date,d=await At("installedAt","");d||(d=await Rn("installedAt",""),d&&await je("installedAt",d)),m?d||(d=new Date(0).toISOString(),await je("installedAt",d)):(m=l6(32),await je("fakeUserId",m)),d||(d=f.toISOString(),await je("installedAt",d));let b=new Date(d),T=no(b),h=no(f),C=T===h,v=f.getTime()-b.getTime()<7*24*60*60*1e3,O=`https://www.google-analytics.com/mp/collect?measurement_id=${Ed}&api_secret=${l}`;i||(O=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${Ed}&api_secret=${l}`);let B=Ua.parse(window.navigator.userAgent),x=t.map(M=>{let w=M.params||{};if(B.os&&(w.os_name=B.os.name||"unknown",w.os_version=B.os.version||"unknown",w.os_version_name=B.os.versionName||"unknown"),B.browser&&(w.browser_name=B.browser.name||"unknown",w.browser_version=B.browser.version||"unknown"),B.platform&&(w.platform_type=B.platform.type||"unknown"),B.engine&&(w.engine_name=B.engine.name||"unknown",w.engine_version=B.engine.version||"unknown"),n.translationService&&(w.translation_service||(w.translation_service=n.translationService),n.config.translationServices&&n.config.translationServices[n.translationService]&&(n.config.translationServices[n.translationService].provider&&(w.translation_service_provider=n.config.translationServices[n.translationService].provider),n.translationService==="openai"&&n.config.translationServices[n.translationService].provider==="custom"&&(n.config.translationServices[n.translationService].apiUrl?n.config.translationServices[n.translationService].apiUrl.startsWith("https://api.openai.com/")?w.openai_is_official="1":w.openai_is_official="0":w.openai_is_official="1"))),n.targetLanguage&&(w.target_language=n.targetLanguage),n.config.interfaceLanguage&&(w.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?w.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":w.enable_default_always_translated_urls="0",g&&(w.version=g),n.config.enableInputTranslation?w.enable_input_translation=n.config.enableInputTranslation?"1":"0":w.enable_input_translation="0",n.config.translationTheme&&(w.translation_theme=n.config.translationTheme),n.config.alpha&&(w.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?w.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):w.always_translate_languages="none",a.INSTALL_FROM&&(w.install_from=a.INSTALL_FROM),n.config.beta&&(w.beta=n.config.alpha.toString()),n.config.translationArea&&(w.translation_area=n.config.translationArea),n.rule&&n.rule.enableSearchEnhancement!==void 0&&(w.enable_search_enhancement=n.rule.enableSearchEnhancement?"1":"0"),T&&(w.install_day=c6(b)),n.user){let I=dc(n.user);I&&Object.keys(I).forEach(F=>{w[F]=I[F]})}else w.user_type="anonymous";n.config.translationMode&&(w.translation_mode=n.config.translationMode),w.userscript=u.toString(),C?w.is_new_user_today="1":w.is_new_user_today="0",v?w.is_new_user_this_week="1":w.is_new_user_this_week="0",n.config.tempTranslateDomainMinutes?w.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():w.temp_translate_domain_minutes="0";let E="html";if(n.rule.isEbook?E="ebookReader":n.rule.isPdf?E="pdfReader":n.rule.isEbookBuilder?E="ebookBuilder":n.rule.isSubtitleBuilder&&(E="subtitleBuilder"),w.page_type=E,o?w.main_frame=0:w.main_frame=1,!c){let I=n.url;try{let F=new URL(I);w.site_host=F.hostname}catch{w.site_host="unknown"}n.sourceLanguage&&(w.source_language=n.sourceLanguage)}return{...M,params:w}}),L=await ie({responseType:"text",url:O,method:"POST",body:JSON.stringify({client_id:m,user_id:m,events:x})})}catch{}}function l6(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;rt.removeEventListener("message",n)),e.length=0}function p6(e,t,n,a){return new Promise(r=>{let u=o=>{let i=o.data;m6(t,n,i)&&i.id===a&&(e.removeEventListener("message",u),r(i.response))};e.addEventListener("message",u)})}function f6(e,t,n,a){let r=u=>{let o=u.data;kd(t,"tell",n,o)&&a(o.body)};return e.addEventListener("message",r),[e,r]}function Td(e,t,n,a,r,u){let o=async i=>{let s=i.data;if(kd(n,"ask",a,s)){let c=await u(s.body);t=i.source,t.postMessage(d6(n,a,s.id,c),i.origin)}};return e.addEventListener("message",o),[e,o]}function h6(e,t,n,a,r){let u=Math.random().toString();return e.postMessage(vd(t,"tell",n,u,a),r)}async function Cd(e,t,n,a,r,u,o){let i=Math.random().toString(),s=new Promise(async(c,l)=>{let m=setTimeout(()=>l(new Error(`Failed to get response within ${o}ms`)),o),g=await p6(e,n,a,i);clearTimeout(m),c(g)});return t.postMessage(vd(n,"ask",a,i,r),u),s}var ea=class e{constructor(t,n,a=window,r="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=a;this.targetOrigin=r;Td(a,n,this.getSystemProtocol("ping"),"ping",r,()=>Promise.resolve({}))}static async connect(t,n=10,a=500){for(let r=0;r<=n;r++)try{return await t.ping({timeout:a}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*a}ms`)}static parent(t,n,a="*",r=window){let u=n.contentWindow;if(Xn(u))return new e(t,u,r,a);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:a=window,targetWindow:r=window.parent}={}){return new e(t,r,a,n)}static rootIframe(t,n="*",{thisWindow:a=window}={}){return new e(t,null,a,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await Cd(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(f6(this.thisWindow,this.protocol,t,n))}tell(t,n){h6(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(Td(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,a=1e4){if(this.targetWindow)return Cd(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,a);throw new Error("target window is requried")}destroy(){g6(this.listeners)}};var Sd;async function Ad(){if(nt()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=ea.iframe(Pu,"*",{targetWindow:t});Sd=n,await ea.connect(n).catch(a=>{U.error("connect with parent frame error",a)})}}function ao(){return Sd}p();function Dd(e,t){let n=t.matches||[],a=t.excludeMatches||[];if(a&&!Array.isArray(a)&&(a=[a]),n&&!Array.isArray(n)&&(n=[n]),a.length>0){if(a.includes(e)||a.includes(""))return!1;for(let r of a)if(r.includes("*")&&new RegExp(r).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let r of n)if(r.includes("*")&&new RegExp(r).test(e))return!0}return!1}p();p();p();p();p();var ft=class{options;strictTicks=[];constructor(t){this.options=t,this.setOptions(t)}setOptions(t){t&&(t.interval!==void 0&&(this.options.interval=Number(t.interval)),t.limit!==void 0&&(this.options.limit=Number(t.limit)))}wait(){return new Promise((t,n)=>{setTimeout(t,this.getDelay())})}getDelay(){let t=this.strictTicks,n=this.options.limit,a=this.options.interval,r=Date.now();if(t.length=u?(t.push(r),0):(t.push(u),u-r)}};var b6=new ft({limit:7,interval:1250}),y6={tencent:new ft({limit:3,interval:1350}),baidu:new ft({limit:1,interval:1550}),strict:new ft({limit:1,interval:1050}),d:new ft({limit:1,interval:1050}),youdao:new ft({limit:5,interval:1050}),you:new ft({limit:5,interval:1050}),cai:new ft({limit:5,interval:1050}),google:new ft({limit:10,interval:1050}),deepl:new ft({limit:10,interval:1050}),transmart:new ft({limit:30,interval:1050}),papago:new ft({limit:3,interval:1150}),openai:new ft({limit:10,interval:1300}),chatgpt:new ft({limit:1,interval:1350})};function qr(e){return y6[e]||b6}async function Ld(e){if(nt()){let n=ao();if(n)try{return(await n.ask("getRateLimitDelay",{key:e})).value}catch(a){return U.error("can not comunicate with root frame, use strict limiter",a),qr("strict").getDelay()}else return qr("strict").getDelay()}else return qr(e).getDelay()}async function Pd(e,t){if(!nt()){let a=qr(e);t&&a.setOptions(t)}}async function Md(e){let t=e.key;return{value:qr(t).getDelay()}}p();var _d="auto",ro="auto",Fd="auto";function ks(e){_d=e}function rn(e){ro=e}function ct(){return ro!=="auto"?ro:Fd!=="auto"?Fd:_d}function uo(){return ro}var be=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=200;translationOptions;constructor(t,n,a){this.serviceConfig=t,this.generalConfig=n,this.translationOptions=a}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getDefaultRateLimit(){return null}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,a){if(t.sentences.length===0)return{sentences:[]};let{sentences:r}=t,u=[],o=null,i=new Set;for(let b of r)b.from&&b.from!=="auto"&&i.add(b.from);let s=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(s=this.serviceConfig.maxTextLengthPerRequest);let c=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(c=this.serviceConfig.maxTextGroupLengthPerRequest);try{u=Uc(r,s,c)}catch(b){if(a)for(let T=0;Tb));let l=[],m=[],g=(b,T,h)=>{let C=T.translatedTexts[0];m[b]||(m[b]=T,m[b].translatedTexts=Array(T.sentenceTotalParts).fill(null)),m[b].translatedTexts[T.partIndex]=C;let v=m[b],O=0;for(let B=0;B{let v=await Ld(this.translationOptions.translationService);await Dr(v||0);let O=T.from;if(T.fromByClient&&T.fromByClient!=="auto"&&(O=T.fromByClient),this.isSupportList)return{...await this.translateList({text:T.tempSentences.map(x=>x.text),from:O,to:T.to,url:h,options:n}),sourceTempSentences:T.tempSentences};{let B=Pc;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(B=this.serviceConfig.translationTextSeparator);let x=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(x=this.serviceConfig.newlinePlaceholderDelimiters);let L="";x&&x.length>=2?L=T.tempSentences.map((F,A)=>A===T.tempSentences.length-1?F.text:F.text+x[0]+(A+1)+x[1]).join(""):L=T.tempSentences.map(F=>F.text).join(B);let M=await this.translate({text:L,from:O,to:T.to,url:h,options:n}),{text:w}=M,E=[];if(x&&x.length>=2){let F=`${x[0]}\\d+${x[1]}`;x&&x.length>=3&&(F=x[2]);let A=new RegExp(F,"g");E=w.split(A)}else E=w.split(B);let I=[];if(E.length>T.tempSentences.length){for(let F=0;F{let{text:O,sourceTempSentences:B}=v;for(let x=0;x{if(a){for(let O=0;O({...b.sentence,text:b.translatedTexts.join("")}))}}detectLanguageLocally(t){return Ke({text:t,minLength:18,pageLangs:[ct(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}};p();p();var Va="input is invalid type",Ss=typeof window=="object",ta=Ss?window:{};ta.JS_SHA256_NO_WINDOW&&(Ss=!1);var x6=!Ss&&typeof self=="object",E6=!ta.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;E6?ta=global:x6&&(ta=self);var gw=!ta.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,pw=typeof define=="function"&&define.amd,Wr=!ta.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",le="0123456789abcdef".split(""),T6=[-2147483648,8388608,32768,128],fn=[24,16,8,0],oo=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],io=["hex","array","digest","arrayBuffer"],dt=[];(ta.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});Wr&&(ta.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var Bd=function(e,t){return function(n){return new mt(t,!0).update(n)[e]()}},Id=function(e){var t=Bd("hex",e);t.create=function(){return new mt(e)},t.update=function(r){return t.create().update(r)};for(var n=0;n>2]|=e[r]<>2]|=a<>2]|=(192|a>>6)<>2]|=(128|a&63)<=57344?(i[u>>2]|=(224|a>>12)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<>2]|=(240|a>>18)<>2]|=(128|a>>12&63)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<=64?(this.block=i[16],this.start=u-64,this.hash(),this.hashed=!0):this.start=u}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};mt.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=T6[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};mt.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,s=this.blocks,c,l,m,g,f,d,b,T,h,C,v;for(c=16;c<64;++c)f=s[c-15],l=(f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3,f=s[c-2],m=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10,s[c]=s[c-16]+l+s[c-7]+m<<0;for(v=t&n,c=0;c<64;c+=4)this.first?(this.is224?(T=300032,f=s[0]-1413257819,i=f-150054599<<0,a=f+24177077<<0):(T=704751109,f=s[0]-210244248,i=f-1521486534<<0,a=f+143694565<<0),this.first=!1):(l=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),m=(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7),T=e&t,g=T^e&n^v,b=r&u^~r&o,f=i+m+b+oo[c]+s[c],d=l+g,i=a+f<<0,a=f+d<<0),l=(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10),m=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),h=a&e,g=h^a&t^T,b=i&r^~i&u,f=o+m+b+oo[c+1]+s[c+1],d=l+g,o=n+f<<0,n=f+d<<0,l=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),m=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),C=n&a,g=C^n&e^h,b=o&i^~o&r,f=u+m+b+oo[c+2]+s[c+2],d=l+g,u=t+f<<0,t=f+d<<0,l=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),m=(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7),v=t&n,g=v^t&a^C,b=u&o^~u&i,f=r+m+b+oo[c+3]+s[c+3],d=l+g,r=e+f<<0,e=f+d<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+a<<0,this.h4=this.h4+r<<0,this.h5=this.h5+u<<0,this.h6=this.h6+o<<0,this.h7=this.h7+i<<0};mt.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,s=le[e>>28&15]+le[e>>24&15]+le[e>>20&15]+le[e>>16&15]+le[e>>12&15]+le[e>>8&15]+le[e>>4&15]+le[e&15]+le[t>>28&15]+le[t>>24&15]+le[t>>20&15]+le[t>>16&15]+le[t>>12&15]+le[t>>8&15]+le[t>>4&15]+le[t&15]+le[n>>28&15]+le[n>>24&15]+le[n>>20&15]+le[n>>16&15]+le[n>>12&15]+le[n>>8&15]+le[n>>4&15]+le[n&15]+le[a>>28&15]+le[a>>24&15]+le[a>>20&15]+le[a>>16&15]+le[a>>12&15]+le[a>>8&15]+le[a>>4&15]+le[a&15]+le[r>>28&15]+le[r>>24&15]+le[r>>20&15]+le[r>>16&15]+le[r>>12&15]+le[r>>8&15]+le[r>>4&15]+le[r&15]+le[u>>28&15]+le[u>>24&15]+le[u>>20&15]+le[u>>16&15]+le[u>>12&15]+le[u>>8&15]+le[u>>4&15]+le[u&15]+le[o>>28&15]+le[o>>24&15]+le[o>>20&15]+le[o>>16&15]+le[o>>12&15]+le[o>>8&15]+le[o>>4&15]+le[o&15];return this.is224||(s+=le[i>>28&15]+le[i>>24&15]+le[i>>20&15]+le[i>>16&15]+le[i>>12&15]+le[i>>8&15]+le[i>>4&15]+le[i&15]),s};mt.prototype.toString=mt.prototype.hex;mt.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,s=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,a>>24&255,a>>16&255,a>>8&255,a&255,r>>24&255,r>>16&255,r>>8&255,r&255,u>>24&255,u>>16&255,u>>8&255,u&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||s.push(i>>24&255,i>>16&255,i>>8&255,i&255),s};mt.prototype.array=mt.prototype.digest;mt.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function so(e,t,n){var a,r=typeof e;if(r==="string"){var u=[],o=e.length,i=0,s;for(a=0;a>6,u[i++]=128|s&63):s<55296||s>=57344?(u[i++]=224|s>>12,u[i++]=128|s>>6&63,u[i++]=128|s&63):(s=65536+((s&1023)<<10|e.charCodeAt(++a)&1023),u[i++]=240|s>>18,u[i++]=128|s>>12&63,u[i++]=128|s>>6&63,u[i++]=128|s&63);e=u}else if(r==="object"){if(e===null)throw new Error(Va);if(Wr&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!Wr||!ArrayBuffer.isView(e)))throw new Error(Va)}else throw new Error(Va);e.length>64&&(e=new mt(t,!0).update(e).array());var c=[],l=[];for(a=0;a<64;++a){var m=e[a]||0;c[a]=92^m,l[a]=54^m}mt.call(this,t,n),this.update(l),this.oKeyPad=c,this.inner=!0,this.sharedMemory=n}so.prototype=new mt;so.prototype.finalize=function(){if(mt.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();mt.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),mt.prototype.finalize.call(this)}};var Ya=Id();Ya.sha256=Ya;Ya.sha224=Id(!0);Ya.sha256.hmac=Od();Ya.sha224.hmac=Od(!0);var Nd=Ya;var jd=Nd.sha256;function hn(e){return Promise.resolve(jd(e))}function lo(e){return Array.from(new Uint8Array(e)).map(a=>a.toString(16).padStart(2,"0")).join("")}function na(e,t){let n=jd.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function zd(e,t){let n=await na(e,t);return lo(n)}async function co(e,t){let n=C6(t),a=await na(e,n);return lo(a)}function C6(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var Ud=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],$r=class e extends be{static langMap=new Map(Ud);static langMapReverse=new Map(Ud.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),a=`${t.getUTCMonth()+1}`.padStart(2,"0"),r=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${a}-${r}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.secretId||!t.secretKey)throw new Error("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}async translate(t){let{text:n,from:a,to:r}=t,u=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceText:n,Target:e.langMap.get(r)||r}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:u,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||a,to:e.langMapReverse.get(o.Response.Target)||r}}async translateList(t){let{text:n,from:a,to:r}=t,u=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceTextList:n,Target:e.langMap.get(r)||r}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:u,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||a,to:e.langMapReverse.get(o.Response.Target)||r}}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:u,version:o}){let i=`${u}.tencentcloudapi.com`,s=new Date,c=`${new Date().valueOf()}`.slice(0,10),l=["POST","/","","content-type:application/json; charset=utf-8",`host:${i}`,"","content-type;host",await hn(r)].join(` +`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main div[class*='h-[125]']":"height:auto"},normalizeBody:"body",extraBlockSelectors:["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,normalizeBody:"#mw-content-text",globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"]},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"}},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:"chat.openai.com",excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0}},{id:"newstop",matches:["chat.newstop.asia","chat.waixingyun.cn"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".n-button.n-button--warning-type.n-button--medium-type",messageWrapperSelector:".markdown-body",streamingChange:!1,streamingDeepChild:!0}},{id:"askgpt",matches:["askgpt.cn","chatcat.zhaoyoung.me"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".home_chat-message-status__EsVNi",messageWrapperSelector:".markdown-body",streamingChange:!0,streamingDeepChild:!0}},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__UyYrv *",".MarkdownLink_linkifiedLink__KxC9G"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__UyYrv",streamingChange:!1,streamingDeepChild:!0}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"newthingsunderthesun",matches:"www.newthingsunderthesun.com",additionalSelectors:["[translate=no]"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"https://steamcommunity.com/app/*",globalStyles:{".forum_topic":"height:auto;",".forum_topic_name":"white-space:normal;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampowered",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:"https://www.webofscience.com/*",globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},excludeSelectors:[".summary-left-panel",".authors","app-full-record-keywords mark"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],extraBlockSelectors:["app-summary-authors + div","app-full-record-keywords span span"],observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://www.jetbrains.com/help/*",extraBlockSelectors:["[data-test=prompt]"]},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails p"]},{id:"isEbook",isEbook:!0,isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span"},{id:"isEbookBuilder",isEbookBuilder:!0,isTranslateTitle:!1,targetWrapperTag:"span",selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com",extraBlockSelectors:["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],extraBlockSelectors:"font[face=verdana]"},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"isSubtitleBuilder",isSubtitleBuilder:!0,selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,wrapperPrefix:"",wrapperSuffix:""},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/",extraBlockSelectors:[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"vimeo",matches:"https://player.vimeo.com/video/*",extraBlockSelectors:["span.vp-captions-line","span[class^=CaptionsRenderer_]"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexityAi",matches:"https://www.perplexity.ai/search/*",extraBlockSelectors:[".prose > span"],additionalStayOriginalSelectors:["a.citation"],insertPosition:"afterend"},{id:"perplexity",matches:"https://www.perplexity.ai",globalStyles:{".line-clamp-1":"-webkit-line-clamp: unset !important;",".line-clamp-2":"-webkit-line-clamp: unset !important;"}},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"babelnovel",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*"],urlChangeDelay:0},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0},{globalAttributes:{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"youtrackJetbrains",matches:"youtrack.jetbrains.com/articles/*",selectors:["[role=presentation]","[data-test=article-content]"],excludeSelectors:[".toolbar__ee8"]},{id:"bbc",matches:"www.bbc.com",excludeSelectors:["section.module--languages",".drop-capped"]},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}}},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"openai",matches:"https://platform.openai.com/docs/*",urlChangeDelay:0},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout":"height:unset !important;",".EntrySummary--u4":"-webkit-line-clamp: unset;max-height:unset;",".EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:[".copyable-text > span"],wrapperPrefix:` +`,wrapperSuffix:"
"},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],globalStyles:{"[class*='lineclamp']":"-webkit-line-clamp:unset;"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],extraBlockSelectors:[".SIPGg",".sc-kzMCTH.pSZXj"],globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"]},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*",globalAttributes:{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead"],injectedCss:["a::after {position:relative!important;}"]},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},globalAttributes:{"#app":{class:""}}},{id:"haproxy",matches:["docs.haproxy.org","www.oreilly.com/openbook/opensources/book/*"],excludeTags:[],stayOriginalSelectors:[],stayOriginalTags:[],isTransformPreTagNewLine:!0},{id:"piAi",matches:"pi.ai/talk",excludeSelectors:[".whitespace-pre-wrap > span *"],aiRule:{streamingSelector:"button[class*='fixed'][disabled]",messageWrapperSelector:".whitespace-pre-wrap",streamingChange:!1,streamingDeepChild:!1},globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *"],"excludeTags.remove":["PRE"],injectedCss:"[data-testid='chat-menu-trigger'] br {display:none;}",aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1}},{id:"feishu",matches:"*.feishu.cn","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],excludeSelectors:[".catalogue__list"]},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"bugsWebkit",matches:"bugs.webkit.org",isTransformPreTagNewLine:!0},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",matches:"www.kaggle.com",excludeTags:["i","button"]},{id:"ieee",matches:"spectrum.ieee.org",extraBlockSelectors:["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"www.cnn.com",excludeSelectors:[".ad-slot-header__wrapper"]},{id:"marginalrevolution",matches:"marginalrevolution.com",globalAttributes:{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",condition:{enableSubtitle:{false:{"excludeSelectors.add":[".bpx-player-subtitle-panel-text"]}}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"docs-oracle",matches:"docs.oracle.com",urlChangeDelay:0},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"edstem",matches:"edstem.org","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:"pubmed.ncbi.nlm.nih.gov",urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share"]},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"tldrnewsletter",matches:"actions.tldrnewsletter.com","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"bugzilla",matches:"bugzilla.mozilla.org","excludeTags.remove":["PRE"],isTransformPreTagNewLine:!0},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"excludeSelectors.add":["aside",".DocSearch-Modal"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"mail.qq.com",useIframePostMessage:!1},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]}]};p();p();function ya(e){return Array.isArray(e)?e:e?[e]:[]}function xs(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function Yn(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function Qu(e,t){let n={...e};return cd(n,t),Y1(n,t),n}function ld(e,t,n){let a={...t};return J1(e,a,n),a}function Y1(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},a=t.condition.enableSubtitle?.false||{},r=e.enableSubtitle?n:a;cd(e,r)}function J1(e,t,n){try{return Object.keys(t).forEach(a=>{let[r,u]=a.split(".");if(u){let o=t[a];if(Array.isArray(e[r])&&(o=ya(t[a])),u==="add"){t[r]=Hr(e[r],o),delete t[a];return}else if(u=="remove"){t[r]=Es(e[r],o),delete t[a];return}}}),Object.keys(n).forEach(a=>{let[r,u]=a.split(".");if(!r||n[a]===void 0)return;let o=n[a],i=t[r];if(Array.isArray(e[r])&&(o=ya(n[a]),i=ya(t[r])),u==="add"){t[r]=Hr(i,o);return}else if(u=="remove"){t[r]=Es(i,o);return}Array.isArray(i)&&r.startsWith("additional")?t[r]=Hr(i,o):t[r]=o}),t}catch{}}function cd(e,t){return Object.keys(t).forEach(n=>{let[a,r]=n.split(".");if(!a||t[n]===void 0)return;let u=t[n];if(Array.isArray(e[a])&&(u=ya(t[n])),r==="add"){e[a]=Hr(e[a],u);return}else if(r=="remove"){e[a]=Es(e[a],u);return}Array.isArray(e[a])&&a.startsWith("additional")?e[a]=Hr(e[a],u):e[a]=u}),e}function Hr(e,t){let n;if(Array.isArray(e)){let a=ya(t);n=[...e,...a],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"&&(n={...e,...t});return n}function Es(e,t){if(Array.isArray(e)){let n=ya(t);return e=e.filter(a=>!n.includes(a)),Array.from(new Set(e))}else typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(n=>{delete e[n]});return e}function dd(){if(Ee.PROD==="1")return{};let e={};if(Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:Ee.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:Ee.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:Ee.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(Ee.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=Ee.DEEPL_PROXY_ENDPOINT),Ee.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=Ee.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),Ee.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:Ee.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}Ee.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=Ee.IMMERSIVE_TRANSLATE_SERVICE);let t={};return Ee.DEBUG==="1"&&(t.debug=!0,t.cache=!1),Ee.MOCK==="1"&&(t.translationService="mock"),t}async function Jn(){let e=await se.storage.local.get(vr);if(e[vr]){let t=e[vr],n=t.tempTranslationUrlMatches||[],a=n.filter(o=>o.expiredAt>Date.now()),r=!1;a.length!==n.length&&(n=a,r=!0);let u={...t,tempTranslationUrlMatches:[...n]};return r&&await kn(u),u}else return{}}async function kn(e){await se.storage.local.set({[vr]:e})}async function md(e){await se.storage.local.set({[qn]:e})}async function gd(){let e=await se.storage.local.get(qn),n={...pd(),...Ju,buildinConfigUpdatedAt:Ee.BUILD_TIME};if(e[qn]){let a=e[qn];if(a&&a.buildinConfigUpdatedAt){let r=new Date(a.buildinConfigUpdatedAt),u=new Date(n.buildinConfigUpdatedAt);r>u&&(n=a)}}return n}async function Ka(){let e=await se.storage.local.get(qn),t={...Ju,buildinConfigUpdatedAt:Ee.BUILD_TIME};if(e[qn]){let D=e[qn];if(D&&D.buildinConfigUpdatedAt){let y=new Date(D.buildinConfigUpdatedAt),S=new Date(t.buildinConfigUpdatedAt);y>S&&(t=D)}}let n=await jt.get(Ot,null),a={};if(!fe()&&se.commands&&se.commands.getAll){let D=await se.commands.getAll();for(let y of D)y.name&&y.shortcut&&(a[y.name]=y.shortcut)}let r=pd(),u=dd(),o=await Ts(),i=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},s=await Jn(),c=new Date;if(s&&s.tempTranslationUrlMatches&&s.tempTranslationUrlMatches.length>0){let D=s.tempTranslationUrlMatches.filter(y=>new Date(y.expiredAt)>c);if(D.length>0){let y=o.translationUrlPattern?o.translationUrlPattern?.matches||[]:[],S=Array.isArray(y)?y:[y],R=Array.from(new Set(S.concat(D.map($=>$.match))));o.translationUrlPattern={...o.translationUrlPattern,matches:R}}}let l=Object.assign({},i,u,o);if(!l.interfaceLanguage){let D=await Q1();l.interfaceLanguage=D}let m=l.interfaceLanguage==="en",g=l.targetLanguage==="en",f=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,d=["bing","google","transmart","mock"].includes(l.translationService)||!l.translationService;!m&&!g&&!f&&d?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let b=t&&t.enableDefaultAlwaysTranslatedUrls;l.enableDefaultAlwaysTranslatedUrls===!1&&(b=!1);let T=l&&l.isChangedAlwaysTranslatedUrls,h=[];l.translationUrlPattern&&l.translationUrlPattern.matches&&(h=l.translationUrlPattern.matches||[]);let C=!1;T===void 0&&(h.length>0?T=!0:T=!1,l.isChangedAlwaysTranslatedUrls=T,o.isChangedAlwaysTranslatedUrls=T,C=!0);let v=(l?.translationLanguagePattern?.matches?.length||0)>0,O=await At("installedAt",""),B=Number(await Rn("translage_page_daily",0)),x=Number(await At(mn,0)),L;x>0&&(Date.now()-x0&&(Date.now()-Bz.id&&R[z.id]?ld(t.generalRule,R[z.id],z):z);I[y]=[...$,...I[y]]}if(Ee.PROD==="0"&&Ee.DEV_RULES){let S=JSON.parse(Ee.DEV_RULES);I[y]=[...S,...I[y]]}}else l[y]!==void 0&&(I[y]=l[y])}return I.donateUrl=t.donateUrl,I.minVersion=t.minVersion,I.feedbackUrl=t.feedbackUrl,I}async function Ts(){return(await se.storage.sync.get("userConfig")||{}).userConfig||{}}async function Cs(e){await se.storage.sync.set({userConfig:e})}var Q1=async()=>{let e=["zh-CN"];try{e=await se.i18n.getAcceptLanguages()}catch(a){U.warn("get browser language error:",a)}let n=e.map(a=>za(a)).find(a=>Rt[a]);return n||"en"},pd=()=>{let e={...Ju,buildinConfigUpdatedAt:Ee.BUILD_TIME};return{...e,targetLanguage:Du,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing"},rules:[]}};function Z1(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(a=>!e.includes(a)).length>0}p();p();function Qn(e,t){var n=(e&65535)+(t&65535),a=(e>>16)+(t>>16)+(n>>16);return a<<16|n&65535}function X1(e,t){return e<>>32-t}function Xu(e,t,n,a,r,u){return Qn(X1(Qn(Qn(t,e),Qn(a,u)),r),n)}function Et(e,t,n,a,r,u,o){return Xu(t&n|~t&a,e,t,r,u,o)}function Tt(e,t,n,a,r,u,o){return Xu(t&a|n&~a,e,t,r,u,o)}function Ct(e,t,n,a,r,u,o){return Xu(t^n^a,e,t,r,u,o)}function wt(e,t,n,a,r,u,o){return Xu(n^(t|~a),e,t,r,u,o)}function Zu(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,a,r,u,o,i=1732584193,s=-271733879,c=-1732584194,l=271733878;for(n=0;n>5]>>>t%32&255);return n}function ws(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(a=Zu(a,e.length*8)),n=0;n<16;n+=1)r[n]=a[n]^909522486,u[n]=a[n]^1549556828;return o=Zu(r.concat(ws(t)),512+t.length*8),fd(Zu(u.concat(o),512+128))}function hd(e){var t="0123456789abcdef",n="",a,r;for(r=0;r>>4&15)+t.charAt(a&15);return n}function vs(e){return unescape(encodeURIComponent(e))}function bd(e){return e6(vs(e))}function n6(e){return hd(bd(e))}function yd(e,t){return t6(vs(e),vs(t))}function a6(e,t){return hd(yd(e,t))}function Zn(e,t,n){return t?n?yd(t,e):a6(t,e):n?bd(e):n6(e)}var Ga=[];async function eo(e,t){return await new Promise((n,a)=>{let r=e,u=1,o=indexedDB.open(r,u);o.onsuccess=i=>{n(o.result)},o.onerror=i=>{a()},o.onupgradeneeded=i=>{let s=o.result,c=t||"cache";s.createObjectStore(c,{keyPath:"key"})}})}async function xd(e){let t=`${J}-${e.service}@${e.from}->${e.to}`;return await o6(t,e)}async function Ed(e){let t=Zn(e.originalText),n=`${J}-${e.service}@${e.from}->${e.to}`;return await u6(n,t)}async function u6(e,t){let n=await eo(e);return await new Promise((a,r)=>{if(!n)return r();let u="cache",i=n.transaction([u],"readonly").objectStore(u).get(t);i.onsuccess=s=>{n.close();let c=i.result;a(c)},i.onerror=s=>{n.close(),r()}})}async function o6(e,t){let n=await eo(e);return(await s6()).includes(e)||await i6(e),await new Promise(r=>{if(!n)return r(!1);let u="cache",i=n.transaction([u],"readwrite").objectStore(u).put(t);i.onsuccess=s=>{n.close(),r(!0)},i.onerror=s=>{n.close(),r(!1)}})}async function i6(e){let t="cache_list",n=await eo(J+"-cacheList",t),r=n.transaction([t],"readwrite").objectStore(t).put({key:e});r.onsuccess=u=>{n.close(),Ga.push(e)},r.onerror=u=>{n.close()}}async function s6(){if(Ga&&Ga.length>0)return Ga;let e=await eo(J+"-cacheList","cache_list");return Ga=await new Promise(t=>{let n="cache_list",r=e.transaction([n],"readonly").objectStore(n).getAllKeys();r.onsuccess=u=>{e.close(),t(r.result)},r.onerror=u=>{e.close(),t([])}}),Ga}p();p();p();var Td="G-MKMD9LWFTR";async function Je(e,t,n){try{let a=Qe();if(a.INSTALL_FROM==="firefox_store")return;let u=fe(),o=nt(),i=a.PROD==="1",s=`report_${e}`,c=e.endsWith("_daily");if(c){if(o)return;let M=await Rn(s,0),w=to(new Date(M)),E=Date.now(),I=to(new Date(E));if(w===I)return;await ad(s,E)}else if(!n.config.telemetry)return;let l="sitc4WmvShWYwfU0dANM3Q",m=await At("fakeUserId","");m||(m=await Rn("fakeUserId",""),m&&await je("fakeUserId",m));let g=an(),f=new Date,d=await At("installedAt","");d||(d=await Rn("installedAt",""),d&&await je("installedAt",d)),m?d||(d=new Date(0).toISOString(),await je("installedAt",d)):(m=l6(32),await je("fakeUserId",m)),d||(d=f.toISOString(),await je("installedAt",d));let b=new Date(d),T=to(b),h=to(f),C=T===h,v=f.getTime()-b.getTime()<7*24*60*60*1e3,O=`https://www.google-analytics.com/mp/collect?measurement_id=${Td}&api_secret=${l}`;i||(O=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${Td}&api_secret=${l}`);let B=Ha.parse(window.navigator.userAgent),x=t.map(M=>{let w=M.params||{};if(B.os&&(w.os_name=B.os.name||"unknown",w.os_version=B.os.version||"unknown",w.os_version_name=B.os.versionName||"unknown"),B.browser&&(w.browser_name=B.browser.name||"unknown",w.browser_version=B.browser.version||"unknown"),B.platform&&(w.platform_type=B.platform.type||"unknown"),B.engine&&(w.engine_name=B.engine.name||"unknown",w.engine_version=B.engine.version||"unknown"),n.translationService&&(w.translation_service||(w.translation_service=n.translationService),n.config.translationServices&&n.config.translationServices[n.translationService]&&(n.config.translationServices[n.translationService].provider&&(w.translation_service_provider=n.config.translationServices[n.translationService].provider),n.translationService==="openai"&&n.config.translationServices[n.translationService].provider==="custom"&&(n.config.translationServices[n.translationService].apiUrl?n.config.translationServices[n.translationService].apiUrl.startsWith("https://api.openai.com/")?w.openai_is_official="1":w.openai_is_official="0":w.openai_is_official="1"))),n.targetLanguage&&(w.target_language=n.targetLanguage),n.config.interfaceLanguage&&(w.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?w.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":w.enable_default_always_translated_urls="0",g&&(w.version=g),n.config.enableInputTranslation?w.enable_input_translation=n.config.enableInputTranslation?"1":"0":w.enable_input_translation="0",n.config.translationTheme&&(w.translation_theme=n.config.translationTheme),n.config.alpha&&(w.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?w.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):w.always_translate_languages="none",a.INSTALL_FROM&&(w.install_from=a.INSTALL_FROM),n.config.beta&&(w.beta=n.config.alpha.toString()),n.config.translationArea&&(w.translation_area=n.config.translationArea),n.rule&&n.rule.enableSearchEnhancement!==void 0&&(w.enable_search_enhancement=n.rule.enableSearchEnhancement?"1":"0"),T&&(w.install_day=c6(b)),n.user){let I=dc(n.user);I&&Object.keys(I).forEach(F=>{w[F]=I[F]})}else w.user_type="anonymous";n.config.translationMode&&(w.translation_mode=n.config.translationMode),w.userscript=u.toString(),C?w.is_new_user_today="1":w.is_new_user_today="0",v?w.is_new_user_this_week="1":w.is_new_user_this_week="0",n.config.tempTranslateDomainMinutes?w.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():w.temp_translate_domain_minutes="0";let E="html";if(n.rule.isEbook?E="ebookReader":n.rule.isPdf?E="pdfReader":n.rule.isEbookBuilder?E="ebookBuilder":n.rule.isSubtitleBuilder&&(E="subtitleBuilder"),w.page_type=E,o?w.main_frame=0:w.main_frame=1,!c){let I=n.url;try{let F=new URL(I);w.site_host=F.hostname}catch{w.site_host="unknown"}n.sourceLanguage&&(w.source_language=n.sourceLanguage)}return{...M,params:w}}),L=await ie({responseType:"text",url:O,method:"POST",body:JSON.stringify({client_id:m,user_id:m,events:x})})}catch{}}function l6(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;rt.removeEventListener("message",n)),e.length=0}function p6(e,t,n,a){return new Promise(r=>{let u=o=>{let i=o.data;m6(t,n,i)&&i.id===a&&(e.removeEventListener("message",u),r(i.response))};e.addEventListener("message",u)})}function f6(e,t,n,a){let r=u=>{let o=u.data;Sd(t,"tell",n,o)&&a(o.body)};return e.addEventListener("message",r),[e,r]}function Cd(e,t,n,a,r,u){let o=async i=>{let s=i.data;if(Sd(n,"ask",a,s)){let c=await u(s.body);t=i.source,t.postMessage(d6(n,a,s.id,c),i.origin)}};return e.addEventListener("message",o),[e,o]}function h6(e,t,n,a,r){let u=Math.random().toString();return e.postMessage(kd(t,"tell",n,u,a),r)}async function wd(e,t,n,a,r,u,o){let i=Math.random().toString(),s=new Promise(async(c,l)=>{let m=setTimeout(()=>l(new Error(`Failed to get response within ${o}ms`)),o),g=await p6(e,n,a,i);clearTimeout(m),c(g)});return t.postMessage(kd(n,"ask",a,i,r),u),s}var ea=class e{constructor(t,n,a=window,r="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=a;this.targetOrigin=r;Cd(a,n,this.getSystemProtocol("ping"),"ping",r,()=>Promise.resolve({}))}static async connect(t,n=10,a=500){for(let r=0;r<=n;r++)try{return await t.ping({timeout:a}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*a}ms`)}static parent(t,n,a="*",r=window){let u=n.contentWindow;if(Xn(u))return new e(t,u,r,a);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:a=window,targetWindow:r=window.parent}={}){return new e(t,r,a,n)}static rootIframe(t,n="*",{thisWindow:a=window}={}){return new e(t,null,a,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await wd(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(f6(this.thisWindow,this.protocol,t,n))}tell(t,n){h6(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(Cd(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,a=1e4){if(this.targetWindow)return wd(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,a);throw new Error("target window is requried")}destroy(){g6(this.listeners)}};var Ad;async function Dd(){if(nt()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=ea.iframe(Lu,"*",{targetWindow:t});Ad=n,await ea.connect(n).catch(a=>{U.error("connect with parent frame error",a)})}}function no(){return Ad}p();function Ld(e,t){let n=t.matches||[],a=t.excludeMatches||[];if(a&&!Array.isArray(a)&&(a=[a]),n&&!Array.isArray(n)&&(n=[n]),a.length>0){if(a.includes(e)||a.includes(""))return!1;for(let r of a)if(r.includes("*")&&new RegExp(r).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let r of n)if(r.includes("*")&&new RegExp(r).test(e))return!0}return!1}p();p();p();p();p();var ft=class{options;strictTicks=[];constructor(t){this.options=t,this.setOptions(t)}setOptions(t){t&&(t.interval!==void 0&&(this.options.interval=Number(t.interval)),t.limit!==void 0&&(this.options.limit=Number(t.limit)))}wait(){return new Promise((t,n)=>{setTimeout(t,this.getDelay())})}getDelay(){let t=this.strictTicks,n=this.options.limit,a=this.options.interval,r=Date.now();if(t.length=u?(t.push(r),0):(t.push(u),u-r)}};var b6=new ft({limit:7,interval:1250}),y6={tencent:new ft({limit:3,interval:1350}),baidu:new ft({limit:1,interval:1550}),strict:new ft({limit:1,interval:1050}),d:new ft({limit:1,interval:1050}),youdao:new ft({limit:5,interval:1050}),you:new ft({limit:5,interval:1050}),cai:new ft({limit:5,interval:1050}),google:new ft({limit:10,interval:1050}),deepl:new ft({limit:10,interval:1050}),transmart:new ft({limit:30,interval:1050}),papago:new ft({limit:3,interval:1150}),openai:new ft({limit:10,interval:1300}),chatgpt:new ft({limit:1,interval:1350})};function qr(e){return y6[e]||b6}async function Pd(e){if(nt()){let n=no();if(n)try{return(await n.ask("getRateLimitDelay",{key:e})).value}catch(a){return U.error("can not comunicate with root frame, use strict limiter",a),qr("strict").getDelay()}else return qr("strict").getDelay()}else return qr(e).getDelay()}async function Md(e,t){if(!nt()){let a=qr(e);t&&a.setOptions(t)}}async function Fd(e){let t=e.key;return{value:qr(t).getDelay()}}p();var Bd="auto",ao="auto",_d="auto";function ks(e){Bd=e}function rn(e){ao=e}function ct(){return ao!=="auto"?ao:_d!=="auto"?_d:Bd}function ro(){return ao}var be=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=200;translationOptions;constructor(t,n,a){this.serviceConfig=t,this.generalConfig=n,this.translationOptions=a}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getDefaultRateLimit(){return null}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,a){if(t.sentences.length===0)return{sentences:[]};let{sentences:r}=t,u=[],o=null,i=new Set;for(let b of r)b.from&&b.from!=="auto"&&i.add(b.from);let s=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(s=this.serviceConfig.maxTextLengthPerRequest);let c=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(c=this.serviceConfig.maxTextGroupLengthPerRequest);try{u=Uc(r,s,c)}catch(b){if(a)for(let T=0;Tb));let l=[],m=[],g=(b,T,h)=>{let C=T.translatedTexts[0];m[b]||(m[b]=T,m[b].translatedTexts=Array(T.sentenceTotalParts).fill(null)),m[b].translatedTexts[T.partIndex]=C;let v=m[b],O=0;for(let B=0;B{let v=await Pd(this.translationOptions.translationService);await Dr(v||0);let O=T.from;if(T.fromByClient&&T.fromByClient!=="auto"&&(O=T.fromByClient),this.isSupportList)return{...await this.translateList({text:T.tempSentences.map(x=>x.text),from:O,to:T.to,url:h,options:n}),sourceTempSentences:T.tempSentences};{let B=Pc;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(B=this.serviceConfig.translationTextSeparator);let x=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(x=this.serviceConfig.newlinePlaceholderDelimiters);let L="";x&&x.length>=2?L=T.tempSentences.map((F,A)=>A===T.tempSentences.length-1?F.text:F.text+x[0]+(A+1)+x[1]).join(""):L=T.tempSentences.map(F=>F.text).join(B);let M=await this.translate({text:L,from:O,to:T.to,url:h,options:n}),{text:w}=M,E=[];if(x&&x.length>=2){let F=`${x[0]}\\d+${x[1]}`;x&&x.length>=3&&(F=x[2]);let A=new RegExp(F,"g");E=w.split(A)}else E=w.split(B);let I=[];if(E.length>T.tempSentences.length){for(let F=0;F{let{text:O,sourceTempSentences:B}=v;for(let x=0;x{if(a){for(let O=0;O({...b.sentence,text:b.translatedTexts.join("")}))}}detectLanguageLocally(t){return Ke({text:t,minLength:18,pageLangs:[ct(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}};p();p();var Va="input is invalid type",Ss=typeof window=="object",ta=Ss?window:{};ta.JS_SHA256_NO_WINDOW&&(Ss=!1);var x6=!Ss&&typeof self=="object",E6=!ta.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;E6?ta=global:x6&&(ta=self);var gw=!ta.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,pw=typeof define=="function"&&define.amd,Wr=!ta.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",le="0123456789abcdef".split(""),T6=[-2147483648,8388608,32768,128],fn=[24,16,8,0],uo=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],oo=["hex","array","digest","arrayBuffer"],dt=[];(ta.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});Wr&&(ta.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var Rd=function(e,t){return function(n){return new mt(t,!0).update(n)[e]()}},Od=function(e){var t=Rd("hex",e);t.create=function(){return new mt(e)},t.update=function(r){return t.create().update(r)};for(var n=0;n>2]|=e[r]<>2]|=a<>2]|=(192|a>>6)<>2]|=(128|a&63)<=57344?(i[u>>2]|=(224|a>>12)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<>2]|=(240|a>>18)<>2]|=(128|a>>12&63)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<=64?(this.block=i[16],this.start=u-64,this.hash(),this.hashed=!0):this.start=u}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};mt.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=T6[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};mt.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,s=this.blocks,c,l,m,g,f,d,b,T,h,C,v;for(c=16;c<64;++c)f=s[c-15],l=(f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3,f=s[c-2],m=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10,s[c]=s[c-16]+l+s[c-7]+m<<0;for(v=t&n,c=0;c<64;c+=4)this.first?(this.is224?(T=300032,f=s[0]-1413257819,i=f-150054599<<0,a=f+24177077<<0):(T=704751109,f=s[0]-210244248,i=f-1521486534<<0,a=f+143694565<<0),this.first=!1):(l=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),m=(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7),T=e&t,g=T^e&n^v,b=r&u^~r&o,f=i+m+b+uo[c]+s[c],d=l+g,i=a+f<<0,a=f+d<<0),l=(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10),m=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),h=a&e,g=h^a&t^T,b=i&r^~i&u,f=o+m+b+uo[c+1]+s[c+1],d=l+g,o=n+f<<0,n=f+d<<0,l=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),m=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),C=n&a,g=C^n&e^h,b=o&i^~o&r,f=u+m+b+uo[c+2]+s[c+2],d=l+g,u=t+f<<0,t=f+d<<0,l=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),m=(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7),v=t&n,g=v^t&a^C,b=u&o^~u&i,f=r+m+b+uo[c+3]+s[c+3],d=l+g,r=e+f<<0,e=f+d<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+a<<0,this.h4=this.h4+r<<0,this.h5=this.h5+u<<0,this.h6=this.h6+o<<0,this.h7=this.h7+i<<0};mt.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,s=le[e>>28&15]+le[e>>24&15]+le[e>>20&15]+le[e>>16&15]+le[e>>12&15]+le[e>>8&15]+le[e>>4&15]+le[e&15]+le[t>>28&15]+le[t>>24&15]+le[t>>20&15]+le[t>>16&15]+le[t>>12&15]+le[t>>8&15]+le[t>>4&15]+le[t&15]+le[n>>28&15]+le[n>>24&15]+le[n>>20&15]+le[n>>16&15]+le[n>>12&15]+le[n>>8&15]+le[n>>4&15]+le[n&15]+le[a>>28&15]+le[a>>24&15]+le[a>>20&15]+le[a>>16&15]+le[a>>12&15]+le[a>>8&15]+le[a>>4&15]+le[a&15]+le[r>>28&15]+le[r>>24&15]+le[r>>20&15]+le[r>>16&15]+le[r>>12&15]+le[r>>8&15]+le[r>>4&15]+le[r&15]+le[u>>28&15]+le[u>>24&15]+le[u>>20&15]+le[u>>16&15]+le[u>>12&15]+le[u>>8&15]+le[u>>4&15]+le[u&15]+le[o>>28&15]+le[o>>24&15]+le[o>>20&15]+le[o>>16&15]+le[o>>12&15]+le[o>>8&15]+le[o>>4&15]+le[o&15];return this.is224||(s+=le[i>>28&15]+le[i>>24&15]+le[i>>20&15]+le[i>>16&15]+le[i>>12&15]+le[i>>8&15]+le[i>>4&15]+le[i&15]),s};mt.prototype.toString=mt.prototype.hex;mt.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,s=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,a>>24&255,a>>16&255,a>>8&255,a&255,r>>24&255,r>>16&255,r>>8&255,r&255,u>>24&255,u>>16&255,u>>8&255,u&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||s.push(i>>24&255,i>>16&255,i>>8&255,i&255),s};mt.prototype.array=mt.prototype.digest;mt.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function io(e,t,n){var a,r=typeof e;if(r==="string"){var u=[],o=e.length,i=0,s;for(a=0;a>6,u[i++]=128|s&63):s<55296||s>=57344?(u[i++]=224|s>>12,u[i++]=128|s>>6&63,u[i++]=128|s&63):(s=65536+((s&1023)<<10|e.charCodeAt(++a)&1023),u[i++]=240|s>>18,u[i++]=128|s>>12&63,u[i++]=128|s>>6&63,u[i++]=128|s&63);e=u}else if(r==="object"){if(e===null)throw new Error(Va);if(Wr&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!Wr||!ArrayBuffer.isView(e)))throw new Error(Va)}else throw new Error(Va);e.length>64&&(e=new mt(t,!0).update(e).array());var c=[],l=[];for(a=0;a<64;++a){var m=e[a]||0;c[a]=92^m,l[a]=54^m}mt.call(this,t,n),this.update(l),this.oKeyPad=c,this.inner=!0,this.sharedMemory=n}io.prototype=new mt;io.prototype.finalize=function(){if(mt.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();mt.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),mt.prototype.finalize.call(this)}};var Ya=Od();Ya.sha256=Ya;Ya.sha224=Od(!0);Ya.sha256.hmac=Nd();Ya.sha224.hmac=Nd(!0);var jd=Ya;var zd=jd.sha256;function hn(e){return Promise.resolve(zd(e))}function so(e){return Array.from(new Uint8Array(e)).map(a=>a.toString(16).padStart(2,"0")).join("")}function na(e,t){let n=zd.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function Ud(e,t){let n=await na(e,t);return so(n)}async function lo(e,t){let n=C6(t),a=await na(e,n);return so(a)}function C6(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var Hd=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],$r=class e extends be{static langMap=new Map(Hd);static langMapReverse=new Map(Hd.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),a=`${t.getUTCMonth()+1}`.padStart(2,"0"),r=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${a}-${r}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.secretId||!t.secretKey)throw new Error("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}async translate(t){let{text:n,from:a,to:r}=t,u=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceText:n,Target:e.langMap.get(r)||r}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:u,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||a,to:e.langMapReverse.get(o.Response.Target)||r}}async translateList(t){let{text:n,from:a,to:r}=t,u=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceTextList:n,Target:e.langMap.get(r)||r}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:u,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||a,to:e.langMapReverse.get(o.Response.Target)||r}}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:u,version:o}){let i=`${u}.tencentcloudapi.com`,s=new Date,c=`${new Date().valueOf()}`.slice(0,10),l=["POST","/","","content-type:application/json; charset=utf-8",`host:${i}`,"","content-type;host",await hn(r)].join(` `),m=e.getUTCDate(s),g=["TC3-HMAC-SHA256",c,`${m}/${u}/tc3_request`,await hn(l)].join(` -`),f=await zd(m,`TC3${n}`),d=await co(u,f),b=await co("tc3_request",d),T=await co(g,b),h=await ie({retry:1,url:`https://${u}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:i,"X-TC-Action":a,"X-TC-Timestamp":c,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${m}/${u}/tc3_request, SignedHeaders=content-type;host, Signature=${T}`},body:r});if(h instanceof Error)throw h;if(h.Response&&h.Response.Error&&h.Response.Error.Message)throw new Error(h.Response.Error.Message);return h}};p();var Hd=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],w6={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},Kr=class e extends be{static langMap=new Map(Hd);static langMapReverse=new Map(Hd.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,a){super(t,n,a)}async translate(t){let{text:n,from:a,to:r}=t,u=new URLSearchParams({source:a,target:r,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await ie({url:`https://wxapp.translator.qq.com/api/translate?${u}`,retry:1,method:"GET",headers:w6});return{text:o.targetText,from:e.langMapReverse.get(o.source)||a,to:e.langMapReverse.get(o.target)||r}}};p();var qd=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],ya=class e extends be{static langMap=new Map(qd);static langMapReverse=new Map(qd.map(([t,n])=>[n,t]));isSupportList=!1;apiUrl="https://translate.googleapis.com/translate_a/single";constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.apiUrl=Ot(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let u=e.langMap.get(a)||"auto",o=e.langMap.get(r)||r,i=await this.fetchWithoutToken(n,u,o);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async translateXml(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let u=e.langMap.get(a)||"auto",o=e.langMap.get(r)||r,i=await this.fetchXmlWithoutToken(n,u,o);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async fetchXmlWithoutToken(t,n,a){let u="https://translate.googleapis.com/translate_a/t?"+new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}).toString();return{data:await ie({retry:2,url:u})}}async fetchWithoutToken(t,n,a){let r=new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}),u=this.apiUrl+"?"+r.toString();return{data:await ie({retry:2,url:u})}}};p();p();p();function v6(e,t){return t?e+(t-e%t):e}function k6(e,t){return e.split(t).length-1}function As(e){let t=Date.now(),n=1;for(let a of e)n+=k6(a,"i");return v6(t,n)}function S6(e,t){return Math.floor(Math.random()*(t-e+1))+e}function Ds(){return S6(1e6,1e8)}p();p();p();var Ls="https://www2.deepl.com/jsonrpc",Ps="auto",Wd=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];p();function A6(e=Wd){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function Ms(e){return A6()[e.toLowerCase()]}var D6={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function L6(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function P6(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function M6(e,t,n,a,r,u,o){let i=Ds(),s=P6(a,n),c=[];t.forEach(g=>{c.push({text:g,requestAlternatives:3})}),s.id=i,s.params.texts=c,s.params.timestamp=As(t);let l=await ie({retry:2,method:"POST",url:e,body:L6(s),headers:D6}),m={from:l.result.lang,to:n,text:[]};return l.result.texts.forEach(g=>{m.text.push(g.text)}),m}async function $d(e,t,n,a=Ps,r,u,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:a,to:n}:M6(e,t,Ms(n),Ms(a)??"auto",r,u,o):{text:[],from:a,to:n}}var Kd=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Ja=class e extends be{static langMap=new Map(Kd);static langMapReverse=new Map(Kd.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=Ls;constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.API_URL=Ot(Ls,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:a,from:r}=t,u=await $d(this.API_URL,n,e.langMap.get(a)||a,e.langMap.get(r)||"auto");return{text:u.text,from:e.langMapReverse.get(u.from),to:e.langMapReverse.get(u.to)}}};p();var Gd=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Fs="https://transmart.qq.com/api/imt",xa=class e extends be{static langMap=new Map(Gd);static langMapReverse=new Map(Gd.map(([t,n])=>[n,t]));clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,a){super(t,n,a),this.clientKey=e.getClientKey()}static getClientKey(){return btoa("transmart_crx_"+navigator.userAgent).slice(0,100)}async translate(t){let{text:n,to:a}=t,r=await this.detectLanguage(n),u=e.langMap.get(r)||r,o=e.langMap.get(a)||a;if(r===a)return{text:n,from:r,to:a};let i=Qe(),s=t.url;i.INSTALL_FROM==="firefox_store"&&(s=Vd());let l=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:u,orig_url:s},target:{lang:o}}),m=await ie({url:Fs,body:l,method:"POST",retry:2});if(m.header.ret_code!=="succ")throw new Error(m.message||m.header.ret_code);return{text:m.auto_translation,from:r||"auto",to:a}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:a,to:r}=t,u=Qe(),o=t.url;if(u.INSTALL_FROM==="firefox_store"&&(o=Vd()),a.length===1){let f=await this.translate({from:n,text:a[0],to:r,url:o,options:t.options});return{text:[f.text],from:f.from,to:f.to}}let s=await this.detectLanguage(a.join(` -`));if(s===r)return{text:a,from:s,to:r};let c=e.langMap.get(s)||s,l=e.langMap.get(r)||r,m=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:a,lang:c,orig_url:o},target:{lang:l},type:"plain"}),g=await ie({url:Fs,body:m,method:"POST"});if(g.header.ret_code!=="succ")throw new Error(g.message||g.header.ret_code);return{text:g.auto_translation,from:s||"auto",to:r}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return e.detectLanguageRemotelyByTransmart(t)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},a=await ie({url:Fs,method:"POST",body:JSON.stringify(n)});if(a.header.ret_code!=="succ")throw new Error(a.message||a.header.ret_code);let r=a.language,u=e.langMapReverse.get(r);return u||r}};function Vd(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}p();p();function Yd(){return Math.random()>=0}var Qa=class extends be{isSupportList=!0;maxTextLength=1200;maxTextGroupLength=25;async translate(t){let{text:n}=t,a=n.match(/^\s*/)[0].length;return{text:n.slice(0,a)+"\u6A21\u62DF\uFF1A"+n.slice(a,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:a,to:r}=t;if(await Jd(),!Yd())throw new Error("\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:a,to:r,text:[""]}:{from:a,to:r,text:n.map(u=>{let o=u.match(/^\s*/)[0].length;return u.slice(0,o)+"\u6A21\u62DF\uFF1A"+u.slice(o,-6)})}}};p();var Zd=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],_s=new Map(Zd),Qd=new Map(Zd.map(([e,t])=>[t,e])),Bs=class e extends be{static langMap=_s;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,a){if(super(t,n,a),!t||!t.apikey)throw new Error("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:a,to:r}=t,u=await ie({retry:2,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:_s.get(a)||"auto",target_lang:_s.get(r)||r})});if(u.status){let o=u;return o.result&&r=="zh-TW",{text:o.result,from:Qd.get(o.source_lang),to:Qd.get(o.target_lang)}}else throw new Error(u.msg)}},mo=Bs;p();var Xd=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Gr=new Map(Xd),F6=new Map(Xd.map(([e,t])=>[t,e])),Rs=class extends be{static langMap=Gr;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl="https://deepl.immersivetranslate.com/v2/translate";immersiveTranslateDeeplTokenUrl="https://api.immersivetranslate.com";immersiveTranslateDeeplProApiUrl=Pn()||Mn()?"https://api2.immersivetranslate.com/deepl/translate":"https://test-api2.immersivetranslate.com/deepl/translate";provider="custom";splitor="";apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,a){if(super(t,n,a),t=t||{},this.splitor=t.qualityDelimiterBeta||"",t.provider==="pro")if(this.provider="pro",a.userToken){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=a.userToken,this.apiKeys=this.authKey.split(",").map(r=>r.trim())}else throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey.split(",").map(r=>r.trim()),!this.authKey)throw new Error("authKey are required");if(!this.authKey)throw new Error("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=Ot(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=Ot(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=Ot(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=Ot(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=Ot(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getDefaultRateLimit(){if(this.provider==="pro"){if(this.serviceConfig&&this.serviceConfig.immersiveTranslateProLimit){let t=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(t)&&(t=15),{limit:t,interval:1050}}return{limit:15,interval:1050}}else return{limit:3,interval:1050}}async translateList(t){let{from:n,to:a,text:r}=t,u={source_lang:Gr.get(n)||"",target_lang:Gr.get(a)||a},o=this.getRandomKey(),i=new URLSearchParams(u);this.splitor?i.append("text",r.join(this.splitor)):r.forEach(d=>{i.append("text",d)});let s=i.toString(),c={text:this.splitor?[r.join(this.splitor)]:r,source_lang:Gr.get(n)||"auto",target_lang:Gr.get(a)||a},l=this.freeApiUrl;o.endsWith(":im")?l=this.immersiveTranslateApiUrl:o.endsWith(":fx")||(l=this.proApiUrl);let m;this.provider==="pro"?m=await ie({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:o,"Content-Type":"application/json"}}):o.startsWith("immersive_")?m=await ie({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:o,"Content-Type":"application/json"}}):m=await ie({retry:2,url:l,method:"POST",body:s,headers:{Authorization:"DeepL-Auth-Key "+o,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}});let{translations:g}=m,f=[];if(this.splitor?f=g[0]?.text.split(this.splitor).map(d=>d):f=g.map(d=>d.text),a==="zh-TW"){let d=this.serviceConfig||{};d&&d.googleApiUrl&&(d.apiUrl=d.googleApiUrl);let T=await new ya(this.serviceConfig,this.generalConfig,this.translationOptions).translate({from:"zh-CN",to:"zh-TW",text:g.map(h=>h.text).join(` +`),f=await Ud(m,`TC3${n}`),d=await lo(u,f),b=await lo("tc3_request",d),T=await lo(g,b),h=await ie({retry:1,url:`https://${u}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:i,"X-TC-Action":a,"X-TC-Timestamp":c,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${m}/${u}/tc3_request, SignedHeaders=content-type;host, Signature=${T}`},body:r});if(h instanceof Error)throw h;if(h.Response&&h.Response.Error&&h.Response.Error.Message)throw new Error(h.Response.Error.Message);return h}};p();var qd=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],w6={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},Kr=class e extends be{static langMap=new Map(qd);static langMapReverse=new Map(qd.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,a){super(t,n,a)}async translate(t){let{text:n,from:a,to:r}=t,u=new URLSearchParams({source:a,target:r,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await ie({url:`https://wxapp.translator.qq.com/api/translate?${u}`,retry:1,method:"GET",headers:w6});return{text:o.targetText,from:e.langMapReverse.get(o.source)||a,to:e.langMapReverse.get(o.target)||r}}};p();var Wd=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],xa=class e extends be{static langMap=new Map(Wd);static langMapReverse=new Map(Wd.map(([t,n])=>[n,t]));isSupportList=!1;apiUrl="https://translate.googleapis.com/translate_a/single";constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.apiUrl=Nt(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let u=e.langMap.get(a)||"auto",o=e.langMap.get(r)||r,i=await this.fetchWithoutToken(n,u,o);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async translateXml(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let u=e.langMap.get(a)||"auto",o=e.langMap.get(r)||r,i=await this.fetchXmlWithoutToken(n,u,o);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async fetchXmlWithoutToken(t,n,a){let u="https://translate.googleapis.com/translate_a/t?"+new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}).toString();return{data:await ie({retry:2,url:u})}}async fetchWithoutToken(t,n,a){let r=new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}),u=this.apiUrl+"?"+r.toString();return{data:await ie({retry:2,url:u})}}};p();p();p();function v6(e,t){return t?e+(t-e%t):e}function k6(e,t){return e.split(t).length-1}function As(e){let t=Date.now(),n=1;for(let a of e)n+=k6(a,"i");return v6(t,n)}function S6(e,t){return Math.floor(Math.random()*(t-e+1))+e}function Ds(){return S6(1e6,1e8)}p();p();p();var Ls="https://www2.deepl.com/jsonrpc",Ps="auto",$d=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];p();function A6(e=$d){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function Ms(e){return A6()[e.toLowerCase()]}var D6={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function L6(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function P6(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function M6(e,t,n,a,r,u,o){let i=Ds(),s=P6(a,n),c=[];t.forEach(g=>{c.push({text:g,requestAlternatives:3})}),s.id=i,s.params.texts=c,s.params.timestamp=As(t);let l=await ie({retry:2,method:"POST",url:e,body:L6(s),headers:D6}),m={from:l.result.lang,to:n,text:[]};return l.result.texts.forEach(g=>{m.text.push(g.text)}),m}async function Kd(e,t,n,a=Ps,r,u,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:a,to:n}:M6(e,t,Ms(n),Ms(a)??"auto",r,u,o):{text:[],from:a,to:n}}var Gd=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Ja=class e extends be{static langMap=new Map(Gd);static langMapReverse=new Map(Gd.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=Ls;constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.API_URL=Nt(Ls,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:a,from:r}=t,u=await Kd(this.API_URL,n,e.langMap.get(a)||a,e.langMap.get(r)||"auto");return{text:u.text,from:e.langMapReverse.get(u.from),to:e.langMapReverse.get(u.to)}}};p();var Vd=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Fs="https://transmart.qq.com/api/imt",Ea=class e extends be{static langMap=new Map(Vd);static langMapReverse=new Map(Vd.map(([t,n])=>[n,t]));clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,a){super(t,n,a),this.clientKey=e.getClientKey()}static getClientKey(){return btoa("transmart_crx_"+navigator.userAgent).slice(0,100)}async translate(t){let{text:n,to:a}=t,r=await this.detectLanguage(n),u=e.langMap.get(r)||r,o=e.langMap.get(a)||a;if(r===a)return{text:n,from:r,to:a};let i=Qe(),s=t.url;i.INSTALL_FROM==="firefox_store"&&(s=Yd());let l=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:u,orig_url:s},target:{lang:o}}),m=await ie({url:Fs,body:l,method:"POST",retry:2});if(m.header.ret_code!=="succ")throw new Error(m.message||m.header.ret_code);return{text:m.auto_translation,from:r||"auto",to:a}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:a,to:r}=t,u=Qe(),o=t.url;if(u.INSTALL_FROM==="firefox_store"&&(o=Yd()),a.length===1){let f=await this.translate({from:n,text:a[0],to:r,url:o,options:t.options});return{text:[f.text],from:f.from,to:f.to}}let s=await this.detectLanguage(a.join(` +`));if(s===r)return{text:a,from:s,to:r};let c=e.langMap.get(s)||s,l=e.langMap.get(r)||r,m=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:a,lang:c,orig_url:o},target:{lang:l},type:"plain"}),g=await ie({url:Fs,body:m,method:"POST"});if(g.header.ret_code!=="succ")throw new Error(g.message||g.header.ret_code);return{text:g.auto_translation,from:s||"auto",to:r}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return e.detectLanguageRemotelyByTransmart(t)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},a=await ie({url:Fs,method:"POST",body:JSON.stringify(n)});if(a.header.ret_code!=="succ")throw new Error(a.message||a.header.ret_code);let r=a.language,u=e.langMapReverse.get(r);return u||r}};function Yd(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}p();p();function Jd(){return Math.random()>=0}var Qa=class extends be{isSupportList=!0;maxTextLength=1200;maxTextGroupLength=25;async translate(t){let{text:n}=t,a=n.match(/^\s*/)[0].length;return{text:n.slice(0,a)+"\u6A21\u62DF\uFF1A"+n.slice(a,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:a,to:r}=t;if(await Qd(),!Jd())throw new Error("\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:a,to:r,text:[""]}:{from:a,to:r,text:n.map(u=>{let o=u.match(/^\s*/)[0].length;return u.slice(0,o)+"\u6A21\u62DF\uFF1A"+u.slice(o,-6)})}}};p();var Xd=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],_s=new Map(Xd),Zd=new Map(Xd.map(([e,t])=>[t,e])),Bs=class e extends be{static langMap=_s;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,a){if(super(t,n,a),!t||!t.apikey)throw new Error("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:a,to:r}=t,u=await ie({retry:2,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:_s.get(a)||"auto",target_lang:_s.get(r)||r})});if(u.status){let o=u;return o.result&&r=="zh-TW",{text:o.result,from:Zd.get(o.source_lang),to:Zd.get(o.target_lang)}}else throw new Error(u.msg)}},co=Bs;p();var em=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Gr=new Map(em),F6=new Map(em.map(([e,t])=>[t,e])),Rs=class extends be{static langMap=Gr;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl="https://deepl.immersivetranslate.com/v2/translate";immersiveTranslateDeeplTokenUrl="https://api.immersivetranslate.com";immersiveTranslateDeeplProApiUrl=Pn()||Mn()?"https://api2.immersivetranslate.com/deepl/translate":"https://test-api2.immersivetranslate.com/deepl/translate";provider="custom";splitor="";apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,a){if(super(t,n,a),t=t||{},this.splitor=t.qualityDelimiterBeta||"",t.provider==="pro")if(this.provider="pro",a.userToken){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=a.userToken,this.apiKeys=this.authKey.split(",").map(r=>r.trim())}else throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey.split(",").map(r=>r.trim()),!this.authKey)throw new Error("authKey are required");if(!this.authKey)throw new Error("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=Nt(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=Nt(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=Nt(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=Nt(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=Nt(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getDefaultRateLimit(){if(this.provider==="pro"){if(this.serviceConfig&&this.serviceConfig.immersiveTranslateProLimit){let t=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(t)&&(t=15),{limit:t,interval:1050}}return{limit:15,interval:1050}}else return{limit:3,interval:1050}}async translateList(t){let{from:n,to:a,text:r}=t,u={source_lang:Gr.get(n)||"",target_lang:Gr.get(a)||a},o=this.getRandomKey(),i=new URLSearchParams(u);this.splitor?i.append("text",r.join(this.splitor)):r.forEach(d=>{i.append("text",d)});let s=i.toString(),c={text:this.splitor?[r.join(this.splitor)]:r,source_lang:Gr.get(n)||"auto",target_lang:Gr.get(a)||a},l=this.freeApiUrl;o.endsWith(":im")?l=this.immersiveTranslateApiUrl:o.endsWith(":fx")||(l=this.proApiUrl);let m;this.provider==="pro"?m=await ie({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:o,"Content-Type":"application/json"}}):o.startsWith("immersive_")?m=await ie({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:o,"Content-Type":"application/json"}}):m=await ie({retry:2,url:l,method:"POST",body:s,headers:{Authorization:"DeepL-Auth-Key "+o,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}});let{translations:g}=m,f=[];if(this.splitor?f=g[0]?.text.split(this.splitor).map(d=>d):f=g.map(d=>d.text),a==="zh-TW"){let d=this.serviceConfig||{};d&&d.googleApiUrl&&(d.apiUrl=d.googleApiUrl);let T=await new xa(this.serviceConfig,this.generalConfig,this.translationOptions).translate({from:"zh-CN",to:"zh-TW",text:g.map(h=>h.text).join(` `),url:"",options:{}});T&&T.text&&(f=T.text.split(` -`))}return{text:f,from:g[0]&&F6.get(g[0].detected_source_language)||n,to:a}}},em=Rs;p();var _6=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],Is=new Map(_6),Os=class extends be{static langMap=Is;APIKEY="";isSupportList=!1;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:a,to:r}=t,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:2,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:n,from:Is.get(a)||a,to:Is.get(r)||r,apikey:this.APIKEY})},i=await ie(o);if(i.tgt_text){let s=i.tgt_text;return s.endsWith(` -`)&&(s=s.slice(0,-1)),{text:s,from:a,to:r}}else throw new Error(JSON.stringify(i))}},tm=Os;p();var B6=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],Ns=new Map(B6),js=class extends be{static langMap=Ns;APIKEY="";region="eastasia";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region)}async translateList(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:[]};let u={"api-version":"3.0",to:Ns.get(r)||r};a!=="auto"&&(u.from=Ns.get(a)||a);let o=new URLSearchParams(u),i=JSON.stringify(n.map(l=>({text:l}))),s={url:"https://api.cognitive.microsofttranslator.com/translate?"+o.toString(),retry:2,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:i},c=await ie(s);if(c.length===0)throw new Error("server response invalid");return{from:a,to:r,text:c.map(l=>l.translations.map(g=>g.text).join(" "))}}},nm=js;p();var R6=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],Vr=new Map(R6),zs=class extends be{isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:3,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t,u;if(n.length===0)return{from:a,to:r,text:[]};let o=` +`))}return{text:f,from:g[0]&&F6.get(g[0].detected_source_language)||n,to:a}}},tm=Rs;p();var _6=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],Is=new Map(_6),Os=class extends be{static langMap=Is;APIKEY="";isSupportList=!1;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:a,to:r}=t,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:2,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:n,from:Is.get(a)||a,to:Is.get(r)||r,apikey:this.APIKEY})},i=await ie(o);if(i.tgt_text){let s=i.tgt_text;return s.endsWith(` +`)&&(s=s.slice(0,-1)),{text:s,from:a,to:r}}else throw new Error(JSON.stringify(i))}},nm=Os;p();var B6=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],Ns=new Map(B6),js=class extends be{static langMap=Ns;APIKEY="";region="eastasia";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region)}async translateList(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:[]};let u={"api-version":"3.0",to:Ns.get(r)||r};a!=="auto"&&(u.from=Ns.get(a)||a);let o=new URLSearchParams(u),i=JSON.stringify(n.map(l=>({text:l}))),s={url:"https://api.cognitive.microsofttranslator.com/translate?"+o.toString(),retry:2,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:i},c=await ie(s);if(c.length===0)throw new Error("server response invalid");return{from:a,to:r,text:c.map(l=>l.translations.map(g=>g.text).join(" "))}}},am=js;p();var R6=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],Vr=new Map(R6),zs=class extends be{isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:3,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t,u;if(n.length===0)return{from:a,to:r,text:[]};let o=`
-`,i=n.join(o),s={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:2,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:""};a==="auto"||!Vr.get(a)?(u=(await ie({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:i})).langCode,s.body=JSON.stringify({text:i,source:u||Vr.get(a)||a,target:Vr.get(r)||r})):s.body=JSON.stringify({text:i,source:Vr.get(a),target:Vr.get(r)||r});let c=await ie(s);if(c.translatedText==="")throw new Error("server response invalid");let l=c.translatedText.split("
").map(m=>m.trim());return{from:a,to:r,text:l}}},am=zs;p();var I6=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],Yr=new Map(I6),Us=class extends be{static langMap=Yr;provider="custom";APIKEY="";apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;systemPrompt="You are a professional translation engine, please translate the text into a colloquial, professional, elegant and fluent content, without the style of machine translation. You must only translate the text content, never interpret it.";prompt=`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +`,i=n.join(o),s={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:2,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:""};a==="auto"||!Vr.get(a)?(u=(await ie({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:i})).langCode,s.body=JSON.stringify({text:i,source:u||Vr.get(a)||a,target:Vr.get(r)||r})):s.body=JSON.stringify({text:i,source:Vr.get(a),target:Vr.get(r)||r});let c=await ie(s);if(c.translatedText==="")throw new Error("server response invalid");let l=c.translatedText.split("
").map(m=>m.trim());return{from:a,to:r,text:l}}},rm=zs;p();var I6=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],mo=new Map(I6),Us=class extends be{static langMap=mo;provider="custom";APIKEY="";apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;systemPrompt="You are a professional translation engine, please translate the text into a colloquial, professional, elegant and fluent content, without the style of machine translation. You must only translate the text content, never interpret it.";prompt=`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`;model="gpt-3.5-turbo-0613";apiUrl="https://api.openai.com/v1/chat/completions";immersiveApiUrl="https://openai-api.immersivetranslate.com/v1/chat/completions";immersiveProApiUrl=Pn()||Mn()?"https://api2.immersivetranslate.com/openai/v1/chat/completions":"https://test-api2.immersivetranslate.com/openai/v1/chat/completions";splitor="
";constructor(t,n,a){if(super(t,n,a),t||(t={}),t.provider&&(this.provider=t.provider),t.APIKEY&&(this.APIKEY=t.APIKEY?.trim(),this.apiKeys=this.APIKEY.split(",").map(r=>r.trim())),this.provider==="pro"){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");if(this.APIKEY=a.userToken||"",this.apiKeys=this.APIKEY.split(",").map(r=>r.trim()),!this.APIKEY)throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002")}t.prompt&&(this.prompt=t.prompt),t.model&&(this.model=t.model),t&&t.apiUrl&&(this.apiUrl=Ot(this.apiUrl,t.apiUrl)),t&&t.immersiveApiUrl&&(this.immersiveApiUrl=Ot(this.immersiveApiUrl,t.immersiveApiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=Ot(this.immersiveProApiUrl,t.immersiveProApiUrl)),t&&t.systemPrompt&&(this.systemPrompt=t.systemPrompt)}getDefaultRateLimit(){return{limit:10,interval:1300}}translate(t){return this.model.includes("003")?(this.maxTextGroupLength=1,this.translate3(t)):this.translate3_5(t)}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate3_5(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let u=Yr.get(a)||a,o=Yr.get(r)||r,i=this.prompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u),s=[];if(this.systemPrompt){let g=this.systemPrompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u);s.push({role:"system",content:g})}this.prompt&&s.push({role:"user",content:i}),this.prompt.indexOf("{{text}}")===-1&&s.push({role:"user",content:n});let c={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:this.model,temperature:0,messages:s})},l=this.getRandomKey();this.provider==="pro"?(c.url=this.immersiveProApiUrl,c.headers.token=l):l&&(c.headers.Authorization="Bearer "+l,c.headers["api-key"]=l,l.startsWith("immersiveopenai_")&&(c.url=this.immersiveProApiUrl,c.headers.token=l,l.endsWith("x")||(c.headers["Immersive-Corpus-Campagin"]="yes"),delete c.headers.Authorization,delete c.headers["api-key"]));let m=await ie(c);if(m&&m.choices&&m.choices.length>0&&m.choices[0].message&&m.choices[0].message.content){let g=m.choices[0].message.content.trim();return(g.includes("\u62B1\u6B49")&&g.includes("\u7FFB\u8BD1")||g.includes("\u8BF7\u5C06\u6587\u672C\u7FFB\u8BD1\u6210")||g.includes("\u4E0D\u8981\u89E3\u91CA\u4EFB\u4F55"))&&(g=n),!n.includes(".")&&(g.endsWith("\u3002")||g.endsWith("."))&&(g=g.slice(0,-1)),{from:a,to:r,text:g}}else throw new Error("server response invalid: "+JSON.stringify(m))}async translate3(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let u=this.prompt.replace(/{{to}}/g,Yr.get(r)||r).replace(/{{text}}/g,n).replace(/{{from}}/g,Yr.get(a)||a),o={url:"https://api.openai.com/v1/completions",method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.APIKEY},body:JSON.stringify({model:this.model,prompt:u,temperature:0})},i=await ie(o);if(i&&i.choices&&i.choices.length>0&&i.choices[0].text){let s=i.choices[0].text.trim();return{from:a,to:r,text:s}}else throw new Error("server response invalid: "+JSON.stringify(i))}},rm=Us;p();var O6=[["auto","auto"],["zh-CN","zh-Hans"],["zh-TW","zh-Hant"],["en","en"],["yue","\u7CA4\u8BED"],["wyw","\u53E4\u6587"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["de","de"],["es","es"],["it","it"],["ru","ru"],["pt","pt"],["nl","nl"],["pl","pl"],["ar","ar"],["af","af"],["am","am"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["el","el"],["eo","eo"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ku","ku"],["ky","ky"],["la","lo"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["no","no"],["ny","ny"],["pa","pa"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["sr-Cyrl","sr"],["sr-Latn","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],go=new Map(O6),Hs="chatgptWebAccessToken";async function um(){let e=await Or(Hs);if(e)return e;let t=await ie({url:"https://chat.openai.com/api/auth/session",method:"get",responseType:"json"});if(!t.accessToken)throw new Error("UNAUTHORIZED");return await Nr(Hs,t.accessToken,10*60*1e3),t.accessToken}var qs=class e{static instance;constructor(){return e.instance||(e.instance=this),this}#e=Promise.resolve();enqueue(t){return this.#e=this.#e.then(()=>t()),this.#e}},Ws=new qs;Object.freeze(Ws);var Jr=class extends be{accessToken="";customChatGptWebApiUrl="https://chat.openai.com";customChatGptWebApiPath="/backend-api/conversation";maxTextGroupLength=1;maxTextLength=1200;isStream=!1;isSupportList=!1;prompt=`You are a translation engine, you can only translate text and cannot interpret it, and do not explain.Translate the text below to {{to}}: +{{text}}`;model="gpt-3.5-turbo-0613";apiUrl="https://api.openai.com/v1/chat/completions";immersiveApiUrl="https://openai-api.immersivetranslate.com/v1/chat/completions";immersiveProApiUrl=Pn()||Mn()?"https://api2.immersivetranslate.com/openai/v1/chat/completions":"https://test-api2.immersivetranslate.com/openai/v1/chat/completions";splitor="
";constructor(t,n,a){if(super(t,n,a),t||(t={}),t.provider&&(this.provider=t.provider),t.APIKEY&&(this.APIKEY=t.APIKEY?.trim(),this.apiKeys=this.APIKEY.split(",").map(r=>r.trim())),this.provider==="pro"){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");if(this.APIKEY=a.userToken||"",this.apiKeys=this.APIKEY.split(",").map(r=>r.trim()),!this.APIKEY)throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002")}t.prompt&&(this.prompt=t.prompt),t.model&&(this.model=t.model),t&&t.apiUrl&&(this.apiUrl=Nt(this.apiUrl,t.apiUrl)),t&&t.immersiveApiUrl&&(this.immersiveApiUrl=Nt(this.immersiveApiUrl,t.immersiveApiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=Nt(this.immersiveProApiUrl,t.immersiveProApiUrl)),t&&t.systemPrompt&&(this.systemPrompt=t.systemPrompt)}getDefaultRateLimit(){return{limit:10,interval:1300}}translate(t){return this.model.includes("003")||this.model.includes("gpt-3.5-turbo-instruct")?(this.maxTextGroupLength=1,this.translate3(t)):this.translate3_5(t)}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate3_5(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let u=mo.get(a)||a,o=mo.get(r)||r,i=this.prompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u),s=[];if(this.systemPrompt){let g=this.systemPrompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u);s.push({role:"system",content:g})}this.prompt&&s.push({role:"user",content:i}),this.prompt.indexOf("{{text}}")===-1&&s.push({role:"user",content:n});let c={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:this.model,temperature:0,messages:s})},l=this.getRandomKey();this.provider==="pro"?(c.url=this.immersiveProApiUrl,c.headers.token=l):l&&(c.headers.Authorization="Bearer "+l,c.headers["api-key"]=l,l.startsWith("immersiveopenai_")&&(c.url=this.immersiveProApiUrl,c.headers.token=l,l.endsWith("x")||(c.headers["Immersive-Corpus-Campagin"]="yes"),delete c.headers.Authorization,delete c.headers["api-key"]));let m=await ie(c);if(m&&m.choices&&m.choices.length>0&&m.choices[0].message&&m.choices[0].message.content){let g=m.choices[0].message.content.trim();return(g.includes("\u62B1\u6B49")&&g.includes("\u7FFB\u8BD1")||g.includes("\u8BF7\u5C06\u6587\u672C\u7FFB\u8BD1\u6210")||g.includes("\u4E0D\u8981\u89E3\u91CA\u4EFB\u4F55"))&&(g=n),!n.includes(".")&&(g.endsWith("\u3002")||g.endsWith("."))&&(g=g.slice(0,-1)),{from:a,to:r,text:g}}else throw new Error("server response invalid: "+JSON.stringify(m))}async translate3(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let u=`Translate to ${mo.get(r)||r}: -{{text}}`;constructor(t,n,a){super(t,n,a)}throttleDebounce(t,n,a){let r=0,u;return(...o)=>{let i=Date.now(),s=this,c=()=>{r=i,t.apply(s,o)};i-r>=n?(clearTimeout(u),c()):(clearTimeout(u),u=setTimeout(()=>{c()},a))}}async deleteConversation(t){if(t){let n=await ie({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}/${t}`,method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({is_visible:!1})});return U.debug("delete conversation res:",n),n}}async translate(t){return await Ws.enqueue(async()=>{let{text:n,from:a,to:r}=t;if(n.length===0)return Promise.resolve({from:a,to:r,text:""});let u=go.get(a)||a,o=go.get(r)||r;if(this.accessToken=await um(),!this.accessToken||this.accessToken==="")throw new Error("token error");let i="text-davinci-002-render-sha-mobile";if(!i)throw new Error("No available model");let s=this.prompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u);try{let c=await ie({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"stream",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:Wt(),role:"user",content:{content_type:"text",parts:[s]}}],model:i,parent_message_id:Wt()})});return U.debug("get chatgpt res:",c),await this.deleteConversation(c?.conversation_id),Promise.resolve({from:a,to:r,text:c?.message?.content?.parts?.[0]})}catch(c){throw U.debug("post chatgpt error:",c),await jr(Hs),c}})}async translateStream(t,n){let{text:a,from:r,to:u}=t;if(a.length===0){n(null,{from:r,to:u,text:""});return}let o=this.throttleDebounce(function(i){let{from:s,to:c,text:l}=i;n(null,{from:s,to:c,text:l})},300,200);await Ws.enqueue(async()=>{let i="chatgpt"+Wt(),s=se.runtime.connect({name:i}),c,l;s.onMessage.addListener(b=>{if(!(!b||b==="")){if(b==="[DONE]"){s.disconnect(),this.deleteConversation(c);return}try{l=JSON.parse(b)}catch(T){U.debug("chatgpt json error",T,b);return}c=l?.conversation_id,l?.message?.author?.role==="assistant"&&o({from:r,to:u,text:l?.message?.content?.parts?.[0]})}});let m=go.get(r)||r,g=go.get(u)||u;if(this.accessToken=await um(),!this.accessToken||this.accessToken==="")throw new Error("token error");let f="text-davinci-002-render-sha";if(!f)throw new Error("No available model");let d=this.prompt.replace(/{{to}}/g,g).replace(/{{text}}/g,a).replace(/{{from}}/g,m);ie({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"realStream",extra:{portName:i},headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:Wt(),role:"user",content:{content_type:"text",parts:[d]}}],model:f,parent_message_id:Wt()})}).catch(b=>{U.debug("chatgpt error",b),s.disconnect(),this.deleteConversation(c),n(b,{from:r,to:u,text:""})})})}};p();var sm=Uf(om()),im=[["af","af"],["am","am"],["ar","ar"],["auto","auto"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fil","fil"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["mww","mww"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["otq","otq"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["tn","tn"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tlh","tlh"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["yua","yua"],["yue","yue"],["bo","bo"],["sa","sa"],["zh-CN","zh"],["zh-TW","zh-tw"],["zu","zu"]],Zr=class e extends be{static langMap=new Map(im);static langMapReverse=new Map(im.map(([t,n])=>[n,t]));static SHA1=new sm.default.SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,a){if(super(t,n,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new Error("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:a,to:r}=t,u={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:n,TargetLanguage:e.langMap.get(r)||r},o=this.scene=="general"?"TranslateGeneral":"Translate",i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:u,service:"mt",version:"2018-10-12"});return{text:i.Data.Translated,from:i.Data.DetectedLanguage&&e.langMapReverse.get(i.Data.DetectedLanguage)||a||"auto",to:e.langMapReverse.get(r)||r}}async translateList(t){let{text:n,from:a,to:r}=t,u=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:JSON.stringify(n.reduce((c,l,m)=>(c[m]=l,c),{})),TargetLanguage:e.langMap.get(r)||r,ApiType:u},i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),s=i.TranslatedList.length&&i.TranslatedList[0].detectedLanguage;return{text:i.TranslatedList.sort((c,l)=>parseInt(c.index)-parseInt(l.index)).map(c=>c.translated),from:s&&e.langMapReverse.get(s)||a||"auto",to:e.langMapReverse.get(r)||r}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:u,version:o}){let i=new Date().toISOString(),s=Math.random().toString(36).slice(2),c={Action:a,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:s,Timestamp:i,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},m=(b=>{let h=Object.keys(b).sort().map(C=>`${this.encode(C)}=${this.encode(b[C])}`).join("&");return`POST&%2F&${this.encode(h)}`})(Object.assign({},c,r)),g=e.SHA1.b64_hmac(`${n}&`,m),f=new URLSearchParams(Object.assign({},c,{Signature:g})).toString(),d=await ie({retry:1,url:`https://${u}.aliyuncs.com?${f}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(r).toString()});if(d instanceof Error)throw d;if(d.Code!=="200")throw new Error(d.Message);return d}};p();p();var N6=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],Xe={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},$s=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},Ks=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let a=$s(t);if(a)return Array.isArray(n)?`${a}=${n.map($s).sort().join(`&${a}=`)}`:`${a}=${$s(n)}`}).filter(t=>t).join("&"),Za=class{request;serviceName;bodySha256;constructor(t,n,a){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,a=a||{},this.bodySha256=a.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(a=>{let r=t[a];return typeof r<"u"&&r!==null}).sort().map(a=>{n[a]=t[a]}),n}async addAuthorization(t,n){let a=this.getDateTime(n);await this.addHeaders(t,a),this.request.headers.Authorization=await this.authorization(t,a)}async authorization(t,n){let a=[],r=this.credentialString(n);return a.push(`${Xe.algorithm} Credential=${t.accessKeyId}/${r}`),a.push(`SignedHeaders=${this.signedHeaders()}`),a.push(`Signature=${await this.signature(t,n)}`),a.join(", ")}async getSignUrl(t,n){let a=this.getDateTime(n),r={...this.request.params},u=this.request.params,o=this.request.headers;t.sessionToken&&(r[Xe.tokenHeader]=t.sessionToken),r[Xe.dateHeader]=a,r[Xe.notSignBody]="",r[Xe.credential]=`${t.accessKeyId}/${this.credentialString(a)}`,r[Xe.algorithmKey]=Xe.algorithm,r[Xe.signHeadersKey]="",r[Xe.signQueriesKey]=void 0,r[Xe.signatureKey]=void 0,r=this.sortParams(r),this.request.params=r,this.request.headers={};let i=await this.signature(t,a);return this.request.params=u,this.request.headers=o,r[Xe.signQueriesKey]=Object.keys(r).sort().join(";"),r[Xe.signatureKey]=i,Ks(r)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[Xe.dateHeader]=n,t.sessionToken&&(this.request.headers[Xe.tokenHeader]=t.sessionToken),this.request.body){let a=this.request.body;this.request.headers[Xe.contentSha256Header]=await hn(a)}}async signature(t,n){let a=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return lo(await na(await this.stringToSign(n),a))}async stringToSign(t){let n=[];n.push(Xe.algorithm),n.push(t),n.push(this.credentialString(t));let a=await this.canonicalString();return n.push(await this.hexEncodedHash(a)),n.join(` +${n} =>`,o=this.getRandomKey(),i={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.APIKEY}},s={model:this.model,prompt:u,temperature:0};this.provider==="pro"?(i.url=this.immersiveProApiUrl,i.headers.token=o):o&&(i.headers.Authorization="Bearer "+o,i.headers["api-key"]=o,o.startsWith("immersiveopenai_")&&(i.url=this.immersiveProApiUrl,i.headers.token=o,o.endsWith("x")||(i.headers["Immersive-Corpus-Campagin"]="yes"),delete i.headers.Authorization,delete i.headers["api-key"])),i.url=i.url.replace("/chat/","/");let c=2048,l=u.length*2.2;l0&&m.choices[0].text){let g=m.choices[0].text.trim();return{from:a,to:r,text:g}}else throw new Error("server response invalid: "+JSON.stringify(m))}},um=Us;p();var O6=[["auto","auto"],["zh-CN","zh-Hans"],["zh-TW","zh-Hant"],["en","en"],["yue","\u7CA4\u8BED"],["wyw","\u53E4\u6587"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["de","de"],["es","es"],["it","it"],["ru","ru"],["pt","pt"],["nl","nl"],["pl","pl"],["ar","ar"],["af","af"],["am","am"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["el","el"],["eo","eo"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ku","ku"],["ky","ky"],["la","lo"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["no","no"],["ny","ny"],["pa","pa"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["sr-Cyrl","sr"],["sr-Latn","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],go=new Map(O6),Hs="chatgptWebAccessToken";async function om(){let e=await Or(Hs);if(e)return e;let t=await ie({url:"https://chat.openai.com/api/auth/session",method:"get",responseType:"json"});if(!t.accessToken)throw new Error("UNAUTHORIZED");return await Nr(Hs,t.accessToken,10*60*1e3),t.accessToken}var qs=class e{static instance;constructor(){return e.instance||(e.instance=this),this}#e=Promise.resolve();enqueue(t){return this.#e=this.#e.then(()=>t()),this.#e}},Ws=new qs;Object.freeze(Ws);var Yr=class extends be{accessToken="";customChatGptWebApiUrl="https://chat.openai.com";customChatGptWebApiPath="/backend-api/conversation";maxTextGroupLength=1;maxTextLength=1200;isStream=!1;isSupportList=!1;prompt=`You are a translation engine, you can only translate text and cannot interpret it, and do not explain.Translate the text below to {{to}}: + +{{text}}`;constructor(t,n,a){super(t,n,a)}throttleDebounce(t,n,a){let r=0,u;return(...o)=>{let i=Date.now(),s=this,c=()=>{r=i,t.apply(s,o)};i-r>=n?(clearTimeout(u),c()):(clearTimeout(u),u=setTimeout(()=>{c()},a))}}async deleteConversation(t){if(t){let n=await ie({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}/${t}`,method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({is_visible:!1})});return U.debug("delete conversation res:",n),n}}async translate(t){return await Ws.enqueue(async()=>{let{text:n,from:a,to:r}=t;if(n.length===0)return Promise.resolve({from:a,to:r,text:""});let u=go.get(a)||a,o=go.get(r)||r;if(this.accessToken=await om(),!this.accessToken||this.accessToken==="")throw new Error("token error");let i="text-davinci-002-render-sha-mobile";if(!i)throw new Error("No available model");let s=this.prompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u);try{let c=await ie({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"stream",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:$t(),role:"user",content:{content_type:"text",parts:[s]}}],model:i,parent_message_id:$t()})});return U.debug("get chatgpt res:",c),await this.deleteConversation(c?.conversation_id),Promise.resolve({from:a,to:r,text:c?.message?.content?.parts?.[0]})}catch(c){throw U.debug("post chatgpt error:",c),await jr(Hs),c}})}async translateStream(t,n){let{text:a,from:r,to:u}=t;if(a.length===0){n(null,{from:r,to:u,text:""});return}let o=this.throttleDebounce(function(i){let{from:s,to:c,text:l}=i;n(null,{from:s,to:c,text:l})},300,200);await Ws.enqueue(async()=>{let i="chatgpt"+$t(),s=se.runtime.connect({name:i}),c,l;s.onMessage.addListener(b=>{if(!(!b||b==="")){if(b==="[DONE]"){s.disconnect(),this.deleteConversation(c);return}try{l=JSON.parse(b)}catch(T){U.debug("chatgpt json error",T,b);return}c=l?.conversation_id,l?.message?.author?.role==="assistant"&&o({from:r,to:u,text:l?.message?.content?.parts?.[0]})}});let m=go.get(r)||r,g=go.get(u)||u;if(this.accessToken=await om(),!this.accessToken||this.accessToken==="")throw new Error("token error");let f="text-davinci-002-render-sha";if(!f)throw new Error("No available model");let d=this.prompt.replace(/{{to}}/g,g).replace(/{{text}}/g,a).replace(/{{from}}/g,m);ie({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"realStream",extra:{portName:i},headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:$t(),role:"user",content:{content_type:"text",parts:[d]}}],model:f,parent_message_id:$t()})}).catch(b=>{U.debug("chatgpt error",b),s.disconnect(),this.deleteConversation(c),n(b,{from:r,to:u,text:""})})})}};p();var lm=Hf(im()),sm=[["af","af"],["am","am"],["ar","ar"],["auto","auto"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fil","fil"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["mww","mww"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["otq","otq"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["tn","tn"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tlh","tlh"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["yua","yua"],["yue","yue"],["bo","bo"],["sa","sa"],["zh-CN","zh"],["zh-TW","zh-tw"],["zu","zu"]],Qr=class e extends be{static langMap=new Map(sm);static langMapReverse=new Map(sm.map(([t,n])=>[n,t]));static SHA1=new lm.default.SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,a){if(super(t,n,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new Error("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:a,to:r}=t,u={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:n,TargetLanguage:e.langMap.get(r)||r},o=this.scene=="general"?"TranslateGeneral":"Translate",i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:u,service:"mt",version:"2018-10-12"});return{text:i.Data.Translated,from:i.Data.DetectedLanguage&&e.langMapReverse.get(i.Data.DetectedLanguage)||a||"auto",to:e.langMapReverse.get(r)||r}}async translateList(t){let{text:n,from:a,to:r}=t,u=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:JSON.stringify(n.reduce((c,l,m)=>(c[m]=l,c),{})),TargetLanguage:e.langMap.get(r)||r,ApiType:u},i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),s=i.TranslatedList.length&&i.TranslatedList[0].detectedLanguage;return{text:i.TranslatedList.sort((c,l)=>parseInt(c.index)-parseInt(l.index)).map(c=>c.translated),from:s&&e.langMapReverse.get(s)||a||"auto",to:e.langMapReverse.get(r)||r}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:u,version:o}){let i=new Date().toISOString(),s=Math.random().toString(36).slice(2),c={Action:a,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:s,Timestamp:i,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},m=(b=>{let h=Object.keys(b).sort().map(C=>`${this.encode(C)}=${this.encode(b[C])}`).join("&");return`POST&%2F&${this.encode(h)}`})(Object.assign({},c,r)),g=e.SHA1.b64_hmac(`${n}&`,m),f=new URLSearchParams(Object.assign({},c,{Signature:g})).toString(),d=await ie({retry:1,url:`https://${u}.aliyuncs.com?${f}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(r).toString()});if(d instanceof Error)throw d;if(d.Code!=="200")throw new Error(d.Message);return d}};p();p();var N6=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],Xe={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},$s=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},Ks=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let a=$s(t);if(a)return Array.isArray(n)?`${a}=${n.map($s).sort().join(`&${a}=`)}`:`${a}=${$s(n)}`}).filter(t=>t).join("&"),Za=class{request;serviceName;bodySha256;constructor(t,n,a){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,a=a||{},this.bodySha256=a.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(a=>{let r=t[a];return typeof r<"u"&&r!==null}).sort().map(a=>{n[a]=t[a]}),n}async addAuthorization(t,n){let a=this.getDateTime(n);await this.addHeaders(t,a),this.request.headers.Authorization=await this.authorization(t,a)}async authorization(t,n){let a=[],r=this.credentialString(n);return a.push(`${Xe.algorithm} Credential=${t.accessKeyId}/${r}`),a.push(`SignedHeaders=${this.signedHeaders()}`),a.push(`Signature=${await this.signature(t,n)}`),a.join(", ")}async getSignUrl(t,n){let a=this.getDateTime(n),r={...this.request.params},u=this.request.params,o=this.request.headers;t.sessionToken&&(r[Xe.tokenHeader]=t.sessionToken),r[Xe.dateHeader]=a,r[Xe.notSignBody]="",r[Xe.credential]=`${t.accessKeyId}/${this.credentialString(a)}`,r[Xe.algorithmKey]=Xe.algorithm,r[Xe.signHeadersKey]="",r[Xe.signQueriesKey]=void 0,r[Xe.signatureKey]=void 0,r=this.sortParams(r),this.request.params=r,this.request.headers={};let i=await this.signature(t,a);return this.request.params=u,this.request.headers=o,r[Xe.signQueriesKey]=Object.keys(r).sort().join(";"),r[Xe.signatureKey]=i,Ks(r)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[Xe.dateHeader]=n,t.sessionToken&&(this.request.headers[Xe.tokenHeader]=t.sessionToken),this.request.body){let a=this.request.body;this.request.headers[Xe.contentSha256Header]=await hn(a)}}async signature(t,n){let a=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return so(await na(await this.stringToSign(n),a))}async stringToSign(t){let n=[];n.push(Xe.algorithm),n.push(t),n.push(this.credentialString(t));let a=await this.canonicalString();return n.push(await this.hexEncodedHash(a)),n.join(` `)}async canonicalString(){let t=[],n=this.request.pathname||"/";t.push(this.request.method.toUpperCase()),t.push(n);let a=Ks(this.request.params)||"";return t.push(a),t.push(`${this.canonicalHeaders()} `),t.push(this.signedHeaders()),t.push(await this.hexEncodedBodyHash()),t.join(` `)}canonicalHeaders(){let t=[];Object.keys(this.request.headers).forEach(a=>{t.push([a,this.request.headers[a]])}),t.sort((a,r)=>a[0].toLowerCase(){let r=a[0].toLowerCase();if(this.isSignableHeader(r)){let u=a[1];if(typeof u>"u"||u===null||typeof u.toString!="function")throw new Error(`Header ${r} contains invalid value`);n.push(`${r}:${this.canonicalHeaderValues(u.toString())}`)}}),n.join(` -`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await hn(t)}async hexEncodedBodyHash(){return this.request.headers[Xe.contentSha256Header]?this.request.headers[Xe.contentSha256Header]:this.request.body?await this.hexEncodedHash(Ks(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return N6.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,a,r){let u=await na(n,`${Xe.kDatePrefix}${t.secretKey}`),o=await na(a,u),i=await na(r,o);return na(Xe.v4Identifier,i)}createScope(t,n,a){return[t.substr(0,8),n,a,Xe.v4Identifier].join("/")}};var lm=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Gs=new Map(lm),j6=new Map(lm.map(([e,t])=>[t,e])),Vs=class extends be{static langMap=Gs;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,a){if(super(t,n,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new Error("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let a={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},r=new Za(a,"translate");await r.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let u=new URLSearchParams(a.params),o=await ie({retry:2,url:"https://open.volcengineapi.com"+a.pathname+"?"+u.toString(),headers:r.request.headers,method:a.method,body:a.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let i=o.ResponseMetadata.Error;throw new ot(i.Code,i.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let i=o.ResponseMetaData.Error;throw new ot(i.Code,i.Message)}else throw new Error("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:a,to:r}=t,u=Gs.get(a),o={TargetLanguage:Gs.get(r)||r,TextList:n};u?o.SourceLanguage=u:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` -`).slice(0,1e3));let i={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},s=new Za(i,"translate");await s.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let c=new URLSearchParams(i.params),l=await ie({retry:2,url:"https://open.volcengineapi.com"+i.pathname+"?"+c.toString(),headers:s.request.headers,method:i.method,body:i.body});if(l.TranslationList){let m=l.TranslationList.map(f=>f.Translation),g=a;return l.TranslationList.length>0&&l.TranslationList[0].DetectedSourceLanguage&&(g=j6.get(l.TranslationList[0].DetectedSourceLanguage)||a),{text:m,from:g,to:r}}else if(l.ResponseMetadata&&l.ResponseMetadata.Error){let m=l.ResponseMetadata.Error;throw new ot(m.Code,m.Message)}else if(l.ResponseMetaData&&l.ResponseMetaData.Error){let m=l.ResponseMetaData.Error;throw new ot(m.Code,m.Message)}else throw new Error("response: "+JSON.stringify(l))}},cm=Vs;p();var dm=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Ys=new Map(dm),z6=new Map(dm.map(([e,t])=>[t,e])),Xr=class extends be{static langMap=Ys;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:a,to:r}=t,u=Ys.get(a)||"detect",o=Ys.get(r)||r,s=await ie({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:u,target_language:o,text:n})});if(s.base_resp&&s.base_resp.status_code===0){let c=s.translation,l=a;return s.detected_language&&(l=z6.get(s.detected_language)||a),{text:c,from:l,to:r}}else{let c=s.base_resp;throw new ot(c.status_code.toString(),c.status_message)}}};p();var U6=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Js=new Map(U6),eu=class extends be{static langMap=Js;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,a){if(super(t,n,a),!t||!t.url)throw new Error("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(r=>r.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:a,to:r}=t,u=this.getRandomKey(),i=await ie({retry:2,url:u,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({source_lang:Js.get(a)||a,target_lang:Js.get(r)||r,text:n})});if(i.code===200)return{text:i.data,from:a,to:r};throw new Error(i.message||i.message||"API Error")}};p();p();var Qs="https://{s}bing.com",hm=Qs+"/translator",H6=Qs+"/ttranslatev3",q6=Qs+"/tspellcheckv3",fo="bingGlobalConfig",bm=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],mm=new Map(bm),gm=new Map(bm.map(([e,t])=>[t,e])),pm=1e3,bn,Xa;function Zs(e,t){return e.replace("{s}",t?t+".":"")}async function W6(){if(!bn){let n=await se.storage.local.get(fo);return n&&(bn=n[fo]),!0}let{tokenTs:e,tokenExpiryInterval:t}=bn;return Date.now()-e>t}async function fm(){let e,t,n,a,r,u,o,i,s,c;try{let l=Zs(hm,e),m=await ie({retry:2,url:l,responseType:"raw"}),{body:g,headers:f,url:d}=m;e=d.match(/^https?:\/\/(\w+)\.bing\.com/)[1],c=f["set-cookie"],t=g.match(/IG:"([^"]+)"/)[1],n=g.match(/data-iid="([^"]+)"/)[1],[r,a,u,o,i,s]=JSON.parse(g.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(l){throw l}return bn={subdomain:e,IG:t,IID:n,key:r,token:a,tokenTs:r,tokenExpiryInterval:u,isVertical:o,frontDoorBotClassification:i,isSignedInOrCorporateUser:s,cookie:c,count:0},await se.storage.local.set({[fo]:bn}),bn}function $6(e){let{IG:t,IID:n,subdomain:a,isVertical:r}=bn;return Zs(e?q6:H6,a)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+bn.count++:"")}function K6(e,t,n,a){let{token:r,key:u}=bn,o={fromLang:n,text:t,token:r,key:u};return!e&&a&&(o.to=a),o}async function ym(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>pm)throw new Error(`The supported maximum length of text is ${pm}. Please shorten the text.`);Xa||(Xa=fm()),await Xa,await W6()&&(Xa=fm(),await Xa),t=t||"auto",n=n||"zh-CN",t=mm.get(t)||t,n=mm.get(n)||n;let r=$6(!1),u=K6(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:Zs(hm,bn.subdomain),"content-type":"application/x-www-form-urlencoded"},i=new URLSearchParams(u),s=r,c=i.toString(),l=await ie({retry:2,url:s,headers:o,method:"POST",body:c});if(l.ShowCaptcha||l.StatusCode===401||l.statusCode){if(bn=null,Xa=null,await se.storage.local.remove(fo),l.ShowCaptcha)throw new Error(` +`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await hn(t)}async hexEncodedBodyHash(){return this.request.headers[Xe.contentSha256Header]?this.request.headers[Xe.contentSha256Header]:this.request.body?await this.hexEncodedHash(Ks(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return N6.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,a,r){let u=await na(n,`${Xe.kDatePrefix}${t.secretKey}`),o=await na(a,u),i=await na(r,o);return na(Xe.v4Identifier,i)}createScope(t,n,a){return[t.substr(0,8),n,a,Xe.v4Identifier].join("/")}};var cm=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Gs=new Map(cm),j6=new Map(cm.map(([e,t])=>[t,e])),Vs=class extends be{static langMap=Gs;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,a){if(super(t,n,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new Error("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let a={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},r=new Za(a,"translate");await r.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let u=new URLSearchParams(a.params),o=await ie({retry:2,url:"https://open.volcengineapi.com"+a.pathname+"?"+u.toString(),headers:r.request.headers,method:a.method,body:a.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let i=o.ResponseMetadata.Error;throw new ot(i.Code,i.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let i=o.ResponseMetaData.Error;throw new ot(i.Code,i.Message)}else throw new Error("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:a,to:r}=t,u=Gs.get(a),o={TargetLanguage:Gs.get(r)||r,TextList:n};u?o.SourceLanguage=u:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` +`).slice(0,1e3));let i={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},s=new Za(i,"translate");await s.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let c=new URLSearchParams(i.params),l=await ie({retry:2,url:"https://open.volcengineapi.com"+i.pathname+"?"+c.toString(),headers:s.request.headers,method:i.method,body:i.body});if(l.TranslationList){let m=l.TranslationList.map(f=>f.Translation),g=a;return l.TranslationList.length>0&&l.TranslationList[0].DetectedSourceLanguage&&(g=j6.get(l.TranslationList[0].DetectedSourceLanguage)||a),{text:m,from:g,to:r}}else if(l.ResponseMetadata&&l.ResponseMetadata.Error){let m=l.ResponseMetadata.Error;throw new ot(m.Code,m.Message)}else if(l.ResponseMetaData&&l.ResponseMetaData.Error){let m=l.ResponseMetaData.Error;throw new ot(m.Code,m.Message)}else throw new Error("response: "+JSON.stringify(l))}},dm=Vs;p();var mm=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Ys=new Map(mm),z6=new Map(mm.map(([e,t])=>[t,e])),Zr=class extends be{static langMap=Ys;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:a,to:r}=t,u=Ys.get(a)||"detect",o=Ys.get(r)||r,s=await ie({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:u,target_language:o,text:n})});if(s.base_resp&&s.base_resp.status_code===0){let c=s.translation,l=a;return s.detected_language&&(l=z6.get(s.detected_language)||a),{text:c,from:l,to:r}}else{let c=s.base_resp;throw new ot(c.status_code.toString(),c.status_message)}}};p();var U6=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Js=new Map(U6),Xr=class extends be{static langMap=Js;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,a){if(super(t,n,a),!t||!t.url)throw new Error("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(r=>r.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:a,to:r}=t,u=this.getRandomKey(),i=await ie({retry:2,url:u,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({source_lang:Js.get(a)||a,target_lang:Js.get(r)||r,text:n})});if(i.code===200)return{text:i.data,from:a,to:r};throw new Error(i.message||i.message||"API Error")}};p();p();var Qs="https://{s}bing.com",bm=Qs+"/translator",H6=Qs+"/ttranslatev3",q6=Qs+"/tspellcheckv3",fo="bingGlobalConfig",ym=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],gm=new Map(ym),pm=new Map(ym.map(([e,t])=>[t,e])),fm=1e3,bn,Xa;function Zs(e,t){return e.replace("{s}",t?t+".":"")}async function W6(){if(!bn){let n=await se.storage.local.get(fo);return n&&(bn=n[fo]),!0}let{tokenTs:e,tokenExpiryInterval:t}=bn;return Date.now()-e>t}async function hm(){let e,t,n,a,r,u,o,i,s,c;try{let l=Zs(bm,e),m=await ie({retry:2,url:l,responseType:"raw"}),{body:g,headers:f,url:d}=m;e=d.match(/^https?:\/\/(\w+)\.bing\.com/)[1],c=f["set-cookie"],t=g.match(/IG:"([^"]+)"/)[1],n=g.match(/data-iid="([^"]+)"/)[1],[r,a,u,o,i,s]=JSON.parse(g.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(l){throw l}return bn={subdomain:e,IG:t,IID:n,key:r,token:a,tokenTs:r,tokenExpiryInterval:u,isVertical:o,frontDoorBotClassification:i,isSignedInOrCorporateUser:s,cookie:c,count:0},await se.storage.local.set({[fo]:bn}),bn}function $6(e){let{IG:t,IID:n,subdomain:a,isVertical:r}=bn;return Zs(e?q6:H6,a)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+bn.count++:"")}function K6(e,t,n,a){let{token:r,key:u}=bn,o={fromLang:n,text:t,token:r,key:u};return!e&&a&&(o.to=a),o}async function xm(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>fm)throw new Error(`The supported maximum length of text is ${fm}. Please shorten the text.`);Xa||(Xa=hm()),await Xa,await W6()&&(Xa=hm(),await Xa),t=t||"auto",n=n||"zh-CN",t=gm.get(t)||t,n=gm.get(n)||n;let r=$6(!1),u=K6(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:Zs(bm,bn.subdomain),"content-type":"application/x-www-form-urlencoded"},i=new URLSearchParams(u),s=r,c=i.toString(),l=await ie({retry:2,url:s,headers:o,method:"POST",body:c});if(l.ShowCaptcha||l.StatusCode===401||l.statusCode){if(bn=null,Xa=null,await se.storage.local.remove(fo),l.ShowCaptcha)throw new Error(` Sorry that bing translator seems to be asking for the captcha, Please take care not to request too frequently. The response code is ${l.StatusCode}. `);if(l.StatusCode===401)throw new Error(` Max count of translation exceeded. Please try it again later. The response code is 401. - `);if(l.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(l)}.`)}let m=l[0].translations[0],g=l[0].detectedLanguage;return{text:m.text,from:gm.get(g.language),to:gm.get(m.to)}}p();var ho=new Map;async function Xs(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=Zn(e.body)),ho.has(t))return ho.get(t);let n=ie(e);ho.set(t,n);try{return await n}catch(a){throw a}finally{setTimeout(()=>{ho.delete(t)},3e4)}}async function xm(e){return Xs(e)}async function Em(e){if(nt()){let n=ao();if(n)try{return await n.ask("throttleRequest",e)}catch(a){throw U.error("can not comunicate with root frame, use strict limiter",a),a}else return Xs(e)}else return Xs(e)}p();function Tm(e){let t=e.split(".");if(t.length<=1)throw new Error("invlaid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let a=n.replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(globalThis.atob(a).split("").map(function(i){return"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)}).join("")),u=JSON.parse(r),o=new Date(u.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}var Ea=null,G6=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],e0=new Map(G6),tu=class extends be{static langMap=e0;isSupportList=!0;maxTextLength=1800;static async clearState(){Ea=null,await jr(Cu)}async translate(t){let{text:n,from:a,to:r}=t;return n?await ym(n,a,r):{...t}}async init(){if(!Ea){Ea={};let t=await Or(Cu);t&&(Ea=t)}await Cm(Ea)}async translateList(t){let{from:n,to:a,text:r}=t,u=e0.get(n)||"auto",o=e0.get(a)||a;u==="auto"&&(u="");let i=await Cm(Ea),s=[];for(let g of r)s.push({Text:g});let c=JSON.stringify(s),l=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${u}&to=${o}&api-version=3.0&includeSentenceLength=true`,m=await ie({url:l,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+i.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin"},body:c,method:"POST"});if(m&&m.length>0&&m[0].translations&&m[0].translations.length>0)return{text:m.map(g=>g.translations[0]?.text||""),from:n,to:a};throw new Error("Microsoft translate error "+JSON.stringify(m))}};async function Cm(e){if(e&&e.accessToken&&e.accessTokenExpiresAt){let t=Date.now(),a=new Date(e.accessTokenExpiresAt).getTime();if(a-t>30*1e3)return e;if(a-t>3e3)return wm().catch(r=>{U.error(r)}),e}return wm()}async function wm(){let e=await Em({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET"}),t=Tm(e),n=t.accessTokenExpiresAt,r=new Date(n).getTime()-Date.now();return Ea=t,await Nr(Cu,t,r-1e3),{accessToken:e,accessTokenExpiresAt:t.accessTokenExpiresAt}}p();var vm=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],t0=new Map(vm),V6=new Map(vm.map(([e,t])=>[t,e])),n0=class extends be{static langMap=t0;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";appid="";key="";isSupportList=!1;maxTextGroupLength=20;constructor(t,n,a){if(super(t,n,a),!t||!t.appid||!t.key)throw new Error("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim()}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:a}=this,{appid:r,key:u}=this,{text:o,from:i,to:s}=t,c=new URLSearchParams({from:t0.get(i)||"auto",to:t0.get(s)||s,q:o,salt:n,appid:r,sign:Zn(r+o+n+u)}),l=new URL(a);l.search=c.toString();let m=await ie({url:l.toString()});if(m.error_code)throw new ot("API_SERVER_ERROR",m.error_msg);let{trans_result:g,from:f}=m,d=g.map(({dst:T})=>T);return{from:V6.get(f)||f,to:s,text:d.join(` -`)}}},km=n0;p();p();var Ta=class extends be{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,a){super(t,n,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let u=await this.checkLang(a,n);if(!u)return{text:n,from:a,to:r};a=u;let o=this.handleRequest(n,a,r),i=await Ju(o);return{text:this.handleResponseText(i),from:a,to:r}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let u=await this.checkLang(a,n.join(" "));if(!u)return{text:n,from:a,to:r};a=u;let o=this.handleRequest(n,a,r),i=await Ju(o);return{text:this.handleResponseText(i),from:a,to:r}}handleBaseApiServiceConfig(t){let n=t.request.url,a=t.request.headers||{};return a["content-type"]||(a["content-type"]="application/json"),{url:n,retry:t.request.retry||2,method:t.request.method||"POST",headers:a,body:JSON.stringify(t.request.body)}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,a){let r={...this.requestBaseConfig},u=r?.body||"",o=this.apiServiceConfig.keywords||{};r.body=s(u);let i=r.headers||{};return Object.keys(i).forEach(c=>{i[c]=s(i[c])}),r.headers=i,r.url=s(r.url||""),r;function s(c){return c.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",a).replaceAll(/{([a-z:_]+)}/gi,(m,g)=>{let[f,d]=g.split(":"),b=o[f];return d==="random"?Y6(b.split(",")):b})}}handleResponseText(t){let n=this.apiServiceConfig.response,a=t,r=n.text.split(".");for(let u of r){if(Array.isArray(a))return a=a.map(o=>o[u]),a;a=a[u]}return a}detectLanguageRemotely(t){return xa.detectLanguageRemotelyByTransmart(t)}};function Y6(e){let t=Math.floor(Math.random()*e.length);return e[t]}var a0=class extends Ta{constructor(t,n,a){if(!t?.token)throw new Error("token are required");super({...t,isSupportList:!0,langs:[["zh-CN","zh"],["en","en"],["ja","ja"]],keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,a)}},Sm=a0;p();var J6=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],bo=new Map(J6),r0=class extends be{static langMap=bo;token="ssdj273ksdiwi923bsd9";constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t;if(!bo.get(r))throw new Error(`Unsupported language: ${r}`);if(a==="auto")throw new Error("Unsupported language: auto");let o=n;return{text:(await ie({retry:2,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${bo.get(a)||"auto"}2${bo.get(r)}`})})).target,from:a,to:r}}},Am=r0;p();var Dm=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],u0=new Map(Dm),Q6=new Map(Dm.map(([e,t])=>[t,e]));function Z6(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var o0=class extends be{static langMap=u0;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,a){if(super(t,n,a),!t||!t.appId||!t.appSecret)throw new Error("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,u=X6(32),o=Math.round(new Date().getTime()/1e3),i=this.appId+Z6(n)+u+o+this.appSecret,s=await hn(i),c={q:n,appKey:this.appId,salt:u.toString(),from:u0.get(a)||"auto",to:u0.get(r)||r,sign:s,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(c.domain=this.domain),this.vocabId&&(c.vocabId=this.vocabId);let l=new URLSearchParams(c),g=await ie({url:"https://openapi.youdao.com/api",method:"POST",body:l.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"}});if(!g.translation)throw new Error(JSON.stringify(g));let f=g.l,[d,b]=f.split("2");return{text:g.translation.join(` -`),from:Q6.get(d),to:r}}};function X6(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r[t,e]));var s0=class extends be{static langMap=i0;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,u={q:n,from:i0.get(a)||"auto",to:i0.get(r)||r},o=new URLSearchParams(u),i=await ie({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"}});if(i&&i.translation)return{text:i.translation.join(` -`),from:a,to:r};throw new Error("Youdao translation failed: "+JSON.stringify(i))}},Mm=s0;p();var nu=class extends Ta{constructor(t,n,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(r=>[r,r]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||ga,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,a)}};var e9={mock:Qa,mock2:Qa,custom:nu,google:ya,transmart:xa,deepl:em,volc:cm,volcAlpha:Xr,bing:tu,tencent:$r,tenAlpha:Kr,baidu:km,caiyun:Sm,cai:Am,openl:mo,youdao:Lm,you:Mm,d:Ja,dpro:Ja,deeplx:eu,niu:tm,azure:nm,openai:rm,chatgpt:Jr,papago:am,aliyun:Zr},aa={};Object.keys(Fn).forEach(e=>{aa[e]={...Fn[e],class:e9[e]}});function Fm(e,t){let n=Xt;if(aa[e]&&aa[e].class&&aa[e].class.langMap&&aa[e].class.langMap.size>0){let a=aa[e].class.langMap,r=n.filter(u=>a.get(u));return r.includes(t)||r.unshift("placeholder"),r}else return Xt}async function Ca(e,t){if(!e.text)return e;let n=await In({sentences:[e]},t);if(n.sentences.length>0)return{...e,...n.sentences[0]};throw new ot("translateFailed","translate failed")}async function _m(e,t){for(let n of e)try{return await Ca({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n}),n}catch{continue}return null}async function l0(e){let{config:t,translationService:n}=e,a=t.translationGeneralConfig,r=t.translationServices,u=n,o=r[u]||{},i=Qt(e.user),s=new aa[u].class(o,a,{translationService:u,userToken:e.user?.token,isPro:i}),c=s.getDefaultRateLimit();c&&(o&&!o.limit&&(o.limit=c.limit),o&&!o.interval&&(o.interval=c.interval)),u==="deepl"&&o&&o.provider==="pro"&&(o.limitForImmersiveDeepl?o.limit=o.limitForImmersiveDeepl:c&&(o.limit=c.limit)),await Pd(u,o),await s.init()}async function In(e,t,n){if(!e.sentences.length)return{...e};let{config:a,translationService:r,state:u}=t,o=a.translationGeneralConfig,i=a.translationServices,s=r,c=i[s]||{};s==="openai"&&(e.sentences=e.sentences.map(C=>({...C,from:"auto"})));let l=[],m={sentences:Array(e.sentences.length)},g=e.sentences.length,f=-1;if(u.cache)for(let C of e.sentences){f++;let v=s;s==="openl"&&(v=s+"-"+c.codename||mo.DEFAULT_CODENAME);let O=null;try{O=await Fu(Bm({originalText:C.text,from:C.from,to:C.to,service:v}),200)}catch(B){U.warn("query cache DB error, but it's ok",B)}if(O){let B={...C,text:O.translatedText};m.sentences[f]=B,n&&n(null,B,C)}else l.push(C)}else l.push(...e.sentences);let d=l.length;if(g-d>0&&U.debug(`use ${g-d} sentences from cache`),!l.length)return m;let b,T=Qt(t.user);try{b=new aa[s].class(c,o,{translationService:s,userToken:t.user?.token,isPro:T}),await b.init()}catch(C){if(n)for(let v of l)n(C,null,v);throw C}let h=await b.multipleTranslate({sentences:l},c,(C,v,O)=>{if(n&&n(C,v,O),!C&&v&&!s.startsWith("mock")&&u.cache){let B=s;s==="openl"&&(B=s+"-"+c.codename||mo.DEFAULT_CODENAME),u.cache&&Fu(Rm({translatedText:v.text,from:O.from,to:O.to,detectedFrom:v.from,key:Zn(O.text),service:B}),3e3).catch(x=>{U.warn("set cache DB error",x)})}});for(let C of h.sentences){let v=m.sentences.findIndex(O=>!O);if(v===-1)throw new ot("translateFailed","can not match the result");m.sentences[v]=C}return m}p();var yo=!1,t9=he();function Im(e,t){let n=[];for(let a of t){let r=e.querySelectorAll(a);for(let u of r)n.push(u)}return n}function n9(e,t){let n=function(u){return u.nodeType===Node.ELEMENT_NODE||u.nodeType===Node.TEXT_NODE?u.nodeType===Node.ELEMENT_NODE&&Om(u,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),r=!0;for(;a.nextNode();){let u=a.currentNode;if(u.nodeType===Node.ELEMENT_NODE){if(ra(u,Au)){if(r===!0)return!0;continue}if(au(u.nodeName,t.inlineTags))return!0;if(!c0(u,t))return!1}}return!0}function d0(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(au(e.nodeName,n)||c0(e,t)){if(ra(e,Dc)||au(e.nodeName,["BR"]))return!1;if(ra(e,Au))return!0;if(c0(e,t)){let a=globalThis.getComputedStyle(e);if(a.display==="block"||a.display==="flex")return!1}return n9(e,t)}else return ra(e,Au);return!1}function Om(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&ra(e,Ac,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&ra(e,Cc))return!1;let{stayOriginalTags:a,excludeTags:r}=t,u=[];return n&&r&&r.length>0?u=r||[]:u=r.filter(o=>!a.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||au(e.nodeName,u))}function xo(e,t,n){let a=e.trim();return a.length>=t||a.split(" ").filter(o=>o.trim()!=="").length>=n||!jm(a)&&a.length>=n}function Nm(e,t,n){let a=e.trim();if(a.length<=t)return!0;if(jm(a)){if(a.split(" ").length<=n)return!0}else if(a.length<=n)return!0;return!1}function jm(e){for(let t=0;t127)return!1;return!0}function zm(e){if(e&&e.includes("://"))try{return new URL(e),!0}catch{return!1}else return!1}function Um(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function Hm(e){return e?/^[-+]?[0-9]*\.?[0-9]+%?$/.test(e):!1}function qm(e){return!!(e&&e.startsWith("#")&&e.indexOf(" ")===-1)}function Wm(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function ra(e,t,n=!1){return m0(e,t,"1",n)}function m0(e,t,n,a=!1){return yo&&!a?e[It]?!!(e[It]&&e[It][t]===n):!1:e.dataset[t]===n}function er(e){return(e.innerText||e.textContent||"").trim()}function g0(e){let t=e.querySelectorAll("iframe"),n="";for(let a=0;a2e3))break}return n}function Eo(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function at(e,t,n,a=!1,r=!1){e.isContentEditable&&!r||(yo&&!a?(e.dataset[Sr]||(e.dataset[Sr]="1"),e[It]||(e[It]={}),e[It][t]||(e[It][t]=n)):(e.dataset[Sr]||(e.dataset[Sr]="1"),e.dataset[t]!==n&&(e.dataset[t]=n)))}function To(e,t,n=!1){if(yo&&!n){if(!e[It]||!e[It][t])return;delete e[It][t]}else delete e.dataset[t]}function tr(e,t,n=!1){return yo&&!n?!e[It]||!e[It][t]?void 0:e[It][t]:e.dataset[t]}function c0(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!au(e.nodeName,n)}function nr(e){let{config:t}=e,n=ga;return t.translationServices[e.translationService]&&t.translationServices[e.translationService].placeholderDelimiters&&(n=t.translationServices[e.translationService].placeholderDelimiters),n}function ht(){if(!globalThis||!globalThis.location)return"https://example.com";if(!nt())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let a="";try{a=globalThis.parent.location.href}catch{}return a||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function wa(e,t,n){if(e instanceof ShadowRoot){try{e.appendChild(document.createElement("style")).textContent=t}catch(a){U.warn("injectCSS failed, rootDocument"+a?.message,e)}return}if(e&&e.head&&e.head.appendChild){let a=e.createElement("style");if(n){let r=e.querySelector(`style[data-id="${n}"]`);r&&r.remove(),a.dataset.id=n}a.textContent=t,e.head.appendChild(a)}else if(e){let a=document.createElement("head"),r=document.createElement("style");r.textContent=t,a.appendChild(r),e.appendChild(a)}else U.warn("injectCSS failed, rootDocument does not have head node",e)}function ar(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(t9){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!document.querySelector("meta[name='immersive-translate-ebook-viewer']")||!t.startsWith("blob:http");return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function au(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function $m(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),a=parseInt(t.substring(2,4),16),r=parseInt(t.substring(4,6),16);return{r:n,g:a,b:r}}function Km(e,t,n,a){if(a.document.caretPositionFromPoint){let r=a.document.caretPositionFromPoint(e,t);if(r){let u=a.document.createRange(),o=r.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||Om(o,n,!0))return null;try{u.setStart(o,r.offset),u.setEnd(o,r.offset)}catch(i){return U.warn("getRangeFromPoint error",i),null}return u}return null}else return a.document.caretRangeFromPoint?a.document.caretRangeFromPoint(e,t):null}function Gm(e,t,n){let a=0,r=(u,o,i,s)=>{if(++a>100||s===u)return u;let c=u.shadowRoot;if(!c||typeof c.elementFromPoint!="function")return u;let l=c.elementFromPoint(o,i);return l?r(l,o,i,u):u};return r(e,t,n)}p();p();var a9=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function yn(e,t){if(t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function p0(e,t,n){let{blockSelectors:a,extraBlockSelectors:r,extraInlineSelectors:u}=t;if(yn(e,u))return!1;if(yn(e,r)||e.nodeName.toLowerCase()==="br")return!0;let s=null;return e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(s=e.parentNode.immersiveTranslateComputedStyle),s&&s.display&&s.display==="inline-flex"?!1:n&&n.display?!!a9.includes(n.display):yn(e,a)}var Dt=yn;function va(e){return!!e.shadowRoot}function ua(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function ru(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Co(e){let t=ga;return e&&(t=e),t}function wo(e,t){return $n(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function r9(e){let{rule:t}=e,n=e.config.loadingTheme;return` <${t.targetWrapperTag} class="${J}-loading-${n} notranslate">`}function uu(e,t){let n=e.rule,a=document.createElement(n.targetWrapperTag);a.classList.add("notranslate",qt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),at(a,kc,t.toString());let r=r9(e);return a.append(Le.sanitize(r,{RETURN_DOM_FRAGMENT:!0})),a}function rr(e,t){return e.querySelector(`[${Bi}='${t}']`)}function Vm(){document.querySelectorAll(`[${Bi}]`).forEach(t=>{t.remove()})}function Ym(){document.querySelectorAll(`.${qt}-error`).forEach(t=>{t.remove()})}function Jm(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{ar(n)&&t.push(n)}),t}function Qm(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:a,delimiters:r,text:u}=e,o=new RegExp(`${r[0]}(\\d+)${r[1]}`,"gi");if(r.length>2){let s=r[2];o=new RegExp(`<${s}(\\d+)>(.*?)`,"gi")}let i=u.trim();return i=i.replace(o,""),i=i.trim(),i===""||i.length===1&&i.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(u)||i.includes("")||i.includes("< styles>")||Wm(i)||zm(i)||qm(i)||Um(i)||Hm(i)||o.test(i)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(i)?!1:xo(u,n,a)}function xn(e){return e.nodeType===Node.ELEMENT_NODE}function Zm(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}function Xm(e){try{let t=Math.floor((new Date-new Date(e))/1e3);return t<60?`${t} \u79D2\u524D`:t<3600?`${Math.floor(t/60)} \u5206\u949F\u524D`:t<86400?`${Math.floor(t/3600)} \u5C0F\u65F6\u524D`:`${Math.floor(t/86400)} \u5929\u524D`}catch{return e}}async function e3(e){let n=Qe().INSTALL_FROM,a=an(),r=await At("installedAt",""),u=await At("fakeUserId","");return{installFrom:n,version:a,installedAt:r,interfaceLang:e,deviceId:u}}var u9=1e5;function oa(e){let{onParagraph:t,filterRule:n,id:a}=e;n=o9(n);let{stayOriginalSelectors:r,globalStyles:u,selectors:o,isTransformPreTagNewLine:i,lineBreakMaxTextCount:s,globalAttributes:c,isModifyImage:l,skipEditableCheck:m}=n,g={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},f=!1,d=null;function b(B){let{container:x,onFrame:L,onIgnoreElement:M,id:w}=B,E=document.createTreeWalker(x,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,A=>{let _=F(A);return _==NodeFilter.FILTER_ACCEPT?jt.mark(A,w,m):_==NodeFilter.FILTER_REJECT,_}),I=x;if(F(I)===NodeFilter.FILTER_REJECT)return;for(jt.mark(I,w,m);I;){if(o&&o.length>0){let{currentNode:A,isMatchedSelection:_}=T(E,I,o);if(A)I=A;else break;if(!_)continue}if(I.nodeType===Node.ELEMENT_NODE||I.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let A=I;if(A.nodeName==="IFRAME"){L&&L(A),h(),f0(g,!0),I=E.nextNode();continue}A.nodeType===Node.ELEMENT_NODE&&(u&&b0(A,u),c&&x0(A,c));let _=p0(A,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},A.immersiveTranslateComputedStyle||null);if(Dt(A,r)&&!_){C(A);let D=null;for(;!(D=E.nextSibling())&&E.parentNode(););I=D;continue}let j=va(A);(!t3(g,A)||_)&&(h(),A.childNodes.length>0&&v(g,A,A.immersiveTranslateComputedStyle||null)),j&&A.shadowRoot?.mode==="open"&&(_?L?.(A.shadowRoot):b({...B,container:A.shadowRoot})),A.nodeType===Node.ELEMENT_NODE&&A.nodeName==="PRE"&&i&&c9(A)}else if(I.nodeType===Node.TEXT_NODE)C(I);else throw new Error("should not be here");I=E.nextNode(),g.commonAncestorContainer&&I&&I.parentNode===g.commonAncestorContainer&&(g._currentStacks=[]),g.commonAncestorContainer&&I&&I.nodeType===Node.ELEMENT_NODE&&g._currentStacks.push(I)}function F(A){if(A.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(xn(A)){if(c){let D=Object.keys(c);if(D.length>0&&Dt(A,D))for(let S of D){let R=c[S];if(A.matches(S)){let $=c[S],z=Object.keys($);for(let Y of z){let q=$[Y];A.getAttribute(Y)!==q&&(q===null?A.removeAttribute(Y):A.setAttribute(Y,q))}break}}}if(!B.force&&jt.isMarked(A,w)||Zm(A,w)||E0(A,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,stayOriginalSelectors:r})||A.nodeName==="IFRAME"&&!ar(A))return NodeFilter.FILTER_REJECT;let _=A.getBoundingClientRect(),{width:j,height:N}=_;if(A.nodeType===Node.ELEMENT_NODE){let D=window.getComputedStyle(A);if(A.immersiveTranslateComputedStyle={display:D.display,whiteSpace:D.whiteSpace,left:_.left+"px",right:_.right+"px",top:_.top+"px",bottom:_.bottom+"px"},y0(A.immersiveTranslateComputedStyle))return M&&M(A),NodeFilter.FILTER_REJECT;let y=p0(A,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},A.immersiveTranslateComputedStyle||null);if(Dt(A,r)&&y)return NodeFilter.FILTER_REJECT}return A.nodeName==="IMG"&&(j>48&&N>48?A.immersiveTranslateComputedStyle={display:"block"}:j>0&&N>0&&l!==!1&&(A.setAttribute("width",j),A.setAttribute("height",N))),!A.childNodes||A.childNodes&&A.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!g.isPreWhitespace&&(j>0&&j<4||N>0&&N<4)&&(A.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(A.nodeType===Node.TEXT_NODE){let _=A.textContent?.trim();if(!_)return g.isPreWhitespace?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let j=A.parentNode;if(j.getBoundingClientRect){let{width:N,height:D}=j.getBoundingClientRect();if(N>0&&N<4||D>0&&D<4)return NodeFilter.FILTER_REJECT}return s>0&&_.length>=s&&h0(A,s),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}b(e),g&&g.commonAncestorContainer&&g.flatNodes.length>0&&h();function T(B,x,L){let M=x.immersiveTranslateComputedStyle||null;if(d){if(!d.contains(x))if(f=!1,x&&x.nodeType===Node.ELEMENT_NODE)if(vo(x,L))f=!0,d=x,h(),v(g,d,M);else return f=!1,x=B.nextNode(),{currentNode:x,isMatchedSelection:f};else return f=!1,x=B.nextNode(),{currentNode:x,isMatchedSelection:f}}else if(x&&x.nodeType===Node.ELEMENT_NODE)if(vo(x,L))f=!0,d=x,h(),v(g,d,M);else return f=!1,x=B.nextNode(),{currentNode:x,isMatchedSelection:f};else return f=!1,x=B.nextNode(),{currentNode:x,isMatchedSelection:f};return{currentNode:x,isMatchedSelection:!0}}function h(){let B=l9(g,a);B&&t&&t(B),f0(g)}function C(B){if(!t3(g,B)){h(),f0(g);let x=B.parentNode;x&&v(g,x,x.computedStyle)}g.flatNodes.push(B)}function v(B,x,L){B.commonAncestorContainer=x;let M=O(L);B.isPreWhitespace=M}function O(B){return B&&B.whiteSpace&&B.whiteSpace.startsWith("pre")||B&&B.whiteSpace==="break-spaces"||!1}}function t3(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=va(t));let a=s9(e),r=!0;return!n&&!a&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?r=!0:e.commonAncestorContainer&&(r=!1,e._currentStacks=[])),r}function o9(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let a=n!=="iframe";return t?a&&n!=="pre":a}),e}function i9(e,t,n){if(t){for(let a of t.childNodes)if(a.contains(n))return a}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function b0(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Dt(e,n))for(let r of n){let u=t[r];if(e.matches(r)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+u;break}}}}function s9(e){return e&&e._currentStacks?e._currentStacks.some(t=>va(t)):!1}function l9(e,t){let{flatNodes:n,commonAncestorContainer:a}=e;if(a&&n.length>0){if(!n.map(g=>g.textContent?.trim()||"").join(""))return null;if(n.length===1)return{ctxId:t,stepState:1,commonAncestorContainer:n[0].parentNode,rootNodes:[n[0]],flatNodes:n,isPreWhitespace:e.isPreWhitespace,variables:{}};let u=d9(n,a);u||(u=a);let o=[];for(let g of n){let f=i9(e,u,g);f&&(o.includes(f)||o.push(f))}if(o.length<1)return null;let i=o[0],s=o[o.length-1],c=[],l=i,m=0;for(;l&&(c.push(l),l!==s);){if(m++,m>u9){U.warn("loop too many times for convert root nodes, break");break}l=l.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:n,commonAncestorContainer:u,variables:{},isPreWhitespace:e.isPreWhitespace}}else return null}function f0(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function y0(e){let t=e.top?parseInt(e.top):0,n=e.left?parseInt(e.left):0,a=e.right?parseInt(e.right):0,r=e.bottom?parseInt(e.bottom):0;return isNaN(t)&&(t=0),isNaN(n)&&(n=0),isNaN(a)&&(a=0),isNaN(r)&&(r=0),e.display==="none"||t<-1e3||n<-1e3||a<-1e3||r<-1e3}var jt={_marked_key:"immersive_translate_walked",isMarked(e,t){return m0(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||va(e)))return To(e,this._marked_key)},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||va(e)))return at(e,this._marked_key,t,!1,n)},markWalk(e,t,n){if(!e||e.nodeType!==Node.ELEMENT_NODE||this.isSkipMarkEle(e))return;let a=tr(e,"markWalk")||"";return at(e,"markWalk",a+","+t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||va(e)):!1}};function c9(e){let n=e.innerHTML.replace(/\n\n/g,"
");e.innerHTML=Le.sanitize(n)}function d9(e,t){if(!e.length)return null;let n=e.map(a=>{let r=new Set;for(;(a=a.parentNode)&&(r.add(a),a!==t););return r});for(let a of n[0])if((a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&n.every(r=>r.has(a)))return a;return null}function h0(e,t){let n=e.textContent||"";if(n.trim().length<=t)return;let u=[". ","? ","! ","\u3002","\uFF1F","\uFF01"].reduce((o,i)=>{let s=n.lastIndexOf(i,t);return s>o?s:o},-1);if(u>1){let o=n[u-1]||"",i=n[u-2]||"",s=n[u+1]||"";o==="."||s==="."||s===")"||i==="."&&o==="S"||i.toUpperCase()==="M"&&(o.toUpperCase()==="R"||o.toUpperCase()==="S")?u=-1:isNaN(Number(o))||(u=-1)}if(u===-1)n.length>t+20&&h0(e,t+20);else{let o=n.slice(u+1);u++,o.startsWith(" ")&&u++;let i=e.splitText(u),s=document.createElement("br");i.parentNode?.insertBefore(s,i),u+10)for(let a of n){let r=t[a],u=Object.keys(r),o=Im(e,[a]);for(let i of o)for(let s of u){let c=r[s];i.getAttribute(s)!==c&&(c===null?i.removeAttribute(s):i.setAttribute(s,c))}}}function a3(e,t,n,a,r,u){let o=Object.keys(t);if(o.length>0)for(let i of o){let s=t[i],c=Object.keys(s),l=e.querySelector(i);if(l)for(let m of c){let g=s[m];if(m==="translate"&&g==="no"){let d=l.innerText||l.textContent||"";if(!d.trim()||m9(l,r,u)||!Nm(d,n,a))continue}l.getAttribute(m)!==g&&(g===null?l.removeAttribute(m):l.setAttribute(m,g))}}}function x0(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Dt(e,n))for(let r of n){let u=t[r];if(e.matches(r)){let o=t[r],i=Object.keys(o);for(let s of i){let c=o[s];e.getAttribute(s)!==c&&(c===null?e.removeAttribute(s):e.setAttribute(s,c))}break}}}}function E0(e,t){return Dt(e,t.excludeSelectors||[])?Dt(e,t.selectors||[])?!1:!Dt(e,t.stayOriginalSelectors||[]):!1}function vo(e,t){if(t.length===0)return!1;let n=t.filter(a=>!a.endsWith("*")).map(a=>a+" *");return Dt(e,t.concat(n))}function m9(e,t,n){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,r=>NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let r=a.currentNode;if(r.nodeType===Node.TEXT_NODE&&parent){let u=r.textContent||"";if(u.includes("Copyright"))continue;if(xo(u,t,n))return!0}}return!1}p();p();var r3=["*://*/*","*","*://*"],o3="immersive-translate-wildcard-placeholder.com";function T0(e,t){let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(o=>r3.includes(o)))return e;let a=new URL(e);a.hash="",a.search="";let r=a.href,u=a.hostname;if(n&&n.length>0){let o=n.find(i=>{let s=i;if(i===u)return!0;if(r3.includes(i))return!0;if(!i.includes("*")&&i.includes("://")){try{let c=new URL(i);return c.pathname==="/"&&!i.endsWith("/")?c.hostname===u:p9(r,i)}catch{}return!1}else{let c,l=i;if(i.includes("://")){let T=i.split("://");c=T[0],c==="*"&&T.length>1&&(c="*",i="https://"+T[1])}else c="*",i="https://"+i;let m=i.replace(/\*/g,o3),g;try{g=new URL(m)}catch{return U.debug("invalid match pattern",m,"raw match value:",l),!1}let f=g.hostname,d=g.pathname;d==="/"&&(l.replace("://","").includes("/")||(d="/*"));let b=g9(c+":",u3(f),u3(d));if(b){let T=new URL(r);return T.port="",b.test(T.href)}else return!1}});if(o)return o}return null}function u3(e){return e.replaceAll(o3,"*")}function g9(e,t,n){let a="^";return e==="*:"?a+="(http:|https:|file:)":a+=e,a+="//",t&&(e==="file:"||(t==="*"?a+="[^/]+?":(t.match(/^\*\./)&&(a+="[^/]*?",t=t.substring(2)),a+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?a+="(/.*)?":n.includes("*")?(a+=n.replace(/\*/g,".*?"),a+="/?"):a+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):a+="/?",a+="$",new RegExp(a)}function On(e,t){return T0(e,t)!==null}function p9(e,t){let n=new URL(e),a=new URL(t);return n.hostname===a.hostname&&n.pathname===a.pathname&&n.protocol===a.protocol&&n.port===a.port}async function ka(e){let{url:t,config:n,state:a}=e,r=new URL(t),u="auto",{translationParagraphLanguagePattern:o,translationService:i,translationServices:s,translationTheme:c,translationThemePatterns:l,translationUrlPattern:m,targetLanguage:g,sourceLanguageUrlPattern:f,immediateTranslationPattern:d}=n,b=ur(t,o),T=ur(t,d),h=i,C=Object.keys(s);for(let K of C){let oe=s[K];if(ur(t,oe)){h=K;break}}let v=c,O=Object.keys(l);for(let K of O){let oe=l[K];if(oe&&ur(t,oe)){v=K;break}}let B=ur(t,m),x=i3(t,m);x||(x=On(t,Nc)),x||(x=On(t,n.blockUrls));let L=i3(t,n.inputTranslationUrlPattern);L||(L=On(t,n.inputTranslationBlockUrls));let M=On(t,n.mutationBlockUrls),w=Object.keys(f),E={};for(let K of w){let oe=f[K];if(oe&&oe.matches)for(let me of oe.matches)E[me]=K}let I=Object.keys(E),F=T0(t,I);F&&(u=E[F]??"auto",E[F]&&E[F]!=="auto"&&rn(E[F]));let A=g||"zh-CN",_=r.hostname,j=await hn(_),N=r.pathname+r.search+r.hash,D=await hn(N),y=`https://${j}.com/${D}`,S=await Jn(),R=await md(),$=n.translationStartMode;$==="dynamic"&&T&&($="immediate");let z=h;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(z=n.inputTranslationService);let Y=h;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(Y=n.mouseHoverTranslationService);let q={targetLanguage:A,config:n,translationService:h,inputTranslationService:z,mouseHoverTranslationService:Y,isTranslateUrl:B,sourceLanguage:u,mainFrame:document.body,isTranslateExcludeUrl:x,isMutationTranslationExcludeUrl:M,isInputTranslationExcludeUrl:L,rule:n.generalRule,url:t,encryptedUrl:y,state:a?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:$,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:v},a):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:$,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:v},localConfig:S},ae=await Nt.get(en,null);ae&&(q.user=ae),q.state.translationArea==="body"&&(q.config.generalRule.excludeTags=q.config.generalRule.excludeTags.filter(K=>!q.config.generalRule.bodyTranslateTags.includes(K)),q.config.generalRule.additionalExcludeSelectors=q.config.generalRule.additionalExcludeSelectors.filter(K=>K!==".btn"));let Q=n.translationServices[q.translationService]||{};Q.immediateTranslationTextCount!==void 0&&f9(Q.immediateTranslationTextCount)&&Q.immediateTranslationTextCount>=0&&(q.state.immediateTranslationTextCount=Q.immediateTranslationTextCount),q.translationService==="deepl"&&(Q&&Q.authKey&&Q.authKey.startsWith("immersive_")||Q&&Q.provider==="pro"&&q.user?.token)&&Q.immediateTranslationTextCountForImmersiveDeepl!==void 0&&Q.immediateTranslationTextCountForImmersiveDeepl>=0&&(q.state.immediateTranslationTextCount=Q.immediateTranslationTextCountForImmersiveDeepl),Q&&Q.translationDebounce&&typeof Q.translationDebounce=="number"&&(q.state.translationDebounce=Q.translationDebounce);let G=R.immediateTranslationTextCount;n.immediateTranslationTextCount!==G&&(q.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let pe=n.rules,fe;globalThis.PDFViewerApplication?fe=pe.find(K=>K.isPdf):globalThis.immersiveTranslateEbookViewer?fe=pe.find(K=>K.isEbook):globalThis.immersiveTranslateEbookBuilder?fe=pe.find(K=>K.isEbookBuilder):fe=pe.find(K=>ur(t,K)),q.state.translationArea==="body"&&(q.rule.paragraphMinTextCount=1,q.rule.paragraphMinWordCount=1),fe&&fe.isEbookBuilder&&(q.state.translationStartMode="immediate");let re=n.generalRule;if(fe&&(q.rule=Zu(re,fe)),q.rule.selectors.length>0&&(q.rule.paragraphMinTextCount=2,q.rule.paragraphMinWordCount=1),q.state.translationArea==="body"&&q.rule.excludeTags&&(q.rule.excludeTags=q.rule.excludeTags.filter(K=>!q.rule.bodyTranslateTags.includes(K)&&!q.rule.forceTranslateTags.includes(K))),q.rule.mainFrameSelector){let K=document.querySelector(q.rule.mainFrameSelector);K&&(q.mainFrame=K)}return q}function ur(e,t){if(!t)return!1;let{matches:n,excludeMatches:a,selectorMatches:r,excludeSelectorMatches:u}=t;return a&&a.length>0&&On(e,a)?!1:n&&n.length>0&&On(e,n)?!0:u&&u.length>0&&Eo(u)?!1:!!(r&&r.length>0&&Eo(r))}function i3(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:a}=t;return!!(n&&n.length>0&&On(e,n)||a&&a.length>0&&Eo(a))}function f9(e){return typeof e=="number"}p();p();p();function s3(e,t,n,a){let r=t,u=Bc[r]||[],o="";e&&u&&u.length>0&&u.forEach(c=>{let{name:l}=c;if(e&&n&&n[l]){let m=n[l];if(["borderRadius"].includes(l)&&(m+="px"),o+=`--immersive-translate-theme-${r}-${l}: ${m}; -`,t==="marker"&&l==="backgroundColor"&&typeof m=="string"){let{r:g,g:f,b:d}=$m(m);o+=`--immersive-translate-theme-${r}-${l}-rgb: ${g}, ${f}, ${d}; + `);if(l.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(l)}.`)}let m=l[0].translations[0],g=l[0].detectedLanguage;return{text:m.text,from:pm.get(g.language),to:pm.get(m.to)}}p();var ho=new Map;async function Xs(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=Zn(e.body)),ho.has(t))return ho.get(t);let n=ie(e);ho.set(t,n);try{return await n}catch(a){throw a}finally{setTimeout(()=>{ho.delete(t)},3e4)}}async function Em(e){return Xs(e)}async function Tm(e){if(nt()){let n=no();if(n)try{return await n.ask("throttleRequest",e)}catch(a){throw U.error("can not comunicate with root frame, use strict limiter",a),a}else return Xs(e)}else return Xs(e)}p();function Cm(e){let t=e.split(".");if(t.length<=1)throw new Error("invlaid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let a=n.replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(globalThis.atob(a).split("").map(function(i){return"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)}).join("")),u=JSON.parse(r),o=new Date(u.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}var Ta=null,G6=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],e0=new Map(G6),eu=class extends be{static langMap=e0;isSupportList=!0;maxTextLength=1800;static async clearState(){Ta=null,await jr(Tu)}async translate(t){let{text:n,from:a,to:r}=t;return n?await xm(n,a,r):{...t}}async init(){if(!Ta){Ta={};let t=await Or(Tu);t&&(Ta=t)}await wm(Ta)}async translateList(t){let{from:n,to:a,text:r}=t,u=e0.get(n)||"auto",o=e0.get(a)||a;u==="auto"&&(u="");let i=await wm(Ta),s=[];for(let g of r)s.push({Text:g});let c=JSON.stringify(s),l=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${u}&to=${o}&api-version=3.0&includeSentenceLength=true`,m=await ie({url:l,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+i.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin"},body:c,method:"POST"});if(m&&m.length>0&&m[0].translations&&m[0].translations.length>0)return{text:m.map(g=>g.translations[0]?.text||""),from:n,to:a};throw new Error("Microsoft translate error "+JSON.stringify(m))}};async function wm(e){if(e&&e.accessToken&&e.accessTokenExpiresAt){let t=Date.now(),a=new Date(e.accessTokenExpiresAt).getTime();if(a-t>30*1e3)return e;if(a-t>3e3)return vm().catch(r=>{U.error(r)}),e}return vm()}async function vm(){let e=await Tm({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET"}),t=Cm(e),n=t.accessTokenExpiresAt,r=new Date(n).getTime()-Date.now();return Ta=t,await Nr(Tu,t,r-1e3),{accessToken:e,accessTokenExpiresAt:t.accessTokenExpiresAt}}p();var km=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],t0=new Map(km),V6=new Map(km.map(([e,t])=>[t,e])),n0=class extends be{static langMap=t0;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";appid="";key="";isSupportList=!1;maxTextGroupLength=20;constructor(t,n,a){if(super(t,n,a),!t||!t.appid||!t.key)throw new Error("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim()}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:a}=this,{appid:r,key:u}=this,{text:o,from:i,to:s}=t,c=new URLSearchParams({from:t0.get(i)||"auto",to:t0.get(s)||s,q:o,salt:n,appid:r,sign:Zn(r+o+n+u)}),l=new URL(a);l.search=c.toString();let m=await ie({url:l.toString()});if(m.error_code)throw new ot("API_SERVER_ERROR",m.error_msg);let{trans_result:g,from:f}=m,d=g.map(({dst:T})=>T);return{from:V6.get(f)||f,to:s,text:d.join(` +`)}}},Sm=n0;p();p();var Ca=class extends be{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,a){super(t,n,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let u=await this.checkLang(a,n);if(!u)return{text:n,from:a,to:r};a=u;let o=this.handleRequest(n,a,r),i=await Yu(o);return{text:this.handleResponseText(i),from:a,to:r}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let u=await this.checkLang(a,n.join(" "));if(!u)return{text:n,from:a,to:r};a=u;let o=this.handleRequest(n,a,r),i=await Yu(o);return{text:this.handleResponseText(i),from:a,to:r}}handleBaseApiServiceConfig(t){let n=t.request.url,a=t.request.headers||{};return a["content-type"]||(a["content-type"]="application/json"),{url:n,retry:t.request.retry||2,method:t.request.method||"POST",headers:a,body:JSON.stringify(t.request.body)}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,a){let r={...this.requestBaseConfig},u=r?.body||"",o=this.apiServiceConfig.keywords||{};r.body=s(u);let i=r.headers||{};return Object.keys(i).forEach(c=>{i[c]=s(i[c])}),r.headers=i,r.url=s(r.url||""),r;function s(c){return c.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",a).replaceAll(/{([a-z:_]+)}/gi,(m,g)=>{let[f,d]=g.split(":"),b=o[f];return d==="random"?Y6(b.split(",")):b})}}handleResponseText(t){let n=this.apiServiceConfig.response,a=t,r=n.text.split(".");for(let u of r){if(Array.isArray(a))return a=a.map(o=>o[u]),a;a=a[u]}return a}detectLanguageRemotely(t){return Ea.detectLanguageRemotelyByTransmart(t)}};function Y6(e){let t=Math.floor(Math.random()*e.length);return e[t]}var a0=class extends Ca{constructor(t,n,a){if(!t?.token)throw new Error("token are required");super({...t,isSupportList:!0,langs:[["zh-CN","zh"],["en","en"],["ja","ja"]],keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,a)}},Am=a0;p();var J6=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],bo=new Map(J6),r0=class extends be{static langMap=bo;token="ssdj273ksdiwi923bsd9";constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t;if(!bo.get(r))throw new Error(`Unsupported language: ${r}`);if(a==="auto")throw new Error("Unsupported language: auto");let o=n;return{text:(await ie({retry:2,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${bo.get(a)||"auto"}2${bo.get(r)}`})})).target,from:a,to:r}}},Dm=r0;p();var Lm=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],u0=new Map(Lm),Q6=new Map(Lm.map(([e,t])=>[t,e]));function Z6(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var o0=class extends be{static langMap=u0;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,a){if(super(t,n,a),!t||!t.appId||!t.appSecret)throw new Error("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,u=X6(32),o=Math.round(new Date().getTime()/1e3),i=this.appId+Z6(n)+u+o+this.appSecret,s=await hn(i),c={q:n,appKey:this.appId,salt:u.toString(),from:u0.get(a)||"auto",to:u0.get(r)||r,sign:s,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(c.domain=this.domain),this.vocabId&&(c.vocabId=this.vocabId);let l=new URLSearchParams(c),g=await ie({url:"https://openapi.youdao.com/api",method:"POST",body:l.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"}});if(!g.translation)throw new Error(JSON.stringify(g));let f=g.l,[d,b]=f.split("2");return{text:g.translation.join(` +`),from:Q6.get(d),to:r}}};function X6(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r[t,e]));var s0=class extends be{static langMap=i0;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,u={q:n,from:i0.get(a)||"auto",to:i0.get(r)||r},o=new URLSearchParams(u),i=await ie({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"}});if(i&&i.translation)return{text:i.translation.join(` +`),from:a,to:r};throw new Error("Youdao translation failed: "+JSON.stringify(i))}},Fm=s0;p();var tu=class extends Ca{constructor(t,n,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(r=>[r,r]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||ga,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,a)}};var e9={mock:Qa,mock2:Qa,custom:tu,google:xa,transmart:Ea,deepl:tm,volc:dm,volcAlpha:Zr,bing:eu,tencent:$r,tenAlpha:Kr,baidu:Sm,caiyun:Am,cai:Dm,openl:co,youdao:Pm,you:Fm,d:Ja,dpro:Ja,deeplx:Xr,niu:nm,azure:am,openai:um,chatgpt:Yr,papago:rm,aliyun:Qr},aa={};Object.keys(Fn).forEach(e=>{aa[e]={...Fn[e],class:e9[e]}});function _m(e,t){let n=en;if(aa[e]&&aa[e].class&&aa[e].class.langMap&&aa[e].class.langMap.size>0){let a=aa[e].class.langMap,r=n.filter(u=>a.get(u));return r.includes(t)||r.unshift("placeholder"),r}else return en}async function wa(e,t){if(!e.text)return e;let n=await In({sentences:[e]},t);if(n.sentences.length>0)return{...e,...n.sentences[0]};throw new ot("translateFailed","translate failed")}async function Bm(e,t){for(let n of e)try{return await wa({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n}),n}catch{continue}return null}async function l0(e){let{config:t,translationService:n}=e,a=t.translationGeneralConfig,r=t.translationServices,u=n,o=r[u]||{},i=Zt(e.user),s=new aa[u].class(o,a,{translationService:u,userToken:e.user?.token,isPro:i}),c=s.getDefaultRateLimit();c&&(o&&!o.limit&&(o.limit=c.limit),o&&!o.interval&&(o.interval=c.interval)),u==="deepl"&&o&&o.provider==="pro"&&(o.limitForImmersiveDeepl?o.limit=o.limitForImmersiveDeepl:c&&(o.limit=c.limit)),await Md(u,o),await s.init()}async function In(e,t,n){if(!e.sentences.length)return{...e};let{config:a,translationService:r,state:u}=t,o=a.translationGeneralConfig,i=a.translationServices,s=r,c=i[s]||{};s==="openai"&&(e.sentences=e.sentences.map(C=>({...C,from:"auto"})));let l=[],m={sentences:Array(e.sentences.length)},g=e.sentences.length,f=-1;if(u.cache)for(let C of e.sentences){f++;let v=s;s==="openl"&&(v=s+"-"+c.codename||co.DEFAULT_CODENAME);let O=null;try{O=await Mu(Rm({originalText:C.text,from:C.from,to:C.to,service:v}),200)}catch(B){U.warn("query cache DB error, but it's ok",B)}if(O){let B={...C,text:O.translatedText};m.sentences[f]=B,n&&n(null,B,C)}else l.push(C)}else l.push(...e.sentences);let d=l.length;if(g-d>0&&U.debug(`use ${g-d} sentences from cache`),!l.length)return m;let b,T=Zt(t.user);try{b=new aa[s].class(c,o,{translationService:s,userToken:t.user?.token,isPro:T}),await b.init()}catch(C){if(n)for(let v of l)n(C,null,v);throw C}let h=await b.multipleTranslate({sentences:l},c,(C,v,O)=>{if(n&&n(C,v,O),!C&&v&&!s.startsWith("mock")&&u.cache){let B=s;s==="openl"&&(B=s+"-"+c.codename||co.DEFAULT_CODENAME),u.cache&&Mu(Im({translatedText:v.text,from:O.from,to:O.to,detectedFrom:v.from,key:Zn(O.text),service:B}),3e3).catch(x=>{U.warn("set cache DB error",x)})}});for(let C of h.sentences){let v=m.sentences.findIndex(O=>!O);if(v===-1)throw new ot("translateFailed","can not match the result");m.sentences[v]=C}return m}p();var yo=!1,t9=fe();function Om(e,t){let n=[];for(let a of t){let r=e.querySelectorAll(a);for(let u of r)n.push(u)}return n}function n9(e,t){let n=function(u){return u.nodeType===Node.ELEMENT_NODE||u.nodeType===Node.TEXT_NODE?u.nodeType===Node.ELEMENT_NODE&&Nm(u,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),r=!0;for(;a.nextNode();){let u=a.currentNode;if(u.nodeType===Node.ELEMENT_NODE){if(ra(u,Su)){if(r===!0)return!0;continue}if(nu(u.nodeName,t.inlineTags))return!0;if(!c0(u,t))return!1}}return!0}function d0(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(nu(e.nodeName,n)||c0(e,t)){if(ra(e,Dc)||nu(e.nodeName,["BR"]))return!1;if(ra(e,Su))return!0;if(c0(e,t)){let a=globalThis.getComputedStyle(e);if(a.display==="block"||a.display==="flex")return!1}return n9(e,t)}else return ra(e,Su);return!1}function Nm(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&ra(e,Ac,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&ra(e,Cc))return!1;let{stayOriginalTags:a,excludeTags:r}=t,u=[];return n&&r&&r.length>0?u=r||[]:u=r.filter(o=>!a.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||nu(e.nodeName,u))}function xo(e,t,n){let a=e.trim();return a.length>=t||a.split(" ").filter(o=>o.trim()!=="").length>=n||!zm(a)&&a.length>=n}function jm(e,t,n){let a=e.trim();if(a.length<=t)return!0;if(zm(a)){if(a.split(" ").length<=n)return!0}else if(a.length<=n)return!0;return!1}function zm(e){for(let t=0;t127)return!1;return!0}function Um(e){if(e&&e.includes("://"))try{return new URL(e),!0}catch{return!1}else return!1}function Hm(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function qm(e){return e?/^[-+]?[0-9]*\.?[0-9]+%?$/.test(e):!1}function Wm(e){return!!(e&&e.startsWith("#")&&e.indexOf(" ")===-1)}function $m(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function ra(e,t,n=!1){return m0(e,t,"1",n)}function m0(e,t,n,a=!1){return yo&&!a?e[It]?!!(e[It]&&e[It][t]===n):!1:e.dataset[t]===n}function er(e){return(e.innerText||e.textContent||"").trim()}function g0(e){let t=e.querySelectorAll("iframe"),n="";for(let a=0;a2e3))break}return n}function Eo(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function at(e,t,n,a=!1,r=!1){e.isContentEditable&&!r||(yo&&!a?(e.dataset[Sr]||(e.dataset[Sr]="1"),e[It]||(e[It]={}),e[It][t]||(e[It][t]=n)):(e.dataset[Sr]||(e.dataset[Sr]="1"),e.dataset[t]!==n&&(e.dataset[t]=n)))}function To(e,t,n=!1){if(yo&&!n){if(!e[It]||!e[It][t])return;delete e[It][t]}else delete e.dataset[t]}function tr(e,t,n=!1){return yo&&!n?!e[It]||!e[It][t]?void 0:e[It][t]:e.dataset[t]}function c0(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!nu(e.nodeName,n)}function nr(e){let{config:t}=e,n=ga;return t.translationServices[e.translationService]&&t.translationServices[e.translationService].placeholderDelimiters&&(n=t.translationServices[e.translationService].placeholderDelimiters),n}function ht(){if(!globalThis||!globalThis.location)return"https://example.com";if(!nt())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let a="";try{a=globalThis.parent.location.href}catch{}return a||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function va(e,t,n){if(e instanceof ShadowRoot){try{e.appendChild(document.createElement("style")).textContent=t}catch(a){U.warn("injectCSS failed, rootDocument"+a?.message,e)}return}if(e&&e.head&&e.head.appendChild){let a=e.createElement("style");if(n){let r=e.querySelector(`style[data-id="${n}"]`);r&&r.remove(),a.dataset.id=n}a.textContent=t,e.head.appendChild(a)}else if(e){let a=document.createElement("head"),r=document.createElement("style");r.textContent=t,a.appendChild(r),e.appendChild(a)}else U.warn("injectCSS failed, rootDocument does not have head node",e)}function ar(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(t9){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!document.querySelector("meta[name='immersive-translate-ebook-viewer']")||!t.startsWith("blob:http");return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function nu(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function Km(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),a=parseInt(t.substring(2,4),16),r=parseInt(t.substring(4,6),16);return{r:n,g:a,b:r}}function Gm(e,t,n,a){if(a.document.caretPositionFromPoint){let r=a.document.caretPositionFromPoint(e,t);if(r){let u=a.document.createRange(),o=r.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||Nm(o,n,!0))return null;try{u.setStart(o,r.offset),u.setEnd(o,r.offset)}catch(i){return U.warn("getRangeFromPoint error",i),null}return u}return null}else return a.document.caretRangeFromPoint?a.document.caretRangeFromPoint(e,t):null}function Vm(e,t,n){let a=0,r=(u,o,i,s)=>{if(++a>100||s===u)return u;let c=u.shadowRoot;if(!c||typeof c.elementFromPoint!="function")return u;let l=c.elementFromPoint(o,i);return l?r(l,o,i,u):u};return r(e,t,n)}p();p();var a9=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function yn(e,t){if(t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function p0(e,t,n){let{blockSelectors:a,extraBlockSelectors:r,extraInlineSelectors:u}=t;if(yn(e,u))return!1;if(yn(e,r)||e.nodeName.toLowerCase()==="br")return!0;let s=null;return e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(s=e.parentNode.immersiveTranslateComputedStyle),s&&s.display&&s.display==="inline-flex"?!1:n&&n.display?!!a9.includes(n.display):yn(e,a)}var Dt=yn;function ka(e){return!!e.shadowRoot}function ua(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function au(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Co(e){let t=ga;return e&&(t=e),t}function wo(e,t){return $n(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function r9(e){let{rule:t}=e,n=e.config.loadingTheme;return` <${t.targetWrapperTag} class="${J}-loading-${n} notranslate">`}function ru(e,t){let n=e.rule,a=document.createElement(n.targetWrapperTag);a.classList.add("notranslate",Wt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),at(a,kc,t.toString());let r=r9(e);return a.append(Le.sanitize(r,{RETURN_DOM_FRAGMENT:!0})),a}function rr(e,t){return e.querySelector(`[${Bi}='${t}']`)}function Ym(){document.querySelectorAll(`[${Bi}]`).forEach(t=>{t.remove()})}function Jm(){document.querySelectorAll(`.${Wt}-error`).forEach(t=>{t.remove()})}function Qm(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{ar(n)&&t.push(n)}),t}function Zm(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:a,delimiters:r,text:u}=e,o=new RegExp(`${r[0]}(\\d+)${r[1]}`,"gi");if(r.length>2){let s=r[2];o=new RegExp(`<${s}(\\d+)>(.*?)`,"gi")}let i=u.trim();return i=i.replace(o,""),i=i.trim(),i===""||i.length===1&&i.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(u)||i.includes("")||i.includes("< styles>")||$m(i)||Um(i)||Wm(i)||Hm(i)||qm(i)||o.test(i)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(i)?!1:xo(u,n,a)}function xn(e){return e.nodeType===Node.ELEMENT_NODE}function Xm(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}function e3(e){try{let t=Math.floor((new Date-new Date(e))/1e3);return t<60?`${t} \u79D2\u524D`:t<3600?`${Math.floor(t/60)} \u5206\u949F\u524D`:t<86400?`${Math.floor(t/3600)} \u5C0F\u65F6\u524D`:`${Math.floor(t/86400)} \u5929\u524D`}catch{return e}}async function t3(e){let n=Qe().INSTALL_FROM,a=an(),r=await At("installedAt",""),u=await At("fakeUserId","");return{installFrom:n,version:a,installedAt:r,interfaceLang:e,deviceId:u}}var u9=1e5;function oa(e){let{onParagraph:t,filterRule:n,id:a}=e;n=o9(n);let{stayOriginalSelectors:r,globalStyles:u,selectors:o,isTransformPreTagNewLine:i,lineBreakMaxTextCount:s,globalAttributes:c,isModifyImage:l,skipEditableCheck:m}=n,g={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},f=!1,d=null;function b(B){let{container:x,onFrame:L,onIgnoreElement:M,id:w}=B,E=document.createTreeWalker(x,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,A=>{let _=F(A);return _==NodeFilter.FILTER_ACCEPT?zt.mark(A,w,m):_==NodeFilter.FILTER_REJECT,_}),I=x;if(F(I)===NodeFilter.FILTER_REJECT)return;for(zt.mark(I,w,m);I;){if(o&&o.length>0){let{currentNode:A,isMatchedSelection:_}=T(E,I,o);if(A)I=A;else break;if(!_)continue}if(I.nodeType===Node.ELEMENT_NODE||I.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let A=I;if(A.nodeName==="IFRAME"){L&&L(A),h(),f0(g,!0),I=E.nextNode();continue}A.nodeType===Node.ELEMENT_NODE&&(u&&b0(A,u),c&&x0(A,c));let _=p0(A,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},A.immersiveTranslateComputedStyle||null);if(Dt(A,r)&&!_){C(A);let D=null;for(;!(D=E.nextSibling())&&E.parentNode(););I=D;continue}let j=ka(A);(!n3(g,A)||_)&&(h(),A.childNodes.length>0&&v(g,A,A.immersiveTranslateComputedStyle||null)),j&&A.shadowRoot?.mode==="open"&&(_?L?.(A.shadowRoot):b({...B,container:A.shadowRoot})),A.nodeType===Node.ELEMENT_NODE&&A.nodeName==="PRE"&&i&&c9(A)}else if(I.nodeType===Node.TEXT_NODE)C(I);else throw new Error("should not be here");I=E.nextNode(),g.commonAncestorContainer&&I&&I.parentNode===g.commonAncestorContainer&&(g._currentStacks=[]),g.commonAncestorContainer&&I&&I.nodeType===Node.ELEMENT_NODE&&g._currentStacks.push(I)}function F(A){if(A.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(xn(A)){if(c){let D=Object.keys(c);if(D.length>0&&Dt(A,D))for(let S of D){let R=c[S];if(A.matches(S)){let $=c[S],z=Object.keys($);for(let Y of z){let q=$[Y];A.getAttribute(Y)!==q&&(q===null?A.removeAttribute(Y):A.setAttribute(Y,q))}break}}}if(!B.force&&zt.isMarked(A,w)||Xm(A,w)||E0(A,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,stayOriginalSelectors:r})||A.nodeName==="IFRAME"&&!ar(A))return NodeFilter.FILTER_REJECT;let _=A.getBoundingClientRect(),{width:j,height:N}=_;if(A.nodeType===Node.ELEMENT_NODE){let D=window.getComputedStyle(A);if(A.immersiveTranslateComputedStyle={display:D.display,whiteSpace:D.whiteSpace,left:_.left+"px",right:_.right+"px",top:_.top+"px",bottom:_.bottom+"px"},y0(A.immersiveTranslateComputedStyle))return M&&M(A),NodeFilter.FILTER_REJECT;let y=p0(A,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},A.immersiveTranslateComputedStyle||null);if(Dt(A,r)&&y)return NodeFilter.FILTER_REJECT}return A.nodeName==="IMG"&&(j>48&&N>48?A.immersiveTranslateComputedStyle={display:"block"}:j>0&&N>0&&l!==!1&&(A.setAttribute("width",j),A.setAttribute("height",N))),!A.childNodes||A.childNodes&&A.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!g.isPreWhitespace&&(j>0&&j<4||N>0&&N<4)&&(A.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(A.nodeType===Node.TEXT_NODE){let _=A.textContent?.trim();if(!_)return g.isPreWhitespace?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let j=A.parentNode;if(j.getBoundingClientRect){let{width:N,height:D}=j.getBoundingClientRect();if(N>0&&N<4||D>0&&D<4)return NodeFilter.FILTER_REJECT}return s>0&&_.length>=s&&h0(A,s),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}b(e),g&&g.commonAncestorContainer&&g.flatNodes.length>0&&h();function T(B,x,L){let M=x.immersiveTranslateComputedStyle||null;if(d){if(!d.contains(x))if(f=!1,x&&x.nodeType===Node.ELEMENT_NODE)if(vo(x,L))f=!0,d=x,h(),v(g,d,M);else return f=!1,x=B.nextNode(),{currentNode:x,isMatchedSelection:f};else return f=!1,x=B.nextNode(),{currentNode:x,isMatchedSelection:f}}else if(x&&x.nodeType===Node.ELEMENT_NODE)if(vo(x,L))f=!0,d=x,h(),v(g,d,M);else return f=!1,x=B.nextNode(),{currentNode:x,isMatchedSelection:f};else return f=!1,x=B.nextNode(),{currentNode:x,isMatchedSelection:f};return{currentNode:x,isMatchedSelection:!0}}function h(){let B=l9(g,a);B&&t&&t(B),f0(g)}function C(B){if(!n3(g,B)){h(),f0(g);let x=B.parentNode;x&&v(g,x,x.computedStyle)}g.flatNodes.push(B)}function v(B,x,L){B.commonAncestorContainer=x;let M=O(L);B.isPreWhitespace=M}function O(B){return B&&B.whiteSpace&&B.whiteSpace.startsWith("pre")||B&&B.whiteSpace==="break-spaces"||!1}}function n3(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=ka(t));let a=s9(e),r=!0;return!n&&!a&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?r=!0:e.commonAncestorContainer&&(r=!1,e._currentStacks=[])),r}function o9(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let a=n!=="iframe";return t?a&&n!=="pre":a}),e}function i9(e,t,n){if(t){for(let a of t.childNodes)if(a.contains(n))return a}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function b0(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Dt(e,n))for(let r of n){let u=t[r];if(e.matches(r)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+u;break}}}}function s9(e){return e&&e._currentStacks?e._currentStacks.some(t=>ka(t)):!1}function l9(e,t){let{flatNodes:n,commonAncestorContainer:a}=e;if(a&&n.length>0){if(!n.map(g=>g.textContent?.trim()||"").join(""))return null;if(n.length===1)return{ctxId:t,stepState:1,commonAncestorContainer:n[0].parentNode,rootNodes:[n[0]],flatNodes:n,isPreWhitespace:e.isPreWhitespace,variables:{}};let u=d9(n,a);u||(u=a);let o=[];for(let g of n){let f=i9(e,u,g);f&&(o.includes(f)||o.push(f))}if(o.length<1)return null;let i=o[0],s=o[o.length-1],c=[],l=i,m=0;for(;l&&(c.push(l),l!==s);){if(m++,m>u9){U.warn("loop too many times for convert root nodes, break");break}l=l.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:n,commonAncestorContainer:u,variables:{},isPreWhitespace:e.isPreWhitespace}}else return null}function f0(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function y0(e){let t=e.top?parseInt(e.top):0,n=e.left?parseInt(e.left):0,a=e.right?parseInt(e.right):0,r=e.bottom?parseInt(e.bottom):0;return isNaN(t)&&(t=0),isNaN(n)&&(n=0),isNaN(a)&&(a=0),isNaN(r)&&(r=0),e.display==="none"||t<-1e3||n<-1e3||a<-1e3||r<-1e3}var zt={_marked_key:"immersive_translate_walked",isMarked(e,t){return m0(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||ka(e)))return To(e,this._marked_key)},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||ka(e)))return at(e,this._marked_key,t,!1,n)},markWalk(e,t,n){if(!e||e.nodeType!==Node.ELEMENT_NODE||this.isSkipMarkEle(e))return;let a=tr(e,"markWalk")||"";return at(e,"markWalk",a+","+t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||ka(e)):!1}};function c9(e){let n=e.innerHTML.replace(/\n\n/g,"
");e.innerHTML=Le.sanitize(n)}function d9(e,t){if(!e.length)return null;let n=e.map(a=>{let r=new Set;for(;(a=a.parentNode)&&(r.add(a),a!==t););return r});for(let a of n[0])if((a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&n.every(r=>r.has(a)))return a;return null}function h0(e,t){let n=e.textContent||"";if(n.trim().length<=t)return;let u=[". ","? ","! ","\u3002","\uFF1F","\uFF01"].reduce((o,i)=>{let s=n.lastIndexOf(i,t);return s>o?s:o},-1);if(u>1){let o=n[u-1]||"",i=n[u-2]||"",s=n[u+1]||"";o==="."||s==="."||s===")"||i==="."&&o==="S"||i.toUpperCase()==="M"&&(o.toUpperCase()==="R"||o.toUpperCase()==="S")?u=-1:isNaN(Number(o))||(u=-1)}if(u===-1)n.length>t+20&&h0(e,t+20);else{let o=n.slice(u+1);u++,o.startsWith(" ")&&u++;let i=e.splitText(u),s=document.createElement("br");i.parentNode?.insertBefore(s,i),u+10)for(let a of n){let r=t[a],u=Object.keys(r),o=Om(e,[a]);for(let i of o)for(let s of u){let c=r[s];i.getAttribute(s)!==c&&(c===null?i.removeAttribute(s):i.setAttribute(s,c))}}}function r3(e,t,n,a,r,u){let o=Object.keys(t);if(o.length>0)for(let i of o){let s=t[i],c=Object.keys(s),l=e.querySelector(i);if(l)for(let m of c){let g=s[m];if(m==="translate"&&g==="no"){let d=l.innerText||l.textContent||"";if(!d.trim()||m9(l,r,u)||!jm(d,n,a))continue}l.getAttribute(m)!==g&&(g===null?l.removeAttribute(m):l.setAttribute(m,g))}}}function x0(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Dt(e,n))for(let r of n){let u=t[r];if(e.matches(r)){let o=t[r],i=Object.keys(o);for(let s of i){let c=o[s];e.getAttribute(s)!==c&&(c===null?e.removeAttribute(s):e.setAttribute(s,c))}break}}}}function E0(e,t){return Dt(e,t.excludeSelectors||[])?Dt(e,t.selectors||[])?!1:!Dt(e,t.stayOriginalSelectors||[]):!1}function vo(e,t){if(t.length===0)return!1;let n=t.filter(a=>!a.endsWith("*")).map(a=>a+" *");return Dt(e,t.concat(n))}function m9(e,t,n){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,r=>NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let r=a.currentNode;if(r.nodeType===Node.TEXT_NODE&&parent){let u=r.textContent||"";if(u.includes("Copyright"))continue;if(xo(u,t,n))return!0}}return!1}p();p();var u3=["*://*/*","*","*://*"],i3="immersive-translate-wildcard-placeholder.com";function T0(e,t){let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(o=>u3.includes(o)))return e;let a=new URL(e);a.hash="",a.search="";let r=a.href,u=a.hostname;if(n&&n.length>0){let o=n.find(i=>{let s=i;if(i===u)return!0;if(u3.includes(i))return!0;if(!i.includes("*")&&i.includes("://")){try{let c=new URL(i);return c.pathname==="/"&&!i.endsWith("/")?c.hostname===u:p9(r,i)}catch{}return!1}else{let c,l=i;if(i.includes("://")){let T=i.split("://");c=T[0],c==="*"&&T.length>1&&(c="*",i="https://"+T[1])}else c="*",i="https://"+i;let m=i.replace(/\*/g,i3),g;try{g=new URL(m)}catch{return U.debug("invalid match pattern",m,"raw match value:",l),!1}let f=g.hostname,d=g.pathname;d==="/"&&(l.replace("://","").includes("/")||(d="/*"));let b=g9(c+":",o3(f),o3(d));if(b){let T=new URL(r);return T.port="",b.test(T.href)}else return!1}});if(o)return o}return null}function o3(e){return e.replaceAll(i3,"*")}function g9(e,t,n){let a="^";return e==="*:"?a+="(http:|https:|file:)":a+=e,a+="//",t&&(e==="file:"||(t==="*"?a+="[^/]+?":(t.match(/^\*\./)&&(a+="[^/]*?",t=t.substring(2)),a+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?a+="(/.*)?":n.includes("*")?(a+=n.replace(/\*/g,".*?"),a+="/?"):a+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):a+="/?",a+="$",new RegExp(a)}function On(e,t){return T0(e,t)!==null}function p9(e,t){let n=new URL(e),a=new URL(t);return n.hostname===a.hostname&&n.pathname===a.pathname&&n.protocol===a.protocol&&n.port===a.port}async function Sa(e){let{url:t,config:n,state:a}=e,r=new URL(t),u="auto",{translationParagraphLanguagePattern:o,translationService:i,translationServices:s,translationTheme:c,translationThemePatterns:l,translationUrlPattern:m,targetLanguage:g,sourceLanguageUrlPattern:f,immediateTranslationPattern:d}=n,b=ur(t,o),T=ur(t,d),h=i,C=Object.keys(s);for(let K of C){let oe=s[K];if(ur(t,oe)){h=K;break}}let v=c,O=Object.keys(l);for(let K of O){let oe=l[K];if(oe&&ur(t,oe)){v=K;break}}let B=ur(t,m),x=s3(t,m);x||(x=On(t,Nc)),x||(x=On(t,n.blockUrls));let L=s3(t,n.inputTranslationUrlPattern);L||(L=On(t,n.inputTranslationBlockUrls));let M=On(t,n.mutationBlockUrls),w=Object.keys(f),E={};for(let K of w){let oe=f[K];if(oe&&oe.matches)for(let me of oe.matches)E[me]=K}let I=Object.keys(E),F=T0(t,I);F&&(u=E[F]??"auto",E[F]&&E[F]!=="auto"&&rn(E[F]));let A=g||"zh-CN",_=r.hostname,j=await hn(_),N=r.pathname+r.search+r.hash,D=await hn(N),y=`https://${j}.com/${D}`,S=await Jn(),R=await gd(),$=n.translationStartMode;$==="dynamic"&&T&&($="immediate");let z=h;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(z=n.inputTranslationService);let Y=h;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(Y=n.mouseHoverTranslationService);let q={targetLanguage:A,config:n,translationService:h,inputTranslationService:z,mouseHoverTranslationService:Y,isTranslateUrl:B,sourceLanguage:u,mainFrame:document.body,isTranslateExcludeUrl:x,isMutationTranslationExcludeUrl:M,isInputTranslationExcludeUrl:L,rule:n.generalRule,url:t,encryptedUrl:y,state:a?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:$,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:v},a):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:$,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:v},localConfig:S},ae=await jt.get(Ot,null);ae&&(q.user=ae),q.state.translationArea==="body"&&(q.config.generalRule.excludeTags=q.config.generalRule.excludeTags.filter(K=>!q.config.generalRule.bodyTranslateTags.includes(K)),q.config.generalRule.additionalExcludeSelectors=q.config.generalRule.additionalExcludeSelectors.filter(K=>K!==".btn"));let Q=n.translationServices[q.translationService]||{};Q.immediateTranslationTextCount!==void 0&&f9(Q.immediateTranslationTextCount)&&Q.immediateTranslationTextCount>=0&&(q.state.immediateTranslationTextCount=Q.immediateTranslationTextCount),q.translationService==="deepl"&&(Q&&Q.authKey&&Q.authKey.startsWith("immersive_")||Q&&Q.provider==="pro"&&q.user?.token)&&Q.immediateTranslationTextCountForImmersiveDeepl!==void 0&&Q.immediateTranslationTextCountForImmersiveDeepl>=0&&(q.state.immediateTranslationTextCount=Q.immediateTranslationTextCountForImmersiveDeepl),Q&&Q.translationDebounce&&typeof Q.translationDebounce=="number"&&(q.state.translationDebounce=Q.translationDebounce);let G=R.immediateTranslationTextCount;n.immediateTranslationTextCount!==G&&(q.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let pe=n.rules,he;globalThis.PDFViewerApplication?he=pe.find(K=>K.isPdf):globalThis.immersiveTranslateEbookViewer?he=pe.find(K=>K.isEbook):globalThis.immersiveTranslateEbookBuilder?he=pe.find(K=>K.isEbookBuilder):he=pe.find(K=>ur(t,K)),q.state.translationArea==="body"&&(q.rule.paragraphMinTextCount=1,q.rule.paragraphMinWordCount=1),he&&he.isEbookBuilder&&(q.state.translationStartMode="immediate");let re=n.generalRule;if(he&&(q.rule=Qu(re,he)),q.rule.selectors.length>0&&(q.rule.paragraphMinTextCount=2,q.rule.paragraphMinWordCount=1),q.state.translationArea==="body"&&q.rule.excludeTags&&(q.rule.excludeTags=q.rule.excludeTags.filter(K=>!q.rule.bodyTranslateTags.includes(K)&&!q.rule.forceTranslateTags.includes(K))),q.rule.mainFrameSelector){let K=document.querySelector(q.rule.mainFrameSelector);K&&(q.mainFrame=K)}return q}function ur(e,t){if(!t)return!1;let{matches:n,excludeMatches:a,selectorMatches:r,excludeSelectorMatches:u}=t;return a&&a.length>0&&On(e,a)?!1:n&&n.length>0&&On(e,n)?!0:u&&u.length>0&&Eo(u)?!1:!!(r&&r.length>0&&Eo(r))}function s3(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:a}=t;return!!(n&&n.length>0&&On(e,n)||a&&a.length>0&&Eo(a))}function f9(e){return typeof e=="number"}p();p();p();function l3(e,t,n,a){let r=t,u=Bc[r]||[],o="";e&&u&&u.length>0&&u.forEach(c=>{let{name:l}=c;if(e&&n&&n[l]){let m=n[l];if(["borderRadius"].includes(l)&&(m+="px"),o+=`--immersive-translate-theme-${r}-${l}: ${m}; +`,t==="marker"&&l==="backgroundColor"&&typeof m=="string"){let{r:g,g:f,b:d}=Km(m);o+=`--immersive-translate-theme-${r}-${l}-rgb: ${g}, ${f}, ${d}; `}}});let i="";if(n&&n.textColor){let c=n.textColor;i+=` .immersive-translate-target-translation-theme-${r}-inner{color: ${c};} `}if(n&&n.zoom){let c=n.zoom;i+=` .immersive-translate-target-translation-theme-${r}-inner{font-size: max(13px, ${c}%);} `}let s="";o&&(s=`:root { ${o}} -`),i&&(s+=i),s?wa(e,s,"immersive-translate-user-custom-style"):a&&wa(e,"","immersive-translate-user-custom-style")}function or(e,t){let a=Qe().IMMERSIVE_TRANSLATE_INJECTED_CSS;wa(e,a,"immersive-translate-default-injected-css");let r=t.config.translationThemePatterns||{},u=t.state.translationTheme,o=r[u]||{};s3(e,u,o);let i="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?i+=t.rule.injectedCss.join(` +`),i&&(s+=i),s?va(e,s,"immersive-translate-user-custom-style"):a&&va(e,"","immersive-translate-user-custom-style")}function or(e,t){let a=Qe().IMMERSIVE_TRANSLATE_INJECTED_CSS;va(e,a,"immersive-translate-default-injected-css");let r=t.config.translationThemePatterns||{},u=t.state.translationTheme,o=r[u]||{};l3(e,u,o);let i="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?i+=t.rule.injectedCss.join(` `):t.rule.injectedCss&&(i+=t.rule.injectedCss),t.rule.additionalInjectedCss&&Array.isArray(t.rule.additionalInjectedCss)&&t.rule.additionalInjectedCss.length>0?i+=` `+t.rule.additionalInjectedCss.join(` `):t.rule.additionalInjectedCss&&(i+=` -`+t.rule.additionalInjectedCss)),i&&wa(e,i,"immersive-translate-dynamic-injected-css")}p();async function l3(){let e="auto",t=[pa(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await Ke({text:er(document.body),pageLangs:t})),e}p();p();function c3(e,t){return[e,!e||e.endsWith("/")?"":"/",t,".json"].join("")}function C0(e,t){let n=e;return t&&Object.keys(t).forEach(a=>{let r=t[a];if(r===void 0)return;let u=h9(a);if(typeof r=="object"||u){let o=r;u&&typeof o=="string"&&(o={tag:"a",href:o});let i=`<${a}>`,s=n.indexOf(i);if(s!==-1){let c=o.tag||"a",l=n.indexOf(``);if(l!==-1){let m=n.substring(s+i.length,l),g=Object.keys(o).filter(f=>f!=="tag").map(f=>`${f}="${o[f]}"`).join(" ");n=n.replace(`${i}${m}`,`<${c} ${g}>${m}`)}}}else if(r){let o=new RegExp("{"+a+"}","gm");n=n.replace(o,r.toString())}}),n}function ou(e,t,n){let a=e[t];if(!a)return n;let r=n.split("."),u="";do{u+=r.shift();let o=a[u];o!==void 0&&(typeof o=="object"||!r.length)?(a=o,u=""):r.length?u+=".":a=n}while(r.length);return a}function Nn(e,t,n,a,r){if(!e.hasOwnProperty(n))return t;let u=ou(e,n,t);return u===t&&n!==a&&(u=ou(e,a,t)),C0(u,r)}function h9(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}p();p();function w0(e,t,n=[],a){let r=["notranslate"];return a&&r.push(_c),e&&(r.push(`${J}-target-translation-theme-${e}`),t?r.push(`${Ii}-theme-${e}`):r.push(`${Ri}-theme-${e}`)),n.length>0&&r.push(...n),t?r.push(Ii):r.push(Ri),r}function v0(e){let t=["notranslate",Mc];return e&&t.push(`${J}-target-translation-theme-${e}-inner`),t}function d3(e,t,n){let{rule:a,state:r}=n,{translationTheme:u}=r,{variables:o,isVertical:i}=e;o=o||[];let{text:s}=t,{wrapperPrefix:c,wrapperSuffix:l}=a,m=nr(n),g="afterend",f=m[0],d=m[1],b=`${f}(\\d+)${d}`,T=new RegExp(b,"g"),h=Le.sanitize(s);o.length>0&&(h=h.replace(T,B=>{let x=h.indexOf(B),L=h[x-1]===" ",M=h[x+B.length]===" ",w=B.slice(m[0].length,-m[1].length),E=Number(w);if(isNaN(E))return B;let I=o[Number(E)];if(I&&I.type==="element"){let F=I.value.outerHTML;return L||(F=" "+F),M||(F=F+" "),F}else U.error("variable type not supported",I,B);return B}));let C=w0(u,e.inline,a.translationClasses||[],e.preWhitespace);i&&C.push(Fc);let v=v0(u),O="";return a.translationBlockStyle&&(O=`style="${a.translationBlockStyle}"`),h=`<${n.rule.targetWrapperTag} ${O} class="${C.join(" ")}" ${wn}="1"><${a.targetWrapperTag} class="${v.join(" ")}" ${wn}="1">${h}`,e.inline||(c==="smart"?h=`
${h}`:h=`${c}${h}`),e.inline&&(c!=="smart"?h=`${c}${h}`:h=`<${a.targetWrapperTag} class="notranslate" ${wn}="1"> ${h}`),l==="smart"?h=`${h}`:h=`${h}${l}`,{html:h,position:g}}function ko(e,t){let n=null,{stayOriginalSelectors:a,delimiters:r,isPreWhitespace:u}=t,o=[],i={};for(let s=0;s2&&(T=`<${r[2]}${b}>`),i[b]=c,o.push({text:T,type:"variable"})}else o.push({text:c.textContent||"",type:"text"});else{let d=c.textContent||"";m&&(d=ua(k0(c))),o.push({text:d,type:"text"})}else if(c.nodeType===Node.ELEMENT_NODE)if(c&&Dt(c,a)){let b=Object.keys(i).length,T=`${r[0]}${b}${r[1]}`;r.length>2&&(T=`<${r[2]}${b}>`),i[b]=c;let h=S0(o).endsWith(" ")?" ":"",C=ua(c.innerText||c.textContent),v=ua(c.nextSibling).startsWith(" ")?" ":"",O=ru(h+C+v),B=O[0]+T+O[1];if(h===" ")B=B.trimStart();else if(!B.startsWith(" ")){let x=ru(c.previousSibling)[1];x===""&&(x=" "),B=x+B}o.push({text:B,type:"variable"})}else{let d=S0(o).endsWith(" ")?" ":"",b=ua(c.innerText||c.textContent);m&&(b=ua(k0(c)));let T=ua(c.nextSibling).startsWith(" ")?" ":"",h=ru(d+b+T),C=h[0]+(c.innerText?.trim()||c.textContent?.trim()||"")+h[1];if(d===" ")C=C.trimStart();else{let v=ru(c.previousSibling)[1];v===""&&(c.nodeName==="A"||c.nodeName==="CODE")&&(v=" "),C=v+C}o.push({text:C,type:"text"})}else{let d=S0(o).endsWith(" ")?" ":"",b="";c.textContent&&(b=ua(k0(c))),d===" "&&(b=b.trimStart()),o.push({text:b,type:"text"})}}if(o&&o.length>0){let s="";for(let c=0;c0&&(m=o[c-1].text),c2){let l=c[2];return b9({delimiterTag:l,targetText:e.targetText,inline:r,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:a}).html}else{let l=d3(s,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return l.html}}function k0(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function b9(e){let{delimiterTag:t,inline:n,translationClasses:a,targetWrapperTag:r,wrapperPrefix:u,variables:o,preWhitespace:i,wrapperSuffix:s,translationTheme:c,translationBlockStyle:l}=e;o=o||[];let m=e.targetText;m=Le.sanitize(m);let g=m,f=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),d=new RegExp(`<${t}(\\d+)>`);o.length>0&&(g=g.replace(f,C=>{let v=g.indexOf(C),O=g[v-1]===" ",B=g[v+C.length]===" ",x=C.match(d);if(!x)return C;let L=x[1],M=Number(L);if(isNaN(M))return C;let w=o[Number(M)];if(w&&w.type==="element"){let E=w.value.outerHTML;return O||(E=" "+E),B||(E=E+" "),E}else if(w&&w.type==="text"){let E=w.value;return O||(E=" "+E),B||(E=E+" "),E}else U.error("variable type not supported",w,C);return C}));let b=w0(c,n,a||[],i),T=v0(c),h="";return l&&(h=`style="${l}"`),g=`<${r} ${h} class="${b.join(" ")}" ${wn}="1"><${r} class="${T.join(" ")}" ${wn}="1">${g}`,n||(u==="smart"?g=`
${g}`:g=`${u}${g}`),n&&(u!=="smart"?g=`${u}${g}`:g=`<${r} class="notranslate" ${wn}="1"> ${g}`),s==="smart"?g=`${g}`:g=`${g}${s}`,{html:g,position:"afterend"}}function S0(e){let t=e[e.length-1];return t?t.text:""}function un(e){let t=e.rule.selectors,n=e.rule.excludeTags,a=e.rule.additionalExcludeTags,r=e.rule.excludeSelectors,u=e.rule.additionalExcludeSelectors;return e.state.translationArea==="body"&&(t=[],r=[]),{globalStyles:e.rule.globalStyles,globalAttributes:e.rule.globalAttributes,selectors:t,skipEditableCheck:e.rule.skipEditableCheck,lineBreakMaxTextCount:e.rule.lineBreakMaxTextCount,isTransformPreTagNewLine:e.rule.isTransformPreTagNewLine,excludeSelectors:n.concat(a).map(i=>i.toLowerCase()).filter(i=>i!=="code"&&i!=="img").concat(r).concat(u),blockSelectors:e.rule.allBlockTags.map(i=>i.toLowerCase()).concat(e.rule.extraBlockSelectors),extraBlockSelectors:e.rule.extraBlockSelectors,extraInlineSelectors:e.rule.extraInlineSelectors.concat(e.rule.additionalInlineSelectors),stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(i=>i.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)}}var y9={sanitize:e=>e};function Ao(e,t){e.interruptEffectDOM||(e.walkContainer({id:e.id,container:t,filterRule:un(e.ctx),onParagraph:iu.bind(null,e),onFrame:n=>{D0(e,n,!0)},onIgnoreElement:n=>{e.ignoreResizeObserver?.observe(n)}}),Oa&&at(t,"consumeContainer",e.id))}function D0(e,t,n){try{if(e.injectCssToDocument(t,e.ctx),t instanceof HTMLIFrameElement){if(!ar(t))return;U.debug("onFrame fragment",t);let a=t.contentWindow?.document.body;a&&(sr(a,e,n),e.dynamicContainerObserver?.observe(a,{childList:!0,subtree:!0}))}else U.debug("onFrame shadowRoot",t.host),sr(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0})}catch{}}function sr(e,t,n=!0){let{globalStyles:a,globalAttributes:r}=un(t.ctx),u=0;if(s(t,e,n))return;if(xn(e)&&i(e)){o(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,l=>(xn(l)&&(a&&b0(l,a),r&&x0(l,r)),s(t,l,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(jt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode();){jt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let l=c.currentNode;if(i(l))for(o(l);;){if(c.nextSibling()){let m=c.currentNode;if(jt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),i(m)){o(m);continue}else break}if(!c.parentNode())return}}}catch{}if(u==0&&e instanceof HTMLElement){o(e);return}return t.observeContainers;function o(c){jt.clearMark(c),u++,t.immediateTranslateCapacity>=0?Ao(t,c):(Oa&&at(c,"observeContainer",t.id),t.containerVisibleObserver?.observe(c))}function i(c){let l=c.nodeName.toLowerCase();if(c.shadowRoot)return D0(t,c.shadowRoot,n),!1;if(l==="iframe")return D0(t,c,n),!1;if(["script","#document-fragment","img"].includes(l))return!1;let m=t.containerRule;if(m.selectors&&m.selectors?.length>0)return vo(c,m.selectors);if(m.pageHeight){let g=c.scrollHeight;if(g>0&&g0)return!0}return!1}function s(c,l,m){if(l.nodeName.toLowerCase()=="script")return l.childNodes.length==0||l.childNodes.length==1&&l.childNodes[0].nodeType==Node.TEXT_NODE;if(l.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(l.nodeType!==Node.ELEMENT_NODE||m&&jt.isMarked(l,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&l.nodeName==="PRE")return!1;let f=un(c.ctx);return!!E0(l,{excludeSelectors:f.excludeSelectors,selectors:f.selectors,stayOriginalSelectors:f.stayOriginalSelectors})}}function L0(e,t){if(!e.targetNodes)return;let n=e.state||"original",a=e.commonAncestorContainer;if(!jt.isMarked(a,e.ctxId))return;let r=a.contains(e.rootNodes[0]),u=a.contains(e.targetNodes[0]);if(r&&u)n="dual";else if(r)n="original";else if(u)n="translation";else return;if(t!=n){e.state=t;try{if(n=="dual"&&t=="translation"&&(So(e.rootNodes),p3(e.commonAncestorContainer)),n=="original"&&t=="translation"){let o=A0(e.rootNodes);if(So(e.rootNodes),g3(o))return;ir(o,a,e.targetNodes||[]),p3(e.commonAncestorContainer)}if(n=="translation"&&t=="dual"){let o=e.targetNodes[0];ir(o,a,e.rootNodes||[]),f3(e.commonAncestorContainer)}if(n=="original"&&t=="dual"){let o=A0(e.rootNodes);if(g3(o))return;ir(o,a,e.targetNodes||[]),f3(e.commonAncestorContainer)}if(n=="translation"&&t=="original"){let o=A0(e.targetNodes);So(e.targetNodes),ir(o,a,e.rootNodes||[])}n=="dual"&&t=="original"&&So(e.targetNodes)}catch(o){U.error(o)}}}function g3(e){return!e||!xn(e)?!1:e.classList.contains(qt)}function p3(e){if(!xn(e))return;e.querySelectorAll("font[class*=immersive-translate-target-translation]").forEach(a=>{at(a,"immersiveTranslateClassBak",a.className),a.className="notranslate immersive-translate-target-dual"});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.add("immersive-translate-state-dual")}function f3(e){if(!xn(e))return;e.querySelectorAll("font[class*=immersive-translate-target-dual]").forEach(a=>{let r=tr(a,"immersiveTranslateClassBak");To(a,"immersiveTranslateClassBak"),a.className=r});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.remove("immersive-translate-state-dual")}function A0(e){return e?e[e.length-1].nextSibling:null}function So(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function ir(e,t,n){let a=e;t&&(a?n.forEach(r=>{a.parentNode?.insertBefore(r,a)}):n.forEach(r=>{t.appendChild(r)}))}var x9=xt(M0,300);async function iu(e,t,n=!1){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||E9(t.rootNodes)||t.stepState>=2)return;t.stepState=2,Oa&&at(a,"onParseParagraph",e.id);let{ctx:r}=e,{rule:u}=r,o=nr(r),i=ko(t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:o,stayOriginalSelectors:r.rule.stayOriginalTags.concat(r.rule.stayOriginalTags).map(c=>c.toLowerCase()).concat(r.rule.stayOriginalSelectors).concat(r.rule.additionalStayOriginalSelectors)});if(!i)return;t.variables=i?.variables||{},t.text=i?.text;let s=await F0(t,{excludeLanguages:r?.config?.translationLanguagePattern?.excludeMatches||[],targetLanguage:r.targetLanguage,noTranslateRegexp:r.rule.noTranslateRegexp,delimiters:Co(r.config.translationServices[r.translationService]?.placeholderDelimiters),minTextCount:n||r.state.translationArea==="body"?2:u.paragraphMinTextCount,minWordCount:n||r.state.translationArea==="body"?1:u.paragraphMinWordCount,isDetectParagraphLanguage:r.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:r.rule.ignoreZhCNandZhTW});if(s){if(U.debug("on paragraph",s.text,s),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(s))return;a.paragraphs.push(s),e.immediateTranslateCapacity>0||n?(T9(e,t.text),P0(e,t)):(Oa&&at(a,"observeParagraph",e.id),e.observeParagraphs.push(s),e.paragraphVisibleObserver?.observe(a))}return s}function E9(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?xn(t)&&t.classList.contains(qt):!1}function T9(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function P0(e,t){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let n=e.autoIncreaseParagraphId++;t.id=n.toString(),e.paragraphEntities[n]=t,e.paragraphQueue.push(n.toString()),Oa&&at(t.commonAncestorContainer,"consumeParagraph",e.id),x9.call(e,e.ctx)}async function M0(e){if(this.interruptEffectDOM)return;let t=this.paragraphQueue;this.paragraphQueue=[];let n=[];for(let a=0;a0)try{await In(a,t,(r,u,o)=>{let i=o.id,s=C9(e,i.toString());s&&w9.call(null,r,u,o,s,t,n)})}catch(r){U.error("translateCurrentQueue error",r);return}}function C9(e,t){return e.find(n=>n.id===t)}function w9(e,t,n,a,r,u){let o=!1,i=a;if(rr(i.commonAncestorContainer,n.id)?.remove(),i&&(e||!t)){e||(U.error("translate error",n,e,t),e=new Error("no response from server"));let{rule:s}=r,c=n.id,l=document.createElement(s.targetWrapperTag);at(l,Sc,c.toString()),l.classList.add("notranslate",qt,qt+"-error"),l.setAttribute("translate","no"),l.setAttribute("lang",r.targetLanguage);let m=a.rootNodes[a.rootNodes.length-1].nextSibling;ir(m,a.commonAncestorContainer,[l]),v9(r,e);let g=e.message.replaceAll(` -`,"");if(g=g.replaceAll('"',"""),i&&(i.error=new Error(g)),l){let f=Nn(Rt,"retryAllParagraphs",r.config.interfaceLanguage,"zh-CN"),d=Nn(Rt,"errorTooltipTitle",r.config.interfaceLanguage,"zh-CN"),b=`<${s.targetWrapperTag} class="${J}-error notranslate"><${s.targetWrapperTag} class="${J}-error-wrapper">\u{1F504}  \u2753`;l.innerHTML=Le.sanitize(b)}}else if(a){if(i.error=void 0,a.targetText=t?.text||"",!(a.text?.toLocaleLowerCase()==a.targetText?.toLocaleLowerCase())){let c=m3(a,r),l=document.createElement(r.rule.targetWrapperTag);l.classList.add("notranslate",qt),l.setAttribute("lang",r.targetLanguage),l.setAttribute(wn,"1");let m=y9.sanitize(c);l.innerHTML=m,a.targetNodes=[l],L0(a,u)}o=!0}else U.error("paragraph not found",n.id);document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}))}async function F0(e,t){let{text:n}=e,a=await Ke({text:n||"",minLength:15,pageLangs:[ct(),"en"]}),{targetLanguage:r}=t;if(!Qm({text:n||"",delimiters:t.delimiters,minWordCount:t.minWordCount,minTextCount:t.minTextCount,noTranslateRegexp:t.noTranslateRegexp}))return null;let o=t.excludeLanguages||[],i=uo();t.isDetectParagraphLanguage&&(i="auto");let s=ct(),c=a;c==="auto"&&!t.isDetectParagraphLanguage&&(c=s),e.languageByLocal=c,e.languageByClient=i;let l=i!=="auto"?i:c;return $n(l,r,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW})||o.length>0&&o.some(f=>$n(l,f,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW}))?null:e}function v9(e,t){if(t.message.startsWith("ProQuota:")){t.message=t.message.replace("ProQuota:","");let n=t.message;try{n=JSON.parse(t.message).error}catch(u){U.error(u)}t.message=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${t.message} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`;let a=e.translationService,r=a=="deepl"?"OpenAI":"Deepl";e.translationService=="openai"?a="OpenAI":e.translationService=="deepl"&&(a="Deepl"),document.dispatchEvent(new CustomEvent(vu,{detail:{type:"ProQuotaExceeded",subscriptionType:e.user?.subscription?.subscriptionType,translationService:a,anotherService:r,message:n}}))}}p();var k9=[];function h3(e){k9.push(e)}p();function b3(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(a){a.length>0&&(a[0].target.text.includes(Du)||_0(e).catch(u=>{U.error("translateTitle error:",u.name,u.message,u.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var Lo="";async function _0(e){let t=document.title;if(!t||t.includes(Du))return;Lo!==t&&(Lo=t);let n=await Ke({text:t,pageLangs:[ct(),"en"]});if(!wo(e,n))try{let a=await Ca({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n},e);a&&a.text&&(document.title=Lo+Du+a.text)}catch(a){throw a}}function y3(e){e.rule.isTranslateTitle&&(document.title=Lo)}p();var B0="Original";function qe(){return B0}function Lt(e){B0=e,x3(B0)}p();var R0;function E3(e){let t=e.ctx.rule.aiRule;if(U.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=un(e.ctx),a=n.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);n.excludeSelectors.splice(a,1);let r,u;document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(g=>{g.translated=!0,su(e,g,n)});let o=t.streamingDelayTime||100;R0=new MutationObserver(g=>{g.forEach(function(f){if(xn(f.target)&&!s(f)&&(l(f.target),f.addedNodes&&f.addedNodes.length&&f.addedNodes.forEach(d=>{l(d)}),!c(f)&&i())){let d=f.target===u;if(t.streamingDeepChild&&!d&&(d=f.target.parentNode===u),!d)return;f.addedNodes.forEach(b=>{let T=b.previousSibling;!T||T.translated||(T.translated=!0,setTimeout(()=>{T.childNodes[0]?.translated||(U.debug("\u7FFB\u8BD1\u4E0A\u4E00\u4E2A\u6BB5\u843D",T),su(e,T,n))},o))})}})}),R0.observe(document.body,{attributes:!0,childList:!0,subtree:!0});function i(){return!!(t.streamingChange&&t.streamingSelector&&r||t.streamingChange&&t.messageContainerSelector&&t.messageStreamEndSelector&&u&&!u.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector))}function s(g){return t.streamingSelector&&g.target===r&&g.type==="attributes"&&!yn(g.target,[t.streamingSelector])?(m(),!0):t.streamingSelector&&g.removedNodes.length>0&&u&&u!=r?(g.removedNodes?.forEach(f=>{f===r&&m()}),!0):t.messageContainerSelector&&t.messageStreamEndSelector&&u&&u.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector)?(m(),!0):!1}function c(g){if(t.streamingSelector&&g.target.querySelector(t.messageWrapperSelector||"")&&!r){let f=g.target;return f.translated||(f.translated=!0,setTimeout(()=>{r||f.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(d=>{d.translated||(d.translated=!0,su(e,d,n))})},o)),!0}else if(t.messageContainerSelector&&g.target.querySelector(t.messageContainerSelector||"")){let f=g.target;if(f.translated)return!0;f.translated=!0,setTimeout(()=>{f.querySelectorAll(t.messageContainerSelector).forEach(d=>{t.messageStreamEndSelector&&!d.querySelector(t.messageStreamEndSelector)||d.translated||(d.translated=!0,su(e,d,n))})},o)}return!1}function l(g){t.streamingSelector&&yn(g,[t.streamingSelector])&&(r=g,U.debug("streamingNode",r)),yn(g,[t.messageWrapperSelector])&&(u=g,U.debug("markdownNode",u))}function m(){u&&setTimeout(()=>{u.childNodes.forEach(g=>g.translated=!1),U.debug("\u7ED3\u675F\u7FFB\u8BD1\u5168\u90E8",u),su(e,u,n),r=void 0,u=null},o)}}function su(e,t,n){oa({id:e.id,container:t,filterRule:n,force:!0,onParagraph:a=>{iu(e,a,!0)},onFrame:()=>{},onIgnoreElement:()=>{}})}function T3(){R0?.disconnect()}var ne=null;function Mo(){return ne||null}function lr(e){S9(e),_9(e),P9(e),F9(e),or(document,e),Lt("Translated"),M9(ne),L9(ne),h3(jn),A9(ne)}function S9(e){e.state.translationArea==="main"&&e.rule.initialSelectorGlobalAttributes&&a3(document.body,e.rule.initialSelectorGlobalAttributes,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph)}function A9(e){E3(e)}function D9(){T3()}function L9(e){e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0});let t=[];e.ctx.rule.mainFrameSelector&&(t=[...document.querySelectorAll(e.ctx.rule.mainFrameSelector||"")]),t.length<=0&&(t=[document.body]),t.forEach(n=>{sr(n,e)})}async function P9(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=Date.now(),a=new URL(e.url).hostname,r=e.localConfig.tempTranslationUrlMatches||[],u=r.findIndex(i=>i.match===a&&i.expiredAt>t),o=!1;u>-1||(r.push({match:a,expiredAt:t+e.config.tempTranslateDomainMinutes*60*1e3}),o=!0),o&&await kn({...e.localConfig,tempTranslationUrlMatches:[...r]})}}function M9(e){e.ctx.rule.isTranslateTitle&&(_0(e.ctx),e.titleDynamicObserver=b3(e.ctx))}function F9(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function _9(e){let t=Wt();ne&&(t=ne.id);let n=un(e);ne=ne||{},ne.ctx=e,ne.id=t,ne.paragraphQueue=ne.paragraphQueue||[],ne.rule={excludeSelectors:n.excludeSelectors||[],selectors:n.selectors||[]},ne.currentUrl=window.location.href,ne.containerRule={pageHeight:screen.availHeight,selectors:n.selectors},ne.translationService=e.translationService,ne.paragraphEntities=ne.paragraphEntities||{},ne.autoIncreaseParagraphId=ne.autoIncreaseParagraphId||1,ne.interruptEffectDOM=!1,ne.urlChangeDelay=e.rule.urlChangeDelay,ne.immediateTranslateCapacity=e.state.immediateTranslationTextCount,ne.observeContainers=ne.observeContainers||[],ne.observeParagraphs=ne.observeParagraphs||[],ne.dynamicContainerObserver=ne.dynamicContainerObserver||N9(ne),ne.ignoreResizeObserver=ne.ignoreResizeObserver||j9(ne),ne.containerVisibleObserver=ne.containerVisibleObserver||R9(ne),ne.paragraphVisibleObserver=ne.paragraphVisibleObserver||I9(ne),ne.injectCssToDocument=Po,ne.walkContainer=oa,ne.translateState=e.state.translationMode||e.config.translationMode||"dual",ne.allInlineWindows=[window],window.onerror=B9(ne,e),window.immersiveTranslateSwitchTranslateState=O0.bind(ne)}function w3(e,t){t.getRootNode()instanceof ShadowRoot?Po(t.getRootNode(),e):Po(t.ownerDocument,e),I0(e)}function I0(e){if(ne)return;ne={},ne.ctx=e,ne.id=Wt(),ne.paragraphQueue=[],ne.injectCssToDocument=Po;let t=un(e);ne.rule={excludeSelectors:t.excludeSelectors,selectors:t.selectors||[]},ne.translationService=e.mouseHoverTranslationService,ne.currentUrl=window.location.href,ne.paragraphEntities={},ne.autoIncreaseParagraphId=1,ne.interruptEffectDOM=!1,ne.urlChangeDelay=e.rule.urlChangeDelay,ne.translateState=e.config.translationMode||"dual",ne.observeContainers=[],ne.observeParagraphs=[],ne.allInlineWindows=[window],window.switchTranslateState=O0.bind(ne)}function jn(e=!0){ne&&(Lt("Original"),D9(),ne.interruptEffectDOM=!0,ne.ignoreResizeObserver?.disconnect(),ne.dynamicContainerObserver?.disconnect(),ne.containerVisibleObserver?.disconnect(),ne.paragraphVisibleObserver?.disconnect(),ne.titleDynamicObserver?.disconnect(),y3(ne.ctx),Vm(),Ym(),e&&O0.call(ne,"original"),Object.values(ne.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),ne=null)}function B9(e,t){e.interruptEffectDOM=!1;let n;return function(a){let r=a.message,u=!1;return r?.indexOf("Minified React error")>=0&&(u=!0),u&&(clearTimeout(n),jn(),n=setTimeout(()=>{lr(t)},e.urlChangeDelay||2e3)),!0}}function R9(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{a.intersectionRatio>0&&(Ao(e,a.target),n.unobserve(a.target))})})}function I9(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{if(a.intersectionRatio>0){let r=a.target;(r.paragraphs||[]).forEach(o=>{P0(e,o)}),n.unobserve(r)}})})}var C3;function O9(e){if(e.urlChangeDelay<=0)return!1;let n=(window.location.href||"").split("#")[0];return e.currentUrl.split("#")[0]!=n?(clearTimeout(C3),e.translateState=="original"?!1:(jn(e.urlChangeDelay>20),C3=setTimeout(()=>{let r=e.ctx;lr(r)},e.urlChangeDelay),!0)):!1}function N9(e){return new MutationObserver(t=>{if(!O9(e)&&!e.interruptEffectDOM)for(let n of t){let a=e.ctx.rule.mutationObserverLimitTargetSelectors;if(a.length>0&&!yn(n.target,a))return;if((n.addedNodes||[]).length<=0||n.target.nodeType!==Node.ELEMENT_NODE||!jt.isSkipMarkEle(n.target)&&!jt.isMarked(n.target,e.id))continue;let u=(n.target?.paragraphs||[]).reduce((o,i)=>{let s=i.rootNodes||[],c=i.targetNodes||[];return[...o,...s,...c]},[]);if(n.addedNodes.length>0&&n.addedNodes.length===n.target.childNodes.length&&yn(n.target,e.ctx.rule.mutationObserverContainerSelectors)){jt.clearMark(n.target),n.target.paragraphs=void 0,Ao(e,n.target);return}n.addedNodes.forEach((o,i)=>{o.nodeType===Node.ELEMENT_NODE&&(u.includes(o)||Dt(o,e.ctx.rule.mutationExcludeSelectors)||sr(o,e))})}})}function j9(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let a of t){if(a.target.nodeType!==Node.ELEMENT_NODE)return;let r=a.target,u=globalThis.getComputedStyle(r);y0(u)||(n.unobserve(a.target),sr(r,e))}})}function O0(e){this.translateState=e,Object.values(this.paragraphEntities).forEach(t=>{L0(t,e)}),e=="original"&&document.querySelectorAll(`.${qt}`).forEach(t=>t.remove())}function Po(e,t){if(e instanceof HTMLIFrameElement){or(e.contentDocument,t);return}or(e,t)}async function v3(e){let t=nt(),n="auto";if(he()){let a="";e.rule.isEbook||e.rule.isEbookBuilder?(a=g0(e.mainFrame),n=await Ke({text:a,pageLangs:["en"]})):(a=er(e.mainFrame).slice(0,1e3),n=await Ke({text:a,pageLangs:[pa(),"en"]}))}else if(t)n=await Ke({text:er(e.mainFrame).slice(0,1e3),pageLangs:[pa(),"en"]});else if(e.rule.isEbook||e.rule.isEbookBuilder){let a="";a=g0(e.mainFrame),n=await Ke({text:a,pageLangs:["en"]})}else n=await S3();return n==="auto"&&(n=await l3()),ks(n),n}async function k3(){if(!ne)return;document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=ne.paragraphEntities,t=Object.keys(e);for(let n of t){let a=e[n];if(a.error){ne.paragraphQueue.push(n);let u=a.commonAncestorContainer.querySelector(`[${Su}='${n}']`);u&&u.remove()}}M0.call(ne,ne.ctx)}p();p();var A3={"zh-CN":{"languages.en":"\u82F1\u8BED","languages.ja":"\u65E5\u8BED","languages.ko":"\u97E9\u8BED","languages.es":"\u897F\u73ED\u7259\u8BED","languages.fr":"\u6CD5\u8BED","languages.de":"\u5FB7\u8BED","languages.it":"\u610F\u5927\u5229\u8BED","languages.pt":"\u8461\u8404\u7259\u8BED","languages.ru":"\u4FC4\u8BED","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"},"zh-TW":{"languages.en":"\u82F1\u8A9E","languages.ja":"\u65E5\u8A9E","languages.ko":"\u97D3\u8A9E","languages.es":"\u897F\u73ED\u7259\u8A9E","languages.fr":"\u6CD5\u8A9E","languages.de":"\u5FB7\u8A9E","languages.it":"\u610F\u5927\u5229\u8A9E","languages.pt":"\u8461\u8404\u7259\u8A9E","languages.ru":"\u4FC4\u8A9E","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"}},D3={...Rt,"zh-CN":{...A3["zh-CN"],...Rt["zh-CN"]},"zh-TW":{...A3["zh-TW"],...Rt["zh-TW"]}},L3=D3;function cr(e,t,n){return Nn(D3,e,t,Lu,n)}var Fo=(e,t,n,a)=>{let r=Rc[e]||e,u=Ic[e],o=Oc[e],i={"zh-CN":u,"zh-TW":o,en:r};if(n)return i[e]?i[e]:r;if(i[t]){let s=i[t];return a||e==="auto"||e==="placeholder"?s:`${s} (${r})`}else return r};p();p();function dr(e){mr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(a=>{U.error("send content message request failed",e,a)}),document.querySelectorAll("iframe").forEach(a=>{a.contentWindow&&a.contentWindow.postMessage({author:wu,payload:e},"*")});let n=new CustomEvent(Wn,{detail:e});globalThis.document.dispatchEvent(n)}function N0(e){let t=e.shortcuts||{},a=Object.keys(t).reduce((u,o)=>(u[t[o]]=o,u),{}),r=Object.keys(a);for(let u of r){let o=u.replace(/MacCtrl/ig,"Ctrl");o&&Ye(o,i=>{i.preventDefault(),dr({method:a[u],data:{trigger:"shortcut"}})})}}p();p();p();p();p();var No,ve,B3,z9,lu,P3,R3,Ro={},I3=[],U9=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ia(e,t){for(var n in t)e[n]=t[n];return e}function O3(e){var t=e.parentNode;t&&t.removeChild(e)}function z0(e,t,n){var a,r,u,o={};for(u in t)u=="key"?a=t[u]:u=="ref"?r=t[u]:o[u]=t[u];if(arguments.length>2&&(o.children=arguments.length>3?No.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(u in e.defaultProps)o[u]===void 0&&(o[u]=e.defaultProps[u]);return _o(e,o,a,r,null)}function _o(e,t,n,a,r){var u={type:e,props:t,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++B3};return r==null&&ve.vnode!=null&&ve.vnode(u),u}function Kt(e){return e.children}function Bo(e,t){this.props=e,this.context=t}function gr(e,t){if(t==null)return e.__?gr(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?_o(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=n,f.__b=n.__b+1,(g=h[l])===null||g&&f.key==g.key&&f.type===g.type)h[l]=void 0;else for(m=0;m=n.__.length&&n.__.push({__V:zo}),n.__[e]}function De(e){return du=1,$9(eg,e)}function $9(e,t,n){var a=Ho(mu++,2);if(a.t=e,!a.__c&&(a.__=[n?n(t):eg(void 0,t),function(u){var o=a.__N?a.__N[0]:a.__[0],i=a.t(o,u);o!==i&&(a.__N=[i,a.__[1]],a.__c.setState({}))}],a.__c=et,!et.u)){et.u=!0;var r=et.shouldComponentUpdate;et.shouldComponentUpdate=function(u,o,i){if(!a.__c.__H)return!0;var s=a.__c.__H.__.filter(function(l){return l.__c});if(s.every(function(l){return!l.__N}))return!r||r.call(this,u,o,i);var c=!1;return s.forEach(function(l){if(l.__N){var m=l.__[0];l.__=l.__N,l.__N=void 0,m!==l.__[0]&&(c=!0)}}),!!c&&(!r||r.call(this,u,o,i))}}return a.__N||a.__}function Ge(e,t){var n=Ho(mu++,3);!ve.__s&&X3(n.__H,t)&&(n.__=e,n.i=t,et.__H.__h.push(n))}function qo(e){return du=5,W0(function(){return{current:e}},[])}function W0(e,t){var n=Ho(mu++,7);return X3(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function sa(e,t){return du=8,W0(function(){return e},t)}function Wo(e){var t=et.context[e.__c],n=Ho(mu++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(et)),t.props.value):e.__}function K9(){for(var e;e=Z3.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Uo),e.__H.__h.forEach(q0),e.__H.__h=[]}catch(t){e.__H.__h=[],ve.__e(t,e.__v)}}ve.__b=function(e){typeof e.type!="function"||e.o||e.type===Kt?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),et=null,K3&&K3(e)},ve.__r=function(e){G3&&G3(e),mu=0;var t=(et=e.__c).__H;t&&(H0===et?(t.__h=[],et.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=zo,n.__N=n.i=void 0})):(t.__h.forEach(Uo),t.__h.forEach(q0),t.__h=[])),H0=et},ve.diffed=function(e){V3&&V3(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Z3.push(t)!==1&&$3===ve.requestAnimationFrame||(($3=ve.requestAnimationFrame)||G9)(K9)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==zo&&(n.__=n.__V),n.i=void 0,n.__V=zo})),H0=et=null},ve.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Uo),n.__h=n.__h.filter(function(a){return!a.__||q0(a)})}catch(a){t.some(function(r){r.__h&&(r.__h=[])}),t=[],ve.__e(a,n.__v)}}),Y3&&Y3(e,t)},ve.unmount=function(e){J3&&J3(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(a){try{Uo(a)}catch(r){t=r}}),n.__H=void 0,t&&ve.__e(t,n.__v))};var Q3=typeof requestAnimationFrame=="function";function G9(e){var t,n=function(){clearTimeout(a),Q3&&cancelAnimationFrame(t),setTimeout(e)},a=setTimeout(n,100);Q3&&(t=requestAnimationFrame(n))}function Uo(e){var t=et,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),et=t}function q0(e){var t=et;e.__c=e.__(),et=t}function X3(e,t){return!e||e.length!==t.length||t.some(function(n,a){return n!==e[a]})}function eg(e,t){return typeof t=="function"?t(e):t}p();p();var pr={},V9={root:"",lang:"en",fallbackLang:"en"};function $0(e,t){let n=Object.assign({},V9,e);pr=t||pr;let[a,r]=De(n.lang),[u,o]=De(pr),[i,s]=De(!1),c=m=>{if(u.hasOwnProperty(m))return;s(!1);let g=c3(n.root||"",m);n.getUrl&&(g=n.getUrl(n.root||"",m),fetch(g).then(f=>f.json()).then(f=>{pr[m]=f,o({...pr}),s(!0)}).catch(f=>{o({...pr}),s(!0)}))};return Ge(()=>{c(n.fallbackLang||"en"),c(a)},[a]),{lang:a,setLang:r,t:(m,g)=>{if(!u.hasOwnProperty(a))return m;let f=ou(u,a,m);return f===m&&a!==n.fallbackLang&&(f=ou(u,n.fallbackLang,m)),C0(f,g)},isReady:i}}p();p();var Y9=0;function V(e,t,n,a,r){var u,o,i={};for(o in t)o=="ref"?u=t[o]:i[o]=t[o];var s={type:e,props:i,key:n,ref:u,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Y9,__source:r,__self:a};if(typeof e=="function"&&(u=e.defaultProps))for(o in u)i[o]===void 0&&(i[o]=u[o]);return ve.vnode&&ve.vnode(s),s}var G0=jo(null),K0={root:"assets",lang:"en",fallbackLang:"en"},tg=e=>{let{t,setLang:n,lang:a,isReady:r}=$0({root:e.root||K0.root,lang:e.lang||K0.lang,fallbackLang:e.fallbackLang||K0.fallbackLang,getUrl:e.getUrl},e.translations);return V(G0.Provider,{value:{t,setLang:n,lang:a,isReady:r},children:e.children})};p();p();function ng(e,t,n){let a=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),a=t!=="auto"?n[t].matches:[];let r={},u=Object.keys(n);for(let c of u){let m=n[c].matches;for(let g of m)r[g]||(r[g]=[]),r[g].push(c)}let o=r[e];if(o&&o.length>0)for(let c of o)n[c].matches.indexOf(e)>-1&&(n[c]={...n[c],matches:n[c].matches.filter(m=>m!==e)});let i=new Set(a);if(t==="auto")return{...n};i.add(e);let s=Array.from(i);return{...n,[t]:{...n[t],matches:s}}}p();p();function V0(){return V("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[V("path",{d:"M10.3873 2.29166C10.6319 2.29193 10.8664 2.38929 11.0392 2.56234C11.2121 2.73539 11.3092 2.96998 11.3092 3.21457V4.07811L12.1175 4.38332C12.7273 4.61277 13.2952 4.94074 13.7988 5.35416L14.4675 5.90207L15.2165 5.46978L15.2394 5.45624C15.3787 5.37479 15.5373 5.332 15.6988 5.33228C15.861 5.3325 16.0203 5.37522 16.1608 5.45618C16.3014 5.53715 16.4182 5.65353 16.4998 5.79374L16.8925 6.47395C17.0145 6.68593 17.0475 6.93764 16.9843 7.17391C16.921 7.41019 16.7666 7.61173 16.555 7.73436L16.5321 7.74791L15.7842 8.17916L15.9227 9.0302C16.031 9.67953 16.031 10.3423 15.9227 10.9917L15.781 11.8458L16.531 12.2781L16.5467 12.2875C16.758 12.4101 16.9122 12.6115 16.9754 12.8475C17.0387 13.0835 17.0059 13.335 16.8842 13.5469L16.5154 14.1844C16.3932 14.3961 16.1919 14.5507 15.9558 14.6141C15.7196 14.6776 15.468 14.6448 15.256 14.5229L15.2415 14.5135L14.4904 14.0802L13.8206 14.6323C13.3125 15.0519 12.7384 15.3845 12.1217 15.6167L11.3133 15.9219V16.7864C11.3132 16.9078 11.2891 17.028 11.2425 17.14C11.1958 17.2521 11.1276 17.3539 11.0415 17.4395C10.9555 17.5251 10.8535 17.5929 10.7412 17.6391C10.6289 17.6852 10.5087 17.7087 10.3873 17.7083H9.61229C9.3677 17.708 9.13322 17.6107 8.96037 17.4376C8.78751 17.2646 8.69042 17.03 8.69042 16.7854V15.9219L7.88209 15.6167C7.27233 15.3872 6.70437 15.0592 6.20084 14.6458L5.53209 14.0979L4.78313 14.5302L4.76021 14.5437C4.62084 14.6252 4.46226 14.668 4.30084 14.6677C4.13864 14.6675 3.97932 14.6248 3.83877 14.5438C3.69823 14.4628 3.58135 14.3464 3.49979 14.2062L3.10709 13.526C2.98505 13.3141 2.95205 13.0623 3.01532 12.8261C3.07858 12.5898 3.23296 12.3882 3.44459 12.2656L3.4675 12.2521L4.21542 11.8208L4.07688 10.9698C3.96856 10.3204 3.96856 9.65766 4.07688 9.00832L4.21854 8.1552L3.46959 7.72186L3.45709 7.70832C3.24914 7.58489 3.09787 7.38486 3.03575 7.15116C2.97362 6.91746 3.00559 6.66872 3.12479 6.45832L3.49354 5.82082C3.57469 5.68049 3.69133 5.56397 3.83175 5.48297C3.97217 5.40197 4.13144 5.35934 4.29354 5.35936C4.45497 5.35908 4.61355 5.40187 4.75292 5.48332L4.7675 5.49166L5.51854 5.92499L6.18834 5.37291C6.69646 4.95329 7.27054 4.62067 7.88729 4.38853L8.69563 4.08332V3.21874C8.69452 2.97433 8.79041 2.73945 8.96226 2.56565C9.13411 2.39185 9.36788 2.29331 9.61229 2.29166H10.3873ZM10.3873 1.04166H9.61229C9.03636 1.04193 8.4841 1.27084 8.07685 1.67809C7.66961 2.08533 7.4407 2.6376 7.44042 3.21353C6.69518 3.49423 6.00146 3.89618 5.38729 4.40312L5.37271 4.39478C4.87362 4.10685 4.2806 4.02894 3.72407 4.17818C3.16753 4.32742 2.69307 4.6916 2.405 5.19062L2.03729 5.83332C1.74928 6.33229 1.67121 6.92522 1.82025 7.48173C1.96929 8.03825 2.33324 8.51279 2.83209 8.80103L2.84771 8.80936C2.78023 9.20444 2.74539 9.6044 2.74354 10.0052C2.74367 10.3971 2.77572 10.7883 2.83938 11.175L2.81646 11.1885C2.56927 11.3311 2.35259 11.5209 2.1788 11.7472C2.00501 11.9735 1.87752 12.2319 1.80361 12.5075C1.7297 12.7831 1.71083 13.0706 1.74807 13.3535C1.7853 13.6364 1.87792 13.9091 2.02063 14.1562L2.41334 14.8364C2.55638 15.0837 2.74681 15.3003 2.97371 15.4738C3.20061 15.6473 3.45953 15.7743 3.73561 15.8475C4.01169 15.9208 4.29952 15.9388 4.58259 15.9007C4.86566 15.8625 5.13841 15.7688 5.38521 15.625L5.40813 15.6114C6.01714 16.1105 6.70362 16.5067 7.44042 16.7844C7.44028 17.0697 7.49635 17.3523 7.60542 17.616C7.7145 17.8797 7.87444 18.1193 8.07612 18.3212C8.27779 18.523 8.51726 18.6832 8.78084 18.7925C9.04441 18.9018 9.32694 18.9582 9.61229 18.9583H10.3873C10.9632 18.958 11.5155 18.7291 11.9227 18.3219C12.33 17.9146 12.5589 17.3624 12.5592 16.7864C13.3043 16.5061 13.9981 16.1045 14.6123 15.5979L14.6269 15.6062C15.126 15.8942 15.719 15.9721 16.2755 15.8228C16.8321 15.6736 17.3065 15.3094 17.5946 14.8104L17.9623 14.1729C18.2503 13.6739 18.3284 13.081 18.1793 12.5245C18.0303 11.968 17.6663 11.4934 17.1675 11.2052L17.1519 11.1969C17.2194 10.8018 17.2542 10.4018 17.256 10.001C17.2559 9.60915 17.2239 9.21792 17.1602 8.83124L17.1831 8.8177C17.4303 8.67516 17.647 8.48531 17.8208 8.259C17.9946 8.03269 18.1221 7.77435 18.196 7.49875C18.2699 7.22314 18.2888 6.93568 18.2515 6.65278C18.2143 6.36987 18.1217 6.09708 17.979 5.84999L17.5863 5.16978C17.4437 4.92202 17.2537 4.70485 17.027 4.53072C16.8003 4.3566 16.5415 4.22895 16.2654 4.1551C15.9893 4.08126 15.7013 4.06267 15.418 4.1004C15.1346 4.13814 14.8616 4.23145 14.6144 4.37499L14.5915 4.38853C13.9824 3.88946 13.296 3.49327 12.5592 3.21561C12.5593 2.93026 12.5032 2.64768 12.3942 2.384C12.2851 2.12031 12.1252 1.8807 11.9235 1.67883C11.7218 1.47695 11.4823 1.31678 11.2188 1.20746C10.9552 1.09813 10.6726 1.04179 10.3873 1.04166Z",fill:"#666666"}),V("path",{d:"M10.0003 7.91666C10.4124 7.91666 10.8152 8.03884 11.1578 8.26776C11.5004 8.49668 11.7674 8.82205 11.9251 9.20273C12.0828 9.58341 12.124 10.0023 12.0436 10.4064C11.9632 10.8106 11.7648 11.1818 11.4735 11.4731C11.1821 11.7645 10.8109 11.9629 10.4068 12.0433C10.0026 12.1237 9.58375 12.0824 9.20307 11.9247C8.82239 11.7671 8.49702 11.5 8.2681 11.1574C8.03918 10.8148 7.91699 10.412 7.91699 9.99999C7.91699 9.44745 8.13649 8.91755 8.52719 8.52685C8.91789 8.13615 9.44779 7.91666 10.0003 7.91666ZM10.0003 6.66666C9.34106 6.66666 8.69659 6.86215 8.14843 7.22842C7.60026 7.5947 7.17302 8.11529 6.92073 8.72438C6.66844 9.33346 6.60243 10.0037 6.73104 10.6503C6.85966 11.2969 7.17713 11.8908 7.6433 12.357C8.10948 12.8232 8.70342 13.1407 9.35003 13.2693C9.99663 13.3979 10.6669 13.3319 11.2759 13.0796C11.885 12.8273 12.4056 12.4001 12.7719 11.8519C13.1382 11.3037 13.3337 10.6593 13.3337 9.99999C13.3337 9.11593 12.9825 8.26809 12.3573 7.64297C11.7322 7.01785 10.8844 6.66666 10.0003 6.66666Z",fill:"#666666"})]})}p();function ag(e,t=2e3){return n=>{let a,r=0;return u=>{++r==e&&(n(u),r=0),clearTimeout(a),a=setTimeout(()=>r=0,t)}}}p();function rg(e){let t;try{t=new URL(e)}catch{return!1}let n=ug(),a="";try{a=new URL(n).hostname}catch{}return a&&t.hostname===a?!0:!(J9(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function J9(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}p();function og(e){let t=e.split(".");return t.length>2?(t[0]="*",t.join(".")):null}p();function ig(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}p();p();function zt(){return Wo(G0)}function zn(e){let{items:t,maxWidth:n,className:a}=e,{lang:r}=zt();return n=n||(r==="en"?144:160),V("select",{autoComplete:"off",class:a||"min-select",style:{maxWidth:`${n}px`},value:t.find(u=>u.selected)?.value,onChange:u=>{let o=u.target.value,i=t.find(s=>s.value===o);i&&i.onSelected(i)},children:t.map((u,o)=>V("option",{value:u.value,selected:u.selected,children:u.label},"selectlink"+o))})}p();var $o="DROP_DOWN_DEFAULT_VALUE";function Y0(e){let{showArrow:t,onSelected:n,className:a,menus:r,maxWidth:u}=e;a=a||"",t=t??!0,u=u||80;let o=qo(null);return V("select",{ref:o,autoComplete:"off",class:`text-label min-select ${t?"":"min-select-no-arrow"} ${a||""}`,value:$o,style:{maxWidth:`${u}px`},onChange:i=>{i.preventDefault();let s=i.target.value;if(o.current&&s!==$o){o.current.value=$o,o.current?.dispatchEvent(new Event("change"));let c=r.find(l=>l.value===s);c&&n(c)}},children:[{value:$o,label:e.label}].concat(r).map((i,s)=>V("option",{value:i.value,children:i.label},"option-"+s))})}p();function J0(e){let{field:t,onChange:n,value:a}=e;a=a||t.default||"";let{t:r}=zt(),u=t.name;return t.label&&(u=t.label),t.labelKey&&(u=r(t.labelKey)),t.type==="select"?V("div",{class:"flex justify-between items-center mb-2",children:[V("label",{class:"inline-block",children:[u,"\uFF1A"]}),V(zn,{items:t.options.map(o=>({label:`${o.label?r(o.label):o.value}`,value:o.value,selected:a===o.value,onSelected:()=>{n(o.value)}}))})]}):null}p();p();function gu(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var Q9=({date:e})=>{let{t}=zt(),[n,a]=De(!1);return Ge(()=>{setTimeout(()=>{a(!0)},5e3)},[]),n?null:V("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},Z9=({minVersion:e})=>{let{t}=zt();return V("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},X9=()=>{let{t:e}=zt();return V("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:"https://immersivetranslate.com/docs/installation/"})}})},eb=({message:e,handleSyncing:t,date:n})=>{let{t:a}=zt();return V("p",{class:"text-sm",children:[a("failToSyncRules")," ",V("a",{onClick:t,children:a("retry")}),V("br",{}),a("failedReason"),"\uFF1A",e,V("br",{}),a("currentRuleVersion"),"\uFF1A",n]})};function Q0(e){let{isShowError:t,request:n}=e,[a,r]=De(null),{t:u}=zt(),[o,i]=De(null),[s,c]=De(null),[l,m]=De(""),[g,f]=De(!1),[d,b]=De(!1),[T,h]=De(!1),[C,v]=De(null),[O,B]=De(null),x=an(),L=async()=>{m("");let M=o;if(o===null)try{let w=await n({url:kr});w?(i(w),M=w,f(!0)):(m(u("unknownError")),c(null))}catch(w){c(null),m(w.message);return}M!==null?(e.setStorageBuildinConfig(M),c(!1),r(M.buildinConfigUpdatedAt)):(m(u("canNotFetchRemoteRule")),c(null))};return Ge(()=>{Ka().then(M=>{let w=M.buildinConfigUpdatedAt;v(M);let E=new Date(w);if(r(w),x==="0.0.0"){h(!0);return}n({url:kr}).then(I=>{let F=I,A=F.minVersion,_=x;i(F);let j=F.latestVersion;if(j&&(gu(_,j)?B(!0):B(!1)),gu(_,A)){let N=F.buildinConfigUpdatedAt;new Date(N)>E?(c(!0),L()):c(!1)}else b(!0),c(null)}).catch(I=>{c(null),m(I.message)})})},[]),Ge(()=>{Ka().then(M=>{v(M)})},[a]),C?V("div",{class:"text-sm mt-2",style:{maxWidth:218},children:T?V(X9,{}):l?t===!1?null:V(eb,{handleSyncing:L,message:l,date:a||""}):d?t===!1?null:V(Z9,{minVersion:o.minVersion}):s===null||s===!0?null:g?V(Q9,{date:a}):null}):null}p();var Ko='',Z0="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMTEuNjIzLS4zMTguODQ1Yy0uMjA4LjIyMi0uNTI3LjMzMy0uOTI4LjMzM2gtMS4zM1Y5LjI0MmgxLjMzWm05Ljg0NiAxLjc4OGMuMzg4IDAgLjY2NS4xNTIuODQ1LjQ1Ny4xNTIuMjY0LjIzNS41ODIuMjYzLjk4NHYuMzE5YzAgLjQ5OS0uMDgzLjg4Ny0uMjYzIDEuMTkyLS4xOC4zMDQtLjQ1Ny40NTctLjgzLjQ1Ny0uMzg5IDAtLjY2Ni0uMTUzLS44NDYtLjQ0NC0uMTUyLS4yNjMtLjIzNS0uNTk1LS4yNjMtMS4wMTF2LS4yOTFjMC0uNDg1LjA4My0uODczLjI2My0xLjE3OC4xOC0uMzA1LjQ0My0uNDg1LjgzMS0uNDg1Wm0tMy40MDctMS4xMzZhMS4xNyAxLjE3IDAgMCAwLS43MDYuMjM1IDEuNDgyIDEuNDgyIDAgMCAwLS40MTUuNWwtLjA4My4xNjUtLjA3LS44MDNoLTEuMzU3djUuNDMyaDEuNDU0di0zLjY1OWEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiA4LjEySDQuMTE0djcuMzE3aDEuNDY4VjEyLjc5aDEuMzNjLjg0NCAwIDEuNDk1LS4yMDggMS45OC0uNjM4LjQ4NS0uNDMuNzItLjk4My43Mi0xLjY5cy0uMjM1LTEuMjYxLS43Mi0xLjY5Yy0uNDQzLS4zODktMS4wMzktLjYxLTEuNzczLS42MzhsLS4yMjEtLjAxNFptOS44NDcgMS43NzRjLS44MDMgMC0xLjQyNi4yNjMtMS44ODMuNzc2LS40MTYuNDctLjYzNyAxLjA2Ny0uNjc5IDEuNzczdi4zMzNjMCAuODE4LjIyMiAxLjQ4My42NzkgMS45OTUuNDU3LjUxMyAxLjA4Ljc3NiAxLjg4My43NzYuODA0IDAgMS40MjctLjI2MyAxLjg4NC0uNzc2LjQxNS0uNDcuNjM3LTEuMDUzLjY3OC0xLjc3M3YtLjMzM2MwLS44MTctLjIyMS0xLjQ4Mi0uNjc4LTEuOTk1LS40NTctLjUxMy0xLjA4LS43NzYtMS44ODQtLjc3NlpNMTguMDAzIDZhNiA2IDAgMCAxIDAgMTJIMFY5LjQyM0EzLjQyIDMuNDIgMCAwIDEgMy40MiA2aDE0LjU4M1oiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSI3LjUiIHgyPSIyMiIgeTE9IjE5IiB5Mj0iNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMyMjIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM2OTY5NjkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=",X0="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzk5OSIgZD0iTTYuODk3IDMuMjQyYy40MTUgMCAuNzIuMTExLjkyOC4zNDcuMjA3LjIzNS4zMTguNTI2LjMxOC44NzMgMCAuMzQ2LS4xMS42MjMtLjMxOC44NDUtLjIwOC4yMjItLjUyNy4zMzMtLjkyOC4zMzNoLTEuMzNWMy4yNDJoMS4zM1ptOS44NDYgMS43ODhjLjM4OCAwIC42NjUuMTUyLjg0NS40NTcuMTUyLjI2NC4yMzUuNTgyLjI2My45ODR2LjMxOWMwIC40OTktLjA4My44ODctLjI2MyAxLjE5Mi0uMTguMzA0LS40NTcuNDU3LS44My40NTctLjM4OSAwLS42NjYtLjE1My0uODQ2LS40NDQtLjE1Mi0uMjYzLS4yMzUtLjU5NS0uMjYzLTEuMDExdi0uMjkxYzAtLjQ4NS4wODMtLjg3My4yNjMtMS4xNzguMTgtLjMwNS40NDMtLjQ4NS44MzEtLjQ4NVptLTMuNDA3LTEuMTM2YTEuMTcgMS4xNyAwIDAgMC0uNzA2LjIzNSAxLjQ4MiAxLjQ4MiAwIDAgMC0uNDE1LjVsLS4wODMuMTY1LS4wNy0uODAzaC0xLjM1N3Y1LjQzMmgxLjQ1NFY1Ljc2NGEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiAyLjEySDQuMTE0djcuMzE3aDEuNDY4VjYuNzloMS4zM2MuODQ0IDAgMS40OTUtLjIwOCAxLjk4LS42MzguNDg1LS40My43Mi0uOTgzLjcyLTEuNjlzLS4yMzUtMS4yNjEtLjcyLTEuNjljLS40NDMtLjM4OS0xLjAzOS0uNjEtMS43NzMtLjYzOGwtLjIyMS0uMDE0Wm05Ljg0NyAxLjc3NGMtLjgwMyAwLTEuNDI2LjI2My0xLjg4My43NzYtLjQxNi40Ny0uNjM3IDEuMDY3LS42NzkgMS43NzN2LjMzM2MwIC44MTguMjIyIDEuNDgzLjY3OSAxLjk5NS40NTcuNTEzIDEuMDguNzc2IDEuODgzLjc3Ni44MDQgMCAxLjQyNy0uMjYzIDEuODg0LS43NzYuNDE1LS40Ny42MzctMS4wNTMuNjc4LTEuNzczdi0uMzMzYzAtLjgxNy0uMjIxLTEuNDgzLS42NzgtMS45OTUtLjQ1Ny0uNTEzLTEuMDgtLjc3Ni0xLjg4NC0uNzc2Wk0xOC4wMDMgMGE2IDYgMCAwIDEgMCAxMkgwVjMuNDIzQTMuNDIgMy40MiAwIDAgMSAzLjQyIDBoMTQuNTgzWiIvPjwvc3ZnPg==";function el(e){let t=an(),{onTranslateTheMainPage:n,onUserConfigChange:a,request:r,onTranslateLocalHtmlFile:u,onSwitchTranslationMode:o,onTranslateLocalSubtitleFile:i,onSetBuildinConfig:s,pageStatus:c,openEbookBuilderPage:l,openPricingPage:m,openEbookViewerPage:g,config:f,openAboutPage:d,onTranslateTheWholePage:b,onToggleEnabled:T,openOptionsPage:h,ontranslateToThePageEndImmediately:C,onSetPageLanguage:v,onToggleTranslate:O,onTranslateLocalPdfFile:B,onTranslatePdf:x,onRestorePage:L,ctx:M,currentUrl:w,currentLang:E,onClose:I,onTranslatePage:F,onSetLocalConfig:A,onMouseTriggerChanged:_,errorMsg:j,disabledButton:N,noPermissionPDF:D}=e,y=a,[S,R]=De(""),[$,z]=De(j),[Y,q]=De(null),[ae,Q]=De(null),{t:G,lang:pe}=zt(),fe=70;pe.startsWith("zh")||(fe=75);let re=null,K=null,oe=null,me=null,ce=null,ye=null,Se=null,xe=null,Z=null,ke=null,Pe=null,Re=null;Ge(()=>{Nt.get(en,null).then(H=>{H?(q(H),Q(Qt(H))):Q(!1)}).catch(H=>{Q(!1)})},[]);let Ne=!0,st=Zt();if(f){st&&f&&(Ne=f.generalRule.showSponsorOnSafari);let{translationService:H,translationServices:de,translationUrlPattern:$e}=f;Fn[H]&&(xe=Hi("translationService",H,M)),de&&de[H]?Re=de[H]||{}:Re={};try{Z=new URL(w||"")}catch{}if(w&&rg(w)){ke=og(Z.hostname),Pe=ig(w);let{matches:Me,excludeMatches:_e}=$e;K=Me.includes(ke),re=Me.includes(Z.hostname),me=_e.includes(ke),oe=_e.includes(Z.hostname),ye=Me.includes(Pe),Se=_e.includes(Pe)}}if(f&&E&&E!=="auto"){let{translationLanguagePattern:H}=f,{matches:de}=H;de.includes(E)?ce=!0:ce=!1}let Ft=H=>{H.preventDefault(),h()},da=H=>{y(de=>(de.alpha?R("Success disable alpha!"):R("Success enable alpha!"),{...de,alpha:!de.alpha}))},Ut=H=>{y(de=>({...de,translationMode:H})),o(H)},An=()=>{y(H=>({...H,translationArea:"body"})),b()},Un=()=>{y(H=>({...H,translationArea:"main"})),n()},Ie=(H,de,$e,Me)=>{if(H==="default"){y(Cn=>{let Jt={...Cn.translationUrlPattern};return{...Cn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...Cn.translationUrlPattern,matches:Yn([Z?.hostname,ke,w],Jt.matches),excludeMatches:Yn([Z?.hostname,ke,w],Jt.excludeMatches)}}});return}let _e=H,Dn=_e==="matches"?"excludeMatches":"matches";Z&&y(Cn=>{let Jt={...Cn.translationUrlPattern};return Jt[_e]=xs(de,Jt[_e]),Me.length>0&&(Jt[_e]=Yn(Me,Jt[_e])),Jt[Dn]=Yn($e,Jt[Dn]),{...Cn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...Cn.translationUrlPattern,...Jt}}}),_e==="matches"&&c==="Original"?setTimeout(()=>{F(),I()},100):_e==="excludeMatches"&&c==="Translated"&&setTimeout(()=>{L(),I()},100)},Ht=H=>{if(!H){y(Me=>{let _e={...Me.translationLanguagePattern};return{...Me,translationLanguagePattern:{...Me.translationLanguagePattern,matches:Yn(E,_e.matches),excludeMatches:Yn(E,_e.excludeMatches)}}});return}let de=H,$e=de==="matches"?"excludeMatches":"matches";E&&y(Me=>{let _e={...Me.translationLanguagePattern};return _e[de]=xs(E,_e[de]),_e[$e]=Yn(E,_e[$e]),{...Me,translationLanguagePattern:{...Me.translationLanguagePattern,..._e}}}),de==="matches"&&c==="Original"&&setTimeout(()=>{F(),I()},100)},rt=Z?.pathname.toLowerCase().endsWith(".pdf"),He=G("translate");c==="Translated"||c==="Error"?He=G("show-original"):c==="Original"?rt?qu()&&Z.protocol==="file:"||D?He=G("translate-firefox-local-pdf"):he()?He=G("noSupportTranslate-pdf"):He=G("translate-pdf"):He=G("translate"):He=G(c);let Yt=G("translateToThePageEndImmediately");(c==="Original"||c==="Translated")&&(f.shortcuts.toggleTranslatePage&&(O4()&&M.rule.fingerCountToToggleTranslagePageWhenTouching>=2?He+=` (${G(`fingers.${M.rule.fingerCountToToggleTranslagePageWhenTouching}`)})`:He+=` (${f.shortcuts.toggleTranslatePage})`),f.shortcuts.toggleTranslateToThePageEndImmediately&&(Yt+=` (${f.shortcuts.toggleTranslateToThePageEndImmediately})`));let _t=[];M&&(_t=Hc(M,"translationService"));let Hn=H=>{H.preventDefault(),I()},gt=Fm(M.config.translationService,M.config.targetLanguage),dn=ye||re||K,ze=()=>ye?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!ye,onChange:H=>{let de=H.target.checked;Ie(de?"matches":"default",Pe,[Pe],[])}}),G("alwaysTranslateSomePage")]}):re?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!re,onChange:H=>{let de=H.target.checked;Ie(de?"matches":"default",Z.hostname,[Z.hostname,ke,Pe],[ke])}}),G("alwaysTranslateSomeSiteOrWildSite")]}):K?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!K,onChange:H=>{let de=H.target.checked;Ie(de?"matches":"default",ke,[Pe,Z.hostname,ke],[Z.hostname])}}),G("alwaysTranslateSomeSiteOrWildSite")]}):null;return V("div",{children:[V("div",{class:"popup-container px-6 pt-6 max-content",children:[V("div",{class:"text-sm",children:[V("div",{class:"flex justify-between mb-3 items-center",children:[V("label",{class:"inline-block text-label",children:[G("popupSourceLanguage"),"\uFF1A"]}),V(zn,{maxWidth:186,items:Xt.map(H=>({label:Fo(H,f.interfaceLanguage),value:H,selected:H===M.sourceLanguage,onSelected:de=>{v(de.value)}}))})]}),f&&f.targetLanguage&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[G("popupTarget"),"\uFF1A"]}),V(zn,{maxWidth:186,items:gt.filter(H=>H!=="auto").map(H=>({label:Fo(H,f.interfaceLanguage),value:H,selected:H===f.targetLanguage,onSelected:de=>{y($e=>({...$e,targetLanguage:de.value}))}}))})]}),xe&&_t.length>0&&V(Kt,{children:[V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[G("popupService"),"\uFF1A"]}),V(zn,{maxWidth:186,items:_t.map(H=>({label:`${G("translationServices."+H.id)}${H.ok?"":" "+(" "+(!ae&&!st&&H.providers&&H.providers.length>0?G("goLoginOrAction"):G("needAction")))}`,value:H.id,selected:H.selected,onSelected:de=>{let $e=_t.find(Me=>Me.id===de.value);if($e.ok){if(y(Me=>({...Me,translationService:$e.id})),c!="Translated")return;$e.props.length===0?setTimeout(()=>{F()},1):setTimeout(()=>{L()},1)}else y(Me=>({...Me,translationService:$e.id})),setTimeout(()=>{h()},100)}}))})]}),Re&&xe.props.length>0&&xe.props.map((H,de)=>V("div",{class:"pl-4 text-sm",children:V(J0,{field:H,value:Re[H.name],onChange:$e=>{y(Me=>{let _e=Me.translationServices||{},Dn=_e[xe.id]||{};return setTimeout(()=>{L()},1),{...Me,translationServices:{..._e,[xe.id]:{...Dn,[H.name]:$e}}}})}},"field-"+de)},"service"+de))]}),Z&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:G("forThisSite")}),V(zn,{maxWidth:186,items:[{label:G("default"),value:"default",selected:re===!1&&oe===!1&&!K&&!me&&!ye&&!Se,onSelected:()=>{Ie("default",Z.hostname,[],[]);let H=Z.hostname,de=M.localConfig.tempTranslationUrlMatches||[],$e=de.filter(_e=>_e.match!==H),Me=!1;$e.length!==de.length&&(Me=!0),Me&&A({...M.localConfig,tempTranslationUrlMatches:[...$e]})}},Pe&&{label:G("alwaysTranslateSomeSite",{hostname:G("currentUrl")}),value:"matchesUrl",selected:ye,onSelected:()=>{Ie("matches",Pe,[Pe],[])}},{label:G("alwaysTranslateSomeSite",{hostname:Z.hostname}),value:"matches",selected:re,onSelected:H=>{Ie(H.value,Z.hostname,[Z.hostname,ke,Pe],[ke])}},ke&&{label:G("alwaysTranslateSomeSite",{hostname:ke}),value:"matchesWild",selected:K,onSelected:()=>{Ie("matches",ke,[Pe,Z.hostname,ke],[Z.hostname])}},Pe&&{label:G("neverTranslateSomeSite",{hostname:G("currentUrl")}),value:"excludeMatchesUrl",selected:Se,onSelected:()=>{Ie("excludeMatches",Pe,[Pe],[])}},{label:G("neverTranslateSomeSite",{hostname:Z.hostname}),value:"excludeMatches",selected:oe,onSelected:H=>{Ie(H.value,Z.hostname,[Z.hostname,ke,Pe],[ke])}},ke&&{label:G("neverTranslateSomeSite",{hostname:ke}),value:"excludeMatchesWild",selected:me,onSelected:()=>{Ie("excludeMatches",ke,[Z.hostname,Pe,ke],[Z.hostname])}}].filter(Boolean)})]}),_&&Rr()&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[G("mouse-translate"),"\uFF1A"]}),V(zn,{maxWidth:186,items:Mu.filter(H=>!(Mu.includes(f.generalRule.mouseHoverHoldKey)&&H==="OtherCustom")).map(H=>{let de=G("mouseHoldKey",{key:H}),$e=Mu.includes(f.generalRule.mouseHoverHoldKey),Me=H===f.generalRule.mouseHoverHoldKey;return H==="Auto"?de=G("mouseHoldKeyAuto"):H==="Off"?de=G("mouseHoldKeyOff"):H==="OtherCustom"?de=$e?G("mouseHoldKeyOther"):G("mouseHoldKeyCustomKey",{key:f.generalRule.mouseHoverHoldKey}):H==="Other"&&(de=G("mouseHoldKeyOther")),$e||H==="OtherCustom"&&(Me=!0),{label:de,value:H,selected:Me,onSelected:_e=>{_e.value==="Other"?h("#interface"):_(_e.value)}}})})]})]}),V("div",{class:"",children:V("button",{class:"py-2 mt-1 mb-5 main-button ",onClick:()=>{rt?x&&x():O()},"aria-busy":c==="Translating",disabled:N||c==="Translating",children:He})}),V("div",{class:"text-sm",children:S}),V("div",{class:`pb-2 text-sm ${$?"":"display-none"}`,children:$}),V("div",{class:"flex items-center justify-between flex-wrap",children:[dn?V(ze,{}):E&&E!=="auto"?V("label",{for:"alwaysTranslateThisLanugage",class:"text-sm text-label text-overflow-ellipsis max-w-20",children:[V("input",{type:"checkbox",id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",checked:!!ce,onChange:H=>{let de=H.target.checked;Ht(de?"matches":void 0)}}),G("alwaysTranslateSomeLanguage",{language:Fo(E,f.interfaceLanguage,!1,!0)})]}):V("span",{}),V("div",{class:`flex flex-end flex-grow ${$?"display-none":""}`,children:V("span",{class:"immersive-translate-no-select muted text-sm",onClick:ag(7)(da),children:["V",t,f.enabled?null:V("a",{href:"#",onClick:T,children:[" ","(",G("hasBeenDisabled"),")"]})]})})]})]}),V("footer",{children:[V("div",{class:"px-6 text-label",children:V(Q0,{isShowError:!1,request:r,setStorageBuildinConfig:s})}),V("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer text-label",children:[V("div",{class:"flex flex-row items-center justify-center secondary clickable",style:{width:70},onClick:Ft,children:[V(V0,{}),V("span",{class:"ml-1",children:G("options")})]}),Ne?V("a",{title:G(ae?"popup.openProForPro":"popup.openPro"),target:"_blank",href:ae?ji:zi,children:V("img",{src:ae?Z0:X0})}):ae&&V("a",{title:G(ae?"popup.openProForPro":"popup.openPro"),target:"_blank",href:ae?ji:zi,children:V("img",{src:ae?Z0:X0})}),V(Y0,{label:G("more"),showArrow:!0,maxWidth:fe,onSelected:H=>{H.value==="openPremium"?(globalThis.open(Ar),I()):H.value==="changeToOnlyTranslationMode"?Ut("translation"):H.value==="changeToDualTranslationMode"?Ut("dual"):H.value==="translateTheWholePage"?b():H.value==="translateToThePageEndImmediately"?C():H.value==="translateTheMainPage"?n():H.value==="showTranslationOnly"||(H.value==="translateLocalPdfFile"?B&&B():H.value==="translateLocalHtmlFile"?u&&u():H.value==="translateLocalSubtitleFile"?i&&i():H.value==="donate"?(globalThis.open(f.donateUrl),I()):H.value==="feedback"?(globalThis.open(f.feedbackUrl),I()):H.value==="options"?(h(),I()):H.value==="changeToTranslateTheWholePage"?An():H.value==="changeToTranslateTheMainPage"?Un():H.value==="about"?d():H.value==="toggleEnabled"?T():H.value==="openEbookViewer"?g():H.value==="openEbookBuilder"?l():H.value==="goPro"&&m())},menus:[f.translationMode==="dual"&&{label:"\u{1F524} "+G("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},f.translationMode==="translation"&&{label:"\u{1F521} "+G("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},f.translationArea==="main"&&{label:"\u{1F480} "+G("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},f.translationArea==="body"&&{label:"\u{1F4D6} "+G("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},{label:"\u26A1 "+Yt,value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+G("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+G("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+G("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},!he()&&{label:"\u{1F310} "+G("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+G("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},ae===!1&&Ne&&{label:"\u{1F451} "+G("upgradeToPro"),value:"goPro"},{label:"\u2764\uFE0F "+G(Ne?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})]})]})}p();p();p();p();var tl={get:(e,t,n)=>{let a=t===void 0?e:{[e]:t};return se.storage[n].get(a)},set:(e,t,n)=>se.storage[n].set({[e]:t})};function Go(e,t,n){let[a]=De(()=>typeof t=="function"?t():t),[r]=De(n),[u,o]=De(a),[i,s]=De(!1),[c,l]=De("");Ge(()=>{tl.get(e,a,r).then(g=>{g[e]&&o(g[e]),s(!0),l("")}).catch(g=>{s(!1),l(g)})},[e,a,r]);let m=sa(g=>{let f=typeof g=="function"?g(u):g;U.debug("new settings",f),tl.set(e,f,r).then(()=>{o(f),s(!0),l("")}).catch(d=>{o(f),s(!1),l(d)})},[r,e,u]);return[u,m,i,c]}p();function nl(e,t,n){let a=[];return function(){let[u,o,i,s]=Go(e,t,n),c=sa(l=>{for(let m of a)m(l)},[]);return Ge(()=>(a.push(o),()=>{a.splice(a.indexOf(o),1)}),[o]),[u,c,i,s]}}function sg(e,t){return nl(e,t,"sync")}var tb="userConfig",nb=null,ab=sg(tb,nb);function Vo(e){let[t,n,a,r]=ab(),u=sa(o=>{let i=typeof o=="function"?o(t):o;i&&(i.updatedAt=new Date().toISOString()),n(i),e&&e(i)},[t]);return[t,u,a,r,n]}p();p();async function lg(e){try{let t=new Date;U.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await se.storage.local.set({[Lc]:t.toISOString()}),await rb(),he()||await cg()}catch(t){U.error("run cron task failed",t)}}async function rb(){try{let e=await En(),t=await ie({url:kr}),n=e.buildinConfigUpdatedAt,a=new Date(n),r=t.buildinConfigUpdatedAt,u=new Date(r),o=t.minVersion,i=se.runtime.getManifest().version;gu(i,o)?u>a?(await se.storage.local.set({buildinConfig:t}),U.info(`sync remote rules success, latest: ${new Date(r).toLocaleString()}`)):U.debug(`no need to sync rules, latest: ${a}`):U.info(`local version is too old, please update to ${o} or later`)}catch(e){U.error("sync rules error: ",e)}}p();p();p();p();p();var al;function gl(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function xg(e,t=","){return e.map(gl).join(t)}var Eg=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function Jo(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function Qo(e,t="@media "){return t+Gt(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(a=>`(${a}-width:${n[a]})`).join(" and "))).join(",")}function Gt(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function ub(){}var bt={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function Tg(e){return e.match(/[-=:;]/g)?.length||0}function ll(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(Tg(e),15)<<18}var ob=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function pl({n:e,i:t,v:n=[]},a,r,u){e&&(e=gl({n:e,i:t,v:n})),u=[...Gt(u)];for(let i of n){let s=a.theme("screens",i);for(let c of Gt(s&&Qo(s)||a.v(i))){var o;u.push(c),r|=s?67108864|ll(c):i=="dark"?1073741824:c[0]=="@"?ll(c):(o=c,1<<~(/:([a-z-]+)/.test(o)&&~ob.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:r,r:u,i:t}}var fl=new Map;function dg(e){if(e.d){let t=[],n=rl(e.r.reduce((a,r)=>r[0]=="@"?(t.push(r),a):r?rl(a,u=>rl(r,o=>{let i=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(i){let s=u.indexOf(i[1]);return~s?u.slice(0,s)+i[0]+u.slice(s+i[1].length):ul(u,o)}return ul(o,u)})):a,"&"),a=>ul(a,e.n?"."+Eg(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((a,r)=>r+"{"+a+"}",e.d)}}function rl(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,a,r)=>t(a)+r)}function ul(e,t){return e.replace(/&/g,t)}var mg=new Intl.Collator("en",{numeric:!0});function ib(e,t){for(var n=0,a=e.length;n>1;0>=Cg(e[r],t)?n=r+1:a=r}return a}function Cg(e,t){let n=e.p&bt.o;return n==(t.p&bt.o)&&(n==bt.b||n==bt.o)?0:e.p-t.p||e.o-t.o||mg.compare(gg(e.n),gg(t.n))||mg.compare(pg(e.n),pg(t.n))}function gg(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function pg(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function ol(e,t){return Math.round(parseInt(e,16)*t)}function la(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:a}=t,r=a?`var(${a})`:n;if(e.includes(""))return e.replace("",r);if(e[0]=="#"&&(e.length==4||e.length==7)){let u=(e.length-1)/3,o=[17,1,.062272][u-1];return`rgba(${[ol(e.substr(1,u),o),ol(e.substr(1+u,u),o),ol(e.substr(1+2*u,u),o),r]})`}return r=="1"?e:r=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${r})`)}function wg(e,t,n,a,r=[]){return function u(o,{n:i,p:s,r:c=[],i:l},m){let g=[],f="",d=0,b=0;for(let C in o||{}){var T,h;let v=o[C];if(C[0]=="@"){if(!v)continue;if(C[1]=="a"){g.push(...kg(i,s,bl(""+v),m,s,c,l,!0));continue}if(C[1]=="l"){for(let O of Gt(v))g.push(...u(O,{n:i,p:(T=bt[C[7]],s&~bt.o|T),r:C[7]=="d"?[]:c,i:l},m));continue}if(C[1]=="i"){g.push(...Gt(v).map(O=>({p:-1,o:0,r:[],d:C+" "+O})));continue}if(C[1]=="k"){g.push({p:bt.d,o:0,r:[C],d:u(v,{p:bt.d},m).map(dg).join("")});continue}if(C[1]=="f"){g.push(...Gt(v).map(O=>({p:bt.d,o:0,r:[C],d:u(O,{p:bt.d},m).map(dg).join("")})));continue}}if(typeof v!="object"||Array.isArray(v))C=="label"&&v?i=v+Jo(JSON.stringify([s,l,o])):(v||v===0)&&(C=C.replace(/[A-Z]/g,O=>"-"+O.toLowerCase()),b+=1,d=Math.max(d,(h=C)[0]=="-"?0:Tg(h)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(h)?+!!RegExp.$1||-!!RegExp.$2:0)+1),f+=(f?";":"")+Gt(v).map(O=>m.s(C,vg(""+O,m.theme)+(l?" !important":""))).join(";"));else if(C[0]=="@"||C.includes("&")){let O=s;C[0]=="@"&&(C=C.replace(/\bscreen\(([^)]+)\)/g,(B,x)=>{let L=m.theme("screens",x);return L?(O|=67108864,Qo(L,"")):B}),O|=ll(C)),g.push(...u(v,{n:i,p:O,r:[...c,C],i:l},m))}else g.push(...u(v,{p:s,r:[...c,C]},m))}return g.unshift({n:i,p:s,o:Math.max(0,15-b)+1.5*Math.min(d||15,15),r:c,d:f}),g.sort(Cg)}(e,pl(t,n,a,r),n)}function vg(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,a,r,u,o="")=>{let i=t(r,o);return typeof i=="function"&&/color|fill|stroke/i.test(r)?la(i):""+Gt(i).filter(s=>Object(s)!==s)})}function hl(e,t){let n,a=[];for(let r of e)r.d&&r.n?n?.p==r.p&&""+n.r==""+r.r?(n.c=[n.c,r.c].filter(Boolean).join(" "),n.d=n.d+";"+r.d):a.push(n={...r,n:r.n&&t}):a.push({...r,n:r.n&&t});return a}function cl(e,t,n=bt.u,a,r){let u=[];for(let o of e)for(let i of function(s,c,l,m,g){s={...s,i:s.i||g};let f=function(d,b){let T=fl.get(d.n);return T?T(d,b):b.r(d.n,d.v[0]=="dark")}(s,c);return f?typeof f=="string"?({r:m,p:l}=pl(s,c,l,m),hl(cl(bl(f),c,l,m,s.i),s.n)):Array.isArray(f)?f.map(d=>{var b,T;return{o:0,...d,r:[...Gt(m),...Gt(d.r)],p:(b=l,T=d.p??l,b&~bt.o|T)}}):wg(f,s,c,l,m):[{c:gl(s),p:0,o:0,r:[]}]}(o,t,n,a,r))u.splice(ib(u,i),0,i);return u}function kg(e,t,n,a,r,u,o,i){return hl((i?n.flatMap(s=>cl([s],a,r,u,o)):cl(n,a,r,u,o)).map(s=>s.p&bt.o&&(s.n||t==bt.b)?{...s,p:s.p&~bt.o|t,o:0}:s),e)}function sb(e,t,n,a){var r;return r=(u,o)=>{let{n:i,p:s,r:c,i:l}=pl(u,o,t);return n&&kg(i,t,n,o,s,c,l,a)},fl.set(e,r),e}function il(e,t,n){if(e[e.length-1]!="("){let a=[],r=!1,u=!1,o="";for(let i of e)if(!(i=="("||/[~@]$/.test(i))){if(i[0]=="!"&&(i=i.slice(1),r=!r),i.endsWith(":")){a[i=="dark:"?"unshift":"push"](i.slice(0,-1));continue}i[0]=="-"&&(i=i.slice(1),u=!u),i.endsWith("-")&&(i=i.slice(0,-1)),i&&i!="&"&&(o+=(o&&"-")+i)}o&&(u&&(o="-"+o),t[0].push({n:o,v:a.filter(lb),i:r}))}}function lb(e,t,n){return n.indexOf(e)==t}var fg=new Map;function bl(e){let t=fg.get(e);if(!t){let n=[],a=[[]],r=0,u=0,o=null,i=0,s=(c,l=0)=>{r!=i&&(n.push(e.slice(r,i+l)),c&&il(n,a)),r=i+1};for(;i1?m.slice(0,-1)+Jo(JSON.stringify([m,g])):m+"("+xg(g)+")",bt.a,g,/@$/.test(m))],a)}l=n.lastIndexOf("(",l-1)}n.length=l+1}else/[~@]/.test(c)&&e[i+1]=="("&&a.unshift([])}s(!0),fg.set(e,t=a[0])}return t}function Sg(e,t,n){return t.reduce((a,r,u)=>a+n(r)+e[u+1],e[0])}function Ag(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?Sg(e,t,n=>sl(n).trim()):t.filter(Boolean).reduce((n,a)=>n+sl(a),e?sl(e):"")}function sl(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=Ag(e[0],e.slice(1)))&&(n+=" "+t);else for(let a in e)e[a]&&(n+=" "+a);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var VM=Dg("@"),YM=Dg("~");function Dg(e){return new Proxy(function(n,...a){return t("",n,a)},{get(n,a){return a in n?n[a]:function(r,...u){return t(a,r,u)}}});function t(n,a,r){return xg(bl(n+e+"("+Ag(a,r)+")"))}}function dl(e,t){return Array.isArray(e)?hg(Sg(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?hg(e):[e]}var cb=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function hg(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],a=[n[0]],r=[];for(;t=cb.exec(e);)t[4]&&(n.shift(),r.shift()),t[3]?(r.unshift(t[3]),n.unshift({}),a.push(r.reduce((u,o)=>({[o]:u}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),a.push(r.reduce((u,o)=>({[o]:u}),n[0]))),n[0][t[1]]=t[2]);return a}function Lg(e,...t){var n;let a=dl(e,t),r=(a.find(u=>u.label)?.label||"css")+Jo(JSON.stringify(a));return n=(u,o)=>hl(a.flatMap(i=>wg(i,u,o,bt.o)),r),fl.set(r,n),r}var JM=new Proxy(function(e,t){return bg("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,a){return bg(t,n,a)}}});function bg(e,t,n){return{toString(){return Lg({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function ee(e,t,n){return[e,db(t,n)]}function db(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,a)=>({[e]:t?t(n,a):ml(n,1)}):n=>e||{[n[1]]:ml(n,2)}}function ml(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function te(e,t,n,a){return[e,mb(t,n,a)]}function mb(e,t,n){let a=typeof t=="string"?(r,u)=>({[t]:n?n(r,u):r._}):t||(({1:r,_:u},o,i)=>({[r||i]:u}));return(r,u)=>{let o=Pg(e||r[1]),i=u.theme(o,r.$$)??fr(r.$$,o,u);if(i!=null)return r._=ml(r,0,i),a(r,u,o)}}function it(e,t={},n){return[e,gb(t,n)]}function gb(e={},t){return(n,a)=>{let{section:r=Pg(n[0]).replace("-","")+"Color"}=e,[u,o]=pb(n.$$);if(!u)return;let i=a.theme(r,u)||fr(u,r,a);if(!i||typeof i=="object")return;let{opacityVariable:s=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:c=r.replace("Color","Opacity"),property:l=r,selector:m}=e,g=a.theme(c,o||"DEFAULT")||o&&fr(o,c,a),f=t||(({_:b})=>{let T=pu(l,b);return m?{[m]:T}:T});n._={value:la(i,{opacityVariable:s||void 0,opacityValue:g||void 0}),color:b=>la(i,b),opacityVariable:s||void 0,opacityValue:g||void 0};let d=f(n,a);if(!n.dark){let b=a.d(r,u,i);b&&b!==i&&(n._={value:la(b,{opacityVariable:s||void 0,opacityValue:g||"1"}),color:T=>la(b,T),opacityVariable:s||void 0,opacityValue:g||void 0},d={"&":d,[a.v("dark")]:f(n,a)})}return d}}function pb(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function pu(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function fr(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=Yo(vg(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function Pg(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function Yo(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",a,r="")=>Yo(n)+a+Yo(r)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var QM=Symbol();var Mg=new Proxy(ub,{apply(e,t,n){return al(n[0])},get(e,t){let n=al[t];return typeof n=="function"?function(){return n.apply(al,arguments)}:n}});var ZM=function e(t){return new Proxy(function(n,...a){return yg(t,"",n,a)},{get(n,a){return a==="bind"?e:a in n?n[a]:function(r,...u){return yg(t,a,r,u)}}})}();function yg(e,t,n,a){return{toString(){let r=dl(n,a),u=Eg(t+Jo(JSON.stringify([t,r])));return(typeof e=="function"?e:Mg)(Lg({[`@keyframes ${u}`]:dl(n,a)})),u}}}p();p();p();p();p();var Fg={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...Vt(4,"rem",4,.5,.5),...Vt(12,"rem",4,5),14:"3.5rem",...Vt(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Fe("blur"),backdropBrightness:Fe("brightness"),backdropContrast:Fe("contrast"),backdropGrayscale:Fe("grayscale"),backdropHueRotate:Fe("hueRotate"),backdropInvert:Fe("invert"),backdropOpacity:Fe("opacity"),backdropSaturate:Fe("saturate"),backdropSepia:Fe("sepia"),backgroundColor:Fe("colors"),backgroundImage:{none:"none"},backgroundOpacity:Fe("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...Vt(200,"",100,0,50),...Vt(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Fe("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Fe("spacing"),borderWidth:{DEFAULT:"1px",...on(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Fe("colors"),caretColor:Fe("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...Vt(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Fe("borderColor"),divideOpacity:Fe("borderOpacity"),divideWidth:Fe("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...fu(2,6),...fu(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Fe("spacing"),gradientColorStops:Fe("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...fu(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...fu(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...Vt(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...Vt(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Fe("spacing"),placeholderColor:Fe("colors"),placeholderOpacity:Fe("opacity"),outlineColor:Fe("colors"),outlineOffset:on(8,"px"),outlineWidth:on(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Fe("colors"),ringOffsetWidth:on(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...on(8,"px")},rotate:{...on(2,"deg"),...on(12,"deg",3),...on(180,"deg",45)},saturate:Vt(200,"",100,0,50),scale:{...Vt(150,"",100,0,50),...Vt(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Fe("spacing"),scrollPadding:Fe("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...on(2,"deg"),...on(12,"deg",3)},space:Fe("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:Vt(2),textColor:Fe("colors"),textDecorationColor:Fe("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...on(8,"px")},textUnderlineOffset:{auto:"auto",...on(8,"px")},textIndent:Fe("spacing"),textOpacity:Fe("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Fe("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...fu(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...Vt(50,"",1,0,10),auto:"auto"}};function fu(e,t){let n={};do for(var a=1;at(e)}var hF={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${Fg.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${Fg.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},yF=[ee("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:fr(`[${t}]`,"",n)}}})),ee("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),te("aspect-","aspectRatio"),ee("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:a,padding:r}=t("container"),u={width:"100%",marginRight:a&&"auto",marginLeft:a&&"auto",...o("xs")};for(let i in n){let s=n[i];typeof s=="string"&&(u[Qo(s)]={"&":{maxWidth:s,...o(i)}})}return u;function o(i){let s=r&&(typeof r=="string"?r:r[i]||r.DEFAULT);if(s)return{paddingRight:s,paddingLeft:s}}}),te("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),ee("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),ee("box-(border|content)","boxSizing",({1:e})=>e+"-box"),ee("hidden",{display:"none"}),ee("table-(auto|fixed)","tableLayout"),ee(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",ee("isolate","isolation"),ee("object-(contain|cover|fill|none|scale-down)","objectFit"),te("object-","objectPosition"),ee("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",Zo),ee("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),ee("(static|fixed|absolute|relative|sticky)","position"),te("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),te("-?(top|bottom|left|right)(?:$|-)","inset"),ee("(visible|collapse)","visibility"),ee("invisible",{visibility:"hidden"}),te("-?z-","zIndex"),ee("flex-((row|col)(-reverse)?)","flexDirection",_g),ee("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),te("(flex-(?:grow|shrink))(?:$|-)"),te("(flex)-"),te("grow(?:$|-)","flexGrow"),te("shrink(?:$|-)","flexShrink"),te("basis-","flexBasis"),te("-?(order)-"),"-?(order)-(\\d+)",te("grid-cols-","gridTemplateColumns"),ee("grid-cols-(\\d+)","gridTemplateColumns",Og),te("col-","gridColumn"),ee("col-(span)-(\\d+)","gridColumn",Ig),te("col-start-","gridColumnStart"),ee("col-start-(auto|\\d+)","gridColumnStart"),te("col-end-","gridColumnEnd"),ee("col-end-(auto|\\d+)","gridColumnEnd"),te("grid-rows-","gridTemplateRows"),ee("grid-rows-(\\d+)","gridTemplateRows",Og),te("row-","gridRow"),ee("row-(span)-(\\d+)","gridRow",Ig),te("row-start-","gridRowStart"),ee("row-start-(auto|\\d+)","gridRowStart"),te("row-end-","gridRowEnd"),ee("row-end-(auto|\\d+)","gridRowEnd"),ee("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>Zo(_g(e))),ee("grid-flow-(dense)","gridAutoFlow"),te("auto-cols-","gridAutoColumns"),te("auto-rows-","gridAutoRows"),te("gap-x(?:$|-)","gap","columnGap"),te("gap-y(?:$|-)","gap","rowGap"),te("gap(?:$|-)","gap"),"(justify-(?:items|self))-",ee("justify-","justifyContent",Bg),ee("(content|items|self)-",e=>({["align-"+e[1]]:Bg(e)})),ee("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),te("p([xytrbl])?(?:$|-)","padding",hr("padding")),te("-?m([xytrbl])?(?:$|-)","margin",hr("margin")),te("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),ee("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),te("w-","width"),te("min-w-","minWidth"),te("max-w-","maxWidth"),te("h-","height"),te("min-h-","minHeight"),te("max-h-","maxHeight"),te("font-","fontWeight"),te("font-","fontFamily",({_:e})=>typeof(e=Gt(e))[1]=="string"?{fontFamily:Tn(e)}:{fontFamily:Tn(e[0]),...e[1]}),ee("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),ee("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),ee("italic","fontStyle"),ee("not-italic",{fontStyle:"normal"}),ee("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...ca({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),te("tracking-","letterSpacing"),te("leading-","lineHeight"),ee("list-(inside|outside)","listStylePosition"),te("list-","listStyleType"),ee("list-","listStyleType"),te("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),it("placeholder-",{property:"color",selector:"&::placeholder"}),ee("text-(left|center|right|justify|start|end)","textAlign"),ee("text-(ellipsis|clip)","textOverflow"),te("text-opacity-","textOpacity","--tw-text-opacity"),it("text-",{property:"color"}),te("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),te("indent-","textIndent"),ee("(overline|underline|line-through)","textDecorationLine"),ee("no-underline",{textDecorationLine:"none"}),te("underline-offset-","textUnderlineOffset"),it("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),te("decoration-","textDecorationThickness"),ee("decoration-","textDecorationStyle"),ee("(uppercase|lowercase|capitalize)","textTransform"),ee("normal-case",{textTransform:"none"}),ee("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),ee("align-","verticalAlign"),ee("whitespace-","whiteSpace"),ee("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),ee("break-words",{overflowWrap:"break-word"}),ee("break-all",{wordBreak:"break-all"}),ee("break-keep",{wordBreak:"keep-all"}),it("caret-",{opacityVariable:!1,opacitySection:"opacity"}),it("accent-",{opacityVariable:!1,opacitySection:"opacity"}),ee("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${Sa(e," ")},var(--tw-gradient-stops))`),it("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),it("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),it("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),ee("bg-(fixed|local|scroll)","backgroundAttachment"),ee("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),ee(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),ee("bg-blend-","backgroundBlendMode"),ee("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),te("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),it("bg-",{section:"backgroundColor"}),te("bg-","backgroundImage"),te("bg-","backgroundPosition"),ee("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",Zo),te("bg-","backgroundSize"),te("rounded(?:$|-)","borderRadius"),te("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${Sa(n[0])}-radius`]:t,[`border-${Sa(n[1])}-radius`]:t}}),ee("border-(collapse|separate)","borderCollapse"),te("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),ee("border-(solid|dashed|dotted|double|none)","borderStyle"),te("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...ca({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),it("border-([xytrbl])-",{section:"borderColor"},hr("border","Color")),it("border-"),te("border-([xytrbl])(?:$|-)","borderWidth",hr("border","Width")),te("border(?:$|-)","borderWidth"),te("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),ee("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),ee("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),te("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${Sa(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${Sa(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),it("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),te("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),it("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),te("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),ee("ring-inset",{"--tw-ring-inset":"inset"}),it("ring-",{property:"--tw-ring-color"}),te("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...ca({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":la(t("ringOffsetColor","","#fff")),"--tw-ring-color":la(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),it("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),te("shadow(?:$|-)","boxShadow",({_:e})=>({...ca({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Tn(e),"--tw-shadow-colored":Tn(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),te("(opacity)-"),ee("mix-blend-","mixBlendMode"),...Rg(),...Rg("backdrop-"),te("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Tn(e),transitionTimingFunction:e._=="none"?void 0:Tn(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:Tn(t("transitionDuration",""))})),te("duration(?:$|-)","transitionDuration","transitionDuration",Tn),te("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Tn),te("delay(?:$|-)","transitionDelay","transitionDelay",Tn),te("animate(?:$|-)","animation",(e,{theme:t,h:n,e:a})=>{let r=Tn(e),u=r.split(" "),o=t("keyframes",u[0]);return o?{["@keyframes "+(u[0]=a(n(u[0])))]:o,animation:u.join(" ")}:{animation:r}}),"(transform)-(none)",ee("transform",xl),ee("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":Ng(e=="gpu")})),te("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...xl()})),te("-?(rotate)-","rotate",yl),te("-?(translate-[xy])-","translate",yl),te("-?(skew-[xy])-","skew",yl),ee("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",Zo),"(appearance)-",te("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",te("(cursor)-"),"(cursor)-",ee("snap-(none)","scroll-snap-type"),ee("snap-(x|y|both)",({1:e})=>({...ca({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),ee("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),ee("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),ee("snap-(normal|always)","scroll-snap-stop"),ee("scroll-(auto|smooth)","scroll-behavior"),te("scroll-p([xytrbl])?(?:$|-)","padding",hr("scroll-padding")),te("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",hr("scroll-margin")),ee("touch-(auto|none|manipulation)","touch-action"),ee("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...ca({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),ee("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),ee("outline",{outlineStyle:"solid"}),ee("outline-(dashed|dotted|double)","outlineStyle"),te("-?(outline-offset)-"),it("outline-",{opacityVariable:!1,opacitySection:"opacity"}),te("outline-","outlineWidth"),"(pointer-events)-",te("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],ee("select-(none|text|all|auto)","userSelect"),it("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),it("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),te("stroke-","strokeWidth"),ee("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),ee("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function Zo(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function _g(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function Sa(e,t="-"){let n=[];for(let a of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[a]);return n.join(t)}function Tn(e){return e&&""+(e._||e)}function Bg({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function hr(e,t=""){return({1:n,_:a})=>{let r={x:"lr",y:"tb"}[n]||n+n;return r?{...pu(e+"-"+Sa(r[0])+t,a),...pu(e+"-"+Sa(r[1])+t,a)}:pu(e+t,a)}}function Rg(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let a of t)n[`--tw-${e}${a}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...ca(n),[`${e}filter`]:t.map(a=>`var(--tw-${e}${a})`).join(" ")},[`(${e}filter)-(none)`,ee(`${e}filter`,n),...t.map(a=>te(`${a[0]=="h"?"-?":""}(${e}${a})(?:$|-)`,a,({1:r,_:u})=>({[`--tw-${r}`]:Gt(u).map(o=>`${a}(${o})`).join(" "),...n})))]}function yl({1:e,_:t}){return{["--tw-"+e]:t,...xl()}}function xl(){return{...ca({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":Ng()}),transform:"var(--tw-transform)"}}function Ng(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function Ig({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function Og({1:e}){return`repeat(${e},minmax(0,1fr))`}function ca(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}p();p();var Xo=globalThis||(typeof window<"u"?window:self),bb=Object.create,Tl=Object.defineProperty,yb=Object.getOwnPropertyDescriptor,xb=Object.getOwnPropertyNames,Eb=Object.getPrototypeOf,Tb=Object.prototype.hasOwnProperty,Cb=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),wb=(e,t)=>{for(var n in t)Tl(e,n,{get:t[n],enumerable:!0})},El=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of xb(t))!Tb.call(e,r)&&r!==n&&Tl(e,r,{get:()=>t[r],enumerable:!(a=yb(t,r))||a.enumerable});return e},vb=(e,t,n)=>(El(e,t,"default"),n&&El(n,t,"default")),zg=(e,t,n)=>(n=e!=null?bb(Eb(e)):{},El(t||!e||!e.__esModule?Tl(n,"default",{value:e,enumerable:!0}):n,e)),Ug=Cb((e,t)=>{(function(n,a){typeof define=="function"&&define.amd?define([],a):typeof e<"u"?a():(a(),n.FileSaver={})})(e,function(){"use strict";function n(c,l){return typeof l>"u"?l={autoBom:!1}:typeof l!="object"&&(l={autoBom:!l}),l.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function a(c,l,m){var g=new XMLHttpRequest;g.open("GET",c),g.responseType="blob",g.onload=function(){s(g.response,l,m)},g.onerror=function(){},g.send()}function r(c){var l=new XMLHttpRequest;l.open("HEAD",c,!1);try{l.send()}catch{}return 200<=l.status&&299>=l.status}function u(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var l=document.createEvent("MouseEvents");l.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(l)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Xo=="object"&&Xo.global===Xo?Xo:void 0,i=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(c,l,m){var g=o.URL||o.webkitURL,f=document.createElement("a");l=l||c.name||"download",f.download=l,f.rel="noopener",typeof c=="string"?(f.href=c,f.origin===location.origin?u(f):r(f.href)?a(c,l,m):u(f,f.target="_blank")):(f.href=g.createObjectURL(c),setTimeout(function(){g.revokeObjectURL(f.href)},4e4),setTimeout(function(){u(f)},0))}:"msSaveOrOpenBlob"in navigator?function(c,l,m){if(l=l||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(n(c,m),l);else if(r(c))a(c,l,m);else{var g=document.createElement("a");g.href=c,g.target="_blank",setTimeout(function(){u(g)})}}:function(c,l,m,g){if(g=g||open("","_blank"),g&&(g.document.title=g.document.body.innerText="downloading..."),typeof c=="string")return a(c,l,m);var f=c.type==="application/octet-stream",d=/constructor/i.test(o.HTMLElement)||o.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||f&&d||i)&&typeof FileReader<"u"){var T=new FileReader;T.onloadend=function(){var v=T.result;v=b?v:v.replace(/^data:[^;]*;/,"data:attachment/file;"),g?g.location.href=v:location=v,g=null},T.readAsDataURL(c)}else{var h=o.URL||o.webkitURL,C=h.createObjectURL(c);g?g.location=C:location.href=C,g=null,setTimeout(function(){h.revokeObjectURL(C)},4e4)}});o.saveAs=s.saveAs=s,typeof t<"u"&&(t.exports=s)})}),Hg={};wb(Hg,{default:()=>ei});var kb=zg(Ug());vb(Hg,zg(Ug()));var{default:jg,...Sb}=kb,ei=jg!==void 0?jg:Sb;p();p();p();p();p();p();var r_=Qe().REDIRECT_URL;function Bb(){let[e,t]=De(null);return Ge(()=>{Jn().then(a=>{t(a)})},[]),[e,a=>{t(a),kn(a)}]}async function Rb(e,t,n){try{if(t===null)return"noupdate";let a=await Nb(e),r=await Jn();r.accountLastSyncedAt=Date.now(),U.debug("settings",t),U.debug("local settings.updatedAt",t.updatedAt),U.debug("remote settings.updatedAt",a.updatedAt),U.debug("last synced at",r.accountLastSyncedAt);let u=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(u=!0),!u&&t.updatedAt>a.updatedAt&&(u=!0),U.debug("isUpload",u),u)return await jb(e,t),await kn(r),"upload";let o=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(o=!0),!o&&t.updatedAt0&&Nt.remove(en),a}}function $g(e,t){let n=Ob(),[a,r]=Bb();Ge(()=>{!n||!n.token||a&&a.proAutoSync===!1||Ib(n)&&Rb(n.token,e,t)},[e,n])}function Ib(e){return Qt(e)?!0:new Date(e.createTime){Nt.get(en,null).then(n=>{t(n)})},[t]),e}function Nb(e){return(location.href?.indexOf("popup.html")>0?ha:ie)({responseType:"json",url:Ni+"/v1/user/settings",method:"get",headers:{token:e}}).then(n=>n.data)}function jb(e,t){return(location.href?.indexOf("popup.html")>0?ha:ie)({responseType:"json",url:Ni+"/v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(a=>a.data)}function wl(e){let{onClose:t}=e,[n,a]=De("Original"),[r,u,o,i]=Vo(()=>{setTimeout(()=>{v("updateGlobalContext",!1)()},250)});$g(r,u);let[s,c]=De(null),[l,m]=De(globalThis.location.href),[g,f]=De("auto"),[d,b]=De(null),T=N=>{a(N.detail)},h=N=>{f(N);let D=ng(l,N,s.sourceLanguageUrlPattern);u(y=>({...y,sourceLanguageUrlPattern:D})),rn(N)},C=()=>{m(globalThis.location.href)};Ge(()=>(document.addEventListener(ku,T,!1),En().then(N=>{c(N);let D=ct();f(D);let y=qe();a(y),lg(N.interval)}),document.addEventListener("urlChange",C),()=>{document.removeEventListener("pageTranslatedStatus",T),document.removeEventListener("urlChange",C)}),[]),Ge(()=>{En().then(N=>{c(N)})},[r]),Ge(()=>{l&&s&&ka({url:l,config:s}).then(N=>{b(N)})},[l,s]);let v=(N,D,y={})=>()=>{dr({method:N,data:y||{}}),D&&t()},O=()=>{t()},B=()=>{u(N=>({...N,enabled:!N.enabled})),setTimeout(()=>{O()},50)},x=()=>{Cl(),setTimeout(()=>{O()},50)},L=()=>{Cl(),setTimeout(()=>{O()},50)},M=(N="")=>{br(!0,N),setTimeout(()=>{t()},50)},w=()=>{ai(jc),setTimeout(()=>{globalThis.close()},50)},E=()=>{ni(),setTimeout(()=>{t()},50)},I=()=>{ri(),setTimeout(()=>{t()},50)},F=()=>{Gg(),setTimeout(()=>{t()},50)},A=()=>{ui(),setTimeout(()=>{t()},50)},_=()=>{Vg(),setTimeout(()=>{t()},50)},j=N=>{u(D=>({...D,generalRule:{...D.generalRule,mouseHoverHoldKey:N}}))};return!s||!d?null:V(el,{openEbookViewerPage:I,openEbookBuilderPage:A,onSwitchTranslationMode:N=>{v("switchTranslationMode",!0,{mode:N})()},onTranslateLocalHtmlFile:F,onTranslateLocalSubtitleFile:_,request:ie,onClose:O,onToggleEnabled:B,onTranslateTheWholePage:v("translateTheWholePage",!0),openOptionsPage:M,openPricingPage:w,onToggleTranslate:v("toggleTranslatePage",!0),onTranslateTheMainPage:v("translateTheMainPage",!0),ontranslateToThePageEndImmediately:v("translateToThePageEndImmediately",!0),onTranslatePage:v("translatePage",!0),onRestorePage:v("restorePage",!1),onTranslatePdf:x,openAboutPage:E,onTranslateLocalPdfFile:L,onSetPageLanguage:h,onUserConfigChange:u,config:s,pageStatus:n,ctx:d,currentUrl:l,currentLang:g,onSetLocalConfig:ti,onSetBuildinConfig:Kg,onMouseTriggerChanged:j})}function zb(e,t){for(let n of t){if(he()&&!qu()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}var vl={position:"right",right:0,top:335},Pt={...vl},si=!1,Aa=null,Sn=null,li=null,kl=null,yr=null,Sl=null,Yg=6,oi,ii,Qg=null,Zg=null;async function Xg(){let e=Qe();Sl=await np(),Pt=Sl.pagePopupConfig||Pt;let t=document.createElement("div");t.id="immersive-translate-popup",t.setAttribute("style","all: initial"),document.documentElement.appendChild(t);let n=t.attachShadow({mode:"open"});kl=n;let a=[e.IMMERSIVE_TRANSLATE_PICO_CSS,e.IMMERSIVE_TRANSLATE_COMMON_CSS,e.IMMERSIVE_TRANSLATE_POPUP_CSS,e.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);zb(n,[a]);let r=document.createElement("div");r.innerHTML=e.IMMERSIVE_TRANSLATE_POPUP_HTML,n.appendChild(r),Aa=n.querySelector("#immersive-translate-popup-container");let o=n.querySelector("#immersive-translate-popup-btn");Sn=o,li=n.querySelector("#mount"),Aa.setAttribute("style",Al(Pt)),Ml(),o.addEventListener("mousedown",ep),o.addEventListener("touchstart",qb),globalThis.addEventListener("resize",s=>{Aa.setAttribute("style",Al(Pt))})}function Ub(){cu(null,li),li.style.display="none",Sn.style.display="block",yr=setTimeout(()=>{Ml(!0)},2e3)}function Jg(e){let t=e.querySelector("#mount"),n=()=>{Ub()},a=r=>{r&&r.target&&r.target.id==="immersive-translate-popup-overlay"&&n()};(async()=>{let r=await En();cu(V(tg,{lang:r.interfaceLanguage,fallbackLang:"zh-CN",translations:L3,children:V("div",{onClick:a,id:"immersive-translate-popup-overlay",class:"immersive-translate-popup-overlay",children:V("div",{class:"immersive-translate-popup-wrapper",style:Hb(),children:V(wl,{onClose:n})})})}),t)})().then(()=>{Sn.style.display="none",li.style.display="block"})}function Hb(){let e=Dl(),t=e.height,{position:n,top:a,left:r}=Pt,u={position:"fixed"},o=300,i=300,s=100;return mc()&&(n=vl.position,a=vl.top),n==="right"||n==="left"?(u.top=a-s,u.top+o>=t?(u.bottom=30,delete u.top):u.top<=10&&(u.top=10),n==="right"?u.right=0:n==="left"&&(u.left=0)):(n==="top"||n==="bottom")&&(u.left=r-s,u.left+i>=e.width?(u.right=0,delete u.left):u.left<=10&&(u.left=0),n==="top"?u.top=0:n==="bottom"&&(u.bottom=0)),u}function Dl(){return{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}function ep(e){Zg=Aa.getAttribute("style"),oi=e.pageX,ii=e.pageY,yr&&clearTimeout(yr),si=!1,Sn.style.opacity="1",Sn.style.transform="none",Qg=Sn.getAttribute("style"),globalThis.addEventListener("mousemove",Ll),globalThis.addEventListener("mouseup",Pl),globalThis.addEventListener("touchmove",tp),globalThis.addEventListener("touchend",ci),globalThis.addEventListener("touchcancel",ci)}function qb(e){e.preventDefault&&e.preventDefault(),ep(e.changedTouches[0])}function tp(e){Ll(e.changedTouches[0])}function ci(e){e.preventDefault&&e.preventDefault(),Pl(e.changedTouches[0])}function Ll(e){e.preventDefault&&e.preventDefault(),si=!0,Aa.setAttribute("style",`left:${e.clientX}px;top:${e.clientY}px;transform:scale(1.6);`)}function Pl(e){e.preventDefault&&e.preventDefault(),$b(),yr&&clearTimeout(yr),oi=oi||0,ii=ii||0;let t=Math.abs(e.pageX-oi),n=Math.abs(e.pageY-ii);t{Ml(!0)},2e3)}function Ml(e=!1){Sn.style.opacity="0.4";let t="";Pt.position==="left"?t="translateX(-40%)":Pt.position==="right"?t="translateX(40%)":Pt.position==="top"?t="translateY(-40%)":Pt.position==="bottom"&&(t="translateY(40%)"),Sn.style.transform=t,e&&(Sn.style.transition="transform 0.2s ease-in-out, opacity 0.2s ease-in-out")}function $b(){globalThis.removeEventListener("mousemove",Ll),globalThis.removeEventListener("mouseup",Pl),globalThis.removeEventListener("touchmove",tp),globalThis.removeEventListener("touchend",ci),globalThis.removeEventListener("touchcancel",ci)}function Al(e){let t=Kb(e);return Object.keys(t).map(n=>typeof t[n]=="number"?`${n}:${t[n]}px;`:"").join("")}function Kb(e){let{position:t,...n}=e,a=Dl(),r={};return t==="left"?(r.left=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="right"?(r.right=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="top"?(r.top=0,n.left>a.width?r.left=a.width-100:r.left=n.left):t==="bottom"&&(r.bottom=0,n.left>a.width?r.left=a.width-100:r.left=n.left),r}var ap=!1;async function rp(){ap||(ap=!0,Xg().catch(e=>{U.error("init popup error",e)}))}var up=!1,lp=[()=>{Ye.unbind()}],_l=[...lp],Gb=xt(async()=>{await br()},50),Vb=xt(async()=>{await ni()},50),Yb=xt(async()=>{await ui()},50),Jb=xt(async()=>{await ri()},50),cp=xt(e=>{dr({method:e,data:{trigger:"userscript_menu"}})},50),Qb=xt(()=>{di();let e=new CustomEvent(Wn,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},200),Zb=xt(()=>{pi();let e=new CustomEvent(Wn,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},200),Xb=xt(()=>{gi();let e=new CustomEvent(Wn,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},200);function ey(e,t){let n=e.document;if(up)return;if(up=!0,he()||yp(),n.addEventListener("securitypolicyviolation",my),document.addEventListener(ge+"DocumentMessageUser",fp),document.addEventListener(ge+"DocumentMessageUpdateUser",hp),document.addEventListener(ge+"ChangeSuccessService",bp.bind(null,t)),document.addEventListener(vu,ly.bind(null,t)),n.addEventListener(ge+"EbookLoaded",dy),n.addEventListener(Ec,cy),n.addEventListener(Tc,gy.bind(null,t)),n.addEventListener("click",r=>{ry(r,t)}),he()&&(globalThis.top!=globalThis.self?e.addEventListener("message",ny,!1):n.addEventListener(Wn,ty)),globalThis.top===globalThis.self){let r=ea.rootIframe(Pu);r.handleAsk("getRateLimitDelay",Md),r.handleAsk("throttleRequest",xm)}}function dp(e,t){py(),ey(t,e);let n=t.document,a=ay.bind(null,e);e.rule.fingerCountToToggleTranslagePageWhenTouching>=2&&n.addEventListener("touchstart",a),_l.push(()=>{n.removeEventListener("touchstart",a)}),he()&&globalThis.top===globalThis.self&&(N0(e.config),fy(e.config)),Zt()&&N0(e.config)}function ty(e){rp()}function ny(e){let t=e;t&&t.data&&t.data.payload&&t.data.author===wu&&mr(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})}function ay(e,t){let n=t;n.touches.length==e.rule.fingerCountToToggleTranslagePageWhenTouching?Qb():n.touches.length===e.rule.fingerCountToToggleTranslationMaskWhenTouching?Xb():n.touches.length===e.rule.fingerCountToToggleTranslagePageOnlyTranslationWhenTouching&&Zb()}function ry(e,t){let n=e.target;if(!n||!n.getAttribute){Fl(n);return}let a=n.getAttribute("data-immersive-translate-event");a&&Je(a,[{name:a}],{...t,sourceLanguage:"none"});let r=n.getAttribute(`data-${J}-action`);if(r)if(r==="retry"){e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),mi(),Fl(n,!0);return}else if(r=="toast-error"){let u=n.getAttribute(`data-${J}-tooltip-text`);Bl(gp.bind(null,t,u||""))}else r=="close-search"&&(e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),Bl(iy.bind(null,t)));Fl(n)}async function op(e=!1){let t=document.querySelector(`.${J}-search-recomend`);if(!t||(t.remove(),!e))return;let n=await ln();n.generalRule||(n.generalRule={}),n.generalRule.enableSearchEnhancement=!1,await sn(n)}async function uy(){let e=await ln(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,a=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(a=e.translationUrlPattern.matches||[]),!n&&a.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await sn(e)}async function oy(){let e=await ln(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await sn(e)}var ip=0;function Bl(e){let t=Date.now();if(t-ip<2e3)return;ip=t;let n=`${J}-modal`,a=document.querySelector(`.${n}`);if(a?.style.display=="block")return;let r=`${J}-modal-title`,u=`${J}-modal-body`,o=`${J}-modal-footer`;if(a){let i=a.querySelector(`.${r}`),s=a.querySelector(`.${o}`),c=a.querySelector(`.${u}`);e(a,i,c,s)}else{a=document.createElement("div"),a.className=n+" notranslate",a.id=n;let i=document.createElement("div");i.className=J+"-modal-content notranslate",a.appendChild(i);let s=document.createElement("span");s.textContent="\xD7",s.className=J+"-close",i.appendChild(s);let c=document.createElement("div");c.className=r+" notranslate",i.appendChild(c);let l=document.createElement("div");l.className=u+" notranslate",i.appendChild(l);let m=document.createElement("div");m.className=o,i.appendChild(m),document.body.appendChild(a),s.onclick=function(){a.style.display="none"},window.onclick=function(g){g.target==a&&(a.style.display="none")},e(a,c,l,m)}setTimeout(()=>{sy()},100)}function iy(e,t,n,a,r){let u=mp.bind(null,e);n.innerHTML=`
${Ko} ${u("disableConfirm")}
`,a.innerHTML="";let o=document.querySelector(`div[data-${J}-cancel-desc]`),i=document.createElement("p");i.innerHTML=o?Le.sanitize(o.textContent||""):Le.sanitize(u("searchEnhancementNotes")),i.style.cssText="margin-bottom:12px",a.appendChild(i);let s=[{id:"enable-search-enhancement",value:"enable",text:u("enableSearchEnhancement")},{id:"disable-once",value:"once",text:u("disableOnce")},{id:"disable-global",value:"global",text:u("disableGlobal")}];for(let f=0;f${u("option")}`})),a.appendChild(c);let l=a.querySelector(`.${J}-open-enhancement`);l&&(l.onclick=function(){xp(!0)});let m=document.createElement("button");m.innerText=u("closeModal"),m.className=`${J}-btn ${J}-cancel-btn`;let g=document.createElement("button");g.className=`${J}-btn`,g.innerText=u("saveSettings"),r.innerHTML="",r.appendChild(m),r.appendChild(g),m.onclick=function(){t.style.display="none"},g.onclick=function(){let f=a.getElementsByTagName("input"),d="";for(let b=0;b
1. \u5207\u6362\u5230 ${u} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458`:i+=`

\u5982\u679C\u60A8\u6709\u7591\u95EE\uFF0C\u8BF7\u8054\u7CFB support@immersivetranslate.com`,Bl(gp.bind(null,e,i))}catch(a){U.warn("parse message error",a)}}function cy(e){let t=e;if(U.debug("receive third party message",t),t&&t.detail)try{let n=JSON.parse(t.detail);n&&n.type&&(n.type==="retryFailedParagraphs"?hy({method:"retryFailedParagraphs"}):n.type==="updateCommands"?Ep(n.data):n.type==="toggleEnableDefaultAlwaysTranslatedUrls"?uy():n.type==="toggleEnableInputTranslation"?oy():cp(n.type))}catch(n){U.warn("parse message error",n)}}function dy(e){setTimeout(()=>{pp()},10)}function my(e){Ee.HAS_CSP_ERROR="1"}function gy(e,t){let n=event.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&Je(n.name,[{name:n.name}],{...e})}function py(){_l.forEach(e=>{e()}),_l=lp}function fy(e){if(he()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=Vu.commands,r=[...Object.keys(t).filter(u=>u==="toggleTranslatePage").map(u=>{let o=t[u].description,i=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(i=cr(`browser.${o.slice(6,-2)}`,e.interfaceLanguage)),{id:u,title:i}}),{id:Mi,title:cr("browser.openEbookViewer",e.interfaceLanguage),key:"e"},{id:Fi,title:cr("browser.openEbookBuilder",e.interfaceLanguage),key:"m"},{id:Li,title:cr("browser.openOptionsPage",e.interfaceLanguage),key:"o"},{id:Pi,title:cr("browser.openAboutPage",e.interfaceLanguage),key:"a"}];for(let u of r)GM.registerMenuCommand(u.title,()=>{u.id===Li?Gb():u.id===Pi?Vb():u.id===Fi?Yb():u.id===Mi?Jb():cp(u.id)},u.key)}}function hy(e){mr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{U.error("send content message request failed",e,n)});let t=new CustomEvent(Wn,{detail:e});globalThis.document.dispatchEvent(t)}p();var Da={};async function Rl(){let t=[...document.querySelectorAll(".source-text")].map(a=>a.textContent).join(""),n=await Ke({text:t,minLength:200,pageLangs:[pa(),"en"]});return rn(n),n}async function Tp(e){Lt("Translating");let t=ct(),n=uo(),a=[...document.querySelectorAll(".source-text")];if(wo(e,t))return;let r=a.filter(u=>u.innerText?.trim()).map((u,o)=>{let i=u.parentElement?.parentElement?.querySelector(".target-text");return at(u,"id",o+""),i&&(rr(i,o)?.remove(),i.appendChild(uu(e,o))),{text:u.innerText||"",id:o,from:t,to:e.targetLanguage,url:"https://google.com",fromByClient:n}});document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await In({sentences:r},e,(u,o,i)=>{let s=i.id,c=rr(document.body,s);if(!c)return;let l=c.parentElement;l&&(c.remove(),u?(l.innerHTML=Le.sanitize(`${u.message}`),Da[s]={ok:!1,sentence:i}):o&&(l.innerHTML=Le.sanitize(o.text),Da[s]={ok:!0,sentence:i}),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!u}})})))})}catch(u){throw u}finally{Lt("Translated")}}async function Cp(e){Lt("Translating"),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(Da),n=[],a=[];for(let r of t){let u=Da[r];if(!u.ok){let i=document.querySelector(`#error-id-${r}`);if(i){let s=i.parentElement;i.remove(),s&&(delete Da[r],s.appendChild(uu(e,r)),a.push(u.sentence))}}}try{await In({sentences:a},e,(r,u,o)=>{let i=o.id,s=rr(document.body,i);if(!s)return;let c=s.parentElement;c&&(s.remove(),r?(c.innerHTML=Le.sanitize(`${r.message}`),Da[i]={ok:!1,sentence:o}):u&&(c.innerHTML=Le.sanitize(u.text),Da[i]={ok:!0,sentence:o}),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!r}})})))})}catch(r){throw r}finally{Lt("Translated")}}function Il(){Lt("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}p();var Ol={};async function wp(){let e=[...document.querySelectorAll("iframe")],t="";for(let a of e){let r=a.contentDocument;if(!r)continue;let u=r.body;if(u&&(t=t+u.innerText||"",t.length>1e3))break}let n=await Ke({text:t,pageLangs:["en"]});return rn(n),n}async function vp(e){Lt("Translating"),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(Ol),n=[];for(let a of t){let r=Ol[a];if(r.error){let o=r.commonAncestorContainer.querySelector(`[${Su}='${a}']`);o&&o.remove(),n.push(r)}}try{await Do(n,e,e.config.translationMode)}catch{}finally{Lt("Translated")}}function kp(){let e=[...document.querySelectorAll("iframe")];for(let t of e){let n=t.contentDocument;if(!n)continue;let a=n.querySelectorAll("."+qt);for(let r of a)r.remove()}Lt("Original")}async function Sp(e){Lt("Translating");let t=Wt(),n=[...document.querySelectorAll("iframe")],a=[],r=[];for(let i of n){let s=i.contentDocument;if(!s)continue;or(s,e);let c=s.body;if(!c)continue;let l=un(e);l.isModifyImage=!1,oa({id:t,container:c,filterRule:l,onParagraph:m=>{a.push(m)}})}let u=Co(e.config.translationServices[e.translationService]?.placeholderDelimiters),o=1;for(let i of a){let s=ko(i.flatNodes,{isPreWhitespace:i.isPreWhitespace||!1,delimiters:u,stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(l=>l.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)});if(!s)continue;i.variables=s?.variables||{},i.text=s?.text,i.id=(o++).toString();let c=await F0(i,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:u,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});c&&(r.push(c),Ol[c.id]=c)}a=[],document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await Do(r,e,e.config.translationMode)}catch{}finally{Lt("Translated")}}p();var by=new AbortController,{signal:yy}=by,Hl=0,ql=0,Nl=!1,jl=0,hu=!1,La,Ap=0,Pa=[];function fi(e,t){xy();let n=e,a=n.config,r=a.generalRule.mouseHoverHoldKey==="Off",u=a.generalRule.mouseHoverHoldKey==="Auto",o=xt(l=>{if(Nl==!1&&Math.abs(l.clientX-Hl)+Math.abs(l.clientY-ql)>3&&(jl<2?jl+=1:Nl=!0),Hl=l.clientX,ql=l.clientY,u||hu&&!La){let m=Fp(n.rule,t);if(m){if(Wl(m))return;Lp(n,m)}}},u?700:300),i=l=>{let m=l.target;Wl(m)||Lp(n)},s=l=>{let m=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",g=Ye.getPressedKeyCodes();if(g.length>1&&Ye[m]&&(Ap=Date.now(),hu=!1),g.length===1&&Ye[m]){let f=Date.now();hu=!0,La&&clearTimeout(La),La=setTimeout(()=>{let d=Ap-f;d>0&&d<=150?hu=!1:i(l),La=void 0},150)}};if(Pa.push(()=>{La&&clearTimeout(La)}),r)return;zl("mousemove",o,t),Pa.push(()=>{t.removeEventListener("mousemove",o)});function c(){Nl=!1,jl=0,o.cancel()}if(u)zl("blur",c,t),Pa.push(()=>{t.removeEventListener("blur",c)});else{let l=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",m=["ctrl","alt","shift","cmd","command","option","control"];zl("keyup",Dp,t),Pa.push(()=>{t.removeEventListener("keyup",Dp)}),m.includes(l)?Ye("*","mouseHover",s):Ye(a.generalRule.mouseHoverHoldKey,"mouseHover",i),Ye.setScope("mouseHover"),Pa.push(()=>{Ye.deleteScope("mouseHover")})}}function xy(){Pa.forEach(e=>e()),Pa=[]}function Dp(e){hu=!1}function zl(e,t,n=window){return n.addEventListener(e,t,{signal:yy})}function Lp(e,t,n=window){if(t=t||Fp(e.rule,n),!t){U.debug("can not find selection part!");return}if(Wl(t)){U.debug("exclude dom");return}w3(e,t);let a=Mo();a?.currentUrl!==window.location.href&&(jn(),I0(e)),a&&(a.setupMouseHoverListener=fi);let r=un(e);r.excludeSelectors=[],r.selectors=[];let u=!1;oa({id:a.id,container:t,filterRule:r,force:!0,onParagraph:o=>{iu(a,o,!0).then(i=>{if(i&&!u){u=!0;let s=Date.now();je(wc,s),Je("mouse_hover_translate",[{name:"mouse_hover_translate"}],{...e,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function Fp(e,t){return Ey(Hl,ql,e,t)}function Ey(e,t,n,a){let r=Km(e,t,n,a);if(r==null)return;let u=()=>{let s=a.document.elementFromPoint(e,t);if(!s)return;let c=Gm(s,e,t);return c===s?s.nodeName==="BUTTON"?s:void 0:Mp(c,n)},o=()=>{try{r.setStartBefore(r.startContainer),r.setEndAfter(r.startContainer)}catch(c){U.debug("get mouse over word fail",c)}let s=r.getBoundingClientRect();if(!(s.left>e||s.rightt||s.bottomn[l]=[l,...n[l]||[]]);let a=t.inputStartingTriggerKeyAlias[t.inputStartingTriggerKey]||[];a.includes(t.inputStartingTriggerKey)||a.unshift(t.inputStartingTriggerKey),n[t.inputTargetLanguage]=[...a,...n[t.inputTargetLanguage]];let r=t.inputTrailingTriggerKeyTimeout;fa().any&&(r=t.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:t.inputTrailingTriggerKeyRepeatTimes,triggerKey:t.inputTrailingTriggerKey,triggerTimeout:r,codePrefix:t.inputStartingTriggerKey,codeAlias:n,flatAlias:Object.values(n).flat(),codePrefixAlias:t.inputStartingTriggerKeyAlias},o=0,i=Date.now();hi&&self.removeEventListener("keydown",hi),hi=s,self.addEventListener("keydown",hi);function s(l){if(xr||bi===!1)return;let m=l,g=m.target||m.srcElement,f=g?.tagName;(g?.isContentEditable||f=="INPUT"||f=="SELECT"||f=="TEXTAREA")&&(Ny(l,u.triggerKey,u.codePrefixAlias)?c(l):o=0)}async function c(l){Date.now()-i=u.triggerTimes&&ky()&&(o=0,vy(l,e,u))}jy(e)}function Ty({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let a=[],r=n[e]||[];r.includes(e)||r.unshift(e);for(let u of r){let o=t.map(i=>{let s=u+i;return r.includes(i)||(s+=" "),s});a.push(...o)}return new RegExp(a.join("|"))}function Bp(e,t){for(let[n,a]of Object.entries(t))if(a.includes(e))return n;return""}var Er;function Cy(e){let t=e.parentElement;if(!t)return;Er=document.createElement("div"),Er.className=J+"-input",Er.innerHTML=`
`,t.appendChild(Er);let n=t,a=!1;do{let r=getComputedStyle(n).position;if(["fixed","absolute","relative"].includes(r)){a=!0;break}n=n.parentElement}while(n);if(n=t,!a)do{if(getComputedStyle(n).position==="static"){n.style.position="relative";break}n=n?.parentElement||null}while(n)}function wy(){Er&&Er.remove()}async function vy(e,t,n){if(!xr)try{let g=function(){i=t.config.inputTargetLanguage;let d=o.split(" ")[0];d&&d[0]&&(d=d[0].toLowerCase()+d.slice(1)),d.trim()&&n.flatAlias.includes(d)?(i=Bp(d,n.codeAlias),u=o.slice(d.length+1)):u=o},f=function(){i="";let d=Ty(n),b=o.split(d);if(b.length<2)return;if(u=b[b.length-1],r=b[0],b.length>2){let h=o.lastIndexOf(u),C=o.slice(0,h).lastIndexOf(b[b.length-2]);r=o.slice(0,C+b[b.length-2].length)}if(r.endsWith(n.codePrefix))return;let T=o.slice(r.length+1,o.indexOf(u)).trim();if(i=Bp(T,n.codeAlias),!i){U.warn("not found alias",T);return}},a=document.activeElement;xr=!0;let r="",u="",o=Tr(a)||"",i=t.config.inputTargetLanguage;n.codePrefix==="none"?g():(f(),!i&&t.config.enableInputTranslationWithoutTriggerKey&&g());let s=Ay(u,n),c=await Ke({text:s,pageLangs:["en"]});U.debug("translateContent",s,c);let l={text:s||"",id:0,from:c,to:i,url:"https://google.com",fromByClient:c};if(!l.text)return;if(t.config.isShowInputTranslationConsent&&!_p){_p=!0;let d=await zy(t);if(e.target&&e.target.focus(),d==="open_settings"){br(!0,"#input");return}else if(d==="open_learn_more"){ai("https://immersivetranslate.com/docs/input/");return}else if(d==="disable_once"||d==="disable_forever"){if(bi=!1,d==="disable_forever"){let b=await ln();b.enableInputTranslation=!1,b.isShowInputTranslationConsent=!1,await sn(b)}else if(d==="disable_once"){let b=await ln();b.isShowInputTranslationConsent=!1,await sn(b)}return}else if(d==="close_disable_once"||d==="close_disable_forever"){if(bi=!1,d==="close_disable_forever"){let b=await ln();b.enableInputTranslation=!1,b.isShowInputTranslationConsent=!1,await sn(b)}return}else if(d==="enable"){let b=await ln();b.enableInputTranslation=!0,b.isShowInputTranslationConsent=!1,await sn(b)}else if(d==="close_enable"){let b=await ln();b.enableInputTranslation=!0,await sn(b)}}Cy(a),je(_i,Date.now());let m=await Ca(l,{...t,translationService:t.inputTranslationService});Oy(t),Iy(a,r+m.text),xr=!1}catch(a){throw xr=!1,a}finally{xr=!1,wy()}}function ky(){let e=document.activeElement;if(!e)return!1;if(yi(e)){let t=e.selectionStart||0,n=e.value.length,r=e.value.split(` -`).reverse()[0].trim(),u=n<=t;return U.debug("cursorPosition",t,"textLength",n),U.debug("input isTail",u,"tailHasText",r),u&&!!r}else{let t=window.getSelection();if(!t)return U.debug("No active selection found."),!1;if(t.rangeCount>0){let n=t.getRangeAt(0),a=n.startContainer;if(a.nodeType===Node.TEXT_NODE){let r=Sy(a,e);U.debug("Current text node:",a.textContent),U.debug("Cursor position within text node:",n.startOffset);let u=a.textContent?.length===n.startOffset&&r,o=a.textContent?.trim();return U.debug("editdiv isTail",u,"tailHasText",o),u&&!!o}else U.debug("Cursor is not within a text node.")}}return!1}function Sy(e,t){let n;function a(r){if(r.nodeType===Node.TEXT_NODE)n=r;else for(let u of r.childNodes)a(u)}return a(t),n==e}function Ay(e,t){let{triggerTimes:n,triggerKey:a}=t,r=0,u=" ";a.length==1?(r=n,u=a):a.toLowerCase()=="space"&&(r=n);let o=e.length;for(let i=e.length-1;i>=e.length-r;i--){if([10,8629].includes(e[i].charCodeAt(0))){o--;continue}if(![...t.codePrefixAlias[a]||[],u].includes(e[i]))break;o--}return e.length-o<3&&[".","\u3002"].includes(e[o-1])&&o--,e.slice(0,o)}function Dy(e,t){let n=t.innerHTML,a=Tr(t);return{html:n.replace(a,e),text:e}}function Rp(e,t,n=!1){let a=Tr(t);return n?a.trim().endsWith(e.text.trim()):a.trim()==e.text.trim()}function Tr(e){return e.value||e.innerText||e.textContent}async function Ma(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function Ly(e,t,n){await Ma(10);let a=new DataTransfer;e.forEach(r=>{r==="plain"&&a.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:a,bubbles:!0,cancelable:!0})),a.clearData(),await Ma(10)}async function Py(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await Ma(10))}async function My(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await Ma(20),(t.value||t.value==="")&&(t.value=e.text)}async function Fy(e,t){yi(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await Ma(20))}var _y=[Ly.bind(null,["plain"])];function By(e){let t;yi(e)?t=new InputEvent("beforeinput",{bubbles:!0,cancelable:!0,inputType:"deleteContent"}):t=new KeyboardEvent("keydown",{bubbles:!0,cancelable:!0,keyCode:8,which:8,location:0,key:"Backspace"}),e.dispatchEvent(t)}function yi(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function Ry(e){if(yi(e))return;e.focus();let t=window.getSelection();if(!t)return;let n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}async function Iy(e,t){await Ry(e),await Ma(50);let n=Dy(t,e);By(e),U.debug("clearContent",Tr(e)),await Ma(50);for(let a of[..._y,My,Fy,Py])if(await a(n,e),U.debug("setContent",a.name,Rp(n,e),Tr(e),n),Rp(n,e))break}function Oy(e){Je("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage}}],e)}function Ny(e,t,n){let a="";e&&e.code&&(a=e.code.toLowerCase());let r="";e&&e.key&&(r=e.key.toLowerCase());let u=e.keyCode,o=n[t]||[];return u===229&&t!=="space"?!1:!!(o.includes(a)||o.includes(r)||a===t||r===t)}async function jy(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await At(t,"")||Number(await At(_i,0))>0)return;let r=e.rule.inputTutorialsSelectors,u=e.rule.inputTutorialsText;if((r?.length||0)>0&&u)for(let o=0;o{Hy()},100),new Promise(c=>{let l=c;if(u){let L=u.querySelector(`.${n}`),M=u.querySelector(`.${r}`),w=u.querySelector(`.${a}`)}else{u=document.createElement("div"),u.className=t+" notranslate",u.id=t;let L=document.createElement("div");L.className=J+"-modal-content notranslate",u.appendChild(L);let M=document.createElement("span");M.textContent="\xD7",M.className=J+"-close",L.appendChild(M),o=document.createElement("div"),o.className=n+" notranslate",L.appendChild(o),s=document.createElement("div"),s.className=a+" notranslate",L.appendChild(s),i=document.createElement("div"),i.className=r,L.appendChild(i),document.body.appendChild(u),M.onclick=function(){v(),c("close")},window.onclick=function(w){w.target==u&&(u.style.display="none",c("close"))}}document.addEventListener("keydown",x);let m=Uy.bind(null,e);o.innerHTML=`
${Ko} ${m("modalEnableInputTranslationTitle")}
`,s.innerHTML="";let g=document.createElement("p");g.innerHTML=m("modalEnableInputTranslationDesc",{1:"https://immersivetranslate.com/docs/input/"}),g.style.cssText="margin-bottom:12px",s.appendChild(g);let f=document.createElement("div");f.style.cssText="margin-bottom: 12px;",f.innerHTML=Le.sanitize(m("disableInputTranslationTips",{option:`${m("option")}`,learnMore:`${m("learnMore")}`})),s.appendChild(f);let d=[{id:"enable-search-enhancement",value:"enable",text:m("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:m("disableOnce")},{id:"disable-global",value:"global",text:m("disableGlobal")}];for(let L=0;L{In({sentences:r},{...e,translationService:"google"},(s,c,l)=>{if(s)return o([]);let m=c?.id||0,g=n[m];g&&g.className==J+"-search-title-wrapper"&&(g.innerHTML+=Le.sanitize(`
${c?.text}
`,{ADD_ATTR:["target"]}))})})}function xi(e,t,n){t&&Je(t.key,[{name:t.key}],{...e,sourceLanguage:t.sourceLanguage||n})}function $l(e,t,n,a){let r=n.querySelectorAll('[translate="true"]');return qy(e,t,[...r],a),n}async function Kl(e,t){let a=(await ie({url:Wy(e),method:"GET",responseType:"raw",headers:{"cache-control":"no-cache","content-type":"application/xml","Sec-Fetch-Site":"none",accept:"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}})).body,u=new DOMParser().parseFromString(a,"text/xml"),o=[],i=u.querySelectorAll("item");for(let s=0;s${e.cancelDescription}
`:""} +`+t.rule.additionalInjectedCss)),i&&va(e,i,"immersive-translate-dynamic-injected-css")}p();async function c3(){let e="auto",t=[pa(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await Ke({text:er(document.body),pageLangs:t})),e}p();p();function d3(e,t){return[e,!e||e.endsWith("/")?"":"/",t,".json"].join("")}function C0(e,t){let n=e;return t&&Object.keys(t).forEach(a=>{let r=t[a];if(r===void 0)return;let u=h9(a);if(typeof r=="object"||u){let o=r;u&&typeof o=="string"&&(o={tag:"a",href:o});let i=`<${a}>`,s=n.indexOf(i);if(s!==-1){let c=o.tag||"a",l=n.indexOf(``);if(l!==-1){let m=n.substring(s+i.length,l),g=Object.keys(o).filter(f=>f!=="tag").map(f=>`${f}="${o[f]}"`).join(" ");n=n.replace(`${i}${m}`,`<${c} ${g}>${m}`)}}}else if(r){let o=new RegExp("{"+a+"}","gm");n=n.replace(o,r.toString())}}),n}function uu(e,t,n){let a=e[t];if(!a)return n;let r=n.split("."),u="";do{u+=r.shift();let o=a[u];o!==void 0&&(typeof o=="object"||!r.length)?(a=o,u=""):r.length?u+=".":a=n}while(r.length);return a}function Nn(e,t,n,a,r){if(!e.hasOwnProperty(n))return t;let u=uu(e,n,t);return u===t&&n!==a&&(u=uu(e,a,t)),C0(u,r)}function h9(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}p();p();function w0(e,t,n=[],a){let r=["notranslate"];return a&&r.push(_c),e&&(r.push(`${J}-target-translation-theme-${e}`),t?r.push(`${Ii}-theme-${e}`):r.push(`${Ri}-theme-${e}`)),n.length>0&&r.push(...n),t?r.push(Ii):r.push(Ri),r}function v0(e){let t=["notranslate",Mc];return e&&t.push(`${J}-target-translation-theme-${e}-inner`),t}function m3(e,t,n){let{rule:a,state:r}=n,{translationTheme:u}=r,{variables:o,isVertical:i}=e;o=o||[];let{text:s}=t,{wrapperPrefix:c,wrapperSuffix:l}=a,m=nr(n),g="afterend",f=m[0],d=m[1],b=`${f}(\\d+)${d}`,T=new RegExp(b,"g"),h=Le.sanitize(s);o.length>0&&(h=h.replace(T,B=>{let x=h.indexOf(B),L=h[x-1]===" ",M=h[x+B.length]===" ",w=B.slice(m[0].length,-m[1].length),E=Number(w);if(isNaN(E))return B;let I=o[Number(E)];if(I&&I.type==="element"){let F=I.value.outerHTML;return L||(F=" "+F),M||(F=F+" "),F}else U.error("variable type not supported",I,B);return B}));let C=w0(u,e.inline,a.translationClasses||[],e.preWhitespace);i&&C.push(Fc);let v=v0(u),O="";return a.translationBlockStyle&&(O=`style="${a.translationBlockStyle}"`),h=`<${n.rule.targetWrapperTag} ${O} class="${C.join(" ")}" ${wn}="1"><${a.targetWrapperTag} class="${v.join(" ")}" ${wn}="1">${h}`,e.inline||(c==="smart"?h=`
${h}`:h=`${c}${h}`),e.inline&&(c!=="smart"?h=`${c}${h}`:h=`<${a.targetWrapperTag} class="notranslate" ${wn}="1"> ${h}`),l==="smart"?h=`${h}`:h=`${h}${l}`,{html:h,position:g}}function ko(e,t){let n=null,{stayOriginalSelectors:a,delimiters:r,isPreWhitespace:u}=t,o=[],i={};for(let s=0;s2&&(T=`<${r[2]}${b}>`),i[b]=c,o.push({text:T,type:"variable"})}else o.push({text:c.textContent||"",type:"text"});else{let d=c.textContent||"";m&&(d=ua(k0(c))),o.push({text:d,type:"text"})}else if(c.nodeType===Node.ELEMENT_NODE)if(c&&Dt(c,a)){let b=Object.keys(i).length,T=`${r[0]}${b}${r[1]}`;r.length>2&&(T=`<${r[2]}${b}>`),i[b]=c;let h=S0(o).endsWith(" ")?" ":"",C=ua(c.innerText||c.textContent),v=ua(c.nextSibling).startsWith(" ")?" ":"",O=au(h+C+v),B=O[0]+T+O[1];if(h===" ")B=B.trimStart();else if(!B.startsWith(" ")){let x=au(c.previousSibling)[1];x===""&&(x=" "),B=x+B}o.push({text:B,type:"variable"})}else{let d=S0(o).endsWith(" ")?" ":"",b=ua(c.innerText||c.textContent);m&&(b=ua(k0(c)));let T=ua(c.nextSibling).startsWith(" ")?" ":"",h=au(d+b+T),C=h[0]+(c.innerText?.trim()||c.textContent?.trim()||"")+h[1];if(d===" ")C=C.trimStart();else{let v=au(c.previousSibling)[1];v===""&&(c.nodeName==="A"||c.nodeName==="CODE")&&(v=" "),C=v+C}o.push({text:C,type:"text"})}else{let d=S0(o).endsWith(" ")?" ":"",b="";c.textContent&&(b=ua(k0(c))),d===" "&&(b=b.trimStart()),o.push({text:b,type:"text"})}}if(o&&o.length>0){let s="";for(let c=0;c0&&(m=o[c-1].text),c2){let l=c[2];return b9({delimiterTag:l,targetText:e.targetText,inline:r,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:a}).html}else{let l=m3(s,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return l.html}}function k0(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function b9(e){let{delimiterTag:t,inline:n,translationClasses:a,targetWrapperTag:r,wrapperPrefix:u,variables:o,preWhitespace:i,wrapperSuffix:s,translationTheme:c,translationBlockStyle:l}=e;o=o||[];let m=e.targetText;m=Le.sanitize(m);let g=m,f=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),d=new RegExp(`<${t}(\\d+)>`);o.length>0&&(g=g.replace(f,C=>{let v=g.indexOf(C),O=g[v-1]===" ",B=g[v+C.length]===" ",x=C.match(d);if(!x)return C;let L=x[1],M=Number(L);if(isNaN(M))return C;let w=o[Number(M)];if(w&&w.type==="element"){let E=w.value.outerHTML;return O||(E=" "+E),B||(E=E+" "),E}else if(w&&w.type==="text"){let E=w.value;return O||(E=" "+E),B||(E=E+" "),E}else U.error("variable type not supported",w,C);return C}));let b=w0(c,n,a||[],i),T=v0(c),h="";return l&&(h=`style="${l}"`),g=`<${r} ${h} class="${b.join(" ")}" ${wn}="1"><${r} class="${T.join(" ")}" ${wn}="1">${g}`,n||(u==="smart"?g=`
${g}`:g=`${u}${g}`),n&&(u!=="smart"?g=`${u}${g}`:g=`<${r} class="notranslate" ${wn}="1"> ${g}`),s==="smart"?g=`${g}`:g=`${g}${s}`,{html:g,position:"afterend"}}function S0(e){let t=e[e.length-1];return t?t.text:""}function un(e){let t=e.rule.selectors,n=e.rule.excludeTags,a=e.rule.additionalExcludeTags,r=e.rule.excludeSelectors,u=e.rule.additionalExcludeSelectors;return e.state.translationArea==="body"&&(t=[],r=[]),{globalStyles:e.rule.globalStyles,globalAttributes:e.rule.globalAttributes,selectors:t,skipEditableCheck:e.rule.skipEditableCheck,lineBreakMaxTextCount:e.rule.lineBreakMaxTextCount,isTransformPreTagNewLine:e.rule.isTransformPreTagNewLine,excludeSelectors:n.concat(a).map(i=>i.toLowerCase()).filter(i=>i!=="code"&&i!=="img").concat(r).concat(u),blockSelectors:e.rule.allBlockTags.map(i=>i.toLowerCase()).concat(e.rule.extraBlockSelectors),extraBlockSelectors:e.rule.extraBlockSelectors,extraInlineSelectors:e.rule.extraInlineSelectors.concat(e.rule.additionalInlineSelectors),stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(i=>i.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)}}var y9={sanitize:e=>e};function Ao(e,t){e.interruptEffectDOM||(e.walkContainer({id:e.id,container:t,filterRule:un(e.ctx),onParagraph:ou.bind(null,e),onFrame:n=>{D0(e,n,!0)},onIgnoreElement:n=>{e.ignoreResizeObserver?.observe(n)}}),Na&&at(t,"consumeContainer",e.id))}function D0(e,t,n){try{if(e.injectCssToDocument(t,e.ctx),t instanceof HTMLIFrameElement){if(!ar(t))return;U.debug("onFrame fragment",t);let a=t.contentWindow?.document.body;a&&(sr(a,e,n),e.dynamicContainerObserver?.observe(a,{childList:!0,subtree:!0}))}else U.debug("onFrame shadowRoot",t.host),sr(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0})}catch{}}function sr(e,t,n=!0){let{globalStyles:a,globalAttributes:r}=un(t.ctx),u=0;if(s(t,e,n))return;if(xn(e)&&i(e)){o(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,l=>(xn(l)&&(a&&b0(l,a),r&&x0(l,r)),s(t,l,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(zt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode();){zt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let l=c.currentNode;if(i(l))for(o(l);;){if(c.nextSibling()){let m=c.currentNode;if(zt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),i(m)){o(m);continue}else break}if(!c.parentNode())return}}}catch{}if(u==0&&e instanceof HTMLElement){o(e);return}return t.observeContainers;function o(c){zt.clearMark(c),u++,t.immediateTranslateCapacity>=0?Ao(t,c):(Na&&at(c,"observeContainer",t.id),t.containerVisibleObserver?.observe(c))}function i(c){let l=c.nodeName.toLowerCase();if(c.shadowRoot)return D0(t,c.shadowRoot,n),!1;if(l==="iframe")return D0(t,c,n),!1;if(["script","#document-fragment","img"].includes(l))return!1;let m=t.containerRule;if(m.selectors&&m.selectors?.length>0)return vo(c,m.selectors);if(m.pageHeight){let g=c.scrollHeight;if(g>0&&g0)return!0}return!1}function s(c,l,m){if(l.nodeName.toLowerCase()=="script")return l.childNodes.length==0||l.childNodes.length==1&&l.childNodes[0].nodeType==Node.TEXT_NODE;if(l.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(l.nodeType!==Node.ELEMENT_NODE||m&&zt.isMarked(l,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&l.nodeName==="PRE")return!1;let f=un(c.ctx);return!!E0(l,{excludeSelectors:f.excludeSelectors,selectors:f.selectors,stayOriginalSelectors:f.stayOriginalSelectors})}}function L0(e,t){if(!e.targetNodes)return;let n=e.state||"original",a=e.commonAncestorContainer;if(!zt.isMarked(a,e.ctxId))return;let r=a.contains(e.rootNodes[0]),u=a.contains(e.targetNodes[0]);if(r&&u)n="dual";else if(r)n="original";else if(u)n="translation";else return;if(t!=n){e.state=t;try{if(n=="dual"&&t=="translation"&&(So(e.rootNodes),f3(e.commonAncestorContainer)),n=="original"&&t=="translation"){let o=A0(e.rootNodes);if(So(e.rootNodes),p3(o))return;ir(o,a,e.targetNodes||[]),f3(e.commonAncestorContainer)}if(n=="translation"&&t=="dual"){let o=e.targetNodes[0];ir(o,a,e.rootNodes||[]),h3(e.commonAncestorContainer)}if(n=="original"&&t=="dual"){let o=A0(e.rootNodes);if(p3(o))return;ir(o,a,e.targetNodes||[]),h3(e.commonAncestorContainer)}if(n=="translation"&&t=="original"){let o=A0(e.targetNodes);So(e.targetNodes),ir(o,a,e.rootNodes||[])}n=="dual"&&t=="original"&&So(e.targetNodes)}catch(o){U.error(o)}}}function p3(e){return!e||!xn(e)?!1:e.classList.contains(Wt)}function f3(e){if(!xn(e))return;e.querySelectorAll("font[class*=immersive-translate-target-translation]").forEach(a=>{at(a,"immersiveTranslateClassBak",a.className),a.className="notranslate immersive-translate-target-dual"});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.add("immersive-translate-state-dual")}function h3(e){if(!xn(e))return;e.querySelectorAll("font[class*=immersive-translate-target-dual]").forEach(a=>{let r=tr(a,"immersiveTranslateClassBak");To(a,"immersiveTranslateClassBak"),a.className=r});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.remove("immersive-translate-state-dual")}function A0(e){return e?e[e.length-1].nextSibling:null}function So(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function ir(e,t,n){let a=e;t&&(a?n.forEach(r=>{a.parentNode?.insertBefore(r,a)}):n.forEach(r=>{t.appendChild(r)}))}var x9=xt(M0,300);async function ou(e,t,n=!1){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||E9(t.rootNodes)||t.stepState>=2)return;t.stepState=2,Na&&at(a,"onParseParagraph",e.id);let{ctx:r}=e,{rule:u}=r,o=nr(r),i=ko(t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:o,stayOriginalSelectors:r.rule.stayOriginalTags.concat(r.rule.stayOriginalTags).map(c=>c.toLowerCase()).concat(r.rule.stayOriginalSelectors).concat(r.rule.additionalStayOriginalSelectors)});if(!i)return;t.variables=i?.variables||{},t.text=i?.text;let s=await F0(t,{excludeLanguages:r?.config?.translationLanguagePattern?.excludeMatches||[],targetLanguage:r.targetLanguage,noTranslateRegexp:r.rule.noTranslateRegexp,delimiters:Co(r.config.translationServices[r.translationService]?.placeholderDelimiters),minTextCount:n||r.state.translationArea==="body"?2:u.paragraphMinTextCount,minWordCount:n||r.state.translationArea==="body"?1:u.paragraphMinWordCount,isDetectParagraphLanguage:r.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:r.rule.ignoreZhCNandZhTW});if(s){if(U.debug("on paragraph",s.text,s),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(s))return;a.paragraphs.push(s),e.immediateTranslateCapacity>0||n?(T9(e,t.text),P0(e,t)):(Na&&at(a,"observeParagraph",e.id),e.observeParagraphs.push(s),e.paragraphVisibleObserver?.observe(a))}return s}function E9(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?xn(t)&&t.classList.contains(Wt):!1}function T9(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function P0(e,t){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let n=e.autoIncreaseParagraphId++;t.id=n.toString(),e.paragraphEntities[n]=t,e.paragraphQueue.push(n.toString()),Na&&at(t.commonAncestorContainer,"consumeParagraph",e.id),x9.call(e,e.ctx)}async function M0(e){if(this.interruptEffectDOM)return;let t=this.paragraphQueue;this.paragraphQueue=[];let n=[];for(let a=0;a0)try{await In(a,t,(r,u,o)=>{let i=o.id,s=C9(e,i.toString());s&&w9.call(null,r,u,o,s,t,n)})}catch(r){U.error("translateCurrentQueue error",r);return}}function C9(e,t){return e.find(n=>n.id===t)}function w9(e,t,n,a,r,u){let o=!1,i=a;if(rr(i.commonAncestorContainer,n.id)?.remove(),i&&(e||!t)){e||(U.error("translate error",n,e,t),e=new Error("no response from server"));let{rule:s}=r,c=n.id,l=document.createElement(s.targetWrapperTag);at(l,Sc,c.toString()),l.classList.add("notranslate",Wt,Wt+"-error"),l.setAttribute("translate","no"),l.setAttribute("lang",r.targetLanguage);let m=a.rootNodes[a.rootNodes.length-1].nextSibling;ir(m,a.commonAncestorContainer,[l]),v9(r,e);let g=e.message.replaceAll(` +`,"");if(g=g.replaceAll('"',"""),i&&(i.error=new Error(g)),l){let f=Nn(Rt,"retryAllParagraphs",r.config.interfaceLanguage,"zh-CN"),d=Nn(Rt,"errorTooltipTitle",r.config.interfaceLanguage,"zh-CN"),b=`<${s.targetWrapperTag} class="${J}-error notranslate"><${s.targetWrapperTag} class="${J}-error-wrapper">\u{1F504}  \u2753`;l.innerHTML=Le.sanitize(b)}}else if(a){if(i.error=void 0,a.targetText=t?.text||"",!(a.text?.toLocaleLowerCase()==a.targetText?.toLocaleLowerCase())){let c=g3(a,r),l=document.createElement(r.rule.targetWrapperTag);l.classList.add("notranslate",Wt),l.setAttribute("lang",r.targetLanguage),l.setAttribute(wn,"1");let m=y9.sanitize(c);l.innerHTML=m,a.targetNodes=[l],L0(a,u)}o=!0}else U.error("paragraph not found",n.id);document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}))}async function F0(e,t){let{text:n}=e,a=await Ke({text:n||"",minLength:15,pageLangs:[ct(),"en"]}),{targetLanguage:r}=t;if(!Zm({text:n||"",delimiters:t.delimiters,minWordCount:t.minWordCount,minTextCount:t.minTextCount,noTranslateRegexp:t.noTranslateRegexp}))return null;let o=t.excludeLanguages||[],i=ro();t.isDetectParagraphLanguage&&(i="auto");let s=ct(),c=a;c==="auto"&&!t.isDetectParagraphLanguage&&(c=s),e.languageByLocal=c,e.languageByClient=i;let l=i!=="auto"?i:c;return $n(l,r,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW})||o.length>0&&o.some(f=>$n(l,f,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW}))?null:e}function v9(e,t){if(t.message.startsWith("ProQuota:")){t.message=t.message.replace("ProQuota:","");let n=t.message;try{n=JSON.parse(t.message).error}catch(u){U.error(u)}t.message=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${t.message} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`;let a=e.translationService,r=a=="deepl"?"OpenAI":"Deepl";e.translationService=="openai"?a="OpenAI":e.translationService=="deepl"&&(a="Deepl"),document.dispatchEvent(new CustomEvent(wu,{detail:{type:"ProQuotaExceeded",subscriptionType:e.user?.subscription?.subscriptionType,translationService:a,anotherService:r,message:n}}))}}p();var k9=[];function b3(e){k9.push(e)}p();function y3(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(a){a.length>0&&(a[0].target.text.includes(Au)||_0(e).catch(u=>{U.error("translateTitle error:",u.name,u.message,u.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var Lo="";async function _0(e){let t=document.title;if(!t||t.includes(Au))return;Lo!==t&&(Lo=t);let n=await Ke({text:t,pageLangs:[ct(),"en"]});if(!wo(e,n))try{let a=await wa({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n},e);a&&a.text&&(document.title=Lo+Au+a.text)}catch(a){throw a}}function x3(e){e.rule.isTranslateTitle&&(document.title=Lo)}p();var B0="Original";function qe(){return B0}function Lt(e){B0=e,E3(B0)}p();var R0;function T3(e){let t=e.ctx.rule.aiRule;if(U.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=un(e.ctx),a=n.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);n.excludeSelectors.splice(a,1);let r,u;document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(g=>{g.translated=!0,iu(e,g,n)});let o=t.streamingDelayTime||100;R0=new MutationObserver(g=>{g.forEach(function(f){if(xn(f.target)&&!s(f)&&(l(f.target),f.addedNodes&&f.addedNodes.length&&f.addedNodes.forEach(d=>{l(d)}),!c(f)&&i())){let d=f.target===u;if(t.streamingDeepChild&&!d&&(d=f.target.parentNode===u),!d)return;f.addedNodes.forEach(b=>{let T=b.previousSibling;!T||T.translated||(T.translated=!0,setTimeout(()=>{T.childNodes[0]?.translated||(U.debug("\u7FFB\u8BD1\u4E0A\u4E00\u4E2A\u6BB5\u843D",T),iu(e,T,n))},o))})}})}),R0.observe(document.body,{attributes:!0,childList:!0,subtree:!0});function i(){return!!(t.streamingChange&&t.streamingSelector&&r||t.streamingChange&&t.messageContainerSelector&&t.messageStreamEndSelector&&u&&!u.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector))}function s(g){return t.streamingSelector&&g.target===r&&g.type==="attributes"&&!yn(g.target,[t.streamingSelector])?(m(),!0):t.streamingSelector&&g.removedNodes.length>0&&u&&u!=r?(g.removedNodes?.forEach(f=>{f===r&&m()}),!0):t.messageContainerSelector&&t.messageStreamEndSelector&&u&&u.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector)?(m(),!0):!1}function c(g){if(t.streamingSelector&&g.target.querySelector(t.messageWrapperSelector||"")&&!r){let f=g.target;return f.translated||(f.translated=!0,setTimeout(()=>{r||f.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(d=>{d.translated||(d.translated=!0,iu(e,d,n))})},o)),!0}else if(t.messageContainerSelector&&g.target.querySelector(t.messageContainerSelector||"")){let f=g.target;if(f.translated)return!0;f.translated=!0,setTimeout(()=>{f.querySelectorAll(t.messageContainerSelector).forEach(d=>{t.messageStreamEndSelector&&!d.querySelector(t.messageStreamEndSelector)||d.translated||(d.translated=!0,iu(e,d,n))})},o)}return!1}function l(g){t.streamingSelector&&yn(g,[t.streamingSelector])&&(r=g,U.debug("streamingNode",r)),yn(g,[t.messageWrapperSelector])&&(u=g,U.debug("markdownNode",u))}function m(){u&&setTimeout(()=>{u.childNodes.forEach(g=>g.translated=!1),U.debug("\u7ED3\u675F\u7FFB\u8BD1\u5168\u90E8",u),iu(e,u,n),r=void 0,u=null},o)}}function iu(e,t,n){oa({id:e.id,container:t,filterRule:n,force:!0,onParagraph:a=>{ou(e,a,!0)},onFrame:()=>{},onIgnoreElement:()=>{}})}function C3(){R0?.disconnect()}var ne=null;function Mo(){return ne||null}function lr(e){S9(e),_9(e),P9(e),F9(e),or(document,e),Lt("Translated"),M9(ne),L9(ne),b3(jn),A9(ne)}function S9(e){e.state.translationArea==="main"&&e.rule.initialSelectorGlobalAttributes&&r3(document.body,e.rule.initialSelectorGlobalAttributes,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph)}function A9(e){T3(e)}function D9(){C3()}function L9(e){e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0});let t=[];e.ctx.rule.mainFrameSelector&&(t=[...document.querySelectorAll(e.ctx.rule.mainFrameSelector||"")]),t.length<=0&&(t=[document.body]),t.forEach(n=>{sr(n,e)})}async function P9(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=Date.now(),a=new URL(e.url).hostname,r=e.localConfig.tempTranslationUrlMatches||[],u=r.findIndex(i=>i.match===a&&i.expiredAt>t),o=!1;u>-1||(r.push({match:a,expiredAt:t+e.config.tempTranslateDomainMinutes*60*1e3}),o=!0),o&&await kn({...e.localConfig,tempTranslationUrlMatches:[...r]})}}function M9(e){e.ctx.rule.isTranslateTitle&&(_0(e.ctx),e.titleDynamicObserver=y3(e.ctx))}function F9(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function _9(e){let t=$t();ne&&(t=ne.id);let n=un(e);ne=ne||{},ne.ctx=e,ne.id=t,ne.paragraphQueue=ne.paragraphQueue||[],ne.rule={excludeSelectors:n.excludeSelectors||[],selectors:n.selectors||[]},ne.currentUrl=window.location.href,ne.containerRule={pageHeight:screen.availHeight,selectors:n.selectors},ne.translationService=e.translationService,ne.paragraphEntities=ne.paragraphEntities||{},ne.autoIncreaseParagraphId=ne.autoIncreaseParagraphId||1,ne.interruptEffectDOM=!1,ne.urlChangeDelay=e.rule.urlChangeDelay,ne.immediateTranslateCapacity=e.state.immediateTranslationTextCount,ne.observeContainers=ne.observeContainers||[],ne.observeParagraphs=ne.observeParagraphs||[],ne.dynamicContainerObserver=ne.dynamicContainerObserver||N9(ne),ne.ignoreResizeObserver=ne.ignoreResizeObserver||j9(ne),ne.containerVisibleObserver=ne.containerVisibleObserver||R9(ne),ne.paragraphVisibleObserver=ne.paragraphVisibleObserver||I9(ne),ne.injectCssToDocument=Po,ne.walkContainer=oa,ne.translateState=e.state.translationMode||e.config.translationMode||"dual",ne.allInlineWindows=[window],window.onerror=B9(ne,e),window.immersiveTranslateSwitchTranslateState=O0.bind(ne)}function v3(e,t){t.getRootNode()instanceof ShadowRoot?Po(t.getRootNode(),e):Po(t.ownerDocument,e),I0(e)}function I0(e){if(ne)return;ne={},ne.ctx=e,ne.id=$t(),ne.paragraphQueue=[],ne.injectCssToDocument=Po;let t=un(e);ne.rule={excludeSelectors:t.excludeSelectors,selectors:t.selectors||[]},ne.translationService=e.mouseHoverTranslationService,ne.currentUrl=window.location.href,ne.paragraphEntities={},ne.autoIncreaseParagraphId=1,ne.interruptEffectDOM=!1,ne.urlChangeDelay=e.rule.urlChangeDelay,ne.translateState=e.config.translationMode||"dual",ne.observeContainers=[],ne.observeParagraphs=[],ne.allInlineWindows=[window],window.switchTranslateState=O0.bind(ne)}function jn(e=!0){ne&&(Lt("Original"),D9(),ne.interruptEffectDOM=!0,ne.ignoreResizeObserver?.disconnect(),ne.dynamicContainerObserver?.disconnect(),ne.containerVisibleObserver?.disconnect(),ne.paragraphVisibleObserver?.disconnect(),ne.titleDynamicObserver?.disconnect(),x3(ne.ctx),Ym(),Jm(),e&&O0.call(ne,"original"),Object.values(ne.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),ne=null)}function B9(e,t){e.interruptEffectDOM=!1;let n;return function(a){let r=a.message,u=!1;return r?.indexOf("Minified React error")>=0&&(u=!0),u&&(clearTimeout(n),jn(),n=setTimeout(()=>{lr(t)},e.urlChangeDelay||2e3)),!0}}function R9(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{a.intersectionRatio>0&&(Ao(e,a.target),n.unobserve(a.target))})})}function I9(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{if(a.intersectionRatio>0){let r=a.target;(r.paragraphs||[]).forEach(o=>{P0(e,o)}),n.unobserve(r)}})})}var w3;function O9(e){if(e.urlChangeDelay<=0)return!1;let n=(window.location.href||"").split("#")[0];return e.currentUrl.split("#")[0]!=n?(clearTimeout(w3),e.translateState=="original"?!1:(jn(e.urlChangeDelay>20),w3=setTimeout(()=>{let r=e.ctx;lr(r)},e.urlChangeDelay),!0)):!1}function N9(e){return new MutationObserver(t=>{if(!O9(e)&&!e.interruptEffectDOM)for(let n of t){let a=e.ctx.rule.mutationObserverLimitTargetSelectors;if(a.length>0&&!yn(n.target,a))return;if((n.addedNodes||[]).length<=0||n.target.nodeType!==Node.ELEMENT_NODE||!zt.isSkipMarkEle(n.target)&&!zt.isMarked(n.target,e.id))continue;let u=(n.target?.paragraphs||[]).reduce((o,i)=>{let s=i.rootNodes||[],c=i.targetNodes||[];return[...o,...s,...c]},[]);if(n.addedNodes.length>0&&n.addedNodes.length===n.target.childNodes.length&&yn(n.target,e.ctx.rule.mutationObserverContainerSelectors)){zt.clearMark(n.target),n.target.paragraphs=void 0,Ao(e,n.target);return}n.addedNodes.forEach((o,i)=>{o.nodeType===Node.ELEMENT_NODE&&(u.includes(o)||Dt(o,e.ctx.rule.mutationExcludeSelectors)||sr(o,e))})}})}function j9(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let a of t){if(a.target.nodeType!==Node.ELEMENT_NODE)return;let r=a.target,u=globalThis.getComputedStyle(r);y0(u)||(n.unobserve(a.target),sr(r,e))}})}function O0(e){this.translateState=e,Object.values(this.paragraphEntities).forEach(t=>{L0(t,e)}),e=="original"&&document.querySelectorAll(`.${Wt}`).forEach(t=>t.remove())}function Po(e,t){if(e instanceof HTMLIFrameElement){or(e.contentDocument,t);return}or(e,t)}async function k3(e){let t=nt(),n="auto";if(fe()){let a="";e.rule.isEbook||e.rule.isEbookBuilder?(a=g0(e.mainFrame),n=await Ke({text:a,pageLangs:["en"]})):(a=er(e.mainFrame).slice(0,1e3),n=await Ke({text:a,pageLangs:[pa(),"en"]}))}else if(t)n=await Ke({text:er(e.mainFrame).slice(0,1e3),pageLangs:[pa(),"en"]});else if(e.rule.isEbook||e.rule.isEbookBuilder){let a="";a=g0(e.mainFrame),n=await Ke({text:a,pageLangs:["en"]})}else n=await A3();return n==="auto"&&(n=await c3()),ks(n),n}async function S3(){if(!ne)return;document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=ne.paragraphEntities,t=Object.keys(e);for(let n of t){let a=e[n];if(a.error){ne.paragraphQueue.push(n);let u=a.commonAncestorContainer.querySelector(`[${ku}='${n}']`);u&&u.remove()}}M0.call(ne,ne.ctx)}p();p();var D3={"zh-CN":{"languages.en":"\u82F1\u8BED","languages.ja":"\u65E5\u8BED","languages.ko":"\u97E9\u8BED","languages.es":"\u897F\u73ED\u7259\u8BED","languages.fr":"\u6CD5\u8BED","languages.de":"\u5FB7\u8BED","languages.it":"\u610F\u5927\u5229\u8BED","languages.pt":"\u8461\u8404\u7259\u8BED","languages.ru":"\u4FC4\u8BED","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"},"zh-TW":{"languages.en":"\u82F1\u8A9E","languages.ja":"\u65E5\u8A9E","languages.ko":"\u97D3\u8A9E","languages.es":"\u897F\u73ED\u7259\u8A9E","languages.fr":"\u6CD5\u8A9E","languages.de":"\u5FB7\u8A9E","languages.it":"\u610F\u5927\u5229\u8A9E","languages.pt":"\u8461\u8404\u7259\u8A9E","languages.ru":"\u4FC4\u8A9E","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"}},L3={...Rt,"zh-CN":{...D3["zh-CN"],...Rt["zh-CN"]},"zh-TW":{...D3["zh-TW"],...Rt["zh-TW"]}},P3=L3;function cr(e,t,n){return Nn(L3,e,t,Du,n)}var Fo=(e,t,n,a)=>{let r=Rc[e]||e,u=Ic[e],o=Oc[e],i={"zh-CN":u,"zh-TW":o,en:r};if(n)return i[e]?i[e]:r;if(i[t]){let s=i[t];return a||e==="auto"||e==="placeholder"?s:`${s} (${r})`}else return r};p();p();function dr(e){mr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(a=>{U.error("send content message request failed",e,a)}),document.querySelectorAll("iframe").forEach(a=>{a.contentWindow&&a.contentWindow.postMessage({author:Cu,payload:e},"*")});let n=new CustomEvent(Wn,{detail:e});globalThis.document.dispatchEvent(n)}function N0(e){let t=e.shortcuts||{},a=Object.keys(t).reduce((u,o)=>(u[t[o]]=o,u),{}),r=Object.keys(a);for(let u of r){let o=u.replace(/MacCtrl/ig,"Ctrl");o&&Ye(o,i=>{i.preventDefault(),dr({method:a[u],data:{trigger:"shortcut"}})})}}p();p();p();p();p();var No,ve,R3,z9,su,M3,I3,Ro={},O3=[],U9=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ia(e,t){for(var n in t)e[n]=t[n];return e}function N3(e){var t=e.parentNode;t&&t.removeChild(e)}function z0(e,t,n){var a,r,u,o={};for(u in t)u=="key"?a=t[u]:u=="ref"?r=t[u]:o[u]=t[u];if(arguments.length>2&&(o.children=arguments.length>3?No.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(u in e.defaultProps)o[u]===void 0&&(o[u]=e.defaultProps[u]);return _o(e,o,a,r,null)}function _o(e,t,n,a,r){var u={type:e,props:t,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++R3};return r==null&&ve.vnode!=null&&ve.vnode(u),u}function Gt(e){return e.children}function Bo(e,t){this.props=e,this.context=t}function gr(e,t){if(t==null)return e.__?gr(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?_o(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=n,f.__b=n.__b+1,(g=h[l])===null||g&&f.key==g.key&&f.type===g.type)h[l]=void 0;else for(m=0;m=n.__.length&&n.__.push({__V:zo}),n.__[e]}function De(e){return cu=1,$9(tg,e)}function $9(e,t,n){var a=Ho(du++,2);if(a.t=e,!a.__c&&(a.__=[n?n(t):tg(void 0,t),function(u){var o=a.__N?a.__N[0]:a.__[0],i=a.t(o,u);o!==i&&(a.__N=[i,a.__[1]],a.__c.setState({}))}],a.__c=et,!et.u)){et.u=!0;var r=et.shouldComponentUpdate;et.shouldComponentUpdate=function(u,o,i){if(!a.__c.__H)return!0;var s=a.__c.__H.__.filter(function(l){return l.__c});if(s.every(function(l){return!l.__N}))return!r||r.call(this,u,o,i);var c=!1;return s.forEach(function(l){if(l.__N){var m=l.__[0];l.__=l.__N,l.__N=void 0,m!==l.__[0]&&(c=!0)}}),!!c&&(!r||r.call(this,u,o,i))}}return a.__N||a.__}function Ge(e,t){var n=Ho(du++,3);!ve.__s&&eg(n.__H,t)&&(n.__=e,n.i=t,et.__H.__h.push(n))}function qo(e){return cu=5,W0(function(){return{current:e}},[])}function W0(e,t){var n=Ho(du++,7);return eg(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function sa(e,t){return cu=8,W0(function(){return e},t)}function Wo(e){var t=et.context[e.__c],n=Ho(du++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(et)),t.props.value):e.__}function K9(){for(var e;e=X3.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Uo),e.__H.__h.forEach(q0),e.__H.__h=[]}catch(t){e.__H.__h=[],ve.__e(t,e.__v)}}ve.__b=function(e){typeof e.type!="function"||e.o||e.type===Gt?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),et=null,G3&&G3(e)},ve.__r=function(e){V3&&V3(e),du=0;var t=(et=e.__c).__H;t&&(H0===et?(t.__h=[],et.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=zo,n.__N=n.i=void 0})):(t.__h.forEach(Uo),t.__h.forEach(q0),t.__h=[])),H0=et},ve.diffed=function(e){Y3&&Y3(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(X3.push(t)!==1&&K3===ve.requestAnimationFrame||((K3=ve.requestAnimationFrame)||G9)(K9)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==zo&&(n.__=n.__V),n.i=void 0,n.__V=zo})),H0=et=null},ve.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Uo),n.__h=n.__h.filter(function(a){return!a.__||q0(a)})}catch(a){t.some(function(r){r.__h&&(r.__h=[])}),t=[],ve.__e(a,n.__v)}}),J3&&J3(e,t)},ve.unmount=function(e){Q3&&Q3(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(a){try{Uo(a)}catch(r){t=r}}),n.__H=void 0,t&&ve.__e(t,n.__v))};var Z3=typeof requestAnimationFrame=="function";function G9(e){var t,n=function(){clearTimeout(a),Z3&&cancelAnimationFrame(t),setTimeout(e)},a=setTimeout(n,100);Z3&&(t=requestAnimationFrame(n))}function Uo(e){var t=et,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),et=t}function q0(e){var t=et;e.__c=e.__(),et=t}function eg(e,t){return!e||e.length!==t.length||t.some(function(n,a){return n!==e[a]})}function tg(e,t){return typeof t=="function"?t(e):t}p();p();var pr={},V9={root:"",lang:"en",fallbackLang:"en"};function $0(e,t){let n=Object.assign({},V9,e);pr=t||pr;let[a,r]=De(n.lang),[u,o]=De(pr),[i,s]=De(!1),c=m=>{if(u.hasOwnProperty(m))return;s(!1);let g=d3(n.root||"",m);n.getUrl&&(g=n.getUrl(n.root||"",m),fetch(g).then(f=>f.json()).then(f=>{pr[m]=f,o({...pr}),s(!0)}).catch(f=>{o({...pr}),s(!0)}))};return Ge(()=>{c(n.fallbackLang||"en"),c(a)},[a]),{lang:a,setLang:r,t:(m,g)=>{if(!u.hasOwnProperty(a))return m;let f=uu(u,a,m);return f===m&&a!==n.fallbackLang&&(f=uu(u,n.fallbackLang,m)),C0(f,g)},isReady:i}}p();p();var Y9=0;function V(e,t,n,a,r){var u,o,i={};for(o in t)o=="ref"?u=t[o]:i[o]=t[o];var s={type:e,props:i,key:n,ref:u,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Y9,__source:r,__self:a};if(typeof e=="function"&&(u=e.defaultProps))for(o in u)i[o]===void 0&&(i[o]=u[o]);return ve.vnode&&ve.vnode(s),s}var G0=jo(null),K0={root:"assets",lang:"en",fallbackLang:"en"},ng=e=>{let{t,setLang:n,lang:a,isReady:r}=$0({root:e.root||K0.root,lang:e.lang||K0.lang,fallbackLang:e.fallbackLang||K0.fallbackLang,getUrl:e.getUrl},e.translations);return V(G0.Provider,{value:{t,setLang:n,lang:a,isReady:r},children:e.children})};p();p();function ag(e,t,n){let a=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),a=t!=="auto"?n[t].matches:[];let r={},u=Object.keys(n);for(let c of u){let m=n[c].matches;for(let g of m)r[g]||(r[g]=[]),r[g].push(c)}let o=r[e];if(o&&o.length>0)for(let c of o)n[c].matches.indexOf(e)>-1&&(n[c]={...n[c],matches:n[c].matches.filter(m=>m!==e)});let i=new Set(a);if(t==="auto")return{...n};i.add(e);let s=Array.from(i);return{...n,[t]:{...n[t],matches:s}}}p();p();function V0(){return V("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[V("path",{d:"M10.3873 2.29166C10.6319 2.29193 10.8664 2.38929 11.0392 2.56234C11.2121 2.73539 11.3092 2.96998 11.3092 3.21457V4.07811L12.1175 4.38332C12.7273 4.61277 13.2952 4.94074 13.7988 5.35416L14.4675 5.90207L15.2165 5.46978L15.2394 5.45624C15.3787 5.37479 15.5373 5.332 15.6988 5.33228C15.861 5.3325 16.0203 5.37522 16.1608 5.45618C16.3014 5.53715 16.4182 5.65353 16.4998 5.79374L16.8925 6.47395C17.0145 6.68593 17.0475 6.93764 16.9843 7.17391C16.921 7.41019 16.7666 7.61173 16.555 7.73436L16.5321 7.74791L15.7842 8.17916L15.9227 9.0302C16.031 9.67953 16.031 10.3423 15.9227 10.9917L15.781 11.8458L16.531 12.2781L16.5467 12.2875C16.758 12.4101 16.9122 12.6115 16.9754 12.8475C17.0387 13.0835 17.0059 13.335 16.8842 13.5469L16.5154 14.1844C16.3932 14.3961 16.1919 14.5507 15.9558 14.6141C15.7196 14.6776 15.468 14.6448 15.256 14.5229L15.2415 14.5135L14.4904 14.0802L13.8206 14.6323C13.3125 15.0519 12.7384 15.3845 12.1217 15.6167L11.3133 15.9219V16.7864C11.3132 16.9078 11.2891 17.028 11.2425 17.14C11.1958 17.2521 11.1276 17.3539 11.0415 17.4395C10.9555 17.5251 10.8535 17.5929 10.7412 17.6391C10.6289 17.6852 10.5087 17.7087 10.3873 17.7083H9.61229C9.3677 17.708 9.13322 17.6107 8.96037 17.4376C8.78751 17.2646 8.69042 17.03 8.69042 16.7854V15.9219L7.88209 15.6167C7.27233 15.3872 6.70437 15.0592 6.20084 14.6458L5.53209 14.0979L4.78313 14.5302L4.76021 14.5437C4.62084 14.6252 4.46226 14.668 4.30084 14.6677C4.13864 14.6675 3.97932 14.6248 3.83877 14.5438C3.69823 14.4628 3.58135 14.3464 3.49979 14.2062L3.10709 13.526C2.98505 13.3141 2.95205 13.0623 3.01532 12.8261C3.07858 12.5898 3.23296 12.3882 3.44459 12.2656L3.4675 12.2521L4.21542 11.8208L4.07688 10.9698C3.96856 10.3204 3.96856 9.65766 4.07688 9.00832L4.21854 8.1552L3.46959 7.72186L3.45709 7.70832C3.24914 7.58489 3.09787 7.38486 3.03575 7.15116C2.97362 6.91746 3.00559 6.66872 3.12479 6.45832L3.49354 5.82082C3.57469 5.68049 3.69133 5.56397 3.83175 5.48297C3.97217 5.40197 4.13144 5.35934 4.29354 5.35936C4.45497 5.35908 4.61355 5.40187 4.75292 5.48332L4.7675 5.49166L5.51854 5.92499L6.18834 5.37291C6.69646 4.95329 7.27054 4.62067 7.88729 4.38853L8.69563 4.08332V3.21874C8.69452 2.97433 8.79041 2.73945 8.96226 2.56565C9.13411 2.39185 9.36788 2.29331 9.61229 2.29166H10.3873ZM10.3873 1.04166H9.61229C9.03636 1.04193 8.4841 1.27084 8.07685 1.67809C7.66961 2.08533 7.4407 2.6376 7.44042 3.21353C6.69518 3.49423 6.00146 3.89618 5.38729 4.40312L5.37271 4.39478C4.87362 4.10685 4.2806 4.02894 3.72407 4.17818C3.16753 4.32742 2.69307 4.6916 2.405 5.19062L2.03729 5.83332C1.74928 6.33229 1.67121 6.92522 1.82025 7.48173C1.96929 8.03825 2.33324 8.51279 2.83209 8.80103L2.84771 8.80936C2.78023 9.20444 2.74539 9.6044 2.74354 10.0052C2.74367 10.3971 2.77572 10.7883 2.83938 11.175L2.81646 11.1885C2.56927 11.3311 2.35259 11.5209 2.1788 11.7472C2.00501 11.9735 1.87752 12.2319 1.80361 12.5075C1.7297 12.7831 1.71083 13.0706 1.74807 13.3535C1.7853 13.6364 1.87792 13.9091 2.02063 14.1562L2.41334 14.8364C2.55638 15.0837 2.74681 15.3003 2.97371 15.4738C3.20061 15.6473 3.45953 15.7743 3.73561 15.8475C4.01169 15.9208 4.29952 15.9388 4.58259 15.9007C4.86566 15.8625 5.13841 15.7688 5.38521 15.625L5.40813 15.6114C6.01714 16.1105 6.70362 16.5067 7.44042 16.7844C7.44028 17.0697 7.49635 17.3523 7.60542 17.616C7.7145 17.8797 7.87444 18.1193 8.07612 18.3212C8.27779 18.523 8.51726 18.6832 8.78084 18.7925C9.04441 18.9018 9.32694 18.9582 9.61229 18.9583H10.3873C10.9632 18.958 11.5155 18.7291 11.9227 18.3219C12.33 17.9146 12.5589 17.3624 12.5592 16.7864C13.3043 16.5061 13.9981 16.1045 14.6123 15.5979L14.6269 15.6062C15.126 15.8942 15.719 15.9721 16.2755 15.8228C16.8321 15.6736 17.3065 15.3094 17.5946 14.8104L17.9623 14.1729C18.2503 13.6739 18.3284 13.081 18.1793 12.5245C18.0303 11.968 17.6663 11.4934 17.1675 11.2052L17.1519 11.1969C17.2194 10.8018 17.2542 10.4018 17.256 10.001C17.2559 9.60915 17.2239 9.21792 17.1602 8.83124L17.1831 8.8177C17.4303 8.67516 17.647 8.48531 17.8208 8.259C17.9946 8.03269 18.1221 7.77435 18.196 7.49875C18.2699 7.22314 18.2888 6.93568 18.2515 6.65278C18.2143 6.36987 18.1217 6.09708 17.979 5.84999L17.5863 5.16978C17.4437 4.92202 17.2537 4.70485 17.027 4.53072C16.8003 4.3566 16.5415 4.22895 16.2654 4.1551C15.9893 4.08126 15.7013 4.06267 15.418 4.1004C15.1346 4.13814 14.8616 4.23145 14.6144 4.37499L14.5915 4.38853C13.9824 3.88946 13.296 3.49327 12.5592 3.21561C12.5593 2.93026 12.5032 2.64768 12.3942 2.384C12.2851 2.12031 12.1252 1.8807 11.9235 1.67883C11.7218 1.47695 11.4823 1.31678 11.2188 1.20746C10.9552 1.09813 10.6726 1.04179 10.3873 1.04166Z",fill:"#666666"}),V("path",{d:"M10.0003 7.91666C10.4124 7.91666 10.8152 8.03884 11.1578 8.26776C11.5004 8.49668 11.7674 8.82205 11.9251 9.20273C12.0828 9.58341 12.124 10.0023 12.0436 10.4064C11.9632 10.8106 11.7648 11.1818 11.4735 11.4731C11.1821 11.7645 10.8109 11.9629 10.4068 12.0433C10.0026 12.1237 9.58375 12.0824 9.20307 11.9247C8.82239 11.7671 8.49702 11.5 8.2681 11.1574C8.03918 10.8148 7.91699 10.412 7.91699 9.99999C7.91699 9.44745 8.13649 8.91755 8.52719 8.52685C8.91789 8.13615 9.44779 7.91666 10.0003 7.91666ZM10.0003 6.66666C9.34106 6.66666 8.69659 6.86215 8.14843 7.22842C7.60026 7.5947 7.17302 8.11529 6.92073 8.72438C6.66844 9.33346 6.60243 10.0037 6.73104 10.6503C6.85966 11.2969 7.17713 11.8908 7.6433 12.357C8.10948 12.8232 8.70342 13.1407 9.35003 13.2693C9.99663 13.3979 10.6669 13.3319 11.2759 13.0796C11.885 12.8273 12.4056 12.4001 12.7719 11.8519C13.1382 11.3037 13.3337 10.6593 13.3337 9.99999C13.3337 9.11593 12.9825 8.26809 12.3573 7.64297C11.7322 7.01785 10.8844 6.66666 10.0003 6.66666Z",fill:"#666666"})]})}p();function rg(e,t=2e3){return n=>{let a,r=0;return u=>{++r==e&&(n(u),r=0),clearTimeout(a),a=setTimeout(()=>r=0,t)}}}p();function ug(e){let t;try{t=new URL(e)}catch{return!1}let n=og(),a="";try{a=new URL(n).hostname}catch{}return a&&t.hostname===a?!0:!(J9(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function J9(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}p();function ig(e){let t=e.split(".");return t.length>2?(t[0]="*",t.join(".")):null}p();function sg(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}p();p();function Ut(){return Wo(G0)}function zn(e){let{items:t,maxWidth:n,className:a}=e,{lang:r}=Ut();return n=n||(r==="en"?144:160),V("select",{autoComplete:"off",class:a||"min-select",style:{maxWidth:`${n}px`},value:t.find(u=>u.selected)?.value,onChange:u=>{let o=u.target.value,i=t.find(s=>s.value===o);i&&i.onSelected(i)},children:t.map((u,o)=>V("option",{value:u.value,selected:u.selected,children:u.label},"selectlink"+o))})}p();var $o="DROP_DOWN_DEFAULT_VALUE";function Y0(e){let{showArrow:t,onSelected:n,className:a,menus:r,maxWidth:u}=e;a=a||"",t=t??!0,u=u||80;let o=qo(null);return V("select",{ref:o,autoComplete:"off",class:`text-label min-select ${t?"":"min-select-no-arrow"} ${a||""}`,value:$o,style:{maxWidth:`${u}px`},onChange:i=>{i.preventDefault();let s=i.target.value;if(o.current&&s!==$o){o.current.value=$o,o.current?.dispatchEvent(new Event("change"));let c=r.find(l=>l.value===s);c&&n(c)}},children:[{value:$o,label:e.label}].concat(r).map((i,s)=>V("option",{value:i.value,children:i.label},"option-"+s))})}p();function J0(e){let{field:t,onChange:n,value:a}=e;a=a||t.default||"";let{t:r}=Ut(),u=t.name;return t.label&&(u=t.label),t.labelKey&&(u=r(t.labelKey)),t.type==="select"?V("div",{class:"flex justify-between items-center mb-2",children:[V("label",{class:"inline-block",children:[u,"\uFF1A"]}),V(zn,{items:t.options.map(o=>({label:`${o.label?r(o.label):o.value}`,value:o.value,selected:a===o.value,onSelected:()=>{n(o.value)}}))})]}):null}p();p();function mu(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var Q9=({date:e})=>{let{t}=Ut(),[n,a]=De(!1);return Ge(()=>{setTimeout(()=>{a(!0)},5e3)},[]),n?null:V("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},Z9=({minVersion:e})=>{let{t}=Ut();return V("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},X9=()=>{let{t:e}=Ut();return V("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:"https://immersivetranslate.com/docs/installation/"})}})},eb=({message:e,handleSyncing:t,date:n})=>{let{t:a}=Ut();return V("p",{class:"text-sm",children:[a("failToSyncRules")," ",V("a",{onClick:t,children:a("retry")}),V("br",{}),a("failedReason"),"\uFF1A",e,V("br",{}),a("currentRuleVersion"),"\uFF1A",n]})};function Q0(e){let{isShowError:t,request:n}=e,[a,r]=De(null),{t:u}=Ut(),[o,i]=De(null),[s,c]=De(null),[l,m]=De(""),[g,f]=De(!1),[d,b]=De(!1),[T,h]=De(!1),[C,v]=De(null),[O,B]=De(null),x=an(),L=async()=>{m("");let M=o;if(o===null)try{let w=await n({url:kr});w?(i(w),M=w,f(!0)):(m(u("unknownError")),c(null))}catch(w){c(null),m(w.message);return}M!==null?(e.setStorageBuildinConfig(M),c(!1),r(M.buildinConfigUpdatedAt)):(m(u("canNotFetchRemoteRule")),c(null))};return Ge(()=>{Ka().then(M=>{let w=M.buildinConfigUpdatedAt;v(M);let E=new Date(w);if(r(w),x==="0.0.0"){h(!0);return}n({url:kr}).then(I=>{let F=I,A=F.minVersion,_=x;i(F);let j=F.latestVersion;if(j&&(mu(_,j)?B(!0):B(!1)),mu(_,A)){let N=F.buildinConfigUpdatedAt;new Date(N)>E?(c(!0),L()):c(!1)}else b(!0),c(null)}).catch(I=>{c(null),m(I.message)})})},[]),Ge(()=>{Ka().then(M=>{v(M)})},[a]),C?V("div",{class:"text-sm mt-2",style:{maxWidth:218},children:T?V(X9,{}):l?t===!1?null:V(eb,{handleSyncing:L,message:l,date:a||""}):d?t===!1?null:V(Z9,{minVersion:o.minVersion}):s===null||s===!0?null:g?V(Q9,{date:a}):null}):null}p();var Ko='',Z0="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMTEuNjIzLS4zMTguODQ1Yy0uMjA4LjIyMi0uNTI3LjMzMy0uOTI4LjMzM2gtMS4zM1Y5LjI0MmgxLjMzWm05Ljg0NiAxLjc4OGMuMzg4IDAgLjY2NS4xNTIuODQ1LjQ1Ny4xNTIuMjY0LjIzNS41ODIuMjYzLjk4NHYuMzE5YzAgLjQ5OS0uMDgzLjg4Ny0uMjYzIDEuMTkyLS4xOC4zMDQtLjQ1Ny40NTctLjgzLjQ1Ny0uMzg5IDAtLjY2Ni0uMTUzLS44NDYtLjQ0NC0uMTUyLS4yNjMtLjIzNS0uNTk1LS4yNjMtMS4wMTF2LS4yOTFjMC0uNDg1LjA4My0uODczLjI2My0xLjE3OC4xOC0uMzA1LjQ0My0uNDg1LjgzMS0uNDg1Wm0tMy40MDctMS4xMzZhMS4xNyAxLjE3IDAgMCAwLS43MDYuMjM1IDEuNDgyIDEuNDgyIDAgMCAwLS40MTUuNWwtLjA4My4xNjUtLjA3LS44MDNoLTEuMzU3djUuNDMyaDEuNDU0di0zLjY1OWEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiA4LjEySDQuMTE0djcuMzE3aDEuNDY4VjEyLjc5aDEuMzNjLjg0NCAwIDEuNDk1LS4yMDggMS45OC0uNjM4LjQ4NS0uNDMuNzItLjk4My43Mi0xLjY5cy0uMjM1LTEuMjYxLS43Mi0xLjY5Yy0uNDQzLS4zODktMS4wMzktLjYxLTEuNzczLS42MzhsLS4yMjEtLjAxNFptOS44NDcgMS43NzRjLS44MDMgMC0xLjQyNi4yNjMtMS44ODMuNzc2LS40MTYuNDctLjYzNyAxLjA2Ny0uNjc5IDEuNzczdi4zMzNjMCAuODE4LjIyMiAxLjQ4My42NzkgMS45OTUuNDU3LjUxMyAxLjA4Ljc3NiAxLjg4My43NzYuODA0IDAgMS40MjctLjI2MyAxLjg4NC0uNzc2LjQxNS0uNDcuNjM3LTEuMDUzLjY3OC0xLjc3M3YtLjMzM2MwLS44MTctLjIyMS0xLjQ4Mi0uNjc4LTEuOTk1LS40NTctLjUxMy0xLjA4LS43NzYtMS44ODQtLjc3NlpNMTguMDAzIDZhNiA2IDAgMCAxIDAgMTJIMFY5LjQyM0EzLjQyIDMuNDIgMCAwIDEgMy40MiA2aDE0LjU4M1oiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSI3LjUiIHgyPSIyMiIgeTE9IjE5IiB5Mj0iNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMyMjIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM2OTY5NjkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=",X0="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzk5OSIgZD0iTTYuODk3IDMuMjQyYy40MTUgMCAuNzIuMTExLjkyOC4zNDcuMjA3LjIzNS4zMTguNTI2LjMxOC44NzMgMCAuMzQ2LS4xMS42MjMtLjMxOC44NDUtLjIwOC4yMjItLjUyNy4zMzMtLjkyOC4zMzNoLTEuMzNWMy4yNDJoMS4zM1ptOS44NDYgMS43ODhjLjM4OCAwIC42NjUuMTUyLjg0NS40NTcuMTUyLjI2NC4yMzUuNTgyLjI2My45ODR2LjMxOWMwIC40OTktLjA4My44ODctLjI2MyAxLjE5Mi0uMTguMzA0LS40NTcuNDU3LS44My40NTctLjM4OSAwLS42NjYtLjE1My0uODQ2LS40NDQtLjE1Mi0uMjYzLS4yMzUtLjU5NS0uMjYzLTEuMDExdi0uMjkxYzAtLjQ4NS4wODMtLjg3My4yNjMtMS4xNzguMTgtLjMwNS40NDMtLjQ4NS44MzEtLjQ4NVptLTMuNDA3LTEuMTM2YTEuMTcgMS4xNyAwIDAgMC0uNzA2LjIzNSAxLjQ4MiAxLjQ4MiAwIDAgMC0uNDE1LjVsLS4wODMuMTY1LS4wNy0uODAzaC0xLjM1N3Y1LjQzMmgxLjQ1NFY1Ljc2NGEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiAyLjEySDQuMTE0djcuMzE3aDEuNDY4VjYuNzloMS4zM2MuODQ0IDAgMS40OTUtLjIwOCAxLjk4LS42MzguNDg1LS40My43Mi0uOTgzLjcyLTEuNjlzLS4yMzUtMS4yNjEtLjcyLTEuNjljLS40NDMtLjM4OS0xLjAzOS0uNjEtMS43NzMtLjYzOGwtLjIyMS0uMDE0Wm05Ljg0NyAxLjc3NGMtLjgwMyAwLTEuNDI2LjI2My0xLjg4My43NzYtLjQxNi40Ny0uNjM3IDEuMDY3LS42NzkgMS43NzN2LjMzM2MwIC44MTguMjIyIDEuNDgzLjY3OSAxLjk5NS40NTcuNTEzIDEuMDguNzc2IDEuODgzLjc3Ni44MDQgMCAxLjQyNy0uMjYzIDEuODg0LS43NzYuNDE1LS40Ny42MzctMS4wNTMuNjc4LTEuNzczdi0uMzMzYzAtLjgxNy0uMjIxLTEuNDgzLS42NzgtMS45OTUtLjQ1Ny0uNTEzLTEuMDgtLjc3Ni0xLjg4NC0uNzc2Wk0xOC4wMDMgMGE2IDYgMCAwIDEgMCAxMkgwVjMuNDIzQTMuNDIgMy40MiAwIDAgMSAzLjQyIDBoMTQuNTgzWiIvPjwvc3ZnPg==";function el(e){let t=an(),{onTranslateTheMainPage:n,onUserConfigChange:a,request:r,onTranslateLocalHtmlFile:u,onSwitchTranslationMode:o,onTranslateLocalSubtitleFile:i,onSetBuildinConfig:s,pageStatus:c,openEbookBuilderPage:l,openPricingPage:m,openEbookViewerPage:g,config:f,openAboutPage:d,onTranslateTheWholePage:b,onToggleEnabled:T,openOptionsPage:h,ontranslateToThePageEndImmediately:C,onSetPageLanguage:v,onToggleTranslate:O,onTranslateLocalPdfFile:B,onTranslatePdf:x,onRestorePage:L,ctx:M,currentUrl:w,currentLang:E,onClose:I,onTranslatePage:F,onSetLocalConfig:A,onMouseTriggerChanged:_,errorMsg:j,disabledButton:N,noPermissionPDF:D}=e,y=a,[S,R]=De(""),[$,z]=De(j),[Y,q]=De(null),[ae,Q]=De(null),{t:G,lang:pe}=Ut(),he=70;pe.startsWith("zh")||(he=75);let re=null,K=null,oe=null,me=null,ce=null,ye=null,Se=null,xe=null,Z=null,ke=null,Pe=null,Re=null;Ge(()=>{jt.get(Ot,null).then(H=>{H?(q(H),Q(Zt(H))):Q(!1)}).catch(H=>{Q(!1)})},[]);let Ne=!0,st=Xt();if(f){st&&f&&(Ne=f.generalRule.showSponsorOnSafari);let{translationService:H,translationServices:de,translationUrlPattern:$e}=f;Fn[H]&&(xe=Hi("translationService",H,M)),de&&de[H]?Re=de[H]||{}:Re={};try{Z=new URL(w||"")}catch{}if(w&&ug(w)){ke=ig(Z.hostname),Pe=sg(w);let{matches:Me,excludeMatches:_e}=$e;K=Me.includes(ke),re=Me.includes(Z.hostname),me=_e.includes(ke),oe=_e.includes(Z.hostname),ye=Me.includes(Pe),Se=_e.includes(Pe)}}if(f&&E&&E!=="auto"){let{translationLanguagePattern:H}=f,{matches:de}=H;de.includes(E)?ce=!0:ce=!1}let Ft=H=>{H.preventDefault(),h()},da=H=>{y(de=>(de.alpha?R("Success disable alpha!"):R("Success enable alpha!"),{...de,alpha:!de.alpha}))},Ht=H=>{y(de=>({...de,translationMode:H})),o(H)},An=()=>{y(H=>({...H,translationArea:"body"})),b()},Un=()=>{y(H=>({...H,translationArea:"main"})),n()},Ie=(H,de,$e,Me)=>{if(H==="default"){y(Cn=>{let Qt={...Cn.translationUrlPattern};return{...Cn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...Cn.translationUrlPattern,matches:Yn([Z?.hostname,ke,w],Qt.matches),excludeMatches:Yn([Z?.hostname,ke,w],Qt.excludeMatches)}}});return}let _e=H,Dn=_e==="matches"?"excludeMatches":"matches";Z&&y(Cn=>{let Qt={...Cn.translationUrlPattern};return Qt[_e]=xs(de,Qt[_e]),Me.length>0&&(Qt[_e]=Yn(Me,Qt[_e])),Qt[Dn]=Yn($e,Qt[Dn]),{...Cn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...Cn.translationUrlPattern,...Qt}}}),_e==="matches"&&c==="Original"?setTimeout(()=>{F(),I()},100):_e==="excludeMatches"&&c==="Translated"&&setTimeout(()=>{L(),I()},100)},qt=H=>{if(!H){y(Me=>{let _e={...Me.translationLanguagePattern};return{...Me,translationLanguagePattern:{...Me.translationLanguagePattern,matches:Yn(E,_e.matches),excludeMatches:Yn(E,_e.excludeMatches)}}});return}let de=H,$e=de==="matches"?"excludeMatches":"matches";E&&y(Me=>{let _e={...Me.translationLanguagePattern};return _e[de]=xs(E,_e[de]),_e[$e]=Yn(E,_e[$e]),{...Me,translationLanguagePattern:{...Me.translationLanguagePattern,..._e}}}),de==="matches"&&c==="Original"&&setTimeout(()=>{F(),I()},100)},rt=Z?.pathname.toLowerCase().endsWith(".pdf"),He=G("translate");c==="Translated"||c==="Error"?He=G("show-original"):c==="Original"?rt?Hu()&&Z.protocol==="file:"||D?He=G("translate-firefox-local-pdf"):fe()?He=G("noSupportTranslate-pdf"):He=G("translate-pdf"):He=G("translate"):He=G(c);let Jt=G("translateToThePageEndImmediately");(c==="Original"||c==="Translated")&&(f.shortcuts.toggleTranslatePage&&(O4()&&M.rule.fingerCountToToggleTranslagePageWhenTouching>=2?He+=` (${G(`fingers.${M.rule.fingerCountToToggleTranslagePageWhenTouching}`)})`:He+=` (${f.shortcuts.toggleTranslatePage})`),f.shortcuts.toggleTranslateToThePageEndImmediately&&(Jt+=` (${f.shortcuts.toggleTranslateToThePageEndImmediately})`));let _t=[];M&&(_t=Hc(M,"translationService"));let Hn=H=>{H.preventDefault(),I()},gt=_m(M.config.translationService,M.config.targetLanguage),dn=ye||re||K,ze=()=>ye?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!ye,onChange:H=>{let de=H.target.checked;Ie(de?"matches":"default",Pe,[Pe],[])}}),G("alwaysTranslateSomePage")]}):re?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!re,onChange:H=>{let de=H.target.checked;Ie(de?"matches":"default",Z.hostname,[Z.hostname,ke,Pe],[ke])}}),G("alwaysTranslateSomeSiteOrWildSite")]}):K?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!K,onChange:H=>{let de=H.target.checked;Ie(de?"matches":"default",ke,[Pe,Z.hostname,ke],[Z.hostname])}}),G("alwaysTranslateSomeSiteOrWildSite")]}):null;return V("div",{children:[V("div",{class:"popup-container px-6 pt-6 max-content",children:[V("div",{class:"text-sm",children:[V("div",{class:"flex justify-between mb-3 items-center",children:[V("label",{class:"inline-block text-label",children:[G("popupSourceLanguage"),"\uFF1A"]}),V(zn,{maxWidth:186,items:en.map(H=>({label:Fo(H,f.interfaceLanguage),value:H,selected:H===M.sourceLanguage,onSelected:de=>{v(de.value)}}))})]}),f&&f.targetLanguage&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[G("popupTarget"),"\uFF1A"]}),V(zn,{maxWidth:186,items:gt.filter(H=>H!=="auto").map(H=>({label:Fo(H,f.interfaceLanguage),value:H,selected:H===f.targetLanguage,onSelected:de=>{y($e=>({...$e,targetLanguage:de.value}))}}))})]}),xe&&_t.length>0&&V(Gt,{children:[V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[G("popupService"),"\uFF1A"]}),V(zn,{maxWidth:186,items:_t.map(H=>({label:`${G("translationServices."+H.id)}${H.ok?"":" "+(" "+(!ae&&!st&&H.providers&&H.providers.length>0?G("goLoginOrAction"):G("needAction")))}`,value:H.id,selected:H.selected,onSelected:de=>{let $e=_t.find(Me=>Me.id===de.value);if($e.ok){if(y(Me=>({...Me,translationService:$e.id})),c!="Translated")return;$e.props.length===0?setTimeout(()=>{F()},1):setTimeout(()=>{L()},1)}else y(Me=>({...Me,translationService:$e.id})),setTimeout(()=>{h()},100)}}))})]}),Re&&xe.props.length>0&&xe.props.map((H,de)=>V("div",{class:"pl-4 text-sm",children:V(J0,{field:H,value:Re[H.name],onChange:$e=>{y(Me=>{let _e=Me.translationServices||{},Dn=_e[xe.id]||{};return setTimeout(()=>{L()},1),{...Me,translationServices:{..._e,[xe.id]:{...Dn,[H.name]:$e}}}})}},"field-"+de)},"service"+de))]}),Z&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:G("forThisSite")}),V(zn,{maxWidth:186,items:[{label:G("default"),value:"default",selected:re===!1&&oe===!1&&!K&&!me&&!ye&&!Se,onSelected:()=>{Ie("default",Z.hostname,[],[]);let H=Z.hostname,de=M.localConfig.tempTranslationUrlMatches||[],$e=de.filter(_e=>_e.match!==H),Me=!1;$e.length!==de.length&&(Me=!0),Me&&A({...M.localConfig,tempTranslationUrlMatches:[...$e]})}},Pe&&{label:G("alwaysTranslateSomeSite",{hostname:G("currentUrl")}),value:"matchesUrl",selected:ye,onSelected:()=>{Ie("matches",Pe,[Pe],[])}},{label:G("alwaysTranslateSomeSite",{hostname:Z.hostname}),value:"matches",selected:re,onSelected:H=>{Ie(H.value,Z.hostname,[Z.hostname,ke,Pe],[ke])}},ke&&{label:G("alwaysTranslateSomeSite",{hostname:ke}),value:"matchesWild",selected:K,onSelected:()=>{Ie("matches",ke,[Pe,Z.hostname,ke],[Z.hostname])}},Pe&&{label:G("neverTranslateSomeSite",{hostname:G("currentUrl")}),value:"excludeMatchesUrl",selected:Se,onSelected:()=>{Ie("excludeMatches",Pe,[Pe],[])}},{label:G("neverTranslateSomeSite",{hostname:Z.hostname}),value:"excludeMatches",selected:oe,onSelected:H=>{Ie(H.value,Z.hostname,[Z.hostname,ke,Pe],[ke])}},ke&&{label:G("neverTranslateSomeSite",{hostname:ke}),value:"excludeMatchesWild",selected:me,onSelected:()=>{Ie("excludeMatches",ke,[Z.hostname,Pe,ke],[Z.hostname])}}].filter(Boolean)})]}),_&&Rr()&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[G("mouse-translate"),"\uFF1A"]}),V(zn,{maxWidth:186,items:Pu.filter(H=>!(Pu.includes(f.generalRule.mouseHoverHoldKey)&&H==="OtherCustom")).map(H=>{let de=G("mouseHoldKey",{key:H}),$e=Pu.includes(f.generalRule.mouseHoverHoldKey),Me=H===f.generalRule.mouseHoverHoldKey;return H==="Auto"?de=G("mouseHoldKeyAuto"):H==="Off"?de=G("mouseHoldKeyOff"):H==="OtherCustom"?de=$e?G("mouseHoldKeyOther"):G("mouseHoldKeyCustomKey",{key:f.generalRule.mouseHoverHoldKey}):H==="Other"&&(de=G("mouseHoldKeyOther")),$e||H==="OtherCustom"&&(Me=!0),{label:de,value:H,selected:Me,onSelected:_e=>{_e.value==="Other"?h("#interface"):_(_e.value)}}})})]})]}),V("div",{class:"",children:V("button",{class:"py-2 mt-1 mb-5 main-button ",onClick:()=>{rt?x&&x():O()},"aria-busy":c==="Translating",disabled:N||c==="Translating",children:He})}),V("div",{class:"text-sm",children:S}),V("div",{class:`pb-2 text-sm ${$?"":"display-none"}`,children:$}),V("div",{class:"flex items-center justify-between flex-wrap",children:[dn?V(ze,{}):E&&E!=="auto"?V("label",{for:"alwaysTranslateThisLanugage",class:"text-sm text-label text-overflow-ellipsis max-w-20",children:[V("input",{type:"checkbox",id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",checked:!!ce,onChange:H=>{let de=H.target.checked;qt(de?"matches":void 0)}}),G("alwaysTranslateSomeLanguage",{language:Fo(E,f.interfaceLanguage,!1,!0)})]}):V("span",{}),V("div",{class:`flex flex-end flex-grow ${$?"display-none":""}`,children:V("span",{class:"immersive-translate-no-select muted text-sm",onClick:rg(7)(da),children:["V",t,f.enabled?null:V("a",{href:"#",onClick:T,children:[" ","(",G("hasBeenDisabled"),")"]})]})})]})]}),V("footer",{children:[V("div",{class:"px-6 text-label",children:V(Q0,{isShowError:!1,request:r,setStorageBuildinConfig:s})}),V("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer text-label",children:[V("div",{class:"flex flex-row items-center justify-center secondary clickable",style:{width:70},onClick:Ft,children:[V(V0,{}),V("span",{class:"ml-1",children:G("options")})]}),Ne?V("a",{title:G(ae?"popup.openProForPro":"popup.openPro"),target:"_blank",href:ae?ji:zi,children:V("img",{src:ae?Z0:X0})}):ae&&V("a",{title:G(ae?"popup.openProForPro":"popup.openPro"),target:"_blank",href:ae?ji:zi,children:V("img",{src:ae?Z0:X0})}),V(Y0,{label:G("more"),showArrow:!0,maxWidth:he,onSelected:H=>{H.value==="openPremium"?(globalThis.open(Ar),I()):H.value==="changeToOnlyTranslationMode"?Ht("translation"):H.value==="changeToDualTranslationMode"?Ht("dual"):H.value==="translateTheWholePage"?b():H.value==="translateToThePageEndImmediately"?C():H.value==="translateTheMainPage"?n():H.value==="showTranslationOnly"||(H.value==="translateLocalPdfFile"?B&&B():H.value==="translateLocalHtmlFile"?u&&u():H.value==="translateLocalSubtitleFile"?i&&i():H.value==="donate"?(globalThis.open(f.donateUrl),I()):H.value==="feedback"?(globalThis.open(f.feedbackUrl),I()):H.value==="options"?(h(),I()):H.value==="changeToTranslateTheWholePage"?An():H.value==="changeToTranslateTheMainPage"?Un():H.value==="about"?d():H.value==="toggleEnabled"?T():H.value==="openEbookViewer"?g():H.value==="openEbookBuilder"?l():H.value==="goPro"&&m())},menus:[f.translationMode==="dual"&&{label:"\u{1F524} "+G("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},f.translationMode==="translation"&&{label:"\u{1F521} "+G("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},f.translationArea==="main"&&{label:"\u{1F480} "+G("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},f.translationArea==="body"&&{label:"\u{1F4D6} "+G("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},{label:"\u26A1 "+Jt,value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+G("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+G("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+G("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},!fe()&&{label:"\u{1F310} "+G("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+G("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},ae===!1&&Ne&&{label:"\u{1F451} "+G("upgradeToPro"),value:"goPro"},{label:"\u2764\uFE0F "+G(Ne?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})]})]})}p();p();p();p();var tl={get:(e,t,n)=>{let a=t===void 0?e:{[e]:t};return se.storage[n].get(a)},set:(e,t,n)=>se.storage[n].set({[e]:t})};function Go(e,t,n){let[a]=De(()=>typeof t=="function"?t():t),[r]=De(n),[u,o]=De(a),[i,s]=De(!1),[c,l]=De("");Ge(()=>{tl.get(e,a,r).then(g=>{g[e]&&o(g[e]),s(!0),l("")}).catch(g=>{s(!1),l(g)})},[e,a,r]);let m=sa(g=>{let f=typeof g=="function"?g(u):g;U.debug("new settings",f),tl.set(e,f,r).then(()=>{o(f),s(!0),l("")}).catch(d=>{o(f),s(!1),l(d)})},[r,e,u]);return[u,m,i,c]}p();function nl(e,t,n){let a=[];return function(){let[u,o,i,s]=Go(e,t,n),c=sa(l=>{for(let m of a)m(l)},[]);return Ge(()=>(a.push(o),()=>{a.splice(a.indexOf(o),1)}),[o]),[u,c,i,s]}}function lg(e,t){return nl(e,t,"sync")}var tb="userConfig",nb=null,ab=lg(tb,nb);function Vo(e){let[t,n,a,r]=ab(),u=sa(o=>{let i=typeof o=="function"?o(t):o;i&&(i.updatedAt=new Date().toISOString()),n(i),e&&e(i)},[t]);return[t,u,a,r,n]}p();p();async function cg(e){try{let t=new Date;U.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await se.storage.local.set({[Lc]:t.toISOString()}),await rb(),fe()||await dg()}catch(t){U.error("run cron task failed",t)}}async function rb(){try{let e=await En(),t=await ie({url:kr}),n=e.buildinConfigUpdatedAt,a=new Date(n),r=t.buildinConfigUpdatedAt,u=new Date(r),o=t.minVersion,i=se.runtime.getManifest().version;mu(i,o)?u>a?(await se.storage.local.set({buildinConfig:t}),U.info(`sync remote rules success, latest: ${new Date(r).toLocaleString()}`)):U.debug(`no need to sync rules, latest: ${a}`):U.info(`local version is too old, please update to ${o} or later`)}catch(e){U.error("sync rules error: ",e)}}p();p();p();p();p();p();var al;function gl(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function Eg(e,t=","){return e.map(gl).join(t)}var Tg=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function Jo(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function Qo(e,t="@media "){return t+Vt(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(a=>`(${a}-width:${n[a]})`).join(" and "))).join(",")}function Vt(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function ub(){}var bt={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function Cg(e){return e.match(/[-=:;]/g)?.length||0}function ll(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(Cg(e),15)<<18}var ob=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function pl({n:e,i:t,v:n=[]},a,r,u){e&&(e=gl({n:e,i:t,v:n})),u=[...Vt(u)];for(let i of n){let s=a.theme("screens",i);for(let c of Vt(s&&Qo(s)||a.v(i))){var o;u.push(c),r|=s?67108864|ll(c):i=="dark"?1073741824:c[0]=="@"?ll(c):(o=c,1<<~(/:([a-z-]+)/.test(o)&&~ob.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:r,r:u,i:t}}var fl=new Map;function mg(e){if(e.d){let t=[],n=rl(e.r.reduce((a,r)=>r[0]=="@"?(t.push(r),a):r?rl(a,u=>rl(r,o=>{let i=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(i){let s=u.indexOf(i[1]);return~s?u.slice(0,s)+i[0]+u.slice(s+i[1].length):ul(u,o)}return ul(o,u)})):a,"&"),a=>ul(a,e.n?"."+Tg(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((a,r)=>r+"{"+a+"}",e.d)}}function rl(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,a,r)=>t(a)+r)}function ul(e,t){return e.replace(/&/g,t)}var gg=new Intl.Collator("en",{numeric:!0});function ib(e,t){for(var n=0,a=e.length;n>1;0>=wg(e[r],t)?n=r+1:a=r}return a}function wg(e,t){let n=e.p&bt.o;return n==(t.p&bt.o)&&(n==bt.b||n==bt.o)?0:e.p-t.p||e.o-t.o||gg.compare(pg(e.n),pg(t.n))||gg.compare(fg(e.n),fg(t.n))}function pg(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function fg(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function ol(e,t){return Math.round(parseInt(e,16)*t)}function la(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:a}=t,r=a?`var(${a})`:n;if(e.includes(""))return e.replace("",r);if(e[0]=="#"&&(e.length==4||e.length==7)){let u=(e.length-1)/3,o=[17,1,.062272][u-1];return`rgba(${[ol(e.substr(1,u),o),ol(e.substr(1+u,u),o),ol(e.substr(1+2*u,u),o),r]})`}return r=="1"?e:r=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${r})`)}function vg(e,t,n,a,r=[]){return function u(o,{n:i,p:s,r:c=[],i:l},m){let g=[],f="",d=0,b=0;for(let C in o||{}){var T,h;let v=o[C];if(C[0]=="@"){if(!v)continue;if(C[1]=="a"){g.push(...Sg(i,s,bl(""+v),m,s,c,l,!0));continue}if(C[1]=="l"){for(let O of Vt(v))g.push(...u(O,{n:i,p:(T=bt[C[7]],s&~bt.o|T),r:C[7]=="d"?[]:c,i:l},m));continue}if(C[1]=="i"){g.push(...Vt(v).map(O=>({p:-1,o:0,r:[],d:C+" "+O})));continue}if(C[1]=="k"){g.push({p:bt.d,o:0,r:[C],d:u(v,{p:bt.d},m).map(mg).join("")});continue}if(C[1]=="f"){g.push(...Vt(v).map(O=>({p:bt.d,o:0,r:[C],d:u(O,{p:bt.d},m).map(mg).join("")})));continue}}if(typeof v!="object"||Array.isArray(v))C=="label"&&v?i=v+Jo(JSON.stringify([s,l,o])):(v||v===0)&&(C=C.replace(/[A-Z]/g,O=>"-"+O.toLowerCase()),b+=1,d=Math.max(d,(h=C)[0]=="-"?0:Cg(h)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(h)?+!!RegExp.$1||-!!RegExp.$2:0)+1),f+=(f?";":"")+Vt(v).map(O=>m.s(C,kg(""+O,m.theme)+(l?" !important":""))).join(";"));else if(C[0]=="@"||C.includes("&")){let O=s;C[0]=="@"&&(C=C.replace(/\bscreen\(([^)]+)\)/g,(B,x)=>{let L=m.theme("screens",x);return L?(O|=67108864,Qo(L,"")):B}),O|=ll(C)),g.push(...u(v,{n:i,p:O,r:[...c,C],i:l},m))}else g.push(...u(v,{p:s,r:[...c,C]},m))}return g.unshift({n:i,p:s,o:Math.max(0,15-b)+1.5*Math.min(d||15,15),r:c,d:f}),g.sort(wg)}(e,pl(t,n,a,r),n)}function kg(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,a,r,u,o="")=>{let i=t(r,o);return typeof i=="function"&&/color|fill|stroke/i.test(r)?la(i):""+Vt(i).filter(s=>Object(s)!==s)})}function hl(e,t){let n,a=[];for(let r of e)r.d&&r.n?n?.p==r.p&&""+n.r==""+r.r?(n.c=[n.c,r.c].filter(Boolean).join(" "),n.d=n.d+";"+r.d):a.push(n={...r,n:r.n&&t}):a.push({...r,n:r.n&&t});return a}function cl(e,t,n=bt.u,a,r){let u=[];for(let o of e)for(let i of function(s,c,l,m,g){s={...s,i:s.i||g};let f=function(d,b){let T=fl.get(d.n);return T?T(d,b):b.r(d.n,d.v[0]=="dark")}(s,c);return f?typeof f=="string"?({r:m,p:l}=pl(s,c,l,m),hl(cl(bl(f),c,l,m,s.i),s.n)):Array.isArray(f)?f.map(d=>{var b,T;return{o:0,...d,r:[...Vt(m),...Vt(d.r)],p:(b=l,T=d.p??l,b&~bt.o|T)}}):vg(f,s,c,l,m):[{c:gl(s),p:0,o:0,r:[]}]}(o,t,n,a,r))u.splice(ib(u,i),0,i);return u}function Sg(e,t,n,a,r,u,o,i){return hl((i?n.flatMap(s=>cl([s],a,r,u,o)):cl(n,a,r,u,o)).map(s=>s.p&bt.o&&(s.n||t==bt.b)?{...s,p:s.p&~bt.o|t,o:0}:s),e)}function sb(e,t,n,a){var r;return r=(u,o)=>{let{n:i,p:s,r:c,i:l}=pl(u,o,t);return n&&Sg(i,t,n,o,s,c,l,a)},fl.set(e,r),e}function il(e,t,n){if(e[e.length-1]!="("){let a=[],r=!1,u=!1,o="";for(let i of e)if(!(i=="("||/[~@]$/.test(i))){if(i[0]=="!"&&(i=i.slice(1),r=!r),i.endsWith(":")){a[i=="dark:"?"unshift":"push"](i.slice(0,-1));continue}i[0]=="-"&&(i=i.slice(1),u=!u),i.endsWith("-")&&(i=i.slice(0,-1)),i&&i!="&"&&(o+=(o&&"-")+i)}o&&(u&&(o="-"+o),t[0].push({n:o,v:a.filter(lb),i:r}))}}function lb(e,t,n){return n.indexOf(e)==t}var hg=new Map;function bl(e){let t=hg.get(e);if(!t){let n=[],a=[[]],r=0,u=0,o=null,i=0,s=(c,l=0)=>{r!=i&&(n.push(e.slice(r,i+l)),c&&il(n,a)),r=i+1};for(;i1?m.slice(0,-1)+Jo(JSON.stringify([m,g])):m+"("+Eg(g)+")",bt.a,g,/@$/.test(m))],a)}l=n.lastIndexOf("(",l-1)}n.length=l+1}else/[~@]/.test(c)&&e[i+1]=="("&&a.unshift([])}s(!0),hg.set(e,t=a[0])}return t}function Ag(e,t,n){return t.reduce((a,r,u)=>a+n(r)+e[u+1],e[0])}function Dg(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?Ag(e,t,n=>sl(n).trim()):t.filter(Boolean).reduce((n,a)=>n+sl(a),e?sl(e):"")}function sl(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=Dg(e[0],e.slice(1)))&&(n+=" "+t);else for(let a in e)e[a]&&(n+=" "+a);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var rF=Lg("@"),uF=Lg("~");function Lg(e){return new Proxy(function(n,...a){return t("",n,a)},{get(n,a){return a in n?n[a]:function(r,...u){return t(a,r,u)}}});function t(n,a,r){return Eg(bl(n+e+"("+Dg(a,r)+")"))}}function dl(e,t){return Array.isArray(e)?bg(Ag(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?bg(e):[e]}var cb=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function bg(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],a=[n[0]],r=[];for(;t=cb.exec(e);)t[4]&&(n.shift(),r.shift()),t[3]?(r.unshift(t[3]),n.unshift({}),a.push(r.reduce((u,o)=>({[o]:u}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),a.push(r.reduce((u,o)=>({[o]:u}),n[0]))),n[0][t[1]]=t[2]);return a}function Pg(e,...t){var n;let a=dl(e,t),r=(a.find(u=>u.label)?.label||"css")+Jo(JSON.stringify(a));return n=(u,o)=>hl(a.flatMap(i=>vg(i,u,o,bt.o)),r),fl.set(r,n),r}var oF=new Proxy(function(e,t){return yg("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,a){return yg(t,n,a)}}});function yg(e,t,n){return{toString(){return Pg({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function ee(e,t,n){return[e,db(t,n)]}function db(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,a)=>({[e]:t?t(n,a):ml(n,1)}):n=>e||{[n[1]]:ml(n,2)}}function ml(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function te(e,t,n,a){return[e,mb(t,n,a)]}function mb(e,t,n){let a=typeof t=="string"?(r,u)=>({[t]:n?n(r,u):r._}):t||(({1:r,_:u},o,i)=>({[r||i]:u}));return(r,u)=>{let o=Mg(e||r[1]),i=u.theme(o,r.$$)??fr(r.$$,o,u);if(i!=null)return r._=ml(r,0,i),a(r,u,o)}}function it(e,t={},n){return[e,gb(t,n)]}function gb(e={},t){return(n,a)=>{let{section:r=Mg(n[0]).replace("-","")+"Color"}=e,[u,o]=pb(n.$$);if(!u)return;let i=a.theme(r,u)||fr(u,r,a);if(!i||typeof i=="object")return;let{opacityVariable:s=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:c=r.replace("Color","Opacity"),property:l=r,selector:m}=e,g=a.theme(c,o||"DEFAULT")||o&&fr(o,c,a),f=t||(({_:b})=>{let T=gu(l,b);return m?{[m]:T}:T});n._={value:la(i,{opacityVariable:s||void 0,opacityValue:g||void 0}),color:b=>la(i,b),opacityVariable:s||void 0,opacityValue:g||void 0};let d=f(n,a);if(!n.dark){let b=a.d(r,u,i);b&&b!==i&&(n._={value:la(b,{opacityVariable:s||void 0,opacityValue:g||"1"}),color:T=>la(b,T),opacityVariable:s||void 0,opacityValue:g||void 0},d={"&":d,[a.v("dark")]:f(n,a)})}return d}}function pb(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function gu(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function fr(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=Yo(kg(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function Mg(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function Yo(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",a,r="")=>Yo(n)+a+Yo(r)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var iF=Symbol();var Fg=new Proxy(ub,{apply(e,t,n){return al(n[0])},get(e,t){let n=al[t];return typeof n=="function"?function(){return n.apply(al,arguments)}:n}});var sF=function e(t){return new Proxy(function(n,...a){return xg(t,"",n,a)},{get(n,a){return a==="bind"?e:a in n?n[a]:function(r,...u){return xg(t,a,r,u)}}})}();function xg(e,t,n,a){return{toString(){let r=dl(n,a),u=Tg(t+Jo(JSON.stringify([t,r])));return(typeof e=="function"?e:Fg)(Pg({[`@keyframes ${u}`]:dl(n,a)})),u}}}p();p();p();p();p();var _g={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...Yt(4,"rem",4,.5,.5),...Yt(12,"rem",4,5),14:"3.5rem",...Yt(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Fe("blur"),backdropBrightness:Fe("brightness"),backdropContrast:Fe("contrast"),backdropGrayscale:Fe("grayscale"),backdropHueRotate:Fe("hueRotate"),backdropInvert:Fe("invert"),backdropOpacity:Fe("opacity"),backdropSaturate:Fe("saturate"),backdropSepia:Fe("sepia"),backgroundColor:Fe("colors"),backgroundImage:{none:"none"},backgroundOpacity:Fe("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...Yt(200,"",100,0,50),...Yt(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Fe("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Fe("spacing"),borderWidth:{DEFAULT:"1px",...on(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Fe("colors"),caretColor:Fe("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...Yt(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Fe("borderColor"),divideOpacity:Fe("borderOpacity"),divideWidth:Fe("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...pu(2,6),...pu(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Fe("spacing"),gradientColorStops:Fe("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...pu(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...pu(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...Yt(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...Yt(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Fe("spacing"),placeholderColor:Fe("colors"),placeholderOpacity:Fe("opacity"),outlineColor:Fe("colors"),outlineOffset:on(8,"px"),outlineWidth:on(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Fe("colors"),ringOffsetWidth:on(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...on(8,"px")},rotate:{...on(2,"deg"),...on(12,"deg",3),...on(180,"deg",45)},saturate:Yt(200,"",100,0,50),scale:{...Yt(150,"",100,0,50),...Yt(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Fe("spacing"),scrollPadding:Fe("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...on(2,"deg"),...on(12,"deg",3)},space:Fe("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:Yt(2),textColor:Fe("colors"),textDecorationColor:Fe("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...on(8,"px")},textUnderlineOffset:{auto:"auto",...on(8,"px")},textIndent:Fe("spacing"),textOpacity:Fe("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Fe("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...pu(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...Yt(50,"",1,0,10),auto:"auto"}};function pu(e,t){let n={};do for(var a=1;at(e)}var SF={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${_g.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${_g.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},DF=[ee("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:fr(`[${t}]`,"",n)}}})),ee("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),te("aspect-","aspectRatio"),ee("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:a,padding:r}=t("container"),u={width:"100%",marginRight:a&&"auto",marginLeft:a&&"auto",...o("xs")};for(let i in n){let s=n[i];typeof s=="string"&&(u[Qo(s)]={"&":{maxWidth:s,...o(i)}})}return u;function o(i){let s=r&&(typeof r=="string"?r:r[i]||r.DEFAULT);if(s)return{paddingRight:s,paddingLeft:s}}}),te("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),ee("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),ee("box-(border|content)","boxSizing",({1:e})=>e+"-box"),ee("hidden",{display:"none"}),ee("table-(auto|fixed)","tableLayout"),ee(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",ee("isolate","isolation"),ee("object-(contain|cover|fill|none|scale-down)","objectFit"),te("object-","objectPosition"),ee("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",Zo),ee("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),ee("(static|fixed|absolute|relative|sticky)","position"),te("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),te("-?(top|bottom|left|right)(?:$|-)","inset"),ee("(visible|collapse)","visibility"),ee("invisible",{visibility:"hidden"}),te("-?z-","zIndex"),ee("flex-((row|col)(-reverse)?)","flexDirection",Bg),ee("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),te("(flex-(?:grow|shrink))(?:$|-)"),te("(flex)-"),te("grow(?:$|-)","flexGrow"),te("shrink(?:$|-)","flexShrink"),te("basis-","flexBasis"),te("-?(order)-"),"-?(order)-(\\d+)",te("grid-cols-","gridTemplateColumns"),ee("grid-cols-(\\d+)","gridTemplateColumns",Ng),te("col-","gridColumn"),ee("col-(span)-(\\d+)","gridColumn",Og),te("col-start-","gridColumnStart"),ee("col-start-(auto|\\d+)","gridColumnStart"),te("col-end-","gridColumnEnd"),ee("col-end-(auto|\\d+)","gridColumnEnd"),te("grid-rows-","gridTemplateRows"),ee("grid-rows-(\\d+)","gridTemplateRows",Ng),te("row-","gridRow"),ee("row-(span)-(\\d+)","gridRow",Og),te("row-start-","gridRowStart"),ee("row-start-(auto|\\d+)","gridRowStart"),te("row-end-","gridRowEnd"),ee("row-end-(auto|\\d+)","gridRowEnd"),ee("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>Zo(Bg(e))),ee("grid-flow-(dense)","gridAutoFlow"),te("auto-cols-","gridAutoColumns"),te("auto-rows-","gridAutoRows"),te("gap-x(?:$|-)","gap","columnGap"),te("gap-y(?:$|-)","gap","rowGap"),te("gap(?:$|-)","gap"),"(justify-(?:items|self))-",ee("justify-","justifyContent",Rg),ee("(content|items|self)-",e=>({["align-"+e[1]]:Rg(e)})),ee("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),te("p([xytrbl])?(?:$|-)","padding",hr("padding")),te("-?m([xytrbl])?(?:$|-)","margin",hr("margin")),te("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),ee("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),te("w-","width"),te("min-w-","minWidth"),te("max-w-","maxWidth"),te("h-","height"),te("min-h-","minHeight"),te("max-h-","maxHeight"),te("font-","fontWeight"),te("font-","fontFamily",({_:e})=>typeof(e=Vt(e))[1]=="string"?{fontFamily:Tn(e)}:{fontFamily:Tn(e[0]),...e[1]}),ee("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),ee("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),ee("italic","fontStyle"),ee("not-italic",{fontStyle:"normal"}),ee("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...ca({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),te("tracking-","letterSpacing"),te("leading-","lineHeight"),ee("list-(inside|outside)","listStylePosition"),te("list-","listStyleType"),ee("list-","listStyleType"),te("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),it("placeholder-",{property:"color",selector:"&::placeholder"}),ee("text-(left|center|right|justify|start|end)","textAlign"),ee("text-(ellipsis|clip)","textOverflow"),te("text-opacity-","textOpacity","--tw-text-opacity"),it("text-",{property:"color"}),te("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),te("indent-","textIndent"),ee("(overline|underline|line-through)","textDecorationLine"),ee("no-underline",{textDecorationLine:"none"}),te("underline-offset-","textUnderlineOffset"),it("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),te("decoration-","textDecorationThickness"),ee("decoration-","textDecorationStyle"),ee("(uppercase|lowercase|capitalize)","textTransform"),ee("normal-case",{textTransform:"none"}),ee("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),ee("align-","verticalAlign"),ee("whitespace-","whiteSpace"),ee("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),ee("break-words",{overflowWrap:"break-word"}),ee("break-all",{wordBreak:"break-all"}),ee("break-keep",{wordBreak:"keep-all"}),it("caret-",{opacityVariable:!1,opacitySection:"opacity"}),it("accent-",{opacityVariable:!1,opacitySection:"opacity"}),ee("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${Aa(e," ")},var(--tw-gradient-stops))`),it("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),it("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),it("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),ee("bg-(fixed|local|scroll)","backgroundAttachment"),ee("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),ee(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),ee("bg-blend-","backgroundBlendMode"),ee("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),te("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),it("bg-",{section:"backgroundColor"}),te("bg-","backgroundImage"),te("bg-","backgroundPosition"),ee("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",Zo),te("bg-","backgroundSize"),te("rounded(?:$|-)","borderRadius"),te("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${Aa(n[0])}-radius`]:t,[`border-${Aa(n[1])}-radius`]:t}}),ee("border-(collapse|separate)","borderCollapse"),te("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),ee("border-(solid|dashed|dotted|double|none)","borderStyle"),te("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...ca({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),it("border-([xytrbl])-",{section:"borderColor"},hr("border","Color")),it("border-"),te("border-([xytrbl])(?:$|-)","borderWidth",hr("border","Width")),te("border(?:$|-)","borderWidth"),te("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),ee("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),ee("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),te("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${Aa(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${Aa(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),it("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),te("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),it("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),te("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),ee("ring-inset",{"--tw-ring-inset":"inset"}),it("ring-",{property:"--tw-ring-color"}),te("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...ca({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":la(t("ringOffsetColor","","#fff")),"--tw-ring-color":la(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),it("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),te("shadow(?:$|-)","boxShadow",({_:e})=>({...ca({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Tn(e),"--tw-shadow-colored":Tn(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),te("(opacity)-"),ee("mix-blend-","mixBlendMode"),...Ig(),...Ig("backdrop-"),te("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Tn(e),transitionTimingFunction:e._=="none"?void 0:Tn(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:Tn(t("transitionDuration",""))})),te("duration(?:$|-)","transitionDuration","transitionDuration",Tn),te("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Tn),te("delay(?:$|-)","transitionDelay","transitionDelay",Tn),te("animate(?:$|-)","animation",(e,{theme:t,h:n,e:a})=>{let r=Tn(e),u=r.split(" "),o=t("keyframes",u[0]);return o?{["@keyframes "+(u[0]=a(n(u[0])))]:o,animation:u.join(" ")}:{animation:r}}),"(transform)-(none)",ee("transform",xl),ee("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":jg(e=="gpu")})),te("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...xl()})),te("-?(rotate)-","rotate",yl),te("-?(translate-[xy])-","translate",yl),te("-?(skew-[xy])-","skew",yl),ee("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",Zo),"(appearance)-",te("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",te("(cursor)-"),"(cursor)-",ee("snap-(none)","scroll-snap-type"),ee("snap-(x|y|both)",({1:e})=>({...ca({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),ee("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),ee("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),ee("snap-(normal|always)","scroll-snap-stop"),ee("scroll-(auto|smooth)","scroll-behavior"),te("scroll-p([xytrbl])?(?:$|-)","padding",hr("scroll-padding")),te("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",hr("scroll-margin")),ee("touch-(auto|none|manipulation)","touch-action"),ee("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...ca({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),ee("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),ee("outline",{outlineStyle:"solid"}),ee("outline-(dashed|dotted|double)","outlineStyle"),te("-?(outline-offset)-"),it("outline-",{opacityVariable:!1,opacitySection:"opacity"}),te("outline-","outlineWidth"),"(pointer-events)-",te("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],ee("select-(none|text|all|auto)","userSelect"),it("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),it("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),te("stroke-","strokeWidth"),ee("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),ee("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function Zo(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function Bg(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function Aa(e,t="-"){let n=[];for(let a of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[a]);return n.join(t)}function Tn(e){return e&&""+(e._||e)}function Rg({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function hr(e,t=""){return({1:n,_:a})=>{let r={x:"lr",y:"tb"}[n]||n+n;return r?{...gu(e+"-"+Aa(r[0])+t,a),...gu(e+"-"+Aa(r[1])+t,a)}:gu(e+t,a)}}function Ig(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let a of t)n[`--tw-${e}${a}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...ca(n),[`${e}filter`]:t.map(a=>`var(--tw-${e}${a})`).join(" ")},[`(${e}filter)-(none)`,ee(`${e}filter`,n),...t.map(a=>te(`${a[0]=="h"?"-?":""}(${e}${a})(?:$|-)`,a,({1:r,_:u})=>({[`--tw-${r}`]:Vt(u).map(o=>`${a}(${o})`).join(" "),...n})))]}function yl({1:e,_:t}){return{["--tw-"+e]:t,...xl()}}function xl(){return{...ca({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":jg()}),transform:"var(--tw-transform)"}}function jg(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function Og({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function Ng({1:e}){return`repeat(${e},minmax(0,1fr))`}function ca(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}p();p();var Xo=globalThis||(typeof window<"u"?window:self),bb=Object.create,Tl=Object.defineProperty,yb=Object.getOwnPropertyDescriptor,xb=Object.getOwnPropertyNames,Eb=Object.getPrototypeOf,Tb=Object.prototype.hasOwnProperty,Cb=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),wb=(e,t)=>{for(var n in t)Tl(e,n,{get:t[n],enumerable:!0})},El=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of xb(t))!Tb.call(e,r)&&r!==n&&Tl(e,r,{get:()=>t[r],enumerable:!(a=yb(t,r))||a.enumerable});return e},vb=(e,t,n)=>(El(e,t,"default"),n&&El(n,t,"default")),Ug=(e,t,n)=>(n=e!=null?bb(Eb(e)):{},El(t||!e||!e.__esModule?Tl(n,"default",{value:e,enumerable:!0}):n,e)),Hg=Cb((e,t)=>{(function(n,a){typeof define=="function"&&define.amd?define([],a):typeof e<"u"?a():(a(),n.FileSaver={})})(e,function(){"use strict";function n(c,l){return typeof l>"u"?l={autoBom:!1}:typeof l!="object"&&(l={autoBom:!l}),l.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function a(c,l,m){var g=new XMLHttpRequest;g.open("GET",c),g.responseType="blob",g.onload=function(){s(g.response,l,m)},g.onerror=function(){},g.send()}function r(c){var l=new XMLHttpRequest;l.open("HEAD",c,!1);try{l.send()}catch{}return 200<=l.status&&299>=l.status}function u(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var l=document.createEvent("MouseEvents");l.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(l)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Xo=="object"&&Xo.global===Xo?Xo:void 0,i=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(c,l,m){var g=o.URL||o.webkitURL,f=document.createElement("a");l=l||c.name||"download",f.download=l,f.rel="noopener",typeof c=="string"?(f.href=c,f.origin===location.origin?u(f):r(f.href)?a(c,l,m):u(f,f.target="_blank")):(f.href=g.createObjectURL(c),setTimeout(function(){g.revokeObjectURL(f.href)},4e4),setTimeout(function(){u(f)},0))}:"msSaveOrOpenBlob"in navigator?function(c,l,m){if(l=l||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(n(c,m),l);else if(r(c))a(c,l,m);else{var g=document.createElement("a");g.href=c,g.target="_blank",setTimeout(function(){u(g)})}}:function(c,l,m,g){if(g=g||open("","_blank"),g&&(g.document.title=g.document.body.innerText="downloading..."),typeof c=="string")return a(c,l,m);var f=c.type==="application/octet-stream",d=/constructor/i.test(o.HTMLElement)||o.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||f&&d||i)&&typeof FileReader<"u"){var T=new FileReader;T.onloadend=function(){var v=T.result;v=b?v:v.replace(/^data:[^;]*;/,"data:attachment/file;"),g?g.location.href=v:location=v,g=null},T.readAsDataURL(c)}else{var h=o.URL||o.webkitURL,C=h.createObjectURL(c);g?g.location=C:location.href=C,g=null,setTimeout(function(){h.revokeObjectURL(C)},4e4)}});o.saveAs=s.saveAs=s,typeof t<"u"&&(t.exports=s)})}),qg={};wb(qg,{default:()=>ei});var kb=Ug(Hg());vb(qg,Ug(Hg()));var{default:zg,...Sb}=kb,ei=zg!==void 0?zg:Sb;p();p();p();p();p();p();var p_=Qe().REDIRECT_URL;function Bb(){let[e,t]=De(null);return Ge(()=>{Jn().then(a=>{t(a)})},[]),[e,a=>{t(a),kn(a)}]}async function Rb(e,t,n){try{if(t===null)return"noupdate";let a=await Nb(e),r=await Jn();r.accountLastSyncedAt=Date.now(),U.debug("settings",t),U.debug("local settings.updatedAt",t.updatedAt),U.debug("remote settings.updatedAt",a.updatedAt),U.debug("last synced at",r.accountLastSyncedAt);let u=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(u=!0),!u&&t.updatedAt>a.updatedAt&&(u=!0),U.debug("isUpload",u),u)return await jb(e,t),await kn(r),"upload";let o=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(o=!0),!o&&t.updatedAt0&&jt.remove(Ot),a}}function Kg(e,t){let n=Ob(),[a,r]=Bb();Ge(()=>{!n||!n.token||a&&a.proAutoSync===!1||Ib(n)&&Rb(n.token,e,t)},[e,n])}function Ib(e){return Zt(e)?!0:new Date(e.createTime){jt.get(Ot,null).then(n=>{t(n)})},[t]),e}function Nb(e){return(location.href?.indexOf("popup.html")>0?ba:ie)({responseType:"json",url:Ni+"/v1/user/settings",method:"get",headers:{token:e}}).then(n=>n.data)}function jb(e,t){return(location.href?.indexOf("popup.html")>0?ba:ie)({responseType:"json",url:Ni+"/v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(a=>a.data)}function wl(e){let{onClose:t}=e,[n,a]=De("Original"),[r,u,o,i]=Vo(()=>{setTimeout(()=>{v("updateGlobalContext",!1)()},250)});Kg(r,u);let[s,c]=De(null),[l,m]=De(globalThis.location.href),[g,f]=De("auto"),[d,b]=De(null),T=N=>{a(N.detail)},h=N=>{f(N);let D=ag(l,N,s.sourceLanguageUrlPattern);u(y=>({...y,sourceLanguageUrlPattern:D})),rn(N)},C=()=>{m(globalThis.location.href)};Ge(()=>(document.addEventListener(vu,T,!1),En().then(N=>{c(N);let D=ct();f(D);let y=qe();a(y),cg(N.interval)}),document.addEventListener("urlChange",C),()=>{document.removeEventListener("pageTranslatedStatus",T),document.removeEventListener("urlChange",C)}),[]),Ge(()=>{En().then(N=>{c(N)})},[r]),Ge(()=>{l&&s&&Sa({url:l,config:s}).then(N=>{b(N)})},[l,s]);let v=(N,D,y={})=>()=>{dr({method:N,data:y||{}}),D&&t()},O=()=>{t()},B=()=>{u(N=>({...N,enabled:!N.enabled})),setTimeout(()=>{O()},50)},x=()=>{Cl(),setTimeout(()=>{O()},50)},L=()=>{Cl(),setTimeout(()=>{O()},50)},M=(N="")=>{br(!0,N),setTimeout(()=>{t()},50)},w=()=>{ai(jc),setTimeout(()=>{globalThis.close()},50)},E=()=>{ni(),setTimeout(()=>{t()},50)},I=()=>{ri(),setTimeout(()=>{t()},50)},F=()=>{Vg(),setTimeout(()=>{t()},50)},A=()=>{ui(),setTimeout(()=>{t()},50)},_=()=>{Yg(),setTimeout(()=>{t()},50)},j=N=>{u(D=>({...D,generalRule:{...D.generalRule,mouseHoverHoldKey:N}}))};return!s||!d?null:V(el,{openEbookViewerPage:I,openEbookBuilderPage:A,onSwitchTranslationMode:N=>{v("switchTranslationMode",!0,{mode:N})()},onTranslateLocalHtmlFile:F,onTranslateLocalSubtitleFile:_,request:ie,onClose:O,onToggleEnabled:B,onTranslateTheWholePage:v("translateTheWholePage",!0),openOptionsPage:M,openPricingPage:w,onToggleTranslate:v("toggleTranslatePage",!0),onTranslateTheMainPage:v("translateTheMainPage",!0),ontranslateToThePageEndImmediately:v("translateToThePageEndImmediately",!0),onTranslatePage:v("translatePage",!0),onRestorePage:v("restorePage",!1),onTranslatePdf:x,openAboutPage:E,onTranslateLocalPdfFile:L,onSetPageLanguage:h,onUserConfigChange:u,config:s,pageStatus:n,ctx:d,currentUrl:l,currentLang:g,onSetLocalConfig:ti,onSetBuildinConfig:Gg,onMouseTriggerChanged:j})}function zb(e,t){for(let n of t){if(fe()&&!Hu()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}var vl={position:"right",right:0,top:335},Pt={...vl},si=!1,Da=null,Sn=null,li=null,kl=null,yr=null,Sl=null,Jg=6,oi,ii,Zg=null,Xg=null;async function ep(){let e=Qe();Sl=await ap(),Pt=Sl.pagePopupConfig||Pt;let t=document.createElement("div");t.id="immersive-translate-popup",t.setAttribute("style","all: initial"),document.documentElement.appendChild(t);let n=t.attachShadow({mode:"open"});kl=n;let a=[e.IMMERSIVE_TRANSLATE_PICO_CSS,e.IMMERSIVE_TRANSLATE_COMMON_CSS,e.IMMERSIVE_TRANSLATE_POPUP_CSS,e.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);zb(n,[a]);let r=document.createElement("div");r.innerHTML=e.IMMERSIVE_TRANSLATE_POPUP_HTML,n.appendChild(r),Da=n.querySelector("#immersive-translate-popup-container");let o=n.querySelector("#immersive-translate-popup-btn");Sn=o,li=n.querySelector("#mount"),Da.setAttribute("style",Al(Pt)),Ml(),o.addEventListener("mousedown",tp),o.addEventListener("touchstart",qb),globalThis.addEventListener("resize",s=>{Da.setAttribute("style",Al(Pt))})}function Ub(){lu(null,li),li.style.display="none",Sn.style.display="block",yr=setTimeout(()=>{Ml(!0)},2e3)}function Qg(e){let t=e.querySelector("#mount"),n=()=>{Ub()},a=r=>{r&&r.target&&r.target.id==="immersive-translate-popup-overlay"&&n()};(async()=>{let r=await En();lu(V(ng,{lang:r.interfaceLanguage,fallbackLang:"zh-CN",translations:P3,children:V("div",{onClick:a,id:"immersive-translate-popup-overlay",class:"immersive-translate-popup-overlay",children:V("div",{class:"immersive-translate-popup-wrapper",style:Hb(),children:V(wl,{onClose:n})})})}),t)})().then(()=>{Sn.style.display="none",li.style.display="block"})}function Hb(){let e=Dl(),t=e.height,{position:n,top:a,left:r}=Pt,u={position:"fixed"},o=300,i=300,s=100;return mc()&&(n=vl.position,a=vl.top),n==="right"||n==="left"?(u.top=a-s,u.top+o>=t?(u.bottom=30,delete u.top):u.top<=10&&(u.top=10),n==="right"?u.right=0:n==="left"&&(u.left=0)):(n==="top"||n==="bottom")&&(u.left=r-s,u.left+i>=e.width?(u.right=0,delete u.left):u.left<=10&&(u.left=0),n==="top"?u.top=0:n==="bottom"&&(u.bottom=0)),u}function Dl(){return{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}function tp(e){Xg=Da.getAttribute("style"),oi=e.pageX,ii=e.pageY,yr&&clearTimeout(yr),si=!1,Sn.style.opacity="1",Sn.style.transform="none",Zg=Sn.getAttribute("style"),globalThis.addEventListener("mousemove",Ll),globalThis.addEventListener("mouseup",Pl),globalThis.addEventListener("touchmove",np),globalThis.addEventListener("touchend",ci),globalThis.addEventListener("touchcancel",ci)}function qb(e){e.preventDefault&&e.preventDefault(),tp(e.changedTouches[0])}function np(e){Ll(e.changedTouches[0])}function ci(e){e.preventDefault&&e.preventDefault(),Pl(e.changedTouches[0])}function Ll(e){e.preventDefault&&e.preventDefault(),si=!0,Da.setAttribute("style",`left:${e.clientX}px;top:${e.clientY}px;transform:scale(1.6);`)}function Pl(e){e.preventDefault&&e.preventDefault(),$b(),yr&&clearTimeout(yr),oi=oi||0,ii=ii||0;let t=Math.abs(e.pageX-oi),n=Math.abs(e.pageY-ii);t{Ml(!0)},2e3)}function Ml(e=!1){Sn.style.opacity="0.4";let t="";Pt.position==="left"?t="translateX(-40%)":Pt.position==="right"?t="translateX(40%)":Pt.position==="top"?t="translateY(-40%)":Pt.position==="bottom"&&(t="translateY(40%)"),Sn.style.transform=t,e&&(Sn.style.transition="transform 0.2s ease-in-out, opacity 0.2s ease-in-out")}function $b(){globalThis.removeEventListener("mousemove",Ll),globalThis.removeEventListener("mouseup",Pl),globalThis.removeEventListener("touchmove",np),globalThis.removeEventListener("touchend",ci),globalThis.removeEventListener("touchcancel",ci)}function Al(e){let t=Kb(e);return Object.keys(t).map(n=>typeof t[n]=="number"?`${n}:${t[n]}px;`:"").join("")}function Kb(e){let{position:t,...n}=e,a=Dl(),r={};return t==="left"?(r.left=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="right"?(r.right=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="top"?(r.top=0,n.left>a.width?r.left=a.width-100:r.left=n.left):t==="bottom"&&(r.bottom=0,n.left>a.width?r.left=a.width-100:r.left=n.left),r}var rp=!1;async function up(){rp||(rp=!0,ep().catch(e=>{U.error("init popup error",e)}))}var op=!1,cp=[()=>{Ye.unbind()}],_l=[...cp],Gb=xt(async()=>{await br()},50),Vb=xt(async()=>{await ni()},50),Yb=xt(async()=>{await ui()},50),Jb=xt(async()=>{await ri()},50),dp=xt(e=>{dr({method:e,data:{trigger:"userscript_menu"}})},50),Qb=xt(()=>{di();let e=new CustomEvent(Wn,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},200),Zb=xt(()=>{pi();let e=new CustomEvent(Wn,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},200),Xb=xt(()=>{gi();let e=new CustomEvent(Wn,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},200);function ey(e,t){let n=e.document;if(op)return;if(op=!0,fe()||xp(),n.addEventListener("securitypolicyviolation",my),document.addEventListener(ge+"DocumentMessageUser",hp),document.addEventListener(ge+"DocumentMessageUpdateUser",bp),document.addEventListener(ge+"ChangeSuccessService",yp.bind(null,t)),document.addEventListener(wu,ly.bind(null,t)),n.addEventListener(ge+"EbookLoaded",dy),n.addEventListener(Ec,cy),n.addEventListener(Tc,gy.bind(null,t)),n.addEventListener("click",r=>{ry(r,t)}),fe()&&(globalThis.top!=globalThis.self?e.addEventListener("message",ny,!1):n.addEventListener(Wn,ty)),globalThis.top===globalThis.self){let r=ea.rootIframe(Lu);r.handleAsk("getRateLimitDelay",Fd),r.handleAsk("throttleRequest",Em)}}function mp(e,t){py(),ey(t,e);let n=t.document,a=ay.bind(null,e);e.rule.fingerCountToToggleTranslagePageWhenTouching>=2&&n.addEventListener("touchstart",a),_l.push(()=>{n.removeEventListener("touchstart",a)}),fe()&&globalThis.top===globalThis.self&&(N0(e.config),fy(e.config)),Xt()&&N0(e.config)}function ty(e){up()}function ny(e){let t=e;t&&t.data&&t.data.payload&&t.data.author===Cu&&mr(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})}function ay(e,t){let n=t;n.touches.length==e.rule.fingerCountToToggleTranslagePageWhenTouching?Qb():n.touches.length===e.rule.fingerCountToToggleTranslationMaskWhenTouching?Xb():n.touches.length===e.rule.fingerCountToToggleTranslagePageOnlyTranslationWhenTouching&&Zb()}function ry(e,t){let n=e.target;if(!n||!n.getAttribute){Fl(n);return}let a=n.getAttribute("data-immersive-translate-event");a&&Je(a,[{name:a}],{...t,sourceLanguage:"none"});let r=n.getAttribute(`data-${J}-action`);if(r)if(r==="retry"){e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),mi(),Fl(n,!0);return}else if(r=="toast-error"){let u=n.getAttribute(`data-${J}-tooltip-text`);Bl(pp.bind(null,t,u||""))}else r=="close-search"&&(e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),Bl(iy.bind(null,t)));Fl(n)}async function ip(e=!1){let t=document.querySelector(`.${J}-search-recomend`);if(!t||(t.remove(),!e))return;let n=await ln();n.generalRule||(n.generalRule={}),n.generalRule.enableSearchEnhancement=!1,await sn(n)}async function uy(){let e=await ln(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,a=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(a=e.translationUrlPattern.matches||[]),!n&&a.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await sn(e)}async function oy(){let e=await ln(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await sn(e)}var sp=0;function Bl(e){let t=Date.now();if(t-sp<2e3)return;sp=t;let n=`${J}-modal`,a=document.querySelector(`.${n}`);if(a?.style.display=="block")return;let r=`${J}-modal-title`,u=`${J}-modal-body`,o=`${J}-modal-footer`;if(a){let i=a.querySelector(`.${r}`),s=a.querySelector(`.${o}`),c=a.querySelector(`.${u}`);e(a,i,c,s)}else{a=document.createElement("div"),a.className=n+" notranslate",a.id=n;let i=document.createElement("div");i.className=J+"-modal-content notranslate",a.appendChild(i);let s=document.createElement("span");s.textContent="\xD7",s.className=J+"-close",i.appendChild(s);let c=document.createElement("div");c.className=r+" notranslate",i.appendChild(c);let l=document.createElement("div");l.className=u+" notranslate",i.appendChild(l);let m=document.createElement("div");m.className=o,i.appendChild(m),document.body.appendChild(a),s.onclick=function(){a.style.display="none"},window.onclick=function(g){g.target==a&&(a.style.display="none")},e(a,c,l,m)}setTimeout(()=>{sy()},100)}function iy(e,t,n,a,r){let u=gp.bind(null,e);n.innerHTML=`
${Ko} ${u("disableConfirm")}
`,a.innerHTML="";let o=document.querySelector(`div[data-${J}-cancel-desc]`),i=document.createElement("p");i.innerHTML=o?Le.sanitize(o.textContent||""):Le.sanitize(u("searchEnhancementNotes")),i.style.cssText="margin-bottom:12px",a.appendChild(i);let s=[{id:"enable-search-enhancement",value:"enable",text:u("enableSearchEnhancement")},{id:"disable-once",value:"once",text:u("disableOnce")},{id:"disable-global",value:"global",text:u("disableGlobal")}];for(let f=0;f${u("option")}`})),a.appendChild(c);let l=a.querySelector(`.${J}-open-enhancement`);l&&(l.onclick=function(){Ep(!0)});let m=document.createElement("button");m.innerText=u("closeModal"),m.className=`${J}-btn ${J}-cancel-btn`;let g=document.createElement("button");g.className=`${J}-btn`,g.innerText=u("saveSettings"),r.innerHTML="",r.appendChild(m),r.appendChild(g),m.onclick=function(){t.style.display="none"},g.onclick=function(){let f=a.getElementsByTagName("input"),d="";for(let b=0;b
1. \u5207\u6362\u5230 ${u} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458`:i+=`

\u5982\u679C\u60A8\u6709\u7591\u95EE\uFF0C\u8BF7\u8054\u7CFB support@immersivetranslate.com`,Bl(pp.bind(null,e,i))}catch(a){U.warn("parse message error",a)}}function cy(e){let t=e;if(U.debug("receive third party message",t),t&&t.detail)try{let n=JSON.parse(t.detail);n&&n.type&&(n.type==="retryFailedParagraphs"?hy({method:"retryFailedParagraphs"}):n.type==="updateCommands"?Tp(n.data):n.type==="toggleEnableDefaultAlwaysTranslatedUrls"?uy():n.type==="toggleEnableInputTranslation"?oy():dp(n.type))}catch(n){U.warn("parse message error",n)}}function dy(e){setTimeout(()=>{fp()},10)}function my(e){Ee.HAS_CSP_ERROR="1"}function gy(e,t){let n=event.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&Je(n.name,[{name:n.name}],{...e})}function py(){_l.forEach(e=>{e()}),_l=cp}function fy(e){if(fe()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=Gu.commands,r=[...Object.keys(t).filter(u=>u==="toggleTranslatePage").map(u=>{let o=t[u].description,i=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(i=cr(`browser.${o.slice(6,-2)}`,e.interfaceLanguage)),{id:u,title:i}}),{id:Mi,title:cr("browser.openEbookViewer",e.interfaceLanguage),key:"e"},{id:Fi,title:cr("browser.openEbookBuilder",e.interfaceLanguage),key:"m"},{id:Li,title:cr("browser.openOptionsPage",e.interfaceLanguage),key:"o"},{id:Pi,title:cr("browser.openAboutPage",e.interfaceLanguage),key:"a"}];for(let u of r)GM.registerMenuCommand(u.title,()=>{u.id===Li?Gb():u.id===Pi?Vb():u.id===Fi?Yb():u.id===Mi?Jb():dp(u.id)},u.key)}}function hy(e){mr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{U.error("send content message request failed",e,n)});let t=new CustomEvent(Wn,{detail:e});globalThis.document.dispatchEvent(t)}p();var La={};async function Rl(){let t=[...document.querySelectorAll(".source-text")].map(a=>a.textContent).join(""),n=await Ke({text:t,minLength:200,pageLangs:[pa(),"en"]});return rn(n),n}async function Cp(e){Lt("Translating");let t=ct(),n=ro(),a=[...document.querySelectorAll(".source-text")];if(wo(e,t))return;let r=a.filter(u=>u.innerText?.trim()).map((u,o)=>{let i=u.parentElement?.parentElement?.querySelector(".target-text");return at(u,"id",o+""),i&&(rr(i,o)?.remove(),i.appendChild(ru(e,o))),{text:u.innerText||"",id:o,from:t,to:e.targetLanguage,url:"https://google.com",fromByClient:n}});document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await In({sentences:r},e,(u,o,i)=>{let s=i.id,c=rr(document.body,s);if(!c)return;let l=c.parentElement;l&&(c.remove(),u?(l.innerHTML=Le.sanitize(`${u.message}`),La[s]={ok:!1,sentence:i}):o&&(l.innerHTML=Le.sanitize(o.text),La[s]={ok:!0,sentence:i}),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!u}})})))})}catch(u){throw u}finally{Lt("Translated")}}async function wp(e){Lt("Translating"),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(La),n=[],a=[];for(let r of t){let u=La[r];if(!u.ok){let i=document.querySelector(`#error-id-${r}`);if(i){let s=i.parentElement;i.remove(),s&&(delete La[r],s.appendChild(ru(e,r)),a.push(u.sentence))}}}try{await In({sentences:a},e,(r,u,o)=>{let i=o.id,s=rr(document.body,i);if(!s)return;let c=s.parentElement;c&&(s.remove(),r?(c.innerHTML=Le.sanitize(`${r.message}`),La[i]={ok:!1,sentence:o}):u&&(c.innerHTML=Le.sanitize(u.text),La[i]={ok:!0,sentence:o}),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!r}})})))})}catch(r){throw r}finally{Lt("Translated")}}function Il(){Lt("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}p();var Ol={};async function vp(){let e=[...document.querySelectorAll("iframe")],t="";for(let a of e){let r=a.contentDocument;if(!r)continue;let u=r.body;if(u&&(t=t+u.innerText||"",t.length>1e3))break}let n=await Ke({text:t,pageLangs:["en"]});return rn(n),n}async function kp(e){Lt("Translating"),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(Ol),n=[];for(let a of t){let r=Ol[a];if(r.error){let o=r.commonAncestorContainer.querySelector(`[${ku}='${a}']`);o&&o.remove(),n.push(r)}}try{await Do(n,e,e.config.translationMode)}catch{}finally{Lt("Translated")}}function Sp(){let e=[...document.querySelectorAll("iframe")];for(let t of e){let n=t.contentDocument;if(!n)continue;let a=n.querySelectorAll("."+Wt);for(let r of a)r.remove()}Lt("Original")}async function Ap(e){Lt("Translating");let t=$t(),n=[...document.querySelectorAll("iframe")],a=[],r=[];for(let i of n){let s=i.contentDocument;if(!s)continue;or(s,e);let c=s.body;if(!c)continue;let l=un(e);l.isModifyImage=!1,oa({id:t,container:c,filterRule:l,onParagraph:m=>{a.push(m)}})}let u=Co(e.config.translationServices[e.translationService]?.placeholderDelimiters),o=1;for(let i of a){let s=ko(i.flatNodes,{isPreWhitespace:i.isPreWhitespace||!1,delimiters:u,stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(l=>l.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)});if(!s)continue;i.variables=s?.variables||{},i.text=s?.text,i.id=(o++).toString();let c=await F0(i,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:u,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});c&&(r.push(c),Ol[c.id]=c)}a=[],document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await Do(r,e,e.config.translationMode)}catch{}finally{Lt("Translated")}}p();var by=new AbortController,{signal:yy}=by,Hl=0,ql=0,Nl=!1,jl=0,fu=!1,Pa,Dp=0,Ma=[];function fi(e,t){xy();let n=e,a=n.config,r=a.generalRule.mouseHoverHoldKey==="Off",u=a.generalRule.mouseHoverHoldKey==="Auto",o=xt(l=>{if(Nl==!1&&Math.abs(l.clientX-Hl)+Math.abs(l.clientY-ql)>3&&(jl<2?jl+=1:Nl=!0),Hl=l.clientX,ql=l.clientY,u||fu&&!Pa){let m=_p(n.rule,t);if(m){if(Wl(m))return;Pp(n,m)}}},u?700:300),i=l=>{let m=l.target;Wl(m)||Pp(n)},s=l=>{let m=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",g=Ye.getPressedKeyCodes();if(g.length>1&&Ye[m]&&(Dp=Date.now(),fu=!1),g.length===1&&Ye[m]){let f=Date.now();fu=!0,Pa&&clearTimeout(Pa),Pa=setTimeout(()=>{let d=Dp-f;d>0&&d<=150?fu=!1:i(l),Pa=void 0},150)}};if(Ma.push(()=>{Pa&&clearTimeout(Pa)}),r)return;zl("mousemove",o,t),Ma.push(()=>{t.removeEventListener("mousemove",o)});function c(){Nl=!1,jl=0,o.cancel()}if(u)zl("blur",c,t),Ma.push(()=>{t.removeEventListener("blur",c)});else{let l=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",m=["ctrl","alt","shift","cmd","command","option","control"];zl("keyup",Lp,t),Ma.push(()=>{t.removeEventListener("keyup",Lp)}),m.includes(l)?Ye("*","mouseHover",s):Ye(a.generalRule.mouseHoverHoldKey,"mouseHover",i),Ye.setScope("mouseHover"),Ma.push(()=>{Ye.deleteScope("mouseHover")})}}function xy(){Ma.forEach(e=>e()),Ma=[]}function Lp(e){fu=!1}function zl(e,t,n=window){return n.addEventListener(e,t,{signal:yy})}function Pp(e,t,n=window){if(t=t||_p(e.rule,n),!t){U.debug("can not find selection part!");return}if(Wl(t)){U.debug("exclude dom");return}v3(e,t);let a=Mo();a?.currentUrl!==window.location.href&&(jn(),I0(e)),a&&(a.setupMouseHoverListener=fi);let r=un(e);r.excludeSelectors=[],r.selectors=[];let u=!1;oa({id:a.id,container:t,filterRule:r,force:!0,onParagraph:o=>{ou(a,o,!0).then(i=>{if(i&&!u){u=!0;let s=Date.now();je(wc,s),Je("mouse_hover_translate",[{name:"mouse_hover_translate"}],{...e,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function _p(e,t){return Ey(Hl,ql,e,t)}function Ey(e,t,n,a){let r=Gm(e,t,n,a);if(r==null)return;let u=()=>{let s=a.document.elementFromPoint(e,t);if(!s)return;let c=Vm(s,e,t);return c===s?s.nodeName==="BUTTON"?s:void 0:Fp(c,n)},o=()=>{try{r.setStartBefore(r.startContainer),r.setEndAfter(r.startContainer)}catch(c){U.debug("get mouse over word fail",c)}let s=r.getBoundingClientRect();if(!(s.left>e||s.rightt||s.bottomn[l]=[l,...n[l]||[]]);let a=t.inputStartingTriggerKeyAlias[t.inputStartingTriggerKey]||[];a.includes(t.inputStartingTriggerKey)||a.unshift(t.inputStartingTriggerKey),n[t.inputTargetLanguage]=[...a,...n[t.inputTargetLanguage]];let r=t.inputTrailingTriggerKeyTimeout;fa().any&&(r=t.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:t.inputTrailingTriggerKeyRepeatTimes,triggerKey:t.inputTrailingTriggerKey,triggerTimeout:r,codePrefix:t.inputStartingTriggerKey,codeAlias:n,flatAlias:Object.values(n).flat(),codePrefixAlias:t.inputStartingTriggerKeyAlias},o=0,i=Date.now();hi&&self.removeEventListener("keydown",hi),hi=s,self.addEventListener("keydown",hi);function s(l){if(xr||bi===!1)return;let m=l,g=m.target||m.srcElement,f=g?.tagName;(g?.isContentEditable||f=="INPUT"||f=="SELECT"||f=="TEXTAREA")&&(Ny(l,u.triggerKey,u.codePrefixAlias)?c(l):o=0)}async function c(l){Date.now()-i=u.triggerTimes&&ky()&&(o=0,vy(l,e,u))}jy(e)}function Ty({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let a=[],r=n[e]||[];r.includes(e)||r.unshift(e);for(let u of r){let o=t.map(i=>{let s=u+i;return r.includes(i)||(s+=" "),s});a.push(...o)}return new RegExp(a.join("|"))}function Rp(e,t){for(let[n,a]of Object.entries(t))if(a.includes(e))return n;return""}var Er;function Cy(e){let t=e.parentElement;if(!t)return;Er=document.createElement("div"),Er.className=J+"-input",Er.innerHTML=`
`,t.appendChild(Er);let n=t,a=!1;do{let r=getComputedStyle(n).position;if(["fixed","absolute","relative"].includes(r)){a=!0;break}n=n.parentElement}while(n);if(n=t,!a)do{if(getComputedStyle(n).position==="static"){n.style.position="relative";break}n=n?.parentElement||null}while(n)}function wy(){Er&&Er.remove()}async function vy(e,t,n){if(!xr)try{let g=function(){i=t.config.inputTargetLanguage;let d=o.split(" ")[0];d&&d[0]&&(d=d[0].toLowerCase()+d.slice(1)),d.trim()&&n.flatAlias.includes(d)?(i=Rp(d,n.codeAlias),u=o.slice(d.length+1)):u=o},f=function(){i="";let d=Ty(n),b=o.split(d);if(b.length<2)return;if(u=b[b.length-1],r=b[0],b.length>2){let h=o.lastIndexOf(u),C=o.slice(0,h).lastIndexOf(b[b.length-2]);r=o.slice(0,C+b[b.length-2].length)}if(r.endsWith(n.codePrefix))return;let T=o.slice(r.length+1,o.indexOf(u)).trim();if(i=Rp(T,n.codeAlias),!i){U.warn("not found alias",T);return}},a=document.activeElement;xr=!0;let r="",u="",o=Tr(a)||"",i=t.config.inputTargetLanguage;n.codePrefix==="none"?g():(f(),!i&&t.config.enableInputTranslationWithoutTriggerKey&&g());let s=Ay(u,n),c=await Ke({text:s,pageLangs:["en"]});U.debug("translateContent",s,c);let l={text:s||"",id:0,from:c,to:i,url:"https://google.com",fromByClient:c};if(!l.text)return;if(t.config.isShowInputTranslationConsent&&!Bp){Bp=!0;let d=await zy(t);if(e.target&&e.target.focus(),d==="open_settings"){br(!0,"#input");return}else if(d==="open_learn_more"){ai("https://immersivetranslate.com/docs/input/");return}else if(d==="disable_once"||d==="disable_forever"){if(bi=!1,d==="disable_forever"){let b=await ln();b.enableInputTranslation=!1,b.isShowInputTranslationConsent=!1,await sn(b)}else if(d==="disable_once"){let b=await ln();b.isShowInputTranslationConsent=!1,await sn(b)}return}else if(d==="close_disable_once"||d==="close_disable_forever"){if(bi=!1,d==="close_disable_forever"){let b=await ln();b.enableInputTranslation=!1,b.isShowInputTranslationConsent=!1,await sn(b)}return}else if(d==="enable"){let b=await ln();b.enableInputTranslation=!0,b.isShowInputTranslationConsent=!1,await sn(b)}else if(d==="close_enable"){let b=await ln();b.enableInputTranslation=!0,await sn(b)}}Cy(a),je(_i,Date.now());let m=await wa(l,{...t,translationService:t.inputTranslationService});Oy(t),Iy(a,r+m.text),xr=!1}catch(a){throw xr=!1,a}finally{xr=!1,wy()}}function ky(){let e=document.activeElement;if(!e)return!1;if(yi(e)){let t=e.selectionStart||0,n=e.value.length,r=e.value.split(` +`).reverse()[0].trim(),u=n<=t;return U.debug("cursorPosition",t,"textLength",n),U.debug("input isTail",u,"tailHasText",r),u&&!!r}else{let t=window.getSelection();if(!t)return U.debug("No active selection found."),!1;if(t.rangeCount>0){let n=t.getRangeAt(0),a=n.startContainer;if(a.nodeType===Node.TEXT_NODE){let r=Sy(a,e);U.debug("Current text node:",a.textContent),U.debug("Cursor position within text node:",n.startOffset);let u=a.textContent?.length===n.startOffset&&r,o=a.textContent?.trim();return U.debug("editdiv isTail",u,"tailHasText",o),u&&!!o}else U.debug("Cursor is not within a text node.")}}return!1}function Sy(e,t){let n;function a(r){if(r.nodeType===Node.TEXT_NODE)n=r;else for(let u of r.childNodes)a(u)}return a(t),n==e}function Ay(e,t){let{triggerTimes:n,triggerKey:a}=t,r=0,u=" ";a.length==1?(r=n,u=a):a.toLowerCase()=="space"&&(r=n);let o=e.length;for(let i=e.length-1;i>=e.length-r;i--){if([10,8629].includes(e[i].charCodeAt(0))){o--;continue}if(![...t.codePrefixAlias[a]||[],u].includes(e[i]))break;o--}return e.length-o<3&&[".","\u3002"].includes(e[o-1])&&o--,e.slice(0,o)}function Dy(e,t){let n=t.innerHTML,a=Tr(t);return{html:n.replace(a,e),text:e}}function Ip(e,t,n=!1){let a=Tr(t);return n?a.trim().endsWith(e.text.trim()):a.trim()==e.text.trim()}function Tr(e){return e.value||e.innerText||e.textContent}async function Fa(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function Ly(e,t,n){await Fa(10);let a=new DataTransfer;e.forEach(r=>{r==="plain"&&a.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:a,bubbles:!0,cancelable:!0})),a.clearData(),await Fa(10)}async function Py(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await Fa(10))}async function My(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await Fa(20),(t.value||t.value==="")&&(t.value=e.text)}async function Fy(e,t){yi(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await Fa(20))}var _y=[Ly.bind(null,["plain"])];function By(e){let t;yi(e)?t=new InputEvent("beforeinput",{bubbles:!0,cancelable:!0,inputType:"deleteContent"}):t=new KeyboardEvent("keydown",{bubbles:!0,cancelable:!0,keyCode:8,which:8,location:0,key:"Backspace"}),e.dispatchEvent(t)}function yi(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function Ry(e){if(yi(e))return;e.focus();let t=window.getSelection();if(!t)return;let n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}async function Iy(e,t){await Ry(e),await Fa(50);let n=Dy(t,e);By(e),U.debug("clearContent",Tr(e)),await Fa(50);for(let a of[..._y,My,Fy,Py])if(await a(n,e),U.debug("setContent",a.name,Ip(n,e),Tr(e),n),Ip(n,e))break}function Oy(e){Je("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage}}],e)}function Ny(e,t,n){let a="";e&&e.code&&(a=e.code.toLowerCase());let r="";e&&e.key&&(r=e.key.toLowerCase());let u=e.keyCode,o=n[t]||[];return u===229&&t!=="space"?!1:!!(o.includes(a)||o.includes(r)||a===t||r===t)}async function jy(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await At(t,"")||Number(await At(_i,0))>0)return;let r=e.rule.inputTutorialsSelectors,u=e.rule.inputTutorialsText;if((r?.length||0)>0&&u)for(let o=0;o{Hy()},100),new Promise(c=>{let l=c;if(u){let L=u.querySelector(`.${n}`),M=u.querySelector(`.${r}`),w=u.querySelector(`.${a}`)}else{u=document.createElement("div"),u.className=t+" notranslate",u.id=t;let L=document.createElement("div");L.className=J+"-modal-content notranslate",u.appendChild(L);let M=document.createElement("span");M.textContent="\xD7",M.className=J+"-close",L.appendChild(M),o=document.createElement("div"),o.className=n+" notranslate",L.appendChild(o),s=document.createElement("div"),s.className=a+" notranslate",L.appendChild(s),i=document.createElement("div"),i.className=r,L.appendChild(i),document.body.appendChild(u),M.onclick=function(){v(),c("close")},window.onclick=function(w){w.target==u&&(u.style.display="none",c("close"))}}document.addEventListener("keydown",x);let m=Uy.bind(null,e);o.innerHTML=`
${Ko} ${m("modalEnableInputTranslationTitle")}
`,s.innerHTML="";let g=document.createElement("p");g.innerHTML=m("modalEnableInputTranslationDesc",{1:"https://immersivetranslate.com/docs/input/"}),g.style.cssText="margin-bottom:12px",s.appendChild(g);let f=document.createElement("div");f.style.cssText="margin-bottom: 12px;",f.innerHTML=Le.sanitize(m("disableInputTranslationTips",{option:`${m("option")}`,learnMore:`${m("learnMore")}`})),s.appendChild(f);let d=[{id:"enable-search-enhancement",value:"enable",text:m("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:m("disableOnce")},{id:"disable-global",value:"global",text:m("disableGlobal")}];for(let L=0;L{In({sentences:r},{...e,translationService:"google"},(s,c,l)=>{if(s)return o([]);let m=c?.id||0,g=n[m];g&&g.className==J+"-search-title-wrapper"&&(g.innerHTML+=Le.sanitize(`
${c?.text}
`,{ADD_ATTR:["target"]}))})})}function xi(e,t,n){t&&Je(t.key,[{name:t.key}],{...e,sourceLanguage:t.sourceLanguage||n})}function $l(e,t,n,a){let r=n.querySelectorAll('[translate="true"]');return qy(e,t,[...r],a),n}async function Kl(e,t){let a=(await ie({url:Wy(e),method:"GET",responseType:"raw",headers:{"cache-control":"no-cache","content-type":"application/xml","Sec-Fetch-Site":"none",accept:"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}})).body,u=new DOMParser().parseFromString(a,"text/xml"),o=[],i=u.querySelectorAll("item");for(let s=0;s${e.cancelDescription}
`:""}

\u82F1\u6587\u641C\u7D22 - ${n} \u7684\u76F8\u5173\u65B0\u95FB:
+ ${n} \u7684\u76F8\u5173\u65B0\u95FB:

${o}
`.replaceAll(` -`,""),{ADD_ATTR:["target"]});let c=r.querySelector(`.${J}-search-more`);return c&&(c.onclick=()=>{let l=r.querySelector(`.${J}-expand-items`);l.style.display=="none"?(l.style.display="block",c.innerText="\u66F4\u591A\u76F8\u5173\u65B0\u95FB"):window.open(Op(n))}),r}function Np(e,t){let n=e.style;return t.map((a,r)=>{let u=a.title||"",o=a.source||"",i=u.split("-");return i.length>1&&(o=i[i.length-1].trim(),i=i.slice(0,i.length-1)),u=i.join("-"),u=u.trim(),`
${o}
+`,""),{ADD_ATTR:["target"]});let c=r.querySelector(`.${J}-search-more`);return c&&(c.onclick=()=>{let l=r.querySelector(`.${J}-expand-items`);l.style.display=="none"?(l.style.display="block",c.innerText="\u66F4\u591A\u76F8\u5173\u65B0\u95FB"):window.open(Np(n))}),r}function jp(e,t){let n=e.style;return t.map((a,r)=>{let u=a.title||"",o=a.source||"",i=u.split("-");return i.length>1&&(o=i[i.length-1].trim(),i=i.slice(0,i.length-1)),u=i.join("-"),u=u.trim(),`
${o}
-
${Xm(a.pubDate||"")}
+
${e3(a.pubDate||"")}
`}).join(` -`)}function zp(e,t){if(!e.keyword)return;let n=e.keyword.value||"";for(let a=0;anew RegExp(a.urlMatch).test(t))}async function Hp(e){if(fa().any)return;if(!e.rule.enableSearchEnhancement){U.debug("enable is false");return}let t=$y(e.rule.searchEnhancementConfig||[],e.url);if(!t){U.debug("not found siteConfig",e.url);return}let n=zp(t,e.url);if(!n){U.debug("not found keyword",e.url);return}t.id=="google"?Gy(e,t,n):Ky(e,t,n)}async function Ky(e,t,n){let a=await Ke({text:document.title,pageLangs:[ct(),"en"]});t.selector&&setTimeout(async()=>{let r=document.querySelector(t.selector);if(!r){U.debug("selector node not found",t.selector);return}let u=await Kl(n,t.showCount);if(u&&u.length<=0){U.debug("list not found");return}let o=await Gl(t,u,n,t.showCount);if(!o){U.debug("getInseredNode none");return}o.style.cssText=t.style.container||"";let i=t.selectorAction||"appendChild";i=="insertBefore"?r.parentElement?.insertBefore(o,r):i=="appendChild"?r.appendChild(o):i=="replace"&&r?.replaceWith(o),$l(e,t,o,a),xi(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a)},t.delayTime||0)}async function Gy(e,t,n){let a=await Ke({text:n,pageLangs:["en"]});if(xi(e,{key:"detect_search_action"},a),!["zh-CN","zh-TW"].includes(a))return;U.debug("use dual search");let r=!1;if(new URL(e.url).searchParams.get("tbm")==="nws")r=!0;else if(!Up(document.body))return;let o=document.querySelector("#rhs");if(!o){let i=document.querySelector("#rcnt");if(!i)return;let s=i.children;if(s&&s.length>1)o=s[1];else{let c=s[0];o=document.createElement("div"),o.id="rhs",o.style.maxWidth="372px",o.style.marginLeft="50px",i.insertBefore(o,c.nextSibling)}}if(r||Up(document.body)){U.debug("find story");let i=await jp(e,n,a);U.debug("enKeyword",i);let s=await Kl(i,t.showCount);if(U.debug("news list",s),s&&s.length<=0)return;let c=await Gl(t,s,i,t.showCount);if(!c)return;xi(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a),$l(e,t,c,a),o.insertBefore(c,o?.firstChild)}}function Up(e){let t=e.querySelectorAll("[aria-level='2'][role=heading]");if(!t)return!1;for(let n of t){let a=(n?.textContent||"").trim();if(a.indexOf("\u7126\u70B9\u65B0\u95FB")>=0||a.indexOf("\u7126\u9EDE\u65B0\u805E")>=0||a.indexOf("Top stories")>=0)return!0}return!1}p();function qp(e){e.state.translationMode="translation",lr(e)}var we=null,Ei={},Cr,Wp=!1;async function di(e){if(qe()==="Original"){let t={translationMode:void 0};Cr&&(t.translationTheme=Cr),we&&(t={...we.state,...t}),await Mt(ht(),t),await cn(we,e)}else(qe()==="Translated"||qe()==="Error")&&Fa()}async function mi(){if(we=await Mt(ht(),{}),we.rule.isEbookBuilder)return vp(we);if(we.rule.isSubtitleBuilder)return Cp(we);k3()}async function gi(e){if(qe()==="Original")we=await Mt(ht(),{}),Cr||(Cr=we.state.translationTheme),we=await Mt(ht(),{translationTheme:"mask"}),await cn(we,e);else if(qe()==="Translated"){let t=Jm().filter(r=>r.contentDocument?.body).map(r=>r.contentDocument.body),n=[we.mainFrame,...t],a=we?.state.translationTheme;for(let r of n){let u=tr(r,Na,!0);a==="mask"?u!=="none"?at(r,Na,"none",!0):at(r,Na,"mask",!0):u!=="mask"?at(r,Na,"mask",!0):at(r,Na,"none",!0)}}}async function Vl(){let e=await Mt(ht(),{});return e.rule.isSubtitleBuilder?Rl():v3(e)}function Vy(e){qe()==="Original"?qp(e):jn()}function Yy(e){qe()==="Original"?Tp(e):Il()}function Jy(e){qe()==="Original"?lr(e):jn()}async function Fa(){Jl("");let e=await Mt(ht(),{});if(e.rule.isSubtitleBuilder){Il();return}else e.rule.isEbookBuilder&&kp();jn()}async function cn(e,t){qe()!=="Original"&&await Fa(),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"translateStart",payload:{}})})),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"targetLanguage",payload:{targetLanguage:e.targetLanguage}})})),Ei[e.translationService]||(Ei[e.translationService]=!0,nt()||l0(e).catch(a=>{U.warn("init translation engine error",a)}));let n={};if(t&&t.trigger&&(n.trigger=t.trigger),Je("translage_page_daily",[{name:"translage_page_daily",params:n}],e),Je("translate_page",[{name:"translate_page",params:n}],{...e,sourceLanguage:ct()}),e.rule.isSubtitleBuilder)return Yy(e);if(e.rule.isEbookBuilder)return Sp(e);if(e.rule.isPdf)return Vy(e);Jy(e),Jl("yes")}async function $p(e){qe()==="Original"?await Ti(e):(qe()==="Translated"||qe()==="Error")&&(we=await Mt(ht(),{}),we.state.translationArea!=="main"?await Ti(e):Fa())}async function Ti(e){we=await Mt(ht(),{translationArea:"main"}),await cn(we,e)}async function Yl(e){we=await Mt(ht(),{translationArea:"body"}),await cn(we,e)}async function pi(e){if(qe()==="Original"){let t=await Mt(ht(),{translationMode:"translation"});await cn(t,e)}else(qe()==="Translated"||qe()==="Error")&&await Fa()}async function Kp(e){if(we=await Mt(ht(),{translationMode:void 0}),Je("switch_translation_mode",[{name:"switch_translation_mode",params:{mode:e}}],{...we,sourceLanguage:"unknown"}),qe()==="Original"){cn(we);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(e)}async function Gp(e){if(qe()==="Original")await Yl(e);else if(qe()==="Translated"||qe()==="Error"){let t={};we&&we.state&&(t=we.state),we=await Mt(ht(),t),we.state.translationArea!=="body"?(we.state.translationArea="body",we=await Mt(ht(),we.state),await cn(we,e)):Fa()}}async function Vp(e){we=await Mt(ht(),{translationStartMode:"immediate"}),await cn(we,e)}async function pp(){let e=await Mt(ht(),{});if(U.debug("init page ctx",e),e.rule.isSubtitleBuilder){Rl();return}if(e.rule.isEbookBuilder){wp();return}if(Hp(e),Cr||(Cr=e.state.translationTheme),e.rule.urlChangeDelay&&await Dr(e.rule.urlChangeDelay),e.rule.waitForSelectors&&e.rule.waitForSelectors.length>0&&await Qy(e.rule.waitForSelectors,e.rule.waitForSelectorsTimeout),e.rule.isInjectOptionsUrl){let a=Jp(),r=document.createElement("meta");r.name="immersive-translate-options-url",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(u){U.warn("inject options url failed",u)}}if(e.rule.isInjectVersion){let a=an(),r=document.createElement("meta");r.name="immersive-translate-version",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(u){U.warn("inject version failed",u)}}if(e.rule.globalMeta&&Object.keys(e.rule.globalMeta).forEach(r=>{let u=document.createElement("meta");u.name=r,u.content=e.rule.globalMeta[r],document.head.appendChild(u)}),e.rule.initialGlobalAttributes&&n3(document.body,e.rule.initialGlobalAttributes),e.rule.isPdf){cn(e);return}if(e.rule.isOnBoardingPage){document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"currentConfig",payload:{enableDefaultAlwaysTranslatedUrls:!!e.config.enableDefaultAlwaysTranslatedUrls}})}));let a=document.querySelector("#immersiveTranslateEnableDefaultAlwaysTranslatedUrlsValue");a&&(a.value="helloworld",a.value=String(!!e.config.enableDefaultAlwaysTranslatedUrls),a.dispatchEvent(new Event("change")))}Wp||(Wp=!0,globalThis.top!==globalThis.self&&e.rule.useIframePostMessage&&await Ad());let t=e.sourceLanguage;if(t==="auto"?t=await Vl():rn(t),e.rule.isInjectMeta)try{let a=await e3(t),r=document.createElement("meta");r.name="immersive-translate-meta",r.content=Gi(JSON.stringify(a)),document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(a){U.warn("inject meta failed",a)}let n=e.state.isAutoTranslate||e.isTranslateUrl||e.rule.isPdf;if(!n&&!e.isTranslateExcludeUrl&&(U.debug(`detect page language: ${e.url} ${t}`),$n(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto"||Dd(t,e.config.translationLanguagePattern)&&(n=!0,U.debug(`match language pattern ${t}, auto translate`))),e.rule.isEbookBuilder&&(n=!1),!e.rule.isPdf&&Rr()&&fi(e,window),n)we.state.isAutoTranslate=!0,cn(we);else if(U.debug("do not auto translate",e),e.rule.initTranslationServiceAsSoonAsPossible&&e.translationService==="deepl"){if($n(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto")return;e.config&&e.config.translationServices&&e.config.translationServices.deepl&&e.config.translationServices.deepl.authKey&&typeof e.config.translationServices.deepl.authKey=="string"&&e.config.translationServices.deepl.authKey.startsWith("immersive_")&&(Ei[e.translationService]||(Ei[e.translationService]=!0,nt()||l0(e).catch(a=>{U.warn("init translation engine error",a)})))}}async function Mt(e,t){let n=Object.keys(t);if(we){let a={url:e,config:we.config,state:{...we.state,...t}};we=await ka(a)}else{let a=await En(),r=t;n.length===0&&(r=void 0),we=await ka({url:e,config:a,state:r})}return we}async function Yp(){let e=await En(),t;we&&we.state&&(t=we.state);let n={url:ht(),config:e,state:t},a=await ka(n);we=a;let r=Mo(),u=[];return r?u=r.allInlineWindows||[window]:u=[window],u.forEach(o=>{dp(a,o),Rr()&&fi(a,o),Ip(a)}),a}function Qy(e,t=3e3){return new Promise((n,a)=>{let r=t?setTimeout(()=>{n(new Error("timeout"))},t):void 0,u=setInterval(()=>{e.every(i=>document.querySelector(i)!==null)&&(clearInterval(u),r&&clearTimeout(r),n(null))},50)})}async function fp(e){let t=e.detail;Nt.set(en,t);let n=await Nt.get(Oi,!1);Nt.set(Oi,!1),document.dispatchEvent(new CustomEvent("immersiveTranslateDocumentMessageUserResult",{detail:n?"close":"success"}))}function hp(e){U.debug("update user info",e);let t=e.detail;Nt.set(en,t)}async function bp(e){let t=await ln();if(t.translationService)return;let n=e.config.translationService,a=["bing","transmart","google"];a.sort((u,o)=>u===n?-1:o===n?1:0);let r=await _m(a,e);if(!r){Ur("no_avaliable_translation_service",[{name:"no_avaliable_translation_service"}]);return}e.translationService!==r&&(t.translationService=r,sn(t),e.translationService=r,Ur("change_default_translation_service",[{name:"change_default_translation_service",params:{translation_service:r}}]))}var mr=async function(e,t){let{method:n,data:a}=e,r=await Yp(),u=Date.now();if(U.debug(`content script received message: ${n}`,a||" "),n==="translateTheWholePage")await Yl(a),je(mn,u);else if(n==="translateTheMainPage")await Ti(a),je(mn,u);else if(n==="translateToThePageEndImmediately")await Vp(a),je(mn,u);else if(n==="toggleTranslatePage")await di(a),je(mn,u);else if(n==="toggleTranslateTheWholePage")await Gp(a),je(mn,u);else if(n==="toggleTranslateTheMainPage")await $p(a),je(mn,u);else if(n==="toggleOnlyTransation")await pi(a),je(mn,u);else if(n==="translatePage")await cn(r,a),je(mn,u);else if(n==="toggleTranslationMask")await gi(a);else if(n==="restorePage")Fa();else if(n==="setCurrentPageLanguageByClient")rn(a);else if(n==="retryFailedParagraphs")mi();else if(n==="switchTranslationMode"){if(r.rule.isPdf)return;a&&a.mode&&Kp(a.mode)}},Zy=function(e,t){let{method:n,data:a}=e;if(U.debug(`content script received sync message: ${n}`,a||" "),n==="ping")return"pong";if(n==="getPageStatus")return qe();if(n==="getCurrentPageLanguage"){let r=ct();return Vl().catch(u=>{U.warn("detectCurrentPageLanguage failed",u)}),r}},Ci,wi;function yp(){let e=vi();nt()||Xy(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function vi(){return Ci||(Ci=new Vn("content_script",!1).getConnection("main",mr),Ci)}function Xy(){return wi||(wi=new Vn("content_script",!1).getConnection("main_sync",Zy,{sync:!0}),wi)}async function Ve(e){return await vi().sendMessage("background:main",e)}function ie(e){return Tu()?Gu({method:"request",data:e}):he()||Eu()?(e.fetchPolyfill=globalThis.GM_fetch,ha(e)):Ve({method:"fetch",data:e})}function En(){return he()?Ka():Ve({method:"getConfig"})}function sn(e){return he()?Cs(e):Ve({method:"setUserConfig",data:e})}function ln(){return he()?Ts():Ve({method:"getUserConfig"})}function np(){return he()?Jn():Ve({method:"getLocalConfig"})}function ti(e){return he()?kn(e):Ve({method:"setLocalConfig",data:e})}function Kg(e){return he()?dd(e):Ve({method:"setBuildinConfig",data:e})}async function Ke(e){if(e.text){let n=Ku(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(he()||Zt()){let n=ed(e.text,e.minLength,e.pageLangs);return Promise.resolve(n)}let t=await Ve({method:"detectLanguage",data:e});return Promise.resolve(t)}function S3(){return Ve({method:"detectTabLanguage"})}function x3(e){if(he()){let n=new CustomEvent(ku,{detail:e});document.dispatchEvent(n);return}vi().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(n=>{})}function Bm(e){return he()?xd(e):Ve({method:"queryParagraphCache",data:e})}async function Rm(e){if(he()){await yd(e);return}return Ve({method:"setParagraphCache",data:e})}async function Jd(){if(he())return Promise.resolve();await Ve({method:"mockRequest"})}function br(e=!1,t=""){return he()?(se.runtime.openOptionsPage(e,t),Promise.resolve()):Ve({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function Jp(e=""){return he()||Zt()?Qe().OPTIONS_URL:se.runtime.getURL("options.html")}function ug(e=""){return se&&se.runtime&&se.runtime.getURL?se.runtime.getURL("options.html"):""}function ni(e=!1){return he()?(se.extra.openAboutPage(e),Promise.resolve()):Ve({method:"openAboutPage"})}function xp(e=!1){return he()?(se.extra.openSearchEnhancement(e),Promise.resolve()):Ve({method:"openSearchEnhancement"})}function ai(e){return he()?(se.extra.openInTab(e),Promise.resolve()):Ve({method:"openInTab",data:e})}function ri(e=!1){return he()?(se.extra.openEbookViewerPage(e),Promise.resolve()):Ve({method:"openEbookViewerPage"})}function Gg(e=!1){return he()?Promise.resolve():Ve({method:"openHtmlViewerPage"})}function ui(e=!1){return he()?(se.extra.openEbookBuilderPage(e),Promise.resolve()):Ve({method:"openEbookBuilderPage"})}function Ep(e){Zt()}function Cl(e=!1){return he()?(se.extra.openPdfViewerPage(e),Promise.resolve()):Ve({method:"openPdfViewerPage"})}function Vg(e=!1){return he()?(se.extra.openSubtitleBuilderPage(e),Promise.resolve()):Ve({method:"openSubtitleBuilderPage"})}function Jl(e){return he()?Promise.resolve():Ve({method:"setBadge",data:{text:e}})}function cg(){return he()?(U.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):Ve({method:"autoSyncLatestConfig"})}p();function Zp(e,t){let n=e.pageWidth*e.scale,a=e.prevPageParagraphs||[];if(a.length<=0||t.length<=0)return{};let r=a[a.length-1];if(!r)return{};let u=n-r.right,o=t.find(i=>We(i.left,u)&&We(i.width,r.width));return{prevP:r,curP:o}}function Xp(e){return e?e==e[0].repeat(e.length):!0}function We(e,t,n=5){return Math.abs(e-t)<=n}var Ql=[",","\\.","\uFF0C","\u3002"];function ef(e,t){let n=e.prevGroup;if(!n)return!1;let a=n[n.length-1],r=t[0];return We(a.left,r.left,7)&&We(a.nextTop,r.top,10)&&ki(a,r)}function tf({prevLineP:e,justify:t},n){return t&&n.left>e.left&&n.bottomt.right}function uf(e,t){let n=e.justify;return n?t.top>n.top&&t.left>n.left&&t.right<=n.right+1&&t.fontSize<=n.fontSize+1:!1}function of({prevLineP:e,prevP:t},n){return We(e.left,n.left,1)&&We(e.right,t.right,1)&&t.mergedTimes>=1}function Zl(e,t){let{prevLineP:n}=e;return uf(e,t)&&(We(n.bottom,t.bottom)||We(n.nextTop,t.top)&&We(n.left,t.left))}function sf(e,t){let{prevLineP:n,prevP:a,scale:r}=e;return uf(e,t)&&n.width0&&a/r<.1&&n.left=n&&We(t.nextLeft,a,t.fontSize*e)}function ki(e,{fontSize:t,fontName:n},a=!1){return a?We(e.fontSize,t,1)&&e.fontName==n:We(e.fontSize,t,1)}function e5(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}function pf(e){let n=e5([1,0,0,-1,-0,0],e);return Math.atan2(n[1],n[0])}var Qp=0;async function ff(e=60){if(Qp>e)return;if(Qp++,await t5(300),!document.querySelector("meta[name='immersive-translate-version']"))return await ff(e)}async function t5(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}async function hf(e){await ff(),document.dispatchEvent(new CustomEvent("immersiveTranslateDocumentMessageEventUpload",{detail:{name:e}}))}function yf(e,t){let n=[],a=a5(e,t);return r5(e,a).forEach(u=>{if(!(u.length<=0)){if(u.length==1){bf(e,n,u[0],!0);return}n.push(`
`),n.push('
'),n.push('
'),u.forEach(o=>{bf(e,n,o,!1)}),n.push("
")}}),` +`)}function Up(e,t){if(!e.keyword)return;let n=e.keyword.value||"";for(let a=0;anew RegExp(a.urlMatch).test(t))}async function qp(e){if(fa().any)return;if(!e.rule.enableSearchEnhancement){U.debug("enable is false");return}let t=$y(e.rule.searchEnhancementConfig||[],e.url);if(!t){U.debug("not found siteConfig",e.url);return}let n=Up(t,e.url);if(!n){U.debug("not found keyword",e.url);return}t.id=="google"?Gy(e,t,n):Ky(e,t,n)}async function Ky(e,t,n){let a=await Ke({text:document.title,pageLangs:[ct(),"en"]});t.selector&&setTimeout(async()=>{let r=document.querySelector(t.selector);if(!r){U.debug("selector node not found",t.selector);return}let u=await Kl(n,t.showCount);if(u&&u.length<=0){U.debug("list not found");return}let o=await Gl(t,u,n,t.showCount);if(!o){U.debug("getInseredNode none");return}o.style.cssText=t.style.container||"";let i=t.selectorAction||"appendChild";i=="insertBefore"?r.parentElement?.insertBefore(o,r):i=="appendChild"?r.appendChild(o):i=="replace"&&r?.replaceWith(o),$l(e,t,o,a),xi(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a)},t.delayTime||0)}async function Gy(e,t,n){let a=await Ke({text:n,pageLangs:["en"]});if(xi(e,{key:"detect_search_action"},a),!["zh-CN","zh-TW"].includes(a))return;U.debug("use dual search");let r=!1;if(new URL(e.url).searchParams.get("tbm")==="nws")r=!0;else if(!Hp(document.body))return;let o=document.querySelector("#rhs");if(!o){let i=document.querySelector("#rcnt");if(!i)return;let s=i.children;if(s&&s.length>1)o=s[1];else{let c=s[0];o=document.createElement("div"),o.id="rhs",o.style.maxWidth="372px",o.style.marginLeft="50px",i.insertBefore(o,c.nextSibling)}}if(r||Hp(document.body)){U.debug("find story");let i=await zp(e,n,a);U.debug("enKeyword",i);let s=await Kl(i,t.showCount);if(U.debug("news list",s),s&&s.length<=0)return;let c=await Gl(t,s,i,t.showCount);if(!c)return;xi(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a),$l(e,t,c,a),o.insertBefore(c,o?.firstChild)}}function Hp(e){let t=e.querySelectorAll("[aria-level='2'][role=heading]");if(!t)return!1;for(let n of t){let a=(n?.textContent||"").trim();if(a.indexOf("\u7126\u70B9\u65B0\u95FB")>=0||a.indexOf("\u7126\u9EDE\u65B0\u805E")>=0||a.indexOf("Top stories")>=0)return!0}return!1}p();function Wp(e){e.state.translationMode="translation",lr(e)}var we=null,Ei={},Cr,$p=!1;async function di(e){if(qe()==="Original"){let t={translationMode:void 0};Cr&&(t.translationTheme=Cr),we&&(t={...we.state,...t}),await Mt(ht(),t),await cn(we,e)}else(qe()==="Translated"||qe()==="Error")&&_a()}async function mi(){if(we=await Mt(ht(),{}),we.rule.isEbookBuilder)return kp(we);if(we.rule.isSubtitleBuilder)return wp(we);S3()}async function gi(e){if(qe()==="Original")we=await Mt(ht(),{}),Cr||(Cr=we.state.translationTheme),we=await Mt(ht(),{translationTheme:"mask"}),await cn(we,e);else if(qe()==="Translated"){let t=Qm().filter(r=>r.contentDocument?.body).map(r=>r.contentDocument.body),n=[we.mainFrame,...t],a=we?.state.translationTheme;for(let r of n){let u=tr(r,ja,!0);a==="mask"?u!=="none"?at(r,ja,"none",!0):at(r,ja,"mask",!0):u!=="mask"?at(r,ja,"mask",!0):at(r,ja,"none",!0)}}}async function Vl(){let e=await Mt(ht(),{});return e.rule.isSubtitleBuilder?Rl():k3(e)}function Vy(e){qe()==="Original"?Wp(e):jn()}function Yy(e){qe()==="Original"?Cp(e):Il()}function Jy(e){qe()==="Original"?lr(e):jn()}async function _a(){Jl("");let e=await Mt(ht(),{});if(e.rule.isSubtitleBuilder){Il();return}else e.rule.isEbookBuilder&&Sp();jn()}async function cn(e,t){qe()!=="Original"&&await _a(),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"translateStart",payload:{}})})),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"targetLanguage",payload:{targetLanguage:e.targetLanguage}})})),Ei[e.translationService]||(Ei[e.translationService]=!0,nt()||l0(e).catch(a=>{U.warn("init translation engine error",a)}));let n={};if(t&&t.trigger&&(n.trigger=t.trigger),Je("translage_page_daily",[{name:"translage_page_daily",params:n}],e),Je("translate_page",[{name:"translate_page",params:n}],{...e,sourceLanguage:ct()}),e.rule.isSubtitleBuilder)return Yy(e);if(e.rule.isEbookBuilder)return Ap(e);if(e.rule.isPdf)return Vy(e);Jy(e),Jl("yes")}async function Kp(e){qe()==="Original"?await Ti(e):(qe()==="Translated"||qe()==="Error")&&(we=await Mt(ht(),{}),we.state.translationArea!=="main"?await Ti(e):_a())}async function Ti(e){we=await Mt(ht(),{translationArea:"main"}),await cn(we,e)}async function Yl(e){we=await Mt(ht(),{translationArea:"body"}),await cn(we,e)}async function pi(e){if(qe()==="Original"){let t=await Mt(ht(),{translationMode:"translation"});await cn(t,e)}else(qe()==="Translated"||qe()==="Error")&&await _a()}async function Gp(e){if(we=await Mt(ht(),{translationMode:void 0}),Je("switch_translation_mode",[{name:"switch_translation_mode",params:{mode:e}}],{...we,sourceLanguage:"unknown"}),qe()==="Original"){cn(we);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(e)}async function Vp(e){if(qe()==="Original")await Yl(e);else if(qe()==="Translated"||qe()==="Error"){let t={};we&&we.state&&(t=we.state),we=await Mt(ht(),t),we.state.translationArea!=="body"?(we.state.translationArea="body",we=await Mt(ht(),we.state),await cn(we,e)):_a()}}async function Yp(e){we=await Mt(ht(),{translationStartMode:"immediate"}),await cn(we,e)}async function fp(){let e=await Mt(ht(),{});if(U.debug("init page ctx",e),e.rule.isSubtitleBuilder){Rl();return}if(e.rule.isEbookBuilder){vp();return}if(qp(e),Cr||(Cr=e.state.translationTheme),e.rule.urlChangeDelay&&await Dr(e.rule.urlChangeDelay),e.rule.waitForSelectors&&e.rule.waitForSelectors.length>0&&await Qy(e.rule.waitForSelectors,e.rule.waitForSelectorsTimeout),e.rule.isInjectOptionsUrl){let a=Qp(),r=document.createElement("meta");r.name="immersive-translate-options-url",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(u){U.warn("inject options url failed",u)}}if(e.rule.isInjectVersion){let a=an(),r=document.createElement("meta");r.name="immersive-translate-version",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(u){U.warn("inject version failed",u)}}if(e.rule.globalMeta&&Object.keys(e.rule.globalMeta).forEach(r=>{let u=document.createElement("meta");u.name=r,u.content=e.rule.globalMeta[r],document.head.appendChild(u)}),e.rule.initialGlobalAttributes&&a3(document.body,e.rule.initialGlobalAttributes),e.rule.isPdf){cn(e);return}if(e.rule.isOnBoardingPage){document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"currentConfig",payload:{enableDefaultAlwaysTranslatedUrls:!!e.config.enableDefaultAlwaysTranslatedUrls}})}));let a=document.querySelector("#immersiveTranslateEnableDefaultAlwaysTranslatedUrlsValue");a&&(a.value="helloworld",a.value=String(!!e.config.enableDefaultAlwaysTranslatedUrls),a.dispatchEvent(new Event("change")))}$p||($p=!0,globalThis.top!==globalThis.self&&e.rule.useIframePostMessage&&await Dd());let t=e.sourceLanguage;if(t==="auto"?t=await Vl():rn(t),e.rule.isInjectMeta)try{let a=await t3(t),r=document.createElement("meta");r.name="immersive-translate-meta",r.content=Gi(JSON.stringify(a)),document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(a){U.warn("inject meta failed",a)}let n=e.state.isAutoTranslate||e.isTranslateUrl||e.rule.isPdf;if(!n&&!e.isTranslateExcludeUrl&&(U.debug(`detect page language: ${e.url} ${t}`),$n(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto"||Ld(t,e.config.translationLanguagePattern)&&(n=!0,U.debug(`match language pattern ${t}, auto translate`))),e.rule.isEbookBuilder&&(n=!1),!e.rule.isPdf&&Rr()&&fi(e,window),n)we.state.isAutoTranslate=!0,cn(we);else if(U.debug("do not auto translate",e),e.rule.initTranslationServiceAsSoonAsPossible&&e.translationService==="deepl"){if($n(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto")return;e.config&&e.config.translationServices&&e.config.translationServices.deepl&&e.config.translationServices.deepl.authKey&&typeof e.config.translationServices.deepl.authKey=="string"&&e.config.translationServices.deepl.authKey.startsWith("immersive_")&&(Ei[e.translationService]||(Ei[e.translationService]=!0,nt()||l0(e).catch(a=>{U.warn("init translation engine error",a)})))}}async function Mt(e,t){let n=Object.keys(t);if(we){let a={url:e,config:we.config,state:{...we.state,...t}};we=await Sa(a)}else{let a=await En(),r=t;n.length===0&&(r=void 0),we=await Sa({url:e,config:a,state:r})}return we}async function Jp(){let e=await En(),t;we&&we.state&&(t=we.state);let n={url:ht(),config:e,state:t},a=await Sa(n);we=a;let r=Mo(),u=[];return r?u=r.allInlineWindows||[window]:u=[window],u.forEach(o=>{mp(a,o),Rr()&&fi(a,o),Op(a)}),a}function Qy(e,t=3e3){return new Promise((n,a)=>{let r=t?setTimeout(()=>{n(new Error("timeout"))},t):void 0,u=setInterval(()=>{e.every(i=>document.querySelector(i)!==null)&&(clearInterval(u),r&&clearTimeout(r),n(null))},50)})}async function hp(e){let t=e.detail;jt.set(Ot,t);let n=await jt.get(Oi,!1);jt.set(Oi,!1),document.dispatchEvent(new CustomEvent("immersiveTranslateDocumentMessageUserResult",{detail:n?"close":"success"}))}function bp(e){U.debug("update user info",e);let t=e.detail;jt.set(Ot,t)}async function yp(e){let t=await ln();if(t.translationService)return;let n=e.config.translationService,a=["bing","transmart","google"];a.sort((u,o)=>u===n?-1:o===n?1:0);let r=await Bm(a,e);if(!r){Ur("no_avaliable_translation_service",[{name:"no_avaliable_translation_service"}]);return}e.translationService!==r&&(t.translationService=r,sn(t),e.translationService=r,Ur("change_default_translation_service",[{name:"change_default_translation_service",params:{translation_service:r}}]))}var mr=async function(e,t){let{method:n,data:a}=e,r=await Jp(),u=Date.now();if(U.debug(`content script received message: ${n}`,a||" "),n==="translateTheWholePage")await Yl(a),je(mn,u);else if(n==="translateTheMainPage")await Ti(a),je(mn,u);else if(n==="translateToThePageEndImmediately")await Yp(a),je(mn,u);else if(n==="toggleTranslatePage")await di(a),je(mn,u);else if(n==="toggleTranslateTheWholePage")await Vp(a),je(mn,u);else if(n==="toggleTranslateTheMainPage")await Kp(a),je(mn,u);else if(n==="toggleOnlyTransation")await pi(a),je(mn,u);else if(n==="translatePage")await cn(r,a),je(mn,u);else if(n==="toggleTranslationMask")await gi(a);else if(n==="restorePage")_a();else if(n==="setCurrentPageLanguageByClient")rn(a);else if(n==="retryFailedParagraphs")mi();else if(n==="switchTranslationMode"){if(r.rule.isPdf)return;a&&a.mode&&Gp(a.mode)}},Zy=function(e,t){let{method:n,data:a}=e;if(U.debug(`content script received sync message: ${n}`,a||" "),n==="ping")return"pong";if(n==="getPageStatus")return qe();if(n==="getCurrentPageLanguage"){let r=ct();return Vl().catch(u=>{U.warn("detectCurrentPageLanguage failed",u)}),r}},Ci,wi;function xp(){let e=vi();nt()||Xy(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function vi(){return Ci||(Ci=new Vn("content_script",!1).getConnection("main",mr),Ci)}function Xy(){return wi||(wi=new Vn("content_script",!1).getConnection("main_sync",Zy,{sync:!0}),wi)}async function Ve(e){return await vi().sendMessage("background:main",e)}function ie(e){return Eu()?Ku({method:"request",data:e}):fe()||xu()?(e.fetchPolyfill=globalThis.GM_fetch,ba(e)):Ve({method:"fetch",data:e})}function En(){return fe()?Ka():Ve({method:"getConfig"})}function sn(e){return fe()?Cs(e):Ve({method:"setUserConfig",data:e})}function ln(){return fe()?Ts():Ve({method:"getUserConfig"})}function ap(){return fe()?Jn():Ve({method:"getLocalConfig"})}function ti(e){return fe()?kn(e):Ve({method:"setLocalConfig",data:e})}function Gg(e){return fe()?md(e):Ve({method:"setBuildinConfig",data:e})}async function Ke(e){if(e.text){let n=$u(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(fe()||Xt()){let n=ed(e.text,e.minLength,e.pageLangs);return Promise.resolve(n)}let t=await Ve({method:"detectLanguage",data:e});return Promise.resolve(t)}function A3(){return Ve({method:"detectTabLanguage"})}function E3(e){if(fe()){let n=new CustomEvent(vu,{detail:e});document.dispatchEvent(n);return}vi().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(n=>{})}function Rm(e){return fe()?Ed(e):Ve({method:"queryParagraphCache",data:e})}async function Im(e){if(fe()){await xd(e);return}return Ve({method:"setParagraphCache",data:e})}async function Qd(){if(fe())return Promise.resolve();await Ve({method:"mockRequest"})}function br(e=!1,t=""){return fe()?(se.runtime.openOptionsPage(e,t),Promise.resolve()):Ve({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function Qp(e=""){return fe()||Xt()?Qe().OPTIONS_URL:se.runtime.getURL("options.html")}function og(e=""){return se&&se.runtime&&se.runtime.getURL?se.runtime.getURL("options.html"):""}function ni(e=!1){return fe()?(se.extra.openAboutPage(e),Promise.resolve()):Ve({method:"openAboutPage"})}function Ep(e=!1){return fe()?(se.extra.openSearchEnhancement(e),Promise.resolve()):Ve({method:"openSearchEnhancement"})}function ai(e){return fe()?(se.extra.openInTab(e),Promise.resolve()):Ve({method:"openInTab",data:e})}function ri(e=!1){return fe()?(se.extra.openEbookViewerPage(e),Promise.resolve()):Ve({method:"openEbookViewerPage"})}function Vg(e=!1){return fe()?Promise.resolve():Ve({method:"openHtmlViewerPage"})}function ui(e=!1){return fe()?(se.extra.openEbookBuilderPage(e),Promise.resolve()):Ve({method:"openEbookBuilderPage"})}function Tp(e){Xt()}function Cl(e=!1){return fe()?(se.extra.openPdfViewerPage(e),Promise.resolve()):Ve({method:"openPdfViewerPage"})}function Yg(e=!1){return fe()?(se.extra.openSubtitleBuilderPage(e),Promise.resolve()):Ve({method:"openSubtitleBuilderPage"})}function Jl(e){return fe()?Promise.resolve():Ve({method:"setBadge",data:{text:e}})}function dg(){return fe()?(U.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):Ve({method:"autoSyncLatestConfig"})}p();function Xp(e,t){let n=e.pageWidth*e.scale,a=e.prevPageParagraphs||[];if(a.length<=0||t.length<=0)return{};let r=a[a.length-1];if(!r)return{};let u=n-r.right,o=t.find(i=>We(i.left,u)&&We(i.width,r.width));return{prevP:r,curP:o}}function ef(e){return e?e==e[0].repeat(e.length):!0}function We(e,t,n=5){return Math.abs(e-t)<=n}var Ql=[",","\\.","\uFF0C","\u3002"];function tf(e,t){let n=e.prevGroup;if(!n)return!1;let a=n[n.length-1],r=t[0];return We(a.left,r.left,7)&&We(a.nextTop,r.top,10)&&ki(a,r)}function nf({prevLineP:e,justify:t},n){return t&&n.left>e.left&&n.bottomt.right}function of(e,t){let n=e.justify;return n?t.top>n.top&&t.left>n.left&&t.right<=n.right+1&&t.fontSize<=n.fontSize+1:!1}function sf({prevLineP:e,prevP:t},n){return We(e.left,n.left,1)&&We(e.right,t.right,1)&&t.mergedTimes>=1}function Zl(e,t){let{prevLineP:n}=e;return of(e,t)&&(We(n.bottom,t.bottom)||We(n.nextTop,t.top)&&We(n.left,t.left))}function lf(e,t){let{prevLineP:n,prevP:a,scale:r}=e;return of(e,t)&&n.width0&&a/r<.1&&n.left=n&&We(t.nextLeft,a,t.fontSize*e)}function ki(e,{fontSize:t,fontName:n},a=!1){return a?We(e.fontSize,t,1)&&e.fontName==n:We(e.fontSize,t,1)}function e5(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}function ff(e){let n=e5([1,0,0,-1,-0,0],e);return Math.atan2(n[1],n[0])}var Zp=0;async function hf(e=60){if(Zp>e)return;if(Zp++,await t5(300),!document.querySelector("meta[name='immersive-translate-version']"))return await hf(e)}async function t5(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}async function bf(e){await hf(),document.dispatchEvent(new CustomEvent("immersiveTranslateDocumentMessageEventUpload",{detail:{name:e}}))}function xf(e,t){let n=[],a=a5(e,t);return r5(e,a).forEach(u=>{if(!(u.length<=0)){if(u.length==1){yf(e,n,u[0],!0);return}n.push(`
`),n.push('
'),n.push('
'),u.forEach(o=>{yf(e,n,o,!1)}),n.push("
")}}),`
${n.join("")} -
`}function bf(e,t,n,a=!0){if(n.length<=0)return;let{pageWidth:r,pageHeight:u,scale:o}=e,i=a?"":"position:relative;",s=`${(n[0].width*100/(r*o)).toFixed(2)}%`,c=`${(100-n[0].left*100/(r*o)).toFixed(2)}%`;n.forEach(l=>{if(!l.str)return;let m=l.mergedTimes>0?`${(l.width*100/(r*o)+1).toFixed(2)}%`:"auto",g=`${(l.left*100/(r*o)).toFixed(2)}%`,f=`${(l.top*100/(u*o)).toFixed(2)}%`,d=R4()&&l.fontSize<7?` transform: scale(${l.fontSize/7}); `:"",b=l.angle?` transform: rotate(${l.angle}deg); transform-origin: 0 0;`:"",T=`calc(var(--scale-factor)*var(--font-scale)*${Math.min(l.fontSize-1,24)}px)`,h=`${l.originFontName},${l.fontName},serif`;a&&(i=`position: absolute;left: ${g};top: ${f};width:${m};max-width:${c};min-width:${s};`,!d&&l.mergedTimes>1&&(i+=`height:${(l.bottom-l.top)*1.05}px;overflow:auto;`));let C=l.str;l.translateStatus=="success"&&(C=l.translatedStr),t.push(`
`),a&&(t.push('
'),t.push('
')),t.push(`

${C}

`),t.push("
")})}function n5(e,t){let{pageWidth:n,pageHeight:a,scale:r}=e,u=t[0][0],o=u.width,i=u.top,s=t[t.length-1][t[t.length-1].length-1].bottom;t.forEach(g=>{g[0].width>o&&(o=g[0].width)});let c=`${(o*100/(n*r)).toFixed(2)}%`,l=`${(u.left*100/(n*r)).toFixed(2)}%`,m=`${(u.top*100/(a*r)).toFixed(2)}%`;return`position:absolute;width:${c};left:${l};top:${m};height:${s-i}px;overflow:auto;`}function a5(e,t){let n=[];return t.forEach((a,r)=>{if(r==0){n.push([a]);return}let u=n[n.length-1][0];if(e.prevLineP=u,Xl(e,a)){n[n.length-1].push(a);return}n.push([a])}),n}function r5(e,t){let n=[];return t.forEach((a,r)=>{if(r==0||a.length>1){n.push([a]);return}let u=n[n.length-1];if(e.prevGroup=u[u.length-1],ef(e,a)){u.push(a);return}n.push([a])}),n}function u5(e){let{pageWidth:t,pageHeight:n}=e,a=`calc(var(--scale-factor) * ${t}px)`,r=`calc(var(--scale-factor) * ${n}px)`;return`width:${a};height:${r};`}p();var xf="immersive-translate";async function Ef(e,t,n,a){let r=e.querySelector(".canvasWrapper"),u=e.querySelector(".textLayer");if(!r||!u)return;let o=r.cloneNode(!0),i=u.cloneNode(!0);o.classList.add("image-mode"),i.classList.add("image-mode"),t.appendChild(o),t.appendChild(i);let s=t.querySelector(".textLayer");s&&s.classList.add(`${xf}-text-layer-image-mode`);let c=t.querySelector("canvas");c&&(c.setAttribute("style",e.getAttribute("style")||""),await Tf(c,n,a))}async function Tf(e,t,n){let a=globalThis.PDFViewerApplication;if(!a)return;let r=await a.pdfDocument.getPage(t),u=e.getContext("2d");if(!u)return;let o=r.getViewport({scale:n});e.height=o.height,e.width=o.width,u.strokeText=function(){},u.fillText=function(){};let i={canvasContext:u,viewport:o};r.render(i)}async function Cf(e){let t=document.querySelectorAll(`.${xf}-page`);for(let n of t){let a=n.getAttribute("data-page-number");if(!a)return;let r=parseInt(a),u=n.querySelector("canvas");if(!u)return;await Tf(u,r,e*ec.PDF_TO_CSS_UNITS)}}var ec=class{static CSS=96;static PDF=72;static PDF_TO_CSS_UNITS=this.CSS/this.PDF};p();var tc="immersive-translate-pdf-user-config",bu={lineSpacing:0,wordSpacing:0,symbolSpacing:0},vf,o5=[{component:"switch",label:"\u5E26\u56FE\u6A21\u5F0F: \u5C06\u539F\u6587\u4E2D\u7684\u56FE\u8FD8\u539F\u5230\u8BD1\u6587\u4E2D",filed:"image",value:!0,subtitle:"\u53EF\u901A\u8FC7\u4EE5\u4E0B\u914D\u7F6E\u5FEB\u901F\u8C03\u6574\u8BD1\u6587\u6548\u679C",onChange:c5},{component:"switch",label:"\u91CD\u53E0\u9650\u5236: \u4E3A\u4E86\u9632\u6B62\u8BD1\u6587\u7684\u6BB5\u843D\u4E4B\u95F4\u76F8\u4E92\u91CD\u53E0\uFF0C\u9650\u5236\u4E86\u8BD1\u6587\u8DDF\u539F\u6587\u6BB5\u843D\u540C\u7B49\u9AD8\u5EA6",filed:"overflow",value:!0,onChange:d5},{component:"switch",label:"\u95F4\u8DDD\u7D27\u51D1: \u53BB\u6389\u9ED8\u8BA4\u95F4\u8DDD\uFF0C\u56E0\u4E3A\u6BB5\u843D\u9ED8\u8BA4\u95F4\u8DDD\u4F1A\u5BFC\u81F4\u5728\u5C0F\u5C4F\u4E2D, \u8BD1\u6587\u5185\u5BB9\u504F\u9AD8\u88AB\u9650\u9AD8\u9690\u85CF\u6389",filed:"tiny",value:!1,onChange:m5},{component:"input",label:"\u8C03\u6574\u8BD1\u6587\u5E03\u5C40\u7684\u8DDD\u79BB\u5DE6\u8FB9\u767E\u5206\u6BD4",filed:"adjustLyaout",type:"range",class:"tiny-input",value:0,direction:"right",onChange:g5,otherProps:{min:"0",max:"100",step:"2"}},{component:"input",label:"\u8C03\u6574\u8BD1\u6587\u5B57\u53F7",filed:"adjustFontSize",type:"range",class:"tiny-input",value:10,direction:"right",onChange:p5,otherProps:{min:"5",max:"20",step:"1"}},{component:"input",label:"\u884C\u95F4\u8DDD\uFF1A",filed:"lineSpacing",value:0,type:"number",subtitle:"\u53EF\u901A\u8FC7\u4EE5\u4E0B\u914D\u7F6E\u8C03\u6574\u8BD1\u6587\u5206\u6BB5",realodPDF:!0},{component:"input",label:"\u5B57\u95F4\u8DDD\uFF1A",filed:"wordSpacing",value:0,type:"number",realodPDF:!0},{component:"input",label:"\u5F15\u7528\u95F4\u8DDD\uFF1A",filed:"symbolSpacing",value:0,type:"number",realodPDF:!0}];function wf(){let e=globalThis.window.document,t=e.querySelector("#toolbarViewerRight"),n=e.querySelector("#immersive-control-btn");!t||n||(t.setAttribute("style","display: flex;flex-direction: row;align-items: center;"),n=e.createElement("div"),n.id="immersive-control-btn",n.className="immersive-translate-btn control-button",n.innerHTML="\u5FEB\u6377\u63A7\u5236\u6837\u5F0F",t.insertBefore(n,t.firstChild),n.onclick=i5)}function i5(){let e=document.getElementById("immersive-control-modal");if(!e){e=document.createElement("div"),e.id="immersive-control-modal",e.className="immersive-translate-modal",e.innerHTML=` + `}function yf(e,t,n,a=!0){if(n.length<=0)return;let{pageWidth:r,pageHeight:u,scale:o}=e,i=a?"":"position:relative;",s=`${(n[0].width*100/(r*o)).toFixed(2)}%`,c=`${(100-n[0].left*100/(r*o)).toFixed(2)}%`;n.forEach(l=>{if(!l.str)return;let m=l.mergedTimes>0?`${(l.width*100/(r*o)+1).toFixed(2)}%`:"auto",g=`${(l.left*100/(r*o)).toFixed(2)}%`,f=`${(l.top*100/(u*o)).toFixed(2)}%`,d=R4()&&l.fontSize<7?` transform: scale(${l.fontSize/7}); `:"",b=l.angle?` transform: rotate(${l.angle}deg); transform-origin: 0 0;`:"",T=`calc(var(--scale-factor)*var(--font-scale)*${Math.min(l.fontSize-1,24)}px)`,h=`${l.originFontName},${l.fontName},serif`;a&&(i=`position: absolute;left: ${g};top: ${f};width:${m};max-width:${c};min-width:${s};`,!d&&l.mergedTimes>1&&(i+=`height:${(l.bottom-l.top)*1.05}px;overflow:auto;`));let C=l.str;l.translateStatus=="success"&&(C=l.translatedStr),t.push(`
`),a&&(t.push('
'),t.push('
')),t.push(`

${C}

`),t.push("
")})}function n5(e,t){let{pageWidth:n,pageHeight:a,scale:r}=e,u=t[0][0],o=u.width,i=u.top,s=t[t.length-1][t[t.length-1].length-1].bottom;t.forEach(g=>{g[0].width>o&&(o=g[0].width)});let c=`${(o*100/(n*r)).toFixed(2)}%`,l=`${(u.left*100/(n*r)).toFixed(2)}%`,m=`${(u.top*100/(a*r)).toFixed(2)}%`;return`position:absolute;width:${c};left:${l};top:${m};height:${s-i}px;overflow:auto;`}function a5(e,t){let n=[];return t.forEach((a,r)=>{if(r==0){n.push([a]);return}let u=n[n.length-1][0];if(e.prevLineP=u,Xl(e,a)){n[n.length-1].push(a);return}n.push([a])}),n}function r5(e,t){let n=[];return t.forEach((a,r)=>{if(r==0||a.length>1){n.push([a]);return}let u=n[n.length-1];if(e.prevGroup=u[u.length-1],tf(e,a)){u.push(a);return}n.push([a])}),n}function u5(e){let{pageWidth:t,pageHeight:n}=e,a=`calc(var(--scale-factor) * ${t}px)`,r=`calc(var(--scale-factor) * ${n}px)`;return`width:${a};height:${r};`}p();var Ef="immersive-translate";async function Tf(e,t,n,a){let r=e.querySelector(".canvasWrapper"),u=e.querySelector(".textLayer");if(!r||!u)return;let o=r.cloneNode(!0),i=u.cloneNode(!0);o.classList.add("image-mode"),i.classList.add("image-mode"),t.appendChild(o),t.appendChild(i);let s=t.querySelector(".textLayer");s&&s.classList.add(`${Ef}-text-layer-image-mode`);let c=t.querySelector("canvas");c&&(c.setAttribute("style",e.getAttribute("style")||""),await Cf(c,n,a))}async function Cf(e,t,n){let a=globalThis.PDFViewerApplication;if(!a)return;let r=await a.pdfDocument.getPage(t),u=e.getContext("2d");if(!u)return;let o=r.getViewport({scale:n});e.height=o.height,e.width=o.width,u.strokeText=function(){},u.fillText=function(){};let i={canvasContext:u,viewport:o};r.render(i)}async function wf(e){let t=document.querySelectorAll(`.${Ef}-page`);for(let n of t){let a=n.getAttribute("data-page-number");if(!a)return;let r=parseInt(a),u=n.querySelector("canvas");if(!u)return;await Cf(u,r,e*ec.PDF_TO_CSS_UNITS)}}var ec=class{static CSS=96;static PDF=72;static PDF_TO_CSS_UNITS=this.CSS/this.PDF};p();var tc="immersive-translate-pdf-user-config",hu={lineSpacing:0,wordSpacing:0,symbolSpacing:0},kf,o5=[{component:"switch",label:"\u5E26\u56FE\u6A21\u5F0F: \u5C06\u539F\u6587\u4E2D\u7684\u56FE\u8FD8\u539F\u5230\u8BD1\u6587\u4E2D",filed:"image",value:!0,subtitle:"\u53EF\u901A\u8FC7\u4EE5\u4E0B\u914D\u7F6E\u5FEB\u901F\u8C03\u6574\u8BD1\u6587\u6548\u679C",onChange:c5},{component:"switch",label:"\u91CD\u53E0\u9650\u5236: \u4E3A\u4E86\u9632\u6B62\u8BD1\u6587\u7684\u6BB5\u843D\u4E4B\u95F4\u76F8\u4E92\u91CD\u53E0\uFF0C\u9650\u5236\u4E86\u8BD1\u6587\u8DDF\u539F\u6587\u6BB5\u843D\u540C\u7B49\u9AD8\u5EA6",filed:"overflow",value:!0,onChange:d5},{component:"switch",label:"\u95F4\u8DDD\u7D27\u51D1: \u53BB\u6389\u9ED8\u8BA4\u95F4\u8DDD\uFF0C\u56E0\u4E3A\u6BB5\u843D\u9ED8\u8BA4\u95F4\u8DDD\u4F1A\u5BFC\u81F4\u5728\u5C0F\u5C4F\u4E2D, \u8BD1\u6587\u5185\u5BB9\u504F\u9AD8\u88AB\u9650\u9AD8\u9690\u85CF\u6389",filed:"tiny",value:!1,onChange:m5},{component:"input",label:"\u8C03\u6574\u8BD1\u6587\u5E03\u5C40\u7684\u8DDD\u79BB\u5DE6\u8FB9\u767E\u5206\u6BD4",filed:"adjustLyaout",type:"range",class:"tiny-input",value:0,direction:"right",onChange:g5,otherProps:{min:"0",max:"100",step:"2"}},{component:"input",label:"\u8C03\u6574\u8BD1\u6587\u5B57\u53F7",filed:"adjustFontSize",type:"range",class:"tiny-input",value:10,direction:"right",onChange:p5,otherProps:{min:"5",max:"20",step:"1"}},{component:"input",label:"\u884C\u95F4\u8DDD\uFF1A",filed:"lineSpacing",value:0,type:"number",subtitle:"\u53EF\u901A\u8FC7\u4EE5\u4E0B\u914D\u7F6E\u8C03\u6574\u8BD1\u6587\u5206\u6BB5",realodPDF:!0},{component:"input",label:"\u5B57\u95F4\u8DDD\uFF1A",filed:"wordSpacing",value:0,type:"number",realodPDF:!0},{component:"input",label:"\u5F15\u7528\u95F4\u8DDD\uFF1A",filed:"symbolSpacing",value:0,type:"number",realodPDF:!0}];function vf(){let e=globalThis.window.document,t=e.querySelector("#toolbarViewerRight"),n=e.querySelector("#immersive-control-btn");!t||n||(t.setAttribute("style","display: flex;flex-direction: row;align-items: center;"),n=e.createElement("div"),n.id="immersive-control-btn",n.className="immersive-translate-btn control-button",n.innerHTML="\u5FEB\u6377\u63A7\u5236\u6837\u5F0F",t.insertBefore(n,t.firstChild),n.onclick=i5)}function i5(){let e=document.getElementById("immersive-control-modal");if(!e){e=document.createElement("div"),e.id="immersive-control-modal",e.className="immersive-translate-modal",e.innerHTML=`
×
\u5173\u95ED
- `,document.body.appendChild(e);let t=e.querySelectorAll("[data-action='close']"),n=()=>{e.style.display="none"};t.forEach(r=>r.onclick=n);let a=document.getElementById("modal-control-content");if(!a)return;for(let r of o5){let u;if(r.subtitle&&a.appendChild(Le.sanitize(``,{RETURN_DOM_FRAGMENT:!0})),r.component==="switch"?u=s5(r):r.component==="input"&&(u=l5(r)),!u)continue;a.appendChild(u);let o=`${tc}-${r.filed}`,i=document.getElementById(o);if(!i)return;Object.entries(r.otherProps||{}).forEach(([s,c])=>{i.setAttribute(s,c)}),i.onchange=s=>{r.onChange?r.onChange(s):r.component=="input"&&r.type==="number"?bu[r.filed]=parseFloat(`${s.target.value}`):r.component=="switch"?bu[r.filed]=s.target.checked:r.component=="input"&&(bu[r.filed]=s.target.value),r.realodPDF&&vf(bu)},i.oninput=i.onchange}}e.style.display="block"}function s5(e){let t=document.createElement("div");t.className="switch-wrapper";let n=`${tc}-${e.filed}`;return t.innerHTML=`${e.label}`,t}function l5(e){let t=document.createElement("div"),n=`${tc}-${e.filed}`;t.className="input-wrapper";let a=``,r=``;return e.direction=="right"?t.innerHTML=r+a:t.innerHTML=a+r,t}function c5(e){let t=e.target.checked,n=document.getElementById("image-mode-style");n&&n.remove();let a=document.createElement("style");a.id="image-mode-style",a.innerText=` + `,document.body.appendChild(e);let t=e.querySelectorAll("[data-action='close']"),n=()=>{e.style.display="none"};t.forEach(r=>r.onclick=n);let a=document.getElementById("modal-control-content");if(!a)return;for(let r of o5){let u;if(r.subtitle&&a.appendChild(Le.sanitize(``,{RETURN_DOM_FRAGMENT:!0})),r.component==="switch"?u=s5(r):r.component==="input"&&(u=l5(r)),!u)continue;a.appendChild(u);let o=`${tc}-${r.filed}`,i=document.getElementById(o);if(!i)return;Object.entries(r.otherProps||{}).forEach(([s,c])=>{i.setAttribute(s,c)}),i.onchange=s=>{r.onChange?r.onChange(s):r.component=="input"&&r.type==="number"?hu[r.filed]=parseFloat(`${s.target.value}`):r.component=="switch"?hu[r.filed]=s.target.checked:r.component=="input"&&(hu[r.filed]=s.target.value),r.realodPDF&&kf(hu)},i.oninput=i.onchange}}e.style.display="block"}function s5(e){let t=document.createElement("div");t.className="switch-wrapper";let n=`${tc}-${e.filed}`;return t.innerHTML=`${e.label}`,t}function l5(e){let t=document.createElement("div"),n=`${tc}-${e.filed}`;t.className="input-wrapper";let a=``,r=``;return e.direction=="right"?t.innerHTML=r+a:t.innerHTML=a+r,t}function c5(e){let t=e.target.checked,n=document.getElementById("image-mode-style");n&&n.remove();let a=document.createElement("style");a.id="image-mode-style",a.innerText=` .image-mode { display: ${t?"block":"none"}; } @@ -4357,7 +4359,7 @@ ${o}} .immersive-translate-text-layer { margin-left: -${t}%; } - `,document.head.appendChild(a)}function p5(e){let t=e.target.value;document.body.setAttribute("style",`--font-scale:${Number(t)/10}`)}function kf(e){globalThis.window&&(vf=e,wf(),globalThis.window.addEventListener("DOMContentLoaded",function(){wf()}))}function Sf(){return bu}var nc="immersive-translate",_a,wr=[];f5();async function f5(){let e=globalThis.PDFViewerApplication;if(!e)return;if(h5(),kf(async()=>{wr=[],_a=void 0;let n=document.querySelectorAll(".immersive-translate-page");for(let a of n){let r=a.getAttribute("data-page-number");if(!r)continue;let u=await ac(parseInt(`${r}`))}}),hf("open_pdf_page"),e&&e.eventBus){if(t(),e&&e.pagesCount>0){let n=await ac(1)}}else await e.initializedPromise,t();function t(){e.eventBus.on("pagesdestroy",()=>{wr=[],_a=void 0}),e.eventBus.on("textlayerrendered",async({pageNumber:n})=>{let a=await ac(n)}),e.eventBus.on("scalechanging",async({scale:n})=>{await Cf(n)})}}var yu=null;function h5(){let e=globalThis;e.hiddenOriginalPdf=function(){let t=document.getElementById("hidden-original-style");t&&t.remove();let n=document.createElement("style");n.id="hidden-original-style",n.innerText=` + `,document.head.appendChild(a)}function p5(e){let t=e.target.value;document.body.setAttribute("style",`--font-scale:${Number(t)/10}`)}function Sf(e){globalThis.window&&(kf=e,vf(),globalThis.window.addEventListener("DOMContentLoaded",function(){vf()}))}function Af(){return hu}var nc="immersive-translate",Ba,wr=[];f5();async function f5(){let e=globalThis.PDFViewerApplication;if(!e)return;if(h5(),Sf(async()=>{wr=[],Ba=void 0;let n=document.querySelectorAll(".immersive-translate-page");for(let a of n){let r=a.getAttribute("data-page-number");if(!r)continue;let u=await ac(parseInt(`${r}`))}}),bf("open_pdf_page"),e&&e.eventBus){if(t(),e&&e.pagesCount>0){let n=await ac(1)}}else await e.initializedPromise,t();function t(){e.eventBus.on("pagesdestroy",()=>{wr=[],Ba=void 0}),e.eventBus.on("textlayerrendered",async({pageNumber:n})=>{let a=await ac(n)}),e.eventBus.on("scalechanging",async({scale:n})=>{await wf(n)})}}var bu=null;function h5(){let e=globalThis;e.hiddenOriginalPdf=function(){let t=document.getElementById("hidden-original-style");t&&t.remove();let n=document.createElement("style");n.id="hidden-original-style",n.innerText=` .pdfViewer .page { display: none; } @@ -4365,7 +4367,7 @@ ${o}} .pdfViewer .immersive-translate-page { display: block !important; } - `,document.head.appendChild(n)},e.restoreOriginalPdf=function(){let t=document.getElementById("hidden-original-style");t&&t.remove()},e.realRenderPages=async function(){yu=document.getElementById("viewer");try{yu.remove(),document.getElementById("printContainer")?.appendChild(yu)}catch{}},e.realAfterPrint=function(){try{e?.restoreOriginalPdf(),yu?.remove(),document.getElementById("viewerContainer")?.appendChild(yu)}catch{}}}function b5(e){if(_a)return{..._a,pageNum:e,prevLineP:{},prevP:{}};let t=globalThis.PDFViewerApplication;if(!t)return;let n=t.pagesCount,a=document.getElementById("viewer");if(!a)return;let u=getComputedStyle(a).getPropertyValue("--scale-factor"),i={scale:Number(u),pageNum:e,pagesCount:n,pageWidth:0,pageHeight:0,rotate:0,prevLineP:{},prevP:{},pdfDocument:t.pdfDocument,userConfig:Sf()};return _a={...i},i}async function ac(e){let t=b5(e);if(!t)return;let n=document.querySelector(`.page[data-page-number="${e}"]`),a=document.querySelector(`.${nc}-page[data-page-number="${e}"]`);if(!n||wr[e]&&a)return;wr[e]=await y5(t,e,wr[e-1]||[]);let r=wr[e];if(!a)a=document.createElement("div"),a.setAttribute("style",n.getAttribute("style")||""),a.setAttribute("data-page-number",e+""),a.setAttribute("id",`${nc}-page-${e}`),a.classList.add("page"),a.classList.add(`${nc}-page`),Ef(n,a,e,t.scale),e==t.pagesCount?n.parentNode?.appendChild(a):n.parentNode?.insertBefore(a,n.nextSibling);else{let o=a.querySelector(".immersive-translate-text-layer");o&&a.removeChild(o)}let u=yf(t,r);return a.append(Le.sanitize(u,{ADD_ATTR:["contenteditable","target"],RETURN_DOM_FRAGMENT:!0})),r}async function y5(e,t,n){let a=await e.pdfDocument.getPage(t),r=await a.getTextContent(),[u,o,i,s]=a._pageInfo.view,c=a.rotate;_a.pageWidth=i,_a.pageHeight=s,Object.assign(e,{prevPageParagraphs:n,pageWidth:i,pageHeight:s,rotate:c});let l=E5(e,r);e.origLineParagraphs=l;let{prevP:m,curP:g}=Zp(e,l);return g&&Df(m,void 0,g),x5(e,l)}function x5(e,t){let n=[];return t.forEach((o,i)=>{if(i==0){a(o);return}let s=t[i-1],c=n[n.length-1];if(e.prevLineP=s,e.prevP=c,af(e,o)){if(rf(e,o)){u(c,o);return}if(of(e,o)){e.justify={left:s.left,right:s.right,width:s.width,top:s.top,str:s.str,fontSize:s.fontSize},u(c,o);return}if(sf(e,o)){u(c,o);return}if(Zl(e,o)){u(c,o);return}if(lf(e,o)){u(c,o),o.left{let s=o.str;if(!s.trim())return;let c=pf(o.transform),l=o.transform[4],m=o.transform[5],g=o.width*n,f=t.styles[o.fontName].fontFamily,d=o.transform[3]||o.height,b=t.styles[o.fontName].descent,T=t.styles[o.fontName].ascent,h=d;b&&T&&(h=(1+(1-T)+b)*d),isNaN(h)&&(h=d);let C=l*n,v=(a-m-h)*n;c&&(C=(l+h*Math.sin(c))*n,v=(a-m-h*Math.cos(c))*n);let O=C+g,B=v+d*n,x=B+d*n*.2,L=O+d*n*.3;c=c==0?0:c*180/Math.PI;let M={angle:c,str:s,left:C,nextLeft:L,top:v,nextTop:x,id:`pageNum-${Wt()}`,width:g,originFontName:o.fontName,fontName:f,fontSize:d,right:O,bottom:B,attachList:[],mergedTimes:0,translatedStr:""};if(r.length==0)r.push(M);else{let w=r[r.length-1];if(e.prevLineP=w,cf(e,M)){if(df(e,M)){r.push(M);return}nf(e,M)?w.str+=s:w.str+=" "+s,w.right=O,w.fontName=f,w.width=Math.max(w.width+g,O-w.left),w.nextLeft=L;return}if(mf(e,M)){w.width=Math.max(w.width+g,O-w.left),w.right=O,w.nextLeft=L,w.attachList.push(M);return}if(gf(e,M)){w.width=Math.max(w.width+g,O-w.left),w.right=O,w.nextLeft=L,w.attachList.push(M);return}r.push(M)}});let u=new Map;return r.forEach(o=>{u.set(o.str+Math.floor(o.left),o)}),[...u.values()]}function Df(e,t,n){if(!ki(e,n)||e.width+1(o=s,"")),t&&t.str==e.str&&!o&&(o=e.str,e.str=""),o&&(o.endsWith("-")?o=o.replace("-",""):o+=" "),n.str=o.trimStart()+n.str}}})(); + `,document.head.appendChild(n)},e.restoreOriginalPdf=function(){let t=document.getElementById("hidden-original-style");t&&t.remove()},e.realRenderPages=async function(){bu=document.getElementById("viewer");try{bu.remove(),document.getElementById("printContainer")?.appendChild(bu)}catch{}},e.realAfterPrint=function(){try{e?.restoreOriginalPdf(),bu?.remove(),document.getElementById("viewerContainer")?.appendChild(bu)}catch{}}}function b5(e){if(Ba)return{...Ba,pageNum:e,prevLineP:{},prevP:{}};let t=globalThis.PDFViewerApplication;if(!t)return;let n=t.pagesCount,a=document.getElementById("viewer");if(!a)return;let u=getComputedStyle(a).getPropertyValue("--scale-factor"),i={scale:Number(u),pageNum:e,pagesCount:n,pageWidth:0,pageHeight:0,rotate:0,prevLineP:{},prevP:{},pdfDocument:t.pdfDocument,userConfig:Af()};return Ba={...i},i}async function ac(e){let t=b5(e);if(!t)return;let n=document.querySelector(`.page[data-page-number="${e}"]`),a=document.querySelector(`.${nc}-page[data-page-number="${e}"]`);if(!n||wr[e]&&a)return;wr[e]=await y5(t,e,wr[e-1]||[]);let r=wr[e];if(!a)a=document.createElement("div"),a.setAttribute("style",n.getAttribute("style")||""),a.setAttribute("data-page-number",e+""),a.setAttribute("id",`${nc}-page-${e}`),a.classList.add("page"),a.classList.add(`${nc}-page`),Tf(n,a,e,t.scale),e==t.pagesCount?n.parentNode?.appendChild(a):n.parentNode?.insertBefore(a,n.nextSibling);else{let o=a.querySelector(".immersive-translate-text-layer");o&&a.removeChild(o)}let u=xf(t,r);return a.append(Le.sanitize(u,{ADD_ATTR:["contenteditable","target"],RETURN_DOM_FRAGMENT:!0})),r}async function y5(e,t,n){let a=await e.pdfDocument.getPage(t),r=await a.getTextContent(),[u,o,i,s]=a._pageInfo.view,c=a.rotate;Ba.pageWidth=i,Ba.pageHeight=s,Object.assign(e,{prevPageParagraphs:n,pageWidth:i,pageHeight:s,rotate:c});let l=E5(e,r);e.origLineParagraphs=l;let{prevP:m,curP:g}=Xp(e,l);return g&&Lf(m,void 0,g),x5(e,l)}function x5(e,t){let n=[];return t.forEach((o,i)=>{if(i==0){a(o);return}let s=t[i-1],c=n[n.length-1];if(e.prevLineP=s,e.prevP=c,rf(e,o)){if(uf(e,o)){u(c,o);return}if(sf(e,o)){e.justify={left:s.left,right:s.right,width:s.width,top:s.top,str:s.str,fontSize:s.fontSize},u(c,o);return}if(lf(e,o)){u(c,o);return}if(Zl(e,o)){u(c,o);return}if(cf(e,o)){u(c,o),o.left{let s=o.str;if(!s.trim())return;let c=ff(o.transform),l=o.transform[4],m=o.transform[5],g=o.width*n,f=t.styles[o.fontName].fontFamily,d=o.transform[3]||o.height,b=t.styles[o.fontName].descent,T=t.styles[o.fontName].ascent,h=d;b&&T&&(h=(1+(1-T)+b)*d),isNaN(h)&&(h=d);let C=l*n,v=(a-m-h)*n;c&&(C=(l+h*Math.sin(c))*n,v=(a-m-h*Math.cos(c))*n);let O=C+g,B=v+d*n,x=B+d*n*.2,L=O+d*n*.3;c=c==0?0:c*180/Math.PI;let M={angle:c,str:s,left:C,nextLeft:L,top:v,nextTop:x,id:`pageNum-${$t()}`,width:g,originFontName:o.fontName,fontName:f,fontSize:d,right:O,bottom:B,attachList:[],mergedTimes:0,translatedStr:""};if(r.length==0)r.push(M);else{let w=r[r.length-1];if(e.prevLineP=w,df(e,M)){if(mf(e,M)){r.push(M);return}af(e,M)?w.str+=s:w.str+=" "+s,w.right=O,w.fontName=f,w.width=Math.max(w.width+g,O-w.left),w.nextLeft=L;return}if(gf(e,M)){w.width=Math.max(w.width+g,O-w.left),w.right=O,w.nextLeft=L,w.attachList.push(M);return}if(pf(e,M)){w.width=Math.max(w.width+g,O-w.left),w.right=O,w.nextLeft=L,w.attachList.push(M);return}r.push(M)}});let u=new Map;return r.forEach(o=>{u.set(o.str+Math.floor(o.left),o)}),[...u.values()]}function Lf(e,t,n){if(!ki(e,n)||e.width+1(o=s,"")),t&&t.str==e.str&&!o&&(o=e.str,e.str=""),o&&(o.endsWith("-")?o=o.replace("-",""):o+=" "),n.str=o.trimStart()+n.str}}})(); /*! Bundled license information: bowser/src/bowser.js: diff --git a/dist/chrome/popup.js b/dist/chrome/popup.js index 4136272..7823ee9 100644 --- a/dist/chrome/popup.js +++ b/dist/chrome/popup.js @@ -1,4 +1,4 @@ -(()=>{var cf=Object.create;var Ri=Object.defineProperty;var df=Object.getOwnPropertyDescriptor;var mf=Object.getOwnPropertyNames;var gf=Object.getPrototypeOf,pf=Object.prototype.hasOwnProperty;var ff=(e,t)=>()=>(e&&(t=e(e=0)),t);var hf=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),bf=(e,t)=>{for(var n in t)Ri(e,n,{get:t[n],enumerable:!0})},yf=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of mf(t))!pf.call(e,r)&&r!==n&&Ri(e,r,{get:()=>t[r],enumerable:!(a=df(t,r))||a.enumerable});return e};var xf=(e,t,n)=>(n=e!=null?cf(gf(e)):{},yf(t||!e||!e.__esModule?Ri(n,"default",{value:e,enumerable:!0}):n,e));var _,m=ff(()=>{_={BUILD_TIME:"2023-09-17T09:32:32.000Z",VERSION:"0.9.5",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"0",BETA:"0",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { +(()=>{var df=Object.create;var Ri=Object.defineProperty;var mf=Object.getOwnPropertyDescriptor;var gf=Object.getOwnPropertyNames;var pf=Object.getPrototypeOf,ff=Object.prototype.hasOwnProperty;var hf=(e,t)=>()=>(e&&(t=e(e=0)),t);var bf=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),yf=(e,t)=>{for(var n in t)Ri(e,n,{get:t[n],enumerable:!0})},xf=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of gf(t))!ff.call(e,r)&&r!==n&&Ri(e,r,{get:()=>t[r],enumerable:!(a=mf(t,r))||a.enumerable});return e};var Ef=(e,t,n)=>(n=e!=null?df(pf(e)):{},xf(t||!e||!e.__esModule?Ri(n,"default",{value:e,enumerable:!0}):n,e));var _,g=hf(()=>{_={BUILD_TIME:"2023-09-19T07:46:36.000Z",VERSION:"0.9.6",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"0",BETA:"0",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { --immersive-translate-theme-underline-borderColor: #72ece9; --immersive-translate-theme-nativeUnderline-borderColor: #72ece9; --immersive-translate-theme-nativeDashed-borderColor: #72ece9; @@ -4234,14 +4234,14 @@ select.text-label {
-`,PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",OPTIONS_URL:"https://dash.immersivetranslate.com/",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",MOCK:"0",DEBUG:"0",INSTALL_FROM:"chrome_zip"}});var rg=hf((_o,au)=>{m();(function(){var e;function t(d){var b,C,h="",A=-1,S;if(d&&d.length)for(S=d.length;(A+=1)>>6&31,128|b&63):b<=65535?h+=String.fromCharCode(224|b>>>12&15,128|b>>>6&63,128|b&63):b<=2097151&&(h+=String.fromCharCode(240|b>>>18&7,128|b>>>12&63,128|b>>>6&63,128|b&63));return h}function n(d){var b,C,h,A,S,U=[],O;if(b=C=h=A=S=0,d&&d.length)for(O=d.length,d+="";b191&&h<224?(A=d.charCodeAt(b+1),U[C]=String.fromCharCode((h&31)<<6|A&63),b+=2):(A=d.charCodeAt(b+1),S=d.charCodeAt(b+2),U[C]=String.fromCharCode((h&15)<<12|(A&63)<<6|S&63),b+=3);return U.join("")}function a(d,b){var C=(d&65535)+(b&65535),h=(d>>16)+(b>>16)+(C>>16);return h<<16|C&65535}function r(d,b){return d<>>32-b}function u(d,b){for(var C=b?"0123456789ABCDEF":"0123456789abcdef",h="",A,S=0,U=d.length;S>>4&15)+C.charAt(A&15);return h}function o(d){var b,C=d.length,h="";for(b=0;b>>8&255);return h}function i(d){var b,C=d.length,h="";for(b=0;b>>8&255,d.charCodeAt(b)&255);return h}function l(d){var b,C=d.length*32,h="";for(b=0;b>5]>>>24-b%32&255);return h}function c(d){var b,C=d.length*32,h="";for(b=0;b>5]>>>b%32&255);return h}function s(d){var b,C=d.length*8,h=Array(d.length>>2),A=h.length;for(b=0;b>5]|=(d.charCodeAt(b/8)&255)<>2),A=h.length;for(b=0;b>5]|=(d.charCodeAt(b/8)&255)<<24-b%32;return h}function p(d,b){var C=b.length,h=Array(),A,S,U,O,y,T,k,v;for(T=Array(Math.ceil(d.length/2)),O=T.length,A=0;A0;){for(y=Array(),U=0,A=0;A0||S>0)&&(y[y.length]=S);h[h.length]=U,T=y}for(k="",A=h.length-1;A>=0;A--)k+=b.charAt(h[A]);for(v=Math.ceil(d.length*8/(Math.log(b.length)/Math.log(2))),A=k.length;Ad.length*8?h+=b:h+=C.charAt(O>>>6*(3-U)&63);return h}e={VERSION:"1.0.6",Base64:function(){var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b="=",C=!1,h=!0;this.encode=function(A){var S,U,O,y="";for(b=b||"=",A=h?t(A):A,len=A.length,S=0;Slen*8?y+=b:y+=d.charAt(O>>>6*(3-U)&63);return y},this.decode=function(A){var S,U,O,y,T,k,v,E,R,F,w="",B=[];if(!A)return A;S=F=0,A=A.replace(new RegExp("\\"+b,"gi"),"");do T=d.indexOf(A.charAt(S++)),k=d.indexOf(A.charAt(S++)),v=d.indexOf(A.charAt(S++)),E=d.indexOf(A.charAt(S++)),R=T<<18|k<<12|v<<6|E,U=R>>16&255,O=R>>8&255,y=R&255,F+=1,v===64?B[F]=String.fromCharCode(U):E===64?B[F]=String.fromCharCode(U,O):B[F]=String.fromCharCode(U,O,y);while(S>>8^C;return(b^-1)>>>0},MD5:function(d){var b=d&&typeof d.uppercase=="boolean"?d.uppercase:!1,C=d&&typeof d.pad=="string"?d.pad:"=",h=d&&typeof d.utf8=="boolean"?d.utf8:!0;this.hex=function(E){return u(A(E,h),b)},this.b64=function(E){return f(A(E),C)},this.any=function(E,R){return p(A(E,h),R)},this.raw=function(E){return A(E,h)},this.hex_hmac=function(E,R){return u(S(E,R),b)},this.b64_hmac=function(E,R){return f(S(E,R),C)},this.any_hmac=function(E,R,F){return p(S(E,R),F)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(E){return typeof E=="boolean"&&(b=E),this},this.setPad=function(E){return C=E||C,this},this.setUTF8=function(E){return typeof E=="boolean"&&(h=E),this};function A(E){return E=h?t(E):E,c(U(s(E),E.length*8))}function S(E,R){var F,w,B,I,N;for(E=h?t(E):E,R=h?t(R):R,F=s(E),F.length>16&&(F=U(F,E.length*8)),w=Array(16),B=Array(16),N=0;N<16;N+=1)w[N]=F[N]^909522486,B[N]=F[N]^1549556828;return I=U(w.concat(s(R)),512+R.length*8),c(U(B.concat(I),512+128))}function U(E,R){var F,w,B,I,N,P=1732584193,x=-271733879,D=-1732584194,M=271733878;for(E[R>>5]|=128<>>9<<4)+14]=R,F=0;F16&&(v=U(v,T.length*8)),E=Array(16),R=Array(16),F=0;F<16;F+=1)E[F]=v[F]^909522486,R[F]=v[F]^1549556828;return w=U(E.concat(g(k)),512+k.length*8),l(U(R.concat(w),512+160))}function U(T,k){var v,E,R,F,w,B,I,N,P=Array(80),x=1732584193,D=-271733879,M=-1732584194,q=271733878,j=-1009589776;for(T[k>>5]|=128<<24-k%32,T[(k+64>>9<<4)+15]=k,v=0;v16&&(j=P(j,x.length*8));q<16;q+=1)$[q]=j[q]^909522486,z[q]=j[q]^1549556828;return M=P($.concat(g(D)),512+D.length*8),l(P(z.concat(M),512+256))}function O(x,D){return x>>>D|x<<32-D}function y(x,D){return x>>>D}function T(x,D,M){return x&D^~x&M}function k(x,D,M){return x&D^x&M^D&M}function v(x){return O(x,2)^O(x,13)^O(x,22)}function E(x){return O(x,6)^O(x,11)^O(x,25)}function R(x){return O(x,7)^O(x,18)^y(x,3)}function F(x){return O(x,17)^O(x,19)^y(x,10)}function w(x){return O(x,28)^O(x,34)^O(x,39)}function B(x){return O(x,14)^O(x,18)^O(x,41)}function I(x){return O(x,1)^O(x,8)^y(x,7)}function N(x){return O(x,19)^O(x,61)^y(x,6)}A=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function P(x,D){var M=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],q=new Array(64),j,$,z,ae,J,Y,pe,fe,ue,G,ie,me;for(x[D>>5]|=128<<24-D%32,x[(D+64>>9<<4)+15]=D,ue=0;ue32&&(x=O(x,B.length*8));P<32;P+=1)D[P]=x[P]^909522486,M[P]=x[P]^1549556828;return N=O(D.concat(g(I)),1024+I.length*8),l(O(M.concat(N),1024+512))}function O(B,I){var N,P,x,D=new Array(80),M=new Array(16),q=[new y(1779033703,-205731576),new y(-1150833019,-2067093701),new y(1013904242,-23791573),new y(-1521486534,1595750129),new y(1359893119,-1377402159),new y(-1694144372,725511199),new y(528734635,-79577749),new y(1541459225,327033209)],j=new y(0,0),$=new y(0,0),z=new y(0,0),ae=new y(0,0),J=new y(0,0),Y=new y(0,0),pe=new y(0,0),fe=new y(0,0),ue=new y(0,0),G=new y(0,0),ie=new y(0,0),me=new y(0,0),ce=new y(0,0),ye=new y(0,0),Se=new y(0,0),xe=new y(0,0),Z=new y(0,0);for(A===void 0&&(A=[new y(1116352408,-685199838),new y(1899447441,602891725),new y(-1245643825,-330482897),new y(-373957723,-2121671748),new y(961987163,-213338824),new y(1508970993,-1241133031),new y(-1841331548,-1357295717),new y(-1424204075,-630357736),new y(-670586216,-1560083902),new y(310598401,1164996542),new y(607225278,1323610764),new y(1426881987,-704662302),new y(1925078388,-226784913),new y(-2132889090,991336113),new y(-1680079193,633803317),new y(-1046744716,-815192428),new y(-459576895,-1628353838),new y(-272742522,944711139),new y(264347078,-1953704523),new y(604807628,2007800933),new y(770255983,1495990901),new y(1249150122,1856431235),new y(1555081692,-1119749164),new y(1996064986,-2096016459),new y(-1740746414,-295247957),new y(-1473132947,766784016),new y(-1341970488,-1728372417),new y(-1084653625,-1091629340),new y(-958395405,1034457026),new y(-710438585,-1828018395),new y(113926993,-536640913),new y(338241895,168717936),new y(666307205,1188179964),new y(773529912,1546045734),new y(1294757372,1522805485),new y(1396182291,-1651133473),new y(1695183700,-1951439906),new y(1986661051,1014477480),new y(-2117940946,1206759142),new y(-1838011259,344077627),new y(-1564481375,1290863460),new y(-1474664885,-1136513023),new y(-1035236496,-789014639),new y(-949202525,106217008),new y(-778901479,-688958952),new y(-694614492,1432725776),new y(-200395387,1467031594),new y(275423344,851169720),new y(430227734,-1194143544),new y(506948616,1363258195),new y(659060556,-544281703),new y(883997877,-509917016),new y(958139571,-976659869),new y(1322822218,-482243893),new y(1537002063,2003034995),new y(1747873779,-692930397),new y(1955562222,1575990012),new y(2024104815,1125592928),new y(-2067236844,-1578062990),new y(-1933114872,442776044),new y(-1866530822,593698344),new y(-1538233109,-561857047),new y(-1090935817,-1295615723),new y(-965641998,-479046869),new y(-903397682,-366583396),new y(-779700025,566280711),new y(-354779690,-840897762),new y(-176337025,-294727304),new y(116418474,1914138554),new y(174292421,-1563912026),new y(289380356,-1090974290),new y(460393269,320620315),new y(685471733,587496836),new y(852142971,1086792851),new y(1017036298,365543100),new y(1126000580,-1676669620),new y(1288033470,-885112138),new y(1501505948,-60457430),new y(1607167915,987167468),new y(1816402316,1246189591)]),P=0;P<80;P+=1)D[P]=new y(0,0);for(B[I>>5]|=128<<24-(I&31),B[(I+128>>10<<5)+31]=I,x=B.length,P=0;P>>N|I.h<<32-N,B.h=I.h>>>N|I.l<<32-N}function v(B,I,N){B.l=I.h>>>N|I.l<<32-N,B.h=I.l>>>N|I.h<<32-N}function E(B,I,N){B.l=I.l>>>N|I.h<<32-N,B.h=I.h>>>N}function R(B,I,N){var P=(I.l&65535)+(N.l&65535),x=(I.l>>>16)+(N.l>>>16)+(P>>>16),D=(I.h&65535)+(N.h&65535)+(x>>>16),M=(I.h>>>16)+(N.h>>>16)+(D>>>16);B.l=P&65535|x<<16,B.h=D&65535|M<<16}function F(B,I,N,P,x){var D=(I.l&65535)+(N.l&65535)+(P.l&65535)+(x.l&65535),M=(I.l>>>16)+(N.l>>>16)+(P.l>>>16)+(x.l>>>16)+(D>>>16),q=(I.h&65535)+(N.h&65535)+(P.h&65535)+(x.h&65535)+(M>>>16),j=(I.h>>>16)+(N.h>>>16)+(P.h>>>16)+(x.h>>>16)+(q>>>16);B.l=D&65535|M<<16,B.h=q&65535|j<<16}function w(B,I,N,P,x,D){var M=(I.l&65535)+(N.l&65535)+(P.l&65535)+(x.l&65535)+(D.l&65535),q=(I.l>>>16)+(N.l>>>16)+(P.l>>>16)+(x.l>>>16)+(D.l>>>16)+(M>>>16),j=(I.h&65535)+(N.h&65535)+(P.h&65535)+(x.h&65535)+(D.h&65535)+(q>>>16),$=(I.h>>>16)+(N.h>>>16)+(P.h>>>16)+(x.h>>>16)+(D.h>>>16)+(j>>>16);B.l=M&65535|q<<16,B.h=j&65535|$<<16}},RMD160:function(d){var b=d&&typeof d.uppercase=="boolean"?d.uppercase:!1,C=d&&typeof d.pad=="string"?d.pa:"=",h=d&&typeof d.utf8=="boolean"?d.utf8:!0,A=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],S=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],U=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],O=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(w){return u(y(w,h))},this.b64=function(w){return f(y(w,h),C)},this.any=function(w,B){return p(y(w,h),B)},this.raw=function(w){return y(w,h)},this.hex_hmac=function(w,B){return u(T(w,B))},this.b64_hmac=function(w,B){return f(T(w,B),C)},this.any_hmac=function(w,B,I){return p(T(w,B),I)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(w){return typeof w=="boolean"&&(b=w),this},this.setPad=function(w){return typeof w<"u"&&(C=w),this},this.setUTF8=function(w){return typeof w=="boolean"&&(h=w),this};function y(w){return w=h?t(w):w,k(v(s(w),w.length*8))}function T(w,B){w=h?t(w):w,B=h?t(B):B;var I,N,P=s(w),x=Array(16),D=Array(16);for(P.length>16&&(P=v(P,w.length*8)),I=0;I<16;I+=1)x[I]=P[I]^909522486,D[I]=P[I]^1549556828;return N=v(x.concat(s(B)),512+B.length*8),k(v(D.concat(N),512+160))}function k(w){var B,I="",N=w.length*32;for(B=0;B>5]>>>B%32&255);return I}function v(w,B){var I,N,P,x,D=1732584193,M=4023233417,q=2562383102,j=271733878,$=3285377520,z,ae,J,Y,pe,fe,ue,G,ie,me;for(w[B>>5]|=128<>>9<<4)+14]=B,x=w.length,P=0;Pfunction(){return t||(0,e[bc(e)[0]])((t={exports:{}}).exports,t),t.exports},kf=(e,t)=>{for(var n in t)Ii(e,n,{get:t[n],enumerable:!0})},Oi=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of bc(t))!vf.call(e,r)&&r!==n&&Ii(e,r,{get:()=>t[r],enumerable:!(a=Cf(t,r))||a.enumerable});return e},Sf=(e,t,n)=>(Oi(e,t,"default"),n&&Oi(n,t,"default")),yc=(e,t,n)=>(n=e!=null?Tf(wf(e)):{},Oi(t||!e||!e.__esModule?Ii(n,"default",{value:e,enumerable:!0}):n,e)),xc=Af({"../esmd/npm/webextension-polyfill@0.10.0/node_modules/webextension-polyfill/dist/browser-polyfill.js"(e,t){(function(n,a){if(typeof define=="function"&&define.amd)define("webextension-polyfill",["module"],a);else if(typeof e<"u")a(t);else{var r={exports:{}};a(r),n.browser=r.exports}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:e,function(n){"use strict";if(!globalThis.chrome?.runtime?.id)throw new Error("This script should only be loaded in a browser extension.");if(typeof globalThis.browser>"u"||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){let a="The message port closed before a response was received.",r=u=>{let o={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(Object.keys(o).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class i extends WeakMap{constructor(T,k=void 0){super(k),this.createItem=T}get(T){return this.has(T)||this.set(T,this.createItem(T)),super.get(T)}}let l=y=>y&&typeof y=="object"&&typeof y.then=="function",c=(y,T)=>(...k)=>{u.runtime.lastError?y.reject(new Error(u.runtime.lastError.message)):T.singleCallbackArg||k.length<=1&&T.singleCallbackArg!==!1?y.resolve(k[0]):y.resolve(k)},s=y=>y==1?"argument":"arguments",g=(y,T)=>function(v,...E){if(E.lengthT.maxArgs)throw new Error(`Expected at most ${T.maxArgs} ${s(T.maxArgs)} for ${y}(), got ${E.length}`);return new Promise((R,F)=>{if(T.fallbackToNoCallback)try{v[y](...E,c({resolve:R,reject:F},T))}catch{v[y](...E),T.fallbackToNoCallback=!1,T.noCallback=!0,R()}else T.noCallback?(v[y](...E),R()):v[y](...E,c({resolve:R,reject:F},T))})},p=(y,T,k)=>new Proxy(T,{apply(v,E,R){return k.call(E,y,...R)}}),f=Function.call.bind(Object.prototype.hasOwnProperty),d=(y,T={},k={})=>{let v=Object.create(null),E={has(F,w){return w in y||w in v},get(F,w,B){if(w in v)return v[w];if(!(w in y))return;let I=y[w];if(typeof I=="function")if(typeof T[w]=="function")I=p(y,y[w],T[w]);else if(f(k,w)){let N=g(w,k[w]);I=p(y,y[w],N)}else I=I.bind(y);else if(typeof I=="object"&&I!==null&&(f(T,w)||f(k,w)))I=d(I,T[w],k[w]);else if(f(k,"*"))I=d(I,T[w],k["*"]);else return Object.defineProperty(v,w,{configurable:!0,enumerable:!0,get(){return y[w]},set(N){y[w]=N}}),I;return v[w]=I,I},set(F,w,B,I){return w in v?v[w]=B:y[w]=B,!0},defineProperty(F,w,B){return Reflect.defineProperty(v,w,B)},deleteProperty(F,w){return Reflect.deleteProperty(v,w)}},R=Object.create(y);return new Proxy(R,E)},b=y=>({addListener(T,k,...v){T.addListener(y.get(k),...v)},hasListener(T,k){return T.hasListener(y.get(k))},removeListener(T,k){T.removeListener(y.get(k))}}),C=new i(y=>typeof y!="function"?y:function(k){let v=d(k,{},{getContent:{minArgs:0,maxArgs:0}});y(v)}),h=new i(y=>typeof y!="function"?y:function(k,v,E){let R=!1,F,w=new Promise(P=>{F=function(x){R=!0,P(x)}}),B;try{B=y(k,v,F)}catch(P){B=Promise.reject(P)}let I=B!==!0&&l(B);if(B!==!0&&!I&&!R)return!1;let N=P=>{P.then(x=>{E(x)},x=>{let D;x&&(x instanceof Error||typeof x.message=="string")?D=x.message:D="An unexpected error occurred",E({__mozWebExtensionPolyfillReject__:!0,message:D})}).catch(x=>{})};return N(I?B:w),!0}),A=({reject:y,resolve:T},k)=>{u.runtime.lastError?u.runtime.lastError.message===a?T():y(new Error(u.runtime.lastError.message)):k&&k.__mozWebExtensionPolyfillReject__?y(new Error(k.message)):T(k)},S=(y,T,k,...v)=>{if(v.lengthT.maxArgs)throw new Error(`Expected at most ${T.maxArgs} ${s(T.maxArgs)} for ${y}(), got ${v.length}`);return new Promise((E,R)=>{let F=A.bind(null,{resolve:E,reject:R});v.push(F),k.sendMessage(...v)})},U={devtools:{network:{onRequestFinished:b(C)}},runtime:{onMessage:b(h),onMessageExternal:b(h),sendMessage:S.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:S.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},O={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return o.privacy={network:{"*":O},services:{"*":O},websites:{"*":O}},d(u,U,o)};n.exports=r(chrome)}else n.exports=globalThis.browser})}}),Ec={};kf(Ec,{default:()=>Tu});var Df=yc(xc());Sf(Ec,yc(xc()));var{default:hc,...Lf}=Df,Tu=hc!==void 0?hc:Lf;globalThis.immersiveTranslateBrowserAPI=Tu;m();m();m();var Su,Ae,Ac,Pf,Ar,Tc,kc,vu={},Sc=[],Mf=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function $n(e,t){for(var n in t)e[n]=t[n];return e}function Dc(e){var t=e.parentNode;t&&t.removeChild(e)}function ji(e,t,n){var a,r,u,o={};for(u in t)u=="key"?a=t[u]:u=="ref"?r=t[u]:o[u]=t[u];if(arguments.length>2&&(o.children=arguments.length>3?Su.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(u in e.defaultProps)o[u]===void 0&&(o[u]=e.defaultProps[u]);return Cu(e,o,a,r,null)}function Cu(e,t,n,a,r){var u={type:e,props:t,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++Ac};return r==null&&Ae.vnode!=null&&Ae.vnode(u),u}function qt(e){return e.children}function wu(e,t){this.props=e,this.context=t}function Na(e,t){if(t==null)return e.__?Na(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?Cu(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=n,f.__b=n.__b+1,(p=h[s])===null||p&&f.key==p.key&&f.type===p.type)h[s]=void 0;else for(g=0;g=n.__.length&&n.__.push({__V:Lu}),n.__[e]}function Te(e){return kr=1,Rf($c,e)}function Rf(e,t,n){var a=Mu(Sr++,2);if(a.t=e,!a.__c&&(a.__=[n?n(t):$c(void 0,t),function(u){var o=a.__N?a.__N[0]:a.__[0],i=a.t(o,u);o!==i&&(a.__N=[i,a.__[1]],a.__c.setState({}))}],a.__c=Qe,!Qe.u)){Qe.u=!0;var r=Qe.shouldComponentUpdate;Qe.shouldComponentUpdate=function(u,o,i){if(!a.__c.__H)return!0;var l=a.__c.__H.__.filter(function(s){return s.__c});if(l.every(function(s){return!s.__N}))return!r||r.call(this,u,o,i);var c=!1;return l.forEach(function(s){if(s.__N){var g=s.__[0];s.__=s.__N,s.__N=void 0,g!==s.__[0]&&(c=!0)}}),!!c&&(!r||r.call(this,u,o,i))}}return a.__N||a.__}function Ne(e,t){var n=Mu(Sr++,3);!Ae.__s&&Wc(n.__H,t)&&(n.__=e,n.i=t,Qe.__H.__h.push(n))}function Fu(e){return kr=5,qi(function(){return{current:e}},[])}function qi(e,t){var n=Mu(Sr++,7);return Wc(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Kn(e,t){return kr=8,qi(function(){return e},t)}function _u(e){var t=Qe.context[e.__c],n=Mu(Sr++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Qe)),t.props.value):e.__}function Of(){for(var e;e=qc.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Pu),e.__H.__h.forEach(Hi),e.__H.__h=[]}catch(t){e.__H.__h=[],Ae.__e(t,e.__v)}}Ae.__b=function(e){typeof e.type!="function"||e.o||e.type===qt?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),Qe=null,Ic&&Ic(e)},Ae.__r=function(e){Nc&&Nc(e),Sr=0;var t=(Qe=e.__c).__H;t&&(zi===Qe?(t.__h=[],Qe.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Lu,n.__N=n.i=void 0})):(t.__h.forEach(Pu),t.__h.forEach(Hi),t.__h=[])),zi=Qe},Ae.diffed=function(e){jc&&jc(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(qc.push(t)!==1&&Oc===Ae.requestAnimationFrame||((Oc=Ae.requestAnimationFrame)||If)(Of)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Lu&&(n.__=n.__V),n.i=void 0,n.__V=Lu})),zi=Qe=null},Ae.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Pu),n.__h=n.__h.filter(function(a){return!a.__||Hi(a)})}catch(a){t.some(function(r){r.__h&&(r.__h=[])}),t=[],Ae.__e(a,n.__v)}}),Uc&&Uc(e,t)},Ae.unmount=function(e){zc&&zc(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(a){try{Pu(a)}catch(r){t=r}}),n.__H=void 0,t&&Ae.__e(t,n.__v))};var Hc=typeof requestAnimationFrame=="function";function If(e){var t,n=function(){clearTimeout(a),Hc&&cancelAnimationFrame(t),setTimeout(e)},a=setTimeout(n,100);Hc&&(t=requestAnimationFrame(n))}function Pu(e){var t=Qe,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Qe=t}function Hi(e){var t=Qe;e.__c=e.__(),Qe=t}function Wc(e,t){return!e||e.length!==t.length||t.some(function(n,a){return n!==e[a]})}function $c(e,t){return typeof t=="function"?t(e):t}m();m();function Bu(e,t,n){let a=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),a=t!=="auto"?n[t].matches:[];let r={},u=Object.keys(n);for(let c of u){let g=n[c].matches;for(let p of g)r[p]||(r[p]=[]),r[p].push(c)}let o=r[e];if(o&&o.length>0)for(let c of o)n[c].matches.indexOf(e)>-1&&(n[c]={...n[c],matches:n[c].matches.filter(g=>g!==e)});let i=new Set(a);if(t==="auto")return{...n};i.add(e);let l=Array.from(i);return{...n,[t]:{...n[t],matches:l}}}m();m();function Be(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():_}var Ee=Be();function he(){return Ee.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function Mn(){return Ee.PROD==="1"}function Fn(){return Ee.PROD_API==="1"}function Kc(){return Ee.HAS_CSP_ERROR=="1"}function At(){if(Ee.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function Ru(){return typeof Deno<"u"}var y5=Be().PROD==="1",ja=Be().PROD!=="1";function Ou(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}m();m();m();var Wi=/iPhone/i,Gc=/iPod/i,Vc=/iPad/i,Yc=/\biOS-universal(?:.+)Mac\b/i,$i=/\bAndroid(?:.+)Mobile\b/i,Jc=/Android/i,Ua=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,Iu=/Silk/i,_n=/Windows Phone/i,Qc=/\bWindows(?:.+)ARM\b/i,Zc=/BlackBerry/i,Xc=/BB10/i,e4=/Opera Mini/i,t4=/\b(CriOS|Chrome)(?:.+)Mobile/i,n4=/Mobile(?:.+)Firefox\b/i,a4=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function Nf(e){return t=>t.test(e)}function fa(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,a=n.split("[FBAN");typeof a[1]<"u"&&(n=a[0]),a=n.split("Twitter"),typeof a[1]<"u"&&(n=a[0]);let r=Nf(n),u={apple:{phone:r(Wi)&&!r(_n),ipod:r(Gc),tablet:!r(Wi)&&(r(Vc)||a4(t))&&!r(_n),universal:r(Yc),device:(r(Wi)||r(Gc)||r(Vc)||r(Yc)||a4(t))&&!r(_n)},amazon:{phone:r(Ua),tablet:!r(Ua)&&r(Iu),device:r(Ua)||r(Iu)},android:{phone:!r(_n)&&r(Ua)||!r(_n)&&r($i),tablet:!r(_n)&&!r(Ua)&&!r($i)&&(r(Iu)||r(Jc)),device:!r(_n)&&(r(Ua)||r(Iu)||r($i)||r(Jc))||r(/\bokhttp\b/i)},windows:{phone:r(_n),tablet:r(Qc),device:r(_n)||r(Qc)},other:{blackberry:r(Zc),blackberry10:r(Xc),opera:r(e4),firefox:r(n4),chrome:r(t4),device:r(Zc)||r(Xc)||r(e4)||r(n4)||r(t4)},any:!1,phone:!1,tablet:!1};return u.any=u.apple.device||u.android.device||u.windows.device||u.other.device,u.phone=u.apple.phone||u.android.phone||u.windows.phone,u.tablet=u.apple.tablet||u.android.tablet||u.windows.tablet,u}var Ki="DENO",Gi="CHROME",Nu="FIREFOX";function jf(e){let t=Gi;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=Nu:/deno/i.test(n)&&(t=Ki)}catch{}return e===Gi&&t===Gi||e===Nu&&t===Nu||e===Ki&&t===Ki}function r4(){return typeof Deno<"u"}function za(){return jf(Nu)}function u4(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function Dr(){return!!globalThis.matchMedia("(pointer:fine)").matches}m();var o4={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},i4={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:o4,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}}},tabs:{onUpdated:o4,query:()=>{},sendMessage:()=>{}}};var ee;r4()?ee=i4:ee=globalThis.immersiveTranslateBrowserAPI;m();var s4={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",curentPlan:"\u5F53\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52A8\u7EED\u671F",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",sponsorLabel:"$1 \u8D77\u8D5E\u52A9\u5F00\u53D1\u8005",help:"\u5E2E\u52A9",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D\uFF0C\u518D\u70B9\u51FB\u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D\u5373\u53EF\u8BBE\u7F6E",browserShortcutsNoteForChrome:"\u7C7BChrome \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762\uFF0C\u5728`\u7BA1\u7406\u5FEB\u6377\u952E`\u9762\u677F(`chrome://extensions/shortcuts`)\u8BBE\u7F6E\uFF0C\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8DF3\u8F6C\u5230\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E\u683C\u5F0F\u4E3A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1: \u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1 & PDF\u6587\u6863\u7FFB\u8BD1","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7F51\u9875\u53CC\u8BED\u7FFB\u8BD1\u6269\u5C55\uFF0C\u540C\u65F6\u652F\u6301 PDF \u7FFB\u8BD1\uFF0C\u53CC\u8BED Epub \u7535\u5B50\u4E66\u5236\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u817E\u8BAF\u7FFB\u8BD1\u7B49\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\uFF0C\u514D\u8D39\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8BD1\u5E76\u9690\u85CF\u539F\u6587/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.toggleTranslationMask":"\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.donateContext":"\u4E86\u89E3\u8D5E\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5219\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875(\u4EC5\u8BD1\u6587)/\u663E\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7","fingers.0":"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478",mouseHoldKey:"+ {key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoverHoldKey:"\u9F20\u6807\u60AC\u505C\u540C\u65F6\u6309\u4E0B\u5FEB\u6377\u952E\u7FFB\u8BD1\u6BB5\u843D","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u6587\u6863",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",goAdvancedSettings:"\u53BB\u8FDB\u9636\u8BBE\u7F6E\u9875",goAdvancedInterfaceSettings:"\u53BB\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u8BBE\u7F6E\u9875\u9762",advanced:"\u8FDB\u9636\u8BBE\u7F6E",advancedDescription:"\u4E00\u822C\u65E0\u9700\u8BBE\u7F6E\uFF0C\u4FDD\u6301\u9ED8\u8BA4\u5373\u53EF\u3002\u4EC5\u5BF9\u4E8E\u66F4\u4E13\u4E1A\u7684\u7528\u6237\uFF0C\u63D0\u4F9B\u66F4\u4E2A\u6027\u5316\u7684\u8BBE\u7F6E\u9879\u3002",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00","display both the original text and the translation":"\u540C\u65F6\u663E\u793A\u539F\u6587\u548C\u8BD1\u6587","keyboard shortcuts":"\u952E\u76D8\u5FEB\u6377\u952E",modify:"\u4FEE\u6539\u5FEB\u6377\u952E",reset:"\u91CD\u7F6E",close:"\u5173\u95ED",homepage:"\u4E3B\u9875",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",changeToOnlyTranslationMode:"\u5207\u6362\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u5207\u6362\u4E3A\u53CC\u8BED\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",unknownError:"\u672A\u77E5\u9519\u8BEF",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",needActionForOptions:"(\u9700\u8BBE\u7F6E)",translationEngine:"\u5F15\u64CE\u9009\u9879",sourceLanguage:"\u539F\u6587\u8BED\u8A00",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",forThisSite:"\u5F53\u524D\u7F51\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1 {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8BD1 {language}",alwaysTranslateSomeSite:"\u603B\u662F\u7FFB\u8BD1 {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8BD1 {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u6DFB\u52A0",default:"\u9ED8\u8BA4",forThisLanguage:"\u9488\u5BF9\u8BE5\u8BED\u8A00\uFF1A","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91","translate other languages into specific language":"\u5C06\u5176\u4ED6\u8BED\u8A00\u7FFB\u8BD1\u4E3A\u4F60\u8BBE\u7F6E\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1",language:"\u8BED\u8A00","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",Error:"\u9519\u8BEF",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",interface:"\u754C\u9762\u8BBE\u7F6E",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8BD1\u9875\u9762\u6807\u9898","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1",enableUserscriptPagePopup:"\u5728\u9875\u9762\u4E0A\u663E\u793A\u60AC\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528\u5FEB\u6377\u952E/{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8BD1\u6587\u6837\u5F0F",currentUrl:"\u5F53\u524D\u7F51\u5740",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664","languages.auto":"\u81EA\u52A8\u68C0\u6D4B",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",upload:"\u4E0A\u4F20",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",download:"\u4E0B\u8F7D",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",deleteFail:"\u5220\u9664\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",backupToCloudDescription:"\u624B\u52A8\u4E0A\u4F20\u6216\u6062\u590D\u5907\u4EFD\u6587\u4EF6\uFF0C\u6700\u591A\u5141\u8BB83\u4E2A\u4E0D\u540C\u7684\u5907\u4EFD",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",updatedAt:"\u66F4\u65B0\u4E8E {date}",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u9891\u9053",joinTelegramChannel:"\u5173\u6CE8 Telegram \u9891\u9053\u83B7\u53D6\u6700\u65B0\u66F4\u65B0",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",autoSync:"\u81EA\u52A8\u5B9A\u65F6\u540C\u6B65",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863","edit border color":"\u4FEE\u6539\u8FB9\u6846\u989C\u8272",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",enableSubtitle:"\u5F00\u542F\u5B57\u5E55\u7FFB\u8BD1",enableSubtitleDescription:"\u9488\u5BF9 youtube \u7B49\u7F51\u7AD9\u7684\u5B57\u5E55\u533A\u57DF\u5F00\u542F\u7FFB\u8BD1",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",enableSearchEnhancement:"\u542F\u7528\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A",enableSearchEnhancementDescription:"\u5F00\u542F\u540E\uFF0C\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\u793E\u533A\uFF09\u53F3\u8FB9\u680F\u81EA\u52A8\u663E\u793A\u5BF9\u5E94\u82F1\u6587\u5173\u952E\u8BCD\u7684\u201C\u8C37\u6B4C\u65B0\u95FB\u201D\u641C\u7D22\u7ED3\u679C\u3002",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerMinute":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u5206\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u8350\uFF09, \u5C06\u4F1A\u5728\u5355\u72EC\u4F5C\u4E3A\u4E00\u6BB5\u53D1\u9001\u7ED9 OpenAI","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740",enabledExtension:"\u542F\u7528\u6269\u5C55",clickToDisableExtension:"\u70B9\u51FB\u7981\u7528\u6269\u5C55",clickToEnableExtension:"\u70B9\u51FB\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",modifyMouseHoverKey:"\u4FEE\u6539\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u8BBE\u7F6E",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",disableTint:"* \u4F60\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u542F\u7528\u3002",searchEnhancementNotes:"\u6211\u4EEC\u53D1\u73B0\uFF0C\u4E2D\u6587\u5173\u952E\u8BCD\u548C\u82F1\u6587\u5173\u952E\u8BCD\u7684\u65B0\u95FB\u7ED3\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u542F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u529F\u80FD\u540E\uFF0C\u6211\u4EEC\u4F1A\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\u7F51\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52A8\u7528\u82F1\u6587\u4E3A\u4F60\u641C\u7D22\u540C\u6837\u7684\u5173\u952E\u8BCD\u5E76\u5C55\u793A\u5728\u53F3\u4FA7\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8BE5\u529F\u80FD\u7684\u8BDD\uFF0C\u53EF\u4EE5\u9009\u62E9\u7981\u7528\u5B83\u3002",option:"\u8BBE\u7F6E",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",needLoginAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u81EA\u5B9A\u4E49)",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",onetime_7day:"7 \u5929\u4F53\u9A8C\u5305",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradePlan:"\u70B9\u6B64\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL \u548C OpenAI \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8BD1",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u8BBE\u7F6E\u5176\u4ED6\u5FEB\u6377\u952E\u6765\u89E6\u53D1\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1"};var l4={nologin:"\u672A\u767B\u9304",login:"\u767B\u9304",manageAccount:"\u7BA1\u7406\u8CEC\u6236",logout:"\u9000\u51FA",curentPlan:"\u7576\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u671F",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u64CA\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u8AAA\u660E",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u9644\u52A0\u5143\u4EF6\u7BA1\u7406\u9801\u9762 \u300Cabout:addons\u300D\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u5716\u793A\u300D\uFF0C\u518D\u9EDE\u9078\u300C\u7BA1\u7406\u64F4\u5145\u5957\u4EF6\u5FEB\u901F\u9375\u300D\u5373\u53EF\u8A2D\u5B9A",browserShortcutsNoteForChrome:"Chromium \u6838\u5FC3\u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u64F4\u5145\u529F\u80FD\u7BA1\u7406\u9801\u9762\uFF0C\u5728\u300C\u9375\u76E4\u5FEB\u901F\u9375\u300D\u9801\u9762(chrome://extensions/shortcuts)\u8A2D\u5B9A\uFF0C\u9EDE\u9078\u4E0B\u65B9\u6309\u9215\u524D\u5F80\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u901F\u9375\u683C\u5F0F\u70BA\uFF1A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F: \u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F & PDF\u6587\u6A94\u7FFB\u8B6F","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7DB2\u9801\u96D9\u8A9E\u7FFB\u8B6F\u64F4\u5C55\uFF0C\u540C\u6642\u652F\u6301 PDF \u7FFB\u8B6F\uFF0C\u96D9\u8A9E Epub \u96FB\u5B50\u66F8\u88FD\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u9A30\u8A0A\u7FFB\u8B6F\u7B49\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF0C\u514D\u8CBB\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8B6F\u4E26\u96B1\u85CF\u539F\u6587/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.toggleTranslationMask":"\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.donateContext":"\u4E86\u89E3\u8D0A\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u5247\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u6642\u89F8\u78B0\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801(\u50C5\u8B6F\u6587)/\u986F\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304","fingers.0":"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478",mouseHoldKey:"+ {key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u6377\u9375(\u6253\u958B\u8A2D\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoverHoldKey:"\u9F20\u6A19\u6ED1\u904E\u540C\u6642\u6309\u4E0B X \u9375\u7FFB\u8B6F\u6BB5\u843D","mouse-translate":"\u9F20\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",goAdvancedSettings:"\u524D\u5F80\u9032\u968E\u8A2D\u5B9A\u9801\u9762",goAdvancedInterfaceSettings:"\u524D\u5F80\u81EA\u8A02\u8A2D\u5B9A\u9801\u9762",advanced:"\u9032\u968E\u8A2D\u5B9A",advancedDescription:"\u6B63\u5E38\u60C5\u6CC1\u7121\u9700\u8A2D\u5B9A\uFF0C\u4FDD\u6301\u9810\u8A2D\u5373\u53EF\u3002\u50C5\u91DD\u5C0D\u66F4\u5C08\u696D\u7684\u4F7F\u7528\u8005\uFF0C\u63D0\u4F9B\u66F4\u500B\u4EBA\u5316\u7684\u8A2D\u5B9A\u9805\u76EE\u3002",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00","display both the original text and the translation":"\u540C\u6642\u986F\u793A\u539F\u6587\u548C\u8B6F\u6587","keyboard shortcuts":"\u9375\u76E4\u5FEB\u901F\u9375",modify:"\u8B8A\u66F4\u5FEB\u901F\u9375",reset:"\u91CD\u8A2D",close:"\u95DC\u9589",homepage:"\u9996\u9801",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",changeToOnlyTranslationMode:"\u5207\u63DB\u70BA\u50C5\u986F\u793A\u8B6F\u6587",changeToDualTranslationMode:"\u5207\u63DB\u70BA\u96D9\u8A9E\u7FFB\u8B6F",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:"\u672A\u77E5\u7684\u932F\u8AA4",canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u9078\u9805",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",needActionForOptions:"(\u9700\u8A2D\u5B9A)",translationEngine:"\u5F15\u64CE\u9078\u9805",sourceLanguage:"\u539F\u6587\u8A9E\u8A00",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",forThisSite:"\u7576\u524D\u7DB2\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8B6F {language}",alwaysTranslateSomeSite:"\u7E3D\u662F\u7FFB\u8B6F {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8B6F {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u65B0\u589E",default:"\u9810\u8A2D",forThisLanguage:"\u91DD\u5C0D\u8A72\u8A9E\u8A00\uFF1A","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F","translate other languages into specific language":"\u5C07\u5176\u5B83\u8A9E\u8A00\u7FFB\u8B6F\u70BA\u4F60\u8A2D\u5B9A\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9",language:"\u8A9E\u8A00","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",Error:"\u932F\u8AA4",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",interface:"\u4ECB\u9762\u8A2D\u5B9A",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65",syncToAccount:"\u540C\u6B65\u5230\u8CEC\u6236",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u8CEC\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u8A2D\u5099\u4E4B\u9593\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u8CEC\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u8CEC\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8B6F","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9E\u99AC\u905C\u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8B6F\u9801\u9762\u6A19\u984C","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F",enableUserscriptPagePopup:"\u5728\u9801\u9762\u4E0A\u986F\u793A\u61F8\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528\u5FEB\u901F\u9375/{touch}\u518D\u6B21\u986F\u793A\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5EFA\u8B70\u5C07\u672C\u8A2D\u5B9A\u9801\u9762\u52A0\u5165\u81F3\u6211\u7684\u6700\u611B","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8B6F\u6587\u6A23\u5F0F",currentUrl:"\u76EE\u524D\u7DB2\u5740",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6E96\u3002",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",upload:"\u4E0A\u50B3",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",download:"\u4E0B\u8F09",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",deleteFail:"\u522A\u9664\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",backupToCloudDescription:"\u624B\u52D5\u4E0A\u50B3\u6216\u9084\u539F\u5099\u4EFD\u6A94\u6848\uFF0C\u6700\u591A\u5141\u8A31 3 \u500B\u4E0D\u540C\u7684\u5099\u4EFD",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",updatedAt:"\u66F4\u65B0\u65BC {date}",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u4EEC\u7684<3>Twitter\uFF0C<4>Telegram \u983B\u9053\u4EE5\u53CA\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u90F5\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u983B\u9053",joinTelegramChannel:"\u95DC\u6CE8 Telegram \u983B\u9053\u77AD\u89E3\u66F4\u65B0\u8CC7\u8A0A",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",autoSync:"\u81EA\u52D5\u5B9A\u6642\u540C\u6B65",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6","edit border color":"\u8B8A\u66F4\u908A\u6846\u8272\u5F69",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",enableSubtitle:"\u958B\u555F\u5B57\u5E55\u7FFB\u8B6F",enableSubtitleDescription:"\u91DD\u5C0D youtube \u7B49\u7DB2\u7AD9\u7684\u5B57\u5E55\u5340\u57DF\u958B\u555F\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",enableSearchEnhancement:"\u958B\u555F\u641C\u7D22\u589E\u5F37",enableSearchEnhancementDescription:"\u4E2D\u6587\u641C\u7D22\u8C37\u6B4C\u6703\u5728\u53F3\u908A\u51FA\u73FE\u82F1\u6587\u7248\u8C37\u6B4C\u65B0\u805E",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerMinute":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u5206\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u4EFD\u50B3\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u85A6\uFF09, \u5C07\u6703\u5728\u55AE\u7368\u4F5C\u70BA\u4E00\u6BB5\u767C\u9001\u7D66 OpenAI","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u50B3\u9001\u767C\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",clickToDisableExtension:"\u9EDE\u9078\u505C\u7528\u5957\u4EF6",clickToEnableExtension:"\u9EDE\u9078\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u9F20\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u7F6E\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u5B57\u7B26\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8B58\u5225\u70BA\u89F8\u767C\u5B57\u7B26\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u7981\u7528\u78BA\u8A8D",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",disableTint:"* \u60A8\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u555F\u7528\u3002",searchEnhancementNotes:"\u6211\u5011\u767C\u73FE\uFF0C\u4E2D\u6587\u95DC\u9375\u8A5E\u548C\u82F1\u6587\u95DC\u9375\u8A5E\u7684\u65B0\u805E\u7D50\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u555F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u4FE1\u606F\u589E\u5F37\u529F\u80FD\u5F8C\uFF0C\u6211\u5011\u6703\u5728\u652F\u6301\u7684\u7DB2\u7AD9\uFF08\u8C37\u6B4C\u65B0\u805E\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u95DC\u9375\u8A5E\uFF09\uFF0C\u96EA\u7403\uFF0C\u6771\u65B9\u8CA1\u5BCC\u7DB2\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52D5\u7528\u82F1\u6587\u70BA\u4F60\u641C\u7D22\u540C\u6A23\u7684\u95DC\u9375\u8A5E\u4E26\u5C55\u793A\u5728\u53F3\u5074\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8A72\u529F\u80FD\u7684\u8A71\uFF0C\u53EF\u4EE5\u9078\u64C7\u7981\u7528\u5B83\u3002",option:"\u9078\u9805",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL \u548C OpenAI \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8B6F",currentAccount:"\u7576\u524D\u8CEC\u6236"};var c4={nologin:"Not logged in",login:"Login",manageAccount:"Manage Account",logout:"Logout",curentPlan:"Current Plan",endAt:"Expires",endAuto:"Auto Renew",lineBreakMaxTextCount:"Maximum number of characters allowed per sentence after line break","translate-pdf":"Click to translate PDF","noSupportTranslate-pdf":"The script is not supported, please use a plugin.","translate-firefox-local-pdf":"Click to upload PDF",enableLineBreak:"Whether to turn on automatic line wrapping for long paragraphs",sponsorLabel:"Sponsoring developers from $1 (monthly or one-time)",help:"Help",browserShortcutsNoteForFirefox:`To modify the shortcut key in Firefox browser, you need to open the extension management page 'about: addons', then click "Settings", and then click "Management shortcut key" to set it`,browserShortcutsNoteForChrome:"To modify the shortcut key in Chrome browser, you need to open the extension management page` chrome://extensions/shortcuts `) Settings, click the button below to jump to the shortcut key management page.",browserShortcutsSucks:"Please enter the shortcut key manually in the format:",enableLineBreakDescription:"After opening, a line break will be inserted at the end of each sentence in a long paragraph for easy reading","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate: Web Page&PDF Translation","browser.brandDescription":"Bilingual web page translation, also supports PDF translation, bilingual Epub eBook translation, free to use.","browser.toggleTranslatePage":"Toggle Translate Page","browser.toggleTranslateTheWholePage":"Toggle Translate the Whole Page","browser.toggleOnlyTransation":"Toggle Translate and Hide Original Text","browser.toggleTranslateToThePageEndImmediately":"Toggle Translate to the Bottom of the Page Immediately","browser.toggleTranslateTheMainPage":"Toggle Translate the Main Page","browser.openOptionsPage":"Open Settings Page","browser.toggleTranslationMask":"Toggle translation mask style","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-book","browser.openEbookBuilder":"Make Dual EPUB ebook","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.donateContext":"Sponsor Benefits","browser.translateLocalSubtitleFile":"Translate Subtitle File",confirmResetConfig:"Are you sure you want to reset the settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Create right button menu",toggleBeta:"Enable Beta experimental features",betaDescription:"Enable features that are still experimental, and translation services that are in testing. Join the <1>Telegram group to learn more.",translationLineBreakSettingDescription:"The always line break feature is suitable for layouts with less content, making the layout more neat and tidy. (Use smart line breaks for long paragraphs with more content (more than {count} characters) for saving space)",tempTranslateDomainTitle:"Open the translation time temporarily",tempTranslateDomainDescription:"When a page is translated manually, turn it temporarily on as automatic translation",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",toggleTranslatePageWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide translation display",toggleTranslationMaskWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide the blur effect of the translation",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"Multi-finger touch to show/hide only translation display",addUrlDescription:"The domain name is available and wildcard is supported e.g.: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import configuration from file",export:"Export to file",toggleDebug:"Print debug logs on the console","fingers.0":"Close","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch",mouseHoldKey:"+ {key} translate this paragraph",mouseHoldKeyAuto:"Translate the paragraph directly",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate this paragraph",mouseHoverHoldKey:"Mouse over and press X key to translate paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"All settings reset successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",goAdvancedSettings:"Go to Advanced Settings Page",goAdvancedInterfaceSettings:"Go to Advanced Custom Settings Page",advanced:"Advanced",advancedDescription:"Normally no settings are needed, keep the default. More personalized settings are provided for professional users only.",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"Translate to the bottom of the page immediately after opening the page?",feedback:"Feedback",toggleTranslatePage:"Toggle Translate",translateToThePageEndImmediatelyDescription:"Enabled will translate from the top to the bottom of the page immediately after opening. Disable will translate while reading. (Not recommended to enable)","translate all areas of the page":"Whether to translate all areas of the web page",translationAreaDescription:"When enabled, all areas of the entire web page will be translated. Disabled will use the default smart recognition and translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Directly translate the number of characters in front of the page without waiting to scroll to the visible area","interface language":"Interface language","display both the original text and the translation":"Display both the original text and the translation","keyboard shortcuts":"Keyboard shortcuts",modify:"Edit",reset:"Reset",close:"Close",homepage:"Home Page",more:"More",moreOptions:"Expand more custom settings",translateTheWholePage:"Translate the whole page area",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Dual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"Main areas of intelligent translation","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly implement the interface of the Greasemonkey extension, please use another browser that <1>supports the Greasemonkey extension such as (Firefox Nightly version)",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:"Unknown Error",canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha enabled successfully",disableAlphaSuccess:"Alpha has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(to set up)",goSettings:"to set up",needActionForOptions:"(need to set)",translationEngine:"Engine Options",sourceLanguage:"Original language",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",forThisSite:"Site:",alwaysTranslateSomeLanguage:"Always translate {language}",neverTranslateSomeLanguage:"Never translate {language}",alwaysTranslateSomeSite:"Always translate {hostname}",neverTranslateSomeSite:"Never translate {hostname}",alwaysTranslateSomeSiteOrWildSite:"Always translate this site",alwaysTranslateSomePage:"Always translate this page",add:"Add",default:"Default",forThisLanguage:"For This Language:","add url":"Add URL",edit:"Edit","translate other languages into specific language":"Translate other languages into the language you set","select translation service":"Select a translation service",language:"Language","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",Error:"Error",allowCacheTranslations:"Enable local translation caching (reduce translation requests for duplicate paragraphs)","translation display":"Translation display style","select diplay style":"Please refer to the following examples",interface:"Interface Settings",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dashed underline","translationTheme.dotted":"Dotted Underline","translationTheme.dashedBorder":"Dashed Border","translationTheme.solidBorder":"Dashed Border","translationTheme.underline":"Straight underline","translationTheme.mask":"Blur effect","translationTheme.opacity":"Opacity effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weakening","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dashed underline","translationTheme.nativeDashed":"System Dash Underline","translationTheme.nativeDotted":"System Dotted Underline","translationTheme.nativeUnderline":"System Straight Line Underline","translationTheme.wavy":"Squiggle","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeeplX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"Translate page title","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped",enableUserscriptPagePopup:"Always show Popup windows on the page",enableUserscriptPagePopupDescription:"Three-finger touch to show the Popup.","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",currentUrl:"Current URL",confirm:"Save",cancel:"Cancel",delete:"Delete","languages.auto":"Detect Language",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",authFail:"Authorization Failed",syncTitle:"Please select a file operation",import_hint:"Import",upload:"Upload",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",download:"Download",importSuccess:"Upload Success",importFail:"Import Failed",deleteFail:"Delete Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",backupToCloudDescription:"Upload or restore backup files manually, up to 3 different backups",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",updatedAt:"Updated at {date}",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. You can choose to subscribe to <6>Pro membership to use the out-of-the-box DeepL and OpenAI translation.

You can also follow out <3>Twitter, <4>Telegram Channel, and <5>Email Subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free and we hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. ",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",qqCommunities:"QQ Channel",joinTelegramChannel:"Subscribe to our Telegram channel to get the latest updates",feedbackAndJoin:"Feedback",autoSync:"Auto-Time Sync",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization","edit border color":"Edit border color",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",enableSubtitle:"enableSubtitleTranslation",enableSubtitleDescription:"Enable translations for subtitle areas on sites like youtube",isTranslateTitleDescription:"When enabled, the page title will be translated",enableSearchEnhancement:"Enable Search Enhancement",enableSearchEnhancementDescription:'After enabling, the right sidebar will automatically display "Google News" search results for corresponding English keywords on supported websites (such as Google News, Google Search (partial keywords), Xueqiu, East Money, Futu, Tiger Community).',verifyService:"Verify service",verified:"Successful","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerMinute":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next minute. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"Requests exceed this limit will be queued until the next seconds.","description.prompt":"Send as a user to OpenAI conversation, where {{text}} indicates the text of the paragraph,{{from}} indicates the language of the paragraph,{{to}} indicates the target language, you can omit {{text}}, if so, it'll be sent as a separated message","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"Send the conversation to OpenAI as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the original language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"Default is\uFF1Ageneral. Only set up if there is an API console open domain translation, support fields see <1>Here ","field.scene":"Scene","description.scene":"Default is\uFF1Ageneral. Only set up if there is an API console open Machine Translation Professional, support fields see<1>Here","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please provide a URL with the specific path.",enabledExtension:"Enable extensions",clickToDisableExtension:"Click to disable extension",clickToEnableExtension:"Click to enable the extension",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter customization content",inputOptions:"Writing",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter for translating part of the input box.",inputStartingTriggerKeyDescription:"When you don't need to translate the entire input box, the delimiter allows you to only translate the portion from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means only translating the portion from {startingKey}ja to the end of the input box.",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting is no prefix required, the partial text translation function of the input box cannot be used temporarily.",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Start the translation by quickly pressing 3 times {trailingKey}.",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time (milliseconds) for the input to end the combo trigger",spaceKey:"",noneKey:"Translate the entire text box without prefixes",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement in the following URL",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",clickToSeeQuickDemo:"Click to expand the 30s tutorial video",inputHelperInfo:`Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001". +`,PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",OPTIONS_URL:"https://dash.immersivetranslate.com/",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",MOCK:"0",DEBUG:"0",INSTALL_FROM:"chrome_zip"}});var ug=bf((_o,nu)=>{g();(function(){var e;function t(d){var b,C,h="",A=-1,S;if(d&&d.length)for(S=d.length;(A+=1)>>6&31,128|b&63):b<=65535?h+=String.fromCharCode(224|b>>>12&15,128|b>>>6&63,128|b&63):b<=2097151&&(h+=String.fromCharCode(240|b>>>18&7,128|b>>>12&63,128|b>>>6&63,128|b&63));return h}function n(d){var b,C,h,A,S,U=[],O;if(b=C=h=A=S=0,d&&d.length)for(O=d.length,d+="";b191&&h<224?(A=d.charCodeAt(b+1),U[C]=String.fromCharCode((h&31)<<6|A&63),b+=2):(A=d.charCodeAt(b+1),S=d.charCodeAt(b+2),U[C]=String.fromCharCode((h&15)<<12|(A&63)<<6|S&63),b+=3);return U.join("")}function a(d,b){var C=(d&65535)+(b&65535),h=(d>>16)+(b>>16)+(C>>16);return h<<16|C&65535}function r(d,b){return d<>>32-b}function u(d,b){for(var C=b?"0123456789ABCDEF":"0123456789abcdef",h="",A,S=0,U=d.length;S>>4&15)+C.charAt(A&15);return h}function o(d){var b,C=d.length,h="";for(b=0;b>>8&255);return h}function i(d){var b,C=d.length,h="";for(b=0;b>>8&255,d.charCodeAt(b)&255);return h}function l(d){var b,C=d.length*32,h="";for(b=0;b>5]>>>24-b%32&255);return h}function c(d){var b,C=d.length*32,h="";for(b=0;b>5]>>>b%32&255);return h}function s(d){var b,C=d.length*8,h=Array(d.length>>2),A=h.length;for(b=0;b>5]|=(d.charCodeAt(b/8)&255)<>2),A=h.length;for(b=0;b>5]|=(d.charCodeAt(b/8)&255)<<24-b%32;return h}function p(d,b){var C=b.length,h=Array(),A,S,U,O,y,T,k,v;for(T=Array(Math.ceil(d.length/2)),O=T.length,A=0;A0;){for(y=Array(),U=0,A=0;A0||S>0)&&(y[y.length]=S);h[h.length]=U,T=y}for(k="",A=h.length-1;A>=0;A--)k+=b.charAt(h[A]);for(v=Math.ceil(d.length*8/(Math.log(b.length)/Math.log(2))),A=k.length;Ad.length*8?h+=b:h+=C.charAt(O>>>6*(3-U)&63);return h}e={VERSION:"1.0.6",Base64:function(){var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b="=",C=!1,h=!0;this.encode=function(A){var S,U,O,y="";for(b=b||"=",A=h?t(A):A,len=A.length,S=0;Slen*8?y+=b:y+=d.charAt(O>>>6*(3-U)&63);return y},this.decode=function(A){var S,U,O,y,T,k,v,E,R,F,w="",B=[];if(!A)return A;S=F=0,A=A.replace(new RegExp("\\"+b,"gi"),"");do T=d.indexOf(A.charAt(S++)),k=d.indexOf(A.charAt(S++)),v=d.indexOf(A.charAt(S++)),E=d.indexOf(A.charAt(S++)),R=T<<18|k<<12|v<<6|E,U=R>>16&255,O=R>>8&255,y=R&255,F+=1,v===64?B[F]=String.fromCharCode(U):E===64?B[F]=String.fromCharCode(U,O):B[F]=String.fromCharCode(U,O,y);while(S>>8^C;return(b^-1)>>>0},MD5:function(d){var b=d&&typeof d.uppercase=="boolean"?d.uppercase:!1,C=d&&typeof d.pad=="string"?d.pad:"=",h=d&&typeof d.utf8=="boolean"?d.utf8:!0;this.hex=function(E){return u(A(E,h),b)},this.b64=function(E){return f(A(E),C)},this.any=function(E,R){return p(A(E,h),R)},this.raw=function(E){return A(E,h)},this.hex_hmac=function(E,R){return u(S(E,R),b)},this.b64_hmac=function(E,R){return f(S(E,R),C)},this.any_hmac=function(E,R,F){return p(S(E,R),F)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(E){return typeof E=="boolean"&&(b=E),this},this.setPad=function(E){return C=E||C,this},this.setUTF8=function(E){return typeof E=="boolean"&&(h=E),this};function A(E){return E=h?t(E):E,c(U(s(E),E.length*8))}function S(E,R){var F,w,B,I,N;for(E=h?t(E):E,R=h?t(R):R,F=s(E),F.length>16&&(F=U(F,E.length*8)),w=Array(16),B=Array(16),N=0;N<16;N+=1)w[N]=F[N]^909522486,B[N]=F[N]^1549556828;return I=U(w.concat(s(R)),512+R.length*8),c(U(B.concat(I),512+128))}function U(E,R){var F,w,B,I,N,P=1732584193,x=-271733879,D=-1732584194,M=271733878;for(E[R>>5]|=128<>>9<<4)+14]=R,F=0;F16&&(v=U(v,T.length*8)),E=Array(16),R=Array(16),F=0;F<16;F+=1)E[F]=v[F]^909522486,R[F]=v[F]^1549556828;return w=U(E.concat(m(k)),512+k.length*8),l(U(R.concat(w),512+160))}function U(T,k){var v,E,R,F,w,B,I,N,P=Array(80),x=1732584193,D=-271733879,M=-1732584194,q=271733878,j=-1009589776;for(T[k>>5]|=128<<24-k%32,T[(k+64>>9<<4)+15]=k,v=0;v16&&(j=P(j,x.length*8));q<16;q+=1)$[q]=j[q]^909522486,z[q]=j[q]^1549556828;return M=P($.concat(m(D)),512+D.length*8),l(P(z.concat(M),512+256))}function O(x,D){return x>>>D|x<<32-D}function y(x,D){return x>>>D}function T(x,D,M){return x&D^~x&M}function k(x,D,M){return x&D^x&M^D&M}function v(x){return O(x,2)^O(x,13)^O(x,22)}function E(x){return O(x,6)^O(x,11)^O(x,25)}function R(x){return O(x,7)^O(x,18)^y(x,3)}function F(x){return O(x,17)^O(x,19)^y(x,10)}function w(x){return O(x,28)^O(x,34)^O(x,39)}function B(x){return O(x,14)^O(x,18)^O(x,41)}function I(x){return O(x,1)^O(x,8)^y(x,7)}function N(x){return O(x,19)^O(x,61)^y(x,6)}A=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function P(x,D){var M=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],q=new Array(64),j,$,z,ae,J,Y,pe,he,ue,G,ie,me;for(x[D>>5]|=128<<24-D%32,x[(D+64>>9<<4)+15]=D,ue=0;ue32&&(x=O(x,B.length*8));P<32;P+=1)D[P]=x[P]^909522486,M[P]=x[P]^1549556828;return N=O(D.concat(m(I)),1024+I.length*8),l(O(M.concat(N),1024+512))}function O(B,I){var N,P,x,D=new Array(80),M=new Array(16),q=[new y(1779033703,-205731576),new y(-1150833019,-2067093701),new y(1013904242,-23791573),new y(-1521486534,1595750129),new y(1359893119,-1377402159),new y(-1694144372,725511199),new y(528734635,-79577749),new y(1541459225,327033209)],j=new y(0,0),$=new y(0,0),z=new y(0,0),ae=new y(0,0),J=new y(0,0),Y=new y(0,0),pe=new y(0,0),he=new y(0,0),ue=new y(0,0),G=new y(0,0),ie=new y(0,0),me=new y(0,0),ce=new y(0,0),ye=new y(0,0),Se=new y(0,0),xe=new y(0,0),Z=new y(0,0);for(A===void 0&&(A=[new y(1116352408,-685199838),new y(1899447441,602891725),new y(-1245643825,-330482897),new y(-373957723,-2121671748),new y(961987163,-213338824),new y(1508970993,-1241133031),new y(-1841331548,-1357295717),new y(-1424204075,-630357736),new y(-670586216,-1560083902),new y(310598401,1164996542),new y(607225278,1323610764),new y(1426881987,-704662302),new y(1925078388,-226784913),new y(-2132889090,991336113),new y(-1680079193,633803317),new y(-1046744716,-815192428),new y(-459576895,-1628353838),new y(-272742522,944711139),new y(264347078,-1953704523),new y(604807628,2007800933),new y(770255983,1495990901),new y(1249150122,1856431235),new y(1555081692,-1119749164),new y(1996064986,-2096016459),new y(-1740746414,-295247957),new y(-1473132947,766784016),new y(-1341970488,-1728372417),new y(-1084653625,-1091629340),new y(-958395405,1034457026),new y(-710438585,-1828018395),new y(113926993,-536640913),new y(338241895,168717936),new y(666307205,1188179964),new y(773529912,1546045734),new y(1294757372,1522805485),new y(1396182291,-1651133473),new y(1695183700,-1951439906),new y(1986661051,1014477480),new y(-2117940946,1206759142),new y(-1838011259,344077627),new y(-1564481375,1290863460),new y(-1474664885,-1136513023),new y(-1035236496,-789014639),new y(-949202525,106217008),new y(-778901479,-688958952),new y(-694614492,1432725776),new y(-200395387,1467031594),new y(275423344,851169720),new y(430227734,-1194143544),new y(506948616,1363258195),new y(659060556,-544281703),new y(883997877,-509917016),new y(958139571,-976659869),new y(1322822218,-482243893),new y(1537002063,2003034995),new y(1747873779,-692930397),new y(1955562222,1575990012),new y(2024104815,1125592928),new y(-2067236844,-1578062990),new y(-1933114872,442776044),new y(-1866530822,593698344),new y(-1538233109,-561857047),new y(-1090935817,-1295615723),new y(-965641998,-479046869),new y(-903397682,-366583396),new y(-779700025,566280711),new y(-354779690,-840897762),new y(-176337025,-294727304),new y(116418474,1914138554),new y(174292421,-1563912026),new y(289380356,-1090974290),new y(460393269,320620315),new y(685471733,587496836),new y(852142971,1086792851),new y(1017036298,365543100),new y(1126000580,-1676669620),new y(1288033470,-885112138),new y(1501505948,-60457430),new y(1607167915,987167468),new y(1816402316,1246189591)]),P=0;P<80;P+=1)D[P]=new y(0,0);for(B[I>>5]|=128<<24-(I&31),B[(I+128>>10<<5)+31]=I,x=B.length,P=0;P>>N|I.h<<32-N,B.h=I.h>>>N|I.l<<32-N}function v(B,I,N){B.l=I.h>>>N|I.l<<32-N,B.h=I.l>>>N|I.h<<32-N}function E(B,I,N){B.l=I.l>>>N|I.h<<32-N,B.h=I.h>>>N}function R(B,I,N){var P=(I.l&65535)+(N.l&65535),x=(I.l>>>16)+(N.l>>>16)+(P>>>16),D=(I.h&65535)+(N.h&65535)+(x>>>16),M=(I.h>>>16)+(N.h>>>16)+(D>>>16);B.l=P&65535|x<<16,B.h=D&65535|M<<16}function F(B,I,N,P,x){var D=(I.l&65535)+(N.l&65535)+(P.l&65535)+(x.l&65535),M=(I.l>>>16)+(N.l>>>16)+(P.l>>>16)+(x.l>>>16)+(D>>>16),q=(I.h&65535)+(N.h&65535)+(P.h&65535)+(x.h&65535)+(M>>>16),j=(I.h>>>16)+(N.h>>>16)+(P.h>>>16)+(x.h>>>16)+(q>>>16);B.l=D&65535|M<<16,B.h=q&65535|j<<16}function w(B,I,N,P,x,D){var M=(I.l&65535)+(N.l&65535)+(P.l&65535)+(x.l&65535)+(D.l&65535),q=(I.l>>>16)+(N.l>>>16)+(P.l>>>16)+(x.l>>>16)+(D.l>>>16)+(M>>>16),j=(I.h&65535)+(N.h&65535)+(P.h&65535)+(x.h&65535)+(D.h&65535)+(q>>>16),$=(I.h>>>16)+(N.h>>>16)+(P.h>>>16)+(x.h>>>16)+(D.h>>>16)+(j>>>16);B.l=M&65535|q<<16,B.h=j&65535|$<<16}},RMD160:function(d){var b=d&&typeof d.uppercase=="boolean"?d.uppercase:!1,C=d&&typeof d.pad=="string"?d.pa:"=",h=d&&typeof d.utf8=="boolean"?d.utf8:!0,A=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],S=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],U=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],O=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(w){return u(y(w,h))},this.b64=function(w){return f(y(w,h),C)},this.any=function(w,B){return p(y(w,h),B)},this.raw=function(w){return y(w,h)},this.hex_hmac=function(w,B){return u(T(w,B))},this.b64_hmac=function(w,B){return f(T(w,B),C)},this.any_hmac=function(w,B,I){return p(T(w,B),I)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(w){return typeof w=="boolean"&&(b=w),this},this.setPad=function(w){return typeof w<"u"&&(C=w),this},this.setUTF8=function(w){return typeof w=="boolean"&&(h=w),this};function y(w){return w=h?t(w):w,k(v(s(w),w.length*8))}function T(w,B){w=h?t(w):w,B=h?t(B):B;var I,N,P=s(w),x=Array(16),D=Array(16);for(P.length>16&&(P=v(P,w.length*8)),I=0;I<16;I+=1)x[I]=P[I]^909522486,D[I]=P[I]^1549556828;return N=v(x.concat(s(B)),512+B.length*8),k(v(D.concat(N),512+160))}function k(w){var B,I="",N=w.length*32;for(B=0;B>5]>>>B%32&255);return I}function v(w,B){var I,N,P,x,D=1732584193,M=4023233417,q=2562383102,j=271733878,$=3285377520,z,ae,J,Y,pe,he,ue,G,ie,me;for(w[B>>5]|=128<>>9<<4)+14]=B,x=w.length,P=0;Pfunction(){return t||(0,e[bc(e)[0]])((t={exports:{}}).exports,t),t.exports},Sf=(e,t)=>{for(var n in t)Ii(e,n,{get:t[n],enumerable:!0})},Oi=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of bc(t))!Af.call(e,r)&&r!==n&&Ii(e,r,{get:()=>t[r],enumerable:!(a=wf(t,r))||a.enumerable});return e},Df=(e,t,n)=>(Oi(e,t,"default"),n&&Oi(n,t,"default")),yc=(e,t,n)=>(n=e!=null?Cf(vf(e)):{},Oi(t||!e||!e.__esModule?Ii(n,"default",{value:e,enumerable:!0}):n,e)),xc=kf({"../esmd/npm/webextension-polyfill@0.10.0/node_modules/webextension-polyfill/dist/browser-polyfill.js"(e,t){(function(n,a){if(typeof define=="function"&&define.amd)define("webextension-polyfill",["module"],a);else if(typeof e<"u")a(t);else{var r={exports:{}};a(r),n.browser=r.exports}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:e,function(n){"use strict";if(!globalThis.chrome?.runtime?.id)throw new Error("This script should only be loaded in a browser extension.");if(typeof globalThis.browser>"u"||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){let a="The message port closed before a response was received.",r=u=>{let o={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(Object.keys(o).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class i extends WeakMap{constructor(T,k=void 0){super(k),this.createItem=T}get(T){return this.has(T)||this.set(T,this.createItem(T)),super.get(T)}}let l=y=>y&&typeof y=="object"&&typeof y.then=="function",c=(y,T)=>(...k)=>{u.runtime.lastError?y.reject(new Error(u.runtime.lastError.message)):T.singleCallbackArg||k.length<=1&&T.singleCallbackArg!==!1?y.resolve(k[0]):y.resolve(k)},s=y=>y==1?"argument":"arguments",m=(y,T)=>function(v,...E){if(E.lengthT.maxArgs)throw new Error(`Expected at most ${T.maxArgs} ${s(T.maxArgs)} for ${y}(), got ${E.length}`);return new Promise((R,F)=>{if(T.fallbackToNoCallback)try{v[y](...E,c({resolve:R,reject:F},T))}catch{v[y](...E),T.fallbackToNoCallback=!1,T.noCallback=!0,R()}else T.noCallback?(v[y](...E),R()):v[y](...E,c({resolve:R,reject:F},T))})},p=(y,T,k)=>new Proxy(T,{apply(v,E,R){return k.call(E,y,...R)}}),f=Function.call.bind(Object.prototype.hasOwnProperty),d=(y,T={},k={})=>{let v=Object.create(null),E={has(F,w){return w in y||w in v},get(F,w,B){if(w in v)return v[w];if(!(w in y))return;let I=y[w];if(typeof I=="function")if(typeof T[w]=="function")I=p(y,y[w],T[w]);else if(f(k,w)){let N=m(w,k[w]);I=p(y,y[w],N)}else I=I.bind(y);else if(typeof I=="object"&&I!==null&&(f(T,w)||f(k,w)))I=d(I,T[w],k[w]);else if(f(k,"*"))I=d(I,T[w],k["*"]);else return Object.defineProperty(v,w,{configurable:!0,enumerable:!0,get(){return y[w]},set(N){y[w]=N}}),I;return v[w]=I,I},set(F,w,B,I){return w in v?v[w]=B:y[w]=B,!0},defineProperty(F,w,B){return Reflect.defineProperty(v,w,B)},deleteProperty(F,w){return Reflect.deleteProperty(v,w)}},R=Object.create(y);return new Proxy(R,E)},b=y=>({addListener(T,k,...v){T.addListener(y.get(k),...v)},hasListener(T,k){return T.hasListener(y.get(k))},removeListener(T,k){T.removeListener(y.get(k))}}),C=new i(y=>typeof y!="function"?y:function(k){let v=d(k,{},{getContent:{minArgs:0,maxArgs:0}});y(v)}),h=new i(y=>typeof y!="function"?y:function(k,v,E){let R=!1,F,w=new Promise(P=>{F=function(x){R=!0,P(x)}}),B;try{B=y(k,v,F)}catch(P){B=Promise.reject(P)}let I=B!==!0&&l(B);if(B!==!0&&!I&&!R)return!1;let N=P=>{P.then(x=>{E(x)},x=>{let D;x&&(x instanceof Error||typeof x.message=="string")?D=x.message:D="An unexpected error occurred",E({__mozWebExtensionPolyfillReject__:!0,message:D})}).catch(x=>{})};return N(I?B:w),!0}),A=({reject:y,resolve:T},k)=>{u.runtime.lastError?u.runtime.lastError.message===a?T():y(new Error(u.runtime.lastError.message)):k&&k.__mozWebExtensionPolyfillReject__?y(new Error(k.message)):T(k)},S=(y,T,k,...v)=>{if(v.lengthT.maxArgs)throw new Error(`Expected at most ${T.maxArgs} ${s(T.maxArgs)} for ${y}(), got ${v.length}`);return new Promise((E,R)=>{let F=A.bind(null,{resolve:E,reject:R});v.push(F),k.sendMessage(...v)})},U={devtools:{network:{onRequestFinished:b(C)}},runtime:{onMessage:b(h),onMessageExternal:b(h),sendMessage:S.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:S.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},O={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return o.privacy={network:{"*":O},services:{"*":O},websites:{"*":O}},d(u,U,o)};n.exports=r(chrome)}else n.exports=globalThis.browser})}}),Ec={};Sf(Ec,{default:()=>Eu});var Lf=yc(xc());Df(Ec,yc(xc()));var{default:hc,...Pf}=Lf,Eu=hc!==void 0?hc:Pf;globalThis.immersiveTranslateBrowserAPI=Eu;g();g();g();var ku,Ae,Ac,Mf,Ar,Tc,kc,wu={},Sc=[],Ff=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function $n(e,t){for(var n in t)e[n]=t[n];return e}function Dc(e){var t=e.parentNode;t&&t.removeChild(e)}function ji(e,t,n){var a,r,u,o={};for(u in t)u=="key"?a=t[u]:u=="ref"?r=t[u]:o[u]=t[u];if(arguments.length>2&&(o.children=arguments.length>3?ku.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(u in e.defaultProps)o[u]===void 0&&(o[u]=e.defaultProps[u]);return Tu(e,o,a,r,null)}function Tu(e,t,n,a,r){var u={type:e,props:t,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++Ac};return r==null&&Ae.vnode!=null&&Ae.vnode(u),u}function Wt(e){return e.children}function Cu(e,t){this.props=e,this.context=t}function ja(e,t){if(t==null)return e.__?ja(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?Tu(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=n,f.__b=n.__b+1,(p=h[s])===null||p&&f.key==p.key&&f.type===p.type)h[s]=void 0;else for(m=0;m=n.__.length&&n.__.push({__V:Du}),n.__[e]}function Te(e){return kr=1,Of($c,e)}function Of(e,t,n){var a=Pu(Sr++,2);if(a.t=e,!a.__c&&(a.__=[n?n(t):$c(void 0,t),function(u){var o=a.__N?a.__N[0]:a.__[0],i=a.t(o,u);o!==i&&(a.__N=[i,a.__[1]],a.__c.setState({}))}],a.__c=Qe,!Qe.u)){Qe.u=!0;var r=Qe.shouldComponentUpdate;Qe.shouldComponentUpdate=function(u,o,i){if(!a.__c.__H)return!0;var l=a.__c.__H.__.filter(function(s){return s.__c});if(l.every(function(s){return!s.__N}))return!r||r.call(this,u,o,i);var c=!1;return l.forEach(function(s){if(s.__N){var m=s.__[0];s.__=s.__N,s.__N=void 0,m!==s.__[0]&&(c=!0)}}),!!c&&(!r||r.call(this,u,o,i))}}return a.__N||a.__}function Ne(e,t){var n=Pu(Sr++,3);!Ae.__s&&Wc(n.__H,t)&&(n.__=e,n.i=t,Qe.__H.__h.push(n))}function Mu(e){return kr=5,qi(function(){return{current:e}},[])}function qi(e,t){var n=Pu(Sr++,7);return Wc(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Kn(e,t){return kr=8,qi(function(){return e},t)}function Fu(e){var t=Qe.context[e.__c],n=Pu(Sr++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Qe)),t.props.value):e.__}function If(){for(var e;e=qc.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Lu),e.__H.__h.forEach(Hi),e.__H.__h=[]}catch(t){e.__H.__h=[],Ae.__e(t,e.__v)}}Ae.__b=function(e){typeof e.type!="function"||e.o||e.type===Wt?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),Qe=null,Ic&&Ic(e)},Ae.__r=function(e){Nc&&Nc(e),Sr=0;var t=(Qe=e.__c).__H;t&&(zi===Qe?(t.__h=[],Qe.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Du,n.__N=n.i=void 0})):(t.__h.forEach(Lu),t.__h.forEach(Hi),t.__h=[])),zi=Qe},Ae.diffed=function(e){jc&&jc(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(qc.push(t)!==1&&Oc===Ae.requestAnimationFrame||((Oc=Ae.requestAnimationFrame)||Nf)(If)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Du&&(n.__=n.__V),n.i=void 0,n.__V=Du})),zi=Qe=null},Ae.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Lu),n.__h=n.__h.filter(function(a){return!a.__||Hi(a)})}catch(a){t.some(function(r){r.__h&&(r.__h=[])}),t=[],Ae.__e(a,n.__v)}}),Uc&&Uc(e,t)},Ae.unmount=function(e){zc&&zc(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(a){try{Lu(a)}catch(r){t=r}}),n.__H=void 0,t&&Ae.__e(t,n.__v))};var Hc=typeof requestAnimationFrame=="function";function Nf(e){var t,n=function(){clearTimeout(a),Hc&&cancelAnimationFrame(t),setTimeout(e)},a=setTimeout(n,100);Hc&&(t=requestAnimationFrame(n))}function Lu(e){var t=Qe,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Qe=t}function Hi(e){var t=Qe;e.__c=e.__(),Qe=t}function Wc(e,t){return!e||e.length!==t.length||t.some(function(n,a){return n!==e[a]})}function $c(e,t){return typeof t=="function"?t(e):t}g();g();function _u(e,t,n){let a=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),a=t!=="auto"?n[t].matches:[];let r={},u=Object.keys(n);for(let c of u){let m=n[c].matches;for(let p of m)r[p]||(r[p]=[]),r[p].push(c)}let o=r[e];if(o&&o.length>0)for(let c of o)n[c].matches.indexOf(e)>-1&&(n[c]={...n[c],matches:n[c].matches.filter(m=>m!==e)});let i=new Set(a);if(t==="auto")return{...n};i.add(e);let l=Array.from(i);return{...n,[t]:{...n[t],matches:l}}}g();g();function Be(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():_}var Ee=Be();function fe(){return Ee.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function Mn(){return Ee.PROD==="1"}function Fn(){return Ee.PROD_API==="1"}function Kc(){return Ee.HAS_CSP_ERROR=="1"}function At(){if(Ee.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function Bu(){return typeof Deno<"u"}var y5=Be().PROD==="1",Ua=Be().PROD!=="1";function Ru(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}g();g();g();var Wi=/iPhone/i,Gc=/iPod/i,Vc=/iPad/i,Yc=/\biOS-universal(?:.+)Mac\b/i,$i=/\bAndroid(?:.+)Mobile\b/i,Jc=/Android/i,za=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,Ou=/Silk/i,_n=/Windows Phone/i,Qc=/\bWindows(?:.+)ARM\b/i,Zc=/BlackBerry/i,Xc=/BB10/i,e4=/Opera Mini/i,t4=/\b(CriOS|Chrome)(?:.+)Mobile/i,n4=/Mobile(?:.+)Firefox\b/i,a4=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function jf(e){return t=>t.test(e)}function fa(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,a=n.split("[FBAN");typeof a[1]<"u"&&(n=a[0]),a=n.split("Twitter"),typeof a[1]<"u"&&(n=a[0]);let r=jf(n),u={apple:{phone:r(Wi)&&!r(_n),ipod:r(Gc),tablet:!r(Wi)&&(r(Vc)||a4(t))&&!r(_n),universal:r(Yc),device:(r(Wi)||r(Gc)||r(Vc)||r(Yc)||a4(t))&&!r(_n)},amazon:{phone:r(za),tablet:!r(za)&&r(Ou),device:r(za)||r(Ou)},android:{phone:!r(_n)&&r(za)||!r(_n)&&r($i),tablet:!r(_n)&&!r(za)&&!r($i)&&(r(Ou)||r(Jc)),device:!r(_n)&&(r(za)||r(Ou)||r($i)||r(Jc))||r(/\bokhttp\b/i)},windows:{phone:r(_n),tablet:r(Qc),device:r(_n)||r(Qc)},other:{blackberry:r(Zc),blackberry10:r(Xc),opera:r(e4),firefox:r(n4),chrome:r(t4),device:r(Zc)||r(Xc)||r(e4)||r(n4)||r(t4)},any:!1,phone:!1,tablet:!1};return u.any=u.apple.device||u.android.device||u.windows.device||u.other.device,u.phone=u.apple.phone||u.android.phone||u.windows.phone,u.tablet=u.apple.tablet||u.android.tablet||u.windows.tablet,u}var Ki="DENO",Gi="CHROME",Iu="FIREFOX";function Uf(e){let t=Gi;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=Iu:/deno/i.test(n)&&(t=Ki)}catch{}return e===Gi&&t===Gi||e===Iu&&t===Iu||e===Ki&&t===Ki}function r4(){return typeof Deno<"u"}function Ha(){return Uf(Iu)}function u4(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function Dr(){return!!globalThis.matchMedia("(pointer:fine)").matches}g();var o4={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},i4={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:o4,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}}},tabs:{onUpdated:o4,query:()=>{},sendMessage:()=>{}}};var ee;r4()?ee=i4:ee=globalThis.immersiveTranslateBrowserAPI;g();var s4={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",curentPlan:"\u5F53\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52A8\u7EED\u671F",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",sponsorLabel:"$1 \u8D77\u8D5E\u52A9\u5F00\u53D1\u8005",help:"\u5E2E\u52A9",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D\uFF0C\u518D\u70B9\u51FB\u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D\u5373\u53EF\u8BBE\u7F6E",browserShortcutsNoteForChrome:"\u7C7BChrome \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762\uFF0C\u5728`\u7BA1\u7406\u5FEB\u6377\u952E`\u9762\u677F(`chrome://extensions/shortcuts`)\u8BBE\u7F6E\uFF0C\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8DF3\u8F6C\u5230\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E\u683C\u5F0F\u4E3A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1: \u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1 & PDF\u6587\u6863\u7FFB\u8BD1","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7F51\u9875\u53CC\u8BED\u7FFB\u8BD1\u6269\u5C55\uFF0C\u540C\u65F6\u652F\u6301 PDF \u7FFB\u8BD1\uFF0C\u53CC\u8BED Epub \u7535\u5B50\u4E66\u5236\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u817E\u8BAF\u7FFB\u8BD1\u7B49\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\uFF0C\u514D\u8D39\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8BD1\u5E76\u9690\u85CF\u539F\u6587/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.toggleTranslationMask":"\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.donateContext":"\u4E86\u89E3\u8D5E\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5219\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875(\u4EC5\u8BD1\u6587)/\u663E\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7","fingers.0":"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478",mouseHoldKey:"+ {key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoverHoldKey:"\u9F20\u6807\u60AC\u505C\u540C\u65F6\u6309\u4E0B\u5FEB\u6377\u952E\u7FFB\u8BD1\u6BB5\u843D","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u6587\u6863",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",goAdvancedSettings:"\u53BB\u8FDB\u9636\u8BBE\u7F6E\u9875",goAdvancedInterfaceSettings:"\u53BB\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u8BBE\u7F6E\u9875\u9762",advanced:"\u8FDB\u9636\u8BBE\u7F6E",advancedDescription:"\u4E00\u822C\u65E0\u9700\u8BBE\u7F6E\uFF0C\u4FDD\u6301\u9ED8\u8BA4\u5373\u53EF\u3002\u4EC5\u5BF9\u4E8E\u66F4\u4E13\u4E1A\u7684\u7528\u6237\uFF0C\u63D0\u4F9B\u66F4\u4E2A\u6027\u5316\u7684\u8BBE\u7F6E\u9879\u3002",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00","display both the original text and the translation":"\u540C\u65F6\u663E\u793A\u539F\u6587\u548C\u8BD1\u6587","keyboard shortcuts":"\u952E\u76D8\u5FEB\u6377\u952E",modify:"\u4FEE\u6539\u5FEB\u6377\u952E",reset:"\u91CD\u7F6E",close:"\u5173\u95ED",homepage:"\u4E3B\u9875",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",changeToOnlyTranslationMode:"\u5207\u6362\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u5207\u6362\u4E3A\u53CC\u8BED\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",unknownError:"\u672A\u77E5\u9519\u8BEF",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",needActionForOptions:"(\u9700\u8BBE\u7F6E)",translationEngine:"\u5F15\u64CE\u9009\u9879",sourceLanguage:"\u539F\u6587\u8BED\u8A00",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",forThisSite:"\u5F53\u524D\u7F51\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1 {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8BD1 {language}",alwaysTranslateSomeSite:"\u603B\u662F\u7FFB\u8BD1 {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8BD1 {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u6DFB\u52A0",default:"\u9ED8\u8BA4",forThisLanguage:"\u9488\u5BF9\u8BE5\u8BED\u8A00\uFF1A","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91","translate other languages into specific language":"\u5C06\u5176\u4ED6\u8BED\u8A00\u7FFB\u8BD1\u4E3A\u4F60\u8BBE\u7F6E\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1",language:"\u8BED\u8A00","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",Error:"\u9519\u8BEF",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",interface:"\u754C\u9762\u8BBE\u7F6E",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8BD1\u9875\u9762\u6807\u9898","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1",enableUserscriptPagePopup:"\u5728\u9875\u9762\u4E0A\u663E\u793A\u60AC\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528\u5FEB\u6377\u952E/{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8BD1\u6587\u6837\u5F0F",currentUrl:"\u5F53\u524D\u7F51\u5740",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664","languages.auto":"\u81EA\u52A8\u68C0\u6D4B",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",upload:"\u4E0A\u4F20",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",download:"\u4E0B\u8F7D",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",deleteFail:"\u5220\u9664\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",backupToCloudDescription:"\u624B\u52A8\u4E0A\u4F20\u6216\u6062\u590D\u5907\u4EFD\u6587\u4EF6\uFF0C\u6700\u591A\u5141\u8BB83\u4E2A\u4E0D\u540C\u7684\u5907\u4EFD",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",updatedAt:"\u66F4\u65B0\u4E8E {date}",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u9891\u9053",joinTelegramChannel:"\u5173\u6CE8 Telegram \u9891\u9053\u83B7\u53D6\u6700\u65B0\u66F4\u65B0",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",autoSync:"\u81EA\u52A8\u5B9A\u65F6\u540C\u6B65",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863","edit border color":"\u4FEE\u6539\u8FB9\u6846\u989C\u8272",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",enableSubtitle:"\u5F00\u542F\u5B57\u5E55\u7FFB\u8BD1",enableSubtitleDescription:"\u9488\u5BF9 youtube \u7B49\u7F51\u7AD9\u7684\u5B57\u5E55\u533A\u57DF\u5F00\u542F\u7FFB\u8BD1",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",enableSearchEnhancement:"\u542F\u7528\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A",enableSearchEnhancementDescription:"\u5F00\u542F\u540E\uFF0C\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\u793E\u533A\uFF09\u53F3\u8FB9\u680F\u81EA\u52A8\u663E\u793A\u5BF9\u5E94\u82F1\u6587\u5173\u952E\u8BCD\u7684\u201C\u8C37\u6B4C\u65B0\u95FB\u201D\u641C\u7D22\u7ED3\u679C\u3002",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerMinute":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u5206\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u8350\uFF09, \u5C06\u4F1A\u5728\u5355\u72EC\u4F5C\u4E3A\u4E00\u6BB5\u53D1\u9001\u7ED9 OpenAI","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740",enabledExtension:"\u542F\u7528\u6269\u5C55",clickToDisableExtension:"\u70B9\u51FB\u7981\u7528\u6269\u5C55",clickToEnableExtension:"\u70B9\u51FB\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",modifyMouseHoverKey:"\u4FEE\u6539\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u8BBE\u7F6E",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",disableTint:"* \u4F60\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u542F\u7528\u3002",searchEnhancementNotes:"\u6211\u4EEC\u53D1\u73B0\uFF0C\u4E2D\u6587\u5173\u952E\u8BCD\u548C\u82F1\u6587\u5173\u952E\u8BCD\u7684\u65B0\u95FB\u7ED3\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u542F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u529F\u80FD\u540E\uFF0C\u6211\u4EEC\u4F1A\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\u7F51\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52A8\u7528\u82F1\u6587\u4E3A\u4F60\u641C\u7D22\u540C\u6837\u7684\u5173\u952E\u8BCD\u5E76\u5C55\u793A\u5728\u53F3\u4FA7\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8BE5\u529F\u80FD\u7684\u8BDD\uFF0C\u53EF\u4EE5\u9009\u62E9\u7981\u7528\u5B83\u3002",option:"\u8BBE\u7F6E",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",needLoginAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u81EA\u5B9A\u4E49)",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",onetime_7day:"7 \u5929\u4F53\u9A8C\u5305",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradePlan:"\u70B9\u6B64\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL \u548C OpenAI \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8BD1",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u8BBE\u7F6E\u5176\u4ED6\u5FEB\u6377\u952E\u6765\u89E6\u53D1\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1"};var l4={nologin:"\u672A\u767B\u9304",login:"\u767B\u9304",manageAccount:"\u7BA1\u7406\u8CEC\u6236",logout:"\u9000\u51FA",curentPlan:"\u7576\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u671F",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u64CA\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u8AAA\u660E",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u9644\u52A0\u5143\u4EF6\u7BA1\u7406\u9801\u9762 \u300Cabout:addons\u300D\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u5716\u793A\u300D\uFF0C\u518D\u9EDE\u9078\u300C\u7BA1\u7406\u64F4\u5145\u5957\u4EF6\u5FEB\u901F\u9375\u300D\u5373\u53EF\u8A2D\u5B9A",browserShortcutsNoteForChrome:"Chromium \u6838\u5FC3\u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u64F4\u5145\u529F\u80FD\u7BA1\u7406\u9801\u9762\uFF0C\u5728\u300C\u9375\u76E4\u5FEB\u901F\u9375\u300D\u9801\u9762(chrome://extensions/shortcuts)\u8A2D\u5B9A\uFF0C\u9EDE\u9078\u4E0B\u65B9\u6309\u9215\u524D\u5F80\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u901F\u9375\u683C\u5F0F\u70BA\uFF1A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F: \u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F & PDF\u6587\u6A94\u7FFB\u8B6F","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7DB2\u9801\u96D9\u8A9E\u7FFB\u8B6F\u64F4\u5C55\uFF0C\u540C\u6642\u652F\u6301 PDF \u7FFB\u8B6F\uFF0C\u96D9\u8A9E Epub \u96FB\u5B50\u66F8\u88FD\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u9A30\u8A0A\u7FFB\u8B6F\u7B49\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF0C\u514D\u8CBB\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8B6F\u4E26\u96B1\u85CF\u539F\u6587/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.toggleTranslationMask":"\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.donateContext":"\u4E86\u89E3\u8D0A\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u5247\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u6642\u89F8\u78B0\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801(\u50C5\u8B6F\u6587)/\u986F\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304","fingers.0":"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478",mouseHoldKey:"+ {key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u6377\u9375(\u6253\u958B\u8A2D\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoverHoldKey:"\u9F20\u6A19\u6ED1\u904E\u540C\u6642\u6309\u4E0B X \u9375\u7FFB\u8B6F\u6BB5\u843D","mouse-translate":"\u9F20\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",goAdvancedSettings:"\u524D\u5F80\u9032\u968E\u8A2D\u5B9A\u9801\u9762",goAdvancedInterfaceSettings:"\u524D\u5F80\u81EA\u8A02\u8A2D\u5B9A\u9801\u9762",advanced:"\u9032\u968E\u8A2D\u5B9A",advancedDescription:"\u6B63\u5E38\u60C5\u6CC1\u7121\u9700\u8A2D\u5B9A\uFF0C\u4FDD\u6301\u9810\u8A2D\u5373\u53EF\u3002\u50C5\u91DD\u5C0D\u66F4\u5C08\u696D\u7684\u4F7F\u7528\u8005\uFF0C\u63D0\u4F9B\u66F4\u500B\u4EBA\u5316\u7684\u8A2D\u5B9A\u9805\u76EE\u3002",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00","display both the original text and the translation":"\u540C\u6642\u986F\u793A\u539F\u6587\u548C\u8B6F\u6587","keyboard shortcuts":"\u9375\u76E4\u5FEB\u901F\u9375",modify:"\u8B8A\u66F4\u5FEB\u901F\u9375",reset:"\u91CD\u8A2D",close:"\u95DC\u9589",homepage:"\u9996\u9801",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",changeToOnlyTranslationMode:"\u5207\u63DB\u70BA\u50C5\u986F\u793A\u8B6F\u6587",changeToDualTranslationMode:"\u5207\u63DB\u70BA\u96D9\u8A9E\u7FFB\u8B6F",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:"\u672A\u77E5\u7684\u932F\u8AA4",canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u9078\u9805",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",needActionForOptions:"(\u9700\u8A2D\u5B9A)",translationEngine:"\u5F15\u64CE\u9078\u9805",sourceLanguage:"\u539F\u6587\u8A9E\u8A00",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",forThisSite:"\u7576\u524D\u7DB2\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8B6F {language}",alwaysTranslateSomeSite:"\u7E3D\u662F\u7FFB\u8B6F {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8B6F {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u65B0\u589E",default:"\u9810\u8A2D",forThisLanguage:"\u91DD\u5C0D\u8A72\u8A9E\u8A00\uFF1A","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F","translate other languages into specific language":"\u5C07\u5176\u5B83\u8A9E\u8A00\u7FFB\u8B6F\u70BA\u4F60\u8A2D\u5B9A\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9",language:"\u8A9E\u8A00","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",Error:"\u932F\u8AA4",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",interface:"\u4ECB\u9762\u8A2D\u5B9A",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65",syncToAccount:"\u540C\u6B65\u5230\u8CEC\u6236",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u8CEC\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u8A2D\u5099\u4E4B\u9593\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u8CEC\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u8CEC\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8B6F","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9E\u99AC\u905C\u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8B6F\u9801\u9762\u6A19\u984C","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F",enableUserscriptPagePopup:"\u5728\u9801\u9762\u4E0A\u986F\u793A\u61F8\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528\u5FEB\u901F\u9375/{touch}\u518D\u6B21\u986F\u793A\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5EFA\u8B70\u5C07\u672C\u8A2D\u5B9A\u9801\u9762\u52A0\u5165\u81F3\u6211\u7684\u6700\u611B","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8B6F\u6587\u6A23\u5F0F",currentUrl:"\u76EE\u524D\u7DB2\u5740",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6E96\u3002",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",upload:"\u4E0A\u50B3",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",download:"\u4E0B\u8F09",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",deleteFail:"\u522A\u9664\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",backupToCloudDescription:"\u624B\u52D5\u4E0A\u50B3\u6216\u9084\u539F\u5099\u4EFD\u6A94\u6848\uFF0C\u6700\u591A\u5141\u8A31 3 \u500B\u4E0D\u540C\u7684\u5099\u4EFD",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",updatedAt:"\u66F4\u65B0\u65BC {date}",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u4EEC\u7684<3>Twitter\uFF0C<4>Telegram \u983B\u9053\u4EE5\u53CA\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u90F5\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u983B\u9053",joinTelegramChannel:"\u95DC\u6CE8 Telegram \u983B\u9053\u77AD\u89E3\u66F4\u65B0\u8CC7\u8A0A",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",autoSync:"\u81EA\u52D5\u5B9A\u6642\u540C\u6B65",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6","edit border color":"\u8B8A\u66F4\u908A\u6846\u8272\u5F69",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",enableSubtitle:"\u958B\u555F\u5B57\u5E55\u7FFB\u8B6F",enableSubtitleDescription:"\u91DD\u5C0D youtube \u7B49\u7DB2\u7AD9\u7684\u5B57\u5E55\u5340\u57DF\u958B\u555F\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",enableSearchEnhancement:"\u958B\u555F\u641C\u7D22\u589E\u5F37",enableSearchEnhancementDescription:"\u4E2D\u6587\u641C\u7D22\u8C37\u6B4C\u6703\u5728\u53F3\u908A\u51FA\u73FE\u82F1\u6587\u7248\u8C37\u6B4C\u65B0\u805E",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerMinute":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u5206\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u4EFD\u50B3\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u85A6\uFF09, \u5C07\u6703\u5728\u55AE\u7368\u4F5C\u70BA\u4E00\u6BB5\u767C\u9001\u7D66 OpenAI","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u50B3\u9001\u767C\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",clickToDisableExtension:"\u9EDE\u9078\u505C\u7528\u5957\u4EF6",clickToEnableExtension:"\u9EDE\u9078\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u9F20\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u7F6E\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u5B57\u7B26\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8B58\u5225\u70BA\u89F8\u767C\u5B57\u7B26\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u7981\u7528\u78BA\u8A8D",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",disableTint:"* \u60A8\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u555F\u7528\u3002",searchEnhancementNotes:"\u6211\u5011\u767C\u73FE\uFF0C\u4E2D\u6587\u95DC\u9375\u8A5E\u548C\u82F1\u6587\u95DC\u9375\u8A5E\u7684\u65B0\u805E\u7D50\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u555F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u4FE1\u606F\u589E\u5F37\u529F\u80FD\u5F8C\uFF0C\u6211\u5011\u6703\u5728\u652F\u6301\u7684\u7DB2\u7AD9\uFF08\u8C37\u6B4C\u65B0\u805E\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u95DC\u9375\u8A5E\uFF09\uFF0C\u96EA\u7403\uFF0C\u6771\u65B9\u8CA1\u5BCC\u7DB2\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52D5\u7528\u82F1\u6587\u70BA\u4F60\u641C\u7D22\u540C\u6A23\u7684\u95DC\u9375\u8A5E\u4E26\u5C55\u793A\u5728\u53F3\u5074\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8A72\u529F\u80FD\u7684\u8A71\uFF0C\u53EF\u4EE5\u9078\u64C7\u7981\u7528\u5B83\u3002",option:"\u9078\u9805",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL \u548C OpenAI \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8B6F",currentAccount:"\u7576\u524D\u8CEC\u6236"};var c4={nologin:"Not logged in",login:"Login",manageAccount:"Manage Account",logout:"Logout",curentPlan:"Current Plan",endAt:"Expires",endAuto:"Auto Renew",lineBreakMaxTextCount:"Maximum number of characters allowed per sentence after line break","translate-pdf":"Click to translate PDF","noSupportTranslate-pdf":"The script is not supported, please use a plugin.","translate-firefox-local-pdf":"Click to upload PDF",enableLineBreak:"Whether to turn on automatic line wrapping for long paragraphs",sponsorLabel:"Sponsoring developers from $1 (monthly or one-time)",help:"Help",browserShortcutsNoteForFirefox:`To modify the shortcut key in Firefox browser, you need to open the extension management page 'about: addons', then click "Settings", and then click "Management shortcut key" to set it`,browserShortcutsNoteForChrome:"To modify the shortcut key in Chrome browser, you need to open the extension management page` chrome://extensions/shortcuts `) Settings, click the button below to jump to the shortcut key management page.",browserShortcutsSucks:"Please enter the shortcut key manually in the format:",enableLineBreakDescription:"After opening, a line break will be inserted at the end of each sentence in a long paragraph for easy reading","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate: Web Page&PDF Translation","browser.brandDescription":"Bilingual web page translation, also supports PDF translation, bilingual Epub eBook translation, free to use.","browser.toggleTranslatePage":"Toggle Translate Page","browser.toggleTranslateTheWholePage":"Toggle Translate the Whole Page","browser.toggleOnlyTransation":"Toggle Translate and Hide Original Text","browser.toggleTranslateToThePageEndImmediately":"Toggle Translate to the Bottom of the Page Immediately","browser.toggleTranslateTheMainPage":"Toggle Translate the Main Page","browser.openOptionsPage":"Open Settings Page","browser.toggleTranslationMask":"Toggle translation mask style","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-book","browser.openEbookBuilder":"Make Dual EPUB ebook","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.donateContext":"Sponsor Benefits","browser.translateLocalSubtitleFile":"Translate Subtitle File",confirmResetConfig:"Are you sure you want to reset the settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Create right button menu",toggleBeta:"Enable Beta experimental features",betaDescription:"Enable features that are still experimental, and translation services that are in testing. Join the <1>Telegram group to learn more.",translationLineBreakSettingDescription:"The always line break feature is suitable for layouts with less content, making the layout more neat and tidy. (Use smart line breaks for long paragraphs with more content (more than {count} characters) for saving space)",tempTranslateDomainTitle:"Open the translation time temporarily",tempTranslateDomainDescription:"When a page is translated manually, turn it temporarily on as automatic translation",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",toggleTranslatePageWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide translation display",toggleTranslationMaskWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide the blur effect of the translation",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"Multi-finger touch to show/hide only translation display",addUrlDescription:"The domain name is available and wildcard is supported e.g.: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import configuration from file",export:"Export to file",toggleDebug:"Print debug logs on the console","fingers.0":"Close","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch",mouseHoldKey:"+ {key} translate this paragraph",mouseHoldKeyAuto:"Translate the paragraph directly",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate this paragraph",mouseHoverHoldKey:"Mouse over and press X key to translate paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"All settings reset successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",goAdvancedSettings:"Go to Advanced Settings Page",goAdvancedInterfaceSettings:"Go to Advanced Custom Settings Page",advanced:"Advanced",advancedDescription:"Normally no settings are needed, keep the default. More personalized settings are provided for professional users only.",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"Translate to the bottom of the page immediately after opening the page?",feedback:"Feedback",toggleTranslatePage:"Toggle Translate",translateToThePageEndImmediatelyDescription:"Enabled will translate from the top to the bottom of the page immediately after opening. Disable will translate while reading. (Not recommended to enable)","translate all areas of the page":"Whether to translate all areas of the web page",translationAreaDescription:"When enabled, all areas of the entire web page will be translated. Disabled will use the default smart recognition and translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Directly translate the number of characters in front of the page without waiting to scroll to the visible area","interface language":"Interface language","display both the original text and the translation":"Display both the original text and the translation","keyboard shortcuts":"Keyboard shortcuts",modify:"Edit",reset:"Reset",close:"Close",homepage:"Home Page",more:"More",moreOptions:"Expand more custom settings",translateTheWholePage:"Translate the whole page area",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Dual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"Main areas of intelligent translation","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly implement the interface of the Greasemonkey extension, please use another browser that <1>supports the Greasemonkey extension such as (Firefox Nightly version)",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:"Unknown Error",canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha enabled successfully",disableAlphaSuccess:"Alpha has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(to set up)",goSettings:"to set up",needActionForOptions:"(need to set)",translationEngine:"Engine Options",sourceLanguage:"Original language",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",forThisSite:"Site:",alwaysTranslateSomeLanguage:"Always translate {language}",neverTranslateSomeLanguage:"Never translate {language}",alwaysTranslateSomeSite:"Always translate {hostname}",neverTranslateSomeSite:"Never translate {hostname}",alwaysTranslateSomeSiteOrWildSite:"Always translate this site",alwaysTranslateSomePage:"Always translate this page",add:"Add",default:"Default",forThisLanguage:"For This Language:","add url":"Add URL",edit:"Edit","translate other languages into specific language":"Translate other languages into the language you set","select translation service":"Select a translation service",language:"Language","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",Error:"Error",allowCacheTranslations:"Enable local translation caching (reduce translation requests for duplicate paragraphs)","translation display":"Translation display style","select diplay style":"Please refer to the following examples",interface:"Interface Settings",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dashed underline","translationTheme.dotted":"Dotted Underline","translationTheme.dashedBorder":"Dashed Border","translationTheme.solidBorder":"Dashed Border","translationTheme.underline":"Straight underline","translationTheme.mask":"Blur effect","translationTheme.opacity":"Opacity effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weakening","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dashed underline","translationTheme.nativeDashed":"System Dash Underline","translationTheme.nativeDotted":"System Dotted Underline","translationTheme.nativeUnderline":"System Straight Line Underline","translationTheme.wavy":"Squiggle","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeeplX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"Translate page title","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped",enableUserscriptPagePopup:"Always show Popup windows on the page",enableUserscriptPagePopupDescription:"Three-finger touch to show the Popup.","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",currentUrl:"Current URL",confirm:"Save",cancel:"Cancel",delete:"Delete","languages.auto":"Detect Language",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",authFail:"Authorization Failed",syncTitle:"Please select a file operation",import_hint:"Import",upload:"Upload",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",download:"Download",importSuccess:"Upload Success",importFail:"Import Failed",deleteFail:"Delete Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",backupToCloudDescription:"Upload or restore backup files manually, up to 3 different backups",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",updatedAt:"Updated at {date}",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. You can choose to subscribe to <6>Pro membership to use the out-of-the-box DeepL and OpenAI translation.

You can also follow out <3>Twitter, <4>Telegram Channel, and <5>Email Subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free and we hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. ",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",qqCommunities:"QQ Channel",joinTelegramChannel:"Subscribe to our Telegram channel to get the latest updates",feedbackAndJoin:"Feedback",autoSync:"Auto-Time Sync",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization","edit border color":"Edit border color",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",enableSubtitle:"enableSubtitleTranslation",enableSubtitleDescription:"Enable translations for subtitle areas on sites like youtube",isTranslateTitleDescription:"When enabled, the page title will be translated",enableSearchEnhancement:"Enable Search Enhancement",enableSearchEnhancementDescription:'After enabling, the right sidebar will automatically display "Google News" search results for corresponding English keywords on supported websites (such as Google News, Google Search (partial keywords), Xueqiu, East Money, Futu, Tiger Community).',verifyService:"Verify service",verified:"Successful","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerMinute":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next minute. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"Requests exceed this limit will be queued until the next seconds.","description.prompt":"Send as a user to OpenAI conversation, where {{text}} indicates the text of the paragraph,{{from}} indicates the language of the paragraph,{{to}} indicates the target language, you can omit {{text}}, if so, it'll be sent as a separated message","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"Send the conversation to OpenAI as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the original language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"Default is\uFF1Ageneral. Only set up if there is an API console open domain translation, support fields see <1>Here ","field.scene":"Scene","description.scene":"Default is\uFF1Ageneral. Only set up if there is an API console open Machine Translation Professional, support fields see<1>Here","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please provide a URL with the specific path.",enabledExtension:"Enable extensions",clickToDisableExtension:"Click to disable extension",clickToEnableExtension:"Click to enable the extension",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter customization content",inputOptions:"Writing",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter for translating part of the input box.",inputStartingTriggerKeyDescription:"When you don't need to translate the entire input box, the delimiter allows you to only translate the portion from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means only translating the portion from {startingKey}ja to the end of the input box.",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting is no prefix required, the partial text translation function of the input box cannot be used temporarily.",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Start the translation by quickly pressing 3 times {trailingKey}.",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time (milliseconds) for the input to end the combo trigger",spaceKey:"",noneKey:"Translate the entire text box without prefixes",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement in the following URL",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",clickToSeeQuickDemo:"Click to expand the 30s tutorial video",inputHelperInfo:`Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001". -Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.`,reloadCurrentPage:"Please refresh the current page before starting translation",noLocalFilePermissionForPDF:"No permission to read local files. Please click the button above and upload the local file.",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate the current page",retryAllParagraphs:"Retry all paragraphs",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Noops, something went wrong",disableConfirm:"Search Enhancement Settings",disableOnce:"Disable Once",disableGlobal:"Disable Forever",disableTint:"* You can re-enable in {option}.",searchEnhancementNotes:"We have discovered notable disparities in news results between Chinese and English keywords. By activating the immersive translation Bilingual Display Enhancement feature, we will automatically search for equivalent English keywords and display them on the right side of supported websites (e.g., Google News, Google Search (partial keywords), xueqiu, East Money, Futu, Tiger). You can disable this feature if you don't need it.",option:"Settings",saveSettings:"Save",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"Enable quick press 3 times {trailingKey}, directly translate the entire input box to {inputTargetLanguage}.",enableInputTranslationWithoutTriggerKeyDescription:"To specify the target language, please add a language code at the beginning, such as: ja Hello world",mouseHoverShortcutPlaceholder:"e.g. Shift",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",needLoginAction:"(Premium or custom)",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",daily:"Daily Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",profile:"Profile",billing:"Billing",onetime_7day:"7-day Trial Pack",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt} and will not auto-renew",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly pro membership",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"Current plan: {plan}, will expire on {endAt}, will not auto-renew after expiration.
<1>Enable consecutive annual plan",upgradePlan:"Click here to upgrade to Pro membership",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",upgradeToPro:"Upgrade to Pro","popup.openPro":"Enjoy unrestricted access to DeepL and OpenAI translations after upgrading to Pro Membership. Click here to upgrade","popup.openProForPro":"You are a Pro member, you can directly use DeepL and OpenAI translations",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You have just triggered the immersive translate of the input box by quickly tapping the space key 3 times. The content of the input box will be translated into the default target language.

If this was a mistake, don't worry. You can choose to disable it this time or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show again",disableInputTranslationTips:"* You can also set other shortcuts in {option}, {learnMore}.",learnMore:"Learn more",continueEnalbeInputTranslation:"Continue to enable input translation"};var qf=[{code:"zh-CN",messages:s4},{code:"zh-TW",messages:l4},{code:"en",messages:c4}];var ju="immersiveTranslateBingGlobalState",Ot={};for(let e of qf)Ot[e.code]=e.messages;var ha="Immersive Translate",Q="immersive-translate",m4="pdf/index.html",g4="html/index.html",ge="immersiveTranslate";var p4=ge+"GoogleAccessToken",f4=ge+"AuthFlow";var Wf=ge+"AuthState",Uu=ge+"IframeMessage",j5=ge+"WaitForRateLimit",h4=ge+"DocumentMessageAsk",bt=ge+"DocumentMessageTellThirdParty",zu=ge+"showError",b4=ge+"DocumentMessageThirdPartyTell",y4=ge+"DocumentMessageEventUpload",$f=ge+"DocumentMessageHandler",Kf=`${ge}Container`,x4=`${ge}SpecifiedContainer`,Gn="buildinConfig",Lr="localConfig",Vi="openOptionsPage",Yi="openAboutPage";var Ji="openEbookViewer",Qi="openEbookBuilder";var Hu=`${ge}PageTranslatedStatus`,U5=`${ge}PageUrlChanged`,Vn=`${ge}ReceiveCommand`,E4=ge+"LastUseMouseHoverTime",Zi=ge+"LastUseInputTime",dn=ge+"LastUseManualTranslatePageTime",Pr=`${ge}PopupReceiveMessage`,Gf="immersivetranslate.com",Vf="config.immersivetranslate.com",z5=`https://${Gf}/`,Mr=`https://${Vf}/default_config.json`,H5=`${ge}Mark`,Fr="immersiveTranslateEffect",It=`${ge}Root`,q5=`data-${Q}-effect`,vn=`data-${Q}-translation-element-mark`,T4=`${ge}TranslationElementMark`,W5=`${ge}TranslatedMark`,$5=`${ge}ParagraphId`,C4=`${ge}LoadingId`,Xi=`data-${Q}-loading-id`,w4=`${ge}ErrorId`,qu=`data-${Q}-error-id`,Yf=`${ge}AtomicBlockMark`,v4=`${ge}ExcludeMark`,K5=`data-${Q}-exclude-mark`,Jf=`${ge}StayOriginalMark`,G5=`${ge}PreWhitespaceMark`,Wu=`${ge}InlineMark`,A4=`${ge}BlockMark`,V5=`${ge}Left`,Y5=`${ge}Right`,J5=`${ge}Width`,Q5=`${ge}Height`,Z5=`${ge}Top`,X5=`${ge}FontSize`,k4="lastRunTime",ex=`${ge}GlobalStyleMark`,ba=["@","#"],$u=" --- ",S4=` -`,Wt=`${Q}-target-wrapper`,tx=`${Q}-pdf-target-container`,D4=`${Q}-target-inner`,nx=`${Q}-source-wrapper`,es=`${Q}-target-translation-block-wrapper`,ax=`${Q}-root-translation-theme`,Ha=`${ge}RootTranslationTheme`,L4=`${Q}-target-translation-vertical-block-wrapper`,rx=`${Q}-target-translation-pdf-block-wrapper`,P4=`${Q}-target-translation-pre-whitespace`,ts=`${Q}-target-translation-inline-wrapper`;var M4={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]},Jt=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","ru","ar","it","ms","id","vi","af","th","ur","yue","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","nl","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu"],F4={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Detect Language",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese",zu:"Zulu","":"All Languages"},_4={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B\u8BED\u8A00",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00"},B4={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C\u8A9E\u8A00",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00"};var R4=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/"];var Ku="zh-CN";var d4=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],Bn={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},deepl:{name:"DeepL",homepage:"https://www.deepl.com/translator",docUrl:"https://immersivetranslate.com/docs/services/deepL/",providers:[{name:"pro",nameKey:"deepLProName",descriptionKey:"deepLProDescription",descriptionKeyForNormal:"deeplProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"deepLCustomName",descriptionKey:"deepLCustomDescription",descriptionLink1:"https://www.deepl.com/translator",descriptionLink2:"https://immersivetranslate.com/docs/services/deepL/"}],allProps:[{name:"authKey",providers:["custom"],label:"Auth Key",required:!0,type:"password"}]},openai:{name:"Open AI",homepage:"https://openai.com/api/",docUrl:"https://immersivetranslate.com/docs/services/openai/",providers:[{name:"pro",nameKey:"openaiProName",descriptionKey:"openaiProDescription",descriptionKeyForNormal:"openaiProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"openaiCustomName",descriptionKey:"openaiCustomDescription",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password"},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"openai-model-select",default:"gpt-3.5-turbo-0613",options:[{providers:["custom","pro"],label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{providers:["custom","pro"],label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{providers:["custom"],label:"gpt-4",value:"gpt-4"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.limitPerSecond",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.openai.com/v1/chat/completions",descriptionKey:"description.apiUrl",optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"text",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.`,reloadCurrentPage:"Please refresh the current page before starting translation",noLocalFilePermissionForPDF:"No permission to read local files. Please click the button above and upload the local file.",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate the current page",retryAllParagraphs:"Retry all paragraphs",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Noops, something went wrong",disableConfirm:"Search Enhancement Settings",disableOnce:"Disable Once",disableGlobal:"Disable Forever",disableTint:"* You can re-enable in {option}.",searchEnhancementNotes:"We have discovered notable disparities in news results between Chinese and English keywords. By activating the immersive translation Bilingual Display Enhancement feature, we will automatically search for equivalent English keywords and display them on the right side of supported websites (e.g., Google News, Google Search (partial keywords), xueqiu, East Money, Futu, Tiger). You can disable this feature if you don't need it.",option:"Settings",saveSettings:"Save",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"Enable quick press 3 times {trailingKey}, directly translate the entire input box to {inputTargetLanguage}.",enableInputTranslationWithoutTriggerKeyDescription:"To specify the target language, please add a language code at the beginning, such as: ja Hello world",mouseHoverShortcutPlaceholder:"e.g. Shift",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",needLoginAction:"(Premium or custom)",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",daily:"Daily Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",profile:"Profile",billing:"Billing",onetime_7day:"7-day Trial Pack",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt} and will not auto-renew",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly pro membership",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"Current plan: {plan}, will expire on {endAt}, will not auto-renew after expiration.
<1>Enable consecutive annual plan",upgradePlan:"Click here to upgrade to Pro membership",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",upgradeToPro:"Upgrade to Pro","popup.openPro":"Enjoy unrestricted access to DeepL and OpenAI translations after upgrading to Pro Membership. Click here to upgrade","popup.openProForPro":"You are a Pro member, you can directly use DeepL and OpenAI translations",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You have just triggered the immersive translate of the input box by quickly tapping the space key 3 times. The content of the input box will be translated into the default target language.

If this was a mistake, don't worry. You can choose to disable it this time or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show again",disableInputTranslationTips:"* You can also set other shortcuts in {option}, {learnMore}.",learnMore:"Learn more",continueEnalbeInputTranslation:"Continue to enable input translation"};var Wf=[{code:"zh-CN",messages:s4},{code:"zh-TW",messages:l4},{code:"en",messages:c4}];var Nu="immersiveTranslateBingGlobalState",Ot={};for(let e of Wf)Ot[e.code]=e.messages;var ha="Immersive Translate",Q="immersive-translate",m4="pdf/index.html",g4="html/index.html",ge="immersiveTranslate";var p4=ge+"GoogleAccessToken",f4=ge+"AuthFlow";var $f=ge+"AuthState",ju=ge+"IframeMessage",j5=ge+"WaitForRateLimit",h4=ge+"DocumentMessageAsk",bt=ge+"DocumentMessageTellThirdParty",Uu=ge+"showError",b4=ge+"DocumentMessageThirdPartyTell",y4=ge+"DocumentMessageEventUpload",Kf=ge+"DocumentMessageHandler",Gf=`${ge}Container`,x4=`${ge}SpecifiedContainer`,Gn="buildinConfig",Lr="localConfig",Vi="openOptionsPage",Yi="openAboutPage";var Ji="openEbookViewer",Qi="openEbookBuilder";var zu=`${ge}PageTranslatedStatus`,U5=`${ge}PageUrlChanged`,Vn=`${ge}ReceiveCommand`,E4=ge+"LastUseMouseHoverTime",Zi=ge+"LastUseInputTime",dn=ge+"LastUseManualTranslatePageTime",Pr=`${ge}PopupReceiveMessage`,Vf="immersivetranslate.com",Yf="config.immersivetranslate.com",z5=`https://${Vf}/`,Mr=`https://${Yf}/default_config.json`,H5=`${ge}Mark`,Fr="immersiveTranslateEffect",It=`${ge}Root`,q5=`data-${Q}-effect`,vn=`data-${Q}-translation-element-mark`,T4=`${ge}TranslationElementMark`,W5=`${ge}TranslatedMark`,$5=`${ge}ParagraphId`,C4=`${ge}LoadingId`,Xi=`data-${Q}-loading-id`,w4=`${ge}ErrorId`,Hu=`data-${Q}-error-id`,Jf=`${ge}AtomicBlockMark`,v4=`${ge}ExcludeMark`,K5=`data-${Q}-exclude-mark`,Qf=`${ge}StayOriginalMark`,G5=`${ge}PreWhitespaceMark`,qu=`${ge}InlineMark`,A4=`${ge}BlockMark`,V5=`${ge}Left`,Y5=`${ge}Right`,J5=`${ge}Width`,Q5=`${ge}Height`,Z5=`${ge}Top`,X5=`${ge}FontSize`,k4="lastRunTime",ex=`${ge}GlobalStyleMark`,ba=["@","#"],Wu=" --- ",S4=` +`,$t=`${Q}-target-wrapper`,tx=`${Q}-pdf-target-container`,D4=`${Q}-target-inner`,nx=`${Q}-source-wrapper`,es=`${Q}-target-translation-block-wrapper`,ax=`${Q}-root-translation-theme`,qa=`${ge}RootTranslationTheme`,L4=`${Q}-target-translation-vertical-block-wrapper`,rx=`${Q}-target-translation-pdf-block-wrapper`,P4=`${Q}-target-translation-pre-whitespace`,ts=`${Q}-target-translation-inline-wrapper`;var M4={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]},Qt=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","ru","ar","it","ms","id","vi","af","th","ur","yue","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","nl","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu"],F4={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Detect Language",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese",zu:"Zulu","":"All Languages"},_4={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B\u8BED\u8A00",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00"},B4={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C\u8A9E\u8A00",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00"};var R4=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/"];var $u="zh-CN";var d4=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],Bn={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},deepl:{name:"DeepL",homepage:"https://www.deepl.com/translator",docUrl:"https://immersivetranslate.com/docs/services/deepL/",providers:[{name:"pro",nameKey:"deepLProName",descriptionKey:"deepLProDescription",descriptionKeyForNormal:"deeplProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"deepLCustomName",descriptionKey:"deepLCustomDescription",descriptionLink1:"https://www.deepl.com/translator",descriptionLink2:"https://immersivetranslate.com/docs/services/deepL/"}],allProps:[{name:"authKey",providers:["custom"],label:"Auth Key",required:!0,type:"password"}]},openai:{name:"Open AI",homepage:"https://openai.com/api/",docUrl:"https://immersivetranslate.com/docs/services/openai/",providers:[{name:"pro",nameKey:"openaiProName",descriptionKey:"openaiProDescription",descriptionKeyForNormal:"openaiProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"openaiCustomName",descriptionKey:"openaiCustomDescription",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password"},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"openai-model-select",default:"gpt-3.5-turbo-0613",options:[{providers:["custom","pro"],label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{providers:["custom","pro"],label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{providers:["custom"],label:"gpt-4",value:"gpt-4"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.limitPerSecond",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.openai.com/v1/chat/completions",descriptionKey:"description.apiUrl",optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"text",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`,optional:!0}]},transmart:{name:"Transmart",homepage:"https://transmart.qq.com/"},chatgpt:{name:"ChatGPT Web(3.5 mobile)",homepage:"https://chat.openai.com",beta:!0},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:"https://immersivetranslate.com/docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text"},{name:"appSecret",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/",docUrl:"https://immersivetranslate.com/docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text"},{name:"secretKey",required:!0,type:"password"}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:"https://immersivetranslate.com/docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text"},{name:"AccessKeySecret",required:!0,type:"password"},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:"https://immersivetranslate.com/docs/services/azure/",allProps:[{name:"region",required:!0,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password"}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:"https://immersivetranslate.com/docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text"},{name:"key",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:"https://immersivetranslate.com/docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text"},{name:"secretAccessKey",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:"https://immersivetranslate.com/docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password"}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:"https://immersivetranslate.com/docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:ba,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:"https://immersivetranslate.com/docs/services/openL/",allProps:[...d4,{type:"password",name:"apikey",required:!0}],props:d4},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",alpha:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:"https://immersivetranslate.com/docs/services/niu",allProps:[{name:"APIKEY",required:!0,type:"password"}]}},Gu={type:ge+"ChildFrameToRootFrameIdentifier"},Vu=["Alt","Ctrl","Shift","Auto","Off","OtherCustom","Other"];var ns="user_from_plugin",Qt="user_info",as=Mn()||Fn()?"https://api2.immersivetranslate.com":"https://test-api2.immersivetranslate.com",ux=Mn()||Fn()?"https://immersivetranslate.com/accounts/login?from=plugin":"https://test.immersivetranslate.com/accounts/login?from=plugin",rs=Mn()||Fn()?"https://immersivetranslate.com/profile":"https://test.immersivetranslate.com/profile",_r=Mn()||Fn()?"https://immersivetranslate.com/pricing":"https://test.immersivetranslate.com/pricing",Yu=_r+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",us=_r+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",O4=_r+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal";function I4(e){let t=ee.runtime.getURL(m4),n=new URL(t);return(e.startsWith("http")||!za())&&n.searchParams.set("file",e),n.href}function N4(){return Be().PDF_VIEWER_URL}m();m();var qa=ge+"CacheKey_";function Qf(e,t){let n=qa+e;return ee.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function Zf(){let e=ee.storage.local.refresh;e&&e()}function Br(e,t){let n=qa+e;return ee.storage.local.get(n).then(a=>{if(a[n]===void 0)return t;let{value:r,expired:u}=a[n];return u&&ua.startsWith(qa));if(n.length>0)return ee.storage.local.remove(n)}}var Nt={get:Qf,set:Xf,getExpired:Br,setExpired:Rr,remove:Or,clear:eh,refresh:Zf};m();m();m();m();m();m();function Wa(){let e,t="pending",n=new Promise((a,r)=>{e={async resolve(u){await u,t="fulfilled",a(u)},reject(u){t="rejected",r(u)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}m();var os=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function Ju(e,t){let n=Wa(),a=setTimeout(()=>n.reject(new os),t);return Promise.race([e,n]).finally(()=>clearTimeout(a))}m();m();function Ir(e,t={}){let{signal:n,persistent:a}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((r,u)=>{let o=()=>{clearTimeout(l),u(new DOMException("Delay was aborted.","AbortError"))},l=setTimeout(()=>{n?.removeEventListener("abort",o),r()},e);if(n?.addEventListener("abort",o,{once:!0}),a===!1)try{Deno.unrefTimer(l)}catch(c){if(!(c instanceof ReferenceError))throw c}})}m();var j4=class{#e=0;#t=[];#n=[];#a=Wa();add(t){++this.#e,this.#r(t[Symbol.asyncIterator]())}async#r(t){try{let{value:n,done:a}=await t.next();a?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#a.resolve()}async*iterate(){for(;this.#e>0;){await this.#a;for(let t=0;tSh,bgBlue:()=>Mh,bgBrightBlack:()=>Rh,bgBrightBlue:()=>jh,bgBrightCyan:()=>zh,bgBrightGreen:()=>Ih,bgBrightMagenta:()=>Uh,bgBrightRed:()=>Oh,bgBrightWhite:()=>Hh,bgBrightYellow:()=>Nh,bgCyan:()=>_h,bgGreen:()=>Lh,bgMagenta:()=>Fh,bgRed:()=>Dh,bgRgb24:()=>Kh,bgRgb8:()=>Wh,bgWhite:()=>Bh,bgYellow:()=>Ph,black:()=>dh,blue:()=>fh,bold:()=>rh,brightBlack:()=>H4,brightBlue:()=>wh,brightCyan:()=>Ah,brightGreen:()=>Th,brightMagenta:()=>vh,brightRed:()=>Eh,brightWhite:()=>kh,brightYellow:()=>Ch,cyan:()=>bh,dim:()=>uh,getColorEnabled:()=>nh,gray:()=>xh,green:()=>gh,hidden:()=>lh,inverse:()=>sh,italic:()=>oh,magenta:()=>hh,red:()=>mh,reset:()=>ah,rgb24:()=>$h,rgb8:()=>qh,setColorEnabled:()=>th,strikethrough:()=>ch,stripColor:()=>Vh,underline:()=>ih,white:()=>yh,yellow:()=>ph});m();var{Deno:U4}=globalThis,z4=typeof U4?.noColor=="boolean"?U4.noColor:!0,is=!z4;function th(e){z4||(is=e)}function nh(){return is}function Ce(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function we(e,t){return is?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function ah(e){return we(e,Ce([0],0))}function rh(e){return we(e,Ce([1],22))}function uh(e){return we(e,Ce([2],22))}function oh(e){return we(e,Ce([3],23))}function ih(e){return we(e,Ce([4],24))}function sh(e){return we(e,Ce([7],27))}function lh(e){return we(e,Ce([8],28))}function ch(e){return we(e,Ce([9],29))}function dh(e){return we(e,Ce([30],39))}function mh(e){return we(e,Ce([31],39))}function gh(e){return we(e,Ce([32],39))}function ph(e){return we(e,Ce([33],39))}function fh(e){return we(e,Ce([34],39))}function hh(e){return we(e,Ce([35],39))}function bh(e){return we(e,Ce([36],39))}function yh(e){return we(e,Ce([37],39))}function xh(e){return H4(e)}function H4(e){return we(e,Ce([90],39))}function Eh(e){return we(e,Ce([91],39))}function Th(e){return we(e,Ce([92],39))}function Ch(e){return we(e,Ce([93],39))}function wh(e){return we(e,Ce([94],39))}function vh(e){return we(e,Ce([95],39))}function Ah(e){return we(e,Ce([96],39))}function kh(e){return we(e,Ce([97],39))}function Sh(e){return we(e,Ce([40],49))}function Dh(e){return we(e,Ce([41],49))}function Lh(e){return we(e,Ce([42],49))}function Ph(e){return we(e,Ce([43],49))}function Mh(e){return we(e,Ce([44],49))}function Fh(e){return we(e,Ce([45],49))}function _h(e){return we(e,Ce([46],49))}function Bh(e){return we(e,Ce([47],49))}function Rh(e){return we(e,Ce([100],49))}function Oh(e){return we(e,Ce([101],49))}function Ih(e){return we(e,Ce([102],49))}function Nh(e){return we(e,Ce([103],49))}function jh(e){return we(e,Ce([104],49))}function Uh(e){return we(e,Ce([105],49))}function zh(e){return we(e,Ce([106],49))}function Hh(e){return we(e,Ce([107],49))}function Yn(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function qh(e,t){return we(e,Ce([38,5,Yn(t)],39))}function Wh(e,t){return we(e,Ce([48,5,Yn(t)],49))}function $h(e,t){return typeof t=="number"?we(e,Ce([38,2,t>>16&255,t>>8&255,t&255],39)):we(e,Ce([38,2,Yn(t.r),Yn(t.g),Yn(t.b)],39))}function Kh(e,t){return typeof t=="number"?we(e,Ce([48,2,t>>16&255,t>>8&255,t&255],49)):we(e,Ce([48,2,Yn(t.r),Yn(t.g),Yn(t.b)],49))}var Gh=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function Vh(e){return e.replace(Gh,"")}m();m();var ss=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},Yh={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function ls(e,t){let n={...Yh,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let a=n.minTimeout,r;for(let u=0;usetTimeout(i,a)),a*=n.multiplier,a=Math.max(a,n.minTimeout),n.maxTimeout>=0&&(a=Math.min(a,n.maxTimeout)),r=o}throw new ss(r,n.maxAttempts)}m();var Rn=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function cs(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",a,r=t.length;for(a=2;a>2],n+=Rn[(t[a-2]&3)<<4|t[a-1]>>4],n+=Rn[(t[a-1]&15)<<2|t[a]>>6],n+=Rn[t[a]&63];return a===r+1&&(n+=Rn[t[a-2]>>2],n+=Rn[(t[a-2]&3)<<4],n+="=="),a===r&&(n+=Rn[t[a-2]>>2],n+=Rn[(t[a-2]&3)<<4|t[a-1]>>4],n+=Rn[(t[a-1]&15)<<2],n+="="),n}m();m();var rE=Number.isNaN||function(e){return typeof e=="number"&&e!==e};m();m();var Qu=globalThis||(typeof window<"u"?window:self),Qh=Object.create,ms=Object.defineProperty,Zh=Object.getOwnPropertyDescriptor,Xh=Object.getOwnPropertyNames,e2=Object.getPrototypeOf,t2=Object.prototype.hasOwnProperty,n2=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),a2=(e,t)=>{for(var n in t)ms(e,n,{get:t[n],enumerable:!0})},ds=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Xh(t))!t2.call(e,r)&&r!==n&&ms(e,r,{get:()=>t[r],enumerable:!(a=Zh(t,r))||a.enumerable});return e},r2=(e,t,n)=>(ds(e,t,"default"),n&&ds(n,t,"default")),W4=(e,t,n)=>(n=e!=null?Qh(e2(e)):{},ds(t||!e||!e.__esModule?ms(n,"default",{value:e,enumerable:!0}):n,e)),$4=n2((e,t)=>{var n="Expected a function",a=NaN,r="[object Symbol]",u=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt,s=typeof Qu=="object"&&Qu&&Qu.Object===Object&&Qu,g=typeof self=="object"&&self&&self.Object===Object&&self,p=s||g||Function("return this")(),f=Object.prototype,d=f.toString,b=Math.max,C=Math.min,h=function(){return p.Date.now()};function A(k,v,E){var R,F,w,B,I,N,P=0,x=!1,D=!1,M=!0;if(typeof k!="function")throw new TypeError(n);v=T(v)||0,U(E)&&(x=!!E.leading,D="maxWait"in E,w=D?b(T(E.maxWait)||0,v):w,M="trailing"in E?!!E.trailing:M);function q(ue){var G=R,ie=F;return R=F=void 0,P=ue,B=k.apply(ie,G),B}function j(ue){return P=ue,I=setTimeout(ae,v),x?q(ue):B}function $(ue){var G=ue-N,ie=ue-P,me=v-G;return D?C(me,w-ie):me}function z(ue){var G=ue-N,ie=ue-P;return N===void 0||G>=v||G<0||D&&ie>=w}function ae(){var ue=h();if(z(ue))return J(ue);I=setTimeout(ae,$(ue))}function J(ue){return I=void 0,M&&R?q(ue):(R=F=void 0,B)}function Y(){I!==void 0&&clearTimeout(I),P=0,R=N=F=I=void 0}function pe(){return I===void 0?B:J(h())}function fe(){var ue=h(),G=z(ue);if(R=arguments,F=this,N=ue,G){if(I===void 0)return j(N);if(D)return I=setTimeout(ae,v),q(N)}return I===void 0&&(I=setTimeout(ae,v)),B}return fe.cancel=Y,fe.flush=pe,fe}function S(k,v,E){var R=!0,F=!0;if(typeof k!="function")throw new TypeError(n);return U(E)&&(R="leading"in E?!!E.leading:R,F="trailing"in E?!!E.trailing:F),A(k,v,{leading:R,maxWait:v,trailing:F})}function U(k){var v=typeof k;return!!k&&(v=="object"||v=="function")}function O(k){return!!k&&typeof k=="object"}function y(k){return typeof k=="symbol"||O(k)&&d.call(k)==r}function T(k){if(typeof k=="number")return k;if(y(k))return a;if(U(k)){var v=typeof k.valueOf=="function"?k.valueOf():k;k=U(v)?v+"":v}if(typeof k!="string")return k===0?k:+k;k=k.replace(u,"");var E=i.test(k);return E||l.test(k)?c(k.slice(2),E?2:8):o.test(k)?a:+k}t.exports=S}),K4={};a2(K4,{default:()=>yt});var u2=W4($4());r2(K4,W4($4()));var{default:q4,...o2}=u2,yt=q4!==void 0?q4:o2;m();m();var i2=Object.create,ps=Object.defineProperty,s2=Object.getOwnPropertyDescriptor,l2=Object.getOwnPropertyNames,c2=Object.getPrototypeOf,d2=Object.prototype.hasOwnProperty,m2=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),g2=(e,t)=>{for(var n in t)ps(e,n,{get:t[n],enumerable:!0})},gs=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of l2(t))!d2.call(e,r)&&r!==n&&ps(e,r,{get:()=>t[r],enumerable:!(a=s2(t,r))||a.enumerable});return e},p2=(e,t,n)=>(gs(e,t,"default"),n&&gs(n,t,"default")),V4=(e,t,n)=>(n=e!=null?i2(c2(e)):{},gs(t||!e||!e.__esModule?ps(n,"default",{value:e,enumerable:!0}):n,e)),Y4=m2((e,t)=>{(function(n,a){typeof e=="object"&&typeof t=="object"?t.exports=a():typeof define=="function"&&define.amd?define([],a):typeof e=="object"?e.notie=a():n.notie=a()})(e,function(){return function(n){function a(u){if(r[u])return r[u].exports;var o=r[u]={i:u,l:!1,exports:{}};return n[u].call(o.exports,o,o.exports,a),o.l=!0,o.exports}var r={};return a.m=n,a.c=r,a.i=function(u){return u},a.d=function(u,o,i){a.o(u,o)||Object.defineProperty(u,o,{configurable:!1,enumerable:!0,get:i})},a.n=function(u){var o=u&&u.__esModule?function(){return u.default}:function(){return u};return a.d(o,"a",o),o},a.o=function(u,o){return Object.prototype.hasOwnProperty.call(u,o)},a.p="",a(a.s=1)}([function(n,a){n.exports=function(r){return r.webpackPolyfill||(r.deprecate=function(){},r.paths=[],r.children||(r.children=[]),Object.defineProperty(r,"loaded",{enumerable:!0,get:function(){return r.l}}),Object.defineProperty(r,"id",{enumerable:!0,get:function(){return r.i}}),r.webpackPolyfill=1),r}},function(n,a,r){"use strict";(function(u){var o,i,l,c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s};(function(s,g){c(a)==="object"&&c(u)==="object"?u.exports=g():(i=[],o=g,l=typeof o=="function"?o.apply(a,i):o,l!==void 0&&(u.exports=l))})(void 0,function(){return function(s){function g(f){if(p[f])return p[f].exports;var d=p[f]={i:f,l:!1,exports:{}};return s[f].call(d.exports,d,d.exports,g),d.l=!0,d.exports}var p={};return g.m=s,g.c=p,g.i=function(f){return f},g.d=function(f,d,b){g.o(f,d)||Object.defineProperty(f,d,{configurable:!1,enumerable:!0,get:b})},g.n=function(f){var d=f&&f.__esModule?function(){return f.default}:function(){return f};return g.d(d,"a",d),d},g.o=function(f,d){return Object.prototype.hasOwnProperty.call(f,d)},g.p="",g(g.s=0)}([function(s,g,p){function f(j,$){var z={};for(var ae in j)$.indexOf(ae)>=0||Object.prototype.hasOwnProperty.call(j,ae)&&(z[ae]=j[ae]);return z}Object.defineProperty(g,"__esModule",{value:!0});var d=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(j){return typeof j>"u"?"undefined":c(j)}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j>"u"?"undefined":c(j)},b=Object.assign||function(j){for(var $=1;$'+ae+"",ie.onclick=function(){return F(me,G)},ie.listener=function(ce){(v(ce)||E(ce))&&I()},R(ie,G),Y&&Y<1&&(Y=1),!fe&&Y&&U(Y).then(function(){return F(me,G)})},P=g.force=function(j,$){var z=j.type,ae=z===void 0?5:z,J=j.text,Y=j.buttonText,pe=Y===void 0?"OK":Y,fe=j.callback,ue=j.position,G=ue===void 0?h.positions.force||G.top:ue;O(),I();var ie=document.createElement("div"),me=y();ie.id=me;var ce=document.createElement("div");ce.classList.add(h.classes.textbox),ce.classList.add(h.classes.backgroundInfo),ce.innerHTML='
'+J+"
";var ye=document.createElement("div");ye.classList.add(h.classes.button),ye.classList.add(T[ae]),ye.innerHTML=pe,ye.onclick=function(){F(me,G),B(),fe?fe():$&&$()},ie.appendChild(ce),ie.appendChild(ye),ie.listener=function(Se){v(Se)&&ye.click()},R(ie,G),w()},x=g.confirm=function(j,$,z){var ae=j.text,J=j.submitText,Y=J===void 0?"Yes":J,pe=j.cancelText,fe=pe===void 0?"Cancel":pe,ue=j.submitCallback,G=j.cancelCallback,ie=j.position,me=ie===void 0?h.positions.confirm||me.top:ie;O(),I();var ce=document.createElement("div"),ye=y();ce.id=ye;var Se=document.createElement("div");Se.classList.add(h.classes.textbox),Se.classList.add(h.classes.backgroundInfo),Se.innerHTML='
'+ae+"
";var xe=document.createElement("div");xe.classList.add(h.classes.button),xe.classList.add(h.classes.elementHalf),xe.classList.add(h.classes.backgroundSuccess),xe.innerHTML=Y,xe.onclick=function(){F(ye,me),B(),ue?ue():$&&$()};var Z=document.createElement("div");Z.classList.add(h.classes.button),Z.classList.add(h.classes.elementHalf),Z.classList.add(h.classes.backgroundError),Z.innerHTML=fe,Z.onclick=function(){F(ye,me),B(),G?G():z&&z()},ce.appendChild(Se),ce.appendChild(xe),ce.appendChild(Z),ce.listener=function(ke){v(ke)?xe.click():E(ke)&&Z.click()},R(ce,me),w(ce,me)},D=function(j,$,z){var ae=j.text,J=j.submitText,Y=J===void 0?"Submit":J,pe=j.cancelText,fe=pe===void 0?"Cancel":pe,ue=j.submitCallback,G=j.cancelCallback,ie=j.position,me=ie===void 0?h.positions.input||me.top:ie,ce=f(j,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);O(),I();var ye=document.createElement("div"),Se=y();ye.id=Se;var xe=document.createElement("div");xe.classList.add(h.classes.textbox),xe.classList.add(h.classes.backgroundInfo),xe.innerHTML='
'+ae+"
";var Z=document.createElement("input");Z.classList.add(h.classes.inputField),Z.setAttribute("autocapitalize",ce.autocapitalize||"none"),Z.setAttribute("autocomplete",ce.autocomplete||"off"),Z.setAttribute("autocorrect",ce.autocorrect||"off"),Z.setAttribute("autofocus",ce.autofocus||"true"),Z.setAttribute("inputmode",ce.inputmode||"verbatim"),Z.setAttribute("max",ce.max||""),Z.setAttribute("maxlength",ce.maxlength||""),Z.setAttribute("min",ce.min||""),Z.setAttribute("minlength",ce.minlength||""),Z.setAttribute("placeholder",ce.placeholder||""),Z.setAttribute("spellcheck",ce.spellcheck||"default"),Z.setAttribute("step",ce.step||"any"),Z.setAttribute("type",ce.type||"text"),Z.value=ce.value||"",ce.allowed&&(Z.oninput=function(){var Oe=void 0;if(Array.isArray(ce.allowed)){for(var Ue="",it=ce.allowed,_t=0;_t'+z+"",G.appendChild(me),pe.forEach(function(ye,Se){var xe=ye.type,Z=xe===void 0?1:xe,ke=ye.text,Le=ye.handler,Oe=document.createElement("div");Oe.classList.add(T[Z]),Oe.classList.add(h.classes.button),Oe.classList.add(h.classes.selectChoice);var Ue=pe[Se+1];Ue&&!Ue.type&&(Ue.type=1),Ue&&Ue.type===Z&&Oe.classList.add(h.classes.selectChoiceRepeated),Oe.innerHTML=ke,Oe.onclick=function(){F(ie,ue),B(),Le()},G.appendChild(Oe)});var ce=document.createElement("div");ce.classList.add(h.classes.backgroundNeutral),ce.classList.add(h.classes.button),ce.innerHTML=J,ce.onclick=function(){F(ie,ue),B(),Y?Y():$&&$()},G.appendChild(ce),G.listener=function(ye){E(ye)&&ce.click()},R(G,ue),w(G,ue)},q=g.date=function(j,$,z){var ae=j.value,J=ae===void 0?new Date:ae,Y=j.submitText,pe=Y===void 0?"OK":Y,fe=j.cancelText,ue=fe===void 0?"Cancel":fe,G=j.submitCallback,ie=j.cancelCallback,me=j.position,ce=me===void 0?h.positions.date||ce.top:me;O(),I();var ye="▾",Se=document.createElement("div"),xe=document.createElement("div"),Z=document.createElement("div"),ke=function(He){Se.innerHTML=h.dateMonths[He.getMonth()],xe.innerHTML=He.getDate(),Z.innerHTML=He.getFullYear()},Le=function(He){var W=new Date(J.getFullYear(),J.getMonth()+1,0).getDate(),de=He.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(de)>W&&(de=W.toString()),He.target.textContent=de,Number(de)<1&&(de="1"),J.setDate(Number(de))},Oe=function(He){var W=He.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);He.target.textContent=W,J.setFullYear(Number(W))},Ue=function(He){ke(J)},it=function(He){var W=new Date(J.getFullYear(),J.getMonth()+He+1,0).getDate();J.getDate()>W&&J.setDate(W),J.setMonth(J.getMonth()+He),ke(J)},_t=function(He){J.setDate(J.getDate()+He),ke(J)},ga=function(He){var W=J.getFullYear()+He;W<0?J.setFullYear(0):J.setFullYear(J.getFullYear()+He),ke(J)},zt=document.createElement("div"),Dn=y();zt.id=Dn;var qn=document.createElement("div");qn.classList.add(h.classes.backgroundInfo);var Ie=document.createElement("div");Ie.classList.add(h.classes.dateSelectorInner);var Ht=document.createElement("div");Ht.classList.add(h.classes.button),Ht.classList.add(h.classes.elementThird),Ht.classList.add(h.classes.dateSelectorUp),Ht.innerHTML=ye;var at=document.createElement("div");at.classList.add(h.classes.button),at.classList.add(h.classes.elementThird),at.classList.add(h.classes.dateSelectorUp),at.innerHTML=ye;var We=document.createElement("div");We.classList.add(h.classes.button),We.classList.add(h.classes.elementThird),We.classList.add(h.classes.dateSelectorUp),We.innerHTML=ye,Se.classList.add(h.classes.element),Se.classList.add(h.classes.elementThird),Se.innerHTML=h.dateMonths[J.getMonth()],xe.classList.add(h.classes.element),xe.classList.add(h.classes.elementThird),xe.setAttribute("contentEditable",!0),xe.addEventListener("input",Le),xe.addEventListener("blur",Ue),xe.innerHTML=J.getDate(),Z.classList.add(h.classes.element),Z.classList.add(h.classes.elementThird),Z.setAttribute("contentEditable",!0),Z.addEventListener("input",Oe),Z.addEventListener("blur",Ue),Z.innerHTML=J.getFullYear();var Vt=document.createElement("div");Vt.classList.add(h.classes.button),Vt.classList.add(h.classes.elementThird),Vt.innerHTML=ye;var Bt=document.createElement("div");Bt.classList.add(h.classes.button),Bt.classList.add(h.classes.elementThird),Bt.innerHTML=ye;var Wn=document.createElement("div");Wn.classList.add(h.classes.button),Wn.classList.add(h.classes.elementThird),Wn.innerHTML=ye,Ht.onclick=function(){return it(1)},at.onclick=function(){return _t(1)},We.onclick=function(){return ga(1)},Vt.onclick=function(){return it(-1)},Bt.onclick=function(){return _t(-1)},Wn.onclick=function(){return ga(-1)};var dt=document.createElement("div");dt.classList.add(h.classes.button),dt.classList.add(h.classes.elementHalf),dt.classList.add(h.classes.backgroundSuccess),dt.innerHTML=pe,dt.onclick=function(){F(Dn,ce),B(),G?G(J):$&&$(J)};var cn=document.createElement("div");cn.classList.add(h.classes.button),cn.classList.add(h.classes.elementHalf),cn.classList.add(h.classes.backgroundError),cn.innerHTML=ue,cn.onclick=function(){F(Dn,ce),B(),ie?ie(J):z&&z(J)},Ie.appendChild(Ht),Ie.appendChild(at),Ie.appendChild(We),Ie.appendChild(Se),Ie.appendChild(xe),Ie.appendChild(Z),Ie.appendChild(Vt),Ie.appendChild(Bt),Ie.appendChild(Wn),qn.appendChild(Ie),zt.appendChild(qn),zt.appendChild(dt),zt.appendChild(cn),zt.listener=function(He){v(He)?dt.click():E(He)&&cn.click()},R(zt,ce),w(zt,ce)};g.default={alert:N,force:P,confirm:x,input:D,select:M,date:q,setOptions:A,hideAlerts:I}}])})}).call(a,r(0)(n))}])})}),J4={};g2(J4,{default:()=>Zu});var f2=V4(Y4());p2(J4,V4(Y4()));var{default:G4,...h2}=f2,Zu=G4!==void 0?G4:h2;m();m();var fs=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function hs(e,t,n,a){e.addEventListener?e.addEventListener(t,n,a):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function td(e,t){for(var n=t.slice(0,t.length-1),a=0;a=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function b2(e,t){for(var n=e.length>=t.length?e:t,a=e.length>=t.length?t:e,r=!0,u=0;u=0&&qe.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&qe.splice(0,qe.length),(t===93||t===224)&&(t=91),t in mt){mt[t]=!1;for(var a in An)An[a]===t&&(Ve[a]=!1)}}function k2(e){if(typeof e>"u")Object.keys(et).forEach(function(o){return delete et[o]});else if(Array.isArray(e))e.forEach(function(o){o.key&&bs(o)});else if(typeof e=="object")e.key&&bs(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a1?td(An,l):[];et[g]=et[g].filter(function(f){var d=a?f.method===a:!0;return!(d&&f.scope===n&&b2(f.mods,p))})}})};function Z4(e,t,n,a){if(t.element===a){var r;if(t.scope===n||t.scope==="all"){r=t.mods.length>0;for(var u in mt)Object.prototype.hasOwnProperty.call(mt,u)&&(!mt[u]&&t.mods.indexOf(+u)>-1||mt[u]&&t.mods.indexOf(+u)===-1)&&(r=!1);(t.mods.length===0&&!mt[16]&&!mt[18]&&!mt[17]&&!mt[91]||r||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function X4(e,t){var n=et["*"],a=e.keyCode||e.which||e.charCode;if(Ve.filter.call(this,e)){if((a===93||a===224)&&(a=91),qe.indexOf(a)===-1&&a!==229&&qe.push(a),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(d){var b=xs[d];e[d]&&qe.indexOf(b)===-1?qe.push(b):!e[d]&&qe.indexOf(b)>-1?qe.splice(qe.indexOf(b),1):d==="metaKey"&&e[d]&&qe.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(qe=qe.slice(qe.indexOf(b))))}),a in mt){mt[a]=!0;for(var r in An)An[r]===a&&(Ve[r]=!0);if(!n)return}for(var u in mt)Object.prototype.hasOwnProperty.call(mt,u)&&(mt[u]=e[xs[u]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(qe.indexOf(17)===-1&&qe.push(17),qe.indexOf(18)===-1&&qe.push(18),mt[17]=!0,mt[18]=!0);var o=Ur();if(n)for(var i=0;i-1}function Ve(e,t,n){qe=[];var a=nd(e),r=[],u="all",o=document,i=0,l=!1,c=!0,s="+",g=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(u=t.scope),t.element&&(o=t.element),t.keyup&&(l=t.keyup),t.keydown!==void 0&&(c=t.keydown),t.capture!==void 0&&(g=t.capture),typeof t.splitKey=="string"&&(s=t.splitKey)),typeof t=="string"&&(u=t);i1&&(r=td(An,e)),e=e[e.length-1],e=e==="*"?"*":eo(e),e in et||(et[e]=[]),et[e].push({keyup:l,keydown:c,scope:u,mods:r,shortcut:a[i],method:n,key:a[i],splitKey:s,element:o});typeof o<"u"&&!S2(o)&&window&&(rd.push(o),hs(o,"keydown",function(p){X4(p,o)},g),Q4||(Q4=!0,hs(window,"focus",function(){qe=[]},g)),hs(o,"keyup",function(p){X4(p,o),A2(p)},g))}function D2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(et).forEach(function(n){var a=et[n].filter(function(r){return r.scope===t&&r.shortcut===e});a.forEach(function(r){r&&r.method&&r.method()})})}var ys={getPressedKeyString:T2,setScope:ud,getScope:Ur,deleteScope:v2,getPressedKeyCodes:E2,isPressed:w2,filter:C2,trigger:D2,unbind:k2,keyMap:jr,modifier:An,modifierMap:xs};for(Xu in ys)Object.prototype.hasOwnProperty.call(ys,Xu)&&(Ve[Xu]=ys[Xu]);var Xu;typeof document<"u"&&(ed=window.hotkeys,Ve.noConflict=function(e){return e&&window.hotkeys===Ve&&(window.hotkeys=ed),Ve},window.hotkeys=Ve);var ed;m();m();var L2={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},id={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Ze={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},kt={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Jn={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},K=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let a=K.getVersionPrecision(e),r=K.getVersionPrecision(t),u=Math.max(a,r),o=0,i=K.map([e,t],l=>{let c=u-K.getVersionPrecision(l),s=l+new Array(c+1).join(".0");return K.map(s.split("."),g=>new Array(20-g.length).join("0")+g).reverse()});for(n&&(o=u-Math.min(a,r)),u-=1;u>=o;){if(i[0][u]>i[1][u])return 1;if(i[0][u]===i[1][u]){if(u===o)return 0;u-=1}else if(i[0][u]{n[o]=u[o]})}return e}static getBrowserAlias(e){return L2[e]}static getBrowserTypeByAlias(e){return id[e]||""}},je=/version\/(\d+(\.?_?\d+)+)/i,P2=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=K.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=K.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=K.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=K.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=K.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=K.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=K.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=K.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=K.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=K.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=K.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=K.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=K.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=K.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=K.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=K.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=K.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=K.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=K.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=K.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=K.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=K.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=K.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=K.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=K.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=K.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=K.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,a=e.search("\\(")!==-1?n:t;return{name:K.getFirstMatch(a,e),version:K.getSecondMatch(a,e)}}}],M2=P2,F2=[{test:[/Roku\/DVP/],describe(e){let t=K.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:kt.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=K.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:kt.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=K.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=K.getWindowsVersionName(t);return{name:kt.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:kt.iOS},n=K.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=K.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=K.getMacOSVersionName(t),a={name:kt.MacOS,version:t};return n&&(a.versionName=n),a}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=K.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:kt.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=K.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=K.getAndroidVersionName(t),a={name:kt.Android,version:t};return n&&(a.versionName=n),a}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=K.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:kt.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=K.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||K.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||K.getFirstMatch(/\bbb(\d+)/i,e);return{name:kt.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=K.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:kt.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=K.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:kt.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:kt.Linux}}},{test:[/CrOS/],describe(){return{name:kt.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=K.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:kt.PlayStation4,version:t}}}],_2=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=K.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Ze.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Ze.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Ze.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Ze.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Ze.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Ze.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Ze.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=K.getFirstMatch(/(ipod|iphone)/i,e);return{type:Ze.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Ze.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Ze.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Ze.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Ze.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Ze.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Ze.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Ze.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Ze.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Ze.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Ze.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Ze.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Ze.tv}}}],B2=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Jn.Blink};let t=K.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Jn.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:Jn.Trident},n=K.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:Jn.Presto},n=K.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:Jn.Gecko},n=K.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Jn.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:Jn.WebKit},n=K.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],R2=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=K.find(M2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=K.find(F2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=K.find(_2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=K.find(B2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return K.assign({},this.parsedResult)}satisfies(e){let t={},n=0,a={},r=0;if(Object.keys(e).forEach(u=>{let o=e[u];typeof o=="string"?(a[u]=o,r+=1):typeof o=="object"&&(t[u]=o,n+=1)}),n>0){let u=Object.keys(t),o=K.find(u,l=>this.isOS(l));if(o){let l=this.satisfies(t[o]);if(l!==void 0)return l}let i=K.find(u,l=>this.isPlatform(l));if(i){let l=this.satisfies(t[i]);if(l!==void 0)return l}}if(r>0){let u=Object.keys(a),o=K.find(u,i=>this.isBrowser(i,!0));if(o!==void 0)return this.compareVersion(a[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),a=e.toLowerCase(),r=K.getBrowserTypeByAlias(a);return t&&r&&(a=r.toLowerCase()),a===n}compareVersion(e){let t=[0],n=e,a=!1,r=this.getBrowserVersion();if(typeof r=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(a=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(a=!0,n=e.substr(1)),t.indexOf(K.compareVersions(r,n,a))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},od=R2,O2=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new od(e,t)}static parse(e){return new od(e).getResult()}static get BROWSER_MAP(){return id}static get ENGINE_MAP(){return Jn}static get OS_MAP(){return kt}static get PLATFORMS_MAP(){return Ze}},$a=O2;m();m();var{entries:fd,setPrototypeOf:sd,isFrozen:I2,getPrototypeOf:N2,getOwnPropertyDescriptor:j2}=Object,{freeze:St,seal:gn,create:U2}=Object,{apply:As,construct:ks}=typeof Reflect<"u"&&Reflect;As||(As=function(e,t,n){return e.apply(t,n)});St||(St=function(e){return e});gn||(gn=function(e){return e});ks||(ks=function(e,t){return new e(...t)});var z2=Xt(Array.prototype.forEach),ld=Xt(Array.prototype.pop),zr=Xt(Array.prototype.push),ao=Xt(String.prototype.toLowerCase),Es=Xt(String.prototype.toString),H2=Xt(String.prototype.match),mn=Xt(String.prototype.replace),q2=Xt(String.prototype.indexOf),W2=Xt(String.prototype.trim),$t=Xt(RegExp.prototype.test),Hr=$2(TypeError);function Xt(e){return function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r/gm),J2=gn(/\${[\w\W]*}/gm),Q2=gn(/^data-[\-\w.\u00B7-\uFFFF]/),Z2=gn(/^aria-[\-\w]+$/),hd=gn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),X2=gn(/^(?:\w+script|data):/i),e1=gn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),bd=gn(/^html$/i),pd=Object.freeze({__proto__:null,MUSTACHE_EXPR:V2,ERB_EXPR:Y2,TMPLIT_EXPR:J2,DATA_ATTR:Q2,ARIA_ATTR:Z2,IS_ALLOWED_URI:hd,IS_SCRIPT_OR_DATA:X2,ATTR_WHITESPACE:e1,DOCTYPE_NAME:bd}),t1=()=>typeof window>"u"?null:window,n1=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,a="data-tt-policy-suffix";t&&t.hasAttribute(a)&&(n=t.getAttribute(a));let r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML(u){return u},createScriptURL(u){return u}})}catch{return null}};function yd(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t1(),t=L=>yd(L);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,a=n.currentScript,{document:r}=e,{DocumentFragment:u,HTMLTemplateElement:o,Node:i,Element:l,NodeFilter:c,NamedNodeMap:s=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:g,DOMParser:p,trustedTypes:f}=e,d=l.prototype,b=to(d,"cloneNode"),C=to(d,"nextSibling"),h=to(d,"childNodes"),A=to(d,"parentNode");if(typeof o=="function"){let L=r.createElement("template");L.content&&L.content.ownerDocument&&(r=L.content.ownerDocument)}let S,U="",{implementation:O,createNodeIterator:y,createDocumentFragment:T,getElementsByTagName:k}=r,{importNode:v}=n,E={};t.isSupported=typeof fd=="function"&&typeof A=="function"&&O&&O.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:R,ERB_EXPR:F,TMPLIT_EXPR:w,DATA_ATTR:B,ARIA_ATTR:I,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:P}=pd,{IS_ALLOWED_URI:x}=pd,D=null,M=De({},[...cd,...Ts,...Cs,...ws,...dd]),q=null,j=De({},[...md,...vs,...gd,...no]),$=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),z=null,ae=null,J=!0,Y=!0,pe=!1,fe=!0,ue=!1,G=!1,ie=!1,me=!1,ce=!1,ye=!1,Se=!1,xe=!0,Z=!1,ke="user-content-",Le=!0,Oe=!1,Ue={},it=null,_t=De({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ga=null,zt=De({},["audio","video","img","source","image","track"]),Dn=null,qn=De({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ie="http://www.w3.org/1998/Math/MathML",Ht="http://www.w3.org/2000/svg",at="http://www.w3.org/1999/xhtml",We=at,Vt=!1,Bt=null,Wn=De({},[Ie,Ht,at],Es),dt,cn=["application/xhtml+xml","text/html"],He="text/html",W,de=null,Ke=r.createElement("form"),Pe=function(L){return L instanceof RegExp||L instanceof Function},Fe=function(L){if(!(de&&de===L)){if((!L||typeof L!="object")&&(L={}),L=Ka(L),dt=cn.indexOf(L.PARSER_MEDIA_TYPE)===-1?dt=He:dt=L.PARSER_MEDIA_TYPE,W=dt==="application/xhtml+xml"?Es:ao,D="ALLOWED_TAGS"in L?De({},L.ALLOWED_TAGS,W):M,q="ALLOWED_ATTR"in L?De({},L.ALLOWED_ATTR,W):j,Bt="ALLOWED_NAMESPACES"in L?De({},L.ALLOWED_NAMESPACES,Es):Wn,Dn="ADD_URI_SAFE_ATTR"in L?De(Ka(qn),L.ADD_URI_SAFE_ATTR,W):qn,ga="ADD_DATA_URI_TAGS"in L?De(Ka(zt),L.ADD_DATA_URI_TAGS,W):zt,it="FORBID_CONTENTS"in L?De({},L.FORBID_CONTENTS,W):_t,z="FORBID_TAGS"in L?De({},L.FORBID_TAGS,W):{},ae="FORBID_ATTR"in L?De({},L.FORBID_ATTR,W):{},Ue="USE_PROFILES"in L?L.USE_PROFILES:!1,J=L.ALLOW_ARIA_ATTR!==!1,Y=L.ALLOW_DATA_ATTR!==!1,pe=L.ALLOW_UNKNOWN_PROTOCOLS||!1,fe=L.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ue=L.SAFE_FOR_TEMPLATES||!1,G=L.WHOLE_DOCUMENT||!1,ce=L.RETURN_DOM||!1,ye=L.RETURN_DOM_FRAGMENT||!1,Se=L.RETURN_TRUSTED_TYPE||!1,me=L.FORCE_BODY||!1,xe=L.SANITIZE_DOM!==!1,Z=L.SANITIZE_NAMED_PROPS||!1,Le=L.KEEP_CONTENT!==!1,Oe=L.IN_PLACE||!1,x=L.ALLOWED_URI_REGEXP||hd,We=L.NAMESPACE||at,$=L.CUSTOM_ELEMENT_HANDLING||{},L.CUSTOM_ELEMENT_HANDLING&&Pe(L.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&($.tagNameCheck=L.CUSTOM_ELEMENT_HANDLING.tagNameCheck),L.CUSTOM_ELEMENT_HANDLING&&Pe(L.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&($.attributeNameCheck=L.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),L.CUSTOM_ELEMENT_HANDLING&&typeof L.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&($.allowCustomizedBuiltInElements=L.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ue&&(Y=!1),ye&&(ce=!0),Ue&&(D=De({},[...dd]),q=[],Ue.html===!0&&(De(D,cd),De(q,md)),Ue.svg===!0&&(De(D,Ts),De(q,vs),De(q,no)),Ue.svgFilters===!0&&(De(D,Cs),De(q,vs),De(q,no)),Ue.mathMl===!0&&(De(D,ws),De(q,gd),De(q,no))),L.ADD_TAGS&&(D===M&&(D=Ka(D)),De(D,L.ADD_TAGS,W)),L.ADD_ATTR&&(q===j&&(q=Ka(q)),De(q,L.ADD_ATTR,W)),L.ADD_URI_SAFE_ATTR&&De(Dn,L.ADD_URI_SAFE_ATTR,W),L.FORBID_CONTENTS&&(it===_t&&(it=Ka(it)),De(it,L.FORBID_CONTENTS,W)),Le&&(D["#text"]=!0),G&&De(D,["html","head","body"]),D.table&&(De(D,["tbody"]),delete z.tbody),L.TRUSTED_TYPES_POLICY){if(typeof L.TRUSTED_TYPES_POLICY.createHTML!="function")throw Hr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof L.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Hr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=L.TRUSTED_TYPES_POLICY,U=S.createHTML("")}else S===void 0&&(S=n1(f,a)),S!==null&&typeof U=="string"&&(U=S.createHTML(""));St&&St(L),de=L}},Ln=De({},["mi","mo","mn","ms","mtext"]),wn=De({},["foreignobject","desc","title","annotation-xml"]),Yt=De({},["title","style","font","a","script"]),Ra=De({},Ts);De(Ra,Cs),De(Ra,K2);let _i=De({},ws);De(_i,G2);let of=function(L){let oe=A(L);(!oe||!oe.tagName)&&(oe={namespaceURI:We,tagName:"template"});let X=ao(L.tagName),_e=ao(oe.tagName);return Bt[L.namespaceURI]?L.namespaceURI===Ht?oe.namespaceURI===at?X==="svg":oe.namespaceURI===Ie?X==="svg"&&(_e==="annotation-xml"||Ln[_e]):!!Ra[X]:L.namespaceURI===Ie?oe.namespaceURI===at?X==="math":oe.namespaceURI===Ht?X==="math"&&wn[_e]:!!_i[X]:L.namespaceURI===at?oe.namespaceURI===Ht&&!wn[_e]||oe.namespaceURI===Ie&&!Ln[_e]?!1:!_i[X]&&(Yt[X]||!Ra[X]):!!(dt==="application/xhtml+xml"&&Bt[L.namespaceURI]):!1},Oa=function(L){zr(t.removed,{element:L});try{L.parentNode.removeChild(L)}catch{L.remove()}},Bi=function(L,oe){try{zr(t.removed,{attribute:oe.getAttributeNode(L),from:oe})}catch{zr(t.removed,{attribute:null,from:oe})}if(oe.removeAttribute(L),L==="is"&&!q[L])if(ce||ye)try{Oa(oe)}catch{}else try{oe.setAttribute(L,"")}catch{}},lc=function(L){let oe,X;if(me)L=""+L;else{let vt=H2(L,/^[\r\n\t ]+/);X=vt&&vt[0]}dt==="application/xhtml+xml"&&We===at&&(L=''+L+"");let _e=S?S.createHTML(L):L;if(We===at)try{oe=new p().parseFromString(_e,dt)}catch{}if(!oe||!oe.documentElement){oe=O.createDocument(We,"template",null);try{oe.documentElement.innerHTML=Vt?U:_e}catch{}}let rt=oe.body||oe.documentElement;return L&&X&&rt.insertBefore(r.createTextNode(X),rt.childNodes[0]||null),We===at?k.call(oe,G?"html":"body")[0]:G?oe.documentElement:rt},cc=function(L){return y.call(L.ownerDocument||L,L,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},sf=function(L){return L instanceof g&&(typeof L.nodeName!="string"||typeof L.textContent!="string"||typeof L.removeChild!="function"||!(L.attributes instanceof s)||typeof L.removeAttribute!="function"||typeof L.setAttribute!="function"||typeof L.namespaceURI!="string"||typeof L.insertBefore!="function"||typeof L.hasChildNodes!="function")},Eu=function(L){return typeof i=="object"?L instanceof i:L&&typeof L=="object"&&typeof L.nodeType=="number"&&typeof L.nodeName=="string"},Pn=function(L,oe,X){E[L]&&z2(E[L],_e=>{_e.call(t,oe,X,de)})},dc=function(L){let oe;if(Pn("beforeSanitizeElements",L,null),sf(L))return Oa(L),!0;let X=W(L.nodeName);if(Pn("uponSanitizeElement",L,{tagName:X,allowedTags:D}),L.hasChildNodes()&&!Eu(L.firstElementChild)&&(!Eu(L.content)||!Eu(L.content.firstElementChild))&&$t(/<[/\w]/g,L.innerHTML)&&$t(/<[/\w]/g,L.textContent))return Oa(L),!0;if(!D[X]||z[X]){if(!z[X]&&gc(X)&&($.tagNameCheck instanceof RegExp&&$t($.tagNameCheck,X)||$.tagNameCheck instanceof Function&&$.tagNameCheck(X)))return!1;if(Le&&!it[X]){let _e=A(L)||L.parentNode,rt=h(L)||L.childNodes;if(rt&&_e){let vt=rt.length;for(let Rt=vt-1;Rt>=0;--Rt)_e.insertBefore(b(rt[Rt],!0),C(L))}}return Oa(L),!0}return L instanceof l&&!of(L)||(X==="noscript"||X==="noembed")&&$t(/<\/no(script|embed)/i,L.innerHTML)?(Oa(L),!0):(ue&&L.nodeType===3&&(oe=L.textContent,oe=mn(oe,R," "),oe=mn(oe,F," "),oe=mn(oe,w," "),L.textContent!==oe&&(zr(t.removed,{element:L.cloneNode()}),L.textContent=oe)),Pn("afterSanitizeElements",L,null),!1)},mc=function(L,oe,X){if(xe&&(oe==="id"||oe==="name")&&(X in r||X in Ke))return!1;if(!(Y&&!ae[oe]&&$t(B,oe))&&!(J&&$t(I,oe))){if(!q[oe]||ae[oe]){if(!(gc(L)&&($.tagNameCheck instanceof RegExp&&$t($.tagNameCheck,L)||$.tagNameCheck instanceof Function&&$.tagNameCheck(L))&&($.attributeNameCheck instanceof RegExp&&$t($.attributeNameCheck,oe)||$.attributeNameCheck instanceof Function&&$.attributeNameCheck(oe))||oe==="is"&&$.allowCustomizedBuiltInElements&&($.tagNameCheck instanceof RegExp&&$t($.tagNameCheck,X)||$.tagNameCheck instanceof Function&&$.tagNameCheck(X))))return!1}else if(!Dn[oe]&&!$t(x,mn(X,P,""))&&!((oe==="src"||oe==="xlink:href"||oe==="href")&&L!=="script"&&q2(X,"data:")===0&&ga[L])&&!(pe&&!$t(N,mn(X,P,"")))&&X)return!1}return!0},gc=function(L){return L.indexOf("-")>0},pc=function(L){let oe,X,_e,rt;Pn("beforeSanitizeAttributes",L,null);let{attributes:vt}=L;if(!vt)return;let Rt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:q};for(rt=vt.length;rt--;){oe=vt[rt];let{name:st,namespaceURI:Ia}=oe;if(X=st==="value"?oe.value:W2(oe.value),_e=W(st),Rt.attrName=_e,Rt.attrValue=X,Rt.keepAttr=!0,Rt.forceKeepAttr=void 0,Pn("uponSanitizeAttribute",L,Rt),X=Rt.attrValue,Rt.forceKeepAttr||(Bi(st,L),!Rt.keepAttr))continue;if(!fe&&$t(/\/>/i,X)){Bi(st,L);continue}ue&&(X=mn(X,R," "),X=mn(X,F," "),X=mn(X,w," "));let fc=W(L.nodeName);if(mc(fc,_e,X)){if(Z&&(_e==="id"||_e==="name")&&(Bi(st,L),X=ke+X),S&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!Ia)switch(f.getAttributeType(fc,_e)){case"TrustedHTML":{X=S.createHTML(X);break}case"TrustedScriptURL":{X=S.createScriptURL(X);break}}try{Ia?L.setAttributeNS(Ia,st,X):L.setAttribute(st,X),ld(t.removed)}catch{}}}Pn("afterSanitizeAttributes",L,null)},lf=function L(oe){let X,_e=cc(oe);for(Pn("beforeSanitizeShadowDOM",oe,null);X=_e.nextNode();)Pn("uponSanitizeShadowNode",X,null),!dc(X)&&(X.content instanceof u&&L(X.content),pc(X));Pn("afterSanitizeShadowDOM",oe,null)};return t.sanitize=function(L){let oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X,_e,rt,vt;if(Vt=!L,Vt&&(L=""),typeof L!="string"&&!Eu(L))if(typeof L.toString=="function"){if(L=L.toString(),typeof L!="string")throw Hr("dirty is not a string, aborting")}else throw Hr("toString is not a function");if(!t.isSupported)return L;if(ie||Fe(oe),t.removed=[],typeof L=="string"&&(Oe=!1),Oe){if(L.nodeName){let Ia=W(L.nodeName);if(!D[Ia]||z[Ia])throw Hr("root node is forbidden and cannot be sanitized in-place")}}else if(L instanceof i)X=lc(""),_e=X.ownerDocument.importNode(L,!0),_e.nodeType===1&&_e.nodeName==="BODY"||_e.nodeName==="HTML"?X=_e:X.appendChild(_e);else{if(!ce&&!ue&&!G&&L.indexOf("<")===-1)return S&&Se?S.createHTML(L):L;if(X=lc(L),!X)return ce?null:Se?U:""}X&&me&&Oa(X.firstChild);let Rt=cc(Oe?L:X);for(;rt=Rt.nextNode();)dc(rt)||(rt.content instanceof u&&lf(rt.content),pc(rt));if(Oe)return L;if(ce){if(ye)for(vt=T.call(X.ownerDocument);X.firstChild;)vt.appendChild(X.firstChild);else vt=X;return(q.shadowroot||q.shadowrootmod)&&(vt=v.call(n,vt,!0)),vt}let st=G?X.outerHTML:X.innerHTML;return G&&D["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&$t(bd,X.ownerDocument.doctype.name)&&(st=" -`+st),ue&&(st=mn(st,R," "),st=mn(st,F," "),st=mn(st,w," ")),S&&Se?S.createHTML(st):st},t.setConfig=function(L){Fe(L),ie=!0},t.clearConfig=function(){de=null,ie=!1},t.isValidAttribute=function(L,oe,X){de||Fe({});let _e=W(L),rt=W(oe);return mc(_e,rt,X)},t.addHook=function(L,oe){typeof oe=="function"&&(E[L]=E[L]||[],zr(E[L],oe))},t.removeHook=function(L){if(E[L])return ld(E[L])},t.removeHooks=function(L){E[L]&&(E[L]=[])},t.removeAllHooks=function(){E={}},t}var Re=yd();var a1=Zu.alert;m();var Ga=console,Ss=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),a=Math.round(n-this.#e),r=Zt.green;a>1e4?r=Zt.red:a>1e3&&(r=Zt.yellow),Ga.debug(Zt.dim(ha+" TIMING:"),t,"in",r(a+"ms")),this.#e=n}},qr=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&Ga.log(Zt.dim(ha+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&Ga.log(Zt.green(ha+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&Ga.warn(Zt.yellow(ha+" WARN:"),...t)}error(...t){this.#e<=3&&Ga.error(Zt.red(ha+" ERROR:"),...t)}fatal(...t){this.#e<=4&&Ga.error(Zt.red(ha+" FATAL:"),...t)}timing(){return this.level===0?new Ss:{reset:()=>{},stop:()=>{}}}},H=new qr;var xd=["*://*/*","*","*://*"],Td="immersive-translate-wildcard-placeholder.com";function Ds(e,t){let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(o=>xd.includes(o)))return e;let a=new URL(e);a.hash="",a.search="";let r=a.href,u=a.hostname;if(n&&n.length>0){let o=n.find(i=>{let l=i;if(i===u)return!0;if(xd.includes(i))return!0;if(!i.includes("*")&&i.includes("://")){try{let c=new URL(i);return c.pathname==="/"&&!i.endsWith("/")?c.hostname===u:u1(r,i)}catch{}return!1}else{let c,s=i;if(i.includes("://")){let C=i.split("://");c=C[0],c==="*"&&C.length>1&&(c="*",i="https://"+C[1])}else c="*",i="https://"+i;let g=i.replace(/\*/g,Td),p;try{p=new URL(g)}catch{return H.debug("invalid match pattern",g,"raw match value:",s),!1}let f=p.hostname,d=p.pathname;d==="/"&&(s.replace("://","").includes("/")||(d="/*"));let b=r1(c+":",Ed(f),Ed(d));if(b){let C=new URL(r);return C.port="",b.test(C.href)}else return!1}});if(o)return o}return null}function Ed(e){return e.replaceAll(Td,"*")}function r1(e,t,n){let a="^";return e==="*:"?a+="(http:|https:|file:)":a+=e,a+="//",t&&(e==="file:"||(t==="*"?a+="[^/]+?":(t.match(/^\*\./)&&(a+="[^/]*?",t=t.substring(2)),a+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?a+="(/.*)?":n.includes("*")?(a+=n.replace(/\*/g,".*?"),a+="/?"):a+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):a+="/?",a+="$",new RegExp(a)}function On(e,t){return Ds(e,t)!==null}function u1(e,t){let n=new URL(e),a=new URL(t);return n.hostname===a.hostname&&n.pathname===a.pathname&&n.protocol===a.protocol&&n.port===a.port}m();m();function ya(e){return Array.isArray(e)?e:e?[e]:[]}function Ls(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function Qn(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function ro(e,t){let n={...e};return wd(n,t),o1(n,t),n}function Cd(e,t,n){let a={...t};return i1(e,a,n),a}function o1(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},a=t.condition.enableSubtitle?.false||{},r=e.enableSubtitle?n:a;wd(e,r)}function i1(e,t,n){try{return Object.keys(t).forEach(a=>{let[r,u]=a.split(".");if(u){let o=t[a];if(Array.isArray(e[r])&&(o=ya(t[a])),u==="add"){t[r]=Wr(e[r],o),delete t[a];return}else if(u=="remove"){t[r]=Ps(e[r],o),delete t[a];return}}}),Object.keys(n).forEach(a=>{let[r,u]=a.split(".");if(!r||n[a]===void 0)return;let o=n[a],i=t[r];if(Array.isArray(e[r])&&(o=ya(n[a]),i=ya(t[r])),u==="add"){t[r]=Wr(i,o);return}else if(u=="remove"){t[r]=Ps(i,o);return}Array.isArray(i)&&r.startsWith("additional")?t[r]=Wr(i,o):t[r]=o}),t}catch{}}function wd(e,t){return Object.keys(t).forEach(n=>{let[a,r]=n.split(".");if(!a||t[n]===void 0)return;let u=t[n];if(Array.isArray(e[a])&&(u=ya(t[n])),r==="add"){e[a]=Wr(e[a],u);return}else if(r=="remove"){e[a]=Ps(e[a],u);return}Array.isArray(e[a])&&a.startsWith("additional")?e[a]=Wr(e[a],u):e[a]=u}),e}function Wr(e,t){let n;if(Array.isArray(e)){let a=ya(t);n=[...e,...a],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"&&(n={...e,...t});return n}function Ps(e,t){if(Array.isArray(e)){let n=ya(t);return e=e.filter(a=>!n.includes(a)),Array.from(new Set(e))}else typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(n=>{delete e[n]});return e}m();m();var Va="input is invalid type",Ms=typeof window=="object",Zn=Ms?window:{};Zn.JS_SHA256_NO_WINDOW&&(Ms=!1);var s1=!Ms&&typeof self=="object",l1=!Zn.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;l1?Zn=global:s1&&(Zn=self);var E8=!Zn.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,T8=typeof define=="function"&&define.amd,$r=!Zn.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",le="0123456789abcdef".split(""),c1=[-2147483648,8388608,32768,128],pn=[24,16,8,0],uo=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],oo=["hex","array","digest","arrayBuffer"],lt=[];(Zn.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});$r&&(Zn.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var vd=function(e,t){return function(n){return new ct(t,!0).update(n)[e]()}},kd=function(e){var t=vd("hex",e);t.create=function(){return new ct(e)},t.update=function(r){return t.create().update(r)};for(var n=0;n>2]|=e[r]<>2]|=a<>2]|=(192|a>>6)<>2]|=(128|a&63)<=57344?(i[u>>2]|=(224|a>>12)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<>2]|=(240|a>>18)<>2]|=(128|a>>12&63)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<=64?(this.block=i[16],this.start=u-64,this.hash(),this.hashed=!0):this.start=u}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};ct.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=c1[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};ct.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,l=this.blocks,c,s,g,p,f,d,b,C,h,A,S;for(c=16;c<64;++c)f=l[c-15],s=(f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3,f=l[c-2],g=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10,l[c]=l[c-16]+s+l[c-7]+g<<0;for(S=t&n,c=0;c<64;c+=4)this.first?(this.is224?(C=300032,f=l[0]-1413257819,i=f-150054599<<0,a=f+24177077<<0):(C=704751109,f=l[0]-210244248,i=f-1521486534<<0,a=f+143694565<<0),this.first=!1):(s=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),g=(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7),C=e&t,p=C^e&n^S,b=r&u^~r&o,f=i+g+b+uo[c]+l[c],d=s+p,i=a+f<<0,a=f+d<<0),s=(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10),g=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),h=a&e,p=h^a&t^C,b=i&r^~i&u,f=o+g+b+uo[c+1]+l[c+1],d=s+p,o=n+f<<0,n=f+d<<0,s=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),g=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),A=n&a,p=A^n&e^h,b=o&i^~o&r,f=u+g+b+uo[c+2]+l[c+2],d=s+p,u=t+f<<0,t=f+d<<0,s=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),g=(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7),S=t&n,p=S^t&a^A,b=u&o^~u&i,f=r+g+b+uo[c+3]+l[c+3],d=s+p,r=e+f<<0,e=f+d<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+a<<0,this.h4=this.h4+r<<0,this.h5=this.h5+u<<0,this.h6=this.h6+o<<0,this.h7=this.h7+i<<0};ct.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,l=le[e>>28&15]+le[e>>24&15]+le[e>>20&15]+le[e>>16&15]+le[e>>12&15]+le[e>>8&15]+le[e>>4&15]+le[e&15]+le[t>>28&15]+le[t>>24&15]+le[t>>20&15]+le[t>>16&15]+le[t>>12&15]+le[t>>8&15]+le[t>>4&15]+le[t&15]+le[n>>28&15]+le[n>>24&15]+le[n>>20&15]+le[n>>16&15]+le[n>>12&15]+le[n>>8&15]+le[n>>4&15]+le[n&15]+le[a>>28&15]+le[a>>24&15]+le[a>>20&15]+le[a>>16&15]+le[a>>12&15]+le[a>>8&15]+le[a>>4&15]+le[a&15]+le[r>>28&15]+le[r>>24&15]+le[r>>20&15]+le[r>>16&15]+le[r>>12&15]+le[r>>8&15]+le[r>>4&15]+le[r&15]+le[u>>28&15]+le[u>>24&15]+le[u>>20&15]+le[u>>16&15]+le[u>>12&15]+le[u>>8&15]+le[u>>4&15]+le[u&15]+le[o>>28&15]+le[o>>24&15]+le[o>>20&15]+le[o>>16&15]+le[o>>12&15]+le[o>>8&15]+le[o>>4&15]+le[o&15];return this.is224||(l+=le[i>>28&15]+le[i>>24&15]+le[i>>20&15]+le[i>>16&15]+le[i>>12&15]+le[i>>8&15]+le[i>>4&15]+le[i&15]),l};ct.prototype.toString=ct.prototype.hex;ct.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,l=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,a>>24&255,a>>16&255,a>>8&255,a&255,r>>24&255,r>>16&255,r>>8&255,r&255,u>>24&255,u>>16&255,u>>8&255,u&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||l.push(i>>24&255,i>>16&255,i>>8&255,i&255),l};ct.prototype.array=ct.prototype.digest;ct.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function io(e,t,n){var a,r=typeof e;if(r==="string"){var u=[],o=e.length,i=0,l;for(a=0;a>6,u[i++]=128|l&63):l<55296||l>=57344?(u[i++]=224|l>>12,u[i++]=128|l>>6&63,u[i++]=128|l&63):(l=65536+((l&1023)<<10|e.charCodeAt(++a)&1023),u[i++]=240|l>>18,u[i++]=128|l>>12&63,u[i++]=128|l>>6&63,u[i++]=128|l&63);e=u}else if(r==="object"){if(e===null)throw new Error(Va);if($r&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!$r||!ArrayBuffer.isView(e)))throw new Error(Va)}else throw new Error(Va);e.length>64&&(e=new ct(t,!0).update(e).array());var c=[],s=[];for(a=0;a<64;++a){var g=e[a]||0;c[a]=92^g,s[a]=54^g}ct.call(this,t,n),this.update(s),this.oKeyPad=c,this.inner=!0,this.sharedMemory=n}io.prototype=new ct;io.prototype.finalize=function(){if(ct.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();ct.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),ct.prototype.finalize.call(this)}};var Ya=kd();Ya.sha256=Ya;Ya.sha224=kd(!0);Ya.sha256.hmac=Sd();Ya.sha224.hmac=Sd(!0);var Dd=Ya;var Ld=Dd.sha256;function fn(e){return Promise.resolve(Ld(e))}function so(e){return Array.from(new Uint8Array(e)).map(a=>a.toString(16).padStart(2,"0")).join("")}function Xn(e,t){let n=Ld.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function Pd(e,t){let n=await Xn(e,t);return so(n)}async function lo(e,t){let n=d1(t),a=await Xn(e,n);return so(a)}function d1(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}m();m();function tt(){try{return globalThis.self!==globalThis.top}catch{return!0}}var co=!1,m1=he();function Md(e,t){let n=[];for(let a of t){let r=e.querySelectorAll(a);for(let u of r)n.push(u)}return n}function g1(e,t){let n=function(u){return u.nodeType===Node.ELEMENT_NODE||u.nodeType===Node.TEXT_NODE?u.nodeType===Node.ELEMENT_NODE&&Fd(u,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),r=!0;for(;a.nextNode();){let u=a.currentNode;if(u.nodeType===Node.ELEMENT_NODE){if(ea(u,Wu)){if(r===!0)return!0;continue}if(Kr(u.nodeName,t.inlineTags))return!0;if(!Fs(u,t))return!1}}return!0}function _s(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(Kr(e.nodeName,n)||Fs(e,t)){if(ea(e,A4)||Kr(e.nodeName,["BR"]))return!1;if(ea(e,Wu))return!0;if(Fs(e,t)){let a=globalThis.getComputedStyle(e);if(a.display==="block"||a.display==="flex")return!1}return g1(e,t)}else return ea(e,Wu);return!1}function Fd(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&ea(e,v4,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&ea(e,x4))return!1;let{stayOriginalTags:a,excludeTags:r}=t,u=[];return n&&r&&r.length>0?u=r||[]:u=r.filter(o=>!a.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||Kr(e.nodeName,u))}function mo(e,t,n){let a=e.trim();return a.length>=t||a.split(" ").filter(o=>o.trim()!=="").length>=n||!Bd(a)&&a.length>=n}function _d(e,t,n){let a=e.trim();if(a.length<=t)return!0;if(Bd(a)){if(a.split(" ").length<=n)return!0}else if(a.length<=n)return!0;return!1}function Bd(e){for(let t=0;t127)return!1;return!0}function Rd(e){if(e&&e.includes("://"))try{return new URL(e),!0}catch{return!1}else return!1}function Od(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function Id(e){return e?/^[-+]?[0-9]*\.?[0-9]+%?$/.test(e):!1}function Nd(e){return!!(e&&e.startsWith("#")&&e.indexOf(" ")===-1)}function jd(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function ea(e,t,n=!1){return Bs(e,t,"1",n)}function Bs(e,t,n,a=!1){return co&&!a?e[It]?!!(e[It]&&e[It][t]===n):!1:e.dataset[t]===n}function Ja(e){return(e.innerText||e.textContent||"").trim()}function Rs(e){let t=e.querySelectorAll("iframe"),n="";for(let a=0;a2e3))break}return n}function go(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function nt(e,t,n,a=!1,r=!1){e.isContentEditable&&!r||(co&&!a?(e.dataset[Fr]||(e.dataset[Fr]="1"),e[It]||(e[It]={}),e[It][t]||(e[It][t]=n)):(e.dataset[Fr]||(e.dataset[Fr]="1"),e.dataset[t]!==n&&(e.dataset[t]=n)))}function po(e,t,n=!1){if(co&&!n){if(!e[It]||!e[It][t])return;delete e[It][t]}else delete e.dataset[t]}function Qa(e,t,n=!1){return co&&!n?!e[It]||!e[It][t]?void 0:e[It][t]:e.dataset[t]}function Fs(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!Kr(e.nodeName,n)}function Za(e){let{config:t}=e,n=ba;return t.translationServices[e.translationService]&&t.translationServices[e.translationService].placeholderDelimiters&&(n=t.translationServices[e.translationService].placeholderDelimiters),n}function gt(){if(!globalThis||!globalThis.location)return"https://example.com";if(!tt())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let a="";try{a=globalThis.parent.location.href}catch{}return a||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function xa(e,t,n){if(e instanceof ShadowRoot){try{e.appendChild(document.createElement("style")).textContent=t}catch(a){H.warn("injectCSS failed, rootDocument"+a?.message,e)}return}if(e&&e.head&&e.head.appendChild){let a=e.createElement("style");if(n){let r=e.querySelector(`style[data-id="${n}"]`);r&&r.remove(),a.dataset.id=n}a.textContent=t,e.head.appendChild(a)}else if(e){let a=document.createElement("head"),r=document.createElement("style");r.textContent=t,a.appendChild(r),e.appendChild(a)}else H.warn("injectCSS failed, rootDocument does not have head node",e)}function Xa(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(m1){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!document.querySelector("meta[name='immersive-translate-ebook-viewer']")||!t.startsWith("blob:http");return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function Kr(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function Ud(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),a=parseInt(t.substring(2,4),16),r=parseInt(t.substring(4,6),16);return{r:n,g:a,b:r}}function zd(e,t,n,a){if(a.document.caretPositionFromPoint){let r=a.document.caretPositionFromPoint(e,t);if(r){let u=a.document.createRange(),o=r.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||Fd(o,n,!0))return null;try{u.setStart(o,r.offset),u.setEnd(o,r.offset)}catch(i){return H.warn("getRangeFromPoint error",i),null}return u}return null}else return a.document.caretRangeFromPoint?a.document.caretRangeFromPoint(e,t):null}function Hd(e,t,n){let a=0,r=(u,o,i,l)=>{if(++a>100||l===u)return u;let c=u.shadowRoot;if(!c||typeof c.elementFromPoint!="function")return u;let s=c.elementFromPoint(o,i);return s?r(s,o,i,u):u};return r(e,t,n)}m();m();function er(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t==="zh-hans")return"zh-CN";if(t==="zh-hant"||t==="zh-hk")return"zh-TW";if(t==="iw")return"he";if(t==="jv")return"jw";let n=Jt.map(r=>r.toLowerCase()),a=n.indexOf(t);if(a===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let r=n.indexOf(t);return r===-1?"auto":Jt[r]}else return"auto";else return Jt[a]}function Ea(){return er(document?.documentElement?.lang||"en")}m();function en(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function qd(e){if(e){let t=new Date(e.createTime),n=p1(t),a="free",r="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(a=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?r="stripe":r="admin"),{user_type:a,user_register_day:n,subscription_from:r}}else return null}function p1(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[a,r,u]=n.split("/");return n=`${u}-${a}-${r}`,n}catch{return"unknown"}}m();var Wd=ge+"SyncStoreKey_";function Dt(e,t){let n=Wd+e;return ee.storage.sync.get(n).then(a=>a[n]===void 0?t:a[n])}function ze(e,t){let n=Wd+e;return ee.storage.sync.set({[n]:t})}m();var $d=ge+"StoreKey_";function In(e,t){let n=$d+e;return ee.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function Kd(e,t){let n=$d+e;return ee.storage.local.set({[n]:t})}m();m();m();var ut=class extends Error{details;constructor(t,n,a){super(n),this.name=t,a&&(this.details=a)}};async function Nn(e){let t;if(e&&e.retry&&e.retry>0)try{t=await ls(Gd.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await Gd(e);return t}async function Gd(e){e.body;let{url:t,responseType:n,...a}=e;n||(n="json"),a={mode:"cors",...a};let r=!0;e.fetchPolyfill&&(r=!1);let u=e.fetchPolyfill||fetch,o=3e5;if(e.timeout&&(o=e.timeout),r){let l=new AbortController,c=l.signal;setTimeout(()=>{l.abort()},o),a.signal=c}let i;try{i=await u(t,a)}catch(l){H.debug("fetch error",t,l);let c=l.message||"";throw l.message="\u7F51\u7EDC\u95EE\u9898\uFF0C\u65E0\u6CD5\u8FDE\u63A5\u5230\u670D\u52A1\uFF0C\u8BF7\u68C0\u67E5\u4F60\u7684\u4EE3\u7406\u6216\u672C\u5730\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u8BD5\u3002 "+c,l}if(i.ok&&i.status>=200&&i.status<400){if(n==="json")return await i.json();if(n==="text")return await i.text();if(n==="raw"){let l=await i.text(),c=Object.fromEntries([...i.headers.entries()]),s=i.url;return s||(i.headers.get("X-Final-URL")?s=i.headers.get("X-Final-URL"):s=t),{body:l,headers:c,status:i.status,statusText:i.statusText,url:s}}else if(n==="stream"){let l="",c;if(i.body&&i.body instanceof ReadableStream)for await(let s of f1(i.body)){let g=new TextDecoder().decode(s);l+=g;let p;for(;(p=l.indexOf(` -`))>=0;){let f=l.slice(0,p).trim();if(l=l.slice(p+1),f.startsWith("event:")||f==="")continue;let d="";if(f.startsWith("data:")&&(d=f.slice(5).trim()),d==="[DONE]")break;let b;try{b=JSON.parse(d??"")}catch(C){H.debug("json error",C);continue}c=b}}return c}}else{let l;try{l=await i.text()}catch(f){H.error("parse response failed",f)}l&&H.error("fail response",l);let c="";l&&(c=l.slice(0,280));let s="\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u4EE3\u7801:"+i.status+": "+(i.statusText||"")+c,p=new URL(t).hostname.endsWith(".immersivetranslate.com");throw i.status===429?p?c.includes("quota exceeded")?s="ProQuota:"+c:s=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${c} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`:s=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A429\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===403?s=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A403\uFF0C \u8BF4\u660E\u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ${c}`:i.status===400?s=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A400\uFF0C \u8BF4\u660E\u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002 ${c}`:i.status===502?s=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A502\uFF0C \u8BF4\u660E\u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===401&&(s=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A401\uFF0C \u8BF4\u660E\u672A\u767B\u5F55\u6216\u767B\u5F55\u6001\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002 ${c}`),new ut("fetchError",s,l)}}async function*f1(e){let t=e.getReader();try{for(;;){let{done:n,value:a}=await t.read();if(n)return;yield a}}finally{t.releaseLock()}}m();var h1=new Map;function fo(e){let t=b1(64),n=new CustomEvent(h4,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((a,r)=>{h1.set(t,(u,o)=>{u?r(u):a(o)})})}function b1(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};function tn(){return ho.version}m();var Gr=new Map,kn=class{fromType;logger;constructor(t,n=!1){this.logger=new qr,n&&this.logger.setLevel("debug"),this.fromType=t,Gr.has(t)||(Gr.set(t,new Map),ee.runtime.onMessage.addListener((a,r,u)=>{let o=a.from,i=a.to,l,c,s;r.tab&&r.tab.id&&(l=r.tab.id,o=`${o}:${l}`,c=r.tab.url,s=r.tab.active),this.logger.debug(`${a.to} received message [${a.payload.method}] from ${a.from}`,a.payload.data?a.payload.data:" ");let g=Is(i),{type:p,name:f}=g;if(p!==t)return!1;let d=Is(o),C=Gr.get(p).get(f);if(!C)return this.logger.debug(`no message handler for ${p}:${i}, but it's ok`),!1;let{messageHandler:h,sync:A}=C,S={type:t,name:d.name,id:l,url:c,active:s};if(A){try{let U=h(a.payload,S);u({ok:!0,data:U})}catch(U){u({ok:!1,errorName:U.name,errorMessage:U.message,errorDetails:U.details})}return!1}else return h(a.payload,S).then(U=>{u({ok:!0,data:U})}).catch(U=>{u({ok:!1,errorName:U.name,errorMessage:U.message,errorDetails:U.details})}),!0}))}getConnection(t,n,a){let r=!1;a&&a.sync&&(r=!0);let u=this.fromType,o=Gr.get(u);if(o.has(t))return o.get(t).connectionInstance;{let i=new Os(`${u}:${t}`,this.logger);return Gr.get(u).set(t,{messageHandler:n,sync:r,connectionInstance:i}),i}}},Os=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let a=Is(t),{type:r,id:u}=a;if(r!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let i=await ee.runtime.sendMessage(o);return Vd(o,i,this.logger)}catch(i){if(r==="popup"){let l=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(l,n,t,i),Promise.resolve({message:l})}else throw i}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let i=await ee.tabs.sendMessage(u,o);return Vd(o,i,this.logger)}}};function Vd(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new ut(t.errorName||"UnknownError",t.errorMessage||"Unknown error",t.errorDetails)}else throw new ut("noResponse","Unknown error")}function Is(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let a=parseInt(t[2]);if(!isNaN(a))n.id=a;else throw new Error("tab id not a valid number")}return n}var bo;function x1(){return bo||(bo=new kn("content_script",!1).getConnection("pure_main",()=>{}),bo)}var Yd="G-MKMD9LWFTR";async function Vr(e,t){try{let n=Be();if(n.INSTALL_FROM==="firefox_store")return;let r=he(),u=tt(),o=n.PROD==="1",i="sitc4WmvShWYwfU0dANM3Q",l=await Dt("fakeUserId","");l||(l=await In("fakeUserId",""),l&&await ze("fakeUserId",l));let c=tn(),s=new Date,g=await Dt("installedAt","");g||(g=await In("installedAt",""),g&&await ze("installedAt",g)),l?g||(g=new Date(0).toISOString(),await ze("installedAt",g)):(l=E1(32),await ze("fakeUserId",l)),g||(g=s.toISOString(),await ze("installedAt",g));let p=new Date(g),f=Jd(p),d=Jd(s),b=f===d,C=s.getTime()-p.getTime()<7*24*60*60*1e3,h=`https://www.google-analytics.com/mp/collect?measurement_id=${Yd}&api_secret=${i}`;o||(h=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${Yd}&api_secret=${i}`);let A="";typeof navigator<"u"&&(A=window.navigator.userAgent);let S=$a.parse(A),U=t.map(y=>{let T=y.params||{};return S.os&&(T.os_name=S.os.name||"unknown",T.os_version=S.os.version||"unknown",T.os_version_name=S.os.versionName||"unknown"),S.browser&&(T.browser_name=S.browser.name||"unknown",T.browser_version=S.browser.version||"unknown"),S.platform&&(T.platform_type=S.platform.type||"unknown"),S.engine&&(T.engine_name=S.engine.name||"unknown",T.engine_version=S.engine.version||"unknown"),c&&(T.version=c),n.INSTALL_FROM&&(T.install_from=n.INSTALL_FROM),f&&(T.install_day=T1(p)),T.userscript=r.toString(),b?T.is_new_user_today="1":T.is_new_user_today="0",C?T.is_new_user_this_week="1":T.is_new_user_this_week="0",u?T.main_frame=0:T.main_frame=1,{...y,params:T}}),O=await yo({responseType:"text",url:h,method:"POST",body:JSON.stringify({client_id:l,user_id:l,events:U})})}catch{}}function E1(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r",""]},custom:{placeholderDelimiters:["{","}"]},bing:{maxTextLengthPerRequest:1800,placeholderDelimiters:["","","b"]},deeplx:{limit:3},d:{immediateTranslationTextCount:0},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},openai:{placeholderDelimiters:["{{","}}","b"],immediateTranslationTextCount:3e3,translationDebounce:300,interval:1350,prompt:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +{{text}}`,optional:!0}]},transmart:{name:"Transmart",homepage:"https://transmart.qq.com/"},chatgpt:{name:"ChatGPT Web(3.5 mobile)",homepage:"https://chat.openai.com",beta:!0},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:"https://immersivetranslate.com/docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text"},{name:"appSecret",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/",docUrl:"https://immersivetranslate.com/docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text"},{name:"secretKey",required:!0,type:"password"}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:"https://immersivetranslate.com/docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text"},{name:"AccessKeySecret",required:!0,type:"password"},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:"https://immersivetranslate.com/docs/services/azure/",allProps:[{name:"region",required:!0,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password"}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:"https://immersivetranslate.com/docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text"},{name:"key",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:"https://immersivetranslate.com/docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text"},{name:"secretAccessKey",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:"https://immersivetranslate.com/docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password"}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:"https://immersivetranslate.com/docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:ba,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:"https://immersivetranslate.com/docs/services/openL/",allProps:[...d4,{type:"password",name:"apikey",required:!0}],props:d4},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",alpha:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:"https://immersivetranslate.com/docs/services/niu",allProps:[{name:"APIKEY",required:!0,type:"password"}]}},Ku={type:ge+"ChildFrameToRootFrameIdentifier"},Gu=["Alt","Ctrl","Shift","Auto","Off","OtherCustom","Other"];var ns="user_from_plugin",Nt="user_info",as=Mn()||Fn()?"https://api2.immersivetranslate.com":"https://test-api2.immersivetranslate.com",ux=Mn()||Fn()?"https://immersivetranslate.com/accounts/login?from=plugin":"https://test.immersivetranslate.com/accounts/login?from=plugin",rs=Mn()||Fn()?"https://immersivetranslate.com/profile":"https://test.immersivetranslate.com/profile",_r=Mn()||Fn()?"https://immersivetranslate.com/pricing":"https://test.immersivetranslate.com/pricing",Vu=_r+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",us=_r+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",O4=_r+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal";function I4(e){let t=ee.runtime.getURL(m4),n=new URL(t);return(e.startsWith("http")||!Ha())&&n.searchParams.set("file",e),n.href}function N4(){return Be().PDF_VIEWER_URL}g();g();var ya=ge+"CacheKey_";function Zf(e,t){let n=ya+e;return ee.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function Xf(){let e=ee.storage.local.refresh;e&&e()}function Br(e,t){let n=ya+e;return ee.storage.local.get(n).then(a=>{if(a[n]===void 0)return t;let{value:r,expired:u}=a[n];return u&&ua.startsWith(ya)).filter(a=>a!==ya+Nt);if(n.length>0)return ee.storage.local.remove(n)}}var jt={get:Zf,set:eh,getExpired:Br,setExpired:Rr,remove:Or,clear:j4,refresh:Xf};g();g();g();g();g();g();function Wa(){let e,t="pending",n=new Promise((a,r)=>{e={async resolve(u){await u,t="fulfilled",a(u)},reject(u){t="rejected",r(u)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}g();var os=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function Yu(e,t){let n=Wa(),a=setTimeout(()=>n.reject(new os),t);return Promise.race([e,n]).finally(()=>clearTimeout(a))}g();g();function Ir(e,t={}){let{signal:n,persistent:a}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((r,u)=>{let o=()=>{clearTimeout(l),u(new DOMException("Delay was aborted.","AbortError"))},l=setTimeout(()=>{n?.removeEventListener("abort",o),r()},e);if(n?.addEventListener("abort",o,{once:!0}),a===!1)try{Deno.unrefTimer(l)}catch(c){if(!(c instanceof ReferenceError))throw c}})}g();var U4=class{#e=0;#t=[];#n=[];#a=Wa();add(t){++this.#e,this.#r(t[Symbol.asyncIterator]())}async#r(t){try{let{value:n,done:a}=await t.next();a?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#a.resolve()}async*iterate(){for(;this.#e>0;){await this.#a;for(let t=0;tSh,bgBlue:()=>Mh,bgBrightBlack:()=>Rh,bgBrightBlue:()=>jh,bgBrightCyan:()=>zh,bgBrightGreen:()=>Ih,bgBrightMagenta:()=>Uh,bgBrightRed:()=>Oh,bgBrightWhite:()=>Hh,bgBrightYellow:()=>Nh,bgCyan:()=>_h,bgGreen:()=>Lh,bgMagenta:()=>Fh,bgRed:()=>Dh,bgRgb24:()=>Kh,bgRgb8:()=>Wh,bgWhite:()=>Bh,bgYellow:()=>Ph,black:()=>dh,blue:()=>fh,bold:()=>rh,brightBlack:()=>q4,brightBlue:()=>wh,brightCyan:()=>Ah,brightGreen:()=>Th,brightMagenta:()=>vh,brightRed:()=>Eh,brightWhite:()=>kh,brightYellow:()=>Ch,cyan:()=>bh,dim:()=>uh,getColorEnabled:()=>nh,gray:()=>xh,green:()=>gh,hidden:()=>lh,inverse:()=>sh,italic:()=>oh,magenta:()=>hh,red:()=>mh,reset:()=>ah,rgb24:()=>$h,rgb8:()=>qh,setColorEnabled:()=>th,strikethrough:()=>ch,stripColor:()=>Vh,underline:()=>ih,white:()=>yh,yellow:()=>ph});g();var{Deno:z4}=globalThis,H4=typeof z4?.noColor=="boolean"?z4.noColor:!0,is=!H4;function th(e){H4||(is=e)}function nh(){return is}function Ce(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function we(e,t){return is?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function ah(e){return we(e,Ce([0],0))}function rh(e){return we(e,Ce([1],22))}function uh(e){return we(e,Ce([2],22))}function oh(e){return we(e,Ce([3],23))}function ih(e){return we(e,Ce([4],24))}function sh(e){return we(e,Ce([7],27))}function lh(e){return we(e,Ce([8],28))}function ch(e){return we(e,Ce([9],29))}function dh(e){return we(e,Ce([30],39))}function mh(e){return we(e,Ce([31],39))}function gh(e){return we(e,Ce([32],39))}function ph(e){return we(e,Ce([33],39))}function fh(e){return we(e,Ce([34],39))}function hh(e){return we(e,Ce([35],39))}function bh(e){return we(e,Ce([36],39))}function yh(e){return we(e,Ce([37],39))}function xh(e){return q4(e)}function q4(e){return we(e,Ce([90],39))}function Eh(e){return we(e,Ce([91],39))}function Th(e){return we(e,Ce([92],39))}function Ch(e){return we(e,Ce([93],39))}function wh(e){return we(e,Ce([94],39))}function vh(e){return we(e,Ce([95],39))}function Ah(e){return we(e,Ce([96],39))}function kh(e){return we(e,Ce([97],39))}function Sh(e){return we(e,Ce([40],49))}function Dh(e){return we(e,Ce([41],49))}function Lh(e){return we(e,Ce([42],49))}function Ph(e){return we(e,Ce([43],49))}function Mh(e){return we(e,Ce([44],49))}function Fh(e){return we(e,Ce([45],49))}function _h(e){return we(e,Ce([46],49))}function Bh(e){return we(e,Ce([47],49))}function Rh(e){return we(e,Ce([100],49))}function Oh(e){return we(e,Ce([101],49))}function Ih(e){return we(e,Ce([102],49))}function Nh(e){return we(e,Ce([103],49))}function jh(e){return we(e,Ce([104],49))}function Uh(e){return we(e,Ce([105],49))}function zh(e){return we(e,Ce([106],49))}function Hh(e){return we(e,Ce([107],49))}function Yn(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function qh(e,t){return we(e,Ce([38,5,Yn(t)],39))}function Wh(e,t){return we(e,Ce([48,5,Yn(t)],49))}function $h(e,t){return typeof t=="number"?we(e,Ce([38,2,t>>16&255,t>>8&255,t&255],39)):we(e,Ce([38,2,Yn(t.r),Yn(t.g),Yn(t.b)],39))}function Kh(e,t){return typeof t=="number"?we(e,Ce([48,2,t>>16&255,t>>8&255,t&255],49)):we(e,Ce([48,2,Yn(t.r),Yn(t.g),Yn(t.b)],49))}var Gh=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function Vh(e){return e.replace(Gh,"")}g();g();var ss=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},Yh={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function ls(e,t){let n={...Yh,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let a=n.minTimeout,r;for(let u=0;usetTimeout(i,a)),a*=n.multiplier,a=Math.max(a,n.minTimeout),n.maxTimeout>=0&&(a=Math.min(a,n.maxTimeout)),r=o}throw new ss(r,n.maxAttempts)}g();var Rn=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function cs(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",a,r=t.length;for(a=2;a>2],n+=Rn[(t[a-2]&3)<<4|t[a-1]>>4],n+=Rn[(t[a-1]&15)<<2|t[a]>>6],n+=Rn[t[a]&63];return a===r+1&&(n+=Rn[t[a-2]>>2],n+=Rn[(t[a-2]&3)<<4],n+="=="),a===r&&(n+=Rn[t[a-2]>>2],n+=Rn[(t[a-2]&3)<<4|t[a-1]>>4],n+=Rn[(t[a-1]&15)<<2],n+="="),n}g();g();var rE=Number.isNaN||function(e){return typeof e=="number"&&e!==e};g();g();var Ju=globalThis||(typeof window<"u"?window:self),Qh=Object.create,ms=Object.defineProperty,Zh=Object.getOwnPropertyDescriptor,Xh=Object.getOwnPropertyNames,e2=Object.getPrototypeOf,t2=Object.prototype.hasOwnProperty,n2=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),a2=(e,t)=>{for(var n in t)ms(e,n,{get:t[n],enumerable:!0})},ds=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Xh(t))!t2.call(e,r)&&r!==n&&ms(e,r,{get:()=>t[r],enumerable:!(a=Zh(t,r))||a.enumerable});return e},r2=(e,t,n)=>(ds(e,t,"default"),n&&ds(n,t,"default")),$4=(e,t,n)=>(n=e!=null?Qh(e2(e)):{},ds(t||!e||!e.__esModule?ms(n,"default",{value:e,enumerable:!0}):n,e)),K4=n2((e,t)=>{var n="Expected a function",a=NaN,r="[object Symbol]",u=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt,s=typeof Ju=="object"&&Ju&&Ju.Object===Object&&Ju,m=typeof self=="object"&&self&&self.Object===Object&&self,p=s||m||Function("return this")(),f=Object.prototype,d=f.toString,b=Math.max,C=Math.min,h=function(){return p.Date.now()};function A(k,v,E){var R,F,w,B,I,N,P=0,x=!1,D=!1,M=!0;if(typeof k!="function")throw new TypeError(n);v=T(v)||0,U(E)&&(x=!!E.leading,D="maxWait"in E,w=D?b(T(E.maxWait)||0,v):w,M="trailing"in E?!!E.trailing:M);function q(ue){var G=R,ie=F;return R=F=void 0,P=ue,B=k.apply(ie,G),B}function j(ue){return P=ue,I=setTimeout(ae,v),x?q(ue):B}function $(ue){var G=ue-N,ie=ue-P,me=v-G;return D?C(me,w-ie):me}function z(ue){var G=ue-N,ie=ue-P;return N===void 0||G>=v||G<0||D&&ie>=w}function ae(){var ue=h();if(z(ue))return J(ue);I=setTimeout(ae,$(ue))}function J(ue){return I=void 0,M&&R?q(ue):(R=F=void 0,B)}function Y(){I!==void 0&&clearTimeout(I),P=0,R=N=F=I=void 0}function pe(){return I===void 0?B:J(h())}function he(){var ue=h(),G=z(ue);if(R=arguments,F=this,N=ue,G){if(I===void 0)return j(N);if(D)return I=setTimeout(ae,v),q(N)}return I===void 0&&(I=setTimeout(ae,v)),B}return he.cancel=Y,he.flush=pe,he}function S(k,v,E){var R=!0,F=!0;if(typeof k!="function")throw new TypeError(n);return U(E)&&(R="leading"in E?!!E.leading:R,F="trailing"in E?!!E.trailing:F),A(k,v,{leading:R,maxWait:v,trailing:F})}function U(k){var v=typeof k;return!!k&&(v=="object"||v=="function")}function O(k){return!!k&&typeof k=="object"}function y(k){return typeof k=="symbol"||O(k)&&d.call(k)==r}function T(k){if(typeof k=="number")return k;if(y(k))return a;if(U(k)){var v=typeof k.valueOf=="function"?k.valueOf():k;k=U(v)?v+"":v}if(typeof k!="string")return k===0?k:+k;k=k.replace(u,"");var E=i.test(k);return E||l.test(k)?c(k.slice(2),E?2:8):o.test(k)?a:+k}t.exports=S}),G4={};a2(G4,{default:()=>yt});var u2=$4(K4());r2(G4,$4(K4()));var{default:W4,...o2}=u2,yt=W4!==void 0?W4:o2;g();g();var i2=Object.create,ps=Object.defineProperty,s2=Object.getOwnPropertyDescriptor,l2=Object.getOwnPropertyNames,c2=Object.getPrototypeOf,d2=Object.prototype.hasOwnProperty,m2=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),g2=(e,t)=>{for(var n in t)ps(e,n,{get:t[n],enumerable:!0})},gs=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of l2(t))!d2.call(e,r)&&r!==n&&ps(e,r,{get:()=>t[r],enumerable:!(a=s2(t,r))||a.enumerable});return e},p2=(e,t,n)=>(gs(e,t,"default"),n&&gs(n,t,"default")),Y4=(e,t,n)=>(n=e!=null?i2(c2(e)):{},gs(t||!e||!e.__esModule?ps(n,"default",{value:e,enumerable:!0}):n,e)),J4=m2((e,t)=>{(function(n,a){typeof e=="object"&&typeof t=="object"?t.exports=a():typeof define=="function"&&define.amd?define([],a):typeof e=="object"?e.notie=a():n.notie=a()})(e,function(){return function(n){function a(u){if(r[u])return r[u].exports;var o=r[u]={i:u,l:!1,exports:{}};return n[u].call(o.exports,o,o.exports,a),o.l=!0,o.exports}var r={};return a.m=n,a.c=r,a.i=function(u){return u},a.d=function(u,o,i){a.o(u,o)||Object.defineProperty(u,o,{configurable:!1,enumerable:!0,get:i})},a.n=function(u){var o=u&&u.__esModule?function(){return u.default}:function(){return u};return a.d(o,"a",o),o},a.o=function(u,o){return Object.prototype.hasOwnProperty.call(u,o)},a.p="",a(a.s=1)}([function(n,a){n.exports=function(r){return r.webpackPolyfill||(r.deprecate=function(){},r.paths=[],r.children||(r.children=[]),Object.defineProperty(r,"loaded",{enumerable:!0,get:function(){return r.l}}),Object.defineProperty(r,"id",{enumerable:!0,get:function(){return r.i}}),r.webpackPolyfill=1),r}},function(n,a,r){"use strict";(function(u){var o,i,l,c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s};(function(s,m){c(a)==="object"&&c(u)==="object"?u.exports=m():(i=[],o=m,l=typeof o=="function"?o.apply(a,i):o,l!==void 0&&(u.exports=l))})(void 0,function(){return function(s){function m(f){if(p[f])return p[f].exports;var d=p[f]={i:f,l:!1,exports:{}};return s[f].call(d.exports,d,d.exports,m),d.l=!0,d.exports}var p={};return m.m=s,m.c=p,m.i=function(f){return f},m.d=function(f,d,b){m.o(f,d)||Object.defineProperty(f,d,{configurable:!1,enumerable:!0,get:b})},m.n=function(f){var d=f&&f.__esModule?function(){return f.default}:function(){return f};return m.d(d,"a",d),d},m.o=function(f,d){return Object.prototype.hasOwnProperty.call(f,d)},m.p="",m(m.s=0)}([function(s,m,p){function f(j,$){var z={};for(var ae in j)$.indexOf(ae)>=0||Object.prototype.hasOwnProperty.call(j,ae)&&(z[ae]=j[ae]);return z}Object.defineProperty(m,"__esModule",{value:!0});var d=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(j){return typeof j>"u"?"undefined":c(j)}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j>"u"?"undefined":c(j)},b=Object.assign||function(j){for(var $=1;$'+ae+"",ie.onclick=function(){return F(me,G)},ie.listener=function(ce){(v(ce)||E(ce))&&I()},R(ie,G),Y&&Y<1&&(Y=1),!he&&Y&&U(Y).then(function(){return F(me,G)})},P=m.force=function(j,$){var z=j.type,ae=z===void 0?5:z,J=j.text,Y=j.buttonText,pe=Y===void 0?"OK":Y,he=j.callback,ue=j.position,G=ue===void 0?h.positions.force||G.top:ue;O(),I();var ie=document.createElement("div"),me=y();ie.id=me;var ce=document.createElement("div");ce.classList.add(h.classes.textbox),ce.classList.add(h.classes.backgroundInfo),ce.innerHTML='
'+J+"
";var ye=document.createElement("div");ye.classList.add(h.classes.button),ye.classList.add(T[ae]),ye.innerHTML=pe,ye.onclick=function(){F(me,G),B(),he?he():$&&$()},ie.appendChild(ce),ie.appendChild(ye),ie.listener=function(Se){v(Se)&&ye.click()},R(ie,G),w()},x=m.confirm=function(j,$,z){var ae=j.text,J=j.submitText,Y=J===void 0?"Yes":J,pe=j.cancelText,he=pe===void 0?"Cancel":pe,ue=j.submitCallback,G=j.cancelCallback,ie=j.position,me=ie===void 0?h.positions.confirm||me.top:ie;O(),I();var ce=document.createElement("div"),ye=y();ce.id=ye;var Se=document.createElement("div");Se.classList.add(h.classes.textbox),Se.classList.add(h.classes.backgroundInfo),Se.innerHTML='
'+ae+"
";var xe=document.createElement("div");xe.classList.add(h.classes.button),xe.classList.add(h.classes.elementHalf),xe.classList.add(h.classes.backgroundSuccess),xe.innerHTML=Y,xe.onclick=function(){F(ye,me),B(),ue?ue():$&&$()};var Z=document.createElement("div");Z.classList.add(h.classes.button),Z.classList.add(h.classes.elementHalf),Z.classList.add(h.classes.backgroundError),Z.innerHTML=he,Z.onclick=function(){F(ye,me),B(),G?G():z&&z()},ce.appendChild(Se),ce.appendChild(xe),ce.appendChild(Z),ce.listener=function(ke){v(ke)?xe.click():E(ke)&&Z.click()},R(ce,me),w(ce,me)},D=function(j,$,z){var ae=j.text,J=j.submitText,Y=J===void 0?"Submit":J,pe=j.cancelText,he=pe===void 0?"Cancel":pe,ue=j.submitCallback,G=j.cancelCallback,ie=j.position,me=ie===void 0?h.positions.input||me.top:ie,ce=f(j,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);O(),I();var ye=document.createElement("div"),Se=y();ye.id=Se;var xe=document.createElement("div");xe.classList.add(h.classes.textbox),xe.classList.add(h.classes.backgroundInfo),xe.innerHTML='
'+ae+"
";var Z=document.createElement("input");Z.classList.add(h.classes.inputField),Z.setAttribute("autocapitalize",ce.autocapitalize||"none"),Z.setAttribute("autocomplete",ce.autocomplete||"off"),Z.setAttribute("autocorrect",ce.autocorrect||"off"),Z.setAttribute("autofocus",ce.autofocus||"true"),Z.setAttribute("inputmode",ce.inputmode||"verbatim"),Z.setAttribute("max",ce.max||""),Z.setAttribute("maxlength",ce.maxlength||""),Z.setAttribute("min",ce.min||""),Z.setAttribute("minlength",ce.minlength||""),Z.setAttribute("placeholder",ce.placeholder||""),Z.setAttribute("spellcheck",ce.spellcheck||"default"),Z.setAttribute("step",ce.step||"any"),Z.setAttribute("type",ce.type||"text"),Z.value=ce.value||"",ce.allowed&&(Z.oninput=function(){var Oe=void 0;if(Array.isArray(ce.allowed)){for(var Ue="",it=ce.allowed,_t=0;_t'+z+"",G.appendChild(me),pe.forEach(function(ye,Se){var xe=ye.type,Z=xe===void 0?1:xe,ke=ye.text,Le=ye.handler,Oe=document.createElement("div");Oe.classList.add(T[Z]),Oe.classList.add(h.classes.button),Oe.classList.add(h.classes.selectChoice);var Ue=pe[Se+1];Ue&&!Ue.type&&(Ue.type=1),Ue&&Ue.type===Z&&Oe.classList.add(h.classes.selectChoiceRepeated),Oe.innerHTML=ke,Oe.onclick=function(){F(ie,ue),B(),Le()},G.appendChild(Oe)});var ce=document.createElement("div");ce.classList.add(h.classes.backgroundNeutral),ce.classList.add(h.classes.button),ce.innerHTML=J,ce.onclick=function(){F(ie,ue),B(),Y?Y():$&&$()},G.appendChild(ce),G.listener=function(ye){E(ye)&&ce.click()},R(G,ue),w(G,ue)},q=m.date=function(j,$,z){var ae=j.value,J=ae===void 0?new Date:ae,Y=j.submitText,pe=Y===void 0?"OK":Y,he=j.cancelText,ue=he===void 0?"Cancel":he,G=j.submitCallback,ie=j.cancelCallback,me=j.position,ce=me===void 0?h.positions.date||ce.top:me;O(),I();var ye="▾",Se=document.createElement("div"),xe=document.createElement("div"),Z=document.createElement("div"),ke=function(He){Se.innerHTML=h.dateMonths[He.getMonth()],xe.innerHTML=He.getDate(),Z.innerHTML=He.getFullYear()},Le=function(He){var W=new Date(J.getFullYear(),J.getMonth()+1,0).getDate(),de=He.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(de)>W&&(de=W.toString()),He.target.textContent=de,Number(de)<1&&(de="1"),J.setDate(Number(de))},Oe=function(He){var W=He.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);He.target.textContent=W,J.setFullYear(Number(W))},Ue=function(He){ke(J)},it=function(He){var W=new Date(J.getFullYear(),J.getMonth()+He+1,0).getDate();J.getDate()>W&&J.setDate(W),J.setMonth(J.getMonth()+He),ke(J)},_t=function(He){J.setDate(J.getDate()+He),ke(J)},ga=function(He){var W=J.getFullYear()+He;W<0?J.setFullYear(0):J.setFullYear(J.getFullYear()+He),ke(J)},Ht=document.createElement("div"),Dn=y();Ht.id=Dn;var qn=document.createElement("div");qn.classList.add(h.classes.backgroundInfo);var Ie=document.createElement("div");Ie.classList.add(h.classes.dateSelectorInner);var qt=document.createElement("div");qt.classList.add(h.classes.button),qt.classList.add(h.classes.elementThird),qt.classList.add(h.classes.dateSelectorUp),qt.innerHTML=ye;var at=document.createElement("div");at.classList.add(h.classes.button),at.classList.add(h.classes.elementThird),at.classList.add(h.classes.dateSelectorUp),at.innerHTML=ye;var We=document.createElement("div");We.classList.add(h.classes.button),We.classList.add(h.classes.elementThird),We.classList.add(h.classes.dateSelectorUp),We.innerHTML=ye,Se.classList.add(h.classes.element),Se.classList.add(h.classes.elementThird),Se.innerHTML=h.dateMonths[J.getMonth()],xe.classList.add(h.classes.element),xe.classList.add(h.classes.elementThird),xe.setAttribute("contentEditable",!0),xe.addEventListener("input",Le),xe.addEventListener("blur",Ue),xe.innerHTML=J.getDate(),Z.classList.add(h.classes.element),Z.classList.add(h.classes.elementThird),Z.setAttribute("contentEditable",!0),Z.addEventListener("input",Oe),Z.addEventListener("blur",Ue),Z.innerHTML=J.getFullYear();var Yt=document.createElement("div");Yt.classList.add(h.classes.button),Yt.classList.add(h.classes.elementThird),Yt.innerHTML=ye;var Bt=document.createElement("div");Bt.classList.add(h.classes.button),Bt.classList.add(h.classes.elementThird),Bt.innerHTML=ye;var Wn=document.createElement("div");Wn.classList.add(h.classes.button),Wn.classList.add(h.classes.elementThird),Wn.innerHTML=ye,qt.onclick=function(){return it(1)},at.onclick=function(){return _t(1)},We.onclick=function(){return ga(1)},Yt.onclick=function(){return it(-1)},Bt.onclick=function(){return _t(-1)},Wn.onclick=function(){return ga(-1)};var dt=document.createElement("div");dt.classList.add(h.classes.button),dt.classList.add(h.classes.elementHalf),dt.classList.add(h.classes.backgroundSuccess),dt.innerHTML=pe,dt.onclick=function(){F(Dn,ce),B(),G?G(J):$&&$(J)};var cn=document.createElement("div");cn.classList.add(h.classes.button),cn.classList.add(h.classes.elementHalf),cn.classList.add(h.classes.backgroundError),cn.innerHTML=ue,cn.onclick=function(){F(Dn,ce),B(),ie?ie(J):z&&z(J)},Ie.appendChild(qt),Ie.appendChild(at),Ie.appendChild(We),Ie.appendChild(Se),Ie.appendChild(xe),Ie.appendChild(Z),Ie.appendChild(Yt),Ie.appendChild(Bt),Ie.appendChild(Wn),qn.appendChild(Ie),Ht.appendChild(qn),Ht.appendChild(dt),Ht.appendChild(cn),Ht.listener=function(He){v(He)?dt.click():E(He)&&cn.click()},R(Ht,ce),w(Ht,ce)};m.default={alert:N,force:P,confirm:x,input:D,select:M,date:q,setOptions:A,hideAlerts:I}}])})}).call(a,r(0)(n))}])})}),Q4={};g2(Q4,{default:()=>Qu});var f2=Y4(J4());p2(Q4,Y4(J4()));var{default:V4,...h2}=f2,Qu=V4!==void 0?V4:h2;g();g();var fs=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function hs(e,t,n,a){e.addEventListener?e.addEventListener(t,n,a):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function nd(e,t){for(var n=t.slice(0,t.length-1),a=0;a=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function b2(e,t){for(var n=e.length>=t.length?e:t,a=e.length>=t.length?t:e,r=!0,u=0;u=0&&qe.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&qe.splice(0,qe.length),(t===93||t===224)&&(t=91),t in mt){mt[t]=!1;for(var a in An)An[a]===t&&(Ve[a]=!1)}}function k2(e){if(typeof e>"u")Object.keys(et).forEach(function(o){return delete et[o]});else if(Array.isArray(e))e.forEach(function(o){o.key&&bs(o)});else if(typeof e=="object")e.key&&bs(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a1?nd(An,l):[];et[m]=et[m].filter(function(f){var d=a?f.method===a:!0;return!(d&&f.scope===n&&b2(f.mods,p))})}})};function X4(e,t,n,a){if(t.element===a){var r;if(t.scope===n||t.scope==="all"){r=t.mods.length>0;for(var u in mt)Object.prototype.hasOwnProperty.call(mt,u)&&(!mt[u]&&t.mods.indexOf(+u)>-1||mt[u]&&t.mods.indexOf(+u)===-1)&&(r=!1);(t.mods.length===0&&!mt[16]&&!mt[18]&&!mt[17]&&!mt[91]||r||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function ed(e,t){var n=et["*"],a=e.keyCode||e.which||e.charCode;if(Ve.filter.call(this,e)){if((a===93||a===224)&&(a=91),qe.indexOf(a)===-1&&a!==229&&qe.push(a),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(d){var b=xs[d];e[d]&&qe.indexOf(b)===-1?qe.push(b):!e[d]&&qe.indexOf(b)>-1?qe.splice(qe.indexOf(b),1):d==="metaKey"&&e[d]&&qe.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(qe=qe.slice(qe.indexOf(b))))}),a in mt){mt[a]=!0;for(var r in An)An[r]===a&&(Ve[r]=!0);if(!n)return}for(var u in mt)Object.prototype.hasOwnProperty.call(mt,u)&&(mt[u]=e[xs[u]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(qe.indexOf(17)===-1&&qe.push(17),qe.indexOf(18)===-1&&qe.push(18),mt[17]=!0,mt[18]=!0);var o=Ur();if(n)for(var i=0;i-1}function Ve(e,t,n){qe=[];var a=ad(e),r=[],u="all",o=document,i=0,l=!1,c=!0,s="+",m=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(u=t.scope),t.element&&(o=t.element),t.keyup&&(l=t.keyup),t.keydown!==void 0&&(c=t.keydown),t.capture!==void 0&&(m=t.capture),typeof t.splitKey=="string"&&(s=t.splitKey)),typeof t=="string"&&(u=t);i1&&(r=nd(An,e)),e=e[e.length-1],e=e==="*"?"*":Xu(e),e in et||(et[e]=[]),et[e].push({keyup:l,keydown:c,scope:u,mods:r,shortcut:a[i],method:n,key:a[i],splitKey:s,element:o});typeof o<"u"&&!S2(o)&&window&&(ud.push(o),hs(o,"keydown",function(p){ed(p,o)},m),Z4||(Z4=!0,hs(window,"focus",function(){qe=[]},m)),hs(o,"keyup",function(p){ed(p,o),A2(p)},m))}function D2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(et).forEach(function(n){var a=et[n].filter(function(r){return r.scope===t&&r.shortcut===e});a.forEach(function(r){r&&r.method&&r.method()})})}var ys={getPressedKeyString:T2,setScope:od,getScope:Ur,deleteScope:v2,getPressedKeyCodes:E2,isPressed:w2,filter:C2,trigger:D2,unbind:k2,keyMap:jr,modifier:An,modifierMap:xs};for(Zu in ys)Object.prototype.hasOwnProperty.call(ys,Zu)&&(Ve[Zu]=ys[Zu]);var Zu;typeof document<"u"&&(td=window.hotkeys,Ve.noConflict=function(e){return e&&window.hotkeys===Ve&&(window.hotkeys=td),Ve},window.hotkeys=Ve);var td;g();g();var L2={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},sd={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Ze={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},kt={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Jn={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},K=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let a=K.getVersionPrecision(e),r=K.getVersionPrecision(t),u=Math.max(a,r),o=0,i=K.map([e,t],l=>{let c=u-K.getVersionPrecision(l),s=l+new Array(c+1).join(".0");return K.map(s.split("."),m=>new Array(20-m.length).join("0")+m).reverse()});for(n&&(o=u-Math.min(a,r)),u-=1;u>=o;){if(i[0][u]>i[1][u])return 1;if(i[0][u]===i[1][u]){if(u===o)return 0;u-=1}else if(i[0][u]{n[o]=u[o]})}return e}static getBrowserAlias(e){return L2[e]}static getBrowserTypeByAlias(e){return sd[e]||""}},je=/version\/(\d+(\.?_?\d+)+)/i,P2=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=K.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=K.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=K.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=K.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=K.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=K.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=K.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=K.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=K.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=K.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=K.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=K.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=K.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=K.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=K.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=K.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=K.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=K.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=K.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=K.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=K.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=K.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=K.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=K.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=K.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=K.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=K.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,a=e.search("\\(")!==-1?n:t;return{name:K.getFirstMatch(a,e),version:K.getSecondMatch(a,e)}}}],M2=P2,F2=[{test:[/Roku\/DVP/],describe(e){let t=K.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:kt.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=K.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:kt.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=K.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=K.getWindowsVersionName(t);return{name:kt.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:kt.iOS},n=K.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=K.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=K.getMacOSVersionName(t),a={name:kt.MacOS,version:t};return n&&(a.versionName=n),a}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=K.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:kt.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=K.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=K.getAndroidVersionName(t),a={name:kt.Android,version:t};return n&&(a.versionName=n),a}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=K.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:kt.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=K.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||K.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||K.getFirstMatch(/\bbb(\d+)/i,e);return{name:kt.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=K.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:kt.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=K.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:kt.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:kt.Linux}}},{test:[/CrOS/],describe(){return{name:kt.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=K.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:kt.PlayStation4,version:t}}}],_2=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=K.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Ze.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Ze.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Ze.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Ze.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Ze.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Ze.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Ze.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=K.getFirstMatch(/(ipod|iphone)/i,e);return{type:Ze.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Ze.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Ze.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Ze.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Ze.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Ze.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Ze.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Ze.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Ze.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Ze.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Ze.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Ze.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Ze.tv}}}],B2=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Jn.Blink};let t=K.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Jn.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:Jn.Trident},n=K.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:Jn.Presto},n=K.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:Jn.Gecko},n=K.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Jn.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:Jn.WebKit},n=K.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],R2=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=K.find(M2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=K.find(F2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=K.find(_2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=K.find(B2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return K.assign({},this.parsedResult)}satisfies(e){let t={},n=0,a={},r=0;if(Object.keys(e).forEach(u=>{let o=e[u];typeof o=="string"?(a[u]=o,r+=1):typeof o=="object"&&(t[u]=o,n+=1)}),n>0){let u=Object.keys(t),o=K.find(u,l=>this.isOS(l));if(o){let l=this.satisfies(t[o]);if(l!==void 0)return l}let i=K.find(u,l=>this.isPlatform(l));if(i){let l=this.satisfies(t[i]);if(l!==void 0)return l}}if(r>0){let u=Object.keys(a),o=K.find(u,i=>this.isBrowser(i,!0));if(o!==void 0)return this.compareVersion(a[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),a=e.toLowerCase(),r=K.getBrowserTypeByAlias(a);return t&&r&&(a=r.toLowerCase()),a===n}compareVersion(e){let t=[0],n=e,a=!1,r=this.getBrowserVersion();if(typeof r=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(a=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(a=!0,n=e.substr(1)),t.indexOf(K.compareVersions(r,n,a))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},id=R2,O2=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new id(e,t)}static parse(e){return new id(e).getResult()}static get BROWSER_MAP(){return sd}static get ENGINE_MAP(){return Jn}static get OS_MAP(){return kt}static get PLATFORMS_MAP(){return Ze}},$a=O2;g();g();var{entries:hd,setPrototypeOf:ld,isFrozen:I2,getPrototypeOf:N2,getOwnPropertyDescriptor:j2}=Object,{freeze:St,seal:gn,create:U2}=Object,{apply:As,construct:ks}=typeof Reflect<"u"&&Reflect;As||(As=function(e,t,n){return e.apply(t,n)});St||(St=function(e){return e});gn||(gn=function(e){return e});ks||(ks=function(e,t){return new e(...t)});var z2=Xt(Array.prototype.forEach),cd=Xt(Array.prototype.pop),zr=Xt(Array.prototype.push),no=Xt(String.prototype.toLowerCase),Es=Xt(String.prototype.toString),H2=Xt(String.prototype.match),mn=Xt(String.prototype.replace),q2=Xt(String.prototype.indexOf),W2=Xt(String.prototype.trim),Kt=Xt(RegExp.prototype.test),Hr=$2(TypeError);function Xt(e){return function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r/gm),J2=gn(/\${[\w\W]*}/gm),Q2=gn(/^data-[\-\w.\u00B7-\uFFFF]/),Z2=gn(/^aria-[\-\w]+$/),bd=gn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),X2=gn(/^(?:\w+script|data):/i),e1=gn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),yd=gn(/^html$/i),fd=Object.freeze({__proto__:null,MUSTACHE_EXPR:V2,ERB_EXPR:Y2,TMPLIT_EXPR:J2,DATA_ATTR:Q2,ARIA_ATTR:Z2,IS_ALLOWED_URI:bd,IS_SCRIPT_OR_DATA:X2,ATTR_WHITESPACE:e1,DOCTYPE_NAME:yd}),t1=()=>typeof window>"u"?null:window,n1=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,a="data-tt-policy-suffix";t&&t.hasAttribute(a)&&(n=t.getAttribute(a));let r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML(u){return u},createScriptURL(u){return u}})}catch{return null}};function xd(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t1(),t=L=>xd(L);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,a=n.currentScript,{document:r}=e,{DocumentFragment:u,HTMLTemplateElement:o,Node:i,Element:l,NodeFilter:c,NamedNodeMap:s=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:m,DOMParser:p,trustedTypes:f}=e,d=l.prototype,b=eo(d,"cloneNode"),C=eo(d,"nextSibling"),h=eo(d,"childNodes"),A=eo(d,"parentNode");if(typeof o=="function"){let L=r.createElement("template");L.content&&L.content.ownerDocument&&(r=L.content.ownerDocument)}let S,U="",{implementation:O,createNodeIterator:y,createDocumentFragment:T,getElementsByTagName:k}=r,{importNode:v}=n,E={};t.isSupported=typeof hd=="function"&&typeof A=="function"&&O&&O.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:R,ERB_EXPR:F,TMPLIT_EXPR:w,DATA_ATTR:B,ARIA_ATTR:I,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:P}=fd,{IS_ALLOWED_URI:x}=fd,D=null,M=De({},[...dd,...Ts,...Cs,...ws,...md]),q=null,j=De({},[...gd,...vs,...pd,...to]),$=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),z=null,ae=null,J=!0,Y=!0,pe=!1,he=!0,ue=!1,G=!1,ie=!1,me=!1,ce=!1,ye=!1,Se=!1,xe=!0,Z=!1,ke="user-content-",Le=!0,Oe=!1,Ue={},it=null,_t=De({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ga=null,Ht=De({},["audio","video","img","source","image","track"]),Dn=null,qn=De({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ie="http://www.w3.org/1998/Math/MathML",qt="http://www.w3.org/2000/svg",at="http://www.w3.org/1999/xhtml",We=at,Yt=!1,Bt=null,Wn=De({},[Ie,qt,at],Es),dt,cn=["application/xhtml+xml","text/html"],He="text/html",W,de=null,Ke=r.createElement("form"),Pe=function(L){return L instanceof RegExp||L instanceof Function},Fe=function(L){if(!(de&&de===L)){if((!L||typeof L!="object")&&(L={}),L=Ka(L),dt=cn.indexOf(L.PARSER_MEDIA_TYPE)===-1?dt=He:dt=L.PARSER_MEDIA_TYPE,W=dt==="application/xhtml+xml"?Es:no,D="ALLOWED_TAGS"in L?De({},L.ALLOWED_TAGS,W):M,q="ALLOWED_ATTR"in L?De({},L.ALLOWED_ATTR,W):j,Bt="ALLOWED_NAMESPACES"in L?De({},L.ALLOWED_NAMESPACES,Es):Wn,Dn="ADD_URI_SAFE_ATTR"in L?De(Ka(qn),L.ADD_URI_SAFE_ATTR,W):qn,ga="ADD_DATA_URI_TAGS"in L?De(Ka(Ht),L.ADD_DATA_URI_TAGS,W):Ht,it="FORBID_CONTENTS"in L?De({},L.FORBID_CONTENTS,W):_t,z="FORBID_TAGS"in L?De({},L.FORBID_TAGS,W):{},ae="FORBID_ATTR"in L?De({},L.FORBID_ATTR,W):{},Ue="USE_PROFILES"in L?L.USE_PROFILES:!1,J=L.ALLOW_ARIA_ATTR!==!1,Y=L.ALLOW_DATA_ATTR!==!1,pe=L.ALLOW_UNKNOWN_PROTOCOLS||!1,he=L.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ue=L.SAFE_FOR_TEMPLATES||!1,G=L.WHOLE_DOCUMENT||!1,ce=L.RETURN_DOM||!1,ye=L.RETURN_DOM_FRAGMENT||!1,Se=L.RETURN_TRUSTED_TYPE||!1,me=L.FORCE_BODY||!1,xe=L.SANITIZE_DOM!==!1,Z=L.SANITIZE_NAMED_PROPS||!1,Le=L.KEEP_CONTENT!==!1,Oe=L.IN_PLACE||!1,x=L.ALLOWED_URI_REGEXP||bd,We=L.NAMESPACE||at,$=L.CUSTOM_ELEMENT_HANDLING||{},L.CUSTOM_ELEMENT_HANDLING&&Pe(L.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&($.tagNameCheck=L.CUSTOM_ELEMENT_HANDLING.tagNameCheck),L.CUSTOM_ELEMENT_HANDLING&&Pe(L.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&($.attributeNameCheck=L.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),L.CUSTOM_ELEMENT_HANDLING&&typeof L.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&($.allowCustomizedBuiltInElements=L.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ue&&(Y=!1),ye&&(ce=!0),Ue&&(D=De({},[...md]),q=[],Ue.html===!0&&(De(D,dd),De(q,gd)),Ue.svg===!0&&(De(D,Ts),De(q,vs),De(q,to)),Ue.svgFilters===!0&&(De(D,Cs),De(q,vs),De(q,to)),Ue.mathMl===!0&&(De(D,ws),De(q,pd),De(q,to))),L.ADD_TAGS&&(D===M&&(D=Ka(D)),De(D,L.ADD_TAGS,W)),L.ADD_ATTR&&(q===j&&(q=Ka(q)),De(q,L.ADD_ATTR,W)),L.ADD_URI_SAFE_ATTR&&De(Dn,L.ADD_URI_SAFE_ATTR,W),L.FORBID_CONTENTS&&(it===_t&&(it=Ka(it)),De(it,L.FORBID_CONTENTS,W)),Le&&(D["#text"]=!0),G&&De(D,["html","head","body"]),D.table&&(De(D,["tbody"]),delete z.tbody),L.TRUSTED_TYPES_POLICY){if(typeof L.TRUSTED_TYPES_POLICY.createHTML!="function")throw Hr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof L.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Hr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=L.TRUSTED_TYPES_POLICY,U=S.createHTML("")}else S===void 0&&(S=n1(f,a)),S!==null&&typeof U=="string"&&(U=S.createHTML(""));St&&St(L),de=L}},Ln=De({},["mi","mo","mn","ms","mtext"]),wn=De({},["foreignobject","desc","title","annotation-xml"]),Jt=De({},["title","style","font","a","script"]),Oa=De({},Ts);De(Oa,Cs),De(Oa,K2);let _i=De({},ws);De(_i,G2);let sf=function(L){let oe=A(L);(!oe||!oe.tagName)&&(oe={namespaceURI:We,tagName:"template"});let X=no(L.tagName),_e=no(oe.tagName);return Bt[L.namespaceURI]?L.namespaceURI===qt?oe.namespaceURI===at?X==="svg":oe.namespaceURI===Ie?X==="svg"&&(_e==="annotation-xml"||Ln[_e]):!!Oa[X]:L.namespaceURI===Ie?oe.namespaceURI===at?X==="math":oe.namespaceURI===qt?X==="math"&&wn[_e]:!!_i[X]:L.namespaceURI===at?oe.namespaceURI===qt&&!wn[_e]||oe.namespaceURI===Ie&&!Ln[_e]?!1:!_i[X]&&(Jt[X]||!Oa[X]):!!(dt==="application/xhtml+xml"&&Bt[L.namespaceURI]):!1},Ia=function(L){zr(t.removed,{element:L});try{L.parentNode.removeChild(L)}catch{L.remove()}},Bi=function(L,oe){try{zr(t.removed,{attribute:oe.getAttributeNode(L),from:oe})}catch{zr(t.removed,{attribute:null,from:oe})}if(oe.removeAttribute(L),L==="is"&&!q[L])if(ce||ye)try{Ia(oe)}catch{}else try{oe.setAttribute(L,"")}catch{}},lc=function(L){let oe,X;if(me)L=""+L;else{let vt=H2(L,/^[\r\n\t ]+/);X=vt&&vt[0]}dt==="application/xhtml+xml"&&We===at&&(L=''+L+"");let _e=S?S.createHTML(L):L;if(We===at)try{oe=new p().parseFromString(_e,dt)}catch{}if(!oe||!oe.documentElement){oe=O.createDocument(We,"template",null);try{oe.documentElement.innerHTML=Yt?U:_e}catch{}}let rt=oe.body||oe.documentElement;return L&&X&&rt.insertBefore(r.createTextNode(X),rt.childNodes[0]||null),We===at?k.call(oe,G?"html":"body")[0]:G?oe.documentElement:rt},cc=function(L){return y.call(L.ownerDocument||L,L,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},lf=function(L){return L instanceof m&&(typeof L.nodeName!="string"||typeof L.textContent!="string"||typeof L.removeChild!="function"||!(L.attributes instanceof s)||typeof L.removeAttribute!="function"||typeof L.setAttribute!="function"||typeof L.namespaceURI!="string"||typeof L.insertBefore!="function"||typeof L.hasChildNodes!="function")},xu=function(L){return typeof i=="object"?L instanceof i:L&&typeof L=="object"&&typeof L.nodeType=="number"&&typeof L.nodeName=="string"},Pn=function(L,oe,X){E[L]&&z2(E[L],_e=>{_e.call(t,oe,X,de)})},dc=function(L){let oe;if(Pn("beforeSanitizeElements",L,null),lf(L))return Ia(L),!0;let X=W(L.nodeName);if(Pn("uponSanitizeElement",L,{tagName:X,allowedTags:D}),L.hasChildNodes()&&!xu(L.firstElementChild)&&(!xu(L.content)||!xu(L.content.firstElementChild))&&Kt(/<[/\w]/g,L.innerHTML)&&Kt(/<[/\w]/g,L.textContent))return Ia(L),!0;if(!D[X]||z[X]){if(!z[X]&&gc(X)&&($.tagNameCheck instanceof RegExp&&Kt($.tagNameCheck,X)||$.tagNameCheck instanceof Function&&$.tagNameCheck(X)))return!1;if(Le&&!it[X]){let _e=A(L)||L.parentNode,rt=h(L)||L.childNodes;if(rt&&_e){let vt=rt.length;for(let Rt=vt-1;Rt>=0;--Rt)_e.insertBefore(b(rt[Rt],!0),C(L))}}return Ia(L),!0}return L instanceof l&&!sf(L)||(X==="noscript"||X==="noembed")&&Kt(/<\/no(script|embed)/i,L.innerHTML)?(Ia(L),!0):(ue&&L.nodeType===3&&(oe=L.textContent,oe=mn(oe,R," "),oe=mn(oe,F," "),oe=mn(oe,w," "),L.textContent!==oe&&(zr(t.removed,{element:L.cloneNode()}),L.textContent=oe)),Pn("afterSanitizeElements",L,null),!1)},mc=function(L,oe,X){if(xe&&(oe==="id"||oe==="name")&&(X in r||X in Ke))return!1;if(!(Y&&!ae[oe]&&Kt(B,oe))&&!(J&&Kt(I,oe))){if(!q[oe]||ae[oe]){if(!(gc(L)&&($.tagNameCheck instanceof RegExp&&Kt($.tagNameCheck,L)||$.tagNameCheck instanceof Function&&$.tagNameCheck(L))&&($.attributeNameCheck instanceof RegExp&&Kt($.attributeNameCheck,oe)||$.attributeNameCheck instanceof Function&&$.attributeNameCheck(oe))||oe==="is"&&$.allowCustomizedBuiltInElements&&($.tagNameCheck instanceof RegExp&&Kt($.tagNameCheck,X)||$.tagNameCheck instanceof Function&&$.tagNameCheck(X))))return!1}else if(!Dn[oe]&&!Kt(x,mn(X,P,""))&&!((oe==="src"||oe==="xlink:href"||oe==="href")&&L!=="script"&&q2(X,"data:")===0&&ga[L])&&!(pe&&!Kt(N,mn(X,P,"")))&&X)return!1}return!0},gc=function(L){return L.indexOf("-")>0},pc=function(L){let oe,X,_e,rt;Pn("beforeSanitizeAttributes",L,null);let{attributes:vt}=L;if(!vt)return;let Rt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:q};for(rt=vt.length;rt--;){oe=vt[rt];let{name:st,namespaceURI:Na}=oe;if(X=st==="value"?oe.value:W2(oe.value),_e=W(st),Rt.attrName=_e,Rt.attrValue=X,Rt.keepAttr=!0,Rt.forceKeepAttr=void 0,Pn("uponSanitizeAttribute",L,Rt),X=Rt.attrValue,Rt.forceKeepAttr||(Bi(st,L),!Rt.keepAttr))continue;if(!he&&Kt(/\/>/i,X)){Bi(st,L);continue}ue&&(X=mn(X,R," "),X=mn(X,F," "),X=mn(X,w," "));let fc=W(L.nodeName);if(mc(fc,_e,X)){if(Z&&(_e==="id"||_e==="name")&&(Bi(st,L),X=ke+X),S&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!Na)switch(f.getAttributeType(fc,_e)){case"TrustedHTML":{X=S.createHTML(X);break}case"TrustedScriptURL":{X=S.createScriptURL(X);break}}try{Na?L.setAttributeNS(Na,st,X):L.setAttribute(st,X),cd(t.removed)}catch{}}}Pn("afterSanitizeAttributes",L,null)},cf=function L(oe){let X,_e=cc(oe);for(Pn("beforeSanitizeShadowDOM",oe,null);X=_e.nextNode();)Pn("uponSanitizeShadowNode",X,null),!dc(X)&&(X.content instanceof u&&L(X.content),pc(X));Pn("afterSanitizeShadowDOM",oe,null)};return t.sanitize=function(L){let oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X,_e,rt,vt;if(Yt=!L,Yt&&(L=""),typeof L!="string"&&!xu(L))if(typeof L.toString=="function"){if(L=L.toString(),typeof L!="string")throw Hr("dirty is not a string, aborting")}else throw Hr("toString is not a function");if(!t.isSupported)return L;if(ie||Fe(oe),t.removed=[],typeof L=="string"&&(Oe=!1),Oe){if(L.nodeName){let Na=W(L.nodeName);if(!D[Na]||z[Na])throw Hr("root node is forbidden and cannot be sanitized in-place")}}else if(L instanceof i)X=lc(""),_e=X.ownerDocument.importNode(L,!0),_e.nodeType===1&&_e.nodeName==="BODY"||_e.nodeName==="HTML"?X=_e:X.appendChild(_e);else{if(!ce&&!ue&&!G&&L.indexOf("<")===-1)return S&&Se?S.createHTML(L):L;if(X=lc(L),!X)return ce?null:Se?U:""}X&&me&&Ia(X.firstChild);let Rt=cc(Oe?L:X);for(;rt=Rt.nextNode();)dc(rt)||(rt.content instanceof u&&cf(rt.content),pc(rt));if(Oe)return L;if(ce){if(ye)for(vt=T.call(X.ownerDocument);X.firstChild;)vt.appendChild(X.firstChild);else vt=X;return(q.shadowroot||q.shadowrootmod)&&(vt=v.call(n,vt,!0)),vt}let st=G?X.outerHTML:X.innerHTML;return G&&D["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&Kt(yd,X.ownerDocument.doctype.name)&&(st=" +`+st),ue&&(st=mn(st,R," "),st=mn(st,F," "),st=mn(st,w," ")),S&&Se?S.createHTML(st):st},t.setConfig=function(L){Fe(L),ie=!0},t.clearConfig=function(){de=null,ie=!1},t.isValidAttribute=function(L,oe,X){de||Fe({});let _e=W(L),rt=W(oe);return mc(_e,rt,X)},t.addHook=function(L,oe){typeof oe=="function"&&(E[L]=E[L]||[],zr(E[L],oe))},t.removeHook=function(L){if(E[L])return cd(E[L])},t.removeHooks=function(L){E[L]&&(E[L]=[])},t.removeAllHooks=function(){E={}},t}var Re=xd();var a1=Qu.alert;g();var Ga=console,Ss=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),a=Math.round(n-this.#e),r=Zt.green;a>1e4?r=Zt.red:a>1e3&&(r=Zt.yellow),Ga.debug(Zt.dim(ha+" TIMING:"),t,"in",r(a+"ms")),this.#e=n}},qr=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&Ga.log(Zt.dim(ha+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&Ga.log(Zt.green(ha+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&Ga.warn(Zt.yellow(ha+" WARN:"),...t)}error(...t){this.#e<=3&&Ga.error(Zt.red(ha+" ERROR:"),...t)}fatal(...t){this.#e<=4&&Ga.error(Zt.red(ha+" FATAL:"),...t)}timing(){return this.level===0?new Ss:{reset:()=>{},stop:()=>{}}}},H=new qr;var Ed=["*://*/*","*","*://*"],Cd="immersive-translate-wildcard-placeholder.com";function Ds(e,t){let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(o=>Ed.includes(o)))return e;let a=new URL(e);a.hash="",a.search="";let r=a.href,u=a.hostname;if(n&&n.length>0){let o=n.find(i=>{let l=i;if(i===u)return!0;if(Ed.includes(i))return!0;if(!i.includes("*")&&i.includes("://")){try{let c=new URL(i);return c.pathname==="/"&&!i.endsWith("/")?c.hostname===u:u1(r,i)}catch{}return!1}else{let c,s=i;if(i.includes("://")){let C=i.split("://");c=C[0],c==="*"&&C.length>1&&(c="*",i="https://"+C[1])}else c="*",i="https://"+i;let m=i.replace(/\*/g,Cd),p;try{p=new URL(m)}catch{return H.debug("invalid match pattern",m,"raw match value:",s),!1}let f=p.hostname,d=p.pathname;d==="/"&&(s.replace("://","").includes("/")||(d="/*"));let b=r1(c+":",Td(f),Td(d));if(b){let C=new URL(r);return C.port="",b.test(C.href)}else return!1}});if(o)return o}return null}function Td(e){return e.replaceAll(Cd,"*")}function r1(e,t,n){let a="^";return e==="*:"?a+="(http:|https:|file:)":a+=e,a+="//",t&&(e==="file:"||(t==="*"?a+="[^/]+?":(t.match(/^\*\./)&&(a+="[^/]*?",t=t.substring(2)),a+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?a+="(/.*)?":n.includes("*")?(a+=n.replace(/\*/g,".*?"),a+="/?"):a+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):a+="/?",a+="$",new RegExp(a)}function On(e,t){return Ds(e,t)!==null}function u1(e,t){let n=new URL(e),a=new URL(t);return n.hostname===a.hostname&&n.pathname===a.pathname&&n.protocol===a.protocol&&n.port===a.port}g();g();function xa(e){return Array.isArray(e)?e:e?[e]:[]}function Ls(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function Qn(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function ao(e,t){let n={...e};return vd(n,t),o1(n,t),n}function wd(e,t,n){let a={...t};return i1(e,a,n),a}function o1(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},a=t.condition.enableSubtitle?.false||{},r=e.enableSubtitle?n:a;vd(e,r)}function i1(e,t,n){try{return Object.keys(t).forEach(a=>{let[r,u]=a.split(".");if(u){let o=t[a];if(Array.isArray(e[r])&&(o=xa(t[a])),u==="add"){t[r]=Wr(e[r],o),delete t[a];return}else if(u=="remove"){t[r]=Ps(e[r],o),delete t[a];return}}}),Object.keys(n).forEach(a=>{let[r,u]=a.split(".");if(!r||n[a]===void 0)return;let o=n[a],i=t[r];if(Array.isArray(e[r])&&(o=xa(n[a]),i=xa(t[r])),u==="add"){t[r]=Wr(i,o);return}else if(u=="remove"){t[r]=Ps(i,o);return}Array.isArray(i)&&r.startsWith("additional")?t[r]=Wr(i,o):t[r]=o}),t}catch{}}function vd(e,t){return Object.keys(t).forEach(n=>{let[a,r]=n.split(".");if(!a||t[n]===void 0)return;let u=t[n];if(Array.isArray(e[a])&&(u=xa(t[n])),r==="add"){e[a]=Wr(e[a],u);return}else if(r=="remove"){e[a]=Ps(e[a],u);return}Array.isArray(e[a])&&a.startsWith("additional")?e[a]=Wr(e[a],u):e[a]=u}),e}function Wr(e,t){let n;if(Array.isArray(e)){let a=xa(t);n=[...e,...a],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"&&(n={...e,...t});return n}function Ps(e,t){if(Array.isArray(e)){let n=xa(t);return e=e.filter(a=>!n.includes(a)),Array.from(new Set(e))}else typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(n=>{delete e[n]});return e}g();g();var Va="input is invalid type",Ms=typeof window=="object",Zn=Ms?window:{};Zn.JS_SHA256_NO_WINDOW&&(Ms=!1);var s1=!Ms&&typeof self=="object",l1=!Zn.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;l1?Zn=global:s1&&(Zn=self);var E8=!Zn.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,T8=typeof define=="function"&&define.amd,$r=!Zn.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",le="0123456789abcdef".split(""),c1=[-2147483648,8388608,32768,128],pn=[24,16,8,0],ro=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],uo=["hex","array","digest","arrayBuffer"],lt=[];(Zn.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});$r&&(Zn.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var Ad=function(e,t){return function(n){return new ct(t,!0).update(n)[e]()}},Sd=function(e){var t=Ad("hex",e);t.create=function(){return new ct(e)},t.update=function(r){return t.create().update(r)};for(var n=0;n>2]|=e[r]<>2]|=a<>2]|=(192|a>>6)<>2]|=(128|a&63)<=57344?(i[u>>2]|=(224|a>>12)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<>2]|=(240|a>>18)<>2]|=(128|a>>12&63)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<=64?(this.block=i[16],this.start=u-64,this.hash(),this.hashed=!0):this.start=u}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};ct.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=c1[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};ct.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,l=this.blocks,c,s,m,p,f,d,b,C,h,A,S;for(c=16;c<64;++c)f=l[c-15],s=(f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3,f=l[c-2],m=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10,l[c]=l[c-16]+s+l[c-7]+m<<0;for(S=t&n,c=0;c<64;c+=4)this.first?(this.is224?(C=300032,f=l[0]-1413257819,i=f-150054599<<0,a=f+24177077<<0):(C=704751109,f=l[0]-210244248,i=f-1521486534<<0,a=f+143694565<<0),this.first=!1):(s=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),m=(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7),C=e&t,p=C^e&n^S,b=r&u^~r&o,f=i+m+b+ro[c]+l[c],d=s+p,i=a+f<<0,a=f+d<<0),s=(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10),m=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),h=a&e,p=h^a&t^C,b=i&r^~i&u,f=o+m+b+ro[c+1]+l[c+1],d=s+p,o=n+f<<0,n=f+d<<0,s=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),m=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),A=n&a,p=A^n&e^h,b=o&i^~o&r,f=u+m+b+ro[c+2]+l[c+2],d=s+p,u=t+f<<0,t=f+d<<0,s=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),m=(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7),S=t&n,p=S^t&a^A,b=u&o^~u&i,f=r+m+b+ro[c+3]+l[c+3],d=s+p,r=e+f<<0,e=f+d<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+a<<0,this.h4=this.h4+r<<0,this.h5=this.h5+u<<0,this.h6=this.h6+o<<0,this.h7=this.h7+i<<0};ct.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,l=le[e>>28&15]+le[e>>24&15]+le[e>>20&15]+le[e>>16&15]+le[e>>12&15]+le[e>>8&15]+le[e>>4&15]+le[e&15]+le[t>>28&15]+le[t>>24&15]+le[t>>20&15]+le[t>>16&15]+le[t>>12&15]+le[t>>8&15]+le[t>>4&15]+le[t&15]+le[n>>28&15]+le[n>>24&15]+le[n>>20&15]+le[n>>16&15]+le[n>>12&15]+le[n>>8&15]+le[n>>4&15]+le[n&15]+le[a>>28&15]+le[a>>24&15]+le[a>>20&15]+le[a>>16&15]+le[a>>12&15]+le[a>>8&15]+le[a>>4&15]+le[a&15]+le[r>>28&15]+le[r>>24&15]+le[r>>20&15]+le[r>>16&15]+le[r>>12&15]+le[r>>8&15]+le[r>>4&15]+le[r&15]+le[u>>28&15]+le[u>>24&15]+le[u>>20&15]+le[u>>16&15]+le[u>>12&15]+le[u>>8&15]+le[u>>4&15]+le[u&15]+le[o>>28&15]+le[o>>24&15]+le[o>>20&15]+le[o>>16&15]+le[o>>12&15]+le[o>>8&15]+le[o>>4&15]+le[o&15];return this.is224||(l+=le[i>>28&15]+le[i>>24&15]+le[i>>20&15]+le[i>>16&15]+le[i>>12&15]+le[i>>8&15]+le[i>>4&15]+le[i&15]),l};ct.prototype.toString=ct.prototype.hex;ct.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,l=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,a>>24&255,a>>16&255,a>>8&255,a&255,r>>24&255,r>>16&255,r>>8&255,r&255,u>>24&255,u>>16&255,u>>8&255,u&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||l.push(i>>24&255,i>>16&255,i>>8&255,i&255),l};ct.prototype.array=ct.prototype.digest;ct.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function oo(e,t,n){var a,r=typeof e;if(r==="string"){var u=[],o=e.length,i=0,l;for(a=0;a>6,u[i++]=128|l&63):l<55296||l>=57344?(u[i++]=224|l>>12,u[i++]=128|l>>6&63,u[i++]=128|l&63):(l=65536+((l&1023)<<10|e.charCodeAt(++a)&1023),u[i++]=240|l>>18,u[i++]=128|l>>12&63,u[i++]=128|l>>6&63,u[i++]=128|l&63);e=u}else if(r==="object"){if(e===null)throw new Error(Va);if($r&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!$r||!ArrayBuffer.isView(e)))throw new Error(Va)}else throw new Error(Va);e.length>64&&(e=new ct(t,!0).update(e).array());var c=[],s=[];for(a=0;a<64;++a){var m=e[a]||0;c[a]=92^m,s[a]=54^m}ct.call(this,t,n),this.update(s),this.oKeyPad=c,this.inner=!0,this.sharedMemory=n}oo.prototype=new ct;oo.prototype.finalize=function(){if(ct.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();ct.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),ct.prototype.finalize.call(this)}};var Ya=Sd();Ya.sha256=Ya;Ya.sha224=Sd(!0);Ya.sha256.hmac=Dd();Ya.sha224.hmac=Dd(!0);var Ld=Ya;var Pd=Ld.sha256;function fn(e){return Promise.resolve(Pd(e))}function io(e){return Array.from(new Uint8Array(e)).map(a=>a.toString(16).padStart(2,"0")).join("")}function Xn(e,t){let n=Pd.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function Md(e,t){let n=await Xn(e,t);return io(n)}async function so(e,t){let n=d1(t),a=await Xn(e,n);return io(a)}function d1(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}g();g();function tt(){try{return globalThis.self!==globalThis.top}catch{return!0}}var lo=!1,m1=fe();function Fd(e,t){let n=[];for(let a of t){let r=e.querySelectorAll(a);for(let u of r)n.push(u)}return n}function g1(e,t){let n=function(u){return u.nodeType===Node.ELEMENT_NODE||u.nodeType===Node.TEXT_NODE?u.nodeType===Node.ELEMENT_NODE&&_d(u,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),r=!0;for(;a.nextNode();){let u=a.currentNode;if(u.nodeType===Node.ELEMENT_NODE){if(ea(u,qu)){if(r===!0)return!0;continue}if(Kr(u.nodeName,t.inlineTags))return!0;if(!Fs(u,t))return!1}}return!0}function _s(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(Kr(e.nodeName,n)||Fs(e,t)){if(ea(e,A4)||Kr(e.nodeName,["BR"]))return!1;if(ea(e,qu))return!0;if(Fs(e,t)){let a=globalThis.getComputedStyle(e);if(a.display==="block"||a.display==="flex")return!1}return g1(e,t)}else return ea(e,qu);return!1}function _d(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&ea(e,v4,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&ea(e,x4))return!1;let{stayOriginalTags:a,excludeTags:r}=t,u=[];return n&&r&&r.length>0?u=r||[]:u=r.filter(o=>!a.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||Kr(e.nodeName,u))}function co(e,t,n){let a=e.trim();return a.length>=t||a.split(" ").filter(o=>o.trim()!=="").length>=n||!Rd(a)&&a.length>=n}function Bd(e,t,n){let a=e.trim();if(a.length<=t)return!0;if(Rd(a)){if(a.split(" ").length<=n)return!0}else if(a.length<=n)return!0;return!1}function Rd(e){for(let t=0;t127)return!1;return!0}function Od(e){if(e&&e.includes("://"))try{return new URL(e),!0}catch{return!1}else return!1}function Id(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function Nd(e){return e?/^[-+]?[0-9]*\.?[0-9]+%?$/.test(e):!1}function jd(e){return!!(e&&e.startsWith("#")&&e.indexOf(" ")===-1)}function Ud(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function ea(e,t,n=!1){return Bs(e,t,"1",n)}function Bs(e,t,n,a=!1){return lo&&!a?e[It]?!!(e[It]&&e[It][t]===n):!1:e.dataset[t]===n}function Ja(e){return(e.innerText||e.textContent||"").trim()}function Rs(e){let t=e.querySelectorAll("iframe"),n="";for(let a=0;a2e3))break}return n}function mo(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function nt(e,t,n,a=!1,r=!1){e.isContentEditable&&!r||(lo&&!a?(e.dataset[Fr]||(e.dataset[Fr]="1"),e[It]||(e[It]={}),e[It][t]||(e[It][t]=n)):(e.dataset[Fr]||(e.dataset[Fr]="1"),e.dataset[t]!==n&&(e.dataset[t]=n)))}function go(e,t,n=!1){if(lo&&!n){if(!e[It]||!e[It][t])return;delete e[It][t]}else delete e.dataset[t]}function Qa(e,t,n=!1){return lo&&!n?!e[It]||!e[It][t]?void 0:e[It][t]:e.dataset[t]}function Fs(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!Kr(e.nodeName,n)}function Za(e){let{config:t}=e,n=ba;return t.translationServices[e.translationService]&&t.translationServices[e.translationService].placeholderDelimiters&&(n=t.translationServices[e.translationService].placeholderDelimiters),n}function gt(){if(!globalThis||!globalThis.location)return"https://example.com";if(!tt())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let a="";try{a=globalThis.parent.location.href}catch{}return a||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function Ea(e,t,n){if(e instanceof ShadowRoot){try{e.appendChild(document.createElement("style")).textContent=t}catch(a){H.warn("injectCSS failed, rootDocument"+a?.message,e)}return}if(e&&e.head&&e.head.appendChild){let a=e.createElement("style");if(n){let r=e.querySelector(`style[data-id="${n}"]`);r&&r.remove(),a.dataset.id=n}a.textContent=t,e.head.appendChild(a)}else if(e){let a=document.createElement("head"),r=document.createElement("style");r.textContent=t,a.appendChild(r),e.appendChild(a)}else H.warn("injectCSS failed, rootDocument does not have head node",e)}function Xa(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(m1){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!document.querySelector("meta[name='immersive-translate-ebook-viewer']")||!t.startsWith("blob:http");return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function Kr(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function zd(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),a=parseInt(t.substring(2,4),16),r=parseInt(t.substring(4,6),16);return{r:n,g:a,b:r}}function Hd(e,t,n,a){if(a.document.caretPositionFromPoint){let r=a.document.caretPositionFromPoint(e,t);if(r){let u=a.document.createRange(),o=r.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||_d(o,n,!0))return null;try{u.setStart(o,r.offset),u.setEnd(o,r.offset)}catch(i){return H.warn("getRangeFromPoint error",i),null}return u}return null}else return a.document.caretRangeFromPoint?a.document.caretRangeFromPoint(e,t):null}function qd(e,t,n){let a=0,r=(u,o,i,l)=>{if(++a>100||l===u)return u;let c=u.shadowRoot;if(!c||typeof c.elementFromPoint!="function")return u;let s=c.elementFromPoint(o,i);return s?r(s,o,i,u):u};return r(e,t,n)}g();g();function er(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t==="zh-hans")return"zh-CN";if(t==="zh-hant"||t==="zh-hk")return"zh-TW";if(t==="iw")return"he";if(t==="jv")return"jw";let n=Qt.map(r=>r.toLowerCase()),a=n.indexOf(t);if(a===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let r=n.indexOf(t);return r===-1?"auto":Qt[r]}else return"auto";else return Qt[a]}function Ta(){return er(document?.documentElement?.lang||"en")}g();function en(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function Wd(e){if(e){let t=new Date(e.createTime),n=p1(t),a="free",r="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(a=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?r="stripe":r="admin"),{user_type:a,user_register_day:n,subscription_from:r}}else return null}function p1(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[a,r,u]=n.split("/");return n=`${u}-${a}-${r}`,n}catch{return"unknown"}}g();var $d=ge+"SyncStoreKey_";function Dt(e,t){let n=$d+e;return ee.storage.sync.get(n).then(a=>a[n]===void 0?t:a[n])}function ze(e,t){let n=$d+e;return ee.storage.sync.set({[n]:t})}g();var Kd=ge+"StoreKey_";function In(e,t){let n=Kd+e;return ee.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function Gd(e,t){let n=Kd+e;return ee.storage.local.set({[n]:t})}g();g();g();var ut=class extends Error{details;constructor(t,n,a){super(n),this.name=t,a&&(this.details=a)}};async function Nn(e){let t;if(e&&e.retry&&e.retry>0)try{t=await ls(Vd.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await Vd(e);return t}async function Vd(e){e.body;let{url:t,responseType:n,...a}=e;n||(n="json"),a={mode:"cors",...a};let r=!0;e.fetchPolyfill&&(r=!1);let u=e.fetchPolyfill||fetch,o=3e5;if(e.timeout&&(o=e.timeout),r){let l=new AbortController,c=l.signal;setTimeout(()=>{l.abort()},o),a.signal=c}let i;try{i=await u(t,a)}catch(l){H.debug("fetch error",t,l);let c=l.message||"";throw l.message="\u7F51\u7EDC\u95EE\u9898\uFF0C\u65E0\u6CD5\u8FDE\u63A5\u5230\u670D\u52A1\uFF0C\u8BF7\u68C0\u67E5\u4F60\u7684\u4EE3\u7406\u6216\u672C\u5730\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u8BD5\u3002 "+c,l}if(i.ok&&i.status>=200&&i.status<400){if(n==="json")return await i.json();if(n==="text")return await i.text();if(n==="raw"){let l=await i.text(),c=Object.fromEntries([...i.headers.entries()]),s=i.url;return s||(i.headers.get("X-Final-URL")?s=i.headers.get("X-Final-URL"):s=t),{body:l,headers:c,status:i.status,statusText:i.statusText,url:s}}else if(n==="stream"){let l="",c;if(i.body&&i.body instanceof ReadableStream)for await(let s of f1(i.body)){let m=new TextDecoder().decode(s);l+=m;let p;for(;(p=l.indexOf(` +`))>=0;){let f=l.slice(0,p).trim();if(l=l.slice(p+1),f.startsWith("event:")||f==="")continue;let d="";if(f.startsWith("data:")&&(d=f.slice(5).trim()),d==="[DONE]")break;let b;try{b=JSON.parse(d??"")}catch(C){H.debug("json error",C);continue}c=b}}return c}}else{let l;try{l=await i.text()}catch(f){H.error("parse response failed",f)}l&&H.error("fail response",l);let c="";l&&(c=l.slice(0,280));let s="\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u4EE3\u7801:"+i.status+": "+(i.statusText||"")+c,p=new URL(t).hostname.endsWith(".immersivetranslate.com");throw i.status===429?p?c.includes("quota exceeded")?s="ProQuota:"+c:s=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${c} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`:s=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A429\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===403?s=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A403\uFF0C \u8BF4\u660E\u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ${c}`:i.status===400?s=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A400\uFF0C \u8BF4\u660E\u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002 ${c}`:i.status===502?s=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A502\uFF0C \u8BF4\u660E\u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===401&&(s=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A401\uFF0C \u8BF4\u660E\u672A\u767B\u5F55\u6216\u767B\u5F55\u6001\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002 ${c}`),new ut("fetchError",s,l)}}async function*f1(e){let t=e.getReader();try{for(;;){let{done:n,value:a}=await t.read();if(n)return;yield a}}finally{t.releaseLock()}}g();var h1=new Map;function po(e){let t=b1(64),n=new CustomEvent(h4,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((a,r)=>{h1.set(t,(u,o)=>{u?r(u):a(o)})})}function b1(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};function tn(){return fo.version}g();var Gr=new Map,kn=class{fromType;logger;constructor(t,n=!1){this.logger=new qr,n&&this.logger.setLevel("debug"),this.fromType=t,Gr.has(t)||(Gr.set(t,new Map),ee.runtime.onMessage.addListener((a,r,u)=>{let o=a.from,i=a.to,l,c,s;r.tab&&r.tab.id&&(l=r.tab.id,o=`${o}:${l}`,c=r.tab.url,s=r.tab.active),this.logger.debug(`${a.to} received message [${a.payload.method}] from ${a.from}`,a.payload.data?a.payload.data:" ");let m=Is(i),{type:p,name:f}=m;if(p!==t)return!1;let d=Is(o),C=Gr.get(p).get(f);if(!C)return this.logger.debug(`no message handler for ${p}:${i}, but it's ok`),!1;let{messageHandler:h,sync:A}=C,S={type:t,name:d.name,id:l,url:c,active:s};if(A){try{let U=h(a.payload,S);u({ok:!0,data:U})}catch(U){u({ok:!1,errorName:U.name,errorMessage:U.message,errorDetails:U.details})}return!1}else return h(a.payload,S).then(U=>{u({ok:!0,data:U})}).catch(U=>{u({ok:!1,errorName:U.name,errorMessage:U.message,errorDetails:U.details})}),!0}))}getConnection(t,n,a){let r=!1;a&&a.sync&&(r=!0);let u=this.fromType,o=Gr.get(u);if(o.has(t))return o.get(t).connectionInstance;{let i=new Os(`${u}:${t}`,this.logger);return Gr.get(u).set(t,{messageHandler:n,sync:r,connectionInstance:i}),i}}},Os=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let a=Is(t),{type:r,id:u}=a;if(r!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let i=await ee.runtime.sendMessage(o);return Yd(o,i,this.logger)}catch(i){if(r==="popup"){let l=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(l,n,t,i),Promise.resolve({message:l})}else throw i}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let i=await ee.tabs.sendMessage(u,o);return Yd(o,i,this.logger)}}};function Yd(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new ut(t.errorName||"UnknownError",t.errorMessage||"Unknown error",t.errorDetails)}else throw new ut("noResponse","Unknown error")}function Is(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let a=parseInt(t[2]);if(!isNaN(a))n.id=a;else throw new Error("tab id not a valid number")}return n}var ho;function x1(){return ho||(ho=new kn("content_script",!1).getConnection("pure_main",()=>{}),ho)}var Jd="G-MKMD9LWFTR";async function Vr(e,t){try{let n=Be();if(n.INSTALL_FROM==="firefox_store")return;let r=fe(),u=tt(),o=n.PROD==="1",i="sitc4WmvShWYwfU0dANM3Q",l=await Dt("fakeUserId","");l||(l=await In("fakeUserId",""),l&&await ze("fakeUserId",l));let c=tn(),s=new Date,m=await Dt("installedAt","");m||(m=await In("installedAt",""),m&&await ze("installedAt",m)),l?m||(m=new Date(0).toISOString(),await ze("installedAt",m)):(l=E1(32),await ze("fakeUserId",l)),m||(m=s.toISOString(),await ze("installedAt",m));let p=new Date(m),f=Qd(p),d=Qd(s),b=f===d,C=s.getTime()-p.getTime()<7*24*60*60*1e3,h=`https://www.google-analytics.com/mp/collect?measurement_id=${Jd}&api_secret=${i}`;o||(h=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${Jd}&api_secret=${i}`);let A="";typeof navigator<"u"&&(A=window.navigator.userAgent);let S=$a.parse(A),U=t.map(y=>{let T=y.params||{};return S.os&&(T.os_name=S.os.name||"unknown",T.os_version=S.os.version||"unknown",T.os_version_name=S.os.versionName||"unknown"),S.browser&&(T.browser_name=S.browser.name||"unknown",T.browser_version=S.browser.version||"unknown"),S.platform&&(T.platform_type=S.platform.type||"unknown"),S.engine&&(T.engine_name=S.engine.name||"unknown",T.engine_version=S.engine.version||"unknown"),c&&(T.version=c),n.INSTALL_FROM&&(T.install_from=n.INSTALL_FROM),f&&(T.install_day=T1(p)),T.userscript=r.toString(),b?T.is_new_user_today="1":T.is_new_user_today="0",C?T.is_new_user_this_week="1":T.is_new_user_this_week="0",u?T.main_frame=0:T.main_frame=1,{...y,params:T}}),O=await bo({responseType:"text",url:h,method:"POST",body:JSON.stringify({client_id:l,user_id:l,events:U})})}catch{}}function E1(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r",""],limit:5e3},custom:{placeholderDelimiters:["{","}"]},bing:{maxTextLengthPerRequest:1800,placeholderDelimiters:["","","b"]},deeplx:{limit:3},d:{immediateTranslationTextCount:0},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},openai:{placeholderDelimiters:["{{","}}","b"],immediateTranslationTextCount:3e3,translationDebounce:300,interval:1350,prompt:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: {{text}}`,maxTextGroupLengthPerRequest:1,newlinePlaceholderDelimiters:[` @@ -4264,61 +4264,63 @@ Additionally, we support using Chinese aliases of language codes as commands. Fo ?`]}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:""},tempTranslateDomainMinutes:0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","*.twitter.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","github.com","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","www.tumblr.com","*.twitter.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},generalRule:{_comment:"",enableSubtitle:!0,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan"],useIframePostMessage:!0,searchEnhancementConfig:[],injectedCss:[],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!0,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,isTransformPreTagNewLine:!1,urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".MathJax_Preview",".MathJax",".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:4,paragraphMinWordCount:2,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,globalAttributes:{},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{".sr-only":"display:none"},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{translate:"no"},"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:[],additionalExcludeSelectors:[".social-share",".breadcrumbs",".post__footer",".btn",".reference-citations",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","markerow8"],translationClasses:[],atomicBlockSelectors:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","INPUT","BUTTON","BASE","SELECT","OPTION","HR","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","XQDD_HIGHLIGHT_NEW_WORD","NOBR"],additionalInlineTags:[],extraInlineSelectors:[],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,mouseHoverHoldKey:"Off"},rules:[{id:"immersive",matches:["https://immersivetranslate.com","https://onboarding.immersivetranslate.com"],isInjectVersion:!0,isInjectMeta:!0},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"pdf",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],translationMode:"translation",skipEditableCheck:!0,selectors:["p"],wrapperPrefix:"",isInjectVersion:!0,isPdf:!0},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,injectedCss:[".immersive-translate-target-translation-block-wrapper { display: block; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"]},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","https://platform.twitter.com/embed*"],additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']"],extraBlockSelectors:['[data-testid="tweetText"] div.r-6koalj'],extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText']":"-webkit-line-clamp: unset;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]"]},{id:"threads",matches:"www.threads.net",selectors:["p",".x1npkx4u.x1exu5d8",".xw7yly9",".xgkxs2y"],stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x78zum5",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{span:"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],extraBlockSelectors:["span.comment-copy"],excludeSelectors:["a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md",".RichTextJSON-root","div[slot=title]","div[slot=text-body]","p.title > a","[role=main] .md-container"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none"},waitForSelectors:["[data-testid=post_author_link]"]},{id:"reddit",matches:"www.reddit.com",selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","div[slot=title]","div[slot=text-body]","p.title > a","[role=main] .md-container"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none"}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper"],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box"],extraBlockSelectors:[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],detectParagraphLanguage:!0},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"facebook",matches:"www.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]"],atomicBlockSelectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],extraBlockSelectors:["span.x1vvkbs"],excludeSelectors:["[role=button]"],translationClasses:["immersive-translate-text"],detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".caption-window",".caption-visual-line",".yt-spec-button-view-model",".yt-core-attributed-string > span",".title"],"excludeTags.remove":["BUTTON"],condition:{enableSubtitle:{false:{"selectors.remove":[".caption-window",".caption-visual-line"]}}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],extraBlockSelectors:[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,detectParagraphLanguage:!0,excludeSelectors:["[class^='lln-']"],globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","ytd-notification-renderer .message","#message",".caption-window",".caption-visual-line"],extraBlockSelectors:["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],condition:{enableSubtitle:{false:{"selectors.remove":[".caption-window",".caption-visual-line"]}}},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,selectors:["h1","div[class='x9f619 xjbqb8w x78zum5 x168nmei x13lgxp2 x5pf9jr xo71vjh x1uhb9sk x1plvlek xryxfnj x1c4vz4f x2lah0s xdt5ytf xqjyukv x1cy8zhl x1oa3qoh x1nhvcw1'] > span[class='x1lliihq x1plvlek xryxfnj x1n2onr6 x193iq5w xeuugli x1fj9vlw x13faqbe x1vvkbs x1s928wv xhkezso x1gmr53x x1cpjm7i x1fgarty x1943h6x x1i0vuye xvs91rp xo1l8bm x5n08af x10wh9bi x1wdrske x8viiok x18hxmgj']","span[class='x193iq5w xeuugli x1fj9vlw x13faqbe x1vvkbs xt0psk2 x1i0vuye xvs91rp xo1l8bm x5n08af x10wh9bi x1wdrske x8viiok x18hxmgj']"],wrapperPrefix:"
"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:["[style^=top]",".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;"},extraBlockSelectors:[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"]},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page"],excludeMatches:["https://www.inoreader.com/features/"],observeUrlChange:!1,globalStyles:{".article_title_link":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` `,selectors:["h3 a[data-clk]","div.gs_rs","td a.gsc_a_at","td div.gs_gray:last-of-type","div.gsc_oci_value","#gs_opinion"],extraInlineSelectors:["br"],atomicBlockSelectors:["h3 a[data-clk]"]},{id:"googleMail",matches:"mail.google.com",detectParagraphLanguage:!0,selectors:["h2[data-thread-perm-id]","span[data-thread-id]","div[data-message-id] div[class='']",".messageBody","#views"],globalStyles:{".Nk":"height:auto!important;",".kf":"white-space:unset!important;"}},{id:"googleNews",matches:"news.google.com",blockMinTextCount:26,blockMinWordCount:5,globalStyles:{".MCAGUe":"height: auto;",".To2ZZb.DbQnIe":"height: unset;",".cp7Yvc > h2":"display: block;",".oovtQ":"height: auto;",h4:"-webkit-line-clamp: unset;"},excludeSelectors:[".EyERq",".AOl7G.eejsDc","[aria-label='Home']","[aria-label='For you']","[aria-label='Following']","[aria-label='World']","[aria-label='Local']",".gb_Fc",".wBQf7b",".yPI8Rb",".jKHa4e",".u43Gd",".Zgjpyb","[role='button']","[jsname='rymPhb']",".cbz1ld",".VfPpkd-P5QLlc",".XvhY1d"]},{id:"outlook",matches:"outlook.live.com",excludeSelectors:[".jHAG3.XG5Jd",".OZZZK",".lDdSm"]},{id:"producthunt",matches:"www.producthunt.com",excludeMatches:"https://www.producthunt.com/stories/*",selectors:["h2","div[class^='styles_htmlText__']","[class^='styles_tagline']","a[href^='/discussions/'].fontWeight-600","button[class^='styles_textButton'] > div > span","h5 + p","div[data-test=product-item-name] + div",".noOfLines-1,.noOfLines-2,.noOfLines-3",".fontWeight-600","[class*='styles_dropdown']","[class*='styles_aboutText']"],globalStyles:{"h5 + p":"height:unset;",".noOfLines-1,.noOfLines-2,.noOfLines-3":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"]},{id:"codeforces",matches:"https://codeforces.com/*",stayOriginalTags:["[class^='MathJax']"]},{id:"arxivLabs",matches:"*.labs.arxiv.org/*",stayOriginalTags:["math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt"]},{id:"discord",matches:"https://discord.com/channels/*",isTranslateTitle:!1,selectors:["li[id^=chat-messages] div[id^=message-content]","div[class^=headerText]","section[aria-label='Search Results'] div[id^=message-content]"],extraBlockSelectors:["[class^='embedFieldValue']","li[class^='card'] div[class^='message']","[data-list-item-id^='forum-channel-list'] div[class^='headerText']"],globalStyles:{"div[class^=headerText]":"max-height: unset;","div[class^=message]":"max-height: unset;","div[class^=text]":"max-height: unset;","h3[data-text-variant='heading-lg/semibold']":"-webkit-line-clamp: none;"},detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:"",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"telegram",matches:["web.telegram.org/z/*","web.telegram.org/a/*"],isTranslateTitle:!1,selectors:[".text-content",".message",".reply-markup-button-text",".bot-commands-list-element-description"],detectParagraphLanguage:!0},{id:"telegramK",matches:["web.telegram.org/k/*","web.telegram.org/k/"],selectors:[".message",".reply-markup-button-text",".bot-commands-list-element-description"],detectParagraphLanguage:!0},{id:"githubGist",matches:"gist.github.com",selectors:[".markdown-body",".readme"],detectParagraphLanguage:!0},{id:"lobste",matches:"lobste.rs",excludeMatches:["https://lobste.rs/about","https://lobste.rs/chat"],selectors:[".u-repost-of",".comment_text",".story_text"]},{id:"slack",matches:"*.slack.com",selectors:[".p-rich_text_block",".p-message_pane__foreword",".c-alert__message","[data-qa=message_attachment_text]"],additionalStayOriginalSelectors:["[data-qa=emoji]"],detectParagraphLanguage:!0},{id:"artstationArtwork",matches:"www.artstation.com/artwork/*",excludeSelectors:".project-description a",selectors:[".project-description","div.project-comment-text"],detectParagraphLanguage:!0},{id:"artstationLearning",matches:"www.artstation.com/learning/courses/*",additionalSelectors:["footer.learning-course-description.ng-star-inserted > span"],excludeSelectors:[".learning-card-meta"]},{id:"artstationBlog",matches:["https://www.artstation.com/blogs","https://www.artstation.com/blogs/*"],detectParagraphLanguage:!0,additionalSelectors:[".comment-item-body"],atomicBlockSelectors:[".author-headline",".author-location"],excludeSelectors:["blog-card-thumbnail","blog-card-header",".blog-card-author",".blog-card-meta",".blog-view-header",".blog-grid-title",".post-meta-header"]},{id:"figmaCommunity",matches:"www.figma.com/community/*",normalizeBody:"div.ql-editor[contenteditable='false']",excludeSelectors:["div[class*='metadataRight']","div[class*='commentMetaAndOptions']"],globalStyles:{"div[class*='mini_cardBottomRowSizing']":"height: 3em;"},additionalSelectors:["div[class*='mini_cardBottomRow_Metadata']"],stayOriginalSelectors:["[data-tooltip='tooltip-user-info']"]},{id:"googleIndex",matches:["https://www.google.com/","https://www.google.com.hk/"],excludeSelectors:["#gb","#SIvCob"],inputTutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",inputTutorialsSelectors:["textarea#APjFqb"]},{id:"googleSearch",matches:"www.google.*/search*",blockMinTextCount:32,blockMinWordCount:3,wrapperSuffix:"",detectParagraphLanguage:!0,excludeSelectors:["a h3 + div","div#sfooter","a[role=presentation] > div > div:first-child",".b5ZQcf",".CEMjEf",".MgUUmf.NUnG9d","#result-stats","[role=navigation]","div.sCuL3","div.eFM0qc.BCF2pd","div.WZ8Tjf","div.adDDi","#headerSection","#rateChatDiv","[id=bres]",".title-D5Lgyj","[data-attrid='VisualDigestVideoResult']",".search-enhance-WDIEkP h4",".SPZz6b h2",".CtCigf",".VLkRKc",".EbH0bb",".Wr0c6d",".jleFbf","#searchform",".yg51vc",".CbAZb"],extraBlockSelectors:[".MUFPAc"],globalStyles:{".V82bz":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px",".pe7FNb":"-webkit-line-clamp: unset;",".promotion-3PDMAb":"display: none;",".uAKcGb":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px","div[data-content-feature='1'] > div":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:2']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:3']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:4']":"-webkit-line-clamp: unset;max-height: unset;",".Pw4Ldf.RsCEN":"height:unset;",".related-question-pair":"overflow:auto;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,searchEnhancementConfig:[{id:"google",urlMatch:"https://www\\.google\\..+/search",style:{source:"font-size:12px; margin-bottom: 6px;",enTitle:"margin-top:6px;font-size:14px;",searchTitle:"margin-top:6px;position:relative;padding-right:24px;",more:"color:#1a0dab;margin-top:8px;",enTitleClassName:"immersive-translate-search-enhancement-en-title"},keyword:{value:"[0]$1",matches:[{source:"url",matchRegex:"q=(.+?)&"}]},showCount:5}]},{id:"lowendtalk",matches:"lowendtalk.com",selectors:["[role=heading]","h1",".userContent"]},{id:"linkedinJobs",matches:"www.linkedin.com/jobs/*",selectors:["#job-details > span"]},{id:"linkedinFeed",matches:"https://linkedin.com/feed/*",selectors:["h1",".feed-shared-update-v2__description-wrapper"]},{id:"indiehackers",matches:"www.indiehackers.com",selectors:[".content","h1","h3.story__title",".feed-item__title-link",".article-body"]},{id:"libreddit",matches:"libreddit.de",selectors:["h2.post_title",".comment_body > .md"]},{id:"notionSite",matches:["notion.site","*.notion.site"],normalizeBody:"body",selectors:["div[data-block-id]"]},{id:"newyorker",matches:"www.newyorker.com",additionalSelectors:["h1","[data-testid=SummaryItemHed]"],excludeSelectors:["[data-testid=PersistentTop]","[data-testid=StackedNavigationHeader]"],urlChangeDelay:2e3},{id:"startme",matches:"start.me",selectors:[".rss-article__title",".rss-articles-list__article-link",".rss-showcase__title",".rss-showcase__text"]},{id:"scmp",matches:"www.scmp.com",additionalSelectors:[".info__subHeadline",".section-content h2"],globalStyles:{".topic__article-list":"height: unset;",".adverisers__adveriser":"height: unset;",".advertiser__content":"height: unset;",".content-title__link":"display:unset;overflow:unset;-webkit-line-clamp:unset;",".title__text":"max-height:unset; -webkit-line-clamp:unset;",".news-list-item__news-title":"max-height:unset; -webkit-line-clamp:unset;","a[class*='link'] > .link__headline":"max-height:unset; -webkit-line-clamp:unset;"}},{id:"lesswrong",matches:"www.lesswrong.com",extraBlockSelectors:["span.commentOnSelection"]},{id:"mastodon",matches:["mastodon.social","mastodon.online","kolektiva.social","indieweb.social","mastodon.world","infosec.exchange"],isTranslateTitle:!1,selectorMatches:["div#mastodon"],selectors:["div.status__content__text",".about__section__body",".content",".form-container",".account__header__extra"],globalAttributes:{"[class='notranslate app-holder']":{class:"app-holder"}},detectLanguage:!0},{id:"cnbc",matches:"www.cnbc.com",urlChangeDelay:1e3,globalStyles:{"div.Card-titleContainer > div":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"dailyDev",matches:"app.daily.dev",selectors:["h1",".typo-body","article h3","[class^=markdown_markdown]"],globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset"}},{id:"pornhub",matches:["*.pornhub.com","pornhub.com"],excludeMatches:["*.pornhub.com/insights/*","pornhub.com/insights/*"],extraBlockSelectors:[".trendingNow",".searchItem",".tagcloud > a"],detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:` `,globalStyles:{"span.title":"height:unset; max-height:unset;",".detailedInfo":"max-height:unset;",".pcVideoListItem":"max-height:unset;",".wrap":"height:unset;",".entry-header":"height:unset;",".entry-title > a":"height:unset;-webkit-line-clamp:unset;"}},{id:"yourporn",matches:"https://www.youporn.com/*",extraBlockSelectors:[".button"],globalStyles:{".video-box":"max-height:unset;",".video-box-title":"white-space:unset;"}},{id:"modelhub",matches:"https://www.modelhub.com/*",globalStyles:{".videoTitle":"height:unset;",a:"height:unset;"}},{id:"xvideos",matches:"https://www.xvideos.com/*",globalStyles:{".title":"-webkit-line-clamp:unset;max-height:unset;",".mozaique":"display:flex; flex-wrap:wrap;"},excludeSelectors:[".video-hd-mark"]},{id:"missav",matches:"https://missav.com/*",globalStyles:{".truncate":"white-space:unset;",".overflow-y-hidden":"max-height:unset;overflow-y:unset;"}},{id:"javbus",matches:"https://www.javbus.com/*",globalStyles:{".photo-info":"height:unset;"},excludeSelectors:[".item-tag","date"]},{id:"spankbang",matches:"https://spankbang.com/*",globalStyles:{".video-item > a":"white-space:unset;"},excludeSelectors:[".stats",".thumb"],extraBlockSelectors:[".searches > a",".tag > a",".extra > a",".positions > li"]},{id:"javdb",matches:"https://javdb*.com/*",globalStyles:{".video-title":"white-space:unset;"},excludeSelectors:[".video-number",".score",".has-addons"]},{id:"jable",matches:"https://jable.tv/*",globalStyles:{".title":"white-space:unset;max-height:unset;",".img-box > a":"position:relative;"}},{id:"netflav",matches:"https://netflav*.com/*",globalStyles:{".grid_title":"max-height:unset;"},extraBlockSelectors:[".genre_filter_item","button"]},{id:"czechvideo",matches:"https://czechvideo.co/*",globalStyles:{".short-story":"height:unset;",".short-title":"height:unset;"},globalAttributes:{header:{translate:"unset;"}}},{id:"weibo",matches:["weibo.com"],selectors:["div[class^='detail_wbtext']"]},{id:"medium",matches:["medium.com","*.medium.com"],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],urlChangeDelay:20,"additionalExcludeSelectors.remove":["i.fa","i[class^=fa-]",".navmenu-container",".google-symbols","markerow8"],selectors:["h1","h2","article section","[aria-hidden='false'] pre","article p"],excludeSelectors:["[aria-label='Post Preview Reading Time']",".al.b.bl.ag.bp",".al.b.bl.ag.ai"],globalStyles:{h2:"-webkit-line-clamp: unset;max-height:unset;","article p":"-webkit-line-clamp: unset;max-height:unset;"}},{id:"nitter",selectorMatches:["meta[property='og:site_name'][content='Nitter']"],selectors:[".tweet-content",".quote-text"]},{id:"economist",matches:"www.economist.com",extraInlineSelectors:["span[data-caps='initial']"],excludeSelectors:["footer.ds-footer"],injectedCss:["a::before {position:relative!important;}"]},{id:"healthline",matches:"www.healthline.com",excludeSelectors:[".icon-hl-trusted-source-after"]},{id:"ebay",matches:"www.ebay.com",excludeSelectors:["headers","[itemprop=offers]",".dne-itemtile-original-price"],paragraphMinTextCount:4,paragraphMinWordCount:2,globalStyles:{"[itemprop=name]":"-webkit-line-clamp: unset;max-height: unset;",".merch-item-title":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"skinstore",matches:"www.skinstore.com",excludeSelectors:[".responsiveFlyoutMenu_levelOneLink"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"tripadvisor",matches:"www.tripadvisor.com",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"amazon",matches:"www.amazon.com",paragraphMinTextCount:4,paragraphMinWordCount:2,extraBlockSelectors:[".a-size-small.a-link-normal.page-banner-link.a-nowrap"],globalStyles:{".a-carousel-viewport":"height:unset;","[class*='clamp']":"max-height: unset;-webkit-line-clamp: unset;","[data-rows]":"max-height: unset;-webkit-line-clamp: unset;","[data-a-expander-name='review_text_read_more']":" max-height: unset;"},excludeSelectors:["#navFooter","#navbar-main",".s-price-instructions-style","[class*='star']","[data-hook='acr-average-stars-rating-text']",".a-color-price"]},{id:"visualstudioMarketplace",matches:"marketplace.visualstudio.com",additionalExcludeSelectors:[".core-info-second-row",".core-info-third-row",".meta-data-list",".item-title",".breadcrumb",".itemDetails-right",".ux-user-name",".ux-updated-date",".ux-item-second-row-wrapper",".stats-and-offer",".header-container"],atomicBlockSelectors:[".core-info-cell > div.name"],globalStyles:{".item-details-control-root.ux-item-shortdesc":"height: unset; overflow: visible; max-height:unset;"}},{id:"bloomberg",matches:"www.bloomberg.com",urlChangeDelay:2e3,excludeSelectors:[".ticker-bar","nav","[aria-label=Banner]","aside","[data-component=ticker-bar]","footer.bb-global-footer"]},{id:"baiduXueshu",matches:"xueshu.baidu.com",globalStyles:{".abstract_wr":"height: unset; overflow: visible; max-height:unset;"}},{id:"sciencedirect",matches:"www.sciencedirect.com",urlChangeDelay:2e3,stayOriginalSelectors:["span.display","span.math"],extraBlockSelectors:["span.captions","span[id^=cap]"]},{id:"thehighestofthemountains",matches:"www.thehighestofthemountains.com",extraBlockSelectors:"div"},{id:"telegraph1",matches:"te.legra.ph",normalizeBody:"div.ql-editor[contenteditable='false']",urlChangeDelay:500},{id:"telegraph2",matches:["telegra.ph"],normalizeBody:"div.ql-editor[contenteditable='false']",wrapperPrefix:` -`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main > div > div[class*='h-[125]']":"height:auto"},normalizeBody:"body",extraBlockSelectors:["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,normalizeBody:"#mw-content-text",globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"]},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"}},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:"chat.openai.com",excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0}},{id:"newstop",matches:["chat.newstop.asia","chat.waixingyun.cn"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".n-button.n-button--warning-type.n-button--medium-type",messageWrapperSelector:".markdown-body",streamingChange:!1,streamingDeepChild:!0}},{id:"askgpt",matches:["askgpt.cn","chatcat.zhaoyoung.me"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".home_chat-message-status__EsVNi",messageWrapperSelector:".markdown-body",streamingChange:!0,streamingDeepChild:!0}},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__UyYrv *",".MarkdownLink_linkifiedLink__KxC9G"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__UyYrv",streamingChange:!1,streamingDeepChild:!0}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"newthingsunderthesun",matches:"www.newthingsunderthesun.com",additionalSelectors:["[translate=no]"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"https://steamcommunity.com/app/*",globalStyles:{".forum_topic":"height:auto;",".forum_topic_name":"white-space:normal;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampowered",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:"https://www.webofscience.com/*",globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},excludeSelectors:[".summary-left-panel",".authors","app-full-record-keywords mark"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],extraBlockSelectors:["app-summary-authors + div","app-full-record-keywords span span"],observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://www.jetbrains.com/help/*",extraBlockSelectors:["[data-test=prompt]"]},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails p"]},{id:"isEbook",isEbook:!0,isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span"},{id:"isEbookBuilder",isEbookBuilder:!0,isTranslateTitle:!1,targetWrapperTag:"span",selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com",extraBlockSelectors:["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],extraBlockSelectors:"font[face=verdana]"},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"isSubtitleBuilder",isSubtitleBuilder:!0,selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,wrapperPrefix:"",wrapperSuffix:""},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/",extraBlockSelectors:[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"vimeo",matches:"https://player.vimeo.com/video/*",extraBlockSelectors:["span.vp-captions-line","span[class^=CaptionsRenderer_]"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexityAi",matches:"https://www.perplexity.ai/search/*",extraBlockSelectors:[".prose > span"],additionalStayOriginalSelectors:["a.citation"],insertPosition:"afterend"},{id:"perplexity",matches:"https://www.perplexity.ai",globalStyles:{".line-clamp-1":"-webkit-line-clamp: unset !important;",".line-clamp-2":"-webkit-line-clamp: unset !important;"}},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"babelnovel",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*"],urlChangeDelay:0},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0},{globalAttributes:{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"youtrackJetbrains",matches:"youtrack.jetbrains.com/articles/*",selectors:["[role=presentation]","[data-test=article-content]"],excludeSelectors:[".toolbar__ee8"]},{id:"bbc",matches:"www.bbc.com",excludeSelectors:["section.module--languages",".drop-capped"]},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}}},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"openai",matches:"https://platform.openai.com/docs/*",urlChangeDelay:0},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout":"height:unset !important;",".EntrySummary--u4":"-webkit-line-clamp: unset;max-height:unset;",".EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:[".copyable-text > span"],wrapperPrefix:` -`,wrapperSuffix:"
"},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],globalStyles:{"[class*='lineclamp']":"-webkit-line-clamp:unset;"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],extraBlockSelectors:[".SIPGg",".sc-kzMCTH.pSZXj"],globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"]},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*",globalAttributes:{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead"],injectedCss:["a::after {position:relative!important;}"]},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},globalAttributes:{"#app":{class:""}}},{id:"haproxy",matches:["docs.haproxy.org","www.oreilly.com/openbook/opensources/book/*"],excludeTags:[],stayOriginalSelectors:[],stayOriginalTags:[],isTransformPreTagNewLine:!0},{id:"piAi",matches:"pi.ai/talk",excludeSelectors:[".whitespace-pre-wrap > span *"],aiRule:{streamingSelector:"button[class*='fixed'][disabled]",messageWrapperSelector:".whitespace-pre-wrap",streamingChange:!1,streamingDeepChild:!1},globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *"],"excludeTags.remove":["PRE"],injectedCss:"[data-testid='chat-menu-trigger'] br {display:none;}",aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1}},{id:"feishu",matches:"*.feishu.cn","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],excludeSelectors:[".catalogue__list"]},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"bugsWebkit",matches:"bugs.webkit.org",isTransformPreTagNewLine:!0},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",matches:"www.kaggle.com",excludeTags:["i","button"]},{id:"ieee",matches:"spectrum.ieee.org",extraBlockSelectors:["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"www.cnn.com",excludeSelectors:[".ad-slot-header__wrapper"]},{id:"marginalrevolution",matches:"marginalrevolution.com",globalAttributes:{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",condition:{enableSubtitle:{false:{"excludeSelectors.add":[".bpx-player-subtitle-panel-text"]}}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"docs-oracle",matches:"docs.oracle.com",urlChangeDelay:0},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"edstem",matches:"edstem.org","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:"pubmed.ncbi.nlm.nih.gov",urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share"]},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"tldrnewsletter",matches:"actions.tldrnewsletter.com","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"bugzilla",matches:"bugzilla.mozilla.org","excludeTags.remove":["PRE"],isTransformPreTagNewLine:!0},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"excludeSelectors.add":["aside",".DocSearch-Modal"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"mail.qq.com",useIframePostMessage:!1},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]}]};function Qd(){if(Ee.PROD==="1")return{};let e={};if(Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:Ee.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:Ee.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:Ee.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(Ee.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=Ee.DEEPL_PROXY_ENDPOINT),Ee.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=Ee.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),Ee.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:Ee.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}Ee.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=Ee.IMMERSIVE_TRANSLATE_SERVICE);let t={};return Ee.DEBUG==="1"&&(t.debug=!0,t.cache=!1),Ee.MOCK==="1"&&(t.translationService="mock"),t}async function ta(){let e=await ee.storage.local.get(Lr);if(e[Lr]){let t=e[Lr],n=t.tempTranslationUrlMatches||[],a=n.filter(o=>o.expiredAt>Date.now()),r=!1;a.length!==n.length&&(n=a,r=!0);let u={...t,tempTranslationUrlMatches:[...n]};return r&&await nn(u),u}else return{}}async function nn(e){await ee.storage.local.set({[Lr]:e})}async function Eo(e){await ee.storage.local.set({[Gn]:e})}async function Zd(){let e=await ee.storage.local.get(Gn),n={...Xd(),...xo,buildinConfigUpdatedAt:Ee.BUILD_TIME};if(e[Gn]){let a=e[Gn];if(a&&a.buildinConfigUpdatedAt){let r=new Date(a.buildinConfigUpdatedAt),u=new Date(n.buildinConfigUpdatedAt);r>u&&(n=a)}}return n}async function hn(){let e=await ee.storage.local.get(Gn),t={...xo,buildinConfigUpdatedAt:Ee.BUILD_TIME};if(e[Gn]){let P=e[Gn];if(P&&P.buildinConfigUpdatedAt){let x=new Date(P.buildinConfigUpdatedAt),D=new Date(t.buildinConfigUpdatedAt);x>D&&(t=P)}}let n=await Nt.get(Qt,null),a={};if(!he()&&ee.commands&&ee.commands.getAll){let P=await ee.commands.getAll();for(let x of P)x.name&&x.shortcut&&(a[x.name]=x.shortcut)}let r=Xd(),u=Qd(),o=await Ns(),i=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},l=await ta(),c=new Date;if(l&&l.tempTranslationUrlMatches&&l.tempTranslationUrlMatches.length>0){let P=l.tempTranslationUrlMatches.filter(x=>new Date(x.expiredAt)>c);if(P.length>0){let x=o.translationUrlPattern?o.translationUrlPattern?.matches||[]:[],D=Array.isArray(x)?x:[x],M=Array.from(new Set(D.concat(P.map(q=>q.match))));o.translationUrlPattern={...o.translationUrlPattern,matches:M}}}let s=Object.assign({},i,u,o);if(!s.interfaceLanguage){let P=await v1();s.interfaceLanguage=P}let g=s.interfaceLanguage==="en",p=s.targetLanguage==="en",f=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,d=["bing","google","transmart","mock"].includes(s.translationService)||!s.translationService;!g&&!p&&!f&&d?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let b=t&&t.enableDefaultAlwaysTranslatedUrls;s.enableDefaultAlwaysTranslatedUrls===!1&&(b=!1);let C=s&&s.isChangedAlwaysTranslatedUrls,h=[];s.translationUrlPattern&&s.translationUrlPattern.matches&&(h=s.translationUrlPattern.matches||[]);let A=!1;C===void 0&&(h.length>0?C=!0:C=!1,s.isChangedAlwaysTranslatedUrls=C,o.isChangedAlwaysTranslatedUrls=C,A=!0);let S=(s?.translationLanguagePattern?.matches?.length||0)>0,U=await Dt("installedAt",""),O=Number(await In("translage_page_daily",0)),y=Number(await Dt(dn,0)),T;y>0&&(Date.now()-y0&&(Date.now()-Oj.id&&M[j.id]?Cd(t.generalRule,M[j.id],j):j);R[x]=[...q,...R[x]]}if(Ee.PROD==="0"&&Ee.DEV_RULES){let D=JSON.parse(Ee.DEV_RULES);R[x]=[...D,...R[x]]}}else s[x]!==void 0&&(R[x]=s[x])}return R.donateUrl=t.donateUrl,R.minVersion=t.minVersion,R.feedbackUrl=t.feedbackUrl,R}async function Ns(){return(await ee.storage.sync.get("userConfig")||{}).userConfig||{}}async function js(e){await ee.storage.sync.set({userConfig:e})}var v1=async()=>{let e=["zh-CN"];try{e=await ee.i18n.getAcceptLanguages()}catch(a){H.warn("get browser language error:",a)}let n=e.map(a=>er(a)).find(a=>Ot[a]);return n||"en"},Xd=()=>{let e={...xo,buildinConfigUpdatedAt:Ee.BUILD_TIME};return{...e,targetLanguage:Ku,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing"},rules:[]}};function A1(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(a=>!e.includes(a)).length>0}m();var tm="auto",To="auto",em="auto";function nm(e){tm=e}function an(e){To=e}function pt(){return To!=="auto"?To:em!=="auto"?em:tm}function Co(){return To}async function jn(e){let{url:t,config:n,state:a}=e,r=new URL(t),u="auto",{translationParagraphLanguagePattern:o,translationService:i,translationServices:l,translationTheme:c,translationThemePatterns:s,translationUrlPattern:g,targetLanguage:p,sourceLanguageUrlPattern:f,immediateTranslationPattern:d}=n,b=tr(t,o),C=tr(t,d),h=i,A=Object.keys(l);for(let G of A){let ie=l[G];if(tr(t,ie)){h=G;break}}let S=c,U=Object.keys(s);for(let G of U){let ie=s[G];if(ie&&tr(t,ie)){S=G;break}}let O=tr(t,g),y=am(t,g);y||(y=On(t,R4)),y||(y=On(t,n.blockUrls));let T=am(t,n.inputTranslationUrlPattern);T||(T=On(t,n.inputTranslationBlockUrls));let k=On(t,n.mutationBlockUrls),v=Object.keys(f),E={};for(let G of v){let ie=f[G];if(ie&&ie.matches)for(let me of ie.matches)E[me]=G}let R=Object.keys(E),F=Ds(t,R);F&&(u=E[F]??"auto",E[F]&&E[F]!=="auto"&&an(E[F]));let w=p||"zh-CN",B=r.hostname,I=await fn(B),N=r.pathname+r.search+r.hash,P=await fn(N),x=`https://${I}.com/${P}`,D=await ta(),M=await Zd(),q=n.translationStartMode;q==="dynamic"&&C&&(q="immediate");let j=h;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(j=n.inputTranslationService);let $=h;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&($=n.mouseHoverTranslationService);let z={targetLanguage:w,config:n,translationService:h,inputTranslationService:j,mouseHoverTranslationService:$,isTranslateUrl:O,sourceLanguage:u,mainFrame:document.body,isTranslateExcludeUrl:y,isMutationTranslationExcludeUrl:k,isInputTranslationExcludeUrl:T,rule:n.generalRule,url:t,encryptedUrl:x,state:a?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:q,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S},a):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:q,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S},localConfig:D},ae=await Nt.get(Qt,null);ae&&(z.user=ae),z.state.translationArea==="body"&&(z.config.generalRule.excludeTags=z.config.generalRule.excludeTags.filter(G=>!z.config.generalRule.bodyTranslateTags.includes(G)),z.config.generalRule.additionalExcludeSelectors=z.config.generalRule.additionalExcludeSelectors.filter(G=>G!==".btn"));let J=n.translationServices[z.translationService]||{};J.immediateTranslationTextCount!==void 0&&k1(J.immediateTranslationTextCount)&&J.immediateTranslationTextCount>=0&&(z.state.immediateTranslationTextCount=J.immediateTranslationTextCount),z.translationService==="deepl"&&(J&&J.authKey&&J.authKey.startsWith("immersive_")||J&&J.provider==="pro"&&z.user?.token)&&J.immediateTranslationTextCountForImmersiveDeepl!==void 0&&J.immediateTranslationTextCountForImmersiveDeepl>=0&&(z.state.immediateTranslationTextCount=J.immediateTranslationTextCountForImmersiveDeepl),J&&J.translationDebounce&&typeof J.translationDebounce=="number"&&(z.state.translationDebounce=J.translationDebounce);let Y=M.immediateTranslationTextCount;n.immediateTranslationTextCount!==Y&&(z.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let pe=n.rules,fe;globalThis.PDFViewerApplication?fe=pe.find(G=>G.isPdf):globalThis.immersiveTranslateEbookViewer?fe=pe.find(G=>G.isEbook):globalThis.immersiveTranslateEbookBuilder?fe=pe.find(G=>G.isEbookBuilder):fe=pe.find(G=>tr(t,G)),z.state.translationArea==="body"&&(z.rule.paragraphMinTextCount=1,z.rule.paragraphMinWordCount=1),fe&&fe.isEbookBuilder&&(z.state.translationStartMode="immediate");let ue=n.generalRule;if(fe&&(z.rule=ro(ue,fe)),z.rule.selectors.length>0&&(z.rule.paragraphMinTextCount=2,z.rule.paragraphMinWordCount=1),z.state.translationArea==="body"&&z.rule.excludeTags&&(z.rule.excludeTags=z.rule.excludeTags.filter(G=>!z.rule.bodyTranslateTags.includes(G)&&!z.rule.forceTranslateTags.includes(G))),z.rule.mainFrameSelector){let G=document.querySelector(z.rule.mainFrameSelector);G&&(z.mainFrame=G)}return z}function tr(e,t){if(!t)return!1;let{matches:n,excludeMatches:a,selectorMatches:r,excludeSelectorMatches:u}=t;return a&&a.length>0&&On(e,a)?!1:n&&n.length>0&&On(e,n)?!0:u&&u.length>0&&go(u)?!1:!!(r&&r.length>0&&go(r))}function am(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:a}=t;return!!(n&&n.length>0&&On(e,n)||a&&a.length>0&&go(a))}function k1(e){return typeof e=="number"}m();m();m();m();m();m();m();var uC=um(2),rm=um(3);function um(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let a=[];if(n==null)return a;let r=typeof n.slice=="function"?n:String(n),u=r.length-e+1;if(u<1)return a;for(;u--;)a[u]=r.slice(u,u+e);return a}}m();var S1=/\s+/g,D1=/[\t\n\v\f\r ]+/g;function om(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?L1:P1;return String(e).replace(t.style==="html"?D1:S1,t.trim?M1(n):n)}function L1(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function P1(){return" "}function M1(e){return t;function t(n,a,r){return a===0||a+n.length===r.length?"":e(n)}}var im={}.hasOwnProperty;function F1(e){return e==null?"":om(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function _1(e){return rm(" "+F1(e)+" ")}function B1(e){let t=_1(e),n={},a=-1;for(;++an&&(n=u,a=r)}return[a,n]}function z1(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function H1(e,t,n,a){t=W1(t,n,a);let r=[],u;if(t)for(u in t)wo.call(t,u)&&r.push([u,q1(e,t[u])]);return r.length===0?zs():r.sort($1)}function q1(e,t){let n=0,a=-1;for(;++at.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterso+i.length,0));let u=e.length-a;for(let o of t6){let i=o[1],l=o[0],c=e.match(i),s=c?c.length:0;s>n&&(n=s,t=l)}return n*2.5/u>.5?t==="zh-CN"?fm(e)?"zh-TW":"zh-CN":t:"auto"}var bm=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],Hs=new Map(bm),n6=new Map(bm.map(([e,t])=>[t,e]));function ym(e,t,n=["en"]){if(!e)return"auto";let a=n.map(i=>n6.get(i));!t&&t!==0&&(t=25);let r=Ao(e);if(r!=="auto")return r;let u={minLength:t,whitelist:[...Hs.keys()]},o=cm(e,u);if(o&&o.length>0){for(let[s,g]of o)if(a.includes(s)&&g>.5)return Hs.get(s);let[i,l]=o[0],c=Hs.get(i);if(c&&l>.5)return c}return"auto"}m();m();function na(e,t){var n=(e&65535)+(t&65535),a=(e>>16)+(t>>16)+(n>>16);return a<<16|n&65535}function a6(e,t){return e<>>32-t}function So(e,t,n,a,r,u){return na(a6(na(na(t,e),na(a,u)),r),n)}function xt(e,t,n,a,r,u,o){return So(t&n|~t&a,e,t,r,u,o)}function Et(e,t,n,a,r,u,o){return So(t&a|n&~a,e,t,r,u,o)}function Tt(e,t,n,a,r,u,o){return So(t^n^a,e,t,r,u,o)}function Ct(e,t,n,a,r,u,o){return So(n^(t|~a),e,t,r,u,o)}function ko(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,a,r,u,o,i=1732584193,l=-271733879,c=-1732584194,s=271733878;for(n=0;n>5]>>>t%32&255);return n}function qs(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(a=ko(a,e.length*8)),n=0;n<16;n+=1)r[n]=a[n]^909522486,u[n]=a[n]^1549556828;return o=ko(r.concat(qs(t)),512+t.length*8),xm(ko(u.concat(o),512+128))}function Em(e){var t="0123456789abcdef",n="",a,r;for(r=0;r>>4&15)+t.charAt(a&15);return n}function Ws(e){return unescape(encodeURIComponent(e))}function Tm(e){return r6(Ws(e))}function o6(e){return Em(Tm(e))}function Cm(e,t){return u6(Ws(e),Ws(t))}function i6(e,t){return Em(Cm(e,t))}function aa(e,t,n){return t?n?Cm(t,e):i6(t,e):n?Tm(e):o6(e)}m();function wm(e,t,n){let a=s6(e,t),r=[],u={from:e[0].from,fromByClient:e[0].fromByClient,to:e[0].to,tempSentences:[],url:e[0].url};for(let o of a)(u.tempSentences.reduce((l,c)=>l+c.text.length,0)+o.text.length>t||u.tempSentences.length>=n)&&(r.push(u),u={fromByClient:u.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}),(u.from!==o.from||u.to!==o.to)&&(u.tempSentences.length>0?(r.push(u),u={fromByClient:u.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}):(u.from=o.from,u.to=o.to)),u.tempSentences.push(o);return u.tempSentences.length>0&&r.push(u),r}function s6(e,t){let n=[],a=[];for(let r=0;r0?d header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,normalizeBody:"#mw-content-text",globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"]},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"}},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:"chat.openai.com",excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0}},{id:"newstop",matches:["chat.newstop.asia","chat.waixingyun.cn"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".n-button.n-button--warning-type.n-button--medium-type",messageWrapperSelector:".markdown-body",streamingChange:!1,streamingDeepChild:!0}},{id:"askgpt",matches:["askgpt.cn","chatcat.zhaoyoung.me"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".home_chat-message-status__EsVNi",messageWrapperSelector:".markdown-body",streamingChange:!0,streamingDeepChild:!0}},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__UyYrv *",".MarkdownLink_linkifiedLink__KxC9G"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__UyYrv",streamingChange:!1,streamingDeepChild:!0}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"newthingsunderthesun",matches:"www.newthingsunderthesun.com",additionalSelectors:["[translate=no]"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"https://steamcommunity.com/app/*",globalStyles:{".forum_topic":"height:auto;",".forum_topic_name":"white-space:normal;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampowered",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:"https://www.webofscience.com/*",globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},excludeSelectors:[".summary-left-panel",".authors","app-full-record-keywords mark"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],extraBlockSelectors:["app-summary-authors + div","app-full-record-keywords span span"],observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://www.jetbrains.com/help/*",extraBlockSelectors:["[data-test=prompt]"]},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails p"]},{id:"isEbook",isEbook:!0,isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span"},{id:"isEbookBuilder",isEbookBuilder:!0,isTranslateTitle:!1,targetWrapperTag:"span",selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com",extraBlockSelectors:["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],extraBlockSelectors:"font[face=verdana]"},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"isSubtitleBuilder",isSubtitleBuilder:!0,selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,wrapperPrefix:"",wrapperSuffix:""},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/",extraBlockSelectors:[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"vimeo",matches:"https://player.vimeo.com/video/*",extraBlockSelectors:["span.vp-captions-line","span[class^=CaptionsRenderer_]"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexityAi",matches:"https://www.perplexity.ai/search/*",extraBlockSelectors:[".prose > span"],additionalStayOriginalSelectors:["a.citation"],insertPosition:"afterend"},{id:"perplexity",matches:"https://www.perplexity.ai",globalStyles:{".line-clamp-1":"-webkit-line-clamp: unset !important;",".line-clamp-2":"-webkit-line-clamp: unset !important;"}},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"babelnovel",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*"],urlChangeDelay:0},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0},{globalAttributes:{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"youtrackJetbrains",matches:"youtrack.jetbrains.com/articles/*",selectors:["[role=presentation]","[data-test=article-content]"],excludeSelectors:[".toolbar__ee8"]},{id:"bbc",matches:"www.bbc.com",excludeSelectors:["section.module--languages",".drop-capped"]},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}}},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"openai",matches:"https://platform.openai.com/docs/*",urlChangeDelay:0},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout":"height:unset !important;",".EntrySummary--u4":"-webkit-line-clamp: unset;max-height:unset;",".EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:[".copyable-text > span"],wrapperPrefix:` +`,wrapperSuffix:"
"},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],globalStyles:{"[class*='lineclamp']":"-webkit-line-clamp:unset;"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],extraBlockSelectors:[".SIPGg",".sc-kzMCTH.pSZXj"],globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"]},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*",globalAttributes:{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead"],injectedCss:["a::after {position:relative!important;}"]},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},globalAttributes:{"#app":{class:""}}},{id:"haproxy",matches:["docs.haproxy.org","www.oreilly.com/openbook/opensources/book/*"],excludeTags:[],stayOriginalSelectors:[],stayOriginalTags:[],isTransformPreTagNewLine:!0},{id:"piAi",matches:"pi.ai/talk",excludeSelectors:[".whitespace-pre-wrap > span *"],aiRule:{streamingSelector:"button[class*='fixed'][disabled]",messageWrapperSelector:".whitespace-pre-wrap",streamingChange:!1,streamingDeepChild:!1},globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *"],"excludeTags.remove":["PRE"],injectedCss:"[data-testid='chat-menu-trigger'] br {display:none;}",aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1}},{id:"feishu",matches:"*.feishu.cn","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],excludeSelectors:[".catalogue__list"]},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"bugsWebkit",matches:"bugs.webkit.org",isTransformPreTagNewLine:!0},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",matches:"www.kaggle.com",excludeTags:["i","button"]},{id:"ieee",matches:"spectrum.ieee.org",extraBlockSelectors:["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"www.cnn.com",excludeSelectors:[".ad-slot-header__wrapper"]},{id:"marginalrevolution",matches:"marginalrevolution.com",globalAttributes:{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",condition:{enableSubtitle:{false:{"excludeSelectors.add":[".bpx-player-subtitle-panel-text"]}}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"docs-oracle",matches:"docs.oracle.com",urlChangeDelay:0},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"edstem",matches:"edstem.org","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:"pubmed.ncbi.nlm.nih.gov",urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share"]},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"tldrnewsletter",matches:"actions.tldrnewsletter.com","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"bugzilla",matches:"bugzilla.mozilla.org","excludeTags.remove":["PRE"],isTransformPreTagNewLine:!0},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"excludeSelectors.add":["aside",".DocSearch-Modal"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"mail.qq.com",useIframePostMessage:!1},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]}]};function Zd(){if(Ee.PROD==="1")return{};let e={};if(Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:Ee.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:Ee.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:Ee.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(Ee.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=Ee.DEEPL_PROXY_ENDPOINT),Ee.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=Ee.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),Ee.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:Ee.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}Ee.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=Ee.IMMERSIVE_TRANSLATE_SERVICE);let t={};return Ee.DEBUG==="1"&&(t.debug=!0,t.cache=!1),Ee.MOCK==="1"&&(t.translationService="mock"),t}async function ta(){let e=await ee.storage.local.get(Lr);if(e[Lr]){let t=e[Lr],n=t.tempTranslationUrlMatches||[],a=n.filter(o=>o.expiredAt>Date.now()),r=!1;a.length!==n.length&&(n=a,r=!0);let u={...t,tempTranslationUrlMatches:[...n]};return r&&await nn(u),u}else return{}}async function nn(e){await ee.storage.local.set({[Lr]:e})}async function xo(e){await ee.storage.local.set({[Gn]:e})}async function Xd(){let e=await ee.storage.local.get(Gn),n={...em(),...yo,buildinConfigUpdatedAt:Ee.BUILD_TIME};if(e[Gn]){let a=e[Gn];if(a&&a.buildinConfigUpdatedAt){let r=new Date(a.buildinConfigUpdatedAt),u=new Date(n.buildinConfigUpdatedAt);r>u&&(n=a)}}return n}async function hn(){let e=await ee.storage.local.get(Gn),t={...yo,buildinConfigUpdatedAt:Ee.BUILD_TIME};if(e[Gn]){let P=e[Gn];if(P&&P.buildinConfigUpdatedAt){let x=new Date(P.buildinConfigUpdatedAt),D=new Date(t.buildinConfigUpdatedAt);x>D&&(t=P)}}let n=await jt.get(Nt,null),a={};if(!fe()&&ee.commands&&ee.commands.getAll){let P=await ee.commands.getAll();for(let x of P)x.name&&x.shortcut&&(a[x.name]=x.shortcut)}let r=em(),u=Zd(),o=await Ns(),i=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},l=await ta(),c=new Date;if(l&&l.tempTranslationUrlMatches&&l.tempTranslationUrlMatches.length>0){let P=l.tempTranslationUrlMatches.filter(x=>new Date(x.expiredAt)>c);if(P.length>0){let x=o.translationUrlPattern?o.translationUrlPattern?.matches||[]:[],D=Array.isArray(x)?x:[x],M=Array.from(new Set(D.concat(P.map(q=>q.match))));o.translationUrlPattern={...o.translationUrlPattern,matches:M}}}let s=Object.assign({},i,u,o);if(!s.interfaceLanguage){let P=await v1();s.interfaceLanguage=P}let m=s.interfaceLanguage==="en",p=s.targetLanguage==="en",f=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,d=["bing","google","transmart","mock"].includes(s.translationService)||!s.translationService;!m&&!p&&!f&&d?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let b=t&&t.enableDefaultAlwaysTranslatedUrls;s.enableDefaultAlwaysTranslatedUrls===!1&&(b=!1);let C=s&&s.isChangedAlwaysTranslatedUrls,h=[];s.translationUrlPattern&&s.translationUrlPattern.matches&&(h=s.translationUrlPattern.matches||[]);let A=!1;C===void 0&&(h.length>0?C=!0:C=!1,s.isChangedAlwaysTranslatedUrls=C,o.isChangedAlwaysTranslatedUrls=C,A=!0);let S=(s?.translationLanguagePattern?.matches?.length||0)>0,U=await Dt("installedAt",""),O=Number(await In("translage_page_daily",0)),y=Number(await Dt(dn,0)),T;y>0&&(Date.now()-y0&&(Date.now()-Oj.id&&M[j.id]?wd(t.generalRule,M[j.id],j):j);R[x]=[...q,...R[x]]}if(Ee.PROD==="0"&&Ee.DEV_RULES){let D=JSON.parse(Ee.DEV_RULES);R[x]=[...D,...R[x]]}}else s[x]!==void 0&&(R[x]=s[x])}return R.donateUrl=t.donateUrl,R.minVersion=t.minVersion,R.feedbackUrl=t.feedbackUrl,R}async function Ns(){return(await ee.storage.sync.get("userConfig")||{}).userConfig||{}}async function js(e){await ee.storage.sync.set({userConfig:e})}var v1=async()=>{let e=["zh-CN"];try{e=await ee.i18n.getAcceptLanguages()}catch(a){H.warn("get browser language error:",a)}let n=e.map(a=>er(a)).find(a=>Ot[a]);return n||"en"},em=()=>{let e={...yo,buildinConfigUpdatedAt:Ee.BUILD_TIME};return{...e,targetLanguage:$u,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing"},rules:[]}};function A1(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(a=>!e.includes(a)).length>0}g();var nm="auto",Eo="auto",tm="auto";function am(e){nm=e}function an(e){Eo=e}function pt(){return Eo!=="auto"?Eo:tm!=="auto"?tm:nm}function To(){return Eo}async function jn(e){let{url:t,config:n,state:a}=e,r=new URL(t),u="auto",{translationParagraphLanguagePattern:o,translationService:i,translationServices:l,translationTheme:c,translationThemePatterns:s,translationUrlPattern:m,targetLanguage:p,sourceLanguageUrlPattern:f,immediateTranslationPattern:d}=n,b=tr(t,o),C=tr(t,d),h=i,A=Object.keys(l);for(let G of A){let ie=l[G];if(tr(t,ie)){h=G;break}}let S=c,U=Object.keys(s);for(let G of U){let ie=s[G];if(ie&&tr(t,ie)){S=G;break}}let O=tr(t,m),y=rm(t,m);y||(y=On(t,R4)),y||(y=On(t,n.blockUrls));let T=rm(t,n.inputTranslationUrlPattern);T||(T=On(t,n.inputTranslationBlockUrls));let k=On(t,n.mutationBlockUrls),v=Object.keys(f),E={};for(let G of v){let ie=f[G];if(ie&&ie.matches)for(let me of ie.matches)E[me]=G}let R=Object.keys(E),F=Ds(t,R);F&&(u=E[F]??"auto",E[F]&&E[F]!=="auto"&&an(E[F]));let w=p||"zh-CN",B=r.hostname,I=await fn(B),N=r.pathname+r.search+r.hash,P=await fn(N),x=`https://${I}.com/${P}`,D=await ta(),M=await Xd(),q=n.translationStartMode;q==="dynamic"&&C&&(q="immediate");let j=h;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(j=n.inputTranslationService);let $=h;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&($=n.mouseHoverTranslationService);let z={targetLanguage:w,config:n,translationService:h,inputTranslationService:j,mouseHoverTranslationService:$,isTranslateUrl:O,sourceLanguage:u,mainFrame:document.body,isTranslateExcludeUrl:y,isMutationTranslationExcludeUrl:k,isInputTranslationExcludeUrl:T,rule:n.generalRule,url:t,encryptedUrl:x,state:a?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:q,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S},a):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:q,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S},localConfig:D},ae=await jt.get(Nt,null);ae&&(z.user=ae),z.state.translationArea==="body"&&(z.config.generalRule.excludeTags=z.config.generalRule.excludeTags.filter(G=>!z.config.generalRule.bodyTranslateTags.includes(G)),z.config.generalRule.additionalExcludeSelectors=z.config.generalRule.additionalExcludeSelectors.filter(G=>G!==".btn"));let J=n.translationServices[z.translationService]||{};J.immediateTranslationTextCount!==void 0&&k1(J.immediateTranslationTextCount)&&J.immediateTranslationTextCount>=0&&(z.state.immediateTranslationTextCount=J.immediateTranslationTextCount),z.translationService==="deepl"&&(J&&J.authKey&&J.authKey.startsWith("immersive_")||J&&J.provider==="pro"&&z.user?.token)&&J.immediateTranslationTextCountForImmersiveDeepl!==void 0&&J.immediateTranslationTextCountForImmersiveDeepl>=0&&(z.state.immediateTranslationTextCount=J.immediateTranslationTextCountForImmersiveDeepl),J&&J.translationDebounce&&typeof J.translationDebounce=="number"&&(z.state.translationDebounce=J.translationDebounce);let Y=M.immediateTranslationTextCount;n.immediateTranslationTextCount!==Y&&(z.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let pe=n.rules,he;globalThis.PDFViewerApplication?he=pe.find(G=>G.isPdf):globalThis.immersiveTranslateEbookViewer?he=pe.find(G=>G.isEbook):globalThis.immersiveTranslateEbookBuilder?he=pe.find(G=>G.isEbookBuilder):he=pe.find(G=>tr(t,G)),z.state.translationArea==="body"&&(z.rule.paragraphMinTextCount=1,z.rule.paragraphMinWordCount=1),he&&he.isEbookBuilder&&(z.state.translationStartMode="immediate");let ue=n.generalRule;if(he&&(z.rule=ao(ue,he)),z.rule.selectors.length>0&&(z.rule.paragraphMinTextCount=2,z.rule.paragraphMinWordCount=1),z.state.translationArea==="body"&&z.rule.excludeTags&&(z.rule.excludeTags=z.rule.excludeTags.filter(G=>!z.rule.bodyTranslateTags.includes(G)&&!z.rule.forceTranslateTags.includes(G))),z.rule.mainFrameSelector){let G=document.querySelector(z.rule.mainFrameSelector);G&&(z.mainFrame=G)}return z}function tr(e,t){if(!t)return!1;let{matches:n,excludeMatches:a,selectorMatches:r,excludeSelectorMatches:u}=t;return a&&a.length>0&&On(e,a)?!1:n&&n.length>0&&On(e,n)?!0:u&&u.length>0&&mo(u)?!1:!!(r&&r.length>0&&mo(r))}function rm(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:a}=t;return!!(n&&n.length>0&&On(e,n)||a&&a.length>0&&mo(a))}function k1(e){return typeof e=="number"}g();g();g();g();g();g();g();var uC=om(2),um=om(3);function om(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let a=[];if(n==null)return a;let r=typeof n.slice=="function"?n:String(n),u=r.length-e+1;if(u<1)return a;for(;u--;)a[u]=r.slice(u,u+e);return a}}g();var S1=/\s+/g,D1=/[\t\n\v\f\r ]+/g;function im(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?L1:P1;return String(e).replace(t.style==="html"?D1:S1,t.trim?M1(n):n)}function L1(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function P1(){return" "}function M1(e){return t;function t(n,a,r){return a===0||a+n.length===r.length?"":e(n)}}var sm={}.hasOwnProperty;function F1(e){return e==null?"":im(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function _1(e){return um(" "+F1(e)+" ")}function B1(e){let t=_1(e),n={},a=-1;for(;++an&&(n=u,a=r)}return[a,n]}function z1(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function H1(e,t,n,a){t=W1(t,n,a);let r=[],u;if(t)for(u in t)Co.call(t,u)&&r.push([u,q1(e,t[u])]);return r.length===0?zs():r.sort($1)}function q1(e,t){let n=0,a=-1;for(;++at.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterso+i.length,0));let u=e.length-a;for(let o of t6){let i=o[1],l=o[0],c=e.match(i),s=c?c.length:0;s>n&&(n=s,t=l)}return n*2.5/u>.5?t==="zh-CN"?hm(e)?"zh-TW":"zh-CN":t:"auto"}var ym=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],Hs=new Map(ym),n6=new Map(ym.map(([e,t])=>[t,e]));function xm(e,t,n=["en"]){if(!e)return"auto";let a=n.map(i=>n6.get(i));!t&&t!==0&&(t=25);let r=vo(e);if(r!=="auto")return r;let u={minLength:t,whitelist:[...Hs.keys()]},o=dm(e,u);if(o&&o.length>0){for(let[s,m]of o)if(a.includes(s)&&m>.5)return Hs.get(s);let[i,l]=o[0],c=Hs.get(i);if(c&&l>.5)return c}return"auto"}g();g();function na(e,t){var n=(e&65535)+(t&65535),a=(e>>16)+(t>>16)+(n>>16);return a<<16|n&65535}function a6(e,t){return e<>>32-t}function ko(e,t,n,a,r,u){return na(a6(na(na(t,e),na(a,u)),r),n)}function xt(e,t,n,a,r,u,o){return ko(t&n|~t&a,e,t,r,u,o)}function Et(e,t,n,a,r,u,o){return ko(t&a|n&~a,e,t,r,u,o)}function Tt(e,t,n,a,r,u,o){return ko(t^n^a,e,t,r,u,o)}function Ct(e,t,n,a,r,u,o){return ko(n^(t|~a),e,t,r,u,o)}function Ao(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,a,r,u,o,i=1732584193,l=-271733879,c=-1732584194,s=271733878;for(n=0;n>5]>>>t%32&255);return n}function qs(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(a=Ao(a,e.length*8)),n=0;n<16;n+=1)r[n]=a[n]^909522486,u[n]=a[n]^1549556828;return o=Ao(r.concat(qs(t)),512+t.length*8),Em(Ao(u.concat(o),512+128))}function Tm(e){var t="0123456789abcdef",n="",a,r;for(r=0;r>>4&15)+t.charAt(a&15);return n}function Ws(e){return unescape(encodeURIComponent(e))}function Cm(e){return r6(Ws(e))}function o6(e){return Tm(Cm(e))}function wm(e,t){return u6(Ws(e),Ws(t))}function i6(e,t){return Tm(wm(e,t))}function aa(e,t,n){return t?n?wm(t,e):i6(t,e):n?Cm(e):o6(e)}g();function vm(e,t,n){let a=s6(e,t),r=[],u={from:e[0].from,fromByClient:e[0].fromByClient,to:e[0].to,tempSentences:[],url:e[0].url};for(let o of a)(u.tempSentences.reduce((l,c)=>l+c.text.length,0)+o.text.length>t||u.tempSentences.length>=n)&&(r.push(u),u={fromByClient:u.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}),(u.from!==o.from||u.to!==o.to)&&(u.tempSentences.length>0?(r.push(u),u={fromByClient:u.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}):(u.from=o.from,u.to=o.to)),u.tempSentences.push(o);return u.tempSentences.length>0&&r.push(u),r}function s6(e,t){let n=[],a=[];for(let r=0;r0?dt){let h=[];$s(b,t,h);for(let A=0;A0&&d{let i=e.lastIndexOf(o,t);return i>u?i:u},-1);if(r===-1){let u=e.slice(0,t);if(u&&!u.trim())return;n.push({text:u,prefix:"",suffix:""}),e.length>t&&$s(e.slice(t),t,n)}else{let u=e.slice(0,r+1);if(u&&u.trim()==="")return;u.startsWith(" ")?n.push({text:u.slice(1),prefix:" ",suffix:""}):n.push({text:u,prefix:"",suffix:""}),r+10){s.forEach(d=>{c.length>0&&d.providers&&d.providers.length>0&&!d.providers.includes(l)||(d.optional?p.push(d):g.push(d))});let f=p.concat(g).filter(d=>d.required);if(f.length>0){for(let d of f)if(!r[d.name]){i=!1;break}}}return{...a,id:t,selected:n[e]===t,ok:i,currentProvider:l,config:r,providers:a.providers||[],props:a.props||[],allProps:s,optionalProps:p,explicitProps:g}}var vm=(e,t)=>{let{config:n}=e,a=n.alpha,r=n.beta,u=n.canary,o=n.debug,i=e.user,l=en(i);return Object.keys(Bn).filter(s=>{let g=Bn[s];if(s.startsWith("mock"))return o?!0:s===e.config[t];if(s===e.config[t])return!0;if(s==="openai"&&At())return e.config.showOpenaiOnSafari||l?!0:!!(r||a||u||l);let p=!!g.canary,f=!!g.alpha,d=!!g.beta;return s===e[t]||p&&u||f&&(a||u)||d&&(r||a||u)?!0:!f&&!d&&!p}).map(s=>Ks(t,s,e))};function bn(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}var nr=[];async function Do(e,t){return await new Promise((n,a)=>{let r=e,u=1,o=indexedDB.open(r,u);o.onsuccess=i=>{n(o.result)},o.onerror=i=>{a()},o.onupgradeneeded=i=>{let l=o.result,c=t||"cache";l.createObjectStore(c,{keyPath:"key"})}})}async function Am(e){let t=`${Q}-${e.service}@${e.from}->${e.to}`;return await d6(t,e)}async function km(e){let t=aa(e.originalText),n=`${Q}-${e.service}@${e.from}->${e.to}`;return await c6(n,t)}async function c6(e,t){let n=await Do(e);return await new Promise((a,r)=>{if(!n)return r();let u="cache",i=n.transaction([u],"readonly").objectStore(u).get(t);i.onsuccess=l=>{n.close();let c=i.result;a(c)},i.onerror=l=>{n.close(),r()}})}async function d6(e,t){let n=await Do(e);return(await g6()).includes(e)||await m6(e),await new Promise(r=>{if(!n)return r(!1);let u="cache",i=n.transaction([u],"readwrite").objectStore(u).put(t);i.onsuccess=l=>{n.close(),r(!0)},i.onerror=l=>{n.close(),r(!1)}})}async function m6(e){let t="cache_list",n=await Do(Q+"-cacheList",t),r=n.transaction([t],"readwrite").objectStore(t).put({key:e});r.onsuccess=u=>{n.close(),nr.push(e)},r.onerror=u=>{n.close()}}async function g6(){if(nr&&nr.length>0)return nr;let e=await Do(Q+"-cacheList","cache_list");return nr=await new Promise(t=>{let n="cache_list",r=e.transaction([n],"readonly").objectStore(n).getAllKeys();r.onsuccess=u=>{e.close(),t(r.result)},r.onerror=u=>{e.close(),t([])}}),nr}m();m();m();var Sm="G-MKMD9LWFTR";async function Ye(e,t,n){try{let a=Be();if(a.INSTALL_FROM==="firefox_store")return;let u=he(),o=tt(),i=a.PROD==="1",l=`report_${e}`,c=e.endsWith("_daily");if(c){if(o)return;let k=await In(l,0),v=Lo(new Date(k)),E=Date.now(),R=Lo(new Date(E));if(v===R)return;await Kd(l,E)}else if(!n.config.telemetry)return;let s="sitc4WmvShWYwfU0dANM3Q",g=await Dt("fakeUserId","");g||(g=await In("fakeUserId",""),g&&await ze("fakeUserId",g));let p=tn(),f=new Date,d=await Dt("installedAt","");d||(d=await In("installedAt",""),d&&await ze("installedAt",d)),g?d||(d=new Date(0).toISOString(),await ze("installedAt",d)):(g=p6(32),await ze("fakeUserId",g)),d||(d=f.toISOString(),await ze("installedAt",d));let b=new Date(d),C=Lo(b),h=Lo(f),A=C===h,S=f.getTime()-b.getTime()<7*24*60*60*1e3,U=`https://www.google-analytics.com/mp/collect?measurement_id=${Sm}&api_secret=${s}`;i||(U=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${Sm}&api_secret=${s}`);let O=$a.parse(window.navigator.userAgent),y=t.map(k=>{let v=k.params||{};if(O.os&&(v.os_name=O.os.name||"unknown",v.os_version=O.os.version||"unknown",v.os_version_name=O.os.versionName||"unknown"),O.browser&&(v.browser_name=O.browser.name||"unknown",v.browser_version=O.browser.version||"unknown"),O.platform&&(v.platform_type=O.platform.type||"unknown"),O.engine&&(v.engine_name=O.engine.name||"unknown",v.engine_version=O.engine.version||"unknown"),n.translationService&&(v.translation_service||(v.translation_service=n.translationService),n.config.translationServices&&n.config.translationServices[n.translationService]&&(n.config.translationServices[n.translationService].provider&&(v.translation_service_provider=n.config.translationServices[n.translationService].provider),n.translationService==="openai"&&n.config.translationServices[n.translationService].provider==="custom"&&(n.config.translationServices[n.translationService].apiUrl?n.config.translationServices[n.translationService].apiUrl.startsWith("https://api.openai.com/")?v.openai_is_official="1":v.openai_is_official="0":v.openai_is_official="1"))),n.targetLanguage&&(v.target_language=n.targetLanguage),n.config.interfaceLanguage&&(v.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?v.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":v.enable_default_always_translated_urls="0",p&&(v.version=p),n.config.enableInputTranslation?v.enable_input_translation=n.config.enableInputTranslation?"1":"0":v.enable_input_translation="0",n.config.translationTheme&&(v.translation_theme=n.config.translationTheme),n.config.alpha&&(v.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?v.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):v.always_translate_languages="none",a.INSTALL_FROM&&(v.install_from=a.INSTALL_FROM),n.config.beta&&(v.beta=n.config.alpha.toString()),n.config.translationArea&&(v.translation_area=n.config.translationArea),n.rule&&n.rule.enableSearchEnhancement!==void 0&&(v.enable_search_enhancement=n.rule.enableSearchEnhancement?"1":"0"),C&&(v.install_day=f6(b)),n.user){let R=qd(n.user);R&&Object.keys(R).forEach(F=>{v[F]=R[F]})}else v.user_type="anonymous";n.config.translationMode&&(v.translation_mode=n.config.translationMode),v.userscript=u.toString(),A?v.is_new_user_today="1":v.is_new_user_today="0",S?v.is_new_user_this_week="1":v.is_new_user_this_week="0",n.config.tempTranslateDomainMinutes?v.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():v.temp_translate_domain_minutes="0";let E="html";if(n.rule.isEbook?E="ebookReader":n.rule.isPdf?E="pdfReader":n.rule.isEbookBuilder?E="ebookBuilder":n.rule.isSubtitleBuilder&&(E="subtitleBuilder"),v.page_type=E,o?v.main_frame=0:v.main_frame=1,!c){let R=n.url;try{let F=new URL(R);v.site_host=F.hostname}catch{v.site_host="unknown"}n.sourceLanguage&&(v.source_language=n.sourceLanguage)}return{...k,params:v}}),T=await se({responseType:"text",url:U,method:"POST",body:JSON.stringify({client_id:g,user_id:g,events:y})})}catch{}}function p6(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;rt.removeEventListener("message",n)),e.length=0}function x6(e,t,n,a){return new Promise(r=>{let u=o=>{let i=o.data;b6(t,n,i)&&i.id===a&&(e.removeEventListener("message",u),r(i.response))};e.addEventListener("message",u)})}function E6(e,t,n,a){let r=u=>{let o=u.data;Fm(t,"tell",n,o)&&a(o.body)};return e.addEventListener("message",r),[e,r]}function Dm(e,t,n,a,r,u){let o=async i=>{let l=i.data;if(Fm(n,"ask",a,l)){let c=await u(l.body);t=i.source,t.postMessage(h6(n,a,l.id,c),i.origin)}};return e.addEventListener("message",o),[e,o]}function T6(e,t,n,a,r){let u=Math.random().toString();return e.postMessage(Mm(t,"tell",n,u,a),r)}async function Lm(e,t,n,a,r,u,o){let i=Math.random().toString(),l=new Promise(async(c,s)=>{let g=setTimeout(()=>s(new Error(`Failed to get response within ${o}ms`)),o),p=await x6(e,n,a,i);clearTimeout(g),c(p)});return t.postMessage(Mm(n,"ask",a,i,r),u),l}var oa=class e{constructor(t,n,a=window,r="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=a;this.targetOrigin=r;Dm(a,n,this.getSystemProtocol("ping"),"ping",r,()=>Promise.resolve({}))}static async connect(t,n=10,a=500){for(let r=0;r<=n;r++)try{return await t.ping({timeout:a}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*a}ms`)}static parent(t,n,a="*",r=window){let u=n.contentWindow;if(ua(u))return new e(t,u,r,a);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:a=window,targetWindow:r=window.parent}={}){return new e(t,r,a,n)}static rootIframe(t,n="*",{thisWindow:a=window}={}){return new e(t,null,a,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await Lm(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(E6(this.thisWindow,this.protocol,t,n))}tell(t,n){T6(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(Dm(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,a=1e4){if(this.targetWindow)return Lm(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,a);throw new Error("target window is requried")}destroy(){y6(this.listeners)}};var _m;async function Bm(){if(tt()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=oa.iframe(Gu,"*",{targetWindow:t});_m=n,await oa.connect(n).catch(a=>{H.error("connect with parent frame error",a)})}}function Po(){return _m}m();function Rm(e,t){let n=t.matches||[],a=t.excludeMatches||[];if(a&&!Array.isArray(a)&&(a=[a]),n&&!Array.isArray(n)&&(n=[n]),a.length>0){if(a.includes(e)||a.includes(""))return!1;for(let r of a)if(r.includes("*")&&new RegExp(r).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let r of n)if(r.includes("*")&&new RegExp(r).test(e))return!0}return!1}m();m();m();m();m();var ft=class{options;strictTicks=[];constructor(t){this.options=t,this.setOptions(t)}setOptions(t){t&&(t.interval!==void 0&&(this.options.interval=Number(t.interval)),t.limit!==void 0&&(this.options.limit=Number(t.limit)))}wait(){return new Promise((t,n)=>{setTimeout(t,this.getDelay())})}getDelay(){let t=this.strictTicks,n=this.options.limit,a=this.options.interval,r=Date.now();if(t.length=u?(t.push(r),0):(t.push(u),u-r)}};var C6=new ft({limit:7,interval:1250}),w6={tencent:new ft({limit:3,interval:1350}),baidu:new ft({limit:1,interval:1550}),strict:new ft({limit:1,interval:1050}),d:new ft({limit:1,interval:1050}),youdao:new ft({limit:5,interval:1050}),you:new ft({limit:5,interval:1050}),cai:new ft({limit:5,interval:1050}),google:new ft({limit:10,interval:1050}),deepl:new ft({limit:10,interval:1050}),transmart:new ft({limit:30,interval:1050}),papago:new ft({limit:3,interval:1150}),openai:new ft({limit:10,interval:1300}),chatgpt:new ft({limit:1,interval:1350})};function Jr(e){return w6[e]||C6}async function Om(e){if(tt()){let n=Po();if(n)try{return(await n.ask("getRateLimitDelay",{key:e})).value}catch(a){return H.error("can not comunicate with root frame, use strict limiter",a),Jr("strict").getDelay()}else return Jr("strict").getDelay()}else return Jr(e).getDelay()}async function Im(e,t){if(!tt()){let a=Jr(e);t&&a.setOptions(t)}}async function Nm(e){let t=e.key;return{value:Jr(t).getDelay()}}var be=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=200;translationOptions;constructor(t,n,a){this.serviceConfig=t,this.generalConfig=n,this.translationOptions=a}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getDefaultRateLimit(){return null}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,a){if(t.sentences.length===0)return{sentences:[]};let{sentences:r}=t,u=[],o=null,i=new Set;for(let b of r)b.from&&b.from!=="auto"&&i.add(b.from);let l=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(l=this.serviceConfig.maxTextLengthPerRequest);let c=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(c=this.serviceConfig.maxTextGroupLengthPerRequest);try{u=wm(r,l,c)}catch(b){if(a)for(let C=0;Cb));let s=[],g=[],p=(b,C,h)=>{let A=C.translatedTexts[0];g[b]||(g[b]=C,g[b].translatedTexts=Array(C.sentenceTotalParts).fill(null)),g[b].translatedTexts[C.partIndex]=A;let S=g[b],U=0;for(let O=0;O{let S=await Om(this.translationOptions.translationService);await Ir(S||0);let U=C.from;if(C.fromByClient&&C.fromByClient!=="auto"&&(U=C.fromByClient),this.isSupportList)return{...await this.translateList({text:C.tempSentences.map(y=>y.text),from:U,to:C.to,url:h,options:n}),sourceTempSentences:C.tempSentences};{let O=S4;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(O=this.serviceConfig.translationTextSeparator);let y=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(y=this.serviceConfig.newlinePlaceholderDelimiters);let T="";y&&y.length>=2?T=C.tempSentences.map((F,w)=>w===C.tempSentences.length-1?F.text:F.text+y[0]+(w+1)+y[1]).join(""):T=C.tempSentences.map(F=>F.text).join(O);let k=await this.translate({text:T,from:U,to:C.to,url:h,options:n}),{text:v}=k,E=[];if(y&&y.length>=2){let F=`${y[0]}\\d+${y[1]}`;y&&y.length>=3&&(F=y[2]);let w=new RegExp(F,"g");E=v.split(w)}else E=v.split(O);let R=[];if(E.length>C.tempSentences.length){for(let F=0;F{let{text:U,sourceTempSentences:O}=S;for(let y=0;y{if(a){for(let U=0;U({...b.sentence,text:b.translatedTexts.join("")}))}}detectLanguageLocally(t){return Je({text:t,minLength:18,pageLangs:[pt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}};var jm=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Qr=class e extends be{static langMap=new Map(jm);static langMapReverse=new Map(jm.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),a=`${t.getUTCMonth()+1}`.padStart(2,"0"),r=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${a}-${r}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.secretId||!t.secretKey)throw new Error("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}async translate(t){let{text:n,from:a,to:r}=t,u=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceText:n,Target:e.langMap.get(r)||r}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:u,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||a,to:e.langMapReverse.get(o.Response.Target)||r}}async translateList(t){let{text:n,from:a,to:r}=t,u=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceTextList:n,Target:e.langMap.get(r)||r}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:u,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||a,to:e.langMapReverse.get(o.Response.Target)||r}}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:u,version:o}){let i=`${u}.tencentcloudapi.com`,l=new Date,c=`${new Date().valueOf()}`.slice(0,10),s=["POST","/","","content-type:application/json; charset=utf-8",`host:${i}`,"","content-type;host",await fn(r)].join(` -`),g=e.getUTCDate(l),p=["TC3-HMAC-SHA256",c,`${g}/${u}/tc3_request`,await fn(s)].join(` -`),f=await Pd(g,`TC3${n}`),d=await lo(u,f),b=await lo("tc3_request",d),C=await lo(p,b),h=await se({retry:1,url:`https://${u}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:i,"X-TC-Action":a,"X-TC-Timestamp":c,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${g}/${u}/tc3_request, SignedHeaders=content-type;host, Signature=${C}`},body:r});if(h instanceof Error)throw h;if(h.Response&&h.Response.Error&&h.Response.Error.Message)throw new Error(h.Response.Error.Message);return h}};m();var Um=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],v6={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},Zr=class e extends be{static langMap=new Map(Um);static langMapReverse=new Map(Um.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,a){super(t,n,a)}async translate(t){let{text:n,from:a,to:r}=t,u=new URLSearchParams({source:a,target:r,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await se({url:`https://wxapp.translator.qq.com/api/translate?${u}`,retry:1,method:"GET",headers:v6});return{text:o.targetText,from:e.langMapReverse.get(o.source)||a,to:e.langMapReverse.get(o.target)||r}}};m();var zm=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],Ta=class e extends be{static langMap=new Map(zm);static langMapReverse=new Map(zm.map(([t,n])=>[n,t]));isSupportList=!1;apiUrl="https://translate.googleapis.com/translate_a/single";constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.apiUrl=jt(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let u=e.langMap.get(a)||"auto",o=e.langMap.get(r)||r,i=await this.fetchWithoutToken(n,u,o);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async translateXml(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let u=e.langMap.get(a)||"auto",o=e.langMap.get(r)||r,i=await this.fetchXmlWithoutToken(n,u,o);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async fetchXmlWithoutToken(t,n,a){let u="https://translate.googleapis.com/translate_a/t?"+new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}).toString();return{data:await se({retry:2,url:u})}}async fetchWithoutToken(t,n,a){let r=new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}),u=this.apiUrl+"?"+r.toString();return{data:await se({retry:2,url:u})}}};m();m();m();function A6(e,t){return t?e+(t-e%t):e}function k6(e,t){return e.split(t).length-1}function Gs(e){let t=Date.now(),n=1;for(let a of e)n+=k6(a,"i");return A6(t,n)}function S6(e,t){return Math.floor(Math.random()*(t-e+1))+e}function Vs(){return S6(1e6,1e8)}m();m();m();var Ys="https://www2.deepl.com/jsonrpc",Js="auto",Hm=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];m();function D6(e=Hm){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function Qs(e){return D6()[e.toLowerCase()]}var L6={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function P6(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function M6(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function F6(e,t,n,a,r,u,o){let i=Vs(),l=M6(a,n),c=[];t.forEach(p=>{c.push({text:p,requestAlternatives:3})}),l.id=i,l.params.texts=c,l.params.timestamp=Gs(t);let s=await se({retry:2,method:"POST",url:e,body:P6(l),headers:L6}),g={from:s.result.lang,to:n,text:[]};return s.result.texts.forEach(p=>{g.text.push(p.text)}),g}async function qm(e,t,n,a=Js,r,u,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:a,to:n}:F6(e,t,Qs(n),Qs(a)??"auto",r,u,o):{text:[],from:a,to:n}}var Wm=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],ar=class e extends be{static langMap=new Map(Wm);static langMapReverse=new Map(Wm.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=Ys;constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.API_URL=jt(Ys,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:a,from:r}=t,u=await qm(this.API_URL,n,e.langMap.get(a)||a,e.langMap.get(r)||"auto");return{text:u.text,from:e.langMapReverse.get(u.from),to:e.langMapReverse.get(u.to)}}};m();var $m=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Zs="https://transmart.qq.com/api/imt",Ca=class e extends be{static langMap=new Map($m);static langMapReverse=new Map($m.map(([t,n])=>[n,t]));clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,a){super(t,n,a),this.clientKey=e.getClientKey()}static getClientKey(){return btoa("transmart_crx_"+navigator.userAgent).slice(0,100)}async translate(t){let{text:n,to:a}=t,r=await this.detectLanguage(n),u=e.langMap.get(r)||r,o=e.langMap.get(a)||a;if(r===a)return{text:n,from:r,to:a};let i=Be(),l=t.url;i.INSTALL_FROM==="firefox_store"&&(l=Km());let s=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:u,orig_url:l},target:{lang:o}}),g=await se({url:Zs,body:s,method:"POST",retry:2});if(g.header.ret_code!=="succ")throw new Error(g.message||g.header.ret_code);return{text:g.auto_translation,from:r||"auto",to:a}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:a,to:r}=t,u=Be(),o=t.url;if(u.INSTALL_FROM==="firefox_store"&&(o=Km()),a.length===1){let f=await this.translate({from:n,text:a[0],to:r,url:o,options:t.options});return{text:[f.text],from:f.from,to:f.to}}let l=await this.detectLanguage(a.join(` -`));if(l===r)return{text:a,from:l,to:r};let c=e.langMap.get(l)||l,s=e.langMap.get(r)||r,g=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:a,lang:c,orig_url:o},target:{lang:s},type:"plain"}),p=await se({url:Zs,body:g,method:"POST"});if(p.header.ret_code!=="succ")throw new Error(p.message||p.header.ret_code);return{text:p.auto_translation,from:l||"auto",to:r}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return e.detectLanguageRemotelyByTransmart(t)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},a=await se({url:Zs,method:"POST",body:JSON.stringify(n)});if(a.header.ret_code!=="succ")throw new Error(a.message||a.header.ret_code);let r=a.language,u=e.langMapReverse.get(r);return u||r}};function Km(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}m();m();function Gm(){return Math.random()>=0}var rr=class extends be{isSupportList=!0;maxTextLength=1200;maxTextGroupLength=25;async translate(t){let{text:n}=t,a=n.match(/^\s*/)[0].length;return{text:n.slice(0,a)+"\u6A21\u62DF\uFF1A"+n.slice(a,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:a,to:r}=t;if(await Vm(),!Gm())throw new Error("\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:a,to:r,text:[""]}:{from:a,to:r,text:n.map(u=>{let o=u.match(/^\s*/)[0].length;return u.slice(0,o)+"\u6A21\u62DF\uFF1A"+u.slice(o,-6)})}}};m();var Jm=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],Xs=new Map(Jm),Ym=new Map(Jm.map(([e,t])=>[t,e])),e0=class e extends be{static langMap=Xs;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,a){if(super(t,n,a),!t||!t.apikey)throw new Error("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:a,to:r}=t,u=await se({retry:2,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:Xs.get(a)||"auto",target_lang:Xs.get(r)||r})});if(u.status){let o=u;return o.result&&r=="zh-TW",{text:o.result,from:Ym.get(o.source_lang),to:Ym.get(o.target_lang)}}else throw new Error(u.msg)}},Mo=e0;m();var Qm=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Xr=new Map(Qm),_6=new Map(Qm.map(([e,t])=>[t,e])),t0=class extends be{static langMap=Xr;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl="https://deepl.immersivetranslate.com/v2/translate";immersiveTranslateDeeplTokenUrl="https://api.immersivetranslate.com";immersiveTranslateDeeplProApiUrl=Mn()||Fn()?"https://api2.immersivetranslate.com/deepl/translate":"https://test-api2.immersivetranslate.com/deepl/translate";provider="custom";splitor="";apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,a){if(super(t,n,a),t=t||{},this.splitor=t.qualityDelimiterBeta||"",t.provider==="pro")if(this.provider="pro",a.userToken){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=a.userToken,this.apiKeys=this.authKey.split(",").map(r=>r.trim())}else throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey.split(",").map(r=>r.trim()),!this.authKey)throw new Error("authKey are required");if(!this.authKey)throw new Error("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=jt(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=jt(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=jt(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=jt(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=jt(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getDefaultRateLimit(){if(this.provider==="pro"){if(this.serviceConfig&&this.serviceConfig.immersiveTranslateProLimit){let t=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(t)&&(t=15),{limit:t,interval:1050}}return{limit:15,interval:1050}}else return{limit:3,interval:1050}}async translateList(t){let{from:n,to:a,text:r}=t,u={source_lang:Xr.get(n)||"",target_lang:Xr.get(a)||a},o=this.getRandomKey(),i=new URLSearchParams(u);this.splitor?i.append("text",r.join(this.splitor)):r.forEach(d=>{i.append("text",d)});let l=i.toString(),c={text:this.splitor?[r.join(this.splitor)]:r,source_lang:Xr.get(n)||"auto",target_lang:Xr.get(a)||a},s=this.freeApiUrl;o.endsWith(":im")?s=this.immersiveTranslateApiUrl:o.endsWith(":fx")||(s=this.proApiUrl);let g;this.provider==="pro"?g=await se({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:o,"Content-Type":"application/json"}}):o.startsWith("immersive_")?g=await se({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:o,"Content-Type":"application/json"}}):g=await se({retry:2,url:s,method:"POST",body:l,headers:{Authorization:"DeepL-Auth-Key "+o,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}});let{translations:p}=g,f=[];if(this.splitor?f=p[0]?.text.split(this.splitor).map(d=>d):f=p.map(d=>d.text),a==="zh-TW"){let d=this.serviceConfig||{};d&&d.googleApiUrl&&(d.apiUrl=d.googleApiUrl);let C=await new Ta(this.serviceConfig,this.generalConfig,this.translationOptions).translate({from:"zh-CN",to:"zh-TW",text:p.map(h=>h.text).join(` +`;continue}else if(b.length>t){let h=[];$s(b,t,h);for(let A=0;A0&&d{let i=e.lastIndexOf(o,t);return i>u?i:u},-1);if(r===-1){let u=e.slice(0,t);if(u&&!u.trim())return;n.push({text:u,prefix:"",suffix:""}),e.length>t&&$s(e.slice(t),t,n)}else{let u=e.slice(0,r+1);if(u&&u.trim()==="")return;u.startsWith(" ")?n.push({text:u.slice(1),prefix:" ",suffix:""}):n.push({text:u,prefix:"",suffix:""}),r+10){s.forEach(d=>{c.length>0&&d.providers&&d.providers.length>0&&!d.providers.includes(l)||(d.optional?p.push(d):m.push(d))});let f=p.concat(m).filter(d=>d.required);if(f.length>0){for(let d of f)if(!r[d.name]){i=!1;break}}}return{...a,id:t,selected:n[e]===t,ok:i,currentProvider:l,config:r,providers:a.providers||[],props:a.props||[],allProps:s,optionalProps:p,explicitProps:m}}var Am=(e,t)=>{let{config:n}=e,a=n.alpha,r=n.beta,u=n.canary,o=n.debug,i=e.user,l=en(i);return Object.keys(Bn).filter(s=>{let m=Bn[s];if(s.startsWith("mock"))return o?!0:s===e.config[t];if(s===e.config[t])return!0;if(s==="openai"&&At())return e.config.showOpenaiOnSafari||l?!0:!!(r||a||u||l);let p=!!m.canary,f=!!m.alpha,d=!!m.beta;return s===e[t]||p&&u||f&&(a||u)||d&&(r||a||u)?!0:!f&&!d&&!p}).map(s=>Ks(t,s,e))};function bn(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}var nr=[];async function So(e,t){return await new Promise((n,a)=>{let r=e,u=1,o=indexedDB.open(r,u);o.onsuccess=i=>{n(o.result)},o.onerror=i=>{a()},o.onupgradeneeded=i=>{let l=o.result,c=t||"cache";l.createObjectStore(c,{keyPath:"key"})}})}async function km(e){let t=`${Q}-${e.service}@${e.from}->${e.to}`;return await d6(t,e)}async function Sm(e){let t=aa(e.originalText),n=`${Q}-${e.service}@${e.from}->${e.to}`;return await c6(n,t)}async function c6(e,t){let n=await So(e);return await new Promise((a,r)=>{if(!n)return r();let u="cache",i=n.transaction([u],"readonly").objectStore(u).get(t);i.onsuccess=l=>{n.close();let c=i.result;a(c)},i.onerror=l=>{n.close(),r()}})}async function d6(e,t){let n=await So(e);return(await g6()).includes(e)||await m6(e),await new Promise(r=>{if(!n)return r(!1);let u="cache",i=n.transaction([u],"readwrite").objectStore(u).put(t);i.onsuccess=l=>{n.close(),r(!0)},i.onerror=l=>{n.close(),r(!1)}})}async function m6(e){let t="cache_list",n=await So(Q+"-cacheList",t),r=n.transaction([t],"readwrite").objectStore(t).put({key:e});r.onsuccess=u=>{n.close(),nr.push(e)},r.onerror=u=>{n.close()}}async function g6(){if(nr&&nr.length>0)return nr;let e=await So(Q+"-cacheList","cache_list");return nr=await new Promise(t=>{let n="cache_list",r=e.transaction([n],"readonly").objectStore(n).getAllKeys();r.onsuccess=u=>{e.close(),t(r.result)},r.onerror=u=>{e.close(),t([])}}),nr}g();g();g();var Dm="G-MKMD9LWFTR";async function Ye(e,t,n){try{let a=Be();if(a.INSTALL_FROM==="firefox_store")return;let u=fe(),o=tt(),i=a.PROD==="1",l=`report_${e}`,c=e.endsWith("_daily");if(c){if(o)return;let k=await In(l,0),v=Do(new Date(k)),E=Date.now(),R=Do(new Date(E));if(v===R)return;await Gd(l,E)}else if(!n.config.telemetry)return;let s="sitc4WmvShWYwfU0dANM3Q",m=await Dt("fakeUserId","");m||(m=await In("fakeUserId",""),m&&await ze("fakeUserId",m));let p=tn(),f=new Date,d=await Dt("installedAt","");d||(d=await In("installedAt",""),d&&await ze("installedAt",d)),m?d||(d=new Date(0).toISOString(),await ze("installedAt",d)):(m=p6(32),await ze("fakeUserId",m)),d||(d=f.toISOString(),await ze("installedAt",d));let b=new Date(d),C=Do(b),h=Do(f),A=C===h,S=f.getTime()-b.getTime()<7*24*60*60*1e3,U=`https://www.google-analytics.com/mp/collect?measurement_id=${Dm}&api_secret=${s}`;i||(U=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${Dm}&api_secret=${s}`);let O=$a.parse(window.navigator.userAgent),y=t.map(k=>{let v=k.params||{};if(O.os&&(v.os_name=O.os.name||"unknown",v.os_version=O.os.version||"unknown",v.os_version_name=O.os.versionName||"unknown"),O.browser&&(v.browser_name=O.browser.name||"unknown",v.browser_version=O.browser.version||"unknown"),O.platform&&(v.platform_type=O.platform.type||"unknown"),O.engine&&(v.engine_name=O.engine.name||"unknown",v.engine_version=O.engine.version||"unknown"),n.translationService&&(v.translation_service||(v.translation_service=n.translationService),n.config.translationServices&&n.config.translationServices[n.translationService]&&(n.config.translationServices[n.translationService].provider&&(v.translation_service_provider=n.config.translationServices[n.translationService].provider),n.translationService==="openai"&&n.config.translationServices[n.translationService].provider==="custom"&&(n.config.translationServices[n.translationService].apiUrl?n.config.translationServices[n.translationService].apiUrl.startsWith("https://api.openai.com/")?v.openai_is_official="1":v.openai_is_official="0":v.openai_is_official="1"))),n.targetLanguage&&(v.target_language=n.targetLanguage),n.config.interfaceLanguage&&(v.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?v.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":v.enable_default_always_translated_urls="0",p&&(v.version=p),n.config.enableInputTranslation?v.enable_input_translation=n.config.enableInputTranslation?"1":"0":v.enable_input_translation="0",n.config.translationTheme&&(v.translation_theme=n.config.translationTheme),n.config.alpha&&(v.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?v.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):v.always_translate_languages="none",a.INSTALL_FROM&&(v.install_from=a.INSTALL_FROM),n.config.beta&&(v.beta=n.config.alpha.toString()),n.config.translationArea&&(v.translation_area=n.config.translationArea),n.rule&&n.rule.enableSearchEnhancement!==void 0&&(v.enable_search_enhancement=n.rule.enableSearchEnhancement?"1":"0"),C&&(v.install_day=f6(b)),n.user){let R=Wd(n.user);R&&Object.keys(R).forEach(F=>{v[F]=R[F]})}else v.user_type="anonymous";n.config.translationMode&&(v.translation_mode=n.config.translationMode),v.userscript=u.toString(),A?v.is_new_user_today="1":v.is_new_user_today="0",S?v.is_new_user_this_week="1":v.is_new_user_this_week="0",n.config.tempTranslateDomainMinutes?v.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():v.temp_translate_domain_minutes="0";let E="html";if(n.rule.isEbook?E="ebookReader":n.rule.isPdf?E="pdfReader":n.rule.isEbookBuilder?E="ebookBuilder":n.rule.isSubtitleBuilder&&(E="subtitleBuilder"),v.page_type=E,o?v.main_frame=0:v.main_frame=1,!c){let R=n.url;try{let F=new URL(R);v.site_host=F.hostname}catch{v.site_host="unknown"}n.sourceLanguage&&(v.source_language=n.sourceLanguage)}return{...k,params:v}}),T=await se({responseType:"text",url:U,method:"POST",body:JSON.stringify({client_id:m,user_id:m,events:y})})}catch{}}function p6(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;rt.removeEventListener("message",n)),e.length=0}function x6(e,t,n,a){return new Promise(r=>{let u=o=>{let i=o.data;b6(t,n,i)&&i.id===a&&(e.removeEventListener("message",u),r(i.response))};e.addEventListener("message",u)})}function E6(e,t,n,a){let r=u=>{let o=u.data;_m(t,"tell",n,o)&&a(o.body)};return e.addEventListener("message",r),[e,r]}function Lm(e,t,n,a,r,u){let o=async i=>{let l=i.data;if(_m(n,"ask",a,l)){let c=await u(l.body);t=i.source,t.postMessage(h6(n,a,l.id,c),i.origin)}};return e.addEventListener("message",o),[e,o]}function T6(e,t,n,a,r){let u=Math.random().toString();return e.postMessage(Fm(t,"tell",n,u,a),r)}async function Pm(e,t,n,a,r,u,o){let i=Math.random().toString(),l=new Promise(async(c,s)=>{let m=setTimeout(()=>s(new Error(`Failed to get response within ${o}ms`)),o),p=await x6(e,n,a,i);clearTimeout(m),c(p)});return t.postMessage(Fm(n,"ask",a,i,r),u),l}var oa=class e{constructor(t,n,a=window,r="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=a;this.targetOrigin=r;Lm(a,n,this.getSystemProtocol("ping"),"ping",r,()=>Promise.resolve({}))}static async connect(t,n=10,a=500){for(let r=0;r<=n;r++)try{return await t.ping({timeout:a}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*a}ms`)}static parent(t,n,a="*",r=window){let u=n.contentWindow;if(ua(u))return new e(t,u,r,a);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:a=window,targetWindow:r=window.parent}={}){return new e(t,r,a,n)}static rootIframe(t,n="*",{thisWindow:a=window}={}){return new e(t,null,a,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await Pm(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(E6(this.thisWindow,this.protocol,t,n))}tell(t,n){T6(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(Lm(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,a=1e4){if(this.targetWindow)return Pm(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,a);throw new Error("target window is requried")}destroy(){y6(this.listeners)}};var Bm;async function Rm(){if(tt()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=oa.iframe(Ku,"*",{targetWindow:t});Bm=n,await oa.connect(n).catch(a=>{H.error("connect with parent frame error",a)})}}function Lo(){return Bm}g();function Om(e,t){let n=t.matches||[],a=t.excludeMatches||[];if(a&&!Array.isArray(a)&&(a=[a]),n&&!Array.isArray(n)&&(n=[n]),a.length>0){if(a.includes(e)||a.includes(""))return!1;for(let r of a)if(r.includes("*")&&new RegExp(r).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let r of n)if(r.includes("*")&&new RegExp(r).test(e))return!0}return!1}g();g();g();g();g();var ft=class{options;strictTicks=[];constructor(t){this.options=t,this.setOptions(t)}setOptions(t){t&&(t.interval!==void 0&&(this.options.interval=Number(t.interval)),t.limit!==void 0&&(this.options.limit=Number(t.limit)))}wait(){return new Promise((t,n)=>{setTimeout(t,this.getDelay())})}getDelay(){let t=this.strictTicks,n=this.options.limit,a=this.options.interval,r=Date.now();if(t.length=u?(t.push(r),0):(t.push(u),u-r)}};var C6=new ft({limit:7,interval:1250}),w6={tencent:new ft({limit:3,interval:1350}),baidu:new ft({limit:1,interval:1550}),strict:new ft({limit:1,interval:1050}),d:new ft({limit:1,interval:1050}),youdao:new ft({limit:5,interval:1050}),you:new ft({limit:5,interval:1050}),cai:new ft({limit:5,interval:1050}),google:new ft({limit:10,interval:1050}),deepl:new ft({limit:10,interval:1050}),transmart:new ft({limit:30,interval:1050}),papago:new ft({limit:3,interval:1150}),openai:new ft({limit:10,interval:1300}),chatgpt:new ft({limit:1,interval:1350})};function Jr(e){return w6[e]||C6}async function Im(e){if(tt()){let n=Lo();if(n)try{return(await n.ask("getRateLimitDelay",{key:e})).value}catch(a){return H.error("can not comunicate with root frame, use strict limiter",a),Jr("strict").getDelay()}else return Jr("strict").getDelay()}else return Jr(e).getDelay()}async function Nm(e,t){if(!tt()){let a=Jr(e);t&&a.setOptions(t)}}async function jm(e){let t=e.key;return{value:Jr(t).getDelay()}}var be=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=200;translationOptions;constructor(t,n,a){this.serviceConfig=t,this.generalConfig=n,this.translationOptions=a}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getDefaultRateLimit(){return null}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,a){if(t.sentences.length===0)return{sentences:[]};let{sentences:r}=t,u=[],o=null,i=new Set;for(let b of r)b.from&&b.from!=="auto"&&i.add(b.from);let l=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(l=this.serviceConfig.maxTextLengthPerRequest);let c=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(c=this.serviceConfig.maxTextGroupLengthPerRequest);try{u=vm(r,l,c)}catch(b){if(a)for(let C=0;Cb));let s=[],m=[],p=(b,C,h)=>{let A=C.translatedTexts[0];m[b]||(m[b]=C,m[b].translatedTexts=Array(C.sentenceTotalParts).fill(null)),m[b].translatedTexts[C.partIndex]=A;let S=m[b],U=0;for(let O=0;O{let S=await Im(this.translationOptions.translationService);await Ir(S||0);let U=C.from;if(C.fromByClient&&C.fromByClient!=="auto"&&(U=C.fromByClient),this.isSupportList)return{...await this.translateList({text:C.tempSentences.map(y=>y.text),from:U,to:C.to,url:h,options:n}),sourceTempSentences:C.tempSentences};{let O=S4;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(O=this.serviceConfig.translationTextSeparator);let y=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(y=this.serviceConfig.newlinePlaceholderDelimiters);let T="";y&&y.length>=2?T=C.tempSentences.map((F,w)=>w===C.tempSentences.length-1?F.text:F.text+y[0]+(w+1)+y[1]).join(""):T=C.tempSentences.map(F=>F.text).join(O);let k=await this.translate({text:T,from:U,to:C.to,url:h,options:n}),{text:v}=k,E=[];if(y&&y.length>=2){let F=`${y[0]}\\d+${y[1]}`;y&&y.length>=3&&(F=y[2]);let w=new RegExp(F,"g");E=v.split(w)}else E=v.split(O);let R=[];if(E.length>C.tempSentences.length){for(let F=0;F{let{text:U,sourceTempSentences:O}=S;for(let y=0;y{if(a){for(let U=0;U({...b.sentence,text:b.translatedTexts.join("")}))}}detectLanguageLocally(t){return Je({text:t,minLength:18,pageLangs:[pt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}};var Um=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Qr=class e extends be{static langMap=new Map(Um);static langMapReverse=new Map(Um.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),a=`${t.getUTCMonth()+1}`.padStart(2,"0"),r=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${a}-${r}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.secretId||!t.secretKey)throw new Error("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}async translate(t){let{text:n,from:a,to:r}=t,u=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceText:n,Target:e.langMap.get(r)||r}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:u,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||a,to:e.langMapReverse.get(o.Response.Target)||r}}async translateList(t){let{text:n,from:a,to:r}=t,u=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceTextList:n,Target:e.langMap.get(r)||r}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:u,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||a,to:e.langMapReverse.get(o.Response.Target)||r}}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:u,version:o}){let i=`${u}.tencentcloudapi.com`,l=new Date,c=`${new Date().valueOf()}`.slice(0,10),s=["POST","/","","content-type:application/json; charset=utf-8",`host:${i}`,"","content-type;host",await fn(r)].join(` +`),m=e.getUTCDate(l),p=["TC3-HMAC-SHA256",c,`${m}/${u}/tc3_request`,await fn(s)].join(` +`),f=await Md(m,`TC3${n}`),d=await so(u,f),b=await so("tc3_request",d),C=await so(p,b),h=await se({retry:1,url:`https://${u}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:i,"X-TC-Action":a,"X-TC-Timestamp":c,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${m}/${u}/tc3_request, SignedHeaders=content-type;host, Signature=${C}`},body:r});if(h instanceof Error)throw h;if(h.Response&&h.Response.Error&&h.Response.Error.Message)throw new Error(h.Response.Error.Message);return h}};g();var zm=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],v6={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},Zr=class e extends be{static langMap=new Map(zm);static langMapReverse=new Map(zm.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,a){super(t,n,a)}async translate(t){let{text:n,from:a,to:r}=t,u=new URLSearchParams({source:a,target:r,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await se({url:`https://wxapp.translator.qq.com/api/translate?${u}`,retry:1,method:"GET",headers:v6});return{text:o.targetText,from:e.langMapReverse.get(o.source)||a,to:e.langMapReverse.get(o.target)||r}}};g();var Hm=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],Ca=class e extends be{static langMap=new Map(Hm);static langMapReverse=new Map(Hm.map(([t,n])=>[n,t]));isSupportList=!1;apiUrl="https://translate.googleapis.com/translate_a/single";constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.apiUrl=Ut(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let u=e.langMap.get(a)||"auto",o=e.langMap.get(r)||r,i=await this.fetchWithoutToken(n,u,o);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async translateXml(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let u=e.langMap.get(a)||"auto",o=e.langMap.get(r)||r,i=await this.fetchXmlWithoutToken(n,u,o);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async fetchXmlWithoutToken(t,n,a){let u="https://translate.googleapis.com/translate_a/t?"+new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}).toString();return{data:await se({retry:2,url:u})}}async fetchWithoutToken(t,n,a){let r=new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}),u=this.apiUrl+"?"+r.toString();return{data:await se({retry:2,url:u})}}};g();g();g();function A6(e,t){return t?e+(t-e%t):e}function k6(e,t){return e.split(t).length-1}function Gs(e){let t=Date.now(),n=1;for(let a of e)n+=k6(a,"i");return A6(t,n)}function S6(e,t){return Math.floor(Math.random()*(t-e+1))+e}function Vs(){return S6(1e6,1e8)}g();g();g();var Ys="https://www2.deepl.com/jsonrpc",Js="auto",qm=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];g();function D6(e=qm){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function Qs(e){return D6()[e.toLowerCase()]}var L6={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function P6(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function M6(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function F6(e,t,n,a,r,u,o){let i=Vs(),l=M6(a,n),c=[];t.forEach(p=>{c.push({text:p,requestAlternatives:3})}),l.id=i,l.params.texts=c,l.params.timestamp=Gs(t);let s=await se({retry:2,method:"POST",url:e,body:P6(l),headers:L6}),m={from:s.result.lang,to:n,text:[]};return s.result.texts.forEach(p=>{m.text.push(p.text)}),m}async function Wm(e,t,n,a=Js,r,u,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:a,to:n}:F6(e,t,Qs(n),Qs(a)??"auto",r,u,o):{text:[],from:a,to:n}}var $m=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],ar=class e extends be{static langMap=new Map($m);static langMapReverse=new Map($m.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=Ys;constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.API_URL=Ut(Ys,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:a,from:r}=t,u=await Wm(this.API_URL,n,e.langMap.get(a)||a,e.langMap.get(r)||"auto");return{text:u.text,from:e.langMapReverse.get(u.from),to:e.langMapReverse.get(u.to)}}};g();var Km=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Zs="https://transmart.qq.com/api/imt",wa=class e extends be{static langMap=new Map(Km);static langMapReverse=new Map(Km.map(([t,n])=>[n,t]));clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,a){super(t,n,a),this.clientKey=e.getClientKey()}static getClientKey(){return btoa("transmart_crx_"+navigator.userAgent).slice(0,100)}async translate(t){let{text:n,to:a}=t,r=await this.detectLanguage(n),u=e.langMap.get(r)||r,o=e.langMap.get(a)||a;if(r===a)return{text:n,from:r,to:a};let i=Be(),l=t.url;i.INSTALL_FROM==="firefox_store"&&(l=Gm());let s=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:u,orig_url:l},target:{lang:o}}),m=await se({url:Zs,body:s,method:"POST",retry:2});if(m.header.ret_code!=="succ")throw new Error(m.message||m.header.ret_code);return{text:m.auto_translation,from:r||"auto",to:a}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:a,to:r}=t,u=Be(),o=t.url;if(u.INSTALL_FROM==="firefox_store"&&(o=Gm()),a.length===1){let f=await this.translate({from:n,text:a[0],to:r,url:o,options:t.options});return{text:[f.text],from:f.from,to:f.to}}let l=await this.detectLanguage(a.join(` +`));if(l===r)return{text:a,from:l,to:r};let c=e.langMap.get(l)||l,s=e.langMap.get(r)||r,m=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:a,lang:c,orig_url:o},target:{lang:s},type:"plain"}),p=await se({url:Zs,body:m,method:"POST"});if(p.header.ret_code!=="succ")throw new Error(p.message||p.header.ret_code);return{text:p.auto_translation,from:l||"auto",to:r}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return e.detectLanguageRemotelyByTransmart(t)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},a=await se({url:Zs,method:"POST",body:JSON.stringify(n)});if(a.header.ret_code!=="succ")throw new Error(a.message||a.header.ret_code);let r=a.language,u=e.langMapReverse.get(r);return u||r}};function Gm(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}g();g();function Vm(){return Math.random()>=0}var rr=class extends be{isSupportList=!0;maxTextLength=1200;maxTextGroupLength=25;async translate(t){let{text:n}=t,a=n.match(/^\s*/)[0].length;return{text:n.slice(0,a)+"\u6A21\u62DF\uFF1A"+n.slice(a,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:a,to:r}=t;if(await Ym(),!Vm())throw new Error("\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:a,to:r,text:[""]}:{from:a,to:r,text:n.map(u=>{let o=u.match(/^\s*/)[0].length;return u.slice(0,o)+"\u6A21\u62DF\uFF1A"+u.slice(o,-6)})}}};g();var Qm=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],Xs=new Map(Qm),Jm=new Map(Qm.map(([e,t])=>[t,e])),e0=class e extends be{static langMap=Xs;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,a){if(super(t,n,a),!t||!t.apikey)throw new Error("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:a,to:r}=t,u=await se({retry:2,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:Xs.get(a)||"auto",target_lang:Xs.get(r)||r})});if(u.status){let o=u;return o.result&&r=="zh-TW",{text:o.result,from:Jm.get(o.source_lang),to:Jm.get(o.target_lang)}}else throw new Error(u.msg)}},Po=e0;g();var Zm=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Xr=new Map(Zm),_6=new Map(Zm.map(([e,t])=>[t,e])),t0=class extends be{static langMap=Xr;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl="https://deepl.immersivetranslate.com/v2/translate";immersiveTranslateDeeplTokenUrl="https://api.immersivetranslate.com";immersiveTranslateDeeplProApiUrl=Mn()||Fn()?"https://api2.immersivetranslate.com/deepl/translate":"https://test-api2.immersivetranslate.com/deepl/translate";provider="custom";splitor="";apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,a){if(super(t,n,a),t=t||{},this.splitor=t.qualityDelimiterBeta||"",t.provider==="pro")if(this.provider="pro",a.userToken){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=a.userToken,this.apiKeys=this.authKey.split(",").map(r=>r.trim())}else throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey.split(",").map(r=>r.trim()),!this.authKey)throw new Error("authKey are required");if(!this.authKey)throw new Error("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=Ut(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=Ut(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=Ut(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=Ut(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=Ut(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getDefaultRateLimit(){if(this.provider==="pro"){if(this.serviceConfig&&this.serviceConfig.immersiveTranslateProLimit){let t=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(t)&&(t=15),{limit:t,interval:1050}}return{limit:15,interval:1050}}else return{limit:3,interval:1050}}async translateList(t){let{from:n,to:a,text:r}=t,u={source_lang:Xr.get(n)||"",target_lang:Xr.get(a)||a},o=this.getRandomKey(),i=new URLSearchParams(u);this.splitor?i.append("text",r.join(this.splitor)):r.forEach(d=>{i.append("text",d)});let l=i.toString(),c={text:this.splitor?[r.join(this.splitor)]:r,source_lang:Xr.get(n)||"auto",target_lang:Xr.get(a)||a},s=this.freeApiUrl;o.endsWith(":im")?s=this.immersiveTranslateApiUrl:o.endsWith(":fx")||(s=this.proApiUrl);let m;this.provider==="pro"?m=await se({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:o,"Content-Type":"application/json"}}):o.startsWith("immersive_")?m=await se({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:o,"Content-Type":"application/json"}}):m=await se({retry:2,url:s,method:"POST",body:l,headers:{Authorization:"DeepL-Auth-Key "+o,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}});let{translations:p}=m,f=[];if(this.splitor?f=p[0]?.text.split(this.splitor).map(d=>d):f=p.map(d=>d.text),a==="zh-TW"){let d=this.serviceConfig||{};d&&d.googleApiUrl&&(d.apiUrl=d.googleApiUrl);let C=await new Ca(this.serviceConfig,this.generalConfig,this.translationOptions).translate({from:"zh-CN",to:"zh-TW",text:p.map(h=>h.text).join(` `),url:"",options:{}});C&&C.text&&(f=C.text.split(` -`))}return{text:f,from:p[0]&&_6.get(p[0].detected_source_language)||n,to:a}}},Zm=t0;m();var B6=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],n0=new Map(B6),a0=class extends be{static langMap=n0;APIKEY="";isSupportList=!1;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:a,to:r}=t,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:2,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:n,from:n0.get(a)||a,to:n0.get(r)||r,apikey:this.APIKEY})},i=await se(o);if(i.tgt_text){let l=i.tgt_text;return l.endsWith(` -`)&&(l=l.slice(0,-1)),{text:l,from:a,to:r}}else throw new Error(JSON.stringify(i))}},Xm=a0;m();var R6=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],r0=new Map(R6),u0=class extends be{static langMap=r0;APIKEY="";region="eastasia";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region)}async translateList(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:[]};let u={"api-version":"3.0",to:r0.get(r)||r};a!=="auto"&&(u.from=r0.get(a)||a);let o=new URLSearchParams(u),i=JSON.stringify(n.map(s=>({text:s}))),l={url:"https://api.cognitive.microsofttranslator.com/translate?"+o.toString(),retry:2,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:i},c=await se(l);if(c.length===0)throw new Error("server response invalid");return{from:a,to:r,text:c.map(s=>s.translations.map(p=>p.text).join(" "))}}},eg=u0;m();var O6=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],eu=new Map(O6),o0=class extends be{isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:3,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t,u;if(n.length===0)return{from:a,to:r,text:[]};let o=` +`))}return{text:f,from:p[0]&&_6.get(p[0].detected_source_language)||n,to:a}}},Xm=t0;g();var B6=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],n0=new Map(B6),a0=class extends be{static langMap=n0;APIKEY="";isSupportList=!1;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:a,to:r}=t,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:2,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:n,from:n0.get(a)||a,to:n0.get(r)||r,apikey:this.APIKEY})},i=await se(o);if(i.tgt_text){let l=i.tgt_text;return l.endsWith(` +`)&&(l=l.slice(0,-1)),{text:l,from:a,to:r}}else throw new Error(JSON.stringify(i))}},eg=a0;g();var R6=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],r0=new Map(R6),u0=class extends be{static langMap=r0;APIKEY="";region="eastasia";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region)}async translateList(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:[]};let u={"api-version":"3.0",to:r0.get(r)||r};a!=="auto"&&(u.from=r0.get(a)||a);let o=new URLSearchParams(u),i=JSON.stringify(n.map(s=>({text:s}))),l={url:"https://api.cognitive.microsofttranslator.com/translate?"+o.toString(),retry:2,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:i},c=await se(l);if(c.length===0)throw new Error("server response invalid");return{from:a,to:r,text:c.map(s=>s.translations.map(p=>p.text).join(" "))}}},tg=u0;g();var O6=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],eu=new Map(O6),o0=class extends be{isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:3,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t,u;if(n.length===0)return{from:a,to:r,text:[]};let o=`
-`,i=n.join(o),l={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:2,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:""};a==="auto"||!eu.get(a)?(u=(await se({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:i})).langCode,l.body=JSON.stringify({text:i,source:u||eu.get(a)||a,target:eu.get(r)||r})):l.body=JSON.stringify({text:i,source:eu.get(a),target:eu.get(r)||r});let c=await se(l);if(c.translatedText==="")throw new Error("server response invalid");let s=c.translatedText.split("
").map(g=>g.trim());return{from:a,to:r,text:s}}},tg=o0;m();var I6=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],tu=new Map(I6),i0=class extends be{static langMap=tu;provider="custom";APIKEY="";apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;systemPrompt="You are a professional translation engine, please translate the text into a colloquial, professional, elegant and fluent content, without the style of machine translation. You must only translate the text content, never interpret it.";prompt=`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +`,i=n.join(o),l={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:2,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:""};a==="auto"||!eu.get(a)?(u=(await se({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:i})).langCode,l.body=JSON.stringify({text:i,source:u||eu.get(a)||a,target:eu.get(r)||r})):l.body=JSON.stringify({text:i,source:eu.get(a),target:eu.get(r)||r});let c=await se(l);if(c.translatedText==="")throw new Error("server response invalid");let s=c.translatedText.split("
").map(m=>m.trim());return{from:a,to:r,text:s}}},ng=o0;g();var I6=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],Mo=new Map(I6),i0=class extends be{static langMap=Mo;provider="custom";APIKEY="";apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;systemPrompt="You are a professional translation engine, please translate the text into a colloquial, professional, elegant and fluent content, without the style of machine translation. You must only translate the text content, never interpret it.";prompt=`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`;model="gpt-3.5-turbo-0613";apiUrl="https://api.openai.com/v1/chat/completions";immersiveApiUrl="https://openai-api.immersivetranslate.com/v1/chat/completions";immersiveProApiUrl=Mn()||Fn()?"https://api2.immersivetranslate.com/openai/v1/chat/completions":"https://test-api2.immersivetranslate.com/openai/v1/chat/completions";splitor="
";constructor(t,n,a){if(super(t,n,a),t||(t={}),t.provider&&(this.provider=t.provider),t.APIKEY&&(this.APIKEY=t.APIKEY?.trim(),this.apiKeys=this.APIKEY.split(",").map(r=>r.trim())),this.provider==="pro"){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");if(this.APIKEY=a.userToken||"",this.apiKeys=this.APIKEY.split(",").map(r=>r.trim()),!this.APIKEY)throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002")}t.prompt&&(this.prompt=t.prompt),t.model&&(this.model=t.model),t&&t.apiUrl&&(this.apiUrl=jt(this.apiUrl,t.apiUrl)),t&&t.immersiveApiUrl&&(this.immersiveApiUrl=jt(this.immersiveApiUrl,t.immersiveApiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=jt(this.immersiveProApiUrl,t.immersiveProApiUrl)),t&&t.systemPrompt&&(this.systemPrompt=t.systemPrompt)}getDefaultRateLimit(){return{limit:10,interval:1300}}translate(t){return this.model.includes("003")?(this.maxTextGroupLength=1,this.translate3(t)):this.translate3_5(t)}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate3_5(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let u=tu.get(a)||a,o=tu.get(r)||r,i=this.prompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u),l=[];if(this.systemPrompt){let p=this.systemPrompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u);l.push({role:"system",content:p})}this.prompt&&l.push({role:"user",content:i}),this.prompt.indexOf("{{text}}")===-1&&l.push({role:"user",content:n});let c={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:this.model,temperature:0,messages:l})},s=this.getRandomKey();this.provider==="pro"?(c.url=this.immersiveProApiUrl,c.headers.token=s):s&&(c.headers.Authorization="Bearer "+s,c.headers["api-key"]=s,s.startsWith("immersiveopenai_")&&(c.url=this.immersiveProApiUrl,c.headers.token=s,s.endsWith("x")||(c.headers["Immersive-Corpus-Campagin"]="yes"),delete c.headers.Authorization,delete c.headers["api-key"]));let g=await se(c);if(g&&g.choices&&g.choices.length>0&&g.choices[0].message&&g.choices[0].message.content){let p=g.choices[0].message.content.trim();return(p.includes("\u62B1\u6B49")&&p.includes("\u7FFB\u8BD1")||p.includes("\u8BF7\u5C06\u6587\u672C\u7FFB\u8BD1\u6210")||p.includes("\u4E0D\u8981\u89E3\u91CA\u4EFB\u4F55"))&&(p=n),!n.includes(".")&&(p.endsWith("\u3002")||p.endsWith("."))&&(p=p.slice(0,-1)),{from:a,to:r,text:p}}else throw new Error("server response invalid: "+JSON.stringify(g))}async translate3(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let u=this.prompt.replace(/{{to}}/g,tu.get(r)||r).replace(/{{text}}/g,n).replace(/{{from}}/g,tu.get(a)||a),o={url:"https://api.openai.com/v1/completions",method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.APIKEY},body:JSON.stringify({model:this.model,prompt:u,temperature:0})},i=await se(o);if(i&&i.choices&&i.choices.length>0&&i.choices[0].text){let l=i.choices[0].text.trim();return{from:a,to:r,text:l}}else throw new Error("server response invalid: "+JSON.stringify(i))}},ng=i0;m();var N6=[["auto","auto"],["zh-CN","zh-Hans"],["zh-TW","zh-Hant"],["en","en"],["yue","\u7CA4\u8BED"],["wyw","\u53E4\u6587"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["de","de"],["es","es"],["it","it"],["ru","ru"],["pt","pt"],["nl","nl"],["pl","pl"],["ar","ar"],["af","af"],["am","am"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["el","el"],["eo","eo"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ku","ku"],["ky","ky"],["la","lo"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["no","no"],["ny","ny"],["pa","pa"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["sr-Cyrl","sr"],["sr-Latn","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],Fo=new Map(N6),s0="chatgptWebAccessToken";async function ag(){let e=await Br(s0);if(e)return e;let t=await se({url:"https://chat.openai.com/api/auth/session",method:"get",responseType:"json"});if(!t.accessToken)throw new Error("UNAUTHORIZED");return await Rr(s0,t.accessToken,10*60*1e3),t.accessToken}var l0=class e{static instance;constructor(){return e.instance||(e.instance=this),this}#e=Promise.resolve();enqueue(t){return this.#e=this.#e.then(()=>t()),this.#e}},c0=new l0;Object.freeze(c0);var nu=class extends be{accessToken="";customChatGptWebApiUrl="https://chat.openai.com";customChatGptWebApiPath="/backend-api/conversation";maxTextGroupLength=1;maxTextLength=1200;isStream=!1;isSupportList=!1;prompt=`You are a translation engine, you can only translate text and cannot interpret it, and do not explain.Translate the text below to {{to}}: +{{text}}`;model="gpt-3.5-turbo-0613";apiUrl="https://api.openai.com/v1/chat/completions";immersiveApiUrl="https://openai-api.immersivetranslate.com/v1/chat/completions";immersiveProApiUrl=Mn()||Fn()?"https://api2.immersivetranslate.com/openai/v1/chat/completions":"https://test-api2.immersivetranslate.com/openai/v1/chat/completions";splitor="
";constructor(t,n,a){if(super(t,n,a),t||(t={}),t.provider&&(this.provider=t.provider),t.APIKEY&&(this.APIKEY=t.APIKEY?.trim(),this.apiKeys=this.APIKEY.split(",").map(r=>r.trim())),this.provider==="pro"){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");if(this.APIKEY=a.userToken||"",this.apiKeys=this.APIKEY.split(",").map(r=>r.trim()),!this.APIKEY)throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002")}t.prompt&&(this.prompt=t.prompt),t.model&&(this.model=t.model),t&&t.apiUrl&&(this.apiUrl=Ut(this.apiUrl,t.apiUrl)),t&&t.immersiveApiUrl&&(this.immersiveApiUrl=Ut(this.immersiveApiUrl,t.immersiveApiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=Ut(this.immersiveProApiUrl,t.immersiveProApiUrl)),t&&t.systemPrompt&&(this.systemPrompt=t.systemPrompt)}getDefaultRateLimit(){return{limit:10,interval:1300}}translate(t){return this.model.includes("003")||this.model.includes("gpt-3.5-turbo-instruct")?(this.maxTextGroupLength=1,this.translate3(t)):this.translate3_5(t)}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate3_5(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let u=Mo.get(a)||a,o=Mo.get(r)||r,i=this.prompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u),l=[];if(this.systemPrompt){let p=this.systemPrompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u);l.push({role:"system",content:p})}this.prompt&&l.push({role:"user",content:i}),this.prompt.indexOf("{{text}}")===-1&&l.push({role:"user",content:n});let c={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:this.model,temperature:0,messages:l})},s=this.getRandomKey();this.provider==="pro"?(c.url=this.immersiveProApiUrl,c.headers.token=s):s&&(c.headers.Authorization="Bearer "+s,c.headers["api-key"]=s,s.startsWith("immersiveopenai_")&&(c.url=this.immersiveProApiUrl,c.headers.token=s,s.endsWith("x")||(c.headers["Immersive-Corpus-Campagin"]="yes"),delete c.headers.Authorization,delete c.headers["api-key"]));let m=await se(c);if(m&&m.choices&&m.choices.length>0&&m.choices[0].message&&m.choices[0].message.content){let p=m.choices[0].message.content.trim();return(p.includes("\u62B1\u6B49")&&p.includes("\u7FFB\u8BD1")||p.includes("\u8BF7\u5C06\u6587\u672C\u7FFB\u8BD1\u6210")||p.includes("\u4E0D\u8981\u89E3\u91CA\u4EFB\u4F55"))&&(p=n),!n.includes(".")&&(p.endsWith("\u3002")||p.endsWith("."))&&(p=p.slice(0,-1)),{from:a,to:r,text:p}}else throw new Error("server response invalid: "+JSON.stringify(m))}async translate3(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let u=`Translate to ${Mo.get(r)||r}: -{{text}}`;constructor(t,n,a){super(t,n,a)}throttleDebounce(t,n,a){let r=0,u;return(...o)=>{let i=Date.now(),l=this,c=()=>{r=i,t.apply(l,o)};i-r>=n?(clearTimeout(u),c()):(clearTimeout(u),u=setTimeout(()=>{c()},a))}}async deleteConversation(t){if(t){let n=await se({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}/${t}`,method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({is_visible:!1})});return H.debug("delete conversation res:",n),n}}async translate(t){return await c0.enqueue(async()=>{let{text:n,from:a,to:r}=t;if(n.length===0)return Promise.resolve({from:a,to:r,text:""});let u=Fo.get(a)||a,o=Fo.get(r)||r;if(this.accessToken=await ag(),!this.accessToken||this.accessToken==="")throw new Error("token error");let i="text-davinci-002-render-sha-mobile";if(!i)throw new Error("No available model");let l=this.prompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u);try{let c=await se({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"stream",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:bn(),role:"user",content:{content_type:"text",parts:[l]}}],model:i,parent_message_id:bn()})});return H.debug("get chatgpt res:",c),await this.deleteConversation(c?.conversation_id),Promise.resolve({from:a,to:r,text:c?.message?.content?.parts?.[0]})}catch(c){throw H.debug("post chatgpt error:",c),await Or(s0),c}})}async translateStream(t,n){let{text:a,from:r,to:u}=t;if(a.length===0){n(null,{from:r,to:u,text:""});return}let o=this.throttleDebounce(function(i){let{from:l,to:c,text:s}=i;n(null,{from:l,to:c,text:s})},300,200);await c0.enqueue(async()=>{let i="chatgpt"+bn(),l=ee.runtime.connect({name:i}),c,s;l.onMessage.addListener(b=>{if(!(!b||b==="")){if(b==="[DONE]"){l.disconnect(),this.deleteConversation(c);return}try{s=JSON.parse(b)}catch(C){H.debug("chatgpt json error",C,b);return}c=s?.conversation_id,s?.message?.author?.role==="assistant"&&o({from:r,to:u,text:s?.message?.content?.parts?.[0]})}});let g=Fo.get(r)||r,p=Fo.get(u)||u;if(this.accessToken=await ag(),!this.accessToken||this.accessToken==="")throw new Error("token error");let f="text-davinci-002-render-sha";if(!f)throw new Error("No available model");let d=this.prompt.replace(/{{to}}/g,p).replace(/{{text}}/g,a).replace(/{{from}}/g,g);se({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"realStream",extra:{portName:i},headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:bn(),role:"user",content:{content_type:"text",parts:[d]}}],model:f,parent_message_id:bn()})}).catch(b=>{H.debug("chatgpt error",b),l.disconnect(),this.deleteConversation(c),n(b,{from:r,to:u,text:""})})})}};m();var og=xf(rg()),ug=[["af","af"],["am","am"],["ar","ar"],["auto","auto"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fil","fil"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["mww","mww"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["otq","otq"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["tn","tn"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tlh","tlh"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["yua","yua"],["yue","yue"],["bo","bo"],["sa","sa"],["zh-CN","zh"],["zh-TW","zh-tw"],["zu","zu"]],ru=class e extends be{static langMap=new Map(ug);static langMapReverse=new Map(ug.map(([t,n])=>[n,t]));static SHA1=new og.default.SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,a){if(super(t,n,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new Error("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:a,to:r}=t,u={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:n,TargetLanguage:e.langMap.get(r)||r},o=this.scene=="general"?"TranslateGeneral":"Translate",i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:u,service:"mt",version:"2018-10-12"});return{text:i.Data.Translated,from:i.Data.DetectedLanguage&&e.langMapReverse.get(i.Data.DetectedLanguage)||a||"auto",to:e.langMapReverse.get(r)||r}}async translateList(t){let{text:n,from:a,to:r}=t,u=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:JSON.stringify(n.reduce((c,s,g)=>(c[g]=s,c),{})),TargetLanguage:e.langMap.get(r)||r,ApiType:u},i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),l=i.TranslatedList.length&&i.TranslatedList[0].detectedLanguage;return{text:i.TranslatedList.sort((c,s)=>parseInt(c.index)-parseInt(s.index)).map(c=>c.translated),from:l&&e.langMapReverse.get(l)||a||"auto",to:e.langMapReverse.get(r)||r}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:u,version:o}){let i=new Date().toISOString(),l=Math.random().toString(36).slice(2),c={Action:a,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:l,Timestamp:i,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},g=(b=>{let h=Object.keys(b).sort().map(A=>`${this.encode(A)}=${this.encode(b[A])}`).join("&");return`POST&%2F&${this.encode(h)}`})(Object.assign({},c,r)),p=e.SHA1.b64_hmac(`${n}&`,g),f=new URLSearchParams(Object.assign({},c,{Signature:p})).toString(),d=await se({retry:1,url:`https://${u}.aliyuncs.com?${f}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(r).toString()});if(d instanceof Error)throw d;if(d.Code!=="200")throw new Error(d.Message);return d}};m();m();var j6=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],Xe={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},d0=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},m0=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let a=d0(t);if(a)return Array.isArray(n)?`${a}=${n.map(d0).sort().join(`&${a}=`)}`:`${a}=${d0(n)}`}).filter(t=>t).join("&"),ur=class{request;serviceName;bodySha256;constructor(t,n,a){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,a=a||{},this.bodySha256=a.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(a=>{let r=t[a];return typeof r<"u"&&r!==null}).sort().map(a=>{n[a]=t[a]}),n}async addAuthorization(t,n){let a=this.getDateTime(n);await this.addHeaders(t,a),this.request.headers.Authorization=await this.authorization(t,a)}async authorization(t,n){let a=[],r=this.credentialString(n);return a.push(`${Xe.algorithm} Credential=${t.accessKeyId}/${r}`),a.push(`SignedHeaders=${this.signedHeaders()}`),a.push(`Signature=${await this.signature(t,n)}`),a.join(", ")}async getSignUrl(t,n){let a=this.getDateTime(n),r={...this.request.params},u=this.request.params,o=this.request.headers;t.sessionToken&&(r[Xe.tokenHeader]=t.sessionToken),r[Xe.dateHeader]=a,r[Xe.notSignBody]="",r[Xe.credential]=`${t.accessKeyId}/${this.credentialString(a)}`,r[Xe.algorithmKey]=Xe.algorithm,r[Xe.signHeadersKey]="",r[Xe.signQueriesKey]=void 0,r[Xe.signatureKey]=void 0,r=this.sortParams(r),this.request.params=r,this.request.headers={};let i=await this.signature(t,a);return this.request.params=u,this.request.headers=o,r[Xe.signQueriesKey]=Object.keys(r).sort().join(";"),r[Xe.signatureKey]=i,m0(r)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[Xe.dateHeader]=n,t.sessionToken&&(this.request.headers[Xe.tokenHeader]=t.sessionToken),this.request.body){let a=this.request.body;this.request.headers[Xe.contentSha256Header]=await fn(a)}}async signature(t,n){let a=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return so(await Xn(await this.stringToSign(n),a))}async stringToSign(t){let n=[];n.push(Xe.algorithm),n.push(t),n.push(this.credentialString(t));let a=await this.canonicalString();return n.push(await this.hexEncodedHash(a)),n.join(` +${n} =>`,o=this.getRandomKey(),i={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.APIKEY}},l={model:this.model,prompt:u,temperature:0};this.provider==="pro"?(i.url=this.immersiveProApiUrl,i.headers.token=o):o&&(i.headers.Authorization="Bearer "+o,i.headers["api-key"]=o,o.startsWith("immersiveopenai_")&&(i.url=this.immersiveProApiUrl,i.headers.token=o,o.endsWith("x")||(i.headers["Immersive-Corpus-Campagin"]="yes"),delete i.headers.Authorization,delete i.headers["api-key"])),i.url=i.url.replace("/chat/","/");let c=2048,s=u.length*2.2;s0&&m.choices[0].text){let p=m.choices[0].text.trim();return{from:a,to:r,text:p}}else throw new Error("server response invalid: "+JSON.stringify(m))}},ag=i0;g();var N6=[["auto","auto"],["zh-CN","zh-Hans"],["zh-TW","zh-Hant"],["en","en"],["yue","\u7CA4\u8BED"],["wyw","\u53E4\u6587"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["de","de"],["es","es"],["it","it"],["ru","ru"],["pt","pt"],["nl","nl"],["pl","pl"],["ar","ar"],["af","af"],["am","am"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["el","el"],["eo","eo"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ku","ku"],["ky","ky"],["la","lo"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["no","no"],["ny","ny"],["pa","pa"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["sr-Cyrl","sr"],["sr-Latn","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],Fo=new Map(N6),s0="chatgptWebAccessToken";async function rg(){let e=await Br(s0);if(e)return e;let t=await se({url:"https://chat.openai.com/api/auth/session",method:"get",responseType:"json"});if(!t.accessToken)throw new Error("UNAUTHORIZED");return await Rr(s0,t.accessToken,10*60*1e3),t.accessToken}var l0=class e{static instance;constructor(){return e.instance||(e.instance=this),this}#e=Promise.resolve();enqueue(t){return this.#e=this.#e.then(()=>t()),this.#e}},c0=new l0;Object.freeze(c0);var tu=class extends be{accessToken="";customChatGptWebApiUrl="https://chat.openai.com";customChatGptWebApiPath="/backend-api/conversation";maxTextGroupLength=1;maxTextLength=1200;isStream=!1;isSupportList=!1;prompt=`You are a translation engine, you can only translate text and cannot interpret it, and do not explain.Translate the text below to {{to}}: + +{{text}}`;constructor(t,n,a){super(t,n,a)}throttleDebounce(t,n,a){let r=0,u;return(...o)=>{let i=Date.now(),l=this,c=()=>{r=i,t.apply(l,o)};i-r>=n?(clearTimeout(u),c()):(clearTimeout(u),u=setTimeout(()=>{c()},a))}}async deleteConversation(t){if(t){let n=await se({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}/${t}`,method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({is_visible:!1})});return H.debug("delete conversation res:",n),n}}async translate(t){return await c0.enqueue(async()=>{let{text:n,from:a,to:r}=t;if(n.length===0)return Promise.resolve({from:a,to:r,text:""});let u=Fo.get(a)||a,o=Fo.get(r)||r;if(this.accessToken=await rg(),!this.accessToken||this.accessToken==="")throw new Error("token error");let i="text-davinci-002-render-sha-mobile";if(!i)throw new Error("No available model");let l=this.prompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u);try{let c=await se({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"stream",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:bn(),role:"user",content:{content_type:"text",parts:[l]}}],model:i,parent_message_id:bn()})});return H.debug("get chatgpt res:",c),await this.deleteConversation(c?.conversation_id),Promise.resolve({from:a,to:r,text:c?.message?.content?.parts?.[0]})}catch(c){throw H.debug("post chatgpt error:",c),await Or(s0),c}})}async translateStream(t,n){let{text:a,from:r,to:u}=t;if(a.length===0){n(null,{from:r,to:u,text:""});return}let o=this.throttleDebounce(function(i){let{from:l,to:c,text:s}=i;n(null,{from:l,to:c,text:s})},300,200);await c0.enqueue(async()=>{let i="chatgpt"+bn(),l=ee.runtime.connect({name:i}),c,s;l.onMessage.addListener(b=>{if(!(!b||b==="")){if(b==="[DONE]"){l.disconnect(),this.deleteConversation(c);return}try{s=JSON.parse(b)}catch(C){H.debug("chatgpt json error",C,b);return}c=s?.conversation_id,s?.message?.author?.role==="assistant"&&o({from:r,to:u,text:s?.message?.content?.parts?.[0]})}});let m=Fo.get(r)||r,p=Fo.get(u)||u;if(this.accessToken=await rg(),!this.accessToken||this.accessToken==="")throw new Error("token error");let f="text-davinci-002-render-sha";if(!f)throw new Error("No available model");let d=this.prompt.replace(/{{to}}/g,p).replace(/{{text}}/g,a).replace(/{{from}}/g,m);se({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"realStream",extra:{portName:i},headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:bn(),role:"user",content:{content_type:"text",parts:[d]}}],model:f,parent_message_id:bn()})}).catch(b=>{H.debug("chatgpt error",b),l.disconnect(),this.deleteConversation(c),n(b,{from:r,to:u,text:""})})})}};g();var ig=Ef(ug()),og=[["af","af"],["am","am"],["ar","ar"],["auto","auto"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fil","fil"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["mww","mww"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["otq","otq"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["tn","tn"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tlh","tlh"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["yua","yua"],["yue","yue"],["bo","bo"],["sa","sa"],["zh-CN","zh"],["zh-TW","zh-tw"],["zu","zu"]],au=class e extends be{static langMap=new Map(og);static langMapReverse=new Map(og.map(([t,n])=>[n,t]));static SHA1=new ig.default.SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,a){if(super(t,n,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new Error("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:a,to:r}=t,u={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:n,TargetLanguage:e.langMap.get(r)||r},o=this.scene=="general"?"TranslateGeneral":"Translate",i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:u,service:"mt",version:"2018-10-12"});return{text:i.Data.Translated,from:i.Data.DetectedLanguage&&e.langMapReverse.get(i.Data.DetectedLanguage)||a||"auto",to:e.langMapReverse.get(r)||r}}async translateList(t){let{text:n,from:a,to:r}=t,u=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:JSON.stringify(n.reduce((c,s,m)=>(c[m]=s,c),{})),TargetLanguage:e.langMap.get(r)||r,ApiType:u},i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),l=i.TranslatedList.length&&i.TranslatedList[0].detectedLanguage;return{text:i.TranslatedList.sort((c,s)=>parseInt(c.index)-parseInt(s.index)).map(c=>c.translated),from:l&&e.langMapReverse.get(l)||a||"auto",to:e.langMapReverse.get(r)||r}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:u,version:o}){let i=new Date().toISOString(),l=Math.random().toString(36).slice(2),c={Action:a,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:l,Timestamp:i,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},m=(b=>{let h=Object.keys(b).sort().map(A=>`${this.encode(A)}=${this.encode(b[A])}`).join("&");return`POST&%2F&${this.encode(h)}`})(Object.assign({},c,r)),p=e.SHA1.b64_hmac(`${n}&`,m),f=new URLSearchParams(Object.assign({},c,{Signature:p})).toString(),d=await se({retry:1,url:`https://${u}.aliyuncs.com?${f}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(r).toString()});if(d instanceof Error)throw d;if(d.Code!=="200")throw new Error(d.Message);return d}};g();g();var j6=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],Xe={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},d0=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},m0=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let a=d0(t);if(a)return Array.isArray(n)?`${a}=${n.map(d0).sort().join(`&${a}=`)}`:`${a}=${d0(n)}`}).filter(t=>t).join("&"),ur=class{request;serviceName;bodySha256;constructor(t,n,a){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,a=a||{},this.bodySha256=a.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(a=>{let r=t[a];return typeof r<"u"&&r!==null}).sort().map(a=>{n[a]=t[a]}),n}async addAuthorization(t,n){let a=this.getDateTime(n);await this.addHeaders(t,a),this.request.headers.Authorization=await this.authorization(t,a)}async authorization(t,n){let a=[],r=this.credentialString(n);return a.push(`${Xe.algorithm} Credential=${t.accessKeyId}/${r}`),a.push(`SignedHeaders=${this.signedHeaders()}`),a.push(`Signature=${await this.signature(t,n)}`),a.join(", ")}async getSignUrl(t,n){let a=this.getDateTime(n),r={...this.request.params},u=this.request.params,o=this.request.headers;t.sessionToken&&(r[Xe.tokenHeader]=t.sessionToken),r[Xe.dateHeader]=a,r[Xe.notSignBody]="",r[Xe.credential]=`${t.accessKeyId}/${this.credentialString(a)}`,r[Xe.algorithmKey]=Xe.algorithm,r[Xe.signHeadersKey]="",r[Xe.signQueriesKey]=void 0,r[Xe.signatureKey]=void 0,r=this.sortParams(r),this.request.params=r,this.request.headers={};let i=await this.signature(t,a);return this.request.params=u,this.request.headers=o,r[Xe.signQueriesKey]=Object.keys(r).sort().join(";"),r[Xe.signatureKey]=i,m0(r)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[Xe.dateHeader]=n,t.sessionToken&&(this.request.headers[Xe.tokenHeader]=t.sessionToken),this.request.body){let a=this.request.body;this.request.headers[Xe.contentSha256Header]=await fn(a)}}async signature(t,n){let a=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return io(await Xn(await this.stringToSign(n),a))}async stringToSign(t){let n=[];n.push(Xe.algorithm),n.push(t),n.push(this.credentialString(t));let a=await this.canonicalString();return n.push(await this.hexEncodedHash(a)),n.join(` `)}async canonicalString(){let t=[],n=this.request.pathname||"/";t.push(this.request.method.toUpperCase()),t.push(n);let a=m0(this.request.params)||"";return t.push(a),t.push(`${this.canonicalHeaders()} `),t.push(this.signedHeaders()),t.push(await this.hexEncodedBodyHash()),t.join(` `)}canonicalHeaders(){let t=[];Object.keys(this.request.headers).forEach(a=>{t.push([a,this.request.headers[a]])}),t.sort((a,r)=>a[0].toLowerCase(){let r=a[0].toLowerCase();if(this.isSignableHeader(r)){let u=a[1];if(typeof u>"u"||u===null||typeof u.toString!="function")throw new Error(`Header ${r} contains invalid value`);n.push(`${r}:${this.canonicalHeaderValues(u.toString())}`)}}),n.join(` -`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await fn(t)}async hexEncodedBodyHash(){return this.request.headers[Xe.contentSha256Header]?this.request.headers[Xe.contentSha256Header]:this.request.body?await this.hexEncodedHash(m0(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return j6.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,a,r){let u=await Xn(n,`${Xe.kDatePrefix}${t.secretKey}`),o=await Xn(a,u),i=await Xn(r,o);return Xn(Xe.v4Identifier,i)}createScope(t,n,a){return[t.substr(0,8),n,a,Xe.v4Identifier].join("/")}};var ig=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],g0=new Map(ig),U6=new Map(ig.map(([e,t])=>[t,e])),p0=class extends be{static langMap=g0;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,a){if(super(t,n,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new Error("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let a={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},r=new ur(a,"translate");await r.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let u=new URLSearchParams(a.params),o=await se({retry:2,url:"https://open.volcengineapi.com"+a.pathname+"?"+u.toString(),headers:r.request.headers,method:a.method,body:a.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let i=o.ResponseMetadata.Error;throw new ut(i.Code,i.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let i=o.ResponseMetaData.Error;throw new ut(i.Code,i.Message)}else throw new Error("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:a,to:r}=t,u=g0.get(a),o={TargetLanguage:g0.get(r)||r,TextList:n};u?o.SourceLanguage=u:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` -`).slice(0,1e3));let i={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},l=new ur(i,"translate");await l.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let c=new URLSearchParams(i.params),s=await se({retry:2,url:"https://open.volcengineapi.com"+i.pathname+"?"+c.toString(),headers:l.request.headers,method:i.method,body:i.body});if(s.TranslationList){let g=s.TranslationList.map(f=>f.Translation),p=a;return s.TranslationList.length>0&&s.TranslationList[0].DetectedSourceLanguage&&(p=U6.get(s.TranslationList[0].DetectedSourceLanguage)||a),{text:g,from:p,to:r}}else if(s.ResponseMetadata&&s.ResponseMetadata.Error){let g=s.ResponseMetadata.Error;throw new ut(g.Code,g.Message)}else if(s.ResponseMetaData&&s.ResponseMetaData.Error){let g=s.ResponseMetaData.Error;throw new ut(g.Code,g.Message)}else throw new Error("response: "+JSON.stringify(s))}},sg=p0;m();var lg=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],f0=new Map(lg),z6=new Map(lg.map(([e,t])=>[t,e])),uu=class extends be{static langMap=f0;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:a,to:r}=t,u=f0.get(a)||"detect",o=f0.get(r)||r,l=await se({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:u,target_language:o,text:n})});if(l.base_resp&&l.base_resp.status_code===0){let c=l.translation,s=a;return l.detected_language&&(s=z6.get(l.detected_language)||a),{text:c,from:s,to:r}}else{let c=l.base_resp;throw new ut(c.status_code.toString(),c.status_message)}}};m();var H6=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],h0=new Map(H6),ou=class extends be{static langMap=h0;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,a){if(super(t,n,a),!t||!t.url)throw new Error("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(r=>r.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:a,to:r}=t,u=this.getRandomKey(),i=await se({retry:2,url:u,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({source_lang:h0.get(a)||a,target_lang:h0.get(r)||r,text:n})});if(i.code===200)return{text:i.data,from:a,to:r};throw new Error(i.message||i.message||"API Error")}};m();m();var b0="https://{s}bing.com",pg=b0+"/translator",q6=b0+"/ttranslatev3",W6=b0+"/tspellcheckv3",Bo="bingGlobalConfig",fg=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],cg=new Map(fg),dg=new Map(fg.map(([e,t])=>[t,e])),mg=1e3,yn,or;function y0(e,t){return e.replace("{s}",t?t+".":"")}async function $6(){if(!yn){let n=await ee.storage.local.get(Bo);return n&&(yn=n[Bo]),!0}let{tokenTs:e,tokenExpiryInterval:t}=yn;return Date.now()-e>t}async function gg(){let e,t,n,a,r,u,o,i,l,c;try{let s=y0(pg,e),g=await se({retry:2,url:s,responseType:"raw"}),{body:p,headers:f,url:d}=g;e=d.match(/^https?:\/\/(\w+)\.bing\.com/)[1],c=f["set-cookie"],t=p.match(/IG:"([^"]+)"/)[1],n=p.match(/data-iid="([^"]+)"/)[1],[r,a,u,o,i,l]=JSON.parse(p.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(s){throw s}return yn={subdomain:e,IG:t,IID:n,key:r,token:a,tokenTs:r,tokenExpiryInterval:u,isVertical:o,frontDoorBotClassification:i,isSignedInOrCorporateUser:l,cookie:c,count:0},await ee.storage.local.set({[Bo]:yn}),yn}function K6(e){let{IG:t,IID:n,subdomain:a,isVertical:r}=yn;return y0(e?W6:q6,a)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+yn.count++:"")}function G6(e,t,n,a){let{token:r,key:u}=yn,o={fromLang:n,text:t,token:r,key:u};return!e&&a&&(o.to=a),o}async function hg(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>mg)throw new Error(`The supported maximum length of text is ${mg}. Please shorten the text.`);or||(or=gg()),await or,await $6()&&(or=gg(),await or),t=t||"auto",n=n||"zh-CN",t=cg.get(t)||t,n=cg.get(n)||n;let r=K6(!1),u=G6(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:y0(pg,yn.subdomain),"content-type":"application/x-www-form-urlencoded"},i=new URLSearchParams(u),l=r,c=i.toString(),s=await se({retry:2,url:l,headers:o,method:"POST",body:c});if(s.ShowCaptcha||s.StatusCode===401||s.statusCode){if(yn=null,or=null,await ee.storage.local.remove(Bo),s.ShowCaptcha)throw new Error(` +`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await fn(t)}async hexEncodedBodyHash(){return this.request.headers[Xe.contentSha256Header]?this.request.headers[Xe.contentSha256Header]:this.request.body?await this.hexEncodedHash(m0(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return j6.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,a,r){let u=await Xn(n,`${Xe.kDatePrefix}${t.secretKey}`),o=await Xn(a,u),i=await Xn(r,o);return Xn(Xe.v4Identifier,i)}createScope(t,n,a){return[t.substr(0,8),n,a,Xe.v4Identifier].join("/")}};var sg=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],g0=new Map(sg),U6=new Map(sg.map(([e,t])=>[t,e])),p0=class extends be{static langMap=g0;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,a){if(super(t,n,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new Error("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let a={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},r=new ur(a,"translate");await r.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let u=new URLSearchParams(a.params),o=await se({retry:2,url:"https://open.volcengineapi.com"+a.pathname+"?"+u.toString(),headers:r.request.headers,method:a.method,body:a.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let i=o.ResponseMetadata.Error;throw new ut(i.Code,i.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let i=o.ResponseMetaData.Error;throw new ut(i.Code,i.Message)}else throw new Error("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:a,to:r}=t,u=g0.get(a),o={TargetLanguage:g0.get(r)||r,TextList:n};u?o.SourceLanguage=u:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` +`).slice(0,1e3));let i={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},l=new ur(i,"translate");await l.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let c=new URLSearchParams(i.params),s=await se({retry:2,url:"https://open.volcengineapi.com"+i.pathname+"?"+c.toString(),headers:l.request.headers,method:i.method,body:i.body});if(s.TranslationList){let m=s.TranslationList.map(f=>f.Translation),p=a;return s.TranslationList.length>0&&s.TranslationList[0].DetectedSourceLanguage&&(p=U6.get(s.TranslationList[0].DetectedSourceLanguage)||a),{text:m,from:p,to:r}}else if(s.ResponseMetadata&&s.ResponseMetadata.Error){let m=s.ResponseMetadata.Error;throw new ut(m.Code,m.Message)}else if(s.ResponseMetaData&&s.ResponseMetaData.Error){let m=s.ResponseMetaData.Error;throw new ut(m.Code,m.Message)}else throw new Error("response: "+JSON.stringify(s))}},lg=p0;g();var cg=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],f0=new Map(cg),z6=new Map(cg.map(([e,t])=>[t,e])),ru=class extends be{static langMap=f0;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:a,to:r}=t,u=f0.get(a)||"detect",o=f0.get(r)||r,l=await se({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:u,target_language:o,text:n})});if(l.base_resp&&l.base_resp.status_code===0){let c=l.translation,s=a;return l.detected_language&&(s=z6.get(l.detected_language)||a),{text:c,from:s,to:r}}else{let c=l.base_resp;throw new ut(c.status_code.toString(),c.status_message)}}};g();var H6=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],h0=new Map(H6),uu=class extends be{static langMap=h0;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,a){if(super(t,n,a),!t||!t.url)throw new Error("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(r=>r.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:a,to:r}=t,u=this.getRandomKey(),i=await se({retry:2,url:u,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({source_lang:h0.get(a)||a,target_lang:h0.get(r)||r,text:n})});if(i.code===200)return{text:i.data,from:a,to:r};throw new Error(i.message||i.message||"API Error")}};g();g();var b0="https://{s}bing.com",fg=b0+"/translator",q6=b0+"/ttranslatev3",W6=b0+"/tspellcheckv3",Bo="bingGlobalConfig",hg=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],dg=new Map(hg),mg=new Map(hg.map(([e,t])=>[t,e])),gg=1e3,yn,or;function y0(e,t){return e.replace("{s}",t?t+".":"")}async function $6(){if(!yn){let n=await ee.storage.local.get(Bo);return n&&(yn=n[Bo]),!0}let{tokenTs:e,tokenExpiryInterval:t}=yn;return Date.now()-e>t}async function pg(){let e,t,n,a,r,u,o,i,l,c;try{let s=y0(fg,e),m=await se({retry:2,url:s,responseType:"raw"}),{body:p,headers:f,url:d}=m;e=d.match(/^https?:\/\/(\w+)\.bing\.com/)[1],c=f["set-cookie"],t=p.match(/IG:"([^"]+)"/)[1],n=p.match(/data-iid="([^"]+)"/)[1],[r,a,u,o,i,l]=JSON.parse(p.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(s){throw s}return yn={subdomain:e,IG:t,IID:n,key:r,token:a,tokenTs:r,tokenExpiryInterval:u,isVertical:o,frontDoorBotClassification:i,isSignedInOrCorporateUser:l,cookie:c,count:0},await ee.storage.local.set({[Bo]:yn}),yn}function K6(e){let{IG:t,IID:n,subdomain:a,isVertical:r}=yn;return y0(e?W6:q6,a)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+yn.count++:"")}function G6(e,t,n,a){let{token:r,key:u}=yn,o={fromLang:n,text:t,token:r,key:u};return!e&&a&&(o.to=a),o}async function bg(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>gg)throw new Error(`The supported maximum length of text is ${gg}. Please shorten the text.`);or||(or=pg()),await or,await $6()&&(or=pg(),await or),t=t||"auto",n=n||"zh-CN",t=dg.get(t)||t,n=dg.get(n)||n;let r=K6(!1),u=G6(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:y0(fg,yn.subdomain),"content-type":"application/x-www-form-urlencoded"},i=new URLSearchParams(u),l=r,c=i.toString(),s=await se({retry:2,url:l,headers:o,method:"POST",body:c});if(s.ShowCaptcha||s.StatusCode===401||s.statusCode){if(yn=null,or=null,await ee.storage.local.remove(Bo),s.ShowCaptcha)throw new Error(` Sorry that bing translator seems to be asking for the captcha, Please take care not to request too frequently. The response code is ${s.StatusCode}. `);if(s.StatusCode===401)throw new Error(` Max count of translation exceeded. Please try it again later. The response code is 401. - `);if(s.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(s)}.`)}let g=s[0].translations[0],p=s[0].detectedLanguage;return{text:g.text,from:dg.get(p.language),to:dg.get(g.to)}}m();var Ro=new Map;async function x0(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=aa(e.body)),Ro.has(t))return Ro.get(t);let n=se(e);Ro.set(t,n);try{return await n}catch(a){throw a}finally{setTimeout(()=>{Ro.delete(t)},3e4)}}async function bg(e){return x0(e)}async function yg(e){if(tt()){let n=Po();if(n)try{return await n.ask("throttleRequest",e)}catch(a){throw H.error("can not comunicate with root frame, use strict limiter",a),a}else return x0(e)}else return x0(e)}m();function xg(e){let t=e.split(".");if(t.length<=1)throw new Error("invlaid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let a=n.replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(globalThis.atob(a).split("").map(function(i){return"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)}).join("")),u=JSON.parse(r),o=new Date(u.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}var wa=null,V6=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],E0=new Map(V6),iu=class extends be{static langMap=E0;isSupportList=!0;maxTextLength=1800;static async clearState(){wa=null,await Or(ju)}async translate(t){let{text:n,from:a,to:r}=t;return n?await hg(n,a,r):{...t}}async init(){if(!wa){wa={};let t=await Br(ju);t&&(wa=t)}await Eg(wa)}async translateList(t){let{from:n,to:a,text:r}=t,u=E0.get(n)||"auto",o=E0.get(a)||a;u==="auto"&&(u="");let i=await Eg(wa),l=[];for(let p of r)l.push({Text:p});let c=JSON.stringify(l),s=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${u}&to=${o}&api-version=3.0&includeSentenceLength=true`,g=await se({url:s,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+i.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin"},body:c,method:"POST"});if(g&&g.length>0&&g[0].translations&&g[0].translations.length>0)return{text:g.map(p=>p.translations[0]?.text||""),from:n,to:a};throw new Error("Microsoft translate error "+JSON.stringify(g))}};async function Eg(e){if(e&&e.accessToken&&e.accessTokenExpiresAt){let t=Date.now(),a=new Date(e.accessTokenExpiresAt).getTime();if(a-t>30*1e3)return e;if(a-t>3e3)return Tg().catch(r=>{H.error(r)}),e}return Tg()}async function Tg(){let e=await yg({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET"}),t=xg(e),n=t.accessTokenExpiresAt,r=new Date(n).getTime()-Date.now();return wa=t,await Rr(ju,t,r-1e3),{accessToken:e,accessTokenExpiresAt:t.accessTokenExpiresAt}}m();var Cg=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],T0=new Map(Cg),Y6=new Map(Cg.map(([e,t])=>[t,e])),C0=class extends be{static langMap=T0;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";appid="";key="";isSupportList=!1;maxTextGroupLength=20;constructor(t,n,a){if(super(t,n,a),!t||!t.appid||!t.key)throw new Error("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim()}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:a}=this,{appid:r,key:u}=this,{text:o,from:i,to:l}=t,c=new URLSearchParams({from:T0.get(i)||"auto",to:T0.get(l)||l,q:o,salt:n,appid:r,sign:aa(r+o+n+u)}),s=new URL(a);s.search=c.toString();let g=await se({url:s.toString()});if(g.error_code)throw new ut("API_SERVER_ERROR",g.error_msg);let{trans_result:p,from:f}=g,d=p.map(({dst:C})=>C);return{from:Y6.get(f)||f,to:l,text:d.join(` -`)}}},wg=C0;m();m();var va=class extends be{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,a){super(t,n,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let u=await this.checkLang(a,n);if(!u)return{text:n,from:a,to:r};a=u;let o=this.handleRequest(n,a,r),i=await yo(o);return{text:this.handleResponseText(i),from:a,to:r}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let u=await this.checkLang(a,n.join(" "));if(!u)return{text:n,from:a,to:r};a=u;let o=this.handleRequest(n,a,r),i=await yo(o);return{text:this.handleResponseText(i),from:a,to:r}}handleBaseApiServiceConfig(t){let n=t.request.url,a=t.request.headers||{};return a["content-type"]||(a["content-type"]="application/json"),{url:n,retry:t.request.retry||2,method:t.request.method||"POST",headers:a,body:JSON.stringify(t.request.body)}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,a){let r={...this.requestBaseConfig},u=r?.body||"",o=this.apiServiceConfig.keywords||{};r.body=l(u);let i=r.headers||{};return Object.keys(i).forEach(c=>{i[c]=l(i[c])}),r.headers=i,r.url=l(r.url||""),r;function l(c){return c.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",a).replaceAll(/{([a-z:_]+)}/gi,(g,p)=>{let[f,d]=p.split(":"),b=o[f];return d==="random"?J6(b.split(",")):b})}}handleResponseText(t){let n=this.apiServiceConfig.response,a=t,r=n.text.split(".");for(let u of r){if(Array.isArray(a))return a=a.map(o=>o[u]),a;a=a[u]}return a}detectLanguageRemotely(t){return Ca.detectLanguageRemotelyByTransmart(t)}};function J6(e){let t=Math.floor(Math.random()*e.length);return e[t]}var w0=class extends va{constructor(t,n,a){if(!t?.token)throw new Error("token are required");super({...t,isSupportList:!0,langs:[["zh-CN","zh"],["en","en"],["ja","ja"]],keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,a)}},vg=w0;m();var Q6=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],Oo=new Map(Q6),v0=class extends be{static langMap=Oo;token="ssdj273ksdiwi923bsd9";constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t;if(!Oo.get(r))throw new Error(`Unsupported language: ${r}`);if(a==="auto")throw new Error("Unsupported language: auto");let o=n;return{text:(await se({retry:2,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${Oo.get(a)||"auto"}2${Oo.get(r)}`})})).target,from:a,to:r}}},Ag=v0;m();var kg=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],A0=new Map(kg),Z6=new Map(kg.map(([e,t])=>[t,e]));function X6(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var k0=class extends be{static langMap=A0;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,a){if(super(t,n,a),!t||!t.appId||!t.appSecret)throw new Error("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,u=e9(32),o=Math.round(new Date().getTime()/1e3),i=this.appId+X6(n)+u+o+this.appSecret,l=await fn(i),c={q:n,appKey:this.appId,salt:u.toString(),from:A0.get(a)||"auto",to:A0.get(r)||r,sign:l,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(c.domain=this.domain),this.vocabId&&(c.vocabId=this.vocabId);let s=new URLSearchParams(c),p=await se({url:"https://openapi.youdao.com/api",method:"POST",body:s.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"}});if(!p.translation)throw new Error(JSON.stringify(p));let f=p.l,[d,b]=f.split("2");return{text:p.translation.join(` -`),from:Z6.get(d),to:r}}};function e9(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r[t,e]));var D0=class extends be{static langMap=S0;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,u={q:n,from:S0.get(a)||"auto",to:S0.get(r)||r},o=new URLSearchParams(u),i=await se({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"}});if(i&&i.translation)return{text:i.translation.join(` -`),from:a,to:r};throw new Error("Youdao translation failed: "+JSON.stringify(i))}},Lg=D0;m();var su=class extends va{constructor(t,n,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(r=>[r,r]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||ba,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,a)}};var t9={mock:rr,mock2:rr,custom:su,google:Ta,transmart:Ca,deepl:Zm,volc:sg,volcAlpha:uu,bing:iu,tencent:Qr,tenAlpha:Zr,baidu:wg,caiyun:vg,cai:Ag,openl:Mo,youdao:Sg,you:Lg,d:ar,dpro:ar,deeplx:ou,niu:Xm,azure:eg,openai:ng,chatgpt:nu,papago:tg,aliyun:ru},ia={};Object.keys(Bn).forEach(e=>{ia[e]={...Bn[e],class:t9[e]}});function Pg(e,t){let n=Jt;if(ia[e]&&ia[e].class&&ia[e].class.langMap&&ia[e].class.langMap.size>0){let a=ia[e].class.langMap,r=n.filter(u=>a.get(u));return r.includes(t)||r.unshift("placeholder"),r}else return Jt}async function Aa(e,t){if(!e.text)return e;let n=await sa({sentences:[e]},t);if(n.sentences.length>0)return{...e,...n.sentences[0]};throw new ut("translateFailed","translate failed")}async function Mg(e,t){for(let n of e)try{return await Aa({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n}),n}catch{continue}return null}async function L0(e){let{config:t,translationService:n}=e,a=t.translationGeneralConfig,r=t.translationServices,u=n,o=r[u]||{},i=en(e.user),l=new ia[u].class(o,a,{translationService:u,userToken:e.user?.token,isPro:i}),c=l.getDefaultRateLimit();c&&(o&&!o.limit&&(o.limit=c.limit),o&&!o.interval&&(o.interval=c.interval)),u==="deepl"&&o&&o.provider==="pro"&&(o.limitForImmersiveDeepl?o.limit=o.limitForImmersiveDeepl:c&&(o.limit=c.limit)),await Im(u,o),await l.init()}async function sa(e,t,n){if(!e.sentences.length)return{...e};let{config:a,translationService:r,state:u}=t,o=a.translationGeneralConfig,i=a.translationServices,l=r,c=i[l]||{};l==="openai"&&(e.sentences=e.sentences.map(A=>({...A,from:"auto"})));let s=[],g={sentences:Array(e.sentences.length)},p=e.sentences.length,f=-1;if(u.cache)for(let A of e.sentences){f++;let S=l;l==="openl"&&(S=l+"-"+c.codename||Mo.DEFAULT_CODENAME);let U=null;try{U=await Ju(Fg({originalText:A.text,from:A.from,to:A.to,service:S}),200)}catch(O){H.warn("query cache DB error, but it's ok",O)}if(U){let O={...A,text:U.translatedText};g.sentences[f]=O,n&&n(null,O,A)}else s.push(A)}else s.push(...e.sentences);let d=s.length;if(p-d>0&&H.debug(`use ${p-d} sentences from cache`),!s.length)return g;let b,C=en(t.user);try{b=new ia[l].class(c,o,{translationService:l,userToken:t.user?.token,isPro:C}),await b.init()}catch(A){if(n)for(let S of s)n(A,null,S);throw A}let h=await b.multipleTranslate({sentences:s},c,(A,S,U)=>{if(n&&n(A,S,U),!A&&S&&!l.startsWith("mock")&&u.cache){let O=l;l==="openl"&&(O=l+"-"+c.codename||Mo.DEFAULT_CODENAME),u.cache&&Ju(_g({translatedText:S.text,from:U.from,to:U.to,detectedFrom:S.from,key:aa(U.text),service:O}),3e3).catch(y=>{H.warn("set cache DB error",y)})}});for(let A of h.sentences){let S=g.sentences.findIndex(U=>!U);if(S===-1)throw new ut("translateFailed","can not match the result");g.sentences[S]=A}return g}m();m();var n9=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function xn(e,t){if(t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function P0(e,t,n){let{blockSelectors:a,extraBlockSelectors:r,extraInlineSelectors:u}=t;if(xn(e,u))return!1;if(xn(e,r)||e.nodeName.toLowerCase()==="br")return!0;let l=null;return e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(l=e.parentNode.immersiveTranslateComputedStyle),l&&l.display&&l.display==="inline-flex"?!1:n&&n.display?!!n9.includes(n.display):xn(e,a)}var Lt=xn;function ka(e){return!!e.shadowRoot}function la(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function lu(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Io(e){let t=ba;return e&&(t=e),t}function No(e,t){return ra(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function a9(e){let{rule:t}=e,n=e.config.loadingTheme;return` <${t.targetWrapperTag} class="${Q}-loading-${n} notranslate">`}function cu(e,t){let n=e.rule,a=document.createElement(n.targetWrapperTag);a.classList.add("notranslate",Wt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),nt(a,C4,t.toString());let r=a9(e);return a.append(Re.sanitize(r,{RETURN_DOM_FRAGMENT:!0})),a}function ir(e,t){return e.querySelector(`[${Xi}='${t}']`)}function Bg(){document.querySelectorAll(`[${Xi}]`).forEach(t=>{t.remove()})}function Rg(){document.querySelectorAll(`.${Wt}-error`).forEach(t=>{t.remove()})}function Og(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{Xa(n)&&t.push(n)}),t}function Ig(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:a,delimiters:r,text:u}=e,o=new RegExp(`${r[0]}(\\d+)${r[1]}`,"gi");if(r.length>2){let l=r[2];o=new RegExp(`<${l}(\\d+)>(.*?)`,"gi")}let i=u.trim();return i=i.replace(o,""),i=i.trim(),i===""||i.length===1&&i.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(u)||i.includes("")||i.includes("< styles>")||jd(i)||Rd(i)||Nd(i)||Od(i)||Id(i)||o.test(i)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(i)?!1:mo(u,n,a)}function En(e){return e.nodeType===Node.ELEMENT_NODE}function Ng(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}function jg(e){try{let t=Math.floor((new Date-new Date(e))/1e3);return t<60?`${t} \u79D2\u524D`:t<3600?`${Math.floor(t/60)} \u5206\u949F\u524D`:t<86400?`${Math.floor(t/3600)} \u5C0F\u65F6\u524D`:`${Math.floor(t/86400)} \u5929\u524D`}catch{return e}}async function Ug(e){let n=Be().INSTALL_FROM,a=tn(),r=await Dt("installedAt",""),u=await Dt("fakeUserId","");return{installFrom:n,version:a,installedAt:r,interfaceLang:e,deviceId:u}}var r9=1e5;function ca(e){let{onParagraph:t,filterRule:n,id:a}=e;n=u9(n);let{stayOriginalSelectors:r,globalStyles:u,selectors:o,isTransformPreTagNewLine:i,lineBreakMaxTextCount:l,globalAttributes:c,isModifyImage:s,skipEditableCheck:g}=n,p={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},f=!1,d=null;function b(O){let{container:y,onFrame:T,onIgnoreElement:k,id:v}=O,E=document.createTreeWalker(y,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,w=>{let B=F(w);return B==NodeFilter.FILTER_ACCEPT?Ut.mark(w,v,g):B==NodeFilter.FILTER_REJECT,B}),R=y;if(F(R)===NodeFilter.FILTER_REJECT)return;for(Ut.mark(R,v,g);R;){if(o&&o.length>0){let{currentNode:w,isMatchedSelection:B}=C(E,R,o);if(w)R=w;else break;if(!B)continue}if(R.nodeType===Node.ELEMENT_NODE||R.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let w=R;if(w.nodeName==="IFRAME"){T&&T(w),h(),M0(p,!0),R=E.nextNode();continue}w.nodeType===Node.ELEMENT_NODE&&(u&&_0(w,u),c&&R0(w,c));let B=P0(w,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},w.immersiveTranslateComputedStyle||null);if(Lt(w,r)&&!B){A(w);let P=null;for(;!(P=E.nextSibling())&&E.parentNode(););R=P;continue}let I=ka(w);(!zg(p,w)||B)&&(h(),w.childNodes.length>0&&S(p,w,w.immersiveTranslateComputedStyle||null)),I&&w.shadowRoot?.mode==="open"&&(B?T?.(w.shadowRoot):b({...O,container:w.shadowRoot})),w.nodeType===Node.ELEMENT_NODE&&w.nodeName==="PRE"&&i&&l9(w)}else if(R.nodeType===Node.TEXT_NODE)A(R);else throw new Error("should not be here");R=E.nextNode(),p.commonAncestorContainer&&R&&R.parentNode===p.commonAncestorContainer&&(p._currentStacks=[]),p.commonAncestorContainer&&R&&R.nodeType===Node.ELEMENT_NODE&&p._currentStacks.push(R)}function F(w){if(w.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(En(w)){if(c){let P=Object.keys(c);if(P.length>0&&Lt(w,P))for(let D of P){let M=c[D];if(w.matches(D)){let q=c[D],j=Object.keys(q);for(let $ of j){let z=q[$];w.getAttribute($)!==z&&(z===null?w.removeAttribute($):w.setAttribute($,z))}break}}}if(!O.force&&Ut.isMarked(w,v)||Ng(w,v)||O0(w,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,stayOriginalSelectors:r})||w.nodeName==="IFRAME"&&!Xa(w))return NodeFilter.FILTER_REJECT;let B=w.getBoundingClientRect(),{width:I,height:N}=B;if(w.nodeType===Node.ELEMENT_NODE){let P=window.getComputedStyle(w);if(w.immersiveTranslateComputedStyle={display:P.display,whiteSpace:P.whiteSpace,left:B.left+"px",right:B.right+"px",top:B.top+"px",bottom:B.bottom+"px"},B0(w.immersiveTranslateComputedStyle))return k&&k(w),NodeFilter.FILTER_REJECT;let x=P0(w,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},w.immersiveTranslateComputedStyle||null);if(Lt(w,r)&&x)return NodeFilter.FILTER_REJECT}return w.nodeName==="IMG"&&(I>48&&N>48?w.immersiveTranslateComputedStyle={display:"block"}:I>0&&N>0&&s!==!1&&(w.setAttribute("width",I),w.setAttribute("height",N))),!w.childNodes||w.childNodes&&w.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!p.isPreWhitespace&&(I>0&&I<4||N>0&&N<4)&&(w.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(w.nodeType===Node.TEXT_NODE){let B=w.textContent?.trim();if(!B)return p.isPreWhitespace?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let I=w.parentNode;if(I.getBoundingClientRect){let{width:N,height:P}=I.getBoundingClientRect();if(N>0&&N<4||P>0&&P<4)return NodeFilter.FILTER_REJECT}return l>0&&B.length>=l&&F0(w,l),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}b(e),p&&p.commonAncestorContainer&&p.flatNodes.length>0&&h();function C(O,y,T){let k=y.immersiveTranslateComputedStyle||null;if(d){if(!d.contains(y))if(f=!1,y&&y.nodeType===Node.ELEMENT_NODE)if(jo(y,T))f=!0,d=y,h(),S(p,d,k);else return f=!1,y=O.nextNode(),{currentNode:y,isMatchedSelection:f};else return f=!1,y=O.nextNode(),{currentNode:y,isMatchedSelection:f}}else if(y&&y.nodeType===Node.ELEMENT_NODE)if(jo(y,T))f=!0,d=y,h(),S(p,d,k);else return f=!1,y=O.nextNode(),{currentNode:y,isMatchedSelection:f};else return f=!1,y=O.nextNode(),{currentNode:y,isMatchedSelection:f};return{currentNode:y,isMatchedSelection:!0}}function h(){let O=s9(p,a);O&&t&&t(O),M0(p)}function A(O){if(!zg(p,O)){h(),M0(p);let y=O.parentNode;y&&S(p,y,y.computedStyle)}p.flatNodes.push(O)}function S(O,y,T){O.commonAncestorContainer=y;let k=U(T);O.isPreWhitespace=k}function U(O){return O&&O.whiteSpace&&O.whiteSpace.startsWith("pre")||O&&O.whiteSpace==="break-spaces"||!1}}function zg(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=ka(t));let a=i9(e),r=!0;return!n&&!a&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?r=!0:e.commonAncestorContainer&&(r=!1,e._currentStacks=[])),r}function u9(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let a=n!=="iframe";return t?a&&n!=="pre":a}),e}function o9(e,t,n){if(t){for(let a of t.childNodes)if(a.contains(n))return a}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function _0(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Lt(e,n))for(let r of n){let u=t[r];if(e.matches(r)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+u;break}}}}function i9(e){return e&&e._currentStacks?e._currentStacks.some(t=>ka(t)):!1}function s9(e,t){let{flatNodes:n,commonAncestorContainer:a}=e;if(a&&n.length>0){if(!n.map(p=>p.textContent?.trim()||"").join(""))return null;if(n.length===1)return{ctxId:t,stepState:1,commonAncestorContainer:n[0].parentNode,rootNodes:[n[0]],flatNodes:n,isPreWhitespace:e.isPreWhitespace,variables:{}};let u=c9(n,a);u||(u=a);let o=[];for(let p of n){let f=o9(e,u,p);f&&(o.includes(f)||o.push(f))}if(o.length<1)return null;let i=o[0],l=o[o.length-1],c=[],s=i,g=0;for(;s&&(c.push(s),s!==l);){if(g++,g>r9){H.warn("loop too many times for convert root nodes, break");break}s=s.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:n,commonAncestorContainer:u,variables:{},isPreWhitespace:e.isPreWhitespace}}else return null}function M0(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function B0(e){let t=e.top?parseInt(e.top):0,n=e.left?parseInt(e.left):0,a=e.right?parseInt(e.right):0,r=e.bottom?parseInt(e.bottom):0;return isNaN(t)&&(t=0),isNaN(n)&&(n=0),isNaN(a)&&(a=0),isNaN(r)&&(r=0),e.display==="none"||t<-1e3||n<-1e3||a<-1e3||r<-1e3}var Ut={_marked_key:"immersive_translate_walked",isMarked(e,t){return Bs(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||ka(e)))return po(e,this._marked_key)},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||ka(e)))return nt(e,this._marked_key,t,!1,n)},markWalk(e,t,n){if(!e||e.nodeType!==Node.ELEMENT_NODE||this.isSkipMarkEle(e))return;let a=Qa(e,"markWalk")||"";return nt(e,"markWalk",a+","+t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||ka(e)):!1}};function l9(e){let n=e.innerHTML.replace(/\n\n/g,"
");e.innerHTML=Re.sanitize(n)}function c9(e,t){if(!e.length)return null;let n=e.map(a=>{let r=new Set;for(;(a=a.parentNode)&&(r.add(a),a!==t););return r});for(let a of n[0])if((a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&n.every(r=>r.has(a)))return a;return null}function F0(e,t){let n=e.textContent||"";if(n.trim().length<=t)return;let u=[". ","? ","! ","\u3002","\uFF1F","\uFF01"].reduce((o,i)=>{let l=n.lastIndexOf(i,t);return l>o?l:o},-1);if(u>1){let o=n[u-1]||"",i=n[u-2]||"",l=n[u+1]||"";o==="."||l==="."||l===")"||i==="."&&o==="S"||i.toUpperCase()==="M"&&(o.toUpperCase()==="R"||o.toUpperCase()==="S")?u=-1:isNaN(Number(o))||(u=-1)}if(u===-1)n.length>t+20&&F0(e,t+20);else{let o=n.slice(u+1);u++,o.startsWith(" ")&&u++;let i=e.splitText(u),l=document.createElement("br");i.parentNode?.insertBefore(l,i),u+10)for(let a of n){let r=t[a],u=Object.keys(r),o=Md(e,[a]);for(let i of o)for(let l of u){let c=r[l];i.getAttribute(l)!==c&&(c===null?i.removeAttribute(l):i.setAttribute(l,c))}}}function qg(e,t,n,a,r,u){let o=Object.keys(t);if(o.length>0)for(let i of o){let l=t[i],c=Object.keys(l),s=e.querySelector(i);if(s)for(let g of c){let p=l[g];if(g==="translate"&&p==="no"){let d=s.innerText||s.textContent||"";if(!d.trim()||d9(s,r,u)||!_d(d,n,a))continue}s.getAttribute(g)!==p&&(p===null?s.removeAttribute(g):s.setAttribute(g,p))}}}function R0(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Lt(e,n))for(let r of n){let u=t[r];if(e.matches(r)){let o=t[r],i=Object.keys(o);for(let l of i){let c=o[l];e.getAttribute(l)!==c&&(c===null?e.removeAttribute(l):e.setAttribute(l,c))}break}}}}function O0(e,t){return Lt(e,t.excludeSelectors||[])?Lt(e,t.selectors||[])?!1:!Lt(e,t.stayOriginalSelectors||[]):!1}function jo(e,t){if(t.length===0)return!1;let n=t.filter(a=>!a.endsWith("*")).map(a=>a+" *");return Lt(e,t.concat(n))}function d9(e,t,n){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,r=>NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let r=a.currentNode;if(r.nodeType===Node.TEXT_NODE&&parent){let u=r.textContent||"";if(u.includes("Copyright"))continue;if(mo(u,t,n))return!0}}return!1}m();m();m();function Wg(e,t,n,a){let r=t,u=M4[r]||[],o="";e&&u&&u.length>0&&u.forEach(c=>{let{name:s}=c;if(e&&n&&n[s]){let g=n[s];if(["borderRadius"].includes(s)&&(g+="px"),o+=`--immersive-translate-theme-${r}-${s}: ${g}; -`,t==="marker"&&s==="backgroundColor"&&typeof g=="string"){let{r:p,g:f,b:d}=Ud(g);o+=`--immersive-translate-theme-${r}-${s}-rgb: ${p}, ${f}, ${d}; + `);if(s.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(s)}.`)}let m=s[0].translations[0],p=s[0].detectedLanguage;return{text:m.text,from:mg.get(p.language),to:mg.get(m.to)}}g();var Ro=new Map;async function x0(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=aa(e.body)),Ro.has(t))return Ro.get(t);let n=se(e);Ro.set(t,n);try{return await n}catch(a){throw a}finally{setTimeout(()=>{Ro.delete(t)},3e4)}}async function yg(e){return x0(e)}async function xg(e){if(tt()){let n=Lo();if(n)try{return await n.ask("throttleRequest",e)}catch(a){throw H.error("can not comunicate with root frame, use strict limiter",a),a}else return x0(e)}else return x0(e)}g();function Eg(e){let t=e.split(".");if(t.length<=1)throw new Error("invlaid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let a=n.replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(globalThis.atob(a).split("").map(function(i){return"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)}).join("")),u=JSON.parse(r),o=new Date(u.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}var va=null,V6=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],E0=new Map(V6),ou=class extends be{static langMap=E0;isSupportList=!0;maxTextLength=1800;static async clearState(){va=null,await Or(Nu)}async translate(t){let{text:n,from:a,to:r}=t;return n?await bg(n,a,r):{...t}}async init(){if(!va){va={};let t=await Br(Nu);t&&(va=t)}await Tg(va)}async translateList(t){let{from:n,to:a,text:r}=t,u=E0.get(n)||"auto",o=E0.get(a)||a;u==="auto"&&(u="");let i=await Tg(va),l=[];for(let p of r)l.push({Text:p});let c=JSON.stringify(l),s=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${u}&to=${o}&api-version=3.0&includeSentenceLength=true`,m=await se({url:s,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+i.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin"},body:c,method:"POST"});if(m&&m.length>0&&m[0].translations&&m[0].translations.length>0)return{text:m.map(p=>p.translations[0]?.text||""),from:n,to:a};throw new Error("Microsoft translate error "+JSON.stringify(m))}};async function Tg(e){if(e&&e.accessToken&&e.accessTokenExpiresAt){let t=Date.now(),a=new Date(e.accessTokenExpiresAt).getTime();if(a-t>30*1e3)return e;if(a-t>3e3)return Cg().catch(r=>{H.error(r)}),e}return Cg()}async function Cg(){let e=await xg({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET"}),t=Eg(e),n=t.accessTokenExpiresAt,r=new Date(n).getTime()-Date.now();return va=t,await Rr(Nu,t,r-1e3),{accessToken:e,accessTokenExpiresAt:t.accessTokenExpiresAt}}g();var wg=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],T0=new Map(wg),Y6=new Map(wg.map(([e,t])=>[t,e])),C0=class extends be{static langMap=T0;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";appid="";key="";isSupportList=!1;maxTextGroupLength=20;constructor(t,n,a){if(super(t,n,a),!t||!t.appid||!t.key)throw new Error("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim()}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:a}=this,{appid:r,key:u}=this,{text:o,from:i,to:l}=t,c=new URLSearchParams({from:T0.get(i)||"auto",to:T0.get(l)||l,q:o,salt:n,appid:r,sign:aa(r+o+n+u)}),s=new URL(a);s.search=c.toString();let m=await se({url:s.toString()});if(m.error_code)throw new ut("API_SERVER_ERROR",m.error_msg);let{trans_result:p,from:f}=m,d=p.map(({dst:C})=>C);return{from:Y6.get(f)||f,to:l,text:d.join(` +`)}}},vg=C0;g();g();var Aa=class extends be{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,a){super(t,n,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let u=await this.checkLang(a,n);if(!u)return{text:n,from:a,to:r};a=u;let o=this.handleRequest(n,a,r),i=await bo(o);return{text:this.handleResponseText(i),from:a,to:r}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let u=await this.checkLang(a,n.join(" "));if(!u)return{text:n,from:a,to:r};a=u;let o=this.handleRequest(n,a,r),i=await bo(o);return{text:this.handleResponseText(i),from:a,to:r}}handleBaseApiServiceConfig(t){let n=t.request.url,a=t.request.headers||{};return a["content-type"]||(a["content-type"]="application/json"),{url:n,retry:t.request.retry||2,method:t.request.method||"POST",headers:a,body:JSON.stringify(t.request.body)}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,a){let r={...this.requestBaseConfig},u=r?.body||"",o=this.apiServiceConfig.keywords||{};r.body=l(u);let i=r.headers||{};return Object.keys(i).forEach(c=>{i[c]=l(i[c])}),r.headers=i,r.url=l(r.url||""),r;function l(c){return c.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",a).replaceAll(/{([a-z:_]+)}/gi,(m,p)=>{let[f,d]=p.split(":"),b=o[f];return d==="random"?J6(b.split(",")):b})}}handleResponseText(t){let n=this.apiServiceConfig.response,a=t,r=n.text.split(".");for(let u of r){if(Array.isArray(a))return a=a.map(o=>o[u]),a;a=a[u]}return a}detectLanguageRemotely(t){return wa.detectLanguageRemotelyByTransmart(t)}};function J6(e){let t=Math.floor(Math.random()*e.length);return e[t]}var w0=class extends Aa{constructor(t,n,a){if(!t?.token)throw new Error("token are required");super({...t,isSupportList:!0,langs:[["zh-CN","zh"],["en","en"],["ja","ja"]],keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,a)}},Ag=w0;g();var Q6=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],Oo=new Map(Q6),v0=class extends be{static langMap=Oo;token="ssdj273ksdiwi923bsd9";constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t;if(!Oo.get(r))throw new Error(`Unsupported language: ${r}`);if(a==="auto")throw new Error("Unsupported language: auto");let o=n;return{text:(await se({retry:2,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${Oo.get(a)||"auto"}2${Oo.get(r)}`})})).target,from:a,to:r}}},kg=v0;g();var Sg=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],A0=new Map(Sg),Z6=new Map(Sg.map(([e,t])=>[t,e]));function X6(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var k0=class extends be{static langMap=A0;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,a){if(super(t,n,a),!t||!t.appId||!t.appSecret)throw new Error("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,u=e9(32),o=Math.round(new Date().getTime()/1e3),i=this.appId+X6(n)+u+o+this.appSecret,l=await fn(i),c={q:n,appKey:this.appId,salt:u.toString(),from:A0.get(a)||"auto",to:A0.get(r)||r,sign:l,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(c.domain=this.domain),this.vocabId&&(c.vocabId=this.vocabId);let s=new URLSearchParams(c),p=await se({url:"https://openapi.youdao.com/api",method:"POST",body:s.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"}});if(!p.translation)throw new Error(JSON.stringify(p));let f=p.l,[d,b]=f.split("2");return{text:p.translation.join(` +`),from:Z6.get(d),to:r}}};function e9(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r[t,e]));var D0=class extends be{static langMap=S0;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,u={q:n,from:S0.get(a)||"auto",to:S0.get(r)||r},o=new URLSearchParams(u),i=await se({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"}});if(i&&i.translation)return{text:i.translation.join(` +`),from:a,to:r};throw new Error("Youdao translation failed: "+JSON.stringify(i))}},Pg=D0;g();var iu=class extends Aa{constructor(t,n,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(r=>[r,r]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||ba,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,a)}};var t9={mock:rr,mock2:rr,custom:iu,google:Ca,transmart:wa,deepl:Xm,volc:lg,volcAlpha:ru,bing:ou,tencent:Qr,tenAlpha:Zr,baidu:vg,caiyun:Ag,cai:kg,openl:Po,youdao:Dg,you:Pg,d:ar,dpro:ar,deeplx:uu,niu:eg,azure:tg,openai:ag,chatgpt:tu,papago:ng,aliyun:au},ia={};Object.keys(Bn).forEach(e=>{ia[e]={...Bn[e],class:t9[e]}});function Mg(e,t){let n=Qt;if(ia[e]&&ia[e].class&&ia[e].class.langMap&&ia[e].class.langMap.size>0){let a=ia[e].class.langMap,r=n.filter(u=>a.get(u));return r.includes(t)||r.unshift("placeholder"),r}else return Qt}async function ka(e,t){if(!e.text)return e;let n=await sa({sentences:[e]},t);if(n.sentences.length>0)return{...e,...n.sentences[0]};throw new ut("translateFailed","translate failed")}async function Fg(e,t){for(let n of e)try{return await ka({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n}),n}catch{continue}return null}async function L0(e){let{config:t,translationService:n}=e,a=t.translationGeneralConfig,r=t.translationServices,u=n,o=r[u]||{},i=en(e.user),l=new ia[u].class(o,a,{translationService:u,userToken:e.user?.token,isPro:i}),c=l.getDefaultRateLimit();c&&(o&&!o.limit&&(o.limit=c.limit),o&&!o.interval&&(o.interval=c.interval)),u==="deepl"&&o&&o.provider==="pro"&&(o.limitForImmersiveDeepl?o.limit=o.limitForImmersiveDeepl:c&&(o.limit=c.limit)),await Nm(u,o),await l.init()}async function sa(e,t,n){if(!e.sentences.length)return{...e};let{config:a,translationService:r,state:u}=t,o=a.translationGeneralConfig,i=a.translationServices,l=r,c=i[l]||{};l==="openai"&&(e.sentences=e.sentences.map(A=>({...A,from:"auto"})));let s=[],m={sentences:Array(e.sentences.length)},p=e.sentences.length,f=-1;if(u.cache)for(let A of e.sentences){f++;let S=l;l==="openl"&&(S=l+"-"+c.codename||Po.DEFAULT_CODENAME);let U=null;try{U=await Yu(_g({originalText:A.text,from:A.from,to:A.to,service:S}),200)}catch(O){H.warn("query cache DB error, but it's ok",O)}if(U){let O={...A,text:U.translatedText};m.sentences[f]=O,n&&n(null,O,A)}else s.push(A)}else s.push(...e.sentences);let d=s.length;if(p-d>0&&H.debug(`use ${p-d} sentences from cache`),!s.length)return m;let b,C=en(t.user);try{b=new ia[l].class(c,o,{translationService:l,userToken:t.user?.token,isPro:C}),await b.init()}catch(A){if(n)for(let S of s)n(A,null,S);throw A}let h=await b.multipleTranslate({sentences:s},c,(A,S,U)=>{if(n&&n(A,S,U),!A&&S&&!l.startsWith("mock")&&u.cache){let O=l;l==="openl"&&(O=l+"-"+c.codename||Po.DEFAULT_CODENAME),u.cache&&Yu(Bg({translatedText:S.text,from:U.from,to:U.to,detectedFrom:S.from,key:aa(U.text),service:O}),3e3).catch(y=>{H.warn("set cache DB error",y)})}});for(let A of h.sentences){let S=m.sentences.findIndex(U=>!U);if(S===-1)throw new ut("translateFailed","can not match the result");m.sentences[S]=A}return m}g();g();var n9=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function xn(e,t){if(t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function P0(e,t,n){let{blockSelectors:a,extraBlockSelectors:r,extraInlineSelectors:u}=t;if(xn(e,u))return!1;if(xn(e,r)||e.nodeName.toLowerCase()==="br")return!0;let l=null;return e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(l=e.parentNode.immersiveTranslateComputedStyle),l&&l.display&&l.display==="inline-flex"?!1:n&&n.display?!!n9.includes(n.display):xn(e,a)}var Lt=xn;function Sa(e){return!!e.shadowRoot}function la(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function su(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Io(e){let t=ba;return e&&(t=e),t}function No(e,t){return ra(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function a9(e){let{rule:t}=e,n=e.config.loadingTheme;return` <${t.targetWrapperTag} class="${Q}-loading-${n} notranslate">`}function lu(e,t){let n=e.rule,a=document.createElement(n.targetWrapperTag);a.classList.add("notranslate",$t),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),nt(a,C4,t.toString());let r=a9(e);return a.append(Re.sanitize(r,{RETURN_DOM_FRAGMENT:!0})),a}function ir(e,t){return e.querySelector(`[${Xi}='${t}']`)}function Rg(){document.querySelectorAll(`[${Xi}]`).forEach(t=>{t.remove()})}function Og(){document.querySelectorAll(`.${$t}-error`).forEach(t=>{t.remove()})}function Ig(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{Xa(n)&&t.push(n)}),t}function Ng(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:a,delimiters:r,text:u}=e,o=new RegExp(`${r[0]}(\\d+)${r[1]}`,"gi");if(r.length>2){let l=r[2];o=new RegExp(`<${l}(\\d+)>(.*?)`,"gi")}let i=u.trim();return i=i.replace(o,""),i=i.trim(),i===""||i.length===1&&i.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(u)||i.includes("")||i.includes("< styles>")||Ud(i)||Od(i)||jd(i)||Id(i)||Nd(i)||o.test(i)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(i)?!1:co(u,n,a)}function En(e){return e.nodeType===Node.ELEMENT_NODE}function jg(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}function Ug(e){try{let t=Math.floor((new Date-new Date(e))/1e3);return t<60?`${t} \u79D2\u524D`:t<3600?`${Math.floor(t/60)} \u5206\u949F\u524D`:t<86400?`${Math.floor(t/3600)} \u5C0F\u65F6\u524D`:`${Math.floor(t/86400)} \u5929\u524D`}catch{return e}}async function zg(e){let n=Be().INSTALL_FROM,a=tn(),r=await Dt("installedAt",""),u=await Dt("fakeUserId","");return{installFrom:n,version:a,installedAt:r,interfaceLang:e,deviceId:u}}var r9=1e5;function ca(e){let{onParagraph:t,filterRule:n,id:a}=e;n=u9(n);let{stayOriginalSelectors:r,globalStyles:u,selectors:o,isTransformPreTagNewLine:i,lineBreakMaxTextCount:l,globalAttributes:c,isModifyImage:s,skipEditableCheck:m}=n,p={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},f=!1,d=null;function b(O){let{container:y,onFrame:T,onIgnoreElement:k,id:v}=O,E=document.createTreeWalker(y,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,w=>{let B=F(w);return B==NodeFilter.FILTER_ACCEPT?zt.mark(w,v,m):B==NodeFilter.FILTER_REJECT,B}),R=y;if(F(R)===NodeFilter.FILTER_REJECT)return;for(zt.mark(R,v,m);R;){if(o&&o.length>0){let{currentNode:w,isMatchedSelection:B}=C(E,R,o);if(w)R=w;else break;if(!B)continue}if(R.nodeType===Node.ELEMENT_NODE||R.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let w=R;if(w.nodeName==="IFRAME"){T&&T(w),h(),M0(p,!0),R=E.nextNode();continue}w.nodeType===Node.ELEMENT_NODE&&(u&&_0(w,u),c&&R0(w,c));let B=P0(w,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},w.immersiveTranslateComputedStyle||null);if(Lt(w,r)&&!B){A(w);let P=null;for(;!(P=E.nextSibling())&&E.parentNode(););R=P;continue}let I=Sa(w);(!Hg(p,w)||B)&&(h(),w.childNodes.length>0&&S(p,w,w.immersiveTranslateComputedStyle||null)),I&&w.shadowRoot?.mode==="open"&&(B?T?.(w.shadowRoot):b({...O,container:w.shadowRoot})),w.nodeType===Node.ELEMENT_NODE&&w.nodeName==="PRE"&&i&&l9(w)}else if(R.nodeType===Node.TEXT_NODE)A(R);else throw new Error("should not be here");R=E.nextNode(),p.commonAncestorContainer&&R&&R.parentNode===p.commonAncestorContainer&&(p._currentStacks=[]),p.commonAncestorContainer&&R&&R.nodeType===Node.ELEMENT_NODE&&p._currentStacks.push(R)}function F(w){if(w.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(En(w)){if(c){let P=Object.keys(c);if(P.length>0&&Lt(w,P))for(let D of P){let M=c[D];if(w.matches(D)){let q=c[D],j=Object.keys(q);for(let $ of j){let z=q[$];w.getAttribute($)!==z&&(z===null?w.removeAttribute($):w.setAttribute($,z))}break}}}if(!O.force&&zt.isMarked(w,v)||jg(w,v)||O0(w,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,stayOriginalSelectors:r})||w.nodeName==="IFRAME"&&!Xa(w))return NodeFilter.FILTER_REJECT;let B=w.getBoundingClientRect(),{width:I,height:N}=B;if(w.nodeType===Node.ELEMENT_NODE){let P=window.getComputedStyle(w);if(w.immersiveTranslateComputedStyle={display:P.display,whiteSpace:P.whiteSpace,left:B.left+"px",right:B.right+"px",top:B.top+"px",bottom:B.bottom+"px"},B0(w.immersiveTranslateComputedStyle))return k&&k(w),NodeFilter.FILTER_REJECT;let x=P0(w,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},w.immersiveTranslateComputedStyle||null);if(Lt(w,r)&&x)return NodeFilter.FILTER_REJECT}return w.nodeName==="IMG"&&(I>48&&N>48?w.immersiveTranslateComputedStyle={display:"block"}:I>0&&N>0&&s!==!1&&(w.setAttribute("width",I),w.setAttribute("height",N))),!w.childNodes||w.childNodes&&w.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!p.isPreWhitespace&&(I>0&&I<4||N>0&&N<4)&&(w.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(w.nodeType===Node.TEXT_NODE){let B=w.textContent?.trim();if(!B)return p.isPreWhitespace?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let I=w.parentNode;if(I.getBoundingClientRect){let{width:N,height:P}=I.getBoundingClientRect();if(N>0&&N<4||P>0&&P<4)return NodeFilter.FILTER_REJECT}return l>0&&B.length>=l&&F0(w,l),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}b(e),p&&p.commonAncestorContainer&&p.flatNodes.length>0&&h();function C(O,y,T){let k=y.immersiveTranslateComputedStyle||null;if(d){if(!d.contains(y))if(f=!1,y&&y.nodeType===Node.ELEMENT_NODE)if(jo(y,T))f=!0,d=y,h(),S(p,d,k);else return f=!1,y=O.nextNode(),{currentNode:y,isMatchedSelection:f};else return f=!1,y=O.nextNode(),{currentNode:y,isMatchedSelection:f}}else if(y&&y.nodeType===Node.ELEMENT_NODE)if(jo(y,T))f=!0,d=y,h(),S(p,d,k);else return f=!1,y=O.nextNode(),{currentNode:y,isMatchedSelection:f};else return f=!1,y=O.nextNode(),{currentNode:y,isMatchedSelection:f};return{currentNode:y,isMatchedSelection:!0}}function h(){let O=s9(p,a);O&&t&&t(O),M0(p)}function A(O){if(!Hg(p,O)){h(),M0(p);let y=O.parentNode;y&&S(p,y,y.computedStyle)}p.flatNodes.push(O)}function S(O,y,T){O.commonAncestorContainer=y;let k=U(T);O.isPreWhitespace=k}function U(O){return O&&O.whiteSpace&&O.whiteSpace.startsWith("pre")||O&&O.whiteSpace==="break-spaces"||!1}}function Hg(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Sa(t));let a=i9(e),r=!0;return!n&&!a&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?r=!0:e.commonAncestorContainer&&(r=!1,e._currentStacks=[])),r}function u9(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let a=n!=="iframe";return t?a&&n!=="pre":a}),e}function o9(e,t,n){if(t){for(let a of t.childNodes)if(a.contains(n))return a}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function _0(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Lt(e,n))for(let r of n){let u=t[r];if(e.matches(r)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+u;break}}}}function i9(e){return e&&e._currentStacks?e._currentStacks.some(t=>Sa(t)):!1}function s9(e,t){let{flatNodes:n,commonAncestorContainer:a}=e;if(a&&n.length>0){if(!n.map(p=>p.textContent?.trim()||"").join(""))return null;if(n.length===1)return{ctxId:t,stepState:1,commonAncestorContainer:n[0].parentNode,rootNodes:[n[0]],flatNodes:n,isPreWhitespace:e.isPreWhitespace,variables:{}};let u=c9(n,a);u||(u=a);let o=[];for(let p of n){let f=o9(e,u,p);f&&(o.includes(f)||o.push(f))}if(o.length<1)return null;let i=o[0],l=o[o.length-1],c=[],s=i,m=0;for(;s&&(c.push(s),s!==l);){if(m++,m>r9){H.warn("loop too many times for convert root nodes, break");break}s=s.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:n,commonAncestorContainer:u,variables:{},isPreWhitespace:e.isPreWhitespace}}else return null}function M0(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function B0(e){let t=e.top?parseInt(e.top):0,n=e.left?parseInt(e.left):0,a=e.right?parseInt(e.right):0,r=e.bottom?parseInt(e.bottom):0;return isNaN(t)&&(t=0),isNaN(n)&&(n=0),isNaN(a)&&(a=0),isNaN(r)&&(r=0),e.display==="none"||t<-1e3||n<-1e3||a<-1e3||r<-1e3}var zt={_marked_key:"immersive_translate_walked",isMarked(e,t){return Bs(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Sa(e)))return go(e,this._marked_key)},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Sa(e)))return nt(e,this._marked_key,t,!1,n)},markWalk(e,t,n){if(!e||e.nodeType!==Node.ELEMENT_NODE||this.isSkipMarkEle(e))return;let a=Qa(e,"markWalk")||"";return nt(e,"markWalk",a+","+t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Sa(e)):!1}};function l9(e){let n=e.innerHTML.replace(/\n\n/g,"
");e.innerHTML=Re.sanitize(n)}function c9(e,t){if(!e.length)return null;let n=e.map(a=>{let r=new Set;for(;(a=a.parentNode)&&(r.add(a),a!==t););return r});for(let a of n[0])if((a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&n.every(r=>r.has(a)))return a;return null}function F0(e,t){let n=e.textContent||"";if(n.trim().length<=t)return;let u=[". ","? ","! ","\u3002","\uFF1F","\uFF01"].reduce((o,i)=>{let l=n.lastIndexOf(i,t);return l>o?l:o},-1);if(u>1){let o=n[u-1]||"",i=n[u-2]||"",l=n[u+1]||"";o==="."||l==="."||l===")"||i==="."&&o==="S"||i.toUpperCase()==="M"&&(o.toUpperCase()==="R"||o.toUpperCase()==="S")?u=-1:isNaN(Number(o))||(u=-1)}if(u===-1)n.length>t+20&&F0(e,t+20);else{let o=n.slice(u+1);u++,o.startsWith(" ")&&u++;let i=e.splitText(u),l=document.createElement("br");i.parentNode?.insertBefore(l,i),u+10)for(let a of n){let r=t[a],u=Object.keys(r),o=Fd(e,[a]);for(let i of o)for(let l of u){let c=r[l];i.getAttribute(l)!==c&&(c===null?i.removeAttribute(l):i.setAttribute(l,c))}}}function Wg(e,t,n,a,r,u){let o=Object.keys(t);if(o.length>0)for(let i of o){let l=t[i],c=Object.keys(l),s=e.querySelector(i);if(s)for(let m of c){let p=l[m];if(m==="translate"&&p==="no"){let d=s.innerText||s.textContent||"";if(!d.trim()||d9(s,r,u)||!Bd(d,n,a))continue}s.getAttribute(m)!==p&&(p===null?s.removeAttribute(m):s.setAttribute(m,p))}}}function R0(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Lt(e,n))for(let r of n){let u=t[r];if(e.matches(r)){let o=t[r],i=Object.keys(o);for(let l of i){let c=o[l];e.getAttribute(l)!==c&&(c===null?e.removeAttribute(l):e.setAttribute(l,c))}break}}}}function O0(e,t){return Lt(e,t.excludeSelectors||[])?Lt(e,t.selectors||[])?!1:!Lt(e,t.stayOriginalSelectors||[]):!1}function jo(e,t){if(t.length===0)return!1;let n=t.filter(a=>!a.endsWith("*")).map(a=>a+" *");return Lt(e,t.concat(n))}function d9(e,t,n){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,r=>NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let r=a.currentNode;if(r.nodeType===Node.TEXT_NODE&&parent){let u=r.textContent||"";if(u.includes("Copyright"))continue;if(co(u,t,n))return!0}}return!1}g();g();g();function $g(e,t,n,a){let r=t,u=M4[r]||[],o="";e&&u&&u.length>0&&u.forEach(c=>{let{name:s}=c;if(e&&n&&n[s]){let m=n[s];if(["borderRadius"].includes(s)&&(m+="px"),o+=`--immersive-translate-theme-${r}-${s}: ${m}; +`,t==="marker"&&s==="backgroundColor"&&typeof m=="string"){let{r:p,g:f,b:d}=zd(m);o+=`--immersive-translate-theme-${r}-${s}-rgb: ${p}, ${f}, ${d}; `}}});let i="";if(n&&n.textColor){let c=n.textColor;i+=` .immersive-translate-target-translation-theme-${r}-inner{color: ${c};} `}if(n&&n.zoom){let c=n.zoom;i+=` .immersive-translate-target-translation-theme-${r}-inner{font-size: max(13px, ${c}%);} `}let l="";o&&(l=`:root { ${o}} -`),i&&(l+=i),l?xa(e,l,"immersive-translate-user-custom-style"):a&&xa(e,"","immersive-translate-user-custom-style")}function sr(e,t){let a=Be().IMMERSIVE_TRANSLATE_INJECTED_CSS;xa(e,a,"immersive-translate-default-injected-css");let r=t.config.translationThemePatterns||{},u=t.state.translationTheme,o=r[u]||{};Wg(e,u,o);let i="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?i+=t.rule.injectedCss.join(` +`),i&&(l+=i),l?Ea(e,l,"immersive-translate-user-custom-style"):a&&Ea(e,"","immersive-translate-user-custom-style")}function sr(e,t){let a=Be().IMMERSIVE_TRANSLATE_INJECTED_CSS;Ea(e,a,"immersive-translate-default-injected-css");let r=t.config.translationThemePatterns||{},u=t.state.translationTheme,o=r[u]||{};$g(e,u,o);let i="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?i+=t.rule.injectedCss.join(` `):t.rule.injectedCss&&(i+=t.rule.injectedCss),t.rule.additionalInjectedCss&&Array.isArray(t.rule.additionalInjectedCss)&&t.rule.additionalInjectedCss.length>0?i+=` `+t.rule.additionalInjectedCss.join(` `):t.rule.additionalInjectedCss&&(i+=` -`+t.rule.additionalInjectedCss)),i&&xa(e,i,"immersive-translate-dynamic-injected-css")}m();async function $g(){let e="auto",t=[Ea(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await Je({text:Ja(document.body),pageLangs:t})),e}m();m();function Kg(e,t){return[e,!e||e.endsWith("/")?"":"/",t,".json"].join("")}function I0(e,t){let n=e;return t&&Object.keys(t).forEach(a=>{let r=t[a];if(r===void 0)return;let u=m9(a);if(typeof r=="object"||u){let o=r;u&&typeof o=="string"&&(o={tag:"a",href:o});let i=`<${a}>`,l=n.indexOf(i);if(l!==-1){let c=o.tag||"a",s=n.indexOf(``);if(s!==-1){let g=n.substring(l+i.length,s),p=Object.keys(o).filter(f=>f!=="tag").map(f=>`${f}="${o[f]}"`).join(" ");n=n.replace(`${i}${g}`,`<${c} ${p}>${g}`)}}}else if(r){let o=new RegExp("{"+a+"}","gm");n=n.replace(o,r.toString())}}),n}function du(e,t,n){let a=e[t];if(!a)return n;let r=n.split("."),u="";do{u+=r.shift();let o=a[u];o!==void 0&&(typeof o=="object"||!r.length)?(a=o,u=""):r.length?u+=".":a=n}while(r.length);return a}function Un(e,t,n,a,r){if(!e.hasOwnProperty(n))return t;let u=du(e,n,t);return u===t&&n!==a&&(u=du(e,a,t)),I0(u,r)}function m9(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}m();m();function N0(e,t,n=[],a){let r=["notranslate"];return a&&r.push(P4),e&&(r.push(`${Q}-target-translation-theme-${e}`),t?r.push(`${ts}-theme-${e}`):r.push(`${es}-theme-${e}`)),n.length>0&&r.push(...n),t?r.push(ts):r.push(es),r}function j0(e){let t=["notranslate",D4];return e&&t.push(`${Q}-target-translation-theme-${e}-inner`),t}function Gg(e,t,n){let{rule:a,state:r}=n,{translationTheme:u}=r,{variables:o,isVertical:i}=e;o=o||[];let{text:l}=t,{wrapperPrefix:c,wrapperSuffix:s}=a,g=Za(n),p="afterend",f=g[0],d=g[1],b=`${f}(\\d+)${d}`,C=new RegExp(b,"g"),h=Re.sanitize(l);o.length>0&&(h=h.replace(C,O=>{let y=h.indexOf(O),T=h[y-1]===" ",k=h[y+O.length]===" ",v=O.slice(g[0].length,-g[1].length),E=Number(v);if(isNaN(E))return O;let R=o[Number(E)];if(R&&R.type==="element"){let F=R.value.outerHTML;return T||(F=" "+F),k||(F=F+" "),F}else H.error("variable type not supported",R,O);return O}));let A=N0(u,e.inline,a.translationClasses||[],e.preWhitespace);i&&A.push(L4);let S=j0(u),U="";return a.translationBlockStyle&&(U=`style="${a.translationBlockStyle}"`),h=`<${n.rule.targetWrapperTag} ${U} class="${A.join(" ")}" ${vn}="1"><${a.targetWrapperTag} class="${S.join(" ")}" ${vn}="1">${h}`,e.inline||(c==="smart"?h=`
${h}`:h=`${c}${h}`),e.inline&&(c!=="smart"?h=`${c}${h}`:h=`<${a.targetWrapperTag} class="notranslate" ${vn}="1"> ${h}`),s==="smart"?h=`${h}`:h=`${h}${s}`,{html:h,position:p}}function Uo(e,t){let n=null,{stayOriginalSelectors:a,delimiters:r,isPreWhitespace:u}=t,o=[],i={};for(let l=0;l2&&(C=`<${r[2]}${b}>`),i[b]=c,o.push({text:C,type:"variable"})}else o.push({text:c.textContent||"",type:"text"});else{let d=c.textContent||"";g&&(d=la(U0(c))),o.push({text:d,type:"text"})}else if(c.nodeType===Node.ELEMENT_NODE)if(c&&Lt(c,a)){let b=Object.keys(i).length,C=`${r[0]}${b}${r[1]}`;r.length>2&&(C=`<${r[2]}${b}>`),i[b]=c;let h=z0(o).endsWith(" ")?" ":"",A=la(c.innerText||c.textContent),S=la(c.nextSibling).startsWith(" ")?" ":"",U=lu(h+A+S),O=U[0]+C+U[1];if(h===" ")O=O.trimStart();else if(!O.startsWith(" ")){let y=lu(c.previousSibling)[1];y===""&&(y=" "),O=y+O}o.push({text:O,type:"variable"})}else{let d=z0(o).endsWith(" ")?" ":"",b=la(c.innerText||c.textContent);g&&(b=la(U0(c)));let C=la(c.nextSibling).startsWith(" ")?" ":"",h=lu(d+b+C),A=h[0]+(c.innerText?.trim()||c.textContent?.trim()||"")+h[1];if(d===" ")A=A.trimStart();else{let S=lu(c.previousSibling)[1];S===""&&(c.nodeName==="A"||c.nodeName==="CODE")&&(S=" "),A=S+A}o.push({text:A,type:"text"})}else{let d=z0(o).endsWith(" ")?" ":"",b="";c.textContent&&(b=la(U0(c))),d===" "&&(b=b.trimStart()),o.push({text:b,type:"text"})}}if(o&&o.length>0){let l="";for(let c=0;c0&&(g=o[c-1].text),c2){let s=c[2];return g9({delimiterTag:s,targetText:e.targetText,inline:r,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:a}).html}else{let s=Gg(l,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return s.html}}function U0(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function g9(e){let{delimiterTag:t,inline:n,translationClasses:a,targetWrapperTag:r,wrapperPrefix:u,variables:o,preWhitespace:i,wrapperSuffix:l,translationTheme:c,translationBlockStyle:s}=e;o=o||[];let g=e.targetText;g=Re.sanitize(g);let p=g,f=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),d=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(f,A=>{let S=p.indexOf(A),U=p[S-1]===" ",O=p[S+A.length]===" ",y=A.match(d);if(!y)return A;let T=y[1],k=Number(T);if(isNaN(k))return A;let v=o[Number(k)];if(v&&v.type==="element"){let E=v.value.outerHTML;return U||(E=" "+E),O||(E=E+" "),E}else if(v&&v.type==="text"){let E=v.value;return U||(E=" "+E),O||(E=E+" "),E}else H.error("variable type not supported",v,A);return A}));let b=N0(c,n,a||[],i),C=j0(c),h="";return s&&(h=`style="${s}"`),p=`<${r} ${h} class="${b.join(" ")}" ${vn}="1"><${r} class="${C.join(" ")}" ${vn}="1">${p}`,n||(u==="smart"?p=`
${p}`:p=`${u}${p}`),n&&(u!=="smart"?p=`${u}${p}`:p=`<${r} class="notranslate" ${vn}="1"> ${p}`),l==="smart"?p=`${p}`:p=`${p}${l}`,{html:p,position:"afterend"}}function z0(e){let t=e[e.length-1];return t?t.text:""}function rn(e){let t=e.rule.selectors,n=e.rule.excludeTags,a=e.rule.additionalExcludeTags,r=e.rule.excludeSelectors,u=e.rule.additionalExcludeSelectors;return e.state.translationArea==="body"&&(t=[],r=[]),{globalStyles:e.rule.globalStyles,globalAttributes:e.rule.globalAttributes,selectors:t,skipEditableCheck:e.rule.skipEditableCheck,lineBreakMaxTextCount:e.rule.lineBreakMaxTextCount,isTransformPreTagNewLine:e.rule.isTransformPreTagNewLine,excludeSelectors:n.concat(a).map(i=>i.toLowerCase()).filter(i=>i!=="code"&&i!=="img").concat(r).concat(u),blockSelectors:e.rule.allBlockTags.map(i=>i.toLowerCase()).concat(e.rule.extraBlockSelectors),extraBlockSelectors:e.rule.extraBlockSelectors,extraInlineSelectors:e.rule.extraInlineSelectors.concat(e.rule.additionalInlineSelectors),stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(i=>i.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)}}var p9={sanitize:e=>e};function Ho(e,t){e.interruptEffectDOM||(e.walkContainer({id:e.id,container:t,filterRule:rn(e.ctx),onParagraph:mu.bind(null,e),onFrame:n=>{q0(e,n,!0)},onIgnoreElement:n=>{e.ignoreResizeObserver?.observe(n)}}),ja&&nt(t,"consumeContainer",e.id))}function q0(e,t,n){try{if(e.injectCssToDocument(t,e.ctx),t instanceof HTMLIFrameElement){if(!Xa(t))return;H.debug("onFrame fragment",t);let a=t.contentWindow?.document.body;a&&(cr(a,e,n),e.dynamicContainerObserver?.observe(a,{childList:!0,subtree:!0}))}else H.debug("onFrame shadowRoot",t.host),cr(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0})}catch{}}function cr(e,t,n=!0){let{globalStyles:a,globalAttributes:r}=rn(t.ctx),u=0;if(l(t,e,n))return;if(En(e)&&i(e)){o(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,s=>(En(s)&&(a&&_0(s,a),r&&R0(s,r)),l(t,s,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(Ut.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode();){Ut.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let s=c.currentNode;if(i(s))for(o(s);;){if(c.nextSibling()){let g=c.currentNode;if(Ut.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),i(g)){o(g);continue}else break}if(!c.parentNode())return}}}catch{}if(u==0&&e instanceof HTMLElement){o(e);return}return t.observeContainers;function o(c){Ut.clearMark(c),u++,t.immediateTranslateCapacity>=0?Ho(t,c):(ja&&nt(c,"observeContainer",t.id),t.containerVisibleObserver?.observe(c))}function i(c){let s=c.nodeName.toLowerCase();if(c.shadowRoot)return q0(t,c.shadowRoot,n),!1;if(s==="iframe")return q0(t,c,n),!1;if(["script","#document-fragment","img"].includes(s))return!1;let g=t.containerRule;if(g.selectors&&g.selectors?.length>0)return jo(c,g.selectors);if(g.pageHeight){let p=c.scrollHeight;if(p>0&&p0)return!0}return!1}function l(c,s,g){if(s.nodeName.toLowerCase()=="script")return s.childNodes.length==0||s.childNodes.length==1&&s.childNodes[0].nodeType==Node.TEXT_NODE;if(s.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(s.nodeType!==Node.ELEMENT_NODE||g&&Ut.isMarked(s,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&s.nodeName==="PRE")return!1;let f=rn(c.ctx);return!!O0(s,{excludeSelectors:f.excludeSelectors,selectors:f.selectors,stayOriginalSelectors:f.stayOriginalSelectors})}}function W0(e,t){if(!e.targetNodes)return;let n=e.state||"original",a=e.commonAncestorContainer;if(!Ut.isMarked(a,e.ctxId))return;let r=a.contains(e.rootNodes[0]),u=a.contains(e.targetNodes[0]);if(r&&u)n="dual";else if(r)n="original";else if(u)n="translation";else return;if(t!=n){e.state=t;try{if(n=="dual"&&t=="translation"&&(zo(e.rootNodes),Jg(e.commonAncestorContainer)),n=="original"&&t=="translation"){let o=H0(e.rootNodes);if(zo(e.rootNodes),Yg(o))return;lr(o,a,e.targetNodes||[]),Jg(e.commonAncestorContainer)}if(n=="translation"&&t=="dual"){let o=e.targetNodes[0];lr(o,a,e.rootNodes||[]),Qg(e.commonAncestorContainer)}if(n=="original"&&t=="dual"){let o=H0(e.rootNodes);if(Yg(o))return;lr(o,a,e.targetNodes||[]),Qg(e.commonAncestorContainer)}if(n=="translation"&&t=="original"){let o=H0(e.targetNodes);zo(e.targetNodes),lr(o,a,e.rootNodes||[])}n=="dual"&&t=="original"&&zo(e.targetNodes)}catch(o){H.error(o)}}}function Yg(e){return!e||!En(e)?!1:e.classList.contains(Wt)}function Jg(e){if(!En(e))return;e.querySelectorAll("font[class*=immersive-translate-target-translation]").forEach(a=>{nt(a,"immersiveTranslateClassBak",a.className),a.className="notranslate immersive-translate-target-dual"});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.add("immersive-translate-state-dual")}function Qg(e){if(!En(e))return;e.querySelectorAll("font[class*=immersive-translate-target-dual]").forEach(a=>{let r=Qa(a,"immersiveTranslateClassBak");po(a,"immersiveTranslateClassBak"),a.className=r});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.remove("immersive-translate-state-dual")}function H0(e){return e?e[e.length-1].nextSibling:null}function zo(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function lr(e,t,n){let a=e;t&&(a?n.forEach(r=>{a.parentNode?.insertBefore(r,a)}):n.forEach(r=>{t.appendChild(r)}))}var f9=yt(K0,300);async function mu(e,t,n=!1){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||h9(t.rootNodes)||t.stepState>=2)return;t.stepState=2,ja&&nt(a,"onParseParagraph",e.id);let{ctx:r}=e,{rule:u}=r,o=Za(r),i=Uo(t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:o,stayOriginalSelectors:r.rule.stayOriginalTags.concat(r.rule.stayOriginalTags).map(c=>c.toLowerCase()).concat(r.rule.stayOriginalSelectors).concat(r.rule.additionalStayOriginalSelectors)});if(!i)return;t.variables=i?.variables||{},t.text=i?.text;let l=await G0(t,{excludeLanguages:r?.config?.translationLanguagePattern?.excludeMatches||[],targetLanguage:r.targetLanguage,noTranslateRegexp:r.rule.noTranslateRegexp,delimiters:Io(r.config.translationServices[r.translationService]?.placeholderDelimiters),minTextCount:n||r.state.translationArea==="body"?2:u.paragraphMinTextCount,minWordCount:n||r.state.translationArea==="body"?1:u.paragraphMinWordCount,isDetectParagraphLanguage:r.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:r.rule.ignoreZhCNandZhTW});if(l){if(H.debug("on paragraph",l.text,l),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(l))return;a.paragraphs.push(l),e.immediateTranslateCapacity>0||n?(b9(e,t.text),$0(e,t)):(ja&&nt(a,"observeParagraph",e.id),e.observeParagraphs.push(l),e.paragraphVisibleObserver?.observe(a))}return l}function h9(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?En(t)&&t.classList.contains(Wt):!1}function b9(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function $0(e,t){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let n=e.autoIncreaseParagraphId++;t.id=n.toString(),e.paragraphEntities[n]=t,e.paragraphQueue.push(n.toString()),ja&&nt(t.commonAncestorContainer,"consumeParagraph",e.id),f9.call(e,e.ctx)}async function K0(e){if(this.interruptEffectDOM)return;let t=this.paragraphQueue;this.paragraphQueue=[];let n=[];for(let a=0;a0)try{await sa(a,t,(r,u,o)=>{let i=o.id,l=y9(e,i.toString());l&&x9.call(null,r,u,o,l,t,n)})}catch(r){H.error("translateCurrentQueue error",r);return}}function y9(e,t){return e.find(n=>n.id===t)}function x9(e,t,n,a,r,u){let o=!1,i=a;if(ir(i.commonAncestorContainer,n.id)?.remove(),i&&(e||!t)){e||(H.error("translate error",n,e,t),e=new Error("no response from server"));let{rule:l}=r,c=n.id,s=document.createElement(l.targetWrapperTag);nt(s,w4,c.toString()),s.classList.add("notranslate",Wt,Wt+"-error"),s.setAttribute("translate","no"),s.setAttribute("lang",r.targetLanguage);let g=a.rootNodes[a.rootNodes.length-1].nextSibling;lr(g,a.commonAncestorContainer,[s]),E9(r,e);let p=e.message.replaceAll(` -`,"");if(p=p.replaceAll('"',"""),i&&(i.error=new Error(p)),s){let f=Un(Ot,"retryAllParagraphs",r.config.interfaceLanguage,"zh-CN"),d=Un(Ot,"errorTooltipTitle",r.config.interfaceLanguage,"zh-CN"),b=`<${l.targetWrapperTag} class="${Q}-error notranslate"><${l.targetWrapperTag} class="${Q}-error-wrapper">\u{1F504}  \u2753`;s.innerHTML=Re.sanitize(b)}}else if(a){if(i.error=void 0,a.targetText=t?.text||"",!(a.text?.toLocaleLowerCase()==a.targetText?.toLocaleLowerCase())){let c=Vg(a,r),s=document.createElement(r.rule.targetWrapperTag);s.classList.add("notranslate",Wt),s.setAttribute("lang",r.targetLanguage),s.setAttribute(vn,"1");let g=p9.sanitize(c);s.innerHTML=g,a.targetNodes=[s],W0(a,u)}o=!0}else H.error("paragraph not found",n.id);document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}))}async function G0(e,t){let{text:n}=e,a=await Je({text:n||"",minLength:15,pageLangs:[pt(),"en"]}),{targetLanguage:r}=t;if(!Ig({text:n||"",delimiters:t.delimiters,minWordCount:t.minWordCount,minTextCount:t.minTextCount,noTranslateRegexp:t.noTranslateRegexp}))return null;let o=t.excludeLanguages||[],i=Co();t.isDetectParagraphLanguage&&(i="auto");let l=pt(),c=a;c==="auto"&&!t.isDetectParagraphLanguage&&(c=l),e.languageByLocal=c,e.languageByClient=i;let s=i!=="auto"?i:c;return ra(s,r,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW})||o.length>0&&o.some(f=>ra(s,f,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW}))?null:e}function E9(e,t){if(t.message.startsWith("ProQuota:")){t.message=t.message.replace("ProQuota:","");let n=t.message;try{n=JSON.parse(t.message).error}catch(u){H.error(u)}t.message=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${t.message} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`;let a=e.translationService,r=a=="deepl"?"OpenAI":"Deepl";e.translationService=="openai"?a="OpenAI":e.translationService=="deepl"&&(a="Deepl"),document.dispatchEvent(new CustomEvent(zu,{detail:{type:"ProQuotaExceeded",subscriptionType:e.user?.subscription?.subscriptionType,translationService:a,anotherService:r,message:n}}))}}m();var T9=[];function Zg(e){T9.push(e)}m();function Xg(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(a){a.length>0&&(a[0].target.text.includes($u)||V0(e).catch(u=>{H.error("translateTitle error:",u.name,u.message,u.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var Wo="";async function V0(e){let t=document.title;if(!t||t.includes($u))return;Wo!==t&&(Wo=t);let n=await Je({text:t,pageLangs:[pt(),"en"]});if(!No(e,n))try{let a=await Aa({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n},e);a&&a.text&&(document.title=Wo+$u+a.text)}catch(a){throw a}}function e3(e){e.rule.isTranslateTitle&&(document.title=Wo)}m();var Y0="Original";function $e(){return Y0}function Pt(e){Y0=e,t3(Y0)}m();var J0;function n3(e){let t=e.ctx.rule.aiRule;if(H.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=rn(e.ctx),a=n.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);n.excludeSelectors.splice(a,1);let r,u;document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(p=>{p.translated=!0,gu(e,p,n)});let o=t.streamingDelayTime||100;J0=new MutationObserver(p=>{p.forEach(function(f){if(En(f.target)&&!l(f)&&(s(f.target),f.addedNodes&&f.addedNodes.length&&f.addedNodes.forEach(d=>{s(d)}),!c(f)&&i())){let d=f.target===u;if(t.streamingDeepChild&&!d&&(d=f.target.parentNode===u),!d)return;f.addedNodes.forEach(b=>{let C=b.previousSibling;!C||C.translated||(C.translated=!0,setTimeout(()=>{C.childNodes[0]?.translated||(H.debug("\u7FFB\u8BD1\u4E0A\u4E00\u4E2A\u6BB5\u843D",C),gu(e,C,n))},o))})}})}),J0.observe(document.body,{attributes:!0,childList:!0,subtree:!0});function i(){return!!(t.streamingChange&&t.streamingSelector&&r||t.streamingChange&&t.messageContainerSelector&&t.messageStreamEndSelector&&u&&!u.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector))}function l(p){return t.streamingSelector&&p.target===r&&p.type==="attributes"&&!xn(p.target,[t.streamingSelector])?(g(),!0):t.streamingSelector&&p.removedNodes.length>0&&u&&u!=r?(p.removedNodes?.forEach(f=>{f===r&&g()}),!0):t.messageContainerSelector&&t.messageStreamEndSelector&&u&&u.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector)?(g(),!0):!1}function c(p){if(t.streamingSelector&&p.target.querySelector(t.messageWrapperSelector||"")&&!r){let f=p.target;return f.translated||(f.translated=!0,setTimeout(()=>{r||f.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(d=>{d.translated||(d.translated=!0,gu(e,d,n))})},o)),!0}else if(t.messageContainerSelector&&p.target.querySelector(t.messageContainerSelector||"")){let f=p.target;if(f.translated)return!0;f.translated=!0,setTimeout(()=>{f.querySelectorAll(t.messageContainerSelector).forEach(d=>{t.messageStreamEndSelector&&!d.querySelector(t.messageStreamEndSelector)||d.translated||(d.translated=!0,gu(e,d,n))})},o)}return!1}function s(p){t.streamingSelector&&xn(p,[t.streamingSelector])&&(r=p,H.debug("streamingNode",r)),xn(p,[t.messageWrapperSelector])&&(u=p,H.debug("markdownNode",u))}function g(){u&&setTimeout(()=>{u.childNodes.forEach(p=>p.translated=!1),H.debug("\u7ED3\u675F\u7FFB\u8BD1\u5168\u90E8",u),gu(e,u,n),r=void 0,u=null},o)}}function gu(e,t,n){ca({id:e.id,container:t,filterRule:n,force:!0,onParagraph:a=>{mu(e,a,!0)},onFrame:()=>{},onIgnoreElement:()=>{}})}function a3(){J0?.disconnect()}var re=null;function Ko(){return re||null}function dr(e){C9(e),L9(e),k9(e),D9(e),sr(document,e),Pt("Translated"),S9(re),A9(re),Zg(zn),w9(re)}function C9(e){e.state.translationArea==="main"&&e.rule.initialSelectorGlobalAttributes&&qg(document.body,e.rule.initialSelectorGlobalAttributes,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph)}function w9(e){n3(e)}function v9(){a3()}function A9(e){e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0});let t=[];e.ctx.rule.mainFrameSelector&&(t=[...document.querySelectorAll(e.ctx.rule.mainFrameSelector||"")]),t.length<=0&&(t=[document.body]),t.forEach(n=>{cr(n,e)})}async function k9(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=Date.now(),a=new URL(e.url).hostname,r=e.localConfig.tempTranslationUrlMatches||[],u=r.findIndex(i=>i.match===a&&i.expiredAt>t),o=!1;u>-1||(r.push({match:a,expiredAt:t+e.config.tempTranslateDomainMinutes*60*1e3}),o=!0),o&&await nn({...e.localConfig,tempTranslationUrlMatches:[...r]})}}function S9(e){e.ctx.rule.isTranslateTitle&&(V0(e.ctx),e.titleDynamicObserver=Xg(e.ctx))}function D9(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function L9(e){let t=bn();re&&(t=re.id);let n=rn(e);re=re||{},re.ctx=e,re.id=t,re.paragraphQueue=re.paragraphQueue||[],re.rule={excludeSelectors:n.excludeSelectors||[],selectors:n.selectors||[]},re.currentUrl=window.location.href,re.containerRule={pageHeight:screen.availHeight,selectors:n.selectors},re.translationService=e.translationService,re.paragraphEntities=re.paragraphEntities||{},re.autoIncreaseParagraphId=re.autoIncreaseParagraphId||1,re.interruptEffectDOM=!1,re.urlChangeDelay=e.rule.urlChangeDelay,re.immediateTranslateCapacity=e.state.immediateTranslationTextCount,re.observeContainers=re.observeContainers||[],re.observeParagraphs=re.observeParagraphs||[],re.dynamicContainerObserver=re.dynamicContainerObserver||B9(re),re.ignoreResizeObserver=re.ignoreResizeObserver||R9(re),re.containerVisibleObserver=re.containerVisibleObserver||M9(re),re.paragraphVisibleObserver=re.paragraphVisibleObserver||F9(re),re.injectCssToDocument=$o,re.walkContainer=ca,re.translateState=e.state.translationMode||e.config.translationMode||"dual",re.allInlineWindows=[window],window.onerror=P9(re,e),window.immersiveTranslateSwitchTranslateState=Z0.bind(re)}function u3(e,t){t.getRootNode()instanceof ShadowRoot?$o(t.getRootNode(),e):$o(t.ownerDocument,e),Q0(e)}function Q0(e){if(re)return;re={},re.ctx=e,re.id=bn(),re.paragraphQueue=[],re.injectCssToDocument=$o;let t=rn(e);re.rule={excludeSelectors:t.excludeSelectors,selectors:t.selectors||[]},re.translationService=e.mouseHoverTranslationService,re.currentUrl=window.location.href,re.paragraphEntities={},re.autoIncreaseParagraphId=1,re.interruptEffectDOM=!1,re.urlChangeDelay=e.rule.urlChangeDelay,re.translateState=e.config.translationMode||"dual",re.observeContainers=[],re.observeParagraphs=[],re.allInlineWindows=[window],window.switchTranslateState=Z0.bind(re)}function zn(e=!0){re&&(Pt("Original"),v9(),re.interruptEffectDOM=!0,re.ignoreResizeObserver?.disconnect(),re.dynamicContainerObserver?.disconnect(),re.containerVisibleObserver?.disconnect(),re.paragraphVisibleObserver?.disconnect(),re.titleDynamicObserver?.disconnect(),e3(re.ctx),Bg(),Rg(),e&&Z0.call(re,"original"),Object.values(re.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),re=null)}function P9(e,t){e.interruptEffectDOM=!1;let n;return function(a){let r=a.message,u=!1;return r?.indexOf("Minified React error")>=0&&(u=!0),u&&(clearTimeout(n),zn(),n=setTimeout(()=>{dr(t)},e.urlChangeDelay||2e3)),!0}}function M9(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{a.intersectionRatio>0&&(Ho(e,a.target),n.unobserve(a.target))})})}function F9(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{if(a.intersectionRatio>0){let r=a.target;(r.paragraphs||[]).forEach(o=>{$0(e,o)}),n.unobserve(r)}})})}var r3;function _9(e){if(e.urlChangeDelay<=0)return!1;let n=(window.location.href||"").split("#")[0];return e.currentUrl.split("#")[0]!=n?(clearTimeout(r3),e.translateState=="original"?!1:(zn(e.urlChangeDelay>20),r3=setTimeout(()=>{let r=e.ctx;dr(r)},e.urlChangeDelay),!0)):!1}function B9(e){return new MutationObserver(t=>{if(!_9(e)&&!e.interruptEffectDOM)for(let n of t){let a=e.ctx.rule.mutationObserverLimitTargetSelectors;if(a.length>0&&!xn(n.target,a))return;if((n.addedNodes||[]).length<=0||n.target.nodeType!==Node.ELEMENT_NODE||!Ut.isSkipMarkEle(n.target)&&!Ut.isMarked(n.target,e.id))continue;let u=(n.target?.paragraphs||[]).reduce((o,i)=>{let l=i.rootNodes||[],c=i.targetNodes||[];return[...o,...l,...c]},[]);if(n.addedNodes.length>0&&n.addedNodes.length===n.target.childNodes.length&&xn(n.target,e.ctx.rule.mutationObserverContainerSelectors)){Ut.clearMark(n.target),n.target.paragraphs=void 0,Ho(e,n.target);return}n.addedNodes.forEach((o,i)=>{o.nodeType===Node.ELEMENT_NODE&&(u.includes(o)||Lt(o,e.ctx.rule.mutationExcludeSelectors)||cr(o,e))})}})}function R9(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let a of t){if(a.target.nodeType!==Node.ELEMENT_NODE)return;let r=a.target,u=globalThis.getComputedStyle(r);B0(u)||(n.unobserve(a.target),cr(r,e))}})}function Z0(e){this.translateState=e,Object.values(this.paragraphEntities).forEach(t=>{W0(t,e)}),e=="original"&&document.querySelectorAll(`.${Wt}`).forEach(t=>t.remove())}function $o(e,t){if(e instanceof HTMLIFrameElement){sr(e.contentDocument,t);return}sr(e,t)}async function o3(e){let t=tt(),n="auto";if(he()){let a="";e.rule.isEbook||e.rule.isEbookBuilder?(a=Rs(e.mainFrame),n=await Je({text:a,pageLangs:["en"]})):(a=Ja(e.mainFrame).slice(0,1e3),n=await Je({text:a,pageLangs:[Ea(),"en"]}))}else if(t)n=await Je({text:Ja(e.mainFrame).slice(0,1e3),pageLangs:[Ea(),"en"]});else if(e.rule.isEbook||e.rule.isEbookBuilder){let a="";a=Rs(e.mainFrame),n=await Je({text:a,pageLangs:["en"]})}else n=await s3();return n==="auto"&&(n=await $g()),nm(n),n}async function i3(){if(!re)return;document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=re.paragraphEntities,t=Object.keys(e);for(let n of t){let a=e[n];if(a.error){re.paragraphQueue.push(n);let u=a.commonAncestorContainer.querySelector(`[${qu}='${n}']`);u&&u.remove()}}K0.call(re,re.ctx)}m();m();var l3={"zh-CN":{"languages.en":"\u82F1\u8BED","languages.ja":"\u65E5\u8BED","languages.ko":"\u97E9\u8BED","languages.es":"\u897F\u73ED\u7259\u8BED","languages.fr":"\u6CD5\u8BED","languages.de":"\u5FB7\u8BED","languages.it":"\u610F\u5927\u5229\u8BED","languages.pt":"\u8461\u8404\u7259\u8BED","languages.ru":"\u4FC4\u8BED","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"},"zh-TW":{"languages.en":"\u82F1\u8A9E","languages.ja":"\u65E5\u8A9E","languages.ko":"\u97D3\u8A9E","languages.es":"\u897F\u73ED\u7259\u8A9E","languages.fr":"\u6CD5\u8A9E","languages.de":"\u5FB7\u8A9E","languages.it":"\u610F\u5927\u5229\u8A9E","languages.pt":"\u8461\u8404\u7259\u8A9E","languages.ru":"\u4FC4\u8A9E","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"}},c3={...Ot,"zh-CN":{...l3["zh-CN"],...Ot["zh-CN"]},"zh-TW":{...l3["zh-TW"],...Ot["zh-TW"]}},Go=c3;function mr(e,t,n){return Un(c3,e,t,Ku,n)}var Vo=(e,t,n,a)=>{let r=F4[e]||e,u=_4[e],o=B4[e],i={"zh-CN":u,"zh-TW":o,en:r};if(n)return i[e]?i[e]:r;if(i[t]){let l=i[t];return a||e==="auto"||e==="placeholder"?l:`${l} (${r})`}else return r};m();m();function gr(e){pr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(a=>{H.error("send content message request failed",e,a)}),document.querySelectorAll("iframe").forEach(a=>{a.contentWindow&&a.contentWindow.postMessage({author:Uu,payload:e},"*")});let n=new CustomEvent(Vn,{detail:e});globalThis.document.dispatchEvent(n)}function X0(e){let t=e.shortcuts||{},a=Object.keys(t).reduce((u,o)=>(u[t[o]]=o,u),{}),r=Object.keys(a);for(let u of r){let o=u.replace(/MacCtrl/ig,"Ctrl");o&&Ve(o,i=>{i.preventDefault(),gr({method:a[u],data:{trigger:"shortcut"}})})}}m();m();m();m();var fr={},O9={root:"",lang:"en",fallbackLang:"en"};function el(e,t){let n=Object.assign({},O9,e);fr=t||fr;let[a,r]=Te(n.lang),[u,o]=Te(fr),[i,l]=Te(!1),c=g=>{if(u.hasOwnProperty(g))return;l(!1);let p=Kg(n.root||"",g);n.getUrl&&(p=n.getUrl(n.root||"",g),fetch(p).then(f=>f.json()).then(f=>{fr[g]=f,o({...fr}),l(!0)}).catch(f=>{o({...fr}),l(!0)}))};return Ne(()=>{c(n.fallbackLang||"en"),c(a)},[a]),{lang:a,setLang:r,t:(g,p)=>{if(!u.hasOwnProperty(a))return g;let f=du(u,a,g);return f===g&&a!==n.fallbackLang&&(f=du(u,n.fallbackLang,g)),I0(f,p)},isReady:i}}m();m();var I9=0;function V(e,t,n,a,r){var u,o,i={};for(o in t)o=="ref"?u=t[o]:i[o]=t[o];var l={type:e,props:i,key:n,ref:u,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--I9,__source:r,__self:a};if(typeof e=="function"&&(u=e.defaultProps))for(o in u)i[o]===void 0&&(i[o]=u[o]);return Ae.vnode&&Ae.vnode(l),l}var nl=Du(null),tl={root:"assets",lang:"en",fallbackLang:"en"},Yo=e=>{let{t,setLang:n,lang:a,isReady:r}=el({root:e.root||tl.root,lang:e.lang||tl.lang,fallbackLang:e.fallbackLang||tl.fallbackLang,getUrl:e.getUrl},e.translations);return V(nl.Provider,{value:{t,setLang:n,lang:a,isReady:r},children:e.children})};m();m();m();function al(){return V("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[V("path",{d:"M10.3873 2.29166C10.6319 2.29193 10.8664 2.38929 11.0392 2.56234C11.2121 2.73539 11.3092 2.96998 11.3092 3.21457V4.07811L12.1175 4.38332C12.7273 4.61277 13.2952 4.94074 13.7988 5.35416L14.4675 5.90207L15.2165 5.46978L15.2394 5.45624C15.3787 5.37479 15.5373 5.332 15.6988 5.33228C15.861 5.3325 16.0203 5.37522 16.1608 5.45618C16.3014 5.53715 16.4182 5.65353 16.4998 5.79374L16.8925 6.47395C17.0145 6.68593 17.0475 6.93764 16.9843 7.17391C16.921 7.41019 16.7666 7.61173 16.555 7.73436L16.5321 7.74791L15.7842 8.17916L15.9227 9.0302C16.031 9.67953 16.031 10.3423 15.9227 10.9917L15.781 11.8458L16.531 12.2781L16.5467 12.2875C16.758 12.4101 16.9122 12.6115 16.9754 12.8475C17.0387 13.0835 17.0059 13.335 16.8842 13.5469L16.5154 14.1844C16.3932 14.3961 16.1919 14.5507 15.9558 14.6141C15.7196 14.6776 15.468 14.6448 15.256 14.5229L15.2415 14.5135L14.4904 14.0802L13.8206 14.6323C13.3125 15.0519 12.7384 15.3845 12.1217 15.6167L11.3133 15.9219V16.7864C11.3132 16.9078 11.2891 17.028 11.2425 17.14C11.1958 17.2521 11.1276 17.3539 11.0415 17.4395C10.9555 17.5251 10.8535 17.5929 10.7412 17.6391C10.6289 17.6852 10.5087 17.7087 10.3873 17.7083H9.61229C9.3677 17.708 9.13322 17.6107 8.96037 17.4376C8.78751 17.2646 8.69042 17.03 8.69042 16.7854V15.9219L7.88209 15.6167C7.27233 15.3872 6.70437 15.0592 6.20084 14.6458L5.53209 14.0979L4.78313 14.5302L4.76021 14.5437C4.62084 14.6252 4.46226 14.668 4.30084 14.6677C4.13864 14.6675 3.97932 14.6248 3.83877 14.5438C3.69823 14.4628 3.58135 14.3464 3.49979 14.2062L3.10709 13.526C2.98505 13.3141 2.95205 13.0623 3.01532 12.8261C3.07858 12.5898 3.23296 12.3882 3.44459 12.2656L3.4675 12.2521L4.21542 11.8208L4.07688 10.9698C3.96856 10.3204 3.96856 9.65766 4.07688 9.00832L4.21854 8.1552L3.46959 7.72186L3.45709 7.70832C3.24914 7.58489 3.09787 7.38486 3.03575 7.15116C2.97362 6.91746 3.00559 6.66872 3.12479 6.45832L3.49354 5.82082C3.57469 5.68049 3.69133 5.56397 3.83175 5.48297C3.97217 5.40197 4.13144 5.35934 4.29354 5.35936C4.45497 5.35908 4.61355 5.40187 4.75292 5.48332L4.7675 5.49166L5.51854 5.92499L6.18834 5.37291C6.69646 4.95329 7.27054 4.62067 7.88729 4.38853L8.69563 4.08332V3.21874C8.69452 2.97433 8.79041 2.73945 8.96226 2.56565C9.13411 2.39185 9.36788 2.29331 9.61229 2.29166H10.3873ZM10.3873 1.04166H9.61229C9.03636 1.04193 8.4841 1.27084 8.07685 1.67809C7.66961 2.08533 7.4407 2.6376 7.44042 3.21353C6.69518 3.49423 6.00146 3.89618 5.38729 4.40312L5.37271 4.39478C4.87362 4.10685 4.2806 4.02894 3.72407 4.17818C3.16753 4.32742 2.69307 4.6916 2.405 5.19062L2.03729 5.83332C1.74928 6.33229 1.67121 6.92522 1.82025 7.48173C1.96929 8.03825 2.33324 8.51279 2.83209 8.80103L2.84771 8.80936C2.78023 9.20444 2.74539 9.6044 2.74354 10.0052C2.74367 10.3971 2.77572 10.7883 2.83938 11.175L2.81646 11.1885C2.56927 11.3311 2.35259 11.5209 2.1788 11.7472C2.00501 11.9735 1.87752 12.2319 1.80361 12.5075C1.7297 12.7831 1.71083 13.0706 1.74807 13.3535C1.7853 13.6364 1.87792 13.9091 2.02063 14.1562L2.41334 14.8364C2.55638 15.0837 2.74681 15.3003 2.97371 15.4738C3.20061 15.6473 3.45953 15.7743 3.73561 15.8475C4.01169 15.9208 4.29952 15.9388 4.58259 15.9007C4.86566 15.8625 5.13841 15.7688 5.38521 15.625L5.40813 15.6114C6.01714 16.1105 6.70362 16.5067 7.44042 16.7844C7.44028 17.0697 7.49635 17.3523 7.60542 17.616C7.7145 17.8797 7.87444 18.1193 8.07612 18.3212C8.27779 18.523 8.51726 18.6832 8.78084 18.7925C9.04441 18.9018 9.32694 18.9582 9.61229 18.9583H10.3873C10.9632 18.958 11.5155 18.7291 11.9227 18.3219C12.33 17.9146 12.5589 17.3624 12.5592 16.7864C13.3043 16.5061 13.9981 16.1045 14.6123 15.5979L14.6269 15.6062C15.126 15.8942 15.719 15.9721 16.2755 15.8228C16.8321 15.6736 17.3065 15.3094 17.5946 14.8104L17.9623 14.1729C18.2503 13.6739 18.3284 13.081 18.1793 12.5245C18.0303 11.968 17.6663 11.4934 17.1675 11.2052L17.1519 11.1969C17.2194 10.8018 17.2542 10.4018 17.256 10.001C17.2559 9.60915 17.2239 9.21792 17.1602 8.83124L17.1831 8.8177C17.4303 8.67516 17.647 8.48531 17.8208 8.259C17.9946 8.03269 18.1221 7.77435 18.196 7.49875C18.2699 7.22314 18.2888 6.93568 18.2515 6.65278C18.2143 6.36987 18.1217 6.09708 17.979 5.84999L17.5863 5.16978C17.4437 4.92202 17.2537 4.70485 17.027 4.53072C16.8003 4.3566 16.5415 4.22895 16.2654 4.1551C15.9893 4.08126 15.7013 4.06267 15.418 4.1004C15.1346 4.13814 14.8616 4.23145 14.6144 4.37499L14.5915 4.38853C13.9824 3.88946 13.296 3.49327 12.5592 3.21561C12.5593 2.93026 12.5032 2.64768 12.3942 2.384C12.2851 2.12031 12.1252 1.8807 11.9235 1.67883C11.7218 1.47695 11.4823 1.31678 11.2188 1.20746C10.9552 1.09813 10.6726 1.04179 10.3873 1.04166Z",fill:"#666666"}),V("path",{d:"M10.0003 7.91666C10.4124 7.91666 10.8152 8.03884 11.1578 8.26776C11.5004 8.49668 11.7674 8.82205 11.9251 9.20273C12.0828 9.58341 12.124 10.0023 12.0436 10.4064C11.9632 10.8106 11.7648 11.1818 11.4735 11.4731C11.1821 11.7645 10.8109 11.9629 10.4068 12.0433C10.0026 12.1237 9.58375 12.0824 9.20307 11.9247C8.82239 11.7671 8.49702 11.5 8.2681 11.1574C8.03918 10.8148 7.91699 10.412 7.91699 9.99999C7.91699 9.44745 8.13649 8.91755 8.52719 8.52685C8.91789 8.13615 9.44779 7.91666 10.0003 7.91666ZM10.0003 6.66666C9.34106 6.66666 8.69659 6.86215 8.14843 7.22842C7.60026 7.5947 7.17302 8.11529 6.92073 8.72438C6.66844 9.33346 6.60243 10.0037 6.73104 10.6503C6.85966 11.2969 7.17713 11.8908 7.6433 12.357C8.10948 12.8232 8.70342 13.1407 9.35003 13.2693C9.99663 13.3979 10.6669 13.3319 11.2759 13.0796C11.885 12.8273 12.4056 12.4001 12.7719 11.8519C13.1382 11.3037 13.3337 10.6593 13.3337 9.99999C13.3337 9.11593 12.9825 8.26809 12.3573 7.64297C11.7322 7.01785 10.8844 6.66666 10.0003 6.66666Z",fill:"#666666"})]})}m();function d3(e,t=2e3){return n=>{let a,r=0;return u=>{++r==e&&(n(u),r=0),clearTimeout(a),a=setTimeout(()=>r=0,t)}}}m();function m3(e){let t=e.split(".");return t.length>2?(t[0]="*",t.join(".")):null}m();function g3(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}m();m();function wt(){return _u(nl)}function Hn(e){let{items:t,maxWidth:n,className:a}=e,{lang:r}=wt();return n=n||(r==="en"?144:160),V("select",{autoComplete:"off",class:a||"min-select",style:{maxWidth:`${n}px`},value:t.find(u=>u.selected)?.value,onChange:u=>{let o=u.target.value,i=t.find(l=>l.value===o);i&&i.onSelected(i)},children:t.map((u,o)=>V("option",{value:u.value,selected:u.selected,children:u.label},"selectlink"+o))})}m();var Jo="DROP_DOWN_DEFAULT_VALUE";function rl(e){let{showArrow:t,onSelected:n,className:a,menus:r,maxWidth:u}=e;a=a||"",t=t??!0,u=u||80;let o=Fu(null);return V("select",{ref:o,autoComplete:"off",class:`text-label min-select ${t?"":"min-select-no-arrow"} ${a||""}`,value:Jo,style:{maxWidth:`${u}px`},onChange:i=>{i.preventDefault();let l=i.target.value;if(o.current&&l!==Jo){o.current.value=Jo,o.current?.dispatchEvent(new Event("change"));let c=r.find(s=>s.value===l);c&&n(c)}},children:[{value:Jo,label:e.label}].concat(r).map((i,l)=>V("option",{value:i.value,children:i.label},"option-"+l))})}m();function ul(e){let{field:t,onChange:n,value:a}=e;a=a||t.default||"";let{t:r}=wt(),u=t.name;return t.label&&(u=t.label),t.labelKey&&(u=r(t.labelKey)),t.type==="select"?V("div",{class:"flex justify-between items-center mb-2",children:[V("label",{class:"inline-block",children:[u,"\uFF1A"]}),V(Hn,{items:t.options.map(o=>({label:`${o.label?r(o.label):o.value}`,value:o.value,selected:a===o.value,onSelected:()=>{n(o.value)}}))})]}):null}m();m();function pu(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var N9=({date:e})=>{let{t}=wt(),[n,a]=Te(!1);return Ne(()=>{setTimeout(()=>{a(!0)},5e3)},[]),n?null:V("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},j9=({minVersion:e})=>{let{t}=wt();return V("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},U9=()=>{let{t:e}=wt();return V("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:"https://immersivetranslate.com/docs/installation/"})}})},z9=({message:e,handleSyncing:t,date:n})=>{let{t:a}=wt();return V("p",{class:"text-sm",children:[a("failToSyncRules")," ",V("a",{onClick:t,children:a("retry")}),V("br",{}),a("failedReason"),"\uFF1A",e,V("br",{}),a("currentRuleVersion"),"\uFF1A",n]})};function ol(e){let{isShowError:t,request:n}=e,[a,r]=Te(null),{t:u}=wt(),[o,i]=Te(null),[l,c]=Te(null),[s,g]=Te(""),[p,f]=Te(!1),[d,b]=Te(!1),[C,h]=Te(!1),[A,S]=Te(null),[U,O]=Te(null),y=tn(),T=async()=>{g("");let k=o;if(o===null)try{let v=await n({url:Mr});v?(i(v),k=v,f(!0)):(g(u("unknownError")),c(null))}catch(v){c(null),g(v.message);return}k!==null?(e.setStorageBuildinConfig(k),c(!1),r(k.buildinConfigUpdatedAt)):(g(u("canNotFetchRemoteRule")),c(null))};return Ne(()=>{hn().then(k=>{let v=k.buildinConfigUpdatedAt;S(k);let E=new Date(v);if(r(v),y==="0.0.0"){h(!0);return}n({url:Mr}).then(R=>{let F=R,w=F.minVersion,B=y;i(F);let I=F.latestVersion;if(I&&(pu(B,I)?O(!0):O(!1)),pu(B,w)){let N=F.buildinConfigUpdatedAt;new Date(N)>E?(c(!0),T()):c(!1)}else b(!0),c(null)}).catch(R=>{c(null),g(R.message)})})},[]),Ne(()=>{hn().then(k=>{S(k)})},[a]),A?V("div",{class:"text-sm mt-2",style:{maxWidth:218},children:C?V(U9,{}):s?t===!1?null:V(z9,{handleSyncing:T,message:s,date:a||""}):d?t===!1?null:V(j9,{minVersion:o.minVersion}):l===null||l===!0?null:p?V(N9,{date:a}):null}):null}m();var Qo='',il="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMTEuNjIzLS4zMTguODQ1Yy0uMjA4LjIyMi0uNTI3LjMzMy0uOTI4LjMzM2gtMS4zM1Y5LjI0MmgxLjMzWm05Ljg0NiAxLjc4OGMuMzg4IDAgLjY2NS4xNTIuODQ1LjQ1Ny4xNTIuMjY0LjIzNS41ODIuMjYzLjk4NHYuMzE5YzAgLjQ5OS0uMDgzLjg4Ny0uMjYzIDEuMTkyLS4xOC4zMDQtLjQ1Ny40NTctLjgzLjQ1Ny0uMzg5IDAtLjY2Ni0uMTUzLS44NDYtLjQ0NC0uMTUyLS4yNjMtLjIzNS0uNTk1LS4yNjMtMS4wMTF2LS4yOTFjMC0uNDg1LjA4My0uODczLjI2My0xLjE3OC4xOC0uMzA1LjQ0My0uNDg1LjgzMS0uNDg1Wm0tMy40MDctMS4xMzZhMS4xNyAxLjE3IDAgMCAwLS43MDYuMjM1IDEuNDgyIDEuNDgyIDAgMCAwLS40MTUuNWwtLjA4My4xNjUtLjA3LS44MDNoLTEuMzU3djUuNDMyaDEuNDU0di0zLjY1OWEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiA4LjEySDQuMTE0djcuMzE3aDEuNDY4VjEyLjc5aDEuMzNjLjg0NCAwIDEuNDk1LS4yMDggMS45OC0uNjM4LjQ4NS0uNDMuNzItLjk4My43Mi0xLjY5cy0uMjM1LTEuMjYxLS43Mi0xLjY5Yy0uNDQzLS4zODktMS4wMzktLjYxLTEuNzczLS42MzhsLS4yMjEtLjAxNFptOS44NDcgMS43NzRjLS44MDMgMC0xLjQyNi4yNjMtMS44ODMuNzc2LS40MTYuNDctLjYzNyAxLjA2Ny0uNjc5IDEuNzczdi4zMzNjMCAuODE4LjIyMiAxLjQ4My42NzkgMS45OTUuNDU3LjUxMyAxLjA4Ljc3NiAxLjg4My43NzYuODA0IDAgMS40MjctLjI2MyAxLjg4NC0uNzc2LjQxNS0uNDcuNjM3LTEuMDUzLjY3OC0xLjc3M3YtLjMzM2MwLS44MTctLjIyMS0xLjQ4Mi0uNjc4LTEuOTk1LS40NTctLjUxMy0xLjA4LS43NzYtMS44ODQtLjc3NlpNMTguMDAzIDZhNiA2IDAgMCAxIDAgMTJIMFY5LjQyM0EzLjQyIDMuNDIgMCAwIDEgMy40MiA2aDE0LjU4M1oiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSI3LjUiIHgyPSIyMiIgeTE9IjE5IiB5Mj0iNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMyMjIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM2OTY5NjkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=",sl="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzk5OSIgZD0iTTYuODk3IDMuMjQyYy40MTUgMCAuNzIuMTExLjkyOC4zNDcuMjA3LjIzNS4zMTguNTI2LjMxOC44NzMgMCAuMzQ2LS4xMS42MjMtLjMxOC44NDUtLjIwOC4yMjItLjUyNy4zMzMtLjkyOC4zMzNoLTEuMzNWMy4yNDJoMS4zM1ptOS44NDYgMS43ODhjLjM4OCAwIC42NjUuMTUyLjg0NS40NTcuMTUyLjI2NC4yMzUuNTgyLjI2My45ODR2LjMxOWMwIC40OTktLjA4My44ODctLjI2MyAxLjE5Mi0uMTguMzA0LS40NTcuNDU3LS44My40NTctLjM4OSAwLS42NjYtLjE1My0uODQ2LS40NDQtLjE1Mi0uMjYzLS4yMzUtLjU5NS0uMjYzLTEuMDExdi0uMjkxYzAtLjQ4NS4wODMtLjg3My4yNjMtMS4xNzguMTgtLjMwNS40NDMtLjQ4NS44MzEtLjQ4NVptLTMuNDA3LTEuMTM2YTEuMTcgMS4xNyAwIDAgMC0uNzA2LjIzNSAxLjQ4MiAxLjQ4MiAwIDAgMC0uNDE1LjVsLS4wODMuMTY1LS4wNy0uODAzaC0xLjM1N3Y1LjQzMmgxLjQ1NFY1Ljc2NGEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiAyLjEySDQuMTE0djcuMzE3aDEuNDY4VjYuNzloMS4zM2MuODQ0IDAgMS40OTUtLjIwOCAxLjk4LS42MzguNDg1LS40My43Mi0uOTgzLjcyLTEuNjlzLS4yMzUtMS4yNjEtLjcyLTEuNjljLS40NDMtLjM4OS0xLjAzOS0uNjEtMS43NzMtLjYzOGwtLjIyMS0uMDE0Wm05Ljg0NyAxLjc3NGMtLjgwMyAwLTEuNDI2LjI2My0xLjg4My43NzYtLjQxNi40Ny0uNjM3IDEuMDY3LS42NzkgMS43NzN2LjMzM2MwIC44MTguMjIyIDEuNDgzLjY3OSAxLjk5NS40NTcuNTEzIDEuMDguNzc2IDEuODgzLjc3Ni44MDQgMCAxLjQyNy0uMjYzIDEuODg0LS43NzYuNDE1LS40Ny42MzctMS4wNTMuNjc4LTEuNzczdi0uMzMzYzAtLjgxNy0uMjIxLTEuNDgzLS42NzgtMS45OTUtLjQ1Ny0uNTEzLTEuMDgtLjc3Ni0xLjg4NC0uNzc2Wk0xOC4wMDMgMGE2IDYgMCAwIDEgMCAxMkgwVjMuNDIzQTMuNDIgMy40MiAwIDAgMSAzLjQyIDBoMTQuNTgzWiIvPjwvc3ZnPg==";function fu(e){let t=tn(),{onTranslateTheMainPage:n,onUserConfigChange:a,request:r,onTranslateLocalHtmlFile:u,onSwitchTranslationMode:o,onTranslateLocalSubtitleFile:i,onSetBuildinConfig:l,pageStatus:c,openEbookBuilderPage:s,openPricingPage:g,openEbookViewerPage:p,config:f,openAboutPage:d,onTranslateTheWholePage:b,onToggleEnabled:C,openOptionsPage:h,ontranslateToThePageEndImmediately:A,onSetPageLanguage:S,onToggleTranslate:U,onTranslateLocalPdfFile:O,onTranslatePdf:y,onRestorePage:T,ctx:k,currentUrl:v,currentLang:E,onClose:R,onTranslatePage:F,onSetLocalConfig:w,onMouseTriggerChanged:B,errorMsg:I,disabledButton:N,noPermissionPDF:P}=e,x=a,[D,M]=Te(""),[q,j]=Te(I),[$,z]=Te(null),[ae,J]=Te(null),{t:Y,lang:pe}=wt(),fe=70;pe.startsWith("zh")||(fe=75);let ue=null,G=null,ie=null,me=null,ce=null,ye=null,Se=null,xe=null,Z=null,ke=null,Le=null,Oe=null;Ne(()=>{Nt.get(Qt,null).then(W=>{W?(z(W),J(en(W))):J(!1)}).catch(W=>{J(!1)})},[]);let Ue=!0,it=At();if(f){it&&f&&(Ue=f.generalRule.showSponsorOnSafari);let{translationService:W,translationServices:de,translationUrlPattern:Ke}=f;Bn[W]&&(xe=Ks("translationService",W,k)),de&&de[W]?Oe=de[W]||{}:Oe={};try{Z=new URL(v||"")}catch{}if(v&&Zo(v)){ke=m3(Z.hostname),Le=g3(v);let{matches:Pe,excludeMatches:Fe}=Ke;G=Pe.includes(ke),ue=Pe.includes(Z.hostname),me=Fe.includes(ke),ie=Fe.includes(Z.hostname),ye=Pe.includes(Le),Se=Fe.includes(Le)}}if(f&&E&&E!=="auto"){let{translationLanguagePattern:W}=f,{matches:de}=W;de.includes(E)?ce=!0:ce=!1}let _t=W=>{W.preventDefault(),h()},ga=W=>{x(de=>(de.alpha?M("Success disable alpha!"):M("Success enable alpha!"),{...de,alpha:!de.alpha}))},zt=W=>{x(de=>({...de,translationMode:W})),o(W)},Dn=()=>{x(W=>({...W,translationArea:"body"})),b()},qn=()=>{x(W=>({...W,translationArea:"main"})),n()},Ie=(W,de,Ke,Pe)=>{if(W==="default"){x(wn=>{let Yt={...wn.translationUrlPattern};return{...wn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...wn.translationUrlPattern,matches:Qn([Z?.hostname,ke,v],Yt.matches),excludeMatches:Qn([Z?.hostname,ke,v],Yt.excludeMatches)}}});return}let Fe=W,Ln=Fe==="matches"?"excludeMatches":"matches";Z&&x(wn=>{let Yt={...wn.translationUrlPattern};return Yt[Fe]=Ls(de,Yt[Fe]),Pe.length>0&&(Yt[Fe]=Qn(Pe,Yt[Fe])),Yt[Ln]=Qn(Ke,Yt[Ln]),{...wn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...wn.translationUrlPattern,...Yt}}}),Fe==="matches"&&c==="Original"?setTimeout(()=>{F(),R()},100):Fe==="excludeMatches"&&c==="Translated"&&setTimeout(()=>{T(),R()},100)},Ht=W=>{if(!W){x(Pe=>{let Fe={...Pe.translationLanguagePattern};return{...Pe,translationLanguagePattern:{...Pe.translationLanguagePattern,matches:Qn(E,Fe.matches),excludeMatches:Qn(E,Fe.excludeMatches)}}});return}let de=W,Ke=de==="matches"?"excludeMatches":"matches";E&&x(Pe=>{let Fe={...Pe.translationLanguagePattern};return Fe[de]=Ls(E,Fe[de]),Fe[Ke]=Qn(E,Fe[Ke]),{...Pe,translationLanguagePattern:{...Pe.translationLanguagePattern,...Fe}}}),de==="matches"&&c==="Original"&&setTimeout(()=>{F(),R()},100)},at=Z?.pathname.toLowerCase().endsWith(".pdf"),We=Y("translate");c==="Translated"||c==="Error"?We=Y("show-original"):c==="Original"?at?za()&&Z.protocol==="file:"||P?We=Y("translate-firefox-local-pdf"):he()?We=Y("noSupportTranslate-pdf"):We=Y("translate-pdf"):We=Y("translate"):We=Y(c);let Vt=Y("translateToThePageEndImmediately");(c==="Original"||c==="Translated")&&(f.shortcuts.toggleTranslatePage&&(u4()&&k.rule.fingerCountToToggleTranslagePageWhenTouching>=2?We+=` (${Y(`fingers.${k.rule.fingerCountToToggleTranslagePageWhenTouching}`)})`:We+=` (${f.shortcuts.toggleTranslatePage})`),f.shortcuts.toggleTranslateToThePageEndImmediately&&(Vt+=` (${f.shortcuts.toggleTranslateToThePageEndImmediately})`));let Bt=[];k&&(Bt=vm(k,"translationService"));let Wn=W=>{W.preventDefault(),R()},dt=Pg(k.config.translationService,k.config.targetLanguage),cn=ye||ue||G,He=()=>ye?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!ye,onChange:W=>{let de=W.target.checked;Ie(de?"matches":"default",Le,[Le],[])}}),Y("alwaysTranslateSomePage")]}):ue?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!ue,onChange:W=>{let de=W.target.checked;Ie(de?"matches":"default",Z.hostname,[Z.hostname,ke,Le],[ke])}}),Y("alwaysTranslateSomeSiteOrWildSite")]}):G?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!G,onChange:W=>{let de=W.target.checked;Ie(de?"matches":"default",ke,[Le,Z.hostname,ke],[Z.hostname])}}),Y("alwaysTranslateSomeSiteOrWildSite")]}):null;return V("div",{children:[V("div",{class:"popup-container px-6 pt-6 max-content",children:[V("div",{class:"text-sm",children:[V("div",{class:"flex justify-between mb-3 items-center",children:[V("label",{class:"inline-block text-label",children:[Y("popupSourceLanguage"),"\uFF1A"]}),V(Hn,{maxWidth:186,items:Jt.map(W=>({label:Vo(W,f.interfaceLanguage),value:W,selected:W===k.sourceLanguage,onSelected:de=>{S(de.value)}}))})]}),f&&f.targetLanguage&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[Y("popupTarget"),"\uFF1A"]}),V(Hn,{maxWidth:186,items:dt.filter(W=>W!=="auto").map(W=>({label:Vo(W,f.interfaceLanguage),value:W,selected:W===f.targetLanguage,onSelected:de=>{x(Ke=>({...Ke,targetLanguage:de.value}))}}))})]}),xe&&Bt.length>0&&V(qt,{children:[V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[Y("popupService"),"\uFF1A"]}),V(Hn,{maxWidth:186,items:Bt.map(W=>({label:`${Y("translationServices."+W.id)}${W.ok?"":" "+(" "+(!ae&&!it&&W.providers&&W.providers.length>0?Y("goLoginOrAction"):Y("needAction")))}`,value:W.id,selected:W.selected,onSelected:de=>{let Ke=Bt.find(Pe=>Pe.id===de.value);if(Ke.ok){if(x(Pe=>({...Pe,translationService:Ke.id})),c!="Translated")return;Ke.props.length===0?setTimeout(()=>{F()},1):setTimeout(()=>{T()},1)}else x(Pe=>({...Pe,translationService:Ke.id})),setTimeout(()=>{h()},100)}}))})]}),Oe&&xe.props.length>0&&xe.props.map((W,de)=>V("div",{class:"pl-4 text-sm",children:V(ul,{field:W,value:Oe[W.name],onChange:Ke=>{x(Pe=>{let Fe=Pe.translationServices||{},Ln=Fe[xe.id]||{};return setTimeout(()=>{T()},1),{...Pe,translationServices:{...Fe,[xe.id]:{...Ln,[W.name]:Ke}}}})}},"field-"+de)},"service"+de))]}),Z&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:Y("forThisSite")}),V(Hn,{maxWidth:186,items:[{label:Y("default"),value:"default",selected:ue===!1&&ie===!1&&!G&&!me&&!ye&&!Se,onSelected:()=>{Ie("default",Z.hostname,[],[]);let W=Z.hostname,de=k.localConfig.tempTranslationUrlMatches||[],Ke=de.filter(Fe=>Fe.match!==W),Pe=!1;Ke.length!==de.length&&(Pe=!0),Pe&&w({...k.localConfig,tempTranslationUrlMatches:[...Ke]})}},Le&&{label:Y("alwaysTranslateSomeSite",{hostname:Y("currentUrl")}),value:"matchesUrl",selected:ye,onSelected:()=>{Ie("matches",Le,[Le],[])}},{label:Y("alwaysTranslateSomeSite",{hostname:Z.hostname}),value:"matches",selected:ue,onSelected:W=>{Ie(W.value,Z.hostname,[Z.hostname,ke,Le],[ke])}},ke&&{label:Y("alwaysTranslateSomeSite",{hostname:ke}),value:"matchesWild",selected:G,onSelected:()=>{Ie("matches",ke,[Le,Z.hostname,ke],[Z.hostname])}},Le&&{label:Y("neverTranslateSomeSite",{hostname:Y("currentUrl")}),value:"excludeMatchesUrl",selected:Se,onSelected:()=>{Ie("excludeMatches",Le,[Le],[])}},{label:Y("neverTranslateSomeSite",{hostname:Z.hostname}),value:"excludeMatches",selected:ie,onSelected:W=>{Ie(W.value,Z.hostname,[Z.hostname,ke,Le],[ke])}},ke&&{label:Y("neverTranslateSomeSite",{hostname:ke}),value:"excludeMatchesWild",selected:me,onSelected:()=>{Ie("excludeMatches",ke,[Z.hostname,Le,ke],[Z.hostname])}}].filter(Boolean)})]}),B&&Dr()&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[Y("mouse-translate"),"\uFF1A"]}),V(Hn,{maxWidth:186,items:Vu.filter(W=>!(Vu.includes(f.generalRule.mouseHoverHoldKey)&&W==="OtherCustom")).map(W=>{let de=Y("mouseHoldKey",{key:W}),Ke=Vu.includes(f.generalRule.mouseHoverHoldKey),Pe=W===f.generalRule.mouseHoverHoldKey;return W==="Auto"?de=Y("mouseHoldKeyAuto"):W==="Off"?de=Y("mouseHoldKeyOff"):W==="OtherCustom"?de=Ke?Y("mouseHoldKeyOther"):Y("mouseHoldKeyCustomKey",{key:f.generalRule.mouseHoverHoldKey}):W==="Other"&&(de=Y("mouseHoldKeyOther")),Ke||W==="OtherCustom"&&(Pe=!0),{label:de,value:W,selected:Pe,onSelected:Fe=>{Fe.value==="Other"?h("#interface"):B(Fe.value)}}})})]})]}),V("div",{class:"",children:V("button",{class:"py-2 mt-1 mb-5 main-button ",onClick:()=>{at?y&&y():U()},"aria-busy":c==="Translating",disabled:N||c==="Translating",children:We})}),V("div",{class:"text-sm",children:D}),V("div",{class:`pb-2 text-sm ${q?"":"display-none"}`,children:q}),V("div",{class:"flex items-center justify-between flex-wrap",children:[cn?V(He,{}):E&&E!=="auto"?V("label",{for:"alwaysTranslateThisLanugage",class:"text-sm text-label text-overflow-ellipsis max-w-20",children:[V("input",{type:"checkbox",id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",checked:!!ce,onChange:W=>{let de=W.target.checked;Ht(de?"matches":void 0)}}),Y("alwaysTranslateSomeLanguage",{language:Vo(E,f.interfaceLanguage,!1,!0)})]}):V("span",{}),V("div",{class:`flex flex-end flex-grow ${q?"display-none":""}`,children:V("span",{class:"immersive-translate-no-select muted text-sm",onClick:d3(7)(ga),children:["V",t,f.enabled?null:V("a",{href:"#",onClick:C,children:[" ","(",Y("hasBeenDisabled"),")"]})]})})]})]}),V("footer",{children:[V("div",{class:"px-6 text-label",children:V(ol,{isShowError:!1,request:r,setStorageBuildinConfig:l})}),V("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer text-label",children:[V("div",{class:"flex flex-row items-center justify-center secondary clickable",style:{width:70},onClick:_t,children:[V(al,{}),V("span",{class:"ml-1",children:Y("options")})]}),Ue?V("a",{title:Y(ae?"popup.openProForPro":"popup.openPro"),target:"_blank",href:ae?rs:us,children:V("img",{src:ae?il:sl})}):ae&&V("a",{title:Y(ae?"popup.openProForPro":"popup.openPro"),target:"_blank",href:ae?rs:us,children:V("img",{src:ae?il:sl})}),V(rl,{label:Y("more"),showArrow:!0,maxWidth:fe,onSelected:W=>{W.value==="openPremium"?(globalThis.open(_r),R()):W.value==="changeToOnlyTranslationMode"?zt("translation"):W.value==="changeToDualTranslationMode"?zt("dual"):W.value==="translateTheWholePage"?b():W.value==="translateToThePageEndImmediately"?A():W.value==="translateTheMainPage"?n():W.value==="showTranslationOnly"||(W.value==="translateLocalPdfFile"?O&&O():W.value==="translateLocalHtmlFile"?u&&u():W.value==="translateLocalSubtitleFile"?i&&i():W.value==="donate"?(globalThis.open(f.donateUrl),R()):W.value==="feedback"?(globalThis.open(f.feedbackUrl),R()):W.value==="options"?(h(),R()):W.value==="changeToTranslateTheWholePage"?Dn():W.value==="changeToTranslateTheMainPage"?qn():W.value==="about"?d():W.value==="toggleEnabled"?C():W.value==="openEbookViewer"?p():W.value==="openEbookBuilder"?s():W.value==="goPro"&&g())},menus:[f.translationMode==="dual"&&{label:"\u{1F524} "+Y("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},f.translationMode==="translation"&&{label:"\u{1F521} "+Y("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},f.translationArea==="main"&&{label:"\u{1F480} "+Y("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},f.translationArea==="body"&&{label:"\u{1F4D6} "+Y("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},{label:"\u26A1 "+Vt,value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+Y("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+Y("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+Y("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},!he()&&{label:"\u{1F310} "+Y("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+Y("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},ae===!1&&Ue&&{label:"\u{1F451} "+Y("upgradeToPro"),value:"goPro"},{label:"\u2764\uFE0F "+Y(Ue?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})]})]})}m();m();m();m();var ll={get:(e,t,n)=>{let a=t===void 0?e:{[e]:t};return ee.storage[n].get(a)},set:(e,t,n)=>ee.storage[n].set({[e]:t})};function Xo(e,t,n){let[a]=Te(()=>typeof t=="function"?t():t),[r]=Te(n),[u,o]=Te(a),[i,l]=Te(!1),[c,s]=Te("");Ne(()=>{ll.get(e,a,r).then(p=>{p[e]&&o(p[e]),l(!0),s("")}).catch(p=>{l(!1),s(p)})},[e,a,r]);let g=Kn(p=>{let f=typeof p=="function"?p(u):p;H.debug("new settings",f),ll.set(e,f,r).then(()=>{o(f),l(!0),s("")}).catch(d=>{o(f),l(!1),s(d)})},[r,e,u]);return[u,g,i,c]}m();function cl(e,t,n){let a=[];return function(){let[u,o,i,l]=Xo(e,t,n),c=Kn(s=>{for(let g of a)g(s)},[]);return Ne(()=>(a.push(o),()=>{a.splice(a.indexOf(o),1)}),[o]),[u,c,i,l]}}function p3(e,t){return cl(e,t,"sync")}var H9="userConfig",q9=null,W9=p3(H9,q9);function hr(e){let[t,n,a,r]=W9(),u=Kn(o=>{let i=typeof o=="function"?o(t):o;i&&(i.updatedAt=new Date().toISOString()),n(i),e&&e(i)},[t]);return[t,u,a,r,n]}m();m();async function f3(e){try{let t=new Date;H.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await ee.storage.local.set({[k4]:t.toISOString()}),await $9(),he()||await h3()}catch(t){H.error("run cron task failed",t)}}async function $9(){try{let e=await Tn(),t=await se({url:Mr}),n=e.buildinConfigUpdatedAt,a=new Date(n),r=t.buildinConfigUpdatedAt,u=new Date(r),o=t.minVersion,i=ee.runtime.getManifest().version;pu(i,o)?u>a?(await ee.storage.local.set({buildinConfig:t}),H.info(`sync remote rules success, latest: ${new Date(r).toLocaleString()}`)):H.debug(`no need to sync rules, latest: ${a}`):H.info(`local version is too old, please update to ${o} or later`)}catch(e){H.error("sync rules error: ",e)}}m();m();m();m();m();var dl;function Tl(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function A3(e,t=","){return e.map(Tl).join(t)}var k3=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function ti(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function ni(e,t="@media "){return t+Kt(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(a=>`(${a}-width:${n[a]})`).join(" and "))).join(",")}function Kt(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function K9(){}var ht={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function S3(e){return e.match(/[-=:;]/g)?.length||0}function bl(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(S3(e),15)<<18}var G9=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function Cl({n:e,i:t,v:n=[]},a,r,u){e&&(e=Tl({n:e,i:t,v:n})),u=[...Kt(u)];for(let i of n){let l=a.theme("screens",i);for(let c of Kt(l&&ni(l)||a.v(i))){var o;u.push(c),r|=l?67108864|bl(c):i=="dark"?1073741824:c[0]=="@"?bl(c):(o=c,1<<~(/:([a-z-]+)/.test(o)&&~G9.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:r,r:u,i:t}}var wl=new Map;function b3(e){if(e.d){let t=[],n=ml(e.r.reduce((a,r)=>r[0]=="@"?(t.push(r),a):r?ml(a,u=>ml(r,o=>{let i=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(i){let l=u.indexOf(i[1]);return~l?u.slice(0,l)+i[0]+u.slice(l+i[1].length):gl(u,o)}return gl(o,u)})):a,"&"),a=>gl(a,e.n?"."+k3(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((a,r)=>r+"{"+a+"}",e.d)}}function ml(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,a,r)=>t(a)+r)}function gl(e,t){return e.replace(/&/g,t)}var y3=new Intl.Collator("en",{numeric:!0});function V9(e,t){for(var n=0,a=e.length;n>1;0>=D3(e[r],t)?n=r+1:a=r}return a}function D3(e,t){let n=e.p&ht.o;return n==(t.p&ht.o)&&(n==ht.b||n==ht.o)?0:e.p-t.p||e.o-t.o||y3.compare(x3(e.n),x3(t.n))||y3.compare(E3(e.n),E3(t.n))}function x3(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function E3(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function pl(e,t){return Math.round(parseInt(e,16)*t)}function da(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:a}=t,r=a?`var(${a})`:n;if(e.includes(""))return e.replace("",r);if(e[0]=="#"&&(e.length==4||e.length==7)){let u=(e.length-1)/3,o=[17,1,.062272][u-1];return`rgba(${[pl(e.substr(1,u),o),pl(e.substr(1+u,u),o),pl(e.substr(1+2*u,u),o),r]})`}return r=="1"?e:r=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${r})`)}function L3(e,t,n,a,r=[]){return function u(o,{n:i,p:l,r:c=[],i:s},g){let p=[],f="",d=0,b=0;for(let A in o||{}){var C,h;let S=o[A];if(A[0]=="@"){if(!S)continue;if(A[1]=="a"){p.push(...M3(i,l,Al(""+S),g,l,c,s,!0));continue}if(A[1]=="l"){for(let U of Kt(S))p.push(...u(U,{n:i,p:(C=ht[A[7]],l&~ht.o|C),r:A[7]=="d"?[]:c,i:s},g));continue}if(A[1]=="i"){p.push(...Kt(S).map(U=>({p:-1,o:0,r:[],d:A+" "+U})));continue}if(A[1]=="k"){p.push({p:ht.d,o:0,r:[A],d:u(S,{p:ht.d},g).map(b3).join("")});continue}if(A[1]=="f"){p.push(...Kt(S).map(U=>({p:ht.d,o:0,r:[A],d:u(U,{p:ht.d},g).map(b3).join("")})));continue}}if(typeof S!="object"||Array.isArray(S))A=="label"&&S?i=S+ti(JSON.stringify([l,s,o])):(S||S===0)&&(A=A.replace(/[A-Z]/g,U=>"-"+U.toLowerCase()),b+=1,d=Math.max(d,(h=A)[0]=="-"?0:S3(h)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(h)?+!!RegExp.$1||-!!RegExp.$2:0)+1),f+=(f?";":"")+Kt(S).map(U=>g.s(A,P3(""+U,g.theme)+(s?" !important":""))).join(";"));else if(A[0]=="@"||A.includes("&")){let U=l;A[0]=="@"&&(A=A.replace(/\bscreen\(([^)]+)\)/g,(O,y)=>{let T=g.theme("screens",y);return T?(U|=67108864,ni(T,"")):O}),U|=bl(A)),p.push(...u(S,{n:i,p:U,r:[...c,A],i:s},g))}else p.push(...u(S,{p:l,r:[...c,A]},g))}return p.unshift({n:i,p:l,o:Math.max(0,15-b)+1.5*Math.min(d||15,15),r:c,d:f}),p.sort(D3)}(e,Cl(t,n,a,r),n)}function P3(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,a,r,u,o="")=>{let i=t(r,o);return typeof i=="function"&&/color|fill|stroke/i.test(r)?da(i):""+Kt(i).filter(l=>Object(l)!==l)})}function vl(e,t){let n,a=[];for(let r of e)r.d&&r.n?n?.p==r.p&&""+n.r==""+r.r?(n.c=[n.c,r.c].filter(Boolean).join(" "),n.d=n.d+";"+r.d):a.push(n={...r,n:r.n&&t}):a.push({...r,n:r.n&&t});return a}function yl(e,t,n=ht.u,a,r){let u=[];for(let o of e)for(let i of function(l,c,s,g,p){l={...l,i:l.i||p};let f=function(d,b){let C=wl.get(d.n);return C?C(d,b):b.r(d.n,d.v[0]=="dark")}(l,c);return f?typeof f=="string"?({r:g,p:s}=Cl(l,c,s,g),vl(yl(Al(f),c,s,g,l.i),l.n)):Array.isArray(f)?f.map(d=>{var b,C;return{o:0,...d,r:[...Kt(g),...Kt(d.r)],p:(b=s,C=d.p??s,b&~ht.o|C)}}):L3(f,l,c,s,g):[{c:Tl(l),p:0,o:0,r:[]}]}(o,t,n,a,r))u.splice(V9(u,i),0,i);return u}function M3(e,t,n,a,r,u,o,i){return vl((i?n.flatMap(l=>yl([l],a,r,u,o)):yl(n,a,r,u,o)).map(l=>l.p&ht.o&&(l.n||t==ht.b)?{...l,p:l.p&~ht.o|t,o:0}:l),e)}function Y9(e,t,n,a){var r;return r=(u,o)=>{let{n:i,p:l,r:c,i:s}=Cl(u,o,t);return n&&M3(i,t,n,o,l,c,s,a)},wl.set(e,r),e}function fl(e,t,n){if(e[e.length-1]!="("){let a=[],r=!1,u=!1,o="";for(let i of e)if(!(i=="("||/[~@]$/.test(i))){if(i[0]=="!"&&(i=i.slice(1),r=!r),i.endsWith(":")){a[i=="dark:"?"unshift":"push"](i.slice(0,-1));continue}i[0]=="-"&&(i=i.slice(1),u=!u),i.endsWith("-")&&(i=i.slice(0,-1)),i&&i!="&"&&(o+=(o&&"-")+i)}o&&(u&&(o="-"+o),t[0].push({n:o,v:a.filter(J9),i:r}))}}function J9(e,t,n){return n.indexOf(e)==t}var T3=new Map;function Al(e){let t=T3.get(e);if(!t){let n=[],a=[[]],r=0,u=0,o=null,i=0,l=(c,s=0)=>{r!=i&&(n.push(e.slice(r,i+s)),c&&fl(n,a)),r=i+1};for(;i1?g.slice(0,-1)+ti(JSON.stringify([g,p])):g+"("+A3(p)+")",ht.a,p,/@$/.test(g))],a)}s=n.lastIndexOf("(",s-1)}n.length=s+1}else/[~@]/.test(c)&&e[i+1]=="("&&a.unshift([])}l(!0),T3.set(e,t=a[0])}return t}function F3(e,t,n){return t.reduce((a,r,u)=>a+n(r)+e[u+1],e[0])}function _3(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?F3(e,t,n=>hl(n).trim()):t.filter(Boolean).reduce((n,a)=>n+hl(a),e?hl(e):"")}function hl(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=_3(e[0],e.slice(1)))&&(n+=" "+t);else for(let a in e)e[a]&&(n+=" "+a);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var kM=B3("@"),SM=B3("~");function B3(e){return new Proxy(function(n,...a){return t("",n,a)},{get(n,a){return a in n?n[a]:function(r,...u){return t(a,r,u)}}});function t(n,a,r){return A3(Al(n+e+"("+_3(a,r)+")"))}}function xl(e,t){return Array.isArray(e)?C3(F3(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?C3(e):[e]}var Q9=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function C3(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],a=[n[0]],r=[];for(;t=Q9.exec(e);)t[4]&&(n.shift(),r.shift()),t[3]?(r.unshift(t[3]),n.unshift({}),a.push(r.reduce((u,o)=>({[o]:u}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),a.push(r.reduce((u,o)=>({[o]:u}),n[0]))),n[0][t[1]]=t[2]);return a}function R3(e,...t){var n;let a=xl(e,t),r=(a.find(u=>u.label)?.label||"css")+ti(JSON.stringify(a));return n=(u,o)=>vl(a.flatMap(i=>L3(i,u,o,ht.o)),r),wl.set(r,n),r}var DM=new Proxy(function(e,t){return w3("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,a){return w3(t,n,a)}}});function w3(e,t,n){return{toString(){return R3({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function te(e,t,n){return[e,Z9(t,n)]}function Z9(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,a)=>({[e]:t?t(n,a):El(n,1)}):n=>e||{[n[1]]:El(n,2)}}function El(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function ne(e,t,n,a){return[e,X9(t,n,a)]}function X9(e,t,n){let a=typeof t=="string"?(r,u)=>({[t]:n?n(r,u):r._}):t||(({1:r,_:u},o,i)=>({[r||i]:u}));return(r,u)=>{let o=O3(e||r[1]),i=u.theme(o,r.$$)??br(r.$$,o,u);if(i!=null)return r._=El(r,0,i),a(r,u,o)}}function ot(e,t={},n){return[e,eb(t,n)]}function eb(e={},t){return(n,a)=>{let{section:r=O3(n[0]).replace("-","")+"Color"}=e,[u,o]=tb(n.$$);if(!u)return;let i=a.theme(r,u)||br(u,r,a);if(!i||typeof i=="object")return;let{opacityVariable:l=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:c=r.replace("Color","Opacity"),property:s=r,selector:g}=e,p=a.theme(c,o||"DEFAULT")||o&&br(o,c,a),f=t||(({_:b})=>{let C=hu(s,b);return g?{[g]:C}:C});n._={value:da(i,{opacityVariable:l||void 0,opacityValue:p||void 0}),color:b=>da(i,b),opacityVariable:l||void 0,opacityValue:p||void 0};let d=f(n,a);if(!n.dark){let b=a.d(r,u,i);b&&b!==i&&(n._={value:da(b,{opacityVariable:l||void 0,opacityValue:p||"1"}),color:C=>da(b,C),opacityVariable:l||void 0,opacityValue:p||void 0},d={"&":d,[a.v("dark")]:f(n,a)})}return d}}function tb(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function hu(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function br(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=ei(P3(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function O3(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function ei(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",a,r="")=>ei(n)+a+ei(r)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var LM=Symbol();var I3=new Proxy(K9,{apply(e,t,n){return dl(n[0])},get(e,t){let n=dl[t];return typeof n=="function"?function(){return n.apply(dl,arguments)}:n}});var PM=function e(t){return new Proxy(function(n,...a){return v3(t,"",n,a)},{get(n,a){return a==="bind"?e:a in n?n[a]:function(r,...u){return v3(t,a,r,u)}}})}();function v3(e,t,n,a){return{toString(){let r=xl(n,a),u=k3(t+ti(JSON.stringify([t,r])));return(typeof e=="function"?e:I3)(R3({[`@keyframes ${u}`]:xl(n,a)})),u}}}m();m();m();m();m();var N3={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...Gt(4,"rem",4,.5,.5),...Gt(12,"rem",4,5),14:"3.5rem",...Gt(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Me("blur"),backdropBrightness:Me("brightness"),backdropContrast:Me("contrast"),backdropGrayscale:Me("grayscale"),backdropHueRotate:Me("hueRotate"),backdropInvert:Me("invert"),backdropOpacity:Me("opacity"),backdropSaturate:Me("saturate"),backdropSepia:Me("sepia"),backgroundColor:Me("colors"),backgroundImage:{none:"none"},backgroundOpacity:Me("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...Gt(200,"",100,0,50),...Gt(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Me("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Me("spacing"),borderWidth:{DEFAULT:"1px",...un(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Me("colors"),caretColor:Me("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...Gt(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Me("borderColor"),divideOpacity:Me("borderOpacity"),divideWidth:Me("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...bu(2,6),...bu(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Me("spacing"),gradientColorStops:Me("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...bu(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...bu(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...Gt(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...Gt(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Me("spacing"),placeholderColor:Me("colors"),placeholderOpacity:Me("opacity"),outlineColor:Me("colors"),outlineOffset:un(8,"px"),outlineWidth:un(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Me("colors"),ringOffsetWidth:un(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...un(8,"px")},rotate:{...un(2,"deg"),...un(12,"deg",3),...un(180,"deg",45)},saturate:Gt(200,"",100,0,50),scale:{...Gt(150,"",100,0,50),...Gt(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Me("spacing"),scrollPadding:Me("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...un(2,"deg"),...un(12,"deg",3)},space:Me("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:Gt(2),textColor:Me("colors"),textDecorationColor:Me("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...un(8,"px")},textUnderlineOffset:{auto:"auto",...un(8,"px")},textIndent:Me("spacing"),textOpacity:Me("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Me("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...bu(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...Gt(50,"",1,0,10),auto:"auto"}};function bu(e,t){let n={};do for(var a=1;at(e)}var YM={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${N3.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${N3.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},QM=[te("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:br(`[${t}]`,"",n)}}})),te("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),ne("aspect-","aspectRatio"),te("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:a,padding:r}=t("container"),u={width:"100%",marginRight:a&&"auto",marginLeft:a&&"auto",...o("xs")};for(let i in n){let l=n[i];typeof l=="string"&&(u[ni(l)]={"&":{maxWidth:l,...o(i)}})}return u;function o(i){let l=r&&(typeof r=="string"?r:r[i]||r.DEFAULT);if(l)return{paddingRight:l,paddingLeft:l}}}),ne("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),te("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),te("box-(border|content)","boxSizing",({1:e})=>e+"-box"),te("hidden",{display:"none"}),te("table-(auto|fixed)","tableLayout"),te(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",te("isolate","isolation"),te("object-(contain|cover|fill|none|scale-down)","objectFit"),ne("object-","objectPosition"),te("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",ai),te("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),te("(static|fixed|absolute|relative|sticky)","position"),ne("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),ne("-?(top|bottom|left|right)(?:$|-)","inset"),te("(visible|collapse)","visibility"),te("invisible",{visibility:"hidden"}),ne("-?z-","zIndex"),te("flex-((row|col)(-reverse)?)","flexDirection",j3),te("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),ne("(flex-(?:grow|shrink))(?:$|-)"),ne("(flex)-"),ne("grow(?:$|-)","flexGrow"),ne("shrink(?:$|-)","flexShrink"),ne("basis-","flexBasis"),ne("-?(order)-"),"-?(order)-(\\d+)",ne("grid-cols-","gridTemplateColumns"),te("grid-cols-(\\d+)","gridTemplateColumns",q3),ne("col-","gridColumn"),te("col-(span)-(\\d+)","gridColumn",H3),ne("col-start-","gridColumnStart"),te("col-start-(auto|\\d+)","gridColumnStart"),ne("col-end-","gridColumnEnd"),te("col-end-(auto|\\d+)","gridColumnEnd"),ne("grid-rows-","gridTemplateRows"),te("grid-rows-(\\d+)","gridTemplateRows",q3),ne("row-","gridRow"),te("row-(span)-(\\d+)","gridRow",H3),ne("row-start-","gridRowStart"),te("row-start-(auto|\\d+)","gridRowStart"),ne("row-end-","gridRowEnd"),te("row-end-(auto|\\d+)","gridRowEnd"),te("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>ai(j3(e))),te("grid-flow-(dense)","gridAutoFlow"),ne("auto-cols-","gridAutoColumns"),ne("auto-rows-","gridAutoRows"),ne("gap-x(?:$|-)","gap","columnGap"),ne("gap-y(?:$|-)","gap","rowGap"),ne("gap(?:$|-)","gap"),"(justify-(?:items|self))-",te("justify-","justifyContent",U3),te("(content|items|self)-",e=>({["align-"+e[1]]:U3(e)})),te("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),ne("p([xytrbl])?(?:$|-)","padding",yr("padding")),ne("-?m([xytrbl])?(?:$|-)","margin",yr("margin")),ne("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),te("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),ne("w-","width"),ne("min-w-","minWidth"),ne("max-w-","maxWidth"),ne("h-","height"),ne("min-h-","minHeight"),ne("max-h-","maxHeight"),ne("font-","fontWeight"),ne("font-","fontFamily",({_:e})=>typeof(e=Kt(e))[1]=="string"?{fontFamily:Cn(e)}:{fontFamily:Cn(e[0]),...e[1]}),te("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),te("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),te("italic","fontStyle"),te("not-italic",{fontStyle:"normal"}),te("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...ma({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),ne("tracking-","letterSpacing"),ne("leading-","lineHeight"),te("list-(inside|outside)","listStylePosition"),ne("list-","listStyleType"),te("list-","listStyleType"),ne("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),ot("placeholder-",{property:"color",selector:"&::placeholder"}),te("text-(left|center|right|justify|start|end)","textAlign"),te("text-(ellipsis|clip)","textOverflow"),ne("text-opacity-","textOpacity","--tw-text-opacity"),ot("text-",{property:"color"}),ne("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),ne("indent-","textIndent"),te("(overline|underline|line-through)","textDecorationLine"),te("no-underline",{textDecorationLine:"none"}),ne("underline-offset-","textUnderlineOffset"),ot("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),ne("decoration-","textDecorationThickness"),te("decoration-","textDecorationStyle"),te("(uppercase|lowercase|capitalize)","textTransform"),te("normal-case",{textTransform:"none"}),te("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),te("align-","verticalAlign"),te("whitespace-","whiteSpace"),te("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),te("break-words",{overflowWrap:"break-word"}),te("break-all",{wordBreak:"break-all"}),te("break-keep",{wordBreak:"keep-all"}),ot("caret-",{opacityVariable:!1,opacitySection:"opacity"}),ot("accent-",{opacityVariable:!1,opacitySection:"opacity"}),te("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${Sa(e," ")},var(--tw-gradient-stops))`),ot("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),ot("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),ot("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),te("bg-(fixed|local|scroll)","backgroundAttachment"),te("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),te(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),te("bg-blend-","backgroundBlendMode"),te("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),ne("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),ot("bg-",{section:"backgroundColor"}),ne("bg-","backgroundImage"),ne("bg-","backgroundPosition"),te("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",ai),ne("bg-","backgroundSize"),ne("rounded(?:$|-)","borderRadius"),ne("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${Sa(n[0])}-radius`]:t,[`border-${Sa(n[1])}-radius`]:t}}),te("border-(collapse|separate)","borderCollapse"),ne("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),te("border-(solid|dashed|dotted|double|none)","borderStyle"),ne("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...ma({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),ot("border-([xytrbl])-",{section:"borderColor"},yr("border","Color")),ot("border-"),ne("border-([xytrbl])(?:$|-)","borderWidth",yr("border","Width")),ne("border(?:$|-)","borderWidth"),ne("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),te("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),te("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),ne("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${Sa(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${Sa(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),ot("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),ne("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),ot("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),ne("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),te("ring-inset",{"--tw-ring-inset":"inset"}),ot("ring-",{property:"--tw-ring-color"}),ne("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...ma({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":da(t("ringOffsetColor","","#fff")),"--tw-ring-color":da(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),ot("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),ne("shadow(?:$|-)","boxShadow",({_:e})=>({...ma({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Cn(e),"--tw-shadow-colored":Cn(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),ne("(opacity)-"),te("mix-blend-","mixBlendMode"),...z3(),...z3("backdrop-"),ne("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Cn(e),transitionTimingFunction:e._=="none"?void 0:Cn(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:Cn(t("transitionDuration",""))})),ne("duration(?:$|-)","transitionDuration","transitionDuration",Cn),ne("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Cn),ne("delay(?:$|-)","transitionDelay","transitionDelay",Cn),ne("animate(?:$|-)","animation",(e,{theme:t,h:n,e:a})=>{let r=Cn(e),u=r.split(" "),o=t("keyframes",u[0]);return o?{["@keyframes "+(u[0]=a(n(u[0])))]:o,animation:u.join(" ")}:{animation:r}}),"(transform)-(none)",te("transform",Sl),te("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":W3(e=="gpu")})),ne("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...Sl()})),ne("-?(rotate)-","rotate",kl),ne("-?(translate-[xy])-","translate",kl),ne("-?(skew-[xy])-","skew",kl),te("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",ai),"(appearance)-",ne("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",ne("(cursor)-"),"(cursor)-",te("snap-(none)","scroll-snap-type"),te("snap-(x|y|both)",({1:e})=>({...ma({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),te("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),te("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),te("snap-(normal|always)","scroll-snap-stop"),te("scroll-(auto|smooth)","scroll-behavior"),ne("scroll-p([xytrbl])?(?:$|-)","padding",yr("scroll-padding")),ne("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",yr("scroll-margin")),te("touch-(auto|none|manipulation)","touch-action"),te("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...ma({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),te("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),te("outline",{outlineStyle:"solid"}),te("outline-(dashed|dotted|double)","outlineStyle"),ne("-?(outline-offset)-"),ot("outline-",{opacityVariable:!1,opacitySection:"opacity"}),ne("outline-","outlineWidth"),"(pointer-events)-",ne("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],te("select-(none|text|all|auto)","userSelect"),ot("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),ot("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),ne("stroke-","strokeWidth"),te("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),te("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function ai(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function j3(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function Sa(e,t="-"){let n=[];for(let a of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[a]);return n.join(t)}function Cn(e){return e&&""+(e._||e)}function U3({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function yr(e,t=""){return({1:n,_:a})=>{let r={x:"lr",y:"tb"}[n]||n+n;return r?{...hu(e+"-"+Sa(r[0])+t,a),...hu(e+"-"+Sa(r[1])+t,a)}:hu(e+t,a)}}function z3(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let a of t)n[`--tw-${e}${a}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...ma(n),[`${e}filter`]:t.map(a=>`var(--tw-${e}${a})`).join(" ")},[`(${e}filter)-(none)`,te(`${e}filter`,n),...t.map(a=>ne(`${a[0]=="h"?"-?":""}(${e}${a})(?:$|-)`,a,({1:r,_:u})=>({[`--tw-${r}`]:Kt(u).map(o=>`${a}(${o})`).join(" "),...n})))]}function kl({1:e,_:t}){return{["--tw-"+e]:t,...Sl()}}function Sl(){return{...ma({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":W3()}),transform:"var(--tw-transform)"}}function W3(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function H3({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function q3({1:e}){return`repeat(${e},minmax(0,1fr))`}function ma(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}m();m();var ri=globalThis||(typeof window<"u"?window:self),rb=Object.create,Ll=Object.defineProperty,ub=Object.getOwnPropertyDescriptor,ob=Object.getOwnPropertyNames,ib=Object.getPrototypeOf,sb=Object.prototype.hasOwnProperty,lb=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),cb=(e,t)=>{for(var n in t)Ll(e,n,{get:t[n],enumerable:!0})},Dl=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ob(t))!sb.call(e,r)&&r!==n&&Ll(e,r,{get:()=>t[r],enumerable:!(a=ub(t,r))||a.enumerable});return e},db=(e,t,n)=>(Dl(e,t,"default"),n&&Dl(n,t,"default")),K3=(e,t,n)=>(n=e!=null?rb(ib(e)):{},Dl(t||!e||!e.__esModule?Ll(n,"default",{value:e,enumerable:!0}):n,e)),G3=lb((e,t)=>{(function(n,a){typeof define=="function"&&define.amd?define([],a):typeof e<"u"?a():(a(),n.FileSaver={})})(e,function(){"use strict";function n(c,s){return typeof s>"u"?s={autoBom:!1}:typeof s!="object"&&(s={autoBom:!s}),s.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function a(c,s,g){var p=new XMLHttpRequest;p.open("GET",c),p.responseType="blob",p.onload=function(){l(p.response,s,g)},p.onerror=function(){},p.send()}function r(c){var s=new XMLHttpRequest;s.open("HEAD",c,!1);try{s.send()}catch{}return 200<=s.status&&299>=s.status}function u(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var s=document.createEvent("MouseEvents");s.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(s)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof ri=="object"&&ri.global===ri?ri:void 0,i=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(c,s,g){var p=o.URL||o.webkitURL,f=document.createElement("a");s=s||c.name||"download",f.download=s,f.rel="noopener",typeof c=="string"?(f.href=c,f.origin===location.origin?u(f):r(f.href)?a(c,s,g):u(f,f.target="_blank")):(f.href=p.createObjectURL(c),setTimeout(function(){p.revokeObjectURL(f.href)},4e4),setTimeout(function(){u(f)},0))}:"msSaveOrOpenBlob"in navigator?function(c,s,g){if(s=s||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(n(c,g),s);else if(r(c))a(c,s,g);else{var p=document.createElement("a");p.href=c,p.target="_blank",setTimeout(function(){u(p)})}}:function(c,s,g,p){if(p=p||open("","_blank"),p&&(p.document.title=p.document.body.innerText="downloading..."),typeof c=="string")return a(c,s,g);var f=c.type==="application/octet-stream",d=/constructor/i.test(o.HTMLElement)||o.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||f&&d||i)&&typeof FileReader<"u"){var C=new FileReader;C.onloadend=function(){var S=C.result;S=b?S:S.replace(/^data:[^;]*;/,"data:attachment/file;"),p?p.location.href=S:location=S,p=null},C.readAsDataURL(c)}else{var h=o.URL||o.webkitURL,A=h.createObjectURL(c);p?p.location=A:location.href=A,p=null,setTimeout(function(){h.revokeObjectURL(A)},4e4)}});o.saveAs=l.saveAs=l,typeof t<"u"&&(t.exports=l)})}),V3={};cb(V3,{default:()=>ui});var mb=K3(G3());db(V3,K3(G3()));var{default:$3,...gb}=mb,ui=$3!==void 0?$3:gb;m();m();m();m();m();m();var IF=Be().REDIRECT_URL;function Tb(){let[e,t]=Te(null);return Ne(()=>{ta().then(a=>{t(a)})},[]),[e,a=>{t(a),nn(a)}]}async function Cb(e,t,n){try{if(t===null)return"noupdate";let a=await Ab(e),r=await ta();r.accountLastSyncedAt=Date.now(),H.debug("settings",t),H.debug("local settings.updatedAt",t.updatedAt),H.debug("remote settings.updatedAt",a.updatedAt),H.debug("last synced at",r.accountLastSyncedAt);let u=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(u=!0),!u&&t.updatedAt>a.updatedAt&&(u=!0),H.debug("isUpload",u),u)return await kb(e,t),await nn(r),"upload";let o=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(o=!0),!o&&t.updatedAt0&&Nt.remove(Qt),a}}function oi(e,t){let n=vb(),[a,r]=Tb();Ne(()=>{!n||!n.token||a&&a.proAutoSync===!1||wb(n)&&Cb(n.token,e,t)},[e,n])}function wb(e){return en(e)?!0:new Date(e.createTime){Nt.get(Qt,null).then(n=>{t(n)})},[t]),e}function Ab(e){return(location.href?.indexOf("popup.html")>0?Nn:se)({responseType:"json",url:as+"/v1/user/settings",method:"get",headers:{token:e}}).then(n=>n.data)}function kb(e,t){return(location.href?.indexOf("popup.html")>0?Nn:se)({responseType:"json",url:as+"/v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(a=>a.data)}function Ml(e){let{onClose:t}=e,[n,a]=Te("Original"),[r,u,o,i]=hr(()=>{setTimeout(()=>{S("updateGlobalContext",!1)()},250)});oi(r,u);let[l,c]=Te(null),[s,g]=Te(globalThis.location.href),[p,f]=Te("auto"),[d,b]=Te(null),C=N=>{a(N.detail)},h=N=>{f(N);let P=Bu(s,N,l.sourceLanguageUrlPattern);u(x=>({...x,sourceLanguageUrlPattern:P})),an(N)},A=()=>{g(globalThis.location.href)};Ne(()=>(document.addEventListener(Hu,C,!1),Tn().then(N=>{c(N);let P=pt();f(P);let x=$e();a(x),f3(N.interval)}),document.addEventListener("urlChange",A),()=>{document.removeEventListener("pageTranslatedStatus",C),document.removeEventListener("urlChange",A)}),[]),Ne(()=>{Tn().then(N=>{c(N)})},[r]),Ne(()=>{s&&l&&jn({url:s,config:l}).then(N=>{b(N)})},[s,l]);let S=(N,P,x={})=>()=>{gr({method:N,data:x||{}}),P&&t()},U=()=>{t()},O=()=>{u(N=>({...N,enabled:!N.enabled})),setTimeout(()=>{U()},50)},y=()=>{Pl(),setTimeout(()=>{U()},50)},T=()=>{Pl(),setTimeout(()=>{U()},50)},k=(N="")=>{xr(!0,N),setTimeout(()=>{t()},50)},v=()=>{li(Yu),setTimeout(()=>{globalThis.close()},50)},E=()=>{si(),setTimeout(()=>{t()},50)},R=()=>{ci(),setTimeout(()=>{t()},50)},F=()=>{Z3(),setTimeout(()=>{t()},50)},w=()=>{di(),setTimeout(()=>{t()},50)},B=()=>{X3(),setTimeout(()=>{t()},50)},I=N=>{u(P=>({...P,generalRule:{...P.generalRule,mouseHoverHoldKey:N}}))};return!l||!d?null:V(fu,{openEbookViewerPage:R,openEbookBuilderPage:w,onSwitchTranslationMode:N=>{S("switchTranslationMode",!0,{mode:N})()},onTranslateLocalHtmlFile:F,onTranslateLocalSubtitleFile:B,request:se,onClose:U,onToggleEnabled:O,onTranslateTheWholePage:S("translateTheWholePage",!0),openOptionsPage:k,openPricingPage:v,onToggleTranslate:S("toggleTranslatePage",!0),onTranslateTheMainPage:S("translateTheMainPage",!0),ontranslateToThePageEndImmediately:S("translateToThePageEndImmediately",!0),onTranslatePage:S("translatePage",!0),onRestorePage:S("restorePage",!1),onTranslatePdf:y,openAboutPage:E,onTranslateLocalPdfFile:T,onSetPageLanguage:h,onUserConfigChange:u,config:l,pageStatus:n,ctx:d,currentUrl:s,currentLang:p,onSetLocalConfig:ii,onSetBuildinConfig:Q3,onMouseTriggerChanged:I})}function Sb(e,t){for(let n of t){if(he()&&!za()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}var Fl={position:"right",right:0,top:335},Mt={...Fl},pi=!1,Da=null,Sn=null,fi=null,_l=null,Er=null,Bl=null,ep=6,mi,gi,np=null,ap=null;async function rp(){let e=Be();Bl=await ip(),Mt=Bl.pagePopupConfig||Mt;let t=document.createElement("div");t.id="immersive-translate-popup",t.setAttribute("style","all: initial"),document.documentElement.appendChild(t);let n=t.attachShadow({mode:"open"});_l=n;let a=[e.IMMERSIVE_TRANSLATE_PICO_CSS,e.IMMERSIVE_TRANSLATE_COMMON_CSS,e.IMMERSIVE_TRANSLATE_POPUP_CSS,e.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);Sb(n,[a]);let r=document.createElement("div");r.innerHTML=e.IMMERSIVE_TRANSLATE_POPUP_HTML,n.appendChild(r),Da=n.querySelector("#immersive-translate-popup-container");let o=n.querySelector("#immersive-translate-popup-btn");Sn=o,fi=n.querySelector("#mount"),Da.setAttribute("style",Rl(Mt)),jl(),o.addEventListener("mousedown",up),o.addEventListener("touchstart",Pb),globalThis.addEventListener("resize",l=>{Da.setAttribute("style",Rl(Mt))})}function Db(){pa(null,fi),fi.style.display="none",Sn.style.display="block",Er=setTimeout(()=>{jl(!0)},2e3)}function tp(e){let t=e.querySelector("#mount"),n=()=>{Db()},a=r=>{r&&r.target&&r.target.id==="immersive-translate-popup-overlay"&&n()};(async()=>{let r=await Tn();pa(V(Yo,{lang:r.interfaceLanguage,fallbackLang:"zh-CN",translations:Go,children:V("div",{onClick:a,id:"immersive-translate-popup-overlay",class:"immersive-translate-popup-overlay",children:V("div",{class:"immersive-translate-popup-wrapper",style:Lb(),children:V(Ml,{onClose:n})})})}),t)})().then(()=>{Sn.style.display="none",fi.style.display="block"})}function Lb(){let e=Ol(),t=e.height,{position:n,top:a,left:r}=Mt,u={position:"fixed"},o=300,i=300,l=100;return Kc()&&(n=Fl.position,a=Fl.top),n==="right"||n==="left"?(u.top=a-l,u.top+o>=t?(u.bottom=30,delete u.top):u.top<=10&&(u.top=10),n==="right"?u.right=0:n==="left"&&(u.left=0)):(n==="top"||n==="bottom")&&(u.left=r-l,u.left+i>=e.width?(u.right=0,delete u.left):u.left<=10&&(u.left=0),n==="top"?u.top=0:n==="bottom"&&(u.bottom=0)),u}function Ol(){return{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}function up(e){ap=Da.getAttribute("style"),mi=e.pageX,gi=e.pageY,Er&&clearTimeout(Er),pi=!1,Sn.style.opacity="1",Sn.style.transform="none",np=Sn.getAttribute("style"),globalThis.addEventListener("mousemove",Il),globalThis.addEventListener("mouseup",Nl),globalThis.addEventListener("touchmove",op),globalThis.addEventListener("touchend",hi),globalThis.addEventListener("touchcancel",hi)}function Pb(e){e.preventDefault&&e.preventDefault(),up(e.changedTouches[0])}function op(e){Il(e.changedTouches[0])}function hi(e){e.preventDefault&&e.preventDefault(),Nl(e.changedTouches[0])}function Il(e){e.preventDefault&&e.preventDefault(),pi=!0,Da.setAttribute("style",`left:${e.clientX}px;top:${e.clientY}px;transform:scale(1.6);`)}function Nl(e){e.preventDefault&&e.preventDefault(),Fb(),Er&&clearTimeout(Er),mi=mi||0,gi=gi||0;let t=Math.abs(e.pageX-mi),n=Math.abs(e.pageY-gi);t{jl(!0)},2e3)}function jl(e=!1){Sn.style.opacity="0.4";let t="";Mt.position==="left"?t="translateX(-40%)":Mt.position==="right"?t="translateX(40%)":Mt.position==="top"?t="translateY(-40%)":Mt.position==="bottom"&&(t="translateY(40%)"),Sn.style.transform=t,e&&(Sn.style.transition="transform 0.2s ease-in-out, opacity 0.2s ease-in-out")}function Fb(){globalThis.removeEventListener("mousemove",Il),globalThis.removeEventListener("mouseup",Nl),globalThis.removeEventListener("touchmove",op),globalThis.removeEventListener("touchend",hi),globalThis.removeEventListener("touchcancel",hi)}function Rl(e){let t=_b(e);return Object.keys(t).map(n=>typeof t[n]=="number"?`${n}:${t[n]}px;`:"").join("")}function _b(e){let{position:t,...n}=e,a=Ol(),r={};return t==="left"?(r.left=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="right"?(r.right=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="top"?(r.top=0,n.left>a.width?r.left=a.width-100:r.left=n.left):t==="bottom"&&(r.bottom=0,n.left>a.width?r.left=a.width-100:r.left=n.left),r}var sp=!1;async function lp(){sp||(sp=!0,rp().catch(e=>{H.error("init popup error",e)}))}var cp=!1,pp=[()=>{Ve.unbind()}],zl=[...pp],Bb=yt(async()=>{await xr()},50),Rb=yt(async()=>{await si()},50),Ob=yt(async()=>{await di()},50),Ib=yt(async()=>{await ci()},50),fp=yt(e=>{gr({method:e,data:{trigger:"userscript_menu"}})},50),Nb=yt(()=>{bi();let e=new CustomEvent(Vn,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},200),jb=yt(()=>{Ei();let e=new CustomEvent(Vn,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},200),Ub=yt(()=>{xi();let e=new CustomEvent(Vn,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},200);function zb(e,t){let n=e.document;if(cp)return;if(cp=!0,he()||wp(),n.addEventListener("securitypolicyviolation",Xb),document.addEventListener(ge+"DocumentMessageUser",Ep),document.addEventListener(ge+"DocumentMessageUpdateUser",Tp),document.addEventListener(ge+"ChangeSuccessService",Cp.bind(null,t)),document.addEventListener(zu,Jb.bind(null,t)),n.addEventListener(ge+"EbookLoaded",Zb),n.addEventListener(b4,Qb),n.addEventListener(y4,ey.bind(null,t)),n.addEventListener("click",r=>{$b(r,t)}),he()&&(globalThis.top!=globalThis.self?e.addEventListener("message",qb,!1):n.addEventListener(Vn,Hb)),globalThis.top===globalThis.self){let r=oa.rootIframe(Gu);r.handleAsk("getRateLimitDelay",Nm),r.handleAsk("throttleRequest",bg)}}function hp(e,t){ty(),zb(t,e);let n=t.document,a=Wb.bind(null,e);e.rule.fingerCountToToggleTranslagePageWhenTouching>=2&&n.addEventListener("touchstart",a),zl.push(()=>{n.removeEventListener("touchstart",a)}),he()&&globalThis.top===globalThis.self&&(X0(e.config),ny(e.config)),At()&&X0(e.config)}function Hb(e){lp()}function qb(e){let t=e;t&&t.data&&t.data.payload&&t.data.author===Uu&&pr(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})}function Wb(e,t){let n=t;n.touches.length==e.rule.fingerCountToToggleTranslagePageWhenTouching?Nb():n.touches.length===e.rule.fingerCountToToggleTranslationMaskWhenTouching?Ub():n.touches.length===e.rule.fingerCountToToggleTranslagePageOnlyTranslationWhenTouching&&jb()}function $b(e,t){let n=e.target;if(!n||!n.getAttribute){Ul(n);return}let a=n.getAttribute("data-immersive-translate-event");a&&Ye(a,[{name:a}],{...t,sourceLanguage:"none"});let r=n.getAttribute(`data-${Q}-action`);if(r)if(r==="retry"){e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),yi(),Ul(n,!0);return}else if(r=="toast-error"){let u=n.getAttribute(`data-${Q}-tooltip-text`);Hl(yp.bind(null,t,u||""))}else r=="close-search"&&(e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),Hl(Vb.bind(null,t)));Ul(n)}async function dp(e=!1){let t=document.querySelector(`.${Q}-search-recomend`);if(!t||(t.remove(),!e))return;let n=await sn();n.generalRule||(n.generalRule={}),n.generalRule.enableSearchEnhancement=!1,await on(n)}async function Kb(){let e=await sn(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,a=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(a=e.translationUrlPattern.matches||[]),!n&&a.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await on(e)}async function Gb(){let e=await sn(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await on(e)}var mp=0;function Hl(e){let t=Date.now();if(t-mp<2e3)return;mp=t;let n=`${Q}-modal`,a=document.querySelector(`.${n}`);if(a?.style.display=="block")return;let r=`${Q}-modal-title`,u=`${Q}-modal-body`,o=`${Q}-modal-footer`;if(a){let i=a.querySelector(`.${r}`),l=a.querySelector(`.${o}`),c=a.querySelector(`.${u}`);e(a,i,c,l)}else{a=document.createElement("div"),a.className=n+" notranslate",a.id=n;let i=document.createElement("div");i.className=Q+"-modal-content notranslate",a.appendChild(i);let l=document.createElement("span");l.textContent="\xD7",l.className=Q+"-close",i.appendChild(l);let c=document.createElement("div");c.className=r+" notranslate",i.appendChild(c);let s=document.createElement("div");s.className=u+" notranslate",i.appendChild(s);let g=document.createElement("div");g.className=o,i.appendChild(g),document.body.appendChild(a),l.onclick=function(){a.style.display="none"},window.onclick=function(p){p.target==a&&(a.style.display="none")},e(a,c,s,g)}setTimeout(()=>{Yb()},100)}function Vb(e,t,n,a,r){let u=bp.bind(null,e);n.innerHTML=`
${Qo} ${u("disableConfirm")}
`,a.innerHTML="";let o=document.querySelector(`div[data-${Q}-cancel-desc]`),i=document.createElement("p");i.innerHTML=o?Re.sanitize(o.textContent||""):Re.sanitize(u("searchEnhancementNotes")),i.style.cssText="margin-bottom:12px",a.appendChild(i);let l=[{id:"enable-search-enhancement",value:"enable",text:u("enableSearchEnhancement")},{id:"disable-once",value:"once",text:u("disableOnce")},{id:"disable-global",value:"global",text:u("disableGlobal")}];for(let f=0;f${u("option")}`})),a.appendChild(c);let s=a.querySelector(`.${Q}-open-enhancement`);s&&(s.onclick=function(){vp(!0)});let g=document.createElement("button");g.innerText=u("closeModal"),g.className=`${Q}-btn ${Q}-cancel-btn`;let p=document.createElement("button");p.className=`${Q}-btn`,p.innerText=u("saveSettings"),r.innerHTML="",r.appendChild(g),r.appendChild(p),g.onclick=function(){t.style.display="none"},p.onclick=function(){let f=a.getElementsByTagName("input"),d="";for(let b=0;b
1. \u5207\u6362\u5230 ${u} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458`:i+=`

\u5982\u679C\u60A8\u6709\u7591\u95EE\uFF0C\u8BF7\u8054\u7CFB support@immersivetranslate.com`,Hl(yp.bind(null,e,i))}catch(a){H.warn("parse message error",a)}}function Qb(e){let t=e;if(H.debug("receive third party message",t),t&&t.detail)try{let n=JSON.parse(t.detail);n&&n.type&&(n.type==="retryFailedParagraphs"?ay({method:"retryFailedParagraphs"}):n.type==="updateCommands"?Ap(n.data):n.type==="toggleEnableDefaultAlwaysTranslatedUrls"?Kb():n.type==="toggleEnableInputTranslation"?Gb():fp(n.type))}catch(n){H.warn("parse message error",n)}}function Zb(e){setTimeout(()=>{xp()},10)}function Xb(e){Ee.HAS_CSP_ERROR="1"}function ey(e,t){let n=event.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&Ye(n.name,[{name:n.name}],{...e})}function ty(){zl.forEach(e=>{e()}),zl=pp}function ny(e){if(he()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=ho.commands,r=[...Object.keys(t).filter(u=>u==="toggleTranslatePage").map(u=>{let o=t[u].description,i=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(i=mr(`browser.${o.slice(6,-2)}`,e.interfaceLanguage)),{id:u,title:i}}),{id:Ji,title:mr("browser.openEbookViewer",e.interfaceLanguage),key:"e"},{id:Qi,title:mr("browser.openEbookBuilder",e.interfaceLanguage),key:"m"},{id:Vi,title:mr("browser.openOptionsPage",e.interfaceLanguage),key:"o"},{id:Yi,title:mr("browser.openAboutPage",e.interfaceLanguage),key:"a"}];for(let u of r)GM.registerMenuCommand(u.title,()=>{u.id===Vi?Bb():u.id===Yi?Rb():u.id===Qi?Ob():u.id===Ji?Ib():fp(u.id)},u.key)}}function ay(e){pr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{H.error("send content message request failed",e,n)});let t=new CustomEvent(Vn,{detail:e});globalThis.document.dispatchEvent(t)}m();var La={};async function ql(){let t=[...document.querySelectorAll(".source-text")].map(a=>a.textContent).join(""),n=await Je({text:t,minLength:200,pageLangs:[Ea(),"en"]});return an(n),n}async function kp(e){Pt("Translating");let t=pt(),n=Co(),a=[...document.querySelectorAll(".source-text")];if(No(e,t))return;let r=a.filter(u=>u.innerText?.trim()).map((u,o)=>{let i=u.parentElement?.parentElement?.querySelector(".target-text");return nt(u,"id",o+""),i&&(ir(i,o)?.remove(),i.appendChild(cu(e,o))),{text:u.innerText||"",id:o,from:t,to:e.targetLanguage,url:"https://google.com",fromByClient:n}});document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await sa({sentences:r},e,(u,o,i)=>{let l=i.id,c=ir(document.body,l);if(!c)return;let s=c.parentElement;s&&(c.remove(),u?(s.innerHTML=Re.sanitize(`${u.message}`),La[l]={ok:!1,sentence:i}):o&&(s.innerHTML=Re.sanitize(o.text),La[l]={ok:!0,sentence:i}),document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!u}})})))})}catch(u){throw u}finally{Pt("Translated")}}async function Sp(e){Pt("Translating"),document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(La),n=[],a=[];for(let r of t){let u=La[r];if(!u.ok){let i=document.querySelector(`#error-id-${r}`);if(i){let l=i.parentElement;i.remove(),l&&(delete La[r],l.appendChild(cu(e,r)),a.push(u.sentence))}}}try{await sa({sentences:a},e,(r,u,o)=>{let i=o.id,l=ir(document.body,i);if(!l)return;let c=l.parentElement;c&&(l.remove(),r?(c.innerHTML=Re.sanitize(`${r.message}`),La[i]={ok:!1,sentence:o}):u&&(c.innerHTML=Re.sanitize(u.text),La[i]={ok:!0,sentence:o}),document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!r}})})))})}catch(r){throw r}finally{Pt("Translated")}}function Wl(){Pt("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}m();var $l={};async function Dp(){let e=[...document.querySelectorAll("iframe")],t="";for(let a of e){let r=a.contentDocument;if(!r)continue;let u=r.body;if(u&&(t=t+u.innerText||"",t.length>1e3))break}let n=await Je({text:t,pageLangs:["en"]});return an(n),n}async function Lp(e){Pt("Translating"),document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys($l),n=[];for(let a of t){let r=$l[a];if(r.error){let o=r.commonAncestorContainer.querySelector(`[${qu}='${a}']`);o&&o.remove(),n.push(r)}}try{await qo(n,e,e.config.translationMode)}catch{}finally{Pt("Translated")}}function Pp(){let e=[...document.querySelectorAll("iframe")];for(let t of e){let n=t.contentDocument;if(!n)continue;let a=n.querySelectorAll("."+Wt);for(let r of a)r.remove()}Pt("Original")}async function Mp(e){Pt("Translating");let t=bn(),n=[...document.querySelectorAll("iframe")],a=[],r=[];for(let i of n){let l=i.contentDocument;if(!l)continue;sr(l,e);let c=l.body;if(!c)continue;let s=rn(e);s.isModifyImage=!1,ca({id:t,container:c,filterRule:s,onParagraph:g=>{a.push(g)}})}let u=Io(e.config.translationServices[e.translationService]?.placeholderDelimiters),o=1;for(let i of a){let l=Uo(i.flatNodes,{isPreWhitespace:i.isPreWhitespace||!1,delimiters:u,stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(s=>s.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)});if(!l)continue;i.variables=l?.variables||{},i.text=l?.text,i.id=(o++).toString();let c=await G0(i,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:u,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});c&&(r.push(c),$l[c.id]=c)}a=[],document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await qo(r,e,e.config.translationMode)}catch{}finally{Pt("Translated")}}m();var ry=new AbortController,{signal:uy}=ry,Jl=0,Ql=0,Kl=!1,Gl=0,yu=!1,Pa,Fp=0,Ma=[];function Ti(e,t){oy();let n=e,a=n.config,r=a.generalRule.mouseHoverHoldKey==="Off",u=a.generalRule.mouseHoverHoldKey==="Auto",o=yt(s=>{if(Kl==!1&&Math.abs(s.clientX-Jl)+Math.abs(s.clientY-Ql)>3&&(Gl<2?Gl+=1:Kl=!0),Jl=s.clientX,Ql=s.clientY,u||yu&&!Pa){let g=Ip(n.rule,t);if(g){if(Zl(g))return;Bp(n,g)}}},u?700:300),i=s=>{let g=s.target;Zl(g)||Bp(n)},l=s=>{let g=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=Ve.getPressedKeyCodes();if(p.length>1&&Ve[g]&&(Fp=Date.now(),yu=!1),p.length===1&&Ve[g]){let f=Date.now();yu=!0,Pa&&clearTimeout(Pa),Pa=setTimeout(()=>{let d=Fp-f;d>0&&d<=150?yu=!1:i(s),Pa=void 0},150)}};if(Ma.push(()=>{Pa&&clearTimeout(Pa)}),r)return;Vl("mousemove",o,t),Ma.push(()=>{t.removeEventListener("mousemove",o)});function c(){Kl=!1,Gl=0,o.cancel()}if(u)Vl("blur",c,t),Ma.push(()=>{t.removeEventListener("blur",c)});else{let s=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",g=["ctrl","alt","shift","cmd","command","option","control"];Vl("keyup",_p,t),Ma.push(()=>{t.removeEventListener("keyup",_p)}),g.includes(s)?Ve("*","mouseHover",l):Ve(a.generalRule.mouseHoverHoldKey,"mouseHover",i),Ve.setScope("mouseHover"),Ma.push(()=>{Ve.deleteScope("mouseHover")})}}function oy(){Ma.forEach(e=>e()),Ma=[]}function _p(e){yu=!1}function Vl(e,t,n=window){return n.addEventListener(e,t,{signal:uy})}function Bp(e,t,n=window){if(t=t||Ip(e.rule,n),!t){H.debug("can not find selection part!");return}if(Zl(t)){H.debug("exclude dom");return}u3(e,t);let a=Ko();a?.currentUrl!==window.location.href&&(zn(),Q0(e)),a&&(a.setupMouseHoverListener=Ti);let r=rn(e);r.excludeSelectors=[],r.selectors=[];let u=!1;ca({id:a.id,container:t,filterRule:r,force:!0,onParagraph:o=>{mu(a,o,!0).then(i=>{if(i&&!u){u=!0;let l=Date.now();ze(E4,l),Ye("mouse_hover_translate",[{name:"mouse_hover_translate"}],{...e,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function Ip(e,t){return iy(Jl,Ql,e,t)}function iy(e,t,n,a){let r=zd(e,t,n,a);if(r==null)return;let u=()=>{let l=a.document.elementFromPoint(e,t);if(!l)return;let c=Hd(l,e,t);return c===l?l.nodeName==="BUTTON"?l:void 0:Op(c,n)},o=()=>{try{r.setStartBefore(r.startContainer),r.setEndAfter(r.startContainer)}catch(c){H.debug("get mouse over word fail",c)}let l=r.getBoundingClientRect();if(!(l.left>e||l.rightt||l.bottomn[s]=[s,...n[s]||[]]);let a=t.inputStartingTriggerKeyAlias[t.inputStartingTriggerKey]||[];a.includes(t.inputStartingTriggerKey)||a.unshift(t.inputStartingTriggerKey),n[t.inputTargetLanguage]=[...a,...n[t.inputTargetLanguage]];let r=t.inputTrailingTriggerKeyTimeout;fa().any&&(r=t.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:t.inputTrailingTriggerKeyRepeatTimes,triggerKey:t.inputTrailingTriggerKey,triggerTimeout:r,codePrefix:t.inputStartingTriggerKey,codeAlias:n,flatAlias:Object.values(n).flat(),codePrefixAlias:t.inputStartingTriggerKeyAlias},o=0,i=Date.now();Ci&&self.removeEventListener("keydown",Ci),Ci=l,self.addEventListener("keydown",Ci);function l(s){if(Tr||wi===!1)return;let g=s,p=g.target||g.srcElement,f=p?.tagName;(p?.isContentEditable||f=="INPUT"||f=="SELECT"||f=="TEXTAREA")&&(Ay(s,u.triggerKey,u.codePrefixAlias)?c(s):o=0)}async function c(s){Date.now()-i=u.triggerTimes&&my()&&(o=0,dy(s,e,u))}ky(e)}function sy({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let a=[],r=n[e]||[];r.includes(e)||r.unshift(e);for(let u of r){let o=t.map(i=>{let l=u+i;return r.includes(i)||(l+=" "),l});a.push(...o)}return new RegExp(a.join("|"))}function jp(e,t){for(let[n,a]of Object.entries(t))if(a.includes(e))return n;return""}var Cr;function ly(e){let t=e.parentElement;if(!t)return;Cr=document.createElement("div"),Cr.className=Q+"-input",Cr.innerHTML=`
`,t.appendChild(Cr);let n=t,a=!1;do{let r=getComputedStyle(n).position;if(["fixed","absolute","relative"].includes(r)){a=!0;break}n=n.parentElement}while(n);if(n=t,!a)do{if(getComputedStyle(n).position==="static"){n.style.position="relative";break}n=n?.parentElement||null}while(n)}function cy(){Cr&&Cr.remove()}async function dy(e,t,n){if(!Tr)try{let p=function(){i=t.config.inputTargetLanguage;let d=o.split(" ")[0];d&&d[0]&&(d=d[0].toLowerCase()+d.slice(1)),d.trim()&&n.flatAlias.includes(d)?(i=jp(d,n.codeAlias),u=o.slice(d.length+1)):u=o},f=function(){i="";let d=sy(n),b=o.split(d);if(b.length<2)return;if(u=b[b.length-1],r=b[0],b.length>2){let h=o.lastIndexOf(u),A=o.slice(0,h).lastIndexOf(b[b.length-2]);r=o.slice(0,A+b[b.length-2].length)}if(r.endsWith(n.codePrefix))return;let C=o.slice(r.length+1,o.indexOf(u)).trim();if(i=jp(C,n.codeAlias),!i){H.warn("not found alias",C);return}},a=document.activeElement;Tr=!0;let r="",u="",o=wr(a)||"",i=t.config.inputTargetLanguage;n.codePrefix==="none"?p():(f(),!i&&t.config.enableInputTranslationWithoutTriggerKey&&p());let l=py(u,n),c=await Je({text:l,pageLangs:["en"]});H.debug("translateContent",l,c);let s={text:l||"",id:0,from:c,to:i,url:"https://google.com",fromByClient:c};if(!s.text)return;if(t.config.isShowInputTranslationConsent&&!Np){Np=!0;let d=await Sy(t);if(e.target&&e.target.focus(),d==="open_settings"){xr(!0,"#input");return}else if(d==="open_learn_more"){li("https://immersivetranslate.com/docs/input/");return}else if(d==="disable_once"||d==="disable_forever"){if(wi=!1,d==="disable_forever"){let b=await sn();b.enableInputTranslation=!1,b.isShowInputTranslationConsent=!1,await on(b)}else if(d==="disable_once"){let b=await sn();b.isShowInputTranslationConsent=!1,await on(b)}return}else if(d==="close_disable_once"||d==="close_disable_forever"){if(wi=!1,d==="close_disable_forever"){let b=await sn();b.enableInputTranslation=!1,b.isShowInputTranslationConsent=!1,await on(b)}return}else if(d==="enable"){let b=await sn();b.enableInputTranslation=!0,b.isShowInputTranslationConsent=!1,await on(b)}else if(d==="close_enable"){let b=await sn();b.enableInputTranslation=!0,await on(b)}}ly(a),ze(Zi,Date.now());let g=await Aa(s,{...t,translationService:t.inputTranslationService});vy(t),wy(a,r+g.text),Tr=!1}catch(a){throw Tr=!1,a}finally{Tr=!1,cy()}}function my(){let e=document.activeElement;if(!e)return!1;if(vi(e)){let t=e.selectionStart||0,n=e.value.length,r=e.value.split(` -`).reverse()[0].trim(),u=n<=t;return H.debug("cursorPosition",t,"textLength",n),H.debug("input isTail",u,"tailHasText",r),u&&!!r}else{let t=window.getSelection();if(!t)return H.debug("No active selection found."),!1;if(t.rangeCount>0){let n=t.getRangeAt(0),a=n.startContainer;if(a.nodeType===Node.TEXT_NODE){let r=gy(a,e);H.debug("Current text node:",a.textContent),H.debug("Cursor position within text node:",n.startOffset);let u=a.textContent?.length===n.startOffset&&r,o=a.textContent?.trim();return H.debug("editdiv isTail",u,"tailHasText",o),u&&!!o}else H.debug("Cursor is not within a text node.")}}return!1}function gy(e,t){let n;function a(r){if(r.nodeType===Node.TEXT_NODE)n=r;else for(let u of r.childNodes)a(u)}return a(t),n==e}function py(e,t){let{triggerTimes:n,triggerKey:a}=t,r=0,u=" ";a.length==1?(r=n,u=a):a.toLowerCase()=="space"&&(r=n);let o=e.length;for(let i=e.length-1;i>=e.length-r;i--){if([10,8629].includes(e[i].charCodeAt(0))){o--;continue}if(![...t.codePrefixAlias[a]||[],u].includes(e[i]))break;o--}return e.length-o<3&&[".","\u3002"].includes(e[o-1])&&o--,e.slice(0,o)}function fy(e,t){let n=t.innerHTML,a=wr(t);return{html:n.replace(a,e),text:e}}function Up(e,t,n=!1){let a=wr(t);return n?a.trim().endsWith(e.text.trim()):a.trim()==e.text.trim()}function wr(e){return e.value||e.innerText||e.textContent}async function Fa(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function hy(e,t,n){await Fa(10);let a=new DataTransfer;e.forEach(r=>{r==="plain"&&a.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:a,bubbles:!0,cancelable:!0})),a.clearData(),await Fa(10)}async function by(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await Fa(10))}async function yy(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await Fa(20),(t.value||t.value==="")&&(t.value=e.text)}async function xy(e,t){vi(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await Fa(20))}var Ey=[hy.bind(null,["plain"])];function Ty(e){let t;vi(e)?t=new InputEvent("beforeinput",{bubbles:!0,cancelable:!0,inputType:"deleteContent"}):t=new KeyboardEvent("keydown",{bubbles:!0,cancelable:!0,keyCode:8,which:8,location:0,key:"Backspace"}),e.dispatchEvent(t)}function vi(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function Cy(e){if(vi(e))return;e.focus();let t=window.getSelection();if(!t)return;let n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}async function wy(e,t){await Cy(e),await Fa(50);let n=fy(t,e);Ty(e),H.debug("clearContent",wr(e)),await Fa(50);for(let a of[...Ey,yy,xy,by])if(await a(n,e),H.debug("setContent",a.name,Up(n,e),wr(e),n),Up(n,e))break}function vy(e){Ye("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage}}],e)}function Ay(e,t,n){let a="";e&&e.code&&(a=e.code.toLowerCase());let r="";e&&e.key&&(r=e.key.toLowerCase());let u=e.keyCode,o=n[t]||[];return u===229&&t!=="space"?!1:!!(o.includes(a)||o.includes(r)||a===t||r===t)}async function ky(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await Dt(t,"")||Number(await Dt(Zi,0))>0)return;let r=e.rule.inputTutorialsSelectors,u=e.rule.inputTutorialsText;if((r?.length||0)>0&&u)for(let o=0;o{Ly()},100),new Promise(c=>{let s=c;if(u){let T=u.querySelector(`.${n}`),k=u.querySelector(`.${r}`),v=u.querySelector(`.${a}`)}else{u=document.createElement("div"),u.className=t+" notranslate",u.id=t;let T=document.createElement("div");T.className=Q+"-modal-content notranslate",u.appendChild(T);let k=document.createElement("span");k.textContent="\xD7",k.className=Q+"-close",T.appendChild(k),o=document.createElement("div"),o.className=n+" notranslate",T.appendChild(o),l=document.createElement("div"),l.className=a+" notranslate",T.appendChild(l),i=document.createElement("div"),i.className=r,T.appendChild(i),document.body.appendChild(u),k.onclick=function(){S(),c("close")},window.onclick=function(v){v.target==u&&(u.style.display="none",c("close"))}}document.addEventListener("keydown",y);let g=Dy.bind(null,e);o.innerHTML=`
${Qo} ${g("modalEnableInputTranslationTitle")}
`,l.innerHTML="";let p=document.createElement("p");p.innerHTML=g("modalEnableInputTranslationDesc",{1:"https://immersivetranslate.com/docs/input/"}),p.style.cssText="margin-bottom:12px",l.appendChild(p);let f=document.createElement("div");f.style.cssText="margin-bottom: 12px;",f.innerHTML=Re.sanitize(g("disableInputTranslationTips",{option:`${g("option")}`,learnMore:`${g("learnMore")}`})),l.appendChild(f);let d=[{id:"enable-search-enhancement",value:"enable",text:g("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:g("disableOnce")},{id:"disable-global",value:"global",text:g("disableGlobal")}];for(let T=0;T{sa({sentences:r},{...e,translationService:"google"},(l,c,s)=>{if(l)return o([]);let g=c?.id||0,p=n[g];p&&p.className==Q+"-search-title-wrapper"&&(p.innerHTML+=Re.sanitize(`
${c?.text}
`,{ADD_ATTR:["target"]}))})})}function Ai(e,t,n){t&&Ye(t.key,[{name:t.key}],{...e,sourceLanguage:t.sourceLanguage||n})}function Xl(e,t,n,a){let r=n.querySelectorAll('[translate="true"]');return Py(e,t,[...r],a),n}async function ec(e,t){let a=(await se({url:My(e),method:"GET",responseType:"raw",headers:{"cache-control":"no-cache","content-type":"application/xml","Sec-Fetch-Site":"none",accept:"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}})).body,u=new DOMParser().parseFromString(a,"text/xml"),o=[],i=u.querySelectorAll("item");for(let l=0;l${e.cancelDescription}
`:""} +`+t.rule.additionalInjectedCss)),i&&Ea(e,i,"immersive-translate-dynamic-injected-css")}g();async function Kg(){let e="auto",t=[Ta(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await Je({text:Ja(document.body),pageLangs:t})),e}g();g();function Gg(e,t){return[e,!e||e.endsWith("/")?"":"/",t,".json"].join("")}function I0(e,t){let n=e;return t&&Object.keys(t).forEach(a=>{let r=t[a];if(r===void 0)return;let u=m9(a);if(typeof r=="object"||u){let o=r;u&&typeof o=="string"&&(o={tag:"a",href:o});let i=`<${a}>`,l=n.indexOf(i);if(l!==-1){let c=o.tag||"a",s=n.indexOf(``);if(s!==-1){let m=n.substring(l+i.length,s),p=Object.keys(o).filter(f=>f!=="tag").map(f=>`${f}="${o[f]}"`).join(" ");n=n.replace(`${i}${m}`,`<${c} ${p}>${m}`)}}}else if(r){let o=new RegExp("{"+a+"}","gm");n=n.replace(o,r.toString())}}),n}function cu(e,t,n){let a=e[t];if(!a)return n;let r=n.split("."),u="";do{u+=r.shift();let o=a[u];o!==void 0&&(typeof o=="object"||!r.length)?(a=o,u=""):r.length?u+=".":a=n}while(r.length);return a}function Un(e,t,n,a,r){if(!e.hasOwnProperty(n))return t;let u=cu(e,n,t);return u===t&&n!==a&&(u=cu(e,a,t)),I0(u,r)}function m9(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}g();g();function N0(e,t,n=[],a){let r=["notranslate"];return a&&r.push(P4),e&&(r.push(`${Q}-target-translation-theme-${e}`),t?r.push(`${ts}-theme-${e}`):r.push(`${es}-theme-${e}`)),n.length>0&&r.push(...n),t?r.push(ts):r.push(es),r}function j0(e){let t=["notranslate",D4];return e&&t.push(`${Q}-target-translation-theme-${e}-inner`),t}function Vg(e,t,n){let{rule:a,state:r}=n,{translationTheme:u}=r,{variables:o,isVertical:i}=e;o=o||[];let{text:l}=t,{wrapperPrefix:c,wrapperSuffix:s}=a,m=Za(n),p="afterend",f=m[0],d=m[1],b=`${f}(\\d+)${d}`,C=new RegExp(b,"g"),h=Re.sanitize(l);o.length>0&&(h=h.replace(C,O=>{let y=h.indexOf(O),T=h[y-1]===" ",k=h[y+O.length]===" ",v=O.slice(m[0].length,-m[1].length),E=Number(v);if(isNaN(E))return O;let R=o[Number(E)];if(R&&R.type==="element"){let F=R.value.outerHTML;return T||(F=" "+F),k||(F=F+" "),F}else H.error("variable type not supported",R,O);return O}));let A=N0(u,e.inline,a.translationClasses||[],e.preWhitespace);i&&A.push(L4);let S=j0(u),U="";return a.translationBlockStyle&&(U=`style="${a.translationBlockStyle}"`),h=`<${n.rule.targetWrapperTag} ${U} class="${A.join(" ")}" ${vn}="1"><${a.targetWrapperTag} class="${S.join(" ")}" ${vn}="1">${h}`,e.inline||(c==="smart"?h=`
${h}`:h=`${c}${h}`),e.inline&&(c!=="smart"?h=`${c}${h}`:h=`<${a.targetWrapperTag} class="notranslate" ${vn}="1"> ${h}`),s==="smart"?h=`${h}`:h=`${h}${s}`,{html:h,position:p}}function Uo(e,t){let n=null,{stayOriginalSelectors:a,delimiters:r,isPreWhitespace:u}=t,o=[],i={};for(let l=0;l2&&(C=`<${r[2]}${b}>`),i[b]=c,o.push({text:C,type:"variable"})}else o.push({text:c.textContent||"",type:"text"});else{let d=c.textContent||"";m&&(d=la(U0(c))),o.push({text:d,type:"text"})}else if(c.nodeType===Node.ELEMENT_NODE)if(c&&Lt(c,a)){let b=Object.keys(i).length,C=`${r[0]}${b}${r[1]}`;r.length>2&&(C=`<${r[2]}${b}>`),i[b]=c;let h=z0(o).endsWith(" ")?" ":"",A=la(c.innerText||c.textContent),S=la(c.nextSibling).startsWith(" ")?" ":"",U=su(h+A+S),O=U[0]+C+U[1];if(h===" ")O=O.trimStart();else if(!O.startsWith(" ")){let y=su(c.previousSibling)[1];y===""&&(y=" "),O=y+O}o.push({text:O,type:"variable"})}else{let d=z0(o).endsWith(" ")?" ":"",b=la(c.innerText||c.textContent);m&&(b=la(U0(c)));let C=la(c.nextSibling).startsWith(" ")?" ":"",h=su(d+b+C),A=h[0]+(c.innerText?.trim()||c.textContent?.trim()||"")+h[1];if(d===" ")A=A.trimStart();else{let S=su(c.previousSibling)[1];S===""&&(c.nodeName==="A"||c.nodeName==="CODE")&&(S=" "),A=S+A}o.push({text:A,type:"text"})}else{let d=z0(o).endsWith(" ")?" ":"",b="";c.textContent&&(b=la(U0(c))),d===" "&&(b=b.trimStart()),o.push({text:b,type:"text"})}}if(o&&o.length>0){let l="";for(let c=0;c0&&(m=o[c-1].text),c2){let s=c[2];return g9({delimiterTag:s,targetText:e.targetText,inline:r,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:a}).html}else{let s=Vg(l,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return s.html}}function U0(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function g9(e){let{delimiterTag:t,inline:n,translationClasses:a,targetWrapperTag:r,wrapperPrefix:u,variables:o,preWhitespace:i,wrapperSuffix:l,translationTheme:c,translationBlockStyle:s}=e;o=o||[];let m=e.targetText;m=Re.sanitize(m);let p=m,f=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),d=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(f,A=>{let S=p.indexOf(A),U=p[S-1]===" ",O=p[S+A.length]===" ",y=A.match(d);if(!y)return A;let T=y[1],k=Number(T);if(isNaN(k))return A;let v=o[Number(k)];if(v&&v.type==="element"){let E=v.value.outerHTML;return U||(E=" "+E),O||(E=E+" "),E}else if(v&&v.type==="text"){let E=v.value;return U||(E=" "+E),O||(E=E+" "),E}else H.error("variable type not supported",v,A);return A}));let b=N0(c,n,a||[],i),C=j0(c),h="";return s&&(h=`style="${s}"`),p=`<${r} ${h} class="${b.join(" ")}" ${vn}="1"><${r} class="${C.join(" ")}" ${vn}="1">${p}`,n||(u==="smart"?p=`
${p}`:p=`${u}${p}`),n&&(u!=="smart"?p=`${u}${p}`:p=`<${r} class="notranslate" ${vn}="1"> ${p}`),l==="smart"?p=`${p}`:p=`${p}${l}`,{html:p,position:"afterend"}}function z0(e){let t=e[e.length-1];return t?t.text:""}function rn(e){let t=e.rule.selectors,n=e.rule.excludeTags,a=e.rule.additionalExcludeTags,r=e.rule.excludeSelectors,u=e.rule.additionalExcludeSelectors;return e.state.translationArea==="body"&&(t=[],r=[]),{globalStyles:e.rule.globalStyles,globalAttributes:e.rule.globalAttributes,selectors:t,skipEditableCheck:e.rule.skipEditableCheck,lineBreakMaxTextCount:e.rule.lineBreakMaxTextCount,isTransformPreTagNewLine:e.rule.isTransformPreTagNewLine,excludeSelectors:n.concat(a).map(i=>i.toLowerCase()).filter(i=>i!=="code"&&i!=="img").concat(r).concat(u),blockSelectors:e.rule.allBlockTags.map(i=>i.toLowerCase()).concat(e.rule.extraBlockSelectors),extraBlockSelectors:e.rule.extraBlockSelectors,extraInlineSelectors:e.rule.extraInlineSelectors.concat(e.rule.additionalInlineSelectors),stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(i=>i.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)}}var p9={sanitize:e=>e};function Ho(e,t){e.interruptEffectDOM||(e.walkContainer({id:e.id,container:t,filterRule:rn(e.ctx),onParagraph:du.bind(null,e),onFrame:n=>{q0(e,n,!0)},onIgnoreElement:n=>{e.ignoreResizeObserver?.observe(n)}}),Ua&&nt(t,"consumeContainer",e.id))}function q0(e,t,n){try{if(e.injectCssToDocument(t,e.ctx),t instanceof HTMLIFrameElement){if(!Xa(t))return;H.debug("onFrame fragment",t);let a=t.contentWindow?.document.body;a&&(cr(a,e,n),e.dynamicContainerObserver?.observe(a,{childList:!0,subtree:!0}))}else H.debug("onFrame shadowRoot",t.host),cr(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0})}catch{}}function cr(e,t,n=!0){let{globalStyles:a,globalAttributes:r}=rn(t.ctx),u=0;if(l(t,e,n))return;if(En(e)&&i(e)){o(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,s=>(En(s)&&(a&&_0(s,a),r&&R0(s,r)),l(t,s,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(zt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode();){zt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let s=c.currentNode;if(i(s))for(o(s);;){if(c.nextSibling()){let m=c.currentNode;if(zt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),i(m)){o(m);continue}else break}if(!c.parentNode())return}}}catch{}if(u==0&&e instanceof HTMLElement){o(e);return}return t.observeContainers;function o(c){zt.clearMark(c),u++,t.immediateTranslateCapacity>=0?Ho(t,c):(Ua&&nt(c,"observeContainer",t.id),t.containerVisibleObserver?.observe(c))}function i(c){let s=c.nodeName.toLowerCase();if(c.shadowRoot)return q0(t,c.shadowRoot,n),!1;if(s==="iframe")return q0(t,c,n),!1;if(["script","#document-fragment","img"].includes(s))return!1;let m=t.containerRule;if(m.selectors&&m.selectors?.length>0)return jo(c,m.selectors);if(m.pageHeight){let p=c.scrollHeight;if(p>0&&p0)return!0}return!1}function l(c,s,m){if(s.nodeName.toLowerCase()=="script")return s.childNodes.length==0||s.childNodes.length==1&&s.childNodes[0].nodeType==Node.TEXT_NODE;if(s.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(s.nodeType!==Node.ELEMENT_NODE||m&&zt.isMarked(s,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&s.nodeName==="PRE")return!1;let f=rn(c.ctx);return!!O0(s,{excludeSelectors:f.excludeSelectors,selectors:f.selectors,stayOriginalSelectors:f.stayOriginalSelectors})}}function W0(e,t){if(!e.targetNodes)return;let n=e.state||"original",a=e.commonAncestorContainer;if(!zt.isMarked(a,e.ctxId))return;let r=a.contains(e.rootNodes[0]),u=a.contains(e.targetNodes[0]);if(r&&u)n="dual";else if(r)n="original";else if(u)n="translation";else return;if(t!=n){e.state=t;try{if(n=="dual"&&t=="translation"&&(zo(e.rootNodes),Qg(e.commonAncestorContainer)),n=="original"&&t=="translation"){let o=H0(e.rootNodes);if(zo(e.rootNodes),Jg(o))return;lr(o,a,e.targetNodes||[]),Qg(e.commonAncestorContainer)}if(n=="translation"&&t=="dual"){let o=e.targetNodes[0];lr(o,a,e.rootNodes||[]),Zg(e.commonAncestorContainer)}if(n=="original"&&t=="dual"){let o=H0(e.rootNodes);if(Jg(o))return;lr(o,a,e.targetNodes||[]),Zg(e.commonAncestorContainer)}if(n=="translation"&&t=="original"){let o=H0(e.targetNodes);zo(e.targetNodes),lr(o,a,e.rootNodes||[])}n=="dual"&&t=="original"&&zo(e.targetNodes)}catch(o){H.error(o)}}}function Jg(e){return!e||!En(e)?!1:e.classList.contains($t)}function Qg(e){if(!En(e))return;e.querySelectorAll("font[class*=immersive-translate-target-translation]").forEach(a=>{nt(a,"immersiveTranslateClassBak",a.className),a.className="notranslate immersive-translate-target-dual"});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.add("immersive-translate-state-dual")}function Zg(e){if(!En(e))return;e.querySelectorAll("font[class*=immersive-translate-target-dual]").forEach(a=>{let r=Qa(a,"immersiveTranslateClassBak");go(a,"immersiveTranslateClassBak"),a.className=r});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.remove("immersive-translate-state-dual")}function H0(e){return e?e[e.length-1].nextSibling:null}function zo(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function lr(e,t,n){let a=e;t&&(a?n.forEach(r=>{a.parentNode?.insertBefore(r,a)}):n.forEach(r=>{t.appendChild(r)}))}var f9=yt(K0,300);async function du(e,t,n=!1){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||h9(t.rootNodes)||t.stepState>=2)return;t.stepState=2,Ua&&nt(a,"onParseParagraph",e.id);let{ctx:r}=e,{rule:u}=r,o=Za(r),i=Uo(t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:o,stayOriginalSelectors:r.rule.stayOriginalTags.concat(r.rule.stayOriginalTags).map(c=>c.toLowerCase()).concat(r.rule.stayOriginalSelectors).concat(r.rule.additionalStayOriginalSelectors)});if(!i)return;t.variables=i?.variables||{},t.text=i?.text;let l=await G0(t,{excludeLanguages:r?.config?.translationLanguagePattern?.excludeMatches||[],targetLanguage:r.targetLanguage,noTranslateRegexp:r.rule.noTranslateRegexp,delimiters:Io(r.config.translationServices[r.translationService]?.placeholderDelimiters),minTextCount:n||r.state.translationArea==="body"?2:u.paragraphMinTextCount,minWordCount:n||r.state.translationArea==="body"?1:u.paragraphMinWordCount,isDetectParagraphLanguage:r.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:r.rule.ignoreZhCNandZhTW});if(l){if(H.debug("on paragraph",l.text,l),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(l))return;a.paragraphs.push(l),e.immediateTranslateCapacity>0||n?(b9(e,t.text),$0(e,t)):(Ua&&nt(a,"observeParagraph",e.id),e.observeParagraphs.push(l),e.paragraphVisibleObserver?.observe(a))}return l}function h9(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?En(t)&&t.classList.contains($t):!1}function b9(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function $0(e,t){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let n=e.autoIncreaseParagraphId++;t.id=n.toString(),e.paragraphEntities[n]=t,e.paragraphQueue.push(n.toString()),Ua&&nt(t.commonAncestorContainer,"consumeParagraph",e.id),f9.call(e,e.ctx)}async function K0(e){if(this.interruptEffectDOM)return;let t=this.paragraphQueue;this.paragraphQueue=[];let n=[];for(let a=0;a0)try{await sa(a,t,(r,u,o)=>{let i=o.id,l=y9(e,i.toString());l&&x9.call(null,r,u,o,l,t,n)})}catch(r){H.error("translateCurrentQueue error",r);return}}function y9(e,t){return e.find(n=>n.id===t)}function x9(e,t,n,a,r,u){let o=!1,i=a;if(ir(i.commonAncestorContainer,n.id)?.remove(),i&&(e||!t)){e||(H.error("translate error",n,e,t),e=new Error("no response from server"));let{rule:l}=r,c=n.id,s=document.createElement(l.targetWrapperTag);nt(s,w4,c.toString()),s.classList.add("notranslate",$t,$t+"-error"),s.setAttribute("translate","no"),s.setAttribute("lang",r.targetLanguage);let m=a.rootNodes[a.rootNodes.length-1].nextSibling;lr(m,a.commonAncestorContainer,[s]),E9(r,e);let p=e.message.replaceAll(` +`,"");if(p=p.replaceAll('"',"""),i&&(i.error=new Error(p)),s){let f=Un(Ot,"retryAllParagraphs",r.config.interfaceLanguage,"zh-CN"),d=Un(Ot,"errorTooltipTitle",r.config.interfaceLanguage,"zh-CN"),b=`<${l.targetWrapperTag} class="${Q}-error notranslate"><${l.targetWrapperTag} class="${Q}-error-wrapper">\u{1F504}  \u2753`;s.innerHTML=Re.sanitize(b)}}else if(a){if(i.error=void 0,a.targetText=t?.text||"",!(a.text?.toLocaleLowerCase()==a.targetText?.toLocaleLowerCase())){let c=Yg(a,r),s=document.createElement(r.rule.targetWrapperTag);s.classList.add("notranslate",$t),s.setAttribute("lang",r.targetLanguage),s.setAttribute(vn,"1");let m=p9.sanitize(c);s.innerHTML=m,a.targetNodes=[s],W0(a,u)}o=!0}else H.error("paragraph not found",n.id);document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}))}async function G0(e,t){let{text:n}=e,a=await Je({text:n||"",minLength:15,pageLangs:[pt(),"en"]}),{targetLanguage:r}=t;if(!Ng({text:n||"",delimiters:t.delimiters,minWordCount:t.minWordCount,minTextCount:t.minTextCount,noTranslateRegexp:t.noTranslateRegexp}))return null;let o=t.excludeLanguages||[],i=To();t.isDetectParagraphLanguage&&(i="auto");let l=pt(),c=a;c==="auto"&&!t.isDetectParagraphLanguage&&(c=l),e.languageByLocal=c,e.languageByClient=i;let s=i!=="auto"?i:c;return ra(s,r,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW})||o.length>0&&o.some(f=>ra(s,f,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW}))?null:e}function E9(e,t){if(t.message.startsWith("ProQuota:")){t.message=t.message.replace("ProQuota:","");let n=t.message;try{n=JSON.parse(t.message).error}catch(u){H.error(u)}t.message=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${t.message} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`;let a=e.translationService,r=a=="deepl"?"OpenAI":"Deepl";e.translationService=="openai"?a="OpenAI":e.translationService=="deepl"&&(a="Deepl"),document.dispatchEvent(new CustomEvent(Uu,{detail:{type:"ProQuotaExceeded",subscriptionType:e.user?.subscription?.subscriptionType,translationService:a,anotherService:r,message:n}}))}}g();var T9=[];function Xg(e){T9.push(e)}g();function e3(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(a){a.length>0&&(a[0].target.text.includes(Wu)||V0(e).catch(u=>{H.error("translateTitle error:",u.name,u.message,u.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var Wo="";async function V0(e){let t=document.title;if(!t||t.includes(Wu))return;Wo!==t&&(Wo=t);let n=await Je({text:t,pageLangs:[pt(),"en"]});if(!No(e,n))try{let a=await ka({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n},e);a&&a.text&&(document.title=Wo+Wu+a.text)}catch(a){throw a}}function t3(e){e.rule.isTranslateTitle&&(document.title=Wo)}g();var Y0="Original";function $e(){return Y0}function Pt(e){Y0=e,n3(Y0)}g();var J0;function a3(e){let t=e.ctx.rule.aiRule;if(H.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=rn(e.ctx),a=n.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);n.excludeSelectors.splice(a,1);let r,u;document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(p=>{p.translated=!0,mu(e,p,n)});let o=t.streamingDelayTime||100;J0=new MutationObserver(p=>{p.forEach(function(f){if(En(f.target)&&!l(f)&&(s(f.target),f.addedNodes&&f.addedNodes.length&&f.addedNodes.forEach(d=>{s(d)}),!c(f)&&i())){let d=f.target===u;if(t.streamingDeepChild&&!d&&(d=f.target.parentNode===u),!d)return;f.addedNodes.forEach(b=>{let C=b.previousSibling;!C||C.translated||(C.translated=!0,setTimeout(()=>{C.childNodes[0]?.translated||(H.debug("\u7FFB\u8BD1\u4E0A\u4E00\u4E2A\u6BB5\u843D",C),mu(e,C,n))},o))})}})}),J0.observe(document.body,{attributes:!0,childList:!0,subtree:!0});function i(){return!!(t.streamingChange&&t.streamingSelector&&r||t.streamingChange&&t.messageContainerSelector&&t.messageStreamEndSelector&&u&&!u.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector))}function l(p){return t.streamingSelector&&p.target===r&&p.type==="attributes"&&!xn(p.target,[t.streamingSelector])?(m(),!0):t.streamingSelector&&p.removedNodes.length>0&&u&&u!=r?(p.removedNodes?.forEach(f=>{f===r&&m()}),!0):t.messageContainerSelector&&t.messageStreamEndSelector&&u&&u.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector)?(m(),!0):!1}function c(p){if(t.streamingSelector&&p.target.querySelector(t.messageWrapperSelector||"")&&!r){let f=p.target;return f.translated||(f.translated=!0,setTimeout(()=>{r||f.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(d=>{d.translated||(d.translated=!0,mu(e,d,n))})},o)),!0}else if(t.messageContainerSelector&&p.target.querySelector(t.messageContainerSelector||"")){let f=p.target;if(f.translated)return!0;f.translated=!0,setTimeout(()=>{f.querySelectorAll(t.messageContainerSelector).forEach(d=>{t.messageStreamEndSelector&&!d.querySelector(t.messageStreamEndSelector)||d.translated||(d.translated=!0,mu(e,d,n))})},o)}return!1}function s(p){t.streamingSelector&&xn(p,[t.streamingSelector])&&(r=p,H.debug("streamingNode",r)),xn(p,[t.messageWrapperSelector])&&(u=p,H.debug("markdownNode",u))}function m(){u&&setTimeout(()=>{u.childNodes.forEach(p=>p.translated=!1),H.debug("\u7ED3\u675F\u7FFB\u8BD1\u5168\u90E8",u),mu(e,u,n),r=void 0,u=null},o)}}function mu(e,t,n){ca({id:e.id,container:t,filterRule:n,force:!0,onParagraph:a=>{du(e,a,!0)},onFrame:()=>{},onIgnoreElement:()=>{}})}function r3(){J0?.disconnect()}var re=null;function Ko(){return re||null}function dr(e){C9(e),L9(e),k9(e),D9(e),sr(document,e),Pt("Translated"),S9(re),A9(re),Xg(zn),w9(re)}function C9(e){e.state.translationArea==="main"&&e.rule.initialSelectorGlobalAttributes&&Wg(document.body,e.rule.initialSelectorGlobalAttributes,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph)}function w9(e){a3(e)}function v9(){r3()}function A9(e){e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0});let t=[];e.ctx.rule.mainFrameSelector&&(t=[...document.querySelectorAll(e.ctx.rule.mainFrameSelector||"")]),t.length<=0&&(t=[document.body]),t.forEach(n=>{cr(n,e)})}async function k9(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=Date.now(),a=new URL(e.url).hostname,r=e.localConfig.tempTranslationUrlMatches||[],u=r.findIndex(i=>i.match===a&&i.expiredAt>t),o=!1;u>-1||(r.push({match:a,expiredAt:t+e.config.tempTranslateDomainMinutes*60*1e3}),o=!0),o&&await nn({...e.localConfig,tempTranslationUrlMatches:[...r]})}}function S9(e){e.ctx.rule.isTranslateTitle&&(V0(e.ctx),e.titleDynamicObserver=e3(e.ctx))}function D9(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function L9(e){let t=bn();re&&(t=re.id);let n=rn(e);re=re||{},re.ctx=e,re.id=t,re.paragraphQueue=re.paragraphQueue||[],re.rule={excludeSelectors:n.excludeSelectors||[],selectors:n.selectors||[]},re.currentUrl=window.location.href,re.containerRule={pageHeight:screen.availHeight,selectors:n.selectors},re.translationService=e.translationService,re.paragraphEntities=re.paragraphEntities||{},re.autoIncreaseParagraphId=re.autoIncreaseParagraphId||1,re.interruptEffectDOM=!1,re.urlChangeDelay=e.rule.urlChangeDelay,re.immediateTranslateCapacity=e.state.immediateTranslationTextCount,re.observeContainers=re.observeContainers||[],re.observeParagraphs=re.observeParagraphs||[],re.dynamicContainerObserver=re.dynamicContainerObserver||B9(re),re.ignoreResizeObserver=re.ignoreResizeObserver||R9(re),re.containerVisibleObserver=re.containerVisibleObserver||M9(re),re.paragraphVisibleObserver=re.paragraphVisibleObserver||F9(re),re.injectCssToDocument=$o,re.walkContainer=ca,re.translateState=e.state.translationMode||e.config.translationMode||"dual",re.allInlineWindows=[window],window.onerror=P9(re,e),window.immersiveTranslateSwitchTranslateState=Z0.bind(re)}function o3(e,t){t.getRootNode()instanceof ShadowRoot?$o(t.getRootNode(),e):$o(t.ownerDocument,e),Q0(e)}function Q0(e){if(re)return;re={},re.ctx=e,re.id=bn(),re.paragraphQueue=[],re.injectCssToDocument=$o;let t=rn(e);re.rule={excludeSelectors:t.excludeSelectors,selectors:t.selectors||[]},re.translationService=e.mouseHoverTranslationService,re.currentUrl=window.location.href,re.paragraphEntities={},re.autoIncreaseParagraphId=1,re.interruptEffectDOM=!1,re.urlChangeDelay=e.rule.urlChangeDelay,re.translateState=e.config.translationMode||"dual",re.observeContainers=[],re.observeParagraphs=[],re.allInlineWindows=[window],window.switchTranslateState=Z0.bind(re)}function zn(e=!0){re&&(Pt("Original"),v9(),re.interruptEffectDOM=!0,re.ignoreResizeObserver?.disconnect(),re.dynamicContainerObserver?.disconnect(),re.containerVisibleObserver?.disconnect(),re.paragraphVisibleObserver?.disconnect(),re.titleDynamicObserver?.disconnect(),t3(re.ctx),Rg(),Og(),e&&Z0.call(re,"original"),Object.values(re.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),re=null)}function P9(e,t){e.interruptEffectDOM=!1;let n;return function(a){let r=a.message,u=!1;return r?.indexOf("Minified React error")>=0&&(u=!0),u&&(clearTimeout(n),zn(),n=setTimeout(()=>{dr(t)},e.urlChangeDelay||2e3)),!0}}function M9(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{a.intersectionRatio>0&&(Ho(e,a.target),n.unobserve(a.target))})})}function F9(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{if(a.intersectionRatio>0){let r=a.target;(r.paragraphs||[]).forEach(o=>{$0(e,o)}),n.unobserve(r)}})})}var u3;function _9(e){if(e.urlChangeDelay<=0)return!1;let n=(window.location.href||"").split("#")[0];return e.currentUrl.split("#")[0]!=n?(clearTimeout(u3),e.translateState=="original"?!1:(zn(e.urlChangeDelay>20),u3=setTimeout(()=>{let r=e.ctx;dr(r)},e.urlChangeDelay),!0)):!1}function B9(e){return new MutationObserver(t=>{if(!_9(e)&&!e.interruptEffectDOM)for(let n of t){let a=e.ctx.rule.mutationObserverLimitTargetSelectors;if(a.length>0&&!xn(n.target,a))return;if((n.addedNodes||[]).length<=0||n.target.nodeType!==Node.ELEMENT_NODE||!zt.isSkipMarkEle(n.target)&&!zt.isMarked(n.target,e.id))continue;let u=(n.target?.paragraphs||[]).reduce((o,i)=>{let l=i.rootNodes||[],c=i.targetNodes||[];return[...o,...l,...c]},[]);if(n.addedNodes.length>0&&n.addedNodes.length===n.target.childNodes.length&&xn(n.target,e.ctx.rule.mutationObserverContainerSelectors)){zt.clearMark(n.target),n.target.paragraphs=void 0,Ho(e,n.target);return}n.addedNodes.forEach((o,i)=>{o.nodeType===Node.ELEMENT_NODE&&(u.includes(o)||Lt(o,e.ctx.rule.mutationExcludeSelectors)||cr(o,e))})}})}function R9(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let a of t){if(a.target.nodeType!==Node.ELEMENT_NODE)return;let r=a.target,u=globalThis.getComputedStyle(r);B0(u)||(n.unobserve(a.target),cr(r,e))}})}function Z0(e){this.translateState=e,Object.values(this.paragraphEntities).forEach(t=>{W0(t,e)}),e=="original"&&document.querySelectorAll(`.${$t}`).forEach(t=>t.remove())}function $o(e,t){if(e instanceof HTMLIFrameElement){sr(e.contentDocument,t);return}sr(e,t)}async function i3(e){let t=tt(),n="auto";if(fe()){let a="";e.rule.isEbook||e.rule.isEbookBuilder?(a=Rs(e.mainFrame),n=await Je({text:a,pageLangs:["en"]})):(a=Ja(e.mainFrame).slice(0,1e3),n=await Je({text:a,pageLangs:[Ta(),"en"]}))}else if(t)n=await Je({text:Ja(e.mainFrame).slice(0,1e3),pageLangs:[Ta(),"en"]});else if(e.rule.isEbook||e.rule.isEbookBuilder){let a="";a=Rs(e.mainFrame),n=await Je({text:a,pageLangs:["en"]})}else n=await l3();return n==="auto"&&(n=await Kg()),am(n),n}async function s3(){if(!re)return;document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=re.paragraphEntities,t=Object.keys(e);for(let n of t){let a=e[n];if(a.error){re.paragraphQueue.push(n);let u=a.commonAncestorContainer.querySelector(`[${Hu}='${n}']`);u&&u.remove()}}K0.call(re,re.ctx)}g();g();var c3={"zh-CN":{"languages.en":"\u82F1\u8BED","languages.ja":"\u65E5\u8BED","languages.ko":"\u97E9\u8BED","languages.es":"\u897F\u73ED\u7259\u8BED","languages.fr":"\u6CD5\u8BED","languages.de":"\u5FB7\u8BED","languages.it":"\u610F\u5927\u5229\u8BED","languages.pt":"\u8461\u8404\u7259\u8BED","languages.ru":"\u4FC4\u8BED","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"},"zh-TW":{"languages.en":"\u82F1\u8A9E","languages.ja":"\u65E5\u8A9E","languages.ko":"\u97D3\u8A9E","languages.es":"\u897F\u73ED\u7259\u8A9E","languages.fr":"\u6CD5\u8A9E","languages.de":"\u5FB7\u8A9E","languages.it":"\u610F\u5927\u5229\u8A9E","languages.pt":"\u8461\u8404\u7259\u8A9E","languages.ru":"\u4FC4\u8A9E","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"}},d3={...Ot,"zh-CN":{...c3["zh-CN"],...Ot["zh-CN"]},"zh-TW":{...c3["zh-TW"],...Ot["zh-TW"]}},Go=d3;function mr(e,t,n){return Un(d3,e,t,$u,n)}var Vo=(e,t,n,a)=>{let r=F4[e]||e,u=_4[e],o=B4[e],i={"zh-CN":u,"zh-TW":o,en:r};if(n)return i[e]?i[e]:r;if(i[t]){let l=i[t];return a||e==="auto"||e==="placeholder"?l:`${l} (${r})`}else return r};g();g();function gr(e){pr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(a=>{H.error("send content message request failed",e,a)}),document.querySelectorAll("iframe").forEach(a=>{a.contentWindow&&a.contentWindow.postMessage({author:ju,payload:e},"*")});let n=new CustomEvent(Vn,{detail:e});globalThis.document.dispatchEvent(n)}function X0(e){let t=e.shortcuts||{},a=Object.keys(t).reduce((u,o)=>(u[t[o]]=o,u),{}),r=Object.keys(a);for(let u of r){let o=u.replace(/MacCtrl/ig,"Ctrl");o&&Ve(o,i=>{i.preventDefault(),gr({method:a[u],data:{trigger:"shortcut"}})})}}g();g();g();g();var fr={},O9={root:"",lang:"en",fallbackLang:"en"};function el(e,t){let n=Object.assign({},O9,e);fr=t||fr;let[a,r]=Te(n.lang),[u,o]=Te(fr),[i,l]=Te(!1),c=m=>{if(u.hasOwnProperty(m))return;l(!1);let p=Gg(n.root||"",m);n.getUrl&&(p=n.getUrl(n.root||"",m),fetch(p).then(f=>f.json()).then(f=>{fr[m]=f,o({...fr}),l(!0)}).catch(f=>{o({...fr}),l(!0)}))};return Ne(()=>{c(n.fallbackLang||"en"),c(a)},[a]),{lang:a,setLang:r,t:(m,p)=>{if(!u.hasOwnProperty(a))return m;let f=cu(u,a,m);return f===m&&a!==n.fallbackLang&&(f=cu(u,n.fallbackLang,m)),I0(f,p)},isReady:i}}g();g();var I9=0;function V(e,t,n,a,r){var u,o,i={};for(o in t)o=="ref"?u=t[o]:i[o]=t[o];var l={type:e,props:i,key:n,ref:u,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--I9,__source:r,__self:a};if(typeof e=="function"&&(u=e.defaultProps))for(o in u)i[o]===void 0&&(i[o]=u[o]);return Ae.vnode&&Ae.vnode(l),l}var nl=Su(null),tl={root:"assets",lang:"en",fallbackLang:"en"},Yo=e=>{let{t,setLang:n,lang:a,isReady:r}=el({root:e.root||tl.root,lang:e.lang||tl.lang,fallbackLang:e.fallbackLang||tl.fallbackLang,getUrl:e.getUrl},e.translations);return V(nl.Provider,{value:{t,setLang:n,lang:a,isReady:r},children:e.children})};g();g();g();function al(){return V("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[V("path",{d:"M10.3873 2.29166C10.6319 2.29193 10.8664 2.38929 11.0392 2.56234C11.2121 2.73539 11.3092 2.96998 11.3092 3.21457V4.07811L12.1175 4.38332C12.7273 4.61277 13.2952 4.94074 13.7988 5.35416L14.4675 5.90207L15.2165 5.46978L15.2394 5.45624C15.3787 5.37479 15.5373 5.332 15.6988 5.33228C15.861 5.3325 16.0203 5.37522 16.1608 5.45618C16.3014 5.53715 16.4182 5.65353 16.4998 5.79374L16.8925 6.47395C17.0145 6.68593 17.0475 6.93764 16.9843 7.17391C16.921 7.41019 16.7666 7.61173 16.555 7.73436L16.5321 7.74791L15.7842 8.17916L15.9227 9.0302C16.031 9.67953 16.031 10.3423 15.9227 10.9917L15.781 11.8458L16.531 12.2781L16.5467 12.2875C16.758 12.4101 16.9122 12.6115 16.9754 12.8475C17.0387 13.0835 17.0059 13.335 16.8842 13.5469L16.5154 14.1844C16.3932 14.3961 16.1919 14.5507 15.9558 14.6141C15.7196 14.6776 15.468 14.6448 15.256 14.5229L15.2415 14.5135L14.4904 14.0802L13.8206 14.6323C13.3125 15.0519 12.7384 15.3845 12.1217 15.6167L11.3133 15.9219V16.7864C11.3132 16.9078 11.2891 17.028 11.2425 17.14C11.1958 17.2521 11.1276 17.3539 11.0415 17.4395C10.9555 17.5251 10.8535 17.5929 10.7412 17.6391C10.6289 17.6852 10.5087 17.7087 10.3873 17.7083H9.61229C9.3677 17.708 9.13322 17.6107 8.96037 17.4376C8.78751 17.2646 8.69042 17.03 8.69042 16.7854V15.9219L7.88209 15.6167C7.27233 15.3872 6.70437 15.0592 6.20084 14.6458L5.53209 14.0979L4.78313 14.5302L4.76021 14.5437C4.62084 14.6252 4.46226 14.668 4.30084 14.6677C4.13864 14.6675 3.97932 14.6248 3.83877 14.5438C3.69823 14.4628 3.58135 14.3464 3.49979 14.2062L3.10709 13.526C2.98505 13.3141 2.95205 13.0623 3.01532 12.8261C3.07858 12.5898 3.23296 12.3882 3.44459 12.2656L3.4675 12.2521L4.21542 11.8208L4.07688 10.9698C3.96856 10.3204 3.96856 9.65766 4.07688 9.00832L4.21854 8.1552L3.46959 7.72186L3.45709 7.70832C3.24914 7.58489 3.09787 7.38486 3.03575 7.15116C2.97362 6.91746 3.00559 6.66872 3.12479 6.45832L3.49354 5.82082C3.57469 5.68049 3.69133 5.56397 3.83175 5.48297C3.97217 5.40197 4.13144 5.35934 4.29354 5.35936C4.45497 5.35908 4.61355 5.40187 4.75292 5.48332L4.7675 5.49166L5.51854 5.92499L6.18834 5.37291C6.69646 4.95329 7.27054 4.62067 7.88729 4.38853L8.69563 4.08332V3.21874C8.69452 2.97433 8.79041 2.73945 8.96226 2.56565C9.13411 2.39185 9.36788 2.29331 9.61229 2.29166H10.3873ZM10.3873 1.04166H9.61229C9.03636 1.04193 8.4841 1.27084 8.07685 1.67809C7.66961 2.08533 7.4407 2.6376 7.44042 3.21353C6.69518 3.49423 6.00146 3.89618 5.38729 4.40312L5.37271 4.39478C4.87362 4.10685 4.2806 4.02894 3.72407 4.17818C3.16753 4.32742 2.69307 4.6916 2.405 5.19062L2.03729 5.83332C1.74928 6.33229 1.67121 6.92522 1.82025 7.48173C1.96929 8.03825 2.33324 8.51279 2.83209 8.80103L2.84771 8.80936C2.78023 9.20444 2.74539 9.6044 2.74354 10.0052C2.74367 10.3971 2.77572 10.7883 2.83938 11.175L2.81646 11.1885C2.56927 11.3311 2.35259 11.5209 2.1788 11.7472C2.00501 11.9735 1.87752 12.2319 1.80361 12.5075C1.7297 12.7831 1.71083 13.0706 1.74807 13.3535C1.7853 13.6364 1.87792 13.9091 2.02063 14.1562L2.41334 14.8364C2.55638 15.0837 2.74681 15.3003 2.97371 15.4738C3.20061 15.6473 3.45953 15.7743 3.73561 15.8475C4.01169 15.9208 4.29952 15.9388 4.58259 15.9007C4.86566 15.8625 5.13841 15.7688 5.38521 15.625L5.40813 15.6114C6.01714 16.1105 6.70362 16.5067 7.44042 16.7844C7.44028 17.0697 7.49635 17.3523 7.60542 17.616C7.7145 17.8797 7.87444 18.1193 8.07612 18.3212C8.27779 18.523 8.51726 18.6832 8.78084 18.7925C9.04441 18.9018 9.32694 18.9582 9.61229 18.9583H10.3873C10.9632 18.958 11.5155 18.7291 11.9227 18.3219C12.33 17.9146 12.5589 17.3624 12.5592 16.7864C13.3043 16.5061 13.9981 16.1045 14.6123 15.5979L14.6269 15.6062C15.126 15.8942 15.719 15.9721 16.2755 15.8228C16.8321 15.6736 17.3065 15.3094 17.5946 14.8104L17.9623 14.1729C18.2503 13.6739 18.3284 13.081 18.1793 12.5245C18.0303 11.968 17.6663 11.4934 17.1675 11.2052L17.1519 11.1969C17.2194 10.8018 17.2542 10.4018 17.256 10.001C17.2559 9.60915 17.2239 9.21792 17.1602 8.83124L17.1831 8.8177C17.4303 8.67516 17.647 8.48531 17.8208 8.259C17.9946 8.03269 18.1221 7.77435 18.196 7.49875C18.2699 7.22314 18.2888 6.93568 18.2515 6.65278C18.2143 6.36987 18.1217 6.09708 17.979 5.84999L17.5863 5.16978C17.4437 4.92202 17.2537 4.70485 17.027 4.53072C16.8003 4.3566 16.5415 4.22895 16.2654 4.1551C15.9893 4.08126 15.7013 4.06267 15.418 4.1004C15.1346 4.13814 14.8616 4.23145 14.6144 4.37499L14.5915 4.38853C13.9824 3.88946 13.296 3.49327 12.5592 3.21561C12.5593 2.93026 12.5032 2.64768 12.3942 2.384C12.2851 2.12031 12.1252 1.8807 11.9235 1.67883C11.7218 1.47695 11.4823 1.31678 11.2188 1.20746C10.9552 1.09813 10.6726 1.04179 10.3873 1.04166Z",fill:"#666666"}),V("path",{d:"M10.0003 7.91666C10.4124 7.91666 10.8152 8.03884 11.1578 8.26776C11.5004 8.49668 11.7674 8.82205 11.9251 9.20273C12.0828 9.58341 12.124 10.0023 12.0436 10.4064C11.9632 10.8106 11.7648 11.1818 11.4735 11.4731C11.1821 11.7645 10.8109 11.9629 10.4068 12.0433C10.0026 12.1237 9.58375 12.0824 9.20307 11.9247C8.82239 11.7671 8.49702 11.5 8.2681 11.1574C8.03918 10.8148 7.91699 10.412 7.91699 9.99999C7.91699 9.44745 8.13649 8.91755 8.52719 8.52685C8.91789 8.13615 9.44779 7.91666 10.0003 7.91666ZM10.0003 6.66666C9.34106 6.66666 8.69659 6.86215 8.14843 7.22842C7.60026 7.5947 7.17302 8.11529 6.92073 8.72438C6.66844 9.33346 6.60243 10.0037 6.73104 10.6503C6.85966 11.2969 7.17713 11.8908 7.6433 12.357C8.10948 12.8232 8.70342 13.1407 9.35003 13.2693C9.99663 13.3979 10.6669 13.3319 11.2759 13.0796C11.885 12.8273 12.4056 12.4001 12.7719 11.8519C13.1382 11.3037 13.3337 10.6593 13.3337 9.99999C13.3337 9.11593 12.9825 8.26809 12.3573 7.64297C11.7322 7.01785 10.8844 6.66666 10.0003 6.66666Z",fill:"#666666"})]})}g();function m3(e,t=2e3){return n=>{let a,r=0;return u=>{++r==e&&(n(u),r=0),clearTimeout(a),a=setTimeout(()=>r=0,t)}}}g();function g3(e){let t=e.split(".");return t.length>2?(t[0]="*",t.join(".")):null}g();function p3(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}g();g();function wt(){return Fu(nl)}function Hn(e){let{items:t,maxWidth:n,className:a}=e,{lang:r}=wt();return n=n||(r==="en"?144:160),V("select",{autoComplete:"off",class:a||"min-select",style:{maxWidth:`${n}px`},value:t.find(u=>u.selected)?.value,onChange:u=>{let o=u.target.value,i=t.find(l=>l.value===o);i&&i.onSelected(i)},children:t.map((u,o)=>V("option",{value:u.value,selected:u.selected,children:u.label},"selectlink"+o))})}g();var Jo="DROP_DOWN_DEFAULT_VALUE";function rl(e){let{showArrow:t,onSelected:n,className:a,menus:r,maxWidth:u}=e;a=a||"",t=t??!0,u=u||80;let o=Mu(null);return V("select",{ref:o,autoComplete:"off",class:`text-label min-select ${t?"":"min-select-no-arrow"} ${a||""}`,value:Jo,style:{maxWidth:`${u}px`},onChange:i=>{i.preventDefault();let l=i.target.value;if(o.current&&l!==Jo){o.current.value=Jo,o.current?.dispatchEvent(new Event("change"));let c=r.find(s=>s.value===l);c&&n(c)}},children:[{value:Jo,label:e.label}].concat(r).map((i,l)=>V("option",{value:i.value,children:i.label},"option-"+l))})}g();function ul(e){let{field:t,onChange:n,value:a}=e;a=a||t.default||"";let{t:r}=wt(),u=t.name;return t.label&&(u=t.label),t.labelKey&&(u=r(t.labelKey)),t.type==="select"?V("div",{class:"flex justify-between items-center mb-2",children:[V("label",{class:"inline-block",children:[u,"\uFF1A"]}),V(Hn,{items:t.options.map(o=>({label:`${o.label?r(o.label):o.value}`,value:o.value,selected:a===o.value,onSelected:()=>{n(o.value)}}))})]}):null}g();g();function gu(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var N9=({date:e})=>{let{t}=wt(),[n,a]=Te(!1);return Ne(()=>{setTimeout(()=>{a(!0)},5e3)},[]),n?null:V("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},j9=({minVersion:e})=>{let{t}=wt();return V("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},U9=()=>{let{t:e}=wt();return V("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:"https://immersivetranslate.com/docs/installation/"})}})},z9=({message:e,handleSyncing:t,date:n})=>{let{t:a}=wt();return V("p",{class:"text-sm",children:[a("failToSyncRules")," ",V("a",{onClick:t,children:a("retry")}),V("br",{}),a("failedReason"),"\uFF1A",e,V("br",{}),a("currentRuleVersion"),"\uFF1A",n]})};function ol(e){let{isShowError:t,request:n}=e,[a,r]=Te(null),{t:u}=wt(),[o,i]=Te(null),[l,c]=Te(null),[s,m]=Te(""),[p,f]=Te(!1),[d,b]=Te(!1),[C,h]=Te(!1),[A,S]=Te(null),[U,O]=Te(null),y=tn(),T=async()=>{m("");let k=o;if(o===null)try{let v=await n({url:Mr});v?(i(v),k=v,f(!0)):(m(u("unknownError")),c(null))}catch(v){c(null),m(v.message);return}k!==null?(e.setStorageBuildinConfig(k),c(!1),r(k.buildinConfigUpdatedAt)):(m(u("canNotFetchRemoteRule")),c(null))};return Ne(()=>{hn().then(k=>{let v=k.buildinConfigUpdatedAt;S(k);let E=new Date(v);if(r(v),y==="0.0.0"){h(!0);return}n({url:Mr}).then(R=>{let F=R,w=F.minVersion,B=y;i(F);let I=F.latestVersion;if(I&&(gu(B,I)?O(!0):O(!1)),gu(B,w)){let N=F.buildinConfigUpdatedAt;new Date(N)>E?(c(!0),T()):c(!1)}else b(!0),c(null)}).catch(R=>{c(null),m(R.message)})})},[]),Ne(()=>{hn().then(k=>{S(k)})},[a]),A?V("div",{class:"text-sm mt-2",style:{maxWidth:218},children:C?V(U9,{}):s?t===!1?null:V(z9,{handleSyncing:T,message:s,date:a||""}):d?t===!1?null:V(j9,{minVersion:o.minVersion}):l===null||l===!0?null:p?V(N9,{date:a}):null}):null}g();var Qo='',il="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMTEuNjIzLS4zMTguODQ1Yy0uMjA4LjIyMi0uNTI3LjMzMy0uOTI4LjMzM2gtMS4zM1Y5LjI0MmgxLjMzWm05Ljg0NiAxLjc4OGMuMzg4IDAgLjY2NS4xNTIuODQ1LjQ1Ny4xNTIuMjY0LjIzNS41ODIuMjYzLjk4NHYuMzE5YzAgLjQ5OS0uMDgzLjg4Ny0uMjYzIDEuMTkyLS4xOC4zMDQtLjQ1Ny40NTctLjgzLjQ1Ny0uMzg5IDAtLjY2Ni0uMTUzLS44NDYtLjQ0NC0uMTUyLS4yNjMtLjIzNS0uNTk1LS4yNjMtMS4wMTF2LS4yOTFjMC0uNDg1LjA4My0uODczLjI2My0xLjE3OC4xOC0uMzA1LjQ0My0uNDg1LjgzMS0uNDg1Wm0tMy40MDctMS4xMzZhMS4xNyAxLjE3IDAgMCAwLS43MDYuMjM1IDEuNDgyIDEuNDgyIDAgMCAwLS40MTUuNWwtLjA4My4xNjUtLjA3LS44MDNoLTEuMzU3djUuNDMyaDEuNDU0di0zLjY1OWEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiA4LjEySDQuMTE0djcuMzE3aDEuNDY4VjEyLjc5aDEuMzNjLjg0NCAwIDEuNDk1LS4yMDggMS45OC0uNjM4LjQ4NS0uNDMuNzItLjk4My43Mi0xLjY5cy0uMjM1LTEuMjYxLS43Mi0xLjY5Yy0uNDQzLS4zODktMS4wMzktLjYxLTEuNzczLS42MzhsLS4yMjEtLjAxNFptOS44NDcgMS43NzRjLS44MDMgMC0xLjQyNi4yNjMtMS44ODMuNzc2LS40MTYuNDctLjYzNyAxLjA2Ny0uNjc5IDEuNzczdi4zMzNjMCAuODE4LjIyMiAxLjQ4My42NzkgMS45OTUuNDU3LjUxMyAxLjA4Ljc3NiAxLjg4My43NzYuODA0IDAgMS40MjctLjI2MyAxLjg4NC0uNzc2LjQxNS0uNDcuNjM3LTEuMDUzLjY3OC0xLjc3M3YtLjMzM2MwLS44MTctLjIyMS0xLjQ4Mi0uNjc4LTEuOTk1LS40NTctLjUxMy0xLjA4LS43NzYtMS44ODQtLjc3NlpNMTguMDAzIDZhNiA2IDAgMCAxIDAgMTJIMFY5LjQyM0EzLjQyIDMuNDIgMCAwIDEgMy40MiA2aDE0LjU4M1oiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSI3LjUiIHgyPSIyMiIgeTE9IjE5IiB5Mj0iNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMyMjIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM2OTY5NjkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=",sl="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzk5OSIgZD0iTTYuODk3IDMuMjQyYy40MTUgMCAuNzIuMTExLjkyOC4zNDcuMjA3LjIzNS4zMTguNTI2LjMxOC44NzMgMCAuMzQ2LS4xMS42MjMtLjMxOC44NDUtLjIwOC4yMjItLjUyNy4zMzMtLjkyOC4zMzNoLTEuMzNWMy4yNDJoMS4zM1ptOS44NDYgMS43ODhjLjM4OCAwIC42NjUuMTUyLjg0NS40NTcuMTUyLjI2NC4yMzUuNTgyLjI2My45ODR2LjMxOWMwIC40OTktLjA4My44ODctLjI2MyAxLjE5Mi0uMTguMzA0LS40NTcuNDU3LS44My40NTctLjM4OSAwLS42NjYtLjE1My0uODQ2LS40NDQtLjE1Mi0uMjYzLS4yMzUtLjU5NS0uMjYzLTEuMDExdi0uMjkxYzAtLjQ4NS4wODMtLjg3My4yNjMtMS4xNzguMTgtLjMwNS40NDMtLjQ4NS44MzEtLjQ4NVptLTMuNDA3LTEuMTM2YTEuMTcgMS4xNyAwIDAgMC0uNzA2LjIzNSAxLjQ4MiAxLjQ4MiAwIDAgMC0uNDE1LjVsLS4wODMuMTY1LS4wNy0uODAzaC0xLjM1N3Y1LjQzMmgxLjQ1NFY1Ljc2NGEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiAyLjEySDQuMTE0djcuMzE3aDEuNDY4VjYuNzloMS4zM2MuODQ0IDAgMS40OTUtLjIwOCAxLjk4LS42MzguNDg1LS40My43Mi0uOTgzLjcyLTEuNjlzLS4yMzUtMS4yNjEtLjcyLTEuNjljLS40NDMtLjM4OS0xLjAzOS0uNjEtMS43NzMtLjYzOGwtLjIyMS0uMDE0Wm05Ljg0NyAxLjc3NGMtLjgwMyAwLTEuNDI2LjI2My0xLjg4My43NzYtLjQxNi40Ny0uNjM3IDEuMDY3LS42NzkgMS43NzN2LjMzM2MwIC44MTguMjIyIDEuNDgzLjY3OSAxLjk5NS40NTcuNTEzIDEuMDguNzc2IDEuODgzLjc3Ni44MDQgMCAxLjQyNy0uMjYzIDEuODg0LS43NzYuNDE1LS40Ny42MzctMS4wNTMuNjc4LTEuNzczdi0uMzMzYzAtLjgxNy0uMjIxLTEuNDgzLS42NzgtMS45OTUtLjQ1Ny0uNTEzLTEuMDgtLjc3Ni0xLjg4NC0uNzc2Wk0xOC4wMDMgMGE2IDYgMCAwIDEgMCAxMkgwVjMuNDIzQTMuNDIgMy40MiAwIDAgMSAzLjQyIDBoMTQuNTgzWiIvPjwvc3ZnPg==";function pu(e){let t=tn(),{onTranslateTheMainPage:n,onUserConfigChange:a,request:r,onTranslateLocalHtmlFile:u,onSwitchTranslationMode:o,onTranslateLocalSubtitleFile:i,onSetBuildinConfig:l,pageStatus:c,openEbookBuilderPage:s,openPricingPage:m,openEbookViewerPage:p,config:f,openAboutPage:d,onTranslateTheWholePage:b,onToggleEnabled:C,openOptionsPage:h,ontranslateToThePageEndImmediately:A,onSetPageLanguage:S,onToggleTranslate:U,onTranslateLocalPdfFile:O,onTranslatePdf:y,onRestorePage:T,ctx:k,currentUrl:v,currentLang:E,onClose:R,onTranslatePage:F,onSetLocalConfig:w,onMouseTriggerChanged:B,errorMsg:I,disabledButton:N,noPermissionPDF:P}=e,x=a,[D,M]=Te(""),[q,j]=Te(I),[$,z]=Te(null),[ae,J]=Te(null),{t:Y,lang:pe}=wt(),he=70;pe.startsWith("zh")||(he=75);let ue=null,G=null,ie=null,me=null,ce=null,ye=null,Se=null,xe=null,Z=null,ke=null,Le=null,Oe=null;Ne(()=>{jt.get(Nt,null).then(W=>{W?(z(W),J(en(W))):J(!1)}).catch(W=>{J(!1)})},[]);let Ue=!0,it=At();if(f){it&&f&&(Ue=f.generalRule.showSponsorOnSafari);let{translationService:W,translationServices:de,translationUrlPattern:Ke}=f;Bn[W]&&(xe=Ks("translationService",W,k)),de&&de[W]?Oe=de[W]||{}:Oe={};try{Z=new URL(v||"")}catch{}if(v&&Zo(v)){ke=g3(Z.hostname),Le=p3(v);let{matches:Pe,excludeMatches:Fe}=Ke;G=Pe.includes(ke),ue=Pe.includes(Z.hostname),me=Fe.includes(ke),ie=Fe.includes(Z.hostname),ye=Pe.includes(Le),Se=Fe.includes(Le)}}if(f&&E&&E!=="auto"){let{translationLanguagePattern:W}=f,{matches:de}=W;de.includes(E)?ce=!0:ce=!1}let _t=W=>{W.preventDefault(),h()},ga=W=>{x(de=>(de.alpha?M("Success disable alpha!"):M("Success enable alpha!"),{...de,alpha:!de.alpha}))},Ht=W=>{x(de=>({...de,translationMode:W})),o(W)},Dn=()=>{x(W=>({...W,translationArea:"body"})),b()},qn=()=>{x(W=>({...W,translationArea:"main"})),n()},Ie=(W,de,Ke,Pe)=>{if(W==="default"){x(wn=>{let Jt={...wn.translationUrlPattern};return{...wn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...wn.translationUrlPattern,matches:Qn([Z?.hostname,ke,v],Jt.matches),excludeMatches:Qn([Z?.hostname,ke,v],Jt.excludeMatches)}}});return}let Fe=W,Ln=Fe==="matches"?"excludeMatches":"matches";Z&&x(wn=>{let Jt={...wn.translationUrlPattern};return Jt[Fe]=Ls(de,Jt[Fe]),Pe.length>0&&(Jt[Fe]=Qn(Pe,Jt[Fe])),Jt[Ln]=Qn(Ke,Jt[Ln]),{...wn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...wn.translationUrlPattern,...Jt}}}),Fe==="matches"&&c==="Original"?setTimeout(()=>{F(),R()},100):Fe==="excludeMatches"&&c==="Translated"&&setTimeout(()=>{T(),R()},100)},qt=W=>{if(!W){x(Pe=>{let Fe={...Pe.translationLanguagePattern};return{...Pe,translationLanguagePattern:{...Pe.translationLanguagePattern,matches:Qn(E,Fe.matches),excludeMatches:Qn(E,Fe.excludeMatches)}}});return}let de=W,Ke=de==="matches"?"excludeMatches":"matches";E&&x(Pe=>{let Fe={...Pe.translationLanguagePattern};return Fe[de]=Ls(E,Fe[de]),Fe[Ke]=Qn(E,Fe[Ke]),{...Pe,translationLanguagePattern:{...Pe.translationLanguagePattern,...Fe}}}),de==="matches"&&c==="Original"&&setTimeout(()=>{F(),R()},100)},at=Z?.pathname.toLowerCase().endsWith(".pdf"),We=Y("translate");c==="Translated"||c==="Error"?We=Y("show-original"):c==="Original"?at?Ha()&&Z.protocol==="file:"||P?We=Y("translate-firefox-local-pdf"):fe()?We=Y("noSupportTranslate-pdf"):We=Y("translate-pdf"):We=Y("translate"):We=Y(c);let Yt=Y("translateToThePageEndImmediately");(c==="Original"||c==="Translated")&&(f.shortcuts.toggleTranslatePage&&(u4()&&k.rule.fingerCountToToggleTranslagePageWhenTouching>=2?We+=` (${Y(`fingers.${k.rule.fingerCountToToggleTranslagePageWhenTouching}`)})`:We+=` (${f.shortcuts.toggleTranslatePage})`),f.shortcuts.toggleTranslateToThePageEndImmediately&&(Yt+=` (${f.shortcuts.toggleTranslateToThePageEndImmediately})`));let Bt=[];k&&(Bt=Am(k,"translationService"));let Wn=W=>{W.preventDefault(),R()},dt=Mg(k.config.translationService,k.config.targetLanguage),cn=ye||ue||G,He=()=>ye?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!ye,onChange:W=>{let de=W.target.checked;Ie(de?"matches":"default",Le,[Le],[])}}),Y("alwaysTranslateSomePage")]}):ue?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!ue,onChange:W=>{let de=W.target.checked;Ie(de?"matches":"default",Z.hostname,[Z.hostname,ke,Le],[ke])}}),Y("alwaysTranslateSomeSiteOrWildSite")]}):G?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!G,onChange:W=>{let de=W.target.checked;Ie(de?"matches":"default",ke,[Le,Z.hostname,ke],[Z.hostname])}}),Y("alwaysTranslateSomeSiteOrWildSite")]}):null;return V("div",{children:[V("div",{class:"popup-container px-6 pt-6 max-content",children:[V("div",{class:"text-sm",children:[V("div",{class:"flex justify-between mb-3 items-center",children:[V("label",{class:"inline-block text-label",children:[Y("popupSourceLanguage"),"\uFF1A"]}),V(Hn,{maxWidth:186,items:Qt.map(W=>({label:Vo(W,f.interfaceLanguage),value:W,selected:W===k.sourceLanguage,onSelected:de=>{S(de.value)}}))})]}),f&&f.targetLanguage&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[Y("popupTarget"),"\uFF1A"]}),V(Hn,{maxWidth:186,items:dt.filter(W=>W!=="auto").map(W=>({label:Vo(W,f.interfaceLanguage),value:W,selected:W===f.targetLanguage,onSelected:de=>{x(Ke=>({...Ke,targetLanguage:de.value}))}}))})]}),xe&&Bt.length>0&&V(Wt,{children:[V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[Y("popupService"),"\uFF1A"]}),V(Hn,{maxWidth:186,items:Bt.map(W=>({label:`${Y("translationServices."+W.id)}${W.ok?"":" "+(" "+(!ae&&!it&&W.providers&&W.providers.length>0?Y("goLoginOrAction"):Y("needAction")))}`,value:W.id,selected:W.selected,onSelected:de=>{let Ke=Bt.find(Pe=>Pe.id===de.value);if(Ke.ok){if(x(Pe=>({...Pe,translationService:Ke.id})),c!="Translated")return;Ke.props.length===0?setTimeout(()=>{F()},1):setTimeout(()=>{T()},1)}else x(Pe=>({...Pe,translationService:Ke.id})),setTimeout(()=>{h()},100)}}))})]}),Oe&&xe.props.length>0&&xe.props.map((W,de)=>V("div",{class:"pl-4 text-sm",children:V(ul,{field:W,value:Oe[W.name],onChange:Ke=>{x(Pe=>{let Fe=Pe.translationServices||{},Ln=Fe[xe.id]||{};return setTimeout(()=>{T()},1),{...Pe,translationServices:{...Fe,[xe.id]:{...Ln,[W.name]:Ke}}}})}},"field-"+de)},"service"+de))]}),Z&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:Y("forThisSite")}),V(Hn,{maxWidth:186,items:[{label:Y("default"),value:"default",selected:ue===!1&&ie===!1&&!G&&!me&&!ye&&!Se,onSelected:()=>{Ie("default",Z.hostname,[],[]);let W=Z.hostname,de=k.localConfig.tempTranslationUrlMatches||[],Ke=de.filter(Fe=>Fe.match!==W),Pe=!1;Ke.length!==de.length&&(Pe=!0),Pe&&w({...k.localConfig,tempTranslationUrlMatches:[...Ke]})}},Le&&{label:Y("alwaysTranslateSomeSite",{hostname:Y("currentUrl")}),value:"matchesUrl",selected:ye,onSelected:()=>{Ie("matches",Le,[Le],[])}},{label:Y("alwaysTranslateSomeSite",{hostname:Z.hostname}),value:"matches",selected:ue,onSelected:W=>{Ie(W.value,Z.hostname,[Z.hostname,ke,Le],[ke])}},ke&&{label:Y("alwaysTranslateSomeSite",{hostname:ke}),value:"matchesWild",selected:G,onSelected:()=>{Ie("matches",ke,[Le,Z.hostname,ke],[Z.hostname])}},Le&&{label:Y("neverTranslateSomeSite",{hostname:Y("currentUrl")}),value:"excludeMatchesUrl",selected:Se,onSelected:()=>{Ie("excludeMatches",Le,[Le],[])}},{label:Y("neverTranslateSomeSite",{hostname:Z.hostname}),value:"excludeMatches",selected:ie,onSelected:W=>{Ie(W.value,Z.hostname,[Z.hostname,ke,Le],[ke])}},ke&&{label:Y("neverTranslateSomeSite",{hostname:ke}),value:"excludeMatchesWild",selected:me,onSelected:()=>{Ie("excludeMatches",ke,[Z.hostname,Le,ke],[Z.hostname])}}].filter(Boolean)})]}),B&&Dr()&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[Y("mouse-translate"),"\uFF1A"]}),V(Hn,{maxWidth:186,items:Gu.filter(W=>!(Gu.includes(f.generalRule.mouseHoverHoldKey)&&W==="OtherCustom")).map(W=>{let de=Y("mouseHoldKey",{key:W}),Ke=Gu.includes(f.generalRule.mouseHoverHoldKey),Pe=W===f.generalRule.mouseHoverHoldKey;return W==="Auto"?de=Y("mouseHoldKeyAuto"):W==="Off"?de=Y("mouseHoldKeyOff"):W==="OtherCustom"?de=Ke?Y("mouseHoldKeyOther"):Y("mouseHoldKeyCustomKey",{key:f.generalRule.mouseHoverHoldKey}):W==="Other"&&(de=Y("mouseHoldKeyOther")),Ke||W==="OtherCustom"&&(Pe=!0),{label:de,value:W,selected:Pe,onSelected:Fe=>{Fe.value==="Other"?h("#interface"):B(Fe.value)}}})})]})]}),V("div",{class:"",children:V("button",{class:"py-2 mt-1 mb-5 main-button ",onClick:()=>{at?y&&y():U()},"aria-busy":c==="Translating",disabled:N||c==="Translating",children:We})}),V("div",{class:"text-sm",children:D}),V("div",{class:`pb-2 text-sm ${q?"":"display-none"}`,children:q}),V("div",{class:"flex items-center justify-between flex-wrap",children:[cn?V(He,{}):E&&E!=="auto"?V("label",{for:"alwaysTranslateThisLanugage",class:"text-sm text-label text-overflow-ellipsis max-w-20",children:[V("input",{type:"checkbox",id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",checked:!!ce,onChange:W=>{let de=W.target.checked;qt(de?"matches":void 0)}}),Y("alwaysTranslateSomeLanguage",{language:Vo(E,f.interfaceLanguage,!1,!0)})]}):V("span",{}),V("div",{class:`flex flex-end flex-grow ${q?"display-none":""}`,children:V("span",{class:"immersive-translate-no-select muted text-sm",onClick:m3(7)(ga),children:["V",t,f.enabled?null:V("a",{href:"#",onClick:C,children:[" ","(",Y("hasBeenDisabled"),")"]})]})})]})]}),V("footer",{children:[V("div",{class:"px-6 text-label",children:V(ol,{isShowError:!1,request:r,setStorageBuildinConfig:l})}),V("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer text-label",children:[V("div",{class:"flex flex-row items-center justify-center secondary clickable",style:{width:70},onClick:_t,children:[V(al,{}),V("span",{class:"ml-1",children:Y("options")})]}),Ue?V("a",{title:Y(ae?"popup.openProForPro":"popup.openPro"),target:"_blank",href:ae?rs:us,children:V("img",{src:ae?il:sl})}):ae&&V("a",{title:Y(ae?"popup.openProForPro":"popup.openPro"),target:"_blank",href:ae?rs:us,children:V("img",{src:ae?il:sl})}),V(rl,{label:Y("more"),showArrow:!0,maxWidth:he,onSelected:W=>{W.value==="openPremium"?(globalThis.open(_r),R()):W.value==="changeToOnlyTranslationMode"?Ht("translation"):W.value==="changeToDualTranslationMode"?Ht("dual"):W.value==="translateTheWholePage"?b():W.value==="translateToThePageEndImmediately"?A():W.value==="translateTheMainPage"?n():W.value==="showTranslationOnly"||(W.value==="translateLocalPdfFile"?O&&O():W.value==="translateLocalHtmlFile"?u&&u():W.value==="translateLocalSubtitleFile"?i&&i():W.value==="donate"?(globalThis.open(f.donateUrl),R()):W.value==="feedback"?(globalThis.open(f.feedbackUrl),R()):W.value==="options"?(h(),R()):W.value==="changeToTranslateTheWholePage"?Dn():W.value==="changeToTranslateTheMainPage"?qn():W.value==="about"?d():W.value==="toggleEnabled"?C():W.value==="openEbookViewer"?p():W.value==="openEbookBuilder"?s():W.value==="goPro"&&m())},menus:[f.translationMode==="dual"&&{label:"\u{1F524} "+Y("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},f.translationMode==="translation"&&{label:"\u{1F521} "+Y("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},f.translationArea==="main"&&{label:"\u{1F480} "+Y("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},f.translationArea==="body"&&{label:"\u{1F4D6} "+Y("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},{label:"\u26A1 "+Yt,value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+Y("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+Y("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+Y("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},!fe()&&{label:"\u{1F310} "+Y("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+Y("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},ae===!1&&Ue&&{label:"\u{1F451} "+Y("upgradeToPro"),value:"goPro"},{label:"\u2764\uFE0F "+Y(Ue?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})]})]})}g();g();g();g();var ll={get:(e,t,n)=>{let a=t===void 0?e:{[e]:t};return ee.storage[n].get(a)},set:(e,t,n)=>ee.storage[n].set({[e]:t})};function Xo(e,t,n){let[a]=Te(()=>typeof t=="function"?t():t),[r]=Te(n),[u,o]=Te(a),[i,l]=Te(!1),[c,s]=Te("");Ne(()=>{ll.get(e,a,r).then(p=>{p[e]&&o(p[e]),l(!0),s("")}).catch(p=>{l(!1),s(p)})},[e,a,r]);let m=Kn(p=>{let f=typeof p=="function"?p(u):p;H.debug("new settings",f),ll.set(e,f,r).then(()=>{o(f),l(!0),s("")}).catch(d=>{o(f),l(!1),s(d)})},[r,e,u]);return[u,m,i,c]}g();function cl(e,t,n){let a=[];return function(){let[u,o,i,l]=Xo(e,t,n),c=Kn(s=>{for(let m of a)m(s)},[]);return Ne(()=>(a.push(o),()=>{a.splice(a.indexOf(o),1)}),[o]),[u,c,i,l]}}function f3(e,t){return cl(e,t,"sync")}var H9="userConfig",q9=null,W9=f3(H9,q9);function hr(e){let[t,n,a,r]=W9(),u=Kn(o=>{let i=typeof o=="function"?o(t):o;i&&(i.updatedAt=new Date().toISOString()),n(i),e&&e(i)},[t]);return[t,u,a,r,n]}g();g();async function h3(e){try{let t=new Date;H.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await ee.storage.local.set({[k4]:t.toISOString()}),await $9(),fe()||await b3()}catch(t){H.error("run cron task failed",t)}}async function $9(){try{let e=await Tn(),t=await se({url:Mr}),n=e.buildinConfigUpdatedAt,a=new Date(n),r=t.buildinConfigUpdatedAt,u=new Date(r),o=t.minVersion,i=ee.runtime.getManifest().version;gu(i,o)?u>a?(await ee.storage.local.set({buildinConfig:t}),H.info(`sync remote rules success, latest: ${new Date(r).toLocaleString()}`)):H.debug(`no need to sync rules, latest: ${a}`):H.info(`local version is too old, please update to ${o} or later`)}catch(e){H.error("sync rules error: ",e)}}g();g();g();g();g();g();var dl;function Tl(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function k3(e,t=","){return e.map(Tl).join(t)}var S3=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function ti(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function ni(e,t="@media "){return t+Gt(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(a=>`(${a}-width:${n[a]})`).join(" and "))).join(",")}function Gt(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function K9(){}var ht={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function D3(e){return e.match(/[-=:;]/g)?.length||0}function bl(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(D3(e),15)<<18}var G9=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function Cl({n:e,i:t,v:n=[]},a,r,u){e&&(e=Tl({n:e,i:t,v:n})),u=[...Gt(u)];for(let i of n){let l=a.theme("screens",i);for(let c of Gt(l&&ni(l)||a.v(i))){var o;u.push(c),r|=l?67108864|bl(c):i=="dark"?1073741824:c[0]=="@"?bl(c):(o=c,1<<~(/:([a-z-]+)/.test(o)&&~G9.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:r,r:u,i:t}}var wl=new Map;function y3(e){if(e.d){let t=[],n=ml(e.r.reduce((a,r)=>r[0]=="@"?(t.push(r),a):r?ml(a,u=>ml(r,o=>{let i=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(i){let l=u.indexOf(i[1]);return~l?u.slice(0,l)+i[0]+u.slice(l+i[1].length):gl(u,o)}return gl(o,u)})):a,"&"),a=>gl(a,e.n?"."+S3(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((a,r)=>r+"{"+a+"}",e.d)}}function ml(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,a,r)=>t(a)+r)}function gl(e,t){return e.replace(/&/g,t)}var x3=new Intl.Collator("en",{numeric:!0});function V9(e,t){for(var n=0,a=e.length;n>1;0>=L3(e[r],t)?n=r+1:a=r}return a}function L3(e,t){let n=e.p&ht.o;return n==(t.p&ht.o)&&(n==ht.b||n==ht.o)?0:e.p-t.p||e.o-t.o||x3.compare(E3(e.n),E3(t.n))||x3.compare(T3(e.n),T3(t.n))}function E3(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function T3(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function pl(e,t){return Math.round(parseInt(e,16)*t)}function da(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:a}=t,r=a?`var(${a})`:n;if(e.includes(""))return e.replace("",r);if(e[0]=="#"&&(e.length==4||e.length==7)){let u=(e.length-1)/3,o=[17,1,.062272][u-1];return`rgba(${[pl(e.substr(1,u),o),pl(e.substr(1+u,u),o),pl(e.substr(1+2*u,u),o),r]})`}return r=="1"?e:r=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${r})`)}function P3(e,t,n,a,r=[]){return function u(o,{n:i,p:l,r:c=[],i:s},m){let p=[],f="",d=0,b=0;for(let A in o||{}){var C,h;let S=o[A];if(A[0]=="@"){if(!S)continue;if(A[1]=="a"){p.push(...F3(i,l,Al(""+S),m,l,c,s,!0));continue}if(A[1]=="l"){for(let U of Gt(S))p.push(...u(U,{n:i,p:(C=ht[A[7]],l&~ht.o|C),r:A[7]=="d"?[]:c,i:s},m));continue}if(A[1]=="i"){p.push(...Gt(S).map(U=>({p:-1,o:0,r:[],d:A+" "+U})));continue}if(A[1]=="k"){p.push({p:ht.d,o:0,r:[A],d:u(S,{p:ht.d},m).map(y3).join("")});continue}if(A[1]=="f"){p.push(...Gt(S).map(U=>({p:ht.d,o:0,r:[A],d:u(U,{p:ht.d},m).map(y3).join("")})));continue}}if(typeof S!="object"||Array.isArray(S))A=="label"&&S?i=S+ti(JSON.stringify([l,s,o])):(S||S===0)&&(A=A.replace(/[A-Z]/g,U=>"-"+U.toLowerCase()),b+=1,d=Math.max(d,(h=A)[0]=="-"?0:D3(h)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(h)?+!!RegExp.$1||-!!RegExp.$2:0)+1),f+=(f?";":"")+Gt(S).map(U=>m.s(A,M3(""+U,m.theme)+(s?" !important":""))).join(";"));else if(A[0]=="@"||A.includes("&")){let U=l;A[0]=="@"&&(A=A.replace(/\bscreen\(([^)]+)\)/g,(O,y)=>{let T=m.theme("screens",y);return T?(U|=67108864,ni(T,"")):O}),U|=bl(A)),p.push(...u(S,{n:i,p:U,r:[...c,A],i:s},m))}else p.push(...u(S,{p:l,r:[...c,A]},m))}return p.unshift({n:i,p:l,o:Math.max(0,15-b)+1.5*Math.min(d||15,15),r:c,d:f}),p.sort(L3)}(e,Cl(t,n,a,r),n)}function M3(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,a,r,u,o="")=>{let i=t(r,o);return typeof i=="function"&&/color|fill|stroke/i.test(r)?da(i):""+Gt(i).filter(l=>Object(l)!==l)})}function vl(e,t){let n,a=[];for(let r of e)r.d&&r.n?n?.p==r.p&&""+n.r==""+r.r?(n.c=[n.c,r.c].filter(Boolean).join(" "),n.d=n.d+";"+r.d):a.push(n={...r,n:r.n&&t}):a.push({...r,n:r.n&&t});return a}function yl(e,t,n=ht.u,a,r){let u=[];for(let o of e)for(let i of function(l,c,s,m,p){l={...l,i:l.i||p};let f=function(d,b){let C=wl.get(d.n);return C?C(d,b):b.r(d.n,d.v[0]=="dark")}(l,c);return f?typeof f=="string"?({r:m,p:s}=Cl(l,c,s,m),vl(yl(Al(f),c,s,m,l.i),l.n)):Array.isArray(f)?f.map(d=>{var b,C;return{o:0,...d,r:[...Gt(m),...Gt(d.r)],p:(b=s,C=d.p??s,b&~ht.o|C)}}):P3(f,l,c,s,m):[{c:Tl(l),p:0,o:0,r:[]}]}(o,t,n,a,r))u.splice(V9(u,i),0,i);return u}function F3(e,t,n,a,r,u,o,i){return vl((i?n.flatMap(l=>yl([l],a,r,u,o)):yl(n,a,r,u,o)).map(l=>l.p&ht.o&&(l.n||t==ht.b)?{...l,p:l.p&~ht.o|t,o:0}:l),e)}function Y9(e,t,n,a){var r;return r=(u,o)=>{let{n:i,p:l,r:c,i:s}=Cl(u,o,t);return n&&F3(i,t,n,o,l,c,s,a)},wl.set(e,r),e}function fl(e,t,n){if(e[e.length-1]!="("){let a=[],r=!1,u=!1,o="";for(let i of e)if(!(i=="("||/[~@]$/.test(i))){if(i[0]=="!"&&(i=i.slice(1),r=!r),i.endsWith(":")){a[i=="dark:"?"unshift":"push"](i.slice(0,-1));continue}i[0]=="-"&&(i=i.slice(1),u=!u),i.endsWith("-")&&(i=i.slice(0,-1)),i&&i!="&"&&(o+=(o&&"-")+i)}o&&(u&&(o="-"+o),t[0].push({n:o,v:a.filter(J9),i:r}))}}function J9(e,t,n){return n.indexOf(e)==t}var C3=new Map;function Al(e){let t=C3.get(e);if(!t){let n=[],a=[[]],r=0,u=0,o=null,i=0,l=(c,s=0)=>{r!=i&&(n.push(e.slice(r,i+s)),c&&fl(n,a)),r=i+1};for(;i1?m.slice(0,-1)+ti(JSON.stringify([m,p])):m+"("+k3(p)+")",ht.a,p,/@$/.test(m))],a)}s=n.lastIndexOf("(",s-1)}n.length=s+1}else/[~@]/.test(c)&&e[i+1]=="("&&a.unshift([])}l(!0),C3.set(e,t=a[0])}return t}function _3(e,t,n){return t.reduce((a,r,u)=>a+n(r)+e[u+1],e[0])}function B3(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?_3(e,t,n=>hl(n).trim()):t.filter(Boolean).reduce((n,a)=>n+hl(a),e?hl(e):"")}function hl(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=B3(e[0],e.slice(1)))&&(n+=" "+t);else for(let a in e)e[a]&&(n+=" "+a);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var OM=R3("@"),IM=R3("~");function R3(e){return new Proxy(function(n,...a){return t("",n,a)},{get(n,a){return a in n?n[a]:function(r,...u){return t(a,r,u)}}});function t(n,a,r){return k3(Al(n+e+"("+B3(a,r)+")"))}}function xl(e,t){return Array.isArray(e)?w3(_3(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?w3(e):[e]}var Q9=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function w3(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],a=[n[0]],r=[];for(;t=Q9.exec(e);)t[4]&&(n.shift(),r.shift()),t[3]?(r.unshift(t[3]),n.unshift({}),a.push(r.reduce((u,o)=>({[o]:u}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),a.push(r.reduce((u,o)=>({[o]:u}),n[0]))),n[0][t[1]]=t[2]);return a}function O3(e,...t){var n;let a=xl(e,t),r=(a.find(u=>u.label)?.label||"css")+ti(JSON.stringify(a));return n=(u,o)=>vl(a.flatMap(i=>P3(i,u,o,ht.o)),r),wl.set(r,n),r}var NM=new Proxy(function(e,t){return v3("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,a){return v3(t,n,a)}}});function v3(e,t,n){return{toString(){return O3({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function te(e,t,n){return[e,Z9(t,n)]}function Z9(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,a)=>({[e]:t?t(n,a):El(n,1)}):n=>e||{[n[1]]:El(n,2)}}function El(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function ne(e,t,n,a){return[e,X9(t,n,a)]}function X9(e,t,n){let a=typeof t=="string"?(r,u)=>({[t]:n?n(r,u):r._}):t||(({1:r,_:u},o,i)=>({[r||i]:u}));return(r,u)=>{let o=I3(e||r[1]),i=u.theme(o,r.$$)??br(r.$$,o,u);if(i!=null)return r._=El(r,0,i),a(r,u,o)}}function ot(e,t={},n){return[e,eb(t,n)]}function eb(e={},t){return(n,a)=>{let{section:r=I3(n[0]).replace("-","")+"Color"}=e,[u,o]=tb(n.$$);if(!u)return;let i=a.theme(r,u)||br(u,r,a);if(!i||typeof i=="object")return;let{opacityVariable:l=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:c=r.replace("Color","Opacity"),property:s=r,selector:m}=e,p=a.theme(c,o||"DEFAULT")||o&&br(o,c,a),f=t||(({_:b})=>{let C=fu(s,b);return m?{[m]:C}:C});n._={value:da(i,{opacityVariable:l||void 0,opacityValue:p||void 0}),color:b=>da(i,b),opacityVariable:l||void 0,opacityValue:p||void 0};let d=f(n,a);if(!n.dark){let b=a.d(r,u,i);b&&b!==i&&(n._={value:da(b,{opacityVariable:l||void 0,opacityValue:p||"1"}),color:C=>da(b,C),opacityVariable:l||void 0,opacityValue:p||void 0},d={"&":d,[a.v("dark")]:f(n,a)})}return d}}function tb(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function fu(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function br(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=ei(M3(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function I3(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function ei(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",a,r="")=>ei(n)+a+ei(r)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var jM=Symbol();var N3=new Proxy(K9,{apply(e,t,n){return dl(n[0])},get(e,t){let n=dl[t];return typeof n=="function"?function(){return n.apply(dl,arguments)}:n}});var UM=function e(t){return new Proxy(function(n,...a){return A3(t,"",n,a)},{get(n,a){return a==="bind"?e:a in n?n[a]:function(r,...u){return A3(t,a,r,u)}}})}();function A3(e,t,n,a){return{toString(){let r=xl(n,a),u=S3(t+ti(JSON.stringify([t,r])));return(typeof e=="function"?e:N3)(O3({[`@keyframes ${u}`]:xl(n,a)})),u}}}g();g();g();g();g();var j3={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...Vt(4,"rem",4,.5,.5),...Vt(12,"rem",4,5),14:"3.5rem",...Vt(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Me("blur"),backdropBrightness:Me("brightness"),backdropContrast:Me("contrast"),backdropGrayscale:Me("grayscale"),backdropHueRotate:Me("hueRotate"),backdropInvert:Me("invert"),backdropOpacity:Me("opacity"),backdropSaturate:Me("saturate"),backdropSepia:Me("sepia"),backgroundColor:Me("colors"),backgroundImage:{none:"none"},backgroundOpacity:Me("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...Vt(200,"",100,0,50),...Vt(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Me("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Me("spacing"),borderWidth:{DEFAULT:"1px",...un(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Me("colors"),caretColor:Me("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...Vt(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Me("borderColor"),divideOpacity:Me("borderOpacity"),divideWidth:Me("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...hu(2,6),...hu(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Me("spacing"),gradientColorStops:Me("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...hu(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...hu(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...Vt(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...Vt(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Me("spacing"),placeholderColor:Me("colors"),placeholderOpacity:Me("opacity"),outlineColor:Me("colors"),outlineOffset:un(8,"px"),outlineWidth:un(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Me("colors"),ringOffsetWidth:un(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...un(8,"px")},rotate:{...un(2,"deg"),...un(12,"deg",3),...un(180,"deg",45)},saturate:Vt(200,"",100,0,50),scale:{...Vt(150,"",100,0,50),...Vt(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Me("spacing"),scrollPadding:Me("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...un(2,"deg"),...un(12,"deg",3)},space:Me("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:Vt(2),textColor:Me("colors"),textDecorationColor:Me("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...un(8,"px")},textUnderlineOffset:{auto:"auto",...un(8,"px")},textIndent:Me("spacing"),textOpacity:Me("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Me("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...hu(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...Vt(50,"",1,0,10),auto:"auto"}};function hu(e,t){let n={};do for(var a=1;at(e)}var uF={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${j3.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${j3.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},iF=[te("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:br(`[${t}]`,"",n)}}})),te("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),ne("aspect-","aspectRatio"),te("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:a,padding:r}=t("container"),u={width:"100%",marginRight:a&&"auto",marginLeft:a&&"auto",...o("xs")};for(let i in n){let l=n[i];typeof l=="string"&&(u[ni(l)]={"&":{maxWidth:l,...o(i)}})}return u;function o(i){let l=r&&(typeof r=="string"?r:r[i]||r.DEFAULT);if(l)return{paddingRight:l,paddingLeft:l}}}),ne("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),te("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),te("box-(border|content)","boxSizing",({1:e})=>e+"-box"),te("hidden",{display:"none"}),te("table-(auto|fixed)","tableLayout"),te(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",te("isolate","isolation"),te("object-(contain|cover|fill|none|scale-down)","objectFit"),ne("object-","objectPosition"),te("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",ai),te("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),te("(static|fixed|absolute|relative|sticky)","position"),ne("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),ne("-?(top|bottom|left|right)(?:$|-)","inset"),te("(visible|collapse)","visibility"),te("invisible",{visibility:"hidden"}),ne("-?z-","zIndex"),te("flex-((row|col)(-reverse)?)","flexDirection",U3),te("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),ne("(flex-(?:grow|shrink))(?:$|-)"),ne("(flex)-"),ne("grow(?:$|-)","flexGrow"),ne("shrink(?:$|-)","flexShrink"),ne("basis-","flexBasis"),ne("-?(order)-"),"-?(order)-(\\d+)",ne("grid-cols-","gridTemplateColumns"),te("grid-cols-(\\d+)","gridTemplateColumns",W3),ne("col-","gridColumn"),te("col-(span)-(\\d+)","gridColumn",q3),ne("col-start-","gridColumnStart"),te("col-start-(auto|\\d+)","gridColumnStart"),ne("col-end-","gridColumnEnd"),te("col-end-(auto|\\d+)","gridColumnEnd"),ne("grid-rows-","gridTemplateRows"),te("grid-rows-(\\d+)","gridTemplateRows",W3),ne("row-","gridRow"),te("row-(span)-(\\d+)","gridRow",q3),ne("row-start-","gridRowStart"),te("row-start-(auto|\\d+)","gridRowStart"),ne("row-end-","gridRowEnd"),te("row-end-(auto|\\d+)","gridRowEnd"),te("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>ai(U3(e))),te("grid-flow-(dense)","gridAutoFlow"),ne("auto-cols-","gridAutoColumns"),ne("auto-rows-","gridAutoRows"),ne("gap-x(?:$|-)","gap","columnGap"),ne("gap-y(?:$|-)","gap","rowGap"),ne("gap(?:$|-)","gap"),"(justify-(?:items|self))-",te("justify-","justifyContent",z3),te("(content|items|self)-",e=>({["align-"+e[1]]:z3(e)})),te("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),ne("p([xytrbl])?(?:$|-)","padding",yr("padding")),ne("-?m([xytrbl])?(?:$|-)","margin",yr("margin")),ne("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),te("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),ne("w-","width"),ne("min-w-","minWidth"),ne("max-w-","maxWidth"),ne("h-","height"),ne("min-h-","minHeight"),ne("max-h-","maxHeight"),ne("font-","fontWeight"),ne("font-","fontFamily",({_:e})=>typeof(e=Gt(e))[1]=="string"?{fontFamily:Cn(e)}:{fontFamily:Cn(e[0]),...e[1]}),te("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),te("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),te("italic","fontStyle"),te("not-italic",{fontStyle:"normal"}),te("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...ma({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),ne("tracking-","letterSpacing"),ne("leading-","lineHeight"),te("list-(inside|outside)","listStylePosition"),ne("list-","listStyleType"),te("list-","listStyleType"),ne("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),ot("placeholder-",{property:"color",selector:"&::placeholder"}),te("text-(left|center|right|justify|start|end)","textAlign"),te("text-(ellipsis|clip)","textOverflow"),ne("text-opacity-","textOpacity","--tw-text-opacity"),ot("text-",{property:"color"}),ne("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),ne("indent-","textIndent"),te("(overline|underline|line-through)","textDecorationLine"),te("no-underline",{textDecorationLine:"none"}),ne("underline-offset-","textUnderlineOffset"),ot("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),ne("decoration-","textDecorationThickness"),te("decoration-","textDecorationStyle"),te("(uppercase|lowercase|capitalize)","textTransform"),te("normal-case",{textTransform:"none"}),te("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),te("align-","verticalAlign"),te("whitespace-","whiteSpace"),te("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),te("break-words",{overflowWrap:"break-word"}),te("break-all",{wordBreak:"break-all"}),te("break-keep",{wordBreak:"keep-all"}),ot("caret-",{opacityVariable:!1,opacitySection:"opacity"}),ot("accent-",{opacityVariable:!1,opacitySection:"opacity"}),te("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${Da(e," ")},var(--tw-gradient-stops))`),ot("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),ot("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),ot("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),te("bg-(fixed|local|scroll)","backgroundAttachment"),te("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),te(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),te("bg-blend-","backgroundBlendMode"),te("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),ne("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),ot("bg-",{section:"backgroundColor"}),ne("bg-","backgroundImage"),ne("bg-","backgroundPosition"),te("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",ai),ne("bg-","backgroundSize"),ne("rounded(?:$|-)","borderRadius"),ne("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${Da(n[0])}-radius`]:t,[`border-${Da(n[1])}-radius`]:t}}),te("border-(collapse|separate)","borderCollapse"),ne("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),te("border-(solid|dashed|dotted|double|none)","borderStyle"),ne("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...ma({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),ot("border-([xytrbl])-",{section:"borderColor"},yr("border","Color")),ot("border-"),ne("border-([xytrbl])(?:$|-)","borderWidth",yr("border","Width")),ne("border(?:$|-)","borderWidth"),ne("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),te("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),te("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),ne("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${Da(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${Da(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),ot("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),ne("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),ot("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),ne("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),te("ring-inset",{"--tw-ring-inset":"inset"}),ot("ring-",{property:"--tw-ring-color"}),ne("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...ma({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":da(t("ringOffsetColor","","#fff")),"--tw-ring-color":da(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),ot("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),ne("shadow(?:$|-)","boxShadow",({_:e})=>({...ma({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Cn(e),"--tw-shadow-colored":Cn(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),ne("(opacity)-"),te("mix-blend-","mixBlendMode"),...H3(),...H3("backdrop-"),ne("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Cn(e),transitionTimingFunction:e._=="none"?void 0:Cn(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:Cn(t("transitionDuration",""))})),ne("duration(?:$|-)","transitionDuration","transitionDuration",Cn),ne("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Cn),ne("delay(?:$|-)","transitionDelay","transitionDelay",Cn),ne("animate(?:$|-)","animation",(e,{theme:t,h:n,e:a})=>{let r=Cn(e),u=r.split(" "),o=t("keyframes",u[0]);return o?{["@keyframes "+(u[0]=a(n(u[0])))]:o,animation:u.join(" ")}:{animation:r}}),"(transform)-(none)",te("transform",Sl),te("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":$3(e=="gpu")})),ne("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...Sl()})),ne("-?(rotate)-","rotate",kl),ne("-?(translate-[xy])-","translate",kl),ne("-?(skew-[xy])-","skew",kl),te("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",ai),"(appearance)-",ne("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",ne("(cursor)-"),"(cursor)-",te("snap-(none)","scroll-snap-type"),te("snap-(x|y|both)",({1:e})=>({...ma({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),te("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),te("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),te("snap-(normal|always)","scroll-snap-stop"),te("scroll-(auto|smooth)","scroll-behavior"),ne("scroll-p([xytrbl])?(?:$|-)","padding",yr("scroll-padding")),ne("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",yr("scroll-margin")),te("touch-(auto|none|manipulation)","touch-action"),te("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...ma({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),te("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),te("outline",{outlineStyle:"solid"}),te("outline-(dashed|dotted|double)","outlineStyle"),ne("-?(outline-offset)-"),ot("outline-",{opacityVariable:!1,opacitySection:"opacity"}),ne("outline-","outlineWidth"),"(pointer-events)-",ne("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],te("select-(none|text|all|auto)","userSelect"),ot("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),ot("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),ne("stroke-","strokeWidth"),te("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),te("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function ai(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function U3(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function Da(e,t="-"){let n=[];for(let a of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[a]);return n.join(t)}function Cn(e){return e&&""+(e._||e)}function z3({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function yr(e,t=""){return({1:n,_:a})=>{let r={x:"lr",y:"tb"}[n]||n+n;return r?{...fu(e+"-"+Da(r[0])+t,a),...fu(e+"-"+Da(r[1])+t,a)}:fu(e+t,a)}}function H3(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let a of t)n[`--tw-${e}${a}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...ma(n),[`${e}filter`]:t.map(a=>`var(--tw-${e}${a})`).join(" ")},[`(${e}filter)-(none)`,te(`${e}filter`,n),...t.map(a=>ne(`${a[0]=="h"?"-?":""}(${e}${a})(?:$|-)`,a,({1:r,_:u})=>({[`--tw-${r}`]:Gt(u).map(o=>`${a}(${o})`).join(" "),...n})))]}function kl({1:e,_:t}){return{["--tw-"+e]:t,...Sl()}}function Sl(){return{...ma({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":$3()}),transform:"var(--tw-transform)"}}function $3(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function q3({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function W3({1:e}){return`repeat(${e},minmax(0,1fr))`}function ma(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}g();g();var ri=globalThis||(typeof window<"u"?window:self),rb=Object.create,Ll=Object.defineProperty,ub=Object.getOwnPropertyDescriptor,ob=Object.getOwnPropertyNames,ib=Object.getPrototypeOf,sb=Object.prototype.hasOwnProperty,lb=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),cb=(e,t)=>{for(var n in t)Ll(e,n,{get:t[n],enumerable:!0})},Dl=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ob(t))!sb.call(e,r)&&r!==n&&Ll(e,r,{get:()=>t[r],enumerable:!(a=ub(t,r))||a.enumerable});return e},db=(e,t,n)=>(Dl(e,t,"default"),n&&Dl(n,t,"default")),G3=(e,t,n)=>(n=e!=null?rb(ib(e)):{},Dl(t||!e||!e.__esModule?Ll(n,"default",{value:e,enumerable:!0}):n,e)),V3=lb((e,t)=>{(function(n,a){typeof define=="function"&&define.amd?define([],a):typeof e<"u"?a():(a(),n.FileSaver={})})(e,function(){"use strict";function n(c,s){return typeof s>"u"?s={autoBom:!1}:typeof s!="object"&&(s={autoBom:!s}),s.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function a(c,s,m){var p=new XMLHttpRequest;p.open("GET",c),p.responseType="blob",p.onload=function(){l(p.response,s,m)},p.onerror=function(){},p.send()}function r(c){var s=new XMLHttpRequest;s.open("HEAD",c,!1);try{s.send()}catch{}return 200<=s.status&&299>=s.status}function u(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var s=document.createEvent("MouseEvents");s.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(s)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof ri=="object"&&ri.global===ri?ri:void 0,i=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(c,s,m){var p=o.URL||o.webkitURL,f=document.createElement("a");s=s||c.name||"download",f.download=s,f.rel="noopener",typeof c=="string"?(f.href=c,f.origin===location.origin?u(f):r(f.href)?a(c,s,m):u(f,f.target="_blank")):(f.href=p.createObjectURL(c),setTimeout(function(){p.revokeObjectURL(f.href)},4e4),setTimeout(function(){u(f)},0))}:"msSaveOrOpenBlob"in navigator?function(c,s,m){if(s=s||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(n(c,m),s);else if(r(c))a(c,s,m);else{var p=document.createElement("a");p.href=c,p.target="_blank",setTimeout(function(){u(p)})}}:function(c,s,m,p){if(p=p||open("","_blank"),p&&(p.document.title=p.document.body.innerText="downloading..."),typeof c=="string")return a(c,s,m);var f=c.type==="application/octet-stream",d=/constructor/i.test(o.HTMLElement)||o.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||f&&d||i)&&typeof FileReader<"u"){var C=new FileReader;C.onloadend=function(){var S=C.result;S=b?S:S.replace(/^data:[^;]*;/,"data:attachment/file;"),p?p.location.href=S:location=S,p=null},C.readAsDataURL(c)}else{var h=o.URL||o.webkitURL,A=h.createObjectURL(c);p?p.location=A:location.href=A,p=null,setTimeout(function(){h.revokeObjectURL(A)},4e4)}});o.saveAs=l.saveAs=l,typeof t<"u"&&(t.exports=l)})}),Y3={};cb(Y3,{default:()=>ui});var mb=G3(V3());db(Y3,G3(V3()));var{default:K3,...gb}=mb,ui=K3!==void 0?K3:gb;g();g();g();g();g();g();var GF=Be().REDIRECT_URL;function Tb(){let[e,t]=Te(null);return Ne(()=>{ta().then(a=>{t(a)})},[]),[e,a=>{t(a),nn(a)}]}async function Cb(e,t,n){try{if(t===null)return"noupdate";let a=await Ab(e),r=await ta();r.accountLastSyncedAt=Date.now(),H.debug("settings",t),H.debug("local settings.updatedAt",t.updatedAt),H.debug("remote settings.updatedAt",a.updatedAt),H.debug("last synced at",r.accountLastSyncedAt);let u=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(u=!0),!u&&t.updatedAt>a.updatedAt&&(u=!0),H.debug("isUpload",u),u)return await kb(e,t),await nn(r),"upload";let o=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(o=!0),!o&&t.updatedAt0&&jt.remove(Nt),a}}function oi(e,t){let n=vb(),[a,r]=Tb();Ne(()=>{!n||!n.token||a&&a.proAutoSync===!1||wb(n)&&Cb(n.token,e,t)},[e,n])}function wb(e){return en(e)?!0:new Date(e.createTime){jt.get(Nt,null).then(n=>{t(n)})},[t]),e}function Ab(e){return(location.href?.indexOf("popup.html")>0?Nn:se)({responseType:"json",url:as+"/v1/user/settings",method:"get",headers:{token:e}}).then(n=>n.data)}function kb(e,t){return(location.href?.indexOf("popup.html")>0?Nn:se)({responseType:"json",url:as+"/v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(a=>a.data)}function Ml(e){let{onClose:t}=e,[n,a]=Te("Original"),[r,u,o,i]=hr(()=>{setTimeout(()=>{S("updateGlobalContext",!1)()},250)});oi(r,u);let[l,c]=Te(null),[s,m]=Te(globalThis.location.href),[p,f]=Te("auto"),[d,b]=Te(null),C=N=>{a(N.detail)},h=N=>{f(N);let P=_u(s,N,l.sourceLanguageUrlPattern);u(x=>({...x,sourceLanguageUrlPattern:P})),an(N)},A=()=>{m(globalThis.location.href)};Ne(()=>(document.addEventListener(zu,C,!1),Tn().then(N=>{c(N);let P=pt();f(P);let x=$e();a(x),h3(N.interval)}),document.addEventListener("urlChange",A),()=>{document.removeEventListener("pageTranslatedStatus",C),document.removeEventListener("urlChange",A)}),[]),Ne(()=>{Tn().then(N=>{c(N)})},[r]),Ne(()=>{s&&l&&jn({url:s,config:l}).then(N=>{b(N)})},[s,l]);let S=(N,P,x={})=>()=>{gr({method:N,data:x||{}}),P&&t()},U=()=>{t()},O=()=>{u(N=>({...N,enabled:!N.enabled})),setTimeout(()=>{U()},50)},y=()=>{Pl(),setTimeout(()=>{U()},50)},T=()=>{Pl(),setTimeout(()=>{U()},50)},k=(N="")=>{xr(!0,N),setTimeout(()=>{t()},50)},v=()=>{li(Vu),setTimeout(()=>{globalThis.close()},50)},E=()=>{si(),setTimeout(()=>{t()},50)},R=()=>{ci(),setTimeout(()=>{t()},50)},F=()=>{X3(),setTimeout(()=>{t()},50)},w=()=>{di(),setTimeout(()=>{t()},50)},B=()=>{ep(),setTimeout(()=>{t()},50)},I=N=>{u(P=>({...P,generalRule:{...P.generalRule,mouseHoverHoldKey:N}}))};return!l||!d?null:V(pu,{openEbookViewerPage:R,openEbookBuilderPage:w,onSwitchTranslationMode:N=>{S("switchTranslationMode",!0,{mode:N})()},onTranslateLocalHtmlFile:F,onTranslateLocalSubtitleFile:B,request:se,onClose:U,onToggleEnabled:O,onTranslateTheWholePage:S("translateTheWholePage",!0),openOptionsPage:k,openPricingPage:v,onToggleTranslate:S("toggleTranslatePage",!0),onTranslateTheMainPage:S("translateTheMainPage",!0),ontranslateToThePageEndImmediately:S("translateToThePageEndImmediately",!0),onTranslatePage:S("translatePage",!0),onRestorePage:S("restorePage",!1),onTranslatePdf:y,openAboutPage:E,onTranslateLocalPdfFile:T,onSetPageLanguage:h,onUserConfigChange:u,config:l,pageStatus:n,ctx:d,currentUrl:s,currentLang:p,onSetLocalConfig:ii,onSetBuildinConfig:Z3,onMouseTriggerChanged:I})}function Sb(e,t){for(let n of t){if(fe()&&!Ha()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}var Fl={position:"right",right:0,top:335},Mt={...Fl},pi=!1,La=null,Sn=null,fi=null,_l=null,Er=null,Bl=null,tp=6,mi,gi,ap=null,rp=null;async function up(){let e=Be();Bl=await sp(),Mt=Bl.pagePopupConfig||Mt;let t=document.createElement("div");t.id="immersive-translate-popup",t.setAttribute("style","all: initial"),document.documentElement.appendChild(t);let n=t.attachShadow({mode:"open"});_l=n;let a=[e.IMMERSIVE_TRANSLATE_PICO_CSS,e.IMMERSIVE_TRANSLATE_COMMON_CSS,e.IMMERSIVE_TRANSLATE_POPUP_CSS,e.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);Sb(n,[a]);let r=document.createElement("div");r.innerHTML=e.IMMERSIVE_TRANSLATE_POPUP_HTML,n.appendChild(r),La=n.querySelector("#immersive-translate-popup-container");let o=n.querySelector("#immersive-translate-popup-btn");Sn=o,fi=n.querySelector("#mount"),La.setAttribute("style",Rl(Mt)),jl(),o.addEventListener("mousedown",op),o.addEventListener("touchstart",Pb),globalThis.addEventListener("resize",l=>{La.setAttribute("style",Rl(Mt))})}function Db(){pa(null,fi),fi.style.display="none",Sn.style.display="block",Er=setTimeout(()=>{jl(!0)},2e3)}function np(e){let t=e.querySelector("#mount"),n=()=>{Db()},a=r=>{r&&r.target&&r.target.id==="immersive-translate-popup-overlay"&&n()};(async()=>{let r=await Tn();pa(V(Yo,{lang:r.interfaceLanguage,fallbackLang:"zh-CN",translations:Go,children:V("div",{onClick:a,id:"immersive-translate-popup-overlay",class:"immersive-translate-popup-overlay",children:V("div",{class:"immersive-translate-popup-wrapper",style:Lb(),children:V(Ml,{onClose:n})})})}),t)})().then(()=>{Sn.style.display="none",fi.style.display="block"})}function Lb(){let e=Ol(),t=e.height,{position:n,top:a,left:r}=Mt,u={position:"fixed"},o=300,i=300,l=100;return Kc()&&(n=Fl.position,a=Fl.top),n==="right"||n==="left"?(u.top=a-l,u.top+o>=t?(u.bottom=30,delete u.top):u.top<=10&&(u.top=10),n==="right"?u.right=0:n==="left"&&(u.left=0)):(n==="top"||n==="bottom")&&(u.left=r-l,u.left+i>=e.width?(u.right=0,delete u.left):u.left<=10&&(u.left=0),n==="top"?u.top=0:n==="bottom"&&(u.bottom=0)),u}function Ol(){return{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}function op(e){rp=La.getAttribute("style"),mi=e.pageX,gi=e.pageY,Er&&clearTimeout(Er),pi=!1,Sn.style.opacity="1",Sn.style.transform="none",ap=Sn.getAttribute("style"),globalThis.addEventListener("mousemove",Il),globalThis.addEventListener("mouseup",Nl),globalThis.addEventListener("touchmove",ip),globalThis.addEventListener("touchend",hi),globalThis.addEventListener("touchcancel",hi)}function Pb(e){e.preventDefault&&e.preventDefault(),op(e.changedTouches[0])}function ip(e){Il(e.changedTouches[0])}function hi(e){e.preventDefault&&e.preventDefault(),Nl(e.changedTouches[0])}function Il(e){e.preventDefault&&e.preventDefault(),pi=!0,La.setAttribute("style",`left:${e.clientX}px;top:${e.clientY}px;transform:scale(1.6);`)}function Nl(e){e.preventDefault&&e.preventDefault(),Fb(),Er&&clearTimeout(Er),mi=mi||0,gi=gi||0;let t=Math.abs(e.pageX-mi),n=Math.abs(e.pageY-gi);t{jl(!0)},2e3)}function jl(e=!1){Sn.style.opacity="0.4";let t="";Mt.position==="left"?t="translateX(-40%)":Mt.position==="right"?t="translateX(40%)":Mt.position==="top"?t="translateY(-40%)":Mt.position==="bottom"&&(t="translateY(40%)"),Sn.style.transform=t,e&&(Sn.style.transition="transform 0.2s ease-in-out, opacity 0.2s ease-in-out")}function Fb(){globalThis.removeEventListener("mousemove",Il),globalThis.removeEventListener("mouseup",Nl),globalThis.removeEventListener("touchmove",ip),globalThis.removeEventListener("touchend",hi),globalThis.removeEventListener("touchcancel",hi)}function Rl(e){let t=_b(e);return Object.keys(t).map(n=>typeof t[n]=="number"?`${n}:${t[n]}px;`:"").join("")}function _b(e){let{position:t,...n}=e,a=Ol(),r={};return t==="left"?(r.left=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="right"?(r.right=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="top"?(r.top=0,n.left>a.width?r.left=a.width-100:r.left=n.left):t==="bottom"&&(r.bottom=0,n.left>a.width?r.left=a.width-100:r.left=n.left),r}var lp=!1;async function cp(){lp||(lp=!0,up().catch(e=>{H.error("init popup error",e)}))}var dp=!1,fp=[()=>{Ve.unbind()}],zl=[...fp],Bb=yt(async()=>{await xr()},50),Rb=yt(async()=>{await si()},50),Ob=yt(async()=>{await di()},50),Ib=yt(async()=>{await ci()},50),hp=yt(e=>{gr({method:e,data:{trigger:"userscript_menu"}})},50),Nb=yt(()=>{bi();let e=new CustomEvent(Vn,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},200),jb=yt(()=>{Ei();let e=new CustomEvent(Vn,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},200),Ub=yt(()=>{xi();let e=new CustomEvent(Vn,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},200);function zb(e,t){let n=e.document;if(dp)return;if(dp=!0,fe()||vp(),n.addEventListener("securitypolicyviolation",Xb),document.addEventListener(ge+"DocumentMessageUser",Tp),document.addEventListener(ge+"DocumentMessageUpdateUser",Cp),document.addEventListener(ge+"ChangeSuccessService",wp.bind(null,t)),document.addEventListener(Uu,Jb.bind(null,t)),n.addEventListener(ge+"EbookLoaded",Zb),n.addEventListener(b4,Qb),n.addEventListener(y4,ey.bind(null,t)),n.addEventListener("click",r=>{$b(r,t)}),fe()&&(globalThis.top!=globalThis.self?e.addEventListener("message",qb,!1):n.addEventListener(Vn,Hb)),globalThis.top===globalThis.self){let r=oa.rootIframe(Ku);r.handleAsk("getRateLimitDelay",jm),r.handleAsk("throttleRequest",yg)}}function bp(e,t){ty(),zb(t,e);let n=t.document,a=Wb.bind(null,e);e.rule.fingerCountToToggleTranslagePageWhenTouching>=2&&n.addEventListener("touchstart",a),zl.push(()=>{n.removeEventListener("touchstart",a)}),fe()&&globalThis.top===globalThis.self&&(X0(e.config),ny(e.config)),At()&&X0(e.config)}function Hb(e){cp()}function qb(e){let t=e;t&&t.data&&t.data.payload&&t.data.author===ju&&pr(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})}function Wb(e,t){let n=t;n.touches.length==e.rule.fingerCountToToggleTranslagePageWhenTouching?Nb():n.touches.length===e.rule.fingerCountToToggleTranslationMaskWhenTouching?Ub():n.touches.length===e.rule.fingerCountToToggleTranslagePageOnlyTranslationWhenTouching&&jb()}function $b(e,t){let n=e.target;if(!n||!n.getAttribute){Ul(n);return}let a=n.getAttribute("data-immersive-translate-event");a&&Ye(a,[{name:a}],{...t,sourceLanguage:"none"});let r=n.getAttribute(`data-${Q}-action`);if(r)if(r==="retry"){e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),yi(),Ul(n,!0);return}else if(r=="toast-error"){let u=n.getAttribute(`data-${Q}-tooltip-text`);Hl(xp.bind(null,t,u||""))}else r=="close-search"&&(e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),Hl(Vb.bind(null,t)));Ul(n)}async function mp(e=!1){let t=document.querySelector(`.${Q}-search-recomend`);if(!t||(t.remove(),!e))return;let n=await sn();n.generalRule||(n.generalRule={}),n.generalRule.enableSearchEnhancement=!1,await on(n)}async function Kb(){let e=await sn(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,a=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(a=e.translationUrlPattern.matches||[]),!n&&a.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await on(e)}async function Gb(){let e=await sn(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await on(e)}var gp=0;function Hl(e){let t=Date.now();if(t-gp<2e3)return;gp=t;let n=`${Q}-modal`,a=document.querySelector(`.${n}`);if(a?.style.display=="block")return;let r=`${Q}-modal-title`,u=`${Q}-modal-body`,o=`${Q}-modal-footer`;if(a){let i=a.querySelector(`.${r}`),l=a.querySelector(`.${o}`),c=a.querySelector(`.${u}`);e(a,i,c,l)}else{a=document.createElement("div"),a.className=n+" notranslate",a.id=n;let i=document.createElement("div");i.className=Q+"-modal-content notranslate",a.appendChild(i);let l=document.createElement("span");l.textContent="\xD7",l.className=Q+"-close",i.appendChild(l);let c=document.createElement("div");c.className=r+" notranslate",i.appendChild(c);let s=document.createElement("div");s.className=u+" notranslate",i.appendChild(s);let m=document.createElement("div");m.className=o,i.appendChild(m),document.body.appendChild(a),l.onclick=function(){a.style.display="none"},window.onclick=function(p){p.target==a&&(a.style.display="none")},e(a,c,s,m)}setTimeout(()=>{Yb()},100)}function Vb(e,t,n,a,r){let u=yp.bind(null,e);n.innerHTML=`
${Qo} ${u("disableConfirm")}
`,a.innerHTML="";let o=document.querySelector(`div[data-${Q}-cancel-desc]`),i=document.createElement("p");i.innerHTML=o?Re.sanitize(o.textContent||""):Re.sanitize(u("searchEnhancementNotes")),i.style.cssText="margin-bottom:12px",a.appendChild(i);let l=[{id:"enable-search-enhancement",value:"enable",text:u("enableSearchEnhancement")},{id:"disable-once",value:"once",text:u("disableOnce")},{id:"disable-global",value:"global",text:u("disableGlobal")}];for(let f=0;f${u("option")}`})),a.appendChild(c);let s=a.querySelector(`.${Q}-open-enhancement`);s&&(s.onclick=function(){Ap(!0)});let m=document.createElement("button");m.innerText=u("closeModal"),m.className=`${Q}-btn ${Q}-cancel-btn`;let p=document.createElement("button");p.className=`${Q}-btn`,p.innerText=u("saveSettings"),r.innerHTML="",r.appendChild(m),r.appendChild(p),m.onclick=function(){t.style.display="none"},p.onclick=function(){let f=a.getElementsByTagName("input"),d="";for(let b=0;b
1. \u5207\u6362\u5230 ${u} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458`:i+=`

\u5982\u679C\u60A8\u6709\u7591\u95EE\uFF0C\u8BF7\u8054\u7CFB support@immersivetranslate.com`,Hl(xp.bind(null,e,i))}catch(a){H.warn("parse message error",a)}}function Qb(e){let t=e;if(H.debug("receive third party message",t),t&&t.detail)try{let n=JSON.parse(t.detail);n&&n.type&&(n.type==="retryFailedParagraphs"?ay({method:"retryFailedParagraphs"}):n.type==="updateCommands"?kp(n.data):n.type==="toggleEnableDefaultAlwaysTranslatedUrls"?Kb():n.type==="toggleEnableInputTranslation"?Gb():hp(n.type))}catch(n){H.warn("parse message error",n)}}function Zb(e){setTimeout(()=>{Ep()},10)}function Xb(e){Ee.HAS_CSP_ERROR="1"}function ey(e,t){let n=event.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&Ye(n.name,[{name:n.name}],{...e})}function ty(){zl.forEach(e=>{e()}),zl=fp}function ny(e){if(fe()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=fo.commands,r=[...Object.keys(t).filter(u=>u==="toggleTranslatePage").map(u=>{let o=t[u].description,i=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(i=mr(`browser.${o.slice(6,-2)}`,e.interfaceLanguage)),{id:u,title:i}}),{id:Ji,title:mr("browser.openEbookViewer",e.interfaceLanguage),key:"e"},{id:Qi,title:mr("browser.openEbookBuilder",e.interfaceLanguage),key:"m"},{id:Vi,title:mr("browser.openOptionsPage",e.interfaceLanguage),key:"o"},{id:Yi,title:mr("browser.openAboutPage",e.interfaceLanguage),key:"a"}];for(let u of r)GM.registerMenuCommand(u.title,()=>{u.id===Vi?Bb():u.id===Yi?Rb():u.id===Qi?Ob():u.id===Ji?Ib():hp(u.id)},u.key)}}function ay(e){pr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{H.error("send content message request failed",e,n)});let t=new CustomEvent(Vn,{detail:e});globalThis.document.dispatchEvent(t)}g();var Pa={};async function ql(){let t=[...document.querySelectorAll(".source-text")].map(a=>a.textContent).join(""),n=await Je({text:t,minLength:200,pageLangs:[Ta(),"en"]});return an(n),n}async function Sp(e){Pt("Translating");let t=pt(),n=To(),a=[...document.querySelectorAll(".source-text")];if(No(e,t))return;let r=a.filter(u=>u.innerText?.trim()).map((u,o)=>{let i=u.parentElement?.parentElement?.querySelector(".target-text");return nt(u,"id",o+""),i&&(ir(i,o)?.remove(),i.appendChild(lu(e,o))),{text:u.innerText||"",id:o,from:t,to:e.targetLanguage,url:"https://google.com",fromByClient:n}});document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await sa({sentences:r},e,(u,o,i)=>{let l=i.id,c=ir(document.body,l);if(!c)return;let s=c.parentElement;s&&(c.remove(),u?(s.innerHTML=Re.sanitize(`${u.message}`),Pa[l]={ok:!1,sentence:i}):o&&(s.innerHTML=Re.sanitize(o.text),Pa[l]={ok:!0,sentence:i}),document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!u}})})))})}catch(u){throw u}finally{Pt("Translated")}}async function Dp(e){Pt("Translating"),document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(Pa),n=[],a=[];for(let r of t){let u=Pa[r];if(!u.ok){let i=document.querySelector(`#error-id-${r}`);if(i){let l=i.parentElement;i.remove(),l&&(delete Pa[r],l.appendChild(lu(e,r)),a.push(u.sentence))}}}try{await sa({sentences:a},e,(r,u,o)=>{let i=o.id,l=ir(document.body,i);if(!l)return;let c=l.parentElement;c&&(l.remove(),r?(c.innerHTML=Re.sanitize(`${r.message}`),Pa[i]={ok:!1,sentence:o}):u&&(c.innerHTML=Re.sanitize(u.text),Pa[i]={ok:!0,sentence:o}),document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!r}})})))})}catch(r){throw r}finally{Pt("Translated")}}function Wl(){Pt("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}g();var $l={};async function Lp(){let e=[...document.querySelectorAll("iframe")],t="";for(let a of e){let r=a.contentDocument;if(!r)continue;let u=r.body;if(u&&(t=t+u.innerText||"",t.length>1e3))break}let n=await Je({text:t,pageLangs:["en"]});return an(n),n}async function Pp(e){Pt("Translating"),document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys($l),n=[];for(let a of t){let r=$l[a];if(r.error){let o=r.commonAncestorContainer.querySelector(`[${Hu}='${a}']`);o&&o.remove(),n.push(r)}}try{await qo(n,e,e.config.translationMode)}catch{}finally{Pt("Translated")}}function Mp(){let e=[...document.querySelectorAll("iframe")];for(let t of e){let n=t.contentDocument;if(!n)continue;let a=n.querySelectorAll("."+$t);for(let r of a)r.remove()}Pt("Original")}async function Fp(e){Pt("Translating");let t=bn(),n=[...document.querySelectorAll("iframe")],a=[],r=[];for(let i of n){let l=i.contentDocument;if(!l)continue;sr(l,e);let c=l.body;if(!c)continue;let s=rn(e);s.isModifyImage=!1,ca({id:t,container:c,filterRule:s,onParagraph:m=>{a.push(m)}})}let u=Io(e.config.translationServices[e.translationService]?.placeholderDelimiters),o=1;for(let i of a){let l=Uo(i.flatNodes,{isPreWhitespace:i.isPreWhitespace||!1,delimiters:u,stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(s=>s.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)});if(!l)continue;i.variables=l?.variables||{},i.text=l?.text,i.id=(o++).toString();let c=await G0(i,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:u,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});c&&(r.push(c),$l[c.id]=c)}a=[],document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await qo(r,e,e.config.translationMode)}catch{}finally{Pt("Translated")}}g();var ry=new AbortController,{signal:uy}=ry,Jl=0,Ql=0,Kl=!1,Gl=0,bu=!1,Ma,_p=0,Fa=[];function Ti(e,t){oy();let n=e,a=n.config,r=a.generalRule.mouseHoverHoldKey==="Off",u=a.generalRule.mouseHoverHoldKey==="Auto",o=yt(s=>{if(Kl==!1&&Math.abs(s.clientX-Jl)+Math.abs(s.clientY-Ql)>3&&(Gl<2?Gl+=1:Kl=!0),Jl=s.clientX,Ql=s.clientY,u||bu&&!Ma){let m=Np(n.rule,t);if(m){if(Zl(m))return;Rp(n,m)}}},u?700:300),i=s=>{let m=s.target;Zl(m)||Rp(n)},l=s=>{let m=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=Ve.getPressedKeyCodes();if(p.length>1&&Ve[m]&&(_p=Date.now(),bu=!1),p.length===1&&Ve[m]){let f=Date.now();bu=!0,Ma&&clearTimeout(Ma),Ma=setTimeout(()=>{let d=_p-f;d>0&&d<=150?bu=!1:i(s),Ma=void 0},150)}};if(Fa.push(()=>{Ma&&clearTimeout(Ma)}),r)return;Vl("mousemove",o,t),Fa.push(()=>{t.removeEventListener("mousemove",o)});function c(){Kl=!1,Gl=0,o.cancel()}if(u)Vl("blur",c,t),Fa.push(()=>{t.removeEventListener("blur",c)});else{let s=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",m=["ctrl","alt","shift","cmd","command","option","control"];Vl("keyup",Bp,t),Fa.push(()=>{t.removeEventListener("keyup",Bp)}),m.includes(s)?Ve("*","mouseHover",l):Ve(a.generalRule.mouseHoverHoldKey,"mouseHover",i),Ve.setScope("mouseHover"),Fa.push(()=>{Ve.deleteScope("mouseHover")})}}function oy(){Fa.forEach(e=>e()),Fa=[]}function Bp(e){bu=!1}function Vl(e,t,n=window){return n.addEventListener(e,t,{signal:uy})}function Rp(e,t,n=window){if(t=t||Np(e.rule,n),!t){H.debug("can not find selection part!");return}if(Zl(t)){H.debug("exclude dom");return}o3(e,t);let a=Ko();a?.currentUrl!==window.location.href&&(zn(),Q0(e)),a&&(a.setupMouseHoverListener=Ti);let r=rn(e);r.excludeSelectors=[],r.selectors=[];let u=!1;ca({id:a.id,container:t,filterRule:r,force:!0,onParagraph:o=>{du(a,o,!0).then(i=>{if(i&&!u){u=!0;let l=Date.now();ze(E4,l),Ye("mouse_hover_translate",[{name:"mouse_hover_translate"}],{...e,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function Np(e,t){return iy(Jl,Ql,e,t)}function iy(e,t,n,a){let r=Hd(e,t,n,a);if(r==null)return;let u=()=>{let l=a.document.elementFromPoint(e,t);if(!l)return;let c=qd(l,e,t);return c===l?l.nodeName==="BUTTON"?l:void 0:Ip(c,n)},o=()=>{try{r.setStartBefore(r.startContainer),r.setEndAfter(r.startContainer)}catch(c){H.debug("get mouse over word fail",c)}let l=r.getBoundingClientRect();if(!(l.left>e||l.rightt||l.bottomn[s]=[s,...n[s]||[]]);let a=t.inputStartingTriggerKeyAlias[t.inputStartingTriggerKey]||[];a.includes(t.inputStartingTriggerKey)||a.unshift(t.inputStartingTriggerKey),n[t.inputTargetLanguage]=[...a,...n[t.inputTargetLanguage]];let r=t.inputTrailingTriggerKeyTimeout;fa().any&&(r=t.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:t.inputTrailingTriggerKeyRepeatTimes,triggerKey:t.inputTrailingTriggerKey,triggerTimeout:r,codePrefix:t.inputStartingTriggerKey,codeAlias:n,flatAlias:Object.values(n).flat(),codePrefixAlias:t.inputStartingTriggerKeyAlias},o=0,i=Date.now();Ci&&self.removeEventListener("keydown",Ci),Ci=l,self.addEventListener("keydown",Ci);function l(s){if(Tr||wi===!1)return;let m=s,p=m.target||m.srcElement,f=p?.tagName;(p?.isContentEditable||f=="INPUT"||f=="SELECT"||f=="TEXTAREA")&&(Ay(s,u.triggerKey,u.codePrefixAlias)?c(s):o=0)}async function c(s){Date.now()-i=u.triggerTimes&&my()&&(o=0,dy(s,e,u))}ky(e)}function sy({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let a=[],r=n[e]||[];r.includes(e)||r.unshift(e);for(let u of r){let o=t.map(i=>{let l=u+i;return r.includes(i)||(l+=" "),l});a.push(...o)}return new RegExp(a.join("|"))}function Up(e,t){for(let[n,a]of Object.entries(t))if(a.includes(e))return n;return""}var Cr;function ly(e){let t=e.parentElement;if(!t)return;Cr=document.createElement("div"),Cr.className=Q+"-input",Cr.innerHTML=`
`,t.appendChild(Cr);let n=t,a=!1;do{let r=getComputedStyle(n).position;if(["fixed","absolute","relative"].includes(r)){a=!0;break}n=n.parentElement}while(n);if(n=t,!a)do{if(getComputedStyle(n).position==="static"){n.style.position="relative";break}n=n?.parentElement||null}while(n)}function cy(){Cr&&Cr.remove()}async function dy(e,t,n){if(!Tr)try{let p=function(){i=t.config.inputTargetLanguage;let d=o.split(" ")[0];d&&d[0]&&(d=d[0].toLowerCase()+d.slice(1)),d.trim()&&n.flatAlias.includes(d)?(i=Up(d,n.codeAlias),u=o.slice(d.length+1)):u=o},f=function(){i="";let d=sy(n),b=o.split(d);if(b.length<2)return;if(u=b[b.length-1],r=b[0],b.length>2){let h=o.lastIndexOf(u),A=o.slice(0,h).lastIndexOf(b[b.length-2]);r=o.slice(0,A+b[b.length-2].length)}if(r.endsWith(n.codePrefix))return;let C=o.slice(r.length+1,o.indexOf(u)).trim();if(i=Up(C,n.codeAlias),!i){H.warn("not found alias",C);return}},a=document.activeElement;Tr=!0;let r="",u="",o=wr(a)||"",i=t.config.inputTargetLanguage;n.codePrefix==="none"?p():(f(),!i&&t.config.enableInputTranslationWithoutTriggerKey&&p());let l=py(u,n),c=await Je({text:l,pageLangs:["en"]});H.debug("translateContent",l,c);let s={text:l||"",id:0,from:c,to:i,url:"https://google.com",fromByClient:c};if(!s.text)return;if(t.config.isShowInputTranslationConsent&&!jp){jp=!0;let d=await Sy(t);if(e.target&&e.target.focus(),d==="open_settings"){xr(!0,"#input");return}else if(d==="open_learn_more"){li("https://immersivetranslate.com/docs/input/");return}else if(d==="disable_once"||d==="disable_forever"){if(wi=!1,d==="disable_forever"){let b=await sn();b.enableInputTranslation=!1,b.isShowInputTranslationConsent=!1,await on(b)}else if(d==="disable_once"){let b=await sn();b.isShowInputTranslationConsent=!1,await on(b)}return}else if(d==="close_disable_once"||d==="close_disable_forever"){if(wi=!1,d==="close_disable_forever"){let b=await sn();b.enableInputTranslation=!1,b.isShowInputTranslationConsent=!1,await on(b)}return}else if(d==="enable"){let b=await sn();b.enableInputTranslation=!0,b.isShowInputTranslationConsent=!1,await on(b)}else if(d==="close_enable"){let b=await sn();b.enableInputTranslation=!0,await on(b)}}ly(a),ze(Zi,Date.now());let m=await ka(s,{...t,translationService:t.inputTranslationService});vy(t),wy(a,r+m.text),Tr=!1}catch(a){throw Tr=!1,a}finally{Tr=!1,cy()}}function my(){let e=document.activeElement;if(!e)return!1;if(vi(e)){let t=e.selectionStart||0,n=e.value.length,r=e.value.split(` +`).reverse()[0].trim(),u=n<=t;return H.debug("cursorPosition",t,"textLength",n),H.debug("input isTail",u,"tailHasText",r),u&&!!r}else{let t=window.getSelection();if(!t)return H.debug("No active selection found."),!1;if(t.rangeCount>0){let n=t.getRangeAt(0),a=n.startContainer;if(a.nodeType===Node.TEXT_NODE){let r=gy(a,e);H.debug("Current text node:",a.textContent),H.debug("Cursor position within text node:",n.startOffset);let u=a.textContent?.length===n.startOffset&&r,o=a.textContent?.trim();return H.debug("editdiv isTail",u,"tailHasText",o),u&&!!o}else H.debug("Cursor is not within a text node.")}}return!1}function gy(e,t){let n;function a(r){if(r.nodeType===Node.TEXT_NODE)n=r;else for(let u of r.childNodes)a(u)}return a(t),n==e}function py(e,t){let{triggerTimes:n,triggerKey:a}=t,r=0,u=" ";a.length==1?(r=n,u=a):a.toLowerCase()=="space"&&(r=n);let o=e.length;for(let i=e.length-1;i>=e.length-r;i--){if([10,8629].includes(e[i].charCodeAt(0))){o--;continue}if(![...t.codePrefixAlias[a]||[],u].includes(e[i]))break;o--}return e.length-o<3&&[".","\u3002"].includes(e[o-1])&&o--,e.slice(0,o)}function fy(e,t){let n=t.innerHTML,a=wr(t);return{html:n.replace(a,e),text:e}}function zp(e,t,n=!1){let a=wr(t);return n?a.trim().endsWith(e.text.trim()):a.trim()==e.text.trim()}function wr(e){return e.value||e.innerText||e.textContent}async function _a(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function hy(e,t,n){await _a(10);let a=new DataTransfer;e.forEach(r=>{r==="plain"&&a.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:a,bubbles:!0,cancelable:!0})),a.clearData(),await _a(10)}async function by(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await _a(10))}async function yy(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await _a(20),(t.value||t.value==="")&&(t.value=e.text)}async function xy(e,t){vi(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await _a(20))}var Ey=[hy.bind(null,["plain"])];function Ty(e){let t;vi(e)?t=new InputEvent("beforeinput",{bubbles:!0,cancelable:!0,inputType:"deleteContent"}):t=new KeyboardEvent("keydown",{bubbles:!0,cancelable:!0,keyCode:8,which:8,location:0,key:"Backspace"}),e.dispatchEvent(t)}function vi(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function Cy(e){if(vi(e))return;e.focus();let t=window.getSelection();if(!t)return;let n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}async function wy(e,t){await Cy(e),await _a(50);let n=fy(t,e);Ty(e),H.debug("clearContent",wr(e)),await _a(50);for(let a of[...Ey,yy,xy,by])if(await a(n,e),H.debug("setContent",a.name,zp(n,e),wr(e),n),zp(n,e))break}function vy(e){Ye("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage}}],e)}function Ay(e,t,n){let a="";e&&e.code&&(a=e.code.toLowerCase());let r="";e&&e.key&&(r=e.key.toLowerCase());let u=e.keyCode,o=n[t]||[];return u===229&&t!=="space"?!1:!!(o.includes(a)||o.includes(r)||a===t||r===t)}async function ky(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await Dt(t,"")||Number(await Dt(Zi,0))>0)return;let r=e.rule.inputTutorialsSelectors,u=e.rule.inputTutorialsText;if((r?.length||0)>0&&u)for(let o=0;o{Ly()},100),new Promise(c=>{let s=c;if(u){let T=u.querySelector(`.${n}`),k=u.querySelector(`.${r}`),v=u.querySelector(`.${a}`)}else{u=document.createElement("div"),u.className=t+" notranslate",u.id=t;let T=document.createElement("div");T.className=Q+"-modal-content notranslate",u.appendChild(T);let k=document.createElement("span");k.textContent="\xD7",k.className=Q+"-close",T.appendChild(k),o=document.createElement("div"),o.className=n+" notranslate",T.appendChild(o),l=document.createElement("div"),l.className=a+" notranslate",T.appendChild(l),i=document.createElement("div"),i.className=r,T.appendChild(i),document.body.appendChild(u),k.onclick=function(){S(),c("close")},window.onclick=function(v){v.target==u&&(u.style.display="none",c("close"))}}document.addEventListener("keydown",y);let m=Dy.bind(null,e);o.innerHTML=`
${Qo} ${m("modalEnableInputTranslationTitle")}
`,l.innerHTML="";let p=document.createElement("p");p.innerHTML=m("modalEnableInputTranslationDesc",{1:"https://immersivetranslate.com/docs/input/"}),p.style.cssText="margin-bottom:12px",l.appendChild(p);let f=document.createElement("div");f.style.cssText="margin-bottom: 12px;",f.innerHTML=Re.sanitize(m("disableInputTranslationTips",{option:`${m("option")}`,learnMore:`${m("learnMore")}`})),l.appendChild(f);let d=[{id:"enable-search-enhancement",value:"enable",text:m("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:m("disableOnce")},{id:"disable-global",value:"global",text:m("disableGlobal")}];for(let T=0;T{sa({sentences:r},{...e,translationService:"google"},(l,c,s)=>{if(l)return o([]);let m=c?.id||0,p=n[m];p&&p.className==Q+"-search-title-wrapper"&&(p.innerHTML+=Re.sanitize(`
${c?.text}
`,{ADD_ATTR:["target"]}))})})}function Ai(e,t,n){t&&Ye(t.key,[{name:t.key}],{...e,sourceLanguage:t.sourceLanguage||n})}function Xl(e,t,n,a){let r=n.querySelectorAll('[translate="true"]');return Py(e,t,[...r],a),n}async function ec(e,t){let a=(await se({url:My(e),method:"GET",responseType:"raw",headers:{"cache-control":"no-cache","content-type":"application/xml","Sec-Fetch-Site":"none",accept:"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}})).body,u=new DOMParser().parseFromString(a,"text/xml"),o=[],i=u.querySelectorAll("item");for(let l=0;l${e.cancelDescription}
`:""}

\u82F1\u6587\u641C\u7D22 - ${n} \u7684\u76F8\u5173\u65B0\u95FB:
+ ${n} \u7684\u76F8\u5173\u65B0\u95FB:

${o}
`.replaceAll(` -`,""),{ADD_ATTR:["target"]});let c=r.querySelector(`.${Q}-search-more`);return c&&(c.onclick=()=>{let s=r.querySelector(`.${Q}-expand-items`);s.style.display=="none"?(s.style.display="block",c.innerText="\u66F4\u591A\u76F8\u5173\u65B0\u95FB"):window.open(Hp(n))}),r}function qp(e,t){let n=e.style;return t.map((a,r)=>{let u=a.title||"",o=a.source||"",i=u.split("-");return i.length>1&&(o=i[i.length-1].trim(),i=i.slice(0,i.length-1)),u=i.join("-"),u=u.trim(),`
${o}
+`,""),{ADD_ATTR:["target"]});let c=r.querySelector(`.${Q}-search-more`);return c&&(c.onclick=()=>{let s=r.querySelector(`.${Q}-expand-items`);s.style.display=="none"?(s.style.display="block",c.innerText="\u66F4\u591A\u76F8\u5173\u65B0\u95FB"):window.open(qp(n))}),r}function Wp(e,t){let n=e.style;return t.map((a,r)=>{let u=a.title||"",o=a.source||"",i=u.split("-");return i.length>1&&(o=i[i.length-1].trim(),i=i.slice(0,i.length-1)),u=i.join("-"),u=u.trim(),`
${o}
-
${jg(a.pubDate||"")}
+
${Ug(a.pubDate||"")}
`}).join(` -`)}function $p(e,t){if(!e.keyword)return;let n=e.keyword.value||"";for(let a=0;anew RegExp(a.urlMatch).test(t))}async function Gp(e){if(fa().any)return;if(!e.rule.enableSearchEnhancement){H.debug("enable is false");return}let t=Fy(e.rule.searchEnhancementConfig||[],e.url);if(!t){H.debug("not found siteConfig",e.url);return}let n=$p(t,e.url);if(!n){H.debug("not found keyword",e.url);return}t.id=="google"?By(e,t,n):_y(e,t,n)}async function _y(e,t,n){let a=await Je({text:document.title,pageLangs:[pt(),"en"]});t.selector&&setTimeout(async()=>{let r=document.querySelector(t.selector);if(!r){H.debug("selector node not found",t.selector);return}let u=await ec(n,t.showCount);if(u&&u.length<=0){H.debug("list not found");return}let o=await tc(t,u,n,t.showCount);if(!o){H.debug("getInseredNode none");return}o.style.cssText=t.style.container||"";let i=t.selectorAction||"appendChild";i=="insertBefore"?r.parentElement?.insertBefore(o,r):i=="appendChild"?r.appendChild(o):i=="replace"&&r?.replaceWith(o),Xl(e,t,o,a),Ai(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a)},t.delayTime||0)}async function By(e,t,n){let a=await Je({text:n,pageLangs:["en"]});if(Ai(e,{key:"detect_search_action"},a),!["zh-CN","zh-TW"].includes(a))return;H.debug("use dual search");let r=!1;if(new URL(e.url).searchParams.get("tbm")==="nws")r=!0;else if(!Kp(document.body))return;let o=document.querySelector("#rhs");if(!o){let i=document.querySelector("#rcnt");if(!i)return;let l=i.children;if(l&&l.length>1)o=l[1];else{let c=l[0];o=document.createElement("div"),o.id="rhs",o.style.maxWidth="372px",o.style.marginLeft="50px",i.insertBefore(o,c.nextSibling)}}if(r||Kp(document.body)){H.debug("find story");let i=await Wp(e,n,a);H.debug("enKeyword",i);let l=await ec(i,t.showCount);if(H.debug("news list",l),l&&l.length<=0)return;let c=await tc(t,l,i,t.showCount);if(!c)return;Ai(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a),Xl(e,t,c,a),o.insertBefore(c,o?.firstChild)}}function Kp(e){let t=e.querySelectorAll("[aria-level='2'][role=heading]");if(!t)return!1;for(let n of t){let a=(n?.textContent||"").trim();if(a.indexOf("\u7126\u70B9\u65B0\u95FB")>=0||a.indexOf("\u7126\u9EDE\u65B0\u805E")>=0||a.indexOf("Top stories")>=0)return!0}return!1}m();function Vp(e){e.state.translationMode="translation",dr(e)}var ve=null,ki={},vr,Yp=!1;async function bi(e){if($e()==="Original"){let t={translationMode:void 0};vr&&(t.translationTheme=vr),ve&&(t={...ve.state,...t}),await Ft(gt(),t),await ln(ve,e)}else($e()==="Translated"||$e()==="Error")&&_a()}async function yi(){if(ve=await Ft(gt(),{}),ve.rule.isEbookBuilder)return Lp(ve);if(ve.rule.isSubtitleBuilder)return Sp(ve);i3()}async function xi(e){if($e()==="Original")ve=await Ft(gt(),{}),vr||(vr=ve.state.translationTheme),ve=await Ft(gt(),{translationTheme:"mask"}),await ln(ve,e);else if($e()==="Translated"){let t=Og().filter(r=>r.contentDocument?.body).map(r=>r.contentDocument.body),n=[ve.mainFrame,...t],a=ve?.state.translationTheme;for(let r of n){let u=Qa(r,Ha,!0);a==="mask"?u!=="none"?nt(r,Ha,"none",!0):nt(r,Ha,"mask",!0):u!=="mask"?nt(r,Ha,"mask",!0):nt(r,Ha,"none",!0)}}}async function nc(){let e=await Ft(gt(),{});return e.rule.isSubtitleBuilder?ql():o3(e)}function Ry(e){$e()==="Original"?Vp(e):zn()}function Oy(e){$e()==="Original"?kp(e):Wl()}function Iy(e){$e()==="Original"?dr(e):zn()}async function _a(){rc("");let e=await Ft(gt(),{});if(e.rule.isSubtitleBuilder){Wl();return}else e.rule.isEbookBuilder&&Pp();zn()}async function ln(e,t){$e()!=="Original"&&await _a(),document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"translateStart",payload:{}})})),document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"targetLanguage",payload:{targetLanguage:e.targetLanguage}})})),ki[e.translationService]||(ki[e.translationService]=!0,tt()||L0(e).catch(a=>{H.warn("init translation engine error",a)}));let n={};if(t&&t.trigger&&(n.trigger=t.trigger),Ye("translage_page_daily",[{name:"translage_page_daily",params:n}],e),Ye("translate_page",[{name:"translate_page",params:n}],{...e,sourceLanguage:pt()}),e.rule.isSubtitleBuilder)return Oy(e);if(e.rule.isEbookBuilder)return Mp(e);if(e.rule.isPdf)return Ry(e);Iy(e),rc("yes")}async function Jp(e){$e()==="Original"?await Si(e):($e()==="Translated"||$e()==="Error")&&(ve=await Ft(gt(),{}),ve.state.translationArea!=="main"?await Si(e):_a())}async function Si(e){ve=await Ft(gt(),{translationArea:"main"}),await ln(ve,e)}async function ac(e){ve=await Ft(gt(),{translationArea:"body"}),await ln(ve,e)}async function Ei(e){if($e()==="Original"){let t=await Ft(gt(),{translationMode:"translation"});await ln(t,e)}else($e()==="Translated"||$e()==="Error")&&await _a()}async function Qp(e){if(ve=await Ft(gt(),{translationMode:void 0}),Ye("switch_translation_mode",[{name:"switch_translation_mode",params:{mode:e}}],{...ve,sourceLanguage:"unknown"}),$e()==="Original"){ln(ve);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(e)}async function Zp(e){if($e()==="Original")await ac(e);else if($e()==="Translated"||$e()==="Error"){let t={};ve&&ve.state&&(t=ve.state),ve=await Ft(gt(),t),ve.state.translationArea!=="body"?(ve.state.translationArea="body",ve=await Ft(gt(),ve.state),await ln(ve,e)):_a()}}async function Xp(e){ve=await Ft(gt(),{translationStartMode:"immediate"}),await ln(ve,e)}async function xp(){let e=await Ft(gt(),{});if(H.debug("init page ctx",e),e.rule.isSubtitleBuilder){ql();return}if(e.rule.isEbookBuilder){Dp();return}if(Gp(e),vr||(vr=e.state.translationTheme),e.rule.urlChangeDelay&&await Ir(e.rule.urlChangeDelay),e.rule.waitForSelectors&&e.rule.waitForSelectors.length>0&&await Ny(e.rule.waitForSelectors,e.rule.waitForSelectorsTimeout),e.rule.isInjectOptionsUrl){let a=tf(),r=document.createElement("meta");r.name="immersive-translate-options-url",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(u){H.warn("inject options url failed",u)}}if(e.rule.isInjectVersion){let a=tn(),r=document.createElement("meta");r.name="immersive-translate-version",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(u){H.warn("inject version failed",u)}}if(e.rule.globalMeta&&Object.keys(e.rule.globalMeta).forEach(r=>{let u=document.createElement("meta");u.name=r,u.content=e.rule.globalMeta[r],document.head.appendChild(u)}),e.rule.initialGlobalAttributes&&Hg(document.body,e.rule.initialGlobalAttributes),e.rule.isPdf){ln(e);return}if(e.rule.isOnBoardingPage){document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"currentConfig",payload:{enableDefaultAlwaysTranslatedUrls:!!e.config.enableDefaultAlwaysTranslatedUrls}})}));let a=document.querySelector("#immersiveTranslateEnableDefaultAlwaysTranslatedUrlsValue");a&&(a.value="helloworld",a.value=String(!!e.config.enableDefaultAlwaysTranslatedUrls),a.dispatchEvent(new Event("change")))}Yp||(Yp=!0,globalThis.top!==globalThis.self&&e.rule.useIframePostMessage&&await Bm());let t=e.sourceLanguage;if(t==="auto"?t=await nc():an(t),e.rule.isInjectMeta)try{let a=await Ug(t),r=document.createElement("meta");r.name="immersive-translate-meta",r.content=cs(JSON.stringify(a)),document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(a){H.warn("inject meta failed",a)}let n=e.state.isAutoTranslate||e.isTranslateUrl||e.rule.isPdf;if(!n&&!e.isTranslateExcludeUrl&&(H.debug(`detect page language: ${e.url} ${t}`),ra(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto"||Rm(t,e.config.translationLanguagePattern)&&(n=!0,H.debug(`match language pattern ${t}, auto translate`))),e.rule.isEbookBuilder&&(n=!1),!e.rule.isPdf&&Dr()&&Ti(e,window),n)ve.state.isAutoTranslate=!0,ln(ve);else if(H.debug("do not auto translate",e),e.rule.initTranslationServiceAsSoonAsPossible&&e.translationService==="deepl"){if(ra(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto")return;e.config&&e.config.translationServices&&e.config.translationServices.deepl&&e.config.translationServices.deepl.authKey&&typeof e.config.translationServices.deepl.authKey=="string"&&e.config.translationServices.deepl.authKey.startsWith("immersive_")&&(ki[e.translationService]||(ki[e.translationService]=!0,tt()||L0(e).catch(a=>{H.warn("init translation engine error",a)})))}}async function Ft(e,t){let n=Object.keys(t);if(ve){let a={url:e,config:ve.config,state:{...ve.state,...t}};ve=await jn(a)}else{let a=await Tn(),r=t;n.length===0&&(r=void 0),ve=await jn({url:e,config:a,state:r})}return ve}async function ef(){let e=await Tn(),t;ve&&ve.state&&(t=ve.state);let n={url:gt(),config:e,state:t},a=await jn(n);ve=a;let r=Ko(),u=[];return r?u=r.allInlineWindows||[window]:u=[window],u.forEach(o=>{hp(a,o),Dr()&&Ti(a,o),zp(a)}),a}function Ny(e,t=3e3){return new Promise((n,a)=>{let r=t?setTimeout(()=>{n(new Error("timeout"))},t):void 0,u=setInterval(()=>{e.every(i=>document.querySelector(i)!==null)&&(clearInterval(u),r&&clearTimeout(r),n(null))},50)})}async function Ep(e){let t=e.detail;Nt.set(Qt,t);let n=await Nt.get(ns,!1);Nt.set(ns,!1),document.dispatchEvent(new CustomEvent("immersiveTranslateDocumentMessageUserResult",{detail:n?"close":"success"}))}function Tp(e){H.debug("update user info",e);let t=e.detail;Nt.set(Qt,t)}async function Cp(e){let t=await sn();if(t.translationService)return;let n=e.config.translationService,a=["bing","transmart","google"];a.sort((u,o)=>u===n?-1:o===n?1:0);let r=await Mg(a,e);if(!r){Vr("no_avaliable_translation_service",[{name:"no_avaliable_translation_service"}]);return}e.translationService!==r&&(t.translationService=r,on(t),e.translationService=r,Vr("change_default_translation_service",[{name:"change_default_translation_service",params:{translation_service:r}}]))}var pr=async function(e,t){let{method:n,data:a}=e,r=await ef(),u=Date.now();if(H.debug(`content script received message: ${n}`,a||" "),n==="translateTheWholePage")await ac(a),ze(dn,u);else if(n==="translateTheMainPage")await Si(a),ze(dn,u);else if(n==="translateToThePageEndImmediately")await Xp(a),ze(dn,u);else if(n==="toggleTranslatePage")await bi(a),ze(dn,u);else if(n==="toggleTranslateTheWholePage")await Zp(a),ze(dn,u);else if(n==="toggleTranslateTheMainPage")await Jp(a),ze(dn,u);else if(n==="toggleOnlyTransation")await Ei(a),ze(dn,u);else if(n==="translatePage")await ln(r,a),ze(dn,u);else if(n==="toggleTranslationMask")await xi(a);else if(n==="restorePage")_a();else if(n==="setCurrentPageLanguageByClient")an(a);else if(n==="retryFailedParagraphs")yi();else if(n==="switchTranslationMode"){if(r.rule.isPdf)return;a&&a.mode&&Qp(a.mode)}},jy=function(e,t){let{method:n,data:a}=e;if(H.debug(`content script received sync message: ${n}`,a||" "),n==="ping")return"pong";if(n==="getPageStatus")return $e();if(n==="getCurrentPageLanguage"){let r=pt();return nc().catch(u=>{H.warn("detectCurrentPageLanguage failed",u)}),r}},Di,Li;function wp(){let e=Pi();tt()||Uy(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function Pi(){return Di||(Di=new kn("content_script",!1).getConnection("main",pr),Di)}function Uy(){return Li||(Li=new kn("content_script",!1).getConnection("main_sync",jy,{sync:!0}),Li)}async function Ge(e){return await Pi().sendMessage("background:main",e)}function se(e){return Ou()?fo({method:"request",data:e}):he()||Ru()?(e.fetchPolyfill=globalThis.GM_fetch,Nn(e)):Ge({method:"fetch",data:e})}function Tn(){return he()?hn():Ge({method:"getConfig"})}function on(e){return he()?js(e):Ge({method:"setUserConfig",data:e})}function sn(){return he()?Ns():Ge({method:"getUserConfig"})}function ip(){return he()?ta():Ge({method:"getLocalConfig"})}function ii(e){return he()?nn(e):Ge({method:"setLocalConfig",data:e})}function Q3(e){return he()?Eo(e):Ge({method:"setBuildinConfig",data:e})}async function Je(e){if(e.text){let n=Ao(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(he()||At()){let n=ym(e.text,e.minLength,e.pageLangs);return Promise.resolve(n)}let t=await Ge({method:"detectLanguage",data:e});return Promise.resolve(t)}function s3(){return Ge({method:"detectTabLanguage"})}function t3(e){if(he()){let n=new CustomEvent(Hu,{detail:e});document.dispatchEvent(n);return}Pi().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(n=>{})}function Fg(e){return he()?km(e):Ge({method:"queryParagraphCache",data:e})}async function _g(e){if(he()){await Am(e);return}return Ge({method:"setParagraphCache",data:e})}async function Vm(){if(he())return Promise.resolve();await Ge({method:"mockRequest"})}function xr(e=!1,t=""){return he()?(ee.runtime.openOptionsPage(e,t),Promise.resolve()):Ge({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function tf(e=""){return he()||At()?Be().OPTIONS_URL:ee.runtime.getURL("options.html")}function uc(e=""){return ee&&ee.runtime&&ee.runtime.getURL?ee.runtime.getURL("options.html"):""}function si(e=!1){return he()?(ee.extra.openAboutPage(e),Promise.resolve()):Ge({method:"openAboutPage"})}function vp(e=!1){return he()?(ee.extra.openSearchEnhancement(e),Promise.resolve()):Ge({method:"openSearchEnhancement"})}function li(e){return he()?(ee.extra.openInTab(e),Promise.resolve()):Ge({method:"openInTab",data:e})}function ci(e=!1){return he()?(ee.extra.openEbookViewerPage(e),Promise.resolve()):Ge({method:"openEbookViewerPage"})}function Z3(e=!1){return he()?Promise.resolve():Ge({method:"openHtmlViewerPage"})}function di(e=!1){return he()?(ee.extra.openEbookBuilderPage(e),Promise.resolve()):Ge({method:"openEbookBuilderPage"})}function Ap(e){At()}function Pl(e=!1){return he()?(ee.extra.openPdfViewerPage(e),Promise.resolve()):Ge({method:"openPdfViewerPage"})}function X3(e=!1){return he()?(ee.extra.openSubtitleBuilderPage(e),Promise.resolve()):Ge({method:"openSubtitleBuilderPage"})}function rc(e){return he()?Promise.resolve():Ge({method:"setBadge",data:{text:e}})}function h3(){return he()?(H.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):Ge({method:"autoSyncLatestConfig"})}function nf(e){let t;try{t=new URL(e)}catch{return!1}let n=uc(),a="";try{a=new URL(n).hostname}catch{}return!!(a&&t.hostname===a)}function Zo(e){let t;try{t=new URL(e)}catch{return!1}let n=uc(),a="";try{a=new URL(n).hostname}catch{}return a&&t.hostname===a?!0:!(oc(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function oc(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}m();var zy=function(e,t){let{method:n,data:a}=e;H.debug(`popup received message: ${n}`,a||" ");let r;t.active&&(r=t.id,globalThis.document.dispatchEvent(new CustomEvent(Pr,{detail:{tabId:r,payload:e}})))},Mi;function af(){xu()}function xu(){return Mi||(Mi=new kn("popup",!1).getConnection("main_sync",zy),Mi)}var Ba={},ic={};function Fi(e,t){if(ic[e])try{t()}catch(n){H.error("run callback failed",n)}else Ba[e]||(Ba[e]=[]),Ba[e].push(t)}function rf(e){if(Ba[e]&&Ba[e].length){let t=[...Ba[e]];Ba[e]=[],t.forEach(n=>n())}}function sc(){let[e,t]=Te("Original"),{t:n}=wt(),[a,r,u,o]=hr(()=>{setTimeout(()=>{T("updateGlobalContext",!1)()},250)});oi(a,r);let[i,l]=Te(null),[c,s]=Te(null),[g,p]=Te(null),[f,d]=Te("auto"),[b,C]=Te(null),[{errorMsg:h,disableButton:A,noPermissionPDF:S},U]=Te({errorMsg:"",disableButton:!1,noPermissionPDF:!1}),O=M=>{let{tabId:q,payload:j}=M.detail,{method:$,data:z}=j;H.debug("popup received message",$,z||" "),$==="setPageStatus"?q&&t(z):$==="ready"&&q&&(U({disableButton:!1,errorMsg:"",noPermissionPDF:!1}),ic[q]=!0,rf(q))},y=()=>{r(M=>({...M,enabled:!M.enabled})),setTimeout(()=>{w()},50)};Ne(()=>{let M=xu();return ee.tabs.query({currentWindow:!0,active:!0}).then(q=>{let j=q[0].id;p(j);let $=q[0].url;ee.tabs.onUpdated.addListener((z,ae,J)=>{z===z&&J.url&&c&&J.url!==c&&(s(J.url),window.location.reload())}),globalThis.document.addEventListener(Pr,O),$&&s($),$&&Zo($)?(s($),M.sendMessage(`content_script:main_sync:${j}`,{method:"ping"}).then(z=>{U({disableButton:!1,errorMsg:"",noPermissionPDF:!1}),ic[j]=!0,rf(j)}).catch(z=>{nf($)||U({disableButton:!0,errorMsg:n("reloadCurrentPage"),noPermissionPDF:!1}),H.debug("ping failed, but it is ok. cause maybe content is not injected",z)}),Fi(j,async()=>{let z=await M.sendMessage(`content_script:main_sync:${j}`,{method:"getPageStatus"});t(z)}),Fi(j,async()=>{let z=await hn();l(z)}),Fi(j,async()=>{let z=await M.sendMessage(`content_script:main_sync:${j}`,{method:"getCurrentPageLanguage"});d(z),z==="auto"&&setTimeout(async()=>{let ae=await M.sendMessage(`content_script:main_sync:${j}`,{method:"getCurrentPageLanguage"});d(ae)},500)})):oc($||"")?qy($||"")&&Hy($||"").then(z=>{z||U({disableButton:!1,noPermissionPDF:!0,errorMsg:n("noLocalFilePermissionForPDF")})}):U({disableButton:!0,errorMsg:n("noPermissionForThisPage"),noPermissionPDF:!1}),$===""&&s("about:newtab")}).catch(q=>{}),()=>{globalThis.document.removeEventListener(Pr,O)}},[]),Ne(()=>{hn().then(M=>{l(M)})},[a]),Ne(()=>{c&&i&&jn({url:c,config:i}).then(M=>{C(M)})},[c,i]);let T=(M,q=!0,j={})=>async()=>{let $=xu(),ae=(await ee.tabs.query({currentWindow:!0,active:!0}))[0].id,J={trigger:"popup",...j};$.sendMessage(`content_script:main:${ae}`,{method:M,data:J}),q&&setTimeout(()=>{globalThis.close()},10)},k=()=>{let M=N4();ee.tabs.create({url:M}),globalThis.close()},v=()=>{let M=ee.runtime.getURL(g4);ee.tabs.create({url:M}),globalThis.close()},E=()=>{let q=Be().SUBTITLE_BUILDER_URL;ee.tabs.create({url:q}),globalThis.close()},R=()=>{c&&(ee.tabs.create({url:I4(c)}),globalThis.close())},F=M=>{let q=xu();if(d(M),g&&c){let j=Bu(c,M,i.sourceLanguageUrlPattern);r($=>({...$,sourceLanguageUrlPattern:j})),Fi(g,()=>{q.sendMessage(`content_script:main:${g}`,{method:"setCurrentPageLanguageByClient",data:M})})}},w=()=>{globalThis.close()},B=(M="")=>{if(At()){let j=Be().OPTIONS_URL;ee.tabs.create({url:j+M})}else{let q=ee.runtime.getURL("options.html");ee.tabs.create({url:q+M})}setTimeout(()=>{globalThis.close()},50)},I=()=>{if(At()){let q=Be().OPTIONS_URL;ee.tabs.create({url:q+"#about"})}else ee.tabs.create({url:ee.runtime.getURL("options.html#about")});setTimeout(()=>{globalThis.close()},50)},N=()=>{let M=Yu;ee.tabs.create({url:M}),setTimeout(()=>{globalThis.close()},50)},P=()=>{let q=Be().EBOOK_BUILDER_URL;ee.tabs.create({url:q}),setTimeout(()=>{globalThis.close()},50)},x=()=>{let q=Be().EBOOK_VIEWER_URL;ee.tabs.create({url:q}),setTimeout(()=>{globalThis.close()},50)},D=M=>{r(q=>({...q,generalRule:{...q.generalRule,mouseHoverHoldKey:M}}))};return!i||!b?null:V(fu,{onClose:w,onToggleTranslate:T("toggleTranslatePage"),openEbookBuilderPage:P,openEbookViewerPage:x,openPricingPage:N,onTranslateLocalSubtitleFile:E,onTranslateLocalHtmlFile:v,onToggleEnabled:y,openOptionsPage:B,openAboutPage:I,onTranslatePdf:R,onTranslateLocalPdfFile:k,onTranslateTheMainPage:T("translateTheMainPage"),onTranslateTheWholePage:T("translateTheWholePage"),ontranslateToThePageEndImmediately:T("translateToThePageEndImmediately"),onSwitchTranslationMode:M=>{T("switchTranslationMode",!0,{mode:M})()},onTranslatePage:T("translatePage"),onRestorePage:T("restorePage",!1),onSetPageLanguage:F,onUserConfigChange:M=>{r(M)},config:i,pageStatus:e,ctx:b,currentUrl:c,currentLang:f,onSetLocalConfig:nn,onSetBuildinConfig:Eo,request:Nn,onMouseTriggerChanged:D,errorMsg:h,disabledButton:A,noPermissionPDF:S})}async function Hy(e){try{let t=new URL(e),n=await fetch(t.href);return!0}catch{return!1}}function qy(e){try{return new URL(e).protocol==="file:"}catch{return!1}}var uf=document.getElementById("mount");af();uf&&(async()=>{let e=await hn();e.debug&&H.setLevel("debug"),pa(V(Yo,{lang:e.interfaceLanguage,translations:Go,fallbackLang:"zh-CN",children:V(sc,{})}),uf)})();})(); +`)}function Kp(e,t){if(!e.keyword)return;let n=e.keyword.value||"";for(let a=0;anew RegExp(a.urlMatch).test(t))}async function Vp(e){if(fa().any)return;if(!e.rule.enableSearchEnhancement){H.debug("enable is false");return}let t=Fy(e.rule.searchEnhancementConfig||[],e.url);if(!t){H.debug("not found siteConfig",e.url);return}let n=Kp(t,e.url);if(!n){H.debug("not found keyword",e.url);return}t.id=="google"?By(e,t,n):_y(e,t,n)}async function _y(e,t,n){let a=await Je({text:document.title,pageLangs:[pt(),"en"]});t.selector&&setTimeout(async()=>{let r=document.querySelector(t.selector);if(!r){H.debug("selector node not found",t.selector);return}let u=await ec(n,t.showCount);if(u&&u.length<=0){H.debug("list not found");return}let o=await tc(t,u,n,t.showCount);if(!o){H.debug("getInseredNode none");return}o.style.cssText=t.style.container||"";let i=t.selectorAction||"appendChild";i=="insertBefore"?r.parentElement?.insertBefore(o,r):i=="appendChild"?r.appendChild(o):i=="replace"&&r?.replaceWith(o),Xl(e,t,o,a),Ai(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a)},t.delayTime||0)}async function By(e,t,n){let a=await Je({text:n,pageLangs:["en"]});if(Ai(e,{key:"detect_search_action"},a),!["zh-CN","zh-TW"].includes(a))return;H.debug("use dual search");let r=!1;if(new URL(e.url).searchParams.get("tbm")==="nws")r=!0;else if(!Gp(document.body))return;let o=document.querySelector("#rhs");if(!o){let i=document.querySelector("#rcnt");if(!i)return;let l=i.children;if(l&&l.length>1)o=l[1];else{let c=l[0];o=document.createElement("div"),o.id="rhs",o.style.maxWidth="372px",o.style.marginLeft="50px",i.insertBefore(o,c.nextSibling)}}if(r||Gp(document.body)){H.debug("find story");let i=await $p(e,n,a);H.debug("enKeyword",i);let l=await ec(i,t.showCount);if(H.debug("news list",l),l&&l.length<=0)return;let c=await tc(t,l,i,t.showCount);if(!c)return;Ai(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a),Xl(e,t,c,a),o.insertBefore(c,o?.firstChild)}}function Gp(e){let t=e.querySelectorAll("[aria-level='2'][role=heading]");if(!t)return!1;for(let n of t){let a=(n?.textContent||"").trim();if(a.indexOf("\u7126\u70B9\u65B0\u95FB")>=0||a.indexOf("\u7126\u9EDE\u65B0\u805E")>=0||a.indexOf("Top stories")>=0)return!0}return!1}g();function Yp(e){e.state.translationMode="translation",dr(e)}var ve=null,ki={},vr,Jp=!1;async function bi(e){if($e()==="Original"){let t={translationMode:void 0};vr&&(t.translationTheme=vr),ve&&(t={...ve.state,...t}),await Ft(gt(),t),await ln(ve,e)}else($e()==="Translated"||$e()==="Error")&&Ba()}async function yi(){if(ve=await Ft(gt(),{}),ve.rule.isEbookBuilder)return Pp(ve);if(ve.rule.isSubtitleBuilder)return Dp(ve);s3()}async function xi(e){if($e()==="Original")ve=await Ft(gt(),{}),vr||(vr=ve.state.translationTheme),ve=await Ft(gt(),{translationTheme:"mask"}),await ln(ve,e);else if($e()==="Translated"){let t=Ig().filter(r=>r.contentDocument?.body).map(r=>r.contentDocument.body),n=[ve.mainFrame,...t],a=ve?.state.translationTheme;for(let r of n){let u=Qa(r,qa,!0);a==="mask"?u!=="none"?nt(r,qa,"none",!0):nt(r,qa,"mask",!0):u!=="mask"?nt(r,qa,"mask",!0):nt(r,qa,"none",!0)}}}async function nc(){let e=await Ft(gt(),{});return e.rule.isSubtitleBuilder?ql():i3(e)}function Ry(e){$e()==="Original"?Yp(e):zn()}function Oy(e){$e()==="Original"?Sp(e):Wl()}function Iy(e){$e()==="Original"?dr(e):zn()}async function Ba(){rc("");let e=await Ft(gt(),{});if(e.rule.isSubtitleBuilder){Wl();return}else e.rule.isEbookBuilder&&Mp();zn()}async function ln(e,t){$e()!=="Original"&&await Ba(),document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"translateStart",payload:{}})})),document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"targetLanguage",payload:{targetLanguage:e.targetLanguage}})})),ki[e.translationService]||(ki[e.translationService]=!0,tt()||L0(e).catch(a=>{H.warn("init translation engine error",a)}));let n={};if(t&&t.trigger&&(n.trigger=t.trigger),Ye("translage_page_daily",[{name:"translage_page_daily",params:n}],e),Ye("translate_page",[{name:"translate_page",params:n}],{...e,sourceLanguage:pt()}),e.rule.isSubtitleBuilder)return Oy(e);if(e.rule.isEbookBuilder)return Fp(e);if(e.rule.isPdf)return Ry(e);Iy(e),rc("yes")}async function Qp(e){$e()==="Original"?await Si(e):($e()==="Translated"||$e()==="Error")&&(ve=await Ft(gt(),{}),ve.state.translationArea!=="main"?await Si(e):Ba())}async function Si(e){ve=await Ft(gt(),{translationArea:"main"}),await ln(ve,e)}async function ac(e){ve=await Ft(gt(),{translationArea:"body"}),await ln(ve,e)}async function Ei(e){if($e()==="Original"){let t=await Ft(gt(),{translationMode:"translation"});await ln(t,e)}else($e()==="Translated"||$e()==="Error")&&await Ba()}async function Zp(e){if(ve=await Ft(gt(),{translationMode:void 0}),Ye("switch_translation_mode",[{name:"switch_translation_mode",params:{mode:e}}],{...ve,sourceLanguage:"unknown"}),$e()==="Original"){ln(ve);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(e)}async function Xp(e){if($e()==="Original")await ac(e);else if($e()==="Translated"||$e()==="Error"){let t={};ve&&ve.state&&(t=ve.state),ve=await Ft(gt(),t),ve.state.translationArea!=="body"?(ve.state.translationArea="body",ve=await Ft(gt(),ve.state),await ln(ve,e)):Ba()}}async function ef(e){ve=await Ft(gt(),{translationStartMode:"immediate"}),await ln(ve,e)}async function Ep(){let e=await Ft(gt(),{});if(H.debug("init page ctx",e),e.rule.isSubtitleBuilder){ql();return}if(e.rule.isEbookBuilder){Lp();return}if(Vp(e),vr||(vr=e.state.translationTheme),e.rule.urlChangeDelay&&await Ir(e.rule.urlChangeDelay),e.rule.waitForSelectors&&e.rule.waitForSelectors.length>0&&await Ny(e.rule.waitForSelectors,e.rule.waitForSelectorsTimeout),e.rule.isInjectOptionsUrl){let a=nf(),r=document.createElement("meta");r.name="immersive-translate-options-url",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(u){H.warn("inject options url failed",u)}}if(e.rule.isInjectVersion){let a=tn(),r=document.createElement("meta");r.name="immersive-translate-version",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(u){H.warn("inject version failed",u)}}if(e.rule.globalMeta&&Object.keys(e.rule.globalMeta).forEach(r=>{let u=document.createElement("meta");u.name=r,u.content=e.rule.globalMeta[r],document.head.appendChild(u)}),e.rule.initialGlobalAttributes&&qg(document.body,e.rule.initialGlobalAttributes),e.rule.isPdf){ln(e);return}if(e.rule.isOnBoardingPage){document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"currentConfig",payload:{enableDefaultAlwaysTranslatedUrls:!!e.config.enableDefaultAlwaysTranslatedUrls}})}));let a=document.querySelector("#immersiveTranslateEnableDefaultAlwaysTranslatedUrlsValue");a&&(a.value="helloworld",a.value=String(!!e.config.enableDefaultAlwaysTranslatedUrls),a.dispatchEvent(new Event("change")))}Jp||(Jp=!0,globalThis.top!==globalThis.self&&e.rule.useIframePostMessage&&await Rm());let t=e.sourceLanguage;if(t==="auto"?t=await nc():an(t),e.rule.isInjectMeta)try{let a=await zg(t),r=document.createElement("meta");r.name="immersive-translate-meta",r.content=cs(JSON.stringify(a)),document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(a){H.warn("inject meta failed",a)}let n=e.state.isAutoTranslate||e.isTranslateUrl||e.rule.isPdf;if(!n&&!e.isTranslateExcludeUrl&&(H.debug(`detect page language: ${e.url} ${t}`),ra(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto"||Om(t,e.config.translationLanguagePattern)&&(n=!0,H.debug(`match language pattern ${t}, auto translate`))),e.rule.isEbookBuilder&&(n=!1),!e.rule.isPdf&&Dr()&&Ti(e,window),n)ve.state.isAutoTranslate=!0,ln(ve);else if(H.debug("do not auto translate",e),e.rule.initTranslationServiceAsSoonAsPossible&&e.translationService==="deepl"){if(ra(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto")return;e.config&&e.config.translationServices&&e.config.translationServices.deepl&&e.config.translationServices.deepl.authKey&&typeof e.config.translationServices.deepl.authKey=="string"&&e.config.translationServices.deepl.authKey.startsWith("immersive_")&&(ki[e.translationService]||(ki[e.translationService]=!0,tt()||L0(e).catch(a=>{H.warn("init translation engine error",a)})))}}async function Ft(e,t){let n=Object.keys(t);if(ve){let a={url:e,config:ve.config,state:{...ve.state,...t}};ve=await jn(a)}else{let a=await Tn(),r=t;n.length===0&&(r=void 0),ve=await jn({url:e,config:a,state:r})}return ve}async function tf(){let e=await Tn(),t;ve&&ve.state&&(t=ve.state);let n={url:gt(),config:e,state:t},a=await jn(n);ve=a;let r=Ko(),u=[];return r?u=r.allInlineWindows||[window]:u=[window],u.forEach(o=>{bp(a,o),Dr()&&Ti(a,o),Hp(a)}),a}function Ny(e,t=3e3){return new Promise((n,a)=>{let r=t?setTimeout(()=>{n(new Error("timeout"))},t):void 0,u=setInterval(()=>{e.every(i=>document.querySelector(i)!==null)&&(clearInterval(u),r&&clearTimeout(r),n(null))},50)})}async function Tp(e){let t=e.detail;jt.set(Nt,t);let n=await jt.get(ns,!1);jt.set(ns,!1),document.dispatchEvent(new CustomEvent("immersiveTranslateDocumentMessageUserResult",{detail:n?"close":"success"}))}function Cp(e){H.debug("update user info",e);let t=e.detail;jt.set(Nt,t)}async function wp(e){let t=await sn();if(t.translationService)return;let n=e.config.translationService,a=["bing","transmart","google"];a.sort((u,o)=>u===n?-1:o===n?1:0);let r=await Fg(a,e);if(!r){Vr("no_avaliable_translation_service",[{name:"no_avaliable_translation_service"}]);return}e.translationService!==r&&(t.translationService=r,on(t),e.translationService=r,Vr("change_default_translation_service",[{name:"change_default_translation_service",params:{translation_service:r}}]))}var pr=async function(e,t){let{method:n,data:a}=e,r=await tf(),u=Date.now();if(H.debug(`content script received message: ${n}`,a||" "),n==="translateTheWholePage")await ac(a),ze(dn,u);else if(n==="translateTheMainPage")await Si(a),ze(dn,u);else if(n==="translateToThePageEndImmediately")await ef(a),ze(dn,u);else if(n==="toggleTranslatePage")await bi(a),ze(dn,u);else if(n==="toggleTranslateTheWholePage")await Xp(a),ze(dn,u);else if(n==="toggleTranslateTheMainPage")await Qp(a),ze(dn,u);else if(n==="toggleOnlyTransation")await Ei(a),ze(dn,u);else if(n==="translatePage")await ln(r,a),ze(dn,u);else if(n==="toggleTranslationMask")await xi(a);else if(n==="restorePage")Ba();else if(n==="setCurrentPageLanguageByClient")an(a);else if(n==="retryFailedParagraphs")yi();else if(n==="switchTranslationMode"){if(r.rule.isPdf)return;a&&a.mode&&Zp(a.mode)}},jy=function(e,t){let{method:n,data:a}=e;if(H.debug(`content script received sync message: ${n}`,a||" "),n==="ping")return"pong";if(n==="getPageStatus")return $e();if(n==="getCurrentPageLanguage"){let r=pt();return nc().catch(u=>{H.warn("detectCurrentPageLanguage failed",u)}),r}},Di,Li;function vp(){let e=Pi();tt()||Uy(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function Pi(){return Di||(Di=new kn("content_script",!1).getConnection("main",pr),Di)}function Uy(){return Li||(Li=new kn("content_script",!1).getConnection("main_sync",jy,{sync:!0}),Li)}async function Ge(e){return await Pi().sendMessage("background:main",e)}function se(e){return Ru()?po({method:"request",data:e}):fe()||Bu()?(e.fetchPolyfill=globalThis.GM_fetch,Nn(e)):Ge({method:"fetch",data:e})}function Tn(){return fe()?hn():Ge({method:"getConfig"})}function on(e){return fe()?js(e):Ge({method:"setUserConfig",data:e})}function sn(){return fe()?Ns():Ge({method:"getUserConfig"})}function sp(){return fe()?ta():Ge({method:"getLocalConfig"})}function ii(e){return fe()?nn(e):Ge({method:"setLocalConfig",data:e})}function Z3(e){return fe()?xo(e):Ge({method:"setBuildinConfig",data:e})}async function Je(e){if(e.text){let n=vo(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(fe()||At()){let n=xm(e.text,e.minLength,e.pageLangs);return Promise.resolve(n)}let t=await Ge({method:"detectLanguage",data:e});return Promise.resolve(t)}function l3(){return Ge({method:"detectTabLanguage"})}function n3(e){if(fe()){let n=new CustomEvent(zu,{detail:e});document.dispatchEvent(n);return}Pi().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(n=>{})}function _g(e){return fe()?Sm(e):Ge({method:"queryParagraphCache",data:e})}async function Bg(e){if(fe()){await km(e);return}return Ge({method:"setParagraphCache",data:e})}async function Ym(){if(fe())return Promise.resolve();await Ge({method:"mockRequest"})}function xr(e=!1,t=""){return fe()?(ee.runtime.openOptionsPage(e,t),Promise.resolve()):Ge({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function nf(e=""){return fe()||At()?Be().OPTIONS_URL:ee.runtime.getURL("options.html")}function uc(e=""){return ee&&ee.runtime&&ee.runtime.getURL?ee.runtime.getURL("options.html"):""}function si(e=!1){return fe()?(ee.extra.openAboutPage(e),Promise.resolve()):Ge({method:"openAboutPage"})}function Ap(e=!1){return fe()?(ee.extra.openSearchEnhancement(e),Promise.resolve()):Ge({method:"openSearchEnhancement"})}function li(e){return fe()?(ee.extra.openInTab(e),Promise.resolve()):Ge({method:"openInTab",data:e})}function ci(e=!1){return fe()?(ee.extra.openEbookViewerPage(e),Promise.resolve()):Ge({method:"openEbookViewerPage"})}function X3(e=!1){return fe()?Promise.resolve():Ge({method:"openHtmlViewerPage"})}function di(e=!1){return fe()?(ee.extra.openEbookBuilderPage(e),Promise.resolve()):Ge({method:"openEbookBuilderPage"})}function kp(e){At()}function Pl(e=!1){return fe()?(ee.extra.openPdfViewerPage(e),Promise.resolve()):Ge({method:"openPdfViewerPage"})}function ep(e=!1){return fe()?(ee.extra.openSubtitleBuilderPage(e),Promise.resolve()):Ge({method:"openSubtitleBuilderPage"})}function rc(e){return fe()?Promise.resolve():Ge({method:"setBadge",data:{text:e}})}function b3(){return fe()?(H.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):Ge({method:"autoSyncLatestConfig"})}function af(e){let t;try{t=new URL(e)}catch{return!1}let n=uc(),a="";try{a=new URL(n).hostname}catch{}return!!(a&&t.hostname===a)}function Zo(e){let t;try{t=new URL(e)}catch{return!1}let n=uc(),a="";try{a=new URL(n).hostname}catch{}return a&&t.hostname===a?!0:!(oc(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function oc(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}g();var zy=function(e,t){let{method:n,data:a}=e;H.debug(`popup received message: ${n}`,a||" ");let r;t.active&&(r=t.id,globalThis.document.dispatchEvent(new CustomEvent(Pr,{detail:{tabId:r,payload:e}})))},Mi;function rf(){yu()}function yu(){return Mi||(Mi=new kn("popup",!1).getConnection("main_sync",zy),Mi)}var Ra={},ic={};function Fi(e,t){if(ic[e])try{t()}catch(n){H.error("run callback failed",n)}else Ra[e]||(Ra[e]=[]),Ra[e].push(t)}function uf(e){if(Ra[e]&&Ra[e].length){let t=[...Ra[e]];Ra[e]=[],t.forEach(n=>n())}}function sc(){let[e,t]=Te("Original"),{t:n}=wt(),[a,r,u,o]=hr(()=>{setTimeout(()=>{T("updateGlobalContext",!1)()},250)});oi(a,r);let[i,l]=Te(null),[c,s]=Te(null),[m,p]=Te(null),[f,d]=Te("auto"),[b,C]=Te(null),[{errorMsg:h,disableButton:A,noPermissionPDF:S},U]=Te({errorMsg:"",disableButton:!1,noPermissionPDF:!1}),O=M=>{let{tabId:q,payload:j}=M.detail,{method:$,data:z}=j;H.debug("popup received message",$,z||" "),$==="setPageStatus"?q&&t(z):$==="ready"&&q&&(U({disableButton:!1,errorMsg:"",noPermissionPDF:!1}),ic[q]=!0,uf(q))},y=()=>{r(M=>({...M,enabled:!M.enabled})),setTimeout(()=>{w()},50)};Ne(()=>{let M=yu();return ee.tabs.query({currentWindow:!0,active:!0}).then(q=>{let j=q[0].id;p(j);let $=q[0].url;ee.tabs.onUpdated.addListener((z,ae,J)=>{z===z&&J.url&&c&&J.url!==c&&(s(J.url),window.location.reload())}),globalThis.document.addEventListener(Pr,O),$&&s($),$&&Zo($)?(s($),M.sendMessage(`content_script:main_sync:${j}`,{method:"ping"}).then(z=>{U({disableButton:!1,errorMsg:"",noPermissionPDF:!1}),ic[j]=!0,uf(j)}).catch(z=>{af($)||U({disableButton:!0,errorMsg:n("reloadCurrentPage"),noPermissionPDF:!1}),H.debug("ping failed, but it is ok. cause maybe content is not injected",z)}),Fi(j,async()=>{let z=await M.sendMessage(`content_script:main_sync:${j}`,{method:"getPageStatus"});t(z)}),Fi(j,async()=>{let z=await hn();l(z)}),Fi(j,async()=>{let z=await M.sendMessage(`content_script:main_sync:${j}`,{method:"getCurrentPageLanguage"});d(z),z==="auto"&&setTimeout(async()=>{let ae=await M.sendMessage(`content_script:main_sync:${j}`,{method:"getCurrentPageLanguage"});d(ae)},500)})):oc($||"")?qy($||"")&&Hy($||"").then(z=>{z||U({disableButton:!1,noPermissionPDF:!0,errorMsg:n("noLocalFilePermissionForPDF")})}):U({disableButton:!0,errorMsg:n("noPermissionForThisPage"),noPermissionPDF:!1}),$===""&&s("about:newtab")}).catch(q=>{}),()=>{globalThis.document.removeEventListener(Pr,O)}},[]),Ne(()=>{hn().then(M=>{l(M)})},[a]),Ne(()=>{c&&i&&jn({url:c,config:i}).then(M=>{C(M)})},[c,i]);let T=(M,q=!0,j={})=>async()=>{let $=yu(),ae=(await ee.tabs.query({currentWindow:!0,active:!0}))[0].id,J={trigger:"popup",...j};$.sendMessage(`content_script:main:${ae}`,{method:M,data:J}),q&&setTimeout(()=>{globalThis.close()},10)},k=()=>{let M=N4();ee.tabs.create({url:M}),globalThis.close()},v=()=>{let M=ee.runtime.getURL(g4);ee.tabs.create({url:M}),globalThis.close()},E=()=>{let q=Be().SUBTITLE_BUILDER_URL;ee.tabs.create({url:q}),globalThis.close()},R=()=>{c&&(ee.tabs.create({url:I4(c)}),globalThis.close())},F=M=>{let q=yu();if(d(M),m&&c){let j=_u(c,M,i.sourceLanguageUrlPattern);r($=>({...$,sourceLanguageUrlPattern:j})),Fi(m,()=>{q.sendMessage(`content_script:main:${m}`,{method:"setCurrentPageLanguageByClient",data:M})})}},w=()=>{globalThis.close()},B=(M="")=>{if(At()){let j=Be().OPTIONS_URL;ee.tabs.create({url:j+M})}else{let q=ee.runtime.getURL("options.html");ee.tabs.create({url:q+M})}setTimeout(()=>{globalThis.close()},50)},I=()=>{if(At()){let q=Be().OPTIONS_URL;ee.tabs.create({url:q+"#about"})}else ee.tabs.create({url:ee.runtime.getURL("options.html#about")});setTimeout(()=>{globalThis.close()},50)},N=()=>{let M=Vu;ee.tabs.create({url:M}),setTimeout(()=>{globalThis.close()},50)},P=()=>{let q=Be().EBOOK_BUILDER_URL;ee.tabs.create({url:q}),setTimeout(()=>{globalThis.close()},50)},x=()=>{let q=Be().EBOOK_VIEWER_URL;ee.tabs.create({url:q}),setTimeout(()=>{globalThis.close()},50)},D=M=>{r(q=>({...q,generalRule:{...q.generalRule,mouseHoverHoldKey:M}}))};return!i||!b?null:V(pu,{onClose:w,onToggleTranslate:T("toggleTranslatePage"),openEbookBuilderPage:P,openEbookViewerPage:x,openPricingPage:N,onTranslateLocalSubtitleFile:E,onTranslateLocalHtmlFile:v,onToggleEnabled:y,openOptionsPage:B,openAboutPage:I,onTranslatePdf:R,onTranslateLocalPdfFile:k,onTranslateTheMainPage:T("translateTheMainPage"),onTranslateTheWholePage:T("translateTheWholePage"),ontranslateToThePageEndImmediately:T("translateToThePageEndImmediately"),onSwitchTranslationMode:M=>{T("switchTranslationMode",!0,{mode:M})()},onTranslatePage:T("translatePage"),onRestorePage:T("restorePage",!1),onSetPageLanguage:F,onUserConfigChange:M=>{r(M)},config:i,pageStatus:e,ctx:b,currentUrl:c,currentLang:f,onSetLocalConfig:nn,onSetBuildinConfig:xo,request:Nn,onMouseTriggerChanged:D,errorMsg:h,disabledButton:A,noPermissionPDF:S})}async function Hy(e){try{let t=new URL(e),n=await fetch(t.href);return!0}catch{return!1}}function qy(e){try{return new URL(e).protocol==="file:"}catch{return!1}}var of=document.getElementById("mount");rf();of&&(async()=>{let e=await hn();e.debug&&H.setLevel("debug"),pa(V(Yo,{lang:e.interfaceLanguage,translations:Go,fallbackLang:"zh-CN",children:V(sc,{})}),of)})();})(); /*! Bundled license information: bowser/src/bowser.js: diff --git a/dist/firefox/background.js b/dist/firefox/background.js index ef1ace2..66996b5 100644 --- a/dist/firefox/background.js +++ b/dist/firefox/background.js @@ -1,4 +1,4 @@ -(()=>{var _o=Object.defineProperty;var Eo=(e,t)=>{for(var r in t)_o(e,r,{get:t[r],enumerable:!0})};var T={BUILD_TIME:"2023-09-17T09:32:32.000Z",VERSION:"0.9.5",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"0",BETA:"0",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { +(()=>{var _o=Object.defineProperty;var Eo=(e,t)=>{for(var r in t)_o(e,r,{get:t[r],enumerable:!0})};var T={BUILD_TIME:"2023-09-19T07:46:36.000Z",VERSION:"0.9.6",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"0",BETA:"0",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { --immersive-translate-theme-underline-borderColor: #72ece9; --immersive-translate-theme-nativeUnderline-borderColor: #72ece9; --immersive-translate-theme-nativeDashed-borderColor: #72ece9; @@ -4234,13 +4234,13 @@ select.text-label {
-`,PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",OPTIONS_URL:"https://dash.immersivetranslate.com/",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",MOCK:"0",DEBUG:"0",INSTALL_FROM:"firefox_zip"};var Lo=Object.create,Ar=Object.defineProperty,Ro=Object.getOwnPropertyDescriptor,kn=Object.getOwnPropertyNames,Io=Object.getPrototypeOf,Do=Object.prototype.hasOwnProperty,Oo=(e,t)=>function(){return t||(0,e[kn(e)[0]])((t={exports:{}}).exports,t),t.exports},No=(e,t)=>{for(var r in t)Ar(e,r,{get:t[r],enumerable:!0})},Sr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of kn(t))!Do.call(e,a)&&a!==r&&Ar(e,a,{get:()=>t[a],enumerable:!(n=Ro(t,a))||n.enumerable});return e},Uo=(e,t,r)=>(Sr(e,t,"default"),r&&Sr(r,t,"default")),Cn=(e,t,r)=>(r=e!=null?Lo(Io(e)):{},Sr(t||!e||!e.__esModule?Ar(r,"default",{value:e,enumerable:!0}):r,e)),Pn=Oo({"../esmd/npm/webextension-polyfill@0.10.0/node_modules/webextension-polyfill/dist/browser-polyfill.js"(e,t){(function(r,n){if(typeof define=="function"&&define.amd)define("webextension-polyfill",["module"],n);else if(typeof e<"u")n(t);else{var a={exports:{}};n(a),r.browser=a.exports}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:e,function(r){"use strict";if(!globalThis.chrome?.runtime?.id)throw new Error("This script should only be loaded in a browser extension.");if(typeof globalThis.browser>"u"||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){let n="The message port closed before a response was received.",a=o=>{let s={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(Object.keys(s).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class i extends WeakMap{constructor(y,w=void 0){super(w),this.createItem=y}get(y){return this.has(y)||this.set(y,this.createItem(y)),super.get(y)}}let c=S=>S&&typeof S=="object"&&typeof S.then=="function",d=(S,y)=>(...w)=>{o.runtime.lastError?S.reject(new Error(o.runtime.lastError.message)):y.singleCallbackArg||w.length<=1&&y.singleCallbackArg!==!1?S.resolve(w[0]):S.resolve(w)},u=S=>S==1?"argument":"arguments",f=(S,y)=>function(E,...I){if(I.lengthy.maxArgs)throw new Error(`Expected at most ${y.maxArgs} ${u(y.maxArgs)} for ${S}(), got ${I.length}`);return new Promise((A,q)=>{if(y.fallbackToNoCallback)try{E[S](...I,d({resolve:A,reject:q},y))}catch{E[S](...I),y.fallbackToNoCallback=!1,y.noCallback=!0,A()}else y.noCallback?(E[S](...I),A()):E[S](...I,d({resolve:A,reject:q},y))})},_=(S,y,w)=>new Proxy(y,{apply(E,I,A){return w.call(I,S,...A)}}),v=Function.call.bind(Object.prototype.hasOwnProperty),P=(S,y={},w={})=>{let E=Object.create(null),I={has(q,L){return L in S||L in E},get(q,L,Y){if(L in E)return E[L];if(!(L in S))return;let K=S[L];if(typeof K=="function")if(typeof y[L]=="function")K=_(S,S[L],y[L]);else if(v(w,L)){let ye=f(L,w[L]);K=_(S,S[L],ye)}else K=K.bind(S);else if(typeof K=="object"&&K!==null&&(v(y,L)||v(w,L)))K=P(K,y[L],w[L]);else if(v(w,"*"))K=P(K,y[L],w["*"]);else return Object.defineProperty(E,L,{configurable:!0,enumerable:!0,get(){return S[L]},set(ye){S[L]=ye}}),K;return E[L]=K,K},set(q,L,Y,K){return L in E?E[L]=Y:S[L]=Y,!0},defineProperty(q,L,Y){return Reflect.defineProperty(E,L,Y)},deleteProperty(q,L){return Reflect.deleteProperty(E,L)}},A=Object.create(S);return new Proxy(A,I)},ee=S=>({addListener(y,w,...E){y.addListener(S.get(w),...E)},hasListener(y,w){return y.hasListener(S.get(w))},removeListener(y,w){y.removeListener(S.get(w))}}),Z=new i(S=>typeof S!="function"?S:function(w){let E=P(w,{},{getContent:{minArgs:0,maxArgs:0}});S(E)}),m=new i(S=>typeof S!="function"?S:function(w,E,I){let A=!1,q,L=new Promise(X=>{q=function(C){A=!0,X(C)}}),Y;try{Y=S(w,E,q)}catch(X){Y=Promise.reject(X)}let K=Y!==!0&&c(Y);if(Y!==!0&&!K&&!A)return!1;let ye=X=>{X.then(C=>{I(C)},C=>{let W;C&&(C instanceof Error||typeof C.message=="string")?W=C.message:W="An unexpected error occurred",I({__mozWebExtensionPolyfillReject__:!0,message:W})}).catch(C=>{})};return ye(K?Y:L),!0}),ve=({reject:S,resolve:y},w)=>{o.runtime.lastError?o.runtime.lastError.message===n?y():S(new Error(o.runtime.lastError.message)):w&&w.__mozWebExtensionPolyfillReject__?S(new Error(w.message)):y(w)},G=(S,y,w,...E)=>{if(E.lengthy.maxArgs)throw new Error(`Expected at most ${y.maxArgs} ${u(y.maxArgs)} for ${S}(), got ${E.length}`);return new Promise((I,A)=>{let q=ve.bind(null,{resolve:I,reject:A});E.push(q),w.sendMessage(...E)})},te={devtools:{network:{onRequestFinished:ee(Z)}},runtime:{onMessage:ee(m),onMessageExternal:ee(m),sendMessage:G.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:G.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},be={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return s.privacy={network:{"*":be},services:{"*":be},websites:{"*":be}},P(o,te,s)};r.exports=a(chrome)}else r.exports=globalThis.browser})}}),_n={};No(_n,{default:()=>Qt});var Bo=Cn(Pn());Uo(_n,Cn(Pn()));var{default:An,...Fo}=Bo,Qt=An!==void 0?An:Fo;globalThis.immersiveTranslateBrowserAPI=Qt;function Mt(){let e,t="pending",r=new Promise((n,a)=>{e={async resolve(o){await o,t="fulfilled",n(o)},reject(o){t="rejected",a(o)}}});return Object.defineProperty(r,"state",{get:()=>t}),Object.assign(r,e)}function kr(e,t={}){let{signal:r,persistent:n}=t;return r?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((a,o)=>{let s=()=>{clearTimeout(c),o(new DOMException("Delay was aborted.","AbortError"))},c=setTimeout(()=>{r?.removeEventListener("abort",s),a()},e);if(r?.addEventListener("abort",s,{once:!0}),n===!1)try{Deno.unrefTimer(c)}catch(d){if(!(d instanceof ReferenceError))throw d}})}var En=class{#e=0;#t=[];#r=[];#n=Mt();add(t){++this.#e,this.#a(t[Symbol.asyncIterator]())}async#a(t){try{let{value:r,done:n}=await t.next();n?--this.#e:this.#t.push({iterator:t,value:r})}catch(r){this.#r.push(r)}this.#n.resolve()}async*iterate(){for(;this.#e>0;){await this.#n;for(let t=0;tmi,bgBlue:()=>fi,bgBrightBlack:()=>Ti,bgBrightBlue:()=>Ai,bgBrightCyan:()=>Ci,bgBrightGreen:()=>vi,bgBrightMagenta:()=>ki,bgBrightRed:()=>xi,bgBrightWhite:()=>Pi,bgBrightYellow:()=>Si,bgCyan:()=>yi,bgGreen:()=>pi,bgMagenta:()=>bi,bgRed:()=>gi,bgRgb24:()=>Li,bgRgb8:()=>Ei,bgWhite:()=>wi,bgYellow:()=>hi,black:()=>Qo,blue:()=>ei,bold:()=>Wo,brightBlack:()=>Rn,brightBlue:()=>li,brightCyan:()=>ui,brightGreen:()=>ii,brightMagenta:()=>ci,brightRed:()=>oi,brightWhite:()=>di,brightYellow:()=>si,cyan:()=>ri,dim:()=>zo,getColorEnabled:()=>qo,gray:()=>ai,green:()=>Jo,hidden:()=>$o,inverse:()=>Vo,italic:()=>Ho,magenta:()=>ti,red:()=>Zo,reset:()=>Ko,rgb24:()=>Mi,rgb8:()=>_i,setColorEnabled:()=>jo,strikethrough:()=>Yo,stripColor:()=>Ii,underline:()=>Go,white:()=>ni,yellow:()=>Xo});var{Deno:Mn}=globalThis,Ln=typeof Mn?.noColor=="boolean"?Mn.noColor:!0,Cr=!Ln;function jo(e){Ln||(Cr=e)}function qo(){return Cr}function F(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function j(e,t){return Cr?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function Ko(e){return j(e,F([0],0))}function Wo(e){return j(e,F([1],22))}function zo(e){return j(e,F([2],22))}function Ho(e){return j(e,F([3],23))}function Go(e){return j(e,F([4],24))}function Vo(e){return j(e,F([7],27))}function $o(e){return j(e,F([8],28))}function Yo(e){return j(e,F([9],29))}function Qo(e){return j(e,F([30],39))}function Zo(e){return j(e,F([31],39))}function Jo(e){return j(e,F([32],39))}function Xo(e){return j(e,F([33],39))}function ei(e){return j(e,F([34],39))}function ti(e){return j(e,F([35],39))}function ri(e){return j(e,F([36],39))}function ni(e){return j(e,F([37],39))}function ai(e){return Rn(e)}function Rn(e){return j(e,F([90],39))}function oi(e){return j(e,F([91],39))}function ii(e){return j(e,F([92],39))}function si(e){return j(e,F([93],39))}function li(e){return j(e,F([94],39))}function ci(e){return j(e,F([95],39))}function ui(e){return j(e,F([96],39))}function di(e){return j(e,F([97],39))}function mi(e){return j(e,F([40],49))}function gi(e){return j(e,F([41],49))}function pi(e){return j(e,F([42],49))}function hi(e){return j(e,F([43],49))}function fi(e){return j(e,F([44],49))}function bi(e){return j(e,F([45],49))}function yi(e){return j(e,F([46],49))}function wi(e){return j(e,F([47],49))}function Ti(e){return j(e,F([100],49))}function xi(e){return j(e,F([101],49))}function vi(e){return j(e,F([102],49))}function Si(e){return j(e,F([103],49))}function Ai(e){return j(e,F([104],49))}function ki(e){return j(e,F([105],49))}function Ci(e){return j(e,F([106],49))}function Pi(e){return j(e,F([107],49))}function at(e,t=255,r=0){return Math.trunc(Math.max(Math.min(e,t),r))}function _i(e,t){return j(e,F([38,5,at(t)],39))}function Ei(e,t){return j(e,F([48,5,at(t)],49))}function Mi(e,t){return typeof t=="number"?j(e,F([38,2,t>>16&255,t>>8&255,t&255],39)):j(e,F([38,2,at(t.r),at(t.g),at(t.b)],39))}function Li(e,t){return typeof t=="number"?j(e,F([48,2,t>>16&255,t>>8&255,t&255],49)):j(e,F([48,2,at(t.r),at(t.g),at(t.b)],49))}var Ri=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function Ii(e){return e.replace(Ri,"")}var Pr=class extends Error{constructor(t,r){super(`Exceeded max retry count (${r})`),this.name="RetryError",this.cause=t}},Di={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function _r(e,t){let r={...Di,...t};if(r.maxTimeout>=0&&r.minTimeout>r.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let n=r.minTimeout,a;for(let o=0;osetTimeout(i,n)),n*=r.multiplier,n=Math.max(n,r.minTimeout),r.maxTimeout>=0&&(n=Math.min(n,r.maxTimeout)),a=s}throw new Pr(a,r.maxAttempts)}var Kc=Number.isNaN||function(e){return typeof e=="number"&&e!==e};var Zt=globalThis||(typeof window<"u"?window:self),Ni=Object.create,Mr=Object.defineProperty,Ui=Object.getOwnPropertyDescriptor,Bi=Object.getOwnPropertyNames,Fi=Object.getPrototypeOf,ji=Object.prototype.hasOwnProperty,qi=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ki=(e,t)=>{for(var r in t)Mr(e,r,{get:t[r],enumerable:!0})},Er=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Bi(t))!ji.call(e,a)&&a!==r&&Mr(e,a,{get:()=>t[a],enumerable:!(n=Ui(t,a))||n.enumerable});return e},Wi=(e,t,r)=>(Er(e,t,"default"),r&&Er(r,t,"default")),Dn=(e,t,r)=>(r=e!=null?Ni(Fi(e)):{},Er(t||!e||!e.__esModule?Mr(r,"default",{value:e,enumerable:!0}):r,e)),On=qi((e,t)=>{var r="Expected a function",n=NaN,a="[object Symbol]",o=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt,u=typeof Zt=="object"&&Zt&&Zt.Object===Object&&Zt,f=typeof self=="object"&&self&&self.Object===Object&&self,_=u||f||Function("return this")(),v=Object.prototype,P=v.toString,ee=Math.max,Z=Math.min,m=function(){return _.Date.now()};function ve(w,E,I){var A,q,L,Y,K,ye,X=0,C=!1,W=!1,Ce=!0;if(typeof w!="function")throw new TypeError(r);E=y(E)||0,te(I)&&(C=!!I.leading,W="maxWait"in I,L=W?ee(y(I.maxWait)||0,E):L,Ce="trailing"in I?!!I.trailing:Ce);function ae(B){var z=A,Q=q;return A=q=void 0,X=B,Y=w.apply(Q,z),Y}function p(B){return X=B,K=setTimeout(V,E),C?ae(B):Y}function k(B){var z=B-ye,Q=B-X,re=E-z;return W?Z(re,L-Q):re}function M(B){var z=B-ye,Q=B-X;return ye===void 0||z>=E||z<0||W&&Q>=L}function V(){var B=m();if(M(B))return U(B);K=setTimeout(V,k(B))}function U(B){return K=void 0,Ce&&A?ae(B):(A=q=void 0,Y)}function ce(){K!==void 0&&clearTimeout(K),X=0,A=ye=q=K=void 0}function we(){return K===void 0?Y:U(m())}function pe(){var B=m(),z=M(B);if(A=arguments,q=this,ye=B,z){if(K===void 0)return p(ye);if(W)return K=setTimeout(V,E),ae(ye)}return K===void 0&&(K=setTimeout(V,E)),Y}return pe.cancel=ce,pe.flush=we,pe}function G(w,E,I){var A=!0,q=!0;if(typeof w!="function")throw new TypeError(r);return te(I)&&(A="leading"in I?!!I.leading:A,q="trailing"in I?!!I.trailing:q),ve(w,E,{leading:A,maxWait:E,trailing:q})}function te(w){var E=typeof w;return!!w&&(E=="object"||E=="function")}function be(w){return!!w&&typeof w=="object"}function S(w){return typeof w=="symbol"||be(w)&&P.call(w)==a}function y(w){if(typeof w=="number")return w;if(S(w))return n;if(te(w)){var E=typeof w.valueOf=="function"?w.valueOf():w;w=te(E)?E+"":E}if(typeof w!="string")return w===0?w:+w;w=w.replace(o,"");var I=i.test(w);return I||c.test(w)?d(w.slice(2),I?2:8):s.test(w)?n:+w}t.exports=G}),Nn={};Ki(Nn,{default:()=>Lr});var zi=Dn(On());Wi(Nn,Dn(On()));var{default:In,...Hi}=zi,Lr=In!==void 0?In:Hi;var Gi=Object.create,Ir=Object.defineProperty,Vi=Object.getOwnPropertyDescriptor,$i=Object.getOwnPropertyNames,Yi=Object.getPrototypeOf,Qi=Object.prototype.hasOwnProperty,Zi=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ji=(e,t)=>{for(var r in t)Ir(e,r,{get:t[r],enumerable:!0})},Rr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of $i(t))!Qi.call(e,a)&&a!==r&&Ir(e,a,{get:()=>t[a],enumerable:!(n=Vi(t,a))||n.enumerable});return e},Xi=(e,t,r)=>(Rr(e,t,"default"),r&&Rr(r,t,"default")),Bn=(e,t,r)=>(r=e!=null?Gi(Yi(e)):{},Rr(t||!e||!e.__esModule?Ir(r,"default",{value:e,enumerable:!0}):r,e)),Fn=Zi((e,t)=>{(function(r,n){typeof e=="object"&&typeof t=="object"?t.exports=n():typeof define=="function"&&define.amd?define([],n):typeof e=="object"?e.notie=n():r.notie=n()})(e,function(){return function(r){function n(o){if(a[o])return a[o].exports;var s=a[o]={i:o,l:!1,exports:{}};return r[o].call(s.exports,s,s.exports,n),s.l=!0,s.exports}var a={};return n.m=r,n.c=a,n.i=function(o){return o},n.d=function(o,s,i){n.o(o,s)||Object.defineProperty(o,s,{configurable:!1,enumerable:!0,get:i})},n.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(s,"a",s),s},n.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},n.p="",n(n.s=1)}([function(r,n){r.exports=function(a){return a.webpackPolyfill||(a.deprecate=function(){},a.paths=[],a.children||(a.children=[]),Object.defineProperty(a,"loaded",{enumerable:!0,get:function(){return a.l}}),Object.defineProperty(a,"id",{enumerable:!0,get:function(){return a.i}}),a.webpackPolyfill=1),a}},function(r,n,a){"use strict";(function(o){var s,i,c,d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u};(function(u,f){d(n)==="object"&&d(o)==="object"?o.exports=f():(i=[],s=f,c=typeof s=="function"?s.apply(n,i):s,c!==void 0&&(o.exports=c))})(void 0,function(){return function(u){function f(v){if(_[v])return _[v].exports;var P=_[v]={i:v,l:!1,exports:{}};return u[v].call(P.exports,P,P.exports,f),P.l=!0,P.exports}var _={};return f.m=u,f.c=_,f.i=function(v){return v},f.d=function(v,P,ee){f.o(v,P)||Object.defineProperty(v,P,{configurable:!1,enumerable:!0,get:ee})},f.n=function(v){var P=v&&v.__esModule?function(){return v.default}:function(){return v};return f.d(P,"a",P),P},f.o=function(v,P){return Object.prototype.hasOwnProperty.call(v,P)},f.p="",f(f.s=0)}([function(u,f,_){function v(p,k){var M={};for(var V in p)k.indexOf(V)>=0||Object.prototype.hasOwnProperty.call(p,V)&&(M[V]=p[V]);return M}Object.defineProperty(f,"__esModule",{value:!0});var P=typeof Symbol=="function"&&d(Symbol.iterator)==="symbol"?function(p){return typeof p>"u"?"undefined":d(p)}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p>"u"?"undefined":d(p)},ee=Object.assign||function(p){for(var k=1;k'+V+"",Q.onclick=function(){return q(re,z)},Q.listener=function(R){(E(R)||I(R))&&K()},A(Q,z),ce&&ce<1&&(ce=1),!pe&&ce&&te(ce).then(function(){return q(re,z)})},X=f.force=function(p,k){var M=p.type,V=M===void 0?5:M,U=p.text,ce=p.buttonText,we=ce===void 0?"OK":ce,pe=p.callback,B=p.position,z=B===void 0?m.positions.force||z.top:B;be(),K();var Q=document.createElement("div"),re=S();Q.id=re;var R=document.createElement("div");R.classList.add(m.classes.textbox),R.classList.add(m.classes.backgroundInfo),R.innerHTML='
'+U+"
";var J=document.createElement("div");J.classList.add(m.classes.button),J.classList.add(y[V]),J.innerHTML=we,J.onclick=function(){q(re,z),Y(),pe?pe():k&&k()},Q.appendChild(R),Q.appendChild(J),Q.listener=function(ue){E(ue)&&J.click()},A(Q,z),L()},C=f.confirm=function(p,k,M){var V=p.text,U=p.submitText,ce=U===void 0?"Yes":U,we=p.cancelText,pe=we===void 0?"Cancel":we,B=p.submitCallback,z=p.cancelCallback,Q=p.position,re=Q===void 0?m.positions.confirm||re.top:Q;be(),K();var R=document.createElement("div"),J=S();R.id=J;var ue=document.createElement("div");ue.classList.add(m.classes.textbox),ue.classList.add(m.classes.backgroundInfo),ue.innerHTML='
'+V+"
";var ie=document.createElement("div");ie.classList.add(m.classes.button),ie.classList.add(m.classes.elementHalf),ie.classList.add(m.classes.backgroundSuccess),ie.innerHTML=ce,ie.onclick=function(){q(J,re),Y(),B?B():k&&k()};var N=document.createElement("div");N.classList.add(m.classes.button),N.classList.add(m.classes.elementHalf),N.classList.add(m.classes.backgroundError),N.innerHTML=pe,N.onclick=function(){q(J,re),Y(),z?z():M&&M()},R.appendChild(ue),R.appendChild(ie),R.appendChild(N),R.listener=function(Se){E(Se)?ie.click():I(Se)&&N.click()},A(R,re),L(R,re)},W=function(p,k,M){var V=p.text,U=p.submitText,ce=U===void 0?"Submit":U,we=p.cancelText,pe=we===void 0?"Cancel":we,B=p.submitCallback,z=p.cancelCallback,Q=p.position,re=Q===void 0?m.positions.input||re.top:Q,R=v(p,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);be(),K();var J=document.createElement("div"),ue=S();J.id=ue;var ie=document.createElement("div");ie.classList.add(m.classes.textbox),ie.classList.add(m.classes.backgroundInfo),ie.innerHTML='
'+V+"
";var N=document.createElement("input");N.classList.add(m.classes.inputField),N.setAttribute("autocapitalize",R.autocapitalize||"none"),N.setAttribute("autocomplete",R.autocomplete||"off"),N.setAttribute("autocorrect",R.autocorrect||"off"),N.setAttribute("autofocus",R.autofocus||"true"),N.setAttribute("inputmode",R.inputmode||"verbatim"),N.setAttribute("max",R.max||""),N.setAttribute("maxlength",R.maxlength||""),N.setAttribute("min",R.min||""),N.setAttribute("minlength",R.minlength||""),N.setAttribute("placeholder",R.placeholder||""),N.setAttribute("spellcheck",R.spellcheck||"default"),N.setAttribute("step",R.step||"any"),N.setAttribute("type",R.type||"text"),N.value=R.value||"",R.allowed&&(N.oninput=function(){var me=void 0;if(Array.isArray(R.allowed)){for(var he="",Oe=R.allowed,ze=0;ze'+M+"",z.appendChild(re),we.forEach(function(J,ue){var ie=J.type,N=ie===void 0?1:ie,Se=J.text,De=J.handler,me=document.createElement("div");me.classList.add(y[N]),me.classList.add(m.classes.button),me.classList.add(m.classes.selectChoice);var he=we[ue+1];he&&!he.type&&(he.type=1),he&&he.type===N&&me.classList.add(m.classes.selectChoiceRepeated),me.innerHTML=Se,me.onclick=function(){q(Q,B),Y(),De()},z.appendChild(me)});var R=document.createElement("div");R.classList.add(m.classes.backgroundNeutral),R.classList.add(m.classes.button),R.innerHTML=U,R.onclick=function(){q(Q,B),Y(),ce?ce():k&&k()},z.appendChild(R),z.listener=function(J){I(J)&&R.click()},A(z,B),L(z,B)},ae=f.date=function(p,k,M){var V=p.value,U=V===void 0?new Date:V,ce=p.submitText,we=ce===void 0?"OK":ce,pe=p.cancelText,B=pe===void 0?"Cancel":pe,z=p.submitCallback,Q=p.cancelCallback,re=p.position,R=re===void 0?m.positions.date||R.top:re;be(),K();var J="▾",ue=document.createElement("div"),ie=document.createElement("div"),N=document.createElement("div"),Se=function(de){ue.innerHTML=m.dateMonths[de.getMonth()],ie.innerHTML=de.getDate(),N.innerHTML=de.getFullYear()},De=function(de){var oe=new Date(U.getFullYear(),U.getMonth()+1,0).getDate(),Ke=de.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(Ke)>oe&&(Ke=oe.toString()),de.target.textContent=Ke,Number(Ke)<1&&(Ke="1"),U.setDate(Number(Ke))},me=function(de){var oe=de.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);de.target.textContent=oe,U.setFullYear(Number(oe))},he=function(de){Se(U)},Oe=function(de){var oe=new Date(U.getFullYear(),U.getMonth()+de+1,0).getDate();U.getDate()>oe&&U.setDate(oe),U.setMonth(U.getMonth()+de),Se(U)},ze=function(de){U.setDate(U.getDate()+de),Se(U)},Et=function(de){var oe=U.getFullYear()+de;oe<0?U.setFullYear(0):U.setFullYear(U.getFullYear()+de),Se(U)},Ze=document.createElement("div"),lt=S();Ze.id=lt;var bt=document.createElement("div");bt.classList.add(m.classes.backgroundInfo);var _e=document.createElement("div");_e.classList.add(m.classes.dateSelectorInner);var Ve=document.createElement("div");Ve.classList.add(m.classes.button),Ve.classList.add(m.classes.elementThird),Ve.classList.add(m.classes.dateSelectorUp),Ve.innerHTML=J;var Ee=document.createElement("div");Ee.classList.add(m.classes.button),Ee.classList.add(m.classes.elementThird),Ee.classList.add(m.classes.dateSelectorUp),Ee.innerHTML=J;var qe=document.createElement("div");qe.classList.add(m.classes.button),qe.classList.add(m.classes.elementThird),qe.classList.add(m.classes.dateSelectorUp),qe.innerHTML=J,ue.classList.add(m.classes.element),ue.classList.add(m.classes.elementThird),ue.innerHTML=m.dateMonths[U.getMonth()],ie.classList.add(m.classes.element),ie.classList.add(m.classes.elementThird),ie.setAttribute("contentEditable",!0),ie.addEventListener("input",De),ie.addEventListener("blur",he),ie.innerHTML=U.getDate(),N.classList.add(m.classes.element),N.classList.add(m.classes.elementThird),N.setAttribute("contentEditable",!0),N.addEventListener("input",me),N.addEventListener("blur",he),N.innerHTML=U.getFullYear();var et=document.createElement("div");et.classList.add(m.classes.button),et.classList.add(m.classes.elementThird),et.innerHTML=J;var tt=document.createElement("div");tt.classList.add(m.classes.button),tt.classList.add(m.classes.elementThird),tt.innerHTML=J;var ct=document.createElement("div");ct.classList.add(m.classes.button),ct.classList.add(m.classes.elementThird),ct.innerHTML=J,Ve.onclick=function(){return Oe(1)},Ee.onclick=function(){return ze(1)},qe.onclick=function(){return Et(1)},et.onclick=function(){return Oe(-1)},tt.onclick=function(){return ze(-1)},ct.onclick=function(){return Et(-1)};var Ne=document.createElement("div");Ne.classList.add(m.classes.button),Ne.classList.add(m.classes.elementHalf),Ne.classList.add(m.classes.backgroundSuccess),Ne.innerHTML=we,Ne.onclick=function(){q(lt,R),Y(),z?z(U):k&&k(U)};var rt=document.createElement("div");rt.classList.add(m.classes.button),rt.classList.add(m.classes.elementHalf),rt.classList.add(m.classes.backgroundError),rt.innerHTML=B,rt.onclick=function(){q(lt,R),Y(),Q?Q(U):M&&M(U)},_e.appendChild(Ve),_e.appendChild(Ee),_e.appendChild(qe),_e.appendChild(ue),_e.appendChild(ie),_e.appendChild(N),_e.appendChild(et),_e.appendChild(tt),_e.appendChild(ct),bt.appendChild(_e),Ze.appendChild(bt),Ze.appendChild(Ne),Ze.appendChild(rt),Ze.listener=function(de){E(de)?Ne.click():I(de)&&rt.click()},A(Ze,R),L(Ze,R)};f.default={alert:ye,force:X,confirm:C,input:W,select:Ce,date:ae,setOptions:ve,hideAlerts:K}}])})}).call(n,a(0)(r))}])})}),jn={};Ji(jn,{default:()=>Jt});var es=Bn(Fn());Xi(jn,Bn(Fn()));var{default:Un,...ts}=es,Jt=Un!==void 0?Un:ts;var Dr=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Or(e,t,r,n){e.addEventListener?e.addEventListener(t,r,n):e.attachEvent&&e.attachEvent("on".concat(t),function(){r(window.event)})}function Hn(e,t){for(var r=t.slice(0,t.length-1),n=0;n=0;)t[r-1]+=",",t.splice(r,1),r=t.lastIndexOf("");return t}function rs(e,t){for(var r=e.length>=t.length?e:t,n=e.length>=t.length?t:e,a=!0,o=0;o=0&&le.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&le.splice(0,le.length),(t===93||t===224)&&(t=91),t in Pe){Pe[t]=!1;for(var n in Xe)Xe[n]===t&&(Je[n]=!1)}}function ds(e){if(typeof e>"u")Object.keys(Te).forEach(function(s){return delete Te[s]});else if(Array.isArray(e))e.forEach(function(s){s.key&&Nr(s)});else if(typeof e=="object")e.key&&Nr(e);else if(typeof e=="string"){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n1?Hn(Xe,c):[];Te[f]=Te[f].filter(function(v){var P=n?v.method===n:!0;return!(P&&v.scope===r&&rs(v.mods,_))})}})};function Kn(e,t,r,n){if(t.element===n){var a;if(t.scope===r||t.scope==="all"){a=t.mods.length>0;for(var o in Pe)Object.prototype.hasOwnProperty.call(Pe,o)&&(!Pe[o]&&t.mods.indexOf(+o)>-1||Pe[o]&&t.mods.indexOf(+o)===-1)&&(a=!1);(t.mods.length===0&&!Pe[16]&&!Pe[18]&&!Pe[17]&&!Pe[91]||a||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function Wn(e,t){var r=Te["*"],n=e.keyCode||e.which||e.charCode;if(Je.filter.call(this,e)){if((n===93||n===224)&&(n=91),le.indexOf(n)===-1&&n!==229&&le.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(P){var ee=Br[P];e[P]&&le.indexOf(ee)===-1?le.push(ee):!e[P]&&le.indexOf(ee)>-1?le.splice(le.indexOf(ee),1):P==="metaKey"&&e[P]&&le.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(le=le.slice(le.indexOf(ee))))}),n in Pe){Pe[n]=!0;for(var a in Xe)Xe[a]===n&&(Je[a]=!0);if(!r)return}for(var o in Pe)Object.prototype.hasOwnProperty.call(Pe,o)&&(Pe[o]=e[Br[o]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(le.indexOf(17)===-1&&le.push(17),le.indexOf(18)===-1&&le.push(18),Pe[17]=!0,Pe[18]=!0);var s=It();if(r)for(var i=0;i-1}function Je(e,t,r){le=[];var n=Gn(e),a=[],o="all",s=document,i=0,c=!1,d=!0,u="+",f=!1;for(r===void 0&&typeof t=="function"&&(r=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(o=t.scope),t.element&&(s=t.element),t.keyup&&(c=t.keyup),t.keydown!==void 0&&(d=t.keydown),t.capture!==void 0&&(f=t.capture),typeof t.splitKey=="string"&&(u=t.splitKey)),typeof t=="string"&&(o=t);i1&&(a=Hn(Xe,e)),e=e[e.length-1],e=e==="*"?"*":er(e),e in Te||(Te[e]=[]),Te[e].push({keyup:c,keydown:d,scope:o,mods:a,shortcut:n[i],method:r,key:n[i],splitKey:u,element:s});typeof s<"u"&&!ms(s)&&window&&($n.push(s),Or(s,"keydown",function(_){Wn(_,s)},f),qn||(qn=!0,Or(window,"focus",function(){le=[]},f)),Or(s,"keyup",function(_){Wn(_,s),us(_)},f))}function gs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(Te).forEach(function(r){var n=Te[r].filter(function(a){return a.scope===t&&a.shortcut===e});n.forEach(function(a){a&&a.method&&a.method()})})}var Ur={getPressedKeyString:is,setScope:Yn,getScope:It,deleteScope:cs,getPressedKeyCodes:os,isPressed:ls,filter:ss,trigger:gs,unbind:ds,keyMap:Rt,modifier:Xe,modifierMap:Br};for(Xt in Ur)Object.prototype.hasOwnProperty.call(Ur,Xt)&&(Je[Xt]=Ur[Xt]);var Xt;typeof document<"u"&&(zn=window.hotkeys,Je.noConflict=function(e){return e&&window.hotkeys===Je&&(window.hotkeys=zn),Je},window.hotkeys=Je);var zn;var ps={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},Zn={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},fe={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Be={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},ot={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},h=class{static getFirstMatch(e,t){let r=t.match(e);return r&&r.length>0&&r[1]||""}static getSecondMatch(e,t){let r=t.match(e);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(e,t,r){if(e.test(t))return r}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,r=!1){let n=h.getVersionPrecision(e),a=h.getVersionPrecision(t),o=Math.max(n,a),s=0,i=h.map([e,t],c=>{let d=o-h.getVersionPrecision(c),u=c+new Array(d+1).join(".0");return h.map(u.split("."),f=>new Array(20-f.length).join("0")+f).reverse()});for(r&&(s=o-Math.min(n,a)),o-=1;o>=s;){if(i[0][o]>i[1][o])return 1;if(i[0][o]===i[1][o]){if(o===s)return 0;o-=1}else if(i[0][o]{r[s]=o[s]})}return e}static getBrowserAlias(e){return ps[e]}static getBrowserTypeByAlias(e){return Zn[e]||""}},se=/version\/(\d+(\.?_?\d+)+)/i,hs=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},r=h.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},r=h.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},r=h.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},r=h.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},r=h.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},r=h.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},r=h.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},r=h.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=h.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},r=h.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},r=h.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},r=h.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},r=h.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},r=h.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},r=h.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},r=h.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},r=h.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},r=h.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},r=h.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},r=h.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},r=h.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},r=h.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},r=h.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},r=h.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},r=h.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},r=h.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},r=h.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test(e){let t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe(e){let t={name:"Android Browser"},r=h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},r=h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},r=h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,r=/^(.*)\/(.*)[ \t]\((.*)/,n=e.search("\\(")!==-1?r:t;return{name:h.getFirstMatch(n,e),version:h.getSecondMatch(n,e)}}}],fs=hs,bs=[{test:[/Roku\/DVP/],describe(e){let t=h.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Be.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=h.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Be.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=h.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=h.getWindowsVersionName(t);return{name:Be.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:Be.iOS},r=h.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe(e){let t=h.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=h.getMacOSVersionName(t),n={name:Be.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=h.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Be.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe(e){let t=h.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=h.getAndroidVersionName(t),n={name:Be.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=h.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:Be.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=h.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||h.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||h.getFirstMatch(/\bbb(\d+)/i,e);return{name:Be.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=h.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Be.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=h.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Be.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Be.Linux}}},{test:[/CrOS/],describe(){return{name:Be.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=h.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Be.PlayStation4,version:t}}}],ys=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=h.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:fe.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:fe.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:fe.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:fe.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:fe.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:fe.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:fe.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe(e){let t=h.getFirstMatch(/(ipod|iphone)/i,e);return{type:fe.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:fe.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:fe.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:fe.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:fe.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:fe.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:fe.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:fe.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:fe.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:fe.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:fe.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:fe.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:fe.tv}}}],ws=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:ot.Blink};let t=h.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:ot.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:ot.Trident},r=h.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:ot.Presto},r=h.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test(e){let t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe(e){let t={name:ot.Gecko},r=h.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:ot.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:ot.WebKit},r=h.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}],Ts=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=h.find(fs,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=h.find(bs,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=h.find(ys,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=h.find(ws,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return h.assign({},this.parsedResult)}satisfies(e){let t={},r=0,n={},a=0;if(Object.keys(e).forEach(o=>{let s=e[o];typeof s=="string"?(n[o]=s,a+=1):typeof s=="object"&&(t[o]=s,r+=1)}),r>0){let o=Object.keys(t),s=h.find(o,c=>this.isOS(c));if(s){let c=this.satisfies(t[s]);if(c!==void 0)return c}let i=h.find(o,c=>this.isPlatform(c));if(i){let c=this.satisfies(t[i]);if(c!==void 0)return c}}if(a>0){let o=Object.keys(n),s=h.find(o,i=>this.isBrowser(i,!0));if(s!==void 0)return this.compareVersion(n[s])}}isBrowser(e,t=!1){let r=this.getBrowserName().toLowerCase(),n=e.toLowerCase(),a=h.getBrowserTypeByAlias(n);return t&&a&&(n=a.toLowerCase()),n===r}compareVersion(e){let t=[0],r=e,n=!1,a=this.getBrowserVersion();if(typeof a=="string")return e[0]===">"||e[0]==="<"?(r=e.substr(1),e[1]==="="?(n=!0,r=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?r=e.substr(1):e[0]==="~"&&(n=!0,r=e.substr(1)),t.indexOf(h.compareVersions(a,r,n))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},Qn=Ts,xs=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new Qn(e,t)}static parse(e){return new Qn(e).getResult()}static get BROWSER_MAP(){return Zn}static get ENGINE_MAP(){return ot}static get OS_MAP(){return Be}static get PLATFORMS_MAP(){return fe}},tr=xs;var{entries:oa,setPrototypeOf:Jn,isFrozen:vs,getPrototypeOf:Ss,getOwnPropertyDescriptor:As}=Object,{freeze:Fe,seal:Ye,create:ks}=Object,{apply:zr,construct:Hr}=typeof Reflect<"u"&&Reflect;zr||(zr=function(e,t,r){return e.apply(t,r)});Fe||(Fe=function(e){return e});Ye||(Ye=function(e){return e});Hr||(Hr=function(e,t){return new e(...t)});var Cs=Ge(Array.prototype.forEach),Xn=Ge(Array.prototype.pop),Dt=Ge(Array.prototype.push),ar=Ge(String.prototype.toLowerCase),Fr=Ge(String.prototype.toString),Ps=Ge(String.prototype.match),$e=Ge(String.prototype.replace),_s=Ge(String.prototype.indexOf),Es=Ge(String.prototype.trim),We=Ge(RegExp.prototype.test),Ot=Ms(TypeError);function Ge(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a/gm),Os=Ye(/\${[\w\W]*}/gm),Ns=Ye(/^data-[\-\w.\u00B7-\uFFFF]/),Us=Ye(/^aria-[\-\w]+$/),ia=Ye(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Bs=Ye(/^(?:\w+script|data):/i),Fs=Ye(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),sa=Ye(/^html$/i),aa=Object.freeze({__proto__:null,MUSTACHE_EXPR:Is,ERB_EXPR:Ds,TMPLIT_EXPR:Os,DATA_ATTR:Ns,ARIA_ATTR:Us,IS_ALLOWED_URI:ia,IS_SCRIPT_OR_DATA:Bs,ATTR_WHITESPACE:Fs,DOCTYPE_NAME:sa}),js=()=>typeof window>"u"?null:window,qs=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null,n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(r=t.getAttribute(n));let a="dompurify"+(r?"#"+r:"");try{return e.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return null}};function la(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:js(),t=l=>la(l);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let r=e.document,n=r.currentScript,{document:a}=e,{DocumentFragment:o,HTMLTemplateElement:s,Node:i,Element:c,NodeFilter:d,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:_,trustedTypes:v}=e,P=c.prototype,ee=rr(P,"cloneNode"),Z=rr(P,"nextSibling"),m=rr(P,"childNodes"),ve=rr(P,"parentNode");if(typeof s=="function"){let l=a.createElement("template");l.content&&l.content.ownerDocument&&(a=l.content.ownerDocument)}let G,te="",{implementation:be,createNodeIterator:S,createDocumentFragment:y,getElementsByTagName:w}=a,{importNode:E}=r,I={};t.isSupported=typeof oa=="function"&&typeof ve=="function"&&be&&be.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:A,ERB_EXPR:q,TMPLIT_EXPR:L,DATA_ATTR:Y,ARIA_ATTR:K,IS_SCRIPT_OR_DATA:ye,ATTR_WHITESPACE:X}=aa,{IS_ALLOWED_URI:C}=aa,W=null,Ce=$({},[...ea,...jr,...qr,...Kr,...ta]),ae=null,p=$({},[...ra,...Wr,...na,...nr]),k=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),M=null,V=null,U=!0,ce=!0,we=!1,pe=!0,B=!1,z=!1,Q=!1,re=!1,R=!1,J=!1,ue=!1,ie=!0,N=!1,Se="user-content-",De=!0,me=!1,he={},Oe=null,ze=$({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Et=null,Ze=$({},["audio","video","img","source","image","track"]),lt=null,bt=$({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),_e="http://www.w3.org/1998/Math/MathML",Ve="http://www.w3.org/2000/svg",Ee="http://www.w3.org/1999/xhtml",qe=Ee,et=!1,tt=null,ct=$({},[_e,Ve,Ee],Fr),Ne,rt=["application/xhtml+xml","text/html"],de="text/html",oe,Ke=null,So=a.createElement("form"),pn=function(l){return l instanceof RegExp||l instanceof Function},Tr=function(l){if(!(Ke&&Ke===l)){if((!l||typeof l!="object")&&(l={}),l=Tt(l),Ne=rt.indexOf(l.PARSER_MEDIA_TYPE)===-1?Ne=de:Ne=l.PARSER_MEDIA_TYPE,oe=Ne==="application/xhtml+xml"?Fr:ar,W="ALLOWED_TAGS"in l?$({},l.ALLOWED_TAGS,oe):Ce,ae="ALLOWED_ATTR"in l?$({},l.ALLOWED_ATTR,oe):p,tt="ALLOWED_NAMESPACES"in l?$({},l.ALLOWED_NAMESPACES,Fr):ct,lt="ADD_URI_SAFE_ATTR"in l?$(Tt(bt),l.ADD_URI_SAFE_ATTR,oe):bt,Et="ADD_DATA_URI_TAGS"in l?$(Tt(Ze),l.ADD_DATA_URI_TAGS,oe):Ze,Oe="FORBID_CONTENTS"in l?$({},l.FORBID_CONTENTS,oe):ze,M="FORBID_TAGS"in l?$({},l.FORBID_TAGS,oe):{},V="FORBID_ATTR"in l?$({},l.FORBID_ATTR,oe):{},he="USE_PROFILES"in l?l.USE_PROFILES:!1,U=l.ALLOW_ARIA_ATTR!==!1,ce=l.ALLOW_DATA_ATTR!==!1,we=l.ALLOW_UNKNOWN_PROTOCOLS||!1,pe=l.ALLOW_SELF_CLOSE_IN_ATTR!==!1,B=l.SAFE_FOR_TEMPLATES||!1,z=l.WHOLE_DOCUMENT||!1,R=l.RETURN_DOM||!1,J=l.RETURN_DOM_FRAGMENT||!1,ue=l.RETURN_TRUSTED_TYPE||!1,re=l.FORCE_BODY||!1,ie=l.SANITIZE_DOM!==!1,N=l.SANITIZE_NAMED_PROPS||!1,De=l.KEEP_CONTENT!==!1,me=l.IN_PLACE||!1,C=l.ALLOWED_URI_REGEXP||ia,qe=l.NAMESPACE||Ee,k=l.CUSTOM_ELEMENT_HANDLING||{},l.CUSTOM_ELEMENT_HANDLING&&pn(l.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(k.tagNameCheck=l.CUSTOM_ELEMENT_HANDLING.tagNameCheck),l.CUSTOM_ELEMENT_HANDLING&&pn(l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(k.attributeNameCheck=l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),l.CUSTOM_ELEMENT_HANDLING&&typeof l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(k.allowCustomizedBuiltInElements=l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),B&&(ce=!1),J&&(R=!0),he&&(W=$({},[...ta]),ae=[],he.html===!0&&($(W,ea),$(ae,ra)),he.svg===!0&&($(W,jr),$(ae,Wr),$(ae,nr)),he.svgFilters===!0&&($(W,qr),$(ae,Wr),$(ae,nr)),he.mathMl===!0&&($(W,Kr),$(ae,na),$(ae,nr))),l.ADD_TAGS&&(W===Ce&&(W=Tt(W)),$(W,l.ADD_TAGS,oe)),l.ADD_ATTR&&(ae===p&&(ae=Tt(ae)),$(ae,l.ADD_ATTR,oe)),l.ADD_URI_SAFE_ATTR&&$(lt,l.ADD_URI_SAFE_ATTR,oe),l.FORBID_CONTENTS&&(Oe===ze&&(Oe=Tt(Oe)),$(Oe,l.FORBID_CONTENTS,oe)),De&&(W["#text"]=!0),z&&$(W,["html","head","body"]),W.table&&($(W,["tbody"]),delete M.tbody),l.TRUSTED_TYPES_POLICY){if(typeof l.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ot('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof l.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ot('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');G=l.TRUSTED_TYPES_POLICY,te=G.createHTML("")}else G===void 0&&(G=qs(v,n)),G!==null&&typeof te=="string"&&(te=G.createHTML(""));Fe&&Fe(l),Ke=l}},hn=$({},["mi","mo","mn","ms","mtext"]),fn=$({},["foreignobject","desc","title","annotation-xml"]),Ao=$({},["title","style","font","a","script"]),$t=$({},jr);$($t,qr),$($t,Ls);let xr=$({},Kr);$(xr,Rs);let ko=function(l){let x=ve(l);(!x||!x.tagName)&&(x={namespaceURI:qe,tagName:"template"});let b=ar(l.tagName),ne=ar(x.tagName);return tt[l.namespaceURI]?l.namespaceURI===Ve?x.namespaceURI===Ee?b==="svg":x.namespaceURI===_e?b==="svg"&&(ne==="annotation-xml"||hn[ne]):!!$t[b]:l.namespaceURI===_e?x.namespaceURI===Ee?b==="math":x.namespaceURI===Ve?b==="math"&&fn[ne]:!!xr[b]:l.namespaceURI===Ee?x.namespaceURI===Ve&&!fn[ne]||x.namespaceURI===_e&&!hn[ne]?!1:!xr[b]&&(Ao[b]||!$t[b]):!!(Ne==="application/xhtml+xml"&&tt[l.namespaceURI]):!1},yt=function(l){Dt(t.removed,{element:l});try{l.parentNode.removeChild(l)}catch{l.remove()}},vr=function(l,x){try{Dt(t.removed,{attribute:x.getAttributeNode(l),from:x})}catch{Dt(t.removed,{attribute:null,from:x})}if(x.removeAttribute(l),l==="is"&&!ae[l])if(R||J)try{yt(x)}catch{}else try{x.setAttribute(l,"")}catch{}},bn=function(l){let x,b;if(re)l=""+l;else{let Ue=Ps(l,/^[\r\n\t ]+/);b=Ue&&Ue[0]}Ne==="application/xhtml+xml"&&qe===Ee&&(l=''+l+"");let ne=G?G.createHTML(l):l;if(qe===Ee)try{x=new _().parseFromString(ne,Ne)}catch{}if(!x||!x.documentElement){x=be.createDocument(qe,"template",null);try{x.documentElement.innerHTML=et?te:ne}catch{}}let Ae=x.body||x.documentElement;return l&&b&&Ae.insertBefore(a.createTextNode(b),Ae.childNodes[0]||null),qe===Ee?w.call(x,z?"html":"body")[0]:z?x.documentElement:Ae},yn=function(l){return S.call(l.ownerDocument||l,l,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT,null,!1)},Co=function(l){return l instanceof f&&(typeof l.nodeName!="string"||typeof l.textContent!="string"||typeof l.removeChild!="function"||!(l.attributes instanceof u)||typeof l.removeAttribute!="function"||typeof l.setAttribute!="function"||typeof l.namespaceURI!="string"||typeof l.insertBefore!="function"||typeof l.hasChildNodes!="function")},Yt=function(l){return typeof i=="object"?l instanceof i:l&&typeof l=="object"&&typeof l.nodeType=="number"&&typeof l.nodeName=="string"},nt=function(l,x,b){I[l]&&Cs(I[l],ne=>{ne.call(t,x,b,Ke)})},wn=function(l){let x;if(nt("beforeSanitizeElements",l,null),Co(l))return yt(l),!0;let b=oe(l.nodeName);if(nt("uponSanitizeElement",l,{tagName:b,allowedTags:W}),l.hasChildNodes()&&!Yt(l.firstElementChild)&&(!Yt(l.content)||!Yt(l.content.firstElementChild))&&We(/<[/\w]/g,l.innerHTML)&&We(/<[/\w]/g,l.textContent))return yt(l),!0;if(!W[b]||M[b]){if(!M[b]&&xn(b)&&(k.tagNameCheck instanceof RegExp&&We(k.tagNameCheck,b)||k.tagNameCheck instanceof Function&&k.tagNameCheck(b)))return!1;if(De&&!Oe[b]){let ne=ve(l)||l.parentNode,Ae=m(l)||l.childNodes;if(Ae&&ne){let Ue=Ae.length;for(let je=Ue-1;je>=0;--je)ne.insertBefore(ee(Ae[je],!0),Z(l))}}return yt(l),!0}return l instanceof c&&!ko(l)||(b==="noscript"||b==="noembed")&&We(/<\/no(script|embed)/i,l.innerHTML)?(yt(l),!0):(B&&l.nodeType===3&&(x=l.textContent,x=$e(x,A," "),x=$e(x,q," "),x=$e(x,L," "),l.textContent!==x&&(Dt(t.removed,{element:l.cloneNode()}),l.textContent=x)),nt("afterSanitizeElements",l,null),!1)},Tn=function(l,x,b){if(ie&&(x==="id"||x==="name")&&(b in a||b in So))return!1;if(!(ce&&!V[x]&&We(Y,x))&&!(U&&We(K,x))){if(!ae[x]||V[x]){if(!(xn(l)&&(k.tagNameCheck instanceof RegExp&&We(k.tagNameCheck,l)||k.tagNameCheck instanceof Function&&k.tagNameCheck(l))&&(k.attributeNameCheck instanceof RegExp&&We(k.attributeNameCheck,x)||k.attributeNameCheck instanceof Function&&k.attributeNameCheck(x))||x==="is"&&k.allowCustomizedBuiltInElements&&(k.tagNameCheck instanceof RegExp&&We(k.tagNameCheck,b)||k.tagNameCheck instanceof Function&&k.tagNameCheck(b))))return!1}else if(!lt[x]&&!We(C,$e(b,X,""))&&!((x==="src"||x==="xlink:href"||x==="href")&&l!=="script"&&_s(b,"data:")===0&&Et[l])&&!(we&&!We(ye,$e(b,X,"")))&&b)return!1}return!0},xn=function(l){return l.indexOf("-")>0},vn=function(l){let x,b,ne,Ae;nt("beforeSanitizeAttributes",l,null);let{attributes:Ue}=l;if(!Ue)return;let je={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ae};for(Ae=Ue.length;Ae--;){x=Ue[Ae];let{name:ke,namespaceURI:wt}=x;if(b=ke==="value"?x.value:Es(x.value),ne=oe(ke),je.attrName=ne,je.attrValue=b,je.keepAttr=!0,je.forceKeepAttr=void 0,nt("uponSanitizeAttribute",l,je),b=je.attrValue,je.forceKeepAttr||(vr(ke,l),!je.keepAttr))continue;if(!pe&&We(/\/>/i,b)){vr(ke,l);continue}B&&(b=$e(b,A," "),b=$e(b,q," "),b=$e(b,L," "));let Sn=oe(l.nodeName);if(Tn(Sn,ne,b)){if(N&&(ne==="id"||ne==="name")&&(vr(ke,l),b=Se+b),G&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!wt)switch(v.getAttributeType(Sn,ne)){case"TrustedHTML":{b=G.createHTML(b);break}case"TrustedScriptURL":{b=G.createScriptURL(b);break}}try{wt?l.setAttributeNS(wt,ke,b):l.setAttribute(ke,b),Xn(t.removed)}catch{}}}nt("afterSanitizeAttributes",l,null)},Po=function l(x){let b,ne=yn(x);for(nt("beforeSanitizeShadowDOM",x,null);b=ne.nextNode();)nt("uponSanitizeShadowNode",b,null),!wn(b)&&(b.content instanceof o&&l(b.content),vn(b));nt("afterSanitizeShadowDOM",x,null)};return t.sanitize=function(l){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b,ne,Ae,Ue;if(et=!l,et&&(l=""),typeof l!="string"&&!Yt(l))if(typeof l.toString=="function"){if(l=l.toString(),typeof l!="string")throw Ot("dirty is not a string, aborting")}else throw Ot("toString is not a function");if(!t.isSupported)return l;if(Q||Tr(x),t.removed=[],typeof l=="string"&&(me=!1),me){if(l.nodeName){let wt=oe(l.nodeName);if(!W[wt]||M[wt])throw Ot("root node is forbidden and cannot be sanitized in-place")}}else if(l instanceof i)b=bn(""),ne=b.ownerDocument.importNode(l,!0),ne.nodeType===1&&ne.nodeName==="BODY"||ne.nodeName==="HTML"?b=ne:b.appendChild(ne);else{if(!R&&!B&&!z&&l.indexOf("<")===-1)return G&&ue?G.createHTML(l):l;if(b=bn(l),!b)return R?null:ue?te:""}b&&re&&yt(b.firstChild);let je=yn(me?l:b);for(;Ae=je.nextNode();)wn(Ae)||(Ae.content instanceof o&&Po(Ae.content),vn(Ae));if(me)return l;if(R){if(J)for(Ue=y.call(b.ownerDocument);b.firstChild;)Ue.appendChild(b.firstChild);else Ue=b;return(ae.shadowroot||ae.shadowrootmod)&&(Ue=E.call(r,Ue,!0)),Ue}let ke=z?b.outerHTML:b.innerHTML;return z&&W["!doctype"]&&b.ownerDocument&&b.ownerDocument.doctype&&b.ownerDocument.doctype.name&&We(sa,b.ownerDocument.doctype.name)&&(ke=" -`+ke),B&&(ke=$e(ke,A," "),ke=$e(ke,q," "),ke=$e(ke,L," ")),G&&ue?G.createHTML(ke):ke},t.setConfig=function(l){Tr(l),Q=!0},t.clearConfig=function(){Ke=null,Q=!1},t.isValidAttribute=function(l,x,b){Ke||Tr({});let ne=oe(l),Ae=oe(x);return Tn(ne,Ae,b)},t.addHook=function(l,x){typeof x=="function"&&(I[l]=I[l]||[],Dt(I[l],x))},t.removeHook=function(l){if(I[l])return Xn(I[l])},t.removeHooks=function(l){I[l]&&(I[l]=[])},t.removeAllHooks=function(){I={}},t}var ca=la();var Ru=Jt.alert;function ge(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():T}var H=ge();function xt(){return H.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function Nt(){return H.PROD==="1"}function Ut(){return H.PROD_API==="1"}function Qe(){if(H.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function ua(){return typeof Deno<"u"}var Gu=ge().PROD==="1",Vu=ge().PROD!=="1";function da(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}function Gr(){if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let e=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(e&&(e._isUserscript||e._isSafari))}else return!1}var ma={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",curentPlan:"\u5F53\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52A8\u7EED\u671F",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",sponsorLabel:"$1 \u8D77\u8D5E\u52A9\u5F00\u53D1\u8005",help:"\u5E2E\u52A9",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D\uFF0C\u518D\u70B9\u51FB\u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D\u5373\u53EF\u8BBE\u7F6E",browserShortcutsNoteForChrome:"\u7C7BChrome \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762\uFF0C\u5728`\u7BA1\u7406\u5FEB\u6377\u952E`\u9762\u677F(`chrome://extensions/shortcuts`)\u8BBE\u7F6E\uFF0C\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8DF3\u8F6C\u5230\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E\u683C\u5F0F\u4E3A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1: \u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1 & PDF\u6587\u6863\u7FFB\u8BD1","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7F51\u9875\u53CC\u8BED\u7FFB\u8BD1\u6269\u5C55\uFF0C\u540C\u65F6\u652F\u6301 PDF \u7FFB\u8BD1\uFF0C\u53CC\u8BED Epub \u7535\u5B50\u4E66\u5236\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u817E\u8BAF\u7FFB\u8BD1\u7B49\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\uFF0C\u514D\u8D39\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8BD1\u5E76\u9690\u85CF\u539F\u6587/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.toggleTranslationMask":"\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.donateContext":"\u4E86\u89E3\u8D5E\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5219\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875(\u4EC5\u8BD1\u6587)/\u663E\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7","fingers.0":"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478",mouseHoldKey:"+ {key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoverHoldKey:"\u9F20\u6807\u60AC\u505C\u540C\u65F6\u6309\u4E0B\u5FEB\u6377\u952E\u7FFB\u8BD1\u6BB5\u843D","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u6587\u6863",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",goAdvancedSettings:"\u53BB\u8FDB\u9636\u8BBE\u7F6E\u9875",goAdvancedInterfaceSettings:"\u53BB\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u8BBE\u7F6E\u9875\u9762",advanced:"\u8FDB\u9636\u8BBE\u7F6E",advancedDescription:"\u4E00\u822C\u65E0\u9700\u8BBE\u7F6E\uFF0C\u4FDD\u6301\u9ED8\u8BA4\u5373\u53EF\u3002\u4EC5\u5BF9\u4E8E\u66F4\u4E13\u4E1A\u7684\u7528\u6237\uFF0C\u63D0\u4F9B\u66F4\u4E2A\u6027\u5316\u7684\u8BBE\u7F6E\u9879\u3002",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00","display both the original text and the translation":"\u540C\u65F6\u663E\u793A\u539F\u6587\u548C\u8BD1\u6587","keyboard shortcuts":"\u952E\u76D8\u5FEB\u6377\u952E",modify:"\u4FEE\u6539\u5FEB\u6377\u952E",reset:"\u91CD\u7F6E",close:"\u5173\u95ED",homepage:"\u4E3B\u9875",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",changeToOnlyTranslationMode:"\u5207\u6362\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u5207\u6362\u4E3A\u53CC\u8BED\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",unknownError:"\u672A\u77E5\u9519\u8BEF",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",needActionForOptions:"(\u9700\u8BBE\u7F6E)",translationEngine:"\u5F15\u64CE\u9009\u9879",sourceLanguage:"\u539F\u6587\u8BED\u8A00",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",forThisSite:"\u5F53\u524D\u7F51\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1 {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8BD1 {language}",alwaysTranslateSomeSite:"\u603B\u662F\u7FFB\u8BD1 {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8BD1 {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u6DFB\u52A0",default:"\u9ED8\u8BA4",forThisLanguage:"\u9488\u5BF9\u8BE5\u8BED\u8A00\uFF1A","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91","translate other languages into specific language":"\u5C06\u5176\u4ED6\u8BED\u8A00\u7FFB\u8BD1\u4E3A\u4F60\u8BBE\u7F6E\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1",language:"\u8BED\u8A00","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",Error:"\u9519\u8BEF",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",interface:"\u754C\u9762\u8BBE\u7F6E",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8BD1\u9875\u9762\u6807\u9898","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1",enableUserscriptPagePopup:"\u5728\u9875\u9762\u4E0A\u663E\u793A\u60AC\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528\u5FEB\u6377\u952E/{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8BD1\u6587\u6837\u5F0F",currentUrl:"\u5F53\u524D\u7F51\u5740",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664","languages.auto":"\u81EA\u52A8\u68C0\u6D4B",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",upload:"\u4E0A\u4F20",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",download:"\u4E0B\u8F7D",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",deleteFail:"\u5220\u9664\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",backupToCloudDescription:"\u624B\u52A8\u4E0A\u4F20\u6216\u6062\u590D\u5907\u4EFD\u6587\u4EF6\uFF0C\u6700\u591A\u5141\u8BB83\u4E2A\u4E0D\u540C\u7684\u5907\u4EFD",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",updatedAt:"\u66F4\u65B0\u4E8E {date}",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u9891\u9053",joinTelegramChannel:"\u5173\u6CE8 Telegram \u9891\u9053\u83B7\u53D6\u6700\u65B0\u66F4\u65B0",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",autoSync:"\u81EA\u52A8\u5B9A\u65F6\u540C\u6B65",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863","edit border color":"\u4FEE\u6539\u8FB9\u6846\u989C\u8272",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",enableSubtitle:"\u5F00\u542F\u5B57\u5E55\u7FFB\u8BD1",enableSubtitleDescription:"\u9488\u5BF9 youtube \u7B49\u7F51\u7AD9\u7684\u5B57\u5E55\u533A\u57DF\u5F00\u542F\u7FFB\u8BD1",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",enableSearchEnhancement:"\u542F\u7528\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A",enableSearchEnhancementDescription:"\u5F00\u542F\u540E\uFF0C\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\u793E\u533A\uFF09\u53F3\u8FB9\u680F\u81EA\u52A8\u663E\u793A\u5BF9\u5E94\u82F1\u6587\u5173\u952E\u8BCD\u7684\u201C\u8C37\u6B4C\u65B0\u95FB\u201D\u641C\u7D22\u7ED3\u679C\u3002",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerMinute":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u5206\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u8350\uFF09, \u5C06\u4F1A\u5728\u5355\u72EC\u4F5C\u4E3A\u4E00\u6BB5\u53D1\u9001\u7ED9 OpenAI","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740",enabledExtension:"\u542F\u7528\u6269\u5C55",clickToDisableExtension:"\u70B9\u51FB\u7981\u7528\u6269\u5C55",clickToEnableExtension:"\u70B9\u51FB\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",modifyMouseHoverKey:"\u4FEE\u6539\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u8BBE\u7F6E",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",disableTint:"* \u4F60\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u542F\u7528\u3002",searchEnhancementNotes:"\u6211\u4EEC\u53D1\u73B0\uFF0C\u4E2D\u6587\u5173\u952E\u8BCD\u548C\u82F1\u6587\u5173\u952E\u8BCD\u7684\u65B0\u95FB\u7ED3\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u542F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u529F\u80FD\u540E\uFF0C\u6211\u4EEC\u4F1A\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\u7F51\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52A8\u7528\u82F1\u6587\u4E3A\u4F60\u641C\u7D22\u540C\u6837\u7684\u5173\u952E\u8BCD\u5E76\u5C55\u793A\u5728\u53F3\u4FA7\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8BE5\u529F\u80FD\u7684\u8BDD\uFF0C\u53EF\u4EE5\u9009\u62E9\u7981\u7528\u5B83\u3002",option:"\u8BBE\u7F6E",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",needLoginAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u81EA\u5B9A\u4E49)",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",onetime_7day:"7 \u5929\u4F53\u9A8C\u5305",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradePlan:"\u70B9\u6B64\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL \u548C OpenAI \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8BD1",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u8BBE\u7F6E\u5176\u4ED6\u5FEB\u6377\u952E\u6765\u89E6\u53D1\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1"};var ga={nologin:"\u672A\u767B\u9304",login:"\u767B\u9304",manageAccount:"\u7BA1\u7406\u8CEC\u6236",logout:"\u9000\u51FA",curentPlan:"\u7576\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u671F",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u64CA\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u8AAA\u660E",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u9644\u52A0\u5143\u4EF6\u7BA1\u7406\u9801\u9762 \u300Cabout:addons\u300D\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u5716\u793A\u300D\uFF0C\u518D\u9EDE\u9078\u300C\u7BA1\u7406\u64F4\u5145\u5957\u4EF6\u5FEB\u901F\u9375\u300D\u5373\u53EF\u8A2D\u5B9A",browserShortcutsNoteForChrome:"Chromium \u6838\u5FC3\u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u64F4\u5145\u529F\u80FD\u7BA1\u7406\u9801\u9762\uFF0C\u5728\u300C\u9375\u76E4\u5FEB\u901F\u9375\u300D\u9801\u9762(chrome://extensions/shortcuts)\u8A2D\u5B9A\uFF0C\u9EDE\u9078\u4E0B\u65B9\u6309\u9215\u524D\u5F80\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u901F\u9375\u683C\u5F0F\u70BA\uFF1A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F: \u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F & PDF\u6587\u6A94\u7FFB\u8B6F","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7DB2\u9801\u96D9\u8A9E\u7FFB\u8B6F\u64F4\u5C55\uFF0C\u540C\u6642\u652F\u6301 PDF \u7FFB\u8B6F\uFF0C\u96D9\u8A9E Epub \u96FB\u5B50\u66F8\u88FD\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u9A30\u8A0A\u7FFB\u8B6F\u7B49\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF0C\u514D\u8CBB\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8B6F\u4E26\u96B1\u85CF\u539F\u6587/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.toggleTranslationMask":"\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.donateContext":"\u4E86\u89E3\u8D0A\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u5247\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u6642\u89F8\u78B0\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801(\u50C5\u8B6F\u6587)/\u986F\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304","fingers.0":"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478",mouseHoldKey:"+ {key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u6377\u9375(\u6253\u958B\u8A2D\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoverHoldKey:"\u9F20\u6A19\u6ED1\u904E\u540C\u6642\u6309\u4E0B X \u9375\u7FFB\u8B6F\u6BB5\u843D","mouse-translate":"\u9F20\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",goAdvancedSettings:"\u524D\u5F80\u9032\u968E\u8A2D\u5B9A\u9801\u9762",goAdvancedInterfaceSettings:"\u524D\u5F80\u81EA\u8A02\u8A2D\u5B9A\u9801\u9762",advanced:"\u9032\u968E\u8A2D\u5B9A",advancedDescription:"\u6B63\u5E38\u60C5\u6CC1\u7121\u9700\u8A2D\u5B9A\uFF0C\u4FDD\u6301\u9810\u8A2D\u5373\u53EF\u3002\u50C5\u91DD\u5C0D\u66F4\u5C08\u696D\u7684\u4F7F\u7528\u8005\uFF0C\u63D0\u4F9B\u66F4\u500B\u4EBA\u5316\u7684\u8A2D\u5B9A\u9805\u76EE\u3002",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00","display both the original text and the translation":"\u540C\u6642\u986F\u793A\u539F\u6587\u548C\u8B6F\u6587","keyboard shortcuts":"\u9375\u76E4\u5FEB\u901F\u9375",modify:"\u8B8A\u66F4\u5FEB\u901F\u9375",reset:"\u91CD\u8A2D",close:"\u95DC\u9589",homepage:"\u9996\u9801",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",changeToOnlyTranslationMode:"\u5207\u63DB\u70BA\u50C5\u986F\u793A\u8B6F\u6587",changeToDualTranslationMode:"\u5207\u63DB\u70BA\u96D9\u8A9E\u7FFB\u8B6F",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:"\u672A\u77E5\u7684\u932F\u8AA4",canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u9078\u9805",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",needActionForOptions:"(\u9700\u8A2D\u5B9A)",translationEngine:"\u5F15\u64CE\u9078\u9805",sourceLanguage:"\u539F\u6587\u8A9E\u8A00",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",forThisSite:"\u7576\u524D\u7DB2\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8B6F {language}",alwaysTranslateSomeSite:"\u7E3D\u662F\u7FFB\u8B6F {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8B6F {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u65B0\u589E",default:"\u9810\u8A2D",forThisLanguage:"\u91DD\u5C0D\u8A72\u8A9E\u8A00\uFF1A","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F","translate other languages into specific language":"\u5C07\u5176\u5B83\u8A9E\u8A00\u7FFB\u8B6F\u70BA\u4F60\u8A2D\u5B9A\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9",language:"\u8A9E\u8A00","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",Error:"\u932F\u8AA4",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",interface:"\u4ECB\u9762\u8A2D\u5B9A",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65",syncToAccount:"\u540C\u6B65\u5230\u8CEC\u6236",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u8CEC\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u8A2D\u5099\u4E4B\u9593\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u8CEC\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u8CEC\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8B6F","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9E\u99AC\u905C\u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8B6F\u9801\u9762\u6A19\u984C","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F",enableUserscriptPagePopup:"\u5728\u9801\u9762\u4E0A\u986F\u793A\u61F8\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528\u5FEB\u901F\u9375/{touch}\u518D\u6B21\u986F\u793A\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5EFA\u8B70\u5C07\u672C\u8A2D\u5B9A\u9801\u9762\u52A0\u5165\u81F3\u6211\u7684\u6700\u611B","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8B6F\u6587\u6A23\u5F0F",currentUrl:"\u76EE\u524D\u7DB2\u5740",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6E96\u3002",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",upload:"\u4E0A\u50B3",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",download:"\u4E0B\u8F09",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",deleteFail:"\u522A\u9664\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",backupToCloudDescription:"\u624B\u52D5\u4E0A\u50B3\u6216\u9084\u539F\u5099\u4EFD\u6A94\u6848\uFF0C\u6700\u591A\u5141\u8A31 3 \u500B\u4E0D\u540C\u7684\u5099\u4EFD",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",updatedAt:"\u66F4\u65B0\u65BC {date}",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u4EEC\u7684<3>Twitter\uFF0C<4>Telegram \u983B\u9053\u4EE5\u53CA\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u90F5\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u983B\u9053",joinTelegramChannel:"\u95DC\u6CE8 Telegram \u983B\u9053\u77AD\u89E3\u66F4\u65B0\u8CC7\u8A0A",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",autoSync:"\u81EA\u52D5\u5B9A\u6642\u540C\u6B65",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6","edit border color":"\u8B8A\u66F4\u908A\u6846\u8272\u5F69",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",enableSubtitle:"\u958B\u555F\u5B57\u5E55\u7FFB\u8B6F",enableSubtitleDescription:"\u91DD\u5C0D youtube \u7B49\u7DB2\u7AD9\u7684\u5B57\u5E55\u5340\u57DF\u958B\u555F\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",enableSearchEnhancement:"\u958B\u555F\u641C\u7D22\u589E\u5F37",enableSearchEnhancementDescription:"\u4E2D\u6587\u641C\u7D22\u8C37\u6B4C\u6703\u5728\u53F3\u908A\u51FA\u73FE\u82F1\u6587\u7248\u8C37\u6B4C\u65B0\u805E",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerMinute":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u5206\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u4EFD\u50B3\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u85A6\uFF09, \u5C07\u6703\u5728\u55AE\u7368\u4F5C\u70BA\u4E00\u6BB5\u767C\u9001\u7D66 OpenAI","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u50B3\u9001\u767C\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",clickToDisableExtension:"\u9EDE\u9078\u505C\u7528\u5957\u4EF6",clickToEnableExtension:"\u9EDE\u9078\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u9F20\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u7F6E\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u5B57\u7B26\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8B58\u5225\u70BA\u89F8\u767C\u5B57\u7B26\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u7981\u7528\u78BA\u8A8D",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",disableTint:"* \u60A8\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u555F\u7528\u3002",searchEnhancementNotes:"\u6211\u5011\u767C\u73FE\uFF0C\u4E2D\u6587\u95DC\u9375\u8A5E\u548C\u82F1\u6587\u95DC\u9375\u8A5E\u7684\u65B0\u805E\u7D50\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u555F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u4FE1\u606F\u589E\u5F37\u529F\u80FD\u5F8C\uFF0C\u6211\u5011\u6703\u5728\u652F\u6301\u7684\u7DB2\u7AD9\uFF08\u8C37\u6B4C\u65B0\u805E\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u95DC\u9375\u8A5E\uFF09\uFF0C\u96EA\u7403\uFF0C\u6771\u65B9\u8CA1\u5BCC\u7DB2\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52D5\u7528\u82F1\u6587\u70BA\u4F60\u641C\u7D22\u540C\u6A23\u7684\u95DC\u9375\u8A5E\u4E26\u5C55\u793A\u5728\u53F3\u5074\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8A72\u529F\u80FD\u7684\u8A71\uFF0C\u53EF\u4EE5\u9078\u64C7\u7981\u7528\u5B83\u3002",option:"\u9078\u9805",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL \u548C OpenAI \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8B6F",currentAccount:"\u7576\u524D\u8CEC\u6236"};var pa={nologin:"Not logged in",login:"Login",manageAccount:"Manage Account",logout:"Logout",curentPlan:"Current Plan",endAt:"Expires",endAuto:"Auto Renew",lineBreakMaxTextCount:"Maximum number of characters allowed per sentence after line break","translate-pdf":"Click to translate PDF","noSupportTranslate-pdf":"The script is not supported, please use a plugin.","translate-firefox-local-pdf":"Click to upload PDF",enableLineBreak:"Whether to turn on automatic line wrapping for long paragraphs",sponsorLabel:"Sponsoring developers from $1 (monthly or one-time)",help:"Help",browserShortcutsNoteForFirefox:`To modify the shortcut key in Firefox browser, you need to open the extension management page 'about: addons', then click "Settings", and then click "Management shortcut key" to set it`,browserShortcutsNoteForChrome:"To modify the shortcut key in Chrome browser, you need to open the extension management page` chrome://extensions/shortcuts `) Settings, click the button below to jump to the shortcut key management page.",browserShortcutsSucks:"Please enter the shortcut key manually in the format:",enableLineBreakDescription:"After opening, a line break will be inserted at the end of each sentence in a long paragraph for easy reading","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate: Web Page&PDF Translation","browser.brandDescription":"Bilingual web page translation, also supports PDF translation, bilingual Epub eBook translation, free to use.","browser.toggleTranslatePage":"Toggle Translate Page","browser.toggleTranslateTheWholePage":"Toggle Translate the Whole Page","browser.toggleOnlyTransation":"Toggle Translate and Hide Original Text","browser.toggleTranslateToThePageEndImmediately":"Toggle Translate to the Bottom of the Page Immediately","browser.toggleTranslateTheMainPage":"Toggle Translate the Main Page","browser.openOptionsPage":"Open Settings Page","browser.toggleTranslationMask":"Toggle translation mask style","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-book","browser.openEbookBuilder":"Make Dual EPUB ebook","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.donateContext":"Sponsor Benefits","browser.translateLocalSubtitleFile":"Translate Subtitle File",confirmResetConfig:"Are you sure you want to reset the settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Create right button menu",toggleBeta:"Enable Beta experimental features",betaDescription:"Enable features that are still experimental, and translation services that are in testing. Join the <1>Telegram group to learn more.",translationLineBreakSettingDescription:"The always line break feature is suitable for layouts with less content, making the layout more neat and tidy. (Use smart line breaks for long paragraphs with more content (more than {count} characters) for saving space)",tempTranslateDomainTitle:"Open the translation time temporarily",tempTranslateDomainDescription:"When a page is translated manually, turn it temporarily on as automatic translation",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",toggleTranslatePageWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide translation display",toggleTranslationMaskWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide the blur effect of the translation",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"Multi-finger touch to show/hide only translation display",addUrlDescription:"The domain name is available and wildcard is supported e.g.: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import configuration from file",export:"Export to file",toggleDebug:"Print debug logs on the console","fingers.0":"Close","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch",mouseHoldKey:"+ {key} translate this paragraph",mouseHoldKeyAuto:"Translate the paragraph directly",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate this paragraph",mouseHoverHoldKey:"Mouse over and press X key to translate paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"All settings reset successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",goAdvancedSettings:"Go to Advanced Settings Page",goAdvancedInterfaceSettings:"Go to Advanced Custom Settings Page",advanced:"Advanced",advancedDescription:"Normally no settings are needed, keep the default. More personalized settings are provided for professional users only.",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"Translate to the bottom of the page immediately after opening the page?",feedback:"Feedback",toggleTranslatePage:"Toggle Translate",translateToThePageEndImmediatelyDescription:"Enabled will translate from the top to the bottom of the page immediately after opening. Disable will translate while reading. (Not recommended to enable)","translate all areas of the page":"Whether to translate all areas of the web page",translationAreaDescription:"When enabled, all areas of the entire web page will be translated. Disabled will use the default smart recognition and translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Directly translate the number of characters in front of the page without waiting to scroll to the visible area","interface language":"Interface language","display both the original text and the translation":"Display both the original text and the translation","keyboard shortcuts":"Keyboard shortcuts",modify:"Edit",reset:"Reset",close:"Close",homepage:"Home Page",more:"More",moreOptions:"Expand more custom settings",translateTheWholePage:"Translate the whole page area",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Dual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"Main areas of intelligent translation","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly implement the interface of the Greasemonkey extension, please use another browser that <1>supports the Greasemonkey extension such as (Firefox Nightly version)",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:"Unknown Error",canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha enabled successfully",disableAlphaSuccess:"Alpha has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(to set up)",goSettings:"to set up",needActionForOptions:"(need to set)",translationEngine:"Engine Options",sourceLanguage:"Original language",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",forThisSite:"Site:",alwaysTranslateSomeLanguage:"Always translate {language}",neverTranslateSomeLanguage:"Never translate {language}",alwaysTranslateSomeSite:"Always translate {hostname}",neverTranslateSomeSite:"Never translate {hostname}",alwaysTranslateSomeSiteOrWildSite:"Always translate this site",alwaysTranslateSomePage:"Always translate this page",add:"Add",default:"Default",forThisLanguage:"For This Language:","add url":"Add URL",edit:"Edit","translate other languages into specific language":"Translate other languages into the language you set","select translation service":"Select a translation service",language:"Language","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",Error:"Error",allowCacheTranslations:"Enable local translation caching (reduce translation requests for duplicate paragraphs)","translation display":"Translation display style","select diplay style":"Please refer to the following examples",interface:"Interface Settings",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dashed underline","translationTheme.dotted":"Dotted Underline","translationTheme.dashedBorder":"Dashed Border","translationTheme.solidBorder":"Dashed Border","translationTheme.underline":"Straight underline","translationTheme.mask":"Blur effect","translationTheme.opacity":"Opacity effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weakening","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dashed underline","translationTheme.nativeDashed":"System Dash Underline","translationTheme.nativeDotted":"System Dotted Underline","translationTheme.nativeUnderline":"System Straight Line Underline","translationTheme.wavy":"Squiggle","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeeplX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"Translate page title","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped",enableUserscriptPagePopup:"Always show Popup windows on the page",enableUserscriptPagePopupDescription:"Three-finger touch to show the Popup.","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",currentUrl:"Current URL",confirm:"Save",cancel:"Cancel",delete:"Delete","languages.auto":"Detect Language",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",authFail:"Authorization Failed",syncTitle:"Please select a file operation",import_hint:"Import",upload:"Upload",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",download:"Download",importSuccess:"Upload Success",importFail:"Import Failed",deleteFail:"Delete Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",backupToCloudDescription:"Upload or restore backup files manually, up to 3 different backups",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",updatedAt:"Updated at {date}",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. You can choose to subscribe to <6>Pro membership to use the out-of-the-box DeepL and OpenAI translation.

You can also follow out <3>Twitter, <4>Telegram Channel, and <5>Email Subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free and we hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. ",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",qqCommunities:"QQ Channel",joinTelegramChannel:"Subscribe to our Telegram channel to get the latest updates",feedbackAndJoin:"Feedback",autoSync:"Auto-Time Sync",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization","edit border color":"Edit border color",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",enableSubtitle:"enableSubtitleTranslation",enableSubtitleDescription:"Enable translations for subtitle areas on sites like youtube",isTranslateTitleDescription:"When enabled, the page title will be translated",enableSearchEnhancement:"Enable Search Enhancement",enableSearchEnhancementDescription:'After enabling, the right sidebar will automatically display "Google News" search results for corresponding English keywords on supported websites (such as Google News, Google Search (partial keywords), Xueqiu, East Money, Futu, Tiger Community).',verifyService:"Verify service",verified:"Successful","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerMinute":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next minute. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"Requests exceed this limit will be queued until the next seconds.","description.prompt":"Send as a user to OpenAI conversation, where {{text}} indicates the text of the paragraph,{{from}} indicates the language of the paragraph,{{to}} indicates the target language, you can omit {{text}}, if so, it'll be sent as a separated message","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"Send the conversation to OpenAI as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the original language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"Default is\uFF1Ageneral. Only set up if there is an API console open domain translation, support fields see <1>Here ","field.scene":"Scene","description.scene":"Default is\uFF1Ageneral. Only set up if there is an API console open Machine Translation Professional, support fields see<1>Here","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please provide a URL with the specific path.",enabledExtension:"Enable extensions",clickToDisableExtension:"Click to disable extension",clickToEnableExtension:"Click to enable the extension",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter customization content",inputOptions:"Writing",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter for translating part of the input box.",inputStartingTriggerKeyDescription:"When you don't need to translate the entire input box, the delimiter allows you to only translate the portion from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means only translating the portion from {startingKey}ja to the end of the input box.",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting is no prefix required, the partial text translation function of the input box cannot be used temporarily.",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Start the translation by quickly pressing 3 times {trailingKey}.",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time (milliseconds) for the input to end the combo trigger",spaceKey:"",noneKey:"Translate the entire text box without prefixes",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement in the following URL",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",clickToSeeQuickDemo:"Click to expand the 30s tutorial video",inputHelperInfo:`Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001". +`,PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",OPTIONS_URL:"https://dash.immersivetranslate.com/",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",MOCK:"0",DEBUG:"0",INSTALL_FROM:"firefox_zip"};var Lo=Object.create,kr=Object.defineProperty,Ro=Object.getOwnPropertyDescriptor,Cn=Object.getOwnPropertyNames,Io=Object.getPrototypeOf,Do=Object.prototype.hasOwnProperty,Oo=(e,t)=>function(){return t||(0,e[Cn(e)[0]])((t={exports:{}}).exports,t),t.exports},No=(e,t)=>{for(var r in t)kr(e,r,{get:t[r],enumerable:!0})},Ar=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Cn(t))!Do.call(e,a)&&a!==r&&kr(e,a,{get:()=>t[a],enumerable:!(n=Ro(t,a))||n.enumerable});return e},Uo=(e,t,r)=>(Ar(e,t,"default"),r&&Ar(r,t,"default")),Pn=(e,t,r)=>(r=e!=null?Lo(Io(e)):{},Ar(t||!e||!e.__esModule?kr(r,"default",{value:e,enumerable:!0}):r,e)),_n=Oo({"../esmd/npm/webextension-polyfill@0.10.0/node_modules/webextension-polyfill/dist/browser-polyfill.js"(e,t){(function(r,n){if(typeof define=="function"&&define.amd)define("webextension-polyfill",["module"],n);else if(typeof e<"u")n(t);else{var a={exports:{}};n(a),r.browser=a.exports}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:e,function(r){"use strict";if(!globalThis.chrome?.runtime?.id)throw new Error("This script should only be loaded in a browser extension.");if(typeof globalThis.browser>"u"||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){let n="The message port closed before a response was received.",a=o=>{let s={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(Object.keys(s).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class i extends WeakMap{constructor(y,w=void 0){super(w),this.createItem=y}get(y){return this.has(y)||this.set(y,this.createItem(y)),super.get(y)}}let c=S=>S&&typeof S=="object"&&typeof S.then=="function",d=(S,y)=>(...w)=>{o.runtime.lastError?S.reject(new Error(o.runtime.lastError.message)):y.singleCallbackArg||w.length<=1&&y.singleCallbackArg!==!1?S.resolve(w[0]):S.resolve(w)},u=S=>S==1?"argument":"arguments",f=(S,y)=>function(E,...I){if(I.lengthy.maxArgs)throw new Error(`Expected at most ${y.maxArgs} ${u(y.maxArgs)} for ${S}(), got ${I.length}`);return new Promise((A,q)=>{if(y.fallbackToNoCallback)try{E[S](...I,d({resolve:A,reject:q},y))}catch{E[S](...I),y.fallbackToNoCallback=!1,y.noCallback=!0,A()}else y.noCallback?(E[S](...I),A()):E[S](...I,d({resolve:A,reject:q},y))})},_=(S,y,w)=>new Proxy(y,{apply(E,I,A){return w.call(I,S,...A)}}),v=Function.call.bind(Object.prototype.hasOwnProperty),P=(S,y={},w={})=>{let E=Object.create(null),I={has(q,L){return L in S||L in E},get(q,L,Y){if(L in E)return E[L];if(!(L in S))return;let K=S[L];if(typeof K=="function")if(typeof y[L]=="function")K=_(S,S[L],y[L]);else if(v(w,L)){let ye=f(L,w[L]);K=_(S,S[L],ye)}else K=K.bind(S);else if(typeof K=="object"&&K!==null&&(v(y,L)||v(w,L)))K=P(K,y[L],w[L]);else if(v(w,"*"))K=P(K,y[L],w["*"]);else return Object.defineProperty(E,L,{configurable:!0,enumerable:!0,get(){return S[L]},set(ye){S[L]=ye}}),K;return E[L]=K,K},set(q,L,Y,K){return L in E?E[L]=Y:S[L]=Y,!0},defineProperty(q,L,Y){return Reflect.defineProperty(E,L,Y)},deleteProperty(q,L){return Reflect.deleteProperty(E,L)}},A=Object.create(S);return new Proxy(A,I)},ee=S=>({addListener(y,w,...E){y.addListener(S.get(w),...E)},hasListener(y,w){return y.hasListener(S.get(w))},removeListener(y,w){y.removeListener(S.get(w))}}),Z=new i(S=>typeof S!="function"?S:function(w){let E=P(w,{},{getContent:{minArgs:0,maxArgs:0}});S(E)}),m=new i(S=>typeof S!="function"?S:function(w,E,I){let A=!1,q,L=new Promise(X=>{q=function(C){A=!0,X(C)}}),Y;try{Y=S(w,E,q)}catch(X){Y=Promise.reject(X)}let K=Y!==!0&&c(Y);if(Y!==!0&&!K&&!A)return!1;let ye=X=>{X.then(C=>{I(C)},C=>{let W;C&&(C instanceof Error||typeof C.message=="string")?W=C.message:W="An unexpected error occurred",I({__mozWebExtensionPolyfillReject__:!0,message:W})}).catch(C=>{})};return ye(K?Y:L),!0}),ve=({reject:S,resolve:y},w)=>{o.runtime.lastError?o.runtime.lastError.message===n?y():S(new Error(o.runtime.lastError.message)):w&&w.__mozWebExtensionPolyfillReject__?S(new Error(w.message)):y(w)},G=(S,y,w,...E)=>{if(E.lengthy.maxArgs)throw new Error(`Expected at most ${y.maxArgs} ${u(y.maxArgs)} for ${S}(), got ${E.length}`);return new Promise((I,A)=>{let q=ve.bind(null,{resolve:I,reject:A});E.push(q),w.sendMessage(...E)})},te={devtools:{network:{onRequestFinished:ee(Z)}},runtime:{onMessage:ee(m),onMessageExternal:ee(m),sendMessage:G.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:G.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},be={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return s.privacy={network:{"*":be},services:{"*":be},websites:{"*":be}},P(o,te,s)};r.exports=a(chrome)}else r.exports=globalThis.browser})}}),En={};No(En,{default:()=>Qt});var Bo=Pn(_n());Uo(En,Pn(_n()));var{default:kn,...Fo}=Bo,Qt=kn!==void 0?kn:Fo;globalThis.immersiveTranslateBrowserAPI=Qt;function Mt(){let e,t="pending",r=new Promise((n,a)=>{e={async resolve(o){await o,t="fulfilled",n(o)},reject(o){t="rejected",a(o)}}});return Object.defineProperty(r,"state",{get:()=>t}),Object.assign(r,e)}function Cr(e,t={}){let{signal:r,persistent:n}=t;return r?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((a,o)=>{let s=()=>{clearTimeout(c),o(new DOMException("Delay was aborted.","AbortError"))},c=setTimeout(()=>{r?.removeEventListener("abort",s),a()},e);if(r?.addEventListener("abort",s,{once:!0}),n===!1)try{Deno.unrefTimer(c)}catch(d){if(!(d instanceof ReferenceError))throw d}})}var Mn=class{#e=0;#t=[];#r=[];#n=Mt();add(t){++this.#e,this.#a(t[Symbol.asyncIterator]())}async#a(t){try{let{value:r,done:n}=await t.next();n?--this.#e:this.#t.push({iterator:t,value:r})}catch(r){this.#r.push(r)}this.#n.resolve()}async*iterate(){for(;this.#e>0;){await this.#n;for(let t=0;tmi,bgBlue:()=>fi,bgBrightBlack:()=>Ti,bgBrightBlue:()=>Ai,bgBrightCyan:()=>Ci,bgBrightGreen:()=>vi,bgBrightMagenta:()=>ki,bgBrightRed:()=>xi,bgBrightWhite:()=>Pi,bgBrightYellow:()=>Si,bgCyan:()=>yi,bgGreen:()=>pi,bgMagenta:()=>bi,bgRed:()=>gi,bgRgb24:()=>Li,bgRgb8:()=>Ei,bgWhite:()=>wi,bgYellow:()=>hi,black:()=>Qo,blue:()=>ei,bold:()=>Wo,brightBlack:()=>In,brightBlue:()=>li,brightCyan:()=>ui,brightGreen:()=>ii,brightMagenta:()=>ci,brightRed:()=>oi,brightWhite:()=>di,brightYellow:()=>si,cyan:()=>ri,dim:()=>zo,getColorEnabled:()=>qo,gray:()=>ai,green:()=>Jo,hidden:()=>$o,inverse:()=>Vo,italic:()=>Ho,magenta:()=>ti,red:()=>Zo,reset:()=>Ko,rgb24:()=>Mi,rgb8:()=>_i,setColorEnabled:()=>jo,strikethrough:()=>Yo,stripColor:()=>Ii,underline:()=>Go,white:()=>ni,yellow:()=>Xo});var{Deno:Ln}=globalThis,Rn=typeof Ln?.noColor=="boolean"?Ln.noColor:!0,Pr=!Rn;function jo(e){Rn||(Pr=e)}function qo(){return Pr}function F(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function j(e,t){return Pr?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function Ko(e){return j(e,F([0],0))}function Wo(e){return j(e,F([1],22))}function zo(e){return j(e,F([2],22))}function Ho(e){return j(e,F([3],23))}function Go(e){return j(e,F([4],24))}function Vo(e){return j(e,F([7],27))}function $o(e){return j(e,F([8],28))}function Yo(e){return j(e,F([9],29))}function Qo(e){return j(e,F([30],39))}function Zo(e){return j(e,F([31],39))}function Jo(e){return j(e,F([32],39))}function Xo(e){return j(e,F([33],39))}function ei(e){return j(e,F([34],39))}function ti(e){return j(e,F([35],39))}function ri(e){return j(e,F([36],39))}function ni(e){return j(e,F([37],39))}function ai(e){return In(e)}function In(e){return j(e,F([90],39))}function oi(e){return j(e,F([91],39))}function ii(e){return j(e,F([92],39))}function si(e){return j(e,F([93],39))}function li(e){return j(e,F([94],39))}function ci(e){return j(e,F([95],39))}function ui(e){return j(e,F([96],39))}function di(e){return j(e,F([97],39))}function mi(e){return j(e,F([40],49))}function gi(e){return j(e,F([41],49))}function pi(e){return j(e,F([42],49))}function hi(e){return j(e,F([43],49))}function fi(e){return j(e,F([44],49))}function bi(e){return j(e,F([45],49))}function yi(e){return j(e,F([46],49))}function wi(e){return j(e,F([47],49))}function Ti(e){return j(e,F([100],49))}function xi(e){return j(e,F([101],49))}function vi(e){return j(e,F([102],49))}function Si(e){return j(e,F([103],49))}function Ai(e){return j(e,F([104],49))}function ki(e){return j(e,F([105],49))}function Ci(e){return j(e,F([106],49))}function Pi(e){return j(e,F([107],49))}function at(e,t=255,r=0){return Math.trunc(Math.max(Math.min(e,t),r))}function _i(e,t){return j(e,F([38,5,at(t)],39))}function Ei(e,t){return j(e,F([48,5,at(t)],49))}function Mi(e,t){return typeof t=="number"?j(e,F([38,2,t>>16&255,t>>8&255,t&255],39)):j(e,F([38,2,at(t.r),at(t.g),at(t.b)],39))}function Li(e,t){return typeof t=="number"?j(e,F([48,2,t>>16&255,t>>8&255,t&255],49)):j(e,F([48,2,at(t.r),at(t.g),at(t.b)],49))}var Ri=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function Ii(e){return e.replace(Ri,"")}var _r=class extends Error{constructor(t,r){super(`Exceeded max retry count (${r})`),this.name="RetryError",this.cause=t}},Di={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function Er(e,t){let r={...Di,...t};if(r.maxTimeout>=0&&r.minTimeout>r.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let n=r.minTimeout,a;for(let o=0;osetTimeout(i,n)),n*=r.multiplier,n=Math.max(n,r.minTimeout),r.maxTimeout>=0&&(n=Math.min(n,r.maxTimeout)),a=s}throw new _r(a,r.maxAttempts)}var Kc=Number.isNaN||function(e){return typeof e=="number"&&e!==e};var Zt=globalThis||(typeof window<"u"?window:self),Ni=Object.create,Lr=Object.defineProperty,Ui=Object.getOwnPropertyDescriptor,Bi=Object.getOwnPropertyNames,Fi=Object.getPrototypeOf,ji=Object.prototype.hasOwnProperty,qi=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ki=(e,t)=>{for(var r in t)Lr(e,r,{get:t[r],enumerable:!0})},Mr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Bi(t))!ji.call(e,a)&&a!==r&&Lr(e,a,{get:()=>t[a],enumerable:!(n=Ui(t,a))||n.enumerable});return e},Wi=(e,t,r)=>(Mr(e,t,"default"),r&&Mr(r,t,"default")),On=(e,t,r)=>(r=e!=null?Ni(Fi(e)):{},Mr(t||!e||!e.__esModule?Lr(r,"default",{value:e,enumerable:!0}):r,e)),Nn=qi((e,t)=>{var r="Expected a function",n=NaN,a="[object Symbol]",o=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt,u=typeof Zt=="object"&&Zt&&Zt.Object===Object&&Zt,f=typeof self=="object"&&self&&self.Object===Object&&self,_=u||f||Function("return this")(),v=Object.prototype,P=v.toString,ee=Math.max,Z=Math.min,m=function(){return _.Date.now()};function ve(w,E,I){var A,q,L,Y,K,ye,X=0,C=!1,W=!1,Ce=!0;if(typeof w!="function")throw new TypeError(r);E=y(E)||0,te(I)&&(C=!!I.leading,W="maxWait"in I,L=W?ee(y(I.maxWait)||0,E):L,Ce="trailing"in I?!!I.trailing:Ce);function ae(B){var z=A,Q=q;return A=q=void 0,X=B,Y=w.apply(Q,z),Y}function p(B){return X=B,K=setTimeout(V,E),C?ae(B):Y}function k(B){var z=B-ye,Q=B-X,re=E-z;return W?Z(re,L-Q):re}function M(B){var z=B-ye,Q=B-X;return ye===void 0||z>=E||z<0||W&&Q>=L}function V(){var B=m();if(M(B))return U(B);K=setTimeout(V,k(B))}function U(B){return K=void 0,Ce&&A?ae(B):(A=q=void 0,Y)}function ce(){K!==void 0&&clearTimeout(K),X=0,A=ye=q=K=void 0}function we(){return K===void 0?Y:U(m())}function pe(){var B=m(),z=M(B);if(A=arguments,q=this,ye=B,z){if(K===void 0)return p(ye);if(W)return K=setTimeout(V,E),ae(ye)}return K===void 0&&(K=setTimeout(V,E)),Y}return pe.cancel=ce,pe.flush=we,pe}function G(w,E,I){var A=!0,q=!0;if(typeof w!="function")throw new TypeError(r);return te(I)&&(A="leading"in I?!!I.leading:A,q="trailing"in I?!!I.trailing:q),ve(w,E,{leading:A,maxWait:E,trailing:q})}function te(w){var E=typeof w;return!!w&&(E=="object"||E=="function")}function be(w){return!!w&&typeof w=="object"}function S(w){return typeof w=="symbol"||be(w)&&P.call(w)==a}function y(w){if(typeof w=="number")return w;if(S(w))return n;if(te(w)){var E=typeof w.valueOf=="function"?w.valueOf():w;w=te(E)?E+"":E}if(typeof w!="string")return w===0?w:+w;w=w.replace(o,"");var I=i.test(w);return I||c.test(w)?d(w.slice(2),I?2:8):s.test(w)?n:+w}t.exports=G}),Un={};Ki(Un,{default:()=>Rr});var zi=On(Nn());Wi(Un,On(Nn()));var{default:Dn,...Hi}=zi,Rr=Dn!==void 0?Dn:Hi;var Gi=Object.create,Dr=Object.defineProperty,Vi=Object.getOwnPropertyDescriptor,$i=Object.getOwnPropertyNames,Yi=Object.getPrototypeOf,Qi=Object.prototype.hasOwnProperty,Zi=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ji=(e,t)=>{for(var r in t)Dr(e,r,{get:t[r],enumerable:!0})},Ir=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of $i(t))!Qi.call(e,a)&&a!==r&&Dr(e,a,{get:()=>t[a],enumerable:!(n=Vi(t,a))||n.enumerable});return e},Xi=(e,t,r)=>(Ir(e,t,"default"),r&&Ir(r,t,"default")),Fn=(e,t,r)=>(r=e!=null?Gi(Yi(e)):{},Ir(t||!e||!e.__esModule?Dr(r,"default",{value:e,enumerable:!0}):r,e)),jn=Zi((e,t)=>{(function(r,n){typeof e=="object"&&typeof t=="object"?t.exports=n():typeof define=="function"&&define.amd?define([],n):typeof e=="object"?e.notie=n():r.notie=n()})(e,function(){return function(r){function n(o){if(a[o])return a[o].exports;var s=a[o]={i:o,l:!1,exports:{}};return r[o].call(s.exports,s,s.exports,n),s.l=!0,s.exports}var a={};return n.m=r,n.c=a,n.i=function(o){return o},n.d=function(o,s,i){n.o(o,s)||Object.defineProperty(o,s,{configurable:!1,enumerable:!0,get:i})},n.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(s,"a",s),s},n.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},n.p="",n(n.s=1)}([function(r,n){r.exports=function(a){return a.webpackPolyfill||(a.deprecate=function(){},a.paths=[],a.children||(a.children=[]),Object.defineProperty(a,"loaded",{enumerable:!0,get:function(){return a.l}}),Object.defineProperty(a,"id",{enumerable:!0,get:function(){return a.i}}),a.webpackPolyfill=1),a}},function(r,n,a){"use strict";(function(o){var s,i,c,d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u};(function(u,f){d(n)==="object"&&d(o)==="object"?o.exports=f():(i=[],s=f,c=typeof s=="function"?s.apply(n,i):s,c!==void 0&&(o.exports=c))})(void 0,function(){return function(u){function f(v){if(_[v])return _[v].exports;var P=_[v]={i:v,l:!1,exports:{}};return u[v].call(P.exports,P,P.exports,f),P.l=!0,P.exports}var _={};return f.m=u,f.c=_,f.i=function(v){return v},f.d=function(v,P,ee){f.o(v,P)||Object.defineProperty(v,P,{configurable:!1,enumerable:!0,get:ee})},f.n=function(v){var P=v&&v.__esModule?function(){return v.default}:function(){return v};return f.d(P,"a",P),P},f.o=function(v,P){return Object.prototype.hasOwnProperty.call(v,P)},f.p="",f(f.s=0)}([function(u,f,_){function v(p,k){var M={};for(var V in p)k.indexOf(V)>=0||Object.prototype.hasOwnProperty.call(p,V)&&(M[V]=p[V]);return M}Object.defineProperty(f,"__esModule",{value:!0});var P=typeof Symbol=="function"&&d(Symbol.iterator)==="symbol"?function(p){return typeof p>"u"?"undefined":d(p)}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p>"u"?"undefined":d(p)},ee=Object.assign||function(p){for(var k=1;k'+V+"",Q.onclick=function(){return q(re,z)},Q.listener=function(R){(E(R)||I(R))&&K()},A(Q,z),ce&&ce<1&&(ce=1),!pe&&ce&&te(ce).then(function(){return q(re,z)})},X=f.force=function(p,k){var M=p.type,V=M===void 0?5:M,U=p.text,ce=p.buttonText,we=ce===void 0?"OK":ce,pe=p.callback,B=p.position,z=B===void 0?m.positions.force||z.top:B;be(),K();var Q=document.createElement("div"),re=S();Q.id=re;var R=document.createElement("div");R.classList.add(m.classes.textbox),R.classList.add(m.classes.backgroundInfo),R.innerHTML='
'+U+"
";var J=document.createElement("div");J.classList.add(m.classes.button),J.classList.add(y[V]),J.innerHTML=we,J.onclick=function(){q(re,z),Y(),pe?pe():k&&k()},Q.appendChild(R),Q.appendChild(J),Q.listener=function(ue){E(ue)&&J.click()},A(Q,z),L()},C=f.confirm=function(p,k,M){var V=p.text,U=p.submitText,ce=U===void 0?"Yes":U,we=p.cancelText,pe=we===void 0?"Cancel":we,B=p.submitCallback,z=p.cancelCallback,Q=p.position,re=Q===void 0?m.positions.confirm||re.top:Q;be(),K();var R=document.createElement("div"),J=S();R.id=J;var ue=document.createElement("div");ue.classList.add(m.classes.textbox),ue.classList.add(m.classes.backgroundInfo),ue.innerHTML='
'+V+"
";var ie=document.createElement("div");ie.classList.add(m.classes.button),ie.classList.add(m.classes.elementHalf),ie.classList.add(m.classes.backgroundSuccess),ie.innerHTML=ce,ie.onclick=function(){q(J,re),Y(),B?B():k&&k()};var N=document.createElement("div");N.classList.add(m.classes.button),N.classList.add(m.classes.elementHalf),N.classList.add(m.classes.backgroundError),N.innerHTML=pe,N.onclick=function(){q(J,re),Y(),z?z():M&&M()},R.appendChild(ue),R.appendChild(ie),R.appendChild(N),R.listener=function(Se){E(Se)?ie.click():I(Se)&&N.click()},A(R,re),L(R,re)},W=function(p,k,M){var V=p.text,U=p.submitText,ce=U===void 0?"Submit":U,we=p.cancelText,pe=we===void 0?"Cancel":we,B=p.submitCallback,z=p.cancelCallback,Q=p.position,re=Q===void 0?m.positions.input||re.top:Q,R=v(p,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);be(),K();var J=document.createElement("div"),ue=S();J.id=ue;var ie=document.createElement("div");ie.classList.add(m.classes.textbox),ie.classList.add(m.classes.backgroundInfo),ie.innerHTML='
'+V+"
";var N=document.createElement("input");N.classList.add(m.classes.inputField),N.setAttribute("autocapitalize",R.autocapitalize||"none"),N.setAttribute("autocomplete",R.autocomplete||"off"),N.setAttribute("autocorrect",R.autocorrect||"off"),N.setAttribute("autofocus",R.autofocus||"true"),N.setAttribute("inputmode",R.inputmode||"verbatim"),N.setAttribute("max",R.max||""),N.setAttribute("maxlength",R.maxlength||""),N.setAttribute("min",R.min||""),N.setAttribute("minlength",R.minlength||""),N.setAttribute("placeholder",R.placeholder||""),N.setAttribute("spellcheck",R.spellcheck||"default"),N.setAttribute("step",R.step||"any"),N.setAttribute("type",R.type||"text"),N.value=R.value||"",R.allowed&&(N.oninput=function(){var me=void 0;if(Array.isArray(R.allowed)){for(var he="",Oe=R.allowed,ze=0;ze'+M+"",z.appendChild(re),we.forEach(function(J,ue){var ie=J.type,N=ie===void 0?1:ie,Se=J.text,De=J.handler,me=document.createElement("div");me.classList.add(y[N]),me.classList.add(m.classes.button),me.classList.add(m.classes.selectChoice);var he=we[ue+1];he&&!he.type&&(he.type=1),he&&he.type===N&&me.classList.add(m.classes.selectChoiceRepeated),me.innerHTML=Se,me.onclick=function(){q(Q,B),Y(),De()},z.appendChild(me)});var R=document.createElement("div");R.classList.add(m.classes.backgroundNeutral),R.classList.add(m.classes.button),R.innerHTML=U,R.onclick=function(){q(Q,B),Y(),ce?ce():k&&k()},z.appendChild(R),z.listener=function(J){I(J)&&R.click()},A(z,B),L(z,B)},ae=f.date=function(p,k,M){var V=p.value,U=V===void 0?new Date:V,ce=p.submitText,we=ce===void 0?"OK":ce,pe=p.cancelText,B=pe===void 0?"Cancel":pe,z=p.submitCallback,Q=p.cancelCallback,re=p.position,R=re===void 0?m.positions.date||R.top:re;be(),K();var J="▾",ue=document.createElement("div"),ie=document.createElement("div"),N=document.createElement("div"),Se=function(de){ue.innerHTML=m.dateMonths[de.getMonth()],ie.innerHTML=de.getDate(),N.innerHTML=de.getFullYear()},De=function(de){var oe=new Date(U.getFullYear(),U.getMonth()+1,0).getDate(),Ke=de.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(Ke)>oe&&(Ke=oe.toString()),de.target.textContent=Ke,Number(Ke)<1&&(Ke="1"),U.setDate(Number(Ke))},me=function(de){var oe=de.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);de.target.textContent=oe,U.setFullYear(Number(oe))},he=function(de){Se(U)},Oe=function(de){var oe=new Date(U.getFullYear(),U.getMonth()+de+1,0).getDate();U.getDate()>oe&&U.setDate(oe),U.setMonth(U.getMonth()+de),Se(U)},ze=function(de){U.setDate(U.getDate()+de),Se(U)},Et=function(de){var oe=U.getFullYear()+de;oe<0?U.setFullYear(0):U.setFullYear(U.getFullYear()+de),Se(U)},Ze=document.createElement("div"),lt=S();Ze.id=lt;var yt=document.createElement("div");yt.classList.add(m.classes.backgroundInfo);var _e=document.createElement("div");_e.classList.add(m.classes.dateSelectorInner);var Ve=document.createElement("div");Ve.classList.add(m.classes.button),Ve.classList.add(m.classes.elementThird),Ve.classList.add(m.classes.dateSelectorUp),Ve.innerHTML=J;var Ee=document.createElement("div");Ee.classList.add(m.classes.button),Ee.classList.add(m.classes.elementThird),Ee.classList.add(m.classes.dateSelectorUp),Ee.innerHTML=J;var qe=document.createElement("div");qe.classList.add(m.classes.button),qe.classList.add(m.classes.elementThird),qe.classList.add(m.classes.dateSelectorUp),qe.innerHTML=J,ue.classList.add(m.classes.element),ue.classList.add(m.classes.elementThird),ue.innerHTML=m.dateMonths[U.getMonth()],ie.classList.add(m.classes.element),ie.classList.add(m.classes.elementThird),ie.setAttribute("contentEditable",!0),ie.addEventListener("input",De),ie.addEventListener("blur",he),ie.innerHTML=U.getDate(),N.classList.add(m.classes.element),N.classList.add(m.classes.elementThird),N.setAttribute("contentEditable",!0),N.addEventListener("input",me),N.addEventListener("blur",he),N.innerHTML=U.getFullYear();var et=document.createElement("div");et.classList.add(m.classes.button),et.classList.add(m.classes.elementThird),et.innerHTML=J;var tt=document.createElement("div");tt.classList.add(m.classes.button),tt.classList.add(m.classes.elementThird),tt.innerHTML=J;var ct=document.createElement("div");ct.classList.add(m.classes.button),ct.classList.add(m.classes.elementThird),ct.innerHTML=J,Ve.onclick=function(){return Oe(1)},Ee.onclick=function(){return ze(1)},qe.onclick=function(){return Et(1)},et.onclick=function(){return Oe(-1)},tt.onclick=function(){return ze(-1)},ct.onclick=function(){return Et(-1)};var Ne=document.createElement("div");Ne.classList.add(m.classes.button),Ne.classList.add(m.classes.elementHalf),Ne.classList.add(m.classes.backgroundSuccess),Ne.innerHTML=we,Ne.onclick=function(){q(lt,R),Y(),z?z(U):k&&k(U)};var rt=document.createElement("div");rt.classList.add(m.classes.button),rt.classList.add(m.classes.elementHalf),rt.classList.add(m.classes.backgroundError),rt.innerHTML=B,rt.onclick=function(){q(lt,R),Y(),Q?Q(U):M&&M(U)},_e.appendChild(Ve),_e.appendChild(Ee),_e.appendChild(qe),_e.appendChild(ue),_e.appendChild(ie),_e.appendChild(N),_e.appendChild(et),_e.appendChild(tt),_e.appendChild(ct),yt.appendChild(_e),Ze.appendChild(yt),Ze.appendChild(Ne),Ze.appendChild(rt),Ze.listener=function(de){E(de)?Ne.click():I(de)&&rt.click()},A(Ze,R),L(Ze,R)};f.default={alert:ye,force:X,confirm:C,input:W,select:Ce,date:ae,setOptions:ve,hideAlerts:K}}])})}).call(n,a(0)(r))}])})}),qn={};Ji(qn,{default:()=>Jt});var es=Fn(jn());Xi(qn,Fn(jn()));var{default:Bn,...ts}=es,Jt=Bn!==void 0?Bn:ts;var Or=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Nr(e,t,r,n){e.addEventListener?e.addEventListener(t,r,n):e.attachEvent&&e.attachEvent("on".concat(t),function(){r(window.event)})}function Gn(e,t){for(var r=t.slice(0,t.length-1),n=0;n=0;)t[r-1]+=",",t.splice(r,1),r=t.lastIndexOf("");return t}function rs(e,t){for(var r=e.length>=t.length?e:t,n=e.length>=t.length?t:e,a=!0,o=0;o=0&&le.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&le.splice(0,le.length),(t===93||t===224)&&(t=91),t in Pe){Pe[t]=!1;for(var n in Xe)Xe[n]===t&&(Je[n]=!1)}}function ds(e){if(typeof e>"u")Object.keys(Te).forEach(function(s){return delete Te[s]});else if(Array.isArray(e))e.forEach(function(s){s.key&&Ur(s)});else if(typeof e=="object")e.key&&Ur(e);else if(typeof e=="string"){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n1?Gn(Xe,c):[];Te[f]=Te[f].filter(function(v){var P=n?v.method===n:!0;return!(P&&v.scope===r&&rs(v.mods,_))})}})};function Wn(e,t,r,n){if(t.element===n){var a;if(t.scope===r||t.scope==="all"){a=t.mods.length>0;for(var o in Pe)Object.prototype.hasOwnProperty.call(Pe,o)&&(!Pe[o]&&t.mods.indexOf(+o)>-1||Pe[o]&&t.mods.indexOf(+o)===-1)&&(a=!1);(t.mods.length===0&&!Pe[16]&&!Pe[18]&&!Pe[17]&&!Pe[91]||a||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function zn(e,t){var r=Te["*"],n=e.keyCode||e.which||e.charCode;if(Je.filter.call(this,e)){if((n===93||n===224)&&(n=91),le.indexOf(n)===-1&&n!==229&&le.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(P){var ee=Fr[P];e[P]&&le.indexOf(ee)===-1?le.push(ee):!e[P]&&le.indexOf(ee)>-1?le.splice(le.indexOf(ee),1):P==="metaKey"&&e[P]&&le.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(le=le.slice(le.indexOf(ee))))}),n in Pe){Pe[n]=!0;for(var a in Xe)Xe[a]===n&&(Je[a]=!0);if(!r)return}for(var o in Pe)Object.prototype.hasOwnProperty.call(Pe,o)&&(Pe[o]=e[Fr[o]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(le.indexOf(17)===-1&&le.push(17),le.indexOf(18)===-1&&le.push(18),Pe[17]=!0,Pe[18]=!0);var s=It();if(r)for(var i=0;i-1}function Je(e,t,r){le=[];var n=Vn(e),a=[],o="all",s=document,i=0,c=!1,d=!0,u="+",f=!1;for(r===void 0&&typeof t=="function"&&(r=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(o=t.scope),t.element&&(s=t.element),t.keyup&&(c=t.keyup),t.keydown!==void 0&&(d=t.keydown),t.capture!==void 0&&(f=t.capture),typeof t.splitKey=="string"&&(u=t.splitKey)),typeof t=="string"&&(o=t);i1&&(a=Gn(Xe,e)),e=e[e.length-1],e=e==="*"?"*":er(e),e in Te||(Te[e]=[]),Te[e].push({keyup:c,keydown:d,scope:o,mods:a,shortcut:n[i],method:r,key:n[i],splitKey:u,element:s});typeof s<"u"&&!ms(s)&&window&&(Yn.push(s),Nr(s,"keydown",function(_){zn(_,s)},f),Kn||(Kn=!0,Nr(window,"focus",function(){le=[]},f)),Nr(s,"keyup",function(_){zn(_,s),us(_)},f))}function gs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(Te).forEach(function(r){var n=Te[r].filter(function(a){return a.scope===t&&a.shortcut===e});n.forEach(function(a){a&&a.method&&a.method()})})}var Br={getPressedKeyString:is,setScope:Qn,getScope:It,deleteScope:cs,getPressedKeyCodes:os,isPressed:ls,filter:ss,trigger:gs,unbind:ds,keyMap:Rt,modifier:Xe,modifierMap:Fr};for(Xt in Br)Object.prototype.hasOwnProperty.call(Br,Xt)&&(Je[Xt]=Br[Xt]);var Xt;typeof document<"u"&&(Hn=window.hotkeys,Je.noConflict=function(e){return e&&window.hotkeys===Je&&(window.hotkeys=Hn),Je},window.hotkeys=Je);var Hn;var ps={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},Jn={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},fe={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Be={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},ot={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},h=class{static getFirstMatch(e,t){let r=t.match(e);return r&&r.length>0&&r[1]||""}static getSecondMatch(e,t){let r=t.match(e);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(e,t,r){if(e.test(t))return r}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,r=!1){let n=h.getVersionPrecision(e),a=h.getVersionPrecision(t),o=Math.max(n,a),s=0,i=h.map([e,t],c=>{let d=o-h.getVersionPrecision(c),u=c+new Array(d+1).join(".0");return h.map(u.split("."),f=>new Array(20-f.length).join("0")+f).reverse()});for(r&&(s=o-Math.min(n,a)),o-=1;o>=s;){if(i[0][o]>i[1][o])return 1;if(i[0][o]===i[1][o]){if(o===s)return 0;o-=1}else if(i[0][o]{r[s]=o[s]})}return e}static getBrowserAlias(e){return ps[e]}static getBrowserTypeByAlias(e){return Jn[e]||""}},se=/version\/(\d+(\.?_?\d+)+)/i,hs=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},r=h.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},r=h.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},r=h.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},r=h.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},r=h.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},r=h.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},r=h.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},r=h.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=h.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},r=h.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},r=h.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},r=h.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},r=h.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},r=h.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},r=h.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},r=h.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},r=h.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},r=h.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},r=h.getFirstMatch(se,e)||h.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},r=h.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},r=h.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},r=h.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},r=h.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},r=h.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},r=h.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},r=h.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},r=h.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},r=h.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test(e){let t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe(e){let t={name:"Android Browser"},r=h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},r=h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},r=h.getFirstMatch(se,e);return r&&(t.version=r),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,r=/^(.*)\/(.*)[ \t]\((.*)/,n=e.search("\\(")!==-1?r:t;return{name:h.getFirstMatch(n,e),version:h.getSecondMatch(n,e)}}}],fs=hs,bs=[{test:[/Roku\/DVP/],describe(e){let t=h.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Be.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=h.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Be.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=h.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=h.getWindowsVersionName(t);return{name:Be.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:Be.iOS},r=h.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe(e){let t=h.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=h.getMacOSVersionName(t),n={name:Be.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=h.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Be.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe(e){let t=h.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=h.getAndroidVersionName(t),n={name:Be.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=h.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:Be.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=h.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||h.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||h.getFirstMatch(/\bbb(\d+)/i,e);return{name:Be.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=h.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Be.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=h.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Be.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Be.Linux}}},{test:[/CrOS/],describe(){return{name:Be.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=h.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Be.PlayStation4,version:t}}}],ys=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=h.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:fe.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:fe.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:fe.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:fe.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:fe.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:fe.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:fe.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe(e){let t=h.getFirstMatch(/(ipod|iphone)/i,e);return{type:fe.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:fe.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:fe.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:fe.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:fe.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:fe.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:fe.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:fe.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:fe.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:fe.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:fe.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:fe.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:fe.tv}}}],ws=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:ot.Blink};let t=h.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:ot.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:ot.Trident},r=h.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:ot.Presto},r=h.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test(e){let t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe(e){let t={name:ot.Gecko},r=h.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:ot.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:ot.WebKit},r=h.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}],Ts=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=h.find(fs,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=h.find(bs,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=h.find(ys,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=h.find(ws,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return h.assign({},this.parsedResult)}satisfies(e){let t={},r=0,n={},a=0;if(Object.keys(e).forEach(o=>{let s=e[o];typeof s=="string"?(n[o]=s,a+=1):typeof s=="object"&&(t[o]=s,r+=1)}),r>0){let o=Object.keys(t),s=h.find(o,c=>this.isOS(c));if(s){let c=this.satisfies(t[s]);if(c!==void 0)return c}let i=h.find(o,c=>this.isPlatform(c));if(i){let c=this.satisfies(t[i]);if(c!==void 0)return c}}if(a>0){let o=Object.keys(n),s=h.find(o,i=>this.isBrowser(i,!0));if(s!==void 0)return this.compareVersion(n[s])}}isBrowser(e,t=!1){let r=this.getBrowserName().toLowerCase(),n=e.toLowerCase(),a=h.getBrowserTypeByAlias(n);return t&&a&&(n=a.toLowerCase()),n===r}compareVersion(e){let t=[0],r=e,n=!1,a=this.getBrowserVersion();if(typeof a=="string")return e[0]===">"||e[0]==="<"?(r=e.substr(1),e[1]==="="?(n=!0,r=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?r=e.substr(1):e[0]==="~"&&(n=!0,r=e.substr(1)),t.indexOf(h.compareVersions(a,r,n))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},Zn=Ts,xs=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new Zn(e,t)}static parse(e){return new Zn(e).getResult()}static get BROWSER_MAP(){return Jn}static get ENGINE_MAP(){return ot}static get OS_MAP(){return Be}static get PLATFORMS_MAP(){return fe}},tr=xs;var{entries:ia,setPrototypeOf:Xn,isFrozen:vs,getPrototypeOf:Ss,getOwnPropertyDescriptor:As}=Object,{freeze:Fe,seal:Ye,create:ks}=Object,{apply:Hr,construct:Gr}=typeof Reflect<"u"&&Reflect;Hr||(Hr=function(e,t,r){return e.apply(t,r)});Fe||(Fe=function(e){return e});Ye||(Ye=function(e){return e});Gr||(Gr=function(e,t){return new e(...t)});var Cs=Ge(Array.prototype.forEach),ea=Ge(Array.prototype.pop),Dt=Ge(Array.prototype.push),ar=Ge(String.prototype.toLowerCase),jr=Ge(String.prototype.toString),Ps=Ge(String.prototype.match),$e=Ge(String.prototype.replace),_s=Ge(String.prototype.indexOf),Es=Ge(String.prototype.trim),We=Ge(RegExp.prototype.test),Ot=Ms(TypeError);function Ge(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a/gm),Os=Ye(/\${[\w\W]*}/gm),Ns=Ye(/^data-[\-\w.\u00B7-\uFFFF]/),Us=Ye(/^aria-[\-\w]+$/),sa=Ye(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Bs=Ye(/^(?:\w+script|data):/i),Fs=Ye(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),la=Ye(/^html$/i),oa=Object.freeze({__proto__:null,MUSTACHE_EXPR:Is,ERB_EXPR:Ds,TMPLIT_EXPR:Os,DATA_ATTR:Ns,ARIA_ATTR:Us,IS_ALLOWED_URI:sa,IS_SCRIPT_OR_DATA:Bs,ATTR_WHITESPACE:Fs,DOCTYPE_NAME:la}),js=()=>typeof window>"u"?null:window,qs=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null,n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(r=t.getAttribute(n));let a="dompurify"+(r?"#"+r:"");try{return e.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return null}};function ca(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:js(),t=l=>ca(l);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let r=e.document,n=r.currentScript,{document:a}=e,{DocumentFragment:o,HTMLTemplateElement:s,Node:i,Element:c,NodeFilter:d,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:_,trustedTypes:v}=e,P=c.prototype,ee=rr(P,"cloneNode"),Z=rr(P,"nextSibling"),m=rr(P,"childNodes"),ve=rr(P,"parentNode");if(typeof s=="function"){let l=a.createElement("template");l.content&&l.content.ownerDocument&&(a=l.content.ownerDocument)}let G,te="",{implementation:be,createNodeIterator:S,createDocumentFragment:y,getElementsByTagName:w}=a,{importNode:E}=r,I={};t.isSupported=typeof ia=="function"&&typeof ve=="function"&&be&&be.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:A,ERB_EXPR:q,TMPLIT_EXPR:L,DATA_ATTR:Y,ARIA_ATTR:K,IS_SCRIPT_OR_DATA:ye,ATTR_WHITESPACE:X}=oa,{IS_ALLOWED_URI:C}=oa,W=null,Ce=$({},[...ta,...qr,...Kr,...Wr,...ra]),ae=null,p=$({},[...na,...zr,...aa,...nr]),k=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),M=null,V=null,U=!0,ce=!0,we=!1,pe=!0,B=!1,z=!1,Q=!1,re=!1,R=!1,J=!1,ue=!1,ie=!0,N=!1,Se="user-content-",De=!0,me=!1,he={},Oe=null,ze=$({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Et=null,Ze=$({},["audio","video","img","source","image","track"]),lt=null,yt=$({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),_e="http://www.w3.org/1998/Math/MathML",Ve="http://www.w3.org/2000/svg",Ee="http://www.w3.org/1999/xhtml",qe=Ee,et=!1,tt=null,ct=$({},[_e,Ve,Ee],jr),Ne,rt=["application/xhtml+xml","text/html"],de="text/html",oe,Ke=null,So=a.createElement("form"),hn=function(l){return l instanceof RegExp||l instanceof Function},xr=function(l){if(!(Ke&&Ke===l)){if((!l||typeof l!="object")&&(l={}),l=xt(l),Ne=rt.indexOf(l.PARSER_MEDIA_TYPE)===-1?Ne=de:Ne=l.PARSER_MEDIA_TYPE,oe=Ne==="application/xhtml+xml"?jr:ar,W="ALLOWED_TAGS"in l?$({},l.ALLOWED_TAGS,oe):Ce,ae="ALLOWED_ATTR"in l?$({},l.ALLOWED_ATTR,oe):p,tt="ALLOWED_NAMESPACES"in l?$({},l.ALLOWED_NAMESPACES,jr):ct,lt="ADD_URI_SAFE_ATTR"in l?$(xt(yt),l.ADD_URI_SAFE_ATTR,oe):yt,Et="ADD_DATA_URI_TAGS"in l?$(xt(Ze),l.ADD_DATA_URI_TAGS,oe):Ze,Oe="FORBID_CONTENTS"in l?$({},l.FORBID_CONTENTS,oe):ze,M="FORBID_TAGS"in l?$({},l.FORBID_TAGS,oe):{},V="FORBID_ATTR"in l?$({},l.FORBID_ATTR,oe):{},he="USE_PROFILES"in l?l.USE_PROFILES:!1,U=l.ALLOW_ARIA_ATTR!==!1,ce=l.ALLOW_DATA_ATTR!==!1,we=l.ALLOW_UNKNOWN_PROTOCOLS||!1,pe=l.ALLOW_SELF_CLOSE_IN_ATTR!==!1,B=l.SAFE_FOR_TEMPLATES||!1,z=l.WHOLE_DOCUMENT||!1,R=l.RETURN_DOM||!1,J=l.RETURN_DOM_FRAGMENT||!1,ue=l.RETURN_TRUSTED_TYPE||!1,re=l.FORCE_BODY||!1,ie=l.SANITIZE_DOM!==!1,N=l.SANITIZE_NAMED_PROPS||!1,De=l.KEEP_CONTENT!==!1,me=l.IN_PLACE||!1,C=l.ALLOWED_URI_REGEXP||sa,qe=l.NAMESPACE||Ee,k=l.CUSTOM_ELEMENT_HANDLING||{},l.CUSTOM_ELEMENT_HANDLING&&hn(l.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(k.tagNameCheck=l.CUSTOM_ELEMENT_HANDLING.tagNameCheck),l.CUSTOM_ELEMENT_HANDLING&&hn(l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(k.attributeNameCheck=l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),l.CUSTOM_ELEMENT_HANDLING&&typeof l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(k.allowCustomizedBuiltInElements=l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),B&&(ce=!1),J&&(R=!0),he&&(W=$({},[...ra]),ae=[],he.html===!0&&($(W,ta),$(ae,na)),he.svg===!0&&($(W,qr),$(ae,zr),$(ae,nr)),he.svgFilters===!0&&($(W,Kr),$(ae,zr),$(ae,nr)),he.mathMl===!0&&($(W,Wr),$(ae,aa),$(ae,nr))),l.ADD_TAGS&&(W===Ce&&(W=xt(W)),$(W,l.ADD_TAGS,oe)),l.ADD_ATTR&&(ae===p&&(ae=xt(ae)),$(ae,l.ADD_ATTR,oe)),l.ADD_URI_SAFE_ATTR&&$(lt,l.ADD_URI_SAFE_ATTR,oe),l.FORBID_CONTENTS&&(Oe===ze&&(Oe=xt(Oe)),$(Oe,l.FORBID_CONTENTS,oe)),De&&(W["#text"]=!0),z&&$(W,["html","head","body"]),W.table&&($(W,["tbody"]),delete M.tbody),l.TRUSTED_TYPES_POLICY){if(typeof l.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ot('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof l.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ot('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');G=l.TRUSTED_TYPES_POLICY,te=G.createHTML("")}else G===void 0&&(G=qs(v,n)),G!==null&&typeof te=="string"&&(te=G.createHTML(""));Fe&&Fe(l),Ke=l}},fn=$({},["mi","mo","mn","ms","mtext"]),bn=$({},["foreignobject","desc","title","annotation-xml"]),Ao=$({},["title","style","font","a","script"]),$t=$({},qr);$($t,Kr),$($t,Ls);let vr=$({},Wr);$(vr,Rs);let ko=function(l){let x=ve(l);(!x||!x.tagName)&&(x={namespaceURI:qe,tagName:"template"});let b=ar(l.tagName),ne=ar(x.tagName);return tt[l.namespaceURI]?l.namespaceURI===Ve?x.namespaceURI===Ee?b==="svg":x.namespaceURI===_e?b==="svg"&&(ne==="annotation-xml"||fn[ne]):!!$t[b]:l.namespaceURI===_e?x.namespaceURI===Ee?b==="math":x.namespaceURI===Ve?b==="math"&&bn[ne]:!!vr[b]:l.namespaceURI===Ee?x.namespaceURI===Ve&&!bn[ne]||x.namespaceURI===_e&&!fn[ne]?!1:!vr[b]&&(Ao[b]||!$t[b]):!!(Ne==="application/xhtml+xml"&&tt[l.namespaceURI]):!1},wt=function(l){Dt(t.removed,{element:l});try{l.parentNode.removeChild(l)}catch{l.remove()}},Sr=function(l,x){try{Dt(t.removed,{attribute:x.getAttributeNode(l),from:x})}catch{Dt(t.removed,{attribute:null,from:x})}if(x.removeAttribute(l),l==="is"&&!ae[l])if(R||J)try{wt(x)}catch{}else try{x.setAttribute(l,"")}catch{}},yn=function(l){let x,b;if(re)l=""+l;else{let Ue=Ps(l,/^[\r\n\t ]+/);b=Ue&&Ue[0]}Ne==="application/xhtml+xml"&&qe===Ee&&(l=''+l+"");let ne=G?G.createHTML(l):l;if(qe===Ee)try{x=new _().parseFromString(ne,Ne)}catch{}if(!x||!x.documentElement){x=be.createDocument(qe,"template",null);try{x.documentElement.innerHTML=et?te:ne}catch{}}let Ae=x.body||x.documentElement;return l&&b&&Ae.insertBefore(a.createTextNode(b),Ae.childNodes[0]||null),qe===Ee?w.call(x,z?"html":"body")[0]:z?x.documentElement:Ae},wn=function(l){return S.call(l.ownerDocument||l,l,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT,null,!1)},Co=function(l){return l instanceof f&&(typeof l.nodeName!="string"||typeof l.textContent!="string"||typeof l.removeChild!="function"||!(l.attributes instanceof u)||typeof l.removeAttribute!="function"||typeof l.setAttribute!="function"||typeof l.namespaceURI!="string"||typeof l.insertBefore!="function"||typeof l.hasChildNodes!="function")},Yt=function(l){return typeof i=="object"?l instanceof i:l&&typeof l=="object"&&typeof l.nodeType=="number"&&typeof l.nodeName=="string"},nt=function(l,x,b){I[l]&&Cs(I[l],ne=>{ne.call(t,x,b,Ke)})},Tn=function(l){let x;if(nt("beforeSanitizeElements",l,null),Co(l))return wt(l),!0;let b=oe(l.nodeName);if(nt("uponSanitizeElement",l,{tagName:b,allowedTags:W}),l.hasChildNodes()&&!Yt(l.firstElementChild)&&(!Yt(l.content)||!Yt(l.content.firstElementChild))&&We(/<[/\w]/g,l.innerHTML)&&We(/<[/\w]/g,l.textContent))return wt(l),!0;if(!W[b]||M[b]){if(!M[b]&&vn(b)&&(k.tagNameCheck instanceof RegExp&&We(k.tagNameCheck,b)||k.tagNameCheck instanceof Function&&k.tagNameCheck(b)))return!1;if(De&&!Oe[b]){let ne=ve(l)||l.parentNode,Ae=m(l)||l.childNodes;if(Ae&&ne){let Ue=Ae.length;for(let je=Ue-1;je>=0;--je)ne.insertBefore(ee(Ae[je],!0),Z(l))}}return wt(l),!0}return l instanceof c&&!ko(l)||(b==="noscript"||b==="noembed")&&We(/<\/no(script|embed)/i,l.innerHTML)?(wt(l),!0):(B&&l.nodeType===3&&(x=l.textContent,x=$e(x,A," "),x=$e(x,q," "),x=$e(x,L," "),l.textContent!==x&&(Dt(t.removed,{element:l.cloneNode()}),l.textContent=x)),nt("afterSanitizeElements",l,null),!1)},xn=function(l,x,b){if(ie&&(x==="id"||x==="name")&&(b in a||b in So))return!1;if(!(ce&&!V[x]&&We(Y,x))&&!(U&&We(K,x))){if(!ae[x]||V[x]){if(!(vn(l)&&(k.tagNameCheck instanceof RegExp&&We(k.tagNameCheck,l)||k.tagNameCheck instanceof Function&&k.tagNameCheck(l))&&(k.attributeNameCheck instanceof RegExp&&We(k.attributeNameCheck,x)||k.attributeNameCheck instanceof Function&&k.attributeNameCheck(x))||x==="is"&&k.allowCustomizedBuiltInElements&&(k.tagNameCheck instanceof RegExp&&We(k.tagNameCheck,b)||k.tagNameCheck instanceof Function&&k.tagNameCheck(b))))return!1}else if(!lt[x]&&!We(C,$e(b,X,""))&&!((x==="src"||x==="xlink:href"||x==="href")&&l!=="script"&&_s(b,"data:")===0&&Et[l])&&!(we&&!We(ye,$e(b,X,"")))&&b)return!1}return!0},vn=function(l){return l.indexOf("-")>0},Sn=function(l){let x,b,ne,Ae;nt("beforeSanitizeAttributes",l,null);let{attributes:Ue}=l;if(!Ue)return;let je={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ae};for(Ae=Ue.length;Ae--;){x=Ue[Ae];let{name:ke,namespaceURI:Tt}=x;if(b=ke==="value"?x.value:Es(x.value),ne=oe(ke),je.attrName=ne,je.attrValue=b,je.keepAttr=!0,je.forceKeepAttr=void 0,nt("uponSanitizeAttribute",l,je),b=je.attrValue,je.forceKeepAttr||(Sr(ke,l),!je.keepAttr))continue;if(!pe&&We(/\/>/i,b)){Sr(ke,l);continue}B&&(b=$e(b,A," "),b=$e(b,q," "),b=$e(b,L," "));let An=oe(l.nodeName);if(xn(An,ne,b)){if(N&&(ne==="id"||ne==="name")&&(Sr(ke,l),b=Se+b),G&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!Tt)switch(v.getAttributeType(An,ne)){case"TrustedHTML":{b=G.createHTML(b);break}case"TrustedScriptURL":{b=G.createScriptURL(b);break}}try{Tt?l.setAttributeNS(Tt,ke,b):l.setAttribute(ke,b),ea(t.removed)}catch{}}}nt("afterSanitizeAttributes",l,null)},Po=function l(x){let b,ne=wn(x);for(nt("beforeSanitizeShadowDOM",x,null);b=ne.nextNode();)nt("uponSanitizeShadowNode",b,null),!Tn(b)&&(b.content instanceof o&&l(b.content),Sn(b));nt("afterSanitizeShadowDOM",x,null)};return t.sanitize=function(l){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b,ne,Ae,Ue;if(et=!l,et&&(l=""),typeof l!="string"&&!Yt(l))if(typeof l.toString=="function"){if(l=l.toString(),typeof l!="string")throw Ot("dirty is not a string, aborting")}else throw Ot("toString is not a function");if(!t.isSupported)return l;if(Q||xr(x),t.removed=[],typeof l=="string"&&(me=!1),me){if(l.nodeName){let Tt=oe(l.nodeName);if(!W[Tt]||M[Tt])throw Ot("root node is forbidden and cannot be sanitized in-place")}}else if(l instanceof i)b=yn(""),ne=b.ownerDocument.importNode(l,!0),ne.nodeType===1&&ne.nodeName==="BODY"||ne.nodeName==="HTML"?b=ne:b.appendChild(ne);else{if(!R&&!B&&!z&&l.indexOf("<")===-1)return G&&ue?G.createHTML(l):l;if(b=yn(l),!b)return R?null:ue?te:""}b&&re&&wt(b.firstChild);let je=wn(me?l:b);for(;Ae=je.nextNode();)Tn(Ae)||(Ae.content instanceof o&&Po(Ae.content),Sn(Ae));if(me)return l;if(R){if(J)for(Ue=y.call(b.ownerDocument);b.firstChild;)Ue.appendChild(b.firstChild);else Ue=b;return(ae.shadowroot||ae.shadowrootmod)&&(Ue=E.call(r,Ue,!0)),Ue}let ke=z?b.outerHTML:b.innerHTML;return z&&W["!doctype"]&&b.ownerDocument&&b.ownerDocument.doctype&&b.ownerDocument.doctype.name&&We(la,b.ownerDocument.doctype.name)&&(ke=" +`+ke),B&&(ke=$e(ke,A," "),ke=$e(ke,q," "),ke=$e(ke,L," ")),G&&ue?G.createHTML(ke):ke},t.setConfig=function(l){xr(l),Q=!0},t.clearConfig=function(){Ke=null,Q=!1},t.isValidAttribute=function(l,x,b){Ke||xr({});let ne=oe(l),Ae=oe(x);return xn(ne,Ae,b)},t.addHook=function(l,x){typeof x=="function"&&(I[l]=I[l]||[],Dt(I[l],x))},t.removeHook=function(l){if(I[l])return ea(I[l])},t.removeHooks=function(l){I[l]&&(I[l]=[])},t.removeAllHooks=function(){I={}},t}var ua=ca();var Ru=Jt.alert;function ge(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():T}var H=ge();function vt(){return H.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function Nt(){return H.PROD==="1"}function Ut(){return H.PROD_API==="1"}function Qe(){if(H.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function da(){return typeof Deno<"u"}var Gu=ge().PROD==="1",Vu=ge().PROD!=="1";function ma(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}function Vr(){if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let e=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(e&&(e._isUserscript||e._isSafari))}else return!1}var ga={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",curentPlan:"\u5F53\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52A8\u7EED\u671F",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",sponsorLabel:"$1 \u8D77\u8D5E\u52A9\u5F00\u53D1\u8005",help:"\u5E2E\u52A9",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D\uFF0C\u518D\u70B9\u51FB\u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D\u5373\u53EF\u8BBE\u7F6E",browserShortcutsNoteForChrome:"\u7C7BChrome \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762\uFF0C\u5728`\u7BA1\u7406\u5FEB\u6377\u952E`\u9762\u677F(`chrome://extensions/shortcuts`)\u8BBE\u7F6E\uFF0C\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8DF3\u8F6C\u5230\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E\u683C\u5F0F\u4E3A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1: \u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1 & PDF\u6587\u6863\u7FFB\u8BD1","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7F51\u9875\u53CC\u8BED\u7FFB\u8BD1\u6269\u5C55\uFF0C\u540C\u65F6\u652F\u6301 PDF \u7FFB\u8BD1\uFF0C\u53CC\u8BED Epub \u7535\u5B50\u4E66\u5236\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u817E\u8BAF\u7FFB\u8BD1\u7B49\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\uFF0C\u514D\u8D39\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8BD1\u5E76\u9690\u85CF\u539F\u6587/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.toggleTranslationMask":"\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.donateContext":"\u4E86\u89E3\u8D5E\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5219\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875(\u4EC5\u8BD1\u6587)/\u663E\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7","fingers.0":"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478",mouseHoldKey:"+ {key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoverHoldKey:"\u9F20\u6807\u60AC\u505C\u540C\u65F6\u6309\u4E0B\u5FEB\u6377\u952E\u7FFB\u8BD1\u6BB5\u843D","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u6587\u6863",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",goAdvancedSettings:"\u53BB\u8FDB\u9636\u8BBE\u7F6E\u9875",goAdvancedInterfaceSettings:"\u53BB\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u8BBE\u7F6E\u9875\u9762",advanced:"\u8FDB\u9636\u8BBE\u7F6E",advancedDescription:"\u4E00\u822C\u65E0\u9700\u8BBE\u7F6E\uFF0C\u4FDD\u6301\u9ED8\u8BA4\u5373\u53EF\u3002\u4EC5\u5BF9\u4E8E\u66F4\u4E13\u4E1A\u7684\u7528\u6237\uFF0C\u63D0\u4F9B\u66F4\u4E2A\u6027\u5316\u7684\u8BBE\u7F6E\u9879\u3002",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00","display both the original text and the translation":"\u540C\u65F6\u663E\u793A\u539F\u6587\u548C\u8BD1\u6587","keyboard shortcuts":"\u952E\u76D8\u5FEB\u6377\u952E",modify:"\u4FEE\u6539\u5FEB\u6377\u952E",reset:"\u91CD\u7F6E",close:"\u5173\u95ED",homepage:"\u4E3B\u9875",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",changeToOnlyTranslationMode:"\u5207\u6362\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u5207\u6362\u4E3A\u53CC\u8BED\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",unknownError:"\u672A\u77E5\u9519\u8BEF",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",needActionForOptions:"(\u9700\u8BBE\u7F6E)",translationEngine:"\u5F15\u64CE\u9009\u9879",sourceLanguage:"\u539F\u6587\u8BED\u8A00",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",forThisSite:"\u5F53\u524D\u7F51\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1 {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8BD1 {language}",alwaysTranslateSomeSite:"\u603B\u662F\u7FFB\u8BD1 {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8BD1 {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u6DFB\u52A0",default:"\u9ED8\u8BA4",forThisLanguage:"\u9488\u5BF9\u8BE5\u8BED\u8A00\uFF1A","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91","translate other languages into specific language":"\u5C06\u5176\u4ED6\u8BED\u8A00\u7FFB\u8BD1\u4E3A\u4F60\u8BBE\u7F6E\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1",language:"\u8BED\u8A00","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",Error:"\u9519\u8BEF",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",interface:"\u754C\u9762\u8BBE\u7F6E",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8BD1\u9875\u9762\u6807\u9898","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1",enableUserscriptPagePopup:"\u5728\u9875\u9762\u4E0A\u663E\u793A\u60AC\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528\u5FEB\u6377\u952E/{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8BD1\u6587\u6837\u5F0F",currentUrl:"\u5F53\u524D\u7F51\u5740",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664","languages.auto":"\u81EA\u52A8\u68C0\u6D4B",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",upload:"\u4E0A\u4F20",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",download:"\u4E0B\u8F7D",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",deleteFail:"\u5220\u9664\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",backupToCloudDescription:"\u624B\u52A8\u4E0A\u4F20\u6216\u6062\u590D\u5907\u4EFD\u6587\u4EF6\uFF0C\u6700\u591A\u5141\u8BB83\u4E2A\u4E0D\u540C\u7684\u5907\u4EFD",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",updatedAt:"\u66F4\u65B0\u4E8E {date}",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u9891\u9053",joinTelegramChannel:"\u5173\u6CE8 Telegram \u9891\u9053\u83B7\u53D6\u6700\u65B0\u66F4\u65B0",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",autoSync:"\u81EA\u52A8\u5B9A\u65F6\u540C\u6B65",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863","edit border color":"\u4FEE\u6539\u8FB9\u6846\u989C\u8272",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",enableSubtitle:"\u5F00\u542F\u5B57\u5E55\u7FFB\u8BD1",enableSubtitleDescription:"\u9488\u5BF9 youtube \u7B49\u7F51\u7AD9\u7684\u5B57\u5E55\u533A\u57DF\u5F00\u542F\u7FFB\u8BD1",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",enableSearchEnhancement:"\u542F\u7528\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A",enableSearchEnhancementDescription:"\u5F00\u542F\u540E\uFF0C\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\u793E\u533A\uFF09\u53F3\u8FB9\u680F\u81EA\u52A8\u663E\u793A\u5BF9\u5E94\u82F1\u6587\u5173\u952E\u8BCD\u7684\u201C\u8C37\u6B4C\u65B0\u95FB\u201D\u641C\u7D22\u7ED3\u679C\u3002",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerMinute":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u5206\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u8350\uFF09, \u5C06\u4F1A\u5728\u5355\u72EC\u4F5C\u4E3A\u4E00\u6BB5\u53D1\u9001\u7ED9 OpenAI","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740",enabledExtension:"\u542F\u7528\u6269\u5C55",clickToDisableExtension:"\u70B9\u51FB\u7981\u7528\u6269\u5C55",clickToEnableExtension:"\u70B9\u51FB\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",modifyMouseHoverKey:"\u4FEE\u6539\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u8BBE\u7F6E",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",disableTint:"* \u4F60\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u542F\u7528\u3002",searchEnhancementNotes:"\u6211\u4EEC\u53D1\u73B0\uFF0C\u4E2D\u6587\u5173\u952E\u8BCD\u548C\u82F1\u6587\u5173\u952E\u8BCD\u7684\u65B0\u95FB\u7ED3\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u542F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u529F\u80FD\u540E\uFF0C\u6211\u4EEC\u4F1A\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\u7F51\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52A8\u7528\u82F1\u6587\u4E3A\u4F60\u641C\u7D22\u540C\u6837\u7684\u5173\u952E\u8BCD\u5E76\u5C55\u793A\u5728\u53F3\u4FA7\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8BE5\u529F\u80FD\u7684\u8BDD\uFF0C\u53EF\u4EE5\u9009\u62E9\u7981\u7528\u5B83\u3002",option:"\u8BBE\u7F6E",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",needLoginAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u81EA\u5B9A\u4E49)",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",onetime_7day:"7 \u5929\u4F53\u9A8C\u5305",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradePlan:"\u70B9\u6B64\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL \u548C OpenAI \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8BD1",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u8BBE\u7F6E\u5176\u4ED6\u5FEB\u6377\u952E\u6765\u89E6\u53D1\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1"};var pa={nologin:"\u672A\u767B\u9304",login:"\u767B\u9304",manageAccount:"\u7BA1\u7406\u8CEC\u6236",logout:"\u9000\u51FA",curentPlan:"\u7576\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u671F",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u64CA\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u8AAA\u660E",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u9644\u52A0\u5143\u4EF6\u7BA1\u7406\u9801\u9762 \u300Cabout:addons\u300D\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u5716\u793A\u300D\uFF0C\u518D\u9EDE\u9078\u300C\u7BA1\u7406\u64F4\u5145\u5957\u4EF6\u5FEB\u901F\u9375\u300D\u5373\u53EF\u8A2D\u5B9A",browserShortcutsNoteForChrome:"Chromium \u6838\u5FC3\u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u64F4\u5145\u529F\u80FD\u7BA1\u7406\u9801\u9762\uFF0C\u5728\u300C\u9375\u76E4\u5FEB\u901F\u9375\u300D\u9801\u9762(chrome://extensions/shortcuts)\u8A2D\u5B9A\uFF0C\u9EDE\u9078\u4E0B\u65B9\u6309\u9215\u524D\u5F80\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u901F\u9375\u683C\u5F0F\u70BA\uFF1A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F: \u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F & PDF\u6587\u6A94\u7FFB\u8B6F","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7DB2\u9801\u96D9\u8A9E\u7FFB\u8B6F\u64F4\u5C55\uFF0C\u540C\u6642\u652F\u6301 PDF \u7FFB\u8B6F\uFF0C\u96D9\u8A9E Epub \u96FB\u5B50\u66F8\u88FD\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u9A30\u8A0A\u7FFB\u8B6F\u7B49\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF0C\u514D\u8CBB\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8B6F\u4E26\u96B1\u85CF\u539F\u6587/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.toggleTranslationMask":"\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.donateContext":"\u4E86\u89E3\u8D0A\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u5247\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u6642\u89F8\u78B0\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801(\u50C5\u8B6F\u6587)/\u986F\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304","fingers.0":"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478",mouseHoldKey:"+ {key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u6377\u9375(\u6253\u958B\u8A2D\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoverHoldKey:"\u9F20\u6A19\u6ED1\u904E\u540C\u6642\u6309\u4E0B X \u9375\u7FFB\u8B6F\u6BB5\u843D","mouse-translate":"\u9F20\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",goAdvancedSettings:"\u524D\u5F80\u9032\u968E\u8A2D\u5B9A\u9801\u9762",goAdvancedInterfaceSettings:"\u524D\u5F80\u81EA\u8A02\u8A2D\u5B9A\u9801\u9762",advanced:"\u9032\u968E\u8A2D\u5B9A",advancedDescription:"\u6B63\u5E38\u60C5\u6CC1\u7121\u9700\u8A2D\u5B9A\uFF0C\u4FDD\u6301\u9810\u8A2D\u5373\u53EF\u3002\u50C5\u91DD\u5C0D\u66F4\u5C08\u696D\u7684\u4F7F\u7528\u8005\uFF0C\u63D0\u4F9B\u66F4\u500B\u4EBA\u5316\u7684\u8A2D\u5B9A\u9805\u76EE\u3002",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00","display both the original text and the translation":"\u540C\u6642\u986F\u793A\u539F\u6587\u548C\u8B6F\u6587","keyboard shortcuts":"\u9375\u76E4\u5FEB\u901F\u9375",modify:"\u8B8A\u66F4\u5FEB\u901F\u9375",reset:"\u91CD\u8A2D",close:"\u95DC\u9589",homepage:"\u9996\u9801",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",changeToOnlyTranslationMode:"\u5207\u63DB\u70BA\u50C5\u986F\u793A\u8B6F\u6587",changeToDualTranslationMode:"\u5207\u63DB\u70BA\u96D9\u8A9E\u7FFB\u8B6F",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:"\u672A\u77E5\u7684\u932F\u8AA4",canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u9078\u9805",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",needActionForOptions:"(\u9700\u8A2D\u5B9A)",translationEngine:"\u5F15\u64CE\u9078\u9805",sourceLanguage:"\u539F\u6587\u8A9E\u8A00",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",forThisSite:"\u7576\u524D\u7DB2\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8B6F {language}",alwaysTranslateSomeSite:"\u7E3D\u662F\u7FFB\u8B6F {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8B6F {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u65B0\u589E",default:"\u9810\u8A2D",forThisLanguage:"\u91DD\u5C0D\u8A72\u8A9E\u8A00\uFF1A","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F","translate other languages into specific language":"\u5C07\u5176\u5B83\u8A9E\u8A00\u7FFB\u8B6F\u70BA\u4F60\u8A2D\u5B9A\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9",language:"\u8A9E\u8A00","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",Error:"\u932F\u8AA4",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",interface:"\u4ECB\u9762\u8A2D\u5B9A",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65",syncToAccount:"\u540C\u6B65\u5230\u8CEC\u6236",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u8CEC\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u8A2D\u5099\u4E4B\u9593\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u8CEC\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u8CEC\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8B6F","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9E\u99AC\u905C\u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8B6F\u9801\u9762\u6A19\u984C","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F",enableUserscriptPagePopup:"\u5728\u9801\u9762\u4E0A\u986F\u793A\u61F8\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528\u5FEB\u901F\u9375/{touch}\u518D\u6B21\u986F\u793A\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5EFA\u8B70\u5C07\u672C\u8A2D\u5B9A\u9801\u9762\u52A0\u5165\u81F3\u6211\u7684\u6700\u611B","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8B6F\u6587\u6A23\u5F0F",currentUrl:"\u76EE\u524D\u7DB2\u5740",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6E96\u3002",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",upload:"\u4E0A\u50B3",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",download:"\u4E0B\u8F09",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",deleteFail:"\u522A\u9664\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",backupToCloudDescription:"\u624B\u52D5\u4E0A\u50B3\u6216\u9084\u539F\u5099\u4EFD\u6A94\u6848\uFF0C\u6700\u591A\u5141\u8A31 3 \u500B\u4E0D\u540C\u7684\u5099\u4EFD",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",updatedAt:"\u66F4\u65B0\u65BC {date}",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u4EEC\u7684<3>Twitter\uFF0C<4>Telegram \u983B\u9053\u4EE5\u53CA\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u90F5\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u983B\u9053",joinTelegramChannel:"\u95DC\u6CE8 Telegram \u983B\u9053\u77AD\u89E3\u66F4\u65B0\u8CC7\u8A0A",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",autoSync:"\u81EA\u52D5\u5B9A\u6642\u540C\u6B65",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6","edit border color":"\u8B8A\u66F4\u908A\u6846\u8272\u5F69",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",enableSubtitle:"\u958B\u555F\u5B57\u5E55\u7FFB\u8B6F",enableSubtitleDescription:"\u91DD\u5C0D youtube \u7B49\u7DB2\u7AD9\u7684\u5B57\u5E55\u5340\u57DF\u958B\u555F\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",enableSearchEnhancement:"\u958B\u555F\u641C\u7D22\u589E\u5F37",enableSearchEnhancementDescription:"\u4E2D\u6587\u641C\u7D22\u8C37\u6B4C\u6703\u5728\u53F3\u908A\u51FA\u73FE\u82F1\u6587\u7248\u8C37\u6B4C\u65B0\u805E",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerMinute":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u5206\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u4EFD\u50B3\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u85A6\uFF09, \u5C07\u6703\u5728\u55AE\u7368\u4F5C\u70BA\u4E00\u6BB5\u767C\u9001\u7D66 OpenAI","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u50B3\u9001\u767C\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",clickToDisableExtension:"\u9EDE\u9078\u505C\u7528\u5957\u4EF6",clickToEnableExtension:"\u9EDE\u9078\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u9F20\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u7F6E\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u5B57\u7B26\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8B58\u5225\u70BA\u89F8\u767C\u5B57\u7B26\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u7981\u7528\u78BA\u8A8D",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",disableTint:"* \u60A8\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u555F\u7528\u3002",searchEnhancementNotes:"\u6211\u5011\u767C\u73FE\uFF0C\u4E2D\u6587\u95DC\u9375\u8A5E\u548C\u82F1\u6587\u95DC\u9375\u8A5E\u7684\u65B0\u805E\u7D50\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u555F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u4FE1\u606F\u589E\u5F37\u529F\u80FD\u5F8C\uFF0C\u6211\u5011\u6703\u5728\u652F\u6301\u7684\u7DB2\u7AD9\uFF08\u8C37\u6B4C\u65B0\u805E\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u95DC\u9375\u8A5E\uFF09\uFF0C\u96EA\u7403\uFF0C\u6771\u65B9\u8CA1\u5BCC\u7DB2\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52D5\u7528\u82F1\u6587\u70BA\u4F60\u641C\u7D22\u540C\u6A23\u7684\u95DC\u9375\u8A5E\u4E26\u5C55\u793A\u5728\u53F3\u5074\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8A72\u529F\u80FD\u7684\u8A71\uFF0C\u53EF\u4EE5\u9078\u64C7\u7981\u7528\u5B83\u3002",option:"\u9078\u9805",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL \u548C OpenAI \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8B6F",currentAccount:"\u7576\u524D\u8CEC\u6236"};var ha={nologin:"Not logged in",login:"Login",manageAccount:"Manage Account",logout:"Logout",curentPlan:"Current Plan",endAt:"Expires",endAuto:"Auto Renew",lineBreakMaxTextCount:"Maximum number of characters allowed per sentence after line break","translate-pdf":"Click to translate PDF","noSupportTranslate-pdf":"The script is not supported, please use a plugin.","translate-firefox-local-pdf":"Click to upload PDF",enableLineBreak:"Whether to turn on automatic line wrapping for long paragraphs",sponsorLabel:"Sponsoring developers from $1 (monthly or one-time)",help:"Help",browserShortcutsNoteForFirefox:`To modify the shortcut key in Firefox browser, you need to open the extension management page 'about: addons', then click "Settings", and then click "Management shortcut key" to set it`,browserShortcutsNoteForChrome:"To modify the shortcut key in Chrome browser, you need to open the extension management page` chrome://extensions/shortcuts `) Settings, click the button below to jump to the shortcut key management page.",browserShortcutsSucks:"Please enter the shortcut key manually in the format:",enableLineBreakDescription:"After opening, a line break will be inserted at the end of each sentence in a long paragraph for easy reading","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate: Web Page&PDF Translation","browser.brandDescription":"Bilingual web page translation, also supports PDF translation, bilingual Epub eBook translation, free to use.","browser.toggleTranslatePage":"Toggle Translate Page","browser.toggleTranslateTheWholePage":"Toggle Translate the Whole Page","browser.toggleOnlyTransation":"Toggle Translate and Hide Original Text","browser.toggleTranslateToThePageEndImmediately":"Toggle Translate to the Bottom of the Page Immediately","browser.toggleTranslateTheMainPage":"Toggle Translate the Main Page","browser.openOptionsPage":"Open Settings Page","browser.toggleTranslationMask":"Toggle translation mask style","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-book","browser.openEbookBuilder":"Make Dual EPUB ebook","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.donateContext":"Sponsor Benefits","browser.translateLocalSubtitleFile":"Translate Subtitle File",confirmResetConfig:"Are you sure you want to reset the settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Create right button menu",toggleBeta:"Enable Beta experimental features",betaDescription:"Enable features that are still experimental, and translation services that are in testing. Join the <1>Telegram group to learn more.",translationLineBreakSettingDescription:"The always line break feature is suitable for layouts with less content, making the layout more neat and tidy. (Use smart line breaks for long paragraphs with more content (more than {count} characters) for saving space)",tempTranslateDomainTitle:"Open the translation time temporarily",tempTranslateDomainDescription:"When a page is translated manually, turn it temporarily on as automatic translation",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",toggleTranslatePageWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide translation display",toggleTranslationMaskWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide the blur effect of the translation",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"Multi-finger touch to show/hide only translation display",addUrlDescription:"The domain name is available and wildcard is supported e.g.: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import configuration from file",export:"Export to file",toggleDebug:"Print debug logs on the console","fingers.0":"Close","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch",mouseHoldKey:"+ {key} translate this paragraph",mouseHoldKeyAuto:"Translate the paragraph directly",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate this paragraph",mouseHoverHoldKey:"Mouse over and press X key to translate paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"All settings reset successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",goAdvancedSettings:"Go to Advanced Settings Page",goAdvancedInterfaceSettings:"Go to Advanced Custom Settings Page",advanced:"Advanced",advancedDescription:"Normally no settings are needed, keep the default. More personalized settings are provided for professional users only.",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"Translate to the bottom of the page immediately after opening the page?",feedback:"Feedback",toggleTranslatePage:"Toggle Translate",translateToThePageEndImmediatelyDescription:"Enabled will translate from the top to the bottom of the page immediately after opening. Disable will translate while reading. (Not recommended to enable)","translate all areas of the page":"Whether to translate all areas of the web page",translationAreaDescription:"When enabled, all areas of the entire web page will be translated. Disabled will use the default smart recognition and translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Directly translate the number of characters in front of the page without waiting to scroll to the visible area","interface language":"Interface language","display both the original text and the translation":"Display both the original text and the translation","keyboard shortcuts":"Keyboard shortcuts",modify:"Edit",reset:"Reset",close:"Close",homepage:"Home Page",more:"More",moreOptions:"Expand more custom settings",translateTheWholePage:"Translate the whole page area",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Dual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"Main areas of intelligent translation","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly implement the interface of the Greasemonkey extension, please use another browser that <1>supports the Greasemonkey extension such as (Firefox Nightly version)",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:"Unknown Error",canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha enabled successfully",disableAlphaSuccess:"Alpha has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(to set up)",goSettings:"to set up",needActionForOptions:"(need to set)",translationEngine:"Engine Options",sourceLanguage:"Original language",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",forThisSite:"Site:",alwaysTranslateSomeLanguage:"Always translate {language}",neverTranslateSomeLanguage:"Never translate {language}",alwaysTranslateSomeSite:"Always translate {hostname}",neverTranslateSomeSite:"Never translate {hostname}",alwaysTranslateSomeSiteOrWildSite:"Always translate this site",alwaysTranslateSomePage:"Always translate this page",add:"Add",default:"Default",forThisLanguage:"For This Language:","add url":"Add URL",edit:"Edit","translate other languages into specific language":"Translate other languages into the language you set","select translation service":"Select a translation service",language:"Language","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",Error:"Error",allowCacheTranslations:"Enable local translation caching (reduce translation requests for duplicate paragraphs)","translation display":"Translation display style","select diplay style":"Please refer to the following examples",interface:"Interface Settings",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dashed underline","translationTheme.dotted":"Dotted Underline","translationTheme.dashedBorder":"Dashed Border","translationTheme.solidBorder":"Dashed Border","translationTheme.underline":"Straight underline","translationTheme.mask":"Blur effect","translationTheme.opacity":"Opacity effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weakening","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dashed underline","translationTheme.nativeDashed":"System Dash Underline","translationTheme.nativeDotted":"System Dotted Underline","translationTheme.nativeUnderline":"System Straight Line Underline","translationTheme.wavy":"Squiggle","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeeplX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"Translate page title","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped",enableUserscriptPagePopup:"Always show Popup windows on the page",enableUserscriptPagePopupDescription:"Three-finger touch to show the Popup.","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",currentUrl:"Current URL",confirm:"Save",cancel:"Cancel",delete:"Delete","languages.auto":"Detect Language",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",authFail:"Authorization Failed",syncTitle:"Please select a file operation",import_hint:"Import",upload:"Upload",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",download:"Download",importSuccess:"Upload Success",importFail:"Import Failed",deleteFail:"Delete Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",backupToCloudDescription:"Upload or restore backup files manually, up to 3 different backups",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",updatedAt:"Updated at {date}",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. You can choose to subscribe to <6>Pro membership to use the out-of-the-box DeepL and OpenAI translation.

You can also follow out <3>Twitter, <4>Telegram Channel, and <5>Email Subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free and we hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. ",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",qqCommunities:"QQ Channel",joinTelegramChannel:"Subscribe to our Telegram channel to get the latest updates",feedbackAndJoin:"Feedback",autoSync:"Auto-Time Sync",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization","edit border color":"Edit border color",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",enableSubtitle:"enableSubtitleTranslation",enableSubtitleDescription:"Enable translations for subtitle areas on sites like youtube",isTranslateTitleDescription:"When enabled, the page title will be translated",enableSearchEnhancement:"Enable Search Enhancement",enableSearchEnhancementDescription:'After enabling, the right sidebar will automatically display "Google News" search results for corresponding English keywords on supported websites (such as Google News, Google Search (partial keywords), Xueqiu, East Money, Futu, Tiger Community).',verifyService:"Verify service",verified:"Successful","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerMinute":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next minute. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"Requests exceed this limit will be queued until the next seconds.","description.prompt":"Send as a user to OpenAI conversation, where {{text}} indicates the text of the paragraph,{{from}} indicates the language of the paragraph,{{to}} indicates the target language, you can omit {{text}}, if so, it'll be sent as a separated message","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"Send the conversation to OpenAI as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the original language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"Default is\uFF1Ageneral. Only set up if there is an API console open domain translation, support fields see <1>Here ","field.scene":"Scene","description.scene":"Default is\uFF1Ageneral. Only set up if there is an API console open Machine Translation Professional, support fields see<1>Here","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please provide a URL with the specific path.",enabledExtension:"Enable extensions",clickToDisableExtension:"Click to disable extension",clickToEnableExtension:"Click to enable the extension",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter customization content",inputOptions:"Writing",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter for translating part of the input box.",inputStartingTriggerKeyDescription:"When you don't need to translate the entire input box, the delimiter allows you to only translate the portion from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means only translating the portion from {startingKey}ja to the end of the input box.",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting is no prefix required, the partial text translation function of the input box cannot be used temporarily.",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Start the translation by quickly pressing 3 times {trailingKey}.",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time (milliseconds) for the input to end the combo trigger",spaceKey:"",noneKey:"Translate the entire text box without prefixes",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement in the following URL",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",clickToSeeQuickDemo:"Click to expand the 30s tutorial video",inputHelperInfo:`Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001". -Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.`,reloadCurrentPage:"Please refresh the current page before starting translation",noLocalFilePermissionForPDF:"No permission to read local files. Please click the button above and upload the local file.",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate the current page",retryAllParagraphs:"Retry all paragraphs",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Noops, something went wrong",disableConfirm:"Search Enhancement Settings",disableOnce:"Disable Once",disableGlobal:"Disable Forever",disableTint:"* You can re-enable in {option}.",searchEnhancementNotes:"We have discovered notable disparities in news results between Chinese and English keywords. By activating the immersive translation Bilingual Display Enhancement feature, we will automatically search for equivalent English keywords and display them on the right side of supported websites (e.g., Google News, Google Search (partial keywords), xueqiu, East Money, Futu, Tiger). You can disable this feature if you don't need it.",option:"Settings",saveSettings:"Save",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"Enable quick press 3 times {trailingKey}, directly translate the entire input box to {inputTargetLanguage}.",enableInputTranslationWithoutTriggerKeyDescription:"To specify the target language, please add a language code at the beginning, such as: ja Hello world",mouseHoverShortcutPlaceholder:"e.g. Shift",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",needLoginAction:"(Premium or custom)",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",daily:"Daily Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",profile:"Profile",billing:"Billing",onetime_7day:"7-day Trial Pack",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt} and will not auto-renew",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly pro membership",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"Current plan: {plan}, will expire on {endAt}, will not auto-renew after expiration.
<1>Enable consecutive annual plan",upgradePlan:"Click here to upgrade to Pro membership",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",upgradeToPro:"Upgrade to Pro","popup.openPro":"Enjoy unrestricted access to DeepL and OpenAI translations after upgrading to Pro Membership. Click here to upgrade","popup.openProForPro":"You are a Pro member, you can directly use DeepL and OpenAI translations",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You have just triggered the immersive translate of the input box by quickly tapping the space key 3 times. The content of the input box will be translated into the default target language.

If this was a mistake, don't worry. You can choose to disable it this time or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show again",disableInputTranslationTips:"* You can also set other shortcuts in {option}, {learnMore}.",learnMore:"Learn more",continueEnalbeInputTranslation:"Continue to enable input translation"};var Hs=[{code:"zh-CN",messages:ma},{code:"zh-TW",messages:ga},{code:"en",messages:pa}];var ut={};for(let e of Hs)ut[e.code]=e.messages;var dt="Immersive Translate",xe="immersive-translate",fa="pdf/index.html";var O="immersiveTranslate",or="759003177173-mfm15s5nd77vfmo6e7lanof1emnanf0e.apps.googleusercontent.com",vt=O+"GoogleAccessToken",ba=O+"AuthFlow",ir="immersive-translate-config-latest.json",nd=O+"AuthState",ad=O+"IframeMessage",od=O+"WaitForRateLimit",ya=O+"DocumentMessageAsk",id=O+"DocumentMessageTellThirdParty",sd=O+"showError",ld=O+"DocumentMessageThirdPartyTell",cd=O+"DocumentMessageEventUpload",Gs=O+"DocumentMessageHandler",ud=`${O}Container`,dd=`${O}SpecifiedContainer`,sr="buildinConfig",Bt="localConfig",Vr="openOptionsPage";var $r="translateLocalPdfFile",wa="donateContext",Yr="openEbookViewer",Qr="openEbookBuilder",Ta="openSubtitleBuilder",md=`${O}PageTranslatedStatus`,gd=`${O}PageUrlChanged`,pd=`${O}ReceiveCommand`,hd=O+"LastUseMouseHoverTime",fd=O+"LastUseInputTime",xa=O+"LastUseManualTranslatePageTime",bd=`${O}PopupReceiveMessage`,Vs="immersivetranslate.com",$s="config.immersivetranslate.com",yd=`https://${Vs}/`,wd=`https://${$s}/default_config.json`,Td=`${O}Mark`;var xd=`${O}Root`,vd=`data-${xe}-effect`,Sd=`data-${xe}-translation-element-mark`,Ad=`${O}TranslationElementMark`,kd=`${O}TranslatedMark`,Cd=`${O}ParagraphId`,Pd=`${O}LoadingId`,_d=`data-${xe}-loading-id`,Ed=`${O}ErrorId`,Md=`data-${xe}-error-id`,Ld=`${O}AtomicBlockMark`,Rd=`${O}ExcludeMark`,Id=`data-${xe}-exclude-mark`,Dd=`${O}StayOriginalMark`,Od=`${O}PreWhitespaceMark`,Nd=`${O}InlineMark`,Ud=`${O}BlockMark`,Bd=`${O}Left`,Fd=`${O}Right`,jd=`${O}Width`,qd=`${O}Height`,Kd=`${O}Top`,Wd=`${O}FontSize`;var zd=`${O}GlobalStyleMark`,Ys=["@","#"];var Hd=`${xe}-target-wrapper`,Gd=`${xe}-pdf-target-container`,Vd=`${xe}-target-inner`,$d=`${xe}-source-wrapper`,Yd=`${xe}-target-translation-block-wrapper`,Qd=`${xe}-root-translation-theme`,Zd=`${O}RootTranslationTheme`,Jd=`${xe}-target-translation-vertical-block-wrapper`,Xd=`${xe}-target-translation-pdf-block-wrapper`,em=`${xe}-target-translation-pre-whitespace`,tm=`${xe}-target-translation-inline-wrapper`;var Ft=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","ru","ar","it","ms","id","vi","af","th","ur","yue","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","nl","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu"];var lr="zh-CN";var ha=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],Qs={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},deepl:{name:"DeepL",homepage:"https://www.deepl.com/translator",docUrl:"https://immersivetranslate.com/docs/services/deepL/",providers:[{name:"pro",nameKey:"deepLProName",descriptionKey:"deepLProDescription",descriptionKeyForNormal:"deeplProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"deepLCustomName",descriptionKey:"deepLCustomDescription",descriptionLink1:"https://www.deepl.com/translator",descriptionLink2:"https://immersivetranslate.com/docs/services/deepL/"}],allProps:[{name:"authKey",providers:["custom"],label:"Auth Key",required:!0,type:"password"}]},openai:{name:"Open AI",homepage:"https://openai.com/api/",docUrl:"https://immersivetranslate.com/docs/services/openai/",providers:[{name:"pro",nameKey:"openaiProName",descriptionKey:"openaiProDescription",descriptionKeyForNormal:"openaiProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"openaiCustomName",descriptionKey:"openaiCustomDescription",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password"},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"openai-model-select",default:"gpt-3.5-turbo-0613",options:[{providers:["custom","pro"],label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{providers:["custom","pro"],label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{providers:["custom"],label:"gpt-4",value:"gpt-4"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.limitPerSecond",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.openai.com/v1/chat/completions",descriptionKey:"description.apiUrl",optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"text",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.`,reloadCurrentPage:"Please refresh the current page before starting translation",noLocalFilePermissionForPDF:"No permission to read local files. Please click the button above and upload the local file.",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate the current page",retryAllParagraphs:"Retry all paragraphs",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Noops, something went wrong",disableConfirm:"Search Enhancement Settings",disableOnce:"Disable Once",disableGlobal:"Disable Forever",disableTint:"* You can re-enable in {option}.",searchEnhancementNotes:"We have discovered notable disparities in news results between Chinese and English keywords. By activating the immersive translation Bilingual Display Enhancement feature, we will automatically search for equivalent English keywords and display them on the right side of supported websites (e.g., Google News, Google Search (partial keywords), xueqiu, East Money, Futu, Tiger). You can disable this feature if you don't need it.",option:"Settings",saveSettings:"Save",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"Enable quick press 3 times {trailingKey}, directly translate the entire input box to {inputTargetLanguage}.",enableInputTranslationWithoutTriggerKeyDescription:"To specify the target language, please add a language code at the beginning, such as: ja Hello world",mouseHoverShortcutPlaceholder:"e.g. Shift",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",needLoginAction:"(Premium or custom)",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",daily:"Daily Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",profile:"Profile",billing:"Billing",onetime_7day:"7-day Trial Pack",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt} and will not auto-renew",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly pro membership",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"Current plan: {plan}, will expire on {endAt}, will not auto-renew after expiration.
<1>Enable consecutive annual plan",upgradePlan:"Click here to upgrade to Pro membership",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",upgradeToPro:"Upgrade to Pro","popup.openPro":"Enjoy unrestricted access to DeepL and OpenAI translations after upgrading to Pro Membership. Click here to upgrade","popup.openProForPro":"You are a Pro member, you can directly use DeepL and OpenAI translations",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You have just triggered the immersive translate of the input box by quickly tapping the space key 3 times. The content of the input box will be translated into the default target language.

If this was a mistake, don't worry. You can choose to disable it this time or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show again",disableInputTranslationTips:"* You can also set other shortcuts in {option}, {learnMore}.",learnMore:"Learn more",continueEnalbeInputTranslation:"Continue to enable input translation"};var Hs=[{code:"zh-CN",messages:ga},{code:"zh-TW",messages:pa},{code:"en",messages:ha}];var ut={};for(let e of Hs)ut[e.code]=e.messages;var dt="Immersive Translate",xe="immersive-translate",ba="pdf/index.html";var O="immersiveTranslate",or="759003177173-mfm15s5nd77vfmo6e7lanof1emnanf0e.apps.googleusercontent.com",St=O+"GoogleAccessToken",ya=O+"AuthFlow",ir="immersive-translate-config-latest.json",nd=O+"AuthState",ad=O+"IframeMessage",od=O+"WaitForRateLimit",wa=O+"DocumentMessageAsk",id=O+"DocumentMessageTellThirdParty",sd=O+"showError",ld=O+"DocumentMessageThirdPartyTell",cd=O+"DocumentMessageEventUpload",Gs=O+"DocumentMessageHandler",ud=`${O}Container`,dd=`${O}SpecifiedContainer`,sr="buildinConfig",Bt="localConfig",$r="openOptionsPage";var Yr="translateLocalPdfFile",Ta="donateContext",Qr="openEbookViewer",Zr="openEbookBuilder",xa="openSubtitleBuilder",md=`${O}PageTranslatedStatus`,gd=`${O}PageUrlChanged`,pd=`${O}ReceiveCommand`,hd=O+"LastUseMouseHoverTime",fd=O+"LastUseInputTime",va=O+"LastUseManualTranslatePageTime",bd=`${O}PopupReceiveMessage`,Vs="immersivetranslate.com",$s="config.immersivetranslate.com",yd=`https://${Vs}/`,wd=`https://${$s}/default_config.json`,Td=`${O}Mark`;var xd=`${O}Root`,vd=`data-${xe}-effect`,Sd=`data-${xe}-translation-element-mark`,Ad=`${O}TranslationElementMark`,kd=`${O}TranslatedMark`,Cd=`${O}ParagraphId`,Pd=`${O}LoadingId`,_d=`data-${xe}-loading-id`,Ed=`${O}ErrorId`,Md=`data-${xe}-error-id`,Ld=`${O}AtomicBlockMark`,Rd=`${O}ExcludeMark`,Id=`data-${xe}-exclude-mark`,Dd=`${O}StayOriginalMark`,Od=`${O}PreWhitespaceMark`,Nd=`${O}InlineMark`,Ud=`${O}BlockMark`,Bd=`${O}Left`,Fd=`${O}Right`,jd=`${O}Width`,qd=`${O}Height`,Kd=`${O}Top`,Wd=`${O}FontSize`;var zd=`${O}GlobalStyleMark`,Ys=["@","#"];var Hd=`${xe}-target-wrapper`,Gd=`${xe}-pdf-target-container`,Vd=`${xe}-target-inner`,$d=`${xe}-source-wrapper`,Yd=`${xe}-target-translation-block-wrapper`,Qd=`${xe}-root-translation-theme`,Zd=`${O}RootTranslationTheme`,Jd=`${xe}-target-translation-vertical-block-wrapper`,Xd=`${xe}-target-translation-pdf-block-wrapper`,em=`${xe}-target-translation-pre-whitespace`,tm=`${xe}-target-translation-inline-wrapper`;var Ft=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","ru","ar","it","ms","id","vi","af","th","ur","yue","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","nl","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu"];var lr="zh-CN";var fa=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],Qs={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},deepl:{name:"DeepL",homepage:"https://www.deepl.com/translator",docUrl:"https://immersivetranslate.com/docs/services/deepL/",providers:[{name:"pro",nameKey:"deepLProName",descriptionKey:"deepLProDescription",descriptionKeyForNormal:"deeplProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"deepLCustomName",descriptionKey:"deepLCustomDescription",descriptionLink1:"https://www.deepl.com/translator",descriptionLink2:"https://immersivetranslate.com/docs/services/deepL/"}],allProps:[{name:"authKey",providers:["custom"],label:"Auth Key",required:!0,type:"password"}]},openai:{name:"Open AI",homepage:"https://openai.com/api/",docUrl:"https://immersivetranslate.com/docs/services/openai/",providers:[{name:"pro",nameKey:"openaiProName",descriptionKey:"openaiProDescription",descriptionKeyForNormal:"openaiProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"openaiCustomName",descriptionKey:"openaiCustomDescription",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password"},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"openai-model-select",default:"gpt-3.5-turbo-0613",options:[{providers:["custom","pro"],label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{providers:["custom","pro"],label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{providers:["custom"],label:"gpt-4",value:"gpt-4"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.limitPerSecond",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.openai.com/v1/chat/completions",descriptionKey:"description.apiUrl",optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"text",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`,optional:!0}]},transmart:{name:"Transmart",homepage:"https://transmart.qq.com/"},chatgpt:{name:"ChatGPT Web(3.5 mobile)",homepage:"https://chat.openai.com",beta:!0},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:"https://immersivetranslate.com/docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text"},{name:"appSecret",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/",docUrl:"https://immersivetranslate.com/docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text"},{name:"secretKey",required:!0,type:"password"}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:"https://immersivetranslate.com/docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text"},{name:"AccessKeySecret",required:!0,type:"password"},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:"https://immersivetranslate.com/docs/services/azure/",allProps:[{name:"region",required:!0,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password"}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:"https://immersivetranslate.com/docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text"},{name:"key",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:"https://immersivetranslate.com/docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text"},{name:"secretAccessKey",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:"https://immersivetranslate.com/docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password"}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:"https://immersivetranslate.com/docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:Ys,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:"https://immersivetranslate.com/docs/services/openL/",allProps:[...ha,{type:"password",name:"apikey",required:!0}],props:ha},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",alpha:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:"https://immersivetranslate.com/docs/services/niu",allProps:[{name:"APIKEY",required:!0,type:"password"}]}},rm={type:O+"ChildFrameToRootFrameIdentifier"};var va="user_info",nm=Nt()||Ut()?"https://api2.immersivetranslate.com":"https://test-api2.immersivetranslate.com",am=Nt()||Ut()?"https://immersivetranslate.com/accounts/login?from=plugin":"https://test.immersivetranslate.com/accounts/login?from=plugin",om=Nt()||Ut()?"https://immersivetranslate.com/profile":"https://test.immersivetranslate.com/profile",Zr=Nt()||Ut()?"https://immersivetranslate.com/pricing":"https://test.immersivetranslate.com/pricing",im=Zr+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",sm=Zr+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",lm=Zr+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal";var St=console,Jr=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let r=performance.now(),n=Math.round(r-this.#e),a=He.green;n>1e4?a=He.red:n>1e3&&(a=He.yellow),St.debug(He.dim(dt+" TIMING:"),t,"in",a(n+"ms")),this.#e=r}},jt=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&St.log(He.dim(dt+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&St.log(He.green(dt+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&St.warn(He.yellow(dt+" WARN:"),...t)}error(...t){this.#e<=3&&St.error(He.red(dt+" ERROR:"),...t)}fatal(...t){this.#e<=4&&St.error(He.red(dt+" FATAL:"),...t)}timing(){return this.level===0?new Jr:{reset:()=>{},stop:()=>{}}}},D=new jt;function mt(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t==="zh-hans")return"zh-CN";if(t==="zh-hant"||t==="zh-hk")return"zh-TW";if(t==="iw")return"he";if(t==="jv")return"jw";let r=Ft.map(a=>a.toLowerCase()),n=r.indexOf(t);if(n===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let a=r.indexOf(t);return a===-1?"auto":Ft[a]}else return"auto";else return Ft[n]}function Xr(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}var en="DENO",cr="CHROME",ur="FIREFOX";function Sa(e){let t=cr;try{let r=navigator?.userAgent||"";/firefox/i.test(r)||typeof InstallTrigger<"u"?t=ur:/deno/i.test(r)&&(t=en)}catch{}return e===cr&&t===cr||e===ur&&t===ur||e===en&&t===en}function Aa(){return Sa(cr)}function ka(){return typeof Deno<"u"}function Ca(){return Sa(ur)}var Pa={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},_a={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:Pa,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}}},tabs:{onUpdated:Pa,query:()=>{},sendMessage:()=>{}}};var g;ka()?g=_a:g=globalThis.immersiveTranslateBrowserAPI;var Ea=O+"SyncStoreKey_";function At(e,t){let r=Ea+e;return g.storage.sync.get(r).then(n=>n[r]===void 0?t:n[r])}function kt(e,t){let r=Ea+e;return g.storage.sync.set({[r]:t})}var Zs=O+"StoreKey_";function qt(e,t){let r=Zs+e;return g.storage.local.get(r).then(n=>n[r]===void 0?t:n[r])}var Ct=O+"CacheKey_";function Js(e,t){let r=Ct+e;return g.storage.local.get(r).then(n=>n[r]===void 0?t:n[r])}function Xs(){let e=g.storage.local.refresh;e&&e()}function el(e,t){let r=Ct+e;return g.storage.local.get(r).then(n=>{if(n[r]===void 0)return t;let{value:a,expired:o}=n[r];return o&&on.startsWith(Ct));if(r.length>0)return g.storage.local.remove(r)}}var Ma={get:Js,set:rl,getExpired:el,setExpired:tl,remove:nl,clear:al,refresh:Xs};var gt=class extends Error{details;constructor(t,r,n){super(r),this.name=t,n&&(this.details=n)}};async function dr(e){let t;if(e&&e.retry&&e.retry>0)try{t=await _r(La.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(r){throw r&&r.name==="RetryError"&&r.cause?r.cause:r}else t=await La(e);return t}async function La(e){e.body;let{url:t,responseType:r,...n}=e;r||(r="json"),n={mode:"cors",...n};let a=!0;e.fetchPolyfill&&(a=!1);let o=e.fetchPolyfill||fetch,s=3e5;if(e.timeout&&(s=e.timeout),a){let c=new AbortController,d=c.signal;setTimeout(()=>{c.abort()},s),n.signal=d}let i;try{i=await o(t,n)}catch(c){D.debug("fetch error",t,c);let d=c.message||"";throw c.message="\u7F51\u7EDC\u95EE\u9898\uFF0C\u65E0\u6CD5\u8FDE\u63A5\u5230\u670D\u52A1\uFF0C\u8BF7\u68C0\u67E5\u4F60\u7684\u4EE3\u7406\u6216\u672C\u5730\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u8BD5\u3002 "+d,c}if(i.ok&&i.status>=200&&i.status<400){if(r==="json")return await i.json();if(r==="text")return await i.text();if(r==="raw"){let c=await i.text(),d=Object.fromEntries([...i.headers.entries()]),u=i.url;return u||(i.headers.get("X-Final-URL")?u=i.headers.get("X-Final-URL"):u=t),{body:c,headers:d,status:i.status,statusText:i.statusText,url:u}}else if(r==="stream"){let c="",d;if(i.body&&i.body instanceof ReadableStream)for await(let u of ol(i.body)){let f=new TextDecoder().decode(u);c+=f;let _;for(;(_=c.indexOf(` -`))>=0;){let v=c.slice(0,_).trim();if(c=c.slice(_+1),v.startsWith("event:")||v==="")continue;let P="";if(v.startsWith("data:")&&(P=v.slice(5).trim()),P==="[DONE]")break;let ee;try{ee=JSON.parse(P??"")}catch(Z){D.debug("json error",Z);continue}d=ee}}return d}}else{let c;try{c=await i.text()}catch(v){D.error("parse response failed",v)}c&&D.error("fail response",c);let d="";c&&(d=c.slice(0,280));let u="\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u4EE3\u7801:"+i.status+": "+(i.statusText||"")+d,_=new URL(t).hostname.endsWith(".immersivetranslate.com");throw i.status===429?_?d.includes("quota exceeded")?u="ProQuota:"+d:u=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${d} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`:u=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A429\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${d}`:i.status===403?u=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A403\uFF0C \u8BF4\u660E\u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ${d}`:i.status===400?u=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A400\uFF0C \u8BF4\u660E\u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002 ${d}`:i.status===502?u=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A502\uFF0C \u8BF4\u660E\u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${d}`:i.status===401&&(u=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A401\uFF0C \u8BF4\u660E\u672A\u767B\u5F55\u6216\u767B\u5F55\u6001\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002 ${d}`),new gt("fetchError",u,c)}}async function*ol(e){let t=e.getReader();try{for(;;){let{done:r,value:n}=await t.read();if(r)return;yield n}}finally{t.releaseLock()}}var il=new Map;function Ra(e){let t=sl(64),r=new CustomEvent(ya,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(r),new Promise((n,a)=>{il.set(t,(o,s)=>{o?a(o):n(s)})})}function sl(e){let t="",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=r.length,a=0;for(;a","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};function Da(){return Ia.version}function Oa(){try{return globalThis.self!==globalThis.top}catch{return!0}}var Kt=new Map,pt=class{fromType;logger;constructor(t,r=!1){this.logger=new jt,r&&this.logger.setLevel("debug"),this.fromType=t,Kt.has(t)||(Kt.set(t,new Map),g.runtime.onMessage.addListener((n,a,o)=>{let s=n.from,i=n.to,c,d,u;a.tab&&a.tab.id&&(c=a.tab.id,s=`${s}:${c}`,d=a.tab.url,u=a.tab.active),this.logger.debug(`${n.to} received message [${n.payload.method}] from ${n.from}`,n.payload.data?n.payload.data:" ");let f=rn(i),{type:_,name:v}=f;if(_!==t)return!1;let P=rn(s),Z=Kt.get(_).get(v);if(!Z)return this.logger.debug(`no message handler for ${_}:${i}, but it's ok`),!1;let{messageHandler:m,sync:ve}=Z,G={type:t,name:P.name,id:c,url:d,active:u};if(ve){try{let te=m(n.payload,G);o({ok:!0,data:te})}catch(te){o({ok:!1,errorName:te.name,errorMessage:te.message,errorDetails:te.details})}return!1}else return m(n.payload,G).then(te=>{o({ok:!0,data:te})}).catch(te=>{o({ok:!1,errorName:te.name,errorMessage:te.message,errorDetails:te.details})}),!0}))}getConnection(t,r,n){let a=!1;n&&n.sync&&(a=!0);let o=this.fromType,s=Kt.get(o);if(s.has(t))return s.get(t).connectionInstance;{let i=new tn(`${o}:${t}`,this.logger);return Kt.get(o).set(t,{messageHandler:r,sync:a,connectionInstance:i}),i}}},tn=class{from;logger;constructor(t,r){this.from=t,this.logger=r}async sendMessage(t,r){let n=rn(t),{type:a,id:o}=n;if(a!=="content_script"){let s={to:t,from:this.from,payload:r};this.logger.debug(`${s.from} send message [${s.payload.method}] to ${s.to}`,s.payload.data?s.payload.data:" ");try{let i=await g.runtime.sendMessage(s);return Na(s,i,this.logger)}catch(i){if(a==="popup"){let c=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(r)}`;return this.logger.debug(c,r,t,i),Promise.resolve({message:c})}else throw i}}else{let s={from:this.from,to:t,payload:r};this.logger.debug(`${s.from} send message [${s.payload.method}] to ${s.to}`,s.payload.data?s.payload.data:" ");let i=await g.tabs.sendMessage(o,s);return Na(s,i,this.logger)}}};function Na(e,t,r){if(t){if(t.ok)return r.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new gt(t.errorName||"UnknownError",t.errorMessage||"Unknown error",t.errorDetails)}else throw new gt("noResponse","Unknown error")}function rn(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let r={type:t[0],name:t[1]};if(t[0]==="content_script"){let n=parseInt(t[2]);if(!isNaN(n))r.id=n;else throw new Error("tab id not a valid number")}return r}var mr;function cl(){return mr||(mr=new pt("content_script",!1).getConnection("pure_main",()=>{}),mr)}var Ua="G-MKMD9LWFTR";async function Fa(e,t){try{let r=ge();if(r.INSTALL_FROM==="firefox_store")return;let a=xt(),o=Oa(),s=r.PROD==="1",i="sitc4WmvShWYwfU0dANM3Q",c=await At("fakeUserId","");c||(c=await qt("fakeUserId",""),c&&await kt("fakeUserId",c));let d=Da(),u=new Date,f=await At("installedAt","");f||(f=await qt("installedAt",""),f&&await kt("installedAt",f)),c?f||(f=new Date(0).toISOString(),await kt("installedAt",f)):(c=ul(32),await kt("fakeUserId",c)),f||(f=u.toISOString(),await kt("installedAt",f));let _=new Date(f),v=Ba(_),P=Ba(u),ee=v===P,Z=u.getTime()-_.getTime()<7*24*60*60*1e3,m=`https://www.google-analytics.com/mp/collect?measurement_id=${Ua}&api_secret=${i}`;s||(m=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${Ua}&api_secret=${i}`);let ve="";typeof navigator<"u"&&(ve=window.navigator.userAgent);let G=tr.parse(ve),te=t.map(S=>{let y=S.params||{};return G.os&&(y.os_name=G.os.name||"unknown",y.os_version=G.os.version||"unknown",y.os_version_name=G.os.versionName||"unknown"),G.browser&&(y.browser_name=G.browser.name||"unknown",y.browser_version=G.browser.version||"unknown"),G.platform&&(y.platform_type=G.platform.type||"unknown"),G.engine&&(y.engine_name=G.engine.name||"unknown",y.engine_version=G.engine.version||"unknown"),d&&(y.version=d),r.INSTALL_FROM&&(y.install_from=r.INSTALL_FROM),v&&(y.install_day=dl(_)),y.userscript=a.toString(),ee?y.is_new_user_today="1":y.is_new_user_today="0",Z?y.is_new_user_this_week="1":y.is_new_user_this_week="0",o?y.main_frame=0:y.main_frame=1,{...S,params:y}}),be=await gl({responseType:"text",url:m,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:te})})}catch{}}function ul(e){let t="",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=r.length,a=0;for(;a",""]},custom:{placeholderDelimiters:["{","}"]},bing:{maxTextLengthPerRequest:1800,placeholderDelimiters:["","","b"]},deeplx:{limit:3},d:{immediateTranslationTextCount:0},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},openai:{placeholderDelimiters:["{{","}}","b"],immediateTranslationTextCount:3e3,translationDebounce:300,interval:1350,prompt:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +{{text}}`,optional:!0}]},transmart:{name:"Transmart",homepage:"https://transmart.qq.com/"},chatgpt:{name:"ChatGPT Web(3.5 mobile)",homepage:"https://chat.openai.com",beta:!0},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:"https://immersivetranslate.com/docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text"},{name:"appSecret",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/",docUrl:"https://immersivetranslate.com/docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text"},{name:"secretKey",required:!0,type:"password"}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:"https://immersivetranslate.com/docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text"},{name:"AccessKeySecret",required:!0,type:"password"},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:"https://immersivetranslate.com/docs/services/azure/",allProps:[{name:"region",required:!0,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password"}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:"https://immersivetranslate.com/docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text"},{name:"key",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:"https://immersivetranslate.com/docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text"},{name:"secretAccessKey",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:"https://immersivetranslate.com/docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password"}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:"https://immersivetranslate.com/docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:Ys,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:"https://immersivetranslate.com/docs/services/openL/",allProps:[...fa,{type:"password",name:"apikey",required:!0}],props:fa},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",alpha:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:"https://immersivetranslate.com/docs/services/niu",allProps:[{name:"APIKEY",required:!0,type:"password"}]}},rm={type:O+"ChildFrameToRootFrameIdentifier"};var cr="user_info",nm=Nt()||Ut()?"https://api2.immersivetranslate.com":"https://test-api2.immersivetranslate.com",am=Nt()||Ut()?"https://immersivetranslate.com/accounts/login?from=plugin":"https://test.immersivetranslate.com/accounts/login?from=plugin",om=Nt()||Ut()?"https://immersivetranslate.com/profile":"https://test.immersivetranslate.com/profile",Jr=Nt()||Ut()?"https://immersivetranslate.com/pricing":"https://test.immersivetranslate.com/pricing",im=Jr+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",sm=Jr+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",lm=Jr+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal";var At=console,Xr=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let r=performance.now(),n=Math.round(r-this.#e),a=He.green;n>1e4?a=He.red:n>1e3&&(a=He.yellow),At.debug(He.dim(dt+" TIMING:"),t,"in",a(n+"ms")),this.#e=r}},jt=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&At.log(He.dim(dt+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&At.log(He.green(dt+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&At.warn(He.yellow(dt+" WARN:"),...t)}error(...t){this.#e<=3&&At.error(He.red(dt+" ERROR:"),...t)}fatal(...t){this.#e<=4&&At.error(He.red(dt+" FATAL:"),...t)}timing(){return this.level===0?new Xr:{reset:()=>{},stop:()=>{}}}},D=new jt;function mt(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t==="zh-hans")return"zh-CN";if(t==="zh-hant"||t==="zh-hk")return"zh-TW";if(t==="iw")return"he";if(t==="jv")return"jw";let r=Ft.map(a=>a.toLowerCase()),n=r.indexOf(t);if(n===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let a=r.indexOf(t);return a===-1?"auto":Ft[a]}else return"auto";else return Ft[n]}function en(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}var tn="DENO",ur="CHROME",dr="FIREFOX";function Sa(e){let t=ur;try{let r=navigator?.userAgent||"";/firefox/i.test(r)||typeof InstallTrigger<"u"?t=dr:/deno/i.test(r)&&(t=tn)}catch{}return e===ur&&t===ur||e===dr&&t===dr||e===tn&&t===tn}function Aa(){return Sa(ur)}function ka(){return typeof Deno<"u"}function Ca(){return Sa(dr)}var Pa={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},_a={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:Pa,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}}},tabs:{onUpdated:Pa,query:()=>{},sendMessage:()=>{}}};var g;ka()?g=_a:g=globalThis.immersiveTranslateBrowserAPI;var Ea=O+"SyncStoreKey_";function kt(e,t){let r=Ea+e;return g.storage.sync.get(r).then(n=>n[r]===void 0?t:n[r])}function Ct(e,t){let r=Ea+e;return g.storage.sync.set({[r]:t})}var Zs=O+"StoreKey_";function qt(e,t){let r=Zs+e;return g.storage.local.get(r).then(n=>n[r]===void 0?t:n[r])}var gt=O+"CacheKey_";function Js(e,t){let r=gt+e;return g.storage.local.get(r).then(n=>n[r]===void 0?t:n[r])}function Xs(){let e=g.storage.local.refresh;e&&e()}function el(e,t){let r=gt+e;return g.storage.local.get(r).then(n=>{if(n[r]===void 0)return t;let{value:a,expired:o}=n[r];return o&&on.startsWith(gt)).filter(n=>n!==gt+cr);if(r.length>0)return g.storage.local.remove(r)}}var Ma={get:Js,set:rl,getExpired:el,setExpired:tl,remove:nl,clear:al,refresh:Xs};var pt=class extends Error{details;constructor(t,r,n){super(r),this.name=t,n&&(this.details=n)}};async function mr(e){let t;if(e&&e.retry&&e.retry>0)try{t=await Er(La.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(r){throw r&&r.name==="RetryError"&&r.cause?r.cause:r}else t=await La(e);return t}async function La(e){e.body;let{url:t,responseType:r,...n}=e;r||(r="json"),n={mode:"cors",...n};let a=!0;e.fetchPolyfill&&(a=!1);let o=e.fetchPolyfill||fetch,s=3e5;if(e.timeout&&(s=e.timeout),a){let c=new AbortController,d=c.signal;setTimeout(()=>{c.abort()},s),n.signal=d}let i;try{i=await o(t,n)}catch(c){D.debug("fetch error",t,c);let d=c.message||"";throw c.message="\u7F51\u7EDC\u95EE\u9898\uFF0C\u65E0\u6CD5\u8FDE\u63A5\u5230\u670D\u52A1\uFF0C\u8BF7\u68C0\u67E5\u4F60\u7684\u4EE3\u7406\u6216\u672C\u5730\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u8BD5\u3002 "+d,c}if(i.ok&&i.status>=200&&i.status<400){if(r==="json")return await i.json();if(r==="text")return await i.text();if(r==="raw"){let c=await i.text(),d=Object.fromEntries([...i.headers.entries()]),u=i.url;return u||(i.headers.get("X-Final-URL")?u=i.headers.get("X-Final-URL"):u=t),{body:c,headers:d,status:i.status,statusText:i.statusText,url:u}}else if(r==="stream"){let c="",d;if(i.body&&i.body instanceof ReadableStream)for await(let u of ol(i.body)){let f=new TextDecoder().decode(u);c+=f;let _;for(;(_=c.indexOf(` +`))>=0;){let v=c.slice(0,_).trim();if(c=c.slice(_+1),v.startsWith("event:")||v==="")continue;let P="";if(v.startsWith("data:")&&(P=v.slice(5).trim()),P==="[DONE]")break;let ee;try{ee=JSON.parse(P??"")}catch(Z){D.debug("json error",Z);continue}d=ee}}return d}}else{let c;try{c=await i.text()}catch(v){D.error("parse response failed",v)}c&&D.error("fail response",c);let d="";c&&(d=c.slice(0,280));let u="\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u4EE3\u7801:"+i.status+": "+(i.statusText||"")+d,_=new URL(t).hostname.endsWith(".immersivetranslate.com");throw i.status===429?_?d.includes("quota exceeded")?u="ProQuota:"+d:u=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${d} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`:u=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A429\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${d}`:i.status===403?u=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A403\uFF0C \u8BF4\u660E\u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ${d}`:i.status===400?u=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A400\uFF0C \u8BF4\u660E\u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002 ${d}`:i.status===502?u=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A502\uFF0C \u8BF4\u660E\u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${d}`:i.status===401&&(u=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A401\uFF0C \u8BF4\u660E\u672A\u767B\u5F55\u6216\u767B\u5F55\u6001\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002 ${d}`),new pt("fetchError",u,c)}}async function*ol(e){let t=e.getReader();try{for(;;){let{done:r,value:n}=await t.read();if(r)return;yield n}}finally{t.releaseLock()}}var il=new Map;function Ra(e){let t=sl(64),r=new CustomEvent(wa,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(r),new Promise((n,a)=>{il.set(t,(o,s)=>{o?a(o):n(s)})})}function sl(e){let t="",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=r.length,a=0;for(;a","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};function Da(){return Ia.version}function Oa(){try{return globalThis.self!==globalThis.top}catch{return!0}}var Kt=new Map,ht=class{fromType;logger;constructor(t,r=!1){this.logger=new jt,r&&this.logger.setLevel("debug"),this.fromType=t,Kt.has(t)||(Kt.set(t,new Map),g.runtime.onMessage.addListener((n,a,o)=>{let s=n.from,i=n.to,c,d,u;a.tab&&a.tab.id&&(c=a.tab.id,s=`${s}:${c}`,d=a.tab.url,u=a.tab.active),this.logger.debug(`${n.to} received message [${n.payload.method}] from ${n.from}`,n.payload.data?n.payload.data:" ");let f=nn(i),{type:_,name:v}=f;if(_!==t)return!1;let P=nn(s),Z=Kt.get(_).get(v);if(!Z)return this.logger.debug(`no message handler for ${_}:${i}, but it's ok`),!1;let{messageHandler:m,sync:ve}=Z,G={type:t,name:P.name,id:c,url:d,active:u};if(ve){try{let te=m(n.payload,G);o({ok:!0,data:te})}catch(te){o({ok:!1,errorName:te.name,errorMessage:te.message,errorDetails:te.details})}return!1}else return m(n.payload,G).then(te=>{o({ok:!0,data:te})}).catch(te=>{o({ok:!1,errorName:te.name,errorMessage:te.message,errorDetails:te.details})}),!0}))}getConnection(t,r,n){let a=!1;n&&n.sync&&(a=!0);let o=this.fromType,s=Kt.get(o);if(s.has(t))return s.get(t).connectionInstance;{let i=new rn(`${o}:${t}`,this.logger);return Kt.get(o).set(t,{messageHandler:r,sync:a,connectionInstance:i}),i}}},rn=class{from;logger;constructor(t,r){this.from=t,this.logger=r}async sendMessage(t,r){let n=nn(t),{type:a,id:o}=n;if(a!=="content_script"){let s={to:t,from:this.from,payload:r};this.logger.debug(`${s.from} send message [${s.payload.method}] to ${s.to}`,s.payload.data?s.payload.data:" ");try{let i=await g.runtime.sendMessage(s);return Na(s,i,this.logger)}catch(i){if(a==="popup"){let c=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(r)}`;return this.logger.debug(c,r,t,i),Promise.resolve({message:c})}else throw i}}else{let s={from:this.from,to:t,payload:r};this.logger.debug(`${s.from} send message [${s.payload.method}] to ${s.to}`,s.payload.data?s.payload.data:" ");let i=await g.tabs.sendMessage(o,s);return Na(s,i,this.logger)}}};function Na(e,t,r){if(t){if(t.ok)return r.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new pt(t.errorName||"UnknownError",t.errorMessage||"Unknown error",t.errorDetails)}else throw new pt("noResponse","Unknown error")}function nn(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let r={type:t[0],name:t[1]};if(t[0]==="content_script"){let n=parseInt(t[2]);if(!isNaN(n))r.id=n;else throw new Error("tab id not a valid number")}return r}var gr;function cl(){return gr||(gr=new ht("content_script",!1).getConnection("pure_main",()=>{}),gr)}var Ua="G-MKMD9LWFTR";async function Fa(e,t){try{let r=ge();if(r.INSTALL_FROM==="firefox_store")return;let a=vt(),o=Oa(),s=r.PROD==="1",i="sitc4WmvShWYwfU0dANM3Q",c=await kt("fakeUserId","");c||(c=await qt("fakeUserId",""),c&&await Ct("fakeUserId",c));let d=Da(),u=new Date,f=await kt("installedAt","");f||(f=await qt("installedAt",""),f&&await Ct("installedAt",f)),c?f||(f=new Date(0).toISOString(),await Ct("installedAt",f)):(c=ul(32),await Ct("fakeUserId",c)),f||(f=u.toISOString(),await Ct("installedAt",f));let _=new Date(f),v=Ba(_),P=Ba(u),ee=v===P,Z=u.getTime()-_.getTime()<7*24*60*60*1e3,m=`https://www.google-analytics.com/mp/collect?measurement_id=${Ua}&api_secret=${i}`;s||(m=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${Ua}&api_secret=${i}`);let ve="";typeof navigator<"u"&&(ve=window.navigator.userAgent);let G=tr.parse(ve),te=t.map(S=>{let y=S.params||{};return G.os&&(y.os_name=G.os.name||"unknown",y.os_version=G.os.version||"unknown",y.os_version_name=G.os.versionName||"unknown"),G.browser&&(y.browser_name=G.browser.name||"unknown",y.browser_version=G.browser.version||"unknown"),G.platform&&(y.platform_type=G.platform.type||"unknown"),G.engine&&(y.engine_name=G.engine.name||"unknown",y.engine_version=G.engine.version||"unknown"),d&&(y.version=d),r.INSTALL_FROM&&(y.install_from=r.INSTALL_FROM),v&&(y.install_day=dl(_)),y.userscript=a.toString(),ee?y.is_new_user_today="1":y.is_new_user_today="0",Z?y.is_new_user_this_week="1":y.is_new_user_this_week="0",o?y.main_frame=0:y.main_frame=1,{...S,params:y}}),be=await gl({responseType:"text",url:m,method:"POST",body:JSON.stringify({client_id:c,user_id:c,events:te})})}catch{}}function ul(e){let t="",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=r.length,a=0;for(;a",""],limit:5e3},custom:{placeholderDelimiters:["{","}"]},bing:{maxTextLengthPerRequest:1800,placeholderDelimiters:["","","b"]},deeplx:{limit:3},d:{immediateTranslationTextCount:0},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},openai:{placeholderDelimiters:["{{","}}","b"],immediateTranslationTextCount:3e3,translationDebounce:300,interval:1350,prompt:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: {{text}}`,maxTextGroupLengthPerRequest:1,newlinePlaceholderDelimiters:[` @@ -4263,8 +4263,8 @@ Additionally, we support using Chinese aliases of language codes as commands. Fo ?`]}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:""},tempTranslateDomainMinutes:0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","*.twitter.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","github.com","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","www.tumblr.com","*.twitter.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},generalRule:{_comment:"",enableSubtitle:!0,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan"],useIframePostMessage:!0,searchEnhancementConfig:[],injectedCss:[],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!0,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,isTransformPreTagNewLine:!1,urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".MathJax_Preview",".MathJax",".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:4,paragraphMinWordCount:2,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,globalAttributes:{},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{".sr-only":"display:none"},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{translate:"no"},"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:[],additionalExcludeSelectors:[".social-share",".breadcrumbs",".post__footer",".btn",".reference-citations",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","markerow8"],translationClasses:[],atomicBlockSelectors:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","INPUT","BUTTON","BASE","SELECT","OPTION","HR","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","XQDD_HIGHLIGHT_NEW_WORD","NOBR"],additionalInlineTags:[],extraInlineSelectors:[],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,mouseHoverHoldKey:"Off"},rules:[{id:"immersive",matches:["https://immersivetranslate.com","https://onboarding.immersivetranslate.com"],isInjectVersion:!0,isInjectMeta:!0},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"pdf",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],translationMode:"translation",skipEditableCheck:!0,selectors:["p"],wrapperPrefix:"",isInjectVersion:!0,isPdf:!0},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,injectedCss:[".immersive-translate-target-translation-block-wrapper { display: block; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"]},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","https://platform.twitter.com/embed*"],additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']"],extraBlockSelectors:['[data-testid="tweetText"] div.r-6koalj'],extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText']":"-webkit-line-clamp: unset;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]"]},{id:"threads",matches:"www.threads.net",selectors:["p",".x1npkx4u.x1exu5d8",".xw7yly9",".xgkxs2y"],stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x78zum5",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{span:"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],extraBlockSelectors:["span.comment-copy"],excludeSelectors:["a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md",".RichTextJSON-root","div[slot=title]","div[slot=text-body]","p.title > a","[role=main] .md-container"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none"},waitForSelectors:["[data-testid=post_author_link]"]},{id:"reddit",matches:"www.reddit.com",selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","div[slot=title]","div[slot=text-body]","p.title > a","[role=main] .md-container"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none"}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper"],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box"],extraBlockSelectors:[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],detectParagraphLanguage:!0},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"facebook",matches:"www.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]"],atomicBlockSelectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],extraBlockSelectors:["span.x1vvkbs"],excludeSelectors:["[role=button]"],translationClasses:["immersive-translate-text"],detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".caption-window",".caption-visual-line",".yt-spec-button-view-model",".yt-core-attributed-string > span",".title"],"excludeTags.remove":["BUTTON"],condition:{enableSubtitle:{false:{"selectors.remove":[".caption-window",".caption-visual-line"]}}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],extraBlockSelectors:[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,detectParagraphLanguage:!0,excludeSelectors:["[class^='lln-']"],globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","ytd-notification-renderer .message","#message",".caption-window",".caption-visual-line"],extraBlockSelectors:["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],condition:{enableSubtitle:{false:{"selectors.remove":[".caption-window",".caption-visual-line"]}}},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,selectors:["h1","div[class='x9f619 xjbqb8w x78zum5 x168nmei x13lgxp2 x5pf9jr xo71vjh x1uhb9sk x1plvlek xryxfnj x1c4vz4f x2lah0s xdt5ytf xqjyukv x1cy8zhl x1oa3qoh x1nhvcw1'] > span[class='x1lliihq x1plvlek xryxfnj x1n2onr6 x193iq5w xeuugli x1fj9vlw x13faqbe x1vvkbs x1s928wv xhkezso x1gmr53x x1cpjm7i x1fgarty x1943h6x x1i0vuye xvs91rp xo1l8bm x5n08af x10wh9bi x1wdrske x8viiok x18hxmgj']","span[class='x193iq5w xeuugli x1fj9vlw x13faqbe x1vvkbs xt0psk2 x1i0vuye xvs91rp xo1l8bm x5n08af x10wh9bi x1wdrske x8viiok x18hxmgj']"],wrapperPrefix:"
"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:["[style^=top]",".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;"},extraBlockSelectors:[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"]},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page"],excludeMatches:["https://www.inoreader.com/features/"],observeUrlChange:!1,globalStyles:{".article_title_link":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` `,selectors:["h3 a[data-clk]","div.gs_rs","td a.gsc_a_at","td div.gs_gray:last-of-type","div.gsc_oci_value","#gs_opinion"],extraInlineSelectors:["br"],atomicBlockSelectors:["h3 a[data-clk]"]},{id:"googleMail",matches:"mail.google.com",detectParagraphLanguage:!0,selectors:["h2[data-thread-perm-id]","span[data-thread-id]","div[data-message-id] div[class='']",".messageBody","#views"],globalStyles:{".Nk":"height:auto!important;",".kf":"white-space:unset!important;"}},{id:"googleNews",matches:"news.google.com",blockMinTextCount:26,blockMinWordCount:5,globalStyles:{".MCAGUe":"height: auto;",".To2ZZb.DbQnIe":"height: unset;",".cp7Yvc > h2":"display: block;",".oovtQ":"height: auto;",h4:"-webkit-line-clamp: unset;"},excludeSelectors:[".EyERq",".AOl7G.eejsDc","[aria-label='Home']","[aria-label='For you']","[aria-label='Following']","[aria-label='World']","[aria-label='Local']",".gb_Fc",".wBQf7b",".yPI8Rb",".jKHa4e",".u43Gd",".Zgjpyb","[role='button']","[jsname='rymPhb']",".cbz1ld",".VfPpkd-P5QLlc",".XvhY1d"]},{id:"outlook",matches:"outlook.live.com",excludeSelectors:[".jHAG3.XG5Jd",".OZZZK",".lDdSm"]},{id:"producthunt",matches:"www.producthunt.com",excludeMatches:"https://www.producthunt.com/stories/*",selectors:["h2","div[class^='styles_htmlText__']","[class^='styles_tagline']","a[href^='/discussions/'].fontWeight-600","button[class^='styles_textButton'] > div > span","h5 + p","div[data-test=product-item-name] + div",".noOfLines-1,.noOfLines-2,.noOfLines-3",".fontWeight-600","[class*='styles_dropdown']","[class*='styles_aboutText']"],globalStyles:{"h5 + p":"height:unset;",".noOfLines-1,.noOfLines-2,.noOfLines-3":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"]},{id:"codeforces",matches:"https://codeforces.com/*",stayOriginalTags:["[class^='MathJax']"]},{id:"arxivLabs",matches:"*.labs.arxiv.org/*",stayOriginalTags:["math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt"]},{id:"discord",matches:"https://discord.com/channels/*",isTranslateTitle:!1,selectors:["li[id^=chat-messages] div[id^=message-content]","div[class^=headerText]","section[aria-label='Search Results'] div[id^=message-content]"],extraBlockSelectors:["[class^='embedFieldValue']","li[class^='card'] div[class^='message']","[data-list-item-id^='forum-channel-list'] div[class^='headerText']"],globalStyles:{"div[class^=headerText]":"max-height: unset;","div[class^=message]":"max-height: unset;","div[class^=text]":"max-height: unset;","h3[data-text-variant='heading-lg/semibold']":"-webkit-line-clamp: none;"},detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:"",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"telegram",matches:["web.telegram.org/z/*","web.telegram.org/a/*"],isTranslateTitle:!1,selectors:[".text-content",".message",".reply-markup-button-text",".bot-commands-list-element-description"],detectParagraphLanguage:!0},{id:"telegramK",matches:["web.telegram.org/k/*","web.telegram.org/k/"],selectors:[".message",".reply-markup-button-text",".bot-commands-list-element-description"],detectParagraphLanguage:!0},{id:"githubGist",matches:"gist.github.com",selectors:[".markdown-body",".readme"],detectParagraphLanguage:!0},{id:"lobste",matches:"lobste.rs",excludeMatches:["https://lobste.rs/about","https://lobste.rs/chat"],selectors:[".u-repost-of",".comment_text",".story_text"]},{id:"slack",matches:"*.slack.com",selectors:[".p-rich_text_block",".p-message_pane__foreword",".c-alert__message","[data-qa=message_attachment_text]"],additionalStayOriginalSelectors:["[data-qa=emoji]"],detectParagraphLanguage:!0},{id:"artstationArtwork",matches:"www.artstation.com/artwork/*",excludeSelectors:".project-description a",selectors:[".project-description","div.project-comment-text"],detectParagraphLanguage:!0},{id:"artstationLearning",matches:"www.artstation.com/learning/courses/*",additionalSelectors:["footer.learning-course-description.ng-star-inserted > span"],excludeSelectors:[".learning-card-meta"]},{id:"artstationBlog",matches:["https://www.artstation.com/blogs","https://www.artstation.com/blogs/*"],detectParagraphLanguage:!0,additionalSelectors:[".comment-item-body"],atomicBlockSelectors:[".author-headline",".author-location"],excludeSelectors:["blog-card-thumbnail","blog-card-header",".blog-card-author",".blog-card-meta",".blog-view-header",".blog-grid-title",".post-meta-header"]},{id:"figmaCommunity",matches:"www.figma.com/community/*",normalizeBody:"div.ql-editor[contenteditable='false']",excludeSelectors:["div[class*='metadataRight']","div[class*='commentMetaAndOptions']"],globalStyles:{"div[class*='mini_cardBottomRowSizing']":"height: 3em;"},additionalSelectors:["div[class*='mini_cardBottomRow_Metadata']"],stayOriginalSelectors:["[data-tooltip='tooltip-user-info']"]},{id:"googleIndex",matches:["https://www.google.com/","https://www.google.com.hk/"],excludeSelectors:["#gb","#SIvCob"],inputTutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",inputTutorialsSelectors:["textarea#APjFqb"]},{id:"googleSearch",matches:"www.google.*/search*",blockMinTextCount:32,blockMinWordCount:3,wrapperSuffix:"",detectParagraphLanguage:!0,excludeSelectors:["a h3 + div","div#sfooter","a[role=presentation] > div > div:first-child",".b5ZQcf",".CEMjEf",".MgUUmf.NUnG9d","#result-stats","[role=navigation]","div.sCuL3","div.eFM0qc.BCF2pd","div.WZ8Tjf","div.adDDi","#headerSection","#rateChatDiv","[id=bres]",".title-D5Lgyj","[data-attrid='VisualDigestVideoResult']",".search-enhance-WDIEkP h4",".SPZz6b h2",".CtCigf",".VLkRKc",".EbH0bb",".Wr0c6d",".jleFbf","#searchform",".yg51vc",".CbAZb"],extraBlockSelectors:[".MUFPAc"],globalStyles:{".V82bz":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px",".pe7FNb":"-webkit-line-clamp: unset;",".promotion-3PDMAb":"display: none;",".uAKcGb":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px","div[data-content-feature='1'] > div":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:2']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:3']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:4']":"-webkit-line-clamp: unset;max-height: unset;",".Pw4Ldf.RsCEN":"height:unset;",".related-question-pair":"overflow:auto;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,searchEnhancementConfig:[{id:"google",urlMatch:"https://www\\.google\\..+/search",style:{source:"font-size:12px; margin-bottom: 6px;",enTitle:"margin-top:6px;font-size:14px;",searchTitle:"margin-top:6px;position:relative;padding-right:24px;",more:"color:#1a0dab;margin-top:8px;",enTitleClassName:"immersive-translate-search-enhancement-en-title"},keyword:{value:"[0]$1",matches:[{source:"url",matchRegex:"q=(.+?)&"}]},showCount:5}]},{id:"lowendtalk",matches:"lowendtalk.com",selectors:["[role=heading]","h1",".userContent"]},{id:"linkedinJobs",matches:"www.linkedin.com/jobs/*",selectors:["#job-details > span"]},{id:"linkedinFeed",matches:"https://linkedin.com/feed/*",selectors:["h1",".feed-shared-update-v2__description-wrapper"]},{id:"indiehackers",matches:"www.indiehackers.com",selectors:[".content","h1","h3.story__title",".feed-item__title-link",".article-body"]},{id:"libreddit",matches:"libreddit.de",selectors:["h2.post_title",".comment_body > .md"]},{id:"notionSite",matches:["notion.site","*.notion.site"],normalizeBody:"body",selectors:["div[data-block-id]"]},{id:"newyorker",matches:"www.newyorker.com",additionalSelectors:["h1","[data-testid=SummaryItemHed]"],excludeSelectors:["[data-testid=PersistentTop]","[data-testid=StackedNavigationHeader]"],urlChangeDelay:2e3},{id:"startme",matches:"start.me",selectors:[".rss-article__title",".rss-articles-list__article-link",".rss-showcase__title",".rss-showcase__text"]},{id:"scmp",matches:"www.scmp.com",additionalSelectors:[".info__subHeadline",".section-content h2"],globalStyles:{".topic__article-list":"height: unset;",".adverisers__adveriser":"height: unset;",".advertiser__content":"height: unset;",".content-title__link":"display:unset;overflow:unset;-webkit-line-clamp:unset;",".title__text":"max-height:unset; -webkit-line-clamp:unset;",".news-list-item__news-title":"max-height:unset; -webkit-line-clamp:unset;","a[class*='link'] > .link__headline":"max-height:unset; -webkit-line-clamp:unset;"}},{id:"lesswrong",matches:"www.lesswrong.com",extraBlockSelectors:["span.commentOnSelection"]},{id:"mastodon",matches:["mastodon.social","mastodon.online","kolektiva.social","indieweb.social","mastodon.world","infosec.exchange"],isTranslateTitle:!1,selectorMatches:["div#mastodon"],selectors:["div.status__content__text",".about__section__body",".content",".form-container",".account__header__extra"],globalAttributes:{"[class='notranslate app-holder']":{class:"app-holder"}},detectLanguage:!0},{id:"cnbc",matches:"www.cnbc.com",urlChangeDelay:1e3,globalStyles:{"div.Card-titleContainer > div":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"dailyDev",matches:"app.daily.dev",selectors:["h1",".typo-body","article h3","[class^=markdown_markdown]"],globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset"}},{id:"pornhub",matches:["*.pornhub.com","pornhub.com"],excludeMatches:["*.pornhub.com/insights/*","pornhub.com/insights/*"],extraBlockSelectors:[".trendingNow",".searchItem",".tagcloud > a"],detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:` `,globalStyles:{"span.title":"height:unset; max-height:unset;",".detailedInfo":"max-height:unset;",".pcVideoListItem":"max-height:unset;",".wrap":"height:unset;",".entry-header":"height:unset;",".entry-title > a":"height:unset;-webkit-line-clamp:unset;"}},{id:"yourporn",matches:"https://www.youporn.com/*",extraBlockSelectors:[".button"],globalStyles:{".video-box":"max-height:unset;",".video-box-title":"white-space:unset;"}},{id:"modelhub",matches:"https://www.modelhub.com/*",globalStyles:{".videoTitle":"height:unset;",a:"height:unset;"}},{id:"xvideos",matches:"https://www.xvideos.com/*",globalStyles:{".title":"-webkit-line-clamp:unset;max-height:unset;",".mozaique":"display:flex; flex-wrap:wrap;"},excludeSelectors:[".video-hd-mark"]},{id:"missav",matches:"https://missav.com/*",globalStyles:{".truncate":"white-space:unset;",".overflow-y-hidden":"max-height:unset;overflow-y:unset;"}},{id:"javbus",matches:"https://www.javbus.com/*",globalStyles:{".photo-info":"height:unset;"},excludeSelectors:[".item-tag","date"]},{id:"spankbang",matches:"https://spankbang.com/*",globalStyles:{".video-item > a":"white-space:unset;"},excludeSelectors:[".stats",".thumb"],extraBlockSelectors:[".searches > a",".tag > a",".extra > a",".positions > li"]},{id:"javdb",matches:"https://javdb*.com/*",globalStyles:{".video-title":"white-space:unset;"},excludeSelectors:[".video-number",".score",".has-addons"]},{id:"jable",matches:"https://jable.tv/*",globalStyles:{".title":"white-space:unset;max-height:unset;",".img-box > a":"position:relative;"}},{id:"netflav",matches:"https://netflav*.com/*",globalStyles:{".grid_title":"max-height:unset;"},extraBlockSelectors:[".genre_filter_item","button"]},{id:"czechvideo",matches:"https://czechvideo.co/*",globalStyles:{".short-story":"height:unset;",".short-title":"height:unset;"},globalAttributes:{header:{translate:"unset;"}}},{id:"weibo",matches:["weibo.com"],selectors:["div[class^='detail_wbtext']"]},{id:"medium",matches:["medium.com","*.medium.com"],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],urlChangeDelay:20,"additionalExcludeSelectors.remove":["i.fa","i[class^=fa-]",".navmenu-container",".google-symbols","markerow8"],selectors:["h1","h2","article section","[aria-hidden='false'] pre","article p"],excludeSelectors:["[aria-label='Post Preview Reading Time']",".al.b.bl.ag.bp",".al.b.bl.ag.ai"],globalStyles:{h2:"-webkit-line-clamp: unset;max-height:unset;","article p":"-webkit-line-clamp: unset;max-height:unset;"}},{id:"nitter",selectorMatches:["meta[property='og:site_name'][content='Nitter']"],selectors:[".tweet-content",".quote-text"]},{id:"economist",matches:"www.economist.com",extraInlineSelectors:["span[data-caps='initial']"],excludeSelectors:["footer.ds-footer"],injectedCss:["a::before {position:relative!important;}"]},{id:"healthline",matches:"www.healthline.com",excludeSelectors:[".icon-hl-trusted-source-after"]},{id:"ebay",matches:"www.ebay.com",excludeSelectors:["headers","[itemprop=offers]",".dne-itemtile-original-price"],paragraphMinTextCount:4,paragraphMinWordCount:2,globalStyles:{"[itemprop=name]":"-webkit-line-clamp: unset;max-height: unset;",".merch-item-title":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"skinstore",matches:"www.skinstore.com",excludeSelectors:[".responsiveFlyoutMenu_levelOneLink"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"tripadvisor",matches:"www.tripadvisor.com",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"amazon",matches:"www.amazon.com",paragraphMinTextCount:4,paragraphMinWordCount:2,extraBlockSelectors:[".a-size-small.a-link-normal.page-banner-link.a-nowrap"],globalStyles:{".a-carousel-viewport":"height:unset;","[class*='clamp']":"max-height: unset;-webkit-line-clamp: unset;","[data-rows]":"max-height: unset;-webkit-line-clamp: unset;","[data-a-expander-name='review_text_read_more']":" max-height: unset;"},excludeSelectors:["#navFooter","#navbar-main",".s-price-instructions-style","[class*='star']","[data-hook='acr-average-stars-rating-text']",".a-color-price"]},{id:"visualstudioMarketplace",matches:"marketplace.visualstudio.com",additionalExcludeSelectors:[".core-info-second-row",".core-info-third-row",".meta-data-list",".item-title",".breadcrumb",".itemDetails-right",".ux-user-name",".ux-updated-date",".ux-item-second-row-wrapper",".stats-and-offer",".header-container"],atomicBlockSelectors:[".core-info-cell > div.name"],globalStyles:{".item-details-control-root.ux-item-shortdesc":"height: unset; overflow: visible; max-height:unset;"}},{id:"bloomberg",matches:"www.bloomberg.com",urlChangeDelay:2e3,excludeSelectors:[".ticker-bar","nav","[aria-label=Banner]","aside","[data-component=ticker-bar]","footer.bb-global-footer"]},{id:"baiduXueshu",matches:"xueshu.baidu.com",globalStyles:{".abstract_wr":"height: unset; overflow: visible; max-height:unset;"}},{id:"sciencedirect",matches:"www.sciencedirect.com",urlChangeDelay:2e3,stayOriginalSelectors:["span.display","span.math"],extraBlockSelectors:["span.captions","span[id^=cap]"]},{id:"thehighestofthemountains",matches:"www.thehighestofthemountains.com",extraBlockSelectors:"div"},{id:"telegraph1",matches:"te.legra.ph",normalizeBody:"div.ql-editor[contenteditable='false']",urlChangeDelay:500},{id:"telegraph2",matches:["telegra.ph"],normalizeBody:"div.ql-editor[contenteditable='false']",wrapperPrefix:` -`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main > div > div[class*='h-[125]']":"height:auto"},normalizeBody:"body",extraBlockSelectors:["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,normalizeBody:"#mw-content-text",globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"]},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"}},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:"chat.openai.com",excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0}},{id:"newstop",matches:["chat.newstop.asia","chat.waixingyun.cn"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".n-button.n-button--warning-type.n-button--medium-type",messageWrapperSelector:".markdown-body",streamingChange:!1,streamingDeepChild:!0}},{id:"askgpt",matches:["askgpt.cn","chatcat.zhaoyoung.me"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".home_chat-message-status__EsVNi",messageWrapperSelector:".markdown-body",streamingChange:!0,streamingDeepChild:!0}},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__UyYrv *",".MarkdownLink_linkifiedLink__KxC9G"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__UyYrv",streamingChange:!1,streamingDeepChild:!0}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"newthingsunderthesun",matches:"www.newthingsunderthesun.com",additionalSelectors:["[translate=no]"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"https://steamcommunity.com/app/*",globalStyles:{".forum_topic":"height:auto;",".forum_topic_name":"white-space:normal;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampowered",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:"https://www.webofscience.com/*",globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},excludeSelectors:[".summary-left-panel",".authors","app-full-record-keywords mark"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],extraBlockSelectors:["app-summary-authors + div","app-full-record-keywords span span"],observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://www.jetbrains.com/help/*",extraBlockSelectors:["[data-test=prompt]"]},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails p"]},{id:"isEbook",isEbook:!0,isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span"},{id:"isEbookBuilder",isEbookBuilder:!0,isTranslateTitle:!1,targetWrapperTag:"span",selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com",extraBlockSelectors:["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],extraBlockSelectors:"font[face=verdana]"},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"isSubtitleBuilder",isSubtitleBuilder:!0,selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,wrapperPrefix:"",wrapperSuffix:""},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/",extraBlockSelectors:[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"vimeo",matches:"https://player.vimeo.com/video/*",extraBlockSelectors:["span.vp-captions-line","span[class^=CaptionsRenderer_]"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexityAi",matches:"https://www.perplexity.ai/search/*",extraBlockSelectors:[".prose > span"],additionalStayOriginalSelectors:["a.citation"],insertPosition:"afterend"},{id:"perplexity",matches:"https://www.perplexity.ai",globalStyles:{".line-clamp-1":"-webkit-line-clamp: unset !important;",".line-clamp-2":"-webkit-line-clamp: unset !important;"}},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"babelnovel",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*"],urlChangeDelay:0},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0},{globalAttributes:{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"youtrackJetbrains",matches:"youtrack.jetbrains.com/articles/*",selectors:["[role=presentation]","[data-test=article-content]"],excludeSelectors:[".toolbar__ee8"]},{id:"bbc",matches:"www.bbc.com",excludeSelectors:["section.module--languages",".drop-capped"]},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}}},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"openai",matches:"https://platform.openai.com/docs/*",urlChangeDelay:0},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout":"height:unset !important;",".EntrySummary--u4":"-webkit-line-clamp: unset;max-height:unset;",".EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:[".copyable-text > span"],wrapperPrefix:` -`,wrapperSuffix:"
"},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],globalStyles:{"[class*='lineclamp']":"-webkit-line-clamp:unset;"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],extraBlockSelectors:[".SIPGg",".sc-kzMCTH.pSZXj"],globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"]},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*",globalAttributes:{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead"],injectedCss:["a::after {position:relative!important;}"]},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},globalAttributes:{"#app":{class:""}}},{id:"haproxy",matches:["docs.haproxy.org","www.oreilly.com/openbook/opensources/book/*"],excludeTags:[],stayOriginalSelectors:[],stayOriginalTags:[],isTransformPreTagNewLine:!0},{id:"piAi",matches:"pi.ai/talk",excludeSelectors:[".whitespace-pre-wrap > span *"],aiRule:{streamingSelector:"button[class*='fixed'][disabled]",messageWrapperSelector:".whitespace-pre-wrap",streamingChange:!1,streamingDeepChild:!1},globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *"],"excludeTags.remove":["PRE"],injectedCss:"[data-testid='chat-menu-trigger'] br {display:none;}",aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1}},{id:"feishu",matches:"*.feishu.cn","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],excludeSelectors:[".catalogue__list"]},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"bugsWebkit",matches:"bugs.webkit.org",isTransformPreTagNewLine:!0},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",matches:"www.kaggle.com",excludeTags:["i","button"]},{id:"ieee",matches:"spectrum.ieee.org",extraBlockSelectors:["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"www.cnn.com",excludeSelectors:[".ad-slot-header__wrapper"]},{id:"marginalrevolution",matches:"marginalrevolution.com",globalAttributes:{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",condition:{enableSubtitle:{false:{"excludeSelectors.add":[".bpx-player-subtitle-panel-text"]}}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"docs-oracle",matches:"docs.oracle.com",urlChangeDelay:0},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"edstem",matches:"edstem.org","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:"pubmed.ncbi.nlm.nih.gov",urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share"]},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"tldrnewsletter",matches:"actions.tldrnewsletter.com","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"bugzilla",matches:"bugzilla.mozilla.org","excludeTags.remove":["PRE"],isTransformPreTagNewLine:!0},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"excludeSelectors.add":["aside",".DocSearch-Modal"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"mail.qq.com",useIframePostMessage:!1},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]}]};function ht(e){return Array.isArray(e)?e:e?[e]:[]}function ja(e,t){let r={...e};return Ka(r,t),hl(r,t),r}function qa(e,t,r){let n={...t};return fl(e,n,r),n}function hl(e,t){if(!t.condition)return;let r=t.condition.enableSubtitle?.true||{},n=t.condition.enableSubtitle?.false||{},a=e.enableSubtitle?r:n;Ka(e,a)}function fl(e,t,r){try{return Object.keys(t).forEach(n=>{let[a,o]=n.split(".");if(o){let s=t[n];if(Array.isArray(e[a])&&(s=ht(t[n])),o==="add"){t[a]=Wt(e[a],s),delete t[n];return}else if(o=="remove"){t[a]=an(e[a],s),delete t[n];return}}}),Object.keys(r).forEach(n=>{let[a,o]=n.split(".");if(!a||r[n]===void 0)return;let s=r[n],i=t[a];if(Array.isArray(e[a])&&(s=ht(r[n]),i=ht(t[a])),o==="add"){t[a]=Wt(i,s);return}else if(o=="remove"){t[a]=an(i,s);return}Array.isArray(i)&&a.startsWith("additional")?t[a]=Wt(i,s):t[a]=s}),t}catch{}}function Ka(e,t){return Object.keys(t).forEach(r=>{let[n,a]=r.split(".");if(!n||t[r]===void 0)return;let o=t[r];if(Array.isArray(e[n])&&(o=ht(t[r])),a==="add"){e[n]=Wt(e[n],o);return}else if(a=="remove"){e[n]=an(e[n],o);return}Array.isArray(e[n])&&n.startsWith("additional")?e[n]=Wt(e[n],o):e[n]=o}),e}function Wt(e,t){let r;if(Array.isArray(e)){let n=ht(t);r=[...e,...n],r=Array.from(new Set(r))}else typeof e=="object"&&typeof t=="object"&&(r={...e,...t});return r}function an(e,t){if(Array.isArray(e)){let r=ht(t);return e=e.filter(n=>!r.includes(n)),Array.from(new Set(e))}else typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(r=>{delete e[r]});return e}function bl(){if(H.PROD==="1")return{};let e={};if(H.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&H.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let r={secretId:H.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:H.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=r}if(H.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&H.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let r={appid:H.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:H.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=r}if(H.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let r={token:H.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=r}if(H.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let r={apikey:H.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=r}if(H.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&H.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let r={appId:H.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:H.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=r}if(H.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&H.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let r={accessKeyId:H.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:H.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=r}if(H.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let r={authKey:H.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=r}if(H.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=H.DEEPL_PROXY_ENDPOINT),H.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=H.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),H.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let r={APIKEY:H.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=r}H.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=H.IMMERSIVE_TRANSLATE_SERVICE);let t={};return H.DEBUG==="1"&&(t.debug=!0,t.cache=!1),H.MOCK==="1"&&(t.translationService="mock"),t}async function zt(){let e=await g.storage.local.get(Bt);if(e[Bt]){let t=e[Bt],r=t.tempTranslationUrlMatches||[],n=r.filter(s=>s.expiredAt>Date.now()),a=!1;n.length!==r.length&&(r=n,a=!0);let o={...t,tempTranslationUrlMatches:[...r]};return a&&await Pt(o),o}else return{}}async function Pt(e){await g.storage.local.set({[Bt]:e})}async function it(){let e=await g.storage.local.get(sr),t={...nn,buildinConfigUpdatedAt:H.BUILD_TIME};if(e[sr]){let X=e[sr];if(X&&X.buildinConfigUpdatedAt){let C=new Date(X.buildinConfigUpdatedAt),W=new Date(t.buildinConfigUpdatedAt);C>W&&(t=X)}}let r=await Ma.get(va,null),n={};if(!xt()&&g.commands&&g.commands.getAll){let X=await g.commands.getAll();for(let C of X)C.name&&C.shortcut&&(n[C.name]=C.shortcut)}let a=wl(),o=bl(),s=await Ht(),i=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},c=await zt(),d=new Date;if(c&&c.tempTranslationUrlMatches&&c.tempTranslationUrlMatches.length>0){let X=c.tempTranslationUrlMatches.filter(C=>new Date(C.expiredAt)>d);if(X.length>0){let C=s.translationUrlPattern?s.translationUrlPattern?.matches||[]:[],W=Array.isArray(C)?C:[C],Ce=Array.from(new Set(W.concat(X.map(ae=>ae.match))));s.translationUrlPattern={...s.translationUrlPattern,matches:Ce}}}let u=Object.assign({},i,o,s);if(!u.interfaceLanguage){let X=await yl();u.interfaceLanguage=X}let f=u.interfaceLanguage==="en",_=u.targetLanguage==="en",v=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,P=["bing","google","transmart","mock"].includes(u.translationService)||!u.translationService;!f&&!_&&!v&&P?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let ee=t&&t.enableDefaultAlwaysTranslatedUrls;u.enableDefaultAlwaysTranslatedUrls===!1&&(ee=!1);let Z=u&&u.isChangedAlwaysTranslatedUrls,m=[];u.translationUrlPattern&&u.translationUrlPattern.matches&&(m=u.translationUrlPattern.matches||[]);let ve=!1;Z===void 0&&(m.length>0?Z=!0:Z=!1,u.isChangedAlwaysTranslatedUrls=Z,s.isChangedAlwaysTranslatedUrls=Z,ve=!0);let G=(u?.translationLanguagePattern?.matches?.length||0)>0,te=await At("installedAt",""),be=Number(await qt("translage_page_daily",0)),S=Number(await At(xa,0)),y;S>0&&(Date.now()-S0&&(Date.now()-bep.id&&Ce[p.id]?qa(t.generalRule,Ce[p.id],p):p);A[C]=[...ae,...A[C]]}if(H.PROD==="0"&&H.DEV_RULES){let W=JSON.parse(H.DEV_RULES);A[C]=[...W,...A[C]]}}else u[C]!==void 0&&(A[C]=u[C])}return A.donateUrl=t.donateUrl,A.minVersion=t.minVersion,A.feedbackUrl=t.feedbackUrl,A}async function Ht(){return(await g.storage.sync.get("userConfig")||{}).userConfig||{}}async function ft(e){await g.storage.sync.set({userConfig:e})}var yl=async()=>{let e=["zh-CN"];try{e=await g.i18n.getAcceptLanguages()}catch(n){D.warn("get browser language error:",n)}let r=e.map(n=>mt(n)).find(n=>ut[n]);return r||"en"},wl=()=>{let e={...nn,buildinConfigUpdatedAt:H.BUILD_TIME};return{...e,targetLanguage:lr,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing"},rules:[]}};function Tl(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(n=>!e.includes(n)).length>0}function Wa(e){let t=g.runtime.getURL(fa),r=new URL(t);return(e.startsWith("http")||!Ca())&&r.searchParams.set("file",e),r.href}function za(){return ge().PDF_VIEWER_URL}function Ha(e){return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}var Ga=["*://*/*","*","*://*"],$a="immersive-translate-wildcard-placeholder.com";function xl(e,t){let r=[];if(!t||(t&&!Array.isArray(t)?r=[t]:r=t,r.length===0))return null;if(r.some(s=>Ga.includes(s)))return e;let n=new URL(e);n.hash="",n.search="";let a=n.href,o=n.hostname;if(r&&r.length>0){let s=r.find(i=>{let c=i;if(i===o)return!0;if(Ga.includes(i))return!0;if(!i.includes("*")&&i.includes("://")){try{let d=new URL(i);return d.pathname==="/"&&!i.endsWith("/")?d.hostname===o:Sl(a,i)}catch{}return!1}else{let d,u=i;if(i.includes("://")){let Z=i.split("://");d=Z[0],d==="*"&&Z.length>1&&(d="*",i="https://"+Z[1])}else d="*",i="https://"+i;let f=i.replace(/\*/g,$a),_;try{_=new URL(f)}catch{return D.debug("invalid match pattern",f,"raw match value:",u),!1}let v=_.hostname,P=_.pathname;P==="/"&&(u.replace("://","").includes("/")||(P="/*"));let ee=vl(d+":",Va(v),Va(P));if(ee){let Z=new URL(a);return Z.port="",ee.test(Z.href)}else return!1}});if(s)return s}return null}function Va(e){return e.replaceAll($a,"*")}function vl(e,t,r){let n="^";return e==="*:"?n+="(http:|https:|file:)":n+=e,n+="//",t&&(e==="file:"||(t==="*"?n+="[^/]+?":(t.match(/^\*\./)&&(n+="[^/]*?",t=t.substring(2)),n+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),r?r==="*"||r==="/*"?n+="(/.*)?":r.includes("*")?(n+=r.replace(/\*/g,".*?"),n+="/?"):n+=r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):n+="/?",n+="$",new RegExp(n)}function Ya(e,t){return xl(e,t)!==null}function Sl(e,t){let r=new URL(e),n=new URL(t);return r.hostname===n.hostname&&r.pathname===n.pathname&&r.protocol===n.protocol&&r.port===n.port}var gr=class{accessToken;constructor(t){this.accessToken=t}async listAll(){let t=[],r="";do{let{nextPageToken:n,files:a}=await this.list(r).catch(o=>{throw o});t.push(...a),r=n||""}while(r);return t}async getConfig(t){try{return await(await fetch(`https://www.googleapis.com/drive/v3/files/${t}?alt=media`,{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(r){return D.error("get config error, use default",r),{}}}async delete(t){await fetch(`https://www.googleapis.com/drive/v3/files/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${this.accessToken}`}})}findByName(t){return this.list(void 0,`name = '${t}'`)}uploadConfig(t,r=ir){let n=new Blob([JSON.stringify(t,null,2)],{type:"application/json"});return this.upload({name:r,parents:["appDataFolder"],mimeType:"application/json"},n)}updateConfig(t,r){let n=new Blob([JSON.stringify(r,null,2)],{type:"application/json"});return this.updateContent(t,n)}async upload(t,r){let n=new FormData;n.append("metadata",new Blob([JSON.stringify(t)],{type:"application/json; charset=UTF-8"})),n.append("file",r);let a=await fetch("https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart",{method:"POST",headers:{Authorization:`Bearer ${this.accessToken}`},body:n});return a.ok?await a.json():Promise.reject(a.text())}async list(t,r){let n=new URL("https://www.googleapis.com/drive/v3/files");t&&n.searchParams.append("pageToken",t),r&&n.searchParams.append("q",r),n.searchParams.append("spaces","appDataFolder"),n.searchParams.append("fields","files(id,name,createdTime,modifiedTime,size)"),n.searchParams.append("pageSize","100"),n.searchParams.append("orderBy","createdTime desc");try{return D.debug("list api:",n.toString(),this.accessToken),await(await fetch(n.toString(),{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(a){throw D.error("fetch google ip error",a),a}}async updateContent(t,r){return await(await fetch(`https://www.googleapis.com/upload/drive/v3/files/${t}?uploadType=media`,{method:"PATCH",headers:{Authorization:`Bearer ${this.accessToken}`},body:r})).text()}};function Qa(e,t){let r=["https://www.googleapis.com/auth/drive.appdata"];return`https://accounts.google.com/o/oauth2/v2/auth?client_id=${or}&response_type=token&redirect_uri=${encodeURIComponent(t)}&scope=${encodeURIComponent(r.join(" "))}&state=${encodeURIComponent(JSON.stringify(e))}`}function Za(e){let t=e.match(/[#?](.*)/);return!t||t.length<1?null:{access_token:new URLSearchParams(t[1].split("#")[0]).get("access_token")}}async function Ja(e,t,r,n,a,o,s){if(D.debug(`autoSyncStrategy accessToken: ${e}`),t===null){D.debug("autoSyncStrategy settings is null");return}let i=new gr(e);try{let c=(await i.findByName(ir)).files;D.debug("files",c);let d=c[0]?.id,u=null;if(d&&(u=await i.getConfig(d).then(f=>({fileId:d,config:f}))),u){let{config:f,fileId:_}=u,v=f.updatedAt?new Date(f.updatedAt):new Date(0),P=t.updatedAt?new Date(t.updatedAt):new Date(0);if(D.debug("remoteUpdatedAt",v,"localUpdatedAt",P),v>P)D.debug("remote is newer, update local config",f),r(f),o&&o(!0);else if(v.getTime()===P.getTime())D.debug("remote and local are the same, do nothing"),o&&o(!1);else if(v(await e.removeAuthInfo(),Gr()&&globalThis.location.reload(),n))}static async getAuthInfo(){let t=await g.storage.local.get(vt);if(t[vt])return t[vt]}static async removeAuthInfo(){return await g.storage.local.remove(vt)}static setAuthInfo(t){return g.storage.local.set({[vt]:t})}async auth(t=!1){let r=await e.getAuthInfo();if(D.debug(this.CLASSNAME,"token from cache:",r),r&&r.access_token&&await Xa(r.access_token).then(o=>!0).catch(o=>!1))return Promise.resolve(r);let n=Qa(this._state,this._redirectUrl);return D.debug(this.CLASSNAME,"auth url: "+n),Gr()?this.userscriptAuthWorkflow(n,t):this.extensionAuthWorkflow(n).then(a=>(e.setAuthInfo(a),a))}async userscriptAuthWorkflow(t,r){return r&&await g.storage.local.set({[ba]:!0}),globalThis.open(t,"_self"),Promise.resolve({})}extensionAuthWorkflow(t){let r,n=!1;return new Promise((a,o)=>{let s=()=>{g.tabs.onUpdated.removeListener(i),g.tabs.onRemoved.removeListener(c)},i=(_,v,P)=>{if(D.debug(this.CLASSNAME,"create tab onUpdated: "+P.url),r===_){let ee=new URL(P.url||""),Z=Za(P.url);ee.pathname.startsWith("/auth-done")&&Z?.access_token&&(D.debug(this.CLASSNAME,"auth done: "+P.url),a({access_token:Z.access_token}),n=!0,g.tabs.remove(_),s())}},c=(_,v)=>{D.debug(this.CLASSNAME,"create tab onRemoved: "+_),(_===r||!n)&&(s(),o(new Error("auth failed")))},d=Math.min(500,screen.availWidth),u=Math.min(650,screen.availHeight),f;g.windows===void 0?f=g.tabs.create({url:t}).then(_=>{r=_.id}):f=g.windows.create({url:t,type:"popup",width:d,height:u,left:Math.round((screen.width-d)/2),top:Math.round((screen.height-u)/2)}).then(_=>{r=_.tabs[0].id}),f.then(()=>{g.tabs.onUpdated.addListener(i),g.tabs.onRemoved.addListener(c)}).catch(_=>{D.debug(this.CLASSNAME,"create tab failed: "+_),o(_)})})}};var kl="https://www.googleapis.com/oauth2/v3/tokeninfo",Cl=or,Pl=ge().REDIRECT_URL;function Xa(e){if(!e)throw"Authorization failure";let t=`${kl}?access_token=${e}`,r=new Request(t,{method:"GET"});function n(a){return new Promise((o,s)=>{a.status!=200&&s("Token validation error"),a.json().then(i=>{i.aud&&i.aud===Cl?o(e):s("Token validation error")})})}return fetch(r).then(n)}function eo(e,t=!1){let r=Pl;if(typeof window<"u"&&window.location.protocol.startsWith("http")){let a=window.location.hostname,o=window.location.port;r=`${window.location.protocol}//${a}${o?`:${o}`:""}/auth-done/`}return new pr(e,r).auth(t)}async function to(){}function ro(e,t){let r=new Map;for(let o of t)r.set(o.header.toLowerCase(),o);let n=[],a=e.filter(o=>{let s=r.get(o.name.toLowerCase());if(s){if(s.operation==="remove")return!1;if(s.operation==="set")return!1}return!0});for(let o of t)o.operation==="set"&&n.push({name:o.header,value:o.value||""});return a.concat(n)}var hr=[{id:1,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://httpstat.us/429"},{header:"origin",operation:"set",value:"https://httpstat.us/429"},{header:"DNT",operation:"set",value:"1"}]},condition:{urlFilter:"https://httpstat.us/429",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh"]}},{id:2,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://www.deepl.com/"},{header:"origin",operation:"set",value:"https://www.deepl.com"},{header:"DNT",operation:"set",value:"1"},{header:"cookie",operation:"remove"}]},condition:{urlFilter:"https://www2.deepl.com/jsonrpc*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh"]}},{id:200,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://www.deepl.com/"},{header:"origin",operation:"set",value:"chrome-extension://cofdbpoegempjloogbagkncekinflcnj"},{header:"DNT",operation:"set",value:"1"}]},condition:{urlFilter:"https://api.deepl.com/jsonrpc*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh"]}},{id:201,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://www.deepl.com/"},{header:"origin",operation:"set",value:"chrome-extension://cofdbpoegempjloogbagkncekinflcnj"}]},condition:{urlFilter:"https://w.deepl.com/oidc/token",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh"]}},{id:3,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"origin",operation:"set",value:"chrome-extension://lkjkfecdnfjopaeaibboihfkmhdjmanm"}]},condition:{urlFilter:"https://transmart.qq.com/api/imt",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh"]}},{id:4,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"origin",operation:"set",value:"chrome-extension://lkjkfecdnfjopaeaibboihfkmhdjmanm"}]},condition:{urlFilter:"https://translate.volcengine.com/crx/translate/v1/",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh"]}}];function st(e,t){var r=(e&65535)+(t&65535),n=(e>>16)+(t>>16)+(r>>16);return n<<16|r&65535}function El(e,t){return e<>>32-t}function br(e,t,r,n,a,o){return st(El(st(st(t,e),st(n,o)),a),r)}function Me(e,t,r,n,a,o,s){return br(t&r|~t&n,e,t,a,o,s)}function Le(e,t,r,n,a,o,s){return br(t&n|r&~n,e,t,a,o,s)}function Re(e,t,r,n,a,o,s){return br(t^r^n,e,t,a,o,s)}function Ie(e,t,r,n,a,o,s){return br(r^(t|~n),e,t,a,o,s)}function fr(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var r,n,a,o,s,i=1732584193,c=-271733879,d=-1732584194,u=271733878;for(r=0;r>5]>>>t%32&255);return r}function on(e){var t,r=[];for(r[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(n=fr(n,e.length*8)),r=0;r<16;r+=1)a[r]=n[r]^909522486,o[r]=n[r]^1549556828;return s=fr(a.concat(on(t)),512+t.length*8),no(fr(o.concat(s),512+128))}function ao(e){var t="0123456789abcdef",r="",n,a;for(a=0;a>>4&15)+t.charAt(n&15);return r}function sn(e){return unescape(encodeURIComponent(e))}function oo(e){return Ml(sn(e))}function Rl(e){return ao(oo(e))}function io(e,t){return Ll(sn(e),sn(t))}function Il(e,t){return ao(io(e,t))}function so(e,t,r){return t?r?io(t,e):Il(t,e):r?oo(e):Rl(e)}function ln(e){if(Math.abs(e)<1024)return e+" Byte";let r=["KB","MB","GB","TB","PB","EB","ZB","YB"],n=-1;do e/=1024,++n;while(Math.abs(e)>=1024&&n{let a=e,o=1,s=indexedDB.open(a,o);s.onsuccess=i=>{r(s.result)},s.onerror=i=>{n()},s.onupgradeneeded=i=>{let c=s.result,d=t||"cache";c.createObjectStore(d,{keyPath:"key"})}})}async function lo(e){let t=`${xe}-${e.service}@${e.from}->${e.to}`;return await Ol(t,e)}async function co(e){let t=so(e.originalText),r=`${xe}-${e.service}@${e.from}->${e.to}`;return await Dl(r,t)}async function Dl(e,t){let r=await Gt(e);return await new Promise((n,a)=>{if(!r)return a();let o="cache",i=r.transaction([o],"readonly").objectStore(o).get(t);i.onsuccess=c=>{r.close();let d=i.result;n(d)},i.onerror=c=>{r.close(),a()}})}async function Ol(e,t){let r=await Gt(e);return(await uo()).includes(e)||await Nl(e),await new Promise(a=>{if(!r)return a(!1);let o="cache",i=r.transaction([o],"readwrite").objectStore(o).put(t);i.onsuccess=c=>{r.close(),a(!0)},i.onerror=c=>{r.close(),a(!1)}})}async function Nl(e){let t="cache_list",r=await Gt(xe+"-cacheList",t),a=r.transaction([t],"readwrite").objectStore(t).put({key:e});a.onsuccess=o=>{r.close(),_t.push(e)},a.onerror=o=>{r.close()}}async function uo(){if(_t&&_t.length>0)return _t;let e=await Gt(xe+"-cacheList","cache_list");return _t=await new Promise(t=>{let r="cache_list",a=e.transaction([r],"readonly").objectStore(r).getAllKeys();a.onsuccess=o=>{e.close(),t(a.result)},a.onerror=o=>{e.close(),t([])}}),_t}async function mo(){try{let e=[];(await uo()).forEach(n=>{e.push(Ul(n))});let r=await Promise.all(e);return ln(r.reduce((n,a)=>n+a,0))}catch{return ln(0)}}async function Ul(e){let t=await Gt(e),n=[...t.objectStoreNames].reduce((s,i)=>{let c=Bl(t,i);return s.push(c),s},[]),a=await Promise.all(n);return t.close(),a.reduce((s,i)=>s+i,0)}async function Bl(e,t){return await new Promise((r,n)=>{if(e==null)return n();let a=0,o=e.transaction([t]).objectStore(t).openCursor();o.onsuccess=s=>{let i=o.result;if(i){let c=i.value,d=JSON.stringify(c);a+=d.length,i.continue()}else r(a)},o.onerror=s=>n("error in "+t+": "+s)})}var yr,Fl=async function(e,t){let{method:r,data:n}=e;if(D.debug("background received message",r,n||" "),r==="mock")await kr(150);else{if(r==="queryParagraphCache")return co(n);if(r==="setParagraphCache")return lo(n);if(r==="calculateSize")return mo();if(r==="fetch")return dr(n);if(r==="getConfig")return it();if(r==="getLocalConfig")return zt();if(r==="openOptionsPage"){let a="";if(n&&n.pageRoute&&(a=n.pageRoute),Qe()){let s=ge().OPTIONS_URL+a;g.tabs.create({url:s})}else{let o=g.runtime.getURL("options.html");g.tabs.create({url:o+a})}}else if(r==="openAboutPage")if(Qe()){let o=ge().OPTIONS_URL;g.tabs.create({url:o+"#about"})}else g.tabs.create({url:g.runtime.getURL("options.html#about")});else if(r==="openInTab")n&&g.tabs.create({url:n});else if(r=="openSearchEnhancement")if(Qe()){let o=ge().OPTIONS_URL;g.tabs.create({url:o+"#advanced"})}else g.tabs.create({url:g.runtime.getURL("options.html#advanced")});else if(r==="openEbookViewerPage"){let o=ge().EBOOK_VIEWER_URL;g.tabs.create({url:o})}else if(r==="openSubtitleBuilderPage"){let o=ge().SUBTITLE_BUILDER_URL;g.tabs.create({url:o})}else if(r==="openEbookBuilderPage"){let o=ge().EBOOK_BUILDER_URL;g.tabs.create({url:o})}else if(r==="openHtmlViewerPage"){let a=g.runtime.getURL("html/index.html");g.tabs.create({url:a})}else if(r==="openPdfViewerPage"){let a=g.runtime.getURL("pdf/index.html");Qe()&&(a=ge().PDF_VIEWER_URL),g.tabs.create({url:a})}else{if(r==="setLocalConfig")return Pt(n);if(r=="getUserConfig")return Ht();if(r=="setUserConfig")return ft(n);if(r==="detectLanguage"){let{text:a,pageLangs:o}=n;if(g.i18n&&g.i18n.detectLanguage)try{let s=await go(g.i18n.detectLanguage(a),1500,{isReliable:!1,languages:[]});if(s.languages.length>0){if(s.isReliable)return mt(s.languages[0].language);for(let i of s.languages){let c=mt(i.language);if(o.includes(c)&&i.percentage>50)return c}}return"auto"}catch(s){return D.debug("detect language error",s),"auto"}else return"auto"}else if(r==="detectTabLanguage")try{let a=await go(g.tabs.detectLanguage(t.id),1500,"auto");return mt(a)}catch(a){return D.debug("detect tab language error, use auto ",a),"auto"}else if(r==="autoSyncLatestConfig"){try{await to()}catch(a){D.debug("auto sync latest config error",a)}return""}else if(r!=="updateCommands"){if(r==="setBadge"){let a=t.id,o=n&&n.text?n.text:"";a&&jl(a,o)}}}}};function po(){cn();let e=g.runtime.getManifest();if(e.manifest_version>2,e.manifest_version===2&&g.webRequest&&g.webRequest.onBeforeSendHeaders){let t=hr.map(n=>n.condition.urlFilter),r=hr.reduce((n,a)=>(a.condition.resourceTypes.forEach(o=>{n.includes(o)||n.push(o)}),n),[]);g.webRequest.onBeforeSendHeaders.addListener(function(n){if(!(n.originUrl&&n.originUrl.startsWith("http"))&&n.originUrl&&n.requestHeaders)for(let a=0;a{let o=setTimeout(()=>{n(r)},t);e.then(s=>{clearTimeout(o),n(s)}).catch(s=>{clearTimeout(o),a(s)})})}function ho(){typeof g.commands<"u"&&g.commands.onCommand.addListener(async e=>{if(D.debug(`received command: ${e}`),["toggleTranslatePage"].includes(e)){let t=await g.tabs.query({active:!0,currentWindow:!0});if(t.length===0||typeof t[0].id>"u")return;let n=t[0].url;if(Ha(n)){g.tabs.create({url:Wa(n)});return}}await un({method:e,data:{trigger:"shortcut"}})})}async function un(e){let r=(await g.tabs.query({currentWindow:!0,active:!0}))[0].id;cn().sendMessage(`content_script:main:${r}`,e).catch(a=>{D.error("send content message request failed",e,a)})}function Kl(e,t){let r=e;return t&&Object.keys(t).forEach(n=>{let a=t[n];if(a===void 0)return;let o=Wl(n);if(typeof a=="object"||o){let s=a;o&&typeof s=="string"&&(s={tag:"a",href:s});let i=`<${n}>`,c=r.indexOf(i);if(c!==-1){let d=s.tag||"a",u=r.indexOf(``);if(u!==-1){let f=r.substring(c+i.length,u),_=Object.keys(s).filter(v=>v!=="tag").map(v=>`${v}="${s[v]}"`).join(" ");r=r.replace(`${i}${f}`,`<${d} ${_}>${f}`)}}}else if(a){let s=new RegExp("{"+n+"}","gm");r=r.replace(s,a.toString())}}),r}function fo(e,t,r){let n=e[t];if(!n)return r;let a=r.split("."),o="";do{o+=a.shift();let s=n[o];s!==void 0&&(typeof s=="object"||!a.length)?(n=s,o=""):a.length?o+=".":n=r}while(a.length);return n}function bo(e,t,r,n,a){if(!e.hasOwnProperty(r))return t;let o=fo(e,r,t);return o===t&&r!==n&&(o=fo(e,n,t)),Kl(o,a)}function Wl(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}var yo={"zh-CN":{"languages.en":"\u82F1\u8BED","languages.ja":"\u65E5\u8BED","languages.ko":"\u97E9\u8BED","languages.es":"\u897F\u73ED\u7259\u8BED","languages.fr":"\u6CD5\u8BED","languages.de":"\u5FB7\u8BED","languages.it":"\u610F\u5927\u5229\u8BED","languages.pt":"\u8461\u8404\u7259\u8BED","languages.ru":"\u4FC4\u8BED","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"},"zh-TW":{"languages.en":"\u82F1\u8A9E","languages.ja":"\u65E5\u8A9E","languages.ko":"\u97D3\u8A9E","languages.es":"\u897F\u73ED\u7259\u8A9E","languages.fr":"\u6CD5\u8A9E","languages.de":"\u5FB7\u8A9E","languages.it":"\u610F\u5927\u5229\u8A9E","languages.pt":"\u8461\u8404\u7259\u8A9E","languages.ru":"\u4FC4\u8A9E","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"}},zl={...ut,"zh-CN":{...yo["zh-CN"],...ut["zh-CN"]},"zh-TW":{...yo["zh-TW"],...ut["zh-TW"]}};function wo(e,t,r){return bo(zl,e,t,lr,r)}var Vt=Aa()?["action"]:["browser_action","page_action"],To=[{id:"toggleTranslatePage",contexts:["page","frame","selection",...Vt]},{id:Vr,contexts:Vt},{id:Yr,contexts:Vt},{id:Qr,contexts:Vt},{id:$r,contexts:Vt}];async function dn(e){D.debug("createContextMenu",To);for(let t of To){let r=!0;e.isShowContextMenu===!1&&t.id==="toggleTranslatePage"&&(r=!1);try{g.contextMenus.create({id:t.id,title:wo(`browser.${t.id}`,e.interfaceLanguage),contexts:t.contexts,visible:r},()=>g.runtime.lastError)}catch(n){D.debug("create context menu error, it's ok!!",n,`menu id: ${t.id}`)}}}function xo(){g.contextMenus.onClicked.addListener(e=>{if(e.menuItemId===Vr)if(Qe()){let r=ge().OPTIONS_URL;g.tabs.create({url:r})}else g.runtime.openOptionsPage();else if(e.menuItemId===$r){let t=za();g.tabs.create({url:t})}else if(e.menuItemId===Qr){let r=ge().EBOOK_BUILDER_URL;g.tabs.create({url:r})}else if(e.menuItemId===Yr){let r=ge().EBOOK_VIEWER_URL;g.tabs.create({url:r})}else if(e.menuItemId===Ta){let r=ge().SUBTITLE_BUILDER_URL;g.tabs.create({url:r})}else e.menuItemId===wa?g.tabs.create({url:"https://immersivetranslate.com/docs/donate/"}):un({method:e.menuItemId,data:{trigger:"right_menu"}})})}function mn(){it().then(e=>{e.uninstallUrl&&g.runtime.setUninstallURL&&g.runtime.setUninstallURL(e.uninstallUrl),gn(e)}).catch(e=>{D.error("create menu error",e)})}function gn(e){e?dn(e):it().then(t=>{dn(t)}).catch(t=>{D.error("create menu error",t)})}function vo(){g.runtime.onInstalled.addListener(e=>{D.debug(`onInstalled reason: ${e.reason}`),D.debug(e),e.reason=="install"?(async()=>{let t="https://onboarding.immersivetranslate.com/",n=g.runtime.getURL("").startsWith("safari"),a=!1,o=!1;try{let s=await g.runtime.getPlatformInfo();n?s.os==="mac"?a=!0:s.os==="ios"&&(o=!0):s.os==="android"&&(t="https://onboarding.immersivetranslate.com/mobile/")}catch{}a?t="https://onboarding.immersivetranslate.com/mac-safari/":o&&(t="https://onboarding.immersivetranslate.com/ios/step-2/"),g.tabs.create({url:t}),mn()})():(e.reason=="update"&&g.runtime.getManifest().version!=e.previousVersion,mn())})}po();vo();ho();g.contextMenus&&xo();async function Hl(){g.contextMenus&&gn(),(await it()).debug&&D.setLevel("debug")}Hl().catch(e=>{});})(); +`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main div[class*='h-[125]']":"height:auto"},normalizeBody:"body",extraBlockSelectors:["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,normalizeBody:"#mw-content-text",globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"]},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"}},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:"chat.openai.com",excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0}},{id:"newstop",matches:["chat.newstop.asia","chat.waixingyun.cn"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".n-button.n-button--warning-type.n-button--medium-type",messageWrapperSelector:".markdown-body",streamingChange:!1,streamingDeepChild:!0}},{id:"askgpt",matches:["askgpt.cn","chatcat.zhaoyoung.me"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".home_chat-message-status__EsVNi",messageWrapperSelector:".markdown-body",streamingChange:!0,streamingDeepChild:!0}},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__UyYrv *",".MarkdownLink_linkifiedLink__KxC9G"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__UyYrv",streamingChange:!1,streamingDeepChild:!0}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"newthingsunderthesun",matches:"www.newthingsunderthesun.com",additionalSelectors:["[translate=no]"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"https://steamcommunity.com/app/*",globalStyles:{".forum_topic":"height:auto;",".forum_topic_name":"white-space:normal;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampowered",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:"https://www.webofscience.com/*",globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},excludeSelectors:[".summary-left-panel",".authors","app-full-record-keywords mark"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],extraBlockSelectors:["app-summary-authors + div","app-full-record-keywords span span"],observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://www.jetbrains.com/help/*",extraBlockSelectors:["[data-test=prompt]"]},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails p"]},{id:"isEbook",isEbook:!0,isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span"},{id:"isEbookBuilder",isEbookBuilder:!0,isTranslateTitle:!1,targetWrapperTag:"span",selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com",extraBlockSelectors:["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],extraBlockSelectors:"font[face=verdana]"},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"isSubtitleBuilder",isSubtitleBuilder:!0,selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,wrapperPrefix:"",wrapperSuffix:""},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/",extraBlockSelectors:[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"vimeo",matches:"https://player.vimeo.com/video/*",extraBlockSelectors:["span.vp-captions-line","span[class^=CaptionsRenderer_]"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexityAi",matches:"https://www.perplexity.ai/search/*",extraBlockSelectors:[".prose > span"],additionalStayOriginalSelectors:["a.citation"],insertPosition:"afterend"},{id:"perplexity",matches:"https://www.perplexity.ai",globalStyles:{".line-clamp-1":"-webkit-line-clamp: unset !important;",".line-clamp-2":"-webkit-line-clamp: unset !important;"}},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"babelnovel",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*"],urlChangeDelay:0},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0},{globalAttributes:{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"youtrackJetbrains",matches:"youtrack.jetbrains.com/articles/*",selectors:["[role=presentation]","[data-test=article-content]"],excludeSelectors:[".toolbar__ee8"]},{id:"bbc",matches:"www.bbc.com",excludeSelectors:["section.module--languages",".drop-capped"]},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}}},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"openai",matches:"https://platform.openai.com/docs/*",urlChangeDelay:0},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout":"height:unset !important;",".EntrySummary--u4":"-webkit-line-clamp: unset;max-height:unset;",".EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:[".copyable-text > span"],wrapperPrefix:` +`,wrapperSuffix:"
"},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],globalStyles:{"[class*='lineclamp']":"-webkit-line-clamp:unset;"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],extraBlockSelectors:[".SIPGg",".sc-kzMCTH.pSZXj"],globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"]},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*",globalAttributes:{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead"],injectedCss:["a::after {position:relative!important;}"]},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},globalAttributes:{"#app":{class:""}}},{id:"haproxy",matches:["docs.haproxy.org","www.oreilly.com/openbook/opensources/book/*"],excludeTags:[],stayOriginalSelectors:[],stayOriginalTags:[],isTransformPreTagNewLine:!0},{id:"piAi",matches:"pi.ai/talk",excludeSelectors:[".whitespace-pre-wrap > span *"],aiRule:{streamingSelector:"button[class*='fixed'][disabled]",messageWrapperSelector:".whitespace-pre-wrap",streamingChange:!1,streamingDeepChild:!1},globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *"],"excludeTags.remove":["PRE"],injectedCss:"[data-testid='chat-menu-trigger'] br {display:none;}",aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1}},{id:"feishu",matches:"*.feishu.cn","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],excludeSelectors:[".catalogue__list"]},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"bugsWebkit",matches:"bugs.webkit.org",isTransformPreTagNewLine:!0},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",matches:"www.kaggle.com",excludeTags:["i","button"]},{id:"ieee",matches:"spectrum.ieee.org",extraBlockSelectors:["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"www.cnn.com",excludeSelectors:[".ad-slot-header__wrapper"]},{id:"marginalrevolution",matches:"marginalrevolution.com",globalAttributes:{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",condition:{enableSubtitle:{false:{"excludeSelectors.add":[".bpx-player-subtitle-panel-text"]}}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"docs-oracle",matches:"docs.oracle.com",urlChangeDelay:0},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"edstem",matches:"edstem.org","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:"pubmed.ncbi.nlm.nih.gov",urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share"]},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"tldrnewsletter",matches:"actions.tldrnewsletter.com","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"bugzilla",matches:"bugzilla.mozilla.org","excludeTags.remove":["PRE"],isTransformPreTagNewLine:!0},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"excludeSelectors.add":["aside",".DocSearch-Modal"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"mail.qq.com",useIframePostMessage:!1},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]}]};function ft(e){return Array.isArray(e)?e:e?[e]:[]}function ja(e,t){let r={...e};return Ka(r,t),hl(r,t),r}function qa(e,t,r){let n={...t};return fl(e,n,r),n}function hl(e,t){if(!t.condition)return;let r=t.condition.enableSubtitle?.true||{},n=t.condition.enableSubtitle?.false||{},a=e.enableSubtitle?r:n;Ka(e,a)}function fl(e,t,r){try{return Object.keys(t).forEach(n=>{let[a,o]=n.split(".");if(o){let s=t[n];if(Array.isArray(e[a])&&(s=ft(t[n])),o==="add"){t[a]=Wt(e[a],s),delete t[n];return}else if(o=="remove"){t[a]=on(e[a],s),delete t[n];return}}}),Object.keys(r).forEach(n=>{let[a,o]=n.split(".");if(!a||r[n]===void 0)return;let s=r[n],i=t[a];if(Array.isArray(e[a])&&(s=ft(r[n]),i=ft(t[a])),o==="add"){t[a]=Wt(i,s);return}else if(o=="remove"){t[a]=on(i,s);return}Array.isArray(i)&&a.startsWith("additional")?t[a]=Wt(i,s):t[a]=s}),t}catch{}}function Ka(e,t){return Object.keys(t).forEach(r=>{let[n,a]=r.split(".");if(!n||t[r]===void 0)return;let o=t[r];if(Array.isArray(e[n])&&(o=ft(t[r])),a==="add"){e[n]=Wt(e[n],o);return}else if(a=="remove"){e[n]=on(e[n],o);return}Array.isArray(e[n])&&n.startsWith("additional")?e[n]=Wt(e[n],o):e[n]=o}),e}function Wt(e,t){let r;if(Array.isArray(e)){let n=ft(t);r=[...e,...n],r=Array.from(new Set(r))}else typeof e=="object"&&typeof t=="object"&&(r={...e,...t});return r}function on(e,t){if(Array.isArray(e)){let r=ft(t);return e=e.filter(n=>!r.includes(n)),Array.from(new Set(e))}else typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(r=>{delete e[r]});return e}function bl(){if(H.PROD==="1")return{};let e={};if(H.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&H.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let r={secretId:H.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:H.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=r}if(H.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&H.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let r={appid:H.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:H.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=r}if(H.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let r={token:H.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=r}if(H.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let r={apikey:H.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=r}if(H.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&H.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let r={appId:H.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:H.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=r}if(H.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&H.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let r={accessKeyId:H.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:H.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=r}if(H.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let r={authKey:H.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=r}if(H.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=H.DEEPL_PROXY_ENDPOINT),H.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=H.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),H.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let r={APIKEY:H.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=r}H.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=H.IMMERSIVE_TRANSLATE_SERVICE);let t={};return H.DEBUG==="1"&&(t.debug=!0,t.cache=!1),H.MOCK==="1"&&(t.translationService="mock"),t}async function zt(){let e=await g.storage.local.get(Bt);if(e[Bt]){let t=e[Bt],r=t.tempTranslationUrlMatches||[],n=r.filter(s=>s.expiredAt>Date.now()),a=!1;n.length!==r.length&&(r=n,a=!0);let o={...t,tempTranslationUrlMatches:[...r]};return a&&await Pt(o),o}else return{}}async function Pt(e){await g.storage.local.set({[Bt]:e})}async function it(){let e=await g.storage.local.get(sr),t={...an,buildinConfigUpdatedAt:H.BUILD_TIME};if(e[sr]){let X=e[sr];if(X&&X.buildinConfigUpdatedAt){let C=new Date(X.buildinConfigUpdatedAt),W=new Date(t.buildinConfigUpdatedAt);C>W&&(t=X)}}let r=await Ma.get(cr,null),n={};if(!vt()&&g.commands&&g.commands.getAll){let X=await g.commands.getAll();for(let C of X)C.name&&C.shortcut&&(n[C.name]=C.shortcut)}let a=wl(),o=bl(),s=await Ht(),i=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},c=await zt(),d=new Date;if(c&&c.tempTranslationUrlMatches&&c.tempTranslationUrlMatches.length>0){let X=c.tempTranslationUrlMatches.filter(C=>new Date(C.expiredAt)>d);if(X.length>0){let C=s.translationUrlPattern?s.translationUrlPattern?.matches||[]:[],W=Array.isArray(C)?C:[C],Ce=Array.from(new Set(W.concat(X.map(ae=>ae.match))));s.translationUrlPattern={...s.translationUrlPattern,matches:Ce}}}let u=Object.assign({},i,o,s);if(!u.interfaceLanguage){let X=await yl();u.interfaceLanguage=X}let f=u.interfaceLanguage==="en",_=u.targetLanguage==="en",v=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,P=["bing","google","transmart","mock"].includes(u.translationService)||!u.translationService;!f&&!_&&!v&&P?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let ee=t&&t.enableDefaultAlwaysTranslatedUrls;u.enableDefaultAlwaysTranslatedUrls===!1&&(ee=!1);let Z=u&&u.isChangedAlwaysTranslatedUrls,m=[];u.translationUrlPattern&&u.translationUrlPattern.matches&&(m=u.translationUrlPattern.matches||[]);let ve=!1;Z===void 0&&(m.length>0?Z=!0:Z=!1,u.isChangedAlwaysTranslatedUrls=Z,s.isChangedAlwaysTranslatedUrls=Z,ve=!0);let G=(u?.translationLanguagePattern?.matches?.length||0)>0,te=await kt("installedAt",""),be=Number(await qt("translage_page_daily",0)),S=Number(await kt(va,0)),y;S>0&&(Date.now()-S0&&(Date.now()-bep.id&&Ce[p.id]?qa(t.generalRule,Ce[p.id],p):p);A[C]=[...ae,...A[C]]}if(H.PROD==="0"&&H.DEV_RULES){let W=JSON.parse(H.DEV_RULES);A[C]=[...W,...A[C]]}}else u[C]!==void 0&&(A[C]=u[C])}return A.donateUrl=t.donateUrl,A.minVersion=t.minVersion,A.feedbackUrl=t.feedbackUrl,A}async function Ht(){return(await g.storage.sync.get("userConfig")||{}).userConfig||{}}async function bt(e){await g.storage.sync.set({userConfig:e})}var yl=async()=>{let e=["zh-CN"];try{e=await g.i18n.getAcceptLanguages()}catch(n){D.warn("get browser language error:",n)}let r=e.map(n=>mt(n)).find(n=>ut[n]);return r||"en"},wl=()=>{let e={...an,buildinConfigUpdatedAt:H.BUILD_TIME};return{...e,targetLanguage:lr,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing"},rules:[]}};function Tl(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(n=>!e.includes(n)).length>0}function Wa(e){let t=g.runtime.getURL(ba),r=new URL(t);return(e.startsWith("http")||!Ca())&&r.searchParams.set("file",e),r.href}function za(){return ge().PDF_VIEWER_URL}function Ha(e){return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}var Ga=["*://*/*","*","*://*"],$a="immersive-translate-wildcard-placeholder.com";function xl(e,t){let r=[];if(!t||(t&&!Array.isArray(t)?r=[t]:r=t,r.length===0))return null;if(r.some(s=>Ga.includes(s)))return e;let n=new URL(e);n.hash="",n.search="";let a=n.href,o=n.hostname;if(r&&r.length>0){let s=r.find(i=>{let c=i;if(i===o)return!0;if(Ga.includes(i))return!0;if(!i.includes("*")&&i.includes("://")){try{let d=new URL(i);return d.pathname==="/"&&!i.endsWith("/")?d.hostname===o:Sl(a,i)}catch{}return!1}else{let d,u=i;if(i.includes("://")){let Z=i.split("://");d=Z[0],d==="*"&&Z.length>1&&(d="*",i="https://"+Z[1])}else d="*",i="https://"+i;let f=i.replace(/\*/g,$a),_;try{_=new URL(f)}catch{return D.debug("invalid match pattern",f,"raw match value:",u),!1}let v=_.hostname,P=_.pathname;P==="/"&&(u.replace("://","").includes("/")||(P="/*"));let ee=vl(d+":",Va(v),Va(P));if(ee){let Z=new URL(a);return Z.port="",ee.test(Z.href)}else return!1}});if(s)return s}return null}function Va(e){return e.replaceAll($a,"*")}function vl(e,t,r){let n="^";return e==="*:"?n+="(http:|https:|file:)":n+=e,n+="//",t&&(e==="file:"||(t==="*"?n+="[^/]+?":(t.match(/^\*\./)&&(n+="[^/]*?",t=t.substring(2)),n+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),r?r==="*"||r==="/*"?n+="(/.*)?":r.includes("*")?(n+=r.replace(/\*/g,".*?"),n+="/?"):n+=r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):n+="/?",n+="$",new RegExp(n)}function Ya(e,t){return xl(e,t)!==null}function Sl(e,t){let r=new URL(e),n=new URL(t);return r.hostname===n.hostname&&r.pathname===n.pathname&&r.protocol===n.protocol&&r.port===n.port}var pr=class{accessToken;constructor(t){this.accessToken=t}async listAll(){let t=[],r="";do{let{nextPageToken:n,files:a}=await this.list(r).catch(o=>{throw o});t.push(...a),r=n||""}while(r);return t}async getConfig(t){try{return await(await fetch(`https://www.googleapis.com/drive/v3/files/${t}?alt=media`,{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(r){return D.error("get config error, use default",r),{}}}async delete(t){await fetch(`https://www.googleapis.com/drive/v3/files/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${this.accessToken}`}})}findByName(t){return this.list(void 0,`name = '${t}'`)}uploadConfig(t,r=ir){let n=new Blob([JSON.stringify(t,null,2)],{type:"application/json"});return this.upload({name:r,parents:["appDataFolder"],mimeType:"application/json"},n)}updateConfig(t,r){let n=new Blob([JSON.stringify(r,null,2)],{type:"application/json"});return this.updateContent(t,n)}async upload(t,r){let n=new FormData;n.append("metadata",new Blob([JSON.stringify(t)],{type:"application/json; charset=UTF-8"})),n.append("file",r);let a=await fetch("https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart",{method:"POST",headers:{Authorization:`Bearer ${this.accessToken}`},body:n});return a.ok?await a.json():Promise.reject(a.text())}async list(t,r){let n=new URL("https://www.googleapis.com/drive/v3/files");t&&n.searchParams.append("pageToken",t),r&&n.searchParams.append("q",r),n.searchParams.append("spaces","appDataFolder"),n.searchParams.append("fields","files(id,name,createdTime,modifiedTime,size)"),n.searchParams.append("pageSize","100"),n.searchParams.append("orderBy","createdTime desc");try{return D.debug("list api:",n.toString(),this.accessToken),await(await fetch(n.toString(),{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(a){throw D.error("fetch google ip error",a),a}}async updateContent(t,r){return await(await fetch(`https://www.googleapis.com/upload/drive/v3/files/${t}?uploadType=media`,{method:"PATCH",headers:{Authorization:`Bearer ${this.accessToken}`},body:r})).text()}};function Qa(e,t){let r=["https://www.googleapis.com/auth/drive.appdata"];return`https://accounts.google.com/o/oauth2/v2/auth?client_id=${or}&response_type=token&redirect_uri=${encodeURIComponent(t)}&scope=${encodeURIComponent(r.join(" "))}&state=${encodeURIComponent(JSON.stringify(e))}`}function Za(e){let t=e.match(/[#?](.*)/);return!t||t.length<1?null:{access_token:new URLSearchParams(t[1].split("#")[0]).get("access_token")}}async function Ja(e,t,r,n,a,o,s){if(D.debug(`autoSyncStrategy accessToken: ${e}`),t===null){D.debug("autoSyncStrategy settings is null");return}let i=new pr(e);try{let c=(await i.findByName(ir)).files;D.debug("files",c);let d=c[0]?.id,u=null;if(d&&(u=await i.getConfig(d).then(f=>({fileId:d,config:f}))),u){let{config:f,fileId:_}=u,v=f.updatedAt?new Date(f.updatedAt):new Date(0),P=t.updatedAt?new Date(t.updatedAt):new Date(0);if(D.debug("remoteUpdatedAt",v,"localUpdatedAt",P),v>P)D.debug("remote is newer, update local config",f),r(f),o&&o(!0);else if(v.getTime()===P.getTime())D.debug("remote and local are the same, do nothing"),o&&o(!1);else if(v(await e.removeAuthInfo(),Vr()&&globalThis.location.reload(),n))}static async getAuthInfo(){let t=await g.storage.local.get(St);if(t[St])return t[St]}static async removeAuthInfo(){return await g.storage.local.remove(St)}static setAuthInfo(t){return g.storage.local.set({[St]:t})}async auth(t=!1){let r=await e.getAuthInfo();if(D.debug(this.CLASSNAME,"token from cache:",r),r&&r.access_token&&await Xa(r.access_token).then(o=>!0).catch(o=>!1))return Promise.resolve(r);let n=Qa(this._state,this._redirectUrl);return D.debug(this.CLASSNAME,"auth url: "+n),Vr()?this.userscriptAuthWorkflow(n,t):this.extensionAuthWorkflow(n).then(a=>(e.setAuthInfo(a),a))}async userscriptAuthWorkflow(t,r){return r&&await g.storage.local.set({[ya]:!0}),globalThis.open(t,"_self"),Promise.resolve({})}extensionAuthWorkflow(t){let r,n=!1;return new Promise((a,o)=>{let s=()=>{g.tabs.onUpdated.removeListener(i),g.tabs.onRemoved.removeListener(c)},i=(_,v,P)=>{if(D.debug(this.CLASSNAME,"create tab onUpdated: "+P.url),r===_){let ee=new URL(P.url||""),Z=Za(P.url);ee.pathname.startsWith("/auth-done")&&Z?.access_token&&(D.debug(this.CLASSNAME,"auth done: "+P.url),a({access_token:Z.access_token}),n=!0,g.tabs.remove(_),s())}},c=(_,v)=>{D.debug(this.CLASSNAME,"create tab onRemoved: "+_),(_===r||!n)&&(s(),o(new Error("auth failed")))},d=Math.min(500,screen.availWidth),u=Math.min(650,screen.availHeight),f;g.windows===void 0?f=g.tabs.create({url:t}).then(_=>{r=_.id}):f=g.windows.create({url:t,type:"popup",width:d,height:u,left:Math.round((screen.width-d)/2),top:Math.round((screen.height-u)/2)}).then(_=>{r=_.tabs[0].id}),f.then(()=>{g.tabs.onUpdated.addListener(i),g.tabs.onRemoved.addListener(c)}).catch(_=>{D.debug(this.CLASSNAME,"create tab failed: "+_),o(_)})})}};var kl="https://www.googleapis.com/oauth2/v3/tokeninfo",Cl=or,Pl=ge().REDIRECT_URL;function Xa(e){if(!e)throw"Authorization failure";let t=`${kl}?access_token=${e}`,r=new Request(t,{method:"GET"});function n(a){return new Promise((o,s)=>{a.status!=200&&s("Token validation error"),a.json().then(i=>{i.aud&&i.aud===Cl?o(e):s("Token validation error")})})}return fetch(r).then(n)}function eo(e,t=!1){let r=Pl;if(typeof window<"u"&&window.location.protocol.startsWith("http")){let a=window.location.hostname,o=window.location.port;r=`${window.location.protocol}//${a}${o?`:${o}`:""}/auth-done/`}return new hr(e,r).auth(t)}async function to(){}function ro(e,t){let r=new Map;for(let o of t)r.set(o.header.toLowerCase(),o);let n=[],a=e.filter(o=>{let s=r.get(o.name.toLowerCase());if(s){if(s.operation==="remove")return!1;if(s.operation==="set")return!1}return!0});for(let o of t)o.operation==="set"&&n.push({name:o.header,value:o.value||""});return a.concat(n)}var fr=[{id:1,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://httpstat.us/429"},{header:"origin",operation:"set",value:"https://httpstat.us/429"},{header:"DNT",operation:"set",value:"1"}]},condition:{urlFilter:"https://httpstat.us/429",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh"]}},{id:2,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://www.deepl.com/"},{header:"origin",operation:"set",value:"https://www.deepl.com"},{header:"DNT",operation:"set",value:"1"},{header:"cookie",operation:"remove"}]},condition:{urlFilter:"https://www2.deepl.com/jsonrpc*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh"]}},{id:200,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://www.deepl.com/"},{header:"origin",operation:"set",value:"chrome-extension://cofdbpoegempjloogbagkncekinflcnj"},{header:"DNT",operation:"set",value:"1"}]},condition:{urlFilter:"https://api.deepl.com/jsonrpc*",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh"]}},{id:201,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"Referer",operation:"set",value:"https://www.deepl.com/"},{header:"origin",operation:"set",value:"chrome-extension://cofdbpoegempjloogbagkncekinflcnj"}]},condition:{urlFilter:"https://w.deepl.com/oidc/token",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh"]}},{id:3,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"origin",operation:"set",value:"chrome-extension://lkjkfecdnfjopaeaibboihfkmhdjmanm"}]},condition:{urlFilter:"https://transmart.qq.com/api/imt",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh"]}},{id:4,priority:1,action:{type:"modifyHeaders",requestHeaders:[{header:"origin",operation:"set",value:"chrome-extension://lkjkfecdnfjopaeaibboihfkmhdjmanm"}]},condition:{urlFilter:"https://translate.volcengine.com/crx/translate/v1/",resourceTypes:["xmlhttprequest"],domainType:"thirdParty",initiatorDomains:["cfhamdkdjgoelclgllcoikbckcfpaklj","bpoadfkcbjbfhfodiogcnhhhpibjhbnh"]}}];function st(e,t){var r=(e&65535)+(t&65535),n=(e>>16)+(t>>16)+(r>>16);return n<<16|r&65535}function El(e,t){return e<>>32-t}function yr(e,t,r,n,a,o){return st(El(st(st(t,e),st(n,o)),a),r)}function Me(e,t,r,n,a,o,s){return yr(t&r|~t&n,e,t,a,o,s)}function Le(e,t,r,n,a,o,s){return yr(t&n|r&~n,e,t,a,o,s)}function Re(e,t,r,n,a,o,s){return yr(t^r^n,e,t,a,o,s)}function Ie(e,t,r,n,a,o,s){return yr(r^(t|~n),e,t,a,o,s)}function br(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var r,n,a,o,s,i=1732584193,c=-271733879,d=-1732584194,u=271733878;for(r=0;r>5]>>>t%32&255);return r}function sn(e){var t,r=[];for(r[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(n=br(n,e.length*8)),r=0;r<16;r+=1)a[r]=n[r]^909522486,o[r]=n[r]^1549556828;return s=br(a.concat(sn(t)),512+t.length*8),no(br(o.concat(s),512+128))}function ao(e){var t="0123456789abcdef",r="",n,a;for(a=0;a>>4&15)+t.charAt(n&15);return r}function ln(e){return unescape(encodeURIComponent(e))}function oo(e){return Ml(ln(e))}function Rl(e){return ao(oo(e))}function io(e,t){return Ll(ln(e),ln(t))}function Il(e,t){return ao(io(e,t))}function so(e,t,r){return t?r?io(t,e):Il(t,e):r?oo(e):Rl(e)}function cn(e){if(Math.abs(e)<1024)return e+" Byte";let r=["KB","MB","GB","TB","PB","EB","ZB","YB"],n=-1;do e/=1024,++n;while(Math.abs(e)>=1024&&n{let a=e,o=1,s=indexedDB.open(a,o);s.onsuccess=i=>{r(s.result)},s.onerror=i=>{n()},s.onupgradeneeded=i=>{let c=s.result,d=t||"cache";c.createObjectStore(d,{keyPath:"key"})}})}async function lo(e){let t=`${xe}-${e.service}@${e.from}->${e.to}`;return await Ol(t,e)}async function co(e){let t=so(e.originalText),r=`${xe}-${e.service}@${e.from}->${e.to}`;return await Dl(r,t)}async function Dl(e,t){let r=await Gt(e);return await new Promise((n,a)=>{if(!r)return a();let o="cache",i=r.transaction([o],"readonly").objectStore(o).get(t);i.onsuccess=c=>{r.close();let d=i.result;n(d)},i.onerror=c=>{r.close(),a()}})}async function Ol(e,t){let r=await Gt(e);return(await uo()).includes(e)||await Nl(e),await new Promise(a=>{if(!r)return a(!1);let o="cache",i=r.transaction([o],"readwrite").objectStore(o).put(t);i.onsuccess=c=>{r.close(),a(!0)},i.onerror=c=>{r.close(),a(!1)}})}async function Nl(e){let t="cache_list",r=await Gt(xe+"-cacheList",t),a=r.transaction([t],"readwrite").objectStore(t).put({key:e});a.onsuccess=o=>{r.close(),_t.push(e)},a.onerror=o=>{r.close()}}async function uo(){if(_t&&_t.length>0)return _t;let e=await Gt(xe+"-cacheList","cache_list");return _t=await new Promise(t=>{let r="cache_list",a=e.transaction([r],"readonly").objectStore(r).getAllKeys();a.onsuccess=o=>{e.close(),t(a.result)},a.onerror=o=>{e.close(),t([])}}),_t}async function mo(){try{let e=[];(await uo()).forEach(n=>{e.push(Ul(n))});let r=await Promise.all(e);return cn(r.reduce((n,a)=>n+a,0))}catch{return cn(0)}}async function Ul(e){let t=await Gt(e),n=[...t.objectStoreNames].reduce((s,i)=>{let c=Bl(t,i);return s.push(c),s},[]),a=await Promise.all(n);return t.close(),a.reduce((s,i)=>s+i,0)}async function Bl(e,t){return await new Promise((r,n)=>{if(e==null)return n();let a=0,o=e.transaction([t]).objectStore(t).openCursor();o.onsuccess=s=>{let i=o.result;if(i){let c=i.value,d=JSON.stringify(c);a+=d.length,i.continue()}else r(a)},o.onerror=s=>n("error in "+t+": "+s)})}var wr,Fl=async function(e,t){let{method:r,data:n}=e;if(D.debug("background received message",r,n||" "),r==="mock")await Cr(150);else{if(r==="queryParagraphCache")return co(n);if(r==="setParagraphCache")return lo(n);if(r==="calculateSize")return mo();if(r==="fetch")return mr(n);if(r==="getConfig")return it();if(r==="getLocalConfig")return zt();if(r==="openOptionsPage"){let a="";if(n&&n.pageRoute&&(a=n.pageRoute),Qe()){let s=ge().OPTIONS_URL+a;g.tabs.create({url:s})}else{let o=g.runtime.getURL("options.html");g.tabs.create({url:o+a})}}else if(r==="openAboutPage")if(Qe()){let o=ge().OPTIONS_URL;g.tabs.create({url:o+"#about"})}else g.tabs.create({url:g.runtime.getURL("options.html#about")});else if(r==="openInTab")n&&g.tabs.create({url:n});else if(r=="openSearchEnhancement")if(Qe()){let o=ge().OPTIONS_URL;g.tabs.create({url:o+"#advanced"})}else g.tabs.create({url:g.runtime.getURL("options.html#advanced")});else if(r==="openEbookViewerPage"){let o=ge().EBOOK_VIEWER_URL;g.tabs.create({url:o})}else if(r==="openSubtitleBuilderPage"){let o=ge().SUBTITLE_BUILDER_URL;g.tabs.create({url:o})}else if(r==="openEbookBuilderPage"){let o=ge().EBOOK_BUILDER_URL;g.tabs.create({url:o})}else if(r==="openHtmlViewerPage"){let a=g.runtime.getURL("html/index.html");g.tabs.create({url:a})}else if(r==="openPdfViewerPage"){let a=g.runtime.getURL("pdf/index.html");Qe()&&(a=ge().PDF_VIEWER_URL),g.tabs.create({url:a})}else{if(r==="setLocalConfig")return Pt(n);if(r=="getUserConfig")return Ht();if(r=="setUserConfig")return bt(n);if(r==="detectLanguage"){let{text:a,pageLangs:o}=n;if(g.i18n&&g.i18n.detectLanguage)try{let s=await go(g.i18n.detectLanguage(a),1500,{isReliable:!1,languages:[]});if(s.languages.length>0){if(s.isReliable)return mt(s.languages[0].language);for(let i of s.languages){let c=mt(i.language);if(o.includes(c)&&i.percentage>50)return c}}return"auto"}catch(s){return D.debug("detect language error",s),"auto"}else return"auto"}else if(r==="detectTabLanguage")try{let a=await go(g.tabs.detectLanguage(t.id),1500,"auto");return mt(a)}catch(a){return D.debug("detect tab language error, use auto ",a),"auto"}else if(r==="autoSyncLatestConfig"){try{await to()}catch(a){D.debug("auto sync latest config error",a)}return""}else if(r!=="updateCommands"){if(r==="setBadge"){let a=t.id,o=n&&n.text?n.text:"";a&&jl(a,o)}}}}};function po(){un();let e=g.runtime.getManifest();if(e.manifest_version>2,e.manifest_version===2&&g.webRequest&&g.webRequest.onBeforeSendHeaders){let t=fr.map(n=>n.condition.urlFilter),r=fr.reduce((n,a)=>(a.condition.resourceTypes.forEach(o=>{n.includes(o)||n.push(o)}),n),[]);g.webRequest.onBeforeSendHeaders.addListener(function(n){if(!(n.originUrl&&n.originUrl.startsWith("http"))&&n.originUrl&&n.requestHeaders)for(let a=0;a{let o=setTimeout(()=>{n(r)},t);e.then(s=>{clearTimeout(o),n(s)}).catch(s=>{clearTimeout(o),a(s)})})}function ho(){typeof g.commands<"u"&&g.commands.onCommand.addListener(async e=>{if(D.debug(`received command: ${e}`),["toggleTranslatePage"].includes(e)){let t=await g.tabs.query({active:!0,currentWindow:!0});if(t.length===0||typeof t[0].id>"u")return;let n=t[0].url;if(Ha(n)){g.tabs.create({url:Wa(n)});return}}await dn({method:e,data:{trigger:"shortcut"}})})}async function dn(e){let r=(await g.tabs.query({currentWindow:!0,active:!0}))[0].id;un().sendMessage(`content_script:main:${r}`,e).catch(a=>{D.error("send content message request failed",e,a)})}function Kl(e,t){let r=e;return t&&Object.keys(t).forEach(n=>{let a=t[n];if(a===void 0)return;let o=Wl(n);if(typeof a=="object"||o){let s=a;o&&typeof s=="string"&&(s={tag:"a",href:s});let i=`<${n}>`,c=r.indexOf(i);if(c!==-1){let d=s.tag||"a",u=r.indexOf(``);if(u!==-1){let f=r.substring(c+i.length,u),_=Object.keys(s).filter(v=>v!=="tag").map(v=>`${v}="${s[v]}"`).join(" ");r=r.replace(`${i}${f}`,`<${d} ${_}>${f}`)}}}else if(a){let s=new RegExp("{"+n+"}","gm");r=r.replace(s,a.toString())}}),r}function fo(e,t,r){let n=e[t];if(!n)return r;let a=r.split("."),o="";do{o+=a.shift();let s=n[o];s!==void 0&&(typeof s=="object"||!a.length)?(n=s,o=""):a.length?o+=".":n=r}while(a.length);return n}function bo(e,t,r,n,a){if(!e.hasOwnProperty(r))return t;let o=fo(e,r,t);return o===t&&r!==n&&(o=fo(e,n,t)),Kl(o,a)}function Wl(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}var yo={"zh-CN":{"languages.en":"\u82F1\u8BED","languages.ja":"\u65E5\u8BED","languages.ko":"\u97E9\u8BED","languages.es":"\u897F\u73ED\u7259\u8BED","languages.fr":"\u6CD5\u8BED","languages.de":"\u5FB7\u8BED","languages.it":"\u610F\u5927\u5229\u8BED","languages.pt":"\u8461\u8404\u7259\u8BED","languages.ru":"\u4FC4\u8BED","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"},"zh-TW":{"languages.en":"\u82F1\u8A9E","languages.ja":"\u65E5\u8A9E","languages.ko":"\u97D3\u8A9E","languages.es":"\u897F\u73ED\u7259\u8A9E","languages.fr":"\u6CD5\u8A9E","languages.de":"\u5FB7\u8A9E","languages.it":"\u610F\u5927\u5229\u8A9E","languages.pt":"\u8461\u8404\u7259\u8A9E","languages.ru":"\u4FC4\u8A9E","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"}},zl={...ut,"zh-CN":{...yo["zh-CN"],...ut["zh-CN"]},"zh-TW":{...yo["zh-TW"],...ut["zh-TW"]}};function wo(e,t,r){return bo(zl,e,t,lr,r)}var Vt=Aa()?["action"]:["browser_action","page_action"],To=[{id:"toggleTranslatePage",contexts:["page","frame","selection",...Vt]},{id:$r,contexts:Vt},{id:Qr,contexts:Vt},{id:Zr,contexts:Vt},{id:Yr,contexts:Vt}];async function mn(e){D.debug("createContextMenu",To);for(let t of To){let r=!0;e.isShowContextMenu===!1&&t.id==="toggleTranslatePage"&&(r=!1);try{g.contextMenus.create({id:t.id,title:wo(`browser.${t.id}`,e.interfaceLanguage),contexts:t.contexts,visible:r},()=>g.runtime.lastError)}catch(n){D.debug("create context menu error, it's ok!!",n,`menu id: ${t.id}`)}}}function xo(){g.contextMenus.onClicked.addListener(e=>{if(e.menuItemId===$r)if(Qe()){let r=ge().OPTIONS_URL;g.tabs.create({url:r})}else g.runtime.openOptionsPage();else if(e.menuItemId===Yr){let t=za();g.tabs.create({url:t})}else if(e.menuItemId===Zr){let r=ge().EBOOK_BUILDER_URL;g.tabs.create({url:r})}else if(e.menuItemId===Qr){let r=ge().EBOOK_VIEWER_URL;g.tabs.create({url:r})}else if(e.menuItemId===xa){let r=ge().SUBTITLE_BUILDER_URL;g.tabs.create({url:r})}else e.menuItemId===Ta?g.tabs.create({url:"https://immersivetranslate.com/docs/donate/"}):dn({method:e.menuItemId,data:{trigger:"right_menu"}})})}function gn(){it().then(e=>{e.uninstallUrl&&g.runtime.setUninstallURL&&g.runtime.setUninstallURL(e.uninstallUrl),pn(e)}).catch(e=>{D.error("create menu error",e)})}function pn(e){e?mn(e):it().then(t=>{mn(t)}).catch(t=>{D.error("create menu error",t)})}function vo(){g.runtime.onInstalled.addListener(e=>{D.debug(`onInstalled reason: ${e.reason}`),D.debug(e),e.reason=="install"?(async()=>{let t="https://onboarding.immersivetranslate.com/",n=g.runtime.getURL("").startsWith("safari"),a=!1,o=!1;try{let s=await g.runtime.getPlatformInfo();n?s.os==="mac"?a=!0:s.os==="ios"&&(o=!0):s.os==="android"&&(t="https://onboarding.immersivetranslate.com/mobile/")}catch{}a?t="https://onboarding.immersivetranslate.com/mac-safari/":o&&(t="https://onboarding.immersivetranslate.com/ios/step-2/"),g.tabs.create({url:t}),gn()})():(e.reason=="update"&&g.runtime.getManifest().version!=e.previousVersion,gn())})}po();vo();ho();g.contextMenus&&xo();async function Hl(){g.contextMenus&&pn(),(await it()).debug&&D.setLevel("debug")}Hl().catch(e=>{});})(); /*! Bundled license information: bowser/src/bowser.js: diff --git a/dist/firefox/content_script.js b/dist/firefox/content_script.js index fded793..53e797e 100644 --- a/dist/firefox/content_script.js +++ b/dist/firefox/content_script.js @@ -1,4 +1,4 @@ -(()=>{var gf=Object.create;var Pi=Object.defineProperty;var pf=Object.getOwnPropertyDescriptor;var ff=Object.getOwnPropertyNames;var hf=Object.getPrototypeOf,bf=Object.prototype.hasOwnProperty;var yf=(e,t)=>()=>(e&&(t=e(e=0)),t);var xf=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ef=(e,t)=>{for(var n in t)Pi(e,n,{get:t[n],enumerable:!0})},Tf=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ff(t))!bf.call(e,r)&&r!==n&&Pi(e,r,{get:()=>t[r],enumerable:!(a=pf(t,r))||a.enumerable});return e};var Cf=(e,t,n)=>(n=e!=null?gf(hf(e)):{},Tf(t||!e||!e.__esModule?Pi(n,"default",{value:e,enumerable:!0}):n,e));var F,m=yf(()=>{F={BUILD_TIME:"2023-09-17T09:32:32.000Z",VERSION:"0.9.5",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"0",BETA:"0",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { +(()=>{var pf=Object.create;var Pi=Object.defineProperty;var ff=Object.getOwnPropertyDescriptor;var hf=Object.getOwnPropertyNames;var bf=Object.getPrototypeOf,yf=Object.prototype.hasOwnProperty;var xf=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ef=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Tf=(e,t)=>{for(var n in t)Pi(e,n,{get:t[n],enumerable:!0})},Cf=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of hf(t))!yf.call(e,r)&&r!==n&&Pi(e,r,{get:()=>t[r],enumerable:!(a=ff(t,r))||a.enumerable});return e};var wf=(e,t,n)=>(n=e!=null?pf(bf(e)):{},Cf(t||!e||!e.__esModule?Pi(n,"default",{value:e,enumerable:!0}):n,e));var F,m=xf(()=>{F={BUILD_TIME:"2023-09-19T07:46:36.000Z",VERSION:"0.9.6",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"0",BETA:"0",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { --immersive-translate-theme-underline-borderColor: #72ece9; --immersive-translate-theme-nativeUnderline-borderColor: #72ece9; --immersive-translate-theme-nativeDashed-borderColor: #72ece9; @@ -4234,14 +4234,14 @@ select.text-label {
-`,PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",OPTIONS_URL:"https://dash.immersivetranslate.com/",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",MOCK:"0",DEBUG:"0",INSTALL_FROM:"firefox_zip"}});var Dm=xf((Mo,Jr)=>{m();(function(){var e;function t(d){var b,C,h="",A=-1,S;if(d&&d.length)for(S=d.length;(A+=1)>>6&31,128|b&63):b<=65535?h+=String.fromCharCode(224|b>>>12&15,128|b>>>6&63,128|b&63):b<=2097151&&(h+=String.fromCharCode(240|b>>>18&7,128|b>>>12&63,128|b>>>6&63,128|b&63));return h}function n(d){var b,C,h,A,S,U=[],R;if(b=C=h=A=S=0,d&&d.length)for(R=d.length,d+="";b191&&h<224?(A=d.charCodeAt(b+1),U[C]=String.fromCharCode((h&31)<<6|A&63),b+=2):(A=d.charCodeAt(b+1),S=d.charCodeAt(b+2),U[C]=String.fromCharCode((h&15)<<12|(A&63)<<6|S&63),b+=3);return U.join("")}function a(d,b){var C=(d&65535)+(b&65535),h=(d>>16)+(b>>16)+(C>>16);return h<<16|C&65535}function r(d,b){return d<>>32-b}function u(d,b){for(var C=b?"0123456789ABCDEF":"0123456789abcdef",h="",A,S=0,U=d.length;S>>4&15)+C.charAt(A&15);return h}function o(d){var b,C=d.length,h="";for(b=0;b>>8&255);return h}function i(d){var b,C=d.length,h="";for(b=0;b>>8&255,d.charCodeAt(b)&255);return h}function s(d){var b,C=d.length*32,h="";for(b=0;b>5]>>>24-b%32&255);return h}function c(d){var b,C=d.length*32,h="";for(b=0;b>5]>>>b%32&255);return h}function l(d){var b,C=d.length*8,h=Array(d.length>>2),A=h.length;for(b=0;b>5]|=(d.charCodeAt(b/8)&255)<>2),A=h.length;for(b=0;b>5]|=(d.charCodeAt(b/8)&255)<<24-b%32;return h}function p(d,b){var C=b.length,h=Array(),A,S,U,R,y,T,k,v;for(T=Array(Math.ceil(d.length/2)),R=T.length,A=0;A0;){for(y=Array(),U=0,A=0;A0||S>0)&&(y[y.length]=S);h[h.length]=U,T=y}for(k="",A=h.length-1;A>=0;A--)k+=b.charAt(h[A]);for(v=Math.ceil(d.length*8/(Math.log(b.length)/Math.log(2))),A=k.length;Ad.length*8?h+=b:h+=C.charAt(R>>>6*(3-U)&63);return h}e={VERSION:"1.0.6",Base64:function(){var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b="=",C=!1,h=!0;this.encode=function(A){var S,U,R,y="";for(b=b||"=",A=h?t(A):A,len=A.length,S=0;Slen*8?y+=b:y+=d.charAt(R>>>6*(3-U)&63);return y},this.decode=function(A){var S,U,R,y,T,k,v,E,B,P,w="",_=[];if(!A)return A;S=P=0,A=A.replace(new RegExp("\\"+b,"gi"),"");do T=d.indexOf(A.charAt(S++)),k=d.indexOf(A.charAt(S++)),v=d.indexOf(A.charAt(S++)),E=d.indexOf(A.charAt(S++)),B=T<<18|k<<12|v<<6|E,U=B>>16&255,R=B>>8&255,y=B&255,P+=1,v===64?_[P]=String.fromCharCode(U):E===64?_[P]=String.fromCharCode(U,R):_[P]=String.fromCharCode(U,R,y);while(S>>8^C;return(b^-1)>>>0},MD5:function(d){var b=d&&typeof d.uppercase=="boolean"?d.uppercase:!1,C=d&&typeof d.pad=="string"?d.pad:"=",h=d&&typeof d.utf8=="boolean"?d.utf8:!0;this.hex=function(E){return u(A(E,h),b)},this.b64=function(E){return f(A(E),C)},this.any=function(E,B){return p(A(E,h),B)},this.raw=function(E){return A(E,h)},this.hex_hmac=function(E,B){return u(S(E,B),b)},this.b64_hmac=function(E,B){return f(S(E,B),C)},this.any_hmac=function(E,B,P){return p(S(E,B),P)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(E){return typeof E=="boolean"&&(b=E),this},this.setPad=function(E){return C=E||C,this},this.setUTF8=function(E){return typeof E=="boolean"&&(h=E),this};function A(E){return E=h?t(E):E,c(U(l(E),E.length*8))}function S(E,B){var P,w,_,O,N;for(E=h?t(E):E,B=h?t(B):B,P=l(E),P.length>16&&(P=U(P,E.length*8)),w=Array(16),_=Array(16),N=0;N<16;N+=1)w[N]=P[N]^909522486,_[N]=P[N]^1549556828;return O=U(w.concat(l(B)),512+B.length*8),c(U(_.concat(O),512+128))}function U(E,B){var P,w,_,O,N,M=1732584193,x=-271733879,L=-1732584194,I=271733878;for(E[B>>5]|=128<>>9<<4)+14]=B,P=0;P16&&(v=U(v,T.length*8)),E=Array(16),B=Array(16),P=0;P<16;P+=1)E[P]=v[P]^909522486,B[P]=v[P]^1549556828;return w=U(E.concat(g(k)),512+k.length*8),s(U(B.concat(w),512+160))}function U(T,k){var v,E,B,P,w,_,O,N,M=Array(80),x=1732584193,L=-271733879,I=-1732584194,$=271733878,z=-1009589776;for(T[k>>5]|=128<<24-k%32,T[(k+64>>9<<4)+15]=k,v=0;v16&&(z=M(z,x.length*8));$<16;$+=1)Y[$]=z[$]^909522486,q[$]=z[$]^1549556828;return I=M(Y.concat(g(L)),512+L.length*8),s(M(q.concat(I),512+256))}function R(x,L){return x>>>L|x<<32-L}function y(x,L){return x>>>L}function T(x,L,I){return x&L^~x&I}function k(x,L,I){return x&L^x&I^L&I}function v(x){return R(x,2)^R(x,13)^R(x,22)}function E(x){return R(x,6)^R(x,11)^R(x,25)}function B(x){return R(x,7)^R(x,18)^y(x,3)}function P(x){return R(x,17)^R(x,19)^y(x,10)}function w(x){return R(x,28)^R(x,34)^R(x,39)}function _(x){return R(x,14)^R(x,18)^R(x,41)}function O(x){return R(x,1)^R(x,8)^y(x,7)}function N(x){return R(x,19)^R(x,61)^y(x,6)}A=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function M(x,L){var I=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],$=new Array(64),z,Y,q,ae,Q,G,pe,he,re,K,se,me;for(x[L>>5]|=128<<24-L%32,x[(L+64>>9<<4)+15]=L,re=0;re32&&(x=R(x,_.length*8));M<32;M+=1)L[M]=x[M]^909522486,I[M]=x[M]^1549556828;return N=R(L.concat(g(O)),1024+O.length*8),s(R(I.concat(N),1024+512))}function R(_,O){var N,M,x,L=new Array(80),I=new Array(16),$=[new y(1779033703,-205731576),new y(-1150833019,-2067093701),new y(1013904242,-23791573),new y(-1521486534,1595750129),new y(1359893119,-1377402159),new y(-1694144372,725511199),new y(528734635,-79577749),new y(1541459225,327033209)],z=new y(0,0),Y=new y(0,0),q=new y(0,0),ae=new y(0,0),Q=new y(0,0),G=new y(0,0),pe=new y(0,0),he=new y(0,0),re=new y(0,0),K=new y(0,0),se=new y(0,0),me=new y(0,0),ce=new y(0,0),ye=new y(0,0),ke=new y(0,0),xe=new y(0,0),Z=new y(0,0);for(A===void 0&&(A=[new y(1116352408,-685199838),new y(1899447441,602891725),new y(-1245643825,-330482897),new y(-373957723,-2121671748),new y(961987163,-213338824),new y(1508970993,-1241133031),new y(-1841331548,-1357295717),new y(-1424204075,-630357736),new y(-670586216,-1560083902),new y(310598401,1164996542),new y(607225278,1323610764),new y(1426881987,-704662302),new y(1925078388,-226784913),new y(-2132889090,991336113),new y(-1680079193,633803317),new y(-1046744716,-815192428),new y(-459576895,-1628353838),new y(-272742522,944711139),new y(264347078,-1953704523),new y(604807628,2007800933),new y(770255983,1495990901),new y(1249150122,1856431235),new y(1555081692,-1119749164),new y(1996064986,-2096016459),new y(-1740746414,-295247957),new y(-1473132947,766784016),new y(-1341970488,-1728372417),new y(-1084653625,-1091629340),new y(-958395405,1034457026),new y(-710438585,-1828018395),new y(113926993,-536640913),new y(338241895,168717936),new y(666307205,1188179964),new y(773529912,1546045734),new y(1294757372,1522805485),new y(1396182291,-1651133473),new y(1695183700,-1951439906),new y(1986661051,1014477480),new y(-2117940946,1206759142),new y(-1838011259,344077627),new y(-1564481375,1290863460),new y(-1474664885,-1136513023),new y(-1035236496,-789014639),new y(-949202525,106217008),new y(-778901479,-688958952),new y(-694614492,1432725776),new y(-200395387,1467031594),new y(275423344,851169720),new y(430227734,-1194143544),new y(506948616,1363258195),new y(659060556,-544281703),new y(883997877,-509917016),new y(958139571,-976659869),new y(1322822218,-482243893),new y(1537002063,2003034995),new y(1747873779,-692930397),new y(1955562222,1575990012),new y(2024104815,1125592928),new y(-2067236844,-1578062990),new y(-1933114872,442776044),new y(-1866530822,593698344),new y(-1538233109,-561857047),new y(-1090935817,-1295615723),new y(-965641998,-479046869),new y(-903397682,-366583396),new y(-779700025,566280711),new y(-354779690,-840897762),new y(-176337025,-294727304),new y(116418474,1914138554),new y(174292421,-1563912026),new y(289380356,-1090974290),new y(460393269,320620315),new y(685471733,587496836),new y(852142971,1086792851),new y(1017036298,365543100),new y(1126000580,-1676669620),new y(1288033470,-885112138),new y(1501505948,-60457430),new y(1607167915,987167468),new y(1816402316,1246189591)]),M=0;M<80;M+=1)L[M]=new y(0,0);for(_[O>>5]|=128<<24-(O&31),_[(O+128>>10<<5)+31]=O,x=_.length,M=0;M>>N|O.h<<32-N,_.h=O.h>>>N|O.l<<32-N}function v(_,O,N){_.l=O.h>>>N|O.l<<32-N,_.h=O.l>>>N|O.h<<32-N}function E(_,O,N){_.l=O.l>>>N|O.h<<32-N,_.h=O.h>>>N}function B(_,O,N){var M=(O.l&65535)+(N.l&65535),x=(O.l>>>16)+(N.l>>>16)+(M>>>16),L=(O.h&65535)+(N.h&65535)+(x>>>16),I=(O.h>>>16)+(N.h>>>16)+(L>>>16);_.l=M&65535|x<<16,_.h=L&65535|I<<16}function P(_,O,N,M,x){var L=(O.l&65535)+(N.l&65535)+(M.l&65535)+(x.l&65535),I=(O.l>>>16)+(N.l>>>16)+(M.l>>>16)+(x.l>>>16)+(L>>>16),$=(O.h&65535)+(N.h&65535)+(M.h&65535)+(x.h&65535)+(I>>>16),z=(O.h>>>16)+(N.h>>>16)+(M.h>>>16)+(x.h>>>16)+($>>>16);_.l=L&65535|I<<16,_.h=$&65535|z<<16}function w(_,O,N,M,x,L){var I=(O.l&65535)+(N.l&65535)+(M.l&65535)+(x.l&65535)+(L.l&65535),$=(O.l>>>16)+(N.l>>>16)+(M.l>>>16)+(x.l>>>16)+(L.l>>>16)+(I>>>16),z=(O.h&65535)+(N.h&65535)+(M.h&65535)+(x.h&65535)+(L.h&65535)+($>>>16),Y=(O.h>>>16)+(N.h>>>16)+(M.h>>>16)+(x.h>>>16)+(L.h>>>16)+(z>>>16);_.l=I&65535|$<<16,_.h=z&65535|Y<<16}},RMD160:function(d){var b=d&&typeof d.uppercase=="boolean"?d.uppercase:!1,C=d&&typeof d.pad=="string"?d.pa:"=",h=d&&typeof d.utf8=="boolean"?d.utf8:!0,A=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],S=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],U=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],R=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(w){return u(y(w,h))},this.b64=function(w){return f(y(w,h),C)},this.any=function(w,_){return p(y(w,h),_)},this.raw=function(w){return y(w,h)},this.hex_hmac=function(w,_){return u(T(w,_))},this.b64_hmac=function(w,_){return f(T(w,_),C)},this.any_hmac=function(w,_,O){return p(T(w,_),O)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(w){return typeof w=="boolean"&&(b=w),this},this.setPad=function(w){return typeof w<"u"&&(C=w),this},this.setUTF8=function(w){return typeof w=="boolean"&&(h=w),this};function y(w){return w=h?t(w):w,k(v(l(w),w.length*8))}function T(w,_){w=h?t(w):w,_=h?t(_):_;var O,N,M=l(w),x=Array(16),L=Array(16);for(M.length>16&&(M=v(M,w.length*8)),O=0;O<16;O+=1)x[O]=M[O]^909522486,L[O]=M[O]^1549556828;return N=v(x.concat(l(_)),512+_.length*8),k(v(L.concat(N),512+160))}function k(w){var _,O="",N=w.length*32;for(_=0;_>5]>>>_%32&255);return O}function v(w,_){var O,N,M,x,L=1732584193,I=4023233417,$=2562383102,z=271733878,Y=3285377520,q,ae,Q,G,pe,he,re,K,se,me;for(w[_>>5]|=128<<_%32,w[(_+64>>>9<<4)+14]=_,x=w.length,M=0;Mfunction(){return t||(0,e[pc(e)[0]])((t={exports:{}}).exports,t),t.exports},Lf=(e,t)=>{for(var n in t)Bi(e,n,{get:t[n],enumerable:!0})},_i=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of pc(t))!Sf.call(e,r)&&r!==n&&Bi(e,r,{get:()=>t[r],enumerable:!(a=Af(t,r))||a.enumerable});return e},Mf=(e,t,n)=>(_i(e,t,"default"),n&&_i(n,t,"default")),fc=(e,t,n)=>(n=e!=null?vf(kf(e)):{},_i(t||!e||!e.__esModule?Bi(n,"default",{value:e,enumerable:!0}):n,e)),hc=Df({"../esmd/npm/webextension-polyfill@0.10.0/node_modules/webextension-polyfill/dist/browser-polyfill.js"(e,t){(function(n,a){if(typeof define=="function"&&define.amd)define("webextension-polyfill",["module"],a);else if(typeof e<"u")a(t);else{var r={exports:{}};a(r),n.browser=r.exports}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:e,function(n){"use strict";if(!globalThis.chrome?.runtime?.id)throw new Error("This script should only be loaded in a browser extension.");if(typeof globalThis.browser>"u"||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){let a="The message port closed before a response was received.",r=u=>{let o={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(Object.keys(o).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class i extends WeakMap{constructor(T,k=void 0){super(k),this.createItem=T}get(T){return this.has(T)||this.set(T,this.createItem(T)),super.get(T)}}let s=y=>y&&typeof y=="object"&&typeof y.then=="function",c=(y,T)=>(...k)=>{u.runtime.lastError?y.reject(new Error(u.runtime.lastError.message)):T.singleCallbackArg||k.length<=1&&T.singleCallbackArg!==!1?y.resolve(k[0]):y.resolve(k)},l=y=>y==1?"argument":"arguments",g=(y,T)=>function(v,...E){if(E.lengthT.maxArgs)throw new Error(`Expected at most ${T.maxArgs} ${l(T.maxArgs)} for ${y}(), got ${E.length}`);return new Promise((B,P)=>{if(T.fallbackToNoCallback)try{v[y](...E,c({resolve:B,reject:P},T))}catch{v[y](...E),T.fallbackToNoCallback=!1,T.noCallback=!0,B()}else T.noCallback?(v[y](...E),B()):v[y](...E,c({resolve:B,reject:P},T))})},p=(y,T,k)=>new Proxy(T,{apply(v,E,B){return k.call(E,y,...B)}}),f=Function.call.bind(Object.prototype.hasOwnProperty),d=(y,T={},k={})=>{let v=Object.create(null),E={has(P,w){return w in y||w in v},get(P,w,_){if(w in v)return v[w];if(!(w in y))return;let O=y[w];if(typeof O=="function")if(typeof T[w]=="function")O=p(y,y[w],T[w]);else if(f(k,w)){let N=g(w,k[w]);O=p(y,y[w],N)}else O=O.bind(y);else if(typeof O=="object"&&O!==null&&(f(T,w)||f(k,w)))O=d(O,T[w],k[w]);else if(f(k,"*"))O=d(O,T[w],k["*"]);else return Object.defineProperty(v,w,{configurable:!0,enumerable:!0,get(){return y[w]},set(N){y[w]=N}}),O;return v[w]=O,O},set(P,w,_,O){return w in v?v[w]=_:y[w]=_,!0},defineProperty(P,w,_){return Reflect.defineProperty(v,w,_)},deleteProperty(P,w){return Reflect.deleteProperty(v,w)}},B=Object.create(y);return new Proxy(B,E)},b=y=>({addListener(T,k,...v){T.addListener(y.get(k),...v)},hasListener(T,k){return T.hasListener(y.get(k))},removeListener(T,k){T.removeListener(y.get(k))}}),C=new i(y=>typeof y!="function"?y:function(k){let v=d(k,{},{getContent:{minArgs:0,maxArgs:0}});y(v)}),h=new i(y=>typeof y!="function"?y:function(k,v,E){let B=!1,P,w=new Promise(M=>{P=function(x){B=!0,M(x)}}),_;try{_=y(k,v,P)}catch(M){_=Promise.reject(M)}let O=_!==!0&&s(_);if(_!==!0&&!O&&!B)return!1;let N=M=>{M.then(x=>{E(x)},x=>{let L;x&&(x instanceof Error||typeof x.message=="string")?L=x.message:L="An unexpected error occurred",E({__mozWebExtensionPolyfillReject__:!0,message:L})}).catch(x=>{})};return N(O?_:w),!0}),A=({reject:y,resolve:T},k)=>{u.runtime.lastError?u.runtime.lastError.message===a?T():y(new Error(u.runtime.lastError.message)):k&&k.__mozWebExtensionPolyfillReject__?y(new Error(k.message)):T(k)},S=(y,T,k,...v)=>{if(v.lengthT.maxArgs)throw new Error(`Expected at most ${T.maxArgs} ${l(T.maxArgs)} for ${y}(), got ${v.length}`);return new Promise((E,B)=>{let P=A.bind(null,{resolve:E,reject:B});v.push(P),k.sendMessage(...v)})},U={devtools:{network:{onRequestFinished:b(C)}},runtime:{onMessage:b(h),onMessageExternal:b(h),sendMessage:S.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:S.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},R={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return o.privacy={network:{"*":R},services:{"*":R},websites:{"*":R}},d(u,U,o)};n.exports=r(chrome)}else n.exports=globalThis.browser})}}),bc={};Lf(bc,{default:()=>Eu});var Ff=fc(hc());Mf(bc,fc(hc()));var{default:gc,...Pf}=Ff,Eu=gc!==void 0?gc:Pf;globalThis.immersiveTranslateBrowserAPI=Eu;m();m();m();m();function Ve(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():F}var Ee=Ve();function fe(){return Ee.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function Fn(){return Ee.PROD==="1"}function Pn(){return Ee.PROD_API==="1"}function yc(){return Ee.HAS_CSP_ERROR=="1"}function Rt(){if(Ee.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function Tu(){return typeof Deno<"u"}var c5=Ve().PROD==="1",Oa=Ve().PROD!=="1";function Cu(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}m();m();m();m();m();m();m();function Ia(){let e,t="pending",n=new Promise((a,r)=>{e={async resolve(u){await u,t="fulfilled",a(u)},reject(u){t="rejected",r(u)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}m();var Ri=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function wu(e,t){let n=Ia(),a=setTimeout(()=>n.reject(new Ri),t);return Promise.race([e,n]).finally(()=>clearTimeout(a))}m();m();function Cr(e,t={}){let{signal:n,persistent:a}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((r,u)=>{let o=()=>{clearTimeout(s),u(new DOMException("Delay was aborted.","AbortError"))},s=setTimeout(()=>{n?.removeEventListener("abort",o),r()},e);if(n?.addEventListener("abort",o,{once:!0}),a===!1)try{Deno.unrefTimer(s)}catch(c){if(!(c instanceof ReferenceError))throw c}})}m();var xc=class{#e=0;#t=[];#n=[];#a=Ia();add(t){++this.#e,this.#r(t[Symbol.asyncIterator]())}async#r(t){try{let{value:n,done:a}=await t.next();a?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#a.resolve()}async*iterate(){for(;this.#e>0;){await this.#a;for(let t=0;tuh,bgBlue:()=>lh,bgBrightBlack:()=>gh,bgBrightBlue:()=>bh,bgBrightCyan:()=>xh,bgBrightGreen:()=>fh,bgBrightMagenta:()=>yh,bgBrightRed:()=>ph,bgBrightWhite:()=>Eh,bgBrightYellow:()=>hh,bgCyan:()=>dh,bgGreen:()=>ih,bgMagenta:()=>ch,bgRed:()=>oh,bgRgb24:()=>vh,bgRgb8:()=>Ch,bgWhite:()=>mh,bgYellow:()=>sh,black:()=>qf,blue:()=>Gf,bold:()=>Of,brightBlack:()=>Cc,brightBlue:()=>th,brightCyan:()=>ah,brightGreen:()=>Xf,brightMagenta:()=>nh,brightRed:()=>Zf,brightWhite:()=>rh,brightYellow:()=>eh,cyan:()=>Yf,dim:()=>If,getColorEnabled:()=>Bf,gray:()=>Qf,green:()=>$f,hidden:()=>zf,inverse:()=>Uf,italic:()=>Nf,magenta:()=>Vf,red:()=>Wf,reset:()=>Rf,rgb24:()=>wh,rgb8:()=>Th,setColorEnabled:()=>_f,strikethrough:()=>Hf,stripColor:()=>kh,underline:()=>jf,white:()=>Jf,yellow:()=>Kf});m();var{Deno:Ec}=globalThis,Tc=typeof Ec?.noColor=="boolean"?Ec.noColor:!0,Oi=!Tc;function _f(e){Tc||(Oi=e)}function Bf(){return Oi}function Te(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function Ce(e,t){return Oi?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function Rf(e){return Ce(e,Te([0],0))}function Of(e){return Ce(e,Te([1],22))}function If(e){return Ce(e,Te([2],22))}function Nf(e){return Ce(e,Te([3],23))}function jf(e){return Ce(e,Te([4],24))}function Uf(e){return Ce(e,Te([7],27))}function zf(e){return Ce(e,Te([8],28))}function Hf(e){return Ce(e,Te([9],29))}function qf(e){return Ce(e,Te([30],39))}function Wf(e){return Ce(e,Te([31],39))}function $f(e){return Ce(e,Te([32],39))}function Kf(e){return Ce(e,Te([33],39))}function Gf(e){return Ce(e,Te([34],39))}function Vf(e){return Ce(e,Te([35],39))}function Yf(e){return Ce(e,Te([36],39))}function Jf(e){return Ce(e,Te([37],39))}function Qf(e){return Cc(e)}function Cc(e){return Ce(e,Te([90],39))}function Zf(e){return Ce(e,Te([91],39))}function Xf(e){return Ce(e,Te([92],39))}function eh(e){return Ce(e,Te([93],39))}function th(e){return Ce(e,Te([94],39))}function nh(e){return Ce(e,Te([95],39))}function ah(e){return Ce(e,Te([96],39))}function rh(e){return Ce(e,Te([97],39))}function uh(e){return Ce(e,Te([40],49))}function oh(e){return Ce(e,Te([41],49))}function ih(e){return Ce(e,Te([42],49))}function sh(e){return Ce(e,Te([43],49))}function lh(e){return Ce(e,Te([44],49))}function ch(e){return Ce(e,Te([45],49))}function dh(e){return Ce(e,Te([46],49))}function mh(e){return Ce(e,Te([47],49))}function gh(e){return Ce(e,Te([100],49))}function ph(e){return Ce(e,Te([101],49))}function fh(e){return Ce(e,Te([102],49))}function hh(e){return Ce(e,Te([103],49))}function bh(e){return Ce(e,Te([104],49))}function yh(e){return Ce(e,Te([105],49))}function xh(e){return Ce(e,Te([106],49))}function Eh(e){return Ce(e,Te([107],49))}function Hn(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function Th(e,t){return Ce(e,Te([38,5,Hn(t)],39))}function Ch(e,t){return Ce(e,Te([48,5,Hn(t)],49))}function wh(e,t){return typeof t=="number"?Ce(e,Te([38,2,t>>16&255,t>>8&255,t&255],39)):Ce(e,Te([38,2,Hn(t.r),Hn(t.g),Hn(t.b)],39))}function vh(e,t){return typeof t=="number"?Ce(e,Te([48,2,t>>16&255,t>>8&255,t&255],49)):Ce(e,Te([48,2,Hn(t.r),Hn(t.g),Hn(t.b)],49))}var Ah=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function kh(e){return e.replace(Ah,"")}m();m();var Ii=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},Sh={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function Ni(e,t){let n={...Sh,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let a=n.minTimeout,r;for(let u=0;usetTimeout(i,a)),a*=n.multiplier,a=Math.max(a,n.minTimeout),n.maxTimeout>=0&&(a=Math.min(a,n.maxTimeout)),r=o}throw new Ii(r,n.maxAttempts)}m();var _n=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function ji(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",a,r=t.length;for(a=2;a>2],n+=_n[(t[a-2]&3)<<4|t[a-1]>>4],n+=_n[(t[a-1]&15)<<2|t[a]>>6],n+=_n[t[a]&63];return a===r+1&&(n+=_n[t[a-2]>>2],n+=_n[(t[a-2]&3)<<4],n+="=="),a===r&&(n+=_n[t[a-2]>>2],n+=_n[(t[a-2]&3)<<4|t[a-1]>>4],n+=_n[(t[a-1]&15)<<2],n+="="),n}m();m();var X5=Number.isNaN||function(e){return typeof e=="number"&&e!==e};m();m();var vu=globalThis||(typeof window<"u"?window:self),Lh=Object.create,zi=Object.defineProperty,Mh=Object.getOwnPropertyDescriptor,Fh=Object.getOwnPropertyNames,Ph=Object.getPrototypeOf,_h=Object.prototype.hasOwnProperty,Bh=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Rh=(e,t)=>{for(var n in t)zi(e,n,{get:t[n],enumerable:!0})},Ui=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Fh(t))!_h.call(e,r)&&r!==n&&zi(e,r,{get:()=>t[r],enumerable:!(a=Mh(t,r))||a.enumerable});return e},Oh=(e,t,n)=>(Ui(e,t,"default"),n&&Ui(n,t,"default")),vc=(e,t,n)=>(n=e!=null?Lh(Ph(e)):{},Ui(t||!e||!e.__esModule?zi(n,"default",{value:e,enumerable:!0}):n,e)),Ac=Bh((e,t)=>{var n="Expected a function",a=NaN,r="[object Symbol]",u=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,l=typeof vu=="object"&&vu&&vu.Object===Object&&vu,g=typeof self=="object"&&self&&self.Object===Object&&self,p=l||g||Function("return this")(),f=Object.prototype,d=f.toString,b=Math.max,C=Math.min,h=function(){return p.Date.now()};function A(k,v,E){var B,P,w,_,O,N,M=0,x=!1,L=!1,I=!0;if(typeof k!="function")throw new TypeError(n);v=T(v)||0,U(E)&&(x=!!E.leading,L="maxWait"in E,w=L?b(T(E.maxWait)||0,v):w,I="trailing"in E?!!E.trailing:I);function $(re){var K=B,se=P;return B=P=void 0,M=re,_=k.apply(se,K),_}function z(re){return M=re,O=setTimeout(ae,v),x?$(re):_}function Y(re){var K=re-N,se=re-M,me=v-K;return L?C(me,w-se):me}function q(re){var K=re-N,se=re-M;return N===void 0||K>=v||K<0||L&&se>=w}function ae(){var re=h();if(q(re))return Q(re);O=setTimeout(ae,Y(re))}function Q(re){return O=void 0,I&&B?$(re):(B=P=void 0,_)}function G(){O!==void 0&&clearTimeout(O),M=0,B=N=P=O=void 0}function pe(){return O===void 0?_:Q(h())}function he(){var re=h(),K=q(re);if(B=arguments,P=this,N=re,K){if(O===void 0)return z(N);if(L)return O=setTimeout(ae,v),$(N)}return O===void 0&&(O=setTimeout(ae,v)),_}return he.cancel=G,he.flush=pe,he}function S(k,v,E){var B=!0,P=!0;if(typeof k!="function")throw new TypeError(n);return U(E)&&(B="leading"in E?!!E.leading:B,P="trailing"in E?!!E.trailing:P),A(k,v,{leading:B,maxWait:v,trailing:P})}function U(k){var v=typeof k;return!!k&&(v=="object"||v=="function")}function R(k){return!!k&&typeof k=="object"}function y(k){return typeof k=="symbol"||R(k)&&d.call(k)==r}function T(k){if(typeof k=="number")return k;if(y(k))return a;if(U(k)){var v=typeof k.valueOf=="function"?k.valueOf():k;k=U(v)?v+"":v}if(typeof k!="string")return k===0?k:+k;k=k.replace(u,"");var E=i.test(k);return E||s.test(k)?c(k.slice(2),E?2:8):o.test(k)?a:+k}t.exports=S}),kc={};Rh(kc,{default:()=>bt});var Ih=vc(Ac());Oh(kc,vc(Ac()));var{default:wc,...Nh}=Ih,bt=wc!==void 0?wc:Nh;m();m();var jh=Object.create,qi=Object.defineProperty,Uh=Object.getOwnPropertyDescriptor,zh=Object.getOwnPropertyNames,Hh=Object.getPrototypeOf,qh=Object.prototype.hasOwnProperty,Wh=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),$h=(e,t)=>{for(var n in t)qi(e,n,{get:t[n],enumerable:!0})},Hi=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of zh(t))!qh.call(e,r)&&r!==n&&qi(e,r,{get:()=>t[r],enumerable:!(a=Uh(t,r))||a.enumerable});return e},Kh=(e,t,n)=>(Hi(e,t,"default"),n&&Hi(n,t,"default")),Dc=(e,t,n)=>(n=e!=null?jh(Hh(e)):{},Hi(t||!e||!e.__esModule?qi(n,"default",{value:e,enumerable:!0}):n,e)),Lc=Wh((e,t)=>{(function(n,a){typeof e=="object"&&typeof t=="object"?t.exports=a():typeof define=="function"&&define.amd?define([],a):typeof e=="object"?e.notie=a():n.notie=a()})(e,function(){return function(n){function a(u){if(r[u])return r[u].exports;var o=r[u]={i:u,l:!1,exports:{}};return n[u].call(o.exports,o,o.exports,a),o.l=!0,o.exports}var r={};return a.m=n,a.c=r,a.i=function(u){return u},a.d=function(u,o,i){a.o(u,o)||Object.defineProperty(u,o,{configurable:!1,enumerable:!0,get:i})},a.n=function(u){var o=u&&u.__esModule?function(){return u.default}:function(){return u};return a.d(o,"a",o),o},a.o=function(u,o){return Object.prototype.hasOwnProperty.call(u,o)},a.p="",a(a.s=1)}([function(n,a){n.exports=function(r){return r.webpackPolyfill||(r.deprecate=function(){},r.paths=[],r.children||(r.children=[]),Object.defineProperty(r,"loaded",{enumerable:!0,get:function(){return r.l}}),Object.defineProperty(r,"id",{enumerable:!0,get:function(){return r.i}}),r.webpackPolyfill=1),r}},function(n,a,r){"use strict";(function(u){var o,i,s,c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l};(function(l,g){c(a)==="object"&&c(u)==="object"?u.exports=g():(i=[],o=g,s=typeof o=="function"?o.apply(a,i):o,s!==void 0&&(u.exports=s))})(void 0,function(){return function(l){function g(f){if(p[f])return p[f].exports;var d=p[f]={i:f,l:!1,exports:{}};return l[f].call(d.exports,d,d.exports,g),d.l=!0,d.exports}var p={};return g.m=l,g.c=p,g.i=function(f){return f},g.d=function(f,d,b){g.o(f,d)||Object.defineProperty(f,d,{configurable:!1,enumerable:!0,get:b})},g.n=function(f){var d=f&&f.__esModule?function(){return f.default}:function(){return f};return g.d(d,"a",d),d},g.o=function(f,d){return Object.prototype.hasOwnProperty.call(f,d)},g.p="",g(g.s=0)}([function(l,g,p){function f(z,Y){var q={};for(var ae in z)Y.indexOf(ae)>=0||Object.prototype.hasOwnProperty.call(z,ae)&&(q[ae]=z[ae]);return q}Object.defineProperty(g,"__esModule",{value:!0});var d=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(z){return typeof z>"u"?"undefined":c(z)}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z>"u"?"undefined":c(z)},b=Object.assign||function(z){for(var Y=1;Y'+ae+"",se.onclick=function(){return P(me,K)},se.listener=function(ce){(v(ce)||E(ce))&&O()},B(se,K),G&&G<1&&(G=1),!he&&G&&U(G).then(function(){return P(me,K)})},M=g.force=function(z,Y){var q=z.type,ae=q===void 0?5:q,Q=z.text,G=z.buttonText,pe=G===void 0?"OK":G,he=z.callback,re=z.position,K=re===void 0?h.positions.force||K.top:re;R(),O();var se=document.createElement("div"),me=y();se.id=me;var ce=document.createElement("div");ce.classList.add(h.classes.textbox),ce.classList.add(h.classes.backgroundInfo),ce.innerHTML='
'+Q+"
";var ye=document.createElement("div");ye.classList.add(h.classes.button),ye.classList.add(T[ae]),ye.innerHTML=pe,ye.onclick=function(){P(me,K),_(),he?he():Y&&Y()},se.appendChild(ce),se.appendChild(ye),se.listener=function(ke){v(ke)&&ye.click()},B(se,K),w()},x=g.confirm=function(z,Y,q){var ae=z.text,Q=z.submitText,G=Q===void 0?"Yes":Q,pe=z.cancelText,he=pe===void 0?"Cancel":pe,re=z.submitCallback,K=z.cancelCallback,se=z.position,me=se===void 0?h.positions.confirm||me.top:se;R(),O();var ce=document.createElement("div"),ye=y();ce.id=ye;var ke=document.createElement("div");ke.classList.add(h.classes.textbox),ke.classList.add(h.classes.backgroundInfo),ke.innerHTML='
'+ae+"
";var xe=document.createElement("div");xe.classList.add(h.classes.button),xe.classList.add(h.classes.elementHalf),xe.classList.add(h.classes.backgroundSuccess),xe.innerHTML=G,xe.onclick=function(){P(ye,me),_(),re?re():Y&&Y()};var Z=document.createElement("div");Z.classList.add(h.classes.button),Z.classList.add(h.classes.elementHalf),Z.classList.add(h.classes.backgroundError),Z.innerHTML=he,Z.onclick=function(){P(ye,me),_(),K?K():q&&q()},ce.appendChild(ke),ce.appendChild(xe),ce.appendChild(Z),ce.listener=function(Ae){v(Ae)?xe.click():E(Ae)&&Z.click()},B(ce,me),w(ce,me)},L=function(z,Y,q){var ae=z.text,Q=z.submitText,G=Q===void 0?"Submit":Q,pe=z.cancelText,he=pe===void 0?"Cancel":pe,re=z.submitCallback,K=z.cancelCallback,se=z.position,me=se===void 0?h.positions.input||me.top:se,ce=f(z,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);R(),O();var ye=document.createElement("div"),ke=y();ye.id=ke;var xe=document.createElement("div");xe.classList.add(h.classes.textbox),xe.classList.add(h.classes.backgroundInfo),xe.innerHTML='
'+ae+"
";var Z=document.createElement("input");Z.classList.add(h.classes.inputField),Z.setAttribute("autocapitalize",ce.autocapitalize||"none"),Z.setAttribute("autocomplete",ce.autocomplete||"off"),Z.setAttribute("autocorrect",ce.autocorrect||"off"),Z.setAttribute("autofocus",ce.autofocus||"true"),Z.setAttribute("inputmode",ce.inputmode||"verbatim"),Z.setAttribute("max",ce.max||""),Z.setAttribute("maxlength",ce.maxlength||""),Z.setAttribute("min",ce.min||""),Z.setAttribute("minlength",ce.minlength||""),Z.setAttribute("placeholder",ce.placeholder||""),Z.setAttribute("spellcheck",ce.spellcheck||"default"),Z.setAttribute("step",ce.step||"any"),Z.setAttribute("type",ce.type||"text"),Z.value=ce.value||"",ce.allowed&&(Z.oninput=function(){var Re=void 0;if(Array.isArray(ce.allowed)){for(var Ne="",st=ce.allowed,Pt=0;Pt'+q+"",K.appendChild(me),pe.forEach(function(ye,ke){var xe=ye.type,Z=xe===void 0?1:xe,Ae=ye.text,Le=ye.handler,Re=document.createElement("div");Re.classList.add(T[Z]),Re.classList.add(h.classes.button),Re.classList.add(h.classes.selectChoice);var Ne=pe[ke+1];Ne&&!Ne.type&&(Ne.type=1),Ne&&Ne.type===Z&&Re.classList.add(h.classes.selectChoiceRepeated),Re.innerHTML=Ae,Re.onclick=function(){P(se,re),_(),Le()},K.appendChild(Re)});var ce=document.createElement("div");ce.classList.add(h.classes.backgroundNeutral),ce.classList.add(h.classes.button),ce.innerHTML=Q,ce.onclick=function(){P(se,re),_(),G?G():Y&&Y()},K.appendChild(ce),K.listener=function(ye){E(ye)&&ce.click()},B(K,re),w(K,re)},$=g.date=function(z,Y,q){var ae=z.value,Q=ae===void 0?new Date:ae,G=z.submitText,pe=G===void 0?"OK":G,he=z.cancelText,re=he===void 0?"Cancel":he,K=z.submitCallback,se=z.cancelCallback,me=z.position,ce=me===void 0?h.positions.date||ce.top:me;R(),O();var ye="▾",ke=document.createElement("div"),xe=document.createElement("div"),Z=document.createElement("div"),Ae=function(Ue){ke.innerHTML=h.dateMonths[Ue.getMonth()],xe.innerHTML=Ue.getDate(),Z.innerHTML=Ue.getFullYear()},Le=function(Ue){var H=new Date(Q.getFullYear(),Q.getMonth()+1,0).getDate(),de=Ue.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(de)>H&&(de=H.toString()),Ue.target.textContent=de,Number(de)<1&&(de="1"),Q.setDate(Number(de))},Re=function(Ue){var H=Ue.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);Ue.target.textContent=H,Q.setFullYear(Number(H))},Ne=function(Ue){Ae(Q)},st=function(Ue){var H=new Date(Q.getFullYear(),Q.getMonth()+Ue+1,0).getDate();Q.getDate()>H&&Q.setDate(H),Q.setMonth(Q.getMonth()+Ue),Ae(Q)},Pt=function(Ue){Q.setDate(Q.getDate()+Ue),Ae(Q)},pa=function(Ue){var H=Q.getFullYear()+Ue;H<0?Q.setFullYear(0):Q.setFullYear(Q.getFullYear()+Ue),Ae(Q)},Ht=document.createElement("div"),Dn=y();Ht.id=Dn;var Un=document.createElement("div");Un.classList.add(h.classes.backgroundInfo);var Oe=document.createElement("div");Oe.classList.add(h.classes.dateSelectorInner);var qt=document.createElement("div");qt.classList.add(h.classes.button),qt.classList.add(h.classes.elementThird),qt.classList.add(h.classes.dateSelectorUp),qt.innerHTML=ye;var rt=document.createElement("div");rt.classList.add(h.classes.button),rt.classList.add(h.classes.elementThird),rt.classList.add(h.classes.dateSelectorUp),rt.innerHTML=ye;var He=document.createElement("div");He.classList.add(h.classes.button),He.classList.add(h.classes.elementThird),He.classList.add(h.classes.dateSelectorUp),He.innerHTML=ye,ke.classList.add(h.classes.element),ke.classList.add(h.classes.elementThird),ke.innerHTML=h.dateMonths[Q.getMonth()],xe.classList.add(h.classes.element),xe.classList.add(h.classes.elementThird),xe.setAttribute("contentEditable",!0),xe.addEventListener("input",Le),xe.addEventListener("blur",Ne),xe.innerHTML=Q.getDate(),Z.classList.add(h.classes.element),Z.classList.add(h.classes.elementThird),Z.setAttribute("contentEditable",!0),Z.addEventListener("input",Re),Z.addEventListener("blur",Ne),Z.innerHTML=Q.getFullYear();var Yt=document.createElement("div");Yt.classList.add(h.classes.button),Yt.classList.add(h.classes.elementThird),Yt.innerHTML=ye;var _t=document.createElement("div");_t.classList.add(h.classes.button),_t.classList.add(h.classes.elementThird),_t.innerHTML=ye;var zn=document.createElement("div");zn.classList.add(h.classes.button),zn.classList.add(h.classes.elementThird),zn.innerHTML=ye,qt.onclick=function(){return st(1)},rt.onclick=function(){return Pt(1)},He.onclick=function(){return pa(1)},Yt.onclick=function(){return st(-1)},_t.onclick=function(){return Pt(-1)},zn.onclick=function(){return pa(-1)};var mt=document.createElement("div");mt.classList.add(h.classes.button),mt.classList.add(h.classes.elementHalf),mt.classList.add(h.classes.backgroundSuccess),mt.innerHTML=pe,mt.onclick=function(){P(Dn,ce),_(),K?K(Q):Y&&Y(Q)};var mn=document.createElement("div");mn.classList.add(h.classes.button),mn.classList.add(h.classes.elementHalf),mn.classList.add(h.classes.backgroundError),mn.innerHTML=re,mn.onclick=function(){P(Dn,ce),_(),se?se(Q):q&&q(Q)},Oe.appendChild(qt),Oe.appendChild(rt),Oe.appendChild(He),Oe.appendChild(ke),Oe.appendChild(xe),Oe.appendChild(Z),Oe.appendChild(Yt),Oe.appendChild(_t),Oe.appendChild(zn),Un.appendChild(Oe),Ht.appendChild(Un),Ht.appendChild(mt),Ht.appendChild(mn),Ht.listener=function(Ue){v(Ue)?mt.click():E(Ue)&&mn.click()},B(Ht,ce),w(Ht,ce)};g.default={alert:N,force:M,confirm:x,input:L,select:I,date:$,setOptions:A,hideAlerts:O}}])})}).call(a,r(0)(n))}])})}),Mc={};$h(Mc,{default:()=>Au});var Gh=Dc(Lc());Kh(Mc,Dc(Lc()));var{default:Sc,...Vh}=Gh,Au=Sc!==void 0?Sc:Vh;m();m();var Wi=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function $i(e,t,n,a){e.addEventListener?e.addEventListener(t,n,a):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function Rc(e,t){for(var n=t.slice(0,t.length-1),a=0;a=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function Yh(e,t){for(var n=e.length>=t.length?e:t,a=e.length>=t.length?t:e,r=!0,u=0;u=0&&ze.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&ze.splice(0,ze.length),(t===93||t===224)&&(t=91),t in gt){gt[t]=!1;for(var a in vn)vn[a]===t&&(Ye[a]=!1)}}function r2(e){if(typeof e>"u")Object.keys(nt).forEach(function(o){return delete nt[o]});else if(Array.isArray(e))e.forEach(function(o){o.key&&Ki(o)});else if(typeof e=="object")e.key&&Ki(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a1?Rc(vn,s):[];nt[g]=nt[g].filter(function(f){var d=a?f.method===a:!0;return!(d&&f.scope===n&&Yh(f.mods,p))})}})};function Pc(e,t,n,a){if(t.element===a){var r;if(t.scope===n||t.scope==="all"){r=t.mods.length>0;for(var u in gt)Object.prototype.hasOwnProperty.call(gt,u)&&(!gt[u]&&t.mods.indexOf(+u)>-1||gt[u]&&t.mods.indexOf(+u)===-1)&&(r=!1);(t.mods.length===0&&!gt[16]&&!gt[18]&&!gt[17]&&!gt[91]||r||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function _c(e,t){var n=nt["*"],a=e.keyCode||e.which||e.charCode;if(Ye.filter.call(this,e)){if((a===93||a===224)&&(a=91),ze.indexOf(a)===-1&&a!==229&&ze.push(a),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(d){var b=Vi[d];e[d]&&ze.indexOf(b)===-1?ze.push(b):!e[d]&&ze.indexOf(b)>-1?ze.splice(ze.indexOf(b),1):d==="metaKey"&&e[d]&&ze.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(ze=ze.slice(ze.indexOf(b))))}),a in gt){gt[a]=!0;for(var r in vn)vn[r]===a&&(Ye[r]=!0);if(!n)return}for(var u in gt)Object.prototype.hasOwnProperty.call(gt,u)&&(gt[u]=e[Vi[u]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(ze.indexOf(17)===-1&&ze.push(17),ze.indexOf(18)===-1&&ze.push(18),gt[17]=!0,gt[18]=!0);var o=Ar();if(n)for(var i=0;i-1}function Ye(e,t,n){ze=[];var a=Oc(e),r=[],u="all",o=document,i=0,s=!1,c=!0,l="+",g=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(u=t.scope),t.element&&(o=t.element),t.keyup&&(s=t.keyup),t.keydown!==void 0&&(c=t.keydown),t.capture!==void 0&&(g=t.capture),typeof t.splitKey=="string"&&(l=t.splitKey)),typeof t=="string"&&(u=t);i1&&(r=Rc(vn,e)),e=e[e.length-1],e=e==="*"?"*":Su(e),e in nt||(nt[e]=[]),nt[e].push({keyup:s,keydown:c,scope:u,mods:r,shortcut:a[i],method:n,key:a[i],splitKey:l,element:o});typeof o<"u"&&!u2(o)&&window&&(Nc.push(o),$i(o,"keydown",function(p){_c(p,o)},g),Fc||(Fc=!0,$i(window,"focus",function(){ze=[]},g)),$i(o,"keyup",function(p){_c(p,o),a2(p)},g))}function o2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(nt).forEach(function(n){var a=nt[n].filter(function(r){return r.scope===t&&r.shortcut===e});a.forEach(function(r){r&&r.method&&r.method()})})}var Gi={getPressedKeyString:Xh,setScope:jc,getScope:Ar,deleteScope:n2,getPressedKeyCodes:Zh,isPressed:t2,filter:e2,trigger:o2,unbind:r2,keyMap:vr,modifier:vn,modifierMap:Vi};for(ku in Gi)Object.prototype.hasOwnProperty.call(Gi,ku)&&(Ye[ku]=Gi[ku]);var ku;typeof document<"u"&&(Bc=window.hotkeys,Ye.noConflict=function(e){return e&&window.hotkeys===Ye&&(window.hotkeys=Bc),Ye},window.hotkeys=Ye);var Bc;m();m();var i2={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},zc={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Xe={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},At={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},qn={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},W=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let a=W.getVersionPrecision(e),r=W.getVersionPrecision(t),u=Math.max(a,r),o=0,i=W.map([e,t],s=>{let c=u-W.getVersionPrecision(s),l=s+new Array(c+1).join(".0");return W.map(l.split("."),g=>new Array(20-g.length).join("0")+g).reverse()});for(n&&(o=u-Math.min(a,r)),u-=1;u>=o;){if(i[0][u]>i[1][u])return 1;if(i[0][u]===i[1][u]){if(u===o)return 0;u-=1}else if(i[0][u]{n[o]=u[o]})}return e}static getBrowserAlias(e){return i2[e]}static getBrowserTypeByAlias(e){return zc[e]||""}},Ie=/version\/(\d+(\.?_?\d+)+)/i,s2=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=W.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=W.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=W.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=W.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=W.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=W.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=W.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=W.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=W.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=W.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=W.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=W.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=W.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=W.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=W.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=W.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=W.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=W.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=W.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=W.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=W.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=W.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=W.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=W.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=W.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=W.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=W.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,a=e.search("\\(")!==-1?n:t;return{name:W.getFirstMatch(a,e),version:W.getSecondMatch(a,e)}}}],l2=s2,c2=[{test:[/Roku\/DVP/],describe(e){let t=W.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:At.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=W.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:At.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=W.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=W.getWindowsVersionName(t);return{name:At.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:At.iOS},n=W.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=W.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=W.getMacOSVersionName(t),a={name:At.MacOS,version:t};return n&&(a.versionName=n),a}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=W.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:At.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=W.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=W.getAndroidVersionName(t),a={name:At.Android,version:t};return n&&(a.versionName=n),a}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=W.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:At.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=W.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||W.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||W.getFirstMatch(/\bbb(\d+)/i,e);return{name:At.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=W.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:At.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=W.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:At.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:At.Linux}}},{test:[/CrOS/],describe(){return{name:At.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=W.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:At.PlayStation4,version:t}}}],d2=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=W.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Xe.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Xe.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Xe.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Xe.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Xe.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Xe.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Xe.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=W.getFirstMatch(/(ipod|iphone)/i,e);return{type:Xe.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Xe.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Xe.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Xe.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Xe.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Xe.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Xe.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Xe.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Xe.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Xe.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Xe.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Xe.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Xe.tv}}}],m2=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:qn.Blink};let t=W.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:qn.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:qn.Trident},n=W.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:qn.Presto},n=W.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:qn.Gecko},n=W.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:qn.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:qn.WebKit},n=W.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],g2=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=W.find(l2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=W.find(c2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=W.find(d2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=W.find(m2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return W.assign({},this.parsedResult)}satisfies(e){let t={},n=0,a={},r=0;if(Object.keys(e).forEach(u=>{let o=e[u];typeof o=="string"?(a[u]=o,r+=1):typeof o=="object"&&(t[u]=o,n+=1)}),n>0){let u=Object.keys(t),o=W.find(u,s=>this.isOS(s));if(o){let s=this.satisfies(t[o]);if(s!==void 0)return s}let i=W.find(u,s=>this.isPlatform(s));if(i){let s=this.satisfies(t[i]);if(s!==void 0)return s}}if(r>0){let u=Object.keys(a),o=W.find(u,i=>this.isBrowser(i,!0));if(o!==void 0)return this.compareVersion(a[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),a=e.toLowerCase(),r=W.getBrowserTypeByAlias(a);return t&&r&&(a=r.toLowerCase()),a===n}compareVersion(e){let t=[0],n=e,a=!1,r=this.getBrowserVersion();if(typeof r=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(a=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(a=!0,n=e.substr(1)),t.indexOf(W.compareVersions(r,n,a))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},Uc=g2,p2=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new Uc(e,t)}static parse(e){return new Uc(e).getResult()}static get BROWSER_MAP(){return zc}static get ENGINE_MAP(){return qn}static get OS_MAP(){return At}static get PLATFORMS_MAP(){return Xe}},Na=p2;m();m();var{entries:Yc,setPrototypeOf:Hc,isFrozen:f2,getPrototypeOf:h2,getOwnPropertyDescriptor:b2}=Object,{freeze:kt,seal:pn,create:y2}=Object,{apply:es,construct:ts}=typeof Reflect<"u"&&Reflect;es||(es=function(e,t,n){return e.apply(t,n)});kt||(kt=function(e){return e});pn||(pn=function(e){return e});ts||(ts=function(e,t){return new e(...t)});var x2=Zt(Array.prototype.forEach),qc=Zt(Array.prototype.pop),kr=Zt(Array.prototype.push),Mu=Zt(String.prototype.toLowerCase),Yi=Zt(String.prototype.toString),E2=Zt(String.prototype.match),gn=Zt(String.prototype.replace),T2=Zt(String.prototype.indexOf),C2=Zt(String.prototype.trim),Wt=Zt(RegExp.prototype.test),Sr=w2(TypeError);function Zt(e){return function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r/gm),D2=pn(/\${[\w\W]*}/gm),L2=pn(/^data-[\-\w.\u00B7-\uFFFF]/),M2=pn(/^aria-[\-\w]+$/),Jc=pn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),F2=pn(/^(?:\w+script|data):/i),P2=pn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Qc=pn(/^html$/i),Vc=Object.freeze({__proto__:null,MUSTACHE_EXPR:k2,ERB_EXPR:S2,TMPLIT_EXPR:D2,DATA_ATTR:L2,ARIA_ATTR:M2,IS_ALLOWED_URI:Jc,IS_SCRIPT_OR_DATA:F2,ATTR_WHITESPACE:P2,DOCTYPE_NAME:Qc}),_2=()=>typeof window>"u"?null:window,B2=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,a="data-tt-policy-suffix";t&&t.hasAttribute(a)&&(n=t.getAttribute(a));let r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML(u){return u},createScriptURL(u){return u}})}catch{return null}};function Zc(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_2(),t=D=>Zc(D);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,a=n.currentScript,{document:r}=e,{DocumentFragment:u,HTMLTemplateElement:o,Node:i,Element:s,NodeFilter:c,NamedNodeMap:l=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:g,DOMParser:p,trustedTypes:f}=e,d=s.prototype,b=Du(d,"cloneNode"),C=Du(d,"nextSibling"),h=Du(d,"childNodes"),A=Du(d,"parentNode");if(typeof o=="function"){let D=r.createElement("template");D.content&&D.content.ownerDocument&&(r=D.content.ownerDocument)}let S,U="",{implementation:R,createNodeIterator:y,createDocumentFragment:T,getElementsByTagName:k}=r,{importNode:v}=n,E={};t.isSupported=typeof Yc=="function"&&typeof A=="function"&&R&&R.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:B,ERB_EXPR:P,TMPLIT_EXPR:w,DATA_ATTR:_,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:M}=Vc,{IS_ALLOWED_URI:x}=Vc,L=null,I=Se({},[...Wc,...Ji,...Qi,...Zi,...$c]),$=null,z=Se({},[...Kc,...Xi,...Gc,...Lu]),Y=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),q=null,ae=null,Q=!0,G=!0,pe=!1,he=!0,re=!1,K=!1,se=!1,me=!1,ce=!1,ye=!1,ke=!1,xe=!0,Z=!1,Ae="user-content-",Le=!0,Re=!1,Ne={},st=null,Pt=Se({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),pa=null,Ht=Se({},["audio","video","img","source","image","track"]),Dn=null,Un=Se({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Oe="http://www.w3.org/1998/Math/MathML",qt="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml",He=rt,Yt=!1,_t=null,zn=Se({},[Oe,qt,rt],Yi),mt,mn=["application/xhtml+xml","text/html"],Ue="text/html",H,de=null,$e=r.createElement("form"),Me=function(D){return D instanceof RegExp||D instanceof Function},Pe=function(D){if(!(de&&de===D)){if((!D||typeof D!="object")&&(D={}),D=ja(D),mt=mn.indexOf(D.PARSER_MEDIA_TYPE)===-1?mt=Ue:mt=D.PARSER_MEDIA_TYPE,H=mt==="application/xhtml+xml"?Yi:Mu,L="ALLOWED_TAGS"in D?Se({},D.ALLOWED_TAGS,H):I,$="ALLOWED_ATTR"in D?Se({},D.ALLOWED_ATTR,H):z,_t="ALLOWED_NAMESPACES"in D?Se({},D.ALLOWED_NAMESPACES,Yi):zn,Dn="ADD_URI_SAFE_ATTR"in D?Se(ja(Un),D.ADD_URI_SAFE_ATTR,H):Un,pa="ADD_DATA_URI_TAGS"in D?Se(ja(Ht),D.ADD_DATA_URI_TAGS,H):Ht,st="FORBID_CONTENTS"in D?Se({},D.FORBID_CONTENTS,H):Pt,q="FORBID_TAGS"in D?Se({},D.FORBID_TAGS,H):{},ae="FORBID_ATTR"in D?Se({},D.FORBID_ATTR,H):{},Ne="USE_PROFILES"in D?D.USE_PROFILES:!1,Q=D.ALLOW_ARIA_ATTR!==!1,G=D.ALLOW_DATA_ATTR!==!1,pe=D.ALLOW_UNKNOWN_PROTOCOLS||!1,he=D.ALLOW_SELF_CLOSE_IN_ATTR!==!1,re=D.SAFE_FOR_TEMPLATES||!1,K=D.WHOLE_DOCUMENT||!1,ce=D.RETURN_DOM||!1,ye=D.RETURN_DOM_FRAGMENT||!1,ke=D.RETURN_TRUSTED_TYPE||!1,me=D.FORCE_BODY||!1,xe=D.SANITIZE_DOM!==!1,Z=D.SANITIZE_NAMED_PROPS||!1,Le=D.KEEP_CONTENT!==!1,Re=D.IN_PLACE||!1,x=D.ALLOWED_URI_REGEXP||Jc,He=D.NAMESPACE||rt,Y=D.CUSTOM_ELEMENT_HANDLING||{},D.CUSTOM_ELEMENT_HANDLING&&Me(D.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Y.tagNameCheck=D.CUSTOM_ELEMENT_HANDLING.tagNameCheck),D.CUSTOM_ELEMENT_HANDLING&&Me(D.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Y.attributeNameCheck=D.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),D.CUSTOM_ELEMENT_HANDLING&&typeof D.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Y.allowCustomizedBuiltInElements=D.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),re&&(G=!1),ye&&(ce=!0),Ne&&(L=Se({},[...$c]),$=[],Ne.html===!0&&(Se(L,Wc),Se($,Kc)),Ne.svg===!0&&(Se(L,Ji),Se($,Xi),Se($,Lu)),Ne.svgFilters===!0&&(Se(L,Qi),Se($,Xi),Se($,Lu)),Ne.mathMl===!0&&(Se(L,Zi),Se($,Gc),Se($,Lu))),D.ADD_TAGS&&(L===I&&(L=ja(L)),Se(L,D.ADD_TAGS,H)),D.ADD_ATTR&&($===z&&($=ja($)),Se($,D.ADD_ATTR,H)),D.ADD_URI_SAFE_ATTR&&Se(Dn,D.ADD_URI_SAFE_ATTR,H),D.FORBID_CONTENTS&&(st===Pt&&(st=ja(st)),Se(st,D.FORBID_CONTENTS,H)),Le&&(L["#text"]=!0),K&&Se(L,["html","head","body"]),L.table&&(Se(L,["tbody"]),delete q.tbody),D.TRUSTED_TYPES_POLICY){if(typeof D.TRUSTED_TYPES_POLICY.createHTML!="function")throw Sr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof D.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Sr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=D.TRUSTED_TYPES_POLICY,U=S.createHTML("")}else S===void 0&&(S=B2(f,a)),S!==null&&typeof U=="string"&&(U=S.createHTML(""));kt&&kt(D),de=D}},Ln=Se({},["mi","mo","mn","ms","mtext"]),wn=Se({},["foreignobject","desc","title","annotation-xml"]),Jt=Se({},["title","style","font","a","script"]),_a=Se({},Ji);Se(_a,Qi),Se(_a,v2);let Mi=Se({},Zi);Se(Mi,A2);let cf=function(D){let ie=A(D);(!ie||!ie.tagName)&&(ie={namespaceURI:He,tagName:"template"});let X=Mu(D.tagName),Be=Mu(ie.tagName);return _t[D.namespaceURI]?D.namespaceURI===qt?ie.namespaceURI===rt?X==="svg":ie.namespaceURI===Oe?X==="svg"&&(Be==="annotation-xml"||Ln[Be]):!!_a[X]:D.namespaceURI===Oe?ie.namespaceURI===rt?X==="math":ie.namespaceURI===qt?X==="math"&&wn[Be]:!!Mi[X]:D.namespaceURI===rt?ie.namespaceURI===qt&&!wn[Be]||ie.namespaceURI===Oe&&!Ln[Be]?!1:!Mi[X]&&(Jt[X]||!_a[X]):!!(mt==="application/xhtml+xml"&&_t[D.namespaceURI]):!1},Ba=function(D){kr(t.removed,{element:D});try{D.parentNode.removeChild(D)}catch{D.remove()}},Fi=function(D,ie){try{kr(t.removed,{attribute:ie.getAttributeNode(D),from:ie})}catch{kr(t.removed,{attribute:null,from:ie})}if(ie.removeAttribute(D),D==="is"&&!$[D])if(ce||ye)try{Ba(ie)}catch{}else try{ie.setAttribute(D,"")}catch{}},oc=function(D){let ie,X;if(me)D=""+D;else{let vt=E2(D,/^[\r\n\t ]+/);X=vt&&vt[0]}mt==="application/xhtml+xml"&&He===rt&&(D=''+D+"");let Be=S?S.createHTML(D):D;if(He===rt)try{ie=new p().parseFromString(Be,mt)}catch{}if(!ie||!ie.documentElement){ie=R.createDocument(He,"template",null);try{ie.documentElement.innerHTML=Yt?U:Be}catch{}}let ut=ie.body||ie.documentElement;return D&&X&&ut.insertBefore(r.createTextNode(X),ut.childNodes[0]||null),He===rt?k.call(ie,K?"html":"body")[0]:K?ie.documentElement:ut},ic=function(D){return y.call(D.ownerDocument||D,D,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},df=function(D){return D instanceof g&&(typeof D.nodeName!="string"||typeof D.textContent!="string"||typeof D.removeChild!="function"||!(D.attributes instanceof l)||typeof D.removeAttribute!="function"||typeof D.setAttribute!="function"||typeof D.namespaceURI!="string"||typeof D.insertBefore!="function"||typeof D.hasChildNodes!="function")},xu=function(D){return typeof i=="object"?D instanceof i:D&&typeof D=="object"&&typeof D.nodeType=="number"&&typeof D.nodeName=="string"},Mn=function(D,ie,X){E[D]&&x2(E[D],Be=>{Be.call(t,ie,X,de)})},sc=function(D){let ie;if(Mn("beforeSanitizeElements",D,null),df(D))return Ba(D),!0;let X=H(D.nodeName);if(Mn("uponSanitizeElement",D,{tagName:X,allowedTags:L}),D.hasChildNodes()&&!xu(D.firstElementChild)&&(!xu(D.content)||!xu(D.content.firstElementChild))&&Wt(/<[/\w]/g,D.innerHTML)&&Wt(/<[/\w]/g,D.textContent))return Ba(D),!0;if(!L[X]||q[X]){if(!q[X]&&cc(X)&&(Y.tagNameCheck instanceof RegExp&&Wt(Y.tagNameCheck,X)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(X)))return!1;if(Le&&!st[X]){let Be=A(D)||D.parentNode,ut=h(D)||D.childNodes;if(ut&&Be){let vt=ut.length;for(let Bt=vt-1;Bt>=0;--Bt)Be.insertBefore(b(ut[Bt],!0),C(D))}}return Ba(D),!0}return D instanceof s&&!cf(D)||(X==="noscript"||X==="noembed")&&Wt(/<\/no(script|embed)/i,D.innerHTML)?(Ba(D),!0):(re&&D.nodeType===3&&(ie=D.textContent,ie=gn(ie,B," "),ie=gn(ie,P," "),ie=gn(ie,w," "),D.textContent!==ie&&(kr(t.removed,{element:D.cloneNode()}),D.textContent=ie)),Mn("afterSanitizeElements",D,null),!1)},lc=function(D,ie,X){if(xe&&(ie==="id"||ie==="name")&&(X in r||X in $e))return!1;if(!(G&&!ae[ie]&&Wt(_,ie))&&!(Q&&Wt(O,ie))){if(!$[ie]||ae[ie]){if(!(cc(D)&&(Y.tagNameCheck instanceof RegExp&&Wt(Y.tagNameCheck,D)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(D))&&(Y.attributeNameCheck instanceof RegExp&&Wt(Y.attributeNameCheck,ie)||Y.attributeNameCheck instanceof Function&&Y.attributeNameCheck(ie))||ie==="is"&&Y.allowCustomizedBuiltInElements&&(Y.tagNameCheck instanceof RegExp&&Wt(Y.tagNameCheck,X)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(X))))return!1}else if(!Dn[ie]&&!Wt(x,gn(X,M,""))&&!((ie==="src"||ie==="xlink:href"||ie==="href")&&D!=="script"&&T2(X,"data:")===0&&pa[D])&&!(pe&&!Wt(N,gn(X,M,"")))&&X)return!1}return!0},cc=function(D){return D.indexOf("-")>0},dc=function(D){let ie,X,Be,ut;Mn("beforeSanitizeAttributes",D,null);let{attributes:vt}=D;if(!vt)return;let Bt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:$};for(ut=vt.length;ut--;){ie=vt[ut];let{name:lt,namespaceURI:Ra}=ie;if(X=lt==="value"?ie.value:C2(ie.value),Be=H(lt),Bt.attrName=Be,Bt.attrValue=X,Bt.keepAttr=!0,Bt.forceKeepAttr=void 0,Mn("uponSanitizeAttribute",D,Bt),X=Bt.attrValue,Bt.forceKeepAttr||(Fi(lt,D),!Bt.keepAttr))continue;if(!he&&Wt(/\/>/i,X)){Fi(lt,D);continue}re&&(X=gn(X,B," "),X=gn(X,P," "),X=gn(X,w," "));let mc=H(D.nodeName);if(lc(mc,Be,X)){if(Z&&(Be==="id"||Be==="name")&&(Fi(lt,D),X=Ae+X),S&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!Ra)switch(f.getAttributeType(mc,Be)){case"TrustedHTML":{X=S.createHTML(X);break}case"TrustedScriptURL":{X=S.createScriptURL(X);break}}try{Ra?D.setAttributeNS(Ra,lt,X):D.setAttribute(lt,X),qc(t.removed)}catch{}}}Mn("afterSanitizeAttributes",D,null)},mf=function D(ie){let X,Be=ic(ie);for(Mn("beforeSanitizeShadowDOM",ie,null);X=Be.nextNode();)Mn("uponSanitizeShadowNode",X,null),!sc(X)&&(X.content instanceof u&&D(X.content),dc(X));Mn("afterSanitizeShadowDOM",ie,null)};return t.sanitize=function(D){let ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X,Be,ut,vt;if(Yt=!D,Yt&&(D=""),typeof D!="string"&&!xu(D))if(typeof D.toString=="function"){if(D=D.toString(),typeof D!="string")throw Sr("dirty is not a string, aborting")}else throw Sr("toString is not a function");if(!t.isSupported)return D;if(se||Pe(ie),t.removed=[],typeof D=="string"&&(Re=!1),Re){if(D.nodeName){let Ra=H(D.nodeName);if(!L[Ra]||q[Ra])throw Sr("root node is forbidden and cannot be sanitized in-place")}}else if(D instanceof i)X=oc(""),Be=X.ownerDocument.importNode(D,!0),Be.nodeType===1&&Be.nodeName==="BODY"||Be.nodeName==="HTML"?X=Be:X.appendChild(Be);else{if(!ce&&!re&&!K&&D.indexOf("<")===-1)return S&&ke?S.createHTML(D):D;if(X=oc(D),!X)return ce?null:ke?U:""}X&&me&&Ba(X.firstChild);let Bt=ic(Re?D:X);for(;ut=Bt.nextNode();)sc(ut)||(ut.content instanceof u&&mf(ut.content),dc(ut));if(Re)return D;if(ce){if(ye)for(vt=T.call(X.ownerDocument);X.firstChild;)vt.appendChild(X.firstChild);else vt=X;return($.shadowroot||$.shadowrootmod)&&(vt=v.call(n,vt,!0)),vt}let lt=K?X.outerHTML:X.innerHTML;return K&&L["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&Wt(Qc,X.ownerDocument.doctype.name)&&(lt=" -`+lt),re&&(lt=gn(lt,B," "),lt=gn(lt,P," "),lt=gn(lt,w," ")),S&&ke?S.createHTML(lt):lt},t.setConfig=function(D){Pe(D),se=!0},t.clearConfig=function(){de=null,se=!1},t.isValidAttribute=function(D,ie,X){de||Pe({});let Be=H(D),ut=H(ie);return lc(Be,ut,X)},t.addHook=function(D,ie){typeof ie=="function"&&(E[D]=E[D]||[],kr(E[D],ie))},t.removeHook=function(D){if(E[D])return qc(E[D])},t.removeHooks=function(D){E[D]&&(E[D]=[])},t.removeAllHooks=function(){E={}},t}var _e=Zc();var R2=Au.alert;m();m();var Xc={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",curentPlan:"\u5F53\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52A8\u7EED\u671F",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",sponsorLabel:"$1 \u8D77\u8D5E\u52A9\u5F00\u53D1\u8005",help:"\u5E2E\u52A9",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D\uFF0C\u518D\u70B9\u51FB\u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D\u5373\u53EF\u8BBE\u7F6E",browserShortcutsNoteForChrome:"\u7C7BChrome \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762\uFF0C\u5728`\u7BA1\u7406\u5FEB\u6377\u952E`\u9762\u677F(`chrome://extensions/shortcuts`)\u8BBE\u7F6E\uFF0C\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8DF3\u8F6C\u5230\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E\u683C\u5F0F\u4E3A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1: \u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1 & PDF\u6587\u6863\u7FFB\u8BD1","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7F51\u9875\u53CC\u8BED\u7FFB\u8BD1\u6269\u5C55\uFF0C\u540C\u65F6\u652F\u6301 PDF \u7FFB\u8BD1\uFF0C\u53CC\u8BED Epub \u7535\u5B50\u4E66\u5236\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u817E\u8BAF\u7FFB\u8BD1\u7B49\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\uFF0C\u514D\u8D39\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8BD1\u5E76\u9690\u85CF\u539F\u6587/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.toggleTranslationMask":"\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.donateContext":"\u4E86\u89E3\u8D5E\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5219\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875(\u4EC5\u8BD1\u6587)/\u663E\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7","fingers.0":"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478",mouseHoldKey:"+ {key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoverHoldKey:"\u9F20\u6807\u60AC\u505C\u540C\u65F6\u6309\u4E0B\u5FEB\u6377\u952E\u7FFB\u8BD1\u6BB5\u843D","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u6587\u6863",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",goAdvancedSettings:"\u53BB\u8FDB\u9636\u8BBE\u7F6E\u9875",goAdvancedInterfaceSettings:"\u53BB\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u8BBE\u7F6E\u9875\u9762",advanced:"\u8FDB\u9636\u8BBE\u7F6E",advancedDescription:"\u4E00\u822C\u65E0\u9700\u8BBE\u7F6E\uFF0C\u4FDD\u6301\u9ED8\u8BA4\u5373\u53EF\u3002\u4EC5\u5BF9\u4E8E\u66F4\u4E13\u4E1A\u7684\u7528\u6237\uFF0C\u63D0\u4F9B\u66F4\u4E2A\u6027\u5316\u7684\u8BBE\u7F6E\u9879\u3002",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00","display both the original text and the translation":"\u540C\u65F6\u663E\u793A\u539F\u6587\u548C\u8BD1\u6587","keyboard shortcuts":"\u952E\u76D8\u5FEB\u6377\u952E",modify:"\u4FEE\u6539\u5FEB\u6377\u952E",reset:"\u91CD\u7F6E",close:"\u5173\u95ED",homepage:"\u4E3B\u9875",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",changeToOnlyTranslationMode:"\u5207\u6362\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u5207\u6362\u4E3A\u53CC\u8BED\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",unknownError:"\u672A\u77E5\u9519\u8BEF",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",needActionForOptions:"(\u9700\u8BBE\u7F6E)",translationEngine:"\u5F15\u64CE\u9009\u9879",sourceLanguage:"\u539F\u6587\u8BED\u8A00",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",forThisSite:"\u5F53\u524D\u7F51\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1 {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8BD1 {language}",alwaysTranslateSomeSite:"\u603B\u662F\u7FFB\u8BD1 {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8BD1 {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u6DFB\u52A0",default:"\u9ED8\u8BA4",forThisLanguage:"\u9488\u5BF9\u8BE5\u8BED\u8A00\uFF1A","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91","translate other languages into specific language":"\u5C06\u5176\u4ED6\u8BED\u8A00\u7FFB\u8BD1\u4E3A\u4F60\u8BBE\u7F6E\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1",language:"\u8BED\u8A00","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",Error:"\u9519\u8BEF",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",interface:"\u754C\u9762\u8BBE\u7F6E",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8BD1\u9875\u9762\u6807\u9898","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1",enableUserscriptPagePopup:"\u5728\u9875\u9762\u4E0A\u663E\u793A\u60AC\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528\u5FEB\u6377\u952E/{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8BD1\u6587\u6837\u5F0F",currentUrl:"\u5F53\u524D\u7F51\u5740",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664","languages.auto":"\u81EA\u52A8\u68C0\u6D4B",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",upload:"\u4E0A\u4F20",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",download:"\u4E0B\u8F7D",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",deleteFail:"\u5220\u9664\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",backupToCloudDescription:"\u624B\u52A8\u4E0A\u4F20\u6216\u6062\u590D\u5907\u4EFD\u6587\u4EF6\uFF0C\u6700\u591A\u5141\u8BB83\u4E2A\u4E0D\u540C\u7684\u5907\u4EFD",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",updatedAt:"\u66F4\u65B0\u4E8E {date}",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u9891\u9053",joinTelegramChannel:"\u5173\u6CE8 Telegram \u9891\u9053\u83B7\u53D6\u6700\u65B0\u66F4\u65B0",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",autoSync:"\u81EA\u52A8\u5B9A\u65F6\u540C\u6B65",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863","edit border color":"\u4FEE\u6539\u8FB9\u6846\u989C\u8272",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",enableSubtitle:"\u5F00\u542F\u5B57\u5E55\u7FFB\u8BD1",enableSubtitleDescription:"\u9488\u5BF9 youtube \u7B49\u7F51\u7AD9\u7684\u5B57\u5E55\u533A\u57DF\u5F00\u542F\u7FFB\u8BD1",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",enableSearchEnhancement:"\u542F\u7528\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A",enableSearchEnhancementDescription:"\u5F00\u542F\u540E\uFF0C\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\u793E\u533A\uFF09\u53F3\u8FB9\u680F\u81EA\u52A8\u663E\u793A\u5BF9\u5E94\u82F1\u6587\u5173\u952E\u8BCD\u7684\u201C\u8C37\u6B4C\u65B0\u95FB\u201D\u641C\u7D22\u7ED3\u679C\u3002",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerMinute":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u5206\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u8350\uFF09, \u5C06\u4F1A\u5728\u5355\u72EC\u4F5C\u4E3A\u4E00\u6BB5\u53D1\u9001\u7ED9 OpenAI","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740",enabledExtension:"\u542F\u7528\u6269\u5C55",clickToDisableExtension:"\u70B9\u51FB\u7981\u7528\u6269\u5C55",clickToEnableExtension:"\u70B9\u51FB\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",modifyMouseHoverKey:"\u4FEE\u6539\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u8BBE\u7F6E",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",disableTint:"* \u4F60\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u542F\u7528\u3002",searchEnhancementNotes:"\u6211\u4EEC\u53D1\u73B0\uFF0C\u4E2D\u6587\u5173\u952E\u8BCD\u548C\u82F1\u6587\u5173\u952E\u8BCD\u7684\u65B0\u95FB\u7ED3\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u542F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u529F\u80FD\u540E\uFF0C\u6211\u4EEC\u4F1A\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\u7F51\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52A8\u7528\u82F1\u6587\u4E3A\u4F60\u641C\u7D22\u540C\u6837\u7684\u5173\u952E\u8BCD\u5E76\u5C55\u793A\u5728\u53F3\u4FA7\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8BE5\u529F\u80FD\u7684\u8BDD\uFF0C\u53EF\u4EE5\u9009\u62E9\u7981\u7528\u5B83\u3002",option:"\u8BBE\u7F6E",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",needLoginAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u81EA\u5B9A\u4E49)",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",onetime_7day:"7 \u5929\u4F53\u9A8C\u5305",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradePlan:"\u70B9\u6B64\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL \u548C OpenAI \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8BD1",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u8BBE\u7F6E\u5176\u4ED6\u5FEB\u6377\u952E\u6765\u89E6\u53D1\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1"};var e4={nologin:"\u672A\u767B\u9304",login:"\u767B\u9304",manageAccount:"\u7BA1\u7406\u8CEC\u6236",logout:"\u9000\u51FA",curentPlan:"\u7576\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u671F",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u64CA\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u8AAA\u660E",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u9644\u52A0\u5143\u4EF6\u7BA1\u7406\u9801\u9762 \u300Cabout:addons\u300D\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u5716\u793A\u300D\uFF0C\u518D\u9EDE\u9078\u300C\u7BA1\u7406\u64F4\u5145\u5957\u4EF6\u5FEB\u901F\u9375\u300D\u5373\u53EF\u8A2D\u5B9A",browserShortcutsNoteForChrome:"Chromium \u6838\u5FC3\u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u64F4\u5145\u529F\u80FD\u7BA1\u7406\u9801\u9762\uFF0C\u5728\u300C\u9375\u76E4\u5FEB\u901F\u9375\u300D\u9801\u9762(chrome://extensions/shortcuts)\u8A2D\u5B9A\uFF0C\u9EDE\u9078\u4E0B\u65B9\u6309\u9215\u524D\u5F80\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u901F\u9375\u683C\u5F0F\u70BA\uFF1A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F: \u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F & PDF\u6587\u6A94\u7FFB\u8B6F","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7DB2\u9801\u96D9\u8A9E\u7FFB\u8B6F\u64F4\u5C55\uFF0C\u540C\u6642\u652F\u6301 PDF \u7FFB\u8B6F\uFF0C\u96D9\u8A9E Epub \u96FB\u5B50\u66F8\u88FD\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u9A30\u8A0A\u7FFB\u8B6F\u7B49\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF0C\u514D\u8CBB\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8B6F\u4E26\u96B1\u85CF\u539F\u6587/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.toggleTranslationMask":"\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.donateContext":"\u4E86\u89E3\u8D0A\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u5247\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u6642\u89F8\u78B0\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801(\u50C5\u8B6F\u6587)/\u986F\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304","fingers.0":"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478",mouseHoldKey:"+ {key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u6377\u9375(\u6253\u958B\u8A2D\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoverHoldKey:"\u9F20\u6A19\u6ED1\u904E\u540C\u6642\u6309\u4E0B X \u9375\u7FFB\u8B6F\u6BB5\u843D","mouse-translate":"\u9F20\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",goAdvancedSettings:"\u524D\u5F80\u9032\u968E\u8A2D\u5B9A\u9801\u9762",goAdvancedInterfaceSettings:"\u524D\u5F80\u81EA\u8A02\u8A2D\u5B9A\u9801\u9762",advanced:"\u9032\u968E\u8A2D\u5B9A",advancedDescription:"\u6B63\u5E38\u60C5\u6CC1\u7121\u9700\u8A2D\u5B9A\uFF0C\u4FDD\u6301\u9810\u8A2D\u5373\u53EF\u3002\u50C5\u91DD\u5C0D\u66F4\u5C08\u696D\u7684\u4F7F\u7528\u8005\uFF0C\u63D0\u4F9B\u66F4\u500B\u4EBA\u5316\u7684\u8A2D\u5B9A\u9805\u76EE\u3002",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00","display both the original text and the translation":"\u540C\u6642\u986F\u793A\u539F\u6587\u548C\u8B6F\u6587","keyboard shortcuts":"\u9375\u76E4\u5FEB\u901F\u9375",modify:"\u8B8A\u66F4\u5FEB\u901F\u9375",reset:"\u91CD\u8A2D",close:"\u95DC\u9589",homepage:"\u9996\u9801",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",changeToOnlyTranslationMode:"\u5207\u63DB\u70BA\u50C5\u986F\u793A\u8B6F\u6587",changeToDualTranslationMode:"\u5207\u63DB\u70BA\u96D9\u8A9E\u7FFB\u8B6F",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:"\u672A\u77E5\u7684\u932F\u8AA4",canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u9078\u9805",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",needActionForOptions:"(\u9700\u8A2D\u5B9A)",translationEngine:"\u5F15\u64CE\u9078\u9805",sourceLanguage:"\u539F\u6587\u8A9E\u8A00",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",forThisSite:"\u7576\u524D\u7DB2\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8B6F {language}",alwaysTranslateSomeSite:"\u7E3D\u662F\u7FFB\u8B6F {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8B6F {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u65B0\u589E",default:"\u9810\u8A2D",forThisLanguage:"\u91DD\u5C0D\u8A72\u8A9E\u8A00\uFF1A","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F","translate other languages into specific language":"\u5C07\u5176\u5B83\u8A9E\u8A00\u7FFB\u8B6F\u70BA\u4F60\u8A2D\u5B9A\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9",language:"\u8A9E\u8A00","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",Error:"\u932F\u8AA4",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",interface:"\u4ECB\u9762\u8A2D\u5B9A",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65",syncToAccount:"\u540C\u6B65\u5230\u8CEC\u6236",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u8CEC\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u8A2D\u5099\u4E4B\u9593\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u8CEC\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u8CEC\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8B6F","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9E\u99AC\u905C\u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8B6F\u9801\u9762\u6A19\u984C","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F",enableUserscriptPagePopup:"\u5728\u9801\u9762\u4E0A\u986F\u793A\u61F8\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528\u5FEB\u901F\u9375/{touch}\u518D\u6B21\u986F\u793A\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5EFA\u8B70\u5C07\u672C\u8A2D\u5B9A\u9801\u9762\u52A0\u5165\u81F3\u6211\u7684\u6700\u611B","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8B6F\u6587\u6A23\u5F0F",currentUrl:"\u76EE\u524D\u7DB2\u5740",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6E96\u3002",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",upload:"\u4E0A\u50B3",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",download:"\u4E0B\u8F09",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",deleteFail:"\u522A\u9664\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",backupToCloudDescription:"\u624B\u52D5\u4E0A\u50B3\u6216\u9084\u539F\u5099\u4EFD\u6A94\u6848\uFF0C\u6700\u591A\u5141\u8A31 3 \u500B\u4E0D\u540C\u7684\u5099\u4EFD",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",updatedAt:"\u66F4\u65B0\u65BC {date}",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u4EEC\u7684<3>Twitter\uFF0C<4>Telegram \u983B\u9053\u4EE5\u53CA\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u90F5\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u983B\u9053",joinTelegramChannel:"\u95DC\u6CE8 Telegram \u983B\u9053\u77AD\u89E3\u66F4\u65B0\u8CC7\u8A0A",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",autoSync:"\u81EA\u52D5\u5B9A\u6642\u540C\u6B65",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6","edit border color":"\u8B8A\u66F4\u908A\u6846\u8272\u5F69",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",enableSubtitle:"\u958B\u555F\u5B57\u5E55\u7FFB\u8B6F",enableSubtitleDescription:"\u91DD\u5C0D youtube \u7B49\u7DB2\u7AD9\u7684\u5B57\u5E55\u5340\u57DF\u958B\u555F\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",enableSearchEnhancement:"\u958B\u555F\u641C\u7D22\u589E\u5F37",enableSearchEnhancementDescription:"\u4E2D\u6587\u641C\u7D22\u8C37\u6B4C\u6703\u5728\u53F3\u908A\u51FA\u73FE\u82F1\u6587\u7248\u8C37\u6B4C\u65B0\u805E",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerMinute":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u5206\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u4EFD\u50B3\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u85A6\uFF09, \u5C07\u6703\u5728\u55AE\u7368\u4F5C\u70BA\u4E00\u6BB5\u767C\u9001\u7D66 OpenAI","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u50B3\u9001\u767C\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",clickToDisableExtension:"\u9EDE\u9078\u505C\u7528\u5957\u4EF6",clickToEnableExtension:"\u9EDE\u9078\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u9F20\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u7F6E\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u5B57\u7B26\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8B58\u5225\u70BA\u89F8\u767C\u5B57\u7B26\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u7981\u7528\u78BA\u8A8D",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",disableTint:"* \u60A8\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u555F\u7528\u3002",searchEnhancementNotes:"\u6211\u5011\u767C\u73FE\uFF0C\u4E2D\u6587\u95DC\u9375\u8A5E\u548C\u82F1\u6587\u95DC\u9375\u8A5E\u7684\u65B0\u805E\u7D50\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u555F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u4FE1\u606F\u589E\u5F37\u529F\u80FD\u5F8C\uFF0C\u6211\u5011\u6703\u5728\u652F\u6301\u7684\u7DB2\u7AD9\uFF08\u8C37\u6B4C\u65B0\u805E\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u95DC\u9375\u8A5E\uFF09\uFF0C\u96EA\u7403\uFF0C\u6771\u65B9\u8CA1\u5BCC\u7DB2\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52D5\u7528\u82F1\u6587\u70BA\u4F60\u641C\u7D22\u540C\u6A23\u7684\u95DC\u9375\u8A5E\u4E26\u5C55\u793A\u5728\u53F3\u5074\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8A72\u529F\u80FD\u7684\u8A71\uFF0C\u53EF\u4EE5\u9078\u64C7\u7981\u7528\u5B83\u3002",option:"\u9078\u9805",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL \u548C OpenAI \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8B6F",currentAccount:"\u7576\u524D\u8CEC\u6236"};var t4={nologin:"Not logged in",login:"Login",manageAccount:"Manage Account",logout:"Logout",curentPlan:"Current Plan",endAt:"Expires",endAuto:"Auto Renew",lineBreakMaxTextCount:"Maximum number of characters allowed per sentence after line break","translate-pdf":"Click to translate PDF","noSupportTranslate-pdf":"The script is not supported, please use a plugin.","translate-firefox-local-pdf":"Click to upload PDF",enableLineBreak:"Whether to turn on automatic line wrapping for long paragraphs",sponsorLabel:"Sponsoring developers from $1 (monthly or one-time)",help:"Help",browserShortcutsNoteForFirefox:`To modify the shortcut key in Firefox browser, you need to open the extension management page 'about: addons', then click "Settings", and then click "Management shortcut key" to set it`,browserShortcutsNoteForChrome:"To modify the shortcut key in Chrome browser, you need to open the extension management page` chrome://extensions/shortcuts `) Settings, click the button below to jump to the shortcut key management page.",browserShortcutsSucks:"Please enter the shortcut key manually in the format:",enableLineBreakDescription:"After opening, a line break will be inserted at the end of each sentence in a long paragraph for easy reading","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate: Web Page&PDF Translation","browser.brandDescription":"Bilingual web page translation, also supports PDF translation, bilingual Epub eBook translation, free to use.","browser.toggleTranslatePage":"Toggle Translate Page","browser.toggleTranslateTheWholePage":"Toggle Translate the Whole Page","browser.toggleOnlyTransation":"Toggle Translate and Hide Original Text","browser.toggleTranslateToThePageEndImmediately":"Toggle Translate to the Bottom of the Page Immediately","browser.toggleTranslateTheMainPage":"Toggle Translate the Main Page","browser.openOptionsPage":"Open Settings Page","browser.toggleTranslationMask":"Toggle translation mask style","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-book","browser.openEbookBuilder":"Make Dual EPUB ebook","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.donateContext":"Sponsor Benefits","browser.translateLocalSubtitleFile":"Translate Subtitle File",confirmResetConfig:"Are you sure you want to reset the settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Create right button menu",toggleBeta:"Enable Beta experimental features",betaDescription:"Enable features that are still experimental, and translation services that are in testing. Join the <1>Telegram group to learn more.",translationLineBreakSettingDescription:"The always line break feature is suitable for layouts with less content, making the layout more neat and tidy. (Use smart line breaks for long paragraphs with more content (more than {count} characters) for saving space)",tempTranslateDomainTitle:"Open the translation time temporarily",tempTranslateDomainDescription:"When a page is translated manually, turn it temporarily on as automatic translation",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",toggleTranslatePageWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide translation display",toggleTranslationMaskWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide the blur effect of the translation",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"Multi-finger touch to show/hide only translation display",addUrlDescription:"The domain name is available and wildcard is supported e.g.: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import configuration from file",export:"Export to file",toggleDebug:"Print debug logs on the console","fingers.0":"Close","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch",mouseHoldKey:"+ {key} translate this paragraph",mouseHoldKeyAuto:"Translate the paragraph directly",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate this paragraph",mouseHoverHoldKey:"Mouse over and press X key to translate paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"All settings reset successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",goAdvancedSettings:"Go to Advanced Settings Page",goAdvancedInterfaceSettings:"Go to Advanced Custom Settings Page",advanced:"Advanced",advancedDescription:"Normally no settings are needed, keep the default. More personalized settings are provided for professional users only.",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"Translate to the bottom of the page immediately after opening the page?",feedback:"Feedback",toggleTranslatePage:"Toggle Translate",translateToThePageEndImmediatelyDescription:"Enabled will translate from the top to the bottom of the page immediately after opening. Disable will translate while reading. (Not recommended to enable)","translate all areas of the page":"Whether to translate all areas of the web page",translationAreaDescription:"When enabled, all areas of the entire web page will be translated. Disabled will use the default smart recognition and translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Directly translate the number of characters in front of the page without waiting to scroll to the visible area","interface language":"Interface language","display both the original text and the translation":"Display both the original text and the translation","keyboard shortcuts":"Keyboard shortcuts",modify:"Edit",reset:"Reset",close:"Close",homepage:"Home Page",more:"More",moreOptions:"Expand more custom settings",translateTheWholePage:"Translate the whole page area",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Dual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"Main areas of intelligent translation","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly implement the interface of the Greasemonkey extension, please use another browser that <1>supports the Greasemonkey extension such as (Firefox Nightly version)",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:"Unknown Error",canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha enabled successfully",disableAlphaSuccess:"Alpha has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(to set up)",goSettings:"to set up",needActionForOptions:"(need to set)",translationEngine:"Engine Options",sourceLanguage:"Original language",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",forThisSite:"Site:",alwaysTranslateSomeLanguage:"Always translate {language}",neverTranslateSomeLanguage:"Never translate {language}",alwaysTranslateSomeSite:"Always translate {hostname}",neverTranslateSomeSite:"Never translate {hostname}",alwaysTranslateSomeSiteOrWildSite:"Always translate this site",alwaysTranslateSomePage:"Always translate this page",add:"Add",default:"Default",forThisLanguage:"For This Language:","add url":"Add URL",edit:"Edit","translate other languages into specific language":"Translate other languages into the language you set","select translation service":"Select a translation service",language:"Language","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",Error:"Error",allowCacheTranslations:"Enable local translation caching (reduce translation requests for duplicate paragraphs)","translation display":"Translation display style","select diplay style":"Please refer to the following examples",interface:"Interface Settings",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dashed underline","translationTheme.dotted":"Dotted Underline","translationTheme.dashedBorder":"Dashed Border","translationTheme.solidBorder":"Dashed Border","translationTheme.underline":"Straight underline","translationTheme.mask":"Blur effect","translationTheme.opacity":"Opacity effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weakening","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dashed underline","translationTheme.nativeDashed":"System Dash Underline","translationTheme.nativeDotted":"System Dotted Underline","translationTheme.nativeUnderline":"System Straight Line Underline","translationTheme.wavy":"Squiggle","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeeplX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"Translate page title","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped",enableUserscriptPagePopup:"Always show Popup windows on the page",enableUserscriptPagePopupDescription:"Three-finger touch to show the Popup.","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",currentUrl:"Current URL",confirm:"Save",cancel:"Cancel",delete:"Delete","languages.auto":"Detect Language",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",authFail:"Authorization Failed",syncTitle:"Please select a file operation",import_hint:"Import",upload:"Upload",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",download:"Download",importSuccess:"Upload Success",importFail:"Import Failed",deleteFail:"Delete Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",backupToCloudDescription:"Upload or restore backup files manually, up to 3 different backups",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",updatedAt:"Updated at {date}",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. You can choose to subscribe to <6>Pro membership to use the out-of-the-box DeepL and OpenAI translation.

You can also follow out <3>Twitter, <4>Telegram Channel, and <5>Email Subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free and we hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. ",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",qqCommunities:"QQ Channel",joinTelegramChannel:"Subscribe to our Telegram channel to get the latest updates",feedbackAndJoin:"Feedback",autoSync:"Auto-Time Sync",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization","edit border color":"Edit border color",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",enableSubtitle:"enableSubtitleTranslation",enableSubtitleDescription:"Enable translations for subtitle areas on sites like youtube",isTranslateTitleDescription:"When enabled, the page title will be translated",enableSearchEnhancement:"Enable Search Enhancement",enableSearchEnhancementDescription:'After enabling, the right sidebar will automatically display "Google News" search results for corresponding English keywords on supported websites (such as Google News, Google Search (partial keywords), Xueqiu, East Money, Futu, Tiger Community).',verifyService:"Verify service",verified:"Successful","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerMinute":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next minute. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"Requests exceed this limit will be queued until the next seconds.","description.prompt":"Send as a user to OpenAI conversation, where {{text}} indicates the text of the paragraph,{{from}} indicates the language of the paragraph,{{to}} indicates the target language, you can omit {{text}}, if so, it'll be sent as a separated message","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"Send the conversation to OpenAI as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the original language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"Default is\uFF1Ageneral. Only set up if there is an API console open domain translation, support fields see <1>Here ","field.scene":"Scene","description.scene":"Default is\uFF1Ageneral. Only set up if there is an API console open Machine Translation Professional, support fields see<1>Here","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please provide a URL with the specific path.",enabledExtension:"Enable extensions",clickToDisableExtension:"Click to disable extension",clickToEnableExtension:"Click to enable the extension",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter customization content",inputOptions:"Writing",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter for translating part of the input box.",inputStartingTriggerKeyDescription:"When you don't need to translate the entire input box, the delimiter allows you to only translate the portion from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means only translating the portion from {startingKey}ja to the end of the input box.",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting is no prefix required, the partial text translation function of the input box cannot be used temporarily.",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Start the translation by quickly pressing 3 times {trailingKey}.",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time (milliseconds) for the input to end the combo trigger",spaceKey:"",noneKey:"Translate the entire text box without prefixes",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement in the following URL",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",clickToSeeQuickDemo:"Click to expand the 30s tutorial video",inputHelperInfo:`Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001". +`,PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",OPTIONS_URL:"https://dash.immersivetranslate.com/",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",MOCK:"0",DEBUG:"0",INSTALL_FROM:"firefox_zip"}});var Lm=Ef((Mo,Yr)=>{m();(function(){var e;function t(d){var b,C,h="",A=-1,S;if(d&&d.length)for(S=d.length;(A+=1)>>6&31,128|b&63):b<=65535?h+=String.fromCharCode(224|b>>>12&15,128|b>>>6&63,128|b&63):b<=2097151&&(h+=String.fromCharCode(240|b>>>18&7,128|b>>>12&63,128|b>>>6&63,128|b&63));return h}function n(d){var b,C,h,A,S,U=[],R;if(b=C=h=A=S=0,d&&d.length)for(R=d.length,d+="";b191&&h<224?(A=d.charCodeAt(b+1),U[C]=String.fromCharCode((h&31)<<6|A&63),b+=2):(A=d.charCodeAt(b+1),S=d.charCodeAt(b+2),U[C]=String.fromCharCode((h&15)<<12|(A&63)<<6|S&63),b+=3);return U.join("")}function a(d,b){var C=(d&65535)+(b&65535),h=(d>>16)+(b>>16)+(C>>16);return h<<16|C&65535}function r(d,b){return d<>>32-b}function u(d,b){for(var C=b?"0123456789ABCDEF":"0123456789abcdef",h="",A,S=0,U=d.length;S>>4&15)+C.charAt(A&15);return h}function o(d){var b,C=d.length,h="";for(b=0;b>>8&255);return h}function i(d){var b,C=d.length,h="";for(b=0;b>>8&255,d.charCodeAt(b)&255);return h}function s(d){var b,C=d.length*32,h="";for(b=0;b>5]>>>24-b%32&255);return h}function c(d){var b,C=d.length*32,h="";for(b=0;b>5]>>>b%32&255);return h}function l(d){var b,C=d.length*8,h=Array(d.length>>2),A=h.length;for(b=0;b>5]|=(d.charCodeAt(b/8)&255)<>2),A=h.length;for(b=0;b>5]|=(d.charCodeAt(b/8)&255)<<24-b%32;return h}function p(d,b){var C=b.length,h=Array(),A,S,U,R,y,T,k,v;for(T=Array(Math.ceil(d.length/2)),R=T.length,A=0;A0;){for(y=Array(),U=0,A=0;A0||S>0)&&(y[y.length]=S);h[h.length]=U,T=y}for(k="",A=h.length-1;A>=0;A--)k+=b.charAt(h[A]);for(v=Math.ceil(d.length*8/(Math.log(b.length)/Math.log(2))),A=k.length;Ad.length*8?h+=b:h+=C.charAt(R>>>6*(3-U)&63);return h}e={VERSION:"1.0.6",Base64:function(){var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b="=",C=!1,h=!0;this.encode=function(A){var S,U,R,y="";for(b=b||"=",A=h?t(A):A,len=A.length,S=0;Slen*8?y+=b:y+=d.charAt(R>>>6*(3-U)&63);return y},this.decode=function(A){var S,U,R,y,T,k,v,E,B,P,w="",_=[];if(!A)return A;S=P=0,A=A.replace(new RegExp("\\"+b,"gi"),"");do T=d.indexOf(A.charAt(S++)),k=d.indexOf(A.charAt(S++)),v=d.indexOf(A.charAt(S++)),E=d.indexOf(A.charAt(S++)),B=T<<18|k<<12|v<<6|E,U=B>>16&255,R=B>>8&255,y=B&255,P+=1,v===64?_[P]=String.fromCharCode(U):E===64?_[P]=String.fromCharCode(U,R):_[P]=String.fromCharCode(U,R,y);while(S>>8^C;return(b^-1)>>>0},MD5:function(d){var b=d&&typeof d.uppercase=="boolean"?d.uppercase:!1,C=d&&typeof d.pad=="string"?d.pad:"=",h=d&&typeof d.utf8=="boolean"?d.utf8:!0;this.hex=function(E){return u(A(E,h),b)},this.b64=function(E){return f(A(E),C)},this.any=function(E,B){return p(A(E,h),B)},this.raw=function(E){return A(E,h)},this.hex_hmac=function(E,B){return u(S(E,B),b)},this.b64_hmac=function(E,B){return f(S(E,B),C)},this.any_hmac=function(E,B,P){return p(S(E,B),P)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(E){return typeof E=="boolean"&&(b=E),this},this.setPad=function(E){return C=E||C,this},this.setUTF8=function(E){return typeof E=="boolean"&&(h=E),this};function A(E){return E=h?t(E):E,c(U(l(E),E.length*8))}function S(E,B){var P,w,_,O,N;for(E=h?t(E):E,B=h?t(B):B,P=l(E),P.length>16&&(P=U(P,E.length*8)),w=Array(16),_=Array(16),N=0;N<16;N+=1)w[N]=P[N]^909522486,_[N]=P[N]^1549556828;return O=U(w.concat(l(B)),512+B.length*8),c(U(_.concat(O),512+128))}function U(E,B){var P,w,_,O,N,M=1732584193,x=-271733879,L=-1732584194,I=271733878;for(E[B>>5]|=128<>>9<<4)+14]=B,P=0;P16&&(v=U(v,T.length*8)),E=Array(16),B=Array(16),P=0;P<16;P+=1)E[P]=v[P]^909522486,B[P]=v[P]^1549556828;return w=U(E.concat(g(k)),512+k.length*8),s(U(B.concat(w),512+160))}function U(T,k){var v,E,B,P,w,_,O,N,M=Array(80),x=1732584193,L=-271733879,I=-1732584194,$=271733878,z=-1009589776;for(T[k>>5]|=128<<24-k%32,T[(k+64>>9<<4)+15]=k,v=0;v16&&(z=M(z,x.length*8));$<16;$+=1)Y[$]=z[$]^909522486,q[$]=z[$]^1549556828;return I=M(Y.concat(g(L)),512+L.length*8),s(M(q.concat(I),512+256))}function R(x,L){return x>>>L|x<<32-L}function y(x,L){return x>>>L}function T(x,L,I){return x&L^~x&I}function k(x,L,I){return x&L^x&I^L&I}function v(x){return R(x,2)^R(x,13)^R(x,22)}function E(x){return R(x,6)^R(x,11)^R(x,25)}function B(x){return R(x,7)^R(x,18)^y(x,3)}function P(x){return R(x,17)^R(x,19)^y(x,10)}function w(x){return R(x,28)^R(x,34)^R(x,39)}function _(x){return R(x,14)^R(x,18)^R(x,41)}function O(x){return R(x,1)^R(x,8)^y(x,7)}function N(x){return R(x,19)^R(x,61)^y(x,6)}A=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function M(x,L){var I=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],$=new Array(64),z,Y,q,ae,Q,G,fe,he,re,K,se,me;for(x[L>>5]|=128<<24-L%32,x[(L+64>>9<<4)+15]=L,re=0;re32&&(x=R(x,_.length*8));M<32;M+=1)L[M]=x[M]^909522486,I[M]=x[M]^1549556828;return N=R(L.concat(g(O)),1024+O.length*8),s(R(I.concat(N),1024+512))}function R(_,O){var N,M,x,L=new Array(80),I=new Array(16),$=[new y(1779033703,-205731576),new y(-1150833019,-2067093701),new y(1013904242,-23791573),new y(-1521486534,1595750129),new y(1359893119,-1377402159),new y(-1694144372,725511199),new y(528734635,-79577749),new y(1541459225,327033209)],z=new y(0,0),Y=new y(0,0),q=new y(0,0),ae=new y(0,0),Q=new y(0,0),G=new y(0,0),fe=new y(0,0),he=new y(0,0),re=new y(0,0),K=new y(0,0),se=new y(0,0),me=new y(0,0),ce=new y(0,0),ye=new y(0,0),ke=new y(0,0),xe=new y(0,0),Z=new y(0,0);for(A===void 0&&(A=[new y(1116352408,-685199838),new y(1899447441,602891725),new y(-1245643825,-330482897),new y(-373957723,-2121671748),new y(961987163,-213338824),new y(1508970993,-1241133031),new y(-1841331548,-1357295717),new y(-1424204075,-630357736),new y(-670586216,-1560083902),new y(310598401,1164996542),new y(607225278,1323610764),new y(1426881987,-704662302),new y(1925078388,-226784913),new y(-2132889090,991336113),new y(-1680079193,633803317),new y(-1046744716,-815192428),new y(-459576895,-1628353838),new y(-272742522,944711139),new y(264347078,-1953704523),new y(604807628,2007800933),new y(770255983,1495990901),new y(1249150122,1856431235),new y(1555081692,-1119749164),new y(1996064986,-2096016459),new y(-1740746414,-295247957),new y(-1473132947,766784016),new y(-1341970488,-1728372417),new y(-1084653625,-1091629340),new y(-958395405,1034457026),new y(-710438585,-1828018395),new y(113926993,-536640913),new y(338241895,168717936),new y(666307205,1188179964),new y(773529912,1546045734),new y(1294757372,1522805485),new y(1396182291,-1651133473),new y(1695183700,-1951439906),new y(1986661051,1014477480),new y(-2117940946,1206759142),new y(-1838011259,344077627),new y(-1564481375,1290863460),new y(-1474664885,-1136513023),new y(-1035236496,-789014639),new y(-949202525,106217008),new y(-778901479,-688958952),new y(-694614492,1432725776),new y(-200395387,1467031594),new y(275423344,851169720),new y(430227734,-1194143544),new y(506948616,1363258195),new y(659060556,-544281703),new y(883997877,-509917016),new y(958139571,-976659869),new y(1322822218,-482243893),new y(1537002063,2003034995),new y(1747873779,-692930397),new y(1955562222,1575990012),new y(2024104815,1125592928),new y(-2067236844,-1578062990),new y(-1933114872,442776044),new y(-1866530822,593698344),new y(-1538233109,-561857047),new y(-1090935817,-1295615723),new y(-965641998,-479046869),new y(-903397682,-366583396),new y(-779700025,566280711),new y(-354779690,-840897762),new y(-176337025,-294727304),new y(116418474,1914138554),new y(174292421,-1563912026),new y(289380356,-1090974290),new y(460393269,320620315),new y(685471733,587496836),new y(852142971,1086792851),new y(1017036298,365543100),new y(1126000580,-1676669620),new y(1288033470,-885112138),new y(1501505948,-60457430),new y(1607167915,987167468),new y(1816402316,1246189591)]),M=0;M<80;M+=1)L[M]=new y(0,0);for(_[O>>5]|=128<<24-(O&31),_[(O+128>>10<<5)+31]=O,x=_.length,M=0;M>>N|O.h<<32-N,_.h=O.h>>>N|O.l<<32-N}function v(_,O,N){_.l=O.h>>>N|O.l<<32-N,_.h=O.l>>>N|O.h<<32-N}function E(_,O,N){_.l=O.l>>>N|O.h<<32-N,_.h=O.h>>>N}function B(_,O,N){var M=(O.l&65535)+(N.l&65535),x=(O.l>>>16)+(N.l>>>16)+(M>>>16),L=(O.h&65535)+(N.h&65535)+(x>>>16),I=(O.h>>>16)+(N.h>>>16)+(L>>>16);_.l=M&65535|x<<16,_.h=L&65535|I<<16}function P(_,O,N,M,x){var L=(O.l&65535)+(N.l&65535)+(M.l&65535)+(x.l&65535),I=(O.l>>>16)+(N.l>>>16)+(M.l>>>16)+(x.l>>>16)+(L>>>16),$=(O.h&65535)+(N.h&65535)+(M.h&65535)+(x.h&65535)+(I>>>16),z=(O.h>>>16)+(N.h>>>16)+(M.h>>>16)+(x.h>>>16)+($>>>16);_.l=L&65535|I<<16,_.h=$&65535|z<<16}function w(_,O,N,M,x,L){var I=(O.l&65535)+(N.l&65535)+(M.l&65535)+(x.l&65535)+(L.l&65535),$=(O.l>>>16)+(N.l>>>16)+(M.l>>>16)+(x.l>>>16)+(L.l>>>16)+(I>>>16),z=(O.h&65535)+(N.h&65535)+(M.h&65535)+(x.h&65535)+(L.h&65535)+($>>>16),Y=(O.h>>>16)+(N.h>>>16)+(M.h>>>16)+(x.h>>>16)+(L.h>>>16)+(z>>>16);_.l=I&65535|$<<16,_.h=z&65535|Y<<16}},RMD160:function(d){var b=d&&typeof d.uppercase=="boolean"?d.uppercase:!1,C=d&&typeof d.pad=="string"?d.pa:"=",h=d&&typeof d.utf8=="boolean"?d.utf8:!0,A=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],S=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],U=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],R=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(w){return u(y(w,h))},this.b64=function(w){return f(y(w,h),C)},this.any=function(w,_){return p(y(w,h),_)},this.raw=function(w){return y(w,h)},this.hex_hmac=function(w,_){return u(T(w,_))},this.b64_hmac=function(w,_){return f(T(w,_),C)},this.any_hmac=function(w,_,O){return p(T(w,_),O)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(w){return typeof w=="boolean"&&(b=w),this},this.setPad=function(w){return typeof w<"u"&&(C=w),this},this.setUTF8=function(w){return typeof w=="boolean"&&(h=w),this};function y(w){return w=h?t(w):w,k(v(l(w),w.length*8))}function T(w,_){w=h?t(w):w,_=h?t(_):_;var O,N,M=l(w),x=Array(16),L=Array(16);for(M.length>16&&(M=v(M,w.length*8)),O=0;O<16;O+=1)x[O]=M[O]^909522486,L[O]=M[O]^1549556828;return N=v(x.concat(l(_)),512+_.length*8),k(v(L.concat(N),512+160))}function k(w){var _,O="",N=w.length*32;for(_=0;_>5]>>>_%32&255);return O}function v(w,_){var O,N,M,x,L=1732584193,I=4023233417,$=2562383102,z=271733878,Y=3285377520,q,ae,Q,G,fe,he,re,K,se,me;for(w[_>>5]|=128<<_%32,w[(_+64>>>9<<4)+14]=_,x=w.length,M=0;Mfunction(){return t||(0,e[pc(e)[0]])((t={exports:{}}).exports,t),t.exports},Mf=(e,t)=>{for(var n in t)Bi(e,n,{get:t[n],enumerable:!0})},_i=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of pc(t))!Df.call(e,r)&&r!==n&&Bi(e,r,{get:()=>t[r],enumerable:!(a=kf(t,r))||a.enumerable});return e},Ff=(e,t,n)=>(_i(e,t,"default"),n&&_i(n,t,"default")),fc=(e,t,n)=>(n=e!=null?Af(Sf(e)):{},_i(t||!e||!e.__esModule?Bi(n,"default",{value:e,enumerable:!0}):n,e)),hc=Lf({"../esmd/npm/webextension-polyfill@0.10.0/node_modules/webextension-polyfill/dist/browser-polyfill.js"(e,t){(function(n,a){if(typeof define=="function"&&define.amd)define("webextension-polyfill",["module"],a);else if(typeof e<"u")a(t);else{var r={exports:{}};a(r),n.browser=r.exports}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:e,function(n){"use strict";if(!globalThis.chrome?.runtime?.id)throw new Error("This script should only be loaded in a browser extension.");if(typeof globalThis.browser>"u"||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){let a="The message port closed before a response was received.",r=u=>{let o={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(Object.keys(o).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class i extends WeakMap{constructor(T,k=void 0){super(k),this.createItem=T}get(T){return this.has(T)||this.set(T,this.createItem(T)),super.get(T)}}let s=y=>y&&typeof y=="object"&&typeof y.then=="function",c=(y,T)=>(...k)=>{u.runtime.lastError?y.reject(new Error(u.runtime.lastError.message)):T.singleCallbackArg||k.length<=1&&T.singleCallbackArg!==!1?y.resolve(k[0]):y.resolve(k)},l=y=>y==1?"argument":"arguments",g=(y,T)=>function(v,...E){if(E.lengthT.maxArgs)throw new Error(`Expected at most ${T.maxArgs} ${l(T.maxArgs)} for ${y}(), got ${E.length}`);return new Promise((B,P)=>{if(T.fallbackToNoCallback)try{v[y](...E,c({resolve:B,reject:P},T))}catch{v[y](...E),T.fallbackToNoCallback=!1,T.noCallback=!0,B()}else T.noCallback?(v[y](...E),B()):v[y](...E,c({resolve:B,reject:P},T))})},p=(y,T,k)=>new Proxy(T,{apply(v,E,B){return k.call(E,y,...B)}}),f=Function.call.bind(Object.prototype.hasOwnProperty),d=(y,T={},k={})=>{let v=Object.create(null),E={has(P,w){return w in y||w in v},get(P,w,_){if(w in v)return v[w];if(!(w in y))return;let O=y[w];if(typeof O=="function")if(typeof T[w]=="function")O=p(y,y[w],T[w]);else if(f(k,w)){let N=g(w,k[w]);O=p(y,y[w],N)}else O=O.bind(y);else if(typeof O=="object"&&O!==null&&(f(T,w)||f(k,w)))O=d(O,T[w],k[w]);else if(f(k,"*"))O=d(O,T[w],k["*"]);else return Object.defineProperty(v,w,{configurable:!0,enumerable:!0,get(){return y[w]},set(N){y[w]=N}}),O;return v[w]=O,O},set(P,w,_,O){return w in v?v[w]=_:y[w]=_,!0},defineProperty(P,w,_){return Reflect.defineProperty(v,w,_)},deleteProperty(P,w){return Reflect.deleteProperty(v,w)}},B=Object.create(y);return new Proxy(B,E)},b=y=>({addListener(T,k,...v){T.addListener(y.get(k),...v)},hasListener(T,k){return T.hasListener(y.get(k))},removeListener(T,k){T.removeListener(y.get(k))}}),C=new i(y=>typeof y!="function"?y:function(k){let v=d(k,{},{getContent:{minArgs:0,maxArgs:0}});y(v)}),h=new i(y=>typeof y!="function"?y:function(k,v,E){let B=!1,P,w=new Promise(M=>{P=function(x){B=!0,M(x)}}),_;try{_=y(k,v,P)}catch(M){_=Promise.reject(M)}let O=_!==!0&&s(_);if(_!==!0&&!O&&!B)return!1;let N=M=>{M.then(x=>{E(x)},x=>{let L;x&&(x instanceof Error||typeof x.message=="string")?L=x.message:L="An unexpected error occurred",E({__mozWebExtensionPolyfillReject__:!0,message:L})}).catch(x=>{})};return N(O?_:w),!0}),A=({reject:y,resolve:T},k)=>{u.runtime.lastError?u.runtime.lastError.message===a?T():y(new Error(u.runtime.lastError.message)):k&&k.__mozWebExtensionPolyfillReject__?y(new Error(k.message)):T(k)},S=(y,T,k,...v)=>{if(v.lengthT.maxArgs)throw new Error(`Expected at most ${T.maxArgs} ${l(T.maxArgs)} for ${y}(), got ${v.length}`);return new Promise((E,B)=>{let P=A.bind(null,{resolve:E,reject:B});v.push(P),k.sendMessage(...v)})},U={devtools:{network:{onRequestFinished:b(C)}},runtime:{onMessage:b(h),onMessageExternal:b(h),sendMessage:S.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:S.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},R={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return o.privacy={network:{"*":R},services:{"*":R},websites:{"*":R}},d(u,U,o)};n.exports=r(chrome)}else n.exports=globalThis.browser})}}),bc={};Mf(bc,{default:()=>xu});var Pf=fc(hc());Ff(bc,fc(hc()));var{default:gc,..._f}=Pf,xu=gc!==void 0?gc:_f;globalThis.immersiveTranslateBrowserAPI=xu;m();m();m();m();function Ve(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():F}var Ee=Ve();function pe(){return Ee.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function Fn(){return Ee.PROD==="1"}function Pn(){return Ee.PROD_API==="1"}function yc(){return Ee.HAS_CSP_ERROR=="1"}function Rt(){if(Ee.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function Eu(){return typeof Deno<"u"}var c5=Ve().PROD==="1",Ia=Ve().PROD!=="1";function Tu(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}m();m();m();m();m();m();m();function Na(){let e,t="pending",n=new Promise((a,r)=>{e={async resolve(u){await u,t="fulfilled",a(u)},reject(u){t="rejected",r(u)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}m();var Ri=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function Cu(e,t){let n=Na(),a=setTimeout(()=>n.reject(new Ri),t);return Promise.race([e,n]).finally(()=>clearTimeout(a))}m();m();function Cr(e,t={}){let{signal:n,persistent:a}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((r,u)=>{let o=()=>{clearTimeout(s),u(new DOMException("Delay was aborted.","AbortError"))},s=setTimeout(()=>{n?.removeEventListener("abort",o),r()},e);if(n?.addEventListener("abort",o,{once:!0}),a===!1)try{Deno.unrefTimer(s)}catch(c){if(!(c instanceof ReferenceError))throw c}})}m();var xc=class{#e=0;#t=[];#n=[];#a=Na();add(t){++this.#e,this.#r(t[Symbol.asyncIterator]())}async#r(t){try{let{value:n,done:a}=await t.next();a?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#a.resolve()}async*iterate(){for(;this.#e>0;){await this.#a;for(let t=0;toh,bgBlue:()=>ch,bgBrightBlack:()=>ph,bgBrightBlue:()=>yh,bgBrightCyan:()=>Eh,bgBrightGreen:()=>hh,bgBrightMagenta:()=>xh,bgBrightRed:()=>fh,bgBrightWhite:()=>Th,bgBrightYellow:()=>bh,bgCyan:()=>mh,bgGreen:()=>sh,bgMagenta:()=>dh,bgRed:()=>ih,bgRgb24:()=>Ah,bgRgb8:()=>wh,bgWhite:()=>gh,bgYellow:()=>lh,black:()=>Wf,blue:()=>Vf,bold:()=>If,brightBlack:()=>Cc,brightBlue:()=>nh,brightCyan:()=>rh,brightGreen:()=>eh,brightMagenta:()=>ah,brightRed:()=>Xf,brightWhite:()=>uh,brightYellow:()=>th,cyan:()=>Jf,dim:()=>Nf,getColorEnabled:()=>Rf,gray:()=>Zf,green:()=>Kf,hidden:()=>Hf,inverse:()=>zf,italic:()=>jf,magenta:()=>Yf,red:()=>$f,reset:()=>Of,rgb24:()=>vh,rgb8:()=>Ch,setColorEnabled:()=>Bf,strikethrough:()=>qf,stripColor:()=>Sh,underline:()=>Uf,white:()=>Qf,yellow:()=>Gf});m();var{Deno:Ec}=globalThis,Tc=typeof Ec?.noColor=="boolean"?Ec.noColor:!0,Oi=!Tc;function Bf(e){Tc||(Oi=e)}function Rf(){return Oi}function Te(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function Ce(e,t){return Oi?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function Of(e){return Ce(e,Te([0],0))}function If(e){return Ce(e,Te([1],22))}function Nf(e){return Ce(e,Te([2],22))}function jf(e){return Ce(e,Te([3],23))}function Uf(e){return Ce(e,Te([4],24))}function zf(e){return Ce(e,Te([7],27))}function Hf(e){return Ce(e,Te([8],28))}function qf(e){return Ce(e,Te([9],29))}function Wf(e){return Ce(e,Te([30],39))}function $f(e){return Ce(e,Te([31],39))}function Kf(e){return Ce(e,Te([32],39))}function Gf(e){return Ce(e,Te([33],39))}function Vf(e){return Ce(e,Te([34],39))}function Yf(e){return Ce(e,Te([35],39))}function Jf(e){return Ce(e,Te([36],39))}function Qf(e){return Ce(e,Te([37],39))}function Zf(e){return Cc(e)}function Cc(e){return Ce(e,Te([90],39))}function Xf(e){return Ce(e,Te([91],39))}function eh(e){return Ce(e,Te([92],39))}function th(e){return Ce(e,Te([93],39))}function nh(e){return Ce(e,Te([94],39))}function ah(e){return Ce(e,Te([95],39))}function rh(e){return Ce(e,Te([96],39))}function uh(e){return Ce(e,Te([97],39))}function oh(e){return Ce(e,Te([40],49))}function ih(e){return Ce(e,Te([41],49))}function sh(e){return Ce(e,Te([42],49))}function lh(e){return Ce(e,Te([43],49))}function ch(e){return Ce(e,Te([44],49))}function dh(e){return Ce(e,Te([45],49))}function mh(e){return Ce(e,Te([46],49))}function gh(e){return Ce(e,Te([47],49))}function ph(e){return Ce(e,Te([100],49))}function fh(e){return Ce(e,Te([101],49))}function hh(e){return Ce(e,Te([102],49))}function bh(e){return Ce(e,Te([103],49))}function yh(e){return Ce(e,Te([104],49))}function xh(e){return Ce(e,Te([105],49))}function Eh(e){return Ce(e,Te([106],49))}function Th(e){return Ce(e,Te([107],49))}function Hn(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function Ch(e,t){return Ce(e,Te([38,5,Hn(t)],39))}function wh(e,t){return Ce(e,Te([48,5,Hn(t)],49))}function vh(e,t){return typeof t=="number"?Ce(e,Te([38,2,t>>16&255,t>>8&255,t&255],39)):Ce(e,Te([38,2,Hn(t.r),Hn(t.g),Hn(t.b)],39))}function Ah(e,t){return typeof t=="number"?Ce(e,Te([48,2,t>>16&255,t>>8&255,t&255],49)):Ce(e,Te([48,2,Hn(t.r),Hn(t.g),Hn(t.b)],49))}var kh=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function Sh(e){return e.replace(kh,"")}m();m();var Ii=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},Dh={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function Ni(e,t){let n={...Dh,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let a=n.minTimeout,r;for(let u=0;usetTimeout(i,a)),a*=n.multiplier,a=Math.max(a,n.minTimeout),n.maxTimeout>=0&&(a=Math.min(a,n.maxTimeout)),r=o}throw new Ii(r,n.maxAttempts)}m();var _n=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function ji(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",a,r=t.length;for(a=2;a>2],n+=_n[(t[a-2]&3)<<4|t[a-1]>>4],n+=_n[(t[a-1]&15)<<2|t[a]>>6],n+=_n[t[a]&63];return a===r+1&&(n+=_n[t[a-2]>>2],n+=_n[(t[a-2]&3)<<4],n+="=="),a===r&&(n+=_n[t[a-2]>>2],n+=_n[(t[a-2]&3)<<4|t[a-1]>>4],n+=_n[(t[a-1]&15)<<2],n+="="),n}m();m();var X5=Number.isNaN||function(e){return typeof e=="number"&&e!==e};m();m();var wu=globalThis||(typeof window<"u"?window:self),Mh=Object.create,zi=Object.defineProperty,Fh=Object.getOwnPropertyDescriptor,Ph=Object.getOwnPropertyNames,_h=Object.getPrototypeOf,Bh=Object.prototype.hasOwnProperty,Rh=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Oh=(e,t)=>{for(var n in t)zi(e,n,{get:t[n],enumerable:!0})},Ui=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Ph(t))!Bh.call(e,r)&&r!==n&&zi(e,r,{get:()=>t[r],enumerable:!(a=Fh(t,r))||a.enumerable});return e},Ih=(e,t,n)=>(Ui(e,t,"default"),n&&Ui(n,t,"default")),vc=(e,t,n)=>(n=e!=null?Mh(_h(e)):{},Ui(t||!e||!e.__esModule?zi(n,"default",{value:e,enumerable:!0}):n,e)),Ac=Rh((e,t)=>{var n="Expected a function",a=NaN,r="[object Symbol]",u=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,l=typeof wu=="object"&&wu&&wu.Object===Object&&wu,g=typeof self=="object"&&self&&self.Object===Object&&self,p=l||g||Function("return this")(),f=Object.prototype,d=f.toString,b=Math.max,C=Math.min,h=function(){return p.Date.now()};function A(k,v,E){var B,P,w,_,O,N,M=0,x=!1,L=!1,I=!0;if(typeof k!="function")throw new TypeError(n);v=T(v)||0,U(E)&&(x=!!E.leading,L="maxWait"in E,w=L?b(T(E.maxWait)||0,v):w,I="trailing"in E?!!E.trailing:I);function $(re){var K=B,se=P;return B=P=void 0,M=re,_=k.apply(se,K),_}function z(re){return M=re,O=setTimeout(ae,v),x?$(re):_}function Y(re){var K=re-N,se=re-M,me=v-K;return L?C(me,w-se):me}function q(re){var K=re-N,se=re-M;return N===void 0||K>=v||K<0||L&&se>=w}function ae(){var re=h();if(q(re))return Q(re);O=setTimeout(ae,Y(re))}function Q(re){return O=void 0,I&&B?$(re):(B=P=void 0,_)}function G(){O!==void 0&&clearTimeout(O),M=0,B=N=P=O=void 0}function fe(){return O===void 0?_:Q(h())}function he(){var re=h(),K=q(re);if(B=arguments,P=this,N=re,K){if(O===void 0)return z(N);if(L)return O=setTimeout(ae,v),$(N)}return O===void 0&&(O=setTimeout(ae,v)),_}return he.cancel=G,he.flush=fe,he}function S(k,v,E){var B=!0,P=!0;if(typeof k!="function")throw new TypeError(n);return U(E)&&(B="leading"in E?!!E.leading:B,P="trailing"in E?!!E.trailing:P),A(k,v,{leading:B,maxWait:v,trailing:P})}function U(k){var v=typeof k;return!!k&&(v=="object"||v=="function")}function R(k){return!!k&&typeof k=="object"}function y(k){return typeof k=="symbol"||R(k)&&d.call(k)==r}function T(k){if(typeof k=="number")return k;if(y(k))return a;if(U(k)){var v=typeof k.valueOf=="function"?k.valueOf():k;k=U(v)?v+"":v}if(typeof k!="string")return k===0?k:+k;k=k.replace(u,"");var E=i.test(k);return E||s.test(k)?c(k.slice(2),E?2:8):o.test(k)?a:+k}t.exports=S}),kc={};Oh(kc,{default:()=>bt});var Nh=vc(Ac());Ih(kc,vc(Ac()));var{default:wc,...jh}=Nh,bt=wc!==void 0?wc:jh;m();m();var Uh=Object.create,qi=Object.defineProperty,zh=Object.getOwnPropertyDescriptor,Hh=Object.getOwnPropertyNames,qh=Object.getPrototypeOf,Wh=Object.prototype.hasOwnProperty,$h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Kh=(e,t)=>{for(var n in t)qi(e,n,{get:t[n],enumerable:!0})},Hi=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Hh(t))!Wh.call(e,r)&&r!==n&&qi(e,r,{get:()=>t[r],enumerable:!(a=zh(t,r))||a.enumerable});return e},Gh=(e,t,n)=>(Hi(e,t,"default"),n&&Hi(n,t,"default")),Dc=(e,t,n)=>(n=e!=null?Uh(qh(e)):{},Hi(t||!e||!e.__esModule?qi(n,"default",{value:e,enumerable:!0}):n,e)),Lc=$h((e,t)=>{(function(n,a){typeof e=="object"&&typeof t=="object"?t.exports=a():typeof define=="function"&&define.amd?define([],a):typeof e=="object"?e.notie=a():n.notie=a()})(e,function(){return function(n){function a(u){if(r[u])return r[u].exports;var o=r[u]={i:u,l:!1,exports:{}};return n[u].call(o.exports,o,o.exports,a),o.l=!0,o.exports}var r={};return a.m=n,a.c=r,a.i=function(u){return u},a.d=function(u,o,i){a.o(u,o)||Object.defineProperty(u,o,{configurable:!1,enumerable:!0,get:i})},a.n=function(u){var o=u&&u.__esModule?function(){return u.default}:function(){return u};return a.d(o,"a",o),o},a.o=function(u,o){return Object.prototype.hasOwnProperty.call(u,o)},a.p="",a(a.s=1)}([function(n,a){n.exports=function(r){return r.webpackPolyfill||(r.deprecate=function(){},r.paths=[],r.children||(r.children=[]),Object.defineProperty(r,"loaded",{enumerable:!0,get:function(){return r.l}}),Object.defineProperty(r,"id",{enumerable:!0,get:function(){return r.i}}),r.webpackPolyfill=1),r}},function(n,a,r){"use strict";(function(u){var o,i,s,c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l};(function(l,g){c(a)==="object"&&c(u)==="object"?u.exports=g():(i=[],o=g,s=typeof o=="function"?o.apply(a,i):o,s!==void 0&&(u.exports=s))})(void 0,function(){return function(l){function g(f){if(p[f])return p[f].exports;var d=p[f]={i:f,l:!1,exports:{}};return l[f].call(d.exports,d,d.exports,g),d.l=!0,d.exports}var p={};return g.m=l,g.c=p,g.i=function(f){return f},g.d=function(f,d,b){g.o(f,d)||Object.defineProperty(f,d,{configurable:!1,enumerable:!0,get:b})},g.n=function(f){var d=f&&f.__esModule?function(){return f.default}:function(){return f};return g.d(d,"a",d),d},g.o=function(f,d){return Object.prototype.hasOwnProperty.call(f,d)},g.p="",g(g.s=0)}([function(l,g,p){function f(z,Y){var q={};for(var ae in z)Y.indexOf(ae)>=0||Object.prototype.hasOwnProperty.call(z,ae)&&(q[ae]=z[ae]);return q}Object.defineProperty(g,"__esModule",{value:!0});var d=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(z){return typeof z>"u"?"undefined":c(z)}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z>"u"?"undefined":c(z)},b=Object.assign||function(z){for(var Y=1;Y'+ae+"",se.onclick=function(){return P(me,K)},se.listener=function(ce){(v(ce)||E(ce))&&O()},B(se,K),G&&G<1&&(G=1),!he&&G&&U(G).then(function(){return P(me,K)})},M=g.force=function(z,Y){var q=z.type,ae=q===void 0?5:q,Q=z.text,G=z.buttonText,fe=G===void 0?"OK":G,he=z.callback,re=z.position,K=re===void 0?h.positions.force||K.top:re;R(),O();var se=document.createElement("div"),me=y();se.id=me;var ce=document.createElement("div");ce.classList.add(h.classes.textbox),ce.classList.add(h.classes.backgroundInfo),ce.innerHTML='
'+Q+"
";var ye=document.createElement("div");ye.classList.add(h.classes.button),ye.classList.add(T[ae]),ye.innerHTML=fe,ye.onclick=function(){P(me,K),_(),he?he():Y&&Y()},se.appendChild(ce),se.appendChild(ye),se.listener=function(ke){v(ke)&&ye.click()},B(se,K),w()},x=g.confirm=function(z,Y,q){var ae=z.text,Q=z.submitText,G=Q===void 0?"Yes":Q,fe=z.cancelText,he=fe===void 0?"Cancel":fe,re=z.submitCallback,K=z.cancelCallback,se=z.position,me=se===void 0?h.positions.confirm||me.top:se;R(),O();var ce=document.createElement("div"),ye=y();ce.id=ye;var ke=document.createElement("div");ke.classList.add(h.classes.textbox),ke.classList.add(h.classes.backgroundInfo),ke.innerHTML='
'+ae+"
";var xe=document.createElement("div");xe.classList.add(h.classes.button),xe.classList.add(h.classes.elementHalf),xe.classList.add(h.classes.backgroundSuccess),xe.innerHTML=G,xe.onclick=function(){P(ye,me),_(),re?re():Y&&Y()};var Z=document.createElement("div");Z.classList.add(h.classes.button),Z.classList.add(h.classes.elementHalf),Z.classList.add(h.classes.backgroundError),Z.innerHTML=he,Z.onclick=function(){P(ye,me),_(),K?K():q&&q()},ce.appendChild(ke),ce.appendChild(xe),ce.appendChild(Z),ce.listener=function(Ae){v(Ae)?xe.click():E(Ae)&&Z.click()},B(ce,me),w(ce,me)},L=function(z,Y,q){var ae=z.text,Q=z.submitText,G=Q===void 0?"Submit":Q,fe=z.cancelText,he=fe===void 0?"Cancel":fe,re=z.submitCallback,K=z.cancelCallback,se=z.position,me=se===void 0?h.positions.input||me.top:se,ce=f(z,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);R(),O();var ye=document.createElement("div"),ke=y();ye.id=ke;var xe=document.createElement("div");xe.classList.add(h.classes.textbox),xe.classList.add(h.classes.backgroundInfo),xe.innerHTML='
'+ae+"
";var Z=document.createElement("input");Z.classList.add(h.classes.inputField),Z.setAttribute("autocapitalize",ce.autocapitalize||"none"),Z.setAttribute("autocomplete",ce.autocomplete||"off"),Z.setAttribute("autocorrect",ce.autocorrect||"off"),Z.setAttribute("autofocus",ce.autofocus||"true"),Z.setAttribute("inputmode",ce.inputmode||"verbatim"),Z.setAttribute("max",ce.max||""),Z.setAttribute("maxlength",ce.maxlength||""),Z.setAttribute("min",ce.min||""),Z.setAttribute("minlength",ce.minlength||""),Z.setAttribute("placeholder",ce.placeholder||""),Z.setAttribute("spellcheck",ce.spellcheck||"default"),Z.setAttribute("step",ce.step||"any"),Z.setAttribute("type",ce.type||"text"),Z.value=ce.value||"",ce.allowed&&(Z.oninput=function(){var Re=void 0;if(Array.isArray(ce.allowed)){for(var Ne="",st=ce.allowed,Pt=0;Pt'+q+"",K.appendChild(me),fe.forEach(function(ye,ke){var xe=ye.type,Z=xe===void 0?1:xe,Ae=ye.text,Le=ye.handler,Re=document.createElement("div");Re.classList.add(T[Z]),Re.classList.add(h.classes.button),Re.classList.add(h.classes.selectChoice);var Ne=fe[ke+1];Ne&&!Ne.type&&(Ne.type=1),Ne&&Ne.type===Z&&Re.classList.add(h.classes.selectChoiceRepeated),Re.innerHTML=Ae,Re.onclick=function(){P(se,re),_(),Le()},K.appendChild(Re)});var ce=document.createElement("div");ce.classList.add(h.classes.backgroundNeutral),ce.classList.add(h.classes.button),ce.innerHTML=Q,ce.onclick=function(){P(se,re),_(),G?G():Y&&Y()},K.appendChild(ce),K.listener=function(ye){E(ye)&&ce.click()},B(K,re),w(K,re)},$=g.date=function(z,Y,q){var ae=z.value,Q=ae===void 0?new Date:ae,G=z.submitText,fe=G===void 0?"OK":G,he=z.cancelText,re=he===void 0?"Cancel":he,K=z.submitCallback,se=z.cancelCallback,me=z.position,ce=me===void 0?h.positions.date||ce.top:me;R(),O();var ye="▾",ke=document.createElement("div"),xe=document.createElement("div"),Z=document.createElement("div"),Ae=function(Ue){ke.innerHTML=h.dateMonths[Ue.getMonth()],xe.innerHTML=Ue.getDate(),Z.innerHTML=Ue.getFullYear()},Le=function(Ue){var H=new Date(Q.getFullYear(),Q.getMonth()+1,0).getDate(),de=Ue.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(de)>H&&(de=H.toString()),Ue.target.textContent=de,Number(de)<1&&(de="1"),Q.setDate(Number(de))},Re=function(Ue){var H=Ue.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);Ue.target.textContent=H,Q.setFullYear(Number(H))},Ne=function(Ue){Ae(Q)},st=function(Ue){var H=new Date(Q.getFullYear(),Q.getMonth()+Ue+1,0).getDate();Q.getDate()>H&&Q.setDate(H),Q.setMonth(Q.getMonth()+Ue),Ae(Q)},Pt=function(Ue){Q.setDate(Q.getDate()+Ue),Ae(Q)},pa=function(Ue){var H=Q.getFullYear()+Ue;H<0?Q.setFullYear(0):Q.setFullYear(Q.getFullYear()+Ue),Ae(Q)},qt=document.createElement("div"),Dn=y();qt.id=Dn;var Un=document.createElement("div");Un.classList.add(h.classes.backgroundInfo);var Oe=document.createElement("div");Oe.classList.add(h.classes.dateSelectorInner);var Wt=document.createElement("div");Wt.classList.add(h.classes.button),Wt.classList.add(h.classes.elementThird),Wt.classList.add(h.classes.dateSelectorUp),Wt.innerHTML=ye;var rt=document.createElement("div");rt.classList.add(h.classes.button),rt.classList.add(h.classes.elementThird),rt.classList.add(h.classes.dateSelectorUp),rt.innerHTML=ye;var He=document.createElement("div");He.classList.add(h.classes.button),He.classList.add(h.classes.elementThird),He.classList.add(h.classes.dateSelectorUp),He.innerHTML=ye,ke.classList.add(h.classes.element),ke.classList.add(h.classes.elementThird),ke.innerHTML=h.dateMonths[Q.getMonth()],xe.classList.add(h.classes.element),xe.classList.add(h.classes.elementThird),xe.setAttribute("contentEditable",!0),xe.addEventListener("input",Le),xe.addEventListener("blur",Ne),xe.innerHTML=Q.getDate(),Z.classList.add(h.classes.element),Z.classList.add(h.classes.elementThird),Z.setAttribute("contentEditable",!0),Z.addEventListener("input",Re),Z.addEventListener("blur",Ne),Z.innerHTML=Q.getFullYear();var Jt=document.createElement("div");Jt.classList.add(h.classes.button),Jt.classList.add(h.classes.elementThird),Jt.innerHTML=ye;var _t=document.createElement("div");_t.classList.add(h.classes.button),_t.classList.add(h.classes.elementThird),_t.innerHTML=ye;var zn=document.createElement("div");zn.classList.add(h.classes.button),zn.classList.add(h.classes.elementThird),zn.innerHTML=ye,Wt.onclick=function(){return st(1)},rt.onclick=function(){return Pt(1)},He.onclick=function(){return pa(1)},Jt.onclick=function(){return st(-1)},_t.onclick=function(){return Pt(-1)},zn.onclick=function(){return pa(-1)};var mt=document.createElement("div");mt.classList.add(h.classes.button),mt.classList.add(h.classes.elementHalf),mt.classList.add(h.classes.backgroundSuccess),mt.innerHTML=fe,mt.onclick=function(){P(Dn,ce),_(),K?K(Q):Y&&Y(Q)};var mn=document.createElement("div");mn.classList.add(h.classes.button),mn.classList.add(h.classes.elementHalf),mn.classList.add(h.classes.backgroundError),mn.innerHTML=re,mn.onclick=function(){P(Dn,ce),_(),se?se(Q):q&&q(Q)},Oe.appendChild(Wt),Oe.appendChild(rt),Oe.appendChild(He),Oe.appendChild(ke),Oe.appendChild(xe),Oe.appendChild(Z),Oe.appendChild(Jt),Oe.appendChild(_t),Oe.appendChild(zn),Un.appendChild(Oe),qt.appendChild(Un),qt.appendChild(mt),qt.appendChild(mn),qt.listener=function(Ue){v(Ue)?mt.click():E(Ue)&&mn.click()},B(qt,ce),w(qt,ce)};g.default={alert:N,force:M,confirm:x,input:L,select:I,date:$,setOptions:A,hideAlerts:O}}])})}).call(a,r(0)(n))}])})}),Mc={};Kh(Mc,{default:()=>vu});var Vh=Dc(Lc());Gh(Mc,Dc(Lc()));var{default:Sc,...Yh}=Vh,vu=Sc!==void 0?Sc:Yh;m();m();var Wi=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function $i(e,t,n,a){e.addEventListener?e.addEventListener(t,n,a):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function Rc(e,t){for(var n=t.slice(0,t.length-1),a=0;a=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function Jh(e,t){for(var n=e.length>=t.length?e:t,a=e.length>=t.length?t:e,r=!0,u=0;u=0&&ze.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&ze.splice(0,ze.length),(t===93||t===224)&&(t=91),t in gt){gt[t]=!1;for(var a in vn)vn[a]===t&&(Ye[a]=!1)}}function u2(e){if(typeof e>"u")Object.keys(nt).forEach(function(o){return delete nt[o]});else if(Array.isArray(e))e.forEach(function(o){o.key&&Ki(o)});else if(typeof e=="object")e.key&&Ki(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a1?Rc(vn,s):[];nt[g]=nt[g].filter(function(f){var d=a?f.method===a:!0;return!(d&&f.scope===n&&Jh(f.mods,p))})}})};function Pc(e,t,n,a){if(t.element===a){var r;if(t.scope===n||t.scope==="all"){r=t.mods.length>0;for(var u in gt)Object.prototype.hasOwnProperty.call(gt,u)&&(!gt[u]&&t.mods.indexOf(+u)>-1||gt[u]&&t.mods.indexOf(+u)===-1)&&(r=!1);(t.mods.length===0&&!gt[16]&&!gt[18]&&!gt[17]&&!gt[91]||r||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function _c(e,t){var n=nt["*"],a=e.keyCode||e.which||e.charCode;if(Ye.filter.call(this,e)){if((a===93||a===224)&&(a=91),ze.indexOf(a)===-1&&a!==229&&ze.push(a),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(d){var b=Vi[d];e[d]&&ze.indexOf(b)===-1?ze.push(b):!e[d]&&ze.indexOf(b)>-1?ze.splice(ze.indexOf(b),1):d==="metaKey"&&e[d]&&ze.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(ze=ze.slice(ze.indexOf(b))))}),a in gt){gt[a]=!0;for(var r in vn)vn[r]===a&&(Ye[r]=!0);if(!n)return}for(var u in gt)Object.prototype.hasOwnProperty.call(gt,u)&&(gt[u]=e[Vi[u]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(ze.indexOf(17)===-1&&ze.push(17),ze.indexOf(18)===-1&&ze.push(18),gt[17]=!0,gt[18]=!0);var o=Ar();if(n)for(var i=0;i-1}function Ye(e,t,n){ze=[];var a=Oc(e),r=[],u="all",o=document,i=0,s=!1,c=!0,l="+",g=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(u=t.scope),t.element&&(o=t.element),t.keyup&&(s=t.keyup),t.keydown!==void 0&&(c=t.keydown),t.capture!==void 0&&(g=t.capture),typeof t.splitKey=="string"&&(l=t.splitKey)),typeof t=="string"&&(u=t);i1&&(r=Rc(vn,e)),e=e[e.length-1],e=e==="*"?"*":ku(e),e in nt||(nt[e]=[]),nt[e].push({keyup:s,keydown:c,scope:u,mods:r,shortcut:a[i],method:n,key:a[i],splitKey:l,element:o});typeof o<"u"&&!o2(o)&&window&&(Nc.push(o),$i(o,"keydown",function(p){_c(p,o)},g),Fc||(Fc=!0,$i(window,"focus",function(){ze=[]},g)),$i(o,"keyup",function(p){_c(p,o),r2(p)},g))}function i2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(nt).forEach(function(n){var a=nt[n].filter(function(r){return r.scope===t&&r.shortcut===e});a.forEach(function(r){r&&r.method&&r.method()})})}var Gi={getPressedKeyString:e2,setScope:jc,getScope:Ar,deleteScope:a2,getPressedKeyCodes:Xh,isPressed:n2,filter:t2,trigger:i2,unbind:u2,keyMap:vr,modifier:vn,modifierMap:Vi};for(Au in Gi)Object.prototype.hasOwnProperty.call(Gi,Au)&&(Ye[Au]=Gi[Au]);var Au;typeof document<"u"&&(Bc=window.hotkeys,Ye.noConflict=function(e){return e&&window.hotkeys===Ye&&(window.hotkeys=Bc),Ye},window.hotkeys=Ye);var Bc;m();m();var s2={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},zc={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Xe={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},At={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},qn={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},W=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let a=W.getVersionPrecision(e),r=W.getVersionPrecision(t),u=Math.max(a,r),o=0,i=W.map([e,t],s=>{let c=u-W.getVersionPrecision(s),l=s+new Array(c+1).join(".0");return W.map(l.split("."),g=>new Array(20-g.length).join("0")+g).reverse()});for(n&&(o=u-Math.min(a,r)),u-=1;u>=o;){if(i[0][u]>i[1][u])return 1;if(i[0][u]===i[1][u]){if(u===o)return 0;u-=1}else if(i[0][u]{n[o]=u[o]})}return e}static getBrowserAlias(e){return s2[e]}static getBrowserTypeByAlias(e){return zc[e]||""}},Ie=/version\/(\d+(\.?_?\d+)+)/i,l2=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=W.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=W.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=W.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=W.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=W.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=W.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=W.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=W.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=W.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=W.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=W.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=W.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=W.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=W.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=W.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=W.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=W.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=W.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=W.getFirstMatch(Ie,e)||W.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=W.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=W.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=W.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=W.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=W.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=W.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=W.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=W.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=W.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=W.getFirstMatch(Ie,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,a=e.search("\\(")!==-1?n:t;return{name:W.getFirstMatch(a,e),version:W.getSecondMatch(a,e)}}}],c2=l2,d2=[{test:[/Roku\/DVP/],describe(e){let t=W.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:At.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=W.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:At.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=W.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=W.getWindowsVersionName(t);return{name:At.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:At.iOS},n=W.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=W.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=W.getMacOSVersionName(t),a={name:At.MacOS,version:t};return n&&(a.versionName=n),a}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=W.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:At.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=W.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=W.getAndroidVersionName(t),a={name:At.Android,version:t};return n&&(a.versionName=n),a}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=W.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:At.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=W.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||W.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||W.getFirstMatch(/\bbb(\d+)/i,e);return{name:At.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=W.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:At.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=W.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:At.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:At.Linux}}},{test:[/CrOS/],describe(){return{name:At.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=W.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:At.PlayStation4,version:t}}}],m2=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=W.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Xe.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Xe.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Xe.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Xe.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Xe.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Xe.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Xe.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=W.getFirstMatch(/(ipod|iphone)/i,e);return{type:Xe.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Xe.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Xe.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Xe.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Xe.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Xe.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Xe.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Xe.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Xe.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Xe.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Xe.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Xe.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Xe.tv}}}],g2=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:qn.Blink};let t=W.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:qn.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:qn.Trident},n=W.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:qn.Presto},n=W.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:qn.Gecko},n=W.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:qn.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:qn.WebKit},n=W.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],p2=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=W.find(c2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=W.find(d2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=W.find(m2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=W.find(g2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return W.assign({},this.parsedResult)}satisfies(e){let t={},n=0,a={},r=0;if(Object.keys(e).forEach(u=>{let o=e[u];typeof o=="string"?(a[u]=o,r+=1):typeof o=="object"&&(t[u]=o,n+=1)}),n>0){let u=Object.keys(t),o=W.find(u,s=>this.isOS(s));if(o){let s=this.satisfies(t[o]);if(s!==void 0)return s}let i=W.find(u,s=>this.isPlatform(s));if(i){let s=this.satisfies(t[i]);if(s!==void 0)return s}}if(r>0){let u=Object.keys(a),o=W.find(u,i=>this.isBrowser(i,!0));if(o!==void 0)return this.compareVersion(a[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),a=e.toLowerCase(),r=W.getBrowserTypeByAlias(a);return t&&r&&(a=r.toLowerCase()),a===n}compareVersion(e){let t=[0],n=e,a=!1,r=this.getBrowserVersion();if(typeof r=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(a=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(a=!0,n=e.substr(1)),t.indexOf(W.compareVersions(r,n,a))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},Uc=p2,f2=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new Uc(e,t)}static parse(e){return new Uc(e).getResult()}static get BROWSER_MAP(){return zc}static get ENGINE_MAP(){return qn}static get OS_MAP(){return At}static get PLATFORMS_MAP(){return Xe}},ja=f2;m();m();var{entries:Yc,setPrototypeOf:Hc,isFrozen:h2,getPrototypeOf:b2,getOwnPropertyDescriptor:y2}=Object,{freeze:kt,seal:pn,create:x2}=Object,{apply:es,construct:ts}=typeof Reflect<"u"&&Reflect;es||(es=function(e,t,n){return e.apply(t,n)});kt||(kt=function(e){return e});pn||(pn=function(e){return e});ts||(ts=function(e,t){return new e(...t)});var E2=Xt(Array.prototype.forEach),qc=Xt(Array.prototype.pop),kr=Xt(Array.prototype.push),Lu=Xt(String.prototype.toLowerCase),Yi=Xt(String.prototype.toString),T2=Xt(String.prototype.match),gn=Xt(String.prototype.replace),C2=Xt(String.prototype.indexOf),w2=Xt(String.prototype.trim),$t=Xt(RegExp.prototype.test),Sr=v2(TypeError);function Xt(e){return function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r/gm),L2=pn(/\${[\w\W]*}/gm),M2=pn(/^data-[\-\w.\u00B7-\uFFFF]/),F2=pn(/^aria-[\-\w]+$/),Jc=pn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),P2=pn(/^(?:\w+script|data):/i),_2=pn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Qc=pn(/^html$/i),Vc=Object.freeze({__proto__:null,MUSTACHE_EXPR:S2,ERB_EXPR:D2,TMPLIT_EXPR:L2,DATA_ATTR:M2,ARIA_ATTR:F2,IS_ALLOWED_URI:Jc,IS_SCRIPT_OR_DATA:P2,ATTR_WHITESPACE:_2,DOCTYPE_NAME:Qc}),B2=()=>typeof window>"u"?null:window,R2=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,a="data-tt-policy-suffix";t&&t.hasAttribute(a)&&(n=t.getAttribute(a));let r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML(u){return u},createScriptURL(u){return u}})}catch{return null}};function Zc(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:B2(),t=D=>Zc(D);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,a=n.currentScript,{document:r}=e,{DocumentFragment:u,HTMLTemplateElement:o,Node:i,Element:s,NodeFilter:c,NamedNodeMap:l=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:g,DOMParser:p,trustedTypes:f}=e,d=s.prototype,b=Su(d,"cloneNode"),C=Su(d,"nextSibling"),h=Su(d,"childNodes"),A=Su(d,"parentNode");if(typeof o=="function"){let D=r.createElement("template");D.content&&D.content.ownerDocument&&(r=D.content.ownerDocument)}let S,U="",{implementation:R,createNodeIterator:y,createDocumentFragment:T,getElementsByTagName:k}=r,{importNode:v}=n,E={};t.isSupported=typeof Yc=="function"&&typeof A=="function"&&R&&R.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:B,ERB_EXPR:P,TMPLIT_EXPR:w,DATA_ATTR:_,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:M}=Vc,{IS_ALLOWED_URI:x}=Vc,L=null,I=Se({},[...Wc,...Ji,...Qi,...Zi,...$c]),$=null,z=Se({},[...Kc,...Xi,...Gc,...Du]),Y=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),q=null,ae=null,Q=!0,G=!0,fe=!1,he=!0,re=!1,K=!1,se=!1,me=!1,ce=!1,ye=!1,ke=!1,xe=!0,Z=!1,Ae="user-content-",Le=!0,Re=!1,Ne={},st=null,Pt=Se({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),pa=null,qt=Se({},["audio","video","img","source","image","track"]),Dn=null,Un=Se({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Oe="http://www.w3.org/1998/Math/MathML",Wt="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml",He=rt,Jt=!1,_t=null,zn=Se({},[Oe,Wt,rt],Yi),mt,mn=["application/xhtml+xml","text/html"],Ue="text/html",H,de=null,$e=r.createElement("form"),Me=function(D){return D instanceof RegExp||D instanceof Function},Pe=function(D){if(!(de&&de===D)){if((!D||typeof D!="object")&&(D={}),D=Ua(D),mt=mn.indexOf(D.PARSER_MEDIA_TYPE)===-1?mt=Ue:mt=D.PARSER_MEDIA_TYPE,H=mt==="application/xhtml+xml"?Yi:Lu,L="ALLOWED_TAGS"in D?Se({},D.ALLOWED_TAGS,H):I,$="ALLOWED_ATTR"in D?Se({},D.ALLOWED_ATTR,H):z,_t="ALLOWED_NAMESPACES"in D?Se({},D.ALLOWED_NAMESPACES,Yi):zn,Dn="ADD_URI_SAFE_ATTR"in D?Se(Ua(Un),D.ADD_URI_SAFE_ATTR,H):Un,pa="ADD_DATA_URI_TAGS"in D?Se(Ua(qt),D.ADD_DATA_URI_TAGS,H):qt,st="FORBID_CONTENTS"in D?Se({},D.FORBID_CONTENTS,H):Pt,q="FORBID_TAGS"in D?Se({},D.FORBID_TAGS,H):{},ae="FORBID_ATTR"in D?Se({},D.FORBID_ATTR,H):{},Ne="USE_PROFILES"in D?D.USE_PROFILES:!1,Q=D.ALLOW_ARIA_ATTR!==!1,G=D.ALLOW_DATA_ATTR!==!1,fe=D.ALLOW_UNKNOWN_PROTOCOLS||!1,he=D.ALLOW_SELF_CLOSE_IN_ATTR!==!1,re=D.SAFE_FOR_TEMPLATES||!1,K=D.WHOLE_DOCUMENT||!1,ce=D.RETURN_DOM||!1,ye=D.RETURN_DOM_FRAGMENT||!1,ke=D.RETURN_TRUSTED_TYPE||!1,me=D.FORCE_BODY||!1,xe=D.SANITIZE_DOM!==!1,Z=D.SANITIZE_NAMED_PROPS||!1,Le=D.KEEP_CONTENT!==!1,Re=D.IN_PLACE||!1,x=D.ALLOWED_URI_REGEXP||Jc,He=D.NAMESPACE||rt,Y=D.CUSTOM_ELEMENT_HANDLING||{},D.CUSTOM_ELEMENT_HANDLING&&Me(D.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Y.tagNameCheck=D.CUSTOM_ELEMENT_HANDLING.tagNameCheck),D.CUSTOM_ELEMENT_HANDLING&&Me(D.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Y.attributeNameCheck=D.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),D.CUSTOM_ELEMENT_HANDLING&&typeof D.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Y.allowCustomizedBuiltInElements=D.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),re&&(G=!1),ye&&(ce=!0),Ne&&(L=Se({},[...$c]),$=[],Ne.html===!0&&(Se(L,Wc),Se($,Kc)),Ne.svg===!0&&(Se(L,Ji),Se($,Xi),Se($,Du)),Ne.svgFilters===!0&&(Se(L,Qi),Se($,Xi),Se($,Du)),Ne.mathMl===!0&&(Se(L,Zi),Se($,Gc),Se($,Du))),D.ADD_TAGS&&(L===I&&(L=Ua(L)),Se(L,D.ADD_TAGS,H)),D.ADD_ATTR&&($===z&&($=Ua($)),Se($,D.ADD_ATTR,H)),D.ADD_URI_SAFE_ATTR&&Se(Dn,D.ADD_URI_SAFE_ATTR,H),D.FORBID_CONTENTS&&(st===Pt&&(st=Ua(st)),Se(st,D.FORBID_CONTENTS,H)),Le&&(L["#text"]=!0),K&&Se(L,["html","head","body"]),L.table&&(Se(L,["tbody"]),delete q.tbody),D.TRUSTED_TYPES_POLICY){if(typeof D.TRUSTED_TYPES_POLICY.createHTML!="function")throw Sr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof D.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Sr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=D.TRUSTED_TYPES_POLICY,U=S.createHTML("")}else S===void 0&&(S=R2(f,a)),S!==null&&typeof U=="string"&&(U=S.createHTML(""));kt&&kt(D),de=D}},Ln=Se({},["mi","mo","mn","ms","mtext"]),wn=Se({},["foreignobject","desc","title","annotation-xml"]),Qt=Se({},["title","style","font","a","script"]),Ba=Se({},Ji);Se(Ba,Qi),Se(Ba,A2);let Mi=Se({},Zi);Se(Mi,k2);let df=function(D){let ie=A(D);(!ie||!ie.tagName)&&(ie={namespaceURI:He,tagName:"template"});let X=Lu(D.tagName),Be=Lu(ie.tagName);return _t[D.namespaceURI]?D.namespaceURI===Wt?ie.namespaceURI===rt?X==="svg":ie.namespaceURI===Oe?X==="svg"&&(Be==="annotation-xml"||Ln[Be]):!!Ba[X]:D.namespaceURI===Oe?ie.namespaceURI===rt?X==="math":ie.namespaceURI===Wt?X==="math"&&wn[Be]:!!Mi[X]:D.namespaceURI===rt?ie.namespaceURI===Wt&&!wn[Be]||ie.namespaceURI===Oe&&!Ln[Be]?!1:!Mi[X]&&(Qt[X]||!Ba[X]):!!(mt==="application/xhtml+xml"&&_t[D.namespaceURI]):!1},Ra=function(D){kr(t.removed,{element:D});try{D.parentNode.removeChild(D)}catch{D.remove()}},Fi=function(D,ie){try{kr(t.removed,{attribute:ie.getAttributeNode(D),from:ie})}catch{kr(t.removed,{attribute:null,from:ie})}if(ie.removeAttribute(D),D==="is"&&!$[D])if(ce||ye)try{Ra(ie)}catch{}else try{ie.setAttribute(D,"")}catch{}},oc=function(D){let ie,X;if(me)D=""+D;else{let vt=T2(D,/^[\r\n\t ]+/);X=vt&&vt[0]}mt==="application/xhtml+xml"&&He===rt&&(D=''+D+"");let Be=S?S.createHTML(D):D;if(He===rt)try{ie=new p().parseFromString(Be,mt)}catch{}if(!ie||!ie.documentElement){ie=R.createDocument(He,"template",null);try{ie.documentElement.innerHTML=Jt?U:Be}catch{}}let ut=ie.body||ie.documentElement;return D&&X&&ut.insertBefore(r.createTextNode(X),ut.childNodes[0]||null),He===rt?k.call(ie,K?"html":"body")[0]:K?ie.documentElement:ut},ic=function(D){return y.call(D.ownerDocument||D,D,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},mf=function(D){return D instanceof g&&(typeof D.nodeName!="string"||typeof D.textContent!="string"||typeof D.removeChild!="function"||!(D.attributes instanceof l)||typeof D.removeAttribute!="function"||typeof D.setAttribute!="function"||typeof D.namespaceURI!="string"||typeof D.insertBefore!="function"||typeof D.hasChildNodes!="function")},yu=function(D){return typeof i=="object"?D instanceof i:D&&typeof D=="object"&&typeof D.nodeType=="number"&&typeof D.nodeName=="string"},Mn=function(D,ie,X){E[D]&&E2(E[D],Be=>{Be.call(t,ie,X,de)})},sc=function(D){let ie;if(Mn("beforeSanitizeElements",D,null),mf(D))return Ra(D),!0;let X=H(D.nodeName);if(Mn("uponSanitizeElement",D,{tagName:X,allowedTags:L}),D.hasChildNodes()&&!yu(D.firstElementChild)&&(!yu(D.content)||!yu(D.content.firstElementChild))&&$t(/<[/\w]/g,D.innerHTML)&&$t(/<[/\w]/g,D.textContent))return Ra(D),!0;if(!L[X]||q[X]){if(!q[X]&&cc(X)&&(Y.tagNameCheck instanceof RegExp&&$t(Y.tagNameCheck,X)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(X)))return!1;if(Le&&!st[X]){let Be=A(D)||D.parentNode,ut=h(D)||D.childNodes;if(ut&&Be){let vt=ut.length;for(let Bt=vt-1;Bt>=0;--Bt)Be.insertBefore(b(ut[Bt],!0),C(D))}}return Ra(D),!0}return D instanceof s&&!df(D)||(X==="noscript"||X==="noembed")&&$t(/<\/no(script|embed)/i,D.innerHTML)?(Ra(D),!0):(re&&D.nodeType===3&&(ie=D.textContent,ie=gn(ie,B," "),ie=gn(ie,P," "),ie=gn(ie,w," "),D.textContent!==ie&&(kr(t.removed,{element:D.cloneNode()}),D.textContent=ie)),Mn("afterSanitizeElements",D,null),!1)},lc=function(D,ie,X){if(xe&&(ie==="id"||ie==="name")&&(X in r||X in $e))return!1;if(!(G&&!ae[ie]&&$t(_,ie))&&!(Q&&$t(O,ie))){if(!$[ie]||ae[ie]){if(!(cc(D)&&(Y.tagNameCheck instanceof RegExp&&$t(Y.tagNameCheck,D)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(D))&&(Y.attributeNameCheck instanceof RegExp&&$t(Y.attributeNameCheck,ie)||Y.attributeNameCheck instanceof Function&&Y.attributeNameCheck(ie))||ie==="is"&&Y.allowCustomizedBuiltInElements&&(Y.tagNameCheck instanceof RegExp&&$t(Y.tagNameCheck,X)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(X))))return!1}else if(!Dn[ie]&&!$t(x,gn(X,M,""))&&!((ie==="src"||ie==="xlink:href"||ie==="href")&&D!=="script"&&C2(X,"data:")===0&&pa[D])&&!(fe&&!$t(N,gn(X,M,"")))&&X)return!1}return!0},cc=function(D){return D.indexOf("-")>0},dc=function(D){let ie,X,Be,ut;Mn("beforeSanitizeAttributes",D,null);let{attributes:vt}=D;if(!vt)return;let Bt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:$};for(ut=vt.length;ut--;){ie=vt[ut];let{name:lt,namespaceURI:Oa}=ie;if(X=lt==="value"?ie.value:w2(ie.value),Be=H(lt),Bt.attrName=Be,Bt.attrValue=X,Bt.keepAttr=!0,Bt.forceKeepAttr=void 0,Mn("uponSanitizeAttribute",D,Bt),X=Bt.attrValue,Bt.forceKeepAttr||(Fi(lt,D),!Bt.keepAttr))continue;if(!he&&$t(/\/>/i,X)){Fi(lt,D);continue}re&&(X=gn(X,B," "),X=gn(X,P," "),X=gn(X,w," "));let mc=H(D.nodeName);if(lc(mc,Be,X)){if(Z&&(Be==="id"||Be==="name")&&(Fi(lt,D),X=Ae+X),S&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!Oa)switch(f.getAttributeType(mc,Be)){case"TrustedHTML":{X=S.createHTML(X);break}case"TrustedScriptURL":{X=S.createScriptURL(X);break}}try{Oa?D.setAttributeNS(Oa,lt,X):D.setAttribute(lt,X),qc(t.removed)}catch{}}}Mn("afterSanitizeAttributes",D,null)},gf=function D(ie){let X,Be=ic(ie);for(Mn("beforeSanitizeShadowDOM",ie,null);X=Be.nextNode();)Mn("uponSanitizeShadowNode",X,null),!sc(X)&&(X.content instanceof u&&D(X.content),dc(X));Mn("afterSanitizeShadowDOM",ie,null)};return t.sanitize=function(D){let ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X,Be,ut,vt;if(Jt=!D,Jt&&(D=""),typeof D!="string"&&!yu(D))if(typeof D.toString=="function"){if(D=D.toString(),typeof D!="string")throw Sr("dirty is not a string, aborting")}else throw Sr("toString is not a function");if(!t.isSupported)return D;if(se||Pe(ie),t.removed=[],typeof D=="string"&&(Re=!1),Re){if(D.nodeName){let Oa=H(D.nodeName);if(!L[Oa]||q[Oa])throw Sr("root node is forbidden and cannot be sanitized in-place")}}else if(D instanceof i)X=oc(""),Be=X.ownerDocument.importNode(D,!0),Be.nodeType===1&&Be.nodeName==="BODY"||Be.nodeName==="HTML"?X=Be:X.appendChild(Be);else{if(!ce&&!re&&!K&&D.indexOf("<")===-1)return S&&ke?S.createHTML(D):D;if(X=oc(D),!X)return ce?null:ke?U:""}X&&me&&Ra(X.firstChild);let Bt=ic(Re?D:X);for(;ut=Bt.nextNode();)sc(ut)||(ut.content instanceof u&&gf(ut.content),dc(ut));if(Re)return D;if(ce){if(ye)for(vt=T.call(X.ownerDocument);X.firstChild;)vt.appendChild(X.firstChild);else vt=X;return($.shadowroot||$.shadowrootmod)&&(vt=v.call(n,vt,!0)),vt}let lt=K?X.outerHTML:X.innerHTML;return K&&L["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&$t(Qc,X.ownerDocument.doctype.name)&&(lt=" +`+lt),re&&(lt=gn(lt,B," "),lt=gn(lt,P," "),lt=gn(lt,w," ")),S&&ke?S.createHTML(lt):lt},t.setConfig=function(D){Pe(D),se=!0},t.clearConfig=function(){de=null,se=!1},t.isValidAttribute=function(D,ie,X){de||Pe({});let Be=H(D),ut=H(ie);return lc(Be,ut,X)},t.addHook=function(D,ie){typeof ie=="function"&&(E[D]=E[D]||[],kr(E[D],ie))},t.removeHook=function(D){if(E[D])return qc(E[D])},t.removeHooks=function(D){E[D]&&(E[D]=[])},t.removeAllHooks=function(){E={}},t}var _e=Zc();var O2=vu.alert;m();m();var Xc={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",curentPlan:"\u5F53\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52A8\u7EED\u671F",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",sponsorLabel:"$1 \u8D77\u8D5E\u52A9\u5F00\u53D1\u8005",help:"\u5E2E\u52A9",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D\uFF0C\u518D\u70B9\u51FB\u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D\u5373\u53EF\u8BBE\u7F6E",browserShortcutsNoteForChrome:"\u7C7BChrome \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762\uFF0C\u5728`\u7BA1\u7406\u5FEB\u6377\u952E`\u9762\u677F(`chrome://extensions/shortcuts`)\u8BBE\u7F6E\uFF0C\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8DF3\u8F6C\u5230\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E\u683C\u5F0F\u4E3A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1: \u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1 & PDF\u6587\u6863\u7FFB\u8BD1","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7F51\u9875\u53CC\u8BED\u7FFB\u8BD1\u6269\u5C55\uFF0C\u540C\u65F6\u652F\u6301 PDF \u7FFB\u8BD1\uFF0C\u53CC\u8BED Epub \u7535\u5B50\u4E66\u5236\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u817E\u8BAF\u7FFB\u8BD1\u7B49\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\uFF0C\u514D\u8D39\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8BD1\u5E76\u9690\u85CF\u539F\u6587/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.toggleTranslationMask":"\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.donateContext":"\u4E86\u89E3\u8D5E\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5219\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875(\u4EC5\u8BD1\u6587)/\u663E\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7","fingers.0":"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478",mouseHoldKey:"+ {key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoverHoldKey:"\u9F20\u6807\u60AC\u505C\u540C\u65F6\u6309\u4E0B\u5FEB\u6377\u952E\u7FFB\u8BD1\u6BB5\u843D","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u6587\u6863",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",goAdvancedSettings:"\u53BB\u8FDB\u9636\u8BBE\u7F6E\u9875",goAdvancedInterfaceSettings:"\u53BB\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u8BBE\u7F6E\u9875\u9762",advanced:"\u8FDB\u9636\u8BBE\u7F6E",advancedDescription:"\u4E00\u822C\u65E0\u9700\u8BBE\u7F6E\uFF0C\u4FDD\u6301\u9ED8\u8BA4\u5373\u53EF\u3002\u4EC5\u5BF9\u4E8E\u66F4\u4E13\u4E1A\u7684\u7528\u6237\uFF0C\u63D0\u4F9B\u66F4\u4E2A\u6027\u5316\u7684\u8BBE\u7F6E\u9879\u3002",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00","display both the original text and the translation":"\u540C\u65F6\u663E\u793A\u539F\u6587\u548C\u8BD1\u6587","keyboard shortcuts":"\u952E\u76D8\u5FEB\u6377\u952E",modify:"\u4FEE\u6539\u5FEB\u6377\u952E",reset:"\u91CD\u7F6E",close:"\u5173\u95ED",homepage:"\u4E3B\u9875",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",changeToOnlyTranslationMode:"\u5207\u6362\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u5207\u6362\u4E3A\u53CC\u8BED\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",unknownError:"\u672A\u77E5\u9519\u8BEF",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",needActionForOptions:"(\u9700\u8BBE\u7F6E)",translationEngine:"\u5F15\u64CE\u9009\u9879",sourceLanguage:"\u539F\u6587\u8BED\u8A00",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",forThisSite:"\u5F53\u524D\u7F51\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1 {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8BD1 {language}",alwaysTranslateSomeSite:"\u603B\u662F\u7FFB\u8BD1 {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8BD1 {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u6DFB\u52A0",default:"\u9ED8\u8BA4",forThisLanguage:"\u9488\u5BF9\u8BE5\u8BED\u8A00\uFF1A","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91","translate other languages into specific language":"\u5C06\u5176\u4ED6\u8BED\u8A00\u7FFB\u8BD1\u4E3A\u4F60\u8BBE\u7F6E\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1",language:"\u8BED\u8A00","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",Error:"\u9519\u8BEF",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",interface:"\u754C\u9762\u8BBE\u7F6E",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8BD1\u9875\u9762\u6807\u9898","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1",enableUserscriptPagePopup:"\u5728\u9875\u9762\u4E0A\u663E\u793A\u60AC\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528\u5FEB\u6377\u952E/{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8BD1\u6587\u6837\u5F0F",currentUrl:"\u5F53\u524D\u7F51\u5740",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664","languages.auto":"\u81EA\u52A8\u68C0\u6D4B",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",upload:"\u4E0A\u4F20",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",download:"\u4E0B\u8F7D",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",deleteFail:"\u5220\u9664\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",backupToCloudDescription:"\u624B\u52A8\u4E0A\u4F20\u6216\u6062\u590D\u5907\u4EFD\u6587\u4EF6\uFF0C\u6700\u591A\u5141\u8BB83\u4E2A\u4E0D\u540C\u7684\u5907\u4EFD",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",updatedAt:"\u66F4\u65B0\u4E8E {date}",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u9891\u9053",joinTelegramChannel:"\u5173\u6CE8 Telegram \u9891\u9053\u83B7\u53D6\u6700\u65B0\u66F4\u65B0",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",autoSync:"\u81EA\u52A8\u5B9A\u65F6\u540C\u6B65",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863","edit border color":"\u4FEE\u6539\u8FB9\u6846\u989C\u8272",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",enableSubtitle:"\u5F00\u542F\u5B57\u5E55\u7FFB\u8BD1",enableSubtitleDescription:"\u9488\u5BF9 youtube \u7B49\u7F51\u7AD9\u7684\u5B57\u5E55\u533A\u57DF\u5F00\u542F\u7FFB\u8BD1",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",enableSearchEnhancement:"\u542F\u7528\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A",enableSearchEnhancementDescription:"\u5F00\u542F\u540E\uFF0C\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\u793E\u533A\uFF09\u53F3\u8FB9\u680F\u81EA\u52A8\u663E\u793A\u5BF9\u5E94\u82F1\u6587\u5173\u952E\u8BCD\u7684\u201C\u8C37\u6B4C\u65B0\u95FB\u201D\u641C\u7D22\u7ED3\u679C\u3002",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerMinute":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u5206\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u8350\uFF09, \u5C06\u4F1A\u5728\u5355\u72EC\u4F5C\u4E3A\u4E00\u6BB5\u53D1\u9001\u7ED9 OpenAI","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740",enabledExtension:"\u542F\u7528\u6269\u5C55",clickToDisableExtension:"\u70B9\u51FB\u7981\u7528\u6269\u5C55",clickToEnableExtension:"\u70B9\u51FB\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",modifyMouseHoverKey:"\u4FEE\u6539\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u8BBE\u7F6E",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",disableTint:"* \u4F60\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u542F\u7528\u3002",searchEnhancementNotes:"\u6211\u4EEC\u53D1\u73B0\uFF0C\u4E2D\u6587\u5173\u952E\u8BCD\u548C\u82F1\u6587\u5173\u952E\u8BCD\u7684\u65B0\u95FB\u7ED3\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u542F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u529F\u80FD\u540E\uFF0C\u6211\u4EEC\u4F1A\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\u7F51\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52A8\u7528\u82F1\u6587\u4E3A\u4F60\u641C\u7D22\u540C\u6837\u7684\u5173\u952E\u8BCD\u5E76\u5C55\u793A\u5728\u53F3\u4FA7\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8BE5\u529F\u80FD\u7684\u8BDD\uFF0C\u53EF\u4EE5\u9009\u62E9\u7981\u7528\u5B83\u3002",option:"\u8BBE\u7F6E",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",needLoginAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u81EA\u5B9A\u4E49)",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",onetime_7day:"7 \u5929\u4F53\u9A8C\u5305",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradePlan:"\u70B9\u6B64\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL \u548C OpenAI \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8BD1",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u8BBE\u7F6E\u5176\u4ED6\u5FEB\u6377\u952E\u6765\u89E6\u53D1\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1"};var e4={nologin:"\u672A\u767B\u9304",login:"\u767B\u9304",manageAccount:"\u7BA1\u7406\u8CEC\u6236",logout:"\u9000\u51FA",curentPlan:"\u7576\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u671F",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u64CA\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u8AAA\u660E",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u9644\u52A0\u5143\u4EF6\u7BA1\u7406\u9801\u9762 \u300Cabout:addons\u300D\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u5716\u793A\u300D\uFF0C\u518D\u9EDE\u9078\u300C\u7BA1\u7406\u64F4\u5145\u5957\u4EF6\u5FEB\u901F\u9375\u300D\u5373\u53EF\u8A2D\u5B9A",browserShortcutsNoteForChrome:"Chromium \u6838\u5FC3\u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u64F4\u5145\u529F\u80FD\u7BA1\u7406\u9801\u9762\uFF0C\u5728\u300C\u9375\u76E4\u5FEB\u901F\u9375\u300D\u9801\u9762(chrome://extensions/shortcuts)\u8A2D\u5B9A\uFF0C\u9EDE\u9078\u4E0B\u65B9\u6309\u9215\u524D\u5F80\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u901F\u9375\u683C\u5F0F\u70BA\uFF1A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F: \u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F & PDF\u6587\u6A94\u7FFB\u8B6F","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7DB2\u9801\u96D9\u8A9E\u7FFB\u8B6F\u64F4\u5C55\uFF0C\u540C\u6642\u652F\u6301 PDF \u7FFB\u8B6F\uFF0C\u96D9\u8A9E Epub \u96FB\u5B50\u66F8\u88FD\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u9A30\u8A0A\u7FFB\u8B6F\u7B49\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF0C\u514D\u8CBB\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8B6F\u4E26\u96B1\u85CF\u539F\u6587/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.toggleTranslationMask":"\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.donateContext":"\u4E86\u89E3\u8D0A\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u5247\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u6642\u89F8\u78B0\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801(\u50C5\u8B6F\u6587)/\u986F\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304","fingers.0":"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478",mouseHoldKey:"+ {key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u6377\u9375(\u6253\u958B\u8A2D\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoverHoldKey:"\u9F20\u6A19\u6ED1\u904E\u540C\u6642\u6309\u4E0B X \u9375\u7FFB\u8B6F\u6BB5\u843D","mouse-translate":"\u9F20\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",goAdvancedSettings:"\u524D\u5F80\u9032\u968E\u8A2D\u5B9A\u9801\u9762",goAdvancedInterfaceSettings:"\u524D\u5F80\u81EA\u8A02\u8A2D\u5B9A\u9801\u9762",advanced:"\u9032\u968E\u8A2D\u5B9A",advancedDescription:"\u6B63\u5E38\u60C5\u6CC1\u7121\u9700\u8A2D\u5B9A\uFF0C\u4FDD\u6301\u9810\u8A2D\u5373\u53EF\u3002\u50C5\u91DD\u5C0D\u66F4\u5C08\u696D\u7684\u4F7F\u7528\u8005\uFF0C\u63D0\u4F9B\u66F4\u500B\u4EBA\u5316\u7684\u8A2D\u5B9A\u9805\u76EE\u3002",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00","display both the original text and the translation":"\u540C\u6642\u986F\u793A\u539F\u6587\u548C\u8B6F\u6587","keyboard shortcuts":"\u9375\u76E4\u5FEB\u901F\u9375",modify:"\u8B8A\u66F4\u5FEB\u901F\u9375",reset:"\u91CD\u8A2D",close:"\u95DC\u9589",homepage:"\u9996\u9801",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",changeToOnlyTranslationMode:"\u5207\u63DB\u70BA\u50C5\u986F\u793A\u8B6F\u6587",changeToDualTranslationMode:"\u5207\u63DB\u70BA\u96D9\u8A9E\u7FFB\u8B6F",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:"\u672A\u77E5\u7684\u932F\u8AA4",canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u9078\u9805",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",needActionForOptions:"(\u9700\u8A2D\u5B9A)",translationEngine:"\u5F15\u64CE\u9078\u9805",sourceLanguage:"\u539F\u6587\u8A9E\u8A00",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",forThisSite:"\u7576\u524D\u7DB2\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8B6F {language}",alwaysTranslateSomeSite:"\u7E3D\u662F\u7FFB\u8B6F {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8B6F {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u65B0\u589E",default:"\u9810\u8A2D",forThisLanguage:"\u91DD\u5C0D\u8A72\u8A9E\u8A00\uFF1A","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F","translate other languages into specific language":"\u5C07\u5176\u5B83\u8A9E\u8A00\u7FFB\u8B6F\u70BA\u4F60\u8A2D\u5B9A\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9",language:"\u8A9E\u8A00","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",Error:"\u932F\u8AA4",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",interface:"\u4ECB\u9762\u8A2D\u5B9A",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65",syncToAccount:"\u540C\u6B65\u5230\u8CEC\u6236",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u8CEC\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u8A2D\u5099\u4E4B\u9593\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u8CEC\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u8CEC\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8B6F","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9E\u99AC\u905C\u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8B6F\u9801\u9762\u6A19\u984C","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F",enableUserscriptPagePopup:"\u5728\u9801\u9762\u4E0A\u986F\u793A\u61F8\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528\u5FEB\u901F\u9375/{touch}\u518D\u6B21\u986F\u793A\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5EFA\u8B70\u5C07\u672C\u8A2D\u5B9A\u9801\u9762\u52A0\u5165\u81F3\u6211\u7684\u6700\u611B","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8B6F\u6587\u6A23\u5F0F",currentUrl:"\u76EE\u524D\u7DB2\u5740",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6E96\u3002",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",upload:"\u4E0A\u50B3",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",download:"\u4E0B\u8F09",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",deleteFail:"\u522A\u9664\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",backupToCloudDescription:"\u624B\u52D5\u4E0A\u50B3\u6216\u9084\u539F\u5099\u4EFD\u6A94\u6848\uFF0C\u6700\u591A\u5141\u8A31 3 \u500B\u4E0D\u540C\u7684\u5099\u4EFD",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",updatedAt:"\u66F4\u65B0\u65BC {date}",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u4EEC\u7684<3>Twitter\uFF0C<4>Telegram \u983B\u9053\u4EE5\u53CA\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u90F5\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u983B\u9053",joinTelegramChannel:"\u95DC\u6CE8 Telegram \u983B\u9053\u77AD\u89E3\u66F4\u65B0\u8CC7\u8A0A",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",autoSync:"\u81EA\u52D5\u5B9A\u6642\u540C\u6B65",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6","edit border color":"\u8B8A\u66F4\u908A\u6846\u8272\u5F69",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",enableSubtitle:"\u958B\u555F\u5B57\u5E55\u7FFB\u8B6F",enableSubtitleDescription:"\u91DD\u5C0D youtube \u7B49\u7DB2\u7AD9\u7684\u5B57\u5E55\u5340\u57DF\u958B\u555F\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",enableSearchEnhancement:"\u958B\u555F\u641C\u7D22\u589E\u5F37",enableSearchEnhancementDescription:"\u4E2D\u6587\u641C\u7D22\u8C37\u6B4C\u6703\u5728\u53F3\u908A\u51FA\u73FE\u82F1\u6587\u7248\u8C37\u6B4C\u65B0\u805E",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerMinute":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u5206\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u4EFD\u50B3\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u85A6\uFF09, \u5C07\u6703\u5728\u55AE\u7368\u4F5C\u70BA\u4E00\u6BB5\u767C\u9001\u7D66 OpenAI","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u50B3\u9001\u767C\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",clickToDisableExtension:"\u9EDE\u9078\u505C\u7528\u5957\u4EF6",clickToEnableExtension:"\u9EDE\u9078\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u9F20\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u7F6E\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u5B57\u7B26\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8B58\u5225\u70BA\u89F8\u767C\u5B57\u7B26\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u7981\u7528\u78BA\u8A8D",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",disableTint:"* \u60A8\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u555F\u7528\u3002",searchEnhancementNotes:"\u6211\u5011\u767C\u73FE\uFF0C\u4E2D\u6587\u95DC\u9375\u8A5E\u548C\u82F1\u6587\u95DC\u9375\u8A5E\u7684\u65B0\u805E\u7D50\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u555F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u4FE1\u606F\u589E\u5F37\u529F\u80FD\u5F8C\uFF0C\u6211\u5011\u6703\u5728\u652F\u6301\u7684\u7DB2\u7AD9\uFF08\u8C37\u6B4C\u65B0\u805E\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u95DC\u9375\u8A5E\uFF09\uFF0C\u96EA\u7403\uFF0C\u6771\u65B9\u8CA1\u5BCC\u7DB2\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52D5\u7528\u82F1\u6587\u70BA\u4F60\u641C\u7D22\u540C\u6A23\u7684\u95DC\u9375\u8A5E\u4E26\u5C55\u793A\u5728\u53F3\u5074\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8A72\u529F\u80FD\u7684\u8A71\uFF0C\u53EF\u4EE5\u9078\u64C7\u7981\u7528\u5B83\u3002",option:"\u9078\u9805",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL \u548C OpenAI \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8B6F",currentAccount:"\u7576\u524D\u8CEC\u6236"};var t4={nologin:"Not logged in",login:"Login",manageAccount:"Manage Account",logout:"Logout",curentPlan:"Current Plan",endAt:"Expires",endAuto:"Auto Renew",lineBreakMaxTextCount:"Maximum number of characters allowed per sentence after line break","translate-pdf":"Click to translate PDF","noSupportTranslate-pdf":"The script is not supported, please use a plugin.","translate-firefox-local-pdf":"Click to upload PDF",enableLineBreak:"Whether to turn on automatic line wrapping for long paragraphs",sponsorLabel:"Sponsoring developers from $1 (monthly or one-time)",help:"Help",browserShortcutsNoteForFirefox:`To modify the shortcut key in Firefox browser, you need to open the extension management page 'about: addons', then click "Settings", and then click "Management shortcut key" to set it`,browserShortcutsNoteForChrome:"To modify the shortcut key in Chrome browser, you need to open the extension management page` chrome://extensions/shortcuts `) Settings, click the button below to jump to the shortcut key management page.",browserShortcutsSucks:"Please enter the shortcut key manually in the format:",enableLineBreakDescription:"After opening, a line break will be inserted at the end of each sentence in a long paragraph for easy reading","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate: Web Page&PDF Translation","browser.brandDescription":"Bilingual web page translation, also supports PDF translation, bilingual Epub eBook translation, free to use.","browser.toggleTranslatePage":"Toggle Translate Page","browser.toggleTranslateTheWholePage":"Toggle Translate the Whole Page","browser.toggleOnlyTransation":"Toggle Translate and Hide Original Text","browser.toggleTranslateToThePageEndImmediately":"Toggle Translate to the Bottom of the Page Immediately","browser.toggleTranslateTheMainPage":"Toggle Translate the Main Page","browser.openOptionsPage":"Open Settings Page","browser.toggleTranslationMask":"Toggle translation mask style","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-book","browser.openEbookBuilder":"Make Dual EPUB ebook","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.donateContext":"Sponsor Benefits","browser.translateLocalSubtitleFile":"Translate Subtitle File",confirmResetConfig:"Are you sure you want to reset the settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Create right button menu",toggleBeta:"Enable Beta experimental features",betaDescription:"Enable features that are still experimental, and translation services that are in testing. Join the <1>Telegram group to learn more.",translationLineBreakSettingDescription:"The always line break feature is suitable for layouts with less content, making the layout more neat and tidy. (Use smart line breaks for long paragraphs with more content (more than {count} characters) for saving space)",tempTranslateDomainTitle:"Open the translation time temporarily",tempTranslateDomainDescription:"When a page is translated manually, turn it temporarily on as automatic translation",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",toggleTranslatePageWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide translation display",toggleTranslationMaskWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide the blur effect of the translation",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"Multi-finger touch to show/hide only translation display",addUrlDescription:"The domain name is available and wildcard is supported e.g.: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import configuration from file",export:"Export to file",toggleDebug:"Print debug logs on the console","fingers.0":"Close","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch",mouseHoldKey:"+ {key} translate this paragraph",mouseHoldKeyAuto:"Translate the paragraph directly",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate this paragraph",mouseHoverHoldKey:"Mouse over and press X key to translate paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"All settings reset successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",goAdvancedSettings:"Go to Advanced Settings Page",goAdvancedInterfaceSettings:"Go to Advanced Custom Settings Page",advanced:"Advanced",advancedDescription:"Normally no settings are needed, keep the default. More personalized settings are provided for professional users only.",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"Translate to the bottom of the page immediately after opening the page?",feedback:"Feedback",toggleTranslatePage:"Toggle Translate",translateToThePageEndImmediatelyDescription:"Enabled will translate from the top to the bottom of the page immediately after opening. Disable will translate while reading. (Not recommended to enable)","translate all areas of the page":"Whether to translate all areas of the web page",translationAreaDescription:"When enabled, all areas of the entire web page will be translated. Disabled will use the default smart recognition and translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Directly translate the number of characters in front of the page without waiting to scroll to the visible area","interface language":"Interface language","display both the original text and the translation":"Display both the original text and the translation","keyboard shortcuts":"Keyboard shortcuts",modify:"Edit",reset:"Reset",close:"Close",homepage:"Home Page",more:"More",moreOptions:"Expand more custom settings",translateTheWholePage:"Translate the whole page area",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Dual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"Main areas of intelligent translation","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly implement the interface of the Greasemonkey extension, please use another browser that <1>supports the Greasemonkey extension such as (Firefox Nightly version)",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:"Unknown Error",canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha enabled successfully",disableAlphaSuccess:"Alpha has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(to set up)",goSettings:"to set up",needActionForOptions:"(need to set)",translationEngine:"Engine Options",sourceLanguage:"Original language",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",forThisSite:"Site:",alwaysTranslateSomeLanguage:"Always translate {language}",neverTranslateSomeLanguage:"Never translate {language}",alwaysTranslateSomeSite:"Always translate {hostname}",neverTranslateSomeSite:"Never translate {hostname}",alwaysTranslateSomeSiteOrWildSite:"Always translate this site",alwaysTranslateSomePage:"Always translate this page",add:"Add",default:"Default",forThisLanguage:"For This Language:","add url":"Add URL",edit:"Edit","translate other languages into specific language":"Translate other languages into the language you set","select translation service":"Select a translation service",language:"Language","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",Error:"Error",allowCacheTranslations:"Enable local translation caching (reduce translation requests for duplicate paragraphs)","translation display":"Translation display style","select diplay style":"Please refer to the following examples",interface:"Interface Settings",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dashed underline","translationTheme.dotted":"Dotted Underline","translationTheme.dashedBorder":"Dashed Border","translationTheme.solidBorder":"Dashed Border","translationTheme.underline":"Straight underline","translationTheme.mask":"Blur effect","translationTheme.opacity":"Opacity effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weakening","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dashed underline","translationTheme.nativeDashed":"System Dash Underline","translationTheme.nativeDotted":"System Dotted Underline","translationTheme.nativeUnderline":"System Straight Line Underline","translationTheme.wavy":"Squiggle","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeeplX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"Translate page title","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped",enableUserscriptPagePopup:"Always show Popup windows on the page",enableUserscriptPagePopupDescription:"Three-finger touch to show the Popup.","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",currentUrl:"Current URL",confirm:"Save",cancel:"Cancel",delete:"Delete","languages.auto":"Detect Language",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",authFail:"Authorization Failed",syncTitle:"Please select a file operation",import_hint:"Import",upload:"Upload",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",download:"Download",importSuccess:"Upload Success",importFail:"Import Failed",deleteFail:"Delete Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",backupToCloudDescription:"Upload or restore backup files manually, up to 3 different backups",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",updatedAt:"Updated at {date}",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. You can choose to subscribe to <6>Pro membership to use the out-of-the-box DeepL and OpenAI translation.

You can also follow out <3>Twitter, <4>Telegram Channel, and <5>Email Subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free and we hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. ",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",qqCommunities:"QQ Channel",joinTelegramChannel:"Subscribe to our Telegram channel to get the latest updates",feedbackAndJoin:"Feedback",autoSync:"Auto-Time Sync",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization","edit border color":"Edit border color",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",enableSubtitle:"enableSubtitleTranslation",enableSubtitleDescription:"Enable translations for subtitle areas on sites like youtube",isTranslateTitleDescription:"When enabled, the page title will be translated",enableSearchEnhancement:"Enable Search Enhancement",enableSearchEnhancementDescription:'After enabling, the right sidebar will automatically display "Google News" search results for corresponding English keywords on supported websites (such as Google News, Google Search (partial keywords), Xueqiu, East Money, Futu, Tiger Community).',verifyService:"Verify service",verified:"Successful","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerMinute":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next minute. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"Requests exceed this limit will be queued until the next seconds.","description.prompt":"Send as a user to OpenAI conversation, where {{text}} indicates the text of the paragraph,{{from}} indicates the language of the paragraph,{{to}} indicates the target language, you can omit {{text}}, if so, it'll be sent as a separated message","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"Send the conversation to OpenAI as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the original language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"Default is\uFF1Ageneral. Only set up if there is an API console open domain translation, support fields see <1>Here ","field.scene":"Scene","description.scene":"Default is\uFF1Ageneral. Only set up if there is an API console open Machine Translation Professional, support fields see<1>Here","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please provide a URL with the specific path.",enabledExtension:"Enable extensions",clickToDisableExtension:"Click to disable extension",clickToEnableExtension:"Click to enable the extension",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter customization content",inputOptions:"Writing",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter for translating part of the input box.",inputStartingTriggerKeyDescription:"When you don't need to translate the entire input box, the delimiter allows you to only translate the portion from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means only translating the portion from {startingKey}ja to the end of the input box.",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting is no prefix required, the partial text translation function of the input box cannot be used temporarily.",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Start the translation by quickly pressing 3 times {trailingKey}.",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time (milliseconds) for the input to end the combo trigger",spaceKey:"",noneKey:"Translate the entire text box without prefixes",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement in the following URL",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",clickToSeeQuickDemo:"Click to expand the 30s tutorial video",inputHelperInfo:`Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001". -Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.`,reloadCurrentPage:"Please refresh the current page before starting translation",noLocalFilePermissionForPDF:"No permission to read local files. Please click the button above and upload the local file.",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate the current page",retryAllParagraphs:"Retry all paragraphs",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Noops, something went wrong",disableConfirm:"Search Enhancement Settings",disableOnce:"Disable Once",disableGlobal:"Disable Forever",disableTint:"* You can re-enable in {option}.",searchEnhancementNotes:"We have discovered notable disparities in news results between Chinese and English keywords. By activating the immersive translation Bilingual Display Enhancement feature, we will automatically search for equivalent English keywords and display them on the right side of supported websites (e.g., Google News, Google Search (partial keywords), xueqiu, East Money, Futu, Tiger). You can disable this feature if you don't need it.",option:"Settings",saveSettings:"Save",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"Enable quick press 3 times {trailingKey}, directly translate the entire input box to {inputTargetLanguage}.",enableInputTranslationWithoutTriggerKeyDescription:"To specify the target language, please add a language code at the beginning, such as: ja Hello world",mouseHoverShortcutPlaceholder:"e.g. Shift",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",needLoginAction:"(Premium or custom)",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",daily:"Daily Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",profile:"Profile",billing:"Billing",onetime_7day:"7-day Trial Pack",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt} and will not auto-renew",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly pro membership",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"Current plan: {plan}, will expire on {endAt}, will not auto-renew after expiration.
<1>Enable consecutive annual plan",upgradePlan:"Click here to upgrade to Pro membership",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",upgradeToPro:"Upgrade to Pro","popup.openPro":"Enjoy unrestricted access to DeepL and OpenAI translations after upgrading to Pro Membership. Click here to upgrade","popup.openProForPro":"You are a Pro member, you can directly use DeepL and OpenAI translations",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You have just triggered the immersive translate of the input box by quickly tapping the space key 3 times. The content of the input box will be translated into the default target language.

If this was a mistake, don't worry. You can choose to disable it this time or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show again",disableInputTranslationTips:"* You can also set other shortcuts in {option}, {learnMore}.",learnMore:"Learn more",continueEnalbeInputTranslation:"Continue to enable input translation"};var j2=[{code:"zh-CN",messages:Xc},{code:"zh-TW",messages:e4},{code:"en",messages:t4}];var Fu="immersiveTranslateBingGlobalState",Ot={};for(let e of j2)Ot[e.code]=e.messages;var fa="Immersive Translate",J="immersive-translate";var ge="immersiveTranslate";var a4=ge+"GoogleAccessToken",r4=ge+"AuthFlow";var U2=ge+"AuthState",Pu=ge+"IframeMessage",iE=ge+"WaitForRateLimit",_u=ge+"DocumentMessageAsk",yt=ge+"DocumentMessageTellThirdParty",Bu=ge+"showError",u4=ge+"DocumentMessageThirdPartyTell",o4=ge+"DocumentMessageEventUpload",Ru=ge+"DocumentMessageHandler",z2=`${ge}Container`,i4=`${ge}SpecifiedContainer`,Wn="buildinConfig",Dr="localConfig",ns="openOptionsPage",as="openAboutPage";var rs="openEbookViewer",us="openEbookBuilder";var Ou=`${ge}PageTranslatedStatus`,sE=`${ge}PageUrlChanged`,$n=`${ge}ReceiveCommand`,s4=ge+"LastUseMouseHoverTime",os=ge+"LastUseInputTime",fn=ge+"LastUseManualTranslatePageTime",lE=`${ge}PopupReceiveMessage`,H2="immersivetranslate.com",q2="config.immersivetranslate.com",cE=`https://${H2}/`,Lr=`https://${q2}/default_config.json`,dE=`${ge}Mark`,Mr="immersiveTranslateEffect",It=`${ge}Root`,mE=`data-${J}-effect`,An=`data-${J}-translation-element-mark`,l4=`${ge}TranslationElementMark`,gE=`${ge}TranslatedMark`,pE=`${ge}ParagraphId`,c4=`${ge}LoadingId`,is=`data-${J}-loading-id`,d4=`${ge}ErrorId`,Iu=`data-${J}-error-id`,W2=`${ge}AtomicBlockMark`,m4=`${ge}ExcludeMark`,fE=`data-${J}-exclude-mark`,$2=`${ge}StayOriginalMark`,hE=`${ge}PreWhitespaceMark`,Nu=`${ge}InlineMark`,g4=`${ge}BlockMark`,bE=`${ge}Left`,yE=`${ge}Right`,xE=`${ge}Width`,EE=`${ge}Height`,TE=`${ge}Top`,CE=`${ge}FontSize`,Fr="lastRunTime",wE=`${ge}GlobalStyleMark`,ha=["@","#"],ju=" --- ",p4=` -`,$t=`${J}-target-wrapper`,vE=`${J}-pdf-target-container`,f4=`${J}-target-inner`,AE=`${J}-source-wrapper`,ss=`${J}-target-translation-block-wrapper`,kE=`${J}-root-translation-theme`,Ua=`${ge}RootTranslationTheme`,h4=`${J}-target-translation-vertical-block-wrapper`,SE=`${J}-target-translation-pdf-block-wrapper`,b4=`${J}-target-translation-pre-whitespace`,ls=`${J}-target-translation-inline-wrapper`;var y4={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]},Xt=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","ru","ar","it","ms","id","vi","af","th","ur","yue","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","nl","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu"],x4={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Detect Language",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese",zu:"Zulu","":"All Languages"},E4={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B\u8BED\u8A00",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00"},T4={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C\u8A9E\u8A00",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00"};var C4=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/"];var Uu="zh-CN";var n4=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],Bn={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},deepl:{name:"DeepL",homepage:"https://www.deepl.com/translator",docUrl:"https://immersivetranslate.com/docs/services/deepL/",providers:[{name:"pro",nameKey:"deepLProName",descriptionKey:"deepLProDescription",descriptionKeyForNormal:"deeplProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"deepLCustomName",descriptionKey:"deepLCustomDescription",descriptionLink1:"https://www.deepl.com/translator",descriptionLink2:"https://immersivetranslate.com/docs/services/deepL/"}],allProps:[{name:"authKey",providers:["custom"],label:"Auth Key",required:!0,type:"password"}]},openai:{name:"Open AI",homepage:"https://openai.com/api/",docUrl:"https://immersivetranslate.com/docs/services/openai/",providers:[{name:"pro",nameKey:"openaiProName",descriptionKey:"openaiProDescription",descriptionKeyForNormal:"openaiProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"openaiCustomName",descriptionKey:"openaiCustomDescription",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password"},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"openai-model-select",default:"gpt-3.5-turbo-0613",options:[{providers:["custom","pro"],label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{providers:["custom","pro"],label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{providers:["custom"],label:"gpt-4",value:"gpt-4"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.limitPerSecond",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.openai.com/v1/chat/completions",descriptionKey:"description.apiUrl",optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"text",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.`,reloadCurrentPage:"Please refresh the current page before starting translation",noLocalFilePermissionForPDF:"No permission to read local files. Please click the button above and upload the local file.",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate the current page",retryAllParagraphs:"Retry all paragraphs",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Noops, something went wrong",disableConfirm:"Search Enhancement Settings",disableOnce:"Disable Once",disableGlobal:"Disable Forever",disableTint:"* You can re-enable in {option}.",searchEnhancementNotes:"We have discovered notable disparities in news results between Chinese and English keywords. By activating the immersive translation Bilingual Display Enhancement feature, we will automatically search for equivalent English keywords and display them on the right side of supported websites (e.g., Google News, Google Search (partial keywords), xueqiu, East Money, Futu, Tiger). You can disable this feature if you don't need it.",option:"Settings",saveSettings:"Save",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"Enable quick press 3 times {trailingKey}, directly translate the entire input box to {inputTargetLanguage}.",enableInputTranslationWithoutTriggerKeyDescription:"To specify the target language, please add a language code at the beginning, such as: ja Hello world",mouseHoverShortcutPlaceholder:"e.g. Shift",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",needLoginAction:"(Premium or custom)",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",daily:"Daily Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",profile:"Profile",billing:"Billing",onetime_7day:"7-day Trial Pack",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt} and will not auto-renew",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly pro membership",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"Current plan: {plan}, will expire on {endAt}, will not auto-renew after expiration.
<1>Enable consecutive annual plan",upgradePlan:"Click here to upgrade to Pro membership",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",upgradeToPro:"Upgrade to Pro","popup.openPro":"Enjoy unrestricted access to DeepL and OpenAI translations after upgrading to Pro Membership. Click here to upgrade","popup.openProForPro":"You are a Pro member, you can directly use DeepL and OpenAI translations",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You have just triggered the immersive translate of the input box by quickly tapping the space key 3 times. The content of the input box will be translated into the default target language.

If this was a mistake, don't worry. You can choose to disable it this time or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show again",disableInputTranslationTips:"* You can also set other shortcuts in {option}, {learnMore}.",learnMore:"Learn more",continueEnalbeInputTranslation:"Continue to enable input translation"};var U2=[{code:"zh-CN",messages:Xc},{code:"zh-TW",messages:e4},{code:"en",messages:t4}];var Mu="immersiveTranslateBingGlobalState",Ot={};for(let e of U2)Ot[e.code]=e.messages;var fa="Immersive Translate",J="immersive-translate";var ge="immersiveTranslate";var a4=ge+"GoogleAccessToken",r4=ge+"AuthFlow";var z2=ge+"AuthState",Fu=ge+"IframeMessage",iE=ge+"WaitForRateLimit",Pu=ge+"DocumentMessageAsk",yt=ge+"DocumentMessageTellThirdParty",_u=ge+"showError",u4=ge+"DocumentMessageThirdPartyTell",o4=ge+"DocumentMessageEventUpload",Bu=ge+"DocumentMessageHandler",H2=`${ge}Container`,i4=`${ge}SpecifiedContainer`,Wn="buildinConfig",Dr="localConfig",ns="openOptionsPage",as="openAboutPage";var rs="openEbookViewer",us="openEbookBuilder";var Ru=`${ge}PageTranslatedStatus`,sE=`${ge}PageUrlChanged`,$n=`${ge}ReceiveCommand`,s4=ge+"LastUseMouseHoverTime",os=ge+"LastUseInputTime",fn=ge+"LastUseManualTranslatePageTime",lE=`${ge}PopupReceiveMessage`,q2="immersivetranslate.com",W2="config.immersivetranslate.com",cE=`https://${q2}/`,Lr=`https://${W2}/default_config.json`,dE=`${ge}Mark`,Mr="immersiveTranslateEffect",It=`${ge}Root`,mE=`data-${J}-effect`,An=`data-${J}-translation-element-mark`,l4=`${ge}TranslationElementMark`,gE=`${ge}TranslatedMark`,pE=`${ge}ParagraphId`,c4=`${ge}LoadingId`,is=`data-${J}-loading-id`,d4=`${ge}ErrorId`,Ou=`data-${J}-error-id`,$2=`${ge}AtomicBlockMark`,m4=`${ge}ExcludeMark`,fE=`data-${J}-exclude-mark`,K2=`${ge}StayOriginalMark`,hE=`${ge}PreWhitespaceMark`,Iu=`${ge}InlineMark`,g4=`${ge}BlockMark`,bE=`${ge}Left`,yE=`${ge}Right`,xE=`${ge}Width`,EE=`${ge}Height`,TE=`${ge}Top`,CE=`${ge}FontSize`,Fr="lastRunTime",wE=`${ge}GlobalStyleMark`,ha=["@","#"],Nu=" --- ",p4=` +`,Kt=`${J}-target-wrapper`,vE=`${J}-pdf-target-container`,f4=`${J}-target-inner`,AE=`${J}-source-wrapper`,ss=`${J}-target-translation-block-wrapper`,kE=`${J}-root-translation-theme`,za=`${ge}RootTranslationTheme`,h4=`${J}-target-translation-vertical-block-wrapper`,SE=`${J}-target-translation-pdf-block-wrapper`,b4=`${J}-target-translation-pre-whitespace`,ls=`${J}-target-translation-inline-wrapper`;var y4={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]},en=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","ru","ar","it","ms","id","vi","af","th","ur","yue","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","nl","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu"],x4={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Detect Language",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese",zu:"Zulu","":"All Languages"},E4={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B\u8BED\u8A00",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00"},T4={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C\u8A9E\u8A00",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00"};var C4=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/"];var ju="zh-CN";var n4=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],Bn={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},deepl:{name:"DeepL",homepage:"https://www.deepl.com/translator",docUrl:"https://immersivetranslate.com/docs/services/deepL/",providers:[{name:"pro",nameKey:"deepLProName",descriptionKey:"deepLProDescription",descriptionKeyForNormal:"deeplProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"deepLCustomName",descriptionKey:"deepLCustomDescription",descriptionLink1:"https://www.deepl.com/translator",descriptionLink2:"https://immersivetranslate.com/docs/services/deepL/"}],allProps:[{name:"authKey",providers:["custom"],label:"Auth Key",required:!0,type:"password"}]},openai:{name:"Open AI",homepage:"https://openai.com/api/",docUrl:"https://immersivetranslate.com/docs/services/openai/",providers:[{name:"pro",nameKey:"openaiProName",descriptionKey:"openaiProDescription",descriptionKeyForNormal:"openaiProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"openaiCustomName",descriptionKey:"openaiCustomDescription",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password"},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"openai-model-select",default:"gpt-3.5-turbo-0613",options:[{providers:["custom","pro"],label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{providers:["custom","pro"],label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{providers:["custom"],label:"gpt-4",value:"gpt-4"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.limitPerSecond",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.openai.com/v1/chat/completions",descriptionKey:"description.apiUrl",optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"text",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`,optional:!0}]},transmart:{name:"Transmart",homepage:"https://transmart.qq.com/"},chatgpt:{name:"ChatGPT Web(3.5 mobile)",homepage:"https://chat.openai.com",beta:!0},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:"https://immersivetranslate.com/docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text"},{name:"appSecret",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/",docUrl:"https://immersivetranslate.com/docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text"},{name:"secretKey",required:!0,type:"password"}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:"https://immersivetranslate.com/docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text"},{name:"AccessKeySecret",required:!0,type:"password"},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:"https://immersivetranslate.com/docs/services/azure/",allProps:[{name:"region",required:!0,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password"}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:"https://immersivetranslate.com/docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text"},{name:"key",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:"https://immersivetranslate.com/docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text"},{name:"secretAccessKey",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:"https://immersivetranslate.com/docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password"}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:"https://immersivetranslate.com/docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:ha,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:"https://immersivetranslate.com/docs/services/openL/",allProps:[...n4,{type:"password",name:"apikey",required:!0}],props:n4},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",alpha:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:"https://immersivetranslate.com/docs/services/niu",allProps:[{name:"APIKEY",required:!0,type:"password"}]}},zu={type:ge+"ChildFrameToRootFrameIdentifier"},Hu=["Alt","Ctrl","Shift","Auto","Off","OtherCustom","Other"];var cs="user_from_plugin",en="user_info",ds=Fn()||Pn()?"https://api2.immersivetranslate.com":"https://test-api2.immersivetranslate.com",DE=Fn()||Pn()?"https://immersivetranslate.com/accounts/login?from=plugin":"https://test.immersivetranslate.com/accounts/login?from=plugin",ms=Fn()||Pn()?"https://immersivetranslate.com/profile":"https://test.immersivetranslate.com/profile",Pr=Fn()||Pn()?"https://immersivetranslate.com/pricing":"https://test.immersivetranslate.com/pricing",w4=Pr+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",gs=Pr+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",v4=Pr+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal";var za=console,ps=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),a=Math.round(n-this.#e),r=Qt.green;a>1e4?r=Qt.red:a>1e3&&(r=Qt.yellow),za.debug(Qt.dim(fa+" TIMING:"),t,"in",r(a+"ms")),this.#e=n}},_r=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&za.log(Qt.dim(fa+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&za.log(Qt.green(fa+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&za.warn(Qt.yellow(fa+" WARN:"),...t)}error(...t){this.#e<=3&&za.error(Qt.red(fa+" ERROR:"),...t)}fatal(...t){this.#e<=4&&za.error(Qt.red(fa+" FATAL:"),...t)}timing(){return this.level===0?new ps:{reset:()=>{},stop:()=>{}}}},j=new _r;m();m();m();var fs=/iPhone/i,A4=/iPod/i,k4=/iPad/i,S4=/\biOS-universal(?:.+)Mac\b/i,hs=/\bAndroid(?:.+)Mobile\b/i,D4=/Android/i,Ha=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,qu=/Silk/i,Rn=/Windows Phone/i,L4=/\bWindows(?:.+)ARM\b/i,M4=/BlackBerry/i,F4=/BB10/i,P4=/Opera Mini/i,_4=/\b(CriOS|Chrome)(?:.+)Mobile/i,B4=/Mobile(?:.+)Firefox\b/i,R4=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function K2(e){return t=>t.test(e)}function Kn(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,a=n.split("[FBAN");typeof a[1]<"u"&&(n=a[0]),a=n.split("Twitter"),typeof a[1]<"u"&&(n=a[0]);let r=K2(n),u={apple:{phone:r(fs)&&!r(Rn),ipod:r(A4),tablet:!r(fs)&&(r(k4)||R4(t))&&!r(Rn),universal:r(S4),device:(r(fs)||r(A4)||r(k4)||r(S4)||R4(t))&&!r(Rn)},amazon:{phone:r(Ha),tablet:!r(Ha)&&r(qu),device:r(Ha)||r(qu)},android:{phone:!r(Rn)&&r(Ha)||!r(Rn)&&r(hs),tablet:!r(Rn)&&!r(Ha)&&!r(hs)&&(r(qu)||r(D4)),device:!r(Rn)&&(r(Ha)||r(qu)||r(hs)||r(D4))||r(/\bokhttp\b/i)},windows:{phone:r(Rn),tablet:r(L4),device:r(Rn)||r(L4)},other:{blackberry:r(M4),blackberry10:r(F4),opera:r(P4),firefox:r(B4),chrome:r(_4),device:r(M4)||r(F4)||r(P4)||r(B4)||r(_4)},any:!1,phone:!1,tablet:!1};return u.any=u.apple.device||u.android.device||u.windows.device||u.other.device,u.phone=u.apple.phone||u.android.phone||u.windows.phone,u.tablet=u.apple.tablet||u.android.tablet||u.windows.tablet,u}var bs="DENO",ys="CHROME",Wu="FIREFOX";function G2(e){let t=ys;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=Wu:/deno/i.test(n)&&(t=bs)}catch{}return e===ys&&t===ys||e===Wu&&t===Wu||e===bs&&t===bs}function O4(){return typeof Deno<"u"}function $u(){return G2(Wu)}function I4(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function Br(){return!!globalThis.matchMedia("(pointer:fine)").matches}m();var N4={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},j4={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:N4,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}}},tabs:{onUpdated:N4,query:()=>{},sendMessage:()=>{}}};var ue;O4()?ue=j4:ue=globalThis.immersiveTranslateBrowserAPI;m();m();m();m();m();var YE=z4(2),U4=z4(3);function z4(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let a=[];if(n==null)return a;let r=typeof n.slice=="function"?n:String(n),u=r.length-e+1;if(u<1)return a;for(;u--;)a[u]=r.slice(u,u+e);return a}}m();var V2=/\s+/g,Y2=/[\t\n\v\f\r ]+/g;function H4(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?J2:Q2;return String(e).replace(t.style==="html"?Y2:V2,t.trim?Z2(n):n)}function J2(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function Q2(){return" "}function Z2(e){return t;function t(n,a,r){return a===0||a+n.length===r.length?"":e(n)}}var q4={}.hasOwnProperty;function X2(e){return e==null?"":H4(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function e1(e){return U4(" "+X2(e)+" ")}function t1(e){let t=e1(e),n={},a=-1;for(;++an&&(n=u,a=r)}return[a,n]}function s1(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function l1(e,t,n,a){t=d1(t,n,a);let r=[],u;if(t)for(u in t)Ku.call(t,u)&&r.push([u,c1(e,t[u])]);return r.length===0?Es():r.sort(m1)}function c1(e,t){let n=0,a=-1;for(;++at.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterso+i.length,0));let u=e.length-a;for(let o of C1){let i=o[1],s=o[0],c=e.match(i),l=c?c.length:0;l>n&&(n=l,t=s)}return n*2.5/u>.5?t==="zh-CN"?Q4(e)?"zh-TW":"zh-CN":t:"auto"}var X4=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],Ts=new Map(X4),w1=new Map(X4.map(([e,t])=>[t,e]));function ed(e,t,n=["en"]){if(!e)return"auto";let a=n.map(i=>w1.get(i));!t&&t!==0&&(t=25);let r=Vu(e);if(r!=="auto")return r;let u={minLength:t,whitelist:[...Ts.keys()]},o=K4(e,u);if(o&&o.length>0){for(let[l,g]of o)if(a.includes(l)&&g>.5)return Ts.get(l);let[i,s]=o[0],c=Ts.get(i);if(c&&s>.5)return c}return"auto"}m();m();function qa(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t==="zh-hans")return"zh-CN";if(t==="zh-hant"||t==="zh-hk")return"zh-TW";if(t==="iw")return"he";if(t==="jv")return"jw";let n=Xt.map(r=>r.toLowerCase()),a=n.indexOf(t);if(a===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let r=n.indexOf(t);return r===-1?"auto":Xt[r]}else return"auto";else return Xt[a]}function ba(){return qa(document?.documentElement?.lang||"en")}m();function tn(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function td(e){if(e){let t=new Date(e.createTime),n=v1(t),a="free",r="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(a=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?r="stripe":r="admin"),{user_type:a,user_register_day:n,subscription_from:r}}else return null}function v1(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[a,r,u]=n.split("/");return n=`${u}-${a}-${r}`,n}catch{return"unknown"}}m();var nd=ge+"SyncStoreKey_";function St(e,t){let n=nd+e;return ue.storage.sync.get(n).then(a=>a[n]===void 0?t:a[n])}function je(e,t){let n=nd+e;return ue.storage.sync.set({[n]:t})}m();var ad=ge+"StoreKey_";function On(e,t){let n=ad+e;return ue.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function rd(e,t){let n=ad+e;return ue.storage.local.set({[n]:t})}m();var Wa=ge+"CacheKey_";function A1(e,t){let n=Wa+e;return ue.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function k1(){let e=ue.storage.local.refresh;e&&e()}function Or(e,t){let n=Wa+e;return ue.storage.local.get(n).then(a=>{if(a[n]===void 0)return t;let{value:r,expired:u}=a[n];return u&&ua.startsWith(Wa));if(n.length>0)return ue.storage.local.remove(n)}}var Nt={get:A1,set:S1,getExpired:Or,setExpired:Ir,remove:Nr,clear:D1,refresh:k1};m();m();m();var ot=class extends Error{details;constructor(t,n,a){super(n),this.name=t,a&&(this.details=a)}};async function ya(e){let t;if(e&&e.retry&&e.retry>0)try{t=await Ni(ud.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await ud(e);return t}async function ud(e){e.body;let{url:t,responseType:n,...a}=e;n||(n="json"),a={mode:"cors",...a};let r=!0;e.fetchPolyfill&&(r=!1);let u=e.fetchPolyfill||fetch,o=3e5;if(e.timeout&&(o=e.timeout),r){let s=new AbortController,c=s.signal;setTimeout(()=>{s.abort()},o),a.signal=c}let i;try{i=await u(t,a)}catch(s){j.debug("fetch error",t,s);let c=s.message||"";throw s.message="\u7F51\u7EDC\u95EE\u9898\uFF0C\u65E0\u6CD5\u8FDE\u63A5\u5230\u670D\u52A1\uFF0C\u8BF7\u68C0\u67E5\u4F60\u7684\u4EE3\u7406\u6216\u672C\u5730\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u8BD5\u3002 "+c,s}if(i.ok&&i.status>=200&&i.status<400){if(n==="json")return await i.json();if(n==="text")return await i.text();if(n==="raw"){let s=await i.text(),c=Object.fromEntries([...i.headers.entries()]),l=i.url;return l||(i.headers.get("X-Final-URL")?l=i.headers.get("X-Final-URL"):l=t),{body:s,headers:c,status:i.status,statusText:i.statusText,url:l}}else if(n==="stream"){let s="",c;if(i.body&&i.body instanceof ReadableStream)for await(let l of L1(i.body)){let g=new TextDecoder().decode(l);s+=g;let p;for(;(p=s.indexOf(` -`))>=0;){let f=s.slice(0,p).trim();if(s=s.slice(p+1),f.startsWith("event:")||f==="")continue;let d="";if(f.startsWith("data:")&&(d=f.slice(5).trim()),d==="[DONE]")break;let b;try{b=JSON.parse(d??"")}catch(C){j.debug("json error",C);continue}c=b}}return c}}else{let s;try{s=await i.text()}catch(f){j.error("parse response failed",f)}s&&j.error("fail response",s);let c="";s&&(c=s.slice(0,280));let l="\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u4EE3\u7801:"+i.status+": "+(i.statusText||"")+c,p=new URL(t).hostname.endsWith(".immersivetranslate.com");throw i.status===429?p?c.includes("quota exceeded")?l="ProQuota:"+c:l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${c} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`:l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A429\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===403?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A403\uFF0C \u8BF4\u660E\u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ${c}`:i.status===400?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A400\uFF0C \u8BF4\u660E\u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002 ${c}`:i.status===502?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A502\uFF0C \u8BF4\u660E\u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===401&&(l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A401\uFF0C \u8BF4\u660E\u672A\u767B\u5F55\u6216\u767B\u5F55\u6001\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002 ${c}`),new ot("fetchError",l,s)}}async function*L1(e){let t=e.getReader();try{for(;;){let{done:n,value:a}=await t.read();if(n)return;yield a}}finally{t.releaseLock()}}m();var M1=new Map;function Yu(e){let t=F1(64),n=new CustomEvent(_u,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((a,r)=>{M1.set(t,(u,o)=>{u?r(u):a(o)})})}function F1(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};function nn(){return Ju.version}m();function Je(){try{return globalThis.self!==globalThis.top}catch{return!0}}m();var jr=new Map,Gn=class{fromType;logger;constructor(t,n=!1){this.logger=new _r,n&&this.logger.setLevel("debug"),this.fromType=t,jr.has(t)||(jr.set(t,new Map),ue.runtime.onMessage.addListener((a,r,u)=>{let o=a.from,i=a.to,s,c,l;r.tab&&r.tab.id&&(s=r.tab.id,o=`${o}:${s}`,c=r.tab.url,l=r.tab.active),this.logger.debug(`${a.to} received message [${a.payload.method}] from ${a.from}`,a.payload.data?a.payload.data:" ");let g=ws(i),{type:p,name:f}=g;if(p!==t)return!1;let d=ws(o),C=jr.get(p).get(f);if(!C)return this.logger.debug(`no message handler for ${p}:${i}, but it's ok`),!1;let{messageHandler:h,sync:A}=C,S={type:t,name:d.name,id:s,url:c,active:l};if(A){try{let U=h(a.payload,S);u({ok:!0,data:U})}catch(U){u({ok:!1,errorName:U.name,errorMessage:U.message,errorDetails:U.details})}return!1}else return h(a.payload,S).then(U=>{u({ok:!0,data:U})}).catch(U=>{u({ok:!1,errorName:U.name,errorMessage:U.message,errorDetails:U.details})}),!0}))}getConnection(t,n,a){let r=!1;a&&a.sync&&(r=!0);let u=this.fromType,o=jr.get(u);if(o.has(t))return o.get(t).connectionInstance;{let i=new Cs(`${u}:${t}`,this.logger);return jr.get(u).set(t,{messageHandler:n,sync:r,connectionInstance:i}),i}}},Cs=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let a=ws(t),{type:r,id:u}=a;if(r!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let i=await ue.runtime.sendMessage(o);return od(o,i,this.logger)}catch(i){if(r==="popup"){let s=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(s,n,t,i),Promise.resolve({message:s})}else throw i}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let i=await ue.tabs.sendMessage(u,o);return od(o,i,this.logger)}}};function od(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new ot(t.errorName||"UnknownError",t.errorMessage||"Unknown error",t.errorDetails)}else throw new ot("noResponse","Unknown error")}function ws(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let a=parseInt(t[2]);if(!isNaN(a))n.id=a;else throw new Error("tab id not a valid number")}return n}var Qu;function _1(){return Qu||(Qu=new Gn("content_script",!1).getConnection("pure_main",()=>{}),Qu)}var id="G-MKMD9LWFTR";async function Ur(e,t){try{let n=Ve();if(n.INSTALL_FROM==="firefox_store")return;let r=fe(),u=Je(),o=n.PROD==="1",i="sitc4WmvShWYwfU0dANM3Q",s=await St("fakeUserId","");s||(s=await On("fakeUserId",""),s&&await je("fakeUserId",s));let c=nn(),l=new Date,g=await St("installedAt","");g||(g=await On("installedAt",""),g&&await je("installedAt",g)),s?g||(g=new Date(0).toISOString(),await je("installedAt",g)):(s=B1(32),await je("fakeUserId",s)),g||(g=l.toISOString(),await je("installedAt",g));let p=new Date(g),f=sd(p),d=sd(l),b=f===d,C=l.getTime()-p.getTime()<7*24*60*60*1e3,h=`https://www.google-analytics.com/mp/collect?measurement_id=${id}&api_secret=${i}`;o||(h=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${id}&api_secret=${i}`);let A="";typeof navigator<"u"&&(A=window.navigator.userAgent);let S=Na.parse(A),U=t.map(y=>{let T=y.params||{};return S.os&&(T.os_name=S.os.name||"unknown",T.os_version=S.os.version||"unknown",T.os_version_name=S.os.versionName||"unknown"),S.browser&&(T.browser_name=S.browser.name||"unknown",T.browser_version=S.browser.version||"unknown"),S.platform&&(T.platform_type=S.platform.type||"unknown"),S.engine&&(T.engine_name=S.engine.name||"unknown",T.engine_version=S.engine.version||"unknown"),c&&(T.version=c),n.INSTALL_FROM&&(T.install_from=n.INSTALL_FROM),f&&(T.install_day=R1(p)),T.userscript=r.toString(),b?T.is_new_user_today="1":T.is_new_user_today="0",C?T.is_new_user_this_week="1":T.is_new_user_this_week="0",u?T.main_frame=0:T.main_frame=1,{...y,params:T}}),R=await Zu({responseType:"text",url:h,method:"POST",body:JSON.stringify({client_id:s,user_id:s,events:U})})}catch{}}function B1(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r",""]},custom:{placeholderDelimiters:["{","}"]},bing:{maxTextLengthPerRequest:1800,placeholderDelimiters:["","","b"]},deeplx:{limit:3},d:{immediateTranslationTextCount:0},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},openai:{placeholderDelimiters:["{{","}}","b"],immediateTranslationTextCount:3e3,translationDebounce:300,interval:1350,prompt:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +{{text}}`,optional:!0}]},transmart:{name:"Transmart",homepage:"https://transmart.qq.com/"},chatgpt:{name:"ChatGPT Web(3.5 mobile)",homepage:"https://chat.openai.com",beta:!0},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:"https://immersivetranslate.com/docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text"},{name:"appSecret",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/",docUrl:"https://immersivetranslate.com/docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text"},{name:"secretKey",required:!0,type:"password"}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:"https://immersivetranslate.com/docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text"},{name:"AccessKeySecret",required:!0,type:"password"},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:"https://immersivetranslate.com/docs/services/azure/",allProps:[{name:"region",required:!0,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password"}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:"https://immersivetranslate.com/docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text"},{name:"key",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:"https://immersivetranslate.com/docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text"},{name:"secretAccessKey",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:"https://immersivetranslate.com/docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password"}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:"https://immersivetranslate.com/docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:ha,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:"https://immersivetranslate.com/docs/services/openL/",allProps:[...n4,{type:"password",name:"apikey",required:!0}],props:n4},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",alpha:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:"https://immersivetranslate.com/docs/services/niu",allProps:[{name:"APIKEY",required:!0,type:"password"}]}},Uu={type:ge+"ChildFrameToRootFrameIdentifier"},zu=["Alt","Ctrl","Shift","Auto","Off","OtherCustom","Other"];var cs="user_from_plugin",Nt="user_info",ds=Fn()||Pn()?"https://api2.immersivetranslate.com":"https://test-api2.immersivetranslate.com",DE=Fn()||Pn()?"https://immersivetranslate.com/accounts/login?from=plugin":"https://test.immersivetranslate.com/accounts/login?from=plugin",ms=Fn()||Pn()?"https://immersivetranslate.com/profile":"https://test.immersivetranslate.com/profile",Pr=Fn()||Pn()?"https://immersivetranslate.com/pricing":"https://test.immersivetranslate.com/pricing",w4=Pr+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",gs=Pr+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",v4=Pr+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal";var Ha=console,ps=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),a=Math.round(n-this.#e),r=Zt.green;a>1e4?r=Zt.red:a>1e3&&(r=Zt.yellow),Ha.debug(Zt.dim(fa+" TIMING:"),t,"in",r(a+"ms")),this.#e=n}},_r=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&Ha.log(Zt.dim(fa+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&Ha.log(Zt.green(fa+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&Ha.warn(Zt.yellow(fa+" WARN:"),...t)}error(...t){this.#e<=3&&Ha.error(Zt.red(fa+" ERROR:"),...t)}fatal(...t){this.#e<=4&&Ha.error(Zt.red(fa+" FATAL:"),...t)}timing(){return this.level===0?new ps:{reset:()=>{},stop:()=>{}}}},j=new _r;m();m();m();var fs=/iPhone/i,A4=/iPod/i,k4=/iPad/i,S4=/\biOS-universal(?:.+)Mac\b/i,hs=/\bAndroid(?:.+)Mobile\b/i,D4=/Android/i,qa=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,Hu=/Silk/i,Rn=/Windows Phone/i,L4=/\bWindows(?:.+)ARM\b/i,M4=/BlackBerry/i,F4=/BB10/i,P4=/Opera Mini/i,_4=/\b(CriOS|Chrome)(?:.+)Mobile/i,B4=/Mobile(?:.+)Firefox\b/i,R4=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function G2(e){return t=>t.test(e)}function Kn(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,a=n.split("[FBAN");typeof a[1]<"u"&&(n=a[0]),a=n.split("Twitter"),typeof a[1]<"u"&&(n=a[0]);let r=G2(n),u={apple:{phone:r(fs)&&!r(Rn),ipod:r(A4),tablet:!r(fs)&&(r(k4)||R4(t))&&!r(Rn),universal:r(S4),device:(r(fs)||r(A4)||r(k4)||r(S4)||R4(t))&&!r(Rn)},amazon:{phone:r(qa),tablet:!r(qa)&&r(Hu),device:r(qa)||r(Hu)},android:{phone:!r(Rn)&&r(qa)||!r(Rn)&&r(hs),tablet:!r(Rn)&&!r(qa)&&!r(hs)&&(r(Hu)||r(D4)),device:!r(Rn)&&(r(qa)||r(Hu)||r(hs)||r(D4))||r(/\bokhttp\b/i)},windows:{phone:r(Rn),tablet:r(L4),device:r(Rn)||r(L4)},other:{blackberry:r(M4),blackberry10:r(F4),opera:r(P4),firefox:r(B4),chrome:r(_4),device:r(M4)||r(F4)||r(P4)||r(B4)||r(_4)},any:!1,phone:!1,tablet:!1};return u.any=u.apple.device||u.android.device||u.windows.device||u.other.device,u.phone=u.apple.phone||u.android.phone||u.windows.phone,u.tablet=u.apple.tablet||u.android.tablet||u.windows.tablet,u}var bs="DENO",ys="CHROME",qu="FIREFOX";function V2(e){let t=ys;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=qu:/deno/i.test(n)&&(t=bs)}catch{}return e===ys&&t===ys||e===qu&&t===qu||e===bs&&t===bs}function O4(){return typeof Deno<"u"}function Wu(){return V2(qu)}function I4(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function Br(){return!!globalThis.matchMedia("(pointer:fine)").matches}m();var N4={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},j4={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:N4,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}}},tabs:{onUpdated:N4,query:()=>{},sendMessage:()=>{}}};var ue;O4()?ue=j4:ue=globalThis.immersiveTranslateBrowserAPI;m();m();m();m();m();var YE=z4(2),U4=z4(3);function z4(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let a=[];if(n==null)return a;let r=typeof n.slice=="function"?n:String(n),u=r.length-e+1;if(u<1)return a;for(;u--;)a[u]=r.slice(u,u+e);return a}}m();var Y2=/\s+/g,J2=/[\t\n\v\f\r ]+/g;function H4(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?Q2:Z2;return String(e).replace(t.style==="html"?J2:Y2,t.trim?X2(n):n)}function Q2(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function Z2(){return" "}function X2(e){return t;function t(n,a,r){return a===0||a+n.length===r.length?"":e(n)}}var q4={}.hasOwnProperty;function e1(e){return e==null?"":H4(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function t1(e){return U4(" "+e1(e)+" ")}function n1(e){let t=t1(e),n={},a=-1;for(;++an&&(n=u,a=r)}return[a,n]}function l1(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function c1(e,t,n,a){t=m1(t,n,a);let r=[],u;if(t)for(u in t)$u.call(t,u)&&r.push([u,d1(e,t[u])]);return r.length===0?Es():r.sort(g1)}function d1(e,t){let n=0,a=-1;for(;++at.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterso+i.length,0));let u=e.length-a;for(let o of w1){let i=o[1],s=o[0],c=e.match(i),l=c?c.length:0;l>n&&(n=l,t=s)}return n*2.5/u>.5?t==="zh-CN"?Q4(e)?"zh-TW":"zh-CN":t:"auto"}var X4=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],Ts=new Map(X4),v1=new Map(X4.map(([e,t])=>[t,e]));function ed(e,t,n=["en"]){if(!e)return"auto";let a=n.map(i=>v1.get(i));!t&&t!==0&&(t=25);let r=Gu(e);if(r!=="auto")return r;let u={minLength:t,whitelist:[...Ts.keys()]},o=K4(e,u);if(o&&o.length>0){for(let[l,g]of o)if(a.includes(l)&&g>.5)return Ts.get(l);let[i,s]=o[0],c=Ts.get(i);if(c&&s>.5)return c}return"auto"}m();m();function Wa(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t==="zh-hans")return"zh-CN";if(t==="zh-hant"||t==="zh-hk")return"zh-TW";if(t==="iw")return"he";if(t==="jv")return"jw";let n=en.map(r=>r.toLowerCase()),a=n.indexOf(t);if(a===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let r=n.indexOf(t);return r===-1?"auto":en[r]}else return"auto";else return en[a]}function ba(){return Wa(document?.documentElement?.lang||"en")}m();function tn(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function td(e){if(e){let t=new Date(e.createTime),n=A1(t),a="free",r="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(a=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?r="stripe":r="admin"),{user_type:a,user_register_day:n,subscription_from:r}}else return null}function A1(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[a,r,u]=n.split("/");return n=`${u}-${a}-${r}`,n}catch{return"unknown"}}m();var nd=ge+"SyncStoreKey_";function St(e,t){let n=nd+e;return ue.storage.sync.get(n).then(a=>a[n]===void 0?t:a[n])}function je(e,t){let n=nd+e;return ue.storage.sync.set({[n]:t})}m();var ad=ge+"StoreKey_";function On(e,t){let n=ad+e;return ue.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function rd(e,t){let n=ad+e;return ue.storage.local.set({[n]:t})}m();var ya=ge+"CacheKey_";function k1(e,t){let n=ya+e;return ue.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function S1(){let e=ue.storage.local.refresh;e&&e()}function Or(e,t){let n=ya+e;return ue.storage.local.get(n).then(a=>{if(a[n]===void 0)return t;let{value:r,expired:u}=a[n];return u&&ua.startsWith(ya)).filter(a=>a!==ya+Nt);if(n.length>0)return ue.storage.local.remove(n)}}var jt={get:k1,set:D1,getExpired:Or,setExpired:Ir,remove:Nr,clear:ud,refresh:S1};m();m();m();var ot=class extends Error{details;constructor(t,n,a){super(n),this.name=t,a&&(this.details=a)}};async function xa(e){let t;if(e&&e.retry&&e.retry>0)try{t=await Ni(od.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await od(e);return t}async function od(e){e.body;let{url:t,responseType:n,...a}=e;n||(n="json"),a={mode:"cors",...a};let r=!0;e.fetchPolyfill&&(r=!1);let u=e.fetchPolyfill||fetch,o=3e5;if(e.timeout&&(o=e.timeout),r){let s=new AbortController,c=s.signal;setTimeout(()=>{s.abort()},o),a.signal=c}let i;try{i=await u(t,a)}catch(s){j.debug("fetch error",t,s);let c=s.message||"";throw s.message="\u7F51\u7EDC\u95EE\u9898\uFF0C\u65E0\u6CD5\u8FDE\u63A5\u5230\u670D\u52A1\uFF0C\u8BF7\u68C0\u67E5\u4F60\u7684\u4EE3\u7406\u6216\u672C\u5730\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u8BD5\u3002 "+c,s}if(i.ok&&i.status>=200&&i.status<400){if(n==="json")return await i.json();if(n==="text")return await i.text();if(n==="raw"){let s=await i.text(),c=Object.fromEntries([...i.headers.entries()]),l=i.url;return l||(i.headers.get("X-Final-URL")?l=i.headers.get("X-Final-URL"):l=t),{body:s,headers:c,status:i.status,statusText:i.statusText,url:l}}else if(n==="stream"){let s="",c;if(i.body&&i.body instanceof ReadableStream)for await(let l of L1(i.body)){let g=new TextDecoder().decode(l);s+=g;let p;for(;(p=s.indexOf(` +`))>=0;){let f=s.slice(0,p).trim();if(s=s.slice(p+1),f.startsWith("event:")||f==="")continue;let d="";if(f.startsWith("data:")&&(d=f.slice(5).trim()),d==="[DONE]")break;let b;try{b=JSON.parse(d??"")}catch(C){j.debug("json error",C);continue}c=b}}return c}}else{let s;try{s=await i.text()}catch(f){j.error("parse response failed",f)}s&&j.error("fail response",s);let c="";s&&(c=s.slice(0,280));let l="\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u4EE3\u7801:"+i.status+": "+(i.statusText||"")+c,p=new URL(t).hostname.endsWith(".immersivetranslate.com");throw i.status===429?p?c.includes("quota exceeded")?l="ProQuota:"+c:l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${c} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`:l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A429\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===403?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A403\uFF0C \u8BF4\u660E\u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ${c}`:i.status===400?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A400\uFF0C \u8BF4\u660E\u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002 ${c}`:i.status===502?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A502\uFF0C \u8BF4\u660E\u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===401&&(l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A401\uFF0C \u8BF4\u660E\u672A\u767B\u5F55\u6216\u767B\u5F55\u6001\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002 ${c}`),new ot("fetchError",l,s)}}async function*L1(e){let t=e.getReader();try{for(;;){let{done:n,value:a}=await t.read();if(n)return;yield a}}finally{t.releaseLock()}}m();var M1=new Map;function Vu(e){let t=F1(64),n=new CustomEvent(Pu,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((a,r)=>{M1.set(t,(u,o)=>{u?r(u):a(o)})})}function F1(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};function nn(){return Yu.version}m();function Je(){try{return globalThis.self!==globalThis.top}catch{return!0}}m();var jr=new Map,Gn=class{fromType;logger;constructor(t,n=!1){this.logger=new _r,n&&this.logger.setLevel("debug"),this.fromType=t,jr.has(t)||(jr.set(t,new Map),ue.runtime.onMessage.addListener((a,r,u)=>{let o=a.from,i=a.to,s,c,l;r.tab&&r.tab.id&&(s=r.tab.id,o=`${o}:${s}`,c=r.tab.url,l=r.tab.active),this.logger.debug(`${a.to} received message [${a.payload.method}] from ${a.from}`,a.payload.data?a.payload.data:" ");let g=ws(i),{type:p,name:f}=g;if(p!==t)return!1;let d=ws(o),C=jr.get(p).get(f);if(!C)return this.logger.debug(`no message handler for ${p}:${i}, but it's ok`),!1;let{messageHandler:h,sync:A}=C,S={type:t,name:d.name,id:s,url:c,active:l};if(A){try{let U=h(a.payload,S);u({ok:!0,data:U})}catch(U){u({ok:!1,errorName:U.name,errorMessage:U.message,errorDetails:U.details})}return!1}else return h(a.payload,S).then(U=>{u({ok:!0,data:U})}).catch(U=>{u({ok:!1,errorName:U.name,errorMessage:U.message,errorDetails:U.details})}),!0}))}getConnection(t,n,a){let r=!1;a&&a.sync&&(r=!0);let u=this.fromType,o=jr.get(u);if(o.has(t))return o.get(t).connectionInstance;{let i=new Cs(`${u}:${t}`,this.logger);return jr.get(u).set(t,{messageHandler:n,sync:r,connectionInstance:i}),i}}},Cs=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let a=ws(t),{type:r,id:u}=a;if(r!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let i=await ue.runtime.sendMessage(o);return id(o,i,this.logger)}catch(i){if(r==="popup"){let s=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(s,n,t,i),Promise.resolve({message:s})}else throw i}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let i=await ue.tabs.sendMessage(u,o);return id(o,i,this.logger)}}};function id(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new ot(t.errorName||"UnknownError",t.errorMessage||"Unknown error",t.errorDetails)}else throw new ot("noResponse","Unknown error")}function ws(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let a=parseInt(t[2]);if(!isNaN(a))n.id=a;else throw new Error("tab id not a valid number")}return n}var Ju;function _1(){return Ju||(Ju=new Gn("content_script",!1).getConnection("pure_main",()=>{}),Ju)}var sd="G-MKMD9LWFTR";async function Ur(e,t){try{let n=Ve();if(n.INSTALL_FROM==="firefox_store")return;let r=pe(),u=Je(),o=n.PROD==="1",i="sitc4WmvShWYwfU0dANM3Q",s=await St("fakeUserId","");s||(s=await On("fakeUserId",""),s&&await je("fakeUserId",s));let c=nn(),l=new Date,g=await St("installedAt","");g||(g=await On("installedAt",""),g&&await je("installedAt",g)),s?g||(g=new Date(0).toISOString(),await je("installedAt",g)):(s=B1(32),await je("fakeUserId",s)),g||(g=l.toISOString(),await je("installedAt",g));let p=new Date(g),f=ld(p),d=ld(l),b=f===d,C=l.getTime()-p.getTime()<7*24*60*60*1e3,h=`https://www.google-analytics.com/mp/collect?measurement_id=${sd}&api_secret=${i}`;o||(h=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${sd}&api_secret=${i}`);let A="";typeof navigator<"u"&&(A=window.navigator.userAgent);let S=ja.parse(A),U=t.map(y=>{let T=y.params||{};return S.os&&(T.os_name=S.os.name||"unknown",T.os_version=S.os.version||"unknown",T.os_version_name=S.os.versionName||"unknown"),S.browser&&(T.browser_name=S.browser.name||"unknown",T.browser_version=S.browser.version||"unknown"),S.platform&&(T.platform_type=S.platform.type||"unknown"),S.engine&&(T.engine_name=S.engine.name||"unknown",T.engine_version=S.engine.version||"unknown"),c&&(T.version=c),n.INSTALL_FROM&&(T.install_from=n.INSTALL_FROM),f&&(T.install_day=R1(p)),T.userscript=r.toString(),b?T.is_new_user_today="1":T.is_new_user_today="0",C?T.is_new_user_this_week="1":T.is_new_user_this_week="0",u?T.main_frame=0:T.main_frame=1,{...y,params:T}}),R=await Qu({responseType:"text",url:h,method:"POST",body:JSON.stringify({client_id:s,user_id:s,events:U})})}catch{}}function B1(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r",""],limit:5e3},custom:{placeholderDelimiters:["{","}"]},bing:{maxTextLengthPerRequest:1800,placeholderDelimiters:["","","b"]},deeplx:{limit:3},d:{immediateTranslationTextCount:0},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},openai:{placeholderDelimiters:["{{","}}","b"],immediateTranslationTextCount:3e3,translationDebounce:300,interval:1350,prompt:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: {{text}}`,maxTextGroupLengthPerRequest:1,newlinePlaceholderDelimiters:[` @@ -4264,61 +4264,63 @@ Additionally, we support using Chinese aliases of language codes as commands. Fo ?`]}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:""},tempTranslateDomainMinutes:0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","*.twitter.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","github.com","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","www.tumblr.com","*.twitter.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},generalRule:{_comment:"",enableSubtitle:!0,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan"],useIframePostMessage:!0,searchEnhancementConfig:[],injectedCss:[],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!0,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,isTransformPreTagNewLine:!1,urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".MathJax_Preview",".MathJax",".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:4,paragraphMinWordCount:2,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,globalAttributes:{},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{".sr-only":"display:none"},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{translate:"no"},"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:[],additionalExcludeSelectors:[".social-share",".breadcrumbs",".post__footer",".btn",".reference-citations",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","markerow8"],translationClasses:[],atomicBlockSelectors:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","INPUT","BUTTON","BASE","SELECT","OPTION","HR","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","XQDD_HIGHLIGHT_NEW_WORD","NOBR"],additionalInlineTags:[],extraInlineSelectors:[],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,mouseHoverHoldKey:"Off"},rules:[{id:"immersive",matches:["https://immersivetranslate.com","https://onboarding.immersivetranslate.com"],isInjectVersion:!0,isInjectMeta:!0},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"pdf",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],translationMode:"translation",skipEditableCheck:!0,selectors:["p"],wrapperPrefix:"",isInjectVersion:!0,isPdf:!0},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,injectedCss:[".immersive-translate-target-translation-block-wrapper { display: block; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"]},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","https://platform.twitter.com/embed*"],additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']"],extraBlockSelectors:['[data-testid="tweetText"] div.r-6koalj'],extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText']":"-webkit-line-clamp: unset;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]"]},{id:"threads",matches:"www.threads.net",selectors:["p",".x1npkx4u.x1exu5d8",".xw7yly9",".xgkxs2y"],stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x78zum5",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{span:"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],extraBlockSelectors:["span.comment-copy"],excludeSelectors:["a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md",".RichTextJSON-root","div[slot=title]","div[slot=text-body]","p.title > a","[role=main] .md-container"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none"},waitForSelectors:["[data-testid=post_author_link]"]},{id:"reddit",matches:"www.reddit.com",selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","div[slot=title]","div[slot=text-body]","p.title > a","[role=main] .md-container"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none"}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper"],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box"],extraBlockSelectors:[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],detectParagraphLanguage:!0},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"facebook",matches:"www.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]"],atomicBlockSelectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],extraBlockSelectors:["span.x1vvkbs"],excludeSelectors:["[role=button]"],translationClasses:["immersive-translate-text"],detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".caption-window",".caption-visual-line",".yt-spec-button-view-model",".yt-core-attributed-string > span",".title"],"excludeTags.remove":["BUTTON"],condition:{enableSubtitle:{false:{"selectors.remove":[".caption-window",".caption-visual-line"]}}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],extraBlockSelectors:[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,detectParagraphLanguage:!0,excludeSelectors:["[class^='lln-']"],globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","ytd-notification-renderer .message","#message",".caption-window",".caption-visual-line"],extraBlockSelectors:["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],condition:{enableSubtitle:{false:{"selectors.remove":[".caption-window",".caption-visual-line"]}}},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,selectors:["h1","div[class='x9f619 xjbqb8w x78zum5 x168nmei x13lgxp2 x5pf9jr xo71vjh x1uhb9sk x1plvlek xryxfnj x1c4vz4f x2lah0s xdt5ytf xqjyukv x1cy8zhl x1oa3qoh x1nhvcw1'] > span[class='x1lliihq x1plvlek xryxfnj x1n2onr6 x193iq5w xeuugli x1fj9vlw x13faqbe x1vvkbs x1s928wv xhkezso x1gmr53x x1cpjm7i x1fgarty x1943h6x x1i0vuye xvs91rp xo1l8bm x5n08af x10wh9bi x1wdrske x8viiok x18hxmgj']","span[class='x193iq5w xeuugli x1fj9vlw x13faqbe x1vvkbs xt0psk2 x1i0vuye xvs91rp xo1l8bm x5n08af x10wh9bi x1wdrske x8viiok x18hxmgj']"],wrapperPrefix:"
"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:["[style^=top]",".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;"},extraBlockSelectors:[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"]},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page"],excludeMatches:["https://www.inoreader.com/features/"],observeUrlChange:!1,globalStyles:{".article_title_link":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` `,selectors:["h3 a[data-clk]","div.gs_rs","td a.gsc_a_at","td div.gs_gray:last-of-type","div.gsc_oci_value","#gs_opinion"],extraInlineSelectors:["br"],atomicBlockSelectors:["h3 a[data-clk]"]},{id:"googleMail",matches:"mail.google.com",detectParagraphLanguage:!0,selectors:["h2[data-thread-perm-id]","span[data-thread-id]","div[data-message-id] div[class='']",".messageBody","#views"],globalStyles:{".Nk":"height:auto!important;",".kf":"white-space:unset!important;"}},{id:"googleNews",matches:"news.google.com",blockMinTextCount:26,blockMinWordCount:5,globalStyles:{".MCAGUe":"height: auto;",".To2ZZb.DbQnIe":"height: unset;",".cp7Yvc > h2":"display: block;",".oovtQ":"height: auto;",h4:"-webkit-line-clamp: unset;"},excludeSelectors:[".EyERq",".AOl7G.eejsDc","[aria-label='Home']","[aria-label='For you']","[aria-label='Following']","[aria-label='World']","[aria-label='Local']",".gb_Fc",".wBQf7b",".yPI8Rb",".jKHa4e",".u43Gd",".Zgjpyb","[role='button']","[jsname='rymPhb']",".cbz1ld",".VfPpkd-P5QLlc",".XvhY1d"]},{id:"outlook",matches:"outlook.live.com",excludeSelectors:[".jHAG3.XG5Jd",".OZZZK",".lDdSm"]},{id:"producthunt",matches:"www.producthunt.com",excludeMatches:"https://www.producthunt.com/stories/*",selectors:["h2","div[class^='styles_htmlText__']","[class^='styles_tagline']","a[href^='/discussions/'].fontWeight-600","button[class^='styles_textButton'] > div > span","h5 + p","div[data-test=product-item-name] + div",".noOfLines-1,.noOfLines-2,.noOfLines-3",".fontWeight-600","[class*='styles_dropdown']","[class*='styles_aboutText']"],globalStyles:{"h5 + p":"height:unset;",".noOfLines-1,.noOfLines-2,.noOfLines-3":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"]},{id:"codeforces",matches:"https://codeforces.com/*",stayOriginalTags:["[class^='MathJax']"]},{id:"arxivLabs",matches:"*.labs.arxiv.org/*",stayOriginalTags:["math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt"]},{id:"discord",matches:"https://discord.com/channels/*",isTranslateTitle:!1,selectors:["li[id^=chat-messages] div[id^=message-content]","div[class^=headerText]","section[aria-label='Search Results'] div[id^=message-content]"],extraBlockSelectors:["[class^='embedFieldValue']","li[class^='card'] div[class^='message']","[data-list-item-id^='forum-channel-list'] div[class^='headerText']"],globalStyles:{"div[class^=headerText]":"max-height: unset;","div[class^=message]":"max-height: unset;","div[class^=text]":"max-height: unset;","h3[data-text-variant='heading-lg/semibold']":"-webkit-line-clamp: none;"},detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:"",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"telegram",matches:["web.telegram.org/z/*","web.telegram.org/a/*"],isTranslateTitle:!1,selectors:[".text-content",".message",".reply-markup-button-text",".bot-commands-list-element-description"],detectParagraphLanguage:!0},{id:"telegramK",matches:["web.telegram.org/k/*","web.telegram.org/k/"],selectors:[".message",".reply-markup-button-text",".bot-commands-list-element-description"],detectParagraphLanguage:!0},{id:"githubGist",matches:"gist.github.com",selectors:[".markdown-body",".readme"],detectParagraphLanguage:!0},{id:"lobste",matches:"lobste.rs",excludeMatches:["https://lobste.rs/about","https://lobste.rs/chat"],selectors:[".u-repost-of",".comment_text",".story_text"]},{id:"slack",matches:"*.slack.com",selectors:[".p-rich_text_block",".p-message_pane__foreword",".c-alert__message","[data-qa=message_attachment_text]"],additionalStayOriginalSelectors:["[data-qa=emoji]"],detectParagraphLanguage:!0},{id:"artstationArtwork",matches:"www.artstation.com/artwork/*",excludeSelectors:".project-description a",selectors:[".project-description","div.project-comment-text"],detectParagraphLanguage:!0},{id:"artstationLearning",matches:"www.artstation.com/learning/courses/*",additionalSelectors:["footer.learning-course-description.ng-star-inserted > span"],excludeSelectors:[".learning-card-meta"]},{id:"artstationBlog",matches:["https://www.artstation.com/blogs","https://www.artstation.com/blogs/*"],detectParagraphLanguage:!0,additionalSelectors:[".comment-item-body"],atomicBlockSelectors:[".author-headline",".author-location"],excludeSelectors:["blog-card-thumbnail","blog-card-header",".blog-card-author",".blog-card-meta",".blog-view-header",".blog-grid-title",".post-meta-header"]},{id:"figmaCommunity",matches:"www.figma.com/community/*",normalizeBody:"div.ql-editor[contenteditable='false']",excludeSelectors:["div[class*='metadataRight']","div[class*='commentMetaAndOptions']"],globalStyles:{"div[class*='mini_cardBottomRowSizing']":"height: 3em;"},additionalSelectors:["div[class*='mini_cardBottomRow_Metadata']"],stayOriginalSelectors:["[data-tooltip='tooltip-user-info']"]},{id:"googleIndex",matches:["https://www.google.com/","https://www.google.com.hk/"],excludeSelectors:["#gb","#SIvCob"],inputTutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",inputTutorialsSelectors:["textarea#APjFqb"]},{id:"googleSearch",matches:"www.google.*/search*",blockMinTextCount:32,blockMinWordCount:3,wrapperSuffix:"",detectParagraphLanguage:!0,excludeSelectors:["a h3 + div","div#sfooter","a[role=presentation] > div > div:first-child",".b5ZQcf",".CEMjEf",".MgUUmf.NUnG9d","#result-stats","[role=navigation]","div.sCuL3","div.eFM0qc.BCF2pd","div.WZ8Tjf","div.adDDi","#headerSection","#rateChatDiv","[id=bres]",".title-D5Lgyj","[data-attrid='VisualDigestVideoResult']",".search-enhance-WDIEkP h4",".SPZz6b h2",".CtCigf",".VLkRKc",".EbH0bb",".Wr0c6d",".jleFbf","#searchform",".yg51vc",".CbAZb"],extraBlockSelectors:[".MUFPAc"],globalStyles:{".V82bz":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px",".pe7FNb":"-webkit-line-clamp: unset;",".promotion-3PDMAb":"display: none;",".uAKcGb":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px","div[data-content-feature='1'] > div":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:2']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:3']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:4']":"-webkit-line-clamp: unset;max-height: unset;",".Pw4Ldf.RsCEN":"height:unset;",".related-question-pair":"overflow:auto;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,searchEnhancementConfig:[{id:"google",urlMatch:"https://www\\.google\\..+/search",style:{source:"font-size:12px; margin-bottom: 6px;",enTitle:"margin-top:6px;font-size:14px;",searchTitle:"margin-top:6px;position:relative;padding-right:24px;",more:"color:#1a0dab;margin-top:8px;",enTitleClassName:"immersive-translate-search-enhancement-en-title"},keyword:{value:"[0]$1",matches:[{source:"url",matchRegex:"q=(.+?)&"}]},showCount:5}]},{id:"lowendtalk",matches:"lowendtalk.com",selectors:["[role=heading]","h1",".userContent"]},{id:"linkedinJobs",matches:"www.linkedin.com/jobs/*",selectors:["#job-details > span"]},{id:"linkedinFeed",matches:"https://linkedin.com/feed/*",selectors:["h1",".feed-shared-update-v2__description-wrapper"]},{id:"indiehackers",matches:"www.indiehackers.com",selectors:[".content","h1","h3.story__title",".feed-item__title-link",".article-body"]},{id:"libreddit",matches:"libreddit.de",selectors:["h2.post_title",".comment_body > .md"]},{id:"notionSite",matches:["notion.site","*.notion.site"],normalizeBody:"body",selectors:["div[data-block-id]"]},{id:"newyorker",matches:"www.newyorker.com",additionalSelectors:["h1","[data-testid=SummaryItemHed]"],excludeSelectors:["[data-testid=PersistentTop]","[data-testid=StackedNavigationHeader]"],urlChangeDelay:2e3},{id:"startme",matches:"start.me",selectors:[".rss-article__title",".rss-articles-list__article-link",".rss-showcase__title",".rss-showcase__text"]},{id:"scmp",matches:"www.scmp.com",additionalSelectors:[".info__subHeadline",".section-content h2"],globalStyles:{".topic__article-list":"height: unset;",".adverisers__adveriser":"height: unset;",".advertiser__content":"height: unset;",".content-title__link":"display:unset;overflow:unset;-webkit-line-clamp:unset;",".title__text":"max-height:unset; -webkit-line-clamp:unset;",".news-list-item__news-title":"max-height:unset; -webkit-line-clamp:unset;","a[class*='link'] > .link__headline":"max-height:unset; -webkit-line-clamp:unset;"}},{id:"lesswrong",matches:"www.lesswrong.com",extraBlockSelectors:["span.commentOnSelection"]},{id:"mastodon",matches:["mastodon.social","mastodon.online","kolektiva.social","indieweb.social","mastodon.world","infosec.exchange"],isTranslateTitle:!1,selectorMatches:["div#mastodon"],selectors:["div.status__content__text",".about__section__body",".content",".form-container",".account__header__extra"],globalAttributes:{"[class='notranslate app-holder']":{class:"app-holder"}},detectLanguage:!0},{id:"cnbc",matches:"www.cnbc.com",urlChangeDelay:1e3,globalStyles:{"div.Card-titleContainer > div":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"dailyDev",matches:"app.daily.dev",selectors:["h1",".typo-body","article h3","[class^=markdown_markdown]"],globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset"}},{id:"pornhub",matches:["*.pornhub.com","pornhub.com"],excludeMatches:["*.pornhub.com/insights/*","pornhub.com/insights/*"],extraBlockSelectors:[".trendingNow",".searchItem",".tagcloud > a"],detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:` `,globalStyles:{"span.title":"height:unset; max-height:unset;",".detailedInfo":"max-height:unset;",".pcVideoListItem":"max-height:unset;",".wrap":"height:unset;",".entry-header":"height:unset;",".entry-title > a":"height:unset;-webkit-line-clamp:unset;"}},{id:"yourporn",matches:"https://www.youporn.com/*",extraBlockSelectors:[".button"],globalStyles:{".video-box":"max-height:unset;",".video-box-title":"white-space:unset;"}},{id:"modelhub",matches:"https://www.modelhub.com/*",globalStyles:{".videoTitle":"height:unset;",a:"height:unset;"}},{id:"xvideos",matches:"https://www.xvideos.com/*",globalStyles:{".title":"-webkit-line-clamp:unset;max-height:unset;",".mozaique":"display:flex; flex-wrap:wrap;"},excludeSelectors:[".video-hd-mark"]},{id:"missav",matches:"https://missav.com/*",globalStyles:{".truncate":"white-space:unset;",".overflow-y-hidden":"max-height:unset;overflow-y:unset;"}},{id:"javbus",matches:"https://www.javbus.com/*",globalStyles:{".photo-info":"height:unset;"},excludeSelectors:[".item-tag","date"]},{id:"spankbang",matches:"https://spankbang.com/*",globalStyles:{".video-item > a":"white-space:unset;"},excludeSelectors:[".stats",".thumb"],extraBlockSelectors:[".searches > a",".tag > a",".extra > a",".positions > li"]},{id:"javdb",matches:"https://javdb*.com/*",globalStyles:{".video-title":"white-space:unset;"},excludeSelectors:[".video-number",".score",".has-addons"]},{id:"jable",matches:"https://jable.tv/*",globalStyles:{".title":"white-space:unset;max-height:unset;",".img-box > a":"position:relative;"}},{id:"netflav",matches:"https://netflav*.com/*",globalStyles:{".grid_title":"max-height:unset;"},extraBlockSelectors:[".genre_filter_item","button"]},{id:"czechvideo",matches:"https://czechvideo.co/*",globalStyles:{".short-story":"height:unset;",".short-title":"height:unset;"},globalAttributes:{header:{translate:"unset;"}}},{id:"weibo",matches:["weibo.com"],selectors:["div[class^='detail_wbtext']"]},{id:"medium",matches:["medium.com","*.medium.com"],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],urlChangeDelay:20,"additionalExcludeSelectors.remove":["i.fa","i[class^=fa-]",".navmenu-container",".google-symbols","markerow8"],selectors:["h1","h2","article section","[aria-hidden='false'] pre","article p"],excludeSelectors:["[aria-label='Post Preview Reading Time']",".al.b.bl.ag.bp",".al.b.bl.ag.ai"],globalStyles:{h2:"-webkit-line-clamp: unset;max-height:unset;","article p":"-webkit-line-clamp: unset;max-height:unset;"}},{id:"nitter",selectorMatches:["meta[property='og:site_name'][content='Nitter']"],selectors:[".tweet-content",".quote-text"]},{id:"economist",matches:"www.economist.com",extraInlineSelectors:["span[data-caps='initial']"],excludeSelectors:["footer.ds-footer"],injectedCss:["a::before {position:relative!important;}"]},{id:"healthline",matches:"www.healthline.com",excludeSelectors:[".icon-hl-trusted-source-after"]},{id:"ebay",matches:"www.ebay.com",excludeSelectors:["headers","[itemprop=offers]",".dne-itemtile-original-price"],paragraphMinTextCount:4,paragraphMinWordCount:2,globalStyles:{"[itemprop=name]":"-webkit-line-clamp: unset;max-height: unset;",".merch-item-title":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"skinstore",matches:"www.skinstore.com",excludeSelectors:[".responsiveFlyoutMenu_levelOneLink"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"tripadvisor",matches:"www.tripadvisor.com",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"amazon",matches:"www.amazon.com",paragraphMinTextCount:4,paragraphMinWordCount:2,extraBlockSelectors:[".a-size-small.a-link-normal.page-banner-link.a-nowrap"],globalStyles:{".a-carousel-viewport":"height:unset;","[class*='clamp']":"max-height: unset;-webkit-line-clamp: unset;","[data-rows]":"max-height: unset;-webkit-line-clamp: unset;","[data-a-expander-name='review_text_read_more']":" max-height: unset;"},excludeSelectors:["#navFooter","#navbar-main",".s-price-instructions-style","[class*='star']","[data-hook='acr-average-stars-rating-text']",".a-color-price"]},{id:"visualstudioMarketplace",matches:"marketplace.visualstudio.com",additionalExcludeSelectors:[".core-info-second-row",".core-info-third-row",".meta-data-list",".item-title",".breadcrumb",".itemDetails-right",".ux-user-name",".ux-updated-date",".ux-item-second-row-wrapper",".stats-and-offer",".header-container"],atomicBlockSelectors:[".core-info-cell > div.name"],globalStyles:{".item-details-control-root.ux-item-shortdesc":"height: unset; overflow: visible; max-height:unset;"}},{id:"bloomberg",matches:"www.bloomberg.com",urlChangeDelay:2e3,excludeSelectors:[".ticker-bar","nav","[aria-label=Banner]","aside","[data-component=ticker-bar]","footer.bb-global-footer"]},{id:"baiduXueshu",matches:"xueshu.baidu.com",globalStyles:{".abstract_wr":"height: unset; overflow: visible; max-height:unset;"}},{id:"sciencedirect",matches:"www.sciencedirect.com",urlChangeDelay:2e3,stayOriginalSelectors:["span.display","span.math"],extraBlockSelectors:["span.captions","span[id^=cap]"]},{id:"thehighestofthemountains",matches:"www.thehighestofthemountains.com",extraBlockSelectors:"div"},{id:"telegraph1",matches:"te.legra.ph",normalizeBody:"div.ql-editor[contenteditable='false']",urlChangeDelay:500},{id:"telegraph2",matches:["telegra.ph"],normalizeBody:"div.ql-editor[contenteditable='false']",wrapperPrefix:` -`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main > div > div[class*='h-[125]']":"height:auto"},normalizeBody:"body",extraBlockSelectors:["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,normalizeBody:"#mw-content-text",globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"]},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"}},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:"chat.openai.com",excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0}},{id:"newstop",matches:["chat.newstop.asia","chat.waixingyun.cn"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".n-button.n-button--warning-type.n-button--medium-type",messageWrapperSelector:".markdown-body",streamingChange:!1,streamingDeepChild:!0}},{id:"askgpt",matches:["askgpt.cn","chatcat.zhaoyoung.me"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".home_chat-message-status__EsVNi",messageWrapperSelector:".markdown-body",streamingChange:!0,streamingDeepChild:!0}},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__UyYrv *",".MarkdownLink_linkifiedLink__KxC9G"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__UyYrv",streamingChange:!1,streamingDeepChild:!0}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"newthingsunderthesun",matches:"www.newthingsunderthesun.com",additionalSelectors:["[translate=no]"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"https://steamcommunity.com/app/*",globalStyles:{".forum_topic":"height:auto;",".forum_topic_name":"white-space:normal;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampowered",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:"https://www.webofscience.com/*",globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},excludeSelectors:[".summary-left-panel",".authors","app-full-record-keywords mark"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],extraBlockSelectors:["app-summary-authors + div","app-full-record-keywords span span"],observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://www.jetbrains.com/help/*",extraBlockSelectors:["[data-test=prompt]"]},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails p"]},{id:"isEbook",isEbook:!0,isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span"},{id:"isEbookBuilder",isEbookBuilder:!0,isTranslateTitle:!1,targetWrapperTag:"span",selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com",extraBlockSelectors:["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],extraBlockSelectors:"font[face=verdana]"},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"isSubtitleBuilder",isSubtitleBuilder:!0,selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,wrapperPrefix:"",wrapperSuffix:""},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/",extraBlockSelectors:[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"vimeo",matches:"https://player.vimeo.com/video/*",extraBlockSelectors:["span.vp-captions-line","span[class^=CaptionsRenderer_]"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexityAi",matches:"https://www.perplexity.ai/search/*",extraBlockSelectors:[".prose > span"],additionalStayOriginalSelectors:["a.citation"],insertPosition:"afterend"},{id:"perplexity",matches:"https://www.perplexity.ai",globalStyles:{".line-clamp-1":"-webkit-line-clamp: unset !important;",".line-clamp-2":"-webkit-line-clamp: unset !important;"}},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"babelnovel",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*"],urlChangeDelay:0},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0},{globalAttributes:{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"youtrackJetbrains",matches:"youtrack.jetbrains.com/articles/*",selectors:["[role=presentation]","[data-test=article-content]"],excludeSelectors:[".toolbar__ee8"]},{id:"bbc",matches:"www.bbc.com",excludeSelectors:["section.module--languages",".drop-capped"]},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}}},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"openai",matches:"https://platform.openai.com/docs/*",urlChangeDelay:0},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout":"height:unset !important;",".EntrySummary--u4":"-webkit-line-clamp: unset;max-height:unset;",".EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:[".copyable-text > span"],wrapperPrefix:` -`,wrapperSuffix:"
"},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],globalStyles:{"[class*='lineclamp']":"-webkit-line-clamp:unset;"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],extraBlockSelectors:[".SIPGg",".sc-kzMCTH.pSZXj"],globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"]},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*",globalAttributes:{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead"],injectedCss:["a::after {position:relative!important;}"]},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},globalAttributes:{"#app":{class:""}}},{id:"haproxy",matches:["docs.haproxy.org","www.oreilly.com/openbook/opensources/book/*"],excludeTags:[],stayOriginalSelectors:[],stayOriginalTags:[],isTransformPreTagNewLine:!0},{id:"piAi",matches:"pi.ai/talk",excludeSelectors:[".whitespace-pre-wrap > span *"],aiRule:{streamingSelector:"button[class*='fixed'][disabled]",messageWrapperSelector:".whitespace-pre-wrap",streamingChange:!1,streamingDeepChild:!1},globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *"],"excludeTags.remove":["PRE"],injectedCss:"[data-testid='chat-menu-trigger'] br {display:none;}",aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1}},{id:"feishu",matches:"*.feishu.cn","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],excludeSelectors:[".catalogue__list"]},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"bugsWebkit",matches:"bugs.webkit.org",isTransformPreTagNewLine:!0},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",matches:"www.kaggle.com",excludeTags:["i","button"]},{id:"ieee",matches:"spectrum.ieee.org",extraBlockSelectors:["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"www.cnn.com",excludeSelectors:[".ad-slot-header__wrapper"]},{id:"marginalrevolution",matches:"marginalrevolution.com",globalAttributes:{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",condition:{enableSubtitle:{false:{"excludeSelectors.add":[".bpx-player-subtitle-panel-text"]}}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"docs-oracle",matches:"docs.oracle.com",urlChangeDelay:0},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"edstem",matches:"edstem.org","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:"pubmed.ncbi.nlm.nih.gov",urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share"]},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"tldrnewsletter",matches:"actions.tldrnewsletter.com","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"bugzilla",matches:"bugzilla.mozilla.org","excludeTags.remove":["PRE"],isTransformPreTagNewLine:!0},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"excludeSelectors.add":["aside",".DocSearch-Modal"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"mail.qq.com",useIframePostMessage:!1},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]}]};m();m();function xa(e){return Array.isArray(e)?e:e?[e]:[]}function vs(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function Vn(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function eo(e,t){let n={...e};return cd(n,t),N1(n,t),n}function ld(e,t,n){let a={...t};return j1(e,a,n),a}function N1(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},a=t.condition.enableSubtitle?.false||{},r=e.enableSubtitle?n:a;cd(e,r)}function j1(e,t,n){try{return Object.keys(t).forEach(a=>{let[r,u]=a.split(".");if(u){let o=t[a];if(Array.isArray(e[r])&&(o=xa(t[a])),u==="add"){t[r]=zr(e[r],o),delete t[a];return}else if(u=="remove"){t[r]=As(e[r],o),delete t[a];return}}}),Object.keys(n).forEach(a=>{let[r,u]=a.split(".");if(!r||n[a]===void 0)return;let o=n[a],i=t[r];if(Array.isArray(e[r])&&(o=xa(n[a]),i=xa(t[r])),u==="add"){t[r]=zr(i,o);return}else if(u=="remove"){t[r]=As(i,o);return}Array.isArray(i)&&r.startsWith("additional")?t[r]=zr(i,o):t[r]=o}),t}catch{}}function cd(e,t){return Object.keys(t).forEach(n=>{let[a,r]=n.split(".");if(!a||t[n]===void 0)return;let u=t[n];if(Array.isArray(e[a])&&(u=xa(t[n])),r==="add"){e[a]=zr(e[a],u);return}else if(r=="remove"){e[a]=As(e[a],u);return}Array.isArray(e[a])&&a.startsWith("additional")?e[a]=zr(e[a],u):e[a]=u}),e}function zr(e,t){let n;if(Array.isArray(e)){let a=xa(t);n=[...e,...a],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"&&(n={...e,...t});return n}function As(e,t){if(Array.isArray(e)){let n=xa(t);return e=e.filter(a=>!n.includes(a)),Array.from(new Set(e))}else typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(n=>{delete e[n]});return e}function dd(){if(Ee.PROD==="1")return{};let e={};if(Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:Ee.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:Ee.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:Ee.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(Ee.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=Ee.DEEPL_PROXY_ENDPOINT),Ee.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=Ee.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),Ee.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:Ee.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}Ee.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=Ee.IMMERSIVE_TRANSLATE_SERVICE);let t={};return Ee.DEBUG==="1"&&(t.debug=!0,t.cache=!1),Ee.MOCK==="1"&&(t.translationService="mock"),t}async function Yn(){let e=await ue.storage.local.get(Dr);if(e[Dr]){let t=e[Dr],n=t.tempTranslationUrlMatches||[],a=n.filter(o=>o.expiredAt>Date.now()),r=!1;a.length!==n.length&&(n=a,r=!0);let u={...t,tempTranslationUrlMatches:[...n]};return r&&await kn(u),u}else return{}}async function kn(e){await ue.storage.local.set({[Dr]:e})}async function md(e){await ue.storage.local.set({[Wn]:e})}async function gd(){let e=await ue.storage.local.get(Wn),n={...pd(),...Xu,buildinConfigUpdatedAt:Ee.BUILD_TIME};if(e[Wn]){let a=e[Wn];if(a&&a.buildinConfigUpdatedAt){let r=new Date(a.buildinConfigUpdatedAt),u=new Date(n.buildinConfigUpdatedAt);r>u&&(n=a)}}return n}async function Jn(){let e=await ue.storage.local.get(Wn),t={...Xu,buildinConfigUpdatedAt:Ee.BUILD_TIME};if(e[Wn]){let M=e[Wn];if(M&&M.buildinConfigUpdatedAt){let x=new Date(M.buildinConfigUpdatedAt),L=new Date(t.buildinConfigUpdatedAt);x>L&&(t=M)}}let n=await Nt.get(en,null),a={};if(!fe()&&ue.commands&&ue.commands.getAll){let M=await ue.commands.getAll();for(let x of M)x.name&&x.shortcut&&(a[x.name]=x.shortcut)}let r=pd(),u=dd(),o=await ks(),i=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},s=await Yn(),c=new Date;if(s&&s.tempTranslationUrlMatches&&s.tempTranslationUrlMatches.length>0){let M=s.tempTranslationUrlMatches.filter(x=>new Date(x.expiredAt)>c);if(M.length>0){let x=o.translationUrlPattern?o.translationUrlPattern?.matches||[]:[],L=Array.isArray(x)?x:[x],I=Array.from(new Set(L.concat(M.map($=>$.match))));o.translationUrlPattern={...o.translationUrlPattern,matches:I}}}let l=Object.assign({},i,u,o);if(!l.interfaceLanguage){let M=await U1();l.interfaceLanguage=M}let g=l.interfaceLanguage==="en",p=l.targetLanguage==="en",f=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,d=["bing","google","transmart","mock"].includes(l.translationService)||!l.translationService;!g&&!p&&!f&&d?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let b=t&&t.enableDefaultAlwaysTranslatedUrls;l.enableDefaultAlwaysTranslatedUrls===!1&&(b=!1);let C=l&&l.isChangedAlwaysTranslatedUrls,h=[];l.translationUrlPattern&&l.translationUrlPattern.matches&&(h=l.translationUrlPattern.matches||[]);let A=!1;C===void 0&&(h.length>0?C=!0:C=!1,l.isChangedAlwaysTranslatedUrls=C,o.isChangedAlwaysTranslatedUrls=C,A=!0);let S=(l?.translationLanguagePattern?.matches?.length||0)>0,U=await St("installedAt",""),R=Number(await On("translage_page_daily",0)),y=Number(await St(fn,0)),T;y>0&&(Date.now()-y0&&(Date.now()-Rz.id&&I[z.id]?ld(t.generalRule,I[z.id],z):z);B[x]=[...$,...B[x]]}if(Ee.PROD==="0"&&Ee.DEV_RULES){let L=JSON.parse(Ee.DEV_RULES);B[x]=[...L,...B[x]]}}else l[x]!==void 0&&(B[x]=l[x])}return B.donateUrl=t.donateUrl,B.minVersion=t.minVersion,B.feedbackUrl=t.feedbackUrl,B}async function ks(){return(await ue.storage.sync.get("userConfig")||{}).userConfig||{}}async function Ss(e){await ue.storage.sync.set({userConfig:e})}var U1=async()=>{let e=["zh-CN"];try{e=await ue.i18n.getAcceptLanguages()}catch(a){j.warn("get browser language error:",a)}let n=e.map(a=>qa(a)).find(a=>Ot[a]);return n||"en"},pd=()=>{let e={...Xu,buildinConfigUpdatedAt:Ee.BUILD_TIME};return{...e,targetLanguage:Uu,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing"},rules:[]}};function z1(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(a=>!e.includes(a)).length>0}m();m();function Qn(e,t){var n=(e&65535)+(t&65535),a=(e>>16)+(t>>16)+(n>>16);return a<<16|n&65535}function H1(e,t){return e<>>32-t}function no(e,t,n,a,r,u){return Qn(H1(Qn(Qn(t,e),Qn(a,u)),r),n)}function xt(e,t,n,a,r,u,o){return no(t&n|~t&a,e,t,r,u,o)}function Et(e,t,n,a,r,u,o){return no(t&a|n&~a,e,t,r,u,o)}function Tt(e,t,n,a,r,u,o){return no(t^n^a,e,t,r,u,o)}function Ct(e,t,n,a,r,u,o){return no(n^(t|~a),e,t,r,u,o)}function to(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,a,r,u,o,i=1732584193,s=-271733879,c=-1732584194,l=271733878;for(n=0;n>5]>>>t%32&255);return n}function Ds(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(a=to(a,e.length*8)),n=0;n<16;n+=1)r[n]=a[n]^909522486,u[n]=a[n]^1549556828;return o=to(r.concat(Ds(t)),512+t.length*8),fd(to(u.concat(o),512+128))}function hd(e){var t="0123456789abcdef",n="",a,r;for(r=0;r>>4&15)+t.charAt(a&15);return n}function Ls(e){return unescape(encodeURIComponent(e))}function bd(e){return q1(Ls(e))}function $1(e){return hd(bd(e))}function yd(e,t){return W1(Ls(e),Ls(t))}function K1(e,t){return hd(yd(e,t))}function Zn(e,t,n){return t?n?yd(t,e):K1(t,e):n?bd(e):$1(e)}m();function xd(e,t,n){let a=G1(e,t),r=[],u={from:e[0].from,fromByClient:e[0].fromByClient,to:e[0].to,tempSentences:[],url:e[0].url};for(let o of a)(u.tempSentences.reduce((s,c)=>s+c.text.length,0)+o.text.length>t||u.tempSentences.length>=n)&&(r.push(u),u={fromByClient:u.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}),(u.from!==o.from||u.to!==o.to)&&(u.tempSentences.length>0?(r.push(u),u={fromByClient:u.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}):(u.from=o.from,u.to=o.to)),u.tempSentences.push(o);return u.tempSentences.length>0&&r.push(u),r}function G1(e,t){let n=[],a=[];for(let r=0;r0?d header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,normalizeBody:"#mw-content-text",globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"]},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"}},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:"chat.openai.com",excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0}},{id:"newstop",matches:["chat.newstop.asia","chat.waixingyun.cn"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".n-button.n-button--warning-type.n-button--medium-type",messageWrapperSelector:".markdown-body",streamingChange:!1,streamingDeepChild:!0}},{id:"askgpt",matches:["askgpt.cn","chatcat.zhaoyoung.me"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".home_chat-message-status__EsVNi",messageWrapperSelector:".markdown-body",streamingChange:!0,streamingDeepChild:!0}},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__UyYrv *",".MarkdownLink_linkifiedLink__KxC9G"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__UyYrv",streamingChange:!1,streamingDeepChild:!0}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"newthingsunderthesun",matches:"www.newthingsunderthesun.com",additionalSelectors:["[translate=no]"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"https://steamcommunity.com/app/*",globalStyles:{".forum_topic":"height:auto;",".forum_topic_name":"white-space:normal;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampowered",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:"https://www.webofscience.com/*",globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},excludeSelectors:[".summary-left-panel",".authors","app-full-record-keywords mark"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],extraBlockSelectors:["app-summary-authors + div","app-full-record-keywords span span"],observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://www.jetbrains.com/help/*",extraBlockSelectors:["[data-test=prompt]"]},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails p"]},{id:"isEbook",isEbook:!0,isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span"},{id:"isEbookBuilder",isEbookBuilder:!0,isTranslateTitle:!1,targetWrapperTag:"span",selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com",extraBlockSelectors:["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],extraBlockSelectors:"font[face=verdana]"},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"isSubtitleBuilder",isSubtitleBuilder:!0,selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,wrapperPrefix:"",wrapperSuffix:""},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/",extraBlockSelectors:[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"vimeo",matches:"https://player.vimeo.com/video/*",extraBlockSelectors:["span.vp-captions-line","span[class^=CaptionsRenderer_]"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexityAi",matches:"https://www.perplexity.ai/search/*",extraBlockSelectors:[".prose > span"],additionalStayOriginalSelectors:["a.citation"],insertPosition:"afterend"},{id:"perplexity",matches:"https://www.perplexity.ai",globalStyles:{".line-clamp-1":"-webkit-line-clamp: unset !important;",".line-clamp-2":"-webkit-line-clamp: unset !important;"}},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"babelnovel",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*"],urlChangeDelay:0},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0},{globalAttributes:{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"youtrackJetbrains",matches:"youtrack.jetbrains.com/articles/*",selectors:["[role=presentation]","[data-test=article-content]"],excludeSelectors:[".toolbar__ee8"]},{id:"bbc",matches:"www.bbc.com",excludeSelectors:["section.module--languages",".drop-capped"]},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}}},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"openai",matches:"https://platform.openai.com/docs/*",urlChangeDelay:0},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout":"height:unset !important;",".EntrySummary--u4":"-webkit-line-clamp: unset;max-height:unset;",".EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:[".copyable-text > span"],wrapperPrefix:` +`,wrapperSuffix:"
"},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],globalStyles:{"[class*='lineclamp']":"-webkit-line-clamp:unset;"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],extraBlockSelectors:[".SIPGg",".sc-kzMCTH.pSZXj"],globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"]},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*",globalAttributes:{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead"],injectedCss:["a::after {position:relative!important;}"]},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},globalAttributes:{"#app":{class:""}}},{id:"haproxy",matches:["docs.haproxy.org","www.oreilly.com/openbook/opensources/book/*"],excludeTags:[],stayOriginalSelectors:[],stayOriginalTags:[],isTransformPreTagNewLine:!0},{id:"piAi",matches:"pi.ai/talk",excludeSelectors:[".whitespace-pre-wrap > span *"],aiRule:{streamingSelector:"button[class*='fixed'][disabled]",messageWrapperSelector:".whitespace-pre-wrap",streamingChange:!1,streamingDeepChild:!1},globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *"],"excludeTags.remove":["PRE"],injectedCss:"[data-testid='chat-menu-trigger'] br {display:none;}",aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1}},{id:"feishu",matches:"*.feishu.cn","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],excludeSelectors:[".catalogue__list"]},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"bugsWebkit",matches:"bugs.webkit.org",isTransformPreTagNewLine:!0},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",matches:"www.kaggle.com",excludeTags:["i","button"]},{id:"ieee",matches:"spectrum.ieee.org",extraBlockSelectors:["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"www.cnn.com",excludeSelectors:[".ad-slot-header__wrapper"]},{id:"marginalrevolution",matches:"marginalrevolution.com",globalAttributes:{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",condition:{enableSubtitle:{false:{"excludeSelectors.add":[".bpx-player-subtitle-panel-text"]}}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"docs-oracle",matches:"docs.oracle.com",urlChangeDelay:0},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"edstem",matches:"edstem.org","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:"pubmed.ncbi.nlm.nih.gov",urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share"]},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"tldrnewsletter",matches:"actions.tldrnewsletter.com","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"bugzilla",matches:"bugzilla.mozilla.org","excludeTags.remove":["PRE"],isTransformPreTagNewLine:!0},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"excludeSelectors.add":["aside",".DocSearch-Modal"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"mail.qq.com",useIframePostMessage:!1},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]}]};m();m();function Ea(e){return Array.isArray(e)?e:e?[e]:[]}function vs(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function Vn(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function Xu(e,t){let n={...e};return dd(n,t),N1(n,t),n}function cd(e,t,n){let a={...t};return j1(e,a,n),a}function N1(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},a=t.condition.enableSubtitle?.false||{},r=e.enableSubtitle?n:a;dd(e,r)}function j1(e,t,n){try{return Object.keys(t).forEach(a=>{let[r,u]=a.split(".");if(u){let o=t[a];if(Array.isArray(e[r])&&(o=Ea(t[a])),u==="add"){t[r]=zr(e[r],o),delete t[a];return}else if(u=="remove"){t[r]=As(e[r],o),delete t[a];return}}}),Object.keys(n).forEach(a=>{let[r,u]=a.split(".");if(!r||n[a]===void 0)return;let o=n[a],i=t[r];if(Array.isArray(e[r])&&(o=Ea(n[a]),i=Ea(t[r])),u==="add"){t[r]=zr(i,o);return}else if(u=="remove"){t[r]=As(i,o);return}Array.isArray(i)&&r.startsWith("additional")?t[r]=zr(i,o):t[r]=o}),t}catch{}}function dd(e,t){return Object.keys(t).forEach(n=>{let[a,r]=n.split(".");if(!a||t[n]===void 0)return;let u=t[n];if(Array.isArray(e[a])&&(u=Ea(t[n])),r==="add"){e[a]=zr(e[a],u);return}else if(r=="remove"){e[a]=As(e[a],u);return}Array.isArray(e[a])&&a.startsWith("additional")?e[a]=zr(e[a],u):e[a]=u}),e}function zr(e,t){let n;if(Array.isArray(e)){let a=Ea(t);n=[...e,...a],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"&&(n={...e,...t});return n}function As(e,t){if(Array.isArray(e)){let n=Ea(t);return e=e.filter(a=>!n.includes(a)),Array.from(new Set(e))}else typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(n=>{delete e[n]});return e}function md(){if(Ee.PROD==="1")return{};let e={};if(Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:Ee.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:Ee.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:Ee.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(Ee.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=Ee.DEEPL_PROXY_ENDPOINT),Ee.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=Ee.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),Ee.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:Ee.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}Ee.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=Ee.IMMERSIVE_TRANSLATE_SERVICE);let t={};return Ee.DEBUG==="1"&&(t.debug=!0,t.cache=!1),Ee.MOCK==="1"&&(t.translationService="mock"),t}async function Yn(){let e=await ue.storage.local.get(Dr);if(e[Dr]){let t=e[Dr],n=t.tempTranslationUrlMatches||[],a=n.filter(o=>o.expiredAt>Date.now()),r=!1;a.length!==n.length&&(n=a,r=!0);let u={...t,tempTranslationUrlMatches:[...n]};return r&&await kn(u),u}else return{}}async function kn(e){await ue.storage.local.set({[Dr]:e})}async function gd(e){await ue.storage.local.set({[Wn]:e})}async function pd(){let e=await ue.storage.local.get(Wn),n={...fd(),...Zu,buildinConfigUpdatedAt:Ee.BUILD_TIME};if(e[Wn]){let a=e[Wn];if(a&&a.buildinConfigUpdatedAt){let r=new Date(a.buildinConfigUpdatedAt),u=new Date(n.buildinConfigUpdatedAt);r>u&&(n=a)}}return n}async function Jn(){let e=await ue.storage.local.get(Wn),t={...Zu,buildinConfigUpdatedAt:Ee.BUILD_TIME};if(e[Wn]){let M=e[Wn];if(M&&M.buildinConfigUpdatedAt){let x=new Date(M.buildinConfigUpdatedAt),L=new Date(t.buildinConfigUpdatedAt);x>L&&(t=M)}}let n=await jt.get(Nt,null),a={};if(!pe()&&ue.commands&&ue.commands.getAll){let M=await ue.commands.getAll();for(let x of M)x.name&&x.shortcut&&(a[x.name]=x.shortcut)}let r=fd(),u=md(),o=await ks(),i=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},s=await Yn(),c=new Date;if(s&&s.tempTranslationUrlMatches&&s.tempTranslationUrlMatches.length>0){let M=s.tempTranslationUrlMatches.filter(x=>new Date(x.expiredAt)>c);if(M.length>0){let x=o.translationUrlPattern?o.translationUrlPattern?.matches||[]:[],L=Array.isArray(x)?x:[x],I=Array.from(new Set(L.concat(M.map($=>$.match))));o.translationUrlPattern={...o.translationUrlPattern,matches:I}}}let l=Object.assign({},i,u,o);if(!l.interfaceLanguage){let M=await U1();l.interfaceLanguage=M}let g=l.interfaceLanguage==="en",p=l.targetLanguage==="en",f=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,d=["bing","google","transmart","mock"].includes(l.translationService)||!l.translationService;!g&&!p&&!f&&d?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let b=t&&t.enableDefaultAlwaysTranslatedUrls;l.enableDefaultAlwaysTranslatedUrls===!1&&(b=!1);let C=l&&l.isChangedAlwaysTranslatedUrls,h=[];l.translationUrlPattern&&l.translationUrlPattern.matches&&(h=l.translationUrlPattern.matches||[]);let A=!1;C===void 0&&(h.length>0?C=!0:C=!1,l.isChangedAlwaysTranslatedUrls=C,o.isChangedAlwaysTranslatedUrls=C,A=!0);let S=(l?.translationLanguagePattern?.matches?.length||0)>0,U=await St("installedAt",""),R=Number(await On("translage_page_daily",0)),y=Number(await St(fn,0)),T;y>0&&(Date.now()-y0&&(Date.now()-Rz.id&&I[z.id]?cd(t.generalRule,I[z.id],z):z);B[x]=[...$,...B[x]]}if(Ee.PROD==="0"&&Ee.DEV_RULES){let L=JSON.parse(Ee.DEV_RULES);B[x]=[...L,...B[x]]}}else l[x]!==void 0&&(B[x]=l[x])}return B.donateUrl=t.donateUrl,B.minVersion=t.minVersion,B.feedbackUrl=t.feedbackUrl,B}async function ks(){return(await ue.storage.sync.get("userConfig")||{}).userConfig||{}}async function Ss(e){await ue.storage.sync.set({userConfig:e})}var U1=async()=>{let e=["zh-CN"];try{e=await ue.i18n.getAcceptLanguages()}catch(a){j.warn("get browser language error:",a)}let n=e.map(a=>Wa(a)).find(a=>Ot[a]);return n||"en"},fd=()=>{let e={...Zu,buildinConfigUpdatedAt:Ee.BUILD_TIME};return{...e,targetLanguage:ju,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing"},rules:[]}};function z1(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(a=>!e.includes(a)).length>0}m();m();function Qn(e,t){var n=(e&65535)+(t&65535),a=(e>>16)+(t>>16)+(n>>16);return a<<16|n&65535}function H1(e,t){return e<>>32-t}function to(e,t,n,a,r,u){return Qn(H1(Qn(Qn(t,e),Qn(a,u)),r),n)}function xt(e,t,n,a,r,u,o){return to(t&n|~t&a,e,t,r,u,o)}function Et(e,t,n,a,r,u,o){return to(t&a|n&~a,e,t,r,u,o)}function Tt(e,t,n,a,r,u,o){return to(t^n^a,e,t,r,u,o)}function Ct(e,t,n,a,r,u,o){return to(n^(t|~a),e,t,r,u,o)}function eo(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,a,r,u,o,i=1732584193,s=-271733879,c=-1732584194,l=271733878;for(n=0;n>5]>>>t%32&255);return n}function Ds(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(a=eo(a,e.length*8)),n=0;n<16;n+=1)r[n]=a[n]^909522486,u[n]=a[n]^1549556828;return o=eo(r.concat(Ds(t)),512+t.length*8),hd(eo(u.concat(o),512+128))}function bd(e){var t="0123456789abcdef",n="",a,r;for(r=0;r>>4&15)+t.charAt(a&15);return n}function Ls(e){return unescape(encodeURIComponent(e))}function yd(e){return q1(Ls(e))}function $1(e){return bd(yd(e))}function xd(e,t){return W1(Ls(e),Ls(t))}function K1(e,t){return bd(xd(e,t))}function Zn(e,t,n){return t?n?xd(t,e):K1(t,e):n?yd(e):$1(e)}m();function Ed(e,t,n){let a=G1(e,t),r=[],u={from:e[0].from,fromByClient:e[0].fromByClient,to:e[0].to,tempSentences:[],url:e[0].url};for(let o of a)(u.tempSentences.reduce((s,c)=>s+c.text.length,0)+o.text.length>t||u.tempSentences.length>=n)&&(r.push(u),u={fromByClient:u.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}),(u.from!==o.from||u.to!==o.to)&&(u.tempSentences.length>0?(r.push(u),u={fromByClient:u.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}):(u.from=o.from,u.to=o.to)),u.tempSentences.push(o);return u.tempSentences.length>0&&r.push(u),r}function G1(e,t){let n=[],a=[];for(let r=0;r0?dt){let h=[];Ms(b,t,h);for(let A=0;A0&&d{let i=e.lastIndexOf(o,t);return i>u?i:u},-1);if(r===-1){let u=e.slice(0,t);if(u&&!u.trim())return;n.push({text:u,prefix:"",suffix:""}),e.length>t&&Ms(e.slice(t),t,n)}else{let u=e.slice(0,r+1);if(u&&u.trim()==="")return;u.startsWith(" ")?n.push({text:u.slice(1),prefix:" ",suffix:""}):n.push({text:u,prefix:"",suffix:""}),r+10){l.forEach(d=>{c.length>0&&d.providers&&d.providers.length>0&&!d.providers.includes(s)||(d.optional?p.push(d):g.push(d))});let f=p.concat(g).filter(d=>d.required);if(f.length>0){for(let d of f)if(!r[d.name]){i=!1;break}}}return{...a,id:t,selected:n[e]===t,ok:i,currentProvider:s,config:r,providers:a.providers||[],props:a.props||[],allProps:l,optionalProps:p,explicitProps:g}}var Ed=(e,t)=>{let{config:n}=e,a=n.alpha,r=n.beta,u=n.canary,o=n.debug,i=e.user,s=tn(i);return Object.keys(Bn).filter(l=>{let g=Bn[l];if(l.startsWith("mock"))return o?!0:l===e.config[t];if(l===e.config[t])return!0;if(l==="openai"&&Rt())return e.config.showOpenaiOnSafari||s?!0:!!(r||a||u||s);let p=!!g.canary,f=!!g.alpha,d=!!g.beta;return l===e[t]||p&&u||f&&(a||u)||d&&(r||a||u)?!0:!f&&!d&&!p}).map(l=>Fs(t,l,e))};function hn(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}var $a=[];async function ao(e,t){return await new Promise((n,a)=>{let r=e,u=1,o=indexedDB.open(r,u);o.onsuccess=i=>{n(o.result)},o.onerror=i=>{a()},o.onupgradeneeded=i=>{let s=o.result,c=t||"cache";s.createObjectStore(c,{keyPath:"key"})}})}async function Td(e){let t=`${J}-${e.service}@${e.from}->${e.to}`;return await J1(t,e)}async function Cd(e){let t=Zn(e.originalText),n=`${J}-${e.service}@${e.from}->${e.to}`;return await Y1(n,t)}async function Y1(e,t){let n=await ao(e);return await new Promise((a,r)=>{if(!n)return r();let u="cache",i=n.transaction([u],"readonly").objectStore(u).get(t);i.onsuccess=s=>{n.close();let c=i.result;a(c)},i.onerror=s=>{n.close(),r()}})}async function J1(e,t){let n=await ao(e);return(await Z1()).includes(e)||await Q1(e),await new Promise(r=>{if(!n)return r(!1);let u="cache",i=n.transaction([u],"readwrite").objectStore(u).put(t);i.onsuccess=s=>{n.close(),r(!0)},i.onerror=s=>{n.close(),r(!1)}})}async function Q1(e){let t="cache_list",n=await ao(J+"-cacheList",t),r=n.transaction([t],"readwrite").objectStore(t).put({key:e});r.onsuccess=u=>{n.close(),$a.push(e)},r.onerror=u=>{n.close()}}async function Z1(){if($a&&$a.length>0)return $a;let e=await ao(J+"-cacheList","cache_list");return $a=await new Promise(t=>{let n="cache_list",r=e.transaction([n],"readonly").objectStore(n).getAllKeys();r.onsuccess=u=>{e.close(),t(r.result)},r.onerror=u=>{e.close(),t([])}}),$a}m();m();var Ps="Original";function qe(){return Ps}function Dt(e){Ps=e,wd(Ps)}m();var Ad="auto",ro="auto",vd="auto";function kd(e){Ad=e}function an(e){ro=e}function pt(){return ro!=="auto"?ro:vd!=="auto"?vd:Ad}function uo(){return ro}var Ka=async function(e,t){let{method:n,data:a}=e,r=await Pd(),u=Date.now();if(j.debug(`content script received message: ${n}`,a||" "),n==="translateTheWholePage")await Bs(a),je(fn,u);else if(n==="translateTheMainPage")await go(a),je(fn,u);else if(n==="translateToThePageEndImmediately")await Fd(a),je(fn,u);else if(n==="toggleTranslatePage")await lo(a),je(fn,u);else if(n==="toggleTranslateTheWholePage")await Md(a),je(fn,u);else if(n==="toggleTranslateTheMainPage")await Dd(a),je(fn,u);else if(n==="toggleOnlyTransation")await po(a),je(fn,u);else if(n==="translatePage")await rn(r,a),je(fn,u);else if(n==="toggleTranslationMask")await mo(a);else if(n==="restorePage")Ea();else if(n==="setCurrentPageLanguageByClient")an(a);else if(n==="retryFailedParagraphs")co();else if(n==="switchTranslationMode"){if(r.rule.isPdf)return;a&&a.mode&&Ld(a.mode)}},X1=function(e,t){let{method:n,data:a}=e;if(j.debug(`content script received sync message: ${n}`,a||" "),n==="ping")return"pong";if(n==="getPageStatus")return qe();if(n==="getCurrentPageLanguage"){let r=pt();return _s().catch(u=>{j.warn("detectCurrentPageLanguage failed",u)}),r}},oo,io;function Sd(){let e=so();Je()||e6(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function so(){return oo||(oo=new Gn("content_script",!1).getConnection("main",Ka),oo)}function e6(){return io||(io=new Gn("content_script",!1).getConnection("main_sync",X1,{sync:!0}),io)}async function Ke(e){return await so().sendMessage("background:main",e)}function oe(e){return Cu()?Yu({method:"request",data:e}):fe()||Tu()?(e.fetchPolyfill=globalThis.GM_fetch,ya(e)):Ke({method:"fetch",data:e})}function Lt(){return fe()?Jn():Ke({method:"getConfig"})}function un(e){return fe()?Ss(e):Ke({method:"setUserConfig",data:e})}function on(){return fe()?ks():Ke({method:"getUserConfig"})}function _d(){return fe()?Yn():Ke({method:"getLocalConfig"})}function fo(e){return fe()?kn(e):Ke({method:"setLocalConfig",data:e})}function Bd(e){return fe()?md(e):Ke({method:"setBuildinConfig",data:e})}async function Qe(e){if(e.text){let n=Vu(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(fe()||Rt()){let n=ed(e.text,e.minLength,e.pageLangs);return Promise.resolve(n)}let t=await Ke({method:"detectLanguage",data:e});return Promise.resolve(t)}function Rd(){return Ke({method:"detectTabLanguage"})}function wd(e){if(fe()){let n=new CustomEvent(Ou,{detail:e});document.dispatchEvent(n);return}so().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(n=>{})}function Od(e){return fe()?Cd(e):Ke({method:"queryParagraphCache",data:e})}async function Id(e){if(fe()){await Td(e);return}return Ke({method:"setParagraphCache",data:e})}async function Nd(){if(fe())return Promise.resolve();await Ke({method:"mockRequest"})}function Ga(e=!1,t=""){return fe()?(ue.runtime.openOptionsPage(e,t),Promise.resolve()):Ke({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function jd(e=""){return fe()||Rt()?Ve().OPTIONS_URL:ue.runtime.getURL("options.html")}function Ud(e=""){return ue&&ue.runtime&&ue.runtime.getURL?ue.runtime.getURL("options.html"):""}function ho(e=!1){return fe()?(ue.extra.openAboutPage(e),Promise.resolve()):Ke({method:"openAboutPage"})}function zd(e=!1){return fe()?(ue.extra.openSearchEnhancement(e),Promise.resolve()):Ke({method:"openSearchEnhancement"})}function bo(e){return fe()?(ue.extra.openInTab(e),Promise.resolve()):Ke({method:"openInTab",data:e})}function yo(e=!1){return fe()?(ue.extra.openEbookViewerPage(e),Promise.resolve()):Ke({method:"openEbookViewerPage"})}function Hd(e=!1){return fe()?Promise.resolve():Ke({method:"openHtmlViewerPage"})}function xo(e=!1){return fe()?(ue.extra.openEbookBuilderPage(e),Promise.resolve()):Ke({method:"openEbookBuilderPage"})}function Eo(e){Rt()}function Rs(e=!1){return fe()?(ue.extra.openPdfViewerPage(e),Promise.resolve()):Ke({method:"openPdfViewerPage"})}function qd(e=!1){return fe()?(ue.extra.openSubtitleBuilderPage(e),Promise.resolve()):Ke({method:"openSubtitleBuilderPage"})}function Os(e){return fe()?Promise.resolve():Ke({method:"setBadge",data:{text:e}})}function Wd(){return fe()?(j.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):Ke({method:"autoSyncLatestConfig"})}var $d="G-MKMD9LWFTR";async function We(e,t,n){try{let a=Ve();if(a.INSTALL_FROM==="firefox_store")return;let u=fe(),o=Je(),i=a.PROD==="1",s=`report_${e}`,c=e.endsWith("_daily");if(c){if(o)return;let k=await On(s,0),v=To(new Date(k)),E=Date.now(),B=To(new Date(E));if(v===B)return;await rd(s,E)}else if(!n.config.telemetry)return;let l="sitc4WmvShWYwfU0dANM3Q",g=await St("fakeUserId","");g||(g=await On("fakeUserId",""),g&&await je("fakeUserId",g));let p=nn(),f=new Date,d=await St("installedAt","");d||(d=await On("installedAt",""),d&&await je("installedAt",d)),g?d||(d=new Date(0).toISOString(),await je("installedAt",d)):(g=t6(32),await je("fakeUserId",g)),d||(d=f.toISOString(),await je("installedAt",d));let b=new Date(d),C=To(b),h=To(f),A=C===h,S=f.getTime()-b.getTime()<7*24*60*60*1e3,U=`https://www.google-analytics.com/mp/collect?measurement_id=${$d}&api_secret=${l}`;i||(U=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${$d}&api_secret=${l}`);let R=Na.parse(window.navigator.userAgent),y=t.map(k=>{let v=k.params||{};if(R.os&&(v.os_name=R.os.name||"unknown",v.os_version=R.os.version||"unknown",v.os_version_name=R.os.versionName||"unknown"),R.browser&&(v.browser_name=R.browser.name||"unknown",v.browser_version=R.browser.version||"unknown"),R.platform&&(v.platform_type=R.platform.type||"unknown"),R.engine&&(v.engine_name=R.engine.name||"unknown",v.engine_version=R.engine.version||"unknown"),n.translationService&&(v.translation_service||(v.translation_service=n.translationService),n.config.translationServices&&n.config.translationServices[n.translationService]&&(n.config.translationServices[n.translationService].provider&&(v.translation_service_provider=n.config.translationServices[n.translationService].provider),n.translationService==="openai"&&n.config.translationServices[n.translationService].provider==="custom"&&(n.config.translationServices[n.translationService].apiUrl?n.config.translationServices[n.translationService].apiUrl.startsWith("https://api.openai.com/")?v.openai_is_official="1":v.openai_is_official="0":v.openai_is_official="1"))),n.targetLanguage&&(v.target_language=n.targetLanguage),n.config.interfaceLanguage&&(v.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?v.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":v.enable_default_always_translated_urls="0",p&&(v.version=p),n.config.enableInputTranslation?v.enable_input_translation=n.config.enableInputTranslation?"1":"0":v.enable_input_translation="0",n.config.translationTheme&&(v.translation_theme=n.config.translationTheme),n.config.alpha&&(v.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?v.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):v.always_translate_languages="none",a.INSTALL_FROM&&(v.install_from=a.INSTALL_FROM),n.config.beta&&(v.beta=n.config.alpha.toString()),n.config.translationArea&&(v.translation_area=n.config.translationArea),n.rule&&n.rule.enableSearchEnhancement!==void 0&&(v.enable_search_enhancement=n.rule.enableSearchEnhancement?"1":"0"),C&&(v.install_day=n6(b)),n.user){let B=td(n.user);B&&Object.keys(B).forEach(P=>{v[P]=B[P]})}else v.user_type="anonymous";n.config.translationMode&&(v.translation_mode=n.config.translationMode),v.userscript=u.toString(),A?v.is_new_user_today="1":v.is_new_user_today="0",S?v.is_new_user_this_week="1":v.is_new_user_this_week="0",n.config.tempTranslateDomainMinutes?v.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():v.temp_translate_domain_minutes="0";let E="html";if(n.rule.isEbook?E="ebookReader":n.rule.isPdf?E="pdfReader":n.rule.isEbookBuilder?E="ebookBuilder":n.rule.isSubtitleBuilder&&(E="subtitleBuilder"),v.page_type=E,o?v.main_frame=0:v.main_frame=1,!c){let B=n.url;try{let P=new URL(B);v.site_host=P.hostname}catch{v.site_host="unknown"}n.sourceLanguage&&(v.source_language=n.sourceLanguage)}return{...k,params:v}}),T=await oe({responseType:"text",url:U,method:"POST",body:JSON.stringify({client_id:g,user_id:g,events:y})})}catch{}}function t6(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;rt.removeEventListener("message",n)),e.length=0}function o6(e,t,n,a){return new Promise(r=>{let u=o=>{let i=o.data;r6(t,n,i)&&i.id===a&&(e.removeEventListener("message",u),r(i.response))};e.addEventListener("message",u)})}function i6(e,t,n,a){let r=u=>{let o=u.data;Jd(t,"tell",n,o)&&a(o.body)};return e.addEventListener("message",r),[e,r]}function Kd(e,t,n,a,r,u){let o=async i=>{let s=i.data;if(Jd(n,"ask",a,s)){let c=await u(s.body);t=i.source,t.postMessage(a6(n,a,s.id,c),i.origin)}};return e.addEventListener("message",o),[e,o]}function s6(e,t,n,a,r){let u=Math.random().toString();return e.postMessage(Yd(t,"tell",n,u,a),r)}async function Gd(e,t,n,a,r,u,o){let i=Math.random().toString(),s=new Promise(async(c,l)=>{let g=setTimeout(()=>l(new Error(`Failed to get response within ${o}ms`)),o),p=await o6(e,n,a,i);clearTimeout(g),c(p)});return t.postMessage(Yd(n,"ask",a,i,r),u),s}var ta=class e{constructor(t,n,a=window,r="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=a;this.targetOrigin=r;Kd(a,n,this.getSystemProtocol("ping"),"ping",r,()=>Promise.resolve({}))}static async connect(t,n=10,a=500){for(let r=0;r<=n;r++)try{return await t.ping({timeout:a}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*a}ms`)}static parent(t,n,a="*",r=window){let u=n.contentWindow;if(ea(u))return new e(t,u,r,a);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:a=window,targetWindow:r=window.parent}={}){return new e(t,r,a,n)}static rootIframe(t,n="*",{thisWindow:a=window}={}){return new e(t,null,a,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await Gd(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(i6(this.thisWindow,this.protocol,t,n))}tell(t,n){s6(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(Kd(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,a=1e4){if(this.targetWindow)return Gd(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,a);throw new Error("target window is requried")}destroy(){u6(this.listeners)}};var Qd;async function Zd(){if(Je()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=ta.iframe(zu,"*",{targetWindow:t});Qd=n,await ta.connect(n).catch(a=>{j.error("connect with parent frame error",a)})}}function Co(){return Qd}m();function Xd(e,t){let n=t.matches||[],a=t.excludeMatches||[];if(a&&!Array.isArray(a)&&(a=[a]),n&&!Array.isArray(n)&&(n=[n]),a.length>0){if(a.includes(e)||a.includes(""))return!1;for(let r of a)if(r.includes("*")&&new RegExp(r).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let r of n)if(r.includes("*")&&new RegExp(r).test(e))return!0}return!1}m();m();m();m();m();var ft=class{options;strictTicks=[];constructor(t){this.options=t,this.setOptions(t)}setOptions(t){t&&(t.interval!==void 0&&(this.options.interval=Number(t.interval)),t.limit!==void 0&&(this.options.limit=Number(t.limit)))}wait(){return new Promise((t,n)=>{setTimeout(t,this.getDelay())})}getDelay(){let t=this.strictTicks,n=this.options.limit,a=this.options.interval,r=Date.now();if(t.length=u?(t.push(r),0):(t.push(u),u-r)}};var l6=new ft({limit:7,interval:1250}),c6={tencent:new ft({limit:3,interval:1350}),baidu:new ft({limit:1,interval:1550}),strict:new ft({limit:1,interval:1050}),d:new ft({limit:1,interval:1050}),youdao:new ft({limit:5,interval:1050}),you:new ft({limit:5,interval:1050}),cai:new ft({limit:5,interval:1050}),google:new ft({limit:10,interval:1050}),deepl:new ft({limit:10,interval:1050}),transmart:new ft({limit:30,interval:1050}),papago:new ft({limit:3,interval:1150}),openai:new ft({limit:10,interval:1300}),chatgpt:new ft({limit:1,interval:1350})};function Hr(e){return c6[e]||l6}async function em(e){if(Je()){let n=Co();if(n)try{return(await n.ask("getRateLimitDelay",{key:e})).value}catch(a){return j.error("can not comunicate with root frame, use strict limiter",a),Hr("strict").getDelay()}else return Hr("strict").getDelay()}else return Hr(e).getDelay()}async function tm(e,t){if(!Je()){let a=Hr(e);t&&a.setOptions(t)}}async function nm(e){let t=e.key;return{value:Hr(t).getDelay()}}var be=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=200;translationOptions;constructor(t,n,a){this.serviceConfig=t,this.generalConfig=n,this.translationOptions=a}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getDefaultRateLimit(){return null}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,a){if(t.sentences.length===0)return{sentences:[]};let{sentences:r}=t,u=[],o=null,i=new Set;for(let b of r)b.from&&b.from!=="auto"&&i.add(b.from);let s=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(s=this.serviceConfig.maxTextLengthPerRequest);let c=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(c=this.serviceConfig.maxTextGroupLengthPerRequest);try{u=xd(r,s,c)}catch(b){if(a)for(let C=0;Cb));let l=[],g=[],p=(b,C,h)=>{let A=C.translatedTexts[0];g[b]||(g[b]=C,g[b].translatedTexts=Array(C.sentenceTotalParts).fill(null)),g[b].translatedTexts[C.partIndex]=A;let S=g[b],U=0;for(let R=0;R{let S=await em(this.translationOptions.translationService);await Cr(S||0);let U=C.from;if(C.fromByClient&&C.fromByClient!=="auto"&&(U=C.fromByClient),this.isSupportList)return{...await this.translateList({text:C.tempSentences.map(y=>y.text),from:U,to:C.to,url:h,options:n}),sourceTempSentences:C.tempSentences};{let R=p4;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(R=this.serviceConfig.translationTextSeparator);let y=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(y=this.serviceConfig.newlinePlaceholderDelimiters);let T="";y&&y.length>=2?T=C.tempSentences.map((P,w)=>w===C.tempSentences.length-1?P.text:P.text+y[0]+(w+1)+y[1]).join(""):T=C.tempSentences.map(P=>P.text).join(R);let k=await this.translate({text:T,from:U,to:C.to,url:h,options:n}),{text:v}=k,E=[];if(y&&y.length>=2){let P=`${y[0]}\\d+${y[1]}`;y&&y.length>=3&&(P=y[2]);let w=new RegExp(P,"g");E=v.split(w)}else E=v.split(R);let B=[];if(E.length>C.tempSentences.length){for(let P=0;P{let{text:U,sourceTempSentences:R}=S;for(let y=0;y{if(a){for(let U=0;U({...b.sentence,text:b.translatedTexts.join("")}))}}detectLanguageLocally(t){return Qe({text:t,minLength:18,pageLangs:[pt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}};m();m();var Va="input is invalid type",Is=typeof window=="object",na=Is?window:{};na.JS_SHA256_NO_WINDOW&&(Is=!1);var d6=!Is&&typeof self=="object",m6=!na.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;m6?na=global:d6&&(na=self);var Lw=!na.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,Mw=typeof define=="function"&&define.amd,qr=!na.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",le="0123456789abcdef".split(""),g6=[-2147483648,8388608,32768,128],bn=[24,16,8,0],wo=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],vo=["hex","array","digest","arrayBuffer"],ct=[];(na.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});qr&&(na.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var am=function(e,t){return function(n){return new dt(t,!0).update(n)[e]()}},um=function(e){var t=am("hex",e);t.create=function(){return new dt(e)},t.update=function(r){return t.create().update(r)};for(var n=0;n>2]|=e[r]<>2]|=a<>2]|=(192|a>>6)<>2]|=(128|a&63)<=57344?(i[u>>2]|=(224|a>>12)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<>2]|=(240|a>>18)<>2]|=(128|a>>12&63)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<=64?(this.block=i[16],this.start=u-64,this.hash(),this.hashed=!0):this.start=u}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};dt.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=g6[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};dt.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,s=this.blocks,c,l,g,p,f,d,b,C,h,A,S;for(c=16;c<64;++c)f=s[c-15],l=(f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3,f=s[c-2],g=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10,s[c]=s[c-16]+l+s[c-7]+g<<0;for(S=t&n,c=0;c<64;c+=4)this.first?(this.is224?(C=300032,f=s[0]-1413257819,i=f-150054599<<0,a=f+24177077<<0):(C=704751109,f=s[0]-210244248,i=f-1521486534<<0,a=f+143694565<<0),this.first=!1):(l=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),g=(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7),C=e&t,p=C^e&n^S,b=r&u^~r&o,f=i+g+b+wo[c]+s[c],d=l+p,i=a+f<<0,a=f+d<<0),l=(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10),g=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),h=a&e,p=h^a&t^C,b=i&r^~i&u,f=o+g+b+wo[c+1]+s[c+1],d=l+p,o=n+f<<0,n=f+d<<0,l=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),g=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),A=n&a,p=A^n&e^h,b=o&i^~o&r,f=u+g+b+wo[c+2]+s[c+2],d=l+p,u=t+f<<0,t=f+d<<0,l=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),g=(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7),S=t&n,p=S^t&a^A,b=u&o^~u&i,f=r+g+b+wo[c+3]+s[c+3],d=l+p,r=e+f<<0,e=f+d<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+a<<0,this.h4=this.h4+r<<0,this.h5=this.h5+u<<0,this.h6=this.h6+o<<0,this.h7=this.h7+i<<0};dt.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,s=le[e>>28&15]+le[e>>24&15]+le[e>>20&15]+le[e>>16&15]+le[e>>12&15]+le[e>>8&15]+le[e>>4&15]+le[e&15]+le[t>>28&15]+le[t>>24&15]+le[t>>20&15]+le[t>>16&15]+le[t>>12&15]+le[t>>8&15]+le[t>>4&15]+le[t&15]+le[n>>28&15]+le[n>>24&15]+le[n>>20&15]+le[n>>16&15]+le[n>>12&15]+le[n>>8&15]+le[n>>4&15]+le[n&15]+le[a>>28&15]+le[a>>24&15]+le[a>>20&15]+le[a>>16&15]+le[a>>12&15]+le[a>>8&15]+le[a>>4&15]+le[a&15]+le[r>>28&15]+le[r>>24&15]+le[r>>20&15]+le[r>>16&15]+le[r>>12&15]+le[r>>8&15]+le[r>>4&15]+le[r&15]+le[u>>28&15]+le[u>>24&15]+le[u>>20&15]+le[u>>16&15]+le[u>>12&15]+le[u>>8&15]+le[u>>4&15]+le[u&15]+le[o>>28&15]+le[o>>24&15]+le[o>>20&15]+le[o>>16&15]+le[o>>12&15]+le[o>>8&15]+le[o>>4&15]+le[o&15];return this.is224||(s+=le[i>>28&15]+le[i>>24&15]+le[i>>20&15]+le[i>>16&15]+le[i>>12&15]+le[i>>8&15]+le[i>>4&15]+le[i&15]),s};dt.prototype.toString=dt.prototype.hex;dt.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,s=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,a>>24&255,a>>16&255,a>>8&255,a&255,r>>24&255,r>>16&255,r>>8&255,r&255,u>>24&255,u>>16&255,u>>8&255,u&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||s.push(i>>24&255,i>>16&255,i>>8&255,i&255),s};dt.prototype.array=dt.prototype.digest;dt.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function Ao(e,t,n){var a,r=typeof e;if(r==="string"){var u=[],o=e.length,i=0,s;for(a=0;a>6,u[i++]=128|s&63):s<55296||s>=57344?(u[i++]=224|s>>12,u[i++]=128|s>>6&63,u[i++]=128|s&63):(s=65536+((s&1023)<<10|e.charCodeAt(++a)&1023),u[i++]=240|s>>18,u[i++]=128|s>>12&63,u[i++]=128|s>>6&63,u[i++]=128|s&63);e=u}else if(r==="object"){if(e===null)throw new Error(Va);if(qr&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!qr||!ArrayBuffer.isView(e)))throw new Error(Va)}else throw new Error(Va);e.length>64&&(e=new dt(t,!0).update(e).array());var c=[],l=[];for(a=0;a<64;++a){var g=e[a]||0;c[a]=92^g,l[a]=54^g}dt.call(this,t,n),this.update(l),this.oKeyPad=c,this.inner=!0,this.sharedMemory=n}Ao.prototype=new dt;Ao.prototype.finalize=function(){if(dt.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();dt.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),dt.prototype.finalize.call(this)}};var Ya=um();Ya.sha256=Ya;Ya.sha224=um(!0);Ya.sha256.hmac=om();Ya.sha224.hmac=om(!0);var im=Ya;var sm=im.sha256;function yn(e){return Promise.resolve(sm(e))}function ko(e){return Array.from(new Uint8Array(e)).map(a=>a.toString(16).padStart(2,"0")).join("")}function aa(e,t){let n=sm.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function lm(e,t){let n=await aa(e,t);return ko(n)}async function So(e,t){let n=p6(t),a=await aa(e,n);return ko(a)}function p6(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var cm=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Wr=class e extends be{static langMap=new Map(cm);static langMapReverse=new Map(cm.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),a=`${t.getUTCMonth()+1}`.padStart(2,"0"),r=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${a}-${r}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.secretId||!t.secretKey)throw new Error("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}async translate(t){let{text:n,from:a,to:r}=t,u=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceText:n,Target:e.langMap.get(r)||r}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:u,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||a,to:e.langMapReverse.get(o.Response.Target)||r}}async translateList(t){let{text:n,from:a,to:r}=t,u=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceTextList:n,Target:e.langMap.get(r)||r}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:u,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||a,to:e.langMapReverse.get(o.Response.Target)||r}}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:u,version:o}){let i=`${u}.tencentcloudapi.com`,s=new Date,c=`${new Date().valueOf()}`.slice(0,10),l=["POST","/","","content-type:application/json; charset=utf-8",`host:${i}`,"","content-type;host",await yn(r)].join(` +`)}n.push(...p)}for(let r=0;r{let i=e.lastIndexOf(o,t);return i>u?i:u},-1);if(r===-1){let u=e.slice(0,t);if(u&&!u.trim())return;n.push({text:u,prefix:"",suffix:""}),e.length>t&&Ms(e.slice(t),t,n)}else{let u=e.slice(0,r+1);if(u&&u.trim()==="")return;u.startsWith(" ")?n.push({text:u.slice(1),prefix:" ",suffix:""}):n.push({text:u,prefix:"",suffix:""}),r+10){l.forEach(d=>{c.length>0&&d.providers&&d.providers.length>0&&!d.providers.includes(s)||(d.optional?p.push(d):g.push(d))});let f=p.concat(g).filter(d=>d.required);if(f.length>0){for(let d of f)if(!r[d.name]){i=!1;break}}}return{...a,id:t,selected:n[e]===t,ok:i,currentProvider:s,config:r,providers:a.providers||[],props:a.props||[],allProps:l,optionalProps:p,explicitProps:g}}var Td=(e,t)=>{let{config:n}=e,a=n.alpha,r=n.beta,u=n.canary,o=n.debug,i=e.user,s=tn(i);return Object.keys(Bn).filter(l=>{let g=Bn[l];if(l.startsWith("mock"))return o?!0:l===e.config[t];if(l===e.config[t])return!0;if(l==="openai"&&Rt())return e.config.showOpenaiOnSafari||s?!0:!!(r||a||u||s);let p=!!g.canary,f=!!g.alpha,d=!!g.beta;return l===e[t]||p&&u||f&&(a||u)||d&&(r||a||u)?!0:!f&&!d&&!p}).map(l=>Fs(t,l,e))};function hn(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}var $a=[];async function no(e,t){return await new Promise((n,a)=>{let r=e,u=1,o=indexedDB.open(r,u);o.onsuccess=i=>{n(o.result)},o.onerror=i=>{a()},o.onupgradeneeded=i=>{let s=o.result,c=t||"cache";s.createObjectStore(c,{keyPath:"key"})}})}async function Cd(e){let t=`${J}-${e.service}@${e.from}->${e.to}`;return await J1(t,e)}async function wd(e){let t=Zn(e.originalText),n=`${J}-${e.service}@${e.from}->${e.to}`;return await Y1(n,t)}async function Y1(e,t){let n=await no(e);return await new Promise((a,r)=>{if(!n)return r();let u="cache",i=n.transaction([u],"readonly").objectStore(u).get(t);i.onsuccess=s=>{n.close();let c=i.result;a(c)},i.onerror=s=>{n.close(),r()}})}async function J1(e,t){let n=await no(e);return(await Z1()).includes(e)||await Q1(e),await new Promise(r=>{if(!n)return r(!1);let u="cache",i=n.transaction([u],"readwrite").objectStore(u).put(t);i.onsuccess=s=>{n.close(),r(!0)},i.onerror=s=>{n.close(),r(!1)}})}async function Q1(e){let t="cache_list",n=await no(J+"-cacheList",t),r=n.transaction([t],"readwrite").objectStore(t).put({key:e});r.onsuccess=u=>{n.close(),$a.push(e)},r.onerror=u=>{n.close()}}async function Z1(){if($a&&$a.length>0)return $a;let e=await no(J+"-cacheList","cache_list");return $a=await new Promise(t=>{let n="cache_list",r=e.transaction([n],"readonly").objectStore(n).getAllKeys();r.onsuccess=u=>{e.close(),t(r.result)},r.onerror=u=>{e.close(),t([])}}),$a}m();m();var Ps="Original";function qe(){return Ps}function Dt(e){Ps=e,vd(Ps)}m();var kd="auto",ao="auto",Ad="auto";function Sd(e){kd=e}function an(e){ao=e}function pt(){return ao!=="auto"?ao:Ad!=="auto"?Ad:kd}function ro(){return ao}var Ka=async function(e,t){let{method:n,data:a}=e,r=await _d(),u=Date.now();if(j.debug(`content script received message: ${n}`,a||" "),n==="translateTheWholePage")await Bs(a),je(fn,u);else if(n==="translateTheMainPage")await mo(a),je(fn,u);else if(n==="translateToThePageEndImmediately")await Pd(a),je(fn,u);else if(n==="toggleTranslatePage")await so(a),je(fn,u);else if(n==="toggleTranslateTheWholePage")await Fd(a),je(fn,u);else if(n==="toggleTranslateTheMainPage")await Ld(a),je(fn,u);else if(n==="toggleOnlyTransation")await go(a),je(fn,u);else if(n==="translatePage")await rn(r,a),je(fn,u);else if(n==="toggleTranslationMask")await co(a);else if(n==="restorePage")Ta();else if(n==="setCurrentPageLanguageByClient")an(a);else if(n==="retryFailedParagraphs")lo();else if(n==="switchTranslationMode"){if(r.rule.isPdf)return;a&&a.mode&&Md(a.mode)}},X1=function(e,t){let{method:n,data:a}=e;if(j.debug(`content script received sync message: ${n}`,a||" "),n==="ping")return"pong";if(n==="getPageStatus")return qe();if(n==="getCurrentPageLanguage"){let r=pt();return _s().catch(u=>{j.warn("detectCurrentPageLanguage failed",u)}),r}},uo,oo;function Dd(){let e=io();Je()||e6(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function io(){return uo||(uo=new Gn("content_script",!1).getConnection("main",Ka),uo)}function e6(){return oo||(oo=new Gn("content_script",!1).getConnection("main_sync",X1,{sync:!0}),oo)}async function Ke(e){return await io().sendMessage("background:main",e)}function oe(e){return Tu()?Vu({method:"request",data:e}):pe()||Eu()?(e.fetchPolyfill=globalThis.GM_fetch,xa(e)):Ke({method:"fetch",data:e})}function Lt(){return pe()?Jn():Ke({method:"getConfig"})}function un(e){return pe()?Ss(e):Ke({method:"setUserConfig",data:e})}function on(){return pe()?ks():Ke({method:"getUserConfig"})}function Bd(){return pe()?Yn():Ke({method:"getLocalConfig"})}function po(e){return pe()?kn(e):Ke({method:"setLocalConfig",data:e})}function Rd(e){return pe()?gd(e):Ke({method:"setBuildinConfig",data:e})}async function Qe(e){if(e.text){let n=Gu(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(pe()||Rt()){let n=ed(e.text,e.minLength,e.pageLangs);return Promise.resolve(n)}let t=await Ke({method:"detectLanguage",data:e});return Promise.resolve(t)}function Od(){return Ke({method:"detectTabLanguage"})}function vd(e){if(pe()){let n=new CustomEvent(Ru,{detail:e});document.dispatchEvent(n);return}io().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(n=>{})}function Id(e){return pe()?wd(e):Ke({method:"queryParagraphCache",data:e})}async function Nd(e){if(pe()){await Cd(e);return}return Ke({method:"setParagraphCache",data:e})}async function jd(){if(pe())return Promise.resolve();await Ke({method:"mockRequest"})}function Ga(e=!1,t=""){return pe()?(ue.runtime.openOptionsPage(e,t),Promise.resolve()):Ke({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function Ud(e=""){return pe()||Rt()?Ve().OPTIONS_URL:ue.runtime.getURL("options.html")}function zd(e=""){return ue&&ue.runtime&&ue.runtime.getURL?ue.runtime.getURL("options.html"):""}function fo(e=!1){return pe()?(ue.extra.openAboutPage(e),Promise.resolve()):Ke({method:"openAboutPage"})}function Hd(e=!1){return pe()?(ue.extra.openSearchEnhancement(e),Promise.resolve()):Ke({method:"openSearchEnhancement"})}function ho(e){return pe()?(ue.extra.openInTab(e),Promise.resolve()):Ke({method:"openInTab",data:e})}function bo(e=!1){return pe()?(ue.extra.openEbookViewerPage(e),Promise.resolve()):Ke({method:"openEbookViewerPage"})}function qd(e=!1){return pe()?Promise.resolve():Ke({method:"openHtmlViewerPage"})}function yo(e=!1){return pe()?(ue.extra.openEbookBuilderPage(e),Promise.resolve()):Ke({method:"openEbookBuilderPage"})}function xo(e){Rt()}function Rs(e=!1){return pe()?(ue.extra.openPdfViewerPage(e),Promise.resolve()):Ke({method:"openPdfViewerPage"})}function Wd(e=!1){return pe()?(ue.extra.openSubtitleBuilderPage(e),Promise.resolve()):Ke({method:"openSubtitleBuilderPage"})}function Os(e){return pe()?Promise.resolve():Ke({method:"setBadge",data:{text:e}})}function $d(){return pe()?(j.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):Ke({method:"autoSyncLatestConfig"})}var Kd="G-MKMD9LWFTR";async function We(e,t,n){try{let a=Ve();if(a.INSTALL_FROM==="firefox_store")return;let u=pe(),o=Je(),i=a.PROD==="1",s=`report_${e}`,c=e.endsWith("_daily");if(c){if(o)return;let k=await On(s,0),v=Eo(new Date(k)),E=Date.now(),B=Eo(new Date(E));if(v===B)return;await rd(s,E)}else if(!n.config.telemetry)return;let l="sitc4WmvShWYwfU0dANM3Q",g=await St("fakeUserId","");g||(g=await On("fakeUserId",""),g&&await je("fakeUserId",g));let p=nn(),f=new Date,d=await St("installedAt","");d||(d=await On("installedAt",""),d&&await je("installedAt",d)),g?d||(d=new Date(0).toISOString(),await je("installedAt",d)):(g=t6(32),await je("fakeUserId",g)),d||(d=f.toISOString(),await je("installedAt",d));let b=new Date(d),C=Eo(b),h=Eo(f),A=C===h,S=f.getTime()-b.getTime()<7*24*60*60*1e3,U=`https://www.google-analytics.com/mp/collect?measurement_id=${Kd}&api_secret=${l}`;i||(U=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${Kd}&api_secret=${l}`);let R=ja.parse(window.navigator.userAgent),y=t.map(k=>{let v=k.params||{};if(R.os&&(v.os_name=R.os.name||"unknown",v.os_version=R.os.version||"unknown",v.os_version_name=R.os.versionName||"unknown"),R.browser&&(v.browser_name=R.browser.name||"unknown",v.browser_version=R.browser.version||"unknown"),R.platform&&(v.platform_type=R.platform.type||"unknown"),R.engine&&(v.engine_name=R.engine.name||"unknown",v.engine_version=R.engine.version||"unknown"),n.translationService&&(v.translation_service||(v.translation_service=n.translationService),n.config.translationServices&&n.config.translationServices[n.translationService]&&(n.config.translationServices[n.translationService].provider&&(v.translation_service_provider=n.config.translationServices[n.translationService].provider),n.translationService==="openai"&&n.config.translationServices[n.translationService].provider==="custom"&&(n.config.translationServices[n.translationService].apiUrl?n.config.translationServices[n.translationService].apiUrl.startsWith("https://api.openai.com/")?v.openai_is_official="1":v.openai_is_official="0":v.openai_is_official="1"))),n.targetLanguage&&(v.target_language=n.targetLanguage),n.config.interfaceLanguage&&(v.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?v.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":v.enable_default_always_translated_urls="0",p&&(v.version=p),n.config.enableInputTranslation?v.enable_input_translation=n.config.enableInputTranslation?"1":"0":v.enable_input_translation="0",n.config.translationTheme&&(v.translation_theme=n.config.translationTheme),n.config.alpha&&(v.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?v.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):v.always_translate_languages="none",a.INSTALL_FROM&&(v.install_from=a.INSTALL_FROM),n.config.beta&&(v.beta=n.config.alpha.toString()),n.config.translationArea&&(v.translation_area=n.config.translationArea),n.rule&&n.rule.enableSearchEnhancement!==void 0&&(v.enable_search_enhancement=n.rule.enableSearchEnhancement?"1":"0"),C&&(v.install_day=n6(b)),n.user){let B=td(n.user);B&&Object.keys(B).forEach(P=>{v[P]=B[P]})}else v.user_type="anonymous";n.config.translationMode&&(v.translation_mode=n.config.translationMode),v.userscript=u.toString(),A?v.is_new_user_today="1":v.is_new_user_today="0",S?v.is_new_user_this_week="1":v.is_new_user_this_week="0",n.config.tempTranslateDomainMinutes?v.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():v.temp_translate_domain_minutes="0";let E="html";if(n.rule.isEbook?E="ebookReader":n.rule.isPdf?E="pdfReader":n.rule.isEbookBuilder?E="ebookBuilder":n.rule.isSubtitleBuilder&&(E="subtitleBuilder"),v.page_type=E,o?v.main_frame=0:v.main_frame=1,!c){let B=n.url;try{let P=new URL(B);v.site_host=P.hostname}catch{v.site_host="unknown"}n.sourceLanguage&&(v.source_language=n.sourceLanguage)}return{...k,params:v}}),T=await oe({responseType:"text",url:U,method:"POST",body:JSON.stringify({client_id:g,user_id:g,events:y})})}catch{}}function t6(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;rt.removeEventListener("message",n)),e.length=0}function o6(e,t,n,a){return new Promise(r=>{let u=o=>{let i=o.data;r6(t,n,i)&&i.id===a&&(e.removeEventListener("message",u),r(i.response))};e.addEventListener("message",u)})}function i6(e,t,n,a){let r=u=>{let o=u.data;Qd(t,"tell",n,o)&&a(o.body)};return e.addEventListener("message",r),[e,r]}function Gd(e,t,n,a,r,u){let o=async i=>{let s=i.data;if(Qd(n,"ask",a,s)){let c=await u(s.body);t=i.source,t.postMessage(a6(n,a,s.id,c),i.origin)}};return e.addEventListener("message",o),[e,o]}function s6(e,t,n,a,r){let u=Math.random().toString();return e.postMessage(Jd(t,"tell",n,u,a),r)}async function Vd(e,t,n,a,r,u,o){let i=Math.random().toString(),s=new Promise(async(c,l)=>{let g=setTimeout(()=>l(new Error(`Failed to get response within ${o}ms`)),o),p=await o6(e,n,a,i);clearTimeout(g),c(p)});return t.postMessage(Jd(n,"ask",a,i,r),u),s}var ta=class e{constructor(t,n,a=window,r="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=a;this.targetOrigin=r;Gd(a,n,this.getSystemProtocol("ping"),"ping",r,()=>Promise.resolve({}))}static async connect(t,n=10,a=500){for(let r=0;r<=n;r++)try{return await t.ping({timeout:a}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*a}ms`)}static parent(t,n,a="*",r=window){let u=n.contentWindow;if(ea(u))return new e(t,u,r,a);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:a=window,targetWindow:r=window.parent}={}){return new e(t,r,a,n)}static rootIframe(t,n="*",{thisWindow:a=window}={}){return new e(t,null,a,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await Vd(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(i6(this.thisWindow,this.protocol,t,n))}tell(t,n){s6(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(Gd(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,a=1e4){if(this.targetWindow)return Vd(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,a);throw new Error("target window is requried")}destroy(){u6(this.listeners)}};var Zd;async function Xd(){if(Je()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=ta.iframe(Uu,"*",{targetWindow:t});Zd=n,await ta.connect(n).catch(a=>{j.error("connect with parent frame error",a)})}}function To(){return Zd}m();function em(e,t){let n=t.matches||[],a=t.excludeMatches||[];if(a&&!Array.isArray(a)&&(a=[a]),n&&!Array.isArray(n)&&(n=[n]),a.length>0){if(a.includes(e)||a.includes(""))return!1;for(let r of a)if(r.includes("*")&&new RegExp(r).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let r of n)if(r.includes("*")&&new RegExp(r).test(e))return!0}return!1}m();m();m();m();m();var ft=class{options;strictTicks=[];constructor(t){this.options=t,this.setOptions(t)}setOptions(t){t&&(t.interval!==void 0&&(this.options.interval=Number(t.interval)),t.limit!==void 0&&(this.options.limit=Number(t.limit)))}wait(){return new Promise((t,n)=>{setTimeout(t,this.getDelay())})}getDelay(){let t=this.strictTicks,n=this.options.limit,a=this.options.interval,r=Date.now();if(t.length=u?(t.push(r),0):(t.push(u),u-r)}};var l6=new ft({limit:7,interval:1250}),c6={tencent:new ft({limit:3,interval:1350}),baidu:new ft({limit:1,interval:1550}),strict:new ft({limit:1,interval:1050}),d:new ft({limit:1,interval:1050}),youdao:new ft({limit:5,interval:1050}),you:new ft({limit:5,interval:1050}),cai:new ft({limit:5,interval:1050}),google:new ft({limit:10,interval:1050}),deepl:new ft({limit:10,interval:1050}),transmart:new ft({limit:30,interval:1050}),papago:new ft({limit:3,interval:1150}),openai:new ft({limit:10,interval:1300}),chatgpt:new ft({limit:1,interval:1350})};function Hr(e){return c6[e]||l6}async function tm(e){if(Je()){let n=To();if(n)try{return(await n.ask("getRateLimitDelay",{key:e})).value}catch(a){return j.error("can not comunicate with root frame, use strict limiter",a),Hr("strict").getDelay()}else return Hr("strict").getDelay()}else return Hr(e).getDelay()}async function nm(e,t){if(!Je()){let a=Hr(e);t&&a.setOptions(t)}}async function am(e){let t=e.key;return{value:Hr(t).getDelay()}}var be=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=200;translationOptions;constructor(t,n,a){this.serviceConfig=t,this.generalConfig=n,this.translationOptions=a}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getDefaultRateLimit(){return null}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,a){if(t.sentences.length===0)return{sentences:[]};let{sentences:r}=t,u=[],o=null,i=new Set;for(let b of r)b.from&&b.from!=="auto"&&i.add(b.from);let s=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(s=this.serviceConfig.maxTextLengthPerRequest);let c=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(c=this.serviceConfig.maxTextGroupLengthPerRequest);try{u=Ed(r,s,c)}catch(b){if(a)for(let C=0;Cb));let l=[],g=[],p=(b,C,h)=>{let A=C.translatedTexts[0];g[b]||(g[b]=C,g[b].translatedTexts=Array(C.sentenceTotalParts).fill(null)),g[b].translatedTexts[C.partIndex]=A;let S=g[b],U=0;for(let R=0;R{let S=await tm(this.translationOptions.translationService);await Cr(S||0);let U=C.from;if(C.fromByClient&&C.fromByClient!=="auto"&&(U=C.fromByClient),this.isSupportList)return{...await this.translateList({text:C.tempSentences.map(y=>y.text),from:U,to:C.to,url:h,options:n}),sourceTempSentences:C.tempSentences};{let R=p4;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(R=this.serviceConfig.translationTextSeparator);let y=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(y=this.serviceConfig.newlinePlaceholderDelimiters);let T="";y&&y.length>=2?T=C.tempSentences.map((P,w)=>w===C.tempSentences.length-1?P.text:P.text+y[0]+(w+1)+y[1]).join(""):T=C.tempSentences.map(P=>P.text).join(R);let k=await this.translate({text:T,from:U,to:C.to,url:h,options:n}),{text:v}=k,E=[];if(y&&y.length>=2){let P=`${y[0]}\\d+${y[1]}`;y&&y.length>=3&&(P=y[2]);let w=new RegExp(P,"g");E=v.split(w)}else E=v.split(R);let B=[];if(E.length>C.tempSentences.length){for(let P=0;P{let{text:U,sourceTempSentences:R}=S;for(let y=0;y{if(a){for(let U=0;U({...b.sentence,text:b.translatedTexts.join("")}))}}detectLanguageLocally(t){return Qe({text:t,minLength:18,pageLangs:[pt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}};m();m();var Va="input is invalid type",Is=typeof window=="object",na=Is?window:{};na.JS_SHA256_NO_WINDOW&&(Is=!1);var d6=!Is&&typeof self=="object",m6=!na.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;m6?na=global:d6&&(na=self);var Lw=!na.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,Mw=typeof define=="function"&&define.amd,qr=!na.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",le="0123456789abcdef".split(""),g6=[-2147483648,8388608,32768,128],bn=[24,16,8,0],Co=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],wo=["hex","array","digest","arrayBuffer"],ct=[];(na.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});qr&&(na.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var rm=function(e,t){return function(n){return new dt(t,!0).update(n)[e]()}},om=function(e){var t=rm("hex",e);t.create=function(){return new dt(e)},t.update=function(r){return t.create().update(r)};for(var n=0;n>2]|=e[r]<>2]|=a<>2]|=(192|a>>6)<>2]|=(128|a&63)<=57344?(i[u>>2]|=(224|a>>12)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<>2]|=(240|a>>18)<>2]|=(128|a>>12&63)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<=64?(this.block=i[16],this.start=u-64,this.hash(),this.hashed=!0):this.start=u}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};dt.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=g6[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};dt.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,s=this.blocks,c,l,g,p,f,d,b,C,h,A,S;for(c=16;c<64;++c)f=s[c-15],l=(f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3,f=s[c-2],g=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10,s[c]=s[c-16]+l+s[c-7]+g<<0;for(S=t&n,c=0;c<64;c+=4)this.first?(this.is224?(C=300032,f=s[0]-1413257819,i=f-150054599<<0,a=f+24177077<<0):(C=704751109,f=s[0]-210244248,i=f-1521486534<<0,a=f+143694565<<0),this.first=!1):(l=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),g=(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7),C=e&t,p=C^e&n^S,b=r&u^~r&o,f=i+g+b+Co[c]+s[c],d=l+p,i=a+f<<0,a=f+d<<0),l=(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10),g=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),h=a&e,p=h^a&t^C,b=i&r^~i&u,f=o+g+b+Co[c+1]+s[c+1],d=l+p,o=n+f<<0,n=f+d<<0,l=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),g=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),A=n&a,p=A^n&e^h,b=o&i^~o&r,f=u+g+b+Co[c+2]+s[c+2],d=l+p,u=t+f<<0,t=f+d<<0,l=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),g=(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7),S=t&n,p=S^t&a^A,b=u&o^~u&i,f=r+g+b+Co[c+3]+s[c+3],d=l+p,r=e+f<<0,e=f+d<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+a<<0,this.h4=this.h4+r<<0,this.h5=this.h5+u<<0,this.h6=this.h6+o<<0,this.h7=this.h7+i<<0};dt.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,s=le[e>>28&15]+le[e>>24&15]+le[e>>20&15]+le[e>>16&15]+le[e>>12&15]+le[e>>8&15]+le[e>>4&15]+le[e&15]+le[t>>28&15]+le[t>>24&15]+le[t>>20&15]+le[t>>16&15]+le[t>>12&15]+le[t>>8&15]+le[t>>4&15]+le[t&15]+le[n>>28&15]+le[n>>24&15]+le[n>>20&15]+le[n>>16&15]+le[n>>12&15]+le[n>>8&15]+le[n>>4&15]+le[n&15]+le[a>>28&15]+le[a>>24&15]+le[a>>20&15]+le[a>>16&15]+le[a>>12&15]+le[a>>8&15]+le[a>>4&15]+le[a&15]+le[r>>28&15]+le[r>>24&15]+le[r>>20&15]+le[r>>16&15]+le[r>>12&15]+le[r>>8&15]+le[r>>4&15]+le[r&15]+le[u>>28&15]+le[u>>24&15]+le[u>>20&15]+le[u>>16&15]+le[u>>12&15]+le[u>>8&15]+le[u>>4&15]+le[u&15]+le[o>>28&15]+le[o>>24&15]+le[o>>20&15]+le[o>>16&15]+le[o>>12&15]+le[o>>8&15]+le[o>>4&15]+le[o&15];return this.is224||(s+=le[i>>28&15]+le[i>>24&15]+le[i>>20&15]+le[i>>16&15]+le[i>>12&15]+le[i>>8&15]+le[i>>4&15]+le[i&15]),s};dt.prototype.toString=dt.prototype.hex;dt.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,s=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,a>>24&255,a>>16&255,a>>8&255,a&255,r>>24&255,r>>16&255,r>>8&255,r&255,u>>24&255,u>>16&255,u>>8&255,u&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||s.push(i>>24&255,i>>16&255,i>>8&255,i&255),s};dt.prototype.array=dt.prototype.digest;dt.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function vo(e,t,n){var a,r=typeof e;if(r==="string"){var u=[],o=e.length,i=0,s;for(a=0;a>6,u[i++]=128|s&63):s<55296||s>=57344?(u[i++]=224|s>>12,u[i++]=128|s>>6&63,u[i++]=128|s&63):(s=65536+((s&1023)<<10|e.charCodeAt(++a)&1023),u[i++]=240|s>>18,u[i++]=128|s>>12&63,u[i++]=128|s>>6&63,u[i++]=128|s&63);e=u}else if(r==="object"){if(e===null)throw new Error(Va);if(qr&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!qr||!ArrayBuffer.isView(e)))throw new Error(Va)}else throw new Error(Va);e.length>64&&(e=new dt(t,!0).update(e).array());var c=[],l=[];for(a=0;a<64;++a){var g=e[a]||0;c[a]=92^g,l[a]=54^g}dt.call(this,t,n),this.update(l),this.oKeyPad=c,this.inner=!0,this.sharedMemory=n}vo.prototype=new dt;vo.prototype.finalize=function(){if(dt.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();dt.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),dt.prototype.finalize.call(this)}};var Ya=om();Ya.sha256=Ya;Ya.sha224=om(!0);Ya.sha256.hmac=im();Ya.sha224.hmac=im(!0);var sm=Ya;var lm=sm.sha256;function yn(e){return Promise.resolve(lm(e))}function Ao(e){return Array.from(new Uint8Array(e)).map(a=>a.toString(16).padStart(2,"0")).join("")}function aa(e,t){let n=lm.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function cm(e,t){let n=await aa(e,t);return Ao(n)}async function ko(e,t){let n=p6(t),a=await aa(e,n);return Ao(a)}function p6(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var dm=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Wr=class e extends be{static langMap=new Map(dm);static langMapReverse=new Map(dm.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),a=`${t.getUTCMonth()+1}`.padStart(2,"0"),r=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${a}-${r}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.secretId||!t.secretKey)throw new Error("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}async translate(t){let{text:n,from:a,to:r}=t,u=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceText:n,Target:e.langMap.get(r)||r}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:u,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||a,to:e.langMapReverse.get(o.Response.Target)||r}}async translateList(t){let{text:n,from:a,to:r}=t,u=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceTextList:n,Target:e.langMap.get(r)||r}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:u,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||a,to:e.langMapReverse.get(o.Response.Target)||r}}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:u,version:o}){let i=`${u}.tencentcloudapi.com`,s=new Date,c=`${new Date().valueOf()}`.slice(0,10),l=["POST","/","","content-type:application/json; charset=utf-8",`host:${i}`,"","content-type;host",await yn(r)].join(` `),g=e.getUTCDate(s),p=["TC3-HMAC-SHA256",c,`${g}/${u}/tc3_request`,await yn(l)].join(` -`),f=await lm(g,`TC3${n}`),d=await So(u,f),b=await So("tc3_request",d),C=await So(p,b),h=await oe({retry:1,url:`https://${u}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:i,"X-TC-Action":a,"X-TC-Timestamp":c,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${g}/${u}/tc3_request, SignedHeaders=content-type;host, Signature=${C}`},body:r});if(h instanceof Error)throw h;if(h.Response&&h.Response.Error&&h.Response.Error.Message)throw new Error(h.Response.Error.Message);return h}};m();var dm=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],f6={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},$r=class e extends be{static langMap=new Map(dm);static langMapReverse=new Map(dm.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,a){super(t,n,a)}async translate(t){let{text:n,from:a,to:r}=t,u=new URLSearchParams({source:a,target:r,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await oe({url:`https://wxapp.translator.qq.com/api/translate?${u}`,retry:1,method:"GET",headers:f6});return{text:o.targetText,from:e.langMapReverse.get(o.source)||a,to:e.langMapReverse.get(o.target)||r}}};m();var mm=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],Ta=class e extends be{static langMap=new Map(mm);static langMapReverse=new Map(mm.map(([t,n])=>[n,t]));isSupportList=!1;apiUrl="https://translate.googleapis.com/translate_a/single";constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.apiUrl=jt(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let u=e.langMap.get(a)||"auto",o=e.langMap.get(r)||r,i=await this.fetchWithoutToken(n,u,o);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async translateXml(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let u=e.langMap.get(a)||"auto",o=e.langMap.get(r)||r,i=await this.fetchXmlWithoutToken(n,u,o);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async fetchXmlWithoutToken(t,n,a){let u="https://translate.googleapis.com/translate_a/t?"+new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}).toString();return{data:await oe({retry:2,url:u})}}async fetchWithoutToken(t,n,a){let r=new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}),u=this.apiUrl+"?"+r.toString();return{data:await oe({retry:2,url:u})}}};m();m();m();function h6(e,t){return t?e+(t-e%t):e}function b6(e,t){return e.split(t).length-1}function Ns(e){let t=Date.now(),n=1;for(let a of e)n+=b6(a,"i");return h6(t,n)}function y6(e,t){return Math.floor(Math.random()*(t-e+1))+e}function js(){return y6(1e6,1e8)}m();m();m();var Us="https://www2.deepl.com/jsonrpc",zs="auto",gm=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];m();function x6(e=gm){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function Hs(e){return x6()[e.toLowerCase()]}var E6={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function T6(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function C6(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function w6(e,t,n,a,r,u,o){let i=js(),s=C6(a,n),c=[];t.forEach(p=>{c.push({text:p,requestAlternatives:3})}),s.id=i,s.params.texts=c,s.params.timestamp=Ns(t);let l=await oe({retry:2,method:"POST",url:e,body:T6(s),headers:E6}),g={from:l.result.lang,to:n,text:[]};return l.result.texts.forEach(p=>{g.text.push(p.text)}),g}async function pm(e,t,n,a=zs,r,u,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:a,to:n}:w6(e,t,Hs(n),Hs(a)??"auto",r,u,o):{text:[],from:a,to:n}}var fm=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Ja=class e extends be{static langMap=new Map(fm);static langMapReverse=new Map(fm.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=Us;constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.API_URL=jt(Us,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:a,from:r}=t,u=await pm(this.API_URL,n,e.langMap.get(a)||a,e.langMap.get(r)||"auto");return{text:u.text,from:e.langMapReverse.get(u.from),to:e.langMapReverse.get(u.to)}}};m();var hm=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],qs="https://transmart.qq.com/api/imt",Ca=class e extends be{static langMap=new Map(hm);static langMapReverse=new Map(hm.map(([t,n])=>[n,t]));clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,a){super(t,n,a),this.clientKey=e.getClientKey()}static getClientKey(){return btoa("transmart_crx_"+navigator.userAgent).slice(0,100)}async translate(t){let{text:n,to:a}=t,r=await this.detectLanguage(n),u=e.langMap.get(r)||r,o=e.langMap.get(a)||a;if(r===a)return{text:n,from:r,to:a};let i=Ve(),s=t.url;i.INSTALL_FROM==="firefox_store"&&(s=bm());let l=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:u,orig_url:s},target:{lang:o}}),g=await oe({url:qs,body:l,method:"POST",retry:2});if(g.header.ret_code!=="succ")throw new Error(g.message||g.header.ret_code);return{text:g.auto_translation,from:r||"auto",to:a}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:a,to:r}=t,u=Ve(),o=t.url;if(u.INSTALL_FROM==="firefox_store"&&(o=bm()),a.length===1){let f=await this.translate({from:n,text:a[0],to:r,url:o,options:t.options});return{text:[f.text],from:f.from,to:f.to}}let s=await this.detectLanguage(a.join(` -`));if(s===r)return{text:a,from:s,to:r};let c=e.langMap.get(s)||s,l=e.langMap.get(r)||r,g=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:a,lang:c,orig_url:o},target:{lang:l},type:"plain"}),p=await oe({url:qs,body:g,method:"POST"});if(p.header.ret_code!=="succ")throw new Error(p.message||p.header.ret_code);return{text:p.auto_translation,from:s||"auto",to:r}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return e.detectLanguageRemotelyByTransmart(t)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},a=await oe({url:qs,method:"POST",body:JSON.stringify(n)});if(a.header.ret_code!=="succ")throw new Error(a.message||a.header.ret_code);let r=a.language,u=e.langMapReverse.get(r);return u||r}};function bm(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}m();m();function ym(){return Math.random()>=0}var Qa=class extends be{isSupportList=!0;maxTextLength=1200;maxTextGroupLength=25;async translate(t){let{text:n}=t,a=n.match(/^\s*/)[0].length;return{text:n.slice(0,a)+"\u6A21\u62DF\uFF1A"+n.slice(a,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:a,to:r}=t;if(await Nd(),!ym())throw new Error("\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:a,to:r,text:[""]}:{from:a,to:r,text:n.map(u=>{let o=u.match(/^\s*/)[0].length;return u.slice(0,o)+"\u6A21\u62DF\uFF1A"+u.slice(o,-6)})}}};m();var Em=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],Ws=new Map(Em),xm=new Map(Em.map(([e,t])=>[t,e])),$s=class e extends be{static langMap=Ws;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,a){if(super(t,n,a),!t||!t.apikey)throw new Error("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:a,to:r}=t,u=await oe({retry:2,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:Ws.get(a)||"auto",target_lang:Ws.get(r)||r})});if(u.status){let o=u;return o.result&&r=="zh-TW",{text:o.result,from:xm.get(o.source_lang),to:xm.get(o.target_lang)}}else throw new Error(u.msg)}},Do=$s;m();var Tm=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Kr=new Map(Tm),v6=new Map(Tm.map(([e,t])=>[t,e])),Ks=class extends be{static langMap=Kr;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl="https://deepl.immersivetranslate.com/v2/translate";immersiveTranslateDeeplTokenUrl="https://api.immersivetranslate.com";immersiveTranslateDeeplProApiUrl=Fn()||Pn()?"https://api2.immersivetranslate.com/deepl/translate":"https://test-api2.immersivetranslate.com/deepl/translate";provider="custom";splitor="";apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,a){if(super(t,n,a),t=t||{},this.splitor=t.qualityDelimiterBeta||"",t.provider==="pro")if(this.provider="pro",a.userToken){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=a.userToken,this.apiKeys=this.authKey.split(",").map(r=>r.trim())}else throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey.split(",").map(r=>r.trim()),!this.authKey)throw new Error("authKey are required");if(!this.authKey)throw new Error("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=jt(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=jt(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=jt(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=jt(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=jt(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getDefaultRateLimit(){if(this.provider==="pro"){if(this.serviceConfig&&this.serviceConfig.immersiveTranslateProLimit){let t=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(t)&&(t=15),{limit:t,interval:1050}}return{limit:15,interval:1050}}else return{limit:3,interval:1050}}async translateList(t){let{from:n,to:a,text:r}=t,u={source_lang:Kr.get(n)||"",target_lang:Kr.get(a)||a},o=this.getRandomKey(),i=new URLSearchParams(u);this.splitor?i.append("text",r.join(this.splitor)):r.forEach(d=>{i.append("text",d)});let s=i.toString(),c={text:this.splitor?[r.join(this.splitor)]:r,source_lang:Kr.get(n)||"auto",target_lang:Kr.get(a)||a},l=this.freeApiUrl;o.endsWith(":im")?l=this.immersiveTranslateApiUrl:o.endsWith(":fx")||(l=this.proApiUrl);let g;this.provider==="pro"?g=await oe({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:o,"Content-Type":"application/json"}}):o.startsWith("immersive_")?g=await oe({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:o,"Content-Type":"application/json"}}):g=await oe({retry:2,url:l,method:"POST",body:s,headers:{Authorization:"DeepL-Auth-Key "+o,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}});let{translations:p}=g,f=[];if(this.splitor?f=p[0]?.text.split(this.splitor).map(d=>d):f=p.map(d=>d.text),a==="zh-TW"){let d=this.serviceConfig||{};d&&d.googleApiUrl&&(d.apiUrl=d.googleApiUrl);let C=await new Ta(this.serviceConfig,this.generalConfig,this.translationOptions).translate({from:"zh-CN",to:"zh-TW",text:p.map(h=>h.text).join(` +`),f=await cm(g,`TC3${n}`),d=await ko(u,f),b=await ko("tc3_request",d),C=await ko(p,b),h=await oe({retry:1,url:`https://${u}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:i,"X-TC-Action":a,"X-TC-Timestamp":c,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${g}/${u}/tc3_request, SignedHeaders=content-type;host, Signature=${C}`},body:r});if(h instanceof Error)throw h;if(h.Response&&h.Response.Error&&h.Response.Error.Message)throw new Error(h.Response.Error.Message);return h}};m();var mm=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],f6={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},$r=class e extends be{static langMap=new Map(mm);static langMapReverse=new Map(mm.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,a){super(t,n,a)}async translate(t){let{text:n,from:a,to:r}=t,u=new URLSearchParams({source:a,target:r,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await oe({url:`https://wxapp.translator.qq.com/api/translate?${u}`,retry:1,method:"GET",headers:f6});return{text:o.targetText,from:e.langMapReverse.get(o.source)||a,to:e.langMapReverse.get(o.target)||r}}};m();var gm=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],Ca=class e extends be{static langMap=new Map(gm);static langMapReverse=new Map(gm.map(([t,n])=>[n,t]));isSupportList=!1;apiUrl="https://translate.googleapis.com/translate_a/single";constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.apiUrl=Ut(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let u=e.langMap.get(a)||"auto",o=e.langMap.get(r)||r,i=await this.fetchWithoutToken(n,u,o);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async translateXml(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let u=e.langMap.get(a)||"auto",o=e.langMap.get(r)||r,i=await this.fetchXmlWithoutToken(n,u,o);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async fetchXmlWithoutToken(t,n,a){let u="https://translate.googleapis.com/translate_a/t?"+new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}).toString();return{data:await oe({retry:2,url:u})}}async fetchWithoutToken(t,n,a){let r=new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}),u=this.apiUrl+"?"+r.toString();return{data:await oe({retry:2,url:u})}}};m();m();m();function h6(e,t){return t?e+(t-e%t):e}function b6(e,t){return e.split(t).length-1}function Ns(e){let t=Date.now(),n=1;for(let a of e)n+=b6(a,"i");return h6(t,n)}function y6(e,t){return Math.floor(Math.random()*(t-e+1))+e}function js(){return y6(1e6,1e8)}m();m();m();var Us="https://www2.deepl.com/jsonrpc",zs="auto",pm=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];m();function x6(e=pm){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function Hs(e){return x6()[e.toLowerCase()]}var E6={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function T6(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function C6(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function w6(e,t,n,a,r,u,o){let i=js(),s=C6(a,n),c=[];t.forEach(p=>{c.push({text:p,requestAlternatives:3})}),s.id=i,s.params.texts=c,s.params.timestamp=Ns(t);let l=await oe({retry:2,method:"POST",url:e,body:T6(s),headers:E6}),g={from:l.result.lang,to:n,text:[]};return l.result.texts.forEach(p=>{g.text.push(p.text)}),g}async function fm(e,t,n,a=zs,r,u,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:a,to:n}:w6(e,t,Hs(n),Hs(a)??"auto",r,u,o):{text:[],from:a,to:n}}var hm=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Ja=class e extends be{static langMap=new Map(hm);static langMapReverse=new Map(hm.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=Us;constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.API_URL=Ut(Us,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:a,from:r}=t,u=await fm(this.API_URL,n,e.langMap.get(a)||a,e.langMap.get(r)||"auto");return{text:u.text,from:e.langMapReverse.get(u.from),to:e.langMapReverse.get(u.to)}}};m();var bm=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],qs="https://transmart.qq.com/api/imt",wa=class e extends be{static langMap=new Map(bm);static langMapReverse=new Map(bm.map(([t,n])=>[n,t]));clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,a){super(t,n,a),this.clientKey=e.getClientKey()}static getClientKey(){return btoa("transmart_crx_"+navigator.userAgent).slice(0,100)}async translate(t){let{text:n,to:a}=t,r=await this.detectLanguage(n),u=e.langMap.get(r)||r,o=e.langMap.get(a)||a;if(r===a)return{text:n,from:r,to:a};let i=Ve(),s=t.url;i.INSTALL_FROM==="firefox_store"&&(s=ym());let l=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:u,orig_url:s},target:{lang:o}}),g=await oe({url:qs,body:l,method:"POST",retry:2});if(g.header.ret_code!=="succ")throw new Error(g.message||g.header.ret_code);return{text:g.auto_translation,from:r||"auto",to:a}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:a,to:r}=t,u=Ve(),o=t.url;if(u.INSTALL_FROM==="firefox_store"&&(o=ym()),a.length===1){let f=await this.translate({from:n,text:a[0],to:r,url:o,options:t.options});return{text:[f.text],from:f.from,to:f.to}}let s=await this.detectLanguage(a.join(` +`));if(s===r)return{text:a,from:s,to:r};let c=e.langMap.get(s)||s,l=e.langMap.get(r)||r,g=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:a,lang:c,orig_url:o},target:{lang:l},type:"plain"}),p=await oe({url:qs,body:g,method:"POST"});if(p.header.ret_code!=="succ")throw new Error(p.message||p.header.ret_code);return{text:p.auto_translation,from:s||"auto",to:r}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return e.detectLanguageRemotelyByTransmart(t)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},a=await oe({url:qs,method:"POST",body:JSON.stringify(n)});if(a.header.ret_code!=="succ")throw new Error(a.message||a.header.ret_code);let r=a.language,u=e.langMapReverse.get(r);return u||r}};function ym(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}m();m();function xm(){return Math.random()>=0}var Qa=class extends be{isSupportList=!0;maxTextLength=1200;maxTextGroupLength=25;async translate(t){let{text:n}=t,a=n.match(/^\s*/)[0].length;return{text:n.slice(0,a)+"\u6A21\u62DF\uFF1A"+n.slice(a,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:a,to:r}=t;if(await jd(),!xm())throw new Error("\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:a,to:r,text:[""]}:{from:a,to:r,text:n.map(u=>{let o=u.match(/^\s*/)[0].length;return u.slice(0,o)+"\u6A21\u62DF\uFF1A"+u.slice(o,-6)})}}};m();var Tm=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],Ws=new Map(Tm),Em=new Map(Tm.map(([e,t])=>[t,e])),$s=class e extends be{static langMap=Ws;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,a){if(super(t,n,a),!t||!t.apikey)throw new Error("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:a,to:r}=t,u=await oe({retry:2,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:Ws.get(a)||"auto",target_lang:Ws.get(r)||r})});if(u.status){let o=u;return o.result&&r=="zh-TW",{text:o.result,from:Em.get(o.source_lang),to:Em.get(o.target_lang)}}else throw new Error(u.msg)}},So=$s;m();var Cm=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Kr=new Map(Cm),v6=new Map(Cm.map(([e,t])=>[t,e])),Ks=class extends be{static langMap=Kr;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl="https://deepl.immersivetranslate.com/v2/translate";immersiveTranslateDeeplTokenUrl="https://api.immersivetranslate.com";immersiveTranslateDeeplProApiUrl=Fn()||Pn()?"https://api2.immersivetranslate.com/deepl/translate":"https://test-api2.immersivetranslate.com/deepl/translate";provider="custom";splitor="";apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,a){if(super(t,n,a),t=t||{},this.splitor=t.qualityDelimiterBeta||"",t.provider==="pro")if(this.provider="pro",a.userToken){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=a.userToken,this.apiKeys=this.authKey.split(",").map(r=>r.trim())}else throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey.split(",").map(r=>r.trim()),!this.authKey)throw new Error("authKey are required");if(!this.authKey)throw new Error("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=Ut(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=Ut(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=Ut(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=Ut(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=Ut(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getDefaultRateLimit(){if(this.provider==="pro"){if(this.serviceConfig&&this.serviceConfig.immersiveTranslateProLimit){let t=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(t)&&(t=15),{limit:t,interval:1050}}return{limit:15,interval:1050}}else return{limit:3,interval:1050}}async translateList(t){let{from:n,to:a,text:r}=t,u={source_lang:Kr.get(n)||"",target_lang:Kr.get(a)||a},o=this.getRandomKey(),i=new URLSearchParams(u);this.splitor?i.append("text",r.join(this.splitor)):r.forEach(d=>{i.append("text",d)});let s=i.toString(),c={text:this.splitor?[r.join(this.splitor)]:r,source_lang:Kr.get(n)||"auto",target_lang:Kr.get(a)||a},l=this.freeApiUrl;o.endsWith(":im")?l=this.immersiveTranslateApiUrl:o.endsWith(":fx")||(l=this.proApiUrl);let g;this.provider==="pro"?g=await oe({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:o,"Content-Type":"application/json"}}):o.startsWith("immersive_")?g=await oe({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:o,"Content-Type":"application/json"}}):g=await oe({retry:2,url:l,method:"POST",body:s,headers:{Authorization:"DeepL-Auth-Key "+o,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}});let{translations:p}=g,f=[];if(this.splitor?f=p[0]?.text.split(this.splitor).map(d=>d):f=p.map(d=>d.text),a==="zh-TW"){let d=this.serviceConfig||{};d&&d.googleApiUrl&&(d.apiUrl=d.googleApiUrl);let C=await new Ca(this.serviceConfig,this.generalConfig,this.translationOptions).translate({from:"zh-CN",to:"zh-TW",text:p.map(h=>h.text).join(` `),url:"",options:{}});C&&C.text&&(f=C.text.split(` -`))}return{text:f,from:p[0]&&v6.get(p[0].detected_source_language)||n,to:a}}},Cm=Ks;m();var A6=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],Gs=new Map(A6),Vs=class extends be{static langMap=Gs;APIKEY="";isSupportList=!1;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:a,to:r}=t,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:2,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:n,from:Gs.get(a)||a,to:Gs.get(r)||r,apikey:this.APIKEY})},i=await oe(o);if(i.tgt_text){let s=i.tgt_text;return s.endsWith(` -`)&&(s=s.slice(0,-1)),{text:s,from:a,to:r}}else throw new Error(JSON.stringify(i))}},wm=Vs;m();var k6=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],Ys=new Map(k6),Js=class extends be{static langMap=Ys;APIKEY="";region="eastasia";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region)}async translateList(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:[]};let u={"api-version":"3.0",to:Ys.get(r)||r};a!=="auto"&&(u.from=Ys.get(a)||a);let o=new URLSearchParams(u),i=JSON.stringify(n.map(l=>({text:l}))),s={url:"https://api.cognitive.microsofttranslator.com/translate?"+o.toString(),retry:2,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:i},c=await oe(s);if(c.length===0)throw new Error("server response invalid");return{from:a,to:r,text:c.map(l=>l.translations.map(p=>p.text).join(" "))}}},vm=Js;m();var S6=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],Gr=new Map(S6),Qs=class extends be{isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:3,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t,u;if(n.length===0)return{from:a,to:r,text:[]};let o=` +`))}return{text:f,from:p[0]&&v6.get(p[0].detected_source_language)||n,to:a}}},wm=Ks;m();var A6=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],Gs=new Map(A6),Vs=class extends be{static langMap=Gs;APIKEY="";isSupportList=!1;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:a,to:r}=t,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:2,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:n,from:Gs.get(a)||a,to:Gs.get(r)||r,apikey:this.APIKEY})},i=await oe(o);if(i.tgt_text){let s=i.tgt_text;return s.endsWith(` +`)&&(s=s.slice(0,-1)),{text:s,from:a,to:r}}else throw new Error(JSON.stringify(i))}},vm=Vs;m();var k6=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],Ys=new Map(k6),Js=class extends be{static langMap=Ys;APIKEY="";region="eastasia";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region)}async translateList(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:[]};let u={"api-version":"3.0",to:Ys.get(r)||r};a!=="auto"&&(u.from=Ys.get(a)||a);let o=new URLSearchParams(u),i=JSON.stringify(n.map(l=>({text:l}))),s={url:"https://api.cognitive.microsofttranslator.com/translate?"+o.toString(),retry:2,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:i},c=await oe(s);if(c.length===0)throw new Error("server response invalid");return{from:a,to:r,text:c.map(l=>l.translations.map(p=>p.text).join(" "))}}},Am=Js;m();var S6=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],Gr=new Map(S6),Qs=class extends be{isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:3,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t,u;if(n.length===0)return{from:a,to:r,text:[]};let o=`
-`,i=n.join(o),s={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:2,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:""};a==="auto"||!Gr.get(a)?(u=(await oe({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:i})).langCode,s.body=JSON.stringify({text:i,source:u||Gr.get(a)||a,target:Gr.get(r)||r})):s.body=JSON.stringify({text:i,source:Gr.get(a),target:Gr.get(r)||r});let c=await oe(s);if(c.translatedText==="")throw new Error("server response invalid");let l=c.translatedText.split("
").map(g=>g.trim());return{from:a,to:r,text:l}}},Am=Qs;m();var D6=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],Vr=new Map(D6),Zs=class extends be{static langMap=Vr;provider="custom";APIKEY="";apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;systemPrompt="You are a professional translation engine, please translate the text into a colloquial, professional, elegant and fluent content, without the style of machine translation. You must only translate the text content, never interpret it.";prompt=`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +`,i=n.join(o),s={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:2,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:""};a==="auto"||!Gr.get(a)?(u=(await oe({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:i})).langCode,s.body=JSON.stringify({text:i,source:u||Gr.get(a)||a,target:Gr.get(r)||r})):s.body=JSON.stringify({text:i,source:Gr.get(a),target:Gr.get(r)||r});let c=await oe(s);if(c.translatedText==="")throw new Error("server response invalid");let l=c.translatedText.split("
").map(g=>g.trim());return{from:a,to:r,text:l}}},km=Qs;m();var D6=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],Do=new Map(D6),Zs=class extends be{static langMap=Do;provider="custom";APIKEY="";apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;systemPrompt="You are a professional translation engine, please translate the text into a colloquial, professional, elegant and fluent content, without the style of machine translation. You must only translate the text content, never interpret it.";prompt=`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`;model="gpt-3.5-turbo-0613";apiUrl="https://api.openai.com/v1/chat/completions";immersiveApiUrl="https://openai-api.immersivetranslate.com/v1/chat/completions";immersiveProApiUrl=Fn()||Pn()?"https://api2.immersivetranslate.com/openai/v1/chat/completions":"https://test-api2.immersivetranslate.com/openai/v1/chat/completions";splitor="
";constructor(t,n,a){if(super(t,n,a),t||(t={}),t.provider&&(this.provider=t.provider),t.APIKEY&&(this.APIKEY=t.APIKEY?.trim(),this.apiKeys=this.APIKEY.split(",").map(r=>r.trim())),this.provider==="pro"){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");if(this.APIKEY=a.userToken||"",this.apiKeys=this.APIKEY.split(",").map(r=>r.trim()),!this.APIKEY)throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002")}t.prompt&&(this.prompt=t.prompt),t.model&&(this.model=t.model),t&&t.apiUrl&&(this.apiUrl=jt(this.apiUrl,t.apiUrl)),t&&t.immersiveApiUrl&&(this.immersiveApiUrl=jt(this.immersiveApiUrl,t.immersiveApiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=jt(this.immersiveProApiUrl,t.immersiveProApiUrl)),t&&t.systemPrompt&&(this.systemPrompt=t.systemPrompt)}getDefaultRateLimit(){return{limit:10,interval:1300}}translate(t){return this.model.includes("003")?(this.maxTextGroupLength=1,this.translate3(t)):this.translate3_5(t)}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate3_5(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let u=Vr.get(a)||a,o=Vr.get(r)||r,i=this.prompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u),s=[];if(this.systemPrompt){let p=this.systemPrompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u);s.push({role:"system",content:p})}this.prompt&&s.push({role:"user",content:i}),this.prompt.indexOf("{{text}}")===-1&&s.push({role:"user",content:n});let c={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:this.model,temperature:0,messages:s})},l=this.getRandomKey();this.provider==="pro"?(c.url=this.immersiveProApiUrl,c.headers.token=l):l&&(c.headers.Authorization="Bearer "+l,c.headers["api-key"]=l,l.startsWith("immersiveopenai_")&&(c.url=this.immersiveProApiUrl,c.headers.token=l,l.endsWith("x")||(c.headers["Immersive-Corpus-Campagin"]="yes"),delete c.headers.Authorization,delete c.headers["api-key"]));let g=await oe(c);if(g&&g.choices&&g.choices.length>0&&g.choices[0].message&&g.choices[0].message.content){let p=g.choices[0].message.content.trim();return(p.includes("\u62B1\u6B49")&&p.includes("\u7FFB\u8BD1")||p.includes("\u8BF7\u5C06\u6587\u672C\u7FFB\u8BD1\u6210")||p.includes("\u4E0D\u8981\u89E3\u91CA\u4EFB\u4F55"))&&(p=n),!n.includes(".")&&(p.endsWith("\u3002")||p.endsWith("."))&&(p=p.slice(0,-1)),{from:a,to:r,text:p}}else throw new Error("server response invalid: "+JSON.stringify(g))}async translate3(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let u=this.prompt.replace(/{{to}}/g,Vr.get(r)||r).replace(/{{text}}/g,n).replace(/{{from}}/g,Vr.get(a)||a),o={url:"https://api.openai.com/v1/completions",method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.APIKEY},body:JSON.stringify({model:this.model,prompt:u,temperature:0})},i=await oe(o);if(i&&i.choices&&i.choices.length>0&&i.choices[0].text){let s=i.choices[0].text.trim();return{from:a,to:r,text:s}}else throw new Error("server response invalid: "+JSON.stringify(i))}},km=Zs;m();var L6=[["auto","auto"],["zh-CN","zh-Hans"],["zh-TW","zh-Hant"],["en","en"],["yue","\u7CA4\u8BED"],["wyw","\u53E4\u6587"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["de","de"],["es","es"],["it","it"],["ru","ru"],["pt","pt"],["nl","nl"],["pl","pl"],["ar","ar"],["af","af"],["am","am"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["el","el"],["eo","eo"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ku","ku"],["ky","ky"],["la","lo"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["no","no"],["ny","ny"],["pa","pa"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["sr-Cyrl","sr"],["sr-Latn","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],Lo=new Map(L6),Xs="chatgptWebAccessToken";async function Sm(){let e=await Or(Xs);if(e)return e;let t=await oe({url:"https://chat.openai.com/api/auth/session",method:"get",responseType:"json"});if(!t.accessToken)throw new Error("UNAUTHORIZED");return await Ir(Xs,t.accessToken,10*60*1e3),t.accessToken}var e0=class e{static instance;constructor(){return e.instance||(e.instance=this),this}#e=Promise.resolve();enqueue(t){return this.#e=this.#e.then(()=>t()),this.#e}},t0=new e0;Object.freeze(t0);var Yr=class extends be{accessToken="";customChatGptWebApiUrl="https://chat.openai.com";customChatGptWebApiPath="/backend-api/conversation";maxTextGroupLength=1;maxTextLength=1200;isStream=!1;isSupportList=!1;prompt=`You are a translation engine, you can only translate text and cannot interpret it, and do not explain.Translate the text below to {{to}}: +{{text}}`;model="gpt-3.5-turbo-0613";apiUrl="https://api.openai.com/v1/chat/completions";immersiveApiUrl="https://openai-api.immersivetranslate.com/v1/chat/completions";immersiveProApiUrl=Fn()||Pn()?"https://api2.immersivetranslate.com/openai/v1/chat/completions":"https://test-api2.immersivetranslate.com/openai/v1/chat/completions";splitor="
";constructor(t,n,a){if(super(t,n,a),t||(t={}),t.provider&&(this.provider=t.provider),t.APIKEY&&(this.APIKEY=t.APIKEY?.trim(),this.apiKeys=this.APIKEY.split(",").map(r=>r.trim())),this.provider==="pro"){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");if(this.APIKEY=a.userToken||"",this.apiKeys=this.APIKEY.split(",").map(r=>r.trim()),!this.APIKEY)throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002")}t.prompt&&(this.prompt=t.prompt),t.model&&(this.model=t.model),t&&t.apiUrl&&(this.apiUrl=Ut(this.apiUrl,t.apiUrl)),t&&t.immersiveApiUrl&&(this.immersiveApiUrl=Ut(this.immersiveApiUrl,t.immersiveApiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=Ut(this.immersiveProApiUrl,t.immersiveProApiUrl)),t&&t.systemPrompt&&(this.systemPrompt=t.systemPrompt)}getDefaultRateLimit(){return{limit:10,interval:1300}}translate(t){return this.model.includes("003")||this.model.includes("gpt-3.5-turbo-instruct")?(this.maxTextGroupLength=1,this.translate3(t)):this.translate3_5(t)}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate3_5(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let u=Do.get(a)||a,o=Do.get(r)||r,i=this.prompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u),s=[];if(this.systemPrompt){let p=this.systemPrompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u);s.push({role:"system",content:p})}this.prompt&&s.push({role:"user",content:i}),this.prompt.indexOf("{{text}}")===-1&&s.push({role:"user",content:n});let c={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:this.model,temperature:0,messages:s})},l=this.getRandomKey();this.provider==="pro"?(c.url=this.immersiveProApiUrl,c.headers.token=l):l&&(c.headers.Authorization="Bearer "+l,c.headers["api-key"]=l,l.startsWith("immersiveopenai_")&&(c.url=this.immersiveProApiUrl,c.headers.token=l,l.endsWith("x")||(c.headers["Immersive-Corpus-Campagin"]="yes"),delete c.headers.Authorization,delete c.headers["api-key"]));let g=await oe(c);if(g&&g.choices&&g.choices.length>0&&g.choices[0].message&&g.choices[0].message.content){let p=g.choices[0].message.content.trim();return(p.includes("\u62B1\u6B49")&&p.includes("\u7FFB\u8BD1")||p.includes("\u8BF7\u5C06\u6587\u672C\u7FFB\u8BD1\u6210")||p.includes("\u4E0D\u8981\u89E3\u91CA\u4EFB\u4F55"))&&(p=n),!n.includes(".")&&(p.endsWith("\u3002")||p.endsWith("."))&&(p=p.slice(0,-1)),{from:a,to:r,text:p}}else throw new Error("server response invalid: "+JSON.stringify(g))}async translate3(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let u=`Translate to ${Do.get(r)||r}: -{{text}}`;constructor(t,n,a){super(t,n,a)}throttleDebounce(t,n,a){let r=0,u;return(...o)=>{let i=Date.now(),s=this,c=()=>{r=i,t.apply(s,o)};i-r>=n?(clearTimeout(u),c()):(clearTimeout(u),u=setTimeout(()=>{c()},a))}}async deleteConversation(t){if(t){let n=await oe({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}/${t}`,method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({is_visible:!1})});return j.debug("delete conversation res:",n),n}}async translate(t){return await t0.enqueue(async()=>{let{text:n,from:a,to:r}=t;if(n.length===0)return Promise.resolve({from:a,to:r,text:""});let u=Lo.get(a)||a,o=Lo.get(r)||r;if(this.accessToken=await Sm(),!this.accessToken||this.accessToken==="")throw new Error("token error");let i="text-davinci-002-render-sha-mobile";if(!i)throw new Error("No available model");let s=this.prompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u);try{let c=await oe({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"stream",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:hn(),role:"user",content:{content_type:"text",parts:[s]}}],model:i,parent_message_id:hn()})});return j.debug("get chatgpt res:",c),await this.deleteConversation(c?.conversation_id),Promise.resolve({from:a,to:r,text:c?.message?.content?.parts?.[0]})}catch(c){throw j.debug("post chatgpt error:",c),await Nr(Xs),c}})}async translateStream(t,n){let{text:a,from:r,to:u}=t;if(a.length===0){n(null,{from:r,to:u,text:""});return}let o=this.throttleDebounce(function(i){let{from:s,to:c,text:l}=i;n(null,{from:s,to:c,text:l})},300,200);await t0.enqueue(async()=>{let i="chatgpt"+hn(),s=ue.runtime.connect({name:i}),c,l;s.onMessage.addListener(b=>{if(!(!b||b==="")){if(b==="[DONE]"){s.disconnect(),this.deleteConversation(c);return}try{l=JSON.parse(b)}catch(C){j.debug("chatgpt json error",C,b);return}c=l?.conversation_id,l?.message?.author?.role==="assistant"&&o({from:r,to:u,text:l?.message?.content?.parts?.[0]})}});let g=Lo.get(r)||r,p=Lo.get(u)||u;if(this.accessToken=await Sm(),!this.accessToken||this.accessToken==="")throw new Error("token error");let f="text-davinci-002-render-sha";if(!f)throw new Error("No available model");let d=this.prompt.replace(/{{to}}/g,p).replace(/{{text}}/g,a).replace(/{{from}}/g,g);oe({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"realStream",extra:{portName:i},headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:hn(),role:"user",content:{content_type:"text",parts:[d]}}],model:f,parent_message_id:hn()})}).catch(b=>{j.debug("chatgpt error",b),s.disconnect(),this.deleteConversation(c),n(b,{from:r,to:u,text:""})})})}};m();var Mm=Cf(Dm()),Lm=[["af","af"],["am","am"],["ar","ar"],["auto","auto"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fil","fil"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["mww","mww"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["otq","otq"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["tn","tn"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tlh","tlh"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["yua","yua"],["yue","yue"],["bo","bo"],["sa","sa"],["zh-CN","zh"],["zh-TW","zh-tw"],["zu","zu"]],Qr=class e extends be{static langMap=new Map(Lm);static langMapReverse=new Map(Lm.map(([t,n])=>[n,t]));static SHA1=new Mm.default.SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,a){if(super(t,n,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new Error("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:a,to:r}=t,u={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:n,TargetLanguage:e.langMap.get(r)||r},o=this.scene=="general"?"TranslateGeneral":"Translate",i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:u,service:"mt",version:"2018-10-12"});return{text:i.Data.Translated,from:i.Data.DetectedLanguage&&e.langMapReverse.get(i.Data.DetectedLanguage)||a||"auto",to:e.langMapReverse.get(r)||r}}async translateList(t){let{text:n,from:a,to:r}=t,u=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:JSON.stringify(n.reduce((c,l,g)=>(c[g]=l,c),{})),TargetLanguage:e.langMap.get(r)||r,ApiType:u},i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),s=i.TranslatedList.length&&i.TranslatedList[0].detectedLanguage;return{text:i.TranslatedList.sort((c,l)=>parseInt(c.index)-parseInt(l.index)).map(c=>c.translated),from:s&&e.langMapReverse.get(s)||a||"auto",to:e.langMapReverse.get(r)||r}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:u,version:o}){let i=new Date().toISOString(),s=Math.random().toString(36).slice(2),c={Action:a,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:s,Timestamp:i,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},g=(b=>{let h=Object.keys(b).sort().map(A=>`${this.encode(A)}=${this.encode(b[A])}`).join("&");return`POST&%2F&${this.encode(h)}`})(Object.assign({},c,r)),p=e.SHA1.b64_hmac(`${n}&`,g),f=new URLSearchParams(Object.assign({},c,{Signature:p})).toString(),d=await oe({retry:1,url:`https://${u}.aliyuncs.com?${f}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(r).toString()});if(d instanceof Error)throw d;if(d.Code!=="200")throw new Error(d.Message);return d}};m();m();var M6=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],et={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},n0=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},a0=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let a=n0(t);if(a)return Array.isArray(n)?`${a}=${n.map(n0).sort().join(`&${a}=`)}`:`${a}=${n0(n)}`}).filter(t=>t).join("&"),Za=class{request;serviceName;bodySha256;constructor(t,n,a){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,a=a||{},this.bodySha256=a.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(a=>{let r=t[a];return typeof r<"u"&&r!==null}).sort().map(a=>{n[a]=t[a]}),n}async addAuthorization(t,n){let a=this.getDateTime(n);await this.addHeaders(t,a),this.request.headers.Authorization=await this.authorization(t,a)}async authorization(t,n){let a=[],r=this.credentialString(n);return a.push(`${et.algorithm} Credential=${t.accessKeyId}/${r}`),a.push(`SignedHeaders=${this.signedHeaders()}`),a.push(`Signature=${await this.signature(t,n)}`),a.join(", ")}async getSignUrl(t,n){let a=this.getDateTime(n),r={...this.request.params},u=this.request.params,o=this.request.headers;t.sessionToken&&(r[et.tokenHeader]=t.sessionToken),r[et.dateHeader]=a,r[et.notSignBody]="",r[et.credential]=`${t.accessKeyId}/${this.credentialString(a)}`,r[et.algorithmKey]=et.algorithm,r[et.signHeadersKey]="",r[et.signQueriesKey]=void 0,r[et.signatureKey]=void 0,r=this.sortParams(r),this.request.params=r,this.request.headers={};let i=await this.signature(t,a);return this.request.params=u,this.request.headers=o,r[et.signQueriesKey]=Object.keys(r).sort().join(";"),r[et.signatureKey]=i,a0(r)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[et.dateHeader]=n,t.sessionToken&&(this.request.headers[et.tokenHeader]=t.sessionToken),this.request.body){let a=this.request.body;this.request.headers[et.contentSha256Header]=await yn(a)}}async signature(t,n){let a=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return ko(await aa(await this.stringToSign(n),a))}async stringToSign(t){let n=[];n.push(et.algorithm),n.push(t),n.push(this.credentialString(t));let a=await this.canonicalString();return n.push(await this.hexEncodedHash(a)),n.join(` +${n} =>`,o=this.getRandomKey(),i={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.APIKEY}},s={model:this.model,prompt:u,temperature:0};this.provider==="pro"?(i.url=this.immersiveProApiUrl,i.headers.token=o):o&&(i.headers.Authorization="Bearer "+o,i.headers["api-key"]=o,o.startsWith("immersiveopenai_")&&(i.url=this.immersiveProApiUrl,i.headers.token=o,o.endsWith("x")||(i.headers["Immersive-Corpus-Campagin"]="yes"),delete i.headers.Authorization,delete i.headers["api-key"])),i.url=i.url.replace("/chat/","/");let c=2048,l=u.length*2.2;l0&&g.choices[0].text){let p=g.choices[0].text.trim();return{from:a,to:r,text:p}}else throw new Error("server response invalid: "+JSON.stringify(g))}},Sm=Zs;m();var L6=[["auto","auto"],["zh-CN","zh-Hans"],["zh-TW","zh-Hant"],["en","en"],["yue","\u7CA4\u8BED"],["wyw","\u53E4\u6587"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["de","de"],["es","es"],["it","it"],["ru","ru"],["pt","pt"],["nl","nl"],["pl","pl"],["ar","ar"],["af","af"],["am","am"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["el","el"],["eo","eo"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ku","ku"],["ky","ky"],["la","lo"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["no","no"],["ny","ny"],["pa","pa"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["sr-Cyrl","sr"],["sr-Latn","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],Lo=new Map(L6),Xs="chatgptWebAccessToken";async function Dm(){let e=await Or(Xs);if(e)return e;let t=await oe({url:"https://chat.openai.com/api/auth/session",method:"get",responseType:"json"});if(!t.accessToken)throw new Error("UNAUTHORIZED");return await Ir(Xs,t.accessToken,10*60*1e3),t.accessToken}var e0=class e{static instance;constructor(){return e.instance||(e.instance=this),this}#e=Promise.resolve();enqueue(t){return this.#e=this.#e.then(()=>t()),this.#e}},t0=new e0;Object.freeze(t0);var Vr=class extends be{accessToken="";customChatGptWebApiUrl="https://chat.openai.com";customChatGptWebApiPath="/backend-api/conversation";maxTextGroupLength=1;maxTextLength=1200;isStream=!1;isSupportList=!1;prompt=`You are a translation engine, you can only translate text and cannot interpret it, and do not explain.Translate the text below to {{to}}: + +{{text}}`;constructor(t,n,a){super(t,n,a)}throttleDebounce(t,n,a){let r=0,u;return(...o)=>{let i=Date.now(),s=this,c=()=>{r=i,t.apply(s,o)};i-r>=n?(clearTimeout(u),c()):(clearTimeout(u),u=setTimeout(()=>{c()},a))}}async deleteConversation(t){if(t){let n=await oe({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}/${t}`,method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({is_visible:!1})});return j.debug("delete conversation res:",n),n}}async translate(t){return await t0.enqueue(async()=>{let{text:n,from:a,to:r}=t;if(n.length===0)return Promise.resolve({from:a,to:r,text:""});let u=Lo.get(a)||a,o=Lo.get(r)||r;if(this.accessToken=await Dm(),!this.accessToken||this.accessToken==="")throw new Error("token error");let i="text-davinci-002-render-sha-mobile";if(!i)throw new Error("No available model");let s=this.prompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u);try{let c=await oe({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"stream",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:hn(),role:"user",content:{content_type:"text",parts:[s]}}],model:i,parent_message_id:hn()})});return j.debug("get chatgpt res:",c),await this.deleteConversation(c?.conversation_id),Promise.resolve({from:a,to:r,text:c?.message?.content?.parts?.[0]})}catch(c){throw j.debug("post chatgpt error:",c),await Nr(Xs),c}})}async translateStream(t,n){let{text:a,from:r,to:u}=t;if(a.length===0){n(null,{from:r,to:u,text:""});return}let o=this.throttleDebounce(function(i){let{from:s,to:c,text:l}=i;n(null,{from:s,to:c,text:l})},300,200);await t0.enqueue(async()=>{let i="chatgpt"+hn(),s=ue.runtime.connect({name:i}),c,l;s.onMessage.addListener(b=>{if(!(!b||b==="")){if(b==="[DONE]"){s.disconnect(),this.deleteConversation(c);return}try{l=JSON.parse(b)}catch(C){j.debug("chatgpt json error",C,b);return}c=l?.conversation_id,l?.message?.author?.role==="assistant"&&o({from:r,to:u,text:l?.message?.content?.parts?.[0]})}});let g=Lo.get(r)||r,p=Lo.get(u)||u;if(this.accessToken=await Dm(),!this.accessToken||this.accessToken==="")throw new Error("token error");let f="text-davinci-002-render-sha";if(!f)throw new Error("No available model");let d=this.prompt.replace(/{{to}}/g,p).replace(/{{text}}/g,a).replace(/{{from}}/g,g);oe({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"realStream",extra:{portName:i},headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:hn(),role:"user",content:{content_type:"text",parts:[d]}}],model:f,parent_message_id:hn()})}).catch(b=>{j.debug("chatgpt error",b),s.disconnect(),this.deleteConversation(c),n(b,{from:r,to:u,text:""})})})}};m();var Fm=wf(Lm()),Mm=[["af","af"],["am","am"],["ar","ar"],["auto","auto"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fil","fil"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["mww","mww"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["otq","otq"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["tn","tn"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tlh","tlh"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["yua","yua"],["yue","yue"],["bo","bo"],["sa","sa"],["zh-CN","zh"],["zh-TW","zh-tw"],["zu","zu"]],Jr=class e extends be{static langMap=new Map(Mm);static langMapReverse=new Map(Mm.map(([t,n])=>[n,t]));static SHA1=new Fm.default.SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,a){if(super(t,n,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new Error("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:a,to:r}=t,u={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:n,TargetLanguage:e.langMap.get(r)||r},o=this.scene=="general"?"TranslateGeneral":"Translate",i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:u,service:"mt",version:"2018-10-12"});return{text:i.Data.Translated,from:i.Data.DetectedLanguage&&e.langMapReverse.get(i.Data.DetectedLanguage)||a||"auto",to:e.langMapReverse.get(r)||r}}async translateList(t){let{text:n,from:a,to:r}=t,u=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:JSON.stringify(n.reduce((c,l,g)=>(c[g]=l,c),{})),TargetLanguage:e.langMap.get(r)||r,ApiType:u},i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),s=i.TranslatedList.length&&i.TranslatedList[0].detectedLanguage;return{text:i.TranslatedList.sort((c,l)=>parseInt(c.index)-parseInt(l.index)).map(c=>c.translated),from:s&&e.langMapReverse.get(s)||a||"auto",to:e.langMapReverse.get(r)||r}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:u,version:o}){let i=new Date().toISOString(),s=Math.random().toString(36).slice(2),c={Action:a,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:s,Timestamp:i,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},g=(b=>{let h=Object.keys(b).sort().map(A=>`${this.encode(A)}=${this.encode(b[A])}`).join("&");return`POST&%2F&${this.encode(h)}`})(Object.assign({},c,r)),p=e.SHA1.b64_hmac(`${n}&`,g),f=new URLSearchParams(Object.assign({},c,{Signature:p})).toString(),d=await oe({retry:1,url:`https://${u}.aliyuncs.com?${f}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(r).toString()});if(d instanceof Error)throw d;if(d.Code!=="200")throw new Error(d.Message);return d}};m();m();var M6=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],et={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},n0=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},a0=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let a=n0(t);if(a)return Array.isArray(n)?`${a}=${n.map(n0).sort().join(`&${a}=`)}`:`${a}=${n0(n)}`}).filter(t=>t).join("&"),Za=class{request;serviceName;bodySha256;constructor(t,n,a){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,a=a||{},this.bodySha256=a.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(a=>{let r=t[a];return typeof r<"u"&&r!==null}).sort().map(a=>{n[a]=t[a]}),n}async addAuthorization(t,n){let a=this.getDateTime(n);await this.addHeaders(t,a),this.request.headers.Authorization=await this.authorization(t,a)}async authorization(t,n){let a=[],r=this.credentialString(n);return a.push(`${et.algorithm} Credential=${t.accessKeyId}/${r}`),a.push(`SignedHeaders=${this.signedHeaders()}`),a.push(`Signature=${await this.signature(t,n)}`),a.join(", ")}async getSignUrl(t,n){let a=this.getDateTime(n),r={...this.request.params},u=this.request.params,o=this.request.headers;t.sessionToken&&(r[et.tokenHeader]=t.sessionToken),r[et.dateHeader]=a,r[et.notSignBody]="",r[et.credential]=`${t.accessKeyId}/${this.credentialString(a)}`,r[et.algorithmKey]=et.algorithm,r[et.signHeadersKey]="",r[et.signQueriesKey]=void 0,r[et.signatureKey]=void 0,r=this.sortParams(r),this.request.params=r,this.request.headers={};let i=await this.signature(t,a);return this.request.params=u,this.request.headers=o,r[et.signQueriesKey]=Object.keys(r).sort().join(";"),r[et.signatureKey]=i,a0(r)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[et.dateHeader]=n,t.sessionToken&&(this.request.headers[et.tokenHeader]=t.sessionToken),this.request.body){let a=this.request.body;this.request.headers[et.contentSha256Header]=await yn(a)}}async signature(t,n){let a=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return Ao(await aa(await this.stringToSign(n),a))}async stringToSign(t){let n=[];n.push(et.algorithm),n.push(t),n.push(this.credentialString(t));let a=await this.canonicalString();return n.push(await this.hexEncodedHash(a)),n.join(` `)}async canonicalString(){let t=[],n=this.request.pathname||"/";t.push(this.request.method.toUpperCase()),t.push(n);let a=a0(this.request.params)||"";return t.push(a),t.push(`${this.canonicalHeaders()} `),t.push(this.signedHeaders()),t.push(await this.hexEncodedBodyHash()),t.join(` `)}canonicalHeaders(){let t=[];Object.keys(this.request.headers).forEach(a=>{t.push([a,this.request.headers[a]])}),t.sort((a,r)=>a[0].toLowerCase(){let r=a[0].toLowerCase();if(this.isSignableHeader(r)){let u=a[1];if(typeof u>"u"||u===null||typeof u.toString!="function")throw new Error(`Header ${r} contains invalid value`);n.push(`${r}:${this.canonicalHeaderValues(u.toString())}`)}}),n.join(` -`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await yn(t)}async hexEncodedBodyHash(){return this.request.headers[et.contentSha256Header]?this.request.headers[et.contentSha256Header]:this.request.body?await this.hexEncodedHash(a0(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return M6.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,a,r){let u=await aa(n,`${et.kDatePrefix}${t.secretKey}`),o=await aa(a,u),i=await aa(r,o);return aa(et.v4Identifier,i)}createScope(t,n,a){return[t.substr(0,8),n,a,et.v4Identifier].join("/")}};var Fm=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],r0=new Map(Fm),F6=new Map(Fm.map(([e,t])=>[t,e])),u0=class extends be{static langMap=r0;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,a){if(super(t,n,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new Error("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let a={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},r=new Za(a,"translate");await r.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let u=new URLSearchParams(a.params),o=await oe({retry:2,url:"https://open.volcengineapi.com"+a.pathname+"?"+u.toString(),headers:r.request.headers,method:a.method,body:a.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let i=o.ResponseMetadata.Error;throw new ot(i.Code,i.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let i=o.ResponseMetaData.Error;throw new ot(i.Code,i.Message)}else throw new Error("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:a,to:r}=t,u=r0.get(a),o={TargetLanguage:r0.get(r)||r,TextList:n};u?o.SourceLanguage=u:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` -`).slice(0,1e3));let i={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},s=new Za(i,"translate");await s.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let c=new URLSearchParams(i.params),l=await oe({retry:2,url:"https://open.volcengineapi.com"+i.pathname+"?"+c.toString(),headers:s.request.headers,method:i.method,body:i.body});if(l.TranslationList){let g=l.TranslationList.map(f=>f.Translation),p=a;return l.TranslationList.length>0&&l.TranslationList[0].DetectedSourceLanguage&&(p=F6.get(l.TranslationList[0].DetectedSourceLanguage)||a),{text:g,from:p,to:r}}else if(l.ResponseMetadata&&l.ResponseMetadata.Error){let g=l.ResponseMetadata.Error;throw new ot(g.Code,g.Message)}else if(l.ResponseMetaData&&l.ResponseMetaData.Error){let g=l.ResponseMetaData.Error;throw new ot(g.Code,g.Message)}else throw new Error("response: "+JSON.stringify(l))}},Pm=u0;m();var _m=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],o0=new Map(_m),P6=new Map(_m.map(([e,t])=>[t,e])),Zr=class extends be{static langMap=o0;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:a,to:r}=t,u=o0.get(a)||"detect",o=o0.get(r)||r,s=await oe({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:u,target_language:o,text:n})});if(s.base_resp&&s.base_resp.status_code===0){let c=s.translation,l=a;return s.detected_language&&(l=P6.get(s.detected_language)||a),{text:c,from:l,to:r}}else{let c=s.base_resp;throw new ot(c.status_code.toString(),c.status_message)}}};m();var _6=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],i0=new Map(_6),Xr=class extends be{static langMap=i0;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,a){if(super(t,n,a),!t||!t.url)throw new Error("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(r=>r.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:a,to:r}=t,u=this.getRandomKey(),i=await oe({retry:2,url:u,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({source_lang:i0.get(a)||a,target_lang:i0.get(r)||r,text:n})});if(i.code===200)return{text:i.data,from:a,to:r};throw new Error(i.message||i.message||"API Error")}};m();m();var s0="https://{s}bing.com",Nm=s0+"/translator",B6=s0+"/ttranslatev3",R6=s0+"/tspellcheckv3",Fo="bingGlobalConfig",jm=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],Bm=new Map(jm),Rm=new Map(jm.map(([e,t])=>[t,e])),Om=1e3,xn,Xa;function l0(e,t){return e.replace("{s}",t?t+".":"")}async function O6(){if(!xn){let n=await ue.storage.local.get(Fo);return n&&(xn=n[Fo]),!0}let{tokenTs:e,tokenExpiryInterval:t}=xn;return Date.now()-e>t}async function Im(){let e,t,n,a,r,u,o,i,s,c;try{let l=l0(Nm,e),g=await oe({retry:2,url:l,responseType:"raw"}),{body:p,headers:f,url:d}=g;e=d.match(/^https?:\/\/(\w+)\.bing\.com/)[1],c=f["set-cookie"],t=p.match(/IG:"([^"]+)"/)[1],n=p.match(/data-iid="([^"]+)"/)[1],[r,a,u,o,i,s]=JSON.parse(p.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(l){throw l}return xn={subdomain:e,IG:t,IID:n,key:r,token:a,tokenTs:r,tokenExpiryInterval:u,isVertical:o,frontDoorBotClassification:i,isSignedInOrCorporateUser:s,cookie:c,count:0},await ue.storage.local.set({[Fo]:xn}),xn}function I6(e){let{IG:t,IID:n,subdomain:a,isVertical:r}=xn;return l0(e?R6:B6,a)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+xn.count++:"")}function N6(e,t,n,a){let{token:r,key:u}=xn,o={fromLang:n,text:t,token:r,key:u};return!e&&a&&(o.to=a),o}async function Um(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>Om)throw new Error(`The supported maximum length of text is ${Om}. Please shorten the text.`);Xa||(Xa=Im()),await Xa,await O6()&&(Xa=Im(),await Xa),t=t||"auto",n=n||"zh-CN",t=Bm.get(t)||t,n=Bm.get(n)||n;let r=I6(!1),u=N6(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:l0(Nm,xn.subdomain),"content-type":"application/x-www-form-urlencoded"},i=new URLSearchParams(u),s=r,c=i.toString(),l=await oe({retry:2,url:s,headers:o,method:"POST",body:c});if(l.ShowCaptcha||l.StatusCode===401||l.statusCode){if(xn=null,Xa=null,await ue.storage.local.remove(Fo),l.ShowCaptcha)throw new Error(` +`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await yn(t)}async hexEncodedBodyHash(){return this.request.headers[et.contentSha256Header]?this.request.headers[et.contentSha256Header]:this.request.body?await this.hexEncodedHash(a0(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return M6.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,a,r){let u=await aa(n,`${et.kDatePrefix}${t.secretKey}`),o=await aa(a,u),i=await aa(r,o);return aa(et.v4Identifier,i)}createScope(t,n,a){return[t.substr(0,8),n,a,et.v4Identifier].join("/")}};var Pm=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],r0=new Map(Pm),F6=new Map(Pm.map(([e,t])=>[t,e])),u0=class extends be{static langMap=r0;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,a){if(super(t,n,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new Error("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let a={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},r=new Za(a,"translate");await r.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let u=new URLSearchParams(a.params),o=await oe({retry:2,url:"https://open.volcengineapi.com"+a.pathname+"?"+u.toString(),headers:r.request.headers,method:a.method,body:a.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let i=o.ResponseMetadata.Error;throw new ot(i.Code,i.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let i=o.ResponseMetaData.Error;throw new ot(i.Code,i.Message)}else throw new Error("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:a,to:r}=t,u=r0.get(a),o={TargetLanguage:r0.get(r)||r,TextList:n};u?o.SourceLanguage=u:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` +`).slice(0,1e3));let i={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},s=new Za(i,"translate");await s.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let c=new URLSearchParams(i.params),l=await oe({retry:2,url:"https://open.volcengineapi.com"+i.pathname+"?"+c.toString(),headers:s.request.headers,method:i.method,body:i.body});if(l.TranslationList){let g=l.TranslationList.map(f=>f.Translation),p=a;return l.TranslationList.length>0&&l.TranslationList[0].DetectedSourceLanguage&&(p=F6.get(l.TranslationList[0].DetectedSourceLanguage)||a),{text:g,from:p,to:r}}else if(l.ResponseMetadata&&l.ResponseMetadata.Error){let g=l.ResponseMetadata.Error;throw new ot(g.Code,g.Message)}else if(l.ResponseMetaData&&l.ResponseMetaData.Error){let g=l.ResponseMetaData.Error;throw new ot(g.Code,g.Message)}else throw new Error("response: "+JSON.stringify(l))}},_m=u0;m();var Bm=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],o0=new Map(Bm),P6=new Map(Bm.map(([e,t])=>[t,e])),Qr=class extends be{static langMap=o0;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:a,to:r}=t,u=o0.get(a)||"detect",o=o0.get(r)||r,s=await oe({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:u,target_language:o,text:n})});if(s.base_resp&&s.base_resp.status_code===0){let c=s.translation,l=a;return s.detected_language&&(l=P6.get(s.detected_language)||a),{text:c,from:l,to:r}}else{let c=s.base_resp;throw new ot(c.status_code.toString(),c.status_message)}}};m();var _6=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],i0=new Map(_6),Zr=class extends be{static langMap=i0;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,a){if(super(t,n,a),!t||!t.url)throw new Error("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(r=>r.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:a,to:r}=t,u=this.getRandomKey(),i=await oe({retry:2,url:u,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({source_lang:i0.get(a)||a,target_lang:i0.get(r)||r,text:n})});if(i.code===200)return{text:i.data,from:a,to:r};throw new Error(i.message||i.message||"API Error")}};m();m();var s0="https://{s}bing.com",jm=s0+"/translator",B6=s0+"/ttranslatev3",R6=s0+"/tspellcheckv3",Fo="bingGlobalConfig",Um=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],Rm=new Map(Um),Om=new Map(Um.map(([e,t])=>[t,e])),Im=1e3,xn,Xa;function l0(e,t){return e.replace("{s}",t?t+".":"")}async function O6(){if(!xn){let n=await ue.storage.local.get(Fo);return n&&(xn=n[Fo]),!0}let{tokenTs:e,tokenExpiryInterval:t}=xn;return Date.now()-e>t}async function Nm(){let e,t,n,a,r,u,o,i,s,c;try{let l=l0(jm,e),g=await oe({retry:2,url:l,responseType:"raw"}),{body:p,headers:f,url:d}=g;e=d.match(/^https?:\/\/(\w+)\.bing\.com/)[1],c=f["set-cookie"],t=p.match(/IG:"([^"]+)"/)[1],n=p.match(/data-iid="([^"]+)"/)[1],[r,a,u,o,i,s]=JSON.parse(p.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(l){throw l}return xn={subdomain:e,IG:t,IID:n,key:r,token:a,tokenTs:r,tokenExpiryInterval:u,isVertical:o,frontDoorBotClassification:i,isSignedInOrCorporateUser:s,cookie:c,count:0},await ue.storage.local.set({[Fo]:xn}),xn}function I6(e){let{IG:t,IID:n,subdomain:a,isVertical:r}=xn;return l0(e?R6:B6,a)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+xn.count++:"")}function N6(e,t,n,a){let{token:r,key:u}=xn,o={fromLang:n,text:t,token:r,key:u};return!e&&a&&(o.to=a),o}async function zm(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>Im)throw new Error(`The supported maximum length of text is ${Im}. Please shorten the text.`);Xa||(Xa=Nm()),await Xa,await O6()&&(Xa=Nm(),await Xa),t=t||"auto",n=n||"zh-CN",t=Rm.get(t)||t,n=Rm.get(n)||n;let r=I6(!1),u=N6(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:l0(jm,xn.subdomain),"content-type":"application/x-www-form-urlencoded"},i=new URLSearchParams(u),s=r,c=i.toString(),l=await oe({retry:2,url:s,headers:o,method:"POST",body:c});if(l.ShowCaptcha||l.StatusCode===401||l.statusCode){if(xn=null,Xa=null,await ue.storage.local.remove(Fo),l.ShowCaptcha)throw new Error(` Sorry that bing translator seems to be asking for the captcha, Please take care not to request too frequently. The response code is ${l.StatusCode}. `);if(l.StatusCode===401)throw new Error(` Max count of translation exceeded. Please try it again later. The response code is 401. - `);if(l.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(l)}.`)}let g=l[0].translations[0],p=l[0].detectedLanguage;return{text:g.text,from:Rm.get(p.language),to:Rm.get(g.to)}}m();var Po=new Map;async function c0(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=Zn(e.body)),Po.has(t))return Po.get(t);let n=oe(e);Po.set(t,n);try{return await n}catch(a){throw a}finally{setTimeout(()=>{Po.delete(t)},3e4)}}async function zm(e){return c0(e)}async function Hm(e){if(Je()){let n=Co();if(n)try{return await n.ask("throttleRequest",e)}catch(a){throw j.error("can not comunicate with root frame, use strict limiter",a),a}else return c0(e)}else return c0(e)}m();function qm(e){let t=e.split(".");if(t.length<=1)throw new Error("invlaid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let a=n.replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(globalThis.atob(a).split("").map(function(i){return"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)}).join("")),u=JSON.parse(r),o=new Date(u.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}var wa=null,j6=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],d0=new Map(j6),eu=class extends be{static langMap=d0;isSupportList=!0;maxTextLength=1800;static async clearState(){wa=null,await Nr(Fu)}async translate(t){let{text:n,from:a,to:r}=t;return n?await Um(n,a,r):{...t}}async init(){if(!wa){wa={};let t=await Or(Fu);t&&(wa=t)}await Wm(wa)}async translateList(t){let{from:n,to:a,text:r}=t,u=d0.get(n)||"auto",o=d0.get(a)||a;u==="auto"&&(u="");let i=await Wm(wa),s=[];for(let p of r)s.push({Text:p});let c=JSON.stringify(s),l=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${u}&to=${o}&api-version=3.0&includeSentenceLength=true`,g=await oe({url:l,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+i.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin"},body:c,method:"POST"});if(g&&g.length>0&&g[0].translations&&g[0].translations.length>0)return{text:g.map(p=>p.translations[0]?.text||""),from:n,to:a};throw new Error("Microsoft translate error "+JSON.stringify(g))}};async function Wm(e){if(e&&e.accessToken&&e.accessTokenExpiresAt){let t=Date.now(),a=new Date(e.accessTokenExpiresAt).getTime();if(a-t>30*1e3)return e;if(a-t>3e3)return $m().catch(r=>{j.error(r)}),e}return $m()}async function $m(){let e=await Hm({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET"}),t=qm(e),n=t.accessTokenExpiresAt,r=new Date(n).getTime()-Date.now();return wa=t,await Ir(Fu,t,r-1e3),{accessToken:e,accessTokenExpiresAt:t.accessTokenExpiresAt}}m();var Km=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],m0=new Map(Km),U6=new Map(Km.map(([e,t])=>[t,e])),g0=class extends be{static langMap=m0;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";appid="";key="";isSupportList=!1;maxTextGroupLength=20;constructor(t,n,a){if(super(t,n,a),!t||!t.appid||!t.key)throw new Error("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim()}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:a}=this,{appid:r,key:u}=this,{text:o,from:i,to:s}=t,c=new URLSearchParams({from:m0.get(i)||"auto",to:m0.get(s)||s,q:o,salt:n,appid:r,sign:Zn(r+o+n+u)}),l=new URL(a);l.search=c.toString();let g=await oe({url:l.toString()});if(g.error_code)throw new ot("API_SERVER_ERROR",g.error_msg);let{trans_result:p,from:f}=g,d=p.map(({dst:C})=>C);return{from:U6.get(f)||f,to:s,text:d.join(` -`)}}},Gm=g0;m();m();var va=class extends be{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,a){super(t,n,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let u=await this.checkLang(a,n);if(!u)return{text:n,from:a,to:r};a=u;let o=this.handleRequest(n,a,r),i=await Zu(o);return{text:this.handleResponseText(i),from:a,to:r}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let u=await this.checkLang(a,n.join(" "));if(!u)return{text:n,from:a,to:r};a=u;let o=this.handleRequest(n,a,r),i=await Zu(o);return{text:this.handleResponseText(i),from:a,to:r}}handleBaseApiServiceConfig(t){let n=t.request.url,a=t.request.headers||{};return a["content-type"]||(a["content-type"]="application/json"),{url:n,retry:t.request.retry||2,method:t.request.method||"POST",headers:a,body:JSON.stringify(t.request.body)}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,a){let r={...this.requestBaseConfig},u=r?.body||"",o=this.apiServiceConfig.keywords||{};r.body=s(u);let i=r.headers||{};return Object.keys(i).forEach(c=>{i[c]=s(i[c])}),r.headers=i,r.url=s(r.url||""),r;function s(c){return c.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",a).replaceAll(/{([a-z:_]+)}/gi,(g,p)=>{let[f,d]=p.split(":"),b=o[f];return d==="random"?z6(b.split(",")):b})}}handleResponseText(t){let n=this.apiServiceConfig.response,a=t,r=n.text.split(".");for(let u of r){if(Array.isArray(a))return a=a.map(o=>o[u]),a;a=a[u]}return a}detectLanguageRemotely(t){return Ca.detectLanguageRemotelyByTransmart(t)}};function z6(e){let t=Math.floor(Math.random()*e.length);return e[t]}var p0=class extends va{constructor(t,n,a){if(!t?.token)throw new Error("token are required");super({...t,isSupportList:!0,langs:[["zh-CN","zh"],["en","en"],["ja","ja"]],keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,a)}},Vm=p0;m();var H6=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],_o=new Map(H6),f0=class extends be{static langMap=_o;token="ssdj273ksdiwi923bsd9";constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t;if(!_o.get(r))throw new Error(`Unsupported language: ${r}`);if(a==="auto")throw new Error("Unsupported language: auto");let o=n;return{text:(await oe({retry:2,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${_o.get(a)||"auto"}2${_o.get(r)}`})})).target,from:a,to:r}}},Ym=f0;m();var Jm=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],h0=new Map(Jm),q6=new Map(Jm.map(([e,t])=>[t,e]));function W6(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var b0=class extends be{static langMap=h0;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,a){if(super(t,n,a),!t||!t.appId||!t.appSecret)throw new Error("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,u=$6(32),o=Math.round(new Date().getTime()/1e3),i=this.appId+W6(n)+u+o+this.appSecret,s=await yn(i),c={q:n,appKey:this.appId,salt:u.toString(),from:h0.get(a)||"auto",to:h0.get(r)||r,sign:s,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(c.domain=this.domain),this.vocabId&&(c.vocabId=this.vocabId);let l=new URLSearchParams(c),p=await oe({url:"https://openapi.youdao.com/api",method:"POST",body:l.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"}});if(!p.translation)throw new Error(JSON.stringify(p));let f=p.l,[d,b]=f.split("2");return{text:p.translation.join(` -`),from:q6.get(d),to:r}}};function $6(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r[t,e]));var x0=class extends be{static langMap=y0;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,u={q:n,from:y0.get(a)||"auto",to:y0.get(r)||r},o=new URLSearchParams(u),i=await oe({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"}});if(i&&i.translation)return{text:i.translation.join(` -`),from:a,to:r};throw new Error("Youdao translation failed: "+JSON.stringify(i))}},Xm=x0;m();var tu=class extends va{constructor(t,n,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(r=>[r,r]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||ha,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,a)}};var K6={mock:Qa,mock2:Qa,custom:tu,google:Ta,transmart:Ca,deepl:Cm,volc:Pm,volcAlpha:Zr,bing:eu,tencent:Wr,tenAlpha:$r,baidu:Gm,caiyun:Vm,cai:Ym,openl:Do,youdao:Qm,you:Xm,d:Ja,dpro:Ja,deeplx:Xr,niu:wm,azure:vm,openai:km,chatgpt:Yr,papago:Am,aliyun:Qr},ra={};Object.keys(Bn).forEach(e=>{ra[e]={...Bn[e],class:K6[e]}});function eg(e,t){let n=Xt;if(ra[e]&&ra[e].class&&ra[e].class.langMap&&ra[e].class.langMap.size>0){let a=ra[e].class.langMap,r=n.filter(u=>a.get(u));return r.includes(t)||r.unshift("placeholder"),r}else return Xt}async function Aa(e,t){if(!e.text)return e;let n=await ua({sentences:[e]},t);if(n.sentences.length>0)return{...e,...n.sentences[0]};throw new ot("translateFailed","translate failed")}async function tg(e,t){for(let n of e)try{return await Aa({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n}),n}catch{continue}return null}async function E0(e){let{config:t,translationService:n}=e,a=t.translationGeneralConfig,r=t.translationServices,u=n,o=r[u]||{},i=tn(e.user),s=new ra[u].class(o,a,{translationService:u,userToken:e.user?.token,isPro:i}),c=s.getDefaultRateLimit();c&&(o&&!o.limit&&(o.limit=c.limit),o&&!o.interval&&(o.interval=c.interval)),u==="deepl"&&o&&o.provider==="pro"&&(o.limitForImmersiveDeepl?o.limit=o.limitForImmersiveDeepl:c&&(o.limit=c.limit)),await tm(u,o),await s.init()}async function ua(e,t,n){if(!e.sentences.length)return{...e};let{config:a,translationService:r,state:u}=t,o=a.translationGeneralConfig,i=a.translationServices,s=r,c=i[s]||{};s==="openai"&&(e.sentences=e.sentences.map(A=>({...A,from:"auto"})));let l=[],g={sentences:Array(e.sentences.length)},p=e.sentences.length,f=-1;if(u.cache)for(let A of e.sentences){f++;let S=s;s==="openl"&&(S=s+"-"+c.codename||Do.DEFAULT_CODENAME);let U=null;try{U=await wu(Od({originalText:A.text,from:A.from,to:A.to,service:S}),200)}catch(R){j.warn("query cache DB error, but it's ok",R)}if(U){let R={...A,text:U.translatedText};g.sentences[f]=R,n&&n(null,R,A)}else l.push(A)}else l.push(...e.sentences);let d=l.length;if(p-d>0&&j.debug(`use ${p-d} sentences from cache`),!l.length)return g;let b,C=tn(t.user);try{b=new ra[s].class(c,o,{translationService:s,userToken:t.user?.token,isPro:C}),await b.init()}catch(A){if(n)for(let S of l)n(A,null,S);throw A}let h=await b.multipleTranslate({sentences:l},c,(A,S,U)=>{if(n&&n(A,S,U),!A&&S&&!s.startsWith("mock")&&u.cache){let R=s;s==="openl"&&(R=s+"-"+c.codename||Do.DEFAULT_CODENAME),u.cache&&wu(Id({translatedText:S.text,from:U.from,to:U.to,detectedFrom:S.from,key:Zn(U.text),service:R}),3e3).catch(y=>{j.warn("set cache DB error",y)})}});for(let A of h.sentences){let S=g.sentences.findIndex(U=>!U);if(S===-1)throw new ot("translateFailed","can not match the result");g.sentences[S]=A}return g}m();var Bo=!1,G6=fe();function ng(e,t){let n=[];for(let a of t){let r=e.querySelectorAll(a);for(let u of r)n.push(u)}return n}function V6(e,t){let n=function(u){return u.nodeType===Node.ELEMENT_NODE||u.nodeType===Node.TEXT_NODE?u.nodeType===Node.ELEMENT_NODE&&ag(u,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),r=!0;for(;a.nextNode();){let u=a.currentNode;if(u.nodeType===Node.ELEMENT_NODE){if(oa(u,Nu)){if(r===!0)return!0;continue}if(nu(u.nodeName,t.inlineTags))return!0;if(!T0(u,t))return!1}}return!0}function C0(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(nu(e.nodeName,n)||T0(e,t)){if(oa(e,g4)||nu(e.nodeName,["BR"]))return!1;if(oa(e,Nu))return!0;if(T0(e,t)){let a=globalThis.getComputedStyle(e);if(a.display==="block"||a.display==="flex")return!1}return V6(e,t)}else return oa(e,Nu);return!1}function ag(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&oa(e,m4,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&oa(e,i4))return!1;let{stayOriginalTags:a,excludeTags:r}=t,u=[];return n&&r&&r.length>0?u=r||[]:u=r.filter(o=>!a.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||nu(e.nodeName,u))}function er(e,t,n){let a=e.trim();return a.length>=t||a.split(" ").filter(o=>o.trim()!=="").length>=n||!ug(a)&&a.length>=n}function rg(e,t,n){let a=e.trim();if(a.length<=t)return!0;if(ug(a)){if(a.split(" ").length<=n)return!0}else if(a.length<=n)return!0;return!1}function ug(e){for(let t=0;t127)return!1;return!0}function og(e){if(e&&e.includes("://"))try{return new URL(e),!0}catch{return!1}else return!1}function ig(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function sg(e){return e?/^[-+]?[0-9]*\.?[0-9]+%?$/.test(e):!1}function lg(e){return!!(e&&e.startsWith("#")&&e.indexOf(" ")===-1)}function cg(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function oa(e,t,n=!1){return w0(e,t,"1",n)}function w0(e,t,n,a=!1){return Bo&&!a?e[It]?!!(e[It]&&e[It][t]===n):!1:e.dataset[t]===n}function tr(e){return(e.innerText||e.textContent||"").trim()}function v0(e){let t=e.querySelectorAll("iframe"),n="";for(let a=0;a2e3))break}return n}function Ro(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function at(e,t,n,a=!1,r=!1){e.isContentEditable&&!r||(Bo&&!a?(e.dataset[Mr]||(e.dataset[Mr]="1"),e[It]||(e[It]={}),e[It][t]||(e[It][t]=n)):(e.dataset[Mr]||(e.dataset[Mr]="1"),e.dataset[t]!==n&&(e.dataset[t]=n)))}function Oo(e,t,n=!1){if(Bo&&!n){if(!e[It]||!e[It][t])return;delete e[It][t]}else delete e.dataset[t]}function nr(e,t,n=!1){return Bo&&!n?!e[It]||!e[It][t]?void 0:e[It][t]:e.dataset[t]}function T0(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!nu(e.nodeName,n)}function ar(e){let{config:t}=e,n=ha;return t.translationServices[e.translationService]&&t.translationServices[e.translationService].placeholderDelimiters&&(n=t.translationServices[e.translationService].placeholderDelimiters),n}function Ze(){if(!globalThis||!globalThis.location)return"https://example.com";if(!Je())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let a="";try{a=globalThis.parent.location.href}catch{}return a||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function ia(e,t,n){if(e instanceof ShadowRoot){try{e.appendChild(document.createElement("style")).textContent=t}catch(a){j.warn("injectCSS failed, rootDocument"+a?.message,e)}return}if(e&&e.head&&e.head.appendChild){let a=e.createElement("style");if(n){let r=e.querySelector(`style[data-id="${n}"]`);r&&r.remove(),a.dataset.id=n}a.textContent=t,e.head.appendChild(a)}else if(e){let a=document.createElement("head"),r=document.createElement("style");r.textContent=t,a.appendChild(r),e.appendChild(a)}else j.warn("injectCSS failed, rootDocument does not have head node",e)}function rr(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(G6){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!document.querySelector("meta[name='immersive-translate-ebook-viewer']")||!t.startsWith("blob:http");return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function nu(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function dg(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),a=parseInt(t.substring(2,4),16),r=parseInt(t.substring(4,6),16);return{r:n,g:a,b:r}}function mg(e,t,n,a){if(a.document.caretPositionFromPoint){let r=a.document.caretPositionFromPoint(e,t);if(r){let u=a.document.createRange(),o=r.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||ag(o,n,!0))return null;try{u.setStart(o,r.offset),u.setEnd(o,r.offset)}catch(i){return j.warn("getRangeFromPoint error",i),null}return u}return null}else return a.document.caretRangeFromPoint?a.document.caretRangeFromPoint(e,t):null}function gg(e,t,n){let a=0,r=(u,o,i,s)=>{if(++a>100||s===u)return u;let c=u.shadowRoot;if(!c||typeof c.elementFromPoint!="function")return u;let l=c.elementFromPoint(o,i);return l?r(l,o,i,u):u};return r(e,t,n)}m();m();var Y6=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function En(e,t){if(t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function A0(e,t,n){let{blockSelectors:a,extraBlockSelectors:r,extraInlineSelectors:u}=t;if(En(e,u))return!1;if(En(e,r)||e.nodeName.toLowerCase()==="br")return!0;let s=null;return e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(s=e.parentNode.immersiveTranslateComputedStyle),s&&s.display&&s.display==="inline-flex"?!1:n&&n.display?!!Y6.includes(n.display):En(e,a)}var Mt=En;function ka(e){return!!e.shadowRoot}function sa(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function au(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Io(e){let t=ha;return e&&(t=e),t}function No(e,t){return Xn(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function J6(e){let{rule:t}=e,n=e.config.loadingTheme;return` <${t.targetWrapperTag} class="${J}-loading-${n} notranslate">`}function ru(e,t){let n=e.rule,a=document.createElement(n.targetWrapperTag);a.classList.add("notranslate",$t),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),at(a,c4,t.toString());let r=J6(e);return a.append(_e.sanitize(r,{RETURN_DOM_FRAGMENT:!0})),a}function ur(e,t){return e.querySelector(`[${is}='${t}']`)}function pg(){document.querySelectorAll(`[${is}]`).forEach(t=>{t.remove()})}function fg(){document.querySelectorAll(`.${$t}-error`).forEach(t=>{t.remove()})}function hg(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{rr(n)&&t.push(n)}),t}function bg(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:a,delimiters:r,text:u}=e,o=new RegExp(`${r[0]}(\\d+)${r[1]}`,"gi");if(r.length>2){let s=r[2];o=new RegExp(`<${s}(\\d+)>(.*?)`,"gi")}let i=u.trim();return i=i.replace(o,""),i=i.trim(),i===""||i.length===1&&i.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(u)||i.includes("")||i.includes("< styles>")||cg(i)||og(i)||lg(i)||ig(i)||sg(i)||o.test(i)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(i)?!1:er(u,n,a)}function Tn(e){return e.nodeType===Node.ELEMENT_NODE}function yg(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}function xg(e){try{let t=Math.floor((new Date-new Date(e))/1e3);return t<60?`${t} \u79D2\u524D`:t<3600?`${Math.floor(t/60)} \u5206\u949F\u524D`:t<86400?`${Math.floor(t/3600)} \u5C0F\u65F6\u524D`:`${Math.floor(t/86400)} \u5929\u524D`}catch{return e}}async function Eg(e){let n=Ve().INSTALL_FROM,a=nn(),r=await St("installedAt",""),u=await St("fakeUserId","");return{installFrom:n,version:a,installedAt:r,interfaceLang:e,deviceId:u}}var Q6=1e5;function la(e){let{onParagraph:t,filterRule:n,id:a}=e;n=Z6(n);let{stayOriginalSelectors:r,globalStyles:u,selectors:o,isTransformPreTagNewLine:i,lineBreakMaxTextCount:s,globalAttributes:c,isModifyImage:l,skipEditableCheck:g}=n,p={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},f=!1,d=null;function b(R){let{container:y,onFrame:T,onIgnoreElement:k,id:v}=R,E=document.createTreeWalker(y,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,w=>{let _=P(w);return _==NodeFilter.FILTER_ACCEPT?Ut.mark(w,v,g):_==NodeFilter.FILTER_REJECT,_}),B=y;if(P(B)===NodeFilter.FILTER_REJECT)return;for(Ut.mark(B,v,g);B;){if(o&&o.length>0){let{currentNode:w,isMatchedSelection:_}=C(E,B,o);if(w)B=w;else break;if(!_)continue}if(B.nodeType===Node.ELEMENT_NODE||B.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let w=B;if(w.nodeName==="IFRAME"){T&&T(w),h(),k0(p,!0),B=E.nextNode();continue}w.nodeType===Node.ELEMENT_NODE&&(u&&D0(w,u),c&&M0(w,c));let _=A0(w,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},w.immersiveTranslateComputedStyle||null);if(Mt(w,r)&&!_){A(w);let M=null;for(;!(M=E.nextSibling())&&E.parentNode(););B=M;continue}let O=ka(w);(!Tg(p,w)||_)&&(h(),w.childNodes.length>0&&S(p,w,w.immersiveTranslateComputedStyle||null)),O&&w.shadowRoot?.mode==="open"&&(_?T?.(w.shadowRoot):b({...R,container:w.shadowRoot})),w.nodeType===Node.ELEMENT_NODE&&w.nodeName==="PRE"&&i&&n9(w)}else if(B.nodeType===Node.TEXT_NODE)A(B);else throw new Error("should not be here");B=E.nextNode(),p.commonAncestorContainer&&B&&B.parentNode===p.commonAncestorContainer&&(p._currentStacks=[]),p.commonAncestorContainer&&B&&B.nodeType===Node.ELEMENT_NODE&&p._currentStacks.push(B)}function P(w){if(w.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Tn(w)){if(c){let M=Object.keys(c);if(M.length>0&&Mt(w,M))for(let L of M){let I=c[L];if(w.matches(L)){let $=c[L],z=Object.keys($);for(let Y of z){let q=$[Y];w.getAttribute(Y)!==q&&(q===null?w.removeAttribute(Y):w.setAttribute(Y,q))}break}}}if(!R.force&&Ut.isMarked(w,v)||yg(w,v)||F0(w,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,stayOriginalSelectors:r})||w.nodeName==="IFRAME"&&!rr(w))return NodeFilter.FILTER_REJECT;let _=w.getBoundingClientRect(),{width:O,height:N}=_;if(w.nodeType===Node.ELEMENT_NODE){let M=window.getComputedStyle(w);if(w.immersiveTranslateComputedStyle={display:M.display,whiteSpace:M.whiteSpace,left:_.left+"px",right:_.right+"px",top:_.top+"px",bottom:_.bottom+"px"},L0(w.immersiveTranslateComputedStyle))return k&&k(w),NodeFilter.FILTER_REJECT;let x=A0(w,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},w.immersiveTranslateComputedStyle||null);if(Mt(w,r)&&x)return NodeFilter.FILTER_REJECT}return w.nodeName==="IMG"&&(O>48&&N>48?w.immersiveTranslateComputedStyle={display:"block"}:O>0&&N>0&&l!==!1&&(w.setAttribute("width",O),w.setAttribute("height",N))),!w.childNodes||w.childNodes&&w.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!p.isPreWhitespace&&(O>0&&O<4||N>0&&N<4)&&(w.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(w.nodeType===Node.TEXT_NODE){let _=w.textContent?.trim();if(!_)return p.isPreWhitespace?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let O=w.parentNode;if(O.getBoundingClientRect){let{width:N,height:M}=O.getBoundingClientRect();if(N>0&&N<4||M>0&&M<4)return NodeFilter.FILTER_REJECT}return s>0&&_.length>=s&&S0(w,s),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}b(e),p&&p.commonAncestorContainer&&p.flatNodes.length>0&&h();function C(R,y,T){let k=y.immersiveTranslateComputedStyle||null;if(d){if(!d.contains(y))if(f=!1,y&&y.nodeType===Node.ELEMENT_NODE)if(jo(y,T))f=!0,d=y,h(),S(p,d,k);else return f=!1,y=R.nextNode(),{currentNode:y,isMatchedSelection:f};else return f=!1,y=R.nextNode(),{currentNode:y,isMatchedSelection:f}}else if(y&&y.nodeType===Node.ELEMENT_NODE)if(jo(y,T))f=!0,d=y,h(),S(p,d,k);else return f=!1,y=R.nextNode(),{currentNode:y,isMatchedSelection:f};else return f=!1,y=R.nextNode(),{currentNode:y,isMatchedSelection:f};return{currentNode:y,isMatchedSelection:!0}}function h(){let R=t9(p,a);R&&t&&t(R),k0(p)}function A(R){if(!Tg(p,R)){h(),k0(p);let y=R.parentNode;y&&S(p,y,y.computedStyle)}p.flatNodes.push(R)}function S(R,y,T){R.commonAncestorContainer=y;let k=U(T);R.isPreWhitespace=k}function U(R){return R&&R.whiteSpace&&R.whiteSpace.startsWith("pre")||R&&R.whiteSpace==="break-spaces"||!1}}function Tg(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=ka(t));let a=e9(e),r=!0;return!n&&!a&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?r=!0:e.commonAncestorContainer&&(r=!1,e._currentStacks=[])),r}function Z6(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let a=n!=="iframe";return t?a&&n!=="pre":a}),e}function X6(e,t,n){if(t){for(let a of t.childNodes)if(a.contains(n))return a}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function D0(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Mt(e,n))for(let r of n){let u=t[r];if(e.matches(r)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+u;break}}}}function e9(e){return e&&e._currentStacks?e._currentStacks.some(t=>ka(t)):!1}function t9(e,t){let{flatNodes:n,commonAncestorContainer:a}=e;if(a&&n.length>0){if(!n.map(p=>p.textContent?.trim()||"").join(""))return null;if(n.length===1)return{ctxId:t,stepState:1,commonAncestorContainer:n[0].parentNode,rootNodes:[n[0]],flatNodes:n,isPreWhitespace:e.isPreWhitespace,variables:{}};let u=a9(n,a);u||(u=a);let o=[];for(let p of n){let f=X6(e,u,p);f&&(o.includes(f)||o.push(f))}if(o.length<1)return null;let i=o[0],s=o[o.length-1],c=[],l=i,g=0;for(;l&&(c.push(l),l!==s);){if(g++,g>Q6){j.warn("loop too many times for convert root nodes, break");break}l=l.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:n,commonAncestorContainer:u,variables:{},isPreWhitespace:e.isPreWhitespace}}else return null}function k0(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function L0(e){let t=e.top?parseInt(e.top):0,n=e.left?parseInt(e.left):0,a=e.right?parseInt(e.right):0,r=e.bottom?parseInt(e.bottom):0;return isNaN(t)&&(t=0),isNaN(n)&&(n=0),isNaN(a)&&(a=0),isNaN(r)&&(r=0),e.display==="none"||t<-1e3||n<-1e3||a<-1e3||r<-1e3}var Ut={_marked_key:"immersive_translate_walked",isMarked(e,t){return w0(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||ka(e)))return Oo(e,this._marked_key)},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||ka(e)))return at(e,this._marked_key,t,!1,n)},markWalk(e,t,n){if(!e||e.nodeType!==Node.ELEMENT_NODE||this.isSkipMarkEle(e))return;let a=nr(e,"markWalk")||"";return at(e,"markWalk",a+","+t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||ka(e)):!1}};function n9(e){let n=e.innerHTML.replace(/\n\n/g,"
");e.innerHTML=_e.sanitize(n)}function a9(e,t){if(!e.length)return null;let n=e.map(a=>{let r=new Set;for(;(a=a.parentNode)&&(r.add(a),a!==t););return r});for(let a of n[0])if((a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&n.every(r=>r.has(a)))return a;return null}function S0(e,t){let n=e.textContent||"";if(n.trim().length<=t)return;let u=[". ","? ","! ","\u3002","\uFF1F","\uFF01"].reduce((o,i)=>{let s=n.lastIndexOf(i,t);return s>o?s:o},-1);if(u>1){let o=n[u-1]||"",i=n[u-2]||"",s=n[u+1]||"";o==="."||s==="."||s===")"||i==="."&&o==="S"||i.toUpperCase()==="M"&&(o.toUpperCase()==="R"||o.toUpperCase()==="S")?u=-1:isNaN(Number(o))||(u=-1)}if(u===-1)n.length>t+20&&S0(e,t+20);else{let o=n.slice(u+1);u++,o.startsWith(" ")&&u++;let i=e.splitText(u),s=document.createElement("br");i.parentNode?.insertBefore(s,i),u+10)for(let a of n){let r=t[a],u=Object.keys(r),o=ng(e,[a]);for(let i of o)for(let s of u){let c=r[s];i.getAttribute(s)!==c&&(c===null?i.removeAttribute(s):i.setAttribute(s,c))}}}function wg(e,t,n,a,r,u){let o=Object.keys(t);if(o.length>0)for(let i of o){let s=t[i],c=Object.keys(s),l=e.querySelector(i);if(l)for(let g of c){let p=s[g];if(g==="translate"&&p==="no"){let d=l.innerText||l.textContent||"";if(!d.trim()||r9(l,r,u)||!rg(d,n,a))continue}l.getAttribute(g)!==p&&(p===null?l.removeAttribute(g):l.setAttribute(g,p))}}}function M0(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Mt(e,n))for(let r of n){let u=t[r];if(e.matches(r)){let o=t[r],i=Object.keys(o);for(let s of i){let c=o[s];e.getAttribute(s)!==c&&(c===null?e.removeAttribute(s):e.setAttribute(s,c))}break}}}}function F0(e,t){return Mt(e,t.excludeSelectors||[])?Mt(e,t.selectors||[])?!1:!Mt(e,t.stayOriginalSelectors||[]):!1}function jo(e,t){if(t.length===0)return!1;let n=t.filter(a=>!a.endsWith("*")).map(a=>a+" *");return Mt(e,t.concat(n))}function r9(e,t,n){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,r=>NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let r=a.currentNode;if(r.nodeType===Node.TEXT_NODE&&parent){let u=r.textContent||"";if(u.includes("Copyright"))continue;if(er(u,t,n))return!0}}return!1}m();m();var vg=["*://*/*","*","*://*"],kg="immersive-translate-wildcard-placeholder.com";function P0(e,t){let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(o=>vg.includes(o)))return e;let a=new URL(e);a.hash="",a.search="";let r=a.href,u=a.hostname;if(n&&n.length>0){let o=n.find(i=>{let s=i;if(i===u)return!0;if(vg.includes(i))return!0;if(!i.includes("*")&&i.includes("://")){try{let c=new URL(i);return c.pathname==="/"&&!i.endsWith("/")?c.hostname===u:o9(r,i)}catch{}return!1}else{let c,l=i;if(i.includes("://")){let C=i.split("://");c=C[0],c==="*"&&C.length>1&&(c="*",i="https://"+C[1])}else c="*",i="https://"+i;let g=i.replace(/\*/g,kg),p;try{p=new URL(g)}catch{return j.debug("invalid match pattern",g,"raw match value:",l),!1}let f=p.hostname,d=p.pathname;d==="/"&&(l.replace("://","").includes("/")||(d="/*"));let b=u9(c+":",Ag(f),Ag(d));if(b){let C=new URL(r);return C.port="",b.test(C.href)}else return!1}});if(o)return o}return null}function Ag(e){return e.replaceAll(kg,"*")}function u9(e,t,n){let a="^";return e==="*:"?a+="(http:|https:|file:)":a+=e,a+="//",t&&(e==="file:"||(t==="*"?a+="[^/]+?":(t.match(/^\*\./)&&(a+="[^/]*?",t=t.substring(2)),a+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?a+="(/.*)?":n.includes("*")?(a+=n.replace(/\*/g,".*?"),a+="/?"):a+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):a+="/?",a+="$",new RegExp(a)}function sn(e,t){return P0(e,t)!==null}function o9(e,t){let n=new URL(e),a=new URL(t);return n.hostname===a.hostname&&n.pathname===a.pathname&&n.protocol===a.protocol&&n.port===a.port}async function ln(e){let{url:t,config:n,state:a}=e,r=new URL(t),u="auto",{translationParagraphLanguagePattern:o,translationService:i,translationServices:s,translationTheme:c,translationThemePatterns:l,translationUrlPattern:g,targetLanguage:p,sourceLanguageUrlPattern:f,immediateTranslationPattern:d}=n,b=or(t,o),C=or(t,d),h=i,A=Object.keys(s);for(let K of A){let se=s[K];if(or(t,se)){h=K;break}}let S=c,U=Object.keys(l);for(let K of U){let se=l[K];if(se&&or(t,se)){S=K;break}}let R=or(t,g),y=Sg(t,g);y||(y=sn(t,C4)),y||(y=sn(t,n.blockUrls));let T=Sg(t,n.inputTranslationUrlPattern);T||(T=sn(t,n.inputTranslationBlockUrls));let k=sn(t,n.mutationBlockUrls),v=Object.keys(f),E={};for(let K of v){let se=f[K];if(se&&se.matches)for(let me of se.matches)E[me]=K}let B=Object.keys(E),P=P0(t,B);P&&(u=E[P]??"auto",E[P]&&E[P]!=="auto"&&an(E[P]));let w=p||"zh-CN",_=r.hostname,O=await yn(_),N=r.pathname+r.search+r.hash,M=await yn(N),x=`https://${O}.com/${M}`,L=await Yn(),I=await gd(),$=n.translationStartMode;$==="dynamic"&&C&&($="immediate");let z=h;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(z=n.inputTranslationService);let Y=h;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(Y=n.mouseHoverTranslationService);let q={targetLanguage:w,config:n,translationService:h,inputTranslationService:z,mouseHoverTranslationService:Y,isTranslateUrl:R,sourceLanguage:u,mainFrame:document.body,isTranslateExcludeUrl:y,isMutationTranslationExcludeUrl:k,isInputTranslationExcludeUrl:T,rule:n.generalRule,url:t,encryptedUrl:x,state:a?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:$,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S},a):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:$,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S},localConfig:L},ae=await Nt.get(en,null);ae&&(q.user=ae),q.state.translationArea==="body"&&(q.config.generalRule.excludeTags=q.config.generalRule.excludeTags.filter(K=>!q.config.generalRule.bodyTranslateTags.includes(K)),q.config.generalRule.additionalExcludeSelectors=q.config.generalRule.additionalExcludeSelectors.filter(K=>K!==".btn"));let Q=n.translationServices[q.translationService]||{};Q.immediateTranslationTextCount!==void 0&&i9(Q.immediateTranslationTextCount)&&Q.immediateTranslationTextCount>=0&&(q.state.immediateTranslationTextCount=Q.immediateTranslationTextCount),q.translationService==="deepl"&&(Q&&Q.authKey&&Q.authKey.startsWith("immersive_")||Q&&Q.provider==="pro"&&q.user?.token)&&Q.immediateTranslationTextCountForImmersiveDeepl!==void 0&&Q.immediateTranslationTextCountForImmersiveDeepl>=0&&(q.state.immediateTranslationTextCount=Q.immediateTranslationTextCountForImmersiveDeepl),Q&&Q.translationDebounce&&typeof Q.translationDebounce=="number"&&(q.state.translationDebounce=Q.translationDebounce);let G=I.immediateTranslationTextCount;n.immediateTranslationTextCount!==G&&(q.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let pe=n.rules,he;globalThis.PDFViewerApplication?he=pe.find(K=>K.isPdf):globalThis.immersiveTranslateEbookViewer?he=pe.find(K=>K.isEbook):globalThis.immersiveTranslateEbookBuilder?he=pe.find(K=>K.isEbookBuilder):he=pe.find(K=>or(t,K)),q.state.translationArea==="body"&&(q.rule.paragraphMinTextCount=1,q.rule.paragraphMinWordCount=1),he&&he.isEbookBuilder&&(q.state.translationStartMode="immediate");let re=n.generalRule;if(he&&(q.rule=eo(re,he)),q.rule.selectors.length>0&&(q.rule.paragraphMinTextCount=2,q.rule.paragraphMinWordCount=1),q.state.translationArea==="body"&&q.rule.excludeTags&&(q.rule.excludeTags=q.rule.excludeTags.filter(K=>!q.rule.bodyTranslateTags.includes(K)&&!q.rule.forceTranslateTags.includes(K))),q.rule.mainFrameSelector){let K=document.querySelector(q.rule.mainFrameSelector);K&&(q.mainFrame=K)}return q}function or(e,t){if(!t)return!1;let{matches:n,excludeMatches:a,selectorMatches:r,excludeSelectorMatches:u}=t;return a&&a.length>0&&sn(e,a)?!1:n&&n.length>0&&sn(e,n)?!0:u&&u.length>0&&Ro(u)?!1:!!(r&&r.length>0&&Ro(r))}function Sg(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:a}=t;return!!(n&&n.length>0&&sn(e,n)||a&&a.length>0&&Ro(a))}function i9(e){return typeof e=="number"}m();m();m();function Dg(e,t,n,a){let r=t,u=y4[r]||[],o="";e&&u&&u.length>0&&u.forEach(c=>{let{name:l}=c;if(e&&n&&n[l]){let g=n[l];if(["borderRadius"].includes(l)&&(g+="px"),o+=`--immersive-translate-theme-${r}-${l}: ${g}; -`,t==="marker"&&l==="backgroundColor"&&typeof g=="string"){let{r:p,g:f,b:d}=dg(g);o+=`--immersive-translate-theme-${r}-${l}-rgb: ${p}, ${f}, ${d}; + `);if(l.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(l)}.`)}let g=l[0].translations[0],p=l[0].detectedLanguage;return{text:g.text,from:Om.get(p.language),to:Om.get(g.to)}}m();var Po=new Map;async function c0(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=Zn(e.body)),Po.has(t))return Po.get(t);let n=oe(e);Po.set(t,n);try{return await n}catch(a){throw a}finally{setTimeout(()=>{Po.delete(t)},3e4)}}async function Hm(e){return c0(e)}async function qm(e){if(Je()){let n=To();if(n)try{return await n.ask("throttleRequest",e)}catch(a){throw j.error("can not comunicate with root frame, use strict limiter",a),a}else return c0(e)}else return c0(e)}m();function Wm(e){let t=e.split(".");if(t.length<=1)throw new Error("invlaid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let a=n.replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(globalThis.atob(a).split("").map(function(i){return"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)}).join("")),u=JSON.parse(r),o=new Date(u.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}var va=null,j6=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],d0=new Map(j6),Xr=class extends be{static langMap=d0;isSupportList=!0;maxTextLength=1800;static async clearState(){va=null,await Nr(Mu)}async translate(t){let{text:n,from:a,to:r}=t;return n?await zm(n,a,r):{...t}}async init(){if(!va){va={};let t=await Or(Mu);t&&(va=t)}await $m(va)}async translateList(t){let{from:n,to:a,text:r}=t,u=d0.get(n)||"auto",o=d0.get(a)||a;u==="auto"&&(u="");let i=await $m(va),s=[];for(let p of r)s.push({Text:p});let c=JSON.stringify(s),l=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${u}&to=${o}&api-version=3.0&includeSentenceLength=true`,g=await oe({url:l,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+i.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin"},body:c,method:"POST"});if(g&&g.length>0&&g[0].translations&&g[0].translations.length>0)return{text:g.map(p=>p.translations[0]?.text||""),from:n,to:a};throw new Error("Microsoft translate error "+JSON.stringify(g))}};async function $m(e){if(e&&e.accessToken&&e.accessTokenExpiresAt){let t=Date.now(),a=new Date(e.accessTokenExpiresAt).getTime();if(a-t>30*1e3)return e;if(a-t>3e3)return Km().catch(r=>{j.error(r)}),e}return Km()}async function Km(){let e=await qm({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET"}),t=Wm(e),n=t.accessTokenExpiresAt,r=new Date(n).getTime()-Date.now();return va=t,await Ir(Mu,t,r-1e3),{accessToken:e,accessTokenExpiresAt:t.accessTokenExpiresAt}}m();var Gm=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],m0=new Map(Gm),U6=new Map(Gm.map(([e,t])=>[t,e])),g0=class extends be{static langMap=m0;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";appid="";key="";isSupportList=!1;maxTextGroupLength=20;constructor(t,n,a){if(super(t,n,a),!t||!t.appid||!t.key)throw new Error("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim()}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:a}=this,{appid:r,key:u}=this,{text:o,from:i,to:s}=t,c=new URLSearchParams({from:m0.get(i)||"auto",to:m0.get(s)||s,q:o,salt:n,appid:r,sign:Zn(r+o+n+u)}),l=new URL(a);l.search=c.toString();let g=await oe({url:l.toString()});if(g.error_code)throw new ot("API_SERVER_ERROR",g.error_msg);let{trans_result:p,from:f}=g,d=p.map(({dst:C})=>C);return{from:U6.get(f)||f,to:s,text:d.join(` +`)}}},Vm=g0;m();m();var Aa=class extends be{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,a){super(t,n,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let u=await this.checkLang(a,n);if(!u)return{text:n,from:a,to:r};a=u;let o=this.handleRequest(n,a,r),i=await Qu(o);return{text:this.handleResponseText(i),from:a,to:r}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let u=await this.checkLang(a,n.join(" "));if(!u)return{text:n,from:a,to:r};a=u;let o=this.handleRequest(n,a,r),i=await Qu(o);return{text:this.handleResponseText(i),from:a,to:r}}handleBaseApiServiceConfig(t){let n=t.request.url,a=t.request.headers||{};return a["content-type"]||(a["content-type"]="application/json"),{url:n,retry:t.request.retry||2,method:t.request.method||"POST",headers:a,body:JSON.stringify(t.request.body)}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,a){let r={...this.requestBaseConfig},u=r?.body||"",o=this.apiServiceConfig.keywords||{};r.body=s(u);let i=r.headers||{};return Object.keys(i).forEach(c=>{i[c]=s(i[c])}),r.headers=i,r.url=s(r.url||""),r;function s(c){return c.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",a).replaceAll(/{([a-z:_]+)}/gi,(g,p)=>{let[f,d]=p.split(":"),b=o[f];return d==="random"?z6(b.split(",")):b})}}handleResponseText(t){let n=this.apiServiceConfig.response,a=t,r=n.text.split(".");for(let u of r){if(Array.isArray(a))return a=a.map(o=>o[u]),a;a=a[u]}return a}detectLanguageRemotely(t){return wa.detectLanguageRemotelyByTransmart(t)}};function z6(e){let t=Math.floor(Math.random()*e.length);return e[t]}var p0=class extends Aa{constructor(t,n,a){if(!t?.token)throw new Error("token are required");super({...t,isSupportList:!0,langs:[["zh-CN","zh"],["en","en"],["ja","ja"]],keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,a)}},Ym=p0;m();var H6=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],_o=new Map(H6),f0=class extends be{static langMap=_o;token="ssdj273ksdiwi923bsd9";constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t;if(!_o.get(r))throw new Error(`Unsupported language: ${r}`);if(a==="auto")throw new Error("Unsupported language: auto");let o=n;return{text:(await oe({retry:2,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${_o.get(a)||"auto"}2${_o.get(r)}`})})).target,from:a,to:r}}},Jm=f0;m();var Qm=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],h0=new Map(Qm),q6=new Map(Qm.map(([e,t])=>[t,e]));function W6(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var b0=class extends be{static langMap=h0;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,a){if(super(t,n,a),!t||!t.appId||!t.appSecret)throw new Error("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,u=$6(32),o=Math.round(new Date().getTime()/1e3),i=this.appId+W6(n)+u+o+this.appSecret,s=await yn(i),c={q:n,appKey:this.appId,salt:u.toString(),from:h0.get(a)||"auto",to:h0.get(r)||r,sign:s,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(c.domain=this.domain),this.vocabId&&(c.vocabId=this.vocabId);let l=new URLSearchParams(c),p=await oe({url:"https://openapi.youdao.com/api",method:"POST",body:l.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"}});if(!p.translation)throw new Error(JSON.stringify(p));let f=p.l,[d,b]=f.split("2");return{text:p.translation.join(` +`),from:q6.get(d),to:r}}};function $6(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r[t,e]));var x0=class extends be{static langMap=y0;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,u={q:n,from:y0.get(a)||"auto",to:y0.get(r)||r},o=new URLSearchParams(u),i=await oe({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"}});if(i&&i.translation)return{text:i.translation.join(` +`),from:a,to:r};throw new Error("Youdao translation failed: "+JSON.stringify(i))}},eg=x0;m();var eu=class extends Aa{constructor(t,n,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(r=>[r,r]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||ha,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,a)}};var K6={mock:Qa,mock2:Qa,custom:eu,google:Ca,transmart:wa,deepl:wm,volc:_m,volcAlpha:Qr,bing:Xr,tencent:Wr,tenAlpha:$r,baidu:Vm,caiyun:Ym,cai:Jm,openl:So,youdao:Zm,you:eg,d:Ja,dpro:Ja,deeplx:Zr,niu:vm,azure:Am,openai:Sm,chatgpt:Vr,papago:km,aliyun:Jr},ra={};Object.keys(Bn).forEach(e=>{ra[e]={...Bn[e],class:K6[e]}});function tg(e,t){let n=en;if(ra[e]&&ra[e].class&&ra[e].class.langMap&&ra[e].class.langMap.size>0){let a=ra[e].class.langMap,r=n.filter(u=>a.get(u));return r.includes(t)||r.unshift("placeholder"),r}else return en}async function ka(e,t){if(!e.text)return e;let n=await ua({sentences:[e]},t);if(n.sentences.length>0)return{...e,...n.sentences[0]};throw new ot("translateFailed","translate failed")}async function ng(e,t){for(let n of e)try{return await ka({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n}),n}catch{continue}return null}async function E0(e){let{config:t,translationService:n}=e,a=t.translationGeneralConfig,r=t.translationServices,u=n,o=r[u]||{},i=tn(e.user),s=new ra[u].class(o,a,{translationService:u,userToken:e.user?.token,isPro:i}),c=s.getDefaultRateLimit();c&&(o&&!o.limit&&(o.limit=c.limit),o&&!o.interval&&(o.interval=c.interval)),u==="deepl"&&o&&o.provider==="pro"&&(o.limitForImmersiveDeepl?o.limit=o.limitForImmersiveDeepl:c&&(o.limit=c.limit)),await nm(u,o),await s.init()}async function ua(e,t,n){if(!e.sentences.length)return{...e};let{config:a,translationService:r,state:u}=t,o=a.translationGeneralConfig,i=a.translationServices,s=r,c=i[s]||{};s==="openai"&&(e.sentences=e.sentences.map(A=>({...A,from:"auto"})));let l=[],g={sentences:Array(e.sentences.length)},p=e.sentences.length,f=-1;if(u.cache)for(let A of e.sentences){f++;let S=s;s==="openl"&&(S=s+"-"+c.codename||So.DEFAULT_CODENAME);let U=null;try{U=await Cu(Id({originalText:A.text,from:A.from,to:A.to,service:S}),200)}catch(R){j.warn("query cache DB error, but it's ok",R)}if(U){let R={...A,text:U.translatedText};g.sentences[f]=R,n&&n(null,R,A)}else l.push(A)}else l.push(...e.sentences);let d=l.length;if(p-d>0&&j.debug(`use ${p-d} sentences from cache`),!l.length)return g;let b,C=tn(t.user);try{b=new ra[s].class(c,o,{translationService:s,userToken:t.user?.token,isPro:C}),await b.init()}catch(A){if(n)for(let S of l)n(A,null,S);throw A}let h=await b.multipleTranslate({sentences:l},c,(A,S,U)=>{if(n&&n(A,S,U),!A&&S&&!s.startsWith("mock")&&u.cache){let R=s;s==="openl"&&(R=s+"-"+c.codename||So.DEFAULT_CODENAME),u.cache&&Cu(Nd({translatedText:S.text,from:U.from,to:U.to,detectedFrom:S.from,key:Zn(U.text),service:R}),3e3).catch(y=>{j.warn("set cache DB error",y)})}});for(let A of h.sentences){let S=g.sentences.findIndex(U=>!U);if(S===-1)throw new ot("translateFailed","can not match the result");g.sentences[S]=A}return g}m();var Bo=!1,G6=pe();function ag(e,t){let n=[];for(let a of t){let r=e.querySelectorAll(a);for(let u of r)n.push(u)}return n}function V6(e,t){let n=function(u){return u.nodeType===Node.ELEMENT_NODE||u.nodeType===Node.TEXT_NODE?u.nodeType===Node.ELEMENT_NODE&&rg(u,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),r=!0;for(;a.nextNode();){let u=a.currentNode;if(u.nodeType===Node.ELEMENT_NODE){if(oa(u,Iu)){if(r===!0)return!0;continue}if(tu(u.nodeName,t.inlineTags))return!0;if(!T0(u,t))return!1}}return!0}function C0(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(tu(e.nodeName,n)||T0(e,t)){if(oa(e,g4)||tu(e.nodeName,["BR"]))return!1;if(oa(e,Iu))return!0;if(T0(e,t)){let a=globalThis.getComputedStyle(e);if(a.display==="block"||a.display==="flex")return!1}return V6(e,t)}else return oa(e,Iu);return!1}function rg(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&oa(e,m4,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&oa(e,i4))return!1;let{stayOriginalTags:a,excludeTags:r}=t,u=[];return n&&r&&r.length>0?u=r||[]:u=r.filter(o=>!a.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||tu(e.nodeName,u))}function er(e,t,n){let a=e.trim();return a.length>=t||a.split(" ").filter(o=>o.trim()!=="").length>=n||!og(a)&&a.length>=n}function ug(e,t,n){let a=e.trim();if(a.length<=t)return!0;if(og(a)){if(a.split(" ").length<=n)return!0}else if(a.length<=n)return!0;return!1}function og(e){for(let t=0;t127)return!1;return!0}function ig(e){if(e&&e.includes("://"))try{return new URL(e),!0}catch{return!1}else return!1}function sg(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function lg(e){return e?/^[-+]?[0-9]*\.?[0-9]+%?$/.test(e):!1}function cg(e){return!!(e&&e.startsWith("#")&&e.indexOf(" ")===-1)}function dg(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function oa(e,t,n=!1){return w0(e,t,"1",n)}function w0(e,t,n,a=!1){return Bo&&!a?e[It]?!!(e[It]&&e[It][t]===n):!1:e.dataset[t]===n}function tr(e){return(e.innerText||e.textContent||"").trim()}function v0(e){let t=e.querySelectorAll("iframe"),n="";for(let a=0;a2e3))break}return n}function Ro(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function at(e,t,n,a=!1,r=!1){e.isContentEditable&&!r||(Bo&&!a?(e.dataset[Mr]||(e.dataset[Mr]="1"),e[It]||(e[It]={}),e[It][t]||(e[It][t]=n)):(e.dataset[Mr]||(e.dataset[Mr]="1"),e.dataset[t]!==n&&(e.dataset[t]=n)))}function Oo(e,t,n=!1){if(Bo&&!n){if(!e[It]||!e[It][t])return;delete e[It][t]}else delete e.dataset[t]}function nr(e,t,n=!1){return Bo&&!n?!e[It]||!e[It][t]?void 0:e[It][t]:e.dataset[t]}function T0(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!tu(e.nodeName,n)}function ar(e){let{config:t}=e,n=ha;return t.translationServices[e.translationService]&&t.translationServices[e.translationService].placeholderDelimiters&&(n=t.translationServices[e.translationService].placeholderDelimiters),n}function Ze(){if(!globalThis||!globalThis.location)return"https://example.com";if(!Je())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let a="";try{a=globalThis.parent.location.href}catch{}return a||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function ia(e,t,n){if(e instanceof ShadowRoot){try{e.appendChild(document.createElement("style")).textContent=t}catch(a){j.warn("injectCSS failed, rootDocument"+a?.message,e)}return}if(e&&e.head&&e.head.appendChild){let a=e.createElement("style");if(n){let r=e.querySelector(`style[data-id="${n}"]`);r&&r.remove(),a.dataset.id=n}a.textContent=t,e.head.appendChild(a)}else if(e){let a=document.createElement("head"),r=document.createElement("style");r.textContent=t,a.appendChild(r),e.appendChild(a)}else j.warn("injectCSS failed, rootDocument does not have head node",e)}function rr(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(G6){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!document.querySelector("meta[name='immersive-translate-ebook-viewer']")||!t.startsWith("blob:http");return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function tu(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function mg(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),a=parseInt(t.substring(2,4),16),r=parseInt(t.substring(4,6),16);return{r:n,g:a,b:r}}function gg(e,t,n,a){if(a.document.caretPositionFromPoint){let r=a.document.caretPositionFromPoint(e,t);if(r){let u=a.document.createRange(),o=r.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||rg(o,n,!0))return null;try{u.setStart(o,r.offset),u.setEnd(o,r.offset)}catch(i){return j.warn("getRangeFromPoint error",i),null}return u}return null}else return a.document.caretRangeFromPoint?a.document.caretRangeFromPoint(e,t):null}function pg(e,t,n){let a=0,r=(u,o,i,s)=>{if(++a>100||s===u)return u;let c=u.shadowRoot;if(!c||typeof c.elementFromPoint!="function")return u;let l=c.elementFromPoint(o,i);return l?r(l,o,i,u):u};return r(e,t,n)}m();m();var Y6=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function En(e,t){if(t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function A0(e,t,n){let{blockSelectors:a,extraBlockSelectors:r,extraInlineSelectors:u}=t;if(En(e,u))return!1;if(En(e,r)||e.nodeName.toLowerCase()==="br")return!0;let s=null;return e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(s=e.parentNode.immersiveTranslateComputedStyle),s&&s.display&&s.display==="inline-flex"?!1:n&&n.display?!!Y6.includes(n.display):En(e,a)}var Mt=En;function Sa(e){return!!e.shadowRoot}function sa(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function nu(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Io(e){let t=ha;return e&&(t=e),t}function No(e,t){return Xn(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function J6(e){let{rule:t}=e,n=e.config.loadingTheme;return` <${t.targetWrapperTag} class="${J}-loading-${n} notranslate">`}function au(e,t){let n=e.rule,a=document.createElement(n.targetWrapperTag);a.classList.add("notranslate",Kt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),at(a,c4,t.toString());let r=J6(e);return a.append(_e.sanitize(r,{RETURN_DOM_FRAGMENT:!0})),a}function ur(e,t){return e.querySelector(`[${is}='${t}']`)}function fg(){document.querySelectorAll(`[${is}]`).forEach(t=>{t.remove()})}function hg(){document.querySelectorAll(`.${Kt}-error`).forEach(t=>{t.remove()})}function bg(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{rr(n)&&t.push(n)}),t}function yg(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:a,delimiters:r,text:u}=e,o=new RegExp(`${r[0]}(\\d+)${r[1]}`,"gi");if(r.length>2){let s=r[2];o=new RegExp(`<${s}(\\d+)>(.*?)`,"gi")}let i=u.trim();return i=i.replace(o,""),i=i.trim(),i===""||i.length===1&&i.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(u)||i.includes("")||i.includes("< styles>")||dg(i)||ig(i)||cg(i)||sg(i)||lg(i)||o.test(i)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(i)?!1:er(u,n,a)}function Tn(e){return e.nodeType===Node.ELEMENT_NODE}function xg(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}function Eg(e){try{let t=Math.floor((new Date-new Date(e))/1e3);return t<60?`${t} \u79D2\u524D`:t<3600?`${Math.floor(t/60)} \u5206\u949F\u524D`:t<86400?`${Math.floor(t/3600)} \u5C0F\u65F6\u524D`:`${Math.floor(t/86400)} \u5929\u524D`}catch{return e}}async function Tg(e){let n=Ve().INSTALL_FROM,a=nn(),r=await St("installedAt",""),u=await St("fakeUserId","");return{installFrom:n,version:a,installedAt:r,interfaceLang:e,deviceId:u}}var Q6=1e5;function la(e){let{onParagraph:t,filterRule:n,id:a}=e;n=Z6(n);let{stayOriginalSelectors:r,globalStyles:u,selectors:o,isTransformPreTagNewLine:i,lineBreakMaxTextCount:s,globalAttributes:c,isModifyImage:l,skipEditableCheck:g}=n,p={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},f=!1,d=null;function b(R){let{container:y,onFrame:T,onIgnoreElement:k,id:v}=R,E=document.createTreeWalker(y,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,w=>{let _=P(w);return _==NodeFilter.FILTER_ACCEPT?zt.mark(w,v,g):_==NodeFilter.FILTER_REJECT,_}),B=y;if(P(B)===NodeFilter.FILTER_REJECT)return;for(zt.mark(B,v,g);B;){if(o&&o.length>0){let{currentNode:w,isMatchedSelection:_}=C(E,B,o);if(w)B=w;else break;if(!_)continue}if(B.nodeType===Node.ELEMENT_NODE||B.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let w=B;if(w.nodeName==="IFRAME"){T&&T(w),h(),k0(p,!0),B=E.nextNode();continue}w.nodeType===Node.ELEMENT_NODE&&(u&&D0(w,u),c&&M0(w,c));let _=A0(w,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},w.immersiveTranslateComputedStyle||null);if(Mt(w,r)&&!_){A(w);let M=null;for(;!(M=E.nextSibling())&&E.parentNode(););B=M;continue}let O=Sa(w);(!Cg(p,w)||_)&&(h(),w.childNodes.length>0&&S(p,w,w.immersiveTranslateComputedStyle||null)),O&&w.shadowRoot?.mode==="open"&&(_?T?.(w.shadowRoot):b({...R,container:w.shadowRoot})),w.nodeType===Node.ELEMENT_NODE&&w.nodeName==="PRE"&&i&&n9(w)}else if(B.nodeType===Node.TEXT_NODE)A(B);else throw new Error("should not be here");B=E.nextNode(),p.commonAncestorContainer&&B&&B.parentNode===p.commonAncestorContainer&&(p._currentStacks=[]),p.commonAncestorContainer&&B&&B.nodeType===Node.ELEMENT_NODE&&p._currentStacks.push(B)}function P(w){if(w.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Tn(w)){if(c){let M=Object.keys(c);if(M.length>0&&Mt(w,M))for(let L of M){let I=c[L];if(w.matches(L)){let $=c[L],z=Object.keys($);for(let Y of z){let q=$[Y];w.getAttribute(Y)!==q&&(q===null?w.removeAttribute(Y):w.setAttribute(Y,q))}break}}}if(!R.force&&zt.isMarked(w,v)||xg(w,v)||F0(w,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,stayOriginalSelectors:r})||w.nodeName==="IFRAME"&&!rr(w))return NodeFilter.FILTER_REJECT;let _=w.getBoundingClientRect(),{width:O,height:N}=_;if(w.nodeType===Node.ELEMENT_NODE){let M=window.getComputedStyle(w);if(w.immersiveTranslateComputedStyle={display:M.display,whiteSpace:M.whiteSpace,left:_.left+"px",right:_.right+"px",top:_.top+"px",bottom:_.bottom+"px"},L0(w.immersiveTranslateComputedStyle))return k&&k(w),NodeFilter.FILTER_REJECT;let x=A0(w,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},w.immersiveTranslateComputedStyle||null);if(Mt(w,r)&&x)return NodeFilter.FILTER_REJECT}return w.nodeName==="IMG"&&(O>48&&N>48?w.immersiveTranslateComputedStyle={display:"block"}:O>0&&N>0&&l!==!1&&(w.setAttribute("width",O),w.setAttribute("height",N))),!w.childNodes||w.childNodes&&w.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!p.isPreWhitespace&&(O>0&&O<4||N>0&&N<4)&&(w.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(w.nodeType===Node.TEXT_NODE){let _=w.textContent?.trim();if(!_)return p.isPreWhitespace?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let O=w.parentNode;if(O.getBoundingClientRect){let{width:N,height:M}=O.getBoundingClientRect();if(N>0&&N<4||M>0&&M<4)return NodeFilter.FILTER_REJECT}return s>0&&_.length>=s&&S0(w,s),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}b(e),p&&p.commonAncestorContainer&&p.flatNodes.length>0&&h();function C(R,y,T){let k=y.immersiveTranslateComputedStyle||null;if(d){if(!d.contains(y))if(f=!1,y&&y.nodeType===Node.ELEMENT_NODE)if(jo(y,T))f=!0,d=y,h(),S(p,d,k);else return f=!1,y=R.nextNode(),{currentNode:y,isMatchedSelection:f};else return f=!1,y=R.nextNode(),{currentNode:y,isMatchedSelection:f}}else if(y&&y.nodeType===Node.ELEMENT_NODE)if(jo(y,T))f=!0,d=y,h(),S(p,d,k);else return f=!1,y=R.nextNode(),{currentNode:y,isMatchedSelection:f};else return f=!1,y=R.nextNode(),{currentNode:y,isMatchedSelection:f};return{currentNode:y,isMatchedSelection:!0}}function h(){let R=t9(p,a);R&&t&&t(R),k0(p)}function A(R){if(!Cg(p,R)){h(),k0(p);let y=R.parentNode;y&&S(p,y,y.computedStyle)}p.flatNodes.push(R)}function S(R,y,T){R.commonAncestorContainer=y;let k=U(T);R.isPreWhitespace=k}function U(R){return R&&R.whiteSpace&&R.whiteSpace.startsWith("pre")||R&&R.whiteSpace==="break-spaces"||!1}}function Cg(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Sa(t));let a=e9(e),r=!0;return!n&&!a&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?r=!0:e.commonAncestorContainer&&(r=!1,e._currentStacks=[])),r}function Z6(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let a=n!=="iframe";return t?a&&n!=="pre":a}),e}function X6(e,t,n){if(t){for(let a of t.childNodes)if(a.contains(n))return a}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function D0(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Mt(e,n))for(let r of n){let u=t[r];if(e.matches(r)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+u;break}}}}function e9(e){return e&&e._currentStacks?e._currentStacks.some(t=>Sa(t)):!1}function t9(e,t){let{flatNodes:n,commonAncestorContainer:a}=e;if(a&&n.length>0){if(!n.map(p=>p.textContent?.trim()||"").join(""))return null;if(n.length===1)return{ctxId:t,stepState:1,commonAncestorContainer:n[0].parentNode,rootNodes:[n[0]],flatNodes:n,isPreWhitespace:e.isPreWhitespace,variables:{}};let u=a9(n,a);u||(u=a);let o=[];for(let p of n){let f=X6(e,u,p);f&&(o.includes(f)||o.push(f))}if(o.length<1)return null;let i=o[0],s=o[o.length-1],c=[],l=i,g=0;for(;l&&(c.push(l),l!==s);){if(g++,g>Q6){j.warn("loop too many times for convert root nodes, break");break}l=l.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:n,commonAncestorContainer:u,variables:{},isPreWhitespace:e.isPreWhitespace}}else return null}function k0(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function L0(e){let t=e.top?parseInt(e.top):0,n=e.left?parseInt(e.left):0,a=e.right?parseInt(e.right):0,r=e.bottom?parseInt(e.bottom):0;return isNaN(t)&&(t=0),isNaN(n)&&(n=0),isNaN(a)&&(a=0),isNaN(r)&&(r=0),e.display==="none"||t<-1e3||n<-1e3||a<-1e3||r<-1e3}var zt={_marked_key:"immersive_translate_walked",isMarked(e,t){return w0(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Sa(e)))return Oo(e,this._marked_key)},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Sa(e)))return at(e,this._marked_key,t,!1,n)},markWalk(e,t,n){if(!e||e.nodeType!==Node.ELEMENT_NODE||this.isSkipMarkEle(e))return;let a=nr(e,"markWalk")||"";return at(e,"markWalk",a+","+t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Sa(e)):!1}};function n9(e){let n=e.innerHTML.replace(/\n\n/g,"
");e.innerHTML=_e.sanitize(n)}function a9(e,t){if(!e.length)return null;let n=e.map(a=>{let r=new Set;for(;(a=a.parentNode)&&(r.add(a),a!==t););return r});for(let a of n[0])if((a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&n.every(r=>r.has(a)))return a;return null}function S0(e,t){let n=e.textContent||"";if(n.trim().length<=t)return;let u=[". ","? ","! ","\u3002","\uFF1F","\uFF01"].reduce((o,i)=>{let s=n.lastIndexOf(i,t);return s>o?s:o},-1);if(u>1){let o=n[u-1]||"",i=n[u-2]||"",s=n[u+1]||"";o==="."||s==="."||s===")"||i==="."&&o==="S"||i.toUpperCase()==="M"&&(o.toUpperCase()==="R"||o.toUpperCase()==="S")?u=-1:isNaN(Number(o))||(u=-1)}if(u===-1)n.length>t+20&&S0(e,t+20);else{let o=n.slice(u+1);u++,o.startsWith(" ")&&u++;let i=e.splitText(u),s=document.createElement("br");i.parentNode?.insertBefore(s,i),u+10)for(let a of n){let r=t[a],u=Object.keys(r),o=ag(e,[a]);for(let i of o)for(let s of u){let c=r[s];i.getAttribute(s)!==c&&(c===null?i.removeAttribute(s):i.setAttribute(s,c))}}}function vg(e,t,n,a,r,u){let o=Object.keys(t);if(o.length>0)for(let i of o){let s=t[i],c=Object.keys(s),l=e.querySelector(i);if(l)for(let g of c){let p=s[g];if(g==="translate"&&p==="no"){let d=l.innerText||l.textContent||"";if(!d.trim()||r9(l,r,u)||!ug(d,n,a))continue}l.getAttribute(g)!==p&&(p===null?l.removeAttribute(g):l.setAttribute(g,p))}}}function M0(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Mt(e,n))for(let r of n){let u=t[r];if(e.matches(r)){let o=t[r],i=Object.keys(o);for(let s of i){let c=o[s];e.getAttribute(s)!==c&&(c===null?e.removeAttribute(s):e.setAttribute(s,c))}break}}}}function F0(e,t){return Mt(e,t.excludeSelectors||[])?Mt(e,t.selectors||[])?!1:!Mt(e,t.stayOriginalSelectors||[]):!1}function jo(e,t){if(t.length===0)return!1;let n=t.filter(a=>!a.endsWith("*")).map(a=>a+" *");return Mt(e,t.concat(n))}function r9(e,t,n){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,r=>NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let r=a.currentNode;if(r.nodeType===Node.TEXT_NODE&&parent){let u=r.textContent||"";if(u.includes("Copyright"))continue;if(er(u,t,n))return!0}}return!1}m();m();var Ag=["*://*/*","*","*://*"],Sg="immersive-translate-wildcard-placeholder.com";function P0(e,t){let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(o=>Ag.includes(o)))return e;let a=new URL(e);a.hash="",a.search="";let r=a.href,u=a.hostname;if(n&&n.length>0){let o=n.find(i=>{let s=i;if(i===u)return!0;if(Ag.includes(i))return!0;if(!i.includes("*")&&i.includes("://")){try{let c=new URL(i);return c.pathname==="/"&&!i.endsWith("/")?c.hostname===u:o9(r,i)}catch{}return!1}else{let c,l=i;if(i.includes("://")){let C=i.split("://");c=C[0],c==="*"&&C.length>1&&(c="*",i="https://"+C[1])}else c="*",i="https://"+i;let g=i.replace(/\*/g,Sg),p;try{p=new URL(g)}catch{return j.debug("invalid match pattern",g,"raw match value:",l),!1}let f=p.hostname,d=p.pathname;d==="/"&&(l.replace("://","").includes("/")||(d="/*"));let b=u9(c+":",kg(f),kg(d));if(b){let C=new URL(r);return C.port="",b.test(C.href)}else return!1}});if(o)return o}return null}function kg(e){return e.replaceAll(Sg,"*")}function u9(e,t,n){let a="^";return e==="*:"?a+="(http:|https:|file:)":a+=e,a+="//",t&&(e==="file:"||(t==="*"?a+="[^/]+?":(t.match(/^\*\./)&&(a+="[^/]*?",t=t.substring(2)),a+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?a+="(/.*)?":n.includes("*")?(a+=n.replace(/\*/g,".*?"),a+="/?"):a+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):a+="/?",a+="$",new RegExp(a)}function sn(e,t){return P0(e,t)!==null}function o9(e,t){let n=new URL(e),a=new URL(t);return n.hostname===a.hostname&&n.pathname===a.pathname&&n.protocol===a.protocol&&n.port===a.port}async function ln(e){let{url:t,config:n,state:a}=e,r=new URL(t),u="auto",{translationParagraphLanguagePattern:o,translationService:i,translationServices:s,translationTheme:c,translationThemePatterns:l,translationUrlPattern:g,targetLanguage:p,sourceLanguageUrlPattern:f,immediateTranslationPattern:d}=n,b=or(t,o),C=or(t,d),h=i,A=Object.keys(s);for(let K of A){let se=s[K];if(or(t,se)){h=K;break}}let S=c,U=Object.keys(l);for(let K of U){let se=l[K];if(se&&or(t,se)){S=K;break}}let R=or(t,g),y=Dg(t,g);y||(y=sn(t,C4)),y||(y=sn(t,n.blockUrls));let T=Dg(t,n.inputTranslationUrlPattern);T||(T=sn(t,n.inputTranslationBlockUrls));let k=sn(t,n.mutationBlockUrls),v=Object.keys(f),E={};for(let K of v){let se=f[K];if(se&&se.matches)for(let me of se.matches)E[me]=K}let B=Object.keys(E),P=P0(t,B);P&&(u=E[P]??"auto",E[P]&&E[P]!=="auto"&&an(E[P]));let w=p||"zh-CN",_=r.hostname,O=await yn(_),N=r.pathname+r.search+r.hash,M=await yn(N),x=`https://${O}.com/${M}`,L=await Yn(),I=await pd(),$=n.translationStartMode;$==="dynamic"&&C&&($="immediate");let z=h;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(z=n.inputTranslationService);let Y=h;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(Y=n.mouseHoverTranslationService);let q={targetLanguage:w,config:n,translationService:h,inputTranslationService:z,mouseHoverTranslationService:Y,isTranslateUrl:R,sourceLanguage:u,mainFrame:document.body,isTranslateExcludeUrl:y,isMutationTranslationExcludeUrl:k,isInputTranslationExcludeUrl:T,rule:n.generalRule,url:t,encryptedUrl:x,state:a?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:$,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S},a):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:$,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S},localConfig:L},ae=await jt.get(Nt,null);ae&&(q.user=ae),q.state.translationArea==="body"&&(q.config.generalRule.excludeTags=q.config.generalRule.excludeTags.filter(K=>!q.config.generalRule.bodyTranslateTags.includes(K)),q.config.generalRule.additionalExcludeSelectors=q.config.generalRule.additionalExcludeSelectors.filter(K=>K!==".btn"));let Q=n.translationServices[q.translationService]||{};Q.immediateTranslationTextCount!==void 0&&i9(Q.immediateTranslationTextCount)&&Q.immediateTranslationTextCount>=0&&(q.state.immediateTranslationTextCount=Q.immediateTranslationTextCount),q.translationService==="deepl"&&(Q&&Q.authKey&&Q.authKey.startsWith("immersive_")||Q&&Q.provider==="pro"&&q.user?.token)&&Q.immediateTranslationTextCountForImmersiveDeepl!==void 0&&Q.immediateTranslationTextCountForImmersiveDeepl>=0&&(q.state.immediateTranslationTextCount=Q.immediateTranslationTextCountForImmersiveDeepl),Q&&Q.translationDebounce&&typeof Q.translationDebounce=="number"&&(q.state.translationDebounce=Q.translationDebounce);let G=I.immediateTranslationTextCount;n.immediateTranslationTextCount!==G&&(q.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let fe=n.rules,he;globalThis.PDFViewerApplication?he=fe.find(K=>K.isPdf):globalThis.immersiveTranslateEbookViewer?he=fe.find(K=>K.isEbook):globalThis.immersiveTranslateEbookBuilder?he=fe.find(K=>K.isEbookBuilder):he=fe.find(K=>or(t,K)),q.state.translationArea==="body"&&(q.rule.paragraphMinTextCount=1,q.rule.paragraphMinWordCount=1),he&&he.isEbookBuilder&&(q.state.translationStartMode="immediate");let re=n.generalRule;if(he&&(q.rule=Xu(re,he)),q.rule.selectors.length>0&&(q.rule.paragraphMinTextCount=2,q.rule.paragraphMinWordCount=1),q.state.translationArea==="body"&&q.rule.excludeTags&&(q.rule.excludeTags=q.rule.excludeTags.filter(K=>!q.rule.bodyTranslateTags.includes(K)&&!q.rule.forceTranslateTags.includes(K))),q.rule.mainFrameSelector){let K=document.querySelector(q.rule.mainFrameSelector);K&&(q.mainFrame=K)}return q}function or(e,t){if(!t)return!1;let{matches:n,excludeMatches:a,selectorMatches:r,excludeSelectorMatches:u}=t;return a&&a.length>0&&sn(e,a)?!1:n&&n.length>0&&sn(e,n)?!0:u&&u.length>0&&Ro(u)?!1:!!(r&&r.length>0&&Ro(r))}function Dg(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:a}=t;return!!(n&&n.length>0&&sn(e,n)||a&&a.length>0&&Ro(a))}function i9(e){return typeof e=="number"}m();m();m();function Lg(e,t,n,a){let r=t,u=y4[r]||[],o="";e&&u&&u.length>0&&u.forEach(c=>{let{name:l}=c;if(e&&n&&n[l]){let g=n[l];if(["borderRadius"].includes(l)&&(g+="px"),o+=`--immersive-translate-theme-${r}-${l}: ${g}; +`,t==="marker"&&l==="backgroundColor"&&typeof g=="string"){let{r:p,g:f,b:d}=mg(g);o+=`--immersive-translate-theme-${r}-${l}-rgb: ${p}, ${f}, ${d}; `}}});let i="";if(n&&n.textColor){let c=n.textColor;i+=` .immersive-translate-target-translation-theme-${r}-inner{color: ${c};} `}if(n&&n.zoom){let c=n.zoom;i+=` .immersive-translate-target-translation-theme-${r}-inner{font-size: max(13px, ${c}%);} `}let s="";o&&(s=`:root { ${o}} -`),i&&(s+=i),s?ia(e,s,"immersive-translate-user-custom-style"):a&&ia(e,"","immersive-translate-user-custom-style")}function ir(e,t){let a=Ve().IMMERSIVE_TRANSLATE_INJECTED_CSS;ia(e,a,"immersive-translate-default-injected-css");let r=t.config.translationThemePatterns||{},u=t.state.translationTheme,o=r[u]||{};Dg(e,u,o);let i="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?i+=t.rule.injectedCss.join(` +`),i&&(s+=i),s?ia(e,s,"immersive-translate-user-custom-style"):a&&ia(e,"","immersive-translate-user-custom-style")}function ir(e,t){let a=Ve().IMMERSIVE_TRANSLATE_INJECTED_CSS;ia(e,a,"immersive-translate-default-injected-css");let r=t.config.translationThemePatterns||{},u=t.state.translationTheme,o=r[u]||{};Lg(e,u,o);let i="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?i+=t.rule.injectedCss.join(` `):t.rule.injectedCss&&(i+=t.rule.injectedCss),t.rule.additionalInjectedCss&&Array.isArray(t.rule.additionalInjectedCss)&&t.rule.additionalInjectedCss.length>0?i+=` `+t.rule.additionalInjectedCss.join(` `):t.rule.additionalInjectedCss&&(i+=` -`+t.rule.additionalInjectedCss)),i&&ia(e,i,"immersive-translate-dynamic-injected-css")}m();async function Lg(){let e="auto",t=[ba(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await Qe({text:tr(document.body),pageLangs:t})),e}m();m();function Mg(e,t){return[e,!e||e.endsWith("/")?"":"/",t,".json"].join("")}function _0(e,t){let n=e;return t&&Object.keys(t).forEach(a=>{let r=t[a];if(r===void 0)return;let u=s9(a);if(typeof r=="object"||u){let o=r;u&&typeof o=="string"&&(o={tag:"a",href:o});let i=`<${a}>`,s=n.indexOf(i);if(s!==-1){let c=o.tag||"a",l=n.indexOf(``);if(l!==-1){let g=n.substring(s+i.length,l),p=Object.keys(o).filter(f=>f!=="tag").map(f=>`${f}="${o[f]}"`).join(" ");n=n.replace(`${i}${g}`,`<${c} ${p}>${g}`)}}}else if(r){let o=new RegExp("{"+a+"}","gm");n=n.replace(o,r.toString())}}),n}function uu(e,t,n){let a=e[t];if(!a)return n;let r=n.split("."),u="";do{u+=r.shift();let o=a[u];o!==void 0&&(typeof o=="object"||!r.length)?(a=o,u=""):r.length?u+=".":a=n}while(r.length);return a}function In(e,t,n,a,r){if(!e.hasOwnProperty(n))return t;let u=uu(e,n,t);return u===t&&n!==a&&(u=uu(e,a,t)),_0(u,r)}function s9(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}m();m();function B0(e,t,n=[],a){let r=["notranslate"];return a&&r.push(b4),e&&(r.push(`${J}-target-translation-theme-${e}`),t?r.push(`${ls}-theme-${e}`):r.push(`${ss}-theme-${e}`)),n.length>0&&r.push(...n),t?r.push(ls):r.push(ss),r}function R0(e){let t=["notranslate",f4];return e&&t.push(`${J}-target-translation-theme-${e}-inner`),t}function Fg(e,t,n){let{rule:a,state:r}=n,{translationTheme:u}=r,{variables:o,isVertical:i}=e;o=o||[];let{text:s}=t,{wrapperPrefix:c,wrapperSuffix:l}=a,g=ar(n),p="afterend",f=g[0],d=g[1],b=`${f}(\\d+)${d}`,C=new RegExp(b,"g"),h=_e.sanitize(s);o.length>0&&(h=h.replace(C,R=>{let y=h.indexOf(R),T=h[y-1]===" ",k=h[y+R.length]===" ",v=R.slice(g[0].length,-g[1].length),E=Number(v);if(isNaN(E))return R;let B=o[Number(E)];if(B&&B.type==="element"){let P=B.value.outerHTML;return T||(P=" "+P),k||(P=P+" "),P}else j.error("variable type not supported",B,R);return R}));let A=B0(u,e.inline,a.translationClasses||[],e.preWhitespace);i&&A.push(h4);let S=R0(u),U="";return a.translationBlockStyle&&(U=`style="${a.translationBlockStyle}"`),h=`<${n.rule.targetWrapperTag} ${U} class="${A.join(" ")}" ${An}="1"><${a.targetWrapperTag} class="${S.join(" ")}" ${An}="1">${h}`,e.inline||(c==="smart"?h=`
${h}`:h=`${c}${h}`),e.inline&&(c!=="smart"?h=`${c}${h}`:h=`<${a.targetWrapperTag} class="notranslate" ${An}="1"> ${h}`),l==="smart"?h=`${h}`:h=`${h}${l}`,{html:h,position:p}}function Uo(e,t){let n=null,{stayOriginalSelectors:a,delimiters:r,isPreWhitespace:u}=t,o=[],i={};for(let s=0;s2&&(C=`<${r[2]}${b}>`),i[b]=c,o.push({text:C,type:"variable"})}else o.push({text:c.textContent||"",type:"text"});else{let d=c.textContent||"";g&&(d=sa(O0(c))),o.push({text:d,type:"text"})}else if(c.nodeType===Node.ELEMENT_NODE)if(c&&Mt(c,a)){let b=Object.keys(i).length,C=`${r[0]}${b}${r[1]}`;r.length>2&&(C=`<${r[2]}${b}>`),i[b]=c;let h=I0(o).endsWith(" ")?" ":"",A=sa(c.innerText||c.textContent),S=sa(c.nextSibling).startsWith(" ")?" ":"",U=au(h+A+S),R=U[0]+C+U[1];if(h===" ")R=R.trimStart();else if(!R.startsWith(" ")){let y=au(c.previousSibling)[1];y===""&&(y=" "),R=y+R}o.push({text:R,type:"variable"})}else{let d=I0(o).endsWith(" ")?" ":"",b=sa(c.innerText||c.textContent);g&&(b=sa(O0(c)));let C=sa(c.nextSibling).startsWith(" ")?" ":"",h=au(d+b+C),A=h[0]+(c.innerText?.trim()||c.textContent?.trim()||"")+h[1];if(d===" ")A=A.trimStart();else{let S=au(c.previousSibling)[1];S===""&&(c.nodeName==="A"||c.nodeName==="CODE")&&(S=" "),A=S+A}o.push({text:A,type:"text"})}else{let d=I0(o).endsWith(" ")?" ":"",b="";c.textContent&&(b=sa(O0(c))),d===" "&&(b=b.trimStart()),o.push({text:b,type:"text"})}}if(o&&o.length>0){let s="";for(let c=0;c0&&(g=o[c-1].text),c2){let l=c[2];return l9({delimiterTag:l,targetText:e.targetText,inline:r,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:a}).html}else{let l=Fg(s,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return l.html}}function O0(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function l9(e){let{delimiterTag:t,inline:n,translationClasses:a,targetWrapperTag:r,wrapperPrefix:u,variables:o,preWhitespace:i,wrapperSuffix:s,translationTheme:c,translationBlockStyle:l}=e;o=o||[];let g=e.targetText;g=_e.sanitize(g);let p=g,f=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),d=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(f,A=>{let S=p.indexOf(A),U=p[S-1]===" ",R=p[S+A.length]===" ",y=A.match(d);if(!y)return A;let T=y[1],k=Number(T);if(isNaN(k))return A;let v=o[Number(k)];if(v&&v.type==="element"){let E=v.value.outerHTML;return U||(E=" "+E),R||(E=E+" "),E}else if(v&&v.type==="text"){let E=v.value;return U||(E=" "+E),R||(E=E+" "),E}else j.error("variable type not supported",v,A);return A}));let b=B0(c,n,a||[],i),C=R0(c),h="";return l&&(h=`style="${l}"`),p=`<${r} ${h} class="${b.join(" ")}" ${An}="1"><${r} class="${C.join(" ")}" ${An}="1">${p}`,n||(u==="smart"?p=`
${p}`:p=`${u}${p}`),n&&(u!=="smart"?p=`${u}${p}`:p=`<${r} class="notranslate" ${An}="1"> ${p}`),s==="smart"?p=`${p}`:p=`${p}${s}`,{html:p,position:"afterend"}}function I0(e){let t=e[e.length-1];return t?t.text:""}function cn(e){let t=e.rule.selectors,n=e.rule.excludeTags,a=e.rule.additionalExcludeTags,r=e.rule.excludeSelectors,u=e.rule.additionalExcludeSelectors;return e.state.translationArea==="body"&&(t=[],r=[]),{globalStyles:e.rule.globalStyles,globalAttributes:e.rule.globalAttributes,selectors:t,skipEditableCheck:e.rule.skipEditableCheck,lineBreakMaxTextCount:e.rule.lineBreakMaxTextCount,isTransformPreTagNewLine:e.rule.isTransformPreTagNewLine,excludeSelectors:n.concat(a).map(i=>i.toLowerCase()).filter(i=>i!=="code"&&i!=="img").concat(r).concat(u),blockSelectors:e.rule.allBlockTags.map(i=>i.toLowerCase()).concat(e.rule.extraBlockSelectors),extraBlockSelectors:e.rule.extraBlockSelectors,extraInlineSelectors:e.rule.extraInlineSelectors.concat(e.rule.additionalInlineSelectors),stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(i=>i.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)}}var c9={sanitize:e=>e};function Ho(e,t){e.interruptEffectDOM||(e.walkContainer({id:e.id,container:t,filterRule:cn(e.ctx),onParagraph:ou.bind(null,e),onFrame:n=>{j0(e,n,!0)},onIgnoreElement:n=>{e.ignoreResizeObserver?.observe(n)}}),Oa&&at(t,"consumeContainer",e.id))}function j0(e,t,n){try{if(e.injectCssToDocument(t,e.ctx),t instanceof HTMLIFrameElement){if(!rr(t))return;j.debug("onFrame fragment",t);let a=t.contentWindow?.document.body;a&&(lr(a,e,n),e.dynamicContainerObserver?.observe(a,{childList:!0,subtree:!0}))}else j.debug("onFrame shadowRoot",t.host),lr(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0})}catch{}}function lr(e,t,n=!0){let{globalStyles:a,globalAttributes:r}=cn(t.ctx),u=0;if(s(t,e,n))return;if(Tn(e)&&i(e)){o(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,l=>(Tn(l)&&(a&&D0(l,a),r&&M0(l,r)),s(t,l,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(Ut.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode();){Ut.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let l=c.currentNode;if(i(l))for(o(l);;){if(c.nextSibling()){let g=c.currentNode;if(Ut.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),i(g)){o(g);continue}else break}if(!c.parentNode())return}}}catch{}if(u==0&&e instanceof HTMLElement){o(e);return}return t.observeContainers;function o(c){Ut.clearMark(c),u++,t.immediateTranslateCapacity>=0?Ho(t,c):(Oa&&at(c,"observeContainer",t.id),t.containerVisibleObserver?.observe(c))}function i(c){let l=c.nodeName.toLowerCase();if(c.shadowRoot)return j0(t,c.shadowRoot,n),!1;if(l==="iframe")return j0(t,c,n),!1;if(["script","#document-fragment","img"].includes(l))return!1;let g=t.containerRule;if(g.selectors&&g.selectors?.length>0)return jo(c,g.selectors);if(g.pageHeight){let p=c.scrollHeight;if(p>0&&p0)return!0}return!1}function s(c,l,g){if(l.nodeName.toLowerCase()=="script")return l.childNodes.length==0||l.childNodes.length==1&&l.childNodes[0].nodeType==Node.TEXT_NODE;if(l.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(l.nodeType!==Node.ELEMENT_NODE||g&&Ut.isMarked(l,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&l.nodeName==="PRE")return!1;let f=cn(c.ctx);return!!F0(l,{excludeSelectors:f.excludeSelectors,selectors:f.selectors,stayOriginalSelectors:f.stayOriginalSelectors})}}function U0(e,t){if(!e.targetNodes)return;let n=e.state||"original",a=e.commonAncestorContainer;if(!Ut.isMarked(a,e.ctxId))return;let r=a.contains(e.rootNodes[0]),u=a.contains(e.targetNodes[0]);if(r&&u)n="dual";else if(r)n="original";else if(u)n="translation";else return;if(t!=n){e.state=t;try{if(n=="dual"&&t=="translation"&&(zo(e.rootNodes),Bg(e.commonAncestorContainer)),n=="original"&&t=="translation"){let o=N0(e.rootNodes);if(zo(e.rootNodes),_g(o))return;sr(o,a,e.targetNodes||[]),Bg(e.commonAncestorContainer)}if(n=="translation"&&t=="dual"){let o=e.targetNodes[0];sr(o,a,e.rootNodes||[]),Rg(e.commonAncestorContainer)}if(n=="original"&&t=="dual"){let o=N0(e.rootNodes);if(_g(o))return;sr(o,a,e.targetNodes||[]),Rg(e.commonAncestorContainer)}if(n=="translation"&&t=="original"){let o=N0(e.targetNodes);zo(e.targetNodes),sr(o,a,e.rootNodes||[])}n=="dual"&&t=="original"&&zo(e.targetNodes)}catch(o){j.error(o)}}}function _g(e){return!e||!Tn(e)?!1:e.classList.contains($t)}function Bg(e){if(!Tn(e))return;e.querySelectorAll("font[class*=immersive-translate-target-translation]").forEach(a=>{at(a,"immersiveTranslateClassBak",a.className),a.className="notranslate immersive-translate-target-dual"});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.add("immersive-translate-state-dual")}function Rg(e){if(!Tn(e))return;e.querySelectorAll("font[class*=immersive-translate-target-dual]").forEach(a=>{let r=nr(a,"immersiveTranslateClassBak");Oo(a,"immersiveTranslateClassBak"),a.className=r});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.remove("immersive-translate-state-dual")}function N0(e){return e?e[e.length-1].nextSibling:null}function zo(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function sr(e,t,n){let a=e;t&&(a?n.forEach(r=>{a.parentNode?.insertBefore(r,a)}):n.forEach(r=>{t.appendChild(r)}))}var d9=bt(H0,300);async function ou(e,t,n=!1){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||m9(t.rootNodes)||t.stepState>=2)return;t.stepState=2,Oa&&at(a,"onParseParagraph",e.id);let{ctx:r}=e,{rule:u}=r,o=ar(r),i=Uo(t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:o,stayOriginalSelectors:r.rule.stayOriginalTags.concat(r.rule.stayOriginalTags).map(c=>c.toLowerCase()).concat(r.rule.stayOriginalSelectors).concat(r.rule.additionalStayOriginalSelectors)});if(!i)return;t.variables=i?.variables||{},t.text=i?.text;let s=await q0(t,{excludeLanguages:r?.config?.translationLanguagePattern?.excludeMatches||[],targetLanguage:r.targetLanguage,noTranslateRegexp:r.rule.noTranslateRegexp,delimiters:Io(r.config.translationServices[r.translationService]?.placeholderDelimiters),minTextCount:n||r.state.translationArea==="body"?2:u.paragraphMinTextCount,minWordCount:n||r.state.translationArea==="body"?1:u.paragraphMinWordCount,isDetectParagraphLanguage:r.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:r.rule.ignoreZhCNandZhTW});if(s){if(j.debug("on paragraph",s.text,s),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(s))return;a.paragraphs.push(s),e.immediateTranslateCapacity>0||n?(g9(e,t.text),z0(e,t)):(Oa&&at(a,"observeParagraph",e.id),e.observeParagraphs.push(s),e.paragraphVisibleObserver?.observe(a))}return s}function m9(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Tn(t)&&t.classList.contains($t):!1}function g9(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function z0(e,t){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let n=e.autoIncreaseParagraphId++;t.id=n.toString(),e.paragraphEntities[n]=t,e.paragraphQueue.push(n.toString()),Oa&&at(t.commonAncestorContainer,"consumeParagraph",e.id),d9.call(e,e.ctx)}async function H0(e){if(this.interruptEffectDOM)return;let t=this.paragraphQueue;this.paragraphQueue=[];let n=[];for(let a=0;a0)try{await ua(a,t,(r,u,o)=>{let i=o.id,s=p9(e,i.toString());s&&f9.call(null,r,u,o,s,t,n)})}catch(r){j.error("translateCurrentQueue error",r);return}}function p9(e,t){return e.find(n=>n.id===t)}function f9(e,t,n,a,r,u){let o=!1,i=a;if(ur(i.commonAncestorContainer,n.id)?.remove(),i&&(e||!t)){e||(j.error("translate error",n,e,t),e=new Error("no response from server"));let{rule:s}=r,c=n.id,l=document.createElement(s.targetWrapperTag);at(l,d4,c.toString()),l.classList.add("notranslate",$t,$t+"-error"),l.setAttribute("translate","no"),l.setAttribute("lang",r.targetLanguage);let g=a.rootNodes[a.rootNodes.length-1].nextSibling;sr(g,a.commonAncestorContainer,[l]),h9(r,e);let p=e.message.replaceAll(` -`,"");if(p=p.replaceAll('"',"""),i&&(i.error=new Error(p)),l){let f=In(Ot,"retryAllParagraphs",r.config.interfaceLanguage,"zh-CN"),d=In(Ot,"errorTooltipTitle",r.config.interfaceLanguage,"zh-CN"),b=`<${s.targetWrapperTag} class="${J}-error notranslate"><${s.targetWrapperTag} class="${J}-error-wrapper">\u{1F504}  \u2753`;l.innerHTML=_e.sanitize(b)}}else if(a){if(i.error=void 0,a.targetText=t?.text||"",!(a.text?.toLocaleLowerCase()==a.targetText?.toLocaleLowerCase())){let c=Pg(a,r),l=document.createElement(r.rule.targetWrapperTag);l.classList.add("notranslate",$t),l.setAttribute("lang",r.targetLanguage),l.setAttribute(An,"1");let g=c9.sanitize(c);l.innerHTML=g,a.targetNodes=[l],U0(a,u)}o=!0}else j.error("paragraph not found",n.id);document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}))}async function q0(e,t){let{text:n}=e,a=await Qe({text:n||"",minLength:15,pageLangs:[pt(),"en"]}),{targetLanguage:r}=t;if(!bg({text:n||"",delimiters:t.delimiters,minWordCount:t.minWordCount,minTextCount:t.minTextCount,noTranslateRegexp:t.noTranslateRegexp}))return null;let o=t.excludeLanguages||[],i=uo();t.isDetectParagraphLanguage&&(i="auto");let s=pt(),c=a;c==="auto"&&!t.isDetectParagraphLanguage&&(c=s),e.languageByLocal=c,e.languageByClient=i;let l=i!=="auto"?i:c;return Xn(l,r,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW})||o.length>0&&o.some(f=>Xn(l,f,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW}))?null:e}function h9(e,t){if(t.message.startsWith("ProQuota:")){t.message=t.message.replace("ProQuota:","");let n=t.message;try{n=JSON.parse(t.message).error}catch(u){j.error(u)}t.message=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${t.message} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`;let a=e.translationService,r=a=="deepl"?"OpenAI":"Deepl";e.translationService=="openai"?a="OpenAI":e.translationService=="deepl"&&(a="Deepl"),document.dispatchEvent(new CustomEvent(Bu,{detail:{type:"ProQuotaExceeded",subscriptionType:e.user?.subscription?.subscriptionType,translationService:a,anotherService:r,message:n}}))}}m();var b9=[];function Og(e){b9.push(e)}m();function Ig(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(a){a.length>0&&(a[0].target.text.includes(ju)||W0(e).catch(u=>{j.error("translateTitle error:",u.name,u.message,u.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var Wo="";async function W0(e){let t=document.title;if(!t||t.includes(ju))return;Wo!==t&&(Wo=t);let n=await Qe({text:t,pageLangs:[pt(),"en"]});if(!No(e,n))try{let a=await Aa({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n},e);a&&a.text&&(document.title=Wo+ju+a.text)}catch(a){throw a}}function Ng(e){e.rule.isTranslateTitle&&(document.title=Wo)}m();var $0;function jg(e){let t=e.ctx.rule.aiRule;if(j.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=cn(e.ctx),a=n.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);n.excludeSelectors.splice(a,1);let r,u;document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(p=>{p.translated=!0,iu(e,p,n)});let o=t.streamingDelayTime||100;$0=new MutationObserver(p=>{p.forEach(function(f){if(Tn(f.target)&&!s(f)&&(l(f.target),f.addedNodes&&f.addedNodes.length&&f.addedNodes.forEach(d=>{l(d)}),!c(f)&&i())){let d=f.target===u;if(t.streamingDeepChild&&!d&&(d=f.target.parentNode===u),!d)return;f.addedNodes.forEach(b=>{let C=b.previousSibling;!C||C.translated||(C.translated=!0,setTimeout(()=>{C.childNodes[0]?.translated||(j.debug("\u7FFB\u8BD1\u4E0A\u4E00\u4E2A\u6BB5\u843D",C),iu(e,C,n))},o))})}})}),$0.observe(document.body,{attributes:!0,childList:!0,subtree:!0});function i(){return!!(t.streamingChange&&t.streamingSelector&&r||t.streamingChange&&t.messageContainerSelector&&t.messageStreamEndSelector&&u&&!u.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector))}function s(p){return t.streamingSelector&&p.target===r&&p.type==="attributes"&&!En(p.target,[t.streamingSelector])?(g(),!0):t.streamingSelector&&p.removedNodes.length>0&&u&&u!=r?(p.removedNodes?.forEach(f=>{f===r&&g()}),!0):t.messageContainerSelector&&t.messageStreamEndSelector&&u&&u.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector)?(g(),!0):!1}function c(p){if(t.streamingSelector&&p.target.querySelector(t.messageWrapperSelector||"")&&!r){let f=p.target;return f.translated||(f.translated=!0,setTimeout(()=>{r||f.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(d=>{d.translated||(d.translated=!0,iu(e,d,n))})},o)),!0}else if(t.messageContainerSelector&&p.target.querySelector(t.messageContainerSelector||"")){let f=p.target;if(f.translated)return!0;f.translated=!0,setTimeout(()=>{f.querySelectorAll(t.messageContainerSelector).forEach(d=>{t.messageStreamEndSelector&&!d.querySelector(t.messageStreamEndSelector)||d.translated||(d.translated=!0,iu(e,d,n))})},o)}return!1}function l(p){t.streamingSelector&&En(p,[t.streamingSelector])&&(r=p,j.debug("streamingNode",r)),En(p,[t.messageWrapperSelector])&&(u=p,j.debug("markdownNode",u))}function g(){u&&setTimeout(()=>{u.childNodes.forEach(p=>p.translated=!1),j.debug("\u7ED3\u675F\u7FFB\u8BD1\u5168\u90E8",u),iu(e,u,n),r=void 0,u=null},o)}}function iu(e,t,n){la({id:e.id,container:t,filterRule:n,force:!0,onParagraph:a=>{ou(e,a,!0)},onFrame:()=>{},onIgnoreElement:()=>{}})}function Ug(){$0?.disconnect()}var ne=null;function Ko(){return ne||null}function cr(e){y9(e),A9(e),C9(e),v9(e),ir(document,e),Dt("Translated"),w9(ne),T9(ne),Og(Nn),x9(ne)}function y9(e){e.state.translationArea==="main"&&e.rule.initialSelectorGlobalAttributes&&wg(document.body,e.rule.initialSelectorGlobalAttributes,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph)}function x9(e){jg(e)}function E9(){Ug()}function T9(e){e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0});let t=[];e.ctx.rule.mainFrameSelector&&(t=[...document.querySelectorAll(e.ctx.rule.mainFrameSelector||"")]),t.length<=0&&(t=[document.body]),t.forEach(n=>{lr(n,e)})}async function C9(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=Date.now(),a=new URL(e.url).hostname,r=e.localConfig.tempTranslationUrlMatches||[],u=r.findIndex(i=>i.match===a&&i.expiredAt>t),o=!1;u>-1||(r.push({match:a,expiredAt:t+e.config.tempTranslateDomainMinutes*60*1e3}),o=!0),o&&await kn({...e.localConfig,tempTranslationUrlMatches:[...r]})}}function w9(e){e.ctx.rule.isTranslateTitle&&(W0(e.ctx),e.titleDynamicObserver=Ig(e.ctx))}function v9(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function A9(e){let t=hn();ne&&(t=ne.id);let n=cn(e);ne=ne||{},ne.ctx=e,ne.id=t,ne.paragraphQueue=ne.paragraphQueue||[],ne.rule={excludeSelectors:n.excludeSelectors||[],selectors:n.selectors||[]},ne.currentUrl=window.location.href,ne.containerRule={pageHeight:screen.availHeight,selectors:n.selectors},ne.translationService=e.translationService,ne.paragraphEntities=ne.paragraphEntities||{},ne.autoIncreaseParagraphId=ne.autoIncreaseParagraphId||1,ne.interruptEffectDOM=!1,ne.urlChangeDelay=e.rule.urlChangeDelay,ne.immediateTranslateCapacity=e.state.immediateTranslationTextCount,ne.observeContainers=ne.observeContainers||[],ne.observeParagraphs=ne.observeParagraphs||[],ne.dynamicContainerObserver=ne.dynamicContainerObserver||M9(ne),ne.ignoreResizeObserver=ne.ignoreResizeObserver||F9(ne),ne.containerVisibleObserver=ne.containerVisibleObserver||S9(ne),ne.paragraphVisibleObserver=ne.paragraphVisibleObserver||D9(ne),ne.injectCssToDocument=$o,ne.walkContainer=la,ne.translateState=e.state.translationMode||e.config.translationMode||"dual",ne.allInlineWindows=[window],window.onerror=k9(ne,e),window.immersiveTranslateSwitchTranslateState=G0.bind(ne)}function Hg(e,t){t.getRootNode()instanceof ShadowRoot?$o(t.getRootNode(),e):$o(t.ownerDocument,e),K0(e)}function K0(e){if(ne)return;ne={},ne.ctx=e,ne.id=hn(),ne.paragraphQueue=[],ne.injectCssToDocument=$o;let t=cn(e);ne.rule={excludeSelectors:t.excludeSelectors,selectors:t.selectors||[]},ne.translationService=e.mouseHoverTranslationService,ne.currentUrl=window.location.href,ne.paragraphEntities={},ne.autoIncreaseParagraphId=1,ne.interruptEffectDOM=!1,ne.urlChangeDelay=e.rule.urlChangeDelay,ne.translateState=e.config.translationMode||"dual",ne.observeContainers=[],ne.observeParagraphs=[],ne.allInlineWindows=[window],window.switchTranslateState=G0.bind(ne)}function Nn(e=!0){ne&&(Dt("Original"),E9(),ne.interruptEffectDOM=!0,ne.ignoreResizeObserver?.disconnect(),ne.dynamicContainerObserver?.disconnect(),ne.containerVisibleObserver?.disconnect(),ne.paragraphVisibleObserver?.disconnect(),ne.titleDynamicObserver?.disconnect(),Ng(ne.ctx),pg(),fg(),e&&G0.call(ne,"original"),Object.values(ne.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),ne=null)}function k9(e,t){e.interruptEffectDOM=!1;let n;return function(a){let r=a.message,u=!1;return r?.indexOf("Minified React error")>=0&&(u=!0),u&&(clearTimeout(n),Nn(),n=setTimeout(()=>{cr(t)},e.urlChangeDelay||2e3)),!0}}function S9(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{a.intersectionRatio>0&&(Ho(e,a.target),n.unobserve(a.target))})})}function D9(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{if(a.intersectionRatio>0){let r=a.target;(r.paragraphs||[]).forEach(o=>{z0(e,o)}),n.unobserve(r)}})})}var zg;function L9(e){if(e.urlChangeDelay<=0)return!1;let n=(window.location.href||"").split("#")[0];return e.currentUrl.split("#")[0]!=n?(clearTimeout(zg),e.translateState=="original"?!1:(Nn(e.urlChangeDelay>20),zg=setTimeout(()=>{let r=e.ctx;cr(r)},e.urlChangeDelay),!0)):!1}function M9(e){return new MutationObserver(t=>{if(!L9(e)&&!e.interruptEffectDOM)for(let n of t){let a=e.ctx.rule.mutationObserverLimitTargetSelectors;if(a.length>0&&!En(n.target,a))return;if((n.addedNodes||[]).length<=0||n.target.nodeType!==Node.ELEMENT_NODE||!Ut.isSkipMarkEle(n.target)&&!Ut.isMarked(n.target,e.id))continue;let u=(n.target?.paragraphs||[]).reduce((o,i)=>{let s=i.rootNodes||[],c=i.targetNodes||[];return[...o,...s,...c]},[]);if(n.addedNodes.length>0&&n.addedNodes.length===n.target.childNodes.length&&En(n.target,e.ctx.rule.mutationObserverContainerSelectors)){Ut.clearMark(n.target),n.target.paragraphs=void 0,Ho(e,n.target);return}n.addedNodes.forEach((o,i)=>{o.nodeType===Node.ELEMENT_NODE&&(u.includes(o)||Mt(o,e.ctx.rule.mutationExcludeSelectors)||lr(o,e))})}})}function F9(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let a of t){if(a.target.nodeType!==Node.ELEMENT_NODE)return;let r=a.target,u=globalThis.getComputedStyle(r);L0(u)||(n.unobserve(a.target),lr(r,e))}})}function G0(e){this.translateState=e,Object.values(this.paragraphEntities).forEach(t=>{U0(t,e)}),e=="original"&&document.querySelectorAll(`.${$t}`).forEach(t=>t.remove())}function $o(e,t){if(e instanceof HTMLIFrameElement){ir(e.contentDocument,t);return}ir(e,t)}async function qg(e){let t=Je(),n="auto";if(fe()){let a="";e.rule.isEbook||e.rule.isEbookBuilder?(a=v0(e.mainFrame),n=await Qe({text:a,pageLangs:["en"]})):(a=tr(e.mainFrame).slice(0,1e3),n=await Qe({text:a,pageLangs:[ba(),"en"]}))}else if(t)n=await Qe({text:tr(e.mainFrame).slice(0,1e3),pageLangs:[ba(),"en"]});else if(e.rule.isEbook||e.rule.isEbookBuilder){let a="";a=v0(e.mainFrame),n=await Qe({text:a,pageLangs:["en"]})}else n=await Rd();return n==="auto"&&(n=await Lg()),kd(n),n}async function Wg(){if(!ne)return;document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=ne.paragraphEntities,t=Object.keys(e);for(let n of t){let a=e[n];if(a.error){ne.paragraphQueue.push(n);let u=a.commonAncestorContainer.querySelector(`[${Iu}='${n}']`);u&&u.remove()}}H0.call(ne,ne.ctx)}m();m();var $g={"zh-CN":{"languages.en":"\u82F1\u8BED","languages.ja":"\u65E5\u8BED","languages.ko":"\u97E9\u8BED","languages.es":"\u897F\u73ED\u7259\u8BED","languages.fr":"\u6CD5\u8BED","languages.de":"\u5FB7\u8BED","languages.it":"\u610F\u5927\u5229\u8BED","languages.pt":"\u8461\u8404\u7259\u8BED","languages.ru":"\u4FC4\u8BED","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"},"zh-TW":{"languages.en":"\u82F1\u8A9E","languages.ja":"\u65E5\u8A9E","languages.ko":"\u97D3\u8A9E","languages.es":"\u897F\u73ED\u7259\u8A9E","languages.fr":"\u6CD5\u8A9E","languages.de":"\u5FB7\u8A9E","languages.it":"\u610F\u5927\u5229\u8A9E","languages.pt":"\u8461\u8404\u7259\u8A9E","languages.ru":"\u4FC4\u8A9E","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"}},Kg={...Ot,"zh-CN":{...$g["zh-CN"],...Ot["zh-CN"]},"zh-TW":{...$g["zh-TW"],...Ot["zh-TW"]}},Gg=Kg;function dr(e,t,n){return In(Kg,e,t,Uu,n)}var Go=(e,t,n,a)=>{let r=x4[e]||e,u=E4[e],o=T4[e],i={"zh-CN":u,"zh-TW":o,en:r};if(n)return i[e]?i[e]:r;if(i[t]){let s=i[t];return a||e==="auto"||e==="placeholder"?s:`${s} (${r})`}else return r};m();m();function mr(e){Ka(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(a=>{j.error("send content message request failed",e,a)}),document.querySelectorAll("iframe").forEach(a=>{a.contentWindow&&a.contentWindow.postMessage({author:Pu,payload:e},"*")});let n=new CustomEvent($n,{detail:e});globalThis.document.dispatchEvent(n)}function V0(e){let t=e.shortcuts||{},a=Object.keys(t).reduce((u,o)=>(u[t[o]]=o,u),{}),r=Object.keys(a);for(let u of r){let o=u.replace(/MacCtrl/ig,"Ctrl");o&&Ye(o,i=>{i.preventDefault(),mr({method:a[u],data:{trigger:"shortcut"}})})}}m();m();m();m();m();var Xo,ve,Zg,P9,su,Vg,Xg,Jo={},e3=[],_9=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ca(e,t){for(var n in t)e[n]=t[n];return e}function t3(e){var t=e.parentNode;t&&t.removeChild(e)}function J0(e,t,n){var a,r,u,o={};for(u in t)u=="key"?a=t[u]:u=="ref"?r=t[u]:o[u]=t[u];if(arguments.length>2&&(o.children=arguments.length>3?Xo.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(u in e.defaultProps)o[u]===void 0&&(o[u]=e.defaultProps[u]);return Vo(e,o,a,r,null)}function Vo(e,t,n,a,r){var u={type:e,props:t,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++Zg};return r==null&&ve.vnode!=null&&ve.vnode(u),u}function Kt(e){return e.children}function Yo(e,t){this.props=e,this.context=t}function gr(e,t){if(t==null)return e.__?gr(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?Vo(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=n,f.__b=n.__b+1,(p=h[l])===null||p&&f.key==p.key&&f.type===p.type)h[l]=void 0;else for(g=0;g=n.__.length&&n.__.push({__V:ti}),n.__[e]}function De(e){return cu=1,I9(y3,e)}function I9(e,t,n){var a=ai(du++,2);if(a.t=e,!a.__c&&(a.__=[n?n(t):y3(void 0,t),function(u){var o=a.__N?a.__N[0]:a.__[0],i=a.t(o,u);o!==i&&(a.__N=[i,a.__[1]],a.__c.setState({}))}],a.__c=tt,!tt.u)){tt.u=!0;var r=tt.shouldComponentUpdate;tt.shouldComponentUpdate=function(u,o,i){if(!a.__c.__H)return!0;var s=a.__c.__H.__.filter(function(l){return l.__c});if(s.every(function(l){return!l.__N}))return!r||r.call(this,u,o,i);var c=!1;return s.forEach(function(l){if(l.__N){var g=l.__[0];l.__=l.__N,l.__N=void 0,g!==l.__[0]&&(c=!0)}}),!!c&&(!r||r.call(this,u,o,i))}}return a.__N||a.__}function Ge(e,t){var n=ai(du++,3);!ve.__s&&b3(n.__H,t)&&(n.__=e,n.i=t,tt.__H.__h.push(n))}function ri(e){return cu=5,el(function(){return{current:e}},[])}function el(e,t){var n=ai(du++,7);return b3(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function da(e,t){return cu=8,el(function(){return e},t)}function ui(e){var t=tt.context[e.__c],n=ai(du++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(tt)),t.props.value):e.__}function N9(){for(var e;e=h3.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ni),e.__H.__h.forEach(X0),e.__H.__h=[]}catch(t){e.__H.__h=[],ve.__e(t,e.__v)}}ve.__b=function(e){typeof e.type!="function"||e.o||e.type===Kt?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),tt=null,c3&&c3(e)},ve.__r=function(e){d3&&d3(e),du=0;var t=(tt=e.__c).__H;t&&(Z0===tt?(t.__h=[],tt.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=ti,n.__N=n.i=void 0})):(t.__h.forEach(ni),t.__h.forEach(X0),t.__h=[])),Z0=tt},ve.diffed=function(e){m3&&m3(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(h3.push(t)!==1&&l3===ve.requestAnimationFrame||((l3=ve.requestAnimationFrame)||j9)(N9)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==ti&&(n.__=n.__V),n.i=void 0,n.__V=ti})),Z0=tt=null},ve.__c=function(e,t){t.some(function(n){try{n.__h.forEach(ni),n.__h=n.__h.filter(function(a){return!a.__||X0(a)})}catch(a){t.some(function(r){r.__h&&(r.__h=[])}),t=[],ve.__e(a,n.__v)}}),g3&&g3(e,t)},ve.unmount=function(e){p3&&p3(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(a){try{ni(a)}catch(r){t=r}}),n.__H=void 0,t&&ve.__e(t,n.__v))};var f3=typeof requestAnimationFrame=="function";function j9(e){var t,n=function(){clearTimeout(a),f3&&cancelAnimationFrame(t),setTimeout(e)},a=setTimeout(n,100);f3&&(t=requestAnimationFrame(n))}function ni(e){var t=tt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),tt=t}function X0(e){var t=tt;e.__c=e.__(),tt=t}function b3(e,t){return!e||e.length!==t.length||t.some(function(n,a){return n!==e[a]})}function y3(e,t){return typeof t=="function"?t(e):t}m();m();var pr={},U9={root:"",lang:"en",fallbackLang:"en"};function tl(e,t){let n=Object.assign({},U9,e);pr=t||pr;let[a,r]=De(n.lang),[u,o]=De(pr),[i,s]=De(!1),c=g=>{if(u.hasOwnProperty(g))return;s(!1);let p=Mg(n.root||"",g);n.getUrl&&(p=n.getUrl(n.root||"",g),fetch(p).then(f=>f.json()).then(f=>{pr[g]=f,o({...pr}),s(!0)}).catch(f=>{o({...pr}),s(!0)}))};return Ge(()=>{c(n.fallbackLang||"en"),c(a)},[a]),{lang:a,setLang:r,t:(g,p)=>{if(!u.hasOwnProperty(a))return g;let f=uu(u,a,g);return f===g&&a!==n.fallbackLang&&(f=uu(u,n.fallbackLang,g)),_0(f,p)},isReady:i}}m();m();var z9=0;function V(e,t,n,a,r){var u,o,i={};for(o in t)o=="ref"?u=t[o]:i[o]=t[o];var s={type:e,props:i,key:n,ref:u,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--z9,__source:r,__self:a};if(typeof e=="function"&&(u=e.defaultProps))for(o in u)i[o]===void 0&&(i[o]=u[o]);return ve.vnode&&ve.vnode(s),s}var al=ei(null),nl={root:"assets",lang:"en",fallbackLang:"en"},x3=e=>{let{t,setLang:n,lang:a,isReady:r}=tl({root:e.root||nl.root,lang:e.lang||nl.lang,fallbackLang:e.fallbackLang||nl.fallbackLang,getUrl:e.getUrl},e.translations);return V(al.Provider,{value:{t,setLang:n,lang:a,isReady:r},children:e.children})};m();m();function E3(e,t,n){let a=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),a=t!=="auto"?n[t].matches:[];let r={},u=Object.keys(n);for(let c of u){let g=n[c].matches;for(let p of g)r[p]||(r[p]=[]),r[p].push(c)}let o=r[e];if(o&&o.length>0)for(let c of o)n[c].matches.indexOf(e)>-1&&(n[c]={...n[c],matches:n[c].matches.filter(g=>g!==e)});let i=new Set(a);if(t==="auto")return{...n};i.add(e);let s=Array.from(i);return{...n,[t]:{...n[t],matches:s}}}m();m();function rl(){return V("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[V("path",{d:"M10.3873 2.29166C10.6319 2.29193 10.8664 2.38929 11.0392 2.56234C11.2121 2.73539 11.3092 2.96998 11.3092 3.21457V4.07811L12.1175 4.38332C12.7273 4.61277 13.2952 4.94074 13.7988 5.35416L14.4675 5.90207L15.2165 5.46978L15.2394 5.45624C15.3787 5.37479 15.5373 5.332 15.6988 5.33228C15.861 5.3325 16.0203 5.37522 16.1608 5.45618C16.3014 5.53715 16.4182 5.65353 16.4998 5.79374L16.8925 6.47395C17.0145 6.68593 17.0475 6.93764 16.9843 7.17391C16.921 7.41019 16.7666 7.61173 16.555 7.73436L16.5321 7.74791L15.7842 8.17916L15.9227 9.0302C16.031 9.67953 16.031 10.3423 15.9227 10.9917L15.781 11.8458L16.531 12.2781L16.5467 12.2875C16.758 12.4101 16.9122 12.6115 16.9754 12.8475C17.0387 13.0835 17.0059 13.335 16.8842 13.5469L16.5154 14.1844C16.3932 14.3961 16.1919 14.5507 15.9558 14.6141C15.7196 14.6776 15.468 14.6448 15.256 14.5229L15.2415 14.5135L14.4904 14.0802L13.8206 14.6323C13.3125 15.0519 12.7384 15.3845 12.1217 15.6167L11.3133 15.9219V16.7864C11.3132 16.9078 11.2891 17.028 11.2425 17.14C11.1958 17.2521 11.1276 17.3539 11.0415 17.4395C10.9555 17.5251 10.8535 17.5929 10.7412 17.6391C10.6289 17.6852 10.5087 17.7087 10.3873 17.7083H9.61229C9.3677 17.708 9.13322 17.6107 8.96037 17.4376C8.78751 17.2646 8.69042 17.03 8.69042 16.7854V15.9219L7.88209 15.6167C7.27233 15.3872 6.70437 15.0592 6.20084 14.6458L5.53209 14.0979L4.78313 14.5302L4.76021 14.5437C4.62084 14.6252 4.46226 14.668 4.30084 14.6677C4.13864 14.6675 3.97932 14.6248 3.83877 14.5438C3.69823 14.4628 3.58135 14.3464 3.49979 14.2062L3.10709 13.526C2.98505 13.3141 2.95205 13.0623 3.01532 12.8261C3.07858 12.5898 3.23296 12.3882 3.44459 12.2656L3.4675 12.2521L4.21542 11.8208L4.07688 10.9698C3.96856 10.3204 3.96856 9.65766 4.07688 9.00832L4.21854 8.1552L3.46959 7.72186L3.45709 7.70832C3.24914 7.58489 3.09787 7.38486 3.03575 7.15116C2.97362 6.91746 3.00559 6.66872 3.12479 6.45832L3.49354 5.82082C3.57469 5.68049 3.69133 5.56397 3.83175 5.48297C3.97217 5.40197 4.13144 5.35934 4.29354 5.35936C4.45497 5.35908 4.61355 5.40187 4.75292 5.48332L4.7675 5.49166L5.51854 5.92499L6.18834 5.37291C6.69646 4.95329 7.27054 4.62067 7.88729 4.38853L8.69563 4.08332V3.21874C8.69452 2.97433 8.79041 2.73945 8.96226 2.56565C9.13411 2.39185 9.36788 2.29331 9.61229 2.29166H10.3873ZM10.3873 1.04166H9.61229C9.03636 1.04193 8.4841 1.27084 8.07685 1.67809C7.66961 2.08533 7.4407 2.6376 7.44042 3.21353C6.69518 3.49423 6.00146 3.89618 5.38729 4.40312L5.37271 4.39478C4.87362 4.10685 4.2806 4.02894 3.72407 4.17818C3.16753 4.32742 2.69307 4.6916 2.405 5.19062L2.03729 5.83332C1.74928 6.33229 1.67121 6.92522 1.82025 7.48173C1.96929 8.03825 2.33324 8.51279 2.83209 8.80103L2.84771 8.80936C2.78023 9.20444 2.74539 9.6044 2.74354 10.0052C2.74367 10.3971 2.77572 10.7883 2.83938 11.175L2.81646 11.1885C2.56927 11.3311 2.35259 11.5209 2.1788 11.7472C2.00501 11.9735 1.87752 12.2319 1.80361 12.5075C1.7297 12.7831 1.71083 13.0706 1.74807 13.3535C1.7853 13.6364 1.87792 13.9091 2.02063 14.1562L2.41334 14.8364C2.55638 15.0837 2.74681 15.3003 2.97371 15.4738C3.20061 15.6473 3.45953 15.7743 3.73561 15.8475C4.01169 15.9208 4.29952 15.9388 4.58259 15.9007C4.86566 15.8625 5.13841 15.7688 5.38521 15.625L5.40813 15.6114C6.01714 16.1105 6.70362 16.5067 7.44042 16.7844C7.44028 17.0697 7.49635 17.3523 7.60542 17.616C7.7145 17.8797 7.87444 18.1193 8.07612 18.3212C8.27779 18.523 8.51726 18.6832 8.78084 18.7925C9.04441 18.9018 9.32694 18.9582 9.61229 18.9583H10.3873C10.9632 18.958 11.5155 18.7291 11.9227 18.3219C12.33 17.9146 12.5589 17.3624 12.5592 16.7864C13.3043 16.5061 13.9981 16.1045 14.6123 15.5979L14.6269 15.6062C15.126 15.8942 15.719 15.9721 16.2755 15.8228C16.8321 15.6736 17.3065 15.3094 17.5946 14.8104L17.9623 14.1729C18.2503 13.6739 18.3284 13.081 18.1793 12.5245C18.0303 11.968 17.6663 11.4934 17.1675 11.2052L17.1519 11.1969C17.2194 10.8018 17.2542 10.4018 17.256 10.001C17.2559 9.60915 17.2239 9.21792 17.1602 8.83124L17.1831 8.8177C17.4303 8.67516 17.647 8.48531 17.8208 8.259C17.9946 8.03269 18.1221 7.77435 18.196 7.49875C18.2699 7.22314 18.2888 6.93568 18.2515 6.65278C18.2143 6.36987 18.1217 6.09708 17.979 5.84999L17.5863 5.16978C17.4437 4.92202 17.2537 4.70485 17.027 4.53072C16.8003 4.3566 16.5415 4.22895 16.2654 4.1551C15.9893 4.08126 15.7013 4.06267 15.418 4.1004C15.1346 4.13814 14.8616 4.23145 14.6144 4.37499L14.5915 4.38853C13.9824 3.88946 13.296 3.49327 12.5592 3.21561C12.5593 2.93026 12.5032 2.64768 12.3942 2.384C12.2851 2.12031 12.1252 1.8807 11.9235 1.67883C11.7218 1.47695 11.4823 1.31678 11.2188 1.20746C10.9552 1.09813 10.6726 1.04179 10.3873 1.04166Z",fill:"#666666"}),V("path",{d:"M10.0003 7.91666C10.4124 7.91666 10.8152 8.03884 11.1578 8.26776C11.5004 8.49668 11.7674 8.82205 11.9251 9.20273C12.0828 9.58341 12.124 10.0023 12.0436 10.4064C11.9632 10.8106 11.7648 11.1818 11.4735 11.4731C11.1821 11.7645 10.8109 11.9629 10.4068 12.0433C10.0026 12.1237 9.58375 12.0824 9.20307 11.9247C8.82239 11.7671 8.49702 11.5 8.2681 11.1574C8.03918 10.8148 7.91699 10.412 7.91699 9.99999C7.91699 9.44745 8.13649 8.91755 8.52719 8.52685C8.91789 8.13615 9.44779 7.91666 10.0003 7.91666ZM10.0003 6.66666C9.34106 6.66666 8.69659 6.86215 8.14843 7.22842C7.60026 7.5947 7.17302 8.11529 6.92073 8.72438C6.66844 9.33346 6.60243 10.0037 6.73104 10.6503C6.85966 11.2969 7.17713 11.8908 7.6433 12.357C8.10948 12.8232 8.70342 13.1407 9.35003 13.2693C9.99663 13.3979 10.6669 13.3319 11.2759 13.0796C11.885 12.8273 12.4056 12.4001 12.7719 11.8519C13.1382 11.3037 13.3337 10.6593 13.3337 9.99999C13.3337 9.11593 12.9825 8.26809 12.3573 7.64297C11.7322 7.01785 10.8844 6.66666 10.0003 6.66666Z",fill:"#666666"})]})}m();function T3(e,t=2e3){return n=>{let a,r=0;return u=>{++r==e&&(n(u),r=0),clearTimeout(a),a=setTimeout(()=>r=0,t)}}}m();function C3(e){let t;try{t=new URL(e)}catch{return!1}let n=Ud(),a="";try{a=new URL(n).hostname}catch{}return a&&t.hostname===a?!0:!(H9(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function H9(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}m();function w3(e){let t=e.split(".");return t.length>2?(t[0]="*",t.join(".")):null}m();function v3(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}m();m();function zt(){return ui(al)}function jn(e){let{items:t,maxWidth:n,className:a}=e,{lang:r}=zt();return n=n||(r==="en"?144:160),V("select",{autoComplete:"off",class:a||"min-select",style:{maxWidth:`${n}px`},value:t.find(u=>u.selected)?.value,onChange:u=>{let o=u.target.value,i=t.find(s=>s.value===o);i&&i.onSelected(i)},children:t.map((u,o)=>V("option",{value:u.value,selected:u.selected,children:u.label},"selectlink"+o))})}m();var oi="DROP_DOWN_DEFAULT_VALUE";function ul(e){let{showArrow:t,onSelected:n,className:a,menus:r,maxWidth:u}=e;a=a||"",t=t??!0,u=u||80;let o=ri(null);return V("select",{ref:o,autoComplete:"off",class:`text-label min-select ${t?"":"min-select-no-arrow"} ${a||""}`,value:oi,style:{maxWidth:`${u}px`},onChange:i=>{i.preventDefault();let s=i.target.value;if(o.current&&s!==oi){o.current.value=oi,o.current?.dispatchEvent(new Event("change"));let c=r.find(l=>l.value===s);c&&n(c)}},children:[{value:oi,label:e.label}].concat(r).map((i,s)=>V("option",{value:i.value,children:i.label},"option-"+s))})}m();function ol(e){let{field:t,onChange:n,value:a}=e;a=a||t.default||"";let{t:r}=zt(),u=t.name;return t.label&&(u=t.label),t.labelKey&&(u=r(t.labelKey)),t.type==="select"?V("div",{class:"flex justify-between items-center mb-2",children:[V("label",{class:"inline-block",children:[u,"\uFF1A"]}),V(jn,{items:t.options.map(o=>({label:`${o.label?r(o.label):o.value}`,value:o.value,selected:a===o.value,onSelected:()=>{n(o.value)}}))})]}):null}m();m();function mu(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var q9=({date:e})=>{let{t}=zt(),[n,a]=De(!1);return Ge(()=>{setTimeout(()=>{a(!0)},5e3)},[]),n?null:V("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},W9=({minVersion:e})=>{let{t}=zt();return V("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},$9=()=>{let{t:e}=zt();return V("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:"https://immersivetranslate.com/docs/installation/"})}})},K9=({message:e,handleSyncing:t,date:n})=>{let{t:a}=zt();return V("p",{class:"text-sm",children:[a("failToSyncRules")," ",V("a",{onClick:t,children:a("retry")}),V("br",{}),a("failedReason"),"\uFF1A",e,V("br",{}),a("currentRuleVersion"),"\uFF1A",n]})};function il(e){let{isShowError:t,request:n}=e,[a,r]=De(null),{t:u}=zt(),[o,i]=De(null),[s,c]=De(null),[l,g]=De(""),[p,f]=De(!1),[d,b]=De(!1),[C,h]=De(!1),[A,S]=De(null),[U,R]=De(null),y=nn(),T=async()=>{g("");let k=o;if(o===null)try{let v=await n({url:Lr});v?(i(v),k=v,f(!0)):(g(u("unknownError")),c(null))}catch(v){c(null),g(v.message);return}k!==null?(e.setStorageBuildinConfig(k),c(!1),r(k.buildinConfigUpdatedAt)):(g(u("canNotFetchRemoteRule")),c(null))};return Ge(()=>{Jn().then(k=>{let v=k.buildinConfigUpdatedAt;S(k);let E=new Date(v);if(r(v),y==="0.0.0"){h(!0);return}n({url:Lr}).then(B=>{let P=B,w=P.minVersion,_=y;i(P);let O=P.latestVersion;if(O&&(mu(_,O)?R(!0):R(!1)),mu(_,w)){let N=P.buildinConfigUpdatedAt;new Date(N)>E?(c(!0),T()):c(!1)}else b(!0),c(null)}).catch(B=>{c(null),g(B.message)})})},[]),Ge(()=>{Jn().then(k=>{S(k)})},[a]),A?V("div",{class:"text-sm mt-2",style:{maxWidth:218},children:C?V($9,{}):l?t===!1?null:V(K9,{handleSyncing:T,message:l,date:a||""}):d?t===!1?null:V(W9,{minVersion:o.minVersion}):s===null||s===!0?null:p?V(q9,{date:a}):null}):null}m();var ii='',sl="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMTEuNjIzLS4zMTguODQ1Yy0uMjA4LjIyMi0uNTI3LjMzMy0uOTI4LjMzM2gtMS4zM1Y5LjI0MmgxLjMzWm05Ljg0NiAxLjc4OGMuMzg4IDAgLjY2NS4xNTIuODQ1LjQ1Ny4xNTIuMjY0LjIzNS41ODIuMjYzLjk4NHYuMzE5YzAgLjQ5OS0uMDgzLjg4Ny0uMjYzIDEuMTkyLS4xOC4zMDQtLjQ1Ny40NTctLjgzLjQ1Ny0uMzg5IDAtLjY2Ni0uMTUzLS44NDYtLjQ0NC0uMTUyLS4yNjMtLjIzNS0uNTk1LS4yNjMtMS4wMTF2LS4yOTFjMC0uNDg1LjA4My0uODczLjI2My0xLjE3OC4xOC0uMzA1LjQ0My0uNDg1LjgzMS0uNDg1Wm0tMy40MDctMS4xMzZhMS4xNyAxLjE3IDAgMCAwLS43MDYuMjM1IDEuNDgyIDEuNDgyIDAgMCAwLS40MTUuNWwtLjA4My4xNjUtLjA3LS44MDNoLTEuMzU3djUuNDMyaDEuNDU0di0zLjY1OWEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiA4LjEySDQuMTE0djcuMzE3aDEuNDY4VjEyLjc5aDEuMzNjLjg0NCAwIDEuNDk1LS4yMDggMS45OC0uNjM4LjQ4NS0uNDMuNzItLjk4My43Mi0xLjY5cy0uMjM1LTEuMjYxLS43Mi0xLjY5Yy0uNDQzLS4zODktMS4wMzktLjYxLTEuNzczLS42MzhsLS4yMjEtLjAxNFptOS44NDcgMS43NzRjLS44MDMgMC0xLjQyNi4yNjMtMS44ODMuNzc2LS40MTYuNDctLjYzNyAxLjA2Ny0uNjc5IDEuNzczdi4zMzNjMCAuODE4LjIyMiAxLjQ4My42NzkgMS45OTUuNDU3LjUxMyAxLjA4Ljc3NiAxLjg4My43NzYuODA0IDAgMS40MjctLjI2MyAxLjg4NC0uNzc2LjQxNS0uNDcuNjM3LTEuMDUzLjY3OC0xLjc3M3YtLjMzM2MwLS44MTctLjIyMS0xLjQ4Mi0uNjc4LTEuOTk1LS40NTctLjUxMy0xLjA4LS43NzYtMS44ODQtLjc3NlpNMTguMDAzIDZhNiA2IDAgMCAxIDAgMTJIMFY5LjQyM0EzLjQyIDMuNDIgMCAwIDEgMy40MiA2aDE0LjU4M1oiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSI3LjUiIHgyPSIyMiIgeTE9IjE5IiB5Mj0iNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMyMjIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM2OTY5NjkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=",ll="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzk5OSIgZD0iTTYuODk3IDMuMjQyYy40MTUgMCAuNzIuMTExLjkyOC4zNDcuMjA3LjIzNS4zMTguNTI2LjMxOC44NzMgMCAuMzQ2LS4xMS42MjMtLjMxOC44NDUtLjIwOC4yMjItLjUyNy4zMzMtLjkyOC4zMzNoLTEuMzNWMy4yNDJoMS4zM1ptOS44NDYgMS43ODhjLjM4OCAwIC42NjUuMTUyLjg0NS40NTcuMTUyLjI2NC4yMzUuNTgyLjI2My45ODR2LjMxOWMwIC40OTktLjA4My44ODctLjI2MyAxLjE5Mi0uMTguMzA0LS40NTcuNDU3LS44My40NTctLjM4OSAwLS42NjYtLjE1My0uODQ2LS40NDQtLjE1Mi0uMjYzLS4yMzUtLjU5NS0uMjYzLTEuMDExdi0uMjkxYzAtLjQ4NS4wODMtLjg3My4yNjMtMS4xNzguMTgtLjMwNS40NDMtLjQ4NS44MzEtLjQ4NVptLTMuNDA3LTEuMTM2YTEuMTcgMS4xNyAwIDAgMC0uNzA2LjIzNSAxLjQ4MiAxLjQ4MiAwIDAgMC0uNDE1LjVsLS4wODMuMTY1LS4wNy0uODAzaC0xLjM1N3Y1LjQzMmgxLjQ1NFY1Ljc2NGEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiAyLjEySDQuMTE0djcuMzE3aDEuNDY4VjYuNzloMS4zM2MuODQ0IDAgMS40OTUtLjIwOCAxLjk4LS42MzguNDg1LS40My43Mi0uOTgzLjcyLTEuNjlzLS4yMzUtMS4yNjEtLjcyLTEuNjljLS40NDMtLjM4OS0xLjAzOS0uNjEtMS43NzMtLjYzOGwtLjIyMS0uMDE0Wm05Ljg0NyAxLjc3NGMtLjgwMyAwLTEuNDI2LjI2My0xLjg4My43NzYtLjQxNi40Ny0uNjM3IDEuMDY3LS42NzkgMS43NzN2LjMzM2MwIC44MTguMjIyIDEuNDgzLjY3OSAxLjk5NS40NTcuNTEzIDEuMDguNzc2IDEuODgzLjc3Ni44MDQgMCAxLjQyNy0uMjYzIDEuODg0LS43NzYuNDE1LS40Ny42MzctMS4wNTMuNjc4LTEuNzczdi0uMzMzYzAtLjgxNy0uMjIxLTEuNDgzLS42NzgtMS45OTUtLjQ1Ny0uNTEzLTEuMDgtLjc3Ni0xLjg4NC0uNzc2Wk0xOC4wMDMgMGE2IDYgMCAwIDEgMCAxMkgwVjMuNDIzQTMuNDIgMy40MiAwIDAgMSAzLjQyIDBoMTQuNTgzWiIvPjwvc3ZnPg==";function cl(e){let t=nn(),{onTranslateTheMainPage:n,onUserConfigChange:a,request:r,onTranslateLocalHtmlFile:u,onSwitchTranslationMode:o,onTranslateLocalSubtitleFile:i,onSetBuildinConfig:s,pageStatus:c,openEbookBuilderPage:l,openPricingPage:g,openEbookViewerPage:p,config:f,openAboutPage:d,onTranslateTheWholePage:b,onToggleEnabled:C,openOptionsPage:h,ontranslateToThePageEndImmediately:A,onSetPageLanguage:S,onToggleTranslate:U,onTranslateLocalPdfFile:R,onTranslatePdf:y,onRestorePage:T,ctx:k,currentUrl:v,currentLang:E,onClose:B,onTranslatePage:P,onSetLocalConfig:w,onMouseTriggerChanged:_,errorMsg:O,disabledButton:N,noPermissionPDF:M}=e,x=a,[L,I]=De(""),[$,z]=De(O),[Y,q]=De(null),[ae,Q]=De(null),{t:G,lang:pe}=zt(),he=70;pe.startsWith("zh")||(he=75);let re=null,K=null,se=null,me=null,ce=null,ye=null,ke=null,xe=null,Z=null,Ae=null,Le=null,Re=null;Ge(()=>{Nt.get(en,null).then(H=>{H?(q(H),Q(tn(H))):Q(!1)}).catch(H=>{Q(!1)})},[]);let Ne=!0,st=Rt();if(f){st&&f&&(Ne=f.generalRule.showSponsorOnSafari);let{translationService:H,translationServices:de,translationUrlPattern:$e}=f;Bn[H]&&(xe=Fs("translationService",H,k)),de&&de[H]?Re=de[H]||{}:Re={};try{Z=new URL(v||"")}catch{}if(v&&C3(v)){Ae=w3(Z.hostname),Le=v3(v);let{matches:Me,excludeMatches:Pe}=$e;K=Me.includes(Ae),re=Me.includes(Z.hostname),me=Pe.includes(Ae),se=Pe.includes(Z.hostname),ye=Me.includes(Le),ke=Pe.includes(Le)}}if(f&&E&&E!=="auto"){let{translationLanguagePattern:H}=f,{matches:de}=H;de.includes(E)?ce=!0:ce=!1}let Pt=H=>{H.preventDefault(),h()},pa=H=>{x(de=>(de.alpha?I("Success disable alpha!"):I("Success enable alpha!"),{...de,alpha:!de.alpha}))},Ht=H=>{x(de=>({...de,translationMode:H})),o(H)},Dn=()=>{x(H=>({...H,translationArea:"body"})),b()},Un=()=>{x(H=>({...H,translationArea:"main"})),n()},Oe=(H,de,$e,Me)=>{if(H==="default"){x(wn=>{let Jt={...wn.translationUrlPattern};return{...wn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...wn.translationUrlPattern,matches:Vn([Z?.hostname,Ae,v],Jt.matches),excludeMatches:Vn([Z?.hostname,Ae,v],Jt.excludeMatches)}}});return}let Pe=H,Ln=Pe==="matches"?"excludeMatches":"matches";Z&&x(wn=>{let Jt={...wn.translationUrlPattern};return Jt[Pe]=vs(de,Jt[Pe]),Me.length>0&&(Jt[Pe]=Vn(Me,Jt[Pe])),Jt[Ln]=Vn($e,Jt[Ln]),{...wn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...wn.translationUrlPattern,...Jt}}}),Pe==="matches"&&c==="Original"?setTimeout(()=>{P(),B()},100):Pe==="excludeMatches"&&c==="Translated"&&setTimeout(()=>{T(),B()},100)},qt=H=>{if(!H){x(Me=>{let Pe={...Me.translationLanguagePattern};return{...Me,translationLanguagePattern:{...Me.translationLanguagePattern,matches:Vn(E,Pe.matches),excludeMatches:Vn(E,Pe.excludeMatches)}}});return}let de=H,$e=de==="matches"?"excludeMatches":"matches";E&&x(Me=>{let Pe={...Me.translationLanguagePattern};return Pe[de]=vs(E,Pe[de]),Pe[$e]=Vn(E,Pe[$e]),{...Me,translationLanguagePattern:{...Me.translationLanguagePattern,...Pe}}}),de==="matches"&&c==="Original"&&setTimeout(()=>{P(),B()},100)},rt=Z?.pathname.toLowerCase().endsWith(".pdf"),He=G("translate");c==="Translated"||c==="Error"?He=G("show-original"):c==="Original"?rt?$u()&&Z.protocol==="file:"||M?He=G("translate-firefox-local-pdf"):fe()?He=G("noSupportTranslate-pdf"):He=G("translate-pdf"):He=G("translate"):He=G(c);let Yt=G("translateToThePageEndImmediately");(c==="Original"||c==="Translated")&&(f.shortcuts.toggleTranslatePage&&(I4()&&k.rule.fingerCountToToggleTranslagePageWhenTouching>=2?He+=` (${G(`fingers.${k.rule.fingerCountToToggleTranslagePageWhenTouching}`)})`:He+=` (${f.shortcuts.toggleTranslatePage})`),f.shortcuts.toggleTranslateToThePageEndImmediately&&(Yt+=` (${f.shortcuts.toggleTranslateToThePageEndImmediately})`));let _t=[];k&&(_t=Ed(k,"translationService"));let zn=H=>{H.preventDefault(),B()},mt=eg(k.config.translationService,k.config.targetLanguage),mn=ye||re||K,Ue=()=>ye?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!ye,onChange:H=>{let de=H.target.checked;Oe(de?"matches":"default",Le,[Le],[])}}),G("alwaysTranslateSomePage")]}):re?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!re,onChange:H=>{let de=H.target.checked;Oe(de?"matches":"default",Z.hostname,[Z.hostname,Ae,Le],[Ae])}}),G("alwaysTranslateSomeSiteOrWildSite")]}):K?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!K,onChange:H=>{let de=H.target.checked;Oe(de?"matches":"default",Ae,[Le,Z.hostname,Ae],[Z.hostname])}}),G("alwaysTranslateSomeSiteOrWildSite")]}):null;return V("div",{children:[V("div",{class:"popup-container px-6 pt-6 max-content",children:[V("div",{class:"text-sm",children:[V("div",{class:"flex justify-between mb-3 items-center",children:[V("label",{class:"inline-block text-label",children:[G("popupSourceLanguage"),"\uFF1A"]}),V(jn,{maxWidth:186,items:Xt.map(H=>({label:Go(H,f.interfaceLanguage),value:H,selected:H===k.sourceLanguage,onSelected:de=>{S(de.value)}}))})]}),f&&f.targetLanguage&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[G("popupTarget"),"\uFF1A"]}),V(jn,{maxWidth:186,items:mt.filter(H=>H!=="auto").map(H=>({label:Go(H,f.interfaceLanguage),value:H,selected:H===f.targetLanguage,onSelected:de=>{x($e=>({...$e,targetLanguage:de.value}))}}))})]}),xe&&_t.length>0&&V(Kt,{children:[V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[G("popupService"),"\uFF1A"]}),V(jn,{maxWidth:186,items:_t.map(H=>({label:`${G("translationServices."+H.id)}${H.ok?"":" "+(" "+(!ae&&!st&&H.providers&&H.providers.length>0?G("goLoginOrAction"):G("needAction")))}`,value:H.id,selected:H.selected,onSelected:de=>{let $e=_t.find(Me=>Me.id===de.value);if($e.ok){if(x(Me=>({...Me,translationService:$e.id})),c!="Translated")return;$e.props.length===0?setTimeout(()=>{P()},1):setTimeout(()=>{T()},1)}else x(Me=>({...Me,translationService:$e.id})),setTimeout(()=>{h()},100)}}))})]}),Re&&xe.props.length>0&&xe.props.map((H,de)=>V("div",{class:"pl-4 text-sm",children:V(ol,{field:H,value:Re[H.name],onChange:$e=>{x(Me=>{let Pe=Me.translationServices||{},Ln=Pe[xe.id]||{};return setTimeout(()=>{T()},1),{...Me,translationServices:{...Pe,[xe.id]:{...Ln,[H.name]:$e}}}})}},"field-"+de)},"service"+de))]}),Z&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:G("forThisSite")}),V(jn,{maxWidth:186,items:[{label:G("default"),value:"default",selected:re===!1&&se===!1&&!K&&!me&&!ye&&!ke,onSelected:()=>{Oe("default",Z.hostname,[],[]);let H=Z.hostname,de=k.localConfig.tempTranslationUrlMatches||[],$e=de.filter(Pe=>Pe.match!==H),Me=!1;$e.length!==de.length&&(Me=!0),Me&&w({...k.localConfig,tempTranslationUrlMatches:[...$e]})}},Le&&{label:G("alwaysTranslateSomeSite",{hostname:G("currentUrl")}),value:"matchesUrl",selected:ye,onSelected:()=>{Oe("matches",Le,[Le],[])}},{label:G("alwaysTranslateSomeSite",{hostname:Z.hostname}),value:"matches",selected:re,onSelected:H=>{Oe(H.value,Z.hostname,[Z.hostname,Ae,Le],[Ae])}},Ae&&{label:G("alwaysTranslateSomeSite",{hostname:Ae}),value:"matchesWild",selected:K,onSelected:()=>{Oe("matches",Ae,[Le,Z.hostname,Ae],[Z.hostname])}},Le&&{label:G("neverTranslateSomeSite",{hostname:G("currentUrl")}),value:"excludeMatchesUrl",selected:ke,onSelected:()=>{Oe("excludeMatches",Le,[Le],[])}},{label:G("neverTranslateSomeSite",{hostname:Z.hostname}),value:"excludeMatches",selected:se,onSelected:H=>{Oe(H.value,Z.hostname,[Z.hostname,Ae,Le],[Ae])}},Ae&&{label:G("neverTranslateSomeSite",{hostname:Ae}),value:"excludeMatchesWild",selected:me,onSelected:()=>{Oe("excludeMatches",Ae,[Z.hostname,Le,Ae],[Z.hostname])}}].filter(Boolean)})]}),_&&Br()&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[G("mouse-translate"),"\uFF1A"]}),V(jn,{maxWidth:186,items:Hu.filter(H=>!(Hu.includes(f.generalRule.mouseHoverHoldKey)&&H==="OtherCustom")).map(H=>{let de=G("mouseHoldKey",{key:H}),$e=Hu.includes(f.generalRule.mouseHoverHoldKey),Me=H===f.generalRule.mouseHoverHoldKey;return H==="Auto"?de=G("mouseHoldKeyAuto"):H==="Off"?de=G("mouseHoldKeyOff"):H==="OtherCustom"?de=$e?G("mouseHoldKeyOther"):G("mouseHoldKeyCustomKey",{key:f.generalRule.mouseHoverHoldKey}):H==="Other"&&(de=G("mouseHoldKeyOther")),$e||H==="OtherCustom"&&(Me=!0),{label:de,value:H,selected:Me,onSelected:Pe=>{Pe.value==="Other"?h("#interface"):_(Pe.value)}}})})]})]}),V("div",{class:"",children:V("button",{class:"py-2 mt-1 mb-5 main-button ",onClick:()=>{rt?y&&y():U()},"aria-busy":c==="Translating",disabled:N||c==="Translating",children:He})}),V("div",{class:"text-sm",children:L}),V("div",{class:`pb-2 text-sm ${$?"":"display-none"}`,children:$}),V("div",{class:"flex items-center justify-between flex-wrap",children:[mn?V(Ue,{}):E&&E!=="auto"?V("label",{for:"alwaysTranslateThisLanugage",class:"text-sm text-label text-overflow-ellipsis max-w-20",children:[V("input",{type:"checkbox",id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",checked:!!ce,onChange:H=>{let de=H.target.checked;qt(de?"matches":void 0)}}),G("alwaysTranslateSomeLanguage",{language:Go(E,f.interfaceLanguage,!1,!0)})]}):V("span",{}),V("div",{class:`flex flex-end flex-grow ${$?"display-none":""}`,children:V("span",{class:"immersive-translate-no-select muted text-sm",onClick:T3(7)(pa),children:["V",t,f.enabled?null:V("a",{href:"#",onClick:C,children:[" ","(",G("hasBeenDisabled"),")"]})]})})]})]}),V("footer",{children:[V("div",{class:"px-6 text-label",children:V(il,{isShowError:!1,request:r,setStorageBuildinConfig:s})}),V("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer text-label",children:[V("div",{class:"flex flex-row items-center justify-center secondary clickable",style:{width:70},onClick:Pt,children:[V(rl,{}),V("span",{class:"ml-1",children:G("options")})]}),Ne?V("a",{title:G(ae?"popup.openProForPro":"popup.openPro"),target:"_blank",href:ae?ms:gs,children:V("img",{src:ae?sl:ll})}):ae&&V("a",{title:G(ae?"popup.openProForPro":"popup.openPro"),target:"_blank",href:ae?ms:gs,children:V("img",{src:ae?sl:ll})}),V(ul,{label:G("more"),showArrow:!0,maxWidth:he,onSelected:H=>{H.value==="openPremium"?(globalThis.open(Pr),B()):H.value==="changeToOnlyTranslationMode"?Ht("translation"):H.value==="changeToDualTranslationMode"?Ht("dual"):H.value==="translateTheWholePage"?b():H.value==="translateToThePageEndImmediately"?A():H.value==="translateTheMainPage"?n():H.value==="showTranslationOnly"||(H.value==="translateLocalPdfFile"?R&&R():H.value==="translateLocalHtmlFile"?u&&u():H.value==="translateLocalSubtitleFile"?i&&i():H.value==="donate"?(globalThis.open(f.donateUrl),B()):H.value==="feedback"?(globalThis.open(f.feedbackUrl),B()):H.value==="options"?(h(),B()):H.value==="changeToTranslateTheWholePage"?Dn():H.value==="changeToTranslateTheMainPage"?Un():H.value==="about"?d():H.value==="toggleEnabled"?C():H.value==="openEbookViewer"?p():H.value==="openEbookBuilder"?l():H.value==="goPro"&&g())},menus:[f.translationMode==="dual"&&{label:"\u{1F524} "+G("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},f.translationMode==="translation"&&{label:"\u{1F521} "+G("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},f.translationArea==="main"&&{label:"\u{1F480} "+G("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},f.translationArea==="body"&&{label:"\u{1F4D6} "+G("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},{label:"\u26A1 "+Yt,value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+G("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+G("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+G("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},!fe()&&{label:"\u{1F310} "+G("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+G("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},ae===!1&&Ne&&{label:"\u{1F451} "+G("upgradeToPro"),value:"goPro"},{label:"\u2764\uFE0F "+G(Ne?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})]})]})}m();m();m();m();var dl={get:(e,t,n)=>{let a=t===void 0?e:{[e]:t};return ue.storage[n].get(a)},set:(e,t,n)=>ue.storage[n].set({[e]:t})};function si(e,t,n){let[a]=De(()=>typeof t=="function"?t():t),[r]=De(n),[u,o]=De(a),[i,s]=De(!1),[c,l]=De("");Ge(()=>{dl.get(e,a,r).then(p=>{p[e]&&o(p[e]),s(!0),l("")}).catch(p=>{s(!1),l(p)})},[e,a,r]);let g=da(p=>{let f=typeof p=="function"?p(u):p;j.debug("new settings",f),dl.set(e,f,r).then(()=>{o(f),s(!0),l("")}).catch(d=>{o(f),s(!1),l(d)})},[r,e,u]);return[u,g,i,c]}m();function ml(e,t,n){let a=[];return function(){let[u,o,i,s]=si(e,t,n),c=da(l=>{for(let g of a)g(l)},[]);return Ge(()=>(a.push(o),()=>{a.splice(a.indexOf(o),1)}),[o]),[u,c,i,s]}}function A3(e,t){return ml(e,t,"sync")}var G9="userConfig",V9=null,Y9=A3(G9,V9);function li(e){let[t,n,a,r]=Y9(),u=da(o=>{let i=typeof o=="function"?o(t):o;i&&(i.updatedAt=new Date().toISOString()),n(i),e&&e(i)},[t]);return[t,u,a,r,n]}m();m();async function ci(e){try{let t=new Date;j.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await ue.storage.local.set({[Fr]:t.toISOString()}),await J9(),fe()||await Wd()}catch(t){j.error("run cron task failed",t)}}async function k3(){let t=(await Lt()).interval;if(t){let n=await ue.storage.local.get(Fr);if(n&&n[Fr]){let a=n[Fr];if(Date.now()-new Date(a).getTime()a?(await ue.storage.local.set({buildinConfig:t}),j.info(`sync remote rules success, latest: ${new Date(r).toLocaleString()}`)):j.debug(`no need to sync rules, latest: ${a}`):j.info(`local version is too old, please update to ${o} or later`)}catch(e){j.error("sync rules error: ",e)}}m();m();m();m();m();var gl;function wl(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function R3(e,t=","){return e.map(wl).join(t)}var O3=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function mi(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function gi(e,t="@media "){return t+Gt(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(a=>`(${a}-width:${n[a]})`).join(" and "))).join(",")}function Gt(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function Q9(){}var ht={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function I3(e){return e.match(/[-=:;]/g)?.length||0}function xl(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(I3(e),15)<<18}var Z9=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function vl({n:e,i:t,v:n=[]},a,r,u){e&&(e=wl({n:e,i:t,v:n})),u=[...Gt(u)];for(let i of n){let s=a.theme("screens",i);for(let c of Gt(s&&gi(s)||a.v(i))){var o;u.push(c),r|=s?67108864|xl(c):i=="dark"?1073741824:c[0]=="@"?xl(c):(o=c,1<<~(/:([a-z-]+)/.test(o)&&~Z9.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:r,r:u,i:t}}var Al=new Map;function S3(e){if(e.d){let t=[],n=pl(e.r.reduce((a,r)=>r[0]=="@"?(t.push(r),a):r?pl(a,u=>pl(r,o=>{let i=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(i){let s=u.indexOf(i[1]);return~s?u.slice(0,s)+i[0]+u.slice(s+i[1].length):fl(u,o)}return fl(o,u)})):a,"&"),a=>fl(a,e.n?"."+O3(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((a,r)=>r+"{"+a+"}",e.d)}}function pl(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,a,r)=>t(a)+r)}function fl(e,t){return e.replace(/&/g,t)}var D3=new Intl.Collator("en",{numeric:!0});function X9(e,t){for(var n=0,a=e.length;n>1;0>=N3(e[r],t)?n=r+1:a=r}return a}function N3(e,t){let n=e.p&ht.o;return n==(t.p&ht.o)&&(n==ht.b||n==ht.o)?0:e.p-t.p||e.o-t.o||D3.compare(L3(e.n),L3(t.n))||D3.compare(M3(e.n),M3(t.n))}function L3(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function M3(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function hl(e,t){return Math.round(parseInt(e,16)*t)}function ma(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:a}=t,r=a?`var(${a})`:n;if(e.includes(""))return e.replace("",r);if(e[0]=="#"&&(e.length==4||e.length==7)){let u=(e.length-1)/3,o=[17,1,.062272][u-1];return`rgba(${[hl(e.substr(1,u),o),hl(e.substr(1+u,u),o),hl(e.substr(1+2*u,u),o),r]})`}return r=="1"?e:r=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${r})`)}function j3(e,t,n,a,r=[]){return function u(o,{n:i,p:s,r:c=[],i:l},g){let p=[],f="",d=0,b=0;for(let A in o||{}){var C,h;let S=o[A];if(A[0]=="@"){if(!S)continue;if(A[1]=="a"){p.push(...z3(i,s,Sl(""+S),g,s,c,l,!0));continue}if(A[1]=="l"){for(let U of Gt(S))p.push(...u(U,{n:i,p:(C=ht[A[7]],s&~ht.o|C),r:A[7]=="d"?[]:c,i:l},g));continue}if(A[1]=="i"){p.push(...Gt(S).map(U=>({p:-1,o:0,r:[],d:A+" "+U})));continue}if(A[1]=="k"){p.push({p:ht.d,o:0,r:[A],d:u(S,{p:ht.d},g).map(S3).join("")});continue}if(A[1]=="f"){p.push(...Gt(S).map(U=>({p:ht.d,o:0,r:[A],d:u(U,{p:ht.d},g).map(S3).join("")})));continue}}if(typeof S!="object"||Array.isArray(S))A=="label"&&S?i=S+mi(JSON.stringify([s,l,o])):(S||S===0)&&(A=A.replace(/[A-Z]/g,U=>"-"+U.toLowerCase()),b+=1,d=Math.max(d,(h=A)[0]=="-"?0:I3(h)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(h)?+!!RegExp.$1||-!!RegExp.$2:0)+1),f+=(f?";":"")+Gt(S).map(U=>g.s(A,U3(""+U,g.theme)+(l?" !important":""))).join(";"));else if(A[0]=="@"||A.includes("&")){let U=s;A[0]=="@"&&(A=A.replace(/\bscreen\(([^)]+)\)/g,(R,y)=>{let T=g.theme("screens",y);return T?(U|=67108864,gi(T,"")):R}),U|=xl(A)),p.push(...u(S,{n:i,p:U,r:[...c,A],i:l},g))}else p.push(...u(S,{p:s,r:[...c,A]},g))}return p.unshift({n:i,p:s,o:Math.max(0,15-b)+1.5*Math.min(d||15,15),r:c,d:f}),p.sort(N3)}(e,vl(t,n,a,r),n)}function U3(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,a,r,u,o="")=>{let i=t(r,o);return typeof i=="function"&&/color|fill|stroke/i.test(r)?ma(i):""+Gt(i).filter(s=>Object(s)!==s)})}function kl(e,t){let n,a=[];for(let r of e)r.d&&r.n?n?.p==r.p&&""+n.r==""+r.r?(n.c=[n.c,r.c].filter(Boolean).join(" "),n.d=n.d+";"+r.d):a.push(n={...r,n:r.n&&t}):a.push({...r,n:r.n&&t});return a}function El(e,t,n=ht.u,a,r){let u=[];for(let o of e)for(let i of function(s,c,l,g,p){s={...s,i:s.i||p};let f=function(d,b){let C=Al.get(d.n);return C?C(d,b):b.r(d.n,d.v[0]=="dark")}(s,c);return f?typeof f=="string"?({r:g,p:l}=vl(s,c,l,g),kl(El(Sl(f),c,l,g,s.i),s.n)):Array.isArray(f)?f.map(d=>{var b,C;return{o:0,...d,r:[...Gt(g),...Gt(d.r)],p:(b=l,C=d.p??l,b&~ht.o|C)}}):j3(f,s,c,l,g):[{c:wl(s),p:0,o:0,r:[]}]}(o,t,n,a,r))u.splice(X9(u,i),0,i);return u}function z3(e,t,n,a,r,u,o,i){return kl((i?n.flatMap(s=>El([s],a,r,u,o)):El(n,a,r,u,o)).map(s=>s.p&ht.o&&(s.n||t==ht.b)?{...s,p:s.p&~ht.o|t,o:0}:s),e)}function eb(e,t,n,a){var r;return r=(u,o)=>{let{n:i,p:s,r:c,i:l}=vl(u,o,t);return n&&z3(i,t,n,o,s,c,l,a)},Al.set(e,r),e}function bl(e,t,n){if(e[e.length-1]!="("){let a=[],r=!1,u=!1,o="";for(let i of e)if(!(i=="("||/[~@]$/.test(i))){if(i[0]=="!"&&(i=i.slice(1),r=!r),i.endsWith(":")){a[i=="dark:"?"unshift":"push"](i.slice(0,-1));continue}i[0]=="-"&&(i=i.slice(1),u=!u),i.endsWith("-")&&(i=i.slice(0,-1)),i&&i!="&"&&(o+=(o&&"-")+i)}o&&(u&&(o="-"+o),t[0].push({n:o,v:a.filter(tb),i:r}))}}function tb(e,t,n){return n.indexOf(e)==t}var F3=new Map;function Sl(e){let t=F3.get(e);if(!t){let n=[],a=[[]],r=0,u=0,o=null,i=0,s=(c,l=0)=>{r!=i&&(n.push(e.slice(r,i+l)),c&&bl(n,a)),r=i+1};for(;i1?g.slice(0,-1)+mi(JSON.stringify([g,p])):g+"("+R3(p)+")",ht.a,p,/@$/.test(g))],a)}l=n.lastIndexOf("(",l-1)}n.length=l+1}else/[~@]/.test(c)&&e[i+1]=="("&&a.unshift([])}s(!0),F3.set(e,t=a[0])}return t}function H3(e,t,n){return t.reduce((a,r,u)=>a+n(r)+e[u+1],e[0])}function q3(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?H3(e,t,n=>yl(n).trim()):t.filter(Boolean).reduce((n,a)=>n+yl(a),e?yl(e):"")}function yl(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=q3(e[0],e.slice(1)))&&(n+=" "+t);else for(let a in e)e[a]&&(n+=" "+a);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var iP=W3("@"),sP=W3("~");function W3(e){return new Proxy(function(n,...a){return t("",n,a)},{get(n,a){return a in n?n[a]:function(r,...u){return t(a,r,u)}}});function t(n,a,r){return R3(Sl(n+e+"("+q3(a,r)+")"))}}function Tl(e,t){return Array.isArray(e)?P3(H3(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?P3(e):[e]}var nb=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function P3(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],a=[n[0]],r=[];for(;t=nb.exec(e);)t[4]&&(n.shift(),r.shift()),t[3]?(r.unshift(t[3]),n.unshift({}),a.push(r.reduce((u,o)=>({[o]:u}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),a.push(r.reduce((u,o)=>({[o]:u}),n[0]))),n[0][t[1]]=t[2]);return a}function $3(e,...t){var n;let a=Tl(e,t),r=(a.find(u=>u.label)?.label||"css")+mi(JSON.stringify(a));return n=(u,o)=>kl(a.flatMap(i=>j3(i,u,o,ht.o)),r),Al.set(r,n),r}var lP=new Proxy(function(e,t){return _3("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,a){return _3(t,n,a)}}});function _3(e,t,n){return{toString(){return $3({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function ee(e,t,n){return[e,ab(t,n)]}function ab(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,a)=>({[e]:t?t(n,a):Cl(n,1)}):n=>e||{[n[1]]:Cl(n,2)}}function Cl(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function te(e,t,n,a){return[e,rb(t,n,a)]}function rb(e,t,n){let a=typeof t=="string"?(r,u)=>({[t]:n?n(r,u):r._}):t||(({1:r,_:u},o,i)=>({[r||i]:u}));return(r,u)=>{let o=K3(e||r[1]),i=u.theme(o,r.$$)??fr(r.$$,o,u);if(i!=null)return r._=Cl(r,0,i),a(r,u,o)}}function it(e,t={},n){return[e,ub(t,n)]}function ub(e={},t){return(n,a)=>{let{section:r=K3(n[0]).replace("-","")+"Color"}=e,[u,o]=ob(n.$$);if(!u)return;let i=a.theme(r,u)||fr(u,r,a);if(!i||typeof i=="object")return;let{opacityVariable:s=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:c=r.replace("Color","Opacity"),property:l=r,selector:g}=e,p=a.theme(c,o||"DEFAULT")||o&&fr(o,c,a),f=t||(({_:b})=>{let C=gu(l,b);return g?{[g]:C}:C});n._={value:ma(i,{opacityVariable:s||void 0,opacityValue:p||void 0}),color:b=>ma(i,b),opacityVariable:s||void 0,opacityValue:p||void 0};let d=f(n,a);if(!n.dark){let b=a.d(r,u,i);b&&b!==i&&(n._={value:ma(b,{opacityVariable:s||void 0,opacityValue:p||"1"}),color:C=>ma(b,C),opacityVariable:s||void 0,opacityValue:p||void 0},d={"&":d,[a.v("dark")]:f(n,a)})}return d}}function ob(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function gu(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function fr(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=di(U3(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function K3(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function di(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",a,r="")=>di(n)+a+di(r)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var cP=Symbol();var G3=new Proxy(Q9,{apply(e,t,n){return gl(n[0])},get(e,t){let n=gl[t];return typeof n=="function"?function(){return n.apply(gl,arguments)}:n}});var dP=function e(t){return new Proxy(function(n,...a){return B3(t,"",n,a)},{get(n,a){return a==="bind"?e:a in n?n[a]:function(r,...u){return B3(t,a,r,u)}}})}();function B3(e,t,n,a){return{toString(){let r=Tl(n,a),u=O3(t+mi(JSON.stringify([t,r])));return(typeof e=="function"?e:G3)($3({[`@keyframes ${u}`]:Tl(n,a)})),u}}}m();m();m();m();m();var V3={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...Vt(4,"rem",4,.5,.5),...Vt(12,"rem",4,5),14:"3.5rem",...Vt(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Fe("blur"),backdropBrightness:Fe("brightness"),backdropContrast:Fe("contrast"),backdropGrayscale:Fe("grayscale"),backdropHueRotate:Fe("hueRotate"),backdropInvert:Fe("invert"),backdropOpacity:Fe("opacity"),backdropSaturate:Fe("saturate"),backdropSepia:Fe("sepia"),backgroundColor:Fe("colors"),backgroundImage:{none:"none"},backgroundOpacity:Fe("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...Vt(200,"",100,0,50),...Vt(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Fe("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Fe("spacing"),borderWidth:{DEFAULT:"1px",...dn(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Fe("colors"),caretColor:Fe("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...Vt(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Fe("borderColor"),divideOpacity:Fe("borderOpacity"),divideWidth:Fe("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...pu(2,6),...pu(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Fe("spacing"),gradientColorStops:Fe("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...pu(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...pu(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...Vt(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...Vt(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Fe("spacing"),placeholderColor:Fe("colors"),placeholderOpacity:Fe("opacity"),outlineColor:Fe("colors"),outlineOffset:dn(8,"px"),outlineWidth:dn(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Fe("colors"),ringOffsetWidth:dn(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...dn(8,"px")},rotate:{...dn(2,"deg"),...dn(12,"deg",3),...dn(180,"deg",45)},saturate:Vt(200,"",100,0,50),scale:{...Vt(150,"",100,0,50),...Vt(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Fe("spacing"),scrollPadding:Fe("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...dn(2,"deg"),...dn(12,"deg",3)},space:Fe("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:Vt(2),textColor:Fe("colors"),textDecorationColor:Fe("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...dn(8,"px")},textUnderlineOffset:{auto:"auto",...dn(8,"px")},textIndent:Fe("spacing"),textOpacity:Fe("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Fe("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...pu(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...Vt(50,"",1,0,10),auto:"auto"}};function pu(e,t){let n={};do for(var a=1;at(e)}var LP={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${V3.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${V3.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},FP=[ee("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:fr(`[${t}]`,"",n)}}})),ee("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),te("aspect-","aspectRatio"),ee("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:a,padding:r}=t("container"),u={width:"100%",marginRight:a&&"auto",marginLeft:a&&"auto",...o("xs")};for(let i in n){let s=n[i];typeof s=="string"&&(u[gi(s)]={"&":{maxWidth:s,...o(i)}})}return u;function o(i){let s=r&&(typeof r=="string"?r:r[i]||r.DEFAULT);if(s)return{paddingRight:s,paddingLeft:s}}}),te("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),ee("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),ee("box-(border|content)","boxSizing",({1:e})=>e+"-box"),ee("hidden",{display:"none"}),ee("table-(auto|fixed)","tableLayout"),ee(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",ee("isolate","isolation"),ee("object-(contain|cover|fill|none|scale-down)","objectFit"),te("object-","objectPosition"),ee("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",pi),ee("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),ee("(static|fixed|absolute|relative|sticky)","position"),te("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),te("-?(top|bottom|left|right)(?:$|-)","inset"),ee("(visible|collapse)","visibility"),ee("invisible",{visibility:"hidden"}),te("-?z-","zIndex"),ee("flex-((row|col)(-reverse)?)","flexDirection",Y3),ee("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),te("(flex-(?:grow|shrink))(?:$|-)"),te("(flex)-"),te("grow(?:$|-)","flexGrow"),te("shrink(?:$|-)","flexShrink"),te("basis-","flexBasis"),te("-?(order)-"),"-?(order)-(\\d+)",te("grid-cols-","gridTemplateColumns"),ee("grid-cols-(\\d+)","gridTemplateColumns",X3),te("col-","gridColumn"),ee("col-(span)-(\\d+)","gridColumn",Z3),te("col-start-","gridColumnStart"),ee("col-start-(auto|\\d+)","gridColumnStart"),te("col-end-","gridColumnEnd"),ee("col-end-(auto|\\d+)","gridColumnEnd"),te("grid-rows-","gridTemplateRows"),ee("grid-rows-(\\d+)","gridTemplateRows",X3),te("row-","gridRow"),ee("row-(span)-(\\d+)","gridRow",Z3),te("row-start-","gridRowStart"),ee("row-start-(auto|\\d+)","gridRowStart"),te("row-end-","gridRowEnd"),ee("row-end-(auto|\\d+)","gridRowEnd"),ee("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>pi(Y3(e))),ee("grid-flow-(dense)","gridAutoFlow"),te("auto-cols-","gridAutoColumns"),te("auto-rows-","gridAutoRows"),te("gap-x(?:$|-)","gap","columnGap"),te("gap-y(?:$|-)","gap","rowGap"),te("gap(?:$|-)","gap"),"(justify-(?:items|self))-",ee("justify-","justifyContent",J3),ee("(content|items|self)-",e=>({["align-"+e[1]]:J3(e)})),ee("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),te("p([xytrbl])?(?:$|-)","padding",hr("padding")),te("-?m([xytrbl])?(?:$|-)","margin",hr("margin")),te("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),ee("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),te("w-","width"),te("min-w-","minWidth"),te("max-w-","maxWidth"),te("h-","height"),te("min-h-","minHeight"),te("max-h-","maxHeight"),te("font-","fontWeight"),te("font-","fontFamily",({_:e})=>typeof(e=Gt(e))[1]=="string"?{fontFamily:Cn(e)}:{fontFamily:Cn(e[0]),...e[1]}),ee("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),ee("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),ee("italic","fontStyle"),ee("not-italic",{fontStyle:"normal"}),ee("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...ga({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),te("tracking-","letterSpacing"),te("leading-","lineHeight"),ee("list-(inside|outside)","listStylePosition"),te("list-","listStyleType"),ee("list-","listStyleType"),te("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),it("placeholder-",{property:"color",selector:"&::placeholder"}),ee("text-(left|center|right|justify|start|end)","textAlign"),ee("text-(ellipsis|clip)","textOverflow"),te("text-opacity-","textOpacity","--tw-text-opacity"),it("text-",{property:"color"}),te("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),te("indent-","textIndent"),ee("(overline|underline|line-through)","textDecorationLine"),ee("no-underline",{textDecorationLine:"none"}),te("underline-offset-","textUnderlineOffset"),it("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),te("decoration-","textDecorationThickness"),ee("decoration-","textDecorationStyle"),ee("(uppercase|lowercase|capitalize)","textTransform"),ee("normal-case",{textTransform:"none"}),ee("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),ee("align-","verticalAlign"),ee("whitespace-","whiteSpace"),ee("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),ee("break-words",{overflowWrap:"break-word"}),ee("break-all",{wordBreak:"break-all"}),ee("break-keep",{wordBreak:"keep-all"}),it("caret-",{opacityVariable:!1,opacitySection:"opacity"}),it("accent-",{opacityVariable:!1,opacitySection:"opacity"}),ee("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${Sa(e," ")},var(--tw-gradient-stops))`),it("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),it("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),it("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),ee("bg-(fixed|local|scroll)","backgroundAttachment"),ee("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),ee(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),ee("bg-blend-","backgroundBlendMode"),ee("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),te("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),it("bg-",{section:"backgroundColor"}),te("bg-","backgroundImage"),te("bg-","backgroundPosition"),ee("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",pi),te("bg-","backgroundSize"),te("rounded(?:$|-)","borderRadius"),te("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${Sa(n[0])}-radius`]:t,[`border-${Sa(n[1])}-radius`]:t}}),ee("border-(collapse|separate)","borderCollapse"),te("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),ee("border-(solid|dashed|dotted|double|none)","borderStyle"),te("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...ga({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),it("border-([xytrbl])-",{section:"borderColor"},hr("border","Color")),it("border-"),te("border-([xytrbl])(?:$|-)","borderWidth",hr("border","Width")),te("border(?:$|-)","borderWidth"),te("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),ee("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),ee("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),te("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${Sa(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${Sa(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),it("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),te("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),it("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),te("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),ee("ring-inset",{"--tw-ring-inset":"inset"}),it("ring-",{property:"--tw-ring-color"}),te("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...ga({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":ma(t("ringOffsetColor","","#fff")),"--tw-ring-color":ma(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),it("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),te("shadow(?:$|-)","boxShadow",({_:e})=>({...ga({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Cn(e),"--tw-shadow-colored":Cn(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),te("(opacity)-"),ee("mix-blend-","mixBlendMode"),...Q3(),...Q3("backdrop-"),te("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Cn(e),transitionTimingFunction:e._=="none"?void 0:Cn(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:Cn(t("transitionDuration",""))})),te("duration(?:$|-)","transitionDuration","transitionDuration",Cn),te("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Cn),te("delay(?:$|-)","transitionDelay","transitionDelay",Cn),te("animate(?:$|-)","animation",(e,{theme:t,h:n,e:a})=>{let r=Cn(e),u=r.split(" "),o=t("keyframes",u[0]);return o?{["@keyframes "+(u[0]=a(n(u[0])))]:o,animation:u.join(" ")}:{animation:r}}),"(transform)-(none)",ee("transform",Ll),ee("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":ep(e=="gpu")})),te("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...Ll()})),te("-?(rotate)-","rotate",Dl),te("-?(translate-[xy])-","translate",Dl),te("-?(skew-[xy])-","skew",Dl),ee("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",pi),"(appearance)-",te("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",te("(cursor)-"),"(cursor)-",ee("snap-(none)","scroll-snap-type"),ee("snap-(x|y|both)",({1:e})=>({...ga({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),ee("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),ee("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),ee("snap-(normal|always)","scroll-snap-stop"),ee("scroll-(auto|smooth)","scroll-behavior"),te("scroll-p([xytrbl])?(?:$|-)","padding",hr("scroll-padding")),te("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",hr("scroll-margin")),ee("touch-(auto|none|manipulation)","touch-action"),ee("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...ga({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),ee("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),ee("outline",{outlineStyle:"solid"}),ee("outline-(dashed|dotted|double)","outlineStyle"),te("-?(outline-offset)-"),it("outline-",{opacityVariable:!1,opacitySection:"opacity"}),te("outline-","outlineWidth"),"(pointer-events)-",te("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],ee("select-(none|text|all|auto)","userSelect"),it("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),it("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),te("stroke-","strokeWidth"),ee("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),ee("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function pi(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function Y3(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function Sa(e,t="-"){let n=[];for(let a of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[a]);return n.join(t)}function Cn(e){return e&&""+(e._||e)}function J3({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function hr(e,t=""){return({1:n,_:a})=>{let r={x:"lr",y:"tb"}[n]||n+n;return r?{...gu(e+"-"+Sa(r[0])+t,a),...gu(e+"-"+Sa(r[1])+t,a)}:gu(e+t,a)}}function Q3(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let a of t)n[`--tw-${e}${a}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...ga(n),[`${e}filter`]:t.map(a=>`var(--tw-${e}${a})`).join(" ")},[`(${e}filter)-(none)`,ee(`${e}filter`,n),...t.map(a=>te(`${a[0]=="h"?"-?":""}(${e}${a})(?:$|-)`,a,({1:r,_:u})=>({[`--tw-${r}`]:Gt(u).map(o=>`${a}(${o})`).join(" "),...n})))]}function Dl({1:e,_:t}){return{["--tw-"+e]:t,...Ll()}}function Ll(){return{...ga({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":ep()}),transform:"var(--tw-transform)"}}function ep(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function Z3({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function X3({1:e}){return`repeat(${e},minmax(0,1fr))`}function ga(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}m();m();var fi=globalThis||(typeof window<"u"?window:self),lb=Object.create,Fl=Object.defineProperty,cb=Object.getOwnPropertyDescriptor,db=Object.getOwnPropertyNames,mb=Object.getPrototypeOf,gb=Object.prototype.hasOwnProperty,pb=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),fb=(e,t)=>{for(var n in t)Fl(e,n,{get:t[n],enumerable:!0})},Ml=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of db(t))!gb.call(e,r)&&r!==n&&Fl(e,r,{get:()=>t[r],enumerable:!(a=cb(t,r))||a.enumerable});return e},hb=(e,t,n)=>(Ml(e,t,"default"),n&&Ml(n,t,"default")),np=(e,t,n)=>(n=e!=null?lb(mb(e)):{},Ml(t||!e||!e.__esModule?Fl(n,"default",{value:e,enumerable:!0}):n,e)),ap=pb((e,t)=>{(function(n,a){typeof define=="function"&&define.amd?define([],a):typeof e<"u"?a():(a(),n.FileSaver={})})(e,function(){"use strict";function n(c,l){return typeof l>"u"?l={autoBom:!1}:typeof l!="object"&&(l={autoBom:!l}),l.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function a(c,l,g){var p=new XMLHttpRequest;p.open("GET",c),p.responseType="blob",p.onload=function(){s(p.response,l,g)},p.onerror=function(){},p.send()}function r(c){var l=new XMLHttpRequest;l.open("HEAD",c,!1);try{l.send()}catch{}return 200<=l.status&&299>=l.status}function u(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var l=document.createEvent("MouseEvents");l.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(l)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof fi=="object"&&fi.global===fi?fi:void 0,i=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(c,l,g){var p=o.URL||o.webkitURL,f=document.createElement("a");l=l||c.name||"download",f.download=l,f.rel="noopener",typeof c=="string"?(f.href=c,f.origin===location.origin?u(f):r(f.href)?a(c,l,g):u(f,f.target="_blank")):(f.href=p.createObjectURL(c),setTimeout(function(){p.revokeObjectURL(f.href)},4e4),setTimeout(function(){u(f)},0))}:"msSaveOrOpenBlob"in navigator?function(c,l,g){if(l=l||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(n(c,g),l);else if(r(c))a(c,l,g);else{var p=document.createElement("a");p.href=c,p.target="_blank",setTimeout(function(){u(p)})}}:function(c,l,g,p){if(p=p||open("","_blank"),p&&(p.document.title=p.document.body.innerText="downloading..."),typeof c=="string")return a(c,l,g);var f=c.type==="application/octet-stream",d=/constructor/i.test(o.HTMLElement)||o.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||f&&d||i)&&typeof FileReader<"u"){var C=new FileReader;C.onloadend=function(){var S=C.result;S=b?S:S.replace(/^data:[^;]*;/,"data:attachment/file;"),p?p.location.href=S:location=S,p=null},C.readAsDataURL(c)}else{var h=o.URL||o.webkitURL,A=h.createObjectURL(c);p?p.location=A:location.href=A,p=null,setTimeout(function(){h.revokeObjectURL(A)},4e4)}});o.saveAs=s.saveAs=s,typeof t<"u"&&(t.exports=s)})}),rp={};fb(rp,{default:()=>hi});var bb=np(ap());hb(rp,np(ap()));var{default:tp,...yb}=bb,hi=tp!==void 0?tp:yb;m();m();m();m();m();m();var b_=Ve().REDIRECT_URL;function kb(){let[e,t]=De(null);return Ge(()=>{Yn().then(a=>{t(a)})},[]),[e,a=>{t(a),kn(a)}]}async function Sb(e,t,n){try{if(t===null)return"noupdate";let a=await Mb(e),r=await Yn();r.accountLastSyncedAt=Date.now(),j.debug("settings",t),j.debug("local settings.updatedAt",t.updatedAt),j.debug("remote settings.updatedAt",a.updatedAt),j.debug("last synced at",r.accountLastSyncedAt);let u=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(u=!0),!u&&t.updatedAt>a.updatedAt&&(u=!0),j.debug("isUpload",u),u)return await Fb(e,t),await kn(r),"upload";let o=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(o=!0),!o&&t.updatedAt0&&Nt.remove(en),a}}function ip(e,t){let n=Lb(),[a,r]=kb();Ge(()=>{!n||!n.token||a&&a.proAutoSync===!1||Db(n)&&Sb(n.token,e,t)},[e,n])}function Db(e){return tn(e)?!0:new Date(e.createTime){Nt.get(en,null).then(n=>{t(n)})},[t]),e}function Mb(e){return(location.href?.indexOf("popup.html")>0?ya:oe)({responseType:"json",url:ds+"/v1/user/settings",method:"get",headers:{token:e}}).then(n=>n.data)}function Fb(e,t){return(location.href?.indexOf("popup.html")>0?ya:oe)({responseType:"json",url:ds+"/v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(a=>a.data)}function Pl(e){let{onClose:t}=e,[n,a]=De("Original"),[r,u,o,i]=li(()=>{setTimeout(()=>{S("updateGlobalContext",!1)()},250)});ip(r,u);let[s,c]=De(null),[l,g]=De(globalThis.location.href),[p,f]=De("auto"),[d,b]=De(null),C=N=>{a(N.detail)},h=N=>{f(N);let M=E3(l,N,s.sourceLanguageUrlPattern);u(x=>({...x,sourceLanguageUrlPattern:M})),an(N)},A=()=>{g(globalThis.location.href)};Ge(()=>(document.addEventListener(Ou,C,!1),Lt().then(N=>{c(N);let M=pt();f(M);let x=qe();a(x),ci(N.interval)}),document.addEventListener("urlChange",A),()=>{document.removeEventListener("pageTranslatedStatus",C),document.removeEventListener("urlChange",A)}),[]),Ge(()=>{Lt().then(N=>{c(N)})},[r]),Ge(()=>{l&&s&&ln({url:l,config:s}).then(N=>{b(N)})},[l,s]);let S=(N,M,x={})=>()=>{mr({method:N,data:x||{}}),M&&t()},U=()=>{t()},R=()=>{u(N=>({...N,enabled:!N.enabled})),setTimeout(()=>{U()},50)},y=()=>{Rs(),setTimeout(()=>{U()},50)},T=()=>{Rs(),setTimeout(()=>{U()},50)},k=(N="")=>{Ga(!0,N),setTimeout(()=>{t()},50)},v=()=>{bo(w4),setTimeout(()=>{globalThis.close()},50)},E=()=>{ho(),setTimeout(()=>{t()},50)},B=()=>{yo(),setTimeout(()=>{t()},50)},P=()=>{Hd(),setTimeout(()=>{t()},50)},w=()=>{xo(),setTimeout(()=>{t()},50)},_=()=>{qd(),setTimeout(()=>{t()},50)},O=N=>{u(M=>({...M,generalRule:{...M.generalRule,mouseHoverHoldKey:N}}))};return!s||!d?null:V(cl,{openEbookViewerPage:B,openEbookBuilderPage:w,onSwitchTranslationMode:N=>{S("switchTranslationMode",!0,{mode:N})()},onTranslateLocalHtmlFile:P,onTranslateLocalSubtitleFile:_,request:oe,onClose:U,onToggleEnabled:R,onTranslateTheWholePage:S("translateTheWholePage",!0),openOptionsPage:k,openPricingPage:v,onToggleTranslate:S("toggleTranslatePage",!0),onTranslateTheMainPage:S("translateTheMainPage",!0),ontranslateToThePageEndImmediately:S("translateToThePageEndImmediately",!0),onTranslatePage:S("translatePage",!0),onRestorePage:S("restorePage",!1),onTranslatePdf:y,openAboutPage:E,onTranslateLocalPdfFile:T,onSetPageLanguage:h,onUserConfigChange:u,config:s,pageStatus:n,ctx:d,currentUrl:l,currentLang:p,onSetLocalConfig:fo,onSetBuildinConfig:Bd,onMouseTriggerChanged:O})}function Pb(e,t){for(let n of t){if(fe()&&!$u()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}var _l={position:"right",right:0,top:335},Ft={..._l},xi=!1,Da=null,Sn=null,Ei=null,Bl=null,br=null,Rl=null,sp=6,bi,yi,cp=null,dp=null;async function Il(){let e=Ve();Rl=await _d(),Ft=Rl.pagePopupConfig||Ft;let t=document.createElement("div");t.id="immersive-translate-popup",t.setAttribute("style","all: initial"),document.documentElement.appendChild(t);let n=t.attachShadow({mode:"open"});Bl=n;let a=[e.IMMERSIVE_TRANSLATE_PICO_CSS,e.IMMERSIVE_TRANSLATE_COMMON_CSS,e.IMMERSIVE_TRANSLATE_POPUP_CSS,e.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);Pb(n,[a]);let r=document.createElement("div");r.innerHTML=e.IMMERSIVE_TRANSLATE_POPUP_HTML,n.appendChild(r),Da=n.querySelector("#immersive-translate-popup-container");let o=n.querySelector("#immersive-translate-popup-btn");Sn=o,Ei=n.querySelector("#mount"),Da.setAttribute("style",Ol(Ft)),zl(),o.addEventListener("mousedown",mp),o.addEventListener("touchstart",Rb),globalThis.addEventListener("resize",s=>{Da.setAttribute("style",Ol(Ft))})}function _b(){lu(null,Ei),Ei.style.display="none",Sn.style.display="block",br=setTimeout(()=>{zl(!0)},2e3)}function lp(e){let t=e.querySelector("#mount"),n=()=>{_b()},a=r=>{r&&r.target&&r.target.id==="immersive-translate-popup-overlay"&&n()};(async()=>{let r=await Lt();lu(V(x3,{lang:r.interfaceLanguage,fallbackLang:"zh-CN",translations:Gg,children:V("div",{onClick:a,id:"immersive-translate-popup-overlay",class:"immersive-translate-popup-overlay",children:V("div",{class:"immersive-translate-popup-wrapper",style:Bb(),children:V(Pl,{onClose:n})})})}),t)})().then(()=>{Sn.style.display="none",Ei.style.display="block"})}function Bb(){let e=Nl(),t=e.height,{position:n,top:a,left:r}=Ft,u={position:"fixed"},o=300,i=300,s=100;return yc()&&(n=_l.position,a=_l.top),n==="right"||n==="left"?(u.top=a-s,u.top+o>=t?(u.bottom=30,delete u.top):u.top<=10&&(u.top=10),n==="right"?u.right=0:n==="left"&&(u.left=0)):(n==="top"||n==="bottom")&&(u.left=r-s,u.left+i>=e.width?(u.right=0,delete u.left):u.left<=10&&(u.left=0),n==="top"?u.top=0:n==="bottom"&&(u.bottom=0)),u}function Nl(){return{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}function mp(e){dp=Da.getAttribute("style"),bi=e.pageX,yi=e.pageY,br&&clearTimeout(br),xi=!1,Sn.style.opacity="1",Sn.style.transform="none",cp=Sn.getAttribute("style"),globalThis.addEventListener("mousemove",jl),globalThis.addEventListener("mouseup",Ul),globalThis.addEventListener("touchmove",gp),globalThis.addEventListener("touchend",Ti),globalThis.addEventListener("touchcancel",Ti)}function Rb(e){e.preventDefault&&e.preventDefault(),mp(e.changedTouches[0])}function gp(e){jl(e.changedTouches[0])}function Ti(e){e.preventDefault&&e.preventDefault(),Ul(e.changedTouches[0])}function jl(e){e.preventDefault&&e.preventDefault(),xi=!0,Da.setAttribute("style",`left:${e.clientX}px;top:${e.clientY}px;transform:scale(1.6);`)}function Ul(e){e.preventDefault&&e.preventDefault(),Ib(),br&&clearTimeout(br),bi=bi||0,yi=yi||0;let t=Math.abs(e.pageX-bi),n=Math.abs(e.pageY-yi);t{zl(!0)},2e3)}function zl(e=!1){Sn.style.opacity="0.4";let t="";Ft.position==="left"?t="translateX(-40%)":Ft.position==="right"?t="translateX(40%)":Ft.position==="top"?t="translateY(-40%)":Ft.position==="bottom"&&(t="translateY(40%)"),Sn.style.transform=t,e&&(Sn.style.transition="transform 0.2s ease-in-out, opacity 0.2s ease-in-out")}function Ib(){globalThis.removeEventListener("mousemove",jl),globalThis.removeEventListener("mouseup",Ul),globalThis.removeEventListener("touchmove",gp),globalThis.removeEventListener("touchend",Ti),globalThis.removeEventListener("touchcancel",Ti)}function Ol(e){let t=Nb(e);return Object.keys(t).map(n=>typeof t[n]=="number"?`${n}:${t[n]}px;`:"").join("")}function Nb(e){let{position:t,...n}=e,a=Nl(),r={};return t==="left"?(r.left=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="right"?(r.right=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="top"?(r.top=0,n.left>a.width?r.left=a.width-100:r.left=n.left):t==="bottom"&&(r.bottom=0,n.left>a.width?r.left=a.width-100:r.left=n.left),r}var Ci=!1;async function pp(e){if(!e){let t=await Lt(),n={url:globalThis.location.href,config:t};e=await ln(n)}e.config.debug&&j.setLevel("debug"),e.isTranslateExcludeUrl?j.debug("detect exclude url, do not inject anything."):(Kn().any||fe())&&e.rule.isShowUserscriptPagePopup&&(Ci||(Ci=!0,Il().catch(t=>{j.error("init popup error",t)})))}async function fp(){Ci||(Ci=!0,Il().catch(e=>{j.error("init popup error",e)}))}var hp=!1,Ep=[()=>{Ye.unbind()}],ql=[...Ep],jb=bt(async()=>{await Ga()},50),Ub=bt(async()=>{await ho()},50),zb=bt(async()=>{await xo()},50),Hb=bt(async()=>{await yo()},50),Tp=bt(e=>{mr({method:e,data:{trigger:"userscript_menu"}})},50),qb=bt(()=>{lo();let e=new CustomEvent($n,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},200),Wb=bt(()=>{po();let e=new CustomEvent($n,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},200),$b=bt(()=>{mo();let e=new CustomEvent($n,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},200);function Kb(e,t){let n=e.document;if(hp)return;if(hp=!0,fe()||Sd(),n.addEventListener("securitypolicyviolation",ry),document.addEventListener(ge+"DocumentMessageUser",vp),document.addEventListener(ge+"DocumentMessageUpdateUser",Ap),document.addEventListener(ge+"ChangeSuccessService",kp.bind(null,t)),document.addEventListener(Bu,ty.bind(null,t)),n.addEventListener(ge+"EbookLoaded",ay),n.addEventListener(u4,ny),n.addEventListener(o4,uy.bind(null,t)),n.addEventListener("click",r=>{Jb(r,t)}),fe()&&(globalThis.top!=globalThis.self?e.addEventListener("message",Vb,!1):n.addEventListener($n,Gb)),globalThis.top===globalThis.self){let r=ta.rootIframe(zu);r.handleAsk("getRateLimitDelay",nm),r.handleAsk("throttleRequest",zm)}}function fu(e,t){oy(),Kb(t,e);let n=t.document,a=Yb.bind(null,e);e.rule.fingerCountToToggleTranslagePageWhenTouching>=2&&n.addEventListener("touchstart",a),ql.push(()=>{n.removeEventListener("touchstart",a)}),fe()&&globalThis.top===globalThis.self&&(V0(e.config),iy(e.config)),Rt()&&V0(e.config)}function Gb(e){fp()}function Vb(e){let t=e;t&&t.data&&t.data.payload&&t.data.author===Pu&&Ka(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})}function Yb(e,t){let n=t;n.touches.length==e.rule.fingerCountToToggleTranslagePageWhenTouching?qb():n.touches.length===e.rule.fingerCountToToggleTranslationMaskWhenTouching?$b():n.touches.length===e.rule.fingerCountToToggleTranslagePageOnlyTranslationWhenTouching&&Wb()}function Jb(e,t){let n=e.target;if(!n||!n.getAttribute){Hl(n);return}let a=n.getAttribute("data-immersive-translate-event");a&&We(a,[{name:a}],{...t,sourceLanguage:"none"});let r=n.getAttribute(`data-${J}-action`);if(r)if(r==="retry"){e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),co(),Hl(n,!0);return}else if(r=="toast-error"){let u=n.getAttribute(`data-${J}-tooltip-text`);Wl(wp.bind(null,t,u||""))}else r=="close-search"&&(e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),Wl(Xb.bind(null,t)));Hl(n)}async function bp(e=!1){let t=document.querySelector(`.${J}-search-recomend`);if(!t||(t.remove(),!e))return;let n=await on();n.generalRule||(n.generalRule={}),n.generalRule.enableSearchEnhancement=!1,await un(n)}async function Qb(){let e=await on(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,a=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(a=e.translationUrlPattern.matches||[]),!n&&a.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await un(e)}async function Zb(){let e=await on(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await un(e)}var yp=0;function Wl(e){let t=Date.now();if(t-yp<2e3)return;yp=t;let n=`${J}-modal`,a=document.querySelector(`.${n}`);if(a?.style.display=="block")return;let r=`${J}-modal-title`,u=`${J}-modal-body`,o=`${J}-modal-footer`;if(a){let i=a.querySelector(`.${r}`),s=a.querySelector(`.${o}`),c=a.querySelector(`.${u}`);e(a,i,c,s)}else{a=document.createElement("div"),a.className=n+" notranslate",a.id=n;let i=document.createElement("div");i.className=J+"-modal-content notranslate",a.appendChild(i);let s=document.createElement("span");s.textContent="\xD7",s.className=J+"-close",i.appendChild(s);let c=document.createElement("div");c.className=r+" notranslate",i.appendChild(c);let l=document.createElement("div");l.className=u+" notranslate",i.appendChild(l);let g=document.createElement("div");g.className=o,i.appendChild(g),document.body.appendChild(a),s.onclick=function(){a.style.display="none"},window.onclick=function(p){p.target==a&&(a.style.display="none")},e(a,c,l,g)}setTimeout(()=>{ey()},100)}function Xb(e,t,n,a,r){let u=Cp.bind(null,e);n.innerHTML=`
${ii} ${u("disableConfirm")}
`,a.innerHTML="";let o=document.querySelector(`div[data-${J}-cancel-desc]`),i=document.createElement("p");i.innerHTML=o?_e.sanitize(o.textContent||""):_e.sanitize(u("searchEnhancementNotes")),i.style.cssText="margin-bottom:12px",a.appendChild(i);let s=[{id:"enable-search-enhancement",value:"enable",text:u("enableSearchEnhancement")},{id:"disable-once",value:"once",text:u("disableOnce")},{id:"disable-global",value:"global",text:u("disableGlobal")}];for(let f=0;f${u("option")}`})),a.appendChild(c);let l=a.querySelector(`.${J}-open-enhancement`);l&&(l.onclick=function(){zd(!0)});let g=document.createElement("button");g.innerText=u("closeModal"),g.className=`${J}-btn ${J}-cancel-btn`;let p=document.createElement("button");p.className=`${J}-btn`,p.innerText=u("saveSettings"),r.innerHTML="",r.appendChild(g),r.appendChild(p),g.onclick=function(){t.style.display="none"},p.onclick=function(){let f=a.getElementsByTagName("input"),d="";for(let b=0;b
1. \u5207\u6362\u5230 ${u} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458`:i+=`

\u5982\u679C\u60A8\u6709\u7591\u95EE\uFF0C\u8BF7\u8054\u7CFB support@immersivetranslate.com`,Wl(wp.bind(null,e,i))}catch(a){j.warn("parse message error",a)}}function ny(e){let t=e;if(j.debug("receive third party message",t),t&&t.detail)try{let n=JSON.parse(t.detail);n&&n.type&&(n.type==="retryFailedParagraphs"?sy({method:"retryFailedParagraphs"}):n.type==="updateCommands"?Eo(n.data):n.type==="toggleEnableDefaultAlwaysTranslatedUrls"?Qb():n.type==="toggleEnableInputTranslation"?Zb():Tp(n.type))}catch(n){j.warn("parse message error",n)}}function ay(e){setTimeout(()=>{wi()},10)}function ry(e){Ee.HAS_CSP_ERROR="1"}function uy(e,t){let n=event.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&We(n.name,[{name:n.name}],{...e})}function oy(){ql.forEach(e=>{e()}),ql=Ep}function iy(e){if(fe()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=Ju.commands,r=[...Object.keys(t).filter(u=>u==="toggleTranslatePage").map(u=>{let o=t[u].description,i=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(i=dr(`browser.${o.slice(6,-2)}`,e.interfaceLanguage)),{id:u,title:i}}),{id:rs,title:dr("browser.openEbookViewer",e.interfaceLanguage),key:"e"},{id:us,title:dr("browser.openEbookBuilder",e.interfaceLanguage),key:"m"},{id:ns,title:dr("browser.openOptionsPage",e.interfaceLanguage),key:"o"},{id:as,title:dr("browser.openAboutPage",e.interfaceLanguage),key:"a"}];for(let u of r)GM.registerMenuCommand(u.title,()=>{u.id===ns?jb():u.id===as?Ub():u.id===us?zb():u.id===rs?Hb():Tp(u.id)},u.key)}}function sy(e){Ka(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{j.error("send content message request failed",e,n)});let t=new CustomEvent($n,{detail:e});globalThis.document.dispatchEvent(t)}m();var La={};async function $l(){let t=[...document.querySelectorAll(".source-text")].map(a=>a.textContent).join(""),n=await Qe({text:t,minLength:200,pageLangs:[ba(),"en"]});return an(n),n}async function Sp(e){Dt("Translating");let t=pt(),n=uo(),a=[...document.querySelectorAll(".source-text")];if(No(e,t))return;let r=a.filter(u=>u.innerText?.trim()).map((u,o)=>{let i=u.parentElement?.parentElement?.querySelector(".target-text");return at(u,"id",o+""),i&&(ur(i,o)?.remove(),i.appendChild(ru(e,o))),{text:u.innerText||"",id:o,from:t,to:e.targetLanguage,url:"https://google.com",fromByClient:n}});document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await ua({sentences:r},e,(u,o,i)=>{let s=i.id,c=ur(document.body,s);if(!c)return;let l=c.parentElement;l&&(c.remove(),u?(l.innerHTML=_e.sanitize(`${u.message}`),La[s]={ok:!1,sentence:i}):o&&(l.innerHTML=_e.sanitize(o.text),La[s]={ok:!0,sentence:i}),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!u}})})))})}catch(u){throw u}finally{Dt("Translated")}}async function Dp(e){Dt("Translating"),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(La),n=[],a=[];for(let r of t){let u=La[r];if(!u.ok){let i=document.querySelector(`#error-id-${r}`);if(i){let s=i.parentElement;i.remove(),s&&(delete La[r],s.appendChild(ru(e,r)),a.push(u.sentence))}}}try{await ua({sentences:a},e,(r,u,o)=>{let i=o.id,s=ur(document.body,i);if(!s)return;let c=s.parentElement;c&&(s.remove(),r?(c.innerHTML=_e.sanitize(`${r.message}`),La[i]={ok:!1,sentence:o}):u&&(c.innerHTML=_e.sanitize(u.text),La[i]={ok:!0,sentence:o}),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!r}})})))})}catch(r){throw r}finally{Dt("Translated")}}function Kl(){Dt("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}m();var Gl={};async function Lp(){let e=[...document.querySelectorAll("iframe")],t="";for(let a of e){let r=a.contentDocument;if(!r)continue;let u=r.body;if(u&&(t=t+u.innerText||"",t.length>1e3))break}let n=await Qe({text:t,pageLangs:["en"]});return an(n),n}async function Mp(e){Dt("Translating"),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(Gl),n=[];for(let a of t){let r=Gl[a];if(r.error){let o=r.commonAncestorContainer.querySelector(`[${Iu}='${a}']`);o&&o.remove(),n.push(r)}}try{await qo(n,e,e.config.translationMode)}catch{}finally{Dt("Translated")}}function Fp(){let e=[...document.querySelectorAll("iframe")];for(let t of e){let n=t.contentDocument;if(!n)continue;let a=n.querySelectorAll("."+$t);for(let r of a)r.remove()}Dt("Original")}async function Pp(e){Dt("Translating");let t=hn(),n=[...document.querySelectorAll("iframe")],a=[],r=[];for(let i of n){let s=i.contentDocument;if(!s)continue;ir(s,e);let c=s.body;if(!c)continue;let l=cn(e);l.isModifyImage=!1,la({id:t,container:c,filterRule:l,onParagraph:g=>{a.push(g)}})}let u=Io(e.config.translationServices[e.translationService]?.placeholderDelimiters),o=1;for(let i of a){let s=Uo(i.flatNodes,{isPreWhitespace:i.isPreWhitespace||!1,delimiters:u,stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(l=>l.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)});if(!s)continue;i.variables=s?.variables||{},i.text=s?.text,i.id=(o++).toString();let c=await q0(i,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:u,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});c&&(r.push(c),Gl[c.id]=c)}a=[],document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await qo(r,e,e.config.translationMode)}catch{}finally{Dt("Translated")}}m();var ly=new AbortController,{signal:cy}=ly,Zl=0,Xl=0,Vl=!1,Yl=0,hu=!1,Ma,_p=0,Fa=[];function vi(e,t){dy();let n=e,a=n.config,r=a.generalRule.mouseHoverHoldKey==="Off",u=a.generalRule.mouseHoverHoldKey==="Auto",o=bt(l=>{if(Vl==!1&&Math.abs(l.clientX-Zl)+Math.abs(l.clientY-Xl)>3&&(Yl<2?Yl+=1:Vl=!0),Zl=l.clientX,Xl=l.clientY,u||hu&&!Ma){let g=Np(n.rule,t);if(g){if(ec(g))return;Rp(n,g)}}},u?700:300),i=l=>{let g=l.target;ec(g)||Rp(n)},s=l=>{let g=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=Ye.getPressedKeyCodes();if(p.length>1&&Ye[g]&&(_p=Date.now(),hu=!1),p.length===1&&Ye[g]){let f=Date.now();hu=!0,Ma&&clearTimeout(Ma),Ma=setTimeout(()=>{let d=_p-f;d>0&&d<=150?hu=!1:i(l),Ma=void 0},150)}};if(Fa.push(()=>{Ma&&clearTimeout(Ma)}),r)return;Jl("mousemove",o,t),Fa.push(()=>{t.removeEventListener("mousemove",o)});function c(){Vl=!1,Yl=0,o.cancel()}if(u)Jl("blur",c,t),Fa.push(()=>{t.removeEventListener("blur",c)});else{let l=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",g=["ctrl","alt","shift","cmd","command","option","control"];Jl("keyup",Bp,t),Fa.push(()=>{t.removeEventListener("keyup",Bp)}),g.includes(l)?Ye("*","mouseHover",s):Ye(a.generalRule.mouseHoverHoldKey,"mouseHover",i),Ye.setScope("mouseHover"),Fa.push(()=>{Ye.deleteScope("mouseHover")})}}function dy(){Fa.forEach(e=>e()),Fa=[]}function Bp(e){hu=!1}function Jl(e,t,n=window){return n.addEventListener(e,t,{signal:cy})}function Rp(e,t,n=window){if(t=t||Np(e.rule,n),!t){j.debug("can not find selection part!");return}if(ec(t)){j.debug("exclude dom");return}Hg(e,t);let a=Ko();a?.currentUrl!==window.location.href&&(Nn(),K0(e)),a&&(a.setupMouseHoverListener=vi);let r=cn(e);r.excludeSelectors=[],r.selectors=[];let u=!1;la({id:a.id,container:t,filterRule:r,force:!0,onParagraph:o=>{ou(a,o,!0).then(i=>{if(i&&!u){u=!0;let s=Date.now();je(s4,s),We("mouse_hover_translate",[{name:"mouse_hover_translate"}],{...e,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function Np(e,t){return my(Zl,Xl,e,t)}function my(e,t,n,a){let r=mg(e,t,n,a);if(r==null)return;let u=()=>{let s=a.document.elementFromPoint(e,t);if(!s)return;let c=gg(s,e,t);return c===s?s.nodeName==="BUTTON"?s:void 0:Ip(c,n)},o=()=>{try{r.setStartBefore(r.startContainer),r.setEndAfter(r.startContainer)}catch(c){j.debug("get mouse over word fail",c)}let s=r.getBoundingClientRect();if(!(s.left>e||s.rightt||s.bottomn[l]=[l,...n[l]||[]]);let a=t.inputStartingTriggerKeyAlias[t.inputStartingTriggerKey]||[];a.includes(t.inputStartingTriggerKey)||a.unshift(t.inputStartingTriggerKey),n[t.inputTargetLanguage]=[...a,...n[t.inputTargetLanguage]];let r=t.inputTrailingTriggerKeyTimeout;Kn().any&&(r=t.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:t.inputTrailingTriggerKeyRepeatTimes,triggerKey:t.inputTrailingTriggerKey,triggerTimeout:r,codePrefix:t.inputStartingTriggerKey,codeAlias:n,flatAlias:Object.values(n).flat(),codePrefixAlias:t.inputStartingTriggerKeyAlias},o=0,i=Date.now();Ai&&self.removeEventListener("keydown",Ai),Ai=s,self.addEventListener("keydown",Ai);function s(l){if(yr||ki===!1)return;let g=l,p=g.target||g.srcElement,f=p?.tagName;(p?.isContentEditable||f=="INPUT"||f=="SELECT"||f=="TEXTAREA")&&(My(l,u.triggerKey,u.codePrefixAlias)?c(l):o=0)}async function c(l){Date.now()-i=u.triggerTimes&&by()&&(o=0,hy(l,e,u))}Fy(e)}function gy({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let a=[],r=n[e]||[];r.includes(e)||r.unshift(e);for(let u of r){let o=t.map(i=>{let s=u+i;return r.includes(i)||(s+=" "),s});a.push(...o)}return new RegExp(a.join("|"))}function Up(e,t){for(let[n,a]of Object.entries(t))if(a.includes(e))return n;return""}var xr;function py(e){let t=e.parentElement;if(!t)return;xr=document.createElement("div"),xr.className=J+"-input",xr.innerHTML=`
`,t.appendChild(xr);let n=t,a=!1;do{let r=getComputedStyle(n).position;if(["fixed","absolute","relative"].includes(r)){a=!0;break}n=n.parentElement}while(n);if(n=t,!a)do{if(getComputedStyle(n).position==="static"){n.style.position="relative";break}n=n?.parentElement||null}while(n)}function fy(){xr&&xr.remove()}async function hy(e,t,n){if(!yr)try{let p=function(){i=t.config.inputTargetLanguage;let d=o.split(" ")[0];d&&d[0]&&(d=d[0].toLowerCase()+d.slice(1)),d.trim()&&n.flatAlias.includes(d)?(i=Up(d,n.codeAlias),u=o.slice(d.length+1)):u=o},f=function(){i="";let d=gy(n),b=o.split(d);if(b.length<2)return;if(u=b[b.length-1],r=b[0],b.length>2){let h=o.lastIndexOf(u),A=o.slice(0,h).lastIndexOf(b[b.length-2]);r=o.slice(0,A+b[b.length-2].length)}if(r.endsWith(n.codePrefix))return;let C=o.slice(r.length+1,o.indexOf(u)).trim();if(i=Up(C,n.codeAlias),!i){j.warn("not found alias",C);return}},a=document.activeElement;yr=!0;let r="",u="",o=Er(a)||"",i=t.config.inputTargetLanguage;n.codePrefix==="none"?p():(f(),!i&&t.config.enableInputTranslationWithoutTriggerKey&&p());let s=xy(u,n),c=await Qe({text:s,pageLangs:["en"]});j.debug("translateContent",s,c);let l={text:s||"",id:0,from:c,to:i,url:"https://google.com",fromByClient:c};if(!l.text)return;if(t.config.isShowInputTranslationConsent&&!jp){jp=!0;let d=await Py(t);if(e.target&&e.target.focus(),d==="open_settings"){Ga(!0,"#input");return}else if(d==="open_learn_more"){bo("https://immersivetranslate.com/docs/input/");return}else if(d==="disable_once"||d==="disable_forever"){if(ki=!1,d==="disable_forever"){let b=await on();b.enableInputTranslation=!1,b.isShowInputTranslationConsent=!1,await un(b)}else if(d==="disable_once"){let b=await on();b.isShowInputTranslationConsent=!1,await un(b)}return}else if(d==="close_disable_once"||d==="close_disable_forever"){if(ki=!1,d==="close_disable_forever"){let b=await on();b.enableInputTranslation=!1,b.isShowInputTranslationConsent=!1,await un(b)}return}else if(d==="enable"){let b=await on();b.enableInputTranslation=!0,b.isShowInputTranslationConsent=!1,await un(b)}else if(d==="close_enable"){let b=await on();b.enableInputTranslation=!0,await un(b)}}py(a),je(os,Date.now());let g=await Aa(l,{...t,translationService:t.inputTranslationService});Ly(t),Dy(a,r+g.text),yr=!1}catch(a){throw yr=!1,a}finally{yr=!1,fy()}}function by(){let e=document.activeElement;if(!e)return!1;if(Si(e)){let t=e.selectionStart||0,n=e.value.length,r=e.value.split(` -`).reverse()[0].trim(),u=n<=t;return j.debug("cursorPosition",t,"textLength",n),j.debug("input isTail",u,"tailHasText",r),u&&!!r}else{let t=window.getSelection();if(!t)return j.debug("No active selection found."),!1;if(t.rangeCount>0){let n=t.getRangeAt(0),a=n.startContainer;if(a.nodeType===Node.TEXT_NODE){let r=yy(a,e);j.debug("Current text node:",a.textContent),j.debug("Cursor position within text node:",n.startOffset);let u=a.textContent?.length===n.startOffset&&r,o=a.textContent?.trim();return j.debug("editdiv isTail",u,"tailHasText",o),u&&!!o}else j.debug("Cursor is not within a text node.")}}return!1}function yy(e,t){let n;function a(r){if(r.nodeType===Node.TEXT_NODE)n=r;else for(let u of r.childNodes)a(u)}return a(t),n==e}function xy(e,t){let{triggerTimes:n,triggerKey:a}=t,r=0,u=" ";a.length==1?(r=n,u=a):a.toLowerCase()=="space"&&(r=n);let o=e.length;for(let i=e.length-1;i>=e.length-r;i--){if([10,8629].includes(e[i].charCodeAt(0))){o--;continue}if(![...t.codePrefixAlias[a]||[],u].includes(e[i]))break;o--}return e.length-o<3&&[".","\u3002"].includes(e[o-1])&&o--,e.slice(0,o)}function Ey(e,t){let n=t.innerHTML,a=Er(t);return{html:n.replace(a,e),text:e}}function zp(e,t,n=!1){let a=Er(t);return n?a.trim().endsWith(e.text.trim()):a.trim()==e.text.trim()}function Er(e){return e.value||e.innerText||e.textContent}async function Pa(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function Ty(e,t,n){await Pa(10);let a=new DataTransfer;e.forEach(r=>{r==="plain"&&a.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:a,bubbles:!0,cancelable:!0})),a.clearData(),await Pa(10)}async function Cy(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await Pa(10))}async function wy(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await Pa(20),(t.value||t.value==="")&&(t.value=e.text)}async function vy(e,t){Si(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await Pa(20))}var Ay=[Ty.bind(null,["plain"])];function ky(e){let t;Si(e)?t=new InputEvent("beforeinput",{bubbles:!0,cancelable:!0,inputType:"deleteContent"}):t=new KeyboardEvent("keydown",{bubbles:!0,cancelable:!0,keyCode:8,which:8,location:0,key:"Backspace"}),e.dispatchEvent(t)}function Si(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function Sy(e){if(Si(e))return;e.focus();let t=window.getSelection();if(!t)return;let n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}async function Dy(e,t){await Sy(e),await Pa(50);let n=Ey(t,e);ky(e),j.debug("clearContent",Er(e)),await Pa(50);for(let a of[...Ay,wy,vy,Cy])if(await a(n,e),j.debug("setContent",a.name,zp(n,e),Er(e),n),zp(n,e))break}function Ly(e){We("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage}}],e)}function My(e,t,n){let a="";e&&e.code&&(a=e.code.toLowerCase());let r="";e&&e.key&&(r=e.key.toLowerCase());let u=e.keyCode,o=n[t]||[];return u===229&&t!=="space"?!1:!!(o.includes(a)||o.includes(r)||a===t||r===t)}async function Fy(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await St(t,"")||Number(await St(os,0))>0)return;let r=e.rule.inputTutorialsSelectors,u=e.rule.inputTutorialsText;if((r?.length||0)>0&&u)for(let o=0;o{By()},100),new Promise(c=>{let l=c;if(u){let T=u.querySelector(`.${n}`),k=u.querySelector(`.${r}`),v=u.querySelector(`.${a}`)}else{u=document.createElement("div"),u.className=t+" notranslate",u.id=t;let T=document.createElement("div");T.className=J+"-modal-content notranslate",u.appendChild(T);let k=document.createElement("span");k.textContent="\xD7",k.className=J+"-close",T.appendChild(k),o=document.createElement("div"),o.className=n+" notranslate",T.appendChild(o),s=document.createElement("div"),s.className=a+" notranslate",T.appendChild(s),i=document.createElement("div"),i.className=r,T.appendChild(i),document.body.appendChild(u),k.onclick=function(){S(),c("close")},window.onclick=function(v){v.target==u&&(u.style.display="none",c("close"))}}document.addEventListener("keydown",y);let g=_y.bind(null,e);o.innerHTML=`
${ii} ${g("modalEnableInputTranslationTitle")}
`,s.innerHTML="";let p=document.createElement("p");p.innerHTML=g("modalEnableInputTranslationDesc",{1:"https://immersivetranslate.com/docs/input/"}),p.style.cssText="margin-bottom:12px",s.appendChild(p);let f=document.createElement("div");f.style.cssText="margin-bottom: 12px;",f.innerHTML=_e.sanitize(g("disableInputTranslationTips",{option:`${g("option")}`,learnMore:`${g("learnMore")}`})),s.appendChild(f);let d=[{id:"enable-search-enhancement",value:"enable",text:g("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:g("disableOnce")},{id:"disable-global",value:"global",text:g("disableGlobal")}];for(let T=0;T{ua({sentences:r},{...e,translationService:"google"},(s,c,l)=>{if(s)return o([]);let g=c?.id||0,p=n[g];p&&p.className==J+"-search-title-wrapper"&&(p.innerHTML+=_e.sanitize(`
${c?.text}
`,{ADD_ATTR:["target"]}))})})}function Di(e,t,n){t&&We(t.key,[{name:t.key}],{...e,sourceLanguage:t.sourceLanguage||n})}function nc(e,t,n,a){let r=n.querySelectorAll('[translate="true"]');return Ry(e,t,[...r],a),n}async function ac(e,t){let a=(await oe({url:Oy(e),method:"GET",responseType:"raw",headers:{"cache-control":"no-cache","content-type":"application/xml","Sec-Fetch-Site":"none",accept:"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}})).body,u=new DOMParser().parseFromString(a,"text/xml"),o=[],i=u.querySelectorAll("item");for(let s=0;s${e.cancelDescription}
`:""} +`+t.rule.additionalInjectedCss)),i&&ia(e,i,"immersive-translate-dynamic-injected-css")}m();async function Mg(){let e="auto",t=[ba(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await Qe({text:tr(document.body),pageLangs:t})),e}m();m();function Fg(e,t){return[e,!e||e.endsWith("/")?"":"/",t,".json"].join("")}function _0(e,t){let n=e;return t&&Object.keys(t).forEach(a=>{let r=t[a];if(r===void 0)return;let u=s9(a);if(typeof r=="object"||u){let o=r;u&&typeof o=="string"&&(o={tag:"a",href:o});let i=`<${a}>`,s=n.indexOf(i);if(s!==-1){let c=o.tag||"a",l=n.indexOf(``);if(l!==-1){let g=n.substring(s+i.length,l),p=Object.keys(o).filter(f=>f!=="tag").map(f=>`${f}="${o[f]}"`).join(" ");n=n.replace(`${i}${g}`,`<${c} ${p}>${g}`)}}}else if(r){let o=new RegExp("{"+a+"}","gm");n=n.replace(o,r.toString())}}),n}function ru(e,t,n){let a=e[t];if(!a)return n;let r=n.split("."),u="";do{u+=r.shift();let o=a[u];o!==void 0&&(typeof o=="object"||!r.length)?(a=o,u=""):r.length?u+=".":a=n}while(r.length);return a}function In(e,t,n,a,r){if(!e.hasOwnProperty(n))return t;let u=ru(e,n,t);return u===t&&n!==a&&(u=ru(e,a,t)),_0(u,r)}function s9(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}m();m();function B0(e,t,n=[],a){let r=["notranslate"];return a&&r.push(b4),e&&(r.push(`${J}-target-translation-theme-${e}`),t?r.push(`${ls}-theme-${e}`):r.push(`${ss}-theme-${e}`)),n.length>0&&r.push(...n),t?r.push(ls):r.push(ss),r}function R0(e){let t=["notranslate",f4];return e&&t.push(`${J}-target-translation-theme-${e}-inner`),t}function Pg(e,t,n){let{rule:a,state:r}=n,{translationTheme:u}=r,{variables:o,isVertical:i}=e;o=o||[];let{text:s}=t,{wrapperPrefix:c,wrapperSuffix:l}=a,g=ar(n),p="afterend",f=g[0],d=g[1],b=`${f}(\\d+)${d}`,C=new RegExp(b,"g"),h=_e.sanitize(s);o.length>0&&(h=h.replace(C,R=>{let y=h.indexOf(R),T=h[y-1]===" ",k=h[y+R.length]===" ",v=R.slice(g[0].length,-g[1].length),E=Number(v);if(isNaN(E))return R;let B=o[Number(E)];if(B&&B.type==="element"){let P=B.value.outerHTML;return T||(P=" "+P),k||(P=P+" "),P}else j.error("variable type not supported",B,R);return R}));let A=B0(u,e.inline,a.translationClasses||[],e.preWhitespace);i&&A.push(h4);let S=R0(u),U="";return a.translationBlockStyle&&(U=`style="${a.translationBlockStyle}"`),h=`<${n.rule.targetWrapperTag} ${U} class="${A.join(" ")}" ${An}="1"><${a.targetWrapperTag} class="${S.join(" ")}" ${An}="1">${h}`,e.inline||(c==="smart"?h=`
${h}`:h=`${c}${h}`),e.inline&&(c!=="smart"?h=`${c}${h}`:h=`<${a.targetWrapperTag} class="notranslate" ${An}="1"> ${h}`),l==="smart"?h=`${h}`:h=`${h}${l}`,{html:h,position:p}}function Uo(e,t){let n=null,{stayOriginalSelectors:a,delimiters:r,isPreWhitespace:u}=t,o=[],i={};for(let s=0;s2&&(C=`<${r[2]}${b}>`),i[b]=c,o.push({text:C,type:"variable"})}else o.push({text:c.textContent||"",type:"text"});else{let d=c.textContent||"";g&&(d=sa(O0(c))),o.push({text:d,type:"text"})}else if(c.nodeType===Node.ELEMENT_NODE)if(c&&Mt(c,a)){let b=Object.keys(i).length,C=`${r[0]}${b}${r[1]}`;r.length>2&&(C=`<${r[2]}${b}>`),i[b]=c;let h=I0(o).endsWith(" ")?" ":"",A=sa(c.innerText||c.textContent),S=sa(c.nextSibling).startsWith(" ")?" ":"",U=nu(h+A+S),R=U[0]+C+U[1];if(h===" ")R=R.trimStart();else if(!R.startsWith(" ")){let y=nu(c.previousSibling)[1];y===""&&(y=" "),R=y+R}o.push({text:R,type:"variable"})}else{let d=I0(o).endsWith(" ")?" ":"",b=sa(c.innerText||c.textContent);g&&(b=sa(O0(c)));let C=sa(c.nextSibling).startsWith(" ")?" ":"",h=nu(d+b+C),A=h[0]+(c.innerText?.trim()||c.textContent?.trim()||"")+h[1];if(d===" ")A=A.trimStart();else{let S=nu(c.previousSibling)[1];S===""&&(c.nodeName==="A"||c.nodeName==="CODE")&&(S=" "),A=S+A}o.push({text:A,type:"text"})}else{let d=I0(o).endsWith(" ")?" ":"",b="";c.textContent&&(b=sa(O0(c))),d===" "&&(b=b.trimStart()),o.push({text:b,type:"text"})}}if(o&&o.length>0){let s="";for(let c=0;c0&&(g=o[c-1].text),c2){let l=c[2];return l9({delimiterTag:l,targetText:e.targetText,inline:r,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:a}).html}else{let l=Pg(s,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return l.html}}function O0(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function l9(e){let{delimiterTag:t,inline:n,translationClasses:a,targetWrapperTag:r,wrapperPrefix:u,variables:o,preWhitespace:i,wrapperSuffix:s,translationTheme:c,translationBlockStyle:l}=e;o=o||[];let g=e.targetText;g=_e.sanitize(g);let p=g,f=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),d=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(f,A=>{let S=p.indexOf(A),U=p[S-1]===" ",R=p[S+A.length]===" ",y=A.match(d);if(!y)return A;let T=y[1],k=Number(T);if(isNaN(k))return A;let v=o[Number(k)];if(v&&v.type==="element"){let E=v.value.outerHTML;return U||(E=" "+E),R||(E=E+" "),E}else if(v&&v.type==="text"){let E=v.value;return U||(E=" "+E),R||(E=E+" "),E}else j.error("variable type not supported",v,A);return A}));let b=B0(c,n,a||[],i),C=R0(c),h="";return l&&(h=`style="${l}"`),p=`<${r} ${h} class="${b.join(" ")}" ${An}="1"><${r} class="${C.join(" ")}" ${An}="1">${p}`,n||(u==="smart"?p=`
${p}`:p=`${u}${p}`),n&&(u!=="smart"?p=`${u}${p}`:p=`<${r} class="notranslate" ${An}="1"> ${p}`),s==="smart"?p=`${p}`:p=`${p}${s}`,{html:p,position:"afterend"}}function I0(e){let t=e[e.length-1];return t?t.text:""}function cn(e){let t=e.rule.selectors,n=e.rule.excludeTags,a=e.rule.additionalExcludeTags,r=e.rule.excludeSelectors,u=e.rule.additionalExcludeSelectors;return e.state.translationArea==="body"&&(t=[],r=[]),{globalStyles:e.rule.globalStyles,globalAttributes:e.rule.globalAttributes,selectors:t,skipEditableCheck:e.rule.skipEditableCheck,lineBreakMaxTextCount:e.rule.lineBreakMaxTextCount,isTransformPreTagNewLine:e.rule.isTransformPreTagNewLine,excludeSelectors:n.concat(a).map(i=>i.toLowerCase()).filter(i=>i!=="code"&&i!=="img").concat(r).concat(u),blockSelectors:e.rule.allBlockTags.map(i=>i.toLowerCase()).concat(e.rule.extraBlockSelectors),extraBlockSelectors:e.rule.extraBlockSelectors,extraInlineSelectors:e.rule.extraInlineSelectors.concat(e.rule.additionalInlineSelectors),stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(i=>i.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)}}var c9={sanitize:e=>e};function Ho(e,t){e.interruptEffectDOM||(e.walkContainer({id:e.id,container:t,filterRule:cn(e.ctx),onParagraph:uu.bind(null,e),onFrame:n=>{j0(e,n,!0)},onIgnoreElement:n=>{e.ignoreResizeObserver?.observe(n)}}),Ia&&at(t,"consumeContainer",e.id))}function j0(e,t,n){try{if(e.injectCssToDocument(t,e.ctx),t instanceof HTMLIFrameElement){if(!rr(t))return;j.debug("onFrame fragment",t);let a=t.contentWindow?.document.body;a&&(lr(a,e,n),e.dynamicContainerObserver?.observe(a,{childList:!0,subtree:!0}))}else j.debug("onFrame shadowRoot",t.host),lr(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0})}catch{}}function lr(e,t,n=!0){let{globalStyles:a,globalAttributes:r}=cn(t.ctx),u=0;if(s(t,e,n))return;if(Tn(e)&&i(e)){o(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,l=>(Tn(l)&&(a&&D0(l,a),r&&M0(l,r)),s(t,l,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(zt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode();){zt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let l=c.currentNode;if(i(l))for(o(l);;){if(c.nextSibling()){let g=c.currentNode;if(zt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),i(g)){o(g);continue}else break}if(!c.parentNode())return}}}catch{}if(u==0&&e instanceof HTMLElement){o(e);return}return t.observeContainers;function o(c){zt.clearMark(c),u++,t.immediateTranslateCapacity>=0?Ho(t,c):(Ia&&at(c,"observeContainer",t.id),t.containerVisibleObserver?.observe(c))}function i(c){let l=c.nodeName.toLowerCase();if(c.shadowRoot)return j0(t,c.shadowRoot,n),!1;if(l==="iframe")return j0(t,c,n),!1;if(["script","#document-fragment","img"].includes(l))return!1;let g=t.containerRule;if(g.selectors&&g.selectors?.length>0)return jo(c,g.selectors);if(g.pageHeight){let p=c.scrollHeight;if(p>0&&p0)return!0}return!1}function s(c,l,g){if(l.nodeName.toLowerCase()=="script")return l.childNodes.length==0||l.childNodes.length==1&&l.childNodes[0].nodeType==Node.TEXT_NODE;if(l.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(l.nodeType!==Node.ELEMENT_NODE||g&&zt.isMarked(l,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&l.nodeName==="PRE")return!1;let f=cn(c.ctx);return!!F0(l,{excludeSelectors:f.excludeSelectors,selectors:f.selectors,stayOriginalSelectors:f.stayOriginalSelectors})}}function U0(e,t){if(!e.targetNodes)return;let n=e.state||"original",a=e.commonAncestorContainer;if(!zt.isMarked(a,e.ctxId))return;let r=a.contains(e.rootNodes[0]),u=a.contains(e.targetNodes[0]);if(r&&u)n="dual";else if(r)n="original";else if(u)n="translation";else return;if(t!=n){e.state=t;try{if(n=="dual"&&t=="translation"&&(zo(e.rootNodes),Rg(e.commonAncestorContainer)),n=="original"&&t=="translation"){let o=N0(e.rootNodes);if(zo(e.rootNodes),Bg(o))return;sr(o,a,e.targetNodes||[]),Rg(e.commonAncestorContainer)}if(n=="translation"&&t=="dual"){let o=e.targetNodes[0];sr(o,a,e.rootNodes||[]),Og(e.commonAncestorContainer)}if(n=="original"&&t=="dual"){let o=N0(e.rootNodes);if(Bg(o))return;sr(o,a,e.targetNodes||[]),Og(e.commonAncestorContainer)}if(n=="translation"&&t=="original"){let o=N0(e.targetNodes);zo(e.targetNodes),sr(o,a,e.rootNodes||[])}n=="dual"&&t=="original"&&zo(e.targetNodes)}catch(o){j.error(o)}}}function Bg(e){return!e||!Tn(e)?!1:e.classList.contains(Kt)}function Rg(e){if(!Tn(e))return;e.querySelectorAll("font[class*=immersive-translate-target-translation]").forEach(a=>{at(a,"immersiveTranslateClassBak",a.className),a.className="notranslate immersive-translate-target-dual"});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.add("immersive-translate-state-dual")}function Og(e){if(!Tn(e))return;e.querySelectorAll("font[class*=immersive-translate-target-dual]").forEach(a=>{let r=nr(a,"immersiveTranslateClassBak");Oo(a,"immersiveTranslateClassBak"),a.className=r});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.remove("immersive-translate-state-dual")}function N0(e){return e?e[e.length-1].nextSibling:null}function zo(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function sr(e,t,n){let a=e;t&&(a?n.forEach(r=>{a.parentNode?.insertBefore(r,a)}):n.forEach(r=>{t.appendChild(r)}))}var d9=bt(H0,300);async function uu(e,t,n=!1){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||m9(t.rootNodes)||t.stepState>=2)return;t.stepState=2,Ia&&at(a,"onParseParagraph",e.id);let{ctx:r}=e,{rule:u}=r,o=ar(r),i=Uo(t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:o,stayOriginalSelectors:r.rule.stayOriginalTags.concat(r.rule.stayOriginalTags).map(c=>c.toLowerCase()).concat(r.rule.stayOriginalSelectors).concat(r.rule.additionalStayOriginalSelectors)});if(!i)return;t.variables=i?.variables||{},t.text=i?.text;let s=await q0(t,{excludeLanguages:r?.config?.translationLanguagePattern?.excludeMatches||[],targetLanguage:r.targetLanguage,noTranslateRegexp:r.rule.noTranslateRegexp,delimiters:Io(r.config.translationServices[r.translationService]?.placeholderDelimiters),minTextCount:n||r.state.translationArea==="body"?2:u.paragraphMinTextCount,minWordCount:n||r.state.translationArea==="body"?1:u.paragraphMinWordCount,isDetectParagraphLanguage:r.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:r.rule.ignoreZhCNandZhTW});if(s){if(j.debug("on paragraph",s.text,s),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(s))return;a.paragraphs.push(s),e.immediateTranslateCapacity>0||n?(g9(e,t.text),z0(e,t)):(Ia&&at(a,"observeParagraph",e.id),e.observeParagraphs.push(s),e.paragraphVisibleObserver?.observe(a))}return s}function m9(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Tn(t)&&t.classList.contains(Kt):!1}function g9(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function z0(e,t){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let n=e.autoIncreaseParagraphId++;t.id=n.toString(),e.paragraphEntities[n]=t,e.paragraphQueue.push(n.toString()),Ia&&at(t.commonAncestorContainer,"consumeParagraph",e.id),d9.call(e,e.ctx)}async function H0(e){if(this.interruptEffectDOM)return;let t=this.paragraphQueue;this.paragraphQueue=[];let n=[];for(let a=0;a0)try{await ua(a,t,(r,u,o)=>{let i=o.id,s=p9(e,i.toString());s&&f9.call(null,r,u,o,s,t,n)})}catch(r){j.error("translateCurrentQueue error",r);return}}function p9(e,t){return e.find(n=>n.id===t)}function f9(e,t,n,a,r,u){let o=!1,i=a;if(ur(i.commonAncestorContainer,n.id)?.remove(),i&&(e||!t)){e||(j.error("translate error",n,e,t),e=new Error("no response from server"));let{rule:s}=r,c=n.id,l=document.createElement(s.targetWrapperTag);at(l,d4,c.toString()),l.classList.add("notranslate",Kt,Kt+"-error"),l.setAttribute("translate","no"),l.setAttribute("lang",r.targetLanguage);let g=a.rootNodes[a.rootNodes.length-1].nextSibling;sr(g,a.commonAncestorContainer,[l]),h9(r,e);let p=e.message.replaceAll(` +`,"");if(p=p.replaceAll('"',"""),i&&(i.error=new Error(p)),l){let f=In(Ot,"retryAllParagraphs",r.config.interfaceLanguage,"zh-CN"),d=In(Ot,"errorTooltipTitle",r.config.interfaceLanguage,"zh-CN"),b=`<${s.targetWrapperTag} class="${J}-error notranslate"><${s.targetWrapperTag} class="${J}-error-wrapper">\u{1F504}  \u2753`;l.innerHTML=_e.sanitize(b)}}else if(a){if(i.error=void 0,a.targetText=t?.text||"",!(a.text?.toLocaleLowerCase()==a.targetText?.toLocaleLowerCase())){let c=_g(a,r),l=document.createElement(r.rule.targetWrapperTag);l.classList.add("notranslate",Kt),l.setAttribute("lang",r.targetLanguage),l.setAttribute(An,"1");let g=c9.sanitize(c);l.innerHTML=g,a.targetNodes=[l],U0(a,u)}o=!0}else j.error("paragraph not found",n.id);document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}))}async function q0(e,t){let{text:n}=e,a=await Qe({text:n||"",minLength:15,pageLangs:[pt(),"en"]}),{targetLanguage:r}=t;if(!yg({text:n||"",delimiters:t.delimiters,minWordCount:t.minWordCount,minTextCount:t.minTextCount,noTranslateRegexp:t.noTranslateRegexp}))return null;let o=t.excludeLanguages||[],i=ro();t.isDetectParagraphLanguage&&(i="auto");let s=pt(),c=a;c==="auto"&&!t.isDetectParagraphLanguage&&(c=s),e.languageByLocal=c,e.languageByClient=i;let l=i!=="auto"?i:c;return Xn(l,r,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW})||o.length>0&&o.some(f=>Xn(l,f,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW}))?null:e}function h9(e,t){if(t.message.startsWith("ProQuota:")){t.message=t.message.replace("ProQuota:","");let n=t.message;try{n=JSON.parse(t.message).error}catch(u){j.error(u)}t.message=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${t.message} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`;let a=e.translationService,r=a=="deepl"?"OpenAI":"Deepl";e.translationService=="openai"?a="OpenAI":e.translationService=="deepl"&&(a="Deepl"),document.dispatchEvent(new CustomEvent(_u,{detail:{type:"ProQuotaExceeded",subscriptionType:e.user?.subscription?.subscriptionType,translationService:a,anotherService:r,message:n}}))}}m();var b9=[];function Ig(e){b9.push(e)}m();function Ng(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(a){a.length>0&&(a[0].target.text.includes(Nu)||W0(e).catch(u=>{j.error("translateTitle error:",u.name,u.message,u.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var Wo="";async function W0(e){let t=document.title;if(!t||t.includes(Nu))return;Wo!==t&&(Wo=t);let n=await Qe({text:t,pageLangs:[pt(),"en"]});if(!No(e,n))try{let a=await ka({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n},e);a&&a.text&&(document.title=Wo+Nu+a.text)}catch(a){throw a}}function jg(e){e.rule.isTranslateTitle&&(document.title=Wo)}m();var $0;function Ug(e){let t=e.ctx.rule.aiRule;if(j.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=cn(e.ctx),a=n.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);n.excludeSelectors.splice(a,1);let r,u;document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(p=>{p.translated=!0,ou(e,p,n)});let o=t.streamingDelayTime||100;$0=new MutationObserver(p=>{p.forEach(function(f){if(Tn(f.target)&&!s(f)&&(l(f.target),f.addedNodes&&f.addedNodes.length&&f.addedNodes.forEach(d=>{l(d)}),!c(f)&&i())){let d=f.target===u;if(t.streamingDeepChild&&!d&&(d=f.target.parentNode===u),!d)return;f.addedNodes.forEach(b=>{let C=b.previousSibling;!C||C.translated||(C.translated=!0,setTimeout(()=>{C.childNodes[0]?.translated||(j.debug("\u7FFB\u8BD1\u4E0A\u4E00\u4E2A\u6BB5\u843D",C),ou(e,C,n))},o))})}})}),$0.observe(document.body,{attributes:!0,childList:!0,subtree:!0});function i(){return!!(t.streamingChange&&t.streamingSelector&&r||t.streamingChange&&t.messageContainerSelector&&t.messageStreamEndSelector&&u&&!u.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector))}function s(p){return t.streamingSelector&&p.target===r&&p.type==="attributes"&&!En(p.target,[t.streamingSelector])?(g(),!0):t.streamingSelector&&p.removedNodes.length>0&&u&&u!=r?(p.removedNodes?.forEach(f=>{f===r&&g()}),!0):t.messageContainerSelector&&t.messageStreamEndSelector&&u&&u.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector)?(g(),!0):!1}function c(p){if(t.streamingSelector&&p.target.querySelector(t.messageWrapperSelector||"")&&!r){let f=p.target;return f.translated||(f.translated=!0,setTimeout(()=>{r||f.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(d=>{d.translated||(d.translated=!0,ou(e,d,n))})},o)),!0}else if(t.messageContainerSelector&&p.target.querySelector(t.messageContainerSelector||"")){let f=p.target;if(f.translated)return!0;f.translated=!0,setTimeout(()=>{f.querySelectorAll(t.messageContainerSelector).forEach(d=>{t.messageStreamEndSelector&&!d.querySelector(t.messageStreamEndSelector)||d.translated||(d.translated=!0,ou(e,d,n))})},o)}return!1}function l(p){t.streamingSelector&&En(p,[t.streamingSelector])&&(r=p,j.debug("streamingNode",r)),En(p,[t.messageWrapperSelector])&&(u=p,j.debug("markdownNode",u))}function g(){u&&setTimeout(()=>{u.childNodes.forEach(p=>p.translated=!1),j.debug("\u7ED3\u675F\u7FFB\u8BD1\u5168\u90E8",u),ou(e,u,n),r=void 0,u=null},o)}}function ou(e,t,n){la({id:e.id,container:t,filterRule:n,force:!0,onParagraph:a=>{uu(e,a,!0)},onFrame:()=>{},onIgnoreElement:()=>{}})}function zg(){$0?.disconnect()}var ne=null;function Ko(){return ne||null}function cr(e){y9(e),A9(e),C9(e),v9(e),ir(document,e),Dt("Translated"),w9(ne),T9(ne),Ig(Nn),x9(ne)}function y9(e){e.state.translationArea==="main"&&e.rule.initialSelectorGlobalAttributes&&vg(document.body,e.rule.initialSelectorGlobalAttributes,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph)}function x9(e){Ug(e)}function E9(){zg()}function T9(e){e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0});let t=[];e.ctx.rule.mainFrameSelector&&(t=[...document.querySelectorAll(e.ctx.rule.mainFrameSelector||"")]),t.length<=0&&(t=[document.body]),t.forEach(n=>{lr(n,e)})}async function C9(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=Date.now(),a=new URL(e.url).hostname,r=e.localConfig.tempTranslationUrlMatches||[],u=r.findIndex(i=>i.match===a&&i.expiredAt>t),o=!1;u>-1||(r.push({match:a,expiredAt:t+e.config.tempTranslateDomainMinutes*60*1e3}),o=!0),o&&await kn({...e.localConfig,tempTranslationUrlMatches:[...r]})}}function w9(e){e.ctx.rule.isTranslateTitle&&(W0(e.ctx),e.titleDynamicObserver=Ng(e.ctx))}function v9(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function A9(e){let t=hn();ne&&(t=ne.id);let n=cn(e);ne=ne||{},ne.ctx=e,ne.id=t,ne.paragraphQueue=ne.paragraphQueue||[],ne.rule={excludeSelectors:n.excludeSelectors||[],selectors:n.selectors||[]},ne.currentUrl=window.location.href,ne.containerRule={pageHeight:screen.availHeight,selectors:n.selectors},ne.translationService=e.translationService,ne.paragraphEntities=ne.paragraphEntities||{},ne.autoIncreaseParagraphId=ne.autoIncreaseParagraphId||1,ne.interruptEffectDOM=!1,ne.urlChangeDelay=e.rule.urlChangeDelay,ne.immediateTranslateCapacity=e.state.immediateTranslationTextCount,ne.observeContainers=ne.observeContainers||[],ne.observeParagraphs=ne.observeParagraphs||[],ne.dynamicContainerObserver=ne.dynamicContainerObserver||M9(ne),ne.ignoreResizeObserver=ne.ignoreResizeObserver||F9(ne),ne.containerVisibleObserver=ne.containerVisibleObserver||S9(ne),ne.paragraphVisibleObserver=ne.paragraphVisibleObserver||D9(ne),ne.injectCssToDocument=$o,ne.walkContainer=la,ne.translateState=e.state.translationMode||e.config.translationMode||"dual",ne.allInlineWindows=[window],window.onerror=k9(ne,e),window.immersiveTranslateSwitchTranslateState=G0.bind(ne)}function qg(e,t){t.getRootNode()instanceof ShadowRoot?$o(t.getRootNode(),e):$o(t.ownerDocument,e),K0(e)}function K0(e){if(ne)return;ne={},ne.ctx=e,ne.id=hn(),ne.paragraphQueue=[],ne.injectCssToDocument=$o;let t=cn(e);ne.rule={excludeSelectors:t.excludeSelectors,selectors:t.selectors||[]},ne.translationService=e.mouseHoverTranslationService,ne.currentUrl=window.location.href,ne.paragraphEntities={},ne.autoIncreaseParagraphId=1,ne.interruptEffectDOM=!1,ne.urlChangeDelay=e.rule.urlChangeDelay,ne.translateState=e.config.translationMode||"dual",ne.observeContainers=[],ne.observeParagraphs=[],ne.allInlineWindows=[window],window.switchTranslateState=G0.bind(ne)}function Nn(e=!0){ne&&(Dt("Original"),E9(),ne.interruptEffectDOM=!0,ne.ignoreResizeObserver?.disconnect(),ne.dynamicContainerObserver?.disconnect(),ne.containerVisibleObserver?.disconnect(),ne.paragraphVisibleObserver?.disconnect(),ne.titleDynamicObserver?.disconnect(),jg(ne.ctx),fg(),hg(),e&&G0.call(ne,"original"),Object.values(ne.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),ne=null)}function k9(e,t){e.interruptEffectDOM=!1;let n;return function(a){let r=a.message,u=!1;return r?.indexOf("Minified React error")>=0&&(u=!0),u&&(clearTimeout(n),Nn(),n=setTimeout(()=>{cr(t)},e.urlChangeDelay||2e3)),!0}}function S9(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{a.intersectionRatio>0&&(Ho(e,a.target),n.unobserve(a.target))})})}function D9(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{if(a.intersectionRatio>0){let r=a.target;(r.paragraphs||[]).forEach(o=>{z0(e,o)}),n.unobserve(r)}})})}var Hg;function L9(e){if(e.urlChangeDelay<=0)return!1;let n=(window.location.href||"").split("#")[0];return e.currentUrl.split("#")[0]!=n?(clearTimeout(Hg),e.translateState=="original"?!1:(Nn(e.urlChangeDelay>20),Hg=setTimeout(()=>{let r=e.ctx;cr(r)},e.urlChangeDelay),!0)):!1}function M9(e){return new MutationObserver(t=>{if(!L9(e)&&!e.interruptEffectDOM)for(let n of t){let a=e.ctx.rule.mutationObserverLimitTargetSelectors;if(a.length>0&&!En(n.target,a))return;if((n.addedNodes||[]).length<=0||n.target.nodeType!==Node.ELEMENT_NODE||!zt.isSkipMarkEle(n.target)&&!zt.isMarked(n.target,e.id))continue;let u=(n.target?.paragraphs||[]).reduce((o,i)=>{let s=i.rootNodes||[],c=i.targetNodes||[];return[...o,...s,...c]},[]);if(n.addedNodes.length>0&&n.addedNodes.length===n.target.childNodes.length&&En(n.target,e.ctx.rule.mutationObserverContainerSelectors)){zt.clearMark(n.target),n.target.paragraphs=void 0,Ho(e,n.target);return}n.addedNodes.forEach((o,i)=>{o.nodeType===Node.ELEMENT_NODE&&(u.includes(o)||Mt(o,e.ctx.rule.mutationExcludeSelectors)||lr(o,e))})}})}function F9(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let a of t){if(a.target.nodeType!==Node.ELEMENT_NODE)return;let r=a.target,u=globalThis.getComputedStyle(r);L0(u)||(n.unobserve(a.target),lr(r,e))}})}function G0(e){this.translateState=e,Object.values(this.paragraphEntities).forEach(t=>{U0(t,e)}),e=="original"&&document.querySelectorAll(`.${Kt}`).forEach(t=>t.remove())}function $o(e,t){if(e instanceof HTMLIFrameElement){ir(e.contentDocument,t);return}ir(e,t)}async function Wg(e){let t=Je(),n="auto";if(pe()){let a="";e.rule.isEbook||e.rule.isEbookBuilder?(a=v0(e.mainFrame),n=await Qe({text:a,pageLangs:["en"]})):(a=tr(e.mainFrame).slice(0,1e3),n=await Qe({text:a,pageLangs:[ba(),"en"]}))}else if(t)n=await Qe({text:tr(e.mainFrame).slice(0,1e3),pageLangs:[ba(),"en"]});else if(e.rule.isEbook||e.rule.isEbookBuilder){let a="";a=v0(e.mainFrame),n=await Qe({text:a,pageLangs:["en"]})}else n=await Od();return n==="auto"&&(n=await Mg()),Sd(n),n}async function $g(){if(!ne)return;document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=ne.paragraphEntities,t=Object.keys(e);for(let n of t){let a=e[n];if(a.error){ne.paragraphQueue.push(n);let u=a.commonAncestorContainer.querySelector(`[${Ou}='${n}']`);u&&u.remove()}}H0.call(ne,ne.ctx)}m();m();var Kg={"zh-CN":{"languages.en":"\u82F1\u8BED","languages.ja":"\u65E5\u8BED","languages.ko":"\u97E9\u8BED","languages.es":"\u897F\u73ED\u7259\u8BED","languages.fr":"\u6CD5\u8BED","languages.de":"\u5FB7\u8BED","languages.it":"\u610F\u5927\u5229\u8BED","languages.pt":"\u8461\u8404\u7259\u8BED","languages.ru":"\u4FC4\u8BED","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"},"zh-TW":{"languages.en":"\u82F1\u8A9E","languages.ja":"\u65E5\u8A9E","languages.ko":"\u97D3\u8A9E","languages.es":"\u897F\u73ED\u7259\u8A9E","languages.fr":"\u6CD5\u8A9E","languages.de":"\u5FB7\u8A9E","languages.it":"\u610F\u5927\u5229\u8A9E","languages.pt":"\u8461\u8404\u7259\u8A9E","languages.ru":"\u4FC4\u8A9E","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"}},Gg={...Ot,"zh-CN":{...Kg["zh-CN"],...Ot["zh-CN"]},"zh-TW":{...Kg["zh-TW"],...Ot["zh-TW"]}},Vg=Gg;function dr(e,t,n){return In(Gg,e,t,ju,n)}var Go=(e,t,n,a)=>{let r=x4[e]||e,u=E4[e],o=T4[e],i={"zh-CN":u,"zh-TW":o,en:r};if(n)return i[e]?i[e]:r;if(i[t]){let s=i[t];return a||e==="auto"||e==="placeholder"?s:`${s} (${r})`}else return r};m();m();function mr(e){Ka(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(a=>{j.error("send content message request failed",e,a)}),document.querySelectorAll("iframe").forEach(a=>{a.contentWindow&&a.contentWindow.postMessage({author:Fu,payload:e},"*")});let n=new CustomEvent($n,{detail:e});globalThis.document.dispatchEvent(n)}function V0(e){let t=e.shortcuts||{},a=Object.keys(t).reduce((u,o)=>(u[t[o]]=o,u),{}),r=Object.keys(a);for(let u of r){let o=u.replace(/MacCtrl/ig,"Ctrl");o&&Ye(o,i=>{i.preventDefault(),mr({method:a[u],data:{trigger:"shortcut"}})})}}m();m();m();m();m();var Xo,ve,Xg,P9,iu,Yg,e3,Jo={},t3=[],_9=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ca(e,t){for(var n in t)e[n]=t[n];return e}function n3(e){var t=e.parentNode;t&&t.removeChild(e)}function J0(e,t,n){var a,r,u,o={};for(u in t)u=="key"?a=t[u]:u=="ref"?r=t[u]:o[u]=t[u];if(arguments.length>2&&(o.children=arguments.length>3?Xo.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(u in e.defaultProps)o[u]===void 0&&(o[u]=e.defaultProps[u]);return Vo(e,o,a,r,null)}function Vo(e,t,n,a,r){var u={type:e,props:t,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++Xg};return r==null&&ve.vnode!=null&&ve.vnode(u),u}function Gt(e){return e.children}function Yo(e,t){this.props=e,this.context=t}function gr(e,t){if(t==null)return e.__?gr(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?Vo(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=n,f.__b=n.__b+1,(p=h[l])===null||p&&f.key==p.key&&f.type===p.type)h[l]=void 0;else for(g=0;g=n.__.length&&n.__.push({__V:ti}),n.__[e]}function De(e){return lu=1,I9(x3,e)}function I9(e,t,n){var a=ai(cu++,2);if(a.t=e,!a.__c&&(a.__=[n?n(t):x3(void 0,t),function(u){var o=a.__N?a.__N[0]:a.__[0],i=a.t(o,u);o!==i&&(a.__N=[i,a.__[1]],a.__c.setState({}))}],a.__c=tt,!tt.u)){tt.u=!0;var r=tt.shouldComponentUpdate;tt.shouldComponentUpdate=function(u,o,i){if(!a.__c.__H)return!0;var s=a.__c.__H.__.filter(function(l){return l.__c});if(s.every(function(l){return!l.__N}))return!r||r.call(this,u,o,i);var c=!1;return s.forEach(function(l){if(l.__N){var g=l.__[0];l.__=l.__N,l.__N=void 0,g!==l.__[0]&&(c=!0)}}),!!c&&(!r||r.call(this,u,o,i))}}return a.__N||a.__}function Ge(e,t){var n=ai(cu++,3);!ve.__s&&y3(n.__H,t)&&(n.__=e,n.i=t,tt.__H.__h.push(n))}function ri(e){return lu=5,el(function(){return{current:e}},[])}function el(e,t){var n=ai(cu++,7);return y3(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function da(e,t){return lu=8,el(function(){return e},t)}function ui(e){var t=tt.context[e.__c],n=ai(cu++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(tt)),t.props.value):e.__}function N9(){for(var e;e=b3.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ni),e.__H.__h.forEach(X0),e.__H.__h=[]}catch(t){e.__H.__h=[],ve.__e(t,e.__v)}}ve.__b=function(e){typeof e.type!="function"||e.o||e.type===Gt?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),tt=null,d3&&d3(e)},ve.__r=function(e){m3&&m3(e),cu=0;var t=(tt=e.__c).__H;t&&(Z0===tt?(t.__h=[],tt.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=ti,n.__N=n.i=void 0})):(t.__h.forEach(ni),t.__h.forEach(X0),t.__h=[])),Z0=tt},ve.diffed=function(e){g3&&g3(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(b3.push(t)!==1&&c3===ve.requestAnimationFrame||((c3=ve.requestAnimationFrame)||j9)(N9)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==ti&&(n.__=n.__V),n.i=void 0,n.__V=ti})),Z0=tt=null},ve.__c=function(e,t){t.some(function(n){try{n.__h.forEach(ni),n.__h=n.__h.filter(function(a){return!a.__||X0(a)})}catch(a){t.some(function(r){r.__h&&(r.__h=[])}),t=[],ve.__e(a,n.__v)}}),p3&&p3(e,t)},ve.unmount=function(e){f3&&f3(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(a){try{ni(a)}catch(r){t=r}}),n.__H=void 0,t&&ve.__e(t,n.__v))};var h3=typeof requestAnimationFrame=="function";function j9(e){var t,n=function(){clearTimeout(a),h3&&cancelAnimationFrame(t),setTimeout(e)},a=setTimeout(n,100);h3&&(t=requestAnimationFrame(n))}function ni(e){var t=tt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),tt=t}function X0(e){var t=tt;e.__c=e.__(),tt=t}function y3(e,t){return!e||e.length!==t.length||t.some(function(n,a){return n!==e[a]})}function x3(e,t){return typeof t=="function"?t(e):t}m();m();var pr={},U9={root:"",lang:"en",fallbackLang:"en"};function tl(e,t){let n=Object.assign({},U9,e);pr=t||pr;let[a,r]=De(n.lang),[u,o]=De(pr),[i,s]=De(!1),c=g=>{if(u.hasOwnProperty(g))return;s(!1);let p=Fg(n.root||"",g);n.getUrl&&(p=n.getUrl(n.root||"",g),fetch(p).then(f=>f.json()).then(f=>{pr[g]=f,o({...pr}),s(!0)}).catch(f=>{o({...pr}),s(!0)}))};return Ge(()=>{c(n.fallbackLang||"en"),c(a)},[a]),{lang:a,setLang:r,t:(g,p)=>{if(!u.hasOwnProperty(a))return g;let f=ru(u,a,g);return f===g&&a!==n.fallbackLang&&(f=ru(u,n.fallbackLang,g)),_0(f,p)},isReady:i}}m();m();var z9=0;function V(e,t,n,a,r){var u,o,i={};for(o in t)o=="ref"?u=t[o]:i[o]=t[o];var s={type:e,props:i,key:n,ref:u,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--z9,__source:r,__self:a};if(typeof e=="function"&&(u=e.defaultProps))for(o in u)i[o]===void 0&&(i[o]=u[o]);return ve.vnode&&ve.vnode(s),s}var al=ei(null),nl={root:"assets",lang:"en",fallbackLang:"en"},E3=e=>{let{t,setLang:n,lang:a,isReady:r}=tl({root:e.root||nl.root,lang:e.lang||nl.lang,fallbackLang:e.fallbackLang||nl.fallbackLang,getUrl:e.getUrl},e.translations);return V(al.Provider,{value:{t,setLang:n,lang:a,isReady:r},children:e.children})};m();m();function T3(e,t,n){let a=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),a=t!=="auto"?n[t].matches:[];let r={},u=Object.keys(n);for(let c of u){let g=n[c].matches;for(let p of g)r[p]||(r[p]=[]),r[p].push(c)}let o=r[e];if(o&&o.length>0)for(let c of o)n[c].matches.indexOf(e)>-1&&(n[c]={...n[c],matches:n[c].matches.filter(g=>g!==e)});let i=new Set(a);if(t==="auto")return{...n};i.add(e);let s=Array.from(i);return{...n,[t]:{...n[t],matches:s}}}m();m();function rl(){return V("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[V("path",{d:"M10.3873 2.29166C10.6319 2.29193 10.8664 2.38929 11.0392 2.56234C11.2121 2.73539 11.3092 2.96998 11.3092 3.21457V4.07811L12.1175 4.38332C12.7273 4.61277 13.2952 4.94074 13.7988 5.35416L14.4675 5.90207L15.2165 5.46978L15.2394 5.45624C15.3787 5.37479 15.5373 5.332 15.6988 5.33228C15.861 5.3325 16.0203 5.37522 16.1608 5.45618C16.3014 5.53715 16.4182 5.65353 16.4998 5.79374L16.8925 6.47395C17.0145 6.68593 17.0475 6.93764 16.9843 7.17391C16.921 7.41019 16.7666 7.61173 16.555 7.73436L16.5321 7.74791L15.7842 8.17916L15.9227 9.0302C16.031 9.67953 16.031 10.3423 15.9227 10.9917L15.781 11.8458L16.531 12.2781L16.5467 12.2875C16.758 12.4101 16.9122 12.6115 16.9754 12.8475C17.0387 13.0835 17.0059 13.335 16.8842 13.5469L16.5154 14.1844C16.3932 14.3961 16.1919 14.5507 15.9558 14.6141C15.7196 14.6776 15.468 14.6448 15.256 14.5229L15.2415 14.5135L14.4904 14.0802L13.8206 14.6323C13.3125 15.0519 12.7384 15.3845 12.1217 15.6167L11.3133 15.9219V16.7864C11.3132 16.9078 11.2891 17.028 11.2425 17.14C11.1958 17.2521 11.1276 17.3539 11.0415 17.4395C10.9555 17.5251 10.8535 17.5929 10.7412 17.6391C10.6289 17.6852 10.5087 17.7087 10.3873 17.7083H9.61229C9.3677 17.708 9.13322 17.6107 8.96037 17.4376C8.78751 17.2646 8.69042 17.03 8.69042 16.7854V15.9219L7.88209 15.6167C7.27233 15.3872 6.70437 15.0592 6.20084 14.6458L5.53209 14.0979L4.78313 14.5302L4.76021 14.5437C4.62084 14.6252 4.46226 14.668 4.30084 14.6677C4.13864 14.6675 3.97932 14.6248 3.83877 14.5438C3.69823 14.4628 3.58135 14.3464 3.49979 14.2062L3.10709 13.526C2.98505 13.3141 2.95205 13.0623 3.01532 12.8261C3.07858 12.5898 3.23296 12.3882 3.44459 12.2656L3.4675 12.2521L4.21542 11.8208L4.07688 10.9698C3.96856 10.3204 3.96856 9.65766 4.07688 9.00832L4.21854 8.1552L3.46959 7.72186L3.45709 7.70832C3.24914 7.58489 3.09787 7.38486 3.03575 7.15116C2.97362 6.91746 3.00559 6.66872 3.12479 6.45832L3.49354 5.82082C3.57469 5.68049 3.69133 5.56397 3.83175 5.48297C3.97217 5.40197 4.13144 5.35934 4.29354 5.35936C4.45497 5.35908 4.61355 5.40187 4.75292 5.48332L4.7675 5.49166L5.51854 5.92499L6.18834 5.37291C6.69646 4.95329 7.27054 4.62067 7.88729 4.38853L8.69563 4.08332V3.21874C8.69452 2.97433 8.79041 2.73945 8.96226 2.56565C9.13411 2.39185 9.36788 2.29331 9.61229 2.29166H10.3873ZM10.3873 1.04166H9.61229C9.03636 1.04193 8.4841 1.27084 8.07685 1.67809C7.66961 2.08533 7.4407 2.6376 7.44042 3.21353C6.69518 3.49423 6.00146 3.89618 5.38729 4.40312L5.37271 4.39478C4.87362 4.10685 4.2806 4.02894 3.72407 4.17818C3.16753 4.32742 2.69307 4.6916 2.405 5.19062L2.03729 5.83332C1.74928 6.33229 1.67121 6.92522 1.82025 7.48173C1.96929 8.03825 2.33324 8.51279 2.83209 8.80103L2.84771 8.80936C2.78023 9.20444 2.74539 9.6044 2.74354 10.0052C2.74367 10.3971 2.77572 10.7883 2.83938 11.175L2.81646 11.1885C2.56927 11.3311 2.35259 11.5209 2.1788 11.7472C2.00501 11.9735 1.87752 12.2319 1.80361 12.5075C1.7297 12.7831 1.71083 13.0706 1.74807 13.3535C1.7853 13.6364 1.87792 13.9091 2.02063 14.1562L2.41334 14.8364C2.55638 15.0837 2.74681 15.3003 2.97371 15.4738C3.20061 15.6473 3.45953 15.7743 3.73561 15.8475C4.01169 15.9208 4.29952 15.9388 4.58259 15.9007C4.86566 15.8625 5.13841 15.7688 5.38521 15.625L5.40813 15.6114C6.01714 16.1105 6.70362 16.5067 7.44042 16.7844C7.44028 17.0697 7.49635 17.3523 7.60542 17.616C7.7145 17.8797 7.87444 18.1193 8.07612 18.3212C8.27779 18.523 8.51726 18.6832 8.78084 18.7925C9.04441 18.9018 9.32694 18.9582 9.61229 18.9583H10.3873C10.9632 18.958 11.5155 18.7291 11.9227 18.3219C12.33 17.9146 12.5589 17.3624 12.5592 16.7864C13.3043 16.5061 13.9981 16.1045 14.6123 15.5979L14.6269 15.6062C15.126 15.8942 15.719 15.9721 16.2755 15.8228C16.8321 15.6736 17.3065 15.3094 17.5946 14.8104L17.9623 14.1729C18.2503 13.6739 18.3284 13.081 18.1793 12.5245C18.0303 11.968 17.6663 11.4934 17.1675 11.2052L17.1519 11.1969C17.2194 10.8018 17.2542 10.4018 17.256 10.001C17.2559 9.60915 17.2239 9.21792 17.1602 8.83124L17.1831 8.8177C17.4303 8.67516 17.647 8.48531 17.8208 8.259C17.9946 8.03269 18.1221 7.77435 18.196 7.49875C18.2699 7.22314 18.2888 6.93568 18.2515 6.65278C18.2143 6.36987 18.1217 6.09708 17.979 5.84999L17.5863 5.16978C17.4437 4.92202 17.2537 4.70485 17.027 4.53072C16.8003 4.3566 16.5415 4.22895 16.2654 4.1551C15.9893 4.08126 15.7013 4.06267 15.418 4.1004C15.1346 4.13814 14.8616 4.23145 14.6144 4.37499L14.5915 4.38853C13.9824 3.88946 13.296 3.49327 12.5592 3.21561C12.5593 2.93026 12.5032 2.64768 12.3942 2.384C12.2851 2.12031 12.1252 1.8807 11.9235 1.67883C11.7218 1.47695 11.4823 1.31678 11.2188 1.20746C10.9552 1.09813 10.6726 1.04179 10.3873 1.04166Z",fill:"#666666"}),V("path",{d:"M10.0003 7.91666C10.4124 7.91666 10.8152 8.03884 11.1578 8.26776C11.5004 8.49668 11.7674 8.82205 11.9251 9.20273C12.0828 9.58341 12.124 10.0023 12.0436 10.4064C11.9632 10.8106 11.7648 11.1818 11.4735 11.4731C11.1821 11.7645 10.8109 11.9629 10.4068 12.0433C10.0026 12.1237 9.58375 12.0824 9.20307 11.9247C8.82239 11.7671 8.49702 11.5 8.2681 11.1574C8.03918 10.8148 7.91699 10.412 7.91699 9.99999C7.91699 9.44745 8.13649 8.91755 8.52719 8.52685C8.91789 8.13615 9.44779 7.91666 10.0003 7.91666ZM10.0003 6.66666C9.34106 6.66666 8.69659 6.86215 8.14843 7.22842C7.60026 7.5947 7.17302 8.11529 6.92073 8.72438C6.66844 9.33346 6.60243 10.0037 6.73104 10.6503C6.85966 11.2969 7.17713 11.8908 7.6433 12.357C8.10948 12.8232 8.70342 13.1407 9.35003 13.2693C9.99663 13.3979 10.6669 13.3319 11.2759 13.0796C11.885 12.8273 12.4056 12.4001 12.7719 11.8519C13.1382 11.3037 13.3337 10.6593 13.3337 9.99999C13.3337 9.11593 12.9825 8.26809 12.3573 7.64297C11.7322 7.01785 10.8844 6.66666 10.0003 6.66666Z",fill:"#666666"})]})}m();function C3(e,t=2e3){return n=>{let a,r=0;return u=>{++r==e&&(n(u),r=0),clearTimeout(a),a=setTimeout(()=>r=0,t)}}}m();function w3(e){let t;try{t=new URL(e)}catch{return!1}let n=zd(),a="";try{a=new URL(n).hostname}catch{}return a&&t.hostname===a?!0:!(H9(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function H9(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}m();function v3(e){let t=e.split(".");return t.length>2?(t[0]="*",t.join(".")):null}m();function A3(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}m();m();function Ht(){return ui(al)}function jn(e){let{items:t,maxWidth:n,className:a}=e,{lang:r}=Ht();return n=n||(r==="en"?144:160),V("select",{autoComplete:"off",class:a||"min-select",style:{maxWidth:`${n}px`},value:t.find(u=>u.selected)?.value,onChange:u=>{let o=u.target.value,i=t.find(s=>s.value===o);i&&i.onSelected(i)},children:t.map((u,o)=>V("option",{value:u.value,selected:u.selected,children:u.label},"selectlink"+o))})}m();var oi="DROP_DOWN_DEFAULT_VALUE";function ul(e){let{showArrow:t,onSelected:n,className:a,menus:r,maxWidth:u}=e;a=a||"",t=t??!0,u=u||80;let o=ri(null);return V("select",{ref:o,autoComplete:"off",class:`text-label min-select ${t?"":"min-select-no-arrow"} ${a||""}`,value:oi,style:{maxWidth:`${u}px`},onChange:i=>{i.preventDefault();let s=i.target.value;if(o.current&&s!==oi){o.current.value=oi,o.current?.dispatchEvent(new Event("change"));let c=r.find(l=>l.value===s);c&&n(c)}},children:[{value:oi,label:e.label}].concat(r).map((i,s)=>V("option",{value:i.value,children:i.label},"option-"+s))})}m();function ol(e){let{field:t,onChange:n,value:a}=e;a=a||t.default||"";let{t:r}=Ht(),u=t.name;return t.label&&(u=t.label),t.labelKey&&(u=r(t.labelKey)),t.type==="select"?V("div",{class:"flex justify-between items-center mb-2",children:[V("label",{class:"inline-block",children:[u,"\uFF1A"]}),V(jn,{items:t.options.map(o=>({label:`${o.label?r(o.label):o.value}`,value:o.value,selected:a===o.value,onSelected:()=>{n(o.value)}}))})]}):null}m();m();function du(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var q9=({date:e})=>{let{t}=Ht(),[n,a]=De(!1);return Ge(()=>{setTimeout(()=>{a(!0)},5e3)},[]),n?null:V("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},W9=({minVersion:e})=>{let{t}=Ht();return V("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},$9=()=>{let{t:e}=Ht();return V("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:"https://immersivetranslate.com/docs/installation/"})}})},K9=({message:e,handleSyncing:t,date:n})=>{let{t:a}=Ht();return V("p",{class:"text-sm",children:[a("failToSyncRules")," ",V("a",{onClick:t,children:a("retry")}),V("br",{}),a("failedReason"),"\uFF1A",e,V("br",{}),a("currentRuleVersion"),"\uFF1A",n]})};function il(e){let{isShowError:t,request:n}=e,[a,r]=De(null),{t:u}=Ht(),[o,i]=De(null),[s,c]=De(null),[l,g]=De(""),[p,f]=De(!1),[d,b]=De(!1),[C,h]=De(!1),[A,S]=De(null),[U,R]=De(null),y=nn(),T=async()=>{g("");let k=o;if(o===null)try{let v=await n({url:Lr});v?(i(v),k=v,f(!0)):(g(u("unknownError")),c(null))}catch(v){c(null),g(v.message);return}k!==null?(e.setStorageBuildinConfig(k),c(!1),r(k.buildinConfigUpdatedAt)):(g(u("canNotFetchRemoteRule")),c(null))};return Ge(()=>{Jn().then(k=>{let v=k.buildinConfigUpdatedAt;S(k);let E=new Date(v);if(r(v),y==="0.0.0"){h(!0);return}n({url:Lr}).then(B=>{let P=B,w=P.minVersion,_=y;i(P);let O=P.latestVersion;if(O&&(du(_,O)?R(!0):R(!1)),du(_,w)){let N=P.buildinConfigUpdatedAt;new Date(N)>E?(c(!0),T()):c(!1)}else b(!0),c(null)}).catch(B=>{c(null),g(B.message)})})},[]),Ge(()=>{Jn().then(k=>{S(k)})},[a]),A?V("div",{class:"text-sm mt-2",style:{maxWidth:218},children:C?V($9,{}):l?t===!1?null:V(K9,{handleSyncing:T,message:l,date:a||""}):d?t===!1?null:V(W9,{minVersion:o.minVersion}):s===null||s===!0?null:p?V(q9,{date:a}):null}):null}m();var ii='',sl="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMTEuNjIzLS4zMTguODQ1Yy0uMjA4LjIyMi0uNTI3LjMzMy0uOTI4LjMzM2gtMS4zM1Y5LjI0MmgxLjMzWm05Ljg0NiAxLjc4OGMuMzg4IDAgLjY2NS4xNTIuODQ1LjQ1Ny4xNTIuMjY0LjIzNS41ODIuMjYzLjk4NHYuMzE5YzAgLjQ5OS0uMDgzLjg4Ny0uMjYzIDEuMTkyLS4xOC4zMDQtLjQ1Ny40NTctLjgzLjQ1Ny0uMzg5IDAtLjY2Ni0uMTUzLS44NDYtLjQ0NC0uMTUyLS4yNjMtLjIzNS0uNTk1LS4yNjMtMS4wMTF2LS4yOTFjMC0uNDg1LjA4My0uODczLjI2My0xLjE3OC4xOC0uMzA1LjQ0My0uNDg1LjgzMS0uNDg1Wm0tMy40MDctMS4xMzZhMS4xNyAxLjE3IDAgMCAwLS43MDYuMjM1IDEuNDgyIDEuNDgyIDAgMCAwLS40MTUuNWwtLjA4My4xNjUtLjA3LS44MDNoLTEuMzU3djUuNDMyaDEuNDU0di0zLjY1OWEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiA4LjEySDQuMTE0djcuMzE3aDEuNDY4VjEyLjc5aDEuMzNjLjg0NCAwIDEuNDk1LS4yMDggMS45OC0uNjM4LjQ4NS0uNDMuNzItLjk4My43Mi0xLjY5cy0uMjM1LTEuMjYxLS43Mi0xLjY5Yy0uNDQzLS4zODktMS4wMzktLjYxLTEuNzczLS42MzhsLS4yMjEtLjAxNFptOS44NDcgMS43NzRjLS44MDMgMC0xLjQyNi4yNjMtMS44ODMuNzc2LS40MTYuNDctLjYzNyAxLjA2Ny0uNjc5IDEuNzczdi4zMzNjMCAuODE4LjIyMiAxLjQ4My42NzkgMS45OTUuNDU3LjUxMyAxLjA4Ljc3NiAxLjg4My43NzYuODA0IDAgMS40MjctLjI2MyAxLjg4NC0uNzc2LjQxNS0uNDcuNjM3LTEuMDUzLjY3OC0xLjc3M3YtLjMzM2MwLS44MTctLjIyMS0xLjQ4Mi0uNjc4LTEuOTk1LS40NTctLjUxMy0xLjA4LS43NzYtMS44ODQtLjc3NlpNMTguMDAzIDZhNiA2IDAgMCAxIDAgMTJIMFY5LjQyM0EzLjQyIDMuNDIgMCAwIDEgMy40MiA2aDE0LjU4M1oiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSI3LjUiIHgyPSIyMiIgeTE9IjE5IiB5Mj0iNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMyMjIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM2OTY5NjkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=",ll="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzk5OSIgZD0iTTYuODk3IDMuMjQyYy40MTUgMCAuNzIuMTExLjkyOC4zNDcuMjA3LjIzNS4zMTguNTI2LjMxOC44NzMgMCAuMzQ2LS4xMS42MjMtLjMxOC44NDUtLjIwOC4yMjItLjUyNy4zMzMtLjkyOC4zMzNoLTEuMzNWMy4yNDJoMS4zM1ptOS44NDYgMS43ODhjLjM4OCAwIC42NjUuMTUyLjg0NS40NTcuMTUyLjI2NC4yMzUuNTgyLjI2My45ODR2LjMxOWMwIC40OTktLjA4My44ODctLjI2MyAxLjE5Mi0uMTguMzA0LS40NTcuNDU3LS44My40NTctLjM4OSAwLS42NjYtLjE1My0uODQ2LS40NDQtLjE1Mi0uMjYzLS4yMzUtLjU5NS0uMjYzLTEuMDExdi0uMjkxYzAtLjQ4NS4wODMtLjg3My4yNjMtMS4xNzguMTgtLjMwNS40NDMtLjQ4NS44MzEtLjQ4NVptLTMuNDA3LTEuMTM2YTEuMTcgMS4xNyAwIDAgMC0uNzA2LjIzNSAxLjQ4MiAxLjQ4MiAwIDAgMC0uNDE1LjVsLS4wODMuMTY1LS4wNy0uODAzaC0xLjM1N3Y1LjQzMmgxLjQ1NFY1Ljc2NGEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiAyLjEySDQuMTE0djcuMzE3aDEuNDY4VjYuNzloMS4zM2MuODQ0IDAgMS40OTUtLjIwOCAxLjk4LS42MzguNDg1LS40My43Mi0uOTgzLjcyLTEuNjlzLS4yMzUtMS4yNjEtLjcyLTEuNjljLS40NDMtLjM4OS0xLjAzOS0uNjEtMS43NzMtLjYzOGwtLjIyMS0uMDE0Wm05Ljg0NyAxLjc3NGMtLjgwMyAwLTEuNDI2LjI2My0xLjg4My43NzYtLjQxNi40Ny0uNjM3IDEuMDY3LS42NzkgMS43NzN2LjMzM2MwIC44MTguMjIyIDEuNDgzLjY3OSAxLjk5NS40NTcuNTEzIDEuMDguNzc2IDEuODgzLjc3Ni44MDQgMCAxLjQyNy0uMjYzIDEuODg0LS43NzYuNDE1LS40Ny42MzctMS4wNTMuNjc4LTEuNzczdi0uMzMzYzAtLjgxNy0uMjIxLTEuNDgzLS42NzgtMS45OTUtLjQ1Ny0uNTEzLTEuMDgtLjc3Ni0xLjg4NC0uNzc2Wk0xOC4wMDMgMGE2IDYgMCAwIDEgMCAxMkgwVjMuNDIzQTMuNDIgMy40MiAwIDAgMSAzLjQyIDBoMTQuNTgzWiIvPjwvc3ZnPg==";function cl(e){let t=nn(),{onTranslateTheMainPage:n,onUserConfigChange:a,request:r,onTranslateLocalHtmlFile:u,onSwitchTranslationMode:o,onTranslateLocalSubtitleFile:i,onSetBuildinConfig:s,pageStatus:c,openEbookBuilderPage:l,openPricingPage:g,openEbookViewerPage:p,config:f,openAboutPage:d,onTranslateTheWholePage:b,onToggleEnabled:C,openOptionsPage:h,ontranslateToThePageEndImmediately:A,onSetPageLanguage:S,onToggleTranslate:U,onTranslateLocalPdfFile:R,onTranslatePdf:y,onRestorePage:T,ctx:k,currentUrl:v,currentLang:E,onClose:B,onTranslatePage:P,onSetLocalConfig:w,onMouseTriggerChanged:_,errorMsg:O,disabledButton:N,noPermissionPDF:M}=e,x=a,[L,I]=De(""),[$,z]=De(O),[Y,q]=De(null),[ae,Q]=De(null),{t:G,lang:fe}=Ht(),he=70;fe.startsWith("zh")||(he=75);let re=null,K=null,se=null,me=null,ce=null,ye=null,ke=null,xe=null,Z=null,Ae=null,Le=null,Re=null;Ge(()=>{jt.get(Nt,null).then(H=>{H?(q(H),Q(tn(H))):Q(!1)}).catch(H=>{Q(!1)})},[]);let Ne=!0,st=Rt();if(f){st&&f&&(Ne=f.generalRule.showSponsorOnSafari);let{translationService:H,translationServices:de,translationUrlPattern:$e}=f;Bn[H]&&(xe=Fs("translationService",H,k)),de&&de[H]?Re=de[H]||{}:Re={};try{Z=new URL(v||"")}catch{}if(v&&w3(v)){Ae=v3(Z.hostname),Le=A3(v);let{matches:Me,excludeMatches:Pe}=$e;K=Me.includes(Ae),re=Me.includes(Z.hostname),me=Pe.includes(Ae),se=Pe.includes(Z.hostname),ye=Me.includes(Le),ke=Pe.includes(Le)}}if(f&&E&&E!=="auto"){let{translationLanguagePattern:H}=f,{matches:de}=H;de.includes(E)?ce=!0:ce=!1}let Pt=H=>{H.preventDefault(),h()},pa=H=>{x(de=>(de.alpha?I("Success disable alpha!"):I("Success enable alpha!"),{...de,alpha:!de.alpha}))},qt=H=>{x(de=>({...de,translationMode:H})),o(H)},Dn=()=>{x(H=>({...H,translationArea:"body"})),b()},Un=()=>{x(H=>({...H,translationArea:"main"})),n()},Oe=(H,de,$e,Me)=>{if(H==="default"){x(wn=>{let Qt={...wn.translationUrlPattern};return{...wn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...wn.translationUrlPattern,matches:Vn([Z?.hostname,Ae,v],Qt.matches),excludeMatches:Vn([Z?.hostname,Ae,v],Qt.excludeMatches)}}});return}let Pe=H,Ln=Pe==="matches"?"excludeMatches":"matches";Z&&x(wn=>{let Qt={...wn.translationUrlPattern};return Qt[Pe]=vs(de,Qt[Pe]),Me.length>0&&(Qt[Pe]=Vn(Me,Qt[Pe])),Qt[Ln]=Vn($e,Qt[Ln]),{...wn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...wn.translationUrlPattern,...Qt}}}),Pe==="matches"&&c==="Original"?setTimeout(()=>{P(),B()},100):Pe==="excludeMatches"&&c==="Translated"&&setTimeout(()=>{T(),B()},100)},Wt=H=>{if(!H){x(Me=>{let Pe={...Me.translationLanguagePattern};return{...Me,translationLanguagePattern:{...Me.translationLanguagePattern,matches:Vn(E,Pe.matches),excludeMatches:Vn(E,Pe.excludeMatches)}}});return}let de=H,$e=de==="matches"?"excludeMatches":"matches";E&&x(Me=>{let Pe={...Me.translationLanguagePattern};return Pe[de]=vs(E,Pe[de]),Pe[$e]=Vn(E,Pe[$e]),{...Me,translationLanguagePattern:{...Me.translationLanguagePattern,...Pe}}}),de==="matches"&&c==="Original"&&setTimeout(()=>{P(),B()},100)},rt=Z?.pathname.toLowerCase().endsWith(".pdf"),He=G("translate");c==="Translated"||c==="Error"?He=G("show-original"):c==="Original"?rt?Wu()&&Z.protocol==="file:"||M?He=G("translate-firefox-local-pdf"):pe()?He=G("noSupportTranslate-pdf"):He=G("translate-pdf"):He=G("translate"):He=G(c);let Jt=G("translateToThePageEndImmediately");(c==="Original"||c==="Translated")&&(f.shortcuts.toggleTranslatePage&&(I4()&&k.rule.fingerCountToToggleTranslagePageWhenTouching>=2?He+=` (${G(`fingers.${k.rule.fingerCountToToggleTranslagePageWhenTouching}`)})`:He+=` (${f.shortcuts.toggleTranslatePage})`),f.shortcuts.toggleTranslateToThePageEndImmediately&&(Jt+=` (${f.shortcuts.toggleTranslateToThePageEndImmediately})`));let _t=[];k&&(_t=Td(k,"translationService"));let zn=H=>{H.preventDefault(),B()},mt=tg(k.config.translationService,k.config.targetLanguage),mn=ye||re||K,Ue=()=>ye?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!ye,onChange:H=>{let de=H.target.checked;Oe(de?"matches":"default",Le,[Le],[])}}),G("alwaysTranslateSomePage")]}):re?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!re,onChange:H=>{let de=H.target.checked;Oe(de?"matches":"default",Z.hostname,[Z.hostname,Ae,Le],[Ae])}}),G("alwaysTranslateSomeSiteOrWildSite")]}):K?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!K,onChange:H=>{let de=H.target.checked;Oe(de?"matches":"default",Ae,[Le,Z.hostname,Ae],[Z.hostname])}}),G("alwaysTranslateSomeSiteOrWildSite")]}):null;return V("div",{children:[V("div",{class:"popup-container px-6 pt-6 max-content",children:[V("div",{class:"text-sm",children:[V("div",{class:"flex justify-between mb-3 items-center",children:[V("label",{class:"inline-block text-label",children:[G("popupSourceLanguage"),"\uFF1A"]}),V(jn,{maxWidth:186,items:en.map(H=>({label:Go(H,f.interfaceLanguage),value:H,selected:H===k.sourceLanguage,onSelected:de=>{S(de.value)}}))})]}),f&&f.targetLanguage&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[G("popupTarget"),"\uFF1A"]}),V(jn,{maxWidth:186,items:mt.filter(H=>H!=="auto").map(H=>({label:Go(H,f.interfaceLanguage),value:H,selected:H===f.targetLanguage,onSelected:de=>{x($e=>({...$e,targetLanguage:de.value}))}}))})]}),xe&&_t.length>0&&V(Gt,{children:[V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[G("popupService"),"\uFF1A"]}),V(jn,{maxWidth:186,items:_t.map(H=>({label:`${G("translationServices."+H.id)}${H.ok?"":" "+(" "+(!ae&&!st&&H.providers&&H.providers.length>0?G("goLoginOrAction"):G("needAction")))}`,value:H.id,selected:H.selected,onSelected:de=>{let $e=_t.find(Me=>Me.id===de.value);if($e.ok){if(x(Me=>({...Me,translationService:$e.id})),c!="Translated")return;$e.props.length===0?setTimeout(()=>{P()},1):setTimeout(()=>{T()},1)}else x(Me=>({...Me,translationService:$e.id})),setTimeout(()=>{h()},100)}}))})]}),Re&&xe.props.length>0&&xe.props.map((H,de)=>V("div",{class:"pl-4 text-sm",children:V(ol,{field:H,value:Re[H.name],onChange:$e=>{x(Me=>{let Pe=Me.translationServices||{},Ln=Pe[xe.id]||{};return setTimeout(()=>{T()},1),{...Me,translationServices:{...Pe,[xe.id]:{...Ln,[H.name]:$e}}}})}},"field-"+de)},"service"+de))]}),Z&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:G("forThisSite")}),V(jn,{maxWidth:186,items:[{label:G("default"),value:"default",selected:re===!1&&se===!1&&!K&&!me&&!ye&&!ke,onSelected:()=>{Oe("default",Z.hostname,[],[]);let H=Z.hostname,de=k.localConfig.tempTranslationUrlMatches||[],$e=de.filter(Pe=>Pe.match!==H),Me=!1;$e.length!==de.length&&(Me=!0),Me&&w({...k.localConfig,tempTranslationUrlMatches:[...$e]})}},Le&&{label:G("alwaysTranslateSomeSite",{hostname:G("currentUrl")}),value:"matchesUrl",selected:ye,onSelected:()=>{Oe("matches",Le,[Le],[])}},{label:G("alwaysTranslateSomeSite",{hostname:Z.hostname}),value:"matches",selected:re,onSelected:H=>{Oe(H.value,Z.hostname,[Z.hostname,Ae,Le],[Ae])}},Ae&&{label:G("alwaysTranslateSomeSite",{hostname:Ae}),value:"matchesWild",selected:K,onSelected:()=>{Oe("matches",Ae,[Le,Z.hostname,Ae],[Z.hostname])}},Le&&{label:G("neverTranslateSomeSite",{hostname:G("currentUrl")}),value:"excludeMatchesUrl",selected:ke,onSelected:()=>{Oe("excludeMatches",Le,[Le],[])}},{label:G("neverTranslateSomeSite",{hostname:Z.hostname}),value:"excludeMatches",selected:se,onSelected:H=>{Oe(H.value,Z.hostname,[Z.hostname,Ae,Le],[Ae])}},Ae&&{label:G("neverTranslateSomeSite",{hostname:Ae}),value:"excludeMatchesWild",selected:me,onSelected:()=>{Oe("excludeMatches",Ae,[Z.hostname,Le,Ae],[Z.hostname])}}].filter(Boolean)})]}),_&&Br()&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[G("mouse-translate"),"\uFF1A"]}),V(jn,{maxWidth:186,items:zu.filter(H=>!(zu.includes(f.generalRule.mouseHoverHoldKey)&&H==="OtherCustom")).map(H=>{let de=G("mouseHoldKey",{key:H}),$e=zu.includes(f.generalRule.mouseHoverHoldKey),Me=H===f.generalRule.mouseHoverHoldKey;return H==="Auto"?de=G("mouseHoldKeyAuto"):H==="Off"?de=G("mouseHoldKeyOff"):H==="OtherCustom"?de=$e?G("mouseHoldKeyOther"):G("mouseHoldKeyCustomKey",{key:f.generalRule.mouseHoverHoldKey}):H==="Other"&&(de=G("mouseHoldKeyOther")),$e||H==="OtherCustom"&&(Me=!0),{label:de,value:H,selected:Me,onSelected:Pe=>{Pe.value==="Other"?h("#interface"):_(Pe.value)}}})})]})]}),V("div",{class:"",children:V("button",{class:"py-2 mt-1 mb-5 main-button ",onClick:()=>{rt?y&&y():U()},"aria-busy":c==="Translating",disabled:N||c==="Translating",children:He})}),V("div",{class:"text-sm",children:L}),V("div",{class:`pb-2 text-sm ${$?"":"display-none"}`,children:$}),V("div",{class:"flex items-center justify-between flex-wrap",children:[mn?V(Ue,{}):E&&E!=="auto"?V("label",{for:"alwaysTranslateThisLanugage",class:"text-sm text-label text-overflow-ellipsis max-w-20",children:[V("input",{type:"checkbox",id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",checked:!!ce,onChange:H=>{let de=H.target.checked;Wt(de?"matches":void 0)}}),G("alwaysTranslateSomeLanguage",{language:Go(E,f.interfaceLanguage,!1,!0)})]}):V("span",{}),V("div",{class:`flex flex-end flex-grow ${$?"display-none":""}`,children:V("span",{class:"immersive-translate-no-select muted text-sm",onClick:C3(7)(pa),children:["V",t,f.enabled?null:V("a",{href:"#",onClick:C,children:[" ","(",G("hasBeenDisabled"),")"]})]})})]})]}),V("footer",{children:[V("div",{class:"px-6 text-label",children:V(il,{isShowError:!1,request:r,setStorageBuildinConfig:s})}),V("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer text-label",children:[V("div",{class:"flex flex-row items-center justify-center secondary clickable",style:{width:70},onClick:Pt,children:[V(rl,{}),V("span",{class:"ml-1",children:G("options")})]}),Ne?V("a",{title:G(ae?"popup.openProForPro":"popup.openPro"),target:"_blank",href:ae?ms:gs,children:V("img",{src:ae?sl:ll})}):ae&&V("a",{title:G(ae?"popup.openProForPro":"popup.openPro"),target:"_blank",href:ae?ms:gs,children:V("img",{src:ae?sl:ll})}),V(ul,{label:G("more"),showArrow:!0,maxWidth:he,onSelected:H=>{H.value==="openPremium"?(globalThis.open(Pr),B()):H.value==="changeToOnlyTranslationMode"?qt("translation"):H.value==="changeToDualTranslationMode"?qt("dual"):H.value==="translateTheWholePage"?b():H.value==="translateToThePageEndImmediately"?A():H.value==="translateTheMainPage"?n():H.value==="showTranslationOnly"||(H.value==="translateLocalPdfFile"?R&&R():H.value==="translateLocalHtmlFile"?u&&u():H.value==="translateLocalSubtitleFile"?i&&i():H.value==="donate"?(globalThis.open(f.donateUrl),B()):H.value==="feedback"?(globalThis.open(f.feedbackUrl),B()):H.value==="options"?(h(),B()):H.value==="changeToTranslateTheWholePage"?Dn():H.value==="changeToTranslateTheMainPage"?Un():H.value==="about"?d():H.value==="toggleEnabled"?C():H.value==="openEbookViewer"?p():H.value==="openEbookBuilder"?l():H.value==="goPro"&&g())},menus:[f.translationMode==="dual"&&{label:"\u{1F524} "+G("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},f.translationMode==="translation"&&{label:"\u{1F521} "+G("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},f.translationArea==="main"&&{label:"\u{1F480} "+G("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},f.translationArea==="body"&&{label:"\u{1F4D6} "+G("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},{label:"\u26A1 "+Jt,value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+G("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+G("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+G("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},!pe()&&{label:"\u{1F310} "+G("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+G("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},ae===!1&&Ne&&{label:"\u{1F451} "+G("upgradeToPro"),value:"goPro"},{label:"\u2764\uFE0F "+G(Ne?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})]})]})}m();m();m();m();var dl={get:(e,t,n)=>{let a=t===void 0?e:{[e]:t};return ue.storage[n].get(a)},set:(e,t,n)=>ue.storage[n].set({[e]:t})};function si(e,t,n){let[a]=De(()=>typeof t=="function"?t():t),[r]=De(n),[u,o]=De(a),[i,s]=De(!1),[c,l]=De("");Ge(()=>{dl.get(e,a,r).then(p=>{p[e]&&o(p[e]),s(!0),l("")}).catch(p=>{s(!1),l(p)})},[e,a,r]);let g=da(p=>{let f=typeof p=="function"?p(u):p;j.debug("new settings",f),dl.set(e,f,r).then(()=>{o(f),s(!0),l("")}).catch(d=>{o(f),s(!1),l(d)})},[r,e,u]);return[u,g,i,c]}m();function ml(e,t,n){let a=[];return function(){let[u,o,i,s]=si(e,t,n),c=da(l=>{for(let g of a)g(l)},[]);return Ge(()=>(a.push(o),()=>{a.splice(a.indexOf(o),1)}),[o]),[u,c,i,s]}}function k3(e,t){return ml(e,t,"sync")}var G9="userConfig",V9=null,Y9=k3(G9,V9);function li(e){let[t,n,a,r]=Y9(),u=da(o=>{let i=typeof o=="function"?o(t):o;i&&(i.updatedAt=new Date().toISOString()),n(i),e&&e(i)},[t]);return[t,u,a,r,n]}m();m();async function ci(e){try{let t=new Date;j.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await ue.storage.local.set({[Fr]:t.toISOString()}),await J9(),pe()||await $d()}catch(t){j.error("run cron task failed",t)}}async function S3(){let t=(await Lt()).interval;if(t){let n=await ue.storage.local.get(Fr);if(n&&n[Fr]){let a=n[Fr];if(Date.now()-new Date(a).getTime()a?(await ue.storage.local.set({buildinConfig:t}),j.info(`sync remote rules success, latest: ${new Date(r).toLocaleString()}`)):j.debug(`no need to sync rules, latest: ${a}`):j.info(`local version is too old, please update to ${o} or later`)}catch(e){j.error("sync rules error: ",e)}}m();m();m();m();m();m();var gl;function wl(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function O3(e,t=","){return e.map(wl).join(t)}var I3=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function mi(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function gi(e,t="@media "){return t+Vt(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(a=>`(${a}-width:${n[a]})`).join(" and "))).join(",")}function Vt(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function Q9(){}var ht={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function N3(e){return e.match(/[-=:;]/g)?.length||0}function xl(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(N3(e),15)<<18}var Z9=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function vl({n:e,i:t,v:n=[]},a,r,u){e&&(e=wl({n:e,i:t,v:n})),u=[...Vt(u)];for(let i of n){let s=a.theme("screens",i);for(let c of Vt(s&&gi(s)||a.v(i))){var o;u.push(c),r|=s?67108864|xl(c):i=="dark"?1073741824:c[0]=="@"?xl(c):(o=c,1<<~(/:([a-z-]+)/.test(o)&&~Z9.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:r,r:u,i:t}}var Al=new Map;function D3(e){if(e.d){let t=[],n=pl(e.r.reduce((a,r)=>r[0]=="@"?(t.push(r),a):r?pl(a,u=>pl(r,o=>{let i=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(i){let s=u.indexOf(i[1]);return~s?u.slice(0,s)+i[0]+u.slice(s+i[1].length):fl(u,o)}return fl(o,u)})):a,"&"),a=>fl(a,e.n?"."+I3(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((a,r)=>r+"{"+a+"}",e.d)}}function pl(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,a,r)=>t(a)+r)}function fl(e,t){return e.replace(/&/g,t)}var L3=new Intl.Collator("en",{numeric:!0});function X9(e,t){for(var n=0,a=e.length;n>1;0>=j3(e[r],t)?n=r+1:a=r}return a}function j3(e,t){let n=e.p&ht.o;return n==(t.p&ht.o)&&(n==ht.b||n==ht.o)?0:e.p-t.p||e.o-t.o||L3.compare(M3(e.n),M3(t.n))||L3.compare(F3(e.n),F3(t.n))}function M3(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function F3(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function hl(e,t){return Math.round(parseInt(e,16)*t)}function ma(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:a}=t,r=a?`var(${a})`:n;if(e.includes(""))return e.replace("",r);if(e[0]=="#"&&(e.length==4||e.length==7)){let u=(e.length-1)/3,o=[17,1,.062272][u-1];return`rgba(${[hl(e.substr(1,u),o),hl(e.substr(1+u,u),o),hl(e.substr(1+2*u,u),o),r]})`}return r=="1"?e:r=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${r})`)}function U3(e,t,n,a,r=[]){return function u(o,{n:i,p:s,r:c=[],i:l},g){let p=[],f="",d=0,b=0;for(let A in o||{}){var C,h;let S=o[A];if(A[0]=="@"){if(!S)continue;if(A[1]=="a"){p.push(...H3(i,s,Sl(""+S),g,s,c,l,!0));continue}if(A[1]=="l"){for(let U of Vt(S))p.push(...u(U,{n:i,p:(C=ht[A[7]],s&~ht.o|C),r:A[7]=="d"?[]:c,i:l},g));continue}if(A[1]=="i"){p.push(...Vt(S).map(U=>({p:-1,o:0,r:[],d:A+" "+U})));continue}if(A[1]=="k"){p.push({p:ht.d,o:0,r:[A],d:u(S,{p:ht.d},g).map(D3).join("")});continue}if(A[1]=="f"){p.push(...Vt(S).map(U=>({p:ht.d,o:0,r:[A],d:u(U,{p:ht.d},g).map(D3).join("")})));continue}}if(typeof S!="object"||Array.isArray(S))A=="label"&&S?i=S+mi(JSON.stringify([s,l,o])):(S||S===0)&&(A=A.replace(/[A-Z]/g,U=>"-"+U.toLowerCase()),b+=1,d=Math.max(d,(h=A)[0]=="-"?0:N3(h)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(h)?+!!RegExp.$1||-!!RegExp.$2:0)+1),f+=(f?";":"")+Vt(S).map(U=>g.s(A,z3(""+U,g.theme)+(l?" !important":""))).join(";"));else if(A[0]=="@"||A.includes("&")){let U=s;A[0]=="@"&&(A=A.replace(/\bscreen\(([^)]+)\)/g,(R,y)=>{let T=g.theme("screens",y);return T?(U|=67108864,gi(T,"")):R}),U|=xl(A)),p.push(...u(S,{n:i,p:U,r:[...c,A],i:l},g))}else p.push(...u(S,{p:s,r:[...c,A]},g))}return p.unshift({n:i,p:s,o:Math.max(0,15-b)+1.5*Math.min(d||15,15),r:c,d:f}),p.sort(j3)}(e,vl(t,n,a,r),n)}function z3(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,a,r,u,o="")=>{let i=t(r,o);return typeof i=="function"&&/color|fill|stroke/i.test(r)?ma(i):""+Vt(i).filter(s=>Object(s)!==s)})}function kl(e,t){let n,a=[];for(let r of e)r.d&&r.n?n?.p==r.p&&""+n.r==""+r.r?(n.c=[n.c,r.c].filter(Boolean).join(" "),n.d=n.d+";"+r.d):a.push(n={...r,n:r.n&&t}):a.push({...r,n:r.n&&t});return a}function El(e,t,n=ht.u,a,r){let u=[];for(let o of e)for(let i of function(s,c,l,g,p){s={...s,i:s.i||p};let f=function(d,b){let C=Al.get(d.n);return C?C(d,b):b.r(d.n,d.v[0]=="dark")}(s,c);return f?typeof f=="string"?({r:g,p:l}=vl(s,c,l,g),kl(El(Sl(f),c,l,g,s.i),s.n)):Array.isArray(f)?f.map(d=>{var b,C;return{o:0,...d,r:[...Vt(g),...Vt(d.r)],p:(b=l,C=d.p??l,b&~ht.o|C)}}):U3(f,s,c,l,g):[{c:wl(s),p:0,o:0,r:[]}]}(o,t,n,a,r))u.splice(X9(u,i),0,i);return u}function H3(e,t,n,a,r,u,o,i){return kl((i?n.flatMap(s=>El([s],a,r,u,o)):El(n,a,r,u,o)).map(s=>s.p&ht.o&&(s.n||t==ht.b)?{...s,p:s.p&~ht.o|t,o:0}:s),e)}function eb(e,t,n,a){var r;return r=(u,o)=>{let{n:i,p:s,r:c,i:l}=vl(u,o,t);return n&&H3(i,t,n,o,s,c,l,a)},Al.set(e,r),e}function bl(e,t,n){if(e[e.length-1]!="("){let a=[],r=!1,u=!1,o="";for(let i of e)if(!(i=="("||/[~@]$/.test(i))){if(i[0]=="!"&&(i=i.slice(1),r=!r),i.endsWith(":")){a[i=="dark:"?"unshift":"push"](i.slice(0,-1));continue}i[0]=="-"&&(i=i.slice(1),u=!u),i.endsWith("-")&&(i=i.slice(0,-1)),i&&i!="&"&&(o+=(o&&"-")+i)}o&&(u&&(o="-"+o),t[0].push({n:o,v:a.filter(tb),i:r}))}}function tb(e,t,n){return n.indexOf(e)==t}var P3=new Map;function Sl(e){let t=P3.get(e);if(!t){let n=[],a=[[]],r=0,u=0,o=null,i=0,s=(c,l=0)=>{r!=i&&(n.push(e.slice(r,i+l)),c&&bl(n,a)),r=i+1};for(;i1?g.slice(0,-1)+mi(JSON.stringify([g,p])):g+"("+O3(p)+")",ht.a,p,/@$/.test(g))],a)}l=n.lastIndexOf("(",l-1)}n.length=l+1}else/[~@]/.test(c)&&e[i+1]=="("&&a.unshift([])}s(!0),P3.set(e,t=a[0])}return t}function q3(e,t,n){return t.reduce((a,r,u)=>a+n(r)+e[u+1],e[0])}function W3(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?q3(e,t,n=>yl(n).trim()):t.filter(Boolean).reduce((n,a)=>n+yl(a),e?yl(e):"")}function yl(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=W3(e[0],e.slice(1)))&&(n+=" "+t);else for(let a in e)e[a]&&(n+=" "+a);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var bP=$3("@"),yP=$3("~");function $3(e){return new Proxy(function(n,...a){return t("",n,a)},{get(n,a){return a in n?n[a]:function(r,...u){return t(a,r,u)}}});function t(n,a,r){return O3(Sl(n+e+"("+W3(a,r)+")"))}}function Tl(e,t){return Array.isArray(e)?_3(q3(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?_3(e):[e]}var nb=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function _3(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],a=[n[0]],r=[];for(;t=nb.exec(e);)t[4]&&(n.shift(),r.shift()),t[3]?(r.unshift(t[3]),n.unshift({}),a.push(r.reduce((u,o)=>({[o]:u}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),a.push(r.reduce((u,o)=>({[o]:u}),n[0]))),n[0][t[1]]=t[2]);return a}function K3(e,...t){var n;let a=Tl(e,t),r=(a.find(u=>u.label)?.label||"css")+mi(JSON.stringify(a));return n=(u,o)=>kl(a.flatMap(i=>U3(i,u,o,ht.o)),r),Al.set(r,n),r}var xP=new Proxy(function(e,t){return B3("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,a){return B3(t,n,a)}}});function B3(e,t,n){return{toString(){return K3({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function ee(e,t,n){return[e,ab(t,n)]}function ab(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,a)=>({[e]:t?t(n,a):Cl(n,1)}):n=>e||{[n[1]]:Cl(n,2)}}function Cl(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function te(e,t,n,a){return[e,rb(t,n,a)]}function rb(e,t,n){let a=typeof t=="string"?(r,u)=>({[t]:n?n(r,u):r._}):t||(({1:r,_:u},o,i)=>({[r||i]:u}));return(r,u)=>{let o=G3(e||r[1]),i=u.theme(o,r.$$)??fr(r.$$,o,u);if(i!=null)return r._=Cl(r,0,i),a(r,u,o)}}function it(e,t={},n){return[e,ub(t,n)]}function ub(e={},t){return(n,a)=>{let{section:r=G3(n[0]).replace("-","")+"Color"}=e,[u,o]=ob(n.$$);if(!u)return;let i=a.theme(r,u)||fr(u,r,a);if(!i||typeof i=="object")return;let{opacityVariable:s=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:c=r.replace("Color","Opacity"),property:l=r,selector:g}=e,p=a.theme(c,o||"DEFAULT")||o&&fr(o,c,a),f=t||(({_:b})=>{let C=mu(l,b);return g?{[g]:C}:C});n._={value:ma(i,{opacityVariable:s||void 0,opacityValue:p||void 0}),color:b=>ma(i,b),opacityVariable:s||void 0,opacityValue:p||void 0};let d=f(n,a);if(!n.dark){let b=a.d(r,u,i);b&&b!==i&&(n._={value:ma(b,{opacityVariable:s||void 0,opacityValue:p||"1"}),color:C=>ma(b,C),opacityVariable:s||void 0,opacityValue:p||void 0},d={"&":d,[a.v("dark")]:f(n,a)})}return d}}function ob(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function mu(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function fr(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=di(z3(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function G3(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function di(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",a,r="")=>di(n)+a+di(r)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var EP=Symbol();var V3=new Proxy(Q9,{apply(e,t,n){return gl(n[0])},get(e,t){let n=gl[t];return typeof n=="function"?function(){return n.apply(gl,arguments)}:n}});var TP=function e(t){return new Proxy(function(n,...a){return R3(t,"",n,a)},{get(n,a){return a==="bind"?e:a in n?n[a]:function(r,...u){return R3(t,a,r,u)}}})}();function R3(e,t,n,a){return{toString(){let r=Tl(n,a),u=I3(t+mi(JSON.stringify([t,r])));return(typeof e=="function"?e:V3)(K3({[`@keyframes ${u}`]:Tl(n,a)})),u}}}m();m();m();m();m();var Y3={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...Yt(4,"rem",4,.5,.5),...Yt(12,"rem",4,5),14:"3.5rem",...Yt(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Fe("blur"),backdropBrightness:Fe("brightness"),backdropContrast:Fe("contrast"),backdropGrayscale:Fe("grayscale"),backdropHueRotate:Fe("hueRotate"),backdropInvert:Fe("invert"),backdropOpacity:Fe("opacity"),backdropSaturate:Fe("saturate"),backdropSepia:Fe("sepia"),backgroundColor:Fe("colors"),backgroundImage:{none:"none"},backgroundOpacity:Fe("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...Yt(200,"",100,0,50),...Yt(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Fe("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Fe("spacing"),borderWidth:{DEFAULT:"1px",...dn(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Fe("colors"),caretColor:Fe("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...Yt(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Fe("borderColor"),divideOpacity:Fe("borderOpacity"),divideWidth:Fe("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...gu(2,6),...gu(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Fe("spacing"),gradientColorStops:Fe("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...gu(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...gu(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...Yt(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...Yt(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Fe("spacing"),placeholderColor:Fe("colors"),placeholderOpacity:Fe("opacity"),outlineColor:Fe("colors"),outlineOffset:dn(8,"px"),outlineWidth:dn(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Fe("colors"),ringOffsetWidth:dn(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...dn(8,"px")},rotate:{...dn(2,"deg"),...dn(12,"deg",3),...dn(180,"deg",45)},saturate:Yt(200,"",100,0,50),scale:{...Yt(150,"",100,0,50),...Yt(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Fe("spacing"),scrollPadding:Fe("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...dn(2,"deg"),...dn(12,"deg",3)},space:Fe("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:Yt(2),textColor:Fe("colors"),textDecorationColor:Fe("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...dn(8,"px")},textUnderlineOffset:{auto:"auto",...dn(8,"px")},textIndent:Fe("spacing"),textOpacity:Fe("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Fe("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...gu(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...Yt(50,"",1,0,10),auto:"auto"}};function gu(e,t){let n={};do for(var a=1;at(e)}var jP={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${Y3.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${Y3.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},zP=[ee("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:fr(`[${t}]`,"",n)}}})),ee("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),te("aspect-","aspectRatio"),ee("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:a,padding:r}=t("container"),u={width:"100%",marginRight:a&&"auto",marginLeft:a&&"auto",...o("xs")};for(let i in n){let s=n[i];typeof s=="string"&&(u[gi(s)]={"&":{maxWidth:s,...o(i)}})}return u;function o(i){let s=r&&(typeof r=="string"?r:r[i]||r.DEFAULT);if(s)return{paddingRight:s,paddingLeft:s}}}),te("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),ee("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),ee("box-(border|content)","boxSizing",({1:e})=>e+"-box"),ee("hidden",{display:"none"}),ee("table-(auto|fixed)","tableLayout"),ee(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",ee("isolate","isolation"),ee("object-(contain|cover|fill|none|scale-down)","objectFit"),te("object-","objectPosition"),ee("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",pi),ee("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),ee("(static|fixed|absolute|relative|sticky)","position"),te("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),te("-?(top|bottom|left|right)(?:$|-)","inset"),ee("(visible|collapse)","visibility"),ee("invisible",{visibility:"hidden"}),te("-?z-","zIndex"),ee("flex-((row|col)(-reverse)?)","flexDirection",J3),ee("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),te("(flex-(?:grow|shrink))(?:$|-)"),te("(flex)-"),te("grow(?:$|-)","flexGrow"),te("shrink(?:$|-)","flexShrink"),te("basis-","flexBasis"),te("-?(order)-"),"-?(order)-(\\d+)",te("grid-cols-","gridTemplateColumns"),ee("grid-cols-(\\d+)","gridTemplateColumns",ep),te("col-","gridColumn"),ee("col-(span)-(\\d+)","gridColumn",X3),te("col-start-","gridColumnStart"),ee("col-start-(auto|\\d+)","gridColumnStart"),te("col-end-","gridColumnEnd"),ee("col-end-(auto|\\d+)","gridColumnEnd"),te("grid-rows-","gridTemplateRows"),ee("grid-rows-(\\d+)","gridTemplateRows",ep),te("row-","gridRow"),ee("row-(span)-(\\d+)","gridRow",X3),te("row-start-","gridRowStart"),ee("row-start-(auto|\\d+)","gridRowStart"),te("row-end-","gridRowEnd"),ee("row-end-(auto|\\d+)","gridRowEnd"),ee("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>pi(J3(e))),ee("grid-flow-(dense)","gridAutoFlow"),te("auto-cols-","gridAutoColumns"),te("auto-rows-","gridAutoRows"),te("gap-x(?:$|-)","gap","columnGap"),te("gap-y(?:$|-)","gap","rowGap"),te("gap(?:$|-)","gap"),"(justify-(?:items|self))-",ee("justify-","justifyContent",Q3),ee("(content|items|self)-",e=>({["align-"+e[1]]:Q3(e)})),ee("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),te("p([xytrbl])?(?:$|-)","padding",hr("padding")),te("-?m([xytrbl])?(?:$|-)","margin",hr("margin")),te("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),ee("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),te("w-","width"),te("min-w-","minWidth"),te("max-w-","maxWidth"),te("h-","height"),te("min-h-","minHeight"),te("max-h-","maxHeight"),te("font-","fontWeight"),te("font-","fontFamily",({_:e})=>typeof(e=Vt(e))[1]=="string"?{fontFamily:Cn(e)}:{fontFamily:Cn(e[0]),...e[1]}),ee("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),ee("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),ee("italic","fontStyle"),ee("not-italic",{fontStyle:"normal"}),ee("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...ga({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),te("tracking-","letterSpacing"),te("leading-","lineHeight"),ee("list-(inside|outside)","listStylePosition"),te("list-","listStyleType"),ee("list-","listStyleType"),te("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),it("placeholder-",{property:"color",selector:"&::placeholder"}),ee("text-(left|center|right|justify|start|end)","textAlign"),ee("text-(ellipsis|clip)","textOverflow"),te("text-opacity-","textOpacity","--tw-text-opacity"),it("text-",{property:"color"}),te("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),te("indent-","textIndent"),ee("(overline|underline|line-through)","textDecorationLine"),ee("no-underline",{textDecorationLine:"none"}),te("underline-offset-","textUnderlineOffset"),it("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),te("decoration-","textDecorationThickness"),ee("decoration-","textDecorationStyle"),ee("(uppercase|lowercase|capitalize)","textTransform"),ee("normal-case",{textTransform:"none"}),ee("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),ee("align-","verticalAlign"),ee("whitespace-","whiteSpace"),ee("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),ee("break-words",{overflowWrap:"break-word"}),ee("break-all",{wordBreak:"break-all"}),ee("break-keep",{wordBreak:"keep-all"}),it("caret-",{opacityVariable:!1,opacitySection:"opacity"}),it("accent-",{opacityVariable:!1,opacitySection:"opacity"}),ee("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${Da(e," ")},var(--tw-gradient-stops))`),it("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),it("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),it("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),ee("bg-(fixed|local|scroll)","backgroundAttachment"),ee("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),ee(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),ee("bg-blend-","backgroundBlendMode"),ee("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),te("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),it("bg-",{section:"backgroundColor"}),te("bg-","backgroundImage"),te("bg-","backgroundPosition"),ee("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",pi),te("bg-","backgroundSize"),te("rounded(?:$|-)","borderRadius"),te("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${Da(n[0])}-radius`]:t,[`border-${Da(n[1])}-radius`]:t}}),ee("border-(collapse|separate)","borderCollapse"),te("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),ee("border-(solid|dashed|dotted|double|none)","borderStyle"),te("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...ga({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),it("border-([xytrbl])-",{section:"borderColor"},hr("border","Color")),it("border-"),te("border-([xytrbl])(?:$|-)","borderWidth",hr("border","Width")),te("border(?:$|-)","borderWidth"),te("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),ee("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),ee("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),te("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${Da(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${Da(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),it("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),te("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),it("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),te("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),ee("ring-inset",{"--tw-ring-inset":"inset"}),it("ring-",{property:"--tw-ring-color"}),te("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...ga({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":ma(t("ringOffsetColor","","#fff")),"--tw-ring-color":ma(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),it("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),te("shadow(?:$|-)","boxShadow",({_:e})=>({...ga({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Cn(e),"--tw-shadow-colored":Cn(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),te("(opacity)-"),ee("mix-blend-","mixBlendMode"),...Z3(),...Z3("backdrop-"),te("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Cn(e),transitionTimingFunction:e._=="none"?void 0:Cn(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:Cn(t("transitionDuration",""))})),te("duration(?:$|-)","transitionDuration","transitionDuration",Cn),te("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Cn),te("delay(?:$|-)","transitionDelay","transitionDelay",Cn),te("animate(?:$|-)","animation",(e,{theme:t,h:n,e:a})=>{let r=Cn(e),u=r.split(" "),o=t("keyframes",u[0]);return o?{["@keyframes "+(u[0]=a(n(u[0])))]:o,animation:u.join(" ")}:{animation:r}}),"(transform)-(none)",ee("transform",Ll),ee("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":tp(e=="gpu")})),te("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...Ll()})),te("-?(rotate)-","rotate",Dl),te("-?(translate-[xy])-","translate",Dl),te("-?(skew-[xy])-","skew",Dl),ee("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",pi),"(appearance)-",te("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",te("(cursor)-"),"(cursor)-",ee("snap-(none)","scroll-snap-type"),ee("snap-(x|y|both)",({1:e})=>({...ga({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),ee("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),ee("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),ee("snap-(normal|always)","scroll-snap-stop"),ee("scroll-(auto|smooth)","scroll-behavior"),te("scroll-p([xytrbl])?(?:$|-)","padding",hr("scroll-padding")),te("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",hr("scroll-margin")),ee("touch-(auto|none|manipulation)","touch-action"),ee("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...ga({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),ee("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),ee("outline",{outlineStyle:"solid"}),ee("outline-(dashed|dotted|double)","outlineStyle"),te("-?(outline-offset)-"),it("outline-",{opacityVariable:!1,opacitySection:"opacity"}),te("outline-","outlineWidth"),"(pointer-events)-",te("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],ee("select-(none|text|all|auto)","userSelect"),it("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),it("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),te("stroke-","strokeWidth"),ee("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),ee("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function pi(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function J3(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function Da(e,t="-"){let n=[];for(let a of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[a]);return n.join(t)}function Cn(e){return e&&""+(e._||e)}function Q3({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function hr(e,t=""){return({1:n,_:a})=>{let r={x:"lr",y:"tb"}[n]||n+n;return r?{...mu(e+"-"+Da(r[0])+t,a),...mu(e+"-"+Da(r[1])+t,a)}:mu(e+t,a)}}function Z3(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let a of t)n[`--tw-${e}${a}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...ga(n),[`${e}filter`]:t.map(a=>`var(--tw-${e}${a})`).join(" ")},[`(${e}filter)-(none)`,ee(`${e}filter`,n),...t.map(a=>te(`${a[0]=="h"?"-?":""}(${e}${a})(?:$|-)`,a,({1:r,_:u})=>({[`--tw-${r}`]:Vt(u).map(o=>`${a}(${o})`).join(" "),...n})))]}function Dl({1:e,_:t}){return{["--tw-"+e]:t,...Ll()}}function Ll(){return{...ga({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":tp()}),transform:"var(--tw-transform)"}}function tp(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function X3({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function ep({1:e}){return`repeat(${e},minmax(0,1fr))`}function ga(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}m();m();var fi=globalThis||(typeof window<"u"?window:self),lb=Object.create,Fl=Object.defineProperty,cb=Object.getOwnPropertyDescriptor,db=Object.getOwnPropertyNames,mb=Object.getPrototypeOf,gb=Object.prototype.hasOwnProperty,pb=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),fb=(e,t)=>{for(var n in t)Fl(e,n,{get:t[n],enumerable:!0})},Ml=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of db(t))!gb.call(e,r)&&r!==n&&Fl(e,r,{get:()=>t[r],enumerable:!(a=cb(t,r))||a.enumerable});return e},hb=(e,t,n)=>(Ml(e,t,"default"),n&&Ml(n,t,"default")),ap=(e,t,n)=>(n=e!=null?lb(mb(e)):{},Ml(t||!e||!e.__esModule?Fl(n,"default",{value:e,enumerable:!0}):n,e)),rp=pb((e,t)=>{(function(n,a){typeof define=="function"&&define.amd?define([],a):typeof e<"u"?a():(a(),n.FileSaver={})})(e,function(){"use strict";function n(c,l){return typeof l>"u"?l={autoBom:!1}:typeof l!="object"&&(l={autoBom:!l}),l.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function a(c,l,g){var p=new XMLHttpRequest;p.open("GET",c),p.responseType="blob",p.onload=function(){s(p.response,l,g)},p.onerror=function(){},p.send()}function r(c){var l=new XMLHttpRequest;l.open("HEAD",c,!1);try{l.send()}catch{}return 200<=l.status&&299>=l.status}function u(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var l=document.createEvent("MouseEvents");l.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(l)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof fi=="object"&&fi.global===fi?fi:void 0,i=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(c,l,g){var p=o.URL||o.webkitURL,f=document.createElement("a");l=l||c.name||"download",f.download=l,f.rel="noopener",typeof c=="string"?(f.href=c,f.origin===location.origin?u(f):r(f.href)?a(c,l,g):u(f,f.target="_blank")):(f.href=p.createObjectURL(c),setTimeout(function(){p.revokeObjectURL(f.href)},4e4),setTimeout(function(){u(f)},0))}:"msSaveOrOpenBlob"in navigator?function(c,l,g){if(l=l||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(n(c,g),l);else if(r(c))a(c,l,g);else{var p=document.createElement("a");p.href=c,p.target="_blank",setTimeout(function(){u(p)})}}:function(c,l,g,p){if(p=p||open("","_blank"),p&&(p.document.title=p.document.body.innerText="downloading..."),typeof c=="string")return a(c,l,g);var f=c.type==="application/octet-stream",d=/constructor/i.test(o.HTMLElement)||o.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||f&&d||i)&&typeof FileReader<"u"){var C=new FileReader;C.onloadend=function(){var S=C.result;S=b?S:S.replace(/^data:[^;]*;/,"data:attachment/file;"),p?p.location.href=S:location=S,p=null},C.readAsDataURL(c)}else{var h=o.URL||o.webkitURL,A=h.createObjectURL(c);p?p.location=A:location.href=A,p=null,setTimeout(function(){h.revokeObjectURL(A)},4e4)}});o.saveAs=s.saveAs=s,typeof t<"u"&&(t.exports=s)})}),up={};fb(up,{default:()=>hi});var bb=ap(rp());hb(up,ap(rp()));var{default:np,...yb}=bb,hi=np!==void 0?np:yb;m();m();m();m();m();m();var S_=Ve().REDIRECT_URL;function kb(){let[e,t]=De(null);return Ge(()=>{Yn().then(a=>{t(a)})},[]),[e,a=>{t(a),kn(a)}]}async function Sb(e,t,n){try{if(t===null)return"noupdate";let a=await Mb(e),r=await Yn();r.accountLastSyncedAt=Date.now(),j.debug("settings",t),j.debug("local settings.updatedAt",t.updatedAt),j.debug("remote settings.updatedAt",a.updatedAt),j.debug("last synced at",r.accountLastSyncedAt);let u=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(u=!0),!u&&t.updatedAt>a.updatedAt&&(u=!0),j.debug("isUpload",u),u)return await Fb(e,t),await kn(r),"upload";let o=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(o=!0),!o&&t.updatedAt0&&jt.remove(Nt),a}}function sp(e,t){let n=Lb(),[a,r]=kb();Ge(()=>{!n||!n.token||a&&a.proAutoSync===!1||Db(n)&&Sb(n.token,e,t)},[e,n])}function Db(e){return tn(e)?!0:new Date(e.createTime){jt.get(Nt,null).then(n=>{t(n)})},[t]),e}function Mb(e){return(location.href?.indexOf("popup.html")>0?xa:oe)({responseType:"json",url:ds+"/v1/user/settings",method:"get",headers:{token:e}}).then(n=>n.data)}function Fb(e,t){return(location.href?.indexOf("popup.html")>0?xa:oe)({responseType:"json",url:ds+"/v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(a=>a.data)}function Pl(e){let{onClose:t}=e,[n,a]=De("Original"),[r,u,o,i]=li(()=>{setTimeout(()=>{S("updateGlobalContext",!1)()},250)});sp(r,u);let[s,c]=De(null),[l,g]=De(globalThis.location.href),[p,f]=De("auto"),[d,b]=De(null),C=N=>{a(N.detail)},h=N=>{f(N);let M=T3(l,N,s.sourceLanguageUrlPattern);u(x=>({...x,sourceLanguageUrlPattern:M})),an(N)},A=()=>{g(globalThis.location.href)};Ge(()=>(document.addEventListener(Ru,C,!1),Lt().then(N=>{c(N);let M=pt();f(M);let x=qe();a(x),ci(N.interval)}),document.addEventListener("urlChange",A),()=>{document.removeEventListener("pageTranslatedStatus",C),document.removeEventListener("urlChange",A)}),[]),Ge(()=>{Lt().then(N=>{c(N)})},[r]),Ge(()=>{l&&s&&ln({url:l,config:s}).then(N=>{b(N)})},[l,s]);let S=(N,M,x={})=>()=>{mr({method:N,data:x||{}}),M&&t()},U=()=>{t()},R=()=>{u(N=>({...N,enabled:!N.enabled})),setTimeout(()=>{U()},50)},y=()=>{Rs(),setTimeout(()=>{U()},50)},T=()=>{Rs(),setTimeout(()=>{U()},50)},k=(N="")=>{Ga(!0,N),setTimeout(()=>{t()},50)},v=()=>{ho(w4),setTimeout(()=>{globalThis.close()},50)},E=()=>{fo(),setTimeout(()=>{t()},50)},B=()=>{bo(),setTimeout(()=>{t()},50)},P=()=>{qd(),setTimeout(()=>{t()},50)},w=()=>{yo(),setTimeout(()=>{t()},50)},_=()=>{Wd(),setTimeout(()=>{t()},50)},O=N=>{u(M=>({...M,generalRule:{...M.generalRule,mouseHoverHoldKey:N}}))};return!s||!d?null:V(cl,{openEbookViewerPage:B,openEbookBuilderPage:w,onSwitchTranslationMode:N=>{S("switchTranslationMode",!0,{mode:N})()},onTranslateLocalHtmlFile:P,onTranslateLocalSubtitleFile:_,request:oe,onClose:U,onToggleEnabled:R,onTranslateTheWholePage:S("translateTheWholePage",!0),openOptionsPage:k,openPricingPage:v,onToggleTranslate:S("toggleTranslatePage",!0),onTranslateTheMainPage:S("translateTheMainPage",!0),ontranslateToThePageEndImmediately:S("translateToThePageEndImmediately",!0),onTranslatePage:S("translatePage",!0),onRestorePage:S("restorePage",!1),onTranslatePdf:y,openAboutPage:E,onTranslateLocalPdfFile:T,onSetPageLanguage:h,onUserConfigChange:u,config:s,pageStatus:n,ctx:d,currentUrl:l,currentLang:p,onSetLocalConfig:po,onSetBuildinConfig:Rd,onMouseTriggerChanged:O})}function Pb(e,t){for(let n of t){if(pe()&&!Wu()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}var _l={position:"right",right:0,top:335},Ft={..._l},xi=!1,La=null,Sn=null,Ei=null,Bl=null,br=null,Rl=null,lp=6,bi,yi,dp=null,mp=null;async function Il(){let e=Ve();Rl=await Bd(),Ft=Rl.pagePopupConfig||Ft;let t=document.createElement("div");t.id="immersive-translate-popup",t.setAttribute("style","all: initial"),document.documentElement.appendChild(t);let n=t.attachShadow({mode:"open"});Bl=n;let a=[e.IMMERSIVE_TRANSLATE_PICO_CSS,e.IMMERSIVE_TRANSLATE_COMMON_CSS,e.IMMERSIVE_TRANSLATE_POPUP_CSS,e.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);Pb(n,[a]);let r=document.createElement("div");r.innerHTML=e.IMMERSIVE_TRANSLATE_POPUP_HTML,n.appendChild(r),La=n.querySelector("#immersive-translate-popup-container");let o=n.querySelector("#immersive-translate-popup-btn");Sn=o,Ei=n.querySelector("#mount"),La.setAttribute("style",Ol(Ft)),zl(),o.addEventListener("mousedown",gp),o.addEventListener("touchstart",Rb),globalThis.addEventListener("resize",s=>{La.setAttribute("style",Ol(Ft))})}function _b(){su(null,Ei),Ei.style.display="none",Sn.style.display="block",br=setTimeout(()=>{zl(!0)},2e3)}function cp(e){let t=e.querySelector("#mount"),n=()=>{_b()},a=r=>{r&&r.target&&r.target.id==="immersive-translate-popup-overlay"&&n()};(async()=>{let r=await Lt();su(V(E3,{lang:r.interfaceLanguage,fallbackLang:"zh-CN",translations:Vg,children:V("div",{onClick:a,id:"immersive-translate-popup-overlay",class:"immersive-translate-popup-overlay",children:V("div",{class:"immersive-translate-popup-wrapper",style:Bb(),children:V(Pl,{onClose:n})})})}),t)})().then(()=>{Sn.style.display="none",Ei.style.display="block"})}function Bb(){let e=Nl(),t=e.height,{position:n,top:a,left:r}=Ft,u={position:"fixed"},o=300,i=300,s=100;return yc()&&(n=_l.position,a=_l.top),n==="right"||n==="left"?(u.top=a-s,u.top+o>=t?(u.bottom=30,delete u.top):u.top<=10&&(u.top=10),n==="right"?u.right=0:n==="left"&&(u.left=0)):(n==="top"||n==="bottom")&&(u.left=r-s,u.left+i>=e.width?(u.right=0,delete u.left):u.left<=10&&(u.left=0),n==="top"?u.top=0:n==="bottom"&&(u.bottom=0)),u}function Nl(){return{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}function gp(e){mp=La.getAttribute("style"),bi=e.pageX,yi=e.pageY,br&&clearTimeout(br),xi=!1,Sn.style.opacity="1",Sn.style.transform="none",dp=Sn.getAttribute("style"),globalThis.addEventListener("mousemove",jl),globalThis.addEventListener("mouseup",Ul),globalThis.addEventListener("touchmove",pp),globalThis.addEventListener("touchend",Ti),globalThis.addEventListener("touchcancel",Ti)}function Rb(e){e.preventDefault&&e.preventDefault(),gp(e.changedTouches[0])}function pp(e){jl(e.changedTouches[0])}function Ti(e){e.preventDefault&&e.preventDefault(),Ul(e.changedTouches[0])}function jl(e){e.preventDefault&&e.preventDefault(),xi=!0,La.setAttribute("style",`left:${e.clientX}px;top:${e.clientY}px;transform:scale(1.6);`)}function Ul(e){e.preventDefault&&e.preventDefault(),Ib(),br&&clearTimeout(br),bi=bi||0,yi=yi||0;let t=Math.abs(e.pageX-bi),n=Math.abs(e.pageY-yi);t{zl(!0)},2e3)}function zl(e=!1){Sn.style.opacity="0.4";let t="";Ft.position==="left"?t="translateX(-40%)":Ft.position==="right"?t="translateX(40%)":Ft.position==="top"?t="translateY(-40%)":Ft.position==="bottom"&&(t="translateY(40%)"),Sn.style.transform=t,e&&(Sn.style.transition="transform 0.2s ease-in-out, opacity 0.2s ease-in-out")}function Ib(){globalThis.removeEventListener("mousemove",jl),globalThis.removeEventListener("mouseup",Ul),globalThis.removeEventListener("touchmove",pp),globalThis.removeEventListener("touchend",Ti),globalThis.removeEventListener("touchcancel",Ti)}function Ol(e){let t=Nb(e);return Object.keys(t).map(n=>typeof t[n]=="number"?`${n}:${t[n]}px;`:"").join("")}function Nb(e){let{position:t,...n}=e,a=Nl(),r={};return t==="left"?(r.left=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="right"?(r.right=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="top"?(r.top=0,n.left>a.width?r.left=a.width-100:r.left=n.left):t==="bottom"&&(r.bottom=0,n.left>a.width?r.left=a.width-100:r.left=n.left),r}var Ci=!1;async function fp(e){if(!e){let t=await Lt(),n={url:globalThis.location.href,config:t};e=await ln(n)}e.config.debug&&j.setLevel("debug"),e.isTranslateExcludeUrl?j.debug("detect exclude url, do not inject anything."):(Kn().any||pe())&&e.rule.isShowUserscriptPagePopup&&(Ci||(Ci=!0,Il().catch(t=>{j.error("init popup error",t)})))}async function hp(){Ci||(Ci=!0,Il().catch(e=>{j.error("init popup error",e)}))}var bp=!1,Tp=[()=>{Ye.unbind()}],ql=[...Tp],jb=bt(async()=>{await Ga()},50),Ub=bt(async()=>{await fo()},50),zb=bt(async()=>{await yo()},50),Hb=bt(async()=>{await bo()},50),Cp=bt(e=>{mr({method:e,data:{trigger:"userscript_menu"}})},50),qb=bt(()=>{so();let e=new CustomEvent($n,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},200),Wb=bt(()=>{go();let e=new CustomEvent($n,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},200),$b=bt(()=>{co();let e=new CustomEvent($n,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},200);function Kb(e,t){let n=e.document;if(bp)return;if(bp=!0,pe()||Dd(),n.addEventListener("securitypolicyviolation",ry),document.addEventListener(ge+"DocumentMessageUser",Ap),document.addEventListener(ge+"DocumentMessageUpdateUser",kp),document.addEventListener(ge+"ChangeSuccessService",Sp.bind(null,t)),document.addEventListener(_u,ty.bind(null,t)),n.addEventListener(ge+"EbookLoaded",ay),n.addEventListener(u4,ny),n.addEventListener(o4,uy.bind(null,t)),n.addEventListener("click",r=>{Jb(r,t)}),pe()&&(globalThis.top!=globalThis.self?e.addEventListener("message",Vb,!1):n.addEventListener($n,Gb)),globalThis.top===globalThis.self){let r=ta.rootIframe(Uu);r.handleAsk("getRateLimitDelay",am),r.handleAsk("throttleRequest",Hm)}}function pu(e,t){oy(),Kb(t,e);let n=t.document,a=Yb.bind(null,e);e.rule.fingerCountToToggleTranslagePageWhenTouching>=2&&n.addEventListener("touchstart",a),ql.push(()=>{n.removeEventListener("touchstart",a)}),pe()&&globalThis.top===globalThis.self&&(V0(e.config),iy(e.config)),Rt()&&V0(e.config)}function Gb(e){hp()}function Vb(e){let t=e;t&&t.data&&t.data.payload&&t.data.author===Fu&&Ka(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})}function Yb(e,t){let n=t;n.touches.length==e.rule.fingerCountToToggleTranslagePageWhenTouching?qb():n.touches.length===e.rule.fingerCountToToggleTranslationMaskWhenTouching?$b():n.touches.length===e.rule.fingerCountToToggleTranslagePageOnlyTranslationWhenTouching&&Wb()}function Jb(e,t){let n=e.target;if(!n||!n.getAttribute){Hl(n);return}let a=n.getAttribute("data-immersive-translate-event");a&&We(a,[{name:a}],{...t,sourceLanguage:"none"});let r=n.getAttribute(`data-${J}-action`);if(r)if(r==="retry"){e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),lo(),Hl(n,!0);return}else if(r=="toast-error"){let u=n.getAttribute(`data-${J}-tooltip-text`);Wl(vp.bind(null,t,u||""))}else r=="close-search"&&(e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),Wl(Xb.bind(null,t)));Hl(n)}async function yp(e=!1){let t=document.querySelector(`.${J}-search-recomend`);if(!t||(t.remove(),!e))return;let n=await on();n.generalRule||(n.generalRule={}),n.generalRule.enableSearchEnhancement=!1,await un(n)}async function Qb(){let e=await on(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,a=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(a=e.translationUrlPattern.matches||[]),!n&&a.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await un(e)}async function Zb(){let e=await on(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await un(e)}var xp=0;function Wl(e){let t=Date.now();if(t-xp<2e3)return;xp=t;let n=`${J}-modal`,a=document.querySelector(`.${n}`);if(a?.style.display=="block")return;let r=`${J}-modal-title`,u=`${J}-modal-body`,o=`${J}-modal-footer`;if(a){let i=a.querySelector(`.${r}`),s=a.querySelector(`.${o}`),c=a.querySelector(`.${u}`);e(a,i,c,s)}else{a=document.createElement("div"),a.className=n+" notranslate",a.id=n;let i=document.createElement("div");i.className=J+"-modal-content notranslate",a.appendChild(i);let s=document.createElement("span");s.textContent="\xD7",s.className=J+"-close",i.appendChild(s);let c=document.createElement("div");c.className=r+" notranslate",i.appendChild(c);let l=document.createElement("div");l.className=u+" notranslate",i.appendChild(l);let g=document.createElement("div");g.className=o,i.appendChild(g),document.body.appendChild(a),s.onclick=function(){a.style.display="none"},window.onclick=function(p){p.target==a&&(a.style.display="none")},e(a,c,l,g)}setTimeout(()=>{ey()},100)}function Xb(e,t,n,a,r){let u=wp.bind(null,e);n.innerHTML=`
${ii} ${u("disableConfirm")}
`,a.innerHTML="";let o=document.querySelector(`div[data-${J}-cancel-desc]`),i=document.createElement("p");i.innerHTML=o?_e.sanitize(o.textContent||""):_e.sanitize(u("searchEnhancementNotes")),i.style.cssText="margin-bottom:12px",a.appendChild(i);let s=[{id:"enable-search-enhancement",value:"enable",text:u("enableSearchEnhancement")},{id:"disable-once",value:"once",text:u("disableOnce")},{id:"disable-global",value:"global",text:u("disableGlobal")}];for(let f=0;f${u("option")}`})),a.appendChild(c);let l=a.querySelector(`.${J}-open-enhancement`);l&&(l.onclick=function(){Hd(!0)});let g=document.createElement("button");g.innerText=u("closeModal"),g.className=`${J}-btn ${J}-cancel-btn`;let p=document.createElement("button");p.className=`${J}-btn`,p.innerText=u("saveSettings"),r.innerHTML="",r.appendChild(g),r.appendChild(p),g.onclick=function(){t.style.display="none"},p.onclick=function(){let f=a.getElementsByTagName("input"),d="";for(let b=0;b
1. \u5207\u6362\u5230 ${u} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458`:i+=`

\u5982\u679C\u60A8\u6709\u7591\u95EE\uFF0C\u8BF7\u8054\u7CFB support@immersivetranslate.com`,Wl(vp.bind(null,e,i))}catch(a){j.warn("parse message error",a)}}function ny(e){let t=e;if(j.debug("receive third party message",t),t&&t.detail)try{let n=JSON.parse(t.detail);n&&n.type&&(n.type==="retryFailedParagraphs"?sy({method:"retryFailedParagraphs"}):n.type==="updateCommands"?xo(n.data):n.type==="toggleEnableDefaultAlwaysTranslatedUrls"?Qb():n.type==="toggleEnableInputTranslation"?Zb():Cp(n.type))}catch(n){j.warn("parse message error",n)}}function ay(e){setTimeout(()=>{wi()},10)}function ry(e){Ee.HAS_CSP_ERROR="1"}function uy(e,t){let n=event.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&We(n.name,[{name:n.name}],{...e})}function oy(){ql.forEach(e=>{e()}),ql=Tp}function iy(e){if(pe()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=Yu.commands,r=[...Object.keys(t).filter(u=>u==="toggleTranslatePage").map(u=>{let o=t[u].description,i=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(i=dr(`browser.${o.slice(6,-2)}`,e.interfaceLanguage)),{id:u,title:i}}),{id:rs,title:dr("browser.openEbookViewer",e.interfaceLanguage),key:"e"},{id:us,title:dr("browser.openEbookBuilder",e.interfaceLanguage),key:"m"},{id:ns,title:dr("browser.openOptionsPage",e.interfaceLanguage),key:"o"},{id:as,title:dr("browser.openAboutPage",e.interfaceLanguage),key:"a"}];for(let u of r)GM.registerMenuCommand(u.title,()=>{u.id===ns?jb():u.id===as?Ub():u.id===us?zb():u.id===rs?Hb():Cp(u.id)},u.key)}}function sy(e){Ka(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{j.error("send content message request failed",e,n)});let t=new CustomEvent($n,{detail:e});globalThis.document.dispatchEvent(t)}m();var Ma={};async function $l(){let t=[...document.querySelectorAll(".source-text")].map(a=>a.textContent).join(""),n=await Qe({text:t,minLength:200,pageLangs:[ba(),"en"]});return an(n),n}async function Dp(e){Dt("Translating");let t=pt(),n=ro(),a=[...document.querySelectorAll(".source-text")];if(No(e,t))return;let r=a.filter(u=>u.innerText?.trim()).map((u,o)=>{let i=u.parentElement?.parentElement?.querySelector(".target-text");return at(u,"id",o+""),i&&(ur(i,o)?.remove(),i.appendChild(au(e,o))),{text:u.innerText||"",id:o,from:t,to:e.targetLanguage,url:"https://google.com",fromByClient:n}});document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await ua({sentences:r},e,(u,o,i)=>{let s=i.id,c=ur(document.body,s);if(!c)return;let l=c.parentElement;l&&(c.remove(),u?(l.innerHTML=_e.sanitize(`${u.message}`),Ma[s]={ok:!1,sentence:i}):o&&(l.innerHTML=_e.sanitize(o.text),Ma[s]={ok:!0,sentence:i}),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!u}})})))})}catch(u){throw u}finally{Dt("Translated")}}async function Lp(e){Dt("Translating"),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(Ma),n=[],a=[];for(let r of t){let u=Ma[r];if(!u.ok){let i=document.querySelector(`#error-id-${r}`);if(i){let s=i.parentElement;i.remove(),s&&(delete Ma[r],s.appendChild(au(e,r)),a.push(u.sentence))}}}try{await ua({sentences:a},e,(r,u,o)=>{let i=o.id,s=ur(document.body,i);if(!s)return;let c=s.parentElement;c&&(s.remove(),r?(c.innerHTML=_e.sanitize(`${r.message}`),Ma[i]={ok:!1,sentence:o}):u&&(c.innerHTML=_e.sanitize(u.text),Ma[i]={ok:!0,sentence:o}),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!r}})})))})}catch(r){throw r}finally{Dt("Translated")}}function Kl(){Dt("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}m();var Gl={};async function Mp(){let e=[...document.querySelectorAll("iframe")],t="";for(let a of e){let r=a.contentDocument;if(!r)continue;let u=r.body;if(u&&(t=t+u.innerText||"",t.length>1e3))break}let n=await Qe({text:t,pageLangs:["en"]});return an(n),n}async function Fp(e){Dt("Translating"),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(Gl),n=[];for(let a of t){let r=Gl[a];if(r.error){let o=r.commonAncestorContainer.querySelector(`[${Ou}='${a}']`);o&&o.remove(),n.push(r)}}try{await qo(n,e,e.config.translationMode)}catch{}finally{Dt("Translated")}}function Pp(){let e=[...document.querySelectorAll("iframe")];for(let t of e){let n=t.contentDocument;if(!n)continue;let a=n.querySelectorAll("."+Kt);for(let r of a)r.remove()}Dt("Original")}async function _p(e){Dt("Translating");let t=hn(),n=[...document.querySelectorAll("iframe")],a=[],r=[];for(let i of n){let s=i.contentDocument;if(!s)continue;ir(s,e);let c=s.body;if(!c)continue;let l=cn(e);l.isModifyImage=!1,la({id:t,container:c,filterRule:l,onParagraph:g=>{a.push(g)}})}let u=Io(e.config.translationServices[e.translationService]?.placeholderDelimiters),o=1;for(let i of a){let s=Uo(i.flatNodes,{isPreWhitespace:i.isPreWhitespace||!1,delimiters:u,stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(l=>l.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)});if(!s)continue;i.variables=s?.variables||{},i.text=s?.text,i.id=(o++).toString();let c=await q0(i,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:u,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});c&&(r.push(c),Gl[c.id]=c)}a=[],document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await qo(r,e,e.config.translationMode)}catch{}finally{Dt("Translated")}}m();var ly=new AbortController,{signal:cy}=ly,Zl=0,Xl=0,Vl=!1,Yl=0,fu=!1,Fa,Bp=0,Pa=[];function vi(e,t){dy();let n=e,a=n.config,r=a.generalRule.mouseHoverHoldKey==="Off",u=a.generalRule.mouseHoverHoldKey==="Auto",o=bt(l=>{if(Vl==!1&&Math.abs(l.clientX-Zl)+Math.abs(l.clientY-Xl)>3&&(Yl<2?Yl+=1:Vl=!0),Zl=l.clientX,Xl=l.clientY,u||fu&&!Fa){let g=jp(n.rule,t);if(g){if(ec(g))return;Op(n,g)}}},u?700:300),i=l=>{let g=l.target;ec(g)||Op(n)},s=l=>{let g=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=Ye.getPressedKeyCodes();if(p.length>1&&Ye[g]&&(Bp=Date.now(),fu=!1),p.length===1&&Ye[g]){let f=Date.now();fu=!0,Fa&&clearTimeout(Fa),Fa=setTimeout(()=>{let d=Bp-f;d>0&&d<=150?fu=!1:i(l),Fa=void 0},150)}};if(Pa.push(()=>{Fa&&clearTimeout(Fa)}),r)return;Jl("mousemove",o,t),Pa.push(()=>{t.removeEventListener("mousemove",o)});function c(){Vl=!1,Yl=0,o.cancel()}if(u)Jl("blur",c,t),Pa.push(()=>{t.removeEventListener("blur",c)});else{let l=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",g=["ctrl","alt","shift","cmd","command","option","control"];Jl("keyup",Rp,t),Pa.push(()=>{t.removeEventListener("keyup",Rp)}),g.includes(l)?Ye("*","mouseHover",s):Ye(a.generalRule.mouseHoverHoldKey,"mouseHover",i),Ye.setScope("mouseHover"),Pa.push(()=>{Ye.deleteScope("mouseHover")})}}function dy(){Pa.forEach(e=>e()),Pa=[]}function Rp(e){fu=!1}function Jl(e,t,n=window){return n.addEventListener(e,t,{signal:cy})}function Op(e,t,n=window){if(t=t||jp(e.rule,n),!t){j.debug("can not find selection part!");return}if(ec(t)){j.debug("exclude dom");return}qg(e,t);let a=Ko();a?.currentUrl!==window.location.href&&(Nn(),K0(e)),a&&(a.setupMouseHoverListener=vi);let r=cn(e);r.excludeSelectors=[],r.selectors=[];let u=!1;la({id:a.id,container:t,filterRule:r,force:!0,onParagraph:o=>{uu(a,o,!0).then(i=>{if(i&&!u){u=!0;let s=Date.now();je(s4,s),We("mouse_hover_translate",[{name:"mouse_hover_translate"}],{...e,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function jp(e,t){return my(Zl,Xl,e,t)}function my(e,t,n,a){let r=gg(e,t,n,a);if(r==null)return;let u=()=>{let s=a.document.elementFromPoint(e,t);if(!s)return;let c=pg(s,e,t);return c===s?s.nodeName==="BUTTON"?s:void 0:Np(c,n)},o=()=>{try{r.setStartBefore(r.startContainer),r.setEndAfter(r.startContainer)}catch(c){j.debug("get mouse over word fail",c)}let s=r.getBoundingClientRect();if(!(s.left>e||s.rightt||s.bottomn[l]=[l,...n[l]||[]]);let a=t.inputStartingTriggerKeyAlias[t.inputStartingTriggerKey]||[];a.includes(t.inputStartingTriggerKey)||a.unshift(t.inputStartingTriggerKey),n[t.inputTargetLanguage]=[...a,...n[t.inputTargetLanguage]];let r=t.inputTrailingTriggerKeyTimeout;Kn().any&&(r=t.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:t.inputTrailingTriggerKeyRepeatTimes,triggerKey:t.inputTrailingTriggerKey,triggerTimeout:r,codePrefix:t.inputStartingTriggerKey,codeAlias:n,flatAlias:Object.values(n).flat(),codePrefixAlias:t.inputStartingTriggerKeyAlias},o=0,i=Date.now();Ai&&self.removeEventListener("keydown",Ai),Ai=s,self.addEventListener("keydown",Ai);function s(l){if(yr||ki===!1)return;let g=l,p=g.target||g.srcElement,f=p?.tagName;(p?.isContentEditable||f=="INPUT"||f=="SELECT"||f=="TEXTAREA")&&(My(l,u.triggerKey,u.codePrefixAlias)?c(l):o=0)}async function c(l){Date.now()-i=u.triggerTimes&&by()&&(o=0,hy(l,e,u))}Fy(e)}function gy({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let a=[],r=n[e]||[];r.includes(e)||r.unshift(e);for(let u of r){let o=t.map(i=>{let s=u+i;return r.includes(i)||(s+=" "),s});a.push(...o)}return new RegExp(a.join("|"))}function zp(e,t){for(let[n,a]of Object.entries(t))if(a.includes(e))return n;return""}var xr;function py(e){let t=e.parentElement;if(!t)return;xr=document.createElement("div"),xr.className=J+"-input",xr.innerHTML=`
`,t.appendChild(xr);let n=t,a=!1;do{let r=getComputedStyle(n).position;if(["fixed","absolute","relative"].includes(r)){a=!0;break}n=n.parentElement}while(n);if(n=t,!a)do{if(getComputedStyle(n).position==="static"){n.style.position="relative";break}n=n?.parentElement||null}while(n)}function fy(){xr&&xr.remove()}async function hy(e,t,n){if(!yr)try{let p=function(){i=t.config.inputTargetLanguage;let d=o.split(" ")[0];d&&d[0]&&(d=d[0].toLowerCase()+d.slice(1)),d.trim()&&n.flatAlias.includes(d)?(i=zp(d,n.codeAlias),u=o.slice(d.length+1)):u=o},f=function(){i="";let d=gy(n),b=o.split(d);if(b.length<2)return;if(u=b[b.length-1],r=b[0],b.length>2){let h=o.lastIndexOf(u),A=o.slice(0,h).lastIndexOf(b[b.length-2]);r=o.slice(0,A+b[b.length-2].length)}if(r.endsWith(n.codePrefix))return;let C=o.slice(r.length+1,o.indexOf(u)).trim();if(i=zp(C,n.codeAlias),!i){j.warn("not found alias",C);return}},a=document.activeElement;yr=!0;let r="",u="",o=Er(a)||"",i=t.config.inputTargetLanguage;n.codePrefix==="none"?p():(f(),!i&&t.config.enableInputTranslationWithoutTriggerKey&&p());let s=xy(u,n),c=await Qe({text:s,pageLangs:["en"]});j.debug("translateContent",s,c);let l={text:s||"",id:0,from:c,to:i,url:"https://google.com",fromByClient:c};if(!l.text)return;if(t.config.isShowInputTranslationConsent&&!Up){Up=!0;let d=await Py(t);if(e.target&&e.target.focus(),d==="open_settings"){Ga(!0,"#input");return}else if(d==="open_learn_more"){ho("https://immersivetranslate.com/docs/input/");return}else if(d==="disable_once"||d==="disable_forever"){if(ki=!1,d==="disable_forever"){let b=await on();b.enableInputTranslation=!1,b.isShowInputTranslationConsent=!1,await un(b)}else if(d==="disable_once"){let b=await on();b.isShowInputTranslationConsent=!1,await un(b)}return}else if(d==="close_disable_once"||d==="close_disable_forever"){if(ki=!1,d==="close_disable_forever"){let b=await on();b.enableInputTranslation=!1,b.isShowInputTranslationConsent=!1,await un(b)}return}else if(d==="enable"){let b=await on();b.enableInputTranslation=!0,b.isShowInputTranslationConsent=!1,await un(b)}else if(d==="close_enable"){let b=await on();b.enableInputTranslation=!0,await un(b)}}py(a),je(os,Date.now());let g=await ka(l,{...t,translationService:t.inputTranslationService});Ly(t),Dy(a,r+g.text),yr=!1}catch(a){throw yr=!1,a}finally{yr=!1,fy()}}function by(){let e=document.activeElement;if(!e)return!1;if(Si(e)){let t=e.selectionStart||0,n=e.value.length,r=e.value.split(` +`).reverse()[0].trim(),u=n<=t;return j.debug("cursorPosition",t,"textLength",n),j.debug("input isTail",u,"tailHasText",r),u&&!!r}else{let t=window.getSelection();if(!t)return j.debug("No active selection found."),!1;if(t.rangeCount>0){let n=t.getRangeAt(0),a=n.startContainer;if(a.nodeType===Node.TEXT_NODE){let r=yy(a,e);j.debug("Current text node:",a.textContent),j.debug("Cursor position within text node:",n.startOffset);let u=a.textContent?.length===n.startOffset&&r,o=a.textContent?.trim();return j.debug("editdiv isTail",u,"tailHasText",o),u&&!!o}else j.debug("Cursor is not within a text node.")}}return!1}function yy(e,t){let n;function a(r){if(r.nodeType===Node.TEXT_NODE)n=r;else for(let u of r.childNodes)a(u)}return a(t),n==e}function xy(e,t){let{triggerTimes:n,triggerKey:a}=t,r=0,u=" ";a.length==1?(r=n,u=a):a.toLowerCase()=="space"&&(r=n);let o=e.length;for(let i=e.length-1;i>=e.length-r;i--){if([10,8629].includes(e[i].charCodeAt(0))){o--;continue}if(![...t.codePrefixAlias[a]||[],u].includes(e[i]))break;o--}return e.length-o<3&&[".","\u3002"].includes(e[o-1])&&o--,e.slice(0,o)}function Ey(e,t){let n=t.innerHTML,a=Er(t);return{html:n.replace(a,e),text:e}}function Hp(e,t,n=!1){let a=Er(t);return n?a.trim().endsWith(e.text.trim()):a.trim()==e.text.trim()}function Er(e){return e.value||e.innerText||e.textContent}async function _a(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function Ty(e,t,n){await _a(10);let a=new DataTransfer;e.forEach(r=>{r==="plain"&&a.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:a,bubbles:!0,cancelable:!0})),a.clearData(),await _a(10)}async function Cy(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await _a(10))}async function wy(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await _a(20),(t.value||t.value==="")&&(t.value=e.text)}async function vy(e,t){Si(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await _a(20))}var Ay=[Ty.bind(null,["plain"])];function ky(e){let t;Si(e)?t=new InputEvent("beforeinput",{bubbles:!0,cancelable:!0,inputType:"deleteContent"}):t=new KeyboardEvent("keydown",{bubbles:!0,cancelable:!0,keyCode:8,which:8,location:0,key:"Backspace"}),e.dispatchEvent(t)}function Si(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function Sy(e){if(Si(e))return;e.focus();let t=window.getSelection();if(!t)return;let n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}async function Dy(e,t){await Sy(e),await _a(50);let n=Ey(t,e);ky(e),j.debug("clearContent",Er(e)),await _a(50);for(let a of[...Ay,wy,vy,Cy])if(await a(n,e),j.debug("setContent",a.name,Hp(n,e),Er(e),n),Hp(n,e))break}function Ly(e){We("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage}}],e)}function My(e,t,n){let a="";e&&e.code&&(a=e.code.toLowerCase());let r="";e&&e.key&&(r=e.key.toLowerCase());let u=e.keyCode,o=n[t]||[];return u===229&&t!=="space"?!1:!!(o.includes(a)||o.includes(r)||a===t||r===t)}async function Fy(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await St(t,"")||Number(await St(os,0))>0)return;let r=e.rule.inputTutorialsSelectors,u=e.rule.inputTutorialsText;if((r?.length||0)>0&&u)for(let o=0;o{By()},100),new Promise(c=>{let l=c;if(u){let T=u.querySelector(`.${n}`),k=u.querySelector(`.${r}`),v=u.querySelector(`.${a}`)}else{u=document.createElement("div"),u.className=t+" notranslate",u.id=t;let T=document.createElement("div");T.className=J+"-modal-content notranslate",u.appendChild(T);let k=document.createElement("span");k.textContent="\xD7",k.className=J+"-close",T.appendChild(k),o=document.createElement("div"),o.className=n+" notranslate",T.appendChild(o),s=document.createElement("div"),s.className=a+" notranslate",T.appendChild(s),i=document.createElement("div"),i.className=r,T.appendChild(i),document.body.appendChild(u),k.onclick=function(){S(),c("close")},window.onclick=function(v){v.target==u&&(u.style.display="none",c("close"))}}document.addEventListener("keydown",y);let g=_y.bind(null,e);o.innerHTML=`
${ii} ${g("modalEnableInputTranslationTitle")}
`,s.innerHTML="";let p=document.createElement("p");p.innerHTML=g("modalEnableInputTranslationDesc",{1:"https://immersivetranslate.com/docs/input/"}),p.style.cssText="margin-bottom:12px",s.appendChild(p);let f=document.createElement("div");f.style.cssText="margin-bottom: 12px;",f.innerHTML=_e.sanitize(g("disableInputTranslationTips",{option:`${g("option")}`,learnMore:`${g("learnMore")}`})),s.appendChild(f);let d=[{id:"enable-search-enhancement",value:"enable",text:g("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:g("disableOnce")},{id:"disable-global",value:"global",text:g("disableGlobal")}];for(let T=0;T{ua({sentences:r},{...e,translationService:"google"},(s,c,l)=>{if(s)return o([]);let g=c?.id||0,p=n[g];p&&p.className==J+"-search-title-wrapper"&&(p.innerHTML+=_e.sanitize(`
${c?.text}
`,{ADD_ATTR:["target"]}))})})}function Di(e,t,n){t&&We(t.key,[{name:t.key}],{...e,sourceLanguage:t.sourceLanguage||n})}function nc(e,t,n,a){let r=n.querySelectorAll('[translate="true"]');return Ry(e,t,[...r],a),n}async function ac(e,t){let a=(await oe({url:Oy(e),method:"GET",responseType:"raw",headers:{"cache-control":"no-cache","content-type":"application/xml","Sec-Fetch-Site":"none",accept:"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}})).body,u=new DOMParser().parseFromString(a,"text/xml"),o=[],i=u.querySelectorAll("item");for(let s=0;s${e.cancelDescription}
`:""}

\u82F1\u6587\u641C\u7D22 - ${n} \u7684\u76F8\u5173\u65B0\u95FB:
+ ${n} \u7684\u76F8\u5173\u65B0\u95FB:

${o}
`.replaceAll(` -`,""),{ADD_ATTR:["target"]});let c=r.querySelector(`.${J}-search-more`);return c&&(c.onclick=()=>{let l=r.querySelector(`.${J}-expand-items`);l.style.display=="none"?(l.style.display="block",c.innerText="\u66F4\u591A\u76F8\u5173\u65B0\u95FB"):window.open(Hp(n))}),r}function qp(e,t){let n=e.style;return t.map((a,r)=>{let u=a.title||"",o=a.source||"",i=u.split("-");return i.length>1&&(o=i[i.length-1].trim(),i=i.slice(0,i.length-1)),u=i.join("-"),u=u.trim(),`
${o}
+`,""),{ADD_ATTR:["target"]});let c=r.querySelector(`.${J}-search-more`);return c&&(c.onclick=()=>{let l=r.querySelector(`.${J}-expand-items`);l.style.display=="none"?(l.style.display="block",c.innerText="\u66F4\u591A\u76F8\u5173\u65B0\u95FB"):window.open(qp(n))}),r}function Wp(e,t){let n=e.style;return t.map((a,r)=>{let u=a.title||"",o=a.source||"",i=u.split("-");return i.length>1&&(o=i[i.length-1].trim(),i=i.slice(0,i.length-1)),u=i.join("-"),u=u.trim(),`
${o}
-
${xg(a.pubDate||"")}
+
${Eg(a.pubDate||"")}
`}).join(` -`)}function $p(e,t){if(!e.keyword)return;let n=e.keyword.value||"";for(let a=0;anew RegExp(a.urlMatch).test(t))}async function Gp(e){if(Kn().any)return;if(!e.rule.enableSearchEnhancement){j.debug("enable is false");return}let t=Iy(e.rule.searchEnhancementConfig||[],e.url);if(!t){j.debug("not found siteConfig",e.url);return}let n=$p(t,e.url);if(!n){j.debug("not found keyword",e.url);return}t.id=="google"?jy(e,t,n):Ny(e,t,n)}async function Ny(e,t,n){let a=await Qe({text:document.title,pageLangs:[pt(),"en"]});t.selector&&setTimeout(async()=>{let r=document.querySelector(t.selector);if(!r){j.debug("selector node not found",t.selector);return}let u=await ac(n,t.showCount);if(u&&u.length<=0){j.debug("list not found");return}let o=await rc(t,u,n,t.showCount);if(!o){j.debug("getInseredNode none");return}o.style.cssText=t.style.container||"";let i=t.selectorAction||"appendChild";i=="insertBefore"?r.parentElement?.insertBefore(o,r):i=="appendChild"?r.appendChild(o):i=="replace"&&r?.replaceWith(o),nc(e,t,o,a),Di(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a)},t.delayTime||0)}async function jy(e,t,n){let a=await Qe({text:n,pageLangs:["en"]});if(Di(e,{key:"detect_search_action"},a),!["zh-CN","zh-TW"].includes(a))return;j.debug("use dual search");let r=!1;if(new URL(e.url).searchParams.get("tbm")==="nws")r=!0;else if(!Kp(document.body))return;let o=document.querySelector("#rhs");if(!o){let i=document.querySelector("#rcnt");if(!i)return;let s=i.children;if(s&&s.length>1)o=s[1];else{let c=s[0];o=document.createElement("div"),o.id="rhs",o.style.maxWidth="372px",o.style.marginLeft="50px",i.insertBefore(o,c.nextSibling)}}if(r||Kp(document.body)){j.debug("find story");let i=await Wp(e,n,a);j.debug("enKeyword",i);let s=await ac(i,t.showCount);if(j.debug("news list",s),s&&s.length<=0)return;let c=await rc(t,s,i,t.showCount);if(!c)return;Di(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a),nc(e,t,c,a),o.insertBefore(c,o?.firstChild)}}function Kp(e){let t=e.querySelectorAll("[aria-level='2'][role=heading]");if(!t)return!1;for(let n of t){let a=(n?.textContent||"").trim();if(a.indexOf("\u7126\u70B9\u65B0\u95FB")>=0||a.indexOf("\u7126\u9EDE\u65B0\u805E")>=0||a.indexOf("Top stories")>=0)return!0}return!1}m();function Vp(e){e.state.translationMode="translation",cr(e)}var we=null,Li={},Tr,Yp=!1;async function lo(e){if(qe()==="Original"){let t={translationMode:void 0};Tr&&(t.translationTheme=Tr),we&&(t={...we.state,...t}),await wt(Ze(),t),await rn(we,e)}else(qe()==="Translated"||qe()==="Error")&&Ea()}async function co(){if(we=await wt(Ze(),{}),we.rule.isEbookBuilder)return Mp(we);if(we.rule.isSubtitleBuilder)return Dp(we);Wg()}async function mo(e){if(qe()==="Original")we=await wt(Ze(),{}),Tr||(Tr=we.state.translationTheme),we=await wt(Ze(),{translationTheme:"mask"}),await rn(we,e);else if(qe()==="Translated"){let t=hg().filter(r=>r.contentDocument?.body).map(r=>r.contentDocument.body),n=[we.mainFrame,...t],a=we?.state.translationTheme;for(let r of n){let u=nr(r,Ua,!0);a==="mask"?u!=="none"?at(r,Ua,"none",!0):at(r,Ua,"mask",!0):u!=="mask"?at(r,Ua,"mask",!0):at(r,Ua,"none",!0)}}}async function _s(){let e=await wt(Ze(),{});return e.rule.isSubtitleBuilder?$l():qg(e)}function Uy(e){qe()==="Original"?Vp(e):Nn()}function zy(e){qe()==="Original"?Sp(e):Kl()}function Hy(e){qe()==="Original"?cr(e):Nn()}async function Ea(){Os("");let e=await wt(Ze(),{});if(e.rule.isSubtitleBuilder){Kl();return}else e.rule.isEbookBuilder&&Fp();Nn()}async function rn(e,t){qe()!=="Original"&&await Ea(),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"translateStart",payload:{}})})),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"targetLanguage",payload:{targetLanguage:e.targetLanguage}})})),Li[e.translationService]||(Li[e.translationService]=!0,Je()||E0(e).catch(a=>{j.warn("init translation engine error",a)}));let n={};if(t&&t.trigger&&(n.trigger=t.trigger),We("translage_page_daily",[{name:"translage_page_daily",params:n}],e),We("translate_page",[{name:"translate_page",params:n}],{...e,sourceLanguage:pt()}),e.rule.isSubtitleBuilder)return zy(e);if(e.rule.isEbookBuilder)return Pp(e);if(e.rule.isPdf)return Uy(e);Hy(e),Os("yes")}async function Dd(e){qe()==="Original"?await go(e):(qe()==="Translated"||qe()==="Error")&&(we=await wt(Ze(),{}),we.state.translationArea!=="main"?await go(e):Ea())}async function go(e){we=await wt(Ze(),{translationArea:"main"}),await rn(we,e)}async function Bs(e){we=await wt(Ze(),{translationArea:"body"}),await rn(we,e)}async function po(e){if(qe()==="Original"){let t=await wt(Ze(),{translationMode:"translation"});await rn(t,e)}else(qe()==="Translated"||qe()==="Error")&&await Ea()}async function Ld(e){if(we=await wt(Ze(),{translationMode:void 0}),We("switch_translation_mode",[{name:"switch_translation_mode",params:{mode:e}}],{...we,sourceLanguage:"unknown"}),qe()==="Original"){rn(we);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(e)}async function Md(e){if(qe()==="Original")await Bs(e);else if(qe()==="Translated"||qe()==="Error"){let t={};we&&we.state&&(t=we.state),we=await wt(Ze(),t),we.state.translationArea!=="body"?(we.state.translationArea="body",we=await wt(Ze(),we.state),await rn(we,e)):Ea()}}async function Fd(e){we=await wt(Ze(),{translationStartMode:"immediate"}),await rn(we,e)}async function Jp(){let e=await wt(Ze(),{});if(!sn(e.url,e.config.inputStyleBlockUrls)){let n=Ve().IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS;ia(document,n,"immersive-translate-input-injected-css")}e.rule.isPdf||e.rule.isSubtitleBuilder||e.rule.isEbookBuilder||e.rule.isEbook||e.config.enableInputTranslation&&tc(e)}async function wi(){let e=await wt(Ze(),{});if(j.debug("init page ctx",e),e.rule.isSubtitleBuilder){$l();return}if(e.rule.isEbookBuilder){Lp();return}if(Gp(e),Tr||(Tr=e.state.translationTheme),e.rule.urlChangeDelay&&await Cr(e.rule.urlChangeDelay),e.rule.waitForSelectors&&e.rule.waitForSelectors.length>0&&await qy(e.rule.waitForSelectors,e.rule.waitForSelectorsTimeout),e.rule.isInjectOptionsUrl){let a=jd(),r=document.createElement("meta");r.name="immersive-translate-options-url",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(u){j.warn("inject options url failed",u)}}if(e.rule.isInjectVersion){let a=nn(),r=document.createElement("meta");r.name="immersive-translate-version",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(u){j.warn("inject version failed",u)}}if(e.rule.globalMeta&&Object.keys(e.rule.globalMeta).forEach(r=>{let u=document.createElement("meta");u.name=r,u.content=e.rule.globalMeta[r],document.head.appendChild(u)}),e.rule.initialGlobalAttributes&&Cg(document.body,e.rule.initialGlobalAttributes),e.rule.isPdf){rn(e);return}if(e.rule.isOnBoardingPage){document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"currentConfig",payload:{enableDefaultAlwaysTranslatedUrls:!!e.config.enableDefaultAlwaysTranslatedUrls}})}));let a=document.querySelector("#immersiveTranslateEnableDefaultAlwaysTranslatedUrlsValue");a&&(a.value="helloworld",a.value=String(!!e.config.enableDefaultAlwaysTranslatedUrls),a.dispatchEvent(new Event("change")))}Yp||(Yp=!0,globalThis.top!==globalThis.self&&e.rule.useIframePostMessage&&await Zd());let t=e.sourceLanguage;if(t==="auto"?t=await _s():an(t),e.rule.isInjectMeta)try{let a=await Eg(t),r=document.createElement("meta");r.name="immersive-translate-meta",r.content=ji(JSON.stringify(a)),document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(a){j.warn("inject meta failed",a)}let n=e.state.isAutoTranslate||e.isTranslateUrl||e.rule.isPdf;if(!n&&!e.isTranslateExcludeUrl&&(j.debug(`detect page language: ${e.url} ${t}`),Xn(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto"||Xd(t,e.config.translationLanguagePattern)&&(n=!0,j.debug(`match language pattern ${t}, auto translate`))),e.rule.isEbookBuilder&&(n=!1),!e.rule.isPdf&&Br()&&vi(e,window),n)we.state.isAutoTranslate=!0,rn(we);else if(j.debug("do not auto translate",e),e.rule.initTranslationServiceAsSoonAsPossible&&e.translationService==="deepl"){if(Xn(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto")return;e.config&&e.config.translationServices&&e.config.translationServices.deepl&&e.config.translationServices.deepl.authKey&&typeof e.config.translationServices.deepl.authKey=="string"&&e.config.translationServices.deepl.authKey.startsWith("immersive_")&&(Li[e.translationService]||(Li[e.translationService]=!0,Je()||E0(e).catch(a=>{j.warn("init translation engine error",a)})))}}async function wt(e,t){let n=Object.keys(t);if(we){let a={url:e,config:we.config,state:{...we.state,...t}};we=await ln(a)}else{let a=await Lt(),r=t;n.length===0&&(r=void 0),we=await ln({url:e,config:a,state:r})}return we}async function Pd(){let e=await Lt(),t;we&&we.state&&(t=we.state);let n={url:Ze(),config:e,state:t},a=await ln(n);we=a;let r=Ko(),u=[];return r?u=r.allInlineWindows||[window]:u=[window],u.forEach(o=>{fu(a,o),Br()&&vi(a,o),tc(a)}),a}function qy(e,t=3e3){return new Promise((n,a)=>{let r=t?setTimeout(()=>{n(new Error("timeout"))},t):void 0,u=setInterval(()=>{e.every(i=>document.querySelector(i)!==null)&&(clearInterval(u),r&&clearTimeout(r),n(null))},50)})}async function vp(e){let t=e.detail;Nt.set(en,t);let n=await Nt.get(cs,!1);Nt.set(cs,!1),document.dispatchEvent(new CustomEvent("immersiveTranslateDocumentMessageUserResult",{detail:n?"close":"success"}))}function Ap(e){j.debug("update user info",e);let t=e.detail;Nt.set(en,t)}async function kp(e){let t=await on();if(t.translationService)return;let n=e.config.translationService,a=["bing","transmart","google"];a.sort((u,o)=>u===n?-1:o===n?1:0);let r=await tg(a,e);if(!r){Ur("no_avaliable_translation_service",[{name:"no_avaliable_translation_service"}]);return}e.translationService!==r&&(t.translationService=r,un(t),e.translationService=r,Ur("change_default_translation_service",[{name:"change_default_translation_service",params:{translation_service:r}}]))}async function Qp(e){if(!e){let n=await Lt();e=await ln({config:n,url:Ze()})}e.config.debug?j.setLevel("debug"):j.setLevel("info"),globalThis.top!=globalThis.self||await pp().catch(n=>{j.error(`init popup page error: ${n}`)}),e.isTranslateExcludeUrl||(e.rule.isEbook||e.rule.isEbookBuilder||await wi(),globalThis.top===globalThis.self&&k3()),await Jp()}m();var bu={capture:!0,once:!0,passive:!0},ef=()=>document.readyState==="interactive"||document.readyState==="complete",Wy=e=>document.readyState===e,yu=(e,t)=>Wy(e)||ef()?(t(e),!0):!1,$y=()=>new Promise(e=>{yu("loading",e)||document.addEventListener("readystatechange",()=>{document.readyState==="loading"&&e("loading")},bu)}),Ky=()=>new Promise(e=>{yu("interactive",e)||document.addEventListener("readystatechange",()=>{document.readyState==="interactive"&&e("interactive")},bu)}),Gy=()=>new Promise(e=>{yu("complete",e)||document.addEventListener("readystatechange",()=>{document.readyState==="complete"&&e("complete")},bu)}),Zp=()=>new Promise(e=>{yu("domready",e)||document.addEventListener("DOMContentLoaded",()=>{e("domready")},bu)}),Xp=()=>new Promise(e=>{yu("load",e)||window.addEventListener("load",()=>{e("load")},bu)}),tf={};Object.defineProperties(tf,{state:{get:function(){return document.readyState}},loading:{get:function(){return $y()}},interactive:{get:function(){return Ky()}},complete:{get:function(){return Gy()}},window:{get:function(){return Xp()}},load:{get:function(){return Xp()}},domready:{get:function(){return Zp()}},dom:{get:function(){return Zp()}},ready:{get:function(){return ef()}}});var nf=tf;m();m();var af={NOT_FUNCTION:"Your executor is not a function. functions and promises are valid.",FAILED_TO_WAIT:"Failed to wait"};function Vy(e){return()=>Promise.resolve().then(()=>e()).catch(t=>{throw t})}function Yy(e){if(typeof e!="function")throw new Error(af.NOT_FUNCTION)}var uc=class{_interval;_timeout;_stopOnFailure;_backoffFactor;_backoffMaxInterval;_Console;originalStacktraceError;_userMessage;_verbose;_isWaiting;_isResolved;_executeFn;start;promise;resolve;reject;_lastError;constructor({interval:t=100,timeout:n=1e3,stopOnFailure:a=!1,verbose:r=!1,backoffFactor:u=1,backoffMaxInterval:o,message:i=""}={}){this._interval=t,this._timeout=n,this._stopOnFailure=a,this._isWaiting=!1,this._isResolved=!1,this._verbose=r,this._userMessage=i,this.originalStacktraceError=new Error,this._Console=console,this._backoffFactor=u,this._backoffMaxInterval=o||n,this.start=+Date.now()}tryEvery(t){return this._interval=t,this}stopAfter(t){return this._timeout=t,this}execute(t){return this._applyPromiseHandlers(),Yy(t),this._executeFn=Vy(t),this.start=Date.now(),this._isWaiting=!0,this._log("starting to execute"),this._runFunction(),this.promise}getPromise(){return this.promise}isResolved(){return this._isResolved}isWaiting(){return this._isWaiting}stopOnFailure(t){return this._stopOnFailure=t,this}_applyPromiseHandlers(){this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}_timeFromStart(){return Date.now()-this.start}_shouldStopTrying(){return this._timeFromStart()>this._timeout}_executeAgain(){this._log("executing again");let t=this._interval,n=t*this._backoffFactor;this._interval=n>this._backoffMaxInterval?this._backoffMaxInterval:n,setTimeout(this._runFunction.bind(this),t)}_failedToWait(){let t=`${af.FAILED_TO_WAIT} after ${this._timeFromStart()}ms`;if(this._userMessage&&(t=`${t}: ${this._userMessage}`),this._lastError){this._lastError.message=`${t} +`)}function Kp(e,t){if(!e.keyword)return;let n=e.keyword.value||"";for(let a=0;anew RegExp(a.urlMatch).test(t))}async function Vp(e){if(Kn().any)return;if(!e.rule.enableSearchEnhancement){j.debug("enable is false");return}let t=Iy(e.rule.searchEnhancementConfig||[],e.url);if(!t){j.debug("not found siteConfig",e.url);return}let n=Kp(t,e.url);if(!n){j.debug("not found keyword",e.url);return}t.id=="google"?jy(e,t,n):Ny(e,t,n)}async function Ny(e,t,n){let a=await Qe({text:document.title,pageLangs:[pt(),"en"]});t.selector&&setTimeout(async()=>{let r=document.querySelector(t.selector);if(!r){j.debug("selector node not found",t.selector);return}let u=await ac(n,t.showCount);if(u&&u.length<=0){j.debug("list not found");return}let o=await rc(t,u,n,t.showCount);if(!o){j.debug("getInseredNode none");return}o.style.cssText=t.style.container||"";let i=t.selectorAction||"appendChild";i=="insertBefore"?r.parentElement?.insertBefore(o,r):i=="appendChild"?r.appendChild(o):i=="replace"&&r?.replaceWith(o),nc(e,t,o,a),Di(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a)},t.delayTime||0)}async function jy(e,t,n){let a=await Qe({text:n,pageLangs:["en"]});if(Di(e,{key:"detect_search_action"},a),!["zh-CN","zh-TW"].includes(a))return;j.debug("use dual search");let r=!1;if(new URL(e.url).searchParams.get("tbm")==="nws")r=!0;else if(!Gp(document.body))return;let o=document.querySelector("#rhs");if(!o){let i=document.querySelector("#rcnt");if(!i)return;let s=i.children;if(s&&s.length>1)o=s[1];else{let c=s[0];o=document.createElement("div"),o.id="rhs",o.style.maxWidth="372px",o.style.marginLeft="50px",i.insertBefore(o,c.nextSibling)}}if(r||Gp(document.body)){j.debug("find story");let i=await $p(e,n,a);j.debug("enKeyword",i);let s=await ac(i,t.showCount);if(j.debug("news list",s),s&&s.length<=0)return;let c=await rc(t,s,i,t.showCount);if(!c)return;Di(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a),nc(e,t,c,a),o.insertBefore(c,o?.firstChild)}}function Gp(e){let t=e.querySelectorAll("[aria-level='2'][role=heading]");if(!t)return!1;for(let n of t){let a=(n?.textContent||"").trim();if(a.indexOf("\u7126\u70B9\u65B0\u95FB")>=0||a.indexOf("\u7126\u9EDE\u65B0\u805E")>=0||a.indexOf("Top stories")>=0)return!0}return!1}m();function Yp(e){e.state.translationMode="translation",cr(e)}var we=null,Li={},Tr,Jp=!1;async function so(e){if(qe()==="Original"){let t={translationMode:void 0};Tr&&(t.translationTheme=Tr),we&&(t={...we.state,...t}),await wt(Ze(),t),await rn(we,e)}else(qe()==="Translated"||qe()==="Error")&&Ta()}async function lo(){if(we=await wt(Ze(),{}),we.rule.isEbookBuilder)return Fp(we);if(we.rule.isSubtitleBuilder)return Lp(we);$g()}async function co(e){if(qe()==="Original")we=await wt(Ze(),{}),Tr||(Tr=we.state.translationTheme),we=await wt(Ze(),{translationTheme:"mask"}),await rn(we,e);else if(qe()==="Translated"){let t=bg().filter(r=>r.contentDocument?.body).map(r=>r.contentDocument.body),n=[we.mainFrame,...t],a=we?.state.translationTheme;for(let r of n){let u=nr(r,za,!0);a==="mask"?u!=="none"?at(r,za,"none",!0):at(r,za,"mask",!0):u!=="mask"?at(r,za,"mask",!0):at(r,za,"none",!0)}}}async function _s(){let e=await wt(Ze(),{});return e.rule.isSubtitleBuilder?$l():Wg(e)}function Uy(e){qe()==="Original"?Yp(e):Nn()}function zy(e){qe()==="Original"?Dp(e):Kl()}function Hy(e){qe()==="Original"?cr(e):Nn()}async function Ta(){Os("");let e=await wt(Ze(),{});if(e.rule.isSubtitleBuilder){Kl();return}else e.rule.isEbookBuilder&&Pp();Nn()}async function rn(e,t){qe()!=="Original"&&await Ta(),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"translateStart",payload:{}})})),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"targetLanguage",payload:{targetLanguage:e.targetLanguage}})})),Li[e.translationService]||(Li[e.translationService]=!0,Je()||E0(e).catch(a=>{j.warn("init translation engine error",a)}));let n={};if(t&&t.trigger&&(n.trigger=t.trigger),We("translage_page_daily",[{name:"translage_page_daily",params:n}],e),We("translate_page",[{name:"translate_page",params:n}],{...e,sourceLanguage:pt()}),e.rule.isSubtitleBuilder)return zy(e);if(e.rule.isEbookBuilder)return _p(e);if(e.rule.isPdf)return Uy(e);Hy(e),Os("yes")}async function Ld(e){qe()==="Original"?await mo(e):(qe()==="Translated"||qe()==="Error")&&(we=await wt(Ze(),{}),we.state.translationArea!=="main"?await mo(e):Ta())}async function mo(e){we=await wt(Ze(),{translationArea:"main"}),await rn(we,e)}async function Bs(e){we=await wt(Ze(),{translationArea:"body"}),await rn(we,e)}async function go(e){if(qe()==="Original"){let t=await wt(Ze(),{translationMode:"translation"});await rn(t,e)}else(qe()==="Translated"||qe()==="Error")&&await Ta()}async function Md(e){if(we=await wt(Ze(),{translationMode:void 0}),We("switch_translation_mode",[{name:"switch_translation_mode",params:{mode:e}}],{...we,sourceLanguage:"unknown"}),qe()==="Original"){rn(we);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(e)}async function Fd(e){if(qe()==="Original")await Bs(e);else if(qe()==="Translated"||qe()==="Error"){let t={};we&&we.state&&(t=we.state),we=await wt(Ze(),t),we.state.translationArea!=="body"?(we.state.translationArea="body",we=await wt(Ze(),we.state),await rn(we,e)):Ta()}}async function Pd(e){we=await wt(Ze(),{translationStartMode:"immediate"}),await rn(we,e)}async function Qp(){let e=await wt(Ze(),{});if(!sn(e.url,e.config.inputStyleBlockUrls)){let n=Ve().IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS;ia(document,n,"immersive-translate-input-injected-css")}e.rule.isPdf||e.rule.isSubtitleBuilder||e.rule.isEbookBuilder||e.rule.isEbook||e.config.enableInputTranslation&&tc(e)}async function wi(){let e=await wt(Ze(),{});if(j.debug("init page ctx",e),e.rule.isSubtitleBuilder){$l();return}if(e.rule.isEbookBuilder){Mp();return}if(Vp(e),Tr||(Tr=e.state.translationTheme),e.rule.urlChangeDelay&&await Cr(e.rule.urlChangeDelay),e.rule.waitForSelectors&&e.rule.waitForSelectors.length>0&&await qy(e.rule.waitForSelectors,e.rule.waitForSelectorsTimeout),e.rule.isInjectOptionsUrl){let a=Ud(),r=document.createElement("meta");r.name="immersive-translate-options-url",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(u){j.warn("inject options url failed",u)}}if(e.rule.isInjectVersion){let a=nn(),r=document.createElement("meta");r.name="immersive-translate-version",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(u){j.warn("inject version failed",u)}}if(e.rule.globalMeta&&Object.keys(e.rule.globalMeta).forEach(r=>{let u=document.createElement("meta");u.name=r,u.content=e.rule.globalMeta[r],document.head.appendChild(u)}),e.rule.initialGlobalAttributes&&wg(document.body,e.rule.initialGlobalAttributes),e.rule.isPdf){rn(e);return}if(e.rule.isOnBoardingPage){document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"currentConfig",payload:{enableDefaultAlwaysTranslatedUrls:!!e.config.enableDefaultAlwaysTranslatedUrls}})}));let a=document.querySelector("#immersiveTranslateEnableDefaultAlwaysTranslatedUrlsValue");a&&(a.value="helloworld",a.value=String(!!e.config.enableDefaultAlwaysTranslatedUrls),a.dispatchEvent(new Event("change")))}Jp||(Jp=!0,globalThis.top!==globalThis.self&&e.rule.useIframePostMessage&&await Xd());let t=e.sourceLanguage;if(t==="auto"?t=await _s():an(t),e.rule.isInjectMeta)try{let a=await Tg(t),r=document.createElement("meta");r.name="immersive-translate-meta",r.content=ji(JSON.stringify(a)),document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(a){j.warn("inject meta failed",a)}let n=e.state.isAutoTranslate||e.isTranslateUrl||e.rule.isPdf;if(!n&&!e.isTranslateExcludeUrl&&(j.debug(`detect page language: ${e.url} ${t}`),Xn(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto"||em(t,e.config.translationLanguagePattern)&&(n=!0,j.debug(`match language pattern ${t}, auto translate`))),e.rule.isEbookBuilder&&(n=!1),!e.rule.isPdf&&Br()&&vi(e,window),n)we.state.isAutoTranslate=!0,rn(we);else if(j.debug("do not auto translate",e),e.rule.initTranslationServiceAsSoonAsPossible&&e.translationService==="deepl"){if(Xn(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto")return;e.config&&e.config.translationServices&&e.config.translationServices.deepl&&e.config.translationServices.deepl.authKey&&typeof e.config.translationServices.deepl.authKey=="string"&&e.config.translationServices.deepl.authKey.startsWith("immersive_")&&(Li[e.translationService]||(Li[e.translationService]=!0,Je()||E0(e).catch(a=>{j.warn("init translation engine error",a)})))}}async function wt(e,t){let n=Object.keys(t);if(we){let a={url:e,config:we.config,state:{...we.state,...t}};we=await ln(a)}else{let a=await Lt(),r=t;n.length===0&&(r=void 0),we=await ln({url:e,config:a,state:r})}return we}async function _d(){let e=await Lt(),t;we&&we.state&&(t=we.state);let n={url:Ze(),config:e,state:t},a=await ln(n);we=a;let r=Ko(),u=[];return r?u=r.allInlineWindows||[window]:u=[window],u.forEach(o=>{pu(a,o),Br()&&vi(a,o),tc(a)}),a}function qy(e,t=3e3){return new Promise((n,a)=>{let r=t?setTimeout(()=>{n(new Error("timeout"))},t):void 0,u=setInterval(()=>{e.every(i=>document.querySelector(i)!==null)&&(clearInterval(u),r&&clearTimeout(r),n(null))},50)})}async function Ap(e){let t=e.detail;jt.set(Nt,t);let n=await jt.get(cs,!1);jt.set(cs,!1),document.dispatchEvent(new CustomEvent("immersiveTranslateDocumentMessageUserResult",{detail:n?"close":"success"}))}function kp(e){j.debug("update user info",e);let t=e.detail;jt.set(Nt,t)}async function Sp(e){let t=await on();if(t.translationService)return;let n=e.config.translationService,a=["bing","transmart","google"];a.sort((u,o)=>u===n?-1:o===n?1:0);let r=await ng(a,e);if(!r){Ur("no_avaliable_translation_service",[{name:"no_avaliable_translation_service"}]);return}e.translationService!==r&&(t.translationService=r,un(t),e.translationService=r,Ur("change_default_translation_service",[{name:"change_default_translation_service",params:{translation_service:r}}]))}async function Zp(e){if(!e){let n=await Lt();e=await ln({config:n,url:Ze()})}e.config.debug?j.setLevel("debug"):j.setLevel("info"),globalThis.top!=globalThis.self||await fp().catch(n=>{j.error(`init popup page error: ${n}`)}),e.isTranslateExcludeUrl||(e.rule.isEbook||e.rule.isEbookBuilder||await wi(),globalThis.top===globalThis.self&&S3()),await Qp()}m();var hu={capture:!0,once:!0,passive:!0},tf=()=>document.readyState==="interactive"||document.readyState==="complete",Wy=e=>document.readyState===e,bu=(e,t)=>Wy(e)||tf()?(t(e),!0):!1,$y=()=>new Promise(e=>{bu("loading",e)||document.addEventListener("readystatechange",()=>{document.readyState==="loading"&&e("loading")},hu)}),Ky=()=>new Promise(e=>{bu("interactive",e)||document.addEventListener("readystatechange",()=>{document.readyState==="interactive"&&e("interactive")},hu)}),Gy=()=>new Promise(e=>{bu("complete",e)||document.addEventListener("readystatechange",()=>{document.readyState==="complete"&&e("complete")},hu)}),Xp=()=>new Promise(e=>{bu("domready",e)||document.addEventListener("DOMContentLoaded",()=>{e("domready")},hu)}),ef=()=>new Promise(e=>{bu("load",e)||window.addEventListener("load",()=>{e("load")},hu)}),nf={};Object.defineProperties(nf,{state:{get:function(){return document.readyState}},loading:{get:function(){return $y()}},interactive:{get:function(){return Ky()}},complete:{get:function(){return Gy()}},window:{get:function(){return ef()}},load:{get:function(){return ef()}},domready:{get:function(){return Xp()}},dom:{get:function(){return Xp()}},ready:{get:function(){return tf()}}});var af=nf;m();m();var rf={NOT_FUNCTION:"Your executor is not a function. functions and promises are valid.",FAILED_TO_WAIT:"Failed to wait"};function Vy(e){return()=>Promise.resolve().then(()=>e()).catch(t=>{throw t})}function Yy(e){if(typeof e!="function")throw new Error(rf.NOT_FUNCTION)}var uc=class{_interval;_timeout;_stopOnFailure;_backoffFactor;_backoffMaxInterval;_Console;originalStacktraceError;_userMessage;_verbose;_isWaiting;_isResolved;_executeFn;start;promise;resolve;reject;_lastError;constructor({interval:t=100,timeout:n=1e3,stopOnFailure:a=!1,verbose:r=!1,backoffFactor:u=1,backoffMaxInterval:o,message:i=""}={}){this._interval=t,this._timeout=n,this._stopOnFailure=a,this._isWaiting=!1,this._isResolved=!1,this._verbose=r,this._userMessage=i,this.originalStacktraceError=new Error,this._Console=console,this._backoffFactor=u,this._backoffMaxInterval=o||n,this.start=+Date.now()}tryEvery(t){return this._interval=t,this}stopAfter(t){return this._timeout=t,this}execute(t){return this._applyPromiseHandlers(),Yy(t),this._executeFn=Vy(t),this.start=Date.now(),this._isWaiting=!0,this._log("starting to execute"),this._runFunction(),this.promise}getPromise(){return this.promise}isResolved(){return this._isResolved}isWaiting(){return this._isWaiting}stopOnFailure(t){return this._stopOnFailure=t,this}_applyPromiseHandlers(){this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}_timeFromStart(){return Date.now()-this.start}_shouldStopTrying(){return this._timeFromStart()>this._timeout}_executeAgain(){this._log("executing again");let t=this._interval,n=t*this._backoffFactor;this._interval=n>this._backoffMaxInterval?this._backoffMaxInterval:n,setTimeout(this._runFunction.bind(this),t)}_failedToWait(){let t=`${rf.FAILED_TO_WAIT} after ${this._timeFromStart()}ms`;if(this._userMessage&&(t=`${t}: ${this._userMessage}`),this._lastError){this._lastError.message=`${t} ${this._lastError.message}`;let n=this.originalStacktraceError.stack;n&&(this._lastError.stack+=n.substring(n.indexOf(` -`)+1))}else this._lastError=this.originalStacktraceError,this._lastError.message=t;return this._log(this._lastError),this._lastError}_runFunction(){if(this._shouldStopTrying()){this._isWaiting=!1,this.reject?.(this._failedToWait());return}this._executeFn().then(t=>{if(t===!1){this._log(`then execute again with result: ${t}`),this._executeAgain();return}this.resolve?.(t),this._isWaiting=!1,this._isResolved=!0,this._log(`then done waiting with result: ${t}`)}).catch(t=>this._stopOnFailure?(this._log(`stopped on failure with err: ${t}`),this.reject?.(t)):(this._lastError=t,this._log(`catch with err: ${t}`),this._executeAgain()))}_log(t){this._verbose&&this._Console&&this._Console.log&&this._Console.log(t)}},rf=(e,t)=>new uc(t).execute(e);async function uf(e){try{return await rf(()=>{let n=e.mainFrame.innerText||"";if(er(n,e.rule.mainFrameMinTextCount,e.rule.mainFrameMinWordCount))return!0;throw new Error("there is no main text")},{timeout:5e3}),!0}catch(t){if(Je())throw t;return j.error("check dom element ready failed:",t,e),!0}}m();function of(){let e=document.querySelector("meta[name=immersive-translate-options]");return!!(e&&e.getAttribute("content")==="true")}m();async function lf(){if(!document.getElementById("immersive-translate-status")){j.error("Could not find status element");return}await sf("local"),await sf("sync"),Qy();let t=document.getElementById("immersive-translate-page-ready");t&&setTimeout(()=>{t.value="true",t.dispatchEvent(new Event("change"))},100)}async function Jy(e,t){let n;try{n=JSON.parse(e.detail)}catch(r){j.error("parse detail failed",r);return}let a=n.id||"default";try{let r=n.data||{},u=await t(r),o={id:a,ok:!0,data:u};document.dispatchEvent(new CustomEvent(Ru,{detail:JSON.stringify({...o,type:"answer"})}))}catch(r){let u={ok:!1,errorName:r.name,errorMessage:r.message,errorDetails:r.details||r.detail};document.dispatchEvent(new CustomEvent(Ru,{detail:JSON.stringify({...u,id:a,type:"answer"})}))}}function Qy(){document.addEventListener(_u,a=>{let r=a;if(j.debug("document message",r),r&&r.detail){let u;try{u=JSON.parse(r.detail)}catch(o){j.error("parse detail failed",o);return}u.type==="ask"?u.method==="request"&&Jy(r,oe):u.type==="tell"&&u.method==="updateCommands"&&Eo(u.data)}});let e=document.getElementById("immersive-translate-manifest");if(!e){j.error("Could not find manifest element");return}let t=ue.runtime.getManifest();Rt()&&(t._isSafari=!0),e.value=JSON.stringify(t),e.dispatchEvent(new Event("change")),document.getElementById("immersive-translate-message").addEventListener("change",a=>{try{let r=JSON.parse(a.target.value);r&&r.method==="removeStorageKey"&&r.data&&r.data.area&&r.data.keys&&ue.storage[r.data.area].remove(r.data.keys)}catch(r){j.error("parse message error",r)}})}async function sf(e){let t=document.getElementById("immersive-translate-status"),n=document.getElementById(`immersive-translate-${e}-storage`);if(n){j.debug("init storage");let a=await ue.storage[e].get(null);n.value=JSON.stringify(a),n.dispatchEvent(new Event("change")),n.addEventListener("change",r=>{try{let u=JSON.parse(r.target.value);ue.storage[e].set(u)}catch(u){j.error("save to storage error",u)}}),n.addEventListener("refresh-"+e,async r=>{let u=await ue.storage[e].get(null);n.value=JSON.stringify(u),j.debug("refresh ",e,"storage")})}else{j.error(`Could not find storage ${e} element`),t.innerText="Could not find storage local input element";return}}var Zy=["textarea","input","button","select","option","iframe"];async function Xy(){_e.addHook("beforeSanitizeElements",function(a,r,u){let o=(a.nodeName||"").toLowerCase();if(Zy.includes(o)){let s=`<${o}>${a.textContent||""}`,c=document.createTextNode(s);return a.replaceWith(c),a}return a}),_e.addHook("uponSanitizeElement",function(a,r){let u=a.nodeName||"";/\d+$/.test(u)&&(r.allowedTags[r.tagName]=!0)});let e=await Jn(),t=Ze(),n=await ln({config:e,url:t});We("init_page_daily",[{name:"init_page_daily"}],n),nf.domready.then(()=>{if(n.isTranslateExcludeUrl&&of())j.debug("detect web options page"),fu(n,window),lf();else{if(!n.config.enabled||sn(n.url,n.config.blockUrls))return;fu(n,window),uf(n).then(()=>{Qp(n).catch(r=>{r&&j.error("translate page error",r.name,r.message,r.details||"",r)})}).catch(r=>{j.debug("can not detect a valid body: ",r)})}}).catch(a=>{a&&j.error("translate dom ready detect error",a)})}Xy().catch(e=>{j.error("init error",e)});})(); +`)+1))}else this._lastError=this.originalStacktraceError,this._lastError.message=t;return this._log(this._lastError),this._lastError}_runFunction(){if(this._shouldStopTrying()){this._isWaiting=!1,this.reject?.(this._failedToWait());return}this._executeFn().then(t=>{if(t===!1){this._log(`then execute again with result: ${t}`),this._executeAgain();return}this.resolve?.(t),this._isWaiting=!1,this._isResolved=!0,this._log(`then done waiting with result: ${t}`)}).catch(t=>this._stopOnFailure?(this._log(`stopped on failure with err: ${t}`),this.reject?.(t)):(this._lastError=t,this._log(`catch with err: ${t}`),this._executeAgain()))}_log(t){this._verbose&&this._Console&&this._Console.log&&this._Console.log(t)}},uf=(e,t)=>new uc(t).execute(e);async function of(e){try{return await uf(()=>{let n=e.mainFrame.innerText||"";if(er(n,e.rule.mainFrameMinTextCount,e.rule.mainFrameMinWordCount))return!0;throw new Error("there is no main text")},{timeout:5e3}),!0}catch(t){if(Je())throw t;return j.error("check dom element ready failed:",t,e),!0}}m();function sf(){let e=document.querySelector("meta[name=immersive-translate-options]");return!!(e&&e.getAttribute("content")==="true")}m();async function cf(){if(!document.getElementById("immersive-translate-status")){j.error("Could not find status element");return}await lf("local"),await lf("sync"),Qy();let t=document.getElementById("immersive-translate-page-ready");t&&setTimeout(()=>{t.value="true",t.dispatchEvent(new Event("change"))},100)}async function Jy(e,t){let n;try{n=JSON.parse(e.detail)}catch(r){j.error("parse detail failed",r);return}let a=n.id||"default";try{let r=n.data||{},u=await t(r),o={id:a,ok:!0,data:u};document.dispatchEvent(new CustomEvent(Bu,{detail:JSON.stringify({...o,type:"answer"})}))}catch(r){let u={ok:!1,errorName:r.name,errorMessage:r.message,errorDetails:r.details||r.detail};document.dispatchEvent(new CustomEvent(Bu,{detail:JSON.stringify({...u,id:a,type:"answer"})}))}}function Qy(){document.addEventListener(Pu,a=>{let r=a;if(j.debug("document message",r),r&&r.detail){let u;try{u=JSON.parse(r.detail)}catch(o){j.error("parse detail failed",o);return}u.type==="ask"?u.method==="request"&&Jy(r,oe):u.type==="tell"&&u.method==="updateCommands"&&xo(u.data)}});let e=document.getElementById("immersive-translate-manifest");if(!e){j.error("Could not find manifest element");return}let t=ue.runtime.getManifest();Rt()&&(t._isSafari=!0),e.value=JSON.stringify(t),e.dispatchEvent(new Event("change")),document.getElementById("immersive-translate-message").addEventListener("change",a=>{try{let r=JSON.parse(a.target.value);r&&r.method==="removeStorageKey"&&r.data&&r.data.area&&r.data.keys&&ue.storage[r.data.area].remove(r.data.keys)}catch(r){j.error("parse message error",r)}})}async function lf(e){let t=document.getElementById("immersive-translate-status"),n=document.getElementById(`immersive-translate-${e}-storage`);if(n){j.debug("init storage");let a=await ue.storage[e].get(null);n.value=JSON.stringify(a),n.dispatchEvent(new Event("change")),n.addEventListener("change",r=>{try{let u=JSON.parse(r.target.value);ue.storage[e].set(u)}catch(u){j.error("save to storage error",u)}}),n.addEventListener("refresh-"+e,async r=>{let u=await ue.storage[e].get(null);n.value=JSON.stringify(u),j.debug("refresh ",e,"storage")})}else{j.error(`Could not find storage ${e} element`),t.innerText="Could not find storage local input element";return}}var Zy=["textarea","input","button","select","option","iframe"];async function Xy(){_e.addHook("beforeSanitizeElements",function(a,r,u){let o=(a.nodeName||"").toLowerCase();if(Zy.includes(o)){let s=`<${o}>${a.textContent||""}`,c=document.createTextNode(s);return a.replaceWith(c),a}return a}),_e.addHook("uponSanitizeElement",function(a,r){let u=a.nodeName||"";/\d+$/.test(u)&&(r.allowedTags[r.tagName]=!0)});let e=await Jn(),t=Ze(),n=await ln({config:e,url:t});We("init_page_daily",[{name:"init_page_daily"}],n),af.domready.then(()=>{if(n.isTranslateExcludeUrl&&sf())j.debug("detect web options page"),pu(n,window),cf();else{if(!n.config.enabled||sn(n.url,n.config.blockUrls))return;pu(n,window),of(n).then(()=>{Zp(n).catch(r=>{r&&j.error("translate page error",r.name,r.message,r.details||"",r)})}).catch(r=>{j.debug("can not detect a valid body: ",r)})}}).catch(a=>{a&&j.error("translate dom ready detect error",a)})}Xy().catch(e=>{j.error("init error",e)});})(); /*! Bundled license information: bowser/src/bowser.js: diff --git a/dist/firefox/manifest.json b/dist/firefox/manifest.json index 81b4655..aeb0761 100644 --- a/dist/firefox/manifest.json +++ b/dist/firefox/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 2, "name": "__MSG_brandName__", "description": "__MSG_brandDescription__", - "version": "0.9.5", + "version": "0.9.6", "default_locale": "en", "background": { "scripts": [ diff --git a/dist/firefox/options.js b/dist/firefox/options.js index b5c0677..3813066 100644 --- a/dist/firefox/options.js +++ b/dist/firefox/options.js @@ -1,4 +1,4 @@ -(()=>{var Kh=Object.create;var Bs=Object.defineProperty;var $h=Object.getOwnPropertyDescriptor;var Gh=Object.getOwnPropertyNames;var Vh=Object.getPrototypeOf,Yh=Object.prototype.hasOwnProperty;var Jh=(e,t)=>()=>(e&&(t=e(e=0)),t);var Qh=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Zh=(e,t)=>{for(var n in t)Bs(e,n,{get:t[n],enumerable:!0})},Xh=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Gh(t))!Yh.call(e,r)&&r!==n&&Bs(e,r,{get:()=>t[r],enumerable:!(a=$h(t,r))||a.enumerable});return e};var e2=(e,t,n)=>(n=e!=null?Kh(Vh(e)):{},Xh(t||!e||!e.__esModule?Bs(n,"default",{value:e,enumerable:!0}):n,e));var F,h=Jh(()=>{F={BUILD_TIME:"2023-09-17T09:32:32.000Z",VERSION:"0.9.5",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"0",BETA:"0",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { +(()=>{var $h=Object.create;var Bs=Object.defineProperty;var Gh=Object.getOwnPropertyDescriptor;var Vh=Object.getOwnPropertyNames;var Yh=Object.getPrototypeOf,Jh=Object.prototype.hasOwnProperty;var Qh=(e,t)=>()=>(e&&(t=e(e=0)),t);var Zh=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Xh=(e,t)=>{for(var n in t)Bs(e,n,{get:t[n],enumerable:!0})},e2=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Vh(t))!Jh.call(e,r)&&r!==n&&Bs(e,r,{get:()=>t[r],enumerable:!(a=Gh(t,r))||a.enumerable});return e};var t2=(e,t,n)=>(n=e!=null?$h(Yh(e)):{},e2(t||!e||!e.__esModule?Bs(n,"default",{value:e,enumerable:!0}):n,e));var F,h=Qh(()=>{F={BUILD_TIME:"2023-09-19T07:46:36.000Z",VERSION:"0.9.6",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"0",BETA:"0",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { --immersive-translate-theme-underline-borderColor: #72ece9; --immersive-translate-theme-nativeUnderline-borderColor: #72ece9; --immersive-translate-theme-nativeDashed-borderColor: #72ece9; @@ -4234,26 +4234,26 @@ select.text-label {
-`,PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",OPTIONS_URL:"https://dash.immersivetranslate.com/",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",MOCK:"0",DEBUG:"0",INSTALL_FROM:"firefox_zip"}});var ih=Qh((ws,cu)=>{h();(function(){var e;function t(g){var T,w,b="",S=-1,D;if(g&&g.length)for(D=g.length;(S+=1)>>6&31,128|T&63):T<=65535?b+=String.fromCharCode(224|T>>>12&15,128|T>>>6&63,128|T&63):T<=2097151&&(b+=String.fromCharCode(240|T>>>18&7,128|T>>>12&63,128|T>>>6&63,128|T&63));return b}function n(g){var T,w,b,S,D,N=[],_;if(T=w=b=S=D=0,g&&g.length)for(_=g.length,g+="";T<_;)b=g.charCodeAt(T),w+=1,b<128?(N[w]=String.fromCharCode(b),T+=1):b>191&&b<224?(S=g.charCodeAt(T+1),N[w]=String.fromCharCode((b&31)<<6|S&63),T+=2):(S=g.charCodeAt(T+1),D=g.charCodeAt(T+2),N[w]=String.fromCharCode((b&15)<<12|(S&63)<<6|D&63),T+=3);return N.join("")}function a(g,T){var w=(g&65535)+(T&65535),b=(g>>16)+(T>>16)+(w>>16);return b<<16|w&65535}function r(g,T){return g<>>32-T}function o(g,T){for(var w=T?"0123456789ABCDEF":"0123456789abcdef",b="",S,D=0,N=g.length;D>>4&15)+w.charAt(S&15);return b}function u(g){var T,w=g.length,b="";for(T=0;T>>8&255);return b}function i(g){var T,w=g.length,b="";for(T=0;T>>8&255,g.charCodeAt(T)&255);return b}function s(g){var T,w=g.length*32,b="";for(T=0;T>5]>>>24-T%32&255);return b}function c(g){var T,w=g.length*32,b="";for(T=0;T>5]>>>T%32&255);return b}function l(g){var T,w=g.length*8,b=Array(g.length>>2),S=b.length;for(T=0;T>5]|=(g.charCodeAt(T/8)&255)<>2),S=b.length;for(T=0;T>5]|=(g.charCodeAt(T/8)&255)<<24-T%32;return b}function p(g,T){var w=T.length,b=Array(),S,D,N,_,y,E,x,v;for(E=Array(Math.ceil(g.length/2)),_=E.length,S=0;S<_;S+=1)E[S]=g.charCodeAt(S*2)<<8|g.charCodeAt(S*2+1);for(;E.length>0;){for(y=Array(),N=0,S=0;S0||D>0)&&(y[y.length]=D);b[b.length]=N,E=y}for(x="",S=b.length-1;S>=0;S--)x+=T.charAt(b[S]);for(v=Math.ceil(g.length*8/(Math.log(T.length)/Math.log(2))),S=x.length;Sg.length*8?b+=T:b+=w.charAt(_>>>6*(3-N)&63);return b}e={VERSION:"1.0.6",Base64:function(){var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",T="=",w=!1,b=!0;this.encode=function(S){var D,N,_,y="";for(T=T||"=",S=b?t(S):S,len=S.length,D=0;Dlen*8?y+=T:y+=g.charAt(_>>>6*(3-N)&63);return y},this.decode=function(S){var D,N,_,y,E,x,v,C,R,M,k="",P=[];if(!S)return S;D=M=0,S=S.replace(new RegExp("\\"+T,"gi"),"");do E=g.indexOf(S.charAt(D++)),x=g.indexOf(S.charAt(D++)),v=g.indexOf(S.charAt(D++)),C=g.indexOf(S.charAt(D++)),R=E<<18|x<<12|v<<6|C,N=R>>16&255,_=R>>8&255,y=R&255,M+=1,v===64?P[M]=String.fromCharCode(N):C===64?P[M]=String.fromCharCode(N,_):P[M]=String.fromCharCode(N,_,y);while(D>>8^w;return(T^-1)>>>0},MD5:function(g){var T=g&&typeof g.uppercase=="boolean"?g.uppercase:!1,w=g&&typeof g.pad=="string"?g.pad:"=",b=g&&typeof g.utf8=="boolean"?g.utf8:!0;this.hex=function(C){return o(S(C,b),T)},this.b64=function(C){return m(S(C),w)},this.any=function(C,R){return p(S(C,b),R)},this.raw=function(C){return S(C,b)},this.hex_hmac=function(C,R){return o(D(C,R),T)},this.b64_hmac=function(C,R){return m(D(C,R),w)},this.any_hmac=function(C,R,M){return p(D(C,R),M)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(C){return typeof C=="boolean"&&(T=C),this},this.setPad=function(C){return w=C||w,this},this.setUTF8=function(C){return typeof C=="boolean"&&(b=C),this};function S(C){return C=b?t(C):C,c(N(l(C),C.length*8))}function D(C,R){var M,k,P,O,j;for(C=b?t(C):C,R=b?t(R):R,M=l(C),M.length>16&&(M=N(M,C.length*8)),k=Array(16),P=Array(16),j=0;j<16;j+=1)k[j]=M[j]^909522486,P[j]=M[j]^1549556828;return O=N(k.concat(l(R)),512+R.length*8),c(N(P.concat(O),512+128))}function N(C,R){var M,k,P,O,j,B=1732584193,A=-271733879,L=-1732584194,U=271733878;for(C[R>>5]|=128<>>9<<4)+14]=R,M=0;M16&&(v=N(v,E.length*8)),C=Array(16),R=Array(16),M=0;M<16;M+=1)C[M]=v[M]^909522486,R[M]=v[M]^1549556828;return k=N(C.concat(f(x)),512+x.length*8),s(N(R.concat(k),512+160))}function N(E,x){var v,C,R,M,k,P,O,j,B=Array(80),A=1732584193,L=-271733879,U=-1732584194,K=271733878,H=-1009589776;for(E[x>>5]|=128<<24-x%32,E[(x+64>>9<<4)+15]=x,v=0;v16&&(H=B(H,A.length*8));K<16;K+=1)V[K]=H[K]^909522486,q[K]=H[K]^1549556828;return U=B(V.concat(f(L)),512+L.length*8),s(B(q.concat(U),512+256))}function _(A,L){return A>>>L|A<<32-L}function y(A,L){return A>>>L}function E(A,L,U){return A&L^~A&U}function x(A,L,U){return A&L^A&U^L&U}function v(A){return _(A,2)^_(A,13)^_(A,22)}function C(A){return _(A,6)^_(A,11)^_(A,25)}function R(A){return _(A,7)^_(A,18)^y(A,3)}function M(A){return _(A,17)^_(A,19)^y(A,10)}function k(A){return _(A,28)^_(A,34)^_(A,39)}function P(A){return _(A,14)^_(A,18)^_(A,41)}function O(A){return _(A,1)^_(A,8)^y(A,7)}function j(A){return _(A,19)^_(A,61)^y(A,6)}S=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function B(A,L){var U=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],K=new Array(64),H,V,q,oe,Z,J,ye,xe,ie,Y,ce,fe;for(A[L>>5]|=128<<24-L%32,A[(L+64>>9<<4)+15]=L,ie=0;ie32&&(A=_(A,P.length*8));B<32;B+=1)L[B]=A[B]^909522486,U[B]=A[B]^1549556828;return j=_(L.concat(f(O)),1024+O.length*8),s(_(U.concat(j),1024+512))}function _(P,O){var j,B,A,L=new Array(80),U=new Array(16),K=[new y(1779033703,-205731576),new y(-1150833019,-2067093701),new y(1013904242,-23791573),new y(-1521486534,1595750129),new y(1359893119,-1377402159),new y(-1694144372,725511199),new y(528734635,-79577749),new y(1541459225,327033209)],H=new y(0,0),V=new y(0,0),q=new y(0,0),oe=new y(0,0),Z=new y(0,0),J=new y(0,0),ye=new y(0,0),xe=new y(0,0),ie=new y(0,0),Y=new y(0,0),ce=new y(0,0),fe=new y(0,0),ge=new y(0,0),Ee=new y(0,0),Le=new y(0,0),ve=new y(0,0),ee=new y(0,0);for(S===void 0&&(S=[new y(1116352408,-685199838),new y(1899447441,602891725),new y(-1245643825,-330482897),new y(-373957723,-2121671748),new y(961987163,-213338824),new y(1508970993,-1241133031),new y(-1841331548,-1357295717),new y(-1424204075,-630357736),new y(-670586216,-1560083902),new y(310598401,1164996542),new y(607225278,1323610764),new y(1426881987,-704662302),new y(1925078388,-226784913),new y(-2132889090,991336113),new y(-1680079193,633803317),new y(-1046744716,-815192428),new y(-459576895,-1628353838),new y(-272742522,944711139),new y(264347078,-1953704523),new y(604807628,2007800933),new y(770255983,1495990901),new y(1249150122,1856431235),new y(1555081692,-1119749164),new y(1996064986,-2096016459),new y(-1740746414,-295247957),new y(-1473132947,766784016),new y(-1341970488,-1728372417),new y(-1084653625,-1091629340),new y(-958395405,1034457026),new y(-710438585,-1828018395),new y(113926993,-536640913),new y(338241895,168717936),new y(666307205,1188179964),new y(773529912,1546045734),new y(1294757372,1522805485),new y(1396182291,-1651133473),new y(1695183700,-1951439906),new y(1986661051,1014477480),new y(-2117940946,1206759142),new y(-1838011259,344077627),new y(-1564481375,1290863460),new y(-1474664885,-1136513023),new y(-1035236496,-789014639),new y(-949202525,106217008),new y(-778901479,-688958952),new y(-694614492,1432725776),new y(-200395387,1467031594),new y(275423344,851169720),new y(430227734,-1194143544),new y(506948616,1363258195),new y(659060556,-544281703),new y(883997877,-509917016),new y(958139571,-976659869),new y(1322822218,-482243893),new y(1537002063,2003034995),new y(1747873779,-692930397),new y(1955562222,1575990012),new y(2024104815,1125592928),new y(-2067236844,-1578062990),new y(-1933114872,442776044),new y(-1866530822,593698344),new y(-1538233109,-561857047),new y(-1090935817,-1295615723),new y(-965641998,-479046869),new y(-903397682,-366583396),new y(-779700025,566280711),new y(-354779690,-840897762),new y(-176337025,-294727304),new y(116418474,1914138554),new y(174292421,-1563912026),new y(289380356,-1090974290),new y(460393269,320620315),new y(685471733,587496836),new y(852142971,1086792851),new y(1017036298,365543100),new y(1126000580,-1676669620),new y(1288033470,-885112138),new y(1501505948,-60457430),new y(1607167915,987167468),new y(1816402316,1246189591)]),B=0;B<80;B+=1)L[B]=new y(0,0);for(P[O>>5]|=128<<24-(O&31),P[(O+128>>10<<5)+31]=O,A=P.length,B=0;B>>j|O.h<<32-j,P.h=O.h>>>j|O.l<<32-j}function v(P,O,j){P.l=O.h>>>j|O.l<<32-j,P.h=O.l>>>j|O.h<<32-j}function C(P,O,j){P.l=O.l>>>j|O.h<<32-j,P.h=O.h>>>j}function R(P,O,j){var B=(O.l&65535)+(j.l&65535),A=(O.l>>>16)+(j.l>>>16)+(B>>>16),L=(O.h&65535)+(j.h&65535)+(A>>>16),U=(O.h>>>16)+(j.h>>>16)+(L>>>16);P.l=B&65535|A<<16,P.h=L&65535|U<<16}function M(P,O,j,B,A){var L=(O.l&65535)+(j.l&65535)+(B.l&65535)+(A.l&65535),U=(O.l>>>16)+(j.l>>>16)+(B.l>>>16)+(A.l>>>16)+(L>>>16),K=(O.h&65535)+(j.h&65535)+(B.h&65535)+(A.h&65535)+(U>>>16),H=(O.h>>>16)+(j.h>>>16)+(B.h>>>16)+(A.h>>>16)+(K>>>16);P.l=L&65535|U<<16,P.h=K&65535|H<<16}function k(P,O,j,B,A,L){var U=(O.l&65535)+(j.l&65535)+(B.l&65535)+(A.l&65535)+(L.l&65535),K=(O.l>>>16)+(j.l>>>16)+(B.l>>>16)+(A.l>>>16)+(L.l>>>16)+(U>>>16),H=(O.h&65535)+(j.h&65535)+(B.h&65535)+(A.h&65535)+(L.h&65535)+(K>>>16),V=(O.h>>>16)+(j.h>>>16)+(B.h>>>16)+(A.h>>>16)+(L.h>>>16)+(H>>>16);P.l=U&65535|K<<16,P.h=H&65535|V<<16}},RMD160:function(g){var T=g&&typeof g.uppercase=="boolean"?g.uppercase:!1,w=g&&typeof g.pad=="string"?g.pa:"=",b=g&&typeof g.utf8=="boolean"?g.utf8:!0,S=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],D=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],N=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],_=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(k){return o(y(k,b))},this.b64=function(k){return m(y(k,b),w)},this.any=function(k,P){return p(y(k,b),P)},this.raw=function(k){return y(k,b)},this.hex_hmac=function(k,P){return o(E(k,P))},this.b64_hmac=function(k,P){return m(E(k,P),w)},this.any_hmac=function(k,P,O){return p(E(k,P),O)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(k){return typeof k=="boolean"&&(T=k),this},this.setPad=function(k){return typeof k<"u"&&(w=k),this},this.setUTF8=function(k){return typeof k=="boolean"&&(b=k),this};function y(k){return k=b?t(k):k,x(v(l(k),k.length*8))}function E(k,P){k=b?t(k):k,P=b?t(P):P;var O,j,B=l(k),A=Array(16),L=Array(16);for(B.length>16&&(B=v(B,k.length*8)),O=0;O<16;O+=1)A[O]=B[O]^909522486,L[O]=B[O]^1549556828;return j=v(A.concat(l(P)),512+P.length*8),x(v(L.concat(j),512+160))}function x(k){var P,O="",j=k.length*32;for(P=0;P>5]>>>P%32&255);return O}function v(k,P){var O,j,B,A,L=1732584193,U=4023233417,K=2562383102,H=271733878,V=3285377520,q,oe,Z,J,ye,xe,ie,Y,ce,fe;for(k[P>>5]|=128<>>9<<4)+14]=P,A=k.length,B=0;Bfunction(){return t||(0,e[B4(e)[0]])((t={exports:{}}).exports,t),t.exports},i2=(e,t)=>{for(var n in t)Is(e,n,{get:t[n],enumerable:!0})},Rs=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of B4(t))!o2.call(e,r)&&r!==n&&Is(e,r,{get:()=>t[r],enumerable:!(a=a2(t,r))||a.enumerable});return e},s2=(e,t,n)=>(Rs(e,t,"default"),n&&Rs(n,t,"default")),R4=(e,t,n)=>(n=e!=null?n2(r2(e)):{},Rs(t||!e||!e.__esModule?Is(n,"default",{value:e,enumerable:!0}):n,e)),I4=u2({"../esmd/npm/webextension-polyfill@0.10.0/node_modules/webextension-polyfill/dist/browser-polyfill.js"(e,t){(function(n,a){if(typeof define=="function"&&define.amd)define("webextension-polyfill",["module"],a);else if(typeof e<"u")a(t);else{var r={exports:{}};a(r),n.browser=r.exports}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:e,function(n){"use strict";if(!globalThis.chrome?.runtime?.id)throw new Error("This script should only be loaded in a browser extension.");if(typeof globalThis.browser>"u"||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){let a="The message port closed before a response was received.",r=o=>{let u={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(Object.keys(u).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class i extends WeakMap{constructor(E,x=void 0){super(x),this.createItem=E}get(E){return this.has(E)||this.set(E,this.createItem(E)),super.get(E)}}let s=y=>y&&typeof y=="object"&&typeof y.then=="function",c=(y,E)=>(...x)=>{o.runtime.lastError?y.reject(new Error(o.runtime.lastError.message)):E.singleCallbackArg||x.length<=1&&E.singleCallbackArg!==!1?y.resolve(x[0]):y.resolve(x)},l=y=>y==1?"argument":"arguments",f=(y,E)=>function(v,...C){if(C.lengthE.maxArgs)throw new Error(`Expected at most ${E.maxArgs} ${l(E.maxArgs)} for ${y}(), got ${C.length}`);return new Promise((R,M)=>{if(E.fallbackToNoCallback)try{v[y](...C,c({resolve:R,reject:M},E))}catch{v[y](...C),E.fallbackToNoCallback=!1,E.noCallback=!0,R()}else E.noCallback?(v[y](...C),R()):v[y](...C,c({resolve:R,reject:M},E))})},p=(y,E,x)=>new Proxy(E,{apply(v,C,R){return x.call(C,y,...R)}}),m=Function.call.bind(Object.prototype.hasOwnProperty),g=(y,E={},x={})=>{let v=Object.create(null),C={has(M,k){return k in y||k in v},get(M,k,P){if(k in v)return v[k];if(!(k in y))return;let O=y[k];if(typeof O=="function")if(typeof E[k]=="function")O=p(y,y[k],E[k]);else if(m(x,k)){let j=f(k,x[k]);O=p(y,y[k],j)}else O=O.bind(y);else if(typeof O=="object"&&O!==null&&(m(E,k)||m(x,k)))O=g(O,E[k],x[k]);else if(m(x,"*"))O=g(O,E[k],x["*"]);else return Object.defineProperty(v,k,{configurable:!0,enumerable:!0,get(){return y[k]},set(j){y[k]=j}}),O;return v[k]=O,O},set(M,k,P,O){return k in v?v[k]=P:y[k]=P,!0},defineProperty(M,k,P){return Reflect.defineProperty(v,k,P)},deleteProperty(M,k){return Reflect.deleteProperty(v,k)}},R=Object.create(y);return new Proxy(R,C)},T=y=>({addListener(E,x,...v){E.addListener(y.get(x),...v)},hasListener(E,x){return E.hasListener(y.get(x))},removeListener(E,x){E.removeListener(y.get(x))}}),w=new i(y=>typeof y!="function"?y:function(x){let v=g(x,{},{getContent:{minArgs:0,maxArgs:0}});y(v)}),b=new i(y=>typeof y!="function"?y:function(x,v,C){let R=!1,M,k=new Promise(B=>{M=function(A){R=!0,B(A)}}),P;try{P=y(x,v,M)}catch(B){P=Promise.reject(B)}let O=P!==!0&&s(P);if(P!==!0&&!O&&!R)return!1;let j=B=>{B.then(A=>{C(A)},A=>{let L;A&&(A instanceof Error||typeof A.message=="string")?L=A.message:L="An unexpected error occurred",C({__mozWebExtensionPolyfillReject__:!0,message:L})}).catch(A=>{})};return j(O?P:k),!0}),S=({reject:y,resolve:E},x)=>{o.runtime.lastError?o.runtime.lastError.message===a?E():y(new Error(o.runtime.lastError.message)):x&&x.__mozWebExtensionPolyfillReject__?y(new Error(x.message)):E(x)},D=(y,E,x,...v)=>{if(v.lengthE.maxArgs)throw new Error(`Expected at most ${E.maxArgs} ${l(E.maxArgs)} for ${y}(), got ${v.length}`);return new Promise((C,R)=>{let M=S.bind(null,{resolve:C,reject:R});v.push(M),x.sendMessage(...v)})},N={devtools:{network:{onRequestFinished:T(w)}},runtime:{onMessage:T(b),onMessageExternal:T(b),sendMessage:D.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:D.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},_={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return u.privacy={network:{"*":_},services:{"*":_},websites:{"*":_}},g(o,N,u)};n.exports=r(chrome)}else n.exports=globalThis.browser})}}),O4={};i2(O4,{default:()=>xu});var l2=R4(I4());s2(O4,R4(I4()));var{default:_4,...c2}=l2,xu=_4!==void 0?_4:c2;globalThis.immersiveTranslateBrowserAPI=xu;h();h();h();h();var Au,Se,H4,d2,co,N4,q4,Cu={},W4=[],g2=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function fa(e,t){for(var n in t)e[n]=t[n];return e}function K4(e){var t=e.parentNode;t&&t.removeChild(e)}function Ns(e,t,n){var a,r,o,u={};for(o in t)o=="key"?a=t[o]:o=="ref"?r=t[o]:u[o]=t[o];if(arguments.length>2&&(u.children=arguments.length>3?Au.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)u[o]===void 0&&(u[o]=e.defaultProps[o]);return Tu(e,u,a,r,null)}function Tu(e,t,n,a,r){var o={type:e,props:t,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++H4};return r==null&&Se.vnode!=null&&Se.vnode(o),o}function Fe(e){return e.children}function Eu(e,t){this.props=e,this.context=t}function pr(e,t){if(t==null)return e.__?pr(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?Tu(m.type,m.props,m.key,m.ref?m.ref:null,m.__v):m)!=null){if(m.__=n,m.__b=n.__b+1,(p=b[l])===null||p&&m.key==p.key&&m.type===p.type)b[l]=void 0;else for(f=0;f=n.__.length&&n.__.push({__V:ku}),n.__[e]}function $(e){return go=1,h2(sd,e)}function h2(e,t,n){var a=Du(mo++,2);if(a.t=e,!a.__c&&(a.__=[n?n(t):sd(void 0,t),function(o){var u=a.__N?a.__N[0]:a.__[0],i=a.t(u,o);u!==i&&(a.__N=[i,a.__[1]],a.__c.setState({}))}],a.__c=st,!st.u)){st.u=!0;var r=st.shouldComponentUpdate;st.shouldComponentUpdate=function(o,u,i){if(!a.__c.__H)return!0;var s=a.__c.__H.__.filter(function(l){return l.__c});if(s.every(function(l){return!l.__N}))return!r||r.call(this,o,u,i);var c=!1;return s.forEach(function(l){if(l.__N){var f=l.__[0];l.__=l.__N,l.__N=void 0,f!==l.__[0]&&(c=!0)}}),!!c&&(!r||r.call(this,o,u,i))}}return a.__N||a.__}function he(e,t){var n=Du(mo++,3);!Se.__s&&id(n.__H,t)&&(n.__=e,n.i=t,st.__H.__h.push(n))}function zn(e){return go=5,ha(function(){return{current:e}},[])}function ha(e,t){var n=Du(mo++,7);return id(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function dn(e,t){return go=8,ha(function(){return e},t)}function Ye(e){var t=st.context[e.__c],n=Du(mo++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(st)),t.props.value):e.__}function b2(){for(var e;e=ud.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Su),e.__H.__h.forEach(zs),e.__H.__h=[]}catch(t){e.__H.__h=[],Se.__e(t,e.__v)}}Se.__b=function(e){typeof e.type!="function"||e.o||e.type===Fe?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),st=null,ed&&ed(e)},Se.__r=function(e){td&&td(e),mo=0;var t=(st=e.__c).__H;t&&(js===st?(t.__h=[],st.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=ku,n.__N=n.i=void 0})):(t.__h.forEach(Su),t.__h.forEach(zs),t.__h=[])),js=st},Se.diffed=function(e){nd&&nd(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ud.push(t)!==1&&X4===Se.requestAnimationFrame||((X4=Se.requestAnimationFrame)||y2)(b2)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==ku&&(n.__=n.__V),n.i=void 0,n.__V=ku})),js=st=null},Se.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Su),n.__h=n.__h.filter(function(a){return!a.__||zs(a)})}catch(a){t.some(function(r){r.__h&&(r.__h=[])}),t=[],Se.__e(a,n.__v)}}),ad&&ad(e,t)},Se.unmount=function(e){rd&&rd(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(a){try{Su(a)}catch(r){t=r}}),n.__H=void 0,t&&Se.__e(t,n.__v))};var od=typeof requestAnimationFrame=="function";function y2(e){var t,n=function(){clearTimeout(a),od&&cancelAnimationFrame(t),setTimeout(e)},a=setTimeout(n,100);od&&(t=requestAnimationFrame(n))}function Su(e){var t=st,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),st=t}function zs(e){var t=st;e.__c=e.__(),st=t}function id(e,t){return!e||e.length!==t.length||t.some(function(n,a){return n!==e[a]})}function sd(e,t){return typeof t=="function"?t(e):t}h();h();h();var po;function Xs(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function yd(e,t=","){return e.map(Xs).join(t)}var e0=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function hr(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function Mu(e,t="@media "){return t+He(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(a=>`(${a}-width:${n[a]})`).join(" and "))).join(",")}function He(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function ld(e){return e}function ho(){}var dt={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function xd(e){return e.match(/[-=:;]/g)?.length||0}function Gs(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(xd(e),15)<<18}var x2=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function t0({n:e,i:t,v:n=[]},a,r,o){e&&(e=Xs({n:e,i:t,v:n})),o=[...He(o)];for(let i of n){let s=a.theme("screens",i);for(let c of He(s&&Mu(s)||a.v(i))){var u;o.push(c),r|=s?67108864|Gs(c):i=="dark"?1073741824:c[0]=="@"?Gs(c):(u=c,1<<~(/:([a-z-]+)/.test(u)&&~x2.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:r,r:o,i:t}}var n0=new Map;function Vs(e){if(e.d){let t=[],n=Hs(e.r.reduce((a,r)=>r[0]=="@"?(t.push(r),a):r?Hs(a,o=>Hs(r,u=>{let i=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(u);if(i){let s=o.indexOf(i[1]);return~s?o.slice(0,s)+i[0]+o.slice(s+i[1].length):qs(o,u)}return qs(u,o)})):a,"&"),a=>qs(a,e.n?"."+e0(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((a,r)=>r+"{"+a+"}",e.d)}}function Hs(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,a,r)=>t(a)+r)}function qs(e,t){return e.replace(/&/g,t)}var cd=new Intl.Collator("en",{numeric:!0});function Td(e,t){for(var n=0,a=e.length;n>1;0>=Ed(e[r],t)?n=r+1:a=r}return a}function Ed(e,t){let n=e.p&dt.o;return n==(t.p&dt.o)&&(n==dt.b||n==dt.o)?0:e.p-t.p||e.o-t.o||cd.compare(dd(e.n),dd(t.n))||cd.compare(gd(e.n),gd(t.n))}function dd(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function gd(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function Ws(e,t){return Math.round(parseInt(e,16)*t)}function ea(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:a}=t,r=a?`var(${a})`:n;if(e.includes(""))return e.replace("",r);if(e[0]=="#"&&(e.length==4||e.length==7)){let o=(e.length-1)/3,u=[17,1,.062272][o-1];return`rgba(${[Ws(e.substr(1,o),u),Ws(e.substr(1+o,o),u),Ws(e.substr(1+2*o,o),u),r]})`}return r=="1"?e:r=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${r})`)}function a0(e,t,n,a,r=[]){return function o(u,{n:i,p:s,r:c=[],i:l},f){let p=[],m="",g=0,T=0;for(let S in u||{}){var w,b;let D=u[S];if(S[0]=="@"){if(!D)continue;if(S[1]=="a"){p.push(...u0(i,s,fo(""+D),f,s,c,l,!0));continue}if(S[1]=="l"){for(let N of He(D))p.push(...o(N,{n:i,p:(w=dt[S[7]],s&~dt.o|w),r:S[7]=="d"?[]:c,i:l},f));continue}if(S[1]=="i"){p.push(...He(D).map(N=>({p:-1,o:0,r:[],d:S+" "+N})));continue}if(S[1]=="k"){p.push({p:dt.d,o:0,r:[S],d:o(D,{p:dt.d},f).map(Vs).join("")});continue}if(S[1]=="f"){p.push(...He(D).map(N=>({p:dt.d,o:0,r:[S],d:o(N,{p:dt.d},f).map(Vs).join("")})));continue}}if(typeof D!="object"||Array.isArray(D))S=="label"&&D?i=D+hr(JSON.stringify([s,l,u])):(D||D===0)&&(S=S.replace(/[A-Z]/g,N=>"-"+N.toLowerCase()),T+=1,g=Math.max(g,(b=S)[0]=="-"?0:xd(b)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(b)?+!!RegExp.$1||-!!RegExp.$2:0)+1),m+=(m?";":"")+He(D).map(N=>f.s(S,r0(""+N,f.theme)+(l?" !important":""))).join(";"));else if(S[0]=="@"||S.includes("&")){let N=s;S[0]=="@"&&(S=S.replace(/\bscreen\(([^)]+)\)/g,(_,y)=>{let E=f.theme("screens",y);return E?(N|=67108864,Mu(E,"")):_}),N|=Gs(S)),p.push(...o(D,{n:i,p:N,r:[...c,S],i:l},f))}else p.push(...o(D,{p:s,r:[...c,S]},f))}return p.unshift({n:i,p:s,o:Math.max(0,15-T)+1.5*Math.min(g||15,15),r:c,d:m}),p.sort(Ed)}(e,t0(t,n,a,r),n)}function r0(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,a,r,o,u="")=>{let i=t(r,u);return typeof i=="function"&&/color|fill|stroke/i.test(r)?ea(i):""+He(i).filter(s=>Object(s)!==s)})}function o0(e,t){let n,a=[];for(let r of e)r.d&&r.n?n?.p==r.p&&""+n.r==""+r.r?(n.c=[n.c,r.c].filter(Boolean).join(" "),n.d=n.d+";"+r.d):a.push(n={...r,n:r.n&&t}):a.push({...r,n:r.n&&t});return a}function Lu(e,t,n=dt.u,a,r){let o=[];for(let u of e)for(let i of function(s,c,l,f,p){s={...s,i:s.i||p};let m=function(g,T){let w=n0.get(g.n);return w?w(g,T):T.r(g.n,g.v[0]=="dark")}(s,c);return m?typeof m=="string"?({r:f,p:l}=t0(s,c,l,f),o0(Lu(fo(m),c,l,f,s.i),s.n)):Array.isArray(m)?m.map(g=>{var T,w;return{o:0,...g,r:[...He(f),...He(g.r)],p:(T=l,w=g.p??l,T&~dt.o|w)}}):a0(m,s,c,l,f):[{c:Xs(s),p:0,o:0,r:[]}]}(u,t,n,a,r))o.splice(Td(o,i),0,i);return o}function u0(e,t,n,a,r,o,u,i){return o0((i?n.flatMap(s=>Lu([s],a,r,o,u)):Lu(n,a,r,o,u)).map(s=>s.p&dt.o&&(s.n||t==dt.b)?{...s,p:s.p&~dt.o|t,o:0}:s),e)}function T2(e,t,n,a){var r;return r=(o,u)=>{let{n:i,p:s,r:c,i:l}=t0(o,u,t);return n&&u0(i,t,n,u,s,c,l,a)},n0.set(e,r),e}function Ks(e,t,n){if(e[e.length-1]!="("){let a=[],r=!1,o=!1,u="";for(let i of e)if(!(i=="("||/[~@]$/.test(i))){if(i[0]=="!"&&(i=i.slice(1),r=!r),i.endsWith(":")){a[i=="dark:"?"unshift":"push"](i.slice(0,-1));continue}i[0]=="-"&&(i=i.slice(1),o=!o),i.endsWith("-")&&(i=i.slice(0,-1)),i&&i!="&"&&(u+=(u&&"-")+i)}u&&(o&&(u="-"+u),t[0].push({n:u,v:a.filter(E2),i:r}))}}function E2(e,t,n){return n.indexOf(e)==t}var md=new Map;function fo(e){let t=md.get(e);if(!t){let n=[],a=[[]],r=0,o=0,u=null,i=0,s=(c,l=0)=>{r!=i&&(n.push(e.slice(r,i+l)),c&&Ks(n,a)),r=i+1};for(;i1?f.slice(0,-1)+hr(JSON.stringify([f,p])):f+"("+yd(p)+")",dt.a,p,/@$/.test(f))],a)}l=n.lastIndexOf("(",l-1)}n.length=l+1}else/[~@]/.test(c)&&e[i+1]=="("&&a.unshift([])}s(!0),md.set(e,t=a[0])}return t}function Cd(e,t,n){return t.reduce((a,r,o)=>a+n(r)+e[o+1],e[0])}function vd(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?Cd(e,t,n=>$s(n).trim()):t.filter(Boolean).reduce((n,a)=>n+$s(a),e?$s(e):"")}function $s(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=vd(e[0],e.slice(1)))&&(n+=" "+t);else for(let a in e)e[a]&&(n+=" "+a);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var uE=wd("@"),iE=wd("~");function wd(e){return new Proxy(function(n,...a){return t("",n,a)},{get(n,a){return a in n?n[a]:function(r,...o){return t(a,r,o)}}});function t(n,a,r){return yd(fo(n+e+"("+vd(a,r)+")"))}}function Ys(e,t){return Array.isArray(e)?pd(Cd(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?pd(e):[e]}var C2=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function pd(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],a=[n[0]],r=[];for(;t=C2.exec(e);)t[4]&&(n.shift(),r.shift()),t[3]?(r.unshift(t[3]),n.unshift({}),a.push(r.reduce((o,u)=>({[u]:o}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),a.push(r.reduce((o,u)=>({[u]:o}),n[0]))),n[0][t[1]]=t[2]);return a}function Ad(e,...t){var n;let a=Ys(e,t),r=(a.find(o=>o.label)?.label||"css")+hr(JSON.stringify(a));return n=(o,u)=>o0(a.flatMap(i=>a0(i,o,u,dt.o)),r),n0.set(r,n),r}var sE=new Proxy(function(e,t){return fd("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,a){return fd(t,n,a)}}});function fd(e,t,n){return{toString(){return Ad({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function ne(e,t,n){return[e,Js(t,n)]}function Js(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,a)=>({[e]:t?t(n,a):Qs(n,1)}):n=>e||{[n[1]]:Qs(n,2)}}function Qs(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function ae(e,t,n,a){return[e,v2(t,n,a)]}function v2(e,t,n){let a=typeof t=="string"?(r,o)=>({[t]:n?n(r,o):r._}):t||(({1:r,_:o},u,i)=>({[r||i]:o}));return(r,o)=>{let u=kd(e||r[1]),i=o.theme(u,r.$$)??Hn(r.$$,u,o);if(i!=null)return r._=Qs(r,0,i),a(r,o,u)}}function yt(e,t={},n){return[e,w2(t,n)]}function w2(e={},t){return(n,a)=>{let{section:r=kd(n[0]).replace("-","")+"Color"}=e,[o,u]=A2(n.$$);if(!o)return;let i=a.theme(r,o)||Hn(o,r,a);if(!i||typeof i=="object")return;let{opacityVariable:s=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:c=r.replace("Color","Opacity"),property:l=r,selector:f}=e,p=a.theme(c,u||"DEFAULT")||u&&Hn(u,c,a),m=t||(({_:T})=>{let w=bo(l,T);return f?{[f]:w}:w});n._={value:ea(i,{opacityVariable:s||void 0,opacityValue:p||void 0}),color:T=>ea(i,T),opacityVariable:s||void 0,opacityValue:p||void 0};let g=m(n,a);if(!n.dark){let T=a.d(r,o,i);T&&T!==i&&(n._={value:ea(T,{opacityVariable:s||void 0,opacityValue:p||"1"}),color:w=>ea(T,w),opacityVariable:s||void 0,opacityValue:p||void 0},g={"&":g,[a.v("dark")]:m(n,a)})}return g}}function A2(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function bo(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function Hn(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=br(r0(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function kd(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function br(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",a,r="")=>br(n)+a+br(r)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var lE=Symbol();function yo({presets:e=[],...t}){let n={darkMode:void 0,darkColor:void 0,preflight:t.preflight!==!1&&[],theme:{},variants:He(t.variants),rules:He(t.rules),ignorelist:He(t.ignorelist),hash:void 0,stringify:(a,r)=>a+":"+r,finalize:[]};for(let a of He([...e,{darkMode:t.darkMode,darkColor:t.darkColor,preflight:t.preflight!==!1&&He(t.preflight),theme:t.theme,hash:t.hash,stringify:t.stringify,finalize:t.finalize}])){let{preflight:r,darkMode:o=n.darkMode,darkColor:u=n.darkColor,theme:i,variants:s,rules:c,ignorelist:l,hash:f=n.hash,stringify:p=n.stringify,finalize:m}=typeof a=="function"?a(n):a;n={preflight:n.preflight!==!1&&r!==!1&&[...n.preflight,...He(r)],darkMode:o,darkColor:u,theme:{...n.theme,...i,extend:{...n.theme.extend,...i?.extend}},variants:[...n.variants,...He(s)],rules:[...n.rules,...He(c)],ignorelist:[...n.ignorelist,...He(l)],hash:f,stringify:p,finalize:[...n.finalize,...He(m)]}}return n}function hd(e,t,n,a,r,o){for(let u of t){let i=n.get(u);i||n.set(u,i=a(u));let s=i(e,r,o);if(s)return s}}function k2(e){var t;return Zs(e[0],typeof(t=e[1])=="function"?t:()=>t)}function S2(e){var t,n;return Array.isArray(e)?Zs(e[0],Js(e[1],e[2])):Zs(e,Js(t,n))}function Zs(e,t){return Sd(e,(n,a,r,o)=>{let u=a.exec(n);if(u)return u.$$=n.slice(u[0].length),u.dark=o,t(u,r)})}function Sd(e,t){let n=He(e).map(D2);return(a,r,o)=>{for(let u of n){let i=t(a,u,r,o);if(i)return i}}}function D2(e){return typeof e=="string"?RegExp("^"+e+(e.includes("$")||e.slice(-1)=="-"?"":"$")):e}function L2(e,t){let n=yo(e),a=function({theme:s,darkMode:c,darkColor:l=ho,variants:f,rules:p,hash:m,stringify:g,ignorelist:T,finalize:w}){let b=new Map,S=new Map,D=new Map,N=new Map,_=Sd(T,(x,v)=>v.test(x));f.push(["dark",Array.isArray(c)||c=="class"?`${He(c)[1]||".dark"} &`:typeof c=="string"&&c!="media"?c:"@media (prefers-color-scheme:dark)"]);let y=typeof m=="function"?x=>m(x,hr):m?hr:ld;y!==ld&&w.push(x=>({...x,n:x.n&&y(x.n),d:x.d?.replace(/--(tw(?:-[\w-]+)?)\b/g,(v,C)=>"--"+y(C).replace("#",""))}));let E={theme:function({extend:x={},...v}){let C={},R={get colors(){return M("colors")},theme:M,negative(){return{}},breakpoints(P){let O={};for(let j in P)typeof P[j]=="string"&&(O["screen-"+j]=P[j]);return O}};return M;function M(P,O,j,B){if(P){if({1:P,2:B}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(P)||[,P],/[.[]/.test(P)){let K=[];P.replace(/\[([^\]]+)\]|([^.[]+)/g,(H,V,q=V)=>K.push(q)),P=K.shift(),j=O,O=K.join("-")}let L=C[P]||Object.assign(Object.assign(C[P]={},k(v,P)),k(x,P));if(O==null)return L;O||="DEFAULT";let U=L[O]??O.split("-").reduce((K,H)=>K?.[H],L)??j;return B?ea(U,{opacityValue:r0(B,M)}):U}let A={};for(let L of[...Object.keys(v),...Object.keys(x)])A[L]=M(L);return A}function k(P,O){let j=P[O];return typeof j=="function"&&(j=j(R)),j&&/color|fill|stroke/i.test(O)?function B(A,L=[]){let U={};for(let K in A){let H=A[K],V=[...L,K];U[V.join("-")]=H,K=="DEFAULT"&&(V=L,U[L.join("-")]=H),typeof H=="object"&&Object.assign(U,B(H,V))}return U}(j):j}}(s),e:e0,h:y,s(x,v){return g(x,v,E)},d(x,v,C){return l(x,v,E,C)},v(x){return b.has(x)||b.set(x,hd(x,f,S,k2,E)||"&:"+x),b.get(x)},r(x,v){let C=JSON.stringify([x,v]);return D.has(C)||D.set(C,!_(x,E)&&hd(x,p,N,S2,E,v)),D.get(C)},f(x){return w.reduce((v,C)=>C(v,E),x)}};return E}(n),r=new Map,o=[],u=new Set;t.resume(s=>r.set(s,s),(s,c)=>{t.insert(s,o.length,c),o.push(c),u.add(s)});function i(s){let c=a.f(s),l=Vs(c);if(l&&!u.has(l)){u.add(l);let f=Td(o,s);t.insert(l,f,s),o.splice(f,0,s)}return c.n}return Object.defineProperties(function(s){if(!r.size)for(let l of He(n.preflight))typeof l=="function"&&(l=l(a)),l&&(typeof l=="string"?u0("",dt.b,fo(l),a,dt.b,[],!1,!0):a0(l,{},a,dt.b)).forEach(i);s=""+s;let c=r.get(s);if(!c){let l=new Set;for(let f of Lu(fo(s),a))l.add(f.c).add(i(f));c=[...l].filter(Boolean).join(" "),r.set(s,c).set(c,c)}return c},Object.getOwnPropertyDescriptors({get target(){return t.target},theme:a.theme,config:n,snapshot(){let s=t.snapshot(),c=new Set(u),l=new Map(r),f=[...o];return()=>{s(),u=c,r=l,o=f}},clear(){t.clear(),u=new Set,r=new Map,o=[]},destroy(){this.clear(),t.destroy()}}))}function M2(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function P2(e){let t=new MutationObserver(n);return{observe(r){t.observe(r,{attributeFilter:["class"],subtree:!0,childList:!0}),a(r),n([{target:r,type:""}])},disconnect(){t.disconnect()}};function n(r){for(let{type:o,target:u}of r)if(o[0]=="a")a(u);else for(let i of u.querySelectorAll("[class]"))a(i);t.takeRecords()}function a(r){let o,u=r.getAttribute?.("class");u&&M2(u,o=e(u))&&r.setAttribute("class",o)}}function F2(e=i0,t=typeof document<"u"&&document.documentElement){if(t){let n=P2(e);n.observe(t);let{destroy:a}=e;e.destroy=()=>{n.disconnect(),a.call(e)}}return e}function Dd(e){let t=document.querySelector(e||'style[data-twind=""]');return(!t||t.tagName!="STYLE")&&(t=document.createElement("style"),document.head.prepend(t)),t.dataset.twind="claimed",t}function _2(e){let t=e?.cssRules?e:(e&&typeof e!="string"?e:Dd(e)).sheet;return{target:t,snapshot(){let n=Array.from(t.cssRules,a=>a.cssText);return()=>{this.clear(),n.forEach(this.insert)}},clear(){for(let n=t.cssRules.length;n--;)t.deleteRule(n)},destroy(){t.ownerNode?.remove()},insert(n,a){try{t.insertRule(n,a)}catch{t.insertRule(":root{}",a)}},resume:ho}}function B2(e){let t=e&&typeof e!="string"?e:Dd(e);return{target:t,snapshot(){let n=Array.from(t.childNodes,a=>a.textContent);return()=>{this.clear(),n.forEach(this.insert)}},clear(){t.textContent=""},destroy(){t.remove()},insert(n,a){t.insertBefore(document.createTextNode(n),t.childNodes[a]||null)},resume:ho}}function R2(e){let t=[];return{target:t,snapshot(){let n=[...t];return()=>{t.splice(0,t.length,...n)}},clear(){t.length=0},destroy(){this.clear()},insert(n,a,r){t.splice(a,0,e?`/*!${r.p.toString(36)},${(2*r.o).toString(36)}${r.n?","+r.n:""}*/${n}`:n)},resume:ho}}function Ld(e,t){let n=typeof document>"u"?R2(!t):e?B2():_2();return t||(n.resume=O2),n}function I2(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,t=>t.cssText):He(e)).join("")}function O2(e,t){let n=I2(this.target),a=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(a.test(n)){var r;let o;if(a.lastIndex=0,this.clear(),typeof document<"u")for(let u of document.querySelectorAll("[class]"))e(u.getAttribute("class"));for(;r=a.exec(n),o&&t(n.slice(o.index+o[0].length,r?.index),{p:parseInt(o[1],36),o:parseInt(o[2],36)/2,n:o[3]}),o=r;);}}var i0=new Proxy(ho,{apply(e,t,n){return po(n[0])},get(e,t){let n=po[t];return typeof n=="function"?function(){return n.apply(po,arguments)}:n}});function Md(e={},t=Ld,n){return po?.destroy(),po=F2(L2(e,typeof t=="function"?t():t),n)}function s0(e,t=!0){let n=yo(e);return Md({...n,hash:n.hash??t},()=>Ld(!t))}var cE=function e(t){return new Proxy(function(n,...a){return bd(t,"",n,a)},{get(n,a){return a==="bind"?e:a in n?n[a]:function(r,...o){return bd(t,a,r,o)}}})}();function bd(e,t,n,a){return{toString(){let r=Ys(n,a),o=e0(t+hr(JSON.stringify([t,r])));return(typeof e=="function"?e:i0)(Ad({[`@keyframes ${o}`]:Ys(n,a)})),o}}}h();h();h();var N2=new Map([["align-self","-ms-grid-row-align"],["color-adjust","-webkit-print-color-adjust"],["column-gap","grid-column-gap"],["forced-color-adjust","-ms-high-contrast-adjust"],["gap","grid-gap"],["grid-template-columns","-ms-grid-columns"],["grid-template-rows","-ms-grid-rows"],["justify-self","-ms-grid-column-align"],["margin-inline-end","-webkit-margin-end"],["margin-inline-start","-webkit-margin-start"],["mask-border","-webkit-mask-box-image"],["mask-border-outset","-webkit-mask-box-image-outset"],["mask-border-slice","-webkit-mask-box-image-slice"],["mask-border-source","-webkit-mask-box-image-source"],["mask-border-repeat","-webkit-mask-box-image-repeat"],["mask-border-width","-webkit-mask-box-image-width"],["overflow-wrap","word-wrap"],["padding-inline-end","-webkit-padding-end"],["padding-inline-start","-webkit-padding-start"],["print-color-adjust","color-adjust"],["row-gap","grid-row-gap"],["scroll-margin-bottom","scroll-snap-margin-bottom"],["scroll-margin-left","scroll-snap-margin-left"],["scroll-margin-right","scroll-snap-margin-right"],["scroll-margin-top","scroll-snap-margin-top"],["scroll-margin","scroll-snap-margin"],["text-combine-upright","-ms-text-combine-horizontal"]]);function Pd(e){return N2.get(e)}function Fd(e){var t=/^(?:(text-(?:decoration$|e|or|si)|back(?:ground-cl|d|f)|box-d|mask(?:$|-[ispro]|-cl)|pr|hyphena|flex-d)|(tab-|column(?!-s)|text-align-l)|(ap)|u|hy)/i.exec(e);return t?t[1]?1:t[2]?2:t[3]?3:5:0}function _d(e,t){var n=/^(?:(pos)|(cli)|(background-i)|(flex(?:$|-b)|(?:max-|min-)?(?:block-s|inl|he|widt))|dis)/i.exec(e);return n?n[1]?/^sti/i.test(t)?1:0:n[2]?/^pat/i.test(t)?1:0:n[3]?/^image-/i.test(t)?1:0:n[4]?t[3]==="-"?2:0:/^(?:inline-)?grid$/i.test(t)?4:0:0}var U2=[["-webkit-",1],["-moz-",2],["-ms-",4]];function Pu(){return({stringify:e})=>({stringify(t,n,a){let r="",o=Pd(t);o&&(r+=e(o,n,a)+";");let u=Fd(t),i=_d(t,n);for(let s of U2)u&s[1]&&(r+=e(s[0]+t,n,a)+";"),i&s[1]&&(r+=e(t,s[0]+n,a)+";");return r+e(t,n,a)}})}h();h();var c0={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...rn(4,"rem",4,.5,.5),...rn(12,"rem",4,5),14:"3.5rem",...rn(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Re("blur"),backdropBrightness:Re("brightness"),backdropContrast:Re("contrast"),backdropGrayscale:Re("grayscale"),backdropHueRotate:Re("hueRotate"),backdropInvert:Re("invert"),backdropOpacity:Re("opacity"),backdropSaturate:Re("saturate"),backdropSepia:Re("sepia"),backgroundColor:Re("colors"),backgroundImage:{none:"none"},backgroundOpacity:Re("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...rn(200,"",100,0,50),...rn(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Re("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Re("spacing"),borderWidth:{DEFAULT:"1px",...gn(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Re("colors"),caretColor:Re("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...rn(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Re("borderColor"),divideOpacity:Re("borderOpacity"),divideWidth:Re("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...xo(2,6),...xo(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Re("spacing"),gradientColorStops:Re("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...xo(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...xo(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...rn(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...rn(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Re("spacing"),placeholderColor:Re("colors"),placeholderOpacity:Re("opacity"),outlineColor:Re("colors"),outlineOffset:gn(8,"px"),outlineWidth:gn(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Re("colors"),ringOffsetWidth:gn(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...gn(8,"px")},rotate:{...gn(2,"deg"),...gn(12,"deg",3),...gn(180,"deg",45)},saturate:rn(200,"",100,0,50),scale:{...rn(150,"",100,0,50),...rn(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Re("spacing"),scrollPadding:Re("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...gn(2,"deg"),...gn(12,"deg",3)},space:Re("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:rn(2),textColor:Re("colors"),textDecorationColor:Re("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...gn(8,"px")},textUnderlineOffset:{auto:"auto",...gn(8,"px")},textIndent:Re("spacing"),textOpacity:Re("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Re("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...xo(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...rn(50,"",1,0,10),auto:"auto"}};function xo(e,t){let n={};do for(var a=1;at(e)}var j2={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${c0.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${c0.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},z2=[ne("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:Hn(`[${t}]`,"",n)}}})),ne("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),ae("aspect-","aspectRatio"),ne("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:a,padding:r}=t("container"),o={width:"100%",marginRight:a&&"auto",marginLeft:a&&"auto",...u("xs")};for(let i in n){let s=n[i];typeof s=="string"&&(o[Mu(s)]={"&":{maxWidth:s,...u(i)}})}return o;function u(i){let s=r&&(typeof r=="string"?r:r[i]||r.DEFAULT);if(s)return{paddingRight:s,paddingLeft:s}}}),ae("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),ne("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),ne("box-(border|content)","boxSizing",({1:e})=>e+"-box"),ne("hidden",{display:"none"}),ne("table-(auto|fixed)","tableLayout"),ne(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",ne("isolate","isolation"),ne("object-(contain|cover|fill|none|scale-down)","objectFit"),ae("object-","objectPosition"),ne("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",Fu),ne("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),ne("(static|fixed|absolute|relative|sticky)","position"),ae("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),ae("-?(top|bottom|left|right)(?:$|-)","inset"),ne("(visible|collapse)","visibility"),ne("invisible",{visibility:"hidden"}),ae("-?z-","zIndex"),ne("flex-((row|col)(-reverse)?)","flexDirection",Bd),ne("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),ae("(flex-(?:grow|shrink))(?:$|-)"),ae("(flex)-"),ae("grow(?:$|-)","flexGrow"),ae("shrink(?:$|-)","flexShrink"),ae("basis-","flexBasis"),ae("-?(order)-"),"-?(order)-(\\d+)",ae("grid-cols-","gridTemplateColumns"),ne("grid-cols-(\\d+)","gridTemplateColumns",Nd),ae("col-","gridColumn"),ne("col-(span)-(\\d+)","gridColumn",Od),ae("col-start-","gridColumnStart"),ne("col-start-(auto|\\d+)","gridColumnStart"),ae("col-end-","gridColumnEnd"),ne("col-end-(auto|\\d+)","gridColumnEnd"),ae("grid-rows-","gridTemplateRows"),ne("grid-rows-(\\d+)","gridTemplateRows",Nd),ae("row-","gridRow"),ne("row-(span)-(\\d+)","gridRow",Od),ae("row-start-","gridRowStart"),ne("row-start-(auto|\\d+)","gridRowStart"),ae("row-end-","gridRowEnd"),ne("row-end-(auto|\\d+)","gridRowEnd"),ne("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>Fu(Bd(e))),ne("grid-flow-(dense)","gridAutoFlow"),ae("auto-cols-","gridAutoColumns"),ae("auto-rows-","gridAutoRows"),ae("gap-x(?:$|-)","gap","columnGap"),ae("gap-y(?:$|-)","gap","rowGap"),ae("gap(?:$|-)","gap"),"(justify-(?:items|self))-",ne("justify-","justifyContent",Rd),ne("(content|items|self)-",e=>({["align-"+e[1]]:Rd(e)})),ne("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),ae("p([xytrbl])?(?:$|-)","padding",yr("padding")),ae("-?m([xytrbl])?(?:$|-)","margin",yr("margin")),ae("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),ne("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),ae("w-","width"),ae("min-w-","minWidth"),ae("max-w-","maxWidth"),ae("h-","height"),ae("min-h-","minHeight"),ae("max-h-","maxHeight"),ae("font-","fontWeight"),ae("font-","fontFamily",({_:e})=>typeof(e=He(e))[1]=="string"?{fontFamily:kn(e)}:{fontFamily:kn(e[0]),...e[1]}),ne("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),ne("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),ne("italic","fontStyle"),ne("not-italic",{fontStyle:"normal"}),ne("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...ba({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),ae("tracking-","letterSpacing"),ae("leading-","lineHeight"),ne("list-(inside|outside)","listStylePosition"),ae("list-","listStyleType"),ne("list-","listStyleType"),ae("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),yt("placeholder-",{property:"color",selector:"&::placeholder"}),ne("text-(left|center|right|justify|start|end)","textAlign"),ne("text-(ellipsis|clip)","textOverflow"),ae("text-opacity-","textOpacity","--tw-text-opacity"),yt("text-",{property:"color"}),ae("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),ae("indent-","textIndent"),ne("(overline|underline|line-through)","textDecorationLine"),ne("no-underline",{textDecorationLine:"none"}),ae("underline-offset-","textUnderlineOffset"),yt("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),ae("decoration-","textDecorationThickness"),ne("decoration-","textDecorationStyle"),ne("(uppercase|lowercase|capitalize)","textTransform"),ne("normal-case",{textTransform:"none"}),ne("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),ne("align-","verticalAlign"),ne("whitespace-","whiteSpace"),ne("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),ne("break-words",{overflowWrap:"break-word"}),ne("break-all",{wordBreak:"break-all"}),ne("break-keep",{wordBreak:"keep-all"}),yt("caret-",{opacityVariable:!1,opacitySection:"opacity"}),yt("accent-",{opacityVariable:!1,opacitySection:"opacity"}),ne("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${qa(e," ")},var(--tw-gradient-stops))`),yt("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),yt("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),yt("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),ne("bg-(fixed|local|scroll)","backgroundAttachment"),ne("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),ne(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),ne("bg-blend-","backgroundBlendMode"),ne("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),ae("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),yt("bg-",{section:"backgroundColor"}),ae("bg-","backgroundImage"),ae("bg-","backgroundPosition"),ne("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",Fu),ae("bg-","backgroundSize"),ae("rounded(?:$|-)","borderRadius"),ae("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${qa(n[0])}-radius`]:t,[`border-${qa(n[1])}-radius`]:t}}),ne("border-(collapse|separate)","borderCollapse"),ae("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),ne("border-(solid|dashed|dotted|double|none)","borderStyle"),ae("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...ba({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),yt("border-([xytrbl])-",{section:"borderColor"},yr("border","Color")),yt("border-"),ae("border-([xytrbl])(?:$|-)","borderWidth",yr("border","Width")),ae("border(?:$|-)","borderWidth"),ae("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),ne("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),ne("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),ae("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${qa(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${qa(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),yt("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),ae("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),yt("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),ae("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),ne("ring-inset",{"--tw-ring-inset":"inset"}),yt("ring-",{property:"--tw-ring-color"}),ae("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...ba({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":ea(t("ringOffsetColor","","#fff")),"--tw-ring-color":ea(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),yt("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),ae("shadow(?:$|-)","boxShadow",({_:e})=>({...ba({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":kn(e),"--tw-shadow-colored":kn(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),ae("(opacity)-"),ne("mix-blend-","mixBlendMode"),...Id(),...Id("backdrop-"),ae("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:kn(e),transitionTimingFunction:e._=="none"?void 0:kn(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:kn(t("transitionDuration",""))})),ae("duration(?:$|-)","transitionDuration","transitionDuration",kn),ae("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",kn),ae("delay(?:$|-)","transitionDelay","transitionDelay",kn),ae("animate(?:$|-)","animation",(e,{theme:t,h:n,e:a})=>{let r=kn(e),o=r.split(" "),u=t("keyframes",o[0]);return u?{["@keyframes "+(o[0]=a(n(o[0])))]:u,animation:o.join(" ")}:{animation:r}}),"(transform)-(none)",ne("transform",d0),ne("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":Ud(e=="gpu")})),ae("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...d0()})),ae("-?(rotate)-","rotate",l0),ae("-?(translate-[xy])-","translate",l0),ae("-?(skew-[xy])-","skew",l0),ne("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",Fu),"(appearance)-",ae("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",ae("(cursor)-"),"(cursor)-",ne("snap-(none)","scroll-snap-type"),ne("snap-(x|y|both)",({1:e})=>({...ba({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),ne("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),ne("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),ne("snap-(normal|always)","scroll-snap-stop"),ne("scroll-(auto|smooth)","scroll-behavior"),ae("scroll-p([xytrbl])?(?:$|-)","padding",yr("scroll-padding")),ae("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",yr("scroll-margin")),ne("touch-(auto|none|manipulation)","touch-action"),ne("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...ba({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),ne("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),ne("outline",{outlineStyle:"solid"}),ne("outline-(dashed|dotted|double)","outlineStyle"),ae("-?(outline-offset)-"),yt("outline-",{opacityVariable:!1,opacitySection:"opacity"}),ae("outline-","outlineWidth"),"(pointer-events)-",ae("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],ne("select-(none|text|all|auto)","userSelect"),yt("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),yt("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),ae("stroke-","strokeWidth"),ne("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),ne("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function Fu(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function Bd(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function qa(e,t="-"){let n=[];for(let a of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[a]);return n.join(t)}function kn(e){return e&&""+(e._||e)}function Rd({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function yr(e,t=""){return({1:n,_:a})=>{let r={x:"lr",y:"tb"}[n]||n+n;return r?{...bo(e+"-"+qa(r[0])+t,a),...bo(e+"-"+qa(r[1])+t,a)}:bo(e+t,a)}}function Id(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let a of t)n[`--tw-${e}${a}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...ba(n),[`${e}filter`]:t.map(a=>`var(--tw-${e}${a})`).join(" ")},[`(${e}filter)-(none)`,ne(`${e}filter`,n),...t.map(a=>ae(`${a[0]=="h"?"-?":""}(${e}${a})(?:$|-)`,a,({1:r,_:o})=>({[`--tw-${r}`]:He(o).map(u=>`${a}(${u})`).join(" "),...n})))]}function l0({1:e,_:t}){return{["--tw-"+e]:t,...d0()}}function d0(){return{...ba({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":Ud()}),transform:"var(--tw-transform)"}}function Ud(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function Od({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function Nd({1:e}){return`repeat(${e},minmax(0,1fr))`}function ba(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}var H2=[["sticky","@supports ((position: -webkit-sticky) or (position:sticky))"],["motion-reduce","@media (prefers-reduced-motion:reduce)"],["motion-safe","@media (prefers-reduced-motion:no-preference)"],["print","@media print"],["(portrait|landscape)",({1:e})=>`@media (orientation:${e})`],["contrast-(more|less)",({1:e})=>`@media (prefers-contrast:${e})`],["(first-(letter|line)|placeholder|backdrop|before|after)",({1:e})=>`&::${e}`],["(marker|selection)",({1:e})=>`& *::${e},&::${e}`],["file","&::file-selector-button"],["(first|last|only)",({1:e})=>`&:${e}-child`],["even","&:nth-child(2n)"],["odd","&:nth-child(odd)"],["open","&[open]"],["(aria|data)-",({1:e,$$:t},n)=>t&&`&[${e}-${n.theme(e,t)||Hn(t,"",n)||`${t}="true"`}]`],["((group|peer)(~[^-[]+)?)(-\\[(.+)]|[-[].+?)(\\/.+)?",({2:e,3:t="",4:n,5:a="",6:r=t},{e:o,h:u,v:i})=>{let s=br(a)||(n[0]=="["?n:i(n.slice(1)));return`${(s.includes("&")?s:"&"+s).replace(/&/g,`:merge(.${o(u(e+r))})`)}${e[0]=="p"?"~":" "}&`}],["(ltr|rtl)",({1:e})=>`[dir="${e}"] &`],["supports-",({$$:e},t)=>{if(e&&=t.theme("supports",e)||Hn(e,"",t),e)return e.includes(":")||(e+=":var(--tw)"),/^\w*\s*\(/.test(e)||(e=`(${e})`),`@supports ${e.replace(/\b(and|or|not)\b/g," $1 ").trim()}`}],["max-",({$$:e},t)=>{if(e&&=t.theme("screens",e)||Hn(e,"",t),typeof e=="string")return`@media not all and (min-width:${e})`}],["min-",({$$:e},t)=>(e&&=Hn(e,"",t))&&`@media (min-width:${e})`],[/^\[(.+)]$/,({1:e})=>/[&@]/.test(e)&&br(e).replace(/[}]+$/,"").split("{")]];function q2({colors:e,disablePreflight:t}={}){return{preflight:t?void 0:j2,theme:{...c0,colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",...e}},variants:H2,rules:z2,finalize(n){return n.n&&n.d&&n.r.some(a=>/^&::(before|after)$/.test(a))&&!/(^|;)content:/.test(n.d)?{...n,d:"content:var(--tw-content);"+n.d}:n}}}var W2={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},K2={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},$2={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},G2={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},V2={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},Y2={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},J2={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},Q2={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},Z2={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},X2={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},e1={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},t1={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},n1={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},a1={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},r1={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},o1={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},u1={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},i1={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},s1={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},l1={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},c1={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},d1={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},g1={__proto__:null,slate:W2,gray:K2,zinc:$2,neutral:G2,stone:V2,red:Y2,orange:J2,amber:Q2,yellow:Z2,lime:X2,green:e1,emerald:t1,teal:n1,cyan:a1,sky:r1,blue:o1,indigo:u1,violet:i1,purple:s1,fuchsia:l1,pink:c1,rose:d1};function _u({disablePreflight:e}={}){return q2({colors:g1,disablePreflight:e})}h();h();var Bu=globalThis||(typeof window<"u"?window:self),m1=Object.create,m0=Object.defineProperty,p1=Object.getOwnPropertyDescriptor,f1=Object.getOwnPropertyNames,h1=Object.getPrototypeOf,b1=Object.prototype.hasOwnProperty,y1=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),x1=(e,t)=>{for(var n in t)m0(e,n,{get:t[n],enumerable:!0})},g0=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of f1(t))!b1.call(e,r)&&r!==n&&m0(e,r,{get:()=>t[r],enumerable:!(a=p1(t,r))||a.enumerable});return e},T1=(e,t,n)=>(g0(e,t,"default"),n&&g0(n,t,"default")),zd=(e,t,n)=>(n=e!=null?m1(h1(e)):{},g0(t||!e||!e.__esModule?m0(n,"default",{value:e,enumerable:!0}):n,e)),Hd=y1((e,t)=>{(function(n,a){typeof define=="function"&&define.amd?define([],a):typeof e<"u"?a():(a(),n.FileSaver={})})(e,function(){"use strict";function n(c,l){return typeof l>"u"?l={autoBom:!1}:typeof l!="object"&&(l={autoBom:!l}),l.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function a(c,l,f){var p=new XMLHttpRequest;p.open("GET",c),p.responseType="blob",p.onload=function(){s(p.response,l,f)},p.onerror=function(){},p.send()}function r(c){var l=new XMLHttpRequest;l.open("HEAD",c,!1);try{l.send()}catch{}return 200<=l.status&&299>=l.status}function o(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var l=document.createEvent("MouseEvents");l.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(l)}}var u=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Bu=="object"&&Bu.global===Bu?Bu:void 0,i=u.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=u.saveAs||(typeof window!="object"||window!==u?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(c,l,f){var p=u.URL||u.webkitURL,m=document.createElement("a");l=l||c.name||"download",m.download=l,m.rel="noopener",typeof c=="string"?(m.href=c,m.origin===location.origin?o(m):r(m.href)?a(c,l,f):o(m,m.target="_blank")):(m.href=p.createObjectURL(c),setTimeout(function(){p.revokeObjectURL(m.href)},4e4),setTimeout(function(){o(m)},0))}:"msSaveOrOpenBlob"in navigator?function(c,l,f){if(l=l||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(n(c,f),l);else if(r(c))a(c,l,f);else{var p=document.createElement("a");p.href=c,p.target="_blank",setTimeout(function(){o(p)})}}:function(c,l,f,p){if(p=p||open("","_blank"),p&&(p.document.title=p.document.body.innerText="downloading..."),typeof c=="string")return a(c,l,f);var m=c.type==="application/octet-stream",g=/constructor/i.test(u.HTMLElement)||u.safari,T=/CriOS\/[\d]+/.test(navigator.userAgent);if((T||m&&g||i)&&typeof FileReader<"u"){var w=new FileReader;w.onloadend=function(){var D=w.result;D=T?D:D.replace(/^data:[^;]*;/,"data:attachment/file;"),p?p.location.href=D:location=D,p=null},w.readAsDataURL(c)}else{var b=u.URL||u.webkitURL,S=b.createObjectURL(c);p?p.location=S:location.href=S,p=null,setTimeout(function(){b.revokeObjectURL(S)},4e4)}});u.saveAs=s.saveAs=s,typeof t<"u"&&(t.exports=s)})}),qd={};x1(qd,{default:()=>To});var E1=zd(Hd());T1(qd,zd(Hd()));var{default:jd,...C1}=E1,To=jd!==void 0?jd:C1;h();h();h();h();h();h();h();function xr(){let e,t="pending",n=new Promise((a,r)=>{e={async resolve(o){await o,t="fulfilled",a(o)},reject(o){t="rejected",r(o)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}h();var p0=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function Ru(e,t){let n=xr(),a=setTimeout(()=>n.reject(new p0),t);return Promise.race([e,n]).finally(()=>clearTimeout(a))}h();h();function qn(e,t={}){let{signal:n,persistent:a}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((r,o)=>{let u=()=>{clearTimeout(s),o(new DOMException("Delay was aborted.","AbortError"))},s=setTimeout(()=>{n?.removeEventListener("abort",u),r()},e);if(n?.addEventListener("abort",u,{once:!0}),a===!1)try{Deno.unrefTimer(s)}catch(c){if(!(c instanceof ReferenceError))throw c}})}h();var Wd=class{#e=0;#t=[];#n=[];#a=xr();add(t){++this.#e,this.#r(t[Symbol.asyncIterator]())}async#r(t){try{let{value:n,done:a}=await t.next();a?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#a.resolve()}async*iterate(){for(;this.#e>0;){await this.#a;for(let t=0;tY1,bgBlue:()=>X1,bgBrightBlack:()=>a6,bgBrightBlue:()=>i6,bgBrightCyan:()=>l6,bgBrightGreen:()=>o6,bgBrightMagenta:()=>s6,bgBrightRed:()=>r6,bgBrightWhite:()=>c6,bgBrightYellow:()=>u6,bgCyan:()=>t6,bgGreen:()=>Q1,bgMagenta:()=>e6,bgRed:()=>J1,bgRgb24:()=>p6,bgRgb8:()=>g6,bgWhite:()=>n6,bgYellow:()=>Z1,black:()=>_1,blue:()=>O1,bold:()=>k1,brightBlack:()=>Gd,brightBlue:()=>K1,brightCyan:()=>G1,brightGreen:()=>q1,brightMagenta:()=>$1,brightRed:()=>H1,brightWhite:()=>V1,brightYellow:()=>W1,cyan:()=>U1,dim:()=>S1,getColorEnabled:()=>w1,gray:()=>z1,green:()=>R1,hidden:()=>P1,inverse:()=>M1,italic:()=>D1,magenta:()=>N1,red:()=>B1,reset:()=>A1,rgb24:()=>m6,rgb8:()=>d6,setColorEnabled:()=>v1,strikethrough:()=>F1,stripColor:()=>h6,underline:()=>L1,white:()=>j1,yellow:()=>I1});h();var{Deno:Kd}=globalThis,$d=typeof Kd?.noColor=="boolean"?Kd.noColor:!0,f0=!$d;function v1(e){$d||(f0=e)}function w1(){return f0}function we(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function Ae(e,t){return f0?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function A1(e){return Ae(e,we([0],0))}function k1(e){return Ae(e,we([1],22))}function S1(e){return Ae(e,we([2],22))}function D1(e){return Ae(e,we([3],23))}function L1(e){return Ae(e,we([4],24))}function M1(e){return Ae(e,we([7],27))}function P1(e){return Ae(e,we([8],28))}function F1(e){return Ae(e,we([9],29))}function _1(e){return Ae(e,we([30],39))}function B1(e){return Ae(e,we([31],39))}function R1(e){return Ae(e,we([32],39))}function I1(e){return Ae(e,we([33],39))}function O1(e){return Ae(e,we([34],39))}function N1(e){return Ae(e,we([35],39))}function U1(e){return Ae(e,we([36],39))}function j1(e){return Ae(e,we([37],39))}function z1(e){return Gd(e)}function Gd(e){return Ae(e,we([90],39))}function H1(e){return Ae(e,we([91],39))}function q1(e){return Ae(e,we([92],39))}function W1(e){return Ae(e,we([93],39))}function K1(e){return Ae(e,we([94],39))}function $1(e){return Ae(e,we([95],39))}function G1(e){return Ae(e,we([96],39))}function V1(e){return Ae(e,we([97],39))}function Y1(e){return Ae(e,we([40],49))}function J1(e){return Ae(e,we([41],49))}function Q1(e){return Ae(e,we([42],49))}function Z1(e){return Ae(e,we([43],49))}function X1(e){return Ae(e,we([44],49))}function e6(e){return Ae(e,we([45],49))}function t6(e){return Ae(e,we([46],49))}function n6(e){return Ae(e,we([47],49))}function a6(e){return Ae(e,we([100],49))}function r6(e){return Ae(e,we([101],49))}function o6(e){return Ae(e,we([102],49))}function u6(e){return Ae(e,we([103],49))}function i6(e){return Ae(e,we([104],49))}function s6(e){return Ae(e,we([105],49))}function l6(e){return Ae(e,we([106],49))}function c6(e){return Ae(e,we([107],49))}function ya(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function d6(e,t){return Ae(e,we([38,5,ya(t)],39))}function g6(e,t){return Ae(e,we([48,5,ya(t)],49))}function m6(e,t){return typeof t=="number"?Ae(e,we([38,2,t>>16&255,t>>8&255,t&255],39)):Ae(e,we([38,2,ya(t.r),ya(t.g),ya(t.b)],39))}function p6(e,t){return typeof t=="number"?Ae(e,we([48,2,t>>16&255,t>>8&255,t&255],49)):Ae(e,we([48,2,ya(t.r),ya(t.g),ya(t.b)],49))}var f6=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function h6(e){return e.replace(f6,"")}h();h();var h0=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},b6={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function b0(e,t){let n={...b6,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let a=n.minTimeout,r;for(let o=0;osetTimeout(i,a)),a*=n.multiplier,a=Math.max(a,n.minTimeout),n.maxTimeout>=0&&(a=Math.min(a,n.maxTimeout)),r=u}throw new h0(r,n.maxAttempts)}h();var ta=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function y0(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",a,r=t.length;for(a=2;a>2],n+=ta[(t[a-2]&3)<<4|t[a-1]>>4],n+=ta[(t[a-1]&15)<<2|t[a]>>6],n+=ta[t[a]&63];return a===r+1&&(n+=ta[t[a-2]>>2],n+=ta[(t[a-2]&3)<<4],n+="=="),a===r&&(n+=ta[t[a-2]>>2],n+=ta[(t[a-2]&3)<<4|t[a-1]>>4],n+=ta[(t[a-1]&15)<<2],n+="="),n}h();h();var BC=Number.isNaN||function(e){return typeof e=="number"&&e!==e};h();h();var Iu=globalThis||(typeof window<"u"?window:self),x6=Object.create,T0=Object.defineProperty,T6=Object.getOwnPropertyDescriptor,E6=Object.getOwnPropertyNames,C6=Object.getPrototypeOf,v6=Object.prototype.hasOwnProperty,w6=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),A6=(e,t)=>{for(var n in t)T0(e,n,{get:t[n],enumerable:!0})},x0=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of E6(t))!v6.call(e,r)&&r!==n&&T0(e,r,{get:()=>t[r],enumerable:!(a=T6(t,r))||a.enumerable});return e},k6=(e,t,n)=>(x0(e,t,"default"),n&&x0(n,t,"default")),Yd=(e,t,n)=>(n=e!=null?x6(C6(e)):{},x0(t||!e||!e.__esModule?T0(n,"default",{value:e,enumerable:!0}):n,e)),Jd=w6((e,t)=>{var n="Expected a function",a=NaN,r="[object Symbol]",o=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,l=typeof Iu=="object"&&Iu&&Iu.Object===Object&&Iu,f=typeof self=="object"&&self&&self.Object===Object&&self,p=l||f||Function("return this")(),m=Object.prototype,g=m.toString,T=Math.max,w=Math.min,b=function(){return p.Date.now()};function S(x,v,C){var R,M,k,P,O,j,B=0,A=!1,L=!1,U=!0;if(typeof x!="function")throw new TypeError(n);v=E(v)||0,N(C)&&(A=!!C.leading,L="maxWait"in C,k=L?T(E(C.maxWait)||0,v):k,U="trailing"in C?!!C.trailing:U);function K(ie){var Y=R,ce=M;return R=M=void 0,B=ie,P=x.apply(ce,Y),P}function H(ie){return B=ie,O=setTimeout(oe,v),A?K(ie):P}function V(ie){var Y=ie-j,ce=ie-B,fe=v-Y;return L?w(fe,k-ce):fe}function q(ie){var Y=ie-j,ce=ie-B;return j===void 0||Y>=v||Y<0||L&&ce>=k}function oe(){var ie=b();if(q(ie))return Z(ie);O=setTimeout(oe,V(ie))}function Z(ie){return O=void 0,U&&R?K(ie):(R=M=void 0,P)}function J(){O!==void 0&&clearTimeout(O),B=0,R=j=M=O=void 0}function ye(){return O===void 0?P:Z(b())}function xe(){var ie=b(),Y=q(ie);if(R=arguments,M=this,j=ie,Y){if(O===void 0)return H(j);if(L)return O=setTimeout(oe,v),K(j)}return O===void 0&&(O=setTimeout(oe,v)),P}return xe.cancel=J,xe.flush=ye,xe}function D(x,v,C){var R=!0,M=!0;if(typeof x!="function")throw new TypeError(n);return N(C)&&(R="leading"in C?!!C.leading:R,M="trailing"in C?!!C.trailing:M),S(x,v,{leading:R,maxWait:v,trailing:M})}function N(x){var v=typeof x;return!!x&&(v=="object"||v=="function")}function _(x){return!!x&&typeof x=="object"}function y(x){return typeof x=="symbol"||_(x)&&g.call(x)==r}function E(x){if(typeof x=="number")return x;if(y(x))return a;if(N(x)){var v=typeof x.valueOf=="function"?x.valueOf():x;x=N(v)?v+"":v}if(typeof x!="string")return x===0?x:+x;x=x.replace(o,"");var C=i.test(x);return C||s.test(x)?c(x.slice(2),C?2:8):u.test(x)?a:+x}t.exports=D}),Qd={};A6(Qd,{default:()=>Ft});var S6=Yd(Jd());k6(Qd,Yd(Jd()));var{default:Vd,...D6}=S6,Ft=Vd!==void 0?Vd:D6;h();h();var L6=Object.create,C0=Object.defineProperty,M6=Object.getOwnPropertyDescriptor,P6=Object.getOwnPropertyNames,F6=Object.getPrototypeOf,_6=Object.prototype.hasOwnProperty,B6=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),R6=(e,t)=>{for(var n in t)C0(e,n,{get:t[n],enumerable:!0})},E0=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of P6(t))!_6.call(e,r)&&r!==n&&C0(e,r,{get:()=>t[r],enumerable:!(a=M6(t,r))||a.enumerable});return e},I6=(e,t,n)=>(E0(e,t,"default"),n&&E0(n,t,"default")),Xd=(e,t,n)=>(n=e!=null?L6(F6(e)):{},E0(t||!e||!e.__esModule?C0(n,"default",{value:e,enumerable:!0}):n,e)),eg=B6((e,t)=>{(function(n,a){typeof e=="object"&&typeof t=="object"?t.exports=a():typeof define=="function"&&define.amd?define([],a):typeof e=="object"?e.notie=a():n.notie=a()})(e,function(){return function(n){function a(o){if(r[o])return r[o].exports;var u=r[o]={i:o,l:!1,exports:{}};return n[o].call(u.exports,u,u.exports,a),u.l=!0,u.exports}var r={};return a.m=n,a.c=r,a.i=function(o){return o},a.d=function(o,u,i){a.o(o,u)||Object.defineProperty(o,u,{configurable:!1,enumerable:!0,get:i})},a.n=function(o){var u=o&&o.__esModule?function(){return o.default}:function(){return o};return a.d(u,"a",u),u},a.o=function(o,u){return Object.prototype.hasOwnProperty.call(o,u)},a.p="",a(a.s=1)}([function(n,a){n.exports=function(r){return r.webpackPolyfill||(r.deprecate=function(){},r.paths=[],r.children||(r.children=[]),Object.defineProperty(r,"loaded",{enumerable:!0,get:function(){return r.l}}),Object.defineProperty(r,"id",{enumerable:!0,get:function(){return r.i}}),r.webpackPolyfill=1),r}},function(n,a,r){"use strict";(function(o){var u,i,s,c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l};(function(l,f){c(a)==="object"&&c(o)==="object"?o.exports=f():(i=[],u=f,s=typeof u=="function"?u.apply(a,i):u,s!==void 0&&(o.exports=s))})(void 0,function(){return function(l){function f(m){if(p[m])return p[m].exports;var g=p[m]={i:m,l:!1,exports:{}};return l[m].call(g.exports,g,g.exports,f),g.l=!0,g.exports}var p={};return f.m=l,f.c=p,f.i=function(m){return m},f.d=function(m,g,T){f.o(m,g)||Object.defineProperty(m,g,{configurable:!1,enumerable:!0,get:T})},f.n=function(m){var g=m&&m.__esModule?function(){return m.default}:function(){return m};return f.d(g,"a",g),g},f.o=function(m,g){return Object.prototype.hasOwnProperty.call(m,g)},f.p="",f(f.s=0)}([function(l,f,p){function m(H,V){var q={};for(var oe in H)V.indexOf(oe)>=0||Object.prototype.hasOwnProperty.call(H,oe)&&(q[oe]=H[oe]);return q}Object.defineProperty(f,"__esModule",{value:!0});var g=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(H){return typeof H>"u"?"undefined":c(H)}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H>"u"?"undefined":c(H)},T=Object.assign||function(H){for(var V=1;V'+oe+"",ce.onclick=function(){return M(fe,Y)},ce.listener=function(ge){(v(ge)||C(ge))&&O()},R(ce,Y),J&&J<1&&(J=1),!xe&&J&&N(J).then(function(){return M(fe,Y)})},B=f.force=function(H,V){var q=H.type,oe=q===void 0?5:q,Z=H.text,J=H.buttonText,ye=J===void 0?"OK":J,xe=H.callback,ie=H.position,Y=ie===void 0?b.positions.force||Y.top:ie;_(),O();var ce=document.createElement("div"),fe=y();ce.id=fe;var ge=document.createElement("div");ge.classList.add(b.classes.textbox),ge.classList.add(b.classes.backgroundInfo),ge.innerHTML='
'+Z+"
";var Ee=document.createElement("div");Ee.classList.add(b.classes.button),Ee.classList.add(E[oe]),Ee.innerHTML=ye,Ee.onclick=function(){M(fe,Y),P(),xe?xe():V&&V()},ce.appendChild(ge),ce.appendChild(Ee),ce.listener=function(Le){v(Le)&&Ee.click()},R(ce,Y),k()},A=f.confirm=function(H,V,q){var oe=H.text,Z=H.submitText,J=Z===void 0?"Yes":Z,ye=H.cancelText,xe=ye===void 0?"Cancel":ye,ie=H.submitCallback,Y=H.cancelCallback,ce=H.position,fe=ce===void 0?b.positions.confirm||fe.top:ce;_(),O();var ge=document.createElement("div"),Ee=y();ge.id=Ee;var Le=document.createElement("div");Le.classList.add(b.classes.textbox),Le.classList.add(b.classes.backgroundInfo),Le.innerHTML='
'+oe+"
";var ve=document.createElement("div");ve.classList.add(b.classes.button),ve.classList.add(b.classes.elementHalf),ve.classList.add(b.classes.backgroundSuccess),ve.innerHTML=J,ve.onclick=function(){M(Ee,fe),P(),ie?ie():V&&V()};var ee=document.createElement("div");ee.classList.add(b.classes.button),ee.classList.add(b.classes.elementHalf),ee.classList.add(b.classes.backgroundError),ee.innerHTML=xe,ee.onclick=function(){M(Ee,fe),P(),Y?Y():q&&q()},ge.appendChild(Le),ge.appendChild(ve),ge.appendChild(ee),ge.listener=function(De){v(De)?ve.click():C(De)&&ee.click()},R(ge,fe),k(ge,fe)},L=function(H,V,q){var oe=H.text,Z=H.submitText,J=Z===void 0?"Submit":Z,ye=H.cancelText,xe=ye===void 0?"Cancel":ye,ie=H.submitCallback,Y=H.cancelCallback,ce=H.position,fe=ce===void 0?b.positions.input||fe.top:ce,ge=m(H,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);_(),O();var Ee=document.createElement("div"),Le=y();Ee.id=Le;var ve=document.createElement("div");ve.classList.add(b.classes.textbox),ve.classList.add(b.classes.backgroundInfo),ve.innerHTML='
'+oe+"
";var ee=document.createElement("input");ee.classList.add(b.classes.inputField),ee.setAttribute("autocapitalize",ge.autocapitalize||"none"),ee.setAttribute("autocomplete",ge.autocomplete||"off"),ee.setAttribute("autocorrect",ge.autocorrect||"off"),ee.setAttribute("autofocus",ge.autofocus||"true"),ee.setAttribute("inputmode",ge.inputmode||"verbatim"),ee.setAttribute("max",ge.max||""),ee.setAttribute("maxlength",ge.maxlength||""),ee.setAttribute("min",ge.min||""),ee.setAttribute("minlength",ge.minlength||""),ee.setAttribute("placeholder",ge.placeholder||""),ee.setAttribute("spellcheck",ge.spellcheck||"default"),ee.setAttribute("step",ge.step||"any"),ee.setAttribute("type",ge.type||"text"),ee.value=ge.value||"",ge.allowed&&(ee.oninput=function(){var je=void 0;if(Array.isArray(ge.allowed)){for(var We="",Et=ge.allowed,Vt=0;Vt'+q+"",Y.appendChild(fe),ye.forEach(function(Ee,Le){var ve=Ee.type,ee=ve===void 0?1:ve,De=Ee.text,_e=Ee.handler,je=document.createElement("div");je.classList.add(E[ee]),je.classList.add(b.classes.button),je.classList.add(b.classes.selectChoice);var We=ye[Le+1];We&&!We.type&&(We.type=1),We&&We.type===ee&&je.classList.add(b.classes.selectChoiceRepeated),je.innerHTML=De,je.onclick=function(){M(ce,ie),P(),_e()},Y.appendChild(je)});var ge=document.createElement("div");ge.classList.add(b.classes.backgroundNeutral),ge.classList.add(b.classes.button),ge.innerHTML=Z,ge.onclick=function(){M(ce,ie),P(),J?J():V&&V()},Y.appendChild(ge),Y.listener=function(Ee){C(Ee)&&ge.click()},R(Y,ie),k(Y,ie)},K=f.date=function(H,V,q){var oe=H.value,Z=oe===void 0?new Date:oe,J=H.submitText,ye=J===void 0?"OK":J,xe=H.cancelText,ie=xe===void 0?"Cancel":xe,Y=H.submitCallback,ce=H.cancelCallback,fe=H.position,ge=fe===void 0?b.positions.date||ge.top:fe;_(),O();var Ee="▾",Le=document.createElement("div"),ve=document.createElement("div"),ee=document.createElement("div"),De=function(Ve){Le.innerHTML=b.dateMonths[Ve.getMonth()],ve.innerHTML=Ve.getDate(),ee.innerHTML=Ve.getFullYear()},_e=function(Ve){var W=new Date(Z.getFullYear(),Z.getMonth()+1,0).getDate(),pe=Ve.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(pe)>W&&(pe=W.toString()),Ve.target.textContent=pe,Number(pe)<1&&(pe="1"),Z.setDate(Number(pe))},je=function(Ve){var W=Ve.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);Ve.target.textContent=W,Z.setFullYear(Number(W))},We=function(Ve){De(Z)},Et=function(Ve){var W=new Date(Z.getFullYear(),Z.getMonth()+Ve+1,0).getDate();Z.getDate()>W&&Z.setDate(W),Z.setMonth(Z.getMonth()+Ve),De(Z)},Vt=function(Ve){Z.setDate(Z.getDate()+Ve),De(Z)},za=function(Ve){var W=Z.getFullYear()+Ve;W<0?Z.setFullYear(0):Z.setFullYear(Z.getFullYear()+Ve),De(Z)},nn=document.createElement("div"),Qn=y();nn.id=Qn;var ma=document.createElement("div");ma.classList.add(b.classes.backgroundInfo);var ze=document.createElement("div");ze.classList.add(b.classes.dateSelectorInner);var an=document.createElement("div");an.classList.add(b.classes.button),an.classList.add(b.classes.elementThird),an.classList.add(b.classes.dateSelectorUp),an.innerHTML=Ee;var ht=document.createElement("div");ht.classList.add(b.classes.button),ht.classList.add(b.classes.elementThird),ht.classList.add(b.classes.dateSelectorUp),ht.innerHTML=Ee;var Ze=document.createElement("div");Ze.classList.add(b.classes.button),Ze.classList.add(b.classes.elementThird),Ze.classList.add(b.classes.dateSelectorUp),Ze.innerHTML=Ee,Le.classList.add(b.classes.element),Le.classList.add(b.classes.elementThird),Le.innerHTML=b.dateMonths[Z.getMonth()],ve.classList.add(b.classes.element),ve.classList.add(b.classes.elementThird),ve.setAttribute("contentEditable",!0),ve.addEventListener("input",_e),ve.addEventListener("blur",We),ve.innerHTML=Z.getDate(),ee.classList.add(b.classes.element),ee.classList.add(b.classes.elementThird),ee.setAttribute("contentEditable",!0),ee.addEventListener("input",je),ee.addEventListener("blur",We),ee.innerHTML=Z.getFullYear();var ln=document.createElement("div");ln.classList.add(b.classes.button),ln.classList.add(b.classes.elementThird),ln.innerHTML=Ee;var Yt=document.createElement("div");Yt.classList.add(b.classes.button),Yt.classList.add(b.classes.elementThird),Yt.innerHTML=Ee;var pa=document.createElement("div");pa.classList.add(b.classes.button),pa.classList.add(b.classes.elementThird),pa.innerHTML=Ee,an.onclick=function(){return Et(1)},ht.onclick=function(){return Vt(1)},Ze.onclick=function(){return za(1)},ln.onclick=function(){return Et(-1)},Yt.onclick=function(){return Vt(-1)},pa.onclick=function(){return za(-1)};var At=document.createElement("div");At.classList.add(b.classes.button),At.classList.add(b.classes.elementHalf),At.classList.add(b.classes.backgroundSuccess),At.innerHTML=ye,At.onclick=function(){M(Qn,ge),P(),Y?Y(Z):V&&V(Z)};var An=document.createElement("div");An.classList.add(b.classes.button),An.classList.add(b.classes.elementHalf),An.classList.add(b.classes.backgroundError),An.innerHTML=ie,An.onclick=function(){M(Qn,ge),P(),ce?ce(Z):q&&q(Z)},ze.appendChild(an),ze.appendChild(ht),ze.appendChild(Ze),ze.appendChild(Le),ze.appendChild(ve),ze.appendChild(ee),ze.appendChild(ln),ze.appendChild(Yt),ze.appendChild(pa),ma.appendChild(ze),nn.appendChild(ma),nn.appendChild(At),nn.appendChild(An),nn.listener=function(Ve){v(Ve)?At.click():C(Ve)&&An.click()},R(nn,ge),k(nn,ge)};f.default={alert:j,force:B,confirm:A,input:L,select:U,date:K,setOptions:S,hideAlerts:O}}])})}).call(a,r(0)(n))}])})}),tg={};R6(tg,{default:()=>Ou});var O6=Xd(eg());I6(tg,Xd(eg()));var{default:Zd,...N6}=O6,Ou=Zd!==void 0?Zd:N6;h();h();var v0=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function w0(e,t,n,a){e.addEventListener?e.addEventListener(t,n,a):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function ug(e,t){for(var n=t.slice(0,t.length-1),a=0;a=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function U6(e,t){for(var n=e.length>=t.length?e:t,a=e.length>=t.length?t:e,r=!0,o=0;o=0&&Je.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Je.splice(0,Je.length),(t===93||t===224)&&(t=91),t in kt){kt[t]=!1;for(var a in Wn)Wn[a]===t&&(Ue[a]=!1)}}function V6(e){if(typeof e>"u")Object.keys(gt).forEach(function(u){return delete gt[u]});else if(Array.isArray(e))e.forEach(function(u){u.key&&A0(u)});else if(typeof e=="object")e.key&&A0(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a1?ug(Wn,s):[];gt[f]=gt[f].filter(function(m){var g=a?m.method===a:!0;return!(g&&m.scope===n&&U6(m.mods,p))})}})};function ag(e,t,n,a){if(t.element===a){var r;if(t.scope===n||t.scope==="all"){r=t.mods.length>0;for(var o in kt)Object.prototype.hasOwnProperty.call(kt,o)&&(!kt[o]&&t.mods.indexOf(+o)>-1||kt[o]&&t.mods.indexOf(+o)===-1)&&(r=!1);(t.mods.length===0&&!kt[16]&&!kt[18]&&!kt[17]&&!kt[91]||r||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function rg(e,t){var n=gt["*"],a=e.keyCode||e.which||e.charCode;if(Ue.filter.call(this,e)){if((a===93||a===224)&&(a=91),Je.indexOf(a)===-1&&a!==229&&Je.push(a),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(g){var T=S0[g];e[g]&&Je.indexOf(T)===-1?Je.push(T):!e[g]&&Je.indexOf(T)>-1?Je.splice(Je.indexOf(T),1):g==="metaKey"&&e[g]&&Je.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Je=Je.slice(Je.indexOf(T))))}),a in kt){kt[a]=!0;for(var r in Wn)Wn[r]===a&&(Ue[r]=!0);if(!n)return}for(var o in kt)Object.prototype.hasOwnProperty.call(kt,o)&&(kt[o]=e[S0[o]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Je.indexOf(17)===-1&&Je.push(17),Je.indexOf(18)===-1&&Je.push(18),kt[17]=!0,kt[18]=!0);var u=vo();if(n)for(var i=0;i-1}function Ue(e,t,n){Je=[];var a=ig(e),r=[],o="all",u=document,i=0,s=!1,c=!0,l="+",f=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(o=t.scope),t.element&&(u=t.element),t.keyup&&(s=t.keyup),t.keydown!==void 0&&(c=t.keydown),t.capture!==void 0&&(f=t.capture),typeof t.splitKey=="string"&&(l=t.splitKey)),typeof t=="string"&&(o=t);i1&&(r=ug(Wn,e)),e=e[e.length-1],e=e==="*"?"*":Uu(e),e in gt||(gt[e]=[]),gt[e].push({keyup:s,keydown:c,scope:o,mods:r,shortcut:a[i],method:n,key:a[i],splitKey:l,element:u});typeof u<"u"&&!Y6(u)&&window&&(lg.push(u),w0(u,"keydown",function(p){rg(p,u)},f),ng||(ng=!0,w0(window,"focus",function(){Je=[]},f)),w0(u,"keyup",function(p){rg(p,u),G6(p)},f))}function J6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(gt).forEach(function(n){var a=gt[n].filter(function(r){return r.scope===t&&r.shortcut===e});a.forEach(function(r){r&&r.method&&r.method()})})}var k0={getPressedKeyString:q6,setScope:cg,getScope:vo,deleteScope:$6,getPressedKeyCodes:H6,isPressed:K6,filter:W6,trigger:J6,unbind:V6,keyMap:Co,modifier:Wn,modifierMap:S0};for(Nu in k0)Object.prototype.hasOwnProperty.call(k0,Nu)&&(Ue[Nu]=k0[Nu]);var Nu;typeof document<"u"&&(og=window.hotkeys,Ue.noConflict=function(e){return e&&window.hotkeys===Ue&&(window.hotkeys=og),Ue},window.hotkeys=Ue);var og;h();h();var Q6={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},gg={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},lt={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},jt={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},xa={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},G=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let a=G.getVersionPrecision(e),r=G.getVersionPrecision(t),o=Math.max(a,r),u=0,i=G.map([e,t],s=>{let c=o-G.getVersionPrecision(s),l=s+new Array(c+1).join(".0");return G.map(l.split("."),f=>new Array(20-f.length).join("0")+f).reverse()});for(n&&(u=o-Math.min(a,r)),o-=1;o>=u;){if(i[0][o]>i[1][o])return 1;if(i[0][o]===i[1][o]){if(o===u)return 0;o-=1}else if(i[0][o]{n[u]=o[u]})}return e}static getBrowserAlias(e){return Q6[e]}static getBrowserTypeByAlias(e){return gg[e]||""}},qe=/version\/(\d+(\.?_?\d+)+)/i,Z6=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=G.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=G.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=G.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=G.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=G.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=G.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=G.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=G.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=G.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=G.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=G.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=G.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=G.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=G.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=G.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=G.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=G.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=G.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=G.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=G.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=G.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=G.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=G.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=G.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=G.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=G.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=G.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,a=e.search("\\(")!==-1?n:t;return{name:G.getFirstMatch(a,e),version:G.getSecondMatch(a,e)}}}],X6=Z6,e9=[{test:[/Roku\/DVP/],describe(e){let t=G.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:jt.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=G.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:jt.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=G.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=G.getWindowsVersionName(t);return{name:jt.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:jt.iOS},n=G.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=G.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=G.getMacOSVersionName(t),a={name:jt.MacOS,version:t};return n&&(a.versionName=n),a}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=G.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:jt.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=G.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=G.getAndroidVersionName(t),a={name:jt.Android,version:t};return n&&(a.versionName=n),a}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=G.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:jt.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=G.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||G.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||G.getFirstMatch(/\bbb(\d+)/i,e);return{name:jt.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=G.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:jt.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=G.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:jt.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:jt.Linux}}},{test:[/CrOS/],describe(){return{name:jt.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=G.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:jt.PlayStation4,version:t}}}],t9=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=G.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:lt.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:lt.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:lt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:lt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:lt.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:lt.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:lt.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=G.getFirstMatch(/(ipod|iphone)/i,e);return{type:lt.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:lt.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:lt.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:lt.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:lt.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:lt.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:lt.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:lt.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:lt.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:lt.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:lt.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:lt.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:lt.tv}}}],n9=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:xa.Blink};let t=G.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:xa.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:xa.Trident},n=G.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:xa.Presto},n=G.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:xa.Gecko},n=G.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:xa.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:xa.WebKit},n=G.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],a9=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=G.find(X6,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=G.find(e9,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=G.find(t9,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=G.find(n9,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return G.assign({},this.parsedResult)}satisfies(e){let t={},n=0,a={},r=0;if(Object.keys(e).forEach(o=>{let u=e[o];typeof u=="string"?(a[o]=u,r+=1):typeof u=="object"&&(t[o]=u,n+=1)}),n>0){let o=Object.keys(t),u=G.find(o,s=>this.isOS(s));if(u){let s=this.satisfies(t[u]);if(s!==void 0)return s}let i=G.find(o,s=>this.isPlatform(s));if(i){let s=this.satisfies(t[i]);if(s!==void 0)return s}}if(r>0){let o=Object.keys(a),u=G.find(o,i=>this.isBrowser(i,!0));if(u!==void 0)return this.compareVersion(a[u])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),a=e.toLowerCase(),r=G.getBrowserTypeByAlias(a);return t&&r&&(a=r.toLowerCase()),a===n}compareVersion(e){let t=[0],n=e,a=!1,r=this.getBrowserVersion();if(typeof r=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(a=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(a=!0,n=e.substr(1)),t.indexOf(G.compareVersions(r,n,a))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},dg=a9,r9=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new dg(e,t)}static parse(e){return new dg(e).getResult()}static get BROWSER_MAP(){return gg}static get ENGINE_MAP(){return xa}static get OS_MAP(){return jt}static get PLATFORMS_MAP(){return lt}},Tr=r9;h();h();var{entries:Tg,setPrototypeOf:mg,isFrozen:o9,getPrototypeOf:u9,getOwnPropertyDescriptor:i9}=Object,{freeze:zt,seal:Dn,create:s9}=Object,{apply:_0,construct:B0}=typeof Reflect<"u"&&Reflect;_0||(_0=function(e,t,n){return e.apply(t,n)});zt||(zt=function(e){return e});Dn||(Dn=function(e){return e});B0||(B0=function(e,t){return new e(...t)});var l9=pn(Array.prototype.forEach),pg=pn(Array.prototype.pop),wo=pn(Array.prototype.push),Hu=pn(String.prototype.toLowerCase),D0=pn(String.prototype.toString),c9=pn(String.prototype.match),Sn=pn(String.prototype.replace),d9=pn(String.prototype.indexOf),g9=pn(String.prototype.trim),on=pn(RegExp.prototype.test),Ao=m9(TypeError);function pn(e){return function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r/gm),y9=Dn(/\${[\w\W]*}/gm),x9=Dn(/^data-[\-\w.\u00B7-\uFFFF]/),T9=Dn(/^aria-[\-\w]+$/),Eg=Dn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),E9=Dn(/^(?:\w+script|data):/i),C9=Dn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Cg=Dn(/^html$/i),xg=Object.freeze({__proto__:null,MUSTACHE_EXPR:h9,ERB_EXPR:b9,TMPLIT_EXPR:y9,DATA_ATTR:x9,ARIA_ATTR:T9,IS_ALLOWED_URI:Eg,IS_SCRIPT_OR_DATA:E9,ATTR_WHITESPACE:C9,DOCTYPE_NAME:Cg}),v9=()=>typeof window>"u"?null:window,w9=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,a="data-tt-policy-suffix";t&&t.hasAttribute(a)&&(n=t.getAttribute(a));let r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return null}};function vg(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v9(),t=I=>vg(I);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,a=n.currentScript,{document:r}=e,{DocumentFragment:o,HTMLTemplateElement:u,Node:i,Element:s,NodeFilter:c,NamedNodeMap:l=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:p,trustedTypes:m}=e,g=s.prototype,T=ju(g,"cloneNode"),w=ju(g,"nextSibling"),b=ju(g,"childNodes"),S=ju(g,"parentNode");if(typeof u=="function"){let I=r.createElement("template");I.content&&I.content.ownerDocument&&(r=I.content.ownerDocument)}let D,N="",{implementation:_,createNodeIterator:y,createDocumentFragment:E,getElementsByTagName:x}=r,{importNode:v}=n,C={};t.isSupported=typeof Tg=="function"&&typeof S=="function"&&_&&_.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:R,ERB_EXPR:M,TMPLIT_EXPR:k,DATA_ATTR:P,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:j,ATTR_WHITESPACE:B}=xg,{IS_ALLOWED_URI:A}=xg,L=null,U=Me({},[...fg,...L0,...M0,...P0,...hg]),K=null,H=Me({},[...bg,...F0,...yg,...zu]),V=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),q=null,oe=null,Z=!0,J=!0,ye=!1,xe=!0,ie=!1,Y=!1,ce=!1,fe=!1,ge=!1,Ee=!1,Le=!1,ve=!0,ee=!1,De="user-content-",_e=!0,je=!1,We={},Et=null,Vt=Me({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),za=null,nn=Me({},["audio","video","img","source","image","track"]),Qn=null,ma=Me({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ze="http://www.w3.org/1998/Math/MathML",an="http://www.w3.org/2000/svg",ht="http://www.w3.org/1999/xhtml",Ze=ht,ln=!1,Yt=null,pa=Me({},[ze,an,ht],D0),At,An=["application/xhtml+xml","text/html"],Ve="text/html",W,pe=null,nt=r.createElement("form"),Be=function(I){return I instanceof RegExp||I instanceof Function},Ie=function(I){if(!(pe&&pe===I)){if((!I||typeof I!="object")&&(I={}),I=Er(I),At=An.indexOf(I.PARSER_MEDIA_TYPE)===-1?At=Ve:At=I.PARSER_MEDIA_TYPE,W=At==="application/xhtml+xml"?D0:Hu,L="ALLOWED_TAGS"in I?Me({},I.ALLOWED_TAGS,W):U,K="ALLOWED_ATTR"in I?Me({},I.ALLOWED_ATTR,W):H,Yt="ALLOWED_NAMESPACES"in I?Me({},I.ALLOWED_NAMESPACES,D0):pa,Qn="ADD_URI_SAFE_ATTR"in I?Me(Er(ma),I.ADD_URI_SAFE_ATTR,W):ma,za="ADD_DATA_URI_TAGS"in I?Me(Er(nn),I.ADD_DATA_URI_TAGS,W):nn,Et="FORBID_CONTENTS"in I?Me({},I.FORBID_CONTENTS,W):Vt,q="FORBID_TAGS"in I?Me({},I.FORBID_TAGS,W):{},oe="FORBID_ATTR"in I?Me({},I.FORBID_ATTR,W):{},We="USE_PROFILES"in I?I.USE_PROFILES:!1,Z=I.ALLOW_ARIA_ATTR!==!1,J=I.ALLOW_DATA_ATTR!==!1,ye=I.ALLOW_UNKNOWN_PROTOCOLS||!1,xe=I.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ie=I.SAFE_FOR_TEMPLATES||!1,Y=I.WHOLE_DOCUMENT||!1,ge=I.RETURN_DOM||!1,Ee=I.RETURN_DOM_FRAGMENT||!1,Le=I.RETURN_TRUSTED_TYPE||!1,fe=I.FORCE_BODY||!1,ve=I.SANITIZE_DOM!==!1,ee=I.SANITIZE_NAMED_PROPS||!1,_e=I.KEEP_CONTENT!==!1,je=I.IN_PLACE||!1,A=I.ALLOWED_URI_REGEXP||Eg,Ze=I.NAMESPACE||ht,V=I.CUSTOM_ELEMENT_HANDLING||{},I.CUSTOM_ELEMENT_HANDLING&&Be(I.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(V.tagNameCheck=I.CUSTOM_ELEMENT_HANDLING.tagNameCheck),I.CUSTOM_ELEMENT_HANDLING&&Be(I.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(V.attributeNameCheck=I.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),I.CUSTOM_ELEMENT_HANDLING&&typeof I.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(V.allowCustomizedBuiltInElements=I.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ie&&(J=!1),Ee&&(ge=!0),We&&(L=Me({},[...hg]),K=[],We.html===!0&&(Me(L,fg),Me(K,bg)),We.svg===!0&&(Me(L,L0),Me(K,F0),Me(K,zu)),We.svgFilters===!0&&(Me(L,M0),Me(K,F0),Me(K,zu)),We.mathMl===!0&&(Me(L,P0),Me(K,yg),Me(K,zu))),I.ADD_TAGS&&(L===U&&(L=Er(L)),Me(L,I.ADD_TAGS,W)),I.ADD_ATTR&&(K===H&&(K=Er(K)),Me(K,I.ADD_ATTR,W)),I.ADD_URI_SAFE_ATTR&&Me(Qn,I.ADD_URI_SAFE_ATTR,W),I.FORBID_CONTENTS&&(Et===Vt&&(Et=Er(Et)),Me(Et,I.FORBID_CONTENTS,W)),_e&&(L["#text"]=!0),Y&&Me(L,["html","head","body"]),L.table&&(Me(L,["tbody"]),delete q.tbody),I.TRUSTED_TYPES_POLICY){if(typeof I.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ao('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof I.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ao('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');D=I.TRUSTED_TYPES_POLICY,N=D.createHTML("")}else D===void 0&&(D=w9(m,a)),D!==null&&typeof N=="string"&&(N=D.createHTML(""));zt&&zt(I),pe=I}},Zn=Me({},["mi","mo","mn","ms","mtext"]),jn=Me({},["foreignobject","desc","title","annotation-xml"]),cn=Me({},["title","style","font","a","script"]),dr=Me({},L0);Me(dr,M0),Me(dr,p9);let Fs=Me({},P0);Me(Fs,f9);let Hh=function(I){let le=S(I);(!le||!le.tagName)&&(le={namespaceURI:Ze,tagName:"template"});let te=Hu(I.tagName),Oe=Hu(le.tagName);return Yt[I.namespaceURI]?I.namespaceURI===an?le.namespaceURI===ht?te==="svg":le.namespaceURI===ze?te==="svg"&&(Oe==="annotation-xml"||Zn[Oe]):!!dr[te]:I.namespaceURI===ze?le.namespaceURI===ht?te==="math":le.namespaceURI===an?te==="math"&&jn[Oe]:!!Fs[te]:I.namespaceURI===ht?le.namespaceURI===an&&!jn[Oe]||le.namespaceURI===ze&&!Zn[Oe]?!1:!Fs[te]&&(cn[te]||!dr[te]):!!(At==="application/xhtml+xml"&&Yt[I.namespaceURI]):!1},gr=function(I){wo(t.removed,{element:I});try{I.parentNode.removeChild(I)}catch{I.remove()}},_s=function(I,le){try{wo(t.removed,{attribute:le.getAttributeNode(I),from:le})}catch{wo(t.removed,{attribute:null,from:le})}if(le.removeAttribute(I),I==="is"&&!K[I])if(ge||Ee)try{gr(le)}catch{}else try{le.setAttribute(I,"")}catch{}},k4=function(I){let le,te;if(fe)I=""+I;else{let Ut=c9(I,/^[\r\n\t ]+/);te=Ut&&Ut[0]}At==="application/xhtml+xml"&&Ze===ht&&(I=''+I+"");let Oe=D?D.createHTML(I):I;if(Ze===ht)try{le=new p().parseFromString(Oe,At)}catch{}if(!le||!le.documentElement){le=_.createDocument(Ze,"template",null);try{le.documentElement.innerHTML=ln?N:Oe}catch{}}let bt=le.body||le.documentElement;return I&&te&&bt.insertBefore(r.createTextNode(te),bt.childNodes[0]||null),Ze===ht?x.call(le,Y?"html":"body")[0]:Y?le.documentElement:bt},S4=function(I){return y.call(I.ownerDocument||I,I,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},qh=function(I){return I instanceof f&&(typeof I.nodeName!="string"||typeof I.textContent!="string"||typeof I.removeChild!="function"||!(I.attributes instanceof l)||typeof I.removeAttribute!="function"||typeof I.setAttribute!="function"||typeof I.namespaceURI!="string"||typeof I.insertBefore!="function"||typeof I.hasChildNodes!="function")},yu=function(I){return typeof i=="object"?I instanceof i:I&&typeof I=="object"&&typeof I.nodeType=="number"&&typeof I.nodeName=="string"},Xn=function(I,le,te){C[I]&&l9(C[I],Oe=>{Oe.call(t,le,te,pe)})},D4=function(I){let le;if(Xn("beforeSanitizeElements",I,null),qh(I))return gr(I),!0;let te=W(I.nodeName);if(Xn("uponSanitizeElement",I,{tagName:te,allowedTags:L}),I.hasChildNodes()&&!yu(I.firstElementChild)&&(!yu(I.content)||!yu(I.content.firstElementChild))&&on(/<[/\w]/g,I.innerHTML)&&on(/<[/\w]/g,I.textContent))return gr(I),!0;if(!L[te]||q[te]){if(!q[te]&&M4(te)&&(V.tagNameCheck instanceof RegExp&&on(V.tagNameCheck,te)||V.tagNameCheck instanceof Function&&V.tagNameCheck(te)))return!1;if(_e&&!Et[te]){let Oe=S(I)||I.parentNode,bt=b(I)||I.childNodes;if(bt&&Oe){let Ut=bt.length;for(let Jt=Ut-1;Jt>=0;--Jt)Oe.insertBefore(T(bt[Jt],!0),w(I))}}return gr(I),!0}return I instanceof s&&!Hh(I)||(te==="noscript"||te==="noembed")&&on(/<\/no(script|embed)/i,I.innerHTML)?(gr(I),!0):(ie&&I.nodeType===3&&(le=I.textContent,le=Sn(le,R," "),le=Sn(le,M," "),le=Sn(le,k," "),I.textContent!==le&&(wo(t.removed,{element:I.cloneNode()}),I.textContent=le)),Xn("afterSanitizeElements",I,null),!1)},L4=function(I,le,te){if(ve&&(le==="id"||le==="name")&&(te in r||te in nt))return!1;if(!(J&&!oe[le]&&on(P,le))&&!(Z&&on(O,le))){if(!K[le]||oe[le]){if(!(M4(I)&&(V.tagNameCheck instanceof RegExp&&on(V.tagNameCheck,I)||V.tagNameCheck instanceof Function&&V.tagNameCheck(I))&&(V.attributeNameCheck instanceof RegExp&&on(V.attributeNameCheck,le)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(le))||le==="is"&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&on(V.tagNameCheck,te)||V.tagNameCheck instanceof Function&&V.tagNameCheck(te))))return!1}else if(!Qn[le]&&!on(A,Sn(te,B,""))&&!((le==="src"||le==="xlink:href"||le==="href")&&I!=="script"&&d9(te,"data:")===0&&za[I])&&!(ye&&!on(j,Sn(te,B,"")))&&te)return!1}return!0},M4=function(I){return I.indexOf("-")>0},P4=function(I){let le,te,Oe,bt;Xn("beforeSanitizeAttributes",I,null);let{attributes:Ut}=I;if(!Ut)return;let Jt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:K};for(bt=Ut.length;bt--;){le=Ut[bt];let{name:Ct,namespaceURI:mr}=le;if(te=Ct==="value"?le.value:g9(le.value),Oe=W(Ct),Jt.attrName=Oe,Jt.attrValue=te,Jt.keepAttr=!0,Jt.forceKeepAttr=void 0,Xn("uponSanitizeAttribute",I,Jt),te=Jt.attrValue,Jt.forceKeepAttr||(_s(Ct,I),!Jt.keepAttr))continue;if(!xe&&on(/\/>/i,te)){_s(Ct,I);continue}ie&&(te=Sn(te,R," "),te=Sn(te,M," "),te=Sn(te,k," "));let F4=W(I.nodeName);if(L4(F4,Oe,te)){if(ee&&(Oe==="id"||Oe==="name")&&(_s(Ct,I),te=De+te),D&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!mr)switch(m.getAttributeType(F4,Oe)){case"TrustedHTML":{te=D.createHTML(te);break}case"TrustedScriptURL":{te=D.createScriptURL(te);break}}try{mr?I.setAttributeNS(mr,Ct,te):I.setAttribute(Ct,te),pg(t.removed)}catch{}}}Xn("afterSanitizeAttributes",I,null)},Wh=function I(le){let te,Oe=S4(le);for(Xn("beforeSanitizeShadowDOM",le,null);te=Oe.nextNode();)Xn("uponSanitizeShadowNode",te,null),!D4(te)&&(te.content instanceof o&&I(te.content),P4(te));Xn("afterSanitizeShadowDOM",le,null)};return t.sanitize=function(I){let le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te,Oe,bt,Ut;if(ln=!I,ln&&(I=""),typeof I!="string"&&!yu(I))if(typeof I.toString=="function"){if(I=I.toString(),typeof I!="string")throw Ao("dirty is not a string, aborting")}else throw Ao("toString is not a function");if(!t.isSupported)return I;if(ce||Ie(le),t.removed=[],typeof I=="string"&&(je=!1),je){if(I.nodeName){let mr=W(I.nodeName);if(!L[mr]||q[mr])throw Ao("root node is forbidden and cannot be sanitized in-place")}}else if(I instanceof i)te=k4(""),Oe=te.ownerDocument.importNode(I,!0),Oe.nodeType===1&&Oe.nodeName==="BODY"||Oe.nodeName==="HTML"?te=Oe:te.appendChild(Oe);else{if(!ge&&!ie&&!Y&&I.indexOf("<")===-1)return D&&Le?D.createHTML(I):I;if(te=k4(I),!te)return ge?null:Le?N:""}te&&fe&&gr(te.firstChild);let Jt=S4(je?I:te);for(;bt=Jt.nextNode();)D4(bt)||(bt.content instanceof o&&Wh(bt.content),P4(bt));if(je)return I;if(ge){if(Ee)for(Ut=E.call(te.ownerDocument);te.firstChild;)Ut.appendChild(te.firstChild);else Ut=te;return(K.shadowroot||K.shadowrootmod)&&(Ut=v.call(n,Ut,!0)),Ut}let Ct=Y?te.outerHTML:te.innerHTML;return Y&&L["!doctype"]&&te.ownerDocument&&te.ownerDocument.doctype&&te.ownerDocument.doctype.name&&on(Cg,te.ownerDocument.doctype.name)&&(Ct=" -`+Ct),ie&&(Ct=Sn(Ct,R," "),Ct=Sn(Ct,M," "),Ct=Sn(Ct,k," ")),D&&Le?D.createHTML(Ct):Ct},t.setConfig=function(I){Ie(I),ce=!0},t.clearConfig=function(){pe=null,ce=!1},t.isValidAttribute=function(I,le,te){pe||Ie({});let Oe=W(I),bt=W(le);return L4(Oe,bt,te)},t.addHook=function(I,le){typeof le=="function"&&(C[I]=C[I]||[],wo(C[I],le))},t.removeHook=function(I){if(C[I])return pg(C[I])},t.removeHooks=function(I){C[I]&&(C[I]=[])},t.removeAllHooks=function(){C={}},t}var Ne=vg();var R0=Ou.alert;h();h();h();function Ke(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():F}var Ce=Ke();function me(){return Ce.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function wg(){return Ce.BETA==="1"}function na(){return Ce.PROD==="1"}function aa(){return Ce.PROD_API==="1"}function Ag(){return Ce.HAS_CSP_ERROR=="1"}function ot(){if(Ce.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function qu(){return typeof Deno<"u"}var R8=Ke().PROD==="1",Cr=Ke().PROD!=="1";function Wu(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}function ko(){if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let e=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(e&&(e._isUserscript||e._isSafari))}else return!1}var kg={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",curentPlan:"\u5F53\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52A8\u7EED\u671F",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",sponsorLabel:"$1 \u8D77\u8D5E\u52A9\u5F00\u53D1\u8005",help:"\u5E2E\u52A9",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D\uFF0C\u518D\u70B9\u51FB\u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D\u5373\u53EF\u8BBE\u7F6E",browserShortcutsNoteForChrome:"\u7C7BChrome \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762\uFF0C\u5728`\u7BA1\u7406\u5FEB\u6377\u952E`\u9762\u677F(`chrome://extensions/shortcuts`)\u8BBE\u7F6E\uFF0C\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8DF3\u8F6C\u5230\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E\u683C\u5F0F\u4E3A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1: \u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1 & PDF\u6587\u6863\u7FFB\u8BD1","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7F51\u9875\u53CC\u8BED\u7FFB\u8BD1\u6269\u5C55\uFF0C\u540C\u65F6\u652F\u6301 PDF \u7FFB\u8BD1\uFF0C\u53CC\u8BED Epub \u7535\u5B50\u4E66\u5236\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u817E\u8BAF\u7FFB\u8BD1\u7B49\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\uFF0C\u514D\u8D39\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8BD1\u5E76\u9690\u85CF\u539F\u6587/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.toggleTranslationMask":"\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.donateContext":"\u4E86\u89E3\u8D5E\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5219\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875(\u4EC5\u8BD1\u6587)/\u663E\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7","fingers.0":"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478",mouseHoldKey:"+ {key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoverHoldKey:"\u9F20\u6807\u60AC\u505C\u540C\u65F6\u6309\u4E0B\u5FEB\u6377\u952E\u7FFB\u8BD1\u6BB5\u843D","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u6587\u6863",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",goAdvancedSettings:"\u53BB\u8FDB\u9636\u8BBE\u7F6E\u9875",goAdvancedInterfaceSettings:"\u53BB\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u8BBE\u7F6E\u9875\u9762",advanced:"\u8FDB\u9636\u8BBE\u7F6E",advancedDescription:"\u4E00\u822C\u65E0\u9700\u8BBE\u7F6E\uFF0C\u4FDD\u6301\u9ED8\u8BA4\u5373\u53EF\u3002\u4EC5\u5BF9\u4E8E\u66F4\u4E13\u4E1A\u7684\u7528\u6237\uFF0C\u63D0\u4F9B\u66F4\u4E2A\u6027\u5316\u7684\u8BBE\u7F6E\u9879\u3002",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00","display both the original text and the translation":"\u540C\u65F6\u663E\u793A\u539F\u6587\u548C\u8BD1\u6587","keyboard shortcuts":"\u952E\u76D8\u5FEB\u6377\u952E",modify:"\u4FEE\u6539\u5FEB\u6377\u952E",reset:"\u91CD\u7F6E",close:"\u5173\u95ED",homepage:"\u4E3B\u9875",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",changeToOnlyTranslationMode:"\u5207\u6362\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u5207\u6362\u4E3A\u53CC\u8BED\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",unknownError:"\u672A\u77E5\u9519\u8BEF",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",needActionForOptions:"(\u9700\u8BBE\u7F6E)",translationEngine:"\u5F15\u64CE\u9009\u9879",sourceLanguage:"\u539F\u6587\u8BED\u8A00",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",forThisSite:"\u5F53\u524D\u7F51\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1 {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8BD1 {language}",alwaysTranslateSomeSite:"\u603B\u662F\u7FFB\u8BD1 {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8BD1 {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u6DFB\u52A0",default:"\u9ED8\u8BA4",forThisLanguage:"\u9488\u5BF9\u8BE5\u8BED\u8A00\uFF1A","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91","translate other languages into specific language":"\u5C06\u5176\u4ED6\u8BED\u8A00\u7FFB\u8BD1\u4E3A\u4F60\u8BBE\u7F6E\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1",language:"\u8BED\u8A00","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",Error:"\u9519\u8BEF",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",interface:"\u754C\u9762\u8BBE\u7F6E",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8BD1\u9875\u9762\u6807\u9898","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1",enableUserscriptPagePopup:"\u5728\u9875\u9762\u4E0A\u663E\u793A\u60AC\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528\u5FEB\u6377\u952E/{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8BD1\u6587\u6837\u5F0F",currentUrl:"\u5F53\u524D\u7F51\u5740",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664","languages.auto":"\u81EA\u52A8\u68C0\u6D4B",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",upload:"\u4E0A\u4F20",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",download:"\u4E0B\u8F7D",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",deleteFail:"\u5220\u9664\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",backupToCloudDescription:"\u624B\u52A8\u4E0A\u4F20\u6216\u6062\u590D\u5907\u4EFD\u6587\u4EF6\uFF0C\u6700\u591A\u5141\u8BB83\u4E2A\u4E0D\u540C\u7684\u5907\u4EFD",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",updatedAt:"\u66F4\u65B0\u4E8E {date}",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u9891\u9053",joinTelegramChannel:"\u5173\u6CE8 Telegram \u9891\u9053\u83B7\u53D6\u6700\u65B0\u66F4\u65B0",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",autoSync:"\u81EA\u52A8\u5B9A\u65F6\u540C\u6B65",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863","edit border color":"\u4FEE\u6539\u8FB9\u6846\u989C\u8272",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",enableSubtitle:"\u5F00\u542F\u5B57\u5E55\u7FFB\u8BD1",enableSubtitleDescription:"\u9488\u5BF9 youtube \u7B49\u7F51\u7AD9\u7684\u5B57\u5E55\u533A\u57DF\u5F00\u542F\u7FFB\u8BD1",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",enableSearchEnhancement:"\u542F\u7528\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A",enableSearchEnhancementDescription:"\u5F00\u542F\u540E\uFF0C\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\u793E\u533A\uFF09\u53F3\u8FB9\u680F\u81EA\u52A8\u663E\u793A\u5BF9\u5E94\u82F1\u6587\u5173\u952E\u8BCD\u7684\u201C\u8C37\u6B4C\u65B0\u95FB\u201D\u641C\u7D22\u7ED3\u679C\u3002",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerMinute":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u5206\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u8350\uFF09, \u5C06\u4F1A\u5728\u5355\u72EC\u4F5C\u4E3A\u4E00\u6BB5\u53D1\u9001\u7ED9 OpenAI","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740",enabledExtension:"\u542F\u7528\u6269\u5C55",clickToDisableExtension:"\u70B9\u51FB\u7981\u7528\u6269\u5C55",clickToEnableExtension:"\u70B9\u51FB\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",modifyMouseHoverKey:"\u4FEE\u6539\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u8BBE\u7F6E",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",disableTint:"* \u4F60\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u542F\u7528\u3002",searchEnhancementNotes:"\u6211\u4EEC\u53D1\u73B0\uFF0C\u4E2D\u6587\u5173\u952E\u8BCD\u548C\u82F1\u6587\u5173\u952E\u8BCD\u7684\u65B0\u95FB\u7ED3\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u542F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u529F\u80FD\u540E\uFF0C\u6211\u4EEC\u4F1A\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\u7F51\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52A8\u7528\u82F1\u6587\u4E3A\u4F60\u641C\u7D22\u540C\u6837\u7684\u5173\u952E\u8BCD\u5E76\u5C55\u793A\u5728\u53F3\u4FA7\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8BE5\u529F\u80FD\u7684\u8BDD\uFF0C\u53EF\u4EE5\u9009\u62E9\u7981\u7528\u5B83\u3002",option:"\u8BBE\u7F6E",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",needLoginAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u81EA\u5B9A\u4E49)",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",onetime_7day:"7 \u5929\u4F53\u9A8C\u5305",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradePlan:"\u70B9\u6B64\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL \u548C OpenAI \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8BD1",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u8BBE\u7F6E\u5176\u4ED6\u5FEB\u6377\u952E\u6765\u89E6\u53D1\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1"};var Sg={nologin:"\u672A\u767B\u9304",login:"\u767B\u9304",manageAccount:"\u7BA1\u7406\u8CEC\u6236",logout:"\u9000\u51FA",curentPlan:"\u7576\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u671F",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u64CA\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u8AAA\u660E",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u9644\u52A0\u5143\u4EF6\u7BA1\u7406\u9801\u9762 \u300Cabout:addons\u300D\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u5716\u793A\u300D\uFF0C\u518D\u9EDE\u9078\u300C\u7BA1\u7406\u64F4\u5145\u5957\u4EF6\u5FEB\u901F\u9375\u300D\u5373\u53EF\u8A2D\u5B9A",browserShortcutsNoteForChrome:"Chromium \u6838\u5FC3\u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u64F4\u5145\u529F\u80FD\u7BA1\u7406\u9801\u9762\uFF0C\u5728\u300C\u9375\u76E4\u5FEB\u901F\u9375\u300D\u9801\u9762(chrome://extensions/shortcuts)\u8A2D\u5B9A\uFF0C\u9EDE\u9078\u4E0B\u65B9\u6309\u9215\u524D\u5F80\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u901F\u9375\u683C\u5F0F\u70BA\uFF1A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F: \u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F & PDF\u6587\u6A94\u7FFB\u8B6F","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7DB2\u9801\u96D9\u8A9E\u7FFB\u8B6F\u64F4\u5C55\uFF0C\u540C\u6642\u652F\u6301 PDF \u7FFB\u8B6F\uFF0C\u96D9\u8A9E Epub \u96FB\u5B50\u66F8\u88FD\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u9A30\u8A0A\u7FFB\u8B6F\u7B49\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF0C\u514D\u8CBB\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8B6F\u4E26\u96B1\u85CF\u539F\u6587/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.toggleTranslationMask":"\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.donateContext":"\u4E86\u89E3\u8D0A\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u5247\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u6642\u89F8\u78B0\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801(\u50C5\u8B6F\u6587)/\u986F\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304","fingers.0":"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478",mouseHoldKey:"+ {key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u6377\u9375(\u6253\u958B\u8A2D\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoverHoldKey:"\u9F20\u6A19\u6ED1\u904E\u540C\u6642\u6309\u4E0B X \u9375\u7FFB\u8B6F\u6BB5\u843D","mouse-translate":"\u9F20\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",goAdvancedSettings:"\u524D\u5F80\u9032\u968E\u8A2D\u5B9A\u9801\u9762",goAdvancedInterfaceSettings:"\u524D\u5F80\u81EA\u8A02\u8A2D\u5B9A\u9801\u9762",advanced:"\u9032\u968E\u8A2D\u5B9A",advancedDescription:"\u6B63\u5E38\u60C5\u6CC1\u7121\u9700\u8A2D\u5B9A\uFF0C\u4FDD\u6301\u9810\u8A2D\u5373\u53EF\u3002\u50C5\u91DD\u5C0D\u66F4\u5C08\u696D\u7684\u4F7F\u7528\u8005\uFF0C\u63D0\u4F9B\u66F4\u500B\u4EBA\u5316\u7684\u8A2D\u5B9A\u9805\u76EE\u3002",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00","display both the original text and the translation":"\u540C\u6642\u986F\u793A\u539F\u6587\u548C\u8B6F\u6587","keyboard shortcuts":"\u9375\u76E4\u5FEB\u901F\u9375",modify:"\u8B8A\u66F4\u5FEB\u901F\u9375",reset:"\u91CD\u8A2D",close:"\u95DC\u9589",homepage:"\u9996\u9801",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",changeToOnlyTranslationMode:"\u5207\u63DB\u70BA\u50C5\u986F\u793A\u8B6F\u6587",changeToDualTranslationMode:"\u5207\u63DB\u70BA\u96D9\u8A9E\u7FFB\u8B6F",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:"\u672A\u77E5\u7684\u932F\u8AA4",canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u9078\u9805",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",needActionForOptions:"(\u9700\u8A2D\u5B9A)",translationEngine:"\u5F15\u64CE\u9078\u9805",sourceLanguage:"\u539F\u6587\u8A9E\u8A00",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",forThisSite:"\u7576\u524D\u7DB2\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8B6F {language}",alwaysTranslateSomeSite:"\u7E3D\u662F\u7FFB\u8B6F {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8B6F {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u65B0\u589E",default:"\u9810\u8A2D",forThisLanguage:"\u91DD\u5C0D\u8A72\u8A9E\u8A00\uFF1A","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F","translate other languages into specific language":"\u5C07\u5176\u5B83\u8A9E\u8A00\u7FFB\u8B6F\u70BA\u4F60\u8A2D\u5B9A\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9",language:"\u8A9E\u8A00","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",Error:"\u932F\u8AA4",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",interface:"\u4ECB\u9762\u8A2D\u5B9A",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65",syncToAccount:"\u540C\u6B65\u5230\u8CEC\u6236",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u8CEC\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u8A2D\u5099\u4E4B\u9593\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u8CEC\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u8CEC\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8B6F","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9E\u99AC\u905C\u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8B6F\u9801\u9762\u6A19\u984C","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F",enableUserscriptPagePopup:"\u5728\u9801\u9762\u4E0A\u986F\u793A\u61F8\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528\u5FEB\u901F\u9375/{touch}\u518D\u6B21\u986F\u793A\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5EFA\u8B70\u5C07\u672C\u8A2D\u5B9A\u9801\u9762\u52A0\u5165\u81F3\u6211\u7684\u6700\u611B","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8B6F\u6587\u6A23\u5F0F",currentUrl:"\u76EE\u524D\u7DB2\u5740",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6E96\u3002",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",upload:"\u4E0A\u50B3",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",download:"\u4E0B\u8F09",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",deleteFail:"\u522A\u9664\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",backupToCloudDescription:"\u624B\u52D5\u4E0A\u50B3\u6216\u9084\u539F\u5099\u4EFD\u6A94\u6848\uFF0C\u6700\u591A\u5141\u8A31 3 \u500B\u4E0D\u540C\u7684\u5099\u4EFD",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",updatedAt:"\u66F4\u65B0\u65BC {date}",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u4EEC\u7684<3>Twitter\uFF0C<4>Telegram \u983B\u9053\u4EE5\u53CA\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u90F5\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u983B\u9053",joinTelegramChannel:"\u95DC\u6CE8 Telegram \u983B\u9053\u77AD\u89E3\u66F4\u65B0\u8CC7\u8A0A",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",autoSync:"\u81EA\u52D5\u5B9A\u6642\u540C\u6B65",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6","edit border color":"\u8B8A\u66F4\u908A\u6846\u8272\u5F69",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",enableSubtitle:"\u958B\u555F\u5B57\u5E55\u7FFB\u8B6F",enableSubtitleDescription:"\u91DD\u5C0D youtube \u7B49\u7DB2\u7AD9\u7684\u5B57\u5E55\u5340\u57DF\u958B\u555F\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",enableSearchEnhancement:"\u958B\u555F\u641C\u7D22\u589E\u5F37",enableSearchEnhancementDescription:"\u4E2D\u6587\u641C\u7D22\u8C37\u6B4C\u6703\u5728\u53F3\u908A\u51FA\u73FE\u82F1\u6587\u7248\u8C37\u6B4C\u65B0\u805E",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerMinute":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u5206\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u4EFD\u50B3\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u85A6\uFF09, \u5C07\u6703\u5728\u55AE\u7368\u4F5C\u70BA\u4E00\u6BB5\u767C\u9001\u7D66 OpenAI","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u50B3\u9001\u767C\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",clickToDisableExtension:"\u9EDE\u9078\u505C\u7528\u5957\u4EF6",clickToEnableExtension:"\u9EDE\u9078\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u9F20\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u7F6E\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u5B57\u7B26\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8B58\u5225\u70BA\u89F8\u767C\u5B57\u7B26\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u7981\u7528\u78BA\u8A8D",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",disableTint:"* \u60A8\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u555F\u7528\u3002",searchEnhancementNotes:"\u6211\u5011\u767C\u73FE\uFF0C\u4E2D\u6587\u95DC\u9375\u8A5E\u548C\u82F1\u6587\u95DC\u9375\u8A5E\u7684\u65B0\u805E\u7D50\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u555F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u4FE1\u606F\u589E\u5F37\u529F\u80FD\u5F8C\uFF0C\u6211\u5011\u6703\u5728\u652F\u6301\u7684\u7DB2\u7AD9\uFF08\u8C37\u6B4C\u65B0\u805E\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u95DC\u9375\u8A5E\uFF09\uFF0C\u96EA\u7403\uFF0C\u6771\u65B9\u8CA1\u5BCC\u7DB2\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52D5\u7528\u82F1\u6587\u70BA\u4F60\u641C\u7D22\u540C\u6A23\u7684\u95DC\u9375\u8A5E\u4E26\u5C55\u793A\u5728\u53F3\u5074\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8A72\u529F\u80FD\u7684\u8A71\uFF0C\u53EF\u4EE5\u9078\u64C7\u7981\u7528\u5B83\u3002",option:"\u9078\u9805",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL \u548C OpenAI \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8B6F",currentAccount:"\u7576\u524D\u8CEC\u6236"};var Dg={nologin:"Not logged in",login:"Login",manageAccount:"Manage Account",logout:"Logout",curentPlan:"Current Plan",endAt:"Expires",endAuto:"Auto Renew",lineBreakMaxTextCount:"Maximum number of characters allowed per sentence after line break","translate-pdf":"Click to translate PDF","noSupportTranslate-pdf":"The script is not supported, please use a plugin.","translate-firefox-local-pdf":"Click to upload PDF",enableLineBreak:"Whether to turn on automatic line wrapping for long paragraphs",sponsorLabel:"Sponsoring developers from $1 (monthly or one-time)",help:"Help",browserShortcutsNoteForFirefox:`To modify the shortcut key in Firefox browser, you need to open the extension management page 'about: addons', then click "Settings", and then click "Management shortcut key" to set it`,browserShortcutsNoteForChrome:"To modify the shortcut key in Chrome browser, you need to open the extension management page` chrome://extensions/shortcuts `) Settings, click the button below to jump to the shortcut key management page.",browserShortcutsSucks:"Please enter the shortcut key manually in the format:",enableLineBreakDescription:"After opening, a line break will be inserted at the end of each sentence in a long paragraph for easy reading","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate: Web Page&PDF Translation","browser.brandDescription":"Bilingual web page translation, also supports PDF translation, bilingual Epub eBook translation, free to use.","browser.toggleTranslatePage":"Toggle Translate Page","browser.toggleTranslateTheWholePage":"Toggle Translate the Whole Page","browser.toggleOnlyTransation":"Toggle Translate and Hide Original Text","browser.toggleTranslateToThePageEndImmediately":"Toggle Translate to the Bottom of the Page Immediately","browser.toggleTranslateTheMainPage":"Toggle Translate the Main Page","browser.openOptionsPage":"Open Settings Page","browser.toggleTranslationMask":"Toggle translation mask style","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-book","browser.openEbookBuilder":"Make Dual EPUB ebook","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.donateContext":"Sponsor Benefits","browser.translateLocalSubtitleFile":"Translate Subtitle File",confirmResetConfig:"Are you sure you want to reset the settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Create right button menu",toggleBeta:"Enable Beta experimental features",betaDescription:"Enable features that are still experimental, and translation services that are in testing. Join the <1>Telegram group to learn more.",translationLineBreakSettingDescription:"The always line break feature is suitable for layouts with less content, making the layout more neat and tidy. (Use smart line breaks for long paragraphs with more content (more than {count} characters) for saving space)",tempTranslateDomainTitle:"Open the translation time temporarily",tempTranslateDomainDescription:"When a page is translated manually, turn it temporarily on as automatic translation",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",toggleTranslatePageWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide translation display",toggleTranslationMaskWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide the blur effect of the translation",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"Multi-finger touch to show/hide only translation display",addUrlDescription:"The domain name is available and wildcard is supported e.g.: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import configuration from file",export:"Export to file",toggleDebug:"Print debug logs on the console","fingers.0":"Close","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch",mouseHoldKey:"+ {key} translate this paragraph",mouseHoldKeyAuto:"Translate the paragraph directly",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate this paragraph",mouseHoverHoldKey:"Mouse over and press X key to translate paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"All settings reset successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",goAdvancedSettings:"Go to Advanced Settings Page",goAdvancedInterfaceSettings:"Go to Advanced Custom Settings Page",advanced:"Advanced",advancedDescription:"Normally no settings are needed, keep the default. More personalized settings are provided for professional users only.",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"Translate to the bottom of the page immediately after opening the page?",feedback:"Feedback",toggleTranslatePage:"Toggle Translate",translateToThePageEndImmediatelyDescription:"Enabled will translate from the top to the bottom of the page immediately after opening. Disable will translate while reading. (Not recommended to enable)","translate all areas of the page":"Whether to translate all areas of the web page",translationAreaDescription:"When enabled, all areas of the entire web page will be translated. Disabled will use the default smart recognition and translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Directly translate the number of characters in front of the page without waiting to scroll to the visible area","interface language":"Interface language","display both the original text and the translation":"Display both the original text and the translation","keyboard shortcuts":"Keyboard shortcuts",modify:"Edit",reset:"Reset",close:"Close",homepage:"Home Page",more:"More",moreOptions:"Expand more custom settings",translateTheWholePage:"Translate the whole page area",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Dual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"Main areas of intelligent translation","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly implement the interface of the Greasemonkey extension, please use another browser that <1>supports the Greasemonkey extension such as (Firefox Nightly version)",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:"Unknown Error",canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha enabled successfully",disableAlphaSuccess:"Alpha has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(to set up)",goSettings:"to set up",needActionForOptions:"(need to set)",translationEngine:"Engine Options",sourceLanguage:"Original language",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",forThisSite:"Site:",alwaysTranslateSomeLanguage:"Always translate {language}",neverTranslateSomeLanguage:"Never translate {language}",alwaysTranslateSomeSite:"Always translate {hostname}",neverTranslateSomeSite:"Never translate {hostname}",alwaysTranslateSomeSiteOrWildSite:"Always translate this site",alwaysTranslateSomePage:"Always translate this page",add:"Add",default:"Default",forThisLanguage:"For This Language:","add url":"Add URL",edit:"Edit","translate other languages into specific language":"Translate other languages into the language you set","select translation service":"Select a translation service",language:"Language","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",Error:"Error",allowCacheTranslations:"Enable local translation caching (reduce translation requests for duplicate paragraphs)","translation display":"Translation display style","select diplay style":"Please refer to the following examples",interface:"Interface Settings",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dashed underline","translationTheme.dotted":"Dotted Underline","translationTheme.dashedBorder":"Dashed Border","translationTheme.solidBorder":"Dashed Border","translationTheme.underline":"Straight underline","translationTheme.mask":"Blur effect","translationTheme.opacity":"Opacity effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weakening","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dashed underline","translationTheme.nativeDashed":"System Dash Underline","translationTheme.nativeDotted":"System Dotted Underline","translationTheme.nativeUnderline":"System Straight Line Underline","translationTheme.wavy":"Squiggle","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeeplX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"Translate page title","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped",enableUserscriptPagePopup:"Always show Popup windows on the page",enableUserscriptPagePopupDescription:"Three-finger touch to show the Popup.","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",currentUrl:"Current URL",confirm:"Save",cancel:"Cancel",delete:"Delete","languages.auto":"Detect Language",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",authFail:"Authorization Failed",syncTitle:"Please select a file operation",import_hint:"Import",upload:"Upload",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",download:"Download",importSuccess:"Upload Success",importFail:"Import Failed",deleteFail:"Delete Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",backupToCloudDescription:"Upload or restore backup files manually, up to 3 different backups",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",updatedAt:"Updated at {date}",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. You can choose to subscribe to <6>Pro membership to use the out-of-the-box DeepL and OpenAI translation.

You can also follow out <3>Twitter, <4>Telegram Channel, and <5>Email Subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free and we hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. ",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",qqCommunities:"QQ Channel",joinTelegramChannel:"Subscribe to our Telegram channel to get the latest updates",feedbackAndJoin:"Feedback",autoSync:"Auto-Time Sync",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization","edit border color":"Edit border color",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",enableSubtitle:"enableSubtitleTranslation",enableSubtitleDescription:"Enable translations for subtitle areas on sites like youtube",isTranslateTitleDescription:"When enabled, the page title will be translated",enableSearchEnhancement:"Enable Search Enhancement",enableSearchEnhancementDescription:'After enabling, the right sidebar will automatically display "Google News" search results for corresponding English keywords on supported websites (such as Google News, Google Search (partial keywords), Xueqiu, East Money, Futu, Tiger Community).',verifyService:"Verify service",verified:"Successful","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerMinute":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next minute. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"Requests exceed this limit will be queued until the next seconds.","description.prompt":"Send as a user to OpenAI conversation, where {{text}} indicates the text of the paragraph,{{from}} indicates the language of the paragraph,{{to}} indicates the target language, you can omit {{text}}, if so, it'll be sent as a separated message","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"Send the conversation to OpenAI as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the original language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"Default is\uFF1Ageneral. Only set up if there is an API console open domain translation, support fields see <1>Here ","field.scene":"Scene","description.scene":"Default is\uFF1Ageneral. Only set up if there is an API console open Machine Translation Professional, support fields see<1>Here","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please provide a URL with the specific path.",enabledExtension:"Enable extensions",clickToDisableExtension:"Click to disable extension",clickToEnableExtension:"Click to enable the extension",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter customization content",inputOptions:"Writing",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter for translating part of the input box.",inputStartingTriggerKeyDescription:"When you don't need to translate the entire input box, the delimiter allows you to only translate the portion from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means only translating the portion from {startingKey}ja to the end of the input box.",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting is no prefix required, the partial text translation function of the input box cannot be used temporarily.",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Start the translation by quickly pressing 3 times {trailingKey}.",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time (milliseconds) for the input to end the combo trigger",spaceKey:"",noneKey:"Translate the entire text box without prefixes",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement in the following URL",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",clickToSeeQuickDemo:"Click to expand the 30s tutorial video",inputHelperInfo:`Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001". +`,PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",OPTIONS_URL:"https://dash.immersivetranslate.com/",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",MOCK:"0",DEBUG:"0",INSTALL_FROM:"firefox_zip"}});var lh=Zh((ws,lu)=>{h();(function(){var e;function t(g){var y,w,b="",S=-1,D;if(g&&g.length)for(D=g.length;(S+=1)>>6&31,128|y&63):y<=65535?b+=String.fromCharCode(224|y>>>12&15,128|y>>>6&63,128|y&63):y<=2097151&&(b+=String.fromCharCode(240|y>>>18&7,128|y>>>12&63,128|y>>>6&63,128|y&63));return b}function n(g){var y,w,b,S,D,N=[],_;if(y=w=b=S=D=0,g&&g.length)for(_=g.length,g+="";y<_;)b=g.charCodeAt(y),w+=1,b<128?(N[w]=String.fromCharCode(b),y+=1):b>191&&b<224?(S=g.charCodeAt(y+1),N[w]=String.fromCharCode((b&31)<<6|S&63),y+=2):(S=g.charCodeAt(y+1),D=g.charCodeAt(y+2),N[w]=String.fromCharCode((b&15)<<12|(S&63)<<6|D&63),y+=3);return N.join("")}function a(g,y){var w=(g&65535)+(y&65535),b=(g>>16)+(y>>16)+(w>>16);return b<<16|w&65535}function r(g,y){return g<>>32-y}function o(g,y){for(var w=y?"0123456789ABCDEF":"0123456789abcdef",b="",S,D=0,N=g.length;D>>4&15)+w.charAt(S&15);return b}function u(g){var y,w=g.length,b="";for(y=0;y>>8&255);return b}function i(g){var y,w=g.length,b="";for(y=0;y>>8&255,g.charCodeAt(y)&255);return b}function s(g){var y,w=g.length*32,b="";for(y=0;y>5]>>>24-y%32&255);return b}function c(g){var y,w=g.length*32,b="";for(y=0;y>5]>>>y%32&255);return b}function l(g){var y,w=g.length*8,b=Array(g.length>>2),S=b.length;for(y=0;y>5]|=(g.charCodeAt(y/8)&255)<>2),S=b.length;for(y=0;y>5]|=(g.charCodeAt(y/8)&255)<<24-y%32;return b}function p(g,y){var w=y.length,b=Array(),S,D,N,_,x,E,T,v;for(E=Array(Math.ceil(g.length/2)),_=E.length,S=0;S<_;S+=1)E[S]=g.charCodeAt(S*2)<<8|g.charCodeAt(S*2+1);for(;E.length>0;){for(x=Array(),N=0,S=0;S0||D>0)&&(x[x.length]=D);b[b.length]=N,E=x}for(T="",S=b.length-1;S>=0;S--)T+=y.charAt(b[S]);for(v=Math.ceil(g.length*8/(Math.log(y.length)/Math.log(2))),S=T.length;Sg.length*8?b+=y:b+=w.charAt(_>>>6*(3-N)&63);return b}e={VERSION:"1.0.6",Base64:function(){var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y="=",w=!1,b=!0;this.encode=function(S){var D,N,_,x="";for(y=y||"=",S=b?t(S):S,len=S.length,D=0;Dlen*8?x+=y:x+=g.charAt(_>>>6*(3-N)&63);return x},this.decode=function(S){var D,N,_,x,E,T,v,C,R,M,k="",P=[];if(!S)return S;D=M=0,S=S.replace(new RegExp("\\"+y,"gi"),"");do E=g.indexOf(S.charAt(D++)),T=g.indexOf(S.charAt(D++)),v=g.indexOf(S.charAt(D++)),C=g.indexOf(S.charAt(D++)),R=E<<18|T<<12|v<<6|C,N=R>>16&255,_=R>>8&255,x=R&255,M+=1,v===64?P[M]=String.fromCharCode(N):C===64?P[M]=String.fromCharCode(N,_):P[M]=String.fromCharCode(N,_,x);while(D>>8^w;return(y^-1)>>>0},MD5:function(g){var y=g&&typeof g.uppercase=="boolean"?g.uppercase:!1,w=g&&typeof g.pad=="string"?g.pad:"=",b=g&&typeof g.utf8=="boolean"?g.utf8:!0;this.hex=function(C){return o(S(C,b),y)},this.b64=function(C){return f(S(C),w)},this.any=function(C,R){return p(S(C,b),R)},this.raw=function(C){return S(C,b)},this.hex_hmac=function(C,R){return o(D(C,R),y)},this.b64_hmac=function(C,R){return f(D(C,R),w)},this.any_hmac=function(C,R,M){return p(D(C,R),M)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(C){return typeof C=="boolean"&&(y=C),this},this.setPad=function(C){return w=C||w,this},this.setUTF8=function(C){return typeof C=="boolean"&&(b=C),this};function S(C){return C=b?t(C):C,c(N(l(C),C.length*8))}function D(C,R){var M,k,P,O,j;for(C=b?t(C):C,R=b?t(R):R,M=l(C),M.length>16&&(M=N(M,C.length*8)),k=Array(16),P=Array(16),j=0;j<16;j+=1)k[j]=M[j]^909522486,P[j]=M[j]^1549556828;return O=N(k.concat(l(R)),512+R.length*8),c(N(P.concat(O),512+128))}function N(C,R){var M,k,P,O,j,B=1732584193,A=-271733879,L=-1732584194,U=271733878;for(C[R>>5]|=128<>>9<<4)+14]=R,M=0;M16&&(v=N(v,E.length*8)),C=Array(16),R=Array(16),M=0;M<16;M+=1)C[M]=v[M]^909522486,R[M]=v[M]^1549556828;return k=N(C.concat(m(T)),512+T.length*8),s(N(R.concat(k),512+160))}function N(E,T){var v,C,R,M,k,P,O,j,B=Array(80),A=1732584193,L=-271733879,U=-1732584194,K=271733878,H=-1009589776;for(E[T>>5]|=128<<24-T%32,E[(T+64>>9<<4)+15]=T,v=0;v16&&(H=B(H,A.length*8));K<16;K+=1)V[K]=H[K]^909522486,q[K]=H[K]^1549556828;return U=B(V.concat(m(L)),512+L.length*8),s(B(q.concat(U),512+256))}function _(A,L){return A>>>L|A<<32-L}function x(A,L){return A>>>L}function E(A,L,U){return A&L^~A&U}function T(A,L,U){return A&L^A&U^L&U}function v(A){return _(A,2)^_(A,13)^_(A,22)}function C(A){return _(A,6)^_(A,11)^_(A,25)}function R(A){return _(A,7)^_(A,18)^x(A,3)}function M(A){return _(A,17)^_(A,19)^x(A,10)}function k(A){return _(A,28)^_(A,34)^_(A,39)}function P(A){return _(A,14)^_(A,18)^_(A,41)}function O(A){return _(A,1)^_(A,8)^x(A,7)}function j(A){return _(A,19)^_(A,61)^x(A,6)}S=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function B(A,L){var U=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],K=new Array(64),H,V,q,oe,Q,J,ye,xe,ie,Y,ce,fe;for(A[L>>5]|=128<<24-L%32,A[(L+64>>9<<4)+15]=L,ie=0;ie32&&(A=_(A,P.length*8));B<32;B+=1)L[B]=A[B]^909522486,U[B]=A[B]^1549556828;return j=_(L.concat(m(O)),1024+O.length*8),s(_(U.concat(j),1024+512))}function _(P,O){var j,B,A,L=new Array(80),U=new Array(16),K=[new x(1779033703,-205731576),new x(-1150833019,-2067093701),new x(1013904242,-23791573),new x(-1521486534,1595750129),new x(1359893119,-1377402159),new x(-1694144372,725511199),new x(528734635,-79577749),new x(1541459225,327033209)],H=new x(0,0),V=new x(0,0),q=new x(0,0),oe=new x(0,0),Q=new x(0,0),J=new x(0,0),ye=new x(0,0),xe=new x(0,0),ie=new x(0,0),Y=new x(0,0),ce=new x(0,0),fe=new x(0,0),ge=new x(0,0),Ee=new x(0,0),Le=new x(0,0),ve=new x(0,0),ee=new x(0,0);for(S===void 0&&(S=[new x(1116352408,-685199838),new x(1899447441,602891725),new x(-1245643825,-330482897),new x(-373957723,-2121671748),new x(961987163,-213338824),new x(1508970993,-1241133031),new x(-1841331548,-1357295717),new x(-1424204075,-630357736),new x(-670586216,-1560083902),new x(310598401,1164996542),new x(607225278,1323610764),new x(1426881987,-704662302),new x(1925078388,-226784913),new x(-2132889090,991336113),new x(-1680079193,633803317),new x(-1046744716,-815192428),new x(-459576895,-1628353838),new x(-272742522,944711139),new x(264347078,-1953704523),new x(604807628,2007800933),new x(770255983,1495990901),new x(1249150122,1856431235),new x(1555081692,-1119749164),new x(1996064986,-2096016459),new x(-1740746414,-295247957),new x(-1473132947,766784016),new x(-1341970488,-1728372417),new x(-1084653625,-1091629340),new x(-958395405,1034457026),new x(-710438585,-1828018395),new x(113926993,-536640913),new x(338241895,168717936),new x(666307205,1188179964),new x(773529912,1546045734),new x(1294757372,1522805485),new x(1396182291,-1651133473),new x(1695183700,-1951439906),new x(1986661051,1014477480),new x(-2117940946,1206759142),new x(-1838011259,344077627),new x(-1564481375,1290863460),new x(-1474664885,-1136513023),new x(-1035236496,-789014639),new x(-949202525,106217008),new x(-778901479,-688958952),new x(-694614492,1432725776),new x(-200395387,1467031594),new x(275423344,851169720),new x(430227734,-1194143544),new x(506948616,1363258195),new x(659060556,-544281703),new x(883997877,-509917016),new x(958139571,-976659869),new x(1322822218,-482243893),new x(1537002063,2003034995),new x(1747873779,-692930397),new x(1955562222,1575990012),new x(2024104815,1125592928),new x(-2067236844,-1578062990),new x(-1933114872,442776044),new x(-1866530822,593698344),new x(-1538233109,-561857047),new x(-1090935817,-1295615723),new x(-965641998,-479046869),new x(-903397682,-366583396),new x(-779700025,566280711),new x(-354779690,-840897762),new x(-176337025,-294727304),new x(116418474,1914138554),new x(174292421,-1563912026),new x(289380356,-1090974290),new x(460393269,320620315),new x(685471733,587496836),new x(852142971,1086792851),new x(1017036298,365543100),new x(1126000580,-1676669620),new x(1288033470,-885112138),new x(1501505948,-60457430),new x(1607167915,987167468),new x(1816402316,1246189591)]),B=0;B<80;B+=1)L[B]=new x(0,0);for(P[O>>5]|=128<<24-(O&31),P[(O+128>>10<<5)+31]=O,A=P.length,B=0;B>>j|O.h<<32-j,P.h=O.h>>>j|O.l<<32-j}function v(P,O,j){P.l=O.h>>>j|O.l<<32-j,P.h=O.l>>>j|O.h<<32-j}function C(P,O,j){P.l=O.l>>>j|O.h<<32-j,P.h=O.h>>>j}function R(P,O,j){var B=(O.l&65535)+(j.l&65535),A=(O.l>>>16)+(j.l>>>16)+(B>>>16),L=(O.h&65535)+(j.h&65535)+(A>>>16),U=(O.h>>>16)+(j.h>>>16)+(L>>>16);P.l=B&65535|A<<16,P.h=L&65535|U<<16}function M(P,O,j,B,A){var L=(O.l&65535)+(j.l&65535)+(B.l&65535)+(A.l&65535),U=(O.l>>>16)+(j.l>>>16)+(B.l>>>16)+(A.l>>>16)+(L>>>16),K=(O.h&65535)+(j.h&65535)+(B.h&65535)+(A.h&65535)+(U>>>16),H=(O.h>>>16)+(j.h>>>16)+(B.h>>>16)+(A.h>>>16)+(K>>>16);P.l=L&65535|U<<16,P.h=K&65535|H<<16}function k(P,O,j,B,A,L){var U=(O.l&65535)+(j.l&65535)+(B.l&65535)+(A.l&65535)+(L.l&65535),K=(O.l>>>16)+(j.l>>>16)+(B.l>>>16)+(A.l>>>16)+(L.l>>>16)+(U>>>16),H=(O.h&65535)+(j.h&65535)+(B.h&65535)+(A.h&65535)+(L.h&65535)+(K>>>16),V=(O.h>>>16)+(j.h>>>16)+(B.h>>>16)+(A.h>>>16)+(L.h>>>16)+(H>>>16);P.l=U&65535|K<<16,P.h=H&65535|V<<16}},RMD160:function(g){var y=g&&typeof g.uppercase=="boolean"?g.uppercase:!1,w=g&&typeof g.pad=="string"?g.pa:"=",b=g&&typeof g.utf8=="boolean"?g.utf8:!0,S=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],D=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],N=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],_=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(k){return o(x(k,b))},this.b64=function(k){return f(x(k,b),w)},this.any=function(k,P){return p(x(k,b),P)},this.raw=function(k){return x(k,b)},this.hex_hmac=function(k,P){return o(E(k,P))},this.b64_hmac=function(k,P){return f(E(k,P),w)},this.any_hmac=function(k,P,O){return p(E(k,P),O)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(k){return typeof k=="boolean"&&(y=k),this},this.setPad=function(k){return typeof k<"u"&&(w=k),this},this.setUTF8=function(k){return typeof k=="boolean"&&(b=k),this};function x(k){return k=b?t(k):k,T(v(l(k),k.length*8))}function E(k,P){k=b?t(k):k,P=b?t(P):P;var O,j,B=l(k),A=Array(16),L=Array(16);for(B.length>16&&(B=v(B,k.length*8)),O=0;O<16;O+=1)A[O]=B[O]^909522486,L[O]=B[O]^1549556828;return j=v(A.concat(l(P)),512+P.length*8),T(v(L.concat(j),512+160))}function T(k){var P,O="",j=k.length*32;for(P=0;P>5]>>>P%32&255);return O}function v(k,P){var O,j,B,A,L=1732584193,U=4023233417,K=2562383102,H=271733878,V=3285377520,q,oe,Q,J,ye,xe,ie,Y,ce,fe;for(k[P>>5]|=128<>>9<<4)+14]=P,A=k.length,B=0;Bfunction(){return t||(0,e[R4(e)[0]])((t={exports:{}}).exports,t),t.exports},s2=(e,t)=>{for(var n in t)Is(e,n,{get:t[n],enumerable:!0})},Rs=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of R4(t))!u2.call(e,r)&&r!==n&&Is(e,r,{get:()=>t[r],enumerable:!(a=r2(t,r))||a.enumerable});return e},l2=(e,t,n)=>(Rs(e,t,"default"),n&&Rs(n,t,"default")),I4=(e,t,n)=>(n=e!=null?a2(o2(e)):{},Rs(t||!e||!e.__esModule?Is(n,"default",{value:e,enumerable:!0}):n,e)),O4=i2({"../esmd/npm/webextension-polyfill@0.10.0/node_modules/webextension-polyfill/dist/browser-polyfill.js"(e,t){(function(n,a){if(typeof define=="function"&&define.amd)define("webextension-polyfill",["module"],a);else if(typeof e<"u")a(t);else{var r={exports:{}};a(r),n.browser=r.exports}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:e,function(n){"use strict";if(!globalThis.chrome?.runtime?.id)throw new Error("This script should only be loaded in a browser extension.");if(typeof globalThis.browser>"u"||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){let a="The message port closed before a response was received.",r=o=>{let u={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(Object.keys(u).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class i extends WeakMap{constructor(E,T=void 0){super(T),this.createItem=E}get(E){return this.has(E)||this.set(E,this.createItem(E)),super.get(E)}}let s=x=>x&&typeof x=="object"&&typeof x.then=="function",c=(x,E)=>(...T)=>{o.runtime.lastError?x.reject(new Error(o.runtime.lastError.message)):E.singleCallbackArg||T.length<=1&&E.singleCallbackArg!==!1?x.resolve(T[0]):x.resolve(T)},l=x=>x==1?"argument":"arguments",m=(x,E)=>function(v,...C){if(C.lengthE.maxArgs)throw new Error(`Expected at most ${E.maxArgs} ${l(E.maxArgs)} for ${x}(), got ${C.length}`);return new Promise((R,M)=>{if(E.fallbackToNoCallback)try{v[x](...C,c({resolve:R,reject:M},E))}catch{v[x](...C),E.fallbackToNoCallback=!1,E.noCallback=!0,R()}else E.noCallback?(v[x](...C),R()):v[x](...C,c({resolve:R,reject:M},E))})},p=(x,E,T)=>new Proxy(E,{apply(v,C,R){return T.call(C,x,...R)}}),f=Function.call.bind(Object.prototype.hasOwnProperty),g=(x,E={},T={})=>{let v=Object.create(null),C={has(M,k){return k in x||k in v},get(M,k,P){if(k in v)return v[k];if(!(k in x))return;let O=x[k];if(typeof O=="function")if(typeof E[k]=="function")O=p(x,x[k],E[k]);else if(f(T,k)){let j=m(k,T[k]);O=p(x,x[k],j)}else O=O.bind(x);else if(typeof O=="object"&&O!==null&&(f(E,k)||f(T,k)))O=g(O,E[k],T[k]);else if(f(T,"*"))O=g(O,E[k],T["*"]);else return Object.defineProperty(v,k,{configurable:!0,enumerable:!0,get(){return x[k]},set(j){x[k]=j}}),O;return v[k]=O,O},set(M,k,P,O){return k in v?v[k]=P:x[k]=P,!0},defineProperty(M,k,P){return Reflect.defineProperty(v,k,P)},deleteProperty(M,k){return Reflect.deleteProperty(v,k)}},R=Object.create(x);return new Proxy(R,C)},y=x=>({addListener(E,T,...v){E.addListener(x.get(T),...v)},hasListener(E,T){return E.hasListener(x.get(T))},removeListener(E,T){E.removeListener(x.get(T))}}),w=new i(x=>typeof x!="function"?x:function(T){let v=g(T,{},{getContent:{minArgs:0,maxArgs:0}});x(v)}),b=new i(x=>typeof x!="function"?x:function(T,v,C){let R=!1,M,k=new Promise(B=>{M=function(A){R=!0,B(A)}}),P;try{P=x(T,v,M)}catch(B){P=Promise.reject(B)}let O=P!==!0&&s(P);if(P!==!0&&!O&&!R)return!1;let j=B=>{B.then(A=>{C(A)},A=>{let L;A&&(A instanceof Error||typeof A.message=="string")?L=A.message:L="An unexpected error occurred",C({__mozWebExtensionPolyfillReject__:!0,message:L})}).catch(A=>{})};return j(O?P:k),!0}),S=({reject:x,resolve:E},T)=>{o.runtime.lastError?o.runtime.lastError.message===a?E():x(new Error(o.runtime.lastError.message)):T&&T.__mozWebExtensionPolyfillReject__?x(new Error(T.message)):E(T)},D=(x,E,T,...v)=>{if(v.lengthE.maxArgs)throw new Error(`Expected at most ${E.maxArgs} ${l(E.maxArgs)} for ${x}(), got ${v.length}`);return new Promise((C,R)=>{let M=S.bind(null,{resolve:C,reject:R});v.push(M),T.sendMessage(...v)})},N={devtools:{network:{onRequestFinished:y(w)}},runtime:{onMessage:y(b),onMessageExternal:y(b),sendMessage:D.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:D.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},_={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return u.privacy={network:{"*":_},services:{"*":_},websites:{"*":_}},g(o,N,u)};n.exports=r(chrome)}else n.exports=globalThis.browser})}}),N4={};s2(N4,{default:()=>yu});var c2=I4(O4());l2(N4,I4(O4()));var{default:B4,...d2}=c2,yu=B4!==void 0?B4:d2;globalThis.immersiveTranslateBrowserAPI=yu;h();h();h();h();var wu,Se,q4,g2,co,U4,W4,Eu={},K4=[],m2=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function pa(e,t){for(var n in t)e[n]=t[n];return e}function $4(e){var t=e.parentNode;t&&t.removeChild(e)}function Ns(e,t,n){var a,r,o,u={};for(o in t)o=="key"?a=t[o]:o=="ref"?r=t[o]:u[o]=t[o];if(arguments.length>2&&(u.children=arguments.length>3?wu.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)u[o]===void 0&&(u[o]=e.defaultProps[o]);return xu(e,u,a,r,null)}function xu(e,t,n,a,r){var o={type:e,props:t,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++q4};return r==null&&Se.vnode!=null&&Se.vnode(o),o}function Fe(e){return e.children}function Tu(e,t){this.props=e,this.context=t}function br(e,t){if(t==null)return e.__?br(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?xu(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=n,f.__b=n.__b+1,(p=b[l])===null||p&&f.key==p.key&&f.type===p.type)b[l]=void 0;else for(m=0;m=n.__.length&&n.__.push({__V:Au}),n.__[e]}function $(e){return go=1,b2(ld,e)}function b2(e,t,n){var a=Su(mo++,2);if(a.t=e,!a.__c&&(a.__=[n?n(t):ld(void 0,t),function(o){var u=a.__N?a.__N[0]:a.__[0],i=a.t(u,o);u!==i&&(a.__N=[i,a.__[1]],a.__c.setState({}))}],a.__c=st,!st.u)){st.u=!0;var r=st.shouldComponentUpdate;st.shouldComponentUpdate=function(o,u,i){if(!a.__c.__H)return!0;var s=a.__c.__H.__.filter(function(l){return l.__c});if(s.every(function(l){return!l.__N}))return!r||r.call(this,o,u,i);var c=!1;return s.forEach(function(l){if(l.__N){var m=l.__[0];l.__=l.__N,l.__N=void 0,m!==l.__[0]&&(c=!0)}}),!!c&&(!r||r.call(this,o,u,i))}}return a.__N||a.__}function he(e,t){var n=Su(mo++,3);!Se.__s&&sd(n.__H,t)&&(n.__=e,n.i=t,st.__H.__h.push(n))}function zn(e){return go=5,fa(function(){return{current:e}},[])}function fa(e,t){var n=Su(mo++,7);return sd(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function dn(e,t){return go=8,fa(function(){return e},t)}function Ye(e){var t=st.context[e.__c],n=Su(mo++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(st)),t.props.value):e.__}function y2(){for(var e;e=id.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ku),e.__H.__h.forEach(zs),e.__H.__h=[]}catch(t){e.__H.__h=[],Se.__e(t,e.__v)}}Se.__b=function(e){typeof e.type!="function"||e.o||e.type===Fe?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),st=null,td&&td(e)},Se.__r=function(e){nd&&nd(e),mo=0;var t=(st=e.__c).__H;t&&(js===st?(t.__h=[],st.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Au,n.__N=n.i=void 0})):(t.__h.forEach(ku),t.__h.forEach(zs),t.__h=[])),js=st},Se.diffed=function(e){ad&&ad(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(id.push(t)!==1&&ed===Se.requestAnimationFrame||((ed=Se.requestAnimationFrame)||x2)(y2)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Au&&(n.__=n.__V),n.i=void 0,n.__V=Au})),js=st=null},Se.__c=function(e,t){t.some(function(n){try{n.__h.forEach(ku),n.__h=n.__h.filter(function(a){return!a.__||zs(a)})}catch(a){t.some(function(r){r.__h&&(r.__h=[])}),t=[],Se.__e(a,n.__v)}}),rd&&rd(e,t)},Se.unmount=function(e){od&&od(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(a){try{ku(a)}catch(r){t=r}}),n.__H=void 0,t&&Se.__e(t,n.__v))};var ud=typeof requestAnimationFrame=="function";function x2(e){var t,n=function(){clearTimeout(a),ud&&cancelAnimationFrame(t),setTimeout(e)},a=setTimeout(n,100);ud&&(t=requestAnimationFrame(n))}function ku(e){var t=st,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),st=t}function zs(e){var t=st;e.__c=e.__(),st=t}function sd(e,t){return!e||e.length!==t.length||t.some(function(n,a){return n!==e[a]})}function ld(e,t){return typeof t=="function"?t(e):t}h();h();h();var po;function Xs(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function xd(e,t=","){return e.map(Xs).join(t)}var e0=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function xr(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function Lu(e,t="@media "){return t+He(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(a=>`(${a}-width:${n[a]})`).join(" and "))).join(",")}function He(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function cd(e){return e}function ho(){}var gt={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function Td(e){return e.match(/[-=:;]/g)?.length||0}function Gs(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(Td(e),15)<<18}var T2=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function t0({n:e,i:t,v:n=[]},a,r,o){e&&(e=Xs({n:e,i:t,v:n})),o=[...He(o)];for(let i of n){let s=a.theme("screens",i);for(let c of He(s&&Lu(s)||a.v(i))){var u;o.push(c),r|=s?67108864|Gs(c):i=="dark"?1073741824:c[0]=="@"?Gs(c):(u=c,1<<~(/:([a-z-]+)/.test(u)&&~T2.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:r,r:o,i:t}}var n0=new Map;function Vs(e){if(e.d){let t=[],n=Hs(e.r.reduce((a,r)=>r[0]=="@"?(t.push(r),a):r?Hs(a,o=>Hs(r,u=>{let i=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(u);if(i){let s=o.indexOf(i[1]);return~s?o.slice(0,s)+i[0]+o.slice(s+i[1].length):qs(o,u)}return qs(u,o)})):a,"&"),a=>qs(a,e.n?"."+e0(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((a,r)=>r+"{"+a+"}",e.d)}}function Hs(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,a,r)=>t(a)+r)}function qs(e,t){return e.replace(/&/g,t)}var dd=new Intl.Collator("en",{numeric:!0});function Ed(e,t){for(var n=0,a=e.length;n>1;0>=Cd(e[r],t)?n=r+1:a=r}return a}function Cd(e,t){let n=e.p>.o;return n==(t.p>.o)&&(n==gt.b||n==gt.o)?0:e.p-t.p||e.o-t.o||dd.compare(gd(e.n),gd(t.n))||dd.compare(md(e.n),md(t.n))}function gd(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function md(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function Ws(e,t){return Math.round(parseInt(e,16)*t)}function Xn(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:a}=t,r=a?`var(${a})`:n;if(e.includes(""))return e.replace("",r);if(e[0]=="#"&&(e.length==4||e.length==7)){let o=(e.length-1)/3,u=[17,1,.062272][o-1];return`rgba(${[Ws(e.substr(1,o),u),Ws(e.substr(1+o,o),u),Ws(e.substr(1+2*o,o),u),r]})`}return r=="1"?e:r=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${r})`)}function a0(e,t,n,a,r=[]){return function o(u,{n:i,p:s,r:c=[],i:l},m){let p=[],f="",g=0,y=0;for(let S in u||{}){var w,b;let D=u[S];if(S[0]=="@"){if(!D)continue;if(S[1]=="a"){p.push(...u0(i,s,fo(""+D),m,s,c,l,!0));continue}if(S[1]=="l"){for(let N of He(D))p.push(...o(N,{n:i,p:(w=gt[S[7]],s&~gt.o|w),r:S[7]=="d"?[]:c,i:l},m));continue}if(S[1]=="i"){p.push(...He(D).map(N=>({p:-1,o:0,r:[],d:S+" "+N})));continue}if(S[1]=="k"){p.push({p:gt.d,o:0,r:[S],d:o(D,{p:gt.d},m).map(Vs).join("")});continue}if(S[1]=="f"){p.push(...He(D).map(N=>({p:gt.d,o:0,r:[S],d:o(N,{p:gt.d},m).map(Vs).join("")})));continue}}if(typeof D!="object"||Array.isArray(D))S=="label"&&D?i=D+xr(JSON.stringify([s,l,u])):(D||D===0)&&(S=S.replace(/[A-Z]/g,N=>"-"+N.toLowerCase()),y+=1,g=Math.max(g,(b=S)[0]=="-"?0:Td(b)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(b)?+!!RegExp.$1||-!!RegExp.$2:0)+1),f+=(f?";":"")+He(D).map(N=>m.s(S,r0(""+N,m.theme)+(l?" !important":""))).join(";"));else if(S[0]=="@"||S.includes("&")){let N=s;S[0]=="@"&&(S=S.replace(/\bscreen\(([^)]+)\)/g,(_,x)=>{let E=m.theme("screens",x);return E?(N|=67108864,Lu(E,"")):_}),N|=Gs(S)),p.push(...o(D,{n:i,p:N,r:[...c,S],i:l},m))}else p.push(...o(D,{p:s,r:[...c,S]},m))}return p.unshift({n:i,p:s,o:Math.max(0,15-y)+1.5*Math.min(g||15,15),r:c,d:f}),p.sort(Cd)}(e,t0(t,n,a,r),n)}function r0(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,a,r,o,u="")=>{let i=t(r,u);return typeof i=="function"&&/color|fill|stroke/i.test(r)?Xn(i):""+He(i).filter(s=>Object(s)!==s)})}function o0(e,t){let n,a=[];for(let r of e)r.d&&r.n?n?.p==r.p&&""+n.r==""+r.r?(n.c=[n.c,r.c].filter(Boolean).join(" "),n.d=n.d+";"+r.d):a.push(n={...r,n:r.n&&t}):a.push({...r,n:r.n&&t});return a}function Du(e,t,n=gt.u,a,r){let o=[];for(let u of e)for(let i of function(s,c,l,m,p){s={...s,i:s.i||p};let f=function(g,y){let w=n0.get(g.n);return w?w(g,y):y.r(g.n,g.v[0]=="dark")}(s,c);return f?typeof f=="string"?({r:m,p:l}=t0(s,c,l,m),o0(Du(fo(f),c,l,m,s.i),s.n)):Array.isArray(f)?f.map(g=>{var y,w;return{o:0,...g,r:[...He(m),...He(g.r)],p:(y=l,w=g.p??l,y&~gt.o|w)}}):a0(f,s,c,l,m):[{c:Xs(s),p:0,o:0,r:[]}]}(u,t,n,a,r))o.splice(Ed(o,i),0,i);return o}function u0(e,t,n,a,r,o,u,i){return o0((i?n.flatMap(s=>Du([s],a,r,o,u)):Du(n,a,r,o,u)).map(s=>s.p>.o&&(s.n||t==gt.b)?{...s,p:s.p&~gt.o|t,o:0}:s),e)}function E2(e,t,n,a){var r;return r=(o,u)=>{let{n:i,p:s,r:c,i:l}=t0(o,u,t);return n&&u0(i,t,n,u,s,c,l,a)},n0.set(e,r),e}function Ks(e,t,n){if(e[e.length-1]!="("){let a=[],r=!1,o=!1,u="";for(let i of e)if(!(i=="("||/[~@]$/.test(i))){if(i[0]=="!"&&(i=i.slice(1),r=!r),i.endsWith(":")){a[i=="dark:"?"unshift":"push"](i.slice(0,-1));continue}i[0]=="-"&&(i=i.slice(1),o=!o),i.endsWith("-")&&(i=i.slice(0,-1)),i&&i!="&"&&(u+=(u&&"-")+i)}u&&(o&&(u="-"+u),t[0].push({n:u,v:a.filter(C2),i:r}))}}function C2(e,t,n){return n.indexOf(e)==t}var pd=new Map;function fo(e){let t=pd.get(e);if(!t){let n=[],a=[[]],r=0,o=0,u=null,i=0,s=(c,l=0)=>{r!=i&&(n.push(e.slice(r,i+l)),c&&Ks(n,a)),r=i+1};for(;i1?m.slice(0,-1)+xr(JSON.stringify([m,p])):m+"("+xd(p)+")",gt.a,p,/@$/.test(m))],a)}l=n.lastIndexOf("(",l-1)}n.length=l+1}else/[~@]/.test(c)&&e[i+1]=="("&&a.unshift([])}s(!0),pd.set(e,t=a[0])}return t}function vd(e,t,n){return t.reduce((a,r,o)=>a+n(r)+e[o+1],e[0])}function wd(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?vd(e,t,n=>$s(n).trim()):t.filter(Boolean).reduce((n,a)=>n+$s(a),e?$s(e):"")}function $s(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=wd(e[0],e.slice(1)))&&(n+=" "+t);else for(let a in e)e[a]&&(n+=" "+a);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var iE=Ad("@"),sE=Ad("~");function Ad(e){return new Proxy(function(n,...a){return t("",n,a)},{get(n,a){return a in n?n[a]:function(r,...o){return t(a,r,o)}}});function t(n,a,r){return xd(fo(n+e+"("+wd(a,r)+")"))}}function Ys(e,t){return Array.isArray(e)?fd(vd(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?fd(e):[e]}var v2=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function fd(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],a=[n[0]],r=[];for(;t=v2.exec(e);)t[4]&&(n.shift(),r.shift()),t[3]?(r.unshift(t[3]),n.unshift({}),a.push(r.reduce((o,u)=>({[u]:o}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),a.push(r.reduce((o,u)=>({[u]:o}),n[0]))),n[0][t[1]]=t[2]);return a}function kd(e,...t){var n;let a=Ys(e,t),r=(a.find(o=>o.label)?.label||"css")+xr(JSON.stringify(a));return n=(o,u)=>o0(a.flatMap(i=>a0(i,o,u,gt.o)),r),n0.set(r,n),r}var lE=new Proxy(function(e,t){return hd("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,a){return hd(t,n,a)}}});function hd(e,t,n){return{toString(){return kd({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function ne(e,t,n){return[e,Js(t,n)]}function Js(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,a)=>({[e]:t?t(n,a):Qs(n,1)}):n=>e||{[n[1]]:Qs(n,2)}}function Qs(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function ae(e,t,n,a){return[e,w2(t,n,a)]}function w2(e,t,n){let a=typeof t=="string"?(r,o)=>({[t]:n?n(r,o):r._}):t||(({1:r,_:o},u,i)=>({[r||i]:o}));return(r,o)=>{let u=Sd(e||r[1]),i=o.theme(u,r.$$)??Hn(r.$$,u,o);if(i!=null)return r._=Qs(r,0,i),a(r,o,u)}}function xt(e,t={},n){return[e,A2(t,n)]}function A2(e={},t){return(n,a)=>{let{section:r=Sd(n[0]).replace("-","")+"Color"}=e,[o,u]=k2(n.$$);if(!o)return;let i=a.theme(r,o)||Hn(o,r,a);if(!i||typeof i=="object")return;let{opacityVariable:s=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:c=r.replace("Color","Opacity"),property:l=r,selector:m}=e,p=a.theme(c,u||"DEFAULT")||u&&Hn(u,c,a),f=t||(({_:y})=>{let w=bo(l,y);return m?{[m]:w}:w});n._={value:Xn(i,{opacityVariable:s||void 0,opacityValue:p||void 0}),color:y=>Xn(i,y),opacityVariable:s||void 0,opacityValue:p||void 0};let g=f(n,a);if(!n.dark){let y=a.d(r,o,i);y&&y!==i&&(n._={value:Xn(y,{opacityVariable:s||void 0,opacityValue:p||"1"}),color:w=>Xn(y,w),opacityVariable:s||void 0,opacityValue:p||void 0},g={"&":g,[a.v("dark")]:f(n,a)})}return g}}function k2(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function bo(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function Hn(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=Tr(r0(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function Sd(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function Tr(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",a,r="")=>Tr(n)+a+Tr(r)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var cE=Symbol();function yo({presets:e=[],...t}){let n={darkMode:void 0,darkColor:void 0,preflight:t.preflight!==!1&&[],theme:{},variants:He(t.variants),rules:He(t.rules),ignorelist:He(t.ignorelist),hash:void 0,stringify:(a,r)=>a+":"+r,finalize:[]};for(let a of He([...e,{darkMode:t.darkMode,darkColor:t.darkColor,preflight:t.preflight!==!1&&He(t.preflight),theme:t.theme,hash:t.hash,stringify:t.stringify,finalize:t.finalize}])){let{preflight:r,darkMode:o=n.darkMode,darkColor:u=n.darkColor,theme:i,variants:s,rules:c,ignorelist:l,hash:m=n.hash,stringify:p=n.stringify,finalize:f}=typeof a=="function"?a(n):a;n={preflight:n.preflight!==!1&&r!==!1&&[...n.preflight,...He(r)],darkMode:o,darkColor:u,theme:{...n.theme,...i,extend:{...n.theme.extend,...i?.extend}},variants:[...n.variants,...He(s)],rules:[...n.rules,...He(c)],ignorelist:[...n.ignorelist,...He(l)],hash:m,stringify:p,finalize:[...n.finalize,...He(f)]}}return n}function bd(e,t,n,a,r,o){for(let u of t){let i=n.get(u);i||n.set(u,i=a(u));let s=i(e,r,o);if(s)return s}}function S2(e){var t;return Zs(e[0],typeof(t=e[1])=="function"?t:()=>t)}function D2(e){var t,n;return Array.isArray(e)?Zs(e[0],Js(e[1],e[2])):Zs(e,Js(t,n))}function Zs(e,t){return Dd(e,(n,a,r,o)=>{let u=a.exec(n);if(u)return u.$$=n.slice(u[0].length),u.dark=o,t(u,r)})}function Dd(e,t){let n=He(e).map(L2);return(a,r,o)=>{for(let u of n){let i=t(a,u,r,o);if(i)return i}}}function L2(e){return typeof e=="string"?RegExp("^"+e+(e.includes("$")||e.slice(-1)=="-"?"":"$")):e}function M2(e,t){let n=yo(e),a=function({theme:s,darkMode:c,darkColor:l=ho,variants:m,rules:p,hash:f,stringify:g,ignorelist:y,finalize:w}){let b=new Map,S=new Map,D=new Map,N=new Map,_=Dd(y,(T,v)=>v.test(T));m.push(["dark",Array.isArray(c)||c=="class"?`${He(c)[1]||".dark"} &`:typeof c=="string"&&c!="media"?c:"@media (prefers-color-scheme:dark)"]);let x=typeof f=="function"?T=>f(T,xr):f?xr:cd;x!==cd&&w.push(T=>({...T,n:T.n&&x(T.n),d:T.d?.replace(/--(tw(?:-[\w-]+)?)\b/g,(v,C)=>"--"+x(C).replace("#",""))}));let E={theme:function({extend:T={},...v}){let C={},R={get colors(){return M("colors")},theme:M,negative(){return{}},breakpoints(P){let O={};for(let j in P)typeof P[j]=="string"&&(O["screen-"+j]=P[j]);return O}};return M;function M(P,O,j,B){if(P){if({1:P,2:B}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(P)||[,P],/[.[]/.test(P)){let K=[];P.replace(/\[([^\]]+)\]|([^.[]+)/g,(H,V,q=V)=>K.push(q)),P=K.shift(),j=O,O=K.join("-")}let L=C[P]||Object.assign(Object.assign(C[P]={},k(v,P)),k(T,P));if(O==null)return L;O||="DEFAULT";let U=L[O]??O.split("-").reduce((K,H)=>K?.[H],L)??j;return B?Xn(U,{opacityValue:r0(B,M)}):U}let A={};for(let L of[...Object.keys(v),...Object.keys(T)])A[L]=M(L);return A}function k(P,O){let j=P[O];return typeof j=="function"&&(j=j(R)),j&&/color|fill|stroke/i.test(O)?function B(A,L=[]){let U={};for(let K in A){let H=A[K],V=[...L,K];U[V.join("-")]=H,K=="DEFAULT"&&(V=L,U[L.join("-")]=H),typeof H=="object"&&Object.assign(U,B(H,V))}return U}(j):j}}(s),e:e0,h:x,s(T,v){return g(T,v,E)},d(T,v,C){return l(T,v,E,C)},v(T){return b.has(T)||b.set(T,bd(T,m,S,S2,E)||"&:"+T),b.get(T)},r(T,v){let C=JSON.stringify([T,v]);return D.has(C)||D.set(C,!_(T,E)&&bd(T,p,N,D2,E,v)),D.get(C)},f(T){return w.reduce((v,C)=>C(v,E),T)}};return E}(n),r=new Map,o=[],u=new Set;t.resume(s=>r.set(s,s),(s,c)=>{t.insert(s,o.length,c),o.push(c),u.add(s)});function i(s){let c=a.f(s),l=Vs(c);if(l&&!u.has(l)){u.add(l);let m=Ed(o,s);t.insert(l,m,s),o.splice(m,0,s)}return c.n}return Object.defineProperties(function(s){if(!r.size)for(let l of He(n.preflight))typeof l=="function"&&(l=l(a)),l&&(typeof l=="string"?u0("",gt.b,fo(l),a,gt.b,[],!1,!0):a0(l,{},a,gt.b)).forEach(i);s=""+s;let c=r.get(s);if(!c){let l=new Set;for(let m of Du(fo(s),a))l.add(m.c).add(i(m));c=[...l].filter(Boolean).join(" "),r.set(s,c).set(c,c)}return c},Object.getOwnPropertyDescriptors({get target(){return t.target},theme:a.theme,config:n,snapshot(){let s=t.snapshot(),c=new Set(u),l=new Map(r),m=[...o];return()=>{s(),u=c,r=l,o=m}},clear(){t.clear(),u=new Set,r=new Map,o=[]},destroy(){this.clear(),t.destroy()}}))}function P2(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function F2(e){let t=new MutationObserver(n);return{observe(r){t.observe(r,{attributeFilter:["class"],subtree:!0,childList:!0}),a(r),n([{target:r,type:""}])},disconnect(){t.disconnect()}};function n(r){for(let{type:o,target:u}of r)if(o[0]=="a")a(u);else for(let i of u.querySelectorAll("[class]"))a(i);t.takeRecords()}function a(r){let o,u=r.getAttribute?.("class");u&&P2(u,o=e(u))&&r.setAttribute("class",o)}}function _2(e=i0,t=typeof document<"u"&&document.documentElement){if(t){let n=F2(e);n.observe(t);let{destroy:a}=e;e.destroy=()=>{n.disconnect(),a.call(e)}}return e}function Ld(e){let t=document.querySelector(e||'style[data-twind=""]');return(!t||t.tagName!="STYLE")&&(t=document.createElement("style"),document.head.prepend(t)),t.dataset.twind="claimed",t}function B2(e){let t=e?.cssRules?e:(e&&typeof e!="string"?e:Ld(e)).sheet;return{target:t,snapshot(){let n=Array.from(t.cssRules,a=>a.cssText);return()=>{this.clear(),n.forEach(this.insert)}},clear(){for(let n=t.cssRules.length;n--;)t.deleteRule(n)},destroy(){t.ownerNode?.remove()},insert(n,a){try{t.insertRule(n,a)}catch{t.insertRule(":root{}",a)}},resume:ho}}function R2(e){let t=e&&typeof e!="string"?e:Ld(e);return{target:t,snapshot(){let n=Array.from(t.childNodes,a=>a.textContent);return()=>{this.clear(),n.forEach(this.insert)}},clear(){t.textContent=""},destroy(){t.remove()},insert(n,a){t.insertBefore(document.createTextNode(n),t.childNodes[a]||null)},resume:ho}}function I2(e){let t=[];return{target:t,snapshot(){let n=[...t];return()=>{t.splice(0,t.length,...n)}},clear(){t.length=0},destroy(){this.clear()},insert(n,a,r){t.splice(a,0,e?`/*!${r.p.toString(36)},${(2*r.o).toString(36)}${r.n?","+r.n:""}*/${n}`:n)},resume:ho}}function Md(e,t){let n=typeof document>"u"?I2(!t):e?R2():B2();return t||(n.resume=N2),n}function O2(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,t=>t.cssText):He(e)).join("")}function N2(e,t){let n=O2(this.target),a=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(a.test(n)){var r;let o;if(a.lastIndex=0,this.clear(),typeof document<"u")for(let u of document.querySelectorAll("[class]"))e(u.getAttribute("class"));for(;r=a.exec(n),o&&t(n.slice(o.index+o[0].length,r?.index),{p:parseInt(o[1],36),o:parseInt(o[2],36)/2,n:o[3]}),o=r;);}}var i0=new Proxy(ho,{apply(e,t,n){return po(n[0])},get(e,t){let n=po[t];return typeof n=="function"?function(){return n.apply(po,arguments)}:n}});function Pd(e={},t=Md,n){return po?.destroy(),po=_2(M2(e,typeof t=="function"?t():t),n)}function s0(e,t=!0){let n=yo(e);return Pd({...n,hash:n.hash??t},()=>Md(!t))}var dE=function e(t){return new Proxy(function(n,...a){return yd(t,"",n,a)},{get(n,a){return a==="bind"?e:a in n?n[a]:function(r,...o){return yd(t,a,r,o)}}})}();function yd(e,t,n,a){return{toString(){let r=Ys(n,a),o=e0(t+xr(JSON.stringify([t,r])));return(typeof e=="function"?e:i0)(kd({[`@keyframes ${o}`]:Ys(n,a)})),o}}}h();h();h();var U2=new Map([["align-self","-ms-grid-row-align"],["color-adjust","-webkit-print-color-adjust"],["column-gap","grid-column-gap"],["forced-color-adjust","-ms-high-contrast-adjust"],["gap","grid-gap"],["grid-template-columns","-ms-grid-columns"],["grid-template-rows","-ms-grid-rows"],["justify-self","-ms-grid-column-align"],["margin-inline-end","-webkit-margin-end"],["margin-inline-start","-webkit-margin-start"],["mask-border","-webkit-mask-box-image"],["mask-border-outset","-webkit-mask-box-image-outset"],["mask-border-slice","-webkit-mask-box-image-slice"],["mask-border-source","-webkit-mask-box-image-source"],["mask-border-repeat","-webkit-mask-box-image-repeat"],["mask-border-width","-webkit-mask-box-image-width"],["overflow-wrap","word-wrap"],["padding-inline-end","-webkit-padding-end"],["padding-inline-start","-webkit-padding-start"],["print-color-adjust","color-adjust"],["row-gap","grid-row-gap"],["scroll-margin-bottom","scroll-snap-margin-bottom"],["scroll-margin-left","scroll-snap-margin-left"],["scroll-margin-right","scroll-snap-margin-right"],["scroll-margin-top","scroll-snap-margin-top"],["scroll-margin","scroll-snap-margin"],["text-combine-upright","-ms-text-combine-horizontal"]]);function Fd(e){return U2.get(e)}function _d(e){var t=/^(?:(text-(?:decoration$|e|or|si)|back(?:ground-cl|d|f)|box-d|mask(?:$|-[ispro]|-cl)|pr|hyphena|flex-d)|(tab-|column(?!-s)|text-align-l)|(ap)|u|hy)/i.exec(e);return t?t[1]?1:t[2]?2:t[3]?3:5:0}function Bd(e,t){var n=/^(?:(pos)|(cli)|(background-i)|(flex(?:$|-b)|(?:max-|min-)?(?:block-s|inl|he|widt))|dis)/i.exec(e);return n?n[1]?/^sti/i.test(t)?1:0:n[2]?/^pat/i.test(t)?1:0:n[3]?/^image-/i.test(t)?1:0:n[4]?t[3]==="-"?2:0:/^(?:inline-)?grid$/i.test(t)?4:0:0}var j2=[["-webkit-",1],["-moz-",2],["-ms-",4]];function Mu(){return({stringify:e})=>({stringify(t,n,a){let r="",o=Fd(t);o&&(r+=e(o,n,a)+";");let u=_d(t),i=Bd(t,n);for(let s of j2)u&s[1]&&(r+=e(s[0]+t,n,a)+";"),i&s[1]&&(r+=e(t,s[0]+n,a)+";");return r+e(t,n,a)}})}h();h();var c0={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...rn(4,"rem",4,.5,.5),...rn(12,"rem",4,5),14:"3.5rem",...rn(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Re("blur"),backdropBrightness:Re("brightness"),backdropContrast:Re("contrast"),backdropGrayscale:Re("grayscale"),backdropHueRotate:Re("hueRotate"),backdropInvert:Re("invert"),backdropOpacity:Re("opacity"),backdropSaturate:Re("saturate"),backdropSepia:Re("sepia"),backgroundColor:Re("colors"),backgroundImage:{none:"none"},backgroundOpacity:Re("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...rn(200,"",100,0,50),...rn(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Re("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Re("spacing"),borderWidth:{DEFAULT:"1px",...gn(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Re("colors"),caretColor:Re("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...rn(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Re("borderColor"),divideOpacity:Re("borderOpacity"),divideWidth:Re("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...xo(2,6),...xo(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Re("spacing"),gradientColorStops:Re("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...xo(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...xo(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...rn(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...rn(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Re("spacing"),placeholderColor:Re("colors"),placeholderOpacity:Re("opacity"),outlineColor:Re("colors"),outlineOffset:gn(8,"px"),outlineWidth:gn(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Re("colors"),ringOffsetWidth:gn(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...gn(8,"px")},rotate:{...gn(2,"deg"),...gn(12,"deg",3),...gn(180,"deg",45)},saturate:rn(200,"",100,0,50),scale:{...rn(150,"",100,0,50),...rn(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Re("spacing"),scrollPadding:Re("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...gn(2,"deg"),...gn(12,"deg",3)},space:Re("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:rn(2),textColor:Re("colors"),textDecorationColor:Re("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...gn(8,"px")},textUnderlineOffset:{auto:"auto",...gn(8,"px")},textIndent:Re("spacing"),textOpacity:Re("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Re("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...xo(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...rn(50,"",1,0,10),auto:"auto"}};function xo(e,t){let n={};do for(var a=1;at(e)}var z2={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${c0.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${c0.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},H2=[ne("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:Hn(`[${t}]`,"",n)}}})),ne("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),ae("aspect-","aspectRatio"),ne("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:a,padding:r}=t("container"),o={width:"100%",marginRight:a&&"auto",marginLeft:a&&"auto",...u("xs")};for(let i in n){let s=n[i];typeof s=="string"&&(o[Lu(s)]={"&":{maxWidth:s,...u(i)}})}return o;function u(i){let s=r&&(typeof r=="string"?r:r[i]||r.DEFAULT);if(s)return{paddingRight:s,paddingLeft:s}}}),ae("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),ne("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),ne("box-(border|content)","boxSizing",({1:e})=>e+"-box"),ne("hidden",{display:"none"}),ne("table-(auto|fixed)","tableLayout"),ne(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",ne("isolate","isolation"),ne("object-(contain|cover|fill|none|scale-down)","objectFit"),ae("object-","objectPosition"),ne("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",Pu),ne("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),ne("(static|fixed|absolute|relative|sticky)","position"),ae("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),ae("-?(top|bottom|left|right)(?:$|-)","inset"),ne("(visible|collapse)","visibility"),ne("invisible",{visibility:"hidden"}),ae("-?z-","zIndex"),ne("flex-((row|col)(-reverse)?)","flexDirection",Rd),ne("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),ae("(flex-(?:grow|shrink))(?:$|-)"),ae("(flex)-"),ae("grow(?:$|-)","flexGrow"),ae("shrink(?:$|-)","flexShrink"),ae("basis-","flexBasis"),ae("-?(order)-"),"-?(order)-(\\d+)",ae("grid-cols-","gridTemplateColumns"),ne("grid-cols-(\\d+)","gridTemplateColumns",Ud),ae("col-","gridColumn"),ne("col-(span)-(\\d+)","gridColumn",Nd),ae("col-start-","gridColumnStart"),ne("col-start-(auto|\\d+)","gridColumnStart"),ae("col-end-","gridColumnEnd"),ne("col-end-(auto|\\d+)","gridColumnEnd"),ae("grid-rows-","gridTemplateRows"),ne("grid-rows-(\\d+)","gridTemplateRows",Ud),ae("row-","gridRow"),ne("row-(span)-(\\d+)","gridRow",Nd),ae("row-start-","gridRowStart"),ne("row-start-(auto|\\d+)","gridRowStart"),ae("row-end-","gridRowEnd"),ne("row-end-(auto|\\d+)","gridRowEnd"),ne("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>Pu(Rd(e))),ne("grid-flow-(dense)","gridAutoFlow"),ae("auto-cols-","gridAutoColumns"),ae("auto-rows-","gridAutoRows"),ae("gap-x(?:$|-)","gap","columnGap"),ae("gap-y(?:$|-)","gap","rowGap"),ae("gap(?:$|-)","gap"),"(justify-(?:items|self))-",ne("justify-","justifyContent",Id),ne("(content|items|self)-",e=>({["align-"+e[1]]:Id(e)})),ne("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),ae("p([xytrbl])?(?:$|-)","padding",Er("padding")),ae("-?m([xytrbl])?(?:$|-)","margin",Er("margin")),ae("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),ne("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),ae("w-","width"),ae("min-w-","minWidth"),ae("max-w-","maxWidth"),ae("h-","height"),ae("min-h-","minHeight"),ae("max-h-","maxHeight"),ae("font-","fontWeight"),ae("font-","fontFamily",({_:e})=>typeof(e=He(e))[1]=="string"?{fontFamily:kn(e)}:{fontFamily:kn(e[0]),...e[1]}),ne("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),ne("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),ne("italic","fontStyle"),ne("not-italic",{fontStyle:"normal"}),ne("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...ha({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),ae("tracking-","letterSpacing"),ae("leading-","lineHeight"),ne("list-(inside|outside)","listStylePosition"),ae("list-","listStyleType"),ne("list-","listStyleType"),ae("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),xt("placeholder-",{property:"color",selector:"&::placeholder"}),ne("text-(left|center|right|justify|start|end)","textAlign"),ne("text-(ellipsis|clip)","textOverflow"),ae("text-opacity-","textOpacity","--tw-text-opacity"),xt("text-",{property:"color"}),ae("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),ae("indent-","textIndent"),ne("(overline|underline|line-through)","textDecorationLine"),ne("no-underline",{textDecorationLine:"none"}),ae("underline-offset-","textUnderlineOffset"),xt("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),ae("decoration-","textDecorationThickness"),ne("decoration-","textDecorationStyle"),ne("(uppercase|lowercase|capitalize)","textTransform"),ne("normal-case",{textTransform:"none"}),ne("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),ne("align-","verticalAlign"),ne("whitespace-","whiteSpace"),ne("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),ne("break-words",{overflowWrap:"break-word"}),ne("break-all",{wordBreak:"break-all"}),ne("break-keep",{wordBreak:"keep-all"}),xt("caret-",{opacityVariable:!1,opacitySection:"opacity"}),xt("accent-",{opacityVariable:!1,opacitySection:"opacity"}),ne("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${Ka(e," ")},var(--tw-gradient-stops))`),xt("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),xt("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),xt("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),ne("bg-(fixed|local|scroll)","backgroundAttachment"),ne("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),ne(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),ne("bg-blend-","backgroundBlendMode"),ne("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),ae("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),xt("bg-",{section:"backgroundColor"}),ae("bg-","backgroundImage"),ae("bg-","backgroundPosition"),ne("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",Pu),ae("bg-","backgroundSize"),ae("rounded(?:$|-)","borderRadius"),ae("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${Ka(n[0])}-radius`]:t,[`border-${Ka(n[1])}-radius`]:t}}),ne("border-(collapse|separate)","borderCollapse"),ae("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),ne("border-(solid|dashed|dotted|double|none)","borderStyle"),ae("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...ha({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),xt("border-([xytrbl])-",{section:"borderColor"},Er("border","Color")),xt("border-"),ae("border-([xytrbl])(?:$|-)","borderWidth",Er("border","Width")),ae("border(?:$|-)","borderWidth"),ae("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),ne("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),ne("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),ae("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${Ka(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${Ka(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),xt("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),ae("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),xt("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),ae("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),ne("ring-inset",{"--tw-ring-inset":"inset"}),xt("ring-",{property:"--tw-ring-color"}),ae("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...ha({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":Xn(t("ringOffsetColor","","#fff")),"--tw-ring-color":Xn(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),xt("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),ae("shadow(?:$|-)","boxShadow",({_:e})=>({...ha({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":kn(e),"--tw-shadow-colored":kn(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),ae("(opacity)-"),ne("mix-blend-","mixBlendMode"),...Od(),...Od("backdrop-"),ae("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:kn(e),transitionTimingFunction:e._=="none"?void 0:kn(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:kn(t("transitionDuration",""))})),ae("duration(?:$|-)","transitionDuration","transitionDuration",kn),ae("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",kn),ae("delay(?:$|-)","transitionDelay","transitionDelay",kn),ae("animate(?:$|-)","animation",(e,{theme:t,h:n,e:a})=>{let r=kn(e),o=r.split(" "),u=t("keyframes",o[0]);return u?{["@keyframes "+(o[0]=a(n(o[0])))]:u,animation:o.join(" ")}:{animation:r}}),"(transform)-(none)",ne("transform",d0),ne("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":jd(e=="gpu")})),ae("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...d0()})),ae("-?(rotate)-","rotate",l0),ae("-?(translate-[xy])-","translate",l0),ae("-?(skew-[xy])-","skew",l0),ne("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",Pu),"(appearance)-",ae("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",ae("(cursor)-"),"(cursor)-",ne("snap-(none)","scroll-snap-type"),ne("snap-(x|y|both)",({1:e})=>({...ha({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),ne("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),ne("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),ne("snap-(normal|always)","scroll-snap-stop"),ne("scroll-(auto|smooth)","scroll-behavior"),ae("scroll-p([xytrbl])?(?:$|-)","padding",Er("scroll-padding")),ae("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",Er("scroll-margin")),ne("touch-(auto|none|manipulation)","touch-action"),ne("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...ha({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),ne("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),ne("outline",{outlineStyle:"solid"}),ne("outline-(dashed|dotted|double)","outlineStyle"),ae("-?(outline-offset)-"),xt("outline-",{opacityVariable:!1,opacitySection:"opacity"}),ae("outline-","outlineWidth"),"(pointer-events)-",ae("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],ne("select-(none|text|all|auto)","userSelect"),xt("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),xt("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),ae("stroke-","strokeWidth"),ne("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),ne("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function Pu(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function Rd(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function Ka(e,t="-"){let n=[];for(let a of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[a]);return n.join(t)}function kn(e){return e&&""+(e._||e)}function Id({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function Er(e,t=""){return({1:n,_:a})=>{let r={x:"lr",y:"tb"}[n]||n+n;return r?{...bo(e+"-"+Ka(r[0])+t,a),...bo(e+"-"+Ka(r[1])+t,a)}:bo(e+t,a)}}function Od(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let a of t)n[`--tw-${e}${a}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...ha(n),[`${e}filter`]:t.map(a=>`var(--tw-${e}${a})`).join(" ")},[`(${e}filter)-(none)`,ne(`${e}filter`,n),...t.map(a=>ae(`${a[0]=="h"?"-?":""}(${e}${a})(?:$|-)`,a,({1:r,_:o})=>({[`--tw-${r}`]:He(o).map(u=>`${a}(${u})`).join(" "),...n})))]}function l0({1:e,_:t}){return{["--tw-"+e]:t,...d0()}}function d0(){return{...ha({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":jd()}),transform:"var(--tw-transform)"}}function jd(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function Nd({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function Ud({1:e}){return`repeat(${e},minmax(0,1fr))`}function ha(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}var q2=[["sticky","@supports ((position: -webkit-sticky) or (position:sticky))"],["motion-reduce","@media (prefers-reduced-motion:reduce)"],["motion-safe","@media (prefers-reduced-motion:no-preference)"],["print","@media print"],["(portrait|landscape)",({1:e})=>`@media (orientation:${e})`],["contrast-(more|less)",({1:e})=>`@media (prefers-contrast:${e})`],["(first-(letter|line)|placeholder|backdrop|before|after)",({1:e})=>`&::${e}`],["(marker|selection)",({1:e})=>`& *::${e},&::${e}`],["file","&::file-selector-button"],["(first|last|only)",({1:e})=>`&:${e}-child`],["even","&:nth-child(2n)"],["odd","&:nth-child(odd)"],["open","&[open]"],["(aria|data)-",({1:e,$$:t},n)=>t&&`&[${e}-${n.theme(e,t)||Hn(t,"",n)||`${t}="true"`}]`],["((group|peer)(~[^-[]+)?)(-\\[(.+)]|[-[].+?)(\\/.+)?",({2:e,3:t="",4:n,5:a="",6:r=t},{e:o,h:u,v:i})=>{let s=Tr(a)||(n[0]=="["?n:i(n.slice(1)));return`${(s.includes("&")?s:"&"+s).replace(/&/g,`:merge(.${o(u(e+r))})`)}${e[0]=="p"?"~":" "}&`}],["(ltr|rtl)",({1:e})=>`[dir="${e}"] &`],["supports-",({$$:e},t)=>{if(e&&=t.theme("supports",e)||Hn(e,"",t),e)return e.includes(":")||(e+=":var(--tw)"),/^\w*\s*\(/.test(e)||(e=`(${e})`),`@supports ${e.replace(/\b(and|or|not)\b/g," $1 ").trim()}`}],["max-",({$$:e},t)=>{if(e&&=t.theme("screens",e)||Hn(e,"",t),typeof e=="string")return`@media not all and (min-width:${e})`}],["min-",({$$:e},t)=>(e&&=Hn(e,"",t))&&`@media (min-width:${e})`],[/^\[(.+)]$/,({1:e})=>/[&@]/.test(e)&&Tr(e).replace(/[}]+$/,"").split("{")]];function W2({colors:e,disablePreflight:t}={}){return{preflight:t?void 0:z2,theme:{...c0,colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",...e}},variants:q2,rules:H2,finalize(n){return n.n&&n.d&&n.r.some(a=>/^&::(before|after)$/.test(a))&&!/(^|;)content:/.test(n.d)?{...n,d:"content:var(--tw-content);"+n.d}:n}}}var K2={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},$2={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},G2={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},V2={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},Y2={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},J2={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},Q2={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},Z2={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},X2={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},e1={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},t1={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},n1={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},a1={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},r1={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},o1={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},u1={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},i1={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},s1={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},l1={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},c1={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},d1={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},g1={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},m1={__proto__:null,slate:K2,gray:$2,zinc:G2,neutral:V2,stone:Y2,red:J2,orange:Q2,amber:Z2,yellow:X2,lime:e1,green:t1,emerald:n1,teal:a1,cyan:r1,sky:o1,blue:u1,indigo:i1,violet:s1,purple:l1,fuchsia:c1,pink:d1,rose:g1};function Fu({disablePreflight:e}={}){return W2({colors:m1,disablePreflight:e})}h();h();var _u=globalThis||(typeof window<"u"?window:self),p1=Object.create,m0=Object.defineProperty,f1=Object.getOwnPropertyDescriptor,h1=Object.getOwnPropertyNames,b1=Object.getPrototypeOf,y1=Object.prototype.hasOwnProperty,x1=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),T1=(e,t)=>{for(var n in t)m0(e,n,{get:t[n],enumerable:!0})},g0=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of h1(t))!y1.call(e,r)&&r!==n&&m0(e,r,{get:()=>t[r],enumerable:!(a=f1(t,r))||a.enumerable});return e},E1=(e,t,n)=>(g0(e,t,"default"),n&&g0(n,t,"default")),Hd=(e,t,n)=>(n=e!=null?p1(b1(e)):{},g0(t||!e||!e.__esModule?m0(n,"default",{value:e,enumerable:!0}):n,e)),qd=x1((e,t)=>{(function(n,a){typeof define=="function"&&define.amd?define([],a):typeof e<"u"?a():(a(),n.FileSaver={})})(e,function(){"use strict";function n(c,l){return typeof l>"u"?l={autoBom:!1}:typeof l!="object"&&(l={autoBom:!l}),l.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function a(c,l,m){var p=new XMLHttpRequest;p.open("GET",c),p.responseType="blob",p.onload=function(){s(p.response,l,m)},p.onerror=function(){},p.send()}function r(c){var l=new XMLHttpRequest;l.open("HEAD",c,!1);try{l.send()}catch{}return 200<=l.status&&299>=l.status}function o(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var l=document.createEvent("MouseEvents");l.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(l)}}var u=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof _u=="object"&&_u.global===_u?_u:void 0,i=u.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=u.saveAs||(typeof window!="object"||window!==u?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(c,l,m){var p=u.URL||u.webkitURL,f=document.createElement("a");l=l||c.name||"download",f.download=l,f.rel="noopener",typeof c=="string"?(f.href=c,f.origin===location.origin?o(f):r(f.href)?a(c,l,m):o(f,f.target="_blank")):(f.href=p.createObjectURL(c),setTimeout(function(){p.revokeObjectURL(f.href)},4e4),setTimeout(function(){o(f)},0))}:"msSaveOrOpenBlob"in navigator?function(c,l,m){if(l=l||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(n(c,m),l);else if(r(c))a(c,l,m);else{var p=document.createElement("a");p.href=c,p.target="_blank",setTimeout(function(){o(p)})}}:function(c,l,m,p){if(p=p||open("","_blank"),p&&(p.document.title=p.document.body.innerText="downloading..."),typeof c=="string")return a(c,l,m);var f=c.type==="application/octet-stream",g=/constructor/i.test(u.HTMLElement)||u.safari,y=/CriOS\/[\d]+/.test(navigator.userAgent);if((y||f&&g||i)&&typeof FileReader<"u"){var w=new FileReader;w.onloadend=function(){var D=w.result;D=y?D:D.replace(/^data:[^;]*;/,"data:attachment/file;"),p?p.location.href=D:location=D,p=null},w.readAsDataURL(c)}else{var b=u.URL||u.webkitURL,S=b.createObjectURL(c);p?p.location=S:location.href=S,p=null,setTimeout(function(){b.revokeObjectURL(S)},4e4)}});u.saveAs=s.saveAs=s,typeof t<"u"&&(t.exports=s)})}),Wd={};T1(Wd,{default:()=>To});var C1=Hd(qd());E1(Wd,Hd(qd()));var{default:zd,...v1}=C1,To=zd!==void 0?zd:v1;h();h();h();h();h();h();h();function Cr(){let e,t="pending",n=new Promise((a,r)=>{e={async resolve(o){await o,t="fulfilled",a(o)},reject(o){t="rejected",r(o)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}h();var p0=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function Bu(e,t){let n=Cr(),a=setTimeout(()=>n.reject(new p0),t);return Promise.race([e,n]).finally(()=>clearTimeout(a))}h();h();function qn(e,t={}){let{signal:n,persistent:a}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((r,o)=>{let u=()=>{clearTimeout(s),o(new DOMException("Delay was aborted.","AbortError"))},s=setTimeout(()=>{n?.removeEventListener("abort",u),r()},e);if(n?.addEventListener("abort",u,{once:!0}),a===!1)try{Deno.unrefTimer(s)}catch(c){if(!(c instanceof ReferenceError))throw c}})}h();var Kd=class{#e=0;#t=[];#n=[];#a=Cr();add(t){++this.#e,this.#r(t[Symbol.asyncIterator]())}async#r(t){try{let{value:n,done:a}=await t.next();a?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#a.resolve()}async*iterate(){for(;this.#e>0;){await this.#a;for(let t=0;tJ1,bgBlue:()=>e6,bgBrightBlack:()=>r6,bgBrightBlue:()=>s6,bgBrightCyan:()=>c6,bgBrightGreen:()=>u6,bgBrightMagenta:()=>l6,bgBrightRed:()=>o6,bgBrightWhite:()=>d6,bgBrightYellow:()=>i6,bgCyan:()=>n6,bgGreen:()=>Z1,bgMagenta:()=>t6,bgRed:()=>Q1,bgRgb24:()=>f6,bgRgb8:()=>m6,bgWhite:()=>a6,bgYellow:()=>X1,black:()=>B1,blue:()=>N1,bold:()=>S1,brightBlack:()=>Vd,brightBlue:()=>$1,brightCyan:()=>V1,brightGreen:()=>W1,brightMagenta:()=>G1,brightRed:()=>q1,brightWhite:()=>Y1,brightYellow:()=>K1,cyan:()=>j1,dim:()=>D1,getColorEnabled:()=>A1,gray:()=>H1,green:()=>I1,hidden:()=>F1,inverse:()=>P1,italic:()=>L1,magenta:()=>U1,red:()=>R1,reset:()=>k1,rgb24:()=>p6,rgb8:()=>g6,setColorEnabled:()=>w1,strikethrough:()=>_1,stripColor:()=>b6,underline:()=>M1,white:()=>z1,yellow:()=>O1});h();var{Deno:$d}=globalThis,Gd=typeof $d?.noColor=="boolean"?$d.noColor:!0,f0=!Gd;function w1(e){Gd||(f0=e)}function A1(){return f0}function we(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function Ae(e,t){return f0?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function k1(e){return Ae(e,we([0],0))}function S1(e){return Ae(e,we([1],22))}function D1(e){return Ae(e,we([2],22))}function L1(e){return Ae(e,we([3],23))}function M1(e){return Ae(e,we([4],24))}function P1(e){return Ae(e,we([7],27))}function F1(e){return Ae(e,we([8],28))}function _1(e){return Ae(e,we([9],29))}function B1(e){return Ae(e,we([30],39))}function R1(e){return Ae(e,we([31],39))}function I1(e){return Ae(e,we([32],39))}function O1(e){return Ae(e,we([33],39))}function N1(e){return Ae(e,we([34],39))}function U1(e){return Ae(e,we([35],39))}function j1(e){return Ae(e,we([36],39))}function z1(e){return Ae(e,we([37],39))}function H1(e){return Vd(e)}function Vd(e){return Ae(e,we([90],39))}function q1(e){return Ae(e,we([91],39))}function W1(e){return Ae(e,we([92],39))}function K1(e){return Ae(e,we([93],39))}function $1(e){return Ae(e,we([94],39))}function G1(e){return Ae(e,we([95],39))}function V1(e){return Ae(e,we([96],39))}function Y1(e){return Ae(e,we([97],39))}function J1(e){return Ae(e,we([40],49))}function Q1(e){return Ae(e,we([41],49))}function Z1(e){return Ae(e,we([42],49))}function X1(e){return Ae(e,we([43],49))}function e6(e){return Ae(e,we([44],49))}function t6(e){return Ae(e,we([45],49))}function n6(e){return Ae(e,we([46],49))}function a6(e){return Ae(e,we([47],49))}function r6(e){return Ae(e,we([100],49))}function o6(e){return Ae(e,we([101],49))}function u6(e){return Ae(e,we([102],49))}function i6(e){return Ae(e,we([103],49))}function s6(e){return Ae(e,we([104],49))}function l6(e){return Ae(e,we([105],49))}function c6(e){return Ae(e,we([106],49))}function d6(e){return Ae(e,we([107],49))}function ba(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function g6(e,t){return Ae(e,we([38,5,ba(t)],39))}function m6(e,t){return Ae(e,we([48,5,ba(t)],49))}function p6(e,t){return typeof t=="number"?Ae(e,we([38,2,t>>16&255,t>>8&255,t&255],39)):Ae(e,we([38,2,ba(t.r),ba(t.g),ba(t.b)],39))}function f6(e,t){return typeof t=="number"?Ae(e,we([48,2,t>>16&255,t>>8&255,t&255],49)):Ae(e,we([48,2,ba(t.r),ba(t.g),ba(t.b)],49))}var h6=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function b6(e){return e.replace(h6,"")}h();h();var h0=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},y6={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function b0(e,t){let n={...y6,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let a=n.minTimeout,r;for(let o=0;osetTimeout(i,a)),a*=n.multiplier,a=Math.max(a,n.minTimeout),n.maxTimeout>=0&&(a=Math.min(a,n.maxTimeout)),r=u}throw new h0(r,n.maxAttempts)}h();var ea=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function y0(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",a,r=t.length;for(a=2;a>2],n+=ea[(t[a-2]&3)<<4|t[a-1]>>4],n+=ea[(t[a-1]&15)<<2|t[a]>>6],n+=ea[t[a]&63];return a===r+1&&(n+=ea[t[a-2]>>2],n+=ea[(t[a-2]&3)<<4],n+="=="),a===r&&(n+=ea[t[a-2]>>2],n+=ea[(t[a-2]&3)<<4|t[a-1]>>4],n+=ea[(t[a-1]&15)<<2],n+="="),n}h();h();var RC=Number.isNaN||function(e){return typeof e=="number"&&e!==e};h();h();var Ru=globalThis||(typeof window<"u"?window:self),T6=Object.create,T0=Object.defineProperty,E6=Object.getOwnPropertyDescriptor,C6=Object.getOwnPropertyNames,v6=Object.getPrototypeOf,w6=Object.prototype.hasOwnProperty,A6=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),k6=(e,t)=>{for(var n in t)T0(e,n,{get:t[n],enumerable:!0})},x0=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of C6(t))!w6.call(e,r)&&r!==n&&T0(e,r,{get:()=>t[r],enumerable:!(a=E6(t,r))||a.enumerable});return e},S6=(e,t,n)=>(x0(e,t,"default"),n&&x0(n,t,"default")),Jd=(e,t,n)=>(n=e!=null?T6(v6(e)):{},x0(t||!e||!e.__esModule?T0(n,"default",{value:e,enumerable:!0}):n,e)),Qd=A6((e,t)=>{var n="Expected a function",a=NaN,r="[object Symbol]",o=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,l=typeof Ru=="object"&&Ru&&Ru.Object===Object&&Ru,m=typeof self=="object"&&self&&self.Object===Object&&self,p=l||m||Function("return this")(),f=Object.prototype,g=f.toString,y=Math.max,w=Math.min,b=function(){return p.Date.now()};function S(T,v,C){var R,M,k,P,O,j,B=0,A=!1,L=!1,U=!0;if(typeof T!="function")throw new TypeError(n);v=E(v)||0,N(C)&&(A=!!C.leading,L="maxWait"in C,k=L?y(E(C.maxWait)||0,v):k,U="trailing"in C?!!C.trailing:U);function K(ie){var Y=R,ce=M;return R=M=void 0,B=ie,P=T.apply(ce,Y),P}function H(ie){return B=ie,O=setTimeout(oe,v),A?K(ie):P}function V(ie){var Y=ie-j,ce=ie-B,fe=v-Y;return L?w(fe,k-ce):fe}function q(ie){var Y=ie-j,ce=ie-B;return j===void 0||Y>=v||Y<0||L&&ce>=k}function oe(){var ie=b();if(q(ie))return Q(ie);O=setTimeout(oe,V(ie))}function Q(ie){return O=void 0,U&&R?K(ie):(R=M=void 0,P)}function J(){O!==void 0&&clearTimeout(O),B=0,R=j=M=O=void 0}function ye(){return O===void 0?P:Q(b())}function xe(){var ie=b(),Y=q(ie);if(R=arguments,M=this,j=ie,Y){if(O===void 0)return H(j);if(L)return O=setTimeout(oe,v),K(j)}return O===void 0&&(O=setTimeout(oe,v)),P}return xe.cancel=J,xe.flush=ye,xe}function D(T,v,C){var R=!0,M=!0;if(typeof T!="function")throw new TypeError(n);return N(C)&&(R="leading"in C?!!C.leading:R,M="trailing"in C?!!C.trailing:M),S(T,v,{leading:R,maxWait:v,trailing:M})}function N(T){var v=typeof T;return!!T&&(v=="object"||v=="function")}function _(T){return!!T&&typeof T=="object"}function x(T){return typeof T=="symbol"||_(T)&&g.call(T)==r}function E(T){if(typeof T=="number")return T;if(x(T))return a;if(N(T)){var v=typeof T.valueOf=="function"?T.valueOf():T;T=N(v)?v+"":v}if(typeof T!="string")return T===0?T:+T;T=T.replace(o,"");var C=i.test(T);return C||s.test(T)?c(T.slice(2),C?2:8):u.test(T)?a:+T}t.exports=D}),Zd={};k6(Zd,{default:()=>Ft});var D6=Jd(Qd());S6(Zd,Jd(Qd()));var{default:Yd,...L6}=D6,Ft=Yd!==void 0?Yd:L6;h();h();var M6=Object.create,C0=Object.defineProperty,P6=Object.getOwnPropertyDescriptor,F6=Object.getOwnPropertyNames,_6=Object.getPrototypeOf,B6=Object.prototype.hasOwnProperty,R6=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),I6=(e,t)=>{for(var n in t)C0(e,n,{get:t[n],enumerable:!0})},E0=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of F6(t))!B6.call(e,r)&&r!==n&&C0(e,r,{get:()=>t[r],enumerable:!(a=P6(t,r))||a.enumerable});return e},O6=(e,t,n)=>(E0(e,t,"default"),n&&E0(n,t,"default")),eg=(e,t,n)=>(n=e!=null?M6(_6(e)):{},E0(t||!e||!e.__esModule?C0(n,"default",{value:e,enumerable:!0}):n,e)),tg=R6((e,t)=>{(function(n,a){typeof e=="object"&&typeof t=="object"?t.exports=a():typeof define=="function"&&define.amd?define([],a):typeof e=="object"?e.notie=a():n.notie=a()})(e,function(){return function(n){function a(o){if(r[o])return r[o].exports;var u=r[o]={i:o,l:!1,exports:{}};return n[o].call(u.exports,u,u.exports,a),u.l=!0,u.exports}var r={};return a.m=n,a.c=r,a.i=function(o){return o},a.d=function(o,u,i){a.o(o,u)||Object.defineProperty(o,u,{configurable:!1,enumerable:!0,get:i})},a.n=function(o){var u=o&&o.__esModule?function(){return o.default}:function(){return o};return a.d(u,"a",u),u},a.o=function(o,u){return Object.prototype.hasOwnProperty.call(o,u)},a.p="",a(a.s=1)}([function(n,a){n.exports=function(r){return r.webpackPolyfill||(r.deprecate=function(){},r.paths=[],r.children||(r.children=[]),Object.defineProperty(r,"loaded",{enumerable:!0,get:function(){return r.l}}),Object.defineProperty(r,"id",{enumerable:!0,get:function(){return r.i}}),r.webpackPolyfill=1),r}},function(n,a,r){"use strict";(function(o){var u,i,s,c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l};(function(l,m){c(a)==="object"&&c(o)==="object"?o.exports=m():(i=[],u=m,s=typeof u=="function"?u.apply(a,i):u,s!==void 0&&(o.exports=s))})(void 0,function(){return function(l){function m(f){if(p[f])return p[f].exports;var g=p[f]={i:f,l:!1,exports:{}};return l[f].call(g.exports,g,g.exports,m),g.l=!0,g.exports}var p={};return m.m=l,m.c=p,m.i=function(f){return f},m.d=function(f,g,y){m.o(f,g)||Object.defineProperty(f,g,{configurable:!1,enumerable:!0,get:y})},m.n=function(f){var g=f&&f.__esModule?function(){return f.default}:function(){return f};return m.d(g,"a",g),g},m.o=function(f,g){return Object.prototype.hasOwnProperty.call(f,g)},m.p="",m(m.s=0)}([function(l,m,p){function f(H,V){var q={};for(var oe in H)V.indexOf(oe)>=0||Object.prototype.hasOwnProperty.call(H,oe)&&(q[oe]=H[oe]);return q}Object.defineProperty(m,"__esModule",{value:!0});var g=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(H){return typeof H>"u"?"undefined":c(H)}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H>"u"?"undefined":c(H)},y=Object.assign||function(H){for(var V=1;V'+oe+"",ce.onclick=function(){return M(fe,Y)},ce.listener=function(ge){(v(ge)||C(ge))&&O()},R(ce,Y),J&&J<1&&(J=1),!xe&&J&&N(J).then(function(){return M(fe,Y)})},B=m.force=function(H,V){var q=H.type,oe=q===void 0?5:q,Q=H.text,J=H.buttonText,ye=J===void 0?"OK":J,xe=H.callback,ie=H.position,Y=ie===void 0?b.positions.force||Y.top:ie;_(),O();var ce=document.createElement("div"),fe=x();ce.id=fe;var ge=document.createElement("div");ge.classList.add(b.classes.textbox),ge.classList.add(b.classes.backgroundInfo),ge.innerHTML='
'+Q+"
";var Ee=document.createElement("div");Ee.classList.add(b.classes.button),Ee.classList.add(E[oe]),Ee.innerHTML=ye,Ee.onclick=function(){M(fe,Y),P(),xe?xe():V&&V()},ce.appendChild(ge),ce.appendChild(Ee),ce.listener=function(Le){v(Le)&&Ee.click()},R(ce,Y),k()},A=m.confirm=function(H,V,q){var oe=H.text,Q=H.submitText,J=Q===void 0?"Yes":Q,ye=H.cancelText,xe=ye===void 0?"Cancel":ye,ie=H.submitCallback,Y=H.cancelCallback,ce=H.position,fe=ce===void 0?b.positions.confirm||fe.top:ce;_(),O();var ge=document.createElement("div"),Ee=x();ge.id=Ee;var Le=document.createElement("div");Le.classList.add(b.classes.textbox),Le.classList.add(b.classes.backgroundInfo),Le.innerHTML='
'+oe+"
";var ve=document.createElement("div");ve.classList.add(b.classes.button),ve.classList.add(b.classes.elementHalf),ve.classList.add(b.classes.backgroundSuccess),ve.innerHTML=J,ve.onclick=function(){M(Ee,fe),P(),ie?ie():V&&V()};var ee=document.createElement("div");ee.classList.add(b.classes.button),ee.classList.add(b.classes.elementHalf),ee.classList.add(b.classes.backgroundError),ee.innerHTML=xe,ee.onclick=function(){M(Ee,fe),P(),Y?Y():q&&q()},ge.appendChild(Le),ge.appendChild(ve),ge.appendChild(ee),ge.listener=function(De){v(De)?ve.click():C(De)&&ee.click()},R(ge,fe),k(ge,fe)},L=function(H,V,q){var oe=H.text,Q=H.submitText,J=Q===void 0?"Submit":Q,ye=H.cancelText,xe=ye===void 0?"Cancel":ye,ie=H.submitCallback,Y=H.cancelCallback,ce=H.position,fe=ce===void 0?b.positions.input||fe.top:ce,ge=f(H,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);_(),O();var Ee=document.createElement("div"),Le=x();Ee.id=Le;var ve=document.createElement("div");ve.classList.add(b.classes.textbox),ve.classList.add(b.classes.backgroundInfo),ve.innerHTML='
'+oe+"
";var ee=document.createElement("input");ee.classList.add(b.classes.inputField),ee.setAttribute("autocapitalize",ge.autocapitalize||"none"),ee.setAttribute("autocomplete",ge.autocomplete||"off"),ee.setAttribute("autocorrect",ge.autocorrect||"off"),ee.setAttribute("autofocus",ge.autofocus||"true"),ee.setAttribute("inputmode",ge.inputmode||"verbatim"),ee.setAttribute("max",ge.max||""),ee.setAttribute("maxlength",ge.maxlength||""),ee.setAttribute("min",ge.min||""),ee.setAttribute("minlength",ge.minlength||""),ee.setAttribute("placeholder",ge.placeholder||""),ee.setAttribute("spellcheck",ge.spellcheck||"default"),ee.setAttribute("step",ge.step||"any"),ee.setAttribute("type",ge.type||"text"),ee.value=ge.value||"",ge.allowed&&(ee.oninput=function(){var je=void 0;if(Array.isArray(ge.allowed)){for(var We="",Et=ge.allowed,Vt=0;Vt'+q+"",Y.appendChild(fe),ye.forEach(function(Ee,Le){var ve=Ee.type,ee=ve===void 0?1:ve,De=Ee.text,_e=Ee.handler,je=document.createElement("div");je.classList.add(E[ee]),je.classList.add(b.classes.button),je.classList.add(b.classes.selectChoice);var We=ye[Le+1];We&&!We.type&&(We.type=1),We&&We.type===ee&&je.classList.add(b.classes.selectChoiceRepeated),je.innerHTML=De,je.onclick=function(){M(ce,ie),P(),_e()},Y.appendChild(je)});var ge=document.createElement("div");ge.classList.add(b.classes.backgroundNeutral),ge.classList.add(b.classes.button),ge.innerHTML=Q,ge.onclick=function(){M(ce,ie),P(),J?J():V&&V()},Y.appendChild(ge),Y.listener=function(Ee){C(Ee)&&ge.click()},R(Y,ie),k(Y,ie)},K=m.date=function(H,V,q){var oe=H.value,Q=oe===void 0?new Date:oe,J=H.submitText,ye=J===void 0?"OK":J,xe=H.cancelText,ie=xe===void 0?"Cancel":xe,Y=H.submitCallback,ce=H.cancelCallback,fe=H.position,ge=fe===void 0?b.positions.date||ge.top:fe;_(),O();var Ee="▾",Le=document.createElement("div"),ve=document.createElement("div"),ee=document.createElement("div"),De=function(Ve){Le.innerHTML=b.dateMonths[Ve.getMonth()],ve.innerHTML=Ve.getDate(),ee.innerHTML=Ve.getFullYear()},_e=function(Ve){var W=new Date(Q.getFullYear(),Q.getMonth()+1,0).getDate(),pe=Ve.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(pe)>W&&(pe=W.toString()),Ve.target.textContent=pe,Number(pe)<1&&(pe="1"),Q.setDate(Number(pe))},je=function(Ve){var W=Ve.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);Ve.target.textContent=W,Q.setFullYear(Number(W))},We=function(Ve){De(Q)},Et=function(Ve){var W=new Date(Q.getFullYear(),Q.getMonth()+Ve+1,0).getDate();Q.getDate()>W&&Q.setDate(W),Q.setMonth(Q.getMonth()+Ve),De(Q)},Vt=function(Ve){Q.setDate(Q.getDate()+Ve),De(Q)},qa=function(Ve){var W=Q.getFullYear()+Ve;W<0?Q.setFullYear(0):Q.setFullYear(Q.getFullYear()+Ve),De(Q)},nn=document.createElement("div"),Jn=x();nn.id=Jn;var ga=document.createElement("div");ga.classList.add(b.classes.backgroundInfo);var ze=document.createElement("div");ze.classList.add(b.classes.dateSelectorInner);var an=document.createElement("div");an.classList.add(b.classes.button),an.classList.add(b.classes.elementThird),an.classList.add(b.classes.dateSelectorUp),an.innerHTML=Ee;var bt=document.createElement("div");bt.classList.add(b.classes.button),bt.classList.add(b.classes.elementThird),bt.classList.add(b.classes.dateSelectorUp),bt.innerHTML=Ee;var Ze=document.createElement("div");Ze.classList.add(b.classes.button),Ze.classList.add(b.classes.elementThird),Ze.classList.add(b.classes.dateSelectorUp),Ze.innerHTML=Ee,Le.classList.add(b.classes.element),Le.classList.add(b.classes.elementThird),Le.innerHTML=b.dateMonths[Q.getMonth()],ve.classList.add(b.classes.element),ve.classList.add(b.classes.elementThird),ve.setAttribute("contentEditable",!0),ve.addEventListener("input",_e),ve.addEventListener("blur",We),ve.innerHTML=Q.getDate(),ee.classList.add(b.classes.element),ee.classList.add(b.classes.elementThird),ee.setAttribute("contentEditable",!0),ee.addEventListener("input",je),ee.addEventListener("blur",We),ee.innerHTML=Q.getFullYear();var ln=document.createElement("div");ln.classList.add(b.classes.button),ln.classList.add(b.classes.elementThird),ln.innerHTML=Ee;var Yt=document.createElement("div");Yt.classList.add(b.classes.button),Yt.classList.add(b.classes.elementThird),Yt.innerHTML=Ee;var ma=document.createElement("div");ma.classList.add(b.classes.button),ma.classList.add(b.classes.elementThird),ma.innerHTML=Ee,an.onclick=function(){return Et(1)},bt.onclick=function(){return Vt(1)},Ze.onclick=function(){return qa(1)},ln.onclick=function(){return Et(-1)},Yt.onclick=function(){return Vt(-1)},ma.onclick=function(){return qa(-1)};var At=document.createElement("div");At.classList.add(b.classes.button),At.classList.add(b.classes.elementHalf),At.classList.add(b.classes.backgroundSuccess),At.innerHTML=ye,At.onclick=function(){M(Jn,ge),P(),Y?Y(Q):V&&V(Q)};var An=document.createElement("div");An.classList.add(b.classes.button),An.classList.add(b.classes.elementHalf),An.classList.add(b.classes.backgroundError),An.innerHTML=ie,An.onclick=function(){M(Jn,ge),P(),ce?ce(Q):q&&q(Q)},ze.appendChild(an),ze.appendChild(bt),ze.appendChild(Ze),ze.appendChild(Le),ze.appendChild(ve),ze.appendChild(ee),ze.appendChild(ln),ze.appendChild(Yt),ze.appendChild(ma),ga.appendChild(ze),nn.appendChild(ga),nn.appendChild(At),nn.appendChild(An),nn.listener=function(Ve){v(Ve)?At.click():C(Ve)&&An.click()},R(nn,ge),k(nn,ge)};m.default={alert:j,force:B,confirm:A,input:L,select:U,date:K,setOptions:S,hideAlerts:O}}])})}).call(a,r(0)(n))}])})}),ng={};I6(ng,{default:()=>Iu});var N6=eg(tg());O6(ng,eg(tg()));var{default:Xd,...U6}=N6,Iu=Xd!==void 0?Xd:U6;h();h();var v0=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function w0(e,t,n,a){e.addEventListener?e.addEventListener(t,n,a):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function ig(e,t){for(var n=t.slice(0,t.length-1),a=0;a=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function j6(e,t){for(var n=e.length>=t.length?e:t,a=e.length>=t.length?t:e,r=!0,o=0;o=0&&Je.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Je.splice(0,Je.length),(t===93||t===224)&&(t=91),t in kt){kt[t]=!1;for(var a in Wn)Wn[a]===t&&(Ue[a]=!1)}}function Y6(e){if(typeof e>"u")Object.keys(mt).forEach(function(u){return delete mt[u]});else if(Array.isArray(e))e.forEach(function(u){u.key&&A0(u)});else if(typeof e=="object")e.key&&A0(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a1?ig(Wn,s):[];mt[m]=mt[m].filter(function(f){var g=a?f.method===a:!0;return!(g&&f.scope===n&&j6(f.mods,p))})}})};function rg(e,t,n,a){if(t.element===a){var r;if(t.scope===n||t.scope==="all"){r=t.mods.length>0;for(var o in kt)Object.prototype.hasOwnProperty.call(kt,o)&&(!kt[o]&&t.mods.indexOf(+o)>-1||kt[o]&&t.mods.indexOf(+o)===-1)&&(r=!1);(t.mods.length===0&&!kt[16]&&!kt[18]&&!kt[17]&&!kt[91]||r||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function og(e,t){var n=mt["*"],a=e.keyCode||e.which||e.charCode;if(Ue.filter.call(this,e)){if((a===93||a===224)&&(a=91),Je.indexOf(a)===-1&&a!==229&&Je.push(a),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(g){var y=S0[g];e[g]&&Je.indexOf(y)===-1?Je.push(y):!e[g]&&Je.indexOf(y)>-1?Je.splice(Je.indexOf(y),1):g==="metaKey"&&e[g]&&Je.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Je=Je.slice(Je.indexOf(y))))}),a in kt){kt[a]=!0;for(var r in Wn)Wn[r]===a&&(Ue[r]=!0);if(!n)return}for(var o in kt)Object.prototype.hasOwnProperty.call(kt,o)&&(kt[o]=e[S0[o]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Je.indexOf(17)===-1&&Je.push(17),Je.indexOf(18)===-1&&Je.push(18),kt[17]=!0,kt[18]=!0);var u=vo();if(n)for(var i=0;i-1}function Ue(e,t,n){Je=[];var a=sg(e),r=[],o="all",u=document,i=0,s=!1,c=!0,l="+",m=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(o=t.scope),t.element&&(u=t.element),t.keyup&&(s=t.keyup),t.keydown!==void 0&&(c=t.keydown),t.capture!==void 0&&(m=t.capture),typeof t.splitKey=="string"&&(l=t.splitKey)),typeof t=="string"&&(o=t);i1&&(r=ig(Wn,e)),e=e[e.length-1],e=e==="*"?"*":Nu(e),e in mt||(mt[e]=[]),mt[e].push({keyup:s,keydown:c,scope:o,mods:r,shortcut:a[i],method:n,key:a[i],splitKey:l,element:u});typeof u<"u"&&!J6(u)&&window&&(cg.push(u),w0(u,"keydown",function(p){og(p,u)},m),ag||(ag=!0,w0(window,"focus",function(){Je=[]},m)),w0(u,"keyup",function(p){og(p,u),V6(p)},m))}function Q6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(mt).forEach(function(n){var a=mt[n].filter(function(r){return r.scope===t&&r.shortcut===e});a.forEach(function(r){r&&r.method&&r.method()})})}var k0={getPressedKeyString:W6,setScope:dg,getScope:vo,deleteScope:G6,getPressedKeyCodes:q6,isPressed:$6,filter:K6,trigger:Q6,unbind:Y6,keyMap:Co,modifier:Wn,modifierMap:S0};for(Ou in k0)Object.prototype.hasOwnProperty.call(k0,Ou)&&(Ue[Ou]=k0[Ou]);var Ou;typeof document<"u"&&(ug=window.hotkeys,Ue.noConflict=function(e){return e&&window.hotkeys===Ue&&(window.hotkeys=ug),Ue},window.hotkeys=Ue);var ug;h();h();var Z6={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},mg={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},lt={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},jt={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},ya={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},G=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let a=G.getVersionPrecision(e),r=G.getVersionPrecision(t),o=Math.max(a,r),u=0,i=G.map([e,t],s=>{let c=o-G.getVersionPrecision(s),l=s+new Array(c+1).join(".0");return G.map(l.split("."),m=>new Array(20-m.length).join("0")+m).reverse()});for(n&&(u=o-Math.min(a,r)),o-=1;o>=u;){if(i[0][o]>i[1][o])return 1;if(i[0][o]===i[1][o]){if(o===u)return 0;o-=1}else if(i[0][o]{n[u]=o[u]})}return e}static getBrowserAlias(e){return Z6[e]}static getBrowserTypeByAlias(e){return mg[e]||""}},qe=/version\/(\d+(\.?_?\d+)+)/i,X6=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=G.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=G.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=G.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=G.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=G.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=G.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=G.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=G.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=G.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=G.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=G.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=G.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=G.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=G.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=G.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=G.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=G.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=G.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=G.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=G.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=G.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=G.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=G.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=G.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=G.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=G.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=G.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,a=e.search("\\(")!==-1?n:t;return{name:G.getFirstMatch(a,e),version:G.getSecondMatch(a,e)}}}],e9=X6,t9=[{test:[/Roku\/DVP/],describe(e){let t=G.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:jt.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=G.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:jt.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=G.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=G.getWindowsVersionName(t);return{name:jt.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:jt.iOS},n=G.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=G.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=G.getMacOSVersionName(t),a={name:jt.MacOS,version:t};return n&&(a.versionName=n),a}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=G.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:jt.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=G.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=G.getAndroidVersionName(t),a={name:jt.Android,version:t};return n&&(a.versionName=n),a}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=G.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:jt.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=G.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||G.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||G.getFirstMatch(/\bbb(\d+)/i,e);return{name:jt.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=G.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:jt.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=G.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:jt.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:jt.Linux}}},{test:[/CrOS/],describe(){return{name:jt.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=G.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:jt.PlayStation4,version:t}}}],n9=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=G.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:lt.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:lt.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:lt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:lt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:lt.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:lt.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:lt.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=G.getFirstMatch(/(ipod|iphone)/i,e);return{type:lt.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:lt.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:lt.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:lt.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:lt.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:lt.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:lt.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:lt.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:lt.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:lt.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:lt.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:lt.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:lt.tv}}}],a9=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:ya.Blink};let t=G.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:ya.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:ya.Trident},n=G.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:ya.Presto},n=G.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:ya.Gecko},n=G.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:ya.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:ya.WebKit},n=G.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],r9=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=G.find(e9,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=G.find(t9,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=G.find(n9,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=G.find(a9,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return G.assign({},this.parsedResult)}satisfies(e){let t={},n=0,a={},r=0;if(Object.keys(e).forEach(o=>{let u=e[o];typeof u=="string"?(a[o]=u,r+=1):typeof u=="object"&&(t[o]=u,n+=1)}),n>0){let o=Object.keys(t),u=G.find(o,s=>this.isOS(s));if(u){let s=this.satisfies(t[u]);if(s!==void 0)return s}let i=G.find(o,s=>this.isPlatform(s));if(i){let s=this.satisfies(t[i]);if(s!==void 0)return s}}if(r>0){let o=Object.keys(a),u=G.find(o,i=>this.isBrowser(i,!0));if(u!==void 0)return this.compareVersion(a[u])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),a=e.toLowerCase(),r=G.getBrowserTypeByAlias(a);return t&&r&&(a=r.toLowerCase()),a===n}compareVersion(e){let t=[0],n=e,a=!1,r=this.getBrowserVersion();if(typeof r=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(a=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(a=!0,n=e.substr(1)),t.indexOf(G.compareVersions(r,n,a))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},gg=r9,o9=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new gg(e,t)}static parse(e){return new gg(e).getResult()}static get BROWSER_MAP(){return mg}static get ENGINE_MAP(){return ya}static get OS_MAP(){return jt}static get PLATFORMS_MAP(){return lt}},vr=o9;h();h();var{entries:Eg,setPrototypeOf:pg,isFrozen:u9,getPrototypeOf:i9,getOwnPropertyDescriptor:s9}=Object,{freeze:zt,seal:Dn,create:l9}=Object,{apply:_0,construct:B0}=typeof Reflect<"u"&&Reflect;_0||(_0=function(e,t,n){return e.apply(t,n)});zt||(zt=function(e){return e});Dn||(Dn=function(e){return e});B0||(B0=function(e,t){return new e(...t)});var c9=pn(Array.prototype.forEach),fg=pn(Array.prototype.pop),wo=pn(Array.prototype.push),zu=pn(String.prototype.toLowerCase),D0=pn(String.prototype.toString),d9=pn(String.prototype.match),Sn=pn(String.prototype.replace),g9=pn(String.prototype.indexOf),m9=pn(String.prototype.trim),on=pn(RegExp.prototype.test),Ao=p9(TypeError);function pn(e){return function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r/gm),x9=Dn(/\${[\w\W]*}/gm),T9=Dn(/^data-[\-\w.\u00B7-\uFFFF]/),E9=Dn(/^aria-[\-\w]+$/),Cg=Dn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),C9=Dn(/^(?:\w+script|data):/i),v9=Dn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),vg=Dn(/^html$/i),Tg=Object.freeze({__proto__:null,MUSTACHE_EXPR:b9,ERB_EXPR:y9,TMPLIT_EXPR:x9,DATA_ATTR:T9,ARIA_ATTR:E9,IS_ALLOWED_URI:Cg,IS_SCRIPT_OR_DATA:C9,ATTR_WHITESPACE:v9,DOCTYPE_NAME:vg}),w9=()=>typeof window>"u"?null:window,A9=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,a="data-tt-policy-suffix";t&&t.hasAttribute(a)&&(n=t.getAttribute(a));let r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return null}};function wg(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:w9(),t=I=>wg(I);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,a=n.currentScript,{document:r}=e,{DocumentFragment:o,HTMLTemplateElement:u,Node:i,Element:s,NodeFilter:c,NamedNodeMap:l=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:m,DOMParser:p,trustedTypes:f}=e,g=s.prototype,y=Uu(g,"cloneNode"),w=Uu(g,"nextSibling"),b=Uu(g,"childNodes"),S=Uu(g,"parentNode");if(typeof u=="function"){let I=r.createElement("template");I.content&&I.content.ownerDocument&&(r=I.content.ownerDocument)}let D,N="",{implementation:_,createNodeIterator:x,createDocumentFragment:E,getElementsByTagName:T}=r,{importNode:v}=n,C={};t.isSupported=typeof Eg=="function"&&typeof S=="function"&&_&&_.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:R,ERB_EXPR:M,TMPLIT_EXPR:k,DATA_ATTR:P,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:j,ATTR_WHITESPACE:B}=Tg,{IS_ALLOWED_URI:A}=Tg,L=null,U=Me({},[...hg,...L0,...M0,...P0,...bg]),K=null,H=Me({},[...yg,...F0,...xg,...ju]),V=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),q=null,oe=null,Q=!0,J=!0,ye=!1,xe=!0,ie=!1,Y=!1,ce=!1,fe=!1,ge=!1,Ee=!1,Le=!1,ve=!0,ee=!1,De="user-content-",_e=!0,je=!1,We={},Et=null,Vt=Me({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),qa=null,nn=Me({},["audio","video","img","source","image","track"]),Jn=null,ga=Me({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ze="http://www.w3.org/1998/Math/MathML",an="http://www.w3.org/2000/svg",bt="http://www.w3.org/1999/xhtml",Ze=bt,ln=!1,Yt=null,ma=Me({},[ze,an,bt],D0),At,An=["application/xhtml+xml","text/html"],Ve="text/html",W,pe=null,nt=r.createElement("form"),Be=function(I){return I instanceof RegExp||I instanceof Function},Ie=function(I){if(!(pe&&pe===I)){if((!I||typeof I!="object")&&(I={}),I=wr(I),At=An.indexOf(I.PARSER_MEDIA_TYPE)===-1?At=Ve:At=I.PARSER_MEDIA_TYPE,W=At==="application/xhtml+xml"?D0:zu,L="ALLOWED_TAGS"in I?Me({},I.ALLOWED_TAGS,W):U,K="ALLOWED_ATTR"in I?Me({},I.ALLOWED_ATTR,W):H,Yt="ALLOWED_NAMESPACES"in I?Me({},I.ALLOWED_NAMESPACES,D0):ma,Jn="ADD_URI_SAFE_ATTR"in I?Me(wr(ga),I.ADD_URI_SAFE_ATTR,W):ga,qa="ADD_DATA_URI_TAGS"in I?Me(wr(nn),I.ADD_DATA_URI_TAGS,W):nn,Et="FORBID_CONTENTS"in I?Me({},I.FORBID_CONTENTS,W):Vt,q="FORBID_TAGS"in I?Me({},I.FORBID_TAGS,W):{},oe="FORBID_ATTR"in I?Me({},I.FORBID_ATTR,W):{},We="USE_PROFILES"in I?I.USE_PROFILES:!1,Q=I.ALLOW_ARIA_ATTR!==!1,J=I.ALLOW_DATA_ATTR!==!1,ye=I.ALLOW_UNKNOWN_PROTOCOLS||!1,xe=I.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ie=I.SAFE_FOR_TEMPLATES||!1,Y=I.WHOLE_DOCUMENT||!1,ge=I.RETURN_DOM||!1,Ee=I.RETURN_DOM_FRAGMENT||!1,Le=I.RETURN_TRUSTED_TYPE||!1,fe=I.FORCE_BODY||!1,ve=I.SANITIZE_DOM!==!1,ee=I.SANITIZE_NAMED_PROPS||!1,_e=I.KEEP_CONTENT!==!1,je=I.IN_PLACE||!1,A=I.ALLOWED_URI_REGEXP||Cg,Ze=I.NAMESPACE||bt,V=I.CUSTOM_ELEMENT_HANDLING||{},I.CUSTOM_ELEMENT_HANDLING&&Be(I.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(V.tagNameCheck=I.CUSTOM_ELEMENT_HANDLING.tagNameCheck),I.CUSTOM_ELEMENT_HANDLING&&Be(I.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(V.attributeNameCheck=I.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),I.CUSTOM_ELEMENT_HANDLING&&typeof I.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(V.allowCustomizedBuiltInElements=I.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ie&&(J=!1),Ee&&(ge=!0),We&&(L=Me({},[...bg]),K=[],We.html===!0&&(Me(L,hg),Me(K,yg)),We.svg===!0&&(Me(L,L0),Me(K,F0),Me(K,ju)),We.svgFilters===!0&&(Me(L,M0),Me(K,F0),Me(K,ju)),We.mathMl===!0&&(Me(L,P0),Me(K,xg),Me(K,ju))),I.ADD_TAGS&&(L===U&&(L=wr(L)),Me(L,I.ADD_TAGS,W)),I.ADD_ATTR&&(K===H&&(K=wr(K)),Me(K,I.ADD_ATTR,W)),I.ADD_URI_SAFE_ATTR&&Me(Jn,I.ADD_URI_SAFE_ATTR,W),I.FORBID_CONTENTS&&(Et===Vt&&(Et=wr(Et)),Me(Et,I.FORBID_CONTENTS,W)),_e&&(L["#text"]=!0),Y&&Me(L,["html","head","body"]),L.table&&(Me(L,["tbody"]),delete q.tbody),I.TRUSTED_TYPES_POLICY){if(typeof I.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ao('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof I.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ao('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');D=I.TRUSTED_TYPES_POLICY,N=D.createHTML("")}else D===void 0&&(D=A9(f,a)),D!==null&&typeof N=="string"&&(N=D.createHTML(""));zt&&zt(I),pe=I}},Qn=Me({},["mi","mo","mn","ms","mtext"]),jn=Me({},["foreignobject","desc","title","annotation-xml"]),cn=Me({},["title","style","font","a","script"]),pr=Me({},L0);Me(pr,M0),Me(pr,f9);let Fs=Me({},P0);Me(Fs,h9);let qh=function(I){let le=S(I);(!le||!le.tagName)&&(le={namespaceURI:Ze,tagName:"template"});let te=zu(I.tagName),Oe=zu(le.tagName);return Yt[I.namespaceURI]?I.namespaceURI===an?le.namespaceURI===bt?te==="svg":le.namespaceURI===ze?te==="svg"&&(Oe==="annotation-xml"||Qn[Oe]):!!pr[te]:I.namespaceURI===ze?le.namespaceURI===bt?te==="math":le.namespaceURI===an?te==="math"&&jn[Oe]:!!Fs[te]:I.namespaceURI===bt?le.namespaceURI===an&&!jn[Oe]||le.namespaceURI===ze&&!Qn[Oe]?!1:!Fs[te]&&(cn[te]||!pr[te]):!!(At==="application/xhtml+xml"&&Yt[I.namespaceURI]):!1},fr=function(I){wo(t.removed,{element:I});try{I.parentNode.removeChild(I)}catch{I.remove()}},_s=function(I,le){try{wo(t.removed,{attribute:le.getAttributeNode(I),from:le})}catch{wo(t.removed,{attribute:null,from:le})}if(le.removeAttribute(I),I==="is"&&!K[I])if(ge||Ee)try{fr(le)}catch{}else try{le.setAttribute(I,"")}catch{}},S4=function(I){let le,te;if(fe)I=""+I;else{let Ut=d9(I,/^[\r\n\t ]+/);te=Ut&&Ut[0]}At==="application/xhtml+xml"&&Ze===bt&&(I=''+I+"");let Oe=D?D.createHTML(I):I;if(Ze===bt)try{le=new p().parseFromString(Oe,At)}catch{}if(!le||!le.documentElement){le=_.createDocument(Ze,"template",null);try{le.documentElement.innerHTML=ln?N:Oe}catch{}}let yt=le.body||le.documentElement;return I&&te&&yt.insertBefore(r.createTextNode(te),yt.childNodes[0]||null),Ze===bt?T.call(le,Y?"html":"body")[0]:Y?le.documentElement:yt},D4=function(I){return x.call(I.ownerDocument||I,I,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},Wh=function(I){return I instanceof m&&(typeof I.nodeName!="string"||typeof I.textContent!="string"||typeof I.removeChild!="function"||!(I.attributes instanceof l)||typeof I.removeAttribute!="function"||typeof I.setAttribute!="function"||typeof I.namespaceURI!="string"||typeof I.insertBefore!="function"||typeof I.hasChildNodes!="function")},bu=function(I){return typeof i=="object"?I instanceof i:I&&typeof I=="object"&&typeof I.nodeType=="number"&&typeof I.nodeName=="string"},Zn=function(I,le,te){C[I]&&c9(C[I],Oe=>{Oe.call(t,le,te,pe)})},L4=function(I){let le;if(Zn("beforeSanitizeElements",I,null),Wh(I))return fr(I),!0;let te=W(I.nodeName);if(Zn("uponSanitizeElement",I,{tagName:te,allowedTags:L}),I.hasChildNodes()&&!bu(I.firstElementChild)&&(!bu(I.content)||!bu(I.content.firstElementChild))&&on(/<[/\w]/g,I.innerHTML)&&on(/<[/\w]/g,I.textContent))return fr(I),!0;if(!L[te]||q[te]){if(!q[te]&&P4(te)&&(V.tagNameCheck instanceof RegExp&&on(V.tagNameCheck,te)||V.tagNameCheck instanceof Function&&V.tagNameCheck(te)))return!1;if(_e&&!Et[te]){let Oe=S(I)||I.parentNode,yt=b(I)||I.childNodes;if(yt&&Oe){let Ut=yt.length;for(let Jt=Ut-1;Jt>=0;--Jt)Oe.insertBefore(y(yt[Jt],!0),w(I))}}return fr(I),!0}return I instanceof s&&!qh(I)||(te==="noscript"||te==="noembed")&&on(/<\/no(script|embed)/i,I.innerHTML)?(fr(I),!0):(ie&&I.nodeType===3&&(le=I.textContent,le=Sn(le,R," "),le=Sn(le,M," "),le=Sn(le,k," "),I.textContent!==le&&(wo(t.removed,{element:I.cloneNode()}),I.textContent=le)),Zn("afterSanitizeElements",I,null),!1)},M4=function(I,le,te){if(ve&&(le==="id"||le==="name")&&(te in r||te in nt))return!1;if(!(J&&!oe[le]&&on(P,le))&&!(Q&&on(O,le))){if(!K[le]||oe[le]){if(!(P4(I)&&(V.tagNameCheck instanceof RegExp&&on(V.tagNameCheck,I)||V.tagNameCheck instanceof Function&&V.tagNameCheck(I))&&(V.attributeNameCheck instanceof RegExp&&on(V.attributeNameCheck,le)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(le))||le==="is"&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&on(V.tagNameCheck,te)||V.tagNameCheck instanceof Function&&V.tagNameCheck(te))))return!1}else if(!Jn[le]&&!on(A,Sn(te,B,""))&&!((le==="src"||le==="xlink:href"||le==="href")&&I!=="script"&&g9(te,"data:")===0&&qa[I])&&!(ye&&!on(j,Sn(te,B,"")))&&te)return!1}return!0},P4=function(I){return I.indexOf("-")>0},F4=function(I){let le,te,Oe,yt;Zn("beforeSanitizeAttributes",I,null);let{attributes:Ut}=I;if(!Ut)return;let Jt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:K};for(yt=Ut.length;yt--;){le=Ut[yt];let{name:Ct,namespaceURI:hr}=le;if(te=Ct==="value"?le.value:m9(le.value),Oe=W(Ct),Jt.attrName=Oe,Jt.attrValue=te,Jt.keepAttr=!0,Jt.forceKeepAttr=void 0,Zn("uponSanitizeAttribute",I,Jt),te=Jt.attrValue,Jt.forceKeepAttr||(_s(Ct,I),!Jt.keepAttr))continue;if(!xe&&on(/\/>/i,te)){_s(Ct,I);continue}ie&&(te=Sn(te,R," "),te=Sn(te,M," "),te=Sn(te,k," "));let _4=W(I.nodeName);if(M4(_4,Oe,te)){if(ee&&(Oe==="id"||Oe==="name")&&(_s(Ct,I),te=De+te),D&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!hr)switch(f.getAttributeType(_4,Oe)){case"TrustedHTML":{te=D.createHTML(te);break}case"TrustedScriptURL":{te=D.createScriptURL(te);break}}try{hr?I.setAttributeNS(hr,Ct,te):I.setAttribute(Ct,te),fg(t.removed)}catch{}}}Zn("afterSanitizeAttributes",I,null)},Kh=function I(le){let te,Oe=D4(le);for(Zn("beforeSanitizeShadowDOM",le,null);te=Oe.nextNode();)Zn("uponSanitizeShadowNode",te,null),!L4(te)&&(te.content instanceof o&&I(te.content),F4(te));Zn("afterSanitizeShadowDOM",le,null)};return t.sanitize=function(I){let le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te,Oe,yt,Ut;if(ln=!I,ln&&(I=""),typeof I!="string"&&!bu(I))if(typeof I.toString=="function"){if(I=I.toString(),typeof I!="string")throw Ao("dirty is not a string, aborting")}else throw Ao("toString is not a function");if(!t.isSupported)return I;if(ce||Ie(le),t.removed=[],typeof I=="string"&&(je=!1),je){if(I.nodeName){let hr=W(I.nodeName);if(!L[hr]||q[hr])throw Ao("root node is forbidden and cannot be sanitized in-place")}}else if(I instanceof i)te=S4(""),Oe=te.ownerDocument.importNode(I,!0),Oe.nodeType===1&&Oe.nodeName==="BODY"||Oe.nodeName==="HTML"?te=Oe:te.appendChild(Oe);else{if(!ge&&!ie&&!Y&&I.indexOf("<")===-1)return D&&Le?D.createHTML(I):I;if(te=S4(I),!te)return ge?null:Le?N:""}te&&fe&&fr(te.firstChild);let Jt=D4(je?I:te);for(;yt=Jt.nextNode();)L4(yt)||(yt.content instanceof o&&Kh(yt.content),F4(yt));if(je)return I;if(ge){if(Ee)for(Ut=E.call(te.ownerDocument);te.firstChild;)Ut.appendChild(te.firstChild);else Ut=te;return(K.shadowroot||K.shadowrootmod)&&(Ut=v.call(n,Ut,!0)),Ut}let Ct=Y?te.outerHTML:te.innerHTML;return Y&&L["!doctype"]&&te.ownerDocument&&te.ownerDocument.doctype&&te.ownerDocument.doctype.name&&on(vg,te.ownerDocument.doctype.name)&&(Ct=" +`+Ct),ie&&(Ct=Sn(Ct,R," "),Ct=Sn(Ct,M," "),Ct=Sn(Ct,k," ")),D&&Le?D.createHTML(Ct):Ct},t.setConfig=function(I){Ie(I),ce=!0},t.clearConfig=function(){pe=null,ce=!1},t.isValidAttribute=function(I,le,te){pe||Ie({});let Oe=W(I),yt=W(le);return M4(Oe,yt,te)},t.addHook=function(I,le){typeof le=="function"&&(C[I]=C[I]||[],wo(C[I],le))},t.removeHook=function(I){if(C[I])return fg(C[I])},t.removeHooks=function(I){C[I]&&(C[I]=[])},t.removeAllHooks=function(){C={}},t}var Ne=wg();var R0=Iu.alert;h();h();h();function Ke(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():F}var Ce=Ke();function me(){return Ce.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function Ag(){return Ce.BETA==="1"}function ta(){return Ce.PROD==="1"}function na(){return Ce.PROD_API==="1"}function kg(){return Ce.HAS_CSP_ERROR=="1"}function ot(){if(Ce.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function Hu(){return typeof Deno<"u"}var I8=Ke().PROD==="1",Ar=Ke().PROD!=="1";function qu(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}function ko(){if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let e=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(e&&(e._isUserscript||e._isSafari))}else return!1}var Sg={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",curentPlan:"\u5F53\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52A8\u7EED\u671F",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",sponsorLabel:"$1 \u8D77\u8D5E\u52A9\u5F00\u53D1\u8005",help:"\u5E2E\u52A9",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D\uFF0C\u518D\u70B9\u51FB\u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D\u5373\u53EF\u8BBE\u7F6E",browserShortcutsNoteForChrome:"\u7C7BChrome \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762\uFF0C\u5728`\u7BA1\u7406\u5FEB\u6377\u952E`\u9762\u677F(`chrome://extensions/shortcuts`)\u8BBE\u7F6E\uFF0C\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8DF3\u8F6C\u5230\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E\u683C\u5F0F\u4E3A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1: \u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1 & PDF\u6587\u6863\u7FFB\u8BD1","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7F51\u9875\u53CC\u8BED\u7FFB\u8BD1\u6269\u5C55\uFF0C\u540C\u65F6\u652F\u6301 PDF \u7FFB\u8BD1\uFF0C\u53CC\u8BED Epub \u7535\u5B50\u4E66\u5236\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u817E\u8BAF\u7FFB\u8BD1\u7B49\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\uFF0C\u514D\u8D39\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8BD1\u5E76\u9690\u85CF\u539F\u6587/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.toggleTranslationMask":"\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.donateContext":"\u4E86\u89E3\u8D5E\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5219\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875(\u4EC5\u8BD1\u6587)/\u663E\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7","fingers.0":"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478",mouseHoldKey:"+ {key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoverHoldKey:"\u9F20\u6807\u60AC\u505C\u540C\u65F6\u6309\u4E0B\u5FEB\u6377\u952E\u7FFB\u8BD1\u6BB5\u843D","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u6587\u6863",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",goAdvancedSettings:"\u53BB\u8FDB\u9636\u8BBE\u7F6E\u9875",goAdvancedInterfaceSettings:"\u53BB\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u8BBE\u7F6E\u9875\u9762",advanced:"\u8FDB\u9636\u8BBE\u7F6E",advancedDescription:"\u4E00\u822C\u65E0\u9700\u8BBE\u7F6E\uFF0C\u4FDD\u6301\u9ED8\u8BA4\u5373\u53EF\u3002\u4EC5\u5BF9\u4E8E\u66F4\u4E13\u4E1A\u7684\u7528\u6237\uFF0C\u63D0\u4F9B\u66F4\u4E2A\u6027\u5316\u7684\u8BBE\u7F6E\u9879\u3002",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00","display both the original text and the translation":"\u540C\u65F6\u663E\u793A\u539F\u6587\u548C\u8BD1\u6587","keyboard shortcuts":"\u952E\u76D8\u5FEB\u6377\u952E",modify:"\u4FEE\u6539\u5FEB\u6377\u952E",reset:"\u91CD\u7F6E",close:"\u5173\u95ED",homepage:"\u4E3B\u9875",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",changeToOnlyTranslationMode:"\u5207\u6362\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u5207\u6362\u4E3A\u53CC\u8BED\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",unknownError:"\u672A\u77E5\u9519\u8BEF",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",needActionForOptions:"(\u9700\u8BBE\u7F6E)",translationEngine:"\u5F15\u64CE\u9009\u9879",sourceLanguage:"\u539F\u6587\u8BED\u8A00",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",forThisSite:"\u5F53\u524D\u7F51\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1 {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8BD1 {language}",alwaysTranslateSomeSite:"\u603B\u662F\u7FFB\u8BD1 {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8BD1 {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u6DFB\u52A0",default:"\u9ED8\u8BA4",forThisLanguage:"\u9488\u5BF9\u8BE5\u8BED\u8A00\uFF1A","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91","translate other languages into specific language":"\u5C06\u5176\u4ED6\u8BED\u8A00\u7FFB\u8BD1\u4E3A\u4F60\u8BBE\u7F6E\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1",language:"\u8BED\u8A00","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",Error:"\u9519\u8BEF",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",interface:"\u754C\u9762\u8BBE\u7F6E",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8BD1\u9875\u9762\u6807\u9898","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1",enableUserscriptPagePopup:"\u5728\u9875\u9762\u4E0A\u663E\u793A\u60AC\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528\u5FEB\u6377\u952E/{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8BD1\u6587\u6837\u5F0F",currentUrl:"\u5F53\u524D\u7F51\u5740",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664","languages.auto":"\u81EA\u52A8\u68C0\u6D4B",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",upload:"\u4E0A\u4F20",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",download:"\u4E0B\u8F7D",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",deleteFail:"\u5220\u9664\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",backupToCloudDescription:"\u624B\u52A8\u4E0A\u4F20\u6216\u6062\u590D\u5907\u4EFD\u6587\u4EF6\uFF0C\u6700\u591A\u5141\u8BB83\u4E2A\u4E0D\u540C\u7684\u5907\u4EFD",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",updatedAt:"\u66F4\u65B0\u4E8E {date}",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u9891\u9053",joinTelegramChannel:"\u5173\u6CE8 Telegram \u9891\u9053\u83B7\u53D6\u6700\u65B0\u66F4\u65B0",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",autoSync:"\u81EA\u52A8\u5B9A\u65F6\u540C\u6B65",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863","edit border color":"\u4FEE\u6539\u8FB9\u6846\u989C\u8272",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",enableSubtitle:"\u5F00\u542F\u5B57\u5E55\u7FFB\u8BD1",enableSubtitleDescription:"\u9488\u5BF9 youtube \u7B49\u7F51\u7AD9\u7684\u5B57\u5E55\u533A\u57DF\u5F00\u542F\u7FFB\u8BD1",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",enableSearchEnhancement:"\u542F\u7528\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A",enableSearchEnhancementDescription:"\u5F00\u542F\u540E\uFF0C\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\u793E\u533A\uFF09\u53F3\u8FB9\u680F\u81EA\u52A8\u663E\u793A\u5BF9\u5E94\u82F1\u6587\u5173\u952E\u8BCD\u7684\u201C\u8C37\u6B4C\u65B0\u95FB\u201D\u641C\u7D22\u7ED3\u679C\u3002",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerMinute":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u5206\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u8350\uFF09, \u5C06\u4F1A\u5728\u5355\u72EC\u4F5C\u4E3A\u4E00\u6BB5\u53D1\u9001\u7ED9 OpenAI","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740",enabledExtension:"\u542F\u7528\u6269\u5C55",clickToDisableExtension:"\u70B9\u51FB\u7981\u7528\u6269\u5C55",clickToEnableExtension:"\u70B9\u51FB\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",modifyMouseHoverKey:"\u4FEE\u6539\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u8BBE\u7F6E",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",disableTint:"* \u4F60\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u542F\u7528\u3002",searchEnhancementNotes:"\u6211\u4EEC\u53D1\u73B0\uFF0C\u4E2D\u6587\u5173\u952E\u8BCD\u548C\u82F1\u6587\u5173\u952E\u8BCD\u7684\u65B0\u95FB\u7ED3\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u542F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u529F\u80FD\u540E\uFF0C\u6211\u4EEC\u4F1A\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\u7F51\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52A8\u7528\u82F1\u6587\u4E3A\u4F60\u641C\u7D22\u540C\u6837\u7684\u5173\u952E\u8BCD\u5E76\u5C55\u793A\u5728\u53F3\u4FA7\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8BE5\u529F\u80FD\u7684\u8BDD\uFF0C\u53EF\u4EE5\u9009\u62E9\u7981\u7528\u5B83\u3002",option:"\u8BBE\u7F6E",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",needLoginAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u81EA\u5B9A\u4E49)",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",onetime_7day:"7 \u5929\u4F53\u9A8C\u5305",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradePlan:"\u70B9\u6B64\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL \u548C OpenAI \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8BD1",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u8BBE\u7F6E\u5176\u4ED6\u5FEB\u6377\u952E\u6765\u89E6\u53D1\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1"};var Dg={nologin:"\u672A\u767B\u9304",login:"\u767B\u9304",manageAccount:"\u7BA1\u7406\u8CEC\u6236",logout:"\u9000\u51FA",curentPlan:"\u7576\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u671F",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u64CA\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u8AAA\u660E",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u9644\u52A0\u5143\u4EF6\u7BA1\u7406\u9801\u9762 \u300Cabout:addons\u300D\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u5716\u793A\u300D\uFF0C\u518D\u9EDE\u9078\u300C\u7BA1\u7406\u64F4\u5145\u5957\u4EF6\u5FEB\u901F\u9375\u300D\u5373\u53EF\u8A2D\u5B9A",browserShortcutsNoteForChrome:"Chromium \u6838\u5FC3\u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u64F4\u5145\u529F\u80FD\u7BA1\u7406\u9801\u9762\uFF0C\u5728\u300C\u9375\u76E4\u5FEB\u901F\u9375\u300D\u9801\u9762(chrome://extensions/shortcuts)\u8A2D\u5B9A\uFF0C\u9EDE\u9078\u4E0B\u65B9\u6309\u9215\u524D\u5F80\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u901F\u9375\u683C\u5F0F\u70BA\uFF1A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F: \u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F & PDF\u6587\u6A94\u7FFB\u8B6F","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7DB2\u9801\u96D9\u8A9E\u7FFB\u8B6F\u64F4\u5C55\uFF0C\u540C\u6642\u652F\u6301 PDF \u7FFB\u8B6F\uFF0C\u96D9\u8A9E Epub \u96FB\u5B50\u66F8\u88FD\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u9A30\u8A0A\u7FFB\u8B6F\u7B49\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF0C\u514D\u8CBB\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8B6F\u4E26\u96B1\u85CF\u539F\u6587/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.toggleTranslationMask":"\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.donateContext":"\u4E86\u89E3\u8D0A\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u5247\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u6642\u89F8\u78B0\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801(\u50C5\u8B6F\u6587)/\u986F\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304","fingers.0":"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478",mouseHoldKey:"+ {key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u6377\u9375(\u6253\u958B\u8A2D\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoverHoldKey:"\u9F20\u6A19\u6ED1\u904E\u540C\u6642\u6309\u4E0B X \u9375\u7FFB\u8B6F\u6BB5\u843D","mouse-translate":"\u9F20\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",goAdvancedSettings:"\u524D\u5F80\u9032\u968E\u8A2D\u5B9A\u9801\u9762",goAdvancedInterfaceSettings:"\u524D\u5F80\u81EA\u8A02\u8A2D\u5B9A\u9801\u9762",advanced:"\u9032\u968E\u8A2D\u5B9A",advancedDescription:"\u6B63\u5E38\u60C5\u6CC1\u7121\u9700\u8A2D\u5B9A\uFF0C\u4FDD\u6301\u9810\u8A2D\u5373\u53EF\u3002\u50C5\u91DD\u5C0D\u66F4\u5C08\u696D\u7684\u4F7F\u7528\u8005\uFF0C\u63D0\u4F9B\u66F4\u500B\u4EBA\u5316\u7684\u8A2D\u5B9A\u9805\u76EE\u3002",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00","display both the original text and the translation":"\u540C\u6642\u986F\u793A\u539F\u6587\u548C\u8B6F\u6587","keyboard shortcuts":"\u9375\u76E4\u5FEB\u901F\u9375",modify:"\u8B8A\u66F4\u5FEB\u901F\u9375",reset:"\u91CD\u8A2D",close:"\u95DC\u9589",homepage:"\u9996\u9801",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",changeToOnlyTranslationMode:"\u5207\u63DB\u70BA\u50C5\u986F\u793A\u8B6F\u6587",changeToDualTranslationMode:"\u5207\u63DB\u70BA\u96D9\u8A9E\u7FFB\u8B6F",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:"\u672A\u77E5\u7684\u932F\u8AA4",canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u9078\u9805",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",needActionForOptions:"(\u9700\u8A2D\u5B9A)",translationEngine:"\u5F15\u64CE\u9078\u9805",sourceLanguage:"\u539F\u6587\u8A9E\u8A00",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",forThisSite:"\u7576\u524D\u7DB2\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8B6F {language}",alwaysTranslateSomeSite:"\u7E3D\u662F\u7FFB\u8B6F {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8B6F {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u65B0\u589E",default:"\u9810\u8A2D",forThisLanguage:"\u91DD\u5C0D\u8A72\u8A9E\u8A00\uFF1A","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F","translate other languages into specific language":"\u5C07\u5176\u5B83\u8A9E\u8A00\u7FFB\u8B6F\u70BA\u4F60\u8A2D\u5B9A\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9",language:"\u8A9E\u8A00","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",Error:"\u932F\u8AA4",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",interface:"\u4ECB\u9762\u8A2D\u5B9A",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65",syncToAccount:"\u540C\u6B65\u5230\u8CEC\u6236",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u8CEC\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u8A2D\u5099\u4E4B\u9593\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u8CEC\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u8CEC\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8B6F","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9E\u99AC\u905C\u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8B6F\u9801\u9762\u6A19\u984C","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F",enableUserscriptPagePopup:"\u5728\u9801\u9762\u4E0A\u986F\u793A\u61F8\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528\u5FEB\u901F\u9375/{touch}\u518D\u6B21\u986F\u793A\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5EFA\u8B70\u5C07\u672C\u8A2D\u5B9A\u9801\u9762\u52A0\u5165\u81F3\u6211\u7684\u6700\u611B","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8B6F\u6587\u6A23\u5F0F",currentUrl:"\u76EE\u524D\u7DB2\u5740",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6E96\u3002",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",upload:"\u4E0A\u50B3",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",download:"\u4E0B\u8F09",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",deleteFail:"\u522A\u9664\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",backupToCloudDescription:"\u624B\u52D5\u4E0A\u50B3\u6216\u9084\u539F\u5099\u4EFD\u6A94\u6848\uFF0C\u6700\u591A\u5141\u8A31 3 \u500B\u4E0D\u540C\u7684\u5099\u4EFD",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",updatedAt:"\u66F4\u65B0\u65BC {date}",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u4EEC\u7684<3>Twitter\uFF0C<4>Telegram \u983B\u9053\u4EE5\u53CA\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u90F5\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u983B\u9053",joinTelegramChannel:"\u95DC\u6CE8 Telegram \u983B\u9053\u77AD\u89E3\u66F4\u65B0\u8CC7\u8A0A",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",autoSync:"\u81EA\u52D5\u5B9A\u6642\u540C\u6B65",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6","edit border color":"\u8B8A\u66F4\u908A\u6846\u8272\u5F69",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",enableSubtitle:"\u958B\u555F\u5B57\u5E55\u7FFB\u8B6F",enableSubtitleDescription:"\u91DD\u5C0D youtube \u7B49\u7DB2\u7AD9\u7684\u5B57\u5E55\u5340\u57DF\u958B\u555F\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",enableSearchEnhancement:"\u958B\u555F\u641C\u7D22\u589E\u5F37",enableSearchEnhancementDescription:"\u4E2D\u6587\u641C\u7D22\u8C37\u6B4C\u6703\u5728\u53F3\u908A\u51FA\u73FE\u82F1\u6587\u7248\u8C37\u6B4C\u65B0\u805E",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerMinute":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u5206\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u4EFD\u50B3\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u85A6\uFF09, \u5C07\u6703\u5728\u55AE\u7368\u4F5C\u70BA\u4E00\u6BB5\u767C\u9001\u7D66 OpenAI","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u50B3\u9001\u767C\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",clickToDisableExtension:"\u9EDE\u9078\u505C\u7528\u5957\u4EF6",clickToEnableExtension:"\u9EDE\u9078\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u9F20\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u7F6E\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u5B57\u7B26\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8B58\u5225\u70BA\u89F8\u767C\u5B57\u7B26\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u7981\u7528\u78BA\u8A8D",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",disableTint:"* \u60A8\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u555F\u7528\u3002",searchEnhancementNotes:"\u6211\u5011\u767C\u73FE\uFF0C\u4E2D\u6587\u95DC\u9375\u8A5E\u548C\u82F1\u6587\u95DC\u9375\u8A5E\u7684\u65B0\u805E\u7D50\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u555F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u4FE1\u606F\u589E\u5F37\u529F\u80FD\u5F8C\uFF0C\u6211\u5011\u6703\u5728\u652F\u6301\u7684\u7DB2\u7AD9\uFF08\u8C37\u6B4C\u65B0\u805E\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u95DC\u9375\u8A5E\uFF09\uFF0C\u96EA\u7403\uFF0C\u6771\u65B9\u8CA1\u5BCC\u7DB2\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52D5\u7528\u82F1\u6587\u70BA\u4F60\u641C\u7D22\u540C\u6A23\u7684\u95DC\u9375\u8A5E\u4E26\u5C55\u793A\u5728\u53F3\u5074\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8A72\u529F\u80FD\u7684\u8A71\uFF0C\u53EF\u4EE5\u9078\u64C7\u7981\u7528\u5B83\u3002",option:"\u9078\u9805",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL \u548C OpenAI \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8B6F",currentAccount:"\u7576\u524D\u8CEC\u6236"};var Lg={nologin:"Not logged in",login:"Login",manageAccount:"Manage Account",logout:"Logout",curentPlan:"Current Plan",endAt:"Expires",endAuto:"Auto Renew",lineBreakMaxTextCount:"Maximum number of characters allowed per sentence after line break","translate-pdf":"Click to translate PDF","noSupportTranslate-pdf":"The script is not supported, please use a plugin.","translate-firefox-local-pdf":"Click to upload PDF",enableLineBreak:"Whether to turn on automatic line wrapping for long paragraphs",sponsorLabel:"Sponsoring developers from $1 (monthly or one-time)",help:"Help",browserShortcutsNoteForFirefox:`To modify the shortcut key in Firefox browser, you need to open the extension management page 'about: addons', then click "Settings", and then click "Management shortcut key" to set it`,browserShortcutsNoteForChrome:"To modify the shortcut key in Chrome browser, you need to open the extension management page` chrome://extensions/shortcuts `) Settings, click the button below to jump to the shortcut key management page.",browserShortcutsSucks:"Please enter the shortcut key manually in the format:",enableLineBreakDescription:"After opening, a line break will be inserted at the end of each sentence in a long paragraph for easy reading","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate: Web Page&PDF Translation","browser.brandDescription":"Bilingual web page translation, also supports PDF translation, bilingual Epub eBook translation, free to use.","browser.toggleTranslatePage":"Toggle Translate Page","browser.toggleTranslateTheWholePage":"Toggle Translate the Whole Page","browser.toggleOnlyTransation":"Toggle Translate and Hide Original Text","browser.toggleTranslateToThePageEndImmediately":"Toggle Translate to the Bottom of the Page Immediately","browser.toggleTranslateTheMainPage":"Toggle Translate the Main Page","browser.openOptionsPage":"Open Settings Page","browser.toggleTranslationMask":"Toggle translation mask style","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-book","browser.openEbookBuilder":"Make Dual EPUB ebook","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.donateContext":"Sponsor Benefits","browser.translateLocalSubtitleFile":"Translate Subtitle File",confirmResetConfig:"Are you sure you want to reset the settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Create right button menu",toggleBeta:"Enable Beta experimental features",betaDescription:"Enable features that are still experimental, and translation services that are in testing. Join the <1>Telegram group to learn more.",translationLineBreakSettingDescription:"The always line break feature is suitable for layouts with less content, making the layout more neat and tidy. (Use smart line breaks for long paragraphs with more content (more than {count} characters) for saving space)",tempTranslateDomainTitle:"Open the translation time temporarily",tempTranslateDomainDescription:"When a page is translated manually, turn it temporarily on as automatic translation",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",toggleTranslatePageWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide translation display",toggleTranslationMaskWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide the blur effect of the translation",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"Multi-finger touch to show/hide only translation display",addUrlDescription:"The domain name is available and wildcard is supported e.g.: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import configuration from file",export:"Export to file",toggleDebug:"Print debug logs on the console","fingers.0":"Close","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch",mouseHoldKey:"+ {key} translate this paragraph",mouseHoldKeyAuto:"Translate the paragraph directly",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate this paragraph",mouseHoverHoldKey:"Mouse over and press X key to translate paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"All settings reset successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",goAdvancedSettings:"Go to Advanced Settings Page",goAdvancedInterfaceSettings:"Go to Advanced Custom Settings Page",advanced:"Advanced",advancedDescription:"Normally no settings are needed, keep the default. More personalized settings are provided for professional users only.",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"Translate to the bottom of the page immediately after opening the page?",feedback:"Feedback",toggleTranslatePage:"Toggle Translate",translateToThePageEndImmediatelyDescription:"Enabled will translate from the top to the bottom of the page immediately after opening. Disable will translate while reading. (Not recommended to enable)","translate all areas of the page":"Whether to translate all areas of the web page",translationAreaDescription:"When enabled, all areas of the entire web page will be translated. Disabled will use the default smart recognition and translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Directly translate the number of characters in front of the page without waiting to scroll to the visible area","interface language":"Interface language","display both the original text and the translation":"Display both the original text and the translation","keyboard shortcuts":"Keyboard shortcuts",modify:"Edit",reset:"Reset",close:"Close",homepage:"Home Page",more:"More",moreOptions:"Expand more custom settings",translateTheWholePage:"Translate the whole page area",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Dual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"Main areas of intelligent translation","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly implement the interface of the Greasemonkey extension, please use another browser that <1>supports the Greasemonkey extension such as (Firefox Nightly version)",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:"Unknown Error",canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha enabled successfully",disableAlphaSuccess:"Alpha has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(to set up)",goSettings:"to set up",needActionForOptions:"(need to set)",translationEngine:"Engine Options",sourceLanguage:"Original language",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",forThisSite:"Site:",alwaysTranslateSomeLanguage:"Always translate {language}",neverTranslateSomeLanguage:"Never translate {language}",alwaysTranslateSomeSite:"Always translate {hostname}",neverTranslateSomeSite:"Never translate {hostname}",alwaysTranslateSomeSiteOrWildSite:"Always translate this site",alwaysTranslateSomePage:"Always translate this page",add:"Add",default:"Default",forThisLanguage:"For This Language:","add url":"Add URL",edit:"Edit","translate other languages into specific language":"Translate other languages into the language you set","select translation service":"Select a translation service",language:"Language","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",Error:"Error",allowCacheTranslations:"Enable local translation caching (reduce translation requests for duplicate paragraphs)","translation display":"Translation display style","select diplay style":"Please refer to the following examples",interface:"Interface Settings",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dashed underline","translationTheme.dotted":"Dotted Underline","translationTheme.dashedBorder":"Dashed Border","translationTheme.solidBorder":"Dashed Border","translationTheme.underline":"Straight underline","translationTheme.mask":"Blur effect","translationTheme.opacity":"Opacity effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weakening","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dashed underline","translationTheme.nativeDashed":"System Dash Underline","translationTheme.nativeDotted":"System Dotted Underline","translationTheme.nativeUnderline":"System Straight Line Underline","translationTheme.wavy":"Squiggle","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeeplX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"Translate page title","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped",enableUserscriptPagePopup:"Always show Popup windows on the page",enableUserscriptPagePopupDescription:"Three-finger touch to show the Popup.","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",currentUrl:"Current URL",confirm:"Save",cancel:"Cancel",delete:"Delete","languages.auto":"Detect Language",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",authFail:"Authorization Failed",syncTitle:"Please select a file operation",import_hint:"Import",upload:"Upload",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",download:"Download",importSuccess:"Upload Success",importFail:"Import Failed",deleteFail:"Delete Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",backupToCloudDescription:"Upload or restore backup files manually, up to 3 different backups",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",updatedAt:"Updated at {date}",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. You can choose to subscribe to <6>Pro membership to use the out-of-the-box DeepL and OpenAI translation.

You can also follow out <3>Twitter, <4>Telegram Channel, and <5>Email Subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free and we hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. ",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",qqCommunities:"QQ Channel",joinTelegramChannel:"Subscribe to our Telegram channel to get the latest updates",feedbackAndJoin:"Feedback",autoSync:"Auto-Time Sync",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization","edit border color":"Edit border color",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",enableSubtitle:"enableSubtitleTranslation",enableSubtitleDescription:"Enable translations for subtitle areas on sites like youtube",isTranslateTitleDescription:"When enabled, the page title will be translated",enableSearchEnhancement:"Enable Search Enhancement",enableSearchEnhancementDescription:'After enabling, the right sidebar will automatically display "Google News" search results for corresponding English keywords on supported websites (such as Google News, Google Search (partial keywords), Xueqiu, East Money, Futu, Tiger Community).',verifyService:"Verify service",verified:"Successful","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerMinute":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next minute. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"Requests exceed this limit will be queued until the next seconds.","description.prompt":"Send as a user to OpenAI conversation, where {{text}} indicates the text of the paragraph,{{from}} indicates the language of the paragraph,{{to}} indicates the target language, you can omit {{text}}, if so, it'll be sent as a separated message","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"Send the conversation to OpenAI as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the original language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"Default is\uFF1Ageneral. Only set up if there is an API console open domain translation, support fields see <1>Here ","field.scene":"Scene","description.scene":"Default is\uFF1Ageneral. Only set up if there is an API console open Machine Translation Professional, support fields see<1>Here","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please provide a URL with the specific path.",enabledExtension:"Enable extensions",clickToDisableExtension:"Click to disable extension",clickToEnableExtension:"Click to enable the extension",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter customization content",inputOptions:"Writing",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter for translating part of the input box.",inputStartingTriggerKeyDescription:"When you don't need to translate the entire input box, the delimiter allows you to only translate the portion from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means only translating the portion from {startingKey}ja to the end of the input box.",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting is no prefix required, the partial text translation function of the input box cannot be used temporarily.",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Start the translation by quickly pressing 3 times {trailingKey}.",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time (milliseconds) for the input to end the combo trigger",spaceKey:"",noneKey:"Translate the entire text box without prefixes",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement in the following URL",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",clickToSeeQuickDemo:"Click to expand the 30s tutorial video",inputHelperInfo:`Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001". -Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.`,reloadCurrentPage:"Please refresh the current page before starting translation",noLocalFilePermissionForPDF:"No permission to read local files. Please click the button above and upload the local file.",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate the current page",retryAllParagraphs:"Retry all paragraphs",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Noops, something went wrong",disableConfirm:"Search Enhancement Settings",disableOnce:"Disable Once",disableGlobal:"Disable Forever",disableTint:"* You can re-enable in {option}.",searchEnhancementNotes:"We have discovered notable disparities in news results between Chinese and English keywords. By activating the immersive translation Bilingual Display Enhancement feature, we will automatically search for equivalent English keywords and display them on the right side of supported websites (e.g., Google News, Google Search (partial keywords), xueqiu, East Money, Futu, Tiger). You can disable this feature if you don't need it.",option:"Settings",saveSettings:"Save",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"Enable quick press 3 times {trailingKey}, directly translate the entire input box to {inputTargetLanguage}.",enableInputTranslationWithoutTriggerKeyDescription:"To specify the target language, please add a language code at the beginning, such as: ja Hello world",mouseHoverShortcutPlaceholder:"e.g. Shift",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",needLoginAction:"(Premium or custom)",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",daily:"Daily Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",profile:"Profile",billing:"Billing",onetime_7day:"7-day Trial Pack",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt} and will not auto-renew",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly pro membership",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"Current plan: {plan}, will expire on {endAt}, will not auto-renew after expiration.
<1>Enable consecutive annual plan",upgradePlan:"Click here to upgrade to Pro membership",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",upgradeToPro:"Upgrade to Pro","popup.openPro":"Enjoy unrestricted access to DeepL and OpenAI translations after upgrading to Pro Membership. Click here to upgrade","popup.openProForPro":"You are a Pro member, you can directly use DeepL and OpenAI translations",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You have just triggered the immersive translate of the input box by quickly tapping the space key 3 times. The content of the input box will be translated into the default target language.

If this was a mistake, don't worry. You can choose to disable it this time or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show again",disableInputTranslationTips:"* You can also set other shortcuts in {option}, {learnMore}.",learnMore:"Learn more",continueEnalbeInputTranslation:"Continue to enable input translation"};var D9=[{code:"zh-CN",messages:kg},{code:"zh-TW",messages:Sg},{code:"en",messages:Dg}],Mg="immersiveTranslateDeeplGlobalState",Ku="immersiveTranslateBingGlobalState",Qt={};for(let e of D9)Qt[e.code]=e.messages;var Wa="Immersive Translate",X="immersive-translate";var be="immersiveTranslate",$u="759003177173-mfm15s5nd77vfmo6e7lanof1emnanf0e.apps.googleusercontent.com",Kn=be+"GoogleAccessToken",So=be+"AuthFlow",Gu="immersive-translate-config-latest.json",I0=be+"AuthState",Vu=be+"IframeMessage",K8=be+"WaitForRateLimit",Pg=be+"DocumentMessageAsk",_t=be+"DocumentMessageTellThirdParty",Yu=be+"showError",Fg=be+"DocumentMessageThirdPartyTell",_g=be+"DocumentMessageEventUpload",L9=be+"DocumentMessageHandler",M9=`${be}Container`,Bg=`${be}SpecifiedContainer`,ra="buildinConfig",vr="localConfig",Do="openOptionsPage",O0="openAboutPage",Rg="translateLocalPdfFile";var Lo="openEbookViewer",Mo="openEbookBuilder";var Ju=`${be}PageTranslatedStatus`,$8=`${be}PageUrlChanged`,Ta=`${be}ReceiveCommand`,Ig=be+"LastUseMouseHoverTime",N0=be+"LastUseInputTime",Ln=be+"LastUseManualTranslatePageTime",G8=`${be}PopupReceiveMessage`,P9="immersivetranslate.com",F9="config.immersivetranslate.com",V8=`https://${P9}/`,Ea=`https://${F9}/default_config.json`,Y8=`${be}Mark`,Po="immersiveTranslateEffect",Zt=`${be}Root`,J8=`data-${X}-effect`,$n=`data-${X}-translation-element-mark`,Og=`${be}TranslationElementMark`,Q8=`${be}TranslatedMark`,Z8=`${be}ParagraphId`,Ng=`${be}LoadingId`,U0=`data-${X}-loading-id`,Ug=`${be}ErrorId`,Qu=`data-${X}-error-id`,_9=`${be}AtomicBlockMark`,jg=`${be}ExcludeMark`,X8=`data-${X}-exclude-mark`,B9=`${be}StayOriginalMark`,ev=`${be}PreWhitespaceMark`,Zu=`${be}InlineMark`,zg=`${be}BlockMark`,tv=`${be}Left`,nv=`${be}Right`,av=`${be}Width`,rv=`${be}Height`,ov=`${be}Top`,uv=`${be}FontSize`,Hg="lastRunTime",iv=`${be}GlobalStyleMark`,Ka=["@","#"],Xu=" --- ",qg=` -`,un=`${X}-target-wrapper`,sv=`${X}-pdf-target-container`,Wg=`${X}-target-inner`,lv=`${X}-source-wrapper`,j0=`${X}-target-translation-block-wrapper`,cv=`${X}-root-translation-theme`,wr=`${be}RootTranslationTheme`,Kg=`${X}-target-translation-vertical-block-wrapper`,dv=`${X}-target-translation-pdf-block-wrapper`,$g=`${X}-target-translation-pre-whitespace`,z0=`${X}-target-translation-inline-wrapper`,H0=["none","dashed","underline","dashedBorder","solidBorder","mask","opacity","dotted","dividingLine","highlight","marker","marker2","blockquote","weakening","grey","paper","italic","bold","thinDashed","wavy","nativeDotted","nativeDashed","nativeUnderline"],Fo={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]},sn=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","ru","ar","it","ms","id","vi","af","th","ur","yue","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","nl","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu"],Gg={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Detect Language",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese",zu:"Zulu","":"All Languages"},Vg={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B\u8BED\u8A00",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00"},Yg={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C\u8A9E\u8A00",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00"};var Jg=["toggleTranslatePage","toggleTranslateTheWholePage","toggleOnlyTransation","toggleTranslateToThePageEndImmediately","toggleTranslateTheMainPage","toggleTranslationMask"],Qg=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/"],Zg="Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post.",q0="\u957F\u591C\u5C06\u81F3\uFF0C\u6211\u4ECE\u4ECA\u5F00\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002\u6211\u5C06\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002\u6211\u5C06\u4E0D\u6234\u5B9D\u51A0\uFF0C\u4E0D\u4E89\u8363\u5BA0\u3002\u6211\u5C06\u5C3D\u5FE0\u804C\u5B88\uFF0C\u751F\u6B7B\u4E8E\u65AF\u3002",ei="zh-CN",ti="https://immersivetranslate.com/docs/communities/",Lg=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],Mn={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},deepl:{name:"DeepL",homepage:"https://www.deepl.com/translator",docUrl:"https://immersivetranslate.com/docs/services/deepL/",providers:[{name:"pro",nameKey:"deepLProName",descriptionKey:"deepLProDescription",descriptionKeyForNormal:"deeplProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"deepLCustomName",descriptionKey:"deepLCustomDescription",descriptionLink1:"https://www.deepl.com/translator",descriptionLink2:"https://immersivetranslate.com/docs/services/deepL/"}],allProps:[{name:"authKey",providers:["custom"],label:"Auth Key",required:!0,type:"password"}]},openai:{name:"Open AI",homepage:"https://openai.com/api/",docUrl:"https://immersivetranslate.com/docs/services/openai/",providers:[{name:"pro",nameKey:"openaiProName",descriptionKey:"openaiProDescription",descriptionKeyForNormal:"openaiProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"openaiCustomName",descriptionKey:"openaiCustomDescription",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password"},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"openai-model-select",default:"gpt-3.5-turbo-0613",options:[{providers:["custom","pro"],label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{providers:["custom","pro"],label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{providers:["custom"],label:"gpt-4",value:"gpt-4"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.limitPerSecond",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.openai.com/v1/chat/completions",descriptionKey:"description.apiUrl",optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"text",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.`,reloadCurrentPage:"Please refresh the current page before starting translation",noLocalFilePermissionForPDF:"No permission to read local files. Please click the button above and upload the local file.",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate the current page",retryAllParagraphs:"Retry all paragraphs",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Noops, something went wrong",disableConfirm:"Search Enhancement Settings",disableOnce:"Disable Once",disableGlobal:"Disable Forever",disableTint:"* You can re-enable in {option}.",searchEnhancementNotes:"We have discovered notable disparities in news results between Chinese and English keywords. By activating the immersive translation Bilingual Display Enhancement feature, we will automatically search for equivalent English keywords and display them on the right side of supported websites (e.g., Google News, Google Search (partial keywords), xueqiu, East Money, Futu, Tiger). You can disable this feature if you don't need it.",option:"Settings",saveSettings:"Save",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"Enable quick press 3 times {trailingKey}, directly translate the entire input box to {inputTargetLanguage}.",enableInputTranslationWithoutTriggerKeyDescription:"To specify the target language, please add a language code at the beginning, such as: ja Hello world",mouseHoverShortcutPlaceholder:"e.g. Shift",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",needLoginAction:"(Premium or custom)",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",daily:"Daily Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",profile:"Profile",billing:"Billing",onetime_7day:"7-day Trial Pack",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt} and will not auto-renew",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly pro membership",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"Current plan: {plan}, will expire on {endAt}, will not auto-renew after expiration.
<1>Enable consecutive annual plan",upgradePlan:"Click here to upgrade to Pro membership",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",upgradeToPro:"Upgrade to Pro","popup.openPro":"Enjoy unrestricted access to DeepL and OpenAI translations after upgrading to Pro Membership. Click here to upgrade","popup.openProForPro":"You are a Pro member, you can directly use DeepL and OpenAI translations",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You have just triggered the immersive translate of the input box by quickly tapping the space key 3 times. The content of the input box will be translated into the default target language.

If this was a mistake, don't worry. You can choose to disable it this time or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show again",disableInputTranslationTips:"* You can also set other shortcuts in {option}, {learnMore}.",learnMore:"Learn more",continueEnalbeInputTranslation:"Continue to enable input translation"};var L9=[{code:"zh-CN",messages:Sg},{code:"zh-TW",messages:Dg},{code:"en",messages:Lg}],Pg="immersiveTranslateDeeplGlobalState",Wu="immersiveTranslateBingGlobalState",Qt={};for(let e of L9)Qt[e.code]=e.messages;var $a="Immersive Translate",Z="immersive-translate";var be="immersiveTranslate",Ku="759003177173-mfm15s5nd77vfmo6e7lanof1emnanf0e.apps.googleusercontent.com",xa=be+"GoogleAccessToken",So=be+"AuthFlow",$u="immersive-translate-config-latest.json",I0=be+"AuthState",Gu=be+"IframeMessage",$8=be+"WaitForRateLimit",Fg=be+"DocumentMessageAsk",_t=be+"DocumentMessageTellThirdParty",Vu=be+"showError",_g=be+"DocumentMessageThirdPartyTell",Bg=be+"DocumentMessageEventUpload",M9=be+"DocumentMessageHandler",P9=`${be}Container`,Rg=`${be}SpecifiedContainer`,aa="buildinConfig",kr="localConfig",Do="openOptionsPage",O0="openAboutPage",Ig="translateLocalPdfFile";var Lo="openEbookViewer",Mo="openEbookBuilder";var Yu=`${be}PageTranslatedStatus`,G8=`${be}PageUrlChanged`,Ta=`${be}ReceiveCommand`,Og=be+"LastUseMouseHoverTime",N0=be+"LastUseInputTime",Ln=be+"LastUseManualTranslatePageTime",V8=`${be}PopupReceiveMessage`,F9="immersivetranslate.com",_9="config.immersivetranslate.com",Y8=`https://${F9}/`,Ea=`https://${_9}/default_config.json`,J8=`${be}Mark`,Po="immersiveTranslateEffect",Zt=`${be}Root`,Q8=`data-${Z}-effect`,Kn=`data-${Z}-translation-element-mark`,Ng=`${be}TranslationElementMark`,Z8=`${be}TranslatedMark`,X8=`${be}ParagraphId`,Ug=`${be}LoadingId`,U0=`data-${Z}-loading-id`,jg=`${be}ErrorId`,Ju=`data-${Z}-error-id`,B9=`${be}AtomicBlockMark`,zg=`${be}ExcludeMark`,ev=`data-${Z}-exclude-mark`,R9=`${be}StayOriginalMark`,tv=`${be}PreWhitespaceMark`,Qu=`${be}InlineMark`,Hg=`${be}BlockMark`,nv=`${be}Left`,av=`${be}Right`,rv=`${be}Width`,ov=`${be}Height`,uv=`${be}Top`,iv=`${be}FontSize`,qg="lastRunTime",sv=`${be}GlobalStyleMark`,Ga=["@","#"],Zu=" --- ",Wg=` +`,un=`${Z}-target-wrapper`,lv=`${Z}-pdf-target-container`,Kg=`${Z}-target-inner`,cv=`${Z}-source-wrapper`,j0=`${Z}-target-translation-block-wrapper`,dv=`${Z}-root-translation-theme`,Sr=`${be}RootTranslationTheme`,$g=`${Z}-target-translation-vertical-block-wrapper`,gv=`${Z}-target-translation-pdf-block-wrapper`,Gg=`${Z}-target-translation-pre-whitespace`,z0=`${Z}-target-translation-inline-wrapper`,H0=["none","dashed","underline","dashedBorder","solidBorder","mask","opacity","dotted","dividingLine","highlight","marker","marker2","blockquote","weakening","grey","paper","italic","bold","thinDashed","wavy","nativeDotted","nativeDashed","nativeUnderline"],Fo={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]},sn=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","ru","ar","it","ms","id","vi","af","th","ur","yue","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","nl","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu"],Vg={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Detect Language",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese",zu:"Zulu","":"All Languages"},Yg={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B\u8BED\u8A00",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00"},Jg={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C\u8A9E\u8A00",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00"};var Qg=["toggleTranslatePage","toggleTranslateTheWholePage","toggleOnlyTransation","toggleTranslateToThePageEndImmediately","toggleTranslateTheMainPage","toggleTranslationMask"],Zg=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/"],Xg="Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post.",q0="\u957F\u591C\u5C06\u81F3\uFF0C\u6211\u4ECE\u4ECA\u5F00\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002\u6211\u5C06\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002\u6211\u5C06\u4E0D\u6234\u5B9D\u51A0\uFF0C\u4E0D\u4E89\u8363\u5BA0\u3002\u6211\u5C06\u5C3D\u5FE0\u804C\u5B88\uFF0C\u751F\u6B7B\u4E8E\u65AF\u3002",Xu="zh-CN",ei="https://immersivetranslate.com/docs/communities/",Mg=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],Mn={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},deepl:{name:"DeepL",homepage:"https://www.deepl.com/translator",docUrl:"https://immersivetranslate.com/docs/services/deepL/",providers:[{name:"pro",nameKey:"deepLProName",descriptionKey:"deepLProDescription",descriptionKeyForNormal:"deeplProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"deepLCustomName",descriptionKey:"deepLCustomDescription",descriptionLink1:"https://www.deepl.com/translator",descriptionLink2:"https://immersivetranslate.com/docs/services/deepL/"}],allProps:[{name:"authKey",providers:["custom"],label:"Auth Key",required:!0,type:"password"}]},openai:{name:"Open AI",homepage:"https://openai.com/api/",docUrl:"https://immersivetranslate.com/docs/services/openai/",providers:[{name:"pro",nameKey:"openaiProName",descriptionKey:"openaiProDescription",descriptionKeyForNormal:"openaiProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"openaiCustomName",descriptionKey:"openaiCustomDescription",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password"},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"openai-model-select",default:"gpt-3.5-turbo-0613",options:[{providers:["custom","pro"],label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{providers:["custom","pro"],label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{providers:["custom"],label:"gpt-4",value:"gpt-4"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.limitPerSecond",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.openai.com/v1/chat/completions",descriptionKey:"description.apiUrl",optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"text",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`,optional:!0}]},transmart:{name:"Transmart",homepage:"https://transmart.qq.com/"},chatgpt:{name:"ChatGPT Web(3.5 mobile)",homepage:"https://chat.openai.com",beta:!0},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:"https://immersivetranslate.com/docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text"},{name:"appSecret",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/",docUrl:"https://immersivetranslate.com/docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text"},{name:"secretKey",required:!0,type:"password"}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:"https://immersivetranslate.com/docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text"},{name:"AccessKeySecret",required:!0,type:"password"},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:"https://immersivetranslate.com/docs/services/azure/",allProps:[{name:"region",required:!0,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password"}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:"https://immersivetranslate.com/docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text"},{name:"key",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:"https://immersivetranslate.com/docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text"},{name:"secretAccessKey",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:"https://immersivetranslate.com/docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password"}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:"https://immersivetranslate.com/docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:Ka,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:"https://immersivetranslate.com/docs/services/openL/",allProps:[...Lg,{type:"password",name:"apikey",required:!0}],props:Lg},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",alpha:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:"https://immersivetranslate.com/docs/services/niu",allProps:[{name:"APIKEY",required:!0,type:"password"}]}},ni={type:be+"ChildFrameToRootFrameIdentifier"},Ca=["Alt","Ctrl","Shift","Auto","Off","OtherCustom","Other"],ai=[{key:"/"},{key:"="},{key:";"},{key:","},{key:"."},{key:":"},{key:"space",labelKey:"spaceKey",skipForStarting:!0},{key:"none",labelKey:"noneKey",skipForTrailing:!0}],_o="user_from_plugin",xt="user_info",Bo=na()||aa()?"https://api2.immersivetranslate.com":"https://test-api2.immersivetranslate.com",Xg=na()||aa()?"https://immersivetranslate.com/accounts/login?from=plugin":"https://test.immersivetranslate.com/accounts/login?from=plugin",Ar=na()||aa()?"https://immersivetranslate.com/profile":"https://test.immersivetranslate.com/profile",$a=na()||aa()?"https://immersivetranslate.com/pricing":"https://test.immersivetranslate.com/pricing",em=$a+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",W0=$a+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",tm=$a+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal";var kr=console,K0=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),a=Math.round(n-this.#e),r=mn.green;a>1e4?r=mn.red:a>1e3&&(r=mn.yellow),kr.debug(mn.dim(Wa+" TIMING:"),t,"in",r(a+"ms")),this.#e=n}},Ro=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&kr.log(mn.dim(Wa+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&kr.log(mn.green(Wa+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&kr.warn(mn.yellow(Wa+" WARN:"),...t)}error(...t){this.#e<=3&&kr.error(mn.red(Wa+" ERROR:"),...t)}fatal(...t){this.#e<=4&&kr.error(mn.red(Wa+" FATAL:"),...t)}timing(){return this.level===0?new K0:{reset:()=>{},stop:()=>{}}}},z=new Ro;h();function mt(){try{return globalThis.self!==globalThis.top}catch{return!0}}var ri=!1,R9=me();function nm(e,t){let n=[];for(let a of t){let r=e.querySelectorAll(a);for(let o of r)n.push(o)}return n}function I9(e,t){let n=function(o){return o.nodeType===Node.ELEMENT_NODE||o.nodeType===Node.TEXT_NODE?o.nodeType===Node.ELEMENT_NODE&&am(o,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),r=!0;for(;a.nextNode();){let o=a.currentNode;if(o.nodeType===Node.ELEMENT_NODE){if(va(o,Zu)){if(r===!0)return!0;continue}if(Io(o.nodeName,t.inlineTags))return!0;if(!$0(o,t))return!1}}return!0}function G0(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(Io(e.nodeName,n)||$0(e,t)){if(va(e,zg)||Io(e.nodeName,["BR"]))return!1;if(va(e,Zu))return!0;if($0(e,t)){let a=globalThis.getComputedStyle(e);if(a.display==="block"||a.display==="flex")return!1}return I9(e,t)}else return va(e,Zu);return!1}function am(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&va(e,jg,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&va(e,Bg))return!1;let{stayOriginalTags:a,excludeTags:r}=t,o=[];return n&&r&&r.length>0?o=r||[]:o=r.filter(u=>!a.includes(u)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||Io(e.nodeName,o))}function oi(e,t,n){let a=e.trim();return a.length>=t||a.split(" ").filter(u=>u.trim()!=="").length>=n||!om(a)&&a.length>=n}function rm(e,t,n){let a=e.trim();if(a.length<=t)return!0;if(om(a)){if(a.split(" ").length<=n)return!0}else if(a.length<=n)return!0;return!1}function om(e){for(let t=0;t127)return!1;return!0}function um(e){if(e&&e.includes("://"))try{return new URL(e),!0}catch{return!1}else return!1}function im(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function sm(e){return e?/^[-+]?[0-9]*\.?[0-9]+%?$/.test(e):!1}function lm(e){return!!(e&&e.startsWith("#")&&e.indexOf(" ")===-1)}function cm(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function va(e,t,n=!1){return V0(e,t,"1",n)}function V0(e,t,n,a=!1){return ri&&!a?e[Zt]?!!(e[Zt]&&e[Zt][t]===n):!1:e.dataset[t]===n}function Sr(e){return(e.innerText||e.textContent||"").trim()}function Y0(e){let t=e.querySelectorAll("iframe"),n="";for(let a=0;a2e3))break}return n}function ui(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function pt(e,t,n,a=!1,r=!1){e.isContentEditable&&!r||(ri&&!a?(e.dataset[Po]||(e.dataset[Po]="1"),e[Zt]||(e[Zt]={}),e[Zt][t]||(e[Zt][t]=n)):(e.dataset[Po]||(e.dataset[Po]="1"),e.dataset[t]!==n&&(e.dataset[t]=n)))}function ii(e,t,n=!1){if(ri&&!n){if(!e[Zt]||!e[Zt][t])return;delete e[Zt][t]}else delete e.dataset[t]}function Dr(e,t,n=!1){return ri&&!n?!e[Zt]||!e[Zt][t]?void 0:e[Zt][t]:e.dataset[t]}function $0(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!Io(e.nodeName,n)}function Lr(e){let{config:t}=e,n=Ka;return t.translationServices[e.translationService]&&t.translationServices[e.translationService].placeholderDelimiters&&(n=t.translationServices[e.translationService].placeholderDelimiters),n}function St(){if(!globalThis||!globalThis.location)return"https://example.com";if(!mt())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let a="";try{a=globalThis.parent.location.href}catch{}return a||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function Ga(e,t,n){if(e instanceof ShadowRoot){try{e.appendChild(document.createElement("style")).textContent=t}catch(a){z.warn("injectCSS failed, rootDocument"+a?.message,e)}return}if(e&&e.head&&e.head.appendChild){let a=e.createElement("style");if(n){let r=e.querySelector(`style[data-id="${n}"]`);r&&r.remove(),a.dataset.id=n}a.textContent=t,e.head.appendChild(a)}else if(e){let a=document.createElement("head"),r=document.createElement("style");r.textContent=t,a.appendChild(r),e.appendChild(a)}else z.warn("injectCSS failed, rootDocument does not have head node",e)}function Mr(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(R9){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!document.querySelector("meta[name='immersive-translate-ebook-viewer']")||!t.startsWith("blob:http");return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function Io(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function dm(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),a=parseInt(t.substring(2,4),16),r=parseInt(t.substring(4,6),16);return{r:n,g:a,b:r}}function gm(e,t,n,a){if(a.document.caretPositionFromPoint){let r=a.document.caretPositionFromPoint(e,t);if(r){let o=a.document.createRange(),u=r.offsetNode;if(!u||u.nodeType!==Node.TEXT_NODE||am(u,n,!0))return null;try{o.setStart(u,r.offset),o.setEnd(u,r.offset)}catch(i){return z.warn("getRangeFromPoint error",i),null}return o}return null}else return a.document.caretRangeFromPoint?a.document.caretRangeFromPoint(e,t):null}function mm(e,t,n){let a=0,r=(o,u,i,s)=>{if(++a>100||s===o)return o;let c=o.shadowRoot;if(!c||typeof c.elementFromPoint!="function")return o;let l=c.elementFromPoint(u,i);return l?r(l,u,i,o):o};return r(e,t,n)}h();function Pr(e,t,n,a){let r=t,o=Fo[r]||[],u="";e&&o&&o.length>0&&o.forEach(c=>{let{name:l}=c;if(e&&n&&n[l]){let f=n[l];if(["borderRadius"].includes(l)&&(f+="px"),u+=`--immersive-translate-theme-${r}-${l}: ${f}; -`,t==="marker"&&l==="backgroundColor"&&typeof f=="string"){let{r:p,g:m,b:g}=dm(f);u+=`--immersive-translate-theme-${r}-${l}-rgb: ${p}, ${m}, ${g}; +{{text}}`,optional:!0}]},transmart:{name:"Transmart",homepage:"https://transmart.qq.com/"},chatgpt:{name:"ChatGPT Web(3.5 mobile)",homepage:"https://chat.openai.com",beta:!0},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:"https://immersivetranslate.com/docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text"},{name:"appSecret",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/",docUrl:"https://immersivetranslate.com/docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text"},{name:"secretKey",required:!0,type:"password"}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:"https://immersivetranslate.com/docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text"},{name:"AccessKeySecret",required:!0,type:"password"},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:"https://immersivetranslate.com/docs/services/azure/",allProps:[{name:"region",required:!0,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password"}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:"https://immersivetranslate.com/docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text"},{name:"key",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:"https://immersivetranslate.com/docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text"},{name:"secretAccessKey",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:"https://immersivetranslate.com/docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password"}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:"https://immersivetranslate.com/docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:Ga,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:"https://immersivetranslate.com/docs/services/openL/",allProps:[...Mg,{type:"password",name:"apikey",required:!0}],props:Mg},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",alpha:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:"https://immersivetranslate.com/docs/services/niu",allProps:[{name:"APIKEY",required:!0,type:"password"}]}},ti={type:be+"ChildFrameToRootFrameIdentifier"},Ca=["Alt","Ctrl","Shift","Auto","Off","OtherCustom","Other"],ni=[{key:"/"},{key:"="},{key:";"},{key:","},{key:"."},{key:":"},{key:"space",labelKey:"spaceKey",skipForStarting:!0},{key:"none",labelKey:"noneKey",skipForTrailing:!0}],_o="user_from_plugin",ct="user_info",Bo=ta()||na()?"https://api2.immersivetranslate.com":"https://test-api2.immersivetranslate.com",em=ta()||na()?"https://immersivetranslate.com/accounts/login?from=plugin":"https://test.immersivetranslate.com/accounts/login?from=plugin",Dr=ta()||na()?"https://immersivetranslate.com/profile":"https://test.immersivetranslate.com/profile",Va=ta()||na()?"https://immersivetranslate.com/pricing":"https://test.immersivetranslate.com/pricing",tm=Va+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",W0=Va+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",nm=Va+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal";var Lr=console,K0=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),a=Math.round(n-this.#e),r=mn.green;a>1e4?r=mn.red:a>1e3&&(r=mn.yellow),Lr.debug(mn.dim($a+" TIMING:"),t,"in",r(a+"ms")),this.#e=n}},Ro=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&Lr.log(mn.dim($a+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&Lr.log(mn.green($a+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&Lr.warn(mn.yellow($a+" WARN:"),...t)}error(...t){this.#e<=3&&Lr.error(mn.red($a+" ERROR:"),...t)}fatal(...t){this.#e<=4&&Lr.error(mn.red($a+" FATAL:"),...t)}timing(){return this.level===0?new K0:{reset:()=>{},stop:()=>{}}}},z=new Ro;h();function pt(){try{return globalThis.self!==globalThis.top}catch{return!0}}var ai=!1,I9=me();function am(e,t){let n=[];for(let a of t){let r=e.querySelectorAll(a);for(let o of r)n.push(o)}return n}function O9(e,t){let n=function(o){return o.nodeType===Node.ELEMENT_NODE||o.nodeType===Node.TEXT_NODE?o.nodeType===Node.ELEMENT_NODE&&rm(o,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),r=!0;for(;a.nextNode();){let o=a.currentNode;if(o.nodeType===Node.ELEMENT_NODE){if(va(o,Qu)){if(r===!0)return!0;continue}if(Io(o.nodeName,t.inlineTags))return!0;if(!$0(o,t))return!1}}return!0}function G0(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(Io(e.nodeName,n)||$0(e,t)){if(va(e,Hg)||Io(e.nodeName,["BR"]))return!1;if(va(e,Qu))return!0;if($0(e,t)){let a=globalThis.getComputedStyle(e);if(a.display==="block"||a.display==="flex")return!1}return O9(e,t)}else return va(e,Qu);return!1}function rm(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&va(e,zg,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&va(e,Rg))return!1;let{stayOriginalTags:a,excludeTags:r}=t,o=[];return n&&r&&r.length>0?o=r||[]:o=r.filter(u=>!a.includes(u)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||Io(e.nodeName,o))}function ri(e,t,n){let a=e.trim();return a.length>=t||a.split(" ").filter(u=>u.trim()!=="").length>=n||!um(a)&&a.length>=n}function om(e,t,n){let a=e.trim();if(a.length<=t)return!0;if(um(a)){if(a.split(" ").length<=n)return!0}else if(a.length<=n)return!0;return!1}function um(e){for(let t=0;t127)return!1;return!0}function im(e){if(e&&e.includes("://"))try{return new URL(e),!0}catch{return!1}else return!1}function sm(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function lm(e){return e?/^[-+]?[0-9]*\.?[0-9]+%?$/.test(e):!1}function cm(e){return!!(e&&e.startsWith("#")&&e.indexOf(" ")===-1)}function dm(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function va(e,t,n=!1){return V0(e,t,"1",n)}function V0(e,t,n,a=!1){return ai&&!a?e[Zt]?!!(e[Zt]&&e[Zt][t]===n):!1:e.dataset[t]===n}function Mr(e){return(e.innerText||e.textContent||"").trim()}function Y0(e){let t=e.querySelectorAll("iframe"),n="";for(let a=0;a2e3))break}return n}function oi(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function ft(e,t,n,a=!1,r=!1){e.isContentEditable&&!r||(ai&&!a?(e.dataset[Po]||(e.dataset[Po]="1"),e[Zt]||(e[Zt]={}),e[Zt][t]||(e[Zt][t]=n)):(e.dataset[Po]||(e.dataset[Po]="1"),e.dataset[t]!==n&&(e.dataset[t]=n)))}function ui(e,t,n=!1){if(ai&&!n){if(!e[Zt]||!e[Zt][t])return;delete e[Zt][t]}else delete e.dataset[t]}function Pr(e,t,n=!1){return ai&&!n?!e[Zt]||!e[Zt][t]?void 0:e[Zt][t]:e.dataset[t]}function $0(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!Io(e.nodeName,n)}function Fr(e){let{config:t}=e,n=Ga;return t.translationServices[e.translationService]&&t.translationServices[e.translationService].placeholderDelimiters&&(n=t.translationServices[e.translationService].placeholderDelimiters),n}function St(){if(!globalThis||!globalThis.location)return"https://example.com";if(!pt())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let a="";try{a=globalThis.parent.location.href}catch{}return a||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function Ya(e,t,n){if(e instanceof ShadowRoot){try{e.appendChild(document.createElement("style")).textContent=t}catch(a){z.warn("injectCSS failed, rootDocument"+a?.message,e)}return}if(e&&e.head&&e.head.appendChild){let a=e.createElement("style");if(n){let r=e.querySelector(`style[data-id="${n}"]`);r&&r.remove(),a.dataset.id=n}a.textContent=t,e.head.appendChild(a)}else if(e){let a=document.createElement("head"),r=document.createElement("style");r.textContent=t,a.appendChild(r),e.appendChild(a)}else z.warn("injectCSS failed, rootDocument does not have head node",e)}function _r(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(I9){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!document.querySelector("meta[name='immersive-translate-ebook-viewer']")||!t.startsWith("blob:http");return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function Io(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function gm(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),a=parseInt(t.substring(2,4),16),r=parseInt(t.substring(4,6),16);return{r:n,g:a,b:r}}function mm(e,t,n,a){if(a.document.caretPositionFromPoint){let r=a.document.caretPositionFromPoint(e,t);if(r){let o=a.document.createRange(),u=r.offsetNode;if(!u||u.nodeType!==Node.TEXT_NODE||rm(u,n,!0))return null;try{o.setStart(u,r.offset),o.setEnd(u,r.offset)}catch(i){return z.warn("getRangeFromPoint error",i),null}return o}return null}else return a.document.caretRangeFromPoint?a.document.caretRangeFromPoint(e,t):null}function pm(e,t,n){let a=0,r=(o,u,i,s)=>{if(++a>100||s===o)return o;let c=o.shadowRoot;if(!c||typeof c.elementFromPoint!="function")return o;let l=c.elementFromPoint(u,i);return l?r(l,u,i,o):o};return r(e,t,n)}h();function Br(e,t,n,a){let r=t,o=Fo[r]||[],u="";e&&o&&o.length>0&&o.forEach(c=>{let{name:l}=c;if(e&&n&&n[l]){let m=n[l];if(["borderRadius"].includes(l)&&(m+="px"),u+=`--immersive-translate-theme-${r}-${l}: ${m}; +`,t==="marker"&&l==="backgroundColor"&&typeof m=="string"){let{r:p,g:f,b:g}=gm(m);u+=`--immersive-translate-theme-${r}-${l}-rgb: ${p}, ${f}, ${g}; `}}});let i="";if(n&&n.textColor){let c=n.textColor;i+=` .immersive-translate-target-translation-theme-${r}-inner{color: ${c};} `}if(n&&n.zoom){let c=n.zoom;i+=` .immersive-translate-target-translation-theme-${r}-inner{font-size: max(13px, ${c}%);} `}let s="";u&&(s=`:root { ${u}} -`),i&&(s+=i),s?Ga(e,s,"immersive-translate-user-custom-style"):a&&Ga(e,"","immersive-translate-user-custom-style")}function wa(e,t){let a=Ke().IMMERSIVE_TRANSLATE_INJECTED_CSS;Ga(e,a,"immersive-translate-default-injected-css");let r=t.config.translationThemePatterns||{},o=t.state.translationTheme,u=r[o]||{};Pr(e,o,u);let i="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?i+=t.rule.injectedCss.join(` +`),i&&(s+=i),s?Ya(e,s,"immersive-translate-user-custom-style"):a&&Ya(e,"","immersive-translate-user-custom-style")}function wa(e,t){let a=Ke().IMMERSIVE_TRANSLATE_INJECTED_CSS;Ya(e,a,"immersive-translate-default-injected-css");let r=t.config.translationThemePatterns||{},o=t.state.translationTheme,u=r[o]||{};Br(e,o,u);let i="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?i+=t.rule.injectedCss.join(` `):t.rule.injectedCss&&(i+=t.rule.injectedCss),t.rule.additionalInjectedCss&&Array.isArray(t.rule.additionalInjectedCss)&&t.rule.additionalInjectedCss.length>0?i+=` `+t.rule.additionalInjectedCss.join(` `):t.rule.additionalInjectedCss&&(i+=` -`+t.rule.additionalInjectedCss)),i&&Ga(e,i,"immersive-translate-dynamic-injected-css")}h();h();h();var O9=0;function d(e,t,n,a,r){var o,u,i={};for(u in t)u=="ref"?o=t[u]:i[u]=t[u];var s={type:e,props:i,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--O9,__source:r,__self:a};if(typeof e=="function"&&(o=e.defaultProps))for(u in o)i[u]===void 0&&(i[u]=o[u]);return Se.vnode&&Se.vnode(s),s}function J0({value:e,defaultCase:t=null,cases:n}){return e==null?null:d(Fe,{children:n[e]!=null?n[e]:t})}h();function Q0(){let[e,t]=$(location.hash);return he(()=>{let n=()=>t(location.hash);return globalThis.addEventListener("hashchange",n,!1),()=>{globalThis.removeEventListener("hashchange",n)}},[]),e}h();h();function ut(e){R0({type:"success",text:e})}function Bt(e){R0({type:"error",text:e})}h();function Xt(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function pm(e){if(e){let t="unknown";if(e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?t="stripe":t="admin"),t==="stripe")return!0}return!1}function fm(e){if(e){let t=new Date(e.createTime),n=N9(t),a="free",r="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(a=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?r="stripe":r="admin"),{user_type:a,user_register_day:n,subscription_from:r}}else return null}function N9(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[a,r,o]=n.split("/");return n=`${o}-${a}-${r}`,n}catch{return"unknown"}}h();h();h();h();h();function hm(e,t){return[e,!e||e.endsWith("/")?"":"/",t,".json"].join("")}function Z0(e,t){let n=e;return t&&Object.keys(t).forEach(a=>{let r=t[a];if(r===void 0)return;let o=U9(a);if(typeof r=="object"||o){let u=r;o&&typeof u=="string"&&(u={tag:"a",href:u});let i=`<${a}>`,s=n.indexOf(i);if(s!==-1){let c=u.tag||"a",l=n.indexOf(``);if(l!==-1){let f=n.substring(s+i.length,l),p=Object.keys(u).filter(m=>m!=="tag").map(m=>`${m}="${u[m]}"`).join(" ");n=n.replace(`${i}${f}`,`<${c} ${p}>${f}`)}}}else if(r){let u=new RegExp("{"+a+"}","gm");n=n.replace(u,r.toString())}}),n}function No(e,t,n){let a=e[t];if(!a)return n;let r=n.split("."),o="";do{o+=r.shift();let u=a[o];u!==void 0&&(typeof u=="object"||!r.length)?(a=u,o=""):r.length?o+=".":a=n}while(r.length);return a}function oa(e,t,n,a,r){if(!e.hasOwnProperty(n))return t;let o=No(e,n,t);return o===t&&n!==a&&(o=No(e,a,t)),Z0(o,r)}function U9(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}var Fr={},j9={root:"",lang:"en",fallbackLang:"en"};function X0(e,t){let n=Object.assign({},j9,e);Fr=t||Fr;let[a,r]=$(n.lang),[o,u]=$(Fr),[i,s]=$(!1),c=f=>{if(o.hasOwnProperty(f))return;s(!1);let p=hm(n.root||"",f);n.getUrl&&(p=n.getUrl(n.root||"",f),fetch(p).then(m=>m.json()).then(m=>{Fr[f]=m,u({...Fr}),s(!0)}).catch(m=>{u({...Fr}),s(!0)}))};return he(()=>{c(n.fallbackLang||"en"),c(a)},[a]),{lang:a,setLang:r,t:(f,p)=>{if(!o.hasOwnProperty(a))return f;let m=No(o,a,f);return m===f&&a!==n.fallbackLang&&(m=No(o,n.fallbackLang,f)),Z0(m,p)},isReady:i}}var tl=fr(null),el={root:"assets",lang:"en",fallbackLang:"en"},si=e=>{let{t,setLang:n,lang:a,isReady:r}=X0({root:e.root||el.root,lang:e.lang||el.lang,fallbackLang:e.fallbackLang||el.fallbackLang,getUrl:e.getUrl},e.translations);return d(tl.Provider,{value:{t,setLang:n,lang:a,isReady:r},children:e.children})};function ue(){return Ye(tl)}function nl(e){let{t}=ue(),{isProUser:n,currentProvider:a,provider:r,onChange:o}=e,u=t(r.descriptionKey,{1:r.descriptionLink1,2:r.descriptionLink2});return!n&&r.descriptionKeyForNormal&&(u=t(r.descriptionKeyForNormal,{1:r.descriptionLink1,2:r.descriptionLink2})),d("label",{class:"pro-radio-label",for:r.name,children:[d("div",{class:"pro-input-radio",children:d("input",{type:"radio",id:r.name,name:r.name,value:r.name,onClick:o,checked:r.name===a})}),d("div",{class:"pl-4",children:[d("div",{class:"pro-radio-title",children:t(r.nameKey)}),d("small",{class:"pro-radio-desc muted",dangerouslySetInnerHTML:{__html:u}})]})]})}h();h();h();h();h();h();h();var al=/iPhone/i,bm=/iPod/i,ym=/iPad/i,xm=/\biOS-universal(?:.+)Mac\b/i,rl=/\bAndroid(?:.+)Mobile\b/i,Tm=/Android/i,_r=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,li=/Silk/i,ua=/Windows Phone/i,Em=/\bWindows(?:.+)ARM\b/i,Cm=/BlackBerry/i,vm=/BB10/i,wm=/Opera Mini/i,Am=/\b(CriOS|Chrome)(?:.+)Mobile/i,km=/Mobile(?:.+)Firefox\b/i,Sm=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function z9(e){return t=>t.test(e)}function fn(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,a=n.split("[FBAN");typeof a[1]<"u"&&(n=a[0]),a=n.split("Twitter"),typeof a[1]<"u"&&(n=a[0]);let r=z9(n),o={apple:{phone:r(al)&&!r(ua),ipod:r(bm),tablet:!r(al)&&(r(ym)||Sm(t))&&!r(ua),universal:r(xm),device:(r(al)||r(bm)||r(ym)||r(xm)||Sm(t))&&!r(ua)},amazon:{phone:r(_r),tablet:!r(_r)&&r(li),device:r(_r)||r(li)},android:{phone:!r(ua)&&r(_r)||!r(ua)&&r(rl),tablet:!r(ua)&&!r(_r)&&!r(rl)&&(r(li)||r(Tm)),device:!r(ua)&&(r(_r)||r(li)||r(rl)||r(Tm))||r(/\bokhttp\b/i)},windows:{phone:r(ua),tablet:r(Em),device:r(ua)||r(Em)},other:{blackberry:r(Cm),blackberry10:r(vm),opera:r(wm),firefox:r(km),chrome:r(Am),device:r(Cm)||r(vm)||r(wm)||r(km)||r(Am)},any:!1,phone:!1,tablet:!1};return o.any=o.apple.device||o.android.device||o.windows.device||o.other.device,o.phone=o.apple.phone||o.android.phone||o.windows.phone,o.tablet=o.apple.tablet||o.android.tablet||o.windows.tablet,o}var ol="DENO",ci="CHROME",di="FIREFOX";function Dm(e){let t=ci;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=di:/deno/i.test(n)&&(t=ol)}catch{}return e===ci&&t===ci||e===di&&t===di||e===ol&&t===ol}function Lm(){return Dm(ci)}function Mm(){return typeof Deno<"u"}function Va(){return Dm(di)}function Br(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function ia(){return!!globalThis.matchMedia("(pointer:fine)").matches}h();var Pm={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},Fm={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:Pm,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}}},tabs:{onUpdated:Pm,query:()=>{},sendMessage:()=>{}}};var Q;Mm()?Q=Fm:Q=globalThis.immersiveTranslateBrowserAPI;var ul={get:(e,t,n)=>{let a=t===void 0?e:{[e]:t};return Q.storage[n].get(a)},set:(e,t,n)=>Q.storage[n].set({[e]:t})};function gi(e,t,n){let[a]=$(()=>typeof t=="function"?t():t),[r]=$(n),[o,u]=$(a),[i,s]=$(!1),[c,l]=$("");he(()=>{ul.get(e,a,r).then(p=>{p[e]&&u(p[e]),s(!0),l("")}).catch(p=>{s(!1),l(p)})},[e,a,r]);let f=dn(p=>{let m=typeof p=="function"?p(o):p;z.debug("new settings",m),ul.set(e,m,r).then(()=>{u(m),s(!0),l("")}).catch(g=>{u(m),s(!1),l(g)})},[r,e,o]);return[o,f,i,c]}h();function mi(e,t,n){let a=[];return function(){let[o,u,i,s]=gi(e,t,n),c=dn(l=>{for(let f of a)f(l)},[]);return he(()=>(a.push(u),()=>{a.splice(a.indexOf(u),1)}),[u]),[o,c,i,s]}}function _m(e,t){return mi(e,t,"local")}function Bm(e,t){return mi(e,t,"sync")}var H9="userConfig",q9=null,W9=Bm(H9,q9);function ft(e){let[t,n,a,r]=W9(),o=dn(u=>{let i=typeof u=="function"?u(t):u;i&&(i.updatedAt=new Date().toISOString()),n(i),e&&e(i)},[t]);return[t,o,a,r,n]}h();h();function Ya(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t==="zh-hans")return"zh-CN";if(t==="zh-hant"||t==="zh-hk")return"zh-TW";if(t==="iw")return"he";if(t==="jv")return"jw";let n=sn.map(r=>r.toLowerCase()),a=n.indexOf(t);if(a===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let r=n.indexOf(t);return r===-1?"auto":sn[r]}else return"auto";else return sn[a]}function Ja(){return Ya(document?.documentElement?.lang||"en")}h();var Rm=be+"SyncStoreKey_";function Ht(e,t){let n=Rm+e;return Q.storage.sync.get(n).then(a=>a[n]===void 0?t:a[n])}function $e(e,t){let n=Rm+e;return Q.storage.sync.set({[n]:t})}h();var Im=be+"StoreKey_";function sa(e,t){let n=Im+e;return Q.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function Om(e,t){let n=Im+e;return Q.storage.local.set({[n]:t})}h();var Rr=be+"CacheKey_";function K9(e,t){let n=Rr+e;return Q.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function $9(){let e=Q.storage.local.refresh;e&&e()}function Uo(e,t){let n=Rr+e;return Q.storage.local.get(n).then(a=>{if(a[n]===void 0)return t;let{value:r,expired:o}=a[n];return o&&oa.startsWith(Rr));if(n.length>0)return Q.storage.local.remove(n)}}var Xe={get:K9,set:G9,getExpired:Uo,setExpired:jo,remove:zo,clear:il,refresh:$9};h();h();h();var Tt=class extends Error{details;constructor(t,n,a){super(n),this.name=t,a&&(this.details=a)}};async function Pn(e){let t;if(e&&e.retry&&e.retry>0)try{t=await b0(Nm.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await Nm(e);return t}async function Nm(e){e.body;let{url:t,responseType:n,...a}=e;n||(n="json"),a={mode:"cors",...a};let r=!0;e.fetchPolyfill&&(r=!1);let o=e.fetchPolyfill||fetch,u=3e5;if(e.timeout&&(u=e.timeout),r){let s=new AbortController,c=s.signal;setTimeout(()=>{s.abort()},u),a.signal=c}let i;try{i=await o(t,a)}catch(s){z.debug("fetch error",t,s);let c=s.message||"";throw s.message="\u7F51\u7EDC\u95EE\u9898\uFF0C\u65E0\u6CD5\u8FDE\u63A5\u5230\u670D\u52A1\uFF0C\u8BF7\u68C0\u67E5\u4F60\u7684\u4EE3\u7406\u6216\u672C\u5730\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u8BD5\u3002 "+c,s}if(i.ok&&i.status>=200&&i.status<400){if(n==="json")return await i.json();if(n==="text")return await i.text();if(n==="raw"){let s=await i.text(),c=Object.fromEntries([...i.headers.entries()]),l=i.url;return l||(i.headers.get("X-Final-URL")?l=i.headers.get("X-Final-URL"):l=t),{body:s,headers:c,status:i.status,statusText:i.statusText,url:l}}else if(n==="stream"){let s="",c;if(i.body&&i.body instanceof ReadableStream)for await(let l of V9(i.body)){let f=new TextDecoder().decode(l);s+=f;let p;for(;(p=s.indexOf(` -`))>=0;){let m=s.slice(0,p).trim();if(s=s.slice(p+1),m.startsWith("event:")||m==="")continue;let g="";if(m.startsWith("data:")&&(g=m.slice(5).trim()),g==="[DONE]")break;let T;try{T=JSON.parse(g??"")}catch(w){z.debug("json error",w);continue}c=T}}return c}}else{let s;try{s=await i.text()}catch(m){z.error("parse response failed",m)}s&&z.error("fail response",s);let c="";s&&(c=s.slice(0,280));let l="\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u4EE3\u7801:"+i.status+": "+(i.statusText||"")+c,p=new URL(t).hostname.endsWith(".immersivetranslate.com");throw i.status===429?p?c.includes("quota exceeded")?l="ProQuota:"+c:l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${c} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`:l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A429\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===403?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A403\uFF0C \u8BF4\u660E\u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ${c}`:i.status===400?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A400\uFF0C \u8BF4\u660E\u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002 ${c}`:i.status===502?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A502\uFF0C \u8BF4\u660E\u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===401&&(l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A401\uFF0C \u8BF4\u660E\u672A\u767B\u5F55\u6216\u767B\u5F55\u6001\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002 ${c}`),new Tt("fetchError",l,s)}}async function*V9(e){let t=e.getReader();try{for(;;){let{done:n,value:a}=await t.read();if(n)return;yield a}}finally{t.releaseLock()}}h();var Y9=new Map;function pi(e){let t=J9(64),n=new CustomEvent(Pg,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((a,r)=>{Y9.set(t,(o,u)=>{o?r(o):a(u)})})}function J9(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};function hn(){return fi.version}function hi(){return Q.runtime.getManifest().version}h();var Ho=new Map,la=class{fromType;logger;constructor(t,n=!1){this.logger=new Ro,n&&this.logger.setLevel("debug"),this.fromType=t,Ho.has(t)||(Ho.set(t,new Map),Q.runtime.onMessage.addListener((a,r,o)=>{let u=a.from,i=a.to,s,c,l;r.tab&&r.tab.id&&(s=r.tab.id,u=`${u}:${s}`,c=r.tab.url,l=r.tab.active),this.logger.debug(`${a.to} received message [${a.payload.method}] from ${a.from}`,a.payload.data?a.payload.data:" ");let f=ll(i),{type:p,name:m}=f;if(p!==t)return!1;let g=ll(u),w=Ho.get(p).get(m);if(!w)return this.logger.debug(`no message handler for ${p}:${i}, but it's ok`),!1;let{messageHandler:b,sync:S}=w,D={type:t,name:g.name,id:s,url:c,active:l};if(S){try{let N=b(a.payload,D);o({ok:!0,data:N})}catch(N){o({ok:!1,errorName:N.name,errorMessage:N.message,errorDetails:N.details})}return!1}else return b(a.payload,D).then(N=>{o({ok:!0,data:N})}).catch(N=>{o({ok:!1,errorName:N.name,errorMessage:N.message,errorDetails:N.details})}),!0}))}getConnection(t,n,a){let r=!1;a&&a.sync&&(r=!0);let o=this.fromType,u=Ho.get(o);if(u.has(t))return u.get(t).connectionInstance;{let i=new sl(`${o}:${t}`,this.logger);return Ho.get(o).set(t,{messageHandler:n,sync:r,connectionInstance:i}),i}}},sl=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let a=ll(t),{type:r,id:o}=a;if(r!=="content_script"){let u={to:t,from:this.from,payload:n};this.logger.debug(`${u.from} send message [${u.payload.method}] to ${u.to}`,u.payload.data?u.payload.data:" ");try{let i=await Q.runtime.sendMessage(u);return Um(u,i,this.logger)}catch(i){if(r==="popup"){let s=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(s,n,t,i),Promise.resolve({message:s})}else throw i}}else{let u={from:this.from,to:t,payload:n};this.logger.debug(`${u.from} send message [${u.payload.method}] to ${u.to}`,u.payload.data?u.payload.data:" ");let i=await Q.tabs.sendMessage(o,u);return Um(u,i,this.logger)}}};function Um(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new Tt(t.errorName||"UnknownError",t.errorMessage||"Unknown error",t.errorDetails)}else throw new Tt("noResponse","Unknown error")}function ll(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let a=parseInt(t[2]);if(!isNaN(a))n.id=a;else throw new Error("tab id not a valid number")}return n}var bi;function Z9(){return bi||(bi=new la("content_script",!1).getConnection("pure_main",()=>{}),bi)}var jm="G-MKMD9LWFTR";async function qo(e,t){try{let n=Ke();if(n.INSTALL_FROM==="firefox_store")return;let r=me(),o=mt(),u=n.PROD==="1",i="sitc4WmvShWYwfU0dANM3Q",s=await Ht("fakeUserId","");s||(s=await sa("fakeUserId",""),s&&await $e("fakeUserId",s));let c=hn(),l=new Date,f=await Ht("installedAt","");f||(f=await sa("installedAt",""),f&&await $e("installedAt",f)),s?f||(f=new Date(0).toISOString(),await $e("installedAt",f)):(s=X9(32),await $e("fakeUserId",s)),f||(f=l.toISOString(),await $e("installedAt",f));let p=new Date(f),m=zm(p),g=zm(l),T=m===g,w=l.getTime()-p.getTime()<7*24*60*60*1e3,b=`https://www.google-analytics.com/mp/collect?measurement_id=${jm}&api_secret=${i}`;u||(b=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${jm}&api_secret=${i}`);let S="";typeof navigator<"u"&&(S=window.navigator.userAgent);let D=Tr.parse(S),N=t.map(y=>{let E=y.params||{};return D.os&&(E.os_name=D.os.name||"unknown",E.os_version=D.os.version||"unknown",E.os_version_name=D.os.versionName||"unknown"),D.browser&&(E.browser_name=D.browser.name||"unknown",E.browser_version=D.browser.version||"unknown"),D.platform&&(E.platform_type=D.platform.type||"unknown"),D.engine&&(E.engine_name=D.engine.name||"unknown",E.engine_version=D.engine.version||"unknown"),c&&(E.version=c),n.INSTALL_FROM&&(E.install_from=n.INSTALL_FROM),m&&(E.install_day=eb(p)),E.userscript=r.toString(),T?E.is_new_user_today="1":E.is_new_user_today="0",w?E.is_new_user_this_week="1":E.is_new_user_this_week="0",o?E.main_frame=0:E.main_frame=1,{...y,params:E}}),_=await yi({responseType:"text",url:b,method:"POST",body:JSON.stringify({client_id:s,user_id:s,events:N})})}catch{}}function X9(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r",""]},custom:{placeholderDelimiters:["{","}"]},bing:{maxTextLengthPerRequest:1800,placeholderDelimiters:["","","b"]},deeplx:{limit:3},d:{immediateTranslationTextCount:0},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},openai:{placeholderDelimiters:["{{","}}","b"],immediateTranslationTextCount:3e3,translationDebounce:300,interval:1350,prompt:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +`+t.rule.additionalInjectedCss)),i&&Ya(e,i,"immersive-translate-dynamic-injected-css")}h();h();h();var N9=0;function d(e,t,n,a,r){var o,u,i={};for(u in t)u=="ref"?o=t[u]:i[u]=t[u];var s={type:e,props:i,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--N9,__source:r,__self:a};if(typeof e=="function"&&(o=e.defaultProps))for(u in o)i[u]===void 0&&(i[u]=o[u]);return Se.vnode&&Se.vnode(s),s}function J0({value:e,defaultCase:t=null,cases:n}){return e==null?null:d(Fe,{children:n[e]!=null?n[e]:t})}h();function Q0(){let[e,t]=$(location.hash);return he(()=>{let n=()=>t(location.hash);return globalThis.addEventListener("hashchange",n,!1),()=>{globalThis.removeEventListener("hashchange",n)}},[]),e}h();h();function ut(e){R0({type:"success",text:e})}function Bt(e){R0({type:"error",text:e})}h();function Xt(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function fm(e){if(e){let t="unknown";if(e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?t="stripe":t="admin"),t==="stripe")return!0}return!1}function hm(e){if(e){let t=new Date(e.createTime),n=U9(t),a="free",r="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(a=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?r="stripe":r="admin"),{user_type:a,user_register_day:n,subscription_from:r}}else return null}function U9(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[a,r,o]=n.split("/");return n=`${o}-${a}-${r}`,n}catch{return"unknown"}}h();h();h();h();h();function bm(e,t){return[e,!e||e.endsWith("/")?"":"/",t,".json"].join("")}function Z0(e,t){let n=e;return t&&Object.keys(t).forEach(a=>{let r=t[a];if(r===void 0)return;let o=j9(a);if(typeof r=="object"||o){let u=r;o&&typeof u=="string"&&(u={tag:"a",href:u});let i=`<${a}>`,s=n.indexOf(i);if(s!==-1){let c=u.tag||"a",l=n.indexOf(``);if(l!==-1){let m=n.substring(s+i.length,l),p=Object.keys(u).filter(f=>f!=="tag").map(f=>`${f}="${u[f]}"`).join(" ");n=n.replace(`${i}${m}`,`<${c} ${p}>${m}`)}}}else if(r){let u=new RegExp("{"+a+"}","gm");n=n.replace(u,r.toString())}}),n}function No(e,t,n){let a=e[t];if(!a)return n;let r=n.split("."),o="";do{o+=r.shift();let u=a[o];u!==void 0&&(typeof u=="object"||!r.length)?(a=u,o=""):r.length?o+=".":a=n}while(r.length);return a}function ra(e,t,n,a,r){if(!e.hasOwnProperty(n))return t;let o=No(e,n,t);return o===t&&n!==a&&(o=No(e,a,t)),Z0(o,r)}function j9(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}var Rr={},z9={root:"",lang:"en",fallbackLang:"en"};function X0(e,t){let n=Object.assign({},z9,e);Rr=t||Rr;let[a,r]=$(n.lang),[o,u]=$(Rr),[i,s]=$(!1),c=m=>{if(o.hasOwnProperty(m))return;s(!1);let p=bm(n.root||"",m);n.getUrl&&(p=n.getUrl(n.root||"",m),fetch(p).then(f=>f.json()).then(f=>{Rr[m]=f,u({...Rr}),s(!0)}).catch(f=>{u({...Rr}),s(!0)}))};return he(()=>{c(n.fallbackLang||"en"),c(a)},[a]),{lang:a,setLang:r,t:(m,p)=>{if(!o.hasOwnProperty(a))return m;let f=No(o,a,m);return f===m&&a!==n.fallbackLang&&(f=No(o,n.fallbackLang,m)),Z0(f,p)},isReady:i}}var tl=yr(null),el={root:"assets",lang:"en",fallbackLang:"en"},ii=e=>{let{t,setLang:n,lang:a,isReady:r}=X0({root:e.root||el.root,lang:e.lang||el.lang,fallbackLang:e.fallbackLang||el.fallbackLang,getUrl:e.getUrl},e.translations);return d(tl.Provider,{value:{t,setLang:n,lang:a,isReady:r},children:e.children})};function ue(){return Ye(tl)}function nl(e){let{t}=ue(),{isProUser:n,currentProvider:a,provider:r,onChange:o}=e,u=t(r.descriptionKey,{1:r.descriptionLink1,2:r.descriptionLink2});return!n&&r.descriptionKeyForNormal&&(u=t(r.descriptionKeyForNormal,{1:r.descriptionLink1,2:r.descriptionLink2})),d("label",{class:"pro-radio-label",for:r.name,children:[d("div",{class:"pro-input-radio",children:d("input",{type:"radio",id:r.name,name:r.name,value:r.name,onClick:o,checked:r.name===a})}),d("div",{class:"pl-4",children:[d("div",{class:"pro-radio-title",children:t(r.nameKey)}),d("small",{class:"pro-radio-desc muted",dangerouslySetInnerHTML:{__html:u}})]})]})}h();h();h();h();h();h();h();var al=/iPhone/i,ym=/iPod/i,xm=/iPad/i,Tm=/\biOS-universal(?:.+)Mac\b/i,rl=/\bAndroid(?:.+)Mobile\b/i,Em=/Android/i,Ir=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,si=/Silk/i,oa=/Windows Phone/i,Cm=/\bWindows(?:.+)ARM\b/i,vm=/BlackBerry/i,wm=/BB10/i,Am=/Opera Mini/i,km=/\b(CriOS|Chrome)(?:.+)Mobile/i,Sm=/Mobile(?:.+)Firefox\b/i,Dm=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function H9(e){return t=>t.test(e)}function fn(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,a=n.split("[FBAN");typeof a[1]<"u"&&(n=a[0]),a=n.split("Twitter"),typeof a[1]<"u"&&(n=a[0]);let r=H9(n),o={apple:{phone:r(al)&&!r(oa),ipod:r(ym),tablet:!r(al)&&(r(xm)||Dm(t))&&!r(oa),universal:r(Tm),device:(r(al)||r(ym)||r(xm)||r(Tm)||Dm(t))&&!r(oa)},amazon:{phone:r(Ir),tablet:!r(Ir)&&r(si),device:r(Ir)||r(si)},android:{phone:!r(oa)&&r(Ir)||!r(oa)&&r(rl),tablet:!r(oa)&&!r(Ir)&&!r(rl)&&(r(si)||r(Em)),device:!r(oa)&&(r(Ir)||r(si)||r(rl)||r(Em))||r(/\bokhttp\b/i)},windows:{phone:r(oa),tablet:r(Cm),device:r(oa)||r(Cm)},other:{blackberry:r(vm),blackberry10:r(wm),opera:r(Am),firefox:r(Sm),chrome:r(km),device:r(vm)||r(wm)||r(Am)||r(Sm)||r(km)},any:!1,phone:!1,tablet:!1};return o.any=o.apple.device||o.android.device||o.windows.device||o.other.device,o.phone=o.apple.phone||o.android.phone||o.windows.phone,o.tablet=o.apple.tablet||o.android.tablet||o.windows.tablet,o}var ol="DENO",li="CHROME",ci="FIREFOX";function Lm(e){let t=li;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=ci:/deno/i.test(n)&&(t=ol)}catch{}return e===li&&t===li||e===ci&&t===ci||e===ol&&t===ol}function Mm(){return Lm(li)}function Pm(){return typeof Deno<"u"}function Ja(){return Lm(ci)}function Or(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function ua(){return!!globalThis.matchMedia("(pointer:fine)").matches}h();var Fm={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},_m={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:Fm,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}}},tabs:{onUpdated:Fm,query:()=>{},sendMessage:()=>{}}};var X;Pm()?X=_m:X=globalThis.immersiveTranslateBrowserAPI;var ul={get:(e,t,n)=>{let a=t===void 0?e:{[e]:t};return X.storage[n].get(a)},set:(e,t,n)=>X.storage[n].set({[e]:t})};function di(e,t,n){let[a]=$(()=>typeof t=="function"?t():t),[r]=$(n),[o,u]=$(a),[i,s]=$(!1),[c,l]=$("");he(()=>{ul.get(e,a,r).then(p=>{p[e]&&u(p[e]),s(!0),l("")}).catch(p=>{s(!1),l(p)})},[e,a,r]);let m=dn(p=>{let f=typeof p=="function"?p(o):p;z.debug("new settings",f),ul.set(e,f,r).then(()=>{u(f),s(!0),l("")}).catch(g=>{u(f),s(!1),l(g)})},[r,e,o]);return[o,m,i,c]}h();function gi(e,t,n){let a=[];return function(){let[o,u,i,s]=di(e,t,n),c=dn(l=>{for(let m of a)m(l)},[]);return he(()=>(a.push(u),()=>{a.splice(a.indexOf(u),1)}),[u]),[o,c,i,s]}}function Bm(e,t){return gi(e,t,"local")}function Rm(e,t){return gi(e,t,"sync")}var q9="userConfig",W9=null,K9=Rm(q9,W9);function ht(e){let[t,n,a,r]=K9(),o=dn(u=>{let i=typeof u=="function"?u(t):u;i&&(i.updatedAt=new Date().toISOString()),n(i),e&&e(i)},[t]);return[t,o,a,r,n]}h();h();function Qa(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t==="zh-hans")return"zh-CN";if(t==="zh-hant"||t==="zh-hk")return"zh-TW";if(t==="iw")return"he";if(t==="jv")return"jw";let n=sn.map(r=>r.toLowerCase()),a=n.indexOf(t);if(a===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let r=n.indexOf(t);return r===-1?"auto":sn[r]}else return"auto";else return sn[a]}function Za(){return Qa(document?.documentElement?.lang||"en")}h();var Im=be+"SyncStoreKey_";function Ht(e,t){let n=Im+e;return X.storage.sync.get(n).then(a=>a[n]===void 0?t:a[n])}function $e(e,t){let n=Im+e;return X.storage.sync.set({[n]:t})}h();var Om=be+"StoreKey_";function ia(e,t){let n=Om+e;return X.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function Nm(e,t){let n=Om+e;return X.storage.local.set({[n]:t})}h();var Xa=be+"CacheKey_";function $9(e,t){let n=Xa+e;return X.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function G9(){let e=X.storage.local.refresh;e&&e()}function Uo(e,t){let n=Xa+e;return X.storage.local.get(n).then(a=>{if(a[n]===void 0)return t;let{value:r,expired:o}=a[n];return o&&oa.startsWith(Xa)).filter(a=>a!==Xa+ct);if(n.length>0)return X.storage.local.remove(n)}}var Xe={get:$9,set:V9,getExpired:Uo,setExpired:jo,remove:zo,clear:il,refresh:G9};h();h();h();var Tt=class extends Error{details;constructor(t,n,a){super(n),this.name=t,a&&(this.details=a)}};async function Pn(e){let t;if(e&&e.retry&&e.retry>0)try{t=await b0(Um.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await Um(e);return t}async function Um(e){e.body;let{url:t,responseType:n,...a}=e;n||(n="json"),a={mode:"cors",...a};let r=!0;e.fetchPolyfill&&(r=!1);let o=e.fetchPolyfill||fetch,u=3e5;if(e.timeout&&(u=e.timeout),r){let s=new AbortController,c=s.signal;setTimeout(()=>{s.abort()},u),a.signal=c}let i;try{i=await o(t,a)}catch(s){z.debug("fetch error",t,s);let c=s.message||"";throw s.message="\u7F51\u7EDC\u95EE\u9898\uFF0C\u65E0\u6CD5\u8FDE\u63A5\u5230\u670D\u52A1\uFF0C\u8BF7\u68C0\u67E5\u4F60\u7684\u4EE3\u7406\u6216\u672C\u5730\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u8BD5\u3002 "+c,s}if(i.ok&&i.status>=200&&i.status<400){if(n==="json")return await i.json();if(n==="text")return await i.text();if(n==="raw"){let s=await i.text(),c=Object.fromEntries([...i.headers.entries()]),l=i.url;return l||(i.headers.get("X-Final-URL")?l=i.headers.get("X-Final-URL"):l=t),{body:s,headers:c,status:i.status,statusText:i.statusText,url:l}}else if(n==="stream"){let s="",c;if(i.body&&i.body instanceof ReadableStream)for await(let l of Y9(i.body)){let m=new TextDecoder().decode(l);s+=m;let p;for(;(p=s.indexOf(` +`))>=0;){let f=s.slice(0,p).trim();if(s=s.slice(p+1),f.startsWith("event:")||f==="")continue;let g="";if(f.startsWith("data:")&&(g=f.slice(5).trim()),g==="[DONE]")break;let y;try{y=JSON.parse(g??"")}catch(w){z.debug("json error",w);continue}c=y}}return c}}else{let s;try{s=await i.text()}catch(f){z.error("parse response failed",f)}s&&z.error("fail response",s);let c="";s&&(c=s.slice(0,280));let l="\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u4EE3\u7801:"+i.status+": "+(i.statusText||"")+c,p=new URL(t).hostname.endsWith(".immersivetranslate.com");throw i.status===429?p?c.includes("quota exceeded")?l="ProQuota:"+c:l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${c} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`:l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A429\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===403?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A403\uFF0C \u8BF4\u660E\u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ${c}`:i.status===400?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A400\uFF0C \u8BF4\u660E\u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002 ${c}`:i.status===502?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A502\uFF0C \u8BF4\u660E\u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===401&&(l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A401\uFF0C \u8BF4\u660E\u672A\u767B\u5F55\u6216\u767B\u5F55\u6001\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002 ${c}`),new Tt("fetchError",l,s)}}async function*Y9(e){let t=e.getReader();try{for(;;){let{done:n,value:a}=await t.read();if(n)return;yield a}}finally{t.releaseLock()}}h();var J9=new Map;function mi(e){let t=Q9(64),n=new CustomEvent(Fg,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((a,r)=>{J9.set(t,(o,u)=>{o?r(o):a(u)})})}function Q9(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};function hn(){return pi.version}function fi(){return X.runtime.getManifest().version}h();var Ho=new Map,sa=class{fromType;logger;constructor(t,n=!1){this.logger=new Ro,n&&this.logger.setLevel("debug"),this.fromType=t,Ho.has(t)||(Ho.set(t,new Map),X.runtime.onMessage.addListener((a,r,o)=>{let u=a.from,i=a.to,s,c,l;r.tab&&r.tab.id&&(s=r.tab.id,u=`${u}:${s}`,c=r.tab.url,l=r.tab.active),this.logger.debug(`${a.to} received message [${a.payload.method}] from ${a.from}`,a.payload.data?a.payload.data:" ");let m=ll(i),{type:p,name:f}=m;if(p!==t)return!1;let g=ll(u),w=Ho.get(p).get(f);if(!w)return this.logger.debug(`no message handler for ${p}:${i}, but it's ok`),!1;let{messageHandler:b,sync:S}=w,D={type:t,name:g.name,id:s,url:c,active:l};if(S){try{let N=b(a.payload,D);o({ok:!0,data:N})}catch(N){o({ok:!1,errorName:N.name,errorMessage:N.message,errorDetails:N.details})}return!1}else return b(a.payload,D).then(N=>{o({ok:!0,data:N})}).catch(N=>{o({ok:!1,errorName:N.name,errorMessage:N.message,errorDetails:N.details})}),!0}))}getConnection(t,n,a){let r=!1;a&&a.sync&&(r=!0);let o=this.fromType,u=Ho.get(o);if(u.has(t))return u.get(t).connectionInstance;{let i=new sl(`${o}:${t}`,this.logger);return Ho.get(o).set(t,{messageHandler:n,sync:r,connectionInstance:i}),i}}},sl=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let a=ll(t),{type:r,id:o}=a;if(r!=="content_script"){let u={to:t,from:this.from,payload:n};this.logger.debug(`${u.from} send message [${u.payload.method}] to ${u.to}`,u.payload.data?u.payload.data:" ");try{let i=await X.runtime.sendMessage(u);return jm(u,i,this.logger)}catch(i){if(r==="popup"){let s=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(s,n,t,i),Promise.resolve({message:s})}else throw i}}else{let u={from:this.from,to:t,payload:n};this.logger.debug(`${u.from} send message [${u.payload.method}] to ${u.to}`,u.payload.data?u.payload.data:" ");let i=await X.tabs.sendMessage(o,u);return jm(u,i,this.logger)}}};function jm(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new Tt(t.errorName||"UnknownError",t.errorMessage||"Unknown error",t.errorDetails)}else throw new Tt("noResponse","Unknown error")}function ll(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let a=parseInt(t[2]);if(!isNaN(a))n.id=a;else throw new Error("tab id not a valid number")}return n}var hi;function X9(){return hi||(hi=new sa("content_script",!1).getConnection("pure_main",()=>{}),hi)}var zm="G-MKMD9LWFTR";async function qo(e,t){try{let n=Ke();if(n.INSTALL_FROM==="firefox_store")return;let r=me(),o=pt(),u=n.PROD==="1",i="sitc4WmvShWYwfU0dANM3Q",s=await Ht("fakeUserId","");s||(s=await ia("fakeUserId",""),s&&await $e("fakeUserId",s));let c=hn(),l=new Date,m=await Ht("installedAt","");m||(m=await ia("installedAt",""),m&&await $e("installedAt",m)),s?m||(m=new Date(0).toISOString(),await $e("installedAt",m)):(s=eb(32),await $e("fakeUserId",s)),m||(m=l.toISOString(),await $e("installedAt",m));let p=new Date(m),f=Hm(p),g=Hm(l),y=f===g,w=l.getTime()-p.getTime()<7*24*60*60*1e3,b=`https://www.google-analytics.com/mp/collect?measurement_id=${zm}&api_secret=${i}`;u||(b=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${zm}&api_secret=${i}`);let S="";typeof navigator<"u"&&(S=window.navigator.userAgent);let D=vr.parse(S),N=t.map(x=>{let E=x.params||{};return D.os&&(E.os_name=D.os.name||"unknown",E.os_version=D.os.version||"unknown",E.os_version_name=D.os.versionName||"unknown"),D.browser&&(E.browser_name=D.browser.name||"unknown",E.browser_version=D.browser.version||"unknown"),D.platform&&(E.platform_type=D.platform.type||"unknown"),D.engine&&(E.engine_name=D.engine.name||"unknown",E.engine_version=D.engine.version||"unknown"),c&&(E.version=c),n.INSTALL_FROM&&(E.install_from=n.INSTALL_FROM),f&&(E.install_day=tb(p)),E.userscript=r.toString(),y?E.is_new_user_today="1":E.is_new_user_today="0",w?E.is_new_user_this_week="1":E.is_new_user_this_week="0",o?E.main_frame=0:E.main_frame=1,{...x,params:E}}),_=await bi({responseType:"text",url:b,method:"POST",body:JSON.stringify({client_id:s,user_id:s,events:N})})}catch{}}function eb(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r",""],limit:5e3},custom:{placeholderDelimiters:["{","}"]},bing:{maxTextLengthPerRequest:1800,placeholderDelimiters:["","","b"]},deeplx:{limit:3},d:{immediateTranslationTextCount:0},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},openai:{placeholderDelimiters:["{{","}}","b"],immediateTranslationTextCount:3e3,translationDebounce:300,interval:1350,prompt:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: {{text}}`,maxTextGroupLengthPerRequest:1,newlinePlaceholderDelimiters:[` @@ -4276,68 +4276,70 @@ ${u}} ?`]}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:""},tempTranslateDomainMinutes:0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","*.twitter.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","github.com","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","www.tumblr.com","*.twitter.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},generalRule:{_comment:"",enableSubtitle:!0,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan"],useIframePostMessage:!0,searchEnhancementConfig:[],injectedCss:[],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!0,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,isTransformPreTagNewLine:!1,urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".MathJax_Preview",".MathJax",".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:4,paragraphMinWordCount:2,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,globalAttributes:{},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{".sr-only":"display:none"},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{translate:"no"},"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:[],additionalExcludeSelectors:[".social-share",".breadcrumbs",".post__footer",".btn",".reference-citations",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","markerow8"],translationClasses:[],atomicBlockSelectors:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","INPUT","BUTTON","BASE","SELECT","OPTION","HR","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","XQDD_HIGHLIGHT_NEW_WORD","NOBR"],additionalInlineTags:[],extraInlineSelectors:[],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,mouseHoverHoldKey:"Off"},rules:[{id:"immersive",matches:["https://immersivetranslate.com","https://onboarding.immersivetranslate.com"],isInjectVersion:!0,isInjectMeta:!0},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"pdf",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],translationMode:"translation",skipEditableCheck:!0,selectors:["p"],wrapperPrefix:"",isInjectVersion:!0,isPdf:!0},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,injectedCss:[".immersive-translate-target-translation-block-wrapper { display: block; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"]},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","https://platform.twitter.com/embed*"],additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']"],extraBlockSelectors:['[data-testid="tweetText"] div.r-6koalj'],extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText']":"-webkit-line-clamp: unset;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]"]},{id:"threads",matches:"www.threads.net",selectors:["p",".x1npkx4u.x1exu5d8",".xw7yly9",".xgkxs2y"],stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x78zum5",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{span:"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],extraBlockSelectors:["span.comment-copy"],excludeSelectors:["a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md",".RichTextJSON-root","div[slot=title]","div[slot=text-body]","p.title > a","[role=main] .md-container"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none"},waitForSelectors:["[data-testid=post_author_link]"]},{id:"reddit",matches:"www.reddit.com",selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","div[slot=title]","div[slot=text-body]","p.title > a","[role=main] .md-container"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none"}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper"],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box"],extraBlockSelectors:[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],detectParagraphLanguage:!0},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"facebook",matches:"www.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]"],atomicBlockSelectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],extraBlockSelectors:["span.x1vvkbs"],excludeSelectors:["[role=button]"],translationClasses:["immersive-translate-text"],detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".caption-window",".caption-visual-line",".yt-spec-button-view-model",".yt-core-attributed-string > span",".title"],"excludeTags.remove":["BUTTON"],condition:{enableSubtitle:{false:{"selectors.remove":[".caption-window",".caption-visual-line"]}}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],extraBlockSelectors:[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,detectParagraphLanguage:!0,excludeSelectors:["[class^='lln-']"],globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","ytd-notification-renderer .message","#message",".caption-window",".caption-visual-line"],extraBlockSelectors:["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],condition:{enableSubtitle:{false:{"selectors.remove":[".caption-window",".caption-visual-line"]}}},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,selectors:["h1","div[class='x9f619 xjbqb8w x78zum5 x168nmei x13lgxp2 x5pf9jr xo71vjh x1uhb9sk x1plvlek xryxfnj x1c4vz4f x2lah0s xdt5ytf xqjyukv x1cy8zhl x1oa3qoh x1nhvcw1'] > span[class='x1lliihq x1plvlek xryxfnj x1n2onr6 x193iq5w xeuugli x1fj9vlw x13faqbe x1vvkbs x1s928wv xhkezso x1gmr53x x1cpjm7i x1fgarty x1943h6x x1i0vuye xvs91rp xo1l8bm x5n08af x10wh9bi x1wdrske x8viiok x18hxmgj']","span[class='x193iq5w xeuugli x1fj9vlw x13faqbe x1vvkbs xt0psk2 x1i0vuye xvs91rp xo1l8bm x5n08af x10wh9bi x1wdrske x8viiok x18hxmgj']"],wrapperPrefix:"
"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:["[style^=top]",".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;"},extraBlockSelectors:[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"]},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page"],excludeMatches:["https://www.inoreader.com/features/"],observeUrlChange:!1,globalStyles:{".article_title_link":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` `,selectors:["h3 a[data-clk]","div.gs_rs","td a.gsc_a_at","td div.gs_gray:last-of-type","div.gsc_oci_value","#gs_opinion"],extraInlineSelectors:["br"],atomicBlockSelectors:["h3 a[data-clk]"]},{id:"googleMail",matches:"mail.google.com",detectParagraphLanguage:!0,selectors:["h2[data-thread-perm-id]","span[data-thread-id]","div[data-message-id] div[class='']",".messageBody","#views"],globalStyles:{".Nk":"height:auto!important;",".kf":"white-space:unset!important;"}},{id:"googleNews",matches:"news.google.com",blockMinTextCount:26,blockMinWordCount:5,globalStyles:{".MCAGUe":"height: auto;",".To2ZZb.DbQnIe":"height: unset;",".cp7Yvc > h2":"display: block;",".oovtQ":"height: auto;",h4:"-webkit-line-clamp: unset;"},excludeSelectors:[".EyERq",".AOl7G.eejsDc","[aria-label='Home']","[aria-label='For you']","[aria-label='Following']","[aria-label='World']","[aria-label='Local']",".gb_Fc",".wBQf7b",".yPI8Rb",".jKHa4e",".u43Gd",".Zgjpyb","[role='button']","[jsname='rymPhb']",".cbz1ld",".VfPpkd-P5QLlc",".XvhY1d"]},{id:"outlook",matches:"outlook.live.com",excludeSelectors:[".jHAG3.XG5Jd",".OZZZK",".lDdSm"]},{id:"producthunt",matches:"www.producthunt.com",excludeMatches:"https://www.producthunt.com/stories/*",selectors:["h2","div[class^='styles_htmlText__']","[class^='styles_tagline']","a[href^='/discussions/'].fontWeight-600","button[class^='styles_textButton'] > div > span","h5 + p","div[data-test=product-item-name] + div",".noOfLines-1,.noOfLines-2,.noOfLines-3",".fontWeight-600","[class*='styles_dropdown']","[class*='styles_aboutText']"],globalStyles:{"h5 + p":"height:unset;",".noOfLines-1,.noOfLines-2,.noOfLines-3":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"]},{id:"codeforces",matches:"https://codeforces.com/*",stayOriginalTags:["[class^='MathJax']"]},{id:"arxivLabs",matches:"*.labs.arxiv.org/*",stayOriginalTags:["math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt"]},{id:"discord",matches:"https://discord.com/channels/*",isTranslateTitle:!1,selectors:["li[id^=chat-messages] div[id^=message-content]","div[class^=headerText]","section[aria-label='Search Results'] div[id^=message-content]"],extraBlockSelectors:["[class^='embedFieldValue']","li[class^='card'] div[class^='message']","[data-list-item-id^='forum-channel-list'] div[class^='headerText']"],globalStyles:{"div[class^=headerText]":"max-height: unset;","div[class^=message]":"max-height: unset;","div[class^=text]":"max-height: unset;","h3[data-text-variant='heading-lg/semibold']":"-webkit-line-clamp: none;"},detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:"",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"telegram",matches:["web.telegram.org/z/*","web.telegram.org/a/*"],isTranslateTitle:!1,selectors:[".text-content",".message",".reply-markup-button-text",".bot-commands-list-element-description"],detectParagraphLanguage:!0},{id:"telegramK",matches:["web.telegram.org/k/*","web.telegram.org/k/"],selectors:[".message",".reply-markup-button-text",".bot-commands-list-element-description"],detectParagraphLanguage:!0},{id:"githubGist",matches:"gist.github.com",selectors:[".markdown-body",".readme"],detectParagraphLanguage:!0},{id:"lobste",matches:"lobste.rs",excludeMatches:["https://lobste.rs/about","https://lobste.rs/chat"],selectors:[".u-repost-of",".comment_text",".story_text"]},{id:"slack",matches:"*.slack.com",selectors:[".p-rich_text_block",".p-message_pane__foreword",".c-alert__message","[data-qa=message_attachment_text]"],additionalStayOriginalSelectors:["[data-qa=emoji]"],detectParagraphLanguage:!0},{id:"artstationArtwork",matches:"www.artstation.com/artwork/*",excludeSelectors:".project-description a",selectors:[".project-description","div.project-comment-text"],detectParagraphLanguage:!0},{id:"artstationLearning",matches:"www.artstation.com/learning/courses/*",additionalSelectors:["footer.learning-course-description.ng-star-inserted > span"],excludeSelectors:[".learning-card-meta"]},{id:"artstationBlog",matches:["https://www.artstation.com/blogs","https://www.artstation.com/blogs/*"],detectParagraphLanguage:!0,additionalSelectors:[".comment-item-body"],atomicBlockSelectors:[".author-headline",".author-location"],excludeSelectors:["blog-card-thumbnail","blog-card-header",".blog-card-author",".blog-card-meta",".blog-view-header",".blog-grid-title",".post-meta-header"]},{id:"figmaCommunity",matches:"www.figma.com/community/*",normalizeBody:"div.ql-editor[contenteditable='false']",excludeSelectors:["div[class*='metadataRight']","div[class*='commentMetaAndOptions']"],globalStyles:{"div[class*='mini_cardBottomRowSizing']":"height: 3em;"},additionalSelectors:["div[class*='mini_cardBottomRow_Metadata']"],stayOriginalSelectors:["[data-tooltip='tooltip-user-info']"]},{id:"googleIndex",matches:["https://www.google.com/","https://www.google.com.hk/"],excludeSelectors:["#gb","#SIvCob"],inputTutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",inputTutorialsSelectors:["textarea#APjFqb"]},{id:"googleSearch",matches:"www.google.*/search*",blockMinTextCount:32,blockMinWordCount:3,wrapperSuffix:"",detectParagraphLanguage:!0,excludeSelectors:["a h3 + div","div#sfooter","a[role=presentation] > div > div:first-child",".b5ZQcf",".CEMjEf",".MgUUmf.NUnG9d","#result-stats","[role=navigation]","div.sCuL3","div.eFM0qc.BCF2pd","div.WZ8Tjf","div.adDDi","#headerSection","#rateChatDiv","[id=bres]",".title-D5Lgyj","[data-attrid='VisualDigestVideoResult']",".search-enhance-WDIEkP h4",".SPZz6b h2",".CtCigf",".VLkRKc",".EbH0bb",".Wr0c6d",".jleFbf","#searchform",".yg51vc",".CbAZb"],extraBlockSelectors:[".MUFPAc"],globalStyles:{".V82bz":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px",".pe7FNb":"-webkit-line-clamp: unset;",".promotion-3PDMAb":"display: none;",".uAKcGb":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px","div[data-content-feature='1'] > div":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:2']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:3']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:4']":"-webkit-line-clamp: unset;max-height: unset;",".Pw4Ldf.RsCEN":"height:unset;",".related-question-pair":"overflow:auto;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,searchEnhancementConfig:[{id:"google",urlMatch:"https://www\\.google\\..+/search",style:{source:"font-size:12px; margin-bottom: 6px;",enTitle:"margin-top:6px;font-size:14px;",searchTitle:"margin-top:6px;position:relative;padding-right:24px;",more:"color:#1a0dab;margin-top:8px;",enTitleClassName:"immersive-translate-search-enhancement-en-title"},keyword:{value:"[0]$1",matches:[{source:"url",matchRegex:"q=(.+?)&"}]},showCount:5}]},{id:"lowendtalk",matches:"lowendtalk.com",selectors:["[role=heading]","h1",".userContent"]},{id:"linkedinJobs",matches:"www.linkedin.com/jobs/*",selectors:["#job-details > span"]},{id:"linkedinFeed",matches:"https://linkedin.com/feed/*",selectors:["h1",".feed-shared-update-v2__description-wrapper"]},{id:"indiehackers",matches:"www.indiehackers.com",selectors:[".content","h1","h3.story__title",".feed-item__title-link",".article-body"]},{id:"libreddit",matches:"libreddit.de",selectors:["h2.post_title",".comment_body > .md"]},{id:"notionSite",matches:["notion.site","*.notion.site"],normalizeBody:"body",selectors:["div[data-block-id]"]},{id:"newyorker",matches:"www.newyorker.com",additionalSelectors:["h1","[data-testid=SummaryItemHed]"],excludeSelectors:["[data-testid=PersistentTop]","[data-testid=StackedNavigationHeader]"],urlChangeDelay:2e3},{id:"startme",matches:"start.me",selectors:[".rss-article__title",".rss-articles-list__article-link",".rss-showcase__title",".rss-showcase__text"]},{id:"scmp",matches:"www.scmp.com",additionalSelectors:[".info__subHeadline",".section-content h2"],globalStyles:{".topic__article-list":"height: unset;",".adverisers__adveriser":"height: unset;",".advertiser__content":"height: unset;",".content-title__link":"display:unset;overflow:unset;-webkit-line-clamp:unset;",".title__text":"max-height:unset; -webkit-line-clamp:unset;",".news-list-item__news-title":"max-height:unset; -webkit-line-clamp:unset;","a[class*='link'] > .link__headline":"max-height:unset; -webkit-line-clamp:unset;"}},{id:"lesswrong",matches:"www.lesswrong.com",extraBlockSelectors:["span.commentOnSelection"]},{id:"mastodon",matches:["mastodon.social","mastodon.online","kolektiva.social","indieweb.social","mastodon.world","infosec.exchange"],isTranslateTitle:!1,selectorMatches:["div#mastodon"],selectors:["div.status__content__text",".about__section__body",".content",".form-container",".account__header__extra"],globalAttributes:{"[class='notranslate app-holder']":{class:"app-holder"}},detectLanguage:!0},{id:"cnbc",matches:"www.cnbc.com",urlChangeDelay:1e3,globalStyles:{"div.Card-titleContainer > div":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"dailyDev",matches:"app.daily.dev",selectors:["h1",".typo-body","article h3","[class^=markdown_markdown]"],globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset"}},{id:"pornhub",matches:["*.pornhub.com","pornhub.com"],excludeMatches:["*.pornhub.com/insights/*","pornhub.com/insights/*"],extraBlockSelectors:[".trendingNow",".searchItem",".tagcloud > a"],detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:` `,globalStyles:{"span.title":"height:unset; max-height:unset;",".detailedInfo":"max-height:unset;",".pcVideoListItem":"max-height:unset;",".wrap":"height:unset;",".entry-header":"height:unset;",".entry-title > a":"height:unset;-webkit-line-clamp:unset;"}},{id:"yourporn",matches:"https://www.youporn.com/*",extraBlockSelectors:[".button"],globalStyles:{".video-box":"max-height:unset;",".video-box-title":"white-space:unset;"}},{id:"modelhub",matches:"https://www.modelhub.com/*",globalStyles:{".videoTitle":"height:unset;",a:"height:unset;"}},{id:"xvideos",matches:"https://www.xvideos.com/*",globalStyles:{".title":"-webkit-line-clamp:unset;max-height:unset;",".mozaique":"display:flex; flex-wrap:wrap;"},excludeSelectors:[".video-hd-mark"]},{id:"missav",matches:"https://missav.com/*",globalStyles:{".truncate":"white-space:unset;",".overflow-y-hidden":"max-height:unset;overflow-y:unset;"}},{id:"javbus",matches:"https://www.javbus.com/*",globalStyles:{".photo-info":"height:unset;"},excludeSelectors:[".item-tag","date"]},{id:"spankbang",matches:"https://spankbang.com/*",globalStyles:{".video-item > a":"white-space:unset;"},excludeSelectors:[".stats",".thumb"],extraBlockSelectors:[".searches > a",".tag > a",".extra > a",".positions > li"]},{id:"javdb",matches:"https://javdb*.com/*",globalStyles:{".video-title":"white-space:unset;"},excludeSelectors:[".video-number",".score",".has-addons"]},{id:"jable",matches:"https://jable.tv/*",globalStyles:{".title":"white-space:unset;max-height:unset;",".img-box > a":"position:relative;"}},{id:"netflav",matches:"https://netflav*.com/*",globalStyles:{".grid_title":"max-height:unset;"},extraBlockSelectors:[".genre_filter_item","button"]},{id:"czechvideo",matches:"https://czechvideo.co/*",globalStyles:{".short-story":"height:unset;",".short-title":"height:unset;"},globalAttributes:{header:{translate:"unset;"}}},{id:"weibo",matches:["weibo.com"],selectors:["div[class^='detail_wbtext']"]},{id:"medium",matches:["medium.com","*.medium.com"],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],urlChangeDelay:20,"additionalExcludeSelectors.remove":["i.fa","i[class^=fa-]",".navmenu-container",".google-symbols","markerow8"],selectors:["h1","h2","article section","[aria-hidden='false'] pre","article p"],excludeSelectors:["[aria-label='Post Preview Reading Time']",".al.b.bl.ag.bp",".al.b.bl.ag.ai"],globalStyles:{h2:"-webkit-line-clamp: unset;max-height:unset;","article p":"-webkit-line-clamp: unset;max-height:unset;"}},{id:"nitter",selectorMatches:["meta[property='og:site_name'][content='Nitter']"],selectors:[".tweet-content",".quote-text"]},{id:"economist",matches:"www.economist.com",extraInlineSelectors:["span[data-caps='initial']"],excludeSelectors:["footer.ds-footer"],injectedCss:["a::before {position:relative!important;}"]},{id:"healthline",matches:"www.healthline.com",excludeSelectors:[".icon-hl-trusted-source-after"]},{id:"ebay",matches:"www.ebay.com",excludeSelectors:["headers","[itemprop=offers]",".dne-itemtile-original-price"],paragraphMinTextCount:4,paragraphMinWordCount:2,globalStyles:{"[itemprop=name]":"-webkit-line-clamp: unset;max-height: unset;",".merch-item-title":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"skinstore",matches:"www.skinstore.com",excludeSelectors:[".responsiveFlyoutMenu_levelOneLink"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"tripadvisor",matches:"www.tripadvisor.com",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"amazon",matches:"www.amazon.com",paragraphMinTextCount:4,paragraphMinWordCount:2,extraBlockSelectors:[".a-size-small.a-link-normal.page-banner-link.a-nowrap"],globalStyles:{".a-carousel-viewport":"height:unset;","[class*='clamp']":"max-height: unset;-webkit-line-clamp: unset;","[data-rows]":"max-height: unset;-webkit-line-clamp: unset;","[data-a-expander-name='review_text_read_more']":" max-height: unset;"},excludeSelectors:["#navFooter","#navbar-main",".s-price-instructions-style","[class*='star']","[data-hook='acr-average-stars-rating-text']",".a-color-price"]},{id:"visualstudioMarketplace",matches:"marketplace.visualstudio.com",additionalExcludeSelectors:[".core-info-second-row",".core-info-third-row",".meta-data-list",".item-title",".breadcrumb",".itemDetails-right",".ux-user-name",".ux-updated-date",".ux-item-second-row-wrapper",".stats-and-offer",".header-container"],atomicBlockSelectors:[".core-info-cell > div.name"],globalStyles:{".item-details-control-root.ux-item-shortdesc":"height: unset; overflow: visible; max-height:unset;"}},{id:"bloomberg",matches:"www.bloomberg.com",urlChangeDelay:2e3,excludeSelectors:[".ticker-bar","nav","[aria-label=Banner]","aside","[data-component=ticker-bar]","footer.bb-global-footer"]},{id:"baiduXueshu",matches:"xueshu.baidu.com",globalStyles:{".abstract_wr":"height: unset; overflow: visible; max-height:unset;"}},{id:"sciencedirect",matches:"www.sciencedirect.com",urlChangeDelay:2e3,stayOriginalSelectors:["span.display","span.math"],extraBlockSelectors:["span.captions","span[id^=cap]"]},{id:"thehighestofthemountains",matches:"www.thehighestofthemountains.com",extraBlockSelectors:"div"},{id:"telegraph1",matches:"te.legra.ph",normalizeBody:"div.ql-editor[contenteditable='false']",urlChangeDelay:500},{id:"telegraph2",matches:["telegra.ph"],normalizeBody:"div.ql-editor[contenteditable='false']",wrapperPrefix:` -`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main > div > div[class*='h-[125]']":"height:auto"},normalizeBody:"body",extraBlockSelectors:["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,normalizeBody:"#mw-content-text",globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"]},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"}},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:"chat.openai.com",excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0}},{id:"newstop",matches:["chat.newstop.asia","chat.waixingyun.cn"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".n-button.n-button--warning-type.n-button--medium-type",messageWrapperSelector:".markdown-body",streamingChange:!1,streamingDeepChild:!0}},{id:"askgpt",matches:["askgpt.cn","chatcat.zhaoyoung.me"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".home_chat-message-status__EsVNi",messageWrapperSelector:".markdown-body",streamingChange:!0,streamingDeepChild:!0}},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__UyYrv *",".MarkdownLink_linkifiedLink__KxC9G"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__UyYrv",streamingChange:!1,streamingDeepChild:!0}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"newthingsunderthesun",matches:"www.newthingsunderthesun.com",additionalSelectors:["[translate=no]"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"https://steamcommunity.com/app/*",globalStyles:{".forum_topic":"height:auto;",".forum_topic_name":"white-space:normal;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampowered",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:"https://www.webofscience.com/*",globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},excludeSelectors:[".summary-left-panel",".authors","app-full-record-keywords mark"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],extraBlockSelectors:["app-summary-authors + div","app-full-record-keywords span span"],observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://www.jetbrains.com/help/*",extraBlockSelectors:["[data-test=prompt]"]},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails p"]},{id:"isEbook",isEbook:!0,isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span"},{id:"isEbookBuilder",isEbookBuilder:!0,isTranslateTitle:!1,targetWrapperTag:"span",selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com",extraBlockSelectors:["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],extraBlockSelectors:"font[face=verdana]"},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"isSubtitleBuilder",isSubtitleBuilder:!0,selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,wrapperPrefix:"",wrapperSuffix:""},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/",extraBlockSelectors:[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"vimeo",matches:"https://player.vimeo.com/video/*",extraBlockSelectors:["span.vp-captions-line","span[class^=CaptionsRenderer_]"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexityAi",matches:"https://www.perplexity.ai/search/*",extraBlockSelectors:[".prose > span"],additionalStayOriginalSelectors:["a.citation"],insertPosition:"afterend"},{id:"perplexity",matches:"https://www.perplexity.ai",globalStyles:{".line-clamp-1":"-webkit-line-clamp: unset !important;",".line-clamp-2":"-webkit-line-clamp: unset !important;"}},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"babelnovel",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*"],urlChangeDelay:0},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0},{globalAttributes:{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"youtrackJetbrains",matches:"youtrack.jetbrains.com/articles/*",selectors:["[role=presentation]","[data-test=article-content]"],excludeSelectors:[".toolbar__ee8"]},{id:"bbc",matches:"www.bbc.com",excludeSelectors:["section.module--languages",".drop-capped"]},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}}},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"openai",matches:"https://platform.openai.com/docs/*",urlChangeDelay:0},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout":"height:unset !important;",".EntrySummary--u4":"-webkit-line-clamp: unset;max-height:unset;",".EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:[".copyable-text > span"],wrapperPrefix:` -`,wrapperSuffix:"
"},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],globalStyles:{"[class*='lineclamp']":"-webkit-line-clamp:unset;"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],extraBlockSelectors:[".SIPGg",".sc-kzMCTH.pSZXj"],globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"]},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*",globalAttributes:{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead"],injectedCss:["a::after {position:relative!important;}"]},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},globalAttributes:{"#app":{class:""}}},{id:"haproxy",matches:["docs.haproxy.org","www.oreilly.com/openbook/opensources/book/*"],excludeTags:[],stayOriginalSelectors:[],stayOriginalTags:[],isTransformPreTagNewLine:!0},{id:"piAi",matches:"pi.ai/talk",excludeSelectors:[".whitespace-pre-wrap > span *"],aiRule:{streamingSelector:"button[class*='fixed'][disabled]",messageWrapperSelector:".whitespace-pre-wrap",streamingChange:!1,streamingDeepChild:!1},globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *"],"excludeTags.remove":["PRE"],injectedCss:"[data-testid='chat-menu-trigger'] br {display:none;}",aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1}},{id:"feishu",matches:"*.feishu.cn","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],excludeSelectors:[".catalogue__list"]},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"bugsWebkit",matches:"bugs.webkit.org",isTransformPreTagNewLine:!0},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",matches:"www.kaggle.com",excludeTags:["i","button"]},{id:"ieee",matches:"spectrum.ieee.org",extraBlockSelectors:["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"www.cnn.com",excludeSelectors:[".ad-slot-header__wrapper"]},{id:"marginalrevolution",matches:"marginalrevolution.com",globalAttributes:{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",condition:{enableSubtitle:{false:{"excludeSelectors.add":[".bpx-player-subtitle-panel-text"]}}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"docs-oracle",matches:"docs.oracle.com",urlChangeDelay:0},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"edstem",matches:"edstem.org","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:"pubmed.ncbi.nlm.nih.gov",urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share"]},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"tldrnewsletter",matches:"actions.tldrnewsletter.com","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"bugzilla",matches:"bugzilla.mozilla.org","excludeTags.remove":["PRE"],isTransformPreTagNewLine:!0},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"excludeSelectors.add":["aside",".DocSearch-Modal"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"mail.qq.com",useIframePostMessage:!1},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]}]};h();h();function Qa(e){return Array.isArray(e)?e:e?[e]:[]}function bn(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function at(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function Ti(e,t){let n={...e};return qm(n,t),ab(n,t),n}function Hm(e,t,n){let a={...t};return rb(e,a,n),a}function ab(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},a=t.condition.enableSubtitle?.false||{},r=e.enableSubtitle?n:a;qm(e,r)}function rb(e,t,n){try{return Object.keys(t).forEach(a=>{let[r,o]=a.split(".");if(o){let u=t[a];if(Array.isArray(e[r])&&(u=Qa(t[a])),o==="add"){t[r]=Wo(e[r],u),delete t[a];return}else if(o=="remove"){t[r]=cl(e[r],u),delete t[a];return}}}),Object.keys(n).forEach(a=>{let[r,o]=a.split(".");if(!r||n[a]===void 0)return;let u=n[a],i=t[r];if(Array.isArray(e[r])&&(u=Qa(n[a]),i=Qa(t[r])),o==="add"){t[r]=Wo(i,u);return}else if(o=="remove"){t[r]=cl(i,u);return}Array.isArray(i)&&r.startsWith("additional")?t[r]=Wo(i,u):t[r]=u}),t}catch{}}function qm(e,t){return Object.keys(t).forEach(n=>{let[a,r]=n.split(".");if(!a||t[n]===void 0)return;let o=t[n];if(Array.isArray(e[a])&&(o=Qa(t[n])),r==="add"){e[a]=Wo(e[a],o);return}else if(r=="remove"){e[a]=cl(e[a],o);return}Array.isArray(e[a])&&a.startsWith("additional")?e[a]=Wo(e[a],o):e[a]=o}),e}function Wo(e,t){let n;if(Array.isArray(e)){let a=Qa(t);n=[...e,...a],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"&&(n={...e,...t});return n}function cl(e,t){if(Array.isArray(e)){let n=Qa(t);return e=e.filter(a=>!n.includes(a)),Array.from(new Set(e))}else typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(n=>{delete e[n]});return e}function Za(){if(Ce.PROD==="1")return{};let e={};if(Ce.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&Ce.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:Ce.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:Ce.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&Ce.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:Ce.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:Ce.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:Ce.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:Ce.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&Ce.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:Ce.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:Ce.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&Ce.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:Ce.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:Ce.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:Ce.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(Ce.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=Ce.DEEPL_PROXY_ENDPOINT),Ce.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=Ce.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),Ce.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:Ce.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}Ce.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=Ce.IMMERSIVE_TRANSLATE_SERVICE);let t={};return Ce.DEBUG==="1"&&(t.debug=!0,t.cache=!1),Ce.MOCK==="1"&&(t.translationService="mock"),t}async function Gn(){let e=await Q.storage.local.get(vr);if(e[vr]){let t=e[vr],n=t.tempTranslationUrlMatches||[],a=n.filter(u=>u.expiredAt>Date.now()),r=!1;a.length!==n.length&&(n=a,r=!0);let o={...t,tempTranslationUrlMatches:[...n]};return r&&await yn(o),o}else return{}}async function yn(e){await Q.storage.local.set({[vr]:e})}async function Wm(e){await Q.storage.local.set({[ra]:e})}async function Ir(){await Q.storage.local.set({[ra]:{}})}async function Aa(){await Q.storage.local.set({[vr]:{}})}async function Km(){let e=await Q.storage.local.get(ra),n={...Ei(),...xi,buildinConfigUpdatedAt:Ce.BUILD_TIME};if(e[ra]){let a=e[ra];if(a&&a.buildinConfigUpdatedAt){let r=new Date(a.buildinConfigUpdatedAt),o=new Date(n.buildinConfigUpdatedAt);r>o&&(n=a)}}return n}async function Ge(){let e=await Q.storage.local.get(ra),t={...xi,buildinConfigUpdatedAt:Ce.BUILD_TIME};if(e[ra]){let B=e[ra];if(B&&B.buildinConfigUpdatedAt){let A=new Date(B.buildinConfigUpdatedAt),L=new Date(t.buildinConfigUpdatedAt);A>L&&(t=B)}}let n=await Xe.get(xt,null),a={};if(!me()&&Q.commands&&Q.commands.getAll){let B=await Q.commands.getAll();for(let A of B)A.name&&A.shortcut&&(a[A.name]=A.shortcut)}let r=Ei(),o=Za(),u=await Ko(),i=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},s=await Gn(),c=new Date;if(s&&s.tempTranslationUrlMatches&&s.tempTranslationUrlMatches.length>0){let B=s.tempTranslationUrlMatches.filter(A=>new Date(A.expiredAt)>c);if(B.length>0){let A=u.translationUrlPattern?u.translationUrlPattern?.matches||[]:[],L=Array.isArray(A)?A:[A],U=Array.from(new Set(L.concat(B.map(K=>K.match))));u.translationUrlPattern={...u.translationUrlPattern,matches:U}}}let l=Object.assign({},i,o,u);if(!l.interfaceLanguage){let B=await ob();l.interfaceLanguage=B}let f=l.interfaceLanguage==="en",p=l.targetLanguage==="en",m=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,g=["bing","google","transmart","mock"].includes(l.translationService)||!l.translationService;!f&&!p&&!m&&g?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let T=t&&t.enableDefaultAlwaysTranslatedUrls;l.enableDefaultAlwaysTranslatedUrls===!1&&(T=!1);let w=l&&l.isChangedAlwaysTranslatedUrls,b=[];l.translationUrlPattern&&l.translationUrlPattern.matches&&(b=l.translationUrlPattern.matches||[]);let S=!1;w===void 0&&(b.length>0?w=!0:w=!1,l.isChangedAlwaysTranslatedUrls=w,u.isChangedAlwaysTranslatedUrls=w,S=!0);let D=(l?.translationLanguagePattern?.matches?.length||0)>0,N=await Ht("installedAt",""),_=Number(await sa("translage_page_daily",0)),y=Number(await Ht(Ln,0)),E;y>0&&(Date.now()-y0&&(Date.now()-_H.id&&U[H.id]?Hm(t.generalRule,U[H.id],H):H);R[A]=[...K,...R[A]]}if(Ce.PROD==="0"&&Ce.DEV_RULES){let L=JSON.parse(Ce.DEV_RULES);R[A]=[...L,...R[A]]}}else l[A]!==void 0&&(R[A]=l[A])}return R.donateUrl=t.donateUrl,R.minVersion=t.minVersion,R.feedbackUrl=t.feedbackUrl,R}async function Ko(){return(await Q.storage.sync.get("userConfig")||{}).userConfig||{}}async function $o(e){await Q.storage.sync.set({userConfig:e})}var ob=async()=>{let e=["zh-CN"];try{e=await Q.i18n.getAcceptLanguages()}catch(a){z.warn("get browser language error:",a)}let n=e.map(a=>Ya(a)).find(a=>Qt[a]);return n||"en"},Ei=()=>{let e={...xi,buildinConfigUpdatedAt:Ce.BUILD_TIME};return{...e,targetLanguage:ei,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing"},rules:[]}};function ub(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(a=>!e.includes(a)).length>0}h();function Go(e){if(Math.abs(e)<1024)return e+" Byte";let n=["KB","MB","GB","TB","PB","EB","ZB","YB"],a=-1;do e/=1024,++a;while(Math.abs(e)>=1024&&as+c.text.length,0)+u.text.length>t||o.tempSentences.length>=n)&&(r.push(o),o={fromByClient:o.fromByClient,from:u.from,to:u.to,tempSentences:[],url:u.url}),(o.from!==u.from||o.to!==u.to)&&(o.tempSentences.length>0?(r.push(o),o={fromByClient:o.fromByClient,from:u.from,to:u.to,tempSentences:[],url:u.url}):(o.from=u.from,o.to=u.to)),o.tempSentences.push(u);return o.tempSentences.length>0&&r.push(o),r}function ib(e,t){let n=[],a=[];for(let r=0;r0?gt){let b=[];dl(T,t,b);for(let S=0;S0&&g{let i=e.lastIndexOf(u,t);return i>o?i:o},-1);if(r===-1){let o=e.slice(0,t);if(o&&!o.trim())return;n.push({text:o,prefix:"",suffix:""}),e.length>t&&dl(e.slice(t),t,n)}else{let o=e.slice(0,r+1);if(o&&o.trim()==="")return;o.startsWith(" ")?n.push({text:o.slice(1),prefix:" ",suffix:""}):n.push({text:o,prefix:"",suffix:""}),r+10){l.forEach(g=>{c.length>0&&g.providers&&g.providers.length>0&&!g.providers.includes(s)||(g.optional?p.push(g):f.push(g))});let m=p.concat(f).filter(g=>g.required);if(m.length>0){for(let g of m)if(!r[g.name]){i=!1;break}}}return{...a,id:t,selected:n[e]===t,ok:i,currentProvider:s,config:r,providers:a.providers||[],props:a.props||[],allProps:l,optionalProps:p,explicitProps:f}}var Ci=(e,t)=>{let{config:n}=e,a=n.alpha,r=n.beta,o=n.canary,u=n.debug,i=e.user,s=Xt(i);return Object.keys(Mn).filter(l=>{let f=Mn[l];if(l.startsWith("mock"))return u?!0:l===e.config[t];if(l===e.config[t])return!0;if(l==="openai"&&ot())return e.config.showOpenaiOnSafari||s?!0:!!(r||a||o||s);let p=!!f.canary,m=!!f.alpha,g=!!f.beta;return l===e[t]||p&&o||m&&(a||o)||g&&(r||a||o)?!0:!m&&!g&&!p}).map(l=>gl(t,l,e))};function Fn(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}h();h();h();h();h();h();h();h();h();var kA=Vm(2),Gm=Vm(3);function Vm(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let a=[];if(n==null)return a;let r=typeof n.slice=="function"?n:String(n),o=r.length-e+1;if(o<1)return a;for(;o--;)a[o]=r.slice(o,o+e);return a}}h();var sb=/\s+/g,lb=/[\t\n\v\f\r ]+/g;function Ym(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?cb:db;return String(e).replace(t.style==="html"?lb:sb,t.trim?gb(n):n)}function cb(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function db(){return" "}function gb(e){return t;function t(n,a,r){return a===0||a+n.length===r.length?"":e(n)}}var Jm={}.hasOwnProperty;function mb(e){return e==null?"":Ym(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function pb(e){return Gm(" "+mb(e)+" ")}function fb(e){let t=pb(e),n={},a=-1;for(;++an&&(n=o,a=r)}return[a,n]}function Cb(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function vb(e,t,n,a){t=Ab(t,n,a);let r=[],o;if(t)for(o in t)vi.call(t,o)&&r.push([o,wb(e,t[o])]);return r.length===0?pl():r.sort(kb)}function wb(e,t){let n=0,a=-1;for(;++at.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharactersu+i.length,0));let o=e.length-a;for(let u of Ib){let i=u[1],s=u[0],c=e.match(i),l=c?c.length:0;l>n&&(n=l,t=s)}return n*2.5/o>.5?t==="zh-CN"?rp(e)?"zh-TW":"zh-CN":t:"auto"}var up=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],fl=new Map(up),Ob=new Map(up.map(([e,t])=>[t,e]));function ip(e,t,n=["en"]){if(!e)return"auto";let a=n.map(i=>Ob.get(i));!t&&t!==0&&(t=25);let r=Ai(e);if(r!=="auto")return r;let o={minLength:t,whitelist:[...fl.keys()]},u=Xm(e,o);if(u&&u.length>0){for(let[l,f]of u)if(a.includes(l)&&f>.5)return fl.get(l);let[i,s]=u[0],c=fl.get(i);if(c&&s>.5)return c}return"auto"}h();h();function Sa(e,t){var n=(e&65535)+(t&65535),a=(e>>16)+(t>>16)+(n>>16);return a<<16|n&65535}function Nb(e,t){return e<>>32-t}function Si(e,t,n,a,r,o){return Sa(Nb(Sa(Sa(t,e),Sa(a,o)),r),n)}function Rt(e,t,n,a,r,o,u){return Si(t&n|~t&a,e,t,r,o,u)}function It(e,t,n,a,r,o,u){return Si(t&a|n&~a,e,t,r,o,u)}function Ot(e,t,n,a,r,o,u){return Si(t^n^a,e,t,r,o,u)}function Nt(e,t,n,a,r,o,u){return Si(n^(t|~a),e,t,r,o,u)}function ki(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,a,r,o,u,i=1732584193,s=-271733879,c=-1732584194,l=271733878;for(n=0;n>5]>>>t%32&255);return n}function hl(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(a=ki(a,e.length*8)),n=0;n<16;n+=1)r[n]=a[n]^909522486,o[n]=a[n]^1549556828;return u=ki(r.concat(hl(t)),512+t.length*8),sp(ki(o.concat(u),512+128))}function lp(e){var t="0123456789abcdef",n="",a,r;for(r=0;r>>4&15)+t.charAt(a&15);return n}function bl(e){return unescape(encodeURIComponent(e))}function cp(e){return Ub(bl(e))}function zb(e){return lp(cp(e))}function dp(e,t){return jb(bl(e),bl(t))}function Hb(e,t){return lp(dp(e,t))}function Da(e,t,n){return t?n?dp(t,e):Hb(t,e):n?cp(e):zb(e)}var Or=[];async function Yo(e,t){return await new Promise((n,a)=>{let r=e,o=1,u=indexedDB.open(r,o);u.onsuccess=i=>{n(u.result)},u.onerror=i=>{a()},u.onupgradeneeded=i=>{let s=u.result,c=t||"cache";s.createObjectStore(c,{keyPath:"key"})}})}async function yl(e){let t=`${X}-${e.service}@${e.from}->${e.to}`;return await Wb(t,e)}async function xl(e){let t=Da(e.originalText),n=`${X}-${e.service}@${e.from}->${e.to}`;return await qb(n,t)}async function qb(e,t){let n=await Yo(e);return await new Promise((a,r)=>{if(!n)return r();let o="cache",i=n.transaction([o],"readonly").objectStore(o).get(t);i.onsuccess=s=>{n.close();let c=i.result;a(c)},i.onerror=s=>{n.close(),r()}})}async function Wb(e,t){let n=await Yo(e);return(await Tl()).includes(e)||await Kb(e),await new Promise(r=>{if(!n)return r(!1);let o="cache",i=n.transaction([o],"readwrite").objectStore(o).put(t);i.onsuccess=s=>{n.close(),r(!0)},i.onerror=s=>{n.close(),r(!1)}})}async function Kb(e){let t="cache_list",n=await Yo(X+"-cacheList",t),r=n.transaction([t],"readwrite").objectStore(t).put({key:e});r.onsuccess=o=>{n.close(),Or.push(e)},r.onerror=o=>{n.close()}}async function Tl(){if(Or&&Or.length>0)return Or;let e=await Yo(X+"-cacheList","cache_list");return Or=await new Promise(t=>{let n="cache_list",r=e.transaction([n],"readonly").objectStore(n).getAllKeys();r.onsuccess=o=>{e.close(),t(r.result)},r.onerror=o=>{e.close(),t([])}}),Or}async function El(){try{let e=[];(await Tl()).forEach(a=>{e.push($b(a))});let n=await Promise.all(e);return Go(n.reduce((a,r)=>a+r,0))}catch{return Go(0)}}async function $b(e){let t=await Yo(e),a=[...t.objectStoreNames].reduce((u,i)=>{let s=Gb(t,i);return u.push(s),u},[]),r=await Promise.all(a);return t.close(),r.reduce((u,i)=>u+i,0)}async function Gb(e,t){return await new Promise((n,a)=>{if(e==null)return a();let r=0,o=e.transaction([t]).objectStore(t).openCursor();o.onsuccess=u=>{let i=o.result;if(i){let s=i.value,c=JSON.stringify(s);r+=c.length,i.continue()}else n(r)},o.onerror=u=>a("error in "+t+": "+u)})}async function gp(){try{let t=(await Tl()).map(a=>Vb(a));return!!(await Promise.all(t)).every(a=>a)}catch{return!1}}async function Vb(e){return await new Promise(t=>{let n=indexedDB.deleteDatabase(e);n.onsuccess=()=>{t(!0)},n.onerror=a=>{t(!1)}})}h();h();h();var mp="G-MKMD9LWFTR";async function et(e,t,n){try{let a=Ke();if(a.INSTALL_FROM==="firefox_store")return;let o=me(),u=mt(),i=a.PROD==="1",s=`report_${e}`,c=e.endsWith("_daily");if(c){if(u)return;let x=await sa(s,0),v=Di(new Date(x)),C=Date.now(),R=Di(new Date(C));if(v===R)return;await Om(s,C)}else if(!n.config.telemetry)return;let l="sitc4WmvShWYwfU0dANM3Q",f=await Ht("fakeUserId","");f||(f=await sa("fakeUserId",""),f&&await $e("fakeUserId",f));let p=hn(),m=new Date,g=await Ht("installedAt","");g||(g=await sa("installedAt",""),g&&await $e("installedAt",g)),f?g||(g=new Date(0).toISOString(),await $e("installedAt",g)):(f=Yb(32),await $e("fakeUserId",f)),g||(g=m.toISOString(),await $e("installedAt",g));let T=new Date(g),w=Di(T),b=Di(m),S=w===b,D=m.getTime()-T.getTime()<7*24*60*60*1e3,N=`https://www.google-analytics.com/mp/collect?measurement_id=${mp}&api_secret=${l}`;i||(N=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${mp}&api_secret=${l}`);let _=Tr.parse(window.navigator.userAgent),y=t.map(x=>{let v=x.params||{};if(_.os&&(v.os_name=_.os.name||"unknown",v.os_version=_.os.version||"unknown",v.os_version_name=_.os.versionName||"unknown"),_.browser&&(v.browser_name=_.browser.name||"unknown",v.browser_version=_.browser.version||"unknown"),_.platform&&(v.platform_type=_.platform.type||"unknown"),_.engine&&(v.engine_name=_.engine.name||"unknown",v.engine_version=_.engine.version||"unknown"),n.translationService&&(v.translation_service||(v.translation_service=n.translationService),n.config.translationServices&&n.config.translationServices[n.translationService]&&(n.config.translationServices[n.translationService].provider&&(v.translation_service_provider=n.config.translationServices[n.translationService].provider),n.translationService==="openai"&&n.config.translationServices[n.translationService].provider==="custom"&&(n.config.translationServices[n.translationService].apiUrl?n.config.translationServices[n.translationService].apiUrl.startsWith("https://api.openai.com/")?v.openai_is_official="1":v.openai_is_official="0":v.openai_is_official="1"))),n.targetLanguage&&(v.target_language=n.targetLanguage),n.config.interfaceLanguage&&(v.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?v.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":v.enable_default_always_translated_urls="0",p&&(v.version=p),n.config.enableInputTranslation?v.enable_input_translation=n.config.enableInputTranslation?"1":"0":v.enable_input_translation="0",n.config.translationTheme&&(v.translation_theme=n.config.translationTheme),n.config.alpha&&(v.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?v.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):v.always_translate_languages="none",a.INSTALL_FROM&&(v.install_from=a.INSTALL_FROM),n.config.beta&&(v.beta=n.config.alpha.toString()),n.config.translationArea&&(v.translation_area=n.config.translationArea),n.rule&&n.rule.enableSearchEnhancement!==void 0&&(v.enable_search_enhancement=n.rule.enableSearchEnhancement?"1":"0"),w&&(v.install_day=Jb(T)),n.user){let R=fm(n.user);R&&Object.keys(R).forEach(M=>{v[M]=R[M]})}else v.user_type="anonymous";n.config.translationMode&&(v.translation_mode=n.config.translationMode),v.userscript=o.toString(),S?v.is_new_user_today="1":v.is_new_user_today="0",D?v.is_new_user_this_week="1":v.is_new_user_this_week="0",n.config.tempTranslateDomainMinutes?v.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():v.temp_translate_domain_minutes="0";let C="html";if(n.rule.isEbook?C="ebookReader":n.rule.isPdf?C="pdfReader":n.rule.isEbookBuilder?C="ebookBuilder":n.rule.isSubtitleBuilder&&(C="subtitleBuilder"),v.page_type=C,u?v.main_frame=0:v.main_frame=1,!c){let R=n.url;try{let M=new URL(R);v.site_host=M.hostname}catch{v.site_host="unknown"}n.sourceLanguage&&(v.source_language=n.sourceLanguage)}return{...x,params:v}}),E=await se({responseType:"text",url:N,method:"POST",body:JSON.stringify({client_id:f,user_id:f,events:y})})}catch{}}function Yb(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;rt.removeEventListener("message",n)),e.length=0}function ey(e,t,n,a){return new Promise(r=>{let o=u=>{let i=u.data;Zb(t,n,i)&&i.id===a&&(e.removeEventListener("message",o),r(i.response))};e.addEventListener("message",o)})}function ty(e,t,n,a){let r=o=>{let u=o.data;yp(t,"tell",n,u)&&a(u.body)};return e.addEventListener("message",r),[e,r]}function pp(e,t,n,a,r,o){let u=async i=>{let s=i.data;if(yp(n,"ask",a,s)){let c=await o(s.body);t=i.source,t.postMessage(Qb(n,a,s.id,c),i.origin)}};return e.addEventListener("message",u),[e,u]}function ny(e,t,n,a,r){let o=Math.random().toString();return e.postMessage(bp(t,"tell",n,o,a),r)}async function fp(e,t,n,a,r,o,u){let i=Math.random().toString(),s=new Promise(async(c,l)=>{let f=setTimeout(()=>l(new Error(`Failed to get response within ${u}ms`)),u),p=await ey(e,n,a,i);clearTimeout(f),c(p)});return t.postMessage(bp(n,"ask",a,i,r),o),s}var Ma=class e{constructor(t,n,a=window,r="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=a;this.targetOrigin=r;pp(a,n,this.getSystemProtocol("ping"),"ping",r,()=>Promise.resolve({}))}static async connect(t,n=10,a=500){for(let r=0;r<=n;r++)try{return await t.ping({timeout:a}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*a}ms`)}static parent(t,n,a="*",r=window){let o=n.contentWindow;if(La(o))return new e(t,o,r,a);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:a=window,targetWindow:r=window.parent}={}){return new e(t,r,a,n)}static rootIframe(t,n="*",{thisWindow:a=window}={}){return new e(t,null,a,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await fp(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(ty(this.thisWindow,this.protocol,t,n))}tell(t,n){ny(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(pp(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,a=1e4){if(this.targetWindow)return fp(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,a);throw new Error("target window is requried")}destroy(){Xb(this.listeners)}};var xp;async function Tp(){if(mt()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=Ma.iframe(ni,"*",{targetWindow:t});xp=n,await Ma.connect(n).catch(a=>{z.error("connect with parent frame error",a)})}}function Li(){return xp}h();function Ep(e,t){let n=t.matches||[],a=t.excludeMatches||[];if(a&&!Array.isArray(a)&&(a=[a]),n&&!Array.isArray(n)&&(n=[n]),a.length>0){if(a.includes(e)||a.includes(""))return!1;for(let r of a)if(r.includes("*")&&new RegExp(r).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let r of n)if(r.includes("*")&&new RegExp(r).test(e))return!0}return!1}h();h();var ay=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function _n(e,t){if(t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function Cl(e,t,n){let{blockSelectors:a,extraBlockSelectors:r,extraInlineSelectors:o}=t;if(_n(e,o))return!1;if(_n(e,r)||e.nodeName.toLowerCase()==="br")return!0;let s=null;return e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(s=e.parentNode.immersiveTranslateComputedStyle),s&&s.display&&s.display==="inline-flex"?!1:n&&n.display?!!ay.includes(n.display):_n(e,a)}var qt=_n;function Xa(e){return!!e.shadowRoot}function Pa(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function Jo(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Mi(e){let t=Ka;return e&&(t=e),t}function Pi(e,t){return ka(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function ry(e){let{rule:t}=e,n=e.config.loadingTheme;return` <${t.targetWrapperTag} class="${X}-loading-${n} notranslate">`}function Qo(e,t){let n=e.rule,a=document.createElement(n.targetWrapperTag);a.classList.add("notranslate",un),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),pt(a,Ng,t.toString());let r=ry(e);return a.append(Ne.sanitize(r,{RETURN_DOM_FRAGMENT:!0})),a}function Nr(e,t){return e.querySelector(`[${U0}='${t}']`)}function Cp(){document.querySelectorAll(`[${U0}]`).forEach(t=>{t.remove()})}function vp(){document.querySelectorAll(`.${un}-error`).forEach(t=>{t.remove()})}function wp(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{Mr(n)&&t.push(n)}),t}function Ap(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:a,delimiters:r,text:o}=e,u=new RegExp(`${r[0]}(\\d+)${r[1]}`,"gi");if(r.length>2){let s=r[2];u=new RegExp(`<${s}(\\d+)>(.*?)`,"gi")}let i=o.trim();return i=i.replace(u,""),i=i.trim(),i===""||i.length===1&&i.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(o)||i.includes("")||i.includes("< styles>")||cm(i)||um(i)||lm(i)||im(i)||sm(i)||u.test(i)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(i)?!1:oi(o,n,a)}function Bn(e){return e.nodeType===Node.ELEMENT_NODE}function kp(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}function Sp(e){try{let t=Math.floor((new Date-new Date(e))/1e3);return t<60?`${t} \u79D2\u524D`:t<3600?`${Math.floor(t/60)} \u5206\u949F\u524D`:t<86400?`${Math.floor(t/3600)} \u5C0F\u65F6\u524D`:`${Math.floor(t/86400)} \u5929\u524D`}catch{return e}}function Dp(e){let t=new Date(e),n=t.getFullYear(),a=t.getMonth()+1,r=t.getDate(),o=t.getHours(),u=t.getMinutes(),i=t.getSeconds();return`${n}/${a}/${r} ${o}:${u}:${i}`}async function Lp(e){let n=Ke().INSTALL_FROM,a=hn(),r=await Ht("installedAt",""),o=await Ht("fakeUserId","");return{installFrom:n,version:a,installedAt:r,interfaceLang:e,deviceId:o}}var oy=1e5;function Fa(e){let{onParagraph:t,filterRule:n,id:a}=e;n=uy(n);let{stayOriginalSelectors:r,globalStyles:o,selectors:u,isTransformPreTagNewLine:i,lineBreakMaxTextCount:s,globalAttributes:c,isModifyImage:l,skipEditableCheck:f}=n,p={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},m=!1,g=null;function T(_){let{container:y,onFrame:E,onIgnoreElement:x,id:v}=_,C=document.createTreeWalker(y,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,k=>{let P=M(k);return P==NodeFilter.FILTER_ACCEPT?tn.mark(k,v,f):P==NodeFilter.FILTER_REJECT,P}),R=y;if(M(R)===NodeFilter.FILTER_REJECT)return;for(tn.mark(R,v,f);R;){if(u&&u.length>0){let{currentNode:k,isMatchedSelection:P}=w(C,R,u);if(k)R=k;else break;if(!P)continue}if(R.nodeType===Node.ELEMENT_NODE||R.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let k=R;if(k.nodeName==="IFRAME"){E&&E(k),b(),vl(p,!0),R=C.nextNode();continue}k.nodeType===Node.ELEMENT_NODE&&(o&&Al(k,o),c&&Sl(k,c));let P=Cl(k,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},k.immersiveTranslateComputedStyle||null);if(qt(k,r)&&!P){S(k);let B=null;for(;!(B=C.nextSibling())&&C.parentNode(););R=B;continue}let O=Xa(k);(!Mp(p,k)||P)&&(b(),k.childNodes.length>0&&D(p,k,k.immersiveTranslateComputedStyle||null)),O&&k.shadowRoot?.mode==="open"&&(P?E?.(k.shadowRoot):T({..._,container:k.shadowRoot})),k.nodeType===Node.ELEMENT_NODE&&k.nodeName==="PRE"&&i&&cy(k)}else if(R.nodeType===Node.TEXT_NODE)S(R);else throw new Error("should not be here");R=C.nextNode(),p.commonAncestorContainer&&R&&R.parentNode===p.commonAncestorContainer&&(p._currentStacks=[]),p.commonAncestorContainer&&R&&R.nodeType===Node.ELEMENT_NODE&&p._currentStacks.push(R)}function M(k){if(k.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Bn(k)){if(c){let B=Object.keys(c);if(B.length>0&&qt(k,B))for(let L of B){let U=c[L];if(k.matches(L)){let K=c[L],H=Object.keys(K);for(let V of H){let q=K[V];k.getAttribute(V)!==q&&(q===null?k.removeAttribute(V):k.setAttribute(V,q))}break}}}if(!_.force&&tn.isMarked(k,v)||kp(k,v)||Dl(k,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,stayOriginalSelectors:r})||k.nodeName==="IFRAME"&&!Mr(k))return NodeFilter.FILTER_REJECT;let P=k.getBoundingClientRect(),{width:O,height:j}=P;if(k.nodeType===Node.ELEMENT_NODE){let B=window.getComputedStyle(k);if(k.immersiveTranslateComputedStyle={display:B.display,whiteSpace:B.whiteSpace,left:P.left+"px",right:P.right+"px",top:P.top+"px",bottom:P.bottom+"px"},kl(k.immersiveTranslateComputedStyle))return x&&x(k),NodeFilter.FILTER_REJECT;let A=Cl(k,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},k.immersiveTranslateComputedStyle||null);if(qt(k,r)&&A)return NodeFilter.FILTER_REJECT}return k.nodeName==="IMG"&&(O>48&&j>48?k.immersiveTranslateComputedStyle={display:"block"}:O>0&&j>0&&l!==!1&&(k.setAttribute("width",O),k.setAttribute("height",j))),!k.childNodes||k.childNodes&&k.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!p.isPreWhitespace&&(O>0&&O<4||j>0&&j<4)&&(k.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(k.nodeType===Node.TEXT_NODE){let P=k.textContent?.trim();if(!P)return p.isPreWhitespace?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let O=k.parentNode;if(O.getBoundingClientRect){let{width:j,height:B}=O.getBoundingClientRect();if(j>0&&j<4||B>0&&B<4)return NodeFilter.FILTER_REJECT}return s>0&&P.length>=s&&wl(k,s),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}T(e),p&&p.commonAncestorContainer&&p.flatNodes.length>0&&b();function w(_,y,E){let x=y.immersiveTranslateComputedStyle||null;if(g){if(!g.contains(y))if(m=!1,y&&y.nodeType===Node.ELEMENT_NODE)if(Fi(y,E))m=!0,g=y,b(),D(p,g,x);else return m=!1,y=_.nextNode(),{currentNode:y,isMatchedSelection:m};else return m=!1,y=_.nextNode(),{currentNode:y,isMatchedSelection:m}}else if(y&&y.nodeType===Node.ELEMENT_NODE)if(Fi(y,E))m=!0,g=y,b(),D(p,g,x);else return m=!1,y=_.nextNode(),{currentNode:y,isMatchedSelection:m};else return m=!1,y=_.nextNode(),{currentNode:y,isMatchedSelection:m};return{currentNode:y,isMatchedSelection:!0}}function b(){let _=ly(p,a);_&&t&&t(_),vl(p)}function S(_){if(!Mp(p,_)){b(),vl(p);let y=_.parentNode;y&&D(p,y,y.computedStyle)}p.flatNodes.push(_)}function D(_,y,E){_.commonAncestorContainer=y;let x=N(E);_.isPreWhitespace=x}function N(_){return _&&_.whiteSpace&&_.whiteSpace.startsWith("pre")||_&&_.whiteSpace==="break-spaces"||!1}}function Mp(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Xa(t));let a=sy(e),r=!0;return!n&&!a&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?r=!0:e.commonAncestorContainer&&(r=!1,e._currentStacks=[])),r}function uy(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let a=n!=="iframe";return t?a&&n!=="pre":a}),e}function iy(e,t,n){if(t){for(let a of t.childNodes)if(a.contains(n))return a}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function Al(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let r of n){let o=t[r];if(e.matches(r)){let u=e.style.cssText||"";u&&(u=u.trim()),u&&!u.endsWith(";")&&(u+=";"),e.style.cssText=u+o;break}}}}function sy(e){return e&&e._currentStacks?e._currentStacks.some(t=>Xa(t)):!1}function ly(e,t){let{flatNodes:n,commonAncestorContainer:a}=e;if(a&&n.length>0){if(!n.map(p=>p.textContent?.trim()||"").join(""))return null;if(n.length===1)return{ctxId:t,stepState:1,commonAncestorContainer:n[0].parentNode,rootNodes:[n[0]],flatNodes:n,isPreWhitespace:e.isPreWhitespace,variables:{}};let o=dy(n,a);o||(o=a);let u=[];for(let p of n){let m=iy(e,o,p);m&&(u.includes(m)||u.push(m))}if(u.length<1)return null;let i=u[0],s=u[u.length-1],c=[],l=i,f=0;for(;l&&(c.push(l),l!==s);){if(f++,f>oy){z.warn("loop too many times for convert root nodes, break");break}l=l.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:n,commonAncestorContainer:o,variables:{},isPreWhitespace:e.isPreWhitespace}}else return null}function vl(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function kl(e){let t=e.top?parseInt(e.top):0,n=e.left?parseInt(e.left):0,a=e.right?parseInt(e.right):0,r=e.bottom?parseInt(e.bottom):0;return isNaN(t)&&(t=0),isNaN(n)&&(n=0),isNaN(a)&&(a=0),isNaN(r)&&(r=0),e.display==="none"||t<-1e3||n<-1e3||a<-1e3||r<-1e3}var tn={_marked_key:"immersive_translate_walked",isMarked(e,t){return V0(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Xa(e)))return ii(e,this._marked_key)},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Xa(e)))return pt(e,this._marked_key,t,!1,n)},markWalk(e,t,n){if(!e||e.nodeType!==Node.ELEMENT_NODE||this.isSkipMarkEle(e))return;let a=Dr(e,"markWalk")||"";return pt(e,"markWalk",a+","+t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Xa(e)):!1}};function cy(e){let n=e.innerHTML.replace(/\n\n/g,"
");e.innerHTML=Ne.sanitize(n)}function dy(e,t){if(!e.length)return null;let n=e.map(a=>{let r=new Set;for(;(a=a.parentNode)&&(r.add(a),a!==t););return r});for(let a of n[0])if((a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&n.every(r=>r.has(a)))return a;return null}function wl(e,t){let n=e.textContent||"";if(n.trim().length<=t)return;let o=[". ","? ","! ","\u3002","\uFF1F","\uFF01"].reduce((u,i)=>{let s=n.lastIndexOf(i,t);return s>u?s:u},-1);if(o>1){let u=n[o-1]||"",i=n[o-2]||"",s=n[o+1]||"";u==="."||s==="."||s===")"||i==="."&&u==="S"||i.toUpperCase()==="M"&&(u.toUpperCase()==="R"||u.toUpperCase()==="S")?o=-1:isNaN(Number(u))||(o=-1)}if(o===-1)n.length>t+20&&wl(e,t+20);else{let u=n.slice(o+1);o++,u.startsWith(" ")&&o++;let i=e.splitText(o),s=document.createElement("br");i.parentNode?.insertBefore(s,i),o+10)for(let a of n){let r=t[a],o=Object.keys(r),u=nm(e,[a]);for(let i of u)for(let s of o){let c=r[s];i.getAttribute(s)!==c&&(c===null?i.removeAttribute(s):i.setAttribute(s,c))}}}function Fp(e,t,n,a,r,o){let u=Object.keys(t);if(u.length>0)for(let i of u){let s=t[i],c=Object.keys(s),l=e.querySelector(i);if(l)for(let f of c){let p=s[f];if(f==="translate"&&p==="no"){let g=l.innerText||l.textContent||"";if(!g.trim()||gy(l,r,o)||!rm(g,n,a))continue}l.getAttribute(f)!==p&&(p===null?l.removeAttribute(f):l.setAttribute(f,p))}}}function Sl(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let r of n){let o=t[r];if(e.matches(r)){let u=t[r],i=Object.keys(u);for(let s of i){let c=u[s];e.getAttribute(s)!==c&&(c===null?e.removeAttribute(s):e.setAttribute(s,c))}break}}}}function Dl(e,t){return qt(e,t.excludeSelectors||[])?qt(e,t.selectors||[])?!1:!qt(e,t.stayOriginalSelectors||[]):!1}function Fi(e,t){if(t.length===0)return!1;let n=t.filter(a=>!a.endsWith("*")).map(a=>a+" *");return qt(e,t.concat(n))}function gy(e,t,n){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,r=>NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let r=a.currentNode;if(r.nodeType===Node.TEXT_NODE&&parent){let o=r.textContent||"";if(o.includes("Copyright"))continue;if(oi(o,t,n))return!0}}return!1}h();h();var _p=["*://*/*","*","*://*"],Rp="immersive-translate-wildcard-placeholder.com";function Ll(e,t){let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(u=>_p.includes(u)))return e;let a=new URL(e);a.hash="",a.search="";let r=a.href,o=a.hostname;if(n&&n.length>0){let u=n.find(i=>{let s=i;if(i===o)return!0;if(_p.includes(i))return!0;if(!i.includes("*")&&i.includes("://")){try{let c=new URL(i);return c.pathname==="/"&&!i.endsWith("/")?c.hostname===o:py(r,i)}catch{}return!1}else{let c,l=i;if(i.includes("://")){let w=i.split("://");c=w[0],c==="*"&&w.length>1&&(c="*",i="https://"+w[1])}else c="*",i="https://"+i;let f=i.replace(/\*/g,Rp),p;try{p=new URL(f)}catch{return z.debug("invalid match pattern",f,"raw match value:",l),!1}let m=p.hostname,g=p.pathname;g==="/"&&(l.replace("://","").includes("/")||(g="/*"));let T=my(c+":",Bp(m),Bp(g));if(T){let w=new URL(r);return w.port="",T.test(w.href)}else return!1}});if(u)return u}return null}function Bp(e){return e.replaceAll(Rp,"*")}function my(e,t,n){let a="^";return e==="*:"?a+="(http:|https:|file:)":a+=e,a+="//",t&&(e==="file:"||(t==="*"?a+="[^/]+?":(t.match(/^\*\./)&&(a+="[^/]*?",t=t.substring(2)),a+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?a+="(/.*)?":n.includes("*")?(a+=n.replace(/\*/g,".*?"),a+="/?"):a+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):a+="/?",a+="$",new RegExp(a)}function Vn(e,t){return Ll(e,t)!==null}function py(e,t){let n=new URL(e),a=new URL(t);return n.hostname===a.hostname&&n.pathname===a.pathname&&n.protocol===a.protocol&&n.port===a.port}h();h();var Ur="input is invalid type",Ml=typeof window=="object",_a=Ml?window:{};_a.JS_SHA256_NO_WINDOW&&(Ml=!1);var fy=!Ml&&typeof self=="object",hy=!_a.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;hy?_a=global:fy&&(_a=self);var eS=!_a.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,tS=typeof define=="function"&&define.amd,Zo=!_a.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",de="0123456789abcdef".split(""),by=[-2147483648,8388608,32768,128],Rn=[24,16,8,0],_i=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Bi=["hex","array","digest","arrayBuffer"],vt=[];(_a.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});Zo&&(_a.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var Ip=function(e,t){return function(n){return new wt(t,!0).update(n)[e]()}},Np=function(e){var t=Ip("hex",e);t.create=function(){return new wt(e)},t.update=function(r){return t.create().update(r)};for(var n=0;n>2]|=e[r]<>2]|=a<>2]|=(192|a>>6)<>2]|=(128|a&63)<=57344?(i[o>>2]|=(224|a>>12)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<>2]|=(240|a>>18)<>2]|=(128|a>>12&63)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<=64?(this.block=i[16],this.start=o-64,this.hash(),this.hashed=!0):this.start=o}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};wt.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=by[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};wt.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,o=this.h5,u=this.h6,i=this.h7,s=this.blocks,c,l,f,p,m,g,T,w,b,S,D;for(c=16;c<64;++c)m=s[c-15],l=(m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3,m=s[c-2],f=(m>>>17|m<<15)^(m>>>19|m<<13)^m>>>10,s[c]=s[c-16]+l+s[c-7]+f<<0;for(D=t&n,c=0;c<64;c+=4)this.first?(this.is224?(w=300032,m=s[0]-1413257819,i=m-150054599<<0,a=m+24177077<<0):(w=704751109,m=s[0]-210244248,i=m-1521486534<<0,a=m+143694565<<0),this.first=!1):(l=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),f=(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7),w=e&t,p=w^e&n^D,T=r&o^~r&u,m=i+f+T+_i[c]+s[c],g=l+p,i=a+m<<0,a=m+g<<0),l=(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10),f=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),b=a&e,p=b^a&t^w,T=i&r^~i&o,m=u+f+T+_i[c+1]+s[c+1],g=l+p,u=n+m<<0,n=m+g<<0,l=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),f=(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7),S=n&a,p=S^n&e^b,T=u&i^~u&r,m=o+f+T+_i[c+2]+s[c+2],g=l+p,o=t+m<<0,t=m+g<<0,l=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),f=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),D=t&n,p=D^t&a^S,T=o&u^~o&i,m=r+f+T+_i[c+3]+s[c+3],g=l+p,r=e+m<<0,e=m+g<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+a<<0,this.h4=this.h4+r<<0,this.h5=this.h5+o<<0,this.h6=this.h6+u<<0,this.h7=this.h7+i<<0};wt.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,o=this.h5,u=this.h6,i=this.h7,s=de[e>>28&15]+de[e>>24&15]+de[e>>20&15]+de[e>>16&15]+de[e>>12&15]+de[e>>8&15]+de[e>>4&15]+de[e&15]+de[t>>28&15]+de[t>>24&15]+de[t>>20&15]+de[t>>16&15]+de[t>>12&15]+de[t>>8&15]+de[t>>4&15]+de[t&15]+de[n>>28&15]+de[n>>24&15]+de[n>>20&15]+de[n>>16&15]+de[n>>12&15]+de[n>>8&15]+de[n>>4&15]+de[n&15]+de[a>>28&15]+de[a>>24&15]+de[a>>20&15]+de[a>>16&15]+de[a>>12&15]+de[a>>8&15]+de[a>>4&15]+de[a&15]+de[r>>28&15]+de[r>>24&15]+de[r>>20&15]+de[r>>16&15]+de[r>>12&15]+de[r>>8&15]+de[r>>4&15]+de[r&15]+de[o>>28&15]+de[o>>24&15]+de[o>>20&15]+de[o>>16&15]+de[o>>12&15]+de[o>>8&15]+de[o>>4&15]+de[o&15]+de[u>>28&15]+de[u>>24&15]+de[u>>20&15]+de[u>>16&15]+de[u>>12&15]+de[u>>8&15]+de[u>>4&15]+de[u&15];return this.is224||(s+=de[i>>28&15]+de[i>>24&15]+de[i>>20&15]+de[i>>16&15]+de[i>>12&15]+de[i>>8&15]+de[i>>4&15]+de[i&15]),s};wt.prototype.toString=wt.prototype.hex;wt.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,o=this.h5,u=this.h6,i=this.h7,s=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,a>>24&255,a>>16&255,a>>8&255,a&255,r>>24&255,r>>16&255,r>>8&255,r&255,o>>24&255,o>>16&255,o>>8&255,o&255,u>>24&255,u>>16&255,u>>8&255,u&255];return this.is224||s.push(i>>24&255,i>>16&255,i>>8&255,i&255),s};wt.prototype.array=wt.prototype.digest;wt.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function Ri(e,t,n){var a,r=typeof e;if(r==="string"){var o=[],u=e.length,i=0,s;for(a=0;a>6,o[i++]=128|s&63):s<55296||s>=57344?(o[i++]=224|s>>12,o[i++]=128|s>>6&63,o[i++]=128|s&63):(s=65536+((s&1023)<<10|e.charCodeAt(++a)&1023),o[i++]=240|s>>18,o[i++]=128|s>>12&63,o[i++]=128|s>>6&63,o[i++]=128|s&63);e=o}else if(r==="object"){if(e===null)throw new Error(Ur);if(Zo&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!Zo||!ArrayBuffer.isView(e)))throw new Error(Ur)}else throw new Error(Ur);e.length>64&&(e=new wt(t,!0).update(e).array());var c=[],l=[];for(a=0;a<64;++a){var f=e[a]||0;c[a]=92^f,l[a]=54^f}wt.call(this,t,n),this.update(l),this.oKeyPad=c,this.inner=!0,this.sharedMemory=n}Ri.prototype=new wt;Ri.prototype.finalize=function(){if(wt.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();wt.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),wt.prototype.finalize.call(this)}};var jr=Np();jr.sha256=jr;jr.sha224=Np(!0);jr.sha256.hmac=Up();jr.sha224.hmac=Up(!0);var jp=jr;var zp=jp.sha256;function In(e){return Promise.resolve(zp(e))}function Ii(e){return Array.from(new Uint8Array(e)).map(a=>a.toString(16).padStart(2,"0")).join("")}function Ba(e,t){let n=zp.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function Hp(e,t){let n=await Ba(e,t);return Ii(n)}async function Oi(e,t){let n=yy(t),a=await Ba(e,n);return Ii(a)}function yy(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}h();var Wp="auto",Ni="auto",qp="auto";function Kp(e){Wp=e}function xn(e){Ni=e}function Dt(){return Ni!=="auto"?Ni:qp!=="auto"?qp:Wp}function Ui(){return Ni}async function Lt(e){let{url:t,config:n,state:a}=e,r=new URL(t),o="auto",{translationParagraphLanguagePattern:u,translationService:i,translationServices:s,translationTheme:c,translationThemePatterns:l,translationUrlPattern:f,targetLanguage:p,sourceLanguageUrlPattern:m,immediateTranslationPattern:g}=n,T=zr(t,u),w=zr(t,g),b=i,S=Object.keys(s);for(let Y of S){let ce=s[Y];if(zr(t,ce)){b=Y;break}}let D=c,N=Object.keys(l);for(let Y of N){let ce=l[Y];if(ce&&zr(t,ce)){D=Y;break}}let _=zr(t,f),y=$p(t,f);y||(y=Vn(t,Qg)),y||(y=Vn(t,n.blockUrls));let E=$p(t,n.inputTranslationUrlPattern);E||(E=Vn(t,n.inputTranslationBlockUrls));let x=Vn(t,n.mutationBlockUrls),v=Object.keys(m),C={};for(let Y of v){let ce=m[Y];if(ce&&ce.matches)for(let fe of ce.matches)C[fe]=Y}let R=Object.keys(C),M=Ll(t,R);M&&(o=C[M]??"auto",C[M]&&C[M]!=="auto"&&xn(C[M]));let k=p||"zh-CN",P=r.hostname,O=await In(P),j=r.pathname+r.search+r.hash,B=await In(j),A=`https://${O}.com/${B}`,L=await Gn(),U=await Km(),K=n.translationStartMode;K==="dynamic"&&w&&(K="immediate");let H=b;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(H=n.inputTranslationService);let V=b;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(V=n.mouseHoverTranslationService);let q={targetLanguage:k,config:n,translationService:b,inputTranslationService:H,mouseHoverTranslationService:V,isTranslateUrl:_,sourceLanguage:o,mainFrame:document.body,isTranslateExcludeUrl:y,isMutationTranslationExcludeUrl:x,isInputTranslationExcludeUrl:E,rule:n.generalRule,url:t,encryptedUrl:A,state:a?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:K,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:T,cache:n.cache,translationTheme:D},a):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:K,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:T,cache:n.cache,translationTheme:D},localConfig:L},oe=await Xe.get(xt,null);oe&&(q.user=oe),q.state.translationArea==="body"&&(q.config.generalRule.excludeTags=q.config.generalRule.excludeTags.filter(Y=>!q.config.generalRule.bodyTranslateTags.includes(Y)),q.config.generalRule.additionalExcludeSelectors=q.config.generalRule.additionalExcludeSelectors.filter(Y=>Y!==".btn"));let Z=n.translationServices[q.translationService]||{};Z.immediateTranslationTextCount!==void 0&&xy(Z.immediateTranslationTextCount)&&Z.immediateTranslationTextCount>=0&&(q.state.immediateTranslationTextCount=Z.immediateTranslationTextCount),q.translationService==="deepl"&&(Z&&Z.authKey&&Z.authKey.startsWith("immersive_")||Z&&Z.provider==="pro"&&q.user?.token)&&Z.immediateTranslationTextCountForImmersiveDeepl!==void 0&&Z.immediateTranslationTextCountForImmersiveDeepl>=0&&(q.state.immediateTranslationTextCount=Z.immediateTranslationTextCountForImmersiveDeepl),Z&&Z.translationDebounce&&typeof Z.translationDebounce=="number"&&(q.state.translationDebounce=Z.translationDebounce);let J=U.immediateTranslationTextCount;n.immediateTranslationTextCount!==J&&(q.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let ye=n.rules,xe;globalThis.PDFViewerApplication?xe=ye.find(Y=>Y.isPdf):globalThis.immersiveTranslateEbookViewer?xe=ye.find(Y=>Y.isEbook):globalThis.immersiveTranslateEbookBuilder?xe=ye.find(Y=>Y.isEbookBuilder):xe=ye.find(Y=>zr(t,Y)),q.state.translationArea==="body"&&(q.rule.paragraphMinTextCount=1,q.rule.paragraphMinWordCount=1),xe&&xe.isEbookBuilder&&(q.state.translationStartMode="immediate");let ie=n.generalRule;if(xe&&(q.rule=Ti(ie,xe)),q.rule.selectors.length>0&&(q.rule.paragraphMinTextCount=2,q.rule.paragraphMinWordCount=1),q.state.translationArea==="body"&&q.rule.excludeTags&&(q.rule.excludeTags=q.rule.excludeTags.filter(Y=>!q.rule.bodyTranslateTags.includes(Y)&&!q.rule.forceTranslateTags.includes(Y))),q.rule.mainFrameSelector){let Y=document.querySelector(q.rule.mainFrameSelector);Y&&(q.mainFrame=Y)}return q}function zr(e,t){if(!t)return!1;let{matches:n,excludeMatches:a,selectorMatches:r,excludeSelectorMatches:o}=t;return a&&a.length>0&&Vn(e,a)?!1:n&&n.length>0&&Vn(e,n)?!0:o&&o.length>0&&ui(o)?!1:!!(r&&r.length>0&&ui(r))}function $p(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:a}=t;return!!(n&&n.length>0&&Vn(e,n)||a&&a.length>0&&ui(a))}function xy(e){return typeof e=="number"}h();h();async function Gp(){let e="auto",t=[Ja(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await it({text:Sr(document.body),pageLangs:t})),e}h();h();h();function Hr(e,t,n=[],a){let r=["notranslate"];return a&&r.push($g),e&&(r.push(`${X}-target-translation-theme-${e}`),t?r.push(`${z0}-theme-${e}`):r.push(`${j0}-theme-${e}`)),n.length>0&&r.push(...n),t?r.push(z0):r.push(j0),r}function qr(e){let t=["notranslate",Wg];return e&&t.push(`${X}-target-translation-theme-${e}-inner`),t}function Vp(e,t,n){let{rule:a,state:r}=n,{translationTheme:o}=r,{variables:u,isVertical:i}=e;u=u||[];let{text:s}=t,{wrapperPrefix:c,wrapperSuffix:l}=a,f=Lr(n),p="afterend",m=f[0],g=f[1],T=`${m}(\\d+)${g}`,w=new RegExp(T,"g"),b=Ne.sanitize(s);u.length>0&&(b=b.replace(w,_=>{let y=b.indexOf(_),E=b[y-1]===" ",x=b[y+_.length]===" ",v=_.slice(f[0].length,-f[1].length),C=Number(v);if(isNaN(C))return _;let R=u[Number(C)];if(R&&R.type==="element"){let M=R.value.outerHTML;return E||(M=" "+M),x||(M=M+" "),M}else z.error("variable type not supported",R,_);return _}));let S=Hr(o,e.inline,a.translationClasses||[],e.preWhitespace);i&&S.push(Kg);let D=qr(o),N="";return a.translationBlockStyle&&(N=`style="${a.translationBlockStyle}"`),b=`<${n.rule.targetWrapperTag} ${N} class="${S.join(" ")}" ${$n}="1"><${a.targetWrapperTag} class="${D.join(" ")}" ${$n}="1">${b}`,e.inline||(c==="smart"?b=`
${b}`:b=`${c}${b}`),e.inline&&(c!=="smart"?b=`${c}${b}`:b=`<${a.targetWrapperTag} class="notranslate" ${$n}="1"> ${b}`),l==="smart"?b=`${b}`:b=`${b}${l}`,{html:b,position:p}}function ji(e,t){let n=null,{stayOriginalSelectors:a,delimiters:r,isPreWhitespace:o}=t,u=[],i={};for(let s=0;s2&&(w=`<${r[2]}${T}>`),i[T]=c,u.push({text:w,type:"variable"})}else u.push({text:c.textContent||"",type:"text"});else{let g=c.textContent||"";f&&(g=Pa(Pl(c))),u.push({text:g,type:"text"})}else if(c.nodeType===Node.ELEMENT_NODE)if(c&&qt(c,a)){let T=Object.keys(i).length,w=`${r[0]}${T}${r[1]}`;r.length>2&&(w=`<${r[2]}${T}>`),i[T]=c;let b=Fl(u).endsWith(" ")?" ":"",S=Pa(c.innerText||c.textContent),D=Pa(c.nextSibling).startsWith(" ")?" ":"",N=Jo(b+S+D),_=N[0]+w+N[1];if(b===" ")_=_.trimStart();else if(!_.startsWith(" ")){let y=Jo(c.previousSibling)[1];y===""&&(y=" "),_=y+_}u.push({text:_,type:"variable"})}else{let g=Fl(u).endsWith(" ")?" ":"",T=Pa(c.innerText||c.textContent);f&&(T=Pa(Pl(c)));let w=Pa(c.nextSibling).startsWith(" ")?" ":"",b=Jo(g+T+w),S=b[0]+(c.innerText?.trim()||c.textContent?.trim()||"")+b[1];if(g===" ")S=S.trimStart();else{let D=Jo(c.previousSibling)[1];D===""&&(c.nodeName==="A"||c.nodeName==="CODE")&&(D=" "),S=D+S}u.push({text:S,type:"text"})}else{let g=Fl(u).endsWith(" ")?" ":"",T="";c.textContent&&(T=Pa(Pl(c))),g===" "&&(T=T.trimStart()),u.push({text:T,type:"text"})}}if(u&&u.length>0){let s="";for(let c=0;c0&&(f=u[c-1].text),c2){let l=c[2];return Ty({delimiterTag:l,targetText:e.targetText,inline:r,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:a}).html}else{let l=Vp(s,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return l.html}}function Pl(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function Ty(e){let{delimiterTag:t,inline:n,translationClasses:a,targetWrapperTag:r,wrapperPrefix:o,variables:u,preWhitespace:i,wrapperSuffix:s,translationTheme:c,translationBlockStyle:l}=e;u=u||[];let f=e.targetText;f=Ne.sanitize(f);let p=f,m=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),g=new RegExp(`<${t}(\\d+)>`);u.length>0&&(p=p.replace(m,S=>{let D=p.indexOf(S),N=p[D-1]===" ",_=p[D+S.length]===" ",y=S.match(g);if(!y)return S;let E=y[1],x=Number(E);if(isNaN(x))return S;let v=u[Number(x)];if(v&&v.type==="element"){let C=v.value.outerHTML;return N||(C=" "+C),_||(C=C+" "),C}else if(v&&v.type==="text"){let C=v.value;return N||(C=" "+C),_||(C=C+" "),C}else z.error("variable type not supported",v,S);return S}));let T=Hr(c,n,a||[],i),w=qr(c),b="";return l&&(b=`style="${l}"`),p=`<${r} ${b} class="${T.join(" ")}" ${$n}="1"><${r} class="${w.join(" ")}" ${$n}="1">${p}`,n||(o==="smart"?p=`
${p}`:p=`${o}${p}`),n&&(o!=="smart"?p=`${o}${p}`:p=`<${r} class="notranslate" ${$n}="1"> ${p}`),s==="smart"?p=`${p}`:p=`${p}${s}`,{html:p,position:"afterend"}}function Fl(e){let t=e[e.length-1];return t?t.text:""}function Tn(e){let t=e.rule.selectors,n=e.rule.excludeTags,a=e.rule.additionalExcludeTags,r=e.rule.excludeSelectors,o=e.rule.additionalExcludeSelectors;return e.state.translationArea==="body"&&(t=[],r=[]),{globalStyles:e.rule.globalStyles,globalAttributes:e.rule.globalAttributes,selectors:t,skipEditableCheck:e.rule.skipEditableCheck,lineBreakMaxTextCount:e.rule.lineBreakMaxTextCount,isTransformPreTagNewLine:e.rule.isTransformPreTagNewLine,excludeSelectors:n.concat(a).map(i=>i.toLowerCase()).filter(i=>i!=="code"&&i!=="img").concat(r).concat(o),blockSelectors:e.rule.allBlockTags.map(i=>i.toLowerCase()).concat(e.rule.extraBlockSelectors),extraBlockSelectors:e.rule.extraBlockSelectors,extraInlineSelectors:e.rule.extraInlineSelectors.concat(e.rule.additionalInlineSelectors),stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(i=>i.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)}}var Ey={sanitize:e=>e};function Hi(e,t){e.interruptEffectDOM||(e.walkContainer({id:e.id,container:t,filterRule:Tn(e.ctx),onParagraph:Xo.bind(null,e),onFrame:n=>{Bl(e,n,!0)},onIgnoreElement:n=>{e.ignoreResizeObserver?.observe(n)}}),Cr&&pt(t,"consumeContainer",e.id))}function Bl(e,t,n){try{if(e.injectCssToDocument(t,e.ctx),t instanceof HTMLIFrameElement){if(!Mr(t))return;z.debug("onFrame fragment",t);let a=t.contentWindow?.document.body;a&&(Kr(a,e,n),e.dynamicContainerObserver?.observe(a,{childList:!0,subtree:!0}))}else z.debug("onFrame shadowRoot",t.host),Kr(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0})}catch{}}function Kr(e,t,n=!0){let{globalStyles:a,globalAttributes:r}=Tn(t.ctx),o=0;if(s(t,e,n))return;if(Bn(e)&&i(e)){u(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,l=>(Bn(l)&&(a&&Al(l,a),r&&Sl(l,r)),s(t,l,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(tn.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode();){tn.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let l=c.currentNode;if(i(l))for(u(l);;){if(c.nextSibling()){let f=c.currentNode;if(tn.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),i(f)){u(f);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){u(e);return}return t.observeContainers;function u(c){tn.clearMark(c),o++,t.immediateTranslateCapacity>=0?Hi(t,c):(Cr&&pt(c,"observeContainer",t.id),t.containerVisibleObserver?.observe(c))}function i(c){let l=c.nodeName.toLowerCase();if(c.shadowRoot)return Bl(t,c.shadowRoot,n),!1;if(l==="iframe")return Bl(t,c,n),!1;if(["script","#document-fragment","img"].includes(l))return!1;let f=t.containerRule;if(f.selectors&&f.selectors?.length>0)return Fi(c,f.selectors);if(f.pageHeight){let p=c.scrollHeight;if(p>0&&p0)return!0}return!1}function s(c,l,f){if(l.nodeName.toLowerCase()=="script")return l.childNodes.length==0||l.childNodes.length==1&&l.childNodes[0].nodeType==Node.TEXT_NODE;if(l.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(l.nodeType!==Node.ELEMENT_NODE||f&&tn.isMarked(l,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&l.nodeName==="PRE")return!1;let m=Tn(c.ctx);return!!Dl(l,{excludeSelectors:m.excludeSelectors,selectors:m.selectors,stayOriginalSelectors:m.stayOriginalSelectors})}}function Rl(e,t){if(!e.targetNodes)return;let n=e.state||"original",a=e.commonAncestorContainer;if(!tn.isMarked(a,e.ctxId))return;let r=a.contains(e.rootNodes[0]),o=a.contains(e.targetNodes[0]);if(r&&o)n="dual";else if(r)n="original";else if(o)n="translation";else return;if(t!=n){e.state=t;try{if(n=="dual"&&t=="translation"&&(zi(e.rootNodes),Qp(e.commonAncestorContainer)),n=="original"&&t=="translation"){let u=_l(e.rootNodes);if(zi(e.rootNodes),Jp(u))return;Wr(u,a,e.targetNodes||[]),Qp(e.commonAncestorContainer)}if(n=="translation"&&t=="dual"){let u=e.targetNodes[0];Wr(u,a,e.rootNodes||[]),Zp(e.commonAncestorContainer)}if(n=="original"&&t=="dual"){let u=_l(e.rootNodes);if(Jp(u))return;Wr(u,a,e.targetNodes||[]),Zp(e.commonAncestorContainer)}if(n=="translation"&&t=="original"){let u=_l(e.targetNodes);zi(e.targetNodes),Wr(u,a,e.rootNodes||[])}n=="dual"&&t=="original"&&zi(e.targetNodes)}catch(u){z.error(u)}}}function Jp(e){return!e||!Bn(e)?!1:e.classList.contains(un)}function Qp(e){if(!Bn(e))return;e.querySelectorAll("font[class*=immersive-translate-target-translation]").forEach(a=>{pt(a,"immersiveTranslateClassBak",a.className),a.className="notranslate immersive-translate-target-dual"});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.add("immersive-translate-state-dual")}function Zp(e){if(!Bn(e))return;e.querySelectorAll("font[class*=immersive-translate-target-dual]").forEach(a=>{let r=Dr(a,"immersiveTranslateClassBak");ii(a,"immersiveTranslateClassBak"),a.className=r});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.remove("immersive-translate-state-dual")}function _l(e){return e?e[e.length-1].nextSibling:null}function zi(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function Wr(e,t,n){let a=e;t&&(a?n.forEach(r=>{a.parentNode?.insertBefore(r,a)}):n.forEach(r=>{t.appendChild(r)}))}var Cy=Ft(Ol,300);async function Xo(e,t,n=!1){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||vy(t.rootNodes)||t.stepState>=2)return;t.stepState=2,Cr&&pt(a,"onParseParagraph",e.id);let{ctx:r}=e,{rule:o}=r,u=Lr(r),i=ji(t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:u,stayOriginalSelectors:r.rule.stayOriginalTags.concat(r.rule.stayOriginalTags).map(c=>c.toLowerCase()).concat(r.rule.stayOriginalSelectors).concat(r.rule.additionalStayOriginalSelectors)});if(!i)return;t.variables=i?.variables||{},t.text=i?.text;let s=await Nl(t,{excludeLanguages:r?.config?.translationLanguagePattern?.excludeMatches||[],targetLanguage:r.targetLanguage,noTranslateRegexp:r.rule.noTranslateRegexp,delimiters:Mi(r.config.translationServices[r.translationService]?.placeholderDelimiters),minTextCount:n||r.state.translationArea==="body"?2:o.paragraphMinTextCount,minWordCount:n||r.state.translationArea==="body"?1:o.paragraphMinWordCount,isDetectParagraphLanguage:r.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:r.rule.ignoreZhCNandZhTW});if(s){if(z.debug("on paragraph",s.text,s),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(s))return;a.paragraphs.push(s),e.immediateTranslateCapacity>0||n?(wy(e,t.text),Il(e,t)):(Cr&&pt(a,"observeParagraph",e.id),e.observeParagraphs.push(s),e.paragraphVisibleObserver?.observe(a))}return s}function vy(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Bn(t)&&t.classList.contains(un):!1}function wy(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function Il(e,t){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let n=e.autoIncreaseParagraphId++;t.id=n.toString(),e.paragraphEntities[n]=t,e.paragraphQueue.push(n.toString()),Cr&&pt(t.commonAncestorContainer,"consumeParagraph",e.id),Cy.call(e,e.ctx)}async function Ol(e){if(this.interruptEffectDOM)return;let t=this.paragraphQueue;this.paragraphQueue=[];let n=[];for(let a=0;a0)try{await Ra(a,t,(r,o,u)=>{let i=u.id,s=Ay(e,i.toString());s&&ky.call(null,r,o,u,s,t,n)})}catch(r){z.error("translateCurrentQueue error",r);return}}function Ay(e,t){return e.find(n=>n.id===t)}function ky(e,t,n,a,r,o){let u=!1,i=a;if(Nr(i.commonAncestorContainer,n.id)?.remove(),i&&(e||!t)){e||(z.error("translate error",n,e,t),e=new Error("no response from server"));let{rule:s}=r,c=n.id,l=document.createElement(s.targetWrapperTag);pt(l,Ug,c.toString()),l.classList.add("notranslate",un,un+"-error"),l.setAttribute("translate","no"),l.setAttribute("lang",r.targetLanguage);let f=a.rootNodes[a.rootNodes.length-1].nextSibling;Wr(f,a.commonAncestorContainer,[l]),Sy(r,e);let p=e.message.replaceAll(` -`,"");if(p=p.replaceAll('"',"""),i&&(i.error=new Error(p)),l){let m=oa(Qt,"retryAllParagraphs",r.config.interfaceLanguage,"zh-CN"),g=oa(Qt,"errorTooltipTitle",r.config.interfaceLanguage,"zh-CN"),T=`<${s.targetWrapperTag} class="${X}-error notranslate"><${s.targetWrapperTag} class="${X}-error-wrapper">\u{1F504}  \u2753`;l.innerHTML=Ne.sanitize(T)}}else if(a){if(i.error=void 0,a.targetText=t?.text||"",!(a.text?.toLocaleLowerCase()==a.targetText?.toLocaleLowerCase())){let c=Yp(a,r),l=document.createElement(r.rule.targetWrapperTag);l.classList.add("notranslate",un),l.setAttribute("lang",r.targetLanguage),l.setAttribute($n,"1");let f=Ey.sanitize(c);l.innerHTML=f,a.targetNodes=[l],Rl(a,o)}u=!0}else z.error("paragraph not found",n.id);document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:u}})}))}async function Nl(e,t){let{text:n}=e,a=await it({text:n||"",minLength:15,pageLangs:[Dt(),"en"]}),{targetLanguage:r}=t;if(!Ap({text:n||"",delimiters:t.delimiters,minWordCount:t.minWordCount,minTextCount:t.minTextCount,noTranslateRegexp:t.noTranslateRegexp}))return null;let u=t.excludeLanguages||[],i=Ui();t.isDetectParagraphLanguage&&(i="auto");let s=Dt(),c=a;c==="auto"&&!t.isDetectParagraphLanguage&&(c=s),e.languageByLocal=c,e.languageByClient=i;let l=i!=="auto"?i:c;return ka(l,r,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW})||u.length>0&&u.some(m=>ka(l,m,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW}))?null:e}function Sy(e,t){if(t.message.startsWith("ProQuota:")){t.message=t.message.replace("ProQuota:","");let n=t.message;try{n=JSON.parse(t.message).error}catch(o){z.error(o)}t.message=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${t.message} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`;let a=e.translationService,r=a=="deepl"?"OpenAI":"Deepl";e.translationService=="openai"?a="OpenAI":e.translationService=="deepl"&&(a="Deepl"),document.dispatchEvent(new CustomEvent(Yu,{detail:{type:"ProQuotaExceeded",subscriptionType:e.user?.subscription?.subscriptionType,translationService:a,anotherService:r,message:n}}))}}h();var Dy=[];function Xp(e){Dy.push(e)}h();function e3(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(a){a.length>0&&(a[0].target.text.includes(Xu)||Ul(e).catch(o=>{z.error("translateTitle error:",o.name,o.message,o.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var Wi="";async function Ul(e){let t=document.title;if(!t||t.includes(Xu))return;Wi!==t&&(Wi=t);let n=await it({text:t,pageLangs:[Dt(),"en"]});if(!Pi(e,n))try{let a=await ca({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n},e);a&&a.text&&(document.title=Wi+Xu+a.text)}catch(a){throw a}}function t3(e){e.rule.isTranslateTitle&&(document.title=Wi)}h();var jl="Original";function tt(){return jl}function Wt(e){jl=e,n3(jl)}h();var zl;function a3(e){let t=e.ctx.rule.aiRule;if(z.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=Tn(e.ctx),a=n.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);n.excludeSelectors.splice(a,1);let r,o;document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(p=>{p.translated=!0,eu(e,p,n)});let u=t.streamingDelayTime||100;zl=new MutationObserver(p=>{p.forEach(function(m){if(Bn(m.target)&&!s(m)&&(l(m.target),m.addedNodes&&m.addedNodes.length&&m.addedNodes.forEach(g=>{l(g)}),!c(m)&&i())){let g=m.target===o;if(t.streamingDeepChild&&!g&&(g=m.target.parentNode===o),!g)return;m.addedNodes.forEach(T=>{let w=T.previousSibling;!w||w.translated||(w.translated=!0,setTimeout(()=>{w.childNodes[0]?.translated||(z.debug("\u7FFB\u8BD1\u4E0A\u4E00\u4E2A\u6BB5\u843D",w),eu(e,w,n))},u))})}})}),zl.observe(document.body,{attributes:!0,childList:!0,subtree:!0});function i(){return!!(t.streamingChange&&t.streamingSelector&&r||t.streamingChange&&t.messageContainerSelector&&t.messageStreamEndSelector&&o&&!o.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector))}function s(p){return t.streamingSelector&&p.target===r&&p.type==="attributes"&&!_n(p.target,[t.streamingSelector])?(f(),!0):t.streamingSelector&&p.removedNodes.length>0&&o&&o!=r?(p.removedNodes?.forEach(m=>{m===r&&f()}),!0):t.messageContainerSelector&&t.messageStreamEndSelector&&o&&o.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector)?(f(),!0):!1}function c(p){if(t.streamingSelector&&p.target.querySelector(t.messageWrapperSelector||"")&&!r){let m=p.target;return m.translated||(m.translated=!0,setTimeout(()=>{r||m.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(g=>{g.translated||(g.translated=!0,eu(e,g,n))})},u)),!0}else if(t.messageContainerSelector&&p.target.querySelector(t.messageContainerSelector||"")){let m=p.target;if(m.translated)return!0;m.translated=!0,setTimeout(()=>{m.querySelectorAll(t.messageContainerSelector).forEach(g=>{t.messageStreamEndSelector&&!g.querySelector(t.messageStreamEndSelector)||g.translated||(g.translated=!0,eu(e,g,n))})},u)}return!1}function l(p){t.streamingSelector&&_n(p,[t.streamingSelector])&&(r=p,z.debug("streamingNode",r)),_n(p,[t.messageWrapperSelector])&&(o=p,z.debug("markdownNode",o))}function f(){o&&setTimeout(()=>{o.childNodes.forEach(p=>p.translated=!1),z.debug("\u7ED3\u675F\u7FFB\u8BD1\u5168\u90E8",o),eu(e,o,n),r=void 0,o=null},u)}}function eu(e,t,n){Fa({id:e.id,container:t,filterRule:n,force:!0,onParagraph:a=>{Xo(e,a,!0)},onFrame:()=>{},onIgnoreElement:()=>{}})}function r3(){zl?.disconnect()}var re=null;function $i(){return re||null}function $r(e){Ly(e),Iy(e),_y(e),Ry(e),wa(document,e),Wt("Translated"),By(re),Fy(re),Xp(da),My(re)}function Ly(e){e.state.translationArea==="main"&&e.rule.initialSelectorGlobalAttributes&&Fp(document.body,e.rule.initialSelectorGlobalAttributes,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph)}function My(e){a3(e)}function Py(){r3()}function Fy(e){e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0});let t=[];e.ctx.rule.mainFrameSelector&&(t=[...document.querySelectorAll(e.ctx.rule.mainFrameSelector||"")]),t.length<=0&&(t=[document.body]),t.forEach(n=>{Kr(n,e)})}async function _y(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=Date.now(),a=new URL(e.url).hostname,r=e.localConfig.tempTranslationUrlMatches||[],o=r.findIndex(i=>i.match===a&&i.expiredAt>t),u=!1;o>-1||(r.push({match:a,expiredAt:t+e.config.tempTranslateDomainMinutes*60*1e3}),u=!0),u&&await yn({...e.localConfig,tempTranslationUrlMatches:[...r]})}}function By(e){e.ctx.rule.isTranslateTitle&&(Ul(e.ctx),e.titleDynamicObserver=e3(e.ctx))}function Ry(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function Iy(e){let t=Fn();re&&(t=re.id);let n=Tn(e);re=re||{},re.ctx=e,re.id=t,re.paragraphQueue=re.paragraphQueue||[],re.rule={excludeSelectors:n.excludeSelectors||[],selectors:n.selectors||[]},re.currentUrl=window.location.href,re.containerRule={pageHeight:screen.availHeight,selectors:n.selectors},re.translationService=e.translationService,re.paragraphEntities=re.paragraphEntities||{},re.autoIncreaseParagraphId=re.autoIncreaseParagraphId||1,re.interruptEffectDOM=!1,re.urlChangeDelay=e.rule.urlChangeDelay,re.immediateTranslateCapacity=e.state.immediateTranslationTextCount,re.observeContainers=re.observeContainers||[],re.observeParagraphs=re.observeParagraphs||[],re.dynamicContainerObserver=re.dynamicContainerObserver||zy(re),re.ignoreResizeObserver=re.ignoreResizeObserver||Hy(re),re.containerVisibleObserver=re.containerVisibleObserver||Ny(re),re.paragraphVisibleObserver=re.paragraphVisibleObserver||Uy(re),re.injectCssToDocument=Ki,re.walkContainer=Fa,re.translateState=e.state.translationMode||e.config.translationMode||"dual",re.allInlineWindows=[window],window.onerror=Oy(re,e),window.immersiveTranslateSwitchTranslateState=ql.bind(re)}function u3(e,t){t.getRootNode()instanceof ShadowRoot?Ki(t.getRootNode(),e):Ki(t.ownerDocument,e),Hl(e)}function Hl(e){if(re)return;re={},re.ctx=e,re.id=Fn(),re.paragraphQueue=[],re.injectCssToDocument=Ki;let t=Tn(e);re.rule={excludeSelectors:t.excludeSelectors,selectors:t.selectors||[]},re.translationService=e.mouseHoverTranslationService,re.currentUrl=window.location.href,re.paragraphEntities={},re.autoIncreaseParagraphId=1,re.interruptEffectDOM=!1,re.urlChangeDelay=e.rule.urlChangeDelay,re.translateState=e.config.translationMode||"dual",re.observeContainers=[],re.observeParagraphs=[],re.allInlineWindows=[window],window.switchTranslateState=ql.bind(re)}function da(e=!0){re&&(Wt("Original"),Py(),re.interruptEffectDOM=!0,re.ignoreResizeObserver?.disconnect(),re.dynamicContainerObserver?.disconnect(),re.containerVisibleObserver?.disconnect(),re.paragraphVisibleObserver?.disconnect(),re.titleDynamicObserver?.disconnect(),t3(re.ctx),Cp(),vp(),e&&ql.call(re,"original"),Object.values(re.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),re=null)}function Oy(e,t){e.interruptEffectDOM=!1;let n;return function(a){let r=a.message,o=!1;return r?.indexOf("Minified React error")>=0&&(o=!0),o&&(clearTimeout(n),da(),n=setTimeout(()=>{$r(t)},e.urlChangeDelay||2e3)),!0}}function Ny(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{a.intersectionRatio>0&&(Hi(e,a.target),n.unobserve(a.target))})})}function Uy(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{if(a.intersectionRatio>0){let r=a.target;(r.paragraphs||[]).forEach(u=>{Il(e,u)}),n.unobserve(r)}})})}var o3;function jy(e){if(e.urlChangeDelay<=0)return!1;let n=(window.location.href||"").split("#")[0];return e.currentUrl.split("#")[0]!=n?(clearTimeout(o3),e.translateState=="original"?!1:(da(e.urlChangeDelay>20),o3=setTimeout(()=>{let r=e.ctx;$r(r)},e.urlChangeDelay),!0)):!1}function zy(e){return new MutationObserver(t=>{if(!jy(e)&&!e.interruptEffectDOM)for(let n of t){let a=e.ctx.rule.mutationObserverLimitTargetSelectors;if(a.length>0&&!_n(n.target,a))return;if((n.addedNodes||[]).length<=0||n.target.nodeType!==Node.ELEMENT_NODE||!tn.isSkipMarkEle(n.target)&&!tn.isMarked(n.target,e.id))continue;let o=(n.target?.paragraphs||[]).reduce((u,i)=>{let s=i.rootNodes||[],c=i.targetNodes||[];return[...u,...s,...c]},[]);if(n.addedNodes.length>0&&n.addedNodes.length===n.target.childNodes.length&&_n(n.target,e.ctx.rule.mutationObserverContainerSelectors)){tn.clearMark(n.target),n.target.paragraphs=void 0,Hi(e,n.target);return}n.addedNodes.forEach((u,i)=>{u.nodeType===Node.ELEMENT_NODE&&(o.includes(u)||qt(u,e.ctx.rule.mutationExcludeSelectors)||Kr(u,e))})}})}function Hy(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let a of t){if(a.target.nodeType!==Node.ELEMENT_NODE)return;let r=a.target,o=globalThis.getComputedStyle(r);kl(o)||(n.unobserve(a.target),Kr(r,e))}})}function ql(e){this.translateState=e,Object.values(this.paragraphEntities).forEach(t=>{Rl(t,e)}),e=="original"&&document.querySelectorAll(`.${un}`).forEach(t=>t.remove())}function Ki(e,t){if(e instanceof HTMLIFrameElement){wa(e.contentDocument,t);return}wa(e,t)}async function i3(e){let t=mt(),n="auto";if(me()){let a="";e.rule.isEbook||e.rule.isEbookBuilder?(a=Y0(e.mainFrame),n=await it({text:a,pageLangs:["en"]})):(a=Sr(e.mainFrame).slice(0,1e3),n=await it({text:a,pageLangs:[Ja(),"en"]}))}else if(t)n=await it({text:Sr(e.mainFrame).slice(0,1e3),pageLangs:[Ja(),"en"]});else if(e.rule.isEbook||e.rule.isEbookBuilder){let a="";a=Y0(e.mainFrame),n=await it({text:a,pageLangs:["en"]})}else n=await l3();return n==="auto"&&(n=await Gp()),Kp(n),n}async function s3(){if(!re)return;document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=re.paragraphEntities,t=Object.keys(e);for(let n of t){let a=e[n];if(a.error){re.paragraphQueue.push(n);let o=a.commonAncestorContainer.querySelector(`[${Qu}='${n}']`);o&&o.remove()}}Ol.call(re,re.ctx)}h();h();var c3={"zh-CN":{"languages.en":"\u82F1\u8BED","languages.ja":"\u65E5\u8BED","languages.ko":"\u97E9\u8BED","languages.es":"\u897F\u73ED\u7259\u8BED","languages.fr":"\u6CD5\u8BED","languages.de":"\u5FB7\u8BED","languages.it":"\u610F\u5927\u5229\u8BED","languages.pt":"\u8461\u8404\u7259\u8BED","languages.ru":"\u4FC4\u8BED","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"},"zh-TW":{"languages.en":"\u82F1\u8A9E","languages.ja":"\u65E5\u8A9E","languages.ko":"\u97D3\u8A9E","languages.es":"\u897F\u73ED\u7259\u8A9E","languages.fr":"\u6CD5\u8A9E","languages.de":"\u5FB7\u8A9E","languages.it":"\u610F\u5927\u5229\u8A9E","languages.pt":"\u8461\u8404\u7259\u8A9E","languages.ru":"\u4FC4\u8A9E","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"}},d3={...Qt,"zh-CN":{...c3["zh-CN"],...Qt["zh-CN"]},"zh-TW":{...c3["zh-TW"],...Qt["zh-TW"]}},Gr=d3;function Ia(e,t,n){return oa(d3,e,t,ei,n)}var g3=()=>sn.filter(e=>e!=="auto"),Mt=(e,t,n,a)=>{let r=Gg[e]||e,o=Vg[e],u=Yg[e],i={"zh-CN":o,"zh-TW":u,en:r};if(n)return i[e]?i[e]:r;if(i[t]){let s=i[t];return a||e==="auto"||e==="placeholder"?s:`${s} (${r})`}else return r};h();h();function Vr(e){Yr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(a=>{z.error("send content message request failed",e,a)}),document.querySelectorAll("iframe").forEach(a=>{a.contentWindow&&a.contentWindow.postMessage({author:Vu,payload:e},"*")});let n=new CustomEvent(Ta,{detail:e});globalThis.document.dispatchEvent(n)}function Wl(e){let t=e.shortcuts||{},a=Object.keys(t).reduce((o,u)=>(o[t[u]]=u,o),{}),r=Object.keys(a);for(let o of r){let u=o.replace(/MacCtrl/ig,"Ctrl");u&&Ue(u,i=>{i.preventDefault(),Vr({method:a[o],data:{trigger:"shortcut"}})})}}h();h();var Pt=class{options;strictTicks=[];constructor(t){this.options=t,this.setOptions(t)}setOptions(t){t&&(t.interval!==void 0&&(this.options.interval=Number(t.interval)),t.limit!==void 0&&(this.options.limit=Number(t.limit)))}wait(){return new Promise((t,n)=>{setTimeout(t,this.getDelay())})}getDelay(){let t=this.strictTicks,n=this.options.limit,a=this.options.interval,r=Date.now();if(t.length=o?(t.push(r),0):(t.push(o),o-r)}};var qy=new Pt({limit:7,interval:1250}),Wy={tencent:new Pt({limit:3,interval:1350}),baidu:new Pt({limit:1,interval:1550}),strict:new Pt({limit:1,interval:1050}),d:new Pt({limit:1,interval:1050}),youdao:new Pt({limit:5,interval:1050}),you:new Pt({limit:5,interval:1050}),cai:new Pt({limit:5,interval:1050}),google:new Pt({limit:10,interval:1050}),deepl:new Pt({limit:10,interval:1050}),transmart:new Pt({limit:30,interval:1050}),papago:new Pt({limit:3,interval:1150}),openai:new Pt({limit:10,interval:1300}),chatgpt:new Pt({limit:1,interval:1350})};function tu(e){return Wy[e]||qy}async function m3(e){if(mt()){let n=Li();if(n)try{return(await n.ask("getRateLimitDelay",{key:e})).value}catch(a){return z.error("can not comunicate with root frame, use strict limiter",a),tu("strict").getDelay()}else return tu("strict").getDelay()}else return tu(e).getDelay()}async function p3(e,t){if(!mt()){let a=tu(e);t&&a.setOptions(t)}}async function f3(e){let t=e.key;return{value:tu(t).getDelay()}}h();var Gi=new Map;async function Kl(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=Da(e.body)),Gi.has(t))return Gi.get(t);let n=se(e);Gi.set(t,n);try{return await n}catch(a){throw a}finally{setTimeout(()=>{Gi.delete(t)},3e4)}}async function h3(e){return Kl(e)}async function b3(e){if(mt()){let n=Li();if(n)try{return await n.ask("throttleRequest",e)}catch(a){throw z.error("can not comunicate with root frame, use strict limiter",a),a}else return Kl(e)}else return Kl(e)}h();h();h();h();function y3(e,t,n){let a=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),a=t!=="auto"?n[t].matches:[];let r={},o=Object.keys(n);for(let c of o){let f=n[c].matches;for(let p of f)r[p]||(r[p]=[]),r[p].push(c)}let u=r[e];if(u&&u.length>0)for(let c of u)n[c].matches.indexOf(e)>-1&&(n[c]={...n[c],matches:n[c].matches.filter(f=>f!==e)});let i=new Set(a);if(t==="auto")return{...n};i.add(e);let s=Array.from(i);return{...n,[t]:{...n[t],matches:s}}}h();h();function $l(){return d("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M10.3873 2.29166C10.6319 2.29193 10.8664 2.38929 11.0392 2.56234C11.2121 2.73539 11.3092 2.96998 11.3092 3.21457V4.07811L12.1175 4.38332C12.7273 4.61277 13.2952 4.94074 13.7988 5.35416L14.4675 5.90207L15.2165 5.46978L15.2394 5.45624C15.3787 5.37479 15.5373 5.332 15.6988 5.33228C15.861 5.3325 16.0203 5.37522 16.1608 5.45618C16.3014 5.53715 16.4182 5.65353 16.4998 5.79374L16.8925 6.47395C17.0145 6.68593 17.0475 6.93764 16.9843 7.17391C16.921 7.41019 16.7666 7.61173 16.555 7.73436L16.5321 7.74791L15.7842 8.17916L15.9227 9.0302C16.031 9.67953 16.031 10.3423 15.9227 10.9917L15.781 11.8458L16.531 12.2781L16.5467 12.2875C16.758 12.4101 16.9122 12.6115 16.9754 12.8475C17.0387 13.0835 17.0059 13.335 16.8842 13.5469L16.5154 14.1844C16.3932 14.3961 16.1919 14.5507 15.9558 14.6141C15.7196 14.6776 15.468 14.6448 15.256 14.5229L15.2415 14.5135L14.4904 14.0802L13.8206 14.6323C13.3125 15.0519 12.7384 15.3845 12.1217 15.6167L11.3133 15.9219V16.7864C11.3132 16.9078 11.2891 17.028 11.2425 17.14C11.1958 17.2521 11.1276 17.3539 11.0415 17.4395C10.9555 17.5251 10.8535 17.5929 10.7412 17.6391C10.6289 17.6852 10.5087 17.7087 10.3873 17.7083H9.61229C9.3677 17.708 9.13322 17.6107 8.96037 17.4376C8.78751 17.2646 8.69042 17.03 8.69042 16.7854V15.9219L7.88209 15.6167C7.27233 15.3872 6.70437 15.0592 6.20084 14.6458L5.53209 14.0979L4.78313 14.5302L4.76021 14.5437C4.62084 14.6252 4.46226 14.668 4.30084 14.6677C4.13864 14.6675 3.97932 14.6248 3.83877 14.5438C3.69823 14.4628 3.58135 14.3464 3.49979 14.2062L3.10709 13.526C2.98505 13.3141 2.95205 13.0623 3.01532 12.8261C3.07858 12.5898 3.23296 12.3882 3.44459 12.2656L3.4675 12.2521L4.21542 11.8208L4.07688 10.9698C3.96856 10.3204 3.96856 9.65766 4.07688 9.00832L4.21854 8.1552L3.46959 7.72186L3.45709 7.70832C3.24914 7.58489 3.09787 7.38486 3.03575 7.15116C2.97362 6.91746 3.00559 6.66872 3.12479 6.45832L3.49354 5.82082C3.57469 5.68049 3.69133 5.56397 3.83175 5.48297C3.97217 5.40197 4.13144 5.35934 4.29354 5.35936C4.45497 5.35908 4.61355 5.40187 4.75292 5.48332L4.7675 5.49166L5.51854 5.92499L6.18834 5.37291C6.69646 4.95329 7.27054 4.62067 7.88729 4.38853L8.69563 4.08332V3.21874C8.69452 2.97433 8.79041 2.73945 8.96226 2.56565C9.13411 2.39185 9.36788 2.29331 9.61229 2.29166H10.3873ZM10.3873 1.04166H9.61229C9.03636 1.04193 8.4841 1.27084 8.07685 1.67809C7.66961 2.08533 7.4407 2.6376 7.44042 3.21353C6.69518 3.49423 6.00146 3.89618 5.38729 4.40312L5.37271 4.39478C4.87362 4.10685 4.2806 4.02894 3.72407 4.17818C3.16753 4.32742 2.69307 4.6916 2.405 5.19062L2.03729 5.83332C1.74928 6.33229 1.67121 6.92522 1.82025 7.48173C1.96929 8.03825 2.33324 8.51279 2.83209 8.80103L2.84771 8.80936C2.78023 9.20444 2.74539 9.6044 2.74354 10.0052C2.74367 10.3971 2.77572 10.7883 2.83938 11.175L2.81646 11.1885C2.56927 11.3311 2.35259 11.5209 2.1788 11.7472C2.00501 11.9735 1.87752 12.2319 1.80361 12.5075C1.7297 12.7831 1.71083 13.0706 1.74807 13.3535C1.7853 13.6364 1.87792 13.9091 2.02063 14.1562L2.41334 14.8364C2.55638 15.0837 2.74681 15.3003 2.97371 15.4738C3.20061 15.6473 3.45953 15.7743 3.73561 15.8475C4.01169 15.9208 4.29952 15.9388 4.58259 15.9007C4.86566 15.8625 5.13841 15.7688 5.38521 15.625L5.40813 15.6114C6.01714 16.1105 6.70362 16.5067 7.44042 16.7844C7.44028 17.0697 7.49635 17.3523 7.60542 17.616C7.7145 17.8797 7.87444 18.1193 8.07612 18.3212C8.27779 18.523 8.51726 18.6832 8.78084 18.7925C9.04441 18.9018 9.32694 18.9582 9.61229 18.9583H10.3873C10.9632 18.958 11.5155 18.7291 11.9227 18.3219C12.33 17.9146 12.5589 17.3624 12.5592 16.7864C13.3043 16.5061 13.9981 16.1045 14.6123 15.5979L14.6269 15.6062C15.126 15.8942 15.719 15.9721 16.2755 15.8228C16.8321 15.6736 17.3065 15.3094 17.5946 14.8104L17.9623 14.1729C18.2503 13.6739 18.3284 13.081 18.1793 12.5245C18.0303 11.968 17.6663 11.4934 17.1675 11.2052L17.1519 11.1969C17.2194 10.8018 17.2542 10.4018 17.256 10.001C17.2559 9.60915 17.2239 9.21792 17.1602 8.83124L17.1831 8.8177C17.4303 8.67516 17.647 8.48531 17.8208 8.259C17.9946 8.03269 18.1221 7.77435 18.196 7.49875C18.2699 7.22314 18.2888 6.93568 18.2515 6.65278C18.2143 6.36987 18.1217 6.09708 17.979 5.84999L17.5863 5.16978C17.4437 4.92202 17.2537 4.70485 17.027 4.53072C16.8003 4.3566 16.5415 4.22895 16.2654 4.1551C15.9893 4.08126 15.7013 4.06267 15.418 4.1004C15.1346 4.13814 14.8616 4.23145 14.6144 4.37499L14.5915 4.38853C13.9824 3.88946 13.296 3.49327 12.5592 3.21561C12.5593 2.93026 12.5032 2.64768 12.3942 2.384C12.2851 2.12031 12.1252 1.8807 11.9235 1.67883C11.7218 1.47695 11.4823 1.31678 11.2188 1.20746C10.9552 1.09813 10.6726 1.04179 10.3873 1.04166Z",fill:"#666666"}),d("path",{d:"M10.0003 7.91666C10.4124 7.91666 10.8152 8.03884 11.1578 8.26776C11.5004 8.49668 11.7674 8.82205 11.9251 9.20273C12.0828 9.58341 12.124 10.0023 12.0436 10.4064C11.9632 10.8106 11.7648 11.1818 11.4735 11.4731C11.1821 11.7645 10.8109 11.9629 10.4068 12.0433C10.0026 12.1237 9.58375 12.0824 9.20307 11.9247C8.82239 11.7671 8.49702 11.5 8.2681 11.1574C8.03918 10.8148 7.91699 10.412 7.91699 9.99999C7.91699 9.44745 8.13649 8.91755 8.52719 8.52685C8.91789 8.13615 9.44779 7.91666 10.0003 7.91666ZM10.0003 6.66666C9.34106 6.66666 8.69659 6.86215 8.14843 7.22842C7.60026 7.5947 7.17302 8.11529 6.92073 8.72438C6.66844 9.33346 6.60243 10.0037 6.73104 10.6503C6.85966 11.2969 7.17713 11.8908 7.6433 12.357C8.10948 12.8232 8.70342 13.1407 9.35003 13.2693C9.99663 13.3979 10.6669 13.3319 11.2759 13.0796C11.885 12.8273 12.4056 12.4001 12.7719 11.8519C13.1382 11.3037 13.3337 10.6593 13.3337 9.99999C13.3337 9.11593 12.9825 8.26809 12.3573 7.64297C11.7322 7.01785 10.8844 6.66666 10.0003 6.66666Z",fill:"#666666"})]})}h();function nu(e,t=2e3){return n=>{let a,r=0;return o=>{++r==e&&(n(o),r=0),clearTimeout(a),a=setTimeout(()=>r=0,t)}}}h();function x3(e){let t;try{t=new URL(e)}catch{return!1}let n=T3(),a="";try{a=new URL(n).hostname}catch{}return a&&t.hostname===a?!0:!(Ky(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function Ky(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}h();function E3(e){let t=e.split(".");return t.length>2?(t[0]="*",t.join(".")):null}h();function C3(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}h();function On(e){let{items:t,maxWidth:n,className:a}=e,{lang:r}=ue();return n=n||(r==="en"?144:160),d("select",{autoComplete:"off",class:a||"min-select",style:{maxWidth:`${n}px`},value:t.find(o=>o.selected)?.value,onChange:o=>{let u=o.target.value,i=t.find(s=>s.value===u);i&&i.onSelected(i)},children:t.map((o,u)=>d("option",{value:o.value,selected:o.selected,children:o.label},"selectlink"+u))})}function Gl(e){let{items:t,maxWidth:n,isInput:a,value:r}=e;return n=n||128,a?d("input",{value:r,onChange:o=>{e.onChange(o.target.value)}}):d("select",{autoComplete:"off",style:{maxWidth:`${n}px`},value:t.find(o=>o.selected)?.value,onChange:o=>{let u=o.target.value,i=t.find(s=>s.value===u);i&&i.onSelected(i)},children:t.map((o,u)=>d("option",{value:o.value,selected:o.selected,children:o.label},"selectlink"+u))})}h();var Vi="DROP_DOWN_DEFAULT_VALUE";function Vl(e){let{showArrow:t,onSelected:n,className:a,menus:r,maxWidth:o}=e;a=a||"",t=t??!0,o=o||80;let u=zn(null);return d("select",{ref:u,autoComplete:"off",class:`text-label min-select ${t?"":"min-select-no-arrow"} ${a||""}`,value:Vi,style:{maxWidth:`${o}px`},onChange:i=>{i.preventDefault();let s=i.target.value;if(u.current&&s!==Vi){u.current.value=Vi,u.current?.dispatchEvent(new Event("change"));let c=r.find(l=>l.value===s);c&&n(c)}},children:[{value:Vi,label:e.label}].concat(r).map((i,s)=>d("option",{value:i.value,children:i.label},"option-"+s))})}h();function Yl(e){let{field:t,onChange:n,value:a}=e;a=a||t.default||"";let{t:r}=ue(),o=t.name;return t.label&&(o=t.label),t.labelKey&&(o=r(t.labelKey)),t.type==="select"?d("div",{class:"flex justify-between items-center mb-2",children:[d("label",{class:"inline-block",children:[o,"\uFF1A"]}),d(On,{items:t.options.map(u=>({label:`${u.label?r(u.label):u.value}`,value:u.value,selected:a===u.value,onSelected:()=>{n(u.value)}}))})]}):null}h();h();function Oa(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var $y=({date:e})=>{let{t}=ue(),[n,a]=$(!1);return he(()=>{setTimeout(()=>{a(!0)},5e3)},[]),n?null:d("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},Gy=({minVersion:e})=>{let{t}=ue();return d("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},Vy=()=>{let{t:e}=ue();return d("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:"https://immersivetranslate.com/docs/installation/"})}})},Yy=({message:e,handleSyncing:t,date:n})=>{let{t:a}=ue();return d("p",{class:"text-sm",children:[a("failToSyncRules")," ",d("a",{onClick:t,children:a("retry")}),d("br",{}),a("failedReason"),"\uFF1A",e,d("br",{}),a("currentRuleVersion"),"\uFF1A",n]})};function Jl(e){let{isShowError:t,request:n}=e,[a,r]=$(null),{t:o}=ue(),[u,i]=$(null),[s,c]=$(null),[l,f]=$(""),[p,m]=$(!1),[g,T]=$(!1),[w,b]=$(!1),[S,D]=$(null),[N,_]=$(null),y=hn(),E=async()=>{f("");let x=u;if(u===null)try{let v=await n({url:Ea});v?(i(v),x=v,m(!0)):(f(o("unknownError")),c(null))}catch(v){c(null),f(v.message);return}x!==null?(e.setStorageBuildinConfig(x),c(!1),r(x.buildinConfigUpdatedAt)):(f(o("canNotFetchRemoteRule")),c(null))};return he(()=>{Ge().then(x=>{let v=x.buildinConfigUpdatedAt;D(x);let C=new Date(v);if(r(v),y==="0.0.0"){b(!0);return}n({url:Ea}).then(R=>{let M=R,k=M.minVersion,P=y;i(M);let O=M.latestVersion;if(O&&(Oa(P,O)?_(!0):_(!1)),Oa(P,k)){let j=M.buildinConfigUpdatedAt;new Date(j)>C?(c(!0),E()):c(!1)}else T(!0),c(null)}).catch(R=>{c(null),f(R.message)})})},[]),he(()=>{Ge().then(x=>{D(x)})},[a]),S?d("div",{class:"text-sm mt-2",style:{maxWidth:218},children:w?d(Vy,{}):l?t===!1?null:d(Yy,{handleSyncing:E,message:l,date:a||""}):g?t===!1?null:d(Gy,{minVersion:u.minVersion}):s===null||s===!0?null:p?d($y,{date:a}):null}):null}h();var Yi='',Jr="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMTEuNjIzLS4zMTguODQ1Yy0uMjA4LjIyMi0uNTI3LjMzMy0uOTI4LjMzM2gtMS4zM1Y5LjI0MmgxLjMzWm05Ljg0NiAxLjc4OGMuMzg4IDAgLjY2NS4xNTIuODQ1LjQ1Ny4xNTIuMjY0LjIzNS41ODIuMjYzLjk4NHYuMzE5YzAgLjQ5OS0uMDgzLjg4Ny0uMjYzIDEuMTkyLS4xOC4zMDQtLjQ1Ny40NTctLjgzLjQ1Ny0uMzg5IDAtLjY2Ni0uMTUzLS44NDYtLjQ0NC0uMTUyLS4yNjMtLjIzNS0uNTk1LS4yNjMtMS4wMTF2LS4yOTFjMC0uNDg1LjA4My0uODczLjI2My0xLjE3OC4xOC0uMzA1LjQ0My0uNDg1LjgzMS0uNDg1Wm0tMy40MDctMS4xMzZhMS4xNyAxLjE3IDAgMCAwLS43MDYuMjM1IDEuNDgyIDEuNDgyIDAgMCAwLS40MTUuNWwtLjA4My4xNjUtLjA3LS44MDNoLTEuMzU3djUuNDMyaDEuNDU0di0zLjY1OWEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiA4LjEySDQuMTE0djcuMzE3aDEuNDY4VjEyLjc5aDEuMzNjLjg0NCAwIDEuNDk1LS4yMDggMS45OC0uNjM4LjQ4NS0uNDMuNzItLjk4My43Mi0xLjY5cy0uMjM1LTEuMjYxLS43Mi0xLjY5Yy0uNDQzLS4zODktMS4wMzktLjYxLTEuNzczLS42MzhsLS4yMjEtLjAxNFptOS44NDcgMS43NzRjLS44MDMgMC0xLjQyNi4yNjMtMS44ODMuNzc2LS40MTYuNDctLjYzNyAxLjA2Ny0uNjc5IDEuNzczdi4zMzNjMCAuODE4LjIyMiAxLjQ4My42NzkgMS45OTUuNDU3LjUxMyAxLjA4Ljc3NiAxLjg4My43NzYuODA0IDAgMS40MjctLjI2MyAxLjg4NC0uNzc2LjQxNS0uNDcuNjM3LTEuMDUzLjY3OC0xLjc3M3YtLjMzM2MwLS44MTctLjIyMS0xLjQ4Mi0uNjc4LTEuOTk1LS40NTctLjUxMy0xLjA4LS43NzYtMS44ODQtLjc3NlpNMTguMDAzIDZhNiA2IDAgMCAxIDAgMTJIMFY5LjQyM0EzLjQyIDMuNDIgMCAwIDEgMy40MiA2aDE0LjU4M1oiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSI3LjUiIHgyPSIyMiIgeTE9IjE5IiB5Mj0iNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMyMjIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM2OTY5NjkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=",Ql="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzk5OSIgZD0iTTYuODk3IDMuMjQyYy40MTUgMCAuNzIuMTExLjkyOC4zNDcuMjA3LjIzNS4zMTguNTI2LjMxOC44NzMgMCAuMzQ2LS4xMS42MjMtLjMxOC44NDUtLjIwOC4yMjItLjUyNy4zMzMtLjkyOC4zMzNoLTEuMzNWMy4yNDJoMS4zM1ptOS44NDYgMS43ODhjLjM4OCAwIC42NjUuMTUyLjg0NS40NTcuMTUyLjI2NC4yMzUuNTgyLjI2My45ODR2LjMxOWMwIC40OTktLjA4My44ODctLjI2MyAxLjE5Mi0uMTguMzA0LS40NTcuNDU3LS44My40NTctLjM4OSAwLS42NjYtLjE1My0uODQ2LS40NDQtLjE1Mi0uMjYzLS4yMzUtLjU5NS0uMjYzLTEuMDExdi0uMjkxYzAtLjQ4NS4wODMtLjg3My4yNjMtMS4xNzguMTgtLjMwNS40NDMtLjQ4NS44MzEtLjQ4NVptLTMuNDA3LTEuMTM2YTEuMTcgMS4xNyAwIDAgMC0uNzA2LjIzNSAxLjQ4MiAxLjQ4MiAwIDAgMC0uNDE1LjVsLS4wODMuMTY1LS4wNy0uODAzaC0xLjM1N3Y1LjQzMmgxLjQ1NFY1Ljc2NGEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiAyLjEySDQuMTE0djcuMzE3aDEuNDY4VjYuNzloMS4zM2MuODQ0IDAgMS40OTUtLjIwOCAxLjk4LS42MzguNDg1LS40My43Mi0uOTgzLjcyLTEuNjlzLS4yMzUtMS4yNjEtLjcyLTEuNjljLS40NDMtLjM4OS0xLjAzOS0uNjEtMS43NzMtLjYzOGwtLjIyMS0uMDE0Wm05Ljg0NyAxLjc3NGMtLjgwMyAwLTEuNDI2LjI2My0xLjg4My43NzYtLjQxNi40Ny0uNjM3IDEuMDY3LS42NzkgMS43NzN2LjMzM2MwIC44MTguMjIyIDEuNDgzLjY3OSAxLjk5NS40NTcuNTEzIDEuMDguNzc2IDEuODgzLjc3Ni44MDQgMCAxLjQyNy0uMjYzIDEuODg0LS43NzYuNDE1LS40Ny42MzctMS4wNTMuNjc4LTEuNzczdi0uMzMzYzAtLjgxNy0uMjIxLTEuNDgzLS42NzgtMS45OTUtLjQ1Ny0uNTEzLTEuMDgtLjc3Ni0xLjg4NC0uNzc2Wk0xOC4wMDMgMGE2IDYgMCAwIDEgMCAxMkgwVjMuNDIzQTMuNDIgMy40MiAwIDAgMSAzLjQyIDBoMTQuNTgzWiIvPjwvc3ZnPg==",v3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAABC1BMVEUAAADt7vHt7vHn5+/v7+/u7vLs7O/Y2urv7+/I0uTu7/Ls7e/r6+/r7e/J1OTE0OGdrMHu7/Hu7/Lt7vHHz9/I0+Ps7O/V3eju7/GXp72YqL7s7u/I0uPH0+Pv7/OWpr3H0uLH0+OXp7vl6e67xtmquszi5u3W3ejAzd66x9jJ0+O5xdimtcmYprzI0+Ps7e+Yp73t7vHI0+OXp7309vnCzt/N1+Xd4+ucrMHp7PLa4evR2uff5O3F0OHo6+/j5+6uu82jssedrMKaqr/Y3+nP2ObR2OOpt8rm6e/k5+68yNq6xdW2w9XT3OivvdCmtcnu8fa/ytezwNKhsMTL09/c4+zZ3+m/y9zGz9seNO0nAAAAMXRSTlMA3+8gEJ9gECDfv3BAgO/v78+vkCCQUO/f37ewoIB/cGBAQO/v79/f39/Pz8/Pv6CfPHl8AQAAAyVJREFUSMedluda4kAUQAcUkGJB0bXturq9b3JTaUkITQOiYHv/JzEzmZYYIp/nhyYz93hnbqaI0ijVqoX6oRJyWNmt1tBqlIqVvBIjv1tcQfvALZlcYe0tGmEvQz3gWmrW4rJ0BeUVCutp3lpOeZXc2ts8YWZ72abw3mKWqOdMp+3U8OaWanSpKVeI1rOrdnTVuHyhOaq6/V1tsdoKr0ib+roF/khvJry++mMHwFPZ+8GLCbZGENJ7nI7b/amBaX0zP7W2fgOmM2Zrlw12T6EYC8D4HTXGFyBc8Tls0oQKQ/UBs7MdF3eo+FWJpyzIovAEuiUyyinFJzQ8APC4J0yPzJGIImVREeIEvF8k9Op61uuB3/PcQMfvEws8dSwi8UbZ5W9dlsD1QcKbkMaOKn2mSijmuWcQreNCkp6uEkx5rDX+0ooGaUEK15HZ5cE1VGWPbdI1gXRGpLfFxaqYIhloAJBp8sIWUEVOqPuwlHksZR3l5BnOIANdnmUO0QebFAayGMUKy0QHt44yNLr2+0nRxKK1VCI9QRgySIpN/Olxr7kAN3Dpn7h1hmSnPdkWLY/BxZwQdRyjmWBrmmbeuVjUNHsOELY80VVg8OLUk6J2o0XYw+AO/w7ADRsti4gDvlj/ic/YIeJLhk74wzFhLn3IE7bkuqw4OF8qJjxKVa3yRY7FazwdEuTaLN6eOzRvT15zNbSel8rqA5g4yIVbJt6CS8WJVJs8Qmyx2iQlFWdCDGAWPfTlhXMiHR0POOUChjjozuJDdWbD6GGAE3bF0YHHKlLq1lBLp4m72/wrYjbp2yUxzQzvQexGJKVUSKfhpGg3ZNMN8kzcQDQlN0m/nfTuo3b5PGYpxR4hIWNpGdjTqPEdj8pt8H9T5KOVutP7dkiTjJF48dM4cV85JC4dgx3ke0iwXqc3aCb9LrvKBRvhthwbGRJNKiYozLa6Aib3hFleRSyn/GvVSJhXo95iNom3/WygFEr7sbuUX1SCfbSEj2X59k6a5XO0lMa+8BLm1vsSyqJxWk4e6V6mJg/4b+KS/Hx6jlbk4uz4+Ag7R3/+n12khjwDw+rmuecPQ74AAAAASUVORK5CYII=";function Zl(e){let t=hn(),{onTranslateTheMainPage:n,onUserConfigChange:a,request:r,onTranslateLocalHtmlFile:o,onSwitchTranslationMode:u,onTranslateLocalSubtitleFile:i,onSetBuildinConfig:s,pageStatus:c,openEbookBuilderPage:l,openPricingPage:f,openEbookViewerPage:p,config:m,openAboutPage:g,onTranslateTheWholePage:T,onToggleEnabled:w,openOptionsPage:b,ontranslateToThePageEndImmediately:S,onSetPageLanguage:D,onToggleTranslate:N,onTranslateLocalPdfFile:_,onTranslatePdf:y,onRestorePage:E,ctx:x,currentUrl:v,currentLang:C,onClose:R,onTranslatePage:M,onSetLocalConfig:k,onMouseTriggerChanged:P,errorMsg:O,disabledButton:j,noPermissionPDF:B}=e,A=a,[L,U]=$(""),[K,H]=$(O),[V,q]=$(null),[oe,Z]=$(null),{t:J,lang:ye}=ue(),xe=70;ye.startsWith("zh")||(xe=75);let ie=null,Y=null,ce=null,fe=null,ge=null,Ee=null,Le=null,ve=null,ee=null,De=null,_e=null,je=null;he(()=>{Xe.get(xt,null).then(W=>{W?(q(W),Z(Xt(W))):Z(!1)}).catch(W=>{Z(!1)})},[]);let We=!0,Et=ot();if(m){Et&&m&&(We=m.generalRule.showSponsorOnSafari);let{translationService:W,translationServices:pe,translationUrlPattern:nt}=m;Mn[W]&&(ve=gl("translationService",W,x)),pe&&pe[W]?je=pe[W]||{}:je={};try{ee=new URL(v||"")}catch{}if(v&&x3(v)){De=E3(ee.hostname),_e=C3(v);let{matches:Be,excludeMatches:Ie}=nt;Y=Be.includes(De),ie=Be.includes(ee.hostname),fe=Ie.includes(De),ce=Ie.includes(ee.hostname),Ee=Be.includes(_e),Le=Ie.includes(_e)}}if(m&&C&&C!=="auto"){let{translationLanguagePattern:W}=m,{matches:pe}=W;pe.includes(C)?ge=!0:ge=!1}let Vt=W=>{W.preventDefault(),b()},za=W=>{A(pe=>(pe.alpha?U("Success disable alpha!"):U("Success enable alpha!"),{...pe,alpha:!pe.alpha}))},nn=W=>{A(pe=>({...pe,translationMode:W})),u(W)},Qn=()=>{A(W=>({...W,translationArea:"body"})),T()},ma=()=>{A(W=>({...W,translationArea:"main"})),n()},ze=(W,pe,nt,Be)=>{if(W==="default"){A(jn=>{let cn={...jn.translationUrlPattern};return{...jn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...jn.translationUrlPattern,matches:at([ee?.hostname,De,v],cn.matches),excludeMatches:at([ee?.hostname,De,v],cn.excludeMatches)}}});return}let Ie=W,Zn=Ie==="matches"?"excludeMatches":"matches";ee&&A(jn=>{let cn={...jn.translationUrlPattern};return cn[Ie]=bn(pe,cn[Ie]),Be.length>0&&(cn[Ie]=at(Be,cn[Ie])),cn[Zn]=at(nt,cn[Zn]),{...jn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...jn.translationUrlPattern,...cn}}}),Ie==="matches"&&c==="Original"?setTimeout(()=>{M(),R()},100):Ie==="excludeMatches"&&c==="Translated"&&setTimeout(()=>{E(),R()},100)},an=W=>{if(!W){A(Be=>{let Ie={...Be.translationLanguagePattern};return{...Be,translationLanguagePattern:{...Be.translationLanguagePattern,matches:at(C,Ie.matches),excludeMatches:at(C,Ie.excludeMatches)}}});return}let pe=W,nt=pe==="matches"?"excludeMatches":"matches";C&&A(Be=>{let Ie={...Be.translationLanguagePattern};return Ie[pe]=bn(C,Ie[pe]),Ie[nt]=at(C,Ie[nt]),{...Be,translationLanguagePattern:{...Be.translationLanguagePattern,...Ie}}}),pe==="matches"&&c==="Original"&&setTimeout(()=>{M(),R()},100)},ht=ee?.pathname.toLowerCase().endsWith(".pdf"),Ze=J("translate");c==="Translated"||c==="Error"?Ze=J("show-original"):c==="Original"?ht?Va()&&ee.protocol==="file:"||B?Ze=J("translate-firefox-local-pdf"):me()?Ze=J("noSupportTranslate-pdf"):Ze=J("translate-pdf"):Ze=J("translate"):Ze=J(c);let ln=J("translateToThePageEndImmediately");(c==="Original"||c==="Translated")&&(m.shortcuts.toggleTranslatePage&&(Br()&&x.rule.fingerCountToToggleTranslagePageWhenTouching>=2?Ze+=` (${J(`fingers.${x.rule.fingerCountToToggleTranslagePageWhenTouching}`)})`:Ze+=` (${m.shortcuts.toggleTranslatePage})`),m.shortcuts.toggleTranslateToThePageEndImmediately&&(ln+=` (${m.shortcuts.toggleTranslateToThePageEndImmediately})`));let Yt=[];x&&(Yt=Ci(x,"translationService"));let pa=W=>{W.preventDefault(),R()},At=Qr(x.config.translationService,x.config.targetLanguage),An=Ee||ie||Y,Ve=()=>Ee?d("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[d("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!Ee,onChange:W=>{let pe=W.target.checked;ze(pe?"matches":"default",_e,[_e],[])}}),J("alwaysTranslateSomePage")]}):ie?d("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[d("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!ie,onChange:W=>{let pe=W.target.checked;ze(pe?"matches":"default",ee.hostname,[ee.hostname,De,_e],[De])}}),J("alwaysTranslateSomeSiteOrWildSite")]}):Y?d("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[d("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!Y,onChange:W=>{let pe=W.target.checked;ze(pe?"matches":"default",De,[_e,ee.hostname,De],[ee.hostname])}}),J("alwaysTranslateSomeSiteOrWildSite")]}):null;return d("div",{children:[d("div",{class:"popup-container px-6 pt-6 max-content",children:[d("div",{class:"text-sm",children:[d("div",{class:"flex justify-between mb-3 items-center",children:[d("label",{class:"inline-block text-label",children:[J("popupSourceLanguage"),"\uFF1A"]}),d(On,{maxWidth:186,items:sn.map(W=>({label:Mt(W,m.interfaceLanguage),value:W,selected:W===x.sourceLanguage,onSelected:pe=>{D(pe.value)}}))})]}),m&&m.targetLanguage&&d("div",{class:"flex items-center justify-between mb-3",children:[d("label",{class:"inline-block text-label",children:[J("popupTarget"),"\uFF1A"]}),d(On,{maxWidth:186,items:At.filter(W=>W!=="auto").map(W=>({label:Mt(W,m.interfaceLanguage),value:W,selected:W===m.targetLanguage,onSelected:pe=>{A(nt=>({...nt,targetLanguage:pe.value}))}}))})]}),ve&&Yt.length>0&&d(Fe,{children:[d("div",{class:"flex items-center justify-between mb-3",children:[d("label",{class:"inline-block text-label",children:[J("popupService"),"\uFF1A"]}),d(On,{maxWidth:186,items:Yt.map(W=>({label:`${J("translationServices."+W.id)}${W.ok?"":" "+(" "+(!oe&&!Et&&W.providers&&W.providers.length>0?J("goLoginOrAction"):J("needAction")))}`,value:W.id,selected:W.selected,onSelected:pe=>{let nt=Yt.find(Be=>Be.id===pe.value);if(nt.ok){if(A(Be=>({...Be,translationService:nt.id})),c!="Translated")return;nt.props.length===0?setTimeout(()=>{M()},1):setTimeout(()=>{E()},1)}else A(Be=>({...Be,translationService:nt.id})),setTimeout(()=>{b()},100)}}))})]}),je&&ve.props.length>0&&ve.props.map((W,pe)=>d("div",{class:"pl-4 text-sm",children:d(Yl,{field:W,value:je[W.name],onChange:nt=>{A(Be=>{let Ie=Be.translationServices||{},Zn=Ie[ve.id]||{};return setTimeout(()=>{E()},1),{...Be,translationServices:{...Ie,[ve.id]:{...Zn,[W.name]:nt}}}})}},"field-"+pe)},"service"+pe))]}),ee&&d("div",{class:"flex items-center justify-between mb-3",children:[d("label",{class:"inline-block text-label",children:J("forThisSite")}),d(On,{maxWidth:186,items:[{label:J("default"),value:"default",selected:ie===!1&&ce===!1&&!Y&&!fe&&!Ee&&!Le,onSelected:()=>{ze("default",ee.hostname,[],[]);let W=ee.hostname,pe=x.localConfig.tempTranslationUrlMatches||[],nt=pe.filter(Ie=>Ie.match!==W),Be=!1;nt.length!==pe.length&&(Be=!0),Be&&k({...x.localConfig,tempTranslationUrlMatches:[...nt]})}},_e&&{label:J("alwaysTranslateSomeSite",{hostname:J("currentUrl")}),value:"matchesUrl",selected:Ee,onSelected:()=>{ze("matches",_e,[_e],[])}},{label:J("alwaysTranslateSomeSite",{hostname:ee.hostname}),value:"matches",selected:ie,onSelected:W=>{ze(W.value,ee.hostname,[ee.hostname,De,_e],[De])}},De&&{label:J("alwaysTranslateSomeSite",{hostname:De}),value:"matchesWild",selected:Y,onSelected:()=>{ze("matches",De,[_e,ee.hostname,De],[ee.hostname])}},_e&&{label:J("neverTranslateSomeSite",{hostname:J("currentUrl")}),value:"excludeMatchesUrl",selected:Le,onSelected:()=>{ze("excludeMatches",_e,[_e],[])}},{label:J("neverTranslateSomeSite",{hostname:ee.hostname}),value:"excludeMatches",selected:ce,onSelected:W=>{ze(W.value,ee.hostname,[ee.hostname,De,_e],[De])}},De&&{label:J("neverTranslateSomeSite",{hostname:De}),value:"excludeMatchesWild",selected:fe,onSelected:()=>{ze("excludeMatches",De,[ee.hostname,_e,De],[ee.hostname])}}].filter(Boolean)})]}),P&&ia()&&d("div",{class:"flex items-center justify-between mb-3",children:[d("label",{class:"inline-block text-label",children:[J("mouse-translate"),"\uFF1A"]}),d(On,{maxWidth:186,items:Ca.filter(W=>!(Ca.includes(m.generalRule.mouseHoverHoldKey)&&W==="OtherCustom")).map(W=>{let pe=J("mouseHoldKey",{key:W}),nt=Ca.includes(m.generalRule.mouseHoverHoldKey),Be=W===m.generalRule.mouseHoverHoldKey;return W==="Auto"?pe=J("mouseHoldKeyAuto"):W==="Off"?pe=J("mouseHoldKeyOff"):W==="OtherCustom"?pe=nt?J("mouseHoldKeyOther"):J("mouseHoldKeyCustomKey",{key:m.generalRule.mouseHoverHoldKey}):W==="Other"&&(pe=J("mouseHoldKeyOther")),nt||W==="OtherCustom"&&(Be=!0),{label:pe,value:W,selected:Be,onSelected:Ie=>{Ie.value==="Other"?b("#interface"):P(Ie.value)}}})})]})]}),d("div",{class:"",children:d("button",{class:"py-2 mt-1 mb-5 main-button ",onClick:()=>{ht?y&&y():N()},"aria-busy":c==="Translating",disabled:j||c==="Translating",children:Ze})}),d("div",{class:"text-sm",children:L}),d("div",{class:`pb-2 text-sm ${K?"":"display-none"}`,children:K}),d("div",{class:"flex items-center justify-between flex-wrap",children:[An?d(Ve,{}):C&&C!=="auto"?d("label",{for:"alwaysTranslateThisLanugage",class:"text-sm text-label text-overflow-ellipsis max-w-20",children:[d("input",{type:"checkbox",id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",checked:!!ge,onChange:W=>{let pe=W.target.checked;an(pe?"matches":void 0)}}),J("alwaysTranslateSomeLanguage",{language:Mt(C,m.interfaceLanguage,!1,!0)})]}):d("span",{}),d("div",{class:`flex flex-end flex-grow ${K?"display-none":""}`,children:d("span",{class:"immersive-translate-no-select muted text-sm",onClick:nu(7)(za),children:["V",t,m.enabled?null:d("a",{href:"#",onClick:w,children:[" ","(",J("hasBeenDisabled"),")"]})]})})]})]}),d("footer",{children:[d("div",{class:"px-6 text-label",children:d(Jl,{isShowError:!1,request:r,setStorageBuildinConfig:s})}),d("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer text-label",children:[d("div",{class:"flex flex-row items-center justify-center secondary clickable",style:{width:70},onClick:Vt,children:[d($l,{}),d("span",{class:"ml-1",children:J("options")})]}),We?d("a",{title:J(oe?"popup.openProForPro":"popup.openPro"),target:"_blank",href:oe?Ar:W0,children:d("img",{src:oe?Jr:Ql})}):oe&&d("a",{title:J(oe?"popup.openProForPro":"popup.openPro"),target:"_blank",href:oe?Ar:W0,children:d("img",{src:oe?Jr:Ql})}),d(Vl,{label:J("more"),showArrow:!0,maxWidth:xe,onSelected:W=>{W.value==="openPremium"?(globalThis.open($a),R()):W.value==="changeToOnlyTranslationMode"?nn("translation"):W.value==="changeToDualTranslationMode"?nn("dual"):W.value==="translateTheWholePage"?T():W.value==="translateToThePageEndImmediately"?S():W.value==="translateTheMainPage"?n():W.value==="showTranslationOnly"||(W.value==="translateLocalPdfFile"?_&&_():W.value==="translateLocalHtmlFile"?o&&o():W.value==="translateLocalSubtitleFile"?i&&i():W.value==="donate"?(globalThis.open(m.donateUrl),R()):W.value==="feedback"?(globalThis.open(m.feedbackUrl),R()):W.value==="options"?(b(),R()):W.value==="changeToTranslateTheWholePage"?Qn():W.value==="changeToTranslateTheMainPage"?ma():W.value==="about"?g():W.value==="toggleEnabled"?w():W.value==="openEbookViewer"?p():W.value==="openEbookBuilder"?l():W.value==="goPro"&&f())},menus:[m.translationMode==="dual"&&{label:"\u{1F524} "+J("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},m.translationMode==="translation"&&{label:"\u{1F521} "+J("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},m.translationArea==="main"&&{label:"\u{1F480} "+J("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},m.translationArea==="body"&&{label:"\u{1F4D6} "+J("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},{label:"\u26A1 "+ln,value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+J("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+J("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+J("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},!me()&&{label:"\u{1F310} "+J("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+J("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},oe===!1&&We&&{label:"\u{1F451} "+J("upgradeToPro"),value:"goPro"},{label:"\u2764\uFE0F "+J(We?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})]})]})}h();h();async function w3(e){try{let t=new Date;z.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await Q.storage.local.set({[Hg]:t.toISOString()}),await Jy(),me()||await A3()}catch(t){z.error("run cron task failed",t)}}async function Jy(){try{let e=await Nn(),t=await se({url:Ea}),n=e.buildinConfigUpdatedAt,a=new Date(n),r=t.buildinConfigUpdatedAt,o=new Date(r),u=t.minVersion,i=Q.runtime.getManifest().version;Oa(i,u)?o>a?(await Q.storage.local.set({buildinConfig:t}),z.info(`sync remote rules success, latest: ${new Date(r).toLocaleString()}`)):z.debug(`no need to sync rules, latest: ${a}`):z.info(`local version is too old, please update to ${u} or later`)}catch(e){z.error("sync rules error: ",e)}}h();h();function Ji(){let e=new Date;return`${e.getFullYear()}-${e.getMonth()+1}-${e.getDate()}_${e.getHours()}-${e.getMinutes()}-${e.getSeconds()}`}h();h();var Yn=class{accessToken;constructor(t){this.accessToken=t}async listAll(){let t=[],n="";do{let{nextPageToken:a,files:r}=await this.list(n).catch(o=>{throw o});t.push(...r),n=a||""}while(n);return t}async getConfig(t){try{return await(await fetch(`https://www.googleapis.com/drive/v3/files/${t}?alt=media`,{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(n){return z.error("get config error, use default",n),{}}}async delete(t){await fetch(`https://www.googleapis.com/drive/v3/files/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${this.accessToken}`}})}findByName(t){return this.list(void 0,`name = '${t}'`)}uploadConfig(t,n=Gu){let a=new Blob([JSON.stringify(t,null,2)],{type:"application/json"});return this.upload({name:n,parents:["appDataFolder"],mimeType:"application/json"},a)}updateConfig(t,n){let a=new Blob([JSON.stringify(n,null,2)],{type:"application/json"});return this.updateContent(t,a)}async upload(t,n){let a=new FormData;a.append("metadata",new Blob([JSON.stringify(t)],{type:"application/json; charset=UTF-8"})),a.append("file",n);let r=await fetch("https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart",{method:"POST",headers:{Authorization:`Bearer ${this.accessToken}`},body:a});return r.ok?await r.json():Promise.reject(r.text())}async list(t,n){let a=new URL("https://www.googleapis.com/drive/v3/files");t&&a.searchParams.append("pageToken",t),n&&a.searchParams.append("q",n),a.searchParams.append("spaces","appDataFolder"),a.searchParams.append("fields","files(id,name,createdTime,modifiedTime,size)"),a.searchParams.append("pageSize","100"),a.searchParams.append("orderBy","createdTime desc");try{return z.debug("list api:",a.toString(),this.accessToken),await(await fetch(a.toString(),{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(r){throw z.error("fetch google ip error",r),r}}async updateContent(t,n){return await(await fetch(`https://www.googleapis.com/upload/drive/v3/files/${t}?uploadType=media`,{method:"PATCH",headers:{Authorization:`Bearer ${this.accessToken}`},body:n})).text()}};h();h();function k3(e,t){let n=["https://www.googleapis.com/auth/drive.appdata"];return`https://accounts.google.com/o/oauth2/v2/auth?client_id=${$u}&response_type=token&redirect_uri=${encodeURIComponent(t)}&scope=${encodeURIComponent(n.join(" "))}&state=${encodeURIComponent(JSON.stringify(e))}`}function S3(e){let t=e.match(/[#?](.*)/);return!t||t.length<1?null:{access_token:new URLSearchParams(t[1].split("#")[0]).get("access_token")}}async function Xl(e,t,n,a,r,o,u){if(z.debug(`autoSyncStrategy accessToken: ${e}`),t===null){z.debug("autoSyncStrategy settings is null");return}let i=new Yn(e);try{let s=(await i.findByName(Gu)).files;z.debug("files",s);let c=s[0]?.id,l=null;if(c&&(l=await i.getConfig(c).then(f=>({fileId:c,config:f}))),l){let{config:f,fileId:p}=l,m=f.updatedAt?new Date(f.updatedAt):new Date(0),g=t.updatedAt?new Date(t.updatedAt):new Date(0);if(z.debug("remoteUpdatedAt",m,"localUpdatedAt",g),m>g)z.debug("remote is newer, update local config",f),n(f),o&&o(!0);else if(m.getTime()===g.getTime())z.debug("remote and local are the same, do nothing"),o&&o(!1);else if(m{r.status!=200&&u("Token validation error"),r.json().then(i=>{i.aud&&i.aud===Zy?o(e):u("Token validation error")})})}return fetch(n).then(a)}function L3(e,t=!1){let n=Xy;if(typeof window<"u"&&window.location.protocol.startsWith("http")){let r=window.location.hostname,o=window.location.port;n=`${window.location.protocol}//${r}${o?`:${o}`:""}/auth-done/`}return new Na(e,n).auth(t)}function ec(e,t=!1){return L3(e,t).then(n=>n.access_token||null)}var ex="https://oauth2.googleapis.com/revoke",Na=class e{CLASSNAME="GoogleAuth";_state;_redirectUrl;constructor(t,n){this._state=t,this._redirectUrl=n}static revoke(t){let n=`${ex}?token=${t}`;return fetch(n,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then(async a=>(await e.removeAuthInfo(),ko()&&globalThis.location.reload(),a))}static async getAuthInfo(){let t=await Q.storage.local.get(Kn);if(t[Kn])return t[Kn]}static async removeAuthInfo(){return await Q.storage.local.remove(Kn)}static setAuthInfo(t){return Q.storage.local.set({[Kn]:t})}async auth(t=!1){let n=await e.getAuthInfo();if(z.debug(this.CLASSNAME,"token from cache:",n),n&&n.access_token&&await D3(n.access_token).then(o=>!0).catch(o=>!1))return Promise.resolve(n);let a=k3(this._state,this._redirectUrl);return z.debug(this.CLASSNAME,"auth url: "+a),ko()?this.userscriptAuthWorkflow(a,t):this.extensionAuthWorkflow(a).then(r=>(e.setAuthInfo(r),r))}async userscriptAuthWorkflow(t,n){return n&&await Q.storage.local.set({[So]:!0}),globalThis.open(t,"_self"),Promise.resolve({})}extensionAuthWorkflow(t){let n,a=!1;return new Promise((r,o)=>{let u=()=>{Q.tabs.onUpdated.removeListener(i),Q.tabs.onRemoved.removeListener(s)},i=(p,m,g)=>{if(z.debug(this.CLASSNAME,"create tab onUpdated: "+g.url),n===p){let T=new URL(g.url||""),w=S3(g.url);T.pathname.startsWith("/auth-done")&&w?.access_token&&(z.debug(this.CLASSNAME,"auth done: "+g.url),r({access_token:w.access_token}),a=!0,Q.tabs.remove(p),u())}},s=(p,m)=>{z.debug(this.CLASSNAME,"create tab onRemoved: "+p),(p===n||!a)&&(u(),o(new Error("auth failed")))},c=Math.min(500,screen.availWidth),l=Math.min(650,screen.availHeight),f;Q.windows===void 0?f=Q.tabs.create({url:t}).then(p=>{n=p.id}):f=Q.windows.create({url:t,type:"popup",width:c,height:l,left:Math.round((screen.width-c)/2),top:Math.round((screen.height-l)/2)}).then(p=>{n=p.tabs[0].id}),f.then(()=>{Q.tabs.onUpdated.addListener(i),Q.tabs.onRemoved.addListener(s)}).catch(p=>{z.debug(this.CLASSNAME,"create tab failed: "+p),o(p)})})}};function tx(e){let{t}=ue(),{accessToken:n,id:a,listAllFiles:r}=e,[o,u]=$(!1);function i(s,c){s.preventDefault(),u(!0),new Yn(n).delete(c).catch(l=>{Bt(t("delete"))}).then(()=>r()).finally(()=>u(!1))}return d("a",{href:"#",className:"secondary margin-left text-sm",onClick:s=>i(s,a),"aria-busy":o,children:t("delete")})}function tc(e){let{onClose:t,accessToken:n,authExpire:a}=e,{t:r}=ue(),[o,u,i,s]=ft(),[c,l]=$([]),[f,p]=$(!0),[m,g]=$(!1),[T,w]=$({});he(()=>{n&&S().then(()=>p(!1))},[n]);let b=E=>{E.target&&E.target.id==="immersive-translate-overlay"&&t()};function S(){return new Yn(n).listAll().then(x=>{l(x)}).catch(x=>a())}function D(E){if(E.preventDefault(),c.length>=10)return Bt(r("maxBackupFiles",{count:10}));g(!0);let x="immersive-translate-config-"+Ji()+".json";new Yn(n).uploadConfig(o,x).catch(v=>{Bt(r("uploadFail"))}).then(()=>S()).finally(()=>g(!1))}function N(E,x,v){E.preventDefault(),w({[v]:!0}),new Yn(n).getConfig(x).then(C=>{u(()=>({...C})),ut(r("importSuccess"))}).catch(C=>{z.error(C),Bt(r("importFail"))}).finally(()=>w({}))}function _(E,x){new Yn(n).getConfig(E).then(v=>{let C=document.createElement("a");C.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(JSON.stringify(v,null,2))),C.setAttribute("download",x),C.style.display="none",document.body.appendChild(C),C.click(),document.body.removeChild(C)}).catch(v=>{z.error("download google config file failed",v),Bt(r("downloadFail")+": "+v.message)})}function y(E){E.preventDefault(),u({...o,autoSync:!1}),Na.revoke(n).then(()=>t())}return d("dialog",{id:"immersive-translate-overlay",onClick:b,open:!0,children:d("article",{class:"md:w-[32rem] px-4",children:[d("a",{href:"#",title:r("clickToDownload"),"aria-label":"Close",className:"close","data-target":"modal-example",onClick:E=>{E.preventDefault(),t()}}),d("h4",{children:r("syncTitle")}),d("div",{className:"mb-4",children:c.map((E,x)=>d("div",{class:"flex flex-wrap justify-between",children:[d("div",{class:"mr-2 mb-2",children:[d("div",{children:d("a",{href:"#",onClick:v=>{v.preventDefault(),_(E.id,E.name)},class:"block truncate w-40 sm:w-auto",children:E.name.replace("immersive-translate-","")})}),d("div",{class:"text-xs text-gray-500",children:[new Date(E.modifiedTime).toLocaleString(),",\xA0",Go(parseInt(E.size))]})]}),d("div",{children:[d("a",{href:"#",role:"button",className:"margin-right secondary","aria-busy":T[x],disabled:T[x],onClick:v=>N(v,E.id,x),children:r("import_hint")}),d(tx,{accessToken:n,id:E.id,listAllFiles:S})]})]},"file"+x))}),d("div",{className:"flex items-center",children:[d("a",{href:"#",role:"button",className:"mr-4","data-target":"modal-example","aria-busy":m,onClick:D,disabled:f,children:r("create_new_backup")}),d("a",{href:"#",className:"secondary text-sm","data-target":"modal-example",onClick:y,disabled:f,children:r("revokeAuth")})]})]})})}function nx(){let[e,t]=$(null);return he(()=>{Ge().then(n=>{t(n)})},[]),e}function P3(){let[e,t]=$(null);return he(()=>{Gn().then(a=>{t(a)})},[]),[e,a=>{t(a),yn(a)}]}function nc(){let[e,t,n,a,r]=ft(),o=nx(),{t:u,setLang:i}=ue(),[s,c]=P3();if(!o)return null;return d("div",{class:"pb-4",children:[d(l,{}),d(f,{}),d(p,{}),d(m,{config:o})]});function l(){let g=b=>{b.preventDefault(),confirm(u("confirmResetConfig"))&&(r(Za()),ut(u("resetSuccess")),setTimeout(()=>{Q.storage.local.remove(Kn),Aa().catch(S=>{z.error("clean local config error",S)})},500))},T=b=>{t(()=>({...b}))},w=b=>{b.preventDefault();let S=document.createElement("input");S.setAttribute("type","file"),S.setAttribute("accept","text/plain"),S.style.display="none",document.body.appendChild(S),S.oninput=D=>{let N=D.target,_=new FileReader;_.onload=function(){try{let y=JSON.parse(_.result);T(y),ut(u("successImportConfig"))}catch(y){Bt(`Invalid JSON ${y.message}`)}},_.readAsText(N.files[0])},S.click(),document.body.removeChild(S)};return d(Fe,{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("import_export_title")})}),d("div",{class:"pb-2",children:[d("a",{class:"mr-2 secondary mb-2 !text-sm",onClick:w,href:"#",role:"button",children:[ux,u("import")]}),d("a",{href:"#",class:"secondary mr-2 mb-2 !text-sm",onClick:b=>{b.preventDefault();let S=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});To.saveAs(S,"immersive-translate-config-"+Ji()+".txt")},role:"button",children:[ix,u("export")]}),d("a",{href:"#",onClick:g,class:"secondary text-sm",children:u("reset")})]})]})}function f(){return d("details",{class:"mt-4 mb-6",children:[d("summary",{children:u("clickToExpandConfig")}),d("pre",{children:d("code",{children:JSON.stringify(e,null,2)})})]})}function p(){let[g,T]=$(!1),[w,b]=$(!1),[S,D]=$(!1),[N,_]=$("");he(()=>{if(ko()&&n){let k=localStorage.getItem(So);if(localStorage.removeItem(So),k){let P=globalThis.localStorage.getItem(I0);z.debug("import_export","rawAuthInfoStr",P);let O={},j={},B="";if(P){globalThis.localStorage.removeItem(I0);try{O=JSON.parse(P),j=O.state||{},B=O.access_token||""}catch(A){z.error("parse state error",A)}}if(B&&j&&(Na.setAuthInfo({access_token:B}),z.debug("import_export","Google OAuth:",O),O)){let A=O.state;z.debug("state",A),A?.mode==="auto"?(b(!0),R(B)):(D(!0),v(B))}}}},[n]);function y(){b(!0),ec({source:globalThis.location.href,mode:"auto"},!0).then(k=>{z.debug("import_export","Google OAuth:"+k),k!==null&&R(k)}).catch(k=>{k&&k.message==="tokenValidateErrorRedirectToAuthUrl"?z.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):C(k)})}function E(){D(!0),T(!1),ec({source:globalThis.location.href,mode:"manual"},!0).then(k=>{z.debug("import_export","Google OAuth:"+k),k!==null&&v(k)}).catch(k=>{k&&k.message==="tokenValidateErrorRedirectToAuthUrl"?z.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):C(k)})}function x(){_(""),y()}function v(k){_(k),D(!1),T(!0)}function C(k){b(!1),D(!1),T(!1),t({...e,autoSync:!1}),z.error("import_export","Google OAuth error:"+k),Bt(u("authFail"))}function R(k){b(!0),z.debug("sync latest with drive",k,e),_(k),Xl(k,e,P=>{P.interfaceLanguage&&i(P.interfaceLanguage),r(P)},P=>c({...s,lastSyncedAt:P}),P=>t({...e,updatedAt:P}),P=>{P?ut(u("successSyncConfig")):ut(u("successSyncButNoChange"))},P=>Bt(u("syncFail")+P)).finally(()=>{b(!1)})}function M(k){t({...e,autoSync:k.checked}),k.checked&&y()}return d(Fe,{children:[d("hgroup",{class:"my-2",children:[d("h5",{children:u("syncToCloud")}),d("h6",{class:"!text-sm",children:u("syncToCloudDescription")})]}),d("div",{children:[d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:k=>{k.preventDefault(),y()},"aria-busy":w,href:"#",role:"button",children:[w?d(Fe,{}):M3,u("syncToGoogleDrive")]}),d("a",{href:"#","aria-busy":S,onClick:k=>{k.preventDefault(),E()},class:"secondary text-sm",children:u("backupToCloud")})]}),d("div",{class:"text-xs text-gray-500",children:s?.lastSyncedAt&&u("lastSyncedAt",{date:new Date(s.lastSyncedAt).toLocaleString()})}),s?.lastSyncErrorMessage&&d("p",{class:"mt-2 text-xs text-red-500"}),g?d(tc,{onClose:()=>T(!1),authExpire:x,accessToken:N}):null]})}function m({config:g}){let T=F3(),[w,b]=$(!1),[S,D]=$(""),[N,_]=$(""),[y,E]=$(null),{t:x}=ue();if(!T||!T.token)return null;async function v(){try{if(w)return;b(!0),_("");let M=await Qi(T?.token,e,r),k="";switch(M){case"upload":{k=x("successSyncConfigToAccount");break}case"override":{k=x("successSyncConfigInAccount");break}default:k=x("syncConfigNoUpdate")}D(k)}catch(M){D(""),_(M.message)}finally{b(!1)}}let C=M=>{c({...s,proAutoSync:M})},R=s&&s.proAutoSync!==void 0?s.proAutoSync:!0;return d(Fe,{children:[d("hgroup",{class:"my-2 mt-4",children:[d("h5",{children:x("syncToAccount")}),d("h6",{class:"!text-sm",children:x("syncToAccountDescription")})]}),d("fieldset",{class:"my-4",children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onChange:()=>{C(!R)},checked:R}),x("enableAutoSyncUserSettings")]})}),d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:M=>{M.preventDefault(),v()},"aria-busy":w,href:"#",role:"button",children:[M3," ",x("syncToAccountButton")]}),N?d("p",{class:"text-xs text-red-500",children:N}):d("p",{class:"text-xs text-gray-500",children:S||s?.accountLastSyncedAt&&x("lastSyncedAt",{date:Dp(s.accountLastSyncedAt)})})]})}}async function Qi(e,t,n){try{if(t===null)return"noupdate";let a=await rx(e),r=await Gn();r.accountLastSyncedAt=Date.now(),z.debug("settings",t),z.debug("local settings.updatedAt",t.updatedAt),z.debug("remote settings.updatedAt",a.updatedAt),z.debug("last synced at",r.accountLastSyncedAt);let o=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(o=!0),!o&&t.updatedAt>a.updatedAt&&(o=!0),z.debug("isUpload",o),o)return await ox(e,t),await yn(r),"upload";let u=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(u=!0),!u&&t.updatedAt0&&Xe.remove(xt),a}}function En(e,t){let n=F3(),[a,r]=P3();he(()=>{!n||!n.token||a&&a.proAutoSync===!1||ax(n)&&Qi(n.token,e,t)},[e,n])}function ax(e){return Xt(e)?!0:new Date(e.createTime){Xe.get(xt,null).then(n=>{t(n)})},[t]),e}function rx(e){return(location.href?.indexOf("popup.html")>0?Pn:se)({responseType:"json",url:Bo+"/v1/user/settings",method:"get",headers:{token:e}}).then(n=>n.data)}function ox(e,t){return(location.href?.indexOf("popup.html")>0?Pn:se)({responseType:"json",url:Bo+"/v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(a=>a.data)}var M3=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",children:d("path",{fill:"currentColor",d:"M15.375 19.25q-.525.25-.95-.038q-.425-.287-.425-.937q0-.25.163-.487q.162-.238.412-.363q1.575-.75 2.5-2.225T18 11.95q0-1.125-.425-2.188Q17.15 8.7 16.25 7.8L16 7.55V9q0 .425-.287.712Q15.425 10 15 10t-.712-.288Q14 9.425 14 9V5q0-.425.288-.713Q14.575 4 15 4h4q.425 0 .712.287Q20 4.575 20 5t-.288.713Q19.425 6 19 6h-1.75l.4.35q1.225 1.225 1.788 2.662Q20 10.45 20 11.95q0 2.4-1.25 4.362q-1.25 1.963-3.375 2.938ZM5 20q-.425 0-.713-.288Q4 19.425 4 19t.287-.712Q4.575 18 5 18h1.75l-.4-.35q-1.225-1.225-1.788-2.662Q4 13.55 4 12.05q0-2.4 1.25-4.363Q6.5 5.725 8.625 4.75q.525-.25.95.037q.425.288.425.938q0 .25-.162.487q-.163.238-.413.363q-1.575.75-2.5 2.225T6 12.05q0 1.125.425 2.187Q6.85 15.3 7.75 16.2l.25.25V15q0-.425.288-.713Q8.575 14 9 14t.713.287Q10 14.575 10 15v4q0 .425-.287.712Q9.425 20 9 20Z"})}),ux=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zm10-5.828L19.071 7.1l1.414 1.414L12 17 3.515 8.515 4.929 7.1 11 13.17V2h2v11.172z"})]}),ix=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zM13 5.828V17h-2V5.828L4.929 11.9l-1.414-1.414L12 2l8.485 8.485-1.414 1.414L13 5.83z"})]});function rc(e){let{onClose:t}=e,[n,a]=$("Original"),[r,o,u,i]=ft(()=>{setTimeout(()=>{D("updateGlobalContext",!1)()},250)});En(r,o);let[s,c]=$(null),[l,f]=$(globalThis.location.href),[p,m]=$("auto"),[g,T]=$(null),w=j=>{a(j.detail)},b=j=>{m(j);let B=y3(l,j,s.sourceLanguageUrlPattern);o(A=>({...A,sourceLanguageUrlPattern:B})),xn(j)},S=()=>{f(globalThis.location.href)};he(()=>(document.addEventListener(Ju,w,!1),Nn().then(j=>{c(j);let B=Dt();m(B);let A=tt();a(A),w3(j.interval)}),document.addEventListener("urlChange",S),()=>{document.removeEventListener("pageTranslatedStatus",w),document.removeEventListener("urlChange",S)}),[]),he(()=>{Nn().then(j=>{c(j)})},[r]),he(()=>{l&&s&&Lt({url:l,config:s}).then(j=>{T(j)})},[l,s]);let D=(j,B,A={})=>()=>{Vr({method:j,data:A||{}}),B&&t()},N=()=>{t()},_=()=>{o(j=>({...j,enabled:!j.enabled})),setTimeout(()=>{N()},50)},y=()=>{ac(),setTimeout(()=>{N()},50)},E=()=>{ac(),setTimeout(()=>{N()},50)},x=(j="")=>{Zr(!0,j),setTimeout(()=>{t()},50)},v=()=>{es(em),setTimeout(()=>{globalThis.close()},50)},C=()=>{Xi(),setTimeout(()=>{t()},50)},R=()=>{ts(),setTimeout(()=>{t()},50)},M=()=>{B3(),setTimeout(()=>{t()},50)},k=()=>{ns(),setTimeout(()=>{t()},50)},P=()=>{R3(),setTimeout(()=>{t()},50)},O=j=>{o(B=>({...B,generalRule:{...B.generalRule,mouseHoverHoldKey:j}}))};return!s||!g?null:d(Zl,{openEbookViewerPage:R,openEbookBuilderPage:k,onSwitchTranslationMode:j=>{D("switchTranslationMode",!0,{mode:j})()},onTranslateLocalHtmlFile:M,onTranslateLocalSubtitleFile:P,request:se,onClose:N,onToggleEnabled:_,onTranslateTheWholePage:D("translateTheWholePage",!0),openOptionsPage:x,openPricingPage:v,onToggleTranslate:D("toggleTranslatePage",!0),onTranslateTheMainPage:D("translateTheMainPage",!0),ontranslateToThePageEndImmediately:D("translateToThePageEndImmediately",!0),onTranslatePage:D("translatePage",!0),onRestorePage:D("restorePage",!1),onTranslatePdf:y,openAboutPage:C,onTranslateLocalPdfFile:E,onSetPageLanguage:b,onUserConfigChange:o,config:s,pageStatus:n,ctx:g,currentUrl:l,currentLang:p,onSetLocalConfig:Zi,onSetBuildinConfig:_3,onMouseTriggerChanged:O})}function sx(e,t){for(let n of t){if(me()&&!Va()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}var oc={position:"right",right:0,top:335},Kt={...oc},os=!1,er=null,Jn=null,us=null,uc=null,Xr=null,ic=null,I3=6,as,rs,N3=null,U3=null;async function j3(){let e=Ke();ic=await q3(),Kt=ic.pagePopupConfig||Kt;let t=document.createElement("div");t.id="immersive-translate-popup",t.setAttribute("style","all: initial"),document.documentElement.appendChild(t);let n=t.attachShadow({mode:"open"});uc=n;let a=[e.IMMERSIVE_TRANSLATE_PICO_CSS,e.IMMERSIVE_TRANSLATE_COMMON_CSS,e.IMMERSIVE_TRANSLATE_POPUP_CSS,e.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);sx(n,[a]);let r=document.createElement("div");r.innerHTML=e.IMMERSIVE_TRANSLATE_POPUP_HTML,n.appendChild(r),er=n.querySelector("#immersive-translate-popup-container");let u=n.querySelector("#immersive-translate-popup-btn");Jn=u,us=n.querySelector("#mount"),er.setAttribute("style",sc(Kt)),gc(),u.addEventListener("mousedown",z3),u.addEventListener("touchstart",dx),globalThis.addEventListener("resize",s=>{er.setAttribute("style",sc(Kt))})}function lx(){Ha(null,us),us.style.display="none",Jn.style.display="block",Xr=setTimeout(()=>{gc(!0)},2e3)}function O3(e){let t=e.querySelector("#mount"),n=()=>{lx()},a=r=>{r&&r.target&&r.target.id==="immersive-translate-popup-overlay"&&n()};(async()=>{let r=await Nn();Ha(d(si,{lang:r.interfaceLanguage,fallbackLang:"zh-CN",translations:Gr,children:d("div",{onClick:a,id:"immersive-translate-popup-overlay",class:"immersive-translate-popup-overlay",children:d("div",{class:"immersive-translate-popup-wrapper",style:cx(),children:d(rc,{onClose:n})})})}),t)})().then(()=>{Jn.style.display="none",us.style.display="block"})}function cx(){let e=lc(),t=e.height,{position:n,top:a,left:r}=Kt,o={position:"fixed"},u=300,i=300,s=100;return Ag()&&(n=oc.position,a=oc.top),n==="right"||n==="left"?(o.top=a-s,o.top+u>=t?(o.bottom=30,delete o.top):o.top<=10&&(o.top=10),n==="right"?o.right=0:n==="left"&&(o.left=0)):(n==="top"||n==="bottom")&&(o.left=r-s,o.left+i>=e.width?(o.right=0,delete o.left):o.left<=10&&(o.left=0),n==="top"?o.top=0:n==="bottom"&&(o.bottom=0)),o}function lc(){return{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}function z3(e){U3=er.getAttribute("style"),as=e.pageX,rs=e.pageY,Xr&&clearTimeout(Xr),os=!1,Jn.style.opacity="1",Jn.style.transform="none",N3=Jn.getAttribute("style"),globalThis.addEventListener("mousemove",cc),globalThis.addEventListener("mouseup",dc),globalThis.addEventListener("touchmove",H3),globalThis.addEventListener("touchend",is),globalThis.addEventListener("touchcancel",is)}function dx(e){e.preventDefault&&e.preventDefault(),z3(e.changedTouches[0])}function H3(e){cc(e.changedTouches[0])}function is(e){e.preventDefault&&e.preventDefault(),dc(e.changedTouches[0])}function cc(e){e.preventDefault&&e.preventDefault(),os=!0,er.setAttribute("style",`left:${e.clientX}px;top:${e.clientY}px;transform:scale(1.6);`)}function dc(e){e.preventDefault&&e.preventDefault(),mx(),Xr&&clearTimeout(Xr),as=as||0,rs=rs||0;let t=Math.abs(e.pageX-as),n=Math.abs(e.pageY-rs);t{gc(!0)},2e3)}function gc(e=!1){Jn.style.opacity="0.4";let t="";Kt.position==="left"?t="translateX(-40%)":Kt.position==="right"?t="translateX(40%)":Kt.position==="top"?t="translateY(-40%)":Kt.position==="bottom"&&(t="translateY(40%)"),Jn.style.transform=t,e&&(Jn.style.transition="transform 0.2s ease-in-out, opacity 0.2s ease-in-out")}function mx(){globalThis.removeEventListener("mousemove",cc),globalThis.removeEventListener("mouseup",dc),globalThis.removeEventListener("touchmove",H3),globalThis.removeEventListener("touchend",is),globalThis.removeEventListener("touchcancel",is)}function sc(e){let t=px(e);return Object.keys(t).map(n=>typeof t[n]=="number"?`${n}:${t[n]}px;`:"").join("")}function px(e){let{position:t,...n}=e,a=lc(),r={};return t==="left"?(r.left=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="right"?(r.right=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="top"?(r.top=0,n.left>a.width?r.left=a.width-100:r.left=n.left):t==="bottom"&&(r.bottom=0,n.left>a.width?r.left=a.width-100:r.left=n.left),r}var W3=!1;async function K3(){W3||(W3=!0,j3().catch(e=>{z.error("init popup error",e)}))}var $3=!1,J3=[()=>{Ue.unbind()}],pc=[...J3],fx=Ft(async()=>{await Zr()},50),hx=Ft(async()=>{await Xi()},50),bx=Ft(async()=>{await ns()},50),yx=Ft(async()=>{await ts()},50),Q3=Ft(e=>{Vr({method:e,data:{trigger:"userscript_menu"}})},50),xx=Ft(()=>{ss();let e=new CustomEvent(Ta,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},200),Tx=Ft(()=>{ds();let e=new CustomEvent(Ta,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},200),Ex=Ft(()=>{cs();let e=new CustomEvent(Ta,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},200);function Cx(e,t){let n=e.document;if($3)return;if($3=!0,me()||of(),n.addEventListener("securitypolicyviolation",Bx),document.addEventListener(be+"DocumentMessageUser",nf),document.addEventListener(be+"DocumentMessageUpdateUser",af),document.addEventListener(be+"ChangeSuccessService",rf.bind(null,t)),document.addEventListener(Yu,Px.bind(null,t)),n.addEventListener(be+"EbookLoaded",_x),n.addEventListener(Fg,Fx),n.addEventListener(_g,Rx.bind(null,t)),n.addEventListener("click",r=>{kx(r,t)}),me()&&(globalThis.top!=globalThis.self?e.addEventListener("message",wx,!1):n.addEventListener(Ta,vx)),globalThis.top===globalThis.self){let r=Ma.rootIframe(ni);r.handleAsk("getRateLimitDelay",f3),r.handleAsk("throttleRequest",h3)}}function Z3(e,t){Ix(),Cx(t,e);let n=t.document,a=Ax.bind(null,e);e.rule.fingerCountToToggleTranslagePageWhenTouching>=2&&n.addEventListener("touchstart",a),pc.push(()=>{n.removeEventListener("touchstart",a)}),me()&&globalThis.top===globalThis.self&&(Wl(e.config),Ox(e.config)),ot()&&Wl(e.config)}function vx(e){K3()}function wx(e){let t=e;t&&t.data&&t.data.payload&&t.data.author===Vu&&Yr(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})}function Ax(e,t){let n=t;n.touches.length==e.rule.fingerCountToToggleTranslagePageWhenTouching?xx():n.touches.length===e.rule.fingerCountToToggleTranslationMaskWhenTouching?Ex():n.touches.length===e.rule.fingerCountToToggleTranslagePageOnlyTranslationWhenTouching&&Tx()}function kx(e,t){let n=e.target;if(!n||!n.getAttribute){mc(n);return}let a=n.getAttribute("data-immersive-translate-event");a&&et(a,[{name:a}],{...t,sourceLanguage:"none"});let r=n.getAttribute(`data-${X}-action`);if(r)if(r==="retry"){e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),ls(),mc(n,!0);return}else if(r=="toast-error"){let o=n.getAttribute(`data-${X}-tooltip-text`);fc(ef.bind(null,t,o||""))}else r=="close-search"&&(e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),fc(Lx.bind(null,t)));mc(n)}async function G3(e=!1){let t=document.querySelector(`.${X}-search-recomend`);if(!t||(t.remove(),!e))return;let n=await vn();n.generalRule||(n.generalRule={}),n.generalRule.enableSearchEnhancement=!1,await Cn(n)}async function Sx(){let e=await vn(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,a=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(a=e.translationUrlPattern.matches||[]),!n&&a.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await Cn(e)}async function Dx(){let e=await vn(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await Cn(e)}var V3=0;function fc(e){let t=Date.now();if(t-V3<2e3)return;V3=t;let n=`${X}-modal`,a=document.querySelector(`.${n}`);if(a?.style.display=="block")return;let r=`${X}-modal-title`,o=`${X}-modal-body`,u=`${X}-modal-footer`;if(a){let i=a.querySelector(`.${r}`),s=a.querySelector(`.${u}`),c=a.querySelector(`.${o}`);e(a,i,c,s)}else{a=document.createElement("div"),a.className=n+" notranslate",a.id=n;let i=document.createElement("div");i.className=X+"-modal-content notranslate",a.appendChild(i);let s=document.createElement("span");s.textContent="\xD7",s.className=X+"-close",i.appendChild(s);let c=document.createElement("div");c.className=r+" notranslate",i.appendChild(c);let l=document.createElement("div");l.className=o+" notranslate",i.appendChild(l);let f=document.createElement("div");f.className=u,i.appendChild(f),document.body.appendChild(a),s.onclick=function(){a.style.display="none"},window.onclick=function(p){p.target==a&&(a.style.display="none")},e(a,c,l,f)}setTimeout(()=>{Mx()},100)}function Lx(e,t,n,a,r){let o=X3.bind(null,e);n.innerHTML=`
${Yi} ${o("disableConfirm")}
`,a.innerHTML="";let u=document.querySelector(`div[data-${X}-cancel-desc]`),i=document.createElement("p");i.innerHTML=u?Ne.sanitize(u.textContent||""):Ne.sanitize(o("searchEnhancementNotes")),i.style.cssText="margin-bottom:12px",a.appendChild(i);let s=[{id:"enable-search-enhancement",value:"enable",text:o("enableSearchEnhancement")},{id:"disable-once",value:"once",text:o("disableOnce")},{id:"disable-global",value:"global",text:o("disableGlobal")}];for(let m=0;m${o("option")}`})),a.appendChild(c);let l=a.querySelector(`.${X}-open-enhancement`);l&&(l.onclick=function(){uf(!0)});let f=document.createElement("button");f.innerText=o("closeModal"),f.className=`${X}-btn ${X}-cancel-btn`;let p=document.createElement("button");p.className=`${X}-btn`,p.innerText=o("saveSettings"),r.innerHTML="",r.appendChild(f),r.appendChild(p),f.onclick=function(){t.style.display="none"},p.onclick=function(){let m=a.getElementsByTagName("input"),g="";for(let T=0;T
1. \u5207\u6362\u5230 ${o} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458`:i+=`

\u5982\u679C\u60A8\u6709\u7591\u95EE\uFF0C\u8BF7\u8054\u7CFB support@immersivetranslate.com`,fc(ef.bind(null,e,i))}catch(a){z.warn("parse message error",a)}}function Fx(e){let t=e;if(z.debug("receive third party message",t),t&&t.detail)try{let n=JSON.parse(t.detail);n&&n.type&&(n.type==="retryFailedParagraphs"?Nx({method:"retryFailedParagraphs"}):n.type==="updateCommands"?sf(n.data):n.type==="toggleEnableDefaultAlwaysTranslatedUrls"?Sx():n.type==="toggleEnableInputTranslation"?Dx():Q3(n.type))}catch(n){z.warn("parse message error",n)}}function _x(e){setTimeout(()=>{tf()},10)}function Bx(e){Ce.HAS_CSP_ERROR="1"}function Rx(e,t){let n=event.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&et(n.name,[{name:n.name}],{...e})}function Ix(){pc.forEach(e=>{e()}),pc=J3}function Ox(e){if(me()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=fi.commands,r=[...Object.keys(t).filter(o=>o==="toggleTranslatePage").map(o=>{let u=t[o].description,i=u;return u.startsWith("__MSG_")&&u.endsWith("__")&&(i=Ia(`browser.${u.slice(6,-2)}`,e.interfaceLanguage)),{id:o,title:i}}),{id:Lo,title:Ia("browser.openEbookViewer",e.interfaceLanguage),key:"e"},{id:Mo,title:Ia("browser.openEbookBuilder",e.interfaceLanguage),key:"m"},{id:Do,title:Ia("browser.openOptionsPage",e.interfaceLanguage),key:"o"},{id:O0,title:Ia("browser.openAboutPage",e.interfaceLanguage),key:"a"}];for(let o of r)GM.registerMenuCommand(o.title,()=>{o.id===Do?fx():o.id===O0?hx():o.id===Mo?bx():o.id===Lo?yx():Q3(o.id)},o.key)}}function Nx(e){Yr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{z.error("send content message request failed",e,n)});let t=new CustomEvent(Ta,{detail:e});globalThis.document.dispatchEvent(t)}h();var tr={};async function hc(){let t=[...document.querySelectorAll(".source-text")].map(a=>a.textContent).join(""),n=await it({text:t,minLength:200,pageLangs:[Ja(),"en"]});return xn(n),n}async function lf(e){Wt("Translating");let t=Dt(),n=Ui(),a=[...document.querySelectorAll(".source-text")];if(Pi(e,t))return;let r=a.filter(o=>o.innerText?.trim()).map((o,u)=>{let i=o.parentElement?.parentElement?.querySelector(".target-text");return pt(o,"id",u+""),i&&(Nr(i,u)?.remove(),i.appendChild(Qo(e,u))),{text:o.innerText||"",id:u,from:t,to:e.targetLanguage,url:"https://google.com",fromByClient:n}});document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await Ra({sentences:r},e,(o,u,i)=>{let s=i.id,c=Nr(document.body,s);if(!c)return;let l=c.parentElement;l&&(c.remove(),o?(l.innerHTML=Ne.sanitize(`${o.message}`),tr[s]={ok:!1,sentence:i}):u&&(l.innerHTML=Ne.sanitize(u.text),tr[s]={ok:!0,sentence:i}),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!o}})})))})}catch(o){throw o}finally{Wt("Translated")}}async function cf(e){Wt("Translating"),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(tr),n=[],a=[];for(let r of t){let o=tr[r];if(!o.ok){let i=document.querySelector(`#error-id-${r}`);if(i){let s=i.parentElement;i.remove(),s&&(delete tr[r],s.appendChild(Qo(e,r)),a.push(o.sentence))}}}try{await Ra({sentences:a},e,(r,o,u)=>{let i=u.id,s=Nr(document.body,i);if(!s)return;let c=s.parentElement;c&&(s.remove(),r?(c.innerHTML=Ne.sanitize(`${r.message}`),tr[i]={ok:!1,sentence:u}):o&&(c.innerHTML=Ne.sanitize(o.text),tr[i]={ok:!0,sentence:u}),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!r}})})))})}catch(r){throw r}finally{Wt("Translated")}}function bc(){Wt("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}h();var yc={};async function df(){let e=[...document.querySelectorAll("iframe")],t="";for(let a of e){let r=a.contentDocument;if(!r)continue;let o=r.body;if(o&&(t=t+o.innerText||"",t.length>1e3))break}let n=await it({text:t,pageLangs:["en"]});return xn(n),n}async function gf(e){Wt("Translating"),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(yc),n=[];for(let a of t){let r=yc[a];if(r.error){let u=r.commonAncestorContainer.querySelector(`[${Qu}='${a}']`);u&&u.remove(),n.push(r)}}try{await qi(n,e,e.config.translationMode)}catch{}finally{Wt("Translated")}}function mf(){let e=[...document.querySelectorAll("iframe")];for(let t of e){let n=t.contentDocument;if(!n)continue;let a=n.querySelectorAll("."+un);for(let r of a)r.remove()}Wt("Original")}async function pf(e){Wt("Translating");let t=Fn(),n=[...document.querySelectorAll("iframe")],a=[],r=[];for(let i of n){let s=i.contentDocument;if(!s)continue;wa(s,e);let c=s.body;if(!c)continue;let l=Tn(e);l.isModifyImage=!1,Fa({id:t,container:c,filterRule:l,onParagraph:f=>{a.push(f)}})}let o=Mi(e.config.translationServices[e.translationService]?.placeholderDelimiters),u=1;for(let i of a){let s=ji(i.flatNodes,{isPreWhitespace:i.isPreWhitespace||!1,delimiters:o,stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(l=>l.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)});if(!s)continue;i.variables=s?.variables||{},i.text=s?.text,i.id=(u++).toString();let c=await Nl(i,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:o,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});c&&(r.push(c),yc[c.id]=c)}a=[],document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await qi(r,e,e.config.translationMode)}catch{}finally{Wt("Translated")}}h();var Ux=new AbortController,{signal:jx}=Ux,vc=0,wc=0,xc=!1,Tc=0,au=!1,nr,ff=0,ar=[];function gs(e,t){zx();let n=e,a=n.config,r=a.generalRule.mouseHoverHoldKey==="Off",o=a.generalRule.mouseHoverHoldKey==="Auto",u=Ft(l=>{if(xc==!1&&Math.abs(l.clientX-vc)+Math.abs(l.clientY-wc)>3&&(Tc<2?Tc+=1:xc=!0),vc=l.clientX,wc=l.clientY,o||au&&!nr){let f=Tf(n.rule,t);if(f){if(Ac(f))return;bf(n,f)}}},o?700:300),i=l=>{let f=l.target;Ac(f)||bf(n)},s=l=>{let f=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=Ue.getPressedKeyCodes();if(p.length>1&&Ue[f]&&(ff=Date.now(),au=!1),p.length===1&&Ue[f]){let m=Date.now();au=!0,nr&&clearTimeout(nr),nr=setTimeout(()=>{let g=ff-m;g>0&&g<=150?au=!1:i(l),nr=void 0},150)}};if(ar.push(()=>{nr&&clearTimeout(nr)}),r)return;Ec("mousemove",u,t),ar.push(()=>{t.removeEventListener("mousemove",u)});function c(){xc=!1,Tc=0,u.cancel()}if(o)Ec("blur",c,t),ar.push(()=>{t.removeEventListener("blur",c)});else{let l=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",f=["ctrl","alt","shift","cmd","command","option","control"];Ec("keyup",hf,t),ar.push(()=>{t.removeEventListener("keyup",hf)}),f.includes(l)?Ue("*","mouseHover",s):Ue(a.generalRule.mouseHoverHoldKey,"mouseHover",i),Ue.setScope("mouseHover"),ar.push(()=>{Ue.deleteScope("mouseHover")})}}function zx(){ar.forEach(e=>e()),ar=[]}function hf(e){au=!1}function Ec(e,t,n=window){return n.addEventListener(e,t,{signal:jx})}function bf(e,t,n=window){if(t=t||Tf(e.rule,n),!t){z.debug("can not find selection part!");return}if(Ac(t)){z.debug("exclude dom");return}u3(e,t);let a=$i();a?.currentUrl!==window.location.href&&(da(),Hl(e)),a&&(a.setupMouseHoverListener=gs);let r=Tn(e);r.excludeSelectors=[],r.selectors=[];let o=!1;Fa({id:a.id,container:t,filterRule:r,force:!0,onParagraph:u=>{Xo(a,u,!0).then(i=>{if(i&&!o){o=!0;let s=Date.now();$e(Ig,s),et("mouse_hover_translate",[{name:"mouse_hover_translate"}],{...e,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function Tf(e,t){return Hx(vc,wc,e,t)}function Hx(e,t,n,a){let r=gm(e,t,n,a);if(r==null)return;let o=()=>{let s=a.document.elementFromPoint(e,t);if(!s)return;let c=mm(s,e,t);return c===s?s.nodeName==="BUTTON"?s:void 0:xf(c,n)},u=()=>{try{r.setStartBefore(r.startContainer),r.setEndAfter(r.startContainer)}catch(c){z.debug("get mouse over word fail",c)}let s=r.getBoundingClientRect();if(!(s.left>e||s.rightt||s.bottomn[l]=[l,...n[l]||[]]);let a=t.inputStartingTriggerKeyAlias[t.inputStartingTriggerKey]||[];a.includes(t.inputStartingTriggerKey)||a.unshift(t.inputStartingTriggerKey),n[t.inputTargetLanguage]=[...a,...n[t.inputTargetLanguage]];let r=t.inputTrailingTriggerKeyTimeout;fn().any&&(r=t.inputTrailingMobileTriggerKeyTimeout);let o={triggerTimes:t.inputTrailingTriggerKeyRepeatTimes,triggerKey:t.inputTrailingTriggerKey,triggerTimeout:r,codePrefix:t.inputStartingTriggerKey,codeAlias:n,flatAlias:Object.values(n).flat(),codePrefixAlias:t.inputStartingTriggerKeyAlias},u=0,i=Date.now();ms&&self.removeEventListener("keydown",ms),ms=s,self.addEventListener("keydown",ms);function s(l){if(eo||ps===!1)return;let f=l,p=f.target||f.srcElement,m=p?.tagName;(p?.isContentEditable||m=="INPUT"||m=="SELECT"||m=="TEXTAREA")&&(uT(l,o.triggerKey,o.codePrefixAlias)?c(l):u=0)}async function c(l){Date.now()-i=o.triggerTimes&&Gx()&&(u=0,$x(l,e,o))}iT(e)}function qx({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let a=[],r=n[e]||[];r.includes(e)||r.unshift(e);for(let o of r){let u=t.map(i=>{let s=o+i;return r.includes(i)||(s+=" "),s});a.push(...u)}return new RegExp(a.join("|"))}function Cf(e,t){for(let[n,a]of Object.entries(t))if(a.includes(e))return n;return""}var to;function Wx(e){let t=e.parentElement;if(!t)return;to=document.createElement("div"),to.className=X+"-input",to.innerHTML=`
`,t.appendChild(to);let n=t,a=!1;do{let r=getComputedStyle(n).position;if(["fixed","absolute","relative"].includes(r)){a=!0;break}n=n.parentElement}while(n);if(n=t,!a)do{if(getComputedStyle(n).position==="static"){n.style.position="relative";break}n=n?.parentElement||null}while(n)}function Kx(){to&&to.remove()}async function $x(e,t,n){if(!eo)try{let p=function(){i=t.config.inputTargetLanguage;let g=u.split(" ")[0];g&&g[0]&&(g=g[0].toLowerCase()+g.slice(1)),g.trim()&&n.flatAlias.includes(g)?(i=Cf(g,n.codeAlias),o=u.slice(g.length+1)):o=u},m=function(){i="";let g=qx(n),T=u.split(g);if(T.length<2)return;if(o=T[T.length-1],r=T[0],T.length>2){let b=u.lastIndexOf(o),S=u.slice(0,b).lastIndexOf(T[T.length-2]);r=u.slice(0,S+T[T.length-2].length)}if(r.endsWith(n.codePrefix))return;let w=u.slice(r.length+1,u.indexOf(o)).trim();if(i=Cf(w,n.codeAlias),!i){z.warn("not found alias",w);return}},a=document.activeElement;eo=!0;let r="",o="",u=no(a)||"",i=t.config.inputTargetLanguage;n.codePrefix==="none"?p():(m(),!i&&t.config.enableInputTranslationWithoutTriggerKey&&p());let s=Yx(o,n),c=await it({text:s,pageLangs:["en"]});z.debug("translateContent",s,c);let l={text:s||"",id:0,from:c,to:i,url:"https://google.com",fromByClient:c};if(!l.text)return;if(t.config.isShowInputTranslationConsent&&!Ef){Ef=!0;let g=await sT(t);if(e.target&&e.target.focus(),g==="open_settings"){Zr(!0,"#input");return}else if(g==="open_learn_more"){es("https://immersivetranslate.com/docs/input/");return}else if(g==="disable_once"||g==="disable_forever"){if(ps=!1,g==="disable_forever"){let T=await vn();T.enableInputTranslation=!1,T.isShowInputTranslationConsent=!1,await Cn(T)}else if(g==="disable_once"){let T=await vn();T.isShowInputTranslationConsent=!1,await Cn(T)}return}else if(g==="close_disable_once"||g==="close_disable_forever"){if(ps=!1,g==="close_disable_forever"){let T=await vn();T.enableInputTranslation=!1,T.isShowInputTranslationConsent=!1,await Cn(T)}return}else if(g==="enable"){let T=await vn();T.enableInputTranslation=!0,T.isShowInputTranslationConsent=!1,await Cn(T)}else if(g==="close_enable"){let T=await vn();T.enableInputTranslation=!0,await Cn(T)}}Wx(a),$e(N0,Date.now());let f=await ca(l,{...t,translationService:t.inputTranslationService});oT(t),rT(a,r+f.text),eo=!1}catch(a){throw eo=!1,a}finally{eo=!1,Kx()}}function Gx(){let e=document.activeElement;if(!e)return!1;if(fs(e)){let t=e.selectionStart||0,n=e.value.length,r=e.value.split(` -`).reverse()[0].trim(),o=n<=t;return z.debug("cursorPosition",t,"textLength",n),z.debug("input isTail",o,"tailHasText",r),o&&!!r}else{let t=window.getSelection();if(!t)return z.debug("No active selection found."),!1;if(t.rangeCount>0){let n=t.getRangeAt(0),a=n.startContainer;if(a.nodeType===Node.TEXT_NODE){let r=Vx(a,e);z.debug("Current text node:",a.textContent),z.debug("Cursor position within text node:",n.startOffset);let o=a.textContent?.length===n.startOffset&&r,u=a.textContent?.trim();return z.debug("editdiv isTail",o,"tailHasText",u),o&&!!u}else z.debug("Cursor is not within a text node.")}}return!1}function Vx(e,t){let n;function a(r){if(r.nodeType===Node.TEXT_NODE)n=r;else for(let o of r.childNodes)a(o)}return a(t),n==e}function Yx(e,t){let{triggerTimes:n,triggerKey:a}=t,r=0,o=" ";a.length==1?(r=n,o=a):a.toLowerCase()=="space"&&(r=n);let u=e.length;for(let i=e.length-1;i>=e.length-r;i--){if([10,8629].includes(e[i].charCodeAt(0))){u--;continue}if(![...t.codePrefixAlias[a]||[],o].includes(e[i]))break;u--}return e.length-u<3&&[".","\u3002"].includes(e[u-1])&&u--,e.slice(0,u)}function Jx(e,t){let n=t.innerHTML,a=no(t);return{html:n.replace(a,e),text:e}}function vf(e,t,n=!1){let a=no(t);return n?a.trim().endsWith(e.text.trim()):a.trim()==e.text.trim()}function no(e){return e.value||e.innerText||e.textContent}async function rr(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function Qx(e,t,n){await rr(10);let a=new DataTransfer;e.forEach(r=>{r==="plain"&&a.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:a,bubbles:!0,cancelable:!0})),a.clearData(),await rr(10)}async function Zx(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await rr(10))}async function Xx(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await rr(20),(t.value||t.value==="")&&(t.value=e.text)}async function eT(e,t){fs(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await rr(20))}var tT=[Qx.bind(null,["plain"])];function nT(e){let t;fs(e)?t=new InputEvent("beforeinput",{bubbles:!0,cancelable:!0,inputType:"deleteContent"}):t=new KeyboardEvent("keydown",{bubbles:!0,cancelable:!0,keyCode:8,which:8,location:0,key:"Backspace"}),e.dispatchEvent(t)}function fs(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function aT(e){if(fs(e))return;e.focus();let t=window.getSelection();if(!t)return;let n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}async function rT(e,t){await aT(e),await rr(50);let n=Jx(t,e);nT(e),z.debug("clearContent",no(e)),await rr(50);for(let a of[...tT,Xx,eT,Zx])if(await a(n,e),z.debug("setContent",a.name,vf(n,e),no(e),n),vf(n,e))break}function oT(e){et("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage}}],e)}function uT(e,t,n){let a="";e&&e.code&&(a=e.code.toLowerCase());let r="";e&&e.key&&(r=e.key.toLowerCase());let o=e.keyCode,u=n[t]||[];return o===229&&t!=="space"?!1:!!(u.includes(a)||u.includes(r)||a===t||r===t)}async function iT(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await Ht(t,"")||Number(await Ht(N0,0))>0)return;let r=e.rule.inputTutorialsSelectors,o=e.rule.inputTutorialsText;if((r?.length||0)>0&&o)for(let u=0;u{cT()},100),new Promise(c=>{let l=c;if(o){let E=o.querySelector(`.${n}`),x=o.querySelector(`.${r}`),v=o.querySelector(`.${a}`)}else{o=document.createElement("div"),o.className=t+" notranslate",o.id=t;let E=document.createElement("div");E.className=X+"-modal-content notranslate",o.appendChild(E);let x=document.createElement("span");x.textContent="\xD7",x.className=X+"-close",E.appendChild(x),u=document.createElement("div"),u.className=n+" notranslate",E.appendChild(u),s=document.createElement("div"),s.className=a+" notranslate",E.appendChild(s),i=document.createElement("div"),i.className=r,E.appendChild(i),document.body.appendChild(o),x.onclick=function(){D(),c("close")},window.onclick=function(v){v.target==o&&(o.style.display="none",c("close"))}}document.addEventListener("keydown",y);let f=lT.bind(null,e);u.innerHTML=`
${Yi} ${f("modalEnableInputTranslationTitle")}
`,s.innerHTML="";let p=document.createElement("p");p.innerHTML=f("modalEnableInputTranslationDesc",{1:"https://immersivetranslate.com/docs/input/"}),p.style.cssText="margin-bottom:12px",s.appendChild(p);let m=document.createElement("div");m.style.cssText="margin-bottom: 12px;",m.innerHTML=Ne.sanitize(f("disableInputTranslationTips",{option:`${f("option")}`,learnMore:`${f("learnMore")}`})),s.appendChild(m);let g=[{id:"enable-search-enhancement",value:"enable",text:f("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:f("disableOnce")},{id:"disable-global",value:"global",text:f("disableGlobal")}];for(let E=0;E{Ra({sentences:r},{...e,translationService:"google"},(s,c,l)=>{if(s)return u([]);let f=c?.id||0,p=n[f];p&&p.className==X+"-search-title-wrapper"&&(p.innerHTML+=Ne.sanitize(`
${c?.text}
`,{ADD_ATTR:["target"]}))})})}function hs(e,t,n){t&&et(t.key,[{name:t.key}],{...e,sourceLanguage:t.sourceLanguage||n})}function kc(e,t,n,a){let r=n.querySelectorAll('[translate="true"]');return dT(e,t,[...r],a),n}async function Sc(e,t){let a=(await se({url:gT(e),method:"GET",responseType:"raw",headers:{"cache-control":"no-cache","content-type":"application/xml","Sec-Fetch-Site":"none",accept:"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}})).body,o=new DOMParser().parseFromString(a,"text/xml"),u=[],i=o.querySelectorAll("item");for(let s=0;s${e.cancelDescription}
`:""} +`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main div[class*='h-[125]']":"height:auto"},normalizeBody:"body",extraBlockSelectors:["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,normalizeBody:"#mw-content-text",globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"]},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"}},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:"chat.openai.com",excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0}},{id:"newstop",matches:["chat.newstop.asia","chat.waixingyun.cn"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".n-button.n-button--warning-type.n-button--medium-type",messageWrapperSelector:".markdown-body",streamingChange:!1,streamingDeepChild:!0}},{id:"askgpt",matches:["askgpt.cn","chatcat.zhaoyoung.me"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".home_chat-message-status__EsVNi",messageWrapperSelector:".markdown-body",streamingChange:!0,streamingDeepChild:!0}},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__UyYrv *",".MarkdownLink_linkifiedLink__KxC9G"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__UyYrv",streamingChange:!1,streamingDeepChild:!0}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"newthingsunderthesun",matches:"www.newthingsunderthesun.com",additionalSelectors:["[translate=no]"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"https://steamcommunity.com/app/*",globalStyles:{".forum_topic":"height:auto;",".forum_topic_name":"white-space:normal;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampowered",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:"https://www.webofscience.com/*",globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},excludeSelectors:[".summary-left-panel",".authors","app-full-record-keywords mark"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],extraBlockSelectors:["app-summary-authors + div","app-full-record-keywords span span"],observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://www.jetbrains.com/help/*",extraBlockSelectors:["[data-test=prompt]"]},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails p"]},{id:"isEbook",isEbook:!0,isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span"},{id:"isEbookBuilder",isEbookBuilder:!0,isTranslateTitle:!1,targetWrapperTag:"span",selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com",extraBlockSelectors:["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],extraBlockSelectors:"font[face=verdana]"},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"isSubtitleBuilder",isSubtitleBuilder:!0,selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,wrapperPrefix:"",wrapperSuffix:""},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/",extraBlockSelectors:[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"vimeo",matches:"https://player.vimeo.com/video/*",extraBlockSelectors:["span.vp-captions-line","span[class^=CaptionsRenderer_]"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexityAi",matches:"https://www.perplexity.ai/search/*",extraBlockSelectors:[".prose > span"],additionalStayOriginalSelectors:["a.citation"],insertPosition:"afterend"},{id:"perplexity",matches:"https://www.perplexity.ai",globalStyles:{".line-clamp-1":"-webkit-line-clamp: unset !important;",".line-clamp-2":"-webkit-line-clamp: unset !important;"}},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"babelnovel",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*"],urlChangeDelay:0},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0},{globalAttributes:{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"youtrackJetbrains",matches:"youtrack.jetbrains.com/articles/*",selectors:["[role=presentation]","[data-test=article-content]"],excludeSelectors:[".toolbar__ee8"]},{id:"bbc",matches:"www.bbc.com",excludeSelectors:["section.module--languages",".drop-capped"]},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}}},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"openai",matches:"https://platform.openai.com/docs/*",urlChangeDelay:0},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout":"height:unset !important;",".EntrySummary--u4":"-webkit-line-clamp: unset;max-height:unset;",".EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:[".copyable-text > span"],wrapperPrefix:` +`,wrapperSuffix:"
"},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],globalStyles:{"[class*='lineclamp']":"-webkit-line-clamp:unset;"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],extraBlockSelectors:[".SIPGg",".sc-kzMCTH.pSZXj"],globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"]},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*",globalAttributes:{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead"],injectedCss:["a::after {position:relative!important;}"]},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},globalAttributes:{"#app":{class:""}}},{id:"haproxy",matches:["docs.haproxy.org","www.oreilly.com/openbook/opensources/book/*"],excludeTags:[],stayOriginalSelectors:[],stayOriginalTags:[],isTransformPreTagNewLine:!0},{id:"piAi",matches:"pi.ai/talk",excludeSelectors:[".whitespace-pre-wrap > span *"],aiRule:{streamingSelector:"button[class*='fixed'][disabled]",messageWrapperSelector:".whitespace-pre-wrap",streamingChange:!1,streamingDeepChild:!1},globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *"],"excludeTags.remove":["PRE"],injectedCss:"[data-testid='chat-menu-trigger'] br {display:none;}",aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1}},{id:"feishu",matches:"*.feishu.cn","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],excludeSelectors:[".catalogue__list"]},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"bugsWebkit",matches:"bugs.webkit.org",isTransformPreTagNewLine:!0},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",matches:"www.kaggle.com",excludeTags:["i","button"]},{id:"ieee",matches:"spectrum.ieee.org",extraBlockSelectors:["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"www.cnn.com",excludeSelectors:[".ad-slot-header__wrapper"]},{id:"marginalrevolution",matches:"marginalrevolution.com",globalAttributes:{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",condition:{enableSubtitle:{false:{"excludeSelectors.add":[".bpx-player-subtitle-panel-text"]}}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"docs-oracle",matches:"docs.oracle.com",urlChangeDelay:0},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"edstem",matches:"edstem.org","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:"pubmed.ncbi.nlm.nih.gov",urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share"]},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"tldrnewsletter",matches:"actions.tldrnewsletter.com","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"bugzilla",matches:"bugzilla.mozilla.org","excludeTags.remove":["PRE"],isTransformPreTagNewLine:!0},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"excludeSelectors.add":["aside",".DocSearch-Modal"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"mail.qq.com",useIframePostMessage:!1},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]}]};h();h();function er(e){return Array.isArray(e)?e:e?[e]:[]}function bn(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function at(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function xi(e,t){let n={...e};return Wm(n,t),rb(n,t),n}function qm(e,t,n){let a={...t};return ob(e,a,n),a}function rb(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},a=t.condition.enableSubtitle?.false||{},r=e.enableSubtitle?n:a;Wm(e,r)}function ob(e,t,n){try{return Object.keys(t).forEach(a=>{let[r,o]=a.split(".");if(o){let u=t[a];if(Array.isArray(e[r])&&(u=er(t[a])),o==="add"){t[r]=Wo(e[r],u),delete t[a];return}else if(o=="remove"){t[r]=cl(e[r],u),delete t[a];return}}}),Object.keys(n).forEach(a=>{let[r,o]=a.split(".");if(!r||n[a]===void 0)return;let u=n[a],i=t[r];if(Array.isArray(e[r])&&(u=er(n[a]),i=er(t[r])),o==="add"){t[r]=Wo(i,u);return}else if(o=="remove"){t[r]=cl(i,u);return}Array.isArray(i)&&r.startsWith("additional")?t[r]=Wo(i,u):t[r]=u}),t}catch{}}function Wm(e,t){return Object.keys(t).forEach(n=>{let[a,r]=n.split(".");if(!a||t[n]===void 0)return;let o=t[n];if(Array.isArray(e[a])&&(o=er(t[n])),r==="add"){e[a]=Wo(e[a],o);return}else if(r=="remove"){e[a]=cl(e[a],o);return}Array.isArray(e[a])&&a.startsWith("additional")?e[a]=Wo(e[a],o):e[a]=o}),e}function Wo(e,t){let n;if(Array.isArray(e)){let a=er(t);n=[...e,...a],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"&&(n={...e,...t});return n}function cl(e,t){if(Array.isArray(e)){let n=er(t);return e=e.filter(a=>!n.includes(a)),Array.from(new Set(e))}else typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(n=>{delete e[n]});return e}function tr(){if(Ce.PROD==="1")return{};let e={};if(Ce.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&Ce.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:Ce.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:Ce.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&Ce.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:Ce.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:Ce.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:Ce.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:Ce.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&Ce.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:Ce.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:Ce.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&Ce.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:Ce.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:Ce.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:Ce.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(Ce.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=Ce.DEEPL_PROXY_ENDPOINT),Ce.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=Ce.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),Ce.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:Ce.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}Ce.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=Ce.IMMERSIVE_TRANSLATE_SERVICE);let t={};return Ce.DEBUG==="1"&&(t.debug=!0,t.cache=!1),Ce.MOCK==="1"&&(t.translationService="mock"),t}async function $n(){let e=await X.storage.local.get(kr);if(e[kr]){let t=e[kr],n=t.tempTranslationUrlMatches||[],a=n.filter(u=>u.expiredAt>Date.now()),r=!1;a.length!==n.length&&(n=a,r=!0);let o={...t,tempTranslationUrlMatches:[...n]};return r&&await yn(o),o}else return{}}async function yn(e){await X.storage.local.set({[kr]:e})}async function Km(e){await X.storage.local.set({[aa]:e})}async function Aa(){await X.storage.local.set({[aa]:{}})}async function ka(){await X.storage.local.set({[kr]:{}})}async function $m(){let e=await X.storage.local.get(aa),n={...Ti(),...yi,buildinConfigUpdatedAt:Ce.BUILD_TIME};if(e[aa]){let a=e[aa];if(a&&a.buildinConfigUpdatedAt){let r=new Date(a.buildinConfigUpdatedAt),o=new Date(n.buildinConfigUpdatedAt);r>o&&(n=a)}}return n}async function Ge(){let e=await X.storage.local.get(aa),t={...yi,buildinConfigUpdatedAt:Ce.BUILD_TIME};if(e[aa]){let B=e[aa];if(B&&B.buildinConfigUpdatedAt){let A=new Date(B.buildinConfigUpdatedAt),L=new Date(t.buildinConfigUpdatedAt);A>L&&(t=B)}}let n=await Xe.get(ct,null),a={};if(!me()&&X.commands&&X.commands.getAll){let B=await X.commands.getAll();for(let A of B)A.name&&A.shortcut&&(a[A.name]=A.shortcut)}let r=Ti(),o=tr(),u=await Ko(),i=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},s=await $n(),c=new Date;if(s&&s.tempTranslationUrlMatches&&s.tempTranslationUrlMatches.length>0){let B=s.tempTranslationUrlMatches.filter(A=>new Date(A.expiredAt)>c);if(B.length>0){let A=u.translationUrlPattern?u.translationUrlPattern?.matches||[]:[],L=Array.isArray(A)?A:[A],U=Array.from(new Set(L.concat(B.map(K=>K.match))));u.translationUrlPattern={...u.translationUrlPattern,matches:U}}}let l=Object.assign({},i,o,u);if(!l.interfaceLanguage){let B=await ub();l.interfaceLanguage=B}let m=l.interfaceLanguage==="en",p=l.targetLanguage==="en",f=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,g=["bing","google","transmart","mock"].includes(l.translationService)||!l.translationService;!m&&!p&&!f&&g?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let y=t&&t.enableDefaultAlwaysTranslatedUrls;l.enableDefaultAlwaysTranslatedUrls===!1&&(y=!1);let w=l&&l.isChangedAlwaysTranslatedUrls,b=[];l.translationUrlPattern&&l.translationUrlPattern.matches&&(b=l.translationUrlPattern.matches||[]);let S=!1;w===void 0&&(b.length>0?w=!0:w=!1,l.isChangedAlwaysTranslatedUrls=w,u.isChangedAlwaysTranslatedUrls=w,S=!0);let D=(l?.translationLanguagePattern?.matches?.length||0)>0,N=await Ht("installedAt",""),_=Number(await ia("translage_page_daily",0)),x=Number(await Ht(Ln,0)),E;x>0&&(Date.now()-x0&&(Date.now()-_H.id&&U[H.id]?qm(t.generalRule,U[H.id],H):H);R[A]=[...K,...R[A]]}if(Ce.PROD==="0"&&Ce.DEV_RULES){let L=JSON.parse(Ce.DEV_RULES);R[A]=[...L,...R[A]]}}else l[A]!==void 0&&(R[A]=l[A])}return R.donateUrl=t.donateUrl,R.minVersion=t.minVersion,R.feedbackUrl=t.feedbackUrl,R}async function Ko(){return(await X.storage.sync.get("userConfig")||{}).userConfig||{}}async function $o(e){await X.storage.sync.set({userConfig:e})}var ub=async()=>{let e=["zh-CN"];try{e=await X.i18n.getAcceptLanguages()}catch(a){z.warn("get browser language error:",a)}let n=e.map(a=>Qa(a)).find(a=>Qt[a]);return n||"en"},Ti=()=>{let e={...yi,buildinConfigUpdatedAt:Ce.BUILD_TIME};return{...e,targetLanguage:Xu,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing"},rules:[]}};function ib(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(a=>!e.includes(a)).length>0}h();function Go(e){if(Math.abs(e)<1024)return e+" Byte";let n=["KB","MB","GB","TB","PB","EB","ZB","YB"],a=-1;do e/=1024,++a;while(Math.abs(e)>=1024&&as+c.text.length,0)+u.text.length>t||o.tempSentences.length>=n)&&(r.push(o),o={fromByClient:o.fromByClient,from:u.from,to:u.to,tempSentences:[],url:u.url}),(o.from!==u.from||o.to!==u.to)&&(o.tempSentences.length>0?(r.push(o),o={fromByClient:o.fromByClient,from:u.from,to:u.to,tempSentences:[],url:u.url}):(o.from=u.from,o.to=u.to)),o.tempSentences.push(u);return o.tempSentences.length>0&&r.push(o),r}function sb(e,t){let n=[],a=[];for(let r=0;r0?gt){let b=[];dl(y,t,b);for(let S=0;S0&&g{let i=e.lastIndexOf(u,t);return i>o?i:o},-1);if(r===-1){let o=e.slice(0,t);if(o&&!o.trim())return;n.push({text:o,prefix:"",suffix:""}),e.length>t&&dl(e.slice(t),t,n)}else{let o=e.slice(0,r+1);if(o&&o.trim()==="")return;o.startsWith(" ")?n.push({text:o.slice(1),prefix:" ",suffix:""}):n.push({text:o,prefix:"",suffix:""}),r+10){l.forEach(g=>{c.length>0&&g.providers&&g.providers.length>0&&!g.providers.includes(s)||(g.optional?p.push(g):m.push(g))});let f=p.concat(m).filter(g=>g.required);if(f.length>0){for(let g of f)if(!r[g.name]){i=!1;break}}}return{...a,id:t,selected:n[e]===t,ok:i,currentProvider:s,config:r,providers:a.providers||[],props:a.props||[],allProps:l,optionalProps:p,explicitProps:m}}var Ei=(e,t)=>{let{config:n}=e,a=n.alpha,r=n.beta,o=n.canary,u=n.debug,i=e.user,s=Xt(i);return Object.keys(Mn).filter(l=>{let m=Mn[l];if(l.startsWith("mock"))return u?!0:l===e.config[t];if(l===e.config[t])return!0;if(l==="openai"&&ot())return e.config.showOpenaiOnSafari||s?!0:!!(r||a||o||s);let p=!!m.canary,f=!!m.alpha,g=!!m.beta;return l===e[t]||p&&o||f&&(a||o)||g&&(r||a||o)?!0:!f&&!g&&!p}).map(l=>gl(t,l,e))};function Fn(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}h();h();h();h();h();h();h();h();h();var SA=Ym(2),Vm=Ym(3);function Ym(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let a=[];if(n==null)return a;let r=typeof n.slice=="function"?n:String(n),o=r.length-e+1;if(o<1)return a;for(;o--;)a[o]=r.slice(o,o+e);return a}}h();var lb=/\s+/g,cb=/[\t\n\v\f\r ]+/g;function Jm(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?db:gb;return String(e).replace(t.style==="html"?cb:lb,t.trim?mb(n):n)}function db(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function gb(){return" "}function mb(e){return t;function t(n,a,r){return a===0||a+n.length===r.length?"":e(n)}}var Qm={}.hasOwnProperty;function pb(e){return e==null?"":Jm(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function fb(e){return Vm(" "+pb(e)+" ")}function hb(e){let t=fb(e),n={},a=-1;for(;++an&&(n=o,a=r)}return[a,n]}function vb(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function wb(e,t,n,a){t=kb(t,n,a);let r=[],o;if(t)for(o in t)Ci.call(t,o)&&r.push([o,Ab(e,t[o])]);return r.length===0?pl():r.sort(Sb)}function Ab(e,t){let n=0,a=-1;for(;++at.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharactersu+i.length,0));let o=e.length-a;for(let u of Ob){let i=u[1],s=u[0],c=e.match(i),l=c?c.length:0;l>n&&(n=l,t=s)}return n*2.5/o>.5?t==="zh-CN"?op(e)?"zh-TW":"zh-CN":t:"auto"}var ip=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],fl=new Map(ip),Nb=new Map(ip.map(([e,t])=>[t,e]));function sp(e,t,n=["en"]){if(!e)return"auto";let a=n.map(i=>Nb.get(i));!t&&t!==0&&(t=25);let r=wi(e);if(r!=="auto")return r;let o={minLength:t,whitelist:[...fl.keys()]},u=ep(e,o);if(u&&u.length>0){for(let[l,m]of u)if(a.includes(l)&&m>.5)return fl.get(l);let[i,s]=u[0],c=fl.get(i);if(c&&s>.5)return c}return"auto"}h();h();function Da(e,t){var n=(e&65535)+(t&65535),a=(e>>16)+(t>>16)+(n>>16);return a<<16|n&65535}function Ub(e,t){return e<>>32-t}function ki(e,t,n,a,r,o){return Da(Ub(Da(Da(t,e),Da(a,o)),r),n)}function Rt(e,t,n,a,r,o,u){return ki(t&n|~t&a,e,t,r,o,u)}function It(e,t,n,a,r,o,u){return ki(t&a|n&~a,e,t,r,o,u)}function Ot(e,t,n,a,r,o,u){return ki(t^n^a,e,t,r,o,u)}function Nt(e,t,n,a,r,o,u){return ki(n^(t|~a),e,t,r,o,u)}function Ai(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,a,r,o,u,i=1732584193,s=-271733879,c=-1732584194,l=271733878;for(n=0;n>5]>>>t%32&255);return n}function hl(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(a=Ai(a,e.length*8)),n=0;n<16;n+=1)r[n]=a[n]^909522486,o[n]=a[n]^1549556828;return u=Ai(r.concat(hl(t)),512+t.length*8),lp(Ai(o.concat(u),512+128))}function cp(e){var t="0123456789abcdef",n="",a,r;for(r=0;r>>4&15)+t.charAt(a&15);return n}function bl(e){return unescape(encodeURIComponent(e))}function dp(e){return jb(bl(e))}function Hb(e){return cp(dp(e))}function gp(e,t){return zb(bl(e),bl(t))}function qb(e,t){return cp(gp(e,t))}function La(e,t,n){return t?n?gp(t,e):qb(t,e):n?dp(e):Hb(e)}var Nr=[];async function Yo(e,t){return await new Promise((n,a)=>{let r=e,o=1,u=indexedDB.open(r,o);u.onsuccess=i=>{n(u.result)},u.onerror=i=>{a()},u.onupgradeneeded=i=>{let s=u.result,c=t||"cache";s.createObjectStore(c,{keyPath:"key"})}})}async function yl(e){let t=`${Z}-${e.service}@${e.from}->${e.to}`;return await Kb(t,e)}async function xl(e){let t=La(e.originalText),n=`${Z}-${e.service}@${e.from}->${e.to}`;return await Wb(n,t)}async function Wb(e,t){let n=await Yo(e);return await new Promise((a,r)=>{if(!n)return r();let o="cache",i=n.transaction([o],"readonly").objectStore(o).get(t);i.onsuccess=s=>{n.close();let c=i.result;a(c)},i.onerror=s=>{n.close(),r()}})}async function Kb(e,t){let n=await Yo(e);return(await Tl()).includes(e)||await $b(e),await new Promise(r=>{if(!n)return r(!1);let o="cache",i=n.transaction([o],"readwrite").objectStore(o).put(t);i.onsuccess=s=>{n.close(),r(!0)},i.onerror=s=>{n.close(),r(!1)}})}async function $b(e){let t="cache_list",n=await Yo(Z+"-cacheList",t),r=n.transaction([t],"readwrite").objectStore(t).put({key:e});r.onsuccess=o=>{n.close(),Nr.push(e)},r.onerror=o=>{n.close()}}async function Tl(){if(Nr&&Nr.length>0)return Nr;let e=await Yo(Z+"-cacheList","cache_list");return Nr=await new Promise(t=>{let n="cache_list",r=e.transaction([n],"readonly").objectStore(n).getAllKeys();r.onsuccess=o=>{e.close(),t(r.result)},r.onerror=o=>{e.close(),t([])}}),Nr}async function El(){try{let e=[];(await Tl()).forEach(a=>{e.push(Gb(a))});let n=await Promise.all(e);return Go(n.reduce((a,r)=>a+r,0))}catch{return Go(0)}}async function Gb(e){let t=await Yo(e),a=[...t.objectStoreNames].reduce((u,i)=>{let s=Vb(t,i);return u.push(s),u},[]),r=await Promise.all(a);return t.close(),r.reduce((u,i)=>u+i,0)}async function Vb(e,t){return await new Promise((n,a)=>{if(e==null)return a();let r=0,o=e.transaction([t]).objectStore(t).openCursor();o.onsuccess=u=>{let i=o.result;if(i){let s=i.value,c=JSON.stringify(s);r+=c.length,i.continue()}else n(r)},o.onerror=u=>a("error in "+t+": "+u)})}async function mp(){try{let t=(await Tl()).map(a=>Yb(a));return!!(await Promise.all(t)).every(a=>a)}catch{return!1}}async function Yb(e){return await new Promise(t=>{let n=indexedDB.deleteDatabase(e);n.onsuccess=()=>{t(!0)},n.onerror=a=>{t(!1)}})}h();h();h();var pp="G-MKMD9LWFTR";async function et(e,t,n){try{let a=Ke();if(a.INSTALL_FROM==="firefox_store")return;let o=me(),u=pt(),i=a.PROD==="1",s=`report_${e}`,c=e.endsWith("_daily");if(c){if(u)return;let T=await ia(s,0),v=Si(new Date(T)),C=Date.now(),R=Si(new Date(C));if(v===R)return;await Nm(s,C)}else if(!n.config.telemetry)return;let l="sitc4WmvShWYwfU0dANM3Q",m=await Ht("fakeUserId","");m||(m=await ia("fakeUserId",""),m&&await $e("fakeUserId",m));let p=hn(),f=new Date,g=await Ht("installedAt","");g||(g=await ia("installedAt",""),g&&await $e("installedAt",g)),m?g||(g=new Date(0).toISOString(),await $e("installedAt",g)):(m=Jb(32),await $e("fakeUserId",m)),g||(g=f.toISOString(),await $e("installedAt",g));let y=new Date(g),w=Si(y),b=Si(f),S=w===b,D=f.getTime()-y.getTime()<7*24*60*60*1e3,N=`https://www.google-analytics.com/mp/collect?measurement_id=${pp}&api_secret=${l}`;i||(N=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${pp}&api_secret=${l}`);let _=vr.parse(window.navigator.userAgent),x=t.map(T=>{let v=T.params||{};if(_.os&&(v.os_name=_.os.name||"unknown",v.os_version=_.os.version||"unknown",v.os_version_name=_.os.versionName||"unknown"),_.browser&&(v.browser_name=_.browser.name||"unknown",v.browser_version=_.browser.version||"unknown"),_.platform&&(v.platform_type=_.platform.type||"unknown"),_.engine&&(v.engine_name=_.engine.name||"unknown",v.engine_version=_.engine.version||"unknown"),n.translationService&&(v.translation_service||(v.translation_service=n.translationService),n.config.translationServices&&n.config.translationServices[n.translationService]&&(n.config.translationServices[n.translationService].provider&&(v.translation_service_provider=n.config.translationServices[n.translationService].provider),n.translationService==="openai"&&n.config.translationServices[n.translationService].provider==="custom"&&(n.config.translationServices[n.translationService].apiUrl?n.config.translationServices[n.translationService].apiUrl.startsWith("https://api.openai.com/")?v.openai_is_official="1":v.openai_is_official="0":v.openai_is_official="1"))),n.targetLanguage&&(v.target_language=n.targetLanguage),n.config.interfaceLanguage&&(v.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?v.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":v.enable_default_always_translated_urls="0",p&&(v.version=p),n.config.enableInputTranslation?v.enable_input_translation=n.config.enableInputTranslation?"1":"0":v.enable_input_translation="0",n.config.translationTheme&&(v.translation_theme=n.config.translationTheme),n.config.alpha&&(v.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?v.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):v.always_translate_languages="none",a.INSTALL_FROM&&(v.install_from=a.INSTALL_FROM),n.config.beta&&(v.beta=n.config.alpha.toString()),n.config.translationArea&&(v.translation_area=n.config.translationArea),n.rule&&n.rule.enableSearchEnhancement!==void 0&&(v.enable_search_enhancement=n.rule.enableSearchEnhancement?"1":"0"),w&&(v.install_day=Qb(y)),n.user){let R=hm(n.user);R&&Object.keys(R).forEach(M=>{v[M]=R[M]})}else v.user_type="anonymous";n.config.translationMode&&(v.translation_mode=n.config.translationMode),v.userscript=o.toString(),S?v.is_new_user_today="1":v.is_new_user_today="0",D?v.is_new_user_this_week="1":v.is_new_user_this_week="0",n.config.tempTranslateDomainMinutes?v.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():v.temp_translate_domain_minutes="0";let C="html";if(n.rule.isEbook?C="ebookReader":n.rule.isPdf?C="pdfReader":n.rule.isEbookBuilder?C="ebookBuilder":n.rule.isSubtitleBuilder&&(C="subtitleBuilder"),v.page_type=C,u?v.main_frame=0:v.main_frame=1,!c){let R=n.url;try{let M=new URL(R);v.site_host=M.hostname}catch{v.site_host="unknown"}n.sourceLanguage&&(v.source_language=n.sourceLanguage)}return{...T,params:v}}),E=await se({responseType:"text",url:N,method:"POST",body:JSON.stringify({client_id:m,user_id:m,events:x})})}catch{}}function Jb(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;rt.removeEventListener("message",n)),e.length=0}function ty(e,t,n,a){return new Promise(r=>{let o=u=>{let i=u.data;Xb(t,n,i)&&i.id===a&&(e.removeEventListener("message",o),r(i.response))};e.addEventListener("message",o)})}function ny(e,t,n,a){let r=o=>{let u=o.data;xp(t,"tell",n,u)&&a(u.body)};return e.addEventListener("message",r),[e,r]}function fp(e,t,n,a,r,o){let u=async i=>{let s=i.data;if(xp(n,"ask",a,s)){let c=await o(s.body);t=i.source,t.postMessage(Zb(n,a,s.id,c),i.origin)}};return e.addEventListener("message",u),[e,u]}function ay(e,t,n,a,r){let o=Math.random().toString();return e.postMessage(yp(t,"tell",n,o,a),r)}async function hp(e,t,n,a,r,o,u){let i=Math.random().toString(),s=new Promise(async(c,l)=>{let m=setTimeout(()=>l(new Error(`Failed to get response within ${u}ms`)),u),p=await ty(e,n,a,i);clearTimeout(m),c(p)});return t.postMessage(yp(n,"ask",a,i,r),o),s}var Pa=class e{constructor(t,n,a=window,r="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=a;this.targetOrigin=r;fp(a,n,this.getSystemProtocol("ping"),"ping",r,()=>Promise.resolve({}))}static async connect(t,n=10,a=500){for(let r=0;r<=n;r++)try{return await t.ping({timeout:a}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*a}ms`)}static parent(t,n,a="*",r=window){let o=n.contentWindow;if(Ma(o))return new e(t,o,r,a);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:a=window,targetWindow:r=window.parent}={}){return new e(t,r,a,n)}static rootIframe(t,n="*",{thisWindow:a=window}={}){return new e(t,null,a,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await hp(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(ny(this.thisWindow,this.protocol,t,n))}tell(t,n){ay(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(fp(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,a=1e4){if(this.targetWindow)return hp(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,a);throw new Error("target window is requried")}destroy(){ey(this.listeners)}};var Tp;async function Ep(){if(pt()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=Pa.iframe(ti,"*",{targetWindow:t});Tp=n,await Pa.connect(n).catch(a=>{z.error("connect with parent frame error",a)})}}function Di(){return Tp}h();function Cp(e,t){let n=t.matches||[],a=t.excludeMatches||[];if(a&&!Array.isArray(a)&&(a=[a]),n&&!Array.isArray(n)&&(n=[n]),a.length>0){if(a.includes(e)||a.includes(""))return!1;for(let r of a)if(r.includes("*")&&new RegExp(r).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let r of n)if(r.includes("*")&&new RegExp(r).test(e))return!0}return!1}h();h();var ry=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function _n(e,t){if(t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function Cl(e,t,n){let{blockSelectors:a,extraBlockSelectors:r,extraInlineSelectors:o}=t;if(_n(e,o))return!1;if(_n(e,r)||e.nodeName.toLowerCase()==="br")return!0;let s=null;return e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(s=e.parentNode.immersiveTranslateComputedStyle),s&&s.display&&s.display==="inline-flex"?!1:n&&n.display?!!ry.includes(n.display):_n(e,a)}var qt=_n;function nr(e){return!!e.shadowRoot}function Fa(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function Jo(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Li(e){let t=Ga;return e&&(t=e),t}function Mi(e,t){return Sa(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function oy(e){let{rule:t}=e,n=e.config.loadingTheme;return` <${t.targetWrapperTag} class="${Z}-loading-${n} notranslate">`}function Qo(e,t){let n=e.rule,a=document.createElement(n.targetWrapperTag);a.classList.add("notranslate",un),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),ft(a,Ug,t.toString());let r=oy(e);return a.append(Ne.sanitize(r,{RETURN_DOM_FRAGMENT:!0})),a}function Ur(e,t){return e.querySelector(`[${U0}='${t}']`)}function vp(){document.querySelectorAll(`[${U0}]`).forEach(t=>{t.remove()})}function wp(){document.querySelectorAll(`.${un}-error`).forEach(t=>{t.remove()})}function Ap(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{_r(n)&&t.push(n)}),t}function kp(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:a,delimiters:r,text:o}=e,u=new RegExp(`${r[0]}(\\d+)${r[1]}`,"gi");if(r.length>2){let s=r[2];u=new RegExp(`<${s}(\\d+)>(.*?)`,"gi")}let i=o.trim();return i=i.replace(u,""),i=i.trim(),i===""||i.length===1&&i.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(o)||i.includes("")||i.includes("< styles>")||dm(i)||im(i)||cm(i)||sm(i)||lm(i)||u.test(i)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(i)?!1:ri(o,n,a)}function Bn(e){return e.nodeType===Node.ELEMENT_NODE}function Sp(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}function Dp(e){try{let t=Math.floor((new Date-new Date(e))/1e3);return t<60?`${t} \u79D2\u524D`:t<3600?`${Math.floor(t/60)} \u5206\u949F\u524D`:t<86400?`${Math.floor(t/3600)} \u5C0F\u65F6\u524D`:`${Math.floor(t/86400)} \u5929\u524D`}catch{return e}}function Lp(e){let t=new Date(e),n=t.getFullYear(),a=t.getMonth()+1,r=t.getDate(),o=t.getHours(),u=t.getMinutes(),i=t.getSeconds();return`${n}/${a}/${r} ${o}:${u}:${i}`}async function Mp(e){let n=Ke().INSTALL_FROM,a=hn(),r=await Ht("installedAt",""),o=await Ht("fakeUserId","");return{installFrom:n,version:a,installedAt:r,interfaceLang:e,deviceId:o}}var uy=1e5;function _a(e){let{onParagraph:t,filterRule:n,id:a}=e;n=iy(n);let{stayOriginalSelectors:r,globalStyles:o,selectors:u,isTransformPreTagNewLine:i,lineBreakMaxTextCount:s,globalAttributes:c,isModifyImage:l,skipEditableCheck:m}=n,p={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},f=!1,g=null;function y(_){let{container:x,onFrame:E,onIgnoreElement:T,id:v}=_,C=document.createTreeWalker(x,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,k=>{let P=M(k);return P==NodeFilter.FILTER_ACCEPT?tn.mark(k,v,m):P==NodeFilter.FILTER_REJECT,P}),R=x;if(M(R)===NodeFilter.FILTER_REJECT)return;for(tn.mark(R,v,m);R;){if(u&&u.length>0){let{currentNode:k,isMatchedSelection:P}=w(C,R,u);if(k)R=k;else break;if(!P)continue}if(R.nodeType===Node.ELEMENT_NODE||R.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let k=R;if(k.nodeName==="IFRAME"){E&&E(k),b(),vl(p,!0),R=C.nextNode();continue}k.nodeType===Node.ELEMENT_NODE&&(o&&Al(k,o),c&&Sl(k,c));let P=Cl(k,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},k.immersiveTranslateComputedStyle||null);if(qt(k,r)&&!P){S(k);let B=null;for(;!(B=C.nextSibling())&&C.parentNode(););R=B;continue}let O=nr(k);(!Pp(p,k)||P)&&(b(),k.childNodes.length>0&&D(p,k,k.immersiveTranslateComputedStyle||null)),O&&k.shadowRoot?.mode==="open"&&(P?E?.(k.shadowRoot):y({..._,container:k.shadowRoot})),k.nodeType===Node.ELEMENT_NODE&&k.nodeName==="PRE"&&i&&dy(k)}else if(R.nodeType===Node.TEXT_NODE)S(R);else throw new Error("should not be here");R=C.nextNode(),p.commonAncestorContainer&&R&&R.parentNode===p.commonAncestorContainer&&(p._currentStacks=[]),p.commonAncestorContainer&&R&&R.nodeType===Node.ELEMENT_NODE&&p._currentStacks.push(R)}function M(k){if(k.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Bn(k)){if(c){let B=Object.keys(c);if(B.length>0&&qt(k,B))for(let L of B){let U=c[L];if(k.matches(L)){let K=c[L],H=Object.keys(K);for(let V of H){let q=K[V];k.getAttribute(V)!==q&&(q===null?k.removeAttribute(V):k.setAttribute(V,q))}break}}}if(!_.force&&tn.isMarked(k,v)||Sp(k,v)||Dl(k,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,stayOriginalSelectors:r})||k.nodeName==="IFRAME"&&!_r(k))return NodeFilter.FILTER_REJECT;let P=k.getBoundingClientRect(),{width:O,height:j}=P;if(k.nodeType===Node.ELEMENT_NODE){let B=window.getComputedStyle(k);if(k.immersiveTranslateComputedStyle={display:B.display,whiteSpace:B.whiteSpace,left:P.left+"px",right:P.right+"px",top:P.top+"px",bottom:P.bottom+"px"},kl(k.immersiveTranslateComputedStyle))return T&&T(k),NodeFilter.FILTER_REJECT;let A=Cl(k,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},k.immersiveTranslateComputedStyle||null);if(qt(k,r)&&A)return NodeFilter.FILTER_REJECT}return k.nodeName==="IMG"&&(O>48&&j>48?k.immersiveTranslateComputedStyle={display:"block"}:O>0&&j>0&&l!==!1&&(k.setAttribute("width",O),k.setAttribute("height",j))),!k.childNodes||k.childNodes&&k.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!p.isPreWhitespace&&(O>0&&O<4||j>0&&j<4)&&(k.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(k.nodeType===Node.TEXT_NODE){let P=k.textContent?.trim();if(!P)return p.isPreWhitespace?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let O=k.parentNode;if(O.getBoundingClientRect){let{width:j,height:B}=O.getBoundingClientRect();if(j>0&&j<4||B>0&&B<4)return NodeFilter.FILTER_REJECT}return s>0&&P.length>=s&&wl(k,s),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}y(e),p&&p.commonAncestorContainer&&p.flatNodes.length>0&&b();function w(_,x,E){let T=x.immersiveTranslateComputedStyle||null;if(g){if(!g.contains(x))if(f=!1,x&&x.nodeType===Node.ELEMENT_NODE)if(Pi(x,E))f=!0,g=x,b(),D(p,g,T);else return f=!1,x=_.nextNode(),{currentNode:x,isMatchedSelection:f};else return f=!1,x=_.nextNode(),{currentNode:x,isMatchedSelection:f}}else if(x&&x.nodeType===Node.ELEMENT_NODE)if(Pi(x,E))f=!0,g=x,b(),D(p,g,T);else return f=!1,x=_.nextNode(),{currentNode:x,isMatchedSelection:f};else return f=!1,x=_.nextNode(),{currentNode:x,isMatchedSelection:f};return{currentNode:x,isMatchedSelection:!0}}function b(){let _=cy(p,a);_&&t&&t(_),vl(p)}function S(_){if(!Pp(p,_)){b(),vl(p);let x=_.parentNode;x&&D(p,x,x.computedStyle)}p.flatNodes.push(_)}function D(_,x,E){_.commonAncestorContainer=x;let T=N(E);_.isPreWhitespace=T}function N(_){return _&&_.whiteSpace&&_.whiteSpace.startsWith("pre")||_&&_.whiteSpace==="break-spaces"||!1}}function Pp(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=nr(t));let a=ly(e),r=!0;return!n&&!a&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?r=!0:e.commonAncestorContainer&&(r=!1,e._currentStacks=[])),r}function iy(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let a=n!=="iframe";return t?a&&n!=="pre":a}),e}function sy(e,t,n){if(t){for(let a of t.childNodes)if(a.contains(n))return a}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function Al(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let r of n){let o=t[r];if(e.matches(r)){let u=e.style.cssText||"";u&&(u=u.trim()),u&&!u.endsWith(";")&&(u+=";"),e.style.cssText=u+o;break}}}}function ly(e){return e&&e._currentStacks?e._currentStacks.some(t=>nr(t)):!1}function cy(e,t){let{flatNodes:n,commonAncestorContainer:a}=e;if(a&&n.length>0){if(!n.map(p=>p.textContent?.trim()||"").join(""))return null;if(n.length===1)return{ctxId:t,stepState:1,commonAncestorContainer:n[0].parentNode,rootNodes:[n[0]],flatNodes:n,isPreWhitespace:e.isPreWhitespace,variables:{}};let o=gy(n,a);o||(o=a);let u=[];for(let p of n){let f=sy(e,o,p);f&&(u.includes(f)||u.push(f))}if(u.length<1)return null;let i=u[0],s=u[u.length-1],c=[],l=i,m=0;for(;l&&(c.push(l),l!==s);){if(m++,m>uy){z.warn("loop too many times for convert root nodes, break");break}l=l.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:n,commonAncestorContainer:o,variables:{},isPreWhitespace:e.isPreWhitespace}}else return null}function vl(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function kl(e){let t=e.top?parseInt(e.top):0,n=e.left?parseInt(e.left):0,a=e.right?parseInt(e.right):0,r=e.bottom?parseInt(e.bottom):0;return isNaN(t)&&(t=0),isNaN(n)&&(n=0),isNaN(a)&&(a=0),isNaN(r)&&(r=0),e.display==="none"||t<-1e3||n<-1e3||a<-1e3||r<-1e3}var tn={_marked_key:"immersive_translate_walked",isMarked(e,t){return V0(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||nr(e)))return ui(e,this._marked_key)},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||nr(e)))return ft(e,this._marked_key,t,!1,n)},markWalk(e,t,n){if(!e||e.nodeType!==Node.ELEMENT_NODE||this.isSkipMarkEle(e))return;let a=Pr(e,"markWalk")||"";return ft(e,"markWalk",a+","+t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||nr(e)):!1}};function dy(e){let n=e.innerHTML.replace(/\n\n/g,"
");e.innerHTML=Ne.sanitize(n)}function gy(e,t){if(!e.length)return null;let n=e.map(a=>{let r=new Set;for(;(a=a.parentNode)&&(r.add(a),a!==t););return r});for(let a of n[0])if((a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&n.every(r=>r.has(a)))return a;return null}function wl(e,t){let n=e.textContent||"";if(n.trim().length<=t)return;let o=[". ","? ","! ","\u3002","\uFF1F","\uFF01"].reduce((u,i)=>{let s=n.lastIndexOf(i,t);return s>u?s:u},-1);if(o>1){let u=n[o-1]||"",i=n[o-2]||"",s=n[o+1]||"";u==="."||s==="."||s===")"||i==="."&&u==="S"||i.toUpperCase()==="M"&&(u.toUpperCase()==="R"||u.toUpperCase()==="S")?o=-1:isNaN(Number(u))||(o=-1)}if(o===-1)n.length>t+20&&wl(e,t+20);else{let u=n.slice(o+1);o++,u.startsWith(" ")&&o++;let i=e.splitText(o),s=document.createElement("br");i.parentNode?.insertBefore(s,i),o+10)for(let a of n){let r=t[a],o=Object.keys(r),u=am(e,[a]);for(let i of u)for(let s of o){let c=r[s];i.getAttribute(s)!==c&&(c===null?i.removeAttribute(s):i.setAttribute(s,c))}}}function _p(e,t,n,a,r,o){let u=Object.keys(t);if(u.length>0)for(let i of u){let s=t[i],c=Object.keys(s),l=e.querySelector(i);if(l)for(let m of c){let p=s[m];if(m==="translate"&&p==="no"){let g=l.innerText||l.textContent||"";if(!g.trim()||my(l,r,o)||!om(g,n,a))continue}l.getAttribute(m)!==p&&(p===null?l.removeAttribute(m):l.setAttribute(m,p))}}}function Sl(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let r of n){let o=t[r];if(e.matches(r)){let u=t[r],i=Object.keys(u);for(let s of i){let c=u[s];e.getAttribute(s)!==c&&(c===null?e.removeAttribute(s):e.setAttribute(s,c))}break}}}}function Dl(e,t){return qt(e,t.excludeSelectors||[])?qt(e,t.selectors||[])?!1:!qt(e,t.stayOriginalSelectors||[]):!1}function Pi(e,t){if(t.length===0)return!1;let n=t.filter(a=>!a.endsWith("*")).map(a=>a+" *");return qt(e,t.concat(n))}function my(e,t,n){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,r=>NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let r=a.currentNode;if(r.nodeType===Node.TEXT_NODE&&parent){let o=r.textContent||"";if(o.includes("Copyright"))continue;if(ri(o,t,n))return!0}}return!1}h();h();var Bp=["*://*/*","*","*://*"],Ip="immersive-translate-wildcard-placeholder.com";function Ll(e,t){let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(u=>Bp.includes(u)))return e;let a=new URL(e);a.hash="",a.search="";let r=a.href,o=a.hostname;if(n&&n.length>0){let u=n.find(i=>{let s=i;if(i===o)return!0;if(Bp.includes(i))return!0;if(!i.includes("*")&&i.includes("://")){try{let c=new URL(i);return c.pathname==="/"&&!i.endsWith("/")?c.hostname===o:fy(r,i)}catch{}return!1}else{let c,l=i;if(i.includes("://")){let w=i.split("://");c=w[0],c==="*"&&w.length>1&&(c="*",i="https://"+w[1])}else c="*",i="https://"+i;let m=i.replace(/\*/g,Ip),p;try{p=new URL(m)}catch{return z.debug("invalid match pattern",m,"raw match value:",l),!1}let f=p.hostname,g=p.pathname;g==="/"&&(l.replace("://","").includes("/")||(g="/*"));let y=py(c+":",Rp(f),Rp(g));if(y){let w=new URL(r);return w.port="",y.test(w.href)}else return!1}});if(u)return u}return null}function Rp(e){return e.replaceAll(Ip,"*")}function py(e,t,n){let a="^";return e==="*:"?a+="(http:|https:|file:)":a+=e,a+="//",t&&(e==="file:"||(t==="*"?a+="[^/]+?":(t.match(/^\*\./)&&(a+="[^/]*?",t=t.substring(2)),a+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?a+="(/.*)?":n.includes("*")?(a+=n.replace(/\*/g,".*?"),a+="/?"):a+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):a+="/?",a+="$",new RegExp(a)}function Gn(e,t){return Ll(e,t)!==null}function fy(e,t){let n=new URL(e),a=new URL(t);return n.hostname===a.hostname&&n.pathname===a.pathname&&n.protocol===a.protocol&&n.port===a.port}h();h();var jr="input is invalid type",Ml=typeof window=="object",Ba=Ml?window:{};Ba.JS_SHA256_NO_WINDOW&&(Ml=!1);var hy=!Ml&&typeof self=="object",by=!Ba.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;by?Ba=global:hy&&(Ba=self);var tS=!Ba.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,nS=typeof define=="function"&&define.amd,Zo=!Ba.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",de="0123456789abcdef".split(""),yy=[-2147483648,8388608,32768,128],Rn=[24,16,8,0],Fi=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],_i=["hex","array","digest","arrayBuffer"],vt=[];(Ba.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});Zo&&(Ba.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var Op=function(e,t){return function(n){return new wt(t,!0).update(n)[e]()}},Up=function(e){var t=Op("hex",e);t.create=function(){return new wt(e)},t.update=function(r){return t.create().update(r)};for(var n=0;n<_i.length;++n){var a=_i[n];t[a]=Op(a,e)}return t},Np=function(e,t){return function(n,a){return new Bi(n,t,!0).update(a)[e]()}},jp=function(e){var t=Np("hex",e);t.create=function(r){return new Bi(r,e)},t.update=function(r,o){return t.create(r).update(o)};for(var n=0;n<_i.length;++n){var a=_i[n];t[a]=Np(a,e)}return t};function wt(e,t){t?(vt[0]=vt[16]=vt[1]=vt[2]=vt[3]=vt[4]=vt[5]=vt[6]=vt[7]=vt[8]=vt[9]=vt[10]=vt[11]=vt[12]=vt[13]=vt[14]=vt[15]=0,this.blocks=vt):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=e}wt.prototype.update=function(e){if(!this.finalized){var t,n=typeof e;if(n!=="string"){if(n==="object"){if(e===null)throw new Error(jr);if(Zo&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!Zo||!ArrayBuffer.isView(e)))throw new Error(jr)}else throw new Error(jr);t=!0}for(var a,r=0,o,u=e.length,i=this.blocks;r>2]|=e[r]<>2]|=a<>2]|=(192|a>>6)<>2]|=(128|a&63)<=57344?(i[o>>2]|=(224|a>>12)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<>2]|=(240|a>>18)<>2]|=(128|a>>12&63)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<=64?(this.block=i[16],this.start=o-64,this.hash(),this.hashed=!0):this.start=o}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};wt.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=yy[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};wt.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,o=this.h5,u=this.h6,i=this.h7,s=this.blocks,c,l,m,p,f,g,y,w,b,S,D;for(c=16;c<64;++c)f=s[c-15],l=(f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3,f=s[c-2],m=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10,s[c]=s[c-16]+l+s[c-7]+m<<0;for(D=t&n,c=0;c<64;c+=4)this.first?(this.is224?(w=300032,f=s[0]-1413257819,i=f-150054599<<0,a=f+24177077<<0):(w=704751109,f=s[0]-210244248,i=f-1521486534<<0,a=f+143694565<<0),this.first=!1):(l=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),m=(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7),w=e&t,p=w^e&n^D,y=r&o^~r&u,f=i+m+y+Fi[c]+s[c],g=l+p,i=a+f<<0,a=f+g<<0),l=(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10),m=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),b=a&e,p=b^a&t^w,y=i&r^~i&o,f=u+m+y+Fi[c+1]+s[c+1],g=l+p,u=n+f<<0,n=f+g<<0,l=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),m=(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7),S=n&a,p=S^n&e^b,y=u&i^~u&r,f=o+m+y+Fi[c+2]+s[c+2],g=l+p,o=t+f<<0,t=f+g<<0,l=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),m=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),D=t&n,p=D^t&a^S,y=o&u^~o&i,f=r+m+y+Fi[c+3]+s[c+3],g=l+p,r=e+f<<0,e=f+g<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+a<<0,this.h4=this.h4+r<<0,this.h5=this.h5+o<<0,this.h6=this.h6+u<<0,this.h7=this.h7+i<<0};wt.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,o=this.h5,u=this.h6,i=this.h7,s=de[e>>28&15]+de[e>>24&15]+de[e>>20&15]+de[e>>16&15]+de[e>>12&15]+de[e>>8&15]+de[e>>4&15]+de[e&15]+de[t>>28&15]+de[t>>24&15]+de[t>>20&15]+de[t>>16&15]+de[t>>12&15]+de[t>>8&15]+de[t>>4&15]+de[t&15]+de[n>>28&15]+de[n>>24&15]+de[n>>20&15]+de[n>>16&15]+de[n>>12&15]+de[n>>8&15]+de[n>>4&15]+de[n&15]+de[a>>28&15]+de[a>>24&15]+de[a>>20&15]+de[a>>16&15]+de[a>>12&15]+de[a>>8&15]+de[a>>4&15]+de[a&15]+de[r>>28&15]+de[r>>24&15]+de[r>>20&15]+de[r>>16&15]+de[r>>12&15]+de[r>>8&15]+de[r>>4&15]+de[r&15]+de[o>>28&15]+de[o>>24&15]+de[o>>20&15]+de[o>>16&15]+de[o>>12&15]+de[o>>8&15]+de[o>>4&15]+de[o&15]+de[u>>28&15]+de[u>>24&15]+de[u>>20&15]+de[u>>16&15]+de[u>>12&15]+de[u>>8&15]+de[u>>4&15]+de[u&15];return this.is224||(s+=de[i>>28&15]+de[i>>24&15]+de[i>>20&15]+de[i>>16&15]+de[i>>12&15]+de[i>>8&15]+de[i>>4&15]+de[i&15]),s};wt.prototype.toString=wt.prototype.hex;wt.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,o=this.h5,u=this.h6,i=this.h7,s=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,a>>24&255,a>>16&255,a>>8&255,a&255,r>>24&255,r>>16&255,r>>8&255,r&255,o>>24&255,o>>16&255,o>>8&255,o&255,u>>24&255,u>>16&255,u>>8&255,u&255];return this.is224||s.push(i>>24&255,i>>16&255,i>>8&255,i&255),s};wt.prototype.array=wt.prototype.digest;wt.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function Bi(e,t,n){var a,r=typeof e;if(r==="string"){var o=[],u=e.length,i=0,s;for(a=0;a>6,o[i++]=128|s&63):s<55296||s>=57344?(o[i++]=224|s>>12,o[i++]=128|s>>6&63,o[i++]=128|s&63):(s=65536+((s&1023)<<10|e.charCodeAt(++a)&1023),o[i++]=240|s>>18,o[i++]=128|s>>12&63,o[i++]=128|s>>6&63,o[i++]=128|s&63);e=o}else if(r==="object"){if(e===null)throw new Error(jr);if(Zo&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!Zo||!ArrayBuffer.isView(e)))throw new Error(jr)}else throw new Error(jr);e.length>64&&(e=new wt(t,!0).update(e).array());var c=[],l=[];for(a=0;a<64;++a){var m=e[a]||0;c[a]=92^m,l[a]=54^m}wt.call(this,t,n),this.update(l),this.oKeyPad=c,this.inner=!0,this.sharedMemory=n}Bi.prototype=new wt;Bi.prototype.finalize=function(){if(wt.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();wt.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),wt.prototype.finalize.call(this)}};var zr=Up();zr.sha256=zr;zr.sha224=Up(!0);zr.sha256.hmac=jp();zr.sha224.hmac=jp(!0);var zp=zr;var Hp=zp.sha256;function In(e){return Promise.resolve(Hp(e))}function Ri(e){return Array.from(new Uint8Array(e)).map(a=>a.toString(16).padStart(2,"0")).join("")}function Ra(e,t){let n=Hp.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function qp(e,t){let n=await Ra(e,t);return Ri(n)}async function Ii(e,t){let n=xy(t),a=await Ra(e,n);return Ri(a)}function xy(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}h();var Kp="auto",Oi="auto",Wp="auto";function $p(e){Kp=e}function xn(e){Oi=e}function Dt(){return Oi!=="auto"?Oi:Wp!=="auto"?Wp:Kp}function Ni(){return Oi}async function Lt(e){let{url:t,config:n,state:a}=e,r=new URL(t),o="auto",{translationParagraphLanguagePattern:u,translationService:i,translationServices:s,translationTheme:c,translationThemePatterns:l,translationUrlPattern:m,targetLanguage:p,sourceLanguageUrlPattern:f,immediateTranslationPattern:g}=n,y=Hr(t,u),w=Hr(t,g),b=i,S=Object.keys(s);for(let Y of S){let ce=s[Y];if(Hr(t,ce)){b=Y;break}}let D=c,N=Object.keys(l);for(let Y of N){let ce=l[Y];if(ce&&Hr(t,ce)){D=Y;break}}let _=Hr(t,m),x=Gp(t,m);x||(x=Gn(t,Zg)),x||(x=Gn(t,n.blockUrls));let E=Gp(t,n.inputTranslationUrlPattern);E||(E=Gn(t,n.inputTranslationBlockUrls));let T=Gn(t,n.mutationBlockUrls),v=Object.keys(f),C={};for(let Y of v){let ce=f[Y];if(ce&&ce.matches)for(let fe of ce.matches)C[fe]=Y}let R=Object.keys(C),M=Ll(t,R);M&&(o=C[M]??"auto",C[M]&&C[M]!=="auto"&&xn(C[M]));let k=p||"zh-CN",P=r.hostname,O=await In(P),j=r.pathname+r.search+r.hash,B=await In(j),A=`https://${O}.com/${B}`,L=await $n(),U=await $m(),K=n.translationStartMode;K==="dynamic"&&w&&(K="immediate");let H=b;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(H=n.inputTranslationService);let V=b;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(V=n.mouseHoverTranslationService);let q={targetLanguage:k,config:n,translationService:b,inputTranslationService:H,mouseHoverTranslationService:V,isTranslateUrl:_,sourceLanguage:o,mainFrame:document.body,isTranslateExcludeUrl:x,isMutationTranslationExcludeUrl:T,isInputTranslationExcludeUrl:E,rule:n.generalRule,url:t,encryptedUrl:A,state:a?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:K,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:y,cache:n.cache,translationTheme:D},a):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:K,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:y,cache:n.cache,translationTheme:D},localConfig:L},oe=await Xe.get(ct,null);oe&&(q.user=oe),q.state.translationArea==="body"&&(q.config.generalRule.excludeTags=q.config.generalRule.excludeTags.filter(Y=>!q.config.generalRule.bodyTranslateTags.includes(Y)),q.config.generalRule.additionalExcludeSelectors=q.config.generalRule.additionalExcludeSelectors.filter(Y=>Y!==".btn"));let Q=n.translationServices[q.translationService]||{};Q.immediateTranslationTextCount!==void 0&&Ty(Q.immediateTranslationTextCount)&&Q.immediateTranslationTextCount>=0&&(q.state.immediateTranslationTextCount=Q.immediateTranslationTextCount),q.translationService==="deepl"&&(Q&&Q.authKey&&Q.authKey.startsWith("immersive_")||Q&&Q.provider==="pro"&&q.user?.token)&&Q.immediateTranslationTextCountForImmersiveDeepl!==void 0&&Q.immediateTranslationTextCountForImmersiveDeepl>=0&&(q.state.immediateTranslationTextCount=Q.immediateTranslationTextCountForImmersiveDeepl),Q&&Q.translationDebounce&&typeof Q.translationDebounce=="number"&&(q.state.translationDebounce=Q.translationDebounce);let J=U.immediateTranslationTextCount;n.immediateTranslationTextCount!==J&&(q.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let ye=n.rules,xe;globalThis.PDFViewerApplication?xe=ye.find(Y=>Y.isPdf):globalThis.immersiveTranslateEbookViewer?xe=ye.find(Y=>Y.isEbook):globalThis.immersiveTranslateEbookBuilder?xe=ye.find(Y=>Y.isEbookBuilder):xe=ye.find(Y=>Hr(t,Y)),q.state.translationArea==="body"&&(q.rule.paragraphMinTextCount=1,q.rule.paragraphMinWordCount=1),xe&&xe.isEbookBuilder&&(q.state.translationStartMode="immediate");let ie=n.generalRule;if(xe&&(q.rule=xi(ie,xe)),q.rule.selectors.length>0&&(q.rule.paragraphMinTextCount=2,q.rule.paragraphMinWordCount=1),q.state.translationArea==="body"&&q.rule.excludeTags&&(q.rule.excludeTags=q.rule.excludeTags.filter(Y=>!q.rule.bodyTranslateTags.includes(Y)&&!q.rule.forceTranslateTags.includes(Y))),q.rule.mainFrameSelector){let Y=document.querySelector(q.rule.mainFrameSelector);Y&&(q.mainFrame=Y)}return q}function Hr(e,t){if(!t)return!1;let{matches:n,excludeMatches:a,selectorMatches:r,excludeSelectorMatches:o}=t;return a&&a.length>0&&Gn(e,a)?!1:n&&n.length>0&&Gn(e,n)?!0:o&&o.length>0&&oi(o)?!1:!!(r&&r.length>0&&oi(r))}function Gp(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:a}=t;return!!(n&&n.length>0&&Gn(e,n)||a&&a.length>0&&oi(a))}function Ty(e){return typeof e=="number"}h();h();async function Vp(){let e="auto",t=[Za(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await it({text:Mr(document.body),pageLangs:t})),e}h();h();h();function qr(e,t,n=[],a){let r=["notranslate"];return a&&r.push(Gg),e&&(r.push(`${Z}-target-translation-theme-${e}`),t?r.push(`${z0}-theme-${e}`):r.push(`${j0}-theme-${e}`)),n.length>0&&r.push(...n),t?r.push(z0):r.push(j0),r}function Wr(e){let t=["notranslate",Kg];return e&&t.push(`${Z}-target-translation-theme-${e}-inner`),t}function Yp(e,t,n){let{rule:a,state:r}=n,{translationTheme:o}=r,{variables:u,isVertical:i}=e;u=u||[];let{text:s}=t,{wrapperPrefix:c,wrapperSuffix:l}=a,m=Fr(n),p="afterend",f=m[0],g=m[1],y=`${f}(\\d+)${g}`,w=new RegExp(y,"g"),b=Ne.sanitize(s);u.length>0&&(b=b.replace(w,_=>{let x=b.indexOf(_),E=b[x-1]===" ",T=b[x+_.length]===" ",v=_.slice(m[0].length,-m[1].length),C=Number(v);if(isNaN(C))return _;let R=u[Number(C)];if(R&&R.type==="element"){let M=R.value.outerHTML;return E||(M=" "+M),T||(M=M+" "),M}else z.error("variable type not supported",R,_);return _}));let S=qr(o,e.inline,a.translationClasses||[],e.preWhitespace);i&&S.push($g);let D=Wr(o),N="";return a.translationBlockStyle&&(N=`style="${a.translationBlockStyle}"`),b=`<${n.rule.targetWrapperTag} ${N} class="${S.join(" ")}" ${Kn}="1"><${a.targetWrapperTag} class="${D.join(" ")}" ${Kn}="1">${b}`,e.inline||(c==="smart"?b=`
${b}`:b=`${c}${b}`),e.inline&&(c!=="smart"?b=`${c}${b}`:b=`<${a.targetWrapperTag} class="notranslate" ${Kn}="1"> ${b}`),l==="smart"?b=`${b}`:b=`${b}${l}`,{html:b,position:p}}function Ui(e,t){let n=null,{stayOriginalSelectors:a,delimiters:r,isPreWhitespace:o}=t,u=[],i={};for(let s=0;s2&&(w=`<${r[2]}${y}>`),i[y]=c,u.push({text:w,type:"variable"})}else u.push({text:c.textContent||"",type:"text"});else{let g=c.textContent||"";m&&(g=Fa(Pl(c))),u.push({text:g,type:"text"})}else if(c.nodeType===Node.ELEMENT_NODE)if(c&&qt(c,a)){let y=Object.keys(i).length,w=`${r[0]}${y}${r[1]}`;r.length>2&&(w=`<${r[2]}${y}>`),i[y]=c;let b=Fl(u).endsWith(" ")?" ":"",S=Fa(c.innerText||c.textContent),D=Fa(c.nextSibling).startsWith(" ")?" ":"",N=Jo(b+S+D),_=N[0]+w+N[1];if(b===" ")_=_.trimStart();else if(!_.startsWith(" ")){let x=Jo(c.previousSibling)[1];x===""&&(x=" "),_=x+_}u.push({text:_,type:"variable"})}else{let g=Fl(u).endsWith(" ")?" ":"",y=Fa(c.innerText||c.textContent);m&&(y=Fa(Pl(c)));let w=Fa(c.nextSibling).startsWith(" ")?" ":"",b=Jo(g+y+w),S=b[0]+(c.innerText?.trim()||c.textContent?.trim()||"")+b[1];if(g===" ")S=S.trimStart();else{let D=Jo(c.previousSibling)[1];D===""&&(c.nodeName==="A"||c.nodeName==="CODE")&&(D=" "),S=D+S}u.push({text:S,type:"text"})}else{let g=Fl(u).endsWith(" ")?" ":"",y="";c.textContent&&(y=Fa(Pl(c))),g===" "&&(y=y.trimStart()),u.push({text:y,type:"text"})}}if(u&&u.length>0){let s="";for(let c=0;c0&&(m=u[c-1].text),c2){let l=c[2];return Ey({delimiterTag:l,targetText:e.targetText,inline:r,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:a}).html}else{let l=Yp(s,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return l.html}}function Pl(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function Ey(e){let{delimiterTag:t,inline:n,translationClasses:a,targetWrapperTag:r,wrapperPrefix:o,variables:u,preWhitespace:i,wrapperSuffix:s,translationTheme:c,translationBlockStyle:l}=e;u=u||[];let m=e.targetText;m=Ne.sanitize(m);let p=m,f=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),g=new RegExp(`<${t}(\\d+)>`);u.length>0&&(p=p.replace(f,S=>{let D=p.indexOf(S),N=p[D-1]===" ",_=p[D+S.length]===" ",x=S.match(g);if(!x)return S;let E=x[1],T=Number(E);if(isNaN(T))return S;let v=u[Number(T)];if(v&&v.type==="element"){let C=v.value.outerHTML;return N||(C=" "+C),_||(C=C+" "),C}else if(v&&v.type==="text"){let C=v.value;return N||(C=" "+C),_||(C=C+" "),C}else z.error("variable type not supported",v,S);return S}));let y=qr(c,n,a||[],i),w=Wr(c),b="";return l&&(b=`style="${l}"`),p=`<${r} ${b} class="${y.join(" ")}" ${Kn}="1"><${r} class="${w.join(" ")}" ${Kn}="1">${p}`,n||(o==="smart"?p=`
${p}`:p=`${o}${p}`),n&&(o!=="smart"?p=`${o}${p}`:p=`<${r} class="notranslate" ${Kn}="1"> ${p}`),s==="smart"?p=`${p}`:p=`${p}${s}`,{html:p,position:"afterend"}}function Fl(e){let t=e[e.length-1];return t?t.text:""}function Tn(e){let t=e.rule.selectors,n=e.rule.excludeTags,a=e.rule.additionalExcludeTags,r=e.rule.excludeSelectors,o=e.rule.additionalExcludeSelectors;return e.state.translationArea==="body"&&(t=[],r=[]),{globalStyles:e.rule.globalStyles,globalAttributes:e.rule.globalAttributes,selectors:t,skipEditableCheck:e.rule.skipEditableCheck,lineBreakMaxTextCount:e.rule.lineBreakMaxTextCount,isTransformPreTagNewLine:e.rule.isTransformPreTagNewLine,excludeSelectors:n.concat(a).map(i=>i.toLowerCase()).filter(i=>i!=="code"&&i!=="img").concat(r).concat(o),blockSelectors:e.rule.allBlockTags.map(i=>i.toLowerCase()).concat(e.rule.extraBlockSelectors),extraBlockSelectors:e.rule.extraBlockSelectors,extraInlineSelectors:e.rule.extraInlineSelectors.concat(e.rule.additionalInlineSelectors),stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(i=>i.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)}}var Cy={sanitize:e=>e};function zi(e,t){e.interruptEffectDOM||(e.walkContainer({id:e.id,container:t,filterRule:Tn(e.ctx),onParagraph:Xo.bind(null,e),onFrame:n=>{Bl(e,n,!0)},onIgnoreElement:n=>{e.ignoreResizeObserver?.observe(n)}}),Ar&&ft(t,"consumeContainer",e.id))}function Bl(e,t,n){try{if(e.injectCssToDocument(t,e.ctx),t instanceof HTMLIFrameElement){if(!_r(t))return;z.debug("onFrame fragment",t);let a=t.contentWindow?.document.body;a&&($r(a,e,n),e.dynamicContainerObserver?.observe(a,{childList:!0,subtree:!0}))}else z.debug("onFrame shadowRoot",t.host),$r(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0})}catch{}}function $r(e,t,n=!0){let{globalStyles:a,globalAttributes:r}=Tn(t.ctx),o=0;if(s(t,e,n))return;if(Bn(e)&&i(e)){u(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,l=>(Bn(l)&&(a&&Al(l,a),r&&Sl(l,r)),s(t,l,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(tn.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode();){tn.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let l=c.currentNode;if(i(l))for(u(l);;){if(c.nextSibling()){let m=c.currentNode;if(tn.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),i(m)){u(m);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){u(e);return}return t.observeContainers;function u(c){tn.clearMark(c),o++,t.immediateTranslateCapacity>=0?zi(t,c):(Ar&&ft(c,"observeContainer",t.id),t.containerVisibleObserver?.observe(c))}function i(c){let l=c.nodeName.toLowerCase();if(c.shadowRoot)return Bl(t,c.shadowRoot,n),!1;if(l==="iframe")return Bl(t,c,n),!1;if(["script","#document-fragment","img"].includes(l))return!1;let m=t.containerRule;if(m.selectors&&m.selectors?.length>0)return Pi(c,m.selectors);if(m.pageHeight){let p=c.scrollHeight;if(p>0&&p0)return!0}return!1}function s(c,l,m){if(l.nodeName.toLowerCase()=="script")return l.childNodes.length==0||l.childNodes.length==1&&l.childNodes[0].nodeType==Node.TEXT_NODE;if(l.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(l.nodeType!==Node.ELEMENT_NODE||m&&tn.isMarked(l,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&l.nodeName==="PRE")return!1;let f=Tn(c.ctx);return!!Dl(l,{excludeSelectors:f.excludeSelectors,selectors:f.selectors,stayOriginalSelectors:f.stayOriginalSelectors})}}function Rl(e,t){if(!e.targetNodes)return;let n=e.state||"original",a=e.commonAncestorContainer;if(!tn.isMarked(a,e.ctxId))return;let r=a.contains(e.rootNodes[0]),o=a.contains(e.targetNodes[0]);if(r&&o)n="dual";else if(r)n="original";else if(o)n="translation";else return;if(t!=n){e.state=t;try{if(n=="dual"&&t=="translation"&&(ji(e.rootNodes),Zp(e.commonAncestorContainer)),n=="original"&&t=="translation"){let u=_l(e.rootNodes);if(ji(e.rootNodes),Qp(u))return;Kr(u,a,e.targetNodes||[]),Zp(e.commonAncestorContainer)}if(n=="translation"&&t=="dual"){let u=e.targetNodes[0];Kr(u,a,e.rootNodes||[]),Xp(e.commonAncestorContainer)}if(n=="original"&&t=="dual"){let u=_l(e.rootNodes);if(Qp(u))return;Kr(u,a,e.targetNodes||[]),Xp(e.commonAncestorContainer)}if(n=="translation"&&t=="original"){let u=_l(e.targetNodes);ji(e.targetNodes),Kr(u,a,e.rootNodes||[])}n=="dual"&&t=="original"&&ji(e.targetNodes)}catch(u){z.error(u)}}}function Qp(e){return!e||!Bn(e)?!1:e.classList.contains(un)}function Zp(e){if(!Bn(e))return;e.querySelectorAll("font[class*=immersive-translate-target-translation]").forEach(a=>{ft(a,"immersiveTranslateClassBak",a.className),a.className="notranslate immersive-translate-target-dual"});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.add("immersive-translate-state-dual")}function Xp(e){if(!Bn(e))return;e.querySelectorAll("font[class*=immersive-translate-target-dual]").forEach(a=>{let r=Pr(a,"immersiveTranslateClassBak");ui(a,"immersiveTranslateClassBak"),a.className=r});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.remove("immersive-translate-state-dual")}function _l(e){return e?e[e.length-1].nextSibling:null}function ji(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function Kr(e,t,n){let a=e;t&&(a?n.forEach(r=>{a.parentNode?.insertBefore(r,a)}):n.forEach(r=>{t.appendChild(r)}))}var vy=Ft(Ol,300);async function Xo(e,t,n=!1){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||wy(t.rootNodes)||t.stepState>=2)return;t.stepState=2,Ar&&ft(a,"onParseParagraph",e.id);let{ctx:r}=e,{rule:o}=r,u=Fr(r),i=Ui(t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:u,stayOriginalSelectors:r.rule.stayOriginalTags.concat(r.rule.stayOriginalTags).map(c=>c.toLowerCase()).concat(r.rule.stayOriginalSelectors).concat(r.rule.additionalStayOriginalSelectors)});if(!i)return;t.variables=i?.variables||{},t.text=i?.text;let s=await Nl(t,{excludeLanguages:r?.config?.translationLanguagePattern?.excludeMatches||[],targetLanguage:r.targetLanguage,noTranslateRegexp:r.rule.noTranslateRegexp,delimiters:Li(r.config.translationServices[r.translationService]?.placeholderDelimiters),minTextCount:n||r.state.translationArea==="body"?2:o.paragraphMinTextCount,minWordCount:n||r.state.translationArea==="body"?1:o.paragraphMinWordCount,isDetectParagraphLanguage:r.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:r.rule.ignoreZhCNandZhTW});if(s){if(z.debug("on paragraph",s.text,s),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(s))return;a.paragraphs.push(s),e.immediateTranslateCapacity>0||n?(Ay(e,t.text),Il(e,t)):(Ar&&ft(a,"observeParagraph",e.id),e.observeParagraphs.push(s),e.paragraphVisibleObserver?.observe(a))}return s}function wy(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Bn(t)&&t.classList.contains(un):!1}function Ay(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function Il(e,t){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let n=e.autoIncreaseParagraphId++;t.id=n.toString(),e.paragraphEntities[n]=t,e.paragraphQueue.push(n.toString()),Ar&&ft(t.commonAncestorContainer,"consumeParagraph",e.id),vy.call(e,e.ctx)}async function Ol(e){if(this.interruptEffectDOM)return;let t=this.paragraphQueue;this.paragraphQueue=[];let n=[];for(let a=0;a0)try{await Ia(a,t,(r,o,u)=>{let i=u.id,s=ky(e,i.toString());s&&Sy.call(null,r,o,u,s,t,n)})}catch(r){z.error("translateCurrentQueue error",r);return}}function ky(e,t){return e.find(n=>n.id===t)}function Sy(e,t,n,a,r,o){let u=!1,i=a;if(Ur(i.commonAncestorContainer,n.id)?.remove(),i&&(e||!t)){e||(z.error("translate error",n,e,t),e=new Error("no response from server"));let{rule:s}=r,c=n.id,l=document.createElement(s.targetWrapperTag);ft(l,jg,c.toString()),l.classList.add("notranslate",un,un+"-error"),l.setAttribute("translate","no"),l.setAttribute("lang",r.targetLanguage);let m=a.rootNodes[a.rootNodes.length-1].nextSibling;Kr(m,a.commonAncestorContainer,[l]),Dy(r,e);let p=e.message.replaceAll(` +`,"");if(p=p.replaceAll('"',"""),i&&(i.error=new Error(p)),l){let f=ra(Qt,"retryAllParagraphs",r.config.interfaceLanguage,"zh-CN"),g=ra(Qt,"errorTooltipTitle",r.config.interfaceLanguage,"zh-CN"),y=`<${s.targetWrapperTag} class="${Z}-error notranslate"><${s.targetWrapperTag} class="${Z}-error-wrapper">\u{1F504}  \u2753`;l.innerHTML=Ne.sanitize(y)}}else if(a){if(i.error=void 0,a.targetText=t?.text||"",!(a.text?.toLocaleLowerCase()==a.targetText?.toLocaleLowerCase())){let c=Jp(a,r),l=document.createElement(r.rule.targetWrapperTag);l.classList.add("notranslate",un),l.setAttribute("lang",r.targetLanguage),l.setAttribute(Kn,"1");let m=Cy.sanitize(c);l.innerHTML=m,a.targetNodes=[l],Rl(a,o)}u=!0}else z.error("paragraph not found",n.id);document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:u}})}))}async function Nl(e,t){let{text:n}=e,a=await it({text:n||"",minLength:15,pageLangs:[Dt(),"en"]}),{targetLanguage:r}=t;if(!kp({text:n||"",delimiters:t.delimiters,minWordCount:t.minWordCount,minTextCount:t.minTextCount,noTranslateRegexp:t.noTranslateRegexp}))return null;let u=t.excludeLanguages||[],i=Ni();t.isDetectParagraphLanguage&&(i="auto");let s=Dt(),c=a;c==="auto"&&!t.isDetectParagraphLanguage&&(c=s),e.languageByLocal=c,e.languageByClient=i;let l=i!=="auto"?i:c;return Sa(l,r,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW})||u.length>0&&u.some(f=>Sa(l,f,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW}))?null:e}function Dy(e,t){if(t.message.startsWith("ProQuota:")){t.message=t.message.replace("ProQuota:","");let n=t.message;try{n=JSON.parse(t.message).error}catch(o){z.error(o)}t.message=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${t.message} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`;let a=e.translationService,r=a=="deepl"?"OpenAI":"Deepl";e.translationService=="openai"?a="OpenAI":e.translationService=="deepl"&&(a="Deepl"),document.dispatchEvent(new CustomEvent(Vu,{detail:{type:"ProQuotaExceeded",subscriptionType:e.user?.subscription?.subscriptionType,translationService:a,anotherService:r,message:n}}))}}h();var Ly=[];function e3(e){Ly.push(e)}h();function t3(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(a){a.length>0&&(a[0].target.text.includes(Zu)||Ul(e).catch(o=>{z.error("translateTitle error:",o.name,o.message,o.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var qi="";async function Ul(e){let t=document.title;if(!t||t.includes(Zu))return;qi!==t&&(qi=t);let n=await it({text:t,pageLangs:[Dt(),"en"]});if(!Mi(e,n))try{let a=await la({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n},e);a&&a.text&&(document.title=qi+Zu+a.text)}catch(a){throw a}}function n3(e){e.rule.isTranslateTitle&&(document.title=qi)}h();var jl="Original";function tt(){return jl}function Wt(e){jl=e,a3(jl)}h();var zl;function r3(e){let t=e.ctx.rule.aiRule;if(z.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=Tn(e.ctx),a=n.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);n.excludeSelectors.splice(a,1);let r,o;document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(p=>{p.translated=!0,eu(e,p,n)});let u=t.streamingDelayTime||100;zl=new MutationObserver(p=>{p.forEach(function(f){if(Bn(f.target)&&!s(f)&&(l(f.target),f.addedNodes&&f.addedNodes.length&&f.addedNodes.forEach(g=>{l(g)}),!c(f)&&i())){let g=f.target===o;if(t.streamingDeepChild&&!g&&(g=f.target.parentNode===o),!g)return;f.addedNodes.forEach(y=>{let w=y.previousSibling;!w||w.translated||(w.translated=!0,setTimeout(()=>{w.childNodes[0]?.translated||(z.debug("\u7FFB\u8BD1\u4E0A\u4E00\u4E2A\u6BB5\u843D",w),eu(e,w,n))},u))})}})}),zl.observe(document.body,{attributes:!0,childList:!0,subtree:!0});function i(){return!!(t.streamingChange&&t.streamingSelector&&r||t.streamingChange&&t.messageContainerSelector&&t.messageStreamEndSelector&&o&&!o.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector))}function s(p){return t.streamingSelector&&p.target===r&&p.type==="attributes"&&!_n(p.target,[t.streamingSelector])?(m(),!0):t.streamingSelector&&p.removedNodes.length>0&&o&&o!=r?(p.removedNodes?.forEach(f=>{f===r&&m()}),!0):t.messageContainerSelector&&t.messageStreamEndSelector&&o&&o.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector)?(m(),!0):!1}function c(p){if(t.streamingSelector&&p.target.querySelector(t.messageWrapperSelector||"")&&!r){let f=p.target;return f.translated||(f.translated=!0,setTimeout(()=>{r||f.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(g=>{g.translated||(g.translated=!0,eu(e,g,n))})},u)),!0}else if(t.messageContainerSelector&&p.target.querySelector(t.messageContainerSelector||"")){let f=p.target;if(f.translated)return!0;f.translated=!0,setTimeout(()=>{f.querySelectorAll(t.messageContainerSelector).forEach(g=>{t.messageStreamEndSelector&&!g.querySelector(t.messageStreamEndSelector)||g.translated||(g.translated=!0,eu(e,g,n))})},u)}return!1}function l(p){t.streamingSelector&&_n(p,[t.streamingSelector])&&(r=p,z.debug("streamingNode",r)),_n(p,[t.messageWrapperSelector])&&(o=p,z.debug("markdownNode",o))}function m(){o&&setTimeout(()=>{o.childNodes.forEach(p=>p.translated=!1),z.debug("\u7ED3\u675F\u7FFB\u8BD1\u5168\u90E8",o),eu(e,o,n),r=void 0,o=null},u)}}function eu(e,t,n){_a({id:e.id,container:t,filterRule:n,force:!0,onParagraph:a=>{Xo(e,a,!0)},onFrame:()=>{},onIgnoreElement:()=>{}})}function o3(){zl?.disconnect()}var re=null;function Ki(){return re||null}function Gr(e){My(e),Oy(e),By(e),Iy(e),wa(document,e),Wt("Translated"),Ry(re),_y(re),e3(ca),Py(re)}function My(e){e.state.translationArea==="main"&&e.rule.initialSelectorGlobalAttributes&&_p(document.body,e.rule.initialSelectorGlobalAttributes,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph)}function Py(e){r3(e)}function Fy(){o3()}function _y(e){e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0});let t=[];e.ctx.rule.mainFrameSelector&&(t=[...document.querySelectorAll(e.ctx.rule.mainFrameSelector||"")]),t.length<=0&&(t=[document.body]),t.forEach(n=>{$r(n,e)})}async function By(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=Date.now(),a=new URL(e.url).hostname,r=e.localConfig.tempTranslationUrlMatches||[],o=r.findIndex(i=>i.match===a&&i.expiredAt>t),u=!1;o>-1||(r.push({match:a,expiredAt:t+e.config.tempTranslateDomainMinutes*60*1e3}),u=!0),u&&await yn({...e.localConfig,tempTranslationUrlMatches:[...r]})}}function Ry(e){e.ctx.rule.isTranslateTitle&&(Ul(e.ctx),e.titleDynamicObserver=t3(e.ctx))}function Iy(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function Oy(e){let t=Fn();re&&(t=re.id);let n=Tn(e);re=re||{},re.ctx=e,re.id=t,re.paragraphQueue=re.paragraphQueue||[],re.rule={excludeSelectors:n.excludeSelectors||[],selectors:n.selectors||[]},re.currentUrl=window.location.href,re.containerRule={pageHeight:screen.availHeight,selectors:n.selectors},re.translationService=e.translationService,re.paragraphEntities=re.paragraphEntities||{},re.autoIncreaseParagraphId=re.autoIncreaseParagraphId||1,re.interruptEffectDOM=!1,re.urlChangeDelay=e.rule.urlChangeDelay,re.immediateTranslateCapacity=e.state.immediateTranslationTextCount,re.observeContainers=re.observeContainers||[],re.observeParagraphs=re.observeParagraphs||[],re.dynamicContainerObserver=re.dynamicContainerObserver||Hy(re),re.ignoreResizeObserver=re.ignoreResizeObserver||qy(re),re.containerVisibleObserver=re.containerVisibleObserver||Uy(re),re.paragraphVisibleObserver=re.paragraphVisibleObserver||jy(re),re.injectCssToDocument=Wi,re.walkContainer=_a,re.translateState=e.state.translationMode||e.config.translationMode||"dual",re.allInlineWindows=[window],window.onerror=Ny(re,e),window.immersiveTranslateSwitchTranslateState=ql.bind(re)}function i3(e,t){t.getRootNode()instanceof ShadowRoot?Wi(t.getRootNode(),e):Wi(t.ownerDocument,e),Hl(e)}function Hl(e){if(re)return;re={},re.ctx=e,re.id=Fn(),re.paragraphQueue=[],re.injectCssToDocument=Wi;let t=Tn(e);re.rule={excludeSelectors:t.excludeSelectors,selectors:t.selectors||[]},re.translationService=e.mouseHoverTranslationService,re.currentUrl=window.location.href,re.paragraphEntities={},re.autoIncreaseParagraphId=1,re.interruptEffectDOM=!1,re.urlChangeDelay=e.rule.urlChangeDelay,re.translateState=e.config.translationMode||"dual",re.observeContainers=[],re.observeParagraphs=[],re.allInlineWindows=[window],window.switchTranslateState=ql.bind(re)}function ca(e=!0){re&&(Wt("Original"),Fy(),re.interruptEffectDOM=!0,re.ignoreResizeObserver?.disconnect(),re.dynamicContainerObserver?.disconnect(),re.containerVisibleObserver?.disconnect(),re.paragraphVisibleObserver?.disconnect(),re.titleDynamicObserver?.disconnect(),n3(re.ctx),vp(),wp(),e&&ql.call(re,"original"),Object.values(re.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),re=null)}function Ny(e,t){e.interruptEffectDOM=!1;let n;return function(a){let r=a.message,o=!1;return r?.indexOf("Minified React error")>=0&&(o=!0),o&&(clearTimeout(n),ca(),n=setTimeout(()=>{Gr(t)},e.urlChangeDelay||2e3)),!0}}function Uy(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{a.intersectionRatio>0&&(zi(e,a.target),n.unobserve(a.target))})})}function jy(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{if(a.intersectionRatio>0){let r=a.target;(r.paragraphs||[]).forEach(u=>{Il(e,u)}),n.unobserve(r)}})})}var u3;function zy(e){if(e.urlChangeDelay<=0)return!1;let n=(window.location.href||"").split("#")[0];return e.currentUrl.split("#")[0]!=n?(clearTimeout(u3),e.translateState=="original"?!1:(ca(e.urlChangeDelay>20),u3=setTimeout(()=>{let r=e.ctx;Gr(r)},e.urlChangeDelay),!0)):!1}function Hy(e){return new MutationObserver(t=>{if(!zy(e)&&!e.interruptEffectDOM)for(let n of t){let a=e.ctx.rule.mutationObserverLimitTargetSelectors;if(a.length>0&&!_n(n.target,a))return;if((n.addedNodes||[]).length<=0||n.target.nodeType!==Node.ELEMENT_NODE||!tn.isSkipMarkEle(n.target)&&!tn.isMarked(n.target,e.id))continue;let o=(n.target?.paragraphs||[]).reduce((u,i)=>{let s=i.rootNodes||[],c=i.targetNodes||[];return[...u,...s,...c]},[]);if(n.addedNodes.length>0&&n.addedNodes.length===n.target.childNodes.length&&_n(n.target,e.ctx.rule.mutationObserverContainerSelectors)){tn.clearMark(n.target),n.target.paragraphs=void 0,zi(e,n.target);return}n.addedNodes.forEach((u,i)=>{u.nodeType===Node.ELEMENT_NODE&&(o.includes(u)||qt(u,e.ctx.rule.mutationExcludeSelectors)||$r(u,e))})}})}function qy(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let a of t){if(a.target.nodeType!==Node.ELEMENT_NODE)return;let r=a.target,o=globalThis.getComputedStyle(r);kl(o)||(n.unobserve(a.target),$r(r,e))}})}function ql(e){this.translateState=e,Object.values(this.paragraphEntities).forEach(t=>{Rl(t,e)}),e=="original"&&document.querySelectorAll(`.${un}`).forEach(t=>t.remove())}function Wi(e,t){if(e instanceof HTMLIFrameElement){wa(e.contentDocument,t);return}wa(e,t)}async function s3(e){let t=pt(),n="auto";if(me()){let a="";e.rule.isEbook||e.rule.isEbookBuilder?(a=Y0(e.mainFrame),n=await it({text:a,pageLangs:["en"]})):(a=Mr(e.mainFrame).slice(0,1e3),n=await it({text:a,pageLangs:[Za(),"en"]}))}else if(t)n=await it({text:Mr(e.mainFrame).slice(0,1e3),pageLangs:[Za(),"en"]});else if(e.rule.isEbook||e.rule.isEbookBuilder){let a="";a=Y0(e.mainFrame),n=await it({text:a,pageLangs:["en"]})}else n=await c3();return n==="auto"&&(n=await Vp()),$p(n),n}async function l3(){if(!re)return;document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=re.paragraphEntities,t=Object.keys(e);for(let n of t){let a=e[n];if(a.error){re.paragraphQueue.push(n);let o=a.commonAncestorContainer.querySelector(`[${Ju}='${n}']`);o&&o.remove()}}Ol.call(re,re.ctx)}h();h();var d3={"zh-CN":{"languages.en":"\u82F1\u8BED","languages.ja":"\u65E5\u8BED","languages.ko":"\u97E9\u8BED","languages.es":"\u897F\u73ED\u7259\u8BED","languages.fr":"\u6CD5\u8BED","languages.de":"\u5FB7\u8BED","languages.it":"\u610F\u5927\u5229\u8BED","languages.pt":"\u8461\u8404\u7259\u8BED","languages.ru":"\u4FC4\u8BED","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"},"zh-TW":{"languages.en":"\u82F1\u8A9E","languages.ja":"\u65E5\u8A9E","languages.ko":"\u97D3\u8A9E","languages.es":"\u897F\u73ED\u7259\u8A9E","languages.fr":"\u6CD5\u8A9E","languages.de":"\u5FB7\u8A9E","languages.it":"\u610F\u5927\u5229\u8A9E","languages.pt":"\u8461\u8404\u7259\u8A9E","languages.ru":"\u4FC4\u8A9E","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"}},g3={...Qt,"zh-CN":{...d3["zh-CN"],...Qt["zh-CN"]},"zh-TW":{...d3["zh-TW"],...Qt["zh-TW"]}},Vr=g3;function Oa(e,t,n){return ra(g3,e,t,Xu,n)}var m3=()=>sn.filter(e=>e!=="auto"),Mt=(e,t,n,a)=>{let r=Vg[e]||e,o=Yg[e],u=Jg[e],i={"zh-CN":o,"zh-TW":u,en:r};if(n)return i[e]?i[e]:r;if(i[t]){let s=i[t];return a||e==="auto"||e==="placeholder"?s:`${s} (${r})`}else return r};h();h();function Yr(e){Jr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(a=>{z.error("send content message request failed",e,a)}),document.querySelectorAll("iframe").forEach(a=>{a.contentWindow&&a.contentWindow.postMessage({author:Gu,payload:e},"*")});let n=new CustomEvent(Ta,{detail:e});globalThis.document.dispatchEvent(n)}function Wl(e){let t=e.shortcuts||{},a=Object.keys(t).reduce((o,u)=>(o[t[u]]=u,o),{}),r=Object.keys(a);for(let o of r){let u=o.replace(/MacCtrl/ig,"Ctrl");u&&Ue(u,i=>{i.preventDefault(),Yr({method:a[o],data:{trigger:"shortcut"}})})}}h();h();var Pt=class{options;strictTicks=[];constructor(t){this.options=t,this.setOptions(t)}setOptions(t){t&&(t.interval!==void 0&&(this.options.interval=Number(t.interval)),t.limit!==void 0&&(this.options.limit=Number(t.limit)))}wait(){return new Promise((t,n)=>{setTimeout(t,this.getDelay())})}getDelay(){let t=this.strictTicks,n=this.options.limit,a=this.options.interval,r=Date.now();if(t.length=o?(t.push(r),0):(t.push(o),o-r)}};var Wy=new Pt({limit:7,interval:1250}),Ky={tencent:new Pt({limit:3,interval:1350}),baidu:new Pt({limit:1,interval:1550}),strict:new Pt({limit:1,interval:1050}),d:new Pt({limit:1,interval:1050}),youdao:new Pt({limit:5,interval:1050}),you:new Pt({limit:5,interval:1050}),cai:new Pt({limit:5,interval:1050}),google:new Pt({limit:10,interval:1050}),deepl:new Pt({limit:10,interval:1050}),transmart:new Pt({limit:30,interval:1050}),papago:new Pt({limit:3,interval:1150}),openai:new Pt({limit:10,interval:1300}),chatgpt:new Pt({limit:1,interval:1350})};function tu(e){return Ky[e]||Wy}async function p3(e){if(pt()){let n=Di();if(n)try{return(await n.ask("getRateLimitDelay",{key:e})).value}catch(a){return z.error("can not comunicate with root frame, use strict limiter",a),tu("strict").getDelay()}else return tu("strict").getDelay()}else return tu(e).getDelay()}async function f3(e,t){if(!pt()){let a=tu(e);t&&a.setOptions(t)}}async function h3(e){let t=e.key;return{value:tu(t).getDelay()}}h();var $i=new Map;async function Kl(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=La(e.body)),$i.has(t))return $i.get(t);let n=se(e);$i.set(t,n);try{return await n}catch(a){throw a}finally{setTimeout(()=>{$i.delete(t)},3e4)}}async function b3(e){return Kl(e)}async function y3(e){if(pt()){let n=Di();if(n)try{return await n.ask("throttleRequest",e)}catch(a){throw z.error("can not comunicate with root frame, use strict limiter",a),a}else return Kl(e)}else return Kl(e)}h();h();h();h();function x3(e,t,n){let a=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),a=t!=="auto"?n[t].matches:[];let r={},o=Object.keys(n);for(let c of o){let m=n[c].matches;for(let p of m)r[p]||(r[p]=[]),r[p].push(c)}let u=r[e];if(u&&u.length>0)for(let c of u)n[c].matches.indexOf(e)>-1&&(n[c]={...n[c],matches:n[c].matches.filter(m=>m!==e)});let i=new Set(a);if(t==="auto")return{...n};i.add(e);let s=Array.from(i);return{...n,[t]:{...n[t],matches:s}}}h();h();function $l(){return d("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M10.3873 2.29166C10.6319 2.29193 10.8664 2.38929 11.0392 2.56234C11.2121 2.73539 11.3092 2.96998 11.3092 3.21457V4.07811L12.1175 4.38332C12.7273 4.61277 13.2952 4.94074 13.7988 5.35416L14.4675 5.90207L15.2165 5.46978L15.2394 5.45624C15.3787 5.37479 15.5373 5.332 15.6988 5.33228C15.861 5.3325 16.0203 5.37522 16.1608 5.45618C16.3014 5.53715 16.4182 5.65353 16.4998 5.79374L16.8925 6.47395C17.0145 6.68593 17.0475 6.93764 16.9843 7.17391C16.921 7.41019 16.7666 7.61173 16.555 7.73436L16.5321 7.74791L15.7842 8.17916L15.9227 9.0302C16.031 9.67953 16.031 10.3423 15.9227 10.9917L15.781 11.8458L16.531 12.2781L16.5467 12.2875C16.758 12.4101 16.9122 12.6115 16.9754 12.8475C17.0387 13.0835 17.0059 13.335 16.8842 13.5469L16.5154 14.1844C16.3932 14.3961 16.1919 14.5507 15.9558 14.6141C15.7196 14.6776 15.468 14.6448 15.256 14.5229L15.2415 14.5135L14.4904 14.0802L13.8206 14.6323C13.3125 15.0519 12.7384 15.3845 12.1217 15.6167L11.3133 15.9219V16.7864C11.3132 16.9078 11.2891 17.028 11.2425 17.14C11.1958 17.2521 11.1276 17.3539 11.0415 17.4395C10.9555 17.5251 10.8535 17.5929 10.7412 17.6391C10.6289 17.6852 10.5087 17.7087 10.3873 17.7083H9.61229C9.3677 17.708 9.13322 17.6107 8.96037 17.4376C8.78751 17.2646 8.69042 17.03 8.69042 16.7854V15.9219L7.88209 15.6167C7.27233 15.3872 6.70437 15.0592 6.20084 14.6458L5.53209 14.0979L4.78313 14.5302L4.76021 14.5437C4.62084 14.6252 4.46226 14.668 4.30084 14.6677C4.13864 14.6675 3.97932 14.6248 3.83877 14.5438C3.69823 14.4628 3.58135 14.3464 3.49979 14.2062L3.10709 13.526C2.98505 13.3141 2.95205 13.0623 3.01532 12.8261C3.07858 12.5898 3.23296 12.3882 3.44459 12.2656L3.4675 12.2521L4.21542 11.8208L4.07688 10.9698C3.96856 10.3204 3.96856 9.65766 4.07688 9.00832L4.21854 8.1552L3.46959 7.72186L3.45709 7.70832C3.24914 7.58489 3.09787 7.38486 3.03575 7.15116C2.97362 6.91746 3.00559 6.66872 3.12479 6.45832L3.49354 5.82082C3.57469 5.68049 3.69133 5.56397 3.83175 5.48297C3.97217 5.40197 4.13144 5.35934 4.29354 5.35936C4.45497 5.35908 4.61355 5.40187 4.75292 5.48332L4.7675 5.49166L5.51854 5.92499L6.18834 5.37291C6.69646 4.95329 7.27054 4.62067 7.88729 4.38853L8.69563 4.08332V3.21874C8.69452 2.97433 8.79041 2.73945 8.96226 2.56565C9.13411 2.39185 9.36788 2.29331 9.61229 2.29166H10.3873ZM10.3873 1.04166H9.61229C9.03636 1.04193 8.4841 1.27084 8.07685 1.67809C7.66961 2.08533 7.4407 2.6376 7.44042 3.21353C6.69518 3.49423 6.00146 3.89618 5.38729 4.40312L5.37271 4.39478C4.87362 4.10685 4.2806 4.02894 3.72407 4.17818C3.16753 4.32742 2.69307 4.6916 2.405 5.19062L2.03729 5.83332C1.74928 6.33229 1.67121 6.92522 1.82025 7.48173C1.96929 8.03825 2.33324 8.51279 2.83209 8.80103L2.84771 8.80936C2.78023 9.20444 2.74539 9.6044 2.74354 10.0052C2.74367 10.3971 2.77572 10.7883 2.83938 11.175L2.81646 11.1885C2.56927 11.3311 2.35259 11.5209 2.1788 11.7472C2.00501 11.9735 1.87752 12.2319 1.80361 12.5075C1.7297 12.7831 1.71083 13.0706 1.74807 13.3535C1.7853 13.6364 1.87792 13.9091 2.02063 14.1562L2.41334 14.8364C2.55638 15.0837 2.74681 15.3003 2.97371 15.4738C3.20061 15.6473 3.45953 15.7743 3.73561 15.8475C4.01169 15.9208 4.29952 15.9388 4.58259 15.9007C4.86566 15.8625 5.13841 15.7688 5.38521 15.625L5.40813 15.6114C6.01714 16.1105 6.70362 16.5067 7.44042 16.7844C7.44028 17.0697 7.49635 17.3523 7.60542 17.616C7.7145 17.8797 7.87444 18.1193 8.07612 18.3212C8.27779 18.523 8.51726 18.6832 8.78084 18.7925C9.04441 18.9018 9.32694 18.9582 9.61229 18.9583H10.3873C10.9632 18.958 11.5155 18.7291 11.9227 18.3219C12.33 17.9146 12.5589 17.3624 12.5592 16.7864C13.3043 16.5061 13.9981 16.1045 14.6123 15.5979L14.6269 15.6062C15.126 15.8942 15.719 15.9721 16.2755 15.8228C16.8321 15.6736 17.3065 15.3094 17.5946 14.8104L17.9623 14.1729C18.2503 13.6739 18.3284 13.081 18.1793 12.5245C18.0303 11.968 17.6663 11.4934 17.1675 11.2052L17.1519 11.1969C17.2194 10.8018 17.2542 10.4018 17.256 10.001C17.2559 9.60915 17.2239 9.21792 17.1602 8.83124L17.1831 8.8177C17.4303 8.67516 17.647 8.48531 17.8208 8.259C17.9946 8.03269 18.1221 7.77435 18.196 7.49875C18.2699 7.22314 18.2888 6.93568 18.2515 6.65278C18.2143 6.36987 18.1217 6.09708 17.979 5.84999L17.5863 5.16978C17.4437 4.92202 17.2537 4.70485 17.027 4.53072C16.8003 4.3566 16.5415 4.22895 16.2654 4.1551C15.9893 4.08126 15.7013 4.06267 15.418 4.1004C15.1346 4.13814 14.8616 4.23145 14.6144 4.37499L14.5915 4.38853C13.9824 3.88946 13.296 3.49327 12.5592 3.21561C12.5593 2.93026 12.5032 2.64768 12.3942 2.384C12.2851 2.12031 12.1252 1.8807 11.9235 1.67883C11.7218 1.47695 11.4823 1.31678 11.2188 1.20746C10.9552 1.09813 10.6726 1.04179 10.3873 1.04166Z",fill:"#666666"}),d("path",{d:"M10.0003 7.91666C10.4124 7.91666 10.8152 8.03884 11.1578 8.26776C11.5004 8.49668 11.7674 8.82205 11.9251 9.20273C12.0828 9.58341 12.124 10.0023 12.0436 10.4064C11.9632 10.8106 11.7648 11.1818 11.4735 11.4731C11.1821 11.7645 10.8109 11.9629 10.4068 12.0433C10.0026 12.1237 9.58375 12.0824 9.20307 11.9247C8.82239 11.7671 8.49702 11.5 8.2681 11.1574C8.03918 10.8148 7.91699 10.412 7.91699 9.99999C7.91699 9.44745 8.13649 8.91755 8.52719 8.52685C8.91789 8.13615 9.44779 7.91666 10.0003 7.91666ZM10.0003 6.66666C9.34106 6.66666 8.69659 6.86215 8.14843 7.22842C7.60026 7.5947 7.17302 8.11529 6.92073 8.72438C6.66844 9.33346 6.60243 10.0037 6.73104 10.6503C6.85966 11.2969 7.17713 11.8908 7.6433 12.357C8.10948 12.8232 8.70342 13.1407 9.35003 13.2693C9.99663 13.3979 10.6669 13.3319 11.2759 13.0796C11.885 12.8273 12.4056 12.4001 12.7719 11.8519C13.1382 11.3037 13.3337 10.6593 13.3337 9.99999C13.3337 9.11593 12.9825 8.26809 12.3573 7.64297C11.7322 7.01785 10.8844 6.66666 10.0003 6.66666Z",fill:"#666666"})]})}h();function nu(e,t=2e3){return n=>{let a,r=0;return o=>{++r==e&&(n(o),r=0),clearTimeout(a),a=setTimeout(()=>r=0,t)}}}h();function T3(e){let t;try{t=new URL(e)}catch{return!1}let n=E3(),a="";try{a=new URL(n).hostname}catch{}return a&&t.hostname===a?!0:!($y(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function $y(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}h();function C3(e){let t=e.split(".");return t.length>2?(t[0]="*",t.join(".")):null}h();function v3(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}h();function On(e){let{items:t,maxWidth:n,className:a}=e,{lang:r}=ue();return n=n||(r==="en"?144:160),d("select",{autoComplete:"off",class:a||"min-select",style:{maxWidth:`${n}px`},value:t.find(o=>o.selected)?.value,onChange:o=>{let u=o.target.value,i=t.find(s=>s.value===u);i&&i.onSelected(i)},children:t.map((o,u)=>d("option",{value:o.value,selected:o.selected,children:o.label},"selectlink"+u))})}function Gl(e){let{items:t,maxWidth:n,isInput:a,value:r}=e;return n=n||128,a?d("input",{value:r,onChange:o=>{e.onChange(o.target.value)}}):d("select",{autoComplete:"off",style:{maxWidth:`${n}px`},value:t.find(o=>o.selected)?.value,onChange:o=>{let u=o.target.value,i=t.find(s=>s.value===u);i&&i.onSelected(i)},children:t.map((o,u)=>d("option",{value:o.value,selected:o.selected,children:o.label},"selectlink"+u))})}h();var Gi="DROP_DOWN_DEFAULT_VALUE";function Vl(e){let{showArrow:t,onSelected:n,className:a,menus:r,maxWidth:o}=e;a=a||"",t=t??!0,o=o||80;let u=zn(null);return d("select",{ref:u,autoComplete:"off",class:`text-label min-select ${t?"":"min-select-no-arrow"} ${a||""}`,value:Gi,style:{maxWidth:`${o}px`},onChange:i=>{i.preventDefault();let s=i.target.value;if(u.current&&s!==Gi){u.current.value=Gi,u.current?.dispatchEvent(new Event("change"));let c=r.find(l=>l.value===s);c&&n(c)}},children:[{value:Gi,label:e.label}].concat(r).map((i,s)=>d("option",{value:i.value,children:i.label},"option-"+s))})}h();function Yl(e){let{field:t,onChange:n,value:a}=e;a=a||t.default||"";let{t:r}=ue(),o=t.name;return t.label&&(o=t.label),t.labelKey&&(o=r(t.labelKey)),t.type==="select"?d("div",{class:"flex justify-between items-center mb-2",children:[d("label",{class:"inline-block",children:[o,"\uFF1A"]}),d(On,{items:t.options.map(u=>({label:`${u.label?r(u.label):u.value}`,value:u.value,selected:a===u.value,onSelected:()=>{n(u.value)}}))})]}):null}h();h();function Na(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var Gy=({date:e})=>{let{t}=ue(),[n,a]=$(!1);return he(()=>{setTimeout(()=>{a(!0)},5e3)},[]),n?null:d("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},Vy=({minVersion:e})=>{let{t}=ue();return d("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},Yy=()=>{let{t:e}=ue();return d("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:"https://immersivetranslate.com/docs/installation/"})}})},Jy=({message:e,handleSyncing:t,date:n})=>{let{t:a}=ue();return d("p",{class:"text-sm",children:[a("failToSyncRules")," ",d("a",{onClick:t,children:a("retry")}),d("br",{}),a("failedReason"),"\uFF1A",e,d("br",{}),a("currentRuleVersion"),"\uFF1A",n]})};function Jl(e){let{isShowError:t,request:n}=e,[a,r]=$(null),{t:o}=ue(),[u,i]=$(null),[s,c]=$(null),[l,m]=$(""),[p,f]=$(!1),[g,y]=$(!1),[w,b]=$(!1),[S,D]=$(null),[N,_]=$(null),x=hn(),E=async()=>{m("");let T=u;if(u===null)try{let v=await n({url:Ea});v?(i(v),T=v,f(!0)):(m(o("unknownError")),c(null))}catch(v){c(null),m(v.message);return}T!==null?(e.setStorageBuildinConfig(T),c(!1),r(T.buildinConfigUpdatedAt)):(m(o("canNotFetchRemoteRule")),c(null))};return he(()=>{Ge().then(T=>{let v=T.buildinConfigUpdatedAt;D(T);let C=new Date(v);if(r(v),x==="0.0.0"){b(!0);return}n({url:Ea}).then(R=>{let M=R,k=M.minVersion,P=x;i(M);let O=M.latestVersion;if(O&&(Na(P,O)?_(!0):_(!1)),Na(P,k)){let j=M.buildinConfigUpdatedAt;new Date(j)>C?(c(!0),E()):c(!1)}else y(!0),c(null)}).catch(R=>{c(null),m(R.message)})})},[]),he(()=>{Ge().then(T=>{D(T)})},[a]),S?d("div",{class:"text-sm mt-2",style:{maxWidth:218},children:w?d(Yy,{}):l?t===!1?null:d(Jy,{handleSyncing:E,message:l,date:a||""}):g?t===!1?null:d(Vy,{minVersion:u.minVersion}):s===null||s===!0?null:p?d(Gy,{date:a}):null}):null}h();var Vi='',Qr="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMTEuNjIzLS4zMTguODQ1Yy0uMjA4LjIyMi0uNTI3LjMzMy0uOTI4LjMzM2gtMS4zM1Y5LjI0MmgxLjMzWm05Ljg0NiAxLjc4OGMuMzg4IDAgLjY2NS4xNTIuODQ1LjQ1Ny4xNTIuMjY0LjIzNS41ODIuMjYzLjk4NHYuMzE5YzAgLjQ5OS0uMDgzLjg4Ny0uMjYzIDEuMTkyLS4xOC4zMDQtLjQ1Ny40NTctLjgzLjQ1Ny0uMzg5IDAtLjY2Ni0uMTUzLS44NDYtLjQ0NC0uMTUyLS4yNjMtLjIzNS0uNTk1LS4yNjMtMS4wMTF2LS4yOTFjMC0uNDg1LjA4My0uODczLjI2My0xLjE3OC4xOC0uMzA1LjQ0My0uNDg1LjgzMS0uNDg1Wm0tMy40MDctMS4xMzZhMS4xNyAxLjE3IDAgMCAwLS43MDYuMjM1IDEuNDgyIDEuNDgyIDAgMCAwLS40MTUuNWwtLjA4My4xNjUtLjA3LS44MDNoLTEuMzU3djUuNDMyaDEuNDU0di0zLjY1OWEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiA4LjEySDQuMTE0djcuMzE3aDEuNDY4VjEyLjc5aDEuMzNjLjg0NCAwIDEuNDk1LS4yMDggMS45OC0uNjM4LjQ4NS0uNDMuNzItLjk4My43Mi0xLjY5cy0uMjM1LTEuMjYxLS43Mi0xLjY5Yy0uNDQzLS4zODktMS4wMzktLjYxLTEuNzczLS42MzhsLS4yMjEtLjAxNFptOS44NDcgMS43NzRjLS44MDMgMC0xLjQyNi4yNjMtMS44ODMuNzc2LS40MTYuNDctLjYzNyAxLjA2Ny0uNjc5IDEuNzczdi4zMzNjMCAuODE4LjIyMiAxLjQ4My42NzkgMS45OTUuNDU3LjUxMyAxLjA4Ljc3NiAxLjg4My43NzYuODA0IDAgMS40MjctLjI2MyAxLjg4NC0uNzc2LjQxNS0uNDcuNjM3LTEuMDUzLjY3OC0xLjc3M3YtLjMzM2MwLS44MTctLjIyMS0xLjQ4Mi0uNjc4LTEuOTk1LS40NTctLjUxMy0xLjA4LS43NzYtMS44ODQtLjc3NlpNMTguMDAzIDZhNiA2IDAgMCAxIDAgMTJIMFY5LjQyM0EzLjQyIDMuNDIgMCAwIDEgMy40MiA2aDE0LjU4M1oiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSI3LjUiIHgyPSIyMiIgeTE9IjE5IiB5Mj0iNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMyMjIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM2OTY5NjkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=",Ql="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzk5OSIgZD0iTTYuODk3IDMuMjQyYy40MTUgMCAuNzIuMTExLjkyOC4zNDcuMjA3LjIzNS4zMTguNTI2LjMxOC44NzMgMCAuMzQ2LS4xMS42MjMtLjMxOC44NDUtLjIwOC4yMjItLjUyNy4zMzMtLjkyOC4zMzNoLTEuMzNWMy4yNDJoMS4zM1ptOS44NDYgMS43ODhjLjM4OCAwIC42NjUuMTUyLjg0NS40NTcuMTUyLjI2NC4yMzUuNTgyLjI2My45ODR2LjMxOWMwIC40OTktLjA4My44ODctLjI2MyAxLjE5Mi0uMTguMzA0LS40NTcuNDU3LS44My40NTctLjM4OSAwLS42NjYtLjE1My0uODQ2LS40NDQtLjE1Mi0uMjYzLS4yMzUtLjU5NS0uMjYzLTEuMDExdi0uMjkxYzAtLjQ4NS4wODMtLjg3My4yNjMtMS4xNzguMTgtLjMwNS40NDMtLjQ4NS44MzEtLjQ4NVptLTMuNDA3LTEuMTM2YTEuMTcgMS4xNyAwIDAgMC0uNzA2LjIzNSAxLjQ4MiAxLjQ4MiAwIDAgMC0uNDE1LjVsLS4wODMuMTY1LS4wNy0uODAzaC0xLjM1N3Y1LjQzMmgxLjQ1NFY1Ljc2NGEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiAyLjEySDQuMTE0djcuMzE3aDEuNDY4VjYuNzloMS4zM2MuODQ0IDAgMS40OTUtLjIwOCAxLjk4LS42MzguNDg1LS40My43Mi0uOTgzLjcyLTEuNjlzLS4yMzUtMS4yNjEtLjcyLTEuNjljLS40NDMtLjM4OS0xLjAzOS0uNjEtMS43NzMtLjYzOGwtLjIyMS0uMDE0Wm05Ljg0NyAxLjc3NGMtLjgwMyAwLTEuNDI2LjI2My0xLjg4My43NzYtLjQxNi40Ny0uNjM3IDEuMDY3LS42NzkgMS43NzN2LjMzM2MwIC44MTguMjIyIDEuNDgzLjY3OSAxLjk5NS40NTcuNTEzIDEuMDguNzc2IDEuODgzLjc3Ni44MDQgMCAxLjQyNy0uMjYzIDEuODg0LS43NzYuNDE1LS40Ny42MzctMS4wNTMuNjc4LTEuNzczdi0uMzMzYzAtLjgxNy0uMjIxLTEuNDgzLS42NzgtMS45OTUtLjQ1Ny0uNTEzLTEuMDgtLjc3Ni0xLjg4NC0uNzc2Wk0xOC4wMDMgMGE2IDYgMCAwIDEgMCAxMkgwVjMuNDIzQTMuNDIgMy40MiAwIDAgMSAzLjQyIDBoMTQuNTgzWiIvPjwvc3ZnPg==",w3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAABC1BMVEUAAADt7vHt7vHn5+/v7+/u7vLs7O/Y2urv7+/I0uTu7/Ls7e/r6+/r7e/J1OTE0OGdrMHu7/Hu7/Lt7vHHz9/I0+Ps7O/V3eju7/GXp72YqL7s7u/I0uPH0+Pv7/OWpr3H0uLH0+OXp7vl6e67xtmquszi5u3W3ejAzd66x9jJ0+O5xdimtcmYprzI0+Ps7e+Yp73t7vHI0+OXp7309vnCzt/N1+Xd4+ucrMHp7PLa4evR2uff5O3F0OHo6+/j5+6uu82jssedrMKaqr/Y3+nP2ObR2OOpt8rm6e/k5+68yNq6xdW2w9XT3OivvdCmtcnu8fa/ytezwNKhsMTL09/c4+zZ3+m/y9zGz9seNO0nAAAAMXRSTlMA3+8gEJ9gECDfv3BAgO/v78+vkCCQUO/f37ewoIB/cGBAQO/v79/f39/Pz8/Pv6CfPHl8AQAAAyVJREFUSMedluda4kAUQAcUkGJB0bXturq9b3JTaUkITQOiYHv/JzEzmZYYIp/nhyYz93hnbqaI0ijVqoX6oRJyWNmt1tBqlIqVvBIjv1tcQfvALZlcYe0tGmEvQz3gWmrW4rJ0BeUVCutp3lpOeZXc2ts8YWZ72abw3mKWqOdMp+3U8OaWanSpKVeI1rOrdnTVuHyhOaq6/V1tsdoKr0ib+roF/khvJry++mMHwFPZ+8GLCbZGENJ7nI7b/amBaX0zP7W2fgOmM2Zrlw12T6EYC8D4HTXGFyBc8Tls0oQKQ/UBs7MdF3eo+FWJpyzIovAEuiUyyinFJzQ8APC4J0yPzJGIImVREeIEvF8k9Op61uuB3/PcQMfvEws8dSwi8UbZ5W9dlsD1QcKbkMaOKn2mSijmuWcQreNCkp6uEkx5rDX+0ooGaUEK15HZ5cE1VGWPbdI1gXRGpLfFxaqYIhloAJBp8sIWUEVOqPuwlHksZR3l5BnOIANdnmUO0QebFAayGMUKy0QHt44yNLr2+0nRxKK1VCI9QRgySIpN/Olxr7kAN3Dpn7h1hmSnPdkWLY/BxZwQdRyjmWBrmmbeuVjUNHsOELY80VVg8OLUk6J2o0XYw+AO/w7ADRsti4gDvlj/ic/YIeJLhk74wzFhLn3IE7bkuqw4OF8qJjxKVa3yRY7FazwdEuTaLN6eOzRvT15zNbSel8rqA5g4yIVbJt6CS8WJVJs8Qmyx2iQlFWdCDGAWPfTlhXMiHR0POOUChjjozuJDdWbD6GGAE3bF0YHHKlLq1lBLp4m72/wrYjbp2yUxzQzvQexGJKVUSKfhpGg3ZNMN8kzcQDQlN0m/nfTuo3b5PGYpxR4hIWNpGdjTqPEdj8pt8H9T5KOVutP7dkiTjJF48dM4cV85JC4dgx3ke0iwXqc3aCb9LrvKBRvhthwbGRJNKiYozLa6Aib3hFleRSyn/GvVSJhXo95iNom3/WygFEr7sbuUX1SCfbSEj2X59k6a5XO0lMa+8BLm1vsSyqJxWk4e6V6mJg/4b+KS/Hx6jlbk4uz4+Ag7R3/+n12khjwDw+rmuecPQ74AAAAASUVORK5CYII=";function Zl(e){let t=hn(),{onTranslateTheMainPage:n,onUserConfigChange:a,request:r,onTranslateLocalHtmlFile:o,onSwitchTranslationMode:u,onTranslateLocalSubtitleFile:i,onSetBuildinConfig:s,pageStatus:c,openEbookBuilderPage:l,openPricingPage:m,openEbookViewerPage:p,config:f,openAboutPage:g,onTranslateTheWholePage:y,onToggleEnabled:w,openOptionsPage:b,ontranslateToThePageEndImmediately:S,onSetPageLanguage:D,onToggleTranslate:N,onTranslateLocalPdfFile:_,onTranslatePdf:x,onRestorePage:E,ctx:T,currentUrl:v,currentLang:C,onClose:R,onTranslatePage:M,onSetLocalConfig:k,onMouseTriggerChanged:P,errorMsg:O,disabledButton:j,noPermissionPDF:B}=e,A=a,[L,U]=$(""),[K,H]=$(O),[V,q]=$(null),[oe,Q]=$(null),{t:J,lang:ye}=ue(),xe=70;ye.startsWith("zh")||(xe=75);let ie=null,Y=null,ce=null,fe=null,ge=null,Ee=null,Le=null,ve=null,ee=null,De=null,_e=null,je=null;he(()=>{Xe.get(ct,null).then(W=>{W?(q(W),Q(Xt(W))):Q(!1)}).catch(W=>{Q(!1)})},[]);let We=!0,Et=ot();if(f){Et&&f&&(We=f.generalRule.showSponsorOnSafari);let{translationService:W,translationServices:pe,translationUrlPattern:nt}=f;Mn[W]&&(ve=gl("translationService",W,T)),pe&&pe[W]?je=pe[W]||{}:je={};try{ee=new URL(v||"")}catch{}if(v&&T3(v)){De=C3(ee.hostname),_e=v3(v);let{matches:Be,excludeMatches:Ie}=nt;Y=Be.includes(De),ie=Be.includes(ee.hostname),fe=Ie.includes(De),ce=Ie.includes(ee.hostname),Ee=Be.includes(_e),Le=Ie.includes(_e)}}if(f&&C&&C!=="auto"){let{translationLanguagePattern:W}=f,{matches:pe}=W;pe.includes(C)?ge=!0:ge=!1}let Vt=W=>{W.preventDefault(),b()},qa=W=>{A(pe=>(pe.alpha?U("Success disable alpha!"):U("Success enable alpha!"),{...pe,alpha:!pe.alpha}))},nn=W=>{A(pe=>({...pe,translationMode:W})),u(W)},Jn=()=>{A(W=>({...W,translationArea:"body"})),y()},ga=()=>{A(W=>({...W,translationArea:"main"})),n()},ze=(W,pe,nt,Be)=>{if(W==="default"){A(jn=>{let cn={...jn.translationUrlPattern};return{...jn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...jn.translationUrlPattern,matches:at([ee?.hostname,De,v],cn.matches),excludeMatches:at([ee?.hostname,De,v],cn.excludeMatches)}}});return}let Ie=W,Qn=Ie==="matches"?"excludeMatches":"matches";ee&&A(jn=>{let cn={...jn.translationUrlPattern};return cn[Ie]=bn(pe,cn[Ie]),Be.length>0&&(cn[Ie]=at(Be,cn[Ie])),cn[Qn]=at(nt,cn[Qn]),{...jn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...jn.translationUrlPattern,...cn}}}),Ie==="matches"&&c==="Original"?setTimeout(()=>{M(),R()},100):Ie==="excludeMatches"&&c==="Translated"&&setTimeout(()=>{E(),R()},100)},an=W=>{if(!W){A(Be=>{let Ie={...Be.translationLanguagePattern};return{...Be,translationLanguagePattern:{...Be.translationLanguagePattern,matches:at(C,Ie.matches),excludeMatches:at(C,Ie.excludeMatches)}}});return}let pe=W,nt=pe==="matches"?"excludeMatches":"matches";C&&A(Be=>{let Ie={...Be.translationLanguagePattern};return Ie[pe]=bn(C,Ie[pe]),Ie[nt]=at(C,Ie[nt]),{...Be,translationLanguagePattern:{...Be.translationLanguagePattern,...Ie}}}),pe==="matches"&&c==="Original"&&setTimeout(()=>{M(),R()},100)},bt=ee?.pathname.toLowerCase().endsWith(".pdf"),Ze=J("translate");c==="Translated"||c==="Error"?Ze=J("show-original"):c==="Original"?bt?Ja()&&ee.protocol==="file:"||B?Ze=J("translate-firefox-local-pdf"):me()?Ze=J("noSupportTranslate-pdf"):Ze=J("translate-pdf"):Ze=J("translate"):Ze=J(c);let ln=J("translateToThePageEndImmediately");(c==="Original"||c==="Translated")&&(f.shortcuts.toggleTranslatePage&&(Or()&&T.rule.fingerCountToToggleTranslagePageWhenTouching>=2?Ze+=` (${J(`fingers.${T.rule.fingerCountToToggleTranslagePageWhenTouching}`)})`:Ze+=` (${f.shortcuts.toggleTranslatePage})`),f.shortcuts.toggleTranslateToThePageEndImmediately&&(ln+=` (${f.shortcuts.toggleTranslateToThePageEndImmediately})`));let Yt=[];T&&(Yt=Ei(T,"translationService"));let ma=W=>{W.preventDefault(),R()},At=Zr(T.config.translationService,T.config.targetLanguage),An=Ee||ie||Y,Ve=()=>Ee?d("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[d("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!Ee,onChange:W=>{let pe=W.target.checked;ze(pe?"matches":"default",_e,[_e],[])}}),J("alwaysTranslateSomePage")]}):ie?d("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[d("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!ie,onChange:W=>{let pe=W.target.checked;ze(pe?"matches":"default",ee.hostname,[ee.hostname,De,_e],[De])}}),J("alwaysTranslateSomeSiteOrWildSite")]}):Y?d("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[d("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!Y,onChange:W=>{let pe=W.target.checked;ze(pe?"matches":"default",De,[_e,ee.hostname,De],[ee.hostname])}}),J("alwaysTranslateSomeSiteOrWildSite")]}):null;return d("div",{children:[d("div",{class:"popup-container px-6 pt-6 max-content",children:[d("div",{class:"text-sm",children:[d("div",{class:"flex justify-between mb-3 items-center",children:[d("label",{class:"inline-block text-label",children:[J("popupSourceLanguage"),"\uFF1A"]}),d(On,{maxWidth:186,items:sn.map(W=>({label:Mt(W,f.interfaceLanguage),value:W,selected:W===T.sourceLanguage,onSelected:pe=>{D(pe.value)}}))})]}),f&&f.targetLanguage&&d("div",{class:"flex items-center justify-between mb-3",children:[d("label",{class:"inline-block text-label",children:[J("popupTarget"),"\uFF1A"]}),d(On,{maxWidth:186,items:At.filter(W=>W!=="auto").map(W=>({label:Mt(W,f.interfaceLanguage),value:W,selected:W===f.targetLanguage,onSelected:pe=>{A(nt=>({...nt,targetLanguage:pe.value}))}}))})]}),ve&&Yt.length>0&&d(Fe,{children:[d("div",{class:"flex items-center justify-between mb-3",children:[d("label",{class:"inline-block text-label",children:[J("popupService"),"\uFF1A"]}),d(On,{maxWidth:186,items:Yt.map(W=>({label:`${J("translationServices."+W.id)}${W.ok?"":" "+(" "+(!oe&&!Et&&W.providers&&W.providers.length>0?J("goLoginOrAction"):J("needAction")))}`,value:W.id,selected:W.selected,onSelected:pe=>{let nt=Yt.find(Be=>Be.id===pe.value);if(nt.ok){if(A(Be=>({...Be,translationService:nt.id})),c!="Translated")return;nt.props.length===0?setTimeout(()=>{M()},1):setTimeout(()=>{E()},1)}else A(Be=>({...Be,translationService:nt.id})),setTimeout(()=>{b()},100)}}))})]}),je&&ve.props.length>0&&ve.props.map((W,pe)=>d("div",{class:"pl-4 text-sm",children:d(Yl,{field:W,value:je[W.name],onChange:nt=>{A(Be=>{let Ie=Be.translationServices||{},Qn=Ie[ve.id]||{};return setTimeout(()=>{E()},1),{...Be,translationServices:{...Ie,[ve.id]:{...Qn,[W.name]:nt}}}})}},"field-"+pe)},"service"+pe))]}),ee&&d("div",{class:"flex items-center justify-between mb-3",children:[d("label",{class:"inline-block text-label",children:J("forThisSite")}),d(On,{maxWidth:186,items:[{label:J("default"),value:"default",selected:ie===!1&&ce===!1&&!Y&&!fe&&!Ee&&!Le,onSelected:()=>{ze("default",ee.hostname,[],[]);let W=ee.hostname,pe=T.localConfig.tempTranslationUrlMatches||[],nt=pe.filter(Ie=>Ie.match!==W),Be=!1;nt.length!==pe.length&&(Be=!0),Be&&k({...T.localConfig,tempTranslationUrlMatches:[...nt]})}},_e&&{label:J("alwaysTranslateSomeSite",{hostname:J("currentUrl")}),value:"matchesUrl",selected:Ee,onSelected:()=>{ze("matches",_e,[_e],[])}},{label:J("alwaysTranslateSomeSite",{hostname:ee.hostname}),value:"matches",selected:ie,onSelected:W=>{ze(W.value,ee.hostname,[ee.hostname,De,_e],[De])}},De&&{label:J("alwaysTranslateSomeSite",{hostname:De}),value:"matchesWild",selected:Y,onSelected:()=>{ze("matches",De,[_e,ee.hostname,De],[ee.hostname])}},_e&&{label:J("neverTranslateSomeSite",{hostname:J("currentUrl")}),value:"excludeMatchesUrl",selected:Le,onSelected:()=>{ze("excludeMatches",_e,[_e],[])}},{label:J("neverTranslateSomeSite",{hostname:ee.hostname}),value:"excludeMatches",selected:ce,onSelected:W=>{ze(W.value,ee.hostname,[ee.hostname,De,_e],[De])}},De&&{label:J("neverTranslateSomeSite",{hostname:De}),value:"excludeMatchesWild",selected:fe,onSelected:()=>{ze("excludeMatches",De,[ee.hostname,_e,De],[ee.hostname])}}].filter(Boolean)})]}),P&&ua()&&d("div",{class:"flex items-center justify-between mb-3",children:[d("label",{class:"inline-block text-label",children:[J("mouse-translate"),"\uFF1A"]}),d(On,{maxWidth:186,items:Ca.filter(W=>!(Ca.includes(f.generalRule.mouseHoverHoldKey)&&W==="OtherCustom")).map(W=>{let pe=J("mouseHoldKey",{key:W}),nt=Ca.includes(f.generalRule.mouseHoverHoldKey),Be=W===f.generalRule.mouseHoverHoldKey;return W==="Auto"?pe=J("mouseHoldKeyAuto"):W==="Off"?pe=J("mouseHoldKeyOff"):W==="OtherCustom"?pe=nt?J("mouseHoldKeyOther"):J("mouseHoldKeyCustomKey",{key:f.generalRule.mouseHoverHoldKey}):W==="Other"&&(pe=J("mouseHoldKeyOther")),nt||W==="OtherCustom"&&(Be=!0),{label:pe,value:W,selected:Be,onSelected:Ie=>{Ie.value==="Other"?b("#interface"):P(Ie.value)}}})})]})]}),d("div",{class:"",children:d("button",{class:"py-2 mt-1 mb-5 main-button ",onClick:()=>{bt?x&&x():N()},"aria-busy":c==="Translating",disabled:j||c==="Translating",children:Ze})}),d("div",{class:"text-sm",children:L}),d("div",{class:`pb-2 text-sm ${K?"":"display-none"}`,children:K}),d("div",{class:"flex items-center justify-between flex-wrap",children:[An?d(Ve,{}):C&&C!=="auto"?d("label",{for:"alwaysTranslateThisLanugage",class:"text-sm text-label text-overflow-ellipsis max-w-20",children:[d("input",{type:"checkbox",id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",checked:!!ge,onChange:W=>{let pe=W.target.checked;an(pe?"matches":void 0)}}),J("alwaysTranslateSomeLanguage",{language:Mt(C,f.interfaceLanguage,!1,!0)})]}):d("span",{}),d("div",{class:`flex flex-end flex-grow ${K?"display-none":""}`,children:d("span",{class:"immersive-translate-no-select muted text-sm",onClick:nu(7)(qa),children:["V",t,f.enabled?null:d("a",{href:"#",onClick:w,children:[" ","(",J("hasBeenDisabled"),")"]})]})})]})]}),d("footer",{children:[d("div",{class:"px-6 text-label",children:d(Jl,{isShowError:!1,request:r,setStorageBuildinConfig:s})}),d("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer text-label",children:[d("div",{class:"flex flex-row items-center justify-center secondary clickable",style:{width:70},onClick:Vt,children:[d($l,{}),d("span",{class:"ml-1",children:J("options")})]}),We?d("a",{title:J(oe?"popup.openProForPro":"popup.openPro"),target:"_blank",href:oe?Dr:W0,children:d("img",{src:oe?Qr:Ql})}):oe&&d("a",{title:J(oe?"popup.openProForPro":"popup.openPro"),target:"_blank",href:oe?Dr:W0,children:d("img",{src:oe?Qr:Ql})}),d(Vl,{label:J("more"),showArrow:!0,maxWidth:xe,onSelected:W=>{W.value==="openPremium"?(globalThis.open(Va),R()):W.value==="changeToOnlyTranslationMode"?nn("translation"):W.value==="changeToDualTranslationMode"?nn("dual"):W.value==="translateTheWholePage"?y():W.value==="translateToThePageEndImmediately"?S():W.value==="translateTheMainPage"?n():W.value==="showTranslationOnly"||(W.value==="translateLocalPdfFile"?_&&_():W.value==="translateLocalHtmlFile"?o&&o():W.value==="translateLocalSubtitleFile"?i&&i():W.value==="donate"?(globalThis.open(f.donateUrl),R()):W.value==="feedback"?(globalThis.open(f.feedbackUrl),R()):W.value==="options"?(b(),R()):W.value==="changeToTranslateTheWholePage"?Jn():W.value==="changeToTranslateTheMainPage"?ga():W.value==="about"?g():W.value==="toggleEnabled"?w():W.value==="openEbookViewer"?p():W.value==="openEbookBuilder"?l():W.value==="goPro"&&m())},menus:[f.translationMode==="dual"&&{label:"\u{1F524} "+J("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},f.translationMode==="translation"&&{label:"\u{1F521} "+J("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},f.translationArea==="main"&&{label:"\u{1F480} "+J("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},f.translationArea==="body"&&{label:"\u{1F4D6} "+J("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},{label:"\u26A1 "+ln,value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+J("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+J("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+J("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},!me()&&{label:"\u{1F310} "+J("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+J("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},oe===!1&&We&&{label:"\u{1F451} "+J("upgradeToPro"),value:"goPro"},{label:"\u2764\uFE0F "+J(We?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})]})]})}h();h();async function A3(e){try{let t=new Date;z.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await X.storage.local.set({[qg]:t.toISOString()}),await Qy(),me()||await k3()}catch(t){z.error("run cron task failed",t)}}async function Qy(){try{let e=await Nn(),t=await se({url:Ea}),n=e.buildinConfigUpdatedAt,a=new Date(n),r=t.buildinConfigUpdatedAt,o=new Date(r),u=t.minVersion,i=X.runtime.getManifest().version;Na(i,u)?o>a?(await X.storage.local.set({buildinConfig:t}),z.info(`sync remote rules success, latest: ${new Date(r).toLocaleString()}`)):z.debug(`no need to sync rules, latest: ${a}`):z.info(`local version is too old, please update to ${u} or later`)}catch(e){z.error("sync rules error: ",e)}}h();h();function Yi(){let e=new Date;return`${e.getFullYear()}-${e.getMonth()+1}-${e.getDate()}_${e.getHours()}-${e.getMinutes()}-${e.getSeconds()}`}h();async function Ua(){let e=["bingGlobalConfig","baiduGlobalConfig",Pg,xa];for(let t of e)await X.storage.local.remove(t);me()||await mp(),await il()}function S3(){return me()?Promise.resolve("0 B"):El()}h();h();var Vn=class{accessToken;constructor(t){this.accessToken=t}async listAll(){let t=[],n="";do{let{nextPageToken:a,files:r}=await this.list(n).catch(o=>{throw o});t.push(...r),n=a||""}while(n);return t}async getConfig(t){try{return await(await fetch(`https://www.googleapis.com/drive/v3/files/${t}?alt=media`,{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(n){return z.error("get config error, use default",n),{}}}async delete(t){await fetch(`https://www.googleapis.com/drive/v3/files/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${this.accessToken}`}})}findByName(t){return this.list(void 0,`name = '${t}'`)}uploadConfig(t,n=$u){let a=new Blob([JSON.stringify(t,null,2)],{type:"application/json"});return this.upload({name:n,parents:["appDataFolder"],mimeType:"application/json"},a)}updateConfig(t,n){let a=new Blob([JSON.stringify(n,null,2)],{type:"application/json"});return this.updateContent(t,a)}async upload(t,n){let a=new FormData;a.append("metadata",new Blob([JSON.stringify(t)],{type:"application/json; charset=UTF-8"})),a.append("file",n);let r=await fetch("https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart",{method:"POST",headers:{Authorization:`Bearer ${this.accessToken}`},body:a});return r.ok?await r.json():Promise.reject(r.text())}async list(t,n){let a=new URL("https://www.googleapis.com/drive/v3/files");t&&a.searchParams.append("pageToken",t),n&&a.searchParams.append("q",n),a.searchParams.append("spaces","appDataFolder"),a.searchParams.append("fields","files(id,name,createdTime,modifiedTime,size)"),a.searchParams.append("pageSize","100"),a.searchParams.append("orderBy","createdTime desc");try{return z.debug("list api:",a.toString(),this.accessToken),await(await fetch(a.toString(),{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(r){throw z.error("fetch google ip error",r),r}}async updateContent(t,n){return await(await fetch(`https://www.googleapis.com/upload/drive/v3/files/${t}?uploadType=media`,{method:"PATCH",headers:{Authorization:`Bearer ${this.accessToken}`},body:n})).text()}};h();h();function D3(e,t){let n=["https://www.googleapis.com/auth/drive.appdata"];return`https://accounts.google.com/o/oauth2/v2/auth?client_id=${Ku}&response_type=token&redirect_uri=${encodeURIComponent(t)}&scope=${encodeURIComponent(n.join(" "))}&state=${encodeURIComponent(JSON.stringify(e))}`}function L3(e){let t=e.match(/[#?](.*)/);return!t||t.length<1?null:{access_token:new URLSearchParams(t[1].split("#")[0]).get("access_token")}}async function Xl(e,t,n,a,r,o,u){if(z.debug(`autoSyncStrategy accessToken: ${e}`),t===null){z.debug("autoSyncStrategy settings is null");return}let i=new Vn(e);try{let s=(await i.findByName($u)).files;z.debug("files",s);let c=s[0]?.id,l=null;if(c&&(l=await i.getConfig(c).then(m=>({fileId:c,config:m}))),l){let{config:m,fileId:p}=l,f=m.updatedAt?new Date(m.updatedAt):new Date(0),g=t.updatedAt?new Date(t.updatedAt):new Date(0);if(z.debug("remoteUpdatedAt",f,"localUpdatedAt",g),f>g)z.debug("remote is newer, update local config",m),n(m),o&&o(!0);else if(f.getTime()===g.getTime())z.debug("remote and local are the same, do nothing"),o&&o(!1);else if(f{r.status!=200&&u("Token validation error"),r.json().then(i=>{i.aud&&i.aud===Xy?o(e):u("Token validation error")})})}return fetch(n).then(a)}function P3(e,t=!1){let n=ex;if(typeof window<"u"&&window.location.protocol.startsWith("http")){let r=window.location.hostname,o=window.location.port;n=`${window.location.protocol}//${r}${o?`:${o}`:""}/auth-done/`}return new ja(e,n).auth(t)}function ec(e,t=!1){return P3(e,t).then(n=>n.access_token||null)}var tx="https://oauth2.googleapis.com/revoke",ja=class e{CLASSNAME="GoogleAuth";_state;_redirectUrl;constructor(t,n){this._state=t,this._redirectUrl=n}static revoke(t){let n=`${tx}?token=${t}`;return fetch(n,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then(async a=>(await e.removeAuthInfo(),ko()&&globalThis.location.reload(),a))}static async getAuthInfo(){let t=await X.storage.local.get(xa);if(t[xa])return t[xa]}static async removeAuthInfo(){return await X.storage.local.remove(xa)}static setAuthInfo(t){return X.storage.local.set({[xa]:t})}async auth(t=!1){let n=await e.getAuthInfo();if(z.debug(this.CLASSNAME,"token from cache:",n),n&&n.access_token&&await M3(n.access_token).then(o=>!0).catch(o=>!1))return Promise.resolve(n);let a=D3(this._state,this._redirectUrl);return z.debug(this.CLASSNAME,"auth url: "+a),ko()?this.userscriptAuthWorkflow(a,t):this.extensionAuthWorkflow(a).then(r=>(e.setAuthInfo(r),r))}async userscriptAuthWorkflow(t,n){return n&&await X.storage.local.set({[So]:!0}),globalThis.open(t,"_self"),Promise.resolve({})}extensionAuthWorkflow(t){let n,a=!1;return new Promise((r,o)=>{let u=()=>{X.tabs.onUpdated.removeListener(i),X.tabs.onRemoved.removeListener(s)},i=(p,f,g)=>{if(z.debug(this.CLASSNAME,"create tab onUpdated: "+g.url),n===p){let y=new URL(g.url||""),w=L3(g.url);y.pathname.startsWith("/auth-done")&&w?.access_token&&(z.debug(this.CLASSNAME,"auth done: "+g.url),r({access_token:w.access_token}),a=!0,X.tabs.remove(p),u())}},s=(p,f)=>{z.debug(this.CLASSNAME,"create tab onRemoved: "+p),(p===n||!a)&&(u(),o(new Error("auth failed")))},c=Math.min(500,screen.availWidth),l=Math.min(650,screen.availHeight),m;X.windows===void 0?m=X.tabs.create({url:t}).then(p=>{n=p.id}):m=X.windows.create({url:t,type:"popup",width:c,height:l,left:Math.round((screen.width-c)/2),top:Math.round((screen.height-l)/2)}).then(p=>{n=p.tabs[0].id}),m.then(()=>{X.tabs.onUpdated.addListener(i),X.tabs.onRemoved.addListener(s)}).catch(p=>{z.debug(this.CLASSNAME,"create tab failed: "+p),o(p)})})}};function nx(e){let{t}=ue(),{accessToken:n,id:a,listAllFiles:r}=e,[o,u]=$(!1);function i(s,c){s.preventDefault(),u(!0),new Vn(n).delete(c).catch(l=>{Bt(t("delete"))}).then(()=>r()).finally(()=>u(!1))}return d("a",{href:"#",className:"secondary margin-left text-sm",onClick:s=>i(s,a),"aria-busy":o,children:t("delete")})}function tc(e){let{onClose:t,accessToken:n,authExpire:a}=e,{t:r}=ue(),[o,u,i,s]=ht(),[c,l]=$([]),[m,p]=$(!0),[f,g]=$(!1),[y,w]=$({});he(()=>{n&&S().then(()=>p(!1))},[n]);let b=E=>{E.target&&E.target.id==="immersive-translate-overlay"&&t()};function S(){return new Vn(n).listAll().then(T=>{l(T)}).catch(T=>a())}function D(E){if(E.preventDefault(),c.length>=10)return Bt(r("maxBackupFiles",{count:10}));g(!0);let T="immersive-translate-config-"+Yi()+".json";new Vn(n).uploadConfig(o,T).catch(v=>{Bt(r("uploadFail"))}).then(()=>S()).finally(()=>g(!1))}function N(E,T,v){E.preventDefault(),w({[v]:!0}),new Vn(n).getConfig(T).then(C=>{u(()=>({...C})),ut(r("importSuccess"))}).catch(C=>{z.error(C),Bt(r("importFail"))}).finally(()=>w({}))}function _(E,T){new Vn(n).getConfig(E).then(v=>{let C=document.createElement("a");C.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(JSON.stringify(v,null,2))),C.setAttribute("download",T),C.style.display="none",document.body.appendChild(C),C.click(),document.body.removeChild(C)}).catch(v=>{z.error("download google config file failed",v),Bt(r("downloadFail")+": "+v.message)})}function x(E){E.preventDefault(),u({...o,autoSync:!1}),ja.revoke(n).then(()=>t())}return d("dialog",{id:"immersive-translate-overlay",onClick:b,open:!0,children:d("article",{class:"md:w-[32rem] px-4",children:[d("a",{href:"#",title:r("clickToDownload"),"aria-label":"Close",className:"close","data-target":"modal-example",onClick:E=>{E.preventDefault(),t()}}),d("h4",{children:r("syncTitle")}),d("div",{className:"mb-4",children:c.map((E,T)=>d("div",{class:"flex flex-wrap justify-between",children:[d("div",{class:"mr-2 mb-2",children:[d("div",{children:d("a",{href:"#",onClick:v=>{v.preventDefault(),_(E.id,E.name)},class:"block truncate w-40 sm:w-auto",children:E.name.replace("immersive-translate-","")})}),d("div",{class:"text-xs text-gray-500",children:[new Date(E.modifiedTime).toLocaleString(),",\xA0",Go(parseInt(E.size))]})]}),d("div",{children:[d("a",{href:"#",role:"button",className:"margin-right secondary","aria-busy":y[T],disabled:y[T],onClick:v=>N(v,E.id,T),children:r("import_hint")}),d(nx,{accessToken:n,id:E.id,listAllFiles:S})]})]},"file"+T))}),d("div",{className:"flex items-center",children:[d("a",{href:"#",role:"button",className:"mr-4","data-target":"modal-example","aria-busy":f,onClick:D,disabled:m,children:r("create_new_backup")}),d("a",{href:"#",className:"secondary text-sm","data-target":"modal-example",onClick:x,disabled:m,children:r("revokeAuth")})]})]})})}var nc=z;function ax(){let[e,t]=$(null);return he(()=>{Ge().then(n=>{t(n)})},[]),e}function _3(){let[e,t]=$(null);return he(()=>{$n().then(a=>{t(a)})},[]),[e,a=>{t(a),yn(a)}]}function ac(){let[e,t,n,a,r]=ht(),o=ax(),{t:u,setLang:i}=ue(),[s,c]=_3();if(!o)return null;return d("div",{class:"pb-4",children:[d(l,{}),d(m,{}),d(p,{}),d(f,{config:o})]});function l(){let g=b=>{b.preventDefault(),confirm(u("confirmResetConfig"))&&(r({...tr(),updatedAt:new Date().toISOString()}),ka().catch(S=>{nc.error("clean local config error",S)}),Aa().catch(S=>{nc.error("clean buildin config error",S)}),Ua().catch(S=>{nc.error("clean cache error",S)}),ut(u("resetSuccess")),setTimeout(()=>{window.location.reload()},500))},y=b=>{t(()=>({...b}))},w=b=>{b.preventDefault();let S=document.createElement("input");S.setAttribute("type","file"),S.setAttribute("accept","text/plain"),S.style.display="none",document.body.appendChild(S),S.oninput=D=>{let N=D.target,_=new FileReader;_.onload=function(){try{let x=JSON.parse(_.result);y(x),ut(u("successImportConfig"))}catch(x){Bt(`Invalid JSON ${x.message}`)}},_.readAsText(N.files[0])},S.click(),document.body.removeChild(S)};return d(Fe,{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("import_export_title")})}),d("div",{class:"pb-2",children:[d("a",{class:"mr-2 secondary mb-2 !text-sm",onClick:w,href:"#",role:"button",children:[ix,u("import")]}),d("a",{href:"#",class:"secondary mr-2 mb-2 !text-sm",onClick:b=>{b.preventDefault();let S=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});To.saveAs(S,"immersive-translate-config-"+Yi()+".txt")},role:"button",children:[sx,u("export")]}),d("a",{href:"#",onClick:g,class:"secondary text-sm",children:u("reset")})]})]})}function m(){return d("details",{class:"mt-4 mb-6",children:[d("summary",{children:u("clickToExpandConfig")}),d("pre",{children:d("code",{children:JSON.stringify(e,null,2)})})]})}function p(){let[g,y]=$(!1),[w,b]=$(!1),[S,D]=$(!1),[N,_]=$("");he(()=>{if(ko()&&n){let k=localStorage.getItem(So);if(localStorage.removeItem(So),k){let P=globalThis.localStorage.getItem(I0);z.debug("import_export","rawAuthInfoStr",P);let O={},j={},B="";if(P){globalThis.localStorage.removeItem(I0);try{O=JSON.parse(P),j=O.state||{},B=O.access_token||""}catch(A){z.error("parse state error",A)}}if(B&&j&&(ja.setAuthInfo({access_token:B}),z.debug("import_export","Google OAuth:",O),O)){let A=O.state;z.debug("state",A),A?.mode==="auto"?(b(!0),R(B)):(D(!0),v(B))}}}},[n]);function x(){b(!0),ec({source:globalThis.location.href,mode:"auto"},!0).then(k=>{z.debug("import_export","Google OAuth:"+k),k!==null&&R(k)}).catch(k=>{k&&k.message==="tokenValidateErrorRedirectToAuthUrl"?z.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):C(k)})}function E(){D(!0),y(!1),ec({source:globalThis.location.href,mode:"manual"},!0).then(k=>{z.debug("import_export","Google OAuth:"+k),k!==null&&v(k)}).catch(k=>{k&&k.message==="tokenValidateErrorRedirectToAuthUrl"?z.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):C(k)})}function T(){_(""),x()}function v(k){_(k),D(!1),y(!0)}function C(k){b(!1),D(!1),y(!1),t({...e,autoSync:!1}),z.error("import_export","Google OAuth error:"+k),Bt(u("authFail"))}function R(k){b(!0),z.debug("sync latest with drive",k,e),_(k),Xl(k,e,P=>{P.interfaceLanguage&&i(P.interfaceLanguage),r(P)},P=>c({...s,lastSyncedAt:P}),P=>t({...e,updatedAt:P}),P=>{P?ut(u("successSyncConfig")):ut(u("successSyncButNoChange"))},P=>Bt(u("syncFail")+P)).finally(()=>{b(!1)})}function M(k){t({...e,autoSync:k.checked}),k.checked&&x()}return d(Fe,{children:[d("hgroup",{class:"my-2",children:[d("h5",{children:u("syncToCloud")}),d("h6",{class:"!text-sm",children:u("syncToCloudDescription")})]}),d("div",{children:[d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:k=>{k.preventDefault(),x()},"aria-busy":w,href:"#",role:"button",children:[w?d(Fe,{}):F3,u("syncToGoogleDrive")]}),d("a",{href:"#","aria-busy":S,onClick:k=>{k.preventDefault(),E()},class:"secondary text-sm",children:u("backupToCloud")})]}),d("div",{class:"text-xs text-gray-500",children:s?.lastSyncedAt&&u("lastSyncedAt",{date:new Date(s.lastSyncedAt).toLocaleString()})}),s?.lastSyncErrorMessage&&d("p",{class:"mt-2 text-xs text-red-500"}),g?d(tc,{onClose:()=>y(!1),authExpire:T,accessToken:N}):null]})}function f({config:g}){let y=B3(),[w,b]=$(!1),[S,D]=$(""),[N,_]=$(""),[x,E]=$(null),{t:T}=ue();if(!y||!y.token)return null;async function v(){try{if(w)return;b(!0),_("");let M=await Ji(y?.token,e,r),k="";switch(M){case"upload":{k=T("successSyncConfigToAccount");break}case"override":{k=T("successSyncConfigInAccount");break}default:k=T("syncConfigNoUpdate")}D(k)}catch(M){D(""),_(M.message)}finally{b(!1)}}let C=M=>{c({...s,proAutoSync:M})},R=s&&s.proAutoSync!==void 0?s.proAutoSync:!0;return d(Fe,{children:[d("hgroup",{class:"my-2 mt-4",children:[d("h5",{children:T("syncToAccount")}),d("h6",{class:"!text-sm",children:T("syncToAccountDescription")})]}),d("fieldset",{class:"my-4",children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onChange:()=>{C(!R)},checked:R}),T("enableAutoSyncUserSettings")]})}),d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:M=>{M.preventDefault(),v()},"aria-busy":w,href:"#",role:"button",children:[F3," ",T("syncToAccountButton")]}),N?d("p",{class:"text-xs text-red-500",children:N}):d("p",{class:"text-xs text-gray-500",children:S||s?.accountLastSyncedAt&&T("lastSyncedAt",{date:Lp(s.accountLastSyncedAt)})})]})}}async function Ji(e,t,n){try{if(t===null)return"noupdate";let a=await ox(e),r=await $n();r.accountLastSyncedAt=Date.now(),z.debug("settings",t),z.debug("local settings.updatedAt",t.updatedAt),z.debug("remote settings.updatedAt",a.updatedAt),z.debug("last synced at",r.accountLastSyncedAt);let o=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(o=!0),!o&&t.updatedAt>a.updatedAt&&(o=!0),z.debug("isUpload",o),o)return await ux(e,t),await yn(r),"upload";let u=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(u=!0),!u&&t.updatedAt0&&Xe.remove(ct),a}}function En(e,t){let n=B3(),[a,r]=_3();he(()=>{!n||!n.token||a&&a.proAutoSync===!1||rx(n)&&Ji(n.token,e,t)},[e,n])}function rx(e){return Xt(e)?!0:new Date(e.createTime){Xe.get(ct,null).then(n=>{t(n)})},[t]),e}function ox(e){return(location.href?.indexOf("popup.html")>0?Pn:se)({responseType:"json",url:Bo+"/v1/user/settings",method:"get",headers:{token:e}}).then(n=>n.data)}function ux(e,t){return(location.href?.indexOf("popup.html")>0?Pn:se)({responseType:"json",url:Bo+"/v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(a=>a.data)}var F3=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",children:d("path",{fill:"currentColor",d:"M15.375 19.25q-.525.25-.95-.038q-.425-.287-.425-.937q0-.25.163-.487q.162-.238.412-.363q1.575-.75 2.5-2.225T18 11.95q0-1.125-.425-2.188Q17.15 8.7 16.25 7.8L16 7.55V9q0 .425-.287.712Q15.425 10 15 10t-.712-.288Q14 9.425 14 9V5q0-.425.288-.713Q14.575 4 15 4h4q.425 0 .712.287Q20 4.575 20 5t-.288.713Q19.425 6 19 6h-1.75l.4.35q1.225 1.225 1.788 2.662Q20 10.45 20 11.95q0 2.4-1.25 4.362q-1.25 1.963-3.375 2.938ZM5 20q-.425 0-.713-.288Q4 19.425 4 19t.287-.712Q4.575 18 5 18h1.75l-.4-.35q-1.225-1.225-1.788-2.662Q4 13.55 4 12.05q0-2.4 1.25-4.363Q6.5 5.725 8.625 4.75q.525-.25.95.037q.425.288.425.938q0 .25-.162.487q-.163.238-.413.363q-1.575.75-2.5 2.225T6 12.05q0 1.125.425 2.187Q6.85 15.3 7.75 16.2l.25.25V15q0-.425.288-.713Q8.575 14 9 14t.713.287Q10 14.575 10 15v4q0 .425-.287.712Q9.425 20 9 20Z"})}),ix=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zm10-5.828L19.071 7.1l1.414 1.414L12 17 3.515 8.515 4.929 7.1 11 13.17V2h2v11.172z"})]}),sx=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zM13 5.828V17h-2V5.828L4.929 11.9l-1.414-1.414L12 2l8.485 8.485-1.414 1.414L13 5.83z"})]});function oc(e){let{onClose:t}=e,[n,a]=$("Original"),[r,o,u,i]=ht(()=>{setTimeout(()=>{D("updateGlobalContext",!1)()},250)});En(r,o);let[s,c]=$(null),[l,m]=$(globalThis.location.href),[p,f]=$("auto"),[g,y]=$(null),w=j=>{a(j.detail)},b=j=>{f(j);let B=x3(l,j,s.sourceLanguageUrlPattern);o(A=>({...A,sourceLanguageUrlPattern:B})),xn(j)},S=()=>{m(globalThis.location.href)};he(()=>(document.addEventListener(Yu,w,!1),Nn().then(j=>{c(j);let B=Dt();f(B);let A=tt();a(A),A3(j.interval)}),document.addEventListener("urlChange",S),()=>{document.removeEventListener("pageTranslatedStatus",w),document.removeEventListener("urlChange",S)}),[]),he(()=>{Nn().then(j=>{c(j)})},[r]),he(()=>{l&&s&&Lt({url:l,config:s}).then(j=>{y(j)})},[l,s]);let D=(j,B,A={})=>()=>{Yr({method:j,data:A||{}}),B&&t()},N=()=>{t()},_=()=>{o(j=>({...j,enabled:!j.enabled})),setTimeout(()=>{N()},50)},x=()=>{rc(),setTimeout(()=>{N()},50)},E=()=>{rc(),setTimeout(()=>{N()},50)},T=(j="")=>{Xr(!0,j),setTimeout(()=>{t()},50)},v=()=>{Xi(tm),setTimeout(()=>{globalThis.close()},50)},C=()=>{Zi(),setTimeout(()=>{t()},50)},R=()=>{es(),setTimeout(()=>{t()},50)},M=()=>{I3(),setTimeout(()=>{t()},50)},k=()=>{ts(),setTimeout(()=>{t()},50)},P=()=>{O3(),setTimeout(()=>{t()},50)},O=j=>{o(B=>({...B,generalRule:{...B.generalRule,mouseHoverHoldKey:j}}))};return!s||!g?null:d(Zl,{openEbookViewerPage:R,openEbookBuilderPage:k,onSwitchTranslationMode:j=>{D("switchTranslationMode",!0,{mode:j})()},onTranslateLocalHtmlFile:M,onTranslateLocalSubtitleFile:P,request:se,onClose:N,onToggleEnabled:_,onTranslateTheWholePage:D("translateTheWholePage",!0),openOptionsPage:T,openPricingPage:v,onToggleTranslate:D("toggleTranslatePage",!0),onTranslateTheMainPage:D("translateTheMainPage",!0),ontranslateToThePageEndImmediately:D("translateToThePageEndImmediately",!0),onTranslatePage:D("translatePage",!0),onRestorePage:D("restorePage",!1),onTranslatePdf:x,openAboutPage:C,onTranslateLocalPdfFile:E,onSetPageLanguage:b,onUserConfigChange:o,config:s,pageStatus:n,ctx:g,currentUrl:l,currentLang:p,onSetLocalConfig:Qi,onSetBuildinConfig:R3,onMouseTriggerChanged:O})}function lx(e,t){for(let n of t){if(me()&&!Ja()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}var uc={position:"right",right:0,top:335},Kt={...uc},rs=!1,ar=null,Yn=null,os=null,ic=null,eo=null,sc=null,N3=6,ns,as,j3=null,z3=null;async function H3(){let e=Ke();sc=await K3(),Kt=sc.pagePopupConfig||Kt;let t=document.createElement("div");t.id="immersive-translate-popup",t.setAttribute("style","all: initial"),document.documentElement.appendChild(t);let n=t.attachShadow({mode:"open"});ic=n;let a=[e.IMMERSIVE_TRANSLATE_PICO_CSS,e.IMMERSIVE_TRANSLATE_COMMON_CSS,e.IMMERSIVE_TRANSLATE_POPUP_CSS,e.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);lx(n,[a]);let r=document.createElement("div");r.innerHTML=e.IMMERSIVE_TRANSLATE_POPUP_HTML,n.appendChild(r),ar=n.querySelector("#immersive-translate-popup-container");let u=n.querySelector("#immersive-translate-popup-btn");Yn=u,os=n.querySelector("#mount"),ar.setAttribute("style",lc(Kt)),mc(),u.addEventListener("mousedown",q3),u.addEventListener("touchstart",gx),globalThis.addEventListener("resize",s=>{ar.setAttribute("style",lc(Kt))})}function cx(){Wa(null,os),os.style.display="none",Yn.style.display="block",eo=setTimeout(()=>{mc(!0)},2e3)}function U3(e){let t=e.querySelector("#mount"),n=()=>{cx()},a=r=>{r&&r.target&&r.target.id==="immersive-translate-popup-overlay"&&n()};(async()=>{let r=await Nn();Wa(d(ii,{lang:r.interfaceLanguage,fallbackLang:"zh-CN",translations:Vr,children:d("div",{onClick:a,id:"immersive-translate-popup-overlay",class:"immersive-translate-popup-overlay",children:d("div",{class:"immersive-translate-popup-wrapper",style:dx(),children:d(oc,{onClose:n})})})}),t)})().then(()=>{Yn.style.display="none",os.style.display="block"})}function dx(){let e=cc(),t=e.height,{position:n,top:a,left:r}=Kt,o={position:"fixed"},u=300,i=300,s=100;return kg()&&(n=uc.position,a=uc.top),n==="right"||n==="left"?(o.top=a-s,o.top+u>=t?(o.bottom=30,delete o.top):o.top<=10&&(o.top=10),n==="right"?o.right=0:n==="left"&&(o.left=0)):(n==="top"||n==="bottom")&&(o.left=r-s,o.left+i>=e.width?(o.right=0,delete o.left):o.left<=10&&(o.left=0),n==="top"?o.top=0:n==="bottom"&&(o.bottom=0)),o}function cc(){return{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}function q3(e){z3=ar.getAttribute("style"),ns=e.pageX,as=e.pageY,eo&&clearTimeout(eo),rs=!1,Yn.style.opacity="1",Yn.style.transform="none",j3=Yn.getAttribute("style"),globalThis.addEventListener("mousemove",dc),globalThis.addEventListener("mouseup",gc),globalThis.addEventListener("touchmove",W3),globalThis.addEventListener("touchend",us),globalThis.addEventListener("touchcancel",us)}function gx(e){e.preventDefault&&e.preventDefault(),q3(e.changedTouches[0])}function W3(e){dc(e.changedTouches[0])}function us(e){e.preventDefault&&e.preventDefault(),gc(e.changedTouches[0])}function dc(e){e.preventDefault&&e.preventDefault(),rs=!0,ar.setAttribute("style",`left:${e.clientX}px;top:${e.clientY}px;transform:scale(1.6);`)}function gc(e){e.preventDefault&&e.preventDefault(),px(),eo&&clearTimeout(eo),ns=ns||0,as=as||0;let t=Math.abs(e.pageX-ns),n=Math.abs(e.pageY-as);t{mc(!0)},2e3)}function mc(e=!1){Yn.style.opacity="0.4";let t="";Kt.position==="left"?t="translateX(-40%)":Kt.position==="right"?t="translateX(40%)":Kt.position==="top"?t="translateY(-40%)":Kt.position==="bottom"&&(t="translateY(40%)"),Yn.style.transform=t,e&&(Yn.style.transition="transform 0.2s ease-in-out, opacity 0.2s ease-in-out")}function px(){globalThis.removeEventListener("mousemove",dc),globalThis.removeEventListener("mouseup",gc),globalThis.removeEventListener("touchmove",W3),globalThis.removeEventListener("touchend",us),globalThis.removeEventListener("touchcancel",us)}function lc(e){let t=fx(e);return Object.keys(t).map(n=>typeof t[n]=="number"?`${n}:${t[n]}px;`:"").join("")}function fx(e){let{position:t,...n}=e,a=cc(),r={};return t==="left"?(r.left=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="right"?(r.right=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="top"?(r.top=0,n.left>a.width?r.left=a.width-100:r.left=n.left):t==="bottom"&&(r.bottom=0,n.left>a.width?r.left=a.width-100:r.left=n.left),r}var $3=!1;async function G3(){$3||($3=!0,H3().catch(e=>{z.error("init popup error",e)}))}var V3=!1,Z3=[()=>{Ue.unbind()}],fc=[...Z3],hx=Ft(async()=>{await Xr()},50),bx=Ft(async()=>{await Zi()},50),yx=Ft(async()=>{await ts()},50),xx=Ft(async()=>{await es()},50),X3=Ft(e=>{Yr({method:e,data:{trigger:"userscript_menu"}})},50),Tx=Ft(()=>{is();let e=new CustomEvent(Ta,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},200),Ex=Ft(()=>{cs();let e=new CustomEvent(Ta,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},200),Cx=Ft(()=>{ls();let e=new CustomEvent(Ta,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},200);function vx(e,t){let n=e.document;if(V3)return;if(V3=!0,me()||sf(),n.addEventListener("securitypolicyviolation",Rx),document.addEventListener(be+"DocumentMessageUser",rf),document.addEventListener(be+"DocumentMessageUpdateUser",of),document.addEventListener(be+"ChangeSuccessService",uf.bind(null,t)),document.addEventListener(Vu,Fx.bind(null,t)),n.addEventListener(be+"EbookLoaded",Bx),n.addEventListener(_g,_x),n.addEventListener(Bg,Ix.bind(null,t)),n.addEventListener("click",r=>{Sx(r,t)}),me()&&(globalThis.top!=globalThis.self?e.addEventListener("message",Ax,!1):n.addEventListener(Ta,wx)),globalThis.top===globalThis.self){let r=Pa.rootIframe(ti);r.handleAsk("getRateLimitDelay",h3),r.handleAsk("throttleRequest",b3)}}function ef(e,t){Ox(),vx(t,e);let n=t.document,a=kx.bind(null,e);e.rule.fingerCountToToggleTranslagePageWhenTouching>=2&&n.addEventListener("touchstart",a),fc.push(()=>{n.removeEventListener("touchstart",a)}),me()&&globalThis.top===globalThis.self&&(Wl(e.config),Nx(e.config)),ot()&&Wl(e.config)}function wx(e){G3()}function Ax(e){let t=e;t&&t.data&&t.data.payload&&t.data.author===Gu&&Jr(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})}function kx(e,t){let n=t;n.touches.length==e.rule.fingerCountToToggleTranslagePageWhenTouching?Tx():n.touches.length===e.rule.fingerCountToToggleTranslationMaskWhenTouching?Cx():n.touches.length===e.rule.fingerCountToToggleTranslagePageOnlyTranslationWhenTouching&&Ex()}function Sx(e,t){let n=e.target;if(!n||!n.getAttribute){pc(n);return}let a=n.getAttribute("data-immersive-translate-event");a&&et(a,[{name:a}],{...t,sourceLanguage:"none"});let r=n.getAttribute(`data-${Z}-action`);if(r)if(r==="retry"){e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),ss(),pc(n,!0);return}else if(r=="toast-error"){let o=n.getAttribute(`data-${Z}-tooltip-text`);hc(nf.bind(null,t,o||""))}else r=="close-search"&&(e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),hc(Mx.bind(null,t)));pc(n)}async function Y3(e=!1){let t=document.querySelector(`.${Z}-search-recomend`);if(!t||(t.remove(),!e))return;let n=await vn();n.generalRule||(n.generalRule={}),n.generalRule.enableSearchEnhancement=!1,await Cn(n)}async function Dx(){let e=await vn(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,a=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(a=e.translationUrlPattern.matches||[]),!n&&a.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await Cn(e)}async function Lx(){let e=await vn(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await Cn(e)}var J3=0;function hc(e){let t=Date.now();if(t-J3<2e3)return;J3=t;let n=`${Z}-modal`,a=document.querySelector(`.${n}`);if(a?.style.display=="block")return;let r=`${Z}-modal-title`,o=`${Z}-modal-body`,u=`${Z}-modal-footer`;if(a){let i=a.querySelector(`.${r}`),s=a.querySelector(`.${u}`),c=a.querySelector(`.${o}`);e(a,i,c,s)}else{a=document.createElement("div"),a.className=n+" notranslate",a.id=n;let i=document.createElement("div");i.className=Z+"-modal-content notranslate",a.appendChild(i);let s=document.createElement("span");s.textContent="\xD7",s.className=Z+"-close",i.appendChild(s);let c=document.createElement("div");c.className=r+" notranslate",i.appendChild(c);let l=document.createElement("div");l.className=o+" notranslate",i.appendChild(l);let m=document.createElement("div");m.className=u,i.appendChild(m),document.body.appendChild(a),s.onclick=function(){a.style.display="none"},window.onclick=function(p){p.target==a&&(a.style.display="none")},e(a,c,l,m)}setTimeout(()=>{Px()},100)}function Mx(e,t,n,a,r){let o=tf.bind(null,e);n.innerHTML=`
${Vi} ${o("disableConfirm")}
`,a.innerHTML="";let u=document.querySelector(`div[data-${Z}-cancel-desc]`),i=document.createElement("p");i.innerHTML=u?Ne.sanitize(u.textContent||""):Ne.sanitize(o("searchEnhancementNotes")),i.style.cssText="margin-bottom:12px",a.appendChild(i);let s=[{id:"enable-search-enhancement",value:"enable",text:o("enableSearchEnhancement")},{id:"disable-once",value:"once",text:o("disableOnce")},{id:"disable-global",value:"global",text:o("disableGlobal")}];for(let f=0;f${o("option")}`})),a.appendChild(c);let l=a.querySelector(`.${Z}-open-enhancement`);l&&(l.onclick=function(){lf(!0)});let m=document.createElement("button");m.innerText=o("closeModal"),m.className=`${Z}-btn ${Z}-cancel-btn`;let p=document.createElement("button");p.className=`${Z}-btn`,p.innerText=o("saveSettings"),r.innerHTML="",r.appendChild(m),r.appendChild(p),m.onclick=function(){t.style.display="none"},p.onclick=function(){let f=a.getElementsByTagName("input"),g="";for(let y=0;y
1. \u5207\u6362\u5230 ${o} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458`:i+=`

\u5982\u679C\u60A8\u6709\u7591\u95EE\uFF0C\u8BF7\u8054\u7CFB support@immersivetranslate.com`,hc(nf.bind(null,e,i))}catch(a){z.warn("parse message error",a)}}function _x(e){let t=e;if(z.debug("receive third party message",t),t&&t.detail)try{let n=JSON.parse(t.detail);n&&n.type&&(n.type==="retryFailedParagraphs"?Ux({method:"retryFailedParagraphs"}):n.type==="updateCommands"?cf(n.data):n.type==="toggleEnableDefaultAlwaysTranslatedUrls"?Dx():n.type==="toggleEnableInputTranslation"?Lx():X3(n.type))}catch(n){z.warn("parse message error",n)}}function Bx(e){setTimeout(()=>{af()},10)}function Rx(e){Ce.HAS_CSP_ERROR="1"}function Ix(e,t){let n=event.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&et(n.name,[{name:n.name}],{...e})}function Ox(){fc.forEach(e=>{e()}),fc=Z3}function Nx(e){if(me()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=pi.commands,r=[...Object.keys(t).filter(o=>o==="toggleTranslatePage").map(o=>{let u=t[o].description,i=u;return u.startsWith("__MSG_")&&u.endsWith("__")&&(i=Oa(`browser.${u.slice(6,-2)}`,e.interfaceLanguage)),{id:o,title:i}}),{id:Lo,title:Oa("browser.openEbookViewer",e.interfaceLanguage),key:"e"},{id:Mo,title:Oa("browser.openEbookBuilder",e.interfaceLanguage),key:"m"},{id:Do,title:Oa("browser.openOptionsPage",e.interfaceLanguage),key:"o"},{id:O0,title:Oa("browser.openAboutPage",e.interfaceLanguage),key:"a"}];for(let o of r)GM.registerMenuCommand(o.title,()=>{o.id===Do?hx():o.id===O0?bx():o.id===Mo?yx():o.id===Lo?xx():X3(o.id)},o.key)}}function Ux(e){Jr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{z.error("send content message request failed",e,n)});let t=new CustomEvent(Ta,{detail:e});globalThis.document.dispatchEvent(t)}h();var rr={};async function bc(){let t=[...document.querySelectorAll(".source-text")].map(a=>a.textContent).join(""),n=await it({text:t,minLength:200,pageLangs:[Za(),"en"]});return xn(n),n}async function df(e){Wt("Translating");let t=Dt(),n=Ni(),a=[...document.querySelectorAll(".source-text")];if(Mi(e,t))return;let r=a.filter(o=>o.innerText?.trim()).map((o,u)=>{let i=o.parentElement?.parentElement?.querySelector(".target-text");return ft(o,"id",u+""),i&&(Ur(i,u)?.remove(),i.appendChild(Qo(e,u))),{text:o.innerText||"",id:u,from:t,to:e.targetLanguage,url:"https://google.com",fromByClient:n}});document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await Ia({sentences:r},e,(o,u,i)=>{let s=i.id,c=Ur(document.body,s);if(!c)return;let l=c.parentElement;l&&(c.remove(),o?(l.innerHTML=Ne.sanitize(`${o.message}`),rr[s]={ok:!1,sentence:i}):u&&(l.innerHTML=Ne.sanitize(u.text),rr[s]={ok:!0,sentence:i}),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!o}})})))})}catch(o){throw o}finally{Wt("Translated")}}async function gf(e){Wt("Translating"),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(rr),n=[],a=[];for(let r of t){let o=rr[r];if(!o.ok){let i=document.querySelector(`#error-id-${r}`);if(i){let s=i.parentElement;i.remove(),s&&(delete rr[r],s.appendChild(Qo(e,r)),a.push(o.sentence))}}}try{await Ia({sentences:a},e,(r,o,u)=>{let i=u.id,s=Ur(document.body,i);if(!s)return;let c=s.parentElement;c&&(s.remove(),r?(c.innerHTML=Ne.sanitize(`${r.message}`),rr[i]={ok:!1,sentence:u}):o&&(c.innerHTML=Ne.sanitize(o.text),rr[i]={ok:!0,sentence:u}),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!r}})})))})}catch(r){throw r}finally{Wt("Translated")}}function yc(){Wt("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}h();var xc={};async function mf(){let e=[...document.querySelectorAll("iframe")],t="";for(let a of e){let r=a.contentDocument;if(!r)continue;let o=r.body;if(o&&(t=t+o.innerText||"",t.length>1e3))break}let n=await it({text:t,pageLangs:["en"]});return xn(n),n}async function pf(e){Wt("Translating"),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(xc),n=[];for(let a of t){let r=xc[a];if(r.error){let u=r.commonAncestorContainer.querySelector(`[${Ju}='${a}']`);u&&u.remove(),n.push(r)}}try{await Hi(n,e,e.config.translationMode)}catch{}finally{Wt("Translated")}}function ff(){let e=[...document.querySelectorAll("iframe")];for(let t of e){let n=t.contentDocument;if(!n)continue;let a=n.querySelectorAll("."+un);for(let r of a)r.remove()}Wt("Original")}async function hf(e){Wt("Translating");let t=Fn(),n=[...document.querySelectorAll("iframe")],a=[],r=[];for(let i of n){let s=i.contentDocument;if(!s)continue;wa(s,e);let c=s.body;if(!c)continue;let l=Tn(e);l.isModifyImage=!1,_a({id:t,container:c,filterRule:l,onParagraph:m=>{a.push(m)}})}let o=Li(e.config.translationServices[e.translationService]?.placeholderDelimiters),u=1;for(let i of a){let s=Ui(i.flatNodes,{isPreWhitespace:i.isPreWhitespace||!1,delimiters:o,stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(l=>l.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)});if(!s)continue;i.variables=s?.variables||{},i.text=s?.text,i.id=(u++).toString();let c=await Nl(i,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:o,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});c&&(r.push(c),xc[c.id]=c)}a=[],document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await Hi(r,e,e.config.translationMode)}catch{}finally{Wt("Translated")}}h();var jx=new AbortController,{signal:zx}=jx,wc=0,Ac=0,Tc=!1,Ec=0,au=!1,or,bf=0,ur=[];function ds(e,t){Hx();let n=e,a=n.config,r=a.generalRule.mouseHoverHoldKey==="Off",o=a.generalRule.mouseHoverHoldKey==="Auto",u=Ft(l=>{if(Tc==!1&&Math.abs(l.clientX-wc)+Math.abs(l.clientY-Ac)>3&&(Ec<2?Ec+=1:Tc=!0),wc=l.clientX,Ac=l.clientY,o||au&&!or){let m=Cf(n.rule,t);if(m){if(kc(m))return;xf(n,m)}}},o?700:300),i=l=>{let m=l.target;kc(m)||xf(n)},s=l=>{let m=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=Ue.getPressedKeyCodes();if(p.length>1&&Ue[m]&&(bf=Date.now(),au=!1),p.length===1&&Ue[m]){let f=Date.now();au=!0,or&&clearTimeout(or),or=setTimeout(()=>{let g=bf-f;g>0&&g<=150?au=!1:i(l),or=void 0},150)}};if(ur.push(()=>{or&&clearTimeout(or)}),r)return;Cc("mousemove",u,t),ur.push(()=>{t.removeEventListener("mousemove",u)});function c(){Tc=!1,Ec=0,u.cancel()}if(o)Cc("blur",c,t),ur.push(()=>{t.removeEventListener("blur",c)});else{let l=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",m=["ctrl","alt","shift","cmd","command","option","control"];Cc("keyup",yf,t),ur.push(()=>{t.removeEventListener("keyup",yf)}),m.includes(l)?Ue("*","mouseHover",s):Ue(a.generalRule.mouseHoverHoldKey,"mouseHover",i),Ue.setScope("mouseHover"),ur.push(()=>{Ue.deleteScope("mouseHover")})}}function Hx(){ur.forEach(e=>e()),ur=[]}function yf(e){au=!1}function Cc(e,t,n=window){return n.addEventListener(e,t,{signal:zx})}function xf(e,t,n=window){if(t=t||Cf(e.rule,n),!t){z.debug("can not find selection part!");return}if(kc(t)){z.debug("exclude dom");return}i3(e,t);let a=Ki();a?.currentUrl!==window.location.href&&(ca(),Hl(e)),a&&(a.setupMouseHoverListener=ds);let r=Tn(e);r.excludeSelectors=[],r.selectors=[];let o=!1;_a({id:a.id,container:t,filterRule:r,force:!0,onParagraph:u=>{Xo(a,u,!0).then(i=>{if(i&&!o){o=!0;let s=Date.now();$e(Og,s),et("mouse_hover_translate",[{name:"mouse_hover_translate"}],{...e,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function Cf(e,t){return qx(wc,Ac,e,t)}function qx(e,t,n,a){let r=mm(e,t,n,a);if(r==null)return;let o=()=>{let s=a.document.elementFromPoint(e,t);if(!s)return;let c=pm(s,e,t);return c===s?s.nodeName==="BUTTON"?s:void 0:Ef(c,n)},u=()=>{try{r.setStartBefore(r.startContainer),r.setEndAfter(r.startContainer)}catch(c){z.debug("get mouse over word fail",c)}let s=r.getBoundingClientRect();if(!(s.left>e||s.rightt||s.bottomn[l]=[l,...n[l]||[]]);let a=t.inputStartingTriggerKeyAlias[t.inputStartingTriggerKey]||[];a.includes(t.inputStartingTriggerKey)||a.unshift(t.inputStartingTriggerKey),n[t.inputTargetLanguage]=[...a,...n[t.inputTargetLanguage]];let r=t.inputTrailingTriggerKeyTimeout;fn().any&&(r=t.inputTrailingMobileTriggerKeyTimeout);let o={triggerTimes:t.inputTrailingTriggerKeyRepeatTimes,triggerKey:t.inputTrailingTriggerKey,triggerTimeout:r,codePrefix:t.inputStartingTriggerKey,codeAlias:n,flatAlias:Object.values(n).flat(),codePrefixAlias:t.inputStartingTriggerKeyAlias},u=0,i=Date.now();gs&&self.removeEventListener("keydown",gs),gs=s,self.addEventListener("keydown",gs);function s(l){if(to||ms===!1)return;let m=l,p=m.target||m.srcElement,f=p?.tagName;(p?.isContentEditable||f=="INPUT"||f=="SELECT"||f=="TEXTAREA")&&(iT(l,o.triggerKey,o.codePrefixAlias)?c(l):u=0)}async function c(l){Date.now()-i=o.triggerTimes&&Vx()&&(u=0,Gx(l,e,o))}sT(e)}function Wx({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let a=[],r=n[e]||[];r.includes(e)||r.unshift(e);for(let o of r){let u=t.map(i=>{let s=o+i;return r.includes(i)||(s+=" "),s});a.push(...u)}return new RegExp(a.join("|"))}function wf(e,t){for(let[n,a]of Object.entries(t))if(a.includes(e))return n;return""}var no;function Kx(e){let t=e.parentElement;if(!t)return;no=document.createElement("div"),no.className=Z+"-input",no.innerHTML=`
`,t.appendChild(no);let n=t,a=!1;do{let r=getComputedStyle(n).position;if(["fixed","absolute","relative"].includes(r)){a=!0;break}n=n.parentElement}while(n);if(n=t,!a)do{if(getComputedStyle(n).position==="static"){n.style.position="relative";break}n=n?.parentElement||null}while(n)}function $x(){no&&no.remove()}async function Gx(e,t,n){if(!to)try{let p=function(){i=t.config.inputTargetLanguage;let g=u.split(" ")[0];g&&g[0]&&(g=g[0].toLowerCase()+g.slice(1)),g.trim()&&n.flatAlias.includes(g)?(i=wf(g,n.codeAlias),o=u.slice(g.length+1)):o=u},f=function(){i="";let g=Wx(n),y=u.split(g);if(y.length<2)return;if(o=y[y.length-1],r=y[0],y.length>2){let b=u.lastIndexOf(o),S=u.slice(0,b).lastIndexOf(y[y.length-2]);r=u.slice(0,S+y[y.length-2].length)}if(r.endsWith(n.codePrefix))return;let w=u.slice(r.length+1,u.indexOf(o)).trim();if(i=wf(w,n.codeAlias),!i){z.warn("not found alias",w);return}},a=document.activeElement;to=!0;let r="",o="",u=ao(a)||"",i=t.config.inputTargetLanguage;n.codePrefix==="none"?p():(f(),!i&&t.config.enableInputTranslationWithoutTriggerKey&&p());let s=Jx(o,n),c=await it({text:s,pageLangs:["en"]});z.debug("translateContent",s,c);let l={text:s||"",id:0,from:c,to:i,url:"https://google.com",fromByClient:c};if(!l.text)return;if(t.config.isShowInputTranslationConsent&&!vf){vf=!0;let g=await lT(t);if(e.target&&e.target.focus(),g==="open_settings"){Xr(!0,"#input");return}else if(g==="open_learn_more"){Xi("https://immersivetranslate.com/docs/input/");return}else if(g==="disable_once"||g==="disable_forever"){if(ms=!1,g==="disable_forever"){let y=await vn();y.enableInputTranslation=!1,y.isShowInputTranslationConsent=!1,await Cn(y)}else if(g==="disable_once"){let y=await vn();y.isShowInputTranslationConsent=!1,await Cn(y)}return}else if(g==="close_disable_once"||g==="close_disable_forever"){if(ms=!1,g==="close_disable_forever"){let y=await vn();y.enableInputTranslation=!1,y.isShowInputTranslationConsent=!1,await Cn(y)}return}else if(g==="enable"){let y=await vn();y.enableInputTranslation=!0,y.isShowInputTranslationConsent=!1,await Cn(y)}else if(g==="close_enable"){let y=await vn();y.enableInputTranslation=!0,await Cn(y)}}Kx(a),$e(N0,Date.now());let m=await la(l,{...t,translationService:t.inputTranslationService});uT(t),oT(a,r+m.text),to=!1}catch(a){throw to=!1,a}finally{to=!1,$x()}}function Vx(){let e=document.activeElement;if(!e)return!1;if(ps(e)){let t=e.selectionStart||0,n=e.value.length,r=e.value.split(` +`).reverse()[0].trim(),o=n<=t;return z.debug("cursorPosition",t,"textLength",n),z.debug("input isTail",o,"tailHasText",r),o&&!!r}else{let t=window.getSelection();if(!t)return z.debug("No active selection found."),!1;if(t.rangeCount>0){let n=t.getRangeAt(0),a=n.startContainer;if(a.nodeType===Node.TEXT_NODE){let r=Yx(a,e);z.debug("Current text node:",a.textContent),z.debug("Cursor position within text node:",n.startOffset);let o=a.textContent?.length===n.startOffset&&r,u=a.textContent?.trim();return z.debug("editdiv isTail",o,"tailHasText",u),o&&!!u}else z.debug("Cursor is not within a text node.")}}return!1}function Yx(e,t){let n;function a(r){if(r.nodeType===Node.TEXT_NODE)n=r;else for(let o of r.childNodes)a(o)}return a(t),n==e}function Jx(e,t){let{triggerTimes:n,triggerKey:a}=t,r=0,o=" ";a.length==1?(r=n,o=a):a.toLowerCase()=="space"&&(r=n);let u=e.length;for(let i=e.length-1;i>=e.length-r;i--){if([10,8629].includes(e[i].charCodeAt(0))){u--;continue}if(![...t.codePrefixAlias[a]||[],o].includes(e[i]))break;u--}return e.length-u<3&&[".","\u3002"].includes(e[u-1])&&u--,e.slice(0,u)}function Qx(e,t){let n=t.innerHTML,a=ao(t);return{html:n.replace(a,e),text:e}}function Af(e,t,n=!1){let a=ao(t);return n?a.trim().endsWith(e.text.trim()):a.trim()==e.text.trim()}function ao(e){return e.value||e.innerText||e.textContent}async function ir(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function Zx(e,t,n){await ir(10);let a=new DataTransfer;e.forEach(r=>{r==="plain"&&a.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:a,bubbles:!0,cancelable:!0})),a.clearData(),await ir(10)}async function Xx(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await ir(10))}async function eT(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await ir(20),(t.value||t.value==="")&&(t.value=e.text)}async function tT(e,t){ps(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await ir(20))}var nT=[Zx.bind(null,["plain"])];function aT(e){let t;ps(e)?t=new InputEvent("beforeinput",{bubbles:!0,cancelable:!0,inputType:"deleteContent"}):t=new KeyboardEvent("keydown",{bubbles:!0,cancelable:!0,keyCode:8,which:8,location:0,key:"Backspace"}),e.dispatchEvent(t)}function ps(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function rT(e){if(ps(e))return;e.focus();let t=window.getSelection();if(!t)return;let n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}async function oT(e,t){await rT(e),await ir(50);let n=Qx(t,e);aT(e),z.debug("clearContent",ao(e)),await ir(50);for(let a of[...nT,eT,tT,Xx])if(await a(n,e),z.debug("setContent",a.name,Af(n,e),ao(e),n),Af(n,e))break}function uT(e){et("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage}}],e)}function iT(e,t,n){let a="";e&&e.code&&(a=e.code.toLowerCase());let r="";e&&e.key&&(r=e.key.toLowerCase());let o=e.keyCode,u=n[t]||[];return o===229&&t!=="space"?!1:!!(u.includes(a)||u.includes(r)||a===t||r===t)}async function sT(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await Ht(t,"")||Number(await Ht(N0,0))>0)return;let r=e.rule.inputTutorialsSelectors,o=e.rule.inputTutorialsText;if((r?.length||0)>0&&o)for(let u=0;u{dT()},100),new Promise(c=>{let l=c;if(o){let E=o.querySelector(`.${n}`),T=o.querySelector(`.${r}`),v=o.querySelector(`.${a}`)}else{o=document.createElement("div"),o.className=t+" notranslate",o.id=t;let E=document.createElement("div");E.className=Z+"-modal-content notranslate",o.appendChild(E);let T=document.createElement("span");T.textContent="\xD7",T.className=Z+"-close",E.appendChild(T),u=document.createElement("div"),u.className=n+" notranslate",E.appendChild(u),s=document.createElement("div"),s.className=a+" notranslate",E.appendChild(s),i=document.createElement("div"),i.className=r,E.appendChild(i),document.body.appendChild(o),T.onclick=function(){D(),c("close")},window.onclick=function(v){v.target==o&&(o.style.display="none",c("close"))}}document.addEventListener("keydown",x);let m=cT.bind(null,e);u.innerHTML=`
${Vi} ${m("modalEnableInputTranslationTitle")}
`,s.innerHTML="";let p=document.createElement("p");p.innerHTML=m("modalEnableInputTranslationDesc",{1:"https://immersivetranslate.com/docs/input/"}),p.style.cssText="margin-bottom:12px",s.appendChild(p);let f=document.createElement("div");f.style.cssText="margin-bottom: 12px;",f.innerHTML=Ne.sanitize(m("disableInputTranslationTips",{option:`${m("option")}`,learnMore:`${m("learnMore")}`})),s.appendChild(f);let g=[{id:"enable-search-enhancement",value:"enable",text:m("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:m("disableOnce")},{id:"disable-global",value:"global",text:m("disableGlobal")}];for(let E=0;E{Ia({sentences:r},{...e,translationService:"google"},(s,c,l)=>{if(s)return u([]);let m=c?.id||0,p=n[m];p&&p.className==Z+"-search-title-wrapper"&&(p.innerHTML+=Ne.sanitize(`
${c?.text}
`,{ADD_ATTR:["target"]}))})})}function fs(e,t,n){t&&et(t.key,[{name:t.key}],{...e,sourceLanguage:t.sourceLanguage||n})}function Sc(e,t,n,a){let r=n.querySelectorAll('[translate="true"]');return gT(e,t,[...r],a),n}async function Dc(e,t){let a=(await se({url:mT(e),method:"GET",responseType:"raw",headers:{"cache-control":"no-cache","content-type":"application/xml","Sec-Fetch-Site":"none",accept:"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}})).body,o=new DOMParser().parseFromString(a,"text/xml"),u=[],i=o.querySelectorAll("item");for(let s=0;s${e.cancelDescription}
`:""}

\u82F1\u6587\u641C\u7D22 - ${n} \u7684\u76F8\u5173\u65B0\u95FB:
+ ${n} \u7684\u76F8\u5173\u65B0\u95FB:

${u}
- - `.replaceAll(` -`,""),{ADD_ATTR:["target"]});let c=r.querySelector(`.${X}-search-more`);return c&&(c.onclick=()=>{let l=r.querySelector(`.${X}-expand-items`);l.style.display=="none"?(l.style.display="block",c.innerText="\u66F4\u591A\u76F8\u5173\u65B0\u95FB"):window.open(Af(n))}),r}function kf(e,t){let n=e.style;return t.map((a,r)=>{let o=a.title||"",u=a.source||"",i=o.split("-");return i.length>1&&(u=i[i.length-1].trim(),i=i.slice(0,i.length-1)),o=i.join("-"),o=o.trim(),`
${u}
-
+ + `.replaceAll(` +`,""),{ADD_ATTR:["target"]});let c=r.querySelector(`.${Z}-search-more`);return c&&(c.onclick=()=>{let l=r.querySelector(`.${Z}-expand-items`);l.style.display=="none"?(l.style.display="block",c.innerText="\u66F4\u591A\u76F8\u5173\u65B0\u95FB"):window.open(Sf(n))}),r}function Df(e,t){let n=e.style;return t.map((a,r)=>{let o=a.title||"",u=a.source||"",i=o.split("-");return i.length>1&&(u=i[i.length-1].trim(),i=i.slice(0,i.length-1)),o=i.join("-"),o=o.trim(),`
${u}
+ -
${Sp(a.pubDate||"")}
+
${Dp(a.pubDate||"")}
`}).join(` -`)}function Df(e,t){if(!e.keyword)return;let n=e.keyword.value||"";for(let a=0;anew RegExp(a.urlMatch).test(t))}async function Mf(e){if(fn().any)return;if(!e.rule.enableSearchEnhancement){z.debug("enable is false");return}let t=mT(e.rule.searchEnhancementConfig||[],e.url);if(!t){z.debug("not found siteConfig",e.url);return}let n=Df(t,e.url);if(!n){z.debug("not found keyword",e.url);return}t.id=="google"?fT(e,t,n):pT(e,t,n)}async function pT(e,t,n){let a=await it({text:document.title,pageLangs:[Dt(),"en"]});t.selector&&setTimeout(async()=>{let r=document.querySelector(t.selector);if(!r){z.debug("selector node not found",t.selector);return}let o=await Sc(n,t.showCount);if(o&&o.length<=0){z.debug("list not found");return}let u=await Dc(t,o,n,t.showCount);if(!u){z.debug("getInseredNode none");return}u.style.cssText=t.style.container||"";let i=t.selectorAction||"appendChild";i=="insertBefore"?r.parentElement?.insertBefore(u,r):i=="appendChild"?r.appendChild(u):i=="replace"&&r?.replaceWith(u),kc(e,t,u,a),hs(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a)},t.delayTime||0)}async function fT(e,t,n){let a=await it({text:n,pageLangs:["en"]});if(hs(e,{key:"detect_search_action"},a),!["zh-CN","zh-TW"].includes(a))return;z.debug("use dual search");let r=!1;if(new URL(e.url).searchParams.get("tbm")==="nws")r=!0;else if(!Lf(document.body))return;let u=document.querySelector("#rhs");if(!u){let i=document.querySelector("#rcnt");if(!i)return;let s=i.children;if(s&&s.length>1)u=s[1];else{let c=s[0];u=document.createElement("div"),u.id="rhs",u.style.maxWidth="372px",u.style.marginLeft="50px",i.insertBefore(u,c.nextSibling)}}if(r||Lf(document.body)){z.debug("find story");let i=await Sf(e,n,a);z.debug("enKeyword",i);let s=await Sc(i,t.showCount);if(z.debug("news list",s),s&&s.length<=0)return;let c=await Dc(t,s,i,t.showCount);if(!c)return;hs(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a),kc(e,t,c,a),u.insertBefore(c,u?.firstChild)}}function Lf(e){let t=e.querySelectorAll("[aria-level='2'][role=heading]");if(!t)return!1;for(let n of t){let a=(n?.textContent||"").trim();if(a.indexOf("\u7126\u70B9\u65B0\u95FB")>=0||a.indexOf("\u7126\u9EDE\u65B0\u805E")>=0||a.indexOf("Top stories")>=0)return!0}return!1}h();function Pf(e){e.state.translationMode="translation",$r(e)}var ke=null,bs={},ao,Ff=!1;async function ss(e){if(tt()==="Original"){let t={translationMode:void 0};ao&&(t.translationTheme=ao),ke&&(t={...ke.state,...t}),await $t(St(),t),await wn(ke,e)}else(tt()==="Translated"||tt()==="Error")&&or()}async function ls(){if(ke=await $t(St(),{}),ke.rule.isEbookBuilder)return gf(ke);if(ke.rule.isSubtitleBuilder)return cf(ke);s3()}async function cs(e){if(tt()==="Original")ke=await $t(St(),{}),ao||(ao=ke.state.translationTheme),ke=await $t(St(),{translationTheme:"mask"}),await wn(ke,e);else if(tt()==="Translated"){let t=wp().filter(r=>r.contentDocument?.body).map(r=>r.contentDocument.body),n=[ke.mainFrame,...t],a=ke?.state.translationTheme;for(let r of n){let o=Dr(r,wr,!0);a==="mask"?o!=="none"?pt(r,wr,"none",!0):pt(r,wr,"mask",!0):o!=="mask"?pt(r,wr,"mask",!0):pt(r,wr,"none",!0)}}}async function Lc(){let e=await $t(St(),{});return e.rule.isSubtitleBuilder?hc():i3(e)}function hT(e){tt()==="Original"?Pf(e):da()}function bT(e){tt()==="Original"?lf(e):bc()}function yT(e){tt()==="Original"?$r(e):da()}async function or(){Pc("");let e=await $t(St(),{});if(e.rule.isSubtitleBuilder){bc();return}else e.rule.isEbookBuilder&&mf();da()}async function wn(e,t){tt()!=="Original"&&await or(),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"translateStart",payload:{}})})),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"targetLanguage",payload:{targetLanguage:e.targetLanguage}})})),bs[e.translationService]||(bs[e.translationService]=!0,mt()||Fc(e).catch(a=>{z.warn("init translation engine error",a)}));let n={};if(t&&t.trigger&&(n.trigger=t.trigger),et("translage_page_daily",[{name:"translage_page_daily",params:n}],e),et("translate_page",[{name:"translate_page",params:n}],{...e,sourceLanguage:Dt()}),e.rule.isSubtitleBuilder)return bT(e);if(e.rule.isEbookBuilder)return pf(e);if(e.rule.isPdf)return hT(e);yT(e),Pc("yes")}async function _f(e){tt()==="Original"?await ys(e):(tt()==="Translated"||tt()==="Error")&&(ke=await $t(St(),{}),ke.state.translationArea!=="main"?await ys(e):or())}async function ys(e){ke=await $t(St(),{translationArea:"main"}),await wn(ke,e)}async function Mc(e){ke=await $t(St(),{translationArea:"body"}),await wn(ke,e)}async function ds(e){if(tt()==="Original"){let t=await $t(St(),{translationMode:"translation"});await wn(t,e)}else(tt()==="Translated"||tt()==="Error")&&await or()}async function Bf(e){if(ke=await $t(St(),{translationMode:void 0}),et("switch_translation_mode",[{name:"switch_translation_mode",params:{mode:e}}],{...ke,sourceLanguage:"unknown"}),tt()==="Original"){wn(ke);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(e)}async function Rf(e){if(tt()==="Original")await Mc(e);else if(tt()==="Translated"||tt()==="Error"){let t={};ke&&ke.state&&(t=ke.state),ke=await $t(St(),t),ke.state.translationArea!=="body"?(ke.state.translationArea="body",ke=await $t(St(),ke.state),await wn(ke,e)):or()}}async function If(e){ke=await $t(St(),{translationStartMode:"immediate"}),await wn(ke,e)}async function tf(){let e=await $t(St(),{});if(z.debug("init page ctx",e),e.rule.isSubtitleBuilder){hc();return}if(e.rule.isEbookBuilder){df();return}if(Mf(e),ao||(ao=e.state.translationTheme),e.rule.urlChangeDelay&&await qn(e.rule.urlChangeDelay),e.rule.waitForSelectors&&e.rule.waitForSelectors.length>0&&await xT(e.rule.waitForSelectors,e.rule.waitForSelectorsTimeout),e.rule.isInjectOptionsUrl){let a=Nf(),r=document.createElement("meta");r.name="immersive-translate-options-url",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(o){z.warn("inject options url failed",o)}}if(e.rule.isInjectVersion){let a=hn(),r=document.createElement("meta");r.name="immersive-translate-version",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(o){z.warn("inject version failed",o)}}if(e.rule.globalMeta&&Object.keys(e.rule.globalMeta).forEach(r=>{let o=document.createElement("meta");o.name=r,o.content=e.rule.globalMeta[r],document.head.appendChild(o)}),e.rule.initialGlobalAttributes&&Pp(document.body,e.rule.initialGlobalAttributes),e.rule.isPdf){wn(e);return}if(e.rule.isOnBoardingPage){document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"currentConfig",payload:{enableDefaultAlwaysTranslatedUrls:!!e.config.enableDefaultAlwaysTranslatedUrls}})}));let a=document.querySelector("#immersiveTranslateEnableDefaultAlwaysTranslatedUrlsValue");a&&(a.value="helloworld",a.value=String(!!e.config.enableDefaultAlwaysTranslatedUrls),a.dispatchEvent(new Event("change")))}Ff||(Ff=!0,globalThis.top!==globalThis.self&&e.rule.useIframePostMessage&&await Tp());let t=e.sourceLanguage;if(t==="auto"?t=await Lc():xn(t),e.rule.isInjectMeta)try{let a=await Lp(t),r=document.createElement("meta");r.name="immersive-translate-meta",r.content=y0(JSON.stringify(a)),document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(a){z.warn("inject meta failed",a)}let n=e.state.isAutoTranslate||e.isTranslateUrl||e.rule.isPdf;if(!n&&!e.isTranslateExcludeUrl&&(z.debug(`detect page language: ${e.url} ${t}`),ka(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto"||Ep(t,e.config.translationLanguagePattern)&&(n=!0,z.debug(`match language pattern ${t}, auto translate`))),e.rule.isEbookBuilder&&(n=!1),!e.rule.isPdf&&ia()&&gs(e,window),n)ke.state.isAutoTranslate=!0,wn(ke);else if(z.debug("do not auto translate",e),e.rule.initTranslationServiceAsSoonAsPossible&&e.translationService==="deepl"){if(ka(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto")return;e.config&&e.config.translationServices&&e.config.translationServices.deepl&&e.config.translationServices.deepl.authKey&&typeof e.config.translationServices.deepl.authKey=="string"&&e.config.translationServices.deepl.authKey.startsWith("immersive_")&&(bs[e.translationService]||(bs[e.translationService]=!0,mt()||Fc(e).catch(a=>{z.warn("init translation engine error",a)})))}}async function $t(e,t){let n=Object.keys(t);if(ke){let a={url:e,config:ke.config,state:{...ke.state,...t}};ke=await Lt(a)}else{let a=await Nn(),r=t;n.length===0&&(r=void 0),ke=await Lt({url:e,config:a,state:r})}return ke}async function Of(){let e=await Nn(),t;ke&&ke.state&&(t=ke.state);let n={url:St(),config:e,state:t},a=await Lt(n);ke=a;let r=$i(),o=[];return r?o=r.allInlineWindows||[window]:o=[window],o.forEach(u=>{Z3(a,u),ia()&&gs(a,u),wf(a)}),a}function xT(e,t=3e3){return new Promise((n,a)=>{let r=t?setTimeout(()=>{n(new Error("timeout"))},t):void 0,o=setInterval(()=>{e.every(i=>document.querySelector(i)!==null)&&(clearInterval(o),r&&clearTimeout(r),n(null))},50)})}async function nf(e){let t=e.detail;Xe.set(xt,t);let n=await Xe.get(_o,!1);Xe.set(_o,!1),document.dispatchEvent(new CustomEvent("immersiveTranslateDocumentMessageUserResult",{detail:n?"close":"success"}))}function af(e){z.debug("update user info",e);let t=e.detail;Xe.set(xt,t)}async function rf(e){let t=await vn();if(t.translationService)return;let n=e.config.translationService,a=["bing","transmart","google"];a.sort((o,u)=>o===n?-1:u===n?1:0);let r=await Uf(a,e);if(!r){qo("no_avaliable_translation_service",[{name:"no_avaliable_translation_service"}]);return}e.translationService!==r&&(t.translationService=r,Cn(t),e.translationService=r,qo("change_default_translation_service",[{name:"change_default_translation_service",params:{translation_service:r}}]))}var Yr=async function(e,t){let{method:n,data:a}=e,r=await Of(),o=Date.now();if(z.debug(`content script received message: ${n}`,a||" "),n==="translateTheWholePage")await Mc(a),$e(Ln,o);else if(n==="translateTheMainPage")await ys(a),$e(Ln,o);else if(n==="translateToThePageEndImmediately")await If(a),$e(Ln,o);else if(n==="toggleTranslatePage")await ss(a),$e(Ln,o);else if(n==="toggleTranslateTheWholePage")await Rf(a),$e(Ln,o);else if(n==="toggleTranslateTheMainPage")await _f(a),$e(Ln,o);else if(n==="toggleOnlyTransation")await ds(a),$e(Ln,o);else if(n==="translatePage")await wn(r,a),$e(Ln,o);else if(n==="toggleTranslationMask")await cs(a);else if(n==="restorePage")or();else if(n==="setCurrentPageLanguageByClient")xn(a);else if(n==="retryFailedParagraphs")ls();else if(n==="switchTranslationMode"){if(r.rule.isPdf)return;a&&a.mode&&Bf(a.mode)}},TT=function(e,t){let{method:n,data:a}=e;if(z.debug(`content script received sync message: ${n}`,a||" "),n==="ping")return"pong";if(n==="getPageStatus")return tt();if(n==="getCurrentPageLanguage"){let r=Dt();return Lc().catch(o=>{z.warn("detectCurrentPageLanguage failed",o)}),r}},xs,Ts;function of(){let e=Es();mt()||ET(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function Es(){return xs||(xs=new la("content_script",!1).getConnection("main",Yr),xs)}function ET(){return Ts||(Ts=new la("content_script",!1).getConnection("main_sync",TT,{sync:!0}),Ts)}async function rt(e){return await Es().sendMessage("background:main",e)}function se(e){return Wu()?pi({method:"request",data:e}):me()||qu()?(e.fetchPolyfill=globalThis.GM_fetch,Pn(e)):rt({method:"fetch",data:e})}function Nn(){return me()?Ge():rt({method:"getConfig"})}function Cn(e){return me()?$o(e):rt({method:"setUserConfig",data:e})}function vn(){return me()?Ko():rt({method:"getUserConfig"})}function q3(){return me()?Gn():rt({method:"getLocalConfig"})}function Zi(e){return me()?yn(e):rt({method:"setLocalConfig",data:e})}function _3(e){return me()?Wm(e):rt({method:"setBuildinConfig",data:e})}async function it(e){if(e.text){let n=Ai(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(me()||ot()){let n=ip(e.text,e.minLength,e.pageLangs);return Promise.resolve(n)}let t=await rt({method:"detectLanguage",data:e});return Promise.resolve(t)}function l3(){return rt({method:"detectTabLanguage"})}function n3(e){if(me()){let n=new CustomEvent(Ju,{detail:e});document.dispatchEvent(n);return}Es().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(n=>{})}function jf(e){return me()?xl(e):rt({method:"queryParagraphCache",data:e})}async function zf(e){if(me()){await yl(e);return}return rt({method:"setParagraphCache",data:e})}async function Hf(){if(me())return Promise.resolve();await rt({method:"mockRequest"})}function Zr(e=!1,t=""){return me()?(Q.runtime.openOptionsPage(e,t),Promise.resolve()):rt({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function Nf(e=""){return me()||ot()?Ke().OPTIONS_URL:Q.runtime.getURL("options.html")}function T3(e=""){return Q&&Q.runtime&&Q.runtime.getURL?Q.runtime.getURL("options.html"):""}function Xi(e=!1){return me()?(Q.extra.openAboutPage(e),Promise.resolve()):rt({method:"openAboutPage"})}function uf(e=!1){return me()?(Q.extra.openSearchEnhancement(e),Promise.resolve()):rt({method:"openSearchEnhancement"})}function es(e){return me()?(Q.extra.openInTab(e),Promise.resolve()):rt({method:"openInTab",data:e})}function ts(e=!1){return me()?(Q.extra.openEbookViewerPage(e),Promise.resolve()):rt({method:"openEbookViewerPage"})}function B3(e=!1){return me()?Promise.resolve():rt({method:"openHtmlViewerPage"})}function ns(e=!1){return me()?(Q.extra.openEbookBuilderPage(e),Promise.resolve()):rt({method:"openEbookBuilderPage"})}function sf(e){ot()}function ac(e=!1){return me()?(Q.extra.openPdfViewerPage(e),Promise.resolve()):rt({method:"openPdfViewerPage"})}function R3(e=!1){return me()?(Q.extra.openSubtitleBuilderPage(e),Promise.resolve()):rt({method:"openSubtitleBuilderPage"})}function Pc(e){return me()?Promise.resolve():rt({method:"setBadge",data:{text:e}})}function A3(){return me()?(z.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):rt({method:"autoSyncLatestConfig"})}var Te=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=200;translationOptions;constructor(t,n,a){this.serviceConfig=t,this.generalConfig=n,this.translationOptions=a}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getDefaultRateLimit(){return null}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,a){if(t.sentences.length===0)return{sentences:[]};let{sentences:r}=t,o=[],u=null,i=new Set;for(let T of r)T.from&&T.from!=="auto"&&i.add(T.from);let s=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(s=this.serviceConfig.maxTextLengthPerRequest);let c=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(c=this.serviceConfig.maxTextGroupLengthPerRequest);try{o=$m(r,s,c)}catch(T){if(a)for(let w=0;wT));let l=[],f=[],p=(T,w,b)=>{let S=w.translatedTexts[0];f[T]||(f[T]=w,f[T].translatedTexts=Array(w.sentenceTotalParts).fill(null)),f[T].translatedTexts[w.partIndex]=S;let D=f[T],N=0;for(let _=0;_{let D=await m3(this.translationOptions.translationService);await qn(D||0);let N=w.from;if(w.fromByClient&&w.fromByClient!=="auto"&&(N=w.fromByClient),this.isSupportList)return{...await this.translateList({text:w.tempSentences.map(y=>y.text),from:N,to:w.to,url:b,options:n}),sourceTempSentences:w.tempSentences};{let _=qg;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(_=this.serviceConfig.translationTextSeparator);let y=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(y=this.serviceConfig.newlinePlaceholderDelimiters);let E="";y&&y.length>=2?E=w.tempSentences.map((M,k)=>k===w.tempSentences.length-1?M.text:M.text+y[0]+(k+1)+y[1]).join(""):E=w.tempSentences.map(M=>M.text).join(_);let x=await this.translate({text:E,from:N,to:w.to,url:b,options:n}),{text:v}=x,C=[];if(y&&y.length>=2){let M=`${y[0]}\\d+${y[1]}`;y&&y.length>=3&&(M=y[2]);let k=new RegExp(M,"g");C=v.split(k)}else C=v.split(_);let R=[];if(C.length>w.tempSentences.length){for(let M=0;M{let{text:N,sourceTempSentences:_}=D;for(let y=0;y{if(a){for(let N=0;N({...T.sentence,text:T.translatedTexts.join("")}))}}detectLanguageLocally(t){return it({text:t,minLength:18,pageLangs:[Dt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}};var qf=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],ru=class e extends Te{static langMap=new Map(qf);static langMapReverse=new Map(qf.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),a=`${t.getUTCMonth()+1}`.padStart(2,"0"),r=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${a}-${r}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.secretId||!t.secretKey)throw new Error("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}async translate(t){let{text:n,from:a,to:r}=t,o=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceText:n,Target:e.langMap.get(r)||r}),u=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:o,service:"tmt",version:"2018-03-21"});return{text:u.Response.TargetText,from:e.langMapReverse.get(u.Response.Source)||a,to:e.langMapReverse.get(u.Response.Target)||r}}async translateList(t){let{text:n,from:a,to:r}=t,o=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceTextList:n,Target:e.langMap.get(r)||r}),u=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:o,service:"tmt",version:"2018-03-21"});return{text:u.Response.TargetTextList,from:e.langMapReverse.get(u.Response.Source)||a,to:e.langMapReverse.get(u.Response.Target)||r}}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:o,version:u}){let i=`${o}.tencentcloudapi.com`,s=new Date,c=`${new Date().valueOf()}`.slice(0,10),l=["POST","/","","content-type:application/json; charset=utf-8",`host:${i}`,"","content-type;host",await In(r)].join(` -`),f=e.getUTCDate(s),p=["TC3-HMAC-SHA256",c,`${f}/${o}/tc3_request`,await In(l)].join(` -`),m=await Hp(f,`TC3${n}`),g=await Oi(o,m),T=await Oi("tc3_request",g),w=await Oi(p,T),b=await se({retry:1,url:`https://${o}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:i,"X-TC-Action":a,"X-TC-Timestamp":c,"X-TC-Region":"ap-beijing","X-TC-Version":u,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${f}/${o}/tc3_request, SignedHeaders=content-type;host, Signature=${w}`},body:r});if(b instanceof Error)throw b;if(b.Response&&b.Response.Error&&b.Response.Error.Message)throw new Error(b.Response.Error.Message);return b}};h();var Wf=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],CT={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},ou=class e extends Te{static langMap=new Map(Wf);static langMapReverse=new Map(Wf.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,a){super(t,n,a)}async translate(t){let{text:n,from:a,to:r}=t,o=new URLSearchParams({source:a,target:r,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),u=await se({url:`https://wxapp.translator.qq.com/api/translate?${o}`,retry:1,method:"GET",headers:CT});return{text:u.targetText,from:e.langMapReverse.get(u.source)||a,to:e.langMapReverse.get(u.target)||r}}};h();var Kf=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],ur=class e extends Te{static langMap=new Map(Kf);static langMapReverse=new Map(Kf.map(([t,n])=>[n,t]));isSupportList=!1;apiUrl="https://translate.googleapis.com/translate_a/single";constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.apiUrl=en(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let o=e.langMap.get(a)||"auto",u=e.langMap.get(r)||r,i=await this.fetchWithoutToken(n,o,u);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async translateXml(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let o=e.langMap.get(a)||"auto",u=e.langMap.get(r)||r,i=await this.fetchXmlWithoutToken(n,o,u);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async fetchXmlWithoutToken(t,n,a){let o="https://translate.googleapis.com/translate_a/t?"+new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}).toString();return{data:await se({retry:2,url:o})}}async fetchWithoutToken(t,n,a){let r=new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}),o=this.apiUrl+"?"+r.toString();return{data:await se({retry:2,url:o})}}};h();h();h();function vT(e,t){return t?e+(t-e%t):e}function wT(e,t){return e.split(t).length-1}function _c(e){let t=Date.now(),n=1;for(let a of e)n+=wT(a,"i");return vT(t,n)}function AT(e,t){return Math.floor(Math.random()*(t-e+1))+e}function Bc(){return AT(1e6,1e8)}h();h();h();var Rc="https://www2.deepl.com/jsonrpc",Ic="auto",$f=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];h();function kT(e=$f){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function Oc(e){return kT()[e.toLowerCase()]}var ST={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function DT(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function LT(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function MT(e,t,n,a,r,o,u){let i=Bc(),s=LT(a,n),c=[];t.forEach(p=>{c.push({text:p,requestAlternatives:3})}),s.id=i,s.params.texts=c,s.params.timestamp=_c(t);let l=await se({retry:2,method:"POST",url:e,body:DT(s),headers:ST}),f={from:l.result.lang,to:n,text:[]};return l.result.texts.forEach(p=>{f.text.push(p.text)}),f}async function Gf(e,t,n,a=Ic,r,o,u){return t?t&&t.length===1&&t[0]===""?{text:[""],from:a,to:n}:MT(e,t,Oc(n),Oc(a)??"auto",r,o,u):{text:[],from:a,to:n}}var Vf=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],ro=class e extends Te{static langMap=new Map(Vf);static langMapReverse=new Map(Vf.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=Rc;constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.API_URL=en(Rc,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:a,from:r}=t,o=await Gf(this.API_URL,n,e.langMap.get(a)||a,e.langMap.get(r)||"auto");return{text:o.text,from:e.langMapReverse.get(o.from),to:e.langMapReverse.get(o.to)}}};h();var Yf=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Nc="https://transmart.qq.com/api/imt",ir=class e extends Te{static langMap=new Map(Yf);static langMapReverse=new Map(Yf.map(([t,n])=>[n,t]));clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,a){super(t,n,a),this.clientKey=e.getClientKey()}static getClientKey(){return btoa("transmart_crx_"+navigator.userAgent).slice(0,100)}async translate(t){let{text:n,to:a}=t,r=await this.detectLanguage(n),o=e.langMap.get(r)||r,u=e.langMap.get(a)||a;if(r===a)return{text:n,from:r,to:a};let i=Ke(),s=t.url;i.INSTALL_FROM==="firefox_store"&&(s=Jf());let l=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:o,orig_url:s},target:{lang:u}}),f=await se({url:Nc,body:l,method:"POST",retry:2});if(f.header.ret_code!=="succ")throw new Error(f.message||f.header.ret_code);return{text:f.auto_translation,from:r||"auto",to:a}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:a,to:r}=t,o=Ke(),u=t.url;if(o.INSTALL_FROM==="firefox_store"&&(u=Jf()),a.length===1){let m=await this.translate({from:n,text:a[0],to:r,url:u,options:t.options});return{text:[m.text],from:m.from,to:m.to}}let s=await this.detectLanguage(a.join(` -`));if(s===r)return{text:a,from:s,to:r};let c=e.langMap.get(s)||s,l=e.langMap.get(r)||r,f=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:a,lang:c,orig_url:u},target:{lang:l},type:"plain"}),p=await se({url:Nc,body:f,method:"POST"});if(p.header.ret_code!=="succ")throw new Error(p.message||p.header.ret_code);return{text:p.auto_translation,from:s||"auto",to:r}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return e.detectLanguageRemotelyByTransmart(t)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},a=await se({url:Nc,method:"POST",body:JSON.stringify(n)});if(a.header.ret_code!=="succ")throw new Error(a.message||a.header.ret_code);let r=a.language,o=e.langMapReverse.get(r);return o||r}};function Jf(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}h();h();function Qf(){return Math.random()>=0}var oo=class extends Te{isSupportList=!0;maxTextLength=1200;maxTextGroupLength=25;async translate(t){let{text:n}=t,a=n.match(/^\s*/)[0].length;return{text:n.slice(0,a)+"\u6A21\u62DF\uFF1A"+n.slice(a,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:a,to:r}=t;if(await Hf(),!Qf())throw new Error("\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:a,to:r,text:[""]}:{from:a,to:r,text:n.map(o=>{let u=o.match(/^\s*/)[0].length;return o.slice(0,u)+"\u6A21\u62DF\uFF1A"+o.slice(u,-6)})}}};h();var Xf=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],Uc=new Map(Xf),Zf=new Map(Xf.map(([e,t])=>[t,e])),jc=class e extends Te{static langMap=Uc;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,a){if(super(t,n,a),!t||!t.apikey)throw new Error("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:a,to:r}=t,o=await se({retry:2,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:Uc.get(a)||"auto",target_lang:Uc.get(r)||r})});if(o.status){let u=o;return u.result&&r=="zh-TW",{text:u.result,from:Zf.get(u.source_lang),to:Zf.get(u.target_lang)}}else throw new Error(o.msg)}},Cs=jc;h();var eh=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],uu=new Map(eh),PT=new Map(eh.map(([e,t])=>[t,e])),zc=class extends Te{static langMap=uu;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl="https://deepl.immersivetranslate.com/v2/translate";immersiveTranslateDeeplTokenUrl="https://api.immersivetranslate.com";immersiveTranslateDeeplProApiUrl=na()||aa()?"https://api2.immersivetranslate.com/deepl/translate":"https://test-api2.immersivetranslate.com/deepl/translate";provider="custom";splitor="";apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,a){if(super(t,n,a),t=t||{},this.splitor=t.qualityDelimiterBeta||"",t.provider==="pro")if(this.provider="pro",a.userToken){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=a.userToken,this.apiKeys=this.authKey.split(",").map(r=>r.trim())}else throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey.split(",").map(r=>r.trim()),!this.authKey)throw new Error("authKey are required");if(!this.authKey)throw new Error("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=en(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=en(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=en(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=en(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=en(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getDefaultRateLimit(){if(this.provider==="pro"){if(this.serviceConfig&&this.serviceConfig.immersiveTranslateProLimit){let t=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(t)&&(t=15),{limit:t,interval:1050}}return{limit:15,interval:1050}}else return{limit:3,interval:1050}}async translateList(t){let{from:n,to:a,text:r}=t,o={source_lang:uu.get(n)||"",target_lang:uu.get(a)||a},u=this.getRandomKey(),i=new URLSearchParams(o);this.splitor?i.append("text",r.join(this.splitor)):r.forEach(g=>{i.append("text",g)});let s=i.toString(),c={text:this.splitor?[r.join(this.splitor)]:r,source_lang:uu.get(n)||"auto",target_lang:uu.get(a)||a},l=this.freeApiUrl;u.endsWith(":im")?l=this.immersiveTranslateApiUrl:u.endsWith(":fx")||(l=this.proApiUrl);let f;this.provider==="pro"?f=await se({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:u,"Content-Type":"application/json"}}):u.startsWith("immersive_")?f=await se({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:u,"Content-Type":"application/json"}}):f=await se({retry:2,url:l,method:"POST",body:s,headers:{Authorization:"DeepL-Auth-Key "+u,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}});let{translations:p}=f,m=[];if(this.splitor?m=p[0]?.text.split(this.splitor).map(g=>g):m=p.map(g=>g.text),a==="zh-TW"){let g=this.serviceConfig||{};g&&g.googleApiUrl&&(g.apiUrl=g.googleApiUrl);let w=await new ur(this.serviceConfig,this.generalConfig,this.translationOptions).translate({from:"zh-CN",to:"zh-TW",text:p.map(b=>b.text).join(` -`),url:"",options:{}});w&&w.text&&(m=w.text.split(` -`))}return{text:m,from:p[0]&&PT.get(p[0].detected_source_language)||n,to:a}}},th=zc;h();var FT=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],Hc=new Map(FT),qc=class extends Te{static langMap=Hc;APIKEY="";isSupportList=!1;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:a,to:r}=t,u={url:"https://api.niutrans.com/NiuTransServer/translation",retry:2,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:n,from:Hc.get(a)||a,to:Hc.get(r)||r,apikey:this.APIKEY})},i=await se(u);if(i.tgt_text){let s=i.tgt_text;return s.endsWith(` -`)&&(s=s.slice(0,-1)),{text:s,from:a,to:r}}else throw new Error(JSON.stringify(i))}},nh=qc;h();var _T=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],Wc=new Map(_T),Kc=class extends Te{static langMap=Wc;APIKEY="";region="eastasia";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region)}async translateList(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:[]};let o={"api-version":"3.0",to:Wc.get(r)||r};a!=="auto"&&(o.from=Wc.get(a)||a);let u=new URLSearchParams(o),i=JSON.stringify(n.map(l=>({text:l}))),s={url:"https://api.cognitive.microsofttranslator.com/translate?"+u.toString(),retry:2,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:i},c=await se(s);if(c.length===0)throw new Error("server response invalid");return{from:a,to:r,text:c.map(l=>l.translations.map(p=>p.text).join(" "))}}},ah=Kc;h();var BT=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],iu=new Map(BT),$c=class extends Te{isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:3,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t,o;if(n.length===0)return{from:a,to:r,text:[]};let u=` +`)}function Mf(e,t){if(!e.keyword)return;let n=e.keyword.value||"";for(let a=0;anew RegExp(a.urlMatch).test(t))}async function Ff(e){if(fn().any)return;if(!e.rule.enableSearchEnhancement){z.debug("enable is false");return}let t=pT(e.rule.searchEnhancementConfig||[],e.url);if(!t){z.debug("not found siteConfig",e.url);return}let n=Mf(t,e.url);if(!n){z.debug("not found keyword",e.url);return}t.id=="google"?hT(e,t,n):fT(e,t,n)}async function fT(e,t,n){let a=await it({text:document.title,pageLangs:[Dt(),"en"]});t.selector&&setTimeout(async()=>{let r=document.querySelector(t.selector);if(!r){z.debug("selector node not found",t.selector);return}let o=await Dc(n,t.showCount);if(o&&o.length<=0){z.debug("list not found");return}let u=await Lc(t,o,n,t.showCount);if(!u){z.debug("getInseredNode none");return}u.style.cssText=t.style.container||"";let i=t.selectorAction||"appendChild";i=="insertBefore"?r.parentElement?.insertBefore(u,r):i=="appendChild"?r.appendChild(u):i=="replace"&&r?.replaceWith(u),Sc(e,t,u,a),fs(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a)},t.delayTime||0)}async function hT(e,t,n){let a=await it({text:n,pageLangs:["en"]});if(fs(e,{key:"detect_search_action"},a),!["zh-CN","zh-TW"].includes(a))return;z.debug("use dual search");let r=!1;if(new URL(e.url).searchParams.get("tbm")==="nws")r=!0;else if(!Pf(document.body))return;let u=document.querySelector("#rhs");if(!u){let i=document.querySelector("#rcnt");if(!i)return;let s=i.children;if(s&&s.length>1)u=s[1];else{let c=s[0];u=document.createElement("div"),u.id="rhs",u.style.maxWidth="372px",u.style.marginLeft="50px",i.insertBefore(u,c.nextSibling)}}if(r||Pf(document.body)){z.debug("find story");let i=await Lf(e,n,a);z.debug("enKeyword",i);let s=await Dc(i,t.showCount);if(z.debug("news list",s),s&&s.length<=0)return;let c=await Lc(t,s,i,t.showCount);if(!c)return;fs(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a),Sc(e,t,c,a),u.insertBefore(c,u?.firstChild)}}function Pf(e){let t=e.querySelectorAll("[aria-level='2'][role=heading]");if(!t)return!1;for(let n of t){let a=(n?.textContent||"").trim();if(a.indexOf("\u7126\u70B9\u65B0\u95FB")>=0||a.indexOf("\u7126\u9EDE\u65B0\u805E")>=0||a.indexOf("Top stories")>=0)return!0}return!1}h();function _f(e){e.state.translationMode="translation",Gr(e)}var ke=null,hs={},ro,Bf=!1;async function is(e){if(tt()==="Original"){let t={translationMode:void 0};ro&&(t.translationTheme=ro),ke&&(t={...ke.state,...t}),await $t(St(),t),await wn(ke,e)}else(tt()==="Translated"||tt()==="Error")&&sr()}async function ss(){if(ke=await $t(St(),{}),ke.rule.isEbookBuilder)return pf(ke);if(ke.rule.isSubtitleBuilder)return gf(ke);l3()}async function ls(e){if(tt()==="Original")ke=await $t(St(),{}),ro||(ro=ke.state.translationTheme),ke=await $t(St(),{translationTheme:"mask"}),await wn(ke,e);else if(tt()==="Translated"){let t=Ap().filter(r=>r.contentDocument?.body).map(r=>r.contentDocument.body),n=[ke.mainFrame,...t],a=ke?.state.translationTheme;for(let r of n){let o=Pr(r,Sr,!0);a==="mask"?o!=="none"?ft(r,Sr,"none",!0):ft(r,Sr,"mask",!0):o!=="mask"?ft(r,Sr,"mask",!0):ft(r,Sr,"none",!0)}}}async function Mc(){let e=await $t(St(),{});return e.rule.isSubtitleBuilder?bc():s3(e)}function bT(e){tt()==="Original"?_f(e):ca()}function yT(e){tt()==="Original"?df(e):yc()}function xT(e){tt()==="Original"?Gr(e):ca()}async function sr(){Fc("");let e=await $t(St(),{});if(e.rule.isSubtitleBuilder){yc();return}else e.rule.isEbookBuilder&&ff();ca()}async function wn(e,t){tt()!=="Original"&&await sr(),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"translateStart",payload:{}})})),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"targetLanguage",payload:{targetLanguage:e.targetLanguage}})})),hs[e.translationService]||(hs[e.translationService]=!0,pt()||_c(e).catch(a=>{z.warn("init translation engine error",a)}));let n={};if(t&&t.trigger&&(n.trigger=t.trigger),et("translage_page_daily",[{name:"translage_page_daily",params:n}],e),et("translate_page",[{name:"translate_page",params:n}],{...e,sourceLanguage:Dt()}),e.rule.isSubtitleBuilder)return yT(e);if(e.rule.isEbookBuilder)return hf(e);if(e.rule.isPdf)return bT(e);xT(e),Fc("yes")}async function Rf(e){tt()==="Original"?await bs(e):(tt()==="Translated"||tt()==="Error")&&(ke=await $t(St(),{}),ke.state.translationArea!=="main"?await bs(e):sr())}async function bs(e){ke=await $t(St(),{translationArea:"main"}),await wn(ke,e)}async function Pc(e){ke=await $t(St(),{translationArea:"body"}),await wn(ke,e)}async function cs(e){if(tt()==="Original"){let t=await $t(St(),{translationMode:"translation"});await wn(t,e)}else(tt()==="Translated"||tt()==="Error")&&await sr()}async function If(e){if(ke=await $t(St(),{translationMode:void 0}),et("switch_translation_mode",[{name:"switch_translation_mode",params:{mode:e}}],{...ke,sourceLanguage:"unknown"}),tt()==="Original"){wn(ke);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(e)}async function Of(e){if(tt()==="Original")await Pc(e);else if(tt()==="Translated"||tt()==="Error"){let t={};ke&&ke.state&&(t=ke.state),ke=await $t(St(),t),ke.state.translationArea!=="body"?(ke.state.translationArea="body",ke=await $t(St(),ke.state),await wn(ke,e)):sr()}}async function Nf(e){ke=await $t(St(),{translationStartMode:"immediate"}),await wn(ke,e)}async function af(){let e=await $t(St(),{});if(z.debug("init page ctx",e),e.rule.isSubtitleBuilder){bc();return}if(e.rule.isEbookBuilder){mf();return}if(Ff(e),ro||(ro=e.state.translationTheme),e.rule.urlChangeDelay&&await qn(e.rule.urlChangeDelay),e.rule.waitForSelectors&&e.rule.waitForSelectors.length>0&&await TT(e.rule.waitForSelectors,e.rule.waitForSelectorsTimeout),e.rule.isInjectOptionsUrl){let a=jf(),r=document.createElement("meta");r.name="immersive-translate-options-url",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(o){z.warn("inject options url failed",o)}}if(e.rule.isInjectVersion){let a=hn(),r=document.createElement("meta");r.name="immersive-translate-version",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(o){z.warn("inject version failed",o)}}if(e.rule.globalMeta&&Object.keys(e.rule.globalMeta).forEach(r=>{let o=document.createElement("meta");o.name=r,o.content=e.rule.globalMeta[r],document.head.appendChild(o)}),e.rule.initialGlobalAttributes&&Fp(document.body,e.rule.initialGlobalAttributes),e.rule.isPdf){wn(e);return}if(e.rule.isOnBoardingPage){document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"currentConfig",payload:{enableDefaultAlwaysTranslatedUrls:!!e.config.enableDefaultAlwaysTranslatedUrls}})}));let a=document.querySelector("#immersiveTranslateEnableDefaultAlwaysTranslatedUrlsValue");a&&(a.value="helloworld",a.value=String(!!e.config.enableDefaultAlwaysTranslatedUrls),a.dispatchEvent(new Event("change")))}Bf||(Bf=!0,globalThis.top!==globalThis.self&&e.rule.useIframePostMessage&&await Ep());let t=e.sourceLanguage;if(t==="auto"?t=await Mc():xn(t),e.rule.isInjectMeta)try{let a=await Mp(t),r=document.createElement("meta");r.name="immersive-translate-meta",r.content=y0(JSON.stringify(a)),document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(a){z.warn("inject meta failed",a)}let n=e.state.isAutoTranslate||e.isTranslateUrl||e.rule.isPdf;if(!n&&!e.isTranslateExcludeUrl&&(z.debug(`detect page language: ${e.url} ${t}`),Sa(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto"||Cp(t,e.config.translationLanguagePattern)&&(n=!0,z.debug(`match language pattern ${t}, auto translate`))),e.rule.isEbookBuilder&&(n=!1),!e.rule.isPdf&&ua()&&ds(e,window),n)ke.state.isAutoTranslate=!0,wn(ke);else if(z.debug("do not auto translate",e),e.rule.initTranslationServiceAsSoonAsPossible&&e.translationService==="deepl"){if(Sa(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto")return;e.config&&e.config.translationServices&&e.config.translationServices.deepl&&e.config.translationServices.deepl.authKey&&typeof e.config.translationServices.deepl.authKey=="string"&&e.config.translationServices.deepl.authKey.startsWith("immersive_")&&(hs[e.translationService]||(hs[e.translationService]=!0,pt()||_c(e).catch(a=>{z.warn("init translation engine error",a)})))}}async function $t(e,t){let n=Object.keys(t);if(ke){let a={url:e,config:ke.config,state:{...ke.state,...t}};ke=await Lt(a)}else{let a=await Nn(),r=t;n.length===0&&(r=void 0),ke=await Lt({url:e,config:a,state:r})}return ke}async function Uf(){let e=await Nn(),t;ke&&ke.state&&(t=ke.state);let n={url:St(),config:e,state:t},a=await Lt(n);ke=a;let r=Ki(),o=[];return r?o=r.allInlineWindows||[window]:o=[window],o.forEach(u=>{ef(a,u),ua()&&ds(a,u),kf(a)}),a}function TT(e,t=3e3){return new Promise((n,a)=>{let r=t?setTimeout(()=>{n(new Error("timeout"))},t):void 0,o=setInterval(()=>{e.every(i=>document.querySelector(i)!==null)&&(clearInterval(o),r&&clearTimeout(r),n(null))},50)})}async function rf(e){let t=e.detail;Xe.set(ct,t);let n=await Xe.get(_o,!1);Xe.set(_o,!1),document.dispatchEvent(new CustomEvent("immersiveTranslateDocumentMessageUserResult",{detail:n?"close":"success"}))}function of(e){z.debug("update user info",e);let t=e.detail;Xe.set(ct,t)}async function uf(e){let t=await vn();if(t.translationService)return;let n=e.config.translationService,a=["bing","transmart","google"];a.sort((o,u)=>o===n?-1:u===n?1:0);let r=await zf(a,e);if(!r){qo("no_avaliable_translation_service",[{name:"no_avaliable_translation_service"}]);return}e.translationService!==r&&(t.translationService=r,Cn(t),e.translationService=r,qo("change_default_translation_service",[{name:"change_default_translation_service",params:{translation_service:r}}]))}var Jr=async function(e,t){let{method:n,data:a}=e,r=await Uf(),o=Date.now();if(z.debug(`content script received message: ${n}`,a||" "),n==="translateTheWholePage")await Pc(a),$e(Ln,o);else if(n==="translateTheMainPage")await bs(a),$e(Ln,o);else if(n==="translateToThePageEndImmediately")await Nf(a),$e(Ln,o);else if(n==="toggleTranslatePage")await is(a),$e(Ln,o);else if(n==="toggleTranslateTheWholePage")await Of(a),$e(Ln,o);else if(n==="toggleTranslateTheMainPage")await Rf(a),$e(Ln,o);else if(n==="toggleOnlyTransation")await cs(a),$e(Ln,o);else if(n==="translatePage")await wn(r,a),$e(Ln,o);else if(n==="toggleTranslationMask")await ls(a);else if(n==="restorePage")sr();else if(n==="setCurrentPageLanguageByClient")xn(a);else if(n==="retryFailedParagraphs")ss();else if(n==="switchTranslationMode"){if(r.rule.isPdf)return;a&&a.mode&&If(a.mode)}},ET=function(e,t){let{method:n,data:a}=e;if(z.debug(`content script received sync message: ${n}`,a||" "),n==="ping")return"pong";if(n==="getPageStatus")return tt();if(n==="getCurrentPageLanguage"){let r=Dt();return Mc().catch(o=>{z.warn("detectCurrentPageLanguage failed",o)}),r}},ys,xs;function sf(){let e=Ts();pt()||CT(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function Ts(){return ys||(ys=new sa("content_script",!1).getConnection("main",Jr),ys)}function CT(){return xs||(xs=new sa("content_script",!1).getConnection("main_sync",ET,{sync:!0}),xs)}async function rt(e){return await Ts().sendMessage("background:main",e)}function se(e){return qu()?mi({method:"request",data:e}):me()||Hu()?(e.fetchPolyfill=globalThis.GM_fetch,Pn(e)):rt({method:"fetch",data:e})}function Nn(){return me()?Ge():rt({method:"getConfig"})}function Cn(e){return me()?$o(e):rt({method:"setUserConfig",data:e})}function vn(){return me()?Ko():rt({method:"getUserConfig"})}function K3(){return me()?$n():rt({method:"getLocalConfig"})}function Qi(e){return me()?yn(e):rt({method:"setLocalConfig",data:e})}function R3(e){return me()?Km(e):rt({method:"setBuildinConfig",data:e})}async function it(e){if(e.text){let n=wi(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(me()||ot()){let n=sp(e.text,e.minLength,e.pageLangs);return Promise.resolve(n)}let t=await rt({method:"detectLanguage",data:e});return Promise.resolve(t)}function c3(){return rt({method:"detectTabLanguage"})}function a3(e){if(me()){let n=new CustomEvent(Yu,{detail:e});document.dispatchEvent(n);return}Ts().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(n=>{})}function Hf(e){return me()?xl(e):rt({method:"queryParagraphCache",data:e})}async function qf(e){if(me()){await yl(e);return}return rt({method:"setParagraphCache",data:e})}async function Wf(){if(me())return Promise.resolve();await rt({method:"mockRequest"})}function Xr(e=!1,t=""){return me()?(X.runtime.openOptionsPage(e,t),Promise.resolve()):rt({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function jf(e=""){return me()||ot()?Ke().OPTIONS_URL:X.runtime.getURL("options.html")}function E3(e=""){return X&&X.runtime&&X.runtime.getURL?X.runtime.getURL("options.html"):""}function Zi(e=!1){return me()?(X.extra.openAboutPage(e),Promise.resolve()):rt({method:"openAboutPage"})}function lf(e=!1){return me()?(X.extra.openSearchEnhancement(e),Promise.resolve()):rt({method:"openSearchEnhancement"})}function Xi(e){return me()?(X.extra.openInTab(e),Promise.resolve()):rt({method:"openInTab",data:e})}function es(e=!1){return me()?(X.extra.openEbookViewerPage(e),Promise.resolve()):rt({method:"openEbookViewerPage"})}function I3(e=!1){return me()?Promise.resolve():rt({method:"openHtmlViewerPage"})}function ts(e=!1){return me()?(X.extra.openEbookBuilderPage(e),Promise.resolve()):rt({method:"openEbookBuilderPage"})}function cf(e){ot()}function rc(e=!1){return me()?(X.extra.openPdfViewerPage(e),Promise.resolve()):rt({method:"openPdfViewerPage"})}function O3(e=!1){return me()?(X.extra.openSubtitleBuilderPage(e),Promise.resolve()):rt({method:"openSubtitleBuilderPage"})}function Fc(e){return me()?Promise.resolve():rt({method:"setBadge",data:{text:e}})}function k3(){return me()?(z.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):rt({method:"autoSyncLatestConfig"})}var Te=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=200;translationOptions;constructor(t,n,a){this.serviceConfig=t,this.generalConfig=n,this.translationOptions=a}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getDefaultRateLimit(){return null}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,a){if(t.sentences.length===0)return{sentences:[]};let{sentences:r}=t,o=[],u=null,i=new Set;for(let y of r)y.from&&y.from!=="auto"&&i.add(y.from);let s=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(s=this.serviceConfig.maxTextLengthPerRequest);let c=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(c=this.serviceConfig.maxTextGroupLengthPerRequest);try{o=Gm(r,s,c)}catch(y){if(a)for(let w=0;wy));let l=[],m=[],p=(y,w,b)=>{let S=w.translatedTexts[0];m[y]||(m[y]=w,m[y].translatedTexts=Array(w.sentenceTotalParts).fill(null)),m[y].translatedTexts[w.partIndex]=S;let D=m[y],N=0;for(let _=0;_{let D=await p3(this.translationOptions.translationService);await qn(D||0);let N=w.from;if(w.fromByClient&&w.fromByClient!=="auto"&&(N=w.fromByClient),this.isSupportList)return{...await this.translateList({text:w.tempSentences.map(x=>x.text),from:N,to:w.to,url:b,options:n}),sourceTempSentences:w.tempSentences};{let _=Wg;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(_=this.serviceConfig.translationTextSeparator);let x=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(x=this.serviceConfig.newlinePlaceholderDelimiters);let E="";x&&x.length>=2?E=w.tempSentences.map((M,k)=>k===w.tempSentences.length-1?M.text:M.text+x[0]+(k+1)+x[1]).join(""):E=w.tempSentences.map(M=>M.text).join(_);let T=await this.translate({text:E,from:N,to:w.to,url:b,options:n}),{text:v}=T,C=[];if(x&&x.length>=2){let M=`${x[0]}\\d+${x[1]}`;x&&x.length>=3&&(M=x[2]);let k=new RegExp(M,"g");C=v.split(k)}else C=v.split(_);let R=[];if(C.length>w.tempSentences.length){for(let M=0;M{let{text:N,sourceTempSentences:_}=D;for(let x=0;x{if(a){for(let N=0;N({...y.sentence,text:y.translatedTexts.join("")}))}}detectLanguageLocally(t){return it({text:t,minLength:18,pageLangs:[Dt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}};var Kf=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],ru=class e extends Te{static langMap=new Map(Kf);static langMapReverse=new Map(Kf.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),a=`${t.getUTCMonth()+1}`.padStart(2,"0"),r=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${a}-${r}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.secretId||!t.secretKey)throw new Error("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}async translate(t){let{text:n,from:a,to:r}=t,o=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceText:n,Target:e.langMap.get(r)||r}),u=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:o,service:"tmt",version:"2018-03-21"});return{text:u.Response.TargetText,from:e.langMapReverse.get(u.Response.Source)||a,to:e.langMapReverse.get(u.Response.Target)||r}}async translateList(t){let{text:n,from:a,to:r}=t,o=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceTextList:n,Target:e.langMap.get(r)||r}),u=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:o,service:"tmt",version:"2018-03-21"});return{text:u.Response.TargetTextList,from:e.langMapReverse.get(u.Response.Source)||a,to:e.langMapReverse.get(u.Response.Target)||r}}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:o,version:u}){let i=`${o}.tencentcloudapi.com`,s=new Date,c=`${new Date().valueOf()}`.slice(0,10),l=["POST","/","","content-type:application/json; charset=utf-8",`host:${i}`,"","content-type;host",await In(r)].join(` +`),m=e.getUTCDate(s),p=["TC3-HMAC-SHA256",c,`${m}/${o}/tc3_request`,await In(l)].join(` +`),f=await qp(m,`TC3${n}`),g=await Ii(o,f),y=await Ii("tc3_request",g),w=await Ii(p,y),b=await se({retry:1,url:`https://${o}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:i,"X-TC-Action":a,"X-TC-Timestamp":c,"X-TC-Region":"ap-beijing","X-TC-Version":u,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${m}/${o}/tc3_request, SignedHeaders=content-type;host, Signature=${w}`},body:r});if(b instanceof Error)throw b;if(b.Response&&b.Response.Error&&b.Response.Error.Message)throw new Error(b.Response.Error.Message);return b}};h();var $f=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],vT={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},ou=class e extends Te{static langMap=new Map($f);static langMapReverse=new Map($f.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,a){super(t,n,a)}async translate(t){let{text:n,from:a,to:r}=t,o=new URLSearchParams({source:a,target:r,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),u=await se({url:`https://wxapp.translator.qq.com/api/translate?${o}`,retry:1,method:"GET",headers:vT});return{text:u.targetText,from:e.langMapReverse.get(u.source)||a,to:e.langMapReverse.get(u.target)||r}}};h();var Gf=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],lr=class e extends Te{static langMap=new Map(Gf);static langMapReverse=new Map(Gf.map(([t,n])=>[n,t]));isSupportList=!1;apiUrl="https://translate.googleapis.com/translate_a/single";constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.apiUrl=en(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let o=e.langMap.get(a)||"auto",u=e.langMap.get(r)||r,i=await this.fetchWithoutToken(n,o,u);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async translateXml(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let o=e.langMap.get(a)||"auto",u=e.langMap.get(r)||r,i=await this.fetchXmlWithoutToken(n,o,u);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async fetchXmlWithoutToken(t,n,a){let o="https://translate.googleapis.com/translate_a/t?"+new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}).toString();return{data:await se({retry:2,url:o})}}async fetchWithoutToken(t,n,a){let r=new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}),o=this.apiUrl+"?"+r.toString();return{data:await se({retry:2,url:o})}}};h();h();h();function wT(e,t){return t?e+(t-e%t):e}function AT(e,t){return e.split(t).length-1}function Bc(e){let t=Date.now(),n=1;for(let a of e)n+=AT(a,"i");return wT(t,n)}function kT(e,t){return Math.floor(Math.random()*(t-e+1))+e}function Rc(){return kT(1e6,1e8)}h();h();h();var Ic="https://www2.deepl.com/jsonrpc",Oc="auto",Vf=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];h();function ST(e=Vf){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function Nc(e){return ST()[e.toLowerCase()]}var DT={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function LT(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function MT(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function PT(e,t,n,a,r,o,u){let i=Rc(),s=MT(a,n),c=[];t.forEach(p=>{c.push({text:p,requestAlternatives:3})}),s.id=i,s.params.texts=c,s.params.timestamp=Bc(t);let l=await se({retry:2,method:"POST",url:e,body:LT(s),headers:DT}),m={from:l.result.lang,to:n,text:[]};return l.result.texts.forEach(p=>{m.text.push(p.text)}),m}async function Yf(e,t,n,a=Oc,r,o,u){return t?t&&t.length===1&&t[0]===""?{text:[""],from:a,to:n}:PT(e,t,Nc(n),Nc(a)??"auto",r,o,u):{text:[],from:a,to:n}}var Jf=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],oo=class e extends Te{static langMap=new Map(Jf);static langMapReverse=new Map(Jf.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=Ic;constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.API_URL=en(Ic,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:a,from:r}=t,o=await Yf(this.API_URL,n,e.langMap.get(a)||a,e.langMap.get(r)||"auto");return{text:o.text,from:e.langMapReverse.get(o.from),to:e.langMapReverse.get(o.to)}}};h();var Qf=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Uc="https://transmart.qq.com/api/imt",cr=class e extends Te{static langMap=new Map(Qf);static langMapReverse=new Map(Qf.map(([t,n])=>[n,t]));clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,a){super(t,n,a),this.clientKey=e.getClientKey()}static getClientKey(){return btoa("transmart_crx_"+navigator.userAgent).slice(0,100)}async translate(t){let{text:n,to:a}=t,r=await this.detectLanguage(n),o=e.langMap.get(r)||r,u=e.langMap.get(a)||a;if(r===a)return{text:n,from:r,to:a};let i=Ke(),s=t.url;i.INSTALL_FROM==="firefox_store"&&(s=Zf());let l=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:o,orig_url:s},target:{lang:u}}),m=await se({url:Uc,body:l,method:"POST",retry:2});if(m.header.ret_code!=="succ")throw new Error(m.message||m.header.ret_code);return{text:m.auto_translation,from:r||"auto",to:a}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:a,to:r}=t,o=Ke(),u=t.url;if(o.INSTALL_FROM==="firefox_store"&&(u=Zf()),a.length===1){let f=await this.translate({from:n,text:a[0],to:r,url:u,options:t.options});return{text:[f.text],from:f.from,to:f.to}}let s=await this.detectLanguage(a.join(` +`));if(s===r)return{text:a,from:s,to:r};let c=e.langMap.get(s)||s,l=e.langMap.get(r)||r,m=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:a,lang:c,orig_url:u},target:{lang:l},type:"plain"}),p=await se({url:Uc,body:m,method:"POST"});if(p.header.ret_code!=="succ")throw new Error(p.message||p.header.ret_code);return{text:p.auto_translation,from:s||"auto",to:r}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return e.detectLanguageRemotelyByTransmart(t)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},a=await se({url:Uc,method:"POST",body:JSON.stringify(n)});if(a.header.ret_code!=="succ")throw new Error(a.message||a.header.ret_code);let r=a.language,o=e.langMapReverse.get(r);return o||r}};function Zf(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}h();h();function Xf(){return Math.random()>=0}var uo=class extends Te{isSupportList=!0;maxTextLength=1200;maxTextGroupLength=25;async translate(t){let{text:n}=t,a=n.match(/^\s*/)[0].length;return{text:n.slice(0,a)+"\u6A21\u62DF\uFF1A"+n.slice(a,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:a,to:r}=t;if(await Wf(),!Xf())throw new Error("\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:a,to:r,text:[""]}:{from:a,to:r,text:n.map(o=>{let u=o.match(/^\s*/)[0].length;return o.slice(0,u)+"\u6A21\u62DF\uFF1A"+o.slice(u,-6)})}}};h();var th=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],jc=new Map(th),eh=new Map(th.map(([e,t])=>[t,e])),zc=class e extends Te{static langMap=jc;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,a){if(super(t,n,a),!t||!t.apikey)throw new Error("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:a,to:r}=t,o=await se({retry:2,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:jc.get(a)||"auto",target_lang:jc.get(r)||r})});if(o.status){let u=o;return u.result&&r=="zh-TW",{text:u.result,from:eh.get(u.source_lang),to:eh.get(u.target_lang)}}else throw new Error(o.msg)}},Es=zc;h();var nh=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],uu=new Map(nh),FT=new Map(nh.map(([e,t])=>[t,e])),Hc=class extends Te{static langMap=uu;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl="https://deepl.immersivetranslate.com/v2/translate";immersiveTranslateDeeplTokenUrl="https://api.immersivetranslate.com";immersiveTranslateDeeplProApiUrl=ta()||na()?"https://api2.immersivetranslate.com/deepl/translate":"https://test-api2.immersivetranslate.com/deepl/translate";provider="custom";splitor="";apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,a){if(super(t,n,a),t=t||{},this.splitor=t.qualityDelimiterBeta||"",t.provider==="pro")if(this.provider="pro",a.userToken){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=a.userToken,this.apiKeys=this.authKey.split(",").map(r=>r.trim())}else throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey.split(",").map(r=>r.trim()),!this.authKey)throw new Error("authKey are required");if(!this.authKey)throw new Error("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=en(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=en(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=en(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=en(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=en(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getDefaultRateLimit(){if(this.provider==="pro"){if(this.serviceConfig&&this.serviceConfig.immersiveTranslateProLimit){let t=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(t)&&(t=15),{limit:t,interval:1050}}return{limit:15,interval:1050}}else return{limit:3,interval:1050}}async translateList(t){let{from:n,to:a,text:r}=t,o={source_lang:uu.get(n)||"",target_lang:uu.get(a)||a},u=this.getRandomKey(),i=new URLSearchParams(o);this.splitor?i.append("text",r.join(this.splitor)):r.forEach(g=>{i.append("text",g)});let s=i.toString(),c={text:this.splitor?[r.join(this.splitor)]:r,source_lang:uu.get(n)||"auto",target_lang:uu.get(a)||a},l=this.freeApiUrl;u.endsWith(":im")?l=this.immersiveTranslateApiUrl:u.endsWith(":fx")||(l=this.proApiUrl);let m;this.provider==="pro"?m=await se({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:u,"Content-Type":"application/json"}}):u.startsWith("immersive_")?m=await se({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:u,"Content-Type":"application/json"}}):m=await se({retry:2,url:l,method:"POST",body:s,headers:{Authorization:"DeepL-Auth-Key "+u,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}});let{translations:p}=m,f=[];if(this.splitor?f=p[0]?.text.split(this.splitor).map(g=>g):f=p.map(g=>g.text),a==="zh-TW"){let g=this.serviceConfig||{};g&&g.googleApiUrl&&(g.apiUrl=g.googleApiUrl);let w=await new lr(this.serviceConfig,this.generalConfig,this.translationOptions).translate({from:"zh-CN",to:"zh-TW",text:p.map(b=>b.text).join(` +`),url:"",options:{}});w&&w.text&&(f=w.text.split(` +`))}return{text:f,from:p[0]&&FT.get(p[0].detected_source_language)||n,to:a}}},ah=Hc;h();var _T=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],qc=new Map(_T),Wc=class extends Te{static langMap=qc;APIKEY="";isSupportList=!1;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:a,to:r}=t,u={url:"https://api.niutrans.com/NiuTransServer/translation",retry:2,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:n,from:qc.get(a)||a,to:qc.get(r)||r,apikey:this.APIKEY})},i=await se(u);if(i.tgt_text){let s=i.tgt_text;return s.endsWith(` +`)&&(s=s.slice(0,-1)),{text:s,from:a,to:r}}else throw new Error(JSON.stringify(i))}},rh=Wc;h();var BT=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],Kc=new Map(BT),$c=class extends Te{static langMap=Kc;APIKEY="";region="eastasia";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region)}async translateList(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:[]};let o={"api-version":"3.0",to:Kc.get(r)||r};a!=="auto"&&(o.from=Kc.get(a)||a);let u=new URLSearchParams(o),i=JSON.stringify(n.map(l=>({text:l}))),s={url:"https://api.cognitive.microsofttranslator.com/translate?"+u.toString(),retry:2,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:i},c=await se(s);if(c.length===0)throw new Error("server response invalid");return{from:a,to:r,text:c.map(l=>l.translations.map(p=>p.text).join(" "))}}},oh=$c;h();var RT=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],iu=new Map(RT),Gc=class extends Te{isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:3,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t,o;if(n.length===0)return{from:a,to:r,text:[]};let u=`
-`,i=n.join(u),s={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:2,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:""};a==="auto"||!iu.get(a)?(o=(await se({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:i})).langCode,s.body=JSON.stringify({text:i,source:o||iu.get(a)||a,target:iu.get(r)||r})):s.body=JSON.stringify({text:i,source:iu.get(a),target:iu.get(r)||r});let c=await se(s);if(c.translatedText==="")throw new Error("server response invalid");let l=c.translatedText.split("
").map(f=>f.trim());return{from:a,to:r,text:l}}},rh=$c;h();var RT=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],su=new Map(RT),Gc=class extends Te{static langMap=su;provider="custom";APIKEY="";apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;systemPrompt="You are a professional translation engine, please translate the text into a colloquial, professional, elegant and fluent content, without the style of machine translation. You must only translate the text content, never interpret it.";prompt=`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +`,i=n.join(u),s={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:2,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:""};a==="auto"||!iu.get(a)?(o=(await se({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:i})).langCode,s.body=JSON.stringify({text:i,source:o||iu.get(a)||a,target:iu.get(r)||r})):s.body=JSON.stringify({text:i,source:iu.get(a),target:iu.get(r)||r});let c=await se(s);if(c.translatedText==="")throw new Error("server response invalid");let l=c.translatedText.split("
").map(m=>m.trim());return{from:a,to:r,text:l}}},uh=Gc;h();var IT=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],Cs=new Map(IT),Vc=class extends Te{static langMap=Cs;provider="custom";APIKEY="";apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;systemPrompt="You are a professional translation engine, please translate the text into a colloquial, professional, elegant and fluent content, without the style of machine translation. You must only translate the text content, never interpret it.";prompt=`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`;model="gpt-3.5-turbo-0613";apiUrl="https://api.openai.com/v1/chat/completions";immersiveApiUrl="https://openai-api.immersivetranslate.com/v1/chat/completions";immersiveProApiUrl=na()||aa()?"https://api2.immersivetranslate.com/openai/v1/chat/completions":"https://test-api2.immersivetranslate.com/openai/v1/chat/completions";splitor="
";constructor(t,n,a){if(super(t,n,a),t||(t={}),t.provider&&(this.provider=t.provider),t.APIKEY&&(this.APIKEY=t.APIKEY?.trim(),this.apiKeys=this.APIKEY.split(",").map(r=>r.trim())),this.provider==="pro"){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");if(this.APIKEY=a.userToken||"",this.apiKeys=this.APIKEY.split(",").map(r=>r.trim()),!this.APIKEY)throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002")}t.prompt&&(this.prompt=t.prompt),t.model&&(this.model=t.model),t&&t.apiUrl&&(this.apiUrl=en(this.apiUrl,t.apiUrl)),t&&t.immersiveApiUrl&&(this.immersiveApiUrl=en(this.immersiveApiUrl,t.immersiveApiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=en(this.immersiveProApiUrl,t.immersiveProApiUrl)),t&&t.systemPrompt&&(this.systemPrompt=t.systemPrompt)}getDefaultRateLimit(){return{limit:10,interval:1300}}translate(t){return this.model.includes("003")?(this.maxTextGroupLength=1,this.translate3(t)):this.translate3_5(t)}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate3_5(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let o=su.get(a)||a,u=su.get(r)||r,i=this.prompt.replace(/{{to}}/g,u).replace(/{{text}}/g,n).replace(/{{from}}/g,o),s=[];if(this.systemPrompt){let p=this.systemPrompt.replace(/{{to}}/g,u).replace(/{{text}}/g,n).replace(/{{from}}/g,o);s.push({role:"system",content:p})}this.prompt&&s.push({role:"user",content:i}),this.prompt.indexOf("{{text}}")===-1&&s.push({role:"user",content:n});let c={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:this.model,temperature:0,messages:s})},l=this.getRandomKey();this.provider==="pro"?(c.url=this.immersiveProApiUrl,c.headers.token=l):l&&(c.headers.Authorization="Bearer "+l,c.headers["api-key"]=l,l.startsWith("immersiveopenai_")&&(c.url=this.immersiveProApiUrl,c.headers.token=l,l.endsWith("x")||(c.headers["Immersive-Corpus-Campagin"]="yes"),delete c.headers.Authorization,delete c.headers["api-key"]));let f=await se(c);if(f&&f.choices&&f.choices.length>0&&f.choices[0].message&&f.choices[0].message.content){let p=f.choices[0].message.content.trim();return(p.includes("\u62B1\u6B49")&&p.includes("\u7FFB\u8BD1")||p.includes("\u8BF7\u5C06\u6587\u672C\u7FFB\u8BD1\u6210")||p.includes("\u4E0D\u8981\u89E3\u91CA\u4EFB\u4F55"))&&(p=n),!n.includes(".")&&(p.endsWith("\u3002")||p.endsWith("."))&&(p=p.slice(0,-1)),{from:a,to:r,text:p}}else throw new Error("server response invalid: "+JSON.stringify(f))}async translate3(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let o=this.prompt.replace(/{{to}}/g,su.get(r)||r).replace(/{{text}}/g,n).replace(/{{from}}/g,su.get(a)||a),u={url:"https://api.openai.com/v1/completions",method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.APIKEY},body:JSON.stringify({model:this.model,prompt:o,temperature:0})},i=await se(u);if(i&&i.choices&&i.choices.length>0&&i.choices[0].text){let s=i.choices[0].text.trim();return{from:a,to:r,text:s}}else throw new Error("server response invalid: "+JSON.stringify(i))}},oh=Gc;h();var IT=[["auto","auto"],["zh-CN","zh-Hans"],["zh-TW","zh-Hant"],["en","en"],["yue","\u7CA4\u8BED"],["wyw","\u53E4\u6587"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["de","de"],["es","es"],["it","it"],["ru","ru"],["pt","pt"],["nl","nl"],["pl","pl"],["ar","ar"],["af","af"],["am","am"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["el","el"],["eo","eo"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ku","ku"],["ky","ky"],["la","lo"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["no","no"],["ny","ny"],["pa","pa"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["sr-Cyrl","sr"],["sr-Latn","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],vs=new Map(IT),Vc="chatgptWebAccessToken";async function uh(){let e=await Uo(Vc);if(e)return e;let t=await se({url:"https://chat.openai.com/api/auth/session",method:"get",responseType:"json"});if(!t.accessToken)throw new Error("UNAUTHORIZED");return await jo(Vc,t.accessToken,10*60*1e3),t.accessToken}var Yc=class e{static instance;constructor(){return e.instance||(e.instance=this),this}#e=Promise.resolve();enqueue(t){return this.#e=this.#e.then(()=>t()),this.#e}},Jc=new Yc;Object.freeze(Jc);var lu=class extends Te{accessToken="";customChatGptWebApiUrl="https://chat.openai.com";customChatGptWebApiPath="/backend-api/conversation";maxTextGroupLength=1;maxTextLength=1200;isStream=!1;isSupportList=!1;prompt=`You are a translation engine, you can only translate text and cannot interpret it, and do not explain.Translate the text below to {{to}}: +{{text}}`;model="gpt-3.5-turbo-0613";apiUrl="https://api.openai.com/v1/chat/completions";immersiveApiUrl="https://openai-api.immersivetranslate.com/v1/chat/completions";immersiveProApiUrl=ta()||na()?"https://api2.immersivetranslate.com/openai/v1/chat/completions":"https://test-api2.immersivetranslate.com/openai/v1/chat/completions";splitor="
";constructor(t,n,a){if(super(t,n,a),t||(t={}),t.provider&&(this.provider=t.provider),t.APIKEY&&(this.APIKEY=t.APIKEY?.trim(),this.apiKeys=this.APIKEY.split(",").map(r=>r.trim())),this.provider==="pro"){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");if(this.APIKEY=a.userToken||"",this.apiKeys=this.APIKEY.split(",").map(r=>r.trim()),!this.APIKEY)throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002")}t.prompt&&(this.prompt=t.prompt),t.model&&(this.model=t.model),t&&t.apiUrl&&(this.apiUrl=en(this.apiUrl,t.apiUrl)),t&&t.immersiveApiUrl&&(this.immersiveApiUrl=en(this.immersiveApiUrl,t.immersiveApiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=en(this.immersiveProApiUrl,t.immersiveProApiUrl)),t&&t.systemPrompt&&(this.systemPrompt=t.systemPrompt)}getDefaultRateLimit(){return{limit:10,interval:1300}}translate(t){return this.model.includes("003")||this.model.includes("gpt-3.5-turbo-instruct")?(this.maxTextGroupLength=1,this.translate3(t)):this.translate3_5(t)}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate3_5(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let o=Cs.get(a)||a,u=Cs.get(r)||r,i=this.prompt.replace(/{{to}}/g,u).replace(/{{text}}/g,n).replace(/{{from}}/g,o),s=[];if(this.systemPrompt){let p=this.systemPrompt.replace(/{{to}}/g,u).replace(/{{text}}/g,n).replace(/{{from}}/g,o);s.push({role:"system",content:p})}this.prompt&&s.push({role:"user",content:i}),this.prompt.indexOf("{{text}}")===-1&&s.push({role:"user",content:n});let c={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:this.model,temperature:0,messages:s})},l=this.getRandomKey();this.provider==="pro"?(c.url=this.immersiveProApiUrl,c.headers.token=l):l&&(c.headers.Authorization="Bearer "+l,c.headers["api-key"]=l,l.startsWith("immersiveopenai_")&&(c.url=this.immersiveProApiUrl,c.headers.token=l,l.endsWith("x")||(c.headers["Immersive-Corpus-Campagin"]="yes"),delete c.headers.Authorization,delete c.headers["api-key"]));let m=await se(c);if(m&&m.choices&&m.choices.length>0&&m.choices[0].message&&m.choices[0].message.content){let p=m.choices[0].message.content.trim();return(p.includes("\u62B1\u6B49")&&p.includes("\u7FFB\u8BD1")||p.includes("\u8BF7\u5C06\u6587\u672C\u7FFB\u8BD1\u6210")||p.includes("\u4E0D\u8981\u89E3\u91CA\u4EFB\u4F55"))&&(p=n),!n.includes(".")&&(p.endsWith("\u3002")||p.endsWith("."))&&(p=p.slice(0,-1)),{from:a,to:r,text:p}}else throw new Error("server response invalid: "+JSON.stringify(m))}async translate3(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let o=`Translate to ${Cs.get(r)||r}: -{{text}}`;constructor(t,n,a){super(t,n,a)}throttleDebounce(t,n,a){let r=0,o;return(...u)=>{let i=Date.now(),s=this,c=()=>{r=i,t.apply(s,u)};i-r>=n?(clearTimeout(o),c()):(clearTimeout(o),o=setTimeout(()=>{c()},a))}}async deleteConversation(t){if(t){let n=await se({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}/${t}`,method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({is_visible:!1})});return z.debug("delete conversation res:",n),n}}async translate(t){return await Jc.enqueue(async()=>{let{text:n,from:a,to:r}=t;if(n.length===0)return Promise.resolve({from:a,to:r,text:""});let o=vs.get(a)||a,u=vs.get(r)||r;if(this.accessToken=await uh(),!this.accessToken||this.accessToken==="")throw new Error("token error");let i="text-davinci-002-render-sha-mobile";if(!i)throw new Error("No available model");let s=this.prompt.replace(/{{to}}/g,u).replace(/{{text}}/g,n).replace(/{{from}}/g,o);try{let c=await se({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"stream",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:Fn(),role:"user",content:{content_type:"text",parts:[s]}}],model:i,parent_message_id:Fn()})});return z.debug("get chatgpt res:",c),await this.deleteConversation(c?.conversation_id),Promise.resolve({from:a,to:r,text:c?.message?.content?.parts?.[0]})}catch(c){throw z.debug("post chatgpt error:",c),await zo(Vc),c}})}async translateStream(t,n){let{text:a,from:r,to:o}=t;if(a.length===0){n(null,{from:r,to:o,text:""});return}let u=this.throttleDebounce(function(i){let{from:s,to:c,text:l}=i;n(null,{from:s,to:c,text:l})},300,200);await Jc.enqueue(async()=>{let i="chatgpt"+Fn(),s=Q.runtime.connect({name:i}),c,l;s.onMessage.addListener(T=>{if(!(!T||T==="")){if(T==="[DONE]"){s.disconnect(),this.deleteConversation(c);return}try{l=JSON.parse(T)}catch(w){z.debug("chatgpt json error",w,T);return}c=l?.conversation_id,l?.message?.author?.role==="assistant"&&u({from:r,to:o,text:l?.message?.content?.parts?.[0]})}});let f=vs.get(r)||r,p=vs.get(o)||o;if(this.accessToken=await uh(),!this.accessToken||this.accessToken==="")throw new Error("token error");let m="text-davinci-002-render-sha";if(!m)throw new Error("No available model");let g=this.prompt.replace(/{{to}}/g,p).replace(/{{text}}/g,a).replace(/{{from}}/g,f);se({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"realStream",extra:{portName:i},headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:Fn(),role:"user",content:{content_type:"text",parts:[g]}}],model:m,parent_message_id:Fn()})}).catch(T=>{z.debug("chatgpt error",T),s.disconnect(),this.deleteConversation(c),n(T,{from:r,to:o,text:""})})})}};h();var lh=e2(ih()),sh=[["af","af"],["am","am"],["ar","ar"],["auto","auto"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fil","fil"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["mww","mww"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["otq","otq"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["tn","tn"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tlh","tlh"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["yua","yua"],["yue","yue"],["bo","bo"],["sa","sa"],["zh-CN","zh"],["zh-TW","zh-tw"],["zu","zu"]],du=class e extends Te{static langMap=new Map(sh);static langMapReverse=new Map(sh.map(([t,n])=>[n,t]));static SHA1=new lh.default.SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,a){if(super(t,n,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new Error("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:a,to:r}=t,o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:n,TargetLanguage:e.langMap.get(r)||r},u=this.scene=="general"?"TranslateGeneral":"Translate",i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:u,payload:o,service:"mt",version:"2018-10-12"});return{text:i.Data.Translated,from:i.Data.DetectedLanguage&&e.langMapReverse.get(i.Data.DetectedLanguage)||a||"auto",to:e.langMapReverse.get(r)||r}}async translateList(t){let{text:n,from:a,to:r}=t,o=this.scene=="general"?"translate_standard":"translate_ecommerce",u={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:JSON.stringify(n.reduce((c,l,f)=>(c[f]=l,c),{})),TargetLanguage:e.langMap.get(r)||r,ApiType:o},i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:u,service:"mt",version:"2018-10-12"}),s=i.TranslatedList.length&&i.TranslatedList[0].detectedLanguage;return{text:i.TranslatedList.sort((c,l)=>parseInt(c.index)-parseInt(l.index)).map(c=>c.translated),from:s&&e.langMapReverse.get(s)||a||"auto",to:e.langMapReverse.get(r)||r}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:o,version:u}){let i=new Date().toISOString(),s=Math.random().toString(36).slice(2),c={Action:a,Version:u,Format:"JSON",AccessKeyId:t,SignatureNonce:s,Timestamp:i,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},f=(T=>{let b=Object.keys(T).sort().map(S=>`${this.encode(S)}=${this.encode(T[S])}`).join("&");return`POST&%2F&${this.encode(b)}`})(Object.assign({},c,r)),p=e.SHA1.b64_hmac(`${n}&`,f),m=new URLSearchParams(Object.assign({},c,{Signature:p})).toString(),g=await se({retry:1,url:`https://${o}.aliyuncs.com?${m}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(r).toString()});if(g instanceof Error)throw g;if(g.Code!=="200")throw new Error(g.Message);return g}};h();h();var OT=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],ct={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},Qc=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},Zc=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let a=Qc(t);if(a)return Array.isArray(n)?`${a}=${n.map(Qc).sort().join(`&${a}=`)}`:`${a}=${Qc(n)}`}).filter(t=>t).join("&"),uo=class{request;serviceName;bodySha256;constructor(t,n,a){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,a=a||{},this.bodySha256=a.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(a=>{let r=t[a];return typeof r<"u"&&r!==null}).sort().map(a=>{n[a]=t[a]}),n}async addAuthorization(t,n){let a=this.getDateTime(n);await this.addHeaders(t,a),this.request.headers.Authorization=await this.authorization(t,a)}async authorization(t,n){let a=[],r=this.credentialString(n);return a.push(`${ct.algorithm} Credential=${t.accessKeyId}/${r}`),a.push(`SignedHeaders=${this.signedHeaders()}`),a.push(`Signature=${await this.signature(t,n)}`),a.join(", ")}async getSignUrl(t,n){let a=this.getDateTime(n),r={...this.request.params},o=this.request.params,u=this.request.headers;t.sessionToken&&(r[ct.tokenHeader]=t.sessionToken),r[ct.dateHeader]=a,r[ct.notSignBody]="",r[ct.credential]=`${t.accessKeyId}/${this.credentialString(a)}`,r[ct.algorithmKey]=ct.algorithm,r[ct.signHeadersKey]="",r[ct.signQueriesKey]=void 0,r[ct.signatureKey]=void 0,r=this.sortParams(r),this.request.params=r,this.request.headers={};let i=await this.signature(t,a);return this.request.params=o,this.request.headers=u,r[ct.signQueriesKey]=Object.keys(r).sort().join(";"),r[ct.signatureKey]=i,Zc(r)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[ct.dateHeader]=n,t.sessionToken&&(this.request.headers[ct.tokenHeader]=t.sessionToken),this.request.body){let a=this.request.body;this.request.headers[ct.contentSha256Header]=await In(a)}}async signature(t,n){let a=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return Ii(await Ba(await this.stringToSign(n),a))}async stringToSign(t){let n=[];n.push(ct.algorithm),n.push(t),n.push(this.credentialString(t));let a=await this.canonicalString();return n.push(await this.hexEncodedHash(a)),n.join(` -`)}async canonicalString(){let t=[],n=this.request.pathname||"/";t.push(this.request.method.toUpperCase()),t.push(n);let a=Zc(this.request.params)||"";return t.push(a),t.push(`${this.canonicalHeaders()} +${n} =>`,u=this.getRandomKey(),i={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.APIKEY}},s={model:this.model,prompt:o,temperature:0};this.provider==="pro"?(i.url=this.immersiveProApiUrl,i.headers.token=u):u&&(i.headers.Authorization="Bearer "+u,i.headers["api-key"]=u,u.startsWith("immersiveopenai_")&&(i.url=this.immersiveProApiUrl,i.headers.token=u,u.endsWith("x")||(i.headers["Immersive-Corpus-Campagin"]="yes"),delete i.headers.Authorization,delete i.headers["api-key"])),i.url=i.url.replace("/chat/","/");let c=2048,l=o.length*2.2;l0&&m.choices[0].text){let p=m.choices[0].text.trim();return{from:a,to:r,text:p}}else throw new Error("server response invalid: "+JSON.stringify(m))}},ih=Vc;h();var OT=[["auto","auto"],["zh-CN","zh-Hans"],["zh-TW","zh-Hant"],["en","en"],["yue","\u7CA4\u8BED"],["wyw","\u53E4\u6587"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["de","de"],["es","es"],["it","it"],["ru","ru"],["pt","pt"],["nl","nl"],["pl","pl"],["ar","ar"],["af","af"],["am","am"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["el","el"],["eo","eo"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ku","ku"],["ky","ky"],["la","lo"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["no","no"],["ny","ny"],["pa","pa"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["sr-Cyrl","sr"],["sr-Latn","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],vs=new Map(OT),Yc="chatgptWebAccessToken";async function sh(){let e=await Uo(Yc);if(e)return e;let t=await se({url:"https://chat.openai.com/api/auth/session",method:"get",responseType:"json"});if(!t.accessToken)throw new Error("UNAUTHORIZED");return await jo(Yc,t.accessToken,10*60*1e3),t.accessToken}var Jc=class e{static instance;constructor(){return e.instance||(e.instance=this),this}#e=Promise.resolve();enqueue(t){return this.#e=this.#e.then(()=>t()),this.#e}},Qc=new Jc;Object.freeze(Qc);var su=class extends Te{accessToken="";customChatGptWebApiUrl="https://chat.openai.com";customChatGptWebApiPath="/backend-api/conversation";maxTextGroupLength=1;maxTextLength=1200;isStream=!1;isSupportList=!1;prompt=`You are a translation engine, you can only translate text and cannot interpret it, and do not explain.Translate the text below to {{to}}: + +{{text}}`;constructor(t,n,a){super(t,n,a)}throttleDebounce(t,n,a){let r=0,o;return(...u)=>{let i=Date.now(),s=this,c=()=>{r=i,t.apply(s,u)};i-r>=n?(clearTimeout(o),c()):(clearTimeout(o),o=setTimeout(()=>{c()},a))}}async deleteConversation(t){if(t){let n=await se({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}/${t}`,method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({is_visible:!1})});return z.debug("delete conversation res:",n),n}}async translate(t){return await Qc.enqueue(async()=>{let{text:n,from:a,to:r}=t;if(n.length===0)return Promise.resolve({from:a,to:r,text:""});let o=vs.get(a)||a,u=vs.get(r)||r;if(this.accessToken=await sh(),!this.accessToken||this.accessToken==="")throw new Error("token error");let i="text-davinci-002-render-sha-mobile";if(!i)throw new Error("No available model");let s=this.prompt.replace(/{{to}}/g,u).replace(/{{text}}/g,n).replace(/{{from}}/g,o);try{let c=await se({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"stream",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:Fn(),role:"user",content:{content_type:"text",parts:[s]}}],model:i,parent_message_id:Fn()})});return z.debug("get chatgpt res:",c),await this.deleteConversation(c?.conversation_id),Promise.resolve({from:a,to:r,text:c?.message?.content?.parts?.[0]})}catch(c){throw z.debug("post chatgpt error:",c),await zo(Yc),c}})}async translateStream(t,n){let{text:a,from:r,to:o}=t;if(a.length===0){n(null,{from:r,to:o,text:""});return}let u=this.throttleDebounce(function(i){let{from:s,to:c,text:l}=i;n(null,{from:s,to:c,text:l})},300,200);await Qc.enqueue(async()=>{let i="chatgpt"+Fn(),s=X.runtime.connect({name:i}),c,l;s.onMessage.addListener(y=>{if(!(!y||y==="")){if(y==="[DONE]"){s.disconnect(),this.deleteConversation(c);return}try{l=JSON.parse(y)}catch(w){z.debug("chatgpt json error",w,y);return}c=l?.conversation_id,l?.message?.author?.role==="assistant"&&u({from:r,to:o,text:l?.message?.content?.parts?.[0]})}});let m=vs.get(r)||r,p=vs.get(o)||o;if(this.accessToken=await sh(),!this.accessToken||this.accessToken==="")throw new Error("token error");let f="text-davinci-002-render-sha";if(!f)throw new Error("No available model");let g=this.prompt.replace(/{{to}}/g,p).replace(/{{text}}/g,a).replace(/{{from}}/g,m);se({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"realStream",extra:{portName:i},headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:Fn(),role:"user",content:{content_type:"text",parts:[g]}}],model:f,parent_message_id:Fn()})}).catch(y=>{z.debug("chatgpt error",y),s.disconnect(),this.deleteConversation(c),n(y,{from:r,to:o,text:""})})})}};h();var dh=t2(lh()),ch=[["af","af"],["am","am"],["ar","ar"],["auto","auto"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fil","fil"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["mww","mww"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["otq","otq"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["tn","tn"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tlh","tlh"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["yua","yua"],["yue","yue"],["bo","bo"],["sa","sa"],["zh-CN","zh"],["zh-TW","zh-tw"],["zu","zu"]],cu=class e extends Te{static langMap=new Map(ch);static langMapReverse=new Map(ch.map(([t,n])=>[n,t]));static SHA1=new dh.default.SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,a){if(super(t,n,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new Error("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:a,to:r}=t,o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:n,TargetLanguage:e.langMap.get(r)||r},u=this.scene=="general"?"TranslateGeneral":"Translate",i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:u,payload:o,service:"mt",version:"2018-10-12"});return{text:i.Data.Translated,from:i.Data.DetectedLanguage&&e.langMapReverse.get(i.Data.DetectedLanguage)||a||"auto",to:e.langMapReverse.get(r)||r}}async translateList(t){let{text:n,from:a,to:r}=t,o=this.scene=="general"?"translate_standard":"translate_ecommerce",u={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:JSON.stringify(n.reduce((c,l,m)=>(c[m]=l,c),{})),TargetLanguage:e.langMap.get(r)||r,ApiType:o},i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:u,service:"mt",version:"2018-10-12"}),s=i.TranslatedList.length&&i.TranslatedList[0].detectedLanguage;return{text:i.TranslatedList.sort((c,l)=>parseInt(c.index)-parseInt(l.index)).map(c=>c.translated),from:s&&e.langMapReverse.get(s)||a||"auto",to:e.langMapReverse.get(r)||r}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:o,version:u}){let i=new Date().toISOString(),s=Math.random().toString(36).slice(2),c={Action:a,Version:u,Format:"JSON",AccessKeyId:t,SignatureNonce:s,Timestamp:i,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},m=(y=>{let b=Object.keys(y).sort().map(S=>`${this.encode(S)}=${this.encode(y[S])}`).join("&");return`POST&%2F&${this.encode(b)}`})(Object.assign({},c,r)),p=e.SHA1.b64_hmac(`${n}&`,m),f=new URLSearchParams(Object.assign({},c,{Signature:p})).toString(),g=await se({retry:1,url:`https://${o}.aliyuncs.com?${f}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(r).toString()});if(g instanceof Error)throw g;if(g.Code!=="200")throw new Error(g.Message);return g}};h();h();var NT=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],dt={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},Zc=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},Xc=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let a=Zc(t);if(a)return Array.isArray(n)?`${a}=${n.map(Zc).sort().join(`&${a}=`)}`:`${a}=${Zc(n)}`}).filter(t=>t).join("&"),io=class{request;serviceName;bodySha256;constructor(t,n,a){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,a=a||{},this.bodySha256=a.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(a=>{let r=t[a];return typeof r<"u"&&r!==null}).sort().map(a=>{n[a]=t[a]}),n}async addAuthorization(t,n){let a=this.getDateTime(n);await this.addHeaders(t,a),this.request.headers.Authorization=await this.authorization(t,a)}async authorization(t,n){let a=[],r=this.credentialString(n);return a.push(`${dt.algorithm} Credential=${t.accessKeyId}/${r}`),a.push(`SignedHeaders=${this.signedHeaders()}`),a.push(`Signature=${await this.signature(t,n)}`),a.join(", ")}async getSignUrl(t,n){let a=this.getDateTime(n),r={...this.request.params},o=this.request.params,u=this.request.headers;t.sessionToken&&(r[dt.tokenHeader]=t.sessionToken),r[dt.dateHeader]=a,r[dt.notSignBody]="",r[dt.credential]=`${t.accessKeyId}/${this.credentialString(a)}`,r[dt.algorithmKey]=dt.algorithm,r[dt.signHeadersKey]="",r[dt.signQueriesKey]=void 0,r[dt.signatureKey]=void 0,r=this.sortParams(r),this.request.params=r,this.request.headers={};let i=await this.signature(t,a);return this.request.params=o,this.request.headers=u,r[dt.signQueriesKey]=Object.keys(r).sort().join(";"),r[dt.signatureKey]=i,Xc(r)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[dt.dateHeader]=n,t.sessionToken&&(this.request.headers[dt.tokenHeader]=t.sessionToken),this.request.body){let a=this.request.body;this.request.headers[dt.contentSha256Header]=await In(a)}}async signature(t,n){let a=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return Ri(await Ra(await this.stringToSign(n),a))}async stringToSign(t){let n=[];n.push(dt.algorithm),n.push(t),n.push(this.credentialString(t));let a=await this.canonicalString();return n.push(await this.hexEncodedHash(a)),n.join(` +`)}async canonicalString(){let t=[],n=this.request.pathname||"/";t.push(this.request.method.toUpperCase()),t.push(n);let a=Xc(this.request.params)||"";return t.push(a),t.push(`${this.canonicalHeaders()} `),t.push(this.signedHeaders()),t.push(await this.hexEncodedBodyHash()),t.join(` `)}canonicalHeaders(){let t=[];Object.keys(this.request.headers).forEach(a=>{t.push([a,this.request.headers[a]])}),t.sort((a,r)=>a[0].toLowerCase(){let r=a[0].toLowerCase();if(this.isSignableHeader(r)){let o=a[1];if(typeof o>"u"||o===null||typeof o.toString!="function")throw new Error(`Header ${r} contains invalid value`);n.push(`${r}:${this.canonicalHeaderValues(o.toString())}`)}}),n.join(` -`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await In(t)}async hexEncodedBodyHash(){return this.request.headers[ct.contentSha256Header]?this.request.headers[ct.contentSha256Header]:this.request.body?await this.hexEncodedHash(Zc(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return OT.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,a,r){let o=await Ba(n,`${ct.kDatePrefix}${t.secretKey}`),u=await Ba(a,o),i=await Ba(r,u);return Ba(ct.v4Identifier,i)}createScope(t,n,a){return[t.substr(0,8),n,a,ct.v4Identifier].join("/")}};var ch=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Xc=new Map(ch),NT=new Map(ch.map(([e,t])=>[t,e])),e4=class extends Te{static langMap=Xc;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,a){if(super(t,n,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new Error("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let a={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},r=new uo(a,"translate");await r.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let o=new URLSearchParams(a.params),u=await se({retry:2,url:"https://open.volcengineapi.com"+a.pathname+"?"+o.toString(),headers:r.request.headers,method:a.method,body:a.body});if(u.DetectedLanguageList&&u.DetectedLanguageList.length>0)return u.DetectedLanguageList[0].Language;if(u.ResponseMetadata&&u.ResponseMetadata.Error){let i=u.ResponseMetadata.Error;throw new Tt(i.Code,i.Message)}else if(u.ResponseMetaData&&u.ResponseMetaData.Error){let i=u.ResponseMetaData.Error;throw new Tt(i.Code,i.Message)}else throw new Error("response: "+JSON.stringify(u))}async translateList(t){let{text:n,from:a,to:r}=t,o=Xc.get(a),u={TargetLanguage:Xc.get(r)||r,TextList:n};o?u.SourceLanguage=o:u.SourceLanguage=await this.remoteDetectLanguage(n.join(` -`).slice(0,1e3));let i={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(u)},s=new uo(i,"translate");await s.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let c=new URLSearchParams(i.params),l=await se({retry:2,url:"https://open.volcengineapi.com"+i.pathname+"?"+c.toString(),headers:s.request.headers,method:i.method,body:i.body});if(l.TranslationList){let f=l.TranslationList.map(m=>m.Translation),p=a;return l.TranslationList.length>0&&l.TranslationList[0].DetectedSourceLanguage&&(p=NT.get(l.TranslationList[0].DetectedSourceLanguage)||a),{text:f,from:p,to:r}}else if(l.ResponseMetadata&&l.ResponseMetadata.Error){let f=l.ResponseMetadata.Error;throw new Tt(f.Code,f.Message)}else if(l.ResponseMetaData&&l.ResponseMetaData.Error){let f=l.ResponseMetaData.Error;throw new Tt(f.Code,f.Message)}else throw new Error("response: "+JSON.stringify(l))}},dh=e4;h();var gh=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],t4=new Map(gh),UT=new Map(gh.map(([e,t])=>[t,e])),gu=class extends Te{static langMap=t4;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:a,to:r}=t,o=t4.get(a)||"detect",u=t4.get(r)||r,s=await se({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:o,target_language:u,text:n})});if(s.base_resp&&s.base_resp.status_code===0){let c=s.translation,l=a;return s.detected_language&&(l=UT.get(s.detected_language)||a),{text:c,from:l,to:r}}else{let c=s.base_resp;throw new Tt(c.status_code.toString(),c.status_message)}}};h();var jT=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],n4=new Map(jT),mu=class extends Te{static langMap=n4;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,a){if(super(t,n,a),!t||!t.url)throw new Error("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(r=>r.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:a,to:r}=t,o=this.getRandomKey(),i=await se({retry:2,url:o,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({source_lang:n4.get(a)||a,target_lang:n4.get(r)||r,text:n})});if(i.code===200)return{text:i.data,from:a,to:r};throw new Error(i.message||i.message||"API Error")}};h();h();var a4="https://{s}bing.com",bh=a4+"/translator",zT=a4+"/ttranslatev3",HT=a4+"/tspellcheckv3",As="bingGlobalConfig",yh=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],mh=new Map(yh),ph=new Map(yh.map(([e,t])=>[t,e])),fh=1e3,Un,io;function r4(e,t){return e.replace("{s}",t?t+".":"")}async function qT(){if(!Un){let n=await Q.storage.local.get(As);return n&&(Un=n[As]),!0}let{tokenTs:e,tokenExpiryInterval:t}=Un;return Date.now()-e>t}async function hh(){let e,t,n,a,r,o,u,i,s,c;try{let l=r4(bh,e),f=await se({retry:2,url:l,responseType:"raw"}),{body:p,headers:m,url:g}=f;e=g.match(/^https?:\/\/(\w+)\.bing\.com/)[1],c=m["set-cookie"],t=p.match(/IG:"([^"]+)"/)[1],n=p.match(/data-iid="([^"]+)"/)[1],[r,a,o,u,i,s]=JSON.parse(p.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(l){throw l}return Un={subdomain:e,IG:t,IID:n,key:r,token:a,tokenTs:r,tokenExpiryInterval:o,isVertical:u,frontDoorBotClassification:i,isSignedInOrCorporateUser:s,cookie:c,count:0},await Q.storage.local.set({[As]:Un}),Un}function WT(e){let{IG:t,IID:n,subdomain:a,isVertical:r}=Un;return r4(e?HT:zT,a)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+Un.count++:"")}function KT(e,t,n,a){let{token:r,key:o}=Un,u={fromLang:n,text:t,token:r,key:o};return!e&&a&&(u.to=a),u}async function xh(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>fh)throw new Error(`The supported maximum length of text is ${fh}. Please shorten the text.`);io||(io=hh()),await io,await qT()&&(io=hh(),await io),t=t||"auto",n=n||"zh-CN",t=mh.get(t)||t,n=mh.get(n)||n;let r=WT(!1),o=KT(!1,e,t,n==="auto-detect"?"zh-Hans":n),u={referer:r4(bh,Un.subdomain),"content-type":"application/x-www-form-urlencoded"},i=new URLSearchParams(o),s=r,c=i.toString(),l=await se({retry:2,url:s,headers:u,method:"POST",body:c});if(l.ShowCaptcha||l.StatusCode===401||l.statusCode){if(Un=null,io=null,await Q.storage.local.remove(As),l.ShowCaptcha)throw new Error(` +`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await In(t)}async hexEncodedBodyHash(){return this.request.headers[dt.contentSha256Header]?this.request.headers[dt.contentSha256Header]:this.request.body?await this.hexEncodedHash(Xc(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return NT.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,a,r){let o=await Ra(n,`${dt.kDatePrefix}${t.secretKey}`),u=await Ra(a,o),i=await Ra(r,u);return Ra(dt.v4Identifier,i)}createScope(t,n,a){return[t.substr(0,8),n,a,dt.v4Identifier].join("/")}};var gh=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],e4=new Map(gh),UT=new Map(gh.map(([e,t])=>[t,e])),t4=class extends Te{static langMap=e4;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,a){if(super(t,n,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new Error("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let a={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},r=new io(a,"translate");await r.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let o=new URLSearchParams(a.params),u=await se({retry:2,url:"https://open.volcengineapi.com"+a.pathname+"?"+o.toString(),headers:r.request.headers,method:a.method,body:a.body});if(u.DetectedLanguageList&&u.DetectedLanguageList.length>0)return u.DetectedLanguageList[0].Language;if(u.ResponseMetadata&&u.ResponseMetadata.Error){let i=u.ResponseMetadata.Error;throw new Tt(i.Code,i.Message)}else if(u.ResponseMetaData&&u.ResponseMetaData.Error){let i=u.ResponseMetaData.Error;throw new Tt(i.Code,i.Message)}else throw new Error("response: "+JSON.stringify(u))}async translateList(t){let{text:n,from:a,to:r}=t,o=e4.get(a),u={TargetLanguage:e4.get(r)||r,TextList:n};o?u.SourceLanguage=o:u.SourceLanguage=await this.remoteDetectLanguage(n.join(` +`).slice(0,1e3));let i={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(u)},s=new io(i,"translate");await s.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let c=new URLSearchParams(i.params),l=await se({retry:2,url:"https://open.volcengineapi.com"+i.pathname+"?"+c.toString(),headers:s.request.headers,method:i.method,body:i.body});if(l.TranslationList){let m=l.TranslationList.map(f=>f.Translation),p=a;return l.TranslationList.length>0&&l.TranslationList[0].DetectedSourceLanguage&&(p=UT.get(l.TranslationList[0].DetectedSourceLanguage)||a),{text:m,from:p,to:r}}else if(l.ResponseMetadata&&l.ResponseMetadata.Error){let m=l.ResponseMetadata.Error;throw new Tt(m.Code,m.Message)}else if(l.ResponseMetaData&&l.ResponseMetaData.Error){let m=l.ResponseMetaData.Error;throw new Tt(m.Code,m.Message)}else throw new Error("response: "+JSON.stringify(l))}},mh=t4;h();var ph=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],n4=new Map(ph),jT=new Map(ph.map(([e,t])=>[t,e])),du=class extends Te{static langMap=n4;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:a,to:r}=t,o=n4.get(a)||"detect",u=n4.get(r)||r,s=await se({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:o,target_language:u,text:n})});if(s.base_resp&&s.base_resp.status_code===0){let c=s.translation,l=a;return s.detected_language&&(l=jT.get(s.detected_language)||a),{text:c,from:l,to:r}}else{let c=s.base_resp;throw new Tt(c.status_code.toString(),c.status_message)}}};h();var zT=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],a4=new Map(zT),gu=class extends Te{static langMap=a4;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,a){if(super(t,n,a),!t||!t.url)throw new Error("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(r=>r.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:a,to:r}=t,o=this.getRandomKey(),i=await se({retry:2,url:o,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({source_lang:a4.get(a)||a,target_lang:a4.get(r)||r,text:n})});if(i.code===200)return{text:i.data,from:a,to:r};throw new Error(i.message||i.message||"API Error")}};h();h();var r4="https://{s}bing.com",xh=r4+"/translator",HT=r4+"/ttranslatev3",qT=r4+"/tspellcheckv3",As="bingGlobalConfig",Th=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],fh=new Map(Th),hh=new Map(Th.map(([e,t])=>[t,e])),bh=1e3,Un,so;function o4(e,t){return e.replace("{s}",t?t+".":"")}async function WT(){if(!Un){let n=await X.storage.local.get(As);return n&&(Un=n[As]),!0}let{tokenTs:e,tokenExpiryInterval:t}=Un;return Date.now()-e>t}async function yh(){let e,t,n,a,r,o,u,i,s,c;try{let l=o4(xh,e),m=await se({retry:2,url:l,responseType:"raw"}),{body:p,headers:f,url:g}=m;e=g.match(/^https?:\/\/(\w+)\.bing\.com/)[1],c=f["set-cookie"],t=p.match(/IG:"([^"]+)"/)[1],n=p.match(/data-iid="([^"]+)"/)[1],[r,a,o,u,i,s]=JSON.parse(p.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(l){throw l}return Un={subdomain:e,IG:t,IID:n,key:r,token:a,tokenTs:r,tokenExpiryInterval:o,isVertical:u,frontDoorBotClassification:i,isSignedInOrCorporateUser:s,cookie:c,count:0},await X.storage.local.set({[As]:Un}),Un}function KT(e){let{IG:t,IID:n,subdomain:a,isVertical:r}=Un;return o4(e?qT:HT,a)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+Un.count++:"")}function $T(e,t,n,a){let{token:r,key:o}=Un,u={fromLang:n,text:t,token:r,key:o};return!e&&a&&(u.to=a),u}async function Eh(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>bh)throw new Error(`The supported maximum length of text is ${bh}. Please shorten the text.`);so||(so=yh()),await so,await WT()&&(so=yh(),await so),t=t||"auto",n=n||"zh-CN",t=fh.get(t)||t,n=fh.get(n)||n;let r=KT(!1),o=$T(!1,e,t,n==="auto-detect"?"zh-Hans":n),u={referer:o4(xh,Un.subdomain),"content-type":"application/x-www-form-urlencoded"},i=new URLSearchParams(o),s=r,c=i.toString(),l=await se({retry:2,url:s,headers:u,method:"POST",body:c});if(l.ShowCaptcha||l.StatusCode===401||l.statusCode){if(Un=null,so=null,await X.storage.local.remove(As),l.ShowCaptcha)throw new Error(` Sorry that bing translator seems to be asking for the captcha, Please take care not to request too frequently. The response code is ${l.StatusCode}. `);if(l.StatusCode===401)throw new Error(` Max count of translation exceeded. Please try it again later. The response code is 401. - `);if(l.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(l)}.`)}let f=l[0].translations[0],p=l[0].detectedLanguage;return{text:f.text,from:ph.get(p.language),to:ph.get(f.to)}}h();function Th(e){let t=e.split(".");if(t.length<=1)throw new Error("invlaid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let a=n.replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(globalThis.atob(a).split("").map(function(i){return"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)}).join("")),o=JSON.parse(r),u=new Date(o.exp*1e3);return{accessToken:e,accessTokenExpiresAt:u.toISOString()}}var sr=null,$T=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],o4=new Map($T),pu=class extends Te{static langMap=o4;isSupportList=!0;maxTextLength=1800;static async clearState(){sr=null,await zo(Ku)}async translate(t){let{text:n,from:a,to:r}=t;return n?await xh(n,a,r):{...t}}async init(){if(!sr){sr={};let t=await Uo(Ku);t&&(sr=t)}await Eh(sr)}async translateList(t){let{from:n,to:a,text:r}=t,o=o4.get(n)||"auto",u=o4.get(a)||a;o==="auto"&&(o="");let i=await Eh(sr),s=[];for(let p of r)s.push({Text:p});let c=JSON.stringify(s),l=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${o}&to=${u}&api-version=3.0&includeSentenceLength=true`,f=await se({url:l,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+i.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin"},body:c,method:"POST"});if(f&&f.length>0&&f[0].translations&&f[0].translations.length>0)return{text:f.map(p=>p.translations[0]?.text||""),from:n,to:a};throw new Error("Microsoft translate error "+JSON.stringify(f))}};async function Eh(e){if(e&&e.accessToken&&e.accessTokenExpiresAt){let t=Date.now(),a=new Date(e.accessTokenExpiresAt).getTime();if(a-t>30*1e3)return e;if(a-t>3e3)return Ch().catch(r=>{z.error(r)}),e}return Ch()}async function Ch(){let e=await b3({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET"}),t=Th(e),n=t.accessTokenExpiresAt,r=new Date(n).getTime()-Date.now();return sr=t,await jo(Ku,t,r-1e3),{accessToken:e,accessTokenExpiresAt:t.accessTokenExpiresAt}}h();var vh=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],u4=new Map(vh),GT=new Map(vh.map(([e,t])=>[t,e])),i4=class extends Te{static langMap=u4;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";appid="";key="";isSupportList=!1;maxTextGroupLength=20;constructor(t,n,a){if(super(t,n,a),!t||!t.appid||!t.key)throw new Error("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim()}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:a}=this,{appid:r,key:o}=this,{text:u,from:i,to:s}=t,c=new URLSearchParams({from:u4.get(i)||"auto",to:u4.get(s)||s,q:u,salt:n,appid:r,sign:Da(r+u+n+o)}),l=new URL(a);l.search=c.toString();let f=await se({url:l.toString()});if(f.error_code)throw new Tt("API_SERVER_ERROR",f.error_msg);let{trans_result:p,from:m}=f,g=p.map(({dst:w})=>w);return{from:GT.get(m)||m,to:s,text:g.join(` -`)}}},wh=i4;h();h();var lr=class extends Te{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,a){super(t,n,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let o=await this.checkLang(a,n);if(!o)return{text:n,from:a,to:r};a=o;let u=this.handleRequest(n,a,r),i=await yi(u);return{text:this.handleResponseText(i),from:a,to:r}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let o=await this.checkLang(a,n.join(" "));if(!o)return{text:n,from:a,to:r};a=o;let u=this.handleRequest(n,a,r),i=await yi(u);return{text:this.handleResponseText(i),from:a,to:r}}handleBaseApiServiceConfig(t){let n=t.request.url,a=t.request.headers||{};return a["content-type"]||(a["content-type"]="application/json"),{url:n,retry:t.request.retry||2,method:t.request.method||"POST",headers:a,body:JSON.stringify(t.request.body)}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,a){let r={...this.requestBaseConfig},o=r?.body||"",u=this.apiServiceConfig.keywords||{};r.body=s(o);let i=r.headers||{};return Object.keys(i).forEach(c=>{i[c]=s(i[c])}),r.headers=i,r.url=s(r.url||""),r;function s(c){return c.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",a).replaceAll(/{([a-z:_]+)}/gi,(f,p)=>{let[m,g]=p.split(":"),T=u[m];return g==="random"?VT(T.split(",")):T})}}handleResponseText(t){let n=this.apiServiceConfig.response,a=t,r=n.text.split(".");for(let o of r){if(Array.isArray(a))return a=a.map(u=>u[o]),a;a=a[o]}return a}detectLanguageRemotely(t){return ir.detectLanguageRemotelyByTransmart(t)}};function VT(e){let t=Math.floor(Math.random()*e.length);return e[t]}var s4=class extends lr{constructor(t,n,a){if(!t?.token)throw new Error("token are required");super({...t,isSupportList:!0,langs:[["zh-CN","zh"],["en","en"],["ja","ja"]],keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,a)}},Ah=s4;h();var YT=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],ks=new Map(YT),l4=class extends Te{static langMap=ks;token="ssdj273ksdiwi923bsd9";constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t;if(!ks.get(r))throw new Error(`Unsupported language: ${r}`);if(a==="auto")throw new Error("Unsupported language: auto");let u=n;return{text:(await se({retry:2,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:u,trans_type:`${ks.get(a)||"auto"}2${ks.get(r)}`})})).target,from:a,to:r}}},kh=l4;h();var Sh=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],c4=new Map(Sh),JT=new Map(Sh.map(([e,t])=>[t,e]));function QT(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var d4=class extends Te{static langMap=c4;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,a){if(super(t,n,a),!t||!t.appId||!t.appSecret)throw new Error("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,o=ZT(32),u=Math.round(new Date().getTime()/1e3),i=this.appId+QT(n)+o+u+this.appSecret,s=await In(i),c={q:n,appKey:this.appId,salt:o.toString(),from:c4.get(a)||"auto",to:c4.get(r)||r,sign:s,signType:"v3",curtime:u.toString()};this.domain&&this.domain!=="general"&&(c.domain=this.domain),this.vocabId&&(c.vocabId=this.vocabId);let l=new URLSearchParams(c),p=await se({url:"https://openapi.youdao.com/api",method:"POST",body:l.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"}});if(!p.translation)throw new Error(JSON.stringify(p));let m=p.l,[g,T]=m.split("2");return{text:p.translation.join(` -`),from:JT.get(g),to:r}}};function ZT(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r[t,e]));var m4=class extends Te{static langMap=g4;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,o={q:n,from:g4.get(a)||"auto",to:g4.get(r)||r},u=new URLSearchParams(o),i=await se({url:"https://aidemo.youdao.com/trans",method:"POST",body:u.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"}});if(i&&i.translation)return{text:i.translation.join(` -`),from:a,to:r};throw new Error("Youdao translation failed: "+JSON.stringify(i))}},Mh=m4;h();var fu=class extends lr{constructor(t,n,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(r=>[r,r]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||Ka,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,a)}};var XT={mock:oo,mock2:oo,custom:fu,google:ur,transmart:ir,deepl:th,volc:dh,volcAlpha:gu,bing:pu,tencent:ru,tenAlpha:ou,baidu:wh,caiyun:Ah,cai:kh,openl:Cs,youdao:Dh,you:Mh,d:ro,dpro:ro,deeplx:mu,niu:nh,azure:ah,openai:oh,chatgpt:lu,papago:rh,aliyun:du},ga={};Object.keys(Mn).forEach(e=>{ga[e]={...Mn[e],class:XT[e]}});function Qr(e,t){let n=sn;if(ga[e]&&ga[e].class&&ga[e].class.langMap&&ga[e].class.langMap.size>0){let a=ga[e].class.langMap,r=n.filter(o=>a.get(o));return r.includes(t)||r.unshift("placeholder"),r}else return sn}function Ph(e,t,n){let a=ga[t],r=n.config.translationServices[t]||{},o=r.provider||"",u=!0,i=[...a.allProps||[]],s=a.providers||[],c=[],l=[];if(i.length>0){i.forEach((p,m)=>{let g=p;if(s.length>0){if(p.providers&&p.providers.length>0&&!p.providers.includes(o))return;p.type=="select"&&(g={...p},g.options=p.options?.filter(T=>T.providers?.includes(o)))}p.optional?l.push(g):c.push(g)});let f=l.concat(c).filter(p=>p.required);if(f.length>0){for(let p of f)if(!r[p.name]){u=!1;break}}}return{...a,id:t,selected:n[e]===t,ok:u,currentProvider:o,providers:s,config:r,props:a.props||[],allProps:i,explicitProps:c||[],optionalProps:l||[]}}async function ca(e,t){if(!e.text)return e;let n=await Ra({sentences:[e]},t);if(n.sentences.length>0)return{...e,...n.sentences[0]};throw new Tt("translateFailed","translate failed")}async function Uf(e,t){for(let n of e)try{return await ca({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n}),n}catch{continue}return null}async function Fc(e){let{config:t,translationService:n}=e,a=t.translationGeneralConfig,r=t.translationServices,o=n,u=r[o]||{},i=Xt(e.user),s=new ga[o].class(u,a,{translationService:o,userToken:e.user?.token,isPro:i}),c=s.getDefaultRateLimit();c&&(u&&!u.limit&&(u.limit=c.limit),u&&!u.interval&&(u.interval=c.interval)),o==="deepl"&&u&&u.provider==="pro"&&(u.limitForImmersiveDeepl?u.limit=u.limitForImmersiveDeepl:c&&(u.limit=c.limit)),await p3(o,u),await s.init()}async function Ra(e,t,n){if(!e.sentences.length)return{...e};let{config:a,translationService:r,state:o}=t,u=a.translationGeneralConfig,i=a.translationServices,s=r,c=i[s]||{};s==="openai"&&(e.sentences=e.sentences.map(S=>({...S,from:"auto"})));let l=[],f={sentences:Array(e.sentences.length)},p=e.sentences.length,m=-1;if(o.cache)for(let S of e.sentences){m++;let D=s;s==="openl"&&(D=s+"-"+c.codename||Cs.DEFAULT_CODENAME);let N=null;try{N=await Ru(jf({originalText:S.text,from:S.from,to:S.to,service:D}),200)}catch(_){z.warn("query cache DB error, but it's ok",_)}if(N){let _={...S,text:N.translatedText};f.sentences[m]=_,n&&n(null,_,S)}else l.push(S)}else l.push(...e.sentences);let g=l.length;if(p-g>0&&z.debug(`use ${p-g} sentences from cache`),!l.length)return f;let T,w=Xt(t.user);try{T=new ga[s].class(c,u,{translationService:s,userToken:t.user?.token,isPro:w}),await T.init()}catch(S){if(n)for(let D of l)n(S,null,D);throw S}let b=await T.multipleTranslate({sentences:l},c,(S,D,N)=>{if(n&&n(S,D,N),!S&&D&&!s.startsWith("mock")&&o.cache){let _=s;s==="openl"&&(_=s+"-"+c.codename||Cs.DEFAULT_CODENAME),o.cache&&Ru(zf({translatedText:D.text,from:N.from,to:N.to,detectedFrom:D.from,key:Da(N.text),service:_}),3e3).catch(y=>{z.warn("set cache DB error",y)})}});for(let S of b.sentences){let D=f.sentences.findIndex(N=>!N);if(D===-1)throw new Tt("translateFailed","can not match the result");f.sentences[D]=S}return f}h();function Pe(e){return d("div",{class:"nav-left",children:[d("div",{class:"title",children:e.title}),d("div",{class:"description",children:e.description})]})}h();h();function cr(e){let{t}=ue(),n={};e.width&&(n={width:`${e.width}px`});let[a,r]=$(e.value),{field:o,onFinish:u}=e,i=o.name;o.label&&(i=o.label),o.labelKey&&(i=t(o.labelKey));let s={};return o.descriptionLink1&&(s[1]=o.descriptionLink1),d("div",{class:"mt-3",children:[d("label",{for:e.field.name,class:"mb-[var(--spacing)]",children:[i,"\uFF1A"]}),e.field.type==="textarea"?d(Fe,{children:[d("textarea",{style:n,autoComplete:"off",required:e.field.required,placeholder:e.field.placeholder||e.field.name,class:"input",rows:e.rows,value:Array.isArray(a)?a.join(","):a,type:e.type,onInput:c=>{let l=c.target.value,f=Array.isArray(a)?l.split(","):l;r(f),e.onChange(f)},onChange:()=>{u&&u()}}),e.field.descriptionKey?d("small",{dangerouslySetInnerHTML:{__html:t(e.field.descriptionKey,s)}}):null]}):d(Fe,{children:[d("input",{style:n,required:e.field.required,placeholder:e.field.placeholder||e.field.name,value:a,type:e.type,disabled:e.field.disabled||!1,name:e.field.name,autoComplete:"off",onInput:c=>{r(c.target.value),e.onChange(c.target.value)},onChange:()=>{(e.type==="text"||e.type==="password")&&u&&u()}}),e.field.descriptionKey?d("small",{dangerouslySetInnerHTML:{__html:t(e.field.descriptionKey,s)}}):null]})]})}function so(e){let{t}=ue(),[n,a]=$(!0),[r,o]=$(!1),{currentProvider:u,onFinish:i,field:s,onChange:c,value:l,isProUser:f}=e;l=l??(s.default||""),he(()=>{s.options&&(s.options.some(g=>g.value===l)||o(!0))},[]);let p=s.name;if(s.label&&(p=s.label),s.labelKey&&(p=t(s.labelKey)),s.type==="select")return d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[p,"\uFF1A"]}),d(Gl,{maxWidth:200,items:s.options.map(m=>({label:`${m.label?t(m.label):m.value}`,value:m.value,selected:l===m.value,onSelected:()=>{c(m.value)}})),onChange:c,isInput:r,value:l})]});if(s.type==="openai-model-select")return d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[p,"\uFF1A"]}),d(Gl,{maxWidth:200,items:s.options.map(m=>({label:`${m.label?t(m.label):m.value}`,value:m.value,selected:l===m.value,onSelected:()=>{c(m.value)}})),onChange:c,isInput:r,value:l}),u!=="pro"&&d("label",{for:"customContent",class:"text-sm",onClick:()=>{o(!r)},children:[d("input",{type:"checkbox",id:"customContent",name:"customContent",checked:r}),t("customContent")]})]});if(s.type==="text")return d("div",{children:d(cr,{field:s,value:l,type:s.type,onChange:c,onFinish:i})});if(s.type==="textarea")return d("div",{children:d(cr,{field:s,value:l,type:s.type,onChange:c,onFinish:i})});if(s.type==="jsonarea")return d("div",{children:d(cr,{field:{...s,type:"textarea"},value:l,rows:5,type:s.type,onChange:c,onFinish:i})});if(s.type==="number")return d("div",{children:d(cr,{field:s,value:l,type:s.type,width:196,onChange:c})});if(s.type==="password")return d("div",{children:[d(cr,{field:s,value:l,type:n?s.type:"text",onChange:c,onFinish:i}),d("label",{for:"translate",onClick:()=>{a(!n)},children:[d("input",{type:"checkbox",id:"translate",name:"translate"}),t("show password")]})]});if(s.type==="color"){let m=l,g="";return m||(m="#FFFFFF",g="#FFFFFF"),d("div",{children:d("label",{class:"flex items-center",for:s.name,children:[d("span",{class:"mr-2",children:s.label||s.name}),d("input",{type:"text",id:s.name,class:"border-color-text mr-2",placeholder:g||"",value:l,onInput:T=>{c(T.target.value)}}),d("input",{id:s.name,type:"color",name:s.name,value:m,onInput:T=>{c(T.target.value)}})]})})}else return null}h();function Ss(e){let{t,lang:n}=ue();return d("details",{role:"list",class:"nav-right",children:[d("summary",{"aria-haspopup":"listbox",children:t("edit")}),d("ul",{role:"listbox",class:"option-list",children:e.options.map((a,r)=>{let o=Mt(a.value,n);return d("li",{children:d("label",{children:[d("input",{type:"checkbox",onChange:()=>{e.onToggleAlwaysLangs(!a.checked,a.value)},value:a.value,checked:a.checked}),o]})},"language-"+r)})})]})}h();function Ua(e){let{t}=ue(),[n,a]=$([]),[r,o]=$(!1);function u(){e.onDeleteUrl(n,e.type),a([]),o(!1)}return e.urls.length?d("div",{children:[e.urls.length>1?d("div",{style:"display:flex;flex-direction:row;align-items:center;padding: 0 24px;margin-bottom:12px;",children:[d("input",{type:"checkbox",id:"checkAll",checked:r,onChange:i=>{if(i.target.checked){let s=e.urls;a(s)}else a([]);o(i.target.checked)}}),d("label",{htmlFor:"checkAll",children:"\u5168\u9009"}),d("div",{style:"flex:1;"}),d("a",{style:{cursor:"pointer"},onClick:u,children:t("delete")})]}):null,d("div",{class:"url-list-item",children:e.urls.map((i,s)=>d("div",{className:"url-list",style:"padding:6px 24px;",children:d("div",{className:"url-left",style:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%"},children:[d("input",{type:"checkbox",checked:n.includes(i),style:"margin-right:12px;",onChange:c=>{c.target.checked?a([...n,i]):a(n.filter(l=>l!==i))}}),d("div",{className:"url-name height-tight",children:i}),d("div",{style:{flex:1}}),d("a",{style:{marginRight:"12px",cursor:"pointer"},onClick:c=>{e.onEditUrl(i,e.type,s)},children:t("edit")}),d("a",{style:{cursor:"pointer"},onClick:c=>{e.onDeleteUrl([i],e.type)},children:t("delete")})]})},"menu"+s))})]}):null}h();function ja(e){let{t}=ue(),n=zn(null),{toggleModal:a}=e;return d("dialog",{id:"immersive-translate-overlay",onClick:o=>{o.target&&o.target.id==="immersive-translate-overlay"&&a(o)},open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:e.toggleModal}),d("div",{class:"add-text",children:t("add url")}),d("input",{placeholder:"URL",ref:n,value:e.urlValue}),d("blockquote",{children:d("p",{class:"text-sm",children:t("addUrlDescription")})}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"#cancel",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:e.toggleModal,children:t("cancel")})}),d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:o=>{if(o.preventDefault(),n.current&&n.current.value){if(e.onSubmitAddUrl){if(e.urlValue!==""){e.onSubmitAddUrl(n.current.value,e.index,e.type,"edit");return}e.onSubmitAddUrl(n.current.value,e.index,e.type);return}else if(e.onAddInterfaceUrl){if(e.urlValue!==""){e.onAddInterfaceUrl(n.current.value,"edit");return}e.onAddInterfaceUrl(n.current.value)}}},children:t("confirm")})})]})]})})}h();async function lo(){let e=["bingGlobalConfig","baiduGlobalConfig",Mg,Kn];for(let t of e)await Q.storage.local.remove(t);me()||await gp(),await il()}function Fh(){return me()?Promise.resolve("0 B"):El()}h();var Qe=fr([]);function Ds(e){let[t,n]=$(null);return he(()=>{Ge().then(a=>{n(a),z.debug("current config",a)})},[]),he(()=>{Ge().then(a=>{n(a)})},[e]),t}function Ls(e){let[t,n]=$(null);return he(()=>{e&&Lt({url:"http://localhost",config:e,state:{cache:!1}}).then(a=>n(a))},[e]),t}var Bh=g3();function Ms(){let e=ft(),[t,n,a,r,o]=e,u=Ds(t),i=Ls(u);return En(t,n),he(()=>()=>{Ue.unbind("esc")},[]),u?d(Qe.Provider,{value:e,children:[d(e5,{}),d(u5,{config:u}),d(t5,{config:u}),d(hu,{config:u,ctx:i,serviceType:"translationService"}),d(n5,{config:u,ctx:i}),d(a5,{config:u,ctx:i}),d(r5,{config:u}),d(o5,{config:u})]}):d("div",{children:"loading"})}function e5(){let[e,t,n,a,r]=Ye(Qe),{t:o}=ue(),u=i=>{i.preventDefault(),confirm(o("confirmResetConfig"))&&(r(Za()),Aa().catch(s=>{z.error("clean local config error",s)}),Ir().catch(s=>{z.error("clean buildin config error",s)}),lo().catch(s=>{z.error("clean cache error",s)}),ut(o("resetSuccess")))};return d("div",{class:"nav",children:[d("strong",{class:"text-lg",children:o("general")}),d("a",{class:"text-sm",href:"#",onClick:u,children:o("reset")})]})}function t5({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue();if(!e)return null;let i=c=>{n(l=>({...l,targetLanguage:c}))},s=Qr(e.translationService,e.targetLanguage);return d("div",{class:"nav",children:[d(Pe,{title:u("target"),description:u("translate other languages into specific language")}),d("select",{class:"select",onChange:c=>{c.preventDefault(),i(c.target.value)},children:s.filter(c=>c!=="auto").map((c,l)=>d("option",{value:c,selected:c===e?.targetLanguage,children:Mt(c,e?.interfaceLanguage)},"language"+l))})]})}function hu({config:e,ctx:t,serviceType:n}){let{t:a}=ue(),r=ot(),[o,u]=$(!1),[i,s]=$(""),[c,l]=$(""),[f,p]=$(null),[m,g]=$(null),[T,w,b,S,D]=Ye(Qe),N=x=>{w(v=>({...v,[n]:x}))},_=t&&Ci(t,n)||[],y=ha(()=>{if(e&&t){let{translationServices:x}=e,v=t[n],C=x?.[v];return C?{...C}:{}}return null},[e,t]),E=ha(()=>{if(e&&t){let x=t[n];if(Mn[x])return Ph(n,x,t)}return null},[e,t]);return he(()=>{Xe.get(xt,null).then(x=>{x?(p(x),g(Xt(x))):g(!1)}).catch(x=>{g(!1)})},[]),m===null?null:d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:a("service"),description:a("select translation service")}),d("select",{class:"select",onChange:x=>{x.preventDefault(),s(""),l(""),N(x.target.value)},children:_.map((x,v)=>d("option",{value:x.id,selected:x.id===t?.[n],children:`${a("translationServices."+x.id)}${x.ok?"":" "+(!m&&!r&&x.providers&&x.providers.length>0?a("needLoginAction"):a("needActionForOptions"))}`},"service-item="+v))})]}),y&&E&&d("div",{class:"text-right text-sm",children:[c&&d("span",{class:"verified text-green-500 mr-2",children:a("verified")}),i&&d("span",{class:"verified text-red-500 mr-2",children:i}),d("a",{"aria-busy":o,href:"#",class:"secondary",onClick:async x=>{x.preventDefault();try{s(""),l(""),u(!0),await qn(500);let v=E.class;v&&v.clearState&&await v.clearState(),await ca({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:E.id}),l("verified")}catch(v){s(v.message)}finally{u(!1)}},children:a("verifyService")})]}),E?.providers?.length||E?.explicitProps?.length||E?.optionalProps?.length?d("article",{children:[E&&E.providers&&E.providers.length>0&&d("fieldset",{children:[d("legend",{class:"mb-4",children:a("chooseProviderLabel")}),E.providers.map((x,v)=>d(nl,{isProUser:m,provider:x,currentProvider:E.currentProvider,onChange:C=>{C.preventDefault();let M=C.target.value;M&&w(k=>{let P=k.translationServices||{},O=P[E.id]||{};return{...k,translationServices:{...P,[E.id]:{...O,provider:M}}}})}}))]}),E?.titleKey?d("div",{class:"description pb-1",dangerouslySetInnerHTML:{__html:Ne.sanitize(a(E?.titleKey),{ALLOWED_ATTR:["href","target"]})}}):null,E?.docUrl&&(!E.providers||E.providers.length===0)?d("div",{children:[d("a",{target:"_blank",class:"pb-1 docUrl",href:E.homepage,children:a(`translationServices.${E.id}`)}),"\xA0",d("span",{class:"description pb-1",children:a("please refer to")}),"\xA0",d("a",{target:"_blank",class:"pb-1 docUrl",href:E.docUrl,children:a("KeyAndConfigurationTutorial")})]}):null,y&&(E?.explicitProps||[]).map((x,v)=>d("div",{class:"mt-2",children:d(so,{isProUser:m,currentProvider:E.currentProvider,field:x,value:y[x.name],onChange:C=>{w(R=>{let M=R.translationServices||{},k=M[E.id]||{};return{...R,translationServices:{...M,[E.id]:{...k,[x.name]:C}}}})},onFinish:()=>{ut(a("saved"))}},x.name+v)},"service-item-prop-"+x.name+v)),y&&E&&E.optionalProps&&E.optionalProps.length>0&&d("details",{class:"pt-2 border-none",children:[d("summary",{style:{lineHeight:"1rem"},children:[a("moreOptions"),"\xA0\u{1F449}"]}),d("div",{children:E.optionalProps.map((x,v)=>{let C=y[x.name];return x.name==="apiUrl"&&E?.id==="openai"&&y?.APIKEY?.startsWith("immersiveopenai_")&&(x={...x,disabled:!0},C="https://openai-api.immersivetranslate.com/v1/chat/completions"),x.name=="placeholderDelimiters"&&(x.default=y.placeholderDelimiters||x.default),d("div",{class:"mt-2",children:d(so,{field:x,value:C,onChange:R=>{w(M=>{let k=M.translationServices||{},P=k[E.id]||{};return{...M,translationServices:{...k,[E.id]:{...P,[x.name]:R}}}})},onFinish:()=>{ut(a("saved"))}},x.name+v)},"service-item-optional-prop-"+x.name+v)})}),d("a",{href:"#",class:"secondary",onClick:x=>{x.preventDefault(),w(v=>{let C=v.translationServices||{};return{...v,translationServices:{...C,[E.id]:{}}}}),setTimeout(()=>{window.location.reload()},100)},children:a("resetToDefaultSettings")})]})]}):null]})}function n5({config:e,ctx:t}){let{t:n}=ue(),[a,r,o,u,i]=Ye(Qe),s=e?.translationLanguagePattern?.matches||[],{handleTranslationLanguagePatternSelected:c}=Rh(r),l=(p,m)=>{c(p?"matches":void 0,m)},f=ha(()=>!e||!t?[]:Bh.concat("").map(p=>({checked:e.translationLanguagePattern?.matches?.includes(p),value:p})),[e,t]);return d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:n("always languages"),description:n("always translate the following languages")}),d(Ss,{options:f,onToggleAlwaysLangs:l})]}),d("div",{class:"langs-list",children:s.map((p,m)=>d("div",{class:"lang-card",children:[d("div",{id:`${p}`,children:Mt(p,e?.interfaceLanguage)}),d("a",{href:"#close",class:"close",target:"_blank","aria-label":"Close","data-target":`${p}`,onClick:g=>{g.preventDefault(),l(!1,s[m])}})]},"lang-"+m))})]})}function a5({config:e,ctx:t}){let{t:n}=ue(),[a,r,o,u,i]=Ye(Qe),s=e?.translationLanguagePattern.excludeMatches||[],{handleTranslationLanguagePatternSelected:c}=Rh(r),l=(p,m)=>{c(p?"excludeMatches":void 0,m)},f=ha(()=>!e||!t?[]:Bh.map(p=>({checked:e?.translationLanguagePattern?.excludeMatches?.includes(p),value:p})),[e,t]);return d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:n("neverTranslateLanguagesLabel"),description:n("neverTranslateTheFollowingLanguagesDescription")}),d(Ss,{options:f,onToggleAlwaysLangs:l})]}),d("div",{class:"langs-list",children:s.map((p,m)=>d("div",{class:"lang-card",children:[d("div",{id:`${p}`,children:Mt(p,e?.interfaceLanguage)}),d("a",{href:"#close",class:"close",target:"_blank","aria-label":"Close","data-target":`${p}`,onClick:g=>{g.preventDefault(),l(!1,s[m])}})]},"never-lang-"+m))})]})}function r5({config:e}){let{t}=ue(),[n,a,r,o,u]=Ye(Qe),[i,s]=$(""),[c,l]=$(0),[f,p]=$(!1);he(()=>{Ue("esc",()=>{p(!1)})},[]);let m=(w,b,S,D)=>{p(!f),a(N=>{let _=N.translationUrlPattern,y=[],E=[];_&&_.matches&&_.excludeMatches&&(y=_.matches,E=_.excludeMatches);let x=[...y],v=[...E];return D==="edit"&&(x[b]=w),x=bn(w,x),v=at(w,E),{...N,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...N.translationUrlPattern,matches:x,excludeMatches:v}}})},g=(w,b)=>{a(S=>{let D=S.translationUrlPattern,N=[];D&&D.matches&&(N=D.matches);let _=[...N];return w.forEach(y=>{_=at(y,_)}),{...S,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...S.translationUrlPattern,[b]:_}}})},T=(w,b,S)=>{p(!f),s(w),l(S)};return d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:t("always sites"),description:t("always translate the following sites")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:w=>{w.preventDefault(),p(!f)},children:t("add")})}),f?d(ja,{toggleModal:w=>{w.preventDefault(),p(!f)},onSubmitAddUrl:m,urlValue:i,index:c}):null]}),d(Ua,{urls:e?.translationUrlPattern.matches||[],type:"matches",onDeleteUrl:g,onEditUrl:T})]})}function o5({config:e}){let{t}=ue(),[n,a,r,o,u]=Ye(Qe),[i,s]=$(!1),[c,l]=$(""),[f,p]=$(0);he(()=>{Ue("esc",()=>{s(!1)})},[]);let m=()=>{s(!i)},g=(b,S,D,N)=>{m(),a(_=>{let y=_.translationUrlPattern,E=[],x=[];y&&y.matches&&y.excludeMatches&&(E=y.matches,x=y.excludeMatches);let v=[...E],C=[...x];return N==="edit"&&(C[S]=b),v=at(b,E),C=bn(b,C),{..._,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{..._.translationUrlPattern,matches:v,excludeMatches:C}}})},T=(b,S)=>{a(D=>{let N=D.translationUrlPattern,_=[];N&&N.excludeMatches&&(_=N.excludeMatches);let y=[..._];return b.forEach(E=>{y=at(E,y)}),{...D,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...D.translationUrlPattern,[S]:y}}})},w=(b,S,D)=>{s(!i),l(b),p(D)};return d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:t("never sites"),description:t("never translate the following sites")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:b=>{b.preventDefault(),m()},children:t("add")})}),i?d(ja,{toggleModal:b=>{b.preventDefault(),m()},onSubmitAddUrl:g,type:"excludeMatches",urlValue:c,index:f}):null]}),d(Ua,{urls:e?.translationUrlPattern.excludeMatches||[],type:"excludeMatches",onDeleteUrl:T,onEditUrl:w})]})}function Rh(e){return{handleTranslationLanguagePatternSelected:dn((n,a)=>{if(!n){e(u=>{let i={...u.translationLanguagePattern};return{...u,translationLanguagePattern:{...u.translationLanguagePattern,matches:at(a,i.matches),excludeMatches:at(a,i.excludeMatches)}}});return}let r=n,o=r==="matches"?"excludeMatches":"matches";a&&e(u=>{let i={...u.translationLanguagePattern};return i[r]=bn(a,i[r]),i[o]=at(a,i[o]),{...u,translationLanguagePattern:{...u.translationLanguagePattern,...i}}})},[e])}}var p4=0,f4;async function Ih(e){if(p4>60*10)return null;p4++,Xe.refresh(),await qn(300);let t=await Xe.get(xt,null);z.debug("loopCheckUser",p4,t),t?(clearTimeout(f4),e(t)):f4=setTimeout(Ih.bind(null,e),1500)}function _h(e){let{user:t}=e,n=ot(),a=t&&t.email==="test@immersivetranslate.com",{t:r}=ue();if(t&&t.subscription&&t.subscription.subscriptionStatus=="active"){let o=t,u=o.subscription,i=c5(u.subscriptionTo),s=u.subscriptionType,c=s.startsWith("onetime_"),l=!c&&u.cancelAtPeriodEnd!="true",f="";return l?f=r("currentPlanDescriptionForContinuous",{plan:`${r(s)}`,endAt:i}):c?f=r("currentPlanDescriptionForOneTime",{plan:r(s),endAt:i,1:"https://immersivetranslate.com/accounts/upgrade?type=year",2:"https://immersivetranslate.com/accounts/upgrade?type=month"}):s==="yearly"||s==="year"?pm(o)?f=r("currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser",{plan:r(s+"ForOnce"),endAt:i,1:"https://immersivetranslate.com/billing"}):f=r("currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin",{plan:r(s+"ForOnce"),endAt:i,1:"https://immersivetranslate.com/accounts/upgrade?type=year"}):f=r("currentPlanDescriptionForAutoRenewCaceling",{plan:r(s+"ForOnce"),endAt:i}),d("span",{class:"info-subtitle",dangerouslySetInnerHTML:{__html:f}})}else return d("span",{class:"info-subtitle",children:n||a?"":r("currentPlanDescriptionForFree")})}function u5({config:e}){let{t}=ue(),n=ot(),[a,r]=$(null),o=!!e.showSponsorOnSafari,[u,i,s,c,l]=Ye(Qe);he(()=>(Xe.get(xt,null).then(g=>{g&&(r(g),i5(g.token).then(T=>{let w=T.data;w.token=g.token,Xe.set(xt,w),r(w)}).catch(T=>{Xe.remove(xt),r(null)}))}),()=>{clearTimeout(f4)}),[]);let f=dn(g=>{g&&g.preventDefault&&g.preventDefault(),a?.token&&s5(a.token).finally(async()=>{await Xe.remove(xt),await qn(200),await Xe.refresh(),r(null)})},[a]),p=dn(async g=>{g&&g.preventDefault&&g.preventDefault(),await Xe.set(_o,!0),l5(Xg),Ih(T=>{Qi(T.token,u,i),r(T),h4?.close(),window.location.reload()})},[r]),m=a?.avatar||v3;return a?!a.subscription||a.subscription.subscriptionStatus!="active"?d("div",{children:[d("div",{class:"title",children:t("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("span",{class:"info-title",title:a.email,children:a.email}),d(_h,{user:a})]}),d("div",{class:"ops",children:[d("a",{class:n&&o===!1?"!hidden":"",style:{display:"flex",flexDirection:"row",alignItems:"center",marginRight:"24px"},href:`${$a}?from=${n?"safari":"extension"}`,children:[t("openPremium"),d("img",{width:24,height:24,style:{width:"24px",height:"24px"},src:Jr})]}),d("div",{class:"",children:d("a",{href:`${Ar}?from=${n?"safari":"extension"}`,children:t("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:f,children:t("logout")})})]})]})]}):d("div",{class:"",children:[d("div",{class:"title",children:t("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("div",{className:"flex",children:[d("span",{class:"info-title info-primary",children:a.userName}),d("img",{width:24,height:24,style:{width:"24px",height:"24px",marginLeft:"4px"},src:Jr})]}),d(_h,{user:a})]}),d("div",{class:"",children:d("a",{href:Ar,children:t("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:f,children:t("logout")})})]})]}):d("div",{class:"header nav",children:[d("img",{src:m}),d("div",{class:"info",children:d("span",{class:"info-subtitle",children:t("nologin")})}),d("a",{class:"py-4",href:"#",onClick:p,children:t(n?"loginForSafari":"login")})]})}var Oh=Bo;function i5(e){return se({responseType:"json",url:Oh+"/v1/user",method:"get",headers:{token:e}})}function s5(e){return se({responseType:"json",url:Oh+"/v1/user/logout",method:"delete",headers:{token:e}})}var h4=null;function l5(e){let a=screen.width/2-230,r=screen.height/2-640/2;return h4=window.open(e,"loginWindow",`toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no,left=${a},top=${r},width=460,height=640,chrome=yes,centerscreen=yes`),h4}function c5(e){let t=new Date(e),n=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),r=String(t.getDate()).padStart(2,"0");return`${n}-${a}-${r}`}h();var Gt={};ai.forEach(e=>{e.labelKey&&(Gt[e.key]=e.labelKey)});function b4(){let e=ft(),[t,n,a,r,o]=e,[u,i]=$(null),{t:s}=ue();if(he(()=>{Ge().then(l=>{Lt({config:l,url:globalThis.location.href}).then(f=>{i(f)})})},[t]),!u)return d("div",{children:"loading"});let c=u.config;return d(Qe.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:s("inputOptions")})}),d(d5,{config:c}),d(g5,{config:c}),d(m5,{config:c}),d(hu,{config:c,ctx:u,serviceType:"inputTranslationService"}),d(p5,{config:c}),d(f5,{config:c}),d(b5,{config:c}),d(h5,{config:c})]})}function d5({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue();return e?d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:u("enableInputTranslation"),description:e.enableInputTranslationWithoutTriggerKey?u("enableInputTranslationDescriptionForNoneKey",{inputTargetLanguage:Mt(e.inputTargetLanguage,e.interfaceLanguage),trailingKey:Gt[e.inputTrailingTriggerKey]?u(Gt[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes}):u("enableInputTranslationDescription",{inputTargetLanguage:Mt(e.inputTargetLanguage,e.interfaceLanguage),startingKey:Gt[e.inputStartingTriggerKey]?u(Gt[e.inputStartingTriggerKey]):e.inputStartingTriggerKey,trailingKey:Gt[e.inputTrailingTriggerKey]?u(Gt[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes})}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:i=>{let s=i.target.checked;n(c=>({...c,enableInputTranslation:!!s}))},checked:e.enableInputTranslation})})]}),d("details",{class:"mt-3",children:[d("summary",{children:[u("clickToSeeQuickDemo")," \u{1F447}\u{1F447}"]}),d("video",{controls:!0,src:"https://s.immersivetranslate.com/videos/immpersive-translate-input-translation-demo-202307044.mp4"})]})]}):null}function g5({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue(),i=c=>{n(l=>({...l,inputTargetLanguage:c}))};if(!e)return null;let s=Qr(e.translationService,e.targetLanguage);return d("div",{class:"nav",children:[d(Pe,{title:u("inputTargetLanguage"),description:e.enableInputTranslationWithoutTriggerKey?u("inputTargetLanguageDescriptionForNoneKey"):u("inputTargetLanguageDescription",{startingKey:Gt[e.inputStartingTriggerKey]?u(Gt[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:c=>{c.preventDefault(),i(c.target.value)},children:s.filter(c=>c!=="auto").map((c,l)=>d("option",{value:c,selected:c===e.inputTargetLanguage,children:Mt(c,e.interfaceLanguage)},"language"+l))})]})}function m5({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue();return e?d("div",{class:"nav",children:[d(Pe,{title:u("enableInputTranslationWithoutTriggerKeyTitle",{trailingKey:Gt[e.inputTrailingTriggerKey]?u(Gt[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTargetLanguage:Mt(e.inputTargetLanguage,e.interfaceLanguage)}),description:""}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:i=>{let s=i.target.checked;n(c=>({...c,enableInputTranslationWithoutTriggerKey:!!s}))},checked:e.enableInputTranslationWithoutTriggerKey})})]}):null}function p5({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue(),i=s=>{n(c=>({...c,inputStartingTriggerKey:s}))};return e?d("div",{class:"nav",children:[d(Pe,{title:u("inputStartingTriggerKeyTitle"),description:e.inputStartingTriggerKey==="none"?u("inputStartingTriggerKeyDescriptionForNoneKey"):u("inputStartingTriggerKeyDescription",{startingKey:Gt[e.inputStartingTriggerKey]?u(Gt[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:s=>{s.preventDefault(),i(s.target.value)},children:ai.filter(s=>s.skipForStarting!==!0).map((s,c)=>d("option",{value:s.key,selected:s.key===e.inputStartingTriggerKey,children:s.labelKey?u(s.labelKey):s.key},"startingkey-"+c))})]}):null}function f5({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue(),i=s=>{n(c=>({...c,inputTrailingTriggerKey:s}))};return e?d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:u("inputTrailingTriggerKeyTitle"),description:u("inputTrailingTriggerKeyDescription",{trailingKey:Gt[e.inputTrailingTriggerKey]?u(Gt[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey})}),d("select",{class:"select",onChange:s=>{s.preventDefault(),i(s.target.value)},children:ai.filter(s=>s.skipForTrailing!==!0).map((s,c)=>d("option",{value:s.key,selected:s.key===e.inputTrailingTriggerKey,children:s.labelKey?u(s.labelKey):s.key},"startingkey-"+c))})]}),d("blockquote",{class:"text-sm",dangerouslySetInnerHTML:{__html:u("inputHelperInfo",{1:"https://immersivetranslate.com/docs/input/"})}})]}):null}function h5({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue(),[i,s]=$(!1),c=b=>{s(!i)},[l,f]=$(0),[p,m]=$(""),g=(b,S,D,N)=>{c(D),n(_=>{let y=_.inputTranslationUrlPattern,E=[],x=[];y&&y.matches&&y.excludeMatches&&(E=y.matches,x=y.excludeMatches);let v=[...E],C=[...x];return N==="edit"&&(D==="matches"?v[S]=b:C[S]=b),D==="matches"?(v=bn(b,v),C=at(b,x)):(v=at(b,E),C=bn(b,C)),{..._,inputTranslationUrlPattern:{..._.inputTranslationUrlPattern,matches:v,excludeMatches:C}}})},T=(b,S)=>{n(D=>{let N=D.inputTranslationUrlPattern,_=[];S==="matches"?N&&N.matches&&(_=N.matches):N&&N.excludeMatches&&(_=N.excludeMatches);let y=[..._];return b.forEach(E=>{y=at(E,y)}),{...D,inputTranslationUrlPattern:{...D.inputTranslationUrlPattern,[S]:y}}})},w=(b,S,D)=>{c(S),m(b),f(D)};return e?d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:u("inputTranslationBlockUrlsTitle"),description:u("inputTranslationBlockUrlsDescription")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:b=>{b.preventDefault(),c("excludeMatches")},children:u("add")})}),i?d(ja,{toggleModal:b=>{b.preventDefault(),c("excludeMatches")},onSubmitAddUrl:g,type:"excludeMatches",urlValue:p,index:l}):null]}),d(Ua,{urls:e.inputTranslationUrlPattern.excludeMatches,type:"excludeMatches",onDeleteUrl:T,onEditUrl:w})]}):null}function b5({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue();if(!e)return null;let i=()=>fn().any?e.inputTrailingMobileTriggerKeyTimeout:e.inputTrailingTriggerKeyTimeout,s=c=>{n(l=>fn().any?{...l,inputTrailingMobileTriggerKeyTimeout:c}:{...l,inputTrailingTriggerKeyTimeout:c})};return d("nav",{children:[d(Pe,{title:u("inputTrailingTriggerKeyTimeout"),description:u("inputTrailingTriggerKeyTimeoutDescription")}),d("div",{class:"option-input",children:d("input",{type:"number",value:i(),onChange:c=>{c.target&&s(Number(c.target.value))}})})]})}h();h();function y4(e){let{t}=ue(),{corfirmText:n,fingerCountToToggleTranslagePageWhenTouching:a,fingerCountToToggleTranslationMaskWhenTouching:r,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:o,onChange:u,onClose:i,shortcuts:s,mouseHoverHoldKey:c}=e,l={mouseHoverHoldKey:zn(null)},f=zn(null);for(let m=0;m{m.target&&m.target.id==="immersive-translate-overlay"&&i()};return he(()=>{},[]),d("dialog",{id:"immersive-translate-overlay",onClick:p,open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:m=>{m.preventDefault(),i()}}),s.map((m,g)=>{let{name:T,description:w,shortcut:b}=m;return d("div",{class:"flex justify-between items-center",children:[d("label",{class:"mb-2 text-sm",for:T,children:[w,":"]}),d("input",{type:"text",class:"!w-36",ref:l[T],disabled:m.disabled,id:T,name:T,value:b})]},`key-${g}`)}),ia()&&d("div",{class:"flex justify-between items-center",children:[d("label",{for:"switch",class:"text-sm mb-2",children:t("mouseHoverHoldKey")}),d("input",{type:"text",class:"!w-36",placeholder:t("mouseHoverShortcutPlaceholder"),ref:l.mouseHoverHoldKey,id:"mouseHoverHoldKey",name:"mouseHoverHoldKey",value:c})]}),Br()&&d("div",{class:"flex justify-between items-center",children:[d("label",{for:"switch",class:"text-sm mb-2",children:t("toggleTranslatePageWhenThreeFingersOnTheScreen")}),d("select",{class:"select !w-36",ref:f,onChange:m=>{m.preventDefault();let g=m.target.value,T={fingerCountToToggleTranslagePageWhenTouching:parseInt(g)};u(T)},children:[0,2,3,4,5].map((m,g)=>d("option",{value:m,selected:m===a,children:`${t("fingers."+m)}`},"finger-"+g))})]}),Br()&&d("div",{class:"mt-2 flex justify-between items-center",children:[d("label",{for:"switch",class:"text-sm mb-2",children:t("fingerCountToToggleTranslagePageOnlyTranslationWhenTouching")}),d("select",{class:"select !w-36",onChange:m=>{m.preventDefault();let g=m.target.value,T={fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:parseInt(g)};u(T)},children:[0,2,3,4,5].map((m,g)=>d("option",{value:m,selected:m===o,children:`${t("fingers."+m)}`},"finger-"+g))})]}),Br()&&d("div",{class:"mt-2 flex justify-between items-center",children:[d("label",{for:"switch",class:"text-sm mb-2",children:t("toggleTranslationMaskWhenThreeFingersOnTheScreen")}),d("select",{class:"select !w-36",onChange:m=>{m.preventDefault();let g=m.target.value,T={fingerCountToToggleTranslationMaskWhenTouching:parseInt(g)};u(T)},children:[0,2,3,4,5].map((m,g)=>d("option",{value:m,selected:m===r,children:`${t("fingers."+m)}`},"finger-"+g))})]}),e.note&&d(e.note,{}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"#cancel",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:m=>{m.preventDefault(),i()},children:t("cancel")})}),n&&d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:m=>{m.preventDefault();let g=[];for(let w=0;w{let t=e.translationTheme;return!e.translationThemePatterns[t]||!e.translationThemePatterns[t].matches?[]:[...e.translationThemePatterns[t].matches]};function x4(e){let t=[];return Fo[e]&&(t=t.concat(Fo[e])),t.push({name:"textColor",type:"color",required:!1}),t.push({name:"zoom",type:"number",default:100,required:!1}),t}function T4(){let e=ft(),[t,n,a,r,o]=e;En(t,n);let[u,i]=$(!1),[s,c]=$(!1),[l,f]=$(0),[p,m]=$(null),{t:g,setLang:T}=ue(),[w,b]=$("");he(()=>(Ue("esc",()=>{i(!1),c(!1)}),()=>{Ue.unbind("esc")}),[]),he(()=>{Ge().then(x=>{Lt({config:x,url:globalThis.location.href}).then(v=>{m(v)})})},[t]);let S=x=>{n(v=>{let C={matches:[],excludeMatches:[]};return v&&v.translationThemePatterns&&v.translationThemePatterns[x]&&(C=v.translationThemePatterns[x]),Pr(document,x,C),{...v,translationTheme:x}})},D=x=>{n(v=>({...v,interfaceLanguage:x}))},N=(x,v,C)=>{i(!u),n(R=>{let M=R.translationThemePatterns||{},k=M[v]||{},P=k.matches||[],O=[...P];return C==="edit"&&(O=at(w,P)),O=bn(x,O),{...R,translationThemePatterns:{...M,[v]:{...k,matches:O}}}})},_=(x,v)=>{n(C=>{let R=C.translationThemePatterns||{},M=R[v]||{},P=[...M.matches||[]];return x.forEach(O=>{P=at(O,P)}),{...C,translationThemePatterns:{...R,[v]:{...M,matches:P}}}})},y=(x,v,C)=>{i(!u),b(x),f(C)};if(!p)return d("div",{children:"loading"});let E=p.config;return d(Qe.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:g("interface")})}),d("div",{class:"nav",children:[d(Pe,{title:g("interface language")}),d("select",{class:"select",onChange:x=>{T(x.target.value),D(x.target.value),me()||setTimeout(()=>{Ps()},200)},children:x5.map((x,v)=>d("option",{value:x,selected:x===E.interfaceLanguage,children:Mt(x,E.interfaceLanguage,!0)},"locale"+v))})]}),d("div",{class:"nav",children:[d(Pe,{title:g("keyboard shortcuts")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:x=>{x.preventDefault(),c(!s)},children:g("modify")})})]}),d("div",{class:"nav",children:[d(Pe,{title:g("enableLineBreak"),description:g("enableLineBreakDescription")}),d("label",{for:"switch",children:d("input",{type:"checkbox",onChange:x=>{let v=x.target.checked;n(C=>{let R=C.generalRule||{};return{...C,generalRule:{...R,lineBreakMaxTextCount:v?280:0}}})},checked:p.rule.lineBreakMaxTextCount>0,id:"switch",name:"switch",role:"switch"})})]}),p.rule.lineBreakMaxTextCount>0&&d("div",{class:"nav",children:[d(Pe,{title:g("lineBreakMaxTextCount")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:x=>{let v=x.target.value;n(C=>{let R=C.generalRule||{};return{...C,generalRule:{...R,lineBreakMaxTextCount:parseInt(v)}}})},name:"count",value:p.rule.lineBreakMaxTextCount,placeholder:"Text Length",required:!0})})]}),(fn().any||me())&&d("div",{class:"nav",children:[d(Pe,{title:g("enableUserscriptPagePopup"),description:g("enableUserscriptPagePopupDescription",{touch:g("fingers."+E.generalRule.fingerCountToToggleTranslagePageWhenTouching)})}),d("label",{for:"switch",children:d("input",{type:"checkbox",onChange:x=>{let v=x.target.checked;n(C=>{let R=C.generalRule||{};return{...C,generalRule:{...R,isShowUserscriptPagePopup:v}}})},checked:p.rule.isShowUserscriptPagePopup,id:"switch",name:"switch",role:"switch"})})]}),d("div",{class:"nav",children:[d(Pe,{title:g("translation display"),description:g("select diplay style")}),d("select",{class:"select",onChange:x=>{S(x.target.value)},children:H0.map((x,v)=>d("option",{value:x,selected:x===E.translationTheme,children:g(`translationTheme.${x}`)},"theme"+v))})]}),d("div",{class:"pt-2 text-sm",children:d("p",{children:[Zg,d("div",{class:"pt-2"}),d("font",{class:Hr(E.translationTheme,!1,[],!1).join(" "),children:d("font",{class:qr(E.translationTheme).join(" "),children:q0})}),E.translationTheme&&x4(E.translationTheme).length>0?d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:g("customTheme")}),d("div",{class:"flex flex-col items-end",children:[x4(E.translationTheme).map((x,v)=>{x.label=g(`customThemeLabel.${x.name}`);let C=E.translationThemePatterns||{},R=E.translationTheme,M=C[R]||{},k=`theme-${R}-${x.name}`,P=Nh(k)||void 0,O=M[x.name]||P;return d(so,{field:x,value:O,onChange:j=>{n(B=>{let A=B.translationThemePatterns||{},U={...A[E.translationTheme]||{},[x.name]:j},K={...B,translationThemePatterns:{...A,[E.translationTheme]:U}};return Pr(document,E.translationTheme,U),K})}},"theme-prop"+v)}),d("a",{href:"#",class:"text-sm secondary",onClick:x=>{x.preventDefault(),n(v=>{let C=v.translationThemePatterns||{},R={...C[E.translationTheme]};x4(E.translationTheme).forEach(k=>{delete R[k.name]});let M={...v,translationThemePatterns:{...C,[E.translationTheme]:R}};return Pr(document,E.translationTheme,{matches:[],excludeMatches:[]},!0),M})},children:g("resetToDefaultColor")})]})]}):null,d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:g("previewAllThemes")}),H0.map((x,v)=>d("div",{class:"pt-2",children:d("label",{children:[d("div",{class:"flex justify-between",children:d("div",{children:[d("input",{type:"radio",name:"theme",value:x,checked:x===E.translationTheme,onChange:C=>{S(C.target.value)}}),g(`translationTheme.${x}`)]})}),d("p",{children:d("font",{class:Hr(x,!1,[],!1).join(" "),children:d("font",{class:qr(x).join(" "),children:q0})})})]})},"theme-index-"+v))]})]})}),d("div",{class:"nav",children:[d(Pe,{title:"",description:g("useAboveStyleForTheseSites",{theme:g(`translationTheme.${E.translationTheme}`)})}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:x=>{x.preventDefault(),i(!u)},children:g("add")})})]}),u?d(ja,{toggleModal:x=>{x.preventDefault(),i(!u)},onAddInterfaceUrl:(x,v)=>{N(x,E.translationTheme,v)},urlValue:w,index:l}):null,d(Ua,{urls:T5(E),type:"matches",onDeleteUrl:x=>{_(x,E.translationTheme)},onEditUrl:y}),d(E4,{config:E,visible:s,onClose:()=>c(!1)})]})}function E4({config:e,visible:t,onClose:n}){let{t:a}=ue(),[r,o,u,i,s]=Ye(Qe);if(!t||!e)return null;let c=a("confirm"),l=()=>d("blockquote",{class:"text-sm",children:[a("browserShortcutsSucks")," ",d("kbd",{children:"Ctrl+A"}),"\xA0",d("kbd",{children:"Alt+B"}),"\xA0",d("kbd",{children:"Command+C"}),"\xA0 ",d("kbd",{children:"Ctrl+Shift+D"})," "]});return me()||(Va()?(l=()=>d("blockquote",{class:"text-sm",children:[a("browserShortcutsNoteForFirefox")," ",d("a",{target:"_blank",href:"https://support.mozilla.org/zh-CN/kb/%E7%AE%A1%E7%90%86Firefox%E7%9A%84%E6%89%A9%E5%B1%95%E5%BF%AB%E6%8D%B7%E6%96%B9%E5%BC%8F",children:[a("help"),"?"]}),d("br",{}),d("br",{}),a("browserShortcutsSucks")," ",d("kbd",{children:"Ctrl+A"}),"\xA0",d("kbd",{children:"Alt+B"}),"\xA0",d("kbd",{children:"Cmd+C"}),"\xA0 ",d("kbd",{children:"Ctrl"}),"\xA0",d("kbd",{children:"D"})," "]}),c=a("confirm")):(l=()=>d("blockquote",{class:"text-sm",children:[a("browserShortcutsNoteForChrome"),"\xA0",d("a",{href:"#",onClick:f=>{f.preventDefault(),Q.tabs.create({url:"chrome://extensions/shortcuts"})},children:a("goSettings")})]}),c=a("confirm"))),d(y4,{note:l,corfirmText:c,fingerCountToToggleTranslagePageWhenTouching:e.generalRule.fingerCountToToggleTranslagePageWhenTouching,fingerCountToToggleTranslationMaskWhenTouching:e.generalRule.fingerCountToToggleTranslationMaskWhenTouching,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:e.generalRule.fingerCountToToggleTranslagePageOnlyTranslationWhenTouching,mouseHoverHoldKey:e.generalRule.mouseHoverHoldKey,shortcuts:Jg.map(f=>({name:f,shortcut:e.shortcuts[f],description:a(`browser.${f}`),disabled:!me()})),onChange:f=>{if(f){let{shortcuts:p,fingerCountToToggleTranslagePageWhenTouching:m,fingerCountToToggleTranslationMaskWhenTouching:g,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:T,mouseHoverHoldKey:w}=f;me()?o(b=>{p=p||[];let S=p.reduce((N,_)=>(N[_.name]=_.shortcut,N),{...b.shortcuts}),D={...b,shortcuts:S};return m!==void 0&&(D.generalRule={...D.generalRule,fingerCountToToggleTranslagePageWhenTouching:m}),g!==void 0&&(D.generalRule={...D.generalRule,fingerCountToToggleTranslationMaskWhenTouching:g}),T!==void 0&&(D.generalRule={...D.generalRule,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:T}),w&&(D.generalRule={...D.generalRule,mouseHoverHoldKey:w}),D}):(m!==void 0||g!==void 0||w||T!==void 0)&&o(b=>{let S={...b};return m!==void 0&&(S.generalRule={...S.generalRule,fingerCountToToggleTranslagePageWhenTouching:m}),g!==void 0&&(S.generalRule={...S.generalRule,fingerCountToToggleTranslationMaskWhenTouching:g}),T!==void 0&&(S.generalRule={...S.generalRule,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:T}),w&&(S.generalRule={...S.generalRule,mouseHoverHoldKey:w}),S}),f&&f.isClose&&n()}else n(),Q.tabs.create({url:"chrome://extensions/shortcuts"})},onClose:n})}h();function C4(){let[e,t,n,a]=ft();En(e,t);let[r,o]=$(null),{t:u}=ue(),[i,s]=$({}),[c,l]=$({});he(()=>{Ge().then(y=>{o(y)}),Q.storage.sync.get(null).then(y=>{s(y),Q.storage.local.get(null).then(E=>{l(E)})})},[e]);let f=y=>{t(E=>({...E,debug:y}))},p=y=>{t(E=>({...E,beta:y}))},m=y=>{t(()=>({...y}))},g=y=>{try{let E=y.target.value,x={...e};if(!E)delete x.rules;else{let v=JSON.parse(E);if(!Array.isArray(v)){Bt("Invalid rules, rules must be an array");return}x.rules=v}m(x),ut(u("saved"))}catch(E){Bt(`Invalid JSON ${E.message}`)}},T=y=>{let E={...e};E.generalRule||(E.generalRule={}),E.generalRule={...E.generalRule,injectedCss:y.target.value||""},m(E),ut(u("saved"))},w=y=>{try{let E=JSON.parse(y.target.value);m(E),ut(u("saved"))}catch(E){Bt(`Invalid JSON ${E.message}`)}},b=y=>{y.preventDefault()},S=y=>{y.preventDefault(),confirm(u("confirmResetConfig"))&&(m(Za()),Aa().catch(E=>{z.error("clean local config error",E)}),Ir().catch(E=>{z.error("clean buildin config error",E)}),lo().catch(E=>{z.error("clean cache error",E)}),ut(u("resetSuccess")))},D=y=>{if(y.preventDefault(),confirm(u("confirmResetConfig"))){let E={...e};delete E.rules,m(E),ut(u("resetThisSuccess"))}},N=y=>{if(y.preventDefault(),confirm(u("confirmResetConfig"))){let E={...e};E.generalRule||(E.generalRule={}),E.generalRule={...E.generalRule},delete E.generalRule.injectedCss,m(E),ut(u("resetThisSuccess"))}},_=`[{ + `);if(l.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(l)}.`)}let m=l[0].translations[0],p=l[0].detectedLanguage;return{text:m.text,from:hh.get(p.language),to:hh.get(m.to)}}h();function Ch(e){let t=e.split(".");if(t.length<=1)throw new Error("invlaid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let a=n.replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(globalThis.atob(a).split("").map(function(i){return"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)}).join("")),o=JSON.parse(r),u=new Date(o.exp*1e3);return{accessToken:e,accessTokenExpiresAt:u.toISOString()}}var dr=null,GT=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],u4=new Map(GT),mu=class extends Te{static langMap=u4;isSupportList=!0;maxTextLength=1800;static async clearState(){dr=null,await zo(Wu)}async translate(t){let{text:n,from:a,to:r}=t;return n?await Eh(n,a,r):{...t}}async init(){if(!dr){dr={};let t=await Uo(Wu);t&&(dr=t)}await vh(dr)}async translateList(t){let{from:n,to:a,text:r}=t,o=u4.get(n)||"auto",u=u4.get(a)||a;o==="auto"&&(o="");let i=await vh(dr),s=[];for(let p of r)s.push({Text:p});let c=JSON.stringify(s),l=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${o}&to=${u}&api-version=3.0&includeSentenceLength=true`,m=await se({url:l,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+i.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin"},body:c,method:"POST"});if(m&&m.length>0&&m[0].translations&&m[0].translations.length>0)return{text:m.map(p=>p.translations[0]?.text||""),from:n,to:a};throw new Error("Microsoft translate error "+JSON.stringify(m))}};async function vh(e){if(e&&e.accessToken&&e.accessTokenExpiresAt){let t=Date.now(),a=new Date(e.accessTokenExpiresAt).getTime();if(a-t>30*1e3)return e;if(a-t>3e3)return wh().catch(r=>{z.error(r)}),e}return wh()}async function wh(){let e=await y3({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET"}),t=Ch(e),n=t.accessTokenExpiresAt,r=new Date(n).getTime()-Date.now();return dr=t,await jo(Wu,t,r-1e3),{accessToken:e,accessTokenExpiresAt:t.accessTokenExpiresAt}}h();var Ah=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],i4=new Map(Ah),VT=new Map(Ah.map(([e,t])=>[t,e])),s4=class extends Te{static langMap=i4;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";appid="";key="";isSupportList=!1;maxTextGroupLength=20;constructor(t,n,a){if(super(t,n,a),!t||!t.appid||!t.key)throw new Error("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim()}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:a}=this,{appid:r,key:o}=this,{text:u,from:i,to:s}=t,c=new URLSearchParams({from:i4.get(i)||"auto",to:i4.get(s)||s,q:u,salt:n,appid:r,sign:La(r+u+n+o)}),l=new URL(a);l.search=c.toString();let m=await se({url:l.toString()});if(m.error_code)throw new Tt("API_SERVER_ERROR",m.error_msg);let{trans_result:p,from:f}=m,g=p.map(({dst:w})=>w);return{from:VT.get(f)||f,to:s,text:g.join(` +`)}}},kh=s4;h();h();var gr=class extends Te{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,a){super(t,n,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let o=await this.checkLang(a,n);if(!o)return{text:n,from:a,to:r};a=o;let u=this.handleRequest(n,a,r),i=await bi(u);return{text:this.handleResponseText(i),from:a,to:r}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let o=await this.checkLang(a,n.join(" "));if(!o)return{text:n,from:a,to:r};a=o;let u=this.handleRequest(n,a,r),i=await bi(u);return{text:this.handleResponseText(i),from:a,to:r}}handleBaseApiServiceConfig(t){let n=t.request.url,a=t.request.headers||{};return a["content-type"]||(a["content-type"]="application/json"),{url:n,retry:t.request.retry||2,method:t.request.method||"POST",headers:a,body:JSON.stringify(t.request.body)}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,a){let r={...this.requestBaseConfig},o=r?.body||"",u=this.apiServiceConfig.keywords||{};r.body=s(o);let i=r.headers||{};return Object.keys(i).forEach(c=>{i[c]=s(i[c])}),r.headers=i,r.url=s(r.url||""),r;function s(c){return c.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",a).replaceAll(/{([a-z:_]+)}/gi,(m,p)=>{let[f,g]=p.split(":"),y=u[f];return g==="random"?YT(y.split(",")):y})}}handleResponseText(t){let n=this.apiServiceConfig.response,a=t,r=n.text.split(".");for(let o of r){if(Array.isArray(a))return a=a.map(u=>u[o]),a;a=a[o]}return a}detectLanguageRemotely(t){return cr.detectLanguageRemotelyByTransmart(t)}};function YT(e){let t=Math.floor(Math.random()*e.length);return e[t]}var l4=class extends gr{constructor(t,n,a){if(!t?.token)throw new Error("token are required");super({...t,isSupportList:!0,langs:[["zh-CN","zh"],["en","en"],["ja","ja"]],keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,a)}},Sh=l4;h();var JT=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],ks=new Map(JT),c4=class extends Te{static langMap=ks;token="ssdj273ksdiwi923bsd9";constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t;if(!ks.get(r))throw new Error(`Unsupported language: ${r}`);if(a==="auto")throw new Error("Unsupported language: auto");let u=n;return{text:(await se({retry:2,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:u,trans_type:`${ks.get(a)||"auto"}2${ks.get(r)}`})})).target,from:a,to:r}}},Dh=c4;h();var Lh=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],d4=new Map(Lh),QT=new Map(Lh.map(([e,t])=>[t,e]));function ZT(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var g4=class extends Te{static langMap=d4;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,a){if(super(t,n,a),!t||!t.appId||!t.appSecret)throw new Error("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,o=XT(32),u=Math.round(new Date().getTime()/1e3),i=this.appId+ZT(n)+o+u+this.appSecret,s=await In(i),c={q:n,appKey:this.appId,salt:o.toString(),from:d4.get(a)||"auto",to:d4.get(r)||r,sign:s,signType:"v3",curtime:u.toString()};this.domain&&this.domain!=="general"&&(c.domain=this.domain),this.vocabId&&(c.vocabId=this.vocabId);let l=new URLSearchParams(c),p=await se({url:"https://openapi.youdao.com/api",method:"POST",body:l.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"}});if(!p.translation)throw new Error(JSON.stringify(p));let f=p.l,[g,y]=f.split("2");return{text:p.translation.join(` +`),from:QT.get(g),to:r}}};function XT(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r[t,e]));var p4=class extends Te{static langMap=m4;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,o={q:n,from:m4.get(a)||"auto",to:m4.get(r)||r},u=new URLSearchParams(o),i=await se({url:"https://aidemo.youdao.com/trans",method:"POST",body:u.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"}});if(i&&i.translation)return{text:i.translation.join(` +`),from:a,to:r};throw new Error("Youdao translation failed: "+JSON.stringify(i))}},Fh=p4;h();var pu=class extends gr{constructor(t,n,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(r=>[r,r]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||Ga,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,a)}};var e5={mock:uo,mock2:uo,custom:pu,google:lr,transmart:cr,deepl:ah,volc:mh,volcAlpha:du,bing:mu,tencent:ru,tenAlpha:ou,baidu:kh,caiyun:Sh,cai:Dh,openl:Es,youdao:Mh,you:Fh,d:oo,dpro:oo,deeplx:gu,niu:rh,azure:oh,openai:ih,chatgpt:su,papago:uh,aliyun:cu},da={};Object.keys(Mn).forEach(e=>{da[e]={...Mn[e],class:e5[e]}});function Zr(e,t){let n=sn;if(da[e]&&da[e].class&&da[e].class.langMap&&da[e].class.langMap.size>0){let a=da[e].class.langMap,r=n.filter(o=>a.get(o));return r.includes(t)||r.unshift("placeholder"),r}else return sn}function _h(e,t,n){let a=da[t],r=n.config.translationServices[t]||{},o=r.provider||"",u=!0,i=[...a.allProps||[]],s=a.providers||[],c=[],l=[];if(i.length>0){i.forEach((p,f)=>{let g=p;if(s.length>0){if(p.providers&&p.providers.length>0&&!p.providers.includes(o))return;p.type=="select"&&(g={...p},g.options=p.options?.filter(y=>y.providers?.includes(o)))}p.optional?l.push(g):c.push(g)});let m=l.concat(c).filter(p=>p.required);if(m.length>0){for(let p of m)if(!r[p.name]){u=!1;break}}}return{...a,id:t,selected:n[e]===t,ok:u,currentProvider:o,providers:s,config:r,props:a.props||[],allProps:i,explicitProps:c||[],optionalProps:l||[]}}async function la(e,t){if(!e.text)return e;let n=await Ia({sentences:[e]},t);if(n.sentences.length>0)return{...e,...n.sentences[0]};throw new Tt("translateFailed","translate failed")}async function zf(e,t){for(let n of e)try{return await la({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n}),n}catch{continue}return null}async function _c(e){let{config:t,translationService:n}=e,a=t.translationGeneralConfig,r=t.translationServices,o=n,u=r[o]||{},i=Xt(e.user),s=new da[o].class(u,a,{translationService:o,userToken:e.user?.token,isPro:i}),c=s.getDefaultRateLimit();c&&(u&&!u.limit&&(u.limit=c.limit),u&&!u.interval&&(u.interval=c.interval)),o==="deepl"&&u&&u.provider==="pro"&&(u.limitForImmersiveDeepl?u.limit=u.limitForImmersiveDeepl:c&&(u.limit=c.limit)),await f3(o,u),await s.init()}async function Ia(e,t,n){if(!e.sentences.length)return{...e};let{config:a,translationService:r,state:o}=t,u=a.translationGeneralConfig,i=a.translationServices,s=r,c=i[s]||{};s==="openai"&&(e.sentences=e.sentences.map(S=>({...S,from:"auto"})));let l=[],m={sentences:Array(e.sentences.length)},p=e.sentences.length,f=-1;if(o.cache)for(let S of e.sentences){f++;let D=s;s==="openl"&&(D=s+"-"+c.codename||Es.DEFAULT_CODENAME);let N=null;try{N=await Bu(Hf({originalText:S.text,from:S.from,to:S.to,service:D}),200)}catch(_){z.warn("query cache DB error, but it's ok",_)}if(N){let _={...S,text:N.translatedText};m.sentences[f]=_,n&&n(null,_,S)}else l.push(S)}else l.push(...e.sentences);let g=l.length;if(p-g>0&&z.debug(`use ${p-g} sentences from cache`),!l.length)return m;let y,w=Xt(t.user);try{y=new da[s].class(c,u,{translationService:s,userToken:t.user?.token,isPro:w}),await y.init()}catch(S){if(n)for(let D of l)n(S,null,D);throw S}let b=await y.multipleTranslate({sentences:l},c,(S,D,N)=>{if(n&&n(S,D,N),!S&&D&&!s.startsWith("mock")&&o.cache){let _=s;s==="openl"&&(_=s+"-"+c.codename||Es.DEFAULT_CODENAME),o.cache&&Bu(qf({translatedText:D.text,from:N.from,to:N.to,detectedFrom:D.from,key:La(N.text),service:_}),3e3).catch(x=>{z.warn("set cache DB error",x)})}});for(let S of b.sentences){let D=m.sentences.findIndex(N=>!N);if(D===-1)throw new Tt("translateFailed","can not match the result");m.sentences[D]=S}return m}h();function Pe(e){return d("div",{class:"nav-left",children:[d("div",{class:"title",children:e.title}),d("div",{class:"description",children:e.description})]})}h();h();function mr(e){let{t}=ue(),n={};e.width&&(n={width:`${e.width}px`});let[a,r]=$(e.value),{field:o,onFinish:u}=e,i=o.name;o.label&&(i=o.label),o.labelKey&&(i=t(o.labelKey));let s={};return o.descriptionLink1&&(s[1]=o.descriptionLink1),d("div",{class:"mt-3",children:[d("label",{for:e.field.name,class:"mb-[var(--spacing)]",children:[i,"\uFF1A"]}),e.field.type==="textarea"?d(Fe,{children:[d("textarea",{style:n,autoComplete:"off",required:e.field.required,placeholder:e.field.placeholder||e.field.name,class:"input",rows:e.rows,value:Array.isArray(a)?a.join(","):a,type:e.type,onInput:c=>{let l=c.target.value,m=Array.isArray(a)?l.split(","):l;r(m),e.onChange(m)},onChange:()=>{u&&u()}}),e.field.descriptionKey?d("small",{dangerouslySetInnerHTML:{__html:t(e.field.descriptionKey,s)}}):null]}):d(Fe,{children:[d("input",{style:n,required:e.field.required,placeholder:e.field.placeholder||e.field.name,value:a,type:e.type,disabled:e.field.disabled||!1,name:e.field.name,autoComplete:"off",onInput:c=>{r(c.target.value),e.onChange(c.target.value)},onChange:()=>{(e.type==="text"||e.type==="password")&&u&&u()}}),e.field.descriptionKey?d("small",{dangerouslySetInnerHTML:{__html:t(e.field.descriptionKey,s)}}):null]})]})}function lo(e){let{t}=ue(),[n,a]=$(!0),[r,o]=$(!1),{config:u,currentProvider:i,onFinish:s,field:c,onChange:l,value:m,isProUser:p}=e;m=m??(c.default||""),he(()=>{c.options&&(c.options.some(y=>y.value===m)||o(!0))},[]);let f=c.name;if(c.label&&(f=c.label),c.labelKey&&(f=t(c.labelKey)),c.type==="select")return d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[f,"\uFF1A"]}),d(Gl,{maxWidth:200,items:c.options.map(g=>({label:`${g.label?t(g.label):g.value}`,value:g.value,selected:m===g.value,onSelected:()=>{l(g.value)}})),onChange:l,isInput:r,value:m})]});if(c.type==="openai-model-select"){let g=[];return u.proOpenaiModels.includes(m)?g=u.proOpenaiModels:g=u.proOpenaiModels.concat(m),d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[f,"\uFF1A"]}),d(Gl,{maxWidth:250,items:g.map(y=>({label:y,value:y,selected:m===y,onSelected:()=>{l(y)}})),onChange:l,isInput:i!=="pro"?r:!1,value:m}),i!=="pro"&&d("label",{for:"customContent",class:"text-sm",onClick:()=>{o(!r)},children:[d("input",{type:"checkbox",id:"customContent",name:"customContent",checked:r}),t("customContent")]})]})}else{if(c.type==="text")return d("div",{children:d(mr,{field:c,value:m,type:c.type,onChange:l,onFinish:s})});if(c.type==="textarea")return d("div",{children:d(mr,{field:c,value:m,type:c.type,onChange:l,onFinish:s})});if(c.type==="jsonarea")return d("div",{children:d(mr,{field:{...c,type:"textarea"},value:m,rows:5,type:c.type,onChange:l,onFinish:s})});if(c.type==="number")return d("div",{children:d(mr,{field:c,value:m,type:c.type,width:196,onChange:l})});if(c.type==="password")return d("div",{children:[d(mr,{field:c,value:m,type:n?c.type:"text",onChange:l,onFinish:s}),d("label",{for:"translate",onClick:()=>{a(!n)},children:[d("input",{type:"checkbox",id:"translate",name:"translate"}),t("show password")]})]});if(c.type==="color"){let g=m,y="";return g||(g="#FFFFFF",y="#FFFFFF"),d("div",{children:d("label",{class:"flex items-center",for:c.name,children:[d("span",{class:"mr-2",children:c.label||c.name}),d("input",{type:"text",id:c.name,class:"border-color-text mr-2",placeholder:y||"",value:m,onInput:w=>{l(w.target.value)}}),d("input",{id:c.name,type:"color",name:c.name,value:g,onInput:w=>{l(w.target.value)}})]})})}else return null}}h();function Ss(e){let{t,lang:n}=ue();return d("details",{role:"list",class:"nav-right",children:[d("summary",{"aria-haspopup":"listbox",children:t("edit")}),d("ul",{role:"listbox",class:"option-list",children:e.options.map((a,r)=>{let o=Mt(a.value,n);return d("li",{children:d("label",{children:[d("input",{type:"checkbox",onChange:()=>{e.onToggleAlwaysLangs(!a.checked,a.value)},value:a.value,checked:a.checked}),o]})},"language-"+r)})})]})}h();function za(e){let{t}=ue(),[n,a]=$([]),[r,o]=$(!1);function u(){e.onDeleteUrl(n,e.type),a([]),o(!1)}return e.urls.length?d("div",{children:[e.urls.length>1?d("div",{style:"display:flex;flex-direction:row;align-items:center;padding: 0 24px;margin-bottom:12px;",children:[d("input",{type:"checkbox",id:"checkAll",checked:r,onChange:i=>{if(i.target.checked){let s=e.urls;a(s)}else a([]);o(i.target.checked)}}),d("label",{htmlFor:"checkAll",children:"\u5168\u9009"}),d("div",{style:"flex:1;"}),d("a",{style:{cursor:"pointer"},onClick:u,children:t("delete")})]}):null,d("div",{class:"url-list-item",children:e.urls.map((i,s)=>d("div",{className:"url-list",style:"padding:6px 24px;",children:d("div",{className:"url-left",style:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%"},children:[d("input",{type:"checkbox",checked:n.includes(i),style:"margin-right:12px;",onChange:c=>{c.target.checked?a([...n,i]):a(n.filter(l=>l!==i))}}),d("div",{className:"url-name height-tight",children:i}),d("div",{style:{flex:1}}),d("a",{style:{marginRight:"12px",cursor:"pointer"},onClick:c=>{e.onEditUrl(i,e.type,s)},children:t("edit")}),d("a",{style:{cursor:"pointer"},onClick:c=>{e.onDeleteUrl([i],e.type)},children:t("delete")})]})},"menu"+s))})]}):null}h();function Ha(e){let{t}=ue(),n=zn(null),{toggleModal:a}=e;return d("dialog",{id:"immersive-translate-overlay",onClick:o=>{o.target&&o.target.id==="immersive-translate-overlay"&&a(o)},open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:e.toggleModal}),d("div",{class:"add-text",children:t("add url")}),d("input",{placeholder:"URL",ref:n,value:e.urlValue}),d("blockquote",{children:d("p",{class:"text-sm",children:t("addUrlDescription")})}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"#cancel",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:e.toggleModal,children:t("cancel")})}),d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:o=>{if(o.preventDefault(),n.current&&n.current.value){if(e.onSubmitAddUrl){if(e.urlValue!==""){e.onSubmitAddUrl(n.current.value,e.index,e.type,"edit");return}e.onSubmitAddUrl(n.current.value,e.index,e.type);return}else if(e.onAddInterfaceUrl){if(e.urlValue!==""){e.onAddInterfaceUrl(n.current.value,"edit");return}e.onAddInterfaceUrl(n.current.value)}}},children:t("confirm")})})]})]})})}h();var Qe=yr([]);function Ds(e){let[t,n]=$(null);return he(()=>{Ge().then(a=>{n(a),z.debug("current config",a)})},[]),he(()=>{Ge().then(a=>{n(a)})},[e]),t}function Ls(e){let[t,n]=$(null);return he(()=>{e&&Lt({url:"http://localhost",config:e,state:{cache:!1}}).then(a=>n(a))},[e]),t}var Rh=m3();function Ms(){let e=ht(),[t,n,a,r,o]=e,u=Ds(t),i=Ls(u);return En(t,n),he(()=>()=>{Ue.unbind("esc")},[]),u?d(Qe.Provider,{value:e,children:[d(t5,{}),d(i5,{config:u}),d(n5,{config:u}),d(fu,{config:u,ctx:i,serviceType:"translationService"}),d(a5,{config:u,ctx:i}),d(r5,{config:u,ctx:i}),d(o5,{config:u}),d(u5,{config:u})]}):d("div",{children:"loading"})}function t5(){let[e,t,n,a,r]=Ye(Qe),{t:o}=ue(),u=i=>{i.preventDefault(),confirm(o("confirmResetConfig"))&&(r({...tr(),updatedAt:new Date().toISOString()}),ka().catch(s=>{z.error("clean local config error",s)}),Aa().catch(s=>{z.error("clean buildin config error",s)}),Ua().catch(s=>{z.error("clean cache error",s)}),ut(o("resetSuccess")),setTimeout(()=>{window.location.reload()},500))};return d("div",{class:"nav",children:[d("strong",{class:"text-lg",children:o("general")}),d("a",{class:"text-sm",href:"#",onClick:u,children:o("reset")})]})}function n5({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue();if(!e)return null;let i=c=>{n(l=>({...l,targetLanguage:c}))},s=Zr(e.translationService,e.targetLanguage);return d("div",{class:"nav",children:[d(Pe,{title:u("target"),description:u("translate other languages into specific language")}),d("select",{class:"select",onChange:c=>{c.preventDefault(),i(c.target.value)},children:s.filter(c=>c!=="auto").map((c,l)=>d("option",{value:c,selected:c===e?.targetLanguage,children:Mt(c,e?.interfaceLanguage)},"language"+l))})]})}function fu({config:e,ctx:t,serviceType:n}){let{t:a}=ue(),r=ot(),[o,u]=$(!1),[i,s]=$(""),[c,l]=$(""),[m,p]=$(null),[f,g]=$(null),[y,w,b,S,D]=Ye(Qe),N=T=>{w(v=>({...v,[n]:T}))},_=t&&Ei(t,n)||[],x=fa(()=>{if(e&&t){let{translationServices:T}=e,v=t[n],C=T?.[v];return C?{...C}:{}}return null},[e,t]),E=fa(()=>{if(e&&t){let T=t[n];if(Mn[T])return _h(n,T,t)}return null},[e,t]);return he(()=>{Xe.get(ct,null).then(T=>{T?(p(T),g(Xt(T))):g(!1)}).catch(T=>{g(!1)})},[]),f===null?null:d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:a("service"),description:a("select translation service")}),d("select",{class:"select",onChange:T=>{T.preventDefault(),s(""),l(""),N(T.target.value)},children:_.map((T,v)=>d("option",{value:T.id,selected:T.id===t?.[n],children:`${a("translationServices."+T.id)}${T.ok?"":" "+(!f&&!r&&T.providers&&T.providers.length>0?a("needLoginAction"):a("needActionForOptions"))}`},"service-item="+v))})]}),x&&E&&d("div",{class:"text-right text-sm",children:[c&&d("span",{class:"verified text-green-500 mr-2",children:a("verified")}),i&&d("span",{class:"verified text-red-500 mr-2",children:i}),d("a",{"aria-busy":o,href:"#",class:"secondary",onClick:async T=>{T.preventDefault();try{s(""),l(""),u(!0),await qn(500);let v=E.class;v&&v.clearState&&await v.clearState(),await la({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:E.id}),l("verified")}catch(v){s(v.message)}finally{u(!1)}},children:a("verifyService")})]}),E?.providers?.length||E?.explicitProps?.length||E?.optionalProps?.length?d("article",{children:[E&&E.providers&&E.providers.length>0&&d("fieldset",{children:[d("legend",{class:"mb-4",children:a("chooseProviderLabel")}),E.providers.map((T,v)=>d(nl,{isProUser:f,provider:T,currentProvider:E.currentProvider,onChange:C=>{C.preventDefault();let M=C.target.value;M&&w(k=>{let P=k.translationServices||{},O=P[E.id]||{};return{...k,translationServices:{...P,[E.id]:{...O,provider:M}}}})}}))]}),E?.titleKey?d("div",{class:"description pb-1",dangerouslySetInnerHTML:{__html:Ne.sanitize(a(E?.titleKey),{ALLOWED_ATTR:["href","target"]})}}):null,E?.docUrl&&(!E.providers||E.providers.length===0)?d("div",{children:[d("a",{target:"_blank",class:"pb-1 docUrl",href:E.homepage,children:a(`translationServices.${E.id}`)}),"\xA0",d("span",{class:"description pb-1",children:a("please refer to")}),"\xA0",d("a",{target:"_blank",class:"pb-1 docUrl",href:E.docUrl,children:a("KeyAndConfigurationTutorial")})]}):null,x&&e&&(E?.explicitProps||[]).map((T,v)=>d("div",{class:"mt-2",children:d(lo,{config:e,isProUser:f,currentProvider:E.currentProvider,field:T,value:x[T.name],onChange:C=>{w(R=>{let M=R.translationServices||{},k=M[E.id]||{};return{...R,translationServices:{...M,[E.id]:{...k,[T.name]:C}}}})},onFinish:()=>{ut(a("saved"))}},T.name+v)},"service-item-prop-"+T.name+v)),x&&e&&E&&E.optionalProps&&E.optionalProps.length>0&&d("details",{class:"pt-2 border-none",children:[d("summary",{style:{lineHeight:"1rem"},children:[a("moreOptions"),"\xA0\u{1F449}"]}),d("div",{children:E.optionalProps.map((T,v)=>{let C=x[T.name];return T.name==="apiUrl"&&E?.id==="openai"&&x?.APIKEY?.startsWith("immersiveopenai_")&&(T={...T,disabled:!0},C="https://openai-api.immersivetranslate.com/v1/chat/completions"),T.name=="placeholderDelimiters"&&(T.default=x.placeholderDelimiters||T.default),d("div",{class:"mt-2",children:d(lo,{config:e,field:T,value:C,onChange:R=>{w(M=>{let k=M.translationServices||{},P=k[E.id]||{};return{...M,translationServices:{...k,[E.id]:{...P,[T.name]:R}}}})},onFinish:()=>{ut(a("saved"))}},T.name+v)},"service-item-optional-prop-"+T.name+v)})}),d("a",{href:"#",class:"secondary",onClick:T=>{T.preventDefault(),w(v=>{let C=v.translationServices||{};return{...v,translationServices:{...C,[E.id]:{}}}}),setTimeout(()=>{window.location.reload()},100)},children:a("resetToDefaultSettings")})]})]}):null]})}function a5({config:e,ctx:t}){let{t:n}=ue(),[a,r,o,u,i]=Ye(Qe),s=e?.translationLanguagePattern?.matches||[],{handleTranslationLanguagePatternSelected:c}=Ih(r),l=(p,f)=>{c(p?"matches":void 0,f)},m=fa(()=>!e||!t?[]:Rh.concat("").map(p=>({checked:e.translationLanguagePattern?.matches?.includes(p),value:p})),[e,t]);return d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:n("always languages"),description:n("always translate the following languages")}),d(Ss,{options:m,onToggleAlwaysLangs:l})]}),d("div",{class:"langs-list",children:s.map((p,f)=>d("div",{class:"lang-card",children:[d("div",{id:`${p}`,children:Mt(p,e?.interfaceLanguage)}),d("a",{href:"#close",class:"close",target:"_blank","aria-label":"Close","data-target":`${p}`,onClick:g=>{g.preventDefault(),l(!1,s[f])}})]},"lang-"+f))})]})}function r5({config:e,ctx:t}){let{t:n}=ue(),[a,r,o,u,i]=Ye(Qe),s=e?.translationLanguagePattern.excludeMatches||[],{handleTranslationLanguagePatternSelected:c}=Ih(r),l=(p,f)=>{c(p?"excludeMatches":void 0,f)},m=fa(()=>!e||!t?[]:Rh.map(p=>({checked:e?.translationLanguagePattern?.excludeMatches?.includes(p),value:p})),[e,t]);return d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:n("neverTranslateLanguagesLabel"),description:n("neverTranslateTheFollowingLanguagesDescription")}),d(Ss,{options:m,onToggleAlwaysLangs:l})]}),d("div",{class:"langs-list",children:s.map((p,f)=>d("div",{class:"lang-card",children:[d("div",{id:`${p}`,children:Mt(p,e?.interfaceLanguage)}),d("a",{href:"#close",class:"close",target:"_blank","aria-label":"Close","data-target":`${p}`,onClick:g=>{g.preventDefault(),l(!1,s[f])}})]},"never-lang-"+f))})]})}function o5({config:e}){let{t}=ue(),[n,a,r,o,u]=Ye(Qe),[i,s]=$(""),[c,l]=$(0),[m,p]=$(!1);he(()=>{Ue("esc",()=>{p(!1)})},[]);let f=(w,b,S,D)=>{p(!m),a(N=>{let _=N.translationUrlPattern,x=[],E=[];_&&_.matches&&_.excludeMatches&&(x=_.matches,E=_.excludeMatches);let T=[...x],v=[...E];return D==="edit"&&(T[b]=w),T=bn(w,T),v=at(w,E),{...N,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...N.translationUrlPattern,matches:T,excludeMatches:v}}})},g=(w,b)=>{a(S=>{let D=S.translationUrlPattern,N=[];D&&D.matches&&(N=D.matches);let _=[...N];return w.forEach(x=>{_=at(x,_)}),{...S,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...S.translationUrlPattern,[b]:_}}})},y=(w,b,S)=>{p(!m),s(w),l(S)};return d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:t("always sites"),description:t("always translate the following sites")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:w=>{w.preventDefault(),p(!m)},children:t("add")})}),m?d(Ha,{toggleModal:w=>{w.preventDefault(),p(!m)},onSubmitAddUrl:f,urlValue:i,index:c}):null]}),d(za,{urls:e?.translationUrlPattern.matches||[],type:"matches",onDeleteUrl:g,onEditUrl:y})]})}function u5({config:e}){let{t}=ue(),[n,a,r,o,u]=Ye(Qe),[i,s]=$(!1),[c,l]=$(""),[m,p]=$(0);he(()=>{Ue("esc",()=>{s(!1)})},[]);let f=()=>{s(!i)},g=(b,S,D,N)=>{f(),a(_=>{let x=_.translationUrlPattern,E=[],T=[];x&&x.matches&&x.excludeMatches&&(E=x.matches,T=x.excludeMatches);let v=[...E],C=[...T];return N==="edit"&&(C[S]=b),v=at(b,E),C=bn(b,C),{..._,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{..._.translationUrlPattern,matches:v,excludeMatches:C}}})},y=(b,S)=>{a(D=>{let N=D.translationUrlPattern,_=[];N&&N.excludeMatches&&(_=N.excludeMatches);let x=[..._];return b.forEach(E=>{x=at(E,x)}),{...D,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...D.translationUrlPattern,[S]:x}}})},w=(b,S,D)=>{s(!i),l(b),p(D)};return d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:t("never sites"),description:t("never translate the following sites")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:b=>{b.preventDefault(),f()},children:t("add")})}),i?d(Ha,{toggleModal:b=>{b.preventDefault(),f()},onSubmitAddUrl:g,type:"excludeMatches",urlValue:c,index:m}):null]}),d(za,{urls:e?.translationUrlPattern.excludeMatches||[],type:"excludeMatches",onDeleteUrl:y,onEditUrl:w})]})}function Ih(e){return{handleTranslationLanguagePatternSelected:dn((n,a)=>{if(!n){e(u=>{let i={...u.translationLanguagePattern};return{...u,translationLanguagePattern:{...u.translationLanguagePattern,matches:at(a,i.matches),excludeMatches:at(a,i.excludeMatches)}}});return}let r=n,o=r==="matches"?"excludeMatches":"matches";a&&e(u=>{let i={...u.translationLanguagePattern};return i[r]=bn(a,i[r]),i[o]=at(a,i[o]),{...u,translationLanguagePattern:{...u.translationLanguagePattern,...i}}})},[e])}}var f4=0,h4;async function Oh(e){if(f4>60*10)return null;f4++,Xe.refresh(),await qn(300);let t=await Xe.get(ct,null);z.debug("loopCheckUser",f4,t),t?(clearTimeout(h4),e(t)):h4=setTimeout(Oh.bind(null,e),1500)}function Bh(e){let{user:t}=e,n=ot(),a=t&&t.email==="test@immersivetranslate.com",{t:r}=ue();if(t&&t.subscription&&t.subscription.subscriptionStatus=="active"){let o=t,u=o.subscription,i=d5(u.subscriptionTo),s=u.subscriptionType,c=s.startsWith("onetime_"),l=!c&&u.cancelAtPeriodEnd!="true",m="";return l?m=r("currentPlanDescriptionForContinuous",{plan:`${r(s)}`,endAt:i}):c?m=r("currentPlanDescriptionForOneTime",{plan:r(s),endAt:i,1:"https://immersivetranslate.com/accounts/upgrade?type=year",2:"https://immersivetranslate.com/accounts/upgrade?type=month"}):s==="yearly"||s==="year"?fm(o)?m=r("currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser",{plan:r(s+"ForOnce"),endAt:i,1:"https://immersivetranslate.com/billing"}):m=r("currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin",{plan:r(s+"ForOnce"),endAt:i,1:"https://immersivetranslate.com/accounts/upgrade?type=year"}):m=r("currentPlanDescriptionForAutoRenewCaceling",{plan:r(s+"ForOnce"),endAt:i}),d("span",{class:"info-subtitle",dangerouslySetInnerHTML:{__html:m}})}else return d("span",{class:"info-subtitle",children:n||a?"":r("currentPlanDescriptionForFree")})}function i5({config:e}){let{t}=ue(),n=ot(),[a,r]=$(null),o=!!e.showSponsorOnSafari,[u,i,s,c,l]=Ye(Qe);he(()=>(Xe.get(ct,null).then(g=>{g&&(r(g),s5(g.token).then(y=>{let w=y.data;w.token=g.token,Xe.set(ct,w),r(w)}).catch(y=>{Xe.remove(ct),r(null)}))}),()=>{clearTimeout(h4)}),[]);let m=dn(g=>{g&&g.preventDefault&&g.preventDefault(),a?.token&&l5(a.token).finally(async()=>{await Xe.remove(ct),await qn(200),await Xe.refresh(),r(null)})},[a]),p=dn(async g=>{g&&g.preventDefault&&g.preventDefault(),await Xe.set(_o,!0),c5(em),Oh(y=>{Ji(y.token,u,i),r(y),b4?.close(),window.location.reload()})},[r]),f=a?.avatar||w3;return a?!a.subscription||a.subscription.subscriptionStatus!="active"?d("div",{children:[d("div",{class:"title",children:t("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("span",{class:"info-title",title:a.email,children:a.email}),d(Bh,{user:a})]}),d("div",{class:"ops",children:[d("a",{class:n&&o===!1?"!hidden":"",style:{display:"flex",flexDirection:"row",alignItems:"center",marginRight:"24px"},href:`${Va}?from=${n?"safari":"extension"}`,children:[t("openPremium"),d("img",{width:24,height:24,style:{width:"24px",height:"24px"},src:Qr})]}),d("div",{class:"",children:d("a",{href:`${Dr}?from=${n?"safari":"extension"}`,children:t("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:m,children:t("logout")})})]})]})]}):d("div",{class:"",children:[d("div",{class:"title",children:t("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("div",{className:"flex",children:[d("span",{class:"info-title info-primary",children:a.userName}),d("img",{width:24,height:24,style:{width:"24px",height:"24px",marginLeft:"4px"},src:Qr})]}),d(Bh,{user:a})]}),d("div",{class:"",children:d("a",{href:Dr,children:t("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:m,children:t("logout")})})]})]}):d("div",{class:"header nav",children:[d("img",{src:f}),d("div",{class:"info",children:d("span",{class:"info-subtitle",children:t("nologin")})}),d("a",{class:"py-4",href:"#",onClick:p,children:t(n?"loginForSafari":"login")})]})}var Nh=Bo;function s5(e){return se({responseType:"json",url:Nh+"/v1/user",method:"get",headers:{token:e}})}function l5(e){return se({responseType:"json",url:Nh+"/v1/user/logout",method:"delete",headers:{token:e}})}var b4=null;function c5(e){let a=screen.width/2-230,r=screen.height/2-640/2;return b4=window.open(e,"loginWindow",`toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no,left=${a},top=${r},width=460,height=640,chrome=yes,centerscreen=yes`),b4}function d5(e){let t=new Date(e),n=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),r=String(t.getDate()).padStart(2,"0");return`${n}-${a}-${r}`}h();var Gt={};ni.forEach(e=>{e.labelKey&&(Gt[e.key]=e.labelKey)});function y4(){let e=ht(),[t,n,a,r,o]=e,[u,i]=$(null),{t:s}=ue();if(he(()=>{Ge().then(l=>{Lt({config:l,url:globalThis.location.href}).then(m=>{i(m)})})},[t]),!u)return d("div",{children:"loading"});let c=u.config;return d(Qe.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:s("inputOptions")})}),d(g5,{config:c}),d(m5,{config:c}),d(p5,{config:c}),d(fu,{config:c,ctx:u,serviceType:"inputTranslationService"}),d(f5,{config:c}),d(h5,{config:c}),d(y5,{config:c}),d(b5,{config:c})]})}function g5({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue();return e?d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:u("enableInputTranslation"),description:e.enableInputTranslationWithoutTriggerKey?u("enableInputTranslationDescriptionForNoneKey",{inputTargetLanguage:Mt(e.inputTargetLanguage,e.interfaceLanguage),trailingKey:Gt[e.inputTrailingTriggerKey]?u(Gt[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes}):u("enableInputTranslationDescription",{inputTargetLanguage:Mt(e.inputTargetLanguage,e.interfaceLanguage),startingKey:Gt[e.inputStartingTriggerKey]?u(Gt[e.inputStartingTriggerKey]):e.inputStartingTriggerKey,trailingKey:Gt[e.inputTrailingTriggerKey]?u(Gt[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes})}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:i=>{let s=i.target.checked;n(c=>({...c,enableInputTranslation:!!s}))},checked:e.enableInputTranslation})})]}),d("details",{class:"mt-3",children:[d("summary",{children:[u("clickToSeeQuickDemo")," \u{1F447}\u{1F447}"]}),d("video",{controls:!0,src:"https://s.immersivetranslate.com/videos/immpersive-translate-input-translation-demo-202307044.mp4"})]})]}):null}function m5({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue(),i=c=>{n(l=>({...l,inputTargetLanguage:c}))};if(!e)return null;let s=Zr(e.translationService,e.targetLanguage);return d("div",{class:"nav",children:[d(Pe,{title:u("inputTargetLanguage"),description:e.enableInputTranslationWithoutTriggerKey?u("inputTargetLanguageDescriptionForNoneKey"):u("inputTargetLanguageDescription",{startingKey:Gt[e.inputStartingTriggerKey]?u(Gt[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:c=>{c.preventDefault(),i(c.target.value)},children:s.filter(c=>c!=="auto").map((c,l)=>d("option",{value:c,selected:c===e.inputTargetLanguage,children:Mt(c,e.interfaceLanguage)},"language"+l))})]})}function p5({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue();return e?d("div",{class:"nav",children:[d(Pe,{title:u("enableInputTranslationWithoutTriggerKeyTitle",{trailingKey:Gt[e.inputTrailingTriggerKey]?u(Gt[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTargetLanguage:Mt(e.inputTargetLanguage,e.interfaceLanguage)}),description:""}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:i=>{let s=i.target.checked;n(c=>({...c,enableInputTranslationWithoutTriggerKey:!!s}))},checked:e.enableInputTranslationWithoutTriggerKey})})]}):null}function f5({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue(),i=s=>{n(c=>({...c,inputStartingTriggerKey:s}))};return e?d("div",{class:"nav",children:[d(Pe,{title:u("inputStartingTriggerKeyTitle"),description:e.inputStartingTriggerKey==="none"?u("inputStartingTriggerKeyDescriptionForNoneKey"):u("inputStartingTriggerKeyDescription",{startingKey:Gt[e.inputStartingTriggerKey]?u(Gt[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:s=>{s.preventDefault(),i(s.target.value)},children:ni.filter(s=>s.skipForStarting!==!0).map((s,c)=>d("option",{value:s.key,selected:s.key===e.inputStartingTriggerKey,children:s.labelKey?u(s.labelKey):s.key},"startingkey-"+c))})]}):null}function h5({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue(),i=s=>{n(c=>({...c,inputTrailingTriggerKey:s}))};return e?d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:u("inputTrailingTriggerKeyTitle"),description:u("inputTrailingTriggerKeyDescription",{trailingKey:Gt[e.inputTrailingTriggerKey]?u(Gt[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey})}),d("select",{class:"select",onChange:s=>{s.preventDefault(),i(s.target.value)},children:ni.filter(s=>s.skipForTrailing!==!0).map((s,c)=>d("option",{value:s.key,selected:s.key===e.inputTrailingTriggerKey,children:s.labelKey?u(s.labelKey):s.key},"startingkey-"+c))})]}),d("blockquote",{class:"text-sm",dangerouslySetInnerHTML:{__html:u("inputHelperInfo",{1:"https://immersivetranslate.com/docs/input/"})}})]}):null}function b5({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue(),[i,s]=$(!1),c=b=>{s(!i)},[l,m]=$(0),[p,f]=$(""),g=(b,S,D,N)=>{c(D),n(_=>{let x=_.inputTranslationUrlPattern,E=[],T=[];x&&x.matches&&x.excludeMatches&&(E=x.matches,T=x.excludeMatches);let v=[...E],C=[...T];return N==="edit"&&(D==="matches"?v[S]=b:C[S]=b),D==="matches"?(v=bn(b,v),C=at(b,T)):(v=at(b,E),C=bn(b,C)),{..._,inputTranslationUrlPattern:{..._.inputTranslationUrlPattern,matches:v,excludeMatches:C}}})},y=(b,S)=>{n(D=>{let N=D.inputTranslationUrlPattern,_=[];S==="matches"?N&&N.matches&&(_=N.matches):N&&N.excludeMatches&&(_=N.excludeMatches);let x=[..._];return b.forEach(E=>{x=at(E,x)}),{...D,inputTranslationUrlPattern:{...D.inputTranslationUrlPattern,[S]:x}}})},w=(b,S,D)=>{c(S),f(b),m(D)};return e?d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:u("inputTranslationBlockUrlsTitle"),description:u("inputTranslationBlockUrlsDescription")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:b=>{b.preventDefault(),c("excludeMatches")},children:u("add")})}),i?d(Ha,{toggleModal:b=>{b.preventDefault(),c("excludeMatches")},onSubmitAddUrl:g,type:"excludeMatches",urlValue:p,index:l}):null]}),d(za,{urls:e.inputTranslationUrlPattern.excludeMatches,type:"excludeMatches",onDeleteUrl:y,onEditUrl:w})]}):null}function y5({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue();if(!e)return null;let i=()=>fn().any?e.inputTrailingMobileTriggerKeyTimeout:e.inputTrailingTriggerKeyTimeout,s=c=>{n(l=>fn().any?{...l,inputTrailingMobileTriggerKeyTimeout:c}:{...l,inputTrailingTriggerKeyTimeout:c})};return d("nav",{children:[d(Pe,{title:u("inputTrailingTriggerKeyTimeout"),description:u("inputTrailingTriggerKeyTimeoutDescription")}),d("div",{class:"option-input",children:d("input",{type:"number",value:i(),onChange:c=>{c.target&&s(Number(c.target.value))}})})]})}h();h();function x4(e){let{t}=ue(),{corfirmText:n,fingerCountToToggleTranslagePageWhenTouching:a,fingerCountToToggleTranslationMaskWhenTouching:r,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:o,onChange:u,onClose:i,shortcuts:s,mouseHoverHoldKey:c}=e,l={mouseHoverHoldKey:zn(null)},m=zn(null);for(let f=0;f{f.target&&f.target.id==="immersive-translate-overlay"&&i()};return he(()=>{},[]),d("dialog",{id:"immersive-translate-overlay",onClick:p,open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:f=>{f.preventDefault(),i()}}),s.map((f,g)=>{let{name:y,description:w,shortcut:b}=f;return d("div",{class:"flex justify-between items-center",children:[d("label",{class:"mb-2 text-sm",for:y,children:[w,":"]}),d("input",{type:"text",class:"!w-36",ref:l[y],disabled:f.disabled,id:y,name:y,value:b})]},`key-${g}`)}),ua()&&d("div",{class:"flex justify-between items-center",children:[d("label",{for:"switch",class:"text-sm mb-2",children:t("mouseHoverHoldKey")}),d("input",{type:"text",class:"!w-36",placeholder:t("mouseHoverShortcutPlaceholder"),ref:l.mouseHoverHoldKey,id:"mouseHoverHoldKey",name:"mouseHoverHoldKey",value:c})]}),Or()&&d("div",{class:"flex justify-between items-center",children:[d("label",{for:"switch",class:"text-sm mb-2",children:t("toggleTranslatePageWhenThreeFingersOnTheScreen")}),d("select",{class:"select !w-36",ref:m,onChange:f=>{f.preventDefault();let g=f.target.value,y={fingerCountToToggleTranslagePageWhenTouching:parseInt(g)};u(y)},children:[0,2,3,4,5].map((f,g)=>d("option",{value:f,selected:f===a,children:`${t("fingers."+f)}`},"finger-"+g))})]}),Or()&&d("div",{class:"mt-2 flex justify-between items-center",children:[d("label",{for:"switch",class:"text-sm mb-2",children:t("fingerCountToToggleTranslagePageOnlyTranslationWhenTouching")}),d("select",{class:"select !w-36",onChange:f=>{f.preventDefault();let g=f.target.value,y={fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:parseInt(g)};u(y)},children:[0,2,3,4,5].map((f,g)=>d("option",{value:f,selected:f===o,children:`${t("fingers."+f)}`},"finger-"+g))})]}),Or()&&d("div",{class:"mt-2 flex justify-between items-center",children:[d("label",{for:"switch",class:"text-sm mb-2",children:t("toggleTranslationMaskWhenThreeFingersOnTheScreen")}),d("select",{class:"select !w-36",onChange:f=>{f.preventDefault();let g=f.target.value,y={fingerCountToToggleTranslationMaskWhenTouching:parseInt(g)};u(y)},children:[0,2,3,4,5].map((f,g)=>d("option",{value:f,selected:f===r,children:`${t("fingers."+f)}`},"finger-"+g))})]}),e.note&&d(e.note,{}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"#cancel",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:f=>{f.preventDefault(),i()},children:t("cancel")})}),n&&d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:f=>{f.preventDefault();let g=[];for(let w=0;w{let t=e.translationTheme;return!e.translationThemePatterns[t]||!e.translationThemePatterns[t].matches?[]:[...e.translationThemePatterns[t].matches]};function T4(e){let t=[];return Fo[e]&&(t=t.concat(Fo[e])),t.push({name:"textColor",type:"color",required:!1}),t.push({name:"zoom",type:"number",default:100,required:!1}),t}function E4(){let e=ht(),[t,n,a,r,o]=e;En(t,n);let[u,i]=$(!1),[s,c]=$(!1),[l,m]=$(0),[p,f]=$(null),{t:g,setLang:y}=ue(),[w,b]=$("");he(()=>(Ue("esc",()=>{i(!1),c(!1)}),()=>{Ue.unbind("esc")}),[]),he(()=>{Ge().then(T=>{Lt({config:T,url:globalThis.location.href}).then(v=>{f(v)})})},[t]);let S=T=>{n(v=>{let C={matches:[],excludeMatches:[]};return v&&v.translationThemePatterns&&v.translationThemePatterns[T]&&(C=v.translationThemePatterns[T]),Br(document,T,C),{...v,translationTheme:T}})},D=T=>{n(v=>({...v,interfaceLanguage:T}))},N=(T,v,C)=>{i(!u),n(R=>{let M=R.translationThemePatterns||{},k=M[v]||{},P=k.matches||[],O=[...P];return C==="edit"&&(O=at(w,P)),O=bn(T,O),{...R,translationThemePatterns:{...M,[v]:{...k,matches:O}}}})},_=(T,v)=>{n(C=>{let R=C.translationThemePatterns||{},M=R[v]||{},P=[...M.matches||[]];return T.forEach(O=>{P=at(O,P)}),{...C,translationThemePatterns:{...R,[v]:{...M,matches:P}}}})},x=(T,v,C)=>{i(!u),b(T),m(C)};if(!p)return d("div",{children:"loading"});let E=p.config;return d(Qe.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:g("interface")})}),d("div",{class:"nav",children:[d(Pe,{title:g("interface language")}),d("select",{class:"select",onChange:T=>{y(T.target.value),D(T.target.value),me()||setTimeout(()=>{Ps()},200)},children:T5.map((T,v)=>d("option",{value:T,selected:T===E.interfaceLanguage,children:Mt(T,E.interfaceLanguage,!0)},"locale"+v))})]}),d("div",{class:"nav",children:[d(Pe,{title:g("keyboard shortcuts")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:T=>{T.preventDefault(),c(!s)},children:g("modify")})})]}),d("div",{class:"nav",children:[d(Pe,{title:g("enableLineBreak"),description:g("enableLineBreakDescription")}),d("label",{for:"switch",children:d("input",{type:"checkbox",onChange:T=>{let v=T.target.checked;n(C=>{let R=C.generalRule||{};return{...C,generalRule:{...R,lineBreakMaxTextCount:v?280:0}}})},checked:p.rule.lineBreakMaxTextCount>0,id:"switch",name:"switch",role:"switch"})})]}),p.rule.lineBreakMaxTextCount>0&&d("div",{class:"nav",children:[d(Pe,{title:g("lineBreakMaxTextCount")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:T=>{let v=T.target.value;n(C=>{let R=C.generalRule||{};return{...C,generalRule:{...R,lineBreakMaxTextCount:parseInt(v)}}})},name:"count",value:p.rule.lineBreakMaxTextCount,placeholder:"Text Length",required:!0})})]}),(fn().any||me())&&d("div",{class:"nav",children:[d(Pe,{title:g("enableUserscriptPagePopup"),description:g("enableUserscriptPagePopupDescription",{touch:g("fingers."+E.generalRule.fingerCountToToggleTranslagePageWhenTouching)})}),d("label",{for:"switch",children:d("input",{type:"checkbox",onChange:T=>{let v=T.target.checked;n(C=>{let R=C.generalRule||{};return{...C,generalRule:{...R,isShowUserscriptPagePopup:v}}})},checked:p.rule.isShowUserscriptPagePopup,id:"switch",name:"switch",role:"switch"})})]}),d("div",{class:"nav",children:[d(Pe,{title:g("translation display"),description:g("select diplay style")}),d("select",{class:"select",onChange:T=>{S(T.target.value)},children:H0.map((T,v)=>d("option",{value:T,selected:T===E.translationTheme,children:g(`translationTheme.${T}`)},"theme"+v))})]}),d("div",{class:"pt-2 text-sm",children:d("p",{children:[Xg,d("div",{class:"pt-2"}),d("font",{class:qr(E.translationTheme,!1,[],!1).join(" "),children:d("font",{class:Wr(E.translationTheme).join(" "),children:q0})}),E.translationTheme&&T4(E.translationTheme).length>0?d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:g("customTheme")}),d("div",{class:"flex flex-col items-end",children:[T4(E.translationTheme).map((T,v)=>{T.label=g(`customThemeLabel.${T.name}`);let C=E.translationThemePatterns||{},R=E.translationTheme,M=C[R]||{},k=`theme-${R}-${T.name}`,P=Uh(k)||void 0,O=M[T.name]||P;return d(lo,{config:E,field:T,value:O,onChange:j=>{n(B=>{let A=B.translationThemePatterns||{},U={...A[E.translationTheme]||{},[T.name]:j},K={...B,translationThemePatterns:{...A,[E.translationTheme]:U}};return Br(document,E.translationTheme,U),K})}},"theme-prop"+v)}),d("a",{href:"#",class:"text-sm secondary",onClick:T=>{T.preventDefault(),n(v=>{let C=v.translationThemePatterns||{},R={...C[E.translationTheme]};T4(E.translationTheme).forEach(k=>{delete R[k.name]});let M={...v,translationThemePatterns:{...C,[E.translationTheme]:R}};return Br(document,E.translationTheme,{matches:[],excludeMatches:[]},!0),M})},children:g("resetToDefaultColor")})]})]}):null,d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:g("previewAllThemes")}),H0.map((T,v)=>d("div",{class:"pt-2",children:d("label",{children:[d("div",{class:"flex justify-between",children:d("div",{children:[d("input",{type:"radio",name:"theme",value:T,checked:T===E.translationTheme,onChange:C=>{S(C.target.value)}}),g(`translationTheme.${T}`)]})}),d("p",{children:d("font",{class:qr(T,!1,[],!1).join(" "),children:d("font",{class:Wr(T).join(" "),children:q0})})})]})},"theme-index-"+v))]})]})}),d("div",{class:"nav",children:[d(Pe,{title:"",description:g("useAboveStyleForTheseSites",{theme:g(`translationTheme.${E.translationTheme}`)})}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:T=>{T.preventDefault(),i(!u)},children:g("add")})})]}),u?d(Ha,{toggleModal:T=>{T.preventDefault(),i(!u)},onAddInterfaceUrl:(T,v)=>{N(T,E.translationTheme,v)},urlValue:w,index:l}):null,d(za,{urls:E5(E),type:"matches",onDeleteUrl:T=>{_(T,E.translationTheme)},onEditUrl:x}),d(C4,{config:E,visible:s,onClose:()=>c(!1)})]})}function C4({config:e,visible:t,onClose:n}){let{t:a}=ue(),[r,o,u,i,s]=Ye(Qe);if(!t||!e)return null;let c=a("confirm"),l=()=>d("blockquote",{class:"text-sm",children:[a("browserShortcutsSucks")," ",d("kbd",{children:"Ctrl+A"}),"\xA0",d("kbd",{children:"Alt+B"}),"\xA0",d("kbd",{children:"Command+C"}),"\xA0 ",d("kbd",{children:"Ctrl+Shift+D"})," "]});return me()||(Ja()?(l=()=>d("blockquote",{class:"text-sm",children:[a("browserShortcutsNoteForFirefox")," ",d("a",{target:"_blank",href:"https://support.mozilla.org/zh-CN/kb/%E7%AE%A1%E7%90%86Firefox%E7%9A%84%E6%89%A9%E5%B1%95%E5%BF%AB%E6%8D%B7%E6%96%B9%E5%BC%8F",children:[a("help"),"?"]}),d("br",{}),d("br",{}),a("browserShortcutsSucks")," ",d("kbd",{children:"Ctrl+A"}),"\xA0",d("kbd",{children:"Alt+B"}),"\xA0",d("kbd",{children:"Cmd+C"}),"\xA0 ",d("kbd",{children:"Ctrl"}),"\xA0",d("kbd",{children:"D"})," "]}),c=a("confirm")):(l=()=>d("blockquote",{class:"text-sm",children:[a("browserShortcutsNoteForChrome"),"\xA0",d("a",{href:"#",onClick:m=>{m.preventDefault(),X.tabs.create({url:"chrome://extensions/shortcuts"})},children:a("goSettings")})]}),c=a("confirm"))),d(x4,{note:l,corfirmText:c,fingerCountToToggleTranslagePageWhenTouching:e.generalRule.fingerCountToToggleTranslagePageWhenTouching,fingerCountToToggleTranslationMaskWhenTouching:e.generalRule.fingerCountToToggleTranslationMaskWhenTouching,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:e.generalRule.fingerCountToToggleTranslagePageOnlyTranslationWhenTouching,mouseHoverHoldKey:e.generalRule.mouseHoverHoldKey,shortcuts:Qg.map(m=>({name:m,shortcut:e.shortcuts[m],description:a(`browser.${m}`),disabled:!me()})),onChange:m=>{if(m){let{shortcuts:p,fingerCountToToggleTranslagePageWhenTouching:f,fingerCountToToggleTranslationMaskWhenTouching:g,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:y,mouseHoverHoldKey:w}=m;me()?o(b=>{p=p||[];let S=p.reduce((N,_)=>(N[_.name]=_.shortcut,N),{...b.shortcuts}),D={...b,shortcuts:S};return f!==void 0&&(D.generalRule={...D.generalRule,fingerCountToToggleTranslagePageWhenTouching:f}),g!==void 0&&(D.generalRule={...D.generalRule,fingerCountToToggleTranslationMaskWhenTouching:g}),y!==void 0&&(D.generalRule={...D.generalRule,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:y}),w&&(D.generalRule={...D.generalRule,mouseHoverHoldKey:w}),D}):(f!==void 0||g!==void 0||w||y!==void 0)&&o(b=>{let S={...b};return f!==void 0&&(S.generalRule={...S.generalRule,fingerCountToToggleTranslagePageWhenTouching:f}),g!==void 0&&(S.generalRule={...S.generalRule,fingerCountToToggleTranslationMaskWhenTouching:g}),y!==void 0&&(S.generalRule={...S.generalRule,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:y}),w&&(S.generalRule={...S.generalRule,mouseHoverHoldKey:w}),S}),m&&m.isClose&&n()}else n(),X.tabs.create({url:"chrome://extensions/shortcuts"})},onClose:n})}h();function v4(){let[e,t,n,a]=ht();En(e,t);let[r,o]=$(null),{t:u}=ue(),[i,s]=$({}),[c,l]=$({});he(()=>{Ge().then(x=>{o(x)}),X.storage.sync.get(null).then(x=>{s(x),X.storage.local.get(null).then(E=>{l(E)})})},[e]);let m=x=>{t(E=>({...E,debug:x}))},p=x=>{t(E=>({...E,beta:x}))},f=x=>{t(()=>({...x}))},g=x=>{try{let E=x.target.value,T={...e};if(!E)delete T.rules;else{let v=JSON.parse(E);if(!Array.isArray(v)){Bt("Invalid rules, rules must be an array");return}T.rules=v}f(T),ut(u("saved"))}catch(E){Bt(`Invalid JSON ${E.message}`)}},y=x=>{let E={...e};E.generalRule||(E.generalRule={}),E.generalRule={...E.generalRule,injectedCss:x.target.value||""},f(E),ut(u("saved"))},w=x=>{try{let E=JSON.parse(x.target.value);f(E),ut(u("saved"))}catch(E){Bt(`Invalid JSON ${E.message}`)}},b=x=>{x.preventDefault()},S=x=>{x.preventDefault(),confirm(u("confirmResetConfig"))&&(f(tr()),ka().catch(E=>{z.error("clean local config error",E)}),Aa().catch(E=>{z.error("clean buildin config error",E)}),Ua().catch(E=>{z.error("clean cache error",E)}),ut(u("resetSuccess")))},D=x=>{if(x.preventDefault(),confirm(u("confirmResetConfig"))){let E={...e};delete E.rules,f(E),ut(u("resetThisSuccess"))}},N=x=>{if(x.preventDefault(),confirm(u("confirmResetConfig"))){let E={...e};E.generalRule||(E.generalRule={}),E.generalRule={...E.generalRule},delete E.generalRule.injectedCss,f(E),ut(u("resetThisSuccess"))}},_=`[{ "matches": "www.google.com", "selectors": [".title"] }, { "matches": "*.twitter.com", "selectors": [".text"], "excludeSelectors": ["footer"] -}]`;return!r||!e?d("div",{children:"loading"}):d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("developer")})}),d("div",{dangerouslySetInnerHTML:{__html:u("developerDescription",{1:"https://immersivetranslate.com/docs/advanced/"})},class:"secondary text-xs text-gray-500 mb-4"}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"cache",name:"cache",role:"switch",onChange:()=>{f(!r.debug)},checked:r.debug}),u("toggleDebug")]})}),d("fieldset",{class:"mt-2",children:[d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"beta",name:"beta",role:"switch",onChange:()=>{p(!r.beta)},checked:!!r.beta}),u("toggleBeta")]}),d("small",{class:"text-gray-500",dangerouslySetInnerHTML:{__html:u("betaDescription",{1:ti})}})]}),d("details",{class:"py-2",children:[d("summary",{children:"Edit User Rules"}),d("textarea",{class:"user-rule",rows:10,onChange:g,placeholder:_,spellcheck:!1,value:e.rules?JSON.stringify(e.rules||[],null,2):""}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:b,role:"button",children:u("save")}),d("a",{target:"_blank",class:"secondary text-sm mr-3",href:"https://immersivetranslate.com/docs/advanced/",children:[u("help"),"?"]}),d("a",{href:"#",onClick:D,class:"text-sm secondary mr-2",children:u("reset")})]})]}),d("details",{class:"py-2",children:[d("summary",{children:"Edit Injected CSS"}),d("textarea",{rows:10,onChange:T,spellcheck:!1,placeholder:".title { color: red }",value:e.generalRule&&e.generalRule.injectedCss?e.generalRule.injectedCss:""}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:b,role:"button",children:u("save")}),d("a",{class:"secondary text-sm mr-3",target:"_blank",href:"https://immersivetranslate.com/docs/advanced/",children:[u("help"),"?"]}),d("a",{href:"#",onClick:N,class:"text-sm secondary mr-2",children:u("reset")})]})]}),d("details",{class:"py-2",children:[d("summary",{children:"Edit Full User Config"}),d("textarea",{rows:10,onChange:w,spellcheck:!1,value:JSON.stringify(e,null,2)}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:b,role:"button",children:u("save")}),d("a",{class:"secondary text-sm mr-3",target:"_blank",href:"https://immersivetranslate.com/docs/advanced/",children:[u("help"),"?"]}),d("a",{href:"#",onClick:S,class:"text-sm secondary mr-2",children:u("reset")})]})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the final config"}),d("pre",{children:d("code",{children:JSON.stringify(r,null,2)})})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the sync storage object"}),d("pre",{children:d("code",{children:JSON.stringify(i,null,2)})})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the local storage object"}),d("pre",{children:d("code",{children:JSON.stringify(c,null,2)})})]})]})}h();h();var E5="buildinConfig",C5={},Uh=_m(E5,C5);var v5=({date:e})=>{let{t}=ue();return d("p",{class:"text-sm",children:[t("The local rules are up to date")," ",new Date(e).toLocaleString()]})},w5=({date:e})=>{let{t}=ue();return d("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},A5=()=>{let{t:e}=ue();return d("p",{class:"text-sm","aria-busy":!0,children:[e("Checking for updates"),"..."]})},k5=()=>{let{t:e}=ue();return d("p",{class:"text-sm",children:[e("Rules are being synchronized"),"..."]})},S5=({minVersion:e})=>{let{t}=ue();return d("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},D5=({latestVersion:e})=>{let{t}=ue();return d("p",{class:"text-sm",children:[t("foundNewVersion"),":"," ",d("a",{href:"https://github.com/immersive-translate/immersive-translate/releases",children:e})]})},L5=()=>{let{t:e}=ue();return d("p",{class:"text-sm",children:e("theLocalExtensionIsUpToUpdate")})},M5=({message:e,handleSyncing:t,date:n})=>{let{t:a}=ue();return d("p",{class:"text-sm",children:[a("failToSyncRules")," ",d("a",{onClick:t,children:a("retry")}),d("br",{}),a("failedReason"),"\uFF1A",e,d("br",{}),a("currentRuleVersion"),"\uFF1A",n]})};function v4(){let[e,t]=$(null),{t:n}=ue(),[a,r]=$(n("calculating")+"..."),[o,u]=$(null),[i,s]=Uh(),[c,l]=$(null),[f,p]=$(""),[m,g]=$(!1),[T,w]=$(!1),[b,S]=$(null),[D,N]=$(null),[_,y,E,x]=ft();En(_,y);let[v,C]=$(!1),R=hi(),M=!0;ot()&&b&&(M=b.generalRule.showSponsorOnSafari);let k=async()=>{p("");let L=o;if(o===null)try{let U=await Pn({url:Ea});U?(u(U),L=U,g(!0)):(p(n("unknownError")),l(null))}catch(U){l(null),p(U.message);return}L!==null?(s(L),l(!1),t(L.buildinConfigUpdatedAt)):(p(n("canNotFetchRemoteRule")),l(null))};he(()=>{Ge().then(L=>{let U=L.buildinConfigUpdatedAt;S(L);let K=new Date(U);t(U),Pn({url:Ea}).then(H=>{let V=H.minVersion,q=R;u(H);let oe=H.latestVersion;if(oe&&(Oa(q,oe)?N(!0):N(!1)),Oa(q,V)){let Z=H.buildinConfigUpdatedAt;new Date(Z)>K?(l(!0),k()):l(!1)}else w(!0),l(null)}).catch(H=>{l(null),p(H.message)})}),Fh().then(L=>{r(L)})},[]),he(()=>{Ge().then(L=>{S(L)})},[_,e]);let P=L=>{y(U=>{let K=!U.alpha;return K?ut(n("enableAlphaSuccess")):ut(n("disableAlphaSuccess")),{...U,alpha:K}})},O=L=>{L.preventDefault(),L.stopPropagation(),C(!0),Ir().catch(U=>{z.error("clear build config failed:",U)}),Aa().catch(U=>{z.error("clear local config failed:",U)}),lo().then(()=>{C(!1),ut("\u6E05\u7406\u6210\u529F"),r("0 B")}).catch(U=>{C(!1),Bt(U.message)})},j=L=>{y(U=>({...U,cache:L}))},B=L=>{y(U=>({...U,enabled:L}))},A="aboutIntro";return M||(A="aboutIntroWithoutSponsor"),b?d("div",{class:"text-sm",children:[d("div",{class:"nav",children:d("strong",{onClick:nu(7)(P),class:"text-lg immersive-translate-no-select",children:n("about")})}),d("p",{onClick:nu(7)(P),class:"mb-2 immersive-translate-no-select",children:["V",R,wg()?"(Beta)":""]}),D===!1&&d(D5,{latestVersion:o?.latestVersion}),D===!0&&d(L5,{}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onChange:()=>{B(!b.enabled)},checked:b.enabled}),n("enabledExtension")]})}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"cache",name:"cache",role:"switch",onChange:()=>{j(!b.cache)},checked:b.cache}),n("allowCacheTranslations")]})}),!me()&&a&&d("p",{class:"text-sm",children:[n("cacheSize"),"\xA0",a," \xA0 ",v?d("span",{children:[n("cleaning"),"..."]}):d("a",{class:"text-sm",href:"#",onClick:O,children:n("cleanCache")})]}),f?d(M5,{handleSyncing:k,message:f,date:e||""}):T?d(S5,{minVersion:o.minVersion}):c===null?d(A5,{}):c===!0?d(k5,{}):m?d(w5,{date:e}):d(v5,{date:e}),d("blockquote",{class:"text-sm",dangerouslySetInnerHTML:{__html:n(A,{1:"https://immersivetranslate.com/docs/thanks/",2:"https://immersivetranslate.com/docs/donate/",3:"twitter.com/immersivetran",4:"https://t.me/immersivetranslate",5:"https://immersivetranslate.substack.com",6:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=about_page",7:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=about_page",8:"mailto:support@immersivetranslate.com"})}}),d("div",{class:"flex items-center justify-center",children:[d("div",{class:"flex flex-col items-center",children:[d("img",{width:"120",src:"https://immersivetranslate.com/assets/wechat-qrcode.jpg",alt:"wechat contact"}),d("div",{class:"text-sm",children:n("wechatPublicAccount")})]}),d("div",{class:"w-16"}),d("div",{class:"flex flex-col items-center",children:[d("img",{width:"125",src:"https://immersivetranslate.com/assets/wechat-contact.png",alt:"qq channel contact"}),d("div",{class:"text-sm text-center",children:n("wechatCommunities")})]})]}),d("ul",{class:"text-sm ml-4",children:[d("li",{children:d("a",{class:"secondary",href:"https://github.com/immersive-translate/immersive-translate/issues",children:n("feedback")})}),d("li",{children:d("a",{class:"secondary",href:ti,children:n("joinTelegramGroup")})}),d("li",{children:d("a",{class:"secondary",href:"https://immersivetranslate.com/docs/CHANGELOG/",children:n("changelog")})}),d("li",{children:d("a",{class:"secondary",href:"https://immersivetranslate.com/",children:n("projectHomepage")})}),d("li",{children:d("a",{class:"secondary",href:"https://github.com/immersive-translate/immersive-translate/",children:n("Github")})}),M&&!1]}),d("div",{class:"flex justify-center",children:d("iframe",{src:"https://immersivetranslate.substack.com/embed",width:"480",height:"320",style:"border:1px solid #EEE; background:white;",frameBorder:0,scrolling:"no"})})]}):null}h();function w4(){let e=Ei(),[t,n,a,r]=ft(),[o,u]=$(null);En(t,n);let{t:i}=ue();he(()=>{Ge().then(f=>{Lt({config:f,url:globalThis.location.href}).then(p=>{u(p)})})},[t]);let s=f=>{n(p=>({...p,translationTheme:f}))},c=f=>{n(p=>({...p,interfaceLanguage:f}))};if(!o)return d("div",{children:"loading"});let l=o.config;return d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:i("advanced")})}),d("div",{class:"nav",children:[d(Pe,{title:i("translate all areas of the page"),description:i("translationAreaDescription")}),d("label",{for:"translationAreaDescription",children:d("input",{type:"checkbox",id:"translationAreaDescription",name:"switch",role:"switch",onChange:f=>{let p=f.target.checked;n(m=>({...m,translationArea:p?"body":"main"}))},checked:l.translationArea==="body"})})]}),d("div",{class:"nav",children:[d(Pe,{title:i("translate to the bottom of the page"),description:i("translateToThePageEndImmediatelyDescription")}),d("label",{for:"translateToThePageEndImmediatelyDescription",children:d("input",{type:"checkbox",onChange:f=>{let p=f.target.checked;n(m=>({...m,translationStartMode:p?"immediate":"dynamic"}))},checked:l.translationStartMode==="immediate",id:"translateToThePageEndImmediatelyDescription",name:"switch",role:"switch"})})]}),!me()&&d("div",{class:"nav",children:[d(Pe,{title:i("isShowContextMenu")}),d("label",{for:"isShowContextMenu",children:d("input",{type:"checkbox",onChange:f=>{let p=f.target.checked;Ps({...o.config,isShowContextMenu:p}),n(m=>({...m,isShowContextMenu:p}))},checked:o.config.isShowContextMenu===!0,id:"isShowContextMenu",name:"switch",role:"switch"})})]}),d("div",{class:"nav",children:[d(Pe,{title:i("isTranslateTitle"),description:i("isTranslateTitleDescription")}),d("label",{for:"isTranslateTitle",children:d("input",{type:"checkbox",id:"isTranslateTitle",name:"isTranslateTitle",role:"switch",onChange:f=>{let p=f.target.checked;n(m=>({...m,generalRule:{...m.generalRule,isTranslateTitle:p}}))},checked:l.generalRule.isTranslateTitle})})]}),d("div",{class:"nav",children:[d(Pe,{title:i("enableSubtitle"),description:i("enableSubtitleDescription")}),d("label",{for:"enableSubtitle",children:d("input",{type:"checkbox",id:"enableSubtitle",name:"enableSubtitle",role:"switch",onChange:f=>{let p=f.target.checked;n(m=>({...m,generalRule:{...m.generalRule,enableSubtitle:p}}))},checked:l.generalRule.enableSubtitle})})]}),d("div",{class:"nav",children:[d(Pe,{title:i("enableSearchEnhancement"),description:i("enableSearchEnhancementDescription")}),d("label",{for:"enableSearchEnhancement",children:d("input",{type:"checkbox",id:"enableSearchEnhancement",name:"enableSearchEnhancement",role:"switch",onChange:f=>{let p=f.target.checked;n(m=>({...m,generalRule:{...m.generalRule,enableSearchEnhancement:p}}))},checked:l.generalRule.enableSearchEnhancement})})]}),d("div",{class:"nav",children:[d(Pe,{title:i("loadingThemeTitle"),description:i("loadingThemeDescription")}),d("select",{class:"select",onChange:f=>{n(p=>({...p,loadingTheme:f.target.value}))},children:[d("option",{value:"spinner",selected:l.loadingTheme==="spinner",children:i("loadingTheme.spinner")}),d("option",{value:"text",selected:l.loadingTheme==="text",children:i("loadingTheme.text")}),d("option",{value:"none",selected:l.loadingTheme==="none",children:i("loadingTheme.none")})]})]}),d("div",{class:"nav",children:[d(Pe,{title:i("translationLineBreakSettingTitle"),description:i("translationLineBreakSettingDescription",{count:e.generalRule.blockMinTextCount})}),d("select",{class:"select",onChange:f=>{n(p=>{let m=p.generalRule||{};return parseInt(f.target.value)===0?m={...m,blockMinTextCount:0,blockMinWordCount:0}:m={...m,blockMinTextCount:e.generalRule.blockMinTextCount,blockMinWordCount:e.generalRule.blockMinWordCount},{...p,generalRule:m}})},children:[d("option",{value:32,selected:l.generalRule.blockMinTextCount>0,children:i("smartLineBreak")}),d("option",{value:0,selected:l.generalRule.blockMinTextCount===0,children:i("alwaysLineBreak")})]})]}),d("div",{class:"nav",children:[d(Pe,{title:i("tempTranslateDomainTitle"),description:i("tempTranslateDomainDescription")}),d("select",{class:"select",onChange:f=>{n(p=>({...p,tempTranslateDomainMinutes:parseInt(f.target.value)}))},children:[d("option",{value:0,selected:l.tempTranslateDomainMinutes===0,children:i("disabled")}),d("option",{value:5,selected:l.tempTranslateDomainMinutes===5,children:i("xMinutes",{count:5})}),d("option",{value:10,selected:l.tempTranslateDomainMinutes===10,children:i("xMinutes",{count:10})}),d("option",{value:15,selected:l.tempTranslateDomainMinutes===15,children:i("xMinutes",{count:15})}),d("option",{value:30,selected:l.tempTranslateDomainMinutes===30,children:i("xMinutes",{count:30})}),d("option",{value:60,selected:l.tempTranslateDomainMinutes===60,children:i("xMinutes",{count:60})})]})]}),d("div",{class:"nav",children:[d(Pe,{title:i("the number of characters to be translated first")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:f=>{let p=f.target.value;n(m=>({...m,immediateTranslationTextCount:parseInt(p)}))},name:"count",value:l.immediateTranslationTextCount,placeholder:"Text Length",required:!0})})]})]})}h();var jh=yo({presets:[Pu(),_u()]});h();function A4(){let e=ft(),[t,n,a,r,o]=e,{t:u}=ue(),i=Ds(t),s=Ls(i);return d(Qe.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("mouseHoverOptions")})}),d(hu,{config:i,ctx:s,serviceType:"mouseHoverTranslationService"}),d(P5,{config:i})]})}function P5({config:e}){let[t,n,a,r,o]=Ye(Qe),[u,i]=$(!1),{t:s}=ue();return ia()?d("div",{class:"flex justify-between items-center nav",children:[d(Pe,{title:s("modifyMouseHoverKey"),description:s("mouseHoverHoldKey")}),d(F5,{config:e,setSettings:n,className:"select",clickOther:()=>i(!0)}),d(E4,{config:e,visible:u,onClose:()=>i(!1)})]}):null}function F5({config:e,setSettings:t,className:n,clickOther:a}){let{t:r}=ue();return e?d(On,{className:n,items:Ca.filter(o=>!(Ca.includes(e.generalRule.mouseHoverHoldKey)&&o==="OtherCustom")).map(o=>{let u=r("mouseHoldKey",{key:o}),i=Ca.includes(e.generalRule.mouseHoverHoldKey),s=o===e.generalRule.mouseHoverHoldKey;return o==="Auto"?u=r("mouseHoldKeyAuto"):o==="Off"?u=r("mouseHoldKeyOff"):o==="OtherCustom"?u=i?r("mouseHoldKeyOther"):r("mouseHoldKeyCustomKey",{key:e.generalRule.mouseHoverHoldKey}):o==="Other"&&(u=r("mouseHoldKeyOther")),i||o==="OtherCustom"&&(s=!0),{label:u,value:o,selected:s,onSelected:c=>{c.value==="Other"?a():t(l=>({...l,generalRule:{...l.generalRule,mouseHoverHoldKey:c.value}}))}}})}):null}function zh(){let e=document.getElementById("mount");e&&(async()=>{s0(jh);let t=await Ge();t.debug&&z.setLevel("debug"),globalThis.location.hash||(globalThis.location.hash="#general");let n=await Lt({url:"http://localhost",config:t});et("options_page_view",[{name:"options_page_view"}],{...n,sourceLanguage:globalThis.location.hash}),wa(document,n),Ha(d(si,{lang:t.interfaceLanguage,fallbackLang:"zh-CN",translations:Gr,children:d(_5,{donateUrl:t.donateUrl,config:t})}),e)})()}function _5(e){let t=Q0(),{t:n}=ue(),a=hi(),{config:r}=e,o=[{name:n("general"),props:{href:"#general",className:"secondary"}},{name:n("interface"),props:{href:"#interface",className:"secondary"}},{name:n("mouseHoverOptions"),props:{href:"#mouse_hover",className:"secondary"}},{name:n("inputOptions"),props:{href:"#input",className:"secondary"}},{name:n("advanced"),props:{href:"#advanced",className:"secondary"}},{name:n("import_export"),props:{href:"#import_export",className:"secondary"}},{name:n("about"),props:{href:"#about",className:"secondary"}}];o.forEach(i=>{t===i.props.href&&(i.props.className="primary",i.props["aria-current"]="page")});let u=!0;return ot()&&(u=r.generalRule.showSponsorOnSafari),d(Fe,{children:d("main",{class:"container-fluid",children:[d("aside",{children:d("nav",{class:"flex flex-col h-full justify-between",children:[d("div",{children:[d("hgroup",{class:"mb-2",children:[d("h4",{class:"cursor-pointer p-0 m-0",onClick:()=>{globalThis.location.hash="#general"},children:n("browser.shortBrandName")}),d("h6",{class:"!text-sm",children:a})]}),d("ul",{class:"flex flex-wrap justify-between md:block text-sm md:text-base",children:o.map((i,s)=>d("li",{class:"li",children:d("a",{...i.props,children:i.name})},`nav-${s}`))})]}),d("div",{class:"m-0 p-0 flex flex-col",children:[u&&d("a",{class:"py-3 text-xs no-focus secondary",href:e.donateUrl,children:n("donateCafe")}),d("a",{class:"py-3 text-xs no-focus secondary",href:"https://immersivetranslate.com/docs/communities/",children:n("feedbackAndJoin")}),d("a",{class:"py-3 text-xs no-focus secondary",href:"https://immersivetranslate.com/docs/",children:n("document")}),d("a",{class:"py-3 text-xs no-focus secondary",href:"#developer",children:n("developer")})]})]})}),d("div",{role:"main",children:d(J0,{value:t,defaultCase:d(Ms,{}),cases:{"#general":d(Ms,{}),"#mouse_hover":d(A4,{}),"#input":d(b4,{}),"#interface":d(T4,{}),"#import_export":d(nc,{}),"#about":d(v4,{}),"#advanced":d(w4,{}),"#developer":d(C4,{})}})})]})})}zh();})(); +}]`;return!r||!e?d("div",{children:"loading"}):d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("developer")})}),d("div",{dangerouslySetInnerHTML:{__html:u("developerDescription",{1:"https://immersivetranslate.com/docs/advanced/"})},class:"secondary text-xs text-gray-500 mb-4"}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"cache",name:"cache",role:"switch",onChange:()=>{m(!r.debug)},checked:r.debug}),u("toggleDebug")]})}),d("fieldset",{class:"mt-2",children:[d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"beta",name:"beta",role:"switch",onChange:()=>{p(!r.beta)},checked:!!r.beta}),u("toggleBeta")]}),d("small",{class:"text-gray-500",dangerouslySetInnerHTML:{__html:u("betaDescription",{1:ei})}})]}),d("details",{class:"py-2",children:[d("summary",{children:"Edit User Rules"}),d("textarea",{class:"user-rule",rows:10,onChange:g,placeholder:_,spellcheck:!1,value:e.rules?JSON.stringify(e.rules||[],null,2):""}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:b,role:"button",children:u("save")}),d("a",{target:"_blank",class:"secondary text-sm mr-3",href:"https://immersivetranslate.com/docs/advanced/",children:[u("help"),"?"]}),d("a",{href:"#",onClick:D,class:"text-sm secondary mr-2",children:u("reset")})]})]}),d("details",{class:"py-2",children:[d("summary",{children:"Edit Injected CSS"}),d("textarea",{rows:10,onChange:y,spellcheck:!1,placeholder:".title { color: red }",value:e.generalRule&&e.generalRule.injectedCss?e.generalRule.injectedCss:""}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:b,role:"button",children:u("save")}),d("a",{class:"secondary text-sm mr-3",target:"_blank",href:"https://immersivetranslate.com/docs/advanced/",children:[u("help"),"?"]}),d("a",{href:"#",onClick:N,class:"text-sm secondary mr-2",children:u("reset")})]})]}),d("details",{class:"py-2",children:[d("summary",{children:"Edit Full User Config"}),d("textarea",{rows:10,onChange:w,spellcheck:!1,value:JSON.stringify(e,null,2)}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:b,role:"button",children:u("save")}),d("a",{class:"secondary text-sm mr-3",target:"_blank",href:"https://immersivetranslate.com/docs/advanced/",children:[u("help"),"?"]}),d("a",{href:"#",onClick:S,class:"text-sm secondary mr-2",children:u("reset")})]})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the final config"}),d("pre",{children:d("code",{children:JSON.stringify(r,null,2)})})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the sync storage object"}),d("pre",{children:d("code",{children:JSON.stringify(i,null,2)})})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the local storage object"}),d("pre",{children:d("code",{children:JSON.stringify(c,null,2)})})]})]})}h();h();var C5="buildinConfig",v5={},jh=Bm(C5,v5);var w5=({date:e})=>{let{t}=ue();return d("p",{class:"text-sm",children:[t("The local rules are up to date")," ",new Date(e).toLocaleString()]})},A5=({date:e})=>{let{t}=ue();return d("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},k5=()=>{let{t:e}=ue();return d("p",{class:"text-sm","aria-busy":!0,children:[e("Checking for updates"),"..."]})},S5=()=>{let{t:e}=ue();return d("p",{class:"text-sm",children:[e("Rules are being synchronized"),"..."]})},D5=({minVersion:e})=>{let{t}=ue();return d("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},L5=({latestVersion:e})=>{let{t}=ue();return d("p",{class:"text-sm",children:[t("foundNewVersion"),":"," ",d("a",{href:"https://github.com/immersive-translate/immersive-translate/releases",children:e})]})},M5=()=>{let{t:e}=ue();return d("p",{class:"text-sm",children:e("theLocalExtensionIsUpToUpdate")})},P5=({message:e,handleSyncing:t,date:n})=>{let{t:a}=ue();return d("p",{class:"text-sm",children:[a("failToSyncRules")," ",d("a",{onClick:t,children:a("retry")}),d("br",{}),a("failedReason"),"\uFF1A",e,d("br",{}),a("currentRuleVersion"),"\uFF1A",n]})};function w4(){let[e,t]=$(null),{t:n}=ue(),[a,r]=$(n("calculating")+"..."),[o,u]=$(null),[i,s]=jh(),[c,l]=$(null),[m,p]=$(""),[f,g]=$(!1),[y,w]=$(!1),[b,S]=$(null),[D,N]=$(null),[_,x,E,T]=ht();En(_,x);let[v,C]=$(!1),R=fi(),M=!0;ot()&&b&&(M=b.generalRule.showSponsorOnSafari);let k=async()=>{p("");let L=o;if(o===null)try{let U=await Pn({url:Ea});U?(u(U),L=U,g(!0)):(p(n("unknownError")),l(null))}catch(U){l(null),p(U.message);return}L!==null?(s(L),l(!1),t(L.buildinConfigUpdatedAt)):(p(n("canNotFetchRemoteRule")),l(null))};he(()=>{Ge().then(L=>{let U=L.buildinConfigUpdatedAt;S(L);let K=new Date(U);t(U),Pn({url:Ea}).then(H=>{let V=H.minVersion,q=R;u(H);let oe=H.latestVersion;if(oe&&(Na(q,oe)?N(!0):N(!1)),Na(q,V)){let Q=H.buildinConfigUpdatedAt;new Date(Q)>K?(l(!0),k()):l(!1)}else w(!0),l(null)}).catch(H=>{l(null),p(H.message)})}),S3().then(L=>{r(L)})},[]),he(()=>{Ge().then(L=>{S(L)})},[_,e]);let P=L=>{x(U=>{let K=!U.alpha;return K?ut(n("enableAlphaSuccess")):ut(n("disableAlphaSuccess")),{...U,alpha:K}})},O=L=>{L.preventDefault(),L.stopPropagation(),C(!0),Aa().catch(U=>{z.error("clear build config failed:",U)}),ka().catch(U=>{z.error("clear local config failed:",U)}),Ua().then(()=>{C(!1),ut("\u6E05\u7406\u6210\u529F"),r("0 B")}).catch(U=>{C(!1),Bt(U.message)})},j=L=>{x(U=>({...U,cache:L}))},B=L=>{x(U=>({...U,enabled:L}))},A="aboutIntro";return M||(A="aboutIntroWithoutSponsor"),b?d("div",{class:"text-sm",children:[d("div",{class:"nav",children:d("strong",{onClick:nu(7)(P),class:"text-lg immersive-translate-no-select",children:n("about")})}),d("p",{onClick:nu(7)(P),class:"mb-2 immersive-translate-no-select",children:["V",R,Ag()?"(Beta)":""]}),D===!1&&d(L5,{latestVersion:o?.latestVersion}),D===!0&&d(M5,{}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onChange:()=>{B(!b.enabled)},checked:b.enabled}),n("enabledExtension")]})}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"cache",name:"cache",role:"switch",onChange:()=>{j(!b.cache)},checked:b.cache}),n("allowCacheTranslations")]})}),!me()&&a&&d("p",{class:"text-sm",children:[n("cacheSize"),"\xA0",a," \xA0 ",v?d("span",{children:[n("cleaning"),"..."]}):d("a",{class:"text-sm",href:"#",onClick:O,children:n("cleanCache")})]}),m?d(P5,{handleSyncing:k,message:m,date:e||""}):y?d(D5,{minVersion:o.minVersion}):c===null?d(k5,{}):c===!0?d(S5,{}):f?d(A5,{date:e}):d(w5,{date:e}),d("blockquote",{class:"text-sm",dangerouslySetInnerHTML:{__html:n(A,{1:"https://immersivetranslate.com/docs/thanks/",2:"https://immersivetranslate.com/docs/donate/",3:"twitter.com/immersivetran",4:"https://t.me/immersivetranslate",5:"https://immersivetranslate.substack.com",6:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=about_page",7:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=about_page",8:"mailto:support@immersivetranslate.com"})}}),d("div",{class:"flex items-center justify-center",children:[d("div",{class:"flex flex-col items-center",children:[d("img",{width:"120",src:"https://immersivetranslate.com/assets/wechat-qrcode.jpg",alt:"wechat contact"}),d("div",{class:"text-sm",children:n("wechatPublicAccount")})]}),d("div",{class:"w-16"}),d("div",{class:"flex flex-col items-center",children:[d("img",{width:"125",src:"https://immersivetranslate.com/assets/wechat-contact.png",alt:"qq channel contact"}),d("div",{class:"text-sm text-center",children:n("wechatCommunities")})]})]}),d("ul",{class:"text-sm ml-4",children:[d("li",{children:d("a",{class:"secondary",href:"https://github.com/immersive-translate/immersive-translate/issues",children:n("feedback")})}),d("li",{children:d("a",{class:"secondary",href:ei,children:n("joinTelegramGroup")})}),d("li",{children:d("a",{class:"secondary",href:"https://immersivetranslate.com/docs/CHANGELOG/",children:n("changelog")})}),d("li",{children:d("a",{class:"secondary",href:"https://immersivetranslate.com/",children:n("projectHomepage")})}),d("li",{children:d("a",{class:"secondary",href:"https://github.com/immersive-translate/immersive-translate/",children:n("Github")})}),M&&!1]}),d("div",{class:"flex justify-center",children:d("iframe",{src:"https://immersivetranslate.substack.com/embed",width:"480",height:"320",style:"border:1px solid #EEE; background:white;",frameBorder:0,scrolling:"no"})})]}):null}h();function A4(){let e=Ti(),[t,n,a,r]=ht(),[o,u]=$(null);En(t,n);let{t:i}=ue();he(()=>{Ge().then(m=>{Lt({config:m,url:globalThis.location.href}).then(p=>{u(p)})})},[t]);let s=m=>{n(p=>({...p,translationTheme:m}))},c=m=>{n(p=>({...p,interfaceLanguage:m}))};if(!o)return d("div",{children:"loading"});let l=o.config;return d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:i("advanced")})}),d("div",{class:"nav",children:[d(Pe,{title:i("translate all areas of the page"),description:i("translationAreaDescription")}),d("label",{for:"translationAreaDescription",children:d("input",{type:"checkbox",id:"translationAreaDescription",name:"switch",role:"switch",onChange:m=>{let p=m.target.checked;n(f=>({...f,translationArea:p?"body":"main"}))},checked:l.translationArea==="body"})})]}),d("div",{class:"nav",children:[d(Pe,{title:i("translate to the bottom of the page"),description:i("translateToThePageEndImmediatelyDescription")}),d("label",{for:"translateToThePageEndImmediatelyDescription",children:d("input",{type:"checkbox",onChange:m=>{let p=m.target.checked;n(f=>({...f,translationStartMode:p?"immediate":"dynamic"}))},checked:l.translationStartMode==="immediate",id:"translateToThePageEndImmediatelyDescription",name:"switch",role:"switch"})})]}),!me()&&d("div",{class:"nav",children:[d(Pe,{title:i("isShowContextMenu")}),d("label",{for:"isShowContextMenu",children:d("input",{type:"checkbox",onChange:m=>{let p=m.target.checked;Ps({...o.config,isShowContextMenu:p}),n(f=>({...f,isShowContextMenu:p}))},checked:o.config.isShowContextMenu===!0,id:"isShowContextMenu",name:"switch",role:"switch"})})]}),d("div",{class:"nav",children:[d(Pe,{title:i("isTranslateTitle"),description:i("isTranslateTitleDescription")}),d("label",{for:"isTranslateTitle",children:d("input",{type:"checkbox",id:"isTranslateTitle",name:"isTranslateTitle",role:"switch",onChange:m=>{let p=m.target.checked;n(f=>({...f,generalRule:{...f.generalRule,isTranslateTitle:p}}))},checked:l.generalRule.isTranslateTitle})})]}),d("div",{class:"nav",children:[d(Pe,{title:i("enableSubtitle"),description:i("enableSubtitleDescription")}),d("label",{for:"enableSubtitle",children:d("input",{type:"checkbox",id:"enableSubtitle",name:"enableSubtitle",role:"switch",onChange:m=>{let p=m.target.checked;n(f=>({...f,generalRule:{...f.generalRule,enableSubtitle:p}}))},checked:l.generalRule.enableSubtitle})})]}),d("div",{class:"nav",children:[d(Pe,{title:i("enableSearchEnhancement"),description:i("enableSearchEnhancementDescription")}),d("label",{for:"enableSearchEnhancement",children:d("input",{type:"checkbox",id:"enableSearchEnhancement",name:"enableSearchEnhancement",role:"switch",onChange:m=>{let p=m.target.checked;n(f=>({...f,generalRule:{...f.generalRule,enableSearchEnhancement:p}}))},checked:l.generalRule.enableSearchEnhancement})})]}),d("div",{class:"nav",children:[d(Pe,{title:i("loadingThemeTitle"),description:i("loadingThemeDescription")}),d("select",{class:"select",onChange:m=>{n(p=>({...p,loadingTheme:m.target.value}))},children:[d("option",{value:"spinner",selected:l.loadingTheme==="spinner",children:i("loadingTheme.spinner")}),d("option",{value:"text",selected:l.loadingTheme==="text",children:i("loadingTheme.text")}),d("option",{value:"none",selected:l.loadingTheme==="none",children:i("loadingTheme.none")})]})]}),d("div",{class:"nav",children:[d(Pe,{title:i("translationLineBreakSettingTitle"),description:i("translationLineBreakSettingDescription",{count:e.generalRule.blockMinTextCount})}),d("select",{class:"select",onChange:m=>{n(p=>{let f=p.generalRule||{};return parseInt(m.target.value)===0?f={...f,blockMinTextCount:0,blockMinWordCount:0}:f={...f,blockMinTextCount:e.generalRule.blockMinTextCount,blockMinWordCount:e.generalRule.blockMinWordCount},{...p,generalRule:f}})},children:[d("option",{value:32,selected:l.generalRule.blockMinTextCount>0,children:i("smartLineBreak")}),d("option",{value:0,selected:l.generalRule.blockMinTextCount===0,children:i("alwaysLineBreak")})]})]}),d("div",{class:"nav",children:[d(Pe,{title:i("tempTranslateDomainTitle"),description:i("tempTranslateDomainDescription")}),d("select",{class:"select",onChange:m=>{n(p=>({...p,tempTranslateDomainMinutes:parseInt(m.target.value)}))},children:[d("option",{value:0,selected:l.tempTranslateDomainMinutes===0,children:i("disabled")}),d("option",{value:5,selected:l.tempTranslateDomainMinutes===5,children:i("xMinutes",{count:5})}),d("option",{value:10,selected:l.tempTranslateDomainMinutes===10,children:i("xMinutes",{count:10})}),d("option",{value:15,selected:l.tempTranslateDomainMinutes===15,children:i("xMinutes",{count:15})}),d("option",{value:30,selected:l.tempTranslateDomainMinutes===30,children:i("xMinutes",{count:30})}),d("option",{value:60,selected:l.tempTranslateDomainMinutes===60,children:i("xMinutes",{count:60})})]})]}),d("div",{class:"nav",children:[d(Pe,{title:i("the number of characters to be translated first")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:m=>{let p=m.target.value;n(f=>({...f,immediateTranslationTextCount:parseInt(p)}))},name:"count",value:l.immediateTranslationTextCount,placeholder:"Text Length",required:!0})})]})]})}h();var zh=yo({presets:[Mu(),Fu()]});h();function k4(){let e=ht(),[t,n,a,r,o]=e,{t:u}=ue(),i=Ds(t),s=Ls(i);return d(Qe.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("mouseHoverOptions")})}),d(fu,{config:i,ctx:s,serviceType:"mouseHoverTranslationService"}),d(F5,{config:i})]})}function F5({config:e}){let[t,n,a,r,o]=Ye(Qe),[u,i]=$(!1),{t:s}=ue();return ua()?d("div",{class:"flex justify-between items-center nav",children:[d(Pe,{title:s("modifyMouseHoverKey"),description:s("mouseHoverHoldKey")}),d(_5,{config:e,setSettings:n,className:"select",clickOther:()=>i(!0)}),d(C4,{config:e,visible:u,onClose:()=>i(!1)})]}):null}function _5({config:e,setSettings:t,className:n,clickOther:a}){let{t:r}=ue();return e?d(On,{className:n,items:Ca.filter(o=>!(Ca.includes(e.generalRule.mouseHoverHoldKey)&&o==="OtherCustom")).map(o=>{let u=r("mouseHoldKey",{key:o}),i=Ca.includes(e.generalRule.mouseHoverHoldKey),s=o===e.generalRule.mouseHoverHoldKey;return o==="Auto"?u=r("mouseHoldKeyAuto"):o==="Off"?u=r("mouseHoldKeyOff"):o==="OtherCustom"?u=i?r("mouseHoldKeyOther"):r("mouseHoldKeyCustomKey",{key:e.generalRule.mouseHoverHoldKey}):o==="Other"&&(u=r("mouseHoldKeyOther")),i||o==="OtherCustom"&&(s=!0),{label:u,value:o,selected:s,onSelected:c=>{c.value==="Other"?a():t(l=>({...l,generalRule:{...l.generalRule,mouseHoverHoldKey:c.value}}))}}})}):null}function Hh(){let e=document.getElementById("mount");e&&(async()=>{s0(zh);let t=await Ge();t.debug&&z.setLevel("debug"),globalThis.location.hash||(globalThis.location.hash="#general");let n=await Lt({url:"http://localhost",config:t});et("options_page_view",[{name:"options_page_view"}],{...n,sourceLanguage:globalThis.location.hash}),wa(document,n),Wa(d(ii,{lang:t.interfaceLanguage,fallbackLang:"zh-CN",translations:Vr,children:d(B5,{donateUrl:t.donateUrl,config:t})}),e)})()}function B5(e){let t=Q0(),{t:n}=ue(),a=fi(),{config:r}=e,o=[{name:n("general"),props:{href:"#general",className:"secondary"}},{name:n("interface"),props:{href:"#interface",className:"secondary"}},{name:n("mouseHoverOptions"),props:{href:"#mouse_hover",className:"secondary"}},{name:n("inputOptions"),props:{href:"#input",className:"secondary"}},{name:n("advanced"),props:{href:"#advanced",className:"secondary"}},{name:n("import_export"),props:{href:"#import_export",className:"secondary"}},{name:n("about"),props:{href:"#about",className:"secondary"}}];o.forEach(i=>{t===i.props.href&&(i.props.className="primary",i.props["aria-current"]="page")});let u=!0;return ot()&&(u=r.generalRule.showSponsorOnSafari),d(Fe,{children:d("main",{class:"container-fluid",children:[d("aside",{children:d("nav",{class:"flex flex-col h-full justify-between",children:[d("div",{children:[d("hgroup",{class:"mb-2",children:[d("h4",{class:"cursor-pointer p-0 m-0",onClick:()=>{globalThis.location.hash="#general"},children:n("browser.shortBrandName")}),d("h6",{class:"!text-sm",children:a})]}),d("ul",{class:"flex flex-wrap justify-between md:block text-sm md:text-base",children:o.map((i,s)=>d("li",{class:"li",children:d("a",{...i.props,children:i.name})},`nav-${s}`))})]}),d("div",{class:"m-0 p-0 flex flex-col",children:[u&&d("a",{class:"py-3 text-xs no-focus secondary",href:e.donateUrl,children:n("donateCafe")}),d("a",{class:"py-3 text-xs no-focus secondary",href:"https://immersivetranslate.com/docs/communities/",children:n("feedbackAndJoin")}),d("a",{class:"py-3 text-xs no-focus secondary",href:"https://immersivetranslate.com/docs/",children:n("document")}),d("a",{class:"py-3 text-xs no-focus secondary",href:"#developer",children:n("developer")})]})]})}),d("div",{role:"main",children:d(J0,{value:t,defaultCase:d(Ms,{}),cases:{"#general":d(Ms,{}),"#mouse_hover":d(k4,{}),"#input":d(y4,{}),"#interface":d(E4,{}),"#import_export":d(ac,{}),"#about":d(w4,{}),"#advanced":d(A4,{}),"#developer":d(v4,{})}})})]})})}Hh();})(); /*! Bundled license information: bowser/src/bowser.js: diff --git a/dist/firefox/pdf/immservie.js b/dist/firefox/pdf/immservie.js index 9f8e667..07f0cfa 100644 --- a/dist/firefox/pdf/immservie.js +++ b/dist/firefox/pdf/immservie.js @@ -1,4 +1,4 @@ -(()=>{var Ff=Object.create;var Di=Object.defineProperty;var _f=Object.getOwnPropertyDescriptor;var Bf=Object.getOwnPropertyNames;var Rf=Object.getPrototypeOf,If=Object.prototype.hasOwnProperty;var Of=(e,t)=>()=>(e&&(t=e(e=0)),t);var Nf=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),jf=(e,t)=>{for(var n in t)Di(e,n,{get:t[n],enumerable:!0})},zf=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Bf(t))!If.call(e,r)&&r!==n&&Di(e,r,{get:()=>t[r],enumerable:!(a=_f(t,r))||a.enumerable});return e};var Uf=(e,t,n)=>(n=e!=null?Ff(Rf(e)):{},zf(t||!e||!e.__esModule?Di(n,"default",{value:e,enumerable:!0}):n,e));var P,p=Of(()=>{P={BUILD_TIME:"2023-09-17T09:32:32.000Z",VERSION:"0.9.5",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"0",BETA:"0",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { +(()=>{var _f=Object.create;var Di=Object.defineProperty;var Bf=Object.getOwnPropertyDescriptor;var Rf=Object.getOwnPropertyNames;var If=Object.getPrototypeOf,Of=Object.prototype.hasOwnProperty;var Nf=(e,t)=>()=>(e&&(t=e(e=0)),t);var jf=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),zf=(e,t)=>{for(var n in t)Di(e,n,{get:t[n],enumerable:!0})},Uf=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Rf(t))!Of.call(e,r)&&r!==n&&Di(e,r,{get:()=>t[r],enumerable:!(a=Bf(t,r))||a.enumerable});return e};var Hf=(e,t,n)=>(n=e!=null?_f(If(e)):{},Uf(t||!e||!e.__esModule?Di(n,"default",{value:e,enumerable:!0}):n,e));var P,p=Nf(()=>{P={BUILD_TIME:"2023-09-19T07:46:36.000Z",VERSION:"0.9.6",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"0",BETA:"0",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { --immersive-translate-theme-underline-borderColor: #72ece9; --immersive-translate-theme-nativeUnderline-borderColor: #72ece9; --immersive-translate-theme-nativeDashed-borderColor: #72ece9; @@ -4234,17 +4234,17 @@ select.text-label {
-`,PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",OPTIONS_URL:"https://dash.immersivetranslate.com/",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",MOCK:"0",DEBUG:"0",INSTALL_FROM:"firefox_zip"}});var om=Nf((po,Qr)=>{p();(function(){var e;function t(d){var b,T,h="",C=-1,v;if(d&&d.length)for(v=d.length;(C+=1)>>6&31,128|b&63):b<=65535?h+=String.fromCharCode(224|b>>>12&15,128|b>>>6&63,128|b&63):b<=2097151&&(h+=String.fromCharCode(240|b>>>18&7,128|b>>>12&63,128|b>>>6&63,128|b&63));return h}function n(d){var b,T,h,C,v,O=[],B;if(b=T=h=C=v=0,d&&d.length)for(B=d.length,d+="";b191&&h<224?(C=d.charCodeAt(b+1),O[T]=String.fromCharCode((h&31)<<6|C&63),b+=2):(C=d.charCodeAt(b+1),v=d.charCodeAt(b+2),O[T]=String.fromCharCode((h&15)<<12|(C&63)<<6|v&63),b+=3);return O.join("")}function a(d,b){var T=(d&65535)+(b&65535),h=(d>>16)+(b>>16)+(T>>16);return h<<16|T&65535}function r(d,b){return d<>>32-b}function u(d,b){for(var T=b?"0123456789ABCDEF":"0123456789abcdef",h="",C,v=0,O=d.length;v>>4&15)+T.charAt(C&15);return h}function o(d){var b,T=d.length,h="";for(b=0;b>>8&255);return h}function i(d){var b,T=d.length,h="";for(b=0;b>>8&255,d.charCodeAt(b)&255);return h}function s(d){var b,T=d.length*32,h="";for(b=0;b>5]>>>24-b%32&255);return h}function c(d){var b,T=d.length*32,h="";for(b=0;b>5]>>>b%32&255);return h}function l(d){var b,T=d.length*8,h=Array(d.length>>2),C=h.length;for(b=0;b>5]|=(d.charCodeAt(b/8)&255)<>2),C=h.length;for(b=0;b>5]|=(d.charCodeAt(b/8)&255)<<24-b%32;return h}function g(d,b){var T=b.length,h=Array(),C,v,O,B,x,L,M,w;for(L=Array(Math.ceil(d.length/2)),B=L.length,C=0;C0;){for(x=Array(),O=0,C=0;C0||v>0)&&(x[x.length]=v);h[h.length]=O,L=x}for(M="",C=h.length-1;C>=0;C--)M+=b.charAt(h[C]);for(w=Math.ceil(d.length*8/(Math.log(b.length)/Math.log(2))),C=M.length;Cd.length*8?h+=b:h+=T.charAt(B>>>6*(3-O)&63);return h}e={VERSION:"1.0.6",Base64:function(){var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b="=",T=!1,h=!0;this.encode=function(C){var v,O,B,x="";for(b=b||"=",C=h?t(C):C,len=C.length,v=0;vlen*8?x+=b:x+=d.charAt(B>>>6*(3-O)&63);return x},this.decode=function(C){var v,O,B,x,L,M,w,E,I,F,A="",_=[];if(!C)return C;v=F=0,C=C.replace(new RegExp("\\"+b,"gi"),"");do L=d.indexOf(C.charAt(v++)),M=d.indexOf(C.charAt(v++)),w=d.indexOf(C.charAt(v++)),E=d.indexOf(C.charAt(v++)),I=L<<18|M<<12|w<<6|E,O=I>>16&255,B=I>>8&255,x=I&255,F+=1,w===64?_[F]=String.fromCharCode(O):E===64?_[F]=String.fromCharCode(O,B):_[F]=String.fromCharCode(O,B,x);while(v>>8^T;return(b^-1)>>>0},MD5:function(d){var b=d&&typeof d.uppercase=="boolean"?d.uppercase:!1,T=d&&typeof d.pad=="string"?d.pad:"=",h=d&&typeof d.utf8=="boolean"?d.utf8:!0;this.hex=function(E){return u(C(E,h),b)},this.b64=function(E){return f(C(E),T)},this.any=function(E,I){return g(C(E,h),I)},this.raw=function(E){return C(E,h)},this.hex_hmac=function(E,I){return u(v(E,I),b)},this.b64_hmac=function(E,I){return f(v(E,I),T)},this.any_hmac=function(E,I,F){return g(v(E,I),F)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(E){return typeof E=="boolean"&&(b=E),this},this.setPad=function(E){return T=E||T,this},this.setUTF8=function(E){return typeof E=="boolean"&&(h=E),this};function C(E){return E=h?t(E):E,c(O(l(E),E.length*8))}function v(E,I){var F,A,_,j,N;for(E=h?t(E):E,I=h?t(I):I,F=l(E),F.length>16&&(F=O(F,E.length*8)),A=Array(16),_=Array(16),N=0;N<16;N+=1)A[N]=F[N]^909522486,_[N]=F[N]^1549556828;return j=O(A.concat(l(I)),512+I.length*8),c(O(_.concat(j),512+128))}function O(E,I){var F,A,_,j,N,D=1732584193,y=-271733879,S=-1732584194,R=271733878;for(E[I>>5]|=128<>>9<<4)+14]=I,F=0;F16&&(w=O(w,L.length*8)),E=Array(16),I=Array(16),F=0;F<16;F+=1)E[F]=w[F]^909522486,I[F]=w[F]^1549556828;return A=O(E.concat(m(M)),512+M.length*8),s(O(I.concat(A),512+160))}function O(L,M){var w,E,I,F,A,_,j,N,D=Array(80),y=1732584193,S=-271733879,R=-1732584194,$=271733878,z=-1009589776;for(L[M>>5]|=128<<24-M%32,L[(M+64>>9<<4)+15]=M,w=0;w16&&(z=D(z,y.length*8));$<16;$+=1)Y[$]=z[$]^909522486,q[$]=z[$]^1549556828;return R=D(Y.concat(m(S)),512+S.length*8),s(D(q.concat(R),512+256))}function B(y,S){return y>>>S|y<<32-S}function x(y,S){return y>>>S}function L(y,S,R){return y&S^~y&R}function M(y,S,R){return y&S^y&R^S&R}function w(y){return B(y,2)^B(y,13)^B(y,22)}function E(y){return B(y,6)^B(y,11)^B(y,25)}function I(y){return B(y,7)^B(y,18)^x(y,3)}function F(y){return B(y,17)^B(y,19)^x(y,10)}function A(y){return B(y,28)^B(y,34)^B(y,39)}function _(y){return B(y,14)^B(y,18)^B(y,41)}function j(y){return B(y,1)^B(y,8)^x(y,7)}function N(y){return B(y,19)^B(y,61)^x(y,6)}C=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function D(y,S){var R=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],$=new Array(64),z,Y,q,ae,Q,G,pe,fe,re,K,oe,me;for(y[S>>5]|=128<<24-S%32,y[(S+64>>9<<4)+15]=S,re=0;re32&&(y=B(y,_.length*8));D<32;D+=1)S[D]=y[D]^909522486,R[D]=y[D]^1549556828;return N=B(S.concat(m(j)),1024+j.length*8),s(B(R.concat(N),1024+512))}function B(_,j){var N,D,y,S=new Array(80),R=new Array(16),$=[new x(1779033703,-205731576),new x(-1150833019,-2067093701),new x(1013904242,-23791573),new x(-1521486534,1595750129),new x(1359893119,-1377402159),new x(-1694144372,725511199),new x(528734635,-79577749),new x(1541459225,327033209)],z=new x(0,0),Y=new x(0,0),q=new x(0,0),ae=new x(0,0),Q=new x(0,0),G=new x(0,0),pe=new x(0,0),fe=new x(0,0),re=new x(0,0),K=new x(0,0),oe=new x(0,0),me=new x(0,0),ce=new x(0,0),ye=new x(0,0),Se=new x(0,0),xe=new x(0,0),Z=new x(0,0);for(C===void 0&&(C=[new x(1116352408,-685199838),new x(1899447441,602891725),new x(-1245643825,-330482897),new x(-373957723,-2121671748),new x(961987163,-213338824),new x(1508970993,-1241133031),new x(-1841331548,-1357295717),new x(-1424204075,-630357736),new x(-670586216,-1560083902),new x(310598401,1164996542),new x(607225278,1323610764),new x(1426881987,-704662302),new x(1925078388,-226784913),new x(-2132889090,991336113),new x(-1680079193,633803317),new x(-1046744716,-815192428),new x(-459576895,-1628353838),new x(-272742522,944711139),new x(264347078,-1953704523),new x(604807628,2007800933),new x(770255983,1495990901),new x(1249150122,1856431235),new x(1555081692,-1119749164),new x(1996064986,-2096016459),new x(-1740746414,-295247957),new x(-1473132947,766784016),new x(-1341970488,-1728372417),new x(-1084653625,-1091629340),new x(-958395405,1034457026),new x(-710438585,-1828018395),new x(113926993,-536640913),new x(338241895,168717936),new x(666307205,1188179964),new x(773529912,1546045734),new x(1294757372,1522805485),new x(1396182291,-1651133473),new x(1695183700,-1951439906),new x(1986661051,1014477480),new x(-2117940946,1206759142),new x(-1838011259,344077627),new x(-1564481375,1290863460),new x(-1474664885,-1136513023),new x(-1035236496,-789014639),new x(-949202525,106217008),new x(-778901479,-688958952),new x(-694614492,1432725776),new x(-200395387,1467031594),new x(275423344,851169720),new x(430227734,-1194143544),new x(506948616,1363258195),new x(659060556,-544281703),new x(883997877,-509917016),new x(958139571,-976659869),new x(1322822218,-482243893),new x(1537002063,2003034995),new x(1747873779,-692930397),new x(1955562222,1575990012),new x(2024104815,1125592928),new x(-2067236844,-1578062990),new x(-1933114872,442776044),new x(-1866530822,593698344),new x(-1538233109,-561857047),new x(-1090935817,-1295615723),new x(-965641998,-479046869),new x(-903397682,-366583396),new x(-779700025,566280711),new x(-354779690,-840897762),new x(-176337025,-294727304),new x(116418474,1914138554),new x(174292421,-1563912026),new x(289380356,-1090974290),new x(460393269,320620315),new x(685471733,587496836),new x(852142971,1086792851),new x(1017036298,365543100),new x(1126000580,-1676669620),new x(1288033470,-885112138),new x(1501505948,-60457430),new x(1607167915,987167468),new x(1816402316,1246189591)]),D=0;D<80;D+=1)S[D]=new x(0,0);for(_[j>>5]|=128<<24-(j&31),_[(j+128>>10<<5)+31]=j,y=_.length,D=0;D>>N|j.h<<32-N,_.h=j.h>>>N|j.l<<32-N}function w(_,j,N){_.l=j.h>>>N|j.l<<32-N,_.h=j.l>>>N|j.h<<32-N}function E(_,j,N){_.l=j.l>>>N|j.h<<32-N,_.h=j.h>>>N}function I(_,j,N){var D=(j.l&65535)+(N.l&65535),y=(j.l>>>16)+(N.l>>>16)+(D>>>16),S=(j.h&65535)+(N.h&65535)+(y>>>16),R=(j.h>>>16)+(N.h>>>16)+(S>>>16);_.l=D&65535|y<<16,_.h=S&65535|R<<16}function F(_,j,N,D,y){var S=(j.l&65535)+(N.l&65535)+(D.l&65535)+(y.l&65535),R=(j.l>>>16)+(N.l>>>16)+(D.l>>>16)+(y.l>>>16)+(S>>>16),$=(j.h&65535)+(N.h&65535)+(D.h&65535)+(y.h&65535)+(R>>>16),z=(j.h>>>16)+(N.h>>>16)+(D.h>>>16)+(y.h>>>16)+($>>>16);_.l=S&65535|R<<16,_.h=$&65535|z<<16}function A(_,j,N,D,y,S){var R=(j.l&65535)+(N.l&65535)+(D.l&65535)+(y.l&65535)+(S.l&65535),$=(j.l>>>16)+(N.l>>>16)+(D.l>>>16)+(y.l>>>16)+(S.l>>>16)+(R>>>16),z=(j.h&65535)+(N.h&65535)+(D.h&65535)+(y.h&65535)+(S.h&65535)+($>>>16),Y=(j.h>>>16)+(N.h>>>16)+(D.h>>>16)+(y.h>>>16)+(S.h>>>16)+(z>>>16);_.l=R&65535|$<<16,_.h=z&65535|Y<<16}},RMD160:function(d){var b=d&&typeof d.uppercase=="boolean"?d.uppercase:!1,T=d&&typeof d.pad=="string"?d.pa:"=",h=d&&typeof d.utf8=="boolean"?d.utf8:!0,C=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],v=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],O=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],B=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(A){return u(x(A,h))},this.b64=function(A){return f(x(A,h),T)},this.any=function(A,_){return g(x(A,h),_)},this.raw=function(A){return x(A,h)},this.hex_hmac=function(A,_){return u(L(A,_))},this.b64_hmac=function(A,_){return f(L(A,_),T)},this.any_hmac=function(A,_,j){return g(L(A,_),j)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(A){return typeof A=="boolean"&&(b=A),this},this.setPad=function(A){return typeof A<"u"&&(T=A),this},this.setUTF8=function(A){return typeof A=="boolean"&&(h=A),this};function x(A){return A=h?t(A):A,M(w(l(A),A.length*8))}function L(A,_){A=h?t(A):A,_=h?t(_):_;var j,N,D=l(A),y=Array(16),S=Array(16);for(D.length>16&&(D=w(D,A.length*8)),j=0;j<16;j+=1)y[j]=D[j]^909522486,S[j]=D[j]^1549556828;return N=w(y.concat(l(_)),512+_.length*8),M(w(S.concat(N),512+160))}function M(A){var _,j="",N=A.length*32;for(_=0;_>5]>>>_%32&255);return j}function w(A,_){var j,N,D,y,S=1732584193,R=4023233417,$=2562383102,z=271733878,Y=3285377520,q,ae,Q,G,pe,fe,re,K,oe,me;for(A[_>>5]|=128<<_%32,A[(_+64>>>9<<4)+14]=_,y=A.length,D=0;D"u"&&typeof Deno<"u"?Deno.env.toObject():P}var Ee=Qe();function he(){return Ee.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function Pn(){return Ee.PROD==="1"}function Mn(){return Ee.PROD_API==="1"}function mc(){return Ee.HAS_CSP_ERROR=="1"}function Zt(){if(Ee.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function Eu(){return typeof Deno<"u"}var k5=Qe().PROD==="1",Oa=Qe().PROD!=="1";function Tu(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}var gc={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",curentPlan:"\u5F53\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52A8\u7EED\u671F",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",sponsorLabel:"$1 \u8D77\u8D5E\u52A9\u5F00\u53D1\u8005",help:"\u5E2E\u52A9",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D\uFF0C\u518D\u70B9\u51FB\u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D\u5373\u53EF\u8BBE\u7F6E",browserShortcutsNoteForChrome:"\u7C7BChrome \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762\uFF0C\u5728`\u7BA1\u7406\u5FEB\u6377\u952E`\u9762\u677F(`chrome://extensions/shortcuts`)\u8BBE\u7F6E\uFF0C\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8DF3\u8F6C\u5230\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E\u683C\u5F0F\u4E3A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1: \u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1 & PDF\u6587\u6863\u7FFB\u8BD1","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7F51\u9875\u53CC\u8BED\u7FFB\u8BD1\u6269\u5C55\uFF0C\u540C\u65F6\u652F\u6301 PDF \u7FFB\u8BD1\uFF0C\u53CC\u8BED Epub \u7535\u5B50\u4E66\u5236\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u817E\u8BAF\u7FFB\u8BD1\u7B49\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\uFF0C\u514D\u8D39\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8BD1\u5E76\u9690\u85CF\u539F\u6587/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.toggleTranslationMask":"\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.donateContext":"\u4E86\u89E3\u8D5E\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5219\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875(\u4EC5\u8BD1\u6587)/\u663E\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7","fingers.0":"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478",mouseHoldKey:"+ {key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoverHoldKey:"\u9F20\u6807\u60AC\u505C\u540C\u65F6\u6309\u4E0B\u5FEB\u6377\u952E\u7FFB\u8BD1\u6BB5\u843D","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u6587\u6863",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",goAdvancedSettings:"\u53BB\u8FDB\u9636\u8BBE\u7F6E\u9875",goAdvancedInterfaceSettings:"\u53BB\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u8BBE\u7F6E\u9875\u9762",advanced:"\u8FDB\u9636\u8BBE\u7F6E",advancedDescription:"\u4E00\u822C\u65E0\u9700\u8BBE\u7F6E\uFF0C\u4FDD\u6301\u9ED8\u8BA4\u5373\u53EF\u3002\u4EC5\u5BF9\u4E8E\u66F4\u4E13\u4E1A\u7684\u7528\u6237\uFF0C\u63D0\u4F9B\u66F4\u4E2A\u6027\u5316\u7684\u8BBE\u7F6E\u9879\u3002",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00","display both the original text and the translation":"\u540C\u65F6\u663E\u793A\u539F\u6587\u548C\u8BD1\u6587","keyboard shortcuts":"\u952E\u76D8\u5FEB\u6377\u952E",modify:"\u4FEE\u6539\u5FEB\u6377\u952E",reset:"\u91CD\u7F6E",close:"\u5173\u95ED",homepage:"\u4E3B\u9875",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",changeToOnlyTranslationMode:"\u5207\u6362\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u5207\u6362\u4E3A\u53CC\u8BED\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",unknownError:"\u672A\u77E5\u9519\u8BEF",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",needActionForOptions:"(\u9700\u8BBE\u7F6E)",translationEngine:"\u5F15\u64CE\u9009\u9879",sourceLanguage:"\u539F\u6587\u8BED\u8A00",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",forThisSite:"\u5F53\u524D\u7F51\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1 {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8BD1 {language}",alwaysTranslateSomeSite:"\u603B\u662F\u7FFB\u8BD1 {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8BD1 {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u6DFB\u52A0",default:"\u9ED8\u8BA4",forThisLanguage:"\u9488\u5BF9\u8BE5\u8BED\u8A00\uFF1A","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91","translate other languages into specific language":"\u5C06\u5176\u4ED6\u8BED\u8A00\u7FFB\u8BD1\u4E3A\u4F60\u8BBE\u7F6E\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1",language:"\u8BED\u8A00","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",Error:"\u9519\u8BEF",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",interface:"\u754C\u9762\u8BBE\u7F6E",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8BD1\u9875\u9762\u6807\u9898","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1",enableUserscriptPagePopup:"\u5728\u9875\u9762\u4E0A\u663E\u793A\u60AC\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528\u5FEB\u6377\u952E/{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8BD1\u6587\u6837\u5F0F",currentUrl:"\u5F53\u524D\u7F51\u5740",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664","languages.auto":"\u81EA\u52A8\u68C0\u6D4B",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",upload:"\u4E0A\u4F20",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",download:"\u4E0B\u8F7D",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",deleteFail:"\u5220\u9664\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",backupToCloudDescription:"\u624B\u52A8\u4E0A\u4F20\u6216\u6062\u590D\u5907\u4EFD\u6587\u4EF6\uFF0C\u6700\u591A\u5141\u8BB83\u4E2A\u4E0D\u540C\u7684\u5907\u4EFD",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",updatedAt:"\u66F4\u65B0\u4E8E {date}",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u9891\u9053",joinTelegramChannel:"\u5173\u6CE8 Telegram \u9891\u9053\u83B7\u53D6\u6700\u65B0\u66F4\u65B0",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",autoSync:"\u81EA\u52A8\u5B9A\u65F6\u540C\u6B65",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863","edit border color":"\u4FEE\u6539\u8FB9\u6846\u989C\u8272",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",enableSubtitle:"\u5F00\u542F\u5B57\u5E55\u7FFB\u8BD1",enableSubtitleDescription:"\u9488\u5BF9 youtube \u7B49\u7F51\u7AD9\u7684\u5B57\u5E55\u533A\u57DF\u5F00\u542F\u7FFB\u8BD1",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",enableSearchEnhancement:"\u542F\u7528\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A",enableSearchEnhancementDescription:"\u5F00\u542F\u540E\uFF0C\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\u793E\u533A\uFF09\u53F3\u8FB9\u680F\u81EA\u52A8\u663E\u793A\u5BF9\u5E94\u82F1\u6587\u5173\u952E\u8BCD\u7684\u201C\u8C37\u6B4C\u65B0\u95FB\u201D\u641C\u7D22\u7ED3\u679C\u3002",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerMinute":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u5206\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u8350\uFF09, \u5C06\u4F1A\u5728\u5355\u72EC\u4F5C\u4E3A\u4E00\u6BB5\u53D1\u9001\u7ED9 OpenAI","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740",enabledExtension:"\u542F\u7528\u6269\u5C55",clickToDisableExtension:"\u70B9\u51FB\u7981\u7528\u6269\u5C55",clickToEnableExtension:"\u70B9\u51FB\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",modifyMouseHoverKey:"\u4FEE\u6539\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u8BBE\u7F6E",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",disableTint:"* \u4F60\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u542F\u7528\u3002",searchEnhancementNotes:"\u6211\u4EEC\u53D1\u73B0\uFF0C\u4E2D\u6587\u5173\u952E\u8BCD\u548C\u82F1\u6587\u5173\u952E\u8BCD\u7684\u65B0\u95FB\u7ED3\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u542F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u529F\u80FD\u540E\uFF0C\u6211\u4EEC\u4F1A\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\u7F51\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52A8\u7528\u82F1\u6587\u4E3A\u4F60\u641C\u7D22\u540C\u6837\u7684\u5173\u952E\u8BCD\u5E76\u5C55\u793A\u5728\u53F3\u4FA7\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8BE5\u529F\u80FD\u7684\u8BDD\uFF0C\u53EF\u4EE5\u9009\u62E9\u7981\u7528\u5B83\u3002",option:"\u8BBE\u7F6E",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",needLoginAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u81EA\u5B9A\u4E49)",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",onetime_7day:"7 \u5929\u4F53\u9A8C\u5305",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradePlan:"\u70B9\u6B64\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL \u548C OpenAI \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8BD1",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u8BBE\u7F6E\u5176\u4ED6\u5FEB\u6377\u952E\u6765\u89E6\u53D1\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1"};var pc={nologin:"\u672A\u767B\u9304",login:"\u767B\u9304",manageAccount:"\u7BA1\u7406\u8CEC\u6236",logout:"\u9000\u51FA",curentPlan:"\u7576\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u671F",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u64CA\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u8AAA\u660E",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u9644\u52A0\u5143\u4EF6\u7BA1\u7406\u9801\u9762 \u300Cabout:addons\u300D\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u5716\u793A\u300D\uFF0C\u518D\u9EDE\u9078\u300C\u7BA1\u7406\u64F4\u5145\u5957\u4EF6\u5FEB\u901F\u9375\u300D\u5373\u53EF\u8A2D\u5B9A",browserShortcutsNoteForChrome:"Chromium \u6838\u5FC3\u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u64F4\u5145\u529F\u80FD\u7BA1\u7406\u9801\u9762\uFF0C\u5728\u300C\u9375\u76E4\u5FEB\u901F\u9375\u300D\u9801\u9762(chrome://extensions/shortcuts)\u8A2D\u5B9A\uFF0C\u9EDE\u9078\u4E0B\u65B9\u6309\u9215\u524D\u5F80\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u901F\u9375\u683C\u5F0F\u70BA\uFF1A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F: \u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F & PDF\u6587\u6A94\u7FFB\u8B6F","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7DB2\u9801\u96D9\u8A9E\u7FFB\u8B6F\u64F4\u5C55\uFF0C\u540C\u6642\u652F\u6301 PDF \u7FFB\u8B6F\uFF0C\u96D9\u8A9E Epub \u96FB\u5B50\u66F8\u88FD\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u9A30\u8A0A\u7FFB\u8B6F\u7B49\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF0C\u514D\u8CBB\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8B6F\u4E26\u96B1\u85CF\u539F\u6587/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.toggleTranslationMask":"\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.donateContext":"\u4E86\u89E3\u8D0A\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u5247\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u6642\u89F8\u78B0\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801(\u50C5\u8B6F\u6587)/\u986F\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304","fingers.0":"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478",mouseHoldKey:"+ {key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u6377\u9375(\u6253\u958B\u8A2D\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoverHoldKey:"\u9F20\u6A19\u6ED1\u904E\u540C\u6642\u6309\u4E0B X \u9375\u7FFB\u8B6F\u6BB5\u843D","mouse-translate":"\u9F20\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",goAdvancedSettings:"\u524D\u5F80\u9032\u968E\u8A2D\u5B9A\u9801\u9762",goAdvancedInterfaceSettings:"\u524D\u5F80\u81EA\u8A02\u8A2D\u5B9A\u9801\u9762",advanced:"\u9032\u968E\u8A2D\u5B9A",advancedDescription:"\u6B63\u5E38\u60C5\u6CC1\u7121\u9700\u8A2D\u5B9A\uFF0C\u4FDD\u6301\u9810\u8A2D\u5373\u53EF\u3002\u50C5\u91DD\u5C0D\u66F4\u5C08\u696D\u7684\u4F7F\u7528\u8005\uFF0C\u63D0\u4F9B\u66F4\u500B\u4EBA\u5316\u7684\u8A2D\u5B9A\u9805\u76EE\u3002",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00","display both the original text and the translation":"\u540C\u6642\u986F\u793A\u539F\u6587\u548C\u8B6F\u6587","keyboard shortcuts":"\u9375\u76E4\u5FEB\u901F\u9375",modify:"\u8B8A\u66F4\u5FEB\u901F\u9375",reset:"\u91CD\u8A2D",close:"\u95DC\u9589",homepage:"\u9996\u9801",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",changeToOnlyTranslationMode:"\u5207\u63DB\u70BA\u50C5\u986F\u793A\u8B6F\u6587",changeToDualTranslationMode:"\u5207\u63DB\u70BA\u96D9\u8A9E\u7FFB\u8B6F",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:"\u672A\u77E5\u7684\u932F\u8AA4",canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u9078\u9805",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",needActionForOptions:"(\u9700\u8A2D\u5B9A)",translationEngine:"\u5F15\u64CE\u9078\u9805",sourceLanguage:"\u539F\u6587\u8A9E\u8A00",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",forThisSite:"\u7576\u524D\u7DB2\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8B6F {language}",alwaysTranslateSomeSite:"\u7E3D\u662F\u7FFB\u8B6F {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8B6F {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u65B0\u589E",default:"\u9810\u8A2D",forThisLanguage:"\u91DD\u5C0D\u8A72\u8A9E\u8A00\uFF1A","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F","translate other languages into specific language":"\u5C07\u5176\u5B83\u8A9E\u8A00\u7FFB\u8B6F\u70BA\u4F60\u8A2D\u5B9A\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9",language:"\u8A9E\u8A00","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",Error:"\u932F\u8AA4",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",interface:"\u4ECB\u9762\u8A2D\u5B9A",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65",syncToAccount:"\u540C\u6B65\u5230\u8CEC\u6236",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u8CEC\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u8A2D\u5099\u4E4B\u9593\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u8CEC\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u8CEC\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8B6F","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9E\u99AC\u905C\u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8B6F\u9801\u9762\u6A19\u984C","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F",enableUserscriptPagePopup:"\u5728\u9801\u9762\u4E0A\u986F\u793A\u61F8\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528\u5FEB\u901F\u9375/{touch}\u518D\u6B21\u986F\u793A\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5EFA\u8B70\u5C07\u672C\u8A2D\u5B9A\u9801\u9762\u52A0\u5165\u81F3\u6211\u7684\u6700\u611B","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8B6F\u6587\u6A23\u5F0F",currentUrl:"\u76EE\u524D\u7DB2\u5740",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6E96\u3002",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",upload:"\u4E0A\u50B3",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",download:"\u4E0B\u8F09",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",deleteFail:"\u522A\u9664\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",backupToCloudDescription:"\u624B\u52D5\u4E0A\u50B3\u6216\u9084\u539F\u5099\u4EFD\u6A94\u6848\uFF0C\u6700\u591A\u5141\u8A31 3 \u500B\u4E0D\u540C\u7684\u5099\u4EFD",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",updatedAt:"\u66F4\u65B0\u65BC {date}",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u4EEC\u7684<3>Twitter\uFF0C<4>Telegram \u983B\u9053\u4EE5\u53CA\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u90F5\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u983B\u9053",joinTelegramChannel:"\u95DC\u6CE8 Telegram \u983B\u9053\u77AD\u89E3\u66F4\u65B0\u8CC7\u8A0A",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",autoSync:"\u81EA\u52D5\u5B9A\u6642\u540C\u6B65",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6","edit border color":"\u8B8A\u66F4\u908A\u6846\u8272\u5F69",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",enableSubtitle:"\u958B\u555F\u5B57\u5E55\u7FFB\u8B6F",enableSubtitleDescription:"\u91DD\u5C0D youtube \u7B49\u7DB2\u7AD9\u7684\u5B57\u5E55\u5340\u57DF\u958B\u555F\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",enableSearchEnhancement:"\u958B\u555F\u641C\u7D22\u589E\u5F37",enableSearchEnhancementDescription:"\u4E2D\u6587\u641C\u7D22\u8C37\u6B4C\u6703\u5728\u53F3\u908A\u51FA\u73FE\u82F1\u6587\u7248\u8C37\u6B4C\u65B0\u805E",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerMinute":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u5206\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u4EFD\u50B3\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u85A6\uFF09, \u5C07\u6703\u5728\u55AE\u7368\u4F5C\u70BA\u4E00\u6BB5\u767C\u9001\u7D66 OpenAI","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u50B3\u9001\u767C\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",clickToDisableExtension:"\u9EDE\u9078\u505C\u7528\u5957\u4EF6",clickToEnableExtension:"\u9EDE\u9078\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u9F20\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u7F6E\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u5B57\u7B26\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8B58\u5225\u70BA\u89F8\u767C\u5B57\u7B26\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u7981\u7528\u78BA\u8A8D",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",disableTint:"* \u60A8\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u555F\u7528\u3002",searchEnhancementNotes:"\u6211\u5011\u767C\u73FE\uFF0C\u4E2D\u6587\u95DC\u9375\u8A5E\u548C\u82F1\u6587\u95DC\u9375\u8A5E\u7684\u65B0\u805E\u7D50\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u555F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u4FE1\u606F\u589E\u5F37\u529F\u80FD\u5F8C\uFF0C\u6211\u5011\u6703\u5728\u652F\u6301\u7684\u7DB2\u7AD9\uFF08\u8C37\u6B4C\u65B0\u805E\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u95DC\u9375\u8A5E\uFF09\uFF0C\u96EA\u7403\uFF0C\u6771\u65B9\u8CA1\u5BCC\u7DB2\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52D5\u7528\u82F1\u6587\u70BA\u4F60\u641C\u7D22\u540C\u6A23\u7684\u95DC\u9375\u8A5E\u4E26\u5C55\u793A\u5728\u53F3\u5074\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8A72\u529F\u80FD\u7684\u8A71\uFF0C\u53EF\u4EE5\u9078\u64C7\u7981\u7528\u5B83\u3002",option:"\u9078\u9805",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL \u548C OpenAI \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8B6F",currentAccount:"\u7576\u524D\u8CEC\u6236"};var fc={nologin:"Not logged in",login:"Login",manageAccount:"Manage Account",logout:"Logout",curentPlan:"Current Plan",endAt:"Expires",endAuto:"Auto Renew",lineBreakMaxTextCount:"Maximum number of characters allowed per sentence after line break","translate-pdf":"Click to translate PDF","noSupportTranslate-pdf":"The script is not supported, please use a plugin.","translate-firefox-local-pdf":"Click to upload PDF",enableLineBreak:"Whether to turn on automatic line wrapping for long paragraphs",sponsorLabel:"Sponsoring developers from $1 (monthly or one-time)",help:"Help",browserShortcutsNoteForFirefox:`To modify the shortcut key in Firefox browser, you need to open the extension management page 'about: addons', then click "Settings", and then click "Management shortcut key" to set it`,browserShortcutsNoteForChrome:"To modify the shortcut key in Chrome browser, you need to open the extension management page` chrome://extensions/shortcuts `) Settings, click the button below to jump to the shortcut key management page.",browserShortcutsSucks:"Please enter the shortcut key manually in the format:",enableLineBreakDescription:"After opening, a line break will be inserted at the end of each sentence in a long paragraph for easy reading","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate: Web Page&PDF Translation","browser.brandDescription":"Bilingual web page translation, also supports PDF translation, bilingual Epub eBook translation, free to use.","browser.toggleTranslatePage":"Toggle Translate Page","browser.toggleTranslateTheWholePage":"Toggle Translate the Whole Page","browser.toggleOnlyTransation":"Toggle Translate and Hide Original Text","browser.toggleTranslateToThePageEndImmediately":"Toggle Translate to the Bottom of the Page Immediately","browser.toggleTranslateTheMainPage":"Toggle Translate the Main Page","browser.openOptionsPage":"Open Settings Page","browser.toggleTranslationMask":"Toggle translation mask style","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-book","browser.openEbookBuilder":"Make Dual EPUB ebook","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.donateContext":"Sponsor Benefits","browser.translateLocalSubtitleFile":"Translate Subtitle File",confirmResetConfig:"Are you sure you want to reset the settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Create right button menu",toggleBeta:"Enable Beta experimental features",betaDescription:"Enable features that are still experimental, and translation services that are in testing. Join the <1>Telegram group to learn more.",translationLineBreakSettingDescription:"The always line break feature is suitable for layouts with less content, making the layout more neat and tidy. (Use smart line breaks for long paragraphs with more content (more than {count} characters) for saving space)",tempTranslateDomainTitle:"Open the translation time temporarily",tempTranslateDomainDescription:"When a page is translated manually, turn it temporarily on as automatic translation",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",toggleTranslatePageWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide translation display",toggleTranslationMaskWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide the blur effect of the translation",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"Multi-finger touch to show/hide only translation display",addUrlDescription:"The domain name is available and wildcard is supported e.g.: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import configuration from file",export:"Export to file",toggleDebug:"Print debug logs on the console","fingers.0":"Close","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch",mouseHoldKey:"+ {key} translate this paragraph",mouseHoldKeyAuto:"Translate the paragraph directly",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate this paragraph",mouseHoverHoldKey:"Mouse over and press X key to translate paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"All settings reset successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",goAdvancedSettings:"Go to Advanced Settings Page",goAdvancedInterfaceSettings:"Go to Advanced Custom Settings Page",advanced:"Advanced",advancedDescription:"Normally no settings are needed, keep the default. More personalized settings are provided for professional users only.",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"Translate to the bottom of the page immediately after opening the page?",feedback:"Feedback",toggleTranslatePage:"Toggle Translate",translateToThePageEndImmediatelyDescription:"Enabled will translate from the top to the bottom of the page immediately after opening. Disable will translate while reading. (Not recommended to enable)","translate all areas of the page":"Whether to translate all areas of the web page",translationAreaDescription:"When enabled, all areas of the entire web page will be translated. Disabled will use the default smart recognition and translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Directly translate the number of characters in front of the page without waiting to scroll to the visible area","interface language":"Interface language","display both the original text and the translation":"Display both the original text and the translation","keyboard shortcuts":"Keyboard shortcuts",modify:"Edit",reset:"Reset",close:"Close",homepage:"Home Page",more:"More",moreOptions:"Expand more custom settings",translateTheWholePage:"Translate the whole page area",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Dual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"Main areas of intelligent translation","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly implement the interface of the Greasemonkey extension, please use another browser that <1>supports the Greasemonkey extension such as (Firefox Nightly version)",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:"Unknown Error",canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha enabled successfully",disableAlphaSuccess:"Alpha has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(to set up)",goSettings:"to set up",needActionForOptions:"(need to set)",translationEngine:"Engine Options",sourceLanguage:"Original language",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",forThisSite:"Site:",alwaysTranslateSomeLanguage:"Always translate {language}",neverTranslateSomeLanguage:"Never translate {language}",alwaysTranslateSomeSite:"Always translate {hostname}",neverTranslateSomeSite:"Never translate {hostname}",alwaysTranslateSomeSiteOrWildSite:"Always translate this site",alwaysTranslateSomePage:"Always translate this page",add:"Add",default:"Default",forThisLanguage:"For This Language:","add url":"Add URL",edit:"Edit","translate other languages into specific language":"Translate other languages into the language you set","select translation service":"Select a translation service",language:"Language","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",Error:"Error",allowCacheTranslations:"Enable local translation caching (reduce translation requests for duplicate paragraphs)","translation display":"Translation display style","select diplay style":"Please refer to the following examples",interface:"Interface Settings",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dashed underline","translationTheme.dotted":"Dotted Underline","translationTheme.dashedBorder":"Dashed Border","translationTheme.solidBorder":"Dashed Border","translationTheme.underline":"Straight underline","translationTheme.mask":"Blur effect","translationTheme.opacity":"Opacity effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weakening","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dashed underline","translationTheme.nativeDashed":"System Dash Underline","translationTheme.nativeDotted":"System Dotted Underline","translationTheme.nativeUnderline":"System Straight Line Underline","translationTheme.wavy":"Squiggle","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeeplX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"Translate page title","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped",enableUserscriptPagePopup:"Always show Popup windows on the page",enableUserscriptPagePopupDescription:"Three-finger touch to show the Popup.","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",currentUrl:"Current URL",confirm:"Save",cancel:"Cancel",delete:"Delete","languages.auto":"Detect Language",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",authFail:"Authorization Failed",syncTitle:"Please select a file operation",import_hint:"Import",upload:"Upload",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",download:"Download",importSuccess:"Upload Success",importFail:"Import Failed",deleteFail:"Delete Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",backupToCloudDescription:"Upload or restore backup files manually, up to 3 different backups",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",updatedAt:"Updated at {date}",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. You can choose to subscribe to <6>Pro membership to use the out-of-the-box DeepL and OpenAI translation.

You can also follow out <3>Twitter, <4>Telegram Channel, and <5>Email Subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free and we hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. ",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",qqCommunities:"QQ Channel",joinTelegramChannel:"Subscribe to our Telegram channel to get the latest updates",feedbackAndJoin:"Feedback",autoSync:"Auto-Time Sync",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization","edit border color":"Edit border color",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",enableSubtitle:"enableSubtitleTranslation",enableSubtitleDescription:"Enable translations for subtitle areas on sites like youtube",isTranslateTitleDescription:"When enabled, the page title will be translated",enableSearchEnhancement:"Enable Search Enhancement",enableSearchEnhancementDescription:'After enabling, the right sidebar will automatically display "Google News" search results for corresponding English keywords on supported websites (such as Google News, Google Search (partial keywords), Xueqiu, East Money, Futu, Tiger Community).',verifyService:"Verify service",verified:"Successful","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerMinute":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next minute. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"Requests exceed this limit will be queued until the next seconds.","description.prompt":"Send as a user to OpenAI conversation, where {{text}} indicates the text of the paragraph,{{from}} indicates the language of the paragraph,{{to}} indicates the target language, you can omit {{text}}, if so, it'll be sent as a separated message","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"Send the conversation to OpenAI as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the original language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"Default is\uFF1Ageneral. Only set up if there is an API console open domain translation, support fields see <1>Here ","field.scene":"Scene","description.scene":"Default is\uFF1Ageneral. Only set up if there is an API console open Machine Translation Professional, support fields see<1>Here","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please provide a URL with the specific path.",enabledExtension:"Enable extensions",clickToDisableExtension:"Click to disable extension",clickToEnableExtension:"Click to enable the extension",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter customization content",inputOptions:"Writing",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter for translating part of the input box.",inputStartingTriggerKeyDescription:"When you don't need to translate the entire input box, the delimiter allows you to only translate the portion from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means only translating the portion from {startingKey}ja to the end of the input box.",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting is no prefix required, the partial text translation function of the input box cannot be used temporarily.",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Start the translation by quickly pressing 3 times {trailingKey}.",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time (milliseconds) for the input to end the combo trigger",spaceKey:"",noneKey:"Translate the entire text box without prefixes",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement in the following URL",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",clickToSeeQuickDemo:"Click to expand the 30s tutorial video",inputHelperInfo:`Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001". +`,PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",OPTIONS_URL:"https://dash.immersivetranslate.com/",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",MOCK:"0",DEBUG:"0",INSTALL_FROM:"firefox_zip"}});var im=jf((po,Jr)=>{p();(function(){var e;function t(d){var b,T,h="",C=-1,v;if(d&&d.length)for(v=d.length;(C+=1)>>6&31,128|b&63):b<=65535?h+=String.fromCharCode(224|b>>>12&15,128|b>>>6&63,128|b&63):b<=2097151&&(h+=String.fromCharCode(240|b>>>18&7,128|b>>>12&63,128|b>>>6&63,128|b&63));return h}function n(d){var b,T,h,C,v,O=[],B;if(b=T=h=C=v=0,d&&d.length)for(B=d.length,d+="";b191&&h<224?(C=d.charCodeAt(b+1),O[T]=String.fromCharCode((h&31)<<6|C&63),b+=2):(C=d.charCodeAt(b+1),v=d.charCodeAt(b+2),O[T]=String.fromCharCode((h&15)<<12|(C&63)<<6|v&63),b+=3);return O.join("")}function a(d,b){var T=(d&65535)+(b&65535),h=(d>>16)+(b>>16)+(T>>16);return h<<16|T&65535}function r(d,b){return d<>>32-b}function u(d,b){for(var T=b?"0123456789ABCDEF":"0123456789abcdef",h="",C,v=0,O=d.length;v>>4&15)+T.charAt(C&15);return h}function o(d){var b,T=d.length,h="";for(b=0;b>>8&255);return h}function i(d){var b,T=d.length,h="";for(b=0;b>>8&255,d.charCodeAt(b)&255);return h}function s(d){var b,T=d.length*32,h="";for(b=0;b>5]>>>24-b%32&255);return h}function c(d){var b,T=d.length*32,h="";for(b=0;b>5]>>>b%32&255);return h}function l(d){var b,T=d.length*8,h=Array(d.length>>2),C=h.length;for(b=0;b>5]|=(d.charCodeAt(b/8)&255)<>2),C=h.length;for(b=0;b>5]|=(d.charCodeAt(b/8)&255)<<24-b%32;return h}function g(d,b){var T=b.length,h=Array(),C,v,O,B,x,L,M,w;for(L=Array(Math.ceil(d.length/2)),B=L.length,C=0;C0;){for(x=Array(),O=0,C=0;C0||v>0)&&(x[x.length]=v);h[h.length]=O,L=x}for(M="",C=h.length-1;C>=0;C--)M+=b.charAt(h[C]);for(w=Math.ceil(d.length*8/(Math.log(b.length)/Math.log(2))),C=M.length;Cd.length*8?h+=b:h+=T.charAt(B>>>6*(3-O)&63);return h}e={VERSION:"1.0.6",Base64:function(){var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b="=",T=!1,h=!0;this.encode=function(C){var v,O,B,x="";for(b=b||"=",C=h?t(C):C,len=C.length,v=0;vlen*8?x+=b:x+=d.charAt(B>>>6*(3-O)&63);return x},this.decode=function(C){var v,O,B,x,L,M,w,E,I,F,A="",_=[];if(!C)return C;v=F=0,C=C.replace(new RegExp("\\"+b,"gi"),"");do L=d.indexOf(C.charAt(v++)),M=d.indexOf(C.charAt(v++)),w=d.indexOf(C.charAt(v++)),E=d.indexOf(C.charAt(v++)),I=L<<18|M<<12|w<<6|E,O=I>>16&255,B=I>>8&255,x=I&255,F+=1,w===64?_[F]=String.fromCharCode(O):E===64?_[F]=String.fromCharCode(O,B):_[F]=String.fromCharCode(O,B,x);while(v>>8^T;return(b^-1)>>>0},MD5:function(d){var b=d&&typeof d.uppercase=="boolean"?d.uppercase:!1,T=d&&typeof d.pad=="string"?d.pad:"=",h=d&&typeof d.utf8=="boolean"?d.utf8:!0;this.hex=function(E){return u(C(E,h),b)},this.b64=function(E){return f(C(E),T)},this.any=function(E,I){return g(C(E,h),I)},this.raw=function(E){return C(E,h)},this.hex_hmac=function(E,I){return u(v(E,I),b)},this.b64_hmac=function(E,I){return f(v(E,I),T)},this.any_hmac=function(E,I,F){return g(v(E,I),F)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(E){return typeof E=="boolean"&&(b=E),this},this.setPad=function(E){return T=E||T,this},this.setUTF8=function(E){return typeof E=="boolean"&&(h=E),this};function C(E){return E=h?t(E):E,c(O(l(E),E.length*8))}function v(E,I){var F,A,_,j,N;for(E=h?t(E):E,I=h?t(I):I,F=l(E),F.length>16&&(F=O(F,E.length*8)),A=Array(16),_=Array(16),N=0;N<16;N+=1)A[N]=F[N]^909522486,_[N]=F[N]^1549556828;return j=O(A.concat(l(I)),512+I.length*8),c(O(_.concat(j),512+128))}function O(E,I){var F,A,_,j,N,D=1732584193,y=-271733879,S=-1732584194,R=271733878;for(E[I>>5]|=128<>>9<<4)+14]=I,F=0;F16&&(w=O(w,L.length*8)),E=Array(16),I=Array(16),F=0;F<16;F+=1)E[F]=w[F]^909522486,I[F]=w[F]^1549556828;return A=O(E.concat(m(M)),512+M.length*8),s(O(I.concat(A),512+160))}function O(L,M){var w,E,I,F,A,_,j,N,D=Array(80),y=1732584193,S=-271733879,R=-1732584194,$=271733878,z=-1009589776;for(L[M>>5]|=128<<24-M%32,L[(M+64>>9<<4)+15]=M,w=0;w16&&(z=D(z,y.length*8));$<16;$+=1)Y[$]=z[$]^909522486,q[$]=z[$]^1549556828;return R=D(Y.concat(m(S)),512+S.length*8),s(D(q.concat(R),512+256))}function B(y,S){return y>>>S|y<<32-S}function x(y,S){return y>>>S}function L(y,S,R){return y&S^~y&R}function M(y,S,R){return y&S^y&R^S&R}function w(y){return B(y,2)^B(y,13)^B(y,22)}function E(y){return B(y,6)^B(y,11)^B(y,25)}function I(y){return B(y,7)^B(y,18)^x(y,3)}function F(y){return B(y,17)^B(y,19)^x(y,10)}function A(y){return B(y,28)^B(y,34)^B(y,39)}function _(y){return B(y,14)^B(y,18)^B(y,41)}function j(y){return B(y,1)^B(y,8)^x(y,7)}function N(y){return B(y,19)^B(y,61)^x(y,6)}C=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function D(y,S){var R=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],$=new Array(64),z,Y,q,ae,Q,G,pe,he,re,K,oe,me;for(y[S>>5]|=128<<24-S%32,y[(S+64>>9<<4)+15]=S,re=0;re32&&(y=B(y,_.length*8));D<32;D+=1)S[D]=y[D]^909522486,R[D]=y[D]^1549556828;return N=B(S.concat(m(j)),1024+j.length*8),s(B(R.concat(N),1024+512))}function B(_,j){var N,D,y,S=new Array(80),R=new Array(16),$=[new x(1779033703,-205731576),new x(-1150833019,-2067093701),new x(1013904242,-23791573),new x(-1521486534,1595750129),new x(1359893119,-1377402159),new x(-1694144372,725511199),new x(528734635,-79577749),new x(1541459225,327033209)],z=new x(0,0),Y=new x(0,0),q=new x(0,0),ae=new x(0,0),Q=new x(0,0),G=new x(0,0),pe=new x(0,0),he=new x(0,0),re=new x(0,0),K=new x(0,0),oe=new x(0,0),me=new x(0,0),ce=new x(0,0),ye=new x(0,0),Se=new x(0,0),xe=new x(0,0),Z=new x(0,0);for(C===void 0&&(C=[new x(1116352408,-685199838),new x(1899447441,602891725),new x(-1245643825,-330482897),new x(-373957723,-2121671748),new x(961987163,-213338824),new x(1508970993,-1241133031),new x(-1841331548,-1357295717),new x(-1424204075,-630357736),new x(-670586216,-1560083902),new x(310598401,1164996542),new x(607225278,1323610764),new x(1426881987,-704662302),new x(1925078388,-226784913),new x(-2132889090,991336113),new x(-1680079193,633803317),new x(-1046744716,-815192428),new x(-459576895,-1628353838),new x(-272742522,944711139),new x(264347078,-1953704523),new x(604807628,2007800933),new x(770255983,1495990901),new x(1249150122,1856431235),new x(1555081692,-1119749164),new x(1996064986,-2096016459),new x(-1740746414,-295247957),new x(-1473132947,766784016),new x(-1341970488,-1728372417),new x(-1084653625,-1091629340),new x(-958395405,1034457026),new x(-710438585,-1828018395),new x(113926993,-536640913),new x(338241895,168717936),new x(666307205,1188179964),new x(773529912,1546045734),new x(1294757372,1522805485),new x(1396182291,-1651133473),new x(1695183700,-1951439906),new x(1986661051,1014477480),new x(-2117940946,1206759142),new x(-1838011259,344077627),new x(-1564481375,1290863460),new x(-1474664885,-1136513023),new x(-1035236496,-789014639),new x(-949202525,106217008),new x(-778901479,-688958952),new x(-694614492,1432725776),new x(-200395387,1467031594),new x(275423344,851169720),new x(430227734,-1194143544),new x(506948616,1363258195),new x(659060556,-544281703),new x(883997877,-509917016),new x(958139571,-976659869),new x(1322822218,-482243893),new x(1537002063,2003034995),new x(1747873779,-692930397),new x(1955562222,1575990012),new x(2024104815,1125592928),new x(-2067236844,-1578062990),new x(-1933114872,442776044),new x(-1866530822,593698344),new x(-1538233109,-561857047),new x(-1090935817,-1295615723),new x(-965641998,-479046869),new x(-903397682,-366583396),new x(-779700025,566280711),new x(-354779690,-840897762),new x(-176337025,-294727304),new x(116418474,1914138554),new x(174292421,-1563912026),new x(289380356,-1090974290),new x(460393269,320620315),new x(685471733,587496836),new x(852142971,1086792851),new x(1017036298,365543100),new x(1126000580,-1676669620),new x(1288033470,-885112138),new x(1501505948,-60457430),new x(1607167915,987167468),new x(1816402316,1246189591)]),D=0;D<80;D+=1)S[D]=new x(0,0);for(_[j>>5]|=128<<24-(j&31),_[(j+128>>10<<5)+31]=j,y=_.length,D=0;D>>N|j.h<<32-N,_.h=j.h>>>N|j.l<<32-N}function w(_,j,N){_.l=j.h>>>N|j.l<<32-N,_.h=j.l>>>N|j.h<<32-N}function E(_,j,N){_.l=j.l>>>N|j.h<<32-N,_.h=j.h>>>N}function I(_,j,N){var D=(j.l&65535)+(N.l&65535),y=(j.l>>>16)+(N.l>>>16)+(D>>>16),S=(j.h&65535)+(N.h&65535)+(y>>>16),R=(j.h>>>16)+(N.h>>>16)+(S>>>16);_.l=D&65535|y<<16,_.h=S&65535|R<<16}function F(_,j,N,D,y){var S=(j.l&65535)+(N.l&65535)+(D.l&65535)+(y.l&65535),R=(j.l>>>16)+(N.l>>>16)+(D.l>>>16)+(y.l>>>16)+(S>>>16),$=(j.h&65535)+(N.h&65535)+(D.h&65535)+(y.h&65535)+(R>>>16),z=(j.h>>>16)+(N.h>>>16)+(D.h>>>16)+(y.h>>>16)+($>>>16);_.l=S&65535|R<<16,_.h=$&65535|z<<16}function A(_,j,N,D,y,S){var R=(j.l&65535)+(N.l&65535)+(D.l&65535)+(y.l&65535)+(S.l&65535),$=(j.l>>>16)+(N.l>>>16)+(D.l>>>16)+(y.l>>>16)+(S.l>>>16)+(R>>>16),z=(j.h&65535)+(N.h&65535)+(D.h&65535)+(y.h&65535)+(S.h&65535)+($>>>16),Y=(j.h>>>16)+(N.h>>>16)+(D.h>>>16)+(y.h>>>16)+(S.h>>>16)+(z>>>16);_.l=R&65535|$<<16,_.h=z&65535|Y<<16}},RMD160:function(d){var b=d&&typeof d.uppercase=="boolean"?d.uppercase:!1,T=d&&typeof d.pad=="string"?d.pa:"=",h=d&&typeof d.utf8=="boolean"?d.utf8:!0,C=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],v=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],O=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],B=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(A){return u(x(A,h))},this.b64=function(A){return f(x(A,h),T)},this.any=function(A,_){return g(x(A,h),_)},this.raw=function(A){return x(A,h)},this.hex_hmac=function(A,_){return u(L(A,_))},this.b64_hmac=function(A,_){return f(L(A,_),T)},this.any_hmac=function(A,_,j){return g(L(A,_),j)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(A){return typeof A=="boolean"&&(b=A),this},this.setPad=function(A){return typeof A<"u"&&(T=A),this},this.setUTF8=function(A){return typeof A=="boolean"&&(h=A),this};function x(A){return A=h?t(A):A,M(w(l(A),A.length*8))}function L(A,_){A=h?t(A):A,_=h?t(_):_;var j,N,D=l(A),y=Array(16),S=Array(16);for(D.length>16&&(D=w(D,A.length*8)),j=0;j<16;j+=1)y[j]=D[j]^909522486,S[j]=D[j]^1549556828;return N=w(y.concat(l(_)),512+_.length*8),M(w(S.concat(N),512+160))}function M(A){var _,j="",N=A.length*32;for(_=0;_>5]>>>_%32&255);return j}function w(A,_){var j,N,D,y,S=1732584193,R=4023233417,$=2562383102,z=271733878,Y=3285377520,q,ae,Q,G,pe,he,re,K,oe,me;for(A[_>>5]|=128<<_%32,A[(_+64>>>9<<4)+14]=_,y=A.length,D=0;D"u"&&typeof Deno<"u"?Deno.env.toObject():P}var Ee=Qe();function fe(){return Ee.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function Pn(){return Ee.PROD==="1"}function Mn(){return Ee.PROD_API==="1"}function mc(){return Ee.HAS_CSP_ERROR=="1"}function Xt(){if(Ee.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function xu(){return typeof Deno<"u"}var k5=Qe().PROD==="1",Na=Qe().PROD!=="1";function Eu(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}var gc={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",curentPlan:"\u5F53\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52A8\u7EED\u671F",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",sponsorLabel:"$1 \u8D77\u8D5E\u52A9\u5F00\u53D1\u8005",help:"\u5E2E\u52A9",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D\uFF0C\u518D\u70B9\u51FB\u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D\u5373\u53EF\u8BBE\u7F6E",browserShortcutsNoteForChrome:"\u7C7BChrome \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762\uFF0C\u5728`\u7BA1\u7406\u5FEB\u6377\u952E`\u9762\u677F(`chrome://extensions/shortcuts`)\u8BBE\u7F6E\uFF0C\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8DF3\u8F6C\u5230\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E\u683C\u5F0F\u4E3A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1: \u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1 & PDF\u6587\u6863\u7FFB\u8BD1","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7F51\u9875\u53CC\u8BED\u7FFB\u8BD1\u6269\u5C55\uFF0C\u540C\u65F6\u652F\u6301 PDF \u7FFB\u8BD1\uFF0C\u53CC\u8BED Epub \u7535\u5B50\u4E66\u5236\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u817E\u8BAF\u7FFB\u8BD1\u7B49\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\uFF0C\u514D\u8D39\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8BD1\u5E76\u9690\u85CF\u539F\u6587/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.toggleTranslationMask":"\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.donateContext":"\u4E86\u89E3\u8D5E\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5219\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875(\u4EC5\u8BD1\u6587)/\u663E\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7","fingers.0":"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478",mouseHoldKey:"+ {key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoverHoldKey:"\u9F20\u6807\u60AC\u505C\u540C\u65F6\u6309\u4E0B\u5FEB\u6377\u952E\u7FFB\u8BD1\u6BB5\u843D","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u6587\u6863",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",goAdvancedSettings:"\u53BB\u8FDB\u9636\u8BBE\u7F6E\u9875",goAdvancedInterfaceSettings:"\u53BB\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u8BBE\u7F6E\u9875\u9762",advanced:"\u8FDB\u9636\u8BBE\u7F6E",advancedDescription:"\u4E00\u822C\u65E0\u9700\u8BBE\u7F6E\uFF0C\u4FDD\u6301\u9ED8\u8BA4\u5373\u53EF\u3002\u4EC5\u5BF9\u4E8E\u66F4\u4E13\u4E1A\u7684\u7528\u6237\uFF0C\u63D0\u4F9B\u66F4\u4E2A\u6027\u5316\u7684\u8BBE\u7F6E\u9879\u3002",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00","display both the original text and the translation":"\u540C\u65F6\u663E\u793A\u539F\u6587\u548C\u8BD1\u6587","keyboard shortcuts":"\u952E\u76D8\u5FEB\u6377\u952E",modify:"\u4FEE\u6539\u5FEB\u6377\u952E",reset:"\u91CD\u7F6E",close:"\u5173\u95ED",homepage:"\u4E3B\u9875",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",changeToOnlyTranslationMode:"\u5207\u6362\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u5207\u6362\u4E3A\u53CC\u8BED\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",unknownError:"\u672A\u77E5\u9519\u8BEF",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",needActionForOptions:"(\u9700\u8BBE\u7F6E)",translationEngine:"\u5F15\u64CE\u9009\u9879",sourceLanguage:"\u539F\u6587\u8BED\u8A00",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",forThisSite:"\u5F53\u524D\u7F51\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1 {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8BD1 {language}",alwaysTranslateSomeSite:"\u603B\u662F\u7FFB\u8BD1 {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8BD1 {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u6DFB\u52A0",default:"\u9ED8\u8BA4",forThisLanguage:"\u9488\u5BF9\u8BE5\u8BED\u8A00\uFF1A","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91","translate other languages into specific language":"\u5C06\u5176\u4ED6\u8BED\u8A00\u7FFB\u8BD1\u4E3A\u4F60\u8BBE\u7F6E\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1",language:"\u8BED\u8A00","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",Error:"\u9519\u8BEF",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",interface:"\u754C\u9762\u8BBE\u7F6E",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8BD1\u9875\u9762\u6807\u9898","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1",enableUserscriptPagePopup:"\u5728\u9875\u9762\u4E0A\u663E\u793A\u60AC\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528\u5FEB\u6377\u952E/{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8BD1\u6587\u6837\u5F0F",currentUrl:"\u5F53\u524D\u7F51\u5740",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664","languages.auto":"\u81EA\u52A8\u68C0\u6D4B",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",upload:"\u4E0A\u4F20",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",download:"\u4E0B\u8F7D",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",deleteFail:"\u5220\u9664\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",backupToCloudDescription:"\u624B\u52A8\u4E0A\u4F20\u6216\u6062\u590D\u5907\u4EFD\u6587\u4EF6\uFF0C\u6700\u591A\u5141\u8BB83\u4E2A\u4E0D\u540C\u7684\u5907\u4EFD",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",updatedAt:"\u66F4\u65B0\u4E8E {date}",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u9891\u9053",joinTelegramChannel:"\u5173\u6CE8 Telegram \u9891\u9053\u83B7\u53D6\u6700\u65B0\u66F4\u65B0",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",autoSync:"\u81EA\u52A8\u5B9A\u65F6\u540C\u6B65",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863","edit border color":"\u4FEE\u6539\u8FB9\u6846\u989C\u8272",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",enableSubtitle:"\u5F00\u542F\u5B57\u5E55\u7FFB\u8BD1",enableSubtitleDescription:"\u9488\u5BF9 youtube \u7B49\u7F51\u7AD9\u7684\u5B57\u5E55\u533A\u57DF\u5F00\u542F\u7FFB\u8BD1",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",enableSearchEnhancement:"\u542F\u7528\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A",enableSearchEnhancementDescription:"\u5F00\u542F\u540E\uFF0C\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\u793E\u533A\uFF09\u53F3\u8FB9\u680F\u81EA\u52A8\u663E\u793A\u5BF9\u5E94\u82F1\u6587\u5173\u952E\u8BCD\u7684\u201C\u8C37\u6B4C\u65B0\u95FB\u201D\u641C\u7D22\u7ED3\u679C\u3002",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerMinute":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u5206\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u8350\uFF09, \u5C06\u4F1A\u5728\u5355\u72EC\u4F5C\u4E3A\u4E00\u6BB5\u53D1\u9001\u7ED9 OpenAI","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740",enabledExtension:"\u542F\u7528\u6269\u5C55",clickToDisableExtension:"\u70B9\u51FB\u7981\u7528\u6269\u5C55",clickToEnableExtension:"\u70B9\u51FB\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",modifyMouseHoverKey:"\u4FEE\u6539\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u8BBE\u7F6E",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",disableTint:"* \u4F60\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u542F\u7528\u3002",searchEnhancementNotes:"\u6211\u4EEC\u53D1\u73B0\uFF0C\u4E2D\u6587\u5173\u952E\u8BCD\u548C\u82F1\u6587\u5173\u952E\u8BCD\u7684\u65B0\u95FB\u7ED3\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u542F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u529F\u80FD\u540E\uFF0C\u6211\u4EEC\u4F1A\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\u7F51\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52A8\u7528\u82F1\u6587\u4E3A\u4F60\u641C\u7D22\u540C\u6837\u7684\u5173\u952E\u8BCD\u5E76\u5C55\u793A\u5728\u53F3\u4FA7\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8BE5\u529F\u80FD\u7684\u8BDD\uFF0C\u53EF\u4EE5\u9009\u62E9\u7981\u7528\u5B83\u3002",option:"\u8BBE\u7F6E",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",needLoginAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u81EA\u5B9A\u4E49)",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",onetime_7day:"7 \u5929\u4F53\u9A8C\u5305",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradePlan:"\u70B9\u6B64\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL \u548C OpenAI \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8BD1",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u8BBE\u7F6E\u5176\u4ED6\u5FEB\u6377\u952E\u6765\u89E6\u53D1\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1"};var pc={nologin:"\u672A\u767B\u9304",login:"\u767B\u9304",manageAccount:"\u7BA1\u7406\u8CEC\u6236",logout:"\u9000\u51FA",curentPlan:"\u7576\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u671F",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u64CA\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u8AAA\u660E",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u9644\u52A0\u5143\u4EF6\u7BA1\u7406\u9801\u9762 \u300Cabout:addons\u300D\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u5716\u793A\u300D\uFF0C\u518D\u9EDE\u9078\u300C\u7BA1\u7406\u64F4\u5145\u5957\u4EF6\u5FEB\u901F\u9375\u300D\u5373\u53EF\u8A2D\u5B9A",browserShortcutsNoteForChrome:"Chromium \u6838\u5FC3\u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u64F4\u5145\u529F\u80FD\u7BA1\u7406\u9801\u9762\uFF0C\u5728\u300C\u9375\u76E4\u5FEB\u901F\u9375\u300D\u9801\u9762(chrome://extensions/shortcuts)\u8A2D\u5B9A\uFF0C\u9EDE\u9078\u4E0B\u65B9\u6309\u9215\u524D\u5F80\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u901F\u9375\u683C\u5F0F\u70BA\uFF1A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F: \u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F & PDF\u6587\u6A94\u7FFB\u8B6F","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7DB2\u9801\u96D9\u8A9E\u7FFB\u8B6F\u64F4\u5C55\uFF0C\u540C\u6642\u652F\u6301 PDF \u7FFB\u8B6F\uFF0C\u96D9\u8A9E Epub \u96FB\u5B50\u66F8\u88FD\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u9A30\u8A0A\u7FFB\u8B6F\u7B49\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF0C\u514D\u8CBB\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8B6F\u4E26\u96B1\u85CF\u539F\u6587/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.toggleTranslationMask":"\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.donateContext":"\u4E86\u89E3\u8D0A\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u5247\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u6642\u89F8\u78B0\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801(\u50C5\u8B6F\u6587)/\u986F\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304","fingers.0":"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478",mouseHoldKey:"+ {key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u6377\u9375(\u6253\u958B\u8A2D\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoverHoldKey:"\u9F20\u6A19\u6ED1\u904E\u540C\u6642\u6309\u4E0B X \u9375\u7FFB\u8B6F\u6BB5\u843D","mouse-translate":"\u9F20\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",goAdvancedSettings:"\u524D\u5F80\u9032\u968E\u8A2D\u5B9A\u9801\u9762",goAdvancedInterfaceSettings:"\u524D\u5F80\u81EA\u8A02\u8A2D\u5B9A\u9801\u9762",advanced:"\u9032\u968E\u8A2D\u5B9A",advancedDescription:"\u6B63\u5E38\u60C5\u6CC1\u7121\u9700\u8A2D\u5B9A\uFF0C\u4FDD\u6301\u9810\u8A2D\u5373\u53EF\u3002\u50C5\u91DD\u5C0D\u66F4\u5C08\u696D\u7684\u4F7F\u7528\u8005\uFF0C\u63D0\u4F9B\u66F4\u500B\u4EBA\u5316\u7684\u8A2D\u5B9A\u9805\u76EE\u3002",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00","display both the original text and the translation":"\u540C\u6642\u986F\u793A\u539F\u6587\u548C\u8B6F\u6587","keyboard shortcuts":"\u9375\u76E4\u5FEB\u901F\u9375",modify:"\u8B8A\u66F4\u5FEB\u901F\u9375",reset:"\u91CD\u8A2D",close:"\u95DC\u9589",homepage:"\u9996\u9801",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",changeToOnlyTranslationMode:"\u5207\u63DB\u70BA\u50C5\u986F\u793A\u8B6F\u6587",changeToDualTranslationMode:"\u5207\u63DB\u70BA\u96D9\u8A9E\u7FFB\u8B6F",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:"\u672A\u77E5\u7684\u932F\u8AA4",canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u9078\u9805",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",needActionForOptions:"(\u9700\u8A2D\u5B9A)",translationEngine:"\u5F15\u64CE\u9078\u9805",sourceLanguage:"\u539F\u6587\u8A9E\u8A00",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",forThisSite:"\u7576\u524D\u7DB2\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8B6F {language}",alwaysTranslateSomeSite:"\u7E3D\u662F\u7FFB\u8B6F {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8B6F {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u65B0\u589E",default:"\u9810\u8A2D",forThisLanguage:"\u91DD\u5C0D\u8A72\u8A9E\u8A00\uFF1A","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F","translate other languages into specific language":"\u5C07\u5176\u5B83\u8A9E\u8A00\u7FFB\u8B6F\u70BA\u4F60\u8A2D\u5B9A\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9",language:"\u8A9E\u8A00","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",Error:"\u932F\u8AA4",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",interface:"\u4ECB\u9762\u8A2D\u5B9A",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65",syncToAccount:"\u540C\u6B65\u5230\u8CEC\u6236",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u8CEC\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u8A2D\u5099\u4E4B\u9593\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u8CEC\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u8CEC\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8B6F","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9E\u99AC\u905C\u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8B6F\u9801\u9762\u6A19\u984C","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F",enableUserscriptPagePopup:"\u5728\u9801\u9762\u4E0A\u986F\u793A\u61F8\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528\u5FEB\u901F\u9375/{touch}\u518D\u6B21\u986F\u793A\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5EFA\u8B70\u5C07\u672C\u8A2D\u5B9A\u9801\u9762\u52A0\u5165\u81F3\u6211\u7684\u6700\u611B","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8B6F\u6587\u6A23\u5F0F",currentUrl:"\u76EE\u524D\u7DB2\u5740",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6E96\u3002",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",upload:"\u4E0A\u50B3",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",download:"\u4E0B\u8F09",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",deleteFail:"\u522A\u9664\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",backupToCloudDescription:"\u624B\u52D5\u4E0A\u50B3\u6216\u9084\u539F\u5099\u4EFD\u6A94\u6848\uFF0C\u6700\u591A\u5141\u8A31 3 \u500B\u4E0D\u540C\u7684\u5099\u4EFD",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",updatedAt:"\u66F4\u65B0\u65BC {date}",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u4EEC\u7684<3>Twitter\uFF0C<4>Telegram \u983B\u9053\u4EE5\u53CA\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u90F5\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u983B\u9053",joinTelegramChannel:"\u95DC\u6CE8 Telegram \u983B\u9053\u77AD\u89E3\u66F4\u65B0\u8CC7\u8A0A",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",autoSync:"\u81EA\u52D5\u5B9A\u6642\u540C\u6B65",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6","edit border color":"\u8B8A\u66F4\u908A\u6846\u8272\u5F69",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",enableSubtitle:"\u958B\u555F\u5B57\u5E55\u7FFB\u8B6F",enableSubtitleDescription:"\u91DD\u5C0D youtube \u7B49\u7DB2\u7AD9\u7684\u5B57\u5E55\u5340\u57DF\u958B\u555F\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",enableSearchEnhancement:"\u958B\u555F\u641C\u7D22\u589E\u5F37",enableSearchEnhancementDescription:"\u4E2D\u6587\u641C\u7D22\u8C37\u6B4C\u6703\u5728\u53F3\u908A\u51FA\u73FE\u82F1\u6587\u7248\u8C37\u6B4C\u65B0\u805E",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerMinute":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u5206\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u4EFD\u50B3\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u85A6\uFF09, \u5C07\u6703\u5728\u55AE\u7368\u4F5C\u70BA\u4E00\u6BB5\u767C\u9001\u7D66 OpenAI","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u50B3\u9001\u767C\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",clickToDisableExtension:"\u9EDE\u9078\u505C\u7528\u5957\u4EF6",clickToEnableExtension:"\u9EDE\u9078\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u9F20\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u7F6E\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u5B57\u7B26\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8B58\u5225\u70BA\u89F8\u767C\u5B57\u7B26\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u7981\u7528\u78BA\u8A8D",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",disableTint:"* \u60A8\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u555F\u7528\u3002",searchEnhancementNotes:"\u6211\u5011\u767C\u73FE\uFF0C\u4E2D\u6587\u95DC\u9375\u8A5E\u548C\u82F1\u6587\u95DC\u9375\u8A5E\u7684\u65B0\u805E\u7D50\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u555F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u4FE1\u606F\u589E\u5F37\u529F\u80FD\u5F8C\uFF0C\u6211\u5011\u6703\u5728\u652F\u6301\u7684\u7DB2\u7AD9\uFF08\u8C37\u6B4C\u65B0\u805E\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u95DC\u9375\u8A5E\uFF09\uFF0C\u96EA\u7403\uFF0C\u6771\u65B9\u8CA1\u5BCC\u7DB2\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52D5\u7528\u82F1\u6587\u70BA\u4F60\u641C\u7D22\u540C\u6A23\u7684\u95DC\u9375\u8A5E\u4E26\u5C55\u793A\u5728\u53F3\u5074\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8A72\u529F\u80FD\u7684\u8A71\uFF0C\u53EF\u4EE5\u9078\u64C7\u7981\u7528\u5B83\u3002",option:"\u9078\u9805",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL \u548C OpenAI \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8B6F",currentAccount:"\u7576\u524D\u8CEC\u6236"};var fc={nologin:"Not logged in",login:"Login",manageAccount:"Manage Account",logout:"Logout",curentPlan:"Current Plan",endAt:"Expires",endAuto:"Auto Renew",lineBreakMaxTextCount:"Maximum number of characters allowed per sentence after line break","translate-pdf":"Click to translate PDF","noSupportTranslate-pdf":"The script is not supported, please use a plugin.","translate-firefox-local-pdf":"Click to upload PDF",enableLineBreak:"Whether to turn on automatic line wrapping for long paragraphs",sponsorLabel:"Sponsoring developers from $1 (monthly or one-time)",help:"Help",browserShortcutsNoteForFirefox:`To modify the shortcut key in Firefox browser, you need to open the extension management page 'about: addons', then click "Settings", and then click "Management shortcut key" to set it`,browserShortcutsNoteForChrome:"To modify the shortcut key in Chrome browser, you need to open the extension management page` chrome://extensions/shortcuts `) Settings, click the button below to jump to the shortcut key management page.",browserShortcutsSucks:"Please enter the shortcut key manually in the format:",enableLineBreakDescription:"After opening, a line break will be inserted at the end of each sentence in a long paragraph for easy reading","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate: Web Page&PDF Translation","browser.brandDescription":"Bilingual web page translation, also supports PDF translation, bilingual Epub eBook translation, free to use.","browser.toggleTranslatePage":"Toggle Translate Page","browser.toggleTranslateTheWholePage":"Toggle Translate the Whole Page","browser.toggleOnlyTransation":"Toggle Translate and Hide Original Text","browser.toggleTranslateToThePageEndImmediately":"Toggle Translate to the Bottom of the Page Immediately","browser.toggleTranslateTheMainPage":"Toggle Translate the Main Page","browser.openOptionsPage":"Open Settings Page","browser.toggleTranslationMask":"Toggle translation mask style","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-book","browser.openEbookBuilder":"Make Dual EPUB ebook","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.donateContext":"Sponsor Benefits","browser.translateLocalSubtitleFile":"Translate Subtitle File",confirmResetConfig:"Are you sure you want to reset the settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Create right button menu",toggleBeta:"Enable Beta experimental features",betaDescription:"Enable features that are still experimental, and translation services that are in testing. Join the <1>Telegram group to learn more.",translationLineBreakSettingDescription:"The always line break feature is suitable for layouts with less content, making the layout more neat and tidy. (Use smart line breaks for long paragraphs with more content (more than {count} characters) for saving space)",tempTranslateDomainTitle:"Open the translation time temporarily",tempTranslateDomainDescription:"When a page is translated manually, turn it temporarily on as automatic translation",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",toggleTranslatePageWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide translation display",toggleTranslationMaskWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide the blur effect of the translation",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"Multi-finger touch to show/hide only translation display",addUrlDescription:"The domain name is available and wildcard is supported e.g.: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import configuration from file",export:"Export to file",toggleDebug:"Print debug logs on the console","fingers.0":"Close","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch",mouseHoldKey:"+ {key} translate this paragraph",mouseHoldKeyAuto:"Translate the paragraph directly",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate this paragraph",mouseHoverHoldKey:"Mouse over and press X key to translate paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"All settings reset successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",goAdvancedSettings:"Go to Advanced Settings Page",goAdvancedInterfaceSettings:"Go to Advanced Custom Settings Page",advanced:"Advanced",advancedDescription:"Normally no settings are needed, keep the default. More personalized settings are provided for professional users only.",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"Translate to the bottom of the page immediately after opening the page?",feedback:"Feedback",toggleTranslatePage:"Toggle Translate",translateToThePageEndImmediatelyDescription:"Enabled will translate from the top to the bottom of the page immediately after opening. Disable will translate while reading. (Not recommended to enable)","translate all areas of the page":"Whether to translate all areas of the web page",translationAreaDescription:"When enabled, all areas of the entire web page will be translated. Disabled will use the default smart recognition and translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Directly translate the number of characters in front of the page without waiting to scroll to the visible area","interface language":"Interface language","display both the original text and the translation":"Display both the original text and the translation","keyboard shortcuts":"Keyboard shortcuts",modify:"Edit",reset:"Reset",close:"Close",homepage:"Home Page",more:"More",moreOptions:"Expand more custom settings",translateTheWholePage:"Translate the whole page area",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Dual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"Main areas of intelligent translation","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly implement the interface of the Greasemonkey extension, please use another browser that <1>supports the Greasemonkey extension such as (Firefox Nightly version)",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:"Unknown Error",canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha enabled successfully",disableAlphaSuccess:"Alpha has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(to set up)",goSettings:"to set up",needActionForOptions:"(need to set)",translationEngine:"Engine Options",sourceLanguage:"Original language",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",forThisSite:"Site:",alwaysTranslateSomeLanguage:"Always translate {language}",neverTranslateSomeLanguage:"Never translate {language}",alwaysTranslateSomeSite:"Always translate {hostname}",neverTranslateSomeSite:"Never translate {hostname}",alwaysTranslateSomeSiteOrWildSite:"Always translate this site",alwaysTranslateSomePage:"Always translate this page",add:"Add",default:"Default",forThisLanguage:"For This Language:","add url":"Add URL",edit:"Edit","translate other languages into specific language":"Translate other languages into the language you set","select translation service":"Select a translation service",language:"Language","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",Error:"Error",allowCacheTranslations:"Enable local translation caching (reduce translation requests for duplicate paragraphs)","translation display":"Translation display style","select diplay style":"Please refer to the following examples",interface:"Interface Settings",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dashed underline","translationTheme.dotted":"Dotted Underline","translationTheme.dashedBorder":"Dashed Border","translationTheme.solidBorder":"Dashed Border","translationTheme.underline":"Straight underline","translationTheme.mask":"Blur effect","translationTheme.opacity":"Opacity effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weakening","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dashed underline","translationTheme.nativeDashed":"System Dash Underline","translationTheme.nativeDotted":"System Dotted Underline","translationTheme.nativeUnderline":"System Straight Line Underline","translationTheme.wavy":"Squiggle","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeeplX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"Translate page title","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped",enableUserscriptPagePopup:"Always show Popup windows on the page",enableUserscriptPagePopupDescription:"Three-finger touch to show the Popup.","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",currentUrl:"Current URL",confirm:"Save",cancel:"Cancel",delete:"Delete","languages.auto":"Detect Language",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",authFail:"Authorization Failed",syncTitle:"Please select a file operation",import_hint:"Import",upload:"Upload",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",download:"Download",importSuccess:"Upload Success",importFail:"Import Failed",deleteFail:"Delete Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",backupToCloudDescription:"Upload or restore backup files manually, up to 3 different backups",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",updatedAt:"Updated at {date}",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. You can choose to subscribe to <6>Pro membership to use the out-of-the-box DeepL and OpenAI translation.

You can also follow out <3>Twitter, <4>Telegram Channel, and <5>Email Subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free and we hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. ",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",qqCommunities:"QQ Channel",joinTelegramChannel:"Subscribe to our Telegram channel to get the latest updates",feedbackAndJoin:"Feedback",autoSync:"Auto-Time Sync",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization","edit border color":"Edit border color",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",enableSubtitle:"enableSubtitleTranslation",enableSubtitleDescription:"Enable translations for subtitle areas on sites like youtube",isTranslateTitleDescription:"When enabled, the page title will be translated",enableSearchEnhancement:"Enable Search Enhancement",enableSearchEnhancementDescription:'After enabling, the right sidebar will automatically display "Google News" search results for corresponding English keywords on supported websites (such as Google News, Google Search (partial keywords), Xueqiu, East Money, Futu, Tiger Community).',verifyService:"Verify service",verified:"Successful","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerMinute":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next minute. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"Requests exceed this limit will be queued until the next seconds.","description.prompt":"Send as a user to OpenAI conversation, where {{text}} indicates the text of the paragraph,{{from}} indicates the language of the paragraph,{{to}} indicates the target language, you can omit {{text}}, if so, it'll be sent as a separated message","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"Send the conversation to OpenAI as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the original language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"Default is\uFF1Ageneral. Only set up if there is an API console open domain translation, support fields see <1>Here ","field.scene":"Scene","description.scene":"Default is\uFF1Ageneral. Only set up if there is an API console open Machine Translation Professional, support fields see<1>Here","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please provide a URL with the specific path.",enabledExtension:"Enable extensions",clickToDisableExtension:"Click to disable extension",clickToEnableExtension:"Click to enable the extension",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter customization content",inputOptions:"Writing",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter for translating part of the input box.",inputStartingTriggerKeyDescription:"When you don't need to translate the entire input box, the delimiter allows you to only translate the portion from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means only translating the portion from {startingKey}ja to the end of the input box.",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting is no prefix required, the partial text translation function of the input box cannot be used temporarily.",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Start the translation by quickly pressing 3 times {trailingKey}.",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time (milliseconds) for the input to end the combo trigger",spaceKey:"",noneKey:"Translate the entire text box without prefixes",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement in the following URL",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",clickToSeeQuickDemo:"Click to expand the 30s tutorial video",inputHelperInfo:`Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001". -Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.`,reloadCurrentPage:"Please refresh the current page before starting translation",noLocalFilePermissionForPDF:"No permission to read local files. Please click the button above and upload the local file.",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate the current page",retryAllParagraphs:"Retry all paragraphs",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Noops, something went wrong",disableConfirm:"Search Enhancement Settings",disableOnce:"Disable Once",disableGlobal:"Disable Forever",disableTint:"* You can re-enable in {option}.",searchEnhancementNotes:"We have discovered notable disparities in news results between Chinese and English keywords. By activating the immersive translation Bilingual Display Enhancement feature, we will automatically search for equivalent English keywords and display them on the right side of supported websites (e.g., Google News, Google Search (partial keywords), xueqiu, East Money, Futu, Tiger). You can disable this feature if you don't need it.",option:"Settings",saveSettings:"Save",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"Enable quick press 3 times {trailingKey}, directly translate the entire input box to {inputTargetLanguage}.",enableInputTranslationWithoutTriggerKeyDescription:"To specify the target language, please add a language code at the beginning, such as: ja Hello world",mouseHoverShortcutPlaceholder:"e.g. Shift",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",needLoginAction:"(Premium or custom)",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",daily:"Daily Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",profile:"Profile",billing:"Billing",onetime_7day:"7-day Trial Pack",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt} and will not auto-renew",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly pro membership",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"Current plan: {plan}, will expire on {endAt}, will not auto-renew after expiration.
<1>Enable consecutive annual plan",upgradePlan:"Click here to upgrade to Pro membership",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",upgradeToPro:"Upgrade to Pro","popup.openPro":"Enjoy unrestricted access to DeepL and OpenAI translations after upgrading to Pro Membership. Click here to upgrade","popup.openProForPro":"You are a Pro member, you can directly use DeepL and OpenAI translations",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You have just triggered the immersive translate of the input box by quickly tapping the space key 3 times. The content of the input box will be translated into the default target language.

If this was a mistake, don't worry. You can choose to disable it this time or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show again",disableInputTranslationTips:"* You can also set other shortcuts in {option}, {learnMore}.",learnMore:"Learn more",continueEnalbeInputTranslation:"Continue to enable input translation"};var Gf=[{code:"zh-CN",messages:gc},{code:"zh-TW",messages:pc},{code:"en",messages:fc}];var Cu="immersiveTranslateBingGlobalState",Rt={};for(let e of Gf)Rt[e.code]=e.messages;var ma="Immersive Translate",J="immersive-translate";var ge="immersiveTranslate";var bc=ge+"GoogleAccessToken",yc=ge+"AuthFlow";var Vf=ge+"AuthState",wu=ge+"IframeMessage",R5=ge+"WaitForRateLimit",xc=ge+"DocumentMessageAsk",yt=ge+"DocumentMessageTellThirdParty",vu=ge+"showError",Ec=ge+"DocumentMessageThirdPartyTell",Tc=ge+"DocumentMessageEventUpload",Yf=ge+"DocumentMessageHandler",Jf=`${ge}Container`,Cc=`${ge}SpecifiedContainer`,qn="buildinConfig",vr="localConfig",Li="openOptionsPage",Pi="openAboutPage";var Mi="openEbookViewer",Fi="openEbookBuilder";var ku=`${ge}PageTranslatedStatus`,I5=`${ge}PageUrlChanged`,Wn=`${ge}ReceiveCommand`,wc=ge+"LastUseMouseHoverTime",_i=ge+"LastUseInputTime",mn=ge+"LastUseManualTranslatePageTime",O5=`${ge}PopupReceiveMessage`,Qf="immersivetranslate.com",Zf="config.immersivetranslate.com",N5=`https://${Qf}/`,kr=`https://${Zf}/default_config.json`,j5=`${ge}Mark`,Sr="immersiveTranslateEffect",It=`${ge}Root`,z5=`data-${J}-effect`,wn=`data-${J}-translation-element-mark`,vc=`${ge}TranslationElementMark`,U5=`${ge}TranslatedMark`,H5=`${ge}ParagraphId`,kc=`${ge}LoadingId`,Bi=`data-${J}-loading-id`,Sc=`${ge}ErrorId`,Su=`data-${J}-error-id`,Xf=`${ge}AtomicBlockMark`,Ac=`${ge}ExcludeMark`,q5=`data-${J}-exclude-mark`,eh=`${ge}StayOriginalMark`,W5=`${ge}PreWhitespaceMark`,Au=`${ge}InlineMark`,Dc=`${ge}BlockMark`,$5=`${ge}Left`,K5=`${ge}Right`,G5=`${ge}Width`,V5=`${ge}Height`,Y5=`${ge}Top`,J5=`${ge}FontSize`,Lc="lastRunTime",Q5=`${ge}GlobalStyleMark`,ga=["@","#"],Du=" --- ",Pc=` -`,qt=`${J}-target-wrapper`,Z5=`${J}-pdf-target-container`,Mc=`${J}-target-inner`,X5=`${J}-source-wrapper`,Ri=`${J}-target-translation-block-wrapper`,ex=`${J}-root-translation-theme`,Na=`${ge}RootTranslationTheme`,Fc=`${J}-target-translation-vertical-block-wrapper`,tx=`${J}-target-translation-pdf-block-wrapper`,_c=`${J}-target-translation-pre-whitespace`,Ii=`${J}-target-translation-inline-wrapper`;var Bc={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]},Xt=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","ru","ar","it","ms","id","vi","af","th","ur","yue","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","nl","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu"],Rc={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Detect Language",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese",zu:"Zulu","":"All Languages"},Ic={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B\u8BED\u8A00",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00"},Oc={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C\u8A9E\u8A00",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00"};var Nc=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/"];var Lu="zh-CN";var hc=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],Fn={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},deepl:{name:"DeepL",homepage:"https://www.deepl.com/translator",docUrl:"https://immersivetranslate.com/docs/services/deepL/",providers:[{name:"pro",nameKey:"deepLProName",descriptionKey:"deepLProDescription",descriptionKeyForNormal:"deeplProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"deepLCustomName",descriptionKey:"deepLCustomDescription",descriptionLink1:"https://www.deepl.com/translator",descriptionLink2:"https://immersivetranslate.com/docs/services/deepL/"}],allProps:[{name:"authKey",providers:["custom"],label:"Auth Key",required:!0,type:"password"}]},openai:{name:"Open AI",homepage:"https://openai.com/api/",docUrl:"https://immersivetranslate.com/docs/services/openai/",providers:[{name:"pro",nameKey:"openaiProName",descriptionKey:"openaiProDescription",descriptionKeyForNormal:"openaiProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"openaiCustomName",descriptionKey:"openaiCustomDescription",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password"},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"openai-model-select",default:"gpt-3.5-turbo-0613",options:[{providers:["custom","pro"],label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{providers:["custom","pro"],label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{providers:["custom"],label:"gpt-4",value:"gpt-4"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.limitPerSecond",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.openai.com/v1/chat/completions",descriptionKey:"description.apiUrl",optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"text",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.`,reloadCurrentPage:"Please refresh the current page before starting translation",noLocalFilePermissionForPDF:"No permission to read local files. Please click the button above and upload the local file.",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate the current page",retryAllParagraphs:"Retry all paragraphs",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Noops, something went wrong",disableConfirm:"Search Enhancement Settings",disableOnce:"Disable Once",disableGlobal:"Disable Forever",disableTint:"* You can re-enable in {option}.",searchEnhancementNotes:"We have discovered notable disparities in news results between Chinese and English keywords. By activating the immersive translation Bilingual Display Enhancement feature, we will automatically search for equivalent English keywords and display them on the right side of supported websites (e.g., Google News, Google Search (partial keywords), xueqiu, East Money, Futu, Tiger). You can disable this feature if you don't need it.",option:"Settings",saveSettings:"Save",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"Enable quick press 3 times {trailingKey}, directly translate the entire input box to {inputTargetLanguage}.",enableInputTranslationWithoutTriggerKeyDescription:"To specify the target language, please add a language code at the beginning, such as: ja Hello world",mouseHoverShortcutPlaceholder:"e.g. Shift",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",needLoginAction:"(Premium or custom)",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",daily:"Daily Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",profile:"Profile",billing:"Billing",onetime_7day:"7-day Trial Pack",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt} and will not auto-renew",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly pro membership",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"Current plan: {plan}, will expire on {endAt}, will not auto-renew after expiration.
<1>Enable consecutive annual plan",upgradePlan:"Click here to upgrade to Pro membership",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",upgradeToPro:"Upgrade to Pro","popup.openPro":"Enjoy unrestricted access to DeepL and OpenAI translations after upgrading to Pro Membership. Click here to upgrade","popup.openProForPro":"You are a Pro member, you can directly use DeepL and OpenAI translations",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You have just triggered the immersive translate of the input box by quickly tapping the space key 3 times. The content of the input box will be translated into the default target language.

If this was a mistake, don't worry. You can choose to disable it this time or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show again",disableInputTranslationTips:"* You can also set other shortcuts in {option}, {learnMore}.",learnMore:"Learn more",continueEnalbeInputTranslation:"Continue to enable input translation"};var Vf=[{code:"zh-CN",messages:gc},{code:"zh-TW",messages:pc},{code:"en",messages:fc}];var Tu="immersiveTranslateBingGlobalState",Rt={};for(let e of Vf)Rt[e.code]=e.messages;var ma="Immersive Translate",J="immersive-translate";var ge="immersiveTranslate";var bc=ge+"GoogleAccessToken",yc=ge+"AuthFlow";var Yf=ge+"AuthState",Cu=ge+"IframeMessage",R5=ge+"WaitForRateLimit",xc=ge+"DocumentMessageAsk",yt=ge+"DocumentMessageTellThirdParty",wu=ge+"showError",Ec=ge+"DocumentMessageThirdPartyTell",Tc=ge+"DocumentMessageEventUpload",Jf=ge+"DocumentMessageHandler",Qf=`${ge}Container`,Cc=`${ge}SpecifiedContainer`,qn="buildinConfig",vr="localConfig",Li="openOptionsPage",Pi="openAboutPage";var Mi="openEbookViewer",Fi="openEbookBuilder";var vu=`${ge}PageTranslatedStatus`,I5=`${ge}PageUrlChanged`,Wn=`${ge}ReceiveCommand`,wc=ge+"LastUseMouseHoverTime",_i=ge+"LastUseInputTime",mn=ge+"LastUseManualTranslatePageTime",O5=`${ge}PopupReceiveMessage`,Zf="immersivetranslate.com",Xf="config.immersivetranslate.com",N5=`https://${Zf}/`,kr=`https://${Xf}/default_config.json`,j5=`${ge}Mark`,Sr="immersiveTranslateEffect",It=`${ge}Root`,z5=`data-${J}-effect`,wn=`data-${J}-translation-element-mark`,vc=`${ge}TranslationElementMark`,U5=`${ge}TranslatedMark`,H5=`${ge}ParagraphId`,kc=`${ge}LoadingId`,Bi=`data-${J}-loading-id`,Sc=`${ge}ErrorId`,ku=`data-${J}-error-id`,eh=`${ge}AtomicBlockMark`,Ac=`${ge}ExcludeMark`,q5=`data-${J}-exclude-mark`,th=`${ge}StayOriginalMark`,W5=`${ge}PreWhitespaceMark`,Su=`${ge}InlineMark`,Dc=`${ge}BlockMark`,$5=`${ge}Left`,K5=`${ge}Right`,G5=`${ge}Width`,V5=`${ge}Height`,Y5=`${ge}Top`,J5=`${ge}FontSize`,Lc="lastRunTime",Q5=`${ge}GlobalStyleMark`,ga=["@","#"],Au=" --- ",Pc=` +`,Wt=`${J}-target-wrapper`,Z5=`${J}-pdf-target-container`,Mc=`${J}-target-inner`,X5=`${J}-source-wrapper`,Ri=`${J}-target-translation-block-wrapper`,ex=`${J}-root-translation-theme`,ja=`${ge}RootTranslationTheme`,Fc=`${J}-target-translation-vertical-block-wrapper`,tx=`${J}-target-translation-pdf-block-wrapper`,_c=`${J}-target-translation-pre-whitespace`,Ii=`${J}-target-translation-inline-wrapper`;var Bc={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]},en=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","ru","ar","it","ms","id","vi","af","th","ur","yue","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","nl","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu"],Rc={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Detect Language",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese",zu:"Zulu","":"All Languages"},Ic={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B\u8BED\u8A00",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00"},Oc={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C\u8A9E\u8A00",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00"};var Nc=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/"];var Du="zh-CN";var hc=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],Fn={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},deepl:{name:"DeepL",homepage:"https://www.deepl.com/translator",docUrl:"https://immersivetranslate.com/docs/services/deepL/",providers:[{name:"pro",nameKey:"deepLProName",descriptionKey:"deepLProDescription",descriptionKeyForNormal:"deeplProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"deepLCustomName",descriptionKey:"deepLCustomDescription",descriptionLink1:"https://www.deepl.com/translator",descriptionLink2:"https://immersivetranslate.com/docs/services/deepL/"}],allProps:[{name:"authKey",providers:["custom"],label:"Auth Key",required:!0,type:"password"}]},openai:{name:"Open AI",homepage:"https://openai.com/api/",docUrl:"https://immersivetranslate.com/docs/services/openai/",providers:[{name:"pro",nameKey:"openaiProName",descriptionKey:"openaiProDescription",descriptionKeyForNormal:"openaiProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"openaiCustomName",descriptionKey:"openaiCustomDescription",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password"},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"openai-model-select",default:"gpt-3.5-turbo-0613",options:[{providers:["custom","pro"],label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{providers:["custom","pro"],label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{providers:["custom"],label:"gpt-4",value:"gpt-4"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.limitPerSecond",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.openai.com/v1/chat/completions",descriptionKey:"description.apiUrl",optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"text",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`,optional:!0}]},transmart:{name:"Transmart",homepage:"https://transmart.qq.com/"},chatgpt:{name:"ChatGPT Web(3.5 mobile)",homepage:"https://chat.openai.com",beta:!0},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:"https://immersivetranslate.com/docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text"},{name:"appSecret",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/",docUrl:"https://immersivetranslate.com/docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text"},{name:"secretKey",required:!0,type:"password"}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:"https://immersivetranslate.com/docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text"},{name:"AccessKeySecret",required:!0,type:"password"},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:"https://immersivetranslate.com/docs/services/azure/",allProps:[{name:"region",required:!0,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password"}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:"https://immersivetranslate.com/docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text"},{name:"key",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:"https://immersivetranslate.com/docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text"},{name:"secretAccessKey",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:"https://immersivetranslate.com/docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password"}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:"https://immersivetranslate.com/docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:ga,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:"https://immersivetranslate.com/docs/services/openL/",allProps:[...hc,{type:"password",name:"apikey",required:!0}],props:hc},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",alpha:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:"https://immersivetranslate.com/docs/services/niu",allProps:[{name:"APIKEY",required:!0,type:"password"}]}},Pu={type:ge+"ChildFrameToRootFrameIdentifier"},Mu=["Alt","Ctrl","Shift","Auto","Off","OtherCustom","Other"];var Oi="user_from_plugin",en="user_info",Ni=Pn()||Mn()?"https://api2.immersivetranslate.com":"https://test-api2.immersivetranslate.com",nx=Pn()||Mn()?"https://immersivetranslate.com/accounts/login?from=plugin":"https://test.immersivetranslate.com/accounts/login?from=plugin",ji=Pn()||Mn()?"https://immersivetranslate.com/profile":"https://test.immersivetranslate.com/profile",Ar=Pn()||Mn()?"https://immersivetranslate.com/pricing":"https://test.immersivetranslate.com/pricing",jc=Ar+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",zi=Ar+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",zc=Ar+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal";function ja(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t==="zh-hans")return"zh-CN";if(t==="zh-hant"||t==="zh-hk")return"zh-TW";if(t==="iw")return"he";if(t==="jv")return"jw";let n=Xt.map(r=>r.toLowerCase()),a=n.indexOf(t);if(a===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let r=n.indexOf(t);return r===-1?"auto":Xt[r]}else return"auto";else return Xt[a]}function pa(){return ja(document?.documentElement?.lang||"en")}function Uc(e,t,n){let a=th(e,t),r=[],u={from:e[0].from,fromByClient:e[0].fromByClient,to:e[0].to,tempSentences:[],url:e[0].url};for(let o of a)(u.tempSentences.reduce((s,c)=>s+c.text.length,0)+o.text.length>t||u.tempSentences.length>=n)&&(r.push(u),u={fromByClient:u.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}),(u.from!==o.from||u.to!==o.to)&&(u.tempSentences.length>0?(r.push(u),u={fromByClient:u.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}):(u.from=o.from,u.to=o.to)),u.tempSentences.push(o);return u.tempSentences.length>0&&r.push(u),r}function th(e,t){let n=[],a=[];for(let r=0;r0?dr.toLowerCase()),a=n.indexOf(t);if(a===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let r=n.indexOf(t);return r===-1?"auto":en[r]}else return"auto";else return en[a]}function pa(){return za(document?.documentElement?.lang||"en")}function Uc(e,t,n){let a=nh(e,t),r=[],u={from:e[0].from,fromByClient:e[0].fromByClient,to:e[0].to,tempSentences:[],url:e[0].url};for(let o of a)(u.tempSentences.reduce((s,c)=>s+c.text.length,0)+o.text.length>t||u.tempSentences.length>=n)&&(r.push(u),u={fromByClient:u.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}),(u.from!==o.from||u.to!==o.to)&&(u.tempSentences.length>0?(r.push(u),u={fromByClient:u.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}):(u.from=o.from,u.to=o.to)),u.tempSentences.push(o);return u.tempSentences.length>0&&r.push(u),r}function nh(e,t){let n=[],a=[];for(let r=0;r0?dt){let h=[];Ui(b,t,h);for(let C=0;C0&&d{let i=e.lastIndexOf(o,t);return i>u?i:u},-1);if(r===-1){let u=e.slice(0,t);if(u&&!u.trim())return;n.push({text:u,prefix:"",suffix:""}),e.length>t&&Ui(e.slice(t),t,n)}else{let u=e.slice(0,r+1);if(u&&u.trim()==="")return;u.startsWith(" ")?n.push({text:u.slice(1),prefix:" ",suffix:""}):n.push({text:u,prefix:"",suffix:""}),r+10){l.forEach(d=>{c.length>0&&d.providers&&d.providers.length>0&&!d.providers.includes(s)||(d.optional?g.push(d):m.push(d))});let f=g.concat(m).filter(d=>d.required);if(f.length>0){for(let d of f)if(!r[d.name]){i=!1;break}}}return{...a,id:t,selected:n[e]===t,ok:i,currentProvider:s,config:r,providers:a.providers||[],props:a.props||[],allProps:l,optionalProps:g,explicitProps:m}}var Hc=(e,t)=>{let{config:n}=e,a=n.alpha,r=n.beta,u=n.canary,o=n.debug,i=e.user,s=Qt(i);return Object.keys(Fn).filter(l=>{let m=Fn[l];if(l.startsWith("mock"))return o?!0:l===e.config[t];if(l===e.config[t])return!0;if(l==="openai"&&Zt())return e.config.showOpenaiOnSafari||s?!0:!!(r||a||u||s);let g=!!m.canary,f=!!m.alpha,d=!!m.beta;return l===e[t]||g&&u||f&&(a||u)||d&&(r||a||u)?!0:!f&&!d&&!g}).map(l=>Hi(t,l,e))};function Wt(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}p();p();p();p();function za(){let e,t="pending",n=new Promise((a,r)=>{e={async resolve(u){await u,t="fulfilled",a(u)},reject(u){t="rejected",r(u)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}p();var qi=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function Fu(e,t){let n=za(),a=setTimeout(()=>n.reject(new qi),t);return Promise.race([e,n]).finally(()=>clearTimeout(a))}p();p();function Dr(e,t={}){let{signal:n,persistent:a}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((r,u)=>{let o=()=>{clearTimeout(s),u(new DOMException("Delay was aborted.","AbortError"))},s=setTimeout(()=>{n?.removeEventListener("abort",o),r()},e);if(n?.addEventListener("abort",o,{once:!0}),a===!1)try{Deno.unrefTimer(s)}catch(c){if(!(c instanceof ReferenceError))throw c}})}p();var qc=class{#e=0;#t=[];#n=[];#a=za();add(t){++this.#e,this.#r(t[Symbol.asyncIterator]())}async#r(t){try{let{value:n,done:a}=await t.next();a?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#a.resolve()}async*iterate(){for(;this.#e>0;){await this.#a;for(let t=0;tDh,bgBlue:()=>Fh,bgBrightBlack:()=>Ih,bgBrightBlue:()=>zh,bgBrightCyan:()=>Hh,bgBrightGreen:()=>Nh,bgBrightMagenta:()=>Uh,bgBrightRed:()=>Oh,bgBrightWhite:()=>qh,bgBrightYellow:()=>jh,bgCyan:()=>Bh,bgGreen:()=>Ph,bgMagenta:()=>_h,bgRed:()=>Lh,bgRgb24:()=>Gh,bgRgb8:()=>$h,bgWhite:()=>Rh,bgYellow:()=>Mh,black:()=>mh,blue:()=>hh,bold:()=>uh,brightBlack:()=>Kc,brightBlue:()=>vh,brightCyan:()=>Sh,brightGreen:()=>Ch,brightMagenta:()=>kh,brightRed:()=>Th,brightWhite:()=>Ah,brightYellow:()=>wh,cyan:()=>yh,dim:()=>oh,getColorEnabled:()=>ah,gray:()=>Eh,green:()=>ph,hidden:()=>ch,inverse:()=>lh,italic:()=>ih,magenta:()=>bh,red:()=>gh,reset:()=>rh,rgb24:()=>Kh,rgb8:()=>Wh,setColorEnabled:()=>nh,strikethrough:()=>dh,stripColor:()=>Yh,underline:()=>sh,white:()=>xh,yellow:()=>fh});p();var{Deno:Wc}=globalThis,$c=typeof Wc?.noColor=="boolean"?Wc.noColor:!0,Wi=!$c;function nh(e){$c||(Wi=e)}function ah(){return Wi}function Te(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function Ce(e,t){return Wi?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function rh(e){return Ce(e,Te([0],0))}function uh(e){return Ce(e,Te([1],22))}function oh(e){return Ce(e,Te([2],22))}function ih(e){return Ce(e,Te([3],23))}function sh(e){return Ce(e,Te([4],24))}function lh(e){return Ce(e,Te([7],27))}function ch(e){return Ce(e,Te([8],28))}function dh(e){return Ce(e,Te([9],29))}function mh(e){return Ce(e,Te([30],39))}function gh(e){return Ce(e,Te([31],39))}function ph(e){return Ce(e,Te([32],39))}function fh(e){return Ce(e,Te([33],39))}function hh(e){return Ce(e,Te([34],39))}function bh(e){return Ce(e,Te([35],39))}function yh(e){return Ce(e,Te([36],39))}function xh(e){return Ce(e,Te([37],39))}function Eh(e){return Kc(e)}function Kc(e){return Ce(e,Te([90],39))}function Th(e){return Ce(e,Te([91],39))}function Ch(e){return Ce(e,Te([92],39))}function wh(e){return Ce(e,Te([93],39))}function vh(e){return Ce(e,Te([94],39))}function kh(e){return Ce(e,Te([95],39))}function Sh(e){return Ce(e,Te([96],39))}function Ah(e){return Ce(e,Te([97],39))}function Dh(e){return Ce(e,Te([40],49))}function Lh(e){return Ce(e,Te([41],49))}function Ph(e){return Ce(e,Te([42],49))}function Mh(e){return Ce(e,Te([43],49))}function Fh(e){return Ce(e,Te([44],49))}function _h(e){return Ce(e,Te([45],49))}function Bh(e){return Ce(e,Te([46],49))}function Rh(e){return Ce(e,Te([47],49))}function Ih(e){return Ce(e,Te([100],49))}function Oh(e){return Ce(e,Te([101],49))}function Nh(e){return Ce(e,Te([102],49))}function jh(e){return Ce(e,Te([103],49))}function zh(e){return Ce(e,Te([104],49))}function Uh(e){return Ce(e,Te([105],49))}function Hh(e){return Ce(e,Te([106],49))}function qh(e){return Ce(e,Te([107],49))}function Kn(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function Wh(e,t){return Ce(e,Te([38,5,Kn(t)],39))}function $h(e,t){return Ce(e,Te([48,5,Kn(t)],49))}function Kh(e,t){return typeof t=="number"?Ce(e,Te([38,2,t>>16&255,t>>8&255,t&255],39)):Ce(e,Te([38,2,Kn(t.r),Kn(t.g),Kn(t.b)],39))}function Gh(e,t){return typeof t=="number"?Ce(e,Te([48,2,t>>16&255,t>>8&255,t&255],49)):Ce(e,Te([48,2,Kn(t.r),Kn(t.g),Kn(t.b)],49))}var Vh=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function Yh(e){return e.replace(Vh,"")}p();p();var $i=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},Jh={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function Ki(e,t){let n={...Jh,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let a=n.minTimeout,r;for(let u=0;usetTimeout(i,a)),a*=n.multiplier,a=Math.max(a,n.minTimeout),n.maxTimeout>=0&&(a=Math.min(a,n.maxTimeout)),r=o}throw new $i(r,n.maxAttempts)}p();var _n=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function Gi(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",a,r=t.length;for(a=2;a>2],n+=_n[(t[a-2]&3)<<4|t[a-1]>>4],n+=_n[(t[a-1]&15)<<2|t[a]>>6],n+=_n[t[a]&63];return a===r+1&&(n+=_n[t[a-2]>>2],n+=_n[(t[a-2]&3)<<4],n+="=="),a===r&&(n+=_n[t[a-2]>>2],n+=_n[(t[a-2]&3)<<4|t[a-1]>>4],n+=_n[(t[a-1]&15)<<2],n+="="),n}p();p();var tE=Number.isNaN||function(e){return typeof e=="number"&&e!==e};p();p();var _u=globalThis||(typeof window<"u"?window:self),Zh=Object.create,Yi=Object.defineProperty,Xh=Object.getOwnPropertyDescriptor,e2=Object.getOwnPropertyNames,t2=Object.getPrototypeOf,n2=Object.prototype.hasOwnProperty,a2=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),r2=(e,t)=>{for(var n in t)Yi(e,n,{get:t[n],enumerable:!0})},Vi=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of e2(t))!n2.call(e,r)&&r!==n&&Yi(e,r,{get:()=>t[r],enumerable:!(a=Xh(t,r))||a.enumerable});return e},u2=(e,t,n)=>(Vi(e,t,"default"),n&&Vi(n,t,"default")),Vc=(e,t,n)=>(n=e!=null?Zh(t2(e)):{},Vi(t||!e||!e.__esModule?Yi(n,"default",{value:e,enumerable:!0}):n,e)),Yc=a2((e,t)=>{var n="Expected a function",a=NaN,r="[object Symbol]",u=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,l=typeof _u=="object"&&_u&&_u.Object===Object&&_u,m=typeof self=="object"&&self&&self.Object===Object&&self,g=l||m||Function("return this")(),f=Object.prototype,d=f.toString,b=Math.max,T=Math.min,h=function(){return g.Date.now()};function C(M,w,E){var I,F,A,_,j,N,D=0,y=!1,S=!1,R=!0;if(typeof M!="function")throw new TypeError(n);w=L(w)||0,O(E)&&(y=!!E.leading,S="maxWait"in E,A=S?b(L(E.maxWait)||0,w):A,R="trailing"in E?!!E.trailing:R);function $(re){var K=I,oe=F;return I=F=void 0,D=re,_=M.apply(oe,K),_}function z(re){return D=re,j=setTimeout(ae,w),y?$(re):_}function Y(re){var K=re-N,oe=re-D,me=w-K;return S?T(me,A-oe):me}function q(re){var K=re-N,oe=re-D;return N===void 0||K>=w||K<0||S&&oe>=A}function ae(){var re=h();if(q(re))return Q(re);j=setTimeout(ae,Y(re))}function Q(re){return j=void 0,R&&I?$(re):(I=F=void 0,_)}function G(){j!==void 0&&clearTimeout(j),D=0,I=N=F=j=void 0}function pe(){return j===void 0?_:Q(h())}function fe(){var re=h(),K=q(re);if(I=arguments,F=this,N=re,K){if(j===void 0)return z(N);if(S)return j=setTimeout(ae,w),$(N)}return j===void 0&&(j=setTimeout(ae,w)),_}return fe.cancel=G,fe.flush=pe,fe}function v(M,w,E){var I=!0,F=!0;if(typeof M!="function")throw new TypeError(n);return O(E)&&(I="leading"in E?!!E.leading:I,F="trailing"in E?!!E.trailing:F),C(M,w,{leading:I,maxWait:w,trailing:F})}function O(M){var w=typeof M;return!!M&&(w=="object"||w=="function")}function B(M){return!!M&&typeof M=="object"}function x(M){return typeof M=="symbol"||B(M)&&d.call(M)==r}function L(M){if(typeof M=="number")return M;if(x(M))return a;if(O(M)){var w=typeof M.valueOf=="function"?M.valueOf():M;M=O(w)?w+"":w}if(typeof M!="string")return M===0?M:+M;M=M.replace(u,"");var E=i.test(M);return E||s.test(M)?c(M.slice(2),E?2:8):o.test(M)?a:+M}t.exports=v}),Jc={};r2(Jc,{default:()=>xt});var o2=Vc(Yc());u2(Jc,Vc(Yc()));var{default:Gc,...i2}=o2,xt=Gc!==void 0?Gc:i2;p();p();var s2=Object.create,Qi=Object.defineProperty,l2=Object.getOwnPropertyDescriptor,c2=Object.getOwnPropertyNames,d2=Object.getPrototypeOf,m2=Object.prototype.hasOwnProperty,g2=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),p2=(e,t)=>{for(var n in t)Qi(e,n,{get:t[n],enumerable:!0})},Ji=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of c2(t))!m2.call(e,r)&&r!==n&&Qi(e,r,{get:()=>t[r],enumerable:!(a=l2(t,r))||a.enumerable});return e},f2=(e,t,n)=>(Ji(e,t,"default"),n&&Ji(n,t,"default")),Zc=(e,t,n)=>(n=e!=null?s2(d2(e)):{},Ji(t||!e||!e.__esModule?Qi(n,"default",{value:e,enumerable:!0}):n,e)),Xc=g2((e,t)=>{(function(n,a){typeof e=="object"&&typeof t=="object"?t.exports=a():typeof define=="function"&&define.amd?define([],a):typeof e=="object"?e.notie=a():n.notie=a()})(e,function(){return function(n){function a(u){if(r[u])return r[u].exports;var o=r[u]={i:u,l:!1,exports:{}};return n[u].call(o.exports,o,o.exports,a),o.l=!0,o.exports}var r={};return a.m=n,a.c=r,a.i=function(u){return u},a.d=function(u,o,i){a.o(u,o)||Object.defineProperty(u,o,{configurable:!1,enumerable:!0,get:i})},a.n=function(u){var o=u&&u.__esModule?function(){return u.default}:function(){return u};return a.d(o,"a",o),o},a.o=function(u,o){return Object.prototype.hasOwnProperty.call(u,o)},a.p="",a(a.s=1)}([function(n,a){n.exports=function(r){return r.webpackPolyfill||(r.deprecate=function(){},r.paths=[],r.children||(r.children=[]),Object.defineProperty(r,"loaded",{enumerable:!0,get:function(){return r.l}}),Object.defineProperty(r,"id",{enumerable:!0,get:function(){return r.i}}),r.webpackPolyfill=1),r}},function(n,a,r){"use strict";(function(u){var o,i,s,c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l};(function(l,m){c(a)==="object"&&c(u)==="object"?u.exports=m():(i=[],o=m,s=typeof o=="function"?o.apply(a,i):o,s!==void 0&&(u.exports=s))})(void 0,function(){return function(l){function m(f){if(g[f])return g[f].exports;var d=g[f]={i:f,l:!1,exports:{}};return l[f].call(d.exports,d,d.exports,m),d.l=!0,d.exports}var g={};return m.m=l,m.c=g,m.i=function(f){return f},m.d=function(f,d,b){m.o(f,d)||Object.defineProperty(f,d,{configurable:!1,enumerable:!0,get:b})},m.n=function(f){var d=f&&f.__esModule?function(){return f.default}:function(){return f};return m.d(d,"a",d),d},m.o=function(f,d){return Object.prototype.hasOwnProperty.call(f,d)},m.p="",m(m.s=0)}([function(l,m,g){function f(z,Y){var q={};for(var ae in z)Y.indexOf(ae)>=0||Object.prototype.hasOwnProperty.call(z,ae)&&(q[ae]=z[ae]);return q}Object.defineProperty(m,"__esModule",{value:!0});var d=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(z){return typeof z>"u"?"undefined":c(z)}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z>"u"?"undefined":c(z)},b=Object.assign||function(z){for(var Y=1;Y'+ae+"",oe.onclick=function(){return F(me,K)},oe.listener=function(ce){(w(ce)||E(ce))&&j()},I(oe,K),G&&G<1&&(G=1),!fe&&G&&O(G).then(function(){return F(me,K)})},D=m.force=function(z,Y){var q=z.type,ae=q===void 0?5:q,Q=z.text,G=z.buttonText,pe=G===void 0?"OK":G,fe=z.callback,re=z.position,K=re===void 0?h.positions.force||K.top:re;B(),j();var oe=document.createElement("div"),me=x();oe.id=me;var ce=document.createElement("div");ce.classList.add(h.classes.textbox),ce.classList.add(h.classes.backgroundInfo),ce.innerHTML='
'+Q+"
";var ye=document.createElement("div");ye.classList.add(h.classes.button),ye.classList.add(L[ae]),ye.innerHTML=pe,ye.onclick=function(){F(me,K),_(),fe?fe():Y&&Y()},oe.appendChild(ce),oe.appendChild(ye),oe.listener=function(Se){w(Se)&&ye.click()},I(oe,K),A()},y=m.confirm=function(z,Y,q){var ae=z.text,Q=z.submitText,G=Q===void 0?"Yes":Q,pe=z.cancelText,fe=pe===void 0?"Cancel":pe,re=z.submitCallback,K=z.cancelCallback,oe=z.position,me=oe===void 0?h.positions.confirm||me.top:oe;B(),j();var ce=document.createElement("div"),ye=x();ce.id=ye;var Se=document.createElement("div");Se.classList.add(h.classes.textbox),Se.classList.add(h.classes.backgroundInfo),Se.innerHTML='
'+ae+"
";var xe=document.createElement("div");xe.classList.add(h.classes.button),xe.classList.add(h.classes.elementHalf),xe.classList.add(h.classes.backgroundSuccess),xe.innerHTML=G,xe.onclick=function(){F(ye,me),_(),re?re():Y&&Y()};var Z=document.createElement("div");Z.classList.add(h.classes.button),Z.classList.add(h.classes.elementHalf),Z.classList.add(h.classes.backgroundError),Z.innerHTML=fe,Z.onclick=function(){F(ye,me),_(),K?K():q&&q()},ce.appendChild(Se),ce.appendChild(xe),ce.appendChild(Z),ce.listener=function(ke){w(ke)?xe.click():E(ke)&&Z.click()},I(ce,me),A(ce,me)},S=function(z,Y,q){var ae=z.text,Q=z.submitText,G=Q===void 0?"Submit":Q,pe=z.cancelText,fe=pe===void 0?"Cancel":pe,re=z.submitCallback,K=z.cancelCallback,oe=z.position,me=oe===void 0?h.positions.input||me.top:oe,ce=f(z,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);B(),j();var ye=document.createElement("div"),Se=x();ye.id=Se;var xe=document.createElement("div");xe.classList.add(h.classes.textbox),xe.classList.add(h.classes.backgroundInfo),xe.innerHTML='
'+ae+"
";var Z=document.createElement("input");Z.classList.add(h.classes.inputField),Z.setAttribute("autocapitalize",ce.autocapitalize||"none"),Z.setAttribute("autocomplete",ce.autocomplete||"off"),Z.setAttribute("autocorrect",ce.autocorrect||"off"),Z.setAttribute("autofocus",ce.autofocus||"true"),Z.setAttribute("inputmode",ce.inputmode||"verbatim"),Z.setAttribute("max",ce.max||""),Z.setAttribute("maxlength",ce.maxlength||""),Z.setAttribute("min",ce.min||""),Z.setAttribute("minlength",ce.minlength||""),Z.setAttribute("placeholder",ce.placeholder||""),Z.setAttribute("spellcheck",ce.spellcheck||"default"),Z.setAttribute("step",ce.step||"any"),Z.setAttribute("type",ce.type||"text"),Z.value=ce.value||"",ce.allowed&&(Z.oninput=function(){var Re=void 0;if(Array.isArray(ce.allowed)){for(var Ne="",st=ce.allowed,Ft=0;Ft'+q+"",K.appendChild(me),pe.forEach(function(ye,Se){var xe=ye.type,Z=xe===void 0?1:xe,ke=ye.text,Pe=ye.handler,Re=document.createElement("div");Re.classList.add(L[Z]),Re.classList.add(h.classes.button),Re.classList.add(h.classes.selectChoice);var Ne=pe[Se+1];Ne&&!Ne.type&&(Ne.type=1),Ne&&Ne.type===Z&&Re.classList.add(h.classes.selectChoiceRepeated),Re.innerHTML=ke,Re.onclick=function(){F(oe,re),_(),Pe()},K.appendChild(Re)});var ce=document.createElement("div");ce.classList.add(h.classes.backgroundNeutral),ce.classList.add(h.classes.button),ce.innerHTML=Q,ce.onclick=function(){F(oe,re),_(),G?G():Y&&Y()},K.appendChild(ce),K.listener=function(ye){E(ye)&&ce.click()},I(K,re),A(K,re)},$=m.date=function(z,Y,q){var ae=z.value,Q=ae===void 0?new Date:ae,G=z.submitText,pe=G===void 0?"OK":G,fe=z.cancelText,re=fe===void 0?"Cancel":fe,K=z.submitCallback,oe=z.cancelCallback,me=z.position,ce=me===void 0?h.positions.date||ce.top:me;B(),j();var ye="▾",Se=document.createElement("div"),xe=document.createElement("div"),Z=document.createElement("div"),ke=function(ze){Se.innerHTML=h.dateMonths[ze.getMonth()],xe.innerHTML=ze.getDate(),Z.innerHTML=ze.getFullYear()},Pe=function(ze){var H=new Date(Q.getFullYear(),Q.getMonth()+1,0).getDate(),de=ze.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(de)>H&&(de=H.toString()),ze.target.textContent=de,Number(de)<1&&(de="1"),Q.setDate(Number(de))},Re=function(ze){var H=ze.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);ze.target.textContent=H,Q.setFullYear(Number(H))},Ne=function(ze){ke(Q)},st=function(ze){var H=new Date(Q.getFullYear(),Q.getMonth()+ze+1,0).getDate();Q.getDate()>H&&Q.setDate(H),Q.setMonth(Q.getMonth()+ze),ke(Q)},Ft=function(ze){Q.setDate(Q.getDate()+ze),ke(Q)},da=function(ze){var H=Q.getFullYear()+ze;H<0?Q.setFullYear(0):Q.setFullYear(Q.getFullYear()+ze),ke(Q)},Ut=document.createElement("div"),An=x();Ut.id=An;var Un=document.createElement("div");Un.classList.add(h.classes.backgroundInfo);var Ie=document.createElement("div");Ie.classList.add(h.classes.dateSelectorInner);var Ht=document.createElement("div");Ht.classList.add(h.classes.button),Ht.classList.add(h.classes.elementThird),Ht.classList.add(h.classes.dateSelectorUp),Ht.innerHTML=ye;var rt=document.createElement("div");rt.classList.add(h.classes.button),rt.classList.add(h.classes.elementThird),rt.classList.add(h.classes.dateSelectorUp),rt.innerHTML=ye;var He=document.createElement("div");He.classList.add(h.classes.button),He.classList.add(h.classes.elementThird),He.classList.add(h.classes.dateSelectorUp),He.innerHTML=ye,Se.classList.add(h.classes.element),Se.classList.add(h.classes.elementThird),Se.innerHTML=h.dateMonths[Q.getMonth()],xe.classList.add(h.classes.element),xe.classList.add(h.classes.elementThird),xe.setAttribute("contentEditable",!0),xe.addEventListener("input",Pe),xe.addEventListener("blur",Ne),xe.innerHTML=Q.getDate(),Z.classList.add(h.classes.element),Z.classList.add(h.classes.elementThird),Z.setAttribute("contentEditable",!0),Z.addEventListener("input",Re),Z.addEventListener("blur",Ne),Z.innerHTML=Q.getFullYear();var Yt=document.createElement("div");Yt.classList.add(h.classes.button),Yt.classList.add(h.classes.elementThird),Yt.innerHTML=ye;var _t=document.createElement("div");_t.classList.add(h.classes.button),_t.classList.add(h.classes.elementThird),_t.innerHTML=ye;var Hn=document.createElement("div");Hn.classList.add(h.classes.button),Hn.classList.add(h.classes.elementThird),Hn.innerHTML=ye,Ht.onclick=function(){return st(1)},rt.onclick=function(){return Ft(1)},He.onclick=function(){return da(1)},Yt.onclick=function(){return st(-1)},_t.onclick=function(){return Ft(-1)},Hn.onclick=function(){return da(-1)};var gt=document.createElement("div");gt.classList.add(h.classes.button),gt.classList.add(h.classes.elementHalf),gt.classList.add(h.classes.backgroundSuccess),gt.innerHTML=pe,gt.onclick=function(){F(An,ce),_(),K?K(Q):Y&&Y(Q)};var dn=document.createElement("div");dn.classList.add(h.classes.button),dn.classList.add(h.classes.elementHalf),dn.classList.add(h.classes.backgroundError),dn.innerHTML=re,dn.onclick=function(){F(An,ce),_(),oe?oe(Q):q&&q(Q)},Ie.appendChild(Ht),Ie.appendChild(rt),Ie.appendChild(He),Ie.appendChild(Se),Ie.appendChild(xe),Ie.appendChild(Z),Ie.appendChild(Yt),Ie.appendChild(_t),Ie.appendChild(Hn),Un.appendChild(Ie),Ut.appendChild(Un),Ut.appendChild(gt),Ut.appendChild(dn),Ut.listener=function(ze){w(ze)?gt.click():E(ze)&&dn.click()},I(Ut,ce),A(Ut,ce)};m.default={alert:N,force:D,confirm:y,input:S,select:R,date:$,setOptions:C,hideAlerts:j}}])})}).call(a,r(0)(n))}])})}),e4={};p2(e4,{default:()=>Bu});var h2=Zc(Xc());f2(e4,Zc(Xc()));var{default:Qc,...b2}=h2,Bu=Qc!==void 0?Qc:b2;p();p();var Zi=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Xi(e,t,n,a){e.addEventListener?e.addEventListener(t,n,a):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function u4(e,t){for(var n=t.slice(0,t.length-1),a=0;a=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function y2(e,t){for(var n=e.length>=t.length?e:t,a=e.length>=t.length?t:e,r=!0,u=0;u=0&&Ue.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Ue.splice(0,Ue.length),(t===93||t===224)&&(t=91),t in pt){pt[t]=!1;for(var a in vn)vn[a]===t&&(Ye[a]=!1)}}function A2(e){if(typeof e>"u")Object.keys(tt).forEach(function(o){return delete tt[o]});else if(Array.isArray(e))e.forEach(function(o){o.key&&es(o)});else if(typeof e=="object")e.key&&es(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a1?u4(vn,s):[];tt[m]=tt[m].filter(function(f){var d=a?f.method===a:!0;return!(d&&f.scope===n&&y2(f.mods,g))})}})};function n4(e,t,n,a){if(t.element===a){var r;if(t.scope===n||t.scope==="all"){r=t.mods.length>0;for(var u in pt)Object.prototype.hasOwnProperty.call(pt,u)&&(!pt[u]&&t.mods.indexOf(+u)>-1||pt[u]&&t.mods.indexOf(+u)===-1)&&(r=!1);(t.mods.length===0&&!pt[16]&&!pt[18]&&!pt[17]&&!pt[91]||r||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function a4(e,t){var n=tt["*"],a=e.keyCode||e.which||e.charCode;if(Ye.filter.call(this,e)){if((a===93||a===224)&&(a=91),Ue.indexOf(a)===-1&&a!==229&&Ue.push(a),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(d){var b=ns[d];e[d]&&Ue.indexOf(b)===-1?Ue.push(b):!e[d]&&Ue.indexOf(b)>-1?Ue.splice(Ue.indexOf(b),1):d==="metaKey"&&e[d]&&Ue.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Ue=Ue.slice(Ue.indexOf(b))))}),a in pt){pt[a]=!0;for(var r in vn)vn[r]===a&&(Ye[r]=!0);if(!n)return}for(var u in pt)Object.prototype.hasOwnProperty.call(pt,u)&&(pt[u]=e[ns[u]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Ue.indexOf(17)===-1&&Ue.push(17),Ue.indexOf(18)===-1&&Ue.push(18),pt[17]=!0,pt[18]=!0);var o=Mr();if(n)for(var i=0;i-1}function Ye(e,t,n){Ue=[];var a=o4(e),r=[],u="all",o=document,i=0,s=!1,c=!0,l="+",m=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(u=t.scope),t.element&&(o=t.element),t.keyup&&(s=t.keyup),t.keydown!==void 0&&(c=t.keydown),t.capture!==void 0&&(m=t.capture),typeof t.splitKey=="string"&&(l=t.splitKey)),typeof t=="string"&&(u=t);i1&&(r=u4(vn,e)),e=e[e.length-1],e=e==="*"?"*":Iu(e),e in tt||(tt[e]=[]),tt[e].push({keyup:s,keydown:c,scope:u,mods:r,shortcut:a[i],method:n,key:a[i],splitKey:l,element:o});typeof o<"u"&&!D2(o)&&window&&(s4.push(o),Xi(o,"keydown",function(g){a4(g,o)},m),t4||(t4=!0,Xi(window,"focus",function(){Ue=[]},m)),Xi(o,"keyup",function(g){a4(g,o),S2(g)},m))}function L2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(tt).forEach(function(n){var a=tt[n].filter(function(r){return r.scope===t&&r.shortcut===e});a.forEach(function(r){r&&r.method&&r.method()})})}var ts={getPressedKeyString:C2,setScope:l4,getScope:Mr,deleteScope:k2,getPressedKeyCodes:T2,isPressed:v2,filter:w2,trigger:L2,unbind:A2,keyMap:Pr,modifier:vn,modifierMap:ns};for(Ru in ts)Object.prototype.hasOwnProperty.call(ts,Ru)&&(Ye[Ru]=ts[Ru]);var Ru;typeof document<"u"&&(r4=window.hotkeys,Ye.noConflict=function(e){return e&&window.hotkeys===Ye&&(window.hotkeys=r4),Ye},window.hotkeys=Ye);var r4;p();p();var P2={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},d4={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Ze={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},kt={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Gn={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},W=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let a=W.getVersionPrecision(e),r=W.getVersionPrecision(t),u=Math.max(a,r),o=0,i=W.map([e,t],s=>{let c=u-W.getVersionPrecision(s),l=s+new Array(c+1).join(".0");return W.map(l.split("."),m=>new Array(20-m.length).join("0")+m).reverse()});for(n&&(o=u-Math.min(a,r)),u-=1;u>=o;){if(i[0][u]>i[1][u])return 1;if(i[0][u]===i[1][u]){if(u===o)return 0;u-=1}else if(i[0][u]{n[o]=u[o]})}return e}static getBrowserAlias(e){return P2[e]}static getBrowserTypeByAlias(e){return d4[e]||""}},Oe=/version\/(\d+(\.?_?\d+)+)/i,M2=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=W.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=W.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=W.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=W.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=W.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=W.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=W.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=W.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=W.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=W.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=W.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=W.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=W.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=W.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=W.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=W.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=W.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=W.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=W.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=W.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=W.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=W.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=W.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=W.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=W.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=W.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=W.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,a=e.search("\\(")!==-1?n:t;return{name:W.getFirstMatch(a,e),version:W.getSecondMatch(a,e)}}}],F2=M2,_2=[{test:[/Roku\/DVP/],describe(e){let t=W.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:kt.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=W.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:kt.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=W.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=W.getWindowsVersionName(t);return{name:kt.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:kt.iOS},n=W.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=W.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=W.getMacOSVersionName(t),a={name:kt.MacOS,version:t};return n&&(a.versionName=n),a}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=W.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:kt.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=W.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=W.getAndroidVersionName(t),a={name:kt.Android,version:t};return n&&(a.versionName=n),a}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=W.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:kt.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=W.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||W.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||W.getFirstMatch(/\bbb(\d+)/i,e);return{name:kt.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=W.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:kt.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=W.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:kt.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:kt.Linux}}},{test:[/CrOS/],describe(){return{name:kt.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=W.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:kt.PlayStation4,version:t}}}],B2=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=W.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Ze.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Ze.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Ze.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Ze.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Ze.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Ze.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Ze.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=W.getFirstMatch(/(ipod|iphone)/i,e);return{type:Ze.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Ze.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Ze.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Ze.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Ze.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Ze.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Ze.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Ze.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Ze.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Ze.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Ze.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Ze.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Ze.tv}}}],R2=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Gn.Blink};let t=W.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Gn.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:Gn.Trident},n=W.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:Gn.Presto},n=W.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:Gn.Gecko},n=W.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Gn.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:Gn.WebKit},n=W.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],I2=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=W.find(F2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=W.find(_2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=W.find(B2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=W.find(R2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return W.assign({},this.parsedResult)}satisfies(e){let t={},n=0,a={},r=0;if(Object.keys(e).forEach(u=>{let o=e[u];typeof o=="string"?(a[u]=o,r+=1):typeof o=="object"&&(t[u]=o,n+=1)}),n>0){let u=Object.keys(t),o=W.find(u,s=>this.isOS(s));if(o){let s=this.satisfies(t[o]);if(s!==void 0)return s}let i=W.find(u,s=>this.isPlatform(s));if(i){let s=this.satisfies(t[i]);if(s!==void 0)return s}}if(r>0){let u=Object.keys(a),o=W.find(u,i=>this.isBrowser(i,!0));if(o!==void 0)return this.compareVersion(a[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),a=e.toLowerCase(),r=W.getBrowserTypeByAlias(a);return t&&r&&(a=r.toLowerCase()),a===n}compareVersion(e){let t=[0],n=e,a=!1,r=this.getBrowserVersion();if(typeof r=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(a=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(a=!0,n=e.substr(1)),t.indexOf(W.compareVersions(r,n,a))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},c4=I2,O2=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new c4(e,t)}static parse(e){return new c4(e).getResult()}static get BROWSER_MAP(){return d4}static get ENGINE_MAP(){return Gn}static get OS_MAP(){return kt}static get PLATFORMS_MAP(){return Ze}},Ua=O2;p();p();var{entries:x4,setPrototypeOf:m4,isFrozen:N2,getPrototypeOf:j2,getOwnPropertyDescriptor:z2}=Object,{freeze:St,seal:pn,create:U2}=Object,{apply:ss,construct:ls}=typeof Reflect<"u"&&Reflect;ss||(ss=function(e,t,n){return e.apply(t,n)});St||(St=function(e){return e});pn||(pn=function(e){return e});ls||(ls=function(e,t){return new e(...t)});var H2=nn(Array.prototype.forEach),g4=nn(Array.prototype.pop),Fr=nn(Array.prototype.push),ju=nn(String.prototype.toLowerCase),as=nn(String.prototype.toString),q2=nn(String.prototype.match),gn=nn(String.prototype.replace),W2=nn(String.prototype.indexOf),$2=nn(String.prototype.trim),$t=nn(RegExp.prototype.test),_r=K2(TypeError);function nn(e){return function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r/gm),Q2=pn(/\${[\w\W]*}/gm),Z2=pn(/^data-[\-\w.\u00B7-\uFFFF]/),X2=pn(/^aria-[\-\w]+$/),E4=pn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),e1=pn(/^(?:\w+script|data):/i),t1=pn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),T4=pn(/^html$/i),y4=Object.freeze({__proto__:null,MUSTACHE_EXPR:Y2,ERB_EXPR:J2,TMPLIT_EXPR:Q2,DATA_ATTR:Z2,ARIA_ATTR:X2,IS_ALLOWED_URI:E4,IS_SCRIPT_OR_DATA:e1,ATTR_WHITESPACE:t1,DOCTYPE_NAME:T4}),n1=()=>typeof window>"u"?null:window,a1=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,a="data-tt-policy-suffix";t&&t.hasAttribute(a)&&(n=t.getAttribute(a));let r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML(u){return u},createScriptURL(u){return u}})}catch{return null}};function C4(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:n1(),t=k=>C4(k);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,a=n.currentScript,{document:r}=e,{DocumentFragment:u,HTMLTemplateElement:o,Node:i,Element:s,NodeFilter:c,NamedNodeMap:l=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:m,DOMParser:g,trustedTypes:f}=e,d=s.prototype,b=Ou(d,"cloneNode"),T=Ou(d,"nextSibling"),h=Ou(d,"childNodes"),C=Ou(d,"parentNode");if(typeof o=="function"){let k=r.createElement("template");k.content&&k.content.ownerDocument&&(r=k.content.ownerDocument)}let v,O="",{implementation:B,createNodeIterator:x,createDocumentFragment:L,getElementsByTagName:M}=r,{importNode:w}=n,E={};t.isSupported=typeof x4=="function"&&typeof C=="function"&&B&&B.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:I,ERB_EXPR:F,TMPLIT_EXPR:A,DATA_ATTR:_,ARIA_ATTR:j,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:D}=y4,{IS_ALLOWED_URI:y}=y4,S=null,R=Ae({},[...p4,...rs,...us,...os,...f4]),$=null,z=Ae({},[...h4,...is,...b4,...Nu]),Y=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),q=null,ae=null,Q=!0,G=!0,pe=!1,fe=!0,re=!1,K=!1,oe=!1,me=!1,ce=!1,ye=!1,Se=!1,xe=!0,Z=!1,ke="user-content-",Pe=!0,Re=!1,Ne={},st=null,Ft=Ae({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),da=null,Ut=Ae({},["audio","video","img","source","image","track"]),An=null,Un=Ae({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ie="http://www.w3.org/1998/Math/MathML",Ht="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml",He=rt,Yt=!1,_t=null,Hn=Ae({},[Ie,Ht,rt],as),gt,dn=["application/xhtml+xml","text/html"],ze="text/html",H,de=null,$e=r.createElement("form"),Me=function(k){return k instanceof RegExp||k instanceof Function},_e=function(k){if(!(de&&de===k)){if((!k||typeof k!="object")&&(k={}),k=Ha(k),gt=dn.indexOf(k.PARSER_MEDIA_TYPE)===-1?gt=ze:gt=k.PARSER_MEDIA_TYPE,H=gt==="application/xhtml+xml"?as:ju,S="ALLOWED_TAGS"in k?Ae({},k.ALLOWED_TAGS,H):R,$="ALLOWED_ATTR"in k?Ae({},k.ALLOWED_ATTR,H):z,_t="ALLOWED_NAMESPACES"in k?Ae({},k.ALLOWED_NAMESPACES,as):Hn,An="ADD_URI_SAFE_ATTR"in k?Ae(Ha(Un),k.ADD_URI_SAFE_ATTR,H):Un,da="ADD_DATA_URI_TAGS"in k?Ae(Ha(Ut),k.ADD_DATA_URI_TAGS,H):Ut,st="FORBID_CONTENTS"in k?Ae({},k.FORBID_CONTENTS,H):Ft,q="FORBID_TAGS"in k?Ae({},k.FORBID_TAGS,H):{},ae="FORBID_ATTR"in k?Ae({},k.FORBID_ATTR,H):{},Ne="USE_PROFILES"in k?k.USE_PROFILES:!1,Q=k.ALLOW_ARIA_ATTR!==!1,G=k.ALLOW_DATA_ATTR!==!1,pe=k.ALLOW_UNKNOWN_PROTOCOLS||!1,fe=k.ALLOW_SELF_CLOSE_IN_ATTR!==!1,re=k.SAFE_FOR_TEMPLATES||!1,K=k.WHOLE_DOCUMENT||!1,ce=k.RETURN_DOM||!1,ye=k.RETURN_DOM_FRAGMENT||!1,Se=k.RETURN_TRUSTED_TYPE||!1,me=k.FORCE_BODY||!1,xe=k.SANITIZE_DOM!==!1,Z=k.SANITIZE_NAMED_PROPS||!1,Pe=k.KEEP_CONTENT!==!1,Re=k.IN_PLACE||!1,y=k.ALLOWED_URI_REGEXP||E4,He=k.NAMESPACE||rt,Y=k.CUSTOM_ELEMENT_HANDLING||{},k.CUSTOM_ELEMENT_HANDLING&&Me(k.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Y.tagNameCheck=k.CUSTOM_ELEMENT_HANDLING.tagNameCheck),k.CUSTOM_ELEMENT_HANDLING&&Me(k.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Y.attributeNameCheck=k.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),k.CUSTOM_ELEMENT_HANDLING&&typeof k.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Y.allowCustomizedBuiltInElements=k.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),re&&(G=!1),ye&&(ce=!0),Ne&&(S=Ae({},[...f4]),$=[],Ne.html===!0&&(Ae(S,p4),Ae($,h4)),Ne.svg===!0&&(Ae(S,rs),Ae($,is),Ae($,Nu)),Ne.svgFilters===!0&&(Ae(S,us),Ae($,is),Ae($,Nu)),Ne.mathMl===!0&&(Ae(S,os),Ae($,b4),Ae($,Nu))),k.ADD_TAGS&&(S===R&&(S=Ha(S)),Ae(S,k.ADD_TAGS,H)),k.ADD_ATTR&&($===z&&($=Ha($)),Ae($,k.ADD_ATTR,H)),k.ADD_URI_SAFE_ATTR&&Ae(An,k.ADD_URI_SAFE_ATTR,H),k.FORBID_CONTENTS&&(st===Ft&&(st=Ha(st)),Ae(st,k.FORBID_CONTENTS,H)),Pe&&(S["#text"]=!0),K&&Ae(S,["html","head","body"]),S.table&&(Ae(S,["tbody"]),delete q.tbody),k.TRUSTED_TYPES_POLICY){if(typeof k.TRUSTED_TYPES_POLICY.createHTML!="function")throw _r('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof k.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw _r('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=k.TRUSTED_TYPES_POLICY,O=v.createHTML("")}else v===void 0&&(v=a1(f,a)),v!==null&&typeof O=="string"&&(O=v.createHTML(""));St&&St(k),de=k}},Dn=Ae({},["mi","mo","mn","ms","mtext"]),Cn=Ae({},["foreignobject","desc","title","annotation-xml"]),Jt=Ae({},["title","style","font","a","script"]),Ba=Ae({},rs);Ae(Ba,us),Ae(Ba,G2);let Si=Ae({},os);Ae(Si,V2);let Lf=function(k){let ue=C(k);(!ue||!ue.tagName)&&(ue={namespaceURI:He,tagName:"template"});let X=ju(k.tagName),Be=ju(ue.tagName);return _t[k.namespaceURI]?k.namespaceURI===Ht?ue.namespaceURI===rt?X==="svg":ue.namespaceURI===Ie?X==="svg"&&(Be==="annotation-xml"||Dn[Be]):!!Ba[X]:k.namespaceURI===Ie?ue.namespaceURI===rt?X==="math":ue.namespaceURI===Ht?X==="math"&&Cn[Be]:!!Si[X]:k.namespaceURI===rt?ue.namespaceURI===Ht&&!Cn[Be]||ue.namespaceURI===Ie&&!Dn[Be]?!1:!Si[X]&&(Jt[X]||!Ba[X]):!!(gt==="application/xhtml+xml"&&_t[k.namespaceURI]):!1},Ra=function(k){Fr(t.removed,{element:k});try{k.parentNode.removeChild(k)}catch{k.remove()}},Ai=function(k,ue){try{Fr(t.removed,{attribute:ue.getAttributeNode(k),from:ue})}catch{Fr(t.removed,{attribute:null,from:ue})}if(ue.removeAttribute(k),k==="is"&&!$[k])if(ce||ye)try{Ra(ue)}catch{}else try{ue.setAttribute(k,"")}catch{}},rc=function(k){let ue,X;if(me)k=""+k;else{let vt=q2(k,/^[\r\n\t ]+/);X=vt&&vt[0]}gt==="application/xhtml+xml"&&He===rt&&(k=''+k+"");let Be=v?v.createHTML(k):k;if(He===rt)try{ue=new g().parseFromString(Be,gt)}catch{}if(!ue||!ue.documentElement){ue=B.createDocument(He,"template",null);try{ue.documentElement.innerHTML=Yt?O:Be}catch{}}let ut=ue.body||ue.documentElement;return k&&X&&ut.insertBefore(r.createTextNode(X),ut.childNodes[0]||null),He===rt?M.call(ue,K?"html":"body")[0]:K?ue.documentElement:ut},uc=function(k){return x.call(k.ownerDocument||k,k,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},Pf=function(k){return k instanceof m&&(typeof k.nodeName!="string"||typeof k.textContent!="string"||typeof k.removeChild!="function"||!(k.attributes instanceof l)||typeof k.removeAttribute!="function"||typeof k.setAttribute!="function"||typeof k.namespaceURI!="string"||typeof k.insertBefore!="function"||typeof k.hasChildNodes!="function")},xu=function(k){return typeof i=="object"?k instanceof i:k&&typeof k=="object"&&typeof k.nodeType=="number"&&typeof k.nodeName=="string"},Ln=function(k,ue,X){E[k]&&H2(E[k],Be=>{Be.call(t,ue,X,de)})},oc=function(k){let ue;if(Ln("beforeSanitizeElements",k,null),Pf(k))return Ra(k),!0;let X=H(k.nodeName);if(Ln("uponSanitizeElement",k,{tagName:X,allowedTags:S}),k.hasChildNodes()&&!xu(k.firstElementChild)&&(!xu(k.content)||!xu(k.content.firstElementChild))&&$t(/<[/\w]/g,k.innerHTML)&&$t(/<[/\w]/g,k.textContent))return Ra(k),!0;if(!S[X]||q[X]){if(!q[X]&&sc(X)&&(Y.tagNameCheck instanceof RegExp&&$t(Y.tagNameCheck,X)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(X)))return!1;if(Pe&&!st[X]){let Be=C(k)||k.parentNode,ut=h(k)||k.childNodes;if(ut&&Be){let vt=ut.length;for(let Bt=vt-1;Bt>=0;--Bt)Be.insertBefore(b(ut[Bt],!0),T(k))}}return Ra(k),!0}return k instanceof s&&!Lf(k)||(X==="noscript"||X==="noembed")&&$t(/<\/no(script|embed)/i,k.innerHTML)?(Ra(k),!0):(re&&k.nodeType===3&&(ue=k.textContent,ue=gn(ue,I," "),ue=gn(ue,F," "),ue=gn(ue,A," "),k.textContent!==ue&&(Fr(t.removed,{element:k.cloneNode()}),k.textContent=ue)),Ln("afterSanitizeElements",k,null),!1)},ic=function(k,ue,X){if(xe&&(ue==="id"||ue==="name")&&(X in r||X in $e))return!1;if(!(G&&!ae[ue]&&$t(_,ue))&&!(Q&&$t(j,ue))){if(!$[ue]||ae[ue]){if(!(sc(k)&&(Y.tagNameCheck instanceof RegExp&&$t(Y.tagNameCheck,k)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(k))&&(Y.attributeNameCheck instanceof RegExp&&$t(Y.attributeNameCheck,ue)||Y.attributeNameCheck instanceof Function&&Y.attributeNameCheck(ue))||ue==="is"&&Y.allowCustomizedBuiltInElements&&(Y.tagNameCheck instanceof RegExp&&$t(Y.tagNameCheck,X)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(X))))return!1}else if(!An[ue]&&!$t(y,gn(X,D,""))&&!((ue==="src"||ue==="xlink:href"||ue==="href")&&k!=="script"&&W2(X,"data:")===0&&da[k])&&!(pe&&!$t(N,gn(X,D,"")))&&X)return!1}return!0},sc=function(k){return k.indexOf("-")>0},lc=function(k){let ue,X,Be,ut;Ln("beforeSanitizeAttributes",k,null);let{attributes:vt}=k;if(!vt)return;let Bt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:$};for(ut=vt.length;ut--;){ue=vt[ut];let{name:lt,namespaceURI:Ia}=ue;if(X=lt==="value"?ue.value:$2(ue.value),Be=H(lt),Bt.attrName=Be,Bt.attrValue=X,Bt.keepAttr=!0,Bt.forceKeepAttr=void 0,Ln("uponSanitizeAttribute",k,Bt),X=Bt.attrValue,Bt.forceKeepAttr||(Ai(lt,k),!Bt.keepAttr))continue;if(!fe&&$t(/\/>/i,X)){Ai(lt,k);continue}re&&(X=gn(X,I," "),X=gn(X,F," "),X=gn(X,A," "));let cc=H(k.nodeName);if(ic(cc,Be,X)){if(Z&&(Be==="id"||Be==="name")&&(Ai(lt,k),X=ke+X),v&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!Ia)switch(f.getAttributeType(cc,Be)){case"TrustedHTML":{X=v.createHTML(X);break}case"TrustedScriptURL":{X=v.createScriptURL(X);break}}try{Ia?k.setAttributeNS(Ia,lt,X):k.setAttribute(lt,X),g4(t.removed)}catch{}}}Ln("afterSanitizeAttributes",k,null)},Mf=function k(ue){let X,Be=uc(ue);for(Ln("beforeSanitizeShadowDOM",ue,null);X=Be.nextNode();)Ln("uponSanitizeShadowNode",X,null),!oc(X)&&(X.content instanceof u&&k(X.content),lc(X));Ln("afterSanitizeShadowDOM",ue,null)};return t.sanitize=function(k){let ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X,Be,ut,vt;if(Yt=!k,Yt&&(k=""),typeof k!="string"&&!xu(k))if(typeof k.toString=="function"){if(k=k.toString(),typeof k!="string")throw _r("dirty is not a string, aborting")}else throw _r("toString is not a function");if(!t.isSupported)return k;if(oe||_e(ue),t.removed=[],typeof k=="string"&&(Re=!1),Re){if(k.nodeName){let Ia=H(k.nodeName);if(!S[Ia]||q[Ia])throw _r("root node is forbidden and cannot be sanitized in-place")}}else if(k instanceof i)X=rc(""),Be=X.ownerDocument.importNode(k,!0),Be.nodeType===1&&Be.nodeName==="BODY"||Be.nodeName==="HTML"?X=Be:X.appendChild(Be);else{if(!ce&&!re&&!K&&k.indexOf("<")===-1)return v&&Se?v.createHTML(k):k;if(X=rc(k),!X)return ce?null:Se?O:""}X&&me&&Ra(X.firstChild);let Bt=uc(Re?k:X);for(;ut=Bt.nextNode();)oc(ut)||(ut.content instanceof u&&Mf(ut.content),lc(ut));if(Re)return k;if(ce){if(ye)for(vt=L.call(X.ownerDocument);X.firstChild;)vt.appendChild(X.firstChild);else vt=X;return($.shadowroot||$.shadowrootmod)&&(vt=w.call(n,vt,!0)),vt}let lt=K?X.outerHTML:X.innerHTML;return K&&S["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&$t(T4,X.ownerDocument.doctype.name)&&(lt=" -`+lt),re&&(lt=gn(lt,I," "),lt=gn(lt,F," "),lt=gn(lt,A," ")),v&&Se?v.createHTML(lt):lt},t.setConfig=function(k){_e(k),oe=!0},t.clearConfig=function(){de=null,oe=!1},t.isValidAttribute=function(k,ue,X){de||_e({});let Be=H(k),ut=H(ue);return ic(Be,ut,X)},t.addHook=function(k,ue){typeof ue=="function"&&(E[k]=E[k]||[],Fr(E[k],ue))},t.removeHook=function(k){if(E[k])return g4(E[k])},t.removeHooks=function(k){E[k]&&(E[k]=[])},t.removeAllHooks=function(){E={}},t}var Le=C4();var r1=Bu.alert;p();p();p();p();var qa=console,cs=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),a=Math.round(n-this.#e),r=tn.green;a>1e4?r=tn.red:a>1e3&&(r=tn.yellow),qa.debug(tn.dim(ma+" TIMING:"),t,"in",r(a+"ms")),this.#e=n}},Br=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&qa.log(tn.dim(ma+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&qa.log(tn.green(ma+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&qa.warn(tn.yellow(ma+" WARN:"),...t)}error(...t){this.#e<=3&&qa.error(tn.red(ma+" ERROR:"),...t)}fatal(...t){this.#e<=4&&qa.error(tn.red(ma+" FATAL:"),...t)}timing(){return this.level===0?new cs:{reset:()=>{},stop:()=>{}}}},U=new Br;p();p();p();var ds=/iPhone/i,w4=/iPod/i,v4=/iPad/i,k4=/\biOS-universal(?:.+)Mac\b/i,ms=/\bAndroid(?:.+)Mobile\b/i,S4=/Android/i,Wa=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,zu=/Silk/i,Bn=/Windows Phone/i,A4=/\bWindows(?:.+)ARM\b/i,D4=/BlackBerry/i,L4=/BB10/i,P4=/Opera Mini/i,M4=/\b(CriOS|Chrome)(?:.+)Mobile/i,F4=/Mobile(?:.+)Firefox\b/i,_4=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function u1(e){return t=>t.test(e)}function fa(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,a=n.split("[FBAN");typeof a[1]<"u"&&(n=a[0]),a=n.split("Twitter"),typeof a[1]<"u"&&(n=a[0]);let r=u1(n),u={apple:{phone:r(ds)&&!r(Bn),ipod:r(w4),tablet:!r(ds)&&(r(v4)||_4(t))&&!r(Bn),universal:r(k4),device:(r(ds)||r(w4)||r(v4)||r(k4)||_4(t))&&!r(Bn)},amazon:{phone:r(Wa),tablet:!r(Wa)&&r(zu),device:r(Wa)||r(zu)},android:{phone:!r(Bn)&&r(Wa)||!r(Bn)&&r(ms),tablet:!r(Bn)&&!r(Wa)&&!r(ms)&&(r(zu)||r(S4)),device:!r(Bn)&&(r(Wa)||r(zu)||r(ms)||r(S4))||r(/\bokhttp\b/i)},windows:{phone:r(Bn),tablet:r(A4),device:r(Bn)||r(A4)},other:{blackberry:r(D4),blackberry10:r(L4),opera:r(P4),firefox:r(F4),chrome:r(M4),device:r(D4)||r(L4)||r(P4)||r(F4)||r(M4)},any:!1,phone:!1,tablet:!1};return u.any=u.apple.device||u.android.device||u.windows.device||u.other.device,u.phone=u.apple.phone||u.android.phone||u.windows.phone,u.tablet=u.apple.tablet||u.android.tablet||u.windows.tablet,u}var gs="DENO",Uu="CHROME",Hu="FIREFOX";function B4(e){let t=Uu;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=Hu:/deno/i.test(n)&&(t=gs)}catch{}return e===Uu&&t===Uu||e===Hu&&t===Hu||e===gs&&t===gs}function R4(){return B4(Uu)}function I4(){return typeof Deno<"u"}function qu(){return B4(Hu)}function O4(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function Rr(){return!!globalThis.matchMedia("(pointer:fine)").matches}p();var N4={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},j4={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:N4,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}}},tabs:{onUpdated:N4,query:()=>{},sendMessage:()=>{}}};var se;I4()?se=j4:se=globalThis.immersiveTranslateBrowserAPI;p();p();p();p();p();var E8=U4(2),z4=U4(3);function U4(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let a=[];if(n==null)return a;let r=typeof n.slice=="function"?n:String(n),u=r.length-e+1;if(u<1)return a;for(;u--;)a[u]=r.slice(u,u+e);return a}}p();var o1=/\s+/g,i1=/[\t\n\v\f\r ]+/g;function H4(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?s1:l1;return String(e).replace(t.style==="html"?i1:o1,t.trim?c1(n):n)}function s1(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function l1(){return" "}function c1(e){return t;function t(n,a,r){return a===0||a+n.length===r.length?"":e(n)}}var q4={}.hasOwnProperty;function d1(e){return e==null?"":H4(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function m1(e){return z4(" "+d1(e)+" ")}function g1(e){let t=m1(e),n={},a=-1;for(;++an&&(n=u,a=r)}return[a,n]}function E1(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function T1(e,t,n,a){t=w1(t,n,a);let r=[],u;if(t)for(u in t)Wu.call(t,u)&&r.push([u,C1(e,t[u])]);return r.length===0?fs():r.sort(v1)}function C1(e,t){let n=0,a=-1;for(;++at.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterso+i.length,0));let u=e.length-a;for(let o of B1){let i=o[1],s=o[0],c=e.match(i),l=c?c.length:0;l>n&&(n=l,t=s)}return n*2.5/u>.5?t==="zh-CN"?Q4(e)?"zh-TW":"zh-CN":t:"auto"}var X4=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],hs=new Map(X4),R1=new Map(X4.map(([e,t])=>[t,e]));function ed(e,t,n=["en"]){if(!e)return"auto";let a=n.map(i=>R1.get(i));!t&&t!==0&&(t=25);let r=Ku(e);if(r!=="auto")return r;let u={minLength:t,whitelist:[...hs.keys()]},o=K4(e,u);if(o&&o.length>0){for(let[l,m]of o)if(a.includes(l)&&m>.5)return hs.get(l);let[i,s]=o[0],c=hs.get(i);if(c&&s>.5)return c}return"auto"}p();p();var td=ge+"SyncStoreKey_";function At(e,t){let n=td+e;return se.storage.sync.get(n).then(a=>a[n]===void 0?t:a[n])}function je(e,t){let n=td+e;return se.storage.sync.set({[n]:t})}p();var nd=ge+"StoreKey_";function Rn(e,t){let n=nd+e;return se.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function ad(e,t){let n=nd+e;return se.storage.local.set({[n]:t})}p();var $a=ge+"CacheKey_";function I1(e,t){let n=$a+e;return se.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function O1(){let e=se.storage.local.refresh;e&&e()}function Or(e,t){let n=$a+e;return se.storage.local.get(n).then(a=>{if(a[n]===void 0)return t;let{value:r,expired:u}=a[n];return u&&ua.startsWith($a));if(n.length>0)return se.storage.local.remove(n)}}var Nt={get:I1,set:N1,getExpired:Or,setExpired:Nr,remove:jr,clear:j1,refresh:O1};p();p();p();var ot=class extends Error{details;constructor(t,n,a){super(n),this.name=t,a&&(this.details=a)}};async function ha(e){let t;if(e&&e.retry&&e.retry>0)try{t=await Ki(rd.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await rd(e);return t}async function rd(e){e.body;let{url:t,responseType:n,...a}=e;n||(n="json"),a={mode:"cors",...a};let r=!0;e.fetchPolyfill&&(r=!1);let u=e.fetchPolyfill||fetch,o=3e5;if(e.timeout&&(o=e.timeout),r){let s=new AbortController,c=s.signal;setTimeout(()=>{s.abort()},o),a.signal=c}let i;try{i=await u(t,a)}catch(s){U.debug("fetch error",t,s);let c=s.message||"";throw s.message="\u7F51\u7EDC\u95EE\u9898\uFF0C\u65E0\u6CD5\u8FDE\u63A5\u5230\u670D\u52A1\uFF0C\u8BF7\u68C0\u67E5\u4F60\u7684\u4EE3\u7406\u6216\u672C\u5730\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u8BD5\u3002 "+c,s}if(i.ok&&i.status>=200&&i.status<400){if(n==="json")return await i.json();if(n==="text")return await i.text();if(n==="raw"){let s=await i.text(),c=Object.fromEntries([...i.headers.entries()]),l=i.url;return l||(i.headers.get("X-Final-URL")?l=i.headers.get("X-Final-URL"):l=t),{body:s,headers:c,status:i.status,statusText:i.statusText,url:l}}else if(n==="stream"){let s="",c;if(i.body&&i.body instanceof ReadableStream)for await(let l of z1(i.body)){let m=new TextDecoder().decode(l);s+=m;let g;for(;(g=s.indexOf(` -`))>=0;){let f=s.slice(0,g).trim();if(s=s.slice(g+1),f.startsWith("event:")||f==="")continue;let d="";if(f.startsWith("data:")&&(d=f.slice(5).trim()),d==="[DONE]")break;let b;try{b=JSON.parse(d??"")}catch(T){U.debug("json error",T);continue}c=b}}return c}}else{let s;try{s=await i.text()}catch(f){U.error("parse response failed",f)}s&&U.error("fail response",s);let c="";s&&(c=s.slice(0,280));let l="\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u4EE3\u7801:"+i.status+": "+(i.statusText||"")+c,g=new URL(t).hostname.endsWith(".immersivetranslate.com");throw i.status===429?g?c.includes("quota exceeded")?l="ProQuota:"+c:l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${c} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`:l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A429\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===403?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A403\uFF0C \u8BF4\u660E\u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ${c}`:i.status===400?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A400\uFF0C \u8BF4\u660E\u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002 ${c}`:i.status===502?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A502\uFF0C \u8BF4\u660E\u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===401&&(l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A401\uFF0C \u8BF4\u660E\u672A\u767B\u5F55\u6216\u767B\u5F55\u6001\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002 ${c}`),new ot("fetchError",l,s)}}async function*z1(e){let t=e.getReader();try{for(;;){let{done:n,value:a}=await t.read();if(n)return;yield a}}finally{t.releaseLock()}}p();var U1=new Map;function Gu(e){let t=H1(64),n=new CustomEvent(xc,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((a,r)=>{U1.set(t,(u,o)=>{u?r(u):a(o)})})}function H1(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};function an(){return Vu.version}p();function nt(){try{return globalThis.self!==globalThis.top}catch{return!0}}p();var zr=new Map,Vn=class{fromType;logger;constructor(t,n=!1){this.logger=new Br,n&&this.logger.setLevel("debug"),this.fromType=t,zr.has(t)||(zr.set(t,new Map),se.runtime.onMessage.addListener((a,r,u)=>{let o=a.from,i=a.to,s,c,l;r.tab&&r.tab.id&&(s=r.tab.id,o=`${o}:${s}`,c=r.tab.url,l=r.tab.active),this.logger.debug(`${a.to} received message [${a.payload.method}] from ${a.from}`,a.payload.data?a.payload.data:" ");let m=ys(i),{type:g,name:f}=m;if(g!==t)return!1;let d=ys(o),T=zr.get(g).get(f);if(!T)return this.logger.debug(`no message handler for ${g}:${i}, but it's ok`),!1;let{messageHandler:h,sync:C}=T,v={type:t,name:d.name,id:s,url:c,active:l};if(C){try{let O=h(a.payload,v);u({ok:!0,data:O})}catch(O){u({ok:!1,errorName:O.name,errorMessage:O.message,errorDetails:O.details})}return!1}else return h(a.payload,v).then(O=>{u({ok:!0,data:O})}).catch(O=>{u({ok:!1,errorName:O.name,errorMessage:O.message,errorDetails:O.details})}),!0}))}getConnection(t,n,a){let r=!1;a&&a.sync&&(r=!0);let u=this.fromType,o=zr.get(u);if(o.has(t))return o.get(t).connectionInstance;{let i=new bs(`${u}:${t}`,this.logger);return zr.get(u).set(t,{messageHandler:n,sync:r,connectionInstance:i}),i}}},bs=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let a=ys(t),{type:r,id:u}=a;if(r!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let i=await se.runtime.sendMessage(o);return ud(o,i,this.logger)}catch(i){if(r==="popup"){let s=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(s,n,t,i),Promise.resolve({message:s})}else throw i}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let i=await se.tabs.sendMessage(u,o);return ud(o,i,this.logger)}}};function ud(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new ot(t.errorName||"UnknownError",t.errorMessage||"Unknown error",t.errorDetails)}else throw new ot("noResponse","Unknown error")}function ys(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let a=parseInt(t[2]);if(!isNaN(a))n.id=a;else throw new Error("tab id not a valid number")}return n}var Yu;function W1(){return Yu||(Yu=new Vn("content_script",!1).getConnection("pure_main",()=>{}),Yu)}var od="G-MKMD9LWFTR";async function Ur(e,t){try{let n=Qe();if(n.INSTALL_FROM==="firefox_store")return;let r=he(),u=nt(),o=n.PROD==="1",i="sitc4WmvShWYwfU0dANM3Q",s=await At("fakeUserId","");s||(s=await Rn("fakeUserId",""),s&&await je("fakeUserId",s));let c=an(),l=new Date,m=await At("installedAt","");m||(m=await Rn("installedAt",""),m&&await je("installedAt",m)),s?m||(m=new Date(0).toISOString(),await je("installedAt",m)):(s=$1(32),await je("fakeUserId",s)),m||(m=l.toISOString(),await je("installedAt",m));let g=new Date(m),f=id(g),d=id(l),b=f===d,T=l.getTime()-g.getTime()<7*24*60*60*1e3,h=`https://www.google-analytics.com/mp/collect?measurement_id=${od}&api_secret=${i}`;o||(h=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${od}&api_secret=${i}`);let C="";typeof navigator<"u"&&(C=window.navigator.userAgent);let v=Ua.parse(C),O=t.map(x=>{let L=x.params||{};return v.os&&(L.os_name=v.os.name||"unknown",L.os_version=v.os.version||"unknown",L.os_version_name=v.os.versionName||"unknown"),v.browser&&(L.browser_name=v.browser.name||"unknown",L.browser_version=v.browser.version||"unknown"),v.platform&&(L.platform_type=v.platform.type||"unknown"),v.engine&&(L.engine_name=v.engine.name||"unknown",L.engine_version=v.engine.version||"unknown"),c&&(L.version=c),n.INSTALL_FROM&&(L.install_from=n.INSTALL_FROM),f&&(L.install_day=K1(g)),L.userscript=r.toString(),b?L.is_new_user_today="1":L.is_new_user_today="0",T?L.is_new_user_this_week="1":L.is_new_user_this_week="0",u?L.main_frame=0:L.main_frame=1,{...x,params:L}}),B=await Ju({responseType:"text",url:h,method:"POST",body:JSON.stringify({client_id:s,user_id:s,events:O})})}catch{}}function $1(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r",""]},custom:{placeholderDelimiters:["{","}"]},bing:{maxTextLengthPerRequest:1800,placeholderDelimiters:["","","b"]},deeplx:{limit:3},d:{immediateTranslationTextCount:0},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},openai:{placeholderDelimiters:["{{","}}","b"],immediateTranslationTextCount:3e3,translationDebounce:300,interval:1350,prompt:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +`)}n.push(...g)}for(let r=0;r{let i=e.lastIndexOf(o,t);return i>u?i:u},-1);if(r===-1){let u=e.slice(0,t);if(u&&!u.trim())return;n.push({text:u,prefix:"",suffix:""}),e.length>t&&Ui(e.slice(t),t,n)}else{let u=e.slice(0,r+1);if(u&&u.trim()==="")return;u.startsWith(" ")?n.push({text:u.slice(1),prefix:" ",suffix:""}):n.push({text:u,prefix:"",suffix:""}),r+10){l.forEach(d=>{c.length>0&&d.providers&&d.providers.length>0&&!d.providers.includes(s)||(d.optional?g.push(d):m.push(d))});let f=g.concat(m).filter(d=>d.required);if(f.length>0){for(let d of f)if(!r[d.name]){i=!1;break}}}return{...a,id:t,selected:n[e]===t,ok:i,currentProvider:s,config:r,providers:a.providers||[],props:a.props||[],allProps:l,optionalProps:g,explicitProps:m}}var Hc=(e,t)=>{let{config:n}=e,a=n.alpha,r=n.beta,u=n.canary,o=n.debug,i=e.user,s=Zt(i);return Object.keys(Fn).filter(l=>{let m=Fn[l];if(l.startsWith("mock"))return o?!0:l===e.config[t];if(l===e.config[t])return!0;if(l==="openai"&&Xt())return e.config.showOpenaiOnSafari||s?!0:!!(r||a||u||s);let g=!!m.canary,f=!!m.alpha,d=!!m.beta;return l===e[t]||g&&u||f&&(a||u)||d&&(r||a||u)?!0:!f&&!d&&!g}).map(l=>Hi(t,l,e))};function $t(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}p();p();p();p();function Ua(){let e,t="pending",n=new Promise((a,r)=>{e={async resolve(u){await u,t="fulfilled",a(u)},reject(u){t="rejected",r(u)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}p();var qi=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function Mu(e,t){let n=Ua(),a=setTimeout(()=>n.reject(new qi),t);return Promise.race([e,n]).finally(()=>clearTimeout(a))}p();p();function Dr(e,t={}){let{signal:n,persistent:a}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((r,u)=>{let o=()=>{clearTimeout(s),u(new DOMException("Delay was aborted.","AbortError"))},s=setTimeout(()=>{n?.removeEventListener("abort",o),r()},e);if(n?.addEventListener("abort",o,{once:!0}),a===!1)try{Deno.unrefTimer(s)}catch(c){if(!(c instanceof ReferenceError))throw c}})}p();var qc=class{#e=0;#t=[];#n=[];#a=Ua();add(t){++this.#e,this.#r(t[Symbol.asyncIterator]())}async#r(t){try{let{value:n,done:a}=await t.next();a?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#a.resolve()}async*iterate(){for(;this.#e>0;){await this.#a;for(let t=0;tLh,bgBlue:()=>_h,bgBrightBlack:()=>Oh,bgBrightBlue:()=>Uh,bgBrightCyan:()=>qh,bgBrightGreen:()=>jh,bgBrightMagenta:()=>Hh,bgBrightRed:()=>Nh,bgBrightWhite:()=>Wh,bgBrightYellow:()=>zh,bgCyan:()=>Rh,bgGreen:()=>Mh,bgMagenta:()=>Bh,bgRed:()=>Ph,bgRgb24:()=>Vh,bgRgb8:()=>Kh,bgWhite:()=>Ih,bgYellow:()=>Fh,black:()=>gh,blue:()=>bh,bold:()=>oh,brightBlack:()=>Kc,brightBlue:()=>kh,brightCyan:()=>Ah,brightGreen:()=>wh,brightMagenta:()=>Sh,brightRed:()=>Ch,brightWhite:()=>Dh,brightYellow:()=>vh,cyan:()=>xh,dim:()=>ih,getColorEnabled:()=>rh,gray:()=>Th,green:()=>fh,hidden:()=>dh,inverse:()=>ch,italic:()=>sh,magenta:()=>yh,red:()=>ph,reset:()=>uh,rgb24:()=>Gh,rgb8:()=>$h,setColorEnabled:()=>ah,strikethrough:()=>mh,stripColor:()=>Jh,underline:()=>lh,white:()=>Eh,yellow:()=>hh});p();var{Deno:Wc}=globalThis,$c=typeof Wc?.noColor=="boolean"?Wc.noColor:!0,Wi=!$c;function ah(e){$c||(Wi=e)}function rh(){return Wi}function Te(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function Ce(e,t){return Wi?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function uh(e){return Ce(e,Te([0],0))}function oh(e){return Ce(e,Te([1],22))}function ih(e){return Ce(e,Te([2],22))}function sh(e){return Ce(e,Te([3],23))}function lh(e){return Ce(e,Te([4],24))}function ch(e){return Ce(e,Te([7],27))}function dh(e){return Ce(e,Te([8],28))}function mh(e){return Ce(e,Te([9],29))}function gh(e){return Ce(e,Te([30],39))}function ph(e){return Ce(e,Te([31],39))}function fh(e){return Ce(e,Te([32],39))}function hh(e){return Ce(e,Te([33],39))}function bh(e){return Ce(e,Te([34],39))}function yh(e){return Ce(e,Te([35],39))}function xh(e){return Ce(e,Te([36],39))}function Eh(e){return Ce(e,Te([37],39))}function Th(e){return Kc(e)}function Kc(e){return Ce(e,Te([90],39))}function Ch(e){return Ce(e,Te([91],39))}function wh(e){return Ce(e,Te([92],39))}function vh(e){return Ce(e,Te([93],39))}function kh(e){return Ce(e,Te([94],39))}function Sh(e){return Ce(e,Te([95],39))}function Ah(e){return Ce(e,Te([96],39))}function Dh(e){return Ce(e,Te([97],39))}function Lh(e){return Ce(e,Te([40],49))}function Ph(e){return Ce(e,Te([41],49))}function Mh(e){return Ce(e,Te([42],49))}function Fh(e){return Ce(e,Te([43],49))}function _h(e){return Ce(e,Te([44],49))}function Bh(e){return Ce(e,Te([45],49))}function Rh(e){return Ce(e,Te([46],49))}function Ih(e){return Ce(e,Te([47],49))}function Oh(e){return Ce(e,Te([100],49))}function Nh(e){return Ce(e,Te([101],49))}function jh(e){return Ce(e,Te([102],49))}function zh(e){return Ce(e,Te([103],49))}function Uh(e){return Ce(e,Te([104],49))}function Hh(e){return Ce(e,Te([105],49))}function qh(e){return Ce(e,Te([106],49))}function Wh(e){return Ce(e,Te([107],49))}function Kn(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function $h(e,t){return Ce(e,Te([38,5,Kn(t)],39))}function Kh(e,t){return Ce(e,Te([48,5,Kn(t)],49))}function Gh(e,t){return typeof t=="number"?Ce(e,Te([38,2,t>>16&255,t>>8&255,t&255],39)):Ce(e,Te([38,2,Kn(t.r),Kn(t.g),Kn(t.b)],39))}function Vh(e,t){return typeof t=="number"?Ce(e,Te([48,2,t>>16&255,t>>8&255,t&255],49)):Ce(e,Te([48,2,Kn(t.r),Kn(t.g),Kn(t.b)],49))}var Yh=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function Jh(e){return e.replace(Yh,"")}p();p();var $i=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},Qh={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function Ki(e,t){let n={...Qh,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let a=n.minTimeout,r;for(let u=0;usetTimeout(i,a)),a*=n.multiplier,a=Math.max(a,n.minTimeout),n.maxTimeout>=0&&(a=Math.min(a,n.maxTimeout)),r=o}throw new $i(r,n.maxAttempts)}p();var _n=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function Gi(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",a,r=t.length;for(a=2;a>2],n+=_n[(t[a-2]&3)<<4|t[a-1]>>4],n+=_n[(t[a-1]&15)<<2|t[a]>>6],n+=_n[t[a]&63];return a===r+1&&(n+=_n[t[a-2]>>2],n+=_n[(t[a-2]&3)<<4],n+="=="),a===r&&(n+=_n[t[a-2]>>2],n+=_n[(t[a-2]&3)<<4|t[a-1]>>4],n+=_n[(t[a-1]&15)<<2],n+="="),n}p();p();var tE=Number.isNaN||function(e){return typeof e=="number"&&e!==e};p();p();var Fu=globalThis||(typeof window<"u"?window:self),Xh=Object.create,Yi=Object.defineProperty,e2=Object.getOwnPropertyDescriptor,t2=Object.getOwnPropertyNames,n2=Object.getPrototypeOf,a2=Object.prototype.hasOwnProperty,r2=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),u2=(e,t)=>{for(var n in t)Yi(e,n,{get:t[n],enumerable:!0})},Vi=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of t2(t))!a2.call(e,r)&&r!==n&&Yi(e,r,{get:()=>t[r],enumerable:!(a=e2(t,r))||a.enumerable});return e},o2=(e,t,n)=>(Vi(e,t,"default"),n&&Vi(n,t,"default")),Vc=(e,t,n)=>(n=e!=null?Xh(n2(e)):{},Vi(t||!e||!e.__esModule?Yi(n,"default",{value:e,enumerable:!0}):n,e)),Yc=r2((e,t)=>{var n="Expected a function",a=NaN,r="[object Symbol]",u=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,l=typeof Fu=="object"&&Fu&&Fu.Object===Object&&Fu,m=typeof self=="object"&&self&&self.Object===Object&&self,g=l||m||Function("return this")(),f=Object.prototype,d=f.toString,b=Math.max,T=Math.min,h=function(){return g.Date.now()};function C(M,w,E){var I,F,A,_,j,N,D=0,y=!1,S=!1,R=!0;if(typeof M!="function")throw new TypeError(n);w=L(w)||0,O(E)&&(y=!!E.leading,S="maxWait"in E,A=S?b(L(E.maxWait)||0,w):A,R="trailing"in E?!!E.trailing:R);function $(re){var K=I,oe=F;return I=F=void 0,D=re,_=M.apply(oe,K),_}function z(re){return D=re,j=setTimeout(ae,w),y?$(re):_}function Y(re){var K=re-N,oe=re-D,me=w-K;return S?T(me,A-oe):me}function q(re){var K=re-N,oe=re-D;return N===void 0||K>=w||K<0||S&&oe>=A}function ae(){var re=h();if(q(re))return Q(re);j=setTimeout(ae,Y(re))}function Q(re){return j=void 0,R&&I?$(re):(I=F=void 0,_)}function G(){j!==void 0&&clearTimeout(j),D=0,I=N=F=j=void 0}function pe(){return j===void 0?_:Q(h())}function he(){var re=h(),K=q(re);if(I=arguments,F=this,N=re,K){if(j===void 0)return z(N);if(S)return j=setTimeout(ae,w),$(N)}return j===void 0&&(j=setTimeout(ae,w)),_}return he.cancel=G,he.flush=pe,he}function v(M,w,E){var I=!0,F=!0;if(typeof M!="function")throw new TypeError(n);return O(E)&&(I="leading"in E?!!E.leading:I,F="trailing"in E?!!E.trailing:F),C(M,w,{leading:I,maxWait:w,trailing:F})}function O(M){var w=typeof M;return!!M&&(w=="object"||w=="function")}function B(M){return!!M&&typeof M=="object"}function x(M){return typeof M=="symbol"||B(M)&&d.call(M)==r}function L(M){if(typeof M=="number")return M;if(x(M))return a;if(O(M)){var w=typeof M.valueOf=="function"?M.valueOf():M;M=O(w)?w+"":w}if(typeof M!="string")return M===0?M:+M;M=M.replace(u,"");var E=i.test(M);return E||s.test(M)?c(M.slice(2),E?2:8):o.test(M)?a:+M}t.exports=v}),Jc={};u2(Jc,{default:()=>xt});var i2=Vc(Yc());o2(Jc,Vc(Yc()));var{default:Gc,...s2}=i2,xt=Gc!==void 0?Gc:s2;p();p();var l2=Object.create,Qi=Object.defineProperty,c2=Object.getOwnPropertyDescriptor,d2=Object.getOwnPropertyNames,m2=Object.getPrototypeOf,g2=Object.prototype.hasOwnProperty,p2=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),f2=(e,t)=>{for(var n in t)Qi(e,n,{get:t[n],enumerable:!0})},Ji=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of d2(t))!g2.call(e,r)&&r!==n&&Qi(e,r,{get:()=>t[r],enumerable:!(a=c2(t,r))||a.enumerable});return e},h2=(e,t,n)=>(Ji(e,t,"default"),n&&Ji(n,t,"default")),Zc=(e,t,n)=>(n=e!=null?l2(m2(e)):{},Ji(t||!e||!e.__esModule?Qi(n,"default",{value:e,enumerable:!0}):n,e)),Xc=p2((e,t)=>{(function(n,a){typeof e=="object"&&typeof t=="object"?t.exports=a():typeof define=="function"&&define.amd?define([],a):typeof e=="object"?e.notie=a():n.notie=a()})(e,function(){return function(n){function a(u){if(r[u])return r[u].exports;var o=r[u]={i:u,l:!1,exports:{}};return n[u].call(o.exports,o,o.exports,a),o.l=!0,o.exports}var r={};return a.m=n,a.c=r,a.i=function(u){return u},a.d=function(u,o,i){a.o(u,o)||Object.defineProperty(u,o,{configurable:!1,enumerable:!0,get:i})},a.n=function(u){var o=u&&u.__esModule?function(){return u.default}:function(){return u};return a.d(o,"a",o),o},a.o=function(u,o){return Object.prototype.hasOwnProperty.call(u,o)},a.p="",a(a.s=1)}([function(n,a){n.exports=function(r){return r.webpackPolyfill||(r.deprecate=function(){},r.paths=[],r.children||(r.children=[]),Object.defineProperty(r,"loaded",{enumerable:!0,get:function(){return r.l}}),Object.defineProperty(r,"id",{enumerable:!0,get:function(){return r.i}}),r.webpackPolyfill=1),r}},function(n,a,r){"use strict";(function(u){var o,i,s,c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l};(function(l,m){c(a)==="object"&&c(u)==="object"?u.exports=m():(i=[],o=m,s=typeof o=="function"?o.apply(a,i):o,s!==void 0&&(u.exports=s))})(void 0,function(){return function(l){function m(f){if(g[f])return g[f].exports;var d=g[f]={i:f,l:!1,exports:{}};return l[f].call(d.exports,d,d.exports,m),d.l=!0,d.exports}var g={};return m.m=l,m.c=g,m.i=function(f){return f},m.d=function(f,d,b){m.o(f,d)||Object.defineProperty(f,d,{configurable:!1,enumerable:!0,get:b})},m.n=function(f){var d=f&&f.__esModule?function(){return f.default}:function(){return f};return m.d(d,"a",d),d},m.o=function(f,d){return Object.prototype.hasOwnProperty.call(f,d)},m.p="",m(m.s=0)}([function(l,m,g){function f(z,Y){var q={};for(var ae in z)Y.indexOf(ae)>=0||Object.prototype.hasOwnProperty.call(z,ae)&&(q[ae]=z[ae]);return q}Object.defineProperty(m,"__esModule",{value:!0});var d=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(z){return typeof z>"u"?"undefined":c(z)}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z>"u"?"undefined":c(z)},b=Object.assign||function(z){for(var Y=1;Y'+ae+"",oe.onclick=function(){return F(me,K)},oe.listener=function(ce){(w(ce)||E(ce))&&j()},I(oe,K),G&&G<1&&(G=1),!he&&G&&O(G).then(function(){return F(me,K)})},D=m.force=function(z,Y){var q=z.type,ae=q===void 0?5:q,Q=z.text,G=z.buttonText,pe=G===void 0?"OK":G,he=z.callback,re=z.position,K=re===void 0?h.positions.force||K.top:re;B(),j();var oe=document.createElement("div"),me=x();oe.id=me;var ce=document.createElement("div");ce.classList.add(h.classes.textbox),ce.classList.add(h.classes.backgroundInfo),ce.innerHTML='
'+Q+"
";var ye=document.createElement("div");ye.classList.add(h.classes.button),ye.classList.add(L[ae]),ye.innerHTML=pe,ye.onclick=function(){F(me,K),_(),he?he():Y&&Y()},oe.appendChild(ce),oe.appendChild(ye),oe.listener=function(Se){w(Se)&&ye.click()},I(oe,K),A()},y=m.confirm=function(z,Y,q){var ae=z.text,Q=z.submitText,G=Q===void 0?"Yes":Q,pe=z.cancelText,he=pe===void 0?"Cancel":pe,re=z.submitCallback,K=z.cancelCallback,oe=z.position,me=oe===void 0?h.positions.confirm||me.top:oe;B(),j();var ce=document.createElement("div"),ye=x();ce.id=ye;var Se=document.createElement("div");Se.classList.add(h.classes.textbox),Se.classList.add(h.classes.backgroundInfo),Se.innerHTML='
'+ae+"
";var xe=document.createElement("div");xe.classList.add(h.classes.button),xe.classList.add(h.classes.elementHalf),xe.classList.add(h.classes.backgroundSuccess),xe.innerHTML=G,xe.onclick=function(){F(ye,me),_(),re?re():Y&&Y()};var Z=document.createElement("div");Z.classList.add(h.classes.button),Z.classList.add(h.classes.elementHalf),Z.classList.add(h.classes.backgroundError),Z.innerHTML=he,Z.onclick=function(){F(ye,me),_(),K?K():q&&q()},ce.appendChild(Se),ce.appendChild(xe),ce.appendChild(Z),ce.listener=function(ke){w(ke)?xe.click():E(ke)&&Z.click()},I(ce,me),A(ce,me)},S=function(z,Y,q){var ae=z.text,Q=z.submitText,G=Q===void 0?"Submit":Q,pe=z.cancelText,he=pe===void 0?"Cancel":pe,re=z.submitCallback,K=z.cancelCallback,oe=z.position,me=oe===void 0?h.positions.input||me.top:oe,ce=f(z,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);B(),j();var ye=document.createElement("div"),Se=x();ye.id=Se;var xe=document.createElement("div");xe.classList.add(h.classes.textbox),xe.classList.add(h.classes.backgroundInfo),xe.innerHTML='
'+ae+"
";var Z=document.createElement("input");Z.classList.add(h.classes.inputField),Z.setAttribute("autocapitalize",ce.autocapitalize||"none"),Z.setAttribute("autocomplete",ce.autocomplete||"off"),Z.setAttribute("autocorrect",ce.autocorrect||"off"),Z.setAttribute("autofocus",ce.autofocus||"true"),Z.setAttribute("inputmode",ce.inputmode||"verbatim"),Z.setAttribute("max",ce.max||""),Z.setAttribute("maxlength",ce.maxlength||""),Z.setAttribute("min",ce.min||""),Z.setAttribute("minlength",ce.minlength||""),Z.setAttribute("placeholder",ce.placeholder||""),Z.setAttribute("spellcheck",ce.spellcheck||"default"),Z.setAttribute("step",ce.step||"any"),Z.setAttribute("type",ce.type||"text"),Z.value=ce.value||"",ce.allowed&&(Z.oninput=function(){var Re=void 0;if(Array.isArray(ce.allowed)){for(var Ne="",st=ce.allowed,Ft=0;Ft'+q+"",K.appendChild(me),pe.forEach(function(ye,Se){var xe=ye.type,Z=xe===void 0?1:xe,ke=ye.text,Pe=ye.handler,Re=document.createElement("div");Re.classList.add(L[Z]),Re.classList.add(h.classes.button),Re.classList.add(h.classes.selectChoice);var Ne=pe[Se+1];Ne&&!Ne.type&&(Ne.type=1),Ne&&Ne.type===Z&&Re.classList.add(h.classes.selectChoiceRepeated),Re.innerHTML=ke,Re.onclick=function(){F(oe,re),_(),Pe()},K.appendChild(Re)});var ce=document.createElement("div");ce.classList.add(h.classes.backgroundNeutral),ce.classList.add(h.classes.button),ce.innerHTML=Q,ce.onclick=function(){F(oe,re),_(),G?G():Y&&Y()},K.appendChild(ce),K.listener=function(ye){E(ye)&&ce.click()},I(K,re),A(K,re)},$=m.date=function(z,Y,q){var ae=z.value,Q=ae===void 0?new Date:ae,G=z.submitText,pe=G===void 0?"OK":G,he=z.cancelText,re=he===void 0?"Cancel":he,K=z.submitCallback,oe=z.cancelCallback,me=z.position,ce=me===void 0?h.positions.date||ce.top:me;B(),j();var ye="▾",Se=document.createElement("div"),xe=document.createElement("div"),Z=document.createElement("div"),ke=function(ze){Se.innerHTML=h.dateMonths[ze.getMonth()],xe.innerHTML=ze.getDate(),Z.innerHTML=ze.getFullYear()},Pe=function(ze){var H=new Date(Q.getFullYear(),Q.getMonth()+1,0).getDate(),de=ze.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(de)>H&&(de=H.toString()),ze.target.textContent=de,Number(de)<1&&(de="1"),Q.setDate(Number(de))},Re=function(ze){var H=ze.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);ze.target.textContent=H,Q.setFullYear(Number(H))},Ne=function(ze){ke(Q)},st=function(ze){var H=new Date(Q.getFullYear(),Q.getMonth()+ze+1,0).getDate();Q.getDate()>H&&Q.setDate(H),Q.setMonth(Q.getMonth()+ze),ke(Q)},Ft=function(ze){Q.setDate(Q.getDate()+ze),ke(Q)},da=function(ze){var H=Q.getFullYear()+ze;H<0?Q.setFullYear(0):Q.setFullYear(Q.getFullYear()+ze),ke(Q)},Ht=document.createElement("div"),An=x();Ht.id=An;var Un=document.createElement("div");Un.classList.add(h.classes.backgroundInfo);var Ie=document.createElement("div");Ie.classList.add(h.classes.dateSelectorInner);var qt=document.createElement("div");qt.classList.add(h.classes.button),qt.classList.add(h.classes.elementThird),qt.classList.add(h.classes.dateSelectorUp),qt.innerHTML=ye;var rt=document.createElement("div");rt.classList.add(h.classes.button),rt.classList.add(h.classes.elementThird),rt.classList.add(h.classes.dateSelectorUp),rt.innerHTML=ye;var He=document.createElement("div");He.classList.add(h.classes.button),He.classList.add(h.classes.elementThird),He.classList.add(h.classes.dateSelectorUp),He.innerHTML=ye,Se.classList.add(h.classes.element),Se.classList.add(h.classes.elementThird),Se.innerHTML=h.dateMonths[Q.getMonth()],xe.classList.add(h.classes.element),xe.classList.add(h.classes.elementThird),xe.setAttribute("contentEditable",!0),xe.addEventListener("input",Pe),xe.addEventListener("blur",Ne),xe.innerHTML=Q.getDate(),Z.classList.add(h.classes.element),Z.classList.add(h.classes.elementThird),Z.setAttribute("contentEditable",!0),Z.addEventListener("input",Re),Z.addEventListener("blur",Ne),Z.innerHTML=Q.getFullYear();var Jt=document.createElement("div");Jt.classList.add(h.classes.button),Jt.classList.add(h.classes.elementThird),Jt.innerHTML=ye;var _t=document.createElement("div");_t.classList.add(h.classes.button),_t.classList.add(h.classes.elementThird),_t.innerHTML=ye;var Hn=document.createElement("div");Hn.classList.add(h.classes.button),Hn.classList.add(h.classes.elementThird),Hn.innerHTML=ye,qt.onclick=function(){return st(1)},rt.onclick=function(){return Ft(1)},He.onclick=function(){return da(1)},Jt.onclick=function(){return st(-1)},_t.onclick=function(){return Ft(-1)},Hn.onclick=function(){return da(-1)};var gt=document.createElement("div");gt.classList.add(h.classes.button),gt.classList.add(h.classes.elementHalf),gt.classList.add(h.classes.backgroundSuccess),gt.innerHTML=pe,gt.onclick=function(){F(An,ce),_(),K?K(Q):Y&&Y(Q)};var dn=document.createElement("div");dn.classList.add(h.classes.button),dn.classList.add(h.classes.elementHalf),dn.classList.add(h.classes.backgroundError),dn.innerHTML=re,dn.onclick=function(){F(An,ce),_(),oe?oe(Q):q&&q(Q)},Ie.appendChild(qt),Ie.appendChild(rt),Ie.appendChild(He),Ie.appendChild(Se),Ie.appendChild(xe),Ie.appendChild(Z),Ie.appendChild(Jt),Ie.appendChild(_t),Ie.appendChild(Hn),Un.appendChild(Ie),Ht.appendChild(Un),Ht.appendChild(gt),Ht.appendChild(dn),Ht.listener=function(ze){w(ze)?gt.click():E(ze)&&dn.click()},I(Ht,ce),A(Ht,ce)};m.default={alert:N,force:D,confirm:y,input:S,select:R,date:$,setOptions:C,hideAlerts:j}}])})}).call(a,r(0)(n))}])})}),e4={};f2(e4,{default:()=>_u});var b2=Zc(Xc());h2(e4,Zc(Xc()));var{default:Qc,...y2}=b2,_u=Qc!==void 0?Qc:y2;p();p();var Zi=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Xi(e,t,n,a){e.addEventListener?e.addEventListener(t,n,a):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function u4(e,t){for(var n=t.slice(0,t.length-1),a=0;a=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function x2(e,t){for(var n=e.length>=t.length?e:t,a=e.length>=t.length?t:e,r=!0,u=0;u=0&&Ue.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Ue.splice(0,Ue.length),(t===93||t===224)&&(t=91),t in pt){pt[t]=!1;for(var a in vn)vn[a]===t&&(Ye[a]=!1)}}function D2(e){if(typeof e>"u")Object.keys(tt).forEach(function(o){return delete tt[o]});else if(Array.isArray(e))e.forEach(function(o){o.key&&es(o)});else if(typeof e=="object")e.key&&es(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a1?u4(vn,s):[];tt[m]=tt[m].filter(function(f){var d=a?f.method===a:!0;return!(d&&f.scope===n&&x2(f.mods,g))})}})};function n4(e,t,n,a){if(t.element===a){var r;if(t.scope===n||t.scope==="all"){r=t.mods.length>0;for(var u in pt)Object.prototype.hasOwnProperty.call(pt,u)&&(!pt[u]&&t.mods.indexOf(+u)>-1||pt[u]&&t.mods.indexOf(+u)===-1)&&(r=!1);(t.mods.length===0&&!pt[16]&&!pt[18]&&!pt[17]&&!pt[91]||r||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function a4(e,t){var n=tt["*"],a=e.keyCode||e.which||e.charCode;if(Ye.filter.call(this,e)){if((a===93||a===224)&&(a=91),Ue.indexOf(a)===-1&&a!==229&&Ue.push(a),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(d){var b=ns[d];e[d]&&Ue.indexOf(b)===-1?Ue.push(b):!e[d]&&Ue.indexOf(b)>-1?Ue.splice(Ue.indexOf(b),1):d==="metaKey"&&e[d]&&Ue.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Ue=Ue.slice(Ue.indexOf(b))))}),a in pt){pt[a]=!0;for(var r in vn)vn[r]===a&&(Ye[r]=!0);if(!n)return}for(var u in pt)Object.prototype.hasOwnProperty.call(pt,u)&&(pt[u]=e[ns[u]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Ue.indexOf(17)===-1&&Ue.push(17),Ue.indexOf(18)===-1&&Ue.push(18),pt[17]=!0,pt[18]=!0);var o=Mr();if(n)for(var i=0;i-1}function Ye(e,t,n){Ue=[];var a=o4(e),r=[],u="all",o=document,i=0,s=!1,c=!0,l="+",m=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(u=t.scope),t.element&&(o=t.element),t.keyup&&(s=t.keyup),t.keydown!==void 0&&(c=t.keydown),t.capture!==void 0&&(m=t.capture),typeof t.splitKey=="string"&&(l=t.splitKey)),typeof t=="string"&&(u=t);i1&&(r=u4(vn,e)),e=e[e.length-1],e=e==="*"?"*":Ru(e),e in tt||(tt[e]=[]),tt[e].push({keyup:s,keydown:c,scope:u,mods:r,shortcut:a[i],method:n,key:a[i],splitKey:l,element:o});typeof o<"u"&&!L2(o)&&window&&(s4.push(o),Xi(o,"keydown",function(g){a4(g,o)},m),t4||(t4=!0,Xi(window,"focus",function(){Ue=[]},m)),Xi(o,"keyup",function(g){a4(g,o),A2(g)},m))}function P2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(tt).forEach(function(n){var a=tt[n].filter(function(r){return r.scope===t&&r.shortcut===e});a.forEach(function(r){r&&r.method&&r.method()})})}var ts={getPressedKeyString:w2,setScope:l4,getScope:Mr,deleteScope:S2,getPressedKeyCodes:C2,isPressed:k2,filter:v2,trigger:P2,unbind:D2,keyMap:Pr,modifier:vn,modifierMap:ns};for(Bu in ts)Object.prototype.hasOwnProperty.call(ts,Bu)&&(Ye[Bu]=ts[Bu]);var Bu;typeof document<"u"&&(r4=window.hotkeys,Ye.noConflict=function(e){return e&&window.hotkeys===Ye&&(window.hotkeys=r4),Ye},window.hotkeys=Ye);var r4;p();p();var M2={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},d4={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Ze={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},kt={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Gn={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},W=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let a=W.getVersionPrecision(e),r=W.getVersionPrecision(t),u=Math.max(a,r),o=0,i=W.map([e,t],s=>{let c=u-W.getVersionPrecision(s),l=s+new Array(c+1).join(".0");return W.map(l.split("."),m=>new Array(20-m.length).join("0")+m).reverse()});for(n&&(o=u-Math.min(a,r)),u-=1;u>=o;){if(i[0][u]>i[1][u])return 1;if(i[0][u]===i[1][u]){if(u===o)return 0;u-=1}else if(i[0][u]{n[o]=u[o]})}return e}static getBrowserAlias(e){return M2[e]}static getBrowserTypeByAlias(e){return d4[e]||""}},Oe=/version\/(\d+(\.?_?\d+)+)/i,F2=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=W.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=W.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=W.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=W.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=W.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=W.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=W.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=W.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=W.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=W.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=W.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=W.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=W.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=W.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=W.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=W.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=W.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=W.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=W.getFirstMatch(Oe,e)||W.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=W.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=W.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=W.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=W.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=W.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=W.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=W.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=W.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=W.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=W.getFirstMatch(Oe,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,a=e.search("\\(")!==-1?n:t;return{name:W.getFirstMatch(a,e),version:W.getSecondMatch(a,e)}}}],_2=F2,B2=[{test:[/Roku\/DVP/],describe(e){let t=W.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:kt.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=W.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:kt.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=W.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=W.getWindowsVersionName(t);return{name:kt.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:kt.iOS},n=W.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=W.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=W.getMacOSVersionName(t),a={name:kt.MacOS,version:t};return n&&(a.versionName=n),a}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=W.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:kt.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=W.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=W.getAndroidVersionName(t),a={name:kt.Android,version:t};return n&&(a.versionName=n),a}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=W.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:kt.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=W.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||W.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||W.getFirstMatch(/\bbb(\d+)/i,e);return{name:kt.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=W.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:kt.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=W.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:kt.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:kt.Linux}}},{test:[/CrOS/],describe(){return{name:kt.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=W.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:kt.PlayStation4,version:t}}}],R2=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=W.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Ze.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Ze.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Ze.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Ze.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Ze.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Ze.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Ze.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=W.getFirstMatch(/(ipod|iphone)/i,e);return{type:Ze.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Ze.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Ze.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Ze.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Ze.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Ze.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Ze.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Ze.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Ze.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Ze.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Ze.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Ze.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Ze.tv}}}],I2=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Gn.Blink};let t=W.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Gn.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:Gn.Trident},n=W.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:Gn.Presto},n=W.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:Gn.Gecko},n=W.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Gn.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:Gn.WebKit},n=W.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],O2=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=W.find(_2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=W.find(B2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=W.find(R2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=W.find(I2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return W.assign({},this.parsedResult)}satisfies(e){let t={},n=0,a={},r=0;if(Object.keys(e).forEach(u=>{let o=e[u];typeof o=="string"?(a[u]=o,r+=1):typeof o=="object"&&(t[u]=o,n+=1)}),n>0){let u=Object.keys(t),o=W.find(u,s=>this.isOS(s));if(o){let s=this.satisfies(t[o]);if(s!==void 0)return s}let i=W.find(u,s=>this.isPlatform(s));if(i){let s=this.satisfies(t[i]);if(s!==void 0)return s}}if(r>0){let u=Object.keys(a),o=W.find(u,i=>this.isBrowser(i,!0));if(o!==void 0)return this.compareVersion(a[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),a=e.toLowerCase(),r=W.getBrowserTypeByAlias(a);return t&&r&&(a=r.toLowerCase()),a===n}compareVersion(e){let t=[0],n=e,a=!1,r=this.getBrowserVersion();if(typeof r=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(a=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(a=!0,n=e.substr(1)),t.indexOf(W.compareVersions(r,n,a))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},c4=O2,N2=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new c4(e,t)}static parse(e){return new c4(e).getResult()}static get BROWSER_MAP(){return d4}static get ENGINE_MAP(){return Gn}static get OS_MAP(){return kt}static get PLATFORMS_MAP(){return Ze}},Ha=N2;p();p();var{entries:x4,setPrototypeOf:m4,isFrozen:j2,getPrototypeOf:z2,getOwnPropertyDescriptor:U2}=Object,{freeze:St,seal:pn,create:H2}=Object,{apply:ss,construct:ls}=typeof Reflect<"u"&&Reflect;ss||(ss=function(e,t,n){return e.apply(t,n)});St||(St=function(e){return e});pn||(pn=function(e){return e});ls||(ls=function(e,t){return new e(...t)});var q2=nn(Array.prototype.forEach),g4=nn(Array.prototype.pop),Fr=nn(Array.prototype.push),Nu=nn(String.prototype.toLowerCase),as=nn(String.prototype.toString),W2=nn(String.prototype.match),gn=nn(String.prototype.replace),$2=nn(String.prototype.indexOf),K2=nn(String.prototype.trim),Kt=nn(RegExp.prototype.test),_r=G2(TypeError);function nn(e){return function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r/gm),Z2=pn(/\${[\w\W]*}/gm),X2=pn(/^data-[\-\w.\u00B7-\uFFFF]/),e1=pn(/^aria-[\-\w]+$/),E4=pn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),t1=pn(/^(?:\w+script|data):/i),n1=pn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),T4=pn(/^html$/i),y4=Object.freeze({__proto__:null,MUSTACHE_EXPR:J2,ERB_EXPR:Q2,TMPLIT_EXPR:Z2,DATA_ATTR:X2,ARIA_ATTR:e1,IS_ALLOWED_URI:E4,IS_SCRIPT_OR_DATA:t1,ATTR_WHITESPACE:n1,DOCTYPE_NAME:T4}),a1=()=>typeof window>"u"?null:window,r1=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,a="data-tt-policy-suffix";t&&t.hasAttribute(a)&&(n=t.getAttribute(a));let r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML(u){return u},createScriptURL(u){return u}})}catch{return null}};function C4(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a1(),t=k=>C4(k);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,a=n.currentScript,{document:r}=e,{DocumentFragment:u,HTMLTemplateElement:o,Node:i,Element:s,NodeFilter:c,NamedNodeMap:l=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:m,DOMParser:g,trustedTypes:f}=e,d=s.prototype,b=Iu(d,"cloneNode"),T=Iu(d,"nextSibling"),h=Iu(d,"childNodes"),C=Iu(d,"parentNode");if(typeof o=="function"){let k=r.createElement("template");k.content&&k.content.ownerDocument&&(r=k.content.ownerDocument)}let v,O="",{implementation:B,createNodeIterator:x,createDocumentFragment:L,getElementsByTagName:M}=r,{importNode:w}=n,E={};t.isSupported=typeof x4=="function"&&typeof C=="function"&&B&&B.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:I,ERB_EXPR:F,TMPLIT_EXPR:A,DATA_ATTR:_,ARIA_ATTR:j,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:D}=y4,{IS_ALLOWED_URI:y}=y4,S=null,R=Ae({},[...p4,...rs,...us,...os,...f4]),$=null,z=Ae({},[...h4,...is,...b4,...Ou]),Y=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),q=null,ae=null,Q=!0,G=!0,pe=!1,he=!0,re=!1,K=!1,oe=!1,me=!1,ce=!1,ye=!1,Se=!1,xe=!0,Z=!1,ke="user-content-",Pe=!0,Re=!1,Ne={},st=null,Ft=Ae({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),da=null,Ht=Ae({},["audio","video","img","source","image","track"]),An=null,Un=Ae({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ie="http://www.w3.org/1998/Math/MathML",qt="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml",He=rt,Jt=!1,_t=null,Hn=Ae({},[Ie,qt,rt],as),gt,dn=["application/xhtml+xml","text/html"],ze="text/html",H,de=null,$e=r.createElement("form"),Me=function(k){return k instanceof RegExp||k instanceof Function},_e=function(k){if(!(de&&de===k)){if((!k||typeof k!="object")&&(k={}),k=qa(k),gt=dn.indexOf(k.PARSER_MEDIA_TYPE)===-1?gt=ze:gt=k.PARSER_MEDIA_TYPE,H=gt==="application/xhtml+xml"?as:Nu,S="ALLOWED_TAGS"in k?Ae({},k.ALLOWED_TAGS,H):R,$="ALLOWED_ATTR"in k?Ae({},k.ALLOWED_ATTR,H):z,_t="ALLOWED_NAMESPACES"in k?Ae({},k.ALLOWED_NAMESPACES,as):Hn,An="ADD_URI_SAFE_ATTR"in k?Ae(qa(Un),k.ADD_URI_SAFE_ATTR,H):Un,da="ADD_DATA_URI_TAGS"in k?Ae(qa(Ht),k.ADD_DATA_URI_TAGS,H):Ht,st="FORBID_CONTENTS"in k?Ae({},k.FORBID_CONTENTS,H):Ft,q="FORBID_TAGS"in k?Ae({},k.FORBID_TAGS,H):{},ae="FORBID_ATTR"in k?Ae({},k.FORBID_ATTR,H):{},Ne="USE_PROFILES"in k?k.USE_PROFILES:!1,Q=k.ALLOW_ARIA_ATTR!==!1,G=k.ALLOW_DATA_ATTR!==!1,pe=k.ALLOW_UNKNOWN_PROTOCOLS||!1,he=k.ALLOW_SELF_CLOSE_IN_ATTR!==!1,re=k.SAFE_FOR_TEMPLATES||!1,K=k.WHOLE_DOCUMENT||!1,ce=k.RETURN_DOM||!1,ye=k.RETURN_DOM_FRAGMENT||!1,Se=k.RETURN_TRUSTED_TYPE||!1,me=k.FORCE_BODY||!1,xe=k.SANITIZE_DOM!==!1,Z=k.SANITIZE_NAMED_PROPS||!1,Pe=k.KEEP_CONTENT!==!1,Re=k.IN_PLACE||!1,y=k.ALLOWED_URI_REGEXP||E4,He=k.NAMESPACE||rt,Y=k.CUSTOM_ELEMENT_HANDLING||{},k.CUSTOM_ELEMENT_HANDLING&&Me(k.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Y.tagNameCheck=k.CUSTOM_ELEMENT_HANDLING.tagNameCheck),k.CUSTOM_ELEMENT_HANDLING&&Me(k.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Y.attributeNameCheck=k.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),k.CUSTOM_ELEMENT_HANDLING&&typeof k.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Y.allowCustomizedBuiltInElements=k.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),re&&(G=!1),ye&&(ce=!0),Ne&&(S=Ae({},[...f4]),$=[],Ne.html===!0&&(Ae(S,p4),Ae($,h4)),Ne.svg===!0&&(Ae(S,rs),Ae($,is),Ae($,Ou)),Ne.svgFilters===!0&&(Ae(S,us),Ae($,is),Ae($,Ou)),Ne.mathMl===!0&&(Ae(S,os),Ae($,b4),Ae($,Ou))),k.ADD_TAGS&&(S===R&&(S=qa(S)),Ae(S,k.ADD_TAGS,H)),k.ADD_ATTR&&($===z&&($=qa($)),Ae($,k.ADD_ATTR,H)),k.ADD_URI_SAFE_ATTR&&Ae(An,k.ADD_URI_SAFE_ATTR,H),k.FORBID_CONTENTS&&(st===Ft&&(st=qa(st)),Ae(st,k.FORBID_CONTENTS,H)),Pe&&(S["#text"]=!0),K&&Ae(S,["html","head","body"]),S.table&&(Ae(S,["tbody"]),delete q.tbody),k.TRUSTED_TYPES_POLICY){if(typeof k.TRUSTED_TYPES_POLICY.createHTML!="function")throw _r('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof k.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw _r('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=k.TRUSTED_TYPES_POLICY,O=v.createHTML("")}else v===void 0&&(v=r1(f,a)),v!==null&&typeof O=="string"&&(O=v.createHTML(""));St&&St(k),de=k}},Dn=Ae({},["mi","mo","mn","ms","mtext"]),Cn=Ae({},["foreignobject","desc","title","annotation-xml"]),Qt=Ae({},["title","style","font","a","script"]),Ra=Ae({},rs);Ae(Ra,us),Ae(Ra,V2);let Si=Ae({},os);Ae(Si,Y2);let Pf=function(k){let ue=C(k);(!ue||!ue.tagName)&&(ue={namespaceURI:He,tagName:"template"});let X=Nu(k.tagName),Be=Nu(ue.tagName);return _t[k.namespaceURI]?k.namespaceURI===qt?ue.namespaceURI===rt?X==="svg":ue.namespaceURI===Ie?X==="svg"&&(Be==="annotation-xml"||Dn[Be]):!!Ra[X]:k.namespaceURI===Ie?ue.namespaceURI===rt?X==="math":ue.namespaceURI===qt?X==="math"&&Cn[Be]:!!Si[X]:k.namespaceURI===rt?ue.namespaceURI===qt&&!Cn[Be]||ue.namespaceURI===Ie&&!Dn[Be]?!1:!Si[X]&&(Qt[X]||!Ra[X]):!!(gt==="application/xhtml+xml"&&_t[k.namespaceURI]):!1},Ia=function(k){Fr(t.removed,{element:k});try{k.parentNode.removeChild(k)}catch{k.remove()}},Ai=function(k,ue){try{Fr(t.removed,{attribute:ue.getAttributeNode(k),from:ue})}catch{Fr(t.removed,{attribute:null,from:ue})}if(ue.removeAttribute(k),k==="is"&&!$[k])if(ce||ye)try{Ia(ue)}catch{}else try{ue.setAttribute(k,"")}catch{}},rc=function(k){let ue,X;if(me)k=""+k;else{let vt=W2(k,/^[\r\n\t ]+/);X=vt&&vt[0]}gt==="application/xhtml+xml"&&He===rt&&(k=''+k+"");let Be=v?v.createHTML(k):k;if(He===rt)try{ue=new g().parseFromString(Be,gt)}catch{}if(!ue||!ue.documentElement){ue=B.createDocument(He,"template",null);try{ue.documentElement.innerHTML=Jt?O:Be}catch{}}let ut=ue.body||ue.documentElement;return k&&X&&ut.insertBefore(r.createTextNode(X),ut.childNodes[0]||null),He===rt?M.call(ue,K?"html":"body")[0]:K?ue.documentElement:ut},uc=function(k){return x.call(k.ownerDocument||k,k,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},Mf=function(k){return k instanceof m&&(typeof k.nodeName!="string"||typeof k.textContent!="string"||typeof k.removeChild!="function"||!(k.attributes instanceof l)||typeof k.removeAttribute!="function"||typeof k.setAttribute!="function"||typeof k.namespaceURI!="string"||typeof k.insertBefore!="function"||typeof k.hasChildNodes!="function")},yu=function(k){return typeof i=="object"?k instanceof i:k&&typeof k=="object"&&typeof k.nodeType=="number"&&typeof k.nodeName=="string"},Ln=function(k,ue,X){E[k]&&q2(E[k],Be=>{Be.call(t,ue,X,de)})},oc=function(k){let ue;if(Ln("beforeSanitizeElements",k,null),Mf(k))return Ia(k),!0;let X=H(k.nodeName);if(Ln("uponSanitizeElement",k,{tagName:X,allowedTags:S}),k.hasChildNodes()&&!yu(k.firstElementChild)&&(!yu(k.content)||!yu(k.content.firstElementChild))&&Kt(/<[/\w]/g,k.innerHTML)&&Kt(/<[/\w]/g,k.textContent))return Ia(k),!0;if(!S[X]||q[X]){if(!q[X]&&sc(X)&&(Y.tagNameCheck instanceof RegExp&&Kt(Y.tagNameCheck,X)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(X)))return!1;if(Pe&&!st[X]){let Be=C(k)||k.parentNode,ut=h(k)||k.childNodes;if(ut&&Be){let vt=ut.length;for(let Bt=vt-1;Bt>=0;--Bt)Be.insertBefore(b(ut[Bt],!0),T(k))}}return Ia(k),!0}return k instanceof s&&!Pf(k)||(X==="noscript"||X==="noembed")&&Kt(/<\/no(script|embed)/i,k.innerHTML)?(Ia(k),!0):(re&&k.nodeType===3&&(ue=k.textContent,ue=gn(ue,I," "),ue=gn(ue,F," "),ue=gn(ue,A," "),k.textContent!==ue&&(Fr(t.removed,{element:k.cloneNode()}),k.textContent=ue)),Ln("afterSanitizeElements",k,null),!1)},ic=function(k,ue,X){if(xe&&(ue==="id"||ue==="name")&&(X in r||X in $e))return!1;if(!(G&&!ae[ue]&&Kt(_,ue))&&!(Q&&Kt(j,ue))){if(!$[ue]||ae[ue]){if(!(sc(k)&&(Y.tagNameCheck instanceof RegExp&&Kt(Y.tagNameCheck,k)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(k))&&(Y.attributeNameCheck instanceof RegExp&&Kt(Y.attributeNameCheck,ue)||Y.attributeNameCheck instanceof Function&&Y.attributeNameCheck(ue))||ue==="is"&&Y.allowCustomizedBuiltInElements&&(Y.tagNameCheck instanceof RegExp&&Kt(Y.tagNameCheck,X)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(X))))return!1}else if(!An[ue]&&!Kt(y,gn(X,D,""))&&!((ue==="src"||ue==="xlink:href"||ue==="href")&&k!=="script"&&$2(X,"data:")===0&&da[k])&&!(pe&&!Kt(N,gn(X,D,"")))&&X)return!1}return!0},sc=function(k){return k.indexOf("-")>0},lc=function(k){let ue,X,Be,ut;Ln("beforeSanitizeAttributes",k,null);let{attributes:vt}=k;if(!vt)return;let Bt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:$};for(ut=vt.length;ut--;){ue=vt[ut];let{name:lt,namespaceURI:Oa}=ue;if(X=lt==="value"?ue.value:K2(ue.value),Be=H(lt),Bt.attrName=Be,Bt.attrValue=X,Bt.keepAttr=!0,Bt.forceKeepAttr=void 0,Ln("uponSanitizeAttribute",k,Bt),X=Bt.attrValue,Bt.forceKeepAttr||(Ai(lt,k),!Bt.keepAttr))continue;if(!he&&Kt(/\/>/i,X)){Ai(lt,k);continue}re&&(X=gn(X,I," "),X=gn(X,F," "),X=gn(X,A," "));let cc=H(k.nodeName);if(ic(cc,Be,X)){if(Z&&(Be==="id"||Be==="name")&&(Ai(lt,k),X=ke+X),v&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!Oa)switch(f.getAttributeType(cc,Be)){case"TrustedHTML":{X=v.createHTML(X);break}case"TrustedScriptURL":{X=v.createScriptURL(X);break}}try{Oa?k.setAttributeNS(Oa,lt,X):k.setAttribute(lt,X),g4(t.removed)}catch{}}}Ln("afterSanitizeAttributes",k,null)},Ff=function k(ue){let X,Be=uc(ue);for(Ln("beforeSanitizeShadowDOM",ue,null);X=Be.nextNode();)Ln("uponSanitizeShadowNode",X,null),!oc(X)&&(X.content instanceof u&&k(X.content),lc(X));Ln("afterSanitizeShadowDOM",ue,null)};return t.sanitize=function(k){let ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X,Be,ut,vt;if(Jt=!k,Jt&&(k=""),typeof k!="string"&&!yu(k))if(typeof k.toString=="function"){if(k=k.toString(),typeof k!="string")throw _r("dirty is not a string, aborting")}else throw _r("toString is not a function");if(!t.isSupported)return k;if(oe||_e(ue),t.removed=[],typeof k=="string"&&(Re=!1),Re){if(k.nodeName){let Oa=H(k.nodeName);if(!S[Oa]||q[Oa])throw _r("root node is forbidden and cannot be sanitized in-place")}}else if(k instanceof i)X=rc(""),Be=X.ownerDocument.importNode(k,!0),Be.nodeType===1&&Be.nodeName==="BODY"||Be.nodeName==="HTML"?X=Be:X.appendChild(Be);else{if(!ce&&!re&&!K&&k.indexOf("<")===-1)return v&&Se?v.createHTML(k):k;if(X=rc(k),!X)return ce?null:Se?O:""}X&&me&&Ia(X.firstChild);let Bt=uc(Re?k:X);for(;ut=Bt.nextNode();)oc(ut)||(ut.content instanceof u&&Ff(ut.content),lc(ut));if(Re)return k;if(ce){if(ye)for(vt=L.call(X.ownerDocument);X.firstChild;)vt.appendChild(X.firstChild);else vt=X;return($.shadowroot||$.shadowrootmod)&&(vt=w.call(n,vt,!0)),vt}let lt=K?X.outerHTML:X.innerHTML;return K&&S["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&Kt(T4,X.ownerDocument.doctype.name)&&(lt=" +`+lt),re&&(lt=gn(lt,I," "),lt=gn(lt,F," "),lt=gn(lt,A," ")),v&&Se?v.createHTML(lt):lt},t.setConfig=function(k){_e(k),oe=!0},t.clearConfig=function(){de=null,oe=!1},t.isValidAttribute=function(k,ue,X){de||_e({});let Be=H(k),ut=H(ue);return ic(Be,ut,X)},t.addHook=function(k,ue){typeof ue=="function"&&(E[k]=E[k]||[],Fr(E[k],ue))},t.removeHook=function(k){if(E[k])return g4(E[k])},t.removeHooks=function(k){E[k]&&(E[k]=[])},t.removeAllHooks=function(){E={}},t}var Le=C4();var u1=_u.alert;p();p();p();p();var Wa=console,cs=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),a=Math.round(n-this.#e),r=tn.green;a>1e4?r=tn.red:a>1e3&&(r=tn.yellow),Wa.debug(tn.dim(ma+" TIMING:"),t,"in",r(a+"ms")),this.#e=n}},Br=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&Wa.log(tn.dim(ma+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&Wa.log(tn.green(ma+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&Wa.warn(tn.yellow(ma+" WARN:"),...t)}error(...t){this.#e<=3&&Wa.error(tn.red(ma+" ERROR:"),...t)}fatal(...t){this.#e<=4&&Wa.error(tn.red(ma+" FATAL:"),...t)}timing(){return this.level===0?new cs:{reset:()=>{},stop:()=>{}}}},U=new Br;p();p();p();var ds=/iPhone/i,w4=/iPod/i,v4=/iPad/i,k4=/\biOS-universal(?:.+)Mac\b/i,ms=/\bAndroid(?:.+)Mobile\b/i,S4=/Android/i,$a=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,ju=/Silk/i,Bn=/Windows Phone/i,A4=/\bWindows(?:.+)ARM\b/i,D4=/BlackBerry/i,L4=/BB10/i,P4=/Opera Mini/i,M4=/\b(CriOS|Chrome)(?:.+)Mobile/i,F4=/Mobile(?:.+)Firefox\b/i,_4=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function o1(e){return t=>t.test(e)}function fa(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,a=n.split("[FBAN");typeof a[1]<"u"&&(n=a[0]),a=n.split("Twitter"),typeof a[1]<"u"&&(n=a[0]);let r=o1(n),u={apple:{phone:r(ds)&&!r(Bn),ipod:r(w4),tablet:!r(ds)&&(r(v4)||_4(t))&&!r(Bn),universal:r(k4),device:(r(ds)||r(w4)||r(v4)||r(k4)||_4(t))&&!r(Bn)},amazon:{phone:r($a),tablet:!r($a)&&r(ju),device:r($a)||r(ju)},android:{phone:!r(Bn)&&r($a)||!r(Bn)&&r(ms),tablet:!r(Bn)&&!r($a)&&!r(ms)&&(r(ju)||r(S4)),device:!r(Bn)&&(r($a)||r(ju)||r(ms)||r(S4))||r(/\bokhttp\b/i)},windows:{phone:r(Bn),tablet:r(A4),device:r(Bn)||r(A4)},other:{blackberry:r(D4),blackberry10:r(L4),opera:r(P4),firefox:r(F4),chrome:r(M4),device:r(D4)||r(L4)||r(P4)||r(F4)||r(M4)},any:!1,phone:!1,tablet:!1};return u.any=u.apple.device||u.android.device||u.windows.device||u.other.device,u.phone=u.apple.phone||u.android.phone||u.windows.phone,u.tablet=u.apple.tablet||u.android.tablet||u.windows.tablet,u}var gs="DENO",zu="CHROME",Uu="FIREFOX";function B4(e){let t=zu;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=Uu:/deno/i.test(n)&&(t=gs)}catch{}return e===zu&&t===zu||e===Uu&&t===Uu||e===gs&&t===gs}function R4(){return B4(zu)}function I4(){return typeof Deno<"u"}function Hu(){return B4(Uu)}function O4(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function Rr(){return!!globalThis.matchMedia("(pointer:fine)").matches}p();var N4={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},j4={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:N4,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}}},tabs:{onUpdated:N4,query:()=>{},sendMessage:()=>{}}};var se;I4()?se=j4:se=globalThis.immersiveTranslateBrowserAPI;p();p();p();p();p();var E8=U4(2),z4=U4(3);function U4(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let a=[];if(n==null)return a;let r=typeof n.slice=="function"?n:String(n),u=r.length-e+1;if(u<1)return a;for(;u--;)a[u]=r.slice(u,u+e);return a}}p();var i1=/\s+/g,s1=/[\t\n\v\f\r ]+/g;function H4(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?l1:c1;return String(e).replace(t.style==="html"?s1:i1,t.trim?d1(n):n)}function l1(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function c1(){return" "}function d1(e){return t;function t(n,a,r){return a===0||a+n.length===r.length?"":e(n)}}var q4={}.hasOwnProperty;function m1(e){return e==null?"":H4(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function g1(e){return z4(" "+m1(e)+" ")}function p1(e){let t=g1(e),n={},a=-1;for(;++an&&(n=u,a=r)}return[a,n]}function T1(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function C1(e,t,n,a){t=v1(t,n,a);let r=[],u;if(t)for(u in t)qu.call(t,u)&&r.push([u,w1(e,t[u])]);return r.length===0?fs():r.sort(k1)}function w1(e,t){let n=0,a=-1;for(;++at.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterso+i.length,0));let u=e.length-a;for(let o of R1){let i=o[1],s=o[0],c=e.match(i),l=c?c.length:0;l>n&&(n=l,t=s)}return n*2.5/u>.5?t==="zh-CN"?Q4(e)?"zh-TW":"zh-CN":t:"auto"}var X4=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],hs=new Map(X4),I1=new Map(X4.map(([e,t])=>[t,e]));function ed(e,t,n=["en"]){if(!e)return"auto";let a=n.map(i=>I1.get(i));!t&&t!==0&&(t=25);let r=$u(e);if(r!=="auto")return r;let u={minLength:t,whitelist:[...hs.keys()]},o=K4(e,u);if(o&&o.length>0){for(let[l,m]of o)if(a.includes(l)&&m>.5)return hs.get(l);let[i,s]=o[0],c=hs.get(i);if(c&&s>.5)return c}return"auto"}p();p();var td=ge+"SyncStoreKey_";function At(e,t){let n=td+e;return se.storage.sync.get(n).then(a=>a[n]===void 0?t:a[n])}function je(e,t){let n=td+e;return se.storage.sync.set({[n]:t})}p();var nd=ge+"StoreKey_";function Rn(e,t){let n=nd+e;return se.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function ad(e,t){let n=nd+e;return se.storage.local.set({[n]:t})}p();var ha=ge+"CacheKey_";function O1(e,t){let n=ha+e;return se.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function N1(){let e=se.storage.local.refresh;e&&e()}function Or(e,t){let n=ha+e;return se.storage.local.get(n).then(a=>{if(a[n]===void 0)return t;let{value:r,expired:u}=a[n];return u&&ua.startsWith(ha)).filter(a=>a!==ha+Ot);if(n.length>0)return se.storage.local.remove(n)}}var jt={get:O1,set:j1,getExpired:Or,setExpired:Nr,remove:jr,clear:rd,refresh:N1};p();p();p();var ot=class extends Error{details;constructor(t,n,a){super(n),this.name=t,a&&(this.details=a)}};async function ba(e){let t;if(e&&e.retry&&e.retry>0)try{t=await Ki(ud.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await ud(e);return t}async function ud(e){e.body;let{url:t,responseType:n,...a}=e;n||(n="json"),a={mode:"cors",...a};let r=!0;e.fetchPolyfill&&(r=!1);let u=e.fetchPolyfill||fetch,o=3e5;if(e.timeout&&(o=e.timeout),r){let s=new AbortController,c=s.signal;setTimeout(()=>{s.abort()},o),a.signal=c}let i;try{i=await u(t,a)}catch(s){U.debug("fetch error",t,s);let c=s.message||"";throw s.message="\u7F51\u7EDC\u95EE\u9898\uFF0C\u65E0\u6CD5\u8FDE\u63A5\u5230\u670D\u52A1\uFF0C\u8BF7\u68C0\u67E5\u4F60\u7684\u4EE3\u7406\u6216\u672C\u5730\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u8BD5\u3002 "+c,s}if(i.ok&&i.status>=200&&i.status<400){if(n==="json")return await i.json();if(n==="text")return await i.text();if(n==="raw"){let s=await i.text(),c=Object.fromEntries([...i.headers.entries()]),l=i.url;return l||(i.headers.get("X-Final-URL")?l=i.headers.get("X-Final-URL"):l=t),{body:s,headers:c,status:i.status,statusText:i.statusText,url:l}}else if(n==="stream"){let s="",c;if(i.body&&i.body instanceof ReadableStream)for await(let l of z1(i.body)){let m=new TextDecoder().decode(l);s+=m;let g;for(;(g=s.indexOf(` +`))>=0;){let f=s.slice(0,g).trim();if(s=s.slice(g+1),f.startsWith("event:")||f==="")continue;let d="";if(f.startsWith("data:")&&(d=f.slice(5).trim()),d==="[DONE]")break;let b;try{b=JSON.parse(d??"")}catch(T){U.debug("json error",T);continue}c=b}}return c}}else{let s;try{s=await i.text()}catch(f){U.error("parse response failed",f)}s&&U.error("fail response",s);let c="";s&&(c=s.slice(0,280));let l="\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u4EE3\u7801:"+i.status+": "+(i.statusText||"")+c,g=new URL(t).hostname.endsWith(".immersivetranslate.com");throw i.status===429?g?c.includes("quota exceeded")?l="ProQuota:"+c:l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${c} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`:l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A429\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===403?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A403\uFF0C \u8BF4\u660E\u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ${c}`:i.status===400?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A400\uFF0C \u8BF4\u660E\u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002 ${c}`:i.status===502?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A502\uFF0C \u8BF4\u660E\u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===401&&(l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A401\uFF0C \u8BF4\u660E\u672A\u767B\u5F55\u6216\u767B\u5F55\u6001\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002 ${c}`),new ot("fetchError",l,s)}}async function*z1(e){let t=e.getReader();try{for(;;){let{done:n,value:a}=await t.read();if(n)return;yield a}}finally{t.releaseLock()}}p();var U1=new Map;function Ku(e){let t=H1(64),n=new CustomEvent(xc,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((a,r)=>{U1.set(t,(u,o)=>{u?r(u):a(o)})})}function H1(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};function an(){return Gu.version}p();function nt(){try{return globalThis.self!==globalThis.top}catch{return!0}}p();var zr=new Map,Vn=class{fromType;logger;constructor(t,n=!1){this.logger=new Br,n&&this.logger.setLevel("debug"),this.fromType=t,zr.has(t)||(zr.set(t,new Map),se.runtime.onMessage.addListener((a,r,u)=>{let o=a.from,i=a.to,s,c,l;r.tab&&r.tab.id&&(s=r.tab.id,o=`${o}:${s}`,c=r.tab.url,l=r.tab.active),this.logger.debug(`${a.to} received message [${a.payload.method}] from ${a.from}`,a.payload.data?a.payload.data:" ");let m=ys(i),{type:g,name:f}=m;if(g!==t)return!1;let d=ys(o),T=zr.get(g).get(f);if(!T)return this.logger.debug(`no message handler for ${g}:${i}, but it's ok`),!1;let{messageHandler:h,sync:C}=T,v={type:t,name:d.name,id:s,url:c,active:l};if(C){try{let O=h(a.payload,v);u({ok:!0,data:O})}catch(O){u({ok:!1,errorName:O.name,errorMessage:O.message,errorDetails:O.details})}return!1}else return h(a.payload,v).then(O=>{u({ok:!0,data:O})}).catch(O=>{u({ok:!1,errorName:O.name,errorMessage:O.message,errorDetails:O.details})}),!0}))}getConnection(t,n,a){let r=!1;a&&a.sync&&(r=!0);let u=this.fromType,o=zr.get(u);if(o.has(t))return o.get(t).connectionInstance;{let i=new bs(`${u}:${t}`,this.logger);return zr.get(u).set(t,{messageHandler:n,sync:r,connectionInstance:i}),i}}},bs=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let a=ys(t),{type:r,id:u}=a;if(r!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let i=await se.runtime.sendMessage(o);return od(o,i,this.logger)}catch(i){if(r==="popup"){let s=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(s,n,t,i),Promise.resolve({message:s})}else throw i}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let i=await se.tabs.sendMessage(u,o);return od(o,i,this.logger)}}};function od(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new ot(t.errorName||"UnknownError",t.errorMessage||"Unknown error",t.errorDetails)}else throw new ot("noResponse","Unknown error")}function ys(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let a=parseInt(t[2]);if(!isNaN(a))n.id=a;else throw new Error("tab id not a valid number")}return n}var Vu;function W1(){return Vu||(Vu=new Vn("content_script",!1).getConnection("pure_main",()=>{}),Vu)}var id="G-MKMD9LWFTR";async function Ur(e,t){try{let n=Qe();if(n.INSTALL_FROM==="firefox_store")return;let r=fe(),u=nt(),o=n.PROD==="1",i="sitc4WmvShWYwfU0dANM3Q",s=await At("fakeUserId","");s||(s=await Rn("fakeUserId",""),s&&await je("fakeUserId",s));let c=an(),l=new Date,m=await At("installedAt","");m||(m=await Rn("installedAt",""),m&&await je("installedAt",m)),s?m||(m=new Date(0).toISOString(),await je("installedAt",m)):(s=$1(32),await je("fakeUserId",s)),m||(m=l.toISOString(),await je("installedAt",m));let g=new Date(m),f=sd(g),d=sd(l),b=f===d,T=l.getTime()-g.getTime()<7*24*60*60*1e3,h=`https://www.google-analytics.com/mp/collect?measurement_id=${id}&api_secret=${i}`;o||(h=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${id}&api_secret=${i}`);let C="";typeof navigator<"u"&&(C=window.navigator.userAgent);let v=Ha.parse(C),O=t.map(x=>{let L=x.params||{};return v.os&&(L.os_name=v.os.name||"unknown",L.os_version=v.os.version||"unknown",L.os_version_name=v.os.versionName||"unknown"),v.browser&&(L.browser_name=v.browser.name||"unknown",L.browser_version=v.browser.version||"unknown"),v.platform&&(L.platform_type=v.platform.type||"unknown"),v.engine&&(L.engine_name=v.engine.name||"unknown",L.engine_version=v.engine.version||"unknown"),c&&(L.version=c),n.INSTALL_FROM&&(L.install_from=n.INSTALL_FROM),f&&(L.install_day=K1(g)),L.userscript=r.toString(),b?L.is_new_user_today="1":L.is_new_user_today="0",T?L.is_new_user_this_week="1":L.is_new_user_this_week="0",u?L.main_frame=0:L.main_frame=1,{...x,params:L}}),B=await Yu({responseType:"text",url:h,method:"POST",body:JSON.stringify({client_id:s,user_id:s,events:O})})}catch{}}function $1(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r",""],limit:5e3},custom:{placeholderDelimiters:["{","}"]},bing:{maxTextLengthPerRequest:1800,placeholderDelimiters:["","","b"]},deeplx:{limit:3},d:{immediateTranslationTextCount:0},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},openai:{placeholderDelimiters:["{{","}}","b"],immediateTranslationTextCount:3e3,translationDebounce:300,interval:1350,prompt:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: {{text}}`,maxTextGroupLengthPerRequest:1,newlinePlaceholderDelimiters:[` @@ -4267,58 +4267,60 @@ Additionally, we support using Chinese aliases of language codes as commands. Fo ?`]}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:""},tempTranslateDomainMinutes:0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","*.twitter.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","github.com","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","www.tumblr.com","*.twitter.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},generalRule:{_comment:"",enableSubtitle:!0,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan"],useIframePostMessage:!0,searchEnhancementConfig:[],injectedCss:[],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!0,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,isTransformPreTagNewLine:!1,urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".MathJax_Preview",".MathJax",".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:4,paragraphMinWordCount:2,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,globalAttributes:{},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{".sr-only":"display:none"},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{translate:"no"},"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:[],additionalExcludeSelectors:[".social-share",".breadcrumbs",".post__footer",".btn",".reference-citations",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","markerow8"],translationClasses:[],atomicBlockSelectors:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","INPUT","BUTTON","BASE","SELECT","OPTION","HR","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","XQDD_HIGHLIGHT_NEW_WORD","NOBR"],additionalInlineTags:[],extraInlineSelectors:[],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,mouseHoverHoldKey:"Off"},rules:[{id:"immersive",matches:["https://immersivetranslate.com","https://onboarding.immersivetranslate.com"],isInjectVersion:!0,isInjectMeta:!0},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"pdf",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],translationMode:"translation",skipEditableCheck:!0,selectors:["p"],wrapperPrefix:"",isInjectVersion:!0,isPdf:!0},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,injectedCss:[".immersive-translate-target-translation-block-wrapper { display: block; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"]},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","https://platform.twitter.com/embed*"],additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']"],extraBlockSelectors:['[data-testid="tweetText"] div.r-6koalj'],extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText']":"-webkit-line-clamp: unset;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]"]},{id:"threads",matches:"www.threads.net",selectors:["p",".x1npkx4u.x1exu5d8",".xw7yly9",".xgkxs2y"],stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x78zum5",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{span:"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],extraBlockSelectors:["span.comment-copy"],excludeSelectors:["a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md",".RichTextJSON-root","div[slot=title]","div[slot=text-body]","p.title > a","[role=main] .md-container"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none"},waitForSelectors:["[data-testid=post_author_link]"]},{id:"reddit",matches:"www.reddit.com",selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","div[slot=title]","div[slot=text-body]","p.title > a","[role=main] .md-container"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none"}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper"],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box"],extraBlockSelectors:[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],detectParagraphLanguage:!0},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"facebook",matches:"www.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]"],atomicBlockSelectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],extraBlockSelectors:["span.x1vvkbs"],excludeSelectors:["[role=button]"],translationClasses:["immersive-translate-text"],detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".caption-window",".caption-visual-line",".yt-spec-button-view-model",".yt-core-attributed-string > span",".title"],"excludeTags.remove":["BUTTON"],condition:{enableSubtitle:{false:{"selectors.remove":[".caption-window",".caption-visual-line"]}}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],extraBlockSelectors:[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,detectParagraphLanguage:!0,excludeSelectors:["[class^='lln-']"],globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","ytd-notification-renderer .message","#message",".caption-window",".caption-visual-line"],extraBlockSelectors:["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],condition:{enableSubtitle:{false:{"selectors.remove":[".caption-window",".caption-visual-line"]}}},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,selectors:["h1","div[class='x9f619 xjbqb8w x78zum5 x168nmei x13lgxp2 x5pf9jr xo71vjh x1uhb9sk x1plvlek xryxfnj x1c4vz4f x2lah0s xdt5ytf xqjyukv x1cy8zhl x1oa3qoh x1nhvcw1'] > span[class='x1lliihq x1plvlek xryxfnj x1n2onr6 x193iq5w xeuugli x1fj9vlw x13faqbe x1vvkbs x1s928wv xhkezso x1gmr53x x1cpjm7i x1fgarty x1943h6x x1i0vuye xvs91rp xo1l8bm x5n08af x10wh9bi x1wdrske x8viiok x18hxmgj']","span[class='x193iq5w xeuugli x1fj9vlw x13faqbe x1vvkbs xt0psk2 x1i0vuye xvs91rp xo1l8bm x5n08af x10wh9bi x1wdrske x8viiok x18hxmgj']"],wrapperPrefix:"
"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:["[style^=top]",".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;"},extraBlockSelectors:[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"]},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page"],excludeMatches:["https://www.inoreader.com/features/"],observeUrlChange:!1,globalStyles:{".article_title_link":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` `,selectors:["h3 a[data-clk]","div.gs_rs","td a.gsc_a_at","td div.gs_gray:last-of-type","div.gsc_oci_value","#gs_opinion"],extraInlineSelectors:["br"],atomicBlockSelectors:["h3 a[data-clk]"]},{id:"googleMail",matches:"mail.google.com",detectParagraphLanguage:!0,selectors:["h2[data-thread-perm-id]","span[data-thread-id]","div[data-message-id] div[class='']",".messageBody","#views"],globalStyles:{".Nk":"height:auto!important;",".kf":"white-space:unset!important;"}},{id:"googleNews",matches:"news.google.com",blockMinTextCount:26,blockMinWordCount:5,globalStyles:{".MCAGUe":"height: auto;",".To2ZZb.DbQnIe":"height: unset;",".cp7Yvc > h2":"display: block;",".oovtQ":"height: auto;",h4:"-webkit-line-clamp: unset;"},excludeSelectors:[".EyERq",".AOl7G.eejsDc","[aria-label='Home']","[aria-label='For you']","[aria-label='Following']","[aria-label='World']","[aria-label='Local']",".gb_Fc",".wBQf7b",".yPI8Rb",".jKHa4e",".u43Gd",".Zgjpyb","[role='button']","[jsname='rymPhb']",".cbz1ld",".VfPpkd-P5QLlc",".XvhY1d"]},{id:"outlook",matches:"outlook.live.com",excludeSelectors:[".jHAG3.XG5Jd",".OZZZK",".lDdSm"]},{id:"producthunt",matches:"www.producthunt.com",excludeMatches:"https://www.producthunt.com/stories/*",selectors:["h2","div[class^='styles_htmlText__']","[class^='styles_tagline']","a[href^='/discussions/'].fontWeight-600","button[class^='styles_textButton'] > div > span","h5 + p","div[data-test=product-item-name] + div",".noOfLines-1,.noOfLines-2,.noOfLines-3",".fontWeight-600","[class*='styles_dropdown']","[class*='styles_aboutText']"],globalStyles:{"h5 + p":"height:unset;",".noOfLines-1,.noOfLines-2,.noOfLines-3":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"]},{id:"codeforces",matches:"https://codeforces.com/*",stayOriginalTags:["[class^='MathJax']"]},{id:"arxivLabs",matches:"*.labs.arxiv.org/*",stayOriginalTags:["math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt"]},{id:"discord",matches:"https://discord.com/channels/*",isTranslateTitle:!1,selectors:["li[id^=chat-messages] div[id^=message-content]","div[class^=headerText]","section[aria-label='Search Results'] div[id^=message-content]"],extraBlockSelectors:["[class^='embedFieldValue']","li[class^='card'] div[class^='message']","[data-list-item-id^='forum-channel-list'] div[class^='headerText']"],globalStyles:{"div[class^=headerText]":"max-height: unset;","div[class^=message]":"max-height: unset;","div[class^=text]":"max-height: unset;","h3[data-text-variant='heading-lg/semibold']":"-webkit-line-clamp: none;"},detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:"",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"telegram",matches:["web.telegram.org/z/*","web.telegram.org/a/*"],isTranslateTitle:!1,selectors:[".text-content",".message",".reply-markup-button-text",".bot-commands-list-element-description"],detectParagraphLanguage:!0},{id:"telegramK",matches:["web.telegram.org/k/*","web.telegram.org/k/"],selectors:[".message",".reply-markup-button-text",".bot-commands-list-element-description"],detectParagraphLanguage:!0},{id:"githubGist",matches:"gist.github.com",selectors:[".markdown-body",".readme"],detectParagraphLanguage:!0},{id:"lobste",matches:"lobste.rs",excludeMatches:["https://lobste.rs/about","https://lobste.rs/chat"],selectors:[".u-repost-of",".comment_text",".story_text"]},{id:"slack",matches:"*.slack.com",selectors:[".p-rich_text_block",".p-message_pane__foreword",".c-alert__message","[data-qa=message_attachment_text]"],additionalStayOriginalSelectors:["[data-qa=emoji]"],detectParagraphLanguage:!0},{id:"artstationArtwork",matches:"www.artstation.com/artwork/*",excludeSelectors:".project-description a",selectors:[".project-description","div.project-comment-text"],detectParagraphLanguage:!0},{id:"artstationLearning",matches:"www.artstation.com/learning/courses/*",additionalSelectors:["footer.learning-course-description.ng-star-inserted > span"],excludeSelectors:[".learning-card-meta"]},{id:"artstationBlog",matches:["https://www.artstation.com/blogs","https://www.artstation.com/blogs/*"],detectParagraphLanguage:!0,additionalSelectors:[".comment-item-body"],atomicBlockSelectors:[".author-headline",".author-location"],excludeSelectors:["blog-card-thumbnail","blog-card-header",".blog-card-author",".blog-card-meta",".blog-view-header",".blog-grid-title",".post-meta-header"]},{id:"figmaCommunity",matches:"www.figma.com/community/*",normalizeBody:"div.ql-editor[contenteditable='false']",excludeSelectors:["div[class*='metadataRight']","div[class*='commentMetaAndOptions']"],globalStyles:{"div[class*='mini_cardBottomRowSizing']":"height: 3em;"},additionalSelectors:["div[class*='mini_cardBottomRow_Metadata']"],stayOriginalSelectors:["[data-tooltip='tooltip-user-info']"]},{id:"googleIndex",matches:["https://www.google.com/","https://www.google.com.hk/"],excludeSelectors:["#gb","#SIvCob"],inputTutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",inputTutorialsSelectors:["textarea#APjFqb"]},{id:"googleSearch",matches:"www.google.*/search*",blockMinTextCount:32,blockMinWordCount:3,wrapperSuffix:"",detectParagraphLanguage:!0,excludeSelectors:["a h3 + div","div#sfooter","a[role=presentation] > div > div:first-child",".b5ZQcf",".CEMjEf",".MgUUmf.NUnG9d","#result-stats","[role=navigation]","div.sCuL3","div.eFM0qc.BCF2pd","div.WZ8Tjf","div.adDDi","#headerSection","#rateChatDiv","[id=bres]",".title-D5Lgyj","[data-attrid='VisualDigestVideoResult']",".search-enhance-WDIEkP h4",".SPZz6b h2",".CtCigf",".VLkRKc",".EbH0bb",".Wr0c6d",".jleFbf","#searchform",".yg51vc",".CbAZb"],extraBlockSelectors:[".MUFPAc"],globalStyles:{".V82bz":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px",".pe7FNb":"-webkit-line-clamp: unset;",".promotion-3PDMAb":"display: none;",".uAKcGb":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px","div[data-content-feature='1'] > div":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:2']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:3']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:4']":"-webkit-line-clamp: unset;max-height: unset;",".Pw4Ldf.RsCEN":"height:unset;",".related-question-pair":"overflow:auto;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,searchEnhancementConfig:[{id:"google",urlMatch:"https://www\\.google\\..+/search",style:{source:"font-size:12px; margin-bottom: 6px;",enTitle:"margin-top:6px;font-size:14px;",searchTitle:"margin-top:6px;position:relative;padding-right:24px;",more:"color:#1a0dab;margin-top:8px;",enTitleClassName:"immersive-translate-search-enhancement-en-title"},keyword:{value:"[0]$1",matches:[{source:"url",matchRegex:"q=(.+?)&"}]},showCount:5}]},{id:"lowendtalk",matches:"lowendtalk.com",selectors:["[role=heading]","h1",".userContent"]},{id:"linkedinJobs",matches:"www.linkedin.com/jobs/*",selectors:["#job-details > span"]},{id:"linkedinFeed",matches:"https://linkedin.com/feed/*",selectors:["h1",".feed-shared-update-v2__description-wrapper"]},{id:"indiehackers",matches:"www.indiehackers.com",selectors:[".content","h1","h3.story__title",".feed-item__title-link",".article-body"]},{id:"libreddit",matches:"libreddit.de",selectors:["h2.post_title",".comment_body > .md"]},{id:"notionSite",matches:["notion.site","*.notion.site"],normalizeBody:"body",selectors:["div[data-block-id]"]},{id:"newyorker",matches:"www.newyorker.com",additionalSelectors:["h1","[data-testid=SummaryItemHed]"],excludeSelectors:["[data-testid=PersistentTop]","[data-testid=StackedNavigationHeader]"],urlChangeDelay:2e3},{id:"startme",matches:"start.me",selectors:[".rss-article__title",".rss-articles-list__article-link",".rss-showcase__title",".rss-showcase__text"]},{id:"scmp",matches:"www.scmp.com",additionalSelectors:[".info__subHeadline",".section-content h2"],globalStyles:{".topic__article-list":"height: unset;",".adverisers__adveriser":"height: unset;",".advertiser__content":"height: unset;",".content-title__link":"display:unset;overflow:unset;-webkit-line-clamp:unset;",".title__text":"max-height:unset; -webkit-line-clamp:unset;",".news-list-item__news-title":"max-height:unset; -webkit-line-clamp:unset;","a[class*='link'] > .link__headline":"max-height:unset; -webkit-line-clamp:unset;"}},{id:"lesswrong",matches:"www.lesswrong.com",extraBlockSelectors:["span.commentOnSelection"]},{id:"mastodon",matches:["mastodon.social","mastodon.online","kolektiva.social","indieweb.social","mastodon.world","infosec.exchange"],isTranslateTitle:!1,selectorMatches:["div#mastodon"],selectors:["div.status__content__text",".about__section__body",".content",".form-container",".account__header__extra"],globalAttributes:{"[class='notranslate app-holder']":{class:"app-holder"}},detectLanguage:!0},{id:"cnbc",matches:"www.cnbc.com",urlChangeDelay:1e3,globalStyles:{"div.Card-titleContainer > div":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"dailyDev",matches:"app.daily.dev",selectors:["h1",".typo-body","article h3","[class^=markdown_markdown]"],globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset"}},{id:"pornhub",matches:["*.pornhub.com","pornhub.com"],excludeMatches:["*.pornhub.com/insights/*","pornhub.com/insights/*"],extraBlockSelectors:[".trendingNow",".searchItem",".tagcloud > a"],detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:` `,globalStyles:{"span.title":"height:unset; max-height:unset;",".detailedInfo":"max-height:unset;",".pcVideoListItem":"max-height:unset;",".wrap":"height:unset;",".entry-header":"height:unset;",".entry-title > a":"height:unset;-webkit-line-clamp:unset;"}},{id:"yourporn",matches:"https://www.youporn.com/*",extraBlockSelectors:[".button"],globalStyles:{".video-box":"max-height:unset;",".video-box-title":"white-space:unset;"}},{id:"modelhub",matches:"https://www.modelhub.com/*",globalStyles:{".videoTitle":"height:unset;",a:"height:unset;"}},{id:"xvideos",matches:"https://www.xvideos.com/*",globalStyles:{".title":"-webkit-line-clamp:unset;max-height:unset;",".mozaique":"display:flex; flex-wrap:wrap;"},excludeSelectors:[".video-hd-mark"]},{id:"missav",matches:"https://missav.com/*",globalStyles:{".truncate":"white-space:unset;",".overflow-y-hidden":"max-height:unset;overflow-y:unset;"}},{id:"javbus",matches:"https://www.javbus.com/*",globalStyles:{".photo-info":"height:unset;"},excludeSelectors:[".item-tag","date"]},{id:"spankbang",matches:"https://spankbang.com/*",globalStyles:{".video-item > a":"white-space:unset;"},excludeSelectors:[".stats",".thumb"],extraBlockSelectors:[".searches > a",".tag > a",".extra > a",".positions > li"]},{id:"javdb",matches:"https://javdb*.com/*",globalStyles:{".video-title":"white-space:unset;"},excludeSelectors:[".video-number",".score",".has-addons"]},{id:"jable",matches:"https://jable.tv/*",globalStyles:{".title":"white-space:unset;max-height:unset;",".img-box > a":"position:relative;"}},{id:"netflav",matches:"https://netflav*.com/*",globalStyles:{".grid_title":"max-height:unset;"},extraBlockSelectors:[".genre_filter_item","button"]},{id:"czechvideo",matches:"https://czechvideo.co/*",globalStyles:{".short-story":"height:unset;",".short-title":"height:unset;"},globalAttributes:{header:{translate:"unset;"}}},{id:"weibo",matches:["weibo.com"],selectors:["div[class^='detail_wbtext']"]},{id:"medium",matches:["medium.com","*.medium.com"],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],urlChangeDelay:20,"additionalExcludeSelectors.remove":["i.fa","i[class^=fa-]",".navmenu-container",".google-symbols","markerow8"],selectors:["h1","h2","article section","[aria-hidden='false'] pre","article p"],excludeSelectors:["[aria-label='Post Preview Reading Time']",".al.b.bl.ag.bp",".al.b.bl.ag.ai"],globalStyles:{h2:"-webkit-line-clamp: unset;max-height:unset;","article p":"-webkit-line-clamp: unset;max-height:unset;"}},{id:"nitter",selectorMatches:["meta[property='og:site_name'][content='Nitter']"],selectors:[".tweet-content",".quote-text"]},{id:"economist",matches:"www.economist.com",extraInlineSelectors:["span[data-caps='initial']"],excludeSelectors:["footer.ds-footer"],injectedCss:["a::before {position:relative!important;}"]},{id:"healthline",matches:"www.healthline.com",excludeSelectors:[".icon-hl-trusted-source-after"]},{id:"ebay",matches:"www.ebay.com",excludeSelectors:["headers","[itemprop=offers]",".dne-itemtile-original-price"],paragraphMinTextCount:4,paragraphMinWordCount:2,globalStyles:{"[itemprop=name]":"-webkit-line-clamp: unset;max-height: unset;",".merch-item-title":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"skinstore",matches:"www.skinstore.com",excludeSelectors:[".responsiveFlyoutMenu_levelOneLink"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"tripadvisor",matches:"www.tripadvisor.com",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"amazon",matches:"www.amazon.com",paragraphMinTextCount:4,paragraphMinWordCount:2,extraBlockSelectors:[".a-size-small.a-link-normal.page-banner-link.a-nowrap"],globalStyles:{".a-carousel-viewport":"height:unset;","[class*='clamp']":"max-height: unset;-webkit-line-clamp: unset;","[data-rows]":"max-height: unset;-webkit-line-clamp: unset;","[data-a-expander-name='review_text_read_more']":" max-height: unset;"},excludeSelectors:["#navFooter","#navbar-main",".s-price-instructions-style","[class*='star']","[data-hook='acr-average-stars-rating-text']",".a-color-price"]},{id:"visualstudioMarketplace",matches:"marketplace.visualstudio.com",additionalExcludeSelectors:[".core-info-second-row",".core-info-third-row",".meta-data-list",".item-title",".breadcrumb",".itemDetails-right",".ux-user-name",".ux-updated-date",".ux-item-second-row-wrapper",".stats-and-offer",".header-container"],atomicBlockSelectors:[".core-info-cell > div.name"],globalStyles:{".item-details-control-root.ux-item-shortdesc":"height: unset; overflow: visible; max-height:unset;"}},{id:"bloomberg",matches:"www.bloomberg.com",urlChangeDelay:2e3,excludeSelectors:[".ticker-bar","nav","[aria-label=Banner]","aside","[data-component=ticker-bar]","footer.bb-global-footer"]},{id:"baiduXueshu",matches:"xueshu.baidu.com",globalStyles:{".abstract_wr":"height: unset; overflow: visible; max-height:unset;"}},{id:"sciencedirect",matches:"www.sciencedirect.com",urlChangeDelay:2e3,stayOriginalSelectors:["span.display","span.math"],extraBlockSelectors:["span.captions","span[id^=cap]"]},{id:"thehighestofthemountains",matches:"www.thehighestofthemountains.com",extraBlockSelectors:"div"},{id:"telegraph1",matches:"te.legra.ph",normalizeBody:"div.ql-editor[contenteditable='false']",urlChangeDelay:500},{id:"telegraph2",matches:["telegra.ph"],normalizeBody:"div.ql-editor[contenteditable='false']",wrapperPrefix:` -`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main > div > div[class*='h-[125]']":"height:auto"},normalizeBody:"body",extraBlockSelectors:["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,normalizeBody:"#mw-content-text",globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"]},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"}},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:"chat.openai.com",excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0}},{id:"newstop",matches:["chat.newstop.asia","chat.waixingyun.cn"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".n-button.n-button--warning-type.n-button--medium-type",messageWrapperSelector:".markdown-body",streamingChange:!1,streamingDeepChild:!0}},{id:"askgpt",matches:["askgpt.cn","chatcat.zhaoyoung.me"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".home_chat-message-status__EsVNi",messageWrapperSelector:".markdown-body",streamingChange:!0,streamingDeepChild:!0}},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__UyYrv *",".MarkdownLink_linkifiedLink__KxC9G"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__UyYrv",streamingChange:!1,streamingDeepChild:!0}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"newthingsunderthesun",matches:"www.newthingsunderthesun.com",additionalSelectors:["[translate=no]"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"https://steamcommunity.com/app/*",globalStyles:{".forum_topic":"height:auto;",".forum_topic_name":"white-space:normal;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampowered",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:"https://www.webofscience.com/*",globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},excludeSelectors:[".summary-left-panel",".authors","app-full-record-keywords mark"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],extraBlockSelectors:["app-summary-authors + div","app-full-record-keywords span span"],observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://www.jetbrains.com/help/*",extraBlockSelectors:["[data-test=prompt]"]},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails p"]},{id:"isEbook",isEbook:!0,isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span"},{id:"isEbookBuilder",isEbookBuilder:!0,isTranslateTitle:!1,targetWrapperTag:"span",selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com",extraBlockSelectors:["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],extraBlockSelectors:"font[face=verdana]"},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"isSubtitleBuilder",isSubtitleBuilder:!0,selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,wrapperPrefix:"",wrapperSuffix:""},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/",extraBlockSelectors:[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"vimeo",matches:"https://player.vimeo.com/video/*",extraBlockSelectors:["span.vp-captions-line","span[class^=CaptionsRenderer_]"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexityAi",matches:"https://www.perplexity.ai/search/*",extraBlockSelectors:[".prose > span"],additionalStayOriginalSelectors:["a.citation"],insertPosition:"afterend"},{id:"perplexity",matches:"https://www.perplexity.ai",globalStyles:{".line-clamp-1":"-webkit-line-clamp: unset !important;",".line-clamp-2":"-webkit-line-clamp: unset !important;"}},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"babelnovel",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*"],urlChangeDelay:0},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0},{globalAttributes:{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"youtrackJetbrains",matches:"youtrack.jetbrains.com/articles/*",selectors:["[role=presentation]","[data-test=article-content]"],excludeSelectors:[".toolbar__ee8"]},{id:"bbc",matches:"www.bbc.com",excludeSelectors:["section.module--languages",".drop-capped"]},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}}},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"openai",matches:"https://platform.openai.com/docs/*",urlChangeDelay:0},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout":"height:unset !important;",".EntrySummary--u4":"-webkit-line-clamp: unset;max-height:unset;",".EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:[".copyable-text > span"],wrapperPrefix:` -`,wrapperSuffix:"
"},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],globalStyles:{"[class*='lineclamp']":"-webkit-line-clamp:unset;"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],extraBlockSelectors:[".SIPGg",".sc-kzMCTH.pSZXj"],globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"]},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*",globalAttributes:{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead"],injectedCss:["a::after {position:relative!important;}"]},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},globalAttributes:{"#app":{class:""}}},{id:"haproxy",matches:["docs.haproxy.org","www.oreilly.com/openbook/opensources/book/*"],excludeTags:[],stayOriginalSelectors:[],stayOriginalTags:[],isTransformPreTagNewLine:!0},{id:"piAi",matches:"pi.ai/talk",excludeSelectors:[".whitespace-pre-wrap > span *"],aiRule:{streamingSelector:"button[class*='fixed'][disabled]",messageWrapperSelector:".whitespace-pre-wrap",streamingChange:!1,streamingDeepChild:!1},globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *"],"excludeTags.remove":["PRE"],injectedCss:"[data-testid='chat-menu-trigger'] br {display:none;}",aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1}},{id:"feishu",matches:"*.feishu.cn","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],excludeSelectors:[".catalogue__list"]},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"bugsWebkit",matches:"bugs.webkit.org",isTransformPreTagNewLine:!0},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",matches:"www.kaggle.com",excludeTags:["i","button"]},{id:"ieee",matches:"spectrum.ieee.org",extraBlockSelectors:["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"www.cnn.com",excludeSelectors:[".ad-slot-header__wrapper"]},{id:"marginalrevolution",matches:"marginalrevolution.com",globalAttributes:{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",condition:{enableSubtitle:{false:{"excludeSelectors.add":[".bpx-player-subtitle-panel-text"]}}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"docs-oracle",matches:"docs.oracle.com",urlChangeDelay:0},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"edstem",matches:"edstem.org","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:"pubmed.ncbi.nlm.nih.gov",urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share"]},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"tldrnewsletter",matches:"actions.tldrnewsletter.com","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"bugzilla",matches:"bugzilla.mozilla.org","excludeTags.remove":["PRE"],isTransformPreTagNewLine:!0},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"excludeSelectors.add":["aside",".DocSearch-Modal"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"mail.qq.com",useIframePostMessage:!1},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]}]};p();p();function ba(e){return Array.isArray(e)?e:e?[e]:[]}function xs(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function Yn(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function Zu(e,t){let n={...e};return ld(n,t),Y1(n,t),n}function sd(e,t,n){let a={...t};return J1(e,a,n),a}function Y1(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},a=t.condition.enableSubtitle?.false||{},r=e.enableSubtitle?n:a;ld(e,r)}function J1(e,t,n){try{return Object.keys(t).forEach(a=>{let[r,u]=a.split(".");if(u){let o=t[a];if(Array.isArray(e[r])&&(o=ba(t[a])),u==="add"){t[r]=Hr(e[r],o),delete t[a];return}else if(u=="remove"){t[r]=Es(e[r],o),delete t[a];return}}}),Object.keys(n).forEach(a=>{let[r,u]=a.split(".");if(!r||n[a]===void 0)return;let o=n[a],i=t[r];if(Array.isArray(e[r])&&(o=ba(n[a]),i=ba(t[r])),u==="add"){t[r]=Hr(i,o);return}else if(u=="remove"){t[r]=Es(i,o);return}Array.isArray(i)&&r.startsWith("additional")?t[r]=Hr(i,o):t[r]=o}),t}catch{}}function ld(e,t){return Object.keys(t).forEach(n=>{let[a,r]=n.split(".");if(!a||t[n]===void 0)return;let u=t[n];if(Array.isArray(e[a])&&(u=ba(t[n])),r==="add"){e[a]=Hr(e[a],u);return}else if(r=="remove"){e[a]=Es(e[a],u);return}Array.isArray(e[a])&&a.startsWith("additional")?e[a]=Hr(e[a],u):e[a]=u}),e}function Hr(e,t){let n;if(Array.isArray(e)){let a=ba(t);n=[...e,...a],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"&&(n={...e,...t});return n}function Es(e,t){if(Array.isArray(e)){let n=ba(t);return e=e.filter(a=>!n.includes(a)),Array.from(new Set(e))}else typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(n=>{delete e[n]});return e}function cd(){if(Ee.PROD==="1")return{};let e={};if(Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:Ee.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:Ee.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:Ee.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(Ee.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=Ee.DEEPL_PROXY_ENDPOINT),Ee.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=Ee.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),Ee.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:Ee.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}Ee.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=Ee.IMMERSIVE_TRANSLATE_SERVICE);let t={};return Ee.DEBUG==="1"&&(t.debug=!0,t.cache=!1),Ee.MOCK==="1"&&(t.translationService="mock"),t}async function Jn(){let e=await se.storage.local.get(vr);if(e[vr]){let t=e[vr],n=t.tempTranslationUrlMatches||[],a=n.filter(o=>o.expiredAt>Date.now()),r=!1;a.length!==n.length&&(n=a,r=!0);let u={...t,tempTranslationUrlMatches:[...n]};return r&&await kn(u),u}else return{}}async function kn(e){await se.storage.local.set({[vr]:e})}async function dd(e){await se.storage.local.set({[qn]:e})}async function md(){let e=await se.storage.local.get(qn),n={...gd(),...Qu,buildinConfigUpdatedAt:Ee.BUILD_TIME};if(e[qn]){let a=e[qn];if(a&&a.buildinConfigUpdatedAt){let r=new Date(a.buildinConfigUpdatedAt),u=new Date(n.buildinConfigUpdatedAt);r>u&&(n=a)}}return n}async function Ka(){let e=await se.storage.local.get(qn),t={...Qu,buildinConfigUpdatedAt:Ee.BUILD_TIME};if(e[qn]){let D=e[qn];if(D&&D.buildinConfigUpdatedAt){let y=new Date(D.buildinConfigUpdatedAt),S=new Date(t.buildinConfigUpdatedAt);y>S&&(t=D)}}let n=await Nt.get(en,null),a={};if(!he()&&se.commands&&se.commands.getAll){let D=await se.commands.getAll();for(let y of D)y.name&&y.shortcut&&(a[y.name]=y.shortcut)}let r=gd(),u=cd(),o=await Ts(),i=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},s=await Jn(),c=new Date;if(s&&s.tempTranslationUrlMatches&&s.tempTranslationUrlMatches.length>0){let D=s.tempTranslationUrlMatches.filter(y=>new Date(y.expiredAt)>c);if(D.length>0){let y=o.translationUrlPattern?o.translationUrlPattern?.matches||[]:[],S=Array.isArray(y)?y:[y],R=Array.from(new Set(S.concat(D.map($=>$.match))));o.translationUrlPattern={...o.translationUrlPattern,matches:R}}}let l=Object.assign({},i,u,o);if(!l.interfaceLanguage){let D=await Q1();l.interfaceLanguage=D}let m=l.interfaceLanguage==="en",g=l.targetLanguage==="en",f=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,d=["bing","google","transmart","mock"].includes(l.translationService)||!l.translationService;!m&&!g&&!f&&d?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let b=t&&t.enableDefaultAlwaysTranslatedUrls;l.enableDefaultAlwaysTranslatedUrls===!1&&(b=!1);let T=l&&l.isChangedAlwaysTranslatedUrls,h=[];l.translationUrlPattern&&l.translationUrlPattern.matches&&(h=l.translationUrlPattern.matches||[]);let C=!1;T===void 0&&(h.length>0?T=!0:T=!1,l.isChangedAlwaysTranslatedUrls=T,o.isChangedAlwaysTranslatedUrls=T,C=!0);let v=(l?.translationLanguagePattern?.matches?.length||0)>0,O=await At("installedAt",""),B=Number(await Rn("translage_page_daily",0)),x=Number(await At(mn,0)),L;x>0&&(Date.now()-x0&&(Date.now()-Bz.id&&R[z.id]?sd(t.generalRule,R[z.id],z):z);I[y]=[...$,...I[y]]}if(Ee.PROD==="0"&&Ee.DEV_RULES){let S=JSON.parse(Ee.DEV_RULES);I[y]=[...S,...I[y]]}}else l[y]!==void 0&&(I[y]=l[y])}return I.donateUrl=t.donateUrl,I.minVersion=t.minVersion,I.feedbackUrl=t.feedbackUrl,I}async function Ts(){return(await se.storage.sync.get("userConfig")||{}).userConfig||{}}async function Cs(e){await se.storage.sync.set({userConfig:e})}var Q1=async()=>{let e=["zh-CN"];try{e=await se.i18n.getAcceptLanguages()}catch(a){U.warn("get browser language error:",a)}let n=e.map(a=>ja(a)).find(a=>Rt[a]);return n||"en"},gd=()=>{let e={...Qu,buildinConfigUpdatedAt:Ee.BUILD_TIME};return{...e,targetLanguage:Lu,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing"},rules:[]}};function Z1(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(a=>!e.includes(a)).length>0}p();p();function Qn(e,t){var n=(e&65535)+(t&65535),a=(e>>16)+(t>>16)+(n>>16);return a<<16|n&65535}function X1(e,t){return e<>>32-t}function eo(e,t,n,a,r,u){return Qn(X1(Qn(Qn(t,e),Qn(a,u)),r),n)}function Et(e,t,n,a,r,u,o){return eo(t&n|~t&a,e,t,r,u,o)}function Tt(e,t,n,a,r,u,o){return eo(t&a|n&~a,e,t,r,u,o)}function Ct(e,t,n,a,r,u,o){return eo(t^n^a,e,t,r,u,o)}function wt(e,t,n,a,r,u,o){return eo(n^(t|~a),e,t,r,u,o)}function Xu(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,a,r,u,o,i=1732584193,s=-271733879,c=-1732584194,l=271733878;for(n=0;n>5]>>>t%32&255);return n}function ws(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(a=Xu(a,e.length*8)),n=0;n<16;n+=1)r[n]=a[n]^909522486,u[n]=a[n]^1549556828;return o=Xu(r.concat(ws(t)),512+t.length*8),pd(Xu(u.concat(o),512+128))}function fd(e){var t="0123456789abcdef",n="",a,r;for(r=0;r>>4&15)+t.charAt(a&15);return n}function vs(e){return unescape(encodeURIComponent(e))}function hd(e){return e6(vs(e))}function n6(e){return fd(hd(e))}function bd(e,t){return t6(vs(e),vs(t))}function a6(e,t){return fd(bd(e,t))}function Zn(e,t,n){return t?n?bd(t,e):a6(t,e):n?hd(e):n6(e)}var Ga=[];async function to(e,t){return await new Promise((n,a)=>{let r=e,u=1,o=indexedDB.open(r,u);o.onsuccess=i=>{n(o.result)},o.onerror=i=>{a()},o.onupgradeneeded=i=>{let s=o.result,c=t||"cache";s.createObjectStore(c,{keyPath:"key"})}})}async function yd(e){let t=`${J}-${e.service}@${e.from}->${e.to}`;return await o6(t,e)}async function xd(e){let t=Zn(e.originalText),n=`${J}-${e.service}@${e.from}->${e.to}`;return await u6(n,t)}async function u6(e,t){let n=await to(e);return await new Promise((a,r)=>{if(!n)return r();let u="cache",i=n.transaction([u],"readonly").objectStore(u).get(t);i.onsuccess=s=>{n.close();let c=i.result;a(c)},i.onerror=s=>{n.close(),r()}})}async function o6(e,t){let n=await to(e);return(await s6()).includes(e)||await i6(e),await new Promise(r=>{if(!n)return r(!1);let u="cache",i=n.transaction([u],"readwrite").objectStore(u).put(t);i.onsuccess=s=>{n.close(),r(!0)},i.onerror=s=>{n.close(),r(!1)}})}async function i6(e){let t="cache_list",n=await to(J+"-cacheList",t),r=n.transaction([t],"readwrite").objectStore(t).put({key:e});r.onsuccess=u=>{n.close(),Ga.push(e)},r.onerror=u=>{n.close()}}async function s6(){if(Ga&&Ga.length>0)return Ga;let e=await to(J+"-cacheList","cache_list");return Ga=await new Promise(t=>{let n="cache_list",r=e.transaction([n],"readonly").objectStore(n).getAllKeys();r.onsuccess=u=>{e.close(),t(r.result)},r.onerror=u=>{e.close(),t([])}}),Ga}p();p();p();var Ed="G-MKMD9LWFTR";async function Je(e,t,n){try{let a=Qe();if(a.INSTALL_FROM==="firefox_store")return;let u=he(),o=nt(),i=a.PROD==="1",s=`report_${e}`,c=e.endsWith("_daily");if(c){if(o)return;let M=await Rn(s,0),w=no(new Date(M)),E=Date.now(),I=no(new Date(E));if(w===I)return;await ad(s,E)}else if(!n.config.telemetry)return;let l="sitc4WmvShWYwfU0dANM3Q",m=await At("fakeUserId","");m||(m=await Rn("fakeUserId",""),m&&await je("fakeUserId",m));let g=an(),f=new Date,d=await At("installedAt","");d||(d=await Rn("installedAt",""),d&&await je("installedAt",d)),m?d||(d=new Date(0).toISOString(),await je("installedAt",d)):(m=l6(32),await je("fakeUserId",m)),d||(d=f.toISOString(),await je("installedAt",d));let b=new Date(d),T=no(b),h=no(f),C=T===h,v=f.getTime()-b.getTime()<7*24*60*60*1e3,O=`https://www.google-analytics.com/mp/collect?measurement_id=${Ed}&api_secret=${l}`;i||(O=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${Ed}&api_secret=${l}`);let B=Ua.parse(window.navigator.userAgent),x=t.map(M=>{let w=M.params||{};if(B.os&&(w.os_name=B.os.name||"unknown",w.os_version=B.os.version||"unknown",w.os_version_name=B.os.versionName||"unknown"),B.browser&&(w.browser_name=B.browser.name||"unknown",w.browser_version=B.browser.version||"unknown"),B.platform&&(w.platform_type=B.platform.type||"unknown"),B.engine&&(w.engine_name=B.engine.name||"unknown",w.engine_version=B.engine.version||"unknown"),n.translationService&&(w.translation_service||(w.translation_service=n.translationService),n.config.translationServices&&n.config.translationServices[n.translationService]&&(n.config.translationServices[n.translationService].provider&&(w.translation_service_provider=n.config.translationServices[n.translationService].provider),n.translationService==="openai"&&n.config.translationServices[n.translationService].provider==="custom"&&(n.config.translationServices[n.translationService].apiUrl?n.config.translationServices[n.translationService].apiUrl.startsWith("https://api.openai.com/")?w.openai_is_official="1":w.openai_is_official="0":w.openai_is_official="1"))),n.targetLanguage&&(w.target_language=n.targetLanguage),n.config.interfaceLanguage&&(w.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?w.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":w.enable_default_always_translated_urls="0",g&&(w.version=g),n.config.enableInputTranslation?w.enable_input_translation=n.config.enableInputTranslation?"1":"0":w.enable_input_translation="0",n.config.translationTheme&&(w.translation_theme=n.config.translationTheme),n.config.alpha&&(w.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?w.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):w.always_translate_languages="none",a.INSTALL_FROM&&(w.install_from=a.INSTALL_FROM),n.config.beta&&(w.beta=n.config.alpha.toString()),n.config.translationArea&&(w.translation_area=n.config.translationArea),n.rule&&n.rule.enableSearchEnhancement!==void 0&&(w.enable_search_enhancement=n.rule.enableSearchEnhancement?"1":"0"),T&&(w.install_day=c6(b)),n.user){let I=dc(n.user);I&&Object.keys(I).forEach(F=>{w[F]=I[F]})}else w.user_type="anonymous";n.config.translationMode&&(w.translation_mode=n.config.translationMode),w.userscript=u.toString(),C?w.is_new_user_today="1":w.is_new_user_today="0",v?w.is_new_user_this_week="1":w.is_new_user_this_week="0",n.config.tempTranslateDomainMinutes?w.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():w.temp_translate_domain_minutes="0";let E="html";if(n.rule.isEbook?E="ebookReader":n.rule.isPdf?E="pdfReader":n.rule.isEbookBuilder?E="ebookBuilder":n.rule.isSubtitleBuilder&&(E="subtitleBuilder"),w.page_type=E,o?w.main_frame=0:w.main_frame=1,!c){let I=n.url;try{let F=new URL(I);w.site_host=F.hostname}catch{w.site_host="unknown"}n.sourceLanguage&&(w.source_language=n.sourceLanguage)}return{...M,params:w}}),L=await ie({responseType:"text",url:O,method:"POST",body:JSON.stringify({client_id:m,user_id:m,events:x})})}catch{}}function l6(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;rt.removeEventListener("message",n)),e.length=0}function p6(e,t,n,a){return new Promise(r=>{let u=o=>{let i=o.data;m6(t,n,i)&&i.id===a&&(e.removeEventListener("message",u),r(i.response))};e.addEventListener("message",u)})}function f6(e,t,n,a){let r=u=>{let o=u.data;kd(t,"tell",n,o)&&a(o.body)};return e.addEventListener("message",r),[e,r]}function Td(e,t,n,a,r,u){let o=async i=>{let s=i.data;if(kd(n,"ask",a,s)){let c=await u(s.body);t=i.source,t.postMessage(d6(n,a,s.id,c),i.origin)}};return e.addEventListener("message",o),[e,o]}function h6(e,t,n,a,r){let u=Math.random().toString();return e.postMessage(vd(t,"tell",n,u,a),r)}async function Cd(e,t,n,a,r,u,o){let i=Math.random().toString(),s=new Promise(async(c,l)=>{let m=setTimeout(()=>l(new Error(`Failed to get response within ${o}ms`)),o),g=await p6(e,n,a,i);clearTimeout(m),c(g)});return t.postMessage(vd(n,"ask",a,i,r),u),s}var ea=class e{constructor(t,n,a=window,r="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=a;this.targetOrigin=r;Td(a,n,this.getSystemProtocol("ping"),"ping",r,()=>Promise.resolve({}))}static async connect(t,n=10,a=500){for(let r=0;r<=n;r++)try{return await t.ping({timeout:a}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*a}ms`)}static parent(t,n,a="*",r=window){let u=n.contentWindow;if(Xn(u))return new e(t,u,r,a);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:a=window,targetWindow:r=window.parent}={}){return new e(t,r,a,n)}static rootIframe(t,n="*",{thisWindow:a=window}={}){return new e(t,null,a,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await Cd(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(f6(this.thisWindow,this.protocol,t,n))}tell(t,n){h6(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(Td(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,a=1e4){if(this.targetWindow)return Cd(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,a);throw new Error("target window is requried")}destroy(){g6(this.listeners)}};var Sd;async function Ad(){if(nt()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=ea.iframe(Pu,"*",{targetWindow:t});Sd=n,await ea.connect(n).catch(a=>{U.error("connect with parent frame error",a)})}}function ao(){return Sd}p();function Dd(e,t){let n=t.matches||[],a=t.excludeMatches||[];if(a&&!Array.isArray(a)&&(a=[a]),n&&!Array.isArray(n)&&(n=[n]),a.length>0){if(a.includes(e)||a.includes(""))return!1;for(let r of a)if(r.includes("*")&&new RegExp(r).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let r of n)if(r.includes("*")&&new RegExp(r).test(e))return!0}return!1}p();p();p();p();p();var ft=class{options;strictTicks=[];constructor(t){this.options=t,this.setOptions(t)}setOptions(t){t&&(t.interval!==void 0&&(this.options.interval=Number(t.interval)),t.limit!==void 0&&(this.options.limit=Number(t.limit)))}wait(){return new Promise((t,n)=>{setTimeout(t,this.getDelay())})}getDelay(){let t=this.strictTicks,n=this.options.limit,a=this.options.interval,r=Date.now();if(t.length=u?(t.push(r),0):(t.push(u),u-r)}};var b6=new ft({limit:7,interval:1250}),y6={tencent:new ft({limit:3,interval:1350}),baidu:new ft({limit:1,interval:1550}),strict:new ft({limit:1,interval:1050}),d:new ft({limit:1,interval:1050}),youdao:new ft({limit:5,interval:1050}),you:new ft({limit:5,interval:1050}),cai:new ft({limit:5,interval:1050}),google:new ft({limit:10,interval:1050}),deepl:new ft({limit:10,interval:1050}),transmart:new ft({limit:30,interval:1050}),papago:new ft({limit:3,interval:1150}),openai:new ft({limit:10,interval:1300}),chatgpt:new ft({limit:1,interval:1350})};function qr(e){return y6[e]||b6}async function Ld(e){if(nt()){let n=ao();if(n)try{return(await n.ask("getRateLimitDelay",{key:e})).value}catch(a){return U.error("can not comunicate with root frame, use strict limiter",a),qr("strict").getDelay()}else return qr("strict").getDelay()}else return qr(e).getDelay()}async function Pd(e,t){if(!nt()){let a=qr(e);t&&a.setOptions(t)}}async function Md(e){let t=e.key;return{value:qr(t).getDelay()}}p();var _d="auto",ro="auto",Fd="auto";function ks(e){_d=e}function rn(e){ro=e}function ct(){return ro!=="auto"?ro:Fd!=="auto"?Fd:_d}function uo(){return ro}var be=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=200;translationOptions;constructor(t,n,a){this.serviceConfig=t,this.generalConfig=n,this.translationOptions=a}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getDefaultRateLimit(){return null}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,a){if(t.sentences.length===0)return{sentences:[]};let{sentences:r}=t,u=[],o=null,i=new Set;for(let b of r)b.from&&b.from!=="auto"&&i.add(b.from);let s=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(s=this.serviceConfig.maxTextLengthPerRequest);let c=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(c=this.serviceConfig.maxTextGroupLengthPerRequest);try{u=Uc(r,s,c)}catch(b){if(a)for(let T=0;Tb));let l=[],m=[],g=(b,T,h)=>{let C=T.translatedTexts[0];m[b]||(m[b]=T,m[b].translatedTexts=Array(T.sentenceTotalParts).fill(null)),m[b].translatedTexts[T.partIndex]=C;let v=m[b],O=0;for(let B=0;B{let v=await Ld(this.translationOptions.translationService);await Dr(v||0);let O=T.from;if(T.fromByClient&&T.fromByClient!=="auto"&&(O=T.fromByClient),this.isSupportList)return{...await this.translateList({text:T.tempSentences.map(x=>x.text),from:O,to:T.to,url:h,options:n}),sourceTempSentences:T.tempSentences};{let B=Pc;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(B=this.serviceConfig.translationTextSeparator);let x=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(x=this.serviceConfig.newlinePlaceholderDelimiters);let L="";x&&x.length>=2?L=T.tempSentences.map((F,A)=>A===T.tempSentences.length-1?F.text:F.text+x[0]+(A+1)+x[1]).join(""):L=T.tempSentences.map(F=>F.text).join(B);let M=await this.translate({text:L,from:O,to:T.to,url:h,options:n}),{text:w}=M,E=[];if(x&&x.length>=2){let F=`${x[0]}\\d+${x[1]}`;x&&x.length>=3&&(F=x[2]);let A=new RegExp(F,"g");E=w.split(A)}else E=w.split(B);let I=[];if(E.length>T.tempSentences.length){for(let F=0;F{let{text:O,sourceTempSentences:B}=v;for(let x=0;x{if(a){for(let O=0;O({...b.sentence,text:b.translatedTexts.join("")}))}}detectLanguageLocally(t){return Ke({text:t,minLength:18,pageLangs:[ct(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}};p();p();var Va="input is invalid type",Ss=typeof window=="object",ta=Ss?window:{};ta.JS_SHA256_NO_WINDOW&&(Ss=!1);var x6=!Ss&&typeof self=="object",E6=!ta.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;E6?ta=global:x6&&(ta=self);var gw=!ta.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,pw=typeof define=="function"&&define.amd,Wr=!ta.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",le="0123456789abcdef".split(""),T6=[-2147483648,8388608,32768,128],fn=[24,16,8,0],oo=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],io=["hex","array","digest","arrayBuffer"],dt=[];(ta.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});Wr&&(ta.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var Bd=function(e,t){return function(n){return new mt(t,!0).update(n)[e]()}},Id=function(e){var t=Bd("hex",e);t.create=function(){return new mt(e)},t.update=function(r){return t.create().update(r)};for(var n=0;n>2]|=e[r]<>2]|=a<>2]|=(192|a>>6)<>2]|=(128|a&63)<=57344?(i[u>>2]|=(224|a>>12)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<>2]|=(240|a>>18)<>2]|=(128|a>>12&63)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<=64?(this.block=i[16],this.start=u-64,this.hash(),this.hashed=!0):this.start=u}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};mt.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=T6[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};mt.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,s=this.blocks,c,l,m,g,f,d,b,T,h,C,v;for(c=16;c<64;++c)f=s[c-15],l=(f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3,f=s[c-2],m=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10,s[c]=s[c-16]+l+s[c-7]+m<<0;for(v=t&n,c=0;c<64;c+=4)this.first?(this.is224?(T=300032,f=s[0]-1413257819,i=f-150054599<<0,a=f+24177077<<0):(T=704751109,f=s[0]-210244248,i=f-1521486534<<0,a=f+143694565<<0),this.first=!1):(l=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),m=(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7),T=e&t,g=T^e&n^v,b=r&u^~r&o,f=i+m+b+oo[c]+s[c],d=l+g,i=a+f<<0,a=f+d<<0),l=(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10),m=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),h=a&e,g=h^a&t^T,b=i&r^~i&u,f=o+m+b+oo[c+1]+s[c+1],d=l+g,o=n+f<<0,n=f+d<<0,l=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),m=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),C=n&a,g=C^n&e^h,b=o&i^~o&r,f=u+m+b+oo[c+2]+s[c+2],d=l+g,u=t+f<<0,t=f+d<<0,l=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),m=(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7),v=t&n,g=v^t&a^C,b=u&o^~u&i,f=r+m+b+oo[c+3]+s[c+3],d=l+g,r=e+f<<0,e=f+d<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+a<<0,this.h4=this.h4+r<<0,this.h5=this.h5+u<<0,this.h6=this.h6+o<<0,this.h7=this.h7+i<<0};mt.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,s=le[e>>28&15]+le[e>>24&15]+le[e>>20&15]+le[e>>16&15]+le[e>>12&15]+le[e>>8&15]+le[e>>4&15]+le[e&15]+le[t>>28&15]+le[t>>24&15]+le[t>>20&15]+le[t>>16&15]+le[t>>12&15]+le[t>>8&15]+le[t>>4&15]+le[t&15]+le[n>>28&15]+le[n>>24&15]+le[n>>20&15]+le[n>>16&15]+le[n>>12&15]+le[n>>8&15]+le[n>>4&15]+le[n&15]+le[a>>28&15]+le[a>>24&15]+le[a>>20&15]+le[a>>16&15]+le[a>>12&15]+le[a>>8&15]+le[a>>4&15]+le[a&15]+le[r>>28&15]+le[r>>24&15]+le[r>>20&15]+le[r>>16&15]+le[r>>12&15]+le[r>>8&15]+le[r>>4&15]+le[r&15]+le[u>>28&15]+le[u>>24&15]+le[u>>20&15]+le[u>>16&15]+le[u>>12&15]+le[u>>8&15]+le[u>>4&15]+le[u&15]+le[o>>28&15]+le[o>>24&15]+le[o>>20&15]+le[o>>16&15]+le[o>>12&15]+le[o>>8&15]+le[o>>4&15]+le[o&15];return this.is224||(s+=le[i>>28&15]+le[i>>24&15]+le[i>>20&15]+le[i>>16&15]+le[i>>12&15]+le[i>>8&15]+le[i>>4&15]+le[i&15]),s};mt.prototype.toString=mt.prototype.hex;mt.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,s=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,a>>24&255,a>>16&255,a>>8&255,a&255,r>>24&255,r>>16&255,r>>8&255,r&255,u>>24&255,u>>16&255,u>>8&255,u&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||s.push(i>>24&255,i>>16&255,i>>8&255,i&255),s};mt.prototype.array=mt.prototype.digest;mt.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function so(e,t,n){var a,r=typeof e;if(r==="string"){var u=[],o=e.length,i=0,s;for(a=0;a>6,u[i++]=128|s&63):s<55296||s>=57344?(u[i++]=224|s>>12,u[i++]=128|s>>6&63,u[i++]=128|s&63):(s=65536+((s&1023)<<10|e.charCodeAt(++a)&1023),u[i++]=240|s>>18,u[i++]=128|s>>12&63,u[i++]=128|s>>6&63,u[i++]=128|s&63);e=u}else if(r==="object"){if(e===null)throw new Error(Va);if(Wr&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!Wr||!ArrayBuffer.isView(e)))throw new Error(Va)}else throw new Error(Va);e.length>64&&(e=new mt(t,!0).update(e).array());var c=[],l=[];for(a=0;a<64;++a){var m=e[a]||0;c[a]=92^m,l[a]=54^m}mt.call(this,t,n),this.update(l),this.oKeyPad=c,this.inner=!0,this.sharedMemory=n}so.prototype=new mt;so.prototype.finalize=function(){if(mt.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();mt.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),mt.prototype.finalize.call(this)}};var Ya=Id();Ya.sha256=Ya;Ya.sha224=Id(!0);Ya.sha256.hmac=Od();Ya.sha224.hmac=Od(!0);var Nd=Ya;var jd=Nd.sha256;function hn(e){return Promise.resolve(jd(e))}function lo(e){return Array.from(new Uint8Array(e)).map(a=>a.toString(16).padStart(2,"0")).join("")}function na(e,t){let n=jd.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function zd(e,t){let n=await na(e,t);return lo(n)}async function co(e,t){let n=C6(t),a=await na(e,n);return lo(a)}function C6(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var Ud=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],$r=class e extends be{static langMap=new Map(Ud);static langMapReverse=new Map(Ud.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),a=`${t.getUTCMonth()+1}`.padStart(2,"0"),r=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${a}-${r}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.secretId||!t.secretKey)throw new Error("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}async translate(t){let{text:n,from:a,to:r}=t,u=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceText:n,Target:e.langMap.get(r)||r}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:u,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||a,to:e.langMapReverse.get(o.Response.Target)||r}}async translateList(t){let{text:n,from:a,to:r}=t,u=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceTextList:n,Target:e.langMap.get(r)||r}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:u,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||a,to:e.langMapReverse.get(o.Response.Target)||r}}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:u,version:o}){let i=`${u}.tencentcloudapi.com`,s=new Date,c=`${new Date().valueOf()}`.slice(0,10),l=["POST","/","","content-type:application/json; charset=utf-8",`host:${i}`,"","content-type;host",await hn(r)].join(` +`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main div[class*='h-[125]']":"height:auto"},normalizeBody:"body",extraBlockSelectors:["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,normalizeBody:"#mw-content-text",globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"]},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"}},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:"chat.openai.com",excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0}},{id:"newstop",matches:["chat.newstop.asia","chat.waixingyun.cn"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".n-button.n-button--warning-type.n-button--medium-type",messageWrapperSelector:".markdown-body",streamingChange:!1,streamingDeepChild:!0}},{id:"askgpt",matches:["askgpt.cn","chatcat.zhaoyoung.me"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".home_chat-message-status__EsVNi",messageWrapperSelector:".markdown-body",streamingChange:!0,streamingDeepChild:!0}},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__UyYrv *",".MarkdownLink_linkifiedLink__KxC9G"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__UyYrv",streamingChange:!1,streamingDeepChild:!0}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"newthingsunderthesun",matches:"www.newthingsunderthesun.com",additionalSelectors:["[translate=no]"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"https://steamcommunity.com/app/*",globalStyles:{".forum_topic":"height:auto;",".forum_topic_name":"white-space:normal;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampowered",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:"https://www.webofscience.com/*",globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},excludeSelectors:[".summary-left-panel",".authors","app-full-record-keywords mark"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],extraBlockSelectors:["app-summary-authors + div","app-full-record-keywords span span"],observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://www.jetbrains.com/help/*",extraBlockSelectors:["[data-test=prompt]"]},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails p"]},{id:"isEbook",isEbook:!0,isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span"},{id:"isEbookBuilder",isEbookBuilder:!0,isTranslateTitle:!1,targetWrapperTag:"span",selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com",extraBlockSelectors:["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],extraBlockSelectors:"font[face=verdana]"},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"isSubtitleBuilder",isSubtitleBuilder:!0,selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,wrapperPrefix:"",wrapperSuffix:""},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/",extraBlockSelectors:[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"vimeo",matches:"https://player.vimeo.com/video/*",extraBlockSelectors:["span.vp-captions-line","span[class^=CaptionsRenderer_]"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexityAi",matches:"https://www.perplexity.ai/search/*",extraBlockSelectors:[".prose > span"],additionalStayOriginalSelectors:["a.citation"],insertPosition:"afterend"},{id:"perplexity",matches:"https://www.perplexity.ai",globalStyles:{".line-clamp-1":"-webkit-line-clamp: unset !important;",".line-clamp-2":"-webkit-line-clamp: unset !important;"}},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"babelnovel",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*"],urlChangeDelay:0},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0},{globalAttributes:{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"youtrackJetbrains",matches:"youtrack.jetbrains.com/articles/*",selectors:["[role=presentation]","[data-test=article-content]"],excludeSelectors:[".toolbar__ee8"]},{id:"bbc",matches:"www.bbc.com",excludeSelectors:["section.module--languages",".drop-capped"]},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}}},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"openai",matches:"https://platform.openai.com/docs/*",urlChangeDelay:0},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout":"height:unset !important;",".EntrySummary--u4":"-webkit-line-clamp: unset;max-height:unset;",".EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:[".copyable-text > span"],wrapperPrefix:` +`,wrapperSuffix:"
"},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],globalStyles:{"[class*='lineclamp']":"-webkit-line-clamp:unset;"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],extraBlockSelectors:[".SIPGg",".sc-kzMCTH.pSZXj"],globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"]},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*",globalAttributes:{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead"],injectedCss:["a::after {position:relative!important;}"]},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},globalAttributes:{"#app":{class:""}}},{id:"haproxy",matches:["docs.haproxy.org","www.oreilly.com/openbook/opensources/book/*"],excludeTags:[],stayOriginalSelectors:[],stayOriginalTags:[],isTransformPreTagNewLine:!0},{id:"piAi",matches:"pi.ai/talk",excludeSelectors:[".whitespace-pre-wrap > span *"],aiRule:{streamingSelector:"button[class*='fixed'][disabled]",messageWrapperSelector:".whitespace-pre-wrap",streamingChange:!1,streamingDeepChild:!1},globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *"],"excludeTags.remove":["PRE"],injectedCss:"[data-testid='chat-menu-trigger'] br {display:none;}",aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1}},{id:"feishu",matches:"*.feishu.cn","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],excludeSelectors:[".catalogue__list"]},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"bugsWebkit",matches:"bugs.webkit.org",isTransformPreTagNewLine:!0},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",matches:"www.kaggle.com",excludeTags:["i","button"]},{id:"ieee",matches:"spectrum.ieee.org",extraBlockSelectors:["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"www.cnn.com",excludeSelectors:[".ad-slot-header__wrapper"]},{id:"marginalrevolution",matches:"marginalrevolution.com",globalAttributes:{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",condition:{enableSubtitle:{false:{"excludeSelectors.add":[".bpx-player-subtitle-panel-text"]}}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"docs-oracle",matches:"docs.oracle.com",urlChangeDelay:0},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"edstem",matches:"edstem.org","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:"pubmed.ncbi.nlm.nih.gov",urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share"]},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"tldrnewsletter",matches:"actions.tldrnewsletter.com","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"bugzilla",matches:"bugzilla.mozilla.org","excludeTags.remove":["PRE"],isTransformPreTagNewLine:!0},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"excludeSelectors.add":["aside",".DocSearch-Modal"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"mail.qq.com",useIframePostMessage:!1},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]}]};p();p();function ya(e){return Array.isArray(e)?e:e?[e]:[]}function xs(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function Yn(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function Qu(e,t){let n={...e};return cd(n,t),Y1(n,t),n}function ld(e,t,n){let a={...t};return J1(e,a,n),a}function Y1(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},a=t.condition.enableSubtitle?.false||{},r=e.enableSubtitle?n:a;cd(e,r)}function J1(e,t,n){try{return Object.keys(t).forEach(a=>{let[r,u]=a.split(".");if(u){let o=t[a];if(Array.isArray(e[r])&&(o=ya(t[a])),u==="add"){t[r]=Hr(e[r],o),delete t[a];return}else if(u=="remove"){t[r]=Es(e[r],o),delete t[a];return}}}),Object.keys(n).forEach(a=>{let[r,u]=a.split(".");if(!r||n[a]===void 0)return;let o=n[a],i=t[r];if(Array.isArray(e[r])&&(o=ya(n[a]),i=ya(t[r])),u==="add"){t[r]=Hr(i,o);return}else if(u=="remove"){t[r]=Es(i,o);return}Array.isArray(i)&&r.startsWith("additional")?t[r]=Hr(i,o):t[r]=o}),t}catch{}}function cd(e,t){return Object.keys(t).forEach(n=>{let[a,r]=n.split(".");if(!a||t[n]===void 0)return;let u=t[n];if(Array.isArray(e[a])&&(u=ya(t[n])),r==="add"){e[a]=Hr(e[a],u);return}else if(r=="remove"){e[a]=Es(e[a],u);return}Array.isArray(e[a])&&a.startsWith("additional")?e[a]=Hr(e[a],u):e[a]=u}),e}function Hr(e,t){let n;if(Array.isArray(e)){let a=ya(t);n=[...e,...a],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"&&(n={...e,...t});return n}function Es(e,t){if(Array.isArray(e)){let n=ya(t);return e=e.filter(a=>!n.includes(a)),Array.from(new Set(e))}else typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(n=>{delete e[n]});return e}function dd(){if(Ee.PROD==="1")return{};let e={};if(Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:Ee.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:Ee.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:Ee.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(Ee.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=Ee.DEEPL_PROXY_ENDPOINT),Ee.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=Ee.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),Ee.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:Ee.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}Ee.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=Ee.IMMERSIVE_TRANSLATE_SERVICE);let t={};return Ee.DEBUG==="1"&&(t.debug=!0,t.cache=!1),Ee.MOCK==="1"&&(t.translationService="mock"),t}async function Jn(){let e=await se.storage.local.get(vr);if(e[vr]){let t=e[vr],n=t.tempTranslationUrlMatches||[],a=n.filter(o=>o.expiredAt>Date.now()),r=!1;a.length!==n.length&&(n=a,r=!0);let u={...t,tempTranslationUrlMatches:[...n]};return r&&await kn(u),u}else return{}}async function kn(e){await se.storage.local.set({[vr]:e})}async function md(e){await se.storage.local.set({[qn]:e})}async function gd(){let e=await se.storage.local.get(qn),n={...pd(),...Ju,buildinConfigUpdatedAt:Ee.BUILD_TIME};if(e[qn]){let a=e[qn];if(a&&a.buildinConfigUpdatedAt){let r=new Date(a.buildinConfigUpdatedAt),u=new Date(n.buildinConfigUpdatedAt);r>u&&(n=a)}}return n}async function Ka(){let e=await se.storage.local.get(qn),t={...Ju,buildinConfigUpdatedAt:Ee.BUILD_TIME};if(e[qn]){let D=e[qn];if(D&&D.buildinConfigUpdatedAt){let y=new Date(D.buildinConfigUpdatedAt),S=new Date(t.buildinConfigUpdatedAt);y>S&&(t=D)}}let n=await jt.get(Ot,null),a={};if(!fe()&&se.commands&&se.commands.getAll){let D=await se.commands.getAll();for(let y of D)y.name&&y.shortcut&&(a[y.name]=y.shortcut)}let r=pd(),u=dd(),o=await Ts(),i=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},s=await Jn(),c=new Date;if(s&&s.tempTranslationUrlMatches&&s.tempTranslationUrlMatches.length>0){let D=s.tempTranslationUrlMatches.filter(y=>new Date(y.expiredAt)>c);if(D.length>0){let y=o.translationUrlPattern?o.translationUrlPattern?.matches||[]:[],S=Array.isArray(y)?y:[y],R=Array.from(new Set(S.concat(D.map($=>$.match))));o.translationUrlPattern={...o.translationUrlPattern,matches:R}}}let l=Object.assign({},i,u,o);if(!l.interfaceLanguage){let D=await Q1();l.interfaceLanguage=D}let m=l.interfaceLanguage==="en",g=l.targetLanguage==="en",f=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,d=["bing","google","transmart","mock"].includes(l.translationService)||!l.translationService;!m&&!g&&!f&&d?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let b=t&&t.enableDefaultAlwaysTranslatedUrls;l.enableDefaultAlwaysTranslatedUrls===!1&&(b=!1);let T=l&&l.isChangedAlwaysTranslatedUrls,h=[];l.translationUrlPattern&&l.translationUrlPattern.matches&&(h=l.translationUrlPattern.matches||[]);let C=!1;T===void 0&&(h.length>0?T=!0:T=!1,l.isChangedAlwaysTranslatedUrls=T,o.isChangedAlwaysTranslatedUrls=T,C=!0);let v=(l?.translationLanguagePattern?.matches?.length||0)>0,O=await At("installedAt",""),B=Number(await Rn("translage_page_daily",0)),x=Number(await At(mn,0)),L;x>0&&(Date.now()-x0&&(Date.now()-Bz.id&&R[z.id]?ld(t.generalRule,R[z.id],z):z);I[y]=[...$,...I[y]]}if(Ee.PROD==="0"&&Ee.DEV_RULES){let S=JSON.parse(Ee.DEV_RULES);I[y]=[...S,...I[y]]}}else l[y]!==void 0&&(I[y]=l[y])}return I.donateUrl=t.donateUrl,I.minVersion=t.minVersion,I.feedbackUrl=t.feedbackUrl,I}async function Ts(){return(await se.storage.sync.get("userConfig")||{}).userConfig||{}}async function Cs(e){await se.storage.sync.set({userConfig:e})}var Q1=async()=>{let e=["zh-CN"];try{e=await se.i18n.getAcceptLanguages()}catch(a){U.warn("get browser language error:",a)}let n=e.map(a=>za(a)).find(a=>Rt[a]);return n||"en"},pd=()=>{let e={...Ju,buildinConfigUpdatedAt:Ee.BUILD_TIME};return{...e,targetLanguage:Du,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing"},rules:[]}};function Z1(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(a=>!e.includes(a)).length>0}p();p();function Qn(e,t){var n=(e&65535)+(t&65535),a=(e>>16)+(t>>16)+(n>>16);return a<<16|n&65535}function X1(e,t){return e<>>32-t}function Xu(e,t,n,a,r,u){return Qn(X1(Qn(Qn(t,e),Qn(a,u)),r),n)}function Et(e,t,n,a,r,u,o){return Xu(t&n|~t&a,e,t,r,u,o)}function Tt(e,t,n,a,r,u,o){return Xu(t&a|n&~a,e,t,r,u,o)}function Ct(e,t,n,a,r,u,o){return Xu(t^n^a,e,t,r,u,o)}function wt(e,t,n,a,r,u,o){return Xu(n^(t|~a),e,t,r,u,o)}function Zu(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,a,r,u,o,i=1732584193,s=-271733879,c=-1732584194,l=271733878;for(n=0;n>5]>>>t%32&255);return n}function ws(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(a=Zu(a,e.length*8)),n=0;n<16;n+=1)r[n]=a[n]^909522486,u[n]=a[n]^1549556828;return o=Zu(r.concat(ws(t)),512+t.length*8),fd(Zu(u.concat(o),512+128))}function hd(e){var t="0123456789abcdef",n="",a,r;for(r=0;r>>4&15)+t.charAt(a&15);return n}function vs(e){return unescape(encodeURIComponent(e))}function bd(e){return e6(vs(e))}function n6(e){return hd(bd(e))}function yd(e,t){return t6(vs(e),vs(t))}function a6(e,t){return hd(yd(e,t))}function Zn(e,t,n){return t?n?yd(t,e):a6(t,e):n?bd(e):n6(e)}var Ga=[];async function eo(e,t){return await new Promise((n,a)=>{let r=e,u=1,o=indexedDB.open(r,u);o.onsuccess=i=>{n(o.result)},o.onerror=i=>{a()},o.onupgradeneeded=i=>{let s=o.result,c=t||"cache";s.createObjectStore(c,{keyPath:"key"})}})}async function xd(e){let t=`${J}-${e.service}@${e.from}->${e.to}`;return await o6(t,e)}async function Ed(e){let t=Zn(e.originalText),n=`${J}-${e.service}@${e.from}->${e.to}`;return await u6(n,t)}async function u6(e,t){let n=await eo(e);return await new Promise((a,r)=>{if(!n)return r();let u="cache",i=n.transaction([u],"readonly").objectStore(u).get(t);i.onsuccess=s=>{n.close();let c=i.result;a(c)},i.onerror=s=>{n.close(),r()}})}async function o6(e,t){let n=await eo(e);return(await s6()).includes(e)||await i6(e),await new Promise(r=>{if(!n)return r(!1);let u="cache",i=n.transaction([u],"readwrite").objectStore(u).put(t);i.onsuccess=s=>{n.close(),r(!0)},i.onerror=s=>{n.close(),r(!1)}})}async function i6(e){let t="cache_list",n=await eo(J+"-cacheList",t),r=n.transaction([t],"readwrite").objectStore(t).put({key:e});r.onsuccess=u=>{n.close(),Ga.push(e)},r.onerror=u=>{n.close()}}async function s6(){if(Ga&&Ga.length>0)return Ga;let e=await eo(J+"-cacheList","cache_list");return Ga=await new Promise(t=>{let n="cache_list",r=e.transaction([n],"readonly").objectStore(n).getAllKeys();r.onsuccess=u=>{e.close(),t(r.result)},r.onerror=u=>{e.close(),t([])}}),Ga}p();p();p();var Td="G-MKMD9LWFTR";async function Je(e,t,n){try{let a=Qe();if(a.INSTALL_FROM==="firefox_store")return;let u=fe(),o=nt(),i=a.PROD==="1",s=`report_${e}`,c=e.endsWith("_daily");if(c){if(o)return;let M=await Rn(s,0),w=to(new Date(M)),E=Date.now(),I=to(new Date(E));if(w===I)return;await ad(s,E)}else if(!n.config.telemetry)return;let l="sitc4WmvShWYwfU0dANM3Q",m=await At("fakeUserId","");m||(m=await Rn("fakeUserId",""),m&&await je("fakeUserId",m));let g=an(),f=new Date,d=await At("installedAt","");d||(d=await Rn("installedAt",""),d&&await je("installedAt",d)),m?d||(d=new Date(0).toISOString(),await je("installedAt",d)):(m=l6(32),await je("fakeUserId",m)),d||(d=f.toISOString(),await je("installedAt",d));let b=new Date(d),T=to(b),h=to(f),C=T===h,v=f.getTime()-b.getTime()<7*24*60*60*1e3,O=`https://www.google-analytics.com/mp/collect?measurement_id=${Td}&api_secret=${l}`;i||(O=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${Td}&api_secret=${l}`);let B=Ha.parse(window.navigator.userAgent),x=t.map(M=>{let w=M.params||{};if(B.os&&(w.os_name=B.os.name||"unknown",w.os_version=B.os.version||"unknown",w.os_version_name=B.os.versionName||"unknown"),B.browser&&(w.browser_name=B.browser.name||"unknown",w.browser_version=B.browser.version||"unknown"),B.platform&&(w.platform_type=B.platform.type||"unknown"),B.engine&&(w.engine_name=B.engine.name||"unknown",w.engine_version=B.engine.version||"unknown"),n.translationService&&(w.translation_service||(w.translation_service=n.translationService),n.config.translationServices&&n.config.translationServices[n.translationService]&&(n.config.translationServices[n.translationService].provider&&(w.translation_service_provider=n.config.translationServices[n.translationService].provider),n.translationService==="openai"&&n.config.translationServices[n.translationService].provider==="custom"&&(n.config.translationServices[n.translationService].apiUrl?n.config.translationServices[n.translationService].apiUrl.startsWith("https://api.openai.com/")?w.openai_is_official="1":w.openai_is_official="0":w.openai_is_official="1"))),n.targetLanguage&&(w.target_language=n.targetLanguage),n.config.interfaceLanguage&&(w.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?w.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":w.enable_default_always_translated_urls="0",g&&(w.version=g),n.config.enableInputTranslation?w.enable_input_translation=n.config.enableInputTranslation?"1":"0":w.enable_input_translation="0",n.config.translationTheme&&(w.translation_theme=n.config.translationTheme),n.config.alpha&&(w.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?w.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):w.always_translate_languages="none",a.INSTALL_FROM&&(w.install_from=a.INSTALL_FROM),n.config.beta&&(w.beta=n.config.alpha.toString()),n.config.translationArea&&(w.translation_area=n.config.translationArea),n.rule&&n.rule.enableSearchEnhancement!==void 0&&(w.enable_search_enhancement=n.rule.enableSearchEnhancement?"1":"0"),T&&(w.install_day=c6(b)),n.user){let I=dc(n.user);I&&Object.keys(I).forEach(F=>{w[F]=I[F]})}else w.user_type="anonymous";n.config.translationMode&&(w.translation_mode=n.config.translationMode),w.userscript=u.toString(),C?w.is_new_user_today="1":w.is_new_user_today="0",v?w.is_new_user_this_week="1":w.is_new_user_this_week="0",n.config.tempTranslateDomainMinutes?w.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():w.temp_translate_domain_minutes="0";let E="html";if(n.rule.isEbook?E="ebookReader":n.rule.isPdf?E="pdfReader":n.rule.isEbookBuilder?E="ebookBuilder":n.rule.isSubtitleBuilder&&(E="subtitleBuilder"),w.page_type=E,o?w.main_frame=0:w.main_frame=1,!c){let I=n.url;try{let F=new URL(I);w.site_host=F.hostname}catch{w.site_host="unknown"}n.sourceLanguage&&(w.source_language=n.sourceLanguage)}return{...M,params:w}}),L=await ie({responseType:"text",url:O,method:"POST",body:JSON.stringify({client_id:m,user_id:m,events:x})})}catch{}}function l6(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;rt.removeEventListener("message",n)),e.length=0}function p6(e,t,n,a){return new Promise(r=>{let u=o=>{let i=o.data;m6(t,n,i)&&i.id===a&&(e.removeEventListener("message",u),r(i.response))};e.addEventListener("message",u)})}function f6(e,t,n,a){let r=u=>{let o=u.data;Sd(t,"tell",n,o)&&a(o.body)};return e.addEventListener("message",r),[e,r]}function Cd(e,t,n,a,r,u){let o=async i=>{let s=i.data;if(Sd(n,"ask",a,s)){let c=await u(s.body);t=i.source,t.postMessage(d6(n,a,s.id,c),i.origin)}};return e.addEventListener("message",o),[e,o]}function h6(e,t,n,a,r){let u=Math.random().toString();return e.postMessage(kd(t,"tell",n,u,a),r)}async function wd(e,t,n,a,r,u,o){let i=Math.random().toString(),s=new Promise(async(c,l)=>{let m=setTimeout(()=>l(new Error(`Failed to get response within ${o}ms`)),o),g=await p6(e,n,a,i);clearTimeout(m),c(g)});return t.postMessage(kd(n,"ask",a,i,r),u),s}var ea=class e{constructor(t,n,a=window,r="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=a;this.targetOrigin=r;Cd(a,n,this.getSystemProtocol("ping"),"ping",r,()=>Promise.resolve({}))}static async connect(t,n=10,a=500){for(let r=0;r<=n;r++)try{return await t.ping({timeout:a}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*a}ms`)}static parent(t,n,a="*",r=window){let u=n.contentWindow;if(Xn(u))return new e(t,u,r,a);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:a=window,targetWindow:r=window.parent}={}){return new e(t,r,a,n)}static rootIframe(t,n="*",{thisWindow:a=window}={}){return new e(t,null,a,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await wd(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(f6(this.thisWindow,this.protocol,t,n))}tell(t,n){h6(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(Cd(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,a=1e4){if(this.targetWindow)return wd(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,a);throw new Error("target window is requried")}destroy(){g6(this.listeners)}};var Ad;async function Dd(){if(nt()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=ea.iframe(Lu,"*",{targetWindow:t});Ad=n,await ea.connect(n).catch(a=>{U.error("connect with parent frame error",a)})}}function no(){return Ad}p();function Ld(e,t){let n=t.matches||[],a=t.excludeMatches||[];if(a&&!Array.isArray(a)&&(a=[a]),n&&!Array.isArray(n)&&(n=[n]),a.length>0){if(a.includes(e)||a.includes(""))return!1;for(let r of a)if(r.includes("*")&&new RegExp(r).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let r of n)if(r.includes("*")&&new RegExp(r).test(e))return!0}return!1}p();p();p();p();p();var ft=class{options;strictTicks=[];constructor(t){this.options=t,this.setOptions(t)}setOptions(t){t&&(t.interval!==void 0&&(this.options.interval=Number(t.interval)),t.limit!==void 0&&(this.options.limit=Number(t.limit)))}wait(){return new Promise((t,n)=>{setTimeout(t,this.getDelay())})}getDelay(){let t=this.strictTicks,n=this.options.limit,a=this.options.interval,r=Date.now();if(t.length=u?(t.push(r),0):(t.push(u),u-r)}};var b6=new ft({limit:7,interval:1250}),y6={tencent:new ft({limit:3,interval:1350}),baidu:new ft({limit:1,interval:1550}),strict:new ft({limit:1,interval:1050}),d:new ft({limit:1,interval:1050}),youdao:new ft({limit:5,interval:1050}),you:new ft({limit:5,interval:1050}),cai:new ft({limit:5,interval:1050}),google:new ft({limit:10,interval:1050}),deepl:new ft({limit:10,interval:1050}),transmart:new ft({limit:30,interval:1050}),papago:new ft({limit:3,interval:1150}),openai:new ft({limit:10,interval:1300}),chatgpt:new ft({limit:1,interval:1350})};function qr(e){return y6[e]||b6}async function Pd(e){if(nt()){let n=no();if(n)try{return(await n.ask("getRateLimitDelay",{key:e})).value}catch(a){return U.error("can not comunicate with root frame, use strict limiter",a),qr("strict").getDelay()}else return qr("strict").getDelay()}else return qr(e).getDelay()}async function Md(e,t){if(!nt()){let a=qr(e);t&&a.setOptions(t)}}async function Fd(e){let t=e.key;return{value:qr(t).getDelay()}}p();var Bd="auto",ao="auto",_d="auto";function ks(e){Bd=e}function rn(e){ao=e}function ct(){return ao!=="auto"?ao:_d!=="auto"?_d:Bd}function ro(){return ao}var be=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=200;translationOptions;constructor(t,n,a){this.serviceConfig=t,this.generalConfig=n,this.translationOptions=a}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getDefaultRateLimit(){return null}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,a){if(t.sentences.length===0)return{sentences:[]};let{sentences:r}=t,u=[],o=null,i=new Set;for(let b of r)b.from&&b.from!=="auto"&&i.add(b.from);let s=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(s=this.serviceConfig.maxTextLengthPerRequest);let c=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(c=this.serviceConfig.maxTextGroupLengthPerRequest);try{u=Uc(r,s,c)}catch(b){if(a)for(let T=0;Tb));let l=[],m=[],g=(b,T,h)=>{let C=T.translatedTexts[0];m[b]||(m[b]=T,m[b].translatedTexts=Array(T.sentenceTotalParts).fill(null)),m[b].translatedTexts[T.partIndex]=C;let v=m[b],O=0;for(let B=0;B{let v=await Pd(this.translationOptions.translationService);await Dr(v||0);let O=T.from;if(T.fromByClient&&T.fromByClient!=="auto"&&(O=T.fromByClient),this.isSupportList)return{...await this.translateList({text:T.tempSentences.map(x=>x.text),from:O,to:T.to,url:h,options:n}),sourceTempSentences:T.tempSentences};{let B=Pc;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(B=this.serviceConfig.translationTextSeparator);let x=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(x=this.serviceConfig.newlinePlaceholderDelimiters);let L="";x&&x.length>=2?L=T.tempSentences.map((F,A)=>A===T.tempSentences.length-1?F.text:F.text+x[0]+(A+1)+x[1]).join(""):L=T.tempSentences.map(F=>F.text).join(B);let M=await this.translate({text:L,from:O,to:T.to,url:h,options:n}),{text:w}=M,E=[];if(x&&x.length>=2){let F=`${x[0]}\\d+${x[1]}`;x&&x.length>=3&&(F=x[2]);let A=new RegExp(F,"g");E=w.split(A)}else E=w.split(B);let I=[];if(E.length>T.tempSentences.length){for(let F=0;F{let{text:O,sourceTempSentences:B}=v;for(let x=0;x{if(a){for(let O=0;O({...b.sentence,text:b.translatedTexts.join("")}))}}detectLanguageLocally(t){return Ke({text:t,minLength:18,pageLangs:[ct(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}};p();p();var Va="input is invalid type",Ss=typeof window=="object",ta=Ss?window:{};ta.JS_SHA256_NO_WINDOW&&(Ss=!1);var x6=!Ss&&typeof self=="object",E6=!ta.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;E6?ta=global:x6&&(ta=self);var gw=!ta.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,pw=typeof define=="function"&&define.amd,Wr=!ta.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",le="0123456789abcdef".split(""),T6=[-2147483648,8388608,32768,128],fn=[24,16,8,0],uo=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],oo=["hex","array","digest","arrayBuffer"],dt=[];(ta.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});Wr&&(ta.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var Rd=function(e,t){return function(n){return new mt(t,!0).update(n)[e]()}},Od=function(e){var t=Rd("hex",e);t.create=function(){return new mt(e)},t.update=function(r){return t.create().update(r)};for(var n=0;n>2]|=e[r]<>2]|=a<>2]|=(192|a>>6)<>2]|=(128|a&63)<=57344?(i[u>>2]|=(224|a>>12)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<>2]|=(240|a>>18)<>2]|=(128|a>>12&63)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<=64?(this.block=i[16],this.start=u-64,this.hash(),this.hashed=!0):this.start=u}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};mt.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=T6[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};mt.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,s=this.blocks,c,l,m,g,f,d,b,T,h,C,v;for(c=16;c<64;++c)f=s[c-15],l=(f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3,f=s[c-2],m=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10,s[c]=s[c-16]+l+s[c-7]+m<<0;for(v=t&n,c=0;c<64;c+=4)this.first?(this.is224?(T=300032,f=s[0]-1413257819,i=f-150054599<<0,a=f+24177077<<0):(T=704751109,f=s[0]-210244248,i=f-1521486534<<0,a=f+143694565<<0),this.first=!1):(l=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),m=(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7),T=e&t,g=T^e&n^v,b=r&u^~r&o,f=i+m+b+uo[c]+s[c],d=l+g,i=a+f<<0,a=f+d<<0),l=(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10),m=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),h=a&e,g=h^a&t^T,b=i&r^~i&u,f=o+m+b+uo[c+1]+s[c+1],d=l+g,o=n+f<<0,n=f+d<<0,l=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),m=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),C=n&a,g=C^n&e^h,b=o&i^~o&r,f=u+m+b+uo[c+2]+s[c+2],d=l+g,u=t+f<<0,t=f+d<<0,l=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),m=(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7),v=t&n,g=v^t&a^C,b=u&o^~u&i,f=r+m+b+uo[c+3]+s[c+3],d=l+g,r=e+f<<0,e=f+d<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+a<<0,this.h4=this.h4+r<<0,this.h5=this.h5+u<<0,this.h6=this.h6+o<<0,this.h7=this.h7+i<<0};mt.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,s=le[e>>28&15]+le[e>>24&15]+le[e>>20&15]+le[e>>16&15]+le[e>>12&15]+le[e>>8&15]+le[e>>4&15]+le[e&15]+le[t>>28&15]+le[t>>24&15]+le[t>>20&15]+le[t>>16&15]+le[t>>12&15]+le[t>>8&15]+le[t>>4&15]+le[t&15]+le[n>>28&15]+le[n>>24&15]+le[n>>20&15]+le[n>>16&15]+le[n>>12&15]+le[n>>8&15]+le[n>>4&15]+le[n&15]+le[a>>28&15]+le[a>>24&15]+le[a>>20&15]+le[a>>16&15]+le[a>>12&15]+le[a>>8&15]+le[a>>4&15]+le[a&15]+le[r>>28&15]+le[r>>24&15]+le[r>>20&15]+le[r>>16&15]+le[r>>12&15]+le[r>>8&15]+le[r>>4&15]+le[r&15]+le[u>>28&15]+le[u>>24&15]+le[u>>20&15]+le[u>>16&15]+le[u>>12&15]+le[u>>8&15]+le[u>>4&15]+le[u&15]+le[o>>28&15]+le[o>>24&15]+le[o>>20&15]+le[o>>16&15]+le[o>>12&15]+le[o>>8&15]+le[o>>4&15]+le[o&15];return this.is224||(s+=le[i>>28&15]+le[i>>24&15]+le[i>>20&15]+le[i>>16&15]+le[i>>12&15]+le[i>>8&15]+le[i>>4&15]+le[i&15]),s};mt.prototype.toString=mt.prototype.hex;mt.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,s=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,a>>24&255,a>>16&255,a>>8&255,a&255,r>>24&255,r>>16&255,r>>8&255,r&255,u>>24&255,u>>16&255,u>>8&255,u&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||s.push(i>>24&255,i>>16&255,i>>8&255,i&255),s};mt.prototype.array=mt.prototype.digest;mt.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function io(e,t,n){var a,r=typeof e;if(r==="string"){var u=[],o=e.length,i=0,s;for(a=0;a>6,u[i++]=128|s&63):s<55296||s>=57344?(u[i++]=224|s>>12,u[i++]=128|s>>6&63,u[i++]=128|s&63):(s=65536+((s&1023)<<10|e.charCodeAt(++a)&1023),u[i++]=240|s>>18,u[i++]=128|s>>12&63,u[i++]=128|s>>6&63,u[i++]=128|s&63);e=u}else if(r==="object"){if(e===null)throw new Error(Va);if(Wr&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!Wr||!ArrayBuffer.isView(e)))throw new Error(Va)}else throw new Error(Va);e.length>64&&(e=new mt(t,!0).update(e).array());var c=[],l=[];for(a=0;a<64;++a){var m=e[a]||0;c[a]=92^m,l[a]=54^m}mt.call(this,t,n),this.update(l),this.oKeyPad=c,this.inner=!0,this.sharedMemory=n}io.prototype=new mt;io.prototype.finalize=function(){if(mt.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();mt.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),mt.prototype.finalize.call(this)}};var Ya=Od();Ya.sha256=Ya;Ya.sha224=Od(!0);Ya.sha256.hmac=Nd();Ya.sha224.hmac=Nd(!0);var jd=Ya;var zd=jd.sha256;function hn(e){return Promise.resolve(zd(e))}function so(e){return Array.from(new Uint8Array(e)).map(a=>a.toString(16).padStart(2,"0")).join("")}function na(e,t){let n=zd.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function Ud(e,t){let n=await na(e,t);return so(n)}async function lo(e,t){let n=C6(t),a=await na(e,n);return so(a)}function C6(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var Hd=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],$r=class e extends be{static langMap=new Map(Hd);static langMapReverse=new Map(Hd.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),a=`${t.getUTCMonth()+1}`.padStart(2,"0"),r=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${a}-${r}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.secretId||!t.secretKey)throw new Error("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}async translate(t){let{text:n,from:a,to:r}=t,u=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceText:n,Target:e.langMap.get(r)||r}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:u,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||a,to:e.langMapReverse.get(o.Response.Target)||r}}async translateList(t){let{text:n,from:a,to:r}=t,u=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceTextList:n,Target:e.langMap.get(r)||r}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:u,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||a,to:e.langMapReverse.get(o.Response.Target)||r}}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:u,version:o}){let i=`${u}.tencentcloudapi.com`,s=new Date,c=`${new Date().valueOf()}`.slice(0,10),l=["POST","/","","content-type:application/json; charset=utf-8",`host:${i}`,"","content-type;host",await hn(r)].join(` `),m=e.getUTCDate(s),g=["TC3-HMAC-SHA256",c,`${m}/${u}/tc3_request`,await hn(l)].join(` -`),f=await zd(m,`TC3${n}`),d=await co(u,f),b=await co("tc3_request",d),T=await co(g,b),h=await ie({retry:1,url:`https://${u}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:i,"X-TC-Action":a,"X-TC-Timestamp":c,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${m}/${u}/tc3_request, SignedHeaders=content-type;host, Signature=${T}`},body:r});if(h instanceof Error)throw h;if(h.Response&&h.Response.Error&&h.Response.Error.Message)throw new Error(h.Response.Error.Message);return h}};p();var Hd=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],w6={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},Kr=class e extends be{static langMap=new Map(Hd);static langMapReverse=new Map(Hd.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,a){super(t,n,a)}async translate(t){let{text:n,from:a,to:r}=t,u=new URLSearchParams({source:a,target:r,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await ie({url:`https://wxapp.translator.qq.com/api/translate?${u}`,retry:1,method:"GET",headers:w6});return{text:o.targetText,from:e.langMapReverse.get(o.source)||a,to:e.langMapReverse.get(o.target)||r}}};p();var qd=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],ya=class e extends be{static langMap=new Map(qd);static langMapReverse=new Map(qd.map(([t,n])=>[n,t]));isSupportList=!1;apiUrl="https://translate.googleapis.com/translate_a/single";constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.apiUrl=Ot(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let u=e.langMap.get(a)||"auto",o=e.langMap.get(r)||r,i=await this.fetchWithoutToken(n,u,o);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async translateXml(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let u=e.langMap.get(a)||"auto",o=e.langMap.get(r)||r,i=await this.fetchXmlWithoutToken(n,u,o);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async fetchXmlWithoutToken(t,n,a){let u="https://translate.googleapis.com/translate_a/t?"+new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}).toString();return{data:await ie({retry:2,url:u})}}async fetchWithoutToken(t,n,a){let r=new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}),u=this.apiUrl+"?"+r.toString();return{data:await ie({retry:2,url:u})}}};p();p();p();function v6(e,t){return t?e+(t-e%t):e}function k6(e,t){return e.split(t).length-1}function As(e){let t=Date.now(),n=1;for(let a of e)n+=k6(a,"i");return v6(t,n)}function S6(e,t){return Math.floor(Math.random()*(t-e+1))+e}function Ds(){return S6(1e6,1e8)}p();p();p();var Ls="https://www2.deepl.com/jsonrpc",Ps="auto",Wd=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];p();function A6(e=Wd){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function Ms(e){return A6()[e.toLowerCase()]}var D6={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function L6(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function P6(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function M6(e,t,n,a,r,u,o){let i=Ds(),s=P6(a,n),c=[];t.forEach(g=>{c.push({text:g,requestAlternatives:3})}),s.id=i,s.params.texts=c,s.params.timestamp=As(t);let l=await ie({retry:2,method:"POST",url:e,body:L6(s),headers:D6}),m={from:l.result.lang,to:n,text:[]};return l.result.texts.forEach(g=>{m.text.push(g.text)}),m}async function $d(e,t,n,a=Ps,r,u,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:a,to:n}:M6(e,t,Ms(n),Ms(a)??"auto",r,u,o):{text:[],from:a,to:n}}var Kd=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Ja=class e extends be{static langMap=new Map(Kd);static langMapReverse=new Map(Kd.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=Ls;constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.API_URL=Ot(Ls,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:a,from:r}=t,u=await $d(this.API_URL,n,e.langMap.get(a)||a,e.langMap.get(r)||"auto");return{text:u.text,from:e.langMapReverse.get(u.from),to:e.langMapReverse.get(u.to)}}};p();var Gd=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Fs="https://transmart.qq.com/api/imt",xa=class e extends be{static langMap=new Map(Gd);static langMapReverse=new Map(Gd.map(([t,n])=>[n,t]));clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,a){super(t,n,a),this.clientKey=e.getClientKey()}static getClientKey(){return btoa("transmart_crx_"+navigator.userAgent).slice(0,100)}async translate(t){let{text:n,to:a}=t,r=await this.detectLanguage(n),u=e.langMap.get(r)||r,o=e.langMap.get(a)||a;if(r===a)return{text:n,from:r,to:a};let i=Qe(),s=t.url;i.INSTALL_FROM==="firefox_store"&&(s=Vd());let l=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:u,orig_url:s},target:{lang:o}}),m=await ie({url:Fs,body:l,method:"POST",retry:2});if(m.header.ret_code!=="succ")throw new Error(m.message||m.header.ret_code);return{text:m.auto_translation,from:r||"auto",to:a}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:a,to:r}=t,u=Qe(),o=t.url;if(u.INSTALL_FROM==="firefox_store"&&(o=Vd()),a.length===1){let f=await this.translate({from:n,text:a[0],to:r,url:o,options:t.options});return{text:[f.text],from:f.from,to:f.to}}let s=await this.detectLanguage(a.join(` -`));if(s===r)return{text:a,from:s,to:r};let c=e.langMap.get(s)||s,l=e.langMap.get(r)||r,m=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:a,lang:c,orig_url:o},target:{lang:l},type:"plain"}),g=await ie({url:Fs,body:m,method:"POST"});if(g.header.ret_code!=="succ")throw new Error(g.message||g.header.ret_code);return{text:g.auto_translation,from:s||"auto",to:r}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return e.detectLanguageRemotelyByTransmart(t)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},a=await ie({url:Fs,method:"POST",body:JSON.stringify(n)});if(a.header.ret_code!=="succ")throw new Error(a.message||a.header.ret_code);let r=a.language,u=e.langMapReverse.get(r);return u||r}};function Vd(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}p();p();function Yd(){return Math.random()>=0}var Qa=class extends be{isSupportList=!0;maxTextLength=1200;maxTextGroupLength=25;async translate(t){let{text:n}=t,a=n.match(/^\s*/)[0].length;return{text:n.slice(0,a)+"\u6A21\u62DF\uFF1A"+n.slice(a,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:a,to:r}=t;if(await Jd(),!Yd())throw new Error("\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:a,to:r,text:[""]}:{from:a,to:r,text:n.map(u=>{let o=u.match(/^\s*/)[0].length;return u.slice(0,o)+"\u6A21\u62DF\uFF1A"+u.slice(o,-6)})}}};p();var Zd=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],_s=new Map(Zd),Qd=new Map(Zd.map(([e,t])=>[t,e])),Bs=class e extends be{static langMap=_s;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,a){if(super(t,n,a),!t||!t.apikey)throw new Error("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:a,to:r}=t,u=await ie({retry:2,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:_s.get(a)||"auto",target_lang:_s.get(r)||r})});if(u.status){let o=u;return o.result&&r=="zh-TW",{text:o.result,from:Qd.get(o.source_lang),to:Qd.get(o.target_lang)}}else throw new Error(u.msg)}},mo=Bs;p();var Xd=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Gr=new Map(Xd),F6=new Map(Xd.map(([e,t])=>[t,e])),Rs=class extends be{static langMap=Gr;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl="https://deepl.immersivetranslate.com/v2/translate";immersiveTranslateDeeplTokenUrl="https://api.immersivetranslate.com";immersiveTranslateDeeplProApiUrl=Pn()||Mn()?"https://api2.immersivetranslate.com/deepl/translate":"https://test-api2.immersivetranslate.com/deepl/translate";provider="custom";splitor="";apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,a){if(super(t,n,a),t=t||{},this.splitor=t.qualityDelimiterBeta||"",t.provider==="pro")if(this.provider="pro",a.userToken){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=a.userToken,this.apiKeys=this.authKey.split(",").map(r=>r.trim())}else throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey.split(",").map(r=>r.trim()),!this.authKey)throw new Error("authKey are required");if(!this.authKey)throw new Error("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=Ot(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=Ot(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=Ot(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=Ot(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=Ot(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getDefaultRateLimit(){if(this.provider==="pro"){if(this.serviceConfig&&this.serviceConfig.immersiveTranslateProLimit){let t=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(t)&&(t=15),{limit:t,interval:1050}}return{limit:15,interval:1050}}else return{limit:3,interval:1050}}async translateList(t){let{from:n,to:a,text:r}=t,u={source_lang:Gr.get(n)||"",target_lang:Gr.get(a)||a},o=this.getRandomKey(),i=new URLSearchParams(u);this.splitor?i.append("text",r.join(this.splitor)):r.forEach(d=>{i.append("text",d)});let s=i.toString(),c={text:this.splitor?[r.join(this.splitor)]:r,source_lang:Gr.get(n)||"auto",target_lang:Gr.get(a)||a},l=this.freeApiUrl;o.endsWith(":im")?l=this.immersiveTranslateApiUrl:o.endsWith(":fx")||(l=this.proApiUrl);let m;this.provider==="pro"?m=await ie({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:o,"Content-Type":"application/json"}}):o.startsWith("immersive_")?m=await ie({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:o,"Content-Type":"application/json"}}):m=await ie({retry:2,url:l,method:"POST",body:s,headers:{Authorization:"DeepL-Auth-Key "+o,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}});let{translations:g}=m,f=[];if(this.splitor?f=g[0]?.text.split(this.splitor).map(d=>d):f=g.map(d=>d.text),a==="zh-TW"){let d=this.serviceConfig||{};d&&d.googleApiUrl&&(d.apiUrl=d.googleApiUrl);let T=await new ya(this.serviceConfig,this.generalConfig,this.translationOptions).translate({from:"zh-CN",to:"zh-TW",text:g.map(h=>h.text).join(` +`),f=await Ud(m,`TC3${n}`),d=await lo(u,f),b=await lo("tc3_request",d),T=await lo(g,b),h=await ie({retry:1,url:`https://${u}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:i,"X-TC-Action":a,"X-TC-Timestamp":c,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${m}/${u}/tc3_request, SignedHeaders=content-type;host, Signature=${T}`},body:r});if(h instanceof Error)throw h;if(h.Response&&h.Response.Error&&h.Response.Error.Message)throw new Error(h.Response.Error.Message);return h}};p();var qd=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],w6={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},Kr=class e extends be{static langMap=new Map(qd);static langMapReverse=new Map(qd.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,a){super(t,n,a)}async translate(t){let{text:n,from:a,to:r}=t,u=new URLSearchParams({source:a,target:r,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await ie({url:`https://wxapp.translator.qq.com/api/translate?${u}`,retry:1,method:"GET",headers:w6});return{text:o.targetText,from:e.langMapReverse.get(o.source)||a,to:e.langMapReverse.get(o.target)||r}}};p();var Wd=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],xa=class e extends be{static langMap=new Map(Wd);static langMapReverse=new Map(Wd.map(([t,n])=>[n,t]));isSupportList=!1;apiUrl="https://translate.googleapis.com/translate_a/single";constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.apiUrl=Nt(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let u=e.langMap.get(a)||"auto",o=e.langMap.get(r)||r,i=await this.fetchWithoutToken(n,u,o);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async translateXml(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let u=e.langMap.get(a)||"auto",o=e.langMap.get(r)||r,i=await this.fetchXmlWithoutToken(n,u,o);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async fetchXmlWithoutToken(t,n,a){let u="https://translate.googleapis.com/translate_a/t?"+new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}).toString();return{data:await ie({retry:2,url:u})}}async fetchWithoutToken(t,n,a){let r=new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}),u=this.apiUrl+"?"+r.toString();return{data:await ie({retry:2,url:u})}}};p();p();p();function v6(e,t){return t?e+(t-e%t):e}function k6(e,t){return e.split(t).length-1}function As(e){let t=Date.now(),n=1;for(let a of e)n+=k6(a,"i");return v6(t,n)}function S6(e,t){return Math.floor(Math.random()*(t-e+1))+e}function Ds(){return S6(1e6,1e8)}p();p();p();var Ls="https://www2.deepl.com/jsonrpc",Ps="auto",$d=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];p();function A6(e=$d){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function Ms(e){return A6()[e.toLowerCase()]}var D6={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function L6(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function P6(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function M6(e,t,n,a,r,u,o){let i=Ds(),s=P6(a,n),c=[];t.forEach(g=>{c.push({text:g,requestAlternatives:3})}),s.id=i,s.params.texts=c,s.params.timestamp=As(t);let l=await ie({retry:2,method:"POST",url:e,body:L6(s),headers:D6}),m={from:l.result.lang,to:n,text:[]};return l.result.texts.forEach(g=>{m.text.push(g.text)}),m}async function Kd(e,t,n,a=Ps,r,u,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:a,to:n}:M6(e,t,Ms(n),Ms(a)??"auto",r,u,o):{text:[],from:a,to:n}}var Gd=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Ja=class e extends be{static langMap=new Map(Gd);static langMapReverse=new Map(Gd.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=Ls;constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.API_URL=Nt(Ls,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:a,from:r}=t,u=await Kd(this.API_URL,n,e.langMap.get(a)||a,e.langMap.get(r)||"auto");return{text:u.text,from:e.langMapReverse.get(u.from),to:e.langMapReverse.get(u.to)}}};p();var Vd=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Fs="https://transmart.qq.com/api/imt",Ea=class e extends be{static langMap=new Map(Vd);static langMapReverse=new Map(Vd.map(([t,n])=>[n,t]));clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,a){super(t,n,a),this.clientKey=e.getClientKey()}static getClientKey(){return btoa("transmart_crx_"+navigator.userAgent).slice(0,100)}async translate(t){let{text:n,to:a}=t,r=await this.detectLanguage(n),u=e.langMap.get(r)||r,o=e.langMap.get(a)||a;if(r===a)return{text:n,from:r,to:a};let i=Qe(),s=t.url;i.INSTALL_FROM==="firefox_store"&&(s=Yd());let l=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:u,orig_url:s},target:{lang:o}}),m=await ie({url:Fs,body:l,method:"POST",retry:2});if(m.header.ret_code!=="succ")throw new Error(m.message||m.header.ret_code);return{text:m.auto_translation,from:r||"auto",to:a}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:a,to:r}=t,u=Qe(),o=t.url;if(u.INSTALL_FROM==="firefox_store"&&(o=Yd()),a.length===1){let f=await this.translate({from:n,text:a[0],to:r,url:o,options:t.options});return{text:[f.text],from:f.from,to:f.to}}let s=await this.detectLanguage(a.join(` +`));if(s===r)return{text:a,from:s,to:r};let c=e.langMap.get(s)||s,l=e.langMap.get(r)||r,m=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:a,lang:c,orig_url:o},target:{lang:l},type:"plain"}),g=await ie({url:Fs,body:m,method:"POST"});if(g.header.ret_code!=="succ")throw new Error(g.message||g.header.ret_code);return{text:g.auto_translation,from:s||"auto",to:r}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return e.detectLanguageRemotelyByTransmart(t)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},a=await ie({url:Fs,method:"POST",body:JSON.stringify(n)});if(a.header.ret_code!=="succ")throw new Error(a.message||a.header.ret_code);let r=a.language,u=e.langMapReverse.get(r);return u||r}};function Yd(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}p();p();function Jd(){return Math.random()>=0}var Qa=class extends be{isSupportList=!0;maxTextLength=1200;maxTextGroupLength=25;async translate(t){let{text:n}=t,a=n.match(/^\s*/)[0].length;return{text:n.slice(0,a)+"\u6A21\u62DF\uFF1A"+n.slice(a,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:a,to:r}=t;if(await Qd(),!Jd())throw new Error("\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:a,to:r,text:[""]}:{from:a,to:r,text:n.map(u=>{let o=u.match(/^\s*/)[0].length;return u.slice(0,o)+"\u6A21\u62DF\uFF1A"+u.slice(o,-6)})}}};p();var Xd=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],_s=new Map(Xd),Zd=new Map(Xd.map(([e,t])=>[t,e])),Bs=class e extends be{static langMap=_s;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,a){if(super(t,n,a),!t||!t.apikey)throw new Error("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:a,to:r}=t,u=await ie({retry:2,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:_s.get(a)||"auto",target_lang:_s.get(r)||r})});if(u.status){let o=u;return o.result&&r=="zh-TW",{text:o.result,from:Zd.get(o.source_lang),to:Zd.get(o.target_lang)}}else throw new Error(u.msg)}},co=Bs;p();var em=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Gr=new Map(em),F6=new Map(em.map(([e,t])=>[t,e])),Rs=class extends be{static langMap=Gr;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl="https://deepl.immersivetranslate.com/v2/translate";immersiveTranslateDeeplTokenUrl="https://api.immersivetranslate.com";immersiveTranslateDeeplProApiUrl=Pn()||Mn()?"https://api2.immersivetranslate.com/deepl/translate":"https://test-api2.immersivetranslate.com/deepl/translate";provider="custom";splitor="";apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,a){if(super(t,n,a),t=t||{},this.splitor=t.qualityDelimiterBeta||"",t.provider==="pro")if(this.provider="pro",a.userToken){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=a.userToken,this.apiKeys=this.authKey.split(",").map(r=>r.trim())}else throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey.split(",").map(r=>r.trim()),!this.authKey)throw new Error("authKey are required");if(!this.authKey)throw new Error("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=Nt(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=Nt(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=Nt(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=Nt(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=Nt(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getDefaultRateLimit(){if(this.provider==="pro"){if(this.serviceConfig&&this.serviceConfig.immersiveTranslateProLimit){let t=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(t)&&(t=15),{limit:t,interval:1050}}return{limit:15,interval:1050}}else return{limit:3,interval:1050}}async translateList(t){let{from:n,to:a,text:r}=t,u={source_lang:Gr.get(n)||"",target_lang:Gr.get(a)||a},o=this.getRandomKey(),i=new URLSearchParams(u);this.splitor?i.append("text",r.join(this.splitor)):r.forEach(d=>{i.append("text",d)});let s=i.toString(),c={text:this.splitor?[r.join(this.splitor)]:r,source_lang:Gr.get(n)||"auto",target_lang:Gr.get(a)||a},l=this.freeApiUrl;o.endsWith(":im")?l=this.immersiveTranslateApiUrl:o.endsWith(":fx")||(l=this.proApiUrl);let m;this.provider==="pro"?m=await ie({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:o,"Content-Type":"application/json"}}):o.startsWith("immersive_")?m=await ie({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:o,"Content-Type":"application/json"}}):m=await ie({retry:2,url:l,method:"POST",body:s,headers:{Authorization:"DeepL-Auth-Key "+o,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}});let{translations:g}=m,f=[];if(this.splitor?f=g[0]?.text.split(this.splitor).map(d=>d):f=g.map(d=>d.text),a==="zh-TW"){let d=this.serviceConfig||{};d&&d.googleApiUrl&&(d.apiUrl=d.googleApiUrl);let T=await new xa(this.serviceConfig,this.generalConfig,this.translationOptions).translate({from:"zh-CN",to:"zh-TW",text:g.map(h=>h.text).join(` `),url:"",options:{}});T&&T.text&&(f=T.text.split(` -`))}return{text:f,from:g[0]&&F6.get(g[0].detected_source_language)||n,to:a}}},em=Rs;p();var _6=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],Is=new Map(_6),Os=class extends be{static langMap=Is;APIKEY="";isSupportList=!1;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:a,to:r}=t,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:2,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:n,from:Is.get(a)||a,to:Is.get(r)||r,apikey:this.APIKEY})},i=await ie(o);if(i.tgt_text){let s=i.tgt_text;return s.endsWith(` -`)&&(s=s.slice(0,-1)),{text:s,from:a,to:r}}else throw new Error(JSON.stringify(i))}},tm=Os;p();var B6=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],Ns=new Map(B6),js=class extends be{static langMap=Ns;APIKEY="";region="eastasia";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region)}async translateList(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:[]};let u={"api-version":"3.0",to:Ns.get(r)||r};a!=="auto"&&(u.from=Ns.get(a)||a);let o=new URLSearchParams(u),i=JSON.stringify(n.map(l=>({text:l}))),s={url:"https://api.cognitive.microsofttranslator.com/translate?"+o.toString(),retry:2,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:i},c=await ie(s);if(c.length===0)throw new Error("server response invalid");return{from:a,to:r,text:c.map(l=>l.translations.map(g=>g.text).join(" "))}}},nm=js;p();var R6=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],Vr=new Map(R6),zs=class extends be{isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:3,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t,u;if(n.length===0)return{from:a,to:r,text:[]};let o=` +`))}return{text:f,from:g[0]&&F6.get(g[0].detected_source_language)||n,to:a}}},tm=Rs;p();var _6=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],Is=new Map(_6),Os=class extends be{static langMap=Is;APIKEY="";isSupportList=!1;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:a,to:r}=t,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:2,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:n,from:Is.get(a)||a,to:Is.get(r)||r,apikey:this.APIKEY})},i=await ie(o);if(i.tgt_text){let s=i.tgt_text;return s.endsWith(` +`)&&(s=s.slice(0,-1)),{text:s,from:a,to:r}}else throw new Error(JSON.stringify(i))}},nm=Os;p();var B6=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],Ns=new Map(B6),js=class extends be{static langMap=Ns;APIKEY="";region="eastasia";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region)}async translateList(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:[]};let u={"api-version":"3.0",to:Ns.get(r)||r};a!=="auto"&&(u.from=Ns.get(a)||a);let o=new URLSearchParams(u),i=JSON.stringify(n.map(l=>({text:l}))),s={url:"https://api.cognitive.microsofttranslator.com/translate?"+o.toString(),retry:2,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:i},c=await ie(s);if(c.length===0)throw new Error("server response invalid");return{from:a,to:r,text:c.map(l=>l.translations.map(g=>g.text).join(" "))}}},am=js;p();var R6=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],Vr=new Map(R6),zs=class extends be{isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:3,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t,u;if(n.length===0)return{from:a,to:r,text:[]};let o=`
-`,i=n.join(o),s={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:2,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:""};a==="auto"||!Vr.get(a)?(u=(await ie({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:i})).langCode,s.body=JSON.stringify({text:i,source:u||Vr.get(a)||a,target:Vr.get(r)||r})):s.body=JSON.stringify({text:i,source:Vr.get(a),target:Vr.get(r)||r});let c=await ie(s);if(c.translatedText==="")throw new Error("server response invalid");let l=c.translatedText.split("
").map(m=>m.trim());return{from:a,to:r,text:l}}},am=zs;p();var I6=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],Yr=new Map(I6),Us=class extends be{static langMap=Yr;provider="custom";APIKEY="";apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;systemPrompt="You are a professional translation engine, please translate the text into a colloquial, professional, elegant and fluent content, without the style of machine translation. You must only translate the text content, never interpret it.";prompt=`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +`,i=n.join(o),s={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:2,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:""};a==="auto"||!Vr.get(a)?(u=(await ie({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:i})).langCode,s.body=JSON.stringify({text:i,source:u||Vr.get(a)||a,target:Vr.get(r)||r})):s.body=JSON.stringify({text:i,source:Vr.get(a),target:Vr.get(r)||r});let c=await ie(s);if(c.translatedText==="")throw new Error("server response invalid");let l=c.translatedText.split("
").map(m=>m.trim());return{from:a,to:r,text:l}}},rm=zs;p();var I6=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],mo=new Map(I6),Us=class extends be{static langMap=mo;provider="custom";APIKEY="";apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;systemPrompt="You are a professional translation engine, please translate the text into a colloquial, professional, elegant and fluent content, without the style of machine translation. You must only translate the text content, never interpret it.";prompt=`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`;model="gpt-3.5-turbo-0613";apiUrl="https://api.openai.com/v1/chat/completions";immersiveApiUrl="https://openai-api.immersivetranslate.com/v1/chat/completions";immersiveProApiUrl=Pn()||Mn()?"https://api2.immersivetranslate.com/openai/v1/chat/completions":"https://test-api2.immersivetranslate.com/openai/v1/chat/completions";splitor="
";constructor(t,n,a){if(super(t,n,a),t||(t={}),t.provider&&(this.provider=t.provider),t.APIKEY&&(this.APIKEY=t.APIKEY?.trim(),this.apiKeys=this.APIKEY.split(",").map(r=>r.trim())),this.provider==="pro"){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");if(this.APIKEY=a.userToken||"",this.apiKeys=this.APIKEY.split(",").map(r=>r.trim()),!this.APIKEY)throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002")}t.prompt&&(this.prompt=t.prompt),t.model&&(this.model=t.model),t&&t.apiUrl&&(this.apiUrl=Ot(this.apiUrl,t.apiUrl)),t&&t.immersiveApiUrl&&(this.immersiveApiUrl=Ot(this.immersiveApiUrl,t.immersiveApiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=Ot(this.immersiveProApiUrl,t.immersiveProApiUrl)),t&&t.systemPrompt&&(this.systemPrompt=t.systemPrompt)}getDefaultRateLimit(){return{limit:10,interval:1300}}translate(t){return this.model.includes("003")?(this.maxTextGroupLength=1,this.translate3(t)):this.translate3_5(t)}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate3_5(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let u=Yr.get(a)||a,o=Yr.get(r)||r,i=this.prompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u),s=[];if(this.systemPrompt){let g=this.systemPrompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u);s.push({role:"system",content:g})}this.prompt&&s.push({role:"user",content:i}),this.prompt.indexOf("{{text}}")===-1&&s.push({role:"user",content:n});let c={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:this.model,temperature:0,messages:s})},l=this.getRandomKey();this.provider==="pro"?(c.url=this.immersiveProApiUrl,c.headers.token=l):l&&(c.headers.Authorization="Bearer "+l,c.headers["api-key"]=l,l.startsWith("immersiveopenai_")&&(c.url=this.immersiveProApiUrl,c.headers.token=l,l.endsWith("x")||(c.headers["Immersive-Corpus-Campagin"]="yes"),delete c.headers.Authorization,delete c.headers["api-key"]));let m=await ie(c);if(m&&m.choices&&m.choices.length>0&&m.choices[0].message&&m.choices[0].message.content){let g=m.choices[0].message.content.trim();return(g.includes("\u62B1\u6B49")&&g.includes("\u7FFB\u8BD1")||g.includes("\u8BF7\u5C06\u6587\u672C\u7FFB\u8BD1\u6210")||g.includes("\u4E0D\u8981\u89E3\u91CA\u4EFB\u4F55"))&&(g=n),!n.includes(".")&&(g.endsWith("\u3002")||g.endsWith("."))&&(g=g.slice(0,-1)),{from:a,to:r,text:g}}else throw new Error("server response invalid: "+JSON.stringify(m))}async translate3(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let u=this.prompt.replace(/{{to}}/g,Yr.get(r)||r).replace(/{{text}}/g,n).replace(/{{from}}/g,Yr.get(a)||a),o={url:"https://api.openai.com/v1/completions",method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.APIKEY},body:JSON.stringify({model:this.model,prompt:u,temperature:0})},i=await ie(o);if(i&&i.choices&&i.choices.length>0&&i.choices[0].text){let s=i.choices[0].text.trim();return{from:a,to:r,text:s}}else throw new Error("server response invalid: "+JSON.stringify(i))}},rm=Us;p();var O6=[["auto","auto"],["zh-CN","zh-Hans"],["zh-TW","zh-Hant"],["en","en"],["yue","\u7CA4\u8BED"],["wyw","\u53E4\u6587"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["de","de"],["es","es"],["it","it"],["ru","ru"],["pt","pt"],["nl","nl"],["pl","pl"],["ar","ar"],["af","af"],["am","am"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["el","el"],["eo","eo"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ku","ku"],["ky","ky"],["la","lo"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["no","no"],["ny","ny"],["pa","pa"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["sr-Cyrl","sr"],["sr-Latn","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],go=new Map(O6),Hs="chatgptWebAccessToken";async function um(){let e=await Or(Hs);if(e)return e;let t=await ie({url:"https://chat.openai.com/api/auth/session",method:"get",responseType:"json"});if(!t.accessToken)throw new Error("UNAUTHORIZED");return await Nr(Hs,t.accessToken,10*60*1e3),t.accessToken}var qs=class e{static instance;constructor(){return e.instance||(e.instance=this),this}#e=Promise.resolve();enqueue(t){return this.#e=this.#e.then(()=>t()),this.#e}},Ws=new qs;Object.freeze(Ws);var Jr=class extends be{accessToken="";customChatGptWebApiUrl="https://chat.openai.com";customChatGptWebApiPath="/backend-api/conversation";maxTextGroupLength=1;maxTextLength=1200;isStream=!1;isSupportList=!1;prompt=`You are a translation engine, you can only translate text and cannot interpret it, and do not explain.Translate the text below to {{to}}: +{{text}}`;model="gpt-3.5-turbo-0613";apiUrl="https://api.openai.com/v1/chat/completions";immersiveApiUrl="https://openai-api.immersivetranslate.com/v1/chat/completions";immersiveProApiUrl=Pn()||Mn()?"https://api2.immersivetranslate.com/openai/v1/chat/completions":"https://test-api2.immersivetranslate.com/openai/v1/chat/completions";splitor="
";constructor(t,n,a){if(super(t,n,a),t||(t={}),t.provider&&(this.provider=t.provider),t.APIKEY&&(this.APIKEY=t.APIKEY?.trim(),this.apiKeys=this.APIKEY.split(",").map(r=>r.trim())),this.provider==="pro"){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");if(this.APIKEY=a.userToken||"",this.apiKeys=this.APIKEY.split(",").map(r=>r.trim()),!this.APIKEY)throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002")}t.prompt&&(this.prompt=t.prompt),t.model&&(this.model=t.model),t&&t.apiUrl&&(this.apiUrl=Nt(this.apiUrl,t.apiUrl)),t&&t.immersiveApiUrl&&(this.immersiveApiUrl=Nt(this.immersiveApiUrl,t.immersiveApiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=Nt(this.immersiveProApiUrl,t.immersiveProApiUrl)),t&&t.systemPrompt&&(this.systemPrompt=t.systemPrompt)}getDefaultRateLimit(){return{limit:10,interval:1300}}translate(t){return this.model.includes("003")||this.model.includes("gpt-3.5-turbo-instruct")?(this.maxTextGroupLength=1,this.translate3(t)):this.translate3_5(t)}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate3_5(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let u=mo.get(a)||a,o=mo.get(r)||r,i=this.prompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u),s=[];if(this.systemPrompt){let g=this.systemPrompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u);s.push({role:"system",content:g})}this.prompt&&s.push({role:"user",content:i}),this.prompt.indexOf("{{text}}")===-1&&s.push({role:"user",content:n});let c={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:this.model,temperature:0,messages:s})},l=this.getRandomKey();this.provider==="pro"?(c.url=this.immersiveProApiUrl,c.headers.token=l):l&&(c.headers.Authorization="Bearer "+l,c.headers["api-key"]=l,l.startsWith("immersiveopenai_")&&(c.url=this.immersiveProApiUrl,c.headers.token=l,l.endsWith("x")||(c.headers["Immersive-Corpus-Campagin"]="yes"),delete c.headers.Authorization,delete c.headers["api-key"]));let m=await ie(c);if(m&&m.choices&&m.choices.length>0&&m.choices[0].message&&m.choices[0].message.content){let g=m.choices[0].message.content.trim();return(g.includes("\u62B1\u6B49")&&g.includes("\u7FFB\u8BD1")||g.includes("\u8BF7\u5C06\u6587\u672C\u7FFB\u8BD1\u6210")||g.includes("\u4E0D\u8981\u89E3\u91CA\u4EFB\u4F55"))&&(g=n),!n.includes(".")&&(g.endsWith("\u3002")||g.endsWith("."))&&(g=g.slice(0,-1)),{from:a,to:r,text:g}}else throw new Error("server response invalid: "+JSON.stringify(m))}async translate3(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let u=`Translate to ${mo.get(r)||r}: -{{text}}`;constructor(t,n,a){super(t,n,a)}throttleDebounce(t,n,a){let r=0,u;return(...o)=>{let i=Date.now(),s=this,c=()=>{r=i,t.apply(s,o)};i-r>=n?(clearTimeout(u),c()):(clearTimeout(u),u=setTimeout(()=>{c()},a))}}async deleteConversation(t){if(t){let n=await ie({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}/${t}`,method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({is_visible:!1})});return U.debug("delete conversation res:",n),n}}async translate(t){return await Ws.enqueue(async()=>{let{text:n,from:a,to:r}=t;if(n.length===0)return Promise.resolve({from:a,to:r,text:""});let u=go.get(a)||a,o=go.get(r)||r;if(this.accessToken=await um(),!this.accessToken||this.accessToken==="")throw new Error("token error");let i="text-davinci-002-render-sha-mobile";if(!i)throw new Error("No available model");let s=this.prompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u);try{let c=await ie({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"stream",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:Wt(),role:"user",content:{content_type:"text",parts:[s]}}],model:i,parent_message_id:Wt()})});return U.debug("get chatgpt res:",c),await this.deleteConversation(c?.conversation_id),Promise.resolve({from:a,to:r,text:c?.message?.content?.parts?.[0]})}catch(c){throw U.debug("post chatgpt error:",c),await jr(Hs),c}})}async translateStream(t,n){let{text:a,from:r,to:u}=t;if(a.length===0){n(null,{from:r,to:u,text:""});return}let o=this.throttleDebounce(function(i){let{from:s,to:c,text:l}=i;n(null,{from:s,to:c,text:l})},300,200);await Ws.enqueue(async()=>{let i="chatgpt"+Wt(),s=se.runtime.connect({name:i}),c,l;s.onMessage.addListener(b=>{if(!(!b||b==="")){if(b==="[DONE]"){s.disconnect(),this.deleteConversation(c);return}try{l=JSON.parse(b)}catch(T){U.debug("chatgpt json error",T,b);return}c=l?.conversation_id,l?.message?.author?.role==="assistant"&&o({from:r,to:u,text:l?.message?.content?.parts?.[0]})}});let m=go.get(r)||r,g=go.get(u)||u;if(this.accessToken=await um(),!this.accessToken||this.accessToken==="")throw new Error("token error");let f="text-davinci-002-render-sha";if(!f)throw new Error("No available model");let d=this.prompt.replace(/{{to}}/g,g).replace(/{{text}}/g,a).replace(/{{from}}/g,m);ie({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"realStream",extra:{portName:i},headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:Wt(),role:"user",content:{content_type:"text",parts:[d]}}],model:f,parent_message_id:Wt()})}).catch(b=>{U.debug("chatgpt error",b),s.disconnect(),this.deleteConversation(c),n(b,{from:r,to:u,text:""})})})}};p();var sm=Uf(om()),im=[["af","af"],["am","am"],["ar","ar"],["auto","auto"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fil","fil"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["mww","mww"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["otq","otq"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["tn","tn"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tlh","tlh"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["yua","yua"],["yue","yue"],["bo","bo"],["sa","sa"],["zh-CN","zh"],["zh-TW","zh-tw"],["zu","zu"]],Zr=class e extends be{static langMap=new Map(im);static langMapReverse=new Map(im.map(([t,n])=>[n,t]));static SHA1=new sm.default.SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,a){if(super(t,n,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new Error("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:a,to:r}=t,u={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:n,TargetLanguage:e.langMap.get(r)||r},o=this.scene=="general"?"TranslateGeneral":"Translate",i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:u,service:"mt",version:"2018-10-12"});return{text:i.Data.Translated,from:i.Data.DetectedLanguage&&e.langMapReverse.get(i.Data.DetectedLanguage)||a||"auto",to:e.langMapReverse.get(r)||r}}async translateList(t){let{text:n,from:a,to:r}=t,u=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:JSON.stringify(n.reduce((c,l,m)=>(c[m]=l,c),{})),TargetLanguage:e.langMap.get(r)||r,ApiType:u},i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),s=i.TranslatedList.length&&i.TranslatedList[0].detectedLanguage;return{text:i.TranslatedList.sort((c,l)=>parseInt(c.index)-parseInt(l.index)).map(c=>c.translated),from:s&&e.langMapReverse.get(s)||a||"auto",to:e.langMapReverse.get(r)||r}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:u,version:o}){let i=new Date().toISOString(),s=Math.random().toString(36).slice(2),c={Action:a,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:s,Timestamp:i,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},m=(b=>{let h=Object.keys(b).sort().map(C=>`${this.encode(C)}=${this.encode(b[C])}`).join("&");return`POST&%2F&${this.encode(h)}`})(Object.assign({},c,r)),g=e.SHA1.b64_hmac(`${n}&`,m),f=new URLSearchParams(Object.assign({},c,{Signature:g})).toString(),d=await ie({retry:1,url:`https://${u}.aliyuncs.com?${f}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(r).toString()});if(d instanceof Error)throw d;if(d.Code!=="200")throw new Error(d.Message);return d}};p();p();var N6=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],Xe={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},$s=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},Ks=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let a=$s(t);if(a)return Array.isArray(n)?`${a}=${n.map($s).sort().join(`&${a}=`)}`:`${a}=${$s(n)}`}).filter(t=>t).join("&"),Za=class{request;serviceName;bodySha256;constructor(t,n,a){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,a=a||{},this.bodySha256=a.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(a=>{let r=t[a];return typeof r<"u"&&r!==null}).sort().map(a=>{n[a]=t[a]}),n}async addAuthorization(t,n){let a=this.getDateTime(n);await this.addHeaders(t,a),this.request.headers.Authorization=await this.authorization(t,a)}async authorization(t,n){let a=[],r=this.credentialString(n);return a.push(`${Xe.algorithm} Credential=${t.accessKeyId}/${r}`),a.push(`SignedHeaders=${this.signedHeaders()}`),a.push(`Signature=${await this.signature(t,n)}`),a.join(", ")}async getSignUrl(t,n){let a=this.getDateTime(n),r={...this.request.params},u=this.request.params,o=this.request.headers;t.sessionToken&&(r[Xe.tokenHeader]=t.sessionToken),r[Xe.dateHeader]=a,r[Xe.notSignBody]="",r[Xe.credential]=`${t.accessKeyId}/${this.credentialString(a)}`,r[Xe.algorithmKey]=Xe.algorithm,r[Xe.signHeadersKey]="",r[Xe.signQueriesKey]=void 0,r[Xe.signatureKey]=void 0,r=this.sortParams(r),this.request.params=r,this.request.headers={};let i=await this.signature(t,a);return this.request.params=u,this.request.headers=o,r[Xe.signQueriesKey]=Object.keys(r).sort().join(";"),r[Xe.signatureKey]=i,Ks(r)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[Xe.dateHeader]=n,t.sessionToken&&(this.request.headers[Xe.tokenHeader]=t.sessionToken),this.request.body){let a=this.request.body;this.request.headers[Xe.contentSha256Header]=await hn(a)}}async signature(t,n){let a=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return lo(await na(await this.stringToSign(n),a))}async stringToSign(t){let n=[];n.push(Xe.algorithm),n.push(t),n.push(this.credentialString(t));let a=await this.canonicalString();return n.push(await this.hexEncodedHash(a)),n.join(` +${n} =>`,o=this.getRandomKey(),i={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.APIKEY}},s={model:this.model,prompt:u,temperature:0};this.provider==="pro"?(i.url=this.immersiveProApiUrl,i.headers.token=o):o&&(i.headers.Authorization="Bearer "+o,i.headers["api-key"]=o,o.startsWith("immersiveopenai_")&&(i.url=this.immersiveProApiUrl,i.headers.token=o,o.endsWith("x")||(i.headers["Immersive-Corpus-Campagin"]="yes"),delete i.headers.Authorization,delete i.headers["api-key"])),i.url=i.url.replace("/chat/","/");let c=2048,l=u.length*2.2;l0&&m.choices[0].text){let g=m.choices[0].text.trim();return{from:a,to:r,text:g}}else throw new Error("server response invalid: "+JSON.stringify(m))}},um=Us;p();var O6=[["auto","auto"],["zh-CN","zh-Hans"],["zh-TW","zh-Hant"],["en","en"],["yue","\u7CA4\u8BED"],["wyw","\u53E4\u6587"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["de","de"],["es","es"],["it","it"],["ru","ru"],["pt","pt"],["nl","nl"],["pl","pl"],["ar","ar"],["af","af"],["am","am"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["el","el"],["eo","eo"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ku","ku"],["ky","ky"],["la","lo"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["no","no"],["ny","ny"],["pa","pa"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["sr-Cyrl","sr"],["sr-Latn","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],go=new Map(O6),Hs="chatgptWebAccessToken";async function om(){let e=await Or(Hs);if(e)return e;let t=await ie({url:"https://chat.openai.com/api/auth/session",method:"get",responseType:"json"});if(!t.accessToken)throw new Error("UNAUTHORIZED");return await Nr(Hs,t.accessToken,10*60*1e3),t.accessToken}var qs=class e{static instance;constructor(){return e.instance||(e.instance=this),this}#e=Promise.resolve();enqueue(t){return this.#e=this.#e.then(()=>t()),this.#e}},Ws=new qs;Object.freeze(Ws);var Yr=class extends be{accessToken="";customChatGptWebApiUrl="https://chat.openai.com";customChatGptWebApiPath="/backend-api/conversation";maxTextGroupLength=1;maxTextLength=1200;isStream=!1;isSupportList=!1;prompt=`You are a translation engine, you can only translate text and cannot interpret it, and do not explain.Translate the text below to {{to}}: + +{{text}}`;constructor(t,n,a){super(t,n,a)}throttleDebounce(t,n,a){let r=0,u;return(...o)=>{let i=Date.now(),s=this,c=()=>{r=i,t.apply(s,o)};i-r>=n?(clearTimeout(u),c()):(clearTimeout(u),u=setTimeout(()=>{c()},a))}}async deleteConversation(t){if(t){let n=await ie({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}/${t}`,method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({is_visible:!1})});return U.debug("delete conversation res:",n),n}}async translate(t){return await Ws.enqueue(async()=>{let{text:n,from:a,to:r}=t;if(n.length===0)return Promise.resolve({from:a,to:r,text:""});let u=go.get(a)||a,o=go.get(r)||r;if(this.accessToken=await om(),!this.accessToken||this.accessToken==="")throw new Error("token error");let i="text-davinci-002-render-sha-mobile";if(!i)throw new Error("No available model");let s=this.prompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u);try{let c=await ie({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"stream",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:$t(),role:"user",content:{content_type:"text",parts:[s]}}],model:i,parent_message_id:$t()})});return U.debug("get chatgpt res:",c),await this.deleteConversation(c?.conversation_id),Promise.resolve({from:a,to:r,text:c?.message?.content?.parts?.[0]})}catch(c){throw U.debug("post chatgpt error:",c),await jr(Hs),c}})}async translateStream(t,n){let{text:a,from:r,to:u}=t;if(a.length===0){n(null,{from:r,to:u,text:""});return}let o=this.throttleDebounce(function(i){let{from:s,to:c,text:l}=i;n(null,{from:s,to:c,text:l})},300,200);await Ws.enqueue(async()=>{let i="chatgpt"+$t(),s=se.runtime.connect({name:i}),c,l;s.onMessage.addListener(b=>{if(!(!b||b==="")){if(b==="[DONE]"){s.disconnect(),this.deleteConversation(c);return}try{l=JSON.parse(b)}catch(T){U.debug("chatgpt json error",T,b);return}c=l?.conversation_id,l?.message?.author?.role==="assistant"&&o({from:r,to:u,text:l?.message?.content?.parts?.[0]})}});let m=go.get(r)||r,g=go.get(u)||u;if(this.accessToken=await om(),!this.accessToken||this.accessToken==="")throw new Error("token error");let f="text-davinci-002-render-sha";if(!f)throw new Error("No available model");let d=this.prompt.replace(/{{to}}/g,g).replace(/{{text}}/g,a).replace(/{{from}}/g,m);ie({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"realStream",extra:{portName:i},headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:$t(),role:"user",content:{content_type:"text",parts:[d]}}],model:f,parent_message_id:$t()})}).catch(b=>{U.debug("chatgpt error",b),s.disconnect(),this.deleteConversation(c),n(b,{from:r,to:u,text:""})})})}};p();var lm=Hf(im()),sm=[["af","af"],["am","am"],["ar","ar"],["auto","auto"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fil","fil"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["mww","mww"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["otq","otq"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["tn","tn"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tlh","tlh"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["yua","yua"],["yue","yue"],["bo","bo"],["sa","sa"],["zh-CN","zh"],["zh-TW","zh-tw"],["zu","zu"]],Qr=class e extends be{static langMap=new Map(sm);static langMapReverse=new Map(sm.map(([t,n])=>[n,t]));static SHA1=new lm.default.SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,a){if(super(t,n,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new Error("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:a,to:r}=t,u={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:n,TargetLanguage:e.langMap.get(r)||r},o=this.scene=="general"?"TranslateGeneral":"Translate",i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:u,service:"mt",version:"2018-10-12"});return{text:i.Data.Translated,from:i.Data.DetectedLanguage&&e.langMapReverse.get(i.Data.DetectedLanguage)||a||"auto",to:e.langMapReverse.get(r)||r}}async translateList(t){let{text:n,from:a,to:r}=t,u=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:JSON.stringify(n.reduce((c,l,m)=>(c[m]=l,c),{})),TargetLanguage:e.langMap.get(r)||r,ApiType:u},i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),s=i.TranslatedList.length&&i.TranslatedList[0].detectedLanguage;return{text:i.TranslatedList.sort((c,l)=>parseInt(c.index)-parseInt(l.index)).map(c=>c.translated),from:s&&e.langMapReverse.get(s)||a||"auto",to:e.langMapReverse.get(r)||r}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:u,version:o}){let i=new Date().toISOString(),s=Math.random().toString(36).slice(2),c={Action:a,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:s,Timestamp:i,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},m=(b=>{let h=Object.keys(b).sort().map(C=>`${this.encode(C)}=${this.encode(b[C])}`).join("&");return`POST&%2F&${this.encode(h)}`})(Object.assign({},c,r)),g=e.SHA1.b64_hmac(`${n}&`,m),f=new URLSearchParams(Object.assign({},c,{Signature:g})).toString(),d=await ie({retry:1,url:`https://${u}.aliyuncs.com?${f}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(r).toString()});if(d instanceof Error)throw d;if(d.Code!=="200")throw new Error(d.Message);return d}};p();p();var N6=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],Xe={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},$s=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},Ks=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let a=$s(t);if(a)return Array.isArray(n)?`${a}=${n.map($s).sort().join(`&${a}=`)}`:`${a}=${$s(n)}`}).filter(t=>t).join("&"),Za=class{request;serviceName;bodySha256;constructor(t,n,a){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,a=a||{},this.bodySha256=a.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(a=>{let r=t[a];return typeof r<"u"&&r!==null}).sort().map(a=>{n[a]=t[a]}),n}async addAuthorization(t,n){let a=this.getDateTime(n);await this.addHeaders(t,a),this.request.headers.Authorization=await this.authorization(t,a)}async authorization(t,n){let a=[],r=this.credentialString(n);return a.push(`${Xe.algorithm} Credential=${t.accessKeyId}/${r}`),a.push(`SignedHeaders=${this.signedHeaders()}`),a.push(`Signature=${await this.signature(t,n)}`),a.join(", ")}async getSignUrl(t,n){let a=this.getDateTime(n),r={...this.request.params},u=this.request.params,o=this.request.headers;t.sessionToken&&(r[Xe.tokenHeader]=t.sessionToken),r[Xe.dateHeader]=a,r[Xe.notSignBody]="",r[Xe.credential]=`${t.accessKeyId}/${this.credentialString(a)}`,r[Xe.algorithmKey]=Xe.algorithm,r[Xe.signHeadersKey]="",r[Xe.signQueriesKey]=void 0,r[Xe.signatureKey]=void 0,r=this.sortParams(r),this.request.params=r,this.request.headers={};let i=await this.signature(t,a);return this.request.params=u,this.request.headers=o,r[Xe.signQueriesKey]=Object.keys(r).sort().join(";"),r[Xe.signatureKey]=i,Ks(r)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[Xe.dateHeader]=n,t.sessionToken&&(this.request.headers[Xe.tokenHeader]=t.sessionToken),this.request.body){let a=this.request.body;this.request.headers[Xe.contentSha256Header]=await hn(a)}}async signature(t,n){let a=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return so(await na(await this.stringToSign(n),a))}async stringToSign(t){let n=[];n.push(Xe.algorithm),n.push(t),n.push(this.credentialString(t));let a=await this.canonicalString();return n.push(await this.hexEncodedHash(a)),n.join(` `)}async canonicalString(){let t=[],n=this.request.pathname||"/";t.push(this.request.method.toUpperCase()),t.push(n);let a=Ks(this.request.params)||"";return t.push(a),t.push(`${this.canonicalHeaders()} `),t.push(this.signedHeaders()),t.push(await this.hexEncodedBodyHash()),t.join(` `)}canonicalHeaders(){let t=[];Object.keys(this.request.headers).forEach(a=>{t.push([a,this.request.headers[a]])}),t.sort((a,r)=>a[0].toLowerCase(){let r=a[0].toLowerCase();if(this.isSignableHeader(r)){let u=a[1];if(typeof u>"u"||u===null||typeof u.toString!="function")throw new Error(`Header ${r} contains invalid value`);n.push(`${r}:${this.canonicalHeaderValues(u.toString())}`)}}),n.join(` -`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await hn(t)}async hexEncodedBodyHash(){return this.request.headers[Xe.contentSha256Header]?this.request.headers[Xe.contentSha256Header]:this.request.body?await this.hexEncodedHash(Ks(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return N6.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,a,r){let u=await na(n,`${Xe.kDatePrefix}${t.secretKey}`),o=await na(a,u),i=await na(r,o);return na(Xe.v4Identifier,i)}createScope(t,n,a){return[t.substr(0,8),n,a,Xe.v4Identifier].join("/")}};var lm=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Gs=new Map(lm),j6=new Map(lm.map(([e,t])=>[t,e])),Vs=class extends be{static langMap=Gs;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,a){if(super(t,n,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new Error("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let a={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},r=new Za(a,"translate");await r.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let u=new URLSearchParams(a.params),o=await ie({retry:2,url:"https://open.volcengineapi.com"+a.pathname+"?"+u.toString(),headers:r.request.headers,method:a.method,body:a.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let i=o.ResponseMetadata.Error;throw new ot(i.Code,i.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let i=o.ResponseMetaData.Error;throw new ot(i.Code,i.Message)}else throw new Error("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:a,to:r}=t,u=Gs.get(a),o={TargetLanguage:Gs.get(r)||r,TextList:n};u?o.SourceLanguage=u:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` -`).slice(0,1e3));let i={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},s=new Za(i,"translate");await s.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let c=new URLSearchParams(i.params),l=await ie({retry:2,url:"https://open.volcengineapi.com"+i.pathname+"?"+c.toString(),headers:s.request.headers,method:i.method,body:i.body});if(l.TranslationList){let m=l.TranslationList.map(f=>f.Translation),g=a;return l.TranslationList.length>0&&l.TranslationList[0].DetectedSourceLanguage&&(g=j6.get(l.TranslationList[0].DetectedSourceLanguage)||a),{text:m,from:g,to:r}}else if(l.ResponseMetadata&&l.ResponseMetadata.Error){let m=l.ResponseMetadata.Error;throw new ot(m.Code,m.Message)}else if(l.ResponseMetaData&&l.ResponseMetaData.Error){let m=l.ResponseMetaData.Error;throw new ot(m.Code,m.Message)}else throw new Error("response: "+JSON.stringify(l))}},cm=Vs;p();var dm=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Ys=new Map(dm),z6=new Map(dm.map(([e,t])=>[t,e])),Xr=class extends be{static langMap=Ys;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:a,to:r}=t,u=Ys.get(a)||"detect",o=Ys.get(r)||r,s=await ie({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:u,target_language:o,text:n})});if(s.base_resp&&s.base_resp.status_code===0){let c=s.translation,l=a;return s.detected_language&&(l=z6.get(s.detected_language)||a),{text:c,from:l,to:r}}else{let c=s.base_resp;throw new ot(c.status_code.toString(),c.status_message)}}};p();var U6=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Js=new Map(U6),eu=class extends be{static langMap=Js;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,a){if(super(t,n,a),!t||!t.url)throw new Error("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(r=>r.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:a,to:r}=t,u=this.getRandomKey(),i=await ie({retry:2,url:u,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({source_lang:Js.get(a)||a,target_lang:Js.get(r)||r,text:n})});if(i.code===200)return{text:i.data,from:a,to:r};throw new Error(i.message||i.message||"API Error")}};p();p();var Qs="https://{s}bing.com",hm=Qs+"/translator",H6=Qs+"/ttranslatev3",q6=Qs+"/tspellcheckv3",fo="bingGlobalConfig",bm=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],mm=new Map(bm),gm=new Map(bm.map(([e,t])=>[t,e])),pm=1e3,bn,Xa;function Zs(e,t){return e.replace("{s}",t?t+".":"")}async function W6(){if(!bn){let n=await se.storage.local.get(fo);return n&&(bn=n[fo]),!0}let{tokenTs:e,tokenExpiryInterval:t}=bn;return Date.now()-e>t}async function fm(){let e,t,n,a,r,u,o,i,s,c;try{let l=Zs(hm,e),m=await ie({retry:2,url:l,responseType:"raw"}),{body:g,headers:f,url:d}=m;e=d.match(/^https?:\/\/(\w+)\.bing\.com/)[1],c=f["set-cookie"],t=g.match(/IG:"([^"]+)"/)[1],n=g.match(/data-iid="([^"]+)"/)[1],[r,a,u,o,i,s]=JSON.parse(g.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(l){throw l}return bn={subdomain:e,IG:t,IID:n,key:r,token:a,tokenTs:r,tokenExpiryInterval:u,isVertical:o,frontDoorBotClassification:i,isSignedInOrCorporateUser:s,cookie:c,count:0},await se.storage.local.set({[fo]:bn}),bn}function $6(e){let{IG:t,IID:n,subdomain:a,isVertical:r}=bn;return Zs(e?q6:H6,a)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+bn.count++:"")}function K6(e,t,n,a){let{token:r,key:u}=bn,o={fromLang:n,text:t,token:r,key:u};return!e&&a&&(o.to=a),o}async function ym(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>pm)throw new Error(`The supported maximum length of text is ${pm}. Please shorten the text.`);Xa||(Xa=fm()),await Xa,await W6()&&(Xa=fm(),await Xa),t=t||"auto",n=n||"zh-CN",t=mm.get(t)||t,n=mm.get(n)||n;let r=$6(!1),u=K6(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:Zs(hm,bn.subdomain),"content-type":"application/x-www-form-urlencoded"},i=new URLSearchParams(u),s=r,c=i.toString(),l=await ie({retry:2,url:s,headers:o,method:"POST",body:c});if(l.ShowCaptcha||l.StatusCode===401||l.statusCode){if(bn=null,Xa=null,await se.storage.local.remove(fo),l.ShowCaptcha)throw new Error(` +`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await hn(t)}async hexEncodedBodyHash(){return this.request.headers[Xe.contentSha256Header]?this.request.headers[Xe.contentSha256Header]:this.request.body?await this.hexEncodedHash(Ks(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return N6.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,a,r){let u=await na(n,`${Xe.kDatePrefix}${t.secretKey}`),o=await na(a,u),i=await na(r,o);return na(Xe.v4Identifier,i)}createScope(t,n,a){return[t.substr(0,8),n,a,Xe.v4Identifier].join("/")}};var cm=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Gs=new Map(cm),j6=new Map(cm.map(([e,t])=>[t,e])),Vs=class extends be{static langMap=Gs;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,a){if(super(t,n,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new Error("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let a={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},r=new Za(a,"translate");await r.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let u=new URLSearchParams(a.params),o=await ie({retry:2,url:"https://open.volcengineapi.com"+a.pathname+"?"+u.toString(),headers:r.request.headers,method:a.method,body:a.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let i=o.ResponseMetadata.Error;throw new ot(i.Code,i.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let i=o.ResponseMetaData.Error;throw new ot(i.Code,i.Message)}else throw new Error("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:a,to:r}=t,u=Gs.get(a),o={TargetLanguage:Gs.get(r)||r,TextList:n};u?o.SourceLanguage=u:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` +`).slice(0,1e3));let i={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},s=new Za(i,"translate");await s.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let c=new URLSearchParams(i.params),l=await ie({retry:2,url:"https://open.volcengineapi.com"+i.pathname+"?"+c.toString(),headers:s.request.headers,method:i.method,body:i.body});if(l.TranslationList){let m=l.TranslationList.map(f=>f.Translation),g=a;return l.TranslationList.length>0&&l.TranslationList[0].DetectedSourceLanguage&&(g=j6.get(l.TranslationList[0].DetectedSourceLanguage)||a),{text:m,from:g,to:r}}else if(l.ResponseMetadata&&l.ResponseMetadata.Error){let m=l.ResponseMetadata.Error;throw new ot(m.Code,m.Message)}else if(l.ResponseMetaData&&l.ResponseMetaData.Error){let m=l.ResponseMetaData.Error;throw new ot(m.Code,m.Message)}else throw new Error("response: "+JSON.stringify(l))}},dm=Vs;p();var mm=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Ys=new Map(mm),z6=new Map(mm.map(([e,t])=>[t,e])),Zr=class extends be{static langMap=Ys;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:a,to:r}=t,u=Ys.get(a)||"detect",o=Ys.get(r)||r,s=await ie({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:u,target_language:o,text:n})});if(s.base_resp&&s.base_resp.status_code===0){let c=s.translation,l=a;return s.detected_language&&(l=z6.get(s.detected_language)||a),{text:c,from:l,to:r}}else{let c=s.base_resp;throw new ot(c.status_code.toString(),c.status_message)}}};p();var U6=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Js=new Map(U6),Xr=class extends be{static langMap=Js;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,a){if(super(t,n,a),!t||!t.url)throw new Error("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(r=>r.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:a,to:r}=t,u=this.getRandomKey(),i=await ie({retry:2,url:u,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({source_lang:Js.get(a)||a,target_lang:Js.get(r)||r,text:n})});if(i.code===200)return{text:i.data,from:a,to:r};throw new Error(i.message||i.message||"API Error")}};p();p();var Qs="https://{s}bing.com",bm=Qs+"/translator",H6=Qs+"/ttranslatev3",q6=Qs+"/tspellcheckv3",fo="bingGlobalConfig",ym=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],gm=new Map(ym),pm=new Map(ym.map(([e,t])=>[t,e])),fm=1e3,bn,Xa;function Zs(e,t){return e.replace("{s}",t?t+".":"")}async function W6(){if(!bn){let n=await se.storage.local.get(fo);return n&&(bn=n[fo]),!0}let{tokenTs:e,tokenExpiryInterval:t}=bn;return Date.now()-e>t}async function hm(){let e,t,n,a,r,u,o,i,s,c;try{let l=Zs(bm,e),m=await ie({retry:2,url:l,responseType:"raw"}),{body:g,headers:f,url:d}=m;e=d.match(/^https?:\/\/(\w+)\.bing\.com/)[1],c=f["set-cookie"],t=g.match(/IG:"([^"]+)"/)[1],n=g.match(/data-iid="([^"]+)"/)[1],[r,a,u,o,i,s]=JSON.parse(g.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(l){throw l}return bn={subdomain:e,IG:t,IID:n,key:r,token:a,tokenTs:r,tokenExpiryInterval:u,isVertical:o,frontDoorBotClassification:i,isSignedInOrCorporateUser:s,cookie:c,count:0},await se.storage.local.set({[fo]:bn}),bn}function $6(e){let{IG:t,IID:n,subdomain:a,isVertical:r}=bn;return Zs(e?q6:H6,a)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+bn.count++:"")}function K6(e,t,n,a){let{token:r,key:u}=bn,o={fromLang:n,text:t,token:r,key:u};return!e&&a&&(o.to=a),o}async function xm(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>fm)throw new Error(`The supported maximum length of text is ${fm}. Please shorten the text.`);Xa||(Xa=hm()),await Xa,await W6()&&(Xa=hm(),await Xa),t=t||"auto",n=n||"zh-CN",t=gm.get(t)||t,n=gm.get(n)||n;let r=$6(!1),u=K6(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:Zs(bm,bn.subdomain),"content-type":"application/x-www-form-urlencoded"},i=new URLSearchParams(u),s=r,c=i.toString(),l=await ie({retry:2,url:s,headers:o,method:"POST",body:c});if(l.ShowCaptcha||l.StatusCode===401||l.statusCode){if(bn=null,Xa=null,await se.storage.local.remove(fo),l.ShowCaptcha)throw new Error(` Sorry that bing translator seems to be asking for the captcha, Please take care not to request too frequently. The response code is ${l.StatusCode}. `);if(l.StatusCode===401)throw new Error(` Max count of translation exceeded. Please try it again later. The response code is 401. - `);if(l.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(l)}.`)}let m=l[0].translations[0],g=l[0].detectedLanguage;return{text:m.text,from:gm.get(g.language),to:gm.get(m.to)}}p();var ho=new Map;async function Xs(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=Zn(e.body)),ho.has(t))return ho.get(t);let n=ie(e);ho.set(t,n);try{return await n}catch(a){throw a}finally{setTimeout(()=>{ho.delete(t)},3e4)}}async function xm(e){return Xs(e)}async function Em(e){if(nt()){let n=ao();if(n)try{return await n.ask("throttleRequest",e)}catch(a){throw U.error("can not comunicate with root frame, use strict limiter",a),a}else return Xs(e)}else return Xs(e)}p();function Tm(e){let t=e.split(".");if(t.length<=1)throw new Error("invlaid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let a=n.replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(globalThis.atob(a).split("").map(function(i){return"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)}).join("")),u=JSON.parse(r),o=new Date(u.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}var Ea=null,G6=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],e0=new Map(G6),tu=class extends be{static langMap=e0;isSupportList=!0;maxTextLength=1800;static async clearState(){Ea=null,await jr(Cu)}async translate(t){let{text:n,from:a,to:r}=t;return n?await ym(n,a,r):{...t}}async init(){if(!Ea){Ea={};let t=await Or(Cu);t&&(Ea=t)}await Cm(Ea)}async translateList(t){let{from:n,to:a,text:r}=t,u=e0.get(n)||"auto",o=e0.get(a)||a;u==="auto"&&(u="");let i=await Cm(Ea),s=[];for(let g of r)s.push({Text:g});let c=JSON.stringify(s),l=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${u}&to=${o}&api-version=3.0&includeSentenceLength=true`,m=await ie({url:l,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+i.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin"},body:c,method:"POST"});if(m&&m.length>0&&m[0].translations&&m[0].translations.length>0)return{text:m.map(g=>g.translations[0]?.text||""),from:n,to:a};throw new Error("Microsoft translate error "+JSON.stringify(m))}};async function Cm(e){if(e&&e.accessToken&&e.accessTokenExpiresAt){let t=Date.now(),a=new Date(e.accessTokenExpiresAt).getTime();if(a-t>30*1e3)return e;if(a-t>3e3)return wm().catch(r=>{U.error(r)}),e}return wm()}async function wm(){let e=await Em({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET"}),t=Tm(e),n=t.accessTokenExpiresAt,r=new Date(n).getTime()-Date.now();return Ea=t,await Nr(Cu,t,r-1e3),{accessToken:e,accessTokenExpiresAt:t.accessTokenExpiresAt}}p();var vm=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],t0=new Map(vm),V6=new Map(vm.map(([e,t])=>[t,e])),n0=class extends be{static langMap=t0;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";appid="";key="";isSupportList=!1;maxTextGroupLength=20;constructor(t,n,a){if(super(t,n,a),!t||!t.appid||!t.key)throw new Error("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim()}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:a}=this,{appid:r,key:u}=this,{text:o,from:i,to:s}=t,c=new URLSearchParams({from:t0.get(i)||"auto",to:t0.get(s)||s,q:o,salt:n,appid:r,sign:Zn(r+o+n+u)}),l=new URL(a);l.search=c.toString();let m=await ie({url:l.toString()});if(m.error_code)throw new ot("API_SERVER_ERROR",m.error_msg);let{trans_result:g,from:f}=m,d=g.map(({dst:T})=>T);return{from:V6.get(f)||f,to:s,text:d.join(` -`)}}},km=n0;p();p();var Ta=class extends be{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,a){super(t,n,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let u=await this.checkLang(a,n);if(!u)return{text:n,from:a,to:r};a=u;let o=this.handleRequest(n,a,r),i=await Ju(o);return{text:this.handleResponseText(i),from:a,to:r}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let u=await this.checkLang(a,n.join(" "));if(!u)return{text:n,from:a,to:r};a=u;let o=this.handleRequest(n,a,r),i=await Ju(o);return{text:this.handleResponseText(i),from:a,to:r}}handleBaseApiServiceConfig(t){let n=t.request.url,a=t.request.headers||{};return a["content-type"]||(a["content-type"]="application/json"),{url:n,retry:t.request.retry||2,method:t.request.method||"POST",headers:a,body:JSON.stringify(t.request.body)}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,a){let r={...this.requestBaseConfig},u=r?.body||"",o=this.apiServiceConfig.keywords||{};r.body=s(u);let i=r.headers||{};return Object.keys(i).forEach(c=>{i[c]=s(i[c])}),r.headers=i,r.url=s(r.url||""),r;function s(c){return c.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",a).replaceAll(/{([a-z:_]+)}/gi,(m,g)=>{let[f,d]=g.split(":"),b=o[f];return d==="random"?Y6(b.split(",")):b})}}handleResponseText(t){let n=this.apiServiceConfig.response,a=t,r=n.text.split(".");for(let u of r){if(Array.isArray(a))return a=a.map(o=>o[u]),a;a=a[u]}return a}detectLanguageRemotely(t){return xa.detectLanguageRemotelyByTransmart(t)}};function Y6(e){let t=Math.floor(Math.random()*e.length);return e[t]}var a0=class extends Ta{constructor(t,n,a){if(!t?.token)throw new Error("token are required");super({...t,isSupportList:!0,langs:[["zh-CN","zh"],["en","en"],["ja","ja"]],keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,a)}},Sm=a0;p();var J6=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],bo=new Map(J6),r0=class extends be{static langMap=bo;token="ssdj273ksdiwi923bsd9";constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t;if(!bo.get(r))throw new Error(`Unsupported language: ${r}`);if(a==="auto")throw new Error("Unsupported language: auto");let o=n;return{text:(await ie({retry:2,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${bo.get(a)||"auto"}2${bo.get(r)}`})})).target,from:a,to:r}}},Am=r0;p();var Dm=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],u0=new Map(Dm),Q6=new Map(Dm.map(([e,t])=>[t,e]));function Z6(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var o0=class extends be{static langMap=u0;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,a){if(super(t,n,a),!t||!t.appId||!t.appSecret)throw new Error("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,u=X6(32),o=Math.round(new Date().getTime()/1e3),i=this.appId+Z6(n)+u+o+this.appSecret,s=await hn(i),c={q:n,appKey:this.appId,salt:u.toString(),from:u0.get(a)||"auto",to:u0.get(r)||r,sign:s,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(c.domain=this.domain),this.vocabId&&(c.vocabId=this.vocabId);let l=new URLSearchParams(c),g=await ie({url:"https://openapi.youdao.com/api",method:"POST",body:l.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"}});if(!g.translation)throw new Error(JSON.stringify(g));let f=g.l,[d,b]=f.split("2");return{text:g.translation.join(` -`),from:Q6.get(d),to:r}}};function X6(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r[t,e]));var s0=class extends be{static langMap=i0;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,u={q:n,from:i0.get(a)||"auto",to:i0.get(r)||r},o=new URLSearchParams(u),i=await ie({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"}});if(i&&i.translation)return{text:i.translation.join(` -`),from:a,to:r};throw new Error("Youdao translation failed: "+JSON.stringify(i))}},Mm=s0;p();var nu=class extends Ta{constructor(t,n,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(r=>[r,r]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||ga,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,a)}};var e9={mock:Qa,mock2:Qa,custom:nu,google:ya,transmart:xa,deepl:em,volc:cm,volcAlpha:Xr,bing:tu,tencent:$r,tenAlpha:Kr,baidu:km,caiyun:Sm,cai:Am,openl:mo,youdao:Lm,you:Mm,d:Ja,dpro:Ja,deeplx:eu,niu:tm,azure:nm,openai:rm,chatgpt:Jr,papago:am,aliyun:Zr},aa={};Object.keys(Fn).forEach(e=>{aa[e]={...Fn[e],class:e9[e]}});function Fm(e,t){let n=Xt;if(aa[e]&&aa[e].class&&aa[e].class.langMap&&aa[e].class.langMap.size>0){let a=aa[e].class.langMap,r=n.filter(u=>a.get(u));return r.includes(t)||r.unshift("placeholder"),r}else return Xt}async function Ca(e,t){if(!e.text)return e;let n=await In({sentences:[e]},t);if(n.sentences.length>0)return{...e,...n.sentences[0]};throw new ot("translateFailed","translate failed")}async function _m(e,t){for(let n of e)try{return await Ca({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n}),n}catch{continue}return null}async function l0(e){let{config:t,translationService:n}=e,a=t.translationGeneralConfig,r=t.translationServices,u=n,o=r[u]||{},i=Qt(e.user),s=new aa[u].class(o,a,{translationService:u,userToken:e.user?.token,isPro:i}),c=s.getDefaultRateLimit();c&&(o&&!o.limit&&(o.limit=c.limit),o&&!o.interval&&(o.interval=c.interval)),u==="deepl"&&o&&o.provider==="pro"&&(o.limitForImmersiveDeepl?o.limit=o.limitForImmersiveDeepl:c&&(o.limit=c.limit)),await Pd(u,o),await s.init()}async function In(e,t,n){if(!e.sentences.length)return{...e};let{config:a,translationService:r,state:u}=t,o=a.translationGeneralConfig,i=a.translationServices,s=r,c=i[s]||{};s==="openai"&&(e.sentences=e.sentences.map(C=>({...C,from:"auto"})));let l=[],m={sentences:Array(e.sentences.length)},g=e.sentences.length,f=-1;if(u.cache)for(let C of e.sentences){f++;let v=s;s==="openl"&&(v=s+"-"+c.codename||mo.DEFAULT_CODENAME);let O=null;try{O=await Fu(Bm({originalText:C.text,from:C.from,to:C.to,service:v}),200)}catch(B){U.warn("query cache DB error, but it's ok",B)}if(O){let B={...C,text:O.translatedText};m.sentences[f]=B,n&&n(null,B,C)}else l.push(C)}else l.push(...e.sentences);let d=l.length;if(g-d>0&&U.debug(`use ${g-d} sentences from cache`),!l.length)return m;let b,T=Qt(t.user);try{b=new aa[s].class(c,o,{translationService:s,userToken:t.user?.token,isPro:T}),await b.init()}catch(C){if(n)for(let v of l)n(C,null,v);throw C}let h=await b.multipleTranslate({sentences:l},c,(C,v,O)=>{if(n&&n(C,v,O),!C&&v&&!s.startsWith("mock")&&u.cache){let B=s;s==="openl"&&(B=s+"-"+c.codename||mo.DEFAULT_CODENAME),u.cache&&Fu(Rm({translatedText:v.text,from:O.from,to:O.to,detectedFrom:v.from,key:Zn(O.text),service:B}),3e3).catch(x=>{U.warn("set cache DB error",x)})}});for(let C of h.sentences){let v=m.sentences.findIndex(O=>!O);if(v===-1)throw new ot("translateFailed","can not match the result");m.sentences[v]=C}return m}p();var yo=!1,t9=he();function Im(e,t){let n=[];for(let a of t){let r=e.querySelectorAll(a);for(let u of r)n.push(u)}return n}function n9(e,t){let n=function(u){return u.nodeType===Node.ELEMENT_NODE||u.nodeType===Node.TEXT_NODE?u.nodeType===Node.ELEMENT_NODE&&Om(u,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),r=!0;for(;a.nextNode();){let u=a.currentNode;if(u.nodeType===Node.ELEMENT_NODE){if(ra(u,Au)){if(r===!0)return!0;continue}if(au(u.nodeName,t.inlineTags))return!0;if(!c0(u,t))return!1}}return!0}function d0(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(au(e.nodeName,n)||c0(e,t)){if(ra(e,Dc)||au(e.nodeName,["BR"]))return!1;if(ra(e,Au))return!0;if(c0(e,t)){let a=globalThis.getComputedStyle(e);if(a.display==="block"||a.display==="flex")return!1}return n9(e,t)}else return ra(e,Au);return!1}function Om(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&ra(e,Ac,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&ra(e,Cc))return!1;let{stayOriginalTags:a,excludeTags:r}=t,u=[];return n&&r&&r.length>0?u=r||[]:u=r.filter(o=>!a.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||au(e.nodeName,u))}function xo(e,t,n){let a=e.trim();return a.length>=t||a.split(" ").filter(o=>o.trim()!=="").length>=n||!jm(a)&&a.length>=n}function Nm(e,t,n){let a=e.trim();if(a.length<=t)return!0;if(jm(a)){if(a.split(" ").length<=n)return!0}else if(a.length<=n)return!0;return!1}function jm(e){for(let t=0;t127)return!1;return!0}function zm(e){if(e&&e.includes("://"))try{return new URL(e),!0}catch{return!1}else return!1}function Um(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function Hm(e){return e?/^[-+]?[0-9]*\.?[0-9]+%?$/.test(e):!1}function qm(e){return!!(e&&e.startsWith("#")&&e.indexOf(" ")===-1)}function Wm(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function ra(e,t,n=!1){return m0(e,t,"1",n)}function m0(e,t,n,a=!1){return yo&&!a?e[It]?!!(e[It]&&e[It][t]===n):!1:e.dataset[t]===n}function er(e){return(e.innerText||e.textContent||"").trim()}function g0(e){let t=e.querySelectorAll("iframe"),n="";for(let a=0;a2e3))break}return n}function Eo(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function at(e,t,n,a=!1,r=!1){e.isContentEditable&&!r||(yo&&!a?(e.dataset[Sr]||(e.dataset[Sr]="1"),e[It]||(e[It]={}),e[It][t]||(e[It][t]=n)):(e.dataset[Sr]||(e.dataset[Sr]="1"),e.dataset[t]!==n&&(e.dataset[t]=n)))}function To(e,t,n=!1){if(yo&&!n){if(!e[It]||!e[It][t])return;delete e[It][t]}else delete e.dataset[t]}function tr(e,t,n=!1){return yo&&!n?!e[It]||!e[It][t]?void 0:e[It][t]:e.dataset[t]}function c0(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!au(e.nodeName,n)}function nr(e){let{config:t}=e,n=ga;return t.translationServices[e.translationService]&&t.translationServices[e.translationService].placeholderDelimiters&&(n=t.translationServices[e.translationService].placeholderDelimiters),n}function ht(){if(!globalThis||!globalThis.location)return"https://example.com";if(!nt())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let a="";try{a=globalThis.parent.location.href}catch{}return a||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function wa(e,t,n){if(e instanceof ShadowRoot){try{e.appendChild(document.createElement("style")).textContent=t}catch(a){U.warn("injectCSS failed, rootDocument"+a?.message,e)}return}if(e&&e.head&&e.head.appendChild){let a=e.createElement("style");if(n){let r=e.querySelector(`style[data-id="${n}"]`);r&&r.remove(),a.dataset.id=n}a.textContent=t,e.head.appendChild(a)}else if(e){let a=document.createElement("head"),r=document.createElement("style");r.textContent=t,a.appendChild(r),e.appendChild(a)}else U.warn("injectCSS failed, rootDocument does not have head node",e)}function ar(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(t9){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!document.querySelector("meta[name='immersive-translate-ebook-viewer']")||!t.startsWith("blob:http");return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function au(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function $m(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),a=parseInt(t.substring(2,4),16),r=parseInt(t.substring(4,6),16);return{r:n,g:a,b:r}}function Km(e,t,n,a){if(a.document.caretPositionFromPoint){let r=a.document.caretPositionFromPoint(e,t);if(r){let u=a.document.createRange(),o=r.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||Om(o,n,!0))return null;try{u.setStart(o,r.offset),u.setEnd(o,r.offset)}catch(i){return U.warn("getRangeFromPoint error",i),null}return u}return null}else return a.document.caretRangeFromPoint?a.document.caretRangeFromPoint(e,t):null}function Gm(e,t,n){let a=0,r=(u,o,i,s)=>{if(++a>100||s===u)return u;let c=u.shadowRoot;if(!c||typeof c.elementFromPoint!="function")return u;let l=c.elementFromPoint(o,i);return l?r(l,o,i,u):u};return r(e,t,n)}p();p();var a9=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function yn(e,t){if(t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function p0(e,t,n){let{blockSelectors:a,extraBlockSelectors:r,extraInlineSelectors:u}=t;if(yn(e,u))return!1;if(yn(e,r)||e.nodeName.toLowerCase()==="br")return!0;let s=null;return e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(s=e.parentNode.immersiveTranslateComputedStyle),s&&s.display&&s.display==="inline-flex"?!1:n&&n.display?!!a9.includes(n.display):yn(e,a)}var Dt=yn;function va(e){return!!e.shadowRoot}function ua(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function ru(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Co(e){let t=ga;return e&&(t=e),t}function wo(e,t){return $n(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function r9(e){let{rule:t}=e,n=e.config.loadingTheme;return` <${t.targetWrapperTag} class="${J}-loading-${n} notranslate">`}function uu(e,t){let n=e.rule,a=document.createElement(n.targetWrapperTag);a.classList.add("notranslate",qt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),at(a,kc,t.toString());let r=r9(e);return a.append(Le.sanitize(r,{RETURN_DOM_FRAGMENT:!0})),a}function rr(e,t){return e.querySelector(`[${Bi}='${t}']`)}function Vm(){document.querySelectorAll(`[${Bi}]`).forEach(t=>{t.remove()})}function Ym(){document.querySelectorAll(`.${qt}-error`).forEach(t=>{t.remove()})}function Jm(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{ar(n)&&t.push(n)}),t}function Qm(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:a,delimiters:r,text:u}=e,o=new RegExp(`${r[0]}(\\d+)${r[1]}`,"gi");if(r.length>2){let s=r[2];o=new RegExp(`<${s}(\\d+)>(.*?)`,"gi")}let i=u.trim();return i=i.replace(o,""),i=i.trim(),i===""||i.length===1&&i.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(u)||i.includes("")||i.includes("< styles>")||Wm(i)||zm(i)||qm(i)||Um(i)||Hm(i)||o.test(i)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(i)?!1:xo(u,n,a)}function xn(e){return e.nodeType===Node.ELEMENT_NODE}function Zm(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}function Xm(e){try{let t=Math.floor((new Date-new Date(e))/1e3);return t<60?`${t} \u79D2\u524D`:t<3600?`${Math.floor(t/60)} \u5206\u949F\u524D`:t<86400?`${Math.floor(t/3600)} \u5C0F\u65F6\u524D`:`${Math.floor(t/86400)} \u5929\u524D`}catch{return e}}async function e3(e){let n=Qe().INSTALL_FROM,a=an(),r=await At("installedAt",""),u=await At("fakeUserId","");return{installFrom:n,version:a,installedAt:r,interfaceLang:e,deviceId:u}}var u9=1e5;function oa(e){let{onParagraph:t,filterRule:n,id:a}=e;n=o9(n);let{stayOriginalSelectors:r,globalStyles:u,selectors:o,isTransformPreTagNewLine:i,lineBreakMaxTextCount:s,globalAttributes:c,isModifyImage:l,skipEditableCheck:m}=n,g={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},f=!1,d=null;function b(B){let{container:x,onFrame:L,onIgnoreElement:M,id:w}=B,E=document.createTreeWalker(x,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,A=>{let _=F(A);return _==NodeFilter.FILTER_ACCEPT?jt.mark(A,w,m):_==NodeFilter.FILTER_REJECT,_}),I=x;if(F(I)===NodeFilter.FILTER_REJECT)return;for(jt.mark(I,w,m);I;){if(o&&o.length>0){let{currentNode:A,isMatchedSelection:_}=T(E,I,o);if(A)I=A;else break;if(!_)continue}if(I.nodeType===Node.ELEMENT_NODE||I.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let A=I;if(A.nodeName==="IFRAME"){L&&L(A),h(),f0(g,!0),I=E.nextNode();continue}A.nodeType===Node.ELEMENT_NODE&&(u&&b0(A,u),c&&x0(A,c));let _=p0(A,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},A.immersiveTranslateComputedStyle||null);if(Dt(A,r)&&!_){C(A);let D=null;for(;!(D=E.nextSibling())&&E.parentNode(););I=D;continue}let j=va(A);(!t3(g,A)||_)&&(h(),A.childNodes.length>0&&v(g,A,A.immersiveTranslateComputedStyle||null)),j&&A.shadowRoot?.mode==="open"&&(_?L?.(A.shadowRoot):b({...B,container:A.shadowRoot})),A.nodeType===Node.ELEMENT_NODE&&A.nodeName==="PRE"&&i&&c9(A)}else if(I.nodeType===Node.TEXT_NODE)C(I);else throw new Error("should not be here");I=E.nextNode(),g.commonAncestorContainer&&I&&I.parentNode===g.commonAncestorContainer&&(g._currentStacks=[]),g.commonAncestorContainer&&I&&I.nodeType===Node.ELEMENT_NODE&&g._currentStacks.push(I)}function F(A){if(A.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(xn(A)){if(c){let D=Object.keys(c);if(D.length>0&&Dt(A,D))for(let S of D){let R=c[S];if(A.matches(S)){let $=c[S],z=Object.keys($);for(let Y of z){let q=$[Y];A.getAttribute(Y)!==q&&(q===null?A.removeAttribute(Y):A.setAttribute(Y,q))}break}}}if(!B.force&&jt.isMarked(A,w)||Zm(A,w)||E0(A,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,stayOriginalSelectors:r})||A.nodeName==="IFRAME"&&!ar(A))return NodeFilter.FILTER_REJECT;let _=A.getBoundingClientRect(),{width:j,height:N}=_;if(A.nodeType===Node.ELEMENT_NODE){let D=window.getComputedStyle(A);if(A.immersiveTranslateComputedStyle={display:D.display,whiteSpace:D.whiteSpace,left:_.left+"px",right:_.right+"px",top:_.top+"px",bottom:_.bottom+"px"},y0(A.immersiveTranslateComputedStyle))return M&&M(A),NodeFilter.FILTER_REJECT;let y=p0(A,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},A.immersiveTranslateComputedStyle||null);if(Dt(A,r)&&y)return NodeFilter.FILTER_REJECT}return A.nodeName==="IMG"&&(j>48&&N>48?A.immersiveTranslateComputedStyle={display:"block"}:j>0&&N>0&&l!==!1&&(A.setAttribute("width",j),A.setAttribute("height",N))),!A.childNodes||A.childNodes&&A.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!g.isPreWhitespace&&(j>0&&j<4||N>0&&N<4)&&(A.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(A.nodeType===Node.TEXT_NODE){let _=A.textContent?.trim();if(!_)return g.isPreWhitespace?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let j=A.parentNode;if(j.getBoundingClientRect){let{width:N,height:D}=j.getBoundingClientRect();if(N>0&&N<4||D>0&&D<4)return NodeFilter.FILTER_REJECT}return s>0&&_.length>=s&&h0(A,s),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}b(e),g&&g.commonAncestorContainer&&g.flatNodes.length>0&&h();function T(B,x,L){let M=x.immersiveTranslateComputedStyle||null;if(d){if(!d.contains(x))if(f=!1,x&&x.nodeType===Node.ELEMENT_NODE)if(vo(x,L))f=!0,d=x,h(),v(g,d,M);else return f=!1,x=B.nextNode(),{currentNode:x,isMatchedSelection:f};else return f=!1,x=B.nextNode(),{currentNode:x,isMatchedSelection:f}}else if(x&&x.nodeType===Node.ELEMENT_NODE)if(vo(x,L))f=!0,d=x,h(),v(g,d,M);else return f=!1,x=B.nextNode(),{currentNode:x,isMatchedSelection:f};else return f=!1,x=B.nextNode(),{currentNode:x,isMatchedSelection:f};return{currentNode:x,isMatchedSelection:!0}}function h(){let B=l9(g,a);B&&t&&t(B),f0(g)}function C(B){if(!t3(g,B)){h(),f0(g);let x=B.parentNode;x&&v(g,x,x.computedStyle)}g.flatNodes.push(B)}function v(B,x,L){B.commonAncestorContainer=x;let M=O(L);B.isPreWhitespace=M}function O(B){return B&&B.whiteSpace&&B.whiteSpace.startsWith("pre")||B&&B.whiteSpace==="break-spaces"||!1}}function t3(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=va(t));let a=s9(e),r=!0;return!n&&!a&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?r=!0:e.commonAncestorContainer&&(r=!1,e._currentStacks=[])),r}function o9(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let a=n!=="iframe";return t?a&&n!=="pre":a}),e}function i9(e,t,n){if(t){for(let a of t.childNodes)if(a.contains(n))return a}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function b0(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Dt(e,n))for(let r of n){let u=t[r];if(e.matches(r)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+u;break}}}}function s9(e){return e&&e._currentStacks?e._currentStacks.some(t=>va(t)):!1}function l9(e,t){let{flatNodes:n,commonAncestorContainer:a}=e;if(a&&n.length>0){if(!n.map(g=>g.textContent?.trim()||"").join(""))return null;if(n.length===1)return{ctxId:t,stepState:1,commonAncestorContainer:n[0].parentNode,rootNodes:[n[0]],flatNodes:n,isPreWhitespace:e.isPreWhitespace,variables:{}};let u=d9(n,a);u||(u=a);let o=[];for(let g of n){let f=i9(e,u,g);f&&(o.includes(f)||o.push(f))}if(o.length<1)return null;let i=o[0],s=o[o.length-1],c=[],l=i,m=0;for(;l&&(c.push(l),l!==s);){if(m++,m>u9){U.warn("loop too many times for convert root nodes, break");break}l=l.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:n,commonAncestorContainer:u,variables:{},isPreWhitespace:e.isPreWhitespace}}else return null}function f0(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function y0(e){let t=e.top?parseInt(e.top):0,n=e.left?parseInt(e.left):0,a=e.right?parseInt(e.right):0,r=e.bottom?parseInt(e.bottom):0;return isNaN(t)&&(t=0),isNaN(n)&&(n=0),isNaN(a)&&(a=0),isNaN(r)&&(r=0),e.display==="none"||t<-1e3||n<-1e3||a<-1e3||r<-1e3}var jt={_marked_key:"immersive_translate_walked",isMarked(e,t){return m0(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||va(e)))return To(e,this._marked_key)},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||va(e)))return at(e,this._marked_key,t,!1,n)},markWalk(e,t,n){if(!e||e.nodeType!==Node.ELEMENT_NODE||this.isSkipMarkEle(e))return;let a=tr(e,"markWalk")||"";return at(e,"markWalk",a+","+t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||va(e)):!1}};function c9(e){let n=e.innerHTML.replace(/\n\n/g,"
");e.innerHTML=Le.sanitize(n)}function d9(e,t){if(!e.length)return null;let n=e.map(a=>{let r=new Set;for(;(a=a.parentNode)&&(r.add(a),a!==t););return r});for(let a of n[0])if((a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&n.every(r=>r.has(a)))return a;return null}function h0(e,t){let n=e.textContent||"";if(n.trim().length<=t)return;let u=[". ","? ","! ","\u3002","\uFF1F","\uFF01"].reduce((o,i)=>{let s=n.lastIndexOf(i,t);return s>o?s:o},-1);if(u>1){let o=n[u-1]||"",i=n[u-2]||"",s=n[u+1]||"";o==="."||s==="."||s===")"||i==="."&&o==="S"||i.toUpperCase()==="M"&&(o.toUpperCase()==="R"||o.toUpperCase()==="S")?u=-1:isNaN(Number(o))||(u=-1)}if(u===-1)n.length>t+20&&h0(e,t+20);else{let o=n.slice(u+1);u++,o.startsWith(" ")&&u++;let i=e.splitText(u),s=document.createElement("br");i.parentNode?.insertBefore(s,i),u+10)for(let a of n){let r=t[a],u=Object.keys(r),o=Im(e,[a]);for(let i of o)for(let s of u){let c=r[s];i.getAttribute(s)!==c&&(c===null?i.removeAttribute(s):i.setAttribute(s,c))}}}function a3(e,t,n,a,r,u){let o=Object.keys(t);if(o.length>0)for(let i of o){let s=t[i],c=Object.keys(s),l=e.querySelector(i);if(l)for(let m of c){let g=s[m];if(m==="translate"&&g==="no"){let d=l.innerText||l.textContent||"";if(!d.trim()||m9(l,r,u)||!Nm(d,n,a))continue}l.getAttribute(m)!==g&&(g===null?l.removeAttribute(m):l.setAttribute(m,g))}}}function x0(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Dt(e,n))for(let r of n){let u=t[r];if(e.matches(r)){let o=t[r],i=Object.keys(o);for(let s of i){let c=o[s];e.getAttribute(s)!==c&&(c===null?e.removeAttribute(s):e.setAttribute(s,c))}break}}}}function E0(e,t){return Dt(e,t.excludeSelectors||[])?Dt(e,t.selectors||[])?!1:!Dt(e,t.stayOriginalSelectors||[]):!1}function vo(e,t){if(t.length===0)return!1;let n=t.filter(a=>!a.endsWith("*")).map(a=>a+" *");return Dt(e,t.concat(n))}function m9(e,t,n){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,r=>NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let r=a.currentNode;if(r.nodeType===Node.TEXT_NODE&&parent){let u=r.textContent||"";if(u.includes("Copyright"))continue;if(xo(u,t,n))return!0}}return!1}p();p();var r3=["*://*/*","*","*://*"],o3="immersive-translate-wildcard-placeholder.com";function T0(e,t){let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(o=>r3.includes(o)))return e;let a=new URL(e);a.hash="",a.search="";let r=a.href,u=a.hostname;if(n&&n.length>0){let o=n.find(i=>{let s=i;if(i===u)return!0;if(r3.includes(i))return!0;if(!i.includes("*")&&i.includes("://")){try{let c=new URL(i);return c.pathname==="/"&&!i.endsWith("/")?c.hostname===u:p9(r,i)}catch{}return!1}else{let c,l=i;if(i.includes("://")){let T=i.split("://");c=T[0],c==="*"&&T.length>1&&(c="*",i="https://"+T[1])}else c="*",i="https://"+i;let m=i.replace(/\*/g,o3),g;try{g=new URL(m)}catch{return U.debug("invalid match pattern",m,"raw match value:",l),!1}let f=g.hostname,d=g.pathname;d==="/"&&(l.replace("://","").includes("/")||(d="/*"));let b=g9(c+":",u3(f),u3(d));if(b){let T=new URL(r);return T.port="",b.test(T.href)}else return!1}});if(o)return o}return null}function u3(e){return e.replaceAll(o3,"*")}function g9(e,t,n){let a="^";return e==="*:"?a+="(http:|https:|file:)":a+=e,a+="//",t&&(e==="file:"||(t==="*"?a+="[^/]+?":(t.match(/^\*\./)&&(a+="[^/]*?",t=t.substring(2)),a+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?a+="(/.*)?":n.includes("*")?(a+=n.replace(/\*/g,".*?"),a+="/?"):a+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):a+="/?",a+="$",new RegExp(a)}function On(e,t){return T0(e,t)!==null}function p9(e,t){let n=new URL(e),a=new URL(t);return n.hostname===a.hostname&&n.pathname===a.pathname&&n.protocol===a.protocol&&n.port===a.port}async function ka(e){let{url:t,config:n,state:a}=e,r=new URL(t),u="auto",{translationParagraphLanguagePattern:o,translationService:i,translationServices:s,translationTheme:c,translationThemePatterns:l,translationUrlPattern:m,targetLanguage:g,sourceLanguageUrlPattern:f,immediateTranslationPattern:d}=n,b=ur(t,o),T=ur(t,d),h=i,C=Object.keys(s);for(let K of C){let oe=s[K];if(ur(t,oe)){h=K;break}}let v=c,O=Object.keys(l);for(let K of O){let oe=l[K];if(oe&&ur(t,oe)){v=K;break}}let B=ur(t,m),x=i3(t,m);x||(x=On(t,Nc)),x||(x=On(t,n.blockUrls));let L=i3(t,n.inputTranslationUrlPattern);L||(L=On(t,n.inputTranslationBlockUrls));let M=On(t,n.mutationBlockUrls),w=Object.keys(f),E={};for(let K of w){let oe=f[K];if(oe&&oe.matches)for(let me of oe.matches)E[me]=K}let I=Object.keys(E),F=T0(t,I);F&&(u=E[F]??"auto",E[F]&&E[F]!=="auto"&&rn(E[F]));let A=g||"zh-CN",_=r.hostname,j=await hn(_),N=r.pathname+r.search+r.hash,D=await hn(N),y=`https://${j}.com/${D}`,S=await Jn(),R=await md(),$=n.translationStartMode;$==="dynamic"&&T&&($="immediate");let z=h;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(z=n.inputTranslationService);let Y=h;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(Y=n.mouseHoverTranslationService);let q={targetLanguage:A,config:n,translationService:h,inputTranslationService:z,mouseHoverTranslationService:Y,isTranslateUrl:B,sourceLanguage:u,mainFrame:document.body,isTranslateExcludeUrl:x,isMutationTranslationExcludeUrl:M,isInputTranslationExcludeUrl:L,rule:n.generalRule,url:t,encryptedUrl:y,state:a?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:$,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:v},a):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:$,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:v},localConfig:S},ae=await Nt.get(en,null);ae&&(q.user=ae),q.state.translationArea==="body"&&(q.config.generalRule.excludeTags=q.config.generalRule.excludeTags.filter(K=>!q.config.generalRule.bodyTranslateTags.includes(K)),q.config.generalRule.additionalExcludeSelectors=q.config.generalRule.additionalExcludeSelectors.filter(K=>K!==".btn"));let Q=n.translationServices[q.translationService]||{};Q.immediateTranslationTextCount!==void 0&&f9(Q.immediateTranslationTextCount)&&Q.immediateTranslationTextCount>=0&&(q.state.immediateTranslationTextCount=Q.immediateTranslationTextCount),q.translationService==="deepl"&&(Q&&Q.authKey&&Q.authKey.startsWith("immersive_")||Q&&Q.provider==="pro"&&q.user?.token)&&Q.immediateTranslationTextCountForImmersiveDeepl!==void 0&&Q.immediateTranslationTextCountForImmersiveDeepl>=0&&(q.state.immediateTranslationTextCount=Q.immediateTranslationTextCountForImmersiveDeepl),Q&&Q.translationDebounce&&typeof Q.translationDebounce=="number"&&(q.state.translationDebounce=Q.translationDebounce);let G=R.immediateTranslationTextCount;n.immediateTranslationTextCount!==G&&(q.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let pe=n.rules,fe;globalThis.PDFViewerApplication?fe=pe.find(K=>K.isPdf):globalThis.immersiveTranslateEbookViewer?fe=pe.find(K=>K.isEbook):globalThis.immersiveTranslateEbookBuilder?fe=pe.find(K=>K.isEbookBuilder):fe=pe.find(K=>ur(t,K)),q.state.translationArea==="body"&&(q.rule.paragraphMinTextCount=1,q.rule.paragraphMinWordCount=1),fe&&fe.isEbookBuilder&&(q.state.translationStartMode="immediate");let re=n.generalRule;if(fe&&(q.rule=Zu(re,fe)),q.rule.selectors.length>0&&(q.rule.paragraphMinTextCount=2,q.rule.paragraphMinWordCount=1),q.state.translationArea==="body"&&q.rule.excludeTags&&(q.rule.excludeTags=q.rule.excludeTags.filter(K=>!q.rule.bodyTranslateTags.includes(K)&&!q.rule.forceTranslateTags.includes(K))),q.rule.mainFrameSelector){let K=document.querySelector(q.rule.mainFrameSelector);K&&(q.mainFrame=K)}return q}function ur(e,t){if(!t)return!1;let{matches:n,excludeMatches:a,selectorMatches:r,excludeSelectorMatches:u}=t;return a&&a.length>0&&On(e,a)?!1:n&&n.length>0&&On(e,n)?!0:u&&u.length>0&&Eo(u)?!1:!!(r&&r.length>0&&Eo(r))}function i3(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:a}=t;return!!(n&&n.length>0&&On(e,n)||a&&a.length>0&&Eo(a))}function f9(e){return typeof e=="number"}p();p();p();function s3(e,t,n,a){let r=t,u=Bc[r]||[],o="";e&&u&&u.length>0&&u.forEach(c=>{let{name:l}=c;if(e&&n&&n[l]){let m=n[l];if(["borderRadius"].includes(l)&&(m+="px"),o+=`--immersive-translate-theme-${r}-${l}: ${m}; -`,t==="marker"&&l==="backgroundColor"&&typeof m=="string"){let{r:g,g:f,b:d}=$m(m);o+=`--immersive-translate-theme-${r}-${l}-rgb: ${g}, ${f}, ${d}; + `);if(l.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(l)}.`)}let m=l[0].translations[0],g=l[0].detectedLanguage;return{text:m.text,from:pm.get(g.language),to:pm.get(m.to)}}p();var ho=new Map;async function Xs(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=Zn(e.body)),ho.has(t))return ho.get(t);let n=ie(e);ho.set(t,n);try{return await n}catch(a){throw a}finally{setTimeout(()=>{ho.delete(t)},3e4)}}async function Em(e){return Xs(e)}async function Tm(e){if(nt()){let n=no();if(n)try{return await n.ask("throttleRequest",e)}catch(a){throw U.error("can not comunicate with root frame, use strict limiter",a),a}else return Xs(e)}else return Xs(e)}p();function Cm(e){let t=e.split(".");if(t.length<=1)throw new Error("invlaid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let a=n.replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(globalThis.atob(a).split("").map(function(i){return"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)}).join("")),u=JSON.parse(r),o=new Date(u.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}var Ta=null,G6=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],e0=new Map(G6),eu=class extends be{static langMap=e0;isSupportList=!0;maxTextLength=1800;static async clearState(){Ta=null,await jr(Tu)}async translate(t){let{text:n,from:a,to:r}=t;return n?await xm(n,a,r):{...t}}async init(){if(!Ta){Ta={};let t=await Or(Tu);t&&(Ta=t)}await wm(Ta)}async translateList(t){let{from:n,to:a,text:r}=t,u=e0.get(n)||"auto",o=e0.get(a)||a;u==="auto"&&(u="");let i=await wm(Ta),s=[];for(let g of r)s.push({Text:g});let c=JSON.stringify(s),l=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${u}&to=${o}&api-version=3.0&includeSentenceLength=true`,m=await ie({url:l,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+i.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin"},body:c,method:"POST"});if(m&&m.length>0&&m[0].translations&&m[0].translations.length>0)return{text:m.map(g=>g.translations[0]?.text||""),from:n,to:a};throw new Error("Microsoft translate error "+JSON.stringify(m))}};async function wm(e){if(e&&e.accessToken&&e.accessTokenExpiresAt){let t=Date.now(),a=new Date(e.accessTokenExpiresAt).getTime();if(a-t>30*1e3)return e;if(a-t>3e3)return vm().catch(r=>{U.error(r)}),e}return vm()}async function vm(){let e=await Tm({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET"}),t=Cm(e),n=t.accessTokenExpiresAt,r=new Date(n).getTime()-Date.now();return Ta=t,await Nr(Tu,t,r-1e3),{accessToken:e,accessTokenExpiresAt:t.accessTokenExpiresAt}}p();var km=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],t0=new Map(km),V6=new Map(km.map(([e,t])=>[t,e])),n0=class extends be{static langMap=t0;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";appid="";key="";isSupportList=!1;maxTextGroupLength=20;constructor(t,n,a){if(super(t,n,a),!t||!t.appid||!t.key)throw new Error("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim()}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:a}=this,{appid:r,key:u}=this,{text:o,from:i,to:s}=t,c=new URLSearchParams({from:t0.get(i)||"auto",to:t0.get(s)||s,q:o,salt:n,appid:r,sign:Zn(r+o+n+u)}),l=new URL(a);l.search=c.toString();let m=await ie({url:l.toString()});if(m.error_code)throw new ot("API_SERVER_ERROR",m.error_msg);let{trans_result:g,from:f}=m,d=g.map(({dst:T})=>T);return{from:V6.get(f)||f,to:s,text:d.join(` +`)}}},Sm=n0;p();p();var Ca=class extends be{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,a){super(t,n,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let u=await this.checkLang(a,n);if(!u)return{text:n,from:a,to:r};a=u;let o=this.handleRequest(n,a,r),i=await Yu(o);return{text:this.handleResponseText(i),from:a,to:r}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let u=await this.checkLang(a,n.join(" "));if(!u)return{text:n,from:a,to:r};a=u;let o=this.handleRequest(n,a,r),i=await Yu(o);return{text:this.handleResponseText(i),from:a,to:r}}handleBaseApiServiceConfig(t){let n=t.request.url,a=t.request.headers||{};return a["content-type"]||(a["content-type"]="application/json"),{url:n,retry:t.request.retry||2,method:t.request.method||"POST",headers:a,body:JSON.stringify(t.request.body)}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,a){let r={...this.requestBaseConfig},u=r?.body||"",o=this.apiServiceConfig.keywords||{};r.body=s(u);let i=r.headers||{};return Object.keys(i).forEach(c=>{i[c]=s(i[c])}),r.headers=i,r.url=s(r.url||""),r;function s(c){return c.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",a).replaceAll(/{([a-z:_]+)}/gi,(m,g)=>{let[f,d]=g.split(":"),b=o[f];return d==="random"?Y6(b.split(",")):b})}}handleResponseText(t){let n=this.apiServiceConfig.response,a=t,r=n.text.split(".");for(let u of r){if(Array.isArray(a))return a=a.map(o=>o[u]),a;a=a[u]}return a}detectLanguageRemotely(t){return Ea.detectLanguageRemotelyByTransmart(t)}};function Y6(e){let t=Math.floor(Math.random()*e.length);return e[t]}var a0=class extends Ca{constructor(t,n,a){if(!t?.token)throw new Error("token are required");super({...t,isSupportList:!0,langs:[["zh-CN","zh"],["en","en"],["ja","ja"]],keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,a)}},Am=a0;p();var J6=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],bo=new Map(J6),r0=class extends be{static langMap=bo;token="ssdj273ksdiwi923bsd9";constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t;if(!bo.get(r))throw new Error(`Unsupported language: ${r}`);if(a==="auto")throw new Error("Unsupported language: auto");let o=n;return{text:(await ie({retry:2,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${bo.get(a)||"auto"}2${bo.get(r)}`})})).target,from:a,to:r}}},Dm=r0;p();var Lm=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],u0=new Map(Lm),Q6=new Map(Lm.map(([e,t])=>[t,e]));function Z6(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var o0=class extends be{static langMap=u0;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,a){if(super(t,n,a),!t||!t.appId||!t.appSecret)throw new Error("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,u=X6(32),o=Math.round(new Date().getTime()/1e3),i=this.appId+Z6(n)+u+o+this.appSecret,s=await hn(i),c={q:n,appKey:this.appId,salt:u.toString(),from:u0.get(a)||"auto",to:u0.get(r)||r,sign:s,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(c.domain=this.domain),this.vocabId&&(c.vocabId=this.vocabId);let l=new URLSearchParams(c),g=await ie({url:"https://openapi.youdao.com/api",method:"POST",body:l.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"}});if(!g.translation)throw new Error(JSON.stringify(g));let f=g.l,[d,b]=f.split("2");return{text:g.translation.join(` +`),from:Q6.get(d),to:r}}};function X6(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r[t,e]));var s0=class extends be{static langMap=i0;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,u={q:n,from:i0.get(a)||"auto",to:i0.get(r)||r},o=new URLSearchParams(u),i=await ie({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"}});if(i&&i.translation)return{text:i.translation.join(` +`),from:a,to:r};throw new Error("Youdao translation failed: "+JSON.stringify(i))}},Fm=s0;p();var tu=class extends Ca{constructor(t,n,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(r=>[r,r]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||ga,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,a)}};var e9={mock:Qa,mock2:Qa,custom:tu,google:xa,transmart:Ea,deepl:tm,volc:dm,volcAlpha:Zr,bing:eu,tencent:$r,tenAlpha:Kr,baidu:Sm,caiyun:Am,cai:Dm,openl:co,youdao:Pm,you:Fm,d:Ja,dpro:Ja,deeplx:Xr,niu:nm,azure:am,openai:um,chatgpt:Yr,papago:rm,aliyun:Qr},aa={};Object.keys(Fn).forEach(e=>{aa[e]={...Fn[e],class:e9[e]}});function _m(e,t){let n=en;if(aa[e]&&aa[e].class&&aa[e].class.langMap&&aa[e].class.langMap.size>0){let a=aa[e].class.langMap,r=n.filter(u=>a.get(u));return r.includes(t)||r.unshift("placeholder"),r}else return en}async function wa(e,t){if(!e.text)return e;let n=await In({sentences:[e]},t);if(n.sentences.length>0)return{...e,...n.sentences[0]};throw new ot("translateFailed","translate failed")}async function Bm(e,t){for(let n of e)try{return await wa({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n}),n}catch{continue}return null}async function l0(e){let{config:t,translationService:n}=e,a=t.translationGeneralConfig,r=t.translationServices,u=n,o=r[u]||{},i=Zt(e.user),s=new aa[u].class(o,a,{translationService:u,userToken:e.user?.token,isPro:i}),c=s.getDefaultRateLimit();c&&(o&&!o.limit&&(o.limit=c.limit),o&&!o.interval&&(o.interval=c.interval)),u==="deepl"&&o&&o.provider==="pro"&&(o.limitForImmersiveDeepl?o.limit=o.limitForImmersiveDeepl:c&&(o.limit=c.limit)),await Md(u,o),await s.init()}async function In(e,t,n){if(!e.sentences.length)return{...e};let{config:a,translationService:r,state:u}=t,o=a.translationGeneralConfig,i=a.translationServices,s=r,c=i[s]||{};s==="openai"&&(e.sentences=e.sentences.map(C=>({...C,from:"auto"})));let l=[],m={sentences:Array(e.sentences.length)},g=e.sentences.length,f=-1;if(u.cache)for(let C of e.sentences){f++;let v=s;s==="openl"&&(v=s+"-"+c.codename||co.DEFAULT_CODENAME);let O=null;try{O=await Mu(Rm({originalText:C.text,from:C.from,to:C.to,service:v}),200)}catch(B){U.warn("query cache DB error, but it's ok",B)}if(O){let B={...C,text:O.translatedText};m.sentences[f]=B,n&&n(null,B,C)}else l.push(C)}else l.push(...e.sentences);let d=l.length;if(g-d>0&&U.debug(`use ${g-d} sentences from cache`),!l.length)return m;let b,T=Zt(t.user);try{b=new aa[s].class(c,o,{translationService:s,userToken:t.user?.token,isPro:T}),await b.init()}catch(C){if(n)for(let v of l)n(C,null,v);throw C}let h=await b.multipleTranslate({sentences:l},c,(C,v,O)=>{if(n&&n(C,v,O),!C&&v&&!s.startsWith("mock")&&u.cache){let B=s;s==="openl"&&(B=s+"-"+c.codename||co.DEFAULT_CODENAME),u.cache&&Mu(Im({translatedText:v.text,from:O.from,to:O.to,detectedFrom:v.from,key:Zn(O.text),service:B}),3e3).catch(x=>{U.warn("set cache DB error",x)})}});for(let C of h.sentences){let v=m.sentences.findIndex(O=>!O);if(v===-1)throw new ot("translateFailed","can not match the result");m.sentences[v]=C}return m}p();var yo=!1,t9=fe();function Om(e,t){let n=[];for(let a of t){let r=e.querySelectorAll(a);for(let u of r)n.push(u)}return n}function n9(e,t){let n=function(u){return u.nodeType===Node.ELEMENT_NODE||u.nodeType===Node.TEXT_NODE?u.nodeType===Node.ELEMENT_NODE&&Nm(u,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),r=!0;for(;a.nextNode();){let u=a.currentNode;if(u.nodeType===Node.ELEMENT_NODE){if(ra(u,Su)){if(r===!0)return!0;continue}if(nu(u.nodeName,t.inlineTags))return!0;if(!c0(u,t))return!1}}return!0}function d0(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(nu(e.nodeName,n)||c0(e,t)){if(ra(e,Dc)||nu(e.nodeName,["BR"]))return!1;if(ra(e,Su))return!0;if(c0(e,t)){let a=globalThis.getComputedStyle(e);if(a.display==="block"||a.display==="flex")return!1}return n9(e,t)}else return ra(e,Su);return!1}function Nm(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&ra(e,Ac,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&ra(e,Cc))return!1;let{stayOriginalTags:a,excludeTags:r}=t,u=[];return n&&r&&r.length>0?u=r||[]:u=r.filter(o=>!a.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||nu(e.nodeName,u))}function xo(e,t,n){let a=e.trim();return a.length>=t||a.split(" ").filter(o=>o.trim()!=="").length>=n||!zm(a)&&a.length>=n}function jm(e,t,n){let a=e.trim();if(a.length<=t)return!0;if(zm(a)){if(a.split(" ").length<=n)return!0}else if(a.length<=n)return!0;return!1}function zm(e){for(let t=0;t127)return!1;return!0}function Um(e){if(e&&e.includes("://"))try{return new URL(e),!0}catch{return!1}else return!1}function Hm(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function qm(e){return e?/^[-+]?[0-9]*\.?[0-9]+%?$/.test(e):!1}function Wm(e){return!!(e&&e.startsWith("#")&&e.indexOf(" ")===-1)}function $m(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function ra(e,t,n=!1){return m0(e,t,"1",n)}function m0(e,t,n,a=!1){return yo&&!a?e[It]?!!(e[It]&&e[It][t]===n):!1:e.dataset[t]===n}function er(e){return(e.innerText||e.textContent||"").trim()}function g0(e){let t=e.querySelectorAll("iframe"),n="";for(let a=0;a2e3))break}return n}function Eo(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function at(e,t,n,a=!1,r=!1){e.isContentEditable&&!r||(yo&&!a?(e.dataset[Sr]||(e.dataset[Sr]="1"),e[It]||(e[It]={}),e[It][t]||(e[It][t]=n)):(e.dataset[Sr]||(e.dataset[Sr]="1"),e.dataset[t]!==n&&(e.dataset[t]=n)))}function To(e,t,n=!1){if(yo&&!n){if(!e[It]||!e[It][t])return;delete e[It][t]}else delete e.dataset[t]}function tr(e,t,n=!1){return yo&&!n?!e[It]||!e[It][t]?void 0:e[It][t]:e.dataset[t]}function c0(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!nu(e.nodeName,n)}function nr(e){let{config:t}=e,n=ga;return t.translationServices[e.translationService]&&t.translationServices[e.translationService].placeholderDelimiters&&(n=t.translationServices[e.translationService].placeholderDelimiters),n}function ht(){if(!globalThis||!globalThis.location)return"https://example.com";if(!nt())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let a="";try{a=globalThis.parent.location.href}catch{}return a||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function va(e,t,n){if(e instanceof ShadowRoot){try{e.appendChild(document.createElement("style")).textContent=t}catch(a){U.warn("injectCSS failed, rootDocument"+a?.message,e)}return}if(e&&e.head&&e.head.appendChild){let a=e.createElement("style");if(n){let r=e.querySelector(`style[data-id="${n}"]`);r&&r.remove(),a.dataset.id=n}a.textContent=t,e.head.appendChild(a)}else if(e){let a=document.createElement("head"),r=document.createElement("style");r.textContent=t,a.appendChild(r),e.appendChild(a)}else U.warn("injectCSS failed, rootDocument does not have head node",e)}function ar(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(t9){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!document.querySelector("meta[name='immersive-translate-ebook-viewer']")||!t.startsWith("blob:http");return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function nu(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function Km(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),a=parseInt(t.substring(2,4),16),r=parseInt(t.substring(4,6),16);return{r:n,g:a,b:r}}function Gm(e,t,n,a){if(a.document.caretPositionFromPoint){let r=a.document.caretPositionFromPoint(e,t);if(r){let u=a.document.createRange(),o=r.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||Nm(o,n,!0))return null;try{u.setStart(o,r.offset),u.setEnd(o,r.offset)}catch(i){return U.warn("getRangeFromPoint error",i),null}return u}return null}else return a.document.caretRangeFromPoint?a.document.caretRangeFromPoint(e,t):null}function Vm(e,t,n){let a=0,r=(u,o,i,s)=>{if(++a>100||s===u)return u;let c=u.shadowRoot;if(!c||typeof c.elementFromPoint!="function")return u;let l=c.elementFromPoint(o,i);return l?r(l,o,i,u):u};return r(e,t,n)}p();p();var a9=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function yn(e,t){if(t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function p0(e,t,n){let{blockSelectors:a,extraBlockSelectors:r,extraInlineSelectors:u}=t;if(yn(e,u))return!1;if(yn(e,r)||e.nodeName.toLowerCase()==="br")return!0;let s=null;return e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(s=e.parentNode.immersiveTranslateComputedStyle),s&&s.display&&s.display==="inline-flex"?!1:n&&n.display?!!a9.includes(n.display):yn(e,a)}var Dt=yn;function ka(e){return!!e.shadowRoot}function ua(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function au(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Co(e){let t=ga;return e&&(t=e),t}function wo(e,t){return $n(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function r9(e){let{rule:t}=e,n=e.config.loadingTheme;return` <${t.targetWrapperTag} class="${J}-loading-${n} notranslate">`}function ru(e,t){let n=e.rule,a=document.createElement(n.targetWrapperTag);a.classList.add("notranslate",Wt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),at(a,kc,t.toString());let r=r9(e);return a.append(Le.sanitize(r,{RETURN_DOM_FRAGMENT:!0})),a}function rr(e,t){return e.querySelector(`[${Bi}='${t}']`)}function Ym(){document.querySelectorAll(`[${Bi}]`).forEach(t=>{t.remove()})}function Jm(){document.querySelectorAll(`.${Wt}-error`).forEach(t=>{t.remove()})}function Qm(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{ar(n)&&t.push(n)}),t}function Zm(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:a,delimiters:r,text:u}=e,o=new RegExp(`${r[0]}(\\d+)${r[1]}`,"gi");if(r.length>2){let s=r[2];o=new RegExp(`<${s}(\\d+)>(.*?)`,"gi")}let i=u.trim();return i=i.replace(o,""),i=i.trim(),i===""||i.length===1&&i.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(u)||i.includes("")||i.includes("< styles>")||$m(i)||Um(i)||Wm(i)||Hm(i)||qm(i)||o.test(i)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(i)?!1:xo(u,n,a)}function xn(e){return e.nodeType===Node.ELEMENT_NODE}function Xm(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}function e3(e){try{let t=Math.floor((new Date-new Date(e))/1e3);return t<60?`${t} \u79D2\u524D`:t<3600?`${Math.floor(t/60)} \u5206\u949F\u524D`:t<86400?`${Math.floor(t/3600)} \u5C0F\u65F6\u524D`:`${Math.floor(t/86400)} \u5929\u524D`}catch{return e}}async function t3(e){let n=Qe().INSTALL_FROM,a=an(),r=await At("installedAt",""),u=await At("fakeUserId","");return{installFrom:n,version:a,installedAt:r,interfaceLang:e,deviceId:u}}var u9=1e5;function oa(e){let{onParagraph:t,filterRule:n,id:a}=e;n=o9(n);let{stayOriginalSelectors:r,globalStyles:u,selectors:o,isTransformPreTagNewLine:i,lineBreakMaxTextCount:s,globalAttributes:c,isModifyImage:l,skipEditableCheck:m}=n,g={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},f=!1,d=null;function b(B){let{container:x,onFrame:L,onIgnoreElement:M,id:w}=B,E=document.createTreeWalker(x,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,A=>{let _=F(A);return _==NodeFilter.FILTER_ACCEPT?zt.mark(A,w,m):_==NodeFilter.FILTER_REJECT,_}),I=x;if(F(I)===NodeFilter.FILTER_REJECT)return;for(zt.mark(I,w,m);I;){if(o&&o.length>0){let{currentNode:A,isMatchedSelection:_}=T(E,I,o);if(A)I=A;else break;if(!_)continue}if(I.nodeType===Node.ELEMENT_NODE||I.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let A=I;if(A.nodeName==="IFRAME"){L&&L(A),h(),f0(g,!0),I=E.nextNode();continue}A.nodeType===Node.ELEMENT_NODE&&(u&&b0(A,u),c&&x0(A,c));let _=p0(A,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},A.immersiveTranslateComputedStyle||null);if(Dt(A,r)&&!_){C(A);let D=null;for(;!(D=E.nextSibling())&&E.parentNode(););I=D;continue}let j=ka(A);(!n3(g,A)||_)&&(h(),A.childNodes.length>0&&v(g,A,A.immersiveTranslateComputedStyle||null)),j&&A.shadowRoot?.mode==="open"&&(_?L?.(A.shadowRoot):b({...B,container:A.shadowRoot})),A.nodeType===Node.ELEMENT_NODE&&A.nodeName==="PRE"&&i&&c9(A)}else if(I.nodeType===Node.TEXT_NODE)C(I);else throw new Error("should not be here");I=E.nextNode(),g.commonAncestorContainer&&I&&I.parentNode===g.commonAncestorContainer&&(g._currentStacks=[]),g.commonAncestorContainer&&I&&I.nodeType===Node.ELEMENT_NODE&&g._currentStacks.push(I)}function F(A){if(A.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(xn(A)){if(c){let D=Object.keys(c);if(D.length>0&&Dt(A,D))for(let S of D){let R=c[S];if(A.matches(S)){let $=c[S],z=Object.keys($);for(let Y of z){let q=$[Y];A.getAttribute(Y)!==q&&(q===null?A.removeAttribute(Y):A.setAttribute(Y,q))}break}}}if(!B.force&&zt.isMarked(A,w)||Xm(A,w)||E0(A,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,stayOriginalSelectors:r})||A.nodeName==="IFRAME"&&!ar(A))return NodeFilter.FILTER_REJECT;let _=A.getBoundingClientRect(),{width:j,height:N}=_;if(A.nodeType===Node.ELEMENT_NODE){let D=window.getComputedStyle(A);if(A.immersiveTranslateComputedStyle={display:D.display,whiteSpace:D.whiteSpace,left:_.left+"px",right:_.right+"px",top:_.top+"px",bottom:_.bottom+"px"},y0(A.immersiveTranslateComputedStyle))return M&&M(A),NodeFilter.FILTER_REJECT;let y=p0(A,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},A.immersiveTranslateComputedStyle||null);if(Dt(A,r)&&y)return NodeFilter.FILTER_REJECT}return A.nodeName==="IMG"&&(j>48&&N>48?A.immersiveTranslateComputedStyle={display:"block"}:j>0&&N>0&&l!==!1&&(A.setAttribute("width",j),A.setAttribute("height",N))),!A.childNodes||A.childNodes&&A.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!g.isPreWhitespace&&(j>0&&j<4||N>0&&N<4)&&(A.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(A.nodeType===Node.TEXT_NODE){let _=A.textContent?.trim();if(!_)return g.isPreWhitespace?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let j=A.parentNode;if(j.getBoundingClientRect){let{width:N,height:D}=j.getBoundingClientRect();if(N>0&&N<4||D>0&&D<4)return NodeFilter.FILTER_REJECT}return s>0&&_.length>=s&&h0(A,s),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}b(e),g&&g.commonAncestorContainer&&g.flatNodes.length>0&&h();function T(B,x,L){let M=x.immersiveTranslateComputedStyle||null;if(d){if(!d.contains(x))if(f=!1,x&&x.nodeType===Node.ELEMENT_NODE)if(vo(x,L))f=!0,d=x,h(),v(g,d,M);else return f=!1,x=B.nextNode(),{currentNode:x,isMatchedSelection:f};else return f=!1,x=B.nextNode(),{currentNode:x,isMatchedSelection:f}}else if(x&&x.nodeType===Node.ELEMENT_NODE)if(vo(x,L))f=!0,d=x,h(),v(g,d,M);else return f=!1,x=B.nextNode(),{currentNode:x,isMatchedSelection:f};else return f=!1,x=B.nextNode(),{currentNode:x,isMatchedSelection:f};return{currentNode:x,isMatchedSelection:!0}}function h(){let B=l9(g,a);B&&t&&t(B),f0(g)}function C(B){if(!n3(g,B)){h(),f0(g);let x=B.parentNode;x&&v(g,x,x.computedStyle)}g.flatNodes.push(B)}function v(B,x,L){B.commonAncestorContainer=x;let M=O(L);B.isPreWhitespace=M}function O(B){return B&&B.whiteSpace&&B.whiteSpace.startsWith("pre")||B&&B.whiteSpace==="break-spaces"||!1}}function n3(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=ka(t));let a=s9(e),r=!0;return!n&&!a&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?r=!0:e.commonAncestorContainer&&(r=!1,e._currentStacks=[])),r}function o9(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let a=n!=="iframe";return t?a&&n!=="pre":a}),e}function i9(e,t,n){if(t){for(let a of t.childNodes)if(a.contains(n))return a}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function b0(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Dt(e,n))for(let r of n){let u=t[r];if(e.matches(r)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+u;break}}}}function s9(e){return e&&e._currentStacks?e._currentStacks.some(t=>ka(t)):!1}function l9(e,t){let{flatNodes:n,commonAncestorContainer:a}=e;if(a&&n.length>0){if(!n.map(g=>g.textContent?.trim()||"").join(""))return null;if(n.length===1)return{ctxId:t,stepState:1,commonAncestorContainer:n[0].parentNode,rootNodes:[n[0]],flatNodes:n,isPreWhitespace:e.isPreWhitespace,variables:{}};let u=d9(n,a);u||(u=a);let o=[];for(let g of n){let f=i9(e,u,g);f&&(o.includes(f)||o.push(f))}if(o.length<1)return null;let i=o[0],s=o[o.length-1],c=[],l=i,m=0;for(;l&&(c.push(l),l!==s);){if(m++,m>u9){U.warn("loop too many times for convert root nodes, break");break}l=l.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:n,commonAncestorContainer:u,variables:{},isPreWhitespace:e.isPreWhitespace}}else return null}function f0(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function y0(e){let t=e.top?parseInt(e.top):0,n=e.left?parseInt(e.left):0,a=e.right?parseInt(e.right):0,r=e.bottom?parseInt(e.bottom):0;return isNaN(t)&&(t=0),isNaN(n)&&(n=0),isNaN(a)&&(a=0),isNaN(r)&&(r=0),e.display==="none"||t<-1e3||n<-1e3||a<-1e3||r<-1e3}var zt={_marked_key:"immersive_translate_walked",isMarked(e,t){return m0(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||ka(e)))return To(e,this._marked_key)},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||ka(e)))return at(e,this._marked_key,t,!1,n)},markWalk(e,t,n){if(!e||e.nodeType!==Node.ELEMENT_NODE||this.isSkipMarkEle(e))return;let a=tr(e,"markWalk")||"";return at(e,"markWalk",a+","+t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||ka(e)):!1}};function c9(e){let n=e.innerHTML.replace(/\n\n/g,"
");e.innerHTML=Le.sanitize(n)}function d9(e,t){if(!e.length)return null;let n=e.map(a=>{let r=new Set;for(;(a=a.parentNode)&&(r.add(a),a!==t););return r});for(let a of n[0])if((a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&n.every(r=>r.has(a)))return a;return null}function h0(e,t){let n=e.textContent||"";if(n.trim().length<=t)return;let u=[". ","? ","! ","\u3002","\uFF1F","\uFF01"].reduce((o,i)=>{let s=n.lastIndexOf(i,t);return s>o?s:o},-1);if(u>1){let o=n[u-1]||"",i=n[u-2]||"",s=n[u+1]||"";o==="."||s==="."||s===")"||i==="."&&o==="S"||i.toUpperCase()==="M"&&(o.toUpperCase()==="R"||o.toUpperCase()==="S")?u=-1:isNaN(Number(o))||(u=-1)}if(u===-1)n.length>t+20&&h0(e,t+20);else{let o=n.slice(u+1);u++,o.startsWith(" ")&&u++;let i=e.splitText(u),s=document.createElement("br");i.parentNode?.insertBefore(s,i),u+10)for(let a of n){let r=t[a],u=Object.keys(r),o=Om(e,[a]);for(let i of o)for(let s of u){let c=r[s];i.getAttribute(s)!==c&&(c===null?i.removeAttribute(s):i.setAttribute(s,c))}}}function r3(e,t,n,a,r,u){let o=Object.keys(t);if(o.length>0)for(let i of o){let s=t[i],c=Object.keys(s),l=e.querySelector(i);if(l)for(let m of c){let g=s[m];if(m==="translate"&&g==="no"){let d=l.innerText||l.textContent||"";if(!d.trim()||m9(l,r,u)||!jm(d,n,a))continue}l.getAttribute(m)!==g&&(g===null?l.removeAttribute(m):l.setAttribute(m,g))}}}function x0(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Dt(e,n))for(let r of n){let u=t[r];if(e.matches(r)){let o=t[r],i=Object.keys(o);for(let s of i){let c=o[s];e.getAttribute(s)!==c&&(c===null?e.removeAttribute(s):e.setAttribute(s,c))}break}}}}function E0(e,t){return Dt(e,t.excludeSelectors||[])?Dt(e,t.selectors||[])?!1:!Dt(e,t.stayOriginalSelectors||[]):!1}function vo(e,t){if(t.length===0)return!1;let n=t.filter(a=>!a.endsWith("*")).map(a=>a+" *");return Dt(e,t.concat(n))}function m9(e,t,n){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,r=>NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let r=a.currentNode;if(r.nodeType===Node.TEXT_NODE&&parent){let u=r.textContent||"";if(u.includes("Copyright"))continue;if(xo(u,t,n))return!0}}return!1}p();p();var u3=["*://*/*","*","*://*"],i3="immersive-translate-wildcard-placeholder.com";function T0(e,t){let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(o=>u3.includes(o)))return e;let a=new URL(e);a.hash="",a.search="";let r=a.href,u=a.hostname;if(n&&n.length>0){let o=n.find(i=>{let s=i;if(i===u)return!0;if(u3.includes(i))return!0;if(!i.includes("*")&&i.includes("://")){try{let c=new URL(i);return c.pathname==="/"&&!i.endsWith("/")?c.hostname===u:p9(r,i)}catch{}return!1}else{let c,l=i;if(i.includes("://")){let T=i.split("://");c=T[0],c==="*"&&T.length>1&&(c="*",i="https://"+T[1])}else c="*",i="https://"+i;let m=i.replace(/\*/g,i3),g;try{g=new URL(m)}catch{return U.debug("invalid match pattern",m,"raw match value:",l),!1}let f=g.hostname,d=g.pathname;d==="/"&&(l.replace("://","").includes("/")||(d="/*"));let b=g9(c+":",o3(f),o3(d));if(b){let T=new URL(r);return T.port="",b.test(T.href)}else return!1}});if(o)return o}return null}function o3(e){return e.replaceAll(i3,"*")}function g9(e,t,n){let a="^";return e==="*:"?a+="(http:|https:|file:)":a+=e,a+="//",t&&(e==="file:"||(t==="*"?a+="[^/]+?":(t.match(/^\*\./)&&(a+="[^/]*?",t=t.substring(2)),a+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?a+="(/.*)?":n.includes("*")?(a+=n.replace(/\*/g,".*?"),a+="/?"):a+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):a+="/?",a+="$",new RegExp(a)}function On(e,t){return T0(e,t)!==null}function p9(e,t){let n=new URL(e),a=new URL(t);return n.hostname===a.hostname&&n.pathname===a.pathname&&n.protocol===a.protocol&&n.port===a.port}async function Sa(e){let{url:t,config:n,state:a}=e,r=new URL(t),u="auto",{translationParagraphLanguagePattern:o,translationService:i,translationServices:s,translationTheme:c,translationThemePatterns:l,translationUrlPattern:m,targetLanguage:g,sourceLanguageUrlPattern:f,immediateTranslationPattern:d}=n,b=ur(t,o),T=ur(t,d),h=i,C=Object.keys(s);for(let K of C){let oe=s[K];if(ur(t,oe)){h=K;break}}let v=c,O=Object.keys(l);for(let K of O){let oe=l[K];if(oe&&ur(t,oe)){v=K;break}}let B=ur(t,m),x=s3(t,m);x||(x=On(t,Nc)),x||(x=On(t,n.blockUrls));let L=s3(t,n.inputTranslationUrlPattern);L||(L=On(t,n.inputTranslationBlockUrls));let M=On(t,n.mutationBlockUrls),w=Object.keys(f),E={};for(let K of w){let oe=f[K];if(oe&&oe.matches)for(let me of oe.matches)E[me]=K}let I=Object.keys(E),F=T0(t,I);F&&(u=E[F]??"auto",E[F]&&E[F]!=="auto"&&rn(E[F]));let A=g||"zh-CN",_=r.hostname,j=await hn(_),N=r.pathname+r.search+r.hash,D=await hn(N),y=`https://${j}.com/${D}`,S=await Jn(),R=await gd(),$=n.translationStartMode;$==="dynamic"&&T&&($="immediate");let z=h;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(z=n.inputTranslationService);let Y=h;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(Y=n.mouseHoverTranslationService);let q={targetLanguage:A,config:n,translationService:h,inputTranslationService:z,mouseHoverTranslationService:Y,isTranslateUrl:B,sourceLanguage:u,mainFrame:document.body,isTranslateExcludeUrl:x,isMutationTranslationExcludeUrl:M,isInputTranslationExcludeUrl:L,rule:n.generalRule,url:t,encryptedUrl:y,state:a?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:$,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:v},a):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:$,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:v},localConfig:S},ae=await jt.get(Ot,null);ae&&(q.user=ae),q.state.translationArea==="body"&&(q.config.generalRule.excludeTags=q.config.generalRule.excludeTags.filter(K=>!q.config.generalRule.bodyTranslateTags.includes(K)),q.config.generalRule.additionalExcludeSelectors=q.config.generalRule.additionalExcludeSelectors.filter(K=>K!==".btn"));let Q=n.translationServices[q.translationService]||{};Q.immediateTranslationTextCount!==void 0&&f9(Q.immediateTranslationTextCount)&&Q.immediateTranslationTextCount>=0&&(q.state.immediateTranslationTextCount=Q.immediateTranslationTextCount),q.translationService==="deepl"&&(Q&&Q.authKey&&Q.authKey.startsWith("immersive_")||Q&&Q.provider==="pro"&&q.user?.token)&&Q.immediateTranslationTextCountForImmersiveDeepl!==void 0&&Q.immediateTranslationTextCountForImmersiveDeepl>=0&&(q.state.immediateTranslationTextCount=Q.immediateTranslationTextCountForImmersiveDeepl),Q&&Q.translationDebounce&&typeof Q.translationDebounce=="number"&&(q.state.translationDebounce=Q.translationDebounce);let G=R.immediateTranslationTextCount;n.immediateTranslationTextCount!==G&&(q.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let pe=n.rules,he;globalThis.PDFViewerApplication?he=pe.find(K=>K.isPdf):globalThis.immersiveTranslateEbookViewer?he=pe.find(K=>K.isEbook):globalThis.immersiveTranslateEbookBuilder?he=pe.find(K=>K.isEbookBuilder):he=pe.find(K=>ur(t,K)),q.state.translationArea==="body"&&(q.rule.paragraphMinTextCount=1,q.rule.paragraphMinWordCount=1),he&&he.isEbookBuilder&&(q.state.translationStartMode="immediate");let re=n.generalRule;if(he&&(q.rule=Qu(re,he)),q.rule.selectors.length>0&&(q.rule.paragraphMinTextCount=2,q.rule.paragraphMinWordCount=1),q.state.translationArea==="body"&&q.rule.excludeTags&&(q.rule.excludeTags=q.rule.excludeTags.filter(K=>!q.rule.bodyTranslateTags.includes(K)&&!q.rule.forceTranslateTags.includes(K))),q.rule.mainFrameSelector){let K=document.querySelector(q.rule.mainFrameSelector);K&&(q.mainFrame=K)}return q}function ur(e,t){if(!t)return!1;let{matches:n,excludeMatches:a,selectorMatches:r,excludeSelectorMatches:u}=t;return a&&a.length>0&&On(e,a)?!1:n&&n.length>0&&On(e,n)?!0:u&&u.length>0&&Eo(u)?!1:!!(r&&r.length>0&&Eo(r))}function s3(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:a}=t;return!!(n&&n.length>0&&On(e,n)||a&&a.length>0&&Eo(a))}function f9(e){return typeof e=="number"}p();p();p();function l3(e,t,n,a){let r=t,u=Bc[r]||[],o="";e&&u&&u.length>0&&u.forEach(c=>{let{name:l}=c;if(e&&n&&n[l]){let m=n[l];if(["borderRadius"].includes(l)&&(m+="px"),o+=`--immersive-translate-theme-${r}-${l}: ${m}; +`,t==="marker"&&l==="backgroundColor"&&typeof m=="string"){let{r:g,g:f,b:d}=Km(m);o+=`--immersive-translate-theme-${r}-${l}-rgb: ${g}, ${f}, ${d}; `}}});let i="";if(n&&n.textColor){let c=n.textColor;i+=` .immersive-translate-target-translation-theme-${r}-inner{color: ${c};} `}if(n&&n.zoom){let c=n.zoom;i+=` .immersive-translate-target-translation-theme-${r}-inner{font-size: max(13px, ${c}%);} `}let s="";o&&(s=`:root { ${o}} -`),i&&(s+=i),s?wa(e,s,"immersive-translate-user-custom-style"):a&&wa(e,"","immersive-translate-user-custom-style")}function or(e,t){let a=Qe().IMMERSIVE_TRANSLATE_INJECTED_CSS;wa(e,a,"immersive-translate-default-injected-css");let r=t.config.translationThemePatterns||{},u=t.state.translationTheme,o=r[u]||{};s3(e,u,o);let i="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?i+=t.rule.injectedCss.join(` +`),i&&(s+=i),s?va(e,s,"immersive-translate-user-custom-style"):a&&va(e,"","immersive-translate-user-custom-style")}function or(e,t){let a=Qe().IMMERSIVE_TRANSLATE_INJECTED_CSS;va(e,a,"immersive-translate-default-injected-css");let r=t.config.translationThemePatterns||{},u=t.state.translationTheme,o=r[u]||{};l3(e,u,o);let i="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?i+=t.rule.injectedCss.join(` `):t.rule.injectedCss&&(i+=t.rule.injectedCss),t.rule.additionalInjectedCss&&Array.isArray(t.rule.additionalInjectedCss)&&t.rule.additionalInjectedCss.length>0?i+=` `+t.rule.additionalInjectedCss.join(` `):t.rule.additionalInjectedCss&&(i+=` -`+t.rule.additionalInjectedCss)),i&&wa(e,i,"immersive-translate-dynamic-injected-css")}p();async function l3(){let e="auto",t=[pa(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await Ke({text:er(document.body),pageLangs:t})),e}p();p();function c3(e,t){return[e,!e||e.endsWith("/")?"":"/",t,".json"].join("")}function C0(e,t){let n=e;return t&&Object.keys(t).forEach(a=>{let r=t[a];if(r===void 0)return;let u=h9(a);if(typeof r=="object"||u){let o=r;u&&typeof o=="string"&&(o={tag:"a",href:o});let i=`<${a}>`,s=n.indexOf(i);if(s!==-1){let c=o.tag||"a",l=n.indexOf(``);if(l!==-1){let m=n.substring(s+i.length,l),g=Object.keys(o).filter(f=>f!=="tag").map(f=>`${f}="${o[f]}"`).join(" ");n=n.replace(`${i}${m}`,`<${c} ${g}>${m}`)}}}else if(r){let o=new RegExp("{"+a+"}","gm");n=n.replace(o,r.toString())}}),n}function ou(e,t,n){let a=e[t];if(!a)return n;let r=n.split("."),u="";do{u+=r.shift();let o=a[u];o!==void 0&&(typeof o=="object"||!r.length)?(a=o,u=""):r.length?u+=".":a=n}while(r.length);return a}function Nn(e,t,n,a,r){if(!e.hasOwnProperty(n))return t;let u=ou(e,n,t);return u===t&&n!==a&&(u=ou(e,a,t)),C0(u,r)}function h9(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}p();p();function w0(e,t,n=[],a){let r=["notranslate"];return a&&r.push(_c),e&&(r.push(`${J}-target-translation-theme-${e}`),t?r.push(`${Ii}-theme-${e}`):r.push(`${Ri}-theme-${e}`)),n.length>0&&r.push(...n),t?r.push(Ii):r.push(Ri),r}function v0(e){let t=["notranslate",Mc];return e&&t.push(`${J}-target-translation-theme-${e}-inner`),t}function d3(e,t,n){let{rule:a,state:r}=n,{translationTheme:u}=r,{variables:o,isVertical:i}=e;o=o||[];let{text:s}=t,{wrapperPrefix:c,wrapperSuffix:l}=a,m=nr(n),g="afterend",f=m[0],d=m[1],b=`${f}(\\d+)${d}`,T=new RegExp(b,"g"),h=Le.sanitize(s);o.length>0&&(h=h.replace(T,B=>{let x=h.indexOf(B),L=h[x-1]===" ",M=h[x+B.length]===" ",w=B.slice(m[0].length,-m[1].length),E=Number(w);if(isNaN(E))return B;let I=o[Number(E)];if(I&&I.type==="element"){let F=I.value.outerHTML;return L||(F=" "+F),M||(F=F+" "),F}else U.error("variable type not supported",I,B);return B}));let C=w0(u,e.inline,a.translationClasses||[],e.preWhitespace);i&&C.push(Fc);let v=v0(u),O="";return a.translationBlockStyle&&(O=`style="${a.translationBlockStyle}"`),h=`<${n.rule.targetWrapperTag} ${O} class="${C.join(" ")}" ${wn}="1"><${a.targetWrapperTag} class="${v.join(" ")}" ${wn}="1">${h}`,e.inline||(c==="smart"?h=`
${h}`:h=`${c}${h}`),e.inline&&(c!=="smart"?h=`${c}${h}`:h=`<${a.targetWrapperTag} class="notranslate" ${wn}="1"> ${h}`),l==="smart"?h=`${h}`:h=`${h}${l}`,{html:h,position:g}}function ko(e,t){let n=null,{stayOriginalSelectors:a,delimiters:r,isPreWhitespace:u}=t,o=[],i={};for(let s=0;s2&&(T=`<${r[2]}${b}>`),i[b]=c,o.push({text:T,type:"variable"})}else o.push({text:c.textContent||"",type:"text"});else{let d=c.textContent||"";m&&(d=ua(k0(c))),o.push({text:d,type:"text"})}else if(c.nodeType===Node.ELEMENT_NODE)if(c&&Dt(c,a)){let b=Object.keys(i).length,T=`${r[0]}${b}${r[1]}`;r.length>2&&(T=`<${r[2]}${b}>`),i[b]=c;let h=S0(o).endsWith(" ")?" ":"",C=ua(c.innerText||c.textContent),v=ua(c.nextSibling).startsWith(" ")?" ":"",O=ru(h+C+v),B=O[0]+T+O[1];if(h===" ")B=B.trimStart();else if(!B.startsWith(" ")){let x=ru(c.previousSibling)[1];x===""&&(x=" "),B=x+B}o.push({text:B,type:"variable"})}else{let d=S0(o).endsWith(" ")?" ":"",b=ua(c.innerText||c.textContent);m&&(b=ua(k0(c)));let T=ua(c.nextSibling).startsWith(" ")?" ":"",h=ru(d+b+T),C=h[0]+(c.innerText?.trim()||c.textContent?.trim()||"")+h[1];if(d===" ")C=C.trimStart();else{let v=ru(c.previousSibling)[1];v===""&&(c.nodeName==="A"||c.nodeName==="CODE")&&(v=" "),C=v+C}o.push({text:C,type:"text"})}else{let d=S0(o).endsWith(" ")?" ":"",b="";c.textContent&&(b=ua(k0(c))),d===" "&&(b=b.trimStart()),o.push({text:b,type:"text"})}}if(o&&o.length>0){let s="";for(let c=0;c0&&(m=o[c-1].text),c2){let l=c[2];return b9({delimiterTag:l,targetText:e.targetText,inline:r,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:a}).html}else{let l=d3(s,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return l.html}}function k0(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function b9(e){let{delimiterTag:t,inline:n,translationClasses:a,targetWrapperTag:r,wrapperPrefix:u,variables:o,preWhitespace:i,wrapperSuffix:s,translationTheme:c,translationBlockStyle:l}=e;o=o||[];let m=e.targetText;m=Le.sanitize(m);let g=m,f=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),d=new RegExp(`<${t}(\\d+)>`);o.length>0&&(g=g.replace(f,C=>{let v=g.indexOf(C),O=g[v-1]===" ",B=g[v+C.length]===" ",x=C.match(d);if(!x)return C;let L=x[1],M=Number(L);if(isNaN(M))return C;let w=o[Number(M)];if(w&&w.type==="element"){let E=w.value.outerHTML;return O||(E=" "+E),B||(E=E+" "),E}else if(w&&w.type==="text"){let E=w.value;return O||(E=" "+E),B||(E=E+" "),E}else U.error("variable type not supported",w,C);return C}));let b=w0(c,n,a||[],i),T=v0(c),h="";return l&&(h=`style="${l}"`),g=`<${r} ${h} class="${b.join(" ")}" ${wn}="1"><${r} class="${T.join(" ")}" ${wn}="1">${g}`,n||(u==="smart"?g=`
${g}`:g=`${u}${g}`),n&&(u!=="smart"?g=`${u}${g}`:g=`<${r} class="notranslate" ${wn}="1"> ${g}`),s==="smart"?g=`${g}`:g=`${g}${s}`,{html:g,position:"afterend"}}function S0(e){let t=e[e.length-1];return t?t.text:""}function un(e){let t=e.rule.selectors,n=e.rule.excludeTags,a=e.rule.additionalExcludeTags,r=e.rule.excludeSelectors,u=e.rule.additionalExcludeSelectors;return e.state.translationArea==="body"&&(t=[],r=[]),{globalStyles:e.rule.globalStyles,globalAttributes:e.rule.globalAttributes,selectors:t,skipEditableCheck:e.rule.skipEditableCheck,lineBreakMaxTextCount:e.rule.lineBreakMaxTextCount,isTransformPreTagNewLine:e.rule.isTransformPreTagNewLine,excludeSelectors:n.concat(a).map(i=>i.toLowerCase()).filter(i=>i!=="code"&&i!=="img").concat(r).concat(u),blockSelectors:e.rule.allBlockTags.map(i=>i.toLowerCase()).concat(e.rule.extraBlockSelectors),extraBlockSelectors:e.rule.extraBlockSelectors,extraInlineSelectors:e.rule.extraInlineSelectors.concat(e.rule.additionalInlineSelectors),stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(i=>i.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)}}var y9={sanitize:e=>e};function Ao(e,t){e.interruptEffectDOM||(e.walkContainer({id:e.id,container:t,filterRule:un(e.ctx),onParagraph:iu.bind(null,e),onFrame:n=>{D0(e,n,!0)},onIgnoreElement:n=>{e.ignoreResizeObserver?.observe(n)}}),Oa&&at(t,"consumeContainer",e.id))}function D0(e,t,n){try{if(e.injectCssToDocument(t,e.ctx),t instanceof HTMLIFrameElement){if(!ar(t))return;U.debug("onFrame fragment",t);let a=t.contentWindow?.document.body;a&&(sr(a,e,n),e.dynamicContainerObserver?.observe(a,{childList:!0,subtree:!0}))}else U.debug("onFrame shadowRoot",t.host),sr(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0})}catch{}}function sr(e,t,n=!0){let{globalStyles:a,globalAttributes:r}=un(t.ctx),u=0;if(s(t,e,n))return;if(xn(e)&&i(e)){o(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,l=>(xn(l)&&(a&&b0(l,a),r&&x0(l,r)),s(t,l,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(jt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode();){jt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let l=c.currentNode;if(i(l))for(o(l);;){if(c.nextSibling()){let m=c.currentNode;if(jt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),i(m)){o(m);continue}else break}if(!c.parentNode())return}}}catch{}if(u==0&&e instanceof HTMLElement){o(e);return}return t.observeContainers;function o(c){jt.clearMark(c),u++,t.immediateTranslateCapacity>=0?Ao(t,c):(Oa&&at(c,"observeContainer",t.id),t.containerVisibleObserver?.observe(c))}function i(c){let l=c.nodeName.toLowerCase();if(c.shadowRoot)return D0(t,c.shadowRoot,n),!1;if(l==="iframe")return D0(t,c,n),!1;if(["script","#document-fragment","img"].includes(l))return!1;let m=t.containerRule;if(m.selectors&&m.selectors?.length>0)return vo(c,m.selectors);if(m.pageHeight){let g=c.scrollHeight;if(g>0&&g0)return!0}return!1}function s(c,l,m){if(l.nodeName.toLowerCase()=="script")return l.childNodes.length==0||l.childNodes.length==1&&l.childNodes[0].nodeType==Node.TEXT_NODE;if(l.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(l.nodeType!==Node.ELEMENT_NODE||m&&jt.isMarked(l,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&l.nodeName==="PRE")return!1;let f=un(c.ctx);return!!E0(l,{excludeSelectors:f.excludeSelectors,selectors:f.selectors,stayOriginalSelectors:f.stayOriginalSelectors})}}function L0(e,t){if(!e.targetNodes)return;let n=e.state||"original",a=e.commonAncestorContainer;if(!jt.isMarked(a,e.ctxId))return;let r=a.contains(e.rootNodes[0]),u=a.contains(e.targetNodes[0]);if(r&&u)n="dual";else if(r)n="original";else if(u)n="translation";else return;if(t!=n){e.state=t;try{if(n=="dual"&&t=="translation"&&(So(e.rootNodes),p3(e.commonAncestorContainer)),n=="original"&&t=="translation"){let o=A0(e.rootNodes);if(So(e.rootNodes),g3(o))return;ir(o,a,e.targetNodes||[]),p3(e.commonAncestorContainer)}if(n=="translation"&&t=="dual"){let o=e.targetNodes[0];ir(o,a,e.rootNodes||[]),f3(e.commonAncestorContainer)}if(n=="original"&&t=="dual"){let o=A0(e.rootNodes);if(g3(o))return;ir(o,a,e.targetNodes||[]),f3(e.commonAncestorContainer)}if(n=="translation"&&t=="original"){let o=A0(e.targetNodes);So(e.targetNodes),ir(o,a,e.rootNodes||[])}n=="dual"&&t=="original"&&So(e.targetNodes)}catch(o){U.error(o)}}}function g3(e){return!e||!xn(e)?!1:e.classList.contains(qt)}function p3(e){if(!xn(e))return;e.querySelectorAll("font[class*=immersive-translate-target-translation]").forEach(a=>{at(a,"immersiveTranslateClassBak",a.className),a.className="notranslate immersive-translate-target-dual"});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.add("immersive-translate-state-dual")}function f3(e){if(!xn(e))return;e.querySelectorAll("font[class*=immersive-translate-target-dual]").forEach(a=>{let r=tr(a,"immersiveTranslateClassBak");To(a,"immersiveTranslateClassBak"),a.className=r});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.remove("immersive-translate-state-dual")}function A0(e){return e?e[e.length-1].nextSibling:null}function So(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function ir(e,t,n){let a=e;t&&(a?n.forEach(r=>{a.parentNode?.insertBefore(r,a)}):n.forEach(r=>{t.appendChild(r)}))}var x9=xt(M0,300);async function iu(e,t,n=!1){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||E9(t.rootNodes)||t.stepState>=2)return;t.stepState=2,Oa&&at(a,"onParseParagraph",e.id);let{ctx:r}=e,{rule:u}=r,o=nr(r),i=ko(t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:o,stayOriginalSelectors:r.rule.stayOriginalTags.concat(r.rule.stayOriginalTags).map(c=>c.toLowerCase()).concat(r.rule.stayOriginalSelectors).concat(r.rule.additionalStayOriginalSelectors)});if(!i)return;t.variables=i?.variables||{},t.text=i?.text;let s=await F0(t,{excludeLanguages:r?.config?.translationLanguagePattern?.excludeMatches||[],targetLanguage:r.targetLanguage,noTranslateRegexp:r.rule.noTranslateRegexp,delimiters:Co(r.config.translationServices[r.translationService]?.placeholderDelimiters),minTextCount:n||r.state.translationArea==="body"?2:u.paragraphMinTextCount,minWordCount:n||r.state.translationArea==="body"?1:u.paragraphMinWordCount,isDetectParagraphLanguage:r.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:r.rule.ignoreZhCNandZhTW});if(s){if(U.debug("on paragraph",s.text,s),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(s))return;a.paragraphs.push(s),e.immediateTranslateCapacity>0||n?(T9(e,t.text),P0(e,t)):(Oa&&at(a,"observeParagraph",e.id),e.observeParagraphs.push(s),e.paragraphVisibleObserver?.observe(a))}return s}function E9(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?xn(t)&&t.classList.contains(qt):!1}function T9(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function P0(e,t){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let n=e.autoIncreaseParagraphId++;t.id=n.toString(),e.paragraphEntities[n]=t,e.paragraphQueue.push(n.toString()),Oa&&at(t.commonAncestorContainer,"consumeParagraph",e.id),x9.call(e,e.ctx)}async function M0(e){if(this.interruptEffectDOM)return;let t=this.paragraphQueue;this.paragraphQueue=[];let n=[];for(let a=0;a0)try{await In(a,t,(r,u,o)=>{let i=o.id,s=C9(e,i.toString());s&&w9.call(null,r,u,o,s,t,n)})}catch(r){U.error("translateCurrentQueue error",r);return}}function C9(e,t){return e.find(n=>n.id===t)}function w9(e,t,n,a,r,u){let o=!1,i=a;if(rr(i.commonAncestorContainer,n.id)?.remove(),i&&(e||!t)){e||(U.error("translate error",n,e,t),e=new Error("no response from server"));let{rule:s}=r,c=n.id,l=document.createElement(s.targetWrapperTag);at(l,Sc,c.toString()),l.classList.add("notranslate",qt,qt+"-error"),l.setAttribute("translate","no"),l.setAttribute("lang",r.targetLanguage);let m=a.rootNodes[a.rootNodes.length-1].nextSibling;ir(m,a.commonAncestorContainer,[l]),v9(r,e);let g=e.message.replaceAll(` -`,"");if(g=g.replaceAll('"',"""),i&&(i.error=new Error(g)),l){let f=Nn(Rt,"retryAllParagraphs",r.config.interfaceLanguage,"zh-CN"),d=Nn(Rt,"errorTooltipTitle",r.config.interfaceLanguage,"zh-CN"),b=`<${s.targetWrapperTag} class="${J}-error notranslate"><${s.targetWrapperTag} class="${J}-error-wrapper">\u{1F504}  \u2753`;l.innerHTML=Le.sanitize(b)}}else if(a){if(i.error=void 0,a.targetText=t?.text||"",!(a.text?.toLocaleLowerCase()==a.targetText?.toLocaleLowerCase())){let c=m3(a,r),l=document.createElement(r.rule.targetWrapperTag);l.classList.add("notranslate",qt),l.setAttribute("lang",r.targetLanguage),l.setAttribute(wn,"1");let m=y9.sanitize(c);l.innerHTML=m,a.targetNodes=[l],L0(a,u)}o=!0}else U.error("paragraph not found",n.id);document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}))}async function F0(e,t){let{text:n}=e,a=await Ke({text:n||"",minLength:15,pageLangs:[ct(),"en"]}),{targetLanguage:r}=t;if(!Qm({text:n||"",delimiters:t.delimiters,minWordCount:t.minWordCount,minTextCount:t.minTextCount,noTranslateRegexp:t.noTranslateRegexp}))return null;let o=t.excludeLanguages||[],i=uo();t.isDetectParagraphLanguage&&(i="auto");let s=ct(),c=a;c==="auto"&&!t.isDetectParagraphLanguage&&(c=s),e.languageByLocal=c,e.languageByClient=i;let l=i!=="auto"?i:c;return $n(l,r,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW})||o.length>0&&o.some(f=>$n(l,f,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW}))?null:e}function v9(e,t){if(t.message.startsWith("ProQuota:")){t.message=t.message.replace("ProQuota:","");let n=t.message;try{n=JSON.parse(t.message).error}catch(u){U.error(u)}t.message=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${t.message} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`;let a=e.translationService,r=a=="deepl"?"OpenAI":"Deepl";e.translationService=="openai"?a="OpenAI":e.translationService=="deepl"&&(a="Deepl"),document.dispatchEvent(new CustomEvent(vu,{detail:{type:"ProQuotaExceeded",subscriptionType:e.user?.subscription?.subscriptionType,translationService:a,anotherService:r,message:n}}))}}p();var k9=[];function h3(e){k9.push(e)}p();function b3(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(a){a.length>0&&(a[0].target.text.includes(Du)||_0(e).catch(u=>{U.error("translateTitle error:",u.name,u.message,u.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var Lo="";async function _0(e){let t=document.title;if(!t||t.includes(Du))return;Lo!==t&&(Lo=t);let n=await Ke({text:t,pageLangs:[ct(),"en"]});if(!wo(e,n))try{let a=await Ca({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n},e);a&&a.text&&(document.title=Lo+Du+a.text)}catch(a){throw a}}function y3(e){e.rule.isTranslateTitle&&(document.title=Lo)}p();var B0="Original";function qe(){return B0}function Lt(e){B0=e,x3(B0)}p();var R0;function E3(e){let t=e.ctx.rule.aiRule;if(U.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=un(e.ctx),a=n.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);n.excludeSelectors.splice(a,1);let r,u;document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(g=>{g.translated=!0,su(e,g,n)});let o=t.streamingDelayTime||100;R0=new MutationObserver(g=>{g.forEach(function(f){if(xn(f.target)&&!s(f)&&(l(f.target),f.addedNodes&&f.addedNodes.length&&f.addedNodes.forEach(d=>{l(d)}),!c(f)&&i())){let d=f.target===u;if(t.streamingDeepChild&&!d&&(d=f.target.parentNode===u),!d)return;f.addedNodes.forEach(b=>{let T=b.previousSibling;!T||T.translated||(T.translated=!0,setTimeout(()=>{T.childNodes[0]?.translated||(U.debug("\u7FFB\u8BD1\u4E0A\u4E00\u4E2A\u6BB5\u843D",T),su(e,T,n))},o))})}})}),R0.observe(document.body,{attributes:!0,childList:!0,subtree:!0});function i(){return!!(t.streamingChange&&t.streamingSelector&&r||t.streamingChange&&t.messageContainerSelector&&t.messageStreamEndSelector&&u&&!u.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector))}function s(g){return t.streamingSelector&&g.target===r&&g.type==="attributes"&&!yn(g.target,[t.streamingSelector])?(m(),!0):t.streamingSelector&&g.removedNodes.length>0&&u&&u!=r?(g.removedNodes?.forEach(f=>{f===r&&m()}),!0):t.messageContainerSelector&&t.messageStreamEndSelector&&u&&u.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector)?(m(),!0):!1}function c(g){if(t.streamingSelector&&g.target.querySelector(t.messageWrapperSelector||"")&&!r){let f=g.target;return f.translated||(f.translated=!0,setTimeout(()=>{r||f.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(d=>{d.translated||(d.translated=!0,su(e,d,n))})},o)),!0}else if(t.messageContainerSelector&&g.target.querySelector(t.messageContainerSelector||"")){let f=g.target;if(f.translated)return!0;f.translated=!0,setTimeout(()=>{f.querySelectorAll(t.messageContainerSelector).forEach(d=>{t.messageStreamEndSelector&&!d.querySelector(t.messageStreamEndSelector)||d.translated||(d.translated=!0,su(e,d,n))})},o)}return!1}function l(g){t.streamingSelector&&yn(g,[t.streamingSelector])&&(r=g,U.debug("streamingNode",r)),yn(g,[t.messageWrapperSelector])&&(u=g,U.debug("markdownNode",u))}function m(){u&&setTimeout(()=>{u.childNodes.forEach(g=>g.translated=!1),U.debug("\u7ED3\u675F\u7FFB\u8BD1\u5168\u90E8",u),su(e,u,n),r=void 0,u=null},o)}}function su(e,t,n){oa({id:e.id,container:t,filterRule:n,force:!0,onParagraph:a=>{iu(e,a,!0)},onFrame:()=>{},onIgnoreElement:()=>{}})}function T3(){R0?.disconnect()}var ne=null;function Mo(){return ne||null}function lr(e){S9(e),_9(e),P9(e),F9(e),or(document,e),Lt("Translated"),M9(ne),L9(ne),h3(jn),A9(ne)}function S9(e){e.state.translationArea==="main"&&e.rule.initialSelectorGlobalAttributes&&a3(document.body,e.rule.initialSelectorGlobalAttributes,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph)}function A9(e){E3(e)}function D9(){T3()}function L9(e){e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0});let t=[];e.ctx.rule.mainFrameSelector&&(t=[...document.querySelectorAll(e.ctx.rule.mainFrameSelector||"")]),t.length<=0&&(t=[document.body]),t.forEach(n=>{sr(n,e)})}async function P9(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=Date.now(),a=new URL(e.url).hostname,r=e.localConfig.tempTranslationUrlMatches||[],u=r.findIndex(i=>i.match===a&&i.expiredAt>t),o=!1;u>-1||(r.push({match:a,expiredAt:t+e.config.tempTranslateDomainMinutes*60*1e3}),o=!0),o&&await kn({...e.localConfig,tempTranslationUrlMatches:[...r]})}}function M9(e){e.ctx.rule.isTranslateTitle&&(_0(e.ctx),e.titleDynamicObserver=b3(e.ctx))}function F9(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function _9(e){let t=Wt();ne&&(t=ne.id);let n=un(e);ne=ne||{},ne.ctx=e,ne.id=t,ne.paragraphQueue=ne.paragraphQueue||[],ne.rule={excludeSelectors:n.excludeSelectors||[],selectors:n.selectors||[]},ne.currentUrl=window.location.href,ne.containerRule={pageHeight:screen.availHeight,selectors:n.selectors},ne.translationService=e.translationService,ne.paragraphEntities=ne.paragraphEntities||{},ne.autoIncreaseParagraphId=ne.autoIncreaseParagraphId||1,ne.interruptEffectDOM=!1,ne.urlChangeDelay=e.rule.urlChangeDelay,ne.immediateTranslateCapacity=e.state.immediateTranslationTextCount,ne.observeContainers=ne.observeContainers||[],ne.observeParagraphs=ne.observeParagraphs||[],ne.dynamicContainerObserver=ne.dynamicContainerObserver||N9(ne),ne.ignoreResizeObserver=ne.ignoreResizeObserver||j9(ne),ne.containerVisibleObserver=ne.containerVisibleObserver||R9(ne),ne.paragraphVisibleObserver=ne.paragraphVisibleObserver||I9(ne),ne.injectCssToDocument=Po,ne.walkContainer=oa,ne.translateState=e.state.translationMode||e.config.translationMode||"dual",ne.allInlineWindows=[window],window.onerror=B9(ne,e),window.immersiveTranslateSwitchTranslateState=O0.bind(ne)}function w3(e,t){t.getRootNode()instanceof ShadowRoot?Po(t.getRootNode(),e):Po(t.ownerDocument,e),I0(e)}function I0(e){if(ne)return;ne={},ne.ctx=e,ne.id=Wt(),ne.paragraphQueue=[],ne.injectCssToDocument=Po;let t=un(e);ne.rule={excludeSelectors:t.excludeSelectors,selectors:t.selectors||[]},ne.translationService=e.mouseHoverTranslationService,ne.currentUrl=window.location.href,ne.paragraphEntities={},ne.autoIncreaseParagraphId=1,ne.interruptEffectDOM=!1,ne.urlChangeDelay=e.rule.urlChangeDelay,ne.translateState=e.config.translationMode||"dual",ne.observeContainers=[],ne.observeParagraphs=[],ne.allInlineWindows=[window],window.switchTranslateState=O0.bind(ne)}function jn(e=!0){ne&&(Lt("Original"),D9(),ne.interruptEffectDOM=!0,ne.ignoreResizeObserver?.disconnect(),ne.dynamicContainerObserver?.disconnect(),ne.containerVisibleObserver?.disconnect(),ne.paragraphVisibleObserver?.disconnect(),ne.titleDynamicObserver?.disconnect(),y3(ne.ctx),Vm(),Ym(),e&&O0.call(ne,"original"),Object.values(ne.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),ne=null)}function B9(e,t){e.interruptEffectDOM=!1;let n;return function(a){let r=a.message,u=!1;return r?.indexOf("Minified React error")>=0&&(u=!0),u&&(clearTimeout(n),jn(),n=setTimeout(()=>{lr(t)},e.urlChangeDelay||2e3)),!0}}function R9(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{a.intersectionRatio>0&&(Ao(e,a.target),n.unobserve(a.target))})})}function I9(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{if(a.intersectionRatio>0){let r=a.target;(r.paragraphs||[]).forEach(o=>{P0(e,o)}),n.unobserve(r)}})})}var C3;function O9(e){if(e.urlChangeDelay<=0)return!1;let n=(window.location.href||"").split("#")[0];return e.currentUrl.split("#")[0]!=n?(clearTimeout(C3),e.translateState=="original"?!1:(jn(e.urlChangeDelay>20),C3=setTimeout(()=>{let r=e.ctx;lr(r)},e.urlChangeDelay),!0)):!1}function N9(e){return new MutationObserver(t=>{if(!O9(e)&&!e.interruptEffectDOM)for(let n of t){let a=e.ctx.rule.mutationObserverLimitTargetSelectors;if(a.length>0&&!yn(n.target,a))return;if((n.addedNodes||[]).length<=0||n.target.nodeType!==Node.ELEMENT_NODE||!jt.isSkipMarkEle(n.target)&&!jt.isMarked(n.target,e.id))continue;let u=(n.target?.paragraphs||[]).reduce((o,i)=>{let s=i.rootNodes||[],c=i.targetNodes||[];return[...o,...s,...c]},[]);if(n.addedNodes.length>0&&n.addedNodes.length===n.target.childNodes.length&&yn(n.target,e.ctx.rule.mutationObserverContainerSelectors)){jt.clearMark(n.target),n.target.paragraphs=void 0,Ao(e,n.target);return}n.addedNodes.forEach((o,i)=>{o.nodeType===Node.ELEMENT_NODE&&(u.includes(o)||Dt(o,e.ctx.rule.mutationExcludeSelectors)||sr(o,e))})}})}function j9(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let a of t){if(a.target.nodeType!==Node.ELEMENT_NODE)return;let r=a.target,u=globalThis.getComputedStyle(r);y0(u)||(n.unobserve(a.target),sr(r,e))}})}function O0(e){this.translateState=e,Object.values(this.paragraphEntities).forEach(t=>{L0(t,e)}),e=="original"&&document.querySelectorAll(`.${qt}`).forEach(t=>t.remove())}function Po(e,t){if(e instanceof HTMLIFrameElement){or(e.contentDocument,t);return}or(e,t)}async function v3(e){let t=nt(),n="auto";if(he()){let a="";e.rule.isEbook||e.rule.isEbookBuilder?(a=g0(e.mainFrame),n=await Ke({text:a,pageLangs:["en"]})):(a=er(e.mainFrame).slice(0,1e3),n=await Ke({text:a,pageLangs:[pa(),"en"]}))}else if(t)n=await Ke({text:er(e.mainFrame).slice(0,1e3),pageLangs:[pa(),"en"]});else if(e.rule.isEbook||e.rule.isEbookBuilder){let a="";a=g0(e.mainFrame),n=await Ke({text:a,pageLangs:["en"]})}else n=await S3();return n==="auto"&&(n=await l3()),ks(n),n}async function k3(){if(!ne)return;document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=ne.paragraphEntities,t=Object.keys(e);for(let n of t){let a=e[n];if(a.error){ne.paragraphQueue.push(n);let u=a.commonAncestorContainer.querySelector(`[${Su}='${n}']`);u&&u.remove()}}M0.call(ne,ne.ctx)}p();p();var A3={"zh-CN":{"languages.en":"\u82F1\u8BED","languages.ja":"\u65E5\u8BED","languages.ko":"\u97E9\u8BED","languages.es":"\u897F\u73ED\u7259\u8BED","languages.fr":"\u6CD5\u8BED","languages.de":"\u5FB7\u8BED","languages.it":"\u610F\u5927\u5229\u8BED","languages.pt":"\u8461\u8404\u7259\u8BED","languages.ru":"\u4FC4\u8BED","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"},"zh-TW":{"languages.en":"\u82F1\u8A9E","languages.ja":"\u65E5\u8A9E","languages.ko":"\u97D3\u8A9E","languages.es":"\u897F\u73ED\u7259\u8A9E","languages.fr":"\u6CD5\u8A9E","languages.de":"\u5FB7\u8A9E","languages.it":"\u610F\u5927\u5229\u8A9E","languages.pt":"\u8461\u8404\u7259\u8A9E","languages.ru":"\u4FC4\u8A9E","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"}},D3={...Rt,"zh-CN":{...A3["zh-CN"],...Rt["zh-CN"]},"zh-TW":{...A3["zh-TW"],...Rt["zh-TW"]}},L3=D3;function cr(e,t,n){return Nn(D3,e,t,Lu,n)}var Fo=(e,t,n,a)=>{let r=Rc[e]||e,u=Ic[e],o=Oc[e],i={"zh-CN":u,"zh-TW":o,en:r};if(n)return i[e]?i[e]:r;if(i[t]){let s=i[t];return a||e==="auto"||e==="placeholder"?s:`${s} (${r})`}else return r};p();p();function dr(e){mr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(a=>{U.error("send content message request failed",e,a)}),document.querySelectorAll("iframe").forEach(a=>{a.contentWindow&&a.contentWindow.postMessage({author:wu,payload:e},"*")});let n=new CustomEvent(Wn,{detail:e});globalThis.document.dispatchEvent(n)}function N0(e){let t=e.shortcuts||{},a=Object.keys(t).reduce((u,o)=>(u[t[o]]=o,u),{}),r=Object.keys(a);for(let u of r){let o=u.replace(/MacCtrl/ig,"Ctrl");o&&Ye(o,i=>{i.preventDefault(),dr({method:a[u],data:{trigger:"shortcut"}})})}}p();p();p();p();p();var No,ve,B3,z9,lu,P3,R3,Ro={},I3=[],U9=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ia(e,t){for(var n in t)e[n]=t[n];return e}function O3(e){var t=e.parentNode;t&&t.removeChild(e)}function z0(e,t,n){var a,r,u,o={};for(u in t)u=="key"?a=t[u]:u=="ref"?r=t[u]:o[u]=t[u];if(arguments.length>2&&(o.children=arguments.length>3?No.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(u in e.defaultProps)o[u]===void 0&&(o[u]=e.defaultProps[u]);return _o(e,o,a,r,null)}function _o(e,t,n,a,r){var u={type:e,props:t,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++B3};return r==null&&ve.vnode!=null&&ve.vnode(u),u}function Kt(e){return e.children}function Bo(e,t){this.props=e,this.context=t}function gr(e,t){if(t==null)return e.__?gr(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?_o(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=n,f.__b=n.__b+1,(g=h[l])===null||g&&f.key==g.key&&f.type===g.type)h[l]=void 0;else for(m=0;m=n.__.length&&n.__.push({__V:zo}),n.__[e]}function De(e){return du=1,$9(eg,e)}function $9(e,t,n){var a=Ho(mu++,2);if(a.t=e,!a.__c&&(a.__=[n?n(t):eg(void 0,t),function(u){var o=a.__N?a.__N[0]:a.__[0],i=a.t(o,u);o!==i&&(a.__N=[i,a.__[1]],a.__c.setState({}))}],a.__c=et,!et.u)){et.u=!0;var r=et.shouldComponentUpdate;et.shouldComponentUpdate=function(u,o,i){if(!a.__c.__H)return!0;var s=a.__c.__H.__.filter(function(l){return l.__c});if(s.every(function(l){return!l.__N}))return!r||r.call(this,u,o,i);var c=!1;return s.forEach(function(l){if(l.__N){var m=l.__[0];l.__=l.__N,l.__N=void 0,m!==l.__[0]&&(c=!0)}}),!!c&&(!r||r.call(this,u,o,i))}}return a.__N||a.__}function Ge(e,t){var n=Ho(mu++,3);!ve.__s&&X3(n.__H,t)&&(n.__=e,n.i=t,et.__H.__h.push(n))}function qo(e){return du=5,W0(function(){return{current:e}},[])}function W0(e,t){var n=Ho(mu++,7);return X3(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function sa(e,t){return du=8,W0(function(){return e},t)}function Wo(e){var t=et.context[e.__c],n=Ho(mu++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(et)),t.props.value):e.__}function K9(){for(var e;e=Z3.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Uo),e.__H.__h.forEach(q0),e.__H.__h=[]}catch(t){e.__H.__h=[],ve.__e(t,e.__v)}}ve.__b=function(e){typeof e.type!="function"||e.o||e.type===Kt?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),et=null,K3&&K3(e)},ve.__r=function(e){G3&&G3(e),mu=0;var t=(et=e.__c).__H;t&&(H0===et?(t.__h=[],et.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=zo,n.__N=n.i=void 0})):(t.__h.forEach(Uo),t.__h.forEach(q0),t.__h=[])),H0=et},ve.diffed=function(e){V3&&V3(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Z3.push(t)!==1&&$3===ve.requestAnimationFrame||(($3=ve.requestAnimationFrame)||G9)(K9)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==zo&&(n.__=n.__V),n.i=void 0,n.__V=zo})),H0=et=null},ve.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Uo),n.__h=n.__h.filter(function(a){return!a.__||q0(a)})}catch(a){t.some(function(r){r.__h&&(r.__h=[])}),t=[],ve.__e(a,n.__v)}}),Y3&&Y3(e,t)},ve.unmount=function(e){J3&&J3(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(a){try{Uo(a)}catch(r){t=r}}),n.__H=void 0,t&&ve.__e(t,n.__v))};var Q3=typeof requestAnimationFrame=="function";function G9(e){var t,n=function(){clearTimeout(a),Q3&&cancelAnimationFrame(t),setTimeout(e)},a=setTimeout(n,100);Q3&&(t=requestAnimationFrame(n))}function Uo(e){var t=et,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),et=t}function q0(e){var t=et;e.__c=e.__(),et=t}function X3(e,t){return!e||e.length!==t.length||t.some(function(n,a){return n!==e[a]})}function eg(e,t){return typeof t=="function"?t(e):t}p();p();var pr={},V9={root:"",lang:"en",fallbackLang:"en"};function $0(e,t){let n=Object.assign({},V9,e);pr=t||pr;let[a,r]=De(n.lang),[u,o]=De(pr),[i,s]=De(!1),c=m=>{if(u.hasOwnProperty(m))return;s(!1);let g=c3(n.root||"",m);n.getUrl&&(g=n.getUrl(n.root||"",m),fetch(g).then(f=>f.json()).then(f=>{pr[m]=f,o({...pr}),s(!0)}).catch(f=>{o({...pr}),s(!0)}))};return Ge(()=>{c(n.fallbackLang||"en"),c(a)},[a]),{lang:a,setLang:r,t:(m,g)=>{if(!u.hasOwnProperty(a))return m;let f=ou(u,a,m);return f===m&&a!==n.fallbackLang&&(f=ou(u,n.fallbackLang,m)),C0(f,g)},isReady:i}}p();p();var Y9=0;function V(e,t,n,a,r){var u,o,i={};for(o in t)o=="ref"?u=t[o]:i[o]=t[o];var s={type:e,props:i,key:n,ref:u,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Y9,__source:r,__self:a};if(typeof e=="function"&&(u=e.defaultProps))for(o in u)i[o]===void 0&&(i[o]=u[o]);return ve.vnode&&ve.vnode(s),s}var G0=jo(null),K0={root:"assets",lang:"en",fallbackLang:"en"},tg=e=>{let{t,setLang:n,lang:a,isReady:r}=$0({root:e.root||K0.root,lang:e.lang||K0.lang,fallbackLang:e.fallbackLang||K0.fallbackLang,getUrl:e.getUrl},e.translations);return V(G0.Provider,{value:{t,setLang:n,lang:a,isReady:r},children:e.children})};p();p();function ng(e,t,n){let a=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),a=t!=="auto"?n[t].matches:[];let r={},u=Object.keys(n);for(let c of u){let m=n[c].matches;for(let g of m)r[g]||(r[g]=[]),r[g].push(c)}let o=r[e];if(o&&o.length>0)for(let c of o)n[c].matches.indexOf(e)>-1&&(n[c]={...n[c],matches:n[c].matches.filter(m=>m!==e)});let i=new Set(a);if(t==="auto")return{...n};i.add(e);let s=Array.from(i);return{...n,[t]:{...n[t],matches:s}}}p();p();function V0(){return V("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[V("path",{d:"M10.3873 2.29166C10.6319 2.29193 10.8664 2.38929 11.0392 2.56234C11.2121 2.73539 11.3092 2.96998 11.3092 3.21457V4.07811L12.1175 4.38332C12.7273 4.61277 13.2952 4.94074 13.7988 5.35416L14.4675 5.90207L15.2165 5.46978L15.2394 5.45624C15.3787 5.37479 15.5373 5.332 15.6988 5.33228C15.861 5.3325 16.0203 5.37522 16.1608 5.45618C16.3014 5.53715 16.4182 5.65353 16.4998 5.79374L16.8925 6.47395C17.0145 6.68593 17.0475 6.93764 16.9843 7.17391C16.921 7.41019 16.7666 7.61173 16.555 7.73436L16.5321 7.74791L15.7842 8.17916L15.9227 9.0302C16.031 9.67953 16.031 10.3423 15.9227 10.9917L15.781 11.8458L16.531 12.2781L16.5467 12.2875C16.758 12.4101 16.9122 12.6115 16.9754 12.8475C17.0387 13.0835 17.0059 13.335 16.8842 13.5469L16.5154 14.1844C16.3932 14.3961 16.1919 14.5507 15.9558 14.6141C15.7196 14.6776 15.468 14.6448 15.256 14.5229L15.2415 14.5135L14.4904 14.0802L13.8206 14.6323C13.3125 15.0519 12.7384 15.3845 12.1217 15.6167L11.3133 15.9219V16.7864C11.3132 16.9078 11.2891 17.028 11.2425 17.14C11.1958 17.2521 11.1276 17.3539 11.0415 17.4395C10.9555 17.5251 10.8535 17.5929 10.7412 17.6391C10.6289 17.6852 10.5087 17.7087 10.3873 17.7083H9.61229C9.3677 17.708 9.13322 17.6107 8.96037 17.4376C8.78751 17.2646 8.69042 17.03 8.69042 16.7854V15.9219L7.88209 15.6167C7.27233 15.3872 6.70437 15.0592 6.20084 14.6458L5.53209 14.0979L4.78313 14.5302L4.76021 14.5437C4.62084 14.6252 4.46226 14.668 4.30084 14.6677C4.13864 14.6675 3.97932 14.6248 3.83877 14.5438C3.69823 14.4628 3.58135 14.3464 3.49979 14.2062L3.10709 13.526C2.98505 13.3141 2.95205 13.0623 3.01532 12.8261C3.07858 12.5898 3.23296 12.3882 3.44459 12.2656L3.4675 12.2521L4.21542 11.8208L4.07688 10.9698C3.96856 10.3204 3.96856 9.65766 4.07688 9.00832L4.21854 8.1552L3.46959 7.72186L3.45709 7.70832C3.24914 7.58489 3.09787 7.38486 3.03575 7.15116C2.97362 6.91746 3.00559 6.66872 3.12479 6.45832L3.49354 5.82082C3.57469 5.68049 3.69133 5.56397 3.83175 5.48297C3.97217 5.40197 4.13144 5.35934 4.29354 5.35936C4.45497 5.35908 4.61355 5.40187 4.75292 5.48332L4.7675 5.49166L5.51854 5.92499L6.18834 5.37291C6.69646 4.95329 7.27054 4.62067 7.88729 4.38853L8.69563 4.08332V3.21874C8.69452 2.97433 8.79041 2.73945 8.96226 2.56565C9.13411 2.39185 9.36788 2.29331 9.61229 2.29166H10.3873ZM10.3873 1.04166H9.61229C9.03636 1.04193 8.4841 1.27084 8.07685 1.67809C7.66961 2.08533 7.4407 2.6376 7.44042 3.21353C6.69518 3.49423 6.00146 3.89618 5.38729 4.40312L5.37271 4.39478C4.87362 4.10685 4.2806 4.02894 3.72407 4.17818C3.16753 4.32742 2.69307 4.6916 2.405 5.19062L2.03729 5.83332C1.74928 6.33229 1.67121 6.92522 1.82025 7.48173C1.96929 8.03825 2.33324 8.51279 2.83209 8.80103L2.84771 8.80936C2.78023 9.20444 2.74539 9.6044 2.74354 10.0052C2.74367 10.3971 2.77572 10.7883 2.83938 11.175L2.81646 11.1885C2.56927 11.3311 2.35259 11.5209 2.1788 11.7472C2.00501 11.9735 1.87752 12.2319 1.80361 12.5075C1.7297 12.7831 1.71083 13.0706 1.74807 13.3535C1.7853 13.6364 1.87792 13.9091 2.02063 14.1562L2.41334 14.8364C2.55638 15.0837 2.74681 15.3003 2.97371 15.4738C3.20061 15.6473 3.45953 15.7743 3.73561 15.8475C4.01169 15.9208 4.29952 15.9388 4.58259 15.9007C4.86566 15.8625 5.13841 15.7688 5.38521 15.625L5.40813 15.6114C6.01714 16.1105 6.70362 16.5067 7.44042 16.7844C7.44028 17.0697 7.49635 17.3523 7.60542 17.616C7.7145 17.8797 7.87444 18.1193 8.07612 18.3212C8.27779 18.523 8.51726 18.6832 8.78084 18.7925C9.04441 18.9018 9.32694 18.9582 9.61229 18.9583H10.3873C10.9632 18.958 11.5155 18.7291 11.9227 18.3219C12.33 17.9146 12.5589 17.3624 12.5592 16.7864C13.3043 16.5061 13.9981 16.1045 14.6123 15.5979L14.6269 15.6062C15.126 15.8942 15.719 15.9721 16.2755 15.8228C16.8321 15.6736 17.3065 15.3094 17.5946 14.8104L17.9623 14.1729C18.2503 13.6739 18.3284 13.081 18.1793 12.5245C18.0303 11.968 17.6663 11.4934 17.1675 11.2052L17.1519 11.1969C17.2194 10.8018 17.2542 10.4018 17.256 10.001C17.2559 9.60915 17.2239 9.21792 17.1602 8.83124L17.1831 8.8177C17.4303 8.67516 17.647 8.48531 17.8208 8.259C17.9946 8.03269 18.1221 7.77435 18.196 7.49875C18.2699 7.22314 18.2888 6.93568 18.2515 6.65278C18.2143 6.36987 18.1217 6.09708 17.979 5.84999L17.5863 5.16978C17.4437 4.92202 17.2537 4.70485 17.027 4.53072C16.8003 4.3566 16.5415 4.22895 16.2654 4.1551C15.9893 4.08126 15.7013 4.06267 15.418 4.1004C15.1346 4.13814 14.8616 4.23145 14.6144 4.37499L14.5915 4.38853C13.9824 3.88946 13.296 3.49327 12.5592 3.21561C12.5593 2.93026 12.5032 2.64768 12.3942 2.384C12.2851 2.12031 12.1252 1.8807 11.9235 1.67883C11.7218 1.47695 11.4823 1.31678 11.2188 1.20746C10.9552 1.09813 10.6726 1.04179 10.3873 1.04166Z",fill:"#666666"}),V("path",{d:"M10.0003 7.91666C10.4124 7.91666 10.8152 8.03884 11.1578 8.26776C11.5004 8.49668 11.7674 8.82205 11.9251 9.20273C12.0828 9.58341 12.124 10.0023 12.0436 10.4064C11.9632 10.8106 11.7648 11.1818 11.4735 11.4731C11.1821 11.7645 10.8109 11.9629 10.4068 12.0433C10.0026 12.1237 9.58375 12.0824 9.20307 11.9247C8.82239 11.7671 8.49702 11.5 8.2681 11.1574C8.03918 10.8148 7.91699 10.412 7.91699 9.99999C7.91699 9.44745 8.13649 8.91755 8.52719 8.52685C8.91789 8.13615 9.44779 7.91666 10.0003 7.91666ZM10.0003 6.66666C9.34106 6.66666 8.69659 6.86215 8.14843 7.22842C7.60026 7.5947 7.17302 8.11529 6.92073 8.72438C6.66844 9.33346 6.60243 10.0037 6.73104 10.6503C6.85966 11.2969 7.17713 11.8908 7.6433 12.357C8.10948 12.8232 8.70342 13.1407 9.35003 13.2693C9.99663 13.3979 10.6669 13.3319 11.2759 13.0796C11.885 12.8273 12.4056 12.4001 12.7719 11.8519C13.1382 11.3037 13.3337 10.6593 13.3337 9.99999C13.3337 9.11593 12.9825 8.26809 12.3573 7.64297C11.7322 7.01785 10.8844 6.66666 10.0003 6.66666Z",fill:"#666666"})]})}p();function ag(e,t=2e3){return n=>{let a,r=0;return u=>{++r==e&&(n(u),r=0),clearTimeout(a),a=setTimeout(()=>r=0,t)}}}p();function rg(e){let t;try{t=new URL(e)}catch{return!1}let n=ug(),a="";try{a=new URL(n).hostname}catch{}return a&&t.hostname===a?!0:!(J9(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function J9(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}p();function og(e){let t=e.split(".");return t.length>2?(t[0]="*",t.join(".")):null}p();function ig(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}p();p();function zt(){return Wo(G0)}function zn(e){let{items:t,maxWidth:n,className:a}=e,{lang:r}=zt();return n=n||(r==="en"?144:160),V("select",{autoComplete:"off",class:a||"min-select",style:{maxWidth:`${n}px`},value:t.find(u=>u.selected)?.value,onChange:u=>{let o=u.target.value,i=t.find(s=>s.value===o);i&&i.onSelected(i)},children:t.map((u,o)=>V("option",{value:u.value,selected:u.selected,children:u.label},"selectlink"+o))})}p();var $o="DROP_DOWN_DEFAULT_VALUE";function Y0(e){let{showArrow:t,onSelected:n,className:a,menus:r,maxWidth:u}=e;a=a||"",t=t??!0,u=u||80;let o=qo(null);return V("select",{ref:o,autoComplete:"off",class:`text-label min-select ${t?"":"min-select-no-arrow"} ${a||""}`,value:$o,style:{maxWidth:`${u}px`},onChange:i=>{i.preventDefault();let s=i.target.value;if(o.current&&s!==$o){o.current.value=$o,o.current?.dispatchEvent(new Event("change"));let c=r.find(l=>l.value===s);c&&n(c)}},children:[{value:$o,label:e.label}].concat(r).map((i,s)=>V("option",{value:i.value,children:i.label},"option-"+s))})}p();function J0(e){let{field:t,onChange:n,value:a}=e;a=a||t.default||"";let{t:r}=zt(),u=t.name;return t.label&&(u=t.label),t.labelKey&&(u=r(t.labelKey)),t.type==="select"?V("div",{class:"flex justify-between items-center mb-2",children:[V("label",{class:"inline-block",children:[u,"\uFF1A"]}),V(zn,{items:t.options.map(o=>({label:`${o.label?r(o.label):o.value}`,value:o.value,selected:a===o.value,onSelected:()=>{n(o.value)}}))})]}):null}p();p();function gu(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var Q9=({date:e})=>{let{t}=zt(),[n,a]=De(!1);return Ge(()=>{setTimeout(()=>{a(!0)},5e3)},[]),n?null:V("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},Z9=({minVersion:e})=>{let{t}=zt();return V("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},X9=()=>{let{t:e}=zt();return V("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:"https://immersivetranslate.com/docs/installation/"})}})},eb=({message:e,handleSyncing:t,date:n})=>{let{t:a}=zt();return V("p",{class:"text-sm",children:[a("failToSyncRules")," ",V("a",{onClick:t,children:a("retry")}),V("br",{}),a("failedReason"),"\uFF1A",e,V("br",{}),a("currentRuleVersion"),"\uFF1A",n]})};function Q0(e){let{isShowError:t,request:n}=e,[a,r]=De(null),{t:u}=zt(),[o,i]=De(null),[s,c]=De(null),[l,m]=De(""),[g,f]=De(!1),[d,b]=De(!1),[T,h]=De(!1),[C,v]=De(null),[O,B]=De(null),x=an(),L=async()=>{m("");let M=o;if(o===null)try{let w=await n({url:kr});w?(i(w),M=w,f(!0)):(m(u("unknownError")),c(null))}catch(w){c(null),m(w.message);return}M!==null?(e.setStorageBuildinConfig(M),c(!1),r(M.buildinConfigUpdatedAt)):(m(u("canNotFetchRemoteRule")),c(null))};return Ge(()=>{Ka().then(M=>{let w=M.buildinConfigUpdatedAt;v(M);let E=new Date(w);if(r(w),x==="0.0.0"){h(!0);return}n({url:kr}).then(I=>{let F=I,A=F.minVersion,_=x;i(F);let j=F.latestVersion;if(j&&(gu(_,j)?B(!0):B(!1)),gu(_,A)){let N=F.buildinConfigUpdatedAt;new Date(N)>E?(c(!0),L()):c(!1)}else b(!0),c(null)}).catch(I=>{c(null),m(I.message)})})},[]),Ge(()=>{Ka().then(M=>{v(M)})},[a]),C?V("div",{class:"text-sm mt-2",style:{maxWidth:218},children:T?V(X9,{}):l?t===!1?null:V(eb,{handleSyncing:L,message:l,date:a||""}):d?t===!1?null:V(Z9,{minVersion:o.minVersion}):s===null||s===!0?null:g?V(Q9,{date:a}):null}):null}p();var Ko='',Z0="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMTEuNjIzLS4zMTguODQ1Yy0uMjA4LjIyMi0uNTI3LjMzMy0uOTI4LjMzM2gtMS4zM1Y5LjI0MmgxLjMzWm05Ljg0NiAxLjc4OGMuMzg4IDAgLjY2NS4xNTIuODQ1LjQ1Ny4xNTIuMjY0LjIzNS41ODIuMjYzLjk4NHYuMzE5YzAgLjQ5OS0uMDgzLjg4Ny0uMjYzIDEuMTkyLS4xOC4zMDQtLjQ1Ny40NTctLjgzLjQ1Ny0uMzg5IDAtLjY2Ni0uMTUzLS44NDYtLjQ0NC0uMTUyLS4yNjMtLjIzNS0uNTk1LS4yNjMtMS4wMTF2LS4yOTFjMC0uNDg1LjA4My0uODczLjI2My0xLjE3OC4xOC0uMzA1LjQ0My0uNDg1LjgzMS0uNDg1Wm0tMy40MDctMS4xMzZhMS4xNyAxLjE3IDAgMCAwLS43MDYuMjM1IDEuNDgyIDEuNDgyIDAgMCAwLS40MTUuNWwtLjA4My4xNjUtLjA3LS44MDNoLTEuMzU3djUuNDMyaDEuNDU0di0zLjY1OWEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiA4LjEySDQuMTE0djcuMzE3aDEuNDY4VjEyLjc5aDEuMzNjLjg0NCAwIDEuNDk1LS4yMDggMS45OC0uNjM4LjQ4NS0uNDMuNzItLjk4My43Mi0xLjY5cy0uMjM1LTEuMjYxLS43Mi0xLjY5Yy0uNDQzLS4zODktMS4wMzktLjYxLTEuNzczLS42MzhsLS4yMjEtLjAxNFptOS44NDcgMS43NzRjLS44MDMgMC0xLjQyNi4yNjMtMS44ODMuNzc2LS40MTYuNDctLjYzNyAxLjA2Ny0uNjc5IDEuNzczdi4zMzNjMCAuODE4LjIyMiAxLjQ4My42NzkgMS45OTUuNDU3LjUxMyAxLjA4Ljc3NiAxLjg4My43NzYuODA0IDAgMS40MjctLjI2MyAxLjg4NC0uNzc2LjQxNS0uNDcuNjM3LTEuMDUzLjY3OC0xLjc3M3YtLjMzM2MwLS44MTctLjIyMS0xLjQ4Mi0uNjc4LTEuOTk1LS40NTctLjUxMy0xLjA4LS43NzYtMS44ODQtLjc3NlpNMTguMDAzIDZhNiA2IDAgMCAxIDAgMTJIMFY5LjQyM0EzLjQyIDMuNDIgMCAwIDEgMy40MiA2aDE0LjU4M1oiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSI3LjUiIHgyPSIyMiIgeTE9IjE5IiB5Mj0iNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMyMjIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM2OTY5NjkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=",X0="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzk5OSIgZD0iTTYuODk3IDMuMjQyYy40MTUgMCAuNzIuMTExLjkyOC4zNDcuMjA3LjIzNS4zMTguNTI2LjMxOC44NzMgMCAuMzQ2LS4xMS42MjMtLjMxOC44NDUtLjIwOC4yMjItLjUyNy4zMzMtLjkyOC4zMzNoLTEuMzNWMy4yNDJoMS4zM1ptOS44NDYgMS43ODhjLjM4OCAwIC42NjUuMTUyLjg0NS40NTcuMTUyLjI2NC4yMzUuNTgyLjI2My45ODR2LjMxOWMwIC40OTktLjA4My44ODctLjI2MyAxLjE5Mi0uMTguMzA0LS40NTcuNDU3LS44My40NTctLjM4OSAwLS42NjYtLjE1My0uODQ2LS40NDQtLjE1Mi0uMjYzLS4yMzUtLjU5NS0uMjYzLTEuMDExdi0uMjkxYzAtLjQ4NS4wODMtLjg3My4yNjMtMS4xNzguMTgtLjMwNS40NDMtLjQ4NS44MzEtLjQ4NVptLTMuNDA3LTEuMTM2YTEuMTcgMS4xNyAwIDAgMC0uNzA2LjIzNSAxLjQ4MiAxLjQ4MiAwIDAgMC0uNDE1LjVsLS4wODMuMTY1LS4wNy0uODAzaC0xLjM1N3Y1LjQzMmgxLjQ1NFY1Ljc2NGEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiAyLjEySDQuMTE0djcuMzE3aDEuNDY4VjYuNzloMS4zM2MuODQ0IDAgMS40OTUtLjIwOCAxLjk4LS42MzguNDg1LS40My43Mi0uOTgzLjcyLTEuNjlzLS4yMzUtMS4yNjEtLjcyLTEuNjljLS40NDMtLjM4OS0xLjAzOS0uNjEtMS43NzMtLjYzOGwtLjIyMS0uMDE0Wm05Ljg0NyAxLjc3NGMtLjgwMyAwLTEuNDI2LjI2My0xLjg4My43NzYtLjQxNi40Ny0uNjM3IDEuMDY3LS42NzkgMS43NzN2LjMzM2MwIC44MTguMjIyIDEuNDgzLjY3OSAxLjk5NS40NTcuNTEzIDEuMDguNzc2IDEuODgzLjc3Ni44MDQgMCAxLjQyNy0uMjYzIDEuODg0LS43NzYuNDE1LS40Ny42MzctMS4wNTMuNjc4LTEuNzczdi0uMzMzYzAtLjgxNy0uMjIxLTEuNDgzLS42NzgtMS45OTUtLjQ1Ny0uNTEzLTEuMDgtLjc3Ni0xLjg4NC0uNzc2Wk0xOC4wMDMgMGE2IDYgMCAwIDEgMCAxMkgwVjMuNDIzQTMuNDIgMy40MiAwIDAgMSAzLjQyIDBoMTQuNTgzWiIvPjwvc3ZnPg==";function el(e){let t=an(),{onTranslateTheMainPage:n,onUserConfigChange:a,request:r,onTranslateLocalHtmlFile:u,onSwitchTranslationMode:o,onTranslateLocalSubtitleFile:i,onSetBuildinConfig:s,pageStatus:c,openEbookBuilderPage:l,openPricingPage:m,openEbookViewerPage:g,config:f,openAboutPage:d,onTranslateTheWholePage:b,onToggleEnabled:T,openOptionsPage:h,ontranslateToThePageEndImmediately:C,onSetPageLanguage:v,onToggleTranslate:O,onTranslateLocalPdfFile:B,onTranslatePdf:x,onRestorePage:L,ctx:M,currentUrl:w,currentLang:E,onClose:I,onTranslatePage:F,onSetLocalConfig:A,onMouseTriggerChanged:_,errorMsg:j,disabledButton:N,noPermissionPDF:D}=e,y=a,[S,R]=De(""),[$,z]=De(j),[Y,q]=De(null),[ae,Q]=De(null),{t:G,lang:pe}=zt(),fe=70;pe.startsWith("zh")||(fe=75);let re=null,K=null,oe=null,me=null,ce=null,ye=null,Se=null,xe=null,Z=null,ke=null,Pe=null,Re=null;Ge(()=>{Nt.get(en,null).then(H=>{H?(q(H),Q(Qt(H))):Q(!1)}).catch(H=>{Q(!1)})},[]);let Ne=!0,st=Zt();if(f){st&&f&&(Ne=f.generalRule.showSponsorOnSafari);let{translationService:H,translationServices:de,translationUrlPattern:$e}=f;Fn[H]&&(xe=Hi("translationService",H,M)),de&&de[H]?Re=de[H]||{}:Re={};try{Z=new URL(w||"")}catch{}if(w&&rg(w)){ke=og(Z.hostname),Pe=ig(w);let{matches:Me,excludeMatches:_e}=$e;K=Me.includes(ke),re=Me.includes(Z.hostname),me=_e.includes(ke),oe=_e.includes(Z.hostname),ye=Me.includes(Pe),Se=_e.includes(Pe)}}if(f&&E&&E!=="auto"){let{translationLanguagePattern:H}=f,{matches:de}=H;de.includes(E)?ce=!0:ce=!1}let Ft=H=>{H.preventDefault(),h()},da=H=>{y(de=>(de.alpha?R("Success disable alpha!"):R("Success enable alpha!"),{...de,alpha:!de.alpha}))},Ut=H=>{y(de=>({...de,translationMode:H})),o(H)},An=()=>{y(H=>({...H,translationArea:"body"})),b()},Un=()=>{y(H=>({...H,translationArea:"main"})),n()},Ie=(H,de,$e,Me)=>{if(H==="default"){y(Cn=>{let Jt={...Cn.translationUrlPattern};return{...Cn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...Cn.translationUrlPattern,matches:Yn([Z?.hostname,ke,w],Jt.matches),excludeMatches:Yn([Z?.hostname,ke,w],Jt.excludeMatches)}}});return}let _e=H,Dn=_e==="matches"?"excludeMatches":"matches";Z&&y(Cn=>{let Jt={...Cn.translationUrlPattern};return Jt[_e]=xs(de,Jt[_e]),Me.length>0&&(Jt[_e]=Yn(Me,Jt[_e])),Jt[Dn]=Yn($e,Jt[Dn]),{...Cn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...Cn.translationUrlPattern,...Jt}}}),_e==="matches"&&c==="Original"?setTimeout(()=>{F(),I()},100):_e==="excludeMatches"&&c==="Translated"&&setTimeout(()=>{L(),I()},100)},Ht=H=>{if(!H){y(Me=>{let _e={...Me.translationLanguagePattern};return{...Me,translationLanguagePattern:{...Me.translationLanguagePattern,matches:Yn(E,_e.matches),excludeMatches:Yn(E,_e.excludeMatches)}}});return}let de=H,$e=de==="matches"?"excludeMatches":"matches";E&&y(Me=>{let _e={...Me.translationLanguagePattern};return _e[de]=xs(E,_e[de]),_e[$e]=Yn(E,_e[$e]),{...Me,translationLanguagePattern:{...Me.translationLanguagePattern,..._e}}}),de==="matches"&&c==="Original"&&setTimeout(()=>{F(),I()},100)},rt=Z?.pathname.toLowerCase().endsWith(".pdf"),He=G("translate");c==="Translated"||c==="Error"?He=G("show-original"):c==="Original"?rt?qu()&&Z.protocol==="file:"||D?He=G("translate-firefox-local-pdf"):he()?He=G("noSupportTranslate-pdf"):He=G("translate-pdf"):He=G("translate"):He=G(c);let Yt=G("translateToThePageEndImmediately");(c==="Original"||c==="Translated")&&(f.shortcuts.toggleTranslatePage&&(O4()&&M.rule.fingerCountToToggleTranslagePageWhenTouching>=2?He+=` (${G(`fingers.${M.rule.fingerCountToToggleTranslagePageWhenTouching}`)})`:He+=` (${f.shortcuts.toggleTranslatePage})`),f.shortcuts.toggleTranslateToThePageEndImmediately&&(Yt+=` (${f.shortcuts.toggleTranslateToThePageEndImmediately})`));let _t=[];M&&(_t=Hc(M,"translationService"));let Hn=H=>{H.preventDefault(),I()},gt=Fm(M.config.translationService,M.config.targetLanguage),dn=ye||re||K,ze=()=>ye?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!ye,onChange:H=>{let de=H.target.checked;Ie(de?"matches":"default",Pe,[Pe],[])}}),G("alwaysTranslateSomePage")]}):re?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!re,onChange:H=>{let de=H.target.checked;Ie(de?"matches":"default",Z.hostname,[Z.hostname,ke,Pe],[ke])}}),G("alwaysTranslateSomeSiteOrWildSite")]}):K?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!K,onChange:H=>{let de=H.target.checked;Ie(de?"matches":"default",ke,[Pe,Z.hostname,ke],[Z.hostname])}}),G("alwaysTranslateSomeSiteOrWildSite")]}):null;return V("div",{children:[V("div",{class:"popup-container px-6 pt-6 max-content",children:[V("div",{class:"text-sm",children:[V("div",{class:"flex justify-between mb-3 items-center",children:[V("label",{class:"inline-block text-label",children:[G("popupSourceLanguage"),"\uFF1A"]}),V(zn,{maxWidth:186,items:Xt.map(H=>({label:Fo(H,f.interfaceLanguage),value:H,selected:H===M.sourceLanguage,onSelected:de=>{v(de.value)}}))})]}),f&&f.targetLanguage&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[G("popupTarget"),"\uFF1A"]}),V(zn,{maxWidth:186,items:gt.filter(H=>H!=="auto").map(H=>({label:Fo(H,f.interfaceLanguage),value:H,selected:H===f.targetLanguage,onSelected:de=>{y($e=>({...$e,targetLanguage:de.value}))}}))})]}),xe&&_t.length>0&&V(Kt,{children:[V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[G("popupService"),"\uFF1A"]}),V(zn,{maxWidth:186,items:_t.map(H=>({label:`${G("translationServices."+H.id)}${H.ok?"":" "+(" "+(!ae&&!st&&H.providers&&H.providers.length>0?G("goLoginOrAction"):G("needAction")))}`,value:H.id,selected:H.selected,onSelected:de=>{let $e=_t.find(Me=>Me.id===de.value);if($e.ok){if(y(Me=>({...Me,translationService:$e.id})),c!="Translated")return;$e.props.length===0?setTimeout(()=>{F()},1):setTimeout(()=>{L()},1)}else y(Me=>({...Me,translationService:$e.id})),setTimeout(()=>{h()},100)}}))})]}),Re&&xe.props.length>0&&xe.props.map((H,de)=>V("div",{class:"pl-4 text-sm",children:V(J0,{field:H,value:Re[H.name],onChange:$e=>{y(Me=>{let _e=Me.translationServices||{},Dn=_e[xe.id]||{};return setTimeout(()=>{L()},1),{...Me,translationServices:{..._e,[xe.id]:{...Dn,[H.name]:$e}}}})}},"field-"+de)},"service"+de))]}),Z&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:G("forThisSite")}),V(zn,{maxWidth:186,items:[{label:G("default"),value:"default",selected:re===!1&&oe===!1&&!K&&!me&&!ye&&!Se,onSelected:()=>{Ie("default",Z.hostname,[],[]);let H=Z.hostname,de=M.localConfig.tempTranslationUrlMatches||[],$e=de.filter(_e=>_e.match!==H),Me=!1;$e.length!==de.length&&(Me=!0),Me&&A({...M.localConfig,tempTranslationUrlMatches:[...$e]})}},Pe&&{label:G("alwaysTranslateSomeSite",{hostname:G("currentUrl")}),value:"matchesUrl",selected:ye,onSelected:()=>{Ie("matches",Pe,[Pe],[])}},{label:G("alwaysTranslateSomeSite",{hostname:Z.hostname}),value:"matches",selected:re,onSelected:H=>{Ie(H.value,Z.hostname,[Z.hostname,ke,Pe],[ke])}},ke&&{label:G("alwaysTranslateSomeSite",{hostname:ke}),value:"matchesWild",selected:K,onSelected:()=>{Ie("matches",ke,[Pe,Z.hostname,ke],[Z.hostname])}},Pe&&{label:G("neverTranslateSomeSite",{hostname:G("currentUrl")}),value:"excludeMatchesUrl",selected:Se,onSelected:()=>{Ie("excludeMatches",Pe,[Pe],[])}},{label:G("neverTranslateSomeSite",{hostname:Z.hostname}),value:"excludeMatches",selected:oe,onSelected:H=>{Ie(H.value,Z.hostname,[Z.hostname,ke,Pe],[ke])}},ke&&{label:G("neverTranslateSomeSite",{hostname:ke}),value:"excludeMatchesWild",selected:me,onSelected:()=>{Ie("excludeMatches",ke,[Z.hostname,Pe,ke],[Z.hostname])}}].filter(Boolean)})]}),_&&Rr()&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[G("mouse-translate"),"\uFF1A"]}),V(zn,{maxWidth:186,items:Mu.filter(H=>!(Mu.includes(f.generalRule.mouseHoverHoldKey)&&H==="OtherCustom")).map(H=>{let de=G("mouseHoldKey",{key:H}),$e=Mu.includes(f.generalRule.mouseHoverHoldKey),Me=H===f.generalRule.mouseHoverHoldKey;return H==="Auto"?de=G("mouseHoldKeyAuto"):H==="Off"?de=G("mouseHoldKeyOff"):H==="OtherCustom"?de=$e?G("mouseHoldKeyOther"):G("mouseHoldKeyCustomKey",{key:f.generalRule.mouseHoverHoldKey}):H==="Other"&&(de=G("mouseHoldKeyOther")),$e||H==="OtherCustom"&&(Me=!0),{label:de,value:H,selected:Me,onSelected:_e=>{_e.value==="Other"?h("#interface"):_(_e.value)}}})})]})]}),V("div",{class:"",children:V("button",{class:"py-2 mt-1 mb-5 main-button ",onClick:()=>{rt?x&&x():O()},"aria-busy":c==="Translating",disabled:N||c==="Translating",children:He})}),V("div",{class:"text-sm",children:S}),V("div",{class:`pb-2 text-sm ${$?"":"display-none"}`,children:$}),V("div",{class:"flex items-center justify-between flex-wrap",children:[dn?V(ze,{}):E&&E!=="auto"?V("label",{for:"alwaysTranslateThisLanugage",class:"text-sm text-label text-overflow-ellipsis max-w-20",children:[V("input",{type:"checkbox",id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",checked:!!ce,onChange:H=>{let de=H.target.checked;Ht(de?"matches":void 0)}}),G("alwaysTranslateSomeLanguage",{language:Fo(E,f.interfaceLanguage,!1,!0)})]}):V("span",{}),V("div",{class:`flex flex-end flex-grow ${$?"display-none":""}`,children:V("span",{class:"immersive-translate-no-select muted text-sm",onClick:ag(7)(da),children:["V",t,f.enabled?null:V("a",{href:"#",onClick:T,children:[" ","(",G("hasBeenDisabled"),")"]})]})})]})]}),V("footer",{children:[V("div",{class:"px-6 text-label",children:V(Q0,{isShowError:!1,request:r,setStorageBuildinConfig:s})}),V("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer text-label",children:[V("div",{class:"flex flex-row items-center justify-center secondary clickable",style:{width:70},onClick:Ft,children:[V(V0,{}),V("span",{class:"ml-1",children:G("options")})]}),Ne?V("a",{title:G(ae?"popup.openProForPro":"popup.openPro"),target:"_blank",href:ae?ji:zi,children:V("img",{src:ae?Z0:X0})}):ae&&V("a",{title:G(ae?"popup.openProForPro":"popup.openPro"),target:"_blank",href:ae?ji:zi,children:V("img",{src:ae?Z0:X0})}),V(Y0,{label:G("more"),showArrow:!0,maxWidth:fe,onSelected:H=>{H.value==="openPremium"?(globalThis.open(Ar),I()):H.value==="changeToOnlyTranslationMode"?Ut("translation"):H.value==="changeToDualTranslationMode"?Ut("dual"):H.value==="translateTheWholePage"?b():H.value==="translateToThePageEndImmediately"?C():H.value==="translateTheMainPage"?n():H.value==="showTranslationOnly"||(H.value==="translateLocalPdfFile"?B&&B():H.value==="translateLocalHtmlFile"?u&&u():H.value==="translateLocalSubtitleFile"?i&&i():H.value==="donate"?(globalThis.open(f.donateUrl),I()):H.value==="feedback"?(globalThis.open(f.feedbackUrl),I()):H.value==="options"?(h(),I()):H.value==="changeToTranslateTheWholePage"?An():H.value==="changeToTranslateTheMainPage"?Un():H.value==="about"?d():H.value==="toggleEnabled"?T():H.value==="openEbookViewer"?g():H.value==="openEbookBuilder"?l():H.value==="goPro"&&m())},menus:[f.translationMode==="dual"&&{label:"\u{1F524} "+G("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},f.translationMode==="translation"&&{label:"\u{1F521} "+G("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},f.translationArea==="main"&&{label:"\u{1F480} "+G("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},f.translationArea==="body"&&{label:"\u{1F4D6} "+G("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},{label:"\u26A1 "+Yt,value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+G("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+G("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+G("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},!he()&&{label:"\u{1F310} "+G("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+G("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},ae===!1&&Ne&&{label:"\u{1F451} "+G("upgradeToPro"),value:"goPro"},{label:"\u2764\uFE0F "+G(Ne?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})]})]})}p();p();p();p();var tl={get:(e,t,n)=>{let a=t===void 0?e:{[e]:t};return se.storage[n].get(a)},set:(e,t,n)=>se.storage[n].set({[e]:t})};function Go(e,t,n){let[a]=De(()=>typeof t=="function"?t():t),[r]=De(n),[u,o]=De(a),[i,s]=De(!1),[c,l]=De("");Ge(()=>{tl.get(e,a,r).then(g=>{g[e]&&o(g[e]),s(!0),l("")}).catch(g=>{s(!1),l(g)})},[e,a,r]);let m=sa(g=>{let f=typeof g=="function"?g(u):g;U.debug("new settings",f),tl.set(e,f,r).then(()=>{o(f),s(!0),l("")}).catch(d=>{o(f),s(!1),l(d)})},[r,e,u]);return[u,m,i,c]}p();function nl(e,t,n){let a=[];return function(){let[u,o,i,s]=Go(e,t,n),c=sa(l=>{for(let m of a)m(l)},[]);return Ge(()=>(a.push(o),()=>{a.splice(a.indexOf(o),1)}),[o]),[u,c,i,s]}}function sg(e,t){return nl(e,t,"sync")}var tb="userConfig",nb=null,ab=sg(tb,nb);function Vo(e){let[t,n,a,r]=ab(),u=sa(o=>{let i=typeof o=="function"?o(t):o;i&&(i.updatedAt=new Date().toISOString()),n(i),e&&e(i)},[t]);return[t,u,a,r,n]}p();p();async function lg(e){try{let t=new Date;U.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await se.storage.local.set({[Lc]:t.toISOString()}),await rb(),he()||await cg()}catch(t){U.error("run cron task failed",t)}}async function rb(){try{let e=await En(),t=await ie({url:kr}),n=e.buildinConfigUpdatedAt,a=new Date(n),r=t.buildinConfigUpdatedAt,u=new Date(r),o=t.minVersion,i=se.runtime.getManifest().version;gu(i,o)?u>a?(await se.storage.local.set({buildinConfig:t}),U.info(`sync remote rules success, latest: ${new Date(r).toLocaleString()}`)):U.debug(`no need to sync rules, latest: ${a}`):U.info(`local version is too old, please update to ${o} or later`)}catch(e){U.error("sync rules error: ",e)}}p();p();p();p();p();var al;function gl(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function xg(e,t=","){return e.map(gl).join(t)}var Eg=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function Jo(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function Qo(e,t="@media "){return t+Gt(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(a=>`(${a}-width:${n[a]})`).join(" and "))).join(",")}function Gt(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function ub(){}var bt={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function Tg(e){return e.match(/[-=:;]/g)?.length||0}function ll(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(Tg(e),15)<<18}var ob=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function pl({n:e,i:t,v:n=[]},a,r,u){e&&(e=gl({n:e,i:t,v:n})),u=[...Gt(u)];for(let i of n){let s=a.theme("screens",i);for(let c of Gt(s&&Qo(s)||a.v(i))){var o;u.push(c),r|=s?67108864|ll(c):i=="dark"?1073741824:c[0]=="@"?ll(c):(o=c,1<<~(/:([a-z-]+)/.test(o)&&~ob.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:r,r:u,i:t}}var fl=new Map;function dg(e){if(e.d){let t=[],n=rl(e.r.reduce((a,r)=>r[0]=="@"?(t.push(r),a):r?rl(a,u=>rl(r,o=>{let i=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(i){let s=u.indexOf(i[1]);return~s?u.slice(0,s)+i[0]+u.slice(s+i[1].length):ul(u,o)}return ul(o,u)})):a,"&"),a=>ul(a,e.n?"."+Eg(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((a,r)=>r+"{"+a+"}",e.d)}}function rl(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,a,r)=>t(a)+r)}function ul(e,t){return e.replace(/&/g,t)}var mg=new Intl.Collator("en",{numeric:!0});function ib(e,t){for(var n=0,a=e.length;n>1;0>=Cg(e[r],t)?n=r+1:a=r}return a}function Cg(e,t){let n=e.p&bt.o;return n==(t.p&bt.o)&&(n==bt.b||n==bt.o)?0:e.p-t.p||e.o-t.o||mg.compare(gg(e.n),gg(t.n))||mg.compare(pg(e.n),pg(t.n))}function gg(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function pg(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function ol(e,t){return Math.round(parseInt(e,16)*t)}function la(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:a}=t,r=a?`var(${a})`:n;if(e.includes(""))return e.replace("",r);if(e[0]=="#"&&(e.length==4||e.length==7)){let u=(e.length-1)/3,o=[17,1,.062272][u-1];return`rgba(${[ol(e.substr(1,u),o),ol(e.substr(1+u,u),o),ol(e.substr(1+2*u,u),o),r]})`}return r=="1"?e:r=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${r})`)}function wg(e,t,n,a,r=[]){return function u(o,{n:i,p:s,r:c=[],i:l},m){let g=[],f="",d=0,b=0;for(let C in o||{}){var T,h;let v=o[C];if(C[0]=="@"){if(!v)continue;if(C[1]=="a"){g.push(...kg(i,s,bl(""+v),m,s,c,l,!0));continue}if(C[1]=="l"){for(let O of Gt(v))g.push(...u(O,{n:i,p:(T=bt[C[7]],s&~bt.o|T),r:C[7]=="d"?[]:c,i:l},m));continue}if(C[1]=="i"){g.push(...Gt(v).map(O=>({p:-1,o:0,r:[],d:C+" "+O})));continue}if(C[1]=="k"){g.push({p:bt.d,o:0,r:[C],d:u(v,{p:bt.d},m).map(dg).join("")});continue}if(C[1]=="f"){g.push(...Gt(v).map(O=>({p:bt.d,o:0,r:[C],d:u(O,{p:bt.d},m).map(dg).join("")})));continue}}if(typeof v!="object"||Array.isArray(v))C=="label"&&v?i=v+Jo(JSON.stringify([s,l,o])):(v||v===0)&&(C=C.replace(/[A-Z]/g,O=>"-"+O.toLowerCase()),b+=1,d=Math.max(d,(h=C)[0]=="-"?0:Tg(h)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(h)?+!!RegExp.$1||-!!RegExp.$2:0)+1),f+=(f?";":"")+Gt(v).map(O=>m.s(C,vg(""+O,m.theme)+(l?" !important":""))).join(";"));else if(C[0]=="@"||C.includes("&")){let O=s;C[0]=="@"&&(C=C.replace(/\bscreen\(([^)]+)\)/g,(B,x)=>{let L=m.theme("screens",x);return L?(O|=67108864,Qo(L,"")):B}),O|=ll(C)),g.push(...u(v,{n:i,p:O,r:[...c,C],i:l},m))}else g.push(...u(v,{p:s,r:[...c,C]},m))}return g.unshift({n:i,p:s,o:Math.max(0,15-b)+1.5*Math.min(d||15,15),r:c,d:f}),g.sort(Cg)}(e,pl(t,n,a,r),n)}function vg(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,a,r,u,o="")=>{let i=t(r,o);return typeof i=="function"&&/color|fill|stroke/i.test(r)?la(i):""+Gt(i).filter(s=>Object(s)!==s)})}function hl(e,t){let n,a=[];for(let r of e)r.d&&r.n?n?.p==r.p&&""+n.r==""+r.r?(n.c=[n.c,r.c].filter(Boolean).join(" "),n.d=n.d+";"+r.d):a.push(n={...r,n:r.n&&t}):a.push({...r,n:r.n&&t});return a}function cl(e,t,n=bt.u,a,r){let u=[];for(let o of e)for(let i of function(s,c,l,m,g){s={...s,i:s.i||g};let f=function(d,b){let T=fl.get(d.n);return T?T(d,b):b.r(d.n,d.v[0]=="dark")}(s,c);return f?typeof f=="string"?({r:m,p:l}=pl(s,c,l,m),hl(cl(bl(f),c,l,m,s.i),s.n)):Array.isArray(f)?f.map(d=>{var b,T;return{o:0,...d,r:[...Gt(m),...Gt(d.r)],p:(b=l,T=d.p??l,b&~bt.o|T)}}):wg(f,s,c,l,m):[{c:gl(s),p:0,o:0,r:[]}]}(o,t,n,a,r))u.splice(ib(u,i),0,i);return u}function kg(e,t,n,a,r,u,o,i){return hl((i?n.flatMap(s=>cl([s],a,r,u,o)):cl(n,a,r,u,o)).map(s=>s.p&bt.o&&(s.n||t==bt.b)?{...s,p:s.p&~bt.o|t,o:0}:s),e)}function sb(e,t,n,a){var r;return r=(u,o)=>{let{n:i,p:s,r:c,i:l}=pl(u,o,t);return n&&kg(i,t,n,o,s,c,l,a)},fl.set(e,r),e}function il(e,t,n){if(e[e.length-1]!="("){let a=[],r=!1,u=!1,o="";for(let i of e)if(!(i=="("||/[~@]$/.test(i))){if(i[0]=="!"&&(i=i.slice(1),r=!r),i.endsWith(":")){a[i=="dark:"?"unshift":"push"](i.slice(0,-1));continue}i[0]=="-"&&(i=i.slice(1),u=!u),i.endsWith("-")&&(i=i.slice(0,-1)),i&&i!="&"&&(o+=(o&&"-")+i)}o&&(u&&(o="-"+o),t[0].push({n:o,v:a.filter(lb),i:r}))}}function lb(e,t,n){return n.indexOf(e)==t}var fg=new Map;function bl(e){let t=fg.get(e);if(!t){let n=[],a=[[]],r=0,u=0,o=null,i=0,s=(c,l=0)=>{r!=i&&(n.push(e.slice(r,i+l)),c&&il(n,a)),r=i+1};for(;i1?m.slice(0,-1)+Jo(JSON.stringify([m,g])):m+"("+xg(g)+")",bt.a,g,/@$/.test(m))],a)}l=n.lastIndexOf("(",l-1)}n.length=l+1}else/[~@]/.test(c)&&e[i+1]=="("&&a.unshift([])}s(!0),fg.set(e,t=a[0])}return t}function Sg(e,t,n){return t.reduce((a,r,u)=>a+n(r)+e[u+1],e[0])}function Ag(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?Sg(e,t,n=>sl(n).trim()):t.filter(Boolean).reduce((n,a)=>n+sl(a),e?sl(e):"")}function sl(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=Ag(e[0],e.slice(1)))&&(n+=" "+t);else for(let a in e)e[a]&&(n+=" "+a);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var VM=Dg("@"),YM=Dg("~");function Dg(e){return new Proxy(function(n,...a){return t("",n,a)},{get(n,a){return a in n?n[a]:function(r,...u){return t(a,r,u)}}});function t(n,a,r){return xg(bl(n+e+"("+Ag(a,r)+")"))}}function dl(e,t){return Array.isArray(e)?hg(Sg(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?hg(e):[e]}var cb=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function hg(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],a=[n[0]],r=[];for(;t=cb.exec(e);)t[4]&&(n.shift(),r.shift()),t[3]?(r.unshift(t[3]),n.unshift({}),a.push(r.reduce((u,o)=>({[o]:u}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),a.push(r.reduce((u,o)=>({[o]:u}),n[0]))),n[0][t[1]]=t[2]);return a}function Lg(e,...t){var n;let a=dl(e,t),r=(a.find(u=>u.label)?.label||"css")+Jo(JSON.stringify(a));return n=(u,o)=>hl(a.flatMap(i=>wg(i,u,o,bt.o)),r),fl.set(r,n),r}var JM=new Proxy(function(e,t){return bg("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,a){return bg(t,n,a)}}});function bg(e,t,n){return{toString(){return Lg({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function ee(e,t,n){return[e,db(t,n)]}function db(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,a)=>({[e]:t?t(n,a):ml(n,1)}):n=>e||{[n[1]]:ml(n,2)}}function ml(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function te(e,t,n,a){return[e,mb(t,n,a)]}function mb(e,t,n){let a=typeof t=="string"?(r,u)=>({[t]:n?n(r,u):r._}):t||(({1:r,_:u},o,i)=>({[r||i]:u}));return(r,u)=>{let o=Pg(e||r[1]),i=u.theme(o,r.$$)??fr(r.$$,o,u);if(i!=null)return r._=ml(r,0,i),a(r,u,o)}}function it(e,t={},n){return[e,gb(t,n)]}function gb(e={},t){return(n,a)=>{let{section:r=Pg(n[0]).replace("-","")+"Color"}=e,[u,o]=pb(n.$$);if(!u)return;let i=a.theme(r,u)||fr(u,r,a);if(!i||typeof i=="object")return;let{opacityVariable:s=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:c=r.replace("Color","Opacity"),property:l=r,selector:m}=e,g=a.theme(c,o||"DEFAULT")||o&&fr(o,c,a),f=t||(({_:b})=>{let T=pu(l,b);return m?{[m]:T}:T});n._={value:la(i,{opacityVariable:s||void 0,opacityValue:g||void 0}),color:b=>la(i,b),opacityVariable:s||void 0,opacityValue:g||void 0};let d=f(n,a);if(!n.dark){let b=a.d(r,u,i);b&&b!==i&&(n._={value:la(b,{opacityVariable:s||void 0,opacityValue:g||"1"}),color:T=>la(b,T),opacityVariable:s||void 0,opacityValue:g||void 0},d={"&":d,[a.v("dark")]:f(n,a)})}return d}}function pb(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function pu(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function fr(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=Yo(vg(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function Pg(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function Yo(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",a,r="")=>Yo(n)+a+Yo(r)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var QM=Symbol();var Mg=new Proxy(ub,{apply(e,t,n){return al(n[0])},get(e,t){let n=al[t];return typeof n=="function"?function(){return n.apply(al,arguments)}:n}});var ZM=function e(t){return new Proxy(function(n,...a){return yg(t,"",n,a)},{get(n,a){return a==="bind"?e:a in n?n[a]:function(r,...u){return yg(t,a,r,u)}}})}();function yg(e,t,n,a){return{toString(){let r=dl(n,a),u=Eg(t+Jo(JSON.stringify([t,r])));return(typeof e=="function"?e:Mg)(Lg({[`@keyframes ${u}`]:dl(n,a)})),u}}}p();p();p();p();p();var Fg={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...Vt(4,"rem",4,.5,.5),...Vt(12,"rem",4,5),14:"3.5rem",...Vt(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Fe("blur"),backdropBrightness:Fe("brightness"),backdropContrast:Fe("contrast"),backdropGrayscale:Fe("grayscale"),backdropHueRotate:Fe("hueRotate"),backdropInvert:Fe("invert"),backdropOpacity:Fe("opacity"),backdropSaturate:Fe("saturate"),backdropSepia:Fe("sepia"),backgroundColor:Fe("colors"),backgroundImage:{none:"none"},backgroundOpacity:Fe("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...Vt(200,"",100,0,50),...Vt(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Fe("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Fe("spacing"),borderWidth:{DEFAULT:"1px",...on(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Fe("colors"),caretColor:Fe("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...Vt(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Fe("borderColor"),divideOpacity:Fe("borderOpacity"),divideWidth:Fe("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...fu(2,6),...fu(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Fe("spacing"),gradientColorStops:Fe("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...fu(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...fu(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...Vt(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...Vt(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Fe("spacing"),placeholderColor:Fe("colors"),placeholderOpacity:Fe("opacity"),outlineColor:Fe("colors"),outlineOffset:on(8,"px"),outlineWidth:on(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Fe("colors"),ringOffsetWidth:on(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...on(8,"px")},rotate:{...on(2,"deg"),...on(12,"deg",3),...on(180,"deg",45)},saturate:Vt(200,"",100,0,50),scale:{...Vt(150,"",100,0,50),...Vt(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Fe("spacing"),scrollPadding:Fe("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...on(2,"deg"),...on(12,"deg",3)},space:Fe("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:Vt(2),textColor:Fe("colors"),textDecorationColor:Fe("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...on(8,"px")},textUnderlineOffset:{auto:"auto",...on(8,"px")},textIndent:Fe("spacing"),textOpacity:Fe("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Fe("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...fu(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...Vt(50,"",1,0,10),auto:"auto"}};function fu(e,t){let n={};do for(var a=1;at(e)}var hF={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${Fg.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${Fg.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},yF=[ee("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:fr(`[${t}]`,"",n)}}})),ee("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),te("aspect-","aspectRatio"),ee("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:a,padding:r}=t("container"),u={width:"100%",marginRight:a&&"auto",marginLeft:a&&"auto",...o("xs")};for(let i in n){let s=n[i];typeof s=="string"&&(u[Qo(s)]={"&":{maxWidth:s,...o(i)}})}return u;function o(i){let s=r&&(typeof r=="string"?r:r[i]||r.DEFAULT);if(s)return{paddingRight:s,paddingLeft:s}}}),te("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),ee("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),ee("box-(border|content)","boxSizing",({1:e})=>e+"-box"),ee("hidden",{display:"none"}),ee("table-(auto|fixed)","tableLayout"),ee(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",ee("isolate","isolation"),ee("object-(contain|cover|fill|none|scale-down)","objectFit"),te("object-","objectPosition"),ee("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",Zo),ee("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),ee("(static|fixed|absolute|relative|sticky)","position"),te("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),te("-?(top|bottom|left|right)(?:$|-)","inset"),ee("(visible|collapse)","visibility"),ee("invisible",{visibility:"hidden"}),te("-?z-","zIndex"),ee("flex-((row|col)(-reverse)?)","flexDirection",_g),ee("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),te("(flex-(?:grow|shrink))(?:$|-)"),te("(flex)-"),te("grow(?:$|-)","flexGrow"),te("shrink(?:$|-)","flexShrink"),te("basis-","flexBasis"),te("-?(order)-"),"-?(order)-(\\d+)",te("grid-cols-","gridTemplateColumns"),ee("grid-cols-(\\d+)","gridTemplateColumns",Og),te("col-","gridColumn"),ee("col-(span)-(\\d+)","gridColumn",Ig),te("col-start-","gridColumnStart"),ee("col-start-(auto|\\d+)","gridColumnStart"),te("col-end-","gridColumnEnd"),ee("col-end-(auto|\\d+)","gridColumnEnd"),te("grid-rows-","gridTemplateRows"),ee("grid-rows-(\\d+)","gridTemplateRows",Og),te("row-","gridRow"),ee("row-(span)-(\\d+)","gridRow",Ig),te("row-start-","gridRowStart"),ee("row-start-(auto|\\d+)","gridRowStart"),te("row-end-","gridRowEnd"),ee("row-end-(auto|\\d+)","gridRowEnd"),ee("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>Zo(_g(e))),ee("grid-flow-(dense)","gridAutoFlow"),te("auto-cols-","gridAutoColumns"),te("auto-rows-","gridAutoRows"),te("gap-x(?:$|-)","gap","columnGap"),te("gap-y(?:$|-)","gap","rowGap"),te("gap(?:$|-)","gap"),"(justify-(?:items|self))-",ee("justify-","justifyContent",Bg),ee("(content|items|self)-",e=>({["align-"+e[1]]:Bg(e)})),ee("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),te("p([xytrbl])?(?:$|-)","padding",hr("padding")),te("-?m([xytrbl])?(?:$|-)","margin",hr("margin")),te("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),ee("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),te("w-","width"),te("min-w-","minWidth"),te("max-w-","maxWidth"),te("h-","height"),te("min-h-","minHeight"),te("max-h-","maxHeight"),te("font-","fontWeight"),te("font-","fontFamily",({_:e})=>typeof(e=Gt(e))[1]=="string"?{fontFamily:Tn(e)}:{fontFamily:Tn(e[0]),...e[1]}),ee("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),ee("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),ee("italic","fontStyle"),ee("not-italic",{fontStyle:"normal"}),ee("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...ca({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),te("tracking-","letterSpacing"),te("leading-","lineHeight"),ee("list-(inside|outside)","listStylePosition"),te("list-","listStyleType"),ee("list-","listStyleType"),te("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),it("placeholder-",{property:"color",selector:"&::placeholder"}),ee("text-(left|center|right|justify|start|end)","textAlign"),ee("text-(ellipsis|clip)","textOverflow"),te("text-opacity-","textOpacity","--tw-text-opacity"),it("text-",{property:"color"}),te("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),te("indent-","textIndent"),ee("(overline|underline|line-through)","textDecorationLine"),ee("no-underline",{textDecorationLine:"none"}),te("underline-offset-","textUnderlineOffset"),it("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),te("decoration-","textDecorationThickness"),ee("decoration-","textDecorationStyle"),ee("(uppercase|lowercase|capitalize)","textTransform"),ee("normal-case",{textTransform:"none"}),ee("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),ee("align-","verticalAlign"),ee("whitespace-","whiteSpace"),ee("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),ee("break-words",{overflowWrap:"break-word"}),ee("break-all",{wordBreak:"break-all"}),ee("break-keep",{wordBreak:"keep-all"}),it("caret-",{opacityVariable:!1,opacitySection:"opacity"}),it("accent-",{opacityVariable:!1,opacitySection:"opacity"}),ee("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${Sa(e," ")},var(--tw-gradient-stops))`),it("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),it("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),it("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),ee("bg-(fixed|local|scroll)","backgroundAttachment"),ee("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),ee(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),ee("bg-blend-","backgroundBlendMode"),ee("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),te("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),it("bg-",{section:"backgroundColor"}),te("bg-","backgroundImage"),te("bg-","backgroundPosition"),ee("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",Zo),te("bg-","backgroundSize"),te("rounded(?:$|-)","borderRadius"),te("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${Sa(n[0])}-radius`]:t,[`border-${Sa(n[1])}-radius`]:t}}),ee("border-(collapse|separate)","borderCollapse"),te("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),ee("border-(solid|dashed|dotted|double|none)","borderStyle"),te("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...ca({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),it("border-([xytrbl])-",{section:"borderColor"},hr("border","Color")),it("border-"),te("border-([xytrbl])(?:$|-)","borderWidth",hr("border","Width")),te("border(?:$|-)","borderWidth"),te("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),ee("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),ee("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),te("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${Sa(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${Sa(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),it("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),te("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),it("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),te("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),ee("ring-inset",{"--tw-ring-inset":"inset"}),it("ring-",{property:"--tw-ring-color"}),te("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...ca({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":la(t("ringOffsetColor","","#fff")),"--tw-ring-color":la(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),it("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),te("shadow(?:$|-)","boxShadow",({_:e})=>({...ca({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Tn(e),"--tw-shadow-colored":Tn(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),te("(opacity)-"),ee("mix-blend-","mixBlendMode"),...Rg(),...Rg("backdrop-"),te("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Tn(e),transitionTimingFunction:e._=="none"?void 0:Tn(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:Tn(t("transitionDuration",""))})),te("duration(?:$|-)","transitionDuration","transitionDuration",Tn),te("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Tn),te("delay(?:$|-)","transitionDelay","transitionDelay",Tn),te("animate(?:$|-)","animation",(e,{theme:t,h:n,e:a})=>{let r=Tn(e),u=r.split(" "),o=t("keyframes",u[0]);return o?{["@keyframes "+(u[0]=a(n(u[0])))]:o,animation:u.join(" ")}:{animation:r}}),"(transform)-(none)",ee("transform",xl),ee("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":Ng(e=="gpu")})),te("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...xl()})),te("-?(rotate)-","rotate",yl),te("-?(translate-[xy])-","translate",yl),te("-?(skew-[xy])-","skew",yl),ee("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",Zo),"(appearance)-",te("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",te("(cursor)-"),"(cursor)-",ee("snap-(none)","scroll-snap-type"),ee("snap-(x|y|both)",({1:e})=>({...ca({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),ee("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),ee("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),ee("snap-(normal|always)","scroll-snap-stop"),ee("scroll-(auto|smooth)","scroll-behavior"),te("scroll-p([xytrbl])?(?:$|-)","padding",hr("scroll-padding")),te("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",hr("scroll-margin")),ee("touch-(auto|none|manipulation)","touch-action"),ee("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...ca({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),ee("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),ee("outline",{outlineStyle:"solid"}),ee("outline-(dashed|dotted|double)","outlineStyle"),te("-?(outline-offset)-"),it("outline-",{opacityVariable:!1,opacitySection:"opacity"}),te("outline-","outlineWidth"),"(pointer-events)-",te("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],ee("select-(none|text|all|auto)","userSelect"),it("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),it("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),te("stroke-","strokeWidth"),ee("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),ee("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function Zo(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function _g(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function Sa(e,t="-"){let n=[];for(let a of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[a]);return n.join(t)}function Tn(e){return e&&""+(e._||e)}function Bg({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function hr(e,t=""){return({1:n,_:a})=>{let r={x:"lr",y:"tb"}[n]||n+n;return r?{...pu(e+"-"+Sa(r[0])+t,a),...pu(e+"-"+Sa(r[1])+t,a)}:pu(e+t,a)}}function Rg(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let a of t)n[`--tw-${e}${a}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...ca(n),[`${e}filter`]:t.map(a=>`var(--tw-${e}${a})`).join(" ")},[`(${e}filter)-(none)`,ee(`${e}filter`,n),...t.map(a=>te(`${a[0]=="h"?"-?":""}(${e}${a})(?:$|-)`,a,({1:r,_:u})=>({[`--tw-${r}`]:Gt(u).map(o=>`${a}(${o})`).join(" "),...n})))]}function yl({1:e,_:t}){return{["--tw-"+e]:t,...xl()}}function xl(){return{...ca({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":Ng()}),transform:"var(--tw-transform)"}}function Ng(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function Ig({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function Og({1:e}){return`repeat(${e},minmax(0,1fr))`}function ca(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}p();p();var Xo=globalThis||(typeof window<"u"?window:self),bb=Object.create,Tl=Object.defineProperty,yb=Object.getOwnPropertyDescriptor,xb=Object.getOwnPropertyNames,Eb=Object.getPrototypeOf,Tb=Object.prototype.hasOwnProperty,Cb=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),wb=(e,t)=>{for(var n in t)Tl(e,n,{get:t[n],enumerable:!0})},El=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of xb(t))!Tb.call(e,r)&&r!==n&&Tl(e,r,{get:()=>t[r],enumerable:!(a=yb(t,r))||a.enumerable});return e},vb=(e,t,n)=>(El(e,t,"default"),n&&El(n,t,"default")),zg=(e,t,n)=>(n=e!=null?bb(Eb(e)):{},El(t||!e||!e.__esModule?Tl(n,"default",{value:e,enumerable:!0}):n,e)),Ug=Cb((e,t)=>{(function(n,a){typeof define=="function"&&define.amd?define([],a):typeof e<"u"?a():(a(),n.FileSaver={})})(e,function(){"use strict";function n(c,l){return typeof l>"u"?l={autoBom:!1}:typeof l!="object"&&(l={autoBom:!l}),l.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function a(c,l,m){var g=new XMLHttpRequest;g.open("GET",c),g.responseType="blob",g.onload=function(){s(g.response,l,m)},g.onerror=function(){},g.send()}function r(c){var l=new XMLHttpRequest;l.open("HEAD",c,!1);try{l.send()}catch{}return 200<=l.status&&299>=l.status}function u(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var l=document.createEvent("MouseEvents");l.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(l)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Xo=="object"&&Xo.global===Xo?Xo:void 0,i=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(c,l,m){var g=o.URL||o.webkitURL,f=document.createElement("a");l=l||c.name||"download",f.download=l,f.rel="noopener",typeof c=="string"?(f.href=c,f.origin===location.origin?u(f):r(f.href)?a(c,l,m):u(f,f.target="_blank")):(f.href=g.createObjectURL(c),setTimeout(function(){g.revokeObjectURL(f.href)},4e4),setTimeout(function(){u(f)},0))}:"msSaveOrOpenBlob"in navigator?function(c,l,m){if(l=l||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(n(c,m),l);else if(r(c))a(c,l,m);else{var g=document.createElement("a");g.href=c,g.target="_blank",setTimeout(function(){u(g)})}}:function(c,l,m,g){if(g=g||open("","_blank"),g&&(g.document.title=g.document.body.innerText="downloading..."),typeof c=="string")return a(c,l,m);var f=c.type==="application/octet-stream",d=/constructor/i.test(o.HTMLElement)||o.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||f&&d||i)&&typeof FileReader<"u"){var T=new FileReader;T.onloadend=function(){var v=T.result;v=b?v:v.replace(/^data:[^;]*;/,"data:attachment/file;"),g?g.location.href=v:location=v,g=null},T.readAsDataURL(c)}else{var h=o.URL||o.webkitURL,C=h.createObjectURL(c);g?g.location=C:location.href=C,g=null,setTimeout(function(){h.revokeObjectURL(C)},4e4)}});o.saveAs=s.saveAs=s,typeof t<"u"&&(t.exports=s)})}),Hg={};wb(Hg,{default:()=>ei});var kb=zg(Ug());vb(Hg,zg(Ug()));var{default:jg,...Sb}=kb,ei=jg!==void 0?jg:Sb;p();p();p();p();p();p();var r_=Qe().REDIRECT_URL;function Bb(){let[e,t]=De(null);return Ge(()=>{Jn().then(a=>{t(a)})},[]),[e,a=>{t(a),kn(a)}]}async function Rb(e,t,n){try{if(t===null)return"noupdate";let a=await Nb(e),r=await Jn();r.accountLastSyncedAt=Date.now(),U.debug("settings",t),U.debug("local settings.updatedAt",t.updatedAt),U.debug("remote settings.updatedAt",a.updatedAt),U.debug("last synced at",r.accountLastSyncedAt);let u=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(u=!0),!u&&t.updatedAt>a.updatedAt&&(u=!0),U.debug("isUpload",u),u)return await jb(e,t),await kn(r),"upload";let o=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(o=!0),!o&&t.updatedAt0&&Nt.remove(en),a}}function $g(e,t){let n=Ob(),[a,r]=Bb();Ge(()=>{!n||!n.token||a&&a.proAutoSync===!1||Ib(n)&&Rb(n.token,e,t)},[e,n])}function Ib(e){return Qt(e)?!0:new Date(e.createTime){Nt.get(en,null).then(n=>{t(n)})},[t]),e}function Nb(e){return(location.href?.indexOf("popup.html")>0?ha:ie)({responseType:"json",url:Ni+"/v1/user/settings",method:"get",headers:{token:e}}).then(n=>n.data)}function jb(e,t){return(location.href?.indexOf("popup.html")>0?ha:ie)({responseType:"json",url:Ni+"/v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(a=>a.data)}function wl(e){let{onClose:t}=e,[n,a]=De("Original"),[r,u,o,i]=Vo(()=>{setTimeout(()=>{v("updateGlobalContext",!1)()},250)});$g(r,u);let[s,c]=De(null),[l,m]=De(globalThis.location.href),[g,f]=De("auto"),[d,b]=De(null),T=N=>{a(N.detail)},h=N=>{f(N);let D=ng(l,N,s.sourceLanguageUrlPattern);u(y=>({...y,sourceLanguageUrlPattern:D})),rn(N)},C=()=>{m(globalThis.location.href)};Ge(()=>(document.addEventListener(ku,T,!1),En().then(N=>{c(N);let D=ct();f(D);let y=qe();a(y),lg(N.interval)}),document.addEventListener("urlChange",C),()=>{document.removeEventListener("pageTranslatedStatus",T),document.removeEventListener("urlChange",C)}),[]),Ge(()=>{En().then(N=>{c(N)})},[r]),Ge(()=>{l&&s&&ka({url:l,config:s}).then(N=>{b(N)})},[l,s]);let v=(N,D,y={})=>()=>{dr({method:N,data:y||{}}),D&&t()},O=()=>{t()},B=()=>{u(N=>({...N,enabled:!N.enabled})),setTimeout(()=>{O()},50)},x=()=>{Cl(),setTimeout(()=>{O()},50)},L=()=>{Cl(),setTimeout(()=>{O()},50)},M=(N="")=>{br(!0,N),setTimeout(()=>{t()},50)},w=()=>{ai(jc),setTimeout(()=>{globalThis.close()},50)},E=()=>{ni(),setTimeout(()=>{t()},50)},I=()=>{ri(),setTimeout(()=>{t()},50)},F=()=>{Gg(),setTimeout(()=>{t()},50)},A=()=>{ui(),setTimeout(()=>{t()},50)},_=()=>{Vg(),setTimeout(()=>{t()},50)},j=N=>{u(D=>({...D,generalRule:{...D.generalRule,mouseHoverHoldKey:N}}))};return!s||!d?null:V(el,{openEbookViewerPage:I,openEbookBuilderPage:A,onSwitchTranslationMode:N=>{v("switchTranslationMode",!0,{mode:N})()},onTranslateLocalHtmlFile:F,onTranslateLocalSubtitleFile:_,request:ie,onClose:O,onToggleEnabled:B,onTranslateTheWholePage:v("translateTheWholePage",!0),openOptionsPage:M,openPricingPage:w,onToggleTranslate:v("toggleTranslatePage",!0),onTranslateTheMainPage:v("translateTheMainPage",!0),ontranslateToThePageEndImmediately:v("translateToThePageEndImmediately",!0),onTranslatePage:v("translatePage",!0),onRestorePage:v("restorePage",!1),onTranslatePdf:x,openAboutPage:E,onTranslateLocalPdfFile:L,onSetPageLanguage:h,onUserConfigChange:u,config:s,pageStatus:n,ctx:d,currentUrl:l,currentLang:g,onSetLocalConfig:ti,onSetBuildinConfig:Kg,onMouseTriggerChanged:j})}function zb(e,t){for(let n of t){if(he()&&!qu()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}var vl={position:"right",right:0,top:335},Pt={...vl},si=!1,Aa=null,Sn=null,li=null,kl=null,yr=null,Sl=null,Yg=6,oi,ii,Qg=null,Zg=null;async function Xg(){let e=Qe();Sl=await np(),Pt=Sl.pagePopupConfig||Pt;let t=document.createElement("div");t.id="immersive-translate-popup",t.setAttribute("style","all: initial"),document.documentElement.appendChild(t);let n=t.attachShadow({mode:"open"});kl=n;let a=[e.IMMERSIVE_TRANSLATE_PICO_CSS,e.IMMERSIVE_TRANSLATE_COMMON_CSS,e.IMMERSIVE_TRANSLATE_POPUP_CSS,e.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);zb(n,[a]);let r=document.createElement("div");r.innerHTML=e.IMMERSIVE_TRANSLATE_POPUP_HTML,n.appendChild(r),Aa=n.querySelector("#immersive-translate-popup-container");let o=n.querySelector("#immersive-translate-popup-btn");Sn=o,li=n.querySelector("#mount"),Aa.setAttribute("style",Al(Pt)),Ml(),o.addEventListener("mousedown",ep),o.addEventListener("touchstart",qb),globalThis.addEventListener("resize",s=>{Aa.setAttribute("style",Al(Pt))})}function Ub(){cu(null,li),li.style.display="none",Sn.style.display="block",yr=setTimeout(()=>{Ml(!0)},2e3)}function Jg(e){let t=e.querySelector("#mount"),n=()=>{Ub()},a=r=>{r&&r.target&&r.target.id==="immersive-translate-popup-overlay"&&n()};(async()=>{let r=await En();cu(V(tg,{lang:r.interfaceLanguage,fallbackLang:"zh-CN",translations:L3,children:V("div",{onClick:a,id:"immersive-translate-popup-overlay",class:"immersive-translate-popup-overlay",children:V("div",{class:"immersive-translate-popup-wrapper",style:Hb(),children:V(wl,{onClose:n})})})}),t)})().then(()=>{Sn.style.display="none",li.style.display="block"})}function Hb(){let e=Dl(),t=e.height,{position:n,top:a,left:r}=Pt,u={position:"fixed"},o=300,i=300,s=100;return mc()&&(n=vl.position,a=vl.top),n==="right"||n==="left"?(u.top=a-s,u.top+o>=t?(u.bottom=30,delete u.top):u.top<=10&&(u.top=10),n==="right"?u.right=0:n==="left"&&(u.left=0)):(n==="top"||n==="bottom")&&(u.left=r-s,u.left+i>=e.width?(u.right=0,delete u.left):u.left<=10&&(u.left=0),n==="top"?u.top=0:n==="bottom"&&(u.bottom=0)),u}function Dl(){return{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}function ep(e){Zg=Aa.getAttribute("style"),oi=e.pageX,ii=e.pageY,yr&&clearTimeout(yr),si=!1,Sn.style.opacity="1",Sn.style.transform="none",Qg=Sn.getAttribute("style"),globalThis.addEventListener("mousemove",Ll),globalThis.addEventListener("mouseup",Pl),globalThis.addEventListener("touchmove",tp),globalThis.addEventListener("touchend",ci),globalThis.addEventListener("touchcancel",ci)}function qb(e){e.preventDefault&&e.preventDefault(),ep(e.changedTouches[0])}function tp(e){Ll(e.changedTouches[0])}function ci(e){e.preventDefault&&e.preventDefault(),Pl(e.changedTouches[0])}function Ll(e){e.preventDefault&&e.preventDefault(),si=!0,Aa.setAttribute("style",`left:${e.clientX}px;top:${e.clientY}px;transform:scale(1.6);`)}function Pl(e){e.preventDefault&&e.preventDefault(),$b(),yr&&clearTimeout(yr),oi=oi||0,ii=ii||0;let t=Math.abs(e.pageX-oi),n=Math.abs(e.pageY-ii);t{Ml(!0)},2e3)}function Ml(e=!1){Sn.style.opacity="0.4";let t="";Pt.position==="left"?t="translateX(-40%)":Pt.position==="right"?t="translateX(40%)":Pt.position==="top"?t="translateY(-40%)":Pt.position==="bottom"&&(t="translateY(40%)"),Sn.style.transform=t,e&&(Sn.style.transition="transform 0.2s ease-in-out, opacity 0.2s ease-in-out")}function $b(){globalThis.removeEventListener("mousemove",Ll),globalThis.removeEventListener("mouseup",Pl),globalThis.removeEventListener("touchmove",tp),globalThis.removeEventListener("touchend",ci),globalThis.removeEventListener("touchcancel",ci)}function Al(e){let t=Kb(e);return Object.keys(t).map(n=>typeof t[n]=="number"?`${n}:${t[n]}px;`:"").join("")}function Kb(e){let{position:t,...n}=e,a=Dl(),r={};return t==="left"?(r.left=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="right"?(r.right=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="top"?(r.top=0,n.left>a.width?r.left=a.width-100:r.left=n.left):t==="bottom"&&(r.bottom=0,n.left>a.width?r.left=a.width-100:r.left=n.left),r}var ap=!1;async function rp(){ap||(ap=!0,Xg().catch(e=>{U.error("init popup error",e)}))}var up=!1,lp=[()=>{Ye.unbind()}],_l=[...lp],Gb=xt(async()=>{await br()},50),Vb=xt(async()=>{await ni()},50),Yb=xt(async()=>{await ui()},50),Jb=xt(async()=>{await ri()},50),cp=xt(e=>{dr({method:e,data:{trigger:"userscript_menu"}})},50),Qb=xt(()=>{di();let e=new CustomEvent(Wn,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},200),Zb=xt(()=>{pi();let e=new CustomEvent(Wn,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},200),Xb=xt(()=>{gi();let e=new CustomEvent(Wn,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},200);function ey(e,t){let n=e.document;if(up)return;if(up=!0,he()||yp(),n.addEventListener("securitypolicyviolation",my),document.addEventListener(ge+"DocumentMessageUser",fp),document.addEventListener(ge+"DocumentMessageUpdateUser",hp),document.addEventListener(ge+"ChangeSuccessService",bp.bind(null,t)),document.addEventListener(vu,ly.bind(null,t)),n.addEventListener(ge+"EbookLoaded",dy),n.addEventListener(Ec,cy),n.addEventListener(Tc,gy.bind(null,t)),n.addEventListener("click",r=>{ry(r,t)}),he()&&(globalThis.top!=globalThis.self?e.addEventListener("message",ny,!1):n.addEventListener(Wn,ty)),globalThis.top===globalThis.self){let r=ea.rootIframe(Pu);r.handleAsk("getRateLimitDelay",Md),r.handleAsk("throttleRequest",xm)}}function dp(e,t){py(),ey(t,e);let n=t.document,a=ay.bind(null,e);e.rule.fingerCountToToggleTranslagePageWhenTouching>=2&&n.addEventListener("touchstart",a),_l.push(()=>{n.removeEventListener("touchstart",a)}),he()&&globalThis.top===globalThis.self&&(N0(e.config),fy(e.config)),Zt()&&N0(e.config)}function ty(e){rp()}function ny(e){let t=e;t&&t.data&&t.data.payload&&t.data.author===wu&&mr(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})}function ay(e,t){let n=t;n.touches.length==e.rule.fingerCountToToggleTranslagePageWhenTouching?Qb():n.touches.length===e.rule.fingerCountToToggleTranslationMaskWhenTouching?Xb():n.touches.length===e.rule.fingerCountToToggleTranslagePageOnlyTranslationWhenTouching&&Zb()}function ry(e,t){let n=e.target;if(!n||!n.getAttribute){Fl(n);return}let a=n.getAttribute("data-immersive-translate-event");a&&Je(a,[{name:a}],{...t,sourceLanguage:"none"});let r=n.getAttribute(`data-${J}-action`);if(r)if(r==="retry"){e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),mi(),Fl(n,!0);return}else if(r=="toast-error"){let u=n.getAttribute(`data-${J}-tooltip-text`);Bl(gp.bind(null,t,u||""))}else r=="close-search"&&(e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),Bl(iy.bind(null,t)));Fl(n)}async function op(e=!1){let t=document.querySelector(`.${J}-search-recomend`);if(!t||(t.remove(),!e))return;let n=await ln();n.generalRule||(n.generalRule={}),n.generalRule.enableSearchEnhancement=!1,await sn(n)}async function uy(){let e=await ln(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,a=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(a=e.translationUrlPattern.matches||[]),!n&&a.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await sn(e)}async function oy(){let e=await ln(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await sn(e)}var ip=0;function Bl(e){let t=Date.now();if(t-ip<2e3)return;ip=t;let n=`${J}-modal`,a=document.querySelector(`.${n}`);if(a?.style.display=="block")return;let r=`${J}-modal-title`,u=`${J}-modal-body`,o=`${J}-modal-footer`;if(a){let i=a.querySelector(`.${r}`),s=a.querySelector(`.${o}`),c=a.querySelector(`.${u}`);e(a,i,c,s)}else{a=document.createElement("div"),a.className=n+" notranslate",a.id=n;let i=document.createElement("div");i.className=J+"-modal-content notranslate",a.appendChild(i);let s=document.createElement("span");s.textContent="\xD7",s.className=J+"-close",i.appendChild(s);let c=document.createElement("div");c.className=r+" notranslate",i.appendChild(c);let l=document.createElement("div");l.className=u+" notranslate",i.appendChild(l);let m=document.createElement("div");m.className=o,i.appendChild(m),document.body.appendChild(a),s.onclick=function(){a.style.display="none"},window.onclick=function(g){g.target==a&&(a.style.display="none")},e(a,c,l,m)}setTimeout(()=>{sy()},100)}function iy(e,t,n,a,r){let u=mp.bind(null,e);n.innerHTML=`
${Ko} ${u("disableConfirm")}
`,a.innerHTML="";let o=document.querySelector(`div[data-${J}-cancel-desc]`),i=document.createElement("p");i.innerHTML=o?Le.sanitize(o.textContent||""):Le.sanitize(u("searchEnhancementNotes")),i.style.cssText="margin-bottom:12px",a.appendChild(i);let s=[{id:"enable-search-enhancement",value:"enable",text:u("enableSearchEnhancement")},{id:"disable-once",value:"once",text:u("disableOnce")},{id:"disable-global",value:"global",text:u("disableGlobal")}];for(let f=0;f${u("option")}`})),a.appendChild(c);let l=a.querySelector(`.${J}-open-enhancement`);l&&(l.onclick=function(){xp(!0)});let m=document.createElement("button");m.innerText=u("closeModal"),m.className=`${J}-btn ${J}-cancel-btn`;let g=document.createElement("button");g.className=`${J}-btn`,g.innerText=u("saveSettings"),r.innerHTML="",r.appendChild(m),r.appendChild(g),m.onclick=function(){t.style.display="none"},g.onclick=function(){let f=a.getElementsByTagName("input"),d="";for(let b=0;b
1. \u5207\u6362\u5230 ${u} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458`:i+=`

\u5982\u679C\u60A8\u6709\u7591\u95EE\uFF0C\u8BF7\u8054\u7CFB support@immersivetranslate.com`,Bl(gp.bind(null,e,i))}catch(a){U.warn("parse message error",a)}}function cy(e){let t=e;if(U.debug("receive third party message",t),t&&t.detail)try{let n=JSON.parse(t.detail);n&&n.type&&(n.type==="retryFailedParagraphs"?hy({method:"retryFailedParagraphs"}):n.type==="updateCommands"?Ep(n.data):n.type==="toggleEnableDefaultAlwaysTranslatedUrls"?uy():n.type==="toggleEnableInputTranslation"?oy():cp(n.type))}catch(n){U.warn("parse message error",n)}}function dy(e){setTimeout(()=>{pp()},10)}function my(e){Ee.HAS_CSP_ERROR="1"}function gy(e,t){let n=event.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&Je(n.name,[{name:n.name}],{...e})}function py(){_l.forEach(e=>{e()}),_l=lp}function fy(e){if(he()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=Vu.commands,r=[...Object.keys(t).filter(u=>u==="toggleTranslatePage").map(u=>{let o=t[u].description,i=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(i=cr(`browser.${o.slice(6,-2)}`,e.interfaceLanguage)),{id:u,title:i}}),{id:Mi,title:cr("browser.openEbookViewer",e.interfaceLanguage),key:"e"},{id:Fi,title:cr("browser.openEbookBuilder",e.interfaceLanguage),key:"m"},{id:Li,title:cr("browser.openOptionsPage",e.interfaceLanguage),key:"o"},{id:Pi,title:cr("browser.openAboutPage",e.interfaceLanguage),key:"a"}];for(let u of r)GM.registerMenuCommand(u.title,()=>{u.id===Li?Gb():u.id===Pi?Vb():u.id===Fi?Yb():u.id===Mi?Jb():cp(u.id)},u.key)}}function hy(e){mr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{U.error("send content message request failed",e,n)});let t=new CustomEvent(Wn,{detail:e});globalThis.document.dispatchEvent(t)}p();var Da={};async function Rl(){let t=[...document.querySelectorAll(".source-text")].map(a=>a.textContent).join(""),n=await Ke({text:t,minLength:200,pageLangs:[pa(),"en"]});return rn(n),n}async function Tp(e){Lt("Translating");let t=ct(),n=uo(),a=[...document.querySelectorAll(".source-text")];if(wo(e,t))return;let r=a.filter(u=>u.innerText?.trim()).map((u,o)=>{let i=u.parentElement?.parentElement?.querySelector(".target-text");return at(u,"id",o+""),i&&(rr(i,o)?.remove(),i.appendChild(uu(e,o))),{text:u.innerText||"",id:o,from:t,to:e.targetLanguage,url:"https://google.com",fromByClient:n}});document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await In({sentences:r},e,(u,o,i)=>{let s=i.id,c=rr(document.body,s);if(!c)return;let l=c.parentElement;l&&(c.remove(),u?(l.innerHTML=Le.sanitize(`${u.message}`),Da[s]={ok:!1,sentence:i}):o&&(l.innerHTML=Le.sanitize(o.text),Da[s]={ok:!0,sentence:i}),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!u}})})))})}catch(u){throw u}finally{Lt("Translated")}}async function Cp(e){Lt("Translating"),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(Da),n=[],a=[];for(let r of t){let u=Da[r];if(!u.ok){let i=document.querySelector(`#error-id-${r}`);if(i){let s=i.parentElement;i.remove(),s&&(delete Da[r],s.appendChild(uu(e,r)),a.push(u.sentence))}}}try{await In({sentences:a},e,(r,u,o)=>{let i=o.id,s=rr(document.body,i);if(!s)return;let c=s.parentElement;c&&(s.remove(),r?(c.innerHTML=Le.sanitize(`${r.message}`),Da[i]={ok:!1,sentence:o}):u&&(c.innerHTML=Le.sanitize(u.text),Da[i]={ok:!0,sentence:o}),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!r}})})))})}catch(r){throw r}finally{Lt("Translated")}}function Il(){Lt("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}p();var Ol={};async function wp(){let e=[...document.querySelectorAll("iframe")],t="";for(let a of e){let r=a.contentDocument;if(!r)continue;let u=r.body;if(u&&(t=t+u.innerText||"",t.length>1e3))break}let n=await Ke({text:t,pageLangs:["en"]});return rn(n),n}async function vp(e){Lt("Translating"),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(Ol),n=[];for(let a of t){let r=Ol[a];if(r.error){let o=r.commonAncestorContainer.querySelector(`[${Su}='${a}']`);o&&o.remove(),n.push(r)}}try{await Do(n,e,e.config.translationMode)}catch{}finally{Lt("Translated")}}function kp(){let e=[...document.querySelectorAll("iframe")];for(let t of e){let n=t.contentDocument;if(!n)continue;let a=n.querySelectorAll("."+qt);for(let r of a)r.remove()}Lt("Original")}async function Sp(e){Lt("Translating");let t=Wt(),n=[...document.querySelectorAll("iframe")],a=[],r=[];for(let i of n){let s=i.contentDocument;if(!s)continue;or(s,e);let c=s.body;if(!c)continue;let l=un(e);l.isModifyImage=!1,oa({id:t,container:c,filterRule:l,onParagraph:m=>{a.push(m)}})}let u=Co(e.config.translationServices[e.translationService]?.placeholderDelimiters),o=1;for(let i of a){let s=ko(i.flatNodes,{isPreWhitespace:i.isPreWhitespace||!1,delimiters:u,stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(l=>l.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)});if(!s)continue;i.variables=s?.variables||{},i.text=s?.text,i.id=(o++).toString();let c=await F0(i,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:u,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});c&&(r.push(c),Ol[c.id]=c)}a=[],document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await Do(r,e,e.config.translationMode)}catch{}finally{Lt("Translated")}}p();var by=new AbortController,{signal:yy}=by,Hl=0,ql=0,Nl=!1,jl=0,hu=!1,La,Ap=0,Pa=[];function fi(e,t){xy();let n=e,a=n.config,r=a.generalRule.mouseHoverHoldKey==="Off",u=a.generalRule.mouseHoverHoldKey==="Auto",o=xt(l=>{if(Nl==!1&&Math.abs(l.clientX-Hl)+Math.abs(l.clientY-ql)>3&&(jl<2?jl+=1:Nl=!0),Hl=l.clientX,ql=l.clientY,u||hu&&!La){let m=Fp(n.rule,t);if(m){if(Wl(m))return;Lp(n,m)}}},u?700:300),i=l=>{let m=l.target;Wl(m)||Lp(n)},s=l=>{let m=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",g=Ye.getPressedKeyCodes();if(g.length>1&&Ye[m]&&(Ap=Date.now(),hu=!1),g.length===1&&Ye[m]){let f=Date.now();hu=!0,La&&clearTimeout(La),La=setTimeout(()=>{let d=Ap-f;d>0&&d<=150?hu=!1:i(l),La=void 0},150)}};if(Pa.push(()=>{La&&clearTimeout(La)}),r)return;zl("mousemove",o,t),Pa.push(()=>{t.removeEventListener("mousemove",o)});function c(){Nl=!1,jl=0,o.cancel()}if(u)zl("blur",c,t),Pa.push(()=>{t.removeEventListener("blur",c)});else{let l=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",m=["ctrl","alt","shift","cmd","command","option","control"];zl("keyup",Dp,t),Pa.push(()=>{t.removeEventListener("keyup",Dp)}),m.includes(l)?Ye("*","mouseHover",s):Ye(a.generalRule.mouseHoverHoldKey,"mouseHover",i),Ye.setScope("mouseHover"),Pa.push(()=>{Ye.deleteScope("mouseHover")})}}function xy(){Pa.forEach(e=>e()),Pa=[]}function Dp(e){hu=!1}function zl(e,t,n=window){return n.addEventListener(e,t,{signal:yy})}function Lp(e,t,n=window){if(t=t||Fp(e.rule,n),!t){U.debug("can not find selection part!");return}if(Wl(t)){U.debug("exclude dom");return}w3(e,t);let a=Mo();a?.currentUrl!==window.location.href&&(jn(),I0(e)),a&&(a.setupMouseHoverListener=fi);let r=un(e);r.excludeSelectors=[],r.selectors=[];let u=!1;oa({id:a.id,container:t,filterRule:r,force:!0,onParagraph:o=>{iu(a,o,!0).then(i=>{if(i&&!u){u=!0;let s=Date.now();je(wc,s),Je("mouse_hover_translate",[{name:"mouse_hover_translate"}],{...e,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function Fp(e,t){return Ey(Hl,ql,e,t)}function Ey(e,t,n,a){let r=Km(e,t,n,a);if(r==null)return;let u=()=>{let s=a.document.elementFromPoint(e,t);if(!s)return;let c=Gm(s,e,t);return c===s?s.nodeName==="BUTTON"?s:void 0:Mp(c,n)},o=()=>{try{r.setStartBefore(r.startContainer),r.setEndAfter(r.startContainer)}catch(c){U.debug("get mouse over word fail",c)}let s=r.getBoundingClientRect();if(!(s.left>e||s.rightt||s.bottomn[l]=[l,...n[l]||[]]);let a=t.inputStartingTriggerKeyAlias[t.inputStartingTriggerKey]||[];a.includes(t.inputStartingTriggerKey)||a.unshift(t.inputStartingTriggerKey),n[t.inputTargetLanguage]=[...a,...n[t.inputTargetLanguage]];let r=t.inputTrailingTriggerKeyTimeout;fa().any&&(r=t.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:t.inputTrailingTriggerKeyRepeatTimes,triggerKey:t.inputTrailingTriggerKey,triggerTimeout:r,codePrefix:t.inputStartingTriggerKey,codeAlias:n,flatAlias:Object.values(n).flat(),codePrefixAlias:t.inputStartingTriggerKeyAlias},o=0,i=Date.now();hi&&self.removeEventListener("keydown",hi),hi=s,self.addEventListener("keydown",hi);function s(l){if(xr||bi===!1)return;let m=l,g=m.target||m.srcElement,f=g?.tagName;(g?.isContentEditable||f=="INPUT"||f=="SELECT"||f=="TEXTAREA")&&(Ny(l,u.triggerKey,u.codePrefixAlias)?c(l):o=0)}async function c(l){Date.now()-i=u.triggerTimes&&ky()&&(o=0,vy(l,e,u))}jy(e)}function Ty({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let a=[],r=n[e]||[];r.includes(e)||r.unshift(e);for(let u of r){let o=t.map(i=>{let s=u+i;return r.includes(i)||(s+=" "),s});a.push(...o)}return new RegExp(a.join("|"))}function Bp(e,t){for(let[n,a]of Object.entries(t))if(a.includes(e))return n;return""}var Er;function Cy(e){let t=e.parentElement;if(!t)return;Er=document.createElement("div"),Er.className=J+"-input",Er.innerHTML=`
`,t.appendChild(Er);let n=t,a=!1;do{let r=getComputedStyle(n).position;if(["fixed","absolute","relative"].includes(r)){a=!0;break}n=n.parentElement}while(n);if(n=t,!a)do{if(getComputedStyle(n).position==="static"){n.style.position="relative";break}n=n?.parentElement||null}while(n)}function wy(){Er&&Er.remove()}async function vy(e,t,n){if(!xr)try{let g=function(){i=t.config.inputTargetLanguage;let d=o.split(" ")[0];d&&d[0]&&(d=d[0].toLowerCase()+d.slice(1)),d.trim()&&n.flatAlias.includes(d)?(i=Bp(d,n.codeAlias),u=o.slice(d.length+1)):u=o},f=function(){i="";let d=Ty(n),b=o.split(d);if(b.length<2)return;if(u=b[b.length-1],r=b[0],b.length>2){let h=o.lastIndexOf(u),C=o.slice(0,h).lastIndexOf(b[b.length-2]);r=o.slice(0,C+b[b.length-2].length)}if(r.endsWith(n.codePrefix))return;let T=o.slice(r.length+1,o.indexOf(u)).trim();if(i=Bp(T,n.codeAlias),!i){U.warn("not found alias",T);return}},a=document.activeElement;xr=!0;let r="",u="",o=Tr(a)||"",i=t.config.inputTargetLanguage;n.codePrefix==="none"?g():(f(),!i&&t.config.enableInputTranslationWithoutTriggerKey&&g());let s=Ay(u,n),c=await Ke({text:s,pageLangs:["en"]});U.debug("translateContent",s,c);let l={text:s||"",id:0,from:c,to:i,url:"https://google.com",fromByClient:c};if(!l.text)return;if(t.config.isShowInputTranslationConsent&&!_p){_p=!0;let d=await zy(t);if(e.target&&e.target.focus(),d==="open_settings"){br(!0,"#input");return}else if(d==="open_learn_more"){ai("https://immersivetranslate.com/docs/input/");return}else if(d==="disable_once"||d==="disable_forever"){if(bi=!1,d==="disable_forever"){let b=await ln();b.enableInputTranslation=!1,b.isShowInputTranslationConsent=!1,await sn(b)}else if(d==="disable_once"){let b=await ln();b.isShowInputTranslationConsent=!1,await sn(b)}return}else if(d==="close_disable_once"||d==="close_disable_forever"){if(bi=!1,d==="close_disable_forever"){let b=await ln();b.enableInputTranslation=!1,b.isShowInputTranslationConsent=!1,await sn(b)}return}else if(d==="enable"){let b=await ln();b.enableInputTranslation=!0,b.isShowInputTranslationConsent=!1,await sn(b)}else if(d==="close_enable"){let b=await ln();b.enableInputTranslation=!0,await sn(b)}}Cy(a),je(_i,Date.now());let m=await Ca(l,{...t,translationService:t.inputTranslationService});Oy(t),Iy(a,r+m.text),xr=!1}catch(a){throw xr=!1,a}finally{xr=!1,wy()}}function ky(){let e=document.activeElement;if(!e)return!1;if(yi(e)){let t=e.selectionStart||0,n=e.value.length,r=e.value.split(` -`).reverse()[0].trim(),u=n<=t;return U.debug("cursorPosition",t,"textLength",n),U.debug("input isTail",u,"tailHasText",r),u&&!!r}else{let t=window.getSelection();if(!t)return U.debug("No active selection found."),!1;if(t.rangeCount>0){let n=t.getRangeAt(0),a=n.startContainer;if(a.nodeType===Node.TEXT_NODE){let r=Sy(a,e);U.debug("Current text node:",a.textContent),U.debug("Cursor position within text node:",n.startOffset);let u=a.textContent?.length===n.startOffset&&r,o=a.textContent?.trim();return U.debug("editdiv isTail",u,"tailHasText",o),u&&!!o}else U.debug("Cursor is not within a text node.")}}return!1}function Sy(e,t){let n;function a(r){if(r.nodeType===Node.TEXT_NODE)n=r;else for(let u of r.childNodes)a(u)}return a(t),n==e}function Ay(e,t){let{triggerTimes:n,triggerKey:a}=t,r=0,u=" ";a.length==1?(r=n,u=a):a.toLowerCase()=="space"&&(r=n);let o=e.length;for(let i=e.length-1;i>=e.length-r;i--){if([10,8629].includes(e[i].charCodeAt(0))){o--;continue}if(![...t.codePrefixAlias[a]||[],u].includes(e[i]))break;o--}return e.length-o<3&&[".","\u3002"].includes(e[o-1])&&o--,e.slice(0,o)}function Dy(e,t){let n=t.innerHTML,a=Tr(t);return{html:n.replace(a,e),text:e}}function Rp(e,t,n=!1){let a=Tr(t);return n?a.trim().endsWith(e.text.trim()):a.trim()==e.text.trim()}function Tr(e){return e.value||e.innerText||e.textContent}async function Ma(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function Ly(e,t,n){await Ma(10);let a=new DataTransfer;e.forEach(r=>{r==="plain"&&a.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:a,bubbles:!0,cancelable:!0})),a.clearData(),await Ma(10)}async function Py(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await Ma(10))}async function My(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await Ma(20),(t.value||t.value==="")&&(t.value=e.text)}async function Fy(e,t){yi(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await Ma(20))}var _y=[Ly.bind(null,["plain"])];function By(e){let t;yi(e)?t=new InputEvent("beforeinput",{bubbles:!0,cancelable:!0,inputType:"deleteContent"}):t=new KeyboardEvent("keydown",{bubbles:!0,cancelable:!0,keyCode:8,which:8,location:0,key:"Backspace"}),e.dispatchEvent(t)}function yi(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function Ry(e){if(yi(e))return;e.focus();let t=window.getSelection();if(!t)return;let n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}async function Iy(e,t){await Ry(e),await Ma(50);let n=Dy(t,e);By(e),U.debug("clearContent",Tr(e)),await Ma(50);for(let a of[..._y,My,Fy,Py])if(await a(n,e),U.debug("setContent",a.name,Rp(n,e),Tr(e),n),Rp(n,e))break}function Oy(e){Je("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage}}],e)}function Ny(e,t,n){let a="";e&&e.code&&(a=e.code.toLowerCase());let r="";e&&e.key&&(r=e.key.toLowerCase());let u=e.keyCode,o=n[t]||[];return u===229&&t!=="space"?!1:!!(o.includes(a)||o.includes(r)||a===t||r===t)}async function jy(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await At(t,"")||Number(await At(_i,0))>0)return;let r=e.rule.inputTutorialsSelectors,u=e.rule.inputTutorialsText;if((r?.length||0)>0&&u)for(let o=0;o{Hy()},100),new Promise(c=>{let l=c;if(u){let L=u.querySelector(`.${n}`),M=u.querySelector(`.${r}`),w=u.querySelector(`.${a}`)}else{u=document.createElement("div"),u.className=t+" notranslate",u.id=t;let L=document.createElement("div");L.className=J+"-modal-content notranslate",u.appendChild(L);let M=document.createElement("span");M.textContent="\xD7",M.className=J+"-close",L.appendChild(M),o=document.createElement("div"),o.className=n+" notranslate",L.appendChild(o),s=document.createElement("div"),s.className=a+" notranslate",L.appendChild(s),i=document.createElement("div"),i.className=r,L.appendChild(i),document.body.appendChild(u),M.onclick=function(){v(),c("close")},window.onclick=function(w){w.target==u&&(u.style.display="none",c("close"))}}document.addEventListener("keydown",x);let m=Uy.bind(null,e);o.innerHTML=`
${Ko} ${m("modalEnableInputTranslationTitle")}
`,s.innerHTML="";let g=document.createElement("p");g.innerHTML=m("modalEnableInputTranslationDesc",{1:"https://immersivetranslate.com/docs/input/"}),g.style.cssText="margin-bottom:12px",s.appendChild(g);let f=document.createElement("div");f.style.cssText="margin-bottom: 12px;",f.innerHTML=Le.sanitize(m("disableInputTranslationTips",{option:`${m("option")}`,learnMore:`${m("learnMore")}`})),s.appendChild(f);let d=[{id:"enable-search-enhancement",value:"enable",text:m("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:m("disableOnce")},{id:"disable-global",value:"global",text:m("disableGlobal")}];for(let L=0;L{In({sentences:r},{...e,translationService:"google"},(s,c,l)=>{if(s)return o([]);let m=c?.id||0,g=n[m];g&&g.className==J+"-search-title-wrapper"&&(g.innerHTML+=Le.sanitize(`
${c?.text}
`,{ADD_ATTR:["target"]}))})})}function xi(e,t,n){t&&Je(t.key,[{name:t.key}],{...e,sourceLanguage:t.sourceLanguage||n})}function $l(e,t,n,a){let r=n.querySelectorAll('[translate="true"]');return qy(e,t,[...r],a),n}async function Kl(e,t){let a=(await ie({url:Wy(e),method:"GET",responseType:"raw",headers:{"cache-control":"no-cache","content-type":"application/xml","Sec-Fetch-Site":"none",accept:"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}})).body,u=new DOMParser().parseFromString(a,"text/xml"),o=[],i=u.querySelectorAll("item");for(let s=0;s${e.cancelDescription}
`:""} +`+t.rule.additionalInjectedCss)),i&&va(e,i,"immersive-translate-dynamic-injected-css")}p();async function c3(){let e="auto",t=[pa(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await Ke({text:er(document.body),pageLangs:t})),e}p();p();function d3(e,t){return[e,!e||e.endsWith("/")?"":"/",t,".json"].join("")}function C0(e,t){let n=e;return t&&Object.keys(t).forEach(a=>{let r=t[a];if(r===void 0)return;let u=h9(a);if(typeof r=="object"||u){let o=r;u&&typeof o=="string"&&(o={tag:"a",href:o});let i=`<${a}>`,s=n.indexOf(i);if(s!==-1){let c=o.tag||"a",l=n.indexOf(``);if(l!==-1){let m=n.substring(s+i.length,l),g=Object.keys(o).filter(f=>f!=="tag").map(f=>`${f}="${o[f]}"`).join(" ");n=n.replace(`${i}${m}`,`<${c} ${g}>${m}`)}}}else if(r){let o=new RegExp("{"+a+"}","gm");n=n.replace(o,r.toString())}}),n}function uu(e,t,n){let a=e[t];if(!a)return n;let r=n.split("."),u="";do{u+=r.shift();let o=a[u];o!==void 0&&(typeof o=="object"||!r.length)?(a=o,u=""):r.length?u+=".":a=n}while(r.length);return a}function Nn(e,t,n,a,r){if(!e.hasOwnProperty(n))return t;let u=uu(e,n,t);return u===t&&n!==a&&(u=uu(e,a,t)),C0(u,r)}function h9(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}p();p();function w0(e,t,n=[],a){let r=["notranslate"];return a&&r.push(_c),e&&(r.push(`${J}-target-translation-theme-${e}`),t?r.push(`${Ii}-theme-${e}`):r.push(`${Ri}-theme-${e}`)),n.length>0&&r.push(...n),t?r.push(Ii):r.push(Ri),r}function v0(e){let t=["notranslate",Mc];return e&&t.push(`${J}-target-translation-theme-${e}-inner`),t}function m3(e,t,n){let{rule:a,state:r}=n,{translationTheme:u}=r,{variables:o,isVertical:i}=e;o=o||[];let{text:s}=t,{wrapperPrefix:c,wrapperSuffix:l}=a,m=nr(n),g="afterend",f=m[0],d=m[1],b=`${f}(\\d+)${d}`,T=new RegExp(b,"g"),h=Le.sanitize(s);o.length>0&&(h=h.replace(T,B=>{let x=h.indexOf(B),L=h[x-1]===" ",M=h[x+B.length]===" ",w=B.slice(m[0].length,-m[1].length),E=Number(w);if(isNaN(E))return B;let I=o[Number(E)];if(I&&I.type==="element"){let F=I.value.outerHTML;return L||(F=" "+F),M||(F=F+" "),F}else U.error("variable type not supported",I,B);return B}));let C=w0(u,e.inline,a.translationClasses||[],e.preWhitespace);i&&C.push(Fc);let v=v0(u),O="";return a.translationBlockStyle&&(O=`style="${a.translationBlockStyle}"`),h=`<${n.rule.targetWrapperTag} ${O} class="${C.join(" ")}" ${wn}="1"><${a.targetWrapperTag} class="${v.join(" ")}" ${wn}="1">${h}`,e.inline||(c==="smart"?h=`
${h}`:h=`${c}${h}`),e.inline&&(c!=="smart"?h=`${c}${h}`:h=`<${a.targetWrapperTag} class="notranslate" ${wn}="1"> ${h}`),l==="smart"?h=`${h}`:h=`${h}${l}`,{html:h,position:g}}function ko(e,t){let n=null,{stayOriginalSelectors:a,delimiters:r,isPreWhitespace:u}=t,o=[],i={};for(let s=0;s2&&(T=`<${r[2]}${b}>`),i[b]=c,o.push({text:T,type:"variable"})}else o.push({text:c.textContent||"",type:"text"});else{let d=c.textContent||"";m&&(d=ua(k0(c))),o.push({text:d,type:"text"})}else if(c.nodeType===Node.ELEMENT_NODE)if(c&&Dt(c,a)){let b=Object.keys(i).length,T=`${r[0]}${b}${r[1]}`;r.length>2&&(T=`<${r[2]}${b}>`),i[b]=c;let h=S0(o).endsWith(" ")?" ":"",C=ua(c.innerText||c.textContent),v=ua(c.nextSibling).startsWith(" ")?" ":"",O=au(h+C+v),B=O[0]+T+O[1];if(h===" ")B=B.trimStart();else if(!B.startsWith(" ")){let x=au(c.previousSibling)[1];x===""&&(x=" "),B=x+B}o.push({text:B,type:"variable"})}else{let d=S0(o).endsWith(" ")?" ":"",b=ua(c.innerText||c.textContent);m&&(b=ua(k0(c)));let T=ua(c.nextSibling).startsWith(" ")?" ":"",h=au(d+b+T),C=h[0]+(c.innerText?.trim()||c.textContent?.trim()||"")+h[1];if(d===" ")C=C.trimStart();else{let v=au(c.previousSibling)[1];v===""&&(c.nodeName==="A"||c.nodeName==="CODE")&&(v=" "),C=v+C}o.push({text:C,type:"text"})}else{let d=S0(o).endsWith(" ")?" ":"",b="";c.textContent&&(b=ua(k0(c))),d===" "&&(b=b.trimStart()),o.push({text:b,type:"text"})}}if(o&&o.length>0){let s="";for(let c=0;c0&&(m=o[c-1].text),c2){let l=c[2];return b9({delimiterTag:l,targetText:e.targetText,inline:r,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:a}).html}else{let l=m3(s,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return l.html}}function k0(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function b9(e){let{delimiterTag:t,inline:n,translationClasses:a,targetWrapperTag:r,wrapperPrefix:u,variables:o,preWhitespace:i,wrapperSuffix:s,translationTheme:c,translationBlockStyle:l}=e;o=o||[];let m=e.targetText;m=Le.sanitize(m);let g=m,f=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),d=new RegExp(`<${t}(\\d+)>`);o.length>0&&(g=g.replace(f,C=>{let v=g.indexOf(C),O=g[v-1]===" ",B=g[v+C.length]===" ",x=C.match(d);if(!x)return C;let L=x[1],M=Number(L);if(isNaN(M))return C;let w=o[Number(M)];if(w&&w.type==="element"){let E=w.value.outerHTML;return O||(E=" "+E),B||(E=E+" "),E}else if(w&&w.type==="text"){let E=w.value;return O||(E=" "+E),B||(E=E+" "),E}else U.error("variable type not supported",w,C);return C}));let b=w0(c,n,a||[],i),T=v0(c),h="";return l&&(h=`style="${l}"`),g=`<${r} ${h} class="${b.join(" ")}" ${wn}="1"><${r} class="${T.join(" ")}" ${wn}="1">${g}`,n||(u==="smart"?g=`
${g}`:g=`${u}${g}`),n&&(u!=="smart"?g=`${u}${g}`:g=`<${r} class="notranslate" ${wn}="1"> ${g}`),s==="smart"?g=`${g}`:g=`${g}${s}`,{html:g,position:"afterend"}}function S0(e){let t=e[e.length-1];return t?t.text:""}function un(e){let t=e.rule.selectors,n=e.rule.excludeTags,a=e.rule.additionalExcludeTags,r=e.rule.excludeSelectors,u=e.rule.additionalExcludeSelectors;return e.state.translationArea==="body"&&(t=[],r=[]),{globalStyles:e.rule.globalStyles,globalAttributes:e.rule.globalAttributes,selectors:t,skipEditableCheck:e.rule.skipEditableCheck,lineBreakMaxTextCount:e.rule.lineBreakMaxTextCount,isTransformPreTagNewLine:e.rule.isTransformPreTagNewLine,excludeSelectors:n.concat(a).map(i=>i.toLowerCase()).filter(i=>i!=="code"&&i!=="img").concat(r).concat(u),blockSelectors:e.rule.allBlockTags.map(i=>i.toLowerCase()).concat(e.rule.extraBlockSelectors),extraBlockSelectors:e.rule.extraBlockSelectors,extraInlineSelectors:e.rule.extraInlineSelectors.concat(e.rule.additionalInlineSelectors),stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(i=>i.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)}}var y9={sanitize:e=>e};function Ao(e,t){e.interruptEffectDOM||(e.walkContainer({id:e.id,container:t,filterRule:un(e.ctx),onParagraph:ou.bind(null,e),onFrame:n=>{D0(e,n,!0)},onIgnoreElement:n=>{e.ignoreResizeObserver?.observe(n)}}),Na&&at(t,"consumeContainer",e.id))}function D0(e,t,n){try{if(e.injectCssToDocument(t,e.ctx),t instanceof HTMLIFrameElement){if(!ar(t))return;U.debug("onFrame fragment",t);let a=t.contentWindow?.document.body;a&&(sr(a,e,n),e.dynamicContainerObserver?.observe(a,{childList:!0,subtree:!0}))}else U.debug("onFrame shadowRoot",t.host),sr(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0})}catch{}}function sr(e,t,n=!0){let{globalStyles:a,globalAttributes:r}=un(t.ctx),u=0;if(s(t,e,n))return;if(xn(e)&&i(e)){o(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,l=>(xn(l)&&(a&&b0(l,a),r&&x0(l,r)),s(t,l,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(zt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode();){zt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let l=c.currentNode;if(i(l))for(o(l);;){if(c.nextSibling()){let m=c.currentNode;if(zt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),i(m)){o(m);continue}else break}if(!c.parentNode())return}}}catch{}if(u==0&&e instanceof HTMLElement){o(e);return}return t.observeContainers;function o(c){zt.clearMark(c),u++,t.immediateTranslateCapacity>=0?Ao(t,c):(Na&&at(c,"observeContainer",t.id),t.containerVisibleObserver?.observe(c))}function i(c){let l=c.nodeName.toLowerCase();if(c.shadowRoot)return D0(t,c.shadowRoot,n),!1;if(l==="iframe")return D0(t,c,n),!1;if(["script","#document-fragment","img"].includes(l))return!1;let m=t.containerRule;if(m.selectors&&m.selectors?.length>0)return vo(c,m.selectors);if(m.pageHeight){let g=c.scrollHeight;if(g>0&&g0)return!0}return!1}function s(c,l,m){if(l.nodeName.toLowerCase()=="script")return l.childNodes.length==0||l.childNodes.length==1&&l.childNodes[0].nodeType==Node.TEXT_NODE;if(l.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(l.nodeType!==Node.ELEMENT_NODE||m&&zt.isMarked(l,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&l.nodeName==="PRE")return!1;let f=un(c.ctx);return!!E0(l,{excludeSelectors:f.excludeSelectors,selectors:f.selectors,stayOriginalSelectors:f.stayOriginalSelectors})}}function L0(e,t){if(!e.targetNodes)return;let n=e.state||"original",a=e.commonAncestorContainer;if(!zt.isMarked(a,e.ctxId))return;let r=a.contains(e.rootNodes[0]),u=a.contains(e.targetNodes[0]);if(r&&u)n="dual";else if(r)n="original";else if(u)n="translation";else return;if(t!=n){e.state=t;try{if(n=="dual"&&t=="translation"&&(So(e.rootNodes),f3(e.commonAncestorContainer)),n=="original"&&t=="translation"){let o=A0(e.rootNodes);if(So(e.rootNodes),p3(o))return;ir(o,a,e.targetNodes||[]),f3(e.commonAncestorContainer)}if(n=="translation"&&t=="dual"){let o=e.targetNodes[0];ir(o,a,e.rootNodes||[]),h3(e.commonAncestorContainer)}if(n=="original"&&t=="dual"){let o=A0(e.rootNodes);if(p3(o))return;ir(o,a,e.targetNodes||[]),h3(e.commonAncestorContainer)}if(n=="translation"&&t=="original"){let o=A0(e.targetNodes);So(e.targetNodes),ir(o,a,e.rootNodes||[])}n=="dual"&&t=="original"&&So(e.targetNodes)}catch(o){U.error(o)}}}function p3(e){return!e||!xn(e)?!1:e.classList.contains(Wt)}function f3(e){if(!xn(e))return;e.querySelectorAll("font[class*=immersive-translate-target-translation]").forEach(a=>{at(a,"immersiveTranslateClassBak",a.className),a.className="notranslate immersive-translate-target-dual"});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.add("immersive-translate-state-dual")}function h3(e){if(!xn(e))return;e.querySelectorAll("font[class*=immersive-translate-target-dual]").forEach(a=>{let r=tr(a,"immersiveTranslateClassBak");To(a,"immersiveTranslateClassBak"),a.className=r});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.remove("immersive-translate-state-dual")}function A0(e){return e?e[e.length-1].nextSibling:null}function So(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function ir(e,t,n){let a=e;t&&(a?n.forEach(r=>{a.parentNode?.insertBefore(r,a)}):n.forEach(r=>{t.appendChild(r)}))}var x9=xt(M0,300);async function ou(e,t,n=!1){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||E9(t.rootNodes)||t.stepState>=2)return;t.stepState=2,Na&&at(a,"onParseParagraph",e.id);let{ctx:r}=e,{rule:u}=r,o=nr(r),i=ko(t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:o,stayOriginalSelectors:r.rule.stayOriginalTags.concat(r.rule.stayOriginalTags).map(c=>c.toLowerCase()).concat(r.rule.stayOriginalSelectors).concat(r.rule.additionalStayOriginalSelectors)});if(!i)return;t.variables=i?.variables||{},t.text=i?.text;let s=await F0(t,{excludeLanguages:r?.config?.translationLanguagePattern?.excludeMatches||[],targetLanguage:r.targetLanguage,noTranslateRegexp:r.rule.noTranslateRegexp,delimiters:Co(r.config.translationServices[r.translationService]?.placeholderDelimiters),minTextCount:n||r.state.translationArea==="body"?2:u.paragraphMinTextCount,minWordCount:n||r.state.translationArea==="body"?1:u.paragraphMinWordCount,isDetectParagraphLanguage:r.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:r.rule.ignoreZhCNandZhTW});if(s){if(U.debug("on paragraph",s.text,s),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(s))return;a.paragraphs.push(s),e.immediateTranslateCapacity>0||n?(T9(e,t.text),P0(e,t)):(Na&&at(a,"observeParagraph",e.id),e.observeParagraphs.push(s),e.paragraphVisibleObserver?.observe(a))}return s}function E9(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?xn(t)&&t.classList.contains(Wt):!1}function T9(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function P0(e,t){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let n=e.autoIncreaseParagraphId++;t.id=n.toString(),e.paragraphEntities[n]=t,e.paragraphQueue.push(n.toString()),Na&&at(t.commonAncestorContainer,"consumeParagraph",e.id),x9.call(e,e.ctx)}async function M0(e){if(this.interruptEffectDOM)return;let t=this.paragraphQueue;this.paragraphQueue=[];let n=[];for(let a=0;a0)try{await In(a,t,(r,u,o)=>{let i=o.id,s=C9(e,i.toString());s&&w9.call(null,r,u,o,s,t,n)})}catch(r){U.error("translateCurrentQueue error",r);return}}function C9(e,t){return e.find(n=>n.id===t)}function w9(e,t,n,a,r,u){let o=!1,i=a;if(rr(i.commonAncestorContainer,n.id)?.remove(),i&&(e||!t)){e||(U.error("translate error",n,e,t),e=new Error("no response from server"));let{rule:s}=r,c=n.id,l=document.createElement(s.targetWrapperTag);at(l,Sc,c.toString()),l.classList.add("notranslate",Wt,Wt+"-error"),l.setAttribute("translate","no"),l.setAttribute("lang",r.targetLanguage);let m=a.rootNodes[a.rootNodes.length-1].nextSibling;ir(m,a.commonAncestorContainer,[l]),v9(r,e);let g=e.message.replaceAll(` +`,"");if(g=g.replaceAll('"',"""),i&&(i.error=new Error(g)),l){let f=Nn(Rt,"retryAllParagraphs",r.config.interfaceLanguage,"zh-CN"),d=Nn(Rt,"errorTooltipTitle",r.config.interfaceLanguage,"zh-CN"),b=`<${s.targetWrapperTag} class="${J}-error notranslate"><${s.targetWrapperTag} class="${J}-error-wrapper">\u{1F504}  \u2753`;l.innerHTML=Le.sanitize(b)}}else if(a){if(i.error=void 0,a.targetText=t?.text||"",!(a.text?.toLocaleLowerCase()==a.targetText?.toLocaleLowerCase())){let c=g3(a,r),l=document.createElement(r.rule.targetWrapperTag);l.classList.add("notranslate",Wt),l.setAttribute("lang",r.targetLanguage),l.setAttribute(wn,"1");let m=y9.sanitize(c);l.innerHTML=m,a.targetNodes=[l],L0(a,u)}o=!0}else U.error("paragraph not found",n.id);document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}))}async function F0(e,t){let{text:n}=e,a=await Ke({text:n||"",minLength:15,pageLangs:[ct(),"en"]}),{targetLanguage:r}=t;if(!Zm({text:n||"",delimiters:t.delimiters,minWordCount:t.minWordCount,minTextCount:t.minTextCount,noTranslateRegexp:t.noTranslateRegexp}))return null;let o=t.excludeLanguages||[],i=ro();t.isDetectParagraphLanguage&&(i="auto");let s=ct(),c=a;c==="auto"&&!t.isDetectParagraphLanguage&&(c=s),e.languageByLocal=c,e.languageByClient=i;let l=i!=="auto"?i:c;return $n(l,r,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW})||o.length>0&&o.some(f=>$n(l,f,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW}))?null:e}function v9(e,t){if(t.message.startsWith("ProQuota:")){t.message=t.message.replace("ProQuota:","");let n=t.message;try{n=JSON.parse(t.message).error}catch(u){U.error(u)}t.message=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${t.message} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`;let a=e.translationService,r=a=="deepl"?"OpenAI":"Deepl";e.translationService=="openai"?a="OpenAI":e.translationService=="deepl"&&(a="Deepl"),document.dispatchEvent(new CustomEvent(wu,{detail:{type:"ProQuotaExceeded",subscriptionType:e.user?.subscription?.subscriptionType,translationService:a,anotherService:r,message:n}}))}}p();var k9=[];function b3(e){k9.push(e)}p();function y3(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(a){a.length>0&&(a[0].target.text.includes(Au)||_0(e).catch(u=>{U.error("translateTitle error:",u.name,u.message,u.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var Lo="";async function _0(e){let t=document.title;if(!t||t.includes(Au))return;Lo!==t&&(Lo=t);let n=await Ke({text:t,pageLangs:[ct(),"en"]});if(!wo(e,n))try{let a=await wa({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n},e);a&&a.text&&(document.title=Lo+Au+a.text)}catch(a){throw a}}function x3(e){e.rule.isTranslateTitle&&(document.title=Lo)}p();var B0="Original";function qe(){return B0}function Lt(e){B0=e,E3(B0)}p();var R0;function T3(e){let t=e.ctx.rule.aiRule;if(U.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=un(e.ctx),a=n.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);n.excludeSelectors.splice(a,1);let r,u;document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(g=>{g.translated=!0,iu(e,g,n)});let o=t.streamingDelayTime||100;R0=new MutationObserver(g=>{g.forEach(function(f){if(xn(f.target)&&!s(f)&&(l(f.target),f.addedNodes&&f.addedNodes.length&&f.addedNodes.forEach(d=>{l(d)}),!c(f)&&i())){let d=f.target===u;if(t.streamingDeepChild&&!d&&(d=f.target.parentNode===u),!d)return;f.addedNodes.forEach(b=>{let T=b.previousSibling;!T||T.translated||(T.translated=!0,setTimeout(()=>{T.childNodes[0]?.translated||(U.debug("\u7FFB\u8BD1\u4E0A\u4E00\u4E2A\u6BB5\u843D",T),iu(e,T,n))},o))})}})}),R0.observe(document.body,{attributes:!0,childList:!0,subtree:!0});function i(){return!!(t.streamingChange&&t.streamingSelector&&r||t.streamingChange&&t.messageContainerSelector&&t.messageStreamEndSelector&&u&&!u.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector))}function s(g){return t.streamingSelector&&g.target===r&&g.type==="attributes"&&!yn(g.target,[t.streamingSelector])?(m(),!0):t.streamingSelector&&g.removedNodes.length>0&&u&&u!=r?(g.removedNodes?.forEach(f=>{f===r&&m()}),!0):t.messageContainerSelector&&t.messageStreamEndSelector&&u&&u.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector)?(m(),!0):!1}function c(g){if(t.streamingSelector&&g.target.querySelector(t.messageWrapperSelector||"")&&!r){let f=g.target;return f.translated||(f.translated=!0,setTimeout(()=>{r||f.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(d=>{d.translated||(d.translated=!0,iu(e,d,n))})},o)),!0}else if(t.messageContainerSelector&&g.target.querySelector(t.messageContainerSelector||"")){let f=g.target;if(f.translated)return!0;f.translated=!0,setTimeout(()=>{f.querySelectorAll(t.messageContainerSelector).forEach(d=>{t.messageStreamEndSelector&&!d.querySelector(t.messageStreamEndSelector)||d.translated||(d.translated=!0,iu(e,d,n))})},o)}return!1}function l(g){t.streamingSelector&&yn(g,[t.streamingSelector])&&(r=g,U.debug("streamingNode",r)),yn(g,[t.messageWrapperSelector])&&(u=g,U.debug("markdownNode",u))}function m(){u&&setTimeout(()=>{u.childNodes.forEach(g=>g.translated=!1),U.debug("\u7ED3\u675F\u7FFB\u8BD1\u5168\u90E8",u),iu(e,u,n),r=void 0,u=null},o)}}function iu(e,t,n){oa({id:e.id,container:t,filterRule:n,force:!0,onParagraph:a=>{ou(e,a,!0)},onFrame:()=>{},onIgnoreElement:()=>{}})}function C3(){R0?.disconnect()}var ne=null;function Mo(){return ne||null}function lr(e){S9(e),_9(e),P9(e),F9(e),or(document,e),Lt("Translated"),M9(ne),L9(ne),b3(jn),A9(ne)}function S9(e){e.state.translationArea==="main"&&e.rule.initialSelectorGlobalAttributes&&r3(document.body,e.rule.initialSelectorGlobalAttributes,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph)}function A9(e){T3(e)}function D9(){C3()}function L9(e){e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0});let t=[];e.ctx.rule.mainFrameSelector&&(t=[...document.querySelectorAll(e.ctx.rule.mainFrameSelector||"")]),t.length<=0&&(t=[document.body]),t.forEach(n=>{sr(n,e)})}async function P9(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=Date.now(),a=new URL(e.url).hostname,r=e.localConfig.tempTranslationUrlMatches||[],u=r.findIndex(i=>i.match===a&&i.expiredAt>t),o=!1;u>-1||(r.push({match:a,expiredAt:t+e.config.tempTranslateDomainMinutes*60*1e3}),o=!0),o&&await kn({...e.localConfig,tempTranslationUrlMatches:[...r]})}}function M9(e){e.ctx.rule.isTranslateTitle&&(_0(e.ctx),e.titleDynamicObserver=y3(e.ctx))}function F9(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function _9(e){let t=$t();ne&&(t=ne.id);let n=un(e);ne=ne||{},ne.ctx=e,ne.id=t,ne.paragraphQueue=ne.paragraphQueue||[],ne.rule={excludeSelectors:n.excludeSelectors||[],selectors:n.selectors||[]},ne.currentUrl=window.location.href,ne.containerRule={pageHeight:screen.availHeight,selectors:n.selectors},ne.translationService=e.translationService,ne.paragraphEntities=ne.paragraphEntities||{},ne.autoIncreaseParagraphId=ne.autoIncreaseParagraphId||1,ne.interruptEffectDOM=!1,ne.urlChangeDelay=e.rule.urlChangeDelay,ne.immediateTranslateCapacity=e.state.immediateTranslationTextCount,ne.observeContainers=ne.observeContainers||[],ne.observeParagraphs=ne.observeParagraphs||[],ne.dynamicContainerObserver=ne.dynamicContainerObserver||N9(ne),ne.ignoreResizeObserver=ne.ignoreResizeObserver||j9(ne),ne.containerVisibleObserver=ne.containerVisibleObserver||R9(ne),ne.paragraphVisibleObserver=ne.paragraphVisibleObserver||I9(ne),ne.injectCssToDocument=Po,ne.walkContainer=oa,ne.translateState=e.state.translationMode||e.config.translationMode||"dual",ne.allInlineWindows=[window],window.onerror=B9(ne,e),window.immersiveTranslateSwitchTranslateState=O0.bind(ne)}function v3(e,t){t.getRootNode()instanceof ShadowRoot?Po(t.getRootNode(),e):Po(t.ownerDocument,e),I0(e)}function I0(e){if(ne)return;ne={},ne.ctx=e,ne.id=$t(),ne.paragraphQueue=[],ne.injectCssToDocument=Po;let t=un(e);ne.rule={excludeSelectors:t.excludeSelectors,selectors:t.selectors||[]},ne.translationService=e.mouseHoverTranslationService,ne.currentUrl=window.location.href,ne.paragraphEntities={},ne.autoIncreaseParagraphId=1,ne.interruptEffectDOM=!1,ne.urlChangeDelay=e.rule.urlChangeDelay,ne.translateState=e.config.translationMode||"dual",ne.observeContainers=[],ne.observeParagraphs=[],ne.allInlineWindows=[window],window.switchTranslateState=O0.bind(ne)}function jn(e=!0){ne&&(Lt("Original"),D9(),ne.interruptEffectDOM=!0,ne.ignoreResizeObserver?.disconnect(),ne.dynamicContainerObserver?.disconnect(),ne.containerVisibleObserver?.disconnect(),ne.paragraphVisibleObserver?.disconnect(),ne.titleDynamicObserver?.disconnect(),x3(ne.ctx),Ym(),Jm(),e&&O0.call(ne,"original"),Object.values(ne.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),ne=null)}function B9(e,t){e.interruptEffectDOM=!1;let n;return function(a){let r=a.message,u=!1;return r?.indexOf("Minified React error")>=0&&(u=!0),u&&(clearTimeout(n),jn(),n=setTimeout(()=>{lr(t)},e.urlChangeDelay||2e3)),!0}}function R9(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{a.intersectionRatio>0&&(Ao(e,a.target),n.unobserve(a.target))})})}function I9(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{if(a.intersectionRatio>0){let r=a.target;(r.paragraphs||[]).forEach(o=>{P0(e,o)}),n.unobserve(r)}})})}var w3;function O9(e){if(e.urlChangeDelay<=0)return!1;let n=(window.location.href||"").split("#")[0];return e.currentUrl.split("#")[0]!=n?(clearTimeout(w3),e.translateState=="original"?!1:(jn(e.urlChangeDelay>20),w3=setTimeout(()=>{let r=e.ctx;lr(r)},e.urlChangeDelay),!0)):!1}function N9(e){return new MutationObserver(t=>{if(!O9(e)&&!e.interruptEffectDOM)for(let n of t){let a=e.ctx.rule.mutationObserverLimitTargetSelectors;if(a.length>0&&!yn(n.target,a))return;if((n.addedNodes||[]).length<=0||n.target.nodeType!==Node.ELEMENT_NODE||!zt.isSkipMarkEle(n.target)&&!zt.isMarked(n.target,e.id))continue;let u=(n.target?.paragraphs||[]).reduce((o,i)=>{let s=i.rootNodes||[],c=i.targetNodes||[];return[...o,...s,...c]},[]);if(n.addedNodes.length>0&&n.addedNodes.length===n.target.childNodes.length&&yn(n.target,e.ctx.rule.mutationObserverContainerSelectors)){zt.clearMark(n.target),n.target.paragraphs=void 0,Ao(e,n.target);return}n.addedNodes.forEach((o,i)=>{o.nodeType===Node.ELEMENT_NODE&&(u.includes(o)||Dt(o,e.ctx.rule.mutationExcludeSelectors)||sr(o,e))})}})}function j9(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let a of t){if(a.target.nodeType!==Node.ELEMENT_NODE)return;let r=a.target,u=globalThis.getComputedStyle(r);y0(u)||(n.unobserve(a.target),sr(r,e))}})}function O0(e){this.translateState=e,Object.values(this.paragraphEntities).forEach(t=>{L0(t,e)}),e=="original"&&document.querySelectorAll(`.${Wt}`).forEach(t=>t.remove())}function Po(e,t){if(e instanceof HTMLIFrameElement){or(e.contentDocument,t);return}or(e,t)}async function k3(e){let t=nt(),n="auto";if(fe()){let a="";e.rule.isEbook||e.rule.isEbookBuilder?(a=g0(e.mainFrame),n=await Ke({text:a,pageLangs:["en"]})):(a=er(e.mainFrame).slice(0,1e3),n=await Ke({text:a,pageLangs:[pa(),"en"]}))}else if(t)n=await Ke({text:er(e.mainFrame).slice(0,1e3),pageLangs:[pa(),"en"]});else if(e.rule.isEbook||e.rule.isEbookBuilder){let a="";a=g0(e.mainFrame),n=await Ke({text:a,pageLangs:["en"]})}else n=await A3();return n==="auto"&&(n=await c3()),ks(n),n}async function S3(){if(!ne)return;document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=ne.paragraphEntities,t=Object.keys(e);for(let n of t){let a=e[n];if(a.error){ne.paragraphQueue.push(n);let u=a.commonAncestorContainer.querySelector(`[${ku}='${n}']`);u&&u.remove()}}M0.call(ne,ne.ctx)}p();p();var D3={"zh-CN":{"languages.en":"\u82F1\u8BED","languages.ja":"\u65E5\u8BED","languages.ko":"\u97E9\u8BED","languages.es":"\u897F\u73ED\u7259\u8BED","languages.fr":"\u6CD5\u8BED","languages.de":"\u5FB7\u8BED","languages.it":"\u610F\u5927\u5229\u8BED","languages.pt":"\u8461\u8404\u7259\u8BED","languages.ru":"\u4FC4\u8BED","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"},"zh-TW":{"languages.en":"\u82F1\u8A9E","languages.ja":"\u65E5\u8A9E","languages.ko":"\u97D3\u8A9E","languages.es":"\u897F\u73ED\u7259\u8A9E","languages.fr":"\u6CD5\u8A9E","languages.de":"\u5FB7\u8A9E","languages.it":"\u610F\u5927\u5229\u8A9E","languages.pt":"\u8461\u8404\u7259\u8A9E","languages.ru":"\u4FC4\u8A9E","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"}},L3={...Rt,"zh-CN":{...D3["zh-CN"],...Rt["zh-CN"]},"zh-TW":{...D3["zh-TW"],...Rt["zh-TW"]}},P3=L3;function cr(e,t,n){return Nn(L3,e,t,Du,n)}var Fo=(e,t,n,a)=>{let r=Rc[e]||e,u=Ic[e],o=Oc[e],i={"zh-CN":u,"zh-TW":o,en:r};if(n)return i[e]?i[e]:r;if(i[t]){let s=i[t];return a||e==="auto"||e==="placeholder"?s:`${s} (${r})`}else return r};p();p();function dr(e){mr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(a=>{U.error("send content message request failed",e,a)}),document.querySelectorAll("iframe").forEach(a=>{a.contentWindow&&a.contentWindow.postMessage({author:Cu,payload:e},"*")});let n=new CustomEvent(Wn,{detail:e});globalThis.document.dispatchEvent(n)}function N0(e){let t=e.shortcuts||{},a=Object.keys(t).reduce((u,o)=>(u[t[o]]=o,u),{}),r=Object.keys(a);for(let u of r){let o=u.replace(/MacCtrl/ig,"Ctrl");o&&Ye(o,i=>{i.preventDefault(),dr({method:a[u],data:{trigger:"shortcut"}})})}}p();p();p();p();p();var No,ve,R3,z9,su,M3,I3,Ro={},O3=[],U9=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ia(e,t){for(var n in t)e[n]=t[n];return e}function N3(e){var t=e.parentNode;t&&t.removeChild(e)}function z0(e,t,n){var a,r,u,o={};for(u in t)u=="key"?a=t[u]:u=="ref"?r=t[u]:o[u]=t[u];if(arguments.length>2&&(o.children=arguments.length>3?No.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(u in e.defaultProps)o[u]===void 0&&(o[u]=e.defaultProps[u]);return _o(e,o,a,r,null)}function _o(e,t,n,a,r){var u={type:e,props:t,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++R3};return r==null&&ve.vnode!=null&&ve.vnode(u),u}function Gt(e){return e.children}function Bo(e,t){this.props=e,this.context=t}function gr(e,t){if(t==null)return e.__?gr(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?_o(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=n,f.__b=n.__b+1,(g=h[l])===null||g&&f.key==g.key&&f.type===g.type)h[l]=void 0;else for(m=0;m=n.__.length&&n.__.push({__V:zo}),n.__[e]}function De(e){return cu=1,$9(tg,e)}function $9(e,t,n){var a=Ho(du++,2);if(a.t=e,!a.__c&&(a.__=[n?n(t):tg(void 0,t),function(u){var o=a.__N?a.__N[0]:a.__[0],i=a.t(o,u);o!==i&&(a.__N=[i,a.__[1]],a.__c.setState({}))}],a.__c=et,!et.u)){et.u=!0;var r=et.shouldComponentUpdate;et.shouldComponentUpdate=function(u,o,i){if(!a.__c.__H)return!0;var s=a.__c.__H.__.filter(function(l){return l.__c});if(s.every(function(l){return!l.__N}))return!r||r.call(this,u,o,i);var c=!1;return s.forEach(function(l){if(l.__N){var m=l.__[0];l.__=l.__N,l.__N=void 0,m!==l.__[0]&&(c=!0)}}),!!c&&(!r||r.call(this,u,o,i))}}return a.__N||a.__}function Ge(e,t){var n=Ho(du++,3);!ve.__s&&eg(n.__H,t)&&(n.__=e,n.i=t,et.__H.__h.push(n))}function qo(e){return cu=5,W0(function(){return{current:e}},[])}function W0(e,t){var n=Ho(du++,7);return eg(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function sa(e,t){return cu=8,W0(function(){return e},t)}function Wo(e){var t=et.context[e.__c],n=Ho(du++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(et)),t.props.value):e.__}function K9(){for(var e;e=X3.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Uo),e.__H.__h.forEach(q0),e.__H.__h=[]}catch(t){e.__H.__h=[],ve.__e(t,e.__v)}}ve.__b=function(e){typeof e.type!="function"||e.o||e.type===Gt?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),et=null,G3&&G3(e)},ve.__r=function(e){V3&&V3(e),du=0;var t=(et=e.__c).__H;t&&(H0===et?(t.__h=[],et.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=zo,n.__N=n.i=void 0})):(t.__h.forEach(Uo),t.__h.forEach(q0),t.__h=[])),H0=et},ve.diffed=function(e){Y3&&Y3(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(X3.push(t)!==1&&K3===ve.requestAnimationFrame||((K3=ve.requestAnimationFrame)||G9)(K9)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==zo&&(n.__=n.__V),n.i=void 0,n.__V=zo})),H0=et=null},ve.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Uo),n.__h=n.__h.filter(function(a){return!a.__||q0(a)})}catch(a){t.some(function(r){r.__h&&(r.__h=[])}),t=[],ve.__e(a,n.__v)}}),J3&&J3(e,t)},ve.unmount=function(e){Q3&&Q3(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(a){try{Uo(a)}catch(r){t=r}}),n.__H=void 0,t&&ve.__e(t,n.__v))};var Z3=typeof requestAnimationFrame=="function";function G9(e){var t,n=function(){clearTimeout(a),Z3&&cancelAnimationFrame(t),setTimeout(e)},a=setTimeout(n,100);Z3&&(t=requestAnimationFrame(n))}function Uo(e){var t=et,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),et=t}function q0(e){var t=et;e.__c=e.__(),et=t}function eg(e,t){return!e||e.length!==t.length||t.some(function(n,a){return n!==e[a]})}function tg(e,t){return typeof t=="function"?t(e):t}p();p();var pr={},V9={root:"",lang:"en",fallbackLang:"en"};function $0(e,t){let n=Object.assign({},V9,e);pr=t||pr;let[a,r]=De(n.lang),[u,o]=De(pr),[i,s]=De(!1),c=m=>{if(u.hasOwnProperty(m))return;s(!1);let g=d3(n.root||"",m);n.getUrl&&(g=n.getUrl(n.root||"",m),fetch(g).then(f=>f.json()).then(f=>{pr[m]=f,o({...pr}),s(!0)}).catch(f=>{o({...pr}),s(!0)}))};return Ge(()=>{c(n.fallbackLang||"en"),c(a)},[a]),{lang:a,setLang:r,t:(m,g)=>{if(!u.hasOwnProperty(a))return m;let f=uu(u,a,m);return f===m&&a!==n.fallbackLang&&(f=uu(u,n.fallbackLang,m)),C0(f,g)},isReady:i}}p();p();var Y9=0;function V(e,t,n,a,r){var u,o,i={};for(o in t)o=="ref"?u=t[o]:i[o]=t[o];var s={type:e,props:i,key:n,ref:u,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Y9,__source:r,__self:a};if(typeof e=="function"&&(u=e.defaultProps))for(o in u)i[o]===void 0&&(i[o]=u[o]);return ve.vnode&&ve.vnode(s),s}var G0=jo(null),K0={root:"assets",lang:"en",fallbackLang:"en"},ng=e=>{let{t,setLang:n,lang:a,isReady:r}=$0({root:e.root||K0.root,lang:e.lang||K0.lang,fallbackLang:e.fallbackLang||K0.fallbackLang,getUrl:e.getUrl},e.translations);return V(G0.Provider,{value:{t,setLang:n,lang:a,isReady:r},children:e.children})};p();p();function ag(e,t,n){let a=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),a=t!=="auto"?n[t].matches:[];let r={},u=Object.keys(n);for(let c of u){let m=n[c].matches;for(let g of m)r[g]||(r[g]=[]),r[g].push(c)}let o=r[e];if(o&&o.length>0)for(let c of o)n[c].matches.indexOf(e)>-1&&(n[c]={...n[c],matches:n[c].matches.filter(m=>m!==e)});let i=new Set(a);if(t==="auto")return{...n};i.add(e);let s=Array.from(i);return{...n,[t]:{...n[t],matches:s}}}p();p();function V0(){return V("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[V("path",{d:"M10.3873 2.29166C10.6319 2.29193 10.8664 2.38929 11.0392 2.56234C11.2121 2.73539 11.3092 2.96998 11.3092 3.21457V4.07811L12.1175 4.38332C12.7273 4.61277 13.2952 4.94074 13.7988 5.35416L14.4675 5.90207L15.2165 5.46978L15.2394 5.45624C15.3787 5.37479 15.5373 5.332 15.6988 5.33228C15.861 5.3325 16.0203 5.37522 16.1608 5.45618C16.3014 5.53715 16.4182 5.65353 16.4998 5.79374L16.8925 6.47395C17.0145 6.68593 17.0475 6.93764 16.9843 7.17391C16.921 7.41019 16.7666 7.61173 16.555 7.73436L16.5321 7.74791L15.7842 8.17916L15.9227 9.0302C16.031 9.67953 16.031 10.3423 15.9227 10.9917L15.781 11.8458L16.531 12.2781L16.5467 12.2875C16.758 12.4101 16.9122 12.6115 16.9754 12.8475C17.0387 13.0835 17.0059 13.335 16.8842 13.5469L16.5154 14.1844C16.3932 14.3961 16.1919 14.5507 15.9558 14.6141C15.7196 14.6776 15.468 14.6448 15.256 14.5229L15.2415 14.5135L14.4904 14.0802L13.8206 14.6323C13.3125 15.0519 12.7384 15.3845 12.1217 15.6167L11.3133 15.9219V16.7864C11.3132 16.9078 11.2891 17.028 11.2425 17.14C11.1958 17.2521 11.1276 17.3539 11.0415 17.4395C10.9555 17.5251 10.8535 17.5929 10.7412 17.6391C10.6289 17.6852 10.5087 17.7087 10.3873 17.7083H9.61229C9.3677 17.708 9.13322 17.6107 8.96037 17.4376C8.78751 17.2646 8.69042 17.03 8.69042 16.7854V15.9219L7.88209 15.6167C7.27233 15.3872 6.70437 15.0592 6.20084 14.6458L5.53209 14.0979L4.78313 14.5302L4.76021 14.5437C4.62084 14.6252 4.46226 14.668 4.30084 14.6677C4.13864 14.6675 3.97932 14.6248 3.83877 14.5438C3.69823 14.4628 3.58135 14.3464 3.49979 14.2062L3.10709 13.526C2.98505 13.3141 2.95205 13.0623 3.01532 12.8261C3.07858 12.5898 3.23296 12.3882 3.44459 12.2656L3.4675 12.2521L4.21542 11.8208L4.07688 10.9698C3.96856 10.3204 3.96856 9.65766 4.07688 9.00832L4.21854 8.1552L3.46959 7.72186L3.45709 7.70832C3.24914 7.58489 3.09787 7.38486 3.03575 7.15116C2.97362 6.91746 3.00559 6.66872 3.12479 6.45832L3.49354 5.82082C3.57469 5.68049 3.69133 5.56397 3.83175 5.48297C3.97217 5.40197 4.13144 5.35934 4.29354 5.35936C4.45497 5.35908 4.61355 5.40187 4.75292 5.48332L4.7675 5.49166L5.51854 5.92499L6.18834 5.37291C6.69646 4.95329 7.27054 4.62067 7.88729 4.38853L8.69563 4.08332V3.21874C8.69452 2.97433 8.79041 2.73945 8.96226 2.56565C9.13411 2.39185 9.36788 2.29331 9.61229 2.29166H10.3873ZM10.3873 1.04166H9.61229C9.03636 1.04193 8.4841 1.27084 8.07685 1.67809C7.66961 2.08533 7.4407 2.6376 7.44042 3.21353C6.69518 3.49423 6.00146 3.89618 5.38729 4.40312L5.37271 4.39478C4.87362 4.10685 4.2806 4.02894 3.72407 4.17818C3.16753 4.32742 2.69307 4.6916 2.405 5.19062L2.03729 5.83332C1.74928 6.33229 1.67121 6.92522 1.82025 7.48173C1.96929 8.03825 2.33324 8.51279 2.83209 8.80103L2.84771 8.80936C2.78023 9.20444 2.74539 9.6044 2.74354 10.0052C2.74367 10.3971 2.77572 10.7883 2.83938 11.175L2.81646 11.1885C2.56927 11.3311 2.35259 11.5209 2.1788 11.7472C2.00501 11.9735 1.87752 12.2319 1.80361 12.5075C1.7297 12.7831 1.71083 13.0706 1.74807 13.3535C1.7853 13.6364 1.87792 13.9091 2.02063 14.1562L2.41334 14.8364C2.55638 15.0837 2.74681 15.3003 2.97371 15.4738C3.20061 15.6473 3.45953 15.7743 3.73561 15.8475C4.01169 15.9208 4.29952 15.9388 4.58259 15.9007C4.86566 15.8625 5.13841 15.7688 5.38521 15.625L5.40813 15.6114C6.01714 16.1105 6.70362 16.5067 7.44042 16.7844C7.44028 17.0697 7.49635 17.3523 7.60542 17.616C7.7145 17.8797 7.87444 18.1193 8.07612 18.3212C8.27779 18.523 8.51726 18.6832 8.78084 18.7925C9.04441 18.9018 9.32694 18.9582 9.61229 18.9583H10.3873C10.9632 18.958 11.5155 18.7291 11.9227 18.3219C12.33 17.9146 12.5589 17.3624 12.5592 16.7864C13.3043 16.5061 13.9981 16.1045 14.6123 15.5979L14.6269 15.6062C15.126 15.8942 15.719 15.9721 16.2755 15.8228C16.8321 15.6736 17.3065 15.3094 17.5946 14.8104L17.9623 14.1729C18.2503 13.6739 18.3284 13.081 18.1793 12.5245C18.0303 11.968 17.6663 11.4934 17.1675 11.2052L17.1519 11.1969C17.2194 10.8018 17.2542 10.4018 17.256 10.001C17.2559 9.60915 17.2239 9.21792 17.1602 8.83124L17.1831 8.8177C17.4303 8.67516 17.647 8.48531 17.8208 8.259C17.9946 8.03269 18.1221 7.77435 18.196 7.49875C18.2699 7.22314 18.2888 6.93568 18.2515 6.65278C18.2143 6.36987 18.1217 6.09708 17.979 5.84999L17.5863 5.16978C17.4437 4.92202 17.2537 4.70485 17.027 4.53072C16.8003 4.3566 16.5415 4.22895 16.2654 4.1551C15.9893 4.08126 15.7013 4.06267 15.418 4.1004C15.1346 4.13814 14.8616 4.23145 14.6144 4.37499L14.5915 4.38853C13.9824 3.88946 13.296 3.49327 12.5592 3.21561C12.5593 2.93026 12.5032 2.64768 12.3942 2.384C12.2851 2.12031 12.1252 1.8807 11.9235 1.67883C11.7218 1.47695 11.4823 1.31678 11.2188 1.20746C10.9552 1.09813 10.6726 1.04179 10.3873 1.04166Z",fill:"#666666"}),V("path",{d:"M10.0003 7.91666C10.4124 7.91666 10.8152 8.03884 11.1578 8.26776C11.5004 8.49668 11.7674 8.82205 11.9251 9.20273C12.0828 9.58341 12.124 10.0023 12.0436 10.4064C11.9632 10.8106 11.7648 11.1818 11.4735 11.4731C11.1821 11.7645 10.8109 11.9629 10.4068 12.0433C10.0026 12.1237 9.58375 12.0824 9.20307 11.9247C8.82239 11.7671 8.49702 11.5 8.2681 11.1574C8.03918 10.8148 7.91699 10.412 7.91699 9.99999C7.91699 9.44745 8.13649 8.91755 8.52719 8.52685C8.91789 8.13615 9.44779 7.91666 10.0003 7.91666ZM10.0003 6.66666C9.34106 6.66666 8.69659 6.86215 8.14843 7.22842C7.60026 7.5947 7.17302 8.11529 6.92073 8.72438C6.66844 9.33346 6.60243 10.0037 6.73104 10.6503C6.85966 11.2969 7.17713 11.8908 7.6433 12.357C8.10948 12.8232 8.70342 13.1407 9.35003 13.2693C9.99663 13.3979 10.6669 13.3319 11.2759 13.0796C11.885 12.8273 12.4056 12.4001 12.7719 11.8519C13.1382 11.3037 13.3337 10.6593 13.3337 9.99999C13.3337 9.11593 12.9825 8.26809 12.3573 7.64297C11.7322 7.01785 10.8844 6.66666 10.0003 6.66666Z",fill:"#666666"})]})}p();function rg(e,t=2e3){return n=>{let a,r=0;return u=>{++r==e&&(n(u),r=0),clearTimeout(a),a=setTimeout(()=>r=0,t)}}}p();function ug(e){let t;try{t=new URL(e)}catch{return!1}let n=og(),a="";try{a=new URL(n).hostname}catch{}return a&&t.hostname===a?!0:!(J9(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function J9(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}p();function ig(e){let t=e.split(".");return t.length>2?(t[0]="*",t.join(".")):null}p();function sg(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}p();p();function Ut(){return Wo(G0)}function zn(e){let{items:t,maxWidth:n,className:a}=e,{lang:r}=Ut();return n=n||(r==="en"?144:160),V("select",{autoComplete:"off",class:a||"min-select",style:{maxWidth:`${n}px`},value:t.find(u=>u.selected)?.value,onChange:u=>{let o=u.target.value,i=t.find(s=>s.value===o);i&&i.onSelected(i)},children:t.map((u,o)=>V("option",{value:u.value,selected:u.selected,children:u.label},"selectlink"+o))})}p();var $o="DROP_DOWN_DEFAULT_VALUE";function Y0(e){let{showArrow:t,onSelected:n,className:a,menus:r,maxWidth:u}=e;a=a||"",t=t??!0,u=u||80;let o=qo(null);return V("select",{ref:o,autoComplete:"off",class:`text-label min-select ${t?"":"min-select-no-arrow"} ${a||""}`,value:$o,style:{maxWidth:`${u}px`},onChange:i=>{i.preventDefault();let s=i.target.value;if(o.current&&s!==$o){o.current.value=$o,o.current?.dispatchEvent(new Event("change"));let c=r.find(l=>l.value===s);c&&n(c)}},children:[{value:$o,label:e.label}].concat(r).map((i,s)=>V("option",{value:i.value,children:i.label},"option-"+s))})}p();function J0(e){let{field:t,onChange:n,value:a}=e;a=a||t.default||"";let{t:r}=Ut(),u=t.name;return t.label&&(u=t.label),t.labelKey&&(u=r(t.labelKey)),t.type==="select"?V("div",{class:"flex justify-between items-center mb-2",children:[V("label",{class:"inline-block",children:[u,"\uFF1A"]}),V(zn,{items:t.options.map(o=>({label:`${o.label?r(o.label):o.value}`,value:o.value,selected:a===o.value,onSelected:()=>{n(o.value)}}))})]}):null}p();p();function mu(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var Q9=({date:e})=>{let{t}=Ut(),[n,a]=De(!1);return Ge(()=>{setTimeout(()=>{a(!0)},5e3)},[]),n?null:V("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},Z9=({minVersion:e})=>{let{t}=Ut();return V("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},X9=()=>{let{t:e}=Ut();return V("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:"https://immersivetranslate.com/docs/installation/"})}})},eb=({message:e,handleSyncing:t,date:n})=>{let{t:a}=Ut();return V("p",{class:"text-sm",children:[a("failToSyncRules")," ",V("a",{onClick:t,children:a("retry")}),V("br",{}),a("failedReason"),"\uFF1A",e,V("br",{}),a("currentRuleVersion"),"\uFF1A",n]})};function Q0(e){let{isShowError:t,request:n}=e,[a,r]=De(null),{t:u}=Ut(),[o,i]=De(null),[s,c]=De(null),[l,m]=De(""),[g,f]=De(!1),[d,b]=De(!1),[T,h]=De(!1),[C,v]=De(null),[O,B]=De(null),x=an(),L=async()=>{m("");let M=o;if(o===null)try{let w=await n({url:kr});w?(i(w),M=w,f(!0)):(m(u("unknownError")),c(null))}catch(w){c(null),m(w.message);return}M!==null?(e.setStorageBuildinConfig(M),c(!1),r(M.buildinConfigUpdatedAt)):(m(u("canNotFetchRemoteRule")),c(null))};return Ge(()=>{Ka().then(M=>{let w=M.buildinConfigUpdatedAt;v(M);let E=new Date(w);if(r(w),x==="0.0.0"){h(!0);return}n({url:kr}).then(I=>{let F=I,A=F.minVersion,_=x;i(F);let j=F.latestVersion;if(j&&(mu(_,j)?B(!0):B(!1)),mu(_,A)){let N=F.buildinConfigUpdatedAt;new Date(N)>E?(c(!0),L()):c(!1)}else b(!0),c(null)}).catch(I=>{c(null),m(I.message)})})},[]),Ge(()=>{Ka().then(M=>{v(M)})},[a]),C?V("div",{class:"text-sm mt-2",style:{maxWidth:218},children:T?V(X9,{}):l?t===!1?null:V(eb,{handleSyncing:L,message:l,date:a||""}):d?t===!1?null:V(Z9,{minVersion:o.minVersion}):s===null||s===!0?null:g?V(Q9,{date:a}):null}):null}p();var Ko='',Z0="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMTEuNjIzLS4zMTguODQ1Yy0uMjA4LjIyMi0uNTI3LjMzMy0uOTI4LjMzM2gtMS4zM1Y5LjI0MmgxLjMzWm05Ljg0NiAxLjc4OGMuMzg4IDAgLjY2NS4xNTIuODQ1LjQ1Ny4xNTIuMjY0LjIzNS41ODIuMjYzLjk4NHYuMzE5YzAgLjQ5OS0uMDgzLjg4Ny0uMjYzIDEuMTkyLS4xOC4zMDQtLjQ1Ny40NTctLjgzLjQ1Ny0uMzg5IDAtLjY2Ni0uMTUzLS44NDYtLjQ0NC0uMTUyLS4yNjMtLjIzNS0uNTk1LS4yNjMtMS4wMTF2LS4yOTFjMC0uNDg1LjA4My0uODczLjI2My0xLjE3OC4xOC0uMzA1LjQ0My0uNDg1LjgzMS0uNDg1Wm0tMy40MDctMS4xMzZhMS4xNyAxLjE3IDAgMCAwLS43MDYuMjM1IDEuNDgyIDEuNDgyIDAgMCAwLS40MTUuNWwtLjA4My4xNjUtLjA3LS44MDNoLTEuMzU3djUuNDMyaDEuNDU0di0zLjY1OWEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiA4LjEySDQuMTE0djcuMzE3aDEuNDY4VjEyLjc5aDEuMzNjLjg0NCAwIDEuNDk1LS4yMDggMS45OC0uNjM4LjQ4NS0uNDMuNzItLjk4My43Mi0xLjY5cy0uMjM1LTEuMjYxLS43Mi0xLjY5Yy0uNDQzLS4zODktMS4wMzktLjYxLTEuNzczLS42MzhsLS4yMjEtLjAxNFptOS44NDcgMS43NzRjLS44MDMgMC0xLjQyNi4yNjMtMS44ODMuNzc2LS40MTYuNDctLjYzNyAxLjA2Ny0uNjc5IDEuNzczdi4zMzNjMCAuODE4LjIyMiAxLjQ4My42NzkgMS45OTUuNDU3LjUxMyAxLjA4Ljc3NiAxLjg4My43NzYuODA0IDAgMS40MjctLjI2MyAxLjg4NC0uNzc2LjQxNS0uNDcuNjM3LTEuMDUzLjY3OC0xLjc3M3YtLjMzM2MwLS44MTctLjIyMS0xLjQ4Mi0uNjc4LTEuOTk1LS40NTctLjUxMy0xLjA4LS43NzYtMS44ODQtLjc3NlpNMTguMDAzIDZhNiA2IDAgMCAxIDAgMTJIMFY5LjQyM0EzLjQyIDMuNDIgMCAwIDEgMy40MiA2aDE0LjU4M1oiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSI3LjUiIHgyPSIyMiIgeTE9IjE5IiB5Mj0iNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMyMjIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM2OTY5NjkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=",X0="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzk5OSIgZD0iTTYuODk3IDMuMjQyYy40MTUgMCAuNzIuMTExLjkyOC4zNDcuMjA3LjIzNS4zMTguNTI2LjMxOC44NzMgMCAuMzQ2LS4xMS42MjMtLjMxOC44NDUtLjIwOC4yMjItLjUyNy4zMzMtLjkyOC4zMzNoLTEuMzNWMy4yNDJoMS4zM1ptOS44NDYgMS43ODhjLjM4OCAwIC42NjUuMTUyLjg0NS40NTcuMTUyLjI2NC4yMzUuNTgyLjI2My45ODR2LjMxOWMwIC40OTktLjA4My44ODctLjI2MyAxLjE5Mi0uMTguMzA0LS40NTcuNDU3LS44My40NTctLjM4OSAwLS42NjYtLjE1My0uODQ2LS40NDQtLjE1Mi0uMjYzLS4yMzUtLjU5NS0uMjYzLTEuMDExdi0uMjkxYzAtLjQ4NS4wODMtLjg3My4yNjMtMS4xNzguMTgtLjMwNS40NDMtLjQ4NS44MzEtLjQ4NVptLTMuNDA3LTEuMTM2YTEuMTcgMS4xNyAwIDAgMC0uNzA2LjIzNSAxLjQ4MiAxLjQ4MiAwIDAgMC0uNDE1LjVsLS4wODMuMTY1LS4wNy0uODAzaC0xLjM1N3Y1LjQzMmgxLjQ1NFY1Ljc2NGEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiAyLjEySDQuMTE0djcuMzE3aDEuNDY4VjYuNzloMS4zM2MuODQ0IDAgMS40OTUtLjIwOCAxLjk4LS42MzguNDg1LS40My43Mi0uOTgzLjcyLTEuNjlzLS4yMzUtMS4yNjEtLjcyLTEuNjljLS40NDMtLjM4OS0xLjAzOS0uNjEtMS43NzMtLjYzOGwtLjIyMS0uMDE0Wm05Ljg0NyAxLjc3NGMtLjgwMyAwLTEuNDI2LjI2My0xLjg4My43NzYtLjQxNi40Ny0uNjM3IDEuMDY3LS42NzkgMS43NzN2LjMzM2MwIC44MTguMjIyIDEuNDgzLjY3OSAxLjk5NS40NTcuNTEzIDEuMDguNzc2IDEuODgzLjc3Ni44MDQgMCAxLjQyNy0uMjYzIDEuODg0LS43NzYuNDE1LS40Ny42MzctMS4wNTMuNjc4LTEuNzczdi0uMzMzYzAtLjgxNy0uMjIxLTEuNDgzLS42NzgtMS45OTUtLjQ1Ny0uNTEzLTEuMDgtLjc3Ni0xLjg4NC0uNzc2Wk0xOC4wMDMgMGE2IDYgMCAwIDEgMCAxMkgwVjMuNDIzQTMuNDIgMy40MiAwIDAgMSAzLjQyIDBoMTQuNTgzWiIvPjwvc3ZnPg==";function el(e){let t=an(),{onTranslateTheMainPage:n,onUserConfigChange:a,request:r,onTranslateLocalHtmlFile:u,onSwitchTranslationMode:o,onTranslateLocalSubtitleFile:i,onSetBuildinConfig:s,pageStatus:c,openEbookBuilderPage:l,openPricingPage:m,openEbookViewerPage:g,config:f,openAboutPage:d,onTranslateTheWholePage:b,onToggleEnabled:T,openOptionsPage:h,ontranslateToThePageEndImmediately:C,onSetPageLanguage:v,onToggleTranslate:O,onTranslateLocalPdfFile:B,onTranslatePdf:x,onRestorePage:L,ctx:M,currentUrl:w,currentLang:E,onClose:I,onTranslatePage:F,onSetLocalConfig:A,onMouseTriggerChanged:_,errorMsg:j,disabledButton:N,noPermissionPDF:D}=e,y=a,[S,R]=De(""),[$,z]=De(j),[Y,q]=De(null),[ae,Q]=De(null),{t:G,lang:pe}=Ut(),he=70;pe.startsWith("zh")||(he=75);let re=null,K=null,oe=null,me=null,ce=null,ye=null,Se=null,xe=null,Z=null,ke=null,Pe=null,Re=null;Ge(()=>{jt.get(Ot,null).then(H=>{H?(q(H),Q(Zt(H))):Q(!1)}).catch(H=>{Q(!1)})},[]);let Ne=!0,st=Xt();if(f){st&&f&&(Ne=f.generalRule.showSponsorOnSafari);let{translationService:H,translationServices:de,translationUrlPattern:$e}=f;Fn[H]&&(xe=Hi("translationService",H,M)),de&&de[H]?Re=de[H]||{}:Re={};try{Z=new URL(w||"")}catch{}if(w&&ug(w)){ke=ig(Z.hostname),Pe=sg(w);let{matches:Me,excludeMatches:_e}=$e;K=Me.includes(ke),re=Me.includes(Z.hostname),me=_e.includes(ke),oe=_e.includes(Z.hostname),ye=Me.includes(Pe),Se=_e.includes(Pe)}}if(f&&E&&E!=="auto"){let{translationLanguagePattern:H}=f,{matches:de}=H;de.includes(E)?ce=!0:ce=!1}let Ft=H=>{H.preventDefault(),h()},da=H=>{y(de=>(de.alpha?R("Success disable alpha!"):R("Success enable alpha!"),{...de,alpha:!de.alpha}))},Ht=H=>{y(de=>({...de,translationMode:H})),o(H)},An=()=>{y(H=>({...H,translationArea:"body"})),b()},Un=()=>{y(H=>({...H,translationArea:"main"})),n()},Ie=(H,de,$e,Me)=>{if(H==="default"){y(Cn=>{let Qt={...Cn.translationUrlPattern};return{...Cn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...Cn.translationUrlPattern,matches:Yn([Z?.hostname,ke,w],Qt.matches),excludeMatches:Yn([Z?.hostname,ke,w],Qt.excludeMatches)}}});return}let _e=H,Dn=_e==="matches"?"excludeMatches":"matches";Z&&y(Cn=>{let Qt={...Cn.translationUrlPattern};return Qt[_e]=xs(de,Qt[_e]),Me.length>0&&(Qt[_e]=Yn(Me,Qt[_e])),Qt[Dn]=Yn($e,Qt[Dn]),{...Cn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...Cn.translationUrlPattern,...Qt}}}),_e==="matches"&&c==="Original"?setTimeout(()=>{F(),I()},100):_e==="excludeMatches"&&c==="Translated"&&setTimeout(()=>{L(),I()},100)},qt=H=>{if(!H){y(Me=>{let _e={...Me.translationLanguagePattern};return{...Me,translationLanguagePattern:{...Me.translationLanguagePattern,matches:Yn(E,_e.matches),excludeMatches:Yn(E,_e.excludeMatches)}}});return}let de=H,$e=de==="matches"?"excludeMatches":"matches";E&&y(Me=>{let _e={...Me.translationLanguagePattern};return _e[de]=xs(E,_e[de]),_e[$e]=Yn(E,_e[$e]),{...Me,translationLanguagePattern:{...Me.translationLanguagePattern,..._e}}}),de==="matches"&&c==="Original"&&setTimeout(()=>{F(),I()},100)},rt=Z?.pathname.toLowerCase().endsWith(".pdf"),He=G("translate");c==="Translated"||c==="Error"?He=G("show-original"):c==="Original"?rt?Hu()&&Z.protocol==="file:"||D?He=G("translate-firefox-local-pdf"):fe()?He=G("noSupportTranslate-pdf"):He=G("translate-pdf"):He=G("translate"):He=G(c);let Jt=G("translateToThePageEndImmediately");(c==="Original"||c==="Translated")&&(f.shortcuts.toggleTranslatePage&&(O4()&&M.rule.fingerCountToToggleTranslagePageWhenTouching>=2?He+=` (${G(`fingers.${M.rule.fingerCountToToggleTranslagePageWhenTouching}`)})`:He+=` (${f.shortcuts.toggleTranslatePage})`),f.shortcuts.toggleTranslateToThePageEndImmediately&&(Jt+=` (${f.shortcuts.toggleTranslateToThePageEndImmediately})`));let _t=[];M&&(_t=Hc(M,"translationService"));let Hn=H=>{H.preventDefault(),I()},gt=_m(M.config.translationService,M.config.targetLanguage),dn=ye||re||K,ze=()=>ye?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!ye,onChange:H=>{let de=H.target.checked;Ie(de?"matches":"default",Pe,[Pe],[])}}),G("alwaysTranslateSomePage")]}):re?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!re,onChange:H=>{let de=H.target.checked;Ie(de?"matches":"default",Z.hostname,[Z.hostname,ke,Pe],[ke])}}),G("alwaysTranslateSomeSiteOrWildSite")]}):K?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!K,onChange:H=>{let de=H.target.checked;Ie(de?"matches":"default",ke,[Pe,Z.hostname,ke],[Z.hostname])}}),G("alwaysTranslateSomeSiteOrWildSite")]}):null;return V("div",{children:[V("div",{class:"popup-container px-6 pt-6 max-content",children:[V("div",{class:"text-sm",children:[V("div",{class:"flex justify-between mb-3 items-center",children:[V("label",{class:"inline-block text-label",children:[G("popupSourceLanguage"),"\uFF1A"]}),V(zn,{maxWidth:186,items:en.map(H=>({label:Fo(H,f.interfaceLanguage),value:H,selected:H===M.sourceLanguage,onSelected:de=>{v(de.value)}}))})]}),f&&f.targetLanguage&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[G("popupTarget"),"\uFF1A"]}),V(zn,{maxWidth:186,items:gt.filter(H=>H!=="auto").map(H=>({label:Fo(H,f.interfaceLanguage),value:H,selected:H===f.targetLanguage,onSelected:de=>{y($e=>({...$e,targetLanguage:de.value}))}}))})]}),xe&&_t.length>0&&V(Gt,{children:[V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[G("popupService"),"\uFF1A"]}),V(zn,{maxWidth:186,items:_t.map(H=>({label:`${G("translationServices."+H.id)}${H.ok?"":" "+(" "+(!ae&&!st&&H.providers&&H.providers.length>0?G("goLoginOrAction"):G("needAction")))}`,value:H.id,selected:H.selected,onSelected:de=>{let $e=_t.find(Me=>Me.id===de.value);if($e.ok){if(y(Me=>({...Me,translationService:$e.id})),c!="Translated")return;$e.props.length===0?setTimeout(()=>{F()},1):setTimeout(()=>{L()},1)}else y(Me=>({...Me,translationService:$e.id})),setTimeout(()=>{h()},100)}}))})]}),Re&&xe.props.length>0&&xe.props.map((H,de)=>V("div",{class:"pl-4 text-sm",children:V(J0,{field:H,value:Re[H.name],onChange:$e=>{y(Me=>{let _e=Me.translationServices||{},Dn=_e[xe.id]||{};return setTimeout(()=>{L()},1),{...Me,translationServices:{..._e,[xe.id]:{...Dn,[H.name]:$e}}}})}},"field-"+de)},"service"+de))]}),Z&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:G("forThisSite")}),V(zn,{maxWidth:186,items:[{label:G("default"),value:"default",selected:re===!1&&oe===!1&&!K&&!me&&!ye&&!Se,onSelected:()=>{Ie("default",Z.hostname,[],[]);let H=Z.hostname,de=M.localConfig.tempTranslationUrlMatches||[],$e=de.filter(_e=>_e.match!==H),Me=!1;$e.length!==de.length&&(Me=!0),Me&&A({...M.localConfig,tempTranslationUrlMatches:[...$e]})}},Pe&&{label:G("alwaysTranslateSomeSite",{hostname:G("currentUrl")}),value:"matchesUrl",selected:ye,onSelected:()=>{Ie("matches",Pe,[Pe],[])}},{label:G("alwaysTranslateSomeSite",{hostname:Z.hostname}),value:"matches",selected:re,onSelected:H=>{Ie(H.value,Z.hostname,[Z.hostname,ke,Pe],[ke])}},ke&&{label:G("alwaysTranslateSomeSite",{hostname:ke}),value:"matchesWild",selected:K,onSelected:()=>{Ie("matches",ke,[Pe,Z.hostname,ke],[Z.hostname])}},Pe&&{label:G("neverTranslateSomeSite",{hostname:G("currentUrl")}),value:"excludeMatchesUrl",selected:Se,onSelected:()=>{Ie("excludeMatches",Pe,[Pe],[])}},{label:G("neverTranslateSomeSite",{hostname:Z.hostname}),value:"excludeMatches",selected:oe,onSelected:H=>{Ie(H.value,Z.hostname,[Z.hostname,ke,Pe],[ke])}},ke&&{label:G("neverTranslateSomeSite",{hostname:ke}),value:"excludeMatchesWild",selected:me,onSelected:()=>{Ie("excludeMatches",ke,[Z.hostname,Pe,ke],[Z.hostname])}}].filter(Boolean)})]}),_&&Rr()&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[G("mouse-translate"),"\uFF1A"]}),V(zn,{maxWidth:186,items:Pu.filter(H=>!(Pu.includes(f.generalRule.mouseHoverHoldKey)&&H==="OtherCustom")).map(H=>{let de=G("mouseHoldKey",{key:H}),$e=Pu.includes(f.generalRule.mouseHoverHoldKey),Me=H===f.generalRule.mouseHoverHoldKey;return H==="Auto"?de=G("mouseHoldKeyAuto"):H==="Off"?de=G("mouseHoldKeyOff"):H==="OtherCustom"?de=$e?G("mouseHoldKeyOther"):G("mouseHoldKeyCustomKey",{key:f.generalRule.mouseHoverHoldKey}):H==="Other"&&(de=G("mouseHoldKeyOther")),$e||H==="OtherCustom"&&(Me=!0),{label:de,value:H,selected:Me,onSelected:_e=>{_e.value==="Other"?h("#interface"):_(_e.value)}}})})]})]}),V("div",{class:"",children:V("button",{class:"py-2 mt-1 mb-5 main-button ",onClick:()=>{rt?x&&x():O()},"aria-busy":c==="Translating",disabled:N||c==="Translating",children:He})}),V("div",{class:"text-sm",children:S}),V("div",{class:`pb-2 text-sm ${$?"":"display-none"}`,children:$}),V("div",{class:"flex items-center justify-between flex-wrap",children:[dn?V(ze,{}):E&&E!=="auto"?V("label",{for:"alwaysTranslateThisLanugage",class:"text-sm text-label text-overflow-ellipsis max-w-20",children:[V("input",{type:"checkbox",id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",checked:!!ce,onChange:H=>{let de=H.target.checked;qt(de?"matches":void 0)}}),G("alwaysTranslateSomeLanguage",{language:Fo(E,f.interfaceLanguage,!1,!0)})]}):V("span",{}),V("div",{class:`flex flex-end flex-grow ${$?"display-none":""}`,children:V("span",{class:"immersive-translate-no-select muted text-sm",onClick:rg(7)(da),children:["V",t,f.enabled?null:V("a",{href:"#",onClick:T,children:[" ","(",G("hasBeenDisabled"),")"]})]})})]})]}),V("footer",{children:[V("div",{class:"px-6 text-label",children:V(Q0,{isShowError:!1,request:r,setStorageBuildinConfig:s})}),V("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer text-label",children:[V("div",{class:"flex flex-row items-center justify-center secondary clickable",style:{width:70},onClick:Ft,children:[V(V0,{}),V("span",{class:"ml-1",children:G("options")})]}),Ne?V("a",{title:G(ae?"popup.openProForPro":"popup.openPro"),target:"_blank",href:ae?ji:zi,children:V("img",{src:ae?Z0:X0})}):ae&&V("a",{title:G(ae?"popup.openProForPro":"popup.openPro"),target:"_blank",href:ae?ji:zi,children:V("img",{src:ae?Z0:X0})}),V(Y0,{label:G("more"),showArrow:!0,maxWidth:he,onSelected:H=>{H.value==="openPremium"?(globalThis.open(Ar),I()):H.value==="changeToOnlyTranslationMode"?Ht("translation"):H.value==="changeToDualTranslationMode"?Ht("dual"):H.value==="translateTheWholePage"?b():H.value==="translateToThePageEndImmediately"?C():H.value==="translateTheMainPage"?n():H.value==="showTranslationOnly"||(H.value==="translateLocalPdfFile"?B&&B():H.value==="translateLocalHtmlFile"?u&&u():H.value==="translateLocalSubtitleFile"?i&&i():H.value==="donate"?(globalThis.open(f.donateUrl),I()):H.value==="feedback"?(globalThis.open(f.feedbackUrl),I()):H.value==="options"?(h(),I()):H.value==="changeToTranslateTheWholePage"?An():H.value==="changeToTranslateTheMainPage"?Un():H.value==="about"?d():H.value==="toggleEnabled"?T():H.value==="openEbookViewer"?g():H.value==="openEbookBuilder"?l():H.value==="goPro"&&m())},menus:[f.translationMode==="dual"&&{label:"\u{1F524} "+G("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},f.translationMode==="translation"&&{label:"\u{1F521} "+G("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},f.translationArea==="main"&&{label:"\u{1F480} "+G("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},f.translationArea==="body"&&{label:"\u{1F4D6} "+G("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},{label:"\u26A1 "+Jt,value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+G("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+G("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+G("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},!fe()&&{label:"\u{1F310} "+G("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+G("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},ae===!1&&Ne&&{label:"\u{1F451} "+G("upgradeToPro"),value:"goPro"},{label:"\u2764\uFE0F "+G(Ne?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})]})]})}p();p();p();p();var tl={get:(e,t,n)=>{let a=t===void 0?e:{[e]:t};return se.storage[n].get(a)},set:(e,t,n)=>se.storage[n].set({[e]:t})};function Go(e,t,n){let[a]=De(()=>typeof t=="function"?t():t),[r]=De(n),[u,o]=De(a),[i,s]=De(!1),[c,l]=De("");Ge(()=>{tl.get(e,a,r).then(g=>{g[e]&&o(g[e]),s(!0),l("")}).catch(g=>{s(!1),l(g)})},[e,a,r]);let m=sa(g=>{let f=typeof g=="function"?g(u):g;U.debug("new settings",f),tl.set(e,f,r).then(()=>{o(f),s(!0),l("")}).catch(d=>{o(f),s(!1),l(d)})},[r,e,u]);return[u,m,i,c]}p();function nl(e,t,n){let a=[];return function(){let[u,o,i,s]=Go(e,t,n),c=sa(l=>{for(let m of a)m(l)},[]);return Ge(()=>(a.push(o),()=>{a.splice(a.indexOf(o),1)}),[o]),[u,c,i,s]}}function lg(e,t){return nl(e,t,"sync")}var tb="userConfig",nb=null,ab=lg(tb,nb);function Vo(e){let[t,n,a,r]=ab(),u=sa(o=>{let i=typeof o=="function"?o(t):o;i&&(i.updatedAt=new Date().toISOString()),n(i),e&&e(i)},[t]);return[t,u,a,r,n]}p();p();async function cg(e){try{let t=new Date;U.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await se.storage.local.set({[Lc]:t.toISOString()}),await rb(),fe()||await dg()}catch(t){U.error("run cron task failed",t)}}async function rb(){try{let e=await En(),t=await ie({url:kr}),n=e.buildinConfigUpdatedAt,a=new Date(n),r=t.buildinConfigUpdatedAt,u=new Date(r),o=t.minVersion,i=se.runtime.getManifest().version;mu(i,o)?u>a?(await se.storage.local.set({buildinConfig:t}),U.info(`sync remote rules success, latest: ${new Date(r).toLocaleString()}`)):U.debug(`no need to sync rules, latest: ${a}`):U.info(`local version is too old, please update to ${o} or later`)}catch(e){U.error("sync rules error: ",e)}}p();p();p();p();p();p();var al;function gl(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function Eg(e,t=","){return e.map(gl).join(t)}var Tg=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function Jo(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function Qo(e,t="@media "){return t+Vt(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(a=>`(${a}-width:${n[a]})`).join(" and "))).join(",")}function Vt(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function ub(){}var bt={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function Cg(e){return e.match(/[-=:;]/g)?.length||0}function ll(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(Cg(e),15)<<18}var ob=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function pl({n:e,i:t,v:n=[]},a,r,u){e&&(e=gl({n:e,i:t,v:n})),u=[...Vt(u)];for(let i of n){let s=a.theme("screens",i);for(let c of Vt(s&&Qo(s)||a.v(i))){var o;u.push(c),r|=s?67108864|ll(c):i=="dark"?1073741824:c[0]=="@"?ll(c):(o=c,1<<~(/:([a-z-]+)/.test(o)&&~ob.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:r,r:u,i:t}}var fl=new Map;function mg(e){if(e.d){let t=[],n=rl(e.r.reduce((a,r)=>r[0]=="@"?(t.push(r),a):r?rl(a,u=>rl(r,o=>{let i=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(i){let s=u.indexOf(i[1]);return~s?u.slice(0,s)+i[0]+u.slice(s+i[1].length):ul(u,o)}return ul(o,u)})):a,"&"),a=>ul(a,e.n?"."+Tg(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((a,r)=>r+"{"+a+"}",e.d)}}function rl(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,a,r)=>t(a)+r)}function ul(e,t){return e.replace(/&/g,t)}var gg=new Intl.Collator("en",{numeric:!0});function ib(e,t){for(var n=0,a=e.length;n>1;0>=wg(e[r],t)?n=r+1:a=r}return a}function wg(e,t){let n=e.p&bt.o;return n==(t.p&bt.o)&&(n==bt.b||n==bt.o)?0:e.p-t.p||e.o-t.o||gg.compare(pg(e.n),pg(t.n))||gg.compare(fg(e.n),fg(t.n))}function pg(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function fg(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function ol(e,t){return Math.round(parseInt(e,16)*t)}function la(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:a}=t,r=a?`var(${a})`:n;if(e.includes(""))return e.replace("",r);if(e[0]=="#"&&(e.length==4||e.length==7)){let u=(e.length-1)/3,o=[17,1,.062272][u-1];return`rgba(${[ol(e.substr(1,u),o),ol(e.substr(1+u,u),o),ol(e.substr(1+2*u,u),o),r]})`}return r=="1"?e:r=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${r})`)}function vg(e,t,n,a,r=[]){return function u(o,{n:i,p:s,r:c=[],i:l},m){let g=[],f="",d=0,b=0;for(let C in o||{}){var T,h;let v=o[C];if(C[0]=="@"){if(!v)continue;if(C[1]=="a"){g.push(...Sg(i,s,bl(""+v),m,s,c,l,!0));continue}if(C[1]=="l"){for(let O of Vt(v))g.push(...u(O,{n:i,p:(T=bt[C[7]],s&~bt.o|T),r:C[7]=="d"?[]:c,i:l},m));continue}if(C[1]=="i"){g.push(...Vt(v).map(O=>({p:-1,o:0,r:[],d:C+" "+O})));continue}if(C[1]=="k"){g.push({p:bt.d,o:0,r:[C],d:u(v,{p:bt.d},m).map(mg).join("")});continue}if(C[1]=="f"){g.push(...Vt(v).map(O=>({p:bt.d,o:0,r:[C],d:u(O,{p:bt.d},m).map(mg).join("")})));continue}}if(typeof v!="object"||Array.isArray(v))C=="label"&&v?i=v+Jo(JSON.stringify([s,l,o])):(v||v===0)&&(C=C.replace(/[A-Z]/g,O=>"-"+O.toLowerCase()),b+=1,d=Math.max(d,(h=C)[0]=="-"?0:Cg(h)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(h)?+!!RegExp.$1||-!!RegExp.$2:0)+1),f+=(f?";":"")+Vt(v).map(O=>m.s(C,kg(""+O,m.theme)+(l?" !important":""))).join(";"));else if(C[0]=="@"||C.includes("&")){let O=s;C[0]=="@"&&(C=C.replace(/\bscreen\(([^)]+)\)/g,(B,x)=>{let L=m.theme("screens",x);return L?(O|=67108864,Qo(L,"")):B}),O|=ll(C)),g.push(...u(v,{n:i,p:O,r:[...c,C],i:l},m))}else g.push(...u(v,{p:s,r:[...c,C]},m))}return g.unshift({n:i,p:s,o:Math.max(0,15-b)+1.5*Math.min(d||15,15),r:c,d:f}),g.sort(wg)}(e,pl(t,n,a,r),n)}function kg(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,a,r,u,o="")=>{let i=t(r,o);return typeof i=="function"&&/color|fill|stroke/i.test(r)?la(i):""+Vt(i).filter(s=>Object(s)!==s)})}function hl(e,t){let n,a=[];for(let r of e)r.d&&r.n?n?.p==r.p&&""+n.r==""+r.r?(n.c=[n.c,r.c].filter(Boolean).join(" "),n.d=n.d+";"+r.d):a.push(n={...r,n:r.n&&t}):a.push({...r,n:r.n&&t});return a}function cl(e,t,n=bt.u,a,r){let u=[];for(let o of e)for(let i of function(s,c,l,m,g){s={...s,i:s.i||g};let f=function(d,b){let T=fl.get(d.n);return T?T(d,b):b.r(d.n,d.v[0]=="dark")}(s,c);return f?typeof f=="string"?({r:m,p:l}=pl(s,c,l,m),hl(cl(bl(f),c,l,m,s.i),s.n)):Array.isArray(f)?f.map(d=>{var b,T;return{o:0,...d,r:[...Vt(m),...Vt(d.r)],p:(b=l,T=d.p??l,b&~bt.o|T)}}):vg(f,s,c,l,m):[{c:gl(s),p:0,o:0,r:[]}]}(o,t,n,a,r))u.splice(ib(u,i),0,i);return u}function Sg(e,t,n,a,r,u,o,i){return hl((i?n.flatMap(s=>cl([s],a,r,u,o)):cl(n,a,r,u,o)).map(s=>s.p&bt.o&&(s.n||t==bt.b)?{...s,p:s.p&~bt.o|t,o:0}:s),e)}function sb(e,t,n,a){var r;return r=(u,o)=>{let{n:i,p:s,r:c,i:l}=pl(u,o,t);return n&&Sg(i,t,n,o,s,c,l,a)},fl.set(e,r),e}function il(e,t,n){if(e[e.length-1]!="("){let a=[],r=!1,u=!1,o="";for(let i of e)if(!(i=="("||/[~@]$/.test(i))){if(i[0]=="!"&&(i=i.slice(1),r=!r),i.endsWith(":")){a[i=="dark:"?"unshift":"push"](i.slice(0,-1));continue}i[0]=="-"&&(i=i.slice(1),u=!u),i.endsWith("-")&&(i=i.slice(0,-1)),i&&i!="&"&&(o+=(o&&"-")+i)}o&&(u&&(o="-"+o),t[0].push({n:o,v:a.filter(lb),i:r}))}}function lb(e,t,n){return n.indexOf(e)==t}var hg=new Map;function bl(e){let t=hg.get(e);if(!t){let n=[],a=[[]],r=0,u=0,o=null,i=0,s=(c,l=0)=>{r!=i&&(n.push(e.slice(r,i+l)),c&&il(n,a)),r=i+1};for(;i1?m.slice(0,-1)+Jo(JSON.stringify([m,g])):m+"("+Eg(g)+")",bt.a,g,/@$/.test(m))],a)}l=n.lastIndexOf("(",l-1)}n.length=l+1}else/[~@]/.test(c)&&e[i+1]=="("&&a.unshift([])}s(!0),hg.set(e,t=a[0])}return t}function Ag(e,t,n){return t.reduce((a,r,u)=>a+n(r)+e[u+1],e[0])}function Dg(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?Ag(e,t,n=>sl(n).trim()):t.filter(Boolean).reduce((n,a)=>n+sl(a),e?sl(e):"")}function sl(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=Dg(e[0],e.slice(1)))&&(n+=" "+t);else for(let a in e)e[a]&&(n+=" "+a);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var rF=Lg("@"),uF=Lg("~");function Lg(e){return new Proxy(function(n,...a){return t("",n,a)},{get(n,a){return a in n?n[a]:function(r,...u){return t(a,r,u)}}});function t(n,a,r){return Eg(bl(n+e+"("+Dg(a,r)+")"))}}function dl(e,t){return Array.isArray(e)?bg(Ag(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?bg(e):[e]}var cb=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function bg(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],a=[n[0]],r=[];for(;t=cb.exec(e);)t[4]&&(n.shift(),r.shift()),t[3]?(r.unshift(t[3]),n.unshift({}),a.push(r.reduce((u,o)=>({[o]:u}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),a.push(r.reduce((u,o)=>({[o]:u}),n[0]))),n[0][t[1]]=t[2]);return a}function Pg(e,...t){var n;let a=dl(e,t),r=(a.find(u=>u.label)?.label||"css")+Jo(JSON.stringify(a));return n=(u,o)=>hl(a.flatMap(i=>vg(i,u,o,bt.o)),r),fl.set(r,n),r}var oF=new Proxy(function(e,t){return yg("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,a){return yg(t,n,a)}}});function yg(e,t,n){return{toString(){return Pg({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function ee(e,t,n){return[e,db(t,n)]}function db(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,a)=>({[e]:t?t(n,a):ml(n,1)}):n=>e||{[n[1]]:ml(n,2)}}function ml(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function te(e,t,n,a){return[e,mb(t,n,a)]}function mb(e,t,n){let a=typeof t=="string"?(r,u)=>({[t]:n?n(r,u):r._}):t||(({1:r,_:u},o,i)=>({[r||i]:u}));return(r,u)=>{let o=Mg(e||r[1]),i=u.theme(o,r.$$)??fr(r.$$,o,u);if(i!=null)return r._=ml(r,0,i),a(r,u,o)}}function it(e,t={},n){return[e,gb(t,n)]}function gb(e={},t){return(n,a)=>{let{section:r=Mg(n[0]).replace("-","")+"Color"}=e,[u,o]=pb(n.$$);if(!u)return;let i=a.theme(r,u)||fr(u,r,a);if(!i||typeof i=="object")return;let{opacityVariable:s=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:c=r.replace("Color","Opacity"),property:l=r,selector:m}=e,g=a.theme(c,o||"DEFAULT")||o&&fr(o,c,a),f=t||(({_:b})=>{let T=gu(l,b);return m?{[m]:T}:T});n._={value:la(i,{opacityVariable:s||void 0,opacityValue:g||void 0}),color:b=>la(i,b),opacityVariable:s||void 0,opacityValue:g||void 0};let d=f(n,a);if(!n.dark){let b=a.d(r,u,i);b&&b!==i&&(n._={value:la(b,{opacityVariable:s||void 0,opacityValue:g||"1"}),color:T=>la(b,T),opacityVariable:s||void 0,opacityValue:g||void 0},d={"&":d,[a.v("dark")]:f(n,a)})}return d}}function pb(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function gu(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function fr(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=Yo(kg(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function Mg(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function Yo(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",a,r="")=>Yo(n)+a+Yo(r)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var iF=Symbol();var Fg=new Proxy(ub,{apply(e,t,n){return al(n[0])},get(e,t){let n=al[t];return typeof n=="function"?function(){return n.apply(al,arguments)}:n}});var sF=function e(t){return new Proxy(function(n,...a){return xg(t,"",n,a)},{get(n,a){return a==="bind"?e:a in n?n[a]:function(r,...u){return xg(t,a,r,u)}}})}();function xg(e,t,n,a){return{toString(){let r=dl(n,a),u=Tg(t+Jo(JSON.stringify([t,r])));return(typeof e=="function"?e:Fg)(Pg({[`@keyframes ${u}`]:dl(n,a)})),u}}}p();p();p();p();p();var _g={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...Yt(4,"rem",4,.5,.5),...Yt(12,"rem",4,5),14:"3.5rem",...Yt(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Fe("blur"),backdropBrightness:Fe("brightness"),backdropContrast:Fe("contrast"),backdropGrayscale:Fe("grayscale"),backdropHueRotate:Fe("hueRotate"),backdropInvert:Fe("invert"),backdropOpacity:Fe("opacity"),backdropSaturate:Fe("saturate"),backdropSepia:Fe("sepia"),backgroundColor:Fe("colors"),backgroundImage:{none:"none"},backgroundOpacity:Fe("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...Yt(200,"",100,0,50),...Yt(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Fe("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Fe("spacing"),borderWidth:{DEFAULT:"1px",...on(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Fe("colors"),caretColor:Fe("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...Yt(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Fe("borderColor"),divideOpacity:Fe("borderOpacity"),divideWidth:Fe("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...pu(2,6),...pu(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Fe("spacing"),gradientColorStops:Fe("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...pu(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...pu(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...Yt(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...Yt(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Fe("spacing"),placeholderColor:Fe("colors"),placeholderOpacity:Fe("opacity"),outlineColor:Fe("colors"),outlineOffset:on(8,"px"),outlineWidth:on(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Fe("colors"),ringOffsetWidth:on(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...on(8,"px")},rotate:{...on(2,"deg"),...on(12,"deg",3),...on(180,"deg",45)},saturate:Yt(200,"",100,0,50),scale:{...Yt(150,"",100,0,50),...Yt(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Fe("spacing"),scrollPadding:Fe("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...on(2,"deg"),...on(12,"deg",3)},space:Fe("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:Yt(2),textColor:Fe("colors"),textDecorationColor:Fe("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...on(8,"px")},textUnderlineOffset:{auto:"auto",...on(8,"px")},textIndent:Fe("spacing"),textOpacity:Fe("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Fe("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...pu(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...Yt(50,"",1,0,10),auto:"auto"}};function pu(e,t){let n={};do for(var a=1;at(e)}var SF={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${_g.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${_g.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},DF=[ee("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:fr(`[${t}]`,"",n)}}})),ee("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),te("aspect-","aspectRatio"),ee("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:a,padding:r}=t("container"),u={width:"100%",marginRight:a&&"auto",marginLeft:a&&"auto",...o("xs")};for(let i in n){let s=n[i];typeof s=="string"&&(u[Qo(s)]={"&":{maxWidth:s,...o(i)}})}return u;function o(i){let s=r&&(typeof r=="string"?r:r[i]||r.DEFAULT);if(s)return{paddingRight:s,paddingLeft:s}}}),te("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),ee("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),ee("box-(border|content)","boxSizing",({1:e})=>e+"-box"),ee("hidden",{display:"none"}),ee("table-(auto|fixed)","tableLayout"),ee(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",ee("isolate","isolation"),ee("object-(contain|cover|fill|none|scale-down)","objectFit"),te("object-","objectPosition"),ee("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",Zo),ee("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),ee("(static|fixed|absolute|relative|sticky)","position"),te("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),te("-?(top|bottom|left|right)(?:$|-)","inset"),ee("(visible|collapse)","visibility"),ee("invisible",{visibility:"hidden"}),te("-?z-","zIndex"),ee("flex-((row|col)(-reverse)?)","flexDirection",Bg),ee("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),te("(flex-(?:grow|shrink))(?:$|-)"),te("(flex)-"),te("grow(?:$|-)","flexGrow"),te("shrink(?:$|-)","flexShrink"),te("basis-","flexBasis"),te("-?(order)-"),"-?(order)-(\\d+)",te("grid-cols-","gridTemplateColumns"),ee("grid-cols-(\\d+)","gridTemplateColumns",Ng),te("col-","gridColumn"),ee("col-(span)-(\\d+)","gridColumn",Og),te("col-start-","gridColumnStart"),ee("col-start-(auto|\\d+)","gridColumnStart"),te("col-end-","gridColumnEnd"),ee("col-end-(auto|\\d+)","gridColumnEnd"),te("grid-rows-","gridTemplateRows"),ee("grid-rows-(\\d+)","gridTemplateRows",Ng),te("row-","gridRow"),ee("row-(span)-(\\d+)","gridRow",Og),te("row-start-","gridRowStart"),ee("row-start-(auto|\\d+)","gridRowStart"),te("row-end-","gridRowEnd"),ee("row-end-(auto|\\d+)","gridRowEnd"),ee("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>Zo(Bg(e))),ee("grid-flow-(dense)","gridAutoFlow"),te("auto-cols-","gridAutoColumns"),te("auto-rows-","gridAutoRows"),te("gap-x(?:$|-)","gap","columnGap"),te("gap-y(?:$|-)","gap","rowGap"),te("gap(?:$|-)","gap"),"(justify-(?:items|self))-",ee("justify-","justifyContent",Rg),ee("(content|items|self)-",e=>({["align-"+e[1]]:Rg(e)})),ee("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),te("p([xytrbl])?(?:$|-)","padding",hr("padding")),te("-?m([xytrbl])?(?:$|-)","margin",hr("margin")),te("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),ee("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),te("w-","width"),te("min-w-","minWidth"),te("max-w-","maxWidth"),te("h-","height"),te("min-h-","minHeight"),te("max-h-","maxHeight"),te("font-","fontWeight"),te("font-","fontFamily",({_:e})=>typeof(e=Vt(e))[1]=="string"?{fontFamily:Tn(e)}:{fontFamily:Tn(e[0]),...e[1]}),ee("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),ee("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),ee("italic","fontStyle"),ee("not-italic",{fontStyle:"normal"}),ee("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...ca({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),te("tracking-","letterSpacing"),te("leading-","lineHeight"),ee("list-(inside|outside)","listStylePosition"),te("list-","listStyleType"),ee("list-","listStyleType"),te("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),it("placeholder-",{property:"color",selector:"&::placeholder"}),ee("text-(left|center|right|justify|start|end)","textAlign"),ee("text-(ellipsis|clip)","textOverflow"),te("text-opacity-","textOpacity","--tw-text-opacity"),it("text-",{property:"color"}),te("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),te("indent-","textIndent"),ee("(overline|underline|line-through)","textDecorationLine"),ee("no-underline",{textDecorationLine:"none"}),te("underline-offset-","textUnderlineOffset"),it("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),te("decoration-","textDecorationThickness"),ee("decoration-","textDecorationStyle"),ee("(uppercase|lowercase|capitalize)","textTransform"),ee("normal-case",{textTransform:"none"}),ee("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),ee("align-","verticalAlign"),ee("whitespace-","whiteSpace"),ee("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),ee("break-words",{overflowWrap:"break-word"}),ee("break-all",{wordBreak:"break-all"}),ee("break-keep",{wordBreak:"keep-all"}),it("caret-",{opacityVariable:!1,opacitySection:"opacity"}),it("accent-",{opacityVariable:!1,opacitySection:"opacity"}),ee("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${Aa(e," ")},var(--tw-gradient-stops))`),it("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),it("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),it("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),ee("bg-(fixed|local|scroll)","backgroundAttachment"),ee("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),ee(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),ee("bg-blend-","backgroundBlendMode"),ee("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),te("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),it("bg-",{section:"backgroundColor"}),te("bg-","backgroundImage"),te("bg-","backgroundPosition"),ee("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",Zo),te("bg-","backgroundSize"),te("rounded(?:$|-)","borderRadius"),te("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${Aa(n[0])}-radius`]:t,[`border-${Aa(n[1])}-radius`]:t}}),ee("border-(collapse|separate)","borderCollapse"),te("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),ee("border-(solid|dashed|dotted|double|none)","borderStyle"),te("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...ca({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),it("border-([xytrbl])-",{section:"borderColor"},hr("border","Color")),it("border-"),te("border-([xytrbl])(?:$|-)","borderWidth",hr("border","Width")),te("border(?:$|-)","borderWidth"),te("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),ee("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),ee("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),te("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${Aa(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${Aa(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),it("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),te("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),it("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),te("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),ee("ring-inset",{"--tw-ring-inset":"inset"}),it("ring-",{property:"--tw-ring-color"}),te("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...ca({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":la(t("ringOffsetColor","","#fff")),"--tw-ring-color":la(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),it("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),te("shadow(?:$|-)","boxShadow",({_:e})=>({...ca({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Tn(e),"--tw-shadow-colored":Tn(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),te("(opacity)-"),ee("mix-blend-","mixBlendMode"),...Ig(),...Ig("backdrop-"),te("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Tn(e),transitionTimingFunction:e._=="none"?void 0:Tn(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:Tn(t("transitionDuration",""))})),te("duration(?:$|-)","transitionDuration","transitionDuration",Tn),te("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Tn),te("delay(?:$|-)","transitionDelay","transitionDelay",Tn),te("animate(?:$|-)","animation",(e,{theme:t,h:n,e:a})=>{let r=Tn(e),u=r.split(" "),o=t("keyframes",u[0]);return o?{["@keyframes "+(u[0]=a(n(u[0])))]:o,animation:u.join(" ")}:{animation:r}}),"(transform)-(none)",ee("transform",xl),ee("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":jg(e=="gpu")})),te("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...xl()})),te("-?(rotate)-","rotate",yl),te("-?(translate-[xy])-","translate",yl),te("-?(skew-[xy])-","skew",yl),ee("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",Zo),"(appearance)-",te("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",te("(cursor)-"),"(cursor)-",ee("snap-(none)","scroll-snap-type"),ee("snap-(x|y|both)",({1:e})=>({...ca({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),ee("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),ee("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),ee("snap-(normal|always)","scroll-snap-stop"),ee("scroll-(auto|smooth)","scroll-behavior"),te("scroll-p([xytrbl])?(?:$|-)","padding",hr("scroll-padding")),te("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",hr("scroll-margin")),ee("touch-(auto|none|manipulation)","touch-action"),ee("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...ca({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),ee("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),ee("outline",{outlineStyle:"solid"}),ee("outline-(dashed|dotted|double)","outlineStyle"),te("-?(outline-offset)-"),it("outline-",{opacityVariable:!1,opacitySection:"opacity"}),te("outline-","outlineWidth"),"(pointer-events)-",te("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],ee("select-(none|text|all|auto)","userSelect"),it("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),it("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),te("stroke-","strokeWidth"),ee("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),ee("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function Zo(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function Bg(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function Aa(e,t="-"){let n=[];for(let a of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[a]);return n.join(t)}function Tn(e){return e&&""+(e._||e)}function Rg({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function hr(e,t=""){return({1:n,_:a})=>{let r={x:"lr",y:"tb"}[n]||n+n;return r?{...gu(e+"-"+Aa(r[0])+t,a),...gu(e+"-"+Aa(r[1])+t,a)}:gu(e+t,a)}}function Ig(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let a of t)n[`--tw-${e}${a}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...ca(n),[`${e}filter`]:t.map(a=>`var(--tw-${e}${a})`).join(" ")},[`(${e}filter)-(none)`,ee(`${e}filter`,n),...t.map(a=>te(`${a[0]=="h"?"-?":""}(${e}${a})(?:$|-)`,a,({1:r,_:u})=>({[`--tw-${r}`]:Vt(u).map(o=>`${a}(${o})`).join(" "),...n})))]}function yl({1:e,_:t}){return{["--tw-"+e]:t,...xl()}}function xl(){return{...ca({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":jg()}),transform:"var(--tw-transform)"}}function jg(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function Og({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function Ng({1:e}){return`repeat(${e},minmax(0,1fr))`}function ca(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}p();p();var Xo=globalThis||(typeof window<"u"?window:self),bb=Object.create,Tl=Object.defineProperty,yb=Object.getOwnPropertyDescriptor,xb=Object.getOwnPropertyNames,Eb=Object.getPrototypeOf,Tb=Object.prototype.hasOwnProperty,Cb=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),wb=(e,t)=>{for(var n in t)Tl(e,n,{get:t[n],enumerable:!0})},El=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of xb(t))!Tb.call(e,r)&&r!==n&&Tl(e,r,{get:()=>t[r],enumerable:!(a=yb(t,r))||a.enumerable});return e},vb=(e,t,n)=>(El(e,t,"default"),n&&El(n,t,"default")),Ug=(e,t,n)=>(n=e!=null?bb(Eb(e)):{},El(t||!e||!e.__esModule?Tl(n,"default",{value:e,enumerable:!0}):n,e)),Hg=Cb((e,t)=>{(function(n,a){typeof define=="function"&&define.amd?define([],a):typeof e<"u"?a():(a(),n.FileSaver={})})(e,function(){"use strict";function n(c,l){return typeof l>"u"?l={autoBom:!1}:typeof l!="object"&&(l={autoBom:!l}),l.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function a(c,l,m){var g=new XMLHttpRequest;g.open("GET",c),g.responseType="blob",g.onload=function(){s(g.response,l,m)},g.onerror=function(){},g.send()}function r(c){var l=new XMLHttpRequest;l.open("HEAD",c,!1);try{l.send()}catch{}return 200<=l.status&&299>=l.status}function u(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var l=document.createEvent("MouseEvents");l.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(l)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Xo=="object"&&Xo.global===Xo?Xo:void 0,i=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(c,l,m){var g=o.URL||o.webkitURL,f=document.createElement("a");l=l||c.name||"download",f.download=l,f.rel="noopener",typeof c=="string"?(f.href=c,f.origin===location.origin?u(f):r(f.href)?a(c,l,m):u(f,f.target="_blank")):(f.href=g.createObjectURL(c),setTimeout(function(){g.revokeObjectURL(f.href)},4e4),setTimeout(function(){u(f)},0))}:"msSaveOrOpenBlob"in navigator?function(c,l,m){if(l=l||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(n(c,m),l);else if(r(c))a(c,l,m);else{var g=document.createElement("a");g.href=c,g.target="_blank",setTimeout(function(){u(g)})}}:function(c,l,m,g){if(g=g||open("","_blank"),g&&(g.document.title=g.document.body.innerText="downloading..."),typeof c=="string")return a(c,l,m);var f=c.type==="application/octet-stream",d=/constructor/i.test(o.HTMLElement)||o.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||f&&d||i)&&typeof FileReader<"u"){var T=new FileReader;T.onloadend=function(){var v=T.result;v=b?v:v.replace(/^data:[^;]*;/,"data:attachment/file;"),g?g.location.href=v:location=v,g=null},T.readAsDataURL(c)}else{var h=o.URL||o.webkitURL,C=h.createObjectURL(c);g?g.location=C:location.href=C,g=null,setTimeout(function(){h.revokeObjectURL(C)},4e4)}});o.saveAs=s.saveAs=s,typeof t<"u"&&(t.exports=s)})}),qg={};wb(qg,{default:()=>ei});var kb=Ug(Hg());vb(qg,Ug(Hg()));var{default:zg,...Sb}=kb,ei=zg!==void 0?zg:Sb;p();p();p();p();p();p();var p_=Qe().REDIRECT_URL;function Bb(){let[e,t]=De(null);return Ge(()=>{Jn().then(a=>{t(a)})},[]),[e,a=>{t(a),kn(a)}]}async function Rb(e,t,n){try{if(t===null)return"noupdate";let a=await Nb(e),r=await Jn();r.accountLastSyncedAt=Date.now(),U.debug("settings",t),U.debug("local settings.updatedAt",t.updatedAt),U.debug("remote settings.updatedAt",a.updatedAt),U.debug("last synced at",r.accountLastSyncedAt);let u=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(u=!0),!u&&t.updatedAt>a.updatedAt&&(u=!0),U.debug("isUpload",u),u)return await jb(e,t),await kn(r),"upload";let o=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(o=!0),!o&&t.updatedAt0&&jt.remove(Ot),a}}function Kg(e,t){let n=Ob(),[a,r]=Bb();Ge(()=>{!n||!n.token||a&&a.proAutoSync===!1||Ib(n)&&Rb(n.token,e,t)},[e,n])}function Ib(e){return Zt(e)?!0:new Date(e.createTime){jt.get(Ot,null).then(n=>{t(n)})},[t]),e}function Nb(e){return(location.href?.indexOf("popup.html")>0?ba:ie)({responseType:"json",url:Ni+"/v1/user/settings",method:"get",headers:{token:e}}).then(n=>n.data)}function jb(e,t){return(location.href?.indexOf("popup.html")>0?ba:ie)({responseType:"json",url:Ni+"/v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(a=>a.data)}function wl(e){let{onClose:t}=e,[n,a]=De("Original"),[r,u,o,i]=Vo(()=>{setTimeout(()=>{v("updateGlobalContext",!1)()},250)});Kg(r,u);let[s,c]=De(null),[l,m]=De(globalThis.location.href),[g,f]=De("auto"),[d,b]=De(null),T=N=>{a(N.detail)},h=N=>{f(N);let D=ag(l,N,s.sourceLanguageUrlPattern);u(y=>({...y,sourceLanguageUrlPattern:D})),rn(N)},C=()=>{m(globalThis.location.href)};Ge(()=>(document.addEventListener(vu,T,!1),En().then(N=>{c(N);let D=ct();f(D);let y=qe();a(y),cg(N.interval)}),document.addEventListener("urlChange",C),()=>{document.removeEventListener("pageTranslatedStatus",T),document.removeEventListener("urlChange",C)}),[]),Ge(()=>{En().then(N=>{c(N)})},[r]),Ge(()=>{l&&s&&Sa({url:l,config:s}).then(N=>{b(N)})},[l,s]);let v=(N,D,y={})=>()=>{dr({method:N,data:y||{}}),D&&t()},O=()=>{t()},B=()=>{u(N=>({...N,enabled:!N.enabled})),setTimeout(()=>{O()},50)},x=()=>{Cl(),setTimeout(()=>{O()},50)},L=()=>{Cl(),setTimeout(()=>{O()},50)},M=(N="")=>{br(!0,N),setTimeout(()=>{t()},50)},w=()=>{ai(jc),setTimeout(()=>{globalThis.close()},50)},E=()=>{ni(),setTimeout(()=>{t()},50)},I=()=>{ri(),setTimeout(()=>{t()},50)},F=()=>{Vg(),setTimeout(()=>{t()},50)},A=()=>{ui(),setTimeout(()=>{t()},50)},_=()=>{Yg(),setTimeout(()=>{t()},50)},j=N=>{u(D=>({...D,generalRule:{...D.generalRule,mouseHoverHoldKey:N}}))};return!s||!d?null:V(el,{openEbookViewerPage:I,openEbookBuilderPage:A,onSwitchTranslationMode:N=>{v("switchTranslationMode",!0,{mode:N})()},onTranslateLocalHtmlFile:F,onTranslateLocalSubtitleFile:_,request:ie,onClose:O,onToggleEnabled:B,onTranslateTheWholePage:v("translateTheWholePage",!0),openOptionsPage:M,openPricingPage:w,onToggleTranslate:v("toggleTranslatePage",!0),onTranslateTheMainPage:v("translateTheMainPage",!0),ontranslateToThePageEndImmediately:v("translateToThePageEndImmediately",!0),onTranslatePage:v("translatePage",!0),onRestorePage:v("restorePage",!1),onTranslatePdf:x,openAboutPage:E,onTranslateLocalPdfFile:L,onSetPageLanguage:h,onUserConfigChange:u,config:s,pageStatus:n,ctx:d,currentUrl:l,currentLang:g,onSetLocalConfig:ti,onSetBuildinConfig:Gg,onMouseTriggerChanged:j})}function zb(e,t){for(let n of t){if(fe()&&!Hu()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}var vl={position:"right",right:0,top:335},Pt={...vl},si=!1,Da=null,Sn=null,li=null,kl=null,yr=null,Sl=null,Jg=6,oi,ii,Zg=null,Xg=null;async function ep(){let e=Qe();Sl=await ap(),Pt=Sl.pagePopupConfig||Pt;let t=document.createElement("div");t.id="immersive-translate-popup",t.setAttribute("style","all: initial"),document.documentElement.appendChild(t);let n=t.attachShadow({mode:"open"});kl=n;let a=[e.IMMERSIVE_TRANSLATE_PICO_CSS,e.IMMERSIVE_TRANSLATE_COMMON_CSS,e.IMMERSIVE_TRANSLATE_POPUP_CSS,e.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);zb(n,[a]);let r=document.createElement("div");r.innerHTML=e.IMMERSIVE_TRANSLATE_POPUP_HTML,n.appendChild(r),Da=n.querySelector("#immersive-translate-popup-container");let o=n.querySelector("#immersive-translate-popup-btn");Sn=o,li=n.querySelector("#mount"),Da.setAttribute("style",Al(Pt)),Ml(),o.addEventListener("mousedown",tp),o.addEventListener("touchstart",qb),globalThis.addEventListener("resize",s=>{Da.setAttribute("style",Al(Pt))})}function Ub(){lu(null,li),li.style.display="none",Sn.style.display="block",yr=setTimeout(()=>{Ml(!0)},2e3)}function Qg(e){let t=e.querySelector("#mount"),n=()=>{Ub()},a=r=>{r&&r.target&&r.target.id==="immersive-translate-popup-overlay"&&n()};(async()=>{let r=await En();lu(V(ng,{lang:r.interfaceLanguage,fallbackLang:"zh-CN",translations:P3,children:V("div",{onClick:a,id:"immersive-translate-popup-overlay",class:"immersive-translate-popup-overlay",children:V("div",{class:"immersive-translate-popup-wrapper",style:Hb(),children:V(wl,{onClose:n})})})}),t)})().then(()=>{Sn.style.display="none",li.style.display="block"})}function Hb(){let e=Dl(),t=e.height,{position:n,top:a,left:r}=Pt,u={position:"fixed"},o=300,i=300,s=100;return mc()&&(n=vl.position,a=vl.top),n==="right"||n==="left"?(u.top=a-s,u.top+o>=t?(u.bottom=30,delete u.top):u.top<=10&&(u.top=10),n==="right"?u.right=0:n==="left"&&(u.left=0)):(n==="top"||n==="bottom")&&(u.left=r-s,u.left+i>=e.width?(u.right=0,delete u.left):u.left<=10&&(u.left=0),n==="top"?u.top=0:n==="bottom"&&(u.bottom=0)),u}function Dl(){return{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}function tp(e){Xg=Da.getAttribute("style"),oi=e.pageX,ii=e.pageY,yr&&clearTimeout(yr),si=!1,Sn.style.opacity="1",Sn.style.transform="none",Zg=Sn.getAttribute("style"),globalThis.addEventListener("mousemove",Ll),globalThis.addEventListener("mouseup",Pl),globalThis.addEventListener("touchmove",np),globalThis.addEventListener("touchend",ci),globalThis.addEventListener("touchcancel",ci)}function qb(e){e.preventDefault&&e.preventDefault(),tp(e.changedTouches[0])}function np(e){Ll(e.changedTouches[0])}function ci(e){e.preventDefault&&e.preventDefault(),Pl(e.changedTouches[0])}function Ll(e){e.preventDefault&&e.preventDefault(),si=!0,Da.setAttribute("style",`left:${e.clientX}px;top:${e.clientY}px;transform:scale(1.6);`)}function Pl(e){e.preventDefault&&e.preventDefault(),$b(),yr&&clearTimeout(yr),oi=oi||0,ii=ii||0;let t=Math.abs(e.pageX-oi),n=Math.abs(e.pageY-ii);t{Ml(!0)},2e3)}function Ml(e=!1){Sn.style.opacity="0.4";let t="";Pt.position==="left"?t="translateX(-40%)":Pt.position==="right"?t="translateX(40%)":Pt.position==="top"?t="translateY(-40%)":Pt.position==="bottom"&&(t="translateY(40%)"),Sn.style.transform=t,e&&(Sn.style.transition="transform 0.2s ease-in-out, opacity 0.2s ease-in-out")}function $b(){globalThis.removeEventListener("mousemove",Ll),globalThis.removeEventListener("mouseup",Pl),globalThis.removeEventListener("touchmove",np),globalThis.removeEventListener("touchend",ci),globalThis.removeEventListener("touchcancel",ci)}function Al(e){let t=Kb(e);return Object.keys(t).map(n=>typeof t[n]=="number"?`${n}:${t[n]}px;`:"").join("")}function Kb(e){let{position:t,...n}=e,a=Dl(),r={};return t==="left"?(r.left=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="right"?(r.right=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="top"?(r.top=0,n.left>a.width?r.left=a.width-100:r.left=n.left):t==="bottom"&&(r.bottom=0,n.left>a.width?r.left=a.width-100:r.left=n.left),r}var rp=!1;async function up(){rp||(rp=!0,ep().catch(e=>{U.error("init popup error",e)}))}var op=!1,cp=[()=>{Ye.unbind()}],_l=[...cp],Gb=xt(async()=>{await br()},50),Vb=xt(async()=>{await ni()},50),Yb=xt(async()=>{await ui()},50),Jb=xt(async()=>{await ri()},50),dp=xt(e=>{dr({method:e,data:{trigger:"userscript_menu"}})},50),Qb=xt(()=>{di();let e=new CustomEvent(Wn,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},200),Zb=xt(()=>{pi();let e=new CustomEvent(Wn,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},200),Xb=xt(()=>{gi();let e=new CustomEvent(Wn,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},200);function ey(e,t){let n=e.document;if(op)return;if(op=!0,fe()||xp(),n.addEventListener("securitypolicyviolation",my),document.addEventListener(ge+"DocumentMessageUser",hp),document.addEventListener(ge+"DocumentMessageUpdateUser",bp),document.addEventListener(ge+"ChangeSuccessService",yp.bind(null,t)),document.addEventListener(wu,ly.bind(null,t)),n.addEventListener(ge+"EbookLoaded",dy),n.addEventListener(Ec,cy),n.addEventListener(Tc,gy.bind(null,t)),n.addEventListener("click",r=>{ry(r,t)}),fe()&&(globalThis.top!=globalThis.self?e.addEventListener("message",ny,!1):n.addEventListener(Wn,ty)),globalThis.top===globalThis.self){let r=ea.rootIframe(Lu);r.handleAsk("getRateLimitDelay",Fd),r.handleAsk("throttleRequest",Em)}}function mp(e,t){py(),ey(t,e);let n=t.document,a=ay.bind(null,e);e.rule.fingerCountToToggleTranslagePageWhenTouching>=2&&n.addEventListener("touchstart",a),_l.push(()=>{n.removeEventListener("touchstart",a)}),fe()&&globalThis.top===globalThis.self&&(N0(e.config),fy(e.config)),Xt()&&N0(e.config)}function ty(e){up()}function ny(e){let t=e;t&&t.data&&t.data.payload&&t.data.author===Cu&&mr(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})}function ay(e,t){let n=t;n.touches.length==e.rule.fingerCountToToggleTranslagePageWhenTouching?Qb():n.touches.length===e.rule.fingerCountToToggleTranslationMaskWhenTouching?Xb():n.touches.length===e.rule.fingerCountToToggleTranslagePageOnlyTranslationWhenTouching&&Zb()}function ry(e,t){let n=e.target;if(!n||!n.getAttribute){Fl(n);return}let a=n.getAttribute("data-immersive-translate-event");a&&Je(a,[{name:a}],{...t,sourceLanguage:"none"});let r=n.getAttribute(`data-${J}-action`);if(r)if(r==="retry"){e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),mi(),Fl(n,!0);return}else if(r=="toast-error"){let u=n.getAttribute(`data-${J}-tooltip-text`);Bl(pp.bind(null,t,u||""))}else r=="close-search"&&(e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),Bl(iy.bind(null,t)));Fl(n)}async function ip(e=!1){let t=document.querySelector(`.${J}-search-recomend`);if(!t||(t.remove(),!e))return;let n=await ln();n.generalRule||(n.generalRule={}),n.generalRule.enableSearchEnhancement=!1,await sn(n)}async function uy(){let e=await ln(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,a=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(a=e.translationUrlPattern.matches||[]),!n&&a.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await sn(e)}async function oy(){let e=await ln(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await sn(e)}var sp=0;function Bl(e){let t=Date.now();if(t-sp<2e3)return;sp=t;let n=`${J}-modal`,a=document.querySelector(`.${n}`);if(a?.style.display=="block")return;let r=`${J}-modal-title`,u=`${J}-modal-body`,o=`${J}-modal-footer`;if(a){let i=a.querySelector(`.${r}`),s=a.querySelector(`.${o}`),c=a.querySelector(`.${u}`);e(a,i,c,s)}else{a=document.createElement("div"),a.className=n+" notranslate",a.id=n;let i=document.createElement("div");i.className=J+"-modal-content notranslate",a.appendChild(i);let s=document.createElement("span");s.textContent="\xD7",s.className=J+"-close",i.appendChild(s);let c=document.createElement("div");c.className=r+" notranslate",i.appendChild(c);let l=document.createElement("div");l.className=u+" notranslate",i.appendChild(l);let m=document.createElement("div");m.className=o,i.appendChild(m),document.body.appendChild(a),s.onclick=function(){a.style.display="none"},window.onclick=function(g){g.target==a&&(a.style.display="none")},e(a,c,l,m)}setTimeout(()=>{sy()},100)}function iy(e,t,n,a,r){let u=gp.bind(null,e);n.innerHTML=`
${Ko} ${u("disableConfirm")}
`,a.innerHTML="";let o=document.querySelector(`div[data-${J}-cancel-desc]`),i=document.createElement("p");i.innerHTML=o?Le.sanitize(o.textContent||""):Le.sanitize(u("searchEnhancementNotes")),i.style.cssText="margin-bottom:12px",a.appendChild(i);let s=[{id:"enable-search-enhancement",value:"enable",text:u("enableSearchEnhancement")},{id:"disable-once",value:"once",text:u("disableOnce")},{id:"disable-global",value:"global",text:u("disableGlobal")}];for(let f=0;f${u("option")}`})),a.appendChild(c);let l=a.querySelector(`.${J}-open-enhancement`);l&&(l.onclick=function(){Ep(!0)});let m=document.createElement("button");m.innerText=u("closeModal"),m.className=`${J}-btn ${J}-cancel-btn`;let g=document.createElement("button");g.className=`${J}-btn`,g.innerText=u("saveSettings"),r.innerHTML="",r.appendChild(m),r.appendChild(g),m.onclick=function(){t.style.display="none"},g.onclick=function(){let f=a.getElementsByTagName("input"),d="";for(let b=0;b
1. \u5207\u6362\u5230 ${u} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458`:i+=`

\u5982\u679C\u60A8\u6709\u7591\u95EE\uFF0C\u8BF7\u8054\u7CFB support@immersivetranslate.com`,Bl(pp.bind(null,e,i))}catch(a){U.warn("parse message error",a)}}function cy(e){let t=e;if(U.debug("receive third party message",t),t&&t.detail)try{let n=JSON.parse(t.detail);n&&n.type&&(n.type==="retryFailedParagraphs"?hy({method:"retryFailedParagraphs"}):n.type==="updateCommands"?Tp(n.data):n.type==="toggleEnableDefaultAlwaysTranslatedUrls"?uy():n.type==="toggleEnableInputTranslation"?oy():dp(n.type))}catch(n){U.warn("parse message error",n)}}function dy(e){setTimeout(()=>{fp()},10)}function my(e){Ee.HAS_CSP_ERROR="1"}function gy(e,t){let n=event.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&Je(n.name,[{name:n.name}],{...e})}function py(){_l.forEach(e=>{e()}),_l=cp}function fy(e){if(fe()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=Gu.commands,r=[...Object.keys(t).filter(u=>u==="toggleTranslatePage").map(u=>{let o=t[u].description,i=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(i=cr(`browser.${o.slice(6,-2)}`,e.interfaceLanguage)),{id:u,title:i}}),{id:Mi,title:cr("browser.openEbookViewer",e.interfaceLanguage),key:"e"},{id:Fi,title:cr("browser.openEbookBuilder",e.interfaceLanguage),key:"m"},{id:Li,title:cr("browser.openOptionsPage",e.interfaceLanguage),key:"o"},{id:Pi,title:cr("browser.openAboutPage",e.interfaceLanguage),key:"a"}];for(let u of r)GM.registerMenuCommand(u.title,()=>{u.id===Li?Gb():u.id===Pi?Vb():u.id===Fi?Yb():u.id===Mi?Jb():dp(u.id)},u.key)}}function hy(e){mr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{U.error("send content message request failed",e,n)});let t=new CustomEvent(Wn,{detail:e});globalThis.document.dispatchEvent(t)}p();var La={};async function Rl(){let t=[...document.querySelectorAll(".source-text")].map(a=>a.textContent).join(""),n=await Ke({text:t,minLength:200,pageLangs:[pa(),"en"]});return rn(n),n}async function Cp(e){Lt("Translating");let t=ct(),n=ro(),a=[...document.querySelectorAll(".source-text")];if(wo(e,t))return;let r=a.filter(u=>u.innerText?.trim()).map((u,o)=>{let i=u.parentElement?.parentElement?.querySelector(".target-text");return at(u,"id",o+""),i&&(rr(i,o)?.remove(),i.appendChild(ru(e,o))),{text:u.innerText||"",id:o,from:t,to:e.targetLanguage,url:"https://google.com",fromByClient:n}});document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await In({sentences:r},e,(u,o,i)=>{let s=i.id,c=rr(document.body,s);if(!c)return;let l=c.parentElement;l&&(c.remove(),u?(l.innerHTML=Le.sanitize(`${u.message}`),La[s]={ok:!1,sentence:i}):o&&(l.innerHTML=Le.sanitize(o.text),La[s]={ok:!0,sentence:i}),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!u}})})))})}catch(u){throw u}finally{Lt("Translated")}}async function wp(e){Lt("Translating"),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(La),n=[],a=[];for(let r of t){let u=La[r];if(!u.ok){let i=document.querySelector(`#error-id-${r}`);if(i){let s=i.parentElement;i.remove(),s&&(delete La[r],s.appendChild(ru(e,r)),a.push(u.sentence))}}}try{await In({sentences:a},e,(r,u,o)=>{let i=o.id,s=rr(document.body,i);if(!s)return;let c=s.parentElement;c&&(s.remove(),r?(c.innerHTML=Le.sanitize(`${r.message}`),La[i]={ok:!1,sentence:o}):u&&(c.innerHTML=Le.sanitize(u.text),La[i]={ok:!0,sentence:o}),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!r}})})))})}catch(r){throw r}finally{Lt("Translated")}}function Il(){Lt("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}p();var Ol={};async function vp(){let e=[...document.querySelectorAll("iframe")],t="";for(let a of e){let r=a.contentDocument;if(!r)continue;let u=r.body;if(u&&(t=t+u.innerText||"",t.length>1e3))break}let n=await Ke({text:t,pageLangs:["en"]});return rn(n),n}async function kp(e){Lt("Translating"),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(Ol),n=[];for(let a of t){let r=Ol[a];if(r.error){let o=r.commonAncestorContainer.querySelector(`[${ku}='${a}']`);o&&o.remove(),n.push(r)}}try{await Do(n,e,e.config.translationMode)}catch{}finally{Lt("Translated")}}function Sp(){let e=[...document.querySelectorAll("iframe")];for(let t of e){let n=t.contentDocument;if(!n)continue;let a=n.querySelectorAll("."+Wt);for(let r of a)r.remove()}Lt("Original")}async function Ap(e){Lt("Translating");let t=$t(),n=[...document.querySelectorAll("iframe")],a=[],r=[];for(let i of n){let s=i.contentDocument;if(!s)continue;or(s,e);let c=s.body;if(!c)continue;let l=un(e);l.isModifyImage=!1,oa({id:t,container:c,filterRule:l,onParagraph:m=>{a.push(m)}})}let u=Co(e.config.translationServices[e.translationService]?.placeholderDelimiters),o=1;for(let i of a){let s=ko(i.flatNodes,{isPreWhitespace:i.isPreWhitespace||!1,delimiters:u,stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(l=>l.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)});if(!s)continue;i.variables=s?.variables||{},i.text=s?.text,i.id=(o++).toString();let c=await F0(i,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:u,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});c&&(r.push(c),Ol[c.id]=c)}a=[],document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await Do(r,e,e.config.translationMode)}catch{}finally{Lt("Translated")}}p();var by=new AbortController,{signal:yy}=by,Hl=0,ql=0,Nl=!1,jl=0,fu=!1,Pa,Dp=0,Ma=[];function fi(e,t){xy();let n=e,a=n.config,r=a.generalRule.mouseHoverHoldKey==="Off",u=a.generalRule.mouseHoverHoldKey==="Auto",o=xt(l=>{if(Nl==!1&&Math.abs(l.clientX-Hl)+Math.abs(l.clientY-ql)>3&&(jl<2?jl+=1:Nl=!0),Hl=l.clientX,ql=l.clientY,u||fu&&!Pa){let m=_p(n.rule,t);if(m){if(Wl(m))return;Pp(n,m)}}},u?700:300),i=l=>{let m=l.target;Wl(m)||Pp(n)},s=l=>{let m=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",g=Ye.getPressedKeyCodes();if(g.length>1&&Ye[m]&&(Dp=Date.now(),fu=!1),g.length===1&&Ye[m]){let f=Date.now();fu=!0,Pa&&clearTimeout(Pa),Pa=setTimeout(()=>{let d=Dp-f;d>0&&d<=150?fu=!1:i(l),Pa=void 0},150)}};if(Ma.push(()=>{Pa&&clearTimeout(Pa)}),r)return;zl("mousemove",o,t),Ma.push(()=>{t.removeEventListener("mousemove",o)});function c(){Nl=!1,jl=0,o.cancel()}if(u)zl("blur",c,t),Ma.push(()=>{t.removeEventListener("blur",c)});else{let l=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",m=["ctrl","alt","shift","cmd","command","option","control"];zl("keyup",Lp,t),Ma.push(()=>{t.removeEventListener("keyup",Lp)}),m.includes(l)?Ye("*","mouseHover",s):Ye(a.generalRule.mouseHoverHoldKey,"mouseHover",i),Ye.setScope("mouseHover"),Ma.push(()=>{Ye.deleteScope("mouseHover")})}}function xy(){Ma.forEach(e=>e()),Ma=[]}function Lp(e){fu=!1}function zl(e,t,n=window){return n.addEventListener(e,t,{signal:yy})}function Pp(e,t,n=window){if(t=t||_p(e.rule,n),!t){U.debug("can not find selection part!");return}if(Wl(t)){U.debug("exclude dom");return}v3(e,t);let a=Mo();a?.currentUrl!==window.location.href&&(jn(),I0(e)),a&&(a.setupMouseHoverListener=fi);let r=un(e);r.excludeSelectors=[],r.selectors=[];let u=!1;oa({id:a.id,container:t,filterRule:r,force:!0,onParagraph:o=>{ou(a,o,!0).then(i=>{if(i&&!u){u=!0;let s=Date.now();je(wc,s),Je("mouse_hover_translate",[{name:"mouse_hover_translate"}],{...e,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function _p(e,t){return Ey(Hl,ql,e,t)}function Ey(e,t,n,a){let r=Gm(e,t,n,a);if(r==null)return;let u=()=>{let s=a.document.elementFromPoint(e,t);if(!s)return;let c=Vm(s,e,t);return c===s?s.nodeName==="BUTTON"?s:void 0:Fp(c,n)},o=()=>{try{r.setStartBefore(r.startContainer),r.setEndAfter(r.startContainer)}catch(c){U.debug("get mouse over word fail",c)}let s=r.getBoundingClientRect();if(!(s.left>e||s.rightt||s.bottomn[l]=[l,...n[l]||[]]);let a=t.inputStartingTriggerKeyAlias[t.inputStartingTriggerKey]||[];a.includes(t.inputStartingTriggerKey)||a.unshift(t.inputStartingTriggerKey),n[t.inputTargetLanguage]=[...a,...n[t.inputTargetLanguage]];let r=t.inputTrailingTriggerKeyTimeout;fa().any&&(r=t.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:t.inputTrailingTriggerKeyRepeatTimes,triggerKey:t.inputTrailingTriggerKey,triggerTimeout:r,codePrefix:t.inputStartingTriggerKey,codeAlias:n,flatAlias:Object.values(n).flat(),codePrefixAlias:t.inputStartingTriggerKeyAlias},o=0,i=Date.now();hi&&self.removeEventListener("keydown",hi),hi=s,self.addEventListener("keydown",hi);function s(l){if(xr||bi===!1)return;let m=l,g=m.target||m.srcElement,f=g?.tagName;(g?.isContentEditable||f=="INPUT"||f=="SELECT"||f=="TEXTAREA")&&(Ny(l,u.triggerKey,u.codePrefixAlias)?c(l):o=0)}async function c(l){Date.now()-i=u.triggerTimes&&ky()&&(o=0,vy(l,e,u))}jy(e)}function Ty({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let a=[],r=n[e]||[];r.includes(e)||r.unshift(e);for(let u of r){let o=t.map(i=>{let s=u+i;return r.includes(i)||(s+=" "),s});a.push(...o)}return new RegExp(a.join("|"))}function Rp(e,t){for(let[n,a]of Object.entries(t))if(a.includes(e))return n;return""}var Er;function Cy(e){let t=e.parentElement;if(!t)return;Er=document.createElement("div"),Er.className=J+"-input",Er.innerHTML=`
`,t.appendChild(Er);let n=t,a=!1;do{let r=getComputedStyle(n).position;if(["fixed","absolute","relative"].includes(r)){a=!0;break}n=n.parentElement}while(n);if(n=t,!a)do{if(getComputedStyle(n).position==="static"){n.style.position="relative";break}n=n?.parentElement||null}while(n)}function wy(){Er&&Er.remove()}async function vy(e,t,n){if(!xr)try{let g=function(){i=t.config.inputTargetLanguage;let d=o.split(" ")[0];d&&d[0]&&(d=d[0].toLowerCase()+d.slice(1)),d.trim()&&n.flatAlias.includes(d)?(i=Rp(d,n.codeAlias),u=o.slice(d.length+1)):u=o},f=function(){i="";let d=Ty(n),b=o.split(d);if(b.length<2)return;if(u=b[b.length-1],r=b[0],b.length>2){let h=o.lastIndexOf(u),C=o.slice(0,h).lastIndexOf(b[b.length-2]);r=o.slice(0,C+b[b.length-2].length)}if(r.endsWith(n.codePrefix))return;let T=o.slice(r.length+1,o.indexOf(u)).trim();if(i=Rp(T,n.codeAlias),!i){U.warn("not found alias",T);return}},a=document.activeElement;xr=!0;let r="",u="",o=Tr(a)||"",i=t.config.inputTargetLanguage;n.codePrefix==="none"?g():(f(),!i&&t.config.enableInputTranslationWithoutTriggerKey&&g());let s=Ay(u,n),c=await Ke({text:s,pageLangs:["en"]});U.debug("translateContent",s,c);let l={text:s||"",id:0,from:c,to:i,url:"https://google.com",fromByClient:c};if(!l.text)return;if(t.config.isShowInputTranslationConsent&&!Bp){Bp=!0;let d=await zy(t);if(e.target&&e.target.focus(),d==="open_settings"){br(!0,"#input");return}else if(d==="open_learn_more"){ai("https://immersivetranslate.com/docs/input/");return}else if(d==="disable_once"||d==="disable_forever"){if(bi=!1,d==="disable_forever"){let b=await ln();b.enableInputTranslation=!1,b.isShowInputTranslationConsent=!1,await sn(b)}else if(d==="disable_once"){let b=await ln();b.isShowInputTranslationConsent=!1,await sn(b)}return}else if(d==="close_disable_once"||d==="close_disable_forever"){if(bi=!1,d==="close_disable_forever"){let b=await ln();b.enableInputTranslation=!1,b.isShowInputTranslationConsent=!1,await sn(b)}return}else if(d==="enable"){let b=await ln();b.enableInputTranslation=!0,b.isShowInputTranslationConsent=!1,await sn(b)}else if(d==="close_enable"){let b=await ln();b.enableInputTranslation=!0,await sn(b)}}Cy(a),je(_i,Date.now());let m=await wa(l,{...t,translationService:t.inputTranslationService});Oy(t),Iy(a,r+m.text),xr=!1}catch(a){throw xr=!1,a}finally{xr=!1,wy()}}function ky(){let e=document.activeElement;if(!e)return!1;if(yi(e)){let t=e.selectionStart||0,n=e.value.length,r=e.value.split(` +`).reverse()[0].trim(),u=n<=t;return U.debug("cursorPosition",t,"textLength",n),U.debug("input isTail",u,"tailHasText",r),u&&!!r}else{let t=window.getSelection();if(!t)return U.debug("No active selection found."),!1;if(t.rangeCount>0){let n=t.getRangeAt(0),a=n.startContainer;if(a.nodeType===Node.TEXT_NODE){let r=Sy(a,e);U.debug("Current text node:",a.textContent),U.debug("Cursor position within text node:",n.startOffset);let u=a.textContent?.length===n.startOffset&&r,o=a.textContent?.trim();return U.debug("editdiv isTail",u,"tailHasText",o),u&&!!o}else U.debug("Cursor is not within a text node.")}}return!1}function Sy(e,t){let n;function a(r){if(r.nodeType===Node.TEXT_NODE)n=r;else for(let u of r.childNodes)a(u)}return a(t),n==e}function Ay(e,t){let{triggerTimes:n,triggerKey:a}=t,r=0,u=" ";a.length==1?(r=n,u=a):a.toLowerCase()=="space"&&(r=n);let o=e.length;for(let i=e.length-1;i>=e.length-r;i--){if([10,8629].includes(e[i].charCodeAt(0))){o--;continue}if(![...t.codePrefixAlias[a]||[],u].includes(e[i]))break;o--}return e.length-o<3&&[".","\u3002"].includes(e[o-1])&&o--,e.slice(0,o)}function Dy(e,t){let n=t.innerHTML,a=Tr(t);return{html:n.replace(a,e),text:e}}function Ip(e,t,n=!1){let a=Tr(t);return n?a.trim().endsWith(e.text.trim()):a.trim()==e.text.trim()}function Tr(e){return e.value||e.innerText||e.textContent}async function Fa(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function Ly(e,t,n){await Fa(10);let a=new DataTransfer;e.forEach(r=>{r==="plain"&&a.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:a,bubbles:!0,cancelable:!0})),a.clearData(),await Fa(10)}async function Py(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await Fa(10))}async function My(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await Fa(20),(t.value||t.value==="")&&(t.value=e.text)}async function Fy(e,t){yi(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await Fa(20))}var _y=[Ly.bind(null,["plain"])];function By(e){let t;yi(e)?t=new InputEvent("beforeinput",{bubbles:!0,cancelable:!0,inputType:"deleteContent"}):t=new KeyboardEvent("keydown",{bubbles:!0,cancelable:!0,keyCode:8,which:8,location:0,key:"Backspace"}),e.dispatchEvent(t)}function yi(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function Ry(e){if(yi(e))return;e.focus();let t=window.getSelection();if(!t)return;let n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}async function Iy(e,t){await Ry(e),await Fa(50);let n=Dy(t,e);By(e),U.debug("clearContent",Tr(e)),await Fa(50);for(let a of[..._y,My,Fy,Py])if(await a(n,e),U.debug("setContent",a.name,Ip(n,e),Tr(e),n),Ip(n,e))break}function Oy(e){Je("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage}}],e)}function Ny(e,t,n){let a="";e&&e.code&&(a=e.code.toLowerCase());let r="";e&&e.key&&(r=e.key.toLowerCase());let u=e.keyCode,o=n[t]||[];return u===229&&t!=="space"?!1:!!(o.includes(a)||o.includes(r)||a===t||r===t)}async function jy(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await At(t,"")||Number(await At(_i,0))>0)return;let r=e.rule.inputTutorialsSelectors,u=e.rule.inputTutorialsText;if((r?.length||0)>0&&u)for(let o=0;o{Hy()},100),new Promise(c=>{let l=c;if(u){let L=u.querySelector(`.${n}`),M=u.querySelector(`.${r}`),w=u.querySelector(`.${a}`)}else{u=document.createElement("div"),u.className=t+" notranslate",u.id=t;let L=document.createElement("div");L.className=J+"-modal-content notranslate",u.appendChild(L);let M=document.createElement("span");M.textContent="\xD7",M.className=J+"-close",L.appendChild(M),o=document.createElement("div"),o.className=n+" notranslate",L.appendChild(o),s=document.createElement("div"),s.className=a+" notranslate",L.appendChild(s),i=document.createElement("div"),i.className=r,L.appendChild(i),document.body.appendChild(u),M.onclick=function(){v(),c("close")},window.onclick=function(w){w.target==u&&(u.style.display="none",c("close"))}}document.addEventListener("keydown",x);let m=Uy.bind(null,e);o.innerHTML=`
${Ko} ${m("modalEnableInputTranslationTitle")}
`,s.innerHTML="";let g=document.createElement("p");g.innerHTML=m("modalEnableInputTranslationDesc",{1:"https://immersivetranslate.com/docs/input/"}),g.style.cssText="margin-bottom:12px",s.appendChild(g);let f=document.createElement("div");f.style.cssText="margin-bottom: 12px;",f.innerHTML=Le.sanitize(m("disableInputTranslationTips",{option:`${m("option")}`,learnMore:`${m("learnMore")}`})),s.appendChild(f);let d=[{id:"enable-search-enhancement",value:"enable",text:m("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:m("disableOnce")},{id:"disable-global",value:"global",text:m("disableGlobal")}];for(let L=0;L{In({sentences:r},{...e,translationService:"google"},(s,c,l)=>{if(s)return o([]);let m=c?.id||0,g=n[m];g&&g.className==J+"-search-title-wrapper"&&(g.innerHTML+=Le.sanitize(`
${c?.text}
`,{ADD_ATTR:["target"]}))})})}function xi(e,t,n){t&&Je(t.key,[{name:t.key}],{...e,sourceLanguage:t.sourceLanguage||n})}function $l(e,t,n,a){let r=n.querySelectorAll('[translate="true"]');return qy(e,t,[...r],a),n}async function Kl(e,t){let a=(await ie({url:Wy(e),method:"GET",responseType:"raw",headers:{"cache-control":"no-cache","content-type":"application/xml","Sec-Fetch-Site":"none",accept:"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}})).body,u=new DOMParser().parseFromString(a,"text/xml"),o=[],i=u.querySelectorAll("item");for(let s=0;s${e.cancelDescription}
`:""}

\u82F1\u6587\u641C\u7D22 - ${n} \u7684\u76F8\u5173\u65B0\u95FB:
+ ${n} \u7684\u76F8\u5173\u65B0\u95FB:

${o}
`.replaceAll(` -`,""),{ADD_ATTR:["target"]});let c=r.querySelector(`.${J}-search-more`);return c&&(c.onclick=()=>{let l=r.querySelector(`.${J}-expand-items`);l.style.display=="none"?(l.style.display="block",c.innerText="\u66F4\u591A\u76F8\u5173\u65B0\u95FB"):window.open(Op(n))}),r}function Np(e,t){let n=e.style;return t.map((a,r)=>{let u=a.title||"",o=a.source||"",i=u.split("-");return i.length>1&&(o=i[i.length-1].trim(),i=i.slice(0,i.length-1)),u=i.join("-"),u=u.trim(),`
${o}
+`,""),{ADD_ATTR:["target"]});let c=r.querySelector(`.${J}-search-more`);return c&&(c.onclick=()=>{let l=r.querySelector(`.${J}-expand-items`);l.style.display=="none"?(l.style.display="block",c.innerText="\u66F4\u591A\u76F8\u5173\u65B0\u95FB"):window.open(Np(n))}),r}function jp(e,t){let n=e.style;return t.map((a,r)=>{let u=a.title||"",o=a.source||"",i=u.split("-");return i.length>1&&(o=i[i.length-1].trim(),i=i.slice(0,i.length-1)),u=i.join("-"),u=u.trim(),`
${o}
-
${Xm(a.pubDate||"")}
+
${e3(a.pubDate||"")}
`}).join(` -`)}function zp(e,t){if(!e.keyword)return;let n=e.keyword.value||"";for(let a=0;anew RegExp(a.urlMatch).test(t))}async function Hp(e){if(fa().any)return;if(!e.rule.enableSearchEnhancement){U.debug("enable is false");return}let t=$y(e.rule.searchEnhancementConfig||[],e.url);if(!t){U.debug("not found siteConfig",e.url);return}let n=zp(t,e.url);if(!n){U.debug("not found keyword",e.url);return}t.id=="google"?Gy(e,t,n):Ky(e,t,n)}async function Ky(e,t,n){let a=await Ke({text:document.title,pageLangs:[ct(),"en"]});t.selector&&setTimeout(async()=>{let r=document.querySelector(t.selector);if(!r){U.debug("selector node not found",t.selector);return}let u=await Kl(n,t.showCount);if(u&&u.length<=0){U.debug("list not found");return}let o=await Gl(t,u,n,t.showCount);if(!o){U.debug("getInseredNode none");return}o.style.cssText=t.style.container||"";let i=t.selectorAction||"appendChild";i=="insertBefore"?r.parentElement?.insertBefore(o,r):i=="appendChild"?r.appendChild(o):i=="replace"&&r?.replaceWith(o),$l(e,t,o,a),xi(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a)},t.delayTime||0)}async function Gy(e,t,n){let a=await Ke({text:n,pageLangs:["en"]});if(xi(e,{key:"detect_search_action"},a),!["zh-CN","zh-TW"].includes(a))return;U.debug("use dual search");let r=!1;if(new URL(e.url).searchParams.get("tbm")==="nws")r=!0;else if(!Up(document.body))return;let o=document.querySelector("#rhs");if(!o){let i=document.querySelector("#rcnt");if(!i)return;let s=i.children;if(s&&s.length>1)o=s[1];else{let c=s[0];o=document.createElement("div"),o.id="rhs",o.style.maxWidth="372px",o.style.marginLeft="50px",i.insertBefore(o,c.nextSibling)}}if(r||Up(document.body)){U.debug("find story");let i=await jp(e,n,a);U.debug("enKeyword",i);let s=await Kl(i,t.showCount);if(U.debug("news list",s),s&&s.length<=0)return;let c=await Gl(t,s,i,t.showCount);if(!c)return;xi(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a),$l(e,t,c,a),o.insertBefore(c,o?.firstChild)}}function Up(e){let t=e.querySelectorAll("[aria-level='2'][role=heading]");if(!t)return!1;for(let n of t){let a=(n?.textContent||"").trim();if(a.indexOf("\u7126\u70B9\u65B0\u95FB")>=0||a.indexOf("\u7126\u9EDE\u65B0\u805E")>=0||a.indexOf("Top stories")>=0)return!0}return!1}p();function qp(e){e.state.translationMode="translation",lr(e)}var we=null,Ei={},Cr,Wp=!1;async function di(e){if(qe()==="Original"){let t={translationMode:void 0};Cr&&(t.translationTheme=Cr),we&&(t={...we.state,...t}),await Mt(ht(),t),await cn(we,e)}else(qe()==="Translated"||qe()==="Error")&&Fa()}async function mi(){if(we=await Mt(ht(),{}),we.rule.isEbookBuilder)return vp(we);if(we.rule.isSubtitleBuilder)return Cp(we);k3()}async function gi(e){if(qe()==="Original")we=await Mt(ht(),{}),Cr||(Cr=we.state.translationTheme),we=await Mt(ht(),{translationTheme:"mask"}),await cn(we,e);else if(qe()==="Translated"){let t=Jm().filter(r=>r.contentDocument?.body).map(r=>r.contentDocument.body),n=[we.mainFrame,...t],a=we?.state.translationTheme;for(let r of n){let u=tr(r,Na,!0);a==="mask"?u!=="none"?at(r,Na,"none",!0):at(r,Na,"mask",!0):u!=="mask"?at(r,Na,"mask",!0):at(r,Na,"none",!0)}}}async function Vl(){let e=await Mt(ht(),{});return e.rule.isSubtitleBuilder?Rl():v3(e)}function Vy(e){qe()==="Original"?qp(e):jn()}function Yy(e){qe()==="Original"?Tp(e):Il()}function Jy(e){qe()==="Original"?lr(e):jn()}async function Fa(){Jl("");let e=await Mt(ht(),{});if(e.rule.isSubtitleBuilder){Il();return}else e.rule.isEbookBuilder&&kp();jn()}async function cn(e,t){qe()!=="Original"&&await Fa(),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"translateStart",payload:{}})})),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"targetLanguage",payload:{targetLanguage:e.targetLanguage}})})),Ei[e.translationService]||(Ei[e.translationService]=!0,nt()||l0(e).catch(a=>{U.warn("init translation engine error",a)}));let n={};if(t&&t.trigger&&(n.trigger=t.trigger),Je("translage_page_daily",[{name:"translage_page_daily",params:n}],e),Je("translate_page",[{name:"translate_page",params:n}],{...e,sourceLanguage:ct()}),e.rule.isSubtitleBuilder)return Yy(e);if(e.rule.isEbookBuilder)return Sp(e);if(e.rule.isPdf)return Vy(e);Jy(e),Jl("yes")}async function $p(e){qe()==="Original"?await Ti(e):(qe()==="Translated"||qe()==="Error")&&(we=await Mt(ht(),{}),we.state.translationArea!=="main"?await Ti(e):Fa())}async function Ti(e){we=await Mt(ht(),{translationArea:"main"}),await cn(we,e)}async function Yl(e){we=await Mt(ht(),{translationArea:"body"}),await cn(we,e)}async function pi(e){if(qe()==="Original"){let t=await Mt(ht(),{translationMode:"translation"});await cn(t,e)}else(qe()==="Translated"||qe()==="Error")&&await Fa()}async function Kp(e){if(we=await Mt(ht(),{translationMode:void 0}),Je("switch_translation_mode",[{name:"switch_translation_mode",params:{mode:e}}],{...we,sourceLanguage:"unknown"}),qe()==="Original"){cn(we);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(e)}async function Gp(e){if(qe()==="Original")await Yl(e);else if(qe()==="Translated"||qe()==="Error"){let t={};we&&we.state&&(t=we.state),we=await Mt(ht(),t),we.state.translationArea!=="body"?(we.state.translationArea="body",we=await Mt(ht(),we.state),await cn(we,e)):Fa()}}async function Vp(e){we=await Mt(ht(),{translationStartMode:"immediate"}),await cn(we,e)}async function pp(){let e=await Mt(ht(),{});if(U.debug("init page ctx",e),e.rule.isSubtitleBuilder){Rl();return}if(e.rule.isEbookBuilder){wp();return}if(Hp(e),Cr||(Cr=e.state.translationTheme),e.rule.urlChangeDelay&&await Dr(e.rule.urlChangeDelay),e.rule.waitForSelectors&&e.rule.waitForSelectors.length>0&&await Qy(e.rule.waitForSelectors,e.rule.waitForSelectorsTimeout),e.rule.isInjectOptionsUrl){let a=Jp(),r=document.createElement("meta");r.name="immersive-translate-options-url",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(u){U.warn("inject options url failed",u)}}if(e.rule.isInjectVersion){let a=an(),r=document.createElement("meta");r.name="immersive-translate-version",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(u){U.warn("inject version failed",u)}}if(e.rule.globalMeta&&Object.keys(e.rule.globalMeta).forEach(r=>{let u=document.createElement("meta");u.name=r,u.content=e.rule.globalMeta[r],document.head.appendChild(u)}),e.rule.initialGlobalAttributes&&n3(document.body,e.rule.initialGlobalAttributes),e.rule.isPdf){cn(e);return}if(e.rule.isOnBoardingPage){document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"currentConfig",payload:{enableDefaultAlwaysTranslatedUrls:!!e.config.enableDefaultAlwaysTranslatedUrls}})}));let a=document.querySelector("#immersiveTranslateEnableDefaultAlwaysTranslatedUrlsValue");a&&(a.value="helloworld",a.value=String(!!e.config.enableDefaultAlwaysTranslatedUrls),a.dispatchEvent(new Event("change")))}Wp||(Wp=!0,globalThis.top!==globalThis.self&&e.rule.useIframePostMessage&&await Ad());let t=e.sourceLanguage;if(t==="auto"?t=await Vl():rn(t),e.rule.isInjectMeta)try{let a=await e3(t),r=document.createElement("meta");r.name="immersive-translate-meta",r.content=Gi(JSON.stringify(a)),document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(a){U.warn("inject meta failed",a)}let n=e.state.isAutoTranslate||e.isTranslateUrl||e.rule.isPdf;if(!n&&!e.isTranslateExcludeUrl&&(U.debug(`detect page language: ${e.url} ${t}`),$n(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto"||Dd(t,e.config.translationLanguagePattern)&&(n=!0,U.debug(`match language pattern ${t}, auto translate`))),e.rule.isEbookBuilder&&(n=!1),!e.rule.isPdf&&Rr()&&fi(e,window),n)we.state.isAutoTranslate=!0,cn(we);else if(U.debug("do not auto translate",e),e.rule.initTranslationServiceAsSoonAsPossible&&e.translationService==="deepl"){if($n(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto")return;e.config&&e.config.translationServices&&e.config.translationServices.deepl&&e.config.translationServices.deepl.authKey&&typeof e.config.translationServices.deepl.authKey=="string"&&e.config.translationServices.deepl.authKey.startsWith("immersive_")&&(Ei[e.translationService]||(Ei[e.translationService]=!0,nt()||l0(e).catch(a=>{U.warn("init translation engine error",a)})))}}async function Mt(e,t){let n=Object.keys(t);if(we){let a={url:e,config:we.config,state:{...we.state,...t}};we=await ka(a)}else{let a=await En(),r=t;n.length===0&&(r=void 0),we=await ka({url:e,config:a,state:r})}return we}async function Yp(){let e=await En(),t;we&&we.state&&(t=we.state);let n={url:ht(),config:e,state:t},a=await ka(n);we=a;let r=Mo(),u=[];return r?u=r.allInlineWindows||[window]:u=[window],u.forEach(o=>{dp(a,o),Rr()&&fi(a,o),Ip(a)}),a}function Qy(e,t=3e3){return new Promise((n,a)=>{let r=t?setTimeout(()=>{n(new Error("timeout"))},t):void 0,u=setInterval(()=>{e.every(i=>document.querySelector(i)!==null)&&(clearInterval(u),r&&clearTimeout(r),n(null))},50)})}async function fp(e){let t=e.detail;Nt.set(en,t);let n=await Nt.get(Oi,!1);Nt.set(Oi,!1),document.dispatchEvent(new CustomEvent("immersiveTranslateDocumentMessageUserResult",{detail:n?"close":"success"}))}function hp(e){U.debug("update user info",e);let t=e.detail;Nt.set(en,t)}async function bp(e){let t=await ln();if(t.translationService)return;let n=e.config.translationService,a=["bing","transmart","google"];a.sort((u,o)=>u===n?-1:o===n?1:0);let r=await _m(a,e);if(!r){Ur("no_avaliable_translation_service",[{name:"no_avaliable_translation_service"}]);return}e.translationService!==r&&(t.translationService=r,sn(t),e.translationService=r,Ur("change_default_translation_service",[{name:"change_default_translation_service",params:{translation_service:r}}]))}var mr=async function(e,t){let{method:n,data:a}=e,r=await Yp(),u=Date.now();if(U.debug(`content script received message: ${n}`,a||" "),n==="translateTheWholePage")await Yl(a),je(mn,u);else if(n==="translateTheMainPage")await Ti(a),je(mn,u);else if(n==="translateToThePageEndImmediately")await Vp(a),je(mn,u);else if(n==="toggleTranslatePage")await di(a),je(mn,u);else if(n==="toggleTranslateTheWholePage")await Gp(a),je(mn,u);else if(n==="toggleTranslateTheMainPage")await $p(a),je(mn,u);else if(n==="toggleOnlyTransation")await pi(a),je(mn,u);else if(n==="translatePage")await cn(r,a),je(mn,u);else if(n==="toggleTranslationMask")await gi(a);else if(n==="restorePage")Fa();else if(n==="setCurrentPageLanguageByClient")rn(a);else if(n==="retryFailedParagraphs")mi();else if(n==="switchTranslationMode"){if(r.rule.isPdf)return;a&&a.mode&&Kp(a.mode)}},Zy=function(e,t){let{method:n,data:a}=e;if(U.debug(`content script received sync message: ${n}`,a||" "),n==="ping")return"pong";if(n==="getPageStatus")return qe();if(n==="getCurrentPageLanguage"){let r=ct();return Vl().catch(u=>{U.warn("detectCurrentPageLanguage failed",u)}),r}},Ci,wi;function yp(){let e=vi();nt()||Xy(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function vi(){return Ci||(Ci=new Vn("content_script",!1).getConnection("main",mr),Ci)}function Xy(){return wi||(wi=new Vn("content_script",!1).getConnection("main_sync",Zy,{sync:!0}),wi)}async function Ve(e){return await vi().sendMessage("background:main",e)}function ie(e){return Tu()?Gu({method:"request",data:e}):he()||Eu()?(e.fetchPolyfill=globalThis.GM_fetch,ha(e)):Ve({method:"fetch",data:e})}function En(){return he()?Ka():Ve({method:"getConfig"})}function sn(e){return he()?Cs(e):Ve({method:"setUserConfig",data:e})}function ln(){return he()?Ts():Ve({method:"getUserConfig"})}function np(){return he()?Jn():Ve({method:"getLocalConfig"})}function ti(e){return he()?kn(e):Ve({method:"setLocalConfig",data:e})}function Kg(e){return he()?dd(e):Ve({method:"setBuildinConfig",data:e})}async function Ke(e){if(e.text){let n=Ku(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(he()||Zt()){let n=ed(e.text,e.minLength,e.pageLangs);return Promise.resolve(n)}let t=await Ve({method:"detectLanguage",data:e});return Promise.resolve(t)}function S3(){return Ve({method:"detectTabLanguage"})}function x3(e){if(he()){let n=new CustomEvent(ku,{detail:e});document.dispatchEvent(n);return}vi().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(n=>{})}function Bm(e){return he()?xd(e):Ve({method:"queryParagraphCache",data:e})}async function Rm(e){if(he()){await yd(e);return}return Ve({method:"setParagraphCache",data:e})}async function Jd(){if(he())return Promise.resolve();await Ve({method:"mockRequest"})}function br(e=!1,t=""){return he()?(se.runtime.openOptionsPage(e,t),Promise.resolve()):Ve({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function Jp(e=""){return he()||Zt()?Qe().OPTIONS_URL:se.runtime.getURL("options.html")}function ug(e=""){return se&&se.runtime&&se.runtime.getURL?se.runtime.getURL("options.html"):""}function ni(e=!1){return he()?(se.extra.openAboutPage(e),Promise.resolve()):Ve({method:"openAboutPage"})}function xp(e=!1){return he()?(se.extra.openSearchEnhancement(e),Promise.resolve()):Ve({method:"openSearchEnhancement"})}function ai(e){return he()?(se.extra.openInTab(e),Promise.resolve()):Ve({method:"openInTab",data:e})}function ri(e=!1){return he()?(se.extra.openEbookViewerPage(e),Promise.resolve()):Ve({method:"openEbookViewerPage"})}function Gg(e=!1){return he()?Promise.resolve():Ve({method:"openHtmlViewerPage"})}function ui(e=!1){return he()?(se.extra.openEbookBuilderPage(e),Promise.resolve()):Ve({method:"openEbookBuilderPage"})}function Ep(e){Zt()}function Cl(e=!1){return he()?(se.extra.openPdfViewerPage(e),Promise.resolve()):Ve({method:"openPdfViewerPage"})}function Vg(e=!1){return he()?(se.extra.openSubtitleBuilderPage(e),Promise.resolve()):Ve({method:"openSubtitleBuilderPage"})}function Jl(e){return he()?Promise.resolve():Ve({method:"setBadge",data:{text:e}})}function cg(){return he()?(U.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):Ve({method:"autoSyncLatestConfig"})}p();function Zp(e,t){let n=e.pageWidth*e.scale,a=e.prevPageParagraphs||[];if(a.length<=0||t.length<=0)return{};let r=a[a.length-1];if(!r)return{};let u=n-r.right,o=t.find(i=>We(i.left,u)&&We(i.width,r.width));return{prevP:r,curP:o}}function Xp(e){return e?e==e[0].repeat(e.length):!0}function We(e,t,n=5){return Math.abs(e-t)<=n}var Ql=[",","\\.","\uFF0C","\u3002"];function ef(e,t){let n=e.prevGroup;if(!n)return!1;let a=n[n.length-1],r=t[0];return We(a.left,r.left,7)&&We(a.nextTop,r.top,10)&&ki(a,r)}function tf({prevLineP:e,justify:t},n){return t&&n.left>e.left&&n.bottomt.right}function uf(e,t){let n=e.justify;return n?t.top>n.top&&t.left>n.left&&t.right<=n.right+1&&t.fontSize<=n.fontSize+1:!1}function of({prevLineP:e,prevP:t},n){return We(e.left,n.left,1)&&We(e.right,t.right,1)&&t.mergedTimes>=1}function Zl(e,t){let{prevLineP:n}=e;return uf(e,t)&&(We(n.bottom,t.bottom)||We(n.nextTop,t.top)&&We(n.left,t.left))}function sf(e,t){let{prevLineP:n,prevP:a,scale:r}=e;return uf(e,t)&&n.width0&&a/r<.1&&n.left=n&&We(t.nextLeft,a,t.fontSize*e)}function ki(e,{fontSize:t,fontName:n},a=!1){return a?We(e.fontSize,t,1)&&e.fontName==n:We(e.fontSize,t,1)}function e5(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}function pf(e){let n=e5([1,0,0,-1,-0,0],e);return Math.atan2(n[1],n[0])}var Qp=0;async function ff(e=60){if(Qp>e)return;if(Qp++,await t5(300),!document.querySelector("meta[name='immersive-translate-version']"))return await ff(e)}async function t5(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}async function hf(e){await ff(),document.dispatchEvent(new CustomEvent("immersiveTranslateDocumentMessageEventUpload",{detail:{name:e}}))}function yf(e,t){let n=[],a=a5(e,t);return r5(e,a).forEach(u=>{if(!(u.length<=0)){if(u.length==1){bf(e,n,u[0],!0);return}n.push(`
`),n.push('
'),n.push('
'),u.forEach(o=>{bf(e,n,o,!1)}),n.push("
")}}),` +`)}function Up(e,t){if(!e.keyword)return;let n=e.keyword.value||"";for(let a=0;anew RegExp(a.urlMatch).test(t))}async function qp(e){if(fa().any)return;if(!e.rule.enableSearchEnhancement){U.debug("enable is false");return}let t=$y(e.rule.searchEnhancementConfig||[],e.url);if(!t){U.debug("not found siteConfig",e.url);return}let n=Up(t,e.url);if(!n){U.debug("not found keyword",e.url);return}t.id=="google"?Gy(e,t,n):Ky(e,t,n)}async function Ky(e,t,n){let a=await Ke({text:document.title,pageLangs:[ct(),"en"]});t.selector&&setTimeout(async()=>{let r=document.querySelector(t.selector);if(!r){U.debug("selector node not found",t.selector);return}let u=await Kl(n,t.showCount);if(u&&u.length<=0){U.debug("list not found");return}let o=await Gl(t,u,n,t.showCount);if(!o){U.debug("getInseredNode none");return}o.style.cssText=t.style.container||"";let i=t.selectorAction||"appendChild";i=="insertBefore"?r.parentElement?.insertBefore(o,r):i=="appendChild"?r.appendChild(o):i=="replace"&&r?.replaceWith(o),$l(e,t,o,a),xi(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a)},t.delayTime||0)}async function Gy(e,t,n){let a=await Ke({text:n,pageLangs:["en"]});if(xi(e,{key:"detect_search_action"},a),!["zh-CN","zh-TW"].includes(a))return;U.debug("use dual search");let r=!1;if(new URL(e.url).searchParams.get("tbm")==="nws")r=!0;else if(!Hp(document.body))return;let o=document.querySelector("#rhs");if(!o){let i=document.querySelector("#rcnt");if(!i)return;let s=i.children;if(s&&s.length>1)o=s[1];else{let c=s[0];o=document.createElement("div"),o.id="rhs",o.style.maxWidth="372px",o.style.marginLeft="50px",i.insertBefore(o,c.nextSibling)}}if(r||Hp(document.body)){U.debug("find story");let i=await zp(e,n,a);U.debug("enKeyword",i);let s=await Kl(i,t.showCount);if(U.debug("news list",s),s&&s.length<=0)return;let c=await Gl(t,s,i,t.showCount);if(!c)return;xi(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a),$l(e,t,c,a),o.insertBefore(c,o?.firstChild)}}function Hp(e){let t=e.querySelectorAll("[aria-level='2'][role=heading]");if(!t)return!1;for(let n of t){let a=(n?.textContent||"").trim();if(a.indexOf("\u7126\u70B9\u65B0\u95FB")>=0||a.indexOf("\u7126\u9EDE\u65B0\u805E")>=0||a.indexOf("Top stories")>=0)return!0}return!1}p();function Wp(e){e.state.translationMode="translation",lr(e)}var we=null,Ei={},Cr,$p=!1;async function di(e){if(qe()==="Original"){let t={translationMode:void 0};Cr&&(t.translationTheme=Cr),we&&(t={...we.state,...t}),await Mt(ht(),t),await cn(we,e)}else(qe()==="Translated"||qe()==="Error")&&_a()}async function mi(){if(we=await Mt(ht(),{}),we.rule.isEbookBuilder)return kp(we);if(we.rule.isSubtitleBuilder)return wp(we);S3()}async function gi(e){if(qe()==="Original")we=await Mt(ht(),{}),Cr||(Cr=we.state.translationTheme),we=await Mt(ht(),{translationTheme:"mask"}),await cn(we,e);else if(qe()==="Translated"){let t=Qm().filter(r=>r.contentDocument?.body).map(r=>r.contentDocument.body),n=[we.mainFrame,...t],a=we?.state.translationTheme;for(let r of n){let u=tr(r,ja,!0);a==="mask"?u!=="none"?at(r,ja,"none",!0):at(r,ja,"mask",!0):u!=="mask"?at(r,ja,"mask",!0):at(r,ja,"none",!0)}}}async function Vl(){let e=await Mt(ht(),{});return e.rule.isSubtitleBuilder?Rl():k3(e)}function Vy(e){qe()==="Original"?Wp(e):jn()}function Yy(e){qe()==="Original"?Cp(e):Il()}function Jy(e){qe()==="Original"?lr(e):jn()}async function _a(){Jl("");let e=await Mt(ht(),{});if(e.rule.isSubtitleBuilder){Il();return}else e.rule.isEbookBuilder&&Sp();jn()}async function cn(e,t){qe()!=="Original"&&await _a(),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"translateStart",payload:{}})})),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"targetLanguage",payload:{targetLanguage:e.targetLanguage}})})),Ei[e.translationService]||(Ei[e.translationService]=!0,nt()||l0(e).catch(a=>{U.warn("init translation engine error",a)}));let n={};if(t&&t.trigger&&(n.trigger=t.trigger),Je("translage_page_daily",[{name:"translage_page_daily",params:n}],e),Je("translate_page",[{name:"translate_page",params:n}],{...e,sourceLanguage:ct()}),e.rule.isSubtitleBuilder)return Yy(e);if(e.rule.isEbookBuilder)return Ap(e);if(e.rule.isPdf)return Vy(e);Jy(e),Jl("yes")}async function Kp(e){qe()==="Original"?await Ti(e):(qe()==="Translated"||qe()==="Error")&&(we=await Mt(ht(),{}),we.state.translationArea!=="main"?await Ti(e):_a())}async function Ti(e){we=await Mt(ht(),{translationArea:"main"}),await cn(we,e)}async function Yl(e){we=await Mt(ht(),{translationArea:"body"}),await cn(we,e)}async function pi(e){if(qe()==="Original"){let t=await Mt(ht(),{translationMode:"translation"});await cn(t,e)}else(qe()==="Translated"||qe()==="Error")&&await _a()}async function Gp(e){if(we=await Mt(ht(),{translationMode:void 0}),Je("switch_translation_mode",[{name:"switch_translation_mode",params:{mode:e}}],{...we,sourceLanguage:"unknown"}),qe()==="Original"){cn(we);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(e)}async function Vp(e){if(qe()==="Original")await Yl(e);else if(qe()==="Translated"||qe()==="Error"){let t={};we&&we.state&&(t=we.state),we=await Mt(ht(),t),we.state.translationArea!=="body"?(we.state.translationArea="body",we=await Mt(ht(),we.state),await cn(we,e)):_a()}}async function Yp(e){we=await Mt(ht(),{translationStartMode:"immediate"}),await cn(we,e)}async function fp(){let e=await Mt(ht(),{});if(U.debug("init page ctx",e),e.rule.isSubtitleBuilder){Rl();return}if(e.rule.isEbookBuilder){vp();return}if(qp(e),Cr||(Cr=e.state.translationTheme),e.rule.urlChangeDelay&&await Dr(e.rule.urlChangeDelay),e.rule.waitForSelectors&&e.rule.waitForSelectors.length>0&&await Qy(e.rule.waitForSelectors,e.rule.waitForSelectorsTimeout),e.rule.isInjectOptionsUrl){let a=Qp(),r=document.createElement("meta");r.name="immersive-translate-options-url",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(u){U.warn("inject options url failed",u)}}if(e.rule.isInjectVersion){let a=an(),r=document.createElement("meta");r.name="immersive-translate-version",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(u){U.warn("inject version failed",u)}}if(e.rule.globalMeta&&Object.keys(e.rule.globalMeta).forEach(r=>{let u=document.createElement("meta");u.name=r,u.content=e.rule.globalMeta[r],document.head.appendChild(u)}),e.rule.initialGlobalAttributes&&a3(document.body,e.rule.initialGlobalAttributes),e.rule.isPdf){cn(e);return}if(e.rule.isOnBoardingPage){document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"currentConfig",payload:{enableDefaultAlwaysTranslatedUrls:!!e.config.enableDefaultAlwaysTranslatedUrls}})}));let a=document.querySelector("#immersiveTranslateEnableDefaultAlwaysTranslatedUrlsValue");a&&(a.value="helloworld",a.value=String(!!e.config.enableDefaultAlwaysTranslatedUrls),a.dispatchEvent(new Event("change")))}$p||($p=!0,globalThis.top!==globalThis.self&&e.rule.useIframePostMessage&&await Dd());let t=e.sourceLanguage;if(t==="auto"?t=await Vl():rn(t),e.rule.isInjectMeta)try{let a=await t3(t),r=document.createElement("meta");r.name="immersive-translate-meta",r.content=Gi(JSON.stringify(a)),document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(a){U.warn("inject meta failed",a)}let n=e.state.isAutoTranslate||e.isTranslateUrl||e.rule.isPdf;if(!n&&!e.isTranslateExcludeUrl&&(U.debug(`detect page language: ${e.url} ${t}`),$n(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto"||Ld(t,e.config.translationLanguagePattern)&&(n=!0,U.debug(`match language pattern ${t}, auto translate`))),e.rule.isEbookBuilder&&(n=!1),!e.rule.isPdf&&Rr()&&fi(e,window),n)we.state.isAutoTranslate=!0,cn(we);else if(U.debug("do not auto translate",e),e.rule.initTranslationServiceAsSoonAsPossible&&e.translationService==="deepl"){if($n(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto")return;e.config&&e.config.translationServices&&e.config.translationServices.deepl&&e.config.translationServices.deepl.authKey&&typeof e.config.translationServices.deepl.authKey=="string"&&e.config.translationServices.deepl.authKey.startsWith("immersive_")&&(Ei[e.translationService]||(Ei[e.translationService]=!0,nt()||l0(e).catch(a=>{U.warn("init translation engine error",a)})))}}async function Mt(e,t){let n=Object.keys(t);if(we){let a={url:e,config:we.config,state:{...we.state,...t}};we=await Sa(a)}else{let a=await En(),r=t;n.length===0&&(r=void 0),we=await Sa({url:e,config:a,state:r})}return we}async function Jp(){let e=await En(),t;we&&we.state&&(t=we.state);let n={url:ht(),config:e,state:t},a=await Sa(n);we=a;let r=Mo(),u=[];return r?u=r.allInlineWindows||[window]:u=[window],u.forEach(o=>{mp(a,o),Rr()&&fi(a,o),Op(a)}),a}function Qy(e,t=3e3){return new Promise((n,a)=>{let r=t?setTimeout(()=>{n(new Error("timeout"))},t):void 0,u=setInterval(()=>{e.every(i=>document.querySelector(i)!==null)&&(clearInterval(u),r&&clearTimeout(r),n(null))},50)})}async function hp(e){let t=e.detail;jt.set(Ot,t);let n=await jt.get(Oi,!1);jt.set(Oi,!1),document.dispatchEvent(new CustomEvent("immersiveTranslateDocumentMessageUserResult",{detail:n?"close":"success"}))}function bp(e){U.debug("update user info",e);let t=e.detail;jt.set(Ot,t)}async function yp(e){let t=await ln();if(t.translationService)return;let n=e.config.translationService,a=["bing","transmart","google"];a.sort((u,o)=>u===n?-1:o===n?1:0);let r=await Bm(a,e);if(!r){Ur("no_avaliable_translation_service",[{name:"no_avaliable_translation_service"}]);return}e.translationService!==r&&(t.translationService=r,sn(t),e.translationService=r,Ur("change_default_translation_service",[{name:"change_default_translation_service",params:{translation_service:r}}]))}var mr=async function(e,t){let{method:n,data:a}=e,r=await Jp(),u=Date.now();if(U.debug(`content script received message: ${n}`,a||" "),n==="translateTheWholePage")await Yl(a),je(mn,u);else if(n==="translateTheMainPage")await Ti(a),je(mn,u);else if(n==="translateToThePageEndImmediately")await Yp(a),je(mn,u);else if(n==="toggleTranslatePage")await di(a),je(mn,u);else if(n==="toggleTranslateTheWholePage")await Vp(a),je(mn,u);else if(n==="toggleTranslateTheMainPage")await Kp(a),je(mn,u);else if(n==="toggleOnlyTransation")await pi(a),je(mn,u);else if(n==="translatePage")await cn(r,a),je(mn,u);else if(n==="toggleTranslationMask")await gi(a);else if(n==="restorePage")_a();else if(n==="setCurrentPageLanguageByClient")rn(a);else if(n==="retryFailedParagraphs")mi();else if(n==="switchTranslationMode"){if(r.rule.isPdf)return;a&&a.mode&&Gp(a.mode)}},Zy=function(e,t){let{method:n,data:a}=e;if(U.debug(`content script received sync message: ${n}`,a||" "),n==="ping")return"pong";if(n==="getPageStatus")return qe();if(n==="getCurrentPageLanguage"){let r=ct();return Vl().catch(u=>{U.warn("detectCurrentPageLanguage failed",u)}),r}},Ci,wi;function xp(){let e=vi();nt()||Xy(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function vi(){return Ci||(Ci=new Vn("content_script",!1).getConnection("main",mr),Ci)}function Xy(){return wi||(wi=new Vn("content_script",!1).getConnection("main_sync",Zy,{sync:!0}),wi)}async function Ve(e){return await vi().sendMessage("background:main",e)}function ie(e){return Eu()?Ku({method:"request",data:e}):fe()||xu()?(e.fetchPolyfill=globalThis.GM_fetch,ba(e)):Ve({method:"fetch",data:e})}function En(){return fe()?Ka():Ve({method:"getConfig"})}function sn(e){return fe()?Cs(e):Ve({method:"setUserConfig",data:e})}function ln(){return fe()?Ts():Ve({method:"getUserConfig"})}function ap(){return fe()?Jn():Ve({method:"getLocalConfig"})}function ti(e){return fe()?kn(e):Ve({method:"setLocalConfig",data:e})}function Gg(e){return fe()?md(e):Ve({method:"setBuildinConfig",data:e})}async function Ke(e){if(e.text){let n=$u(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(fe()||Xt()){let n=ed(e.text,e.minLength,e.pageLangs);return Promise.resolve(n)}let t=await Ve({method:"detectLanguage",data:e});return Promise.resolve(t)}function A3(){return Ve({method:"detectTabLanguage"})}function E3(e){if(fe()){let n=new CustomEvent(vu,{detail:e});document.dispatchEvent(n);return}vi().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(n=>{})}function Rm(e){return fe()?Ed(e):Ve({method:"queryParagraphCache",data:e})}async function Im(e){if(fe()){await xd(e);return}return Ve({method:"setParagraphCache",data:e})}async function Qd(){if(fe())return Promise.resolve();await Ve({method:"mockRequest"})}function br(e=!1,t=""){return fe()?(se.runtime.openOptionsPage(e,t),Promise.resolve()):Ve({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function Qp(e=""){return fe()||Xt()?Qe().OPTIONS_URL:se.runtime.getURL("options.html")}function og(e=""){return se&&se.runtime&&se.runtime.getURL?se.runtime.getURL("options.html"):""}function ni(e=!1){return fe()?(se.extra.openAboutPage(e),Promise.resolve()):Ve({method:"openAboutPage"})}function Ep(e=!1){return fe()?(se.extra.openSearchEnhancement(e),Promise.resolve()):Ve({method:"openSearchEnhancement"})}function ai(e){return fe()?(se.extra.openInTab(e),Promise.resolve()):Ve({method:"openInTab",data:e})}function ri(e=!1){return fe()?(se.extra.openEbookViewerPage(e),Promise.resolve()):Ve({method:"openEbookViewerPage"})}function Vg(e=!1){return fe()?Promise.resolve():Ve({method:"openHtmlViewerPage"})}function ui(e=!1){return fe()?(se.extra.openEbookBuilderPage(e),Promise.resolve()):Ve({method:"openEbookBuilderPage"})}function Tp(e){Xt()}function Cl(e=!1){return fe()?(se.extra.openPdfViewerPage(e),Promise.resolve()):Ve({method:"openPdfViewerPage"})}function Yg(e=!1){return fe()?(se.extra.openSubtitleBuilderPage(e),Promise.resolve()):Ve({method:"openSubtitleBuilderPage"})}function Jl(e){return fe()?Promise.resolve():Ve({method:"setBadge",data:{text:e}})}function dg(){return fe()?(U.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):Ve({method:"autoSyncLatestConfig"})}p();function Xp(e,t){let n=e.pageWidth*e.scale,a=e.prevPageParagraphs||[];if(a.length<=0||t.length<=0)return{};let r=a[a.length-1];if(!r)return{};let u=n-r.right,o=t.find(i=>We(i.left,u)&&We(i.width,r.width));return{prevP:r,curP:o}}function ef(e){return e?e==e[0].repeat(e.length):!0}function We(e,t,n=5){return Math.abs(e-t)<=n}var Ql=[",","\\.","\uFF0C","\u3002"];function tf(e,t){let n=e.prevGroup;if(!n)return!1;let a=n[n.length-1],r=t[0];return We(a.left,r.left,7)&&We(a.nextTop,r.top,10)&&ki(a,r)}function nf({prevLineP:e,justify:t},n){return t&&n.left>e.left&&n.bottomt.right}function of(e,t){let n=e.justify;return n?t.top>n.top&&t.left>n.left&&t.right<=n.right+1&&t.fontSize<=n.fontSize+1:!1}function sf({prevLineP:e,prevP:t},n){return We(e.left,n.left,1)&&We(e.right,t.right,1)&&t.mergedTimes>=1}function Zl(e,t){let{prevLineP:n}=e;return of(e,t)&&(We(n.bottom,t.bottom)||We(n.nextTop,t.top)&&We(n.left,t.left))}function lf(e,t){let{prevLineP:n,prevP:a,scale:r}=e;return of(e,t)&&n.width0&&a/r<.1&&n.left=n&&We(t.nextLeft,a,t.fontSize*e)}function ki(e,{fontSize:t,fontName:n},a=!1){return a?We(e.fontSize,t,1)&&e.fontName==n:We(e.fontSize,t,1)}function e5(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}function ff(e){let n=e5([1,0,0,-1,-0,0],e);return Math.atan2(n[1],n[0])}var Zp=0;async function hf(e=60){if(Zp>e)return;if(Zp++,await t5(300),!document.querySelector("meta[name='immersive-translate-version']"))return await hf(e)}async function t5(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}async function bf(e){await hf(),document.dispatchEvent(new CustomEvent("immersiveTranslateDocumentMessageEventUpload",{detail:{name:e}}))}function xf(e,t){let n=[],a=a5(e,t);return r5(e,a).forEach(u=>{if(!(u.length<=0)){if(u.length==1){yf(e,n,u[0],!0);return}n.push(`
`),n.push('
'),n.push('
'),u.forEach(o=>{yf(e,n,o,!1)}),n.push("
")}}),`
${n.join("")} -
`}function bf(e,t,n,a=!0){if(n.length<=0)return;let{pageWidth:r,pageHeight:u,scale:o}=e,i=a?"":"position:relative;",s=`${(n[0].width*100/(r*o)).toFixed(2)}%`,c=`${(100-n[0].left*100/(r*o)).toFixed(2)}%`;n.forEach(l=>{if(!l.str)return;let m=l.mergedTimes>0?`${(l.width*100/(r*o)+1).toFixed(2)}%`:"auto",g=`${(l.left*100/(r*o)).toFixed(2)}%`,f=`${(l.top*100/(u*o)).toFixed(2)}%`,d=R4()&&l.fontSize<7?` transform: scale(${l.fontSize/7}); `:"",b=l.angle?` transform: rotate(${l.angle}deg); transform-origin: 0 0;`:"",T=`calc(var(--scale-factor)*var(--font-scale)*${Math.min(l.fontSize-1,24)}px)`,h=`${l.originFontName},${l.fontName},serif`;a&&(i=`position: absolute;left: ${g};top: ${f};width:${m};max-width:${c};min-width:${s};`,!d&&l.mergedTimes>1&&(i+=`height:${(l.bottom-l.top)*1.05}px;overflow:auto;`));let C=l.str;l.translateStatus=="success"&&(C=l.translatedStr),t.push(`
`),a&&(t.push('
'),t.push('
')),t.push(`

${C}

`),t.push("
")})}function n5(e,t){let{pageWidth:n,pageHeight:a,scale:r}=e,u=t[0][0],o=u.width,i=u.top,s=t[t.length-1][t[t.length-1].length-1].bottom;t.forEach(g=>{g[0].width>o&&(o=g[0].width)});let c=`${(o*100/(n*r)).toFixed(2)}%`,l=`${(u.left*100/(n*r)).toFixed(2)}%`,m=`${(u.top*100/(a*r)).toFixed(2)}%`;return`position:absolute;width:${c};left:${l};top:${m};height:${s-i}px;overflow:auto;`}function a5(e,t){let n=[];return t.forEach((a,r)=>{if(r==0){n.push([a]);return}let u=n[n.length-1][0];if(e.prevLineP=u,Xl(e,a)){n[n.length-1].push(a);return}n.push([a])}),n}function r5(e,t){let n=[];return t.forEach((a,r)=>{if(r==0||a.length>1){n.push([a]);return}let u=n[n.length-1];if(e.prevGroup=u[u.length-1],ef(e,a)){u.push(a);return}n.push([a])}),n}function u5(e){let{pageWidth:t,pageHeight:n}=e,a=`calc(var(--scale-factor) * ${t}px)`,r=`calc(var(--scale-factor) * ${n}px)`;return`width:${a};height:${r};`}p();var xf="immersive-translate";async function Ef(e,t,n,a){let r=e.querySelector(".canvasWrapper"),u=e.querySelector(".textLayer");if(!r||!u)return;let o=r.cloneNode(!0),i=u.cloneNode(!0);o.classList.add("image-mode"),i.classList.add("image-mode"),t.appendChild(o),t.appendChild(i);let s=t.querySelector(".textLayer");s&&s.classList.add(`${xf}-text-layer-image-mode`);let c=t.querySelector("canvas");c&&(c.setAttribute("style",e.getAttribute("style")||""),await Tf(c,n,a))}async function Tf(e,t,n){let a=globalThis.PDFViewerApplication;if(!a)return;let r=await a.pdfDocument.getPage(t),u=e.getContext("2d");if(!u)return;let o=r.getViewport({scale:n});e.height=o.height,e.width=o.width,u.strokeText=function(){},u.fillText=function(){};let i={canvasContext:u,viewport:o};r.render(i)}async function Cf(e){let t=document.querySelectorAll(`.${xf}-page`);for(let n of t){let a=n.getAttribute("data-page-number");if(!a)return;let r=parseInt(a),u=n.querySelector("canvas");if(!u)return;await Tf(u,r,e*ec.PDF_TO_CSS_UNITS)}}var ec=class{static CSS=96;static PDF=72;static PDF_TO_CSS_UNITS=this.CSS/this.PDF};p();var tc="immersive-translate-pdf-user-config",bu={lineSpacing:0,wordSpacing:0,symbolSpacing:0},vf,o5=[{component:"switch",label:"\u5E26\u56FE\u6A21\u5F0F: \u5C06\u539F\u6587\u4E2D\u7684\u56FE\u8FD8\u539F\u5230\u8BD1\u6587\u4E2D",filed:"image",value:!0,subtitle:"\u53EF\u901A\u8FC7\u4EE5\u4E0B\u914D\u7F6E\u5FEB\u901F\u8C03\u6574\u8BD1\u6587\u6548\u679C",onChange:c5},{component:"switch",label:"\u91CD\u53E0\u9650\u5236: \u4E3A\u4E86\u9632\u6B62\u8BD1\u6587\u7684\u6BB5\u843D\u4E4B\u95F4\u76F8\u4E92\u91CD\u53E0\uFF0C\u9650\u5236\u4E86\u8BD1\u6587\u8DDF\u539F\u6587\u6BB5\u843D\u540C\u7B49\u9AD8\u5EA6",filed:"overflow",value:!0,onChange:d5},{component:"switch",label:"\u95F4\u8DDD\u7D27\u51D1: \u53BB\u6389\u9ED8\u8BA4\u95F4\u8DDD\uFF0C\u56E0\u4E3A\u6BB5\u843D\u9ED8\u8BA4\u95F4\u8DDD\u4F1A\u5BFC\u81F4\u5728\u5C0F\u5C4F\u4E2D, \u8BD1\u6587\u5185\u5BB9\u504F\u9AD8\u88AB\u9650\u9AD8\u9690\u85CF\u6389",filed:"tiny",value:!1,onChange:m5},{component:"input",label:"\u8C03\u6574\u8BD1\u6587\u5E03\u5C40\u7684\u8DDD\u79BB\u5DE6\u8FB9\u767E\u5206\u6BD4",filed:"adjustLyaout",type:"range",class:"tiny-input",value:0,direction:"right",onChange:g5,otherProps:{min:"0",max:"100",step:"2"}},{component:"input",label:"\u8C03\u6574\u8BD1\u6587\u5B57\u53F7",filed:"adjustFontSize",type:"range",class:"tiny-input",value:10,direction:"right",onChange:p5,otherProps:{min:"5",max:"20",step:"1"}},{component:"input",label:"\u884C\u95F4\u8DDD\uFF1A",filed:"lineSpacing",value:0,type:"number",subtitle:"\u53EF\u901A\u8FC7\u4EE5\u4E0B\u914D\u7F6E\u8C03\u6574\u8BD1\u6587\u5206\u6BB5",realodPDF:!0},{component:"input",label:"\u5B57\u95F4\u8DDD\uFF1A",filed:"wordSpacing",value:0,type:"number",realodPDF:!0},{component:"input",label:"\u5F15\u7528\u95F4\u8DDD\uFF1A",filed:"symbolSpacing",value:0,type:"number",realodPDF:!0}];function wf(){let e=globalThis.window.document,t=e.querySelector("#toolbarViewerRight"),n=e.querySelector("#immersive-control-btn");!t||n||(t.setAttribute("style","display: flex;flex-direction: row;align-items: center;"),n=e.createElement("div"),n.id="immersive-control-btn",n.className="immersive-translate-btn control-button",n.innerHTML="\u5FEB\u6377\u63A7\u5236\u6837\u5F0F",t.insertBefore(n,t.firstChild),n.onclick=i5)}function i5(){let e=document.getElementById("immersive-control-modal");if(!e){e=document.createElement("div"),e.id="immersive-control-modal",e.className="immersive-translate-modal",e.innerHTML=` + `}function yf(e,t,n,a=!0){if(n.length<=0)return;let{pageWidth:r,pageHeight:u,scale:o}=e,i=a?"":"position:relative;",s=`${(n[0].width*100/(r*o)).toFixed(2)}%`,c=`${(100-n[0].left*100/(r*o)).toFixed(2)}%`;n.forEach(l=>{if(!l.str)return;let m=l.mergedTimes>0?`${(l.width*100/(r*o)+1).toFixed(2)}%`:"auto",g=`${(l.left*100/(r*o)).toFixed(2)}%`,f=`${(l.top*100/(u*o)).toFixed(2)}%`,d=R4()&&l.fontSize<7?` transform: scale(${l.fontSize/7}); `:"",b=l.angle?` transform: rotate(${l.angle}deg); transform-origin: 0 0;`:"",T=`calc(var(--scale-factor)*var(--font-scale)*${Math.min(l.fontSize-1,24)}px)`,h=`${l.originFontName},${l.fontName},serif`;a&&(i=`position: absolute;left: ${g};top: ${f};width:${m};max-width:${c};min-width:${s};`,!d&&l.mergedTimes>1&&(i+=`height:${(l.bottom-l.top)*1.05}px;overflow:auto;`));let C=l.str;l.translateStatus=="success"&&(C=l.translatedStr),t.push(`
`),a&&(t.push('
'),t.push('
')),t.push(`

${C}

`),t.push("
")})}function n5(e,t){let{pageWidth:n,pageHeight:a,scale:r}=e,u=t[0][0],o=u.width,i=u.top,s=t[t.length-1][t[t.length-1].length-1].bottom;t.forEach(g=>{g[0].width>o&&(o=g[0].width)});let c=`${(o*100/(n*r)).toFixed(2)}%`,l=`${(u.left*100/(n*r)).toFixed(2)}%`,m=`${(u.top*100/(a*r)).toFixed(2)}%`;return`position:absolute;width:${c};left:${l};top:${m};height:${s-i}px;overflow:auto;`}function a5(e,t){let n=[];return t.forEach((a,r)=>{if(r==0){n.push([a]);return}let u=n[n.length-1][0];if(e.prevLineP=u,Xl(e,a)){n[n.length-1].push(a);return}n.push([a])}),n}function r5(e,t){let n=[];return t.forEach((a,r)=>{if(r==0||a.length>1){n.push([a]);return}let u=n[n.length-1];if(e.prevGroup=u[u.length-1],tf(e,a)){u.push(a);return}n.push([a])}),n}function u5(e){let{pageWidth:t,pageHeight:n}=e,a=`calc(var(--scale-factor) * ${t}px)`,r=`calc(var(--scale-factor) * ${n}px)`;return`width:${a};height:${r};`}p();var Ef="immersive-translate";async function Tf(e,t,n,a){let r=e.querySelector(".canvasWrapper"),u=e.querySelector(".textLayer");if(!r||!u)return;let o=r.cloneNode(!0),i=u.cloneNode(!0);o.classList.add("image-mode"),i.classList.add("image-mode"),t.appendChild(o),t.appendChild(i);let s=t.querySelector(".textLayer");s&&s.classList.add(`${Ef}-text-layer-image-mode`);let c=t.querySelector("canvas");c&&(c.setAttribute("style",e.getAttribute("style")||""),await Cf(c,n,a))}async function Cf(e,t,n){let a=globalThis.PDFViewerApplication;if(!a)return;let r=await a.pdfDocument.getPage(t),u=e.getContext("2d");if(!u)return;let o=r.getViewport({scale:n});e.height=o.height,e.width=o.width,u.strokeText=function(){},u.fillText=function(){};let i={canvasContext:u,viewport:o};r.render(i)}async function wf(e){let t=document.querySelectorAll(`.${Ef}-page`);for(let n of t){let a=n.getAttribute("data-page-number");if(!a)return;let r=parseInt(a),u=n.querySelector("canvas");if(!u)return;await Cf(u,r,e*ec.PDF_TO_CSS_UNITS)}}var ec=class{static CSS=96;static PDF=72;static PDF_TO_CSS_UNITS=this.CSS/this.PDF};p();var tc="immersive-translate-pdf-user-config",hu={lineSpacing:0,wordSpacing:0,symbolSpacing:0},kf,o5=[{component:"switch",label:"\u5E26\u56FE\u6A21\u5F0F: \u5C06\u539F\u6587\u4E2D\u7684\u56FE\u8FD8\u539F\u5230\u8BD1\u6587\u4E2D",filed:"image",value:!0,subtitle:"\u53EF\u901A\u8FC7\u4EE5\u4E0B\u914D\u7F6E\u5FEB\u901F\u8C03\u6574\u8BD1\u6587\u6548\u679C",onChange:c5},{component:"switch",label:"\u91CD\u53E0\u9650\u5236: \u4E3A\u4E86\u9632\u6B62\u8BD1\u6587\u7684\u6BB5\u843D\u4E4B\u95F4\u76F8\u4E92\u91CD\u53E0\uFF0C\u9650\u5236\u4E86\u8BD1\u6587\u8DDF\u539F\u6587\u6BB5\u843D\u540C\u7B49\u9AD8\u5EA6",filed:"overflow",value:!0,onChange:d5},{component:"switch",label:"\u95F4\u8DDD\u7D27\u51D1: \u53BB\u6389\u9ED8\u8BA4\u95F4\u8DDD\uFF0C\u56E0\u4E3A\u6BB5\u843D\u9ED8\u8BA4\u95F4\u8DDD\u4F1A\u5BFC\u81F4\u5728\u5C0F\u5C4F\u4E2D, \u8BD1\u6587\u5185\u5BB9\u504F\u9AD8\u88AB\u9650\u9AD8\u9690\u85CF\u6389",filed:"tiny",value:!1,onChange:m5},{component:"input",label:"\u8C03\u6574\u8BD1\u6587\u5E03\u5C40\u7684\u8DDD\u79BB\u5DE6\u8FB9\u767E\u5206\u6BD4",filed:"adjustLyaout",type:"range",class:"tiny-input",value:0,direction:"right",onChange:g5,otherProps:{min:"0",max:"100",step:"2"}},{component:"input",label:"\u8C03\u6574\u8BD1\u6587\u5B57\u53F7",filed:"adjustFontSize",type:"range",class:"tiny-input",value:10,direction:"right",onChange:p5,otherProps:{min:"5",max:"20",step:"1"}},{component:"input",label:"\u884C\u95F4\u8DDD\uFF1A",filed:"lineSpacing",value:0,type:"number",subtitle:"\u53EF\u901A\u8FC7\u4EE5\u4E0B\u914D\u7F6E\u8C03\u6574\u8BD1\u6587\u5206\u6BB5",realodPDF:!0},{component:"input",label:"\u5B57\u95F4\u8DDD\uFF1A",filed:"wordSpacing",value:0,type:"number",realodPDF:!0},{component:"input",label:"\u5F15\u7528\u95F4\u8DDD\uFF1A",filed:"symbolSpacing",value:0,type:"number",realodPDF:!0}];function vf(){let e=globalThis.window.document,t=e.querySelector("#toolbarViewerRight"),n=e.querySelector("#immersive-control-btn");!t||n||(t.setAttribute("style","display: flex;flex-direction: row;align-items: center;"),n=e.createElement("div"),n.id="immersive-control-btn",n.className="immersive-translate-btn control-button",n.innerHTML="\u5FEB\u6377\u63A7\u5236\u6837\u5F0F",t.insertBefore(n,t.firstChild),n.onclick=i5)}function i5(){let e=document.getElementById("immersive-control-modal");if(!e){e=document.createElement("div"),e.id="immersive-control-modal",e.className="immersive-translate-modal",e.innerHTML=`
×
\u5173\u95ED
- `,document.body.appendChild(e);let t=e.querySelectorAll("[data-action='close']"),n=()=>{e.style.display="none"};t.forEach(r=>r.onclick=n);let a=document.getElementById("modal-control-content");if(!a)return;for(let r of o5){let u;if(r.subtitle&&a.appendChild(Le.sanitize(``,{RETURN_DOM_FRAGMENT:!0})),r.component==="switch"?u=s5(r):r.component==="input"&&(u=l5(r)),!u)continue;a.appendChild(u);let o=`${tc}-${r.filed}`,i=document.getElementById(o);if(!i)return;Object.entries(r.otherProps||{}).forEach(([s,c])=>{i.setAttribute(s,c)}),i.onchange=s=>{r.onChange?r.onChange(s):r.component=="input"&&r.type==="number"?bu[r.filed]=parseFloat(`${s.target.value}`):r.component=="switch"?bu[r.filed]=s.target.checked:r.component=="input"&&(bu[r.filed]=s.target.value),r.realodPDF&&vf(bu)},i.oninput=i.onchange}}e.style.display="block"}function s5(e){let t=document.createElement("div");t.className="switch-wrapper";let n=`${tc}-${e.filed}`;return t.innerHTML=`${e.label}`,t}function l5(e){let t=document.createElement("div"),n=`${tc}-${e.filed}`;t.className="input-wrapper";let a=``,r=``;return e.direction=="right"?t.innerHTML=r+a:t.innerHTML=a+r,t}function c5(e){let t=e.target.checked,n=document.getElementById("image-mode-style");n&&n.remove();let a=document.createElement("style");a.id="image-mode-style",a.innerText=` + `,document.body.appendChild(e);let t=e.querySelectorAll("[data-action='close']"),n=()=>{e.style.display="none"};t.forEach(r=>r.onclick=n);let a=document.getElementById("modal-control-content");if(!a)return;for(let r of o5){let u;if(r.subtitle&&a.appendChild(Le.sanitize(``,{RETURN_DOM_FRAGMENT:!0})),r.component==="switch"?u=s5(r):r.component==="input"&&(u=l5(r)),!u)continue;a.appendChild(u);let o=`${tc}-${r.filed}`,i=document.getElementById(o);if(!i)return;Object.entries(r.otherProps||{}).forEach(([s,c])=>{i.setAttribute(s,c)}),i.onchange=s=>{r.onChange?r.onChange(s):r.component=="input"&&r.type==="number"?hu[r.filed]=parseFloat(`${s.target.value}`):r.component=="switch"?hu[r.filed]=s.target.checked:r.component=="input"&&(hu[r.filed]=s.target.value),r.realodPDF&&kf(hu)},i.oninput=i.onchange}}e.style.display="block"}function s5(e){let t=document.createElement("div");t.className="switch-wrapper";let n=`${tc}-${e.filed}`;return t.innerHTML=`${e.label}`,t}function l5(e){let t=document.createElement("div"),n=`${tc}-${e.filed}`;t.className="input-wrapper";let a=``,r=``;return e.direction=="right"?t.innerHTML=r+a:t.innerHTML=a+r,t}function c5(e){let t=e.target.checked,n=document.getElementById("image-mode-style");n&&n.remove();let a=document.createElement("style");a.id="image-mode-style",a.innerText=` .image-mode { display: ${t?"block":"none"}; } @@ -4357,7 +4359,7 @@ ${o}} .immersive-translate-text-layer { margin-left: -${t}%; } - `,document.head.appendChild(a)}function p5(e){let t=e.target.value;document.body.setAttribute("style",`--font-scale:${Number(t)/10}`)}function kf(e){globalThis.window&&(vf=e,wf(),globalThis.window.addEventListener("DOMContentLoaded",function(){wf()}))}function Sf(){return bu}var nc="immersive-translate",_a,wr=[];f5();async function f5(){let e=globalThis.PDFViewerApplication;if(!e)return;if(h5(),kf(async()=>{wr=[],_a=void 0;let n=document.querySelectorAll(".immersive-translate-page");for(let a of n){let r=a.getAttribute("data-page-number");if(!r)continue;let u=await ac(parseInt(`${r}`))}}),hf("open_pdf_page"),e&&e.eventBus){if(t(),e&&e.pagesCount>0){let n=await ac(1)}}else await e.initializedPromise,t();function t(){e.eventBus.on("pagesdestroy",()=>{wr=[],_a=void 0}),e.eventBus.on("textlayerrendered",async({pageNumber:n})=>{let a=await ac(n)}),e.eventBus.on("scalechanging",async({scale:n})=>{await Cf(n)})}}var yu=null;function h5(){let e=globalThis;e.hiddenOriginalPdf=function(){let t=document.getElementById("hidden-original-style");t&&t.remove();let n=document.createElement("style");n.id="hidden-original-style",n.innerText=` + `,document.head.appendChild(a)}function p5(e){let t=e.target.value;document.body.setAttribute("style",`--font-scale:${Number(t)/10}`)}function Sf(e){globalThis.window&&(kf=e,vf(),globalThis.window.addEventListener("DOMContentLoaded",function(){vf()}))}function Af(){return hu}var nc="immersive-translate",Ba,wr=[];f5();async function f5(){let e=globalThis.PDFViewerApplication;if(!e)return;if(h5(),Sf(async()=>{wr=[],Ba=void 0;let n=document.querySelectorAll(".immersive-translate-page");for(let a of n){let r=a.getAttribute("data-page-number");if(!r)continue;let u=await ac(parseInt(`${r}`))}}),bf("open_pdf_page"),e&&e.eventBus){if(t(),e&&e.pagesCount>0){let n=await ac(1)}}else await e.initializedPromise,t();function t(){e.eventBus.on("pagesdestroy",()=>{wr=[],Ba=void 0}),e.eventBus.on("textlayerrendered",async({pageNumber:n})=>{let a=await ac(n)}),e.eventBus.on("scalechanging",async({scale:n})=>{await wf(n)})}}var bu=null;function h5(){let e=globalThis;e.hiddenOriginalPdf=function(){let t=document.getElementById("hidden-original-style");t&&t.remove();let n=document.createElement("style");n.id="hidden-original-style",n.innerText=` .pdfViewer .page { display: none; } @@ -4365,7 +4367,7 @@ ${o}} .pdfViewer .immersive-translate-page { display: block !important; } - `,document.head.appendChild(n)},e.restoreOriginalPdf=function(){let t=document.getElementById("hidden-original-style");t&&t.remove()},e.realRenderPages=async function(){yu=document.getElementById("viewer");try{yu.remove(),document.getElementById("printContainer")?.appendChild(yu)}catch{}},e.realAfterPrint=function(){try{e?.restoreOriginalPdf(),yu?.remove(),document.getElementById("viewerContainer")?.appendChild(yu)}catch{}}}function b5(e){if(_a)return{..._a,pageNum:e,prevLineP:{},prevP:{}};let t=globalThis.PDFViewerApplication;if(!t)return;let n=t.pagesCount,a=document.getElementById("viewer");if(!a)return;let u=getComputedStyle(a).getPropertyValue("--scale-factor"),i={scale:Number(u),pageNum:e,pagesCount:n,pageWidth:0,pageHeight:0,rotate:0,prevLineP:{},prevP:{},pdfDocument:t.pdfDocument,userConfig:Sf()};return _a={...i},i}async function ac(e){let t=b5(e);if(!t)return;let n=document.querySelector(`.page[data-page-number="${e}"]`),a=document.querySelector(`.${nc}-page[data-page-number="${e}"]`);if(!n||wr[e]&&a)return;wr[e]=await y5(t,e,wr[e-1]||[]);let r=wr[e];if(!a)a=document.createElement("div"),a.setAttribute("style",n.getAttribute("style")||""),a.setAttribute("data-page-number",e+""),a.setAttribute("id",`${nc}-page-${e}`),a.classList.add("page"),a.classList.add(`${nc}-page`),Ef(n,a,e,t.scale),e==t.pagesCount?n.parentNode?.appendChild(a):n.parentNode?.insertBefore(a,n.nextSibling);else{let o=a.querySelector(".immersive-translate-text-layer");o&&a.removeChild(o)}let u=yf(t,r);return a.append(Le.sanitize(u,{ADD_ATTR:["contenteditable","target"],RETURN_DOM_FRAGMENT:!0})),r}async function y5(e,t,n){let a=await e.pdfDocument.getPage(t),r=await a.getTextContent(),[u,o,i,s]=a._pageInfo.view,c=a.rotate;_a.pageWidth=i,_a.pageHeight=s,Object.assign(e,{prevPageParagraphs:n,pageWidth:i,pageHeight:s,rotate:c});let l=E5(e,r);e.origLineParagraphs=l;let{prevP:m,curP:g}=Zp(e,l);return g&&Df(m,void 0,g),x5(e,l)}function x5(e,t){let n=[];return t.forEach((o,i)=>{if(i==0){a(o);return}let s=t[i-1],c=n[n.length-1];if(e.prevLineP=s,e.prevP=c,af(e,o)){if(rf(e,o)){u(c,o);return}if(of(e,o)){e.justify={left:s.left,right:s.right,width:s.width,top:s.top,str:s.str,fontSize:s.fontSize},u(c,o);return}if(sf(e,o)){u(c,o);return}if(Zl(e,o)){u(c,o);return}if(lf(e,o)){u(c,o),o.left{let s=o.str;if(!s.trim())return;let c=pf(o.transform),l=o.transform[4],m=o.transform[5],g=o.width*n,f=t.styles[o.fontName].fontFamily,d=o.transform[3]||o.height,b=t.styles[o.fontName].descent,T=t.styles[o.fontName].ascent,h=d;b&&T&&(h=(1+(1-T)+b)*d),isNaN(h)&&(h=d);let C=l*n,v=(a-m-h)*n;c&&(C=(l+h*Math.sin(c))*n,v=(a-m-h*Math.cos(c))*n);let O=C+g,B=v+d*n,x=B+d*n*.2,L=O+d*n*.3;c=c==0?0:c*180/Math.PI;let M={angle:c,str:s,left:C,nextLeft:L,top:v,nextTop:x,id:`pageNum-${Wt()}`,width:g,originFontName:o.fontName,fontName:f,fontSize:d,right:O,bottom:B,attachList:[],mergedTimes:0,translatedStr:""};if(r.length==0)r.push(M);else{let w=r[r.length-1];if(e.prevLineP=w,cf(e,M)){if(df(e,M)){r.push(M);return}nf(e,M)?w.str+=s:w.str+=" "+s,w.right=O,w.fontName=f,w.width=Math.max(w.width+g,O-w.left),w.nextLeft=L;return}if(mf(e,M)){w.width=Math.max(w.width+g,O-w.left),w.right=O,w.nextLeft=L,w.attachList.push(M);return}if(gf(e,M)){w.width=Math.max(w.width+g,O-w.left),w.right=O,w.nextLeft=L,w.attachList.push(M);return}r.push(M)}});let u=new Map;return r.forEach(o=>{u.set(o.str+Math.floor(o.left),o)}),[...u.values()]}function Df(e,t,n){if(!ki(e,n)||e.width+1(o=s,"")),t&&t.str==e.str&&!o&&(o=e.str,e.str=""),o&&(o.endsWith("-")?o=o.replace("-",""):o+=" "),n.str=o.trimStart()+n.str}}})(); + `,document.head.appendChild(n)},e.restoreOriginalPdf=function(){let t=document.getElementById("hidden-original-style");t&&t.remove()},e.realRenderPages=async function(){bu=document.getElementById("viewer");try{bu.remove(),document.getElementById("printContainer")?.appendChild(bu)}catch{}},e.realAfterPrint=function(){try{e?.restoreOriginalPdf(),bu?.remove(),document.getElementById("viewerContainer")?.appendChild(bu)}catch{}}}function b5(e){if(Ba)return{...Ba,pageNum:e,prevLineP:{},prevP:{}};let t=globalThis.PDFViewerApplication;if(!t)return;let n=t.pagesCount,a=document.getElementById("viewer");if(!a)return;let u=getComputedStyle(a).getPropertyValue("--scale-factor"),i={scale:Number(u),pageNum:e,pagesCount:n,pageWidth:0,pageHeight:0,rotate:0,prevLineP:{},prevP:{},pdfDocument:t.pdfDocument,userConfig:Af()};return Ba={...i},i}async function ac(e){let t=b5(e);if(!t)return;let n=document.querySelector(`.page[data-page-number="${e}"]`),a=document.querySelector(`.${nc}-page[data-page-number="${e}"]`);if(!n||wr[e]&&a)return;wr[e]=await y5(t,e,wr[e-1]||[]);let r=wr[e];if(!a)a=document.createElement("div"),a.setAttribute("style",n.getAttribute("style")||""),a.setAttribute("data-page-number",e+""),a.setAttribute("id",`${nc}-page-${e}`),a.classList.add("page"),a.classList.add(`${nc}-page`),Tf(n,a,e,t.scale),e==t.pagesCount?n.parentNode?.appendChild(a):n.parentNode?.insertBefore(a,n.nextSibling);else{let o=a.querySelector(".immersive-translate-text-layer");o&&a.removeChild(o)}let u=xf(t,r);return a.append(Le.sanitize(u,{ADD_ATTR:["contenteditable","target"],RETURN_DOM_FRAGMENT:!0})),r}async function y5(e,t,n){let a=await e.pdfDocument.getPage(t),r=await a.getTextContent(),[u,o,i,s]=a._pageInfo.view,c=a.rotate;Ba.pageWidth=i,Ba.pageHeight=s,Object.assign(e,{prevPageParagraphs:n,pageWidth:i,pageHeight:s,rotate:c});let l=E5(e,r);e.origLineParagraphs=l;let{prevP:m,curP:g}=Xp(e,l);return g&&Lf(m,void 0,g),x5(e,l)}function x5(e,t){let n=[];return t.forEach((o,i)=>{if(i==0){a(o);return}let s=t[i-1],c=n[n.length-1];if(e.prevLineP=s,e.prevP=c,rf(e,o)){if(uf(e,o)){u(c,o);return}if(sf(e,o)){e.justify={left:s.left,right:s.right,width:s.width,top:s.top,str:s.str,fontSize:s.fontSize},u(c,o);return}if(lf(e,o)){u(c,o);return}if(Zl(e,o)){u(c,o);return}if(cf(e,o)){u(c,o),o.left{let s=o.str;if(!s.trim())return;let c=ff(o.transform),l=o.transform[4],m=o.transform[5],g=o.width*n,f=t.styles[o.fontName].fontFamily,d=o.transform[3]||o.height,b=t.styles[o.fontName].descent,T=t.styles[o.fontName].ascent,h=d;b&&T&&(h=(1+(1-T)+b)*d),isNaN(h)&&(h=d);let C=l*n,v=(a-m-h)*n;c&&(C=(l+h*Math.sin(c))*n,v=(a-m-h*Math.cos(c))*n);let O=C+g,B=v+d*n,x=B+d*n*.2,L=O+d*n*.3;c=c==0?0:c*180/Math.PI;let M={angle:c,str:s,left:C,nextLeft:L,top:v,nextTop:x,id:`pageNum-${$t()}`,width:g,originFontName:o.fontName,fontName:f,fontSize:d,right:O,bottom:B,attachList:[],mergedTimes:0,translatedStr:""};if(r.length==0)r.push(M);else{let w=r[r.length-1];if(e.prevLineP=w,df(e,M)){if(mf(e,M)){r.push(M);return}af(e,M)?w.str+=s:w.str+=" "+s,w.right=O,w.fontName=f,w.width=Math.max(w.width+g,O-w.left),w.nextLeft=L;return}if(gf(e,M)){w.width=Math.max(w.width+g,O-w.left),w.right=O,w.nextLeft=L,w.attachList.push(M);return}if(pf(e,M)){w.width=Math.max(w.width+g,O-w.left),w.right=O,w.nextLeft=L,w.attachList.push(M);return}r.push(M)}});let u=new Map;return r.forEach(o=>{u.set(o.str+Math.floor(o.left),o)}),[...u.values()]}function Lf(e,t,n){if(!ki(e,n)||e.width+1(o=s,"")),t&&t.str==e.str&&!o&&(o=e.str,e.str=""),o&&(o.endsWith("-")?o=o.replace("-",""):o+=" "),n.str=o.trimStart()+n.str}}})(); /*! Bundled license information: bowser/src/bowser.js: diff --git a/dist/firefox/popup.js b/dist/firefox/popup.js index 9611fd5..b62e880 100644 --- a/dist/firefox/popup.js +++ b/dist/firefox/popup.js @@ -1,4 +1,4 @@ -(()=>{var cf=Object.create;var Ri=Object.defineProperty;var df=Object.getOwnPropertyDescriptor;var mf=Object.getOwnPropertyNames;var gf=Object.getPrototypeOf,pf=Object.prototype.hasOwnProperty;var ff=(e,t)=>()=>(e&&(t=e(e=0)),t);var hf=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),bf=(e,t)=>{for(var n in t)Ri(e,n,{get:t[n],enumerable:!0})},yf=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of mf(t))!pf.call(e,r)&&r!==n&&Ri(e,r,{get:()=>t[r],enumerable:!(a=df(t,r))||a.enumerable});return e};var xf=(e,t,n)=>(n=e!=null?cf(gf(e)):{},yf(t||!e||!e.__esModule?Ri(n,"default",{value:e,enumerable:!0}):n,e));var _,m=ff(()=>{_={BUILD_TIME:"2023-09-17T09:32:32.000Z",VERSION:"0.9.5",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"0",BETA:"0",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { +(()=>{var df=Object.create;var Ri=Object.defineProperty;var mf=Object.getOwnPropertyDescriptor;var gf=Object.getOwnPropertyNames;var pf=Object.getPrototypeOf,ff=Object.prototype.hasOwnProperty;var hf=(e,t)=>()=>(e&&(t=e(e=0)),t);var bf=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),yf=(e,t)=>{for(var n in t)Ri(e,n,{get:t[n],enumerable:!0})},xf=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of gf(t))!ff.call(e,r)&&r!==n&&Ri(e,r,{get:()=>t[r],enumerable:!(a=mf(t,r))||a.enumerable});return e};var Ef=(e,t,n)=>(n=e!=null?df(pf(e)):{},xf(t||!e||!e.__esModule?Ri(n,"default",{value:e,enumerable:!0}):n,e));var _,g=hf(()=>{_={BUILD_TIME:"2023-09-19T07:46:36.000Z",VERSION:"0.9.6",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"0",BETA:"0",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { --immersive-translate-theme-underline-borderColor: #72ece9; --immersive-translate-theme-nativeUnderline-borderColor: #72ece9; --immersive-translate-theme-nativeDashed-borderColor: #72ece9; @@ -4234,14 +4234,14 @@ select.text-label {
-`,PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",OPTIONS_URL:"https://dash.immersivetranslate.com/",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",MOCK:"0",DEBUG:"0",INSTALL_FROM:"firefox_zip"}});var rg=hf((_o,au)=>{m();(function(){var e;function t(d){var b,C,h="",A=-1,S;if(d&&d.length)for(S=d.length;(A+=1)>>6&31,128|b&63):b<=65535?h+=String.fromCharCode(224|b>>>12&15,128|b>>>6&63,128|b&63):b<=2097151&&(h+=String.fromCharCode(240|b>>>18&7,128|b>>>12&63,128|b>>>6&63,128|b&63));return h}function n(d){var b,C,h,A,S,U=[],O;if(b=C=h=A=S=0,d&&d.length)for(O=d.length,d+="";b191&&h<224?(A=d.charCodeAt(b+1),U[C]=String.fromCharCode((h&31)<<6|A&63),b+=2):(A=d.charCodeAt(b+1),S=d.charCodeAt(b+2),U[C]=String.fromCharCode((h&15)<<12|(A&63)<<6|S&63),b+=3);return U.join("")}function a(d,b){var C=(d&65535)+(b&65535),h=(d>>16)+(b>>16)+(C>>16);return h<<16|C&65535}function r(d,b){return d<>>32-b}function u(d,b){for(var C=b?"0123456789ABCDEF":"0123456789abcdef",h="",A,S=0,U=d.length;S>>4&15)+C.charAt(A&15);return h}function o(d){var b,C=d.length,h="";for(b=0;b>>8&255);return h}function i(d){var b,C=d.length,h="";for(b=0;b>>8&255,d.charCodeAt(b)&255);return h}function l(d){var b,C=d.length*32,h="";for(b=0;b>5]>>>24-b%32&255);return h}function c(d){var b,C=d.length*32,h="";for(b=0;b>5]>>>b%32&255);return h}function s(d){var b,C=d.length*8,h=Array(d.length>>2),A=h.length;for(b=0;b>5]|=(d.charCodeAt(b/8)&255)<>2),A=h.length;for(b=0;b>5]|=(d.charCodeAt(b/8)&255)<<24-b%32;return h}function p(d,b){var C=b.length,h=Array(),A,S,U,O,y,T,k,v;for(T=Array(Math.ceil(d.length/2)),O=T.length,A=0;A0;){for(y=Array(),U=0,A=0;A0||S>0)&&(y[y.length]=S);h[h.length]=U,T=y}for(k="",A=h.length-1;A>=0;A--)k+=b.charAt(h[A]);for(v=Math.ceil(d.length*8/(Math.log(b.length)/Math.log(2))),A=k.length;Ad.length*8?h+=b:h+=C.charAt(O>>>6*(3-U)&63);return h}e={VERSION:"1.0.6",Base64:function(){var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b="=",C=!1,h=!0;this.encode=function(A){var S,U,O,y="";for(b=b||"=",A=h?t(A):A,len=A.length,S=0;Slen*8?y+=b:y+=d.charAt(O>>>6*(3-U)&63);return y},this.decode=function(A){var S,U,O,y,T,k,v,E,R,F,w="",B=[];if(!A)return A;S=F=0,A=A.replace(new RegExp("\\"+b,"gi"),"");do T=d.indexOf(A.charAt(S++)),k=d.indexOf(A.charAt(S++)),v=d.indexOf(A.charAt(S++)),E=d.indexOf(A.charAt(S++)),R=T<<18|k<<12|v<<6|E,U=R>>16&255,O=R>>8&255,y=R&255,F+=1,v===64?B[F]=String.fromCharCode(U):E===64?B[F]=String.fromCharCode(U,O):B[F]=String.fromCharCode(U,O,y);while(S>>8^C;return(b^-1)>>>0},MD5:function(d){var b=d&&typeof d.uppercase=="boolean"?d.uppercase:!1,C=d&&typeof d.pad=="string"?d.pad:"=",h=d&&typeof d.utf8=="boolean"?d.utf8:!0;this.hex=function(E){return u(A(E,h),b)},this.b64=function(E){return f(A(E),C)},this.any=function(E,R){return p(A(E,h),R)},this.raw=function(E){return A(E,h)},this.hex_hmac=function(E,R){return u(S(E,R),b)},this.b64_hmac=function(E,R){return f(S(E,R),C)},this.any_hmac=function(E,R,F){return p(S(E,R),F)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(E){return typeof E=="boolean"&&(b=E),this},this.setPad=function(E){return C=E||C,this},this.setUTF8=function(E){return typeof E=="boolean"&&(h=E),this};function A(E){return E=h?t(E):E,c(U(s(E),E.length*8))}function S(E,R){var F,w,B,I,N;for(E=h?t(E):E,R=h?t(R):R,F=s(E),F.length>16&&(F=U(F,E.length*8)),w=Array(16),B=Array(16),N=0;N<16;N+=1)w[N]=F[N]^909522486,B[N]=F[N]^1549556828;return I=U(w.concat(s(R)),512+R.length*8),c(U(B.concat(I),512+128))}function U(E,R){var F,w,B,I,N,P=1732584193,x=-271733879,D=-1732584194,M=271733878;for(E[R>>5]|=128<>>9<<4)+14]=R,F=0;F16&&(v=U(v,T.length*8)),E=Array(16),R=Array(16),F=0;F<16;F+=1)E[F]=v[F]^909522486,R[F]=v[F]^1549556828;return w=U(E.concat(g(k)),512+k.length*8),l(U(R.concat(w),512+160))}function U(T,k){var v,E,R,F,w,B,I,N,P=Array(80),x=1732584193,D=-271733879,M=-1732584194,q=271733878,j=-1009589776;for(T[k>>5]|=128<<24-k%32,T[(k+64>>9<<4)+15]=k,v=0;v16&&(j=P(j,x.length*8));q<16;q+=1)$[q]=j[q]^909522486,z[q]=j[q]^1549556828;return M=P($.concat(g(D)),512+D.length*8),l(P(z.concat(M),512+256))}function O(x,D){return x>>>D|x<<32-D}function y(x,D){return x>>>D}function T(x,D,M){return x&D^~x&M}function k(x,D,M){return x&D^x&M^D&M}function v(x){return O(x,2)^O(x,13)^O(x,22)}function E(x){return O(x,6)^O(x,11)^O(x,25)}function R(x){return O(x,7)^O(x,18)^y(x,3)}function F(x){return O(x,17)^O(x,19)^y(x,10)}function w(x){return O(x,28)^O(x,34)^O(x,39)}function B(x){return O(x,14)^O(x,18)^O(x,41)}function I(x){return O(x,1)^O(x,8)^y(x,7)}function N(x){return O(x,19)^O(x,61)^y(x,6)}A=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function P(x,D){var M=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],q=new Array(64),j,$,z,ae,J,Y,pe,fe,ue,G,ie,me;for(x[D>>5]|=128<<24-D%32,x[(D+64>>9<<4)+15]=D,ue=0;ue32&&(x=O(x,B.length*8));P<32;P+=1)D[P]=x[P]^909522486,M[P]=x[P]^1549556828;return N=O(D.concat(g(I)),1024+I.length*8),l(O(M.concat(N),1024+512))}function O(B,I){var N,P,x,D=new Array(80),M=new Array(16),q=[new y(1779033703,-205731576),new y(-1150833019,-2067093701),new y(1013904242,-23791573),new y(-1521486534,1595750129),new y(1359893119,-1377402159),new y(-1694144372,725511199),new y(528734635,-79577749),new y(1541459225,327033209)],j=new y(0,0),$=new y(0,0),z=new y(0,0),ae=new y(0,0),J=new y(0,0),Y=new y(0,0),pe=new y(0,0),fe=new y(0,0),ue=new y(0,0),G=new y(0,0),ie=new y(0,0),me=new y(0,0),ce=new y(0,0),ye=new y(0,0),Se=new y(0,0),xe=new y(0,0),Z=new y(0,0);for(A===void 0&&(A=[new y(1116352408,-685199838),new y(1899447441,602891725),new y(-1245643825,-330482897),new y(-373957723,-2121671748),new y(961987163,-213338824),new y(1508970993,-1241133031),new y(-1841331548,-1357295717),new y(-1424204075,-630357736),new y(-670586216,-1560083902),new y(310598401,1164996542),new y(607225278,1323610764),new y(1426881987,-704662302),new y(1925078388,-226784913),new y(-2132889090,991336113),new y(-1680079193,633803317),new y(-1046744716,-815192428),new y(-459576895,-1628353838),new y(-272742522,944711139),new y(264347078,-1953704523),new y(604807628,2007800933),new y(770255983,1495990901),new y(1249150122,1856431235),new y(1555081692,-1119749164),new y(1996064986,-2096016459),new y(-1740746414,-295247957),new y(-1473132947,766784016),new y(-1341970488,-1728372417),new y(-1084653625,-1091629340),new y(-958395405,1034457026),new y(-710438585,-1828018395),new y(113926993,-536640913),new y(338241895,168717936),new y(666307205,1188179964),new y(773529912,1546045734),new y(1294757372,1522805485),new y(1396182291,-1651133473),new y(1695183700,-1951439906),new y(1986661051,1014477480),new y(-2117940946,1206759142),new y(-1838011259,344077627),new y(-1564481375,1290863460),new y(-1474664885,-1136513023),new y(-1035236496,-789014639),new y(-949202525,106217008),new y(-778901479,-688958952),new y(-694614492,1432725776),new y(-200395387,1467031594),new y(275423344,851169720),new y(430227734,-1194143544),new y(506948616,1363258195),new y(659060556,-544281703),new y(883997877,-509917016),new y(958139571,-976659869),new y(1322822218,-482243893),new y(1537002063,2003034995),new y(1747873779,-692930397),new y(1955562222,1575990012),new y(2024104815,1125592928),new y(-2067236844,-1578062990),new y(-1933114872,442776044),new y(-1866530822,593698344),new y(-1538233109,-561857047),new y(-1090935817,-1295615723),new y(-965641998,-479046869),new y(-903397682,-366583396),new y(-779700025,566280711),new y(-354779690,-840897762),new y(-176337025,-294727304),new y(116418474,1914138554),new y(174292421,-1563912026),new y(289380356,-1090974290),new y(460393269,320620315),new y(685471733,587496836),new y(852142971,1086792851),new y(1017036298,365543100),new y(1126000580,-1676669620),new y(1288033470,-885112138),new y(1501505948,-60457430),new y(1607167915,987167468),new y(1816402316,1246189591)]),P=0;P<80;P+=1)D[P]=new y(0,0);for(B[I>>5]|=128<<24-(I&31),B[(I+128>>10<<5)+31]=I,x=B.length,P=0;P>>N|I.h<<32-N,B.h=I.h>>>N|I.l<<32-N}function v(B,I,N){B.l=I.h>>>N|I.l<<32-N,B.h=I.l>>>N|I.h<<32-N}function E(B,I,N){B.l=I.l>>>N|I.h<<32-N,B.h=I.h>>>N}function R(B,I,N){var P=(I.l&65535)+(N.l&65535),x=(I.l>>>16)+(N.l>>>16)+(P>>>16),D=(I.h&65535)+(N.h&65535)+(x>>>16),M=(I.h>>>16)+(N.h>>>16)+(D>>>16);B.l=P&65535|x<<16,B.h=D&65535|M<<16}function F(B,I,N,P,x){var D=(I.l&65535)+(N.l&65535)+(P.l&65535)+(x.l&65535),M=(I.l>>>16)+(N.l>>>16)+(P.l>>>16)+(x.l>>>16)+(D>>>16),q=(I.h&65535)+(N.h&65535)+(P.h&65535)+(x.h&65535)+(M>>>16),j=(I.h>>>16)+(N.h>>>16)+(P.h>>>16)+(x.h>>>16)+(q>>>16);B.l=D&65535|M<<16,B.h=q&65535|j<<16}function w(B,I,N,P,x,D){var M=(I.l&65535)+(N.l&65535)+(P.l&65535)+(x.l&65535)+(D.l&65535),q=(I.l>>>16)+(N.l>>>16)+(P.l>>>16)+(x.l>>>16)+(D.l>>>16)+(M>>>16),j=(I.h&65535)+(N.h&65535)+(P.h&65535)+(x.h&65535)+(D.h&65535)+(q>>>16),$=(I.h>>>16)+(N.h>>>16)+(P.h>>>16)+(x.h>>>16)+(D.h>>>16)+(j>>>16);B.l=M&65535|q<<16,B.h=j&65535|$<<16}},RMD160:function(d){var b=d&&typeof d.uppercase=="boolean"?d.uppercase:!1,C=d&&typeof d.pad=="string"?d.pa:"=",h=d&&typeof d.utf8=="boolean"?d.utf8:!0,A=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],S=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],U=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],O=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(w){return u(y(w,h))},this.b64=function(w){return f(y(w,h),C)},this.any=function(w,B){return p(y(w,h),B)},this.raw=function(w){return y(w,h)},this.hex_hmac=function(w,B){return u(T(w,B))},this.b64_hmac=function(w,B){return f(T(w,B),C)},this.any_hmac=function(w,B,I){return p(T(w,B),I)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(w){return typeof w=="boolean"&&(b=w),this},this.setPad=function(w){return typeof w<"u"&&(C=w),this},this.setUTF8=function(w){return typeof w=="boolean"&&(h=w),this};function y(w){return w=h?t(w):w,k(v(s(w),w.length*8))}function T(w,B){w=h?t(w):w,B=h?t(B):B;var I,N,P=s(w),x=Array(16),D=Array(16);for(P.length>16&&(P=v(P,w.length*8)),I=0;I<16;I+=1)x[I]=P[I]^909522486,D[I]=P[I]^1549556828;return N=v(x.concat(s(B)),512+B.length*8),k(v(D.concat(N),512+160))}function k(w){var B,I="",N=w.length*32;for(B=0;B>5]>>>B%32&255);return I}function v(w,B){var I,N,P,x,D=1732584193,M=4023233417,q=2562383102,j=271733878,$=3285377520,z,ae,J,Y,pe,fe,ue,G,ie,me;for(w[B>>5]|=128<>>9<<4)+14]=B,x=w.length,P=0;Pfunction(){return t||(0,e[bc(e)[0]])((t={exports:{}}).exports,t),t.exports},kf=(e,t)=>{for(var n in t)Ii(e,n,{get:t[n],enumerable:!0})},Oi=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of bc(t))!vf.call(e,r)&&r!==n&&Ii(e,r,{get:()=>t[r],enumerable:!(a=Cf(t,r))||a.enumerable});return e},Sf=(e,t,n)=>(Oi(e,t,"default"),n&&Oi(n,t,"default")),yc=(e,t,n)=>(n=e!=null?Tf(wf(e)):{},Oi(t||!e||!e.__esModule?Ii(n,"default",{value:e,enumerable:!0}):n,e)),xc=Af({"../esmd/npm/webextension-polyfill@0.10.0/node_modules/webextension-polyfill/dist/browser-polyfill.js"(e,t){(function(n,a){if(typeof define=="function"&&define.amd)define("webextension-polyfill",["module"],a);else if(typeof e<"u")a(t);else{var r={exports:{}};a(r),n.browser=r.exports}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:e,function(n){"use strict";if(!globalThis.chrome?.runtime?.id)throw new Error("This script should only be loaded in a browser extension.");if(typeof globalThis.browser>"u"||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){let a="The message port closed before a response was received.",r=u=>{let o={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(Object.keys(o).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class i extends WeakMap{constructor(T,k=void 0){super(k),this.createItem=T}get(T){return this.has(T)||this.set(T,this.createItem(T)),super.get(T)}}let l=y=>y&&typeof y=="object"&&typeof y.then=="function",c=(y,T)=>(...k)=>{u.runtime.lastError?y.reject(new Error(u.runtime.lastError.message)):T.singleCallbackArg||k.length<=1&&T.singleCallbackArg!==!1?y.resolve(k[0]):y.resolve(k)},s=y=>y==1?"argument":"arguments",g=(y,T)=>function(v,...E){if(E.lengthT.maxArgs)throw new Error(`Expected at most ${T.maxArgs} ${s(T.maxArgs)} for ${y}(), got ${E.length}`);return new Promise((R,F)=>{if(T.fallbackToNoCallback)try{v[y](...E,c({resolve:R,reject:F},T))}catch{v[y](...E),T.fallbackToNoCallback=!1,T.noCallback=!0,R()}else T.noCallback?(v[y](...E),R()):v[y](...E,c({resolve:R,reject:F},T))})},p=(y,T,k)=>new Proxy(T,{apply(v,E,R){return k.call(E,y,...R)}}),f=Function.call.bind(Object.prototype.hasOwnProperty),d=(y,T={},k={})=>{let v=Object.create(null),E={has(F,w){return w in y||w in v},get(F,w,B){if(w in v)return v[w];if(!(w in y))return;let I=y[w];if(typeof I=="function")if(typeof T[w]=="function")I=p(y,y[w],T[w]);else if(f(k,w)){let N=g(w,k[w]);I=p(y,y[w],N)}else I=I.bind(y);else if(typeof I=="object"&&I!==null&&(f(T,w)||f(k,w)))I=d(I,T[w],k[w]);else if(f(k,"*"))I=d(I,T[w],k["*"]);else return Object.defineProperty(v,w,{configurable:!0,enumerable:!0,get(){return y[w]},set(N){y[w]=N}}),I;return v[w]=I,I},set(F,w,B,I){return w in v?v[w]=B:y[w]=B,!0},defineProperty(F,w,B){return Reflect.defineProperty(v,w,B)},deleteProperty(F,w){return Reflect.deleteProperty(v,w)}},R=Object.create(y);return new Proxy(R,E)},b=y=>({addListener(T,k,...v){T.addListener(y.get(k),...v)},hasListener(T,k){return T.hasListener(y.get(k))},removeListener(T,k){T.removeListener(y.get(k))}}),C=new i(y=>typeof y!="function"?y:function(k){let v=d(k,{},{getContent:{minArgs:0,maxArgs:0}});y(v)}),h=new i(y=>typeof y!="function"?y:function(k,v,E){let R=!1,F,w=new Promise(P=>{F=function(x){R=!0,P(x)}}),B;try{B=y(k,v,F)}catch(P){B=Promise.reject(P)}let I=B!==!0&&l(B);if(B!==!0&&!I&&!R)return!1;let N=P=>{P.then(x=>{E(x)},x=>{let D;x&&(x instanceof Error||typeof x.message=="string")?D=x.message:D="An unexpected error occurred",E({__mozWebExtensionPolyfillReject__:!0,message:D})}).catch(x=>{})};return N(I?B:w),!0}),A=({reject:y,resolve:T},k)=>{u.runtime.lastError?u.runtime.lastError.message===a?T():y(new Error(u.runtime.lastError.message)):k&&k.__mozWebExtensionPolyfillReject__?y(new Error(k.message)):T(k)},S=(y,T,k,...v)=>{if(v.lengthT.maxArgs)throw new Error(`Expected at most ${T.maxArgs} ${s(T.maxArgs)} for ${y}(), got ${v.length}`);return new Promise((E,R)=>{let F=A.bind(null,{resolve:E,reject:R});v.push(F),k.sendMessage(...v)})},U={devtools:{network:{onRequestFinished:b(C)}},runtime:{onMessage:b(h),onMessageExternal:b(h),sendMessage:S.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:S.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},O={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return o.privacy={network:{"*":O},services:{"*":O},websites:{"*":O}},d(u,U,o)};n.exports=r(chrome)}else n.exports=globalThis.browser})}}),Ec={};kf(Ec,{default:()=>Tu});var Df=yc(xc());Sf(Ec,yc(xc()));var{default:hc,...Lf}=Df,Tu=hc!==void 0?hc:Lf;globalThis.immersiveTranslateBrowserAPI=Tu;m();m();m();var Su,Ae,Ac,Pf,Ar,Tc,kc,vu={},Sc=[],Mf=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function $n(e,t){for(var n in t)e[n]=t[n];return e}function Dc(e){var t=e.parentNode;t&&t.removeChild(e)}function ji(e,t,n){var a,r,u,o={};for(u in t)u=="key"?a=t[u]:u=="ref"?r=t[u]:o[u]=t[u];if(arguments.length>2&&(o.children=arguments.length>3?Su.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(u in e.defaultProps)o[u]===void 0&&(o[u]=e.defaultProps[u]);return Cu(e,o,a,r,null)}function Cu(e,t,n,a,r){var u={type:e,props:t,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++Ac};return r==null&&Ae.vnode!=null&&Ae.vnode(u),u}function qt(e){return e.children}function wu(e,t){this.props=e,this.context=t}function Na(e,t){if(t==null)return e.__?Na(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?Cu(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=n,f.__b=n.__b+1,(p=h[s])===null||p&&f.key==p.key&&f.type===p.type)h[s]=void 0;else for(g=0;g=n.__.length&&n.__.push({__V:Lu}),n.__[e]}function Te(e){return kr=1,Rf($c,e)}function Rf(e,t,n){var a=Mu(Sr++,2);if(a.t=e,!a.__c&&(a.__=[n?n(t):$c(void 0,t),function(u){var o=a.__N?a.__N[0]:a.__[0],i=a.t(o,u);o!==i&&(a.__N=[i,a.__[1]],a.__c.setState({}))}],a.__c=Qe,!Qe.u)){Qe.u=!0;var r=Qe.shouldComponentUpdate;Qe.shouldComponentUpdate=function(u,o,i){if(!a.__c.__H)return!0;var l=a.__c.__H.__.filter(function(s){return s.__c});if(l.every(function(s){return!s.__N}))return!r||r.call(this,u,o,i);var c=!1;return l.forEach(function(s){if(s.__N){var g=s.__[0];s.__=s.__N,s.__N=void 0,g!==s.__[0]&&(c=!0)}}),!!c&&(!r||r.call(this,u,o,i))}}return a.__N||a.__}function Ne(e,t){var n=Mu(Sr++,3);!Ae.__s&&Wc(n.__H,t)&&(n.__=e,n.i=t,Qe.__H.__h.push(n))}function Fu(e){return kr=5,qi(function(){return{current:e}},[])}function qi(e,t){var n=Mu(Sr++,7);return Wc(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Kn(e,t){return kr=8,qi(function(){return e},t)}function _u(e){var t=Qe.context[e.__c],n=Mu(Sr++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Qe)),t.props.value):e.__}function Of(){for(var e;e=qc.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Pu),e.__H.__h.forEach(Hi),e.__H.__h=[]}catch(t){e.__H.__h=[],Ae.__e(t,e.__v)}}Ae.__b=function(e){typeof e.type!="function"||e.o||e.type===qt?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),Qe=null,Ic&&Ic(e)},Ae.__r=function(e){Nc&&Nc(e),Sr=0;var t=(Qe=e.__c).__H;t&&(zi===Qe?(t.__h=[],Qe.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Lu,n.__N=n.i=void 0})):(t.__h.forEach(Pu),t.__h.forEach(Hi),t.__h=[])),zi=Qe},Ae.diffed=function(e){jc&&jc(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(qc.push(t)!==1&&Oc===Ae.requestAnimationFrame||((Oc=Ae.requestAnimationFrame)||If)(Of)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Lu&&(n.__=n.__V),n.i=void 0,n.__V=Lu})),zi=Qe=null},Ae.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Pu),n.__h=n.__h.filter(function(a){return!a.__||Hi(a)})}catch(a){t.some(function(r){r.__h&&(r.__h=[])}),t=[],Ae.__e(a,n.__v)}}),Uc&&Uc(e,t)},Ae.unmount=function(e){zc&&zc(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(a){try{Pu(a)}catch(r){t=r}}),n.__H=void 0,t&&Ae.__e(t,n.__v))};var Hc=typeof requestAnimationFrame=="function";function If(e){var t,n=function(){clearTimeout(a),Hc&&cancelAnimationFrame(t),setTimeout(e)},a=setTimeout(n,100);Hc&&(t=requestAnimationFrame(n))}function Pu(e){var t=Qe,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Qe=t}function Hi(e){var t=Qe;e.__c=e.__(),Qe=t}function Wc(e,t){return!e||e.length!==t.length||t.some(function(n,a){return n!==e[a]})}function $c(e,t){return typeof t=="function"?t(e):t}m();m();function Bu(e,t,n){let a=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),a=t!=="auto"?n[t].matches:[];let r={},u=Object.keys(n);for(let c of u){let g=n[c].matches;for(let p of g)r[p]||(r[p]=[]),r[p].push(c)}let o=r[e];if(o&&o.length>0)for(let c of o)n[c].matches.indexOf(e)>-1&&(n[c]={...n[c],matches:n[c].matches.filter(g=>g!==e)});let i=new Set(a);if(t==="auto")return{...n};i.add(e);let l=Array.from(i);return{...n,[t]:{...n[t],matches:l}}}m();m();function Be(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():_}var Ee=Be();function he(){return Ee.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function Mn(){return Ee.PROD==="1"}function Fn(){return Ee.PROD_API==="1"}function Kc(){return Ee.HAS_CSP_ERROR=="1"}function At(){if(Ee.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function Ru(){return typeof Deno<"u"}var y5=Be().PROD==="1",ja=Be().PROD!=="1";function Ou(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}m();m();m();var Wi=/iPhone/i,Gc=/iPod/i,Vc=/iPad/i,Yc=/\biOS-universal(?:.+)Mac\b/i,$i=/\bAndroid(?:.+)Mobile\b/i,Jc=/Android/i,Ua=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,Iu=/Silk/i,_n=/Windows Phone/i,Qc=/\bWindows(?:.+)ARM\b/i,Zc=/BlackBerry/i,Xc=/BB10/i,e4=/Opera Mini/i,t4=/\b(CriOS|Chrome)(?:.+)Mobile/i,n4=/Mobile(?:.+)Firefox\b/i,a4=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function Nf(e){return t=>t.test(e)}function fa(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,a=n.split("[FBAN");typeof a[1]<"u"&&(n=a[0]),a=n.split("Twitter"),typeof a[1]<"u"&&(n=a[0]);let r=Nf(n),u={apple:{phone:r(Wi)&&!r(_n),ipod:r(Gc),tablet:!r(Wi)&&(r(Vc)||a4(t))&&!r(_n),universal:r(Yc),device:(r(Wi)||r(Gc)||r(Vc)||r(Yc)||a4(t))&&!r(_n)},amazon:{phone:r(Ua),tablet:!r(Ua)&&r(Iu),device:r(Ua)||r(Iu)},android:{phone:!r(_n)&&r(Ua)||!r(_n)&&r($i),tablet:!r(_n)&&!r(Ua)&&!r($i)&&(r(Iu)||r(Jc)),device:!r(_n)&&(r(Ua)||r(Iu)||r($i)||r(Jc))||r(/\bokhttp\b/i)},windows:{phone:r(_n),tablet:r(Qc),device:r(_n)||r(Qc)},other:{blackberry:r(Zc),blackberry10:r(Xc),opera:r(e4),firefox:r(n4),chrome:r(t4),device:r(Zc)||r(Xc)||r(e4)||r(n4)||r(t4)},any:!1,phone:!1,tablet:!1};return u.any=u.apple.device||u.android.device||u.windows.device||u.other.device,u.phone=u.apple.phone||u.android.phone||u.windows.phone,u.tablet=u.apple.tablet||u.android.tablet||u.windows.tablet,u}var Ki="DENO",Gi="CHROME",Nu="FIREFOX";function jf(e){let t=Gi;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=Nu:/deno/i.test(n)&&(t=Ki)}catch{}return e===Gi&&t===Gi||e===Nu&&t===Nu||e===Ki&&t===Ki}function r4(){return typeof Deno<"u"}function za(){return jf(Nu)}function u4(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function Dr(){return!!globalThis.matchMedia("(pointer:fine)").matches}m();var o4={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},i4={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:o4,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}}},tabs:{onUpdated:o4,query:()=>{},sendMessage:()=>{}}};var ee;r4()?ee=i4:ee=globalThis.immersiveTranslateBrowserAPI;m();var s4={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",curentPlan:"\u5F53\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52A8\u7EED\u671F",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",sponsorLabel:"$1 \u8D77\u8D5E\u52A9\u5F00\u53D1\u8005",help:"\u5E2E\u52A9",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D\uFF0C\u518D\u70B9\u51FB\u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D\u5373\u53EF\u8BBE\u7F6E",browserShortcutsNoteForChrome:"\u7C7BChrome \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762\uFF0C\u5728`\u7BA1\u7406\u5FEB\u6377\u952E`\u9762\u677F(`chrome://extensions/shortcuts`)\u8BBE\u7F6E\uFF0C\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8DF3\u8F6C\u5230\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E\u683C\u5F0F\u4E3A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1: \u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1 & PDF\u6587\u6863\u7FFB\u8BD1","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7F51\u9875\u53CC\u8BED\u7FFB\u8BD1\u6269\u5C55\uFF0C\u540C\u65F6\u652F\u6301 PDF \u7FFB\u8BD1\uFF0C\u53CC\u8BED Epub \u7535\u5B50\u4E66\u5236\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u817E\u8BAF\u7FFB\u8BD1\u7B49\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\uFF0C\u514D\u8D39\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8BD1\u5E76\u9690\u85CF\u539F\u6587/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.toggleTranslationMask":"\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.donateContext":"\u4E86\u89E3\u8D5E\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5219\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875(\u4EC5\u8BD1\u6587)/\u663E\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7","fingers.0":"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478",mouseHoldKey:"+ {key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoverHoldKey:"\u9F20\u6807\u60AC\u505C\u540C\u65F6\u6309\u4E0B\u5FEB\u6377\u952E\u7FFB\u8BD1\u6BB5\u843D","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u6587\u6863",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",goAdvancedSettings:"\u53BB\u8FDB\u9636\u8BBE\u7F6E\u9875",goAdvancedInterfaceSettings:"\u53BB\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u8BBE\u7F6E\u9875\u9762",advanced:"\u8FDB\u9636\u8BBE\u7F6E",advancedDescription:"\u4E00\u822C\u65E0\u9700\u8BBE\u7F6E\uFF0C\u4FDD\u6301\u9ED8\u8BA4\u5373\u53EF\u3002\u4EC5\u5BF9\u4E8E\u66F4\u4E13\u4E1A\u7684\u7528\u6237\uFF0C\u63D0\u4F9B\u66F4\u4E2A\u6027\u5316\u7684\u8BBE\u7F6E\u9879\u3002",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00","display both the original text and the translation":"\u540C\u65F6\u663E\u793A\u539F\u6587\u548C\u8BD1\u6587","keyboard shortcuts":"\u952E\u76D8\u5FEB\u6377\u952E",modify:"\u4FEE\u6539\u5FEB\u6377\u952E",reset:"\u91CD\u7F6E",close:"\u5173\u95ED",homepage:"\u4E3B\u9875",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",changeToOnlyTranslationMode:"\u5207\u6362\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u5207\u6362\u4E3A\u53CC\u8BED\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",unknownError:"\u672A\u77E5\u9519\u8BEF",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",needActionForOptions:"(\u9700\u8BBE\u7F6E)",translationEngine:"\u5F15\u64CE\u9009\u9879",sourceLanguage:"\u539F\u6587\u8BED\u8A00",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",forThisSite:"\u5F53\u524D\u7F51\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1 {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8BD1 {language}",alwaysTranslateSomeSite:"\u603B\u662F\u7FFB\u8BD1 {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8BD1 {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u6DFB\u52A0",default:"\u9ED8\u8BA4",forThisLanguage:"\u9488\u5BF9\u8BE5\u8BED\u8A00\uFF1A","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91","translate other languages into specific language":"\u5C06\u5176\u4ED6\u8BED\u8A00\u7FFB\u8BD1\u4E3A\u4F60\u8BBE\u7F6E\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1",language:"\u8BED\u8A00","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",Error:"\u9519\u8BEF",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",interface:"\u754C\u9762\u8BBE\u7F6E",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8BD1\u9875\u9762\u6807\u9898","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1",enableUserscriptPagePopup:"\u5728\u9875\u9762\u4E0A\u663E\u793A\u60AC\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528\u5FEB\u6377\u952E/{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8BD1\u6587\u6837\u5F0F",currentUrl:"\u5F53\u524D\u7F51\u5740",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664","languages.auto":"\u81EA\u52A8\u68C0\u6D4B",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",upload:"\u4E0A\u4F20",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",download:"\u4E0B\u8F7D",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",deleteFail:"\u5220\u9664\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",backupToCloudDescription:"\u624B\u52A8\u4E0A\u4F20\u6216\u6062\u590D\u5907\u4EFD\u6587\u4EF6\uFF0C\u6700\u591A\u5141\u8BB83\u4E2A\u4E0D\u540C\u7684\u5907\u4EFD",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",updatedAt:"\u66F4\u65B0\u4E8E {date}",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u9891\u9053",joinTelegramChannel:"\u5173\u6CE8 Telegram \u9891\u9053\u83B7\u53D6\u6700\u65B0\u66F4\u65B0",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",autoSync:"\u81EA\u52A8\u5B9A\u65F6\u540C\u6B65",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863","edit border color":"\u4FEE\u6539\u8FB9\u6846\u989C\u8272",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",enableSubtitle:"\u5F00\u542F\u5B57\u5E55\u7FFB\u8BD1",enableSubtitleDescription:"\u9488\u5BF9 youtube \u7B49\u7F51\u7AD9\u7684\u5B57\u5E55\u533A\u57DF\u5F00\u542F\u7FFB\u8BD1",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",enableSearchEnhancement:"\u542F\u7528\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A",enableSearchEnhancementDescription:"\u5F00\u542F\u540E\uFF0C\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\u793E\u533A\uFF09\u53F3\u8FB9\u680F\u81EA\u52A8\u663E\u793A\u5BF9\u5E94\u82F1\u6587\u5173\u952E\u8BCD\u7684\u201C\u8C37\u6B4C\u65B0\u95FB\u201D\u641C\u7D22\u7ED3\u679C\u3002",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerMinute":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u5206\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u8350\uFF09, \u5C06\u4F1A\u5728\u5355\u72EC\u4F5C\u4E3A\u4E00\u6BB5\u53D1\u9001\u7ED9 OpenAI","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740",enabledExtension:"\u542F\u7528\u6269\u5C55",clickToDisableExtension:"\u70B9\u51FB\u7981\u7528\u6269\u5C55",clickToEnableExtension:"\u70B9\u51FB\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",modifyMouseHoverKey:"\u4FEE\u6539\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u8BBE\u7F6E",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",disableTint:"* \u4F60\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u542F\u7528\u3002",searchEnhancementNotes:"\u6211\u4EEC\u53D1\u73B0\uFF0C\u4E2D\u6587\u5173\u952E\u8BCD\u548C\u82F1\u6587\u5173\u952E\u8BCD\u7684\u65B0\u95FB\u7ED3\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u542F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u529F\u80FD\u540E\uFF0C\u6211\u4EEC\u4F1A\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\u7F51\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52A8\u7528\u82F1\u6587\u4E3A\u4F60\u641C\u7D22\u540C\u6837\u7684\u5173\u952E\u8BCD\u5E76\u5C55\u793A\u5728\u53F3\u4FA7\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8BE5\u529F\u80FD\u7684\u8BDD\uFF0C\u53EF\u4EE5\u9009\u62E9\u7981\u7528\u5B83\u3002",option:"\u8BBE\u7F6E",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",needLoginAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u81EA\u5B9A\u4E49)",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",onetime_7day:"7 \u5929\u4F53\u9A8C\u5305",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradePlan:"\u70B9\u6B64\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL \u548C OpenAI \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8BD1",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u8BBE\u7F6E\u5176\u4ED6\u5FEB\u6377\u952E\u6765\u89E6\u53D1\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1"};var l4={nologin:"\u672A\u767B\u9304",login:"\u767B\u9304",manageAccount:"\u7BA1\u7406\u8CEC\u6236",logout:"\u9000\u51FA",curentPlan:"\u7576\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u671F",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u64CA\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u8AAA\u660E",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u9644\u52A0\u5143\u4EF6\u7BA1\u7406\u9801\u9762 \u300Cabout:addons\u300D\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u5716\u793A\u300D\uFF0C\u518D\u9EDE\u9078\u300C\u7BA1\u7406\u64F4\u5145\u5957\u4EF6\u5FEB\u901F\u9375\u300D\u5373\u53EF\u8A2D\u5B9A",browserShortcutsNoteForChrome:"Chromium \u6838\u5FC3\u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u64F4\u5145\u529F\u80FD\u7BA1\u7406\u9801\u9762\uFF0C\u5728\u300C\u9375\u76E4\u5FEB\u901F\u9375\u300D\u9801\u9762(chrome://extensions/shortcuts)\u8A2D\u5B9A\uFF0C\u9EDE\u9078\u4E0B\u65B9\u6309\u9215\u524D\u5F80\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u901F\u9375\u683C\u5F0F\u70BA\uFF1A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F: \u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F & PDF\u6587\u6A94\u7FFB\u8B6F","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7DB2\u9801\u96D9\u8A9E\u7FFB\u8B6F\u64F4\u5C55\uFF0C\u540C\u6642\u652F\u6301 PDF \u7FFB\u8B6F\uFF0C\u96D9\u8A9E Epub \u96FB\u5B50\u66F8\u88FD\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u9A30\u8A0A\u7FFB\u8B6F\u7B49\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF0C\u514D\u8CBB\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8B6F\u4E26\u96B1\u85CF\u539F\u6587/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.toggleTranslationMask":"\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.donateContext":"\u4E86\u89E3\u8D0A\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u5247\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u6642\u89F8\u78B0\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801(\u50C5\u8B6F\u6587)/\u986F\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304","fingers.0":"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478",mouseHoldKey:"+ {key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u6377\u9375(\u6253\u958B\u8A2D\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoverHoldKey:"\u9F20\u6A19\u6ED1\u904E\u540C\u6642\u6309\u4E0B X \u9375\u7FFB\u8B6F\u6BB5\u843D","mouse-translate":"\u9F20\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",goAdvancedSettings:"\u524D\u5F80\u9032\u968E\u8A2D\u5B9A\u9801\u9762",goAdvancedInterfaceSettings:"\u524D\u5F80\u81EA\u8A02\u8A2D\u5B9A\u9801\u9762",advanced:"\u9032\u968E\u8A2D\u5B9A",advancedDescription:"\u6B63\u5E38\u60C5\u6CC1\u7121\u9700\u8A2D\u5B9A\uFF0C\u4FDD\u6301\u9810\u8A2D\u5373\u53EF\u3002\u50C5\u91DD\u5C0D\u66F4\u5C08\u696D\u7684\u4F7F\u7528\u8005\uFF0C\u63D0\u4F9B\u66F4\u500B\u4EBA\u5316\u7684\u8A2D\u5B9A\u9805\u76EE\u3002",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00","display both the original text and the translation":"\u540C\u6642\u986F\u793A\u539F\u6587\u548C\u8B6F\u6587","keyboard shortcuts":"\u9375\u76E4\u5FEB\u901F\u9375",modify:"\u8B8A\u66F4\u5FEB\u901F\u9375",reset:"\u91CD\u8A2D",close:"\u95DC\u9589",homepage:"\u9996\u9801",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",changeToOnlyTranslationMode:"\u5207\u63DB\u70BA\u50C5\u986F\u793A\u8B6F\u6587",changeToDualTranslationMode:"\u5207\u63DB\u70BA\u96D9\u8A9E\u7FFB\u8B6F",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:"\u672A\u77E5\u7684\u932F\u8AA4",canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u9078\u9805",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",needActionForOptions:"(\u9700\u8A2D\u5B9A)",translationEngine:"\u5F15\u64CE\u9078\u9805",sourceLanguage:"\u539F\u6587\u8A9E\u8A00",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",forThisSite:"\u7576\u524D\u7DB2\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8B6F {language}",alwaysTranslateSomeSite:"\u7E3D\u662F\u7FFB\u8B6F {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8B6F {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u65B0\u589E",default:"\u9810\u8A2D",forThisLanguage:"\u91DD\u5C0D\u8A72\u8A9E\u8A00\uFF1A","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F","translate other languages into specific language":"\u5C07\u5176\u5B83\u8A9E\u8A00\u7FFB\u8B6F\u70BA\u4F60\u8A2D\u5B9A\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9",language:"\u8A9E\u8A00","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",Error:"\u932F\u8AA4",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",interface:"\u4ECB\u9762\u8A2D\u5B9A",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65",syncToAccount:"\u540C\u6B65\u5230\u8CEC\u6236",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u8CEC\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u8A2D\u5099\u4E4B\u9593\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u8CEC\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u8CEC\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8B6F","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9E\u99AC\u905C\u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8B6F\u9801\u9762\u6A19\u984C","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F",enableUserscriptPagePopup:"\u5728\u9801\u9762\u4E0A\u986F\u793A\u61F8\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528\u5FEB\u901F\u9375/{touch}\u518D\u6B21\u986F\u793A\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5EFA\u8B70\u5C07\u672C\u8A2D\u5B9A\u9801\u9762\u52A0\u5165\u81F3\u6211\u7684\u6700\u611B","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8B6F\u6587\u6A23\u5F0F",currentUrl:"\u76EE\u524D\u7DB2\u5740",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6E96\u3002",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",upload:"\u4E0A\u50B3",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",download:"\u4E0B\u8F09",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",deleteFail:"\u522A\u9664\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",backupToCloudDescription:"\u624B\u52D5\u4E0A\u50B3\u6216\u9084\u539F\u5099\u4EFD\u6A94\u6848\uFF0C\u6700\u591A\u5141\u8A31 3 \u500B\u4E0D\u540C\u7684\u5099\u4EFD",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",updatedAt:"\u66F4\u65B0\u65BC {date}",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u4EEC\u7684<3>Twitter\uFF0C<4>Telegram \u983B\u9053\u4EE5\u53CA\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u90F5\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u983B\u9053",joinTelegramChannel:"\u95DC\u6CE8 Telegram \u983B\u9053\u77AD\u89E3\u66F4\u65B0\u8CC7\u8A0A",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",autoSync:"\u81EA\u52D5\u5B9A\u6642\u540C\u6B65",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6","edit border color":"\u8B8A\u66F4\u908A\u6846\u8272\u5F69",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",enableSubtitle:"\u958B\u555F\u5B57\u5E55\u7FFB\u8B6F",enableSubtitleDescription:"\u91DD\u5C0D youtube \u7B49\u7DB2\u7AD9\u7684\u5B57\u5E55\u5340\u57DF\u958B\u555F\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",enableSearchEnhancement:"\u958B\u555F\u641C\u7D22\u589E\u5F37",enableSearchEnhancementDescription:"\u4E2D\u6587\u641C\u7D22\u8C37\u6B4C\u6703\u5728\u53F3\u908A\u51FA\u73FE\u82F1\u6587\u7248\u8C37\u6B4C\u65B0\u805E",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerMinute":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u5206\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u4EFD\u50B3\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u85A6\uFF09, \u5C07\u6703\u5728\u55AE\u7368\u4F5C\u70BA\u4E00\u6BB5\u767C\u9001\u7D66 OpenAI","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u50B3\u9001\u767C\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",clickToDisableExtension:"\u9EDE\u9078\u505C\u7528\u5957\u4EF6",clickToEnableExtension:"\u9EDE\u9078\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u9F20\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u7F6E\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u5B57\u7B26\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8B58\u5225\u70BA\u89F8\u767C\u5B57\u7B26\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u7981\u7528\u78BA\u8A8D",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",disableTint:"* \u60A8\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u555F\u7528\u3002",searchEnhancementNotes:"\u6211\u5011\u767C\u73FE\uFF0C\u4E2D\u6587\u95DC\u9375\u8A5E\u548C\u82F1\u6587\u95DC\u9375\u8A5E\u7684\u65B0\u805E\u7D50\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u555F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u4FE1\u606F\u589E\u5F37\u529F\u80FD\u5F8C\uFF0C\u6211\u5011\u6703\u5728\u652F\u6301\u7684\u7DB2\u7AD9\uFF08\u8C37\u6B4C\u65B0\u805E\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u95DC\u9375\u8A5E\uFF09\uFF0C\u96EA\u7403\uFF0C\u6771\u65B9\u8CA1\u5BCC\u7DB2\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52D5\u7528\u82F1\u6587\u70BA\u4F60\u641C\u7D22\u540C\u6A23\u7684\u95DC\u9375\u8A5E\u4E26\u5C55\u793A\u5728\u53F3\u5074\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8A72\u529F\u80FD\u7684\u8A71\uFF0C\u53EF\u4EE5\u9078\u64C7\u7981\u7528\u5B83\u3002",option:"\u9078\u9805",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL \u548C OpenAI \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8B6F",currentAccount:"\u7576\u524D\u8CEC\u6236"};var c4={nologin:"Not logged in",login:"Login",manageAccount:"Manage Account",logout:"Logout",curentPlan:"Current Plan",endAt:"Expires",endAuto:"Auto Renew",lineBreakMaxTextCount:"Maximum number of characters allowed per sentence after line break","translate-pdf":"Click to translate PDF","noSupportTranslate-pdf":"The script is not supported, please use a plugin.","translate-firefox-local-pdf":"Click to upload PDF",enableLineBreak:"Whether to turn on automatic line wrapping for long paragraphs",sponsorLabel:"Sponsoring developers from $1 (monthly or one-time)",help:"Help",browserShortcutsNoteForFirefox:`To modify the shortcut key in Firefox browser, you need to open the extension management page 'about: addons', then click "Settings", and then click "Management shortcut key" to set it`,browserShortcutsNoteForChrome:"To modify the shortcut key in Chrome browser, you need to open the extension management page` chrome://extensions/shortcuts `) Settings, click the button below to jump to the shortcut key management page.",browserShortcutsSucks:"Please enter the shortcut key manually in the format:",enableLineBreakDescription:"After opening, a line break will be inserted at the end of each sentence in a long paragraph for easy reading","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate: Web Page&PDF Translation","browser.brandDescription":"Bilingual web page translation, also supports PDF translation, bilingual Epub eBook translation, free to use.","browser.toggleTranslatePage":"Toggle Translate Page","browser.toggleTranslateTheWholePage":"Toggle Translate the Whole Page","browser.toggleOnlyTransation":"Toggle Translate and Hide Original Text","browser.toggleTranslateToThePageEndImmediately":"Toggle Translate to the Bottom of the Page Immediately","browser.toggleTranslateTheMainPage":"Toggle Translate the Main Page","browser.openOptionsPage":"Open Settings Page","browser.toggleTranslationMask":"Toggle translation mask style","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-book","browser.openEbookBuilder":"Make Dual EPUB ebook","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.donateContext":"Sponsor Benefits","browser.translateLocalSubtitleFile":"Translate Subtitle File",confirmResetConfig:"Are you sure you want to reset the settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Create right button menu",toggleBeta:"Enable Beta experimental features",betaDescription:"Enable features that are still experimental, and translation services that are in testing. Join the <1>Telegram group to learn more.",translationLineBreakSettingDescription:"The always line break feature is suitable for layouts with less content, making the layout more neat and tidy. (Use smart line breaks for long paragraphs with more content (more than {count} characters) for saving space)",tempTranslateDomainTitle:"Open the translation time temporarily",tempTranslateDomainDescription:"When a page is translated manually, turn it temporarily on as automatic translation",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",toggleTranslatePageWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide translation display",toggleTranslationMaskWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide the blur effect of the translation",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"Multi-finger touch to show/hide only translation display",addUrlDescription:"The domain name is available and wildcard is supported e.g.: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import configuration from file",export:"Export to file",toggleDebug:"Print debug logs on the console","fingers.0":"Close","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch",mouseHoldKey:"+ {key} translate this paragraph",mouseHoldKeyAuto:"Translate the paragraph directly",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate this paragraph",mouseHoverHoldKey:"Mouse over and press X key to translate paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"All settings reset successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",goAdvancedSettings:"Go to Advanced Settings Page",goAdvancedInterfaceSettings:"Go to Advanced Custom Settings Page",advanced:"Advanced",advancedDescription:"Normally no settings are needed, keep the default. More personalized settings are provided for professional users only.",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"Translate to the bottom of the page immediately after opening the page?",feedback:"Feedback",toggleTranslatePage:"Toggle Translate",translateToThePageEndImmediatelyDescription:"Enabled will translate from the top to the bottom of the page immediately after opening. Disable will translate while reading. (Not recommended to enable)","translate all areas of the page":"Whether to translate all areas of the web page",translationAreaDescription:"When enabled, all areas of the entire web page will be translated. Disabled will use the default smart recognition and translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Directly translate the number of characters in front of the page without waiting to scroll to the visible area","interface language":"Interface language","display both the original text and the translation":"Display both the original text and the translation","keyboard shortcuts":"Keyboard shortcuts",modify:"Edit",reset:"Reset",close:"Close",homepage:"Home Page",more:"More",moreOptions:"Expand more custom settings",translateTheWholePage:"Translate the whole page area",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Dual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"Main areas of intelligent translation","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly implement the interface of the Greasemonkey extension, please use another browser that <1>supports the Greasemonkey extension such as (Firefox Nightly version)",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:"Unknown Error",canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha enabled successfully",disableAlphaSuccess:"Alpha has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(to set up)",goSettings:"to set up",needActionForOptions:"(need to set)",translationEngine:"Engine Options",sourceLanguage:"Original language",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",forThisSite:"Site:",alwaysTranslateSomeLanguage:"Always translate {language}",neverTranslateSomeLanguage:"Never translate {language}",alwaysTranslateSomeSite:"Always translate {hostname}",neverTranslateSomeSite:"Never translate {hostname}",alwaysTranslateSomeSiteOrWildSite:"Always translate this site",alwaysTranslateSomePage:"Always translate this page",add:"Add",default:"Default",forThisLanguage:"For This Language:","add url":"Add URL",edit:"Edit","translate other languages into specific language":"Translate other languages into the language you set","select translation service":"Select a translation service",language:"Language","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",Error:"Error",allowCacheTranslations:"Enable local translation caching (reduce translation requests for duplicate paragraphs)","translation display":"Translation display style","select diplay style":"Please refer to the following examples",interface:"Interface Settings",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dashed underline","translationTheme.dotted":"Dotted Underline","translationTheme.dashedBorder":"Dashed Border","translationTheme.solidBorder":"Dashed Border","translationTheme.underline":"Straight underline","translationTheme.mask":"Blur effect","translationTheme.opacity":"Opacity effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weakening","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dashed underline","translationTheme.nativeDashed":"System Dash Underline","translationTheme.nativeDotted":"System Dotted Underline","translationTheme.nativeUnderline":"System Straight Line Underline","translationTheme.wavy":"Squiggle","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeeplX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"Translate page title","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped",enableUserscriptPagePopup:"Always show Popup windows on the page",enableUserscriptPagePopupDescription:"Three-finger touch to show the Popup.","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",currentUrl:"Current URL",confirm:"Save",cancel:"Cancel",delete:"Delete","languages.auto":"Detect Language",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",authFail:"Authorization Failed",syncTitle:"Please select a file operation",import_hint:"Import",upload:"Upload",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",download:"Download",importSuccess:"Upload Success",importFail:"Import Failed",deleteFail:"Delete Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",backupToCloudDescription:"Upload or restore backup files manually, up to 3 different backups",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",updatedAt:"Updated at {date}",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. You can choose to subscribe to <6>Pro membership to use the out-of-the-box DeepL and OpenAI translation.

You can also follow out <3>Twitter, <4>Telegram Channel, and <5>Email Subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free and we hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. ",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",qqCommunities:"QQ Channel",joinTelegramChannel:"Subscribe to our Telegram channel to get the latest updates",feedbackAndJoin:"Feedback",autoSync:"Auto-Time Sync",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization","edit border color":"Edit border color",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",enableSubtitle:"enableSubtitleTranslation",enableSubtitleDescription:"Enable translations for subtitle areas on sites like youtube",isTranslateTitleDescription:"When enabled, the page title will be translated",enableSearchEnhancement:"Enable Search Enhancement",enableSearchEnhancementDescription:'After enabling, the right sidebar will automatically display "Google News" search results for corresponding English keywords on supported websites (such as Google News, Google Search (partial keywords), Xueqiu, East Money, Futu, Tiger Community).',verifyService:"Verify service",verified:"Successful","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerMinute":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next minute. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"Requests exceed this limit will be queued until the next seconds.","description.prompt":"Send as a user to OpenAI conversation, where {{text}} indicates the text of the paragraph,{{from}} indicates the language of the paragraph,{{to}} indicates the target language, you can omit {{text}}, if so, it'll be sent as a separated message","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"Send the conversation to OpenAI as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the original language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"Default is\uFF1Ageneral. Only set up if there is an API console open domain translation, support fields see <1>Here ","field.scene":"Scene","description.scene":"Default is\uFF1Ageneral. Only set up if there is an API console open Machine Translation Professional, support fields see<1>Here","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please provide a URL with the specific path.",enabledExtension:"Enable extensions",clickToDisableExtension:"Click to disable extension",clickToEnableExtension:"Click to enable the extension",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter customization content",inputOptions:"Writing",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter for translating part of the input box.",inputStartingTriggerKeyDescription:"When you don't need to translate the entire input box, the delimiter allows you to only translate the portion from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means only translating the portion from {startingKey}ja to the end of the input box.",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting is no prefix required, the partial text translation function of the input box cannot be used temporarily.",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Start the translation by quickly pressing 3 times {trailingKey}.",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time (milliseconds) for the input to end the combo trigger",spaceKey:"",noneKey:"Translate the entire text box without prefixes",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement in the following URL",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",clickToSeeQuickDemo:"Click to expand the 30s tutorial video",inputHelperInfo:`Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001". +`,PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",OPTIONS_URL:"https://dash.immersivetranslate.com/",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",MOCK:"0",DEBUG:"0",INSTALL_FROM:"firefox_zip"}});var ug=bf((_o,nu)=>{g();(function(){var e;function t(d){var b,C,h="",A=-1,S;if(d&&d.length)for(S=d.length;(A+=1)>>6&31,128|b&63):b<=65535?h+=String.fromCharCode(224|b>>>12&15,128|b>>>6&63,128|b&63):b<=2097151&&(h+=String.fromCharCode(240|b>>>18&7,128|b>>>12&63,128|b>>>6&63,128|b&63));return h}function n(d){var b,C,h,A,S,U=[],O;if(b=C=h=A=S=0,d&&d.length)for(O=d.length,d+="";b191&&h<224?(A=d.charCodeAt(b+1),U[C]=String.fromCharCode((h&31)<<6|A&63),b+=2):(A=d.charCodeAt(b+1),S=d.charCodeAt(b+2),U[C]=String.fromCharCode((h&15)<<12|(A&63)<<6|S&63),b+=3);return U.join("")}function a(d,b){var C=(d&65535)+(b&65535),h=(d>>16)+(b>>16)+(C>>16);return h<<16|C&65535}function r(d,b){return d<>>32-b}function u(d,b){for(var C=b?"0123456789ABCDEF":"0123456789abcdef",h="",A,S=0,U=d.length;S>>4&15)+C.charAt(A&15);return h}function o(d){var b,C=d.length,h="";for(b=0;b>>8&255);return h}function i(d){var b,C=d.length,h="";for(b=0;b>>8&255,d.charCodeAt(b)&255);return h}function l(d){var b,C=d.length*32,h="";for(b=0;b>5]>>>24-b%32&255);return h}function c(d){var b,C=d.length*32,h="";for(b=0;b>5]>>>b%32&255);return h}function s(d){var b,C=d.length*8,h=Array(d.length>>2),A=h.length;for(b=0;b>5]|=(d.charCodeAt(b/8)&255)<>2),A=h.length;for(b=0;b>5]|=(d.charCodeAt(b/8)&255)<<24-b%32;return h}function p(d,b){var C=b.length,h=Array(),A,S,U,O,y,T,k,v;for(T=Array(Math.ceil(d.length/2)),O=T.length,A=0;A0;){for(y=Array(),U=0,A=0;A0||S>0)&&(y[y.length]=S);h[h.length]=U,T=y}for(k="",A=h.length-1;A>=0;A--)k+=b.charAt(h[A]);for(v=Math.ceil(d.length*8/(Math.log(b.length)/Math.log(2))),A=k.length;Ad.length*8?h+=b:h+=C.charAt(O>>>6*(3-U)&63);return h}e={VERSION:"1.0.6",Base64:function(){var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b="=",C=!1,h=!0;this.encode=function(A){var S,U,O,y="";for(b=b||"=",A=h?t(A):A,len=A.length,S=0;Slen*8?y+=b:y+=d.charAt(O>>>6*(3-U)&63);return y},this.decode=function(A){var S,U,O,y,T,k,v,E,R,F,w="",B=[];if(!A)return A;S=F=0,A=A.replace(new RegExp("\\"+b,"gi"),"");do T=d.indexOf(A.charAt(S++)),k=d.indexOf(A.charAt(S++)),v=d.indexOf(A.charAt(S++)),E=d.indexOf(A.charAt(S++)),R=T<<18|k<<12|v<<6|E,U=R>>16&255,O=R>>8&255,y=R&255,F+=1,v===64?B[F]=String.fromCharCode(U):E===64?B[F]=String.fromCharCode(U,O):B[F]=String.fromCharCode(U,O,y);while(S>>8^C;return(b^-1)>>>0},MD5:function(d){var b=d&&typeof d.uppercase=="boolean"?d.uppercase:!1,C=d&&typeof d.pad=="string"?d.pad:"=",h=d&&typeof d.utf8=="boolean"?d.utf8:!0;this.hex=function(E){return u(A(E,h),b)},this.b64=function(E){return f(A(E),C)},this.any=function(E,R){return p(A(E,h),R)},this.raw=function(E){return A(E,h)},this.hex_hmac=function(E,R){return u(S(E,R),b)},this.b64_hmac=function(E,R){return f(S(E,R),C)},this.any_hmac=function(E,R,F){return p(S(E,R),F)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(E){return typeof E=="boolean"&&(b=E),this},this.setPad=function(E){return C=E||C,this},this.setUTF8=function(E){return typeof E=="boolean"&&(h=E),this};function A(E){return E=h?t(E):E,c(U(s(E),E.length*8))}function S(E,R){var F,w,B,I,N;for(E=h?t(E):E,R=h?t(R):R,F=s(E),F.length>16&&(F=U(F,E.length*8)),w=Array(16),B=Array(16),N=0;N<16;N+=1)w[N]=F[N]^909522486,B[N]=F[N]^1549556828;return I=U(w.concat(s(R)),512+R.length*8),c(U(B.concat(I),512+128))}function U(E,R){var F,w,B,I,N,P=1732584193,x=-271733879,D=-1732584194,M=271733878;for(E[R>>5]|=128<>>9<<4)+14]=R,F=0;F16&&(v=U(v,T.length*8)),E=Array(16),R=Array(16),F=0;F<16;F+=1)E[F]=v[F]^909522486,R[F]=v[F]^1549556828;return w=U(E.concat(m(k)),512+k.length*8),l(U(R.concat(w),512+160))}function U(T,k){var v,E,R,F,w,B,I,N,P=Array(80),x=1732584193,D=-271733879,M=-1732584194,q=271733878,j=-1009589776;for(T[k>>5]|=128<<24-k%32,T[(k+64>>9<<4)+15]=k,v=0;v16&&(j=P(j,x.length*8));q<16;q+=1)$[q]=j[q]^909522486,z[q]=j[q]^1549556828;return M=P($.concat(m(D)),512+D.length*8),l(P(z.concat(M),512+256))}function O(x,D){return x>>>D|x<<32-D}function y(x,D){return x>>>D}function T(x,D,M){return x&D^~x&M}function k(x,D,M){return x&D^x&M^D&M}function v(x){return O(x,2)^O(x,13)^O(x,22)}function E(x){return O(x,6)^O(x,11)^O(x,25)}function R(x){return O(x,7)^O(x,18)^y(x,3)}function F(x){return O(x,17)^O(x,19)^y(x,10)}function w(x){return O(x,28)^O(x,34)^O(x,39)}function B(x){return O(x,14)^O(x,18)^O(x,41)}function I(x){return O(x,1)^O(x,8)^y(x,7)}function N(x){return O(x,19)^O(x,61)^y(x,6)}A=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function P(x,D){var M=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],q=new Array(64),j,$,z,ae,J,Y,pe,he,ue,G,ie,me;for(x[D>>5]|=128<<24-D%32,x[(D+64>>9<<4)+15]=D,ue=0;ue32&&(x=O(x,B.length*8));P<32;P+=1)D[P]=x[P]^909522486,M[P]=x[P]^1549556828;return N=O(D.concat(m(I)),1024+I.length*8),l(O(M.concat(N),1024+512))}function O(B,I){var N,P,x,D=new Array(80),M=new Array(16),q=[new y(1779033703,-205731576),new y(-1150833019,-2067093701),new y(1013904242,-23791573),new y(-1521486534,1595750129),new y(1359893119,-1377402159),new y(-1694144372,725511199),new y(528734635,-79577749),new y(1541459225,327033209)],j=new y(0,0),$=new y(0,0),z=new y(0,0),ae=new y(0,0),J=new y(0,0),Y=new y(0,0),pe=new y(0,0),he=new y(0,0),ue=new y(0,0),G=new y(0,0),ie=new y(0,0),me=new y(0,0),ce=new y(0,0),ye=new y(0,0),Se=new y(0,0),xe=new y(0,0),Z=new y(0,0);for(A===void 0&&(A=[new y(1116352408,-685199838),new y(1899447441,602891725),new y(-1245643825,-330482897),new y(-373957723,-2121671748),new y(961987163,-213338824),new y(1508970993,-1241133031),new y(-1841331548,-1357295717),new y(-1424204075,-630357736),new y(-670586216,-1560083902),new y(310598401,1164996542),new y(607225278,1323610764),new y(1426881987,-704662302),new y(1925078388,-226784913),new y(-2132889090,991336113),new y(-1680079193,633803317),new y(-1046744716,-815192428),new y(-459576895,-1628353838),new y(-272742522,944711139),new y(264347078,-1953704523),new y(604807628,2007800933),new y(770255983,1495990901),new y(1249150122,1856431235),new y(1555081692,-1119749164),new y(1996064986,-2096016459),new y(-1740746414,-295247957),new y(-1473132947,766784016),new y(-1341970488,-1728372417),new y(-1084653625,-1091629340),new y(-958395405,1034457026),new y(-710438585,-1828018395),new y(113926993,-536640913),new y(338241895,168717936),new y(666307205,1188179964),new y(773529912,1546045734),new y(1294757372,1522805485),new y(1396182291,-1651133473),new y(1695183700,-1951439906),new y(1986661051,1014477480),new y(-2117940946,1206759142),new y(-1838011259,344077627),new y(-1564481375,1290863460),new y(-1474664885,-1136513023),new y(-1035236496,-789014639),new y(-949202525,106217008),new y(-778901479,-688958952),new y(-694614492,1432725776),new y(-200395387,1467031594),new y(275423344,851169720),new y(430227734,-1194143544),new y(506948616,1363258195),new y(659060556,-544281703),new y(883997877,-509917016),new y(958139571,-976659869),new y(1322822218,-482243893),new y(1537002063,2003034995),new y(1747873779,-692930397),new y(1955562222,1575990012),new y(2024104815,1125592928),new y(-2067236844,-1578062990),new y(-1933114872,442776044),new y(-1866530822,593698344),new y(-1538233109,-561857047),new y(-1090935817,-1295615723),new y(-965641998,-479046869),new y(-903397682,-366583396),new y(-779700025,566280711),new y(-354779690,-840897762),new y(-176337025,-294727304),new y(116418474,1914138554),new y(174292421,-1563912026),new y(289380356,-1090974290),new y(460393269,320620315),new y(685471733,587496836),new y(852142971,1086792851),new y(1017036298,365543100),new y(1126000580,-1676669620),new y(1288033470,-885112138),new y(1501505948,-60457430),new y(1607167915,987167468),new y(1816402316,1246189591)]),P=0;P<80;P+=1)D[P]=new y(0,0);for(B[I>>5]|=128<<24-(I&31),B[(I+128>>10<<5)+31]=I,x=B.length,P=0;P>>N|I.h<<32-N,B.h=I.h>>>N|I.l<<32-N}function v(B,I,N){B.l=I.h>>>N|I.l<<32-N,B.h=I.l>>>N|I.h<<32-N}function E(B,I,N){B.l=I.l>>>N|I.h<<32-N,B.h=I.h>>>N}function R(B,I,N){var P=(I.l&65535)+(N.l&65535),x=(I.l>>>16)+(N.l>>>16)+(P>>>16),D=(I.h&65535)+(N.h&65535)+(x>>>16),M=(I.h>>>16)+(N.h>>>16)+(D>>>16);B.l=P&65535|x<<16,B.h=D&65535|M<<16}function F(B,I,N,P,x){var D=(I.l&65535)+(N.l&65535)+(P.l&65535)+(x.l&65535),M=(I.l>>>16)+(N.l>>>16)+(P.l>>>16)+(x.l>>>16)+(D>>>16),q=(I.h&65535)+(N.h&65535)+(P.h&65535)+(x.h&65535)+(M>>>16),j=(I.h>>>16)+(N.h>>>16)+(P.h>>>16)+(x.h>>>16)+(q>>>16);B.l=D&65535|M<<16,B.h=q&65535|j<<16}function w(B,I,N,P,x,D){var M=(I.l&65535)+(N.l&65535)+(P.l&65535)+(x.l&65535)+(D.l&65535),q=(I.l>>>16)+(N.l>>>16)+(P.l>>>16)+(x.l>>>16)+(D.l>>>16)+(M>>>16),j=(I.h&65535)+(N.h&65535)+(P.h&65535)+(x.h&65535)+(D.h&65535)+(q>>>16),$=(I.h>>>16)+(N.h>>>16)+(P.h>>>16)+(x.h>>>16)+(D.h>>>16)+(j>>>16);B.l=M&65535|q<<16,B.h=j&65535|$<<16}},RMD160:function(d){var b=d&&typeof d.uppercase=="boolean"?d.uppercase:!1,C=d&&typeof d.pad=="string"?d.pa:"=",h=d&&typeof d.utf8=="boolean"?d.utf8:!0,A=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],S=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],U=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],O=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(w){return u(y(w,h))},this.b64=function(w){return f(y(w,h),C)},this.any=function(w,B){return p(y(w,h),B)},this.raw=function(w){return y(w,h)},this.hex_hmac=function(w,B){return u(T(w,B))},this.b64_hmac=function(w,B){return f(T(w,B),C)},this.any_hmac=function(w,B,I){return p(T(w,B),I)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(w){return typeof w=="boolean"&&(b=w),this},this.setPad=function(w){return typeof w<"u"&&(C=w),this},this.setUTF8=function(w){return typeof w=="boolean"&&(h=w),this};function y(w){return w=h?t(w):w,k(v(s(w),w.length*8))}function T(w,B){w=h?t(w):w,B=h?t(B):B;var I,N,P=s(w),x=Array(16),D=Array(16);for(P.length>16&&(P=v(P,w.length*8)),I=0;I<16;I+=1)x[I]=P[I]^909522486,D[I]=P[I]^1549556828;return N=v(x.concat(s(B)),512+B.length*8),k(v(D.concat(N),512+160))}function k(w){var B,I="",N=w.length*32;for(B=0;B>5]>>>B%32&255);return I}function v(w,B){var I,N,P,x,D=1732584193,M=4023233417,q=2562383102,j=271733878,$=3285377520,z,ae,J,Y,pe,he,ue,G,ie,me;for(w[B>>5]|=128<>>9<<4)+14]=B,x=w.length,P=0;Pfunction(){return t||(0,e[bc(e)[0]])((t={exports:{}}).exports,t),t.exports},Sf=(e,t)=>{for(var n in t)Ii(e,n,{get:t[n],enumerable:!0})},Oi=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of bc(t))!Af.call(e,r)&&r!==n&&Ii(e,r,{get:()=>t[r],enumerable:!(a=wf(t,r))||a.enumerable});return e},Df=(e,t,n)=>(Oi(e,t,"default"),n&&Oi(n,t,"default")),yc=(e,t,n)=>(n=e!=null?Cf(vf(e)):{},Oi(t||!e||!e.__esModule?Ii(n,"default",{value:e,enumerable:!0}):n,e)),xc=kf({"../esmd/npm/webextension-polyfill@0.10.0/node_modules/webextension-polyfill/dist/browser-polyfill.js"(e,t){(function(n,a){if(typeof define=="function"&&define.amd)define("webextension-polyfill",["module"],a);else if(typeof e<"u")a(t);else{var r={exports:{}};a(r),n.browser=r.exports}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:e,function(n){"use strict";if(!globalThis.chrome?.runtime?.id)throw new Error("This script should only be loaded in a browser extension.");if(typeof globalThis.browser>"u"||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){let a="The message port closed before a response was received.",r=u=>{let o={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(Object.keys(o).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class i extends WeakMap{constructor(T,k=void 0){super(k),this.createItem=T}get(T){return this.has(T)||this.set(T,this.createItem(T)),super.get(T)}}let l=y=>y&&typeof y=="object"&&typeof y.then=="function",c=(y,T)=>(...k)=>{u.runtime.lastError?y.reject(new Error(u.runtime.lastError.message)):T.singleCallbackArg||k.length<=1&&T.singleCallbackArg!==!1?y.resolve(k[0]):y.resolve(k)},s=y=>y==1?"argument":"arguments",m=(y,T)=>function(v,...E){if(E.lengthT.maxArgs)throw new Error(`Expected at most ${T.maxArgs} ${s(T.maxArgs)} for ${y}(), got ${E.length}`);return new Promise((R,F)=>{if(T.fallbackToNoCallback)try{v[y](...E,c({resolve:R,reject:F},T))}catch{v[y](...E),T.fallbackToNoCallback=!1,T.noCallback=!0,R()}else T.noCallback?(v[y](...E),R()):v[y](...E,c({resolve:R,reject:F},T))})},p=(y,T,k)=>new Proxy(T,{apply(v,E,R){return k.call(E,y,...R)}}),f=Function.call.bind(Object.prototype.hasOwnProperty),d=(y,T={},k={})=>{let v=Object.create(null),E={has(F,w){return w in y||w in v},get(F,w,B){if(w in v)return v[w];if(!(w in y))return;let I=y[w];if(typeof I=="function")if(typeof T[w]=="function")I=p(y,y[w],T[w]);else if(f(k,w)){let N=m(w,k[w]);I=p(y,y[w],N)}else I=I.bind(y);else if(typeof I=="object"&&I!==null&&(f(T,w)||f(k,w)))I=d(I,T[w],k[w]);else if(f(k,"*"))I=d(I,T[w],k["*"]);else return Object.defineProperty(v,w,{configurable:!0,enumerable:!0,get(){return y[w]},set(N){y[w]=N}}),I;return v[w]=I,I},set(F,w,B,I){return w in v?v[w]=B:y[w]=B,!0},defineProperty(F,w,B){return Reflect.defineProperty(v,w,B)},deleteProperty(F,w){return Reflect.deleteProperty(v,w)}},R=Object.create(y);return new Proxy(R,E)},b=y=>({addListener(T,k,...v){T.addListener(y.get(k),...v)},hasListener(T,k){return T.hasListener(y.get(k))},removeListener(T,k){T.removeListener(y.get(k))}}),C=new i(y=>typeof y!="function"?y:function(k){let v=d(k,{},{getContent:{minArgs:0,maxArgs:0}});y(v)}),h=new i(y=>typeof y!="function"?y:function(k,v,E){let R=!1,F,w=new Promise(P=>{F=function(x){R=!0,P(x)}}),B;try{B=y(k,v,F)}catch(P){B=Promise.reject(P)}let I=B!==!0&&l(B);if(B!==!0&&!I&&!R)return!1;let N=P=>{P.then(x=>{E(x)},x=>{let D;x&&(x instanceof Error||typeof x.message=="string")?D=x.message:D="An unexpected error occurred",E({__mozWebExtensionPolyfillReject__:!0,message:D})}).catch(x=>{})};return N(I?B:w),!0}),A=({reject:y,resolve:T},k)=>{u.runtime.lastError?u.runtime.lastError.message===a?T():y(new Error(u.runtime.lastError.message)):k&&k.__mozWebExtensionPolyfillReject__?y(new Error(k.message)):T(k)},S=(y,T,k,...v)=>{if(v.lengthT.maxArgs)throw new Error(`Expected at most ${T.maxArgs} ${s(T.maxArgs)} for ${y}(), got ${v.length}`);return new Promise((E,R)=>{let F=A.bind(null,{resolve:E,reject:R});v.push(F),k.sendMessage(...v)})},U={devtools:{network:{onRequestFinished:b(C)}},runtime:{onMessage:b(h),onMessageExternal:b(h),sendMessage:S.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:S.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},O={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return o.privacy={network:{"*":O},services:{"*":O},websites:{"*":O}},d(u,U,o)};n.exports=r(chrome)}else n.exports=globalThis.browser})}}),Ec={};Sf(Ec,{default:()=>Eu});var Lf=yc(xc());Df(Ec,yc(xc()));var{default:hc,...Pf}=Lf,Eu=hc!==void 0?hc:Pf;globalThis.immersiveTranslateBrowserAPI=Eu;g();g();g();var ku,Ae,Ac,Mf,Ar,Tc,kc,wu={},Sc=[],Ff=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function $n(e,t){for(var n in t)e[n]=t[n];return e}function Dc(e){var t=e.parentNode;t&&t.removeChild(e)}function ji(e,t,n){var a,r,u,o={};for(u in t)u=="key"?a=t[u]:u=="ref"?r=t[u]:o[u]=t[u];if(arguments.length>2&&(o.children=arguments.length>3?ku.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(u in e.defaultProps)o[u]===void 0&&(o[u]=e.defaultProps[u]);return Tu(e,o,a,r,null)}function Tu(e,t,n,a,r){var u={type:e,props:t,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++Ac};return r==null&&Ae.vnode!=null&&Ae.vnode(u),u}function Wt(e){return e.children}function Cu(e,t){this.props=e,this.context=t}function ja(e,t){if(t==null)return e.__?ja(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?Tu(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=n,f.__b=n.__b+1,(p=h[s])===null||p&&f.key==p.key&&f.type===p.type)h[s]=void 0;else for(m=0;m=n.__.length&&n.__.push({__V:Du}),n.__[e]}function Te(e){return kr=1,Of($c,e)}function Of(e,t,n){var a=Pu(Sr++,2);if(a.t=e,!a.__c&&(a.__=[n?n(t):$c(void 0,t),function(u){var o=a.__N?a.__N[0]:a.__[0],i=a.t(o,u);o!==i&&(a.__N=[i,a.__[1]],a.__c.setState({}))}],a.__c=Qe,!Qe.u)){Qe.u=!0;var r=Qe.shouldComponentUpdate;Qe.shouldComponentUpdate=function(u,o,i){if(!a.__c.__H)return!0;var l=a.__c.__H.__.filter(function(s){return s.__c});if(l.every(function(s){return!s.__N}))return!r||r.call(this,u,o,i);var c=!1;return l.forEach(function(s){if(s.__N){var m=s.__[0];s.__=s.__N,s.__N=void 0,m!==s.__[0]&&(c=!0)}}),!!c&&(!r||r.call(this,u,o,i))}}return a.__N||a.__}function Ne(e,t){var n=Pu(Sr++,3);!Ae.__s&&Wc(n.__H,t)&&(n.__=e,n.i=t,Qe.__H.__h.push(n))}function Mu(e){return kr=5,qi(function(){return{current:e}},[])}function qi(e,t){var n=Pu(Sr++,7);return Wc(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Kn(e,t){return kr=8,qi(function(){return e},t)}function Fu(e){var t=Qe.context[e.__c],n=Pu(Sr++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Qe)),t.props.value):e.__}function If(){for(var e;e=qc.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Lu),e.__H.__h.forEach(Hi),e.__H.__h=[]}catch(t){e.__H.__h=[],Ae.__e(t,e.__v)}}Ae.__b=function(e){typeof e.type!="function"||e.o||e.type===Wt?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),Qe=null,Ic&&Ic(e)},Ae.__r=function(e){Nc&&Nc(e),Sr=0;var t=(Qe=e.__c).__H;t&&(zi===Qe?(t.__h=[],Qe.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Du,n.__N=n.i=void 0})):(t.__h.forEach(Lu),t.__h.forEach(Hi),t.__h=[])),zi=Qe},Ae.diffed=function(e){jc&&jc(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(qc.push(t)!==1&&Oc===Ae.requestAnimationFrame||((Oc=Ae.requestAnimationFrame)||Nf)(If)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Du&&(n.__=n.__V),n.i=void 0,n.__V=Du})),zi=Qe=null},Ae.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Lu),n.__h=n.__h.filter(function(a){return!a.__||Hi(a)})}catch(a){t.some(function(r){r.__h&&(r.__h=[])}),t=[],Ae.__e(a,n.__v)}}),Uc&&Uc(e,t)},Ae.unmount=function(e){zc&&zc(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(a){try{Lu(a)}catch(r){t=r}}),n.__H=void 0,t&&Ae.__e(t,n.__v))};var Hc=typeof requestAnimationFrame=="function";function Nf(e){var t,n=function(){clearTimeout(a),Hc&&cancelAnimationFrame(t),setTimeout(e)},a=setTimeout(n,100);Hc&&(t=requestAnimationFrame(n))}function Lu(e){var t=Qe,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Qe=t}function Hi(e){var t=Qe;e.__c=e.__(),Qe=t}function Wc(e,t){return!e||e.length!==t.length||t.some(function(n,a){return n!==e[a]})}function $c(e,t){return typeof t=="function"?t(e):t}g();g();function _u(e,t,n){let a=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),a=t!=="auto"?n[t].matches:[];let r={},u=Object.keys(n);for(let c of u){let m=n[c].matches;for(let p of m)r[p]||(r[p]=[]),r[p].push(c)}let o=r[e];if(o&&o.length>0)for(let c of o)n[c].matches.indexOf(e)>-1&&(n[c]={...n[c],matches:n[c].matches.filter(m=>m!==e)});let i=new Set(a);if(t==="auto")return{...n};i.add(e);let l=Array.from(i);return{...n,[t]:{...n[t],matches:l}}}g();g();function Be(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():_}var Ee=Be();function fe(){return Ee.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function Mn(){return Ee.PROD==="1"}function Fn(){return Ee.PROD_API==="1"}function Kc(){return Ee.HAS_CSP_ERROR=="1"}function At(){if(Ee.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function Bu(){return typeof Deno<"u"}var y5=Be().PROD==="1",Ua=Be().PROD!=="1";function Ru(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}g();g();g();var Wi=/iPhone/i,Gc=/iPod/i,Vc=/iPad/i,Yc=/\biOS-universal(?:.+)Mac\b/i,$i=/\bAndroid(?:.+)Mobile\b/i,Jc=/Android/i,za=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,Ou=/Silk/i,_n=/Windows Phone/i,Qc=/\bWindows(?:.+)ARM\b/i,Zc=/BlackBerry/i,Xc=/BB10/i,e4=/Opera Mini/i,t4=/\b(CriOS|Chrome)(?:.+)Mobile/i,n4=/Mobile(?:.+)Firefox\b/i,a4=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function jf(e){return t=>t.test(e)}function fa(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,a=n.split("[FBAN");typeof a[1]<"u"&&(n=a[0]),a=n.split("Twitter"),typeof a[1]<"u"&&(n=a[0]);let r=jf(n),u={apple:{phone:r(Wi)&&!r(_n),ipod:r(Gc),tablet:!r(Wi)&&(r(Vc)||a4(t))&&!r(_n),universal:r(Yc),device:(r(Wi)||r(Gc)||r(Vc)||r(Yc)||a4(t))&&!r(_n)},amazon:{phone:r(za),tablet:!r(za)&&r(Ou),device:r(za)||r(Ou)},android:{phone:!r(_n)&&r(za)||!r(_n)&&r($i),tablet:!r(_n)&&!r(za)&&!r($i)&&(r(Ou)||r(Jc)),device:!r(_n)&&(r(za)||r(Ou)||r($i)||r(Jc))||r(/\bokhttp\b/i)},windows:{phone:r(_n),tablet:r(Qc),device:r(_n)||r(Qc)},other:{blackberry:r(Zc),blackberry10:r(Xc),opera:r(e4),firefox:r(n4),chrome:r(t4),device:r(Zc)||r(Xc)||r(e4)||r(n4)||r(t4)},any:!1,phone:!1,tablet:!1};return u.any=u.apple.device||u.android.device||u.windows.device||u.other.device,u.phone=u.apple.phone||u.android.phone||u.windows.phone,u.tablet=u.apple.tablet||u.android.tablet||u.windows.tablet,u}var Ki="DENO",Gi="CHROME",Iu="FIREFOX";function Uf(e){let t=Gi;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=Iu:/deno/i.test(n)&&(t=Ki)}catch{}return e===Gi&&t===Gi||e===Iu&&t===Iu||e===Ki&&t===Ki}function r4(){return typeof Deno<"u"}function Ha(){return Uf(Iu)}function u4(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function Dr(){return!!globalThis.matchMedia("(pointer:fine)").matches}g();var o4={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},i4={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:o4,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}}},tabs:{onUpdated:o4,query:()=>{},sendMessage:()=>{}}};var ee;r4()?ee=i4:ee=globalThis.immersiveTranslateBrowserAPI;g();var s4={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",curentPlan:"\u5F53\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52A8\u7EED\u671F",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",sponsorLabel:"$1 \u8D77\u8D5E\u52A9\u5F00\u53D1\u8005",help:"\u5E2E\u52A9",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D\uFF0C\u518D\u70B9\u51FB\u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D\u5373\u53EF\u8BBE\u7F6E",browserShortcutsNoteForChrome:"\u7C7BChrome \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762\uFF0C\u5728`\u7BA1\u7406\u5FEB\u6377\u952E`\u9762\u677F(`chrome://extensions/shortcuts`)\u8BBE\u7F6E\uFF0C\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8DF3\u8F6C\u5230\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E\u683C\u5F0F\u4E3A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1: \u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1 & PDF\u6587\u6863\u7FFB\u8BD1","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7F51\u9875\u53CC\u8BED\u7FFB\u8BD1\u6269\u5C55\uFF0C\u540C\u65F6\u652F\u6301 PDF \u7FFB\u8BD1\uFF0C\u53CC\u8BED Epub \u7535\u5B50\u4E66\u5236\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u817E\u8BAF\u7FFB\u8BD1\u7B49\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\uFF0C\u514D\u8D39\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8BD1\u5E76\u9690\u85CF\u539F\u6587/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.toggleTranslationMask":"\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.donateContext":"\u4E86\u89E3\u8D5E\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5219\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875(\u4EC5\u8BD1\u6587)/\u663E\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7","fingers.0":"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478",mouseHoldKey:"+ {key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoverHoldKey:"\u9F20\u6807\u60AC\u505C\u540C\u65F6\u6309\u4E0B\u5FEB\u6377\u952E\u7FFB\u8BD1\u6BB5\u843D","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u6587\u6863",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",goAdvancedSettings:"\u53BB\u8FDB\u9636\u8BBE\u7F6E\u9875",goAdvancedInterfaceSettings:"\u53BB\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u8BBE\u7F6E\u9875\u9762",advanced:"\u8FDB\u9636\u8BBE\u7F6E",advancedDescription:"\u4E00\u822C\u65E0\u9700\u8BBE\u7F6E\uFF0C\u4FDD\u6301\u9ED8\u8BA4\u5373\u53EF\u3002\u4EC5\u5BF9\u4E8E\u66F4\u4E13\u4E1A\u7684\u7528\u6237\uFF0C\u63D0\u4F9B\u66F4\u4E2A\u6027\u5316\u7684\u8BBE\u7F6E\u9879\u3002",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00","display both the original text and the translation":"\u540C\u65F6\u663E\u793A\u539F\u6587\u548C\u8BD1\u6587","keyboard shortcuts":"\u952E\u76D8\u5FEB\u6377\u952E",modify:"\u4FEE\u6539\u5FEB\u6377\u952E",reset:"\u91CD\u7F6E",close:"\u5173\u95ED",homepage:"\u4E3B\u9875",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",changeToOnlyTranslationMode:"\u5207\u6362\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u5207\u6362\u4E3A\u53CC\u8BED\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",unknownError:"\u672A\u77E5\u9519\u8BEF",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",needActionForOptions:"(\u9700\u8BBE\u7F6E)",translationEngine:"\u5F15\u64CE\u9009\u9879",sourceLanguage:"\u539F\u6587\u8BED\u8A00",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",forThisSite:"\u5F53\u524D\u7F51\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1 {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8BD1 {language}",alwaysTranslateSomeSite:"\u603B\u662F\u7FFB\u8BD1 {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8BD1 {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u6DFB\u52A0",default:"\u9ED8\u8BA4",forThisLanguage:"\u9488\u5BF9\u8BE5\u8BED\u8A00\uFF1A","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91","translate other languages into specific language":"\u5C06\u5176\u4ED6\u8BED\u8A00\u7FFB\u8BD1\u4E3A\u4F60\u8BBE\u7F6E\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1",language:"\u8BED\u8A00","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",Error:"\u9519\u8BEF",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",interface:"\u754C\u9762\u8BBE\u7F6E",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8BD1\u9875\u9762\u6807\u9898","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1",enableUserscriptPagePopup:"\u5728\u9875\u9762\u4E0A\u663E\u793A\u60AC\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528\u5FEB\u6377\u952E/{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8BD1\u6587\u6837\u5F0F",currentUrl:"\u5F53\u524D\u7F51\u5740",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664","languages.auto":"\u81EA\u52A8\u68C0\u6D4B",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",upload:"\u4E0A\u4F20",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",download:"\u4E0B\u8F7D",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",deleteFail:"\u5220\u9664\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",backupToCloudDescription:"\u624B\u52A8\u4E0A\u4F20\u6216\u6062\u590D\u5907\u4EFD\u6587\u4EF6\uFF0C\u6700\u591A\u5141\u8BB83\u4E2A\u4E0D\u540C\u7684\u5907\u4EFD",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",updatedAt:"\u66F4\u65B0\u4E8E {date}",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u9891\u9053",joinTelegramChannel:"\u5173\u6CE8 Telegram \u9891\u9053\u83B7\u53D6\u6700\u65B0\u66F4\u65B0",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",autoSync:"\u81EA\u52A8\u5B9A\u65F6\u540C\u6B65",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863","edit border color":"\u4FEE\u6539\u8FB9\u6846\u989C\u8272",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",enableSubtitle:"\u5F00\u542F\u5B57\u5E55\u7FFB\u8BD1",enableSubtitleDescription:"\u9488\u5BF9 youtube \u7B49\u7F51\u7AD9\u7684\u5B57\u5E55\u533A\u57DF\u5F00\u542F\u7FFB\u8BD1",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",enableSearchEnhancement:"\u542F\u7528\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A",enableSearchEnhancementDescription:"\u5F00\u542F\u540E\uFF0C\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\u793E\u533A\uFF09\u53F3\u8FB9\u680F\u81EA\u52A8\u663E\u793A\u5BF9\u5E94\u82F1\u6587\u5173\u952E\u8BCD\u7684\u201C\u8C37\u6B4C\u65B0\u95FB\u201D\u641C\u7D22\u7ED3\u679C\u3002",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerMinute":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u5206\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u8350\uFF09, \u5C06\u4F1A\u5728\u5355\u72EC\u4F5C\u4E3A\u4E00\u6BB5\u53D1\u9001\u7ED9 OpenAI","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740",enabledExtension:"\u542F\u7528\u6269\u5C55",clickToDisableExtension:"\u70B9\u51FB\u7981\u7528\u6269\u5C55",clickToEnableExtension:"\u70B9\u51FB\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",modifyMouseHoverKey:"\u4FEE\u6539\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u8BBE\u7F6E",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",disableTint:"* \u4F60\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u542F\u7528\u3002",searchEnhancementNotes:"\u6211\u4EEC\u53D1\u73B0\uFF0C\u4E2D\u6587\u5173\u952E\u8BCD\u548C\u82F1\u6587\u5173\u952E\u8BCD\u7684\u65B0\u95FB\u7ED3\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u542F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u529F\u80FD\u540E\uFF0C\u6211\u4EEC\u4F1A\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\u7F51\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52A8\u7528\u82F1\u6587\u4E3A\u4F60\u641C\u7D22\u540C\u6837\u7684\u5173\u952E\u8BCD\u5E76\u5C55\u793A\u5728\u53F3\u4FA7\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8BE5\u529F\u80FD\u7684\u8BDD\uFF0C\u53EF\u4EE5\u9009\u62E9\u7981\u7528\u5B83\u3002",option:"\u8BBE\u7F6E",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",needLoginAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u81EA\u5B9A\u4E49)",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",onetime_7day:"7 \u5929\u4F53\u9A8C\u5305",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradePlan:"\u70B9\u6B64\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL \u548C OpenAI \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8BD1",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u8BBE\u7F6E\u5176\u4ED6\u5FEB\u6377\u952E\u6765\u89E6\u53D1\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1"};var l4={nologin:"\u672A\u767B\u9304",login:"\u767B\u9304",manageAccount:"\u7BA1\u7406\u8CEC\u6236",logout:"\u9000\u51FA",curentPlan:"\u7576\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u671F",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u64CA\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u8AAA\u660E",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u9644\u52A0\u5143\u4EF6\u7BA1\u7406\u9801\u9762 \u300Cabout:addons\u300D\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u5716\u793A\u300D\uFF0C\u518D\u9EDE\u9078\u300C\u7BA1\u7406\u64F4\u5145\u5957\u4EF6\u5FEB\u901F\u9375\u300D\u5373\u53EF\u8A2D\u5B9A",browserShortcutsNoteForChrome:"Chromium \u6838\u5FC3\u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u64F4\u5145\u529F\u80FD\u7BA1\u7406\u9801\u9762\uFF0C\u5728\u300C\u9375\u76E4\u5FEB\u901F\u9375\u300D\u9801\u9762(chrome://extensions/shortcuts)\u8A2D\u5B9A\uFF0C\u9EDE\u9078\u4E0B\u65B9\u6309\u9215\u524D\u5F80\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u901F\u9375\u683C\u5F0F\u70BA\uFF1A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F: \u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F & PDF\u6587\u6A94\u7FFB\u8B6F","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7DB2\u9801\u96D9\u8A9E\u7FFB\u8B6F\u64F4\u5C55\uFF0C\u540C\u6642\u652F\u6301 PDF \u7FFB\u8B6F\uFF0C\u96D9\u8A9E Epub \u96FB\u5B50\u66F8\u88FD\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u9A30\u8A0A\u7FFB\u8B6F\u7B49\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF0C\u514D\u8CBB\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8B6F\u4E26\u96B1\u85CF\u539F\u6587/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.toggleTranslationMask":"\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.donateContext":"\u4E86\u89E3\u8D0A\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u5247\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u6642\u89F8\u78B0\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801(\u50C5\u8B6F\u6587)/\u986F\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304","fingers.0":"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478",mouseHoldKey:"+ {key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u6377\u9375(\u6253\u958B\u8A2D\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoverHoldKey:"\u9F20\u6A19\u6ED1\u904E\u540C\u6642\u6309\u4E0B X \u9375\u7FFB\u8B6F\u6BB5\u843D","mouse-translate":"\u9F20\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",goAdvancedSettings:"\u524D\u5F80\u9032\u968E\u8A2D\u5B9A\u9801\u9762",goAdvancedInterfaceSettings:"\u524D\u5F80\u81EA\u8A02\u8A2D\u5B9A\u9801\u9762",advanced:"\u9032\u968E\u8A2D\u5B9A",advancedDescription:"\u6B63\u5E38\u60C5\u6CC1\u7121\u9700\u8A2D\u5B9A\uFF0C\u4FDD\u6301\u9810\u8A2D\u5373\u53EF\u3002\u50C5\u91DD\u5C0D\u66F4\u5C08\u696D\u7684\u4F7F\u7528\u8005\uFF0C\u63D0\u4F9B\u66F4\u500B\u4EBA\u5316\u7684\u8A2D\u5B9A\u9805\u76EE\u3002",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00","display both the original text and the translation":"\u540C\u6642\u986F\u793A\u539F\u6587\u548C\u8B6F\u6587","keyboard shortcuts":"\u9375\u76E4\u5FEB\u901F\u9375",modify:"\u8B8A\u66F4\u5FEB\u901F\u9375",reset:"\u91CD\u8A2D",close:"\u95DC\u9589",homepage:"\u9996\u9801",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",changeToOnlyTranslationMode:"\u5207\u63DB\u70BA\u50C5\u986F\u793A\u8B6F\u6587",changeToDualTranslationMode:"\u5207\u63DB\u70BA\u96D9\u8A9E\u7FFB\u8B6F",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:"\u672A\u77E5\u7684\u932F\u8AA4",canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u9078\u9805",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",needActionForOptions:"(\u9700\u8A2D\u5B9A)",translationEngine:"\u5F15\u64CE\u9078\u9805",sourceLanguage:"\u539F\u6587\u8A9E\u8A00",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",forThisSite:"\u7576\u524D\u7DB2\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8B6F {language}",alwaysTranslateSomeSite:"\u7E3D\u662F\u7FFB\u8B6F {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8B6F {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u65B0\u589E",default:"\u9810\u8A2D",forThisLanguage:"\u91DD\u5C0D\u8A72\u8A9E\u8A00\uFF1A","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F","translate other languages into specific language":"\u5C07\u5176\u5B83\u8A9E\u8A00\u7FFB\u8B6F\u70BA\u4F60\u8A2D\u5B9A\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9",language:"\u8A9E\u8A00","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",Error:"\u932F\u8AA4",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",interface:"\u4ECB\u9762\u8A2D\u5B9A",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65",syncToAccount:"\u540C\u6B65\u5230\u8CEC\u6236",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u8CEC\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u8A2D\u5099\u4E4B\u9593\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u8CEC\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u8CEC\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8B6F","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9E\u99AC\u905C\u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8B6F\u9801\u9762\u6A19\u984C","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F",enableUserscriptPagePopup:"\u5728\u9801\u9762\u4E0A\u986F\u793A\u61F8\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528\u5FEB\u901F\u9375/{touch}\u518D\u6B21\u986F\u793A\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5EFA\u8B70\u5C07\u672C\u8A2D\u5B9A\u9801\u9762\u52A0\u5165\u81F3\u6211\u7684\u6700\u611B","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8B6F\u6587\u6A23\u5F0F",currentUrl:"\u76EE\u524D\u7DB2\u5740",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6E96\u3002",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",upload:"\u4E0A\u50B3",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",download:"\u4E0B\u8F09",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",deleteFail:"\u522A\u9664\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",backupToCloudDescription:"\u624B\u52D5\u4E0A\u50B3\u6216\u9084\u539F\u5099\u4EFD\u6A94\u6848\uFF0C\u6700\u591A\u5141\u8A31 3 \u500B\u4E0D\u540C\u7684\u5099\u4EFD",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",updatedAt:"\u66F4\u65B0\u65BC {date}",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u4EEC\u7684<3>Twitter\uFF0C<4>Telegram \u983B\u9053\u4EE5\u53CA\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u90F5\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u983B\u9053",joinTelegramChannel:"\u95DC\u6CE8 Telegram \u983B\u9053\u77AD\u89E3\u66F4\u65B0\u8CC7\u8A0A",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",autoSync:"\u81EA\u52D5\u5B9A\u6642\u540C\u6B65",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6","edit border color":"\u8B8A\u66F4\u908A\u6846\u8272\u5F69",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",enableSubtitle:"\u958B\u555F\u5B57\u5E55\u7FFB\u8B6F",enableSubtitleDescription:"\u91DD\u5C0D youtube \u7B49\u7DB2\u7AD9\u7684\u5B57\u5E55\u5340\u57DF\u958B\u555F\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",enableSearchEnhancement:"\u958B\u555F\u641C\u7D22\u589E\u5F37",enableSearchEnhancementDescription:"\u4E2D\u6587\u641C\u7D22\u8C37\u6B4C\u6703\u5728\u53F3\u908A\u51FA\u73FE\u82F1\u6587\u7248\u8C37\u6B4C\u65B0\u805E",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerMinute":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u5206\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u4EFD\u50B3\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u85A6\uFF09, \u5C07\u6703\u5728\u55AE\u7368\u4F5C\u70BA\u4E00\u6BB5\u767C\u9001\u7D66 OpenAI","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u50B3\u9001\u767C\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",clickToDisableExtension:"\u9EDE\u9078\u505C\u7528\u5957\u4EF6",clickToEnableExtension:"\u9EDE\u9078\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u9F20\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u7F6E\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u5B57\u7B26\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8B58\u5225\u70BA\u89F8\u767C\u5B57\u7B26\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u7981\u7528\u78BA\u8A8D",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",disableTint:"* \u60A8\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u555F\u7528\u3002",searchEnhancementNotes:"\u6211\u5011\u767C\u73FE\uFF0C\u4E2D\u6587\u95DC\u9375\u8A5E\u548C\u82F1\u6587\u95DC\u9375\u8A5E\u7684\u65B0\u805E\u7D50\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u555F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u4FE1\u606F\u589E\u5F37\u529F\u80FD\u5F8C\uFF0C\u6211\u5011\u6703\u5728\u652F\u6301\u7684\u7DB2\u7AD9\uFF08\u8C37\u6B4C\u65B0\u805E\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u95DC\u9375\u8A5E\uFF09\uFF0C\u96EA\u7403\uFF0C\u6771\u65B9\u8CA1\u5BCC\u7DB2\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52D5\u7528\u82F1\u6587\u70BA\u4F60\u641C\u7D22\u540C\u6A23\u7684\u95DC\u9375\u8A5E\u4E26\u5C55\u793A\u5728\u53F3\u5074\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8A72\u529F\u80FD\u7684\u8A71\uFF0C\u53EF\u4EE5\u9078\u64C7\u7981\u7528\u5B83\u3002",option:"\u9078\u9805",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL \u548C OpenAI \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8B6F",currentAccount:"\u7576\u524D\u8CEC\u6236"};var c4={nologin:"Not logged in",login:"Login",manageAccount:"Manage Account",logout:"Logout",curentPlan:"Current Plan",endAt:"Expires",endAuto:"Auto Renew",lineBreakMaxTextCount:"Maximum number of characters allowed per sentence after line break","translate-pdf":"Click to translate PDF","noSupportTranslate-pdf":"The script is not supported, please use a plugin.","translate-firefox-local-pdf":"Click to upload PDF",enableLineBreak:"Whether to turn on automatic line wrapping for long paragraphs",sponsorLabel:"Sponsoring developers from $1 (monthly or one-time)",help:"Help",browserShortcutsNoteForFirefox:`To modify the shortcut key in Firefox browser, you need to open the extension management page 'about: addons', then click "Settings", and then click "Management shortcut key" to set it`,browserShortcutsNoteForChrome:"To modify the shortcut key in Chrome browser, you need to open the extension management page` chrome://extensions/shortcuts `) Settings, click the button below to jump to the shortcut key management page.",browserShortcutsSucks:"Please enter the shortcut key manually in the format:",enableLineBreakDescription:"After opening, a line break will be inserted at the end of each sentence in a long paragraph for easy reading","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate: Web Page&PDF Translation","browser.brandDescription":"Bilingual web page translation, also supports PDF translation, bilingual Epub eBook translation, free to use.","browser.toggleTranslatePage":"Toggle Translate Page","browser.toggleTranslateTheWholePage":"Toggle Translate the Whole Page","browser.toggleOnlyTransation":"Toggle Translate and Hide Original Text","browser.toggleTranslateToThePageEndImmediately":"Toggle Translate to the Bottom of the Page Immediately","browser.toggleTranslateTheMainPage":"Toggle Translate the Main Page","browser.openOptionsPage":"Open Settings Page","browser.toggleTranslationMask":"Toggle translation mask style","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-book","browser.openEbookBuilder":"Make Dual EPUB ebook","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.donateContext":"Sponsor Benefits","browser.translateLocalSubtitleFile":"Translate Subtitle File",confirmResetConfig:"Are you sure you want to reset the settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Create right button menu",toggleBeta:"Enable Beta experimental features",betaDescription:"Enable features that are still experimental, and translation services that are in testing. Join the <1>Telegram group to learn more.",translationLineBreakSettingDescription:"The always line break feature is suitable for layouts with less content, making the layout more neat and tidy. (Use smart line breaks for long paragraphs with more content (more than {count} characters) for saving space)",tempTranslateDomainTitle:"Open the translation time temporarily",tempTranslateDomainDescription:"When a page is translated manually, turn it temporarily on as automatic translation",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",toggleTranslatePageWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide translation display",toggleTranslationMaskWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide the blur effect of the translation",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"Multi-finger touch to show/hide only translation display",addUrlDescription:"The domain name is available and wildcard is supported e.g.: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import configuration from file",export:"Export to file",toggleDebug:"Print debug logs on the console","fingers.0":"Close","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch",mouseHoldKey:"+ {key} translate this paragraph",mouseHoldKeyAuto:"Translate the paragraph directly",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate this paragraph",mouseHoverHoldKey:"Mouse over and press X key to translate paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"All settings reset successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",goAdvancedSettings:"Go to Advanced Settings Page",goAdvancedInterfaceSettings:"Go to Advanced Custom Settings Page",advanced:"Advanced",advancedDescription:"Normally no settings are needed, keep the default. More personalized settings are provided for professional users only.",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"Translate to the bottom of the page immediately after opening the page?",feedback:"Feedback",toggleTranslatePage:"Toggle Translate",translateToThePageEndImmediatelyDescription:"Enabled will translate from the top to the bottom of the page immediately after opening. Disable will translate while reading. (Not recommended to enable)","translate all areas of the page":"Whether to translate all areas of the web page",translationAreaDescription:"When enabled, all areas of the entire web page will be translated. Disabled will use the default smart recognition and translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Directly translate the number of characters in front of the page without waiting to scroll to the visible area","interface language":"Interface language","display both the original text and the translation":"Display both the original text and the translation","keyboard shortcuts":"Keyboard shortcuts",modify:"Edit",reset:"Reset",close:"Close",homepage:"Home Page",more:"More",moreOptions:"Expand more custom settings",translateTheWholePage:"Translate the whole page area",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Dual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"Main areas of intelligent translation","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly implement the interface of the Greasemonkey extension, please use another browser that <1>supports the Greasemonkey extension such as (Firefox Nightly version)",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:"Unknown Error",canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha enabled successfully",disableAlphaSuccess:"Alpha has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(to set up)",goSettings:"to set up",needActionForOptions:"(need to set)",translationEngine:"Engine Options",sourceLanguage:"Original language",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",forThisSite:"Site:",alwaysTranslateSomeLanguage:"Always translate {language}",neverTranslateSomeLanguage:"Never translate {language}",alwaysTranslateSomeSite:"Always translate {hostname}",neverTranslateSomeSite:"Never translate {hostname}",alwaysTranslateSomeSiteOrWildSite:"Always translate this site",alwaysTranslateSomePage:"Always translate this page",add:"Add",default:"Default",forThisLanguage:"For This Language:","add url":"Add URL",edit:"Edit","translate other languages into specific language":"Translate other languages into the language you set","select translation service":"Select a translation service",language:"Language","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",Error:"Error",allowCacheTranslations:"Enable local translation caching (reduce translation requests for duplicate paragraphs)","translation display":"Translation display style","select diplay style":"Please refer to the following examples",interface:"Interface Settings",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dashed underline","translationTheme.dotted":"Dotted Underline","translationTheme.dashedBorder":"Dashed Border","translationTheme.solidBorder":"Dashed Border","translationTheme.underline":"Straight underline","translationTheme.mask":"Blur effect","translationTheme.opacity":"Opacity effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weakening","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dashed underline","translationTheme.nativeDashed":"System Dash Underline","translationTheme.nativeDotted":"System Dotted Underline","translationTheme.nativeUnderline":"System Straight Line Underline","translationTheme.wavy":"Squiggle","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeeplX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"Translate page title","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped",enableUserscriptPagePopup:"Always show Popup windows on the page",enableUserscriptPagePopupDescription:"Three-finger touch to show the Popup.","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",currentUrl:"Current URL",confirm:"Save",cancel:"Cancel",delete:"Delete","languages.auto":"Detect Language",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",authFail:"Authorization Failed",syncTitle:"Please select a file operation",import_hint:"Import",upload:"Upload",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",download:"Download",importSuccess:"Upload Success",importFail:"Import Failed",deleteFail:"Delete Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",backupToCloudDescription:"Upload or restore backup files manually, up to 3 different backups",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",updatedAt:"Updated at {date}",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. You can choose to subscribe to <6>Pro membership to use the out-of-the-box DeepL and OpenAI translation.

You can also follow out <3>Twitter, <4>Telegram Channel, and <5>Email Subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free and we hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. ",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",qqCommunities:"QQ Channel",joinTelegramChannel:"Subscribe to our Telegram channel to get the latest updates",feedbackAndJoin:"Feedback",autoSync:"Auto-Time Sync",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization","edit border color":"Edit border color",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",enableSubtitle:"enableSubtitleTranslation",enableSubtitleDescription:"Enable translations for subtitle areas on sites like youtube",isTranslateTitleDescription:"When enabled, the page title will be translated",enableSearchEnhancement:"Enable Search Enhancement",enableSearchEnhancementDescription:'After enabling, the right sidebar will automatically display "Google News" search results for corresponding English keywords on supported websites (such as Google News, Google Search (partial keywords), Xueqiu, East Money, Futu, Tiger Community).',verifyService:"Verify service",verified:"Successful","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerMinute":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next minute. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"Requests exceed this limit will be queued until the next seconds.","description.prompt":"Send as a user to OpenAI conversation, where {{text}} indicates the text of the paragraph,{{from}} indicates the language of the paragraph,{{to}} indicates the target language, you can omit {{text}}, if so, it'll be sent as a separated message","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"Send the conversation to OpenAI as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the original language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"Default is\uFF1Ageneral. Only set up if there is an API console open domain translation, support fields see <1>Here ","field.scene":"Scene","description.scene":"Default is\uFF1Ageneral. Only set up if there is an API console open Machine Translation Professional, support fields see<1>Here","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please provide a URL with the specific path.",enabledExtension:"Enable extensions",clickToDisableExtension:"Click to disable extension",clickToEnableExtension:"Click to enable the extension",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter customization content",inputOptions:"Writing",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter for translating part of the input box.",inputStartingTriggerKeyDescription:"When you don't need to translate the entire input box, the delimiter allows you to only translate the portion from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means only translating the portion from {startingKey}ja to the end of the input box.",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting is no prefix required, the partial text translation function of the input box cannot be used temporarily.",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Start the translation by quickly pressing 3 times {trailingKey}.",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time (milliseconds) for the input to end the combo trigger",spaceKey:"",noneKey:"Translate the entire text box without prefixes",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement in the following URL",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",clickToSeeQuickDemo:"Click to expand the 30s tutorial video",inputHelperInfo:`Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001". -Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.`,reloadCurrentPage:"Please refresh the current page before starting translation",noLocalFilePermissionForPDF:"No permission to read local files. Please click the button above and upload the local file.",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate the current page",retryAllParagraphs:"Retry all paragraphs",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Noops, something went wrong",disableConfirm:"Search Enhancement Settings",disableOnce:"Disable Once",disableGlobal:"Disable Forever",disableTint:"* You can re-enable in {option}.",searchEnhancementNotes:"We have discovered notable disparities in news results between Chinese and English keywords. By activating the immersive translation Bilingual Display Enhancement feature, we will automatically search for equivalent English keywords and display them on the right side of supported websites (e.g., Google News, Google Search (partial keywords), xueqiu, East Money, Futu, Tiger). You can disable this feature if you don't need it.",option:"Settings",saveSettings:"Save",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"Enable quick press 3 times {trailingKey}, directly translate the entire input box to {inputTargetLanguage}.",enableInputTranslationWithoutTriggerKeyDescription:"To specify the target language, please add a language code at the beginning, such as: ja Hello world",mouseHoverShortcutPlaceholder:"e.g. Shift",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",needLoginAction:"(Premium or custom)",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",daily:"Daily Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",profile:"Profile",billing:"Billing",onetime_7day:"7-day Trial Pack",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt} and will not auto-renew",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly pro membership",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"Current plan: {plan}, will expire on {endAt}, will not auto-renew after expiration.
<1>Enable consecutive annual plan",upgradePlan:"Click here to upgrade to Pro membership",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",upgradeToPro:"Upgrade to Pro","popup.openPro":"Enjoy unrestricted access to DeepL and OpenAI translations after upgrading to Pro Membership. Click here to upgrade","popup.openProForPro":"You are a Pro member, you can directly use DeepL and OpenAI translations",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You have just triggered the immersive translate of the input box by quickly tapping the space key 3 times. The content of the input box will be translated into the default target language.

If this was a mistake, don't worry. You can choose to disable it this time or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show again",disableInputTranslationTips:"* You can also set other shortcuts in {option}, {learnMore}.",learnMore:"Learn more",continueEnalbeInputTranslation:"Continue to enable input translation"};var qf=[{code:"zh-CN",messages:s4},{code:"zh-TW",messages:l4},{code:"en",messages:c4}];var ju="immersiveTranslateBingGlobalState",Ot={};for(let e of qf)Ot[e.code]=e.messages;var ha="Immersive Translate",Q="immersive-translate",m4="pdf/index.html",g4="html/index.html",ge="immersiveTranslate";var p4=ge+"GoogleAccessToken",f4=ge+"AuthFlow";var Wf=ge+"AuthState",Uu=ge+"IframeMessage",j5=ge+"WaitForRateLimit",h4=ge+"DocumentMessageAsk",bt=ge+"DocumentMessageTellThirdParty",zu=ge+"showError",b4=ge+"DocumentMessageThirdPartyTell",y4=ge+"DocumentMessageEventUpload",$f=ge+"DocumentMessageHandler",Kf=`${ge}Container`,x4=`${ge}SpecifiedContainer`,Gn="buildinConfig",Lr="localConfig",Vi="openOptionsPage",Yi="openAboutPage";var Ji="openEbookViewer",Qi="openEbookBuilder";var Hu=`${ge}PageTranslatedStatus`,U5=`${ge}PageUrlChanged`,Vn=`${ge}ReceiveCommand`,E4=ge+"LastUseMouseHoverTime",Zi=ge+"LastUseInputTime",dn=ge+"LastUseManualTranslatePageTime",Pr=`${ge}PopupReceiveMessage`,Gf="immersivetranslate.com",Vf="config.immersivetranslate.com",z5=`https://${Gf}/`,Mr=`https://${Vf}/default_config.json`,H5=`${ge}Mark`,Fr="immersiveTranslateEffect",It=`${ge}Root`,q5=`data-${Q}-effect`,vn=`data-${Q}-translation-element-mark`,T4=`${ge}TranslationElementMark`,W5=`${ge}TranslatedMark`,$5=`${ge}ParagraphId`,C4=`${ge}LoadingId`,Xi=`data-${Q}-loading-id`,w4=`${ge}ErrorId`,qu=`data-${Q}-error-id`,Yf=`${ge}AtomicBlockMark`,v4=`${ge}ExcludeMark`,K5=`data-${Q}-exclude-mark`,Jf=`${ge}StayOriginalMark`,G5=`${ge}PreWhitespaceMark`,Wu=`${ge}InlineMark`,A4=`${ge}BlockMark`,V5=`${ge}Left`,Y5=`${ge}Right`,J5=`${ge}Width`,Q5=`${ge}Height`,Z5=`${ge}Top`,X5=`${ge}FontSize`,k4="lastRunTime",ex=`${ge}GlobalStyleMark`,ba=["@","#"],$u=" --- ",S4=` -`,Wt=`${Q}-target-wrapper`,tx=`${Q}-pdf-target-container`,D4=`${Q}-target-inner`,nx=`${Q}-source-wrapper`,es=`${Q}-target-translation-block-wrapper`,ax=`${Q}-root-translation-theme`,Ha=`${ge}RootTranslationTheme`,L4=`${Q}-target-translation-vertical-block-wrapper`,rx=`${Q}-target-translation-pdf-block-wrapper`,P4=`${Q}-target-translation-pre-whitespace`,ts=`${Q}-target-translation-inline-wrapper`;var M4={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]},Jt=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","ru","ar","it","ms","id","vi","af","th","ur","yue","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","nl","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu"],F4={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Detect Language",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese",zu:"Zulu","":"All Languages"},_4={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B\u8BED\u8A00",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00"},B4={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C\u8A9E\u8A00",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00"};var R4=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/"];var Ku="zh-CN";var d4=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],Bn={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},deepl:{name:"DeepL",homepage:"https://www.deepl.com/translator",docUrl:"https://immersivetranslate.com/docs/services/deepL/",providers:[{name:"pro",nameKey:"deepLProName",descriptionKey:"deepLProDescription",descriptionKeyForNormal:"deeplProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"deepLCustomName",descriptionKey:"deepLCustomDescription",descriptionLink1:"https://www.deepl.com/translator",descriptionLink2:"https://immersivetranslate.com/docs/services/deepL/"}],allProps:[{name:"authKey",providers:["custom"],label:"Auth Key",required:!0,type:"password"}]},openai:{name:"Open AI",homepage:"https://openai.com/api/",docUrl:"https://immersivetranslate.com/docs/services/openai/",providers:[{name:"pro",nameKey:"openaiProName",descriptionKey:"openaiProDescription",descriptionKeyForNormal:"openaiProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"openaiCustomName",descriptionKey:"openaiCustomDescription",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password"},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"openai-model-select",default:"gpt-3.5-turbo-0613",options:[{providers:["custom","pro"],label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{providers:["custom","pro"],label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{providers:["custom"],label:"gpt-4",value:"gpt-4"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.limitPerSecond",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.openai.com/v1/chat/completions",descriptionKey:"description.apiUrl",optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"text",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.`,reloadCurrentPage:"Please refresh the current page before starting translation",noLocalFilePermissionForPDF:"No permission to read local files. Please click the button above and upload the local file.",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate the current page",retryAllParagraphs:"Retry all paragraphs",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Noops, something went wrong",disableConfirm:"Search Enhancement Settings",disableOnce:"Disable Once",disableGlobal:"Disable Forever",disableTint:"* You can re-enable in {option}.",searchEnhancementNotes:"We have discovered notable disparities in news results between Chinese and English keywords. By activating the immersive translation Bilingual Display Enhancement feature, we will automatically search for equivalent English keywords and display them on the right side of supported websites (e.g., Google News, Google Search (partial keywords), xueqiu, East Money, Futu, Tiger). You can disable this feature if you don't need it.",option:"Settings",saveSettings:"Save",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"Enable quick press 3 times {trailingKey}, directly translate the entire input box to {inputTargetLanguage}.",enableInputTranslationWithoutTriggerKeyDescription:"To specify the target language, please add a language code at the beginning, such as: ja Hello world",mouseHoverShortcutPlaceholder:"e.g. Shift",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",needLoginAction:"(Premium or custom)",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",daily:"Daily Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",profile:"Profile",billing:"Billing",onetime_7day:"7-day Trial Pack",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt} and will not auto-renew",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly pro membership",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"Current plan: {plan}, will expire on {endAt}, will not auto-renew after expiration.
<1>Enable consecutive annual plan",upgradePlan:"Click here to upgrade to Pro membership",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",upgradeToPro:"Upgrade to Pro","popup.openPro":"Enjoy unrestricted access to DeepL and OpenAI translations after upgrading to Pro Membership. Click here to upgrade","popup.openProForPro":"You are a Pro member, you can directly use DeepL and OpenAI translations",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You have just triggered the immersive translate of the input box by quickly tapping the space key 3 times. The content of the input box will be translated into the default target language.

If this was a mistake, don't worry. You can choose to disable it this time or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show again",disableInputTranslationTips:"* You can also set other shortcuts in {option}, {learnMore}.",learnMore:"Learn more",continueEnalbeInputTranslation:"Continue to enable input translation"};var Wf=[{code:"zh-CN",messages:s4},{code:"zh-TW",messages:l4},{code:"en",messages:c4}];var Nu="immersiveTranslateBingGlobalState",Ot={};for(let e of Wf)Ot[e.code]=e.messages;var ha="Immersive Translate",Q="immersive-translate",m4="pdf/index.html",g4="html/index.html",ge="immersiveTranslate";var p4=ge+"GoogleAccessToken",f4=ge+"AuthFlow";var $f=ge+"AuthState",ju=ge+"IframeMessage",j5=ge+"WaitForRateLimit",h4=ge+"DocumentMessageAsk",bt=ge+"DocumentMessageTellThirdParty",Uu=ge+"showError",b4=ge+"DocumentMessageThirdPartyTell",y4=ge+"DocumentMessageEventUpload",Kf=ge+"DocumentMessageHandler",Gf=`${ge}Container`,x4=`${ge}SpecifiedContainer`,Gn="buildinConfig",Lr="localConfig",Vi="openOptionsPage",Yi="openAboutPage";var Ji="openEbookViewer",Qi="openEbookBuilder";var zu=`${ge}PageTranslatedStatus`,U5=`${ge}PageUrlChanged`,Vn=`${ge}ReceiveCommand`,E4=ge+"LastUseMouseHoverTime",Zi=ge+"LastUseInputTime",dn=ge+"LastUseManualTranslatePageTime",Pr=`${ge}PopupReceiveMessage`,Vf="immersivetranslate.com",Yf="config.immersivetranslate.com",z5=`https://${Vf}/`,Mr=`https://${Yf}/default_config.json`,H5=`${ge}Mark`,Fr="immersiveTranslateEffect",It=`${ge}Root`,q5=`data-${Q}-effect`,vn=`data-${Q}-translation-element-mark`,T4=`${ge}TranslationElementMark`,W5=`${ge}TranslatedMark`,$5=`${ge}ParagraphId`,C4=`${ge}LoadingId`,Xi=`data-${Q}-loading-id`,w4=`${ge}ErrorId`,Hu=`data-${Q}-error-id`,Jf=`${ge}AtomicBlockMark`,v4=`${ge}ExcludeMark`,K5=`data-${Q}-exclude-mark`,Qf=`${ge}StayOriginalMark`,G5=`${ge}PreWhitespaceMark`,qu=`${ge}InlineMark`,A4=`${ge}BlockMark`,V5=`${ge}Left`,Y5=`${ge}Right`,J5=`${ge}Width`,Q5=`${ge}Height`,Z5=`${ge}Top`,X5=`${ge}FontSize`,k4="lastRunTime",ex=`${ge}GlobalStyleMark`,ba=["@","#"],Wu=" --- ",S4=` +`,$t=`${Q}-target-wrapper`,tx=`${Q}-pdf-target-container`,D4=`${Q}-target-inner`,nx=`${Q}-source-wrapper`,es=`${Q}-target-translation-block-wrapper`,ax=`${Q}-root-translation-theme`,qa=`${ge}RootTranslationTheme`,L4=`${Q}-target-translation-vertical-block-wrapper`,rx=`${Q}-target-translation-pdf-block-wrapper`,P4=`${Q}-target-translation-pre-whitespace`,ts=`${Q}-target-translation-inline-wrapper`;var M4={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]},Qt=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","ru","ar","it","ms","id","vi","af","th","ur","yue","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","nl","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu"],F4={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Detect Language",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese",zu:"Zulu","":"All Languages"},_4={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B\u8BED\u8A00",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00"},B4={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C\u8A9E\u8A00",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00"};var R4=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/"];var $u="zh-CN";var d4=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],Bn={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},deepl:{name:"DeepL",homepage:"https://www.deepl.com/translator",docUrl:"https://immersivetranslate.com/docs/services/deepL/",providers:[{name:"pro",nameKey:"deepLProName",descriptionKey:"deepLProDescription",descriptionKeyForNormal:"deeplProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"deepLCustomName",descriptionKey:"deepLCustomDescription",descriptionLink1:"https://www.deepl.com/translator",descriptionLink2:"https://immersivetranslate.com/docs/services/deepL/"}],allProps:[{name:"authKey",providers:["custom"],label:"Auth Key",required:!0,type:"password"}]},openai:{name:"Open AI",homepage:"https://openai.com/api/",docUrl:"https://immersivetranslate.com/docs/services/openai/",providers:[{name:"pro",nameKey:"openaiProName",descriptionKey:"openaiProDescription",descriptionKeyForNormal:"openaiProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"openaiCustomName",descriptionKey:"openaiCustomDescription",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password"},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"openai-model-select",default:"gpt-3.5-turbo-0613",options:[{providers:["custom","pro"],label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{providers:["custom","pro"],label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{providers:["custom"],label:"gpt-4",value:"gpt-4"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.limitPerSecond",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.openai.com/v1/chat/completions",descriptionKey:"description.apiUrl",optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"text",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`,optional:!0}]},transmart:{name:"Transmart",homepage:"https://transmart.qq.com/"},chatgpt:{name:"ChatGPT Web(3.5 mobile)",homepage:"https://chat.openai.com",beta:!0},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:"https://immersivetranslate.com/docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text"},{name:"appSecret",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/",docUrl:"https://immersivetranslate.com/docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text"},{name:"secretKey",required:!0,type:"password"}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:"https://immersivetranslate.com/docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text"},{name:"AccessKeySecret",required:!0,type:"password"},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:"https://immersivetranslate.com/docs/services/azure/",allProps:[{name:"region",required:!0,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password"}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:"https://immersivetranslate.com/docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text"},{name:"key",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:"https://immersivetranslate.com/docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text"},{name:"secretAccessKey",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:"https://immersivetranslate.com/docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password"}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:"https://immersivetranslate.com/docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:ba,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:"https://immersivetranslate.com/docs/services/openL/",allProps:[...d4,{type:"password",name:"apikey",required:!0}],props:d4},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",alpha:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:"https://immersivetranslate.com/docs/services/niu",allProps:[{name:"APIKEY",required:!0,type:"password"}]}},Gu={type:ge+"ChildFrameToRootFrameIdentifier"},Vu=["Alt","Ctrl","Shift","Auto","Off","OtherCustom","Other"];var ns="user_from_plugin",Qt="user_info",as=Mn()||Fn()?"https://api2.immersivetranslate.com":"https://test-api2.immersivetranslate.com",ux=Mn()||Fn()?"https://immersivetranslate.com/accounts/login?from=plugin":"https://test.immersivetranslate.com/accounts/login?from=plugin",rs=Mn()||Fn()?"https://immersivetranslate.com/profile":"https://test.immersivetranslate.com/profile",_r=Mn()||Fn()?"https://immersivetranslate.com/pricing":"https://test.immersivetranslate.com/pricing",Yu=_r+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",us=_r+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",O4=_r+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal";function I4(e){let t=ee.runtime.getURL(m4),n=new URL(t);return(e.startsWith("http")||!za())&&n.searchParams.set("file",e),n.href}function N4(){return Be().PDF_VIEWER_URL}m();m();var qa=ge+"CacheKey_";function Qf(e,t){let n=qa+e;return ee.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function Zf(){let e=ee.storage.local.refresh;e&&e()}function Br(e,t){let n=qa+e;return ee.storage.local.get(n).then(a=>{if(a[n]===void 0)return t;let{value:r,expired:u}=a[n];return u&&ua.startsWith(qa));if(n.length>0)return ee.storage.local.remove(n)}}var Nt={get:Qf,set:Xf,getExpired:Br,setExpired:Rr,remove:Or,clear:eh,refresh:Zf};m();m();m();m();m();m();function Wa(){let e,t="pending",n=new Promise((a,r)=>{e={async resolve(u){await u,t="fulfilled",a(u)},reject(u){t="rejected",r(u)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}m();var os=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function Ju(e,t){let n=Wa(),a=setTimeout(()=>n.reject(new os),t);return Promise.race([e,n]).finally(()=>clearTimeout(a))}m();m();function Ir(e,t={}){let{signal:n,persistent:a}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((r,u)=>{let o=()=>{clearTimeout(l),u(new DOMException("Delay was aborted.","AbortError"))},l=setTimeout(()=>{n?.removeEventListener("abort",o),r()},e);if(n?.addEventListener("abort",o,{once:!0}),a===!1)try{Deno.unrefTimer(l)}catch(c){if(!(c instanceof ReferenceError))throw c}})}m();var j4=class{#e=0;#t=[];#n=[];#a=Wa();add(t){++this.#e,this.#r(t[Symbol.asyncIterator]())}async#r(t){try{let{value:n,done:a}=await t.next();a?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#a.resolve()}async*iterate(){for(;this.#e>0;){await this.#a;for(let t=0;tSh,bgBlue:()=>Mh,bgBrightBlack:()=>Rh,bgBrightBlue:()=>jh,bgBrightCyan:()=>zh,bgBrightGreen:()=>Ih,bgBrightMagenta:()=>Uh,bgBrightRed:()=>Oh,bgBrightWhite:()=>Hh,bgBrightYellow:()=>Nh,bgCyan:()=>_h,bgGreen:()=>Lh,bgMagenta:()=>Fh,bgRed:()=>Dh,bgRgb24:()=>Kh,bgRgb8:()=>Wh,bgWhite:()=>Bh,bgYellow:()=>Ph,black:()=>dh,blue:()=>fh,bold:()=>rh,brightBlack:()=>H4,brightBlue:()=>wh,brightCyan:()=>Ah,brightGreen:()=>Th,brightMagenta:()=>vh,brightRed:()=>Eh,brightWhite:()=>kh,brightYellow:()=>Ch,cyan:()=>bh,dim:()=>uh,getColorEnabled:()=>nh,gray:()=>xh,green:()=>gh,hidden:()=>lh,inverse:()=>sh,italic:()=>oh,magenta:()=>hh,red:()=>mh,reset:()=>ah,rgb24:()=>$h,rgb8:()=>qh,setColorEnabled:()=>th,strikethrough:()=>ch,stripColor:()=>Vh,underline:()=>ih,white:()=>yh,yellow:()=>ph});m();var{Deno:U4}=globalThis,z4=typeof U4?.noColor=="boolean"?U4.noColor:!0,is=!z4;function th(e){z4||(is=e)}function nh(){return is}function Ce(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function we(e,t){return is?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function ah(e){return we(e,Ce([0],0))}function rh(e){return we(e,Ce([1],22))}function uh(e){return we(e,Ce([2],22))}function oh(e){return we(e,Ce([3],23))}function ih(e){return we(e,Ce([4],24))}function sh(e){return we(e,Ce([7],27))}function lh(e){return we(e,Ce([8],28))}function ch(e){return we(e,Ce([9],29))}function dh(e){return we(e,Ce([30],39))}function mh(e){return we(e,Ce([31],39))}function gh(e){return we(e,Ce([32],39))}function ph(e){return we(e,Ce([33],39))}function fh(e){return we(e,Ce([34],39))}function hh(e){return we(e,Ce([35],39))}function bh(e){return we(e,Ce([36],39))}function yh(e){return we(e,Ce([37],39))}function xh(e){return H4(e)}function H4(e){return we(e,Ce([90],39))}function Eh(e){return we(e,Ce([91],39))}function Th(e){return we(e,Ce([92],39))}function Ch(e){return we(e,Ce([93],39))}function wh(e){return we(e,Ce([94],39))}function vh(e){return we(e,Ce([95],39))}function Ah(e){return we(e,Ce([96],39))}function kh(e){return we(e,Ce([97],39))}function Sh(e){return we(e,Ce([40],49))}function Dh(e){return we(e,Ce([41],49))}function Lh(e){return we(e,Ce([42],49))}function Ph(e){return we(e,Ce([43],49))}function Mh(e){return we(e,Ce([44],49))}function Fh(e){return we(e,Ce([45],49))}function _h(e){return we(e,Ce([46],49))}function Bh(e){return we(e,Ce([47],49))}function Rh(e){return we(e,Ce([100],49))}function Oh(e){return we(e,Ce([101],49))}function Ih(e){return we(e,Ce([102],49))}function Nh(e){return we(e,Ce([103],49))}function jh(e){return we(e,Ce([104],49))}function Uh(e){return we(e,Ce([105],49))}function zh(e){return we(e,Ce([106],49))}function Hh(e){return we(e,Ce([107],49))}function Yn(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function qh(e,t){return we(e,Ce([38,5,Yn(t)],39))}function Wh(e,t){return we(e,Ce([48,5,Yn(t)],49))}function $h(e,t){return typeof t=="number"?we(e,Ce([38,2,t>>16&255,t>>8&255,t&255],39)):we(e,Ce([38,2,Yn(t.r),Yn(t.g),Yn(t.b)],39))}function Kh(e,t){return typeof t=="number"?we(e,Ce([48,2,t>>16&255,t>>8&255,t&255],49)):we(e,Ce([48,2,Yn(t.r),Yn(t.g),Yn(t.b)],49))}var Gh=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function Vh(e){return e.replace(Gh,"")}m();m();var ss=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},Yh={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function ls(e,t){let n={...Yh,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let a=n.minTimeout,r;for(let u=0;usetTimeout(i,a)),a*=n.multiplier,a=Math.max(a,n.minTimeout),n.maxTimeout>=0&&(a=Math.min(a,n.maxTimeout)),r=o}throw new ss(r,n.maxAttempts)}m();var Rn=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function cs(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",a,r=t.length;for(a=2;a>2],n+=Rn[(t[a-2]&3)<<4|t[a-1]>>4],n+=Rn[(t[a-1]&15)<<2|t[a]>>6],n+=Rn[t[a]&63];return a===r+1&&(n+=Rn[t[a-2]>>2],n+=Rn[(t[a-2]&3)<<4],n+="=="),a===r&&(n+=Rn[t[a-2]>>2],n+=Rn[(t[a-2]&3)<<4|t[a-1]>>4],n+=Rn[(t[a-1]&15)<<2],n+="="),n}m();m();var rE=Number.isNaN||function(e){return typeof e=="number"&&e!==e};m();m();var Qu=globalThis||(typeof window<"u"?window:self),Qh=Object.create,ms=Object.defineProperty,Zh=Object.getOwnPropertyDescriptor,Xh=Object.getOwnPropertyNames,e2=Object.getPrototypeOf,t2=Object.prototype.hasOwnProperty,n2=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),a2=(e,t)=>{for(var n in t)ms(e,n,{get:t[n],enumerable:!0})},ds=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Xh(t))!t2.call(e,r)&&r!==n&&ms(e,r,{get:()=>t[r],enumerable:!(a=Zh(t,r))||a.enumerable});return e},r2=(e,t,n)=>(ds(e,t,"default"),n&&ds(n,t,"default")),W4=(e,t,n)=>(n=e!=null?Qh(e2(e)):{},ds(t||!e||!e.__esModule?ms(n,"default",{value:e,enumerable:!0}):n,e)),$4=n2((e,t)=>{var n="Expected a function",a=NaN,r="[object Symbol]",u=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt,s=typeof Qu=="object"&&Qu&&Qu.Object===Object&&Qu,g=typeof self=="object"&&self&&self.Object===Object&&self,p=s||g||Function("return this")(),f=Object.prototype,d=f.toString,b=Math.max,C=Math.min,h=function(){return p.Date.now()};function A(k,v,E){var R,F,w,B,I,N,P=0,x=!1,D=!1,M=!0;if(typeof k!="function")throw new TypeError(n);v=T(v)||0,U(E)&&(x=!!E.leading,D="maxWait"in E,w=D?b(T(E.maxWait)||0,v):w,M="trailing"in E?!!E.trailing:M);function q(ue){var G=R,ie=F;return R=F=void 0,P=ue,B=k.apply(ie,G),B}function j(ue){return P=ue,I=setTimeout(ae,v),x?q(ue):B}function $(ue){var G=ue-N,ie=ue-P,me=v-G;return D?C(me,w-ie):me}function z(ue){var G=ue-N,ie=ue-P;return N===void 0||G>=v||G<0||D&&ie>=w}function ae(){var ue=h();if(z(ue))return J(ue);I=setTimeout(ae,$(ue))}function J(ue){return I=void 0,M&&R?q(ue):(R=F=void 0,B)}function Y(){I!==void 0&&clearTimeout(I),P=0,R=N=F=I=void 0}function pe(){return I===void 0?B:J(h())}function fe(){var ue=h(),G=z(ue);if(R=arguments,F=this,N=ue,G){if(I===void 0)return j(N);if(D)return I=setTimeout(ae,v),q(N)}return I===void 0&&(I=setTimeout(ae,v)),B}return fe.cancel=Y,fe.flush=pe,fe}function S(k,v,E){var R=!0,F=!0;if(typeof k!="function")throw new TypeError(n);return U(E)&&(R="leading"in E?!!E.leading:R,F="trailing"in E?!!E.trailing:F),A(k,v,{leading:R,maxWait:v,trailing:F})}function U(k){var v=typeof k;return!!k&&(v=="object"||v=="function")}function O(k){return!!k&&typeof k=="object"}function y(k){return typeof k=="symbol"||O(k)&&d.call(k)==r}function T(k){if(typeof k=="number")return k;if(y(k))return a;if(U(k)){var v=typeof k.valueOf=="function"?k.valueOf():k;k=U(v)?v+"":v}if(typeof k!="string")return k===0?k:+k;k=k.replace(u,"");var E=i.test(k);return E||l.test(k)?c(k.slice(2),E?2:8):o.test(k)?a:+k}t.exports=S}),K4={};a2(K4,{default:()=>yt});var u2=W4($4());r2(K4,W4($4()));var{default:q4,...o2}=u2,yt=q4!==void 0?q4:o2;m();m();var i2=Object.create,ps=Object.defineProperty,s2=Object.getOwnPropertyDescriptor,l2=Object.getOwnPropertyNames,c2=Object.getPrototypeOf,d2=Object.prototype.hasOwnProperty,m2=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),g2=(e,t)=>{for(var n in t)ps(e,n,{get:t[n],enumerable:!0})},gs=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of l2(t))!d2.call(e,r)&&r!==n&&ps(e,r,{get:()=>t[r],enumerable:!(a=s2(t,r))||a.enumerable});return e},p2=(e,t,n)=>(gs(e,t,"default"),n&&gs(n,t,"default")),V4=(e,t,n)=>(n=e!=null?i2(c2(e)):{},gs(t||!e||!e.__esModule?ps(n,"default",{value:e,enumerable:!0}):n,e)),Y4=m2((e,t)=>{(function(n,a){typeof e=="object"&&typeof t=="object"?t.exports=a():typeof define=="function"&&define.amd?define([],a):typeof e=="object"?e.notie=a():n.notie=a()})(e,function(){return function(n){function a(u){if(r[u])return r[u].exports;var o=r[u]={i:u,l:!1,exports:{}};return n[u].call(o.exports,o,o.exports,a),o.l=!0,o.exports}var r={};return a.m=n,a.c=r,a.i=function(u){return u},a.d=function(u,o,i){a.o(u,o)||Object.defineProperty(u,o,{configurable:!1,enumerable:!0,get:i})},a.n=function(u){var o=u&&u.__esModule?function(){return u.default}:function(){return u};return a.d(o,"a",o),o},a.o=function(u,o){return Object.prototype.hasOwnProperty.call(u,o)},a.p="",a(a.s=1)}([function(n,a){n.exports=function(r){return r.webpackPolyfill||(r.deprecate=function(){},r.paths=[],r.children||(r.children=[]),Object.defineProperty(r,"loaded",{enumerable:!0,get:function(){return r.l}}),Object.defineProperty(r,"id",{enumerable:!0,get:function(){return r.i}}),r.webpackPolyfill=1),r}},function(n,a,r){"use strict";(function(u){var o,i,l,c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s};(function(s,g){c(a)==="object"&&c(u)==="object"?u.exports=g():(i=[],o=g,l=typeof o=="function"?o.apply(a,i):o,l!==void 0&&(u.exports=l))})(void 0,function(){return function(s){function g(f){if(p[f])return p[f].exports;var d=p[f]={i:f,l:!1,exports:{}};return s[f].call(d.exports,d,d.exports,g),d.l=!0,d.exports}var p={};return g.m=s,g.c=p,g.i=function(f){return f},g.d=function(f,d,b){g.o(f,d)||Object.defineProperty(f,d,{configurable:!1,enumerable:!0,get:b})},g.n=function(f){var d=f&&f.__esModule?function(){return f.default}:function(){return f};return g.d(d,"a",d),d},g.o=function(f,d){return Object.prototype.hasOwnProperty.call(f,d)},g.p="",g(g.s=0)}([function(s,g,p){function f(j,$){var z={};for(var ae in j)$.indexOf(ae)>=0||Object.prototype.hasOwnProperty.call(j,ae)&&(z[ae]=j[ae]);return z}Object.defineProperty(g,"__esModule",{value:!0});var d=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(j){return typeof j>"u"?"undefined":c(j)}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j>"u"?"undefined":c(j)},b=Object.assign||function(j){for(var $=1;$'+ae+"",ie.onclick=function(){return F(me,G)},ie.listener=function(ce){(v(ce)||E(ce))&&I()},R(ie,G),Y&&Y<1&&(Y=1),!fe&&Y&&U(Y).then(function(){return F(me,G)})},P=g.force=function(j,$){var z=j.type,ae=z===void 0?5:z,J=j.text,Y=j.buttonText,pe=Y===void 0?"OK":Y,fe=j.callback,ue=j.position,G=ue===void 0?h.positions.force||G.top:ue;O(),I();var ie=document.createElement("div"),me=y();ie.id=me;var ce=document.createElement("div");ce.classList.add(h.classes.textbox),ce.classList.add(h.classes.backgroundInfo),ce.innerHTML='
'+J+"
";var ye=document.createElement("div");ye.classList.add(h.classes.button),ye.classList.add(T[ae]),ye.innerHTML=pe,ye.onclick=function(){F(me,G),B(),fe?fe():$&&$()},ie.appendChild(ce),ie.appendChild(ye),ie.listener=function(Se){v(Se)&&ye.click()},R(ie,G),w()},x=g.confirm=function(j,$,z){var ae=j.text,J=j.submitText,Y=J===void 0?"Yes":J,pe=j.cancelText,fe=pe===void 0?"Cancel":pe,ue=j.submitCallback,G=j.cancelCallback,ie=j.position,me=ie===void 0?h.positions.confirm||me.top:ie;O(),I();var ce=document.createElement("div"),ye=y();ce.id=ye;var Se=document.createElement("div");Se.classList.add(h.classes.textbox),Se.classList.add(h.classes.backgroundInfo),Se.innerHTML='
'+ae+"
";var xe=document.createElement("div");xe.classList.add(h.classes.button),xe.classList.add(h.classes.elementHalf),xe.classList.add(h.classes.backgroundSuccess),xe.innerHTML=Y,xe.onclick=function(){F(ye,me),B(),ue?ue():$&&$()};var Z=document.createElement("div");Z.classList.add(h.classes.button),Z.classList.add(h.classes.elementHalf),Z.classList.add(h.classes.backgroundError),Z.innerHTML=fe,Z.onclick=function(){F(ye,me),B(),G?G():z&&z()},ce.appendChild(Se),ce.appendChild(xe),ce.appendChild(Z),ce.listener=function(ke){v(ke)?xe.click():E(ke)&&Z.click()},R(ce,me),w(ce,me)},D=function(j,$,z){var ae=j.text,J=j.submitText,Y=J===void 0?"Submit":J,pe=j.cancelText,fe=pe===void 0?"Cancel":pe,ue=j.submitCallback,G=j.cancelCallback,ie=j.position,me=ie===void 0?h.positions.input||me.top:ie,ce=f(j,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);O(),I();var ye=document.createElement("div"),Se=y();ye.id=Se;var xe=document.createElement("div");xe.classList.add(h.classes.textbox),xe.classList.add(h.classes.backgroundInfo),xe.innerHTML='
'+ae+"
";var Z=document.createElement("input");Z.classList.add(h.classes.inputField),Z.setAttribute("autocapitalize",ce.autocapitalize||"none"),Z.setAttribute("autocomplete",ce.autocomplete||"off"),Z.setAttribute("autocorrect",ce.autocorrect||"off"),Z.setAttribute("autofocus",ce.autofocus||"true"),Z.setAttribute("inputmode",ce.inputmode||"verbatim"),Z.setAttribute("max",ce.max||""),Z.setAttribute("maxlength",ce.maxlength||""),Z.setAttribute("min",ce.min||""),Z.setAttribute("minlength",ce.minlength||""),Z.setAttribute("placeholder",ce.placeholder||""),Z.setAttribute("spellcheck",ce.spellcheck||"default"),Z.setAttribute("step",ce.step||"any"),Z.setAttribute("type",ce.type||"text"),Z.value=ce.value||"",ce.allowed&&(Z.oninput=function(){var Oe=void 0;if(Array.isArray(ce.allowed)){for(var Ue="",it=ce.allowed,_t=0;_t'+z+"",G.appendChild(me),pe.forEach(function(ye,Se){var xe=ye.type,Z=xe===void 0?1:xe,ke=ye.text,Le=ye.handler,Oe=document.createElement("div");Oe.classList.add(T[Z]),Oe.classList.add(h.classes.button),Oe.classList.add(h.classes.selectChoice);var Ue=pe[Se+1];Ue&&!Ue.type&&(Ue.type=1),Ue&&Ue.type===Z&&Oe.classList.add(h.classes.selectChoiceRepeated),Oe.innerHTML=ke,Oe.onclick=function(){F(ie,ue),B(),Le()},G.appendChild(Oe)});var ce=document.createElement("div");ce.classList.add(h.classes.backgroundNeutral),ce.classList.add(h.classes.button),ce.innerHTML=J,ce.onclick=function(){F(ie,ue),B(),Y?Y():$&&$()},G.appendChild(ce),G.listener=function(ye){E(ye)&&ce.click()},R(G,ue),w(G,ue)},q=g.date=function(j,$,z){var ae=j.value,J=ae===void 0?new Date:ae,Y=j.submitText,pe=Y===void 0?"OK":Y,fe=j.cancelText,ue=fe===void 0?"Cancel":fe,G=j.submitCallback,ie=j.cancelCallback,me=j.position,ce=me===void 0?h.positions.date||ce.top:me;O(),I();var ye="▾",Se=document.createElement("div"),xe=document.createElement("div"),Z=document.createElement("div"),ke=function(He){Se.innerHTML=h.dateMonths[He.getMonth()],xe.innerHTML=He.getDate(),Z.innerHTML=He.getFullYear()},Le=function(He){var W=new Date(J.getFullYear(),J.getMonth()+1,0).getDate(),de=He.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(de)>W&&(de=W.toString()),He.target.textContent=de,Number(de)<1&&(de="1"),J.setDate(Number(de))},Oe=function(He){var W=He.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);He.target.textContent=W,J.setFullYear(Number(W))},Ue=function(He){ke(J)},it=function(He){var W=new Date(J.getFullYear(),J.getMonth()+He+1,0).getDate();J.getDate()>W&&J.setDate(W),J.setMonth(J.getMonth()+He),ke(J)},_t=function(He){J.setDate(J.getDate()+He),ke(J)},ga=function(He){var W=J.getFullYear()+He;W<0?J.setFullYear(0):J.setFullYear(J.getFullYear()+He),ke(J)},zt=document.createElement("div"),Dn=y();zt.id=Dn;var qn=document.createElement("div");qn.classList.add(h.classes.backgroundInfo);var Ie=document.createElement("div");Ie.classList.add(h.classes.dateSelectorInner);var Ht=document.createElement("div");Ht.classList.add(h.classes.button),Ht.classList.add(h.classes.elementThird),Ht.classList.add(h.classes.dateSelectorUp),Ht.innerHTML=ye;var at=document.createElement("div");at.classList.add(h.classes.button),at.classList.add(h.classes.elementThird),at.classList.add(h.classes.dateSelectorUp),at.innerHTML=ye;var We=document.createElement("div");We.classList.add(h.classes.button),We.classList.add(h.classes.elementThird),We.classList.add(h.classes.dateSelectorUp),We.innerHTML=ye,Se.classList.add(h.classes.element),Se.classList.add(h.classes.elementThird),Se.innerHTML=h.dateMonths[J.getMonth()],xe.classList.add(h.classes.element),xe.classList.add(h.classes.elementThird),xe.setAttribute("contentEditable",!0),xe.addEventListener("input",Le),xe.addEventListener("blur",Ue),xe.innerHTML=J.getDate(),Z.classList.add(h.classes.element),Z.classList.add(h.classes.elementThird),Z.setAttribute("contentEditable",!0),Z.addEventListener("input",Oe),Z.addEventListener("blur",Ue),Z.innerHTML=J.getFullYear();var Vt=document.createElement("div");Vt.classList.add(h.classes.button),Vt.classList.add(h.classes.elementThird),Vt.innerHTML=ye;var Bt=document.createElement("div");Bt.classList.add(h.classes.button),Bt.classList.add(h.classes.elementThird),Bt.innerHTML=ye;var Wn=document.createElement("div");Wn.classList.add(h.classes.button),Wn.classList.add(h.classes.elementThird),Wn.innerHTML=ye,Ht.onclick=function(){return it(1)},at.onclick=function(){return _t(1)},We.onclick=function(){return ga(1)},Vt.onclick=function(){return it(-1)},Bt.onclick=function(){return _t(-1)},Wn.onclick=function(){return ga(-1)};var dt=document.createElement("div");dt.classList.add(h.classes.button),dt.classList.add(h.classes.elementHalf),dt.classList.add(h.classes.backgroundSuccess),dt.innerHTML=pe,dt.onclick=function(){F(Dn,ce),B(),G?G(J):$&&$(J)};var cn=document.createElement("div");cn.classList.add(h.classes.button),cn.classList.add(h.classes.elementHalf),cn.classList.add(h.classes.backgroundError),cn.innerHTML=ue,cn.onclick=function(){F(Dn,ce),B(),ie?ie(J):z&&z(J)},Ie.appendChild(Ht),Ie.appendChild(at),Ie.appendChild(We),Ie.appendChild(Se),Ie.appendChild(xe),Ie.appendChild(Z),Ie.appendChild(Vt),Ie.appendChild(Bt),Ie.appendChild(Wn),qn.appendChild(Ie),zt.appendChild(qn),zt.appendChild(dt),zt.appendChild(cn),zt.listener=function(He){v(He)?dt.click():E(He)&&cn.click()},R(zt,ce),w(zt,ce)};g.default={alert:N,force:P,confirm:x,input:D,select:M,date:q,setOptions:A,hideAlerts:I}}])})}).call(a,r(0)(n))}])})}),J4={};g2(J4,{default:()=>Zu});var f2=V4(Y4());p2(J4,V4(Y4()));var{default:G4,...h2}=f2,Zu=G4!==void 0?G4:h2;m();m();var fs=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function hs(e,t,n,a){e.addEventListener?e.addEventListener(t,n,a):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function td(e,t){for(var n=t.slice(0,t.length-1),a=0;a=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function b2(e,t){for(var n=e.length>=t.length?e:t,a=e.length>=t.length?t:e,r=!0,u=0;u=0&&qe.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&qe.splice(0,qe.length),(t===93||t===224)&&(t=91),t in mt){mt[t]=!1;for(var a in An)An[a]===t&&(Ve[a]=!1)}}function k2(e){if(typeof e>"u")Object.keys(et).forEach(function(o){return delete et[o]});else if(Array.isArray(e))e.forEach(function(o){o.key&&bs(o)});else if(typeof e=="object")e.key&&bs(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a1?td(An,l):[];et[g]=et[g].filter(function(f){var d=a?f.method===a:!0;return!(d&&f.scope===n&&b2(f.mods,p))})}})};function Z4(e,t,n,a){if(t.element===a){var r;if(t.scope===n||t.scope==="all"){r=t.mods.length>0;for(var u in mt)Object.prototype.hasOwnProperty.call(mt,u)&&(!mt[u]&&t.mods.indexOf(+u)>-1||mt[u]&&t.mods.indexOf(+u)===-1)&&(r=!1);(t.mods.length===0&&!mt[16]&&!mt[18]&&!mt[17]&&!mt[91]||r||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function X4(e,t){var n=et["*"],a=e.keyCode||e.which||e.charCode;if(Ve.filter.call(this,e)){if((a===93||a===224)&&(a=91),qe.indexOf(a)===-1&&a!==229&&qe.push(a),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(d){var b=xs[d];e[d]&&qe.indexOf(b)===-1?qe.push(b):!e[d]&&qe.indexOf(b)>-1?qe.splice(qe.indexOf(b),1):d==="metaKey"&&e[d]&&qe.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(qe=qe.slice(qe.indexOf(b))))}),a in mt){mt[a]=!0;for(var r in An)An[r]===a&&(Ve[r]=!0);if(!n)return}for(var u in mt)Object.prototype.hasOwnProperty.call(mt,u)&&(mt[u]=e[xs[u]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(qe.indexOf(17)===-1&&qe.push(17),qe.indexOf(18)===-1&&qe.push(18),mt[17]=!0,mt[18]=!0);var o=Ur();if(n)for(var i=0;i-1}function Ve(e,t,n){qe=[];var a=nd(e),r=[],u="all",o=document,i=0,l=!1,c=!0,s="+",g=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(u=t.scope),t.element&&(o=t.element),t.keyup&&(l=t.keyup),t.keydown!==void 0&&(c=t.keydown),t.capture!==void 0&&(g=t.capture),typeof t.splitKey=="string"&&(s=t.splitKey)),typeof t=="string"&&(u=t);i1&&(r=td(An,e)),e=e[e.length-1],e=e==="*"?"*":eo(e),e in et||(et[e]=[]),et[e].push({keyup:l,keydown:c,scope:u,mods:r,shortcut:a[i],method:n,key:a[i],splitKey:s,element:o});typeof o<"u"&&!S2(o)&&window&&(rd.push(o),hs(o,"keydown",function(p){X4(p,o)},g),Q4||(Q4=!0,hs(window,"focus",function(){qe=[]},g)),hs(o,"keyup",function(p){X4(p,o),A2(p)},g))}function D2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(et).forEach(function(n){var a=et[n].filter(function(r){return r.scope===t&&r.shortcut===e});a.forEach(function(r){r&&r.method&&r.method()})})}var ys={getPressedKeyString:T2,setScope:ud,getScope:Ur,deleteScope:v2,getPressedKeyCodes:E2,isPressed:w2,filter:C2,trigger:D2,unbind:k2,keyMap:jr,modifier:An,modifierMap:xs};for(Xu in ys)Object.prototype.hasOwnProperty.call(ys,Xu)&&(Ve[Xu]=ys[Xu]);var Xu;typeof document<"u"&&(ed=window.hotkeys,Ve.noConflict=function(e){return e&&window.hotkeys===Ve&&(window.hotkeys=ed),Ve},window.hotkeys=Ve);var ed;m();m();var L2={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},id={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Ze={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},kt={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Jn={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},K=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let a=K.getVersionPrecision(e),r=K.getVersionPrecision(t),u=Math.max(a,r),o=0,i=K.map([e,t],l=>{let c=u-K.getVersionPrecision(l),s=l+new Array(c+1).join(".0");return K.map(s.split("."),g=>new Array(20-g.length).join("0")+g).reverse()});for(n&&(o=u-Math.min(a,r)),u-=1;u>=o;){if(i[0][u]>i[1][u])return 1;if(i[0][u]===i[1][u]){if(u===o)return 0;u-=1}else if(i[0][u]{n[o]=u[o]})}return e}static getBrowserAlias(e){return L2[e]}static getBrowserTypeByAlias(e){return id[e]||""}},je=/version\/(\d+(\.?_?\d+)+)/i,P2=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=K.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=K.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=K.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=K.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=K.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=K.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=K.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=K.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=K.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=K.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=K.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=K.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=K.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=K.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=K.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=K.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=K.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=K.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=K.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=K.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=K.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=K.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=K.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=K.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=K.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=K.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=K.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,a=e.search("\\(")!==-1?n:t;return{name:K.getFirstMatch(a,e),version:K.getSecondMatch(a,e)}}}],M2=P2,F2=[{test:[/Roku\/DVP/],describe(e){let t=K.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:kt.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=K.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:kt.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=K.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=K.getWindowsVersionName(t);return{name:kt.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:kt.iOS},n=K.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=K.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=K.getMacOSVersionName(t),a={name:kt.MacOS,version:t};return n&&(a.versionName=n),a}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=K.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:kt.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=K.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=K.getAndroidVersionName(t),a={name:kt.Android,version:t};return n&&(a.versionName=n),a}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=K.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:kt.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=K.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||K.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||K.getFirstMatch(/\bbb(\d+)/i,e);return{name:kt.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=K.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:kt.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=K.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:kt.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:kt.Linux}}},{test:[/CrOS/],describe(){return{name:kt.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=K.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:kt.PlayStation4,version:t}}}],_2=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=K.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Ze.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Ze.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Ze.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Ze.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Ze.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Ze.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Ze.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=K.getFirstMatch(/(ipod|iphone)/i,e);return{type:Ze.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Ze.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Ze.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Ze.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Ze.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Ze.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Ze.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Ze.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Ze.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Ze.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Ze.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Ze.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Ze.tv}}}],B2=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Jn.Blink};let t=K.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Jn.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:Jn.Trident},n=K.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:Jn.Presto},n=K.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:Jn.Gecko},n=K.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Jn.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:Jn.WebKit},n=K.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],R2=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=K.find(M2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=K.find(F2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=K.find(_2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=K.find(B2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return K.assign({},this.parsedResult)}satisfies(e){let t={},n=0,a={},r=0;if(Object.keys(e).forEach(u=>{let o=e[u];typeof o=="string"?(a[u]=o,r+=1):typeof o=="object"&&(t[u]=o,n+=1)}),n>0){let u=Object.keys(t),o=K.find(u,l=>this.isOS(l));if(o){let l=this.satisfies(t[o]);if(l!==void 0)return l}let i=K.find(u,l=>this.isPlatform(l));if(i){let l=this.satisfies(t[i]);if(l!==void 0)return l}}if(r>0){let u=Object.keys(a),o=K.find(u,i=>this.isBrowser(i,!0));if(o!==void 0)return this.compareVersion(a[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),a=e.toLowerCase(),r=K.getBrowserTypeByAlias(a);return t&&r&&(a=r.toLowerCase()),a===n}compareVersion(e){let t=[0],n=e,a=!1,r=this.getBrowserVersion();if(typeof r=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(a=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(a=!0,n=e.substr(1)),t.indexOf(K.compareVersions(r,n,a))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},od=R2,O2=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new od(e,t)}static parse(e){return new od(e).getResult()}static get BROWSER_MAP(){return id}static get ENGINE_MAP(){return Jn}static get OS_MAP(){return kt}static get PLATFORMS_MAP(){return Ze}},$a=O2;m();m();var{entries:fd,setPrototypeOf:sd,isFrozen:I2,getPrototypeOf:N2,getOwnPropertyDescriptor:j2}=Object,{freeze:St,seal:gn,create:U2}=Object,{apply:As,construct:ks}=typeof Reflect<"u"&&Reflect;As||(As=function(e,t,n){return e.apply(t,n)});St||(St=function(e){return e});gn||(gn=function(e){return e});ks||(ks=function(e,t){return new e(...t)});var z2=Xt(Array.prototype.forEach),ld=Xt(Array.prototype.pop),zr=Xt(Array.prototype.push),ao=Xt(String.prototype.toLowerCase),Es=Xt(String.prototype.toString),H2=Xt(String.prototype.match),mn=Xt(String.prototype.replace),q2=Xt(String.prototype.indexOf),W2=Xt(String.prototype.trim),$t=Xt(RegExp.prototype.test),Hr=$2(TypeError);function Xt(e){return function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r/gm),J2=gn(/\${[\w\W]*}/gm),Q2=gn(/^data-[\-\w.\u00B7-\uFFFF]/),Z2=gn(/^aria-[\-\w]+$/),hd=gn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),X2=gn(/^(?:\w+script|data):/i),e1=gn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),bd=gn(/^html$/i),pd=Object.freeze({__proto__:null,MUSTACHE_EXPR:V2,ERB_EXPR:Y2,TMPLIT_EXPR:J2,DATA_ATTR:Q2,ARIA_ATTR:Z2,IS_ALLOWED_URI:hd,IS_SCRIPT_OR_DATA:X2,ATTR_WHITESPACE:e1,DOCTYPE_NAME:bd}),t1=()=>typeof window>"u"?null:window,n1=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,a="data-tt-policy-suffix";t&&t.hasAttribute(a)&&(n=t.getAttribute(a));let r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML(u){return u},createScriptURL(u){return u}})}catch{return null}};function yd(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t1(),t=L=>yd(L);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,a=n.currentScript,{document:r}=e,{DocumentFragment:u,HTMLTemplateElement:o,Node:i,Element:l,NodeFilter:c,NamedNodeMap:s=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:g,DOMParser:p,trustedTypes:f}=e,d=l.prototype,b=to(d,"cloneNode"),C=to(d,"nextSibling"),h=to(d,"childNodes"),A=to(d,"parentNode");if(typeof o=="function"){let L=r.createElement("template");L.content&&L.content.ownerDocument&&(r=L.content.ownerDocument)}let S,U="",{implementation:O,createNodeIterator:y,createDocumentFragment:T,getElementsByTagName:k}=r,{importNode:v}=n,E={};t.isSupported=typeof fd=="function"&&typeof A=="function"&&O&&O.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:R,ERB_EXPR:F,TMPLIT_EXPR:w,DATA_ATTR:B,ARIA_ATTR:I,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:P}=pd,{IS_ALLOWED_URI:x}=pd,D=null,M=De({},[...cd,...Ts,...Cs,...ws,...dd]),q=null,j=De({},[...md,...vs,...gd,...no]),$=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),z=null,ae=null,J=!0,Y=!0,pe=!1,fe=!0,ue=!1,G=!1,ie=!1,me=!1,ce=!1,ye=!1,Se=!1,xe=!0,Z=!1,ke="user-content-",Le=!0,Oe=!1,Ue={},it=null,_t=De({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ga=null,zt=De({},["audio","video","img","source","image","track"]),Dn=null,qn=De({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ie="http://www.w3.org/1998/Math/MathML",Ht="http://www.w3.org/2000/svg",at="http://www.w3.org/1999/xhtml",We=at,Vt=!1,Bt=null,Wn=De({},[Ie,Ht,at],Es),dt,cn=["application/xhtml+xml","text/html"],He="text/html",W,de=null,Ke=r.createElement("form"),Pe=function(L){return L instanceof RegExp||L instanceof Function},Fe=function(L){if(!(de&&de===L)){if((!L||typeof L!="object")&&(L={}),L=Ka(L),dt=cn.indexOf(L.PARSER_MEDIA_TYPE)===-1?dt=He:dt=L.PARSER_MEDIA_TYPE,W=dt==="application/xhtml+xml"?Es:ao,D="ALLOWED_TAGS"in L?De({},L.ALLOWED_TAGS,W):M,q="ALLOWED_ATTR"in L?De({},L.ALLOWED_ATTR,W):j,Bt="ALLOWED_NAMESPACES"in L?De({},L.ALLOWED_NAMESPACES,Es):Wn,Dn="ADD_URI_SAFE_ATTR"in L?De(Ka(qn),L.ADD_URI_SAFE_ATTR,W):qn,ga="ADD_DATA_URI_TAGS"in L?De(Ka(zt),L.ADD_DATA_URI_TAGS,W):zt,it="FORBID_CONTENTS"in L?De({},L.FORBID_CONTENTS,W):_t,z="FORBID_TAGS"in L?De({},L.FORBID_TAGS,W):{},ae="FORBID_ATTR"in L?De({},L.FORBID_ATTR,W):{},Ue="USE_PROFILES"in L?L.USE_PROFILES:!1,J=L.ALLOW_ARIA_ATTR!==!1,Y=L.ALLOW_DATA_ATTR!==!1,pe=L.ALLOW_UNKNOWN_PROTOCOLS||!1,fe=L.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ue=L.SAFE_FOR_TEMPLATES||!1,G=L.WHOLE_DOCUMENT||!1,ce=L.RETURN_DOM||!1,ye=L.RETURN_DOM_FRAGMENT||!1,Se=L.RETURN_TRUSTED_TYPE||!1,me=L.FORCE_BODY||!1,xe=L.SANITIZE_DOM!==!1,Z=L.SANITIZE_NAMED_PROPS||!1,Le=L.KEEP_CONTENT!==!1,Oe=L.IN_PLACE||!1,x=L.ALLOWED_URI_REGEXP||hd,We=L.NAMESPACE||at,$=L.CUSTOM_ELEMENT_HANDLING||{},L.CUSTOM_ELEMENT_HANDLING&&Pe(L.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&($.tagNameCheck=L.CUSTOM_ELEMENT_HANDLING.tagNameCheck),L.CUSTOM_ELEMENT_HANDLING&&Pe(L.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&($.attributeNameCheck=L.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),L.CUSTOM_ELEMENT_HANDLING&&typeof L.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&($.allowCustomizedBuiltInElements=L.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ue&&(Y=!1),ye&&(ce=!0),Ue&&(D=De({},[...dd]),q=[],Ue.html===!0&&(De(D,cd),De(q,md)),Ue.svg===!0&&(De(D,Ts),De(q,vs),De(q,no)),Ue.svgFilters===!0&&(De(D,Cs),De(q,vs),De(q,no)),Ue.mathMl===!0&&(De(D,ws),De(q,gd),De(q,no))),L.ADD_TAGS&&(D===M&&(D=Ka(D)),De(D,L.ADD_TAGS,W)),L.ADD_ATTR&&(q===j&&(q=Ka(q)),De(q,L.ADD_ATTR,W)),L.ADD_URI_SAFE_ATTR&&De(Dn,L.ADD_URI_SAFE_ATTR,W),L.FORBID_CONTENTS&&(it===_t&&(it=Ka(it)),De(it,L.FORBID_CONTENTS,W)),Le&&(D["#text"]=!0),G&&De(D,["html","head","body"]),D.table&&(De(D,["tbody"]),delete z.tbody),L.TRUSTED_TYPES_POLICY){if(typeof L.TRUSTED_TYPES_POLICY.createHTML!="function")throw Hr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof L.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Hr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=L.TRUSTED_TYPES_POLICY,U=S.createHTML("")}else S===void 0&&(S=n1(f,a)),S!==null&&typeof U=="string"&&(U=S.createHTML(""));St&&St(L),de=L}},Ln=De({},["mi","mo","mn","ms","mtext"]),wn=De({},["foreignobject","desc","title","annotation-xml"]),Yt=De({},["title","style","font","a","script"]),Ra=De({},Ts);De(Ra,Cs),De(Ra,K2);let _i=De({},ws);De(_i,G2);let of=function(L){let oe=A(L);(!oe||!oe.tagName)&&(oe={namespaceURI:We,tagName:"template"});let X=ao(L.tagName),_e=ao(oe.tagName);return Bt[L.namespaceURI]?L.namespaceURI===Ht?oe.namespaceURI===at?X==="svg":oe.namespaceURI===Ie?X==="svg"&&(_e==="annotation-xml"||Ln[_e]):!!Ra[X]:L.namespaceURI===Ie?oe.namespaceURI===at?X==="math":oe.namespaceURI===Ht?X==="math"&&wn[_e]:!!_i[X]:L.namespaceURI===at?oe.namespaceURI===Ht&&!wn[_e]||oe.namespaceURI===Ie&&!Ln[_e]?!1:!_i[X]&&(Yt[X]||!Ra[X]):!!(dt==="application/xhtml+xml"&&Bt[L.namespaceURI]):!1},Oa=function(L){zr(t.removed,{element:L});try{L.parentNode.removeChild(L)}catch{L.remove()}},Bi=function(L,oe){try{zr(t.removed,{attribute:oe.getAttributeNode(L),from:oe})}catch{zr(t.removed,{attribute:null,from:oe})}if(oe.removeAttribute(L),L==="is"&&!q[L])if(ce||ye)try{Oa(oe)}catch{}else try{oe.setAttribute(L,"")}catch{}},lc=function(L){let oe,X;if(me)L=""+L;else{let vt=H2(L,/^[\r\n\t ]+/);X=vt&&vt[0]}dt==="application/xhtml+xml"&&We===at&&(L=''+L+"");let _e=S?S.createHTML(L):L;if(We===at)try{oe=new p().parseFromString(_e,dt)}catch{}if(!oe||!oe.documentElement){oe=O.createDocument(We,"template",null);try{oe.documentElement.innerHTML=Vt?U:_e}catch{}}let rt=oe.body||oe.documentElement;return L&&X&&rt.insertBefore(r.createTextNode(X),rt.childNodes[0]||null),We===at?k.call(oe,G?"html":"body")[0]:G?oe.documentElement:rt},cc=function(L){return y.call(L.ownerDocument||L,L,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},sf=function(L){return L instanceof g&&(typeof L.nodeName!="string"||typeof L.textContent!="string"||typeof L.removeChild!="function"||!(L.attributes instanceof s)||typeof L.removeAttribute!="function"||typeof L.setAttribute!="function"||typeof L.namespaceURI!="string"||typeof L.insertBefore!="function"||typeof L.hasChildNodes!="function")},Eu=function(L){return typeof i=="object"?L instanceof i:L&&typeof L=="object"&&typeof L.nodeType=="number"&&typeof L.nodeName=="string"},Pn=function(L,oe,X){E[L]&&z2(E[L],_e=>{_e.call(t,oe,X,de)})},dc=function(L){let oe;if(Pn("beforeSanitizeElements",L,null),sf(L))return Oa(L),!0;let X=W(L.nodeName);if(Pn("uponSanitizeElement",L,{tagName:X,allowedTags:D}),L.hasChildNodes()&&!Eu(L.firstElementChild)&&(!Eu(L.content)||!Eu(L.content.firstElementChild))&&$t(/<[/\w]/g,L.innerHTML)&&$t(/<[/\w]/g,L.textContent))return Oa(L),!0;if(!D[X]||z[X]){if(!z[X]&&gc(X)&&($.tagNameCheck instanceof RegExp&&$t($.tagNameCheck,X)||$.tagNameCheck instanceof Function&&$.tagNameCheck(X)))return!1;if(Le&&!it[X]){let _e=A(L)||L.parentNode,rt=h(L)||L.childNodes;if(rt&&_e){let vt=rt.length;for(let Rt=vt-1;Rt>=0;--Rt)_e.insertBefore(b(rt[Rt],!0),C(L))}}return Oa(L),!0}return L instanceof l&&!of(L)||(X==="noscript"||X==="noembed")&&$t(/<\/no(script|embed)/i,L.innerHTML)?(Oa(L),!0):(ue&&L.nodeType===3&&(oe=L.textContent,oe=mn(oe,R," "),oe=mn(oe,F," "),oe=mn(oe,w," "),L.textContent!==oe&&(zr(t.removed,{element:L.cloneNode()}),L.textContent=oe)),Pn("afterSanitizeElements",L,null),!1)},mc=function(L,oe,X){if(xe&&(oe==="id"||oe==="name")&&(X in r||X in Ke))return!1;if(!(Y&&!ae[oe]&&$t(B,oe))&&!(J&&$t(I,oe))){if(!q[oe]||ae[oe]){if(!(gc(L)&&($.tagNameCheck instanceof RegExp&&$t($.tagNameCheck,L)||$.tagNameCheck instanceof Function&&$.tagNameCheck(L))&&($.attributeNameCheck instanceof RegExp&&$t($.attributeNameCheck,oe)||$.attributeNameCheck instanceof Function&&$.attributeNameCheck(oe))||oe==="is"&&$.allowCustomizedBuiltInElements&&($.tagNameCheck instanceof RegExp&&$t($.tagNameCheck,X)||$.tagNameCheck instanceof Function&&$.tagNameCheck(X))))return!1}else if(!Dn[oe]&&!$t(x,mn(X,P,""))&&!((oe==="src"||oe==="xlink:href"||oe==="href")&&L!=="script"&&q2(X,"data:")===0&&ga[L])&&!(pe&&!$t(N,mn(X,P,"")))&&X)return!1}return!0},gc=function(L){return L.indexOf("-")>0},pc=function(L){let oe,X,_e,rt;Pn("beforeSanitizeAttributes",L,null);let{attributes:vt}=L;if(!vt)return;let Rt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:q};for(rt=vt.length;rt--;){oe=vt[rt];let{name:st,namespaceURI:Ia}=oe;if(X=st==="value"?oe.value:W2(oe.value),_e=W(st),Rt.attrName=_e,Rt.attrValue=X,Rt.keepAttr=!0,Rt.forceKeepAttr=void 0,Pn("uponSanitizeAttribute",L,Rt),X=Rt.attrValue,Rt.forceKeepAttr||(Bi(st,L),!Rt.keepAttr))continue;if(!fe&&$t(/\/>/i,X)){Bi(st,L);continue}ue&&(X=mn(X,R," "),X=mn(X,F," "),X=mn(X,w," "));let fc=W(L.nodeName);if(mc(fc,_e,X)){if(Z&&(_e==="id"||_e==="name")&&(Bi(st,L),X=ke+X),S&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!Ia)switch(f.getAttributeType(fc,_e)){case"TrustedHTML":{X=S.createHTML(X);break}case"TrustedScriptURL":{X=S.createScriptURL(X);break}}try{Ia?L.setAttributeNS(Ia,st,X):L.setAttribute(st,X),ld(t.removed)}catch{}}}Pn("afterSanitizeAttributes",L,null)},lf=function L(oe){let X,_e=cc(oe);for(Pn("beforeSanitizeShadowDOM",oe,null);X=_e.nextNode();)Pn("uponSanitizeShadowNode",X,null),!dc(X)&&(X.content instanceof u&&L(X.content),pc(X));Pn("afterSanitizeShadowDOM",oe,null)};return t.sanitize=function(L){let oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X,_e,rt,vt;if(Vt=!L,Vt&&(L=""),typeof L!="string"&&!Eu(L))if(typeof L.toString=="function"){if(L=L.toString(),typeof L!="string")throw Hr("dirty is not a string, aborting")}else throw Hr("toString is not a function");if(!t.isSupported)return L;if(ie||Fe(oe),t.removed=[],typeof L=="string"&&(Oe=!1),Oe){if(L.nodeName){let Ia=W(L.nodeName);if(!D[Ia]||z[Ia])throw Hr("root node is forbidden and cannot be sanitized in-place")}}else if(L instanceof i)X=lc(""),_e=X.ownerDocument.importNode(L,!0),_e.nodeType===1&&_e.nodeName==="BODY"||_e.nodeName==="HTML"?X=_e:X.appendChild(_e);else{if(!ce&&!ue&&!G&&L.indexOf("<")===-1)return S&&Se?S.createHTML(L):L;if(X=lc(L),!X)return ce?null:Se?U:""}X&&me&&Oa(X.firstChild);let Rt=cc(Oe?L:X);for(;rt=Rt.nextNode();)dc(rt)||(rt.content instanceof u&&lf(rt.content),pc(rt));if(Oe)return L;if(ce){if(ye)for(vt=T.call(X.ownerDocument);X.firstChild;)vt.appendChild(X.firstChild);else vt=X;return(q.shadowroot||q.shadowrootmod)&&(vt=v.call(n,vt,!0)),vt}let st=G?X.outerHTML:X.innerHTML;return G&&D["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&$t(bd,X.ownerDocument.doctype.name)&&(st=" -`+st),ue&&(st=mn(st,R," "),st=mn(st,F," "),st=mn(st,w," ")),S&&Se?S.createHTML(st):st},t.setConfig=function(L){Fe(L),ie=!0},t.clearConfig=function(){de=null,ie=!1},t.isValidAttribute=function(L,oe,X){de||Fe({});let _e=W(L),rt=W(oe);return mc(_e,rt,X)},t.addHook=function(L,oe){typeof oe=="function"&&(E[L]=E[L]||[],zr(E[L],oe))},t.removeHook=function(L){if(E[L])return ld(E[L])},t.removeHooks=function(L){E[L]&&(E[L]=[])},t.removeAllHooks=function(){E={}},t}var Re=yd();var a1=Zu.alert;m();var Ga=console,Ss=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),a=Math.round(n-this.#e),r=Zt.green;a>1e4?r=Zt.red:a>1e3&&(r=Zt.yellow),Ga.debug(Zt.dim(ha+" TIMING:"),t,"in",r(a+"ms")),this.#e=n}},qr=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&Ga.log(Zt.dim(ha+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&Ga.log(Zt.green(ha+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&Ga.warn(Zt.yellow(ha+" WARN:"),...t)}error(...t){this.#e<=3&&Ga.error(Zt.red(ha+" ERROR:"),...t)}fatal(...t){this.#e<=4&&Ga.error(Zt.red(ha+" FATAL:"),...t)}timing(){return this.level===0?new Ss:{reset:()=>{},stop:()=>{}}}},H=new qr;var xd=["*://*/*","*","*://*"],Td="immersive-translate-wildcard-placeholder.com";function Ds(e,t){let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(o=>xd.includes(o)))return e;let a=new URL(e);a.hash="",a.search="";let r=a.href,u=a.hostname;if(n&&n.length>0){let o=n.find(i=>{let l=i;if(i===u)return!0;if(xd.includes(i))return!0;if(!i.includes("*")&&i.includes("://")){try{let c=new URL(i);return c.pathname==="/"&&!i.endsWith("/")?c.hostname===u:u1(r,i)}catch{}return!1}else{let c,s=i;if(i.includes("://")){let C=i.split("://");c=C[0],c==="*"&&C.length>1&&(c="*",i="https://"+C[1])}else c="*",i="https://"+i;let g=i.replace(/\*/g,Td),p;try{p=new URL(g)}catch{return H.debug("invalid match pattern",g,"raw match value:",s),!1}let f=p.hostname,d=p.pathname;d==="/"&&(s.replace("://","").includes("/")||(d="/*"));let b=r1(c+":",Ed(f),Ed(d));if(b){let C=new URL(r);return C.port="",b.test(C.href)}else return!1}});if(o)return o}return null}function Ed(e){return e.replaceAll(Td,"*")}function r1(e,t,n){let a="^";return e==="*:"?a+="(http:|https:|file:)":a+=e,a+="//",t&&(e==="file:"||(t==="*"?a+="[^/]+?":(t.match(/^\*\./)&&(a+="[^/]*?",t=t.substring(2)),a+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?a+="(/.*)?":n.includes("*")?(a+=n.replace(/\*/g,".*?"),a+="/?"):a+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):a+="/?",a+="$",new RegExp(a)}function On(e,t){return Ds(e,t)!==null}function u1(e,t){let n=new URL(e),a=new URL(t);return n.hostname===a.hostname&&n.pathname===a.pathname&&n.protocol===a.protocol&&n.port===a.port}m();m();function ya(e){return Array.isArray(e)?e:e?[e]:[]}function Ls(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function Qn(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function ro(e,t){let n={...e};return wd(n,t),o1(n,t),n}function Cd(e,t,n){let a={...t};return i1(e,a,n),a}function o1(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},a=t.condition.enableSubtitle?.false||{},r=e.enableSubtitle?n:a;wd(e,r)}function i1(e,t,n){try{return Object.keys(t).forEach(a=>{let[r,u]=a.split(".");if(u){let o=t[a];if(Array.isArray(e[r])&&(o=ya(t[a])),u==="add"){t[r]=Wr(e[r],o),delete t[a];return}else if(u=="remove"){t[r]=Ps(e[r],o),delete t[a];return}}}),Object.keys(n).forEach(a=>{let[r,u]=a.split(".");if(!r||n[a]===void 0)return;let o=n[a],i=t[r];if(Array.isArray(e[r])&&(o=ya(n[a]),i=ya(t[r])),u==="add"){t[r]=Wr(i,o);return}else if(u=="remove"){t[r]=Ps(i,o);return}Array.isArray(i)&&r.startsWith("additional")?t[r]=Wr(i,o):t[r]=o}),t}catch{}}function wd(e,t){return Object.keys(t).forEach(n=>{let[a,r]=n.split(".");if(!a||t[n]===void 0)return;let u=t[n];if(Array.isArray(e[a])&&(u=ya(t[n])),r==="add"){e[a]=Wr(e[a],u);return}else if(r=="remove"){e[a]=Ps(e[a],u);return}Array.isArray(e[a])&&a.startsWith("additional")?e[a]=Wr(e[a],u):e[a]=u}),e}function Wr(e,t){let n;if(Array.isArray(e)){let a=ya(t);n=[...e,...a],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"&&(n={...e,...t});return n}function Ps(e,t){if(Array.isArray(e)){let n=ya(t);return e=e.filter(a=>!n.includes(a)),Array.from(new Set(e))}else typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(n=>{delete e[n]});return e}m();m();var Va="input is invalid type",Ms=typeof window=="object",Zn=Ms?window:{};Zn.JS_SHA256_NO_WINDOW&&(Ms=!1);var s1=!Ms&&typeof self=="object",l1=!Zn.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;l1?Zn=global:s1&&(Zn=self);var E8=!Zn.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,T8=typeof define=="function"&&define.amd,$r=!Zn.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",le="0123456789abcdef".split(""),c1=[-2147483648,8388608,32768,128],pn=[24,16,8,0],uo=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],oo=["hex","array","digest","arrayBuffer"],lt=[];(Zn.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});$r&&(Zn.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var vd=function(e,t){return function(n){return new ct(t,!0).update(n)[e]()}},kd=function(e){var t=vd("hex",e);t.create=function(){return new ct(e)},t.update=function(r){return t.create().update(r)};for(var n=0;n>2]|=e[r]<>2]|=a<>2]|=(192|a>>6)<>2]|=(128|a&63)<=57344?(i[u>>2]|=(224|a>>12)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<>2]|=(240|a>>18)<>2]|=(128|a>>12&63)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<=64?(this.block=i[16],this.start=u-64,this.hash(),this.hashed=!0):this.start=u}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};ct.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=c1[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};ct.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,l=this.blocks,c,s,g,p,f,d,b,C,h,A,S;for(c=16;c<64;++c)f=l[c-15],s=(f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3,f=l[c-2],g=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10,l[c]=l[c-16]+s+l[c-7]+g<<0;for(S=t&n,c=0;c<64;c+=4)this.first?(this.is224?(C=300032,f=l[0]-1413257819,i=f-150054599<<0,a=f+24177077<<0):(C=704751109,f=l[0]-210244248,i=f-1521486534<<0,a=f+143694565<<0),this.first=!1):(s=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),g=(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7),C=e&t,p=C^e&n^S,b=r&u^~r&o,f=i+g+b+uo[c]+l[c],d=s+p,i=a+f<<0,a=f+d<<0),s=(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10),g=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),h=a&e,p=h^a&t^C,b=i&r^~i&u,f=o+g+b+uo[c+1]+l[c+1],d=s+p,o=n+f<<0,n=f+d<<0,s=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),g=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),A=n&a,p=A^n&e^h,b=o&i^~o&r,f=u+g+b+uo[c+2]+l[c+2],d=s+p,u=t+f<<0,t=f+d<<0,s=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),g=(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7),S=t&n,p=S^t&a^A,b=u&o^~u&i,f=r+g+b+uo[c+3]+l[c+3],d=s+p,r=e+f<<0,e=f+d<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+a<<0,this.h4=this.h4+r<<0,this.h5=this.h5+u<<0,this.h6=this.h6+o<<0,this.h7=this.h7+i<<0};ct.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,l=le[e>>28&15]+le[e>>24&15]+le[e>>20&15]+le[e>>16&15]+le[e>>12&15]+le[e>>8&15]+le[e>>4&15]+le[e&15]+le[t>>28&15]+le[t>>24&15]+le[t>>20&15]+le[t>>16&15]+le[t>>12&15]+le[t>>8&15]+le[t>>4&15]+le[t&15]+le[n>>28&15]+le[n>>24&15]+le[n>>20&15]+le[n>>16&15]+le[n>>12&15]+le[n>>8&15]+le[n>>4&15]+le[n&15]+le[a>>28&15]+le[a>>24&15]+le[a>>20&15]+le[a>>16&15]+le[a>>12&15]+le[a>>8&15]+le[a>>4&15]+le[a&15]+le[r>>28&15]+le[r>>24&15]+le[r>>20&15]+le[r>>16&15]+le[r>>12&15]+le[r>>8&15]+le[r>>4&15]+le[r&15]+le[u>>28&15]+le[u>>24&15]+le[u>>20&15]+le[u>>16&15]+le[u>>12&15]+le[u>>8&15]+le[u>>4&15]+le[u&15]+le[o>>28&15]+le[o>>24&15]+le[o>>20&15]+le[o>>16&15]+le[o>>12&15]+le[o>>8&15]+le[o>>4&15]+le[o&15];return this.is224||(l+=le[i>>28&15]+le[i>>24&15]+le[i>>20&15]+le[i>>16&15]+le[i>>12&15]+le[i>>8&15]+le[i>>4&15]+le[i&15]),l};ct.prototype.toString=ct.prototype.hex;ct.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,l=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,a>>24&255,a>>16&255,a>>8&255,a&255,r>>24&255,r>>16&255,r>>8&255,r&255,u>>24&255,u>>16&255,u>>8&255,u&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||l.push(i>>24&255,i>>16&255,i>>8&255,i&255),l};ct.prototype.array=ct.prototype.digest;ct.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function io(e,t,n){var a,r=typeof e;if(r==="string"){var u=[],o=e.length,i=0,l;for(a=0;a>6,u[i++]=128|l&63):l<55296||l>=57344?(u[i++]=224|l>>12,u[i++]=128|l>>6&63,u[i++]=128|l&63):(l=65536+((l&1023)<<10|e.charCodeAt(++a)&1023),u[i++]=240|l>>18,u[i++]=128|l>>12&63,u[i++]=128|l>>6&63,u[i++]=128|l&63);e=u}else if(r==="object"){if(e===null)throw new Error(Va);if($r&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!$r||!ArrayBuffer.isView(e)))throw new Error(Va)}else throw new Error(Va);e.length>64&&(e=new ct(t,!0).update(e).array());var c=[],s=[];for(a=0;a<64;++a){var g=e[a]||0;c[a]=92^g,s[a]=54^g}ct.call(this,t,n),this.update(s),this.oKeyPad=c,this.inner=!0,this.sharedMemory=n}io.prototype=new ct;io.prototype.finalize=function(){if(ct.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();ct.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),ct.prototype.finalize.call(this)}};var Ya=kd();Ya.sha256=Ya;Ya.sha224=kd(!0);Ya.sha256.hmac=Sd();Ya.sha224.hmac=Sd(!0);var Dd=Ya;var Ld=Dd.sha256;function fn(e){return Promise.resolve(Ld(e))}function so(e){return Array.from(new Uint8Array(e)).map(a=>a.toString(16).padStart(2,"0")).join("")}function Xn(e,t){let n=Ld.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function Pd(e,t){let n=await Xn(e,t);return so(n)}async function lo(e,t){let n=d1(t),a=await Xn(e,n);return so(a)}function d1(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}m();m();function tt(){try{return globalThis.self!==globalThis.top}catch{return!0}}var co=!1,m1=he();function Md(e,t){let n=[];for(let a of t){let r=e.querySelectorAll(a);for(let u of r)n.push(u)}return n}function g1(e,t){let n=function(u){return u.nodeType===Node.ELEMENT_NODE||u.nodeType===Node.TEXT_NODE?u.nodeType===Node.ELEMENT_NODE&&Fd(u,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),r=!0;for(;a.nextNode();){let u=a.currentNode;if(u.nodeType===Node.ELEMENT_NODE){if(ea(u,Wu)){if(r===!0)return!0;continue}if(Kr(u.nodeName,t.inlineTags))return!0;if(!Fs(u,t))return!1}}return!0}function _s(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(Kr(e.nodeName,n)||Fs(e,t)){if(ea(e,A4)||Kr(e.nodeName,["BR"]))return!1;if(ea(e,Wu))return!0;if(Fs(e,t)){let a=globalThis.getComputedStyle(e);if(a.display==="block"||a.display==="flex")return!1}return g1(e,t)}else return ea(e,Wu);return!1}function Fd(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&ea(e,v4,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&ea(e,x4))return!1;let{stayOriginalTags:a,excludeTags:r}=t,u=[];return n&&r&&r.length>0?u=r||[]:u=r.filter(o=>!a.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||Kr(e.nodeName,u))}function mo(e,t,n){let a=e.trim();return a.length>=t||a.split(" ").filter(o=>o.trim()!=="").length>=n||!Bd(a)&&a.length>=n}function _d(e,t,n){let a=e.trim();if(a.length<=t)return!0;if(Bd(a)){if(a.split(" ").length<=n)return!0}else if(a.length<=n)return!0;return!1}function Bd(e){for(let t=0;t127)return!1;return!0}function Rd(e){if(e&&e.includes("://"))try{return new URL(e),!0}catch{return!1}else return!1}function Od(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function Id(e){return e?/^[-+]?[0-9]*\.?[0-9]+%?$/.test(e):!1}function Nd(e){return!!(e&&e.startsWith("#")&&e.indexOf(" ")===-1)}function jd(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function ea(e,t,n=!1){return Bs(e,t,"1",n)}function Bs(e,t,n,a=!1){return co&&!a?e[It]?!!(e[It]&&e[It][t]===n):!1:e.dataset[t]===n}function Ja(e){return(e.innerText||e.textContent||"").trim()}function Rs(e){let t=e.querySelectorAll("iframe"),n="";for(let a=0;a2e3))break}return n}function go(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function nt(e,t,n,a=!1,r=!1){e.isContentEditable&&!r||(co&&!a?(e.dataset[Fr]||(e.dataset[Fr]="1"),e[It]||(e[It]={}),e[It][t]||(e[It][t]=n)):(e.dataset[Fr]||(e.dataset[Fr]="1"),e.dataset[t]!==n&&(e.dataset[t]=n)))}function po(e,t,n=!1){if(co&&!n){if(!e[It]||!e[It][t])return;delete e[It][t]}else delete e.dataset[t]}function Qa(e,t,n=!1){return co&&!n?!e[It]||!e[It][t]?void 0:e[It][t]:e.dataset[t]}function Fs(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!Kr(e.nodeName,n)}function Za(e){let{config:t}=e,n=ba;return t.translationServices[e.translationService]&&t.translationServices[e.translationService].placeholderDelimiters&&(n=t.translationServices[e.translationService].placeholderDelimiters),n}function gt(){if(!globalThis||!globalThis.location)return"https://example.com";if(!tt())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let a="";try{a=globalThis.parent.location.href}catch{}return a||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function xa(e,t,n){if(e instanceof ShadowRoot){try{e.appendChild(document.createElement("style")).textContent=t}catch(a){H.warn("injectCSS failed, rootDocument"+a?.message,e)}return}if(e&&e.head&&e.head.appendChild){let a=e.createElement("style");if(n){let r=e.querySelector(`style[data-id="${n}"]`);r&&r.remove(),a.dataset.id=n}a.textContent=t,e.head.appendChild(a)}else if(e){let a=document.createElement("head"),r=document.createElement("style");r.textContent=t,a.appendChild(r),e.appendChild(a)}else H.warn("injectCSS failed, rootDocument does not have head node",e)}function Xa(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(m1){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!document.querySelector("meta[name='immersive-translate-ebook-viewer']")||!t.startsWith("blob:http");return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function Kr(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function Ud(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),a=parseInt(t.substring(2,4),16),r=parseInt(t.substring(4,6),16);return{r:n,g:a,b:r}}function zd(e,t,n,a){if(a.document.caretPositionFromPoint){let r=a.document.caretPositionFromPoint(e,t);if(r){let u=a.document.createRange(),o=r.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||Fd(o,n,!0))return null;try{u.setStart(o,r.offset),u.setEnd(o,r.offset)}catch(i){return H.warn("getRangeFromPoint error",i),null}return u}return null}else return a.document.caretRangeFromPoint?a.document.caretRangeFromPoint(e,t):null}function Hd(e,t,n){let a=0,r=(u,o,i,l)=>{if(++a>100||l===u)return u;let c=u.shadowRoot;if(!c||typeof c.elementFromPoint!="function")return u;let s=c.elementFromPoint(o,i);return s?r(s,o,i,u):u};return r(e,t,n)}m();m();function er(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t==="zh-hans")return"zh-CN";if(t==="zh-hant"||t==="zh-hk")return"zh-TW";if(t==="iw")return"he";if(t==="jv")return"jw";let n=Jt.map(r=>r.toLowerCase()),a=n.indexOf(t);if(a===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let r=n.indexOf(t);return r===-1?"auto":Jt[r]}else return"auto";else return Jt[a]}function Ea(){return er(document?.documentElement?.lang||"en")}m();function en(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function qd(e){if(e){let t=new Date(e.createTime),n=p1(t),a="free",r="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(a=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?r="stripe":r="admin"),{user_type:a,user_register_day:n,subscription_from:r}}else return null}function p1(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[a,r,u]=n.split("/");return n=`${u}-${a}-${r}`,n}catch{return"unknown"}}m();var Wd=ge+"SyncStoreKey_";function Dt(e,t){let n=Wd+e;return ee.storage.sync.get(n).then(a=>a[n]===void 0?t:a[n])}function ze(e,t){let n=Wd+e;return ee.storage.sync.set({[n]:t})}m();var $d=ge+"StoreKey_";function In(e,t){let n=$d+e;return ee.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function Kd(e,t){let n=$d+e;return ee.storage.local.set({[n]:t})}m();m();m();var ut=class extends Error{details;constructor(t,n,a){super(n),this.name=t,a&&(this.details=a)}};async function Nn(e){let t;if(e&&e.retry&&e.retry>0)try{t=await ls(Gd.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await Gd(e);return t}async function Gd(e){e.body;let{url:t,responseType:n,...a}=e;n||(n="json"),a={mode:"cors",...a};let r=!0;e.fetchPolyfill&&(r=!1);let u=e.fetchPolyfill||fetch,o=3e5;if(e.timeout&&(o=e.timeout),r){let l=new AbortController,c=l.signal;setTimeout(()=>{l.abort()},o),a.signal=c}let i;try{i=await u(t,a)}catch(l){H.debug("fetch error",t,l);let c=l.message||"";throw l.message="\u7F51\u7EDC\u95EE\u9898\uFF0C\u65E0\u6CD5\u8FDE\u63A5\u5230\u670D\u52A1\uFF0C\u8BF7\u68C0\u67E5\u4F60\u7684\u4EE3\u7406\u6216\u672C\u5730\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u8BD5\u3002 "+c,l}if(i.ok&&i.status>=200&&i.status<400){if(n==="json")return await i.json();if(n==="text")return await i.text();if(n==="raw"){let l=await i.text(),c=Object.fromEntries([...i.headers.entries()]),s=i.url;return s||(i.headers.get("X-Final-URL")?s=i.headers.get("X-Final-URL"):s=t),{body:l,headers:c,status:i.status,statusText:i.statusText,url:s}}else if(n==="stream"){let l="",c;if(i.body&&i.body instanceof ReadableStream)for await(let s of f1(i.body)){let g=new TextDecoder().decode(s);l+=g;let p;for(;(p=l.indexOf(` -`))>=0;){let f=l.slice(0,p).trim();if(l=l.slice(p+1),f.startsWith("event:")||f==="")continue;let d="";if(f.startsWith("data:")&&(d=f.slice(5).trim()),d==="[DONE]")break;let b;try{b=JSON.parse(d??"")}catch(C){H.debug("json error",C);continue}c=b}}return c}}else{let l;try{l=await i.text()}catch(f){H.error("parse response failed",f)}l&&H.error("fail response",l);let c="";l&&(c=l.slice(0,280));let s="\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u4EE3\u7801:"+i.status+": "+(i.statusText||"")+c,p=new URL(t).hostname.endsWith(".immersivetranslate.com");throw i.status===429?p?c.includes("quota exceeded")?s="ProQuota:"+c:s=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${c} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`:s=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A429\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===403?s=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A403\uFF0C \u8BF4\u660E\u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ${c}`:i.status===400?s=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A400\uFF0C \u8BF4\u660E\u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002 ${c}`:i.status===502?s=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A502\uFF0C \u8BF4\u660E\u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===401&&(s=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A401\uFF0C \u8BF4\u660E\u672A\u767B\u5F55\u6216\u767B\u5F55\u6001\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002 ${c}`),new ut("fetchError",s,l)}}async function*f1(e){let t=e.getReader();try{for(;;){let{done:n,value:a}=await t.read();if(n)return;yield a}}finally{t.releaseLock()}}m();var h1=new Map;function fo(e){let t=b1(64),n=new CustomEvent(h4,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((a,r)=>{h1.set(t,(u,o)=>{u?r(u):a(o)})})}function b1(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};function tn(){return ho.version}m();var Gr=new Map,kn=class{fromType;logger;constructor(t,n=!1){this.logger=new qr,n&&this.logger.setLevel("debug"),this.fromType=t,Gr.has(t)||(Gr.set(t,new Map),ee.runtime.onMessage.addListener((a,r,u)=>{let o=a.from,i=a.to,l,c,s;r.tab&&r.tab.id&&(l=r.tab.id,o=`${o}:${l}`,c=r.tab.url,s=r.tab.active),this.logger.debug(`${a.to} received message [${a.payload.method}] from ${a.from}`,a.payload.data?a.payload.data:" ");let g=Is(i),{type:p,name:f}=g;if(p!==t)return!1;let d=Is(o),C=Gr.get(p).get(f);if(!C)return this.logger.debug(`no message handler for ${p}:${i}, but it's ok`),!1;let{messageHandler:h,sync:A}=C,S={type:t,name:d.name,id:l,url:c,active:s};if(A){try{let U=h(a.payload,S);u({ok:!0,data:U})}catch(U){u({ok:!1,errorName:U.name,errorMessage:U.message,errorDetails:U.details})}return!1}else return h(a.payload,S).then(U=>{u({ok:!0,data:U})}).catch(U=>{u({ok:!1,errorName:U.name,errorMessage:U.message,errorDetails:U.details})}),!0}))}getConnection(t,n,a){let r=!1;a&&a.sync&&(r=!0);let u=this.fromType,o=Gr.get(u);if(o.has(t))return o.get(t).connectionInstance;{let i=new Os(`${u}:${t}`,this.logger);return Gr.get(u).set(t,{messageHandler:n,sync:r,connectionInstance:i}),i}}},Os=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let a=Is(t),{type:r,id:u}=a;if(r!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let i=await ee.runtime.sendMessage(o);return Vd(o,i,this.logger)}catch(i){if(r==="popup"){let l=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(l,n,t,i),Promise.resolve({message:l})}else throw i}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let i=await ee.tabs.sendMessage(u,o);return Vd(o,i,this.logger)}}};function Vd(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new ut(t.errorName||"UnknownError",t.errorMessage||"Unknown error",t.errorDetails)}else throw new ut("noResponse","Unknown error")}function Is(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let a=parseInt(t[2]);if(!isNaN(a))n.id=a;else throw new Error("tab id not a valid number")}return n}var bo;function x1(){return bo||(bo=new kn("content_script",!1).getConnection("pure_main",()=>{}),bo)}var Yd="G-MKMD9LWFTR";async function Vr(e,t){try{let n=Be();if(n.INSTALL_FROM==="firefox_store")return;let r=he(),u=tt(),o=n.PROD==="1",i="sitc4WmvShWYwfU0dANM3Q",l=await Dt("fakeUserId","");l||(l=await In("fakeUserId",""),l&&await ze("fakeUserId",l));let c=tn(),s=new Date,g=await Dt("installedAt","");g||(g=await In("installedAt",""),g&&await ze("installedAt",g)),l?g||(g=new Date(0).toISOString(),await ze("installedAt",g)):(l=E1(32),await ze("fakeUserId",l)),g||(g=s.toISOString(),await ze("installedAt",g));let p=new Date(g),f=Jd(p),d=Jd(s),b=f===d,C=s.getTime()-p.getTime()<7*24*60*60*1e3,h=`https://www.google-analytics.com/mp/collect?measurement_id=${Yd}&api_secret=${i}`;o||(h=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${Yd}&api_secret=${i}`);let A="";typeof navigator<"u"&&(A=window.navigator.userAgent);let S=$a.parse(A),U=t.map(y=>{let T=y.params||{};return S.os&&(T.os_name=S.os.name||"unknown",T.os_version=S.os.version||"unknown",T.os_version_name=S.os.versionName||"unknown"),S.browser&&(T.browser_name=S.browser.name||"unknown",T.browser_version=S.browser.version||"unknown"),S.platform&&(T.platform_type=S.platform.type||"unknown"),S.engine&&(T.engine_name=S.engine.name||"unknown",T.engine_version=S.engine.version||"unknown"),c&&(T.version=c),n.INSTALL_FROM&&(T.install_from=n.INSTALL_FROM),f&&(T.install_day=T1(p)),T.userscript=r.toString(),b?T.is_new_user_today="1":T.is_new_user_today="0",C?T.is_new_user_this_week="1":T.is_new_user_this_week="0",u?T.main_frame=0:T.main_frame=1,{...y,params:T}}),O=await yo({responseType:"text",url:h,method:"POST",body:JSON.stringify({client_id:l,user_id:l,events:U})})}catch{}}function E1(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r",""]},custom:{placeholderDelimiters:["{","}"]},bing:{maxTextLengthPerRequest:1800,placeholderDelimiters:["","","b"]},deeplx:{limit:3},d:{immediateTranslationTextCount:0},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},openai:{placeholderDelimiters:["{{","}}","b"],immediateTranslationTextCount:3e3,translationDebounce:300,interval:1350,prompt:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +{{text}}`,optional:!0}]},transmart:{name:"Transmart",homepage:"https://transmart.qq.com/"},chatgpt:{name:"ChatGPT Web(3.5 mobile)",homepage:"https://chat.openai.com",beta:!0},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:"https://immersivetranslate.com/docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text"},{name:"appSecret",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/",docUrl:"https://immersivetranslate.com/docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text"},{name:"secretKey",required:!0,type:"password"}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:"https://immersivetranslate.com/docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text"},{name:"AccessKeySecret",required:!0,type:"password"},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:"https://immersivetranslate.com/docs/services/azure/",allProps:[{name:"region",required:!0,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password"}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:"https://immersivetranslate.com/docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text"},{name:"key",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:"https://immersivetranslate.com/docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text"},{name:"secretAccessKey",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:"https://immersivetranslate.com/docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password"}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:"https://immersivetranslate.com/docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:ba,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:"https://immersivetranslate.com/docs/services/openL/",allProps:[...d4,{type:"password",name:"apikey",required:!0}],props:d4},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",alpha:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:"https://immersivetranslate.com/docs/services/niu",allProps:[{name:"APIKEY",required:!0,type:"password"}]}},Ku={type:ge+"ChildFrameToRootFrameIdentifier"},Gu=["Alt","Ctrl","Shift","Auto","Off","OtherCustom","Other"];var ns="user_from_plugin",Nt="user_info",as=Mn()||Fn()?"https://api2.immersivetranslate.com":"https://test-api2.immersivetranslate.com",ux=Mn()||Fn()?"https://immersivetranslate.com/accounts/login?from=plugin":"https://test.immersivetranslate.com/accounts/login?from=plugin",rs=Mn()||Fn()?"https://immersivetranslate.com/profile":"https://test.immersivetranslate.com/profile",_r=Mn()||Fn()?"https://immersivetranslate.com/pricing":"https://test.immersivetranslate.com/pricing",Vu=_r+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",us=_r+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",O4=_r+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal";function I4(e){let t=ee.runtime.getURL(m4),n=new URL(t);return(e.startsWith("http")||!Ha())&&n.searchParams.set("file",e),n.href}function N4(){return Be().PDF_VIEWER_URL}g();g();var ya=ge+"CacheKey_";function Zf(e,t){let n=ya+e;return ee.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function Xf(){let e=ee.storage.local.refresh;e&&e()}function Br(e,t){let n=ya+e;return ee.storage.local.get(n).then(a=>{if(a[n]===void 0)return t;let{value:r,expired:u}=a[n];return u&&ua.startsWith(ya)).filter(a=>a!==ya+Nt);if(n.length>0)return ee.storage.local.remove(n)}}var jt={get:Zf,set:eh,getExpired:Br,setExpired:Rr,remove:Or,clear:j4,refresh:Xf};g();g();g();g();g();g();function Wa(){let e,t="pending",n=new Promise((a,r)=>{e={async resolve(u){await u,t="fulfilled",a(u)},reject(u){t="rejected",r(u)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}g();var os=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function Yu(e,t){let n=Wa(),a=setTimeout(()=>n.reject(new os),t);return Promise.race([e,n]).finally(()=>clearTimeout(a))}g();g();function Ir(e,t={}){let{signal:n,persistent:a}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((r,u)=>{let o=()=>{clearTimeout(l),u(new DOMException("Delay was aborted.","AbortError"))},l=setTimeout(()=>{n?.removeEventListener("abort",o),r()},e);if(n?.addEventListener("abort",o,{once:!0}),a===!1)try{Deno.unrefTimer(l)}catch(c){if(!(c instanceof ReferenceError))throw c}})}g();var U4=class{#e=0;#t=[];#n=[];#a=Wa();add(t){++this.#e,this.#r(t[Symbol.asyncIterator]())}async#r(t){try{let{value:n,done:a}=await t.next();a?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#a.resolve()}async*iterate(){for(;this.#e>0;){await this.#a;for(let t=0;tSh,bgBlue:()=>Mh,bgBrightBlack:()=>Rh,bgBrightBlue:()=>jh,bgBrightCyan:()=>zh,bgBrightGreen:()=>Ih,bgBrightMagenta:()=>Uh,bgBrightRed:()=>Oh,bgBrightWhite:()=>Hh,bgBrightYellow:()=>Nh,bgCyan:()=>_h,bgGreen:()=>Lh,bgMagenta:()=>Fh,bgRed:()=>Dh,bgRgb24:()=>Kh,bgRgb8:()=>Wh,bgWhite:()=>Bh,bgYellow:()=>Ph,black:()=>dh,blue:()=>fh,bold:()=>rh,brightBlack:()=>q4,brightBlue:()=>wh,brightCyan:()=>Ah,brightGreen:()=>Th,brightMagenta:()=>vh,brightRed:()=>Eh,brightWhite:()=>kh,brightYellow:()=>Ch,cyan:()=>bh,dim:()=>uh,getColorEnabled:()=>nh,gray:()=>xh,green:()=>gh,hidden:()=>lh,inverse:()=>sh,italic:()=>oh,magenta:()=>hh,red:()=>mh,reset:()=>ah,rgb24:()=>$h,rgb8:()=>qh,setColorEnabled:()=>th,strikethrough:()=>ch,stripColor:()=>Vh,underline:()=>ih,white:()=>yh,yellow:()=>ph});g();var{Deno:z4}=globalThis,H4=typeof z4?.noColor=="boolean"?z4.noColor:!0,is=!H4;function th(e){H4||(is=e)}function nh(){return is}function Ce(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function we(e,t){return is?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function ah(e){return we(e,Ce([0],0))}function rh(e){return we(e,Ce([1],22))}function uh(e){return we(e,Ce([2],22))}function oh(e){return we(e,Ce([3],23))}function ih(e){return we(e,Ce([4],24))}function sh(e){return we(e,Ce([7],27))}function lh(e){return we(e,Ce([8],28))}function ch(e){return we(e,Ce([9],29))}function dh(e){return we(e,Ce([30],39))}function mh(e){return we(e,Ce([31],39))}function gh(e){return we(e,Ce([32],39))}function ph(e){return we(e,Ce([33],39))}function fh(e){return we(e,Ce([34],39))}function hh(e){return we(e,Ce([35],39))}function bh(e){return we(e,Ce([36],39))}function yh(e){return we(e,Ce([37],39))}function xh(e){return q4(e)}function q4(e){return we(e,Ce([90],39))}function Eh(e){return we(e,Ce([91],39))}function Th(e){return we(e,Ce([92],39))}function Ch(e){return we(e,Ce([93],39))}function wh(e){return we(e,Ce([94],39))}function vh(e){return we(e,Ce([95],39))}function Ah(e){return we(e,Ce([96],39))}function kh(e){return we(e,Ce([97],39))}function Sh(e){return we(e,Ce([40],49))}function Dh(e){return we(e,Ce([41],49))}function Lh(e){return we(e,Ce([42],49))}function Ph(e){return we(e,Ce([43],49))}function Mh(e){return we(e,Ce([44],49))}function Fh(e){return we(e,Ce([45],49))}function _h(e){return we(e,Ce([46],49))}function Bh(e){return we(e,Ce([47],49))}function Rh(e){return we(e,Ce([100],49))}function Oh(e){return we(e,Ce([101],49))}function Ih(e){return we(e,Ce([102],49))}function Nh(e){return we(e,Ce([103],49))}function jh(e){return we(e,Ce([104],49))}function Uh(e){return we(e,Ce([105],49))}function zh(e){return we(e,Ce([106],49))}function Hh(e){return we(e,Ce([107],49))}function Yn(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function qh(e,t){return we(e,Ce([38,5,Yn(t)],39))}function Wh(e,t){return we(e,Ce([48,5,Yn(t)],49))}function $h(e,t){return typeof t=="number"?we(e,Ce([38,2,t>>16&255,t>>8&255,t&255],39)):we(e,Ce([38,2,Yn(t.r),Yn(t.g),Yn(t.b)],39))}function Kh(e,t){return typeof t=="number"?we(e,Ce([48,2,t>>16&255,t>>8&255,t&255],49)):we(e,Ce([48,2,Yn(t.r),Yn(t.g),Yn(t.b)],49))}var Gh=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function Vh(e){return e.replace(Gh,"")}g();g();var ss=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},Yh={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function ls(e,t){let n={...Yh,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let a=n.minTimeout,r;for(let u=0;usetTimeout(i,a)),a*=n.multiplier,a=Math.max(a,n.minTimeout),n.maxTimeout>=0&&(a=Math.min(a,n.maxTimeout)),r=o}throw new ss(r,n.maxAttempts)}g();var Rn=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function cs(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",a,r=t.length;for(a=2;a>2],n+=Rn[(t[a-2]&3)<<4|t[a-1]>>4],n+=Rn[(t[a-1]&15)<<2|t[a]>>6],n+=Rn[t[a]&63];return a===r+1&&(n+=Rn[t[a-2]>>2],n+=Rn[(t[a-2]&3)<<4],n+="=="),a===r&&(n+=Rn[t[a-2]>>2],n+=Rn[(t[a-2]&3)<<4|t[a-1]>>4],n+=Rn[(t[a-1]&15)<<2],n+="="),n}g();g();var rE=Number.isNaN||function(e){return typeof e=="number"&&e!==e};g();g();var Ju=globalThis||(typeof window<"u"?window:self),Qh=Object.create,ms=Object.defineProperty,Zh=Object.getOwnPropertyDescriptor,Xh=Object.getOwnPropertyNames,e2=Object.getPrototypeOf,t2=Object.prototype.hasOwnProperty,n2=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),a2=(e,t)=>{for(var n in t)ms(e,n,{get:t[n],enumerable:!0})},ds=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Xh(t))!t2.call(e,r)&&r!==n&&ms(e,r,{get:()=>t[r],enumerable:!(a=Zh(t,r))||a.enumerable});return e},r2=(e,t,n)=>(ds(e,t,"default"),n&&ds(n,t,"default")),$4=(e,t,n)=>(n=e!=null?Qh(e2(e)):{},ds(t||!e||!e.__esModule?ms(n,"default",{value:e,enumerable:!0}):n,e)),K4=n2((e,t)=>{var n="Expected a function",a=NaN,r="[object Symbol]",u=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt,s=typeof Ju=="object"&&Ju&&Ju.Object===Object&&Ju,m=typeof self=="object"&&self&&self.Object===Object&&self,p=s||m||Function("return this")(),f=Object.prototype,d=f.toString,b=Math.max,C=Math.min,h=function(){return p.Date.now()};function A(k,v,E){var R,F,w,B,I,N,P=0,x=!1,D=!1,M=!0;if(typeof k!="function")throw new TypeError(n);v=T(v)||0,U(E)&&(x=!!E.leading,D="maxWait"in E,w=D?b(T(E.maxWait)||0,v):w,M="trailing"in E?!!E.trailing:M);function q(ue){var G=R,ie=F;return R=F=void 0,P=ue,B=k.apply(ie,G),B}function j(ue){return P=ue,I=setTimeout(ae,v),x?q(ue):B}function $(ue){var G=ue-N,ie=ue-P,me=v-G;return D?C(me,w-ie):me}function z(ue){var G=ue-N,ie=ue-P;return N===void 0||G>=v||G<0||D&&ie>=w}function ae(){var ue=h();if(z(ue))return J(ue);I=setTimeout(ae,$(ue))}function J(ue){return I=void 0,M&&R?q(ue):(R=F=void 0,B)}function Y(){I!==void 0&&clearTimeout(I),P=0,R=N=F=I=void 0}function pe(){return I===void 0?B:J(h())}function he(){var ue=h(),G=z(ue);if(R=arguments,F=this,N=ue,G){if(I===void 0)return j(N);if(D)return I=setTimeout(ae,v),q(N)}return I===void 0&&(I=setTimeout(ae,v)),B}return he.cancel=Y,he.flush=pe,he}function S(k,v,E){var R=!0,F=!0;if(typeof k!="function")throw new TypeError(n);return U(E)&&(R="leading"in E?!!E.leading:R,F="trailing"in E?!!E.trailing:F),A(k,v,{leading:R,maxWait:v,trailing:F})}function U(k){var v=typeof k;return!!k&&(v=="object"||v=="function")}function O(k){return!!k&&typeof k=="object"}function y(k){return typeof k=="symbol"||O(k)&&d.call(k)==r}function T(k){if(typeof k=="number")return k;if(y(k))return a;if(U(k)){var v=typeof k.valueOf=="function"?k.valueOf():k;k=U(v)?v+"":v}if(typeof k!="string")return k===0?k:+k;k=k.replace(u,"");var E=i.test(k);return E||l.test(k)?c(k.slice(2),E?2:8):o.test(k)?a:+k}t.exports=S}),G4={};a2(G4,{default:()=>yt});var u2=$4(K4());r2(G4,$4(K4()));var{default:W4,...o2}=u2,yt=W4!==void 0?W4:o2;g();g();var i2=Object.create,ps=Object.defineProperty,s2=Object.getOwnPropertyDescriptor,l2=Object.getOwnPropertyNames,c2=Object.getPrototypeOf,d2=Object.prototype.hasOwnProperty,m2=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),g2=(e,t)=>{for(var n in t)ps(e,n,{get:t[n],enumerable:!0})},gs=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of l2(t))!d2.call(e,r)&&r!==n&&ps(e,r,{get:()=>t[r],enumerable:!(a=s2(t,r))||a.enumerable});return e},p2=(e,t,n)=>(gs(e,t,"default"),n&&gs(n,t,"default")),Y4=(e,t,n)=>(n=e!=null?i2(c2(e)):{},gs(t||!e||!e.__esModule?ps(n,"default",{value:e,enumerable:!0}):n,e)),J4=m2((e,t)=>{(function(n,a){typeof e=="object"&&typeof t=="object"?t.exports=a():typeof define=="function"&&define.amd?define([],a):typeof e=="object"?e.notie=a():n.notie=a()})(e,function(){return function(n){function a(u){if(r[u])return r[u].exports;var o=r[u]={i:u,l:!1,exports:{}};return n[u].call(o.exports,o,o.exports,a),o.l=!0,o.exports}var r={};return a.m=n,a.c=r,a.i=function(u){return u},a.d=function(u,o,i){a.o(u,o)||Object.defineProperty(u,o,{configurable:!1,enumerable:!0,get:i})},a.n=function(u){var o=u&&u.__esModule?function(){return u.default}:function(){return u};return a.d(o,"a",o),o},a.o=function(u,o){return Object.prototype.hasOwnProperty.call(u,o)},a.p="",a(a.s=1)}([function(n,a){n.exports=function(r){return r.webpackPolyfill||(r.deprecate=function(){},r.paths=[],r.children||(r.children=[]),Object.defineProperty(r,"loaded",{enumerable:!0,get:function(){return r.l}}),Object.defineProperty(r,"id",{enumerable:!0,get:function(){return r.i}}),r.webpackPolyfill=1),r}},function(n,a,r){"use strict";(function(u){var o,i,l,c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s};(function(s,m){c(a)==="object"&&c(u)==="object"?u.exports=m():(i=[],o=m,l=typeof o=="function"?o.apply(a,i):o,l!==void 0&&(u.exports=l))})(void 0,function(){return function(s){function m(f){if(p[f])return p[f].exports;var d=p[f]={i:f,l:!1,exports:{}};return s[f].call(d.exports,d,d.exports,m),d.l=!0,d.exports}var p={};return m.m=s,m.c=p,m.i=function(f){return f},m.d=function(f,d,b){m.o(f,d)||Object.defineProperty(f,d,{configurable:!1,enumerable:!0,get:b})},m.n=function(f){var d=f&&f.__esModule?function(){return f.default}:function(){return f};return m.d(d,"a",d),d},m.o=function(f,d){return Object.prototype.hasOwnProperty.call(f,d)},m.p="",m(m.s=0)}([function(s,m,p){function f(j,$){var z={};for(var ae in j)$.indexOf(ae)>=0||Object.prototype.hasOwnProperty.call(j,ae)&&(z[ae]=j[ae]);return z}Object.defineProperty(m,"__esModule",{value:!0});var d=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(j){return typeof j>"u"?"undefined":c(j)}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j>"u"?"undefined":c(j)},b=Object.assign||function(j){for(var $=1;$'+ae+"",ie.onclick=function(){return F(me,G)},ie.listener=function(ce){(v(ce)||E(ce))&&I()},R(ie,G),Y&&Y<1&&(Y=1),!he&&Y&&U(Y).then(function(){return F(me,G)})},P=m.force=function(j,$){var z=j.type,ae=z===void 0?5:z,J=j.text,Y=j.buttonText,pe=Y===void 0?"OK":Y,he=j.callback,ue=j.position,G=ue===void 0?h.positions.force||G.top:ue;O(),I();var ie=document.createElement("div"),me=y();ie.id=me;var ce=document.createElement("div");ce.classList.add(h.classes.textbox),ce.classList.add(h.classes.backgroundInfo),ce.innerHTML='
'+J+"
";var ye=document.createElement("div");ye.classList.add(h.classes.button),ye.classList.add(T[ae]),ye.innerHTML=pe,ye.onclick=function(){F(me,G),B(),he?he():$&&$()},ie.appendChild(ce),ie.appendChild(ye),ie.listener=function(Se){v(Se)&&ye.click()},R(ie,G),w()},x=m.confirm=function(j,$,z){var ae=j.text,J=j.submitText,Y=J===void 0?"Yes":J,pe=j.cancelText,he=pe===void 0?"Cancel":pe,ue=j.submitCallback,G=j.cancelCallback,ie=j.position,me=ie===void 0?h.positions.confirm||me.top:ie;O(),I();var ce=document.createElement("div"),ye=y();ce.id=ye;var Se=document.createElement("div");Se.classList.add(h.classes.textbox),Se.classList.add(h.classes.backgroundInfo),Se.innerHTML='
'+ae+"
";var xe=document.createElement("div");xe.classList.add(h.classes.button),xe.classList.add(h.classes.elementHalf),xe.classList.add(h.classes.backgroundSuccess),xe.innerHTML=Y,xe.onclick=function(){F(ye,me),B(),ue?ue():$&&$()};var Z=document.createElement("div");Z.classList.add(h.classes.button),Z.classList.add(h.classes.elementHalf),Z.classList.add(h.classes.backgroundError),Z.innerHTML=he,Z.onclick=function(){F(ye,me),B(),G?G():z&&z()},ce.appendChild(Se),ce.appendChild(xe),ce.appendChild(Z),ce.listener=function(ke){v(ke)?xe.click():E(ke)&&Z.click()},R(ce,me),w(ce,me)},D=function(j,$,z){var ae=j.text,J=j.submitText,Y=J===void 0?"Submit":J,pe=j.cancelText,he=pe===void 0?"Cancel":pe,ue=j.submitCallback,G=j.cancelCallback,ie=j.position,me=ie===void 0?h.positions.input||me.top:ie,ce=f(j,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);O(),I();var ye=document.createElement("div"),Se=y();ye.id=Se;var xe=document.createElement("div");xe.classList.add(h.classes.textbox),xe.classList.add(h.classes.backgroundInfo),xe.innerHTML='
'+ae+"
";var Z=document.createElement("input");Z.classList.add(h.classes.inputField),Z.setAttribute("autocapitalize",ce.autocapitalize||"none"),Z.setAttribute("autocomplete",ce.autocomplete||"off"),Z.setAttribute("autocorrect",ce.autocorrect||"off"),Z.setAttribute("autofocus",ce.autofocus||"true"),Z.setAttribute("inputmode",ce.inputmode||"verbatim"),Z.setAttribute("max",ce.max||""),Z.setAttribute("maxlength",ce.maxlength||""),Z.setAttribute("min",ce.min||""),Z.setAttribute("minlength",ce.minlength||""),Z.setAttribute("placeholder",ce.placeholder||""),Z.setAttribute("spellcheck",ce.spellcheck||"default"),Z.setAttribute("step",ce.step||"any"),Z.setAttribute("type",ce.type||"text"),Z.value=ce.value||"",ce.allowed&&(Z.oninput=function(){var Oe=void 0;if(Array.isArray(ce.allowed)){for(var Ue="",it=ce.allowed,_t=0;_t'+z+"",G.appendChild(me),pe.forEach(function(ye,Se){var xe=ye.type,Z=xe===void 0?1:xe,ke=ye.text,Le=ye.handler,Oe=document.createElement("div");Oe.classList.add(T[Z]),Oe.classList.add(h.classes.button),Oe.classList.add(h.classes.selectChoice);var Ue=pe[Se+1];Ue&&!Ue.type&&(Ue.type=1),Ue&&Ue.type===Z&&Oe.classList.add(h.classes.selectChoiceRepeated),Oe.innerHTML=ke,Oe.onclick=function(){F(ie,ue),B(),Le()},G.appendChild(Oe)});var ce=document.createElement("div");ce.classList.add(h.classes.backgroundNeutral),ce.classList.add(h.classes.button),ce.innerHTML=J,ce.onclick=function(){F(ie,ue),B(),Y?Y():$&&$()},G.appendChild(ce),G.listener=function(ye){E(ye)&&ce.click()},R(G,ue),w(G,ue)},q=m.date=function(j,$,z){var ae=j.value,J=ae===void 0?new Date:ae,Y=j.submitText,pe=Y===void 0?"OK":Y,he=j.cancelText,ue=he===void 0?"Cancel":he,G=j.submitCallback,ie=j.cancelCallback,me=j.position,ce=me===void 0?h.positions.date||ce.top:me;O(),I();var ye="▾",Se=document.createElement("div"),xe=document.createElement("div"),Z=document.createElement("div"),ke=function(He){Se.innerHTML=h.dateMonths[He.getMonth()],xe.innerHTML=He.getDate(),Z.innerHTML=He.getFullYear()},Le=function(He){var W=new Date(J.getFullYear(),J.getMonth()+1,0).getDate(),de=He.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(de)>W&&(de=W.toString()),He.target.textContent=de,Number(de)<1&&(de="1"),J.setDate(Number(de))},Oe=function(He){var W=He.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);He.target.textContent=W,J.setFullYear(Number(W))},Ue=function(He){ke(J)},it=function(He){var W=new Date(J.getFullYear(),J.getMonth()+He+1,0).getDate();J.getDate()>W&&J.setDate(W),J.setMonth(J.getMonth()+He),ke(J)},_t=function(He){J.setDate(J.getDate()+He),ke(J)},ga=function(He){var W=J.getFullYear()+He;W<0?J.setFullYear(0):J.setFullYear(J.getFullYear()+He),ke(J)},Ht=document.createElement("div"),Dn=y();Ht.id=Dn;var qn=document.createElement("div");qn.classList.add(h.classes.backgroundInfo);var Ie=document.createElement("div");Ie.classList.add(h.classes.dateSelectorInner);var qt=document.createElement("div");qt.classList.add(h.classes.button),qt.classList.add(h.classes.elementThird),qt.classList.add(h.classes.dateSelectorUp),qt.innerHTML=ye;var at=document.createElement("div");at.classList.add(h.classes.button),at.classList.add(h.classes.elementThird),at.classList.add(h.classes.dateSelectorUp),at.innerHTML=ye;var We=document.createElement("div");We.classList.add(h.classes.button),We.classList.add(h.classes.elementThird),We.classList.add(h.classes.dateSelectorUp),We.innerHTML=ye,Se.classList.add(h.classes.element),Se.classList.add(h.classes.elementThird),Se.innerHTML=h.dateMonths[J.getMonth()],xe.classList.add(h.classes.element),xe.classList.add(h.classes.elementThird),xe.setAttribute("contentEditable",!0),xe.addEventListener("input",Le),xe.addEventListener("blur",Ue),xe.innerHTML=J.getDate(),Z.classList.add(h.classes.element),Z.classList.add(h.classes.elementThird),Z.setAttribute("contentEditable",!0),Z.addEventListener("input",Oe),Z.addEventListener("blur",Ue),Z.innerHTML=J.getFullYear();var Yt=document.createElement("div");Yt.classList.add(h.classes.button),Yt.classList.add(h.classes.elementThird),Yt.innerHTML=ye;var Bt=document.createElement("div");Bt.classList.add(h.classes.button),Bt.classList.add(h.classes.elementThird),Bt.innerHTML=ye;var Wn=document.createElement("div");Wn.classList.add(h.classes.button),Wn.classList.add(h.classes.elementThird),Wn.innerHTML=ye,qt.onclick=function(){return it(1)},at.onclick=function(){return _t(1)},We.onclick=function(){return ga(1)},Yt.onclick=function(){return it(-1)},Bt.onclick=function(){return _t(-1)},Wn.onclick=function(){return ga(-1)};var dt=document.createElement("div");dt.classList.add(h.classes.button),dt.classList.add(h.classes.elementHalf),dt.classList.add(h.classes.backgroundSuccess),dt.innerHTML=pe,dt.onclick=function(){F(Dn,ce),B(),G?G(J):$&&$(J)};var cn=document.createElement("div");cn.classList.add(h.classes.button),cn.classList.add(h.classes.elementHalf),cn.classList.add(h.classes.backgroundError),cn.innerHTML=ue,cn.onclick=function(){F(Dn,ce),B(),ie?ie(J):z&&z(J)},Ie.appendChild(qt),Ie.appendChild(at),Ie.appendChild(We),Ie.appendChild(Se),Ie.appendChild(xe),Ie.appendChild(Z),Ie.appendChild(Yt),Ie.appendChild(Bt),Ie.appendChild(Wn),qn.appendChild(Ie),Ht.appendChild(qn),Ht.appendChild(dt),Ht.appendChild(cn),Ht.listener=function(He){v(He)?dt.click():E(He)&&cn.click()},R(Ht,ce),w(Ht,ce)};m.default={alert:N,force:P,confirm:x,input:D,select:M,date:q,setOptions:A,hideAlerts:I}}])})}).call(a,r(0)(n))}])})}),Q4={};g2(Q4,{default:()=>Qu});var f2=Y4(J4());p2(Q4,Y4(J4()));var{default:V4,...h2}=f2,Qu=V4!==void 0?V4:h2;g();g();var fs=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function hs(e,t,n,a){e.addEventListener?e.addEventListener(t,n,a):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function nd(e,t){for(var n=t.slice(0,t.length-1),a=0;a=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function b2(e,t){for(var n=e.length>=t.length?e:t,a=e.length>=t.length?t:e,r=!0,u=0;u=0&&qe.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&qe.splice(0,qe.length),(t===93||t===224)&&(t=91),t in mt){mt[t]=!1;for(var a in An)An[a]===t&&(Ve[a]=!1)}}function k2(e){if(typeof e>"u")Object.keys(et).forEach(function(o){return delete et[o]});else if(Array.isArray(e))e.forEach(function(o){o.key&&bs(o)});else if(typeof e=="object")e.key&&bs(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a1?nd(An,l):[];et[m]=et[m].filter(function(f){var d=a?f.method===a:!0;return!(d&&f.scope===n&&b2(f.mods,p))})}})};function X4(e,t,n,a){if(t.element===a){var r;if(t.scope===n||t.scope==="all"){r=t.mods.length>0;for(var u in mt)Object.prototype.hasOwnProperty.call(mt,u)&&(!mt[u]&&t.mods.indexOf(+u)>-1||mt[u]&&t.mods.indexOf(+u)===-1)&&(r=!1);(t.mods.length===0&&!mt[16]&&!mt[18]&&!mt[17]&&!mt[91]||r||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function ed(e,t){var n=et["*"],a=e.keyCode||e.which||e.charCode;if(Ve.filter.call(this,e)){if((a===93||a===224)&&(a=91),qe.indexOf(a)===-1&&a!==229&&qe.push(a),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(d){var b=xs[d];e[d]&&qe.indexOf(b)===-1?qe.push(b):!e[d]&&qe.indexOf(b)>-1?qe.splice(qe.indexOf(b),1):d==="metaKey"&&e[d]&&qe.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(qe=qe.slice(qe.indexOf(b))))}),a in mt){mt[a]=!0;for(var r in An)An[r]===a&&(Ve[r]=!0);if(!n)return}for(var u in mt)Object.prototype.hasOwnProperty.call(mt,u)&&(mt[u]=e[xs[u]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(qe.indexOf(17)===-1&&qe.push(17),qe.indexOf(18)===-1&&qe.push(18),mt[17]=!0,mt[18]=!0);var o=Ur();if(n)for(var i=0;i-1}function Ve(e,t,n){qe=[];var a=ad(e),r=[],u="all",o=document,i=0,l=!1,c=!0,s="+",m=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(u=t.scope),t.element&&(o=t.element),t.keyup&&(l=t.keyup),t.keydown!==void 0&&(c=t.keydown),t.capture!==void 0&&(m=t.capture),typeof t.splitKey=="string"&&(s=t.splitKey)),typeof t=="string"&&(u=t);i1&&(r=nd(An,e)),e=e[e.length-1],e=e==="*"?"*":Xu(e),e in et||(et[e]=[]),et[e].push({keyup:l,keydown:c,scope:u,mods:r,shortcut:a[i],method:n,key:a[i],splitKey:s,element:o});typeof o<"u"&&!S2(o)&&window&&(ud.push(o),hs(o,"keydown",function(p){ed(p,o)},m),Z4||(Z4=!0,hs(window,"focus",function(){qe=[]},m)),hs(o,"keyup",function(p){ed(p,o),A2(p)},m))}function D2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(et).forEach(function(n){var a=et[n].filter(function(r){return r.scope===t&&r.shortcut===e});a.forEach(function(r){r&&r.method&&r.method()})})}var ys={getPressedKeyString:T2,setScope:od,getScope:Ur,deleteScope:v2,getPressedKeyCodes:E2,isPressed:w2,filter:C2,trigger:D2,unbind:k2,keyMap:jr,modifier:An,modifierMap:xs};for(Zu in ys)Object.prototype.hasOwnProperty.call(ys,Zu)&&(Ve[Zu]=ys[Zu]);var Zu;typeof document<"u"&&(td=window.hotkeys,Ve.noConflict=function(e){return e&&window.hotkeys===Ve&&(window.hotkeys=td),Ve},window.hotkeys=Ve);var td;g();g();var L2={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},sd={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Ze={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},kt={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Jn={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},K=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let a=K.getVersionPrecision(e),r=K.getVersionPrecision(t),u=Math.max(a,r),o=0,i=K.map([e,t],l=>{let c=u-K.getVersionPrecision(l),s=l+new Array(c+1).join(".0");return K.map(s.split("."),m=>new Array(20-m.length).join("0")+m).reverse()});for(n&&(o=u-Math.min(a,r)),u-=1;u>=o;){if(i[0][u]>i[1][u])return 1;if(i[0][u]===i[1][u]){if(u===o)return 0;u-=1}else if(i[0][u]{n[o]=u[o]})}return e}static getBrowserAlias(e){return L2[e]}static getBrowserTypeByAlias(e){return sd[e]||""}},je=/version\/(\d+(\.?_?\d+)+)/i,P2=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=K.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=K.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=K.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=K.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=K.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=K.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=K.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=K.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=K.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=K.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=K.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=K.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=K.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=K.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=K.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=K.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=K.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=K.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=K.getFirstMatch(je,e)||K.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=K.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=K.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=K.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=K.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=K.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=K.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=K.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=K.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=K.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=K.getFirstMatch(je,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,a=e.search("\\(")!==-1?n:t;return{name:K.getFirstMatch(a,e),version:K.getSecondMatch(a,e)}}}],M2=P2,F2=[{test:[/Roku\/DVP/],describe(e){let t=K.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:kt.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=K.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:kt.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=K.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=K.getWindowsVersionName(t);return{name:kt.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:kt.iOS},n=K.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=K.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=K.getMacOSVersionName(t),a={name:kt.MacOS,version:t};return n&&(a.versionName=n),a}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=K.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:kt.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=K.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=K.getAndroidVersionName(t),a={name:kt.Android,version:t};return n&&(a.versionName=n),a}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=K.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:kt.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=K.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||K.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||K.getFirstMatch(/\bbb(\d+)/i,e);return{name:kt.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=K.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:kt.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=K.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:kt.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:kt.Linux}}},{test:[/CrOS/],describe(){return{name:kt.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=K.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:kt.PlayStation4,version:t}}}],_2=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=K.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Ze.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Ze.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Ze.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Ze.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Ze.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Ze.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Ze.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=K.getFirstMatch(/(ipod|iphone)/i,e);return{type:Ze.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Ze.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Ze.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Ze.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Ze.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Ze.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Ze.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Ze.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Ze.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Ze.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Ze.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Ze.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Ze.tv}}}],B2=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Jn.Blink};let t=K.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Jn.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:Jn.Trident},n=K.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:Jn.Presto},n=K.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:Jn.Gecko},n=K.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Jn.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:Jn.WebKit},n=K.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],R2=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=K.find(M2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=K.find(F2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=K.find(_2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=K.find(B2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return K.assign({},this.parsedResult)}satisfies(e){let t={},n=0,a={},r=0;if(Object.keys(e).forEach(u=>{let o=e[u];typeof o=="string"?(a[u]=o,r+=1):typeof o=="object"&&(t[u]=o,n+=1)}),n>0){let u=Object.keys(t),o=K.find(u,l=>this.isOS(l));if(o){let l=this.satisfies(t[o]);if(l!==void 0)return l}let i=K.find(u,l=>this.isPlatform(l));if(i){let l=this.satisfies(t[i]);if(l!==void 0)return l}}if(r>0){let u=Object.keys(a),o=K.find(u,i=>this.isBrowser(i,!0));if(o!==void 0)return this.compareVersion(a[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),a=e.toLowerCase(),r=K.getBrowserTypeByAlias(a);return t&&r&&(a=r.toLowerCase()),a===n}compareVersion(e){let t=[0],n=e,a=!1,r=this.getBrowserVersion();if(typeof r=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(a=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(a=!0,n=e.substr(1)),t.indexOf(K.compareVersions(r,n,a))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},id=R2,O2=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new id(e,t)}static parse(e){return new id(e).getResult()}static get BROWSER_MAP(){return sd}static get ENGINE_MAP(){return Jn}static get OS_MAP(){return kt}static get PLATFORMS_MAP(){return Ze}},$a=O2;g();g();var{entries:hd,setPrototypeOf:ld,isFrozen:I2,getPrototypeOf:N2,getOwnPropertyDescriptor:j2}=Object,{freeze:St,seal:gn,create:U2}=Object,{apply:As,construct:ks}=typeof Reflect<"u"&&Reflect;As||(As=function(e,t,n){return e.apply(t,n)});St||(St=function(e){return e});gn||(gn=function(e){return e});ks||(ks=function(e,t){return new e(...t)});var z2=Xt(Array.prototype.forEach),cd=Xt(Array.prototype.pop),zr=Xt(Array.prototype.push),no=Xt(String.prototype.toLowerCase),Es=Xt(String.prototype.toString),H2=Xt(String.prototype.match),mn=Xt(String.prototype.replace),q2=Xt(String.prototype.indexOf),W2=Xt(String.prototype.trim),Kt=Xt(RegExp.prototype.test),Hr=$2(TypeError);function Xt(e){return function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r/gm),J2=gn(/\${[\w\W]*}/gm),Q2=gn(/^data-[\-\w.\u00B7-\uFFFF]/),Z2=gn(/^aria-[\-\w]+$/),bd=gn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),X2=gn(/^(?:\w+script|data):/i),e1=gn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),yd=gn(/^html$/i),fd=Object.freeze({__proto__:null,MUSTACHE_EXPR:V2,ERB_EXPR:Y2,TMPLIT_EXPR:J2,DATA_ATTR:Q2,ARIA_ATTR:Z2,IS_ALLOWED_URI:bd,IS_SCRIPT_OR_DATA:X2,ATTR_WHITESPACE:e1,DOCTYPE_NAME:yd}),t1=()=>typeof window>"u"?null:window,n1=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,a="data-tt-policy-suffix";t&&t.hasAttribute(a)&&(n=t.getAttribute(a));let r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML(u){return u},createScriptURL(u){return u}})}catch{return null}};function xd(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t1(),t=L=>xd(L);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,a=n.currentScript,{document:r}=e,{DocumentFragment:u,HTMLTemplateElement:o,Node:i,Element:l,NodeFilter:c,NamedNodeMap:s=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:m,DOMParser:p,trustedTypes:f}=e,d=l.prototype,b=eo(d,"cloneNode"),C=eo(d,"nextSibling"),h=eo(d,"childNodes"),A=eo(d,"parentNode");if(typeof o=="function"){let L=r.createElement("template");L.content&&L.content.ownerDocument&&(r=L.content.ownerDocument)}let S,U="",{implementation:O,createNodeIterator:y,createDocumentFragment:T,getElementsByTagName:k}=r,{importNode:v}=n,E={};t.isSupported=typeof hd=="function"&&typeof A=="function"&&O&&O.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:R,ERB_EXPR:F,TMPLIT_EXPR:w,DATA_ATTR:B,ARIA_ATTR:I,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:P}=fd,{IS_ALLOWED_URI:x}=fd,D=null,M=De({},[...dd,...Ts,...Cs,...ws,...md]),q=null,j=De({},[...gd,...vs,...pd,...to]),$=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),z=null,ae=null,J=!0,Y=!0,pe=!1,he=!0,ue=!1,G=!1,ie=!1,me=!1,ce=!1,ye=!1,Se=!1,xe=!0,Z=!1,ke="user-content-",Le=!0,Oe=!1,Ue={},it=null,_t=De({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ga=null,Ht=De({},["audio","video","img","source","image","track"]),Dn=null,qn=De({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ie="http://www.w3.org/1998/Math/MathML",qt="http://www.w3.org/2000/svg",at="http://www.w3.org/1999/xhtml",We=at,Yt=!1,Bt=null,Wn=De({},[Ie,qt,at],Es),dt,cn=["application/xhtml+xml","text/html"],He="text/html",W,de=null,Ke=r.createElement("form"),Pe=function(L){return L instanceof RegExp||L instanceof Function},Fe=function(L){if(!(de&&de===L)){if((!L||typeof L!="object")&&(L={}),L=Ka(L),dt=cn.indexOf(L.PARSER_MEDIA_TYPE)===-1?dt=He:dt=L.PARSER_MEDIA_TYPE,W=dt==="application/xhtml+xml"?Es:no,D="ALLOWED_TAGS"in L?De({},L.ALLOWED_TAGS,W):M,q="ALLOWED_ATTR"in L?De({},L.ALLOWED_ATTR,W):j,Bt="ALLOWED_NAMESPACES"in L?De({},L.ALLOWED_NAMESPACES,Es):Wn,Dn="ADD_URI_SAFE_ATTR"in L?De(Ka(qn),L.ADD_URI_SAFE_ATTR,W):qn,ga="ADD_DATA_URI_TAGS"in L?De(Ka(Ht),L.ADD_DATA_URI_TAGS,W):Ht,it="FORBID_CONTENTS"in L?De({},L.FORBID_CONTENTS,W):_t,z="FORBID_TAGS"in L?De({},L.FORBID_TAGS,W):{},ae="FORBID_ATTR"in L?De({},L.FORBID_ATTR,W):{},Ue="USE_PROFILES"in L?L.USE_PROFILES:!1,J=L.ALLOW_ARIA_ATTR!==!1,Y=L.ALLOW_DATA_ATTR!==!1,pe=L.ALLOW_UNKNOWN_PROTOCOLS||!1,he=L.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ue=L.SAFE_FOR_TEMPLATES||!1,G=L.WHOLE_DOCUMENT||!1,ce=L.RETURN_DOM||!1,ye=L.RETURN_DOM_FRAGMENT||!1,Se=L.RETURN_TRUSTED_TYPE||!1,me=L.FORCE_BODY||!1,xe=L.SANITIZE_DOM!==!1,Z=L.SANITIZE_NAMED_PROPS||!1,Le=L.KEEP_CONTENT!==!1,Oe=L.IN_PLACE||!1,x=L.ALLOWED_URI_REGEXP||bd,We=L.NAMESPACE||at,$=L.CUSTOM_ELEMENT_HANDLING||{},L.CUSTOM_ELEMENT_HANDLING&&Pe(L.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&($.tagNameCheck=L.CUSTOM_ELEMENT_HANDLING.tagNameCheck),L.CUSTOM_ELEMENT_HANDLING&&Pe(L.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&($.attributeNameCheck=L.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),L.CUSTOM_ELEMENT_HANDLING&&typeof L.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&($.allowCustomizedBuiltInElements=L.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ue&&(Y=!1),ye&&(ce=!0),Ue&&(D=De({},[...md]),q=[],Ue.html===!0&&(De(D,dd),De(q,gd)),Ue.svg===!0&&(De(D,Ts),De(q,vs),De(q,to)),Ue.svgFilters===!0&&(De(D,Cs),De(q,vs),De(q,to)),Ue.mathMl===!0&&(De(D,ws),De(q,pd),De(q,to))),L.ADD_TAGS&&(D===M&&(D=Ka(D)),De(D,L.ADD_TAGS,W)),L.ADD_ATTR&&(q===j&&(q=Ka(q)),De(q,L.ADD_ATTR,W)),L.ADD_URI_SAFE_ATTR&&De(Dn,L.ADD_URI_SAFE_ATTR,W),L.FORBID_CONTENTS&&(it===_t&&(it=Ka(it)),De(it,L.FORBID_CONTENTS,W)),Le&&(D["#text"]=!0),G&&De(D,["html","head","body"]),D.table&&(De(D,["tbody"]),delete z.tbody),L.TRUSTED_TYPES_POLICY){if(typeof L.TRUSTED_TYPES_POLICY.createHTML!="function")throw Hr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof L.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Hr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=L.TRUSTED_TYPES_POLICY,U=S.createHTML("")}else S===void 0&&(S=n1(f,a)),S!==null&&typeof U=="string"&&(U=S.createHTML(""));St&&St(L),de=L}},Ln=De({},["mi","mo","mn","ms","mtext"]),wn=De({},["foreignobject","desc","title","annotation-xml"]),Jt=De({},["title","style","font","a","script"]),Oa=De({},Ts);De(Oa,Cs),De(Oa,K2);let _i=De({},ws);De(_i,G2);let sf=function(L){let oe=A(L);(!oe||!oe.tagName)&&(oe={namespaceURI:We,tagName:"template"});let X=no(L.tagName),_e=no(oe.tagName);return Bt[L.namespaceURI]?L.namespaceURI===qt?oe.namespaceURI===at?X==="svg":oe.namespaceURI===Ie?X==="svg"&&(_e==="annotation-xml"||Ln[_e]):!!Oa[X]:L.namespaceURI===Ie?oe.namespaceURI===at?X==="math":oe.namespaceURI===qt?X==="math"&&wn[_e]:!!_i[X]:L.namespaceURI===at?oe.namespaceURI===qt&&!wn[_e]||oe.namespaceURI===Ie&&!Ln[_e]?!1:!_i[X]&&(Jt[X]||!Oa[X]):!!(dt==="application/xhtml+xml"&&Bt[L.namespaceURI]):!1},Ia=function(L){zr(t.removed,{element:L});try{L.parentNode.removeChild(L)}catch{L.remove()}},Bi=function(L,oe){try{zr(t.removed,{attribute:oe.getAttributeNode(L),from:oe})}catch{zr(t.removed,{attribute:null,from:oe})}if(oe.removeAttribute(L),L==="is"&&!q[L])if(ce||ye)try{Ia(oe)}catch{}else try{oe.setAttribute(L,"")}catch{}},lc=function(L){let oe,X;if(me)L=""+L;else{let vt=H2(L,/^[\r\n\t ]+/);X=vt&&vt[0]}dt==="application/xhtml+xml"&&We===at&&(L=''+L+"");let _e=S?S.createHTML(L):L;if(We===at)try{oe=new p().parseFromString(_e,dt)}catch{}if(!oe||!oe.documentElement){oe=O.createDocument(We,"template",null);try{oe.documentElement.innerHTML=Yt?U:_e}catch{}}let rt=oe.body||oe.documentElement;return L&&X&&rt.insertBefore(r.createTextNode(X),rt.childNodes[0]||null),We===at?k.call(oe,G?"html":"body")[0]:G?oe.documentElement:rt},cc=function(L){return y.call(L.ownerDocument||L,L,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},lf=function(L){return L instanceof m&&(typeof L.nodeName!="string"||typeof L.textContent!="string"||typeof L.removeChild!="function"||!(L.attributes instanceof s)||typeof L.removeAttribute!="function"||typeof L.setAttribute!="function"||typeof L.namespaceURI!="string"||typeof L.insertBefore!="function"||typeof L.hasChildNodes!="function")},xu=function(L){return typeof i=="object"?L instanceof i:L&&typeof L=="object"&&typeof L.nodeType=="number"&&typeof L.nodeName=="string"},Pn=function(L,oe,X){E[L]&&z2(E[L],_e=>{_e.call(t,oe,X,de)})},dc=function(L){let oe;if(Pn("beforeSanitizeElements",L,null),lf(L))return Ia(L),!0;let X=W(L.nodeName);if(Pn("uponSanitizeElement",L,{tagName:X,allowedTags:D}),L.hasChildNodes()&&!xu(L.firstElementChild)&&(!xu(L.content)||!xu(L.content.firstElementChild))&&Kt(/<[/\w]/g,L.innerHTML)&&Kt(/<[/\w]/g,L.textContent))return Ia(L),!0;if(!D[X]||z[X]){if(!z[X]&&gc(X)&&($.tagNameCheck instanceof RegExp&&Kt($.tagNameCheck,X)||$.tagNameCheck instanceof Function&&$.tagNameCheck(X)))return!1;if(Le&&!it[X]){let _e=A(L)||L.parentNode,rt=h(L)||L.childNodes;if(rt&&_e){let vt=rt.length;for(let Rt=vt-1;Rt>=0;--Rt)_e.insertBefore(b(rt[Rt],!0),C(L))}}return Ia(L),!0}return L instanceof l&&!sf(L)||(X==="noscript"||X==="noembed")&&Kt(/<\/no(script|embed)/i,L.innerHTML)?(Ia(L),!0):(ue&&L.nodeType===3&&(oe=L.textContent,oe=mn(oe,R," "),oe=mn(oe,F," "),oe=mn(oe,w," "),L.textContent!==oe&&(zr(t.removed,{element:L.cloneNode()}),L.textContent=oe)),Pn("afterSanitizeElements",L,null),!1)},mc=function(L,oe,X){if(xe&&(oe==="id"||oe==="name")&&(X in r||X in Ke))return!1;if(!(Y&&!ae[oe]&&Kt(B,oe))&&!(J&&Kt(I,oe))){if(!q[oe]||ae[oe]){if(!(gc(L)&&($.tagNameCheck instanceof RegExp&&Kt($.tagNameCheck,L)||$.tagNameCheck instanceof Function&&$.tagNameCheck(L))&&($.attributeNameCheck instanceof RegExp&&Kt($.attributeNameCheck,oe)||$.attributeNameCheck instanceof Function&&$.attributeNameCheck(oe))||oe==="is"&&$.allowCustomizedBuiltInElements&&($.tagNameCheck instanceof RegExp&&Kt($.tagNameCheck,X)||$.tagNameCheck instanceof Function&&$.tagNameCheck(X))))return!1}else if(!Dn[oe]&&!Kt(x,mn(X,P,""))&&!((oe==="src"||oe==="xlink:href"||oe==="href")&&L!=="script"&&q2(X,"data:")===0&&ga[L])&&!(pe&&!Kt(N,mn(X,P,"")))&&X)return!1}return!0},gc=function(L){return L.indexOf("-")>0},pc=function(L){let oe,X,_e,rt;Pn("beforeSanitizeAttributes",L,null);let{attributes:vt}=L;if(!vt)return;let Rt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:q};for(rt=vt.length;rt--;){oe=vt[rt];let{name:st,namespaceURI:Na}=oe;if(X=st==="value"?oe.value:W2(oe.value),_e=W(st),Rt.attrName=_e,Rt.attrValue=X,Rt.keepAttr=!0,Rt.forceKeepAttr=void 0,Pn("uponSanitizeAttribute",L,Rt),X=Rt.attrValue,Rt.forceKeepAttr||(Bi(st,L),!Rt.keepAttr))continue;if(!he&&Kt(/\/>/i,X)){Bi(st,L);continue}ue&&(X=mn(X,R," "),X=mn(X,F," "),X=mn(X,w," "));let fc=W(L.nodeName);if(mc(fc,_e,X)){if(Z&&(_e==="id"||_e==="name")&&(Bi(st,L),X=ke+X),S&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!Na)switch(f.getAttributeType(fc,_e)){case"TrustedHTML":{X=S.createHTML(X);break}case"TrustedScriptURL":{X=S.createScriptURL(X);break}}try{Na?L.setAttributeNS(Na,st,X):L.setAttribute(st,X),cd(t.removed)}catch{}}}Pn("afterSanitizeAttributes",L,null)},cf=function L(oe){let X,_e=cc(oe);for(Pn("beforeSanitizeShadowDOM",oe,null);X=_e.nextNode();)Pn("uponSanitizeShadowNode",X,null),!dc(X)&&(X.content instanceof u&&L(X.content),pc(X));Pn("afterSanitizeShadowDOM",oe,null)};return t.sanitize=function(L){let oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X,_e,rt,vt;if(Yt=!L,Yt&&(L=""),typeof L!="string"&&!xu(L))if(typeof L.toString=="function"){if(L=L.toString(),typeof L!="string")throw Hr("dirty is not a string, aborting")}else throw Hr("toString is not a function");if(!t.isSupported)return L;if(ie||Fe(oe),t.removed=[],typeof L=="string"&&(Oe=!1),Oe){if(L.nodeName){let Na=W(L.nodeName);if(!D[Na]||z[Na])throw Hr("root node is forbidden and cannot be sanitized in-place")}}else if(L instanceof i)X=lc(""),_e=X.ownerDocument.importNode(L,!0),_e.nodeType===1&&_e.nodeName==="BODY"||_e.nodeName==="HTML"?X=_e:X.appendChild(_e);else{if(!ce&&!ue&&!G&&L.indexOf("<")===-1)return S&&Se?S.createHTML(L):L;if(X=lc(L),!X)return ce?null:Se?U:""}X&&me&&Ia(X.firstChild);let Rt=cc(Oe?L:X);for(;rt=Rt.nextNode();)dc(rt)||(rt.content instanceof u&&cf(rt.content),pc(rt));if(Oe)return L;if(ce){if(ye)for(vt=T.call(X.ownerDocument);X.firstChild;)vt.appendChild(X.firstChild);else vt=X;return(q.shadowroot||q.shadowrootmod)&&(vt=v.call(n,vt,!0)),vt}let st=G?X.outerHTML:X.innerHTML;return G&&D["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&Kt(yd,X.ownerDocument.doctype.name)&&(st=" +`+st),ue&&(st=mn(st,R," "),st=mn(st,F," "),st=mn(st,w," ")),S&&Se?S.createHTML(st):st},t.setConfig=function(L){Fe(L),ie=!0},t.clearConfig=function(){de=null,ie=!1},t.isValidAttribute=function(L,oe,X){de||Fe({});let _e=W(L),rt=W(oe);return mc(_e,rt,X)},t.addHook=function(L,oe){typeof oe=="function"&&(E[L]=E[L]||[],zr(E[L],oe))},t.removeHook=function(L){if(E[L])return cd(E[L])},t.removeHooks=function(L){E[L]&&(E[L]=[])},t.removeAllHooks=function(){E={}},t}var Re=xd();var a1=Qu.alert;g();var Ga=console,Ss=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),a=Math.round(n-this.#e),r=Zt.green;a>1e4?r=Zt.red:a>1e3&&(r=Zt.yellow),Ga.debug(Zt.dim(ha+" TIMING:"),t,"in",r(a+"ms")),this.#e=n}},qr=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&Ga.log(Zt.dim(ha+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&Ga.log(Zt.green(ha+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&Ga.warn(Zt.yellow(ha+" WARN:"),...t)}error(...t){this.#e<=3&&Ga.error(Zt.red(ha+" ERROR:"),...t)}fatal(...t){this.#e<=4&&Ga.error(Zt.red(ha+" FATAL:"),...t)}timing(){return this.level===0?new Ss:{reset:()=>{},stop:()=>{}}}},H=new qr;var Ed=["*://*/*","*","*://*"],Cd="immersive-translate-wildcard-placeholder.com";function Ds(e,t){let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(o=>Ed.includes(o)))return e;let a=new URL(e);a.hash="",a.search="";let r=a.href,u=a.hostname;if(n&&n.length>0){let o=n.find(i=>{let l=i;if(i===u)return!0;if(Ed.includes(i))return!0;if(!i.includes("*")&&i.includes("://")){try{let c=new URL(i);return c.pathname==="/"&&!i.endsWith("/")?c.hostname===u:u1(r,i)}catch{}return!1}else{let c,s=i;if(i.includes("://")){let C=i.split("://");c=C[0],c==="*"&&C.length>1&&(c="*",i="https://"+C[1])}else c="*",i="https://"+i;let m=i.replace(/\*/g,Cd),p;try{p=new URL(m)}catch{return H.debug("invalid match pattern",m,"raw match value:",s),!1}let f=p.hostname,d=p.pathname;d==="/"&&(s.replace("://","").includes("/")||(d="/*"));let b=r1(c+":",Td(f),Td(d));if(b){let C=new URL(r);return C.port="",b.test(C.href)}else return!1}});if(o)return o}return null}function Td(e){return e.replaceAll(Cd,"*")}function r1(e,t,n){let a="^";return e==="*:"?a+="(http:|https:|file:)":a+=e,a+="//",t&&(e==="file:"||(t==="*"?a+="[^/]+?":(t.match(/^\*\./)&&(a+="[^/]*?",t=t.substring(2)),a+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?a+="(/.*)?":n.includes("*")?(a+=n.replace(/\*/g,".*?"),a+="/?"):a+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):a+="/?",a+="$",new RegExp(a)}function On(e,t){return Ds(e,t)!==null}function u1(e,t){let n=new URL(e),a=new URL(t);return n.hostname===a.hostname&&n.pathname===a.pathname&&n.protocol===a.protocol&&n.port===a.port}g();g();function xa(e){return Array.isArray(e)?e:e?[e]:[]}function Ls(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function Qn(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function ao(e,t){let n={...e};return vd(n,t),o1(n,t),n}function wd(e,t,n){let a={...t};return i1(e,a,n),a}function o1(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},a=t.condition.enableSubtitle?.false||{},r=e.enableSubtitle?n:a;vd(e,r)}function i1(e,t,n){try{return Object.keys(t).forEach(a=>{let[r,u]=a.split(".");if(u){let o=t[a];if(Array.isArray(e[r])&&(o=xa(t[a])),u==="add"){t[r]=Wr(e[r],o),delete t[a];return}else if(u=="remove"){t[r]=Ps(e[r],o),delete t[a];return}}}),Object.keys(n).forEach(a=>{let[r,u]=a.split(".");if(!r||n[a]===void 0)return;let o=n[a],i=t[r];if(Array.isArray(e[r])&&(o=xa(n[a]),i=xa(t[r])),u==="add"){t[r]=Wr(i,o);return}else if(u=="remove"){t[r]=Ps(i,o);return}Array.isArray(i)&&r.startsWith("additional")?t[r]=Wr(i,o):t[r]=o}),t}catch{}}function vd(e,t){return Object.keys(t).forEach(n=>{let[a,r]=n.split(".");if(!a||t[n]===void 0)return;let u=t[n];if(Array.isArray(e[a])&&(u=xa(t[n])),r==="add"){e[a]=Wr(e[a],u);return}else if(r=="remove"){e[a]=Ps(e[a],u);return}Array.isArray(e[a])&&a.startsWith("additional")?e[a]=Wr(e[a],u):e[a]=u}),e}function Wr(e,t){let n;if(Array.isArray(e)){let a=xa(t);n=[...e,...a],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"&&(n={...e,...t});return n}function Ps(e,t){if(Array.isArray(e)){let n=xa(t);return e=e.filter(a=>!n.includes(a)),Array.from(new Set(e))}else typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(n=>{delete e[n]});return e}g();g();var Va="input is invalid type",Ms=typeof window=="object",Zn=Ms?window:{};Zn.JS_SHA256_NO_WINDOW&&(Ms=!1);var s1=!Ms&&typeof self=="object",l1=!Zn.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;l1?Zn=global:s1&&(Zn=self);var E8=!Zn.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,T8=typeof define=="function"&&define.amd,$r=!Zn.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",le="0123456789abcdef".split(""),c1=[-2147483648,8388608,32768,128],pn=[24,16,8,0],ro=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],uo=["hex","array","digest","arrayBuffer"],lt=[];(Zn.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});$r&&(Zn.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var Ad=function(e,t){return function(n){return new ct(t,!0).update(n)[e]()}},Sd=function(e){var t=Ad("hex",e);t.create=function(){return new ct(e)},t.update=function(r){return t.create().update(r)};for(var n=0;n>2]|=e[r]<>2]|=a<>2]|=(192|a>>6)<>2]|=(128|a&63)<=57344?(i[u>>2]|=(224|a>>12)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<>2]|=(240|a>>18)<>2]|=(128|a>>12&63)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<=64?(this.block=i[16],this.start=u-64,this.hash(),this.hashed=!0):this.start=u}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};ct.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=c1[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};ct.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,l=this.blocks,c,s,m,p,f,d,b,C,h,A,S;for(c=16;c<64;++c)f=l[c-15],s=(f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3,f=l[c-2],m=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10,l[c]=l[c-16]+s+l[c-7]+m<<0;for(S=t&n,c=0;c<64;c+=4)this.first?(this.is224?(C=300032,f=l[0]-1413257819,i=f-150054599<<0,a=f+24177077<<0):(C=704751109,f=l[0]-210244248,i=f-1521486534<<0,a=f+143694565<<0),this.first=!1):(s=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),m=(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7),C=e&t,p=C^e&n^S,b=r&u^~r&o,f=i+m+b+ro[c]+l[c],d=s+p,i=a+f<<0,a=f+d<<0),s=(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10),m=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),h=a&e,p=h^a&t^C,b=i&r^~i&u,f=o+m+b+ro[c+1]+l[c+1],d=s+p,o=n+f<<0,n=f+d<<0,s=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),m=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),A=n&a,p=A^n&e^h,b=o&i^~o&r,f=u+m+b+ro[c+2]+l[c+2],d=s+p,u=t+f<<0,t=f+d<<0,s=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),m=(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7),S=t&n,p=S^t&a^A,b=u&o^~u&i,f=r+m+b+ro[c+3]+l[c+3],d=s+p,r=e+f<<0,e=f+d<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+a<<0,this.h4=this.h4+r<<0,this.h5=this.h5+u<<0,this.h6=this.h6+o<<0,this.h7=this.h7+i<<0};ct.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,l=le[e>>28&15]+le[e>>24&15]+le[e>>20&15]+le[e>>16&15]+le[e>>12&15]+le[e>>8&15]+le[e>>4&15]+le[e&15]+le[t>>28&15]+le[t>>24&15]+le[t>>20&15]+le[t>>16&15]+le[t>>12&15]+le[t>>8&15]+le[t>>4&15]+le[t&15]+le[n>>28&15]+le[n>>24&15]+le[n>>20&15]+le[n>>16&15]+le[n>>12&15]+le[n>>8&15]+le[n>>4&15]+le[n&15]+le[a>>28&15]+le[a>>24&15]+le[a>>20&15]+le[a>>16&15]+le[a>>12&15]+le[a>>8&15]+le[a>>4&15]+le[a&15]+le[r>>28&15]+le[r>>24&15]+le[r>>20&15]+le[r>>16&15]+le[r>>12&15]+le[r>>8&15]+le[r>>4&15]+le[r&15]+le[u>>28&15]+le[u>>24&15]+le[u>>20&15]+le[u>>16&15]+le[u>>12&15]+le[u>>8&15]+le[u>>4&15]+le[u&15]+le[o>>28&15]+le[o>>24&15]+le[o>>20&15]+le[o>>16&15]+le[o>>12&15]+le[o>>8&15]+le[o>>4&15]+le[o&15];return this.is224||(l+=le[i>>28&15]+le[i>>24&15]+le[i>>20&15]+le[i>>16&15]+le[i>>12&15]+le[i>>8&15]+le[i>>4&15]+le[i&15]),l};ct.prototype.toString=ct.prototype.hex;ct.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,l=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,a>>24&255,a>>16&255,a>>8&255,a&255,r>>24&255,r>>16&255,r>>8&255,r&255,u>>24&255,u>>16&255,u>>8&255,u&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||l.push(i>>24&255,i>>16&255,i>>8&255,i&255),l};ct.prototype.array=ct.prototype.digest;ct.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function oo(e,t,n){var a,r=typeof e;if(r==="string"){var u=[],o=e.length,i=0,l;for(a=0;a>6,u[i++]=128|l&63):l<55296||l>=57344?(u[i++]=224|l>>12,u[i++]=128|l>>6&63,u[i++]=128|l&63):(l=65536+((l&1023)<<10|e.charCodeAt(++a)&1023),u[i++]=240|l>>18,u[i++]=128|l>>12&63,u[i++]=128|l>>6&63,u[i++]=128|l&63);e=u}else if(r==="object"){if(e===null)throw new Error(Va);if($r&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!$r||!ArrayBuffer.isView(e)))throw new Error(Va)}else throw new Error(Va);e.length>64&&(e=new ct(t,!0).update(e).array());var c=[],s=[];for(a=0;a<64;++a){var m=e[a]||0;c[a]=92^m,s[a]=54^m}ct.call(this,t,n),this.update(s),this.oKeyPad=c,this.inner=!0,this.sharedMemory=n}oo.prototype=new ct;oo.prototype.finalize=function(){if(ct.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();ct.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),ct.prototype.finalize.call(this)}};var Ya=Sd();Ya.sha256=Ya;Ya.sha224=Sd(!0);Ya.sha256.hmac=Dd();Ya.sha224.hmac=Dd(!0);var Ld=Ya;var Pd=Ld.sha256;function fn(e){return Promise.resolve(Pd(e))}function io(e){return Array.from(new Uint8Array(e)).map(a=>a.toString(16).padStart(2,"0")).join("")}function Xn(e,t){let n=Pd.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function Md(e,t){let n=await Xn(e,t);return io(n)}async function so(e,t){let n=d1(t),a=await Xn(e,n);return io(a)}function d1(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}g();g();function tt(){try{return globalThis.self!==globalThis.top}catch{return!0}}var lo=!1,m1=fe();function Fd(e,t){let n=[];for(let a of t){let r=e.querySelectorAll(a);for(let u of r)n.push(u)}return n}function g1(e,t){let n=function(u){return u.nodeType===Node.ELEMENT_NODE||u.nodeType===Node.TEXT_NODE?u.nodeType===Node.ELEMENT_NODE&&_d(u,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),r=!0;for(;a.nextNode();){let u=a.currentNode;if(u.nodeType===Node.ELEMENT_NODE){if(ea(u,qu)){if(r===!0)return!0;continue}if(Kr(u.nodeName,t.inlineTags))return!0;if(!Fs(u,t))return!1}}return!0}function _s(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(Kr(e.nodeName,n)||Fs(e,t)){if(ea(e,A4)||Kr(e.nodeName,["BR"]))return!1;if(ea(e,qu))return!0;if(Fs(e,t)){let a=globalThis.getComputedStyle(e);if(a.display==="block"||a.display==="flex")return!1}return g1(e,t)}else return ea(e,qu);return!1}function _d(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&ea(e,v4,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&ea(e,x4))return!1;let{stayOriginalTags:a,excludeTags:r}=t,u=[];return n&&r&&r.length>0?u=r||[]:u=r.filter(o=>!a.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||Kr(e.nodeName,u))}function co(e,t,n){let a=e.trim();return a.length>=t||a.split(" ").filter(o=>o.trim()!=="").length>=n||!Rd(a)&&a.length>=n}function Bd(e,t,n){let a=e.trim();if(a.length<=t)return!0;if(Rd(a)){if(a.split(" ").length<=n)return!0}else if(a.length<=n)return!0;return!1}function Rd(e){for(let t=0;t127)return!1;return!0}function Od(e){if(e&&e.includes("://"))try{return new URL(e),!0}catch{return!1}else return!1}function Id(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function Nd(e){return e?/^[-+]?[0-9]*\.?[0-9]+%?$/.test(e):!1}function jd(e){return!!(e&&e.startsWith("#")&&e.indexOf(" ")===-1)}function Ud(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function ea(e,t,n=!1){return Bs(e,t,"1",n)}function Bs(e,t,n,a=!1){return lo&&!a?e[It]?!!(e[It]&&e[It][t]===n):!1:e.dataset[t]===n}function Ja(e){return(e.innerText||e.textContent||"").trim()}function Rs(e){let t=e.querySelectorAll("iframe"),n="";for(let a=0;a2e3))break}return n}function mo(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function nt(e,t,n,a=!1,r=!1){e.isContentEditable&&!r||(lo&&!a?(e.dataset[Fr]||(e.dataset[Fr]="1"),e[It]||(e[It]={}),e[It][t]||(e[It][t]=n)):(e.dataset[Fr]||(e.dataset[Fr]="1"),e.dataset[t]!==n&&(e.dataset[t]=n)))}function go(e,t,n=!1){if(lo&&!n){if(!e[It]||!e[It][t])return;delete e[It][t]}else delete e.dataset[t]}function Qa(e,t,n=!1){return lo&&!n?!e[It]||!e[It][t]?void 0:e[It][t]:e.dataset[t]}function Fs(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!Kr(e.nodeName,n)}function Za(e){let{config:t}=e,n=ba;return t.translationServices[e.translationService]&&t.translationServices[e.translationService].placeholderDelimiters&&(n=t.translationServices[e.translationService].placeholderDelimiters),n}function gt(){if(!globalThis||!globalThis.location)return"https://example.com";if(!tt())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let a="";try{a=globalThis.parent.location.href}catch{}return a||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function Ea(e,t,n){if(e instanceof ShadowRoot){try{e.appendChild(document.createElement("style")).textContent=t}catch(a){H.warn("injectCSS failed, rootDocument"+a?.message,e)}return}if(e&&e.head&&e.head.appendChild){let a=e.createElement("style");if(n){let r=e.querySelector(`style[data-id="${n}"]`);r&&r.remove(),a.dataset.id=n}a.textContent=t,e.head.appendChild(a)}else if(e){let a=document.createElement("head"),r=document.createElement("style");r.textContent=t,a.appendChild(r),e.appendChild(a)}else H.warn("injectCSS failed, rootDocument does not have head node",e)}function Xa(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(m1){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!document.querySelector("meta[name='immersive-translate-ebook-viewer']")||!t.startsWith("blob:http");return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function Kr(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function zd(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),a=parseInt(t.substring(2,4),16),r=parseInt(t.substring(4,6),16);return{r:n,g:a,b:r}}function Hd(e,t,n,a){if(a.document.caretPositionFromPoint){let r=a.document.caretPositionFromPoint(e,t);if(r){let u=a.document.createRange(),o=r.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||_d(o,n,!0))return null;try{u.setStart(o,r.offset),u.setEnd(o,r.offset)}catch(i){return H.warn("getRangeFromPoint error",i),null}return u}return null}else return a.document.caretRangeFromPoint?a.document.caretRangeFromPoint(e,t):null}function qd(e,t,n){let a=0,r=(u,o,i,l)=>{if(++a>100||l===u)return u;let c=u.shadowRoot;if(!c||typeof c.elementFromPoint!="function")return u;let s=c.elementFromPoint(o,i);return s?r(s,o,i,u):u};return r(e,t,n)}g();g();function er(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t==="zh-hans")return"zh-CN";if(t==="zh-hant"||t==="zh-hk")return"zh-TW";if(t==="iw")return"he";if(t==="jv")return"jw";let n=Qt.map(r=>r.toLowerCase()),a=n.indexOf(t);if(a===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let r=n.indexOf(t);return r===-1?"auto":Qt[r]}else return"auto";else return Qt[a]}function Ta(){return er(document?.documentElement?.lang||"en")}g();function en(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function Wd(e){if(e){let t=new Date(e.createTime),n=p1(t),a="free",r="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(a=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?r="stripe":r="admin"),{user_type:a,user_register_day:n,subscription_from:r}}else return null}function p1(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[a,r,u]=n.split("/");return n=`${u}-${a}-${r}`,n}catch{return"unknown"}}g();var $d=ge+"SyncStoreKey_";function Dt(e,t){let n=$d+e;return ee.storage.sync.get(n).then(a=>a[n]===void 0?t:a[n])}function ze(e,t){let n=$d+e;return ee.storage.sync.set({[n]:t})}g();var Kd=ge+"StoreKey_";function In(e,t){let n=Kd+e;return ee.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function Gd(e,t){let n=Kd+e;return ee.storage.local.set({[n]:t})}g();g();g();var ut=class extends Error{details;constructor(t,n,a){super(n),this.name=t,a&&(this.details=a)}};async function Nn(e){let t;if(e&&e.retry&&e.retry>0)try{t=await ls(Vd.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await Vd(e);return t}async function Vd(e){e.body;let{url:t,responseType:n,...a}=e;n||(n="json"),a={mode:"cors",...a};let r=!0;e.fetchPolyfill&&(r=!1);let u=e.fetchPolyfill||fetch,o=3e5;if(e.timeout&&(o=e.timeout),r){let l=new AbortController,c=l.signal;setTimeout(()=>{l.abort()},o),a.signal=c}let i;try{i=await u(t,a)}catch(l){H.debug("fetch error",t,l);let c=l.message||"";throw l.message="\u7F51\u7EDC\u95EE\u9898\uFF0C\u65E0\u6CD5\u8FDE\u63A5\u5230\u670D\u52A1\uFF0C\u8BF7\u68C0\u67E5\u4F60\u7684\u4EE3\u7406\u6216\u672C\u5730\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u8BD5\u3002 "+c,l}if(i.ok&&i.status>=200&&i.status<400){if(n==="json")return await i.json();if(n==="text")return await i.text();if(n==="raw"){let l=await i.text(),c=Object.fromEntries([...i.headers.entries()]),s=i.url;return s||(i.headers.get("X-Final-URL")?s=i.headers.get("X-Final-URL"):s=t),{body:l,headers:c,status:i.status,statusText:i.statusText,url:s}}else if(n==="stream"){let l="",c;if(i.body&&i.body instanceof ReadableStream)for await(let s of f1(i.body)){let m=new TextDecoder().decode(s);l+=m;let p;for(;(p=l.indexOf(` +`))>=0;){let f=l.slice(0,p).trim();if(l=l.slice(p+1),f.startsWith("event:")||f==="")continue;let d="";if(f.startsWith("data:")&&(d=f.slice(5).trim()),d==="[DONE]")break;let b;try{b=JSON.parse(d??"")}catch(C){H.debug("json error",C);continue}c=b}}return c}}else{let l;try{l=await i.text()}catch(f){H.error("parse response failed",f)}l&&H.error("fail response",l);let c="";l&&(c=l.slice(0,280));let s="\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u4EE3\u7801:"+i.status+": "+(i.statusText||"")+c,p=new URL(t).hostname.endsWith(".immersivetranslate.com");throw i.status===429?p?c.includes("quota exceeded")?s="ProQuota:"+c:s=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${c} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`:s=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A429\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===403?s=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A403\uFF0C \u8BF4\u660E\u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ${c}`:i.status===400?s=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A400\uFF0C \u8BF4\u660E\u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002 ${c}`:i.status===502?s=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A502\uFF0C \u8BF4\u660E\u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===401&&(s=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A401\uFF0C \u8BF4\u660E\u672A\u767B\u5F55\u6216\u767B\u5F55\u6001\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002 ${c}`),new ut("fetchError",s,l)}}async function*f1(e){let t=e.getReader();try{for(;;){let{done:n,value:a}=await t.read();if(n)return;yield a}}finally{t.releaseLock()}}g();var h1=new Map;function po(e){let t=b1(64),n=new CustomEvent(h4,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((a,r)=>{h1.set(t,(u,o)=>{u?r(u):a(o)})})}function b1(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};function tn(){return fo.version}g();var Gr=new Map,kn=class{fromType;logger;constructor(t,n=!1){this.logger=new qr,n&&this.logger.setLevel("debug"),this.fromType=t,Gr.has(t)||(Gr.set(t,new Map),ee.runtime.onMessage.addListener((a,r,u)=>{let o=a.from,i=a.to,l,c,s;r.tab&&r.tab.id&&(l=r.tab.id,o=`${o}:${l}`,c=r.tab.url,s=r.tab.active),this.logger.debug(`${a.to} received message [${a.payload.method}] from ${a.from}`,a.payload.data?a.payload.data:" ");let m=Is(i),{type:p,name:f}=m;if(p!==t)return!1;let d=Is(o),C=Gr.get(p).get(f);if(!C)return this.logger.debug(`no message handler for ${p}:${i}, but it's ok`),!1;let{messageHandler:h,sync:A}=C,S={type:t,name:d.name,id:l,url:c,active:s};if(A){try{let U=h(a.payload,S);u({ok:!0,data:U})}catch(U){u({ok:!1,errorName:U.name,errorMessage:U.message,errorDetails:U.details})}return!1}else return h(a.payload,S).then(U=>{u({ok:!0,data:U})}).catch(U=>{u({ok:!1,errorName:U.name,errorMessage:U.message,errorDetails:U.details})}),!0}))}getConnection(t,n,a){let r=!1;a&&a.sync&&(r=!0);let u=this.fromType,o=Gr.get(u);if(o.has(t))return o.get(t).connectionInstance;{let i=new Os(`${u}:${t}`,this.logger);return Gr.get(u).set(t,{messageHandler:n,sync:r,connectionInstance:i}),i}}},Os=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let a=Is(t),{type:r,id:u}=a;if(r!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let i=await ee.runtime.sendMessage(o);return Yd(o,i,this.logger)}catch(i){if(r==="popup"){let l=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(l,n,t,i),Promise.resolve({message:l})}else throw i}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let i=await ee.tabs.sendMessage(u,o);return Yd(o,i,this.logger)}}};function Yd(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new ut(t.errorName||"UnknownError",t.errorMessage||"Unknown error",t.errorDetails)}else throw new ut("noResponse","Unknown error")}function Is(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let a=parseInt(t[2]);if(!isNaN(a))n.id=a;else throw new Error("tab id not a valid number")}return n}var ho;function x1(){return ho||(ho=new kn("content_script",!1).getConnection("pure_main",()=>{}),ho)}var Jd="G-MKMD9LWFTR";async function Vr(e,t){try{let n=Be();if(n.INSTALL_FROM==="firefox_store")return;let r=fe(),u=tt(),o=n.PROD==="1",i="sitc4WmvShWYwfU0dANM3Q",l=await Dt("fakeUserId","");l||(l=await In("fakeUserId",""),l&&await ze("fakeUserId",l));let c=tn(),s=new Date,m=await Dt("installedAt","");m||(m=await In("installedAt",""),m&&await ze("installedAt",m)),l?m||(m=new Date(0).toISOString(),await ze("installedAt",m)):(l=E1(32),await ze("fakeUserId",l)),m||(m=s.toISOString(),await ze("installedAt",m));let p=new Date(m),f=Qd(p),d=Qd(s),b=f===d,C=s.getTime()-p.getTime()<7*24*60*60*1e3,h=`https://www.google-analytics.com/mp/collect?measurement_id=${Jd}&api_secret=${i}`;o||(h=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${Jd}&api_secret=${i}`);let A="";typeof navigator<"u"&&(A=window.navigator.userAgent);let S=$a.parse(A),U=t.map(y=>{let T=y.params||{};return S.os&&(T.os_name=S.os.name||"unknown",T.os_version=S.os.version||"unknown",T.os_version_name=S.os.versionName||"unknown"),S.browser&&(T.browser_name=S.browser.name||"unknown",T.browser_version=S.browser.version||"unknown"),S.platform&&(T.platform_type=S.platform.type||"unknown"),S.engine&&(T.engine_name=S.engine.name||"unknown",T.engine_version=S.engine.version||"unknown"),c&&(T.version=c),n.INSTALL_FROM&&(T.install_from=n.INSTALL_FROM),f&&(T.install_day=T1(p)),T.userscript=r.toString(),b?T.is_new_user_today="1":T.is_new_user_today="0",C?T.is_new_user_this_week="1":T.is_new_user_this_week="0",u?T.main_frame=0:T.main_frame=1,{...y,params:T}}),O=await bo({responseType:"text",url:h,method:"POST",body:JSON.stringify({client_id:l,user_id:l,events:U})})}catch{}}function E1(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r",""],limit:5e3},custom:{placeholderDelimiters:["{","}"]},bing:{maxTextLengthPerRequest:1800,placeholderDelimiters:["","","b"]},deeplx:{limit:3},d:{immediateTranslationTextCount:0},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},openai:{placeholderDelimiters:["{{","}}","b"],immediateTranslationTextCount:3e3,translationDebounce:300,interval:1350,prompt:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: {{text}}`,maxTextGroupLengthPerRequest:1,newlinePlaceholderDelimiters:[` @@ -4264,61 +4264,63 @@ Additionally, we support using Chinese aliases of language codes as commands. Fo ?`]}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:""},tempTranslateDomainMinutes:0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","*.twitter.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","github.com","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","www.tumblr.com","*.twitter.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},generalRule:{_comment:"",enableSubtitle:!0,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan"],useIframePostMessage:!0,searchEnhancementConfig:[],injectedCss:[],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!0,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,isTransformPreTagNewLine:!1,urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".MathJax_Preview",".MathJax",".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:4,paragraphMinWordCount:2,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,globalAttributes:{},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{".sr-only":"display:none"},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{translate:"no"},"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:[],additionalExcludeSelectors:[".social-share",".breadcrumbs",".post__footer",".btn",".reference-citations",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","markerow8"],translationClasses:[],atomicBlockSelectors:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","INPUT","BUTTON","BASE","SELECT","OPTION","HR","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","XQDD_HIGHLIGHT_NEW_WORD","NOBR"],additionalInlineTags:[],extraInlineSelectors:[],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,mouseHoverHoldKey:"Off"},rules:[{id:"immersive",matches:["https://immersivetranslate.com","https://onboarding.immersivetranslate.com"],isInjectVersion:!0,isInjectMeta:!0},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"pdf",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],translationMode:"translation",skipEditableCheck:!0,selectors:["p"],wrapperPrefix:"",isInjectVersion:!0,isPdf:!0},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,injectedCss:[".immersive-translate-target-translation-block-wrapper { display: block; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"]},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","https://platform.twitter.com/embed*"],additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']"],extraBlockSelectors:['[data-testid="tweetText"] div.r-6koalj'],extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText']":"-webkit-line-clamp: unset;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]"]},{id:"threads",matches:"www.threads.net",selectors:["p",".x1npkx4u.x1exu5d8",".xw7yly9",".xgkxs2y"],stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x78zum5",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{span:"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],extraBlockSelectors:["span.comment-copy"],excludeSelectors:["a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md",".RichTextJSON-root","div[slot=title]","div[slot=text-body]","p.title > a","[role=main] .md-container"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none"},waitForSelectors:["[data-testid=post_author_link]"]},{id:"reddit",matches:"www.reddit.com",selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","div[slot=title]","div[slot=text-body]","p.title > a","[role=main] .md-container"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none"}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper"],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box"],extraBlockSelectors:[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],detectParagraphLanguage:!0},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"facebook",matches:"www.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]"],atomicBlockSelectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],extraBlockSelectors:["span.x1vvkbs"],excludeSelectors:["[role=button]"],translationClasses:["immersive-translate-text"],detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".caption-window",".caption-visual-line",".yt-spec-button-view-model",".yt-core-attributed-string > span",".title"],"excludeTags.remove":["BUTTON"],condition:{enableSubtitle:{false:{"selectors.remove":[".caption-window",".caption-visual-line"]}}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],extraBlockSelectors:[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,detectParagraphLanguage:!0,excludeSelectors:["[class^='lln-']"],globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","ytd-notification-renderer .message","#message",".caption-window",".caption-visual-line"],extraBlockSelectors:["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],condition:{enableSubtitle:{false:{"selectors.remove":[".caption-window",".caption-visual-line"]}}},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,selectors:["h1","div[class='x9f619 xjbqb8w x78zum5 x168nmei x13lgxp2 x5pf9jr xo71vjh x1uhb9sk x1plvlek xryxfnj x1c4vz4f x2lah0s xdt5ytf xqjyukv x1cy8zhl x1oa3qoh x1nhvcw1'] > span[class='x1lliihq x1plvlek xryxfnj x1n2onr6 x193iq5w xeuugli x1fj9vlw x13faqbe x1vvkbs x1s928wv xhkezso x1gmr53x x1cpjm7i x1fgarty x1943h6x x1i0vuye xvs91rp xo1l8bm x5n08af x10wh9bi x1wdrske x8viiok x18hxmgj']","span[class='x193iq5w xeuugli x1fj9vlw x13faqbe x1vvkbs xt0psk2 x1i0vuye xvs91rp xo1l8bm x5n08af x10wh9bi x1wdrske x8viiok x18hxmgj']"],wrapperPrefix:"
"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:["[style^=top]",".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;"},extraBlockSelectors:[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"]},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page"],excludeMatches:["https://www.inoreader.com/features/"],observeUrlChange:!1,globalStyles:{".article_title_link":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` `,selectors:["h3 a[data-clk]","div.gs_rs","td a.gsc_a_at","td div.gs_gray:last-of-type","div.gsc_oci_value","#gs_opinion"],extraInlineSelectors:["br"],atomicBlockSelectors:["h3 a[data-clk]"]},{id:"googleMail",matches:"mail.google.com",detectParagraphLanguage:!0,selectors:["h2[data-thread-perm-id]","span[data-thread-id]","div[data-message-id] div[class='']",".messageBody","#views"],globalStyles:{".Nk":"height:auto!important;",".kf":"white-space:unset!important;"}},{id:"googleNews",matches:"news.google.com",blockMinTextCount:26,blockMinWordCount:5,globalStyles:{".MCAGUe":"height: auto;",".To2ZZb.DbQnIe":"height: unset;",".cp7Yvc > h2":"display: block;",".oovtQ":"height: auto;",h4:"-webkit-line-clamp: unset;"},excludeSelectors:[".EyERq",".AOl7G.eejsDc","[aria-label='Home']","[aria-label='For you']","[aria-label='Following']","[aria-label='World']","[aria-label='Local']",".gb_Fc",".wBQf7b",".yPI8Rb",".jKHa4e",".u43Gd",".Zgjpyb","[role='button']","[jsname='rymPhb']",".cbz1ld",".VfPpkd-P5QLlc",".XvhY1d"]},{id:"outlook",matches:"outlook.live.com",excludeSelectors:[".jHAG3.XG5Jd",".OZZZK",".lDdSm"]},{id:"producthunt",matches:"www.producthunt.com",excludeMatches:"https://www.producthunt.com/stories/*",selectors:["h2","div[class^='styles_htmlText__']","[class^='styles_tagline']","a[href^='/discussions/'].fontWeight-600","button[class^='styles_textButton'] > div > span","h5 + p","div[data-test=product-item-name] + div",".noOfLines-1,.noOfLines-2,.noOfLines-3",".fontWeight-600","[class*='styles_dropdown']","[class*='styles_aboutText']"],globalStyles:{"h5 + p":"height:unset;",".noOfLines-1,.noOfLines-2,.noOfLines-3":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"]},{id:"codeforces",matches:"https://codeforces.com/*",stayOriginalTags:["[class^='MathJax']"]},{id:"arxivLabs",matches:"*.labs.arxiv.org/*",stayOriginalTags:["math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt"]},{id:"discord",matches:"https://discord.com/channels/*",isTranslateTitle:!1,selectors:["li[id^=chat-messages] div[id^=message-content]","div[class^=headerText]","section[aria-label='Search Results'] div[id^=message-content]"],extraBlockSelectors:["[class^='embedFieldValue']","li[class^='card'] div[class^='message']","[data-list-item-id^='forum-channel-list'] div[class^='headerText']"],globalStyles:{"div[class^=headerText]":"max-height: unset;","div[class^=message]":"max-height: unset;","div[class^=text]":"max-height: unset;","h3[data-text-variant='heading-lg/semibold']":"-webkit-line-clamp: none;"},detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:"",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"telegram",matches:["web.telegram.org/z/*","web.telegram.org/a/*"],isTranslateTitle:!1,selectors:[".text-content",".message",".reply-markup-button-text",".bot-commands-list-element-description"],detectParagraphLanguage:!0},{id:"telegramK",matches:["web.telegram.org/k/*","web.telegram.org/k/"],selectors:[".message",".reply-markup-button-text",".bot-commands-list-element-description"],detectParagraphLanguage:!0},{id:"githubGist",matches:"gist.github.com",selectors:[".markdown-body",".readme"],detectParagraphLanguage:!0},{id:"lobste",matches:"lobste.rs",excludeMatches:["https://lobste.rs/about","https://lobste.rs/chat"],selectors:[".u-repost-of",".comment_text",".story_text"]},{id:"slack",matches:"*.slack.com",selectors:[".p-rich_text_block",".p-message_pane__foreword",".c-alert__message","[data-qa=message_attachment_text]"],additionalStayOriginalSelectors:["[data-qa=emoji]"],detectParagraphLanguage:!0},{id:"artstationArtwork",matches:"www.artstation.com/artwork/*",excludeSelectors:".project-description a",selectors:[".project-description","div.project-comment-text"],detectParagraphLanguage:!0},{id:"artstationLearning",matches:"www.artstation.com/learning/courses/*",additionalSelectors:["footer.learning-course-description.ng-star-inserted > span"],excludeSelectors:[".learning-card-meta"]},{id:"artstationBlog",matches:["https://www.artstation.com/blogs","https://www.artstation.com/blogs/*"],detectParagraphLanguage:!0,additionalSelectors:[".comment-item-body"],atomicBlockSelectors:[".author-headline",".author-location"],excludeSelectors:["blog-card-thumbnail","blog-card-header",".blog-card-author",".blog-card-meta",".blog-view-header",".blog-grid-title",".post-meta-header"]},{id:"figmaCommunity",matches:"www.figma.com/community/*",normalizeBody:"div.ql-editor[contenteditable='false']",excludeSelectors:["div[class*='metadataRight']","div[class*='commentMetaAndOptions']"],globalStyles:{"div[class*='mini_cardBottomRowSizing']":"height: 3em;"},additionalSelectors:["div[class*='mini_cardBottomRow_Metadata']"],stayOriginalSelectors:["[data-tooltip='tooltip-user-info']"]},{id:"googleIndex",matches:["https://www.google.com/","https://www.google.com.hk/"],excludeSelectors:["#gb","#SIvCob"],inputTutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",inputTutorialsSelectors:["textarea#APjFqb"]},{id:"googleSearch",matches:"www.google.*/search*",blockMinTextCount:32,blockMinWordCount:3,wrapperSuffix:"",detectParagraphLanguage:!0,excludeSelectors:["a h3 + div","div#sfooter","a[role=presentation] > div > div:first-child",".b5ZQcf",".CEMjEf",".MgUUmf.NUnG9d","#result-stats","[role=navigation]","div.sCuL3","div.eFM0qc.BCF2pd","div.WZ8Tjf","div.adDDi","#headerSection","#rateChatDiv","[id=bres]",".title-D5Lgyj","[data-attrid='VisualDigestVideoResult']",".search-enhance-WDIEkP h4",".SPZz6b h2",".CtCigf",".VLkRKc",".EbH0bb",".Wr0c6d",".jleFbf","#searchform",".yg51vc",".CbAZb"],extraBlockSelectors:[".MUFPAc"],globalStyles:{".V82bz":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px",".pe7FNb":"-webkit-line-clamp: unset;",".promotion-3PDMAb":"display: none;",".uAKcGb":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px","div[data-content-feature='1'] > div":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:2']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:3']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:4']":"-webkit-line-clamp: unset;max-height: unset;",".Pw4Ldf.RsCEN":"height:unset;",".related-question-pair":"overflow:auto;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,searchEnhancementConfig:[{id:"google",urlMatch:"https://www\\.google\\..+/search",style:{source:"font-size:12px; margin-bottom: 6px;",enTitle:"margin-top:6px;font-size:14px;",searchTitle:"margin-top:6px;position:relative;padding-right:24px;",more:"color:#1a0dab;margin-top:8px;",enTitleClassName:"immersive-translate-search-enhancement-en-title"},keyword:{value:"[0]$1",matches:[{source:"url",matchRegex:"q=(.+?)&"}]},showCount:5}]},{id:"lowendtalk",matches:"lowendtalk.com",selectors:["[role=heading]","h1",".userContent"]},{id:"linkedinJobs",matches:"www.linkedin.com/jobs/*",selectors:["#job-details > span"]},{id:"linkedinFeed",matches:"https://linkedin.com/feed/*",selectors:["h1",".feed-shared-update-v2__description-wrapper"]},{id:"indiehackers",matches:"www.indiehackers.com",selectors:[".content","h1","h3.story__title",".feed-item__title-link",".article-body"]},{id:"libreddit",matches:"libreddit.de",selectors:["h2.post_title",".comment_body > .md"]},{id:"notionSite",matches:["notion.site","*.notion.site"],normalizeBody:"body",selectors:["div[data-block-id]"]},{id:"newyorker",matches:"www.newyorker.com",additionalSelectors:["h1","[data-testid=SummaryItemHed]"],excludeSelectors:["[data-testid=PersistentTop]","[data-testid=StackedNavigationHeader]"],urlChangeDelay:2e3},{id:"startme",matches:"start.me",selectors:[".rss-article__title",".rss-articles-list__article-link",".rss-showcase__title",".rss-showcase__text"]},{id:"scmp",matches:"www.scmp.com",additionalSelectors:[".info__subHeadline",".section-content h2"],globalStyles:{".topic__article-list":"height: unset;",".adverisers__adveriser":"height: unset;",".advertiser__content":"height: unset;",".content-title__link":"display:unset;overflow:unset;-webkit-line-clamp:unset;",".title__text":"max-height:unset; -webkit-line-clamp:unset;",".news-list-item__news-title":"max-height:unset; -webkit-line-clamp:unset;","a[class*='link'] > .link__headline":"max-height:unset; -webkit-line-clamp:unset;"}},{id:"lesswrong",matches:"www.lesswrong.com",extraBlockSelectors:["span.commentOnSelection"]},{id:"mastodon",matches:["mastodon.social","mastodon.online","kolektiva.social","indieweb.social","mastodon.world","infosec.exchange"],isTranslateTitle:!1,selectorMatches:["div#mastodon"],selectors:["div.status__content__text",".about__section__body",".content",".form-container",".account__header__extra"],globalAttributes:{"[class='notranslate app-holder']":{class:"app-holder"}},detectLanguage:!0},{id:"cnbc",matches:"www.cnbc.com",urlChangeDelay:1e3,globalStyles:{"div.Card-titleContainer > div":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"dailyDev",matches:"app.daily.dev",selectors:["h1",".typo-body","article h3","[class^=markdown_markdown]"],globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset"}},{id:"pornhub",matches:["*.pornhub.com","pornhub.com"],excludeMatches:["*.pornhub.com/insights/*","pornhub.com/insights/*"],extraBlockSelectors:[".trendingNow",".searchItem",".tagcloud > a"],detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:` `,globalStyles:{"span.title":"height:unset; max-height:unset;",".detailedInfo":"max-height:unset;",".pcVideoListItem":"max-height:unset;",".wrap":"height:unset;",".entry-header":"height:unset;",".entry-title > a":"height:unset;-webkit-line-clamp:unset;"}},{id:"yourporn",matches:"https://www.youporn.com/*",extraBlockSelectors:[".button"],globalStyles:{".video-box":"max-height:unset;",".video-box-title":"white-space:unset;"}},{id:"modelhub",matches:"https://www.modelhub.com/*",globalStyles:{".videoTitle":"height:unset;",a:"height:unset;"}},{id:"xvideos",matches:"https://www.xvideos.com/*",globalStyles:{".title":"-webkit-line-clamp:unset;max-height:unset;",".mozaique":"display:flex; flex-wrap:wrap;"},excludeSelectors:[".video-hd-mark"]},{id:"missav",matches:"https://missav.com/*",globalStyles:{".truncate":"white-space:unset;",".overflow-y-hidden":"max-height:unset;overflow-y:unset;"}},{id:"javbus",matches:"https://www.javbus.com/*",globalStyles:{".photo-info":"height:unset;"},excludeSelectors:[".item-tag","date"]},{id:"spankbang",matches:"https://spankbang.com/*",globalStyles:{".video-item > a":"white-space:unset;"},excludeSelectors:[".stats",".thumb"],extraBlockSelectors:[".searches > a",".tag > a",".extra > a",".positions > li"]},{id:"javdb",matches:"https://javdb*.com/*",globalStyles:{".video-title":"white-space:unset;"},excludeSelectors:[".video-number",".score",".has-addons"]},{id:"jable",matches:"https://jable.tv/*",globalStyles:{".title":"white-space:unset;max-height:unset;",".img-box > a":"position:relative;"}},{id:"netflav",matches:"https://netflav*.com/*",globalStyles:{".grid_title":"max-height:unset;"},extraBlockSelectors:[".genre_filter_item","button"]},{id:"czechvideo",matches:"https://czechvideo.co/*",globalStyles:{".short-story":"height:unset;",".short-title":"height:unset;"},globalAttributes:{header:{translate:"unset;"}}},{id:"weibo",matches:["weibo.com"],selectors:["div[class^='detail_wbtext']"]},{id:"medium",matches:["medium.com","*.medium.com"],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],urlChangeDelay:20,"additionalExcludeSelectors.remove":["i.fa","i[class^=fa-]",".navmenu-container",".google-symbols","markerow8"],selectors:["h1","h2","article section","[aria-hidden='false'] pre","article p"],excludeSelectors:["[aria-label='Post Preview Reading Time']",".al.b.bl.ag.bp",".al.b.bl.ag.ai"],globalStyles:{h2:"-webkit-line-clamp: unset;max-height:unset;","article p":"-webkit-line-clamp: unset;max-height:unset;"}},{id:"nitter",selectorMatches:["meta[property='og:site_name'][content='Nitter']"],selectors:[".tweet-content",".quote-text"]},{id:"economist",matches:"www.economist.com",extraInlineSelectors:["span[data-caps='initial']"],excludeSelectors:["footer.ds-footer"],injectedCss:["a::before {position:relative!important;}"]},{id:"healthline",matches:"www.healthline.com",excludeSelectors:[".icon-hl-trusted-source-after"]},{id:"ebay",matches:"www.ebay.com",excludeSelectors:["headers","[itemprop=offers]",".dne-itemtile-original-price"],paragraphMinTextCount:4,paragraphMinWordCount:2,globalStyles:{"[itemprop=name]":"-webkit-line-clamp: unset;max-height: unset;",".merch-item-title":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"skinstore",matches:"www.skinstore.com",excludeSelectors:[".responsiveFlyoutMenu_levelOneLink"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"tripadvisor",matches:"www.tripadvisor.com",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"amazon",matches:"www.amazon.com",paragraphMinTextCount:4,paragraphMinWordCount:2,extraBlockSelectors:[".a-size-small.a-link-normal.page-banner-link.a-nowrap"],globalStyles:{".a-carousel-viewport":"height:unset;","[class*='clamp']":"max-height: unset;-webkit-line-clamp: unset;","[data-rows]":"max-height: unset;-webkit-line-clamp: unset;","[data-a-expander-name='review_text_read_more']":" max-height: unset;"},excludeSelectors:["#navFooter","#navbar-main",".s-price-instructions-style","[class*='star']","[data-hook='acr-average-stars-rating-text']",".a-color-price"]},{id:"visualstudioMarketplace",matches:"marketplace.visualstudio.com",additionalExcludeSelectors:[".core-info-second-row",".core-info-third-row",".meta-data-list",".item-title",".breadcrumb",".itemDetails-right",".ux-user-name",".ux-updated-date",".ux-item-second-row-wrapper",".stats-and-offer",".header-container"],atomicBlockSelectors:[".core-info-cell > div.name"],globalStyles:{".item-details-control-root.ux-item-shortdesc":"height: unset; overflow: visible; max-height:unset;"}},{id:"bloomberg",matches:"www.bloomberg.com",urlChangeDelay:2e3,excludeSelectors:[".ticker-bar","nav","[aria-label=Banner]","aside","[data-component=ticker-bar]","footer.bb-global-footer"]},{id:"baiduXueshu",matches:"xueshu.baidu.com",globalStyles:{".abstract_wr":"height: unset; overflow: visible; max-height:unset;"}},{id:"sciencedirect",matches:"www.sciencedirect.com",urlChangeDelay:2e3,stayOriginalSelectors:["span.display","span.math"],extraBlockSelectors:["span.captions","span[id^=cap]"]},{id:"thehighestofthemountains",matches:"www.thehighestofthemountains.com",extraBlockSelectors:"div"},{id:"telegraph1",matches:"te.legra.ph",normalizeBody:"div.ql-editor[contenteditable='false']",urlChangeDelay:500},{id:"telegraph2",matches:["telegra.ph"],normalizeBody:"div.ql-editor[contenteditable='false']",wrapperPrefix:` -`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main > div > div[class*='h-[125]']":"height:auto"},normalizeBody:"body",extraBlockSelectors:["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,normalizeBody:"#mw-content-text",globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"]},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"}},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:"chat.openai.com",excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0}},{id:"newstop",matches:["chat.newstop.asia","chat.waixingyun.cn"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".n-button.n-button--warning-type.n-button--medium-type",messageWrapperSelector:".markdown-body",streamingChange:!1,streamingDeepChild:!0}},{id:"askgpt",matches:["askgpt.cn","chatcat.zhaoyoung.me"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".home_chat-message-status__EsVNi",messageWrapperSelector:".markdown-body",streamingChange:!0,streamingDeepChild:!0}},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__UyYrv *",".MarkdownLink_linkifiedLink__KxC9G"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__UyYrv",streamingChange:!1,streamingDeepChild:!0}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"newthingsunderthesun",matches:"www.newthingsunderthesun.com",additionalSelectors:["[translate=no]"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"https://steamcommunity.com/app/*",globalStyles:{".forum_topic":"height:auto;",".forum_topic_name":"white-space:normal;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampowered",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:"https://www.webofscience.com/*",globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},excludeSelectors:[".summary-left-panel",".authors","app-full-record-keywords mark"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],extraBlockSelectors:["app-summary-authors + div","app-full-record-keywords span span"],observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://www.jetbrains.com/help/*",extraBlockSelectors:["[data-test=prompt]"]},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails p"]},{id:"isEbook",isEbook:!0,isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span"},{id:"isEbookBuilder",isEbookBuilder:!0,isTranslateTitle:!1,targetWrapperTag:"span",selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com",extraBlockSelectors:["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],extraBlockSelectors:"font[face=verdana]"},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"isSubtitleBuilder",isSubtitleBuilder:!0,selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,wrapperPrefix:"",wrapperSuffix:""},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/",extraBlockSelectors:[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"vimeo",matches:"https://player.vimeo.com/video/*",extraBlockSelectors:["span.vp-captions-line","span[class^=CaptionsRenderer_]"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexityAi",matches:"https://www.perplexity.ai/search/*",extraBlockSelectors:[".prose > span"],additionalStayOriginalSelectors:["a.citation"],insertPosition:"afterend"},{id:"perplexity",matches:"https://www.perplexity.ai",globalStyles:{".line-clamp-1":"-webkit-line-clamp: unset !important;",".line-clamp-2":"-webkit-line-clamp: unset !important;"}},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"babelnovel",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*"],urlChangeDelay:0},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0},{globalAttributes:{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"youtrackJetbrains",matches:"youtrack.jetbrains.com/articles/*",selectors:["[role=presentation]","[data-test=article-content]"],excludeSelectors:[".toolbar__ee8"]},{id:"bbc",matches:"www.bbc.com",excludeSelectors:["section.module--languages",".drop-capped"]},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}}},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"openai",matches:"https://platform.openai.com/docs/*",urlChangeDelay:0},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout":"height:unset !important;",".EntrySummary--u4":"-webkit-line-clamp: unset;max-height:unset;",".EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:[".copyable-text > span"],wrapperPrefix:` -`,wrapperSuffix:"
"},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],globalStyles:{"[class*='lineclamp']":"-webkit-line-clamp:unset;"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],extraBlockSelectors:[".SIPGg",".sc-kzMCTH.pSZXj"],globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"]},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*",globalAttributes:{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead"],injectedCss:["a::after {position:relative!important;}"]},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},globalAttributes:{"#app":{class:""}}},{id:"haproxy",matches:["docs.haproxy.org","www.oreilly.com/openbook/opensources/book/*"],excludeTags:[],stayOriginalSelectors:[],stayOriginalTags:[],isTransformPreTagNewLine:!0},{id:"piAi",matches:"pi.ai/talk",excludeSelectors:[".whitespace-pre-wrap > span *"],aiRule:{streamingSelector:"button[class*='fixed'][disabled]",messageWrapperSelector:".whitespace-pre-wrap",streamingChange:!1,streamingDeepChild:!1},globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *"],"excludeTags.remove":["PRE"],injectedCss:"[data-testid='chat-menu-trigger'] br {display:none;}",aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1}},{id:"feishu",matches:"*.feishu.cn","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],excludeSelectors:[".catalogue__list"]},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"bugsWebkit",matches:"bugs.webkit.org",isTransformPreTagNewLine:!0},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",matches:"www.kaggle.com",excludeTags:["i","button"]},{id:"ieee",matches:"spectrum.ieee.org",extraBlockSelectors:["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"www.cnn.com",excludeSelectors:[".ad-slot-header__wrapper"]},{id:"marginalrevolution",matches:"marginalrevolution.com",globalAttributes:{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",condition:{enableSubtitle:{false:{"excludeSelectors.add":[".bpx-player-subtitle-panel-text"]}}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"docs-oracle",matches:"docs.oracle.com",urlChangeDelay:0},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"edstem",matches:"edstem.org","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:"pubmed.ncbi.nlm.nih.gov",urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share"]},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"tldrnewsletter",matches:"actions.tldrnewsletter.com","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"bugzilla",matches:"bugzilla.mozilla.org","excludeTags.remove":["PRE"],isTransformPreTagNewLine:!0},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"excludeSelectors.add":["aside",".DocSearch-Modal"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"mail.qq.com",useIframePostMessage:!1},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]}]};function Qd(){if(Ee.PROD==="1")return{};let e={};if(Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:Ee.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:Ee.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:Ee.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(Ee.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=Ee.DEEPL_PROXY_ENDPOINT),Ee.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=Ee.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),Ee.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:Ee.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}Ee.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=Ee.IMMERSIVE_TRANSLATE_SERVICE);let t={};return Ee.DEBUG==="1"&&(t.debug=!0,t.cache=!1),Ee.MOCK==="1"&&(t.translationService="mock"),t}async function ta(){let e=await ee.storage.local.get(Lr);if(e[Lr]){let t=e[Lr],n=t.tempTranslationUrlMatches||[],a=n.filter(o=>o.expiredAt>Date.now()),r=!1;a.length!==n.length&&(n=a,r=!0);let u={...t,tempTranslationUrlMatches:[...n]};return r&&await nn(u),u}else return{}}async function nn(e){await ee.storage.local.set({[Lr]:e})}async function Eo(e){await ee.storage.local.set({[Gn]:e})}async function Zd(){let e=await ee.storage.local.get(Gn),n={...Xd(),...xo,buildinConfigUpdatedAt:Ee.BUILD_TIME};if(e[Gn]){let a=e[Gn];if(a&&a.buildinConfigUpdatedAt){let r=new Date(a.buildinConfigUpdatedAt),u=new Date(n.buildinConfigUpdatedAt);r>u&&(n=a)}}return n}async function hn(){let e=await ee.storage.local.get(Gn),t={...xo,buildinConfigUpdatedAt:Ee.BUILD_TIME};if(e[Gn]){let P=e[Gn];if(P&&P.buildinConfigUpdatedAt){let x=new Date(P.buildinConfigUpdatedAt),D=new Date(t.buildinConfigUpdatedAt);x>D&&(t=P)}}let n=await Nt.get(Qt,null),a={};if(!he()&&ee.commands&&ee.commands.getAll){let P=await ee.commands.getAll();for(let x of P)x.name&&x.shortcut&&(a[x.name]=x.shortcut)}let r=Xd(),u=Qd(),o=await Ns(),i=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},l=await ta(),c=new Date;if(l&&l.tempTranslationUrlMatches&&l.tempTranslationUrlMatches.length>0){let P=l.tempTranslationUrlMatches.filter(x=>new Date(x.expiredAt)>c);if(P.length>0){let x=o.translationUrlPattern?o.translationUrlPattern?.matches||[]:[],D=Array.isArray(x)?x:[x],M=Array.from(new Set(D.concat(P.map(q=>q.match))));o.translationUrlPattern={...o.translationUrlPattern,matches:M}}}let s=Object.assign({},i,u,o);if(!s.interfaceLanguage){let P=await v1();s.interfaceLanguage=P}let g=s.interfaceLanguage==="en",p=s.targetLanguage==="en",f=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,d=["bing","google","transmart","mock"].includes(s.translationService)||!s.translationService;!g&&!p&&!f&&d?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let b=t&&t.enableDefaultAlwaysTranslatedUrls;s.enableDefaultAlwaysTranslatedUrls===!1&&(b=!1);let C=s&&s.isChangedAlwaysTranslatedUrls,h=[];s.translationUrlPattern&&s.translationUrlPattern.matches&&(h=s.translationUrlPattern.matches||[]);let A=!1;C===void 0&&(h.length>0?C=!0:C=!1,s.isChangedAlwaysTranslatedUrls=C,o.isChangedAlwaysTranslatedUrls=C,A=!0);let S=(s?.translationLanguagePattern?.matches?.length||0)>0,U=await Dt("installedAt",""),O=Number(await In("translage_page_daily",0)),y=Number(await Dt(dn,0)),T;y>0&&(Date.now()-y0&&(Date.now()-Oj.id&&M[j.id]?Cd(t.generalRule,M[j.id],j):j);R[x]=[...q,...R[x]]}if(Ee.PROD==="0"&&Ee.DEV_RULES){let D=JSON.parse(Ee.DEV_RULES);R[x]=[...D,...R[x]]}}else s[x]!==void 0&&(R[x]=s[x])}return R.donateUrl=t.donateUrl,R.minVersion=t.minVersion,R.feedbackUrl=t.feedbackUrl,R}async function Ns(){return(await ee.storage.sync.get("userConfig")||{}).userConfig||{}}async function js(e){await ee.storage.sync.set({userConfig:e})}var v1=async()=>{let e=["zh-CN"];try{e=await ee.i18n.getAcceptLanguages()}catch(a){H.warn("get browser language error:",a)}let n=e.map(a=>er(a)).find(a=>Ot[a]);return n||"en"},Xd=()=>{let e={...xo,buildinConfigUpdatedAt:Ee.BUILD_TIME};return{...e,targetLanguage:Ku,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing"},rules:[]}};function A1(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(a=>!e.includes(a)).length>0}m();var tm="auto",To="auto",em="auto";function nm(e){tm=e}function an(e){To=e}function pt(){return To!=="auto"?To:em!=="auto"?em:tm}function Co(){return To}async function jn(e){let{url:t,config:n,state:a}=e,r=new URL(t),u="auto",{translationParagraphLanguagePattern:o,translationService:i,translationServices:l,translationTheme:c,translationThemePatterns:s,translationUrlPattern:g,targetLanguage:p,sourceLanguageUrlPattern:f,immediateTranslationPattern:d}=n,b=tr(t,o),C=tr(t,d),h=i,A=Object.keys(l);for(let G of A){let ie=l[G];if(tr(t,ie)){h=G;break}}let S=c,U=Object.keys(s);for(let G of U){let ie=s[G];if(ie&&tr(t,ie)){S=G;break}}let O=tr(t,g),y=am(t,g);y||(y=On(t,R4)),y||(y=On(t,n.blockUrls));let T=am(t,n.inputTranslationUrlPattern);T||(T=On(t,n.inputTranslationBlockUrls));let k=On(t,n.mutationBlockUrls),v=Object.keys(f),E={};for(let G of v){let ie=f[G];if(ie&&ie.matches)for(let me of ie.matches)E[me]=G}let R=Object.keys(E),F=Ds(t,R);F&&(u=E[F]??"auto",E[F]&&E[F]!=="auto"&&an(E[F]));let w=p||"zh-CN",B=r.hostname,I=await fn(B),N=r.pathname+r.search+r.hash,P=await fn(N),x=`https://${I}.com/${P}`,D=await ta(),M=await Zd(),q=n.translationStartMode;q==="dynamic"&&C&&(q="immediate");let j=h;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(j=n.inputTranslationService);let $=h;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&($=n.mouseHoverTranslationService);let z={targetLanguage:w,config:n,translationService:h,inputTranslationService:j,mouseHoverTranslationService:$,isTranslateUrl:O,sourceLanguage:u,mainFrame:document.body,isTranslateExcludeUrl:y,isMutationTranslationExcludeUrl:k,isInputTranslationExcludeUrl:T,rule:n.generalRule,url:t,encryptedUrl:x,state:a?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:q,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S},a):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:q,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S},localConfig:D},ae=await Nt.get(Qt,null);ae&&(z.user=ae),z.state.translationArea==="body"&&(z.config.generalRule.excludeTags=z.config.generalRule.excludeTags.filter(G=>!z.config.generalRule.bodyTranslateTags.includes(G)),z.config.generalRule.additionalExcludeSelectors=z.config.generalRule.additionalExcludeSelectors.filter(G=>G!==".btn"));let J=n.translationServices[z.translationService]||{};J.immediateTranslationTextCount!==void 0&&k1(J.immediateTranslationTextCount)&&J.immediateTranslationTextCount>=0&&(z.state.immediateTranslationTextCount=J.immediateTranslationTextCount),z.translationService==="deepl"&&(J&&J.authKey&&J.authKey.startsWith("immersive_")||J&&J.provider==="pro"&&z.user?.token)&&J.immediateTranslationTextCountForImmersiveDeepl!==void 0&&J.immediateTranslationTextCountForImmersiveDeepl>=0&&(z.state.immediateTranslationTextCount=J.immediateTranslationTextCountForImmersiveDeepl),J&&J.translationDebounce&&typeof J.translationDebounce=="number"&&(z.state.translationDebounce=J.translationDebounce);let Y=M.immediateTranslationTextCount;n.immediateTranslationTextCount!==Y&&(z.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let pe=n.rules,fe;globalThis.PDFViewerApplication?fe=pe.find(G=>G.isPdf):globalThis.immersiveTranslateEbookViewer?fe=pe.find(G=>G.isEbook):globalThis.immersiveTranslateEbookBuilder?fe=pe.find(G=>G.isEbookBuilder):fe=pe.find(G=>tr(t,G)),z.state.translationArea==="body"&&(z.rule.paragraphMinTextCount=1,z.rule.paragraphMinWordCount=1),fe&&fe.isEbookBuilder&&(z.state.translationStartMode="immediate");let ue=n.generalRule;if(fe&&(z.rule=ro(ue,fe)),z.rule.selectors.length>0&&(z.rule.paragraphMinTextCount=2,z.rule.paragraphMinWordCount=1),z.state.translationArea==="body"&&z.rule.excludeTags&&(z.rule.excludeTags=z.rule.excludeTags.filter(G=>!z.rule.bodyTranslateTags.includes(G)&&!z.rule.forceTranslateTags.includes(G))),z.rule.mainFrameSelector){let G=document.querySelector(z.rule.mainFrameSelector);G&&(z.mainFrame=G)}return z}function tr(e,t){if(!t)return!1;let{matches:n,excludeMatches:a,selectorMatches:r,excludeSelectorMatches:u}=t;return a&&a.length>0&&On(e,a)?!1:n&&n.length>0&&On(e,n)?!0:u&&u.length>0&&go(u)?!1:!!(r&&r.length>0&&go(r))}function am(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:a}=t;return!!(n&&n.length>0&&On(e,n)||a&&a.length>0&&go(a))}function k1(e){return typeof e=="number"}m();m();m();m();m();m();m();var uC=um(2),rm=um(3);function um(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let a=[];if(n==null)return a;let r=typeof n.slice=="function"?n:String(n),u=r.length-e+1;if(u<1)return a;for(;u--;)a[u]=r.slice(u,u+e);return a}}m();var S1=/\s+/g,D1=/[\t\n\v\f\r ]+/g;function om(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?L1:P1;return String(e).replace(t.style==="html"?D1:S1,t.trim?M1(n):n)}function L1(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function P1(){return" "}function M1(e){return t;function t(n,a,r){return a===0||a+n.length===r.length?"":e(n)}}var im={}.hasOwnProperty;function F1(e){return e==null?"":om(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function _1(e){return rm(" "+F1(e)+" ")}function B1(e){let t=_1(e),n={},a=-1;for(;++an&&(n=u,a=r)}return[a,n]}function z1(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function H1(e,t,n,a){t=W1(t,n,a);let r=[],u;if(t)for(u in t)wo.call(t,u)&&r.push([u,q1(e,t[u])]);return r.length===0?zs():r.sort($1)}function q1(e,t){let n=0,a=-1;for(;++at.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterso+i.length,0));let u=e.length-a;for(let o of t6){let i=o[1],l=o[0],c=e.match(i),s=c?c.length:0;s>n&&(n=s,t=l)}return n*2.5/u>.5?t==="zh-CN"?fm(e)?"zh-TW":"zh-CN":t:"auto"}var bm=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],Hs=new Map(bm),n6=new Map(bm.map(([e,t])=>[t,e]));function ym(e,t,n=["en"]){if(!e)return"auto";let a=n.map(i=>n6.get(i));!t&&t!==0&&(t=25);let r=Ao(e);if(r!=="auto")return r;let u={minLength:t,whitelist:[...Hs.keys()]},o=cm(e,u);if(o&&o.length>0){for(let[s,g]of o)if(a.includes(s)&&g>.5)return Hs.get(s);let[i,l]=o[0],c=Hs.get(i);if(c&&l>.5)return c}return"auto"}m();m();function na(e,t){var n=(e&65535)+(t&65535),a=(e>>16)+(t>>16)+(n>>16);return a<<16|n&65535}function a6(e,t){return e<>>32-t}function So(e,t,n,a,r,u){return na(a6(na(na(t,e),na(a,u)),r),n)}function xt(e,t,n,a,r,u,o){return So(t&n|~t&a,e,t,r,u,o)}function Et(e,t,n,a,r,u,o){return So(t&a|n&~a,e,t,r,u,o)}function Tt(e,t,n,a,r,u,o){return So(t^n^a,e,t,r,u,o)}function Ct(e,t,n,a,r,u,o){return So(n^(t|~a),e,t,r,u,o)}function ko(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,a,r,u,o,i=1732584193,l=-271733879,c=-1732584194,s=271733878;for(n=0;n>5]>>>t%32&255);return n}function qs(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(a=ko(a,e.length*8)),n=0;n<16;n+=1)r[n]=a[n]^909522486,u[n]=a[n]^1549556828;return o=ko(r.concat(qs(t)),512+t.length*8),xm(ko(u.concat(o),512+128))}function Em(e){var t="0123456789abcdef",n="",a,r;for(r=0;r>>4&15)+t.charAt(a&15);return n}function Ws(e){return unescape(encodeURIComponent(e))}function Tm(e){return r6(Ws(e))}function o6(e){return Em(Tm(e))}function Cm(e,t){return u6(Ws(e),Ws(t))}function i6(e,t){return Em(Cm(e,t))}function aa(e,t,n){return t?n?Cm(t,e):i6(t,e):n?Tm(e):o6(e)}m();function wm(e,t,n){let a=s6(e,t),r=[],u={from:e[0].from,fromByClient:e[0].fromByClient,to:e[0].to,tempSentences:[],url:e[0].url};for(let o of a)(u.tempSentences.reduce((l,c)=>l+c.text.length,0)+o.text.length>t||u.tempSentences.length>=n)&&(r.push(u),u={fromByClient:u.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}),(u.from!==o.from||u.to!==o.to)&&(u.tempSentences.length>0?(r.push(u),u={fromByClient:u.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}):(u.from=o.from,u.to=o.to)),u.tempSentences.push(o);return u.tempSentences.length>0&&r.push(u),r}function s6(e,t){let n=[],a=[];for(let r=0;r0?d header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,normalizeBody:"#mw-content-text",globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"]},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"}},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:"chat.openai.com",excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0}},{id:"newstop",matches:["chat.newstop.asia","chat.waixingyun.cn"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".n-button.n-button--warning-type.n-button--medium-type",messageWrapperSelector:".markdown-body",streamingChange:!1,streamingDeepChild:!0}},{id:"askgpt",matches:["askgpt.cn","chatcat.zhaoyoung.me"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".home_chat-message-status__EsVNi",messageWrapperSelector:".markdown-body",streamingChange:!0,streamingDeepChild:!0}},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__UyYrv *",".MarkdownLink_linkifiedLink__KxC9G"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__UyYrv",streamingChange:!1,streamingDeepChild:!0}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"newthingsunderthesun",matches:"www.newthingsunderthesun.com",additionalSelectors:["[translate=no]"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"https://steamcommunity.com/app/*",globalStyles:{".forum_topic":"height:auto;",".forum_topic_name":"white-space:normal;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampowered",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:"https://www.webofscience.com/*",globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},excludeSelectors:[".summary-left-panel",".authors","app-full-record-keywords mark"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],extraBlockSelectors:["app-summary-authors + div","app-full-record-keywords span span"],observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://www.jetbrains.com/help/*",extraBlockSelectors:["[data-test=prompt]"]},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails p"]},{id:"isEbook",isEbook:!0,isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span"},{id:"isEbookBuilder",isEbookBuilder:!0,isTranslateTitle:!1,targetWrapperTag:"span",selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com",extraBlockSelectors:["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],extraBlockSelectors:"font[face=verdana]"},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"isSubtitleBuilder",isSubtitleBuilder:!0,selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,wrapperPrefix:"",wrapperSuffix:""},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/",extraBlockSelectors:[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"vimeo",matches:"https://player.vimeo.com/video/*",extraBlockSelectors:["span.vp-captions-line","span[class^=CaptionsRenderer_]"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexityAi",matches:"https://www.perplexity.ai/search/*",extraBlockSelectors:[".prose > span"],additionalStayOriginalSelectors:["a.citation"],insertPosition:"afterend"},{id:"perplexity",matches:"https://www.perplexity.ai",globalStyles:{".line-clamp-1":"-webkit-line-clamp: unset !important;",".line-clamp-2":"-webkit-line-clamp: unset !important;"}},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"babelnovel",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*"],urlChangeDelay:0},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0},{globalAttributes:{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"youtrackJetbrains",matches:"youtrack.jetbrains.com/articles/*",selectors:["[role=presentation]","[data-test=article-content]"],excludeSelectors:[".toolbar__ee8"]},{id:"bbc",matches:"www.bbc.com",excludeSelectors:["section.module--languages",".drop-capped"]},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}}},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"openai",matches:"https://platform.openai.com/docs/*",urlChangeDelay:0},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout":"height:unset !important;",".EntrySummary--u4":"-webkit-line-clamp: unset;max-height:unset;",".EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:[".copyable-text > span"],wrapperPrefix:` +`,wrapperSuffix:"
"},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],globalStyles:{"[class*='lineclamp']":"-webkit-line-clamp:unset;"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],extraBlockSelectors:[".SIPGg",".sc-kzMCTH.pSZXj"],globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"]},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*",globalAttributes:{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead"],injectedCss:["a::after {position:relative!important;}"]},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},globalAttributes:{"#app":{class:""}}},{id:"haproxy",matches:["docs.haproxy.org","www.oreilly.com/openbook/opensources/book/*"],excludeTags:[],stayOriginalSelectors:[],stayOriginalTags:[],isTransformPreTagNewLine:!0},{id:"piAi",matches:"pi.ai/talk",excludeSelectors:[".whitespace-pre-wrap > span *"],aiRule:{streamingSelector:"button[class*='fixed'][disabled]",messageWrapperSelector:".whitespace-pre-wrap",streamingChange:!1,streamingDeepChild:!1},globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *"],"excludeTags.remove":["PRE"],injectedCss:"[data-testid='chat-menu-trigger'] br {display:none;}",aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1}},{id:"feishu",matches:"*.feishu.cn","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],excludeSelectors:[".catalogue__list"]},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"bugsWebkit",matches:"bugs.webkit.org",isTransformPreTagNewLine:!0},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",matches:"www.kaggle.com",excludeTags:["i","button"]},{id:"ieee",matches:"spectrum.ieee.org",extraBlockSelectors:["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"www.cnn.com",excludeSelectors:[".ad-slot-header__wrapper"]},{id:"marginalrevolution",matches:"marginalrevolution.com",globalAttributes:{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",condition:{enableSubtitle:{false:{"excludeSelectors.add":[".bpx-player-subtitle-panel-text"]}}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"docs-oracle",matches:"docs.oracle.com",urlChangeDelay:0},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"edstem",matches:"edstem.org","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:"pubmed.ncbi.nlm.nih.gov",urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share"]},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"tldrnewsletter",matches:"actions.tldrnewsletter.com","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"bugzilla",matches:"bugzilla.mozilla.org","excludeTags.remove":["PRE"],isTransformPreTagNewLine:!0},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"excludeSelectors.add":["aside",".DocSearch-Modal"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"mail.qq.com",useIframePostMessage:!1},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]}]};function Zd(){if(Ee.PROD==="1")return{};let e={};if(Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:Ee.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:Ee.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:Ee.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:Ee.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:Ee.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:Ee.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(Ee.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:Ee.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(Ee.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=Ee.DEEPL_PROXY_ENDPOINT),Ee.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=Ee.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),Ee.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:Ee.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}Ee.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=Ee.IMMERSIVE_TRANSLATE_SERVICE);let t={};return Ee.DEBUG==="1"&&(t.debug=!0,t.cache=!1),Ee.MOCK==="1"&&(t.translationService="mock"),t}async function ta(){let e=await ee.storage.local.get(Lr);if(e[Lr]){let t=e[Lr],n=t.tempTranslationUrlMatches||[],a=n.filter(o=>o.expiredAt>Date.now()),r=!1;a.length!==n.length&&(n=a,r=!0);let u={...t,tempTranslationUrlMatches:[...n]};return r&&await nn(u),u}else return{}}async function nn(e){await ee.storage.local.set({[Lr]:e})}async function xo(e){await ee.storage.local.set({[Gn]:e})}async function Xd(){let e=await ee.storage.local.get(Gn),n={...em(),...yo,buildinConfigUpdatedAt:Ee.BUILD_TIME};if(e[Gn]){let a=e[Gn];if(a&&a.buildinConfigUpdatedAt){let r=new Date(a.buildinConfigUpdatedAt),u=new Date(n.buildinConfigUpdatedAt);r>u&&(n=a)}}return n}async function hn(){let e=await ee.storage.local.get(Gn),t={...yo,buildinConfigUpdatedAt:Ee.BUILD_TIME};if(e[Gn]){let P=e[Gn];if(P&&P.buildinConfigUpdatedAt){let x=new Date(P.buildinConfigUpdatedAt),D=new Date(t.buildinConfigUpdatedAt);x>D&&(t=P)}}let n=await jt.get(Nt,null),a={};if(!fe()&&ee.commands&&ee.commands.getAll){let P=await ee.commands.getAll();for(let x of P)x.name&&x.shortcut&&(a[x.name]=x.shortcut)}let r=em(),u=Zd(),o=await Ns(),i=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},l=await ta(),c=new Date;if(l&&l.tempTranslationUrlMatches&&l.tempTranslationUrlMatches.length>0){let P=l.tempTranslationUrlMatches.filter(x=>new Date(x.expiredAt)>c);if(P.length>0){let x=o.translationUrlPattern?o.translationUrlPattern?.matches||[]:[],D=Array.isArray(x)?x:[x],M=Array.from(new Set(D.concat(P.map(q=>q.match))));o.translationUrlPattern={...o.translationUrlPattern,matches:M}}}let s=Object.assign({},i,u,o);if(!s.interfaceLanguage){let P=await v1();s.interfaceLanguage=P}let m=s.interfaceLanguage==="en",p=s.targetLanguage==="en",f=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,d=["bing","google","transmart","mock"].includes(s.translationService)||!s.translationService;!m&&!p&&!f&&d?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let b=t&&t.enableDefaultAlwaysTranslatedUrls;s.enableDefaultAlwaysTranslatedUrls===!1&&(b=!1);let C=s&&s.isChangedAlwaysTranslatedUrls,h=[];s.translationUrlPattern&&s.translationUrlPattern.matches&&(h=s.translationUrlPattern.matches||[]);let A=!1;C===void 0&&(h.length>0?C=!0:C=!1,s.isChangedAlwaysTranslatedUrls=C,o.isChangedAlwaysTranslatedUrls=C,A=!0);let S=(s?.translationLanguagePattern?.matches?.length||0)>0,U=await Dt("installedAt",""),O=Number(await In("translage_page_daily",0)),y=Number(await Dt(dn,0)),T;y>0&&(Date.now()-y0&&(Date.now()-Oj.id&&M[j.id]?wd(t.generalRule,M[j.id],j):j);R[x]=[...q,...R[x]]}if(Ee.PROD==="0"&&Ee.DEV_RULES){let D=JSON.parse(Ee.DEV_RULES);R[x]=[...D,...R[x]]}}else s[x]!==void 0&&(R[x]=s[x])}return R.donateUrl=t.donateUrl,R.minVersion=t.minVersion,R.feedbackUrl=t.feedbackUrl,R}async function Ns(){return(await ee.storage.sync.get("userConfig")||{}).userConfig||{}}async function js(e){await ee.storage.sync.set({userConfig:e})}var v1=async()=>{let e=["zh-CN"];try{e=await ee.i18n.getAcceptLanguages()}catch(a){H.warn("get browser language error:",a)}let n=e.map(a=>er(a)).find(a=>Ot[a]);return n||"en"},em=()=>{let e={...yo,buildinConfigUpdatedAt:Ee.BUILD_TIME};return{...e,targetLanguage:$u,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing"},rules:[]}};function A1(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(a=>!e.includes(a)).length>0}g();var nm="auto",Eo="auto",tm="auto";function am(e){nm=e}function an(e){Eo=e}function pt(){return Eo!=="auto"?Eo:tm!=="auto"?tm:nm}function To(){return Eo}async function jn(e){let{url:t,config:n,state:a}=e,r=new URL(t),u="auto",{translationParagraphLanguagePattern:o,translationService:i,translationServices:l,translationTheme:c,translationThemePatterns:s,translationUrlPattern:m,targetLanguage:p,sourceLanguageUrlPattern:f,immediateTranslationPattern:d}=n,b=tr(t,o),C=tr(t,d),h=i,A=Object.keys(l);for(let G of A){let ie=l[G];if(tr(t,ie)){h=G;break}}let S=c,U=Object.keys(s);for(let G of U){let ie=s[G];if(ie&&tr(t,ie)){S=G;break}}let O=tr(t,m),y=rm(t,m);y||(y=On(t,R4)),y||(y=On(t,n.blockUrls));let T=rm(t,n.inputTranslationUrlPattern);T||(T=On(t,n.inputTranslationBlockUrls));let k=On(t,n.mutationBlockUrls),v=Object.keys(f),E={};for(let G of v){let ie=f[G];if(ie&&ie.matches)for(let me of ie.matches)E[me]=G}let R=Object.keys(E),F=Ds(t,R);F&&(u=E[F]??"auto",E[F]&&E[F]!=="auto"&&an(E[F]));let w=p||"zh-CN",B=r.hostname,I=await fn(B),N=r.pathname+r.search+r.hash,P=await fn(N),x=`https://${I}.com/${P}`,D=await ta(),M=await Xd(),q=n.translationStartMode;q==="dynamic"&&C&&(q="immediate");let j=h;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(j=n.inputTranslationService);let $=h;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&($=n.mouseHoverTranslationService);let z={targetLanguage:w,config:n,translationService:h,inputTranslationService:j,mouseHoverTranslationService:$,isTranslateUrl:O,sourceLanguage:u,mainFrame:document.body,isTranslateExcludeUrl:y,isMutationTranslationExcludeUrl:k,isInputTranslationExcludeUrl:T,rule:n.generalRule,url:t,encryptedUrl:x,state:a?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:q,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S},a):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:q,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:b,cache:n.cache,translationTheme:S},localConfig:D},ae=await jt.get(Nt,null);ae&&(z.user=ae),z.state.translationArea==="body"&&(z.config.generalRule.excludeTags=z.config.generalRule.excludeTags.filter(G=>!z.config.generalRule.bodyTranslateTags.includes(G)),z.config.generalRule.additionalExcludeSelectors=z.config.generalRule.additionalExcludeSelectors.filter(G=>G!==".btn"));let J=n.translationServices[z.translationService]||{};J.immediateTranslationTextCount!==void 0&&k1(J.immediateTranslationTextCount)&&J.immediateTranslationTextCount>=0&&(z.state.immediateTranslationTextCount=J.immediateTranslationTextCount),z.translationService==="deepl"&&(J&&J.authKey&&J.authKey.startsWith("immersive_")||J&&J.provider==="pro"&&z.user?.token)&&J.immediateTranslationTextCountForImmersiveDeepl!==void 0&&J.immediateTranslationTextCountForImmersiveDeepl>=0&&(z.state.immediateTranslationTextCount=J.immediateTranslationTextCountForImmersiveDeepl),J&&J.translationDebounce&&typeof J.translationDebounce=="number"&&(z.state.translationDebounce=J.translationDebounce);let Y=M.immediateTranslationTextCount;n.immediateTranslationTextCount!==Y&&(z.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let pe=n.rules,he;globalThis.PDFViewerApplication?he=pe.find(G=>G.isPdf):globalThis.immersiveTranslateEbookViewer?he=pe.find(G=>G.isEbook):globalThis.immersiveTranslateEbookBuilder?he=pe.find(G=>G.isEbookBuilder):he=pe.find(G=>tr(t,G)),z.state.translationArea==="body"&&(z.rule.paragraphMinTextCount=1,z.rule.paragraphMinWordCount=1),he&&he.isEbookBuilder&&(z.state.translationStartMode="immediate");let ue=n.generalRule;if(he&&(z.rule=ao(ue,he)),z.rule.selectors.length>0&&(z.rule.paragraphMinTextCount=2,z.rule.paragraphMinWordCount=1),z.state.translationArea==="body"&&z.rule.excludeTags&&(z.rule.excludeTags=z.rule.excludeTags.filter(G=>!z.rule.bodyTranslateTags.includes(G)&&!z.rule.forceTranslateTags.includes(G))),z.rule.mainFrameSelector){let G=document.querySelector(z.rule.mainFrameSelector);G&&(z.mainFrame=G)}return z}function tr(e,t){if(!t)return!1;let{matches:n,excludeMatches:a,selectorMatches:r,excludeSelectorMatches:u}=t;return a&&a.length>0&&On(e,a)?!1:n&&n.length>0&&On(e,n)?!0:u&&u.length>0&&mo(u)?!1:!!(r&&r.length>0&&mo(r))}function rm(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:a}=t;return!!(n&&n.length>0&&On(e,n)||a&&a.length>0&&mo(a))}function k1(e){return typeof e=="number"}g();g();g();g();g();g();g();var uC=om(2),um=om(3);function om(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let a=[];if(n==null)return a;let r=typeof n.slice=="function"?n:String(n),u=r.length-e+1;if(u<1)return a;for(;u--;)a[u]=r.slice(u,u+e);return a}}g();var S1=/\s+/g,D1=/[\t\n\v\f\r ]+/g;function im(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?L1:P1;return String(e).replace(t.style==="html"?D1:S1,t.trim?M1(n):n)}function L1(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function P1(){return" "}function M1(e){return t;function t(n,a,r){return a===0||a+n.length===r.length?"":e(n)}}var sm={}.hasOwnProperty;function F1(e){return e==null?"":im(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function _1(e){return um(" "+F1(e)+" ")}function B1(e){let t=_1(e),n={},a=-1;for(;++an&&(n=u,a=r)}return[a,n]}function z1(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function H1(e,t,n,a){t=W1(t,n,a);let r=[],u;if(t)for(u in t)Co.call(t,u)&&r.push([u,q1(e,t[u])]);return r.length===0?zs():r.sort($1)}function q1(e,t){let n=0,a=-1;for(;++at.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterso+i.length,0));let u=e.length-a;for(let o of t6){let i=o[1],l=o[0],c=e.match(i),s=c?c.length:0;s>n&&(n=s,t=l)}return n*2.5/u>.5?t==="zh-CN"?hm(e)?"zh-TW":"zh-CN":t:"auto"}var ym=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],Hs=new Map(ym),n6=new Map(ym.map(([e,t])=>[t,e]));function xm(e,t,n=["en"]){if(!e)return"auto";let a=n.map(i=>n6.get(i));!t&&t!==0&&(t=25);let r=vo(e);if(r!=="auto")return r;let u={minLength:t,whitelist:[...Hs.keys()]},o=dm(e,u);if(o&&o.length>0){for(let[s,m]of o)if(a.includes(s)&&m>.5)return Hs.get(s);let[i,l]=o[0],c=Hs.get(i);if(c&&l>.5)return c}return"auto"}g();g();function na(e,t){var n=(e&65535)+(t&65535),a=(e>>16)+(t>>16)+(n>>16);return a<<16|n&65535}function a6(e,t){return e<>>32-t}function ko(e,t,n,a,r,u){return na(a6(na(na(t,e),na(a,u)),r),n)}function xt(e,t,n,a,r,u,o){return ko(t&n|~t&a,e,t,r,u,o)}function Et(e,t,n,a,r,u,o){return ko(t&a|n&~a,e,t,r,u,o)}function Tt(e,t,n,a,r,u,o){return ko(t^n^a,e,t,r,u,o)}function Ct(e,t,n,a,r,u,o){return ko(n^(t|~a),e,t,r,u,o)}function Ao(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,a,r,u,o,i=1732584193,l=-271733879,c=-1732584194,s=271733878;for(n=0;n>5]>>>t%32&255);return n}function qs(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(a=Ao(a,e.length*8)),n=0;n<16;n+=1)r[n]=a[n]^909522486,u[n]=a[n]^1549556828;return o=Ao(r.concat(qs(t)),512+t.length*8),Em(Ao(u.concat(o),512+128))}function Tm(e){var t="0123456789abcdef",n="",a,r;for(r=0;r>>4&15)+t.charAt(a&15);return n}function Ws(e){return unescape(encodeURIComponent(e))}function Cm(e){return r6(Ws(e))}function o6(e){return Tm(Cm(e))}function wm(e,t){return u6(Ws(e),Ws(t))}function i6(e,t){return Tm(wm(e,t))}function aa(e,t,n){return t?n?wm(t,e):i6(t,e):n?Cm(e):o6(e)}g();function vm(e,t,n){let a=s6(e,t),r=[],u={from:e[0].from,fromByClient:e[0].fromByClient,to:e[0].to,tempSentences:[],url:e[0].url};for(let o of a)(u.tempSentences.reduce((l,c)=>l+c.text.length,0)+o.text.length>t||u.tempSentences.length>=n)&&(r.push(u),u={fromByClient:u.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}),(u.from!==o.from||u.to!==o.to)&&(u.tempSentences.length>0?(r.push(u),u={fromByClient:u.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}):(u.from=o.from,u.to=o.to)),u.tempSentences.push(o);return u.tempSentences.length>0&&r.push(u),r}function s6(e,t){let n=[],a=[];for(let r=0;r0?dt){let h=[];$s(b,t,h);for(let A=0;A0&&d{let i=e.lastIndexOf(o,t);return i>u?i:u},-1);if(r===-1){let u=e.slice(0,t);if(u&&!u.trim())return;n.push({text:u,prefix:"",suffix:""}),e.length>t&&$s(e.slice(t),t,n)}else{let u=e.slice(0,r+1);if(u&&u.trim()==="")return;u.startsWith(" ")?n.push({text:u.slice(1),prefix:" ",suffix:""}):n.push({text:u,prefix:"",suffix:""}),r+10){s.forEach(d=>{c.length>0&&d.providers&&d.providers.length>0&&!d.providers.includes(l)||(d.optional?p.push(d):g.push(d))});let f=p.concat(g).filter(d=>d.required);if(f.length>0){for(let d of f)if(!r[d.name]){i=!1;break}}}return{...a,id:t,selected:n[e]===t,ok:i,currentProvider:l,config:r,providers:a.providers||[],props:a.props||[],allProps:s,optionalProps:p,explicitProps:g}}var vm=(e,t)=>{let{config:n}=e,a=n.alpha,r=n.beta,u=n.canary,o=n.debug,i=e.user,l=en(i);return Object.keys(Bn).filter(s=>{let g=Bn[s];if(s.startsWith("mock"))return o?!0:s===e.config[t];if(s===e.config[t])return!0;if(s==="openai"&&At())return e.config.showOpenaiOnSafari||l?!0:!!(r||a||u||l);let p=!!g.canary,f=!!g.alpha,d=!!g.beta;return s===e[t]||p&&u||f&&(a||u)||d&&(r||a||u)?!0:!f&&!d&&!p}).map(s=>Ks(t,s,e))};function bn(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}var nr=[];async function Do(e,t){return await new Promise((n,a)=>{let r=e,u=1,o=indexedDB.open(r,u);o.onsuccess=i=>{n(o.result)},o.onerror=i=>{a()},o.onupgradeneeded=i=>{let l=o.result,c=t||"cache";l.createObjectStore(c,{keyPath:"key"})}})}async function Am(e){let t=`${Q}-${e.service}@${e.from}->${e.to}`;return await d6(t,e)}async function km(e){let t=aa(e.originalText),n=`${Q}-${e.service}@${e.from}->${e.to}`;return await c6(n,t)}async function c6(e,t){let n=await Do(e);return await new Promise((a,r)=>{if(!n)return r();let u="cache",i=n.transaction([u],"readonly").objectStore(u).get(t);i.onsuccess=l=>{n.close();let c=i.result;a(c)},i.onerror=l=>{n.close(),r()}})}async function d6(e,t){let n=await Do(e);return(await g6()).includes(e)||await m6(e),await new Promise(r=>{if(!n)return r(!1);let u="cache",i=n.transaction([u],"readwrite").objectStore(u).put(t);i.onsuccess=l=>{n.close(),r(!0)},i.onerror=l=>{n.close(),r(!1)}})}async function m6(e){let t="cache_list",n=await Do(Q+"-cacheList",t),r=n.transaction([t],"readwrite").objectStore(t).put({key:e});r.onsuccess=u=>{n.close(),nr.push(e)},r.onerror=u=>{n.close()}}async function g6(){if(nr&&nr.length>0)return nr;let e=await Do(Q+"-cacheList","cache_list");return nr=await new Promise(t=>{let n="cache_list",r=e.transaction([n],"readonly").objectStore(n).getAllKeys();r.onsuccess=u=>{e.close(),t(r.result)},r.onerror=u=>{e.close(),t([])}}),nr}m();m();m();var Sm="G-MKMD9LWFTR";async function Ye(e,t,n){try{let a=Be();if(a.INSTALL_FROM==="firefox_store")return;let u=he(),o=tt(),i=a.PROD==="1",l=`report_${e}`,c=e.endsWith("_daily");if(c){if(o)return;let k=await In(l,0),v=Lo(new Date(k)),E=Date.now(),R=Lo(new Date(E));if(v===R)return;await Kd(l,E)}else if(!n.config.telemetry)return;let s="sitc4WmvShWYwfU0dANM3Q",g=await Dt("fakeUserId","");g||(g=await In("fakeUserId",""),g&&await ze("fakeUserId",g));let p=tn(),f=new Date,d=await Dt("installedAt","");d||(d=await In("installedAt",""),d&&await ze("installedAt",d)),g?d||(d=new Date(0).toISOString(),await ze("installedAt",d)):(g=p6(32),await ze("fakeUserId",g)),d||(d=f.toISOString(),await ze("installedAt",d));let b=new Date(d),C=Lo(b),h=Lo(f),A=C===h,S=f.getTime()-b.getTime()<7*24*60*60*1e3,U=`https://www.google-analytics.com/mp/collect?measurement_id=${Sm}&api_secret=${s}`;i||(U=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${Sm}&api_secret=${s}`);let O=$a.parse(window.navigator.userAgent),y=t.map(k=>{let v=k.params||{};if(O.os&&(v.os_name=O.os.name||"unknown",v.os_version=O.os.version||"unknown",v.os_version_name=O.os.versionName||"unknown"),O.browser&&(v.browser_name=O.browser.name||"unknown",v.browser_version=O.browser.version||"unknown"),O.platform&&(v.platform_type=O.platform.type||"unknown"),O.engine&&(v.engine_name=O.engine.name||"unknown",v.engine_version=O.engine.version||"unknown"),n.translationService&&(v.translation_service||(v.translation_service=n.translationService),n.config.translationServices&&n.config.translationServices[n.translationService]&&(n.config.translationServices[n.translationService].provider&&(v.translation_service_provider=n.config.translationServices[n.translationService].provider),n.translationService==="openai"&&n.config.translationServices[n.translationService].provider==="custom"&&(n.config.translationServices[n.translationService].apiUrl?n.config.translationServices[n.translationService].apiUrl.startsWith("https://api.openai.com/")?v.openai_is_official="1":v.openai_is_official="0":v.openai_is_official="1"))),n.targetLanguage&&(v.target_language=n.targetLanguage),n.config.interfaceLanguage&&(v.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?v.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":v.enable_default_always_translated_urls="0",p&&(v.version=p),n.config.enableInputTranslation?v.enable_input_translation=n.config.enableInputTranslation?"1":"0":v.enable_input_translation="0",n.config.translationTheme&&(v.translation_theme=n.config.translationTheme),n.config.alpha&&(v.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?v.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):v.always_translate_languages="none",a.INSTALL_FROM&&(v.install_from=a.INSTALL_FROM),n.config.beta&&(v.beta=n.config.alpha.toString()),n.config.translationArea&&(v.translation_area=n.config.translationArea),n.rule&&n.rule.enableSearchEnhancement!==void 0&&(v.enable_search_enhancement=n.rule.enableSearchEnhancement?"1":"0"),C&&(v.install_day=f6(b)),n.user){let R=qd(n.user);R&&Object.keys(R).forEach(F=>{v[F]=R[F]})}else v.user_type="anonymous";n.config.translationMode&&(v.translation_mode=n.config.translationMode),v.userscript=u.toString(),A?v.is_new_user_today="1":v.is_new_user_today="0",S?v.is_new_user_this_week="1":v.is_new_user_this_week="0",n.config.tempTranslateDomainMinutes?v.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():v.temp_translate_domain_minutes="0";let E="html";if(n.rule.isEbook?E="ebookReader":n.rule.isPdf?E="pdfReader":n.rule.isEbookBuilder?E="ebookBuilder":n.rule.isSubtitleBuilder&&(E="subtitleBuilder"),v.page_type=E,o?v.main_frame=0:v.main_frame=1,!c){let R=n.url;try{let F=new URL(R);v.site_host=F.hostname}catch{v.site_host="unknown"}n.sourceLanguage&&(v.source_language=n.sourceLanguage)}return{...k,params:v}}),T=await se({responseType:"text",url:U,method:"POST",body:JSON.stringify({client_id:g,user_id:g,events:y})})}catch{}}function p6(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;rt.removeEventListener("message",n)),e.length=0}function x6(e,t,n,a){return new Promise(r=>{let u=o=>{let i=o.data;b6(t,n,i)&&i.id===a&&(e.removeEventListener("message",u),r(i.response))};e.addEventListener("message",u)})}function E6(e,t,n,a){let r=u=>{let o=u.data;Fm(t,"tell",n,o)&&a(o.body)};return e.addEventListener("message",r),[e,r]}function Dm(e,t,n,a,r,u){let o=async i=>{let l=i.data;if(Fm(n,"ask",a,l)){let c=await u(l.body);t=i.source,t.postMessage(h6(n,a,l.id,c),i.origin)}};return e.addEventListener("message",o),[e,o]}function T6(e,t,n,a,r){let u=Math.random().toString();return e.postMessage(Mm(t,"tell",n,u,a),r)}async function Lm(e,t,n,a,r,u,o){let i=Math.random().toString(),l=new Promise(async(c,s)=>{let g=setTimeout(()=>s(new Error(`Failed to get response within ${o}ms`)),o),p=await x6(e,n,a,i);clearTimeout(g),c(p)});return t.postMessage(Mm(n,"ask",a,i,r),u),l}var oa=class e{constructor(t,n,a=window,r="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=a;this.targetOrigin=r;Dm(a,n,this.getSystemProtocol("ping"),"ping",r,()=>Promise.resolve({}))}static async connect(t,n=10,a=500){for(let r=0;r<=n;r++)try{return await t.ping({timeout:a}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*a}ms`)}static parent(t,n,a="*",r=window){let u=n.contentWindow;if(ua(u))return new e(t,u,r,a);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:a=window,targetWindow:r=window.parent}={}){return new e(t,r,a,n)}static rootIframe(t,n="*",{thisWindow:a=window}={}){return new e(t,null,a,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await Lm(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(E6(this.thisWindow,this.protocol,t,n))}tell(t,n){T6(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(Dm(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,a=1e4){if(this.targetWindow)return Lm(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,a);throw new Error("target window is requried")}destroy(){y6(this.listeners)}};var _m;async function Bm(){if(tt()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=oa.iframe(Gu,"*",{targetWindow:t});_m=n,await oa.connect(n).catch(a=>{H.error("connect with parent frame error",a)})}}function Po(){return _m}m();function Rm(e,t){let n=t.matches||[],a=t.excludeMatches||[];if(a&&!Array.isArray(a)&&(a=[a]),n&&!Array.isArray(n)&&(n=[n]),a.length>0){if(a.includes(e)||a.includes(""))return!1;for(let r of a)if(r.includes("*")&&new RegExp(r).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let r of n)if(r.includes("*")&&new RegExp(r).test(e))return!0}return!1}m();m();m();m();m();var ft=class{options;strictTicks=[];constructor(t){this.options=t,this.setOptions(t)}setOptions(t){t&&(t.interval!==void 0&&(this.options.interval=Number(t.interval)),t.limit!==void 0&&(this.options.limit=Number(t.limit)))}wait(){return new Promise((t,n)=>{setTimeout(t,this.getDelay())})}getDelay(){let t=this.strictTicks,n=this.options.limit,a=this.options.interval,r=Date.now();if(t.length=u?(t.push(r),0):(t.push(u),u-r)}};var C6=new ft({limit:7,interval:1250}),w6={tencent:new ft({limit:3,interval:1350}),baidu:new ft({limit:1,interval:1550}),strict:new ft({limit:1,interval:1050}),d:new ft({limit:1,interval:1050}),youdao:new ft({limit:5,interval:1050}),you:new ft({limit:5,interval:1050}),cai:new ft({limit:5,interval:1050}),google:new ft({limit:10,interval:1050}),deepl:new ft({limit:10,interval:1050}),transmart:new ft({limit:30,interval:1050}),papago:new ft({limit:3,interval:1150}),openai:new ft({limit:10,interval:1300}),chatgpt:new ft({limit:1,interval:1350})};function Jr(e){return w6[e]||C6}async function Om(e){if(tt()){let n=Po();if(n)try{return(await n.ask("getRateLimitDelay",{key:e})).value}catch(a){return H.error("can not comunicate with root frame, use strict limiter",a),Jr("strict").getDelay()}else return Jr("strict").getDelay()}else return Jr(e).getDelay()}async function Im(e,t){if(!tt()){let a=Jr(e);t&&a.setOptions(t)}}async function Nm(e){let t=e.key;return{value:Jr(t).getDelay()}}var be=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=200;translationOptions;constructor(t,n,a){this.serviceConfig=t,this.generalConfig=n,this.translationOptions=a}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getDefaultRateLimit(){return null}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,a){if(t.sentences.length===0)return{sentences:[]};let{sentences:r}=t,u=[],o=null,i=new Set;for(let b of r)b.from&&b.from!=="auto"&&i.add(b.from);let l=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(l=this.serviceConfig.maxTextLengthPerRequest);let c=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(c=this.serviceConfig.maxTextGroupLengthPerRequest);try{u=wm(r,l,c)}catch(b){if(a)for(let C=0;Cb));let s=[],g=[],p=(b,C,h)=>{let A=C.translatedTexts[0];g[b]||(g[b]=C,g[b].translatedTexts=Array(C.sentenceTotalParts).fill(null)),g[b].translatedTexts[C.partIndex]=A;let S=g[b],U=0;for(let O=0;O{let S=await Om(this.translationOptions.translationService);await Ir(S||0);let U=C.from;if(C.fromByClient&&C.fromByClient!=="auto"&&(U=C.fromByClient),this.isSupportList)return{...await this.translateList({text:C.tempSentences.map(y=>y.text),from:U,to:C.to,url:h,options:n}),sourceTempSentences:C.tempSentences};{let O=S4;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(O=this.serviceConfig.translationTextSeparator);let y=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(y=this.serviceConfig.newlinePlaceholderDelimiters);let T="";y&&y.length>=2?T=C.tempSentences.map((F,w)=>w===C.tempSentences.length-1?F.text:F.text+y[0]+(w+1)+y[1]).join(""):T=C.tempSentences.map(F=>F.text).join(O);let k=await this.translate({text:T,from:U,to:C.to,url:h,options:n}),{text:v}=k,E=[];if(y&&y.length>=2){let F=`${y[0]}\\d+${y[1]}`;y&&y.length>=3&&(F=y[2]);let w=new RegExp(F,"g");E=v.split(w)}else E=v.split(O);let R=[];if(E.length>C.tempSentences.length){for(let F=0;F{let{text:U,sourceTempSentences:O}=S;for(let y=0;y{if(a){for(let U=0;U({...b.sentence,text:b.translatedTexts.join("")}))}}detectLanguageLocally(t){return Je({text:t,minLength:18,pageLangs:[pt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}};var jm=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Qr=class e extends be{static langMap=new Map(jm);static langMapReverse=new Map(jm.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),a=`${t.getUTCMonth()+1}`.padStart(2,"0"),r=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${a}-${r}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.secretId||!t.secretKey)throw new Error("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}async translate(t){let{text:n,from:a,to:r}=t,u=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceText:n,Target:e.langMap.get(r)||r}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:u,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||a,to:e.langMapReverse.get(o.Response.Target)||r}}async translateList(t){let{text:n,from:a,to:r}=t,u=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceTextList:n,Target:e.langMap.get(r)||r}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:u,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||a,to:e.langMapReverse.get(o.Response.Target)||r}}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:u,version:o}){let i=`${u}.tencentcloudapi.com`,l=new Date,c=`${new Date().valueOf()}`.slice(0,10),s=["POST","/","","content-type:application/json; charset=utf-8",`host:${i}`,"","content-type;host",await fn(r)].join(` -`),g=e.getUTCDate(l),p=["TC3-HMAC-SHA256",c,`${g}/${u}/tc3_request`,await fn(s)].join(` -`),f=await Pd(g,`TC3${n}`),d=await lo(u,f),b=await lo("tc3_request",d),C=await lo(p,b),h=await se({retry:1,url:`https://${u}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:i,"X-TC-Action":a,"X-TC-Timestamp":c,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${g}/${u}/tc3_request, SignedHeaders=content-type;host, Signature=${C}`},body:r});if(h instanceof Error)throw h;if(h.Response&&h.Response.Error&&h.Response.Error.Message)throw new Error(h.Response.Error.Message);return h}};m();var Um=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],v6={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},Zr=class e extends be{static langMap=new Map(Um);static langMapReverse=new Map(Um.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,a){super(t,n,a)}async translate(t){let{text:n,from:a,to:r}=t,u=new URLSearchParams({source:a,target:r,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await se({url:`https://wxapp.translator.qq.com/api/translate?${u}`,retry:1,method:"GET",headers:v6});return{text:o.targetText,from:e.langMapReverse.get(o.source)||a,to:e.langMapReverse.get(o.target)||r}}};m();var zm=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],Ta=class e extends be{static langMap=new Map(zm);static langMapReverse=new Map(zm.map(([t,n])=>[n,t]));isSupportList=!1;apiUrl="https://translate.googleapis.com/translate_a/single";constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.apiUrl=jt(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let u=e.langMap.get(a)||"auto",o=e.langMap.get(r)||r,i=await this.fetchWithoutToken(n,u,o);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async translateXml(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let u=e.langMap.get(a)||"auto",o=e.langMap.get(r)||r,i=await this.fetchXmlWithoutToken(n,u,o);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async fetchXmlWithoutToken(t,n,a){let u="https://translate.googleapis.com/translate_a/t?"+new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}).toString();return{data:await se({retry:2,url:u})}}async fetchWithoutToken(t,n,a){let r=new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}),u=this.apiUrl+"?"+r.toString();return{data:await se({retry:2,url:u})}}};m();m();m();function A6(e,t){return t?e+(t-e%t):e}function k6(e,t){return e.split(t).length-1}function Gs(e){let t=Date.now(),n=1;for(let a of e)n+=k6(a,"i");return A6(t,n)}function S6(e,t){return Math.floor(Math.random()*(t-e+1))+e}function Vs(){return S6(1e6,1e8)}m();m();m();var Ys="https://www2.deepl.com/jsonrpc",Js="auto",Hm=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];m();function D6(e=Hm){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function Qs(e){return D6()[e.toLowerCase()]}var L6={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function P6(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function M6(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function F6(e,t,n,a,r,u,o){let i=Vs(),l=M6(a,n),c=[];t.forEach(p=>{c.push({text:p,requestAlternatives:3})}),l.id=i,l.params.texts=c,l.params.timestamp=Gs(t);let s=await se({retry:2,method:"POST",url:e,body:P6(l),headers:L6}),g={from:s.result.lang,to:n,text:[]};return s.result.texts.forEach(p=>{g.text.push(p.text)}),g}async function qm(e,t,n,a=Js,r,u,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:a,to:n}:F6(e,t,Qs(n),Qs(a)??"auto",r,u,o):{text:[],from:a,to:n}}var Wm=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],ar=class e extends be{static langMap=new Map(Wm);static langMapReverse=new Map(Wm.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=Ys;constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.API_URL=jt(Ys,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:a,from:r}=t,u=await qm(this.API_URL,n,e.langMap.get(a)||a,e.langMap.get(r)||"auto");return{text:u.text,from:e.langMapReverse.get(u.from),to:e.langMapReverse.get(u.to)}}};m();var $m=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Zs="https://transmart.qq.com/api/imt",Ca=class e extends be{static langMap=new Map($m);static langMapReverse=new Map($m.map(([t,n])=>[n,t]));clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,a){super(t,n,a),this.clientKey=e.getClientKey()}static getClientKey(){return btoa("transmart_crx_"+navigator.userAgent).slice(0,100)}async translate(t){let{text:n,to:a}=t,r=await this.detectLanguage(n),u=e.langMap.get(r)||r,o=e.langMap.get(a)||a;if(r===a)return{text:n,from:r,to:a};let i=Be(),l=t.url;i.INSTALL_FROM==="firefox_store"&&(l=Km());let s=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:u,orig_url:l},target:{lang:o}}),g=await se({url:Zs,body:s,method:"POST",retry:2});if(g.header.ret_code!=="succ")throw new Error(g.message||g.header.ret_code);return{text:g.auto_translation,from:r||"auto",to:a}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:a,to:r}=t,u=Be(),o=t.url;if(u.INSTALL_FROM==="firefox_store"&&(o=Km()),a.length===1){let f=await this.translate({from:n,text:a[0],to:r,url:o,options:t.options});return{text:[f.text],from:f.from,to:f.to}}let l=await this.detectLanguage(a.join(` -`));if(l===r)return{text:a,from:l,to:r};let c=e.langMap.get(l)||l,s=e.langMap.get(r)||r,g=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:a,lang:c,orig_url:o},target:{lang:s},type:"plain"}),p=await se({url:Zs,body:g,method:"POST"});if(p.header.ret_code!=="succ")throw new Error(p.message||p.header.ret_code);return{text:p.auto_translation,from:l||"auto",to:r}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return e.detectLanguageRemotelyByTransmart(t)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},a=await se({url:Zs,method:"POST",body:JSON.stringify(n)});if(a.header.ret_code!=="succ")throw new Error(a.message||a.header.ret_code);let r=a.language,u=e.langMapReverse.get(r);return u||r}};function Km(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}m();m();function Gm(){return Math.random()>=0}var rr=class extends be{isSupportList=!0;maxTextLength=1200;maxTextGroupLength=25;async translate(t){let{text:n}=t,a=n.match(/^\s*/)[0].length;return{text:n.slice(0,a)+"\u6A21\u62DF\uFF1A"+n.slice(a,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:a,to:r}=t;if(await Vm(),!Gm())throw new Error("\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:a,to:r,text:[""]}:{from:a,to:r,text:n.map(u=>{let o=u.match(/^\s*/)[0].length;return u.slice(0,o)+"\u6A21\u62DF\uFF1A"+u.slice(o,-6)})}}};m();var Jm=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],Xs=new Map(Jm),Ym=new Map(Jm.map(([e,t])=>[t,e])),e0=class e extends be{static langMap=Xs;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,a){if(super(t,n,a),!t||!t.apikey)throw new Error("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:a,to:r}=t,u=await se({retry:2,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:Xs.get(a)||"auto",target_lang:Xs.get(r)||r})});if(u.status){let o=u;return o.result&&r=="zh-TW",{text:o.result,from:Ym.get(o.source_lang),to:Ym.get(o.target_lang)}}else throw new Error(u.msg)}},Mo=e0;m();var Qm=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Xr=new Map(Qm),_6=new Map(Qm.map(([e,t])=>[t,e])),t0=class extends be{static langMap=Xr;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl="https://deepl.immersivetranslate.com/v2/translate";immersiveTranslateDeeplTokenUrl="https://api.immersivetranslate.com";immersiveTranslateDeeplProApiUrl=Mn()||Fn()?"https://api2.immersivetranslate.com/deepl/translate":"https://test-api2.immersivetranslate.com/deepl/translate";provider="custom";splitor="";apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,a){if(super(t,n,a),t=t||{},this.splitor=t.qualityDelimiterBeta||"",t.provider==="pro")if(this.provider="pro",a.userToken){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=a.userToken,this.apiKeys=this.authKey.split(",").map(r=>r.trim())}else throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey.split(",").map(r=>r.trim()),!this.authKey)throw new Error("authKey are required");if(!this.authKey)throw new Error("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=jt(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=jt(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=jt(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=jt(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=jt(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getDefaultRateLimit(){if(this.provider==="pro"){if(this.serviceConfig&&this.serviceConfig.immersiveTranslateProLimit){let t=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(t)&&(t=15),{limit:t,interval:1050}}return{limit:15,interval:1050}}else return{limit:3,interval:1050}}async translateList(t){let{from:n,to:a,text:r}=t,u={source_lang:Xr.get(n)||"",target_lang:Xr.get(a)||a},o=this.getRandomKey(),i=new URLSearchParams(u);this.splitor?i.append("text",r.join(this.splitor)):r.forEach(d=>{i.append("text",d)});let l=i.toString(),c={text:this.splitor?[r.join(this.splitor)]:r,source_lang:Xr.get(n)||"auto",target_lang:Xr.get(a)||a},s=this.freeApiUrl;o.endsWith(":im")?s=this.immersiveTranslateApiUrl:o.endsWith(":fx")||(s=this.proApiUrl);let g;this.provider==="pro"?g=await se({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:o,"Content-Type":"application/json"}}):o.startsWith("immersive_")?g=await se({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:o,"Content-Type":"application/json"}}):g=await se({retry:2,url:s,method:"POST",body:l,headers:{Authorization:"DeepL-Auth-Key "+o,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}});let{translations:p}=g,f=[];if(this.splitor?f=p[0]?.text.split(this.splitor).map(d=>d):f=p.map(d=>d.text),a==="zh-TW"){let d=this.serviceConfig||{};d&&d.googleApiUrl&&(d.apiUrl=d.googleApiUrl);let C=await new Ta(this.serviceConfig,this.generalConfig,this.translationOptions).translate({from:"zh-CN",to:"zh-TW",text:p.map(h=>h.text).join(` +`;continue}else if(b.length>t){let h=[];$s(b,t,h);for(let A=0;A0&&d{let i=e.lastIndexOf(o,t);return i>u?i:u},-1);if(r===-1){let u=e.slice(0,t);if(u&&!u.trim())return;n.push({text:u,prefix:"",suffix:""}),e.length>t&&$s(e.slice(t),t,n)}else{let u=e.slice(0,r+1);if(u&&u.trim()==="")return;u.startsWith(" ")?n.push({text:u.slice(1),prefix:" ",suffix:""}):n.push({text:u,prefix:"",suffix:""}),r+10){s.forEach(d=>{c.length>0&&d.providers&&d.providers.length>0&&!d.providers.includes(l)||(d.optional?p.push(d):m.push(d))});let f=p.concat(m).filter(d=>d.required);if(f.length>0){for(let d of f)if(!r[d.name]){i=!1;break}}}return{...a,id:t,selected:n[e]===t,ok:i,currentProvider:l,config:r,providers:a.providers||[],props:a.props||[],allProps:s,optionalProps:p,explicitProps:m}}var Am=(e,t)=>{let{config:n}=e,a=n.alpha,r=n.beta,u=n.canary,o=n.debug,i=e.user,l=en(i);return Object.keys(Bn).filter(s=>{let m=Bn[s];if(s.startsWith("mock"))return o?!0:s===e.config[t];if(s===e.config[t])return!0;if(s==="openai"&&At())return e.config.showOpenaiOnSafari||l?!0:!!(r||a||u||l);let p=!!m.canary,f=!!m.alpha,d=!!m.beta;return s===e[t]||p&&u||f&&(a||u)||d&&(r||a||u)?!0:!f&&!d&&!p}).map(s=>Ks(t,s,e))};function bn(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}var nr=[];async function So(e,t){return await new Promise((n,a)=>{let r=e,u=1,o=indexedDB.open(r,u);o.onsuccess=i=>{n(o.result)},o.onerror=i=>{a()},o.onupgradeneeded=i=>{let l=o.result,c=t||"cache";l.createObjectStore(c,{keyPath:"key"})}})}async function km(e){let t=`${Q}-${e.service}@${e.from}->${e.to}`;return await d6(t,e)}async function Sm(e){let t=aa(e.originalText),n=`${Q}-${e.service}@${e.from}->${e.to}`;return await c6(n,t)}async function c6(e,t){let n=await So(e);return await new Promise((a,r)=>{if(!n)return r();let u="cache",i=n.transaction([u],"readonly").objectStore(u).get(t);i.onsuccess=l=>{n.close();let c=i.result;a(c)},i.onerror=l=>{n.close(),r()}})}async function d6(e,t){let n=await So(e);return(await g6()).includes(e)||await m6(e),await new Promise(r=>{if(!n)return r(!1);let u="cache",i=n.transaction([u],"readwrite").objectStore(u).put(t);i.onsuccess=l=>{n.close(),r(!0)},i.onerror=l=>{n.close(),r(!1)}})}async function m6(e){let t="cache_list",n=await So(Q+"-cacheList",t),r=n.transaction([t],"readwrite").objectStore(t).put({key:e});r.onsuccess=u=>{n.close(),nr.push(e)},r.onerror=u=>{n.close()}}async function g6(){if(nr&&nr.length>0)return nr;let e=await So(Q+"-cacheList","cache_list");return nr=await new Promise(t=>{let n="cache_list",r=e.transaction([n],"readonly").objectStore(n).getAllKeys();r.onsuccess=u=>{e.close(),t(r.result)},r.onerror=u=>{e.close(),t([])}}),nr}g();g();g();var Dm="G-MKMD9LWFTR";async function Ye(e,t,n){try{let a=Be();if(a.INSTALL_FROM==="firefox_store")return;let u=fe(),o=tt(),i=a.PROD==="1",l=`report_${e}`,c=e.endsWith("_daily");if(c){if(o)return;let k=await In(l,0),v=Do(new Date(k)),E=Date.now(),R=Do(new Date(E));if(v===R)return;await Gd(l,E)}else if(!n.config.telemetry)return;let s="sitc4WmvShWYwfU0dANM3Q",m=await Dt("fakeUserId","");m||(m=await In("fakeUserId",""),m&&await ze("fakeUserId",m));let p=tn(),f=new Date,d=await Dt("installedAt","");d||(d=await In("installedAt",""),d&&await ze("installedAt",d)),m?d||(d=new Date(0).toISOString(),await ze("installedAt",d)):(m=p6(32),await ze("fakeUserId",m)),d||(d=f.toISOString(),await ze("installedAt",d));let b=new Date(d),C=Do(b),h=Do(f),A=C===h,S=f.getTime()-b.getTime()<7*24*60*60*1e3,U=`https://www.google-analytics.com/mp/collect?measurement_id=${Dm}&api_secret=${s}`;i||(U=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${Dm}&api_secret=${s}`);let O=$a.parse(window.navigator.userAgent),y=t.map(k=>{let v=k.params||{};if(O.os&&(v.os_name=O.os.name||"unknown",v.os_version=O.os.version||"unknown",v.os_version_name=O.os.versionName||"unknown"),O.browser&&(v.browser_name=O.browser.name||"unknown",v.browser_version=O.browser.version||"unknown"),O.platform&&(v.platform_type=O.platform.type||"unknown"),O.engine&&(v.engine_name=O.engine.name||"unknown",v.engine_version=O.engine.version||"unknown"),n.translationService&&(v.translation_service||(v.translation_service=n.translationService),n.config.translationServices&&n.config.translationServices[n.translationService]&&(n.config.translationServices[n.translationService].provider&&(v.translation_service_provider=n.config.translationServices[n.translationService].provider),n.translationService==="openai"&&n.config.translationServices[n.translationService].provider==="custom"&&(n.config.translationServices[n.translationService].apiUrl?n.config.translationServices[n.translationService].apiUrl.startsWith("https://api.openai.com/")?v.openai_is_official="1":v.openai_is_official="0":v.openai_is_official="1"))),n.targetLanguage&&(v.target_language=n.targetLanguage),n.config.interfaceLanguage&&(v.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?v.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":v.enable_default_always_translated_urls="0",p&&(v.version=p),n.config.enableInputTranslation?v.enable_input_translation=n.config.enableInputTranslation?"1":"0":v.enable_input_translation="0",n.config.translationTheme&&(v.translation_theme=n.config.translationTheme),n.config.alpha&&(v.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?v.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):v.always_translate_languages="none",a.INSTALL_FROM&&(v.install_from=a.INSTALL_FROM),n.config.beta&&(v.beta=n.config.alpha.toString()),n.config.translationArea&&(v.translation_area=n.config.translationArea),n.rule&&n.rule.enableSearchEnhancement!==void 0&&(v.enable_search_enhancement=n.rule.enableSearchEnhancement?"1":"0"),C&&(v.install_day=f6(b)),n.user){let R=Wd(n.user);R&&Object.keys(R).forEach(F=>{v[F]=R[F]})}else v.user_type="anonymous";n.config.translationMode&&(v.translation_mode=n.config.translationMode),v.userscript=u.toString(),A?v.is_new_user_today="1":v.is_new_user_today="0",S?v.is_new_user_this_week="1":v.is_new_user_this_week="0",n.config.tempTranslateDomainMinutes?v.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():v.temp_translate_domain_minutes="0";let E="html";if(n.rule.isEbook?E="ebookReader":n.rule.isPdf?E="pdfReader":n.rule.isEbookBuilder?E="ebookBuilder":n.rule.isSubtitleBuilder&&(E="subtitleBuilder"),v.page_type=E,o?v.main_frame=0:v.main_frame=1,!c){let R=n.url;try{let F=new URL(R);v.site_host=F.hostname}catch{v.site_host="unknown"}n.sourceLanguage&&(v.source_language=n.sourceLanguage)}return{...k,params:v}}),T=await se({responseType:"text",url:U,method:"POST",body:JSON.stringify({client_id:m,user_id:m,events:y})})}catch{}}function p6(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;rt.removeEventListener("message",n)),e.length=0}function x6(e,t,n,a){return new Promise(r=>{let u=o=>{let i=o.data;b6(t,n,i)&&i.id===a&&(e.removeEventListener("message",u),r(i.response))};e.addEventListener("message",u)})}function E6(e,t,n,a){let r=u=>{let o=u.data;_m(t,"tell",n,o)&&a(o.body)};return e.addEventListener("message",r),[e,r]}function Lm(e,t,n,a,r,u){let o=async i=>{let l=i.data;if(_m(n,"ask",a,l)){let c=await u(l.body);t=i.source,t.postMessage(h6(n,a,l.id,c),i.origin)}};return e.addEventListener("message",o),[e,o]}function T6(e,t,n,a,r){let u=Math.random().toString();return e.postMessage(Fm(t,"tell",n,u,a),r)}async function Pm(e,t,n,a,r,u,o){let i=Math.random().toString(),l=new Promise(async(c,s)=>{let m=setTimeout(()=>s(new Error(`Failed to get response within ${o}ms`)),o),p=await x6(e,n,a,i);clearTimeout(m),c(p)});return t.postMessage(Fm(n,"ask",a,i,r),u),l}var oa=class e{constructor(t,n,a=window,r="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=a;this.targetOrigin=r;Lm(a,n,this.getSystemProtocol("ping"),"ping",r,()=>Promise.resolve({}))}static async connect(t,n=10,a=500){for(let r=0;r<=n;r++)try{return await t.ping({timeout:a}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*a}ms`)}static parent(t,n,a="*",r=window){let u=n.contentWindow;if(ua(u))return new e(t,u,r,a);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:a=window,targetWindow:r=window.parent}={}){return new e(t,r,a,n)}static rootIframe(t,n="*",{thisWindow:a=window}={}){return new e(t,null,a,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await Pm(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(E6(this.thisWindow,this.protocol,t,n))}tell(t,n){T6(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(Lm(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,a=1e4){if(this.targetWindow)return Pm(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,a);throw new Error("target window is requried")}destroy(){y6(this.listeners)}};var Bm;async function Rm(){if(tt()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=oa.iframe(Ku,"*",{targetWindow:t});Bm=n,await oa.connect(n).catch(a=>{H.error("connect with parent frame error",a)})}}function Lo(){return Bm}g();function Om(e,t){let n=t.matches||[],a=t.excludeMatches||[];if(a&&!Array.isArray(a)&&(a=[a]),n&&!Array.isArray(n)&&(n=[n]),a.length>0){if(a.includes(e)||a.includes(""))return!1;for(let r of a)if(r.includes("*")&&new RegExp(r).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let r of n)if(r.includes("*")&&new RegExp(r).test(e))return!0}return!1}g();g();g();g();g();var ft=class{options;strictTicks=[];constructor(t){this.options=t,this.setOptions(t)}setOptions(t){t&&(t.interval!==void 0&&(this.options.interval=Number(t.interval)),t.limit!==void 0&&(this.options.limit=Number(t.limit)))}wait(){return new Promise((t,n)=>{setTimeout(t,this.getDelay())})}getDelay(){let t=this.strictTicks,n=this.options.limit,a=this.options.interval,r=Date.now();if(t.length=u?(t.push(r),0):(t.push(u),u-r)}};var C6=new ft({limit:7,interval:1250}),w6={tencent:new ft({limit:3,interval:1350}),baidu:new ft({limit:1,interval:1550}),strict:new ft({limit:1,interval:1050}),d:new ft({limit:1,interval:1050}),youdao:new ft({limit:5,interval:1050}),you:new ft({limit:5,interval:1050}),cai:new ft({limit:5,interval:1050}),google:new ft({limit:10,interval:1050}),deepl:new ft({limit:10,interval:1050}),transmart:new ft({limit:30,interval:1050}),papago:new ft({limit:3,interval:1150}),openai:new ft({limit:10,interval:1300}),chatgpt:new ft({limit:1,interval:1350})};function Jr(e){return w6[e]||C6}async function Im(e){if(tt()){let n=Lo();if(n)try{return(await n.ask("getRateLimitDelay",{key:e})).value}catch(a){return H.error("can not comunicate with root frame, use strict limiter",a),Jr("strict").getDelay()}else return Jr("strict").getDelay()}else return Jr(e).getDelay()}async function Nm(e,t){if(!tt()){let a=Jr(e);t&&a.setOptions(t)}}async function jm(e){let t=e.key;return{value:Jr(t).getDelay()}}var be=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=200;translationOptions;constructor(t,n,a){this.serviceConfig=t,this.generalConfig=n,this.translationOptions=a}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getDefaultRateLimit(){return null}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,a){if(t.sentences.length===0)return{sentences:[]};let{sentences:r}=t,u=[],o=null,i=new Set;for(let b of r)b.from&&b.from!=="auto"&&i.add(b.from);let l=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(l=this.serviceConfig.maxTextLengthPerRequest);let c=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(c=this.serviceConfig.maxTextGroupLengthPerRequest);try{u=vm(r,l,c)}catch(b){if(a)for(let C=0;Cb));let s=[],m=[],p=(b,C,h)=>{let A=C.translatedTexts[0];m[b]||(m[b]=C,m[b].translatedTexts=Array(C.sentenceTotalParts).fill(null)),m[b].translatedTexts[C.partIndex]=A;let S=m[b],U=0;for(let O=0;O{let S=await Im(this.translationOptions.translationService);await Ir(S||0);let U=C.from;if(C.fromByClient&&C.fromByClient!=="auto"&&(U=C.fromByClient),this.isSupportList)return{...await this.translateList({text:C.tempSentences.map(y=>y.text),from:U,to:C.to,url:h,options:n}),sourceTempSentences:C.tempSentences};{let O=S4;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(O=this.serviceConfig.translationTextSeparator);let y=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(y=this.serviceConfig.newlinePlaceholderDelimiters);let T="";y&&y.length>=2?T=C.tempSentences.map((F,w)=>w===C.tempSentences.length-1?F.text:F.text+y[0]+(w+1)+y[1]).join(""):T=C.tempSentences.map(F=>F.text).join(O);let k=await this.translate({text:T,from:U,to:C.to,url:h,options:n}),{text:v}=k,E=[];if(y&&y.length>=2){let F=`${y[0]}\\d+${y[1]}`;y&&y.length>=3&&(F=y[2]);let w=new RegExp(F,"g");E=v.split(w)}else E=v.split(O);let R=[];if(E.length>C.tempSentences.length){for(let F=0;F{let{text:U,sourceTempSentences:O}=S;for(let y=0;y{if(a){for(let U=0;U({...b.sentence,text:b.translatedTexts.join("")}))}}detectLanguageLocally(t){return Je({text:t,minLength:18,pageLangs:[pt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}};var Um=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Qr=class e extends be{static langMap=new Map(Um);static langMapReverse=new Map(Um.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),a=`${t.getUTCMonth()+1}`.padStart(2,"0"),r=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${a}-${r}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.secretId||!t.secretKey)throw new Error("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}async translate(t){let{text:n,from:a,to:r}=t,u=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceText:n,Target:e.langMap.get(r)||r}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:u,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||a,to:e.langMapReverse.get(o.Response.Target)||r}}async translateList(t){let{text:n,from:a,to:r}=t,u=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceTextList:n,Target:e.langMap.get(r)||r}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:u,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||a,to:e.langMapReverse.get(o.Response.Target)||r}}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:u,version:o}){let i=`${u}.tencentcloudapi.com`,l=new Date,c=`${new Date().valueOf()}`.slice(0,10),s=["POST","/","","content-type:application/json; charset=utf-8",`host:${i}`,"","content-type;host",await fn(r)].join(` +`),m=e.getUTCDate(l),p=["TC3-HMAC-SHA256",c,`${m}/${u}/tc3_request`,await fn(s)].join(` +`),f=await Md(m,`TC3${n}`),d=await so(u,f),b=await so("tc3_request",d),C=await so(p,b),h=await se({retry:1,url:`https://${u}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:i,"X-TC-Action":a,"X-TC-Timestamp":c,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${m}/${u}/tc3_request, SignedHeaders=content-type;host, Signature=${C}`},body:r});if(h instanceof Error)throw h;if(h.Response&&h.Response.Error&&h.Response.Error.Message)throw new Error(h.Response.Error.Message);return h}};g();var zm=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],v6={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},Zr=class e extends be{static langMap=new Map(zm);static langMapReverse=new Map(zm.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,a){super(t,n,a)}async translate(t){let{text:n,from:a,to:r}=t,u=new URLSearchParams({source:a,target:r,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await se({url:`https://wxapp.translator.qq.com/api/translate?${u}`,retry:1,method:"GET",headers:v6});return{text:o.targetText,from:e.langMapReverse.get(o.source)||a,to:e.langMapReverse.get(o.target)||r}}};g();var Hm=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],Ca=class e extends be{static langMap=new Map(Hm);static langMapReverse=new Map(Hm.map(([t,n])=>[n,t]));isSupportList=!1;apiUrl="https://translate.googleapis.com/translate_a/single";constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.apiUrl=Ut(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let u=e.langMap.get(a)||"auto",o=e.langMap.get(r)||r,i=await this.fetchWithoutToken(n,u,o);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async translateXml(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let u=e.langMap.get(a)||"auto",o=e.langMap.get(r)||r,i=await this.fetchXmlWithoutToken(n,u,o);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async fetchXmlWithoutToken(t,n,a){let u="https://translate.googleapis.com/translate_a/t?"+new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}).toString();return{data:await se({retry:2,url:u})}}async fetchWithoutToken(t,n,a){let r=new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}),u=this.apiUrl+"?"+r.toString();return{data:await se({retry:2,url:u})}}};g();g();g();function A6(e,t){return t?e+(t-e%t):e}function k6(e,t){return e.split(t).length-1}function Gs(e){let t=Date.now(),n=1;for(let a of e)n+=k6(a,"i");return A6(t,n)}function S6(e,t){return Math.floor(Math.random()*(t-e+1))+e}function Vs(){return S6(1e6,1e8)}g();g();g();var Ys="https://www2.deepl.com/jsonrpc",Js="auto",qm=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];g();function D6(e=qm){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function Qs(e){return D6()[e.toLowerCase()]}var L6={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function P6(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function M6(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function F6(e,t,n,a,r,u,o){let i=Vs(),l=M6(a,n),c=[];t.forEach(p=>{c.push({text:p,requestAlternatives:3})}),l.id=i,l.params.texts=c,l.params.timestamp=Gs(t);let s=await se({retry:2,method:"POST",url:e,body:P6(l),headers:L6}),m={from:s.result.lang,to:n,text:[]};return s.result.texts.forEach(p=>{m.text.push(p.text)}),m}async function Wm(e,t,n,a=Js,r,u,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:a,to:n}:F6(e,t,Qs(n),Qs(a)??"auto",r,u,o):{text:[],from:a,to:n}}var $m=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],ar=class e extends be{static langMap=new Map($m);static langMapReverse=new Map($m.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=Ys;constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.API_URL=Ut(Ys,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:a,from:r}=t,u=await Wm(this.API_URL,n,e.langMap.get(a)||a,e.langMap.get(r)||"auto");return{text:u.text,from:e.langMapReverse.get(u.from),to:e.langMapReverse.get(u.to)}}};g();var Km=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Zs="https://transmart.qq.com/api/imt",wa=class e extends be{static langMap=new Map(Km);static langMapReverse=new Map(Km.map(([t,n])=>[n,t]));clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,a){super(t,n,a),this.clientKey=e.getClientKey()}static getClientKey(){return btoa("transmart_crx_"+navigator.userAgent).slice(0,100)}async translate(t){let{text:n,to:a}=t,r=await this.detectLanguage(n),u=e.langMap.get(r)||r,o=e.langMap.get(a)||a;if(r===a)return{text:n,from:r,to:a};let i=Be(),l=t.url;i.INSTALL_FROM==="firefox_store"&&(l=Gm());let s=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:u,orig_url:l},target:{lang:o}}),m=await se({url:Zs,body:s,method:"POST",retry:2});if(m.header.ret_code!=="succ")throw new Error(m.message||m.header.ret_code);return{text:m.auto_translation,from:r||"auto",to:a}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:a,to:r}=t,u=Be(),o=t.url;if(u.INSTALL_FROM==="firefox_store"&&(o=Gm()),a.length===1){let f=await this.translate({from:n,text:a[0],to:r,url:o,options:t.options});return{text:[f.text],from:f.from,to:f.to}}let l=await this.detectLanguage(a.join(` +`));if(l===r)return{text:a,from:l,to:r};let c=e.langMap.get(l)||l,s=e.langMap.get(r)||r,m=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:a,lang:c,orig_url:o},target:{lang:s},type:"plain"}),p=await se({url:Zs,body:m,method:"POST"});if(p.header.ret_code!=="succ")throw new Error(p.message||p.header.ret_code);return{text:p.auto_translation,from:l||"auto",to:r}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return e.detectLanguageRemotelyByTransmart(t)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},a=await se({url:Zs,method:"POST",body:JSON.stringify(n)});if(a.header.ret_code!=="succ")throw new Error(a.message||a.header.ret_code);let r=a.language,u=e.langMapReverse.get(r);return u||r}};function Gm(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}g();g();function Vm(){return Math.random()>=0}var rr=class extends be{isSupportList=!0;maxTextLength=1200;maxTextGroupLength=25;async translate(t){let{text:n}=t,a=n.match(/^\s*/)[0].length;return{text:n.slice(0,a)+"\u6A21\u62DF\uFF1A"+n.slice(a,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:a,to:r}=t;if(await Ym(),!Vm())throw new Error("\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:a,to:r,text:[""]}:{from:a,to:r,text:n.map(u=>{let o=u.match(/^\s*/)[0].length;return u.slice(0,o)+"\u6A21\u62DF\uFF1A"+u.slice(o,-6)})}}};g();var Qm=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],Xs=new Map(Qm),Jm=new Map(Qm.map(([e,t])=>[t,e])),e0=class e extends be{static langMap=Xs;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,a){if(super(t,n,a),!t||!t.apikey)throw new Error("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:a,to:r}=t,u=await se({retry:2,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:Xs.get(a)||"auto",target_lang:Xs.get(r)||r})});if(u.status){let o=u;return o.result&&r=="zh-TW",{text:o.result,from:Jm.get(o.source_lang),to:Jm.get(o.target_lang)}}else throw new Error(u.msg)}},Po=e0;g();var Zm=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Xr=new Map(Zm),_6=new Map(Zm.map(([e,t])=>[t,e])),t0=class extends be{static langMap=Xr;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl="https://deepl.immersivetranslate.com/v2/translate";immersiveTranslateDeeplTokenUrl="https://api.immersivetranslate.com";immersiveTranslateDeeplProApiUrl=Mn()||Fn()?"https://api2.immersivetranslate.com/deepl/translate":"https://test-api2.immersivetranslate.com/deepl/translate";provider="custom";splitor="";apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,a){if(super(t,n,a),t=t||{},this.splitor=t.qualityDelimiterBeta||"",t.provider==="pro")if(this.provider="pro",a.userToken){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=a.userToken,this.apiKeys=this.authKey.split(",").map(r=>r.trim())}else throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey.split(",").map(r=>r.trim()),!this.authKey)throw new Error("authKey are required");if(!this.authKey)throw new Error("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=Ut(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=Ut(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=Ut(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=Ut(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=Ut(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getDefaultRateLimit(){if(this.provider==="pro"){if(this.serviceConfig&&this.serviceConfig.immersiveTranslateProLimit){let t=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(t)&&(t=15),{limit:t,interval:1050}}return{limit:15,interval:1050}}else return{limit:3,interval:1050}}async translateList(t){let{from:n,to:a,text:r}=t,u={source_lang:Xr.get(n)||"",target_lang:Xr.get(a)||a},o=this.getRandomKey(),i=new URLSearchParams(u);this.splitor?i.append("text",r.join(this.splitor)):r.forEach(d=>{i.append("text",d)});let l=i.toString(),c={text:this.splitor?[r.join(this.splitor)]:r,source_lang:Xr.get(n)||"auto",target_lang:Xr.get(a)||a},s=this.freeApiUrl;o.endsWith(":im")?s=this.immersiveTranslateApiUrl:o.endsWith(":fx")||(s=this.proApiUrl);let m;this.provider==="pro"?m=await se({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:o,"Content-Type":"application/json"}}):o.startsWith("immersive_")?m=await se({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:o,"Content-Type":"application/json"}}):m=await se({retry:2,url:s,method:"POST",body:l,headers:{Authorization:"DeepL-Auth-Key "+o,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}});let{translations:p}=m,f=[];if(this.splitor?f=p[0]?.text.split(this.splitor).map(d=>d):f=p.map(d=>d.text),a==="zh-TW"){let d=this.serviceConfig||{};d&&d.googleApiUrl&&(d.apiUrl=d.googleApiUrl);let C=await new Ca(this.serviceConfig,this.generalConfig,this.translationOptions).translate({from:"zh-CN",to:"zh-TW",text:p.map(h=>h.text).join(` `),url:"",options:{}});C&&C.text&&(f=C.text.split(` -`))}return{text:f,from:p[0]&&_6.get(p[0].detected_source_language)||n,to:a}}},Zm=t0;m();var B6=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],n0=new Map(B6),a0=class extends be{static langMap=n0;APIKEY="";isSupportList=!1;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:a,to:r}=t,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:2,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:n,from:n0.get(a)||a,to:n0.get(r)||r,apikey:this.APIKEY})},i=await se(o);if(i.tgt_text){let l=i.tgt_text;return l.endsWith(` -`)&&(l=l.slice(0,-1)),{text:l,from:a,to:r}}else throw new Error(JSON.stringify(i))}},Xm=a0;m();var R6=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],r0=new Map(R6),u0=class extends be{static langMap=r0;APIKEY="";region="eastasia";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region)}async translateList(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:[]};let u={"api-version":"3.0",to:r0.get(r)||r};a!=="auto"&&(u.from=r0.get(a)||a);let o=new URLSearchParams(u),i=JSON.stringify(n.map(s=>({text:s}))),l={url:"https://api.cognitive.microsofttranslator.com/translate?"+o.toString(),retry:2,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:i},c=await se(l);if(c.length===0)throw new Error("server response invalid");return{from:a,to:r,text:c.map(s=>s.translations.map(p=>p.text).join(" "))}}},eg=u0;m();var O6=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],eu=new Map(O6),o0=class extends be{isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:3,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t,u;if(n.length===0)return{from:a,to:r,text:[]};let o=` +`))}return{text:f,from:p[0]&&_6.get(p[0].detected_source_language)||n,to:a}}},Xm=t0;g();var B6=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],n0=new Map(B6),a0=class extends be{static langMap=n0;APIKEY="";isSupportList=!1;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:a,to:r}=t,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:2,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:n,from:n0.get(a)||a,to:n0.get(r)||r,apikey:this.APIKEY})},i=await se(o);if(i.tgt_text){let l=i.tgt_text;return l.endsWith(` +`)&&(l=l.slice(0,-1)),{text:l,from:a,to:r}}else throw new Error(JSON.stringify(i))}},eg=a0;g();var R6=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],r0=new Map(R6),u0=class extends be{static langMap=r0;APIKEY="";region="eastasia";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region)}async translateList(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:[]};let u={"api-version":"3.0",to:r0.get(r)||r};a!=="auto"&&(u.from=r0.get(a)||a);let o=new URLSearchParams(u),i=JSON.stringify(n.map(s=>({text:s}))),l={url:"https://api.cognitive.microsofttranslator.com/translate?"+o.toString(),retry:2,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:i},c=await se(l);if(c.length===0)throw new Error("server response invalid");return{from:a,to:r,text:c.map(s=>s.translations.map(p=>p.text).join(" "))}}},tg=u0;g();var O6=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],eu=new Map(O6),o0=class extends be{isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:3,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t,u;if(n.length===0)return{from:a,to:r,text:[]};let o=`
-`,i=n.join(o),l={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:2,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:""};a==="auto"||!eu.get(a)?(u=(await se({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:i})).langCode,l.body=JSON.stringify({text:i,source:u||eu.get(a)||a,target:eu.get(r)||r})):l.body=JSON.stringify({text:i,source:eu.get(a),target:eu.get(r)||r});let c=await se(l);if(c.translatedText==="")throw new Error("server response invalid");let s=c.translatedText.split("
").map(g=>g.trim());return{from:a,to:r,text:s}}},tg=o0;m();var I6=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],tu=new Map(I6),i0=class extends be{static langMap=tu;provider="custom";APIKEY="";apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;systemPrompt="You are a professional translation engine, please translate the text into a colloquial, professional, elegant and fluent content, without the style of machine translation. You must only translate the text content, never interpret it.";prompt=`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +`,i=n.join(o),l={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:2,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:""};a==="auto"||!eu.get(a)?(u=(await se({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:i})).langCode,l.body=JSON.stringify({text:i,source:u||eu.get(a)||a,target:eu.get(r)||r})):l.body=JSON.stringify({text:i,source:eu.get(a),target:eu.get(r)||r});let c=await se(l);if(c.translatedText==="")throw new Error("server response invalid");let s=c.translatedText.split("
").map(m=>m.trim());return{from:a,to:r,text:s}}},ng=o0;g();var I6=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],Mo=new Map(I6),i0=class extends be{static langMap=Mo;provider="custom";APIKEY="";apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;systemPrompt="You are a professional translation engine, please translate the text into a colloquial, professional, elegant and fluent content, without the style of machine translation. You must only translate the text content, never interpret it.";prompt=`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`;model="gpt-3.5-turbo-0613";apiUrl="https://api.openai.com/v1/chat/completions";immersiveApiUrl="https://openai-api.immersivetranslate.com/v1/chat/completions";immersiveProApiUrl=Mn()||Fn()?"https://api2.immersivetranslate.com/openai/v1/chat/completions":"https://test-api2.immersivetranslate.com/openai/v1/chat/completions";splitor="
";constructor(t,n,a){if(super(t,n,a),t||(t={}),t.provider&&(this.provider=t.provider),t.APIKEY&&(this.APIKEY=t.APIKEY?.trim(),this.apiKeys=this.APIKEY.split(",").map(r=>r.trim())),this.provider==="pro"){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");if(this.APIKEY=a.userToken||"",this.apiKeys=this.APIKEY.split(",").map(r=>r.trim()),!this.APIKEY)throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002")}t.prompt&&(this.prompt=t.prompt),t.model&&(this.model=t.model),t&&t.apiUrl&&(this.apiUrl=jt(this.apiUrl,t.apiUrl)),t&&t.immersiveApiUrl&&(this.immersiveApiUrl=jt(this.immersiveApiUrl,t.immersiveApiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=jt(this.immersiveProApiUrl,t.immersiveProApiUrl)),t&&t.systemPrompt&&(this.systemPrompt=t.systemPrompt)}getDefaultRateLimit(){return{limit:10,interval:1300}}translate(t){return this.model.includes("003")?(this.maxTextGroupLength=1,this.translate3(t)):this.translate3_5(t)}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate3_5(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let u=tu.get(a)||a,o=tu.get(r)||r,i=this.prompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u),l=[];if(this.systemPrompt){let p=this.systemPrompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u);l.push({role:"system",content:p})}this.prompt&&l.push({role:"user",content:i}),this.prompt.indexOf("{{text}}")===-1&&l.push({role:"user",content:n});let c={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:this.model,temperature:0,messages:l})},s=this.getRandomKey();this.provider==="pro"?(c.url=this.immersiveProApiUrl,c.headers.token=s):s&&(c.headers.Authorization="Bearer "+s,c.headers["api-key"]=s,s.startsWith("immersiveopenai_")&&(c.url=this.immersiveProApiUrl,c.headers.token=s,s.endsWith("x")||(c.headers["Immersive-Corpus-Campagin"]="yes"),delete c.headers.Authorization,delete c.headers["api-key"]));let g=await se(c);if(g&&g.choices&&g.choices.length>0&&g.choices[0].message&&g.choices[0].message.content){let p=g.choices[0].message.content.trim();return(p.includes("\u62B1\u6B49")&&p.includes("\u7FFB\u8BD1")||p.includes("\u8BF7\u5C06\u6587\u672C\u7FFB\u8BD1\u6210")||p.includes("\u4E0D\u8981\u89E3\u91CA\u4EFB\u4F55"))&&(p=n),!n.includes(".")&&(p.endsWith("\u3002")||p.endsWith("."))&&(p=p.slice(0,-1)),{from:a,to:r,text:p}}else throw new Error("server response invalid: "+JSON.stringify(g))}async translate3(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let u=this.prompt.replace(/{{to}}/g,tu.get(r)||r).replace(/{{text}}/g,n).replace(/{{from}}/g,tu.get(a)||a),o={url:"https://api.openai.com/v1/completions",method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.APIKEY},body:JSON.stringify({model:this.model,prompt:u,temperature:0})},i=await se(o);if(i&&i.choices&&i.choices.length>0&&i.choices[0].text){let l=i.choices[0].text.trim();return{from:a,to:r,text:l}}else throw new Error("server response invalid: "+JSON.stringify(i))}},ng=i0;m();var N6=[["auto","auto"],["zh-CN","zh-Hans"],["zh-TW","zh-Hant"],["en","en"],["yue","\u7CA4\u8BED"],["wyw","\u53E4\u6587"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["de","de"],["es","es"],["it","it"],["ru","ru"],["pt","pt"],["nl","nl"],["pl","pl"],["ar","ar"],["af","af"],["am","am"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["el","el"],["eo","eo"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ku","ku"],["ky","ky"],["la","lo"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["no","no"],["ny","ny"],["pa","pa"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["sr-Cyrl","sr"],["sr-Latn","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],Fo=new Map(N6),s0="chatgptWebAccessToken";async function ag(){let e=await Br(s0);if(e)return e;let t=await se({url:"https://chat.openai.com/api/auth/session",method:"get",responseType:"json"});if(!t.accessToken)throw new Error("UNAUTHORIZED");return await Rr(s0,t.accessToken,10*60*1e3),t.accessToken}var l0=class e{static instance;constructor(){return e.instance||(e.instance=this),this}#e=Promise.resolve();enqueue(t){return this.#e=this.#e.then(()=>t()),this.#e}},c0=new l0;Object.freeze(c0);var nu=class extends be{accessToken="";customChatGptWebApiUrl="https://chat.openai.com";customChatGptWebApiPath="/backend-api/conversation";maxTextGroupLength=1;maxTextLength=1200;isStream=!1;isSupportList=!1;prompt=`You are a translation engine, you can only translate text and cannot interpret it, and do not explain.Translate the text below to {{to}}: +{{text}}`;model="gpt-3.5-turbo-0613";apiUrl="https://api.openai.com/v1/chat/completions";immersiveApiUrl="https://openai-api.immersivetranslate.com/v1/chat/completions";immersiveProApiUrl=Mn()||Fn()?"https://api2.immersivetranslate.com/openai/v1/chat/completions":"https://test-api2.immersivetranslate.com/openai/v1/chat/completions";splitor="
";constructor(t,n,a){if(super(t,n,a),t||(t={}),t.provider&&(this.provider=t.provider),t.APIKEY&&(this.APIKEY=t.APIKEY?.trim(),this.apiKeys=this.APIKEY.split(",").map(r=>r.trim())),this.provider==="pro"){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");if(this.APIKEY=a.userToken||"",this.apiKeys=this.APIKEY.split(",").map(r=>r.trim()),!this.APIKEY)throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002")}t.prompt&&(this.prompt=t.prompt),t.model&&(this.model=t.model),t&&t.apiUrl&&(this.apiUrl=Ut(this.apiUrl,t.apiUrl)),t&&t.immersiveApiUrl&&(this.immersiveApiUrl=Ut(this.immersiveApiUrl,t.immersiveApiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=Ut(this.immersiveProApiUrl,t.immersiveProApiUrl)),t&&t.systemPrompt&&(this.systemPrompt=t.systemPrompt)}getDefaultRateLimit(){return{limit:10,interval:1300}}translate(t){return this.model.includes("003")||this.model.includes("gpt-3.5-turbo-instruct")?(this.maxTextGroupLength=1,this.translate3(t)):this.translate3_5(t)}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate3_5(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let u=Mo.get(a)||a,o=Mo.get(r)||r,i=this.prompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u),l=[];if(this.systemPrompt){let p=this.systemPrompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u);l.push({role:"system",content:p})}this.prompt&&l.push({role:"user",content:i}),this.prompt.indexOf("{{text}}")===-1&&l.push({role:"user",content:n});let c={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:this.model,temperature:0,messages:l})},s=this.getRandomKey();this.provider==="pro"?(c.url=this.immersiveProApiUrl,c.headers.token=s):s&&(c.headers.Authorization="Bearer "+s,c.headers["api-key"]=s,s.startsWith("immersiveopenai_")&&(c.url=this.immersiveProApiUrl,c.headers.token=s,s.endsWith("x")||(c.headers["Immersive-Corpus-Campagin"]="yes"),delete c.headers.Authorization,delete c.headers["api-key"]));let m=await se(c);if(m&&m.choices&&m.choices.length>0&&m.choices[0].message&&m.choices[0].message.content){let p=m.choices[0].message.content.trim();return(p.includes("\u62B1\u6B49")&&p.includes("\u7FFB\u8BD1")||p.includes("\u8BF7\u5C06\u6587\u672C\u7FFB\u8BD1\u6210")||p.includes("\u4E0D\u8981\u89E3\u91CA\u4EFB\u4F55"))&&(p=n),!n.includes(".")&&(p.endsWith("\u3002")||p.endsWith("."))&&(p=p.slice(0,-1)),{from:a,to:r,text:p}}else throw new Error("server response invalid: "+JSON.stringify(m))}async translate3(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let u=`Translate to ${Mo.get(r)||r}: -{{text}}`;constructor(t,n,a){super(t,n,a)}throttleDebounce(t,n,a){let r=0,u;return(...o)=>{let i=Date.now(),l=this,c=()=>{r=i,t.apply(l,o)};i-r>=n?(clearTimeout(u),c()):(clearTimeout(u),u=setTimeout(()=>{c()},a))}}async deleteConversation(t){if(t){let n=await se({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}/${t}`,method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({is_visible:!1})});return H.debug("delete conversation res:",n),n}}async translate(t){return await c0.enqueue(async()=>{let{text:n,from:a,to:r}=t;if(n.length===0)return Promise.resolve({from:a,to:r,text:""});let u=Fo.get(a)||a,o=Fo.get(r)||r;if(this.accessToken=await ag(),!this.accessToken||this.accessToken==="")throw new Error("token error");let i="text-davinci-002-render-sha-mobile";if(!i)throw new Error("No available model");let l=this.prompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u);try{let c=await se({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"stream",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:bn(),role:"user",content:{content_type:"text",parts:[l]}}],model:i,parent_message_id:bn()})});return H.debug("get chatgpt res:",c),await this.deleteConversation(c?.conversation_id),Promise.resolve({from:a,to:r,text:c?.message?.content?.parts?.[0]})}catch(c){throw H.debug("post chatgpt error:",c),await Or(s0),c}})}async translateStream(t,n){let{text:a,from:r,to:u}=t;if(a.length===0){n(null,{from:r,to:u,text:""});return}let o=this.throttleDebounce(function(i){let{from:l,to:c,text:s}=i;n(null,{from:l,to:c,text:s})},300,200);await c0.enqueue(async()=>{let i="chatgpt"+bn(),l=ee.runtime.connect({name:i}),c,s;l.onMessage.addListener(b=>{if(!(!b||b==="")){if(b==="[DONE]"){l.disconnect(),this.deleteConversation(c);return}try{s=JSON.parse(b)}catch(C){H.debug("chatgpt json error",C,b);return}c=s?.conversation_id,s?.message?.author?.role==="assistant"&&o({from:r,to:u,text:s?.message?.content?.parts?.[0]})}});let g=Fo.get(r)||r,p=Fo.get(u)||u;if(this.accessToken=await ag(),!this.accessToken||this.accessToken==="")throw new Error("token error");let f="text-davinci-002-render-sha";if(!f)throw new Error("No available model");let d=this.prompt.replace(/{{to}}/g,p).replace(/{{text}}/g,a).replace(/{{from}}/g,g);se({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"realStream",extra:{portName:i},headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:bn(),role:"user",content:{content_type:"text",parts:[d]}}],model:f,parent_message_id:bn()})}).catch(b=>{H.debug("chatgpt error",b),l.disconnect(),this.deleteConversation(c),n(b,{from:r,to:u,text:""})})})}};m();var og=xf(rg()),ug=[["af","af"],["am","am"],["ar","ar"],["auto","auto"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fil","fil"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["mww","mww"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["otq","otq"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["tn","tn"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tlh","tlh"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["yua","yua"],["yue","yue"],["bo","bo"],["sa","sa"],["zh-CN","zh"],["zh-TW","zh-tw"],["zu","zu"]],ru=class e extends be{static langMap=new Map(ug);static langMapReverse=new Map(ug.map(([t,n])=>[n,t]));static SHA1=new og.default.SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,a){if(super(t,n,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new Error("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:a,to:r}=t,u={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:n,TargetLanguage:e.langMap.get(r)||r},o=this.scene=="general"?"TranslateGeneral":"Translate",i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:u,service:"mt",version:"2018-10-12"});return{text:i.Data.Translated,from:i.Data.DetectedLanguage&&e.langMapReverse.get(i.Data.DetectedLanguage)||a||"auto",to:e.langMapReverse.get(r)||r}}async translateList(t){let{text:n,from:a,to:r}=t,u=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:JSON.stringify(n.reduce((c,s,g)=>(c[g]=s,c),{})),TargetLanguage:e.langMap.get(r)||r,ApiType:u},i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),l=i.TranslatedList.length&&i.TranslatedList[0].detectedLanguage;return{text:i.TranslatedList.sort((c,s)=>parseInt(c.index)-parseInt(s.index)).map(c=>c.translated),from:l&&e.langMapReverse.get(l)||a||"auto",to:e.langMapReverse.get(r)||r}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:u,version:o}){let i=new Date().toISOString(),l=Math.random().toString(36).slice(2),c={Action:a,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:l,Timestamp:i,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},g=(b=>{let h=Object.keys(b).sort().map(A=>`${this.encode(A)}=${this.encode(b[A])}`).join("&");return`POST&%2F&${this.encode(h)}`})(Object.assign({},c,r)),p=e.SHA1.b64_hmac(`${n}&`,g),f=new URLSearchParams(Object.assign({},c,{Signature:p})).toString(),d=await se({retry:1,url:`https://${u}.aliyuncs.com?${f}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(r).toString()});if(d instanceof Error)throw d;if(d.Code!=="200")throw new Error(d.Message);return d}};m();m();var j6=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],Xe={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},d0=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},m0=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let a=d0(t);if(a)return Array.isArray(n)?`${a}=${n.map(d0).sort().join(`&${a}=`)}`:`${a}=${d0(n)}`}).filter(t=>t).join("&"),ur=class{request;serviceName;bodySha256;constructor(t,n,a){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,a=a||{},this.bodySha256=a.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(a=>{let r=t[a];return typeof r<"u"&&r!==null}).sort().map(a=>{n[a]=t[a]}),n}async addAuthorization(t,n){let a=this.getDateTime(n);await this.addHeaders(t,a),this.request.headers.Authorization=await this.authorization(t,a)}async authorization(t,n){let a=[],r=this.credentialString(n);return a.push(`${Xe.algorithm} Credential=${t.accessKeyId}/${r}`),a.push(`SignedHeaders=${this.signedHeaders()}`),a.push(`Signature=${await this.signature(t,n)}`),a.join(", ")}async getSignUrl(t,n){let a=this.getDateTime(n),r={...this.request.params},u=this.request.params,o=this.request.headers;t.sessionToken&&(r[Xe.tokenHeader]=t.sessionToken),r[Xe.dateHeader]=a,r[Xe.notSignBody]="",r[Xe.credential]=`${t.accessKeyId}/${this.credentialString(a)}`,r[Xe.algorithmKey]=Xe.algorithm,r[Xe.signHeadersKey]="",r[Xe.signQueriesKey]=void 0,r[Xe.signatureKey]=void 0,r=this.sortParams(r),this.request.params=r,this.request.headers={};let i=await this.signature(t,a);return this.request.params=u,this.request.headers=o,r[Xe.signQueriesKey]=Object.keys(r).sort().join(";"),r[Xe.signatureKey]=i,m0(r)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[Xe.dateHeader]=n,t.sessionToken&&(this.request.headers[Xe.tokenHeader]=t.sessionToken),this.request.body){let a=this.request.body;this.request.headers[Xe.contentSha256Header]=await fn(a)}}async signature(t,n){let a=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return so(await Xn(await this.stringToSign(n),a))}async stringToSign(t){let n=[];n.push(Xe.algorithm),n.push(t),n.push(this.credentialString(t));let a=await this.canonicalString();return n.push(await this.hexEncodedHash(a)),n.join(` +${n} =>`,o=this.getRandomKey(),i={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.APIKEY}},l={model:this.model,prompt:u,temperature:0};this.provider==="pro"?(i.url=this.immersiveProApiUrl,i.headers.token=o):o&&(i.headers.Authorization="Bearer "+o,i.headers["api-key"]=o,o.startsWith("immersiveopenai_")&&(i.url=this.immersiveProApiUrl,i.headers.token=o,o.endsWith("x")||(i.headers["Immersive-Corpus-Campagin"]="yes"),delete i.headers.Authorization,delete i.headers["api-key"])),i.url=i.url.replace("/chat/","/");let c=2048,s=u.length*2.2;s0&&m.choices[0].text){let p=m.choices[0].text.trim();return{from:a,to:r,text:p}}else throw new Error("server response invalid: "+JSON.stringify(m))}},ag=i0;g();var N6=[["auto","auto"],["zh-CN","zh-Hans"],["zh-TW","zh-Hant"],["en","en"],["yue","\u7CA4\u8BED"],["wyw","\u53E4\u6587"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["de","de"],["es","es"],["it","it"],["ru","ru"],["pt","pt"],["nl","nl"],["pl","pl"],["ar","ar"],["af","af"],["am","am"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["el","el"],["eo","eo"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ku","ku"],["ky","ky"],["la","lo"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["no","no"],["ny","ny"],["pa","pa"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["sr-Cyrl","sr"],["sr-Latn","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],Fo=new Map(N6),s0="chatgptWebAccessToken";async function rg(){let e=await Br(s0);if(e)return e;let t=await se({url:"https://chat.openai.com/api/auth/session",method:"get",responseType:"json"});if(!t.accessToken)throw new Error("UNAUTHORIZED");return await Rr(s0,t.accessToken,10*60*1e3),t.accessToken}var l0=class e{static instance;constructor(){return e.instance||(e.instance=this),this}#e=Promise.resolve();enqueue(t){return this.#e=this.#e.then(()=>t()),this.#e}},c0=new l0;Object.freeze(c0);var tu=class extends be{accessToken="";customChatGptWebApiUrl="https://chat.openai.com";customChatGptWebApiPath="/backend-api/conversation";maxTextGroupLength=1;maxTextLength=1200;isStream=!1;isSupportList=!1;prompt=`You are a translation engine, you can only translate text and cannot interpret it, and do not explain.Translate the text below to {{to}}: + +{{text}}`;constructor(t,n,a){super(t,n,a)}throttleDebounce(t,n,a){let r=0,u;return(...o)=>{let i=Date.now(),l=this,c=()=>{r=i,t.apply(l,o)};i-r>=n?(clearTimeout(u),c()):(clearTimeout(u),u=setTimeout(()=>{c()},a))}}async deleteConversation(t){if(t){let n=await se({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}/${t}`,method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({is_visible:!1})});return H.debug("delete conversation res:",n),n}}async translate(t){return await c0.enqueue(async()=>{let{text:n,from:a,to:r}=t;if(n.length===0)return Promise.resolve({from:a,to:r,text:""});let u=Fo.get(a)||a,o=Fo.get(r)||r;if(this.accessToken=await rg(),!this.accessToken||this.accessToken==="")throw new Error("token error");let i="text-davinci-002-render-sha-mobile";if(!i)throw new Error("No available model");let l=this.prompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u);try{let c=await se({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"stream",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:bn(),role:"user",content:{content_type:"text",parts:[l]}}],model:i,parent_message_id:bn()})});return H.debug("get chatgpt res:",c),await this.deleteConversation(c?.conversation_id),Promise.resolve({from:a,to:r,text:c?.message?.content?.parts?.[0]})}catch(c){throw H.debug("post chatgpt error:",c),await Or(s0),c}})}async translateStream(t,n){let{text:a,from:r,to:u}=t;if(a.length===0){n(null,{from:r,to:u,text:""});return}let o=this.throttleDebounce(function(i){let{from:l,to:c,text:s}=i;n(null,{from:l,to:c,text:s})},300,200);await c0.enqueue(async()=>{let i="chatgpt"+bn(),l=ee.runtime.connect({name:i}),c,s;l.onMessage.addListener(b=>{if(!(!b||b==="")){if(b==="[DONE]"){l.disconnect(),this.deleteConversation(c);return}try{s=JSON.parse(b)}catch(C){H.debug("chatgpt json error",C,b);return}c=s?.conversation_id,s?.message?.author?.role==="assistant"&&o({from:r,to:u,text:s?.message?.content?.parts?.[0]})}});let m=Fo.get(r)||r,p=Fo.get(u)||u;if(this.accessToken=await rg(),!this.accessToken||this.accessToken==="")throw new Error("token error");let f="text-davinci-002-render-sha";if(!f)throw new Error("No available model");let d=this.prompt.replace(/{{to}}/g,p).replace(/{{text}}/g,a).replace(/{{from}}/g,m);se({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"realStream",extra:{portName:i},headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:bn(),role:"user",content:{content_type:"text",parts:[d]}}],model:f,parent_message_id:bn()})}).catch(b=>{H.debug("chatgpt error",b),l.disconnect(),this.deleteConversation(c),n(b,{from:r,to:u,text:""})})})}};g();var ig=Ef(ug()),og=[["af","af"],["am","am"],["ar","ar"],["auto","auto"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fil","fil"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["mww","mww"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["otq","otq"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["tn","tn"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tlh","tlh"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["yua","yua"],["yue","yue"],["bo","bo"],["sa","sa"],["zh-CN","zh"],["zh-TW","zh-tw"],["zu","zu"]],au=class e extends be{static langMap=new Map(og);static langMapReverse=new Map(og.map(([t,n])=>[n,t]));static SHA1=new ig.default.SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,a){if(super(t,n,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new Error("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:a,to:r}=t,u={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:n,TargetLanguage:e.langMap.get(r)||r},o=this.scene=="general"?"TranslateGeneral":"Translate",i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:u,service:"mt",version:"2018-10-12"});return{text:i.Data.Translated,from:i.Data.DetectedLanguage&&e.langMapReverse.get(i.Data.DetectedLanguage)||a||"auto",to:e.langMapReverse.get(r)||r}}async translateList(t){let{text:n,from:a,to:r}=t,u=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:JSON.stringify(n.reduce((c,s,m)=>(c[m]=s,c),{})),TargetLanguage:e.langMap.get(r)||r,ApiType:u},i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),l=i.TranslatedList.length&&i.TranslatedList[0].detectedLanguage;return{text:i.TranslatedList.sort((c,s)=>parseInt(c.index)-parseInt(s.index)).map(c=>c.translated),from:l&&e.langMapReverse.get(l)||a||"auto",to:e.langMapReverse.get(r)||r}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:u,version:o}){let i=new Date().toISOString(),l=Math.random().toString(36).slice(2),c={Action:a,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:l,Timestamp:i,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},m=(b=>{let h=Object.keys(b).sort().map(A=>`${this.encode(A)}=${this.encode(b[A])}`).join("&");return`POST&%2F&${this.encode(h)}`})(Object.assign({},c,r)),p=e.SHA1.b64_hmac(`${n}&`,m),f=new URLSearchParams(Object.assign({},c,{Signature:p})).toString(),d=await se({retry:1,url:`https://${u}.aliyuncs.com?${f}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(r).toString()});if(d instanceof Error)throw d;if(d.Code!=="200")throw new Error(d.Message);return d}};g();g();var j6=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],Xe={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},d0=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},m0=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let a=d0(t);if(a)return Array.isArray(n)?`${a}=${n.map(d0).sort().join(`&${a}=`)}`:`${a}=${d0(n)}`}).filter(t=>t).join("&"),ur=class{request;serviceName;bodySha256;constructor(t,n,a){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,a=a||{},this.bodySha256=a.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(a=>{let r=t[a];return typeof r<"u"&&r!==null}).sort().map(a=>{n[a]=t[a]}),n}async addAuthorization(t,n){let a=this.getDateTime(n);await this.addHeaders(t,a),this.request.headers.Authorization=await this.authorization(t,a)}async authorization(t,n){let a=[],r=this.credentialString(n);return a.push(`${Xe.algorithm} Credential=${t.accessKeyId}/${r}`),a.push(`SignedHeaders=${this.signedHeaders()}`),a.push(`Signature=${await this.signature(t,n)}`),a.join(", ")}async getSignUrl(t,n){let a=this.getDateTime(n),r={...this.request.params},u=this.request.params,o=this.request.headers;t.sessionToken&&(r[Xe.tokenHeader]=t.sessionToken),r[Xe.dateHeader]=a,r[Xe.notSignBody]="",r[Xe.credential]=`${t.accessKeyId}/${this.credentialString(a)}`,r[Xe.algorithmKey]=Xe.algorithm,r[Xe.signHeadersKey]="",r[Xe.signQueriesKey]=void 0,r[Xe.signatureKey]=void 0,r=this.sortParams(r),this.request.params=r,this.request.headers={};let i=await this.signature(t,a);return this.request.params=u,this.request.headers=o,r[Xe.signQueriesKey]=Object.keys(r).sort().join(";"),r[Xe.signatureKey]=i,m0(r)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[Xe.dateHeader]=n,t.sessionToken&&(this.request.headers[Xe.tokenHeader]=t.sessionToken),this.request.body){let a=this.request.body;this.request.headers[Xe.contentSha256Header]=await fn(a)}}async signature(t,n){let a=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return io(await Xn(await this.stringToSign(n),a))}async stringToSign(t){let n=[];n.push(Xe.algorithm),n.push(t),n.push(this.credentialString(t));let a=await this.canonicalString();return n.push(await this.hexEncodedHash(a)),n.join(` `)}async canonicalString(){let t=[],n=this.request.pathname||"/";t.push(this.request.method.toUpperCase()),t.push(n);let a=m0(this.request.params)||"";return t.push(a),t.push(`${this.canonicalHeaders()} `),t.push(this.signedHeaders()),t.push(await this.hexEncodedBodyHash()),t.join(` `)}canonicalHeaders(){let t=[];Object.keys(this.request.headers).forEach(a=>{t.push([a,this.request.headers[a]])}),t.sort((a,r)=>a[0].toLowerCase(){let r=a[0].toLowerCase();if(this.isSignableHeader(r)){let u=a[1];if(typeof u>"u"||u===null||typeof u.toString!="function")throw new Error(`Header ${r} contains invalid value`);n.push(`${r}:${this.canonicalHeaderValues(u.toString())}`)}}),n.join(` -`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await fn(t)}async hexEncodedBodyHash(){return this.request.headers[Xe.contentSha256Header]?this.request.headers[Xe.contentSha256Header]:this.request.body?await this.hexEncodedHash(m0(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return j6.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,a,r){let u=await Xn(n,`${Xe.kDatePrefix}${t.secretKey}`),o=await Xn(a,u),i=await Xn(r,o);return Xn(Xe.v4Identifier,i)}createScope(t,n,a){return[t.substr(0,8),n,a,Xe.v4Identifier].join("/")}};var ig=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],g0=new Map(ig),U6=new Map(ig.map(([e,t])=>[t,e])),p0=class extends be{static langMap=g0;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,a){if(super(t,n,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new Error("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let a={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},r=new ur(a,"translate");await r.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let u=new URLSearchParams(a.params),o=await se({retry:2,url:"https://open.volcengineapi.com"+a.pathname+"?"+u.toString(),headers:r.request.headers,method:a.method,body:a.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let i=o.ResponseMetadata.Error;throw new ut(i.Code,i.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let i=o.ResponseMetaData.Error;throw new ut(i.Code,i.Message)}else throw new Error("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:a,to:r}=t,u=g0.get(a),o={TargetLanguage:g0.get(r)||r,TextList:n};u?o.SourceLanguage=u:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` -`).slice(0,1e3));let i={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},l=new ur(i,"translate");await l.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let c=new URLSearchParams(i.params),s=await se({retry:2,url:"https://open.volcengineapi.com"+i.pathname+"?"+c.toString(),headers:l.request.headers,method:i.method,body:i.body});if(s.TranslationList){let g=s.TranslationList.map(f=>f.Translation),p=a;return s.TranslationList.length>0&&s.TranslationList[0].DetectedSourceLanguage&&(p=U6.get(s.TranslationList[0].DetectedSourceLanguage)||a),{text:g,from:p,to:r}}else if(s.ResponseMetadata&&s.ResponseMetadata.Error){let g=s.ResponseMetadata.Error;throw new ut(g.Code,g.Message)}else if(s.ResponseMetaData&&s.ResponseMetaData.Error){let g=s.ResponseMetaData.Error;throw new ut(g.Code,g.Message)}else throw new Error("response: "+JSON.stringify(s))}},sg=p0;m();var lg=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],f0=new Map(lg),z6=new Map(lg.map(([e,t])=>[t,e])),uu=class extends be{static langMap=f0;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:a,to:r}=t,u=f0.get(a)||"detect",o=f0.get(r)||r,l=await se({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:u,target_language:o,text:n})});if(l.base_resp&&l.base_resp.status_code===0){let c=l.translation,s=a;return l.detected_language&&(s=z6.get(l.detected_language)||a),{text:c,from:s,to:r}}else{let c=l.base_resp;throw new ut(c.status_code.toString(),c.status_message)}}};m();var H6=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],h0=new Map(H6),ou=class extends be{static langMap=h0;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,a){if(super(t,n,a),!t||!t.url)throw new Error("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(r=>r.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:a,to:r}=t,u=this.getRandomKey(),i=await se({retry:2,url:u,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({source_lang:h0.get(a)||a,target_lang:h0.get(r)||r,text:n})});if(i.code===200)return{text:i.data,from:a,to:r};throw new Error(i.message||i.message||"API Error")}};m();m();var b0="https://{s}bing.com",pg=b0+"/translator",q6=b0+"/ttranslatev3",W6=b0+"/tspellcheckv3",Bo="bingGlobalConfig",fg=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],cg=new Map(fg),dg=new Map(fg.map(([e,t])=>[t,e])),mg=1e3,yn,or;function y0(e,t){return e.replace("{s}",t?t+".":"")}async function $6(){if(!yn){let n=await ee.storage.local.get(Bo);return n&&(yn=n[Bo]),!0}let{tokenTs:e,tokenExpiryInterval:t}=yn;return Date.now()-e>t}async function gg(){let e,t,n,a,r,u,o,i,l,c;try{let s=y0(pg,e),g=await se({retry:2,url:s,responseType:"raw"}),{body:p,headers:f,url:d}=g;e=d.match(/^https?:\/\/(\w+)\.bing\.com/)[1],c=f["set-cookie"],t=p.match(/IG:"([^"]+)"/)[1],n=p.match(/data-iid="([^"]+)"/)[1],[r,a,u,o,i,l]=JSON.parse(p.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(s){throw s}return yn={subdomain:e,IG:t,IID:n,key:r,token:a,tokenTs:r,tokenExpiryInterval:u,isVertical:o,frontDoorBotClassification:i,isSignedInOrCorporateUser:l,cookie:c,count:0},await ee.storage.local.set({[Bo]:yn}),yn}function K6(e){let{IG:t,IID:n,subdomain:a,isVertical:r}=yn;return y0(e?W6:q6,a)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+yn.count++:"")}function G6(e,t,n,a){let{token:r,key:u}=yn,o={fromLang:n,text:t,token:r,key:u};return!e&&a&&(o.to=a),o}async function hg(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>mg)throw new Error(`The supported maximum length of text is ${mg}. Please shorten the text.`);or||(or=gg()),await or,await $6()&&(or=gg(),await or),t=t||"auto",n=n||"zh-CN",t=cg.get(t)||t,n=cg.get(n)||n;let r=K6(!1),u=G6(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:y0(pg,yn.subdomain),"content-type":"application/x-www-form-urlencoded"},i=new URLSearchParams(u),l=r,c=i.toString(),s=await se({retry:2,url:l,headers:o,method:"POST",body:c});if(s.ShowCaptcha||s.StatusCode===401||s.statusCode){if(yn=null,or=null,await ee.storage.local.remove(Bo),s.ShowCaptcha)throw new Error(` +`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await fn(t)}async hexEncodedBodyHash(){return this.request.headers[Xe.contentSha256Header]?this.request.headers[Xe.contentSha256Header]:this.request.body?await this.hexEncodedHash(m0(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return j6.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,a,r){let u=await Xn(n,`${Xe.kDatePrefix}${t.secretKey}`),o=await Xn(a,u),i=await Xn(r,o);return Xn(Xe.v4Identifier,i)}createScope(t,n,a){return[t.substr(0,8),n,a,Xe.v4Identifier].join("/")}};var sg=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],g0=new Map(sg),U6=new Map(sg.map(([e,t])=>[t,e])),p0=class extends be{static langMap=g0;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,a){if(super(t,n,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new Error("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let a={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},r=new ur(a,"translate");await r.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let u=new URLSearchParams(a.params),o=await se({retry:2,url:"https://open.volcengineapi.com"+a.pathname+"?"+u.toString(),headers:r.request.headers,method:a.method,body:a.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let i=o.ResponseMetadata.Error;throw new ut(i.Code,i.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let i=o.ResponseMetaData.Error;throw new ut(i.Code,i.Message)}else throw new Error("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:a,to:r}=t,u=g0.get(a),o={TargetLanguage:g0.get(r)||r,TextList:n};u?o.SourceLanguage=u:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` +`).slice(0,1e3));let i={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},l=new ur(i,"translate");await l.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let c=new URLSearchParams(i.params),s=await se({retry:2,url:"https://open.volcengineapi.com"+i.pathname+"?"+c.toString(),headers:l.request.headers,method:i.method,body:i.body});if(s.TranslationList){let m=s.TranslationList.map(f=>f.Translation),p=a;return s.TranslationList.length>0&&s.TranslationList[0].DetectedSourceLanguage&&(p=U6.get(s.TranslationList[0].DetectedSourceLanguage)||a),{text:m,from:p,to:r}}else if(s.ResponseMetadata&&s.ResponseMetadata.Error){let m=s.ResponseMetadata.Error;throw new ut(m.Code,m.Message)}else if(s.ResponseMetaData&&s.ResponseMetaData.Error){let m=s.ResponseMetaData.Error;throw new ut(m.Code,m.Message)}else throw new Error("response: "+JSON.stringify(s))}},lg=p0;g();var cg=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],f0=new Map(cg),z6=new Map(cg.map(([e,t])=>[t,e])),ru=class extends be{static langMap=f0;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:a,to:r}=t,u=f0.get(a)||"detect",o=f0.get(r)||r,l=await se({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:u,target_language:o,text:n})});if(l.base_resp&&l.base_resp.status_code===0){let c=l.translation,s=a;return l.detected_language&&(s=z6.get(l.detected_language)||a),{text:c,from:s,to:r}}else{let c=l.base_resp;throw new ut(c.status_code.toString(),c.status_message)}}};g();var H6=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],h0=new Map(H6),uu=class extends be{static langMap=h0;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,a){if(super(t,n,a),!t||!t.url)throw new Error("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(r=>r.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:a,to:r}=t,u=this.getRandomKey(),i=await se({retry:2,url:u,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({source_lang:h0.get(a)||a,target_lang:h0.get(r)||r,text:n})});if(i.code===200)return{text:i.data,from:a,to:r};throw new Error(i.message||i.message||"API Error")}};g();g();var b0="https://{s}bing.com",fg=b0+"/translator",q6=b0+"/ttranslatev3",W6=b0+"/tspellcheckv3",Bo="bingGlobalConfig",hg=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],dg=new Map(hg),mg=new Map(hg.map(([e,t])=>[t,e])),gg=1e3,yn,or;function y0(e,t){return e.replace("{s}",t?t+".":"")}async function $6(){if(!yn){let n=await ee.storage.local.get(Bo);return n&&(yn=n[Bo]),!0}let{tokenTs:e,tokenExpiryInterval:t}=yn;return Date.now()-e>t}async function pg(){let e,t,n,a,r,u,o,i,l,c;try{let s=y0(fg,e),m=await se({retry:2,url:s,responseType:"raw"}),{body:p,headers:f,url:d}=m;e=d.match(/^https?:\/\/(\w+)\.bing\.com/)[1],c=f["set-cookie"],t=p.match(/IG:"([^"]+)"/)[1],n=p.match(/data-iid="([^"]+)"/)[1],[r,a,u,o,i,l]=JSON.parse(p.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(s){throw s}return yn={subdomain:e,IG:t,IID:n,key:r,token:a,tokenTs:r,tokenExpiryInterval:u,isVertical:o,frontDoorBotClassification:i,isSignedInOrCorporateUser:l,cookie:c,count:0},await ee.storage.local.set({[Bo]:yn}),yn}function K6(e){let{IG:t,IID:n,subdomain:a,isVertical:r}=yn;return y0(e?W6:q6,a)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+yn.count++:"")}function G6(e,t,n,a){let{token:r,key:u}=yn,o={fromLang:n,text:t,token:r,key:u};return!e&&a&&(o.to=a),o}async function bg(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>gg)throw new Error(`The supported maximum length of text is ${gg}. Please shorten the text.`);or||(or=pg()),await or,await $6()&&(or=pg(),await or),t=t||"auto",n=n||"zh-CN",t=dg.get(t)||t,n=dg.get(n)||n;let r=K6(!1),u=G6(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:y0(fg,yn.subdomain),"content-type":"application/x-www-form-urlencoded"},i=new URLSearchParams(u),l=r,c=i.toString(),s=await se({retry:2,url:l,headers:o,method:"POST",body:c});if(s.ShowCaptcha||s.StatusCode===401||s.statusCode){if(yn=null,or=null,await ee.storage.local.remove(Bo),s.ShowCaptcha)throw new Error(` Sorry that bing translator seems to be asking for the captcha, Please take care not to request too frequently. The response code is ${s.StatusCode}. `);if(s.StatusCode===401)throw new Error(` Max count of translation exceeded. Please try it again later. The response code is 401. - `);if(s.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(s)}.`)}let g=s[0].translations[0],p=s[0].detectedLanguage;return{text:g.text,from:dg.get(p.language),to:dg.get(g.to)}}m();var Ro=new Map;async function x0(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=aa(e.body)),Ro.has(t))return Ro.get(t);let n=se(e);Ro.set(t,n);try{return await n}catch(a){throw a}finally{setTimeout(()=>{Ro.delete(t)},3e4)}}async function bg(e){return x0(e)}async function yg(e){if(tt()){let n=Po();if(n)try{return await n.ask("throttleRequest",e)}catch(a){throw H.error("can not comunicate with root frame, use strict limiter",a),a}else return x0(e)}else return x0(e)}m();function xg(e){let t=e.split(".");if(t.length<=1)throw new Error("invlaid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let a=n.replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(globalThis.atob(a).split("").map(function(i){return"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)}).join("")),u=JSON.parse(r),o=new Date(u.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}var wa=null,V6=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],E0=new Map(V6),iu=class extends be{static langMap=E0;isSupportList=!0;maxTextLength=1800;static async clearState(){wa=null,await Or(ju)}async translate(t){let{text:n,from:a,to:r}=t;return n?await hg(n,a,r):{...t}}async init(){if(!wa){wa={};let t=await Br(ju);t&&(wa=t)}await Eg(wa)}async translateList(t){let{from:n,to:a,text:r}=t,u=E0.get(n)||"auto",o=E0.get(a)||a;u==="auto"&&(u="");let i=await Eg(wa),l=[];for(let p of r)l.push({Text:p});let c=JSON.stringify(l),s=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${u}&to=${o}&api-version=3.0&includeSentenceLength=true`,g=await se({url:s,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+i.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin"},body:c,method:"POST"});if(g&&g.length>0&&g[0].translations&&g[0].translations.length>0)return{text:g.map(p=>p.translations[0]?.text||""),from:n,to:a};throw new Error("Microsoft translate error "+JSON.stringify(g))}};async function Eg(e){if(e&&e.accessToken&&e.accessTokenExpiresAt){let t=Date.now(),a=new Date(e.accessTokenExpiresAt).getTime();if(a-t>30*1e3)return e;if(a-t>3e3)return Tg().catch(r=>{H.error(r)}),e}return Tg()}async function Tg(){let e=await yg({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET"}),t=xg(e),n=t.accessTokenExpiresAt,r=new Date(n).getTime()-Date.now();return wa=t,await Rr(ju,t,r-1e3),{accessToken:e,accessTokenExpiresAt:t.accessTokenExpiresAt}}m();var Cg=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],T0=new Map(Cg),Y6=new Map(Cg.map(([e,t])=>[t,e])),C0=class extends be{static langMap=T0;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";appid="";key="";isSupportList=!1;maxTextGroupLength=20;constructor(t,n,a){if(super(t,n,a),!t||!t.appid||!t.key)throw new Error("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim()}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:a}=this,{appid:r,key:u}=this,{text:o,from:i,to:l}=t,c=new URLSearchParams({from:T0.get(i)||"auto",to:T0.get(l)||l,q:o,salt:n,appid:r,sign:aa(r+o+n+u)}),s=new URL(a);s.search=c.toString();let g=await se({url:s.toString()});if(g.error_code)throw new ut("API_SERVER_ERROR",g.error_msg);let{trans_result:p,from:f}=g,d=p.map(({dst:C})=>C);return{from:Y6.get(f)||f,to:l,text:d.join(` -`)}}},wg=C0;m();m();var va=class extends be{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,a){super(t,n,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let u=await this.checkLang(a,n);if(!u)return{text:n,from:a,to:r};a=u;let o=this.handleRequest(n,a,r),i=await yo(o);return{text:this.handleResponseText(i),from:a,to:r}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let u=await this.checkLang(a,n.join(" "));if(!u)return{text:n,from:a,to:r};a=u;let o=this.handleRequest(n,a,r),i=await yo(o);return{text:this.handleResponseText(i),from:a,to:r}}handleBaseApiServiceConfig(t){let n=t.request.url,a=t.request.headers||{};return a["content-type"]||(a["content-type"]="application/json"),{url:n,retry:t.request.retry||2,method:t.request.method||"POST",headers:a,body:JSON.stringify(t.request.body)}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,a){let r={...this.requestBaseConfig},u=r?.body||"",o=this.apiServiceConfig.keywords||{};r.body=l(u);let i=r.headers||{};return Object.keys(i).forEach(c=>{i[c]=l(i[c])}),r.headers=i,r.url=l(r.url||""),r;function l(c){return c.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",a).replaceAll(/{([a-z:_]+)}/gi,(g,p)=>{let[f,d]=p.split(":"),b=o[f];return d==="random"?J6(b.split(",")):b})}}handleResponseText(t){let n=this.apiServiceConfig.response,a=t,r=n.text.split(".");for(let u of r){if(Array.isArray(a))return a=a.map(o=>o[u]),a;a=a[u]}return a}detectLanguageRemotely(t){return Ca.detectLanguageRemotelyByTransmart(t)}};function J6(e){let t=Math.floor(Math.random()*e.length);return e[t]}var w0=class extends va{constructor(t,n,a){if(!t?.token)throw new Error("token are required");super({...t,isSupportList:!0,langs:[["zh-CN","zh"],["en","en"],["ja","ja"]],keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,a)}},vg=w0;m();var Q6=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],Oo=new Map(Q6),v0=class extends be{static langMap=Oo;token="ssdj273ksdiwi923bsd9";constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t;if(!Oo.get(r))throw new Error(`Unsupported language: ${r}`);if(a==="auto")throw new Error("Unsupported language: auto");let o=n;return{text:(await se({retry:2,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${Oo.get(a)||"auto"}2${Oo.get(r)}`})})).target,from:a,to:r}}},Ag=v0;m();var kg=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],A0=new Map(kg),Z6=new Map(kg.map(([e,t])=>[t,e]));function X6(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var k0=class extends be{static langMap=A0;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,a){if(super(t,n,a),!t||!t.appId||!t.appSecret)throw new Error("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,u=e9(32),o=Math.round(new Date().getTime()/1e3),i=this.appId+X6(n)+u+o+this.appSecret,l=await fn(i),c={q:n,appKey:this.appId,salt:u.toString(),from:A0.get(a)||"auto",to:A0.get(r)||r,sign:l,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(c.domain=this.domain),this.vocabId&&(c.vocabId=this.vocabId);let s=new URLSearchParams(c),p=await se({url:"https://openapi.youdao.com/api",method:"POST",body:s.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"}});if(!p.translation)throw new Error(JSON.stringify(p));let f=p.l,[d,b]=f.split("2");return{text:p.translation.join(` -`),from:Z6.get(d),to:r}}};function e9(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r[t,e]));var D0=class extends be{static langMap=S0;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,u={q:n,from:S0.get(a)||"auto",to:S0.get(r)||r},o=new URLSearchParams(u),i=await se({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"}});if(i&&i.translation)return{text:i.translation.join(` -`),from:a,to:r};throw new Error("Youdao translation failed: "+JSON.stringify(i))}},Lg=D0;m();var su=class extends va{constructor(t,n,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(r=>[r,r]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||ba,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,a)}};var t9={mock:rr,mock2:rr,custom:su,google:Ta,transmart:Ca,deepl:Zm,volc:sg,volcAlpha:uu,bing:iu,tencent:Qr,tenAlpha:Zr,baidu:wg,caiyun:vg,cai:Ag,openl:Mo,youdao:Sg,you:Lg,d:ar,dpro:ar,deeplx:ou,niu:Xm,azure:eg,openai:ng,chatgpt:nu,papago:tg,aliyun:ru},ia={};Object.keys(Bn).forEach(e=>{ia[e]={...Bn[e],class:t9[e]}});function Pg(e,t){let n=Jt;if(ia[e]&&ia[e].class&&ia[e].class.langMap&&ia[e].class.langMap.size>0){let a=ia[e].class.langMap,r=n.filter(u=>a.get(u));return r.includes(t)||r.unshift("placeholder"),r}else return Jt}async function Aa(e,t){if(!e.text)return e;let n=await sa({sentences:[e]},t);if(n.sentences.length>0)return{...e,...n.sentences[0]};throw new ut("translateFailed","translate failed")}async function Mg(e,t){for(let n of e)try{return await Aa({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n}),n}catch{continue}return null}async function L0(e){let{config:t,translationService:n}=e,a=t.translationGeneralConfig,r=t.translationServices,u=n,o=r[u]||{},i=en(e.user),l=new ia[u].class(o,a,{translationService:u,userToken:e.user?.token,isPro:i}),c=l.getDefaultRateLimit();c&&(o&&!o.limit&&(o.limit=c.limit),o&&!o.interval&&(o.interval=c.interval)),u==="deepl"&&o&&o.provider==="pro"&&(o.limitForImmersiveDeepl?o.limit=o.limitForImmersiveDeepl:c&&(o.limit=c.limit)),await Im(u,o),await l.init()}async function sa(e,t,n){if(!e.sentences.length)return{...e};let{config:a,translationService:r,state:u}=t,o=a.translationGeneralConfig,i=a.translationServices,l=r,c=i[l]||{};l==="openai"&&(e.sentences=e.sentences.map(A=>({...A,from:"auto"})));let s=[],g={sentences:Array(e.sentences.length)},p=e.sentences.length,f=-1;if(u.cache)for(let A of e.sentences){f++;let S=l;l==="openl"&&(S=l+"-"+c.codename||Mo.DEFAULT_CODENAME);let U=null;try{U=await Ju(Fg({originalText:A.text,from:A.from,to:A.to,service:S}),200)}catch(O){H.warn("query cache DB error, but it's ok",O)}if(U){let O={...A,text:U.translatedText};g.sentences[f]=O,n&&n(null,O,A)}else s.push(A)}else s.push(...e.sentences);let d=s.length;if(p-d>0&&H.debug(`use ${p-d} sentences from cache`),!s.length)return g;let b,C=en(t.user);try{b=new ia[l].class(c,o,{translationService:l,userToken:t.user?.token,isPro:C}),await b.init()}catch(A){if(n)for(let S of s)n(A,null,S);throw A}let h=await b.multipleTranslate({sentences:s},c,(A,S,U)=>{if(n&&n(A,S,U),!A&&S&&!l.startsWith("mock")&&u.cache){let O=l;l==="openl"&&(O=l+"-"+c.codename||Mo.DEFAULT_CODENAME),u.cache&&Ju(_g({translatedText:S.text,from:U.from,to:U.to,detectedFrom:S.from,key:aa(U.text),service:O}),3e3).catch(y=>{H.warn("set cache DB error",y)})}});for(let A of h.sentences){let S=g.sentences.findIndex(U=>!U);if(S===-1)throw new ut("translateFailed","can not match the result");g.sentences[S]=A}return g}m();m();var n9=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function xn(e,t){if(t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function P0(e,t,n){let{blockSelectors:a,extraBlockSelectors:r,extraInlineSelectors:u}=t;if(xn(e,u))return!1;if(xn(e,r)||e.nodeName.toLowerCase()==="br")return!0;let l=null;return e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(l=e.parentNode.immersiveTranslateComputedStyle),l&&l.display&&l.display==="inline-flex"?!1:n&&n.display?!!n9.includes(n.display):xn(e,a)}var Lt=xn;function ka(e){return!!e.shadowRoot}function la(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function lu(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Io(e){let t=ba;return e&&(t=e),t}function No(e,t){return ra(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function a9(e){let{rule:t}=e,n=e.config.loadingTheme;return` <${t.targetWrapperTag} class="${Q}-loading-${n} notranslate">`}function cu(e,t){let n=e.rule,a=document.createElement(n.targetWrapperTag);a.classList.add("notranslate",Wt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),nt(a,C4,t.toString());let r=a9(e);return a.append(Re.sanitize(r,{RETURN_DOM_FRAGMENT:!0})),a}function ir(e,t){return e.querySelector(`[${Xi}='${t}']`)}function Bg(){document.querySelectorAll(`[${Xi}]`).forEach(t=>{t.remove()})}function Rg(){document.querySelectorAll(`.${Wt}-error`).forEach(t=>{t.remove()})}function Og(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{Xa(n)&&t.push(n)}),t}function Ig(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:a,delimiters:r,text:u}=e,o=new RegExp(`${r[0]}(\\d+)${r[1]}`,"gi");if(r.length>2){let l=r[2];o=new RegExp(`<${l}(\\d+)>(.*?)`,"gi")}let i=u.trim();return i=i.replace(o,""),i=i.trim(),i===""||i.length===1&&i.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(u)||i.includes("")||i.includes("< styles>")||jd(i)||Rd(i)||Nd(i)||Od(i)||Id(i)||o.test(i)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(i)?!1:mo(u,n,a)}function En(e){return e.nodeType===Node.ELEMENT_NODE}function Ng(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}function jg(e){try{let t=Math.floor((new Date-new Date(e))/1e3);return t<60?`${t} \u79D2\u524D`:t<3600?`${Math.floor(t/60)} \u5206\u949F\u524D`:t<86400?`${Math.floor(t/3600)} \u5C0F\u65F6\u524D`:`${Math.floor(t/86400)} \u5929\u524D`}catch{return e}}async function Ug(e){let n=Be().INSTALL_FROM,a=tn(),r=await Dt("installedAt",""),u=await Dt("fakeUserId","");return{installFrom:n,version:a,installedAt:r,interfaceLang:e,deviceId:u}}var r9=1e5;function ca(e){let{onParagraph:t,filterRule:n,id:a}=e;n=u9(n);let{stayOriginalSelectors:r,globalStyles:u,selectors:o,isTransformPreTagNewLine:i,lineBreakMaxTextCount:l,globalAttributes:c,isModifyImage:s,skipEditableCheck:g}=n,p={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},f=!1,d=null;function b(O){let{container:y,onFrame:T,onIgnoreElement:k,id:v}=O,E=document.createTreeWalker(y,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,w=>{let B=F(w);return B==NodeFilter.FILTER_ACCEPT?Ut.mark(w,v,g):B==NodeFilter.FILTER_REJECT,B}),R=y;if(F(R)===NodeFilter.FILTER_REJECT)return;for(Ut.mark(R,v,g);R;){if(o&&o.length>0){let{currentNode:w,isMatchedSelection:B}=C(E,R,o);if(w)R=w;else break;if(!B)continue}if(R.nodeType===Node.ELEMENT_NODE||R.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let w=R;if(w.nodeName==="IFRAME"){T&&T(w),h(),M0(p,!0),R=E.nextNode();continue}w.nodeType===Node.ELEMENT_NODE&&(u&&_0(w,u),c&&R0(w,c));let B=P0(w,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},w.immersiveTranslateComputedStyle||null);if(Lt(w,r)&&!B){A(w);let P=null;for(;!(P=E.nextSibling())&&E.parentNode(););R=P;continue}let I=ka(w);(!zg(p,w)||B)&&(h(),w.childNodes.length>0&&S(p,w,w.immersiveTranslateComputedStyle||null)),I&&w.shadowRoot?.mode==="open"&&(B?T?.(w.shadowRoot):b({...O,container:w.shadowRoot})),w.nodeType===Node.ELEMENT_NODE&&w.nodeName==="PRE"&&i&&l9(w)}else if(R.nodeType===Node.TEXT_NODE)A(R);else throw new Error("should not be here");R=E.nextNode(),p.commonAncestorContainer&&R&&R.parentNode===p.commonAncestorContainer&&(p._currentStacks=[]),p.commonAncestorContainer&&R&&R.nodeType===Node.ELEMENT_NODE&&p._currentStacks.push(R)}function F(w){if(w.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(En(w)){if(c){let P=Object.keys(c);if(P.length>0&&Lt(w,P))for(let D of P){let M=c[D];if(w.matches(D)){let q=c[D],j=Object.keys(q);for(let $ of j){let z=q[$];w.getAttribute($)!==z&&(z===null?w.removeAttribute($):w.setAttribute($,z))}break}}}if(!O.force&&Ut.isMarked(w,v)||Ng(w,v)||O0(w,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,stayOriginalSelectors:r})||w.nodeName==="IFRAME"&&!Xa(w))return NodeFilter.FILTER_REJECT;let B=w.getBoundingClientRect(),{width:I,height:N}=B;if(w.nodeType===Node.ELEMENT_NODE){let P=window.getComputedStyle(w);if(w.immersiveTranslateComputedStyle={display:P.display,whiteSpace:P.whiteSpace,left:B.left+"px",right:B.right+"px",top:B.top+"px",bottom:B.bottom+"px"},B0(w.immersiveTranslateComputedStyle))return k&&k(w),NodeFilter.FILTER_REJECT;let x=P0(w,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},w.immersiveTranslateComputedStyle||null);if(Lt(w,r)&&x)return NodeFilter.FILTER_REJECT}return w.nodeName==="IMG"&&(I>48&&N>48?w.immersiveTranslateComputedStyle={display:"block"}:I>0&&N>0&&s!==!1&&(w.setAttribute("width",I),w.setAttribute("height",N))),!w.childNodes||w.childNodes&&w.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!p.isPreWhitespace&&(I>0&&I<4||N>0&&N<4)&&(w.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(w.nodeType===Node.TEXT_NODE){let B=w.textContent?.trim();if(!B)return p.isPreWhitespace?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let I=w.parentNode;if(I.getBoundingClientRect){let{width:N,height:P}=I.getBoundingClientRect();if(N>0&&N<4||P>0&&P<4)return NodeFilter.FILTER_REJECT}return l>0&&B.length>=l&&F0(w,l),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}b(e),p&&p.commonAncestorContainer&&p.flatNodes.length>0&&h();function C(O,y,T){let k=y.immersiveTranslateComputedStyle||null;if(d){if(!d.contains(y))if(f=!1,y&&y.nodeType===Node.ELEMENT_NODE)if(jo(y,T))f=!0,d=y,h(),S(p,d,k);else return f=!1,y=O.nextNode(),{currentNode:y,isMatchedSelection:f};else return f=!1,y=O.nextNode(),{currentNode:y,isMatchedSelection:f}}else if(y&&y.nodeType===Node.ELEMENT_NODE)if(jo(y,T))f=!0,d=y,h(),S(p,d,k);else return f=!1,y=O.nextNode(),{currentNode:y,isMatchedSelection:f};else return f=!1,y=O.nextNode(),{currentNode:y,isMatchedSelection:f};return{currentNode:y,isMatchedSelection:!0}}function h(){let O=s9(p,a);O&&t&&t(O),M0(p)}function A(O){if(!zg(p,O)){h(),M0(p);let y=O.parentNode;y&&S(p,y,y.computedStyle)}p.flatNodes.push(O)}function S(O,y,T){O.commonAncestorContainer=y;let k=U(T);O.isPreWhitespace=k}function U(O){return O&&O.whiteSpace&&O.whiteSpace.startsWith("pre")||O&&O.whiteSpace==="break-spaces"||!1}}function zg(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=ka(t));let a=i9(e),r=!0;return!n&&!a&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?r=!0:e.commonAncestorContainer&&(r=!1,e._currentStacks=[])),r}function u9(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let a=n!=="iframe";return t?a&&n!=="pre":a}),e}function o9(e,t,n){if(t){for(let a of t.childNodes)if(a.contains(n))return a}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function _0(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Lt(e,n))for(let r of n){let u=t[r];if(e.matches(r)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+u;break}}}}function i9(e){return e&&e._currentStacks?e._currentStacks.some(t=>ka(t)):!1}function s9(e,t){let{flatNodes:n,commonAncestorContainer:a}=e;if(a&&n.length>0){if(!n.map(p=>p.textContent?.trim()||"").join(""))return null;if(n.length===1)return{ctxId:t,stepState:1,commonAncestorContainer:n[0].parentNode,rootNodes:[n[0]],flatNodes:n,isPreWhitespace:e.isPreWhitespace,variables:{}};let u=c9(n,a);u||(u=a);let o=[];for(let p of n){let f=o9(e,u,p);f&&(o.includes(f)||o.push(f))}if(o.length<1)return null;let i=o[0],l=o[o.length-1],c=[],s=i,g=0;for(;s&&(c.push(s),s!==l);){if(g++,g>r9){H.warn("loop too many times for convert root nodes, break");break}s=s.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:n,commonAncestorContainer:u,variables:{},isPreWhitespace:e.isPreWhitespace}}else return null}function M0(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function B0(e){let t=e.top?parseInt(e.top):0,n=e.left?parseInt(e.left):0,a=e.right?parseInt(e.right):0,r=e.bottom?parseInt(e.bottom):0;return isNaN(t)&&(t=0),isNaN(n)&&(n=0),isNaN(a)&&(a=0),isNaN(r)&&(r=0),e.display==="none"||t<-1e3||n<-1e3||a<-1e3||r<-1e3}var Ut={_marked_key:"immersive_translate_walked",isMarked(e,t){return Bs(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||ka(e)))return po(e,this._marked_key)},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||ka(e)))return nt(e,this._marked_key,t,!1,n)},markWalk(e,t,n){if(!e||e.nodeType!==Node.ELEMENT_NODE||this.isSkipMarkEle(e))return;let a=Qa(e,"markWalk")||"";return nt(e,"markWalk",a+","+t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||ka(e)):!1}};function l9(e){let n=e.innerHTML.replace(/\n\n/g,"
");e.innerHTML=Re.sanitize(n)}function c9(e,t){if(!e.length)return null;let n=e.map(a=>{let r=new Set;for(;(a=a.parentNode)&&(r.add(a),a!==t););return r});for(let a of n[0])if((a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&n.every(r=>r.has(a)))return a;return null}function F0(e,t){let n=e.textContent||"";if(n.trim().length<=t)return;let u=[". ","? ","! ","\u3002","\uFF1F","\uFF01"].reduce((o,i)=>{let l=n.lastIndexOf(i,t);return l>o?l:o},-1);if(u>1){let o=n[u-1]||"",i=n[u-2]||"",l=n[u+1]||"";o==="."||l==="."||l===")"||i==="."&&o==="S"||i.toUpperCase()==="M"&&(o.toUpperCase()==="R"||o.toUpperCase()==="S")?u=-1:isNaN(Number(o))||(u=-1)}if(u===-1)n.length>t+20&&F0(e,t+20);else{let o=n.slice(u+1);u++,o.startsWith(" ")&&u++;let i=e.splitText(u),l=document.createElement("br");i.parentNode?.insertBefore(l,i),u+10)for(let a of n){let r=t[a],u=Object.keys(r),o=Md(e,[a]);for(let i of o)for(let l of u){let c=r[l];i.getAttribute(l)!==c&&(c===null?i.removeAttribute(l):i.setAttribute(l,c))}}}function qg(e,t,n,a,r,u){let o=Object.keys(t);if(o.length>0)for(let i of o){let l=t[i],c=Object.keys(l),s=e.querySelector(i);if(s)for(let g of c){let p=l[g];if(g==="translate"&&p==="no"){let d=s.innerText||s.textContent||"";if(!d.trim()||d9(s,r,u)||!_d(d,n,a))continue}s.getAttribute(g)!==p&&(p===null?s.removeAttribute(g):s.setAttribute(g,p))}}}function R0(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Lt(e,n))for(let r of n){let u=t[r];if(e.matches(r)){let o=t[r],i=Object.keys(o);for(let l of i){let c=o[l];e.getAttribute(l)!==c&&(c===null?e.removeAttribute(l):e.setAttribute(l,c))}break}}}}function O0(e,t){return Lt(e,t.excludeSelectors||[])?Lt(e,t.selectors||[])?!1:!Lt(e,t.stayOriginalSelectors||[]):!1}function jo(e,t){if(t.length===0)return!1;let n=t.filter(a=>!a.endsWith("*")).map(a=>a+" *");return Lt(e,t.concat(n))}function d9(e,t,n){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,r=>NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let r=a.currentNode;if(r.nodeType===Node.TEXT_NODE&&parent){let u=r.textContent||"";if(u.includes("Copyright"))continue;if(mo(u,t,n))return!0}}return!1}m();m();m();function Wg(e,t,n,a){let r=t,u=M4[r]||[],o="";e&&u&&u.length>0&&u.forEach(c=>{let{name:s}=c;if(e&&n&&n[s]){let g=n[s];if(["borderRadius"].includes(s)&&(g+="px"),o+=`--immersive-translate-theme-${r}-${s}: ${g}; -`,t==="marker"&&s==="backgroundColor"&&typeof g=="string"){let{r:p,g:f,b:d}=Ud(g);o+=`--immersive-translate-theme-${r}-${s}-rgb: ${p}, ${f}, ${d}; + `);if(s.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(s)}.`)}let m=s[0].translations[0],p=s[0].detectedLanguage;return{text:m.text,from:mg.get(p.language),to:mg.get(m.to)}}g();var Ro=new Map;async function x0(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=aa(e.body)),Ro.has(t))return Ro.get(t);let n=se(e);Ro.set(t,n);try{return await n}catch(a){throw a}finally{setTimeout(()=>{Ro.delete(t)},3e4)}}async function yg(e){return x0(e)}async function xg(e){if(tt()){let n=Lo();if(n)try{return await n.ask("throttleRequest",e)}catch(a){throw H.error("can not comunicate with root frame, use strict limiter",a),a}else return x0(e)}else return x0(e)}g();function Eg(e){let t=e.split(".");if(t.length<=1)throw new Error("invlaid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let a=n.replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(globalThis.atob(a).split("").map(function(i){return"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)}).join("")),u=JSON.parse(r),o=new Date(u.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}var va=null,V6=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],E0=new Map(V6),ou=class extends be{static langMap=E0;isSupportList=!0;maxTextLength=1800;static async clearState(){va=null,await Or(Nu)}async translate(t){let{text:n,from:a,to:r}=t;return n?await bg(n,a,r):{...t}}async init(){if(!va){va={};let t=await Br(Nu);t&&(va=t)}await Tg(va)}async translateList(t){let{from:n,to:a,text:r}=t,u=E0.get(n)||"auto",o=E0.get(a)||a;u==="auto"&&(u="");let i=await Tg(va),l=[];for(let p of r)l.push({Text:p});let c=JSON.stringify(l),s=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${u}&to=${o}&api-version=3.0&includeSentenceLength=true`,m=await se({url:s,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+i.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin"},body:c,method:"POST"});if(m&&m.length>0&&m[0].translations&&m[0].translations.length>0)return{text:m.map(p=>p.translations[0]?.text||""),from:n,to:a};throw new Error("Microsoft translate error "+JSON.stringify(m))}};async function Tg(e){if(e&&e.accessToken&&e.accessTokenExpiresAt){let t=Date.now(),a=new Date(e.accessTokenExpiresAt).getTime();if(a-t>30*1e3)return e;if(a-t>3e3)return Cg().catch(r=>{H.error(r)}),e}return Cg()}async function Cg(){let e=await xg({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET"}),t=Eg(e),n=t.accessTokenExpiresAt,r=new Date(n).getTime()-Date.now();return va=t,await Rr(Nu,t,r-1e3),{accessToken:e,accessTokenExpiresAt:t.accessTokenExpiresAt}}g();var wg=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],T0=new Map(wg),Y6=new Map(wg.map(([e,t])=>[t,e])),C0=class extends be{static langMap=T0;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";appid="";key="";isSupportList=!1;maxTextGroupLength=20;constructor(t,n,a){if(super(t,n,a),!t||!t.appid||!t.key)throw new Error("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim()}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:a}=this,{appid:r,key:u}=this,{text:o,from:i,to:l}=t,c=new URLSearchParams({from:T0.get(i)||"auto",to:T0.get(l)||l,q:o,salt:n,appid:r,sign:aa(r+o+n+u)}),s=new URL(a);s.search=c.toString();let m=await se({url:s.toString()});if(m.error_code)throw new ut("API_SERVER_ERROR",m.error_msg);let{trans_result:p,from:f}=m,d=p.map(({dst:C})=>C);return{from:Y6.get(f)||f,to:l,text:d.join(` +`)}}},vg=C0;g();g();var Aa=class extends be{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,a){super(t,n,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let u=await this.checkLang(a,n);if(!u)return{text:n,from:a,to:r};a=u;let o=this.handleRequest(n,a,r),i=await bo(o);return{text:this.handleResponseText(i),from:a,to:r}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let u=await this.checkLang(a,n.join(" "));if(!u)return{text:n,from:a,to:r};a=u;let o=this.handleRequest(n,a,r),i=await bo(o);return{text:this.handleResponseText(i),from:a,to:r}}handleBaseApiServiceConfig(t){let n=t.request.url,a=t.request.headers||{};return a["content-type"]||(a["content-type"]="application/json"),{url:n,retry:t.request.retry||2,method:t.request.method||"POST",headers:a,body:JSON.stringify(t.request.body)}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,a){let r={...this.requestBaseConfig},u=r?.body||"",o=this.apiServiceConfig.keywords||{};r.body=l(u);let i=r.headers||{};return Object.keys(i).forEach(c=>{i[c]=l(i[c])}),r.headers=i,r.url=l(r.url||""),r;function l(c){return c.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",a).replaceAll(/{([a-z:_]+)}/gi,(m,p)=>{let[f,d]=p.split(":"),b=o[f];return d==="random"?J6(b.split(",")):b})}}handleResponseText(t){let n=this.apiServiceConfig.response,a=t,r=n.text.split(".");for(let u of r){if(Array.isArray(a))return a=a.map(o=>o[u]),a;a=a[u]}return a}detectLanguageRemotely(t){return wa.detectLanguageRemotelyByTransmart(t)}};function J6(e){let t=Math.floor(Math.random()*e.length);return e[t]}var w0=class extends Aa{constructor(t,n,a){if(!t?.token)throw new Error("token are required");super({...t,isSupportList:!0,langs:[["zh-CN","zh"],["en","en"],["ja","ja"]],keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,a)}},Ag=w0;g();var Q6=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],Oo=new Map(Q6),v0=class extends be{static langMap=Oo;token="ssdj273ksdiwi923bsd9";constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t;if(!Oo.get(r))throw new Error(`Unsupported language: ${r}`);if(a==="auto")throw new Error("Unsupported language: auto");let o=n;return{text:(await se({retry:2,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${Oo.get(a)||"auto"}2${Oo.get(r)}`})})).target,from:a,to:r}}},kg=v0;g();var Sg=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],A0=new Map(Sg),Z6=new Map(Sg.map(([e,t])=>[t,e]));function X6(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var k0=class extends be{static langMap=A0;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,a){if(super(t,n,a),!t||!t.appId||!t.appSecret)throw new Error("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,u=e9(32),o=Math.round(new Date().getTime()/1e3),i=this.appId+X6(n)+u+o+this.appSecret,l=await fn(i),c={q:n,appKey:this.appId,salt:u.toString(),from:A0.get(a)||"auto",to:A0.get(r)||r,sign:l,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(c.domain=this.domain),this.vocabId&&(c.vocabId=this.vocabId);let s=new URLSearchParams(c),p=await se({url:"https://openapi.youdao.com/api",method:"POST",body:s.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"}});if(!p.translation)throw new Error(JSON.stringify(p));let f=p.l,[d,b]=f.split("2");return{text:p.translation.join(` +`),from:Z6.get(d),to:r}}};function e9(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r[t,e]));var D0=class extends be{static langMap=S0;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,u={q:n,from:S0.get(a)||"auto",to:S0.get(r)||r},o=new URLSearchParams(u),i=await se({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"}});if(i&&i.translation)return{text:i.translation.join(` +`),from:a,to:r};throw new Error("Youdao translation failed: "+JSON.stringify(i))}},Pg=D0;g();var iu=class extends Aa{constructor(t,n,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(r=>[r,r]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||ba,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,a)}};var t9={mock:rr,mock2:rr,custom:iu,google:Ca,transmart:wa,deepl:Xm,volc:lg,volcAlpha:ru,bing:ou,tencent:Qr,tenAlpha:Zr,baidu:vg,caiyun:Ag,cai:kg,openl:Po,youdao:Dg,you:Pg,d:ar,dpro:ar,deeplx:uu,niu:eg,azure:tg,openai:ag,chatgpt:tu,papago:ng,aliyun:au},ia={};Object.keys(Bn).forEach(e=>{ia[e]={...Bn[e],class:t9[e]}});function Mg(e,t){let n=Qt;if(ia[e]&&ia[e].class&&ia[e].class.langMap&&ia[e].class.langMap.size>0){let a=ia[e].class.langMap,r=n.filter(u=>a.get(u));return r.includes(t)||r.unshift("placeholder"),r}else return Qt}async function ka(e,t){if(!e.text)return e;let n=await sa({sentences:[e]},t);if(n.sentences.length>0)return{...e,...n.sentences[0]};throw new ut("translateFailed","translate failed")}async function Fg(e,t){for(let n of e)try{return await ka({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n}),n}catch{continue}return null}async function L0(e){let{config:t,translationService:n}=e,a=t.translationGeneralConfig,r=t.translationServices,u=n,o=r[u]||{},i=en(e.user),l=new ia[u].class(o,a,{translationService:u,userToken:e.user?.token,isPro:i}),c=l.getDefaultRateLimit();c&&(o&&!o.limit&&(o.limit=c.limit),o&&!o.interval&&(o.interval=c.interval)),u==="deepl"&&o&&o.provider==="pro"&&(o.limitForImmersiveDeepl?o.limit=o.limitForImmersiveDeepl:c&&(o.limit=c.limit)),await Nm(u,o),await l.init()}async function sa(e,t,n){if(!e.sentences.length)return{...e};let{config:a,translationService:r,state:u}=t,o=a.translationGeneralConfig,i=a.translationServices,l=r,c=i[l]||{};l==="openai"&&(e.sentences=e.sentences.map(A=>({...A,from:"auto"})));let s=[],m={sentences:Array(e.sentences.length)},p=e.sentences.length,f=-1;if(u.cache)for(let A of e.sentences){f++;let S=l;l==="openl"&&(S=l+"-"+c.codename||Po.DEFAULT_CODENAME);let U=null;try{U=await Yu(_g({originalText:A.text,from:A.from,to:A.to,service:S}),200)}catch(O){H.warn("query cache DB error, but it's ok",O)}if(U){let O={...A,text:U.translatedText};m.sentences[f]=O,n&&n(null,O,A)}else s.push(A)}else s.push(...e.sentences);let d=s.length;if(p-d>0&&H.debug(`use ${p-d} sentences from cache`),!s.length)return m;let b,C=en(t.user);try{b=new ia[l].class(c,o,{translationService:l,userToken:t.user?.token,isPro:C}),await b.init()}catch(A){if(n)for(let S of s)n(A,null,S);throw A}let h=await b.multipleTranslate({sentences:s},c,(A,S,U)=>{if(n&&n(A,S,U),!A&&S&&!l.startsWith("mock")&&u.cache){let O=l;l==="openl"&&(O=l+"-"+c.codename||Po.DEFAULT_CODENAME),u.cache&&Yu(Bg({translatedText:S.text,from:U.from,to:U.to,detectedFrom:S.from,key:aa(U.text),service:O}),3e3).catch(y=>{H.warn("set cache DB error",y)})}});for(let A of h.sentences){let S=m.sentences.findIndex(U=>!U);if(S===-1)throw new ut("translateFailed","can not match the result");m.sentences[S]=A}return m}g();g();var n9=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function xn(e,t){if(t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function P0(e,t,n){let{blockSelectors:a,extraBlockSelectors:r,extraInlineSelectors:u}=t;if(xn(e,u))return!1;if(xn(e,r)||e.nodeName.toLowerCase()==="br")return!0;let l=null;return e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(l=e.parentNode.immersiveTranslateComputedStyle),l&&l.display&&l.display==="inline-flex"?!1:n&&n.display?!!n9.includes(n.display):xn(e,a)}var Lt=xn;function Sa(e){return!!e.shadowRoot}function la(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function su(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Io(e){let t=ba;return e&&(t=e),t}function No(e,t){return ra(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function a9(e){let{rule:t}=e,n=e.config.loadingTheme;return` <${t.targetWrapperTag} class="${Q}-loading-${n} notranslate">`}function lu(e,t){let n=e.rule,a=document.createElement(n.targetWrapperTag);a.classList.add("notranslate",$t),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),nt(a,C4,t.toString());let r=a9(e);return a.append(Re.sanitize(r,{RETURN_DOM_FRAGMENT:!0})),a}function ir(e,t){return e.querySelector(`[${Xi}='${t}']`)}function Rg(){document.querySelectorAll(`[${Xi}]`).forEach(t=>{t.remove()})}function Og(){document.querySelectorAll(`.${$t}-error`).forEach(t=>{t.remove()})}function Ig(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{Xa(n)&&t.push(n)}),t}function Ng(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:a,delimiters:r,text:u}=e,o=new RegExp(`${r[0]}(\\d+)${r[1]}`,"gi");if(r.length>2){let l=r[2];o=new RegExp(`<${l}(\\d+)>(.*?)`,"gi")}let i=u.trim();return i=i.replace(o,""),i=i.trim(),i===""||i.length===1&&i.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(u)||i.includes("")||i.includes("< styles>")||Ud(i)||Od(i)||jd(i)||Id(i)||Nd(i)||o.test(i)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(i)?!1:co(u,n,a)}function En(e){return e.nodeType===Node.ELEMENT_NODE}function jg(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}function Ug(e){try{let t=Math.floor((new Date-new Date(e))/1e3);return t<60?`${t} \u79D2\u524D`:t<3600?`${Math.floor(t/60)} \u5206\u949F\u524D`:t<86400?`${Math.floor(t/3600)} \u5C0F\u65F6\u524D`:`${Math.floor(t/86400)} \u5929\u524D`}catch{return e}}async function zg(e){let n=Be().INSTALL_FROM,a=tn(),r=await Dt("installedAt",""),u=await Dt("fakeUserId","");return{installFrom:n,version:a,installedAt:r,interfaceLang:e,deviceId:u}}var r9=1e5;function ca(e){let{onParagraph:t,filterRule:n,id:a}=e;n=u9(n);let{stayOriginalSelectors:r,globalStyles:u,selectors:o,isTransformPreTagNewLine:i,lineBreakMaxTextCount:l,globalAttributes:c,isModifyImage:s,skipEditableCheck:m}=n,p={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},f=!1,d=null;function b(O){let{container:y,onFrame:T,onIgnoreElement:k,id:v}=O,E=document.createTreeWalker(y,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,w=>{let B=F(w);return B==NodeFilter.FILTER_ACCEPT?zt.mark(w,v,m):B==NodeFilter.FILTER_REJECT,B}),R=y;if(F(R)===NodeFilter.FILTER_REJECT)return;for(zt.mark(R,v,m);R;){if(o&&o.length>0){let{currentNode:w,isMatchedSelection:B}=C(E,R,o);if(w)R=w;else break;if(!B)continue}if(R.nodeType===Node.ELEMENT_NODE||R.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let w=R;if(w.nodeName==="IFRAME"){T&&T(w),h(),M0(p,!0),R=E.nextNode();continue}w.nodeType===Node.ELEMENT_NODE&&(u&&_0(w,u),c&&R0(w,c));let B=P0(w,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},w.immersiveTranslateComputedStyle||null);if(Lt(w,r)&&!B){A(w);let P=null;for(;!(P=E.nextSibling())&&E.parentNode(););R=P;continue}let I=Sa(w);(!Hg(p,w)||B)&&(h(),w.childNodes.length>0&&S(p,w,w.immersiveTranslateComputedStyle||null)),I&&w.shadowRoot?.mode==="open"&&(B?T?.(w.shadowRoot):b({...O,container:w.shadowRoot})),w.nodeType===Node.ELEMENT_NODE&&w.nodeName==="PRE"&&i&&l9(w)}else if(R.nodeType===Node.TEXT_NODE)A(R);else throw new Error("should not be here");R=E.nextNode(),p.commonAncestorContainer&&R&&R.parentNode===p.commonAncestorContainer&&(p._currentStacks=[]),p.commonAncestorContainer&&R&&R.nodeType===Node.ELEMENT_NODE&&p._currentStacks.push(R)}function F(w){if(w.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(En(w)){if(c){let P=Object.keys(c);if(P.length>0&&Lt(w,P))for(let D of P){let M=c[D];if(w.matches(D)){let q=c[D],j=Object.keys(q);for(let $ of j){let z=q[$];w.getAttribute($)!==z&&(z===null?w.removeAttribute($):w.setAttribute($,z))}break}}}if(!O.force&&zt.isMarked(w,v)||jg(w,v)||O0(w,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,stayOriginalSelectors:r})||w.nodeName==="IFRAME"&&!Xa(w))return NodeFilter.FILTER_REJECT;let B=w.getBoundingClientRect(),{width:I,height:N}=B;if(w.nodeType===Node.ELEMENT_NODE){let P=window.getComputedStyle(w);if(w.immersiveTranslateComputedStyle={display:P.display,whiteSpace:P.whiteSpace,left:B.left+"px",right:B.right+"px",top:B.top+"px",bottom:B.bottom+"px"},B0(w.immersiveTranslateComputedStyle))return k&&k(w),NodeFilter.FILTER_REJECT;let x=P0(w,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},w.immersiveTranslateComputedStyle||null);if(Lt(w,r)&&x)return NodeFilter.FILTER_REJECT}return w.nodeName==="IMG"&&(I>48&&N>48?w.immersiveTranslateComputedStyle={display:"block"}:I>0&&N>0&&s!==!1&&(w.setAttribute("width",I),w.setAttribute("height",N))),!w.childNodes||w.childNodes&&w.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!p.isPreWhitespace&&(I>0&&I<4||N>0&&N<4)&&(w.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(w.nodeType===Node.TEXT_NODE){let B=w.textContent?.trim();if(!B)return p.isPreWhitespace?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let I=w.parentNode;if(I.getBoundingClientRect){let{width:N,height:P}=I.getBoundingClientRect();if(N>0&&N<4||P>0&&P<4)return NodeFilter.FILTER_REJECT}return l>0&&B.length>=l&&F0(w,l),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}b(e),p&&p.commonAncestorContainer&&p.flatNodes.length>0&&h();function C(O,y,T){let k=y.immersiveTranslateComputedStyle||null;if(d){if(!d.contains(y))if(f=!1,y&&y.nodeType===Node.ELEMENT_NODE)if(jo(y,T))f=!0,d=y,h(),S(p,d,k);else return f=!1,y=O.nextNode(),{currentNode:y,isMatchedSelection:f};else return f=!1,y=O.nextNode(),{currentNode:y,isMatchedSelection:f}}else if(y&&y.nodeType===Node.ELEMENT_NODE)if(jo(y,T))f=!0,d=y,h(),S(p,d,k);else return f=!1,y=O.nextNode(),{currentNode:y,isMatchedSelection:f};else return f=!1,y=O.nextNode(),{currentNode:y,isMatchedSelection:f};return{currentNode:y,isMatchedSelection:!0}}function h(){let O=s9(p,a);O&&t&&t(O),M0(p)}function A(O){if(!Hg(p,O)){h(),M0(p);let y=O.parentNode;y&&S(p,y,y.computedStyle)}p.flatNodes.push(O)}function S(O,y,T){O.commonAncestorContainer=y;let k=U(T);O.isPreWhitespace=k}function U(O){return O&&O.whiteSpace&&O.whiteSpace.startsWith("pre")||O&&O.whiteSpace==="break-spaces"||!1}}function Hg(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Sa(t));let a=i9(e),r=!0;return!n&&!a&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?r=!0:e.commonAncestorContainer&&(r=!1,e._currentStacks=[])),r}function u9(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let a=n!=="iframe";return t?a&&n!=="pre":a}),e}function o9(e,t,n){if(t){for(let a of t.childNodes)if(a.contains(n))return a}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function _0(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Lt(e,n))for(let r of n){let u=t[r];if(e.matches(r)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+u;break}}}}function i9(e){return e&&e._currentStacks?e._currentStacks.some(t=>Sa(t)):!1}function s9(e,t){let{flatNodes:n,commonAncestorContainer:a}=e;if(a&&n.length>0){if(!n.map(p=>p.textContent?.trim()||"").join(""))return null;if(n.length===1)return{ctxId:t,stepState:1,commonAncestorContainer:n[0].parentNode,rootNodes:[n[0]],flatNodes:n,isPreWhitespace:e.isPreWhitespace,variables:{}};let u=c9(n,a);u||(u=a);let o=[];for(let p of n){let f=o9(e,u,p);f&&(o.includes(f)||o.push(f))}if(o.length<1)return null;let i=o[0],l=o[o.length-1],c=[],s=i,m=0;for(;s&&(c.push(s),s!==l);){if(m++,m>r9){H.warn("loop too many times for convert root nodes, break");break}s=s.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:n,commonAncestorContainer:u,variables:{},isPreWhitespace:e.isPreWhitespace}}else return null}function M0(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function B0(e){let t=e.top?parseInt(e.top):0,n=e.left?parseInt(e.left):0,a=e.right?parseInt(e.right):0,r=e.bottom?parseInt(e.bottom):0;return isNaN(t)&&(t=0),isNaN(n)&&(n=0),isNaN(a)&&(a=0),isNaN(r)&&(r=0),e.display==="none"||t<-1e3||n<-1e3||a<-1e3||r<-1e3}var zt={_marked_key:"immersive_translate_walked",isMarked(e,t){return Bs(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Sa(e)))return go(e,this._marked_key)},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Sa(e)))return nt(e,this._marked_key,t,!1,n)},markWalk(e,t,n){if(!e||e.nodeType!==Node.ELEMENT_NODE||this.isSkipMarkEle(e))return;let a=Qa(e,"markWalk")||"";return nt(e,"markWalk",a+","+t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Sa(e)):!1}};function l9(e){let n=e.innerHTML.replace(/\n\n/g,"
");e.innerHTML=Re.sanitize(n)}function c9(e,t){if(!e.length)return null;let n=e.map(a=>{let r=new Set;for(;(a=a.parentNode)&&(r.add(a),a!==t););return r});for(let a of n[0])if((a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&n.every(r=>r.has(a)))return a;return null}function F0(e,t){let n=e.textContent||"";if(n.trim().length<=t)return;let u=[". ","? ","! ","\u3002","\uFF1F","\uFF01"].reduce((o,i)=>{let l=n.lastIndexOf(i,t);return l>o?l:o},-1);if(u>1){let o=n[u-1]||"",i=n[u-2]||"",l=n[u+1]||"";o==="."||l==="."||l===")"||i==="."&&o==="S"||i.toUpperCase()==="M"&&(o.toUpperCase()==="R"||o.toUpperCase()==="S")?u=-1:isNaN(Number(o))||(u=-1)}if(u===-1)n.length>t+20&&F0(e,t+20);else{let o=n.slice(u+1);u++,o.startsWith(" ")&&u++;let i=e.splitText(u),l=document.createElement("br");i.parentNode?.insertBefore(l,i),u+10)for(let a of n){let r=t[a],u=Object.keys(r),o=Fd(e,[a]);for(let i of o)for(let l of u){let c=r[l];i.getAttribute(l)!==c&&(c===null?i.removeAttribute(l):i.setAttribute(l,c))}}}function Wg(e,t,n,a,r,u){let o=Object.keys(t);if(o.length>0)for(let i of o){let l=t[i],c=Object.keys(l),s=e.querySelector(i);if(s)for(let m of c){let p=l[m];if(m==="translate"&&p==="no"){let d=s.innerText||s.textContent||"";if(!d.trim()||d9(s,r,u)||!Bd(d,n,a))continue}s.getAttribute(m)!==p&&(p===null?s.removeAttribute(m):s.setAttribute(m,p))}}}function R0(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Lt(e,n))for(let r of n){let u=t[r];if(e.matches(r)){let o=t[r],i=Object.keys(o);for(let l of i){let c=o[l];e.getAttribute(l)!==c&&(c===null?e.removeAttribute(l):e.setAttribute(l,c))}break}}}}function O0(e,t){return Lt(e,t.excludeSelectors||[])?Lt(e,t.selectors||[])?!1:!Lt(e,t.stayOriginalSelectors||[]):!1}function jo(e,t){if(t.length===0)return!1;let n=t.filter(a=>!a.endsWith("*")).map(a=>a+" *");return Lt(e,t.concat(n))}function d9(e,t,n){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,r=>NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let r=a.currentNode;if(r.nodeType===Node.TEXT_NODE&&parent){let u=r.textContent||"";if(u.includes("Copyright"))continue;if(co(u,t,n))return!0}}return!1}g();g();g();function $g(e,t,n,a){let r=t,u=M4[r]||[],o="";e&&u&&u.length>0&&u.forEach(c=>{let{name:s}=c;if(e&&n&&n[s]){let m=n[s];if(["borderRadius"].includes(s)&&(m+="px"),o+=`--immersive-translate-theme-${r}-${s}: ${m}; +`,t==="marker"&&s==="backgroundColor"&&typeof m=="string"){let{r:p,g:f,b:d}=zd(m);o+=`--immersive-translate-theme-${r}-${s}-rgb: ${p}, ${f}, ${d}; `}}});let i="";if(n&&n.textColor){let c=n.textColor;i+=` .immersive-translate-target-translation-theme-${r}-inner{color: ${c};} `}if(n&&n.zoom){let c=n.zoom;i+=` .immersive-translate-target-translation-theme-${r}-inner{font-size: max(13px, ${c}%);} `}let l="";o&&(l=`:root { ${o}} -`),i&&(l+=i),l?xa(e,l,"immersive-translate-user-custom-style"):a&&xa(e,"","immersive-translate-user-custom-style")}function sr(e,t){let a=Be().IMMERSIVE_TRANSLATE_INJECTED_CSS;xa(e,a,"immersive-translate-default-injected-css");let r=t.config.translationThemePatterns||{},u=t.state.translationTheme,o=r[u]||{};Wg(e,u,o);let i="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?i+=t.rule.injectedCss.join(` +`),i&&(l+=i),l?Ea(e,l,"immersive-translate-user-custom-style"):a&&Ea(e,"","immersive-translate-user-custom-style")}function sr(e,t){let a=Be().IMMERSIVE_TRANSLATE_INJECTED_CSS;Ea(e,a,"immersive-translate-default-injected-css");let r=t.config.translationThemePatterns||{},u=t.state.translationTheme,o=r[u]||{};$g(e,u,o);let i="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?i+=t.rule.injectedCss.join(` `):t.rule.injectedCss&&(i+=t.rule.injectedCss),t.rule.additionalInjectedCss&&Array.isArray(t.rule.additionalInjectedCss)&&t.rule.additionalInjectedCss.length>0?i+=` `+t.rule.additionalInjectedCss.join(` `):t.rule.additionalInjectedCss&&(i+=` -`+t.rule.additionalInjectedCss)),i&&xa(e,i,"immersive-translate-dynamic-injected-css")}m();async function $g(){let e="auto",t=[Ea(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await Je({text:Ja(document.body),pageLangs:t})),e}m();m();function Kg(e,t){return[e,!e||e.endsWith("/")?"":"/",t,".json"].join("")}function I0(e,t){let n=e;return t&&Object.keys(t).forEach(a=>{let r=t[a];if(r===void 0)return;let u=m9(a);if(typeof r=="object"||u){let o=r;u&&typeof o=="string"&&(o={tag:"a",href:o});let i=`<${a}>`,l=n.indexOf(i);if(l!==-1){let c=o.tag||"a",s=n.indexOf(``);if(s!==-1){let g=n.substring(l+i.length,s),p=Object.keys(o).filter(f=>f!=="tag").map(f=>`${f}="${o[f]}"`).join(" ");n=n.replace(`${i}${g}`,`<${c} ${p}>${g}`)}}}else if(r){let o=new RegExp("{"+a+"}","gm");n=n.replace(o,r.toString())}}),n}function du(e,t,n){let a=e[t];if(!a)return n;let r=n.split("."),u="";do{u+=r.shift();let o=a[u];o!==void 0&&(typeof o=="object"||!r.length)?(a=o,u=""):r.length?u+=".":a=n}while(r.length);return a}function Un(e,t,n,a,r){if(!e.hasOwnProperty(n))return t;let u=du(e,n,t);return u===t&&n!==a&&(u=du(e,a,t)),I0(u,r)}function m9(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}m();m();function N0(e,t,n=[],a){let r=["notranslate"];return a&&r.push(P4),e&&(r.push(`${Q}-target-translation-theme-${e}`),t?r.push(`${ts}-theme-${e}`):r.push(`${es}-theme-${e}`)),n.length>0&&r.push(...n),t?r.push(ts):r.push(es),r}function j0(e){let t=["notranslate",D4];return e&&t.push(`${Q}-target-translation-theme-${e}-inner`),t}function Gg(e,t,n){let{rule:a,state:r}=n,{translationTheme:u}=r,{variables:o,isVertical:i}=e;o=o||[];let{text:l}=t,{wrapperPrefix:c,wrapperSuffix:s}=a,g=Za(n),p="afterend",f=g[0],d=g[1],b=`${f}(\\d+)${d}`,C=new RegExp(b,"g"),h=Re.sanitize(l);o.length>0&&(h=h.replace(C,O=>{let y=h.indexOf(O),T=h[y-1]===" ",k=h[y+O.length]===" ",v=O.slice(g[0].length,-g[1].length),E=Number(v);if(isNaN(E))return O;let R=o[Number(E)];if(R&&R.type==="element"){let F=R.value.outerHTML;return T||(F=" "+F),k||(F=F+" "),F}else H.error("variable type not supported",R,O);return O}));let A=N0(u,e.inline,a.translationClasses||[],e.preWhitespace);i&&A.push(L4);let S=j0(u),U="";return a.translationBlockStyle&&(U=`style="${a.translationBlockStyle}"`),h=`<${n.rule.targetWrapperTag} ${U} class="${A.join(" ")}" ${vn}="1"><${a.targetWrapperTag} class="${S.join(" ")}" ${vn}="1">${h}`,e.inline||(c==="smart"?h=`
${h}`:h=`${c}${h}`),e.inline&&(c!=="smart"?h=`${c}${h}`:h=`<${a.targetWrapperTag} class="notranslate" ${vn}="1"> ${h}`),s==="smart"?h=`${h}`:h=`${h}${s}`,{html:h,position:p}}function Uo(e,t){let n=null,{stayOriginalSelectors:a,delimiters:r,isPreWhitespace:u}=t,o=[],i={};for(let l=0;l2&&(C=`<${r[2]}${b}>`),i[b]=c,o.push({text:C,type:"variable"})}else o.push({text:c.textContent||"",type:"text"});else{let d=c.textContent||"";g&&(d=la(U0(c))),o.push({text:d,type:"text"})}else if(c.nodeType===Node.ELEMENT_NODE)if(c&&Lt(c,a)){let b=Object.keys(i).length,C=`${r[0]}${b}${r[1]}`;r.length>2&&(C=`<${r[2]}${b}>`),i[b]=c;let h=z0(o).endsWith(" ")?" ":"",A=la(c.innerText||c.textContent),S=la(c.nextSibling).startsWith(" ")?" ":"",U=lu(h+A+S),O=U[0]+C+U[1];if(h===" ")O=O.trimStart();else if(!O.startsWith(" ")){let y=lu(c.previousSibling)[1];y===""&&(y=" "),O=y+O}o.push({text:O,type:"variable"})}else{let d=z0(o).endsWith(" ")?" ":"",b=la(c.innerText||c.textContent);g&&(b=la(U0(c)));let C=la(c.nextSibling).startsWith(" ")?" ":"",h=lu(d+b+C),A=h[0]+(c.innerText?.trim()||c.textContent?.trim()||"")+h[1];if(d===" ")A=A.trimStart();else{let S=lu(c.previousSibling)[1];S===""&&(c.nodeName==="A"||c.nodeName==="CODE")&&(S=" "),A=S+A}o.push({text:A,type:"text"})}else{let d=z0(o).endsWith(" ")?" ":"",b="";c.textContent&&(b=la(U0(c))),d===" "&&(b=b.trimStart()),o.push({text:b,type:"text"})}}if(o&&o.length>0){let l="";for(let c=0;c0&&(g=o[c-1].text),c2){let s=c[2];return g9({delimiterTag:s,targetText:e.targetText,inline:r,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:a}).html}else{let s=Gg(l,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return s.html}}function U0(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function g9(e){let{delimiterTag:t,inline:n,translationClasses:a,targetWrapperTag:r,wrapperPrefix:u,variables:o,preWhitespace:i,wrapperSuffix:l,translationTheme:c,translationBlockStyle:s}=e;o=o||[];let g=e.targetText;g=Re.sanitize(g);let p=g,f=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),d=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(f,A=>{let S=p.indexOf(A),U=p[S-1]===" ",O=p[S+A.length]===" ",y=A.match(d);if(!y)return A;let T=y[1],k=Number(T);if(isNaN(k))return A;let v=o[Number(k)];if(v&&v.type==="element"){let E=v.value.outerHTML;return U||(E=" "+E),O||(E=E+" "),E}else if(v&&v.type==="text"){let E=v.value;return U||(E=" "+E),O||(E=E+" "),E}else H.error("variable type not supported",v,A);return A}));let b=N0(c,n,a||[],i),C=j0(c),h="";return s&&(h=`style="${s}"`),p=`<${r} ${h} class="${b.join(" ")}" ${vn}="1"><${r} class="${C.join(" ")}" ${vn}="1">${p}`,n||(u==="smart"?p=`
${p}`:p=`${u}${p}`),n&&(u!=="smart"?p=`${u}${p}`:p=`<${r} class="notranslate" ${vn}="1"> ${p}`),l==="smart"?p=`${p}`:p=`${p}${l}`,{html:p,position:"afterend"}}function z0(e){let t=e[e.length-1];return t?t.text:""}function rn(e){let t=e.rule.selectors,n=e.rule.excludeTags,a=e.rule.additionalExcludeTags,r=e.rule.excludeSelectors,u=e.rule.additionalExcludeSelectors;return e.state.translationArea==="body"&&(t=[],r=[]),{globalStyles:e.rule.globalStyles,globalAttributes:e.rule.globalAttributes,selectors:t,skipEditableCheck:e.rule.skipEditableCheck,lineBreakMaxTextCount:e.rule.lineBreakMaxTextCount,isTransformPreTagNewLine:e.rule.isTransformPreTagNewLine,excludeSelectors:n.concat(a).map(i=>i.toLowerCase()).filter(i=>i!=="code"&&i!=="img").concat(r).concat(u),blockSelectors:e.rule.allBlockTags.map(i=>i.toLowerCase()).concat(e.rule.extraBlockSelectors),extraBlockSelectors:e.rule.extraBlockSelectors,extraInlineSelectors:e.rule.extraInlineSelectors.concat(e.rule.additionalInlineSelectors),stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(i=>i.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)}}var p9={sanitize:e=>e};function Ho(e,t){e.interruptEffectDOM||(e.walkContainer({id:e.id,container:t,filterRule:rn(e.ctx),onParagraph:mu.bind(null,e),onFrame:n=>{q0(e,n,!0)},onIgnoreElement:n=>{e.ignoreResizeObserver?.observe(n)}}),ja&&nt(t,"consumeContainer",e.id))}function q0(e,t,n){try{if(e.injectCssToDocument(t,e.ctx),t instanceof HTMLIFrameElement){if(!Xa(t))return;H.debug("onFrame fragment",t);let a=t.contentWindow?.document.body;a&&(cr(a,e,n),e.dynamicContainerObserver?.observe(a,{childList:!0,subtree:!0}))}else H.debug("onFrame shadowRoot",t.host),cr(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0})}catch{}}function cr(e,t,n=!0){let{globalStyles:a,globalAttributes:r}=rn(t.ctx),u=0;if(l(t,e,n))return;if(En(e)&&i(e)){o(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,s=>(En(s)&&(a&&_0(s,a),r&&R0(s,r)),l(t,s,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(Ut.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode();){Ut.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let s=c.currentNode;if(i(s))for(o(s);;){if(c.nextSibling()){let g=c.currentNode;if(Ut.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),i(g)){o(g);continue}else break}if(!c.parentNode())return}}}catch{}if(u==0&&e instanceof HTMLElement){o(e);return}return t.observeContainers;function o(c){Ut.clearMark(c),u++,t.immediateTranslateCapacity>=0?Ho(t,c):(ja&&nt(c,"observeContainer",t.id),t.containerVisibleObserver?.observe(c))}function i(c){let s=c.nodeName.toLowerCase();if(c.shadowRoot)return q0(t,c.shadowRoot,n),!1;if(s==="iframe")return q0(t,c,n),!1;if(["script","#document-fragment","img"].includes(s))return!1;let g=t.containerRule;if(g.selectors&&g.selectors?.length>0)return jo(c,g.selectors);if(g.pageHeight){let p=c.scrollHeight;if(p>0&&p0)return!0}return!1}function l(c,s,g){if(s.nodeName.toLowerCase()=="script")return s.childNodes.length==0||s.childNodes.length==1&&s.childNodes[0].nodeType==Node.TEXT_NODE;if(s.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(s.nodeType!==Node.ELEMENT_NODE||g&&Ut.isMarked(s,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&s.nodeName==="PRE")return!1;let f=rn(c.ctx);return!!O0(s,{excludeSelectors:f.excludeSelectors,selectors:f.selectors,stayOriginalSelectors:f.stayOriginalSelectors})}}function W0(e,t){if(!e.targetNodes)return;let n=e.state||"original",a=e.commonAncestorContainer;if(!Ut.isMarked(a,e.ctxId))return;let r=a.contains(e.rootNodes[0]),u=a.contains(e.targetNodes[0]);if(r&&u)n="dual";else if(r)n="original";else if(u)n="translation";else return;if(t!=n){e.state=t;try{if(n=="dual"&&t=="translation"&&(zo(e.rootNodes),Jg(e.commonAncestorContainer)),n=="original"&&t=="translation"){let o=H0(e.rootNodes);if(zo(e.rootNodes),Yg(o))return;lr(o,a,e.targetNodes||[]),Jg(e.commonAncestorContainer)}if(n=="translation"&&t=="dual"){let o=e.targetNodes[0];lr(o,a,e.rootNodes||[]),Qg(e.commonAncestorContainer)}if(n=="original"&&t=="dual"){let o=H0(e.rootNodes);if(Yg(o))return;lr(o,a,e.targetNodes||[]),Qg(e.commonAncestorContainer)}if(n=="translation"&&t=="original"){let o=H0(e.targetNodes);zo(e.targetNodes),lr(o,a,e.rootNodes||[])}n=="dual"&&t=="original"&&zo(e.targetNodes)}catch(o){H.error(o)}}}function Yg(e){return!e||!En(e)?!1:e.classList.contains(Wt)}function Jg(e){if(!En(e))return;e.querySelectorAll("font[class*=immersive-translate-target-translation]").forEach(a=>{nt(a,"immersiveTranslateClassBak",a.className),a.className="notranslate immersive-translate-target-dual"});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.add("immersive-translate-state-dual")}function Qg(e){if(!En(e))return;e.querySelectorAll("font[class*=immersive-translate-target-dual]").forEach(a=>{let r=Qa(a,"immersiveTranslateClassBak");po(a,"immersiveTranslateClassBak"),a.className=r});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.remove("immersive-translate-state-dual")}function H0(e){return e?e[e.length-1].nextSibling:null}function zo(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function lr(e,t,n){let a=e;t&&(a?n.forEach(r=>{a.parentNode?.insertBefore(r,a)}):n.forEach(r=>{t.appendChild(r)}))}var f9=yt(K0,300);async function mu(e,t,n=!1){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||h9(t.rootNodes)||t.stepState>=2)return;t.stepState=2,ja&&nt(a,"onParseParagraph",e.id);let{ctx:r}=e,{rule:u}=r,o=Za(r),i=Uo(t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:o,stayOriginalSelectors:r.rule.stayOriginalTags.concat(r.rule.stayOriginalTags).map(c=>c.toLowerCase()).concat(r.rule.stayOriginalSelectors).concat(r.rule.additionalStayOriginalSelectors)});if(!i)return;t.variables=i?.variables||{},t.text=i?.text;let l=await G0(t,{excludeLanguages:r?.config?.translationLanguagePattern?.excludeMatches||[],targetLanguage:r.targetLanguage,noTranslateRegexp:r.rule.noTranslateRegexp,delimiters:Io(r.config.translationServices[r.translationService]?.placeholderDelimiters),minTextCount:n||r.state.translationArea==="body"?2:u.paragraphMinTextCount,minWordCount:n||r.state.translationArea==="body"?1:u.paragraphMinWordCount,isDetectParagraphLanguage:r.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:r.rule.ignoreZhCNandZhTW});if(l){if(H.debug("on paragraph",l.text,l),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(l))return;a.paragraphs.push(l),e.immediateTranslateCapacity>0||n?(b9(e,t.text),$0(e,t)):(ja&&nt(a,"observeParagraph",e.id),e.observeParagraphs.push(l),e.paragraphVisibleObserver?.observe(a))}return l}function h9(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?En(t)&&t.classList.contains(Wt):!1}function b9(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function $0(e,t){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let n=e.autoIncreaseParagraphId++;t.id=n.toString(),e.paragraphEntities[n]=t,e.paragraphQueue.push(n.toString()),ja&&nt(t.commonAncestorContainer,"consumeParagraph",e.id),f9.call(e,e.ctx)}async function K0(e){if(this.interruptEffectDOM)return;let t=this.paragraphQueue;this.paragraphQueue=[];let n=[];for(let a=0;a0)try{await sa(a,t,(r,u,o)=>{let i=o.id,l=y9(e,i.toString());l&&x9.call(null,r,u,o,l,t,n)})}catch(r){H.error("translateCurrentQueue error",r);return}}function y9(e,t){return e.find(n=>n.id===t)}function x9(e,t,n,a,r,u){let o=!1,i=a;if(ir(i.commonAncestorContainer,n.id)?.remove(),i&&(e||!t)){e||(H.error("translate error",n,e,t),e=new Error("no response from server"));let{rule:l}=r,c=n.id,s=document.createElement(l.targetWrapperTag);nt(s,w4,c.toString()),s.classList.add("notranslate",Wt,Wt+"-error"),s.setAttribute("translate","no"),s.setAttribute("lang",r.targetLanguage);let g=a.rootNodes[a.rootNodes.length-1].nextSibling;lr(g,a.commonAncestorContainer,[s]),E9(r,e);let p=e.message.replaceAll(` -`,"");if(p=p.replaceAll('"',"""),i&&(i.error=new Error(p)),s){let f=Un(Ot,"retryAllParagraphs",r.config.interfaceLanguage,"zh-CN"),d=Un(Ot,"errorTooltipTitle",r.config.interfaceLanguage,"zh-CN"),b=`<${l.targetWrapperTag} class="${Q}-error notranslate"><${l.targetWrapperTag} class="${Q}-error-wrapper">\u{1F504}  \u2753`;s.innerHTML=Re.sanitize(b)}}else if(a){if(i.error=void 0,a.targetText=t?.text||"",!(a.text?.toLocaleLowerCase()==a.targetText?.toLocaleLowerCase())){let c=Vg(a,r),s=document.createElement(r.rule.targetWrapperTag);s.classList.add("notranslate",Wt),s.setAttribute("lang",r.targetLanguage),s.setAttribute(vn,"1");let g=p9.sanitize(c);s.innerHTML=g,a.targetNodes=[s],W0(a,u)}o=!0}else H.error("paragraph not found",n.id);document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}))}async function G0(e,t){let{text:n}=e,a=await Je({text:n||"",minLength:15,pageLangs:[pt(),"en"]}),{targetLanguage:r}=t;if(!Ig({text:n||"",delimiters:t.delimiters,minWordCount:t.minWordCount,minTextCount:t.minTextCount,noTranslateRegexp:t.noTranslateRegexp}))return null;let o=t.excludeLanguages||[],i=Co();t.isDetectParagraphLanguage&&(i="auto");let l=pt(),c=a;c==="auto"&&!t.isDetectParagraphLanguage&&(c=l),e.languageByLocal=c,e.languageByClient=i;let s=i!=="auto"?i:c;return ra(s,r,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW})||o.length>0&&o.some(f=>ra(s,f,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW}))?null:e}function E9(e,t){if(t.message.startsWith("ProQuota:")){t.message=t.message.replace("ProQuota:","");let n=t.message;try{n=JSON.parse(t.message).error}catch(u){H.error(u)}t.message=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${t.message} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`;let a=e.translationService,r=a=="deepl"?"OpenAI":"Deepl";e.translationService=="openai"?a="OpenAI":e.translationService=="deepl"&&(a="Deepl"),document.dispatchEvent(new CustomEvent(zu,{detail:{type:"ProQuotaExceeded",subscriptionType:e.user?.subscription?.subscriptionType,translationService:a,anotherService:r,message:n}}))}}m();var T9=[];function Zg(e){T9.push(e)}m();function Xg(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(a){a.length>0&&(a[0].target.text.includes($u)||V0(e).catch(u=>{H.error("translateTitle error:",u.name,u.message,u.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var Wo="";async function V0(e){let t=document.title;if(!t||t.includes($u))return;Wo!==t&&(Wo=t);let n=await Je({text:t,pageLangs:[pt(),"en"]});if(!No(e,n))try{let a=await Aa({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n},e);a&&a.text&&(document.title=Wo+$u+a.text)}catch(a){throw a}}function e3(e){e.rule.isTranslateTitle&&(document.title=Wo)}m();var Y0="Original";function $e(){return Y0}function Pt(e){Y0=e,t3(Y0)}m();var J0;function n3(e){let t=e.ctx.rule.aiRule;if(H.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=rn(e.ctx),a=n.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);n.excludeSelectors.splice(a,1);let r,u;document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(p=>{p.translated=!0,gu(e,p,n)});let o=t.streamingDelayTime||100;J0=new MutationObserver(p=>{p.forEach(function(f){if(En(f.target)&&!l(f)&&(s(f.target),f.addedNodes&&f.addedNodes.length&&f.addedNodes.forEach(d=>{s(d)}),!c(f)&&i())){let d=f.target===u;if(t.streamingDeepChild&&!d&&(d=f.target.parentNode===u),!d)return;f.addedNodes.forEach(b=>{let C=b.previousSibling;!C||C.translated||(C.translated=!0,setTimeout(()=>{C.childNodes[0]?.translated||(H.debug("\u7FFB\u8BD1\u4E0A\u4E00\u4E2A\u6BB5\u843D",C),gu(e,C,n))},o))})}})}),J0.observe(document.body,{attributes:!0,childList:!0,subtree:!0});function i(){return!!(t.streamingChange&&t.streamingSelector&&r||t.streamingChange&&t.messageContainerSelector&&t.messageStreamEndSelector&&u&&!u.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector))}function l(p){return t.streamingSelector&&p.target===r&&p.type==="attributes"&&!xn(p.target,[t.streamingSelector])?(g(),!0):t.streamingSelector&&p.removedNodes.length>0&&u&&u!=r?(p.removedNodes?.forEach(f=>{f===r&&g()}),!0):t.messageContainerSelector&&t.messageStreamEndSelector&&u&&u.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector)?(g(),!0):!1}function c(p){if(t.streamingSelector&&p.target.querySelector(t.messageWrapperSelector||"")&&!r){let f=p.target;return f.translated||(f.translated=!0,setTimeout(()=>{r||f.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(d=>{d.translated||(d.translated=!0,gu(e,d,n))})},o)),!0}else if(t.messageContainerSelector&&p.target.querySelector(t.messageContainerSelector||"")){let f=p.target;if(f.translated)return!0;f.translated=!0,setTimeout(()=>{f.querySelectorAll(t.messageContainerSelector).forEach(d=>{t.messageStreamEndSelector&&!d.querySelector(t.messageStreamEndSelector)||d.translated||(d.translated=!0,gu(e,d,n))})},o)}return!1}function s(p){t.streamingSelector&&xn(p,[t.streamingSelector])&&(r=p,H.debug("streamingNode",r)),xn(p,[t.messageWrapperSelector])&&(u=p,H.debug("markdownNode",u))}function g(){u&&setTimeout(()=>{u.childNodes.forEach(p=>p.translated=!1),H.debug("\u7ED3\u675F\u7FFB\u8BD1\u5168\u90E8",u),gu(e,u,n),r=void 0,u=null},o)}}function gu(e,t,n){ca({id:e.id,container:t,filterRule:n,force:!0,onParagraph:a=>{mu(e,a,!0)},onFrame:()=>{},onIgnoreElement:()=>{}})}function a3(){J0?.disconnect()}var re=null;function Ko(){return re||null}function dr(e){C9(e),L9(e),k9(e),D9(e),sr(document,e),Pt("Translated"),S9(re),A9(re),Zg(zn),w9(re)}function C9(e){e.state.translationArea==="main"&&e.rule.initialSelectorGlobalAttributes&&qg(document.body,e.rule.initialSelectorGlobalAttributes,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph)}function w9(e){n3(e)}function v9(){a3()}function A9(e){e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0});let t=[];e.ctx.rule.mainFrameSelector&&(t=[...document.querySelectorAll(e.ctx.rule.mainFrameSelector||"")]),t.length<=0&&(t=[document.body]),t.forEach(n=>{cr(n,e)})}async function k9(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=Date.now(),a=new URL(e.url).hostname,r=e.localConfig.tempTranslationUrlMatches||[],u=r.findIndex(i=>i.match===a&&i.expiredAt>t),o=!1;u>-1||(r.push({match:a,expiredAt:t+e.config.tempTranslateDomainMinutes*60*1e3}),o=!0),o&&await nn({...e.localConfig,tempTranslationUrlMatches:[...r]})}}function S9(e){e.ctx.rule.isTranslateTitle&&(V0(e.ctx),e.titleDynamicObserver=Xg(e.ctx))}function D9(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function L9(e){let t=bn();re&&(t=re.id);let n=rn(e);re=re||{},re.ctx=e,re.id=t,re.paragraphQueue=re.paragraphQueue||[],re.rule={excludeSelectors:n.excludeSelectors||[],selectors:n.selectors||[]},re.currentUrl=window.location.href,re.containerRule={pageHeight:screen.availHeight,selectors:n.selectors},re.translationService=e.translationService,re.paragraphEntities=re.paragraphEntities||{},re.autoIncreaseParagraphId=re.autoIncreaseParagraphId||1,re.interruptEffectDOM=!1,re.urlChangeDelay=e.rule.urlChangeDelay,re.immediateTranslateCapacity=e.state.immediateTranslationTextCount,re.observeContainers=re.observeContainers||[],re.observeParagraphs=re.observeParagraphs||[],re.dynamicContainerObserver=re.dynamicContainerObserver||B9(re),re.ignoreResizeObserver=re.ignoreResizeObserver||R9(re),re.containerVisibleObserver=re.containerVisibleObserver||M9(re),re.paragraphVisibleObserver=re.paragraphVisibleObserver||F9(re),re.injectCssToDocument=$o,re.walkContainer=ca,re.translateState=e.state.translationMode||e.config.translationMode||"dual",re.allInlineWindows=[window],window.onerror=P9(re,e),window.immersiveTranslateSwitchTranslateState=Z0.bind(re)}function u3(e,t){t.getRootNode()instanceof ShadowRoot?$o(t.getRootNode(),e):$o(t.ownerDocument,e),Q0(e)}function Q0(e){if(re)return;re={},re.ctx=e,re.id=bn(),re.paragraphQueue=[],re.injectCssToDocument=$o;let t=rn(e);re.rule={excludeSelectors:t.excludeSelectors,selectors:t.selectors||[]},re.translationService=e.mouseHoverTranslationService,re.currentUrl=window.location.href,re.paragraphEntities={},re.autoIncreaseParagraphId=1,re.interruptEffectDOM=!1,re.urlChangeDelay=e.rule.urlChangeDelay,re.translateState=e.config.translationMode||"dual",re.observeContainers=[],re.observeParagraphs=[],re.allInlineWindows=[window],window.switchTranslateState=Z0.bind(re)}function zn(e=!0){re&&(Pt("Original"),v9(),re.interruptEffectDOM=!0,re.ignoreResizeObserver?.disconnect(),re.dynamicContainerObserver?.disconnect(),re.containerVisibleObserver?.disconnect(),re.paragraphVisibleObserver?.disconnect(),re.titleDynamicObserver?.disconnect(),e3(re.ctx),Bg(),Rg(),e&&Z0.call(re,"original"),Object.values(re.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),re=null)}function P9(e,t){e.interruptEffectDOM=!1;let n;return function(a){let r=a.message,u=!1;return r?.indexOf("Minified React error")>=0&&(u=!0),u&&(clearTimeout(n),zn(),n=setTimeout(()=>{dr(t)},e.urlChangeDelay||2e3)),!0}}function M9(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{a.intersectionRatio>0&&(Ho(e,a.target),n.unobserve(a.target))})})}function F9(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{if(a.intersectionRatio>0){let r=a.target;(r.paragraphs||[]).forEach(o=>{$0(e,o)}),n.unobserve(r)}})})}var r3;function _9(e){if(e.urlChangeDelay<=0)return!1;let n=(window.location.href||"").split("#")[0];return e.currentUrl.split("#")[0]!=n?(clearTimeout(r3),e.translateState=="original"?!1:(zn(e.urlChangeDelay>20),r3=setTimeout(()=>{let r=e.ctx;dr(r)},e.urlChangeDelay),!0)):!1}function B9(e){return new MutationObserver(t=>{if(!_9(e)&&!e.interruptEffectDOM)for(let n of t){let a=e.ctx.rule.mutationObserverLimitTargetSelectors;if(a.length>0&&!xn(n.target,a))return;if((n.addedNodes||[]).length<=0||n.target.nodeType!==Node.ELEMENT_NODE||!Ut.isSkipMarkEle(n.target)&&!Ut.isMarked(n.target,e.id))continue;let u=(n.target?.paragraphs||[]).reduce((o,i)=>{let l=i.rootNodes||[],c=i.targetNodes||[];return[...o,...l,...c]},[]);if(n.addedNodes.length>0&&n.addedNodes.length===n.target.childNodes.length&&xn(n.target,e.ctx.rule.mutationObserverContainerSelectors)){Ut.clearMark(n.target),n.target.paragraphs=void 0,Ho(e,n.target);return}n.addedNodes.forEach((o,i)=>{o.nodeType===Node.ELEMENT_NODE&&(u.includes(o)||Lt(o,e.ctx.rule.mutationExcludeSelectors)||cr(o,e))})}})}function R9(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let a of t){if(a.target.nodeType!==Node.ELEMENT_NODE)return;let r=a.target,u=globalThis.getComputedStyle(r);B0(u)||(n.unobserve(a.target),cr(r,e))}})}function Z0(e){this.translateState=e,Object.values(this.paragraphEntities).forEach(t=>{W0(t,e)}),e=="original"&&document.querySelectorAll(`.${Wt}`).forEach(t=>t.remove())}function $o(e,t){if(e instanceof HTMLIFrameElement){sr(e.contentDocument,t);return}sr(e,t)}async function o3(e){let t=tt(),n="auto";if(he()){let a="";e.rule.isEbook||e.rule.isEbookBuilder?(a=Rs(e.mainFrame),n=await Je({text:a,pageLangs:["en"]})):(a=Ja(e.mainFrame).slice(0,1e3),n=await Je({text:a,pageLangs:[Ea(),"en"]}))}else if(t)n=await Je({text:Ja(e.mainFrame).slice(0,1e3),pageLangs:[Ea(),"en"]});else if(e.rule.isEbook||e.rule.isEbookBuilder){let a="";a=Rs(e.mainFrame),n=await Je({text:a,pageLangs:["en"]})}else n=await s3();return n==="auto"&&(n=await $g()),nm(n),n}async function i3(){if(!re)return;document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=re.paragraphEntities,t=Object.keys(e);for(let n of t){let a=e[n];if(a.error){re.paragraphQueue.push(n);let u=a.commonAncestorContainer.querySelector(`[${qu}='${n}']`);u&&u.remove()}}K0.call(re,re.ctx)}m();m();var l3={"zh-CN":{"languages.en":"\u82F1\u8BED","languages.ja":"\u65E5\u8BED","languages.ko":"\u97E9\u8BED","languages.es":"\u897F\u73ED\u7259\u8BED","languages.fr":"\u6CD5\u8BED","languages.de":"\u5FB7\u8BED","languages.it":"\u610F\u5927\u5229\u8BED","languages.pt":"\u8461\u8404\u7259\u8BED","languages.ru":"\u4FC4\u8BED","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"},"zh-TW":{"languages.en":"\u82F1\u8A9E","languages.ja":"\u65E5\u8A9E","languages.ko":"\u97D3\u8A9E","languages.es":"\u897F\u73ED\u7259\u8A9E","languages.fr":"\u6CD5\u8A9E","languages.de":"\u5FB7\u8A9E","languages.it":"\u610F\u5927\u5229\u8A9E","languages.pt":"\u8461\u8404\u7259\u8A9E","languages.ru":"\u4FC4\u8A9E","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"}},c3={...Ot,"zh-CN":{...l3["zh-CN"],...Ot["zh-CN"]},"zh-TW":{...l3["zh-TW"],...Ot["zh-TW"]}},Go=c3;function mr(e,t,n){return Un(c3,e,t,Ku,n)}var Vo=(e,t,n,a)=>{let r=F4[e]||e,u=_4[e],o=B4[e],i={"zh-CN":u,"zh-TW":o,en:r};if(n)return i[e]?i[e]:r;if(i[t]){let l=i[t];return a||e==="auto"||e==="placeholder"?l:`${l} (${r})`}else return r};m();m();function gr(e){pr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(a=>{H.error("send content message request failed",e,a)}),document.querySelectorAll("iframe").forEach(a=>{a.contentWindow&&a.contentWindow.postMessage({author:Uu,payload:e},"*")});let n=new CustomEvent(Vn,{detail:e});globalThis.document.dispatchEvent(n)}function X0(e){let t=e.shortcuts||{},a=Object.keys(t).reduce((u,o)=>(u[t[o]]=o,u),{}),r=Object.keys(a);for(let u of r){let o=u.replace(/MacCtrl/ig,"Ctrl");o&&Ve(o,i=>{i.preventDefault(),gr({method:a[u],data:{trigger:"shortcut"}})})}}m();m();m();m();var fr={},O9={root:"",lang:"en",fallbackLang:"en"};function el(e,t){let n=Object.assign({},O9,e);fr=t||fr;let[a,r]=Te(n.lang),[u,o]=Te(fr),[i,l]=Te(!1),c=g=>{if(u.hasOwnProperty(g))return;l(!1);let p=Kg(n.root||"",g);n.getUrl&&(p=n.getUrl(n.root||"",g),fetch(p).then(f=>f.json()).then(f=>{fr[g]=f,o({...fr}),l(!0)}).catch(f=>{o({...fr}),l(!0)}))};return Ne(()=>{c(n.fallbackLang||"en"),c(a)},[a]),{lang:a,setLang:r,t:(g,p)=>{if(!u.hasOwnProperty(a))return g;let f=du(u,a,g);return f===g&&a!==n.fallbackLang&&(f=du(u,n.fallbackLang,g)),I0(f,p)},isReady:i}}m();m();var I9=0;function V(e,t,n,a,r){var u,o,i={};for(o in t)o=="ref"?u=t[o]:i[o]=t[o];var l={type:e,props:i,key:n,ref:u,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--I9,__source:r,__self:a};if(typeof e=="function"&&(u=e.defaultProps))for(o in u)i[o]===void 0&&(i[o]=u[o]);return Ae.vnode&&Ae.vnode(l),l}var nl=Du(null),tl={root:"assets",lang:"en",fallbackLang:"en"},Yo=e=>{let{t,setLang:n,lang:a,isReady:r}=el({root:e.root||tl.root,lang:e.lang||tl.lang,fallbackLang:e.fallbackLang||tl.fallbackLang,getUrl:e.getUrl},e.translations);return V(nl.Provider,{value:{t,setLang:n,lang:a,isReady:r},children:e.children})};m();m();m();function al(){return V("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[V("path",{d:"M10.3873 2.29166C10.6319 2.29193 10.8664 2.38929 11.0392 2.56234C11.2121 2.73539 11.3092 2.96998 11.3092 3.21457V4.07811L12.1175 4.38332C12.7273 4.61277 13.2952 4.94074 13.7988 5.35416L14.4675 5.90207L15.2165 5.46978L15.2394 5.45624C15.3787 5.37479 15.5373 5.332 15.6988 5.33228C15.861 5.3325 16.0203 5.37522 16.1608 5.45618C16.3014 5.53715 16.4182 5.65353 16.4998 5.79374L16.8925 6.47395C17.0145 6.68593 17.0475 6.93764 16.9843 7.17391C16.921 7.41019 16.7666 7.61173 16.555 7.73436L16.5321 7.74791L15.7842 8.17916L15.9227 9.0302C16.031 9.67953 16.031 10.3423 15.9227 10.9917L15.781 11.8458L16.531 12.2781L16.5467 12.2875C16.758 12.4101 16.9122 12.6115 16.9754 12.8475C17.0387 13.0835 17.0059 13.335 16.8842 13.5469L16.5154 14.1844C16.3932 14.3961 16.1919 14.5507 15.9558 14.6141C15.7196 14.6776 15.468 14.6448 15.256 14.5229L15.2415 14.5135L14.4904 14.0802L13.8206 14.6323C13.3125 15.0519 12.7384 15.3845 12.1217 15.6167L11.3133 15.9219V16.7864C11.3132 16.9078 11.2891 17.028 11.2425 17.14C11.1958 17.2521 11.1276 17.3539 11.0415 17.4395C10.9555 17.5251 10.8535 17.5929 10.7412 17.6391C10.6289 17.6852 10.5087 17.7087 10.3873 17.7083H9.61229C9.3677 17.708 9.13322 17.6107 8.96037 17.4376C8.78751 17.2646 8.69042 17.03 8.69042 16.7854V15.9219L7.88209 15.6167C7.27233 15.3872 6.70437 15.0592 6.20084 14.6458L5.53209 14.0979L4.78313 14.5302L4.76021 14.5437C4.62084 14.6252 4.46226 14.668 4.30084 14.6677C4.13864 14.6675 3.97932 14.6248 3.83877 14.5438C3.69823 14.4628 3.58135 14.3464 3.49979 14.2062L3.10709 13.526C2.98505 13.3141 2.95205 13.0623 3.01532 12.8261C3.07858 12.5898 3.23296 12.3882 3.44459 12.2656L3.4675 12.2521L4.21542 11.8208L4.07688 10.9698C3.96856 10.3204 3.96856 9.65766 4.07688 9.00832L4.21854 8.1552L3.46959 7.72186L3.45709 7.70832C3.24914 7.58489 3.09787 7.38486 3.03575 7.15116C2.97362 6.91746 3.00559 6.66872 3.12479 6.45832L3.49354 5.82082C3.57469 5.68049 3.69133 5.56397 3.83175 5.48297C3.97217 5.40197 4.13144 5.35934 4.29354 5.35936C4.45497 5.35908 4.61355 5.40187 4.75292 5.48332L4.7675 5.49166L5.51854 5.92499L6.18834 5.37291C6.69646 4.95329 7.27054 4.62067 7.88729 4.38853L8.69563 4.08332V3.21874C8.69452 2.97433 8.79041 2.73945 8.96226 2.56565C9.13411 2.39185 9.36788 2.29331 9.61229 2.29166H10.3873ZM10.3873 1.04166H9.61229C9.03636 1.04193 8.4841 1.27084 8.07685 1.67809C7.66961 2.08533 7.4407 2.6376 7.44042 3.21353C6.69518 3.49423 6.00146 3.89618 5.38729 4.40312L5.37271 4.39478C4.87362 4.10685 4.2806 4.02894 3.72407 4.17818C3.16753 4.32742 2.69307 4.6916 2.405 5.19062L2.03729 5.83332C1.74928 6.33229 1.67121 6.92522 1.82025 7.48173C1.96929 8.03825 2.33324 8.51279 2.83209 8.80103L2.84771 8.80936C2.78023 9.20444 2.74539 9.6044 2.74354 10.0052C2.74367 10.3971 2.77572 10.7883 2.83938 11.175L2.81646 11.1885C2.56927 11.3311 2.35259 11.5209 2.1788 11.7472C2.00501 11.9735 1.87752 12.2319 1.80361 12.5075C1.7297 12.7831 1.71083 13.0706 1.74807 13.3535C1.7853 13.6364 1.87792 13.9091 2.02063 14.1562L2.41334 14.8364C2.55638 15.0837 2.74681 15.3003 2.97371 15.4738C3.20061 15.6473 3.45953 15.7743 3.73561 15.8475C4.01169 15.9208 4.29952 15.9388 4.58259 15.9007C4.86566 15.8625 5.13841 15.7688 5.38521 15.625L5.40813 15.6114C6.01714 16.1105 6.70362 16.5067 7.44042 16.7844C7.44028 17.0697 7.49635 17.3523 7.60542 17.616C7.7145 17.8797 7.87444 18.1193 8.07612 18.3212C8.27779 18.523 8.51726 18.6832 8.78084 18.7925C9.04441 18.9018 9.32694 18.9582 9.61229 18.9583H10.3873C10.9632 18.958 11.5155 18.7291 11.9227 18.3219C12.33 17.9146 12.5589 17.3624 12.5592 16.7864C13.3043 16.5061 13.9981 16.1045 14.6123 15.5979L14.6269 15.6062C15.126 15.8942 15.719 15.9721 16.2755 15.8228C16.8321 15.6736 17.3065 15.3094 17.5946 14.8104L17.9623 14.1729C18.2503 13.6739 18.3284 13.081 18.1793 12.5245C18.0303 11.968 17.6663 11.4934 17.1675 11.2052L17.1519 11.1969C17.2194 10.8018 17.2542 10.4018 17.256 10.001C17.2559 9.60915 17.2239 9.21792 17.1602 8.83124L17.1831 8.8177C17.4303 8.67516 17.647 8.48531 17.8208 8.259C17.9946 8.03269 18.1221 7.77435 18.196 7.49875C18.2699 7.22314 18.2888 6.93568 18.2515 6.65278C18.2143 6.36987 18.1217 6.09708 17.979 5.84999L17.5863 5.16978C17.4437 4.92202 17.2537 4.70485 17.027 4.53072C16.8003 4.3566 16.5415 4.22895 16.2654 4.1551C15.9893 4.08126 15.7013 4.06267 15.418 4.1004C15.1346 4.13814 14.8616 4.23145 14.6144 4.37499L14.5915 4.38853C13.9824 3.88946 13.296 3.49327 12.5592 3.21561C12.5593 2.93026 12.5032 2.64768 12.3942 2.384C12.2851 2.12031 12.1252 1.8807 11.9235 1.67883C11.7218 1.47695 11.4823 1.31678 11.2188 1.20746C10.9552 1.09813 10.6726 1.04179 10.3873 1.04166Z",fill:"#666666"}),V("path",{d:"M10.0003 7.91666C10.4124 7.91666 10.8152 8.03884 11.1578 8.26776C11.5004 8.49668 11.7674 8.82205 11.9251 9.20273C12.0828 9.58341 12.124 10.0023 12.0436 10.4064C11.9632 10.8106 11.7648 11.1818 11.4735 11.4731C11.1821 11.7645 10.8109 11.9629 10.4068 12.0433C10.0026 12.1237 9.58375 12.0824 9.20307 11.9247C8.82239 11.7671 8.49702 11.5 8.2681 11.1574C8.03918 10.8148 7.91699 10.412 7.91699 9.99999C7.91699 9.44745 8.13649 8.91755 8.52719 8.52685C8.91789 8.13615 9.44779 7.91666 10.0003 7.91666ZM10.0003 6.66666C9.34106 6.66666 8.69659 6.86215 8.14843 7.22842C7.60026 7.5947 7.17302 8.11529 6.92073 8.72438C6.66844 9.33346 6.60243 10.0037 6.73104 10.6503C6.85966 11.2969 7.17713 11.8908 7.6433 12.357C8.10948 12.8232 8.70342 13.1407 9.35003 13.2693C9.99663 13.3979 10.6669 13.3319 11.2759 13.0796C11.885 12.8273 12.4056 12.4001 12.7719 11.8519C13.1382 11.3037 13.3337 10.6593 13.3337 9.99999C13.3337 9.11593 12.9825 8.26809 12.3573 7.64297C11.7322 7.01785 10.8844 6.66666 10.0003 6.66666Z",fill:"#666666"})]})}m();function d3(e,t=2e3){return n=>{let a,r=0;return u=>{++r==e&&(n(u),r=0),clearTimeout(a),a=setTimeout(()=>r=0,t)}}}m();function m3(e){let t=e.split(".");return t.length>2?(t[0]="*",t.join(".")):null}m();function g3(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}m();m();function wt(){return _u(nl)}function Hn(e){let{items:t,maxWidth:n,className:a}=e,{lang:r}=wt();return n=n||(r==="en"?144:160),V("select",{autoComplete:"off",class:a||"min-select",style:{maxWidth:`${n}px`},value:t.find(u=>u.selected)?.value,onChange:u=>{let o=u.target.value,i=t.find(l=>l.value===o);i&&i.onSelected(i)},children:t.map((u,o)=>V("option",{value:u.value,selected:u.selected,children:u.label},"selectlink"+o))})}m();var Jo="DROP_DOWN_DEFAULT_VALUE";function rl(e){let{showArrow:t,onSelected:n,className:a,menus:r,maxWidth:u}=e;a=a||"",t=t??!0,u=u||80;let o=Fu(null);return V("select",{ref:o,autoComplete:"off",class:`text-label min-select ${t?"":"min-select-no-arrow"} ${a||""}`,value:Jo,style:{maxWidth:`${u}px`},onChange:i=>{i.preventDefault();let l=i.target.value;if(o.current&&l!==Jo){o.current.value=Jo,o.current?.dispatchEvent(new Event("change"));let c=r.find(s=>s.value===l);c&&n(c)}},children:[{value:Jo,label:e.label}].concat(r).map((i,l)=>V("option",{value:i.value,children:i.label},"option-"+l))})}m();function ul(e){let{field:t,onChange:n,value:a}=e;a=a||t.default||"";let{t:r}=wt(),u=t.name;return t.label&&(u=t.label),t.labelKey&&(u=r(t.labelKey)),t.type==="select"?V("div",{class:"flex justify-between items-center mb-2",children:[V("label",{class:"inline-block",children:[u,"\uFF1A"]}),V(Hn,{items:t.options.map(o=>({label:`${o.label?r(o.label):o.value}`,value:o.value,selected:a===o.value,onSelected:()=>{n(o.value)}}))})]}):null}m();m();function pu(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var N9=({date:e})=>{let{t}=wt(),[n,a]=Te(!1);return Ne(()=>{setTimeout(()=>{a(!0)},5e3)},[]),n?null:V("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},j9=({minVersion:e})=>{let{t}=wt();return V("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},U9=()=>{let{t:e}=wt();return V("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:"https://immersivetranslate.com/docs/installation/"})}})},z9=({message:e,handleSyncing:t,date:n})=>{let{t:a}=wt();return V("p",{class:"text-sm",children:[a("failToSyncRules")," ",V("a",{onClick:t,children:a("retry")}),V("br",{}),a("failedReason"),"\uFF1A",e,V("br",{}),a("currentRuleVersion"),"\uFF1A",n]})};function ol(e){let{isShowError:t,request:n}=e,[a,r]=Te(null),{t:u}=wt(),[o,i]=Te(null),[l,c]=Te(null),[s,g]=Te(""),[p,f]=Te(!1),[d,b]=Te(!1),[C,h]=Te(!1),[A,S]=Te(null),[U,O]=Te(null),y=tn(),T=async()=>{g("");let k=o;if(o===null)try{let v=await n({url:Mr});v?(i(v),k=v,f(!0)):(g(u("unknownError")),c(null))}catch(v){c(null),g(v.message);return}k!==null?(e.setStorageBuildinConfig(k),c(!1),r(k.buildinConfigUpdatedAt)):(g(u("canNotFetchRemoteRule")),c(null))};return Ne(()=>{hn().then(k=>{let v=k.buildinConfigUpdatedAt;S(k);let E=new Date(v);if(r(v),y==="0.0.0"){h(!0);return}n({url:Mr}).then(R=>{let F=R,w=F.minVersion,B=y;i(F);let I=F.latestVersion;if(I&&(pu(B,I)?O(!0):O(!1)),pu(B,w)){let N=F.buildinConfigUpdatedAt;new Date(N)>E?(c(!0),T()):c(!1)}else b(!0),c(null)}).catch(R=>{c(null),g(R.message)})})},[]),Ne(()=>{hn().then(k=>{S(k)})},[a]),A?V("div",{class:"text-sm mt-2",style:{maxWidth:218},children:C?V(U9,{}):s?t===!1?null:V(z9,{handleSyncing:T,message:s,date:a||""}):d?t===!1?null:V(j9,{minVersion:o.minVersion}):l===null||l===!0?null:p?V(N9,{date:a}):null}):null}m();var Qo='',il="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMTEuNjIzLS4zMTguODQ1Yy0uMjA4LjIyMi0uNTI3LjMzMy0uOTI4LjMzM2gtMS4zM1Y5LjI0MmgxLjMzWm05Ljg0NiAxLjc4OGMuMzg4IDAgLjY2NS4xNTIuODQ1LjQ1Ny4xNTIuMjY0LjIzNS41ODIuMjYzLjk4NHYuMzE5YzAgLjQ5OS0uMDgzLjg4Ny0uMjYzIDEuMTkyLS4xOC4zMDQtLjQ1Ny40NTctLjgzLjQ1Ny0uMzg5IDAtLjY2Ni0uMTUzLS44NDYtLjQ0NC0uMTUyLS4yNjMtLjIzNS0uNTk1LS4yNjMtMS4wMTF2LS4yOTFjMC0uNDg1LjA4My0uODczLjI2My0xLjE3OC4xOC0uMzA1LjQ0My0uNDg1LjgzMS0uNDg1Wm0tMy40MDctMS4xMzZhMS4xNyAxLjE3IDAgMCAwLS43MDYuMjM1IDEuNDgyIDEuNDgyIDAgMCAwLS40MTUuNWwtLjA4My4xNjUtLjA3LS44MDNoLTEuMzU3djUuNDMyaDEuNDU0di0zLjY1OWEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiA4LjEySDQuMTE0djcuMzE3aDEuNDY4VjEyLjc5aDEuMzNjLjg0NCAwIDEuNDk1LS4yMDggMS45OC0uNjM4LjQ4NS0uNDMuNzItLjk4My43Mi0xLjY5cy0uMjM1LTEuMjYxLS43Mi0xLjY5Yy0uNDQzLS4zODktMS4wMzktLjYxLTEuNzczLS42MzhsLS4yMjEtLjAxNFptOS44NDcgMS43NzRjLS44MDMgMC0xLjQyNi4yNjMtMS44ODMuNzc2LS40MTYuNDctLjYzNyAxLjA2Ny0uNjc5IDEuNzczdi4zMzNjMCAuODE4LjIyMiAxLjQ4My42NzkgMS45OTUuNDU3LjUxMyAxLjA4Ljc3NiAxLjg4My43NzYuODA0IDAgMS40MjctLjI2MyAxLjg4NC0uNzc2LjQxNS0uNDcuNjM3LTEuMDUzLjY3OC0xLjc3M3YtLjMzM2MwLS44MTctLjIyMS0xLjQ4Mi0uNjc4LTEuOTk1LS40NTctLjUxMy0xLjA4LS43NzYtMS44ODQtLjc3NlpNMTguMDAzIDZhNiA2IDAgMCAxIDAgMTJIMFY5LjQyM0EzLjQyIDMuNDIgMCAwIDEgMy40MiA2aDE0LjU4M1oiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSI3LjUiIHgyPSIyMiIgeTE9IjE5IiB5Mj0iNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMyMjIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM2OTY5NjkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=",sl="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzk5OSIgZD0iTTYuODk3IDMuMjQyYy40MTUgMCAuNzIuMTExLjkyOC4zNDcuMjA3LjIzNS4zMTguNTI2LjMxOC44NzMgMCAuMzQ2LS4xMS42MjMtLjMxOC44NDUtLjIwOC4yMjItLjUyNy4zMzMtLjkyOC4zMzNoLTEuMzNWMy4yNDJoMS4zM1ptOS44NDYgMS43ODhjLjM4OCAwIC42NjUuMTUyLjg0NS40NTcuMTUyLjI2NC4yMzUuNTgyLjI2My45ODR2LjMxOWMwIC40OTktLjA4My44ODctLjI2MyAxLjE5Mi0uMTguMzA0LS40NTcuNDU3LS44My40NTctLjM4OSAwLS42NjYtLjE1My0uODQ2LS40NDQtLjE1Mi0uMjYzLS4yMzUtLjU5NS0uMjYzLTEuMDExdi0uMjkxYzAtLjQ4NS4wODMtLjg3My4yNjMtMS4xNzguMTgtLjMwNS40NDMtLjQ4NS44MzEtLjQ4NVptLTMuNDA3LTEuMTM2YTEuMTcgMS4xNyAwIDAgMC0uNzA2LjIzNSAxLjQ4MiAxLjQ4MiAwIDAgMC0uNDE1LjVsLS4wODMuMTY1LS4wNy0uODAzaC0xLjM1N3Y1LjQzMmgxLjQ1NFY1Ljc2NGEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiAyLjEySDQuMTE0djcuMzE3aDEuNDY4VjYuNzloMS4zM2MuODQ0IDAgMS40OTUtLjIwOCAxLjk4LS42MzguNDg1LS40My43Mi0uOTgzLjcyLTEuNjlzLS4yMzUtMS4yNjEtLjcyLTEuNjljLS40NDMtLjM4OS0xLjAzOS0uNjEtMS43NzMtLjYzOGwtLjIyMS0uMDE0Wm05Ljg0NyAxLjc3NGMtLjgwMyAwLTEuNDI2LjI2My0xLjg4My43NzYtLjQxNi40Ny0uNjM3IDEuMDY3LS42NzkgMS43NzN2LjMzM2MwIC44MTguMjIyIDEuNDgzLjY3OSAxLjk5NS40NTcuNTEzIDEuMDguNzc2IDEuODgzLjc3Ni44MDQgMCAxLjQyNy0uMjYzIDEuODg0LS43NzYuNDE1LS40Ny42MzctMS4wNTMuNjc4LTEuNzczdi0uMzMzYzAtLjgxNy0uMjIxLTEuNDgzLS42NzgtMS45OTUtLjQ1Ny0uNTEzLTEuMDgtLjc3Ni0xLjg4NC0uNzc2Wk0xOC4wMDMgMGE2IDYgMCAwIDEgMCAxMkgwVjMuNDIzQTMuNDIgMy40MiAwIDAgMSAzLjQyIDBoMTQuNTgzWiIvPjwvc3ZnPg==";function fu(e){let t=tn(),{onTranslateTheMainPage:n,onUserConfigChange:a,request:r,onTranslateLocalHtmlFile:u,onSwitchTranslationMode:o,onTranslateLocalSubtitleFile:i,onSetBuildinConfig:l,pageStatus:c,openEbookBuilderPage:s,openPricingPage:g,openEbookViewerPage:p,config:f,openAboutPage:d,onTranslateTheWholePage:b,onToggleEnabled:C,openOptionsPage:h,ontranslateToThePageEndImmediately:A,onSetPageLanguage:S,onToggleTranslate:U,onTranslateLocalPdfFile:O,onTranslatePdf:y,onRestorePage:T,ctx:k,currentUrl:v,currentLang:E,onClose:R,onTranslatePage:F,onSetLocalConfig:w,onMouseTriggerChanged:B,errorMsg:I,disabledButton:N,noPermissionPDF:P}=e,x=a,[D,M]=Te(""),[q,j]=Te(I),[$,z]=Te(null),[ae,J]=Te(null),{t:Y,lang:pe}=wt(),fe=70;pe.startsWith("zh")||(fe=75);let ue=null,G=null,ie=null,me=null,ce=null,ye=null,Se=null,xe=null,Z=null,ke=null,Le=null,Oe=null;Ne(()=>{Nt.get(Qt,null).then(W=>{W?(z(W),J(en(W))):J(!1)}).catch(W=>{J(!1)})},[]);let Ue=!0,it=At();if(f){it&&f&&(Ue=f.generalRule.showSponsorOnSafari);let{translationService:W,translationServices:de,translationUrlPattern:Ke}=f;Bn[W]&&(xe=Ks("translationService",W,k)),de&&de[W]?Oe=de[W]||{}:Oe={};try{Z=new URL(v||"")}catch{}if(v&&Zo(v)){ke=m3(Z.hostname),Le=g3(v);let{matches:Pe,excludeMatches:Fe}=Ke;G=Pe.includes(ke),ue=Pe.includes(Z.hostname),me=Fe.includes(ke),ie=Fe.includes(Z.hostname),ye=Pe.includes(Le),Se=Fe.includes(Le)}}if(f&&E&&E!=="auto"){let{translationLanguagePattern:W}=f,{matches:de}=W;de.includes(E)?ce=!0:ce=!1}let _t=W=>{W.preventDefault(),h()},ga=W=>{x(de=>(de.alpha?M("Success disable alpha!"):M("Success enable alpha!"),{...de,alpha:!de.alpha}))},zt=W=>{x(de=>({...de,translationMode:W})),o(W)},Dn=()=>{x(W=>({...W,translationArea:"body"})),b()},qn=()=>{x(W=>({...W,translationArea:"main"})),n()},Ie=(W,de,Ke,Pe)=>{if(W==="default"){x(wn=>{let Yt={...wn.translationUrlPattern};return{...wn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...wn.translationUrlPattern,matches:Qn([Z?.hostname,ke,v],Yt.matches),excludeMatches:Qn([Z?.hostname,ke,v],Yt.excludeMatches)}}});return}let Fe=W,Ln=Fe==="matches"?"excludeMatches":"matches";Z&&x(wn=>{let Yt={...wn.translationUrlPattern};return Yt[Fe]=Ls(de,Yt[Fe]),Pe.length>0&&(Yt[Fe]=Qn(Pe,Yt[Fe])),Yt[Ln]=Qn(Ke,Yt[Ln]),{...wn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...wn.translationUrlPattern,...Yt}}}),Fe==="matches"&&c==="Original"?setTimeout(()=>{F(),R()},100):Fe==="excludeMatches"&&c==="Translated"&&setTimeout(()=>{T(),R()},100)},Ht=W=>{if(!W){x(Pe=>{let Fe={...Pe.translationLanguagePattern};return{...Pe,translationLanguagePattern:{...Pe.translationLanguagePattern,matches:Qn(E,Fe.matches),excludeMatches:Qn(E,Fe.excludeMatches)}}});return}let de=W,Ke=de==="matches"?"excludeMatches":"matches";E&&x(Pe=>{let Fe={...Pe.translationLanguagePattern};return Fe[de]=Ls(E,Fe[de]),Fe[Ke]=Qn(E,Fe[Ke]),{...Pe,translationLanguagePattern:{...Pe.translationLanguagePattern,...Fe}}}),de==="matches"&&c==="Original"&&setTimeout(()=>{F(),R()},100)},at=Z?.pathname.toLowerCase().endsWith(".pdf"),We=Y("translate");c==="Translated"||c==="Error"?We=Y("show-original"):c==="Original"?at?za()&&Z.protocol==="file:"||P?We=Y("translate-firefox-local-pdf"):he()?We=Y("noSupportTranslate-pdf"):We=Y("translate-pdf"):We=Y("translate"):We=Y(c);let Vt=Y("translateToThePageEndImmediately");(c==="Original"||c==="Translated")&&(f.shortcuts.toggleTranslatePage&&(u4()&&k.rule.fingerCountToToggleTranslagePageWhenTouching>=2?We+=` (${Y(`fingers.${k.rule.fingerCountToToggleTranslagePageWhenTouching}`)})`:We+=` (${f.shortcuts.toggleTranslatePage})`),f.shortcuts.toggleTranslateToThePageEndImmediately&&(Vt+=` (${f.shortcuts.toggleTranslateToThePageEndImmediately})`));let Bt=[];k&&(Bt=vm(k,"translationService"));let Wn=W=>{W.preventDefault(),R()},dt=Pg(k.config.translationService,k.config.targetLanguage),cn=ye||ue||G,He=()=>ye?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!ye,onChange:W=>{let de=W.target.checked;Ie(de?"matches":"default",Le,[Le],[])}}),Y("alwaysTranslateSomePage")]}):ue?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!ue,onChange:W=>{let de=W.target.checked;Ie(de?"matches":"default",Z.hostname,[Z.hostname,ke,Le],[ke])}}),Y("alwaysTranslateSomeSiteOrWildSite")]}):G?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!G,onChange:W=>{let de=W.target.checked;Ie(de?"matches":"default",ke,[Le,Z.hostname,ke],[Z.hostname])}}),Y("alwaysTranslateSomeSiteOrWildSite")]}):null;return V("div",{children:[V("div",{class:"popup-container px-6 pt-6 max-content",children:[V("div",{class:"text-sm",children:[V("div",{class:"flex justify-between mb-3 items-center",children:[V("label",{class:"inline-block text-label",children:[Y("popupSourceLanguage"),"\uFF1A"]}),V(Hn,{maxWidth:186,items:Jt.map(W=>({label:Vo(W,f.interfaceLanguage),value:W,selected:W===k.sourceLanguage,onSelected:de=>{S(de.value)}}))})]}),f&&f.targetLanguage&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[Y("popupTarget"),"\uFF1A"]}),V(Hn,{maxWidth:186,items:dt.filter(W=>W!=="auto").map(W=>({label:Vo(W,f.interfaceLanguage),value:W,selected:W===f.targetLanguage,onSelected:de=>{x(Ke=>({...Ke,targetLanguage:de.value}))}}))})]}),xe&&Bt.length>0&&V(qt,{children:[V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[Y("popupService"),"\uFF1A"]}),V(Hn,{maxWidth:186,items:Bt.map(W=>({label:`${Y("translationServices."+W.id)}${W.ok?"":" "+(" "+(!ae&&!it&&W.providers&&W.providers.length>0?Y("goLoginOrAction"):Y("needAction")))}`,value:W.id,selected:W.selected,onSelected:de=>{let Ke=Bt.find(Pe=>Pe.id===de.value);if(Ke.ok){if(x(Pe=>({...Pe,translationService:Ke.id})),c!="Translated")return;Ke.props.length===0?setTimeout(()=>{F()},1):setTimeout(()=>{T()},1)}else x(Pe=>({...Pe,translationService:Ke.id})),setTimeout(()=>{h()},100)}}))})]}),Oe&&xe.props.length>0&&xe.props.map((W,de)=>V("div",{class:"pl-4 text-sm",children:V(ul,{field:W,value:Oe[W.name],onChange:Ke=>{x(Pe=>{let Fe=Pe.translationServices||{},Ln=Fe[xe.id]||{};return setTimeout(()=>{T()},1),{...Pe,translationServices:{...Fe,[xe.id]:{...Ln,[W.name]:Ke}}}})}},"field-"+de)},"service"+de))]}),Z&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:Y("forThisSite")}),V(Hn,{maxWidth:186,items:[{label:Y("default"),value:"default",selected:ue===!1&&ie===!1&&!G&&!me&&!ye&&!Se,onSelected:()=>{Ie("default",Z.hostname,[],[]);let W=Z.hostname,de=k.localConfig.tempTranslationUrlMatches||[],Ke=de.filter(Fe=>Fe.match!==W),Pe=!1;Ke.length!==de.length&&(Pe=!0),Pe&&w({...k.localConfig,tempTranslationUrlMatches:[...Ke]})}},Le&&{label:Y("alwaysTranslateSomeSite",{hostname:Y("currentUrl")}),value:"matchesUrl",selected:ye,onSelected:()=>{Ie("matches",Le,[Le],[])}},{label:Y("alwaysTranslateSomeSite",{hostname:Z.hostname}),value:"matches",selected:ue,onSelected:W=>{Ie(W.value,Z.hostname,[Z.hostname,ke,Le],[ke])}},ke&&{label:Y("alwaysTranslateSomeSite",{hostname:ke}),value:"matchesWild",selected:G,onSelected:()=>{Ie("matches",ke,[Le,Z.hostname,ke],[Z.hostname])}},Le&&{label:Y("neverTranslateSomeSite",{hostname:Y("currentUrl")}),value:"excludeMatchesUrl",selected:Se,onSelected:()=>{Ie("excludeMatches",Le,[Le],[])}},{label:Y("neverTranslateSomeSite",{hostname:Z.hostname}),value:"excludeMatches",selected:ie,onSelected:W=>{Ie(W.value,Z.hostname,[Z.hostname,ke,Le],[ke])}},ke&&{label:Y("neverTranslateSomeSite",{hostname:ke}),value:"excludeMatchesWild",selected:me,onSelected:()=>{Ie("excludeMatches",ke,[Z.hostname,Le,ke],[Z.hostname])}}].filter(Boolean)})]}),B&&Dr()&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[Y("mouse-translate"),"\uFF1A"]}),V(Hn,{maxWidth:186,items:Vu.filter(W=>!(Vu.includes(f.generalRule.mouseHoverHoldKey)&&W==="OtherCustom")).map(W=>{let de=Y("mouseHoldKey",{key:W}),Ke=Vu.includes(f.generalRule.mouseHoverHoldKey),Pe=W===f.generalRule.mouseHoverHoldKey;return W==="Auto"?de=Y("mouseHoldKeyAuto"):W==="Off"?de=Y("mouseHoldKeyOff"):W==="OtherCustom"?de=Ke?Y("mouseHoldKeyOther"):Y("mouseHoldKeyCustomKey",{key:f.generalRule.mouseHoverHoldKey}):W==="Other"&&(de=Y("mouseHoldKeyOther")),Ke||W==="OtherCustom"&&(Pe=!0),{label:de,value:W,selected:Pe,onSelected:Fe=>{Fe.value==="Other"?h("#interface"):B(Fe.value)}}})})]})]}),V("div",{class:"",children:V("button",{class:"py-2 mt-1 mb-5 main-button ",onClick:()=>{at?y&&y():U()},"aria-busy":c==="Translating",disabled:N||c==="Translating",children:We})}),V("div",{class:"text-sm",children:D}),V("div",{class:`pb-2 text-sm ${q?"":"display-none"}`,children:q}),V("div",{class:"flex items-center justify-between flex-wrap",children:[cn?V(He,{}):E&&E!=="auto"?V("label",{for:"alwaysTranslateThisLanugage",class:"text-sm text-label text-overflow-ellipsis max-w-20",children:[V("input",{type:"checkbox",id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",checked:!!ce,onChange:W=>{let de=W.target.checked;Ht(de?"matches":void 0)}}),Y("alwaysTranslateSomeLanguage",{language:Vo(E,f.interfaceLanguage,!1,!0)})]}):V("span",{}),V("div",{class:`flex flex-end flex-grow ${q?"display-none":""}`,children:V("span",{class:"immersive-translate-no-select muted text-sm",onClick:d3(7)(ga),children:["V",t,f.enabled?null:V("a",{href:"#",onClick:C,children:[" ","(",Y("hasBeenDisabled"),")"]})]})})]})]}),V("footer",{children:[V("div",{class:"px-6 text-label",children:V(ol,{isShowError:!1,request:r,setStorageBuildinConfig:l})}),V("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer text-label",children:[V("div",{class:"flex flex-row items-center justify-center secondary clickable",style:{width:70},onClick:_t,children:[V(al,{}),V("span",{class:"ml-1",children:Y("options")})]}),Ue?V("a",{title:Y(ae?"popup.openProForPro":"popup.openPro"),target:"_blank",href:ae?rs:us,children:V("img",{src:ae?il:sl})}):ae&&V("a",{title:Y(ae?"popup.openProForPro":"popup.openPro"),target:"_blank",href:ae?rs:us,children:V("img",{src:ae?il:sl})}),V(rl,{label:Y("more"),showArrow:!0,maxWidth:fe,onSelected:W=>{W.value==="openPremium"?(globalThis.open(_r),R()):W.value==="changeToOnlyTranslationMode"?zt("translation"):W.value==="changeToDualTranslationMode"?zt("dual"):W.value==="translateTheWholePage"?b():W.value==="translateToThePageEndImmediately"?A():W.value==="translateTheMainPage"?n():W.value==="showTranslationOnly"||(W.value==="translateLocalPdfFile"?O&&O():W.value==="translateLocalHtmlFile"?u&&u():W.value==="translateLocalSubtitleFile"?i&&i():W.value==="donate"?(globalThis.open(f.donateUrl),R()):W.value==="feedback"?(globalThis.open(f.feedbackUrl),R()):W.value==="options"?(h(),R()):W.value==="changeToTranslateTheWholePage"?Dn():W.value==="changeToTranslateTheMainPage"?qn():W.value==="about"?d():W.value==="toggleEnabled"?C():W.value==="openEbookViewer"?p():W.value==="openEbookBuilder"?s():W.value==="goPro"&&g())},menus:[f.translationMode==="dual"&&{label:"\u{1F524} "+Y("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},f.translationMode==="translation"&&{label:"\u{1F521} "+Y("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},f.translationArea==="main"&&{label:"\u{1F480} "+Y("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},f.translationArea==="body"&&{label:"\u{1F4D6} "+Y("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},{label:"\u26A1 "+Vt,value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+Y("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+Y("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+Y("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},!he()&&{label:"\u{1F310} "+Y("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+Y("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},ae===!1&&Ue&&{label:"\u{1F451} "+Y("upgradeToPro"),value:"goPro"},{label:"\u2764\uFE0F "+Y(Ue?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})]})]})}m();m();m();m();var ll={get:(e,t,n)=>{let a=t===void 0?e:{[e]:t};return ee.storage[n].get(a)},set:(e,t,n)=>ee.storage[n].set({[e]:t})};function Xo(e,t,n){let[a]=Te(()=>typeof t=="function"?t():t),[r]=Te(n),[u,o]=Te(a),[i,l]=Te(!1),[c,s]=Te("");Ne(()=>{ll.get(e,a,r).then(p=>{p[e]&&o(p[e]),l(!0),s("")}).catch(p=>{l(!1),s(p)})},[e,a,r]);let g=Kn(p=>{let f=typeof p=="function"?p(u):p;H.debug("new settings",f),ll.set(e,f,r).then(()=>{o(f),l(!0),s("")}).catch(d=>{o(f),l(!1),s(d)})},[r,e,u]);return[u,g,i,c]}m();function cl(e,t,n){let a=[];return function(){let[u,o,i,l]=Xo(e,t,n),c=Kn(s=>{for(let g of a)g(s)},[]);return Ne(()=>(a.push(o),()=>{a.splice(a.indexOf(o),1)}),[o]),[u,c,i,l]}}function p3(e,t){return cl(e,t,"sync")}var H9="userConfig",q9=null,W9=p3(H9,q9);function hr(e){let[t,n,a,r]=W9(),u=Kn(o=>{let i=typeof o=="function"?o(t):o;i&&(i.updatedAt=new Date().toISOString()),n(i),e&&e(i)},[t]);return[t,u,a,r,n]}m();m();async function f3(e){try{let t=new Date;H.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await ee.storage.local.set({[k4]:t.toISOString()}),await $9(),he()||await h3()}catch(t){H.error("run cron task failed",t)}}async function $9(){try{let e=await Tn(),t=await se({url:Mr}),n=e.buildinConfigUpdatedAt,a=new Date(n),r=t.buildinConfigUpdatedAt,u=new Date(r),o=t.minVersion,i=ee.runtime.getManifest().version;pu(i,o)?u>a?(await ee.storage.local.set({buildinConfig:t}),H.info(`sync remote rules success, latest: ${new Date(r).toLocaleString()}`)):H.debug(`no need to sync rules, latest: ${a}`):H.info(`local version is too old, please update to ${o} or later`)}catch(e){H.error("sync rules error: ",e)}}m();m();m();m();m();var dl;function Tl(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function A3(e,t=","){return e.map(Tl).join(t)}var k3=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function ti(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function ni(e,t="@media "){return t+Kt(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(a=>`(${a}-width:${n[a]})`).join(" and "))).join(",")}function Kt(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function K9(){}var ht={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function S3(e){return e.match(/[-=:;]/g)?.length||0}function bl(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(S3(e),15)<<18}var G9=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function Cl({n:e,i:t,v:n=[]},a,r,u){e&&(e=Tl({n:e,i:t,v:n})),u=[...Kt(u)];for(let i of n){let l=a.theme("screens",i);for(let c of Kt(l&&ni(l)||a.v(i))){var o;u.push(c),r|=l?67108864|bl(c):i=="dark"?1073741824:c[0]=="@"?bl(c):(o=c,1<<~(/:([a-z-]+)/.test(o)&&~G9.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:r,r:u,i:t}}var wl=new Map;function b3(e){if(e.d){let t=[],n=ml(e.r.reduce((a,r)=>r[0]=="@"?(t.push(r),a):r?ml(a,u=>ml(r,o=>{let i=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(i){let l=u.indexOf(i[1]);return~l?u.slice(0,l)+i[0]+u.slice(l+i[1].length):gl(u,o)}return gl(o,u)})):a,"&"),a=>gl(a,e.n?"."+k3(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((a,r)=>r+"{"+a+"}",e.d)}}function ml(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,a,r)=>t(a)+r)}function gl(e,t){return e.replace(/&/g,t)}var y3=new Intl.Collator("en",{numeric:!0});function V9(e,t){for(var n=0,a=e.length;n>1;0>=D3(e[r],t)?n=r+1:a=r}return a}function D3(e,t){let n=e.p&ht.o;return n==(t.p&ht.o)&&(n==ht.b||n==ht.o)?0:e.p-t.p||e.o-t.o||y3.compare(x3(e.n),x3(t.n))||y3.compare(E3(e.n),E3(t.n))}function x3(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function E3(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function pl(e,t){return Math.round(parseInt(e,16)*t)}function da(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:a}=t,r=a?`var(${a})`:n;if(e.includes(""))return e.replace("",r);if(e[0]=="#"&&(e.length==4||e.length==7)){let u=(e.length-1)/3,o=[17,1,.062272][u-1];return`rgba(${[pl(e.substr(1,u),o),pl(e.substr(1+u,u),o),pl(e.substr(1+2*u,u),o),r]})`}return r=="1"?e:r=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${r})`)}function L3(e,t,n,a,r=[]){return function u(o,{n:i,p:l,r:c=[],i:s},g){let p=[],f="",d=0,b=0;for(let A in o||{}){var C,h;let S=o[A];if(A[0]=="@"){if(!S)continue;if(A[1]=="a"){p.push(...M3(i,l,Al(""+S),g,l,c,s,!0));continue}if(A[1]=="l"){for(let U of Kt(S))p.push(...u(U,{n:i,p:(C=ht[A[7]],l&~ht.o|C),r:A[7]=="d"?[]:c,i:s},g));continue}if(A[1]=="i"){p.push(...Kt(S).map(U=>({p:-1,o:0,r:[],d:A+" "+U})));continue}if(A[1]=="k"){p.push({p:ht.d,o:0,r:[A],d:u(S,{p:ht.d},g).map(b3).join("")});continue}if(A[1]=="f"){p.push(...Kt(S).map(U=>({p:ht.d,o:0,r:[A],d:u(U,{p:ht.d},g).map(b3).join("")})));continue}}if(typeof S!="object"||Array.isArray(S))A=="label"&&S?i=S+ti(JSON.stringify([l,s,o])):(S||S===0)&&(A=A.replace(/[A-Z]/g,U=>"-"+U.toLowerCase()),b+=1,d=Math.max(d,(h=A)[0]=="-"?0:S3(h)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(h)?+!!RegExp.$1||-!!RegExp.$2:0)+1),f+=(f?";":"")+Kt(S).map(U=>g.s(A,P3(""+U,g.theme)+(s?" !important":""))).join(";"));else if(A[0]=="@"||A.includes("&")){let U=l;A[0]=="@"&&(A=A.replace(/\bscreen\(([^)]+)\)/g,(O,y)=>{let T=g.theme("screens",y);return T?(U|=67108864,ni(T,"")):O}),U|=bl(A)),p.push(...u(S,{n:i,p:U,r:[...c,A],i:s},g))}else p.push(...u(S,{p:l,r:[...c,A]},g))}return p.unshift({n:i,p:l,o:Math.max(0,15-b)+1.5*Math.min(d||15,15),r:c,d:f}),p.sort(D3)}(e,Cl(t,n,a,r),n)}function P3(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,a,r,u,o="")=>{let i=t(r,o);return typeof i=="function"&&/color|fill|stroke/i.test(r)?da(i):""+Kt(i).filter(l=>Object(l)!==l)})}function vl(e,t){let n,a=[];for(let r of e)r.d&&r.n?n?.p==r.p&&""+n.r==""+r.r?(n.c=[n.c,r.c].filter(Boolean).join(" "),n.d=n.d+";"+r.d):a.push(n={...r,n:r.n&&t}):a.push({...r,n:r.n&&t});return a}function yl(e,t,n=ht.u,a,r){let u=[];for(let o of e)for(let i of function(l,c,s,g,p){l={...l,i:l.i||p};let f=function(d,b){let C=wl.get(d.n);return C?C(d,b):b.r(d.n,d.v[0]=="dark")}(l,c);return f?typeof f=="string"?({r:g,p:s}=Cl(l,c,s,g),vl(yl(Al(f),c,s,g,l.i),l.n)):Array.isArray(f)?f.map(d=>{var b,C;return{o:0,...d,r:[...Kt(g),...Kt(d.r)],p:(b=s,C=d.p??s,b&~ht.o|C)}}):L3(f,l,c,s,g):[{c:Tl(l),p:0,o:0,r:[]}]}(o,t,n,a,r))u.splice(V9(u,i),0,i);return u}function M3(e,t,n,a,r,u,o,i){return vl((i?n.flatMap(l=>yl([l],a,r,u,o)):yl(n,a,r,u,o)).map(l=>l.p&ht.o&&(l.n||t==ht.b)?{...l,p:l.p&~ht.o|t,o:0}:l),e)}function Y9(e,t,n,a){var r;return r=(u,o)=>{let{n:i,p:l,r:c,i:s}=Cl(u,o,t);return n&&M3(i,t,n,o,l,c,s,a)},wl.set(e,r),e}function fl(e,t,n){if(e[e.length-1]!="("){let a=[],r=!1,u=!1,o="";for(let i of e)if(!(i=="("||/[~@]$/.test(i))){if(i[0]=="!"&&(i=i.slice(1),r=!r),i.endsWith(":")){a[i=="dark:"?"unshift":"push"](i.slice(0,-1));continue}i[0]=="-"&&(i=i.slice(1),u=!u),i.endsWith("-")&&(i=i.slice(0,-1)),i&&i!="&"&&(o+=(o&&"-")+i)}o&&(u&&(o="-"+o),t[0].push({n:o,v:a.filter(J9),i:r}))}}function J9(e,t,n){return n.indexOf(e)==t}var T3=new Map;function Al(e){let t=T3.get(e);if(!t){let n=[],a=[[]],r=0,u=0,o=null,i=0,l=(c,s=0)=>{r!=i&&(n.push(e.slice(r,i+s)),c&&fl(n,a)),r=i+1};for(;i1?g.slice(0,-1)+ti(JSON.stringify([g,p])):g+"("+A3(p)+")",ht.a,p,/@$/.test(g))],a)}s=n.lastIndexOf("(",s-1)}n.length=s+1}else/[~@]/.test(c)&&e[i+1]=="("&&a.unshift([])}l(!0),T3.set(e,t=a[0])}return t}function F3(e,t,n){return t.reduce((a,r,u)=>a+n(r)+e[u+1],e[0])}function _3(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?F3(e,t,n=>hl(n).trim()):t.filter(Boolean).reduce((n,a)=>n+hl(a),e?hl(e):"")}function hl(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=_3(e[0],e.slice(1)))&&(n+=" "+t);else for(let a in e)e[a]&&(n+=" "+a);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var kM=B3("@"),SM=B3("~");function B3(e){return new Proxy(function(n,...a){return t("",n,a)},{get(n,a){return a in n?n[a]:function(r,...u){return t(a,r,u)}}});function t(n,a,r){return A3(Al(n+e+"("+_3(a,r)+")"))}}function xl(e,t){return Array.isArray(e)?C3(F3(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?C3(e):[e]}var Q9=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function C3(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],a=[n[0]],r=[];for(;t=Q9.exec(e);)t[4]&&(n.shift(),r.shift()),t[3]?(r.unshift(t[3]),n.unshift({}),a.push(r.reduce((u,o)=>({[o]:u}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),a.push(r.reduce((u,o)=>({[o]:u}),n[0]))),n[0][t[1]]=t[2]);return a}function R3(e,...t){var n;let a=xl(e,t),r=(a.find(u=>u.label)?.label||"css")+ti(JSON.stringify(a));return n=(u,o)=>vl(a.flatMap(i=>L3(i,u,o,ht.o)),r),wl.set(r,n),r}var DM=new Proxy(function(e,t){return w3("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,a){return w3(t,n,a)}}});function w3(e,t,n){return{toString(){return R3({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function te(e,t,n){return[e,Z9(t,n)]}function Z9(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,a)=>({[e]:t?t(n,a):El(n,1)}):n=>e||{[n[1]]:El(n,2)}}function El(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function ne(e,t,n,a){return[e,X9(t,n,a)]}function X9(e,t,n){let a=typeof t=="string"?(r,u)=>({[t]:n?n(r,u):r._}):t||(({1:r,_:u},o,i)=>({[r||i]:u}));return(r,u)=>{let o=O3(e||r[1]),i=u.theme(o,r.$$)??br(r.$$,o,u);if(i!=null)return r._=El(r,0,i),a(r,u,o)}}function ot(e,t={},n){return[e,eb(t,n)]}function eb(e={},t){return(n,a)=>{let{section:r=O3(n[0]).replace("-","")+"Color"}=e,[u,o]=tb(n.$$);if(!u)return;let i=a.theme(r,u)||br(u,r,a);if(!i||typeof i=="object")return;let{opacityVariable:l=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:c=r.replace("Color","Opacity"),property:s=r,selector:g}=e,p=a.theme(c,o||"DEFAULT")||o&&br(o,c,a),f=t||(({_:b})=>{let C=hu(s,b);return g?{[g]:C}:C});n._={value:da(i,{opacityVariable:l||void 0,opacityValue:p||void 0}),color:b=>da(i,b),opacityVariable:l||void 0,opacityValue:p||void 0};let d=f(n,a);if(!n.dark){let b=a.d(r,u,i);b&&b!==i&&(n._={value:da(b,{opacityVariable:l||void 0,opacityValue:p||"1"}),color:C=>da(b,C),opacityVariable:l||void 0,opacityValue:p||void 0},d={"&":d,[a.v("dark")]:f(n,a)})}return d}}function tb(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function hu(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function br(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=ei(P3(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function O3(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function ei(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",a,r="")=>ei(n)+a+ei(r)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var LM=Symbol();var I3=new Proxy(K9,{apply(e,t,n){return dl(n[0])},get(e,t){let n=dl[t];return typeof n=="function"?function(){return n.apply(dl,arguments)}:n}});var PM=function e(t){return new Proxy(function(n,...a){return v3(t,"",n,a)},{get(n,a){return a==="bind"?e:a in n?n[a]:function(r,...u){return v3(t,a,r,u)}}})}();function v3(e,t,n,a){return{toString(){let r=xl(n,a),u=k3(t+ti(JSON.stringify([t,r])));return(typeof e=="function"?e:I3)(R3({[`@keyframes ${u}`]:xl(n,a)})),u}}}m();m();m();m();m();var N3={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...Gt(4,"rem",4,.5,.5),...Gt(12,"rem",4,5),14:"3.5rem",...Gt(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Me("blur"),backdropBrightness:Me("brightness"),backdropContrast:Me("contrast"),backdropGrayscale:Me("grayscale"),backdropHueRotate:Me("hueRotate"),backdropInvert:Me("invert"),backdropOpacity:Me("opacity"),backdropSaturate:Me("saturate"),backdropSepia:Me("sepia"),backgroundColor:Me("colors"),backgroundImage:{none:"none"},backgroundOpacity:Me("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...Gt(200,"",100,0,50),...Gt(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Me("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Me("spacing"),borderWidth:{DEFAULT:"1px",...un(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Me("colors"),caretColor:Me("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...Gt(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Me("borderColor"),divideOpacity:Me("borderOpacity"),divideWidth:Me("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...bu(2,6),...bu(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Me("spacing"),gradientColorStops:Me("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...bu(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...bu(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...Gt(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...Gt(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Me("spacing"),placeholderColor:Me("colors"),placeholderOpacity:Me("opacity"),outlineColor:Me("colors"),outlineOffset:un(8,"px"),outlineWidth:un(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Me("colors"),ringOffsetWidth:un(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...un(8,"px")},rotate:{...un(2,"deg"),...un(12,"deg",3),...un(180,"deg",45)},saturate:Gt(200,"",100,0,50),scale:{...Gt(150,"",100,0,50),...Gt(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Me("spacing"),scrollPadding:Me("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...un(2,"deg"),...un(12,"deg",3)},space:Me("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:Gt(2),textColor:Me("colors"),textDecorationColor:Me("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...un(8,"px")},textUnderlineOffset:{auto:"auto",...un(8,"px")},textIndent:Me("spacing"),textOpacity:Me("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Me("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...bu(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...Gt(50,"",1,0,10),auto:"auto"}};function bu(e,t){let n={};do for(var a=1;at(e)}var YM={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${N3.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${N3.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},QM=[te("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:br(`[${t}]`,"",n)}}})),te("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),ne("aspect-","aspectRatio"),te("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:a,padding:r}=t("container"),u={width:"100%",marginRight:a&&"auto",marginLeft:a&&"auto",...o("xs")};for(let i in n){let l=n[i];typeof l=="string"&&(u[ni(l)]={"&":{maxWidth:l,...o(i)}})}return u;function o(i){let l=r&&(typeof r=="string"?r:r[i]||r.DEFAULT);if(l)return{paddingRight:l,paddingLeft:l}}}),ne("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),te("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),te("box-(border|content)","boxSizing",({1:e})=>e+"-box"),te("hidden",{display:"none"}),te("table-(auto|fixed)","tableLayout"),te(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",te("isolate","isolation"),te("object-(contain|cover|fill|none|scale-down)","objectFit"),ne("object-","objectPosition"),te("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",ai),te("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),te("(static|fixed|absolute|relative|sticky)","position"),ne("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),ne("-?(top|bottom|left|right)(?:$|-)","inset"),te("(visible|collapse)","visibility"),te("invisible",{visibility:"hidden"}),ne("-?z-","zIndex"),te("flex-((row|col)(-reverse)?)","flexDirection",j3),te("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),ne("(flex-(?:grow|shrink))(?:$|-)"),ne("(flex)-"),ne("grow(?:$|-)","flexGrow"),ne("shrink(?:$|-)","flexShrink"),ne("basis-","flexBasis"),ne("-?(order)-"),"-?(order)-(\\d+)",ne("grid-cols-","gridTemplateColumns"),te("grid-cols-(\\d+)","gridTemplateColumns",q3),ne("col-","gridColumn"),te("col-(span)-(\\d+)","gridColumn",H3),ne("col-start-","gridColumnStart"),te("col-start-(auto|\\d+)","gridColumnStart"),ne("col-end-","gridColumnEnd"),te("col-end-(auto|\\d+)","gridColumnEnd"),ne("grid-rows-","gridTemplateRows"),te("grid-rows-(\\d+)","gridTemplateRows",q3),ne("row-","gridRow"),te("row-(span)-(\\d+)","gridRow",H3),ne("row-start-","gridRowStart"),te("row-start-(auto|\\d+)","gridRowStart"),ne("row-end-","gridRowEnd"),te("row-end-(auto|\\d+)","gridRowEnd"),te("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>ai(j3(e))),te("grid-flow-(dense)","gridAutoFlow"),ne("auto-cols-","gridAutoColumns"),ne("auto-rows-","gridAutoRows"),ne("gap-x(?:$|-)","gap","columnGap"),ne("gap-y(?:$|-)","gap","rowGap"),ne("gap(?:$|-)","gap"),"(justify-(?:items|self))-",te("justify-","justifyContent",U3),te("(content|items|self)-",e=>({["align-"+e[1]]:U3(e)})),te("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),ne("p([xytrbl])?(?:$|-)","padding",yr("padding")),ne("-?m([xytrbl])?(?:$|-)","margin",yr("margin")),ne("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),te("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),ne("w-","width"),ne("min-w-","minWidth"),ne("max-w-","maxWidth"),ne("h-","height"),ne("min-h-","minHeight"),ne("max-h-","maxHeight"),ne("font-","fontWeight"),ne("font-","fontFamily",({_:e})=>typeof(e=Kt(e))[1]=="string"?{fontFamily:Cn(e)}:{fontFamily:Cn(e[0]),...e[1]}),te("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),te("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),te("italic","fontStyle"),te("not-italic",{fontStyle:"normal"}),te("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...ma({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),ne("tracking-","letterSpacing"),ne("leading-","lineHeight"),te("list-(inside|outside)","listStylePosition"),ne("list-","listStyleType"),te("list-","listStyleType"),ne("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),ot("placeholder-",{property:"color",selector:"&::placeholder"}),te("text-(left|center|right|justify|start|end)","textAlign"),te("text-(ellipsis|clip)","textOverflow"),ne("text-opacity-","textOpacity","--tw-text-opacity"),ot("text-",{property:"color"}),ne("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),ne("indent-","textIndent"),te("(overline|underline|line-through)","textDecorationLine"),te("no-underline",{textDecorationLine:"none"}),ne("underline-offset-","textUnderlineOffset"),ot("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),ne("decoration-","textDecorationThickness"),te("decoration-","textDecorationStyle"),te("(uppercase|lowercase|capitalize)","textTransform"),te("normal-case",{textTransform:"none"}),te("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),te("align-","verticalAlign"),te("whitespace-","whiteSpace"),te("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),te("break-words",{overflowWrap:"break-word"}),te("break-all",{wordBreak:"break-all"}),te("break-keep",{wordBreak:"keep-all"}),ot("caret-",{opacityVariable:!1,opacitySection:"opacity"}),ot("accent-",{opacityVariable:!1,opacitySection:"opacity"}),te("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${Sa(e," ")},var(--tw-gradient-stops))`),ot("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),ot("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),ot("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),te("bg-(fixed|local|scroll)","backgroundAttachment"),te("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),te(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),te("bg-blend-","backgroundBlendMode"),te("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),ne("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),ot("bg-",{section:"backgroundColor"}),ne("bg-","backgroundImage"),ne("bg-","backgroundPosition"),te("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",ai),ne("bg-","backgroundSize"),ne("rounded(?:$|-)","borderRadius"),ne("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${Sa(n[0])}-radius`]:t,[`border-${Sa(n[1])}-radius`]:t}}),te("border-(collapse|separate)","borderCollapse"),ne("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),te("border-(solid|dashed|dotted|double|none)","borderStyle"),ne("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...ma({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),ot("border-([xytrbl])-",{section:"borderColor"},yr("border","Color")),ot("border-"),ne("border-([xytrbl])(?:$|-)","borderWidth",yr("border","Width")),ne("border(?:$|-)","borderWidth"),ne("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),te("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),te("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),ne("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${Sa(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${Sa(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),ot("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),ne("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),ot("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),ne("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),te("ring-inset",{"--tw-ring-inset":"inset"}),ot("ring-",{property:"--tw-ring-color"}),ne("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...ma({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":da(t("ringOffsetColor","","#fff")),"--tw-ring-color":da(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),ot("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),ne("shadow(?:$|-)","boxShadow",({_:e})=>({...ma({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Cn(e),"--tw-shadow-colored":Cn(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),ne("(opacity)-"),te("mix-blend-","mixBlendMode"),...z3(),...z3("backdrop-"),ne("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Cn(e),transitionTimingFunction:e._=="none"?void 0:Cn(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:Cn(t("transitionDuration",""))})),ne("duration(?:$|-)","transitionDuration","transitionDuration",Cn),ne("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Cn),ne("delay(?:$|-)","transitionDelay","transitionDelay",Cn),ne("animate(?:$|-)","animation",(e,{theme:t,h:n,e:a})=>{let r=Cn(e),u=r.split(" "),o=t("keyframes",u[0]);return o?{["@keyframes "+(u[0]=a(n(u[0])))]:o,animation:u.join(" ")}:{animation:r}}),"(transform)-(none)",te("transform",Sl),te("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":W3(e=="gpu")})),ne("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...Sl()})),ne("-?(rotate)-","rotate",kl),ne("-?(translate-[xy])-","translate",kl),ne("-?(skew-[xy])-","skew",kl),te("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",ai),"(appearance)-",ne("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",ne("(cursor)-"),"(cursor)-",te("snap-(none)","scroll-snap-type"),te("snap-(x|y|both)",({1:e})=>({...ma({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),te("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),te("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),te("snap-(normal|always)","scroll-snap-stop"),te("scroll-(auto|smooth)","scroll-behavior"),ne("scroll-p([xytrbl])?(?:$|-)","padding",yr("scroll-padding")),ne("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",yr("scroll-margin")),te("touch-(auto|none|manipulation)","touch-action"),te("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...ma({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),te("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),te("outline",{outlineStyle:"solid"}),te("outline-(dashed|dotted|double)","outlineStyle"),ne("-?(outline-offset)-"),ot("outline-",{opacityVariable:!1,opacitySection:"opacity"}),ne("outline-","outlineWidth"),"(pointer-events)-",ne("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],te("select-(none|text|all|auto)","userSelect"),ot("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),ot("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),ne("stroke-","strokeWidth"),te("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),te("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function ai(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function j3(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function Sa(e,t="-"){let n=[];for(let a of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[a]);return n.join(t)}function Cn(e){return e&&""+(e._||e)}function U3({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function yr(e,t=""){return({1:n,_:a})=>{let r={x:"lr",y:"tb"}[n]||n+n;return r?{...hu(e+"-"+Sa(r[0])+t,a),...hu(e+"-"+Sa(r[1])+t,a)}:hu(e+t,a)}}function z3(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let a of t)n[`--tw-${e}${a}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...ma(n),[`${e}filter`]:t.map(a=>`var(--tw-${e}${a})`).join(" ")},[`(${e}filter)-(none)`,te(`${e}filter`,n),...t.map(a=>ne(`${a[0]=="h"?"-?":""}(${e}${a})(?:$|-)`,a,({1:r,_:u})=>({[`--tw-${r}`]:Kt(u).map(o=>`${a}(${o})`).join(" "),...n})))]}function kl({1:e,_:t}){return{["--tw-"+e]:t,...Sl()}}function Sl(){return{...ma({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":W3()}),transform:"var(--tw-transform)"}}function W3(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function H3({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function q3({1:e}){return`repeat(${e},minmax(0,1fr))`}function ma(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}m();m();var ri=globalThis||(typeof window<"u"?window:self),rb=Object.create,Ll=Object.defineProperty,ub=Object.getOwnPropertyDescriptor,ob=Object.getOwnPropertyNames,ib=Object.getPrototypeOf,sb=Object.prototype.hasOwnProperty,lb=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),cb=(e,t)=>{for(var n in t)Ll(e,n,{get:t[n],enumerable:!0})},Dl=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ob(t))!sb.call(e,r)&&r!==n&&Ll(e,r,{get:()=>t[r],enumerable:!(a=ub(t,r))||a.enumerable});return e},db=(e,t,n)=>(Dl(e,t,"default"),n&&Dl(n,t,"default")),K3=(e,t,n)=>(n=e!=null?rb(ib(e)):{},Dl(t||!e||!e.__esModule?Ll(n,"default",{value:e,enumerable:!0}):n,e)),G3=lb((e,t)=>{(function(n,a){typeof define=="function"&&define.amd?define([],a):typeof e<"u"?a():(a(),n.FileSaver={})})(e,function(){"use strict";function n(c,s){return typeof s>"u"?s={autoBom:!1}:typeof s!="object"&&(s={autoBom:!s}),s.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function a(c,s,g){var p=new XMLHttpRequest;p.open("GET",c),p.responseType="blob",p.onload=function(){l(p.response,s,g)},p.onerror=function(){},p.send()}function r(c){var s=new XMLHttpRequest;s.open("HEAD",c,!1);try{s.send()}catch{}return 200<=s.status&&299>=s.status}function u(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var s=document.createEvent("MouseEvents");s.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(s)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof ri=="object"&&ri.global===ri?ri:void 0,i=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(c,s,g){var p=o.URL||o.webkitURL,f=document.createElement("a");s=s||c.name||"download",f.download=s,f.rel="noopener",typeof c=="string"?(f.href=c,f.origin===location.origin?u(f):r(f.href)?a(c,s,g):u(f,f.target="_blank")):(f.href=p.createObjectURL(c),setTimeout(function(){p.revokeObjectURL(f.href)},4e4),setTimeout(function(){u(f)},0))}:"msSaveOrOpenBlob"in navigator?function(c,s,g){if(s=s||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(n(c,g),s);else if(r(c))a(c,s,g);else{var p=document.createElement("a");p.href=c,p.target="_blank",setTimeout(function(){u(p)})}}:function(c,s,g,p){if(p=p||open("","_blank"),p&&(p.document.title=p.document.body.innerText="downloading..."),typeof c=="string")return a(c,s,g);var f=c.type==="application/octet-stream",d=/constructor/i.test(o.HTMLElement)||o.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||f&&d||i)&&typeof FileReader<"u"){var C=new FileReader;C.onloadend=function(){var S=C.result;S=b?S:S.replace(/^data:[^;]*;/,"data:attachment/file;"),p?p.location.href=S:location=S,p=null},C.readAsDataURL(c)}else{var h=o.URL||o.webkitURL,A=h.createObjectURL(c);p?p.location=A:location.href=A,p=null,setTimeout(function(){h.revokeObjectURL(A)},4e4)}});o.saveAs=l.saveAs=l,typeof t<"u"&&(t.exports=l)})}),V3={};cb(V3,{default:()=>ui});var mb=K3(G3());db(V3,K3(G3()));var{default:$3,...gb}=mb,ui=$3!==void 0?$3:gb;m();m();m();m();m();m();var IF=Be().REDIRECT_URL;function Tb(){let[e,t]=Te(null);return Ne(()=>{ta().then(a=>{t(a)})},[]),[e,a=>{t(a),nn(a)}]}async function Cb(e,t,n){try{if(t===null)return"noupdate";let a=await Ab(e),r=await ta();r.accountLastSyncedAt=Date.now(),H.debug("settings",t),H.debug("local settings.updatedAt",t.updatedAt),H.debug("remote settings.updatedAt",a.updatedAt),H.debug("last synced at",r.accountLastSyncedAt);let u=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(u=!0),!u&&t.updatedAt>a.updatedAt&&(u=!0),H.debug("isUpload",u),u)return await kb(e,t),await nn(r),"upload";let o=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(o=!0),!o&&t.updatedAt0&&Nt.remove(Qt),a}}function oi(e,t){let n=vb(),[a,r]=Tb();Ne(()=>{!n||!n.token||a&&a.proAutoSync===!1||wb(n)&&Cb(n.token,e,t)},[e,n])}function wb(e){return en(e)?!0:new Date(e.createTime){Nt.get(Qt,null).then(n=>{t(n)})},[t]),e}function Ab(e){return(location.href?.indexOf("popup.html")>0?Nn:se)({responseType:"json",url:as+"/v1/user/settings",method:"get",headers:{token:e}}).then(n=>n.data)}function kb(e,t){return(location.href?.indexOf("popup.html")>0?Nn:se)({responseType:"json",url:as+"/v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(a=>a.data)}function Ml(e){let{onClose:t}=e,[n,a]=Te("Original"),[r,u,o,i]=hr(()=>{setTimeout(()=>{S("updateGlobalContext",!1)()},250)});oi(r,u);let[l,c]=Te(null),[s,g]=Te(globalThis.location.href),[p,f]=Te("auto"),[d,b]=Te(null),C=N=>{a(N.detail)},h=N=>{f(N);let P=Bu(s,N,l.sourceLanguageUrlPattern);u(x=>({...x,sourceLanguageUrlPattern:P})),an(N)},A=()=>{g(globalThis.location.href)};Ne(()=>(document.addEventListener(Hu,C,!1),Tn().then(N=>{c(N);let P=pt();f(P);let x=$e();a(x),f3(N.interval)}),document.addEventListener("urlChange",A),()=>{document.removeEventListener("pageTranslatedStatus",C),document.removeEventListener("urlChange",A)}),[]),Ne(()=>{Tn().then(N=>{c(N)})},[r]),Ne(()=>{s&&l&&jn({url:s,config:l}).then(N=>{b(N)})},[s,l]);let S=(N,P,x={})=>()=>{gr({method:N,data:x||{}}),P&&t()},U=()=>{t()},O=()=>{u(N=>({...N,enabled:!N.enabled})),setTimeout(()=>{U()},50)},y=()=>{Pl(),setTimeout(()=>{U()},50)},T=()=>{Pl(),setTimeout(()=>{U()},50)},k=(N="")=>{xr(!0,N),setTimeout(()=>{t()},50)},v=()=>{li(Yu),setTimeout(()=>{globalThis.close()},50)},E=()=>{si(),setTimeout(()=>{t()},50)},R=()=>{ci(),setTimeout(()=>{t()},50)},F=()=>{Z3(),setTimeout(()=>{t()},50)},w=()=>{di(),setTimeout(()=>{t()},50)},B=()=>{X3(),setTimeout(()=>{t()},50)},I=N=>{u(P=>({...P,generalRule:{...P.generalRule,mouseHoverHoldKey:N}}))};return!l||!d?null:V(fu,{openEbookViewerPage:R,openEbookBuilderPage:w,onSwitchTranslationMode:N=>{S("switchTranslationMode",!0,{mode:N})()},onTranslateLocalHtmlFile:F,onTranslateLocalSubtitleFile:B,request:se,onClose:U,onToggleEnabled:O,onTranslateTheWholePage:S("translateTheWholePage",!0),openOptionsPage:k,openPricingPage:v,onToggleTranslate:S("toggleTranslatePage",!0),onTranslateTheMainPage:S("translateTheMainPage",!0),ontranslateToThePageEndImmediately:S("translateToThePageEndImmediately",!0),onTranslatePage:S("translatePage",!0),onRestorePage:S("restorePage",!1),onTranslatePdf:y,openAboutPage:E,onTranslateLocalPdfFile:T,onSetPageLanguage:h,onUserConfigChange:u,config:l,pageStatus:n,ctx:d,currentUrl:s,currentLang:p,onSetLocalConfig:ii,onSetBuildinConfig:Q3,onMouseTriggerChanged:I})}function Sb(e,t){for(let n of t){if(he()&&!za()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}var Fl={position:"right",right:0,top:335},Mt={...Fl},pi=!1,Da=null,Sn=null,fi=null,_l=null,Er=null,Bl=null,ep=6,mi,gi,np=null,ap=null;async function rp(){let e=Be();Bl=await ip(),Mt=Bl.pagePopupConfig||Mt;let t=document.createElement("div");t.id="immersive-translate-popup",t.setAttribute("style","all: initial"),document.documentElement.appendChild(t);let n=t.attachShadow({mode:"open"});_l=n;let a=[e.IMMERSIVE_TRANSLATE_PICO_CSS,e.IMMERSIVE_TRANSLATE_COMMON_CSS,e.IMMERSIVE_TRANSLATE_POPUP_CSS,e.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);Sb(n,[a]);let r=document.createElement("div");r.innerHTML=e.IMMERSIVE_TRANSLATE_POPUP_HTML,n.appendChild(r),Da=n.querySelector("#immersive-translate-popup-container");let o=n.querySelector("#immersive-translate-popup-btn");Sn=o,fi=n.querySelector("#mount"),Da.setAttribute("style",Rl(Mt)),jl(),o.addEventListener("mousedown",up),o.addEventListener("touchstart",Pb),globalThis.addEventListener("resize",l=>{Da.setAttribute("style",Rl(Mt))})}function Db(){pa(null,fi),fi.style.display="none",Sn.style.display="block",Er=setTimeout(()=>{jl(!0)},2e3)}function tp(e){let t=e.querySelector("#mount"),n=()=>{Db()},a=r=>{r&&r.target&&r.target.id==="immersive-translate-popup-overlay"&&n()};(async()=>{let r=await Tn();pa(V(Yo,{lang:r.interfaceLanguage,fallbackLang:"zh-CN",translations:Go,children:V("div",{onClick:a,id:"immersive-translate-popup-overlay",class:"immersive-translate-popup-overlay",children:V("div",{class:"immersive-translate-popup-wrapper",style:Lb(),children:V(Ml,{onClose:n})})})}),t)})().then(()=>{Sn.style.display="none",fi.style.display="block"})}function Lb(){let e=Ol(),t=e.height,{position:n,top:a,left:r}=Mt,u={position:"fixed"},o=300,i=300,l=100;return Kc()&&(n=Fl.position,a=Fl.top),n==="right"||n==="left"?(u.top=a-l,u.top+o>=t?(u.bottom=30,delete u.top):u.top<=10&&(u.top=10),n==="right"?u.right=0:n==="left"&&(u.left=0)):(n==="top"||n==="bottom")&&(u.left=r-l,u.left+i>=e.width?(u.right=0,delete u.left):u.left<=10&&(u.left=0),n==="top"?u.top=0:n==="bottom"&&(u.bottom=0)),u}function Ol(){return{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}function up(e){ap=Da.getAttribute("style"),mi=e.pageX,gi=e.pageY,Er&&clearTimeout(Er),pi=!1,Sn.style.opacity="1",Sn.style.transform="none",np=Sn.getAttribute("style"),globalThis.addEventListener("mousemove",Il),globalThis.addEventListener("mouseup",Nl),globalThis.addEventListener("touchmove",op),globalThis.addEventListener("touchend",hi),globalThis.addEventListener("touchcancel",hi)}function Pb(e){e.preventDefault&&e.preventDefault(),up(e.changedTouches[0])}function op(e){Il(e.changedTouches[0])}function hi(e){e.preventDefault&&e.preventDefault(),Nl(e.changedTouches[0])}function Il(e){e.preventDefault&&e.preventDefault(),pi=!0,Da.setAttribute("style",`left:${e.clientX}px;top:${e.clientY}px;transform:scale(1.6);`)}function Nl(e){e.preventDefault&&e.preventDefault(),Fb(),Er&&clearTimeout(Er),mi=mi||0,gi=gi||0;let t=Math.abs(e.pageX-mi),n=Math.abs(e.pageY-gi);t{jl(!0)},2e3)}function jl(e=!1){Sn.style.opacity="0.4";let t="";Mt.position==="left"?t="translateX(-40%)":Mt.position==="right"?t="translateX(40%)":Mt.position==="top"?t="translateY(-40%)":Mt.position==="bottom"&&(t="translateY(40%)"),Sn.style.transform=t,e&&(Sn.style.transition="transform 0.2s ease-in-out, opacity 0.2s ease-in-out")}function Fb(){globalThis.removeEventListener("mousemove",Il),globalThis.removeEventListener("mouseup",Nl),globalThis.removeEventListener("touchmove",op),globalThis.removeEventListener("touchend",hi),globalThis.removeEventListener("touchcancel",hi)}function Rl(e){let t=_b(e);return Object.keys(t).map(n=>typeof t[n]=="number"?`${n}:${t[n]}px;`:"").join("")}function _b(e){let{position:t,...n}=e,a=Ol(),r={};return t==="left"?(r.left=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="right"?(r.right=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="top"?(r.top=0,n.left>a.width?r.left=a.width-100:r.left=n.left):t==="bottom"&&(r.bottom=0,n.left>a.width?r.left=a.width-100:r.left=n.left),r}var sp=!1;async function lp(){sp||(sp=!0,rp().catch(e=>{H.error("init popup error",e)}))}var cp=!1,pp=[()=>{Ve.unbind()}],zl=[...pp],Bb=yt(async()=>{await xr()},50),Rb=yt(async()=>{await si()},50),Ob=yt(async()=>{await di()},50),Ib=yt(async()=>{await ci()},50),fp=yt(e=>{gr({method:e,data:{trigger:"userscript_menu"}})},50),Nb=yt(()=>{bi();let e=new CustomEvent(Vn,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},200),jb=yt(()=>{Ei();let e=new CustomEvent(Vn,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},200),Ub=yt(()=>{xi();let e=new CustomEvent(Vn,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},200);function zb(e,t){let n=e.document;if(cp)return;if(cp=!0,he()||wp(),n.addEventListener("securitypolicyviolation",Xb),document.addEventListener(ge+"DocumentMessageUser",Ep),document.addEventListener(ge+"DocumentMessageUpdateUser",Tp),document.addEventListener(ge+"ChangeSuccessService",Cp.bind(null,t)),document.addEventListener(zu,Jb.bind(null,t)),n.addEventListener(ge+"EbookLoaded",Zb),n.addEventListener(b4,Qb),n.addEventListener(y4,ey.bind(null,t)),n.addEventListener("click",r=>{$b(r,t)}),he()&&(globalThis.top!=globalThis.self?e.addEventListener("message",qb,!1):n.addEventListener(Vn,Hb)),globalThis.top===globalThis.self){let r=oa.rootIframe(Gu);r.handleAsk("getRateLimitDelay",Nm),r.handleAsk("throttleRequest",bg)}}function hp(e,t){ty(),zb(t,e);let n=t.document,a=Wb.bind(null,e);e.rule.fingerCountToToggleTranslagePageWhenTouching>=2&&n.addEventListener("touchstart",a),zl.push(()=>{n.removeEventListener("touchstart",a)}),he()&&globalThis.top===globalThis.self&&(X0(e.config),ny(e.config)),At()&&X0(e.config)}function Hb(e){lp()}function qb(e){let t=e;t&&t.data&&t.data.payload&&t.data.author===Uu&&pr(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})}function Wb(e,t){let n=t;n.touches.length==e.rule.fingerCountToToggleTranslagePageWhenTouching?Nb():n.touches.length===e.rule.fingerCountToToggleTranslationMaskWhenTouching?Ub():n.touches.length===e.rule.fingerCountToToggleTranslagePageOnlyTranslationWhenTouching&&jb()}function $b(e,t){let n=e.target;if(!n||!n.getAttribute){Ul(n);return}let a=n.getAttribute("data-immersive-translate-event");a&&Ye(a,[{name:a}],{...t,sourceLanguage:"none"});let r=n.getAttribute(`data-${Q}-action`);if(r)if(r==="retry"){e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),yi(),Ul(n,!0);return}else if(r=="toast-error"){let u=n.getAttribute(`data-${Q}-tooltip-text`);Hl(yp.bind(null,t,u||""))}else r=="close-search"&&(e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),Hl(Vb.bind(null,t)));Ul(n)}async function dp(e=!1){let t=document.querySelector(`.${Q}-search-recomend`);if(!t||(t.remove(),!e))return;let n=await sn();n.generalRule||(n.generalRule={}),n.generalRule.enableSearchEnhancement=!1,await on(n)}async function Kb(){let e=await sn(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,a=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(a=e.translationUrlPattern.matches||[]),!n&&a.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await on(e)}async function Gb(){let e=await sn(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await on(e)}var mp=0;function Hl(e){let t=Date.now();if(t-mp<2e3)return;mp=t;let n=`${Q}-modal`,a=document.querySelector(`.${n}`);if(a?.style.display=="block")return;let r=`${Q}-modal-title`,u=`${Q}-modal-body`,o=`${Q}-modal-footer`;if(a){let i=a.querySelector(`.${r}`),l=a.querySelector(`.${o}`),c=a.querySelector(`.${u}`);e(a,i,c,l)}else{a=document.createElement("div"),a.className=n+" notranslate",a.id=n;let i=document.createElement("div");i.className=Q+"-modal-content notranslate",a.appendChild(i);let l=document.createElement("span");l.textContent="\xD7",l.className=Q+"-close",i.appendChild(l);let c=document.createElement("div");c.className=r+" notranslate",i.appendChild(c);let s=document.createElement("div");s.className=u+" notranslate",i.appendChild(s);let g=document.createElement("div");g.className=o,i.appendChild(g),document.body.appendChild(a),l.onclick=function(){a.style.display="none"},window.onclick=function(p){p.target==a&&(a.style.display="none")},e(a,c,s,g)}setTimeout(()=>{Yb()},100)}function Vb(e,t,n,a,r){let u=bp.bind(null,e);n.innerHTML=`
${Qo} ${u("disableConfirm")}
`,a.innerHTML="";let o=document.querySelector(`div[data-${Q}-cancel-desc]`),i=document.createElement("p");i.innerHTML=o?Re.sanitize(o.textContent||""):Re.sanitize(u("searchEnhancementNotes")),i.style.cssText="margin-bottom:12px",a.appendChild(i);let l=[{id:"enable-search-enhancement",value:"enable",text:u("enableSearchEnhancement")},{id:"disable-once",value:"once",text:u("disableOnce")},{id:"disable-global",value:"global",text:u("disableGlobal")}];for(let f=0;f${u("option")}`})),a.appendChild(c);let s=a.querySelector(`.${Q}-open-enhancement`);s&&(s.onclick=function(){vp(!0)});let g=document.createElement("button");g.innerText=u("closeModal"),g.className=`${Q}-btn ${Q}-cancel-btn`;let p=document.createElement("button");p.className=`${Q}-btn`,p.innerText=u("saveSettings"),r.innerHTML="",r.appendChild(g),r.appendChild(p),g.onclick=function(){t.style.display="none"},p.onclick=function(){let f=a.getElementsByTagName("input"),d="";for(let b=0;b
1. \u5207\u6362\u5230 ${u} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458`:i+=`

\u5982\u679C\u60A8\u6709\u7591\u95EE\uFF0C\u8BF7\u8054\u7CFB support@immersivetranslate.com`,Hl(yp.bind(null,e,i))}catch(a){H.warn("parse message error",a)}}function Qb(e){let t=e;if(H.debug("receive third party message",t),t&&t.detail)try{let n=JSON.parse(t.detail);n&&n.type&&(n.type==="retryFailedParagraphs"?ay({method:"retryFailedParagraphs"}):n.type==="updateCommands"?Ap(n.data):n.type==="toggleEnableDefaultAlwaysTranslatedUrls"?Kb():n.type==="toggleEnableInputTranslation"?Gb():fp(n.type))}catch(n){H.warn("parse message error",n)}}function Zb(e){setTimeout(()=>{xp()},10)}function Xb(e){Ee.HAS_CSP_ERROR="1"}function ey(e,t){let n=event.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&Ye(n.name,[{name:n.name}],{...e})}function ty(){zl.forEach(e=>{e()}),zl=pp}function ny(e){if(he()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=ho.commands,r=[...Object.keys(t).filter(u=>u==="toggleTranslatePage").map(u=>{let o=t[u].description,i=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(i=mr(`browser.${o.slice(6,-2)}`,e.interfaceLanguage)),{id:u,title:i}}),{id:Ji,title:mr("browser.openEbookViewer",e.interfaceLanguage),key:"e"},{id:Qi,title:mr("browser.openEbookBuilder",e.interfaceLanguage),key:"m"},{id:Vi,title:mr("browser.openOptionsPage",e.interfaceLanguage),key:"o"},{id:Yi,title:mr("browser.openAboutPage",e.interfaceLanguage),key:"a"}];for(let u of r)GM.registerMenuCommand(u.title,()=>{u.id===Vi?Bb():u.id===Yi?Rb():u.id===Qi?Ob():u.id===Ji?Ib():fp(u.id)},u.key)}}function ay(e){pr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{H.error("send content message request failed",e,n)});let t=new CustomEvent(Vn,{detail:e});globalThis.document.dispatchEvent(t)}m();var La={};async function ql(){let t=[...document.querySelectorAll(".source-text")].map(a=>a.textContent).join(""),n=await Je({text:t,minLength:200,pageLangs:[Ea(),"en"]});return an(n),n}async function kp(e){Pt("Translating");let t=pt(),n=Co(),a=[...document.querySelectorAll(".source-text")];if(No(e,t))return;let r=a.filter(u=>u.innerText?.trim()).map((u,o)=>{let i=u.parentElement?.parentElement?.querySelector(".target-text");return nt(u,"id",o+""),i&&(ir(i,o)?.remove(),i.appendChild(cu(e,o))),{text:u.innerText||"",id:o,from:t,to:e.targetLanguage,url:"https://google.com",fromByClient:n}});document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await sa({sentences:r},e,(u,o,i)=>{let l=i.id,c=ir(document.body,l);if(!c)return;let s=c.parentElement;s&&(c.remove(),u?(s.innerHTML=Re.sanitize(`${u.message}`),La[l]={ok:!1,sentence:i}):o&&(s.innerHTML=Re.sanitize(o.text),La[l]={ok:!0,sentence:i}),document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!u}})})))})}catch(u){throw u}finally{Pt("Translated")}}async function Sp(e){Pt("Translating"),document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(La),n=[],a=[];for(let r of t){let u=La[r];if(!u.ok){let i=document.querySelector(`#error-id-${r}`);if(i){let l=i.parentElement;i.remove(),l&&(delete La[r],l.appendChild(cu(e,r)),a.push(u.sentence))}}}try{await sa({sentences:a},e,(r,u,o)=>{let i=o.id,l=ir(document.body,i);if(!l)return;let c=l.parentElement;c&&(l.remove(),r?(c.innerHTML=Re.sanitize(`${r.message}`),La[i]={ok:!1,sentence:o}):u&&(c.innerHTML=Re.sanitize(u.text),La[i]={ok:!0,sentence:o}),document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!r}})})))})}catch(r){throw r}finally{Pt("Translated")}}function Wl(){Pt("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}m();var $l={};async function Dp(){let e=[...document.querySelectorAll("iframe")],t="";for(let a of e){let r=a.contentDocument;if(!r)continue;let u=r.body;if(u&&(t=t+u.innerText||"",t.length>1e3))break}let n=await Je({text:t,pageLangs:["en"]});return an(n),n}async function Lp(e){Pt("Translating"),document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys($l),n=[];for(let a of t){let r=$l[a];if(r.error){let o=r.commonAncestorContainer.querySelector(`[${qu}='${a}']`);o&&o.remove(),n.push(r)}}try{await qo(n,e,e.config.translationMode)}catch{}finally{Pt("Translated")}}function Pp(){let e=[...document.querySelectorAll("iframe")];for(let t of e){let n=t.contentDocument;if(!n)continue;let a=n.querySelectorAll("."+Wt);for(let r of a)r.remove()}Pt("Original")}async function Mp(e){Pt("Translating");let t=bn(),n=[...document.querySelectorAll("iframe")],a=[],r=[];for(let i of n){let l=i.contentDocument;if(!l)continue;sr(l,e);let c=l.body;if(!c)continue;let s=rn(e);s.isModifyImage=!1,ca({id:t,container:c,filterRule:s,onParagraph:g=>{a.push(g)}})}let u=Io(e.config.translationServices[e.translationService]?.placeholderDelimiters),o=1;for(let i of a){let l=Uo(i.flatNodes,{isPreWhitespace:i.isPreWhitespace||!1,delimiters:u,stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(s=>s.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)});if(!l)continue;i.variables=l?.variables||{},i.text=l?.text,i.id=(o++).toString();let c=await G0(i,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:u,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});c&&(r.push(c),$l[c.id]=c)}a=[],document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await qo(r,e,e.config.translationMode)}catch{}finally{Pt("Translated")}}m();var ry=new AbortController,{signal:uy}=ry,Jl=0,Ql=0,Kl=!1,Gl=0,yu=!1,Pa,Fp=0,Ma=[];function Ti(e,t){oy();let n=e,a=n.config,r=a.generalRule.mouseHoverHoldKey==="Off",u=a.generalRule.mouseHoverHoldKey==="Auto",o=yt(s=>{if(Kl==!1&&Math.abs(s.clientX-Jl)+Math.abs(s.clientY-Ql)>3&&(Gl<2?Gl+=1:Kl=!0),Jl=s.clientX,Ql=s.clientY,u||yu&&!Pa){let g=Ip(n.rule,t);if(g){if(Zl(g))return;Bp(n,g)}}},u?700:300),i=s=>{let g=s.target;Zl(g)||Bp(n)},l=s=>{let g=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=Ve.getPressedKeyCodes();if(p.length>1&&Ve[g]&&(Fp=Date.now(),yu=!1),p.length===1&&Ve[g]){let f=Date.now();yu=!0,Pa&&clearTimeout(Pa),Pa=setTimeout(()=>{let d=Fp-f;d>0&&d<=150?yu=!1:i(s),Pa=void 0},150)}};if(Ma.push(()=>{Pa&&clearTimeout(Pa)}),r)return;Vl("mousemove",o,t),Ma.push(()=>{t.removeEventListener("mousemove",o)});function c(){Kl=!1,Gl=0,o.cancel()}if(u)Vl("blur",c,t),Ma.push(()=>{t.removeEventListener("blur",c)});else{let s=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",g=["ctrl","alt","shift","cmd","command","option","control"];Vl("keyup",_p,t),Ma.push(()=>{t.removeEventListener("keyup",_p)}),g.includes(s)?Ve("*","mouseHover",l):Ve(a.generalRule.mouseHoverHoldKey,"mouseHover",i),Ve.setScope("mouseHover"),Ma.push(()=>{Ve.deleteScope("mouseHover")})}}function oy(){Ma.forEach(e=>e()),Ma=[]}function _p(e){yu=!1}function Vl(e,t,n=window){return n.addEventListener(e,t,{signal:uy})}function Bp(e,t,n=window){if(t=t||Ip(e.rule,n),!t){H.debug("can not find selection part!");return}if(Zl(t)){H.debug("exclude dom");return}u3(e,t);let a=Ko();a?.currentUrl!==window.location.href&&(zn(),Q0(e)),a&&(a.setupMouseHoverListener=Ti);let r=rn(e);r.excludeSelectors=[],r.selectors=[];let u=!1;ca({id:a.id,container:t,filterRule:r,force:!0,onParagraph:o=>{mu(a,o,!0).then(i=>{if(i&&!u){u=!0;let l=Date.now();ze(E4,l),Ye("mouse_hover_translate",[{name:"mouse_hover_translate"}],{...e,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function Ip(e,t){return iy(Jl,Ql,e,t)}function iy(e,t,n,a){let r=zd(e,t,n,a);if(r==null)return;let u=()=>{let l=a.document.elementFromPoint(e,t);if(!l)return;let c=Hd(l,e,t);return c===l?l.nodeName==="BUTTON"?l:void 0:Op(c,n)},o=()=>{try{r.setStartBefore(r.startContainer),r.setEndAfter(r.startContainer)}catch(c){H.debug("get mouse over word fail",c)}let l=r.getBoundingClientRect();if(!(l.left>e||l.rightt||l.bottomn[s]=[s,...n[s]||[]]);let a=t.inputStartingTriggerKeyAlias[t.inputStartingTriggerKey]||[];a.includes(t.inputStartingTriggerKey)||a.unshift(t.inputStartingTriggerKey),n[t.inputTargetLanguage]=[...a,...n[t.inputTargetLanguage]];let r=t.inputTrailingTriggerKeyTimeout;fa().any&&(r=t.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:t.inputTrailingTriggerKeyRepeatTimes,triggerKey:t.inputTrailingTriggerKey,triggerTimeout:r,codePrefix:t.inputStartingTriggerKey,codeAlias:n,flatAlias:Object.values(n).flat(),codePrefixAlias:t.inputStartingTriggerKeyAlias},o=0,i=Date.now();Ci&&self.removeEventListener("keydown",Ci),Ci=l,self.addEventListener("keydown",Ci);function l(s){if(Tr||wi===!1)return;let g=s,p=g.target||g.srcElement,f=p?.tagName;(p?.isContentEditable||f=="INPUT"||f=="SELECT"||f=="TEXTAREA")&&(Ay(s,u.triggerKey,u.codePrefixAlias)?c(s):o=0)}async function c(s){Date.now()-i=u.triggerTimes&&my()&&(o=0,dy(s,e,u))}ky(e)}function sy({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let a=[],r=n[e]||[];r.includes(e)||r.unshift(e);for(let u of r){let o=t.map(i=>{let l=u+i;return r.includes(i)||(l+=" "),l});a.push(...o)}return new RegExp(a.join("|"))}function jp(e,t){for(let[n,a]of Object.entries(t))if(a.includes(e))return n;return""}var Cr;function ly(e){let t=e.parentElement;if(!t)return;Cr=document.createElement("div"),Cr.className=Q+"-input",Cr.innerHTML=`
`,t.appendChild(Cr);let n=t,a=!1;do{let r=getComputedStyle(n).position;if(["fixed","absolute","relative"].includes(r)){a=!0;break}n=n.parentElement}while(n);if(n=t,!a)do{if(getComputedStyle(n).position==="static"){n.style.position="relative";break}n=n?.parentElement||null}while(n)}function cy(){Cr&&Cr.remove()}async function dy(e,t,n){if(!Tr)try{let p=function(){i=t.config.inputTargetLanguage;let d=o.split(" ")[0];d&&d[0]&&(d=d[0].toLowerCase()+d.slice(1)),d.trim()&&n.flatAlias.includes(d)?(i=jp(d,n.codeAlias),u=o.slice(d.length+1)):u=o},f=function(){i="";let d=sy(n),b=o.split(d);if(b.length<2)return;if(u=b[b.length-1],r=b[0],b.length>2){let h=o.lastIndexOf(u),A=o.slice(0,h).lastIndexOf(b[b.length-2]);r=o.slice(0,A+b[b.length-2].length)}if(r.endsWith(n.codePrefix))return;let C=o.slice(r.length+1,o.indexOf(u)).trim();if(i=jp(C,n.codeAlias),!i){H.warn("not found alias",C);return}},a=document.activeElement;Tr=!0;let r="",u="",o=wr(a)||"",i=t.config.inputTargetLanguage;n.codePrefix==="none"?p():(f(),!i&&t.config.enableInputTranslationWithoutTriggerKey&&p());let l=py(u,n),c=await Je({text:l,pageLangs:["en"]});H.debug("translateContent",l,c);let s={text:l||"",id:0,from:c,to:i,url:"https://google.com",fromByClient:c};if(!s.text)return;if(t.config.isShowInputTranslationConsent&&!Np){Np=!0;let d=await Sy(t);if(e.target&&e.target.focus(),d==="open_settings"){xr(!0,"#input");return}else if(d==="open_learn_more"){li("https://immersivetranslate.com/docs/input/");return}else if(d==="disable_once"||d==="disable_forever"){if(wi=!1,d==="disable_forever"){let b=await sn();b.enableInputTranslation=!1,b.isShowInputTranslationConsent=!1,await on(b)}else if(d==="disable_once"){let b=await sn();b.isShowInputTranslationConsent=!1,await on(b)}return}else if(d==="close_disable_once"||d==="close_disable_forever"){if(wi=!1,d==="close_disable_forever"){let b=await sn();b.enableInputTranslation=!1,b.isShowInputTranslationConsent=!1,await on(b)}return}else if(d==="enable"){let b=await sn();b.enableInputTranslation=!0,b.isShowInputTranslationConsent=!1,await on(b)}else if(d==="close_enable"){let b=await sn();b.enableInputTranslation=!0,await on(b)}}ly(a),ze(Zi,Date.now());let g=await Aa(s,{...t,translationService:t.inputTranslationService});vy(t),wy(a,r+g.text),Tr=!1}catch(a){throw Tr=!1,a}finally{Tr=!1,cy()}}function my(){let e=document.activeElement;if(!e)return!1;if(vi(e)){let t=e.selectionStart||0,n=e.value.length,r=e.value.split(` -`).reverse()[0].trim(),u=n<=t;return H.debug("cursorPosition",t,"textLength",n),H.debug("input isTail",u,"tailHasText",r),u&&!!r}else{let t=window.getSelection();if(!t)return H.debug("No active selection found."),!1;if(t.rangeCount>0){let n=t.getRangeAt(0),a=n.startContainer;if(a.nodeType===Node.TEXT_NODE){let r=gy(a,e);H.debug("Current text node:",a.textContent),H.debug("Cursor position within text node:",n.startOffset);let u=a.textContent?.length===n.startOffset&&r,o=a.textContent?.trim();return H.debug("editdiv isTail",u,"tailHasText",o),u&&!!o}else H.debug("Cursor is not within a text node.")}}return!1}function gy(e,t){let n;function a(r){if(r.nodeType===Node.TEXT_NODE)n=r;else for(let u of r.childNodes)a(u)}return a(t),n==e}function py(e,t){let{triggerTimes:n,triggerKey:a}=t,r=0,u=" ";a.length==1?(r=n,u=a):a.toLowerCase()=="space"&&(r=n);let o=e.length;for(let i=e.length-1;i>=e.length-r;i--){if([10,8629].includes(e[i].charCodeAt(0))){o--;continue}if(![...t.codePrefixAlias[a]||[],u].includes(e[i]))break;o--}return e.length-o<3&&[".","\u3002"].includes(e[o-1])&&o--,e.slice(0,o)}function fy(e,t){let n=t.innerHTML,a=wr(t);return{html:n.replace(a,e),text:e}}function Up(e,t,n=!1){let a=wr(t);return n?a.trim().endsWith(e.text.trim()):a.trim()==e.text.trim()}function wr(e){return e.value||e.innerText||e.textContent}async function Fa(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function hy(e,t,n){await Fa(10);let a=new DataTransfer;e.forEach(r=>{r==="plain"&&a.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:a,bubbles:!0,cancelable:!0})),a.clearData(),await Fa(10)}async function by(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await Fa(10))}async function yy(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await Fa(20),(t.value||t.value==="")&&(t.value=e.text)}async function xy(e,t){vi(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await Fa(20))}var Ey=[hy.bind(null,["plain"])];function Ty(e){let t;vi(e)?t=new InputEvent("beforeinput",{bubbles:!0,cancelable:!0,inputType:"deleteContent"}):t=new KeyboardEvent("keydown",{bubbles:!0,cancelable:!0,keyCode:8,which:8,location:0,key:"Backspace"}),e.dispatchEvent(t)}function vi(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function Cy(e){if(vi(e))return;e.focus();let t=window.getSelection();if(!t)return;let n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}async function wy(e,t){await Cy(e),await Fa(50);let n=fy(t,e);Ty(e),H.debug("clearContent",wr(e)),await Fa(50);for(let a of[...Ey,yy,xy,by])if(await a(n,e),H.debug("setContent",a.name,Up(n,e),wr(e),n),Up(n,e))break}function vy(e){Ye("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage}}],e)}function Ay(e,t,n){let a="";e&&e.code&&(a=e.code.toLowerCase());let r="";e&&e.key&&(r=e.key.toLowerCase());let u=e.keyCode,o=n[t]||[];return u===229&&t!=="space"?!1:!!(o.includes(a)||o.includes(r)||a===t||r===t)}async function ky(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await Dt(t,"")||Number(await Dt(Zi,0))>0)return;let r=e.rule.inputTutorialsSelectors,u=e.rule.inputTutorialsText;if((r?.length||0)>0&&u)for(let o=0;o{Ly()},100),new Promise(c=>{let s=c;if(u){let T=u.querySelector(`.${n}`),k=u.querySelector(`.${r}`),v=u.querySelector(`.${a}`)}else{u=document.createElement("div"),u.className=t+" notranslate",u.id=t;let T=document.createElement("div");T.className=Q+"-modal-content notranslate",u.appendChild(T);let k=document.createElement("span");k.textContent="\xD7",k.className=Q+"-close",T.appendChild(k),o=document.createElement("div"),o.className=n+" notranslate",T.appendChild(o),l=document.createElement("div"),l.className=a+" notranslate",T.appendChild(l),i=document.createElement("div"),i.className=r,T.appendChild(i),document.body.appendChild(u),k.onclick=function(){S(),c("close")},window.onclick=function(v){v.target==u&&(u.style.display="none",c("close"))}}document.addEventListener("keydown",y);let g=Dy.bind(null,e);o.innerHTML=`
${Qo} ${g("modalEnableInputTranslationTitle")}
`,l.innerHTML="";let p=document.createElement("p");p.innerHTML=g("modalEnableInputTranslationDesc",{1:"https://immersivetranslate.com/docs/input/"}),p.style.cssText="margin-bottom:12px",l.appendChild(p);let f=document.createElement("div");f.style.cssText="margin-bottom: 12px;",f.innerHTML=Re.sanitize(g("disableInputTranslationTips",{option:`${g("option")}`,learnMore:`${g("learnMore")}`})),l.appendChild(f);let d=[{id:"enable-search-enhancement",value:"enable",text:g("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:g("disableOnce")},{id:"disable-global",value:"global",text:g("disableGlobal")}];for(let T=0;T{sa({sentences:r},{...e,translationService:"google"},(l,c,s)=>{if(l)return o([]);let g=c?.id||0,p=n[g];p&&p.className==Q+"-search-title-wrapper"&&(p.innerHTML+=Re.sanitize(`
${c?.text}
`,{ADD_ATTR:["target"]}))})})}function Ai(e,t,n){t&&Ye(t.key,[{name:t.key}],{...e,sourceLanguage:t.sourceLanguage||n})}function Xl(e,t,n,a){let r=n.querySelectorAll('[translate="true"]');return Py(e,t,[...r],a),n}async function ec(e,t){let a=(await se({url:My(e),method:"GET",responseType:"raw",headers:{"cache-control":"no-cache","content-type":"application/xml","Sec-Fetch-Site":"none",accept:"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}})).body,u=new DOMParser().parseFromString(a,"text/xml"),o=[],i=u.querySelectorAll("item");for(let l=0;l${e.cancelDescription}
`:""} +`+t.rule.additionalInjectedCss)),i&&Ea(e,i,"immersive-translate-dynamic-injected-css")}g();async function Kg(){let e="auto",t=[Ta(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await Je({text:Ja(document.body),pageLangs:t})),e}g();g();function Gg(e,t){return[e,!e||e.endsWith("/")?"":"/",t,".json"].join("")}function I0(e,t){let n=e;return t&&Object.keys(t).forEach(a=>{let r=t[a];if(r===void 0)return;let u=m9(a);if(typeof r=="object"||u){let o=r;u&&typeof o=="string"&&(o={tag:"a",href:o});let i=`<${a}>`,l=n.indexOf(i);if(l!==-1){let c=o.tag||"a",s=n.indexOf(``);if(s!==-1){let m=n.substring(l+i.length,s),p=Object.keys(o).filter(f=>f!=="tag").map(f=>`${f}="${o[f]}"`).join(" ");n=n.replace(`${i}${m}`,`<${c} ${p}>${m}`)}}}else if(r){let o=new RegExp("{"+a+"}","gm");n=n.replace(o,r.toString())}}),n}function cu(e,t,n){let a=e[t];if(!a)return n;let r=n.split("."),u="";do{u+=r.shift();let o=a[u];o!==void 0&&(typeof o=="object"||!r.length)?(a=o,u=""):r.length?u+=".":a=n}while(r.length);return a}function Un(e,t,n,a,r){if(!e.hasOwnProperty(n))return t;let u=cu(e,n,t);return u===t&&n!==a&&(u=cu(e,a,t)),I0(u,r)}function m9(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}g();g();function N0(e,t,n=[],a){let r=["notranslate"];return a&&r.push(P4),e&&(r.push(`${Q}-target-translation-theme-${e}`),t?r.push(`${ts}-theme-${e}`):r.push(`${es}-theme-${e}`)),n.length>0&&r.push(...n),t?r.push(ts):r.push(es),r}function j0(e){let t=["notranslate",D4];return e&&t.push(`${Q}-target-translation-theme-${e}-inner`),t}function Vg(e,t,n){let{rule:a,state:r}=n,{translationTheme:u}=r,{variables:o,isVertical:i}=e;o=o||[];let{text:l}=t,{wrapperPrefix:c,wrapperSuffix:s}=a,m=Za(n),p="afterend",f=m[0],d=m[1],b=`${f}(\\d+)${d}`,C=new RegExp(b,"g"),h=Re.sanitize(l);o.length>0&&(h=h.replace(C,O=>{let y=h.indexOf(O),T=h[y-1]===" ",k=h[y+O.length]===" ",v=O.slice(m[0].length,-m[1].length),E=Number(v);if(isNaN(E))return O;let R=o[Number(E)];if(R&&R.type==="element"){let F=R.value.outerHTML;return T||(F=" "+F),k||(F=F+" "),F}else H.error("variable type not supported",R,O);return O}));let A=N0(u,e.inline,a.translationClasses||[],e.preWhitespace);i&&A.push(L4);let S=j0(u),U="";return a.translationBlockStyle&&(U=`style="${a.translationBlockStyle}"`),h=`<${n.rule.targetWrapperTag} ${U} class="${A.join(" ")}" ${vn}="1"><${a.targetWrapperTag} class="${S.join(" ")}" ${vn}="1">${h}`,e.inline||(c==="smart"?h=`
${h}`:h=`${c}${h}`),e.inline&&(c!=="smart"?h=`${c}${h}`:h=`<${a.targetWrapperTag} class="notranslate" ${vn}="1"> ${h}`),s==="smart"?h=`${h}`:h=`${h}${s}`,{html:h,position:p}}function Uo(e,t){let n=null,{stayOriginalSelectors:a,delimiters:r,isPreWhitespace:u}=t,o=[],i={};for(let l=0;l2&&(C=`<${r[2]}${b}>`),i[b]=c,o.push({text:C,type:"variable"})}else o.push({text:c.textContent||"",type:"text"});else{let d=c.textContent||"";m&&(d=la(U0(c))),o.push({text:d,type:"text"})}else if(c.nodeType===Node.ELEMENT_NODE)if(c&&Lt(c,a)){let b=Object.keys(i).length,C=`${r[0]}${b}${r[1]}`;r.length>2&&(C=`<${r[2]}${b}>`),i[b]=c;let h=z0(o).endsWith(" ")?" ":"",A=la(c.innerText||c.textContent),S=la(c.nextSibling).startsWith(" ")?" ":"",U=su(h+A+S),O=U[0]+C+U[1];if(h===" ")O=O.trimStart();else if(!O.startsWith(" ")){let y=su(c.previousSibling)[1];y===""&&(y=" "),O=y+O}o.push({text:O,type:"variable"})}else{let d=z0(o).endsWith(" ")?" ":"",b=la(c.innerText||c.textContent);m&&(b=la(U0(c)));let C=la(c.nextSibling).startsWith(" ")?" ":"",h=su(d+b+C),A=h[0]+(c.innerText?.trim()||c.textContent?.trim()||"")+h[1];if(d===" ")A=A.trimStart();else{let S=su(c.previousSibling)[1];S===""&&(c.nodeName==="A"||c.nodeName==="CODE")&&(S=" "),A=S+A}o.push({text:A,type:"text"})}else{let d=z0(o).endsWith(" ")?" ":"",b="";c.textContent&&(b=la(U0(c))),d===" "&&(b=b.trimStart()),o.push({text:b,type:"text"})}}if(o&&o.length>0){let l="";for(let c=0;c0&&(m=o[c-1].text),c2){let s=c[2];return g9({delimiterTag:s,targetText:e.targetText,inline:r,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:a}).html}else{let s=Vg(l,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return s.html}}function U0(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function g9(e){let{delimiterTag:t,inline:n,translationClasses:a,targetWrapperTag:r,wrapperPrefix:u,variables:o,preWhitespace:i,wrapperSuffix:l,translationTheme:c,translationBlockStyle:s}=e;o=o||[];let m=e.targetText;m=Re.sanitize(m);let p=m,f=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),d=new RegExp(`<${t}(\\d+)>`);o.length>0&&(p=p.replace(f,A=>{let S=p.indexOf(A),U=p[S-1]===" ",O=p[S+A.length]===" ",y=A.match(d);if(!y)return A;let T=y[1],k=Number(T);if(isNaN(k))return A;let v=o[Number(k)];if(v&&v.type==="element"){let E=v.value.outerHTML;return U||(E=" "+E),O||(E=E+" "),E}else if(v&&v.type==="text"){let E=v.value;return U||(E=" "+E),O||(E=E+" "),E}else H.error("variable type not supported",v,A);return A}));let b=N0(c,n,a||[],i),C=j0(c),h="";return s&&(h=`style="${s}"`),p=`<${r} ${h} class="${b.join(" ")}" ${vn}="1"><${r} class="${C.join(" ")}" ${vn}="1">${p}`,n||(u==="smart"?p=`
${p}`:p=`${u}${p}`),n&&(u!=="smart"?p=`${u}${p}`:p=`<${r} class="notranslate" ${vn}="1"> ${p}`),l==="smart"?p=`${p}`:p=`${p}${l}`,{html:p,position:"afterend"}}function z0(e){let t=e[e.length-1];return t?t.text:""}function rn(e){let t=e.rule.selectors,n=e.rule.excludeTags,a=e.rule.additionalExcludeTags,r=e.rule.excludeSelectors,u=e.rule.additionalExcludeSelectors;return e.state.translationArea==="body"&&(t=[],r=[]),{globalStyles:e.rule.globalStyles,globalAttributes:e.rule.globalAttributes,selectors:t,skipEditableCheck:e.rule.skipEditableCheck,lineBreakMaxTextCount:e.rule.lineBreakMaxTextCount,isTransformPreTagNewLine:e.rule.isTransformPreTagNewLine,excludeSelectors:n.concat(a).map(i=>i.toLowerCase()).filter(i=>i!=="code"&&i!=="img").concat(r).concat(u),blockSelectors:e.rule.allBlockTags.map(i=>i.toLowerCase()).concat(e.rule.extraBlockSelectors),extraBlockSelectors:e.rule.extraBlockSelectors,extraInlineSelectors:e.rule.extraInlineSelectors.concat(e.rule.additionalInlineSelectors),stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(i=>i.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)}}var p9={sanitize:e=>e};function Ho(e,t){e.interruptEffectDOM||(e.walkContainer({id:e.id,container:t,filterRule:rn(e.ctx),onParagraph:du.bind(null,e),onFrame:n=>{q0(e,n,!0)},onIgnoreElement:n=>{e.ignoreResizeObserver?.observe(n)}}),Ua&&nt(t,"consumeContainer",e.id))}function q0(e,t,n){try{if(e.injectCssToDocument(t,e.ctx),t instanceof HTMLIFrameElement){if(!Xa(t))return;H.debug("onFrame fragment",t);let a=t.contentWindow?.document.body;a&&(cr(a,e,n),e.dynamicContainerObserver?.observe(a,{childList:!0,subtree:!0}))}else H.debug("onFrame shadowRoot",t.host),cr(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0})}catch{}}function cr(e,t,n=!0){let{globalStyles:a,globalAttributes:r}=rn(t.ctx),u=0;if(l(t,e,n))return;if(En(e)&&i(e)){o(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,s=>(En(s)&&(a&&_0(s,a),r&&R0(s,r)),l(t,s,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(zt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode();){zt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let s=c.currentNode;if(i(s))for(o(s);;){if(c.nextSibling()){let m=c.currentNode;if(zt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),i(m)){o(m);continue}else break}if(!c.parentNode())return}}}catch{}if(u==0&&e instanceof HTMLElement){o(e);return}return t.observeContainers;function o(c){zt.clearMark(c),u++,t.immediateTranslateCapacity>=0?Ho(t,c):(Ua&&nt(c,"observeContainer",t.id),t.containerVisibleObserver?.observe(c))}function i(c){let s=c.nodeName.toLowerCase();if(c.shadowRoot)return q0(t,c.shadowRoot,n),!1;if(s==="iframe")return q0(t,c,n),!1;if(["script","#document-fragment","img"].includes(s))return!1;let m=t.containerRule;if(m.selectors&&m.selectors?.length>0)return jo(c,m.selectors);if(m.pageHeight){let p=c.scrollHeight;if(p>0&&p0)return!0}return!1}function l(c,s,m){if(s.nodeName.toLowerCase()=="script")return s.childNodes.length==0||s.childNodes.length==1&&s.childNodes[0].nodeType==Node.TEXT_NODE;if(s.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(s.nodeType!==Node.ELEMENT_NODE||m&&zt.isMarked(s,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&s.nodeName==="PRE")return!1;let f=rn(c.ctx);return!!O0(s,{excludeSelectors:f.excludeSelectors,selectors:f.selectors,stayOriginalSelectors:f.stayOriginalSelectors})}}function W0(e,t){if(!e.targetNodes)return;let n=e.state||"original",a=e.commonAncestorContainer;if(!zt.isMarked(a,e.ctxId))return;let r=a.contains(e.rootNodes[0]),u=a.contains(e.targetNodes[0]);if(r&&u)n="dual";else if(r)n="original";else if(u)n="translation";else return;if(t!=n){e.state=t;try{if(n=="dual"&&t=="translation"&&(zo(e.rootNodes),Qg(e.commonAncestorContainer)),n=="original"&&t=="translation"){let o=H0(e.rootNodes);if(zo(e.rootNodes),Jg(o))return;lr(o,a,e.targetNodes||[]),Qg(e.commonAncestorContainer)}if(n=="translation"&&t=="dual"){let o=e.targetNodes[0];lr(o,a,e.rootNodes||[]),Zg(e.commonAncestorContainer)}if(n=="original"&&t=="dual"){let o=H0(e.rootNodes);if(Jg(o))return;lr(o,a,e.targetNodes||[]),Zg(e.commonAncestorContainer)}if(n=="translation"&&t=="original"){let o=H0(e.targetNodes);zo(e.targetNodes),lr(o,a,e.rootNodes||[])}n=="dual"&&t=="original"&&zo(e.targetNodes)}catch(o){H.error(o)}}}function Jg(e){return!e||!En(e)?!1:e.classList.contains($t)}function Qg(e){if(!En(e))return;e.querySelectorAll("font[class*=immersive-translate-target-translation]").forEach(a=>{nt(a,"immersiveTranslateClassBak",a.className),a.className="notranslate immersive-translate-target-dual"});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.add("immersive-translate-state-dual")}function Zg(e){if(!En(e))return;e.querySelectorAll("font[class*=immersive-translate-target-dual]").forEach(a=>{let r=Qa(a,"immersiveTranslateClassBak");go(a,"immersiveTranslateClassBak"),a.className=r});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.remove("immersive-translate-state-dual")}function H0(e){return e?e[e.length-1].nextSibling:null}function zo(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function lr(e,t,n){let a=e;t&&(a?n.forEach(r=>{a.parentNode?.insertBefore(r,a)}):n.forEach(r=>{t.appendChild(r)}))}var f9=yt(K0,300);async function du(e,t,n=!1){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||h9(t.rootNodes)||t.stepState>=2)return;t.stepState=2,Ua&&nt(a,"onParseParagraph",e.id);let{ctx:r}=e,{rule:u}=r,o=Za(r),i=Uo(t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:o,stayOriginalSelectors:r.rule.stayOriginalTags.concat(r.rule.stayOriginalTags).map(c=>c.toLowerCase()).concat(r.rule.stayOriginalSelectors).concat(r.rule.additionalStayOriginalSelectors)});if(!i)return;t.variables=i?.variables||{},t.text=i?.text;let l=await G0(t,{excludeLanguages:r?.config?.translationLanguagePattern?.excludeMatches||[],targetLanguage:r.targetLanguage,noTranslateRegexp:r.rule.noTranslateRegexp,delimiters:Io(r.config.translationServices[r.translationService]?.placeholderDelimiters),minTextCount:n||r.state.translationArea==="body"?2:u.paragraphMinTextCount,minWordCount:n||r.state.translationArea==="body"?1:u.paragraphMinWordCount,isDetectParagraphLanguage:r.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:r.rule.ignoreZhCNandZhTW});if(l){if(H.debug("on paragraph",l.text,l),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(l))return;a.paragraphs.push(l),e.immediateTranslateCapacity>0||n?(b9(e,t.text),$0(e,t)):(Ua&&nt(a,"observeParagraph",e.id),e.observeParagraphs.push(l),e.paragraphVisibleObserver?.observe(a))}return l}function h9(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?En(t)&&t.classList.contains($t):!1}function b9(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function $0(e,t){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let n=e.autoIncreaseParagraphId++;t.id=n.toString(),e.paragraphEntities[n]=t,e.paragraphQueue.push(n.toString()),Ua&&nt(t.commonAncestorContainer,"consumeParagraph",e.id),f9.call(e,e.ctx)}async function K0(e){if(this.interruptEffectDOM)return;let t=this.paragraphQueue;this.paragraphQueue=[];let n=[];for(let a=0;a0)try{await sa(a,t,(r,u,o)=>{let i=o.id,l=y9(e,i.toString());l&&x9.call(null,r,u,o,l,t,n)})}catch(r){H.error("translateCurrentQueue error",r);return}}function y9(e,t){return e.find(n=>n.id===t)}function x9(e,t,n,a,r,u){let o=!1,i=a;if(ir(i.commonAncestorContainer,n.id)?.remove(),i&&(e||!t)){e||(H.error("translate error",n,e,t),e=new Error("no response from server"));let{rule:l}=r,c=n.id,s=document.createElement(l.targetWrapperTag);nt(s,w4,c.toString()),s.classList.add("notranslate",$t,$t+"-error"),s.setAttribute("translate","no"),s.setAttribute("lang",r.targetLanguage);let m=a.rootNodes[a.rootNodes.length-1].nextSibling;lr(m,a.commonAncestorContainer,[s]),E9(r,e);let p=e.message.replaceAll(` +`,"");if(p=p.replaceAll('"',"""),i&&(i.error=new Error(p)),s){let f=Un(Ot,"retryAllParagraphs",r.config.interfaceLanguage,"zh-CN"),d=Un(Ot,"errorTooltipTitle",r.config.interfaceLanguage,"zh-CN"),b=`<${l.targetWrapperTag} class="${Q}-error notranslate"><${l.targetWrapperTag} class="${Q}-error-wrapper">\u{1F504}  \u2753`;s.innerHTML=Re.sanitize(b)}}else if(a){if(i.error=void 0,a.targetText=t?.text||"",!(a.text?.toLocaleLowerCase()==a.targetText?.toLocaleLowerCase())){let c=Yg(a,r),s=document.createElement(r.rule.targetWrapperTag);s.classList.add("notranslate",$t),s.setAttribute("lang",r.targetLanguage),s.setAttribute(vn,"1");let m=p9.sanitize(c);s.innerHTML=m,a.targetNodes=[s],W0(a,u)}o=!0}else H.error("paragraph not found",n.id);document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}))}async function G0(e,t){let{text:n}=e,a=await Je({text:n||"",minLength:15,pageLangs:[pt(),"en"]}),{targetLanguage:r}=t;if(!Ng({text:n||"",delimiters:t.delimiters,minWordCount:t.minWordCount,minTextCount:t.minTextCount,noTranslateRegexp:t.noTranslateRegexp}))return null;let o=t.excludeLanguages||[],i=To();t.isDetectParagraphLanguage&&(i="auto");let l=pt(),c=a;c==="auto"&&!t.isDetectParagraphLanguage&&(c=l),e.languageByLocal=c,e.languageByClient=i;let s=i!=="auto"?i:c;return ra(s,r,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW})||o.length>0&&o.some(f=>ra(s,f,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW}))?null:e}function E9(e,t){if(t.message.startsWith("ProQuota:")){t.message=t.message.replace("ProQuota:","");let n=t.message;try{n=JSON.parse(t.message).error}catch(u){H.error(u)}t.message=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${t.message} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`;let a=e.translationService,r=a=="deepl"?"OpenAI":"Deepl";e.translationService=="openai"?a="OpenAI":e.translationService=="deepl"&&(a="Deepl"),document.dispatchEvent(new CustomEvent(Uu,{detail:{type:"ProQuotaExceeded",subscriptionType:e.user?.subscription?.subscriptionType,translationService:a,anotherService:r,message:n}}))}}g();var T9=[];function Xg(e){T9.push(e)}g();function e3(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(a){a.length>0&&(a[0].target.text.includes(Wu)||V0(e).catch(u=>{H.error("translateTitle error:",u.name,u.message,u.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var Wo="";async function V0(e){let t=document.title;if(!t||t.includes(Wu))return;Wo!==t&&(Wo=t);let n=await Je({text:t,pageLangs:[pt(),"en"]});if(!No(e,n))try{let a=await ka({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n},e);a&&a.text&&(document.title=Wo+Wu+a.text)}catch(a){throw a}}function t3(e){e.rule.isTranslateTitle&&(document.title=Wo)}g();var Y0="Original";function $e(){return Y0}function Pt(e){Y0=e,n3(Y0)}g();var J0;function a3(e){let t=e.ctx.rule.aiRule;if(H.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=rn(e.ctx),a=n.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);n.excludeSelectors.splice(a,1);let r,u;document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(p=>{p.translated=!0,mu(e,p,n)});let o=t.streamingDelayTime||100;J0=new MutationObserver(p=>{p.forEach(function(f){if(En(f.target)&&!l(f)&&(s(f.target),f.addedNodes&&f.addedNodes.length&&f.addedNodes.forEach(d=>{s(d)}),!c(f)&&i())){let d=f.target===u;if(t.streamingDeepChild&&!d&&(d=f.target.parentNode===u),!d)return;f.addedNodes.forEach(b=>{let C=b.previousSibling;!C||C.translated||(C.translated=!0,setTimeout(()=>{C.childNodes[0]?.translated||(H.debug("\u7FFB\u8BD1\u4E0A\u4E00\u4E2A\u6BB5\u843D",C),mu(e,C,n))},o))})}})}),J0.observe(document.body,{attributes:!0,childList:!0,subtree:!0});function i(){return!!(t.streamingChange&&t.streamingSelector&&r||t.streamingChange&&t.messageContainerSelector&&t.messageStreamEndSelector&&u&&!u.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector))}function l(p){return t.streamingSelector&&p.target===r&&p.type==="attributes"&&!xn(p.target,[t.streamingSelector])?(m(),!0):t.streamingSelector&&p.removedNodes.length>0&&u&&u!=r?(p.removedNodes?.forEach(f=>{f===r&&m()}),!0):t.messageContainerSelector&&t.messageStreamEndSelector&&u&&u.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector)?(m(),!0):!1}function c(p){if(t.streamingSelector&&p.target.querySelector(t.messageWrapperSelector||"")&&!r){let f=p.target;return f.translated||(f.translated=!0,setTimeout(()=>{r||f.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(d=>{d.translated||(d.translated=!0,mu(e,d,n))})},o)),!0}else if(t.messageContainerSelector&&p.target.querySelector(t.messageContainerSelector||"")){let f=p.target;if(f.translated)return!0;f.translated=!0,setTimeout(()=>{f.querySelectorAll(t.messageContainerSelector).forEach(d=>{t.messageStreamEndSelector&&!d.querySelector(t.messageStreamEndSelector)||d.translated||(d.translated=!0,mu(e,d,n))})},o)}return!1}function s(p){t.streamingSelector&&xn(p,[t.streamingSelector])&&(r=p,H.debug("streamingNode",r)),xn(p,[t.messageWrapperSelector])&&(u=p,H.debug("markdownNode",u))}function m(){u&&setTimeout(()=>{u.childNodes.forEach(p=>p.translated=!1),H.debug("\u7ED3\u675F\u7FFB\u8BD1\u5168\u90E8",u),mu(e,u,n),r=void 0,u=null},o)}}function mu(e,t,n){ca({id:e.id,container:t,filterRule:n,force:!0,onParagraph:a=>{du(e,a,!0)},onFrame:()=>{},onIgnoreElement:()=>{}})}function r3(){J0?.disconnect()}var re=null;function Ko(){return re||null}function dr(e){C9(e),L9(e),k9(e),D9(e),sr(document,e),Pt("Translated"),S9(re),A9(re),Xg(zn),w9(re)}function C9(e){e.state.translationArea==="main"&&e.rule.initialSelectorGlobalAttributes&&Wg(document.body,e.rule.initialSelectorGlobalAttributes,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph)}function w9(e){a3(e)}function v9(){r3()}function A9(e){e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0});let t=[];e.ctx.rule.mainFrameSelector&&(t=[...document.querySelectorAll(e.ctx.rule.mainFrameSelector||"")]),t.length<=0&&(t=[document.body]),t.forEach(n=>{cr(n,e)})}async function k9(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=Date.now(),a=new URL(e.url).hostname,r=e.localConfig.tempTranslationUrlMatches||[],u=r.findIndex(i=>i.match===a&&i.expiredAt>t),o=!1;u>-1||(r.push({match:a,expiredAt:t+e.config.tempTranslateDomainMinutes*60*1e3}),o=!0),o&&await nn({...e.localConfig,tempTranslationUrlMatches:[...r]})}}function S9(e){e.ctx.rule.isTranslateTitle&&(V0(e.ctx),e.titleDynamicObserver=e3(e.ctx))}function D9(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function L9(e){let t=bn();re&&(t=re.id);let n=rn(e);re=re||{},re.ctx=e,re.id=t,re.paragraphQueue=re.paragraphQueue||[],re.rule={excludeSelectors:n.excludeSelectors||[],selectors:n.selectors||[]},re.currentUrl=window.location.href,re.containerRule={pageHeight:screen.availHeight,selectors:n.selectors},re.translationService=e.translationService,re.paragraphEntities=re.paragraphEntities||{},re.autoIncreaseParagraphId=re.autoIncreaseParagraphId||1,re.interruptEffectDOM=!1,re.urlChangeDelay=e.rule.urlChangeDelay,re.immediateTranslateCapacity=e.state.immediateTranslationTextCount,re.observeContainers=re.observeContainers||[],re.observeParagraphs=re.observeParagraphs||[],re.dynamicContainerObserver=re.dynamicContainerObserver||B9(re),re.ignoreResizeObserver=re.ignoreResizeObserver||R9(re),re.containerVisibleObserver=re.containerVisibleObserver||M9(re),re.paragraphVisibleObserver=re.paragraphVisibleObserver||F9(re),re.injectCssToDocument=$o,re.walkContainer=ca,re.translateState=e.state.translationMode||e.config.translationMode||"dual",re.allInlineWindows=[window],window.onerror=P9(re,e),window.immersiveTranslateSwitchTranslateState=Z0.bind(re)}function o3(e,t){t.getRootNode()instanceof ShadowRoot?$o(t.getRootNode(),e):$o(t.ownerDocument,e),Q0(e)}function Q0(e){if(re)return;re={},re.ctx=e,re.id=bn(),re.paragraphQueue=[],re.injectCssToDocument=$o;let t=rn(e);re.rule={excludeSelectors:t.excludeSelectors,selectors:t.selectors||[]},re.translationService=e.mouseHoverTranslationService,re.currentUrl=window.location.href,re.paragraphEntities={},re.autoIncreaseParagraphId=1,re.interruptEffectDOM=!1,re.urlChangeDelay=e.rule.urlChangeDelay,re.translateState=e.config.translationMode||"dual",re.observeContainers=[],re.observeParagraphs=[],re.allInlineWindows=[window],window.switchTranslateState=Z0.bind(re)}function zn(e=!0){re&&(Pt("Original"),v9(),re.interruptEffectDOM=!0,re.ignoreResizeObserver?.disconnect(),re.dynamicContainerObserver?.disconnect(),re.containerVisibleObserver?.disconnect(),re.paragraphVisibleObserver?.disconnect(),re.titleDynamicObserver?.disconnect(),t3(re.ctx),Rg(),Og(),e&&Z0.call(re,"original"),Object.values(re.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),re=null)}function P9(e,t){e.interruptEffectDOM=!1;let n;return function(a){let r=a.message,u=!1;return r?.indexOf("Minified React error")>=0&&(u=!0),u&&(clearTimeout(n),zn(),n=setTimeout(()=>{dr(t)},e.urlChangeDelay||2e3)),!0}}function M9(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{a.intersectionRatio>0&&(Ho(e,a.target),n.unobserve(a.target))})})}function F9(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{if(a.intersectionRatio>0){let r=a.target;(r.paragraphs||[]).forEach(o=>{$0(e,o)}),n.unobserve(r)}})})}var u3;function _9(e){if(e.urlChangeDelay<=0)return!1;let n=(window.location.href||"").split("#")[0];return e.currentUrl.split("#")[0]!=n?(clearTimeout(u3),e.translateState=="original"?!1:(zn(e.urlChangeDelay>20),u3=setTimeout(()=>{let r=e.ctx;dr(r)},e.urlChangeDelay),!0)):!1}function B9(e){return new MutationObserver(t=>{if(!_9(e)&&!e.interruptEffectDOM)for(let n of t){let a=e.ctx.rule.mutationObserverLimitTargetSelectors;if(a.length>0&&!xn(n.target,a))return;if((n.addedNodes||[]).length<=0||n.target.nodeType!==Node.ELEMENT_NODE||!zt.isSkipMarkEle(n.target)&&!zt.isMarked(n.target,e.id))continue;let u=(n.target?.paragraphs||[]).reduce((o,i)=>{let l=i.rootNodes||[],c=i.targetNodes||[];return[...o,...l,...c]},[]);if(n.addedNodes.length>0&&n.addedNodes.length===n.target.childNodes.length&&xn(n.target,e.ctx.rule.mutationObserverContainerSelectors)){zt.clearMark(n.target),n.target.paragraphs=void 0,Ho(e,n.target);return}n.addedNodes.forEach((o,i)=>{o.nodeType===Node.ELEMENT_NODE&&(u.includes(o)||Lt(o,e.ctx.rule.mutationExcludeSelectors)||cr(o,e))})}})}function R9(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let a of t){if(a.target.nodeType!==Node.ELEMENT_NODE)return;let r=a.target,u=globalThis.getComputedStyle(r);B0(u)||(n.unobserve(a.target),cr(r,e))}})}function Z0(e){this.translateState=e,Object.values(this.paragraphEntities).forEach(t=>{W0(t,e)}),e=="original"&&document.querySelectorAll(`.${$t}`).forEach(t=>t.remove())}function $o(e,t){if(e instanceof HTMLIFrameElement){sr(e.contentDocument,t);return}sr(e,t)}async function i3(e){let t=tt(),n="auto";if(fe()){let a="";e.rule.isEbook||e.rule.isEbookBuilder?(a=Rs(e.mainFrame),n=await Je({text:a,pageLangs:["en"]})):(a=Ja(e.mainFrame).slice(0,1e3),n=await Je({text:a,pageLangs:[Ta(),"en"]}))}else if(t)n=await Je({text:Ja(e.mainFrame).slice(0,1e3),pageLangs:[Ta(),"en"]});else if(e.rule.isEbook||e.rule.isEbookBuilder){let a="";a=Rs(e.mainFrame),n=await Je({text:a,pageLangs:["en"]})}else n=await l3();return n==="auto"&&(n=await Kg()),am(n),n}async function s3(){if(!re)return;document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=re.paragraphEntities,t=Object.keys(e);for(let n of t){let a=e[n];if(a.error){re.paragraphQueue.push(n);let u=a.commonAncestorContainer.querySelector(`[${Hu}='${n}']`);u&&u.remove()}}K0.call(re,re.ctx)}g();g();var c3={"zh-CN":{"languages.en":"\u82F1\u8BED","languages.ja":"\u65E5\u8BED","languages.ko":"\u97E9\u8BED","languages.es":"\u897F\u73ED\u7259\u8BED","languages.fr":"\u6CD5\u8BED","languages.de":"\u5FB7\u8BED","languages.it":"\u610F\u5927\u5229\u8BED","languages.pt":"\u8461\u8404\u7259\u8BED","languages.ru":"\u4FC4\u8BED","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"},"zh-TW":{"languages.en":"\u82F1\u8A9E","languages.ja":"\u65E5\u8A9E","languages.ko":"\u97D3\u8A9E","languages.es":"\u897F\u73ED\u7259\u8A9E","languages.fr":"\u6CD5\u8A9E","languages.de":"\u5FB7\u8A9E","languages.it":"\u610F\u5927\u5229\u8A9E","languages.pt":"\u8461\u8404\u7259\u8A9E","languages.ru":"\u4FC4\u8A9E","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"}},d3={...Ot,"zh-CN":{...c3["zh-CN"],...Ot["zh-CN"]},"zh-TW":{...c3["zh-TW"],...Ot["zh-TW"]}},Go=d3;function mr(e,t,n){return Un(d3,e,t,$u,n)}var Vo=(e,t,n,a)=>{let r=F4[e]||e,u=_4[e],o=B4[e],i={"zh-CN":u,"zh-TW":o,en:r};if(n)return i[e]?i[e]:r;if(i[t]){let l=i[t];return a||e==="auto"||e==="placeholder"?l:`${l} (${r})`}else return r};g();g();function gr(e){pr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(a=>{H.error("send content message request failed",e,a)}),document.querySelectorAll("iframe").forEach(a=>{a.contentWindow&&a.contentWindow.postMessage({author:ju,payload:e},"*")});let n=new CustomEvent(Vn,{detail:e});globalThis.document.dispatchEvent(n)}function X0(e){let t=e.shortcuts||{},a=Object.keys(t).reduce((u,o)=>(u[t[o]]=o,u),{}),r=Object.keys(a);for(let u of r){let o=u.replace(/MacCtrl/ig,"Ctrl");o&&Ve(o,i=>{i.preventDefault(),gr({method:a[u],data:{trigger:"shortcut"}})})}}g();g();g();g();var fr={},O9={root:"",lang:"en",fallbackLang:"en"};function el(e,t){let n=Object.assign({},O9,e);fr=t||fr;let[a,r]=Te(n.lang),[u,o]=Te(fr),[i,l]=Te(!1),c=m=>{if(u.hasOwnProperty(m))return;l(!1);let p=Gg(n.root||"",m);n.getUrl&&(p=n.getUrl(n.root||"",m),fetch(p).then(f=>f.json()).then(f=>{fr[m]=f,o({...fr}),l(!0)}).catch(f=>{o({...fr}),l(!0)}))};return Ne(()=>{c(n.fallbackLang||"en"),c(a)},[a]),{lang:a,setLang:r,t:(m,p)=>{if(!u.hasOwnProperty(a))return m;let f=cu(u,a,m);return f===m&&a!==n.fallbackLang&&(f=cu(u,n.fallbackLang,m)),I0(f,p)},isReady:i}}g();g();var I9=0;function V(e,t,n,a,r){var u,o,i={};for(o in t)o=="ref"?u=t[o]:i[o]=t[o];var l={type:e,props:i,key:n,ref:u,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--I9,__source:r,__self:a};if(typeof e=="function"&&(u=e.defaultProps))for(o in u)i[o]===void 0&&(i[o]=u[o]);return Ae.vnode&&Ae.vnode(l),l}var nl=Su(null),tl={root:"assets",lang:"en",fallbackLang:"en"},Yo=e=>{let{t,setLang:n,lang:a,isReady:r}=el({root:e.root||tl.root,lang:e.lang||tl.lang,fallbackLang:e.fallbackLang||tl.fallbackLang,getUrl:e.getUrl},e.translations);return V(nl.Provider,{value:{t,setLang:n,lang:a,isReady:r},children:e.children})};g();g();g();function al(){return V("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[V("path",{d:"M10.3873 2.29166C10.6319 2.29193 10.8664 2.38929 11.0392 2.56234C11.2121 2.73539 11.3092 2.96998 11.3092 3.21457V4.07811L12.1175 4.38332C12.7273 4.61277 13.2952 4.94074 13.7988 5.35416L14.4675 5.90207L15.2165 5.46978L15.2394 5.45624C15.3787 5.37479 15.5373 5.332 15.6988 5.33228C15.861 5.3325 16.0203 5.37522 16.1608 5.45618C16.3014 5.53715 16.4182 5.65353 16.4998 5.79374L16.8925 6.47395C17.0145 6.68593 17.0475 6.93764 16.9843 7.17391C16.921 7.41019 16.7666 7.61173 16.555 7.73436L16.5321 7.74791L15.7842 8.17916L15.9227 9.0302C16.031 9.67953 16.031 10.3423 15.9227 10.9917L15.781 11.8458L16.531 12.2781L16.5467 12.2875C16.758 12.4101 16.9122 12.6115 16.9754 12.8475C17.0387 13.0835 17.0059 13.335 16.8842 13.5469L16.5154 14.1844C16.3932 14.3961 16.1919 14.5507 15.9558 14.6141C15.7196 14.6776 15.468 14.6448 15.256 14.5229L15.2415 14.5135L14.4904 14.0802L13.8206 14.6323C13.3125 15.0519 12.7384 15.3845 12.1217 15.6167L11.3133 15.9219V16.7864C11.3132 16.9078 11.2891 17.028 11.2425 17.14C11.1958 17.2521 11.1276 17.3539 11.0415 17.4395C10.9555 17.5251 10.8535 17.5929 10.7412 17.6391C10.6289 17.6852 10.5087 17.7087 10.3873 17.7083H9.61229C9.3677 17.708 9.13322 17.6107 8.96037 17.4376C8.78751 17.2646 8.69042 17.03 8.69042 16.7854V15.9219L7.88209 15.6167C7.27233 15.3872 6.70437 15.0592 6.20084 14.6458L5.53209 14.0979L4.78313 14.5302L4.76021 14.5437C4.62084 14.6252 4.46226 14.668 4.30084 14.6677C4.13864 14.6675 3.97932 14.6248 3.83877 14.5438C3.69823 14.4628 3.58135 14.3464 3.49979 14.2062L3.10709 13.526C2.98505 13.3141 2.95205 13.0623 3.01532 12.8261C3.07858 12.5898 3.23296 12.3882 3.44459 12.2656L3.4675 12.2521L4.21542 11.8208L4.07688 10.9698C3.96856 10.3204 3.96856 9.65766 4.07688 9.00832L4.21854 8.1552L3.46959 7.72186L3.45709 7.70832C3.24914 7.58489 3.09787 7.38486 3.03575 7.15116C2.97362 6.91746 3.00559 6.66872 3.12479 6.45832L3.49354 5.82082C3.57469 5.68049 3.69133 5.56397 3.83175 5.48297C3.97217 5.40197 4.13144 5.35934 4.29354 5.35936C4.45497 5.35908 4.61355 5.40187 4.75292 5.48332L4.7675 5.49166L5.51854 5.92499L6.18834 5.37291C6.69646 4.95329 7.27054 4.62067 7.88729 4.38853L8.69563 4.08332V3.21874C8.69452 2.97433 8.79041 2.73945 8.96226 2.56565C9.13411 2.39185 9.36788 2.29331 9.61229 2.29166H10.3873ZM10.3873 1.04166H9.61229C9.03636 1.04193 8.4841 1.27084 8.07685 1.67809C7.66961 2.08533 7.4407 2.6376 7.44042 3.21353C6.69518 3.49423 6.00146 3.89618 5.38729 4.40312L5.37271 4.39478C4.87362 4.10685 4.2806 4.02894 3.72407 4.17818C3.16753 4.32742 2.69307 4.6916 2.405 5.19062L2.03729 5.83332C1.74928 6.33229 1.67121 6.92522 1.82025 7.48173C1.96929 8.03825 2.33324 8.51279 2.83209 8.80103L2.84771 8.80936C2.78023 9.20444 2.74539 9.6044 2.74354 10.0052C2.74367 10.3971 2.77572 10.7883 2.83938 11.175L2.81646 11.1885C2.56927 11.3311 2.35259 11.5209 2.1788 11.7472C2.00501 11.9735 1.87752 12.2319 1.80361 12.5075C1.7297 12.7831 1.71083 13.0706 1.74807 13.3535C1.7853 13.6364 1.87792 13.9091 2.02063 14.1562L2.41334 14.8364C2.55638 15.0837 2.74681 15.3003 2.97371 15.4738C3.20061 15.6473 3.45953 15.7743 3.73561 15.8475C4.01169 15.9208 4.29952 15.9388 4.58259 15.9007C4.86566 15.8625 5.13841 15.7688 5.38521 15.625L5.40813 15.6114C6.01714 16.1105 6.70362 16.5067 7.44042 16.7844C7.44028 17.0697 7.49635 17.3523 7.60542 17.616C7.7145 17.8797 7.87444 18.1193 8.07612 18.3212C8.27779 18.523 8.51726 18.6832 8.78084 18.7925C9.04441 18.9018 9.32694 18.9582 9.61229 18.9583H10.3873C10.9632 18.958 11.5155 18.7291 11.9227 18.3219C12.33 17.9146 12.5589 17.3624 12.5592 16.7864C13.3043 16.5061 13.9981 16.1045 14.6123 15.5979L14.6269 15.6062C15.126 15.8942 15.719 15.9721 16.2755 15.8228C16.8321 15.6736 17.3065 15.3094 17.5946 14.8104L17.9623 14.1729C18.2503 13.6739 18.3284 13.081 18.1793 12.5245C18.0303 11.968 17.6663 11.4934 17.1675 11.2052L17.1519 11.1969C17.2194 10.8018 17.2542 10.4018 17.256 10.001C17.2559 9.60915 17.2239 9.21792 17.1602 8.83124L17.1831 8.8177C17.4303 8.67516 17.647 8.48531 17.8208 8.259C17.9946 8.03269 18.1221 7.77435 18.196 7.49875C18.2699 7.22314 18.2888 6.93568 18.2515 6.65278C18.2143 6.36987 18.1217 6.09708 17.979 5.84999L17.5863 5.16978C17.4437 4.92202 17.2537 4.70485 17.027 4.53072C16.8003 4.3566 16.5415 4.22895 16.2654 4.1551C15.9893 4.08126 15.7013 4.06267 15.418 4.1004C15.1346 4.13814 14.8616 4.23145 14.6144 4.37499L14.5915 4.38853C13.9824 3.88946 13.296 3.49327 12.5592 3.21561C12.5593 2.93026 12.5032 2.64768 12.3942 2.384C12.2851 2.12031 12.1252 1.8807 11.9235 1.67883C11.7218 1.47695 11.4823 1.31678 11.2188 1.20746C10.9552 1.09813 10.6726 1.04179 10.3873 1.04166Z",fill:"#666666"}),V("path",{d:"M10.0003 7.91666C10.4124 7.91666 10.8152 8.03884 11.1578 8.26776C11.5004 8.49668 11.7674 8.82205 11.9251 9.20273C12.0828 9.58341 12.124 10.0023 12.0436 10.4064C11.9632 10.8106 11.7648 11.1818 11.4735 11.4731C11.1821 11.7645 10.8109 11.9629 10.4068 12.0433C10.0026 12.1237 9.58375 12.0824 9.20307 11.9247C8.82239 11.7671 8.49702 11.5 8.2681 11.1574C8.03918 10.8148 7.91699 10.412 7.91699 9.99999C7.91699 9.44745 8.13649 8.91755 8.52719 8.52685C8.91789 8.13615 9.44779 7.91666 10.0003 7.91666ZM10.0003 6.66666C9.34106 6.66666 8.69659 6.86215 8.14843 7.22842C7.60026 7.5947 7.17302 8.11529 6.92073 8.72438C6.66844 9.33346 6.60243 10.0037 6.73104 10.6503C6.85966 11.2969 7.17713 11.8908 7.6433 12.357C8.10948 12.8232 8.70342 13.1407 9.35003 13.2693C9.99663 13.3979 10.6669 13.3319 11.2759 13.0796C11.885 12.8273 12.4056 12.4001 12.7719 11.8519C13.1382 11.3037 13.3337 10.6593 13.3337 9.99999C13.3337 9.11593 12.9825 8.26809 12.3573 7.64297C11.7322 7.01785 10.8844 6.66666 10.0003 6.66666Z",fill:"#666666"})]})}g();function m3(e,t=2e3){return n=>{let a,r=0;return u=>{++r==e&&(n(u),r=0),clearTimeout(a),a=setTimeout(()=>r=0,t)}}}g();function g3(e){let t=e.split(".");return t.length>2?(t[0]="*",t.join(".")):null}g();function p3(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}g();g();function wt(){return Fu(nl)}function Hn(e){let{items:t,maxWidth:n,className:a}=e,{lang:r}=wt();return n=n||(r==="en"?144:160),V("select",{autoComplete:"off",class:a||"min-select",style:{maxWidth:`${n}px`},value:t.find(u=>u.selected)?.value,onChange:u=>{let o=u.target.value,i=t.find(l=>l.value===o);i&&i.onSelected(i)},children:t.map((u,o)=>V("option",{value:u.value,selected:u.selected,children:u.label},"selectlink"+o))})}g();var Jo="DROP_DOWN_DEFAULT_VALUE";function rl(e){let{showArrow:t,onSelected:n,className:a,menus:r,maxWidth:u}=e;a=a||"",t=t??!0,u=u||80;let o=Mu(null);return V("select",{ref:o,autoComplete:"off",class:`text-label min-select ${t?"":"min-select-no-arrow"} ${a||""}`,value:Jo,style:{maxWidth:`${u}px`},onChange:i=>{i.preventDefault();let l=i.target.value;if(o.current&&l!==Jo){o.current.value=Jo,o.current?.dispatchEvent(new Event("change"));let c=r.find(s=>s.value===l);c&&n(c)}},children:[{value:Jo,label:e.label}].concat(r).map((i,l)=>V("option",{value:i.value,children:i.label},"option-"+l))})}g();function ul(e){let{field:t,onChange:n,value:a}=e;a=a||t.default||"";let{t:r}=wt(),u=t.name;return t.label&&(u=t.label),t.labelKey&&(u=r(t.labelKey)),t.type==="select"?V("div",{class:"flex justify-between items-center mb-2",children:[V("label",{class:"inline-block",children:[u,"\uFF1A"]}),V(Hn,{items:t.options.map(o=>({label:`${o.label?r(o.label):o.value}`,value:o.value,selected:a===o.value,onSelected:()=>{n(o.value)}}))})]}):null}g();g();function gu(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var N9=({date:e})=>{let{t}=wt(),[n,a]=Te(!1);return Ne(()=>{setTimeout(()=>{a(!0)},5e3)},[]),n?null:V("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},j9=({minVersion:e})=>{let{t}=wt();return V("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},U9=()=>{let{t:e}=wt();return V("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:"https://immersivetranslate.com/docs/installation/"})}})},z9=({message:e,handleSyncing:t,date:n})=>{let{t:a}=wt();return V("p",{class:"text-sm",children:[a("failToSyncRules")," ",V("a",{onClick:t,children:a("retry")}),V("br",{}),a("failedReason"),"\uFF1A",e,V("br",{}),a("currentRuleVersion"),"\uFF1A",n]})};function ol(e){let{isShowError:t,request:n}=e,[a,r]=Te(null),{t:u}=wt(),[o,i]=Te(null),[l,c]=Te(null),[s,m]=Te(""),[p,f]=Te(!1),[d,b]=Te(!1),[C,h]=Te(!1),[A,S]=Te(null),[U,O]=Te(null),y=tn(),T=async()=>{m("");let k=o;if(o===null)try{let v=await n({url:Mr});v?(i(v),k=v,f(!0)):(m(u("unknownError")),c(null))}catch(v){c(null),m(v.message);return}k!==null?(e.setStorageBuildinConfig(k),c(!1),r(k.buildinConfigUpdatedAt)):(m(u("canNotFetchRemoteRule")),c(null))};return Ne(()=>{hn().then(k=>{let v=k.buildinConfigUpdatedAt;S(k);let E=new Date(v);if(r(v),y==="0.0.0"){h(!0);return}n({url:Mr}).then(R=>{let F=R,w=F.minVersion,B=y;i(F);let I=F.latestVersion;if(I&&(gu(B,I)?O(!0):O(!1)),gu(B,w)){let N=F.buildinConfigUpdatedAt;new Date(N)>E?(c(!0),T()):c(!1)}else b(!0),c(null)}).catch(R=>{c(null),m(R.message)})})},[]),Ne(()=>{hn().then(k=>{S(k)})},[a]),A?V("div",{class:"text-sm mt-2",style:{maxWidth:218},children:C?V(U9,{}):s?t===!1?null:V(z9,{handleSyncing:T,message:s,date:a||""}):d?t===!1?null:V(j9,{minVersion:o.minVersion}):l===null||l===!0?null:p?V(N9,{date:a}):null}):null}g();var Qo='',il="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMTEuNjIzLS4zMTguODQ1Yy0uMjA4LjIyMi0uNTI3LjMzMy0uOTI4LjMzM2gtMS4zM1Y5LjI0MmgxLjMzWm05Ljg0NiAxLjc4OGMuMzg4IDAgLjY2NS4xNTIuODQ1LjQ1Ny4xNTIuMjY0LjIzNS41ODIuMjYzLjk4NHYuMzE5YzAgLjQ5OS0uMDgzLjg4Ny0uMjYzIDEuMTkyLS4xOC4zMDQtLjQ1Ny40NTctLjgzLjQ1Ny0uMzg5IDAtLjY2Ni0uMTUzLS44NDYtLjQ0NC0uMTUyLS4yNjMtLjIzNS0uNTk1LS4yNjMtMS4wMTF2LS4yOTFjMC0uNDg1LjA4My0uODczLjI2My0xLjE3OC4xOC0uMzA1LjQ0My0uNDg1LjgzMS0uNDg1Wm0tMy40MDctMS4xMzZhMS4xNyAxLjE3IDAgMCAwLS43MDYuMjM1IDEuNDgyIDEuNDgyIDAgMCAwLS40MTUuNWwtLjA4My4xNjUtLjA3LS44MDNoLTEuMzU3djUuNDMyaDEuNDU0di0zLjY1OWEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiA4LjEySDQuMTE0djcuMzE3aDEuNDY4VjEyLjc5aDEuMzNjLjg0NCAwIDEuNDk1LS4yMDggMS45OC0uNjM4LjQ4NS0uNDMuNzItLjk4My43Mi0xLjY5cy0uMjM1LTEuMjYxLS43Mi0xLjY5Yy0uNDQzLS4zODktMS4wMzktLjYxLTEuNzczLS42MzhsLS4yMjEtLjAxNFptOS44NDcgMS43NzRjLS44MDMgMC0xLjQyNi4yNjMtMS44ODMuNzc2LS40MTYuNDctLjYzNyAxLjA2Ny0uNjc5IDEuNzczdi4zMzNjMCAuODE4LjIyMiAxLjQ4My42NzkgMS45OTUuNDU3LjUxMyAxLjA4Ljc3NiAxLjg4My43NzYuODA0IDAgMS40MjctLjI2MyAxLjg4NC0uNzc2LjQxNS0uNDcuNjM3LTEuMDUzLjY3OC0xLjc3M3YtLjMzM2MwLS44MTctLjIyMS0xLjQ4Mi0uNjc4LTEuOTk1LS40NTctLjUxMy0xLjA4LS43NzYtMS44ODQtLjc3NlpNMTguMDAzIDZhNiA2IDAgMCAxIDAgMTJIMFY5LjQyM0EzLjQyIDMuNDIgMCAwIDEgMy40MiA2aDE0LjU4M1oiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSI3LjUiIHgyPSIyMiIgeTE9IjE5IiB5Mj0iNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMyMjIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM2OTY5NjkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=",sl="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzk5OSIgZD0iTTYuODk3IDMuMjQyYy40MTUgMCAuNzIuMTExLjkyOC4zNDcuMjA3LjIzNS4zMTguNTI2LjMxOC44NzMgMCAuMzQ2LS4xMS42MjMtLjMxOC44NDUtLjIwOC4yMjItLjUyNy4zMzMtLjkyOC4zMzNoLTEuMzNWMy4yNDJoMS4zM1ptOS44NDYgMS43ODhjLjM4OCAwIC42NjUuMTUyLjg0NS40NTcuMTUyLjI2NC4yMzUuNTgyLjI2My45ODR2LjMxOWMwIC40OTktLjA4My44ODctLjI2MyAxLjE5Mi0uMTguMzA0LS40NTcuNDU3LS44My40NTctLjM4OSAwLS42NjYtLjE1My0uODQ2LS40NDQtLjE1Mi0uMjYzLS4yMzUtLjU5NS0uMjYzLTEuMDExdi0uMjkxYzAtLjQ4NS4wODMtLjg3My4yNjMtMS4xNzguMTgtLjMwNS40NDMtLjQ4NS44MzEtLjQ4NVptLTMuNDA3LTEuMTM2YTEuMTcgMS4xNyAwIDAgMC0uNzA2LjIzNSAxLjQ4MiAxLjQ4MiAwIDAgMC0uNDE1LjVsLS4wODMuMTY1LS4wNy0uODAzaC0xLjM1N3Y1LjQzMmgxLjQ1NFY1Ljc2NGEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiAyLjEySDQuMTE0djcuMzE3aDEuNDY4VjYuNzloMS4zM2MuODQ0IDAgMS40OTUtLjIwOCAxLjk4LS42MzguNDg1LS40My43Mi0uOTgzLjcyLTEuNjlzLS4yMzUtMS4yNjEtLjcyLTEuNjljLS40NDMtLjM4OS0xLjAzOS0uNjEtMS43NzMtLjYzOGwtLjIyMS0uMDE0Wm05Ljg0NyAxLjc3NGMtLjgwMyAwLTEuNDI2LjI2My0xLjg4My43NzYtLjQxNi40Ny0uNjM3IDEuMDY3LS42NzkgMS43NzN2LjMzM2MwIC44MTguMjIyIDEuNDgzLjY3OSAxLjk5NS40NTcuNTEzIDEuMDguNzc2IDEuODgzLjc3Ni44MDQgMCAxLjQyNy0uMjYzIDEuODg0LS43NzYuNDE1LS40Ny42MzctMS4wNTMuNjc4LTEuNzczdi0uMzMzYzAtLjgxNy0uMjIxLTEuNDgzLS42NzgtMS45OTUtLjQ1Ny0uNTEzLTEuMDgtLjc3Ni0xLjg4NC0uNzc2Wk0xOC4wMDMgMGE2IDYgMCAwIDEgMCAxMkgwVjMuNDIzQTMuNDIgMy40MiAwIDAgMSAzLjQyIDBoMTQuNTgzWiIvPjwvc3ZnPg==";function pu(e){let t=tn(),{onTranslateTheMainPage:n,onUserConfigChange:a,request:r,onTranslateLocalHtmlFile:u,onSwitchTranslationMode:o,onTranslateLocalSubtitleFile:i,onSetBuildinConfig:l,pageStatus:c,openEbookBuilderPage:s,openPricingPage:m,openEbookViewerPage:p,config:f,openAboutPage:d,onTranslateTheWholePage:b,onToggleEnabled:C,openOptionsPage:h,ontranslateToThePageEndImmediately:A,onSetPageLanguage:S,onToggleTranslate:U,onTranslateLocalPdfFile:O,onTranslatePdf:y,onRestorePage:T,ctx:k,currentUrl:v,currentLang:E,onClose:R,onTranslatePage:F,onSetLocalConfig:w,onMouseTriggerChanged:B,errorMsg:I,disabledButton:N,noPermissionPDF:P}=e,x=a,[D,M]=Te(""),[q,j]=Te(I),[$,z]=Te(null),[ae,J]=Te(null),{t:Y,lang:pe}=wt(),he=70;pe.startsWith("zh")||(he=75);let ue=null,G=null,ie=null,me=null,ce=null,ye=null,Se=null,xe=null,Z=null,ke=null,Le=null,Oe=null;Ne(()=>{jt.get(Nt,null).then(W=>{W?(z(W),J(en(W))):J(!1)}).catch(W=>{J(!1)})},[]);let Ue=!0,it=At();if(f){it&&f&&(Ue=f.generalRule.showSponsorOnSafari);let{translationService:W,translationServices:de,translationUrlPattern:Ke}=f;Bn[W]&&(xe=Ks("translationService",W,k)),de&&de[W]?Oe=de[W]||{}:Oe={};try{Z=new URL(v||"")}catch{}if(v&&Zo(v)){ke=g3(Z.hostname),Le=p3(v);let{matches:Pe,excludeMatches:Fe}=Ke;G=Pe.includes(ke),ue=Pe.includes(Z.hostname),me=Fe.includes(ke),ie=Fe.includes(Z.hostname),ye=Pe.includes(Le),Se=Fe.includes(Le)}}if(f&&E&&E!=="auto"){let{translationLanguagePattern:W}=f,{matches:de}=W;de.includes(E)?ce=!0:ce=!1}let _t=W=>{W.preventDefault(),h()},ga=W=>{x(de=>(de.alpha?M("Success disable alpha!"):M("Success enable alpha!"),{...de,alpha:!de.alpha}))},Ht=W=>{x(de=>({...de,translationMode:W})),o(W)},Dn=()=>{x(W=>({...W,translationArea:"body"})),b()},qn=()=>{x(W=>({...W,translationArea:"main"})),n()},Ie=(W,de,Ke,Pe)=>{if(W==="default"){x(wn=>{let Jt={...wn.translationUrlPattern};return{...wn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...wn.translationUrlPattern,matches:Qn([Z?.hostname,ke,v],Jt.matches),excludeMatches:Qn([Z?.hostname,ke,v],Jt.excludeMatches)}}});return}let Fe=W,Ln=Fe==="matches"?"excludeMatches":"matches";Z&&x(wn=>{let Jt={...wn.translationUrlPattern};return Jt[Fe]=Ls(de,Jt[Fe]),Pe.length>0&&(Jt[Fe]=Qn(Pe,Jt[Fe])),Jt[Ln]=Qn(Ke,Jt[Ln]),{...wn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...wn.translationUrlPattern,...Jt}}}),Fe==="matches"&&c==="Original"?setTimeout(()=>{F(),R()},100):Fe==="excludeMatches"&&c==="Translated"&&setTimeout(()=>{T(),R()},100)},qt=W=>{if(!W){x(Pe=>{let Fe={...Pe.translationLanguagePattern};return{...Pe,translationLanguagePattern:{...Pe.translationLanguagePattern,matches:Qn(E,Fe.matches),excludeMatches:Qn(E,Fe.excludeMatches)}}});return}let de=W,Ke=de==="matches"?"excludeMatches":"matches";E&&x(Pe=>{let Fe={...Pe.translationLanguagePattern};return Fe[de]=Ls(E,Fe[de]),Fe[Ke]=Qn(E,Fe[Ke]),{...Pe,translationLanguagePattern:{...Pe.translationLanguagePattern,...Fe}}}),de==="matches"&&c==="Original"&&setTimeout(()=>{F(),R()},100)},at=Z?.pathname.toLowerCase().endsWith(".pdf"),We=Y("translate");c==="Translated"||c==="Error"?We=Y("show-original"):c==="Original"?at?Ha()&&Z.protocol==="file:"||P?We=Y("translate-firefox-local-pdf"):fe()?We=Y("noSupportTranslate-pdf"):We=Y("translate-pdf"):We=Y("translate"):We=Y(c);let Yt=Y("translateToThePageEndImmediately");(c==="Original"||c==="Translated")&&(f.shortcuts.toggleTranslatePage&&(u4()&&k.rule.fingerCountToToggleTranslagePageWhenTouching>=2?We+=` (${Y(`fingers.${k.rule.fingerCountToToggleTranslagePageWhenTouching}`)})`:We+=` (${f.shortcuts.toggleTranslatePage})`),f.shortcuts.toggleTranslateToThePageEndImmediately&&(Yt+=` (${f.shortcuts.toggleTranslateToThePageEndImmediately})`));let Bt=[];k&&(Bt=Am(k,"translationService"));let Wn=W=>{W.preventDefault(),R()},dt=Mg(k.config.translationService,k.config.targetLanguage),cn=ye||ue||G,He=()=>ye?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!ye,onChange:W=>{let de=W.target.checked;Ie(de?"matches":"default",Le,[Le],[])}}),Y("alwaysTranslateSomePage")]}):ue?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!ue,onChange:W=>{let de=W.target.checked;Ie(de?"matches":"default",Z.hostname,[Z.hostname,ke,Le],[ke])}}),Y("alwaysTranslateSomeSiteOrWildSite")]}):G?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!G,onChange:W=>{let de=W.target.checked;Ie(de?"matches":"default",ke,[Le,Z.hostname,ke],[Z.hostname])}}),Y("alwaysTranslateSomeSiteOrWildSite")]}):null;return V("div",{children:[V("div",{class:"popup-container px-6 pt-6 max-content",children:[V("div",{class:"text-sm",children:[V("div",{class:"flex justify-between mb-3 items-center",children:[V("label",{class:"inline-block text-label",children:[Y("popupSourceLanguage"),"\uFF1A"]}),V(Hn,{maxWidth:186,items:Qt.map(W=>({label:Vo(W,f.interfaceLanguage),value:W,selected:W===k.sourceLanguage,onSelected:de=>{S(de.value)}}))})]}),f&&f.targetLanguage&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[Y("popupTarget"),"\uFF1A"]}),V(Hn,{maxWidth:186,items:dt.filter(W=>W!=="auto").map(W=>({label:Vo(W,f.interfaceLanguage),value:W,selected:W===f.targetLanguage,onSelected:de=>{x(Ke=>({...Ke,targetLanguage:de.value}))}}))})]}),xe&&Bt.length>0&&V(Wt,{children:[V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[Y("popupService"),"\uFF1A"]}),V(Hn,{maxWidth:186,items:Bt.map(W=>({label:`${Y("translationServices."+W.id)}${W.ok?"":" "+(" "+(!ae&&!it&&W.providers&&W.providers.length>0?Y("goLoginOrAction"):Y("needAction")))}`,value:W.id,selected:W.selected,onSelected:de=>{let Ke=Bt.find(Pe=>Pe.id===de.value);if(Ke.ok){if(x(Pe=>({...Pe,translationService:Ke.id})),c!="Translated")return;Ke.props.length===0?setTimeout(()=>{F()},1):setTimeout(()=>{T()},1)}else x(Pe=>({...Pe,translationService:Ke.id})),setTimeout(()=>{h()},100)}}))})]}),Oe&&xe.props.length>0&&xe.props.map((W,de)=>V("div",{class:"pl-4 text-sm",children:V(ul,{field:W,value:Oe[W.name],onChange:Ke=>{x(Pe=>{let Fe=Pe.translationServices||{},Ln=Fe[xe.id]||{};return setTimeout(()=>{T()},1),{...Pe,translationServices:{...Fe,[xe.id]:{...Ln,[W.name]:Ke}}}})}},"field-"+de)},"service"+de))]}),Z&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:Y("forThisSite")}),V(Hn,{maxWidth:186,items:[{label:Y("default"),value:"default",selected:ue===!1&&ie===!1&&!G&&!me&&!ye&&!Se,onSelected:()=>{Ie("default",Z.hostname,[],[]);let W=Z.hostname,de=k.localConfig.tempTranslationUrlMatches||[],Ke=de.filter(Fe=>Fe.match!==W),Pe=!1;Ke.length!==de.length&&(Pe=!0),Pe&&w({...k.localConfig,tempTranslationUrlMatches:[...Ke]})}},Le&&{label:Y("alwaysTranslateSomeSite",{hostname:Y("currentUrl")}),value:"matchesUrl",selected:ye,onSelected:()=>{Ie("matches",Le,[Le],[])}},{label:Y("alwaysTranslateSomeSite",{hostname:Z.hostname}),value:"matches",selected:ue,onSelected:W=>{Ie(W.value,Z.hostname,[Z.hostname,ke,Le],[ke])}},ke&&{label:Y("alwaysTranslateSomeSite",{hostname:ke}),value:"matchesWild",selected:G,onSelected:()=>{Ie("matches",ke,[Le,Z.hostname,ke],[Z.hostname])}},Le&&{label:Y("neverTranslateSomeSite",{hostname:Y("currentUrl")}),value:"excludeMatchesUrl",selected:Se,onSelected:()=>{Ie("excludeMatches",Le,[Le],[])}},{label:Y("neverTranslateSomeSite",{hostname:Z.hostname}),value:"excludeMatches",selected:ie,onSelected:W=>{Ie(W.value,Z.hostname,[Z.hostname,ke,Le],[ke])}},ke&&{label:Y("neverTranslateSomeSite",{hostname:ke}),value:"excludeMatchesWild",selected:me,onSelected:()=>{Ie("excludeMatches",ke,[Z.hostname,Le,ke],[Z.hostname])}}].filter(Boolean)})]}),B&&Dr()&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[Y("mouse-translate"),"\uFF1A"]}),V(Hn,{maxWidth:186,items:Gu.filter(W=>!(Gu.includes(f.generalRule.mouseHoverHoldKey)&&W==="OtherCustom")).map(W=>{let de=Y("mouseHoldKey",{key:W}),Ke=Gu.includes(f.generalRule.mouseHoverHoldKey),Pe=W===f.generalRule.mouseHoverHoldKey;return W==="Auto"?de=Y("mouseHoldKeyAuto"):W==="Off"?de=Y("mouseHoldKeyOff"):W==="OtherCustom"?de=Ke?Y("mouseHoldKeyOther"):Y("mouseHoldKeyCustomKey",{key:f.generalRule.mouseHoverHoldKey}):W==="Other"&&(de=Y("mouseHoldKeyOther")),Ke||W==="OtherCustom"&&(Pe=!0),{label:de,value:W,selected:Pe,onSelected:Fe=>{Fe.value==="Other"?h("#interface"):B(Fe.value)}}})})]})]}),V("div",{class:"",children:V("button",{class:"py-2 mt-1 mb-5 main-button ",onClick:()=>{at?y&&y():U()},"aria-busy":c==="Translating",disabled:N||c==="Translating",children:We})}),V("div",{class:"text-sm",children:D}),V("div",{class:`pb-2 text-sm ${q?"":"display-none"}`,children:q}),V("div",{class:"flex items-center justify-between flex-wrap",children:[cn?V(He,{}):E&&E!=="auto"?V("label",{for:"alwaysTranslateThisLanugage",class:"text-sm text-label text-overflow-ellipsis max-w-20",children:[V("input",{type:"checkbox",id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",checked:!!ce,onChange:W=>{let de=W.target.checked;qt(de?"matches":void 0)}}),Y("alwaysTranslateSomeLanguage",{language:Vo(E,f.interfaceLanguage,!1,!0)})]}):V("span",{}),V("div",{class:`flex flex-end flex-grow ${q?"display-none":""}`,children:V("span",{class:"immersive-translate-no-select muted text-sm",onClick:m3(7)(ga),children:["V",t,f.enabled?null:V("a",{href:"#",onClick:C,children:[" ","(",Y("hasBeenDisabled"),")"]})]})})]})]}),V("footer",{children:[V("div",{class:"px-6 text-label",children:V(ol,{isShowError:!1,request:r,setStorageBuildinConfig:l})}),V("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer text-label",children:[V("div",{class:"flex flex-row items-center justify-center secondary clickable",style:{width:70},onClick:_t,children:[V(al,{}),V("span",{class:"ml-1",children:Y("options")})]}),Ue?V("a",{title:Y(ae?"popup.openProForPro":"popup.openPro"),target:"_blank",href:ae?rs:us,children:V("img",{src:ae?il:sl})}):ae&&V("a",{title:Y(ae?"popup.openProForPro":"popup.openPro"),target:"_blank",href:ae?rs:us,children:V("img",{src:ae?il:sl})}),V(rl,{label:Y("more"),showArrow:!0,maxWidth:he,onSelected:W=>{W.value==="openPremium"?(globalThis.open(_r),R()):W.value==="changeToOnlyTranslationMode"?Ht("translation"):W.value==="changeToDualTranslationMode"?Ht("dual"):W.value==="translateTheWholePage"?b():W.value==="translateToThePageEndImmediately"?A():W.value==="translateTheMainPage"?n():W.value==="showTranslationOnly"||(W.value==="translateLocalPdfFile"?O&&O():W.value==="translateLocalHtmlFile"?u&&u():W.value==="translateLocalSubtitleFile"?i&&i():W.value==="donate"?(globalThis.open(f.donateUrl),R()):W.value==="feedback"?(globalThis.open(f.feedbackUrl),R()):W.value==="options"?(h(),R()):W.value==="changeToTranslateTheWholePage"?Dn():W.value==="changeToTranslateTheMainPage"?qn():W.value==="about"?d():W.value==="toggleEnabled"?C():W.value==="openEbookViewer"?p():W.value==="openEbookBuilder"?s():W.value==="goPro"&&m())},menus:[f.translationMode==="dual"&&{label:"\u{1F524} "+Y("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},f.translationMode==="translation"&&{label:"\u{1F521} "+Y("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},f.translationArea==="main"&&{label:"\u{1F480} "+Y("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},f.translationArea==="body"&&{label:"\u{1F4D6} "+Y("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},{label:"\u26A1 "+Yt,value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+Y("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+Y("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+Y("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},!fe()&&{label:"\u{1F310} "+Y("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+Y("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},ae===!1&&Ue&&{label:"\u{1F451} "+Y("upgradeToPro"),value:"goPro"},{label:"\u2764\uFE0F "+Y(Ue?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})]})]})}g();g();g();g();var ll={get:(e,t,n)=>{let a=t===void 0?e:{[e]:t};return ee.storage[n].get(a)},set:(e,t,n)=>ee.storage[n].set({[e]:t})};function Xo(e,t,n){let[a]=Te(()=>typeof t=="function"?t():t),[r]=Te(n),[u,o]=Te(a),[i,l]=Te(!1),[c,s]=Te("");Ne(()=>{ll.get(e,a,r).then(p=>{p[e]&&o(p[e]),l(!0),s("")}).catch(p=>{l(!1),s(p)})},[e,a,r]);let m=Kn(p=>{let f=typeof p=="function"?p(u):p;H.debug("new settings",f),ll.set(e,f,r).then(()=>{o(f),l(!0),s("")}).catch(d=>{o(f),l(!1),s(d)})},[r,e,u]);return[u,m,i,c]}g();function cl(e,t,n){let a=[];return function(){let[u,o,i,l]=Xo(e,t,n),c=Kn(s=>{for(let m of a)m(s)},[]);return Ne(()=>(a.push(o),()=>{a.splice(a.indexOf(o),1)}),[o]),[u,c,i,l]}}function f3(e,t){return cl(e,t,"sync")}var H9="userConfig",q9=null,W9=f3(H9,q9);function hr(e){let[t,n,a,r]=W9(),u=Kn(o=>{let i=typeof o=="function"?o(t):o;i&&(i.updatedAt=new Date().toISOString()),n(i),e&&e(i)},[t]);return[t,u,a,r,n]}g();g();async function h3(e){try{let t=new Date;H.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await ee.storage.local.set({[k4]:t.toISOString()}),await $9(),fe()||await b3()}catch(t){H.error("run cron task failed",t)}}async function $9(){try{let e=await Tn(),t=await se({url:Mr}),n=e.buildinConfigUpdatedAt,a=new Date(n),r=t.buildinConfigUpdatedAt,u=new Date(r),o=t.minVersion,i=ee.runtime.getManifest().version;gu(i,o)?u>a?(await ee.storage.local.set({buildinConfig:t}),H.info(`sync remote rules success, latest: ${new Date(r).toLocaleString()}`)):H.debug(`no need to sync rules, latest: ${a}`):H.info(`local version is too old, please update to ${o} or later`)}catch(e){H.error("sync rules error: ",e)}}g();g();g();g();g();g();var dl;function Tl(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function k3(e,t=","){return e.map(Tl).join(t)}var S3=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function ti(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function ni(e,t="@media "){return t+Gt(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(a=>`(${a}-width:${n[a]})`).join(" and "))).join(",")}function Gt(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function K9(){}var ht={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function D3(e){return e.match(/[-=:;]/g)?.length||0}function bl(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(D3(e),15)<<18}var G9=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function Cl({n:e,i:t,v:n=[]},a,r,u){e&&(e=Tl({n:e,i:t,v:n})),u=[...Gt(u)];for(let i of n){let l=a.theme("screens",i);for(let c of Gt(l&&ni(l)||a.v(i))){var o;u.push(c),r|=l?67108864|bl(c):i=="dark"?1073741824:c[0]=="@"?bl(c):(o=c,1<<~(/:([a-z-]+)/.test(o)&&~G9.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:r,r:u,i:t}}var wl=new Map;function y3(e){if(e.d){let t=[],n=ml(e.r.reduce((a,r)=>r[0]=="@"?(t.push(r),a):r?ml(a,u=>ml(r,o=>{let i=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(i){let l=u.indexOf(i[1]);return~l?u.slice(0,l)+i[0]+u.slice(l+i[1].length):gl(u,o)}return gl(o,u)})):a,"&"),a=>gl(a,e.n?"."+S3(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((a,r)=>r+"{"+a+"}",e.d)}}function ml(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,a,r)=>t(a)+r)}function gl(e,t){return e.replace(/&/g,t)}var x3=new Intl.Collator("en",{numeric:!0});function V9(e,t){for(var n=0,a=e.length;n>1;0>=L3(e[r],t)?n=r+1:a=r}return a}function L3(e,t){let n=e.p&ht.o;return n==(t.p&ht.o)&&(n==ht.b||n==ht.o)?0:e.p-t.p||e.o-t.o||x3.compare(E3(e.n),E3(t.n))||x3.compare(T3(e.n),T3(t.n))}function E3(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function T3(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function pl(e,t){return Math.round(parseInt(e,16)*t)}function da(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:a}=t,r=a?`var(${a})`:n;if(e.includes(""))return e.replace("",r);if(e[0]=="#"&&(e.length==4||e.length==7)){let u=(e.length-1)/3,o=[17,1,.062272][u-1];return`rgba(${[pl(e.substr(1,u),o),pl(e.substr(1+u,u),o),pl(e.substr(1+2*u,u),o),r]})`}return r=="1"?e:r=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${r})`)}function P3(e,t,n,a,r=[]){return function u(o,{n:i,p:l,r:c=[],i:s},m){let p=[],f="",d=0,b=0;for(let A in o||{}){var C,h;let S=o[A];if(A[0]=="@"){if(!S)continue;if(A[1]=="a"){p.push(...F3(i,l,Al(""+S),m,l,c,s,!0));continue}if(A[1]=="l"){for(let U of Gt(S))p.push(...u(U,{n:i,p:(C=ht[A[7]],l&~ht.o|C),r:A[7]=="d"?[]:c,i:s},m));continue}if(A[1]=="i"){p.push(...Gt(S).map(U=>({p:-1,o:0,r:[],d:A+" "+U})));continue}if(A[1]=="k"){p.push({p:ht.d,o:0,r:[A],d:u(S,{p:ht.d},m).map(y3).join("")});continue}if(A[1]=="f"){p.push(...Gt(S).map(U=>({p:ht.d,o:0,r:[A],d:u(U,{p:ht.d},m).map(y3).join("")})));continue}}if(typeof S!="object"||Array.isArray(S))A=="label"&&S?i=S+ti(JSON.stringify([l,s,o])):(S||S===0)&&(A=A.replace(/[A-Z]/g,U=>"-"+U.toLowerCase()),b+=1,d=Math.max(d,(h=A)[0]=="-"?0:D3(h)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(h)?+!!RegExp.$1||-!!RegExp.$2:0)+1),f+=(f?";":"")+Gt(S).map(U=>m.s(A,M3(""+U,m.theme)+(s?" !important":""))).join(";"));else if(A[0]=="@"||A.includes("&")){let U=l;A[0]=="@"&&(A=A.replace(/\bscreen\(([^)]+)\)/g,(O,y)=>{let T=m.theme("screens",y);return T?(U|=67108864,ni(T,"")):O}),U|=bl(A)),p.push(...u(S,{n:i,p:U,r:[...c,A],i:s},m))}else p.push(...u(S,{p:l,r:[...c,A]},m))}return p.unshift({n:i,p:l,o:Math.max(0,15-b)+1.5*Math.min(d||15,15),r:c,d:f}),p.sort(L3)}(e,Cl(t,n,a,r),n)}function M3(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,a,r,u,o="")=>{let i=t(r,o);return typeof i=="function"&&/color|fill|stroke/i.test(r)?da(i):""+Gt(i).filter(l=>Object(l)!==l)})}function vl(e,t){let n,a=[];for(let r of e)r.d&&r.n?n?.p==r.p&&""+n.r==""+r.r?(n.c=[n.c,r.c].filter(Boolean).join(" "),n.d=n.d+";"+r.d):a.push(n={...r,n:r.n&&t}):a.push({...r,n:r.n&&t});return a}function yl(e,t,n=ht.u,a,r){let u=[];for(let o of e)for(let i of function(l,c,s,m,p){l={...l,i:l.i||p};let f=function(d,b){let C=wl.get(d.n);return C?C(d,b):b.r(d.n,d.v[0]=="dark")}(l,c);return f?typeof f=="string"?({r:m,p:s}=Cl(l,c,s,m),vl(yl(Al(f),c,s,m,l.i),l.n)):Array.isArray(f)?f.map(d=>{var b,C;return{o:0,...d,r:[...Gt(m),...Gt(d.r)],p:(b=s,C=d.p??s,b&~ht.o|C)}}):P3(f,l,c,s,m):[{c:Tl(l),p:0,o:0,r:[]}]}(o,t,n,a,r))u.splice(V9(u,i),0,i);return u}function F3(e,t,n,a,r,u,o,i){return vl((i?n.flatMap(l=>yl([l],a,r,u,o)):yl(n,a,r,u,o)).map(l=>l.p&ht.o&&(l.n||t==ht.b)?{...l,p:l.p&~ht.o|t,o:0}:l),e)}function Y9(e,t,n,a){var r;return r=(u,o)=>{let{n:i,p:l,r:c,i:s}=Cl(u,o,t);return n&&F3(i,t,n,o,l,c,s,a)},wl.set(e,r),e}function fl(e,t,n){if(e[e.length-1]!="("){let a=[],r=!1,u=!1,o="";for(let i of e)if(!(i=="("||/[~@]$/.test(i))){if(i[0]=="!"&&(i=i.slice(1),r=!r),i.endsWith(":")){a[i=="dark:"?"unshift":"push"](i.slice(0,-1));continue}i[0]=="-"&&(i=i.slice(1),u=!u),i.endsWith("-")&&(i=i.slice(0,-1)),i&&i!="&"&&(o+=(o&&"-")+i)}o&&(u&&(o="-"+o),t[0].push({n:o,v:a.filter(J9),i:r}))}}function J9(e,t,n){return n.indexOf(e)==t}var C3=new Map;function Al(e){let t=C3.get(e);if(!t){let n=[],a=[[]],r=0,u=0,o=null,i=0,l=(c,s=0)=>{r!=i&&(n.push(e.slice(r,i+s)),c&&fl(n,a)),r=i+1};for(;i1?m.slice(0,-1)+ti(JSON.stringify([m,p])):m+"("+k3(p)+")",ht.a,p,/@$/.test(m))],a)}s=n.lastIndexOf("(",s-1)}n.length=s+1}else/[~@]/.test(c)&&e[i+1]=="("&&a.unshift([])}l(!0),C3.set(e,t=a[0])}return t}function _3(e,t,n){return t.reduce((a,r,u)=>a+n(r)+e[u+1],e[0])}function B3(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?_3(e,t,n=>hl(n).trim()):t.filter(Boolean).reduce((n,a)=>n+hl(a),e?hl(e):"")}function hl(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=B3(e[0],e.slice(1)))&&(n+=" "+t);else for(let a in e)e[a]&&(n+=" "+a);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var OM=R3("@"),IM=R3("~");function R3(e){return new Proxy(function(n,...a){return t("",n,a)},{get(n,a){return a in n?n[a]:function(r,...u){return t(a,r,u)}}});function t(n,a,r){return k3(Al(n+e+"("+B3(a,r)+")"))}}function xl(e,t){return Array.isArray(e)?w3(_3(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?w3(e):[e]}var Q9=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function w3(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],a=[n[0]],r=[];for(;t=Q9.exec(e);)t[4]&&(n.shift(),r.shift()),t[3]?(r.unshift(t[3]),n.unshift({}),a.push(r.reduce((u,o)=>({[o]:u}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),a.push(r.reduce((u,o)=>({[o]:u}),n[0]))),n[0][t[1]]=t[2]);return a}function O3(e,...t){var n;let a=xl(e,t),r=(a.find(u=>u.label)?.label||"css")+ti(JSON.stringify(a));return n=(u,o)=>vl(a.flatMap(i=>P3(i,u,o,ht.o)),r),wl.set(r,n),r}var NM=new Proxy(function(e,t){return v3("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,a){return v3(t,n,a)}}});function v3(e,t,n){return{toString(){return O3({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function te(e,t,n){return[e,Z9(t,n)]}function Z9(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,a)=>({[e]:t?t(n,a):El(n,1)}):n=>e||{[n[1]]:El(n,2)}}function El(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function ne(e,t,n,a){return[e,X9(t,n,a)]}function X9(e,t,n){let a=typeof t=="string"?(r,u)=>({[t]:n?n(r,u):r._}):t||(({1:r,_:u},o,i)=>({[r||i]:u}));return(r,u)=>{let o=I3(e||r[1]),i=u.theme(o,r.$$)??br(r.$$,o,u);if(i!=null)return r._=El(r,0,i),a(r,u,o)}}function ot(e,t={},n){return[e,eb(t,n)]}function eb(e={},t){return(n,a)=>{let{section:r=I3(n[0]).replace("-","")+"Color"}=e,[u,o]=tb(n.$$);if(!u)return;let i=a.theme(r,u)||br(u,r,a);if(!i||typeof i=="object")return;let{opacityVariable:l=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:c=r.replace("Color","Opacity"),property:s=r,selector:m}=e,p=a.theme(c,o||"DEFAULT")||o&&br(o,c,a),f=t||(({_:b})=>{let C=fu(s,b);return m?{[m]:C}:C});n._={value:da(i,{opacityVariable:l||void 0,opacityValue:p||void 0}),color:b=>da(i,b),opacityVariable:l||void 0,opacityValue:p||void 0};let d=f(n,a);if(!n.dark){let b=a.d(r,u,i);b&&b!==i&&(n._={value:da(b,{opacityVariable:l||void 0,opacityValue:p||"1"}),color:C=>da(b,C),opacityVariable:l||void 0,opacityValue:p||void 0},d={"&":d,[a.v("dark")]:f(n,a)})}return d}}function tb(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function fu(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function br(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=ei(M3(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function I3(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function ei(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",a,r="")=>ei(n)+a+ei(r)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var jM=Symbol();var N3=new Proxy(K9,{apply(e,t,n){return dl(n[0])},get(e,t){let n=dl[t];return typeof n=="function"?function(){return n.apply(dl,arguments)}:n}});var UM=function e(t){return new Proxy(function(n,...a){return A3(t,"",n,a)},{get(n,a){return a==="bind"?e:a in n?n[a]:function(r,...u){return A3(t,a,r,u)}}})}();function A3(e,t,n,a){return{toString(){let r=xl(n,a),u=S3(t+ti(JSON.stringify([t,r])));return(typeof e=="function"?e:N3)(O3({[`@keyframes ${u}`]:xl(n,a)})),u}}}g();g();g();g();g();var j3={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...Vt(4,"rem",4,.5,.5),...Vt(12,"rem",4,5),14:"3.5rem",...Vt(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Me("blur"),backdropBrightness:Me("brightness"),backdropContrast:Me("contrast"),backdropGrayscale:Me("grayscale"),backdropHueRotate:Me("hueRotate"),backdropInvert:Me("invert"),backdropOpacity:Me("opacity"),backdropSaturate:Me("saturate"),backdropSepia:Me("sepia"),backgroundColor:Me("colors"),backgroundImage:{none:"none"},backgroundOpacity:Me("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...Vt(200,"",100,0,50),...Vt(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Me("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Me("spacing"),borderWidth:{DEFAULT:"1px",...un(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Me("colors"),caretColor:Me("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...Vt(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Me("borderColor"),divideOpacity:Me("borderOpacity"),divideWidth:Me("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...hu(2,6),...hu(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Me("spacing"),gradientColorStops:Me("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...hu(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...hu(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...Vt(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...Vt(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Me("spacing"),placeholderColor:Me("colors"),placeholderOpacity:Me("opacity"),outlineColor:Me("colors"),outlineOffset:un(8,"px"),outlineWidth:un(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Me("colors"),ringOffsetWidth:un(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...un(8,"px")},rotate:{...un(2,"deg"),...un(12,"deg",3),...un(180,"deg",45)},saturate:Vt(200,"",100,0,50),scale:{...Vt(150,"",100,0,50),...Vt(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Me("spacing"),scrollPadding:Me("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...un(2,"deg"),...un(12,"deg",3)},space:Me("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:Vt(2),textColor:Me("colors"),textDecorationColor:Me("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...un(8,"px")},textUnderlineOffset:{auto:"auto",...un(8,"px")},textIndent:Me("spacing"),textOpacity:Me("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Me("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...hu(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...Vt(50,"",1,0,10),auto:"auto"}};function hu(e,t){let n={};do for(var a=1;at(e)}var uF={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${j3.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${j3.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},iF=[te("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:br(`[${t}]`,"",n)}}})),te("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),ne("aspect-","aspectRatio"),te("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:a,padding:r}=t("container"),u={width:"100%",marginRight:a&&"auto",marginLeft:a&&"auto",...o("xs")};for(let i in n){let l=n[i];typeof l=="string"&&(u[ni(l)]={"&":{maxWidth:l,...o(i)}})}return u;function o(i){let l=r&&(typeof r=="string"?r:r[i]||r.DEFAULT);if(l)return{paddingRight:l,paddingLeft:l}}}),ne("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),te("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),te("box-(border|content)","boxSizing",({1:e})=>e+"-box"),te("hidden",{display:"none"}),te("table-(auto|fixed)","tableLayout"),te(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",te("isolate","isolation"),te("object-(contain|cover|fill|none|scale-down)","objectFit"),ne("object-","objectPosition"),te("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",ai),te("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),te("(static|fixed|absolute|relative|sticky)","position"),ne("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),ne("-?(top|bottom|left|right)(?:$|-)","inset"),te("(visible|collapse)","visibility"),te("invisible",{visibility:"hidden"}),ne("-?z-","zIndex"),te("flex-((row|col)(-reverse)?)","flexDirection",U3),te("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),ne("(flex-(?:grow|shrink))(?:$|-)"),ne("(flex)-"),ne("grow(?:$|-)","flexGrow"),ne("shrink(?:$|-)","flexShrink"),ne("basis-","flexBasis"),ne("-?(order)-"),"-?(order)-(\\d+)",ne("grid-cols-","gridTemplateColumns"),te("grid-cols-(\\d+)","gridTemplateColumns",W3),ne("col-","gridColumn"),te("col-(span)-(\\d+)","gridColumn",q3),ne("col-start-","gridColumnStart"),te("col-start-(auto|\\d+)","gridColumnStart"),ne("col-end-","gridColumnEnd"),te("col-end-(auto|\\d+)","gridColumnEnd"),ne("grid-rows-","gridTemplateRows"),te("grid-rows-(\\d+)","gridTemplateRows",W3),ne("row-","gridRow"),te("row-(span)-(\\d+)","gridRow",q3),ne("row-start-","gridRowStart"),te("row-start-(auto|\\d+)","gridRowStart"),ne("row-end-","gridRowEnd"),te("row-end-(auto|\\d+)","gridRowEnd"),te("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>ai(U3(e))),te("grid-flow-(dense)","gridAutoFlow"),ne("auto-cols-","gridAutoColumns"),ne("auto-rows-","gridAutoRows"),ne("gap-x(?:$|-)","gap","columnGap"),ne("gap-y(?:$|-)","gap","rowGap"),ne("gap(?:$|-)","gap"),"(justify-(?:items|self))-",te("justify-","justifyContent",z3),te("(content|items|self)-",e=>({["align-"+e[1]]:z3(e)})),te("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),ne("p([xytrbl])?(?:$|-)","padding",yr("padding")),ne("-?m([xytrbl])?(?:$|-)","margin",yr("margin")),ne("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),te("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),ne("w-","width"),ne("min-w-","minWidth"),ne("max-w-","maxWidth"),ne("h-","height"),ne("min-h-","minHeight"),ne("max-h-","maxHeight"),ne("font-","fontWeight"),ne("font-","fontFamily",({_:e})=>typeof(e=Gt(e))[1]=="string"?{fontFamily:Cn(e)}:{fontFamily:Cn(e[0]),...e[1]}),te("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),te("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),te("italic","fontStyle"),te("not-italic",{fontStyle:"normal"}),te("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...ma({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),ne("tracking-","letterSpacing"),ne("leading-","lineHeight"),te("list-(inside|outside)","listStylePosition"),ne("list-","listStyleType"),te("list-","listStyleType"),ne("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),ot("placeholder-",{property:"color",selector:"&::placeholder"}),te("text-(left|center|right|justify|start|end)","textAlign"),te("text-(ellipsis|clip)","textOverflow"),ne("text-opacity-","textOpacity","--tw-text-opacity"),ot("text-",{property:"color"}),ne("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),ne("indent-","textIndent"),te("(overline|underline|line-through)","textDecorationLine"),te("no-underline",{textDecorationLine:"none"}),ne("underline-offset-","textUnderlineOffset"),ot("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),ne("decoration-","textDecorationThickness"),te("decoration-","textDecorationStyle"),te("(uppercase|lowercase|capitalize)","textTransform"),te("normal-case",{textTransform:"none"}),te("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),te("align-","verticalAlign"),te("whitespace-","whiteSpace"),te("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),te("break-words",{overflowWrap:"break-word"}),te("break-all",{wordBreak:"break-all"}),te("break-keep",{wordBreak:"keep-all"}),ot("caret-",{opacityVariable:!1,opacitySection:"opacity"}),ot("accent-",{opacityVariable:!1,opacitySection:"opacity"}),te("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${Da(e," ")},var(--tw-gradient-stops))`),ot("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),ot("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),ot("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),te("bg-(fixed|local|scroll)","backgroundAttachment"),te("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),te(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),te("bg-blend-","backgroundBlendMode"),te("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),ne("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),ot("bg-",{section:"backgroundColor"}),ne("bg-","backgroundImage"),ne("bg-","backgroundPosition"),te("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",ai),ne("bg-","backgroundSize"),ne("rounded(?:$|-)","borderRadius"),ne("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${Da(n[0])}-radius`]:t,[`border-${Da(n[1])}-radius`]:t}}),te("border-(collapse|separate)","borderCollapse"),ne("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),te("border-(solid|dashed|dotted|double|none)","borderStyle"),ne("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...ma({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),ot("border-([xytrbl])-",{section:"borderColor"},yr("border","Color")),ot("border-"),ne("border-([xytrbl])(?:$|-)","borderWidth",yr("border","Width")),ne("border(?:$|-)","borderWidth"),ne("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),te("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),te("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),ne("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${Da(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${Da(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),ot("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),ne("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),ot("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),ne("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),te("ring-inset",{"--tw-ring-inset":"inset"}),ot("ring-",{property:"--tw-ring-color"}),ne("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...ma({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":da(t("ringOffsetColor","","#fff")),"--tw-ring-color":da(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),ot("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),ne("shadow(?:$|-)","boxShadow",({_:e})=>({...ma({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Cn(e),"--tw-shadow-colored":Cn(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),ne("(opacity)-"),te("mix-blend-","mixBlendMode"),...H3(),...H3("backdrop-"),ne("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Cn(e),transitionTimingFunction:e._=="none"?void 0:Cn(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:Cn(t("transitionDuration",""))})),ne("duration(?:$|-)","transitionDuration","transitionDuration",Cn),ne("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Cn),ne("delay(?:$|-)","transitionDelay","transitionDelay",Cn),ne("animate(?:$|-)","animation",(e,{theme:t,h:n,e:a})=>{let r=Cn(e),u=r.split(" "),o=t("keyframes",u[0]);return o?{["@keyframes "+(u[0]=a(n(u[0])))]:o,animation:u.join(" ")}:{animation:r}}),"(transform)-(none)",te("transform",Sl),te("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":$3(e=="gpu")})),ne("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...Sl()})),ne("-?(rotate)-","rotate",kl),ne("-?(translate-[xy])-","translate",kl),ne("-?(skew-[xy])-","skew",kl),te("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",ai),"(appearance)-",ne("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",ne("(cursor)-"),"(cursor)-",te("snap-(none)","scroll-snap-type"),te("snap-(x|y|both)",({1:e})=>({...ma({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),te("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),te("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),te("snap-(normal|always)","scroll-snap-stop"),te("scroll-(auto|smooth)","scroll-behavior"),ne("scroll-p([xytrbl])?(?:$|-)","padding",yr("scroll-padding")),ne("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",yr("scroll-margin")),te("touch-(auto|none|manipulation)","touch-action"),te("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...ma({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),te("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),te("outline",{outlineStyle:"solid"}),te("outline-(dashed|dotted|double)","outlineStyle"),ne("-?(outline-offset)-"),ot("outline-",{opacityVariable:!1,opacitySection:"opacity"}),ne("outline-","outlineWidth"),"(pointer-events)-",ne("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],te("select-(none|text|all|auto)","userSelect"),ot("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),ot("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),ne("stroke-","strokeWidth"),te("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),te("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function ai(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function U3(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function Da(e,t="-"){let n=[];for(let a of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[a]);return n.join(t)}function Cn(e){return e&&""+(e._||e)}function z3({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function yr(e,t=""){return({1:n,_:a})=>{let r={x:"lr",y:"tb"}[n]||n+n;return r?{...fu(e+"-"+Da(r[0])+t,a),...fu(e+"-"+Da(r[1])+t,a)}:fu(e+t,a)}}function H3(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let a of t)n[`--tw-${e}${a}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...ma(n),[`${e}filter`]:t.map(a=>`var(--tw-${e}${a})`).join(" ")},[`(${e}filter)-(none)`,te(`${e}filter`,n),...t.map(a=>ne(`${a[0]=="h"?"-?":""}(${e}${a})(?:$|-)`,a,({1:r,_:u})=>({[`--tw-${r}`]:Gt(u).map(o=>`${a}(${o})`).join(" "),...n})))]}function kl({1:e,_:t}){return{["--tw-"+e]:t,...Sl()}}function Sl(){return{...ma({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":$3()}),transform:"var(--tw-transform)"}}function $3(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function q3({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function W3({1:e}){return`repeat(${e},minmax(0,1fr))`}function ma(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}g();g();var ri=globalThis||(typeof window<"u"?window:self),rb=Object.create,Ll=Object.defineProperty,ub=Object.getOwnPropertyDescriptor,ob=Object.getOwnPropertyNames,ib=Object.getPrototypeOf,sb=Object.prototype.hasOwnProperty,lb=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),cb=(e,t)=>{for(var n in t)Ll(e,n,{get:t[n],enumerable:!0})},Dl=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ob(t))!sb.call(e,r)&&r!==n&&Ll(e,r,{get:()=>t[r],enumerable:!(a=ub(t,r))||a.enumerable});return e},db=(e,t,n)=>(Dl(e,t,"default"),n&&Dl(n,t,"default")),G3=(e,t,n)=>(n=e!=null?rb(ib(e)):{},Dl(t||!e||!e.__esModule?Ll(n,"default",{value:e,enumerable:!0}):n,e)),V3=lb((e,t)=>{(function(n,a){typeof define=="function"&&define.amd?define([],a):typeof e<"u"?a():(a(),n.FileSaver={})})(e,function(){"use strict";function n(c,s){return typeof s>"u"?s={autoBom:!1}:typeof s!="object"&&(s={autoBom:!s}),s.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function a(c,s,m){var p=new XMLHttpRequest;p.open("GET",c),p.responseType="blob",p.onload=function(){l(p.response,s,m)},p.onerror=function(){},p.send()}function r(c){var s=new XMLHttpRequest;s.open("HEAD",c,!1);try{s.send()}catch{}return 200<=s.status&&299>=s.status}function u(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var s=document.createEvent("MouseEvents");s.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(s)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof ri=="object"&&ri.global===ri?ri:void 0,i=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(c,s,m){var p=o.URL||o.webkitURL,f=document.createElement("a");s=s||c.name||"download",f.download=s,f.rel="noopener",typeof c=="string"?(f.href=c,f.origin===location.origin?u(f):r(f.href)?a(c,s,m):u(f,f.target="_blank")):(f.href=p.createObjectURL(c),setTimeout(function(){p.revokeObjectURL(f.href)},4e4),setTimeout(function(){u(f)},0))}:"msSaveOrOpenBlob"in navigator?function(c,s,m){if(s=s||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(n(c,m),s);else if(r(c))a(c,s,m);else{var p=document.createElement("a");p.href=c,p.target="_blank",setTimeout(function(){u(p)})}}:function(c,s,m,p){if(p=p||open("","_blank"),p&&(p.document.title=p.document.body.innerText="downloading..."),typeof c=="string")return a(c,s,m);var f=c.type==="application/octet-stream",d=/constructor/i.test(o.HTMLElement)||o.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||f&&d||i)&&typeof FileReader<"u"){var C=new FileReader;C.onloadend=function(){var S=C.result;S=b?S:S.replace(/^data:[^;]*;/,"data:attachment/file;"),p?p.location.href=S:location=S,p=null},C.readAsDataURL(c)}else{var h=o.URL||o.webkitURL,A=h.createObjectURL(c);p?p.location=A:location.href=A,p=null,setTimeout(function(){h.revokeObjectURL(A)},4e4)}});o.saveAs=l.saveAs=l,typeof t<"u"&&(t.exports=l)})}),Y3={};cb(Y3,{default:()=>ui});var mb=G3(V3());db(Y3,G3(V3()));var{default:K3,...gb}=mb,ui=K3!==void 0?K3:gb;g();g();g();g();g();g();var GF=Be().REDIRECT_URL;function Tb(){let[e,t]=Te(null);return Ne(()=>{ta().then(a=>{t(a)})},[]),[e,a=>{t(a),nn(a)}]}async function Cb(e,t,n){try{if(t===null)return"noupdate";let a=await Ab(e),r=await ta();r.accountLastSyncedAt=Date.now(),H.debug("settings",t),H.debug("local settings.updatedAt",t.updatedAt),H.debug("remote settings.updatedAt",a.updatedAt),H.debug("last synced at",r.accountLastSyncedAt);let u=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(u=!0),!u&&t.updatedAt>a.updatedAt&&(u=!0),H.debug("isUpload",u),u)return await kb(e,t),await nn(r),"upload";let o=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(o=!0),!o&&t.updatedAt0&&jt.remove(Nt),a}}function oi(e,t){let n=vb(),[a,r]=Tb();Ne(()=>{!n||!n.token||a&&a.proAutoSync===!1||wb(n)&&Cb(n.token,e,t)},[e,n])}function wb(e){return en(e)?!0:new Date(e.createTime){jt.get(Nt,null).then(n=>{t(n)})},[t]),e}function Ab(e){return(location.href?.indexOf("popup.html")>0?Nn:se)({responseType:"json",url:as+"/v1/user/settings",method:"get",headers:{token:e}}).then(n=>n.data)}function kb(e,t){return(location.href?.indexOf("popup.html")>0?Nn:se)({responseType:"json",url:as+"/v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(a=>a.data)}function Ml(e){let{onClose:t}=e,[n,a]=Te("Original"),[r,u,o,i]=hr(()=>{setTimeout(()=>{S("updateGlobalContext",!1)()},250)});oi(r,u);let[l,c]=Te(null),[s,m]=Te(globalThis.location.href),[p,f]=Te("auto"),[d,b]=Te(null),C=N=>{a(N.detail)},h=N=>{f(N);let P=_u(s,N,l.sourceLanguageUrlPattern);u(x=>({...x,sourceLanguageUrlPattern:P})),an(N)},A=()=>{m(globalThis.location.href)};Ne(()=>(document.addEventListener(zu,C,!1),Tn().then(N=>{c(N);let P=pt();f(P);let x=$e();a(x),h3(N.interval)}),document.addEventListener("urlChange",A),()=>{document.removeEventListener("pageTranslatedStatus",C),document.removeEventListener("urlChange",A)}),[]),Ne(()=>{Tn().then(N=>{c(N)})},[r]),Ne(()=>{s&&l&&jn({url:s,config:l}).then(N=>{b(N)})},[s,l]);let S=(N,P,x={})=>()=>{gr({method:N,data:x||{}}),P&&t()},U=()=>{t()},O=()=>{u(N=>({...N,enabled:!N.enabled})),setTimeout(()=>{U()},50)},y=()=>{Pl(),setTimeout(()=>{U()},50)},T=()=>{Pl(),setTimeout(()=>{U()},50)},k=(N="")=>{xr(!0,N),setTimeout(()=>{t()},50)},v=()=>{li(Vu),setTimeout(()=>{globalThis.close()},50)},E=()=>{si(),setTimeout(()=>{t()},50)},R=()=>{ci(),setTimeout(()=>{t()},50)},F=()=>{X3(),setTimeout(()=>{t()},50)},w=()=>{di(),setTimeout(()=>{t()},50)},B=()=>{ep(),setTimeout(()=>{t()},50)},I=N=>{u(P=>({...P,generalRule:{...P.generalRule,mouseHoverHoldKey:N}}))};return!l||!d?null:V(pu,{openEbookViewerPage:R,openEbookBuilderPage:w,onSwitchTranslationMode:N=>{S("switchTranslationMode",!0,{mode:N})()},onTranslateLocalHtmlFile:F,onTranslateLocalSubtitleFile:B,request:se,onClose:U,onToggleEnabled:O,onTranslateTheWholePage:S("translateTheWholePage",!0),openOptionsPage:k,openPricingPage:v,onToggleTranslate:S("toggleTranslatePage",!0),onTranslateTheMainPage:S("translateTheMainPage",!0),ontranslateToThePageEndImmediately:S("translateToThePageEndImmediately",!0),onTranslatePage:S("translatePage",!0),onRestorePage:S("restorePage",!1),onTranslatePdf:y,openAboutPage:E,onTranslateLocalPdfFile:T,onSetPageLanguage:h,onUserConfigChange:u,config:l,pageStatus:n,ctx:d,currentUrl:s,currentLang:p,onSetLocalConfig:ii,onSetBuildinConfig:Z3,onMouseTriggerChanged:I})}function Sb(e,t){for(let n of t){if(fe()&&!Ha()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}var Fl={position:"right",right:0,top:335},Mt={...Fl},pi=!1,La=null,Sn=null,fi=null,_l=null,Er=null,Bl=null,tp=6,mi,gi,ap=null,rp=null;async function up(){let e=Be();Bl=await sp(),Mt=Bl.pagePopupConfig||Mt;let t=document.createElement("div");t.id="immersive-translate-popup",t.setAttribute("style","all: initial"),document.documentElement.appendChild(t);let n=t.attachShadow({mode:"open"});_l=n;let a=[e.IMMERSIVE_TRANSLATE_PICO_CSS,e.IMMERSIVE_TRANSLATE_COMMON_CSS,e.IMMERSIVE_TRANSLATE_POPUP_CSS,e.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);Sb(n,[a]);let r=document.createElement("div");r.innerHTML=e.IMMERSIVE_TRANSLATE_POPUP_HTML,n.appendChild(r),La=n.querySelector("#immersive-translate-popup-container");let o=n.querySelector("#immersive-translate-popup-btn");Sn=o,fi=n.querySelector("#mount"),La.setAttribute("style",Rl(Mt)),jl(),o.addEventListener("mousedown",op),o.addEventListener("touchstart",Pb),globalThis.addEventListener("resize",l=>{La.setAttribute("style",Rl(Mt))})}function Db(){pa(null,fi),fi.style.display="none",Sn.style.display="block",Er=setTimeout(()=>{jl(!0)},2e3)}function np(e){let t=e.querySelector("#mount"),n=()=>{Db()},a=r=>{r&&r.target&&r.target.id==="immersive-translate-popup-overlay"&&n()};(async()=>{let r=await Tn();pa(V(Yo,{lang:r.interfaceLanguage,fallbackLang:"zh-CN",translations:Go,children:V("div",{onClick:a,id:"immersive-translate-popup-overlay",class:"immersive-translate-popup-overlay",children:V("div",{class:"immersive-translate-popup-wrapper",style:Lb(),children:V(Ml,{onClose:n})})})}),t)})().then(()=>{Sn.style.display="none",fi.style.display="block"})}function Lb(){let e=Ol(),t=e.height,{position:n,top:a,left:r}=Mt,u={position:"fixed"},o=300,i=300,l=100;return Kc()&&(n=Fl.position,a=Fl.top),n==="right"||n==="left"?(u.top=a-l,u.top+o>=t?(u.bottom=30,delete u.top):u.top<=10&&(u.top=10),n==="right"?u.right=0:n==="left"&&(u.left=0)):(n==="top"||n==="bottom")&&(u.left=r-l,u.left+i>=e.width?(u.right=0,delete u.left):u.left<=10&&(u.left=0),n==="top"?u.top=0:n==="bottom"&&(u.bottom=0)),u}function Ol(){return{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}function op(e){rp=La.getAttribute("style"),mi=e.pageX,gi=e.pageY,Er&&clearTimeout(Er),pi=!1,Sn.style.opacity="1",Sn.style.transform="none",ap=Sn.getAttribute("style"),globalThis.addEventListener("mousemove",Il),globalThis.addEventListener("mouseup",Nl),globalThis.addEventListener("touchmove",ip),globalThis.addEventListener("touchend",hi),globalThis.addEventListener("touchcancel",hi)}function Pb(e){e.preventDefault&&e.preventDefault(),op(e.changedTouches[0])}function ip(e){Il(e.changedTouches[0])}function hi(e){e.preventDefault&&e.preventDefault(),Nl(e.changedTouches[0])}function Il(e){e.preventDefault&&e.preventDefault(),pi=!0,La.setAttribute("style",`left:${e.clientX}px;top:${e.clientY}px;transform:scale(1.6);`)}function Nl(e){e.preventDefault&&e.preventDefault(),Fb(),Er&&clearTimeout(Er),mi=mi||0,gi=gi||0;let t=Math.abs(e.pageX-mi),n=Math.abs(e.pageY-gi);t{jl(!0)},2e3)}function jl(e=!1){Sn.style.opacity="0.4";let t="";Mt.position==="left"?t="translateX(-40%)":Mt.position==="right"?t="translateX(40%)":Mt.position==="top"?t="translateY(-40%)":Mt.position==="bottom"&&(t="translateY(40%)"),Sn.style.transform=t,e&&(Sn.style.transition="transform 0.2s ease-in-out, opacity 0.2s ease-in-out")}function Fb(){globalThis.removeEventListener("mousemove",Il),globalThis.removeEventListener("mouseup",Nl),globalThis.removeEventListener("touchmove",ip),globalThis.removeEventListener("touchend",hi),globalThis.removeEventListener("touchcancel",hi)}function Rl(e){let t=_b(e);return Object.keys(t).map(n=>typeof t[n]=="number"?`${n}:${t[n]}px;`:"").join("")}function _b(e){let{position:t,...n}=e,a=Ol(),r={};return t==="left"?(r.left=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="right"?(r.right=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="top"?(r.top=0,n.left>a.width?r.left=a.width-100:r.left=n.left):t==="bottom"&&(r.bottom=0,n.left>a.width?r.left=a.width-100:r.left=n.left),r}var lp=!1;async function cp(){lp||(lp=!0,up().catch(e=>{H.error("init popup error",e)}))}var dp=!1,fp=[()=>{Ve.unbind()}],zl=[...fp],Bb=yt(async()=>{await xr()},50),Rb=yt(async()=>{await si()},50),Ob=yt(async()=>{await di()},50),Ib=yt(async()=>{await ci()},50),hp=yt(e=>{gr({method:e,data:{trigger:"userscript_menu"}})},50),Nb=yt(()=>{bi();let e=new CustomEvent(Vn,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},200),jb=yt(()=>{Ei();let e=new CustomEvent(Vn,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},200),Ub=yt(()=>{xi();let e=new CustomEvent(Vn,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},200);function zb(e,t){let n=e.document;if(dp)return;if(dp=!0,fe()||vp(),n.addEventListener("securitypolicyviolation",Xb),document.addEventListener(ge+"DocumentMessageUser",Tp),document.addEventListener(ge+"DocumentMessageUpdateUser",Cp),document.addEventListener(ge+"ChangeSuccessService",wp.bind(null,t)),document.addEventListener(Uu,Jb.bind(null,t)),n.addEventListener(ge+"EbookLoaded",Zb),n.addEventListener(b4,Qb),n.addEventListener(y4,ey.bind(null,t)),n.addEventListener("click",r=>{$b(r,t)}),fe()&&(globalThis.top!=globalThis.self?e.addEventListener("message",qb,!1):n.addEventListener(Vn,Hb)),globalThis.top===globalThis.self){let r=oa.rootIframe(Ku);r.handleAsk("getRateLimitDelay",jm),r.handleAsk("throttleRequest",yg)}}function bp(e,t){ty(),zb(t,e);let n=t.document,a=Wb.bind(null,e);e.rule.fingerCountToToggleTranslagePageWhenTouching>=2&&n.addEventListener("touchstart",a),zl.push(()=>{n.removeEventListener("touchstart",a)}),fe()&&globalThis.top===globalThis.self&&(X0(e.config),ny(e.config)),At()&&X0(e.config)}function Hb(e){cp()}function qb(e){let t=e;t&&t.data&&t.data.payload&&t.data.author===ju&&pr(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})}function Wb(e,t){let n=t;n.touches.length==e.rule.fingerCountToToggleTranslagePageWhenTouching?Nb():n.touches.length===e.rule.fingerCountToToggleTranslationMaskWhenTouching?Ub():n.touches.length===e.rule.fingerCountToToggleTranslagePageOnlyTranslationWhenTouching&&jb()}function $b(e,t){let n=e.target;if(!n||!n.getAttribute){Ul(n);return}let a=n.getAttribute("data-immersive-translate-event");a&&Ye(a,[{name:a}],{...t,sourceLanguage:"none"});let r=n.getAttribute(`data-${Q}-action`);if(r)if(r==="retry"){e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),yi(),Ul(n,!0);return}else if(r=="toast-error"){let u=n.getAttribute(`data-${Q}-tooltip-text`);Hl(xp.bind(null,t,u||""))}else r=="close-search"&&(e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),Hl(Vb.bind(null,t)));Ul(n)}async function mp(e=!1){let t=document.querySelector(`.${Q}-search-recomend`);if(!t||(t.remove(),!e))return;let n=await sn();n.generalRule||(n.generalRule={}),n.generalRule.enableSearchEnhancement=!1,await on(n)}async function Kb(){let e=await sn(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,a=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(a=e.translationUrlPattern.matches||[]),!n&&a.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await on(e)}async function Gb(){let e=await sn(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await on(e)}var gp=0;function Hl(e){let t=Date.now();if(t-gp<2e3)return;gp=t;let n=`${Q}-modal`,a=document.querySelector(`.${n}`);if(a?.style.display=="block")return;let r=`${Q}-modal-title`,u=`${Q}-modal-body`,o=`${Q}-modal-footer`;if(a){let i=a.querySelector(`.${r}`),l=a.querySelector(`.${o}`),c=a.querySelector(`.${u}`);e(a,i,c,l)}else{a=document.createElement("div"),a.className=n+" notranslate",a.id=n;let i=document.createElement("div");i.className=Q+"-modal-content notranslate",a.appendChild(i);let l=document.createElement("span");l.textContent="\xD7",l.className=Q+"-close",i.appendChild(l);let c=document.createElement("div");c.className=r+" notranslate",i.appendChild(c);let s=document.createElement("div");s.className=u+" notranslate",i.appendChild(s);let m=document.createElement("div");m.className=o,i.appendChild(m),document.body.appendChild(a),l.onclick=function(){a.style.display="none"},window.onclick=function(p){p.target==a&&(a.style.display="none")},e(a,c,s,m)}setTimeout(()=>{Yb()},100)}function Vb(e,t,n,a,r){let u=yp.bind(null,e);n.innerHTML=`
${Qo} ${u("disableConfirm")}
`,a.innerHTML="";let o=document.querySelector(`div[data-${Q}-cancel-desc]`),i=document.createElement("p");i.innerHTML=o?Re.sanitize(o.textContent||""):Re.sanitize(u("searchEnhancementNotes")),i.style.cssText="margin-bottom:12px",a.appendChild(i);let l=[{id:"enable-search-enhancement",value:"enable",text:u("enableSearchEnhancement")},{id:"disable-once",value:"once",text:u("disableOnce")},{id:"disable-global",value:"global",text:u("disableGlobal")}];for(let f=0;f${u("option")}`})),a.appendChild(c);let s=a.querySelector(`.${Q}-open-enhancement`);s&&(s.onclick=function(){Ap(!0)});let m=document.createElement("button");m.innerText=u("closeModal"),m.className=`${Q}-btn ${Q}-cancel-btn`;let p=document.createElement("button");p.className=`${Q}-btn`,p.innerText=u("saveSettings"),r.innerHTML="",r.appendChild(m),r.appendChild(p),m.onclick=function(){t.style.display="none"},p.onclick=function(){let f=a.getElementsByTagName("input"),d="";for(let b=0;b
1. \u5207\u6362\u5230 ${u} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458`:i+=`

\u5982\u679C\u60A8\u6709\u7591\u95EE\uFF0C\u8BF7\u8054\u7CFB support@immersivetranslate.com`,Hl(xp.bind(null,e,i))}catch(a){H.warn("parse message error",a)}}function Qb(e){let t=e;if(H.debug("receive third party message",t),t&&t.detail)try{let n=JSON.parse(t.detail);n&&n.type&&(n.type==="retryFailedParagraphs"?ay({method:"retryFailedParagraphs"}):n.type==="updateCommands"?kp(n.data):n.type==="toggleEnableDefaultAlwaysTranslatedUrls"?Kb():n.type==="toggleEnableInputTranslation"?Gb():hp(n.type))}catch(n){H.warn("parse message error",n)}}function Zb(e){setTimeout(()=>{Ep()},10)}function Xb(e){Ee.HAS_CSP_ERROR="1"}function ey(e,t){let n=event.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&Ye(n.name,[{name:n.name}],{...e})}function ty(){zl.forEach(e=>{e()}),zl=fp}function ny(e){if(fe()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=fo.commands,r=[...Object.keys(t).filter(u=>u==="toggleTranslatePage").map(u=>{let o=t[u].description,i=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(i=mr(`browser.${o.slice(6,-2)}`,e.interfaceLanguage)),{id:u,title:i}}),{id:Ji,title:mr("browser.openEbookViewer",e.interfaceLanguage),key:"e"},{id:Qi,title:mr("browser.openEbookBuilder",e.interfaceLanguage),key:"m"},{id:Vi,title:mr("browser.openOptionsPage",e.interfaceLanguage),key:"o"},{id:Yi,title:mr("browser.openAboutPage",e.interfaceLanguage),key:"a"}];for(let u of r)GM.registerMenuCommand(u.title,()=>{u.id===Vi?Bb():u.id===Yi?Rb():u.id===Qi?Ob():u.id===Ji?Ib():hp(u.id)},u.key)}}function ay(e){pr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{H.error("send content message request failed",e,n)});let t=new CustomEvent(Vn,{detail:e});globalThis.document.dispatchEvent(t)}g();var Pa={};async function ql(){let t=[...document.querySelectorAll(".source-text")].map(a=>a.textContent).join(""),n=await Je({text:t,minLength:200,pageLangs:[Ta(),"en"]});return an(n),n}async function Sp(e){Pt("Translating");let t=pt(),n=To(),a=[...document.querySelectorAll(".source-text")];if(No(e,t))return;let r=a.filter(u=>u.innerText?.trim()).map((u,o)=>{let i=u.parentElement?.parentElement?.querySelector(".target-text");return nt(u,"id",o+""),i&&(ir(i,o)?.remove(),i.appendChild(lu(e,o))),{text:u.innerText||"",id:o,from:t,to:e.targetLanguage,url:"https://google.com",fromByClient:n}});document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await sa({sentences:r},e,(u,o,i)=>{let l=i.id,c=ir(document.body,l);if(!c)return;let s=c.parentElement;s&&(c.remove(),u?(s.innerHTML=Re.sanitize(`${u.message}`),Pa[l]={ok:!1,sentence:i}):o&&(s.innerHTML=Re.sanitize(o.text),Pa[l]={ok:!0,sentence:i}),document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!u}})})))})}catch(u){throw u}finally{Pt("Translated")}}async function Dp(e){Pt("Translating"),document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(Pa),n=[],a=[];for(let r of t){let u=Pa[r];if(!u.ok){let i=document.querySelector(`#error-id-${r}`);if(i){let l=i.parentElement;i.remove(),l&&(delete Pa[r],l.appendChild(lu(e,r)),a.push(u.sentence))}}}try{await sa({sentences:a},e,(r,u,o)=>{let i=o.id,l=ir(document.body,i);if(!l)return;let c=l.parentElement;c&&(l.remove(),r?(c.innerHTML=Re.sanitize(`${r.message}`),Pa[i]={ok:!1,sentence:o}):u&&(c.innerHTML=Re.sanitize(u.text),Pa[i]={ok:!0,sentence:o}),document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!r}})})))})}catch(r){throw r}finally{Pt("Translated")}}function Wl(){Pt("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}g();var $l={};async function Lp(){let e=[...document.querySelectorAll("iframe")],t="";for(let a of e){let r=a.contentDocument;if(!r)continue;let u=r.body;if(u&&(t=t+u.innerText||"",t.length>1e3))break}let n=await Je({text:t,pageLangs:["en"]});return an(n),n}async function Pp(e){Pt("Translating"),document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys($l),n=[];for(let a of t){let r=$l[a];if(r.error){let o=r.commonAncestorContainer.querySelector(`[${Hu}='${a}']`);o&&o.remove(),n.push(r)}}try{await qo(n,e,e.config.translationMode)}catch{}finally{Pt("Translated")}}function Mp(){let e=[...document.querySelectorAll("iframe")];for(let t of e){let n=t.contentDocument;if(!n)continue;let a=n.querySelectorAll("."+$t);for(let r of a)r.remove()}Pt("Original")}async function Fp(e){Pt("Translating");let t=bn(),n=[...document.querySelectorAll("iframe")],a=[],r=[];for(let i of n){let l=i.contentDocument;if(!l)continue;sr(l,e);let c=l.body;if(!c)continue;let s=rn(e);s.isModifyImage=!1,ca({id:t,container:c,filterRule:s,onParagraph:m=>{a.push(m)}})}let u=Io(e.config.translationServices[e.translationService]?.placeholderDelimiters),o=1;for(let i of a){let l=Uo(i.flatNodes,{isPreWhitespace:i.isPreWhitespace||!1,delimiters:u,stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(s=>s.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)});if(!l)continue;i.variables=l?.variables||{},i.text=l?.text,i.id=(o++).toString();let c=await G0(i,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:u,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});c&&(r.push(c),$l[c.id]=c)}a=[],document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await qo(r,e,e.config.translationMode)}catch{}finally{Pt("Translated")}}g();var ry=new AbortController,{signal:uy}=ry,Jl=0,Ql=0,Kl=!1,Gl=0,bu=!1,Ma,_p=0,Fa=[];function Ti(e,t){oy();let n=e,a=n.config,r=a.generalRule.mouseHoverHoldKey==="Off",u=a.generalRule.mouseHoverHoldKey==="Auto",o=yt(s=>{if(Kl==!1&&Math.abs(s.clientX-Jl)+Math.abs(s.clientY-Ql)>3&&(Gl<2?Gl+=1:Kl=!0),Jl=s.clientX,Ql=s.clientY,u||bu&&!Ma){let m=Np(n.rule,t);if(m){if(Zl(m))return;Rp(n,m)}}},u?700:300),i=s=>{let m=s.target;Zl(m)||Rp(n)},l=s=>{let m=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=Ve.getPressedKeyCodes();if(p.length>1&&Ve[m]&&(_p=Date.now(),bu=!1),p.length===1&&Ve[m]){let f=Date.now();bu=!0,Ma&&clearTimeout(Ma),Ma=setTimeout(()=>{let d=_p-f;d>0&&d<=150?bu=!1:i(s),Ma=void 0},150)}};if(Fa.push(()=>{Ma&&clearTimeout(Ma)}),r)return;Vl("mousemove",o,t),Fa.push(()=>{t.removeEventListener("mousemove",o)});function c(){Kl=!1,Gl=0,o.cancel()}if(u)Vl("blur",c,t),Fa.push(()=>{t.removeEventListener("blur",c)});else{let s=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",m=["ctrl","alt","shift","cmd","command","option","control"];Vl("keyup",Bp,t),Fa.push(()=>{t.removeEventListener("keyup",Bp)}),m.includes(s)?Ve("*","mouseHover",l):Ve(a.generalRule.mouseHoverHoldKey,"mouseHover",i),Ve.setScope("mouseHover"),Fa.push(()=>{Ve.deleteScope("mouseHover")})}}function oy(){Fa.forEach(e=>e()),Fa=[]}function Bp(e){bu=!1}function Vl(e,t,n=window){return n.addEventListener(e,t,{signal:uy})}function Rp(e,t,n=window){if(t=t||Np(e.rule,n),!t){H.debug("can not find selection part!");return}if(Zl(t)){H.debug("exclude dom");return}o3(e,t);let a=Ko();a?.currentUrl!==window.location.href&&(zn(),Q0(e)),a&&(a.setupMouseHoverListener=Ti);let r=rn(e);r.excludeSelectors=[],r.selectors=[];let u=!1;ca({id:a.id,container:t,filterRule:r,force:!0,onParagraph:o=>{du(a,o,!0).then(i=>{if(i&&!u){u=!0;let l=Date.now();ze(E4,l),Ye("mouse_hover_translate",[{name:"mouse_hover_translate"}],{...e,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function Np(e,t){return iy(Jl,Ql,e,t)}function iy(e,t,n,a){let r=Hd(e,t,n,a);if(r==null)return;let u=()=>{let l=a.document.elementFromPoint(e,t);if(!l)return;let c=qd(l,e,t);return c===l?l.nodeName==="BUTTON"?l:void 0:Ip(c,n)},o=()=>{try{r.setStartBefore(r.startContainer),r.setEndAfter(r.startContainer)}catch(c){H.debug("get mouse over word fail",c)}let l=r.getBoundingClientRect();if(!(l.left>e||l.rightt||l.bottomn[s]=[s,...n[s]||[]]);let a=t.inputStartingTriggerKeyAlias[t.inputStartingTriggerKey]||[];a.includes(t.inputStartingTriggerKey)||a.unshift(t.inputStartingTriggerKey),n[t.inputTargetLanguage]=[...a,...n[t.inputTargetLanguage]];let r=t.inputTrailingTriggerKeyTimeout;fa().any&&(r=t.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:t.inputTrailingTriggerKeyRepeatTimes,triggerKey:t.inputTrailingTriggerKey,triggerTimeout:r,codePrefix:t.inputStartingTriggerKey,codeAlias:n,flatAlias:Object.values(n).flat(),codePrefixAlias:t.inputStartingTriggerKeyAlias},o=0,i=Date.now();Ci&&self.removeEventListener("keydown",Ci),Ci=l,self.addEventListener("keydown",Ci);function l(s){if(Tr||wi===!1)return;let m=s,p=m.target||m.srcElement,f=p?.tagName;(p?.isContentEditable||f=="INPUT"||f=="SELECT"||f=="TEXTAREA")&&(Ay(s,u.triggerKey,u.codePrefixAlias)?c(s):o=0)}async function c(s){Date.now()-i=u.triggerTimes&&my()&&(o=0,dy(s,e,u))}ky(e)}function sy({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let a=[],r=n[e]||[];r.includes(e)||r.unshift(e);for(let u of r){let o=t.map(i=>{let l=u+i;return r.includes(i)||(l+=" "),l});a.push(...o)}return new RegExp(a.join("|"))}function Up(e,t){for(let[n,a]of Object.entries(t))if(a.includes(e))return n;return""}var Cr;function ly(e){let t=e.parentElement;if(!t)return;Cr=document.createElement("div"),Cr.className=Q+"-input",Cr.innerHTML=`
`,t.appendChild(Cr);let n=t,a=!1;do{let r=getComputedStyle(n).position;if(["fixed","absolute","relative"].includes(r)){a=!0;break}n=n.parentElement}while(n);if(n=t,!a)do{if(getComputedStyle(n).position==="static"){n.style.position="relative";break}n=n?.parentElement||null}while(n)}function cy(){Cr&&Cr.remove()}async function dy(e,t,n){if(!Tr)try{let p=function(){i=t.config.inputTargetLanguage;let d=o.split(" ")[0];d&&d[0]&&(d=d[0].toLowerCase()+d.slice(1)),d.trim()&&n.flatAlias.includes(d)?(i=Up(d,n.codeAlias),u=o.slice(d.length+1)):u=o},f=function(){i="";let d=sy(n),b=o.split(d);if(b.length<2)return;if(u=b[b.length-1],r=b[0],b.length>2){let h=o.lastIndexOf(u),A=o.slice(0,h).lastIndexOf(b[b.length-2]);r=o.slice(0,A+b[b.length-2].length)}if(r.endsWith(n.codePrefix))return;let C=o.slice(r.length+1,o.indexOf(u)).trim();if(i=Up(C,n.codeAlias),!i){H.warn("not found alias",C);return}},a=document.activeElement;Tr=!0;let r="",u="",o=wr(a)||"",i=t.config.inputTargetLanguage;n.codePrefix==="none"?p():(f(),!i&&t.config.enableInputTranslationWithoutTriggerKey&&p());let l=py(u,n),c=await Je({text:l,pageLangs:["en"]});H.debug("translateContent",l,c);let s={text:l||"",id:0,from:c,to:i,url:"https://google.com",fromByClient:c};if(!s.text)return;if(t.config.isShowInputTranslationConsent&&!jp){jp=!0;let d=await Sy(t);if(e.target&&e.target.focus(),d==="open_settings"){xr(!0,"#input");return}else if(d==="open_learn_more"){li("https://immersivetranslate.com/docs/input/");return}else if(d==="disable_once"||d==="disable_forever"){if(wi=!1,d==="disable_forever"){let b=await sn();b.enableInputTranslation=!1,b.isShowInputTranslationConsent=!1,await on(b)}else if(d==="disable_once"){let b=await sn();b.isShowInputTranslationConsent=!1,await on(b)}return}else if(d==="close_disable_once"||d==="close_disable_forever"){if(wi=!1,d==="close_disable_forever"){let b=await sn();b.enableInputTranslation=!1,b.isShowInputTranslationConsent=!1,await on(b)}return}else if(d==="enable"){let b=await sn();b.enableInputTranslation=!0,b.isShowInputTranslationConsent=!1,await on(b)}else if(d==="close_enable"){let b=await sn();b.enableInputTranslation=!0,await on(b)}}ly(a),ze(Zi,Date.now());let m=await ka(s,{...t,translationService:t.inputTranslationService});vy(t),wy(a,r+m.text),Tr=!1}catch(a){throw Tr=!1,a}finally{Tr=!1,cy()}}function my(){let e=document.activeElement;if(!e)return!1;if(vi(e)){let t=e.selectionStart||0,n=e.value.length,r=e.value.split(` +`).reverse()[0].trim(),u=n<=t;return H.debug("cursorPosition",t,"textLength",n),H.debug("input isTail",u,"tailHasText",r),u&&!!r}else{let t=window.getSelection();if(!t)return H.debug("No active selection found."),!1;if(t.rangeCount>0){let n=t.getRangeAt(0),a=n.startContainer;if(a.nodeType===Node.TEXT_NODE){let r=gy(a,e);H.debug("Current text node:",a.textContent),H.debug("Cursor position within text node:",n.startOffset);let u=a.textContent?.length===n.startOffset&&r,o=a.textContent?.trim();return H.debug("editdiv isTail",u,"tailHasText",o),u&&!!o}else H.debug("Cursor is not within a text node.")}}return!1}function gy(e,t){let n;function a(r){if(r.nodeType===Node.TEXT_NODE)n=r;else for(let u of r.childNodes)a(u)}return a(t),n==e}function py(e,t){let{triggerTimes:n,triggerKey:a}=t,r=0,u=" ";a.length==1?(r=n,u=a):a.toLowerCase()=="space"&&(r=n);let o=e.length;for(let i=e.length-1;i>=e.length-r;i--){if([10,8629].includes(e[i].charCodeAt(0))){o--;continue}if(![...t.codePrefixAlias[a]||[],u].includes(e[i]))break;o--}return e.length-o<3&&[".","\u3002"].includes(e[o-1])&&o--,e.slice(0,o)}function fy(e,t){let n=t.innerHTML,a=wr(t);return{html:n.replace(a,e),text:e}}function zp(e,t,n=!1){let a=wr(t);return n?a.trim().endsWith(e.text.trim()):a.trim()==e.text.trim()}function wr(e){return e.value||e.innerText||e.textContent}async function _a(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function hy(e,t,n){await _a(10);let a=new DataTransfer;e.forEach(r=>{r==="plain"&&a.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:a,bubbles:!0,cancelable:!0})),a.clearData(),await _a(10)}async function by(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await _a(10))}async function yy(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await _a(20),(t.value||t.value==="")&&(t.value=e.text)}async function xy(e,t){vi(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await _a(20))}var Ey=[hy.bind(null,["plain"])];function Ty(e){let t;vi(e)?t=new InputEvent("beforeinput",{bubbles:!0,cancelable:!0,inputType:"deleteContent"}):t=new KeyboardEvent("keydown",{bubbles:!0,cancelable:!0,keyCode:8,which:8,location:0,key:"Backspace"}),e.dispatchEvent(t)}function vi(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function Cy(e){if(vi(e))return;e.focus();let t=window.getSelection();if(!t)return;let n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}async function wy(e,t){await Cy(e),await _a(50);let n=fy(t,e);Ty(e),H.debug("clearContent",wr(e)),await _a(50);for(let a of[...Ey,yy,xy,by])if(await a(n,e),H.debug("setContent",a.name,zp(n,e),wr(e),n),zp(n,e))break}function vy(e){Ye("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage}}],e)}function Ay(e,t,n){let a="";e&&e.code&&(a=e.code.toLowerCase());let r="";e&&e.key&&(r=e.key.toLowerCase());let u=e.keyCode,o=n[t]||[];return u===229&&t!=="space"?!1:!!(o.includes(a)||o.includes(r)||a===t||r===t)}async function ky(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await Dt(t,"")||Number(await Dt(Zi,0))>0)return;let r=e.rule.inputTutorialsSelectors,u=e.rule.inputTutorialsText;if((r?.length||0)>0&&u)for(let o=0;o{Ly()},100),new Promise(c=>{let s=c;if(u){let T=u.querySelector(`.${n}`),k=u.querySelector(`.${r}`),v=u.querySelector(`.${a}`)}else{u=document.createElement("div"),u.className=t+" notranslate",u.id=t;let T=document.createElement("div");T.className=Q+"-modal-content notranslate",u.appendChild(T);let k=document.createElement("span");k.textContent="\xD7",k.className=Q+"-close",T.appendChild(k),o=document.createElement("div"),o.className=n+" notranslate",T.appendChild(o),l=document.createElement("div"),l.className=a+" notranslate",T.appendChild(l),i=document.createElement("div"),i.className=r,T.appendChild(i),document.body.appendChild(u),k.onclick=function(){S(),c("close")},window.onclick=function(v){v.target==u&&(u.style.display="none",c("close"))}}document.addEventListener("keydown",y);let m=Dy.bind(null,e);o.innerHTML=`
${Qo} ${m("modalEnableInputTranslationTitle")}
`,l.innerHTML="";let p=document.createElement("p");p.innerHTML=m("modalEnableInputTranslationDesc",{1:"https://immersivetranslate.com/docs/input/"}),p.style.cssText="margin-bottom:12px",l.appendChild(p);let f=document.createElement("div");f.style.cssText="margin-bottom: 12px;",f.innerHTML=Re.sanitize(m("disableInputTranslationTips",{option:`${m("option")}`,learnMore:`${m("learnMore")}`})),l.appendChild(f);let d=[{id:"enable-search-enhancement",value:"enable",text:m("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:m("disableOnce")},{id:"disable-global",value:"global",text:m("disableGlobal")}];for(let T=0;T{sa({sentences:r},{...e,translationService:"google"},(l,c,s)=>{if(l)return o([]);let m=c?.id||0,p=n[m];p&&p.className==Q+"-search-title-wrapper"&&(p.innerHTML+=Re.sanitize(`
${c?.text}
`,{ADD_ATTR:["target"]}))})})}function Ai(e,t,n){t&&Ye(t.key,[{name:t.key}],{...e,sourceLanguage:t.sourceLanguage||n})}function Xl(e,t,n,a){let r=n.querySelectorAll('[translate="true"]');return Py(e,t,[...r],a),n}async function ec(e,t){let a=(await se({url:My(e),method:"GET",responseType:"raw",headers:{"cache-control":"no-cache","content-type":"application/xml","Sec-Fetch-Site":"none",accept:"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}})).body,u=new DOMParser().parseFromString(a,"text/xml"),o=[],i=u.querySelectorAll("item");for(let l=0;l${e.cancelDescription}
`:""}

\u82F1\u6587\u641C\u7D22 - ${n} \u7684\u76F8\u5173\u65B0\u95FB:
+ ${n} \u7684\u76F8\u5173\u65B0\u95FB:

${o}
`.replaceAll(` -`,""),{ADD_ATTR:["target"]});let c=r.querySelector(`.${Q}-search-more`);return c&&(c.onclick=()=>{let s=r.querySelector(`.${Q}-expand-items`);s.style.display=="none"?(s.style.display="block",c.innerText="\u66F4\u591A\u76F8\u5173\u65B0\u95FB"):window.open(Hp(n))}),r}function qp(e,t){let n=e.style;return t.map((a,r)=>{let u=a.title||"",o=a.source||"",i=u.split("-");return i.length>1&&(o=i[i.length-1].trim(),i=i.slice(0,i.length-1)),u=i.join("-"),u=u.trim(),`
${o}
+`,""),{ADD_ATTR:["target"]});let c=r.querySelector(`.${Q}-search-more`);return c&&(c.onclick=()=>{let s=r.querySelector(`.${Q}-expand-items`);s.style.display=="none"?(s.style.display="block",c.innerText="\u66F4\u591A\u76F8\u5173\u65B0\u95FB"):window.open(qp(n))}),r}function Wp(e,t){let n=e.style;return t.map((a,r)=>{let u=a.title||"",o=a.source||"",i=u.split("-");return i.length>1&&(o=i[i.length-1].trim(),i=i.slice(0,i.length-1)),u=i.join("-"),u=u.trim(),`
${o}
-
${jg(a.pubDate||"")}
+
${Ug(a.pubDate||"")}
`}).join(` -`)}function $p(e,t){if(!e.keyword)return;let n=e.keyword.value||"";for(let a=0;anew RegExp(a.urlMatch).test(t))}async function Gp(e){if(fa().any)return;if(!e.rule.enableSearchEnhancement){H.debug("enable is false");return}let t=Fy(e.rule.searchEnhancementConfig||[],e.url);if(!t){H.debug("not found siteConfig",e.url);return}let n=$p(t,e.url);if(!n){H.debug("not found keyword",e.url);return}t.id=="google"?By(e,t,n):_y(e,t,n)}async function _y(e,t,n){let a=await Je({text:document.title,pageLangs:[pt(),"en"]});t.selector&&setTimeout(async()=>{let r=document.querySelector(t.selector);if(!r){H.debug("selector node not found",t.selector);return}let u=await ec(n,t.showCount);if(u&&u.length<=0){H.debug("list not found");return}let o=await tc(t,u,n,t.showCount);if(!o){H.debug("getInseredNode none");return}o.style.cssText=t.style.container||"";let i=t.selectorAction||"appendChild";i=="insertBefore"?r.parentElement?.insertBefore(o,r):i=="appendChild"?r.appendChild(o):i=="replace"&&r?.replaceWith(o),Xl(e,t,o,a),Ai(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a)},t.delayTime||0)}async function By(e,t,n){let a=await Je({text:n,pageLangs:["en"]});if(Ai(e,{key:"detect_search_action"},a),!["zh-CN","zh-TW"].includes(a))return;H.debug("use dual search");let r=!1;if(new URL(e.url).searchParams.get("tbm")==="nws")r=!0;else if(!Kp(document.body))return;let o=document.querySelector("#rhs");if(!o){let i=document.querySelector("#rcnt");if(!i)return;let l=i.children;if(l&&l.length>1)o=l[1];else{let c=l[0];o=document.createElement("div"),o.id="rhs",o.style.maxWidth="372px",o.style.marginLeft="50px",i.insertBefore(o,c.nextSibling)}}if(r||Kp(document.body)){H.debug("find story");let i=await Wp(e,n,a);H.debug("enKeyword",i);let l=await ec(i,t.showCount);if(H.debug("news list",l),l&&l.length<=0)return;let c=await tc(t,l,i,t.showCount);if(!c)return;Ai(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a),Xl(e,t,c,a),o.insertBefore(c,o?.firstChild)}}function Kp(e){let t=e.querySelectorAll("[aria-level='2'][role=heading]");if(!t)return!1;for(let n of t){let a=(n?.textContent||"").trim();if(a.indexOf("\u7126\u70B9\u65B0\u95FB")>=0||a.indexOf("\u7126\u9EDE\u65B0\u805E")>=0||a.indexOf("Top stories")>=0)return!0}return!1}m();function Vp(e){e.state.translationMode="translation",dr(e)}var ve=null,ki={},vr,Yp=!1;async function bi(e){if($e()==="Original"){let t={translationMode:void 0};vr&&(t.translationTheme=vr),ve&&(t={...ve.state,...t}),await Ft(gt(),t),await ln(ve,e)}else($e()==="Translated"||$e()==="Error")&&_a()}async function yi(){if(ve=await Ft(gt(),{}),ve.rule.isEbookBuilder)return Lp(ve);if(ve.rule.isSubtitleBuilder)return Sp(ve);i3()}async function xi(e){if($e()==="Original")ve=await Ft(gt(),{}),vr||(vr=ve.state.translationTheme),ve=await Ft(gt(),{translationTheme:"mask"}),await ln(ve,e);else if($e()==="Translated"){let t=Og().filter(r=>r.contentDocument?.body).map(r=>r.contentDocument.body),n=[ve.mainFrame,...t],a=ve?.state.translationTheme;for(let r of n){let u=Qa(r,Ha,!0);a==="mask"?u!=="none"?nt(r,Ha,"none",!0):nt(r,Ha,"mask",!0):u!=="mask"?nt(r,Ha,"mask",!0):nt(r,Ha,"none",!0)}}}async function nc(){let e=await Ft(gt(),{});return e.rule.isSubtitleBuilder?ql():o3(e)}function Ry(e){$e()==="Original"?Vp(e):zn()}function Oy(e){$e()==="Original"?kp(e):Wl()}function Iy(e){$e()==="Original"?dr(e):zn()}async function _a(){rc("");let e=await Ft(gt(),{});if(e.rule.isSubtitleBuilder){Wl();return}else e.rule.isEbookBuilder&&Pp();zn()}async function ln(e,t){$e()!=="Original"&&await _a(),document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"translateStart",payload:{}})})),document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"targetLanguage",payload:{targetLanguage:e.targetLanguage}})})),ki[e.translationService]||(ki[e.translationService]=!0,tt()||L0(e).catch(a=>{H.warn("init translation engine error",a)}));let n={};if(t&&t.trigger&&(n.trigger=t.trigger),Ye("translage_page_daily",[{name:"translage_page_daily",params:n}],e),Ye("translate_page",[{name:"translate_page",params:n}],{...e,sourceLanguage:pt()}),e.rule.isSubtitleBuilder)return Oy(e);if(e.rule.isEbookBuilder)return Mp(e);if(e.rule.isPdf)return Ry(e);Iy(e),rc("yes")}async function Jp(e){$e()==="Original"?await Si(e):($e()==="Translated"||$e()==="Error")&&(ve=await Ft(gt(),{}),ve.state.translationArea!=="main"?await Si(e):_a())}async function Si(e){ve=await Ft(gt(),{translationArea:"main"}),await ln(ve,e)}async function ac(e){ve=await Ft(gt(),{translationArea:"body"}),await ln(ve,e)}async function Ei(e){if($e()==="Original"){let t=await Ft(gt(),{translationMode:"translation"});await ln(t,e)}else($e()==="Translated"||$e()==="Error")&&await _a()}async function Qp(e){if(ve=await Ft(gt(),{translationMode:void 0}),Ye("switch_translation_mode",[{name:"switch_translation_mode",params:{mode:e}}],{...ve,sourceLanguage:"unknown"}),$e()==="Original"){ln(ve);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(e)}async function Zp(e){if($e()==="Original")await ac(e);else if($e()==="Translated"||$e()==="Error"){let t={};ve&&ve.state&&(t=ve.state),ve=await Ft(gt(),t),ve.state.translationArea!=="body"?(ve.state.translationArea="body",ve=await Ft(gt(),ve.state),await ln(ve,e)):_a()}}async function Xp(e){ve=await Ft(gt(),{translationStartMode:"immediate"}),await ln(ve,e)}async function xp(){let e=await Ft(gt(),{});if(H.debug("init page ctx",e),e.rule.isSubtitleBuilder){ql();return}if(e.rule.isEbookBuilder){Dp();return}if(Gp(e),vr||(vr=e.state.translationTheme),e.rule.urlChangeDelay&&await Ir(e.rule.urlChangeDelay),e.rule.waitForSelectors&&e.rule.waitForSelectors.length>0&&await Ny(e.rule.waitForSelectors,e.rule.waitForSelectorsTimeout),e.rule.isInjectOptionsUrl){let a=tf(),r=document.createElement("meta");r.name="immersive-translate-options-url",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(u){H.warn("inject options url failed",u)}}if(e.rule.isInjectVersion){let a=tn(),r=document.createElement("meta");r.name="immersive-translate-version",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(u){H.warn("inject version failed",u)}}if(e.rule.globalMeta&&Object.keys(e.rule.globalMeta).forEach(r=>{let u=document.createElement("meta");u.name=r,u.content=e.rule.globalMeta[r],document.head.appendChild(u)}),e.rule.initialGlobalAttributes&&Hg(document.body,e.rule.initialGlobalAttributes),e.rule.isPdf){ln(e);return}if(e.rule.isOnBoardingPage){document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"currentConfig",payload:{enableDefaultAlwaysTranslatedUrls:!!e.config.enableDefaultAlwaysTranslatedUrls}})}));let a=document.querySelector("#immersiveTranslateEnableDefaultAlwaysTranslatedUrlsValue");a&&(a.value="helloworld",a.value=String(!!e.config.enableDefaultAlwaysTranslatedUrls),a.dispatchEvent(new Event("change")))}Yp||(Yp=!0,globalThis.top!==globalThis.self&&e.rule.useIframePostMessage&&await Bm());let t=e.sourceLanguage;if(t==="auto"?t=await nc():an(t),e.rule.isInjectMeta)try{let a=await Ug(t),r=document.createElement("meta");r.name="immersive-translate-meta",r.content=cs(JSON.stringify(a)),document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(a){H.warn("inject meta failed",a)}let n=e.state.isAutoTranslate||e.isTranslateUrl||e.rule.isPdf;if(!n&&!e.isTranslateExcludeUrl&&(H.debug(`detect page language: ${e.url} ${t}`),ra(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto"||Rm(t,e.config.translationLanguagePattern)&&(n=!0,H.debug(`match language pattern ${t}, auto translate`))),e.rule.isEbookBuilder&&(n=!1),!e.rule.isPdf&&Dr()&&Ti(e,window),n)ve.state.isAutoTranslate=!0,ln(ve);else if(H.debug("do not auto translate",e),e.rule.initTranslationServiceAsSoonAsPossible&&e.translationService==="deepl"){if(ra(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto")return;e.config&&e.config.translationServices&&e.config.translationServices.deepl&&e.config.translationServices.deepl.authKey&&typeof e.config.translationServices.deepl.authKey=="string"&&e.config.translationServices.deepl.authKey.startsWith("immersive_")&&(ki[e.translationService]||(ki[e.translationService]=!0,tt()||L0(e).catch(a=>{H.warn("init translation engine error",a)})))}}async function Ft(e,t){let n=Object.keys(t);if(ve){let a={url:e,config:ve.config,state:{...ve.state,...t}};ve=await jn(a)}else{let a=await Tn(),r=t;n.length===0&&(r=void 0),ve=await jn({url:e,config:a,state:r})}return ve}async function ef(){let e=await Tn(),t;ve&&ve.state&&(t=ve.state);let n={url:gt(),config:e,state:t},a=await jn(n);ve=a;let r=Ko(),u=[];return r?u=r.allInlineWindows||[window]:u=[window],u.forEach(o=>{hp(a,o),Dr()&&Ti(a,o),zp(a)}),a}function Ny(e,t=3e3){return new Promise((n,a)=>{let r=t?setTimeout(()=>{n(new Error("timeout"))},t):void 0,u=setInterval(()=>{e.every(i=>document.querySelector(i)!==null)&&(clearInterval(u),r&&clearTimeout(r),n(null))},50)})}async function Ep(e){let t=e.detail;Nt.set(Qt,t);let n=await Nt.get(ns,!1);Nt.set(ns,!1),document.dispatchEvent(new CustomEvent("immersiveTranslateDocumentMessageUserResult",{detail:n?"close":"success"}))}function Tp(e){H.debug("update user info",e);let t=e.detail;Nt.set(Qt,t)}async function Cp(e){let t=await sn();if(t.translationService)return;let n=e.config.translationService,a=["bing","transmart","google"];a.sort((u,o)=>u===n?-1:o===n?1:0);let r=await Mg(a,e);if(!r){Vr("no_avaliable_translation_service",[{name:"no_avaliable_translation_service"}]);return}e.translationService!==r&&(t.translationService=r,on(t),e.translationService=r,Vr("change_default_translation_service",[{name:"change_default_translation_service",params:{translation_service:r}}]))}var pr=async function(e,t){let{method:n,data:a}=e,r=await ef(),u=Date.now();if(H.debug(`content script received message: ${n}`,a||" "),n==="translateTheWholePage")await ac(a),ze(dn,u);else if(n==="translateTheMainPage")await Si(a),ze(dn,u);else if(n==="translateToThePageEndImmediately")await Xp(a),ze(dn,u);else if(n==="toggleTranslatePage")await bi(a),ze(dn,u);else if(n==="toggleTranslateTheWholePage")await Zp(a),ze(dn,u);else if(n==="toggleTranslateTheMainPage")await Jp(a),ze(dn,u);else if(n==="toggleOnlyTransation")await Ei(a),ze(dn,u);else if(n==="translatePage")await ln(r,a),ze(dn,u);else if(n==="toggleTranslationMask")await xi(a);else if(n==="restorePage")_a();else if(n==="setCurrentPageLanguageByClient")an(a);else if(n==="retryFailedParagraphs")yi();else if(n==="switchTranslationMode"){if(r.rule.isPdf)return;a&&a.mode&&Qp(a.mode)}},jy=function(e,t){let{method:n,data:a}=e;if(H.debug(`content script received sync message: ${n}`,a||" "),n==="ping")return"pong";if(n==="getPageStatus")return $e();if(n==="getCurrentPageLanguage"){let r=pt();return nc().catch(u=>{H.warn("detectCurrentPageLanguage failed",u)}),r}},Di,Li;function wp(){let e=Pi();tt()||Uy(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function Pi(){return Di||(Di=new kn("content_script",!1).getConnection("main",pr),Di)}function Uy(){return Li||(Li=new kn("content_script",!1).getConnection("main_sync",jy,{sync:!0}),Li)}async function Ge(e){return await Pi().sendMessage("background:main",e)}function se(e){return Ou()?fo({method:"request",data:e}):he()||Ru()?(e.fetchPolyfill=globalThis.GM_fetch,Nn(e)):Ge({method:"fetch",data:e})}function Tn(){return he()?hn():Ge({method:"getConfig"})}function on(e){return he()?js(e):Ge({method:"setUserConfig",data:e})}function sn(){return he()?Ns():Ge({method:"getUserConfig"})}function ip(){return he()?ta():Ge({method:"getLocalConfig"})}function ii(e){return he()?nn(e):Ge({method:"setLocalConfig",data:e})}function Q3(e){return he()?Eo(e):Ge({method:"setBuildinConfig",data:e})}async function Je(e){if(e.text){let n=Ao(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(he()||At()){let n=ym(e.text,e.minLength,e.pageLangs);return Promise.resolve(n)}let t=await Ge({method:"detectLanguage",data:e});return Promise.resolve(t)}function s3(){return Ge({method:"detectTabLanguage"})}function t3(e){if(he()){let n=new CustomEvent(Hu,{detail:e});document.dispatchEvent(n);return}Pi().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(n=>{})}function Fg(e){return he()?km(e):Ge({method:"queryParagraphCache",data:e})}async function _g(e){if(he()){await Am(e);return}return Ge({method:"setParagraphCache",data:e})}async function Vm(){if(he())return Promise.resolve();await Ge({method:"mockRequest"})}function xr(e=!1,t=""){return he()?(ee.runtime.openOptionsPage(e,t),Promise.resolve()):Ge({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function tf(e=""){return he()||At()?Be().OPTIONS_URL:ee.runtime.getURL("options.html")}function uc(e=""){return ee&&ee.runtime&&ee.runtime.getURL?ee.runtime.getURL("options.html"):""}function si(e=!1){return he()?(ee.extra.openAboutPage(e),Promise.resolve()):Ge({method:"openAboutPage"})}function vp(e=!1){return he()?(ee.extra.openSearchEnhancement(e),Promise.resolve()):Ge({method:"openSearchEnhancement"})}function li(e){return he()?(ee.extra.openInTab(e),Promise.resolve()):Ge({method:"openInTab",data:e})}function ci(e=!1){return he()?(ee.extra.openEbookViewerPage(e),Promise.resolve()):Ge({method:"openEbookViewerPage"})}function Z3(e=!1){return he()?Promise.resolve():Ge({method:"openHtmlViewerPage"})}function di(e=!1){return he()?(ee.extra.openEbookBuilderPage(e),Promise.resolve()):Ge({method:"openEbookBuilderPage"})}function Ap(e){At()}function Pl(e=!1){return he()?(ee.extra.openPdfViewerPage(e),Promise.resolve()):Ge({method:"openPdfViewerPage"})}function X3(e=!1){return he()?(ee.extra.openSubtitleBuilderPage(e),Promise.resolve()):Ge({method:"openSubtitleBuilderPage"})}function rc(e){return he()?Promise.resolve():Ge({method:"setBadge",data:{text:e}})}function h3(){return he()?(H.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):Ge({method:"autoSyncLatestConfig"})}function nf(e){let t;try{t=new URL(e)}catch{return!1}let n=uc(),a="";try{a=new URL(n).hostname}catch{}return!!(a&&t.hostname===a)}function Zo(e){let t;try{t=new URL(e)}catch{return!1}let n=uc(),a="";try{a=new URL(n).hostname}catch{}return a&&t.hostname===a?!0:!(oc(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function oc(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}m();var zy=function(e,t){let{method:n,data:a}=e;H.debug(`popup received message: ${n}`,a||" ");let r;t.active&&(r=t.id,globalThis.document.dispatchEvent(new CustomEvent(Pr,{detail:{tabId:r,payload:e}})))},Mi;function af(){xu()}function xu(){return Mi||(Mi=new kn("popup",!1).getConnection("main_sync",zy),Mi)}var Ba={},ic={};function Fi(e,t){if(ic[e])try{t()}catch(n){H.error("run callback failed",n)}else Ba[e]||(Ba[e]=[]),Ba[e].push(t)}function rf(e){if(Ba[e]&&Ba[e].length){let t=[...Ba[e]];Ba[e]=[],t.forEach(n=>n())}}function sc(){let[e,t]=Te("Original"),{t:n}=wt(),[a,r,u,o]=hr(()=>{setTimeout(()=>{T("updateGlobalContext",!1)()},250)});oi(a,r);let[i,l]=Te(null),[c,s]=Te(null),[g,p]=Te(null),[f,d]=Te("auto"),[b,C]=Te(null),[{errorMsg:h,disableButton:A,noPermissionPDF:S},U]=Te({errorMsg:"",disableButton:!1,noPermissionPDF:!1}),O=M=>{let{tabId:q,payload:j}=M.detail,{method:$,data:z}=j;H.debug("popup received message",$,z||" "),$==="setPageStatus"?q&&t(z):$==="ready"&&q&&(U({disableButton:!1,errorMsg:"",noPermissionPDF:!1}),ic[q]=!0,rf(q))},y=()=>{r(M=>({...M,enabled:!M.enabled})),setTimeout(()=>{w()},50)};Ne(()=>{let M=xu();return ee.tabs.query({currentWindow:!0,active:!0}).then(q=>{let j=q[0].id;p(j);let $=q[0].url;ee.tabs.onUpdated.addListener((z,ae,J)=>{z===z&&J.url&&c&&J.url!==c&&(s(J.url),window.location.reload())}),globalThis.document.addEventListener(Pr,O),$&&s($),$&&Zo($)?(s($),M.sendMessage(`content_script:main_sync:${j}`,{method:"ping"}).then(z=>{U({disableButton:!1,errorMsg:"",noPermissionPDF:!1}),ic[j]=!0,rf(j)}).catch(z=>{nf($)||U({disableButton:!0,errorMsg:n("reloadCurrentPage"),noPermissionPDF:!1}),H.debug("ping failed, but it is ok. cause maybe content is not injected",z)}),Fi(j,async()=>{let z=await M.sendMessage(`content_script:main_sync:${j}`,{method:"getPageStatus"});t(z)}),Fi(j,async()=>{let z=await hn();l(z)}),Fi(j,async()=>{let z=await M.sendMessage(`content_script:main_sync:${j}`,{method:"getCurrentPageLanguage"});d(z),z==="auto"&&setTimeout(async()=>{let ae=await M.sendMessage(`content_script:main_sync:${j}`,{method:"getCurrentPageLanguage"});d(ae)},500)})):oc($||"")?qy($||"")&&Hy($||"").then(z=>{z||U({disableButton:!1,noPermissionPDF:!0,errorMsg:n("noLocalFilePermissionForPDF")})}):U({disableButton:!0,errorMsg:n("noPermissionForThisPage"),noPermissionPDF:!1}),$===""&&s("about:newtab")}).catch(q=>{}),()=>{globalThis.document.removeEventListener(Pr,O)}},[]),Ne(()=>{hn().then(M=>{l(M)})},[a]),Ne(()=>{c&&i&&jn({url:c,config:i}).then(M=>{C(M)})},[c,i]);let T=(M,q=!0,j={})=>async()=>{let $=xu(),ae=(await ee.tabs.query({currentWindow:!0,active:!0}))[0].id,J={trigger:"popup",...j};$.sendMessage(`content_script:main:${ae}`,{method:M,data:J}),q&&setTimeout(()=>{globalThis.close()},10)},k=()=>{let M=N4();ee.tabs.create({url:M}),globalThis.close()},v=()=>{let M=ee.runtime.getURL(g4);ee.tabs.create({url:M}),globalThis.close()},E=()=>{let q=Be().SUBTITLE_BUILDER_URL;ee.tabs.create({url:q}),globalThis.close()},R=()=>{c&&(ee.tabs.create({url:I4(c)}),globalThis.close())},F=M=>{let q=xu();if(d(M),g&&c){let j=Bu(c,M,i.sourceLanguageUrlPattern);r($=>({...$,sourceLanguageUrlPattern:j})),Fi(g,()=>{q.sendMessage(`content_script:main:${g}`,{method:"setCurrentPageLanguageByClient",data:M})})}},w=()=>{globalThis.close()},B=(M="")=>{if(At()){let j=Be().OPTIONS_URL;ee.tabs.create({url:j+M})}else{let q=ee.runtime.getURL("options.html");ee.tabs.create({url:q+M})}setTimeout(()=>{globalThis.close()},50)},I=()=>{if(At()){let q=Be().OPTIONS_URL;ee.tabs.create({url:q+"#about"})}else ee.tabs.create({url:ee.runtime.getURL("options.html#about")});setTimeout(()=>{globalThis.close()},50)},N=()=>{let M=Yu;ee.tabs.create({url:M}),setTimeout(()=>{globalThis.close()},50)},P=()=>{let q=Be().EBOOK_BUILDER_URL;ee.tabs.create({url:q}),setTimeout(()=>{globalThis.close()},50)},x=()=>{let q=Be().EBOOK_VIEWER_URL;ee.tabs.create({url:q}),setTimeout(()=>{globalThis.close()},50)},D=M=>{r(q=>({...q,generalRule:{...q.generalRule,mouseHoverHoldKey:M}}))};return!i||!b?null:V(fu,{onClose:w,onToggleTranslate:T("toggleTranslatePage"),openEbookBuilderPage:P,openEbookViewerPage:x,openPricingPage:N,onTranslateLocalSubtitleFile:E,onTranslateLocalHtmlFile:v,onToggleEnabled:y,openOptionsPage:B,openAboutPage:I,onTranslatePdf:R,onTranslateLocalPdfFile:k,onTranslateTheMainPage:T("translateTheMainPage"),onTranslateTheWholePage:T("translateTheWholePage"),ontranslateToThePageEndImmediately:T("translateToThePageEndImmediately"),onSwitchTranslationMode:M=>{T("switchTranslationMode",!0,{mode:M})()},onTranslatePage:T("translatePage"),onRestorePage:T("restorePage",!1),onSetPageLanguage:F,onUserConfigChange:M=>{r(M)},config:i,pageStatus:e,ctx:b,currentUrl:c,currentLang:f,onSetLocalConfig:nn,onSetBuildinConfig:Eo,request:Nn,onMouseTriggerChanged:D,errorMsg:h,disabledButton:A,noPermissionPDF:S})}async function Hy(e){try{let t=new URL(e),n=await fetch(t.href);return!0}catch{return!1}}function qy(e){try{return new URL(e).protocol==="file:"}catch{return!1}}var uf=document.getElementById("mount");af();uf&&(async()=>{let e=await hn();e.debug&&H.setLevel("debug"),pa(V(Yo,{lang:e.interfaceLanguage,translations:Go,fallbackLang:"zh-CN",children:V(sc,{})}),uf)})();})(); +`)}function Kp(e,t){if(!e.keyword)return;let n=e.keyword.value||"";for(let a=0;anew RegExp(a.urlMatch).test(t))}async function Vp(e){if(fa().any)return;if(!e.rule.enableSearchEnhancement){H.debug("enable is false");return}let t=Fy(e.rule.searchEnhancementConfig||[],e.url);if(!t){H.debug("not found siteConfig",e.url);return}let n=Kp(t,e.url);if(!n){H.debug("not found keyword",e.url);return}t.id=="google"?By(e,t,n):_y(e,t,n)}async function _y(e,t,n){let a=await Je({text:document.title,pageLangs:[pt(),"en"]});t.selector&&setTimeout(async()=>{let r=document.querySelector(t.selector);if(!r){H.debug("selector node not found",t.selector);return}let u=await ec(n,t.showCount);if(u&&u.length<=0){H.debug("list not found");return}let o=await tc(t,u,n,t.showCount);if(!o){H.debug("getInseredNode none");return}o.style.cssText=t.style.container||"";let i=t.selectorAction||"appendChild";i=="insertBefore"?r.parentElement?.insertBefore(o,r):i=="appendChild"?r.appendChild(o):i=="replace"&&r?.replaceWith(o),Xl(e,t,o,a),Ai(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a)},t.delayTime||0)}async function By(e,t,n){let a=await Je({text:n,pageLangs:["en"]});if(Ai(e,{key:"detect_search_action"},a),!["zh-CN","zh-TW"].includes(a))return;H.debug("use dual search");let r=!1;if(new URL(e.url).searchParams.get("tbm")==="nws")r=!0;else if(!Gp(document.body))return;let o=document.querySelector("#rhs");if(!o){let i=document.querySelector("#rcnt");if(!i)return;let l=i.children;if(l&&l.length>1)o=l[1];else{let c=l[0];o=document.createElement("div"),o.id="rhs",o.style.maxWidth="372px",o.style.marginLeft="50px",i.insertBefore(o,c.nextSibling)}}if(r||Gp(document.body)){H.debug("find story");let i=await $p(e,n,a);H.debug("enKeyword",i);let l=await ec(i,t.showCount);if(H.debug("news list",l),l&&l.length<=0)return;let c=await tc(t,l,i,t.showCount);if(!c)return;Ai(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a),Xl(e,t,c,a),o.insertBefore(c,o?.firstChild)}}function Gp(e){let t=e.querySelectorAll("[aria-level='2'][role=heading]");if(!t)return!1;for(let n of t){let a=(n?.textContent||"").trim();if(a.indexOf("\u7126\u70B9\u65B0\u95FB")>=0||a.indexOf("\u7126\u9EDE\u65B0\u805E")>=0||a.indexOf("Top stories")>=0)return!0}return!1}g();function Yp(e){e.state.translationMode="translation",dr(e)}var ve=null,ki={},vr,Jp=!1;async function bi(e){if($e()==="Original"){let t={translationMode:void 0};vr&&(t.translationTheme=vr),ve&&(t={...ve.state,...t}),await Ft(gt(),t),await ln(ve,e)}else($e()==="Translated"||$e()==="Error")&&Ba()}async function yi(){if(ve=await Ft(gt(),{}),ve.rule.isEbookBuilder)return Pp(ve);if(ve.rule.isSubtitleBuilder)return Dp(ve);s3()}async function xi(e){if($e()==="Original")ve=await Ft(gt(),{}),vr||(vr=ve.state.translationTheme),ve=await Ft(gt(),{translationTheme:"mask"}),await ln(ve,e);else if($e()==="Translated"){let t=Ig().filter(r=>r.contentDocument?.body).map(r=>r.contentDocument.body),n=[ve.mainFrame,...t],a=ve?.state.translationTheme;for(let r of n){let u=Qa(r,qa,!0);a==="mask"?u!=="none"?nt(r,qa,"none",!0):nt(r,qa,"mask",!0):u!=="mask"?nt(r,qa,"mask",!0):nt(r,qa,"none",!0)}}}async function nc(){let e=await Ft(gt(),{});return e.rule.isSubtitleBuilder?ql():i3(e)}function Ry(e){$e()==="Original"?Yp(e):zn()}function Oy(e){$e()==="Original"?Sp(e):Wl()}function Iy(e){$e()==="Original"?dr(e):zn()}async function Ba(){rc("");let e=await Ft(gt(),{});if(e.rule.isSubtitleBuilder){Wl();return}else e.rule.isEbookBuilder&&Mp();zn()}async function ln(e,t){$e()!=="Original"&&await Ba(),document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"translateStart",payload:{}})})),document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"targetLanguage",payload:{targetLanguage:e.targetLanguage}})})),ki[e.translationService]||(ki[e.translationService]=!0,tt()||L0(e).catch(a=>{H.warn("init translation engine error",a)}));let n={};if(t&&t.trigger&&(n.trigger=t.trigger),Ye("translage_page_daily",[{name:"translage_page_daily",params:n}],e),Ye("translate_page",[{name:"translate_page",params:n}],{...e,sourceLanguage:pt()}),e.rule.isSubtitleBuilder)return Oy(e);if(e.rule.isEbookBuilder)return Fp(e);if(e.rule.isPdf)return Ry(e);Iy(e),rc("yes")}async function Qp(e){$e()==="Original"?await Si(e):($e()==="Translated"||$e()==="Error")&&(ve=await Ft(gt(),{}),ve.state.translationArea!=="main"?await Si(e):Ba())}async function Si(e){ve=await Ft(gt(),{translationArea:"main"}),await ln(ve,e)}async function ac(e){ve=await Ft(gt(),{translationArea:"body"}),await ln(ve,e)}async function Ei(e){if($e()==="Original"){let t=await Ft(gt(),{translationMode:"translation"});await ln(t,e)}else($e()==="Translated"||$e()==="Error")&&await Ba()}async function Zp(e){if(ve=await Ft(gt(),{translationMode:void 0}),Ye("switch_translation_mode",[{name:"switch_translation_mode",params:{mode:e}}],{...ve,sourceLanguage:"unknown"}),$e()==="Original"){ln(ve);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(e)}async function Xp(e){if($e()==="Original")await ac(e);else if($e()==="Translated"||$e()==="Error"){let t={};ve&&ve.state&&(t=ve.state),ve=await Ft(gt(),t),ve.state.translationArea!=="body"?(ve.state.translationArea="body",ve=await Ft(gt(),ve.state),await ln(ve,e)):Ba()}}async function ef(e){ve=await Ft(gt(),{translationStartMode:"immediate"}),await ln(ve,e)}async function Ep(){let e=await Ft(gt(),{});if(H.debug("init page ctx",e),e.rule.isSubtitleBuilder){ql();return}if(e.rule.isEbookBuilder){Lp();return}if(Vp(e),vr||(vr=e.state.translationTheme),e.rule.urlChangeDelay&&await Ir(e.rule.urlChangeDelay),e.rule.waitForSelectors&&e.rule.waitForSelectors.length>0&&await Ny(e.rule.waitForSelectors,e.rule.waitForSelectorsTimeout),e.rule.isInjectOptionsUrl){let a=nf(),r=document.createElement("meta");r.name="immersive-translate-options-url",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(u){H.warn("inject options url failed",u)}}if(e.rule.isInjectVersion){let a=tn(),r=document.createElement("meta");r.name="immersive-translate-version",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(u){H.warn("inject version failed",u)}}if(e.rule.globalMeta&&Object.keys(e.rule.globalMeta).forEach(r=>{let u=document.createElement("meta");u.name=r,u.content=e.rule.globalMeta[r],document.head.appendChild(u)}),e.rule.initialGlobalAttributes&&qg(document.body,e.rule.initialGlobalAttributes),e.rule.isPdf){ln(e);return}if(e.rule.isOnBoardingPage){document.dispatchEvent(new CustomEvent(bt,{detail:JSON.stringify({type:"currentConfig",payload:{enableDefaultAlwaysTranslatedUrls:!!e.config.enableDefaultAlwaysTranslatedUrls}})}));let a=document.querySelector("#immersiveTranslateEnableDefaultAlwaysTranslatedUrlsValue");a&&(a.value="helloworld",a.value=String(!!e.config.enableDefaultAlwaysTranslatedUrls),a.dispatchEvent(new Event("change")))}Jp||(Jp=!0,globalThis.top!==globalThis.self&&e.rule.useIframePostMessage&&await Rm());let t=e.sourceLanguage;if(t==="auto"?t=await nc():an(t),e.rule.isInjectMeta)try{let a=await zg(t),r=document.createElement("meta");r.name="immersive-translate-meta",r.content=cs(JSON.stringify(a)),document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(a){H.warn("inject meta failed",a)}let n=e.state.isAutoTranslate||e.isTranslateUrl||e.rule.isPdf;if(!n&&!e.isTranslateExcludeUrl&&(H.debug(`detect page language: ${e.url} ${t}`),ra(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto"||Om(t,e.config.translationLanguagePattern)&&(n=!0,H.debug(`match language pattern ${t}, auto translate`))),e.rule.isEbookBuilder&&(n=!1),!e.rule.isPdf&&Dr()&&Ti(e,window),n)ve.state.isAutoTranslate=!0,ln(ve);else if(H.debug("do not auto translate",e),e.rule.initTranslationServiceAsSoonAsPossible&&e.translationService==="deepl"){if(ra(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto")return;e.config&&e.config.translationServices&&e.config.translationServices.deepl&&e.config.translationServices.deepl.authKey&&typeof e.config.translationServices.deepl.authKey=="string"&&e.config.translationServices.deepl.authKey.startsWith("immersive_")&&(ki[e.translationService]||(ki[e.translationService]=!0,tt()||L0(e).catch(a=>{H.warn("init translation engine error",a)})))}}async function Ft(e,t){let n=Object.keys(t);if(ve){let a={url:e,config:ve.config,state:{...ve.state,...t}};ve=await jn(a)}else{let a=await Tn(),r=t;n.length===0&&(r=void 0),ve=await jn({url:e,config:a,state:r})}return ve}async function tf(){let e=await Tn(),t;ve&&ve.state&&(t=ve.state);let n={url:gt(),config:e,state:t},a=await jn(n);ve=a;let r=Ko(),u=[];return r?u=r.allInlineWindows||[window]:u=[window],u.forEach(o=>{bp(a,o),Dr()&&Ti(a,o),Hp(a)}),a}function Ny(e,t=3e3){return new Promise((n,a)=>{let r=t?setTimeout(()=>{n(new Error("timeout"))},t):void 0,u=setInterval(()=>{e.every(i=>document.querySelector(i)!==null)&&(clearInterval(u),r&&clearTimeout(r),n(null))},50)})}async function Tp(e){let t=e.detail;jt.set(Nt,t);let n=await jt.get(ns,!1);jt.set(ns,!1),document.dispatchEvent(new CustomEvent("immersiveTranslateDocumentMessageUserResult",{detail:n?"close":"success"}))}function Cp(e){H.debug("update user info",e);let t=e.detail;jt.set(Nt,t)}async function wp(e){let t=await sn();if(t.translationService)return;let n=e.config.translationService,a=["bing","transmart","google"];a.sort((u,o)=>u===n?-1:o===n?1:0);let r=await Fg(a,e);if(!r){Vr("no_avaliable_translation_service",[{name:"no_avaliable_translation_service"}]);return}e.translationService!==r&&(t.translationService=r,on(t),e.translationService=r,Vr("change_default_translation_service",[{name:"change_default_translation_service",params:{translation_service:r}}]))}var pr=async function(e,t){let{method:n,data:a}=e,r=await tf(),u=Date.now();if(H.debug(`content script received message: ${n}`,a||" "),n==="translateTheWholePage")await ac(a),ze(dn,u);else if(n==="translateTheMainPage")await Si(a),ze(dn,u);else if(n==="translateToThePageEndImmediately")await ef(a),ze(dn,u);else if(n==="toggleTranslatePage")await bi(a),ze(dn,u);else if(n==="toggleTranslateTheWholePage")await Xp(a),ze(dn,u);else if(n==="toggleTranslateTheMainPage")await Qp(a),ze(dn,u);else if(n==="toggleOnlyTransation")await Ei(a),ze(dn,u);else if(n==="translatePage")await ln(r,a),ze(dn,u);else if(n==="toggleTranslationMask")await xi(a);else if(n==="restorePage")Ba();else if(n==="setCurrentPageLanguageByClient")an(a);else if(n==="retryFailedParagraphs")yi();else if(n==="switchTranslationMode"){if(r.rule.isPdf)return;a&&a.mode&&Zp(a.mode)}},jy=function(e,t){let{method:n,data:a}=e;if(H.debug(`content script received sync message: ${n}`,a||" "),n==="ping")return"pong";if(n==="getPageStatus")return $e();if(n==="getCurrentPageLanguage"){let r=pt();return nc().catch(u=>{H.warn("detectCurrentPageLanguage failed",u)}),r}},Di,Li;function vp(){let e=Pi();tt()||Uy(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function Pi(){return Di||(Di=new kn("content_script",!1).getConnection("main",pr),Di)}function Uy(){return Li||(Li=new kn("content_script",!1).getConnection("main_sync",jy,{sync:!0}),Li)}async function Ge(e){return await Pi().sendMessage("background:main",e)}function se(e){return Ru()?po({method:"request",data:e}):fe()||Bu()?(e.fetchPolyfill=globalThis.GM_fetch,Nn(e)):Ge({method:"fetch",data:e})}function Tn(){return fe()?hn():Ge({method:"getConfig"})}function on(e){return fe()?js(e):Ge({method:"setUserConfig",data:e})}function sn(){return fe()?Ns():Ge({method:"getUserConfig"})}function sp(){return fe()?ta():Ge({method:"getLocalConfig"})}function ii(e){return fe()?nn(e):Ge({method:"setLocalConfig",data:e})}function Z3(e){return fe()?xo(e):Ge({method:"setBuildinConfig",data:e})}async function Je(e){if(e.text){let n=vo(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(fe()||At()){let n=xm(e.text,e.minLength,e.pageLangs);return Promise.resolve(n)}let t=await Ge({method:"detectLanguage",data:e});return Promise.resolve(t)}function l3(){return Ge({method:"detectTabLanguage"})}function n3(e){if(fe()){let n=new CustomEvent(zu,{detail:e});document.dispatchEvent(n);return}Pi().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(n=>{})}function _g(e){return fe()?Sm(e):Ge({method:"queryParagraphCache",data:e})}async function Bg(e){if(fe()){await km(e);return}return Ge({method:"setParagraphCache",data:e})}async function Ym(){if(fe())return Promise.resolve();await Ge({method:"mockRequest"})}function xr(e=!1,t=""){return fe()?(ee.runtime.openOptionsPage(e,t),Promise.resolve()):Ge({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function nf(e=""){return fe()||At()?Be().OPTIONS_URL:ee.runtime.getURL("options.html")}function uc(e=""){return ee&&ee.runtime&&ee.runtime.getURL?ee.runtime.getURL("options.html"):""}function si(e=!1){return fe()?(ee.extra.openAboutPage(e),Promise.resolve()):Ge({method:"openAboutPage"})}function Ap(e=!1){return fe()?(ee.extra.openSearchEnhancement(e),Promise.resolve()):Ge({method:"openSearchEnhancement"})}function li(e){return fe()?(ee.extra.openInTab(e),Promise.resolve()):Ge({method:"openInTab",data:e})}function ci(e=!1){return fe()?(ee.extra.openEbookViewerPage(e),Promise.resolve()):Ge({method:"openEbookViewerPage"})}function X3(e=!1){return fe()?Promise.resolve():Ge({method:"openHtmlViewerPage"})}function di(e=!1){return fe()?(ee.extra.openEbookBuilderPage(e),Promise.resolve()):Ge({method:"openEbookBuilderPage"})}function kp(e){At()}function Pl(e=!1){return fe()?(ee.extra.openPdfViewerPage(e),Promise.resolve()):Ge({method:"openPdfViewerPage"})}function ep(e=!1){return fe()?(ee.extra.openSubtitleBuilderPage(e),Promise.resolve()):Ge({method:"openSubtitleBuilderPage"})}function rc(e){return fe()?Promise.resolve():Ge({method:"setBadge",data:{text:e}})}function b3(){return fe()?(H.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):Ge({method:"autoSyncLatestConfig"})}function af(e){let t;try{t=new URL(e)}catch{return!1}let n=uc(),a="";try{a=new URL(n).hostname}catch{}return!!(a&&t.hostname===a)}function Zo(e){let t;try{t=new URL(e)}catch{return!1}let n=uc(),a="";try{a=new URL(n).hostname}catch{}return a&&t.hostname===a?!0:!(oc(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function oc(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}g();var zy=function(e,t){let{method:n,data:a}=e;H.debug(`popup received message: ${n}`,a||" ");let r;t.active&&(r=t.id,globalThis.document.dispatchEvent(new CustomEvent(Pr,{detail:{tabId:r,payload:e}})))},Mi;function rf(){yu()}function yu(){return Mi||(Mi=new kn("popup",!1).getConnection("main_sync",zy),Mi)}var Ra={},ic={};function Fi(e,t){if(ic[e])try{t()}catch(n){H.error("run callback failed",n)}else Ra[e]||(Ra[e]=[]),Ra[e].push(t)}function uf(e){if(Ra[e]&&Ra[e].length){let t=[...Ra[e]];Ra[e]=[],t.forEach(n=>n())}}function sc(){let[e,t]=Te("Original"),{t:n}=wt(),[a,r,u,o]=hr(()=>{setTimeout(()=>{T("updateGlobalContext",!1)()},250)});oi(a,r);let[i,l]=Te(null),[c,s]=Te(null),[m,p]=Te(null),[f,d]=Te("auto"),[b,C]=Te(null),[{errorMsg:h,disableButton:A,noPermissionPDF:S},U]=Te({errorMsg:"",disableButton:!1,noPermissionPDF:!1}),O=M=>{let{tabId:q,payload:j}=M.detail,{method:$,data:z}=j;H.debug("popup received message",$,z||" "),$==="setPageStatus"?q&&t(z):$==="ready"&&q&&(U({disableButton:!1,errorMsg:"",noPermissionPDF:!1}),ic[q]=!0,uf(q))},y=()=>{r(M=>({...M,enabled:!M.enabled})),setTimeout(()=>{w()},50)};Ne(()=>{let M=yu();return ee.tabs.query({currentWindow:!0,active:!0}).then(q=>{let j=q[0].id;p(j);let $=q[0].url;ee.tabs.onUpdated.addListener((z,ae,J)=>{z===z&&J.url&&c&&J.url!==c&&(s(J.url),window.location.reload())}),globalThis.document.addEventListener(Pr,O),$&&s($),$&&Zo($)?(s($),M.sendMessage(`content_script:main_sync:${j}`,{method:"ping"}).then(z=>{U({disableButton:!1,errorMsg:"",noPermissionPDF:!1}),ic[j]=!0,uf(j)}).catch(z=>{af($)||U({disableButton:!0,errorMsg:n("reloadCurrentPage"),noPermissionPDF:!1}),H.debug("ping failed, but it is ok. cause maybe content is not injected",z)}),Fi(j,async()=>{let z=await M.sendMessage(`content_script:main_sync:${j}`,{method:"getPageStatus"});t(z)}),Fi(j,async()=>{let z=await hn();l(z)}),Fi(j,async()=>{let z=await M.sendMessage(`content_script:main_sync:${j}`,{method:"getCurrentPageLanguage"});d(z),z==="auto"&&setTimeout(async()=>{let ae=await M.sendMessage(`content_script:main_sync:${j}`,{method:"getCurrentPageLanguage"});d(ae)},500)})):oc($||"")?qy($||"")&&Hy($||"").then(z=>{z||U({disableButton:!1,noPermissionPDF:!0,errorMsg:n("noLocalFilePermissionForPDF")})}):U({disableButton:!0,errorMsg:n("noPermissionForThisPage"),noPermissionPDF:!1}),$===""&&s("about:newtab")}).catch(q=>{}),()=>{globalThis.document.removeEventListener(Pr,O)}},[]),Ne(()=>{hn().then(M=>{l(M)})},[a]),Ne(()=>{c&&i&&jn({url:c,config:i}).then(M=>{C(M)})},[c,i]);let T=(M,q=!0,j={})=>async()=>{let $=yu(),ae=(await ee.tabs.query({currentWindow:!0,active:!0}))[0].id,J={trigger:"popup",...j};$.sendMessage(`content_script:main:${ae}`,{method:M,data:J}),q&&setTimeout(()=>{globalThis.close()},10)},k=()=>{let M=N4();ee.tabs.create({url:M}),globalThis.close()},v=()=>{let M=ee.runtime.getURL(g4);ee.tabs.create({url:M}),globalThis.close()},E=()=>{let q=Be().SUBTITLE_BUILDER_URL;ee.tabs.create({url:q}),globalThis.close()},R=()=>{c&&(ee.tabs.create({url:I4(c)}),globalThis.close())},F=M=>{let q=yu();if(d(M),m&&c){let j=_u(c,M,i.sourceLanguageUrlPattern);r($=>({...$,sourceLanguageUrlPattern:j})),Fi(m,()=>{q.sendMessage(`content_script:main:${m}`,{method:"setCurrentPageLanguageByClient",data:M})})}},w=()=>{globalThis.close()},B=(M="")=>{if(At()){let j=Be().OPTIONS_URL;ee.tabs.create({url:j+M})}else{let q=ee.runtime.getURL("options.html");ee.tabs.create({url:q+M})}setTimeout(()=>{globalThis.close()},50)},I=()=>{if(At()){let q=Be().OPTIONS_URL;ee.tabs.create({url:q+"#about"})}else ee.tabs.create({url:ee.runtime.getURL("options.html#about")});setTimeout(()=>{globalThis.close()},50)},N=()=>{let M=Vu;ee.tabs.create({url:M}),setTimeout(()=>{globalThis.close()},50)},P=()=>{let q=Be().EBOOK_BUILDER_URL;ee.tabs.create({url:q}),setTimeout(()=>{globalThis.close()},50)},x=()=>{let q=Be().EBOOK_VIEWER_URL;ee.tabs.create({url:q}),setTimeout(()=>{globalThis.close()},50)},D=M=>{r(q=>({...q,generalRule:{...q.generalRule,mouseHoverHoldKey:M}}))};return!i||!b?null:V(pu,{onClose:w,onToggleTranslate:T("toggleTranslatePage"),openEbookBuilderPage:P,openEbookViewerPage:x,openPricingPage:N,onTranslateLocalSubtitleFile:E,onTranslateLocalHtmlFile:v,onToggleEnabled:y,openOptionsPage:B,openAboutPage:I,onTranslatePdf:R,onTranslateLocalPdfFile:k,onTranslateTheMainPage:T("translateTheMainPage"),onTranslateTheWholePage:T("translateTheWholePage"),ontranslateToThePageEndImmediately:T("translateToThePageEndImmediately"),onSwitchTranslationMode:M=>{T("switchTranslationMode",!0,{mode:M})()},onTranslatePage:T("translatePage"),onRestorePage:T("restorePage",!1),onSetPageLanguage:F,onUserConfigChange:M=>{r(M)},config:i,pageStatus:e,ctx:b,currentUrl:c,currentLang:f,onSetLocalConfig:nn,onSetBuildinConfig:xo,request:Nn,onMouseTriggerChanged:D,errorMsg:h,disabledButton:A,noPermissionPDF:S})}async function Hy(e){try{let t=new URL(e),n=await fetch(t.href);return!0}catch{return!1}}function qy(e){try{return new URL(e).protocol==="file:"}catch{return!1}}var of=document.getElementById("mount");rf();of&&(async()=>{let e=await hn();e.debug&&H.setLevel("debug"),pa(V(Yo,{lang:e.interfaceLanguage,translations:Go,fallbackLang:"zh-CN",children:V(sc,{})}),of)})();})(); /*! Bundled license information: bowser/src/bowser.js: diff --git a/dist/userscript/immersive-translate.user.js b/dist/userscript/immersive-translate.user.js index 2f21cac..9420b1d 100644 --- a/dist/userscript/immersive-translate.user.js +++ b/dist/userscript/immersive-translate.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Immersive Translate: Web Page&PDF Translation // @description Bilingual web page translation, also supports PDF translation, bilingual Epub eBook translation, free to use. -// @version 0.9.5 +// @version 0.9.6 // @namespace https://immersive-translate.owenyoung.com/ // @author Owen Young // @homepageURL https://immersivetranslate.com/ @@ -76,7 +76,7 @@ // @name:zh-TW 沉浸式翻譯: 雙語對照網頁翻譯 & PDF文檔翻譯 // @description:zh-TW 沉浸式網頁雙語翻譯擴展,同時支持 PDF 翻譯,雙語 Epub 電子書製作,支持 Deepl/Google/有道/騰訊翻譯等多個翻譯服務,免費使用。 // ==/UserScript== -(()=>{var of=Object.create;var _i=Object.defineProperty;var sf=Object.getOwnPropertyDescriptor;var lf=Object.getOwnPropertyNames;var cf=Object.getPrototypeOf,df=Object.prototype.hasOwnProperty;var mf=(e,t)=>()=>(e&&(t=e(e=0)),t);var gf=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),pf=(e,t)=>{for(var n in t)_i(e,n,{get:t[n],enumerable:!0})},ff=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of lf(t))!df.call(e,r)&&r!==n&&_i(e,r,{get:()=>t[r],enumerable:!(a=sf(t,r))||a.enumerable});return e};var hf=(e,t,n)=>(n=e!=null?of(cf(e)):{},ff(t||!e||!e.__esModule?_i(n,"default",{value:e,enumerable:!0}):n,e));var S,g=mf(()=>{S={BUILD_TIME:"2023-09-17T09:32:32.000Z",VERSION:"0.9.5",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"0",BETA:"0",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { +(()=>{var sf=Object.create;var _i=Object.defineProperty;var lf=Object.getOwnPropertyDescriptor;var cf=Object.getOwnPropertyNames;var df=Object.getPrototypeOf,mf=Object.prototype.hasOwnProperty;var gf=(e,t)=>()=>(e&&(t=e(e=0)),t);var pf=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ff=(e,t)=>{for(var n in t)_i(e,n,{get:t[n],enumerable:!0})},hf=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of cf(t))!mf.call(e,r)&&r!==n&&_i(e,r,{get:()=>t[r],enumerable:!(a=lf(t,r))||a.enumerable});return e};var bf=(e,t,n)=>(n=e!=null?sf(df(e)):{},hf(t||!e||!e.__esModule?_i(n,"default",{value:e,enumerable:!0}):n,e));var A,g=gf(()=>{A={BUILD_TIME:"2023-09-19T07:46:36.000Z",VERSION:"0.9.6",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"0",BETA:"0",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { --immersive-translate-theme-underline-borderColor: #72ece9; --immersive-translate-theme-nativeUnderline-borderColor: #72ece9; --immersive-translate-theme-nativeDashed-borderColor: #72ece9; @@ -4312,15 +4312,15 @@ select.text-label {
-`,PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",OPTIONS_URL:"https://dash.immersivetranslate.com/",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",MOCK:"0",DEBUG:"0",IMMERSIVE_TRANSLATE_USERSCRIPT:"1",INSTALL_FROM:"official_userscript"}});var Cm=gf((Fo,Zr)=>{g();(function(){var e;function t(d){var h,T,b="",C=-1,w;if(d&&d.length)for(w=d.length;(C+=1)>>6&31,128|h&63):h<=65535?b+=String.fromCharCode(224|h>>>12&15,128|h>>>6&63,128|h&63):h<=2097151&&(b+=String.fromCharCode(240|h>>>18&7,128|h>>>12&63,128|h>>>6&63,128|h&63));return b}function n(d){var h,T,b,C,w,O=[],B;if(h=T=b=C=w=0,d&&d.length)for(B=d.length,d+="";h191&&b<224?(C=d.charCodeAt(h+1),O[T]=String.fromCharCode((b&31)<<6|C&63),h+=2):(C=d.charCodeAt(h+1),w=d.charCodeAt(h+2),O[T]=String.fromCharCode((b&15)<<12|(C&63)<<6|w&63),h+=3);return O.join("")}function a(d,h){var T=(d&65535)+(h&65535),b=(d>>16)+(h>>16)+(T>>16);return b<<16|T&65535}function r(d,h){return d<>>32-h}function u(d,h){for(var T=h?"0123456789ABCDEF":"0123456789abcdef",b="",C,w=0,O=d.length;w>>4&15)+T.charAt(C&15);return b}function o(d){var h,T=d.length,b="";for(h=0;h>>8&255);return b}function i(d){var h,T=d.length,b="";for(h=0;h>>8&255,d.charCodeAt(h)&255);return b}function s(d){var h,T=d.length*32,b="";for(h=0;h>5]>>>24-h%32&255);return b}function c(d){var h,T=d.length*32,b="";for(h=0;h>5]>>>h%32&255);return b}function l(d){var h,T=d.length*8,b=Array(d.length>>2),C=b.length;for(h=0;h>5]|=(d.charCodeAt(h/8)&255)<>2),C=b.length;for(h=0;h>5]|=(d.charCodeAt(h/8)&255)<<24-h%32;return b}function f(d,h){var T=h.length,b=Array(),C,w,O,B,y,A,P,M;for(A=Array(Math.ceil(d.length/2)),B=A.length,C=0;C0;){for(y=Array(),O=0,C=0;C0||w>0)&&(y[y.length]=w);b[b.length]=O,A=y}for(P="",C=b.length-1;C>=0;C--)P+=h.charAt(b[C]);for(M=Math.ceil(d.length*8/(Math.log(h.length)/Math.log(2))),C=P.length;Cd.length*8?b+=h:b+=T.charAt(B>>>6*(3-O)&63);return b}e={VERSION:"1.0.6",Base64:function(){var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h="=",T=!1,b=!0;this.encode=function(C){var w,O,B,y="";for(h=h||"=",C=b?t(C):C,len=C.length,w=0;wlen*8?y+=h:y+=d.charAt(B>>>6*(3-O)&63);return y},this.decode=function(C){var w,O,B,y,A,P,M,x,R,F,D="",_=[];if(!C)return C;w=F=0,C=C.replace(new RegExp("\\"+h,"gi"),"");do A=d.indexOf(C.charAt(w++)),P=d.indexOf(C.charAt(w++)),M=d.indexOf(C.charAt(w++)),x=d.indexOf(C.charAt(w++)),R=A<<18|P<<12|M<<6|x,O=R>>16&255,B=R>>8&255,y=R&255,F+=1,M===64?_[F]=String.fromCharCode(O):x===64?_[F]=String.fromCharCode(O,B):_[F]=String.fromCharCode(O,B,y);while(w>>8^T;return(h^-1)>>>0},MD5:function(d){var h=d&&typeof d.uppercase=="boolean"?d.uppercase:!1,T=d&&typeof d.pad=="string"?d.pad:"=",b=d&&typeof d.utf8=="boolean"?d.utf8:!0;this.hex=function(x){return u(C(x,b),h)},this.b64=function(x){return m(C(x),T)},this.any=function(x,R){return f(C(x,b),R)},this.raw=function(x){return C(x,b)},this.hex_hmac=function(x,R){return u(w(x,R),h)},this.b64_hmac=function(x,R){return m(w(x,R),T)},this.any_hmac=function(x,R,F){return f(w(x,R),F)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(x){return typeof x=="boolean"&&(h=x),this},this.setPad=function(x){return T=x||T,this},this.setUTF8=function(x){return typeof x=="boolean"&&(b=x),this};function C(x){return x=b?t(x):x,c(O(l(x),x.length*8))}function w(x,R){var F,D,_,U,j;for(x=b?t(x):x,R=b?t(R):R,F=l(x),F.length>16&&(F=O(F,x.length*8)),D=Array(16),_=Array(16),j=0;j<16;j+=1)D[j]=F[j]^909522486,_[j]=F[j]^1549556828;return U=O(D.concat(l(R)),512+R.length*8),c(O(_.concat(U),512+128))}function O(x,R){var F,D,_,U,j,L=1732584193,E=-271733879,k=-1732584194,I=271733878;for(x[R>>5]|=128<>>9<<4)+14]=R,F=0;F16&&(M=O(M,A.length*8)),x=Array(16),R=Array(16),F=0;F<16;F+=1)x[F]=M[F]^909522486,R[F]=M[F]^1549556828;return D=O(x.concat(p(P)),512+P.length*8),s(O(R.concat(D),512+160))}function O(A,P){var M,x,R,F,D,_,U,j,L=Array(80),E=1732584193,k=-271733879,I=-1732584194,$=271733878,z=-1009589776;for(A[P>>5]|=128<<24-P%32,A[(P+64>>9<<4)+15]=P,M=0;M16&&(z=L(z,E.length*8));$<16;$+=1)Y[$]=z[$]^909522486,q[$]=z[$]^1549556828;return I=L(Y.concat(p(k)),512+k.length*8),s(L(q.concat(I),512+256))}function B(E,k){return E>>>k|E<<32-k}function y(E,k){return E>>>k}function A(E,k,I){return E&k^~E&I}function P(E,k,I){return E&k^E&I^k&I}function M(E){return B(E,2)^B(E,13)^B(E,22)}function x(E){return B(E,6)^B(E,11)^B(E,25)}function R(E){return B(E,7)^B(E,18)^y(E,3)}function F(E){return B(E,17)^B(E,19)^y(E,10)}function D(E){return B(E,28)^B(E,34)^B(E,39)}function _(E){return B(E,14)^B(E,18)^B(E,41)}function U(E){return B(E,1)^B(E,8)^y(E,7)}function j(E){return B(E,19)^B(E,61)^y(E,6)}C=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function L(E,k){var I=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],$=new Array(64),z,Y,q,ae,Q,G,pe,he,re,K,se,me;for(E[k>>5]|=128<<24-k%32,E[(k+64>>9<<4)+15]=k,re=0;re32&&(E=B(E,_.length*8));L<32;L+=1)k[L]=E[L]^909522486,I[L]=E[L]^1549556828;return j=B(k.concat(p(U)),1024+U.length*8),s(B(I.concat(j),1024+512))}function B(_,U){var j,L,E,k=new Array(80),I=new Array(16),$=[new y(1779033703,-205731576),new y(-1150833019,-2067093701),new y(1013904242,-23791573),new y(-1521486534,1595750129),new y(1359893119,-1377402159),new y(-1694144372,725511199),new y(528734635,-79577749),new y(1541459225,327033209)],z=new y(0,0),Y=new y(0,0),q=new y(0,0),ae=new y(0,0),Q=new y(0,0),G=new y(0,0),pe=new y(0,0),he=new y(0,0),re=new y(0,0),K=new y(0,0),se=new y(0,0),me=new y(0,0),ce=new y(0,0),ye=new y(0,0),Ae=new y(0,0),Ee=new y(0,0),Z=new y(0,0);for(C===void 0&&(C=[new y(1116352408,-685199838),new y(1899447441,602891725),new y(-1245643825,-330482897),new y(-373957723,-2121671748),new y(961987163,-213338824),new y(1508970993,-1241133031),new y(-1841331548,-1357295717),new y(-1424204075,-630357736),new y(-670586216,-1560083902),new y(310598401,1164996542),new y(607225278,1323610764),new y(1426881987,-704662302),new y(1925078388,-226784913),new y(-2132889090,991336113),new y(-1680079193,633803317),new y(-1046744716,-815192428),new y(-459576895,-1628353838),new y(-272742522,944711139),new y(264347078,-1953704523),new y(604807628,2007800933),new y(770255983,1495990901),new y(1249150122,1856431235),new y(1555081692,-1119749164),new y(1996064986,-2096016459),new y(-1740746414,-295247957),new y(-1473132947,766784016),new y(-1341970488,-1728372417),new y(-1084653625,-1091629340),new y(-958395405,1034457026),new y(-710438585,-1828018395),new y(113926993,-536640913),new y(338241895,168717936),new y(666307205,1188179964),new y(773529912,1546045734),new y(1294757372,1522805485),new y(1396182291,-1651133473),new y(1695183700,-1951439906),new y(1986661051,1014477480),new y(-2117940946,1206759142),new y(-1838011259,344077627),new y(-1564481375,1290863460),new y(-1474664885,-1136513023),new y(-1035236496,-789014639),new y(-949202525,106217008),new y(-778901479,-688958952),new y(-694614492,1432725776),new y(-200395387,1467031594),new y(275423344,851169720),new y(430227734,-1194143544),new y(506948616,1363258195),new y(659060556,-544281703),new y(883997877,-509917016),new y(958139571,-976659869),new y(1322822218,-482243893),new y(1537002063,2003034995),new y(1747873779,-692930397),new y(1955562222,1575990012),new y(2024104815,1125592928),new y(-2067236844,-1578062990),new y(-1933114872,442776044),new y(-1866530822,593698344),new y(-1538233109,-561857047),new y(-1090935817,-1295615723),new y(-965641998,-479046869),new y(-903397682,-366583396),new y(-779700025,566280711),new y(-354779690,-840897762),new y(-176337025,-294727304),new y(116418474,1914138554),new y(174292421,-1563912026),new y(289380356,-1090974290),new y(460393269,320620315),new y(685471733,587496836),new y(852142971,1086792851),new y(1017036298,365543100),new y(1126000580,-1676669620),new y(1288033470,-885112138),new y(1501505948,-60457430),new y(1607167915,987167468),new y(1816402316,1246189591)]),L=0;L<80;L+=1)k[L]=new y(0,0);for(_[U>>5]|=128<<24-(U&31),_[(U+128>>10<<5)+31]=U,E=_.length,L=0;L>>j|U.h<<32-j,_.h=U.h>>>j|U.l<<32-j}function M(_,U,j){_.l=U.h>>>j|U.l<<32-j,_.h=U.l>>>j|U.h<<32-j}function x(_,U,j){_.l=U.l>>>j|U.h<<32-j,_.h=U.h>>>j}function R(_,U,j){var L=(U.l&65535)+(j.l&65535),E=(U.l>>>16)+(j.l>>>16)+(L>>>16),k=(U.h&65535)+(j.h&65535)+(E>>>16),I=(U.h>>>16)+(j.h>>>16)+(k>>>16);_.l=L&65535|E<<16,_.h=k&65535|I<<16}function F(_,U,j,L,E){var k=(U.l&65535)+(j.l&65535)+(L.l&65535)+(E.l&65535),I=(U.l>>>16)+(j.l>>>16)+(L.l>>>16)+(E.l>>>16)+(k>>>16),$=(U.h&65535)+(j.h&65535)+(L.h&65535)+(E.h&65535)+(I>>>16),z=(U.h>>>16)+(j.h>>>16)+(L.h>>>16)+(E.h>>>16)+($>>>16);_.l=k&65535|I<<16,_.h=$&65535|z<<16}function D(_,U,j,L,E,k){var I=(U.l&65535)+(j.l&65535)+(L.l&65535)+(E.l&65535)+(k.l&65535),$=(U.l>>>16)+(j.l>>>16)+(L.l>>>16)+(E.l>>>16)+(k.l>>>16)+(I>>>16),z=(U.h&65535)+(j.h&65535)+(L.h&65535)+(E.h&65535)+(k.h&65535)+($>>>16),Y=(U.h>>>16)+(j.h>>>16)+(L.h>>>16)+(E.h>>>16)+(k.h>>>16)+(z>>>16);_.l=I&65535|$<<16,_.h=z&65535|Y<<16}},RMD160:function(d){var h=d&&typeof d.uppercase=="boolean"?d.uppercase:!1,T=d&&typeof d.pad=="string"?d.pa:"=",b=d&&typeof d.utf8=="boolean"?d.utf8:!0,C=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],w=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],O=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],B=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(D){return u(y(D,b))},this.b64=function(D){return m(y(D,b),T)},this.any=function(D,_){return f(y(D,b),_)},this.raw=function(D){return y(D,b)},this.hex_hmac=function(D,_){return u(A(D,_))},this.b64_hmac=function(D,_){return m(A(D,_),T)},this.any_hmac=function(D,_,U){return f(A(D,_),U)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(D){return typeof D=="boolean"&&(h=D),this},this.setPad=function(D){return typeof D<"u"&&(T=D),this},this.setUTF8=function(D){return typeof D=="boolean"&&(b=D),this};function y(D){return D=b?t(D):D,P(M(l(D),D.length*8))}function A(D,_){D=b?t(D):D,_=b?t(_):_;var U,j,L=l(D),E=Array(16),k=Array(16);for(L.length>16&&(L=M(L,D.length*8)),U=0;U<16;U+=1)E[U]=L[U]^909522486,k[U]=L[U]^1549556828;return j=M(E.concat(l(_)),512+_.length*8),P(M(k.concat(j),512+160))}function P(D){var _,U="",j=D.length*32;for(_=0;_>5]>>>_%32&255);return U}function M(D,_){var U,j,L,E,k=1732584193,I=4023233417,$=2562383102,z=271733878,Y=3285377520,q,ae,Q,G,pe,he,re,K,se,me;for(D[_>>5]|=128<<_%32,D[(_+64>>>9<<4)+14]=_,E=D.length,L=0;Ln&&(n=u,a=r)}return[a,n]}function Pf(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function _f(e,t,n,a){t=Rf(t,n,a);let r=[],u;if(t)for(u in t)Cu.call(t,u)&&r.push([u,Bf(e,t[u])]);return r.length===0?Ri():r.sort(If)}function Bf(e,t){let n=0,a=-1;for(;++at.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterso+i.length,0));let u=e.length-a;for(let o of Kf){let i=o[1],s=o[0],c=e.match(i),l=c?c.length:0;l>n&&(n=l,t=s)}return n*2.5/u>.5?t==="zh-CN"?wc(e)?"zh-TW":"zh-CN":t:"auto"}var kc=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],Ii=new Map(kc),Gf=new Map(kc.map(([e,t])=>[t,e]));function vr(e,t,n=["en"]){if(!e)return"auto";let a=n.map(i=>Gf.get(i));!t&&t!==0&&(t=25);let r=vu(e);if(r!=="auto")return r;let u={minLength:t,whitelist:[...Ii.keys()]},o=yc(e,u);if(o&&o.length>0){for(let[l,p]of o)if(a.includes(l)&&p>.5)return Ii.get(l);let[i,s]=o[0],c=Ii.get(i);if(c&&s>.5)return c}return"auto"}g();function Re(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():S}var xe=Re();function fe(){return xe.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function Fn(){return xe.PROD==="1"}function Pn(){return xe.PROD_API==="1"}function Ac(){return xe.HAS_CSP_ERROR=="1"}function Rt(){if(xe.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function ku(){return typeof Deno<"u"}var v5=Re().PROD==="1",Oa=Re().PROD!=="1";function Au(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}if(typeof GM>"u"&&typeof GM_info<"u"&&typeof GM_getValue<"u"){let e=null;typeof GM_xmlhttpRequest<"u"?e=GM_xmlhttpRequest:typeof GM_xmlHttpRequest<"u"&&(e=GM_xmlHttpRequest);let t=null;typeof GM_registerMenuCommand<"u"&&(t=GM_registerMenuCommand),globalThis.GM={info:GM_info,getValue:GM_getValue,setValue:GM_setValue,deleteValue:GM_deleteValue,listValues:GM_listValues,xmlHttpRequest:e,registerMenuCommand:t,addStyle:typeof GM_addStyle<"u"?GM_addStyle:null,openInTab:typeof GM_openInTab<"u"?GM_openInTab:null,addElement:typeof GM_addElement<"u"?GM_addElement:null}}typeof GM<"u"&&GM&&GM.info===void 0&&typeof GM_info<"u"&&(GM.info=GM_info);var Sc={get:async e=>{if(e===null){let a=await GM.listValues();Array.isArray(a)||a&&ah(a)&&(a=Object.keys(a));let r={};for(let u of a)r[u]=await GM.getValue(u);return r}let t=[];typeof e=="string"?t=[e]:Array.isArray(e)?t=e:t=Object.keys(e);let n={};for(let a of t)n[a]=await GM.getValue(a);return n},set:async e=>{for(let t in e)await GM.setValue(t,e[t])},remove:async e=>{if(typeof e=="string")await GM.deleteValue(e);else if(Array.isArray(e))for(let t of e)await GM.deleteValue(t)}};function Vf(){if(typeof GM<"u"&&GM&&GM.info&&GM.info.script){let e=GM.info.script||{};return e._isUserscript=!0,e}else return{_isUserscript:!0,version:"0.0.0"}}function fa(e,t=!0){GM&&GM.openInTab?GM.openInTab(e,!1):globalThis.open(e,t?"_blank":"_self")}function Yf(e=!0,t=""){let n=Re();GM&&GM.info&&GM.info.scriptHandler&&GM.info.scriptHandler==="Stay"?e=!1:e=!0;let a=n.OPTIONS_URL;if(a)fa(a+t,e);else throw new Error("options url not found")}function Jf(e=!1){let n=Re().OPTIONS_URL;if(n)fa(n+"#about",e);else throw new Error("options url not found")}function Qf(e=!1){let n=Re().PDF_VIEWER_URL;if(n)fa(n,e);else throw new Error("pdf url not found")}function Zf(e=!1){let n=Re().EBOOK_VIEWER_URL;if(n)fa(n,e);else throw new Error("ebook url not found")}function Xf(e=!1){let n=Re().EBOOK_BUILDER_URL;if(n)fa(n,e);else throw new Error("ebook url not found")}function eh(e=!1){let n=Re().SUBTITLE_BUILDER_URL;if(n)fa(n,e);else throw new Error("subtitle url not found")}function th(){return globalThis.navigator.languages||[globalThis.navigator.language||globalThis.navigator.userLanguage]}var nh={storage:{local:Sc,sync:Sc},runtime:{getManifest:Vf,lastError:null,openOptionsPage:Yf},extra:{detectLanguage:vr,openAboutPage:Jf,openEbookViewerPage:Zf,openEbookBuilderPage:Xf,openSubtitleBuilderPage:eh,openPdfViewerPage:Qf,openInTab:fa},i18n:{getAcceptLanguages:th,detectLanguage:vr}};function ah(e){return e!==null&&typeof e=="object"}globalThis.immersiveTranslateBrowserAPI=nh;g();(function(){"use strict";var e=window.Bluebird||window.Promise;if(self.GM_fetch)return;let t;if(typeof GM<"u"&&GM.xmlHttpRequest)t=GM.xmlHttpRequest;else if(typeof GM<"u"&&GM_xmlhttpRequest)t=GM_xmlhttpRequest;else if(typeof GM_xmlhttpRequest<"u")t=GM_xmlhttpRequest;else if(typeof GM<"u"&&GM.xmlHttpRequest)t=GM.xmlHttpRequest;else return;function n(m){if(typeof m!="string"&&(m=m.toString()),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(m))throw new TypeError("Invalid character in header field name");return m.toLowerCase()}function a(m){return typeof m!="string"&&(m=m.toString()),m}function r(m){if(m.bodyUsed)return e.reject(new TypeError("Already read"));m.bodyUsed=!0}function u(m){return new e(function(d,h){m.onload=function(){d(m.result)},m.onerror=function(){h(m.error)}})}function o(m){var d=new FileReader;return d.readAsArrayBuffer(m),u(d)}function i(m){var d=new FileReader;return d.readAsText(m),u(d)}var s={blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in self},c=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function l(m){var d=m.toUpperCase();return c.indexOf(d)>-1?d:m}function p(m){var d=new FormData;return m.trim().split("&").forEach(function(h){if(h){var T=h.split("="),b=T.shift().replace(/\+/g," "),C=T.join("=").replace(/\+/g," ");d.append(decodeURIComponent(b),decodeURIComponent(C))}}),d}function f(m){var d=new Headers;if(typeof m=="string"){var h=m.trim().split(` -`);h.forEach(function(b){var C=b.trim().split(":"),w=C.shift().trim(),O=C.join(":").trim();d.append(w,O)})}else if(typeof m=="object")for(var T in m)Array.isArray(m[T])&&m[T].forEach(function(b){d.append(T,b)});return d}self.Headers=Headers,self.Request=Request,self.Response=Response,self.GM_fetch=function(m,d){var h,T;return d||(typeof m=="string"?d={}:m=d.url),Request&&Request.prototype&&Request.prototype.isPrototypeOf&&Request.prototype.isPrototypeOf(d)?h=d:(d.body&&(T=d.body),h=new Request(m,d)),new e(function(b,C){var w={};d&&d.extra&&(w=d.extra);var O;function B(y,A){if(y)return y;if(A.get("X-Request-URL"))return A.get("X-Request-URL")}w.method=h.method||"GET",w.timeout=6e4,h.timeout&&(w.timeout=h.timeout),w.url=h.url,w.synchronous=!1,w.onload=function(y){var A=y.status;if(A<100||A>599){C(new TypeError("Network request failed"));return}var P=y.responseHeaders;O=f(P);var M=B(y.finalUrl||y.responseURL,O);O.set("X-Final-URL",M);var x={status:A,statusText:y.statusText,headers:O,url:M},R=y.responseText;let F=new Response(R,x);b(F)},w.onerror=function(y){C(new TypeError("Network request failed"))},w.ontimeout=function(y){C(new TypeError("Network request timeout"))},w.onabort=function(y){C(new TypeError("Network request abort"))},w.headers={},h.headers.forEach(function(y,A){w.headers[A]=y}),T&&(w.data=T),t(w)})},self.GM_fetch.polyfill=!0})();g();g();g();g();g();g();g();g();g();g();function Na(){let e,t="pending",n=new Promise((a,r)=>{e={async resolve(u){await u,t="fulfilled",a(u)},reject(u){t="rejected",r(u)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}g();var Oi=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function Su(e,t){let n=Na(),a=setTimeout(()=>n.reject(new Oi),t);return Promise.race([e,n]).finally(()=>clearTimeout(a))}g();g();function kr(e,t={}){let{signal:n,persistent:a}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((r,u)=>{let o=()=>{clearTimeout(s),u(new DOMException("Delay was aborted.","AbortError"))},s=setTimeout(()=>{n?.removeEventListener("abort",o),r()},e);if(n?.addEventListener("abort",o,{once:!0}),a===!1)try{Deno.unrefTimer(s)}catch(c){if(!(c instanceof ReferenceError))throw c}})}g();var Dc=class{#e=0;#t=[];#n=[];#a=Na();add(t){++this.#e,this.#r(t[Symbol.asyncIterator]())}async#r(t){try{let{value:n,done:a}=await t.next();a?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#a.resolve()}async*iterate(){for(;this.#e>0;){await this.#a;for(let t=0;tMh,bgBlue:()=>Bh,bgBrightBlack:()=>Nh,bgBrightBlue:()=>Hh,bgBrightCyan:()=>Wh,bgBrightGreen:()=>Uh,bgBrightMagenta:()=>qh,bgBrightRed:()=>jh,bgBrightWhite:()=>$h,bgBrightYellow:()=>zh,bgCyan:()=>Ih,bgGreen:()=>Ph,bgMagenta:()=>Rh,bgRed:()=>Fh,bgRgb24:()=>Yh,bgRgb8:()=>Gh,bgWhite:()=>Oh,bgYellow:()=>_h,black:()=>ph,blue:()=>yh,bold:()=>ih,brightBlack:()=>Fc,brightBlue:()=>Ah,brightCyan:()=>Dh,brightGreen:()=>vh,brightMagenta:()=>Sh,brightRed:()=>wh,brightWhite:()=>Lh,brightYellow:()=>kh,cyan:()=>xh,dim:()=>sh,getColorEnabled:()=>uh,gray:()=>Ch,green:()=>hh,hidden:()=>mh,inverse:()=>dh,italic:()=>lh,magenta:()=>Eh,red:()=>fh,reset:()=>oh,rgb24:()=>Vh,rgb8:()=>Kh,setColorEnabled:()=>rh,strikethrough:()=>gh,stripColor:()=>Qh,underline:()=>ch,white:()=>Th,yellow:()=>bh});g();var{Deno:Lc}=globalThis,Mc=typeof Lc?.noColor=="boolean"?Lc.noColor:!0,Ni=!Mc;function rh(e){Mc||(Ni=e)}function uh(){return Ni}function Te(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function Ce(e,t){return Ni?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function oh(e){return Ce(e,Te([0],0))}function ih(e){return Ce(e,Te([1],22))}function sh(e){return Ce(e,Te([2],22))}function lh(e){return Ce(e,Te([3],23))}function ch(e){return Ce(e,Te([4],24))}function dh(e){return Ce(e,Te([7],27))}function mh(e){return Ce(e,Te([8],28))}function gh(e){return Ce(e,Te([9],29))}function ph(e){return Ce(e,Te([30],39))}function fh(e){return Ce(e,Te([31],39))}function hh(e){return Ce(e,Te([32],39))}function bh(e){return Ce(e,Te([33],39))}function yh(e){return Ce(e,Te([34],39))}function Eh(e){return Ce(e,Te([35],39))}function xh(e){return Ce(e,Te([36],39))}function Th(e){return Ce(e,Te([37],39))}function Ch(e){return Fc(e)}function Fc(e){return Ce(e,Te([90],39))}function wh(e){return Ce(e,Te([91],39))}function vh(e){return Ce(e,Te([92],39))}function kh(e){return Ce(e,Te([93],39))}function Ah(e){return Ce(e,Te([94],39))}function Sh(e){return Ce(e,Te([95],39))}function Dh(e){return Ce(e,Te([96],39))}function Lh(e){return Ce(e,Te([97],39))}function Mh(e){return Ce(e,Te([40],49))}function Fh(e){return Ce(e,Te([41],49))}function Ph(e){return Ce(e,Te([42],49))}function _h(e){return Ce(e,Te([43],49))}function Bh(e){return Ce(e,Te([44],49))}function Rh(e){return Ce(e,Te([45],49))}function Ih(e){return Ce(e,Te([46],49))}function Oh(e){return Ce(e,Te([47],49))}function Nh(e){return Ce(e,Te([100],49))}function jh(e){return Ce(e,Te([101],49))}function Uh(e){return Ce(e,Te([102],49))}function zh(e){return Ce(e,Te([103],49))}function Hh(e){return Ce(e,Te([104],49))}function qh(e){return Ce(e,Te([105],49))}function Wh(e){return Ce(e,Te([106],49))}function $h(e){return Ce(e,Te([107],49))}function Hn(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function Kh(e,t){return Ce(e,Te([38,5,Hn(t)],39))}function Gh(e,t){return Ce(e,Te([48,5,Hn(t)],49))}function Vh(e,t){return typeof t=="number"?Ce(e,Te([38,2,t>>16&255,t>>8&255,t&255],39)):Ce(e,Te([38,2,Hn(t.r),Hn(t.g),Hn(t.b)],39))}function Yh(e,t){return typeof t=="number"?Ce(e,Te([48,2,t>>16&255,t>>8&255,t&255],49)):Ce(e,Te([48,2,Hn(t.r),Hn(t.g),Hn(t.b)],49))}var Jh=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function Qh(e){return e.replace(Jh,"")}g();g();var ji=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},Zh={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function Ui(e,t){let n={...Zh,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let a=n.minTimeout,r;for(let u=0;usetTimeout(i,a)),a*=n.multiplier,a=Math.max(a,n.minTimeout),n.maxTimeout>=0&&(a=Math.min(a,n.maxTimeout)),r=o}throw new ji(r,n.maxAttempts)}g();var _n=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function zi(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",a,r=t.length;for(a=2;a>2],n+=_n[(t[a-2]&3)<<4|t[a-1]>>4],n+=_n[(t[a-1]&15)<<2|t[a]>>6],n+=_n[t[a]&63];return a===r+1&&(n+=_n[t[a-2]>>2],n+=_n[(t[a-2]&3)<<4],n+="=="),a===r&&(n+=_n[t[a-2]>>2],n+=_n[(t[a-2]&3)<<4|t[a-1]>>4],n+=_n[(t[a-1]&15)<<2],n+="="),n}g();g();var bE=Number.isNaN||function(e){return typeof e=="number"&&e!==e};g();g();var Du=globalThis||(typeof window<"u"?window:self),e2=Object.create,qi=Object.defineProperty,t2=Object.getOwnPropertyDescriptor,n2=Object.getOwnPropertyNames,a2=Object.getPrototypeOf,r2=Object.prototype.hasOwnProperty,u2=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),o2=(e,t)=>{for(var n in t)qi(e,n,{get:t[n],enumerable:!0})},Hi=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of n2(t))!r2.call(e,r)&&r!==n&&qi(e,r,{get:()=>t[r],enumerable:!(a=t2(t,r))||a.enumerable});return e},i2=(e,t,n)=>(Hi(e,t,"default"),n&&Hi(n,t,"default")),_c=(e,t,n)=>(n=e!=null?e2(a2(e)):{},Hi(t||!e||!e.__esModule?qi(n,"default",{value:e,enumerable:!0}):n,e)),Bc=u2((e,t)=>{var n="Expected a function",a=NaN,r="[object Symbol]",u=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,l=typeof Du=="object"&&Du&&Du.Object===Object&&Du,p=typeof self=="object"&&self&&self.Object===Object&&self,f=l||p||Function("return this")(),m=Object.prototype,d=m.toString,h=Math.max,T=Math.min,b=function(){return f.Date.now()};function C(P,M,x){var R,F,D,_,U,j,L=0,E=!1,k=!1,I=!0;if(typeof P!="function")throw new TypeError(n);M=A(M)||0,O(x)&&(E=!!x.leading,k="maxWait"in x,D=k?h(A(x.maxWait)||0,M):D,I="trailing"in x?!!x.trailing:I);function $(re){var K=R,se=F;return R=F=void 0,L=re,_=P.apply(se,K),_}function z(re){return L=re,U=setTimeout(ae,M),E?$(re):_}function Y(re){var K=re-j,se=re-L,me=M-K;return k?T(me,D-se):me}function q(re){var K=re-j,se=re-L;return j===void 0||K>=M||K<0||k&&se>=D}function ae(){var re=b();if(q(re))return Q(re);U=setTimeout(ae,Y(re))}function Q(re){return U=void 0,I&&R?$(re):(R=F=void 0,_)}function G(){U!==void 0&&clearTimeout(U),L=0,R=j=F=U=void 0}function pe(){return U===void 0?_:Q(b())}function he(){var re=b(),K=q(re);if(R=arguments,F=this,j=re,K){if(U===void 0)return z(j);if(k)return U=setTimeout(ae,M),$(j)}return U===void 0&&(U=setTimeout(ae,M)),_}return he.cancel=G,he.flush=pe,he}function w(P,M,x){var R=!0,F=!0;if(typeof P!="function")throw new TypeError(n);return O(x)&&(R="leading"in x?!!x.leading:R,F="trailing"in x?!!x.trailing:F),C(P,M,{leading:R,maxWait:M,trailing:F})}function O(P){var M=typeof P;return!!P&&(M=="object"||M=="function")}function B(P){return!!P&&typeof P=="object"}function y(P){return typeof P=="symbol"||B(P)&&d.call(P)==r}function A(P){if(typeof P=="number")return P;if(y(P))return a;if(O(P)){var M=typeof P.valueOf=="function"?P.valueOf():P;P=O(M)?M+"":M}if(typeof P!="string")return P===0?P:+P;P=P.replace(u,"");var x=i.test(P);return x||s.test(P)?c(P.slice(2),x?2:8):o.test(P)?a:+P}t.exports=w}),Rc={};o2(Rc,{default:()=>bt});var s2=_c(Bc());i2(Rc,_c(Bc()));var{default:Pc,...l2}=s2,bt=Pc!==void 0?Pc:l2;g();g();var c2=Object.create,$i=Object.defineProperty,d2=Object.getOwnPropertyDescriptor,m2=Object.getOwnPropertyNames,g2=Object.getPrototypeOf,p2=Object.prototype.hasOwnProperty,f2=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),h2=(e,t)=>{for(var n in t)$i(e,n,{get:t[n],enumerable:!0})},Wi=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of m2(t))!p2.call(e,r)&&r!==n&&$i(e,r,{get:()=>t[r],enumerable:!(a=d2(t,r))||a.enumerable});return e},b2=(e,t,n)=>(Wi(e,t,"default"),n&&Wi(n,t,"default")),Oc=(e,t,n)=>(n=e!=null?c2(g2(e)):{},Wi(t||!e||!e.__esModule?$i(n,"default",{value:e,enumerable:!0}):n,e)),Nc=f2((e,t)=>{(function(n,a){typeof e=="object"&&typeof t=="object"?t.exports=a():typeof define=="function"&&define.amd?define([],a):typeof e=="object"?e.notie=a():n.notie=a()})(e,function(){return function(n){function a(u){if(r[u])return r[u].exports;var o=r[u]={i:u,l:!1,exports:{}};return n[u].call(o.exports,o,o.exports,a),o.l=!0,o.exports}var r={};return a.m=n,a.c=r,a.i=function(u){return u},a.d=function(u,o,i){a.o(u,o)||Object.defineProperty(u,o,{configurable:!1,enumerable:!0,get:i})},a.n=function(u){var o=u&&u.__esModule?function(){return u.default}:function(){return u};return a.d(o,"a",o),o},a.o=function(u,o){return Object.prototype.hasOwnProperty.call(u,o)},a.p="",a(a.s=1)}([function(n,a){n.exports=function(r){return r.webpackPolyfill||(r.deprecate=function(){},r.paths=[],r.children||(r.children=[]),Object.defineProperty(r,"loaded",{enumerable:!0,get:function(){return r.l}}),Object.defineProperty(r,"id",{enumerable:!0,get:function(){return r.i}}),r.webpackPolyfill=1),r}},function(n,a,r){"use strict";(function(u){var o,i,s,c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l};(function(l,p){c(a)==="object"&&c(u)==="object"?u.exports=p():(i=[],o=p,s=typeof o=="function"?o.apply(a,i):o,s!==void 0&&(u.exports=s))})(void 0,function(){return function(l){function p(m){if(f[m])return f[m].exports;var d=f[m]={i:m,l:!1,exports:{}};return l[m].call(d.exports,d,d.exports,p),d.l=!0,d.exports}var f={};return p.m=l,p.c=f,p.i=function(m){return m},p.d=function(m,d,h){p.o(m,d)||Object.defineProperty(m,d,{configurable:!1,enumerable:!0,get:h})},p.n=function(m){var d=m&&m.__esModule?function(){return m.default}:function(){return m};return p.d(d,"a",d),d},p.o=function(m,d){return Object.prototype.hasOwnProperty.call(m,d)},p.p="",p(p.s=0)}([function(l,p,f){function m(z,Y){var q={};for(var ae in z)Y.indexOf(ae)>=0||Object.prototype.hasOwnProperty.call(z,ae)&&(q[ae]=z[ae]);return q}Object.defineProperty(p,"__esModule",{value:!0});var d=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(z){return typeof z>"u"?"undefined":c(z)}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z>"u"?"undefined":c(z)},h=Object.assign||function(z){for(var Y=1;Y'+ae+"",se.onclick=function(){return F(me,K)},se.listener=function(ce){(M(ce)||x(ce))&&U()},R(se,K),G&&G<1&&(G=1),!he&&G&&O(G).then(function(){return F(me,K)})},L=p.force=function(z,Y){var q=z.type,ae=q===void 0?5:q,Q=z.text,G=z.buttonText,pe=G===void 0?"OK":G,he=z.callback,re=z.position,K=re===void 0?b.positions.force||K.top:re;B(),U();var se=document.createElement("div"),me=y();se.id=me;var ce=document.createElement("div");ce.classList.add(b.classes.textbox),ce.classList.add(b.classes.backgroundInfo),ce.innerHTML='
'+Q+"
";var ye=document.createElement("div");ye.classList.add(b.classes.button),ye.classList.add(A[ae]),ye.innerHTML=pe,ye.onclick=function(){F(me,K),_(),he?he():Y&&Y()},se.appendChild(ce),se.appendChild(ye),se.listener=function(Ae){M(Ae)&&ye.click()},R(se,K),D()},E=p.confirm=function(z,Y,q){var ae=z.text,Q=z.submitText,G=Q===void 0?"Yes":Q,pe=z.cancelText,he=pe===void 0?"Cancel":pe,re=z.submitCallback,K=z.cancelCallback,se=z.position,me=se===void 0?b.positions.confirm||me.top:se;B(),U();var ce=document.createElement("div"),ye=y();ce.id=ye;var Ae=document.createElement("div");Ae.classList.add(b.classes.textbox),Ae.classList.add(b.classes.backgroundInfo),Ae.innerHTML='
'+ae+"
";var Ee=document.createElement("div");Ee.classList.add(b.classes.button),Ee.classList.add(b.classes.elementHalf),Ee.classList.add(b.classes.backgroundSuccess),Ee.innerHTML=G,Ee.onclick=function(){F(ye,me),_(),re?re():Y&&Y()};var Z=document.createElement("div");Z.classList.add(b.classes.button),Z.classList.add(b.classes.elementHalf),Z.classList.add(b.classes.backgroundError),Z.innerHTML=he,Z.onclick=function(){F(ye,me),_(),K?K():q&&q()},ce.appendChild(Ae),ce.appendChild(Ee),ce.appendChild(Z),ce.listener=function(ke){M(ke)?Ee.click():x(ke)&&Z.click()},R(ce,me),D(ce,me)},k=function(z,Y,q){var ae=z.text,Q=z.submitText,G=Q===void 0?"Submit":Q,pe=z.cancelText,he=pe===void 0?"Cancel":pe,re=z.submitCallback,K=z.cancelCallback,se=z.position,me=se===void 0?b.positions.input||me.top:se,ce=m(z,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);B(),U();var ye=document.createElement("div"),Ae=y();ye.id=Ae;var Ee=document.createElement("div");Ee.classList.add(b.classes.textbox),Ee.classList.add(b.classes.backgroundInfo),Ee.innerHTML='
'+ae+"
";var Z=document.createElement("input");Z.classList.add(b.classes.inputField),Z.setAttribute("autocapitalize",ce.autocapitalize||"none"),Z.setAttribute("autocomplete",ce.autocomplete||"off"),Z.setAttribute("autocorrect",ce.autocorrect||"off"),Z.setAttribute("autofocus",ce.autofocus||"true"),Z.setAttribute("inputmode",ce.inputmode||"verbatim"),Z.setAttribute("max",ce.max||""),Z.setAttribute("maxlength",ce.maxlength||""),Z.setAttribute("min",ce.min||""),Z.setAttribute("minlength",ce.minlength||""),Z.setAttribute("placeholder",ce.placeholder||""),Z.setAttribute("spellcheck",ce.spellcheck||"default"),Z.setAttribute("step",ce.step||"any"),Z.setAttribute("type",ce.type||"text"),Z.value=ce.value||"",ce.allowed&&(Z.oninput=function(){var Ie=void 0;if(Array.isArray(ce.allowed)){for(var je="",st=ce.allowed,Pt=0;Pt'+q+"",K.appendChild(me),pe.forEach(function(ye,Ae){var Ee=ye.type,Z=Ee===void 0?1:Ee,ke=ye.text,Le=ye.handler,Ie=document.createElement("div");Ie.classList.add(A[Z]),Ie.classList.add(b.classes.button),Ie.classList.add(b.classes.selectChoice);var je=pe[Ae+1];je&&!je.type&&(je.type=1),je&&je.type===Z&&Ie.classList.add(b.classes.selectChoiceRepeated),Ie.innerHTML=ke,Ie.onclick=function(){F(se,re),_(),Le()},K.appendChild(Ie)});var ce=document.createElement("div");ce.classList.add(b.classes.backgroundNeutral),ce.classList.add(b.classes.button),ce.innerHTML=Q,ce.onclick=function(){F(se,re),_(),G?G():Y&&Y()},K.appendChild(ce),K.listener=function(ye){x(ye)&&ce.click()},R(K,re),D(K,re)},$=p.date=function(z,Y,q){var ae=z.value,Q=ae===void 0?new Date:ae,G=z.submitText,pe=G===void 0?"OK":G,he=z.cancelText,re=he===void 0?"Cancel":he,K=z.submitCallback,se=z.cancelCallback,me=z.position,ce=me===void 0?b.positions.date||ce.top:me;B(),U();var ye="▾",Ae=document.createElement("div"),Ee=document.createElement("div"),Z=document.createElement("div"),ke=function(ze){Ae.innerHTML=b.dateMonths[ze.getMonth()],Ee.innerHTML=ze.getDate(),Z.innerHTML=ze.getFullYear()},Le=function(ze){var H=new Date(Q.getFullYear(),Q.getMonth()+1,0).getDate(),de=ze.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(de)>H&&(de=H.toString()),ze.target.textContent=de,Number(de)<1&&(de="1"),Q.setDate(Number(de))},Ie=function(ze){var H=ze.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);ze.target.textContent=H,Q.setFullYear(Number(H))},je=function(ze){ke(Q)},st=function(ze){var H=new Date(Q.getFullYear(),Q.getMonth()+ze+1,0).getDate();Q.getDate()>H&&Q.setDate(H),Q.setMonth(Q.getMonth()+ze),ke(Q)},Pt=function(ze){Q.setDate(Q.getDate()+ze),ke(Q)},pa=function(ze){var H=Q.getFullYear()+ze;H<0?Q.setFullYear(0):Q.setFullYear(Q.getFullYear()+ze),ke(Q)},Ht=document.createElement("div"),Dn=y();Ht.id=Dn;var Un=document.createElement("div");Un.classList.add(b.classes.backgroundInfo);var Oe=document.createElement("div");Oe.classList.add(b.classes.dateSelectorInner);var qt=document.createElement("div");qt.classList.add(b.classes.button),qt.classList.add(b.classes.elementThird),qt.classList.add(b.classes.dateSelectorUp),qt.innerHTML=ye;var rt=document.createElement("div");rt.classList.add(b.classes.button),rt.classList.add(b.classes.elementThird),rt.classList.add(b.classes.dateSelectorUp),rt.innerHTML=ye;var qe=document.createElement("div");qe.classList.add(b.classes.button),qe.classList.add(b.classes.elementThird),qe.classList.add(b.classes.dateSelectorUp),qe.innerHTML=ye,Ae.classList.add(b.classes.element),Ae.classList.add(b.classes.elementThird),Ae.innerHTML=b.dateMonths[Q.getMonth()],Ee.classList.add(b.classes.element),Ee.classList.add(b.classes.elementThird),Ee.setAttribute("contentEditable",!0),Ee.addEventListener("input",Le),Ee.addEventListener("blur",je),Ee.innerHTML=Q.getDate(),Z.classList.add(b.classes.element),Z.classList.add(b.classes.elementThird),Z.setAttribute("contentEditable",!0),Z.addEventListener("input",Ie),Z.addEventListener("blur",je),Z.innerHTML=Q.getFullYear();var Yt=document.createElement("div");Yt.classList.add(b.classes.button),Yt.classList.add(b.classes.elementThird),Yt.innerHTML=ye;var _t=document.createElement("div");_t.classList.add(b.classes.button),_t.classList.add(b.classes.elementThird),_t.innerHTML=ye;var zn=document.createElement("div");zn.classList.add(b.classes.button),zn.classList.add(b.classes.elementThird),zn.innerHTML=ye,qt.onclick=function(){return st(1)},rt.onclick=function(){return Pt(1)},qe.onclick=function(){return pa(1)},Yt.onclick=function(){return st(-1)},_t.onclick=function(){return Pt(-1)},zn.onclick=function(){return pa(-1)};var mt=document.createElement("div");mt.classList.add(b.classes.button),mt.classList.add(b.classes.elementHalf),mt.classList.add(b.classes.backgroundSuccess),mt.innerHTML=pe,mt.onclick=function(){F(Dn,ce),_(),K?K(Q):Y&&Y(Q)};var mn=document.createElement("div");mn.classList.add(b.classes.button),mn.classList.add(b.classes.elementHalf),mn.classList.add(b.classes.backgroundError),mn.innerHTML=re,mn.onclick=function(){F(Dn,ce),_(),se?se(Q):q&&q(Q)},Oe.appendChild(qt),Oe.appendChild(rt),Oe.appendChild(qe),Oe.appendChild(Ae),Oe.appendChild(Ee),Oe.appendChild(Z),Oe.appendChild(Yt),Oe.appendChild(_t),Oe.appendChild(zn),Un.appendChild(Oe),Ht.appendChild(Un),Ht.appendChild(mt),Ht.appendChild(mn),Ht.listener=function(ze){M(ze)?mt.click():x(ze)&&mn.click()},R(Ht,ce),D(Ht,ce)};p.default={alert:j,force:L,confirm:E,input:k,select:I,date:$,setOptions:C,hideAlerts:U}}])})}).call(a,r(0)(n))}])})}),jc={};h2(jc,{default:()=>Lu});var y2=Oc(Nc());b2(jc,Oc(Nc()));var{default:Ic,...E2}=y2,Lu=Ic!==void 0?Ic:E2;g();g();var Ki=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Gi(e,t,n,a){e.addEventListener?e.addEventListener(t,n,a):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function Wc(e,t){for(var n=t.slice(0,t.length-1),a=0;a=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function x2(e,t){for(var n=e.length>=t.length?e:t,a=e.length>=t.length?t:e,r=!0,u=0;u=0&&He.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&He.splice(0,He.length),(t===93||t===224)&&(t=91),t in gt){gt[t]=!1;for(var a in vn)vn[a]===t&&(Ye[a]=!1)}}function L2(e){if(typeof e>"u")Object.keys(nt).forEach(function(o){return delete nt[o]});else if(Array.isArray(e))e.forEach(function(o){o.key&&Vi(o)});else if(typeof e=="object")e.key&&Vi(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a1?Wc(vn,s):[];nt[p]=nt[p].filter(function(m){var d=a?m.method===a:!0;return!(d&&m.scope===n&&x2(m.mods,f))})}})};function zc(e,t,n,a){if(t.element===a){var r;if(t.scope===n||t.scope==="all"){r=t.mods.length>0;for(var u in gt)Object.prototype.hasOwnProperty.call(gt,u)&&(!gt[u]&&t.mods.indexOf(+u)>-1||gt[u]&&t.mods.indexOf(+u)===-1)&&(r=!1);(t.mods.length===0&&!gt[16]&&!gt[18]&&!gt[17]&&!gt[91]||r||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function Hc(e,t){var n=nt["*"],a=e.keyCode||e.which||e.charCode;if(Ye.filter.call(this,e)){if((a===93||a===224)&&(a=91),He.indexOf(a)===-1&&a!==229&&He.push(a),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(d){var h=Ji[d];e[d]&&He.indexOf(h)===-1?He.push(h):!e[d]&&He.indexOf(h)>-1?He.splice(He.indexOf(h),1):d==="metaKey"&&e[d]&&He.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(He=He.slice(He.indexOf(h))))}),a in gt){gt[a]=!0;for(var r in vn)vn[r]===a&&(Ye[r]=!0);if(!n)return}for(var u in gt)Object.prototype.hasOwnProperty.call(gt,u)&&(gt[u]=e[Ji[u]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(He.indexOf(17)===-1&&He.push(17),He.indexOf(18)===-1&&He.push(18),gt[17]=!0,gt[18]=!0);var o=Dr();if(n)for(var i=0;i-1}function Ye(e,t,n){He=[];var a=$c(e),r=[],u="all",o=document,i=0,s=!1,c=!0,l="+",p=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(u=t.scope),t.element&&(o=t.element),t.keyup&&(s=t.keyup),t.keydown!==void 0&&(c=t.keydown),t.capture!==void 0&&(p=t.capture),typeof t.splitKey=="string"&&(l=t.splitKey)),typeof t=="string"&&(u=t);i1&&(r=Wc(vn,e)),e=e[e.length-1],e=e==="*"?"*":Fu(e),e in nt||(nt[e]=[]),nt[e].push({keyup:s,keydown:c,scope:u,mods:r,shortcut:a[i],method:n,key:a[i],splitKey:l,element:o});typeof o<"u"&&!M2(o)&&window&&(Gc.push(o),Gi(o,"keydown",function(f){Hc(f,o)},p),Uc||(Uc=!0,Gi(window,"focus",function(){He=[]},p)),Gi(o,"keyup",function(f){Hc(f,o),D2(f)},p))}function F2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(nt).forEach(function(n){var a=nt[n].filter(function(r){return r.scope===t&&r.shortcut===e});a.forEach(function(r){r&&r.method&&r.method()})})}var Yi={getPressedKeyString:v2,setScope:Vc,getScope:Dr,deleteScope:S2,getPressedKeyCodes:w2,isPressed:A2,filter:k2,trigger:F2,unbind:L2,keyMap:Sr,modifier:vn,modifierMap:Ji};for(Mu in Yi)Object.prototype.hasOwnProperty.call(Yi,Mu)&&(Ye[Mu]=Yi[Mu]);var Mu;typeof document<"u"&&(qc=window.hotkeys,Ye.noConflict=function(e){return e&&window.hotkeys===Ye&&(window.hotkeys=qc),Ye},window.hotkeys=Ye);var qc;g();g();var P2={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},Jc={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Xe={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},kt={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},qn={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},W=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let a=W.getVersionPrecision(e),r=W.getVersionPrecision(t),u=Math.max(a,r),o=0,i=W.map([e,t],s=>{let c=u-W.getVersionPrecision(s),l=s+new Array(c+1).join(".0");return W.map(l.split("."),p=>new Array(20-p.length).join("0")+p).reverse()});for(n&&(o=u-Math.min(a,r)),u-=1;u>=o;){if(i[0][u]>i[1][u])return 1;if(i[0][u]===i[1][u]){if(u===o)return 0;u-=1}else if(i[0][u]{n[o]=u[o]})}return e}static getBrowserAlias(e){return P2[e]}static getBrowserTypeByAlias(e){return Jc[e]||""}},Ne=/version\/(\d+(\.?_?\d+)+)/i,_2=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=W.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||W.getFirstMatch(Ne,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=W.getFirstMatch(Ne,e)||W.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=W.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||W.getFirstMatch(Ne,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=W.getFirstMatch(Ne,e)||W.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=W.getFirstMatch(Ne,e)||W.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=W.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(Ne,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=W.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(Ne,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=W.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(Ne,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=W.getFirstMatch(Ne,e)||W.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=W.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ne,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=W.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ne,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=W.getFirstMatch(Ne,e)||W.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=W.getFirstMatch(Ne,e)||W.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=W.getFirstMatch(Ne,e)||W.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=W.getFirstMatch(Ne,e)||W.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=W.getFirstMatch(Ne,e)||W.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=W.getFirstMatch(Ne,e)||W.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=W.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ne,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=W.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ne,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=W.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=W.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=W.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=W.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=W.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=W.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=W.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=W.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=W.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=W.getFirstMatch(Ne,e)||W.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=W.getFirstMatch(Ne,e)||W.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=W.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=W.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ne,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=W.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ne,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=W.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=W.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=W.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=W.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ne,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=W.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=W.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=W.getFirstMatch(Ne,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=W.getFirstMatch(Ne,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=W.getFirstMatch(Ne,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,a=e.search("\\(")!==-1?n:t;return{name:W.getFirstMatch(a,e),version:W.getSecondMatch(a,e)}}}],B2=_2,R2=[{test:[/Roku\/DVP/],describe(e){let t=W.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:kt.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=W.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:kt.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=W.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=W.getWindowsVersionName(t);return{name:kt.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:kt.iOS},n=W.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=W.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=W.getMacOSVersionName(t),a={name:kt.MacOS,version:t};return n&&(a.versionName=n),a}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=W.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:kt.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=W.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=W.getAndroidVersionName(t),a={name:kt.Android,version:t};return n&&(a.versionName=n),a}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=W.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:kt.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=W.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||W.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||W.getFirstMatch(/\bbb(\d+)/i,e);return{name:kt.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=W.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:kt.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=W.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:kt.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:kt.Linux}}},{test:[/CrOS/],describe(){return{name:kt.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=W.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:kt.PlayStation4,version:t}}}],I2=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=W.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Xe.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Xe.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Xe.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Xe.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Xe.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Xe.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Xe.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=W.getFirstMatch(/(ipod|iphone)/i,e);return{type:Xe.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Xe.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Xe.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Xe.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Xe.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Xe.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Xe.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Xe.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Xe.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Xe.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Xe.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Xe.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Xe.tv}}}],O2=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:qn.Blink};let t=W.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:qn.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:qn.Trident},n=W.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:qn.Presto},n=W.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:qn.Gecko},n=W.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:qn.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:qn.WebKit},n=W.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],N2=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=W.find(B2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=W.find(R2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=W.find(I2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=W.find(O2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return W.assign({},this.parsedResult)}satisfies(e){let t={},n=0,a={},r=0;if(Object.keys(e).forEach(u=>{let o=e[u];typeof o=="string"?(a[u]=o,r+=1):typeof o=="object"&&(t[u]=o,n+=1)}),n>0){let u=Object.keys(t),o=W.find(u,s=>this.isOS(s));if(o){let s=this.satisfies(t[o]);if(s!==void 0)return s}let i=W.find(u,s=>this.isPlatform(s));if(i){let s=this.satisfies(t[i]);if(s!==void 0)return s}}if(r>0){let u=Object.keys(a),o=W.find(u,i=>this.isBrowser(i,!0));if(o!==void 0)return this.compareVersion(a[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),a=e.toLowerCase(),r=W.getBrowserTypeByAlias(a);return t&&r&&(a=r.toLowerCase()),a===n}compareVersion(e){let t=[0],n=e,a=!1,r=this.getBrowserVersion();if(typeof r=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(a=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(a=!0,n=e.substr(1)),t.indexOf(W.compareVersions(r,n,a))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},Yc=N2,j2=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new Yc(e,t)}static parse(e){return new Yc(e).getResult()}static get BROWSER_MAP(){return Jc}static get ENGINE_MAP(){return qn}static get OS_MAP(){return kt}static get PLATFORMS_MAP(){return Xe}},ja=j2;g();g();var{entries:r4,setPrototypeOf:Qc,isFrozen:U2,getPrototypeOf:z2,getOwnPropertyDescriptor:H2}=Object,{freeze:At,seal:pn,create:q2}=Object,{apply:ns,construct:as}=typeof Reflect<"u"&&Reflect;ns||(ns=function(e,t,n){return e.apply(t,n)});At||(At=function(e){return e});pn||(pn=function(e){return e});as||(as=function(e,t){return new e(...t)});var W2=Zt(Array.prototype.forEach),Zc=Zt(Array.prototype.pop),Lr=Zt(Array.prototype.push),Bu=Zt(String.prototype.toLowerCase),Qi=Zt(String.prototype.toString),$2=Zt(String.prototype.match),gn=Zt(String.prototype.replace),K2=Zt(String.prototype.indexOf),G2=Zt(String.prototype.trim),Wt=Zt(RegExp.prototype.test),Mr=V2(TypeError);function Zt(e){return function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r/gm),X2=pn(/\${[\w\W]*}/gm),e1=pn(/^data-[\-\w.\u00B7-\uFFFF]/),t1=pn(/^aria-[\-\w]+$/),u4=pn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),n1=pn(/^(?:\w+script|data):/i),a1=pn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),o4=pn(/^html$/i),a4=Object.freeze({__proto__:null,MUSTACHE_EXPR:Q2,ERB_EXPR:Z2,TMPLIT_EXPR:X2,DATA_ATTR:e1,ARIA_ATTR:t1,IS_ALLOWED_URI:u4,IS_SCRIPT_OR_DATA:n1,ATTR_WHITESPACE:a1,DOCTYPE_NAME:o4}),r1=()=>typeof window>"u"?null:window,u1=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,a="data-tt-policy-suffix";t&&t.hasAttribute(a)&&(n=t.getAttribute(a));let r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML(u){return u},createScriptURL(u){return u}})}catch{return null}};function i4(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:r1(),t=v=>i4(v);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,a=n.currentScript,{document:r}=e,{DocumentFragment:u,HTMLTemplateElement:o,Node:i,Element:s,NodeFilter:c,NamedNodeMap:l=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:p,DOMParser:f,trustedTypes:m}=e,d=s.prototype,h=Pu(d,"cloneNode"),T=Pu(d,"nextSibling"),b=Pu(d,"childNodes"),C=Pu(d,"parentNode");if(typeof o=="function"){let v=r.createElement("template");v.content&&v.content.ownerDocument&&(r=v.content.ownerDocument)}let w,O="",{implementation:B,createNodeIterator:y,createDocumentFragment:A,getElementsByTagName:P}=r,{importNode:M}=n,x={};t.isSupported=typeof r4=="function"&&typeof C=="function"&&B&&B.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:R,ERB_EXPR:F,TMPLIT_EXPR:D,DATA_ATTR:_,ARIA_ATTR:U,IS_SCRIPT_OR_DATA:j,ATTR_WHITESPACE:L}=a4,{IS_ALLOWED_URI:E}=a4,k=null,I=Se({},[...Xc,...Zi,...Xi,...es,...e4]),$=null,z=Se({},[...t4,...ts,...n4,..._u]),Y=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),q=null,ae=null,Q=!0,G=!0,pe=!1,he=!0,re=!1,K=!1,se=!1,me=!1,ce=!1,ye=!1,Ae=!1,Ee=!0,Z=!1,ke="user-content-",Le=!0,Ie=!1,je={},st=null,Pt=Se({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),pa=null,Ht=Se({},["audio","video","img","source","image","track"]),Dn=null,Un=Se({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Oe="http://www.w3.org/1998/Math/MathML",qt="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml",qe=rt,Yt=!1,_t=null,zn=Se({},[Oe,qt,rt],Qi),mt,mn=["application/xhtml+xml","text/html"],ze="text/html",H,de=null,Ke=r.createElement("form"),Me=function(v){return v instanceof RegExp||v instanceof Function},Pe=function(v){if(!(de&&de===v)){if((!v||typeof v!="object")&&(v={}),v=Ua(v),mt=mn.indexOf(v.PARSER_MEDIA_TYPE)===-1?mt=ze:mt=v.PARSER_MEDIA_TYPE,H=mt==="application/xhtml+xml"?Qi:Bu,k="ALLOWED_TAGS"in v?Se({},v.ALLOWED_TAGS,H):I,$="ALLOWED_ATTR"in v?Se({},v.ALLOWED_ATTR,H):z,_t="ALLOWED_NAMESPACES"in v?Se({},v.ALLOWED_NAMESPACES,Qi):zn,Dn="ADD_URI_SAFE_ATTR"in v?Se(Ua(Un),v.ADD_URI_SAFE_ATTR,H):Un,pa="ADD_DATA_URI_TAGS"in v?Se(Ua(Ht),v.ADD_DATA_URI_TAGS,H):Ht,st="FORBID_CONTENTS"in v?Se({},v.FORBID_CONTENTS,H):Pt,q="FORBID_TAGS"in v?Se({},v.FORBID_TAGS,H):{},ae="FORBID_ATTR"in v?Se({},v.FORBID_ATTR,H):{},je="USE_PROFILES"in v?v.USE_PROFILES:!1,Q=v.ALLOW_ARIA_ATTR!==!1,G=v.ALLOW_DATA_ATTR!==!1,pe=v.ALLOW_UNKNOWN_PROTOCOLS||!1,he=v.ALLOW_SELF_CLOSE_IN_ATTR!==!1,re=v.SAFE_FOR_TEMPLATES||!1,K=v.WHOLE_DOCUMENT||!1,ce=v.RETURN_DOM||!1,ye=v.RETURN_DOM_FRAGMENT||!1,Ae=v.RETURN_TRUSTED_TYPE||!1,me=v.FORCE_BODY||!1,Ee=v.SANITIZE_DOM!==!1,Z=v.SANITIZE_NAMED_PROPS||!1,Le=v.KEEP_CONTENT!==!1,Ie=v.IN_PLACE||!1,E=v.ALLOWED_URI_REGEXP||u4,qe=v.NAMESPACE||rt,Y=v.CUSTOM_ELEMENT_HANDLING||{},v.CUSTOM_ELEMENT_HANDLING&&Me(v.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Y.tagNameCheck=v.CUSTOM_ELEMENT_HANDLING.tagNameCheck),v.CUSTOM_ELEMENT_HANDLING&&Me(v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Y.attributeNameCheck=v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),v.CUSTOM_ELEMENT_HANDLING&&typeof v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Y.allowCustomizedBuiltInElements=v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),re&&(G=!1),ye&&(ce=!0),je&&(k=Se({},[...e4]),$=[],je.html===!0&&(Se(k,Xc),Se($,t4)),je.svg===!0&&(Se(k,Zi),Se($,ts),Se($,_u)),je.svgFilters===!0&&(Se(k,Xi),Se($,ts),Se($,_u)),je.mathMl===!0&&(Se(k,es),Se($,n4),Se($,_u))),v.ADD_TAGS&&(k===I&&(k=Ua(k)),Se(k,v.ADD_TAGS,H)),v.ADD_ATTR&&($===z&&($=Ua($)),Se($,v.ADD_ATTR,H)),v.ADD_URI_SAFE_ATTR&&Se(Dn,v.ADD_URI_SAFE_ATTR,H),v.FORBID_CONTENTS&&(st===Pt&&(st=Ua(st)),Se(st,v.FORBID_CONTENTS,H)),Le&&(k["#text"]=!0),K&&Se(k,["html","head","body"]),k.table&&(Se(k,["tbody"]),delete q.tbody),v.TRUSTED_TYPES_POLICY){if(typeof v.TRUSTED_TYPES_POLICY.createHTML!="function")throw Mr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof v.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Mr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=v.TRUSTED_TYPES_POLICY,O=w.createHTML("")}else w===void 0&&(w=u1(m,a)),w!==null&&typeof O=="string"&&(O=w.createHTML(""));At&&At(v),de=v}},Ln=Se({},["mi","mo","mn","ms","mtext"]),wn=Se({},["foreignobject","desc","title","annotation-xml"]),Jt=Se({},["title","style","font","a","script"]),Ba=Se({},Zi);Se(Ba,Xi),Se(Ba,Y2);let Fi=Se({},es);Se(Fi,J2);let af=function(v){let ie=C(v);(!ie||!ie.tagName)&&(ie={namespaceURI:qe,tagName:"template"});let X=Bu(v.tagName),Be=Bu(ie.tagName);return _t[v.namespaceURI]?v.namespaceURI===qt?ie.namespaceURI===rt?X==="svg":ie.namespaceURI===Oe?X==="svg"&&(Be==="annotation-xml"||Ln[Be]):!!Ba[X]:v.namespaceURI===Oe?ie.namespaceURI===rt?X==="math":ie.namespaceURI===qt?X==="math"&&wn[Be]:!!Fi[X]:v.namespaceURI===rt?ie.namespaceURI===qt&&!wn[Be]||ie.namespaceURI===Oe&&!Ln[Be]?!1:!Fi[X]&&(Jt[X]||!Ba[X]):!!(mt==="application/xhtml+xml"&&_t[v.namespaceURI]):!1},Ra=function(v){Lr(t.removed,{element:v});try{v.parentNode.removeChild(v)}catch{v.remove()}},Pi=function(v,ie){try{Lr(t.removed,{attribute:ie.getAttributeNode(v),from:ie})}catch{Lr(t.removed,{attribute:null,from:ie})}if(ie.removeAttribute(v),v==="is"&&!$[v])if(ce||ye)try{Ra(ie)}catch{}else try{ie.setAttribute(v,"")}catch{}},uc=function(v){let ie,X;if(me)v=""+v;else{let vt=$2(v,/^[\r\n\t ]+/);X=vt&&vt[0]}mt==="application/xhtml+xml"&&qe===rt&&(v=''+v+"");let Be=w?w.createHTML(v):v;if(qe===rt)try{ie=new f().parseFromString(Be,mt)}catch{}if(!ie||!ie.documentElement){ie=B.createDocument(qe,"template",null);try{ie.documentElement.innerHTML=Yt?O:Be}catch{}}let ut=ie.body||ie.documentElement;return v&&X&&ut.insertBefore(r.createTextNode(X),ut.childNodes[0]||null),qe===rt?P.call(ie,K?"html":"body")[0]:K?ie.documentElement:ut},oc=function(v){return y.call(v.ownerDocument||v,v,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},rf=function(v){return v instanceof p&&(typeof v.nodeName!="string"||typeof v.textContent!="string"||typeof v.removeChild!="function"||!(v.attributes instanceof l)||typeof v.removeAttribute!="function"||typeof v.setAttribute!="function"||typeof v.namespaceURI!="string"||typeof v.insertBefore!="function"||typeof v.hasChildNodes!="function")},Tu=function(v){return typeof i=="object"?v instanceof i:v&&typeof v=="object"&&typeof v.nodeType=="number"&&typeof v.nodeName=="string"},Mn=function(v,ie,X){x[v]&&W2(x[v],Be=>{Be.call(t,ie,X,de)})},ic=function(v){let ie;if(Mn("beforeSanitizeElements",v,null),rf(v))return Ra(v),!0;let X=H(v.nodeName);if(Mn("uponSanitizeElement",v,{tagName:X,allowedTags:k}),v.hasChildNodes()&&!Tu(v.firstElementChild)&&(!Tu(v.content)||!Tu(v.content.firstElementChild))&&Wt(/<[/\w]/g,v.innerHTML)&&Wt(/<[/\w]/g,v.textContent))return Ra(v),!0;if(!k[X]||q[X]){if(!q[X]&&lc(X)&&(Y.tagNameCheck instanceof RegExp&&Wt(Y.tagNameCheck,X)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(X)))return!1;if(Le&&!st[X]){let Be=C(v)||v.parentNode,ut=b(v)||v.childNodes;if(ut&&Be){let vt=ut.length;for(let Bt=vt-1;Bt>=0;--Bt)Be.insertBefore(h(ut[Bt],!0),T(v))}}return Ra(v),!0}return v instanceof s&&!af(v)||(X==="noscript"||X==="noembed")&&Wt(/<\/no(script|embed)/i,v.innerHTML)?(Ra(v),!0):(re&&v.nodeType===3&&(ie=v.textContent,ie=gn(ie,R," "),ie=gn(ie,F," "),ie=gn(ie,D," "),v.textContent!==ie&&(Lr(t.removed,{element:v.cloneNode()}),v.textContent=ie)),Mn("afterSanitizeElements",v,null),!1)},sc=function(v,ie,X){if(Ee&&(ie==="id"||ie==="name")&&(X in r||X in Ke))return!1;if(!(G&&!ae[ie]&&Wt(_,ie))&&!(Q&&Wt(U,ie))){if(!$[ie]||ae[ie]){if(!(lc(v)&&(Y.tagNameCheck instanceof RegExp&&Wt(Y.tagNameCheck,v)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(v))&&(Y.attributeNameCheck instanceof RegExp&&Wt(Y.attributeNameCheck,ie)||Y.attributeNameCheck instanceof Function&&Y.attributeNameCheck(ie))||ie==="is"&&Y.allowCustomizedBuiltInElements&&(Y.tagNameCheck instanceof RegExp&&Wt(Y.tagNameCheck,X)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(X))))return!1}else if(!Dn[ie]&&!Wt(E,gn(X,L,""))&&!((ie==="src"||ie==="xlink:href"||ie==="href")&&v!=="script"&&K2(X,"data:")===0&&pa[v])&&!(pe&&!Wt(j,gn(X,L,"")))&&X)return!1}return!0},lc=function(v){return v.indexOf("-")>0},cc=function(v){let ie,X,Be,ut;Mn("beforeSanitizeAttributes",v,null);let{attributes:vt}=v;if(!vt)return;let Bt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:$};for(ut=vt.length;ut--;){ie=vt[ut];let{name:lt,namespaceURI:Ia}=ie;if(X=lt==="value"?ie.value:G2(ie.value),Be=H(lt),Bt.attrName=Be,Bt.attrValue=X,Bt.keepAttr=!0,Bt.forceKeepAttr=void 0,Mn("uponSanitizeAttribute",v,Bt),X=Bt.attrValue,Bt.forceKeepAttr||(Pi(lt,v),!Bt.keepAttr))continue;if(!he&&Wt(/\/>/i,X)){Pi(lt,v);continue}re&&(X=gn(X,R," "),X=gn(X,F," "),X=gn(X,D," "));let dc=H(v.nodeName);if(sc(dc,Be,X)){if(Z&&(Be==="id"||Be==="name")&&(Pi(lt,v),X=ke+X),w&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!Ia)switch(m.getAttributeType(dc,Be)){case"TrustedHTML":{X=w.createHTML(X);break}case"TrustedScriptURL":{X=w.createScriptURL(X);break}}try{Ia?v.setAttributeNS(Ia,lt,X):v.setAttribute(lt,X),Zc(t.removed)}catch{}}}Mn("afterSanitizeAttributes",v,null)},uf=function v(ie){let X,Be=oc(ie);for(Mn("beforeSanitizeShadowDOM",ie,null);X=Be.nextNode();)Mn("uponSanitizeShadowNode",X,null),!ic(X)&&(X.content instanceof u&&v(X.content),cc(X));Mn("afterSanitizeShadowDOM",ie,null)};return t.sanitize=function(v){let ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X,Be,ut,vt;if(Yt=!v,Yt&&(v=""),typeof v!="string"&&!Tu(v))if(typeof v.toString=="function"){if(v=v.toString(),typeof v!="string")throw Mr("dirty is not a string, aborting")}else throw Mr("toString is not a function");if(!t.isSupported)return v;if(se||Pe(ie),t.removed=[],typeof v=="string"&&(Ie=!1),Ie){if(v.nodeName){let Ia=H(v.nodeName);if(!k[Ia]||q[Ia])throw Mr("root node is forbidden and cannot be sanitized in-place")}}else if(v instanceof i)X=uc(""),Be=X.ownerDocument.importNode(v,!0),Be.nodeType===1&&Be.nodeName==="BODY"||Be.nodeName==="HTML"?X=Be:X.appendChild(Be);else{if(!ce&&!re&&!K&&v.indexOf("<")===-1)return w&&Ae?w.createHTML(v):v;if(X=uc(v),!X)return ce?null:Ae?O:""}X&&me&&Ra(X.firstChild);let Bt=oc(Ie?v:X);for(;ut=Bt.nextNode();)ic(ut)||(ut.content instanceof u&&uf(ut.content),cc(ut));if(Ie)return v;if(ce){if(ye)for(vt=A.call(X.ownerDocument);X.firstChild;)vt.appendChild(X.firstChild);else vt=X;return($.shadowroot||$.shadowrootmod)&&(vt=M.call(n,vt,!0)),vt}let lt=K?X.outerHTML:X.innerHTML;return K&&k["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&Wt(o4,X.ownerDocument.doctype.name)&&(lt=" -`+lt),re&&(lt=gn(lt,R," "),lt=gn(lt,F," "),lt=gn(lt,D," ")),w&&Ae?w.createHTML(lt):lt},t.setConfig=function(v){Pe(v),se=!0},t.clearConfig=function(){de=null,se=!1},t.isValidAttribute=function(v,ie,X){de||Pe({});let Be=H(v),ut=H(ie);return sc(Be,ut,X)},t.addHook=function(v,ie){typeof ie=="function"&&(x[v]=x[v]||[],Lr(x[v],ie))},t.removeHook=function(v){if(x[v])return Zc(x[v])},t.removeHooks=function(v){x[v]&&(x[v]=[])},t.removeAllHooks=function(){x={}},t}var _e=i4();var o1=Lu.alert;g();g();var s4={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",curentPlan:"\u5F53\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52A8\u7EED\u671F",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",sponsorLabel:"$1 \u8D77\u8D5E\u52A9\u5F00\u53D1\u8005",help:"\u5E2E\u52A9",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D\uFF0C\u518D\u70B9\u51FB\u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D\u5373\u53EF\u8BBE\u7F6E",browserShortcutsNoteForChrome:"\u7C7BChrome \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762\uFF0C\u5728`\u7BA1\u7406\u5FEB\u6377\u952E`\u9762\u677F(`chrome://extensions/shortcuts`)\u8BBE\u7F6E\uFF0C\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8DF3\u8F6C\u5230\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E\u683C\u5F0F\u4E3A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1: \u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1 & PDF\u6587\u6863\u7FFB\u8BD1","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7F51\u9875\u53CC\u8BED\u7FFB\u8BD1\u6269\u5C55\uFF0C\u540C\u65F6\u652F\u6301 PDF \u7FFB\u8BD1\uFF0C\u53CC\u8BED Epub \u7535\u5B50\u4E66\u5236\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u817E\u8BAF\u7FFB\u8BD1\u7B49\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\uFF0C\u514D\u8D39\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8BD1\u5E76\u9690\u85CF\u539F\u6587/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.toggleTranslationMask":"\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.donateContext":"\u4E86\u89E3\u8D5E\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5219\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875(\u4EC5\u8BD1\u6587)/\u663E\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7","fingers.0":"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478",mouseHoldKey:"+ {key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoverHoldKey:"\u9F20\u6807\u60AC\u505C\u540C\u65F6\u6309\u4E0B\u5FEB\u6377\u952E\u7FFB\u8BD1\u6BB5\u843D","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u6587\u6863",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",goAdvancedSettings:"\u53BB\u8FDB\u9636\u8BBE\u7F6E\u9875",goAdvancedInterfaceSettings:"\u53BB\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u8BBE\u7F6E\u9875\u9762",advanced:"\u8FDB\u9636\u8BBE\u7F6E",advancedDescription:"\u4E00\u822C\u65E0\u9700\u8BBE\u7F6E\uFF0C\u4FDD\u6301\u9ED8\u8BA4\u5373\u53EF\u3002\u4EC5\u5BF9\u4E8E\u66F4\u4E13\u4E1A\u7684\u7528\u6237\uFF0C\u63D0\u4F9B\u66F4\u4E2A\u6027\u5316\u7684\u8BBE\u7F6E\u9879\u3002",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00","display both the original text and the translation":"\u540C\u65F6\u663E\u793A\u539F\u6587\u548C\u8BD1\u6587","keyboard shortcuts":"\u952E\u76D8\u5FEB\u6377\u952E",modify:"\u4FEE\u6539\u5FEB\u6377\u952E",reset:"\u91CD\u7F6E",close:"\u5173\u95ED",homepage:"\u4E3B\u9875",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",changeToOnlyTranslationMode:"\u5207\u6362\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u5207\u6362\u4E3A\u53CC\u8BED\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",unknownError:"\u672A\u77E5\u9519\u8BEF",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",needActionForOptions:"(\u9700\u8BBE\u7F6E)",translationEngine:"\u5F15\u64CE\u9009\u9879",sourceLanguage:"\u539F\u6587\u8BED\u8A00",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",forThisSite:"\u5F53\u524D\u7F51\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1 {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8BD1 {language}",alwaysTranslateSomeSite:"\u603B\u662F\u7FFB\u8BD1 {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8BD1 {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u6DFB\u52A0",default:"\u9ED8\u8BA4",forThisLanguage:"\u9488\u5BF9\u8BE5\u8BED\u8A00\uFF1A","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91","translate other languages into specific language":"\u5C06\u5176\u4ED6\u8BED\u8A00\u7FFB\u8BD1\u4E3A\u4F60\u8BBE\u7F6E\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1",language:"\u8BED\u8A00","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",Error:"\u9519\u8BEF",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",interface:"\u754C\u9762\u8BBE\u7F6E",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8BD1\u9875\u9762\u6807\u9898","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1",enableUserscriptPagePopup:"\u5728\u9875\u9762\u4E0A\u663E\u793A\u60AC\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528\u5FEB\u6377\u952E/{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8BD1\u6587\u6837\u5F0F",currentUrl:"\u5F53\u524D\u7F51\u5740",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664","languages.auto":"\u81EA\u52A8\u68C0\u6D4B",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",upload:"\u4E0A\u4F20",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",download:"\u4E0B\u8F7D",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",deleteFail:"\u5220\u9664\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",backupToCloudDescription:"\u624B\u52A8\u4E0A\u4F20\u6216\u6062\u590D\u5907\u4EFD\u6587\u4EF6\uFF0C\u6700\u591A\u5141\u8BB83\u4E2A\u4E0D\u540C\u7684\u5907\u4EFD",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",updatedAt:"\u66F4\u65B0\u4E8E {date}",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u9891\u9053",joinTelegramChannel:"\u5173\u6CE8 Telegram \u9891\u9053\u83B7\u53D6\u6700\u65B0\u66F4\u65B0",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",autoSync:"\u81EA\u52A8\u5B9A\u65F6\u540C\u6B65",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863","edit border color":"\u4FEE\u6539\u8FB9\u6846\u989C\u8272",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",enableSubtitle:"\u5F00\u542F\u5B57\u5E55\u7FFB\u8BD1",enableSubtitleDescription:"\u9488\u5BF9 youtube \u7B49\u7F51\u7AD9\u7684\u5B57\u5E55\u533A\u57DF\u5F00\u542F\u7FFB\u8BD1",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",enableSearchEnhancement:"\u542F\u7528\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A",enableSearchEnhancementDescription:"\u5F00\u542F\u540E\uFF0C\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\u793E\u533A\uFF09\u53F3\u8FB9\u680F\u81EA\u52A8\u663E\u793A\u5BF9\u5E94\u82F1\u6587\u5173\u952E\u8BCD\u7684\u201C\u8C37\u6B4C\u65B0\u95FB\u201D\u641C\u7D22\u7ED3\u679C\u3002",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerMinute":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u5206\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u8350\uFF09, \u5C06\u4F1A\u5728\u5355\u72EC\u4F5C\u4E3A\u4E00\u6BB5\u53D1\u9001\u7ED9 OpenAI","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740",enabledExtension:"\u542F\u7528\u6269\u5C55",clickToDisableExtension:"\u70B9\u51FB\u7981\u7528\u6269\u5C55",clickToEnableExtension:"\u70B9\u51FB\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",modifyMouseHoverKey:"\u4FEE\u6539\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u8BBE\u7F6E",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",disableTint:"* \u4F60\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u542F\u7528\u3002",searchEnhancementNotes:"\u6211\u4EEC\u53D1\u73B0\uFF0C\u4E2D\u6587\u5173\u952E\u8BCD\u548C\u82F1\u6587\u5173\u952E\u8BCD\u7684\u65B0\u95FB\u7ED3\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u542F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u529F\u80FD\u540E\uFF0C\u6211\u4EEC\u4F1A\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\u7F51\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52A8\u7528\u82F1\u6587\u4E3A\u4F60\u641C\u7D22\u540C\u6837\u7684\u5173\u952E\u8BCD\u5E76\u5C55\u793A\u5728\u53F3\u4FA7\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8BE5\u529F\u80FD\u7684\u8BDD\uFF0C\u53EF\u4EE5\u9009\u62E9\u7981\u7528\u5B83\u3002",option:"\u8BBE\u7F6E",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",needLoginAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u81EA\u5B9A\u4E49)",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",onetime_7day:"7 \u5929\u4F53\u9A8C\u5305",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradePlan:"\u70B9\u6B64\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL \u548C OpenAI \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8BD1",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u8BBE\u7F6E\u5176\u4ED6\u5FEB\u6377\u952E\u6765\u89E6\u53D1\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1"};var l4={nologin:"\u672A\u767B\u9304",login:"\u767B\u9304",manageAccount:"\u7BA1\u7406\u8CEC\u6236",logout:"\u9000\u51FA",curentPlan:"\u7576\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u671F",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u64CA\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u8AAA\u660E",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u9644\u52A0\u5143\u4EF6\u7BA1\u7406\u9801\u9762 \u300Cabout:addons\u300D\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u5716\u793A\u300D\uFF0C\u518D\u9EDE\u9078\u300C\u7BA1\u7406\u64F4\u5145\u5957\u4EF6\u5FEB\u901F\u9375\u300D\u5373\u53EF\u8A2D\u5B9A",browserShortcutsNoteForChrome:"Chromium \u6838\u5FC3\u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u64F4\u5145\u529F\u80FD\u7BA1\u7406\u9801\u9762\uFF0C\u5728\u300C\u9375\u76E4\u5FEB\u901F\u9375\u300D\u9801\u9762(chrome://extensions/shortcuts)\u8A2D\u5B9A\uFF0C\u9EDE\u9078\u4E0B\u65B9\u6309\u9215\u524D\u5F80\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u901F\u9375\u683C\u5F0F\u70BA\uFF1A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F: \u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F & PDF\u6587\u6A94\u7FFB\u8B6F","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7DB2\u9801\u96D9\u8A9E\u7FFB\u8B6F\u64F4\u5C55\uFF0C\u540C\u6642\u652F\u6301 PDF \u7FFB\u8B6F\uFF0C\u96D9\u8A9E Epub \u96FB\u5B50\u66F8\u88FD\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u9A30\u8A0A\u7FFB\u8B6F\u7B49\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF0C\u514D\u8CBB\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8B6F\u4E26\u96B1\u85CF\u539F\u6587/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.toggleTranslationMask":"\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.donateContext":"\u4E86\u89E3\u8D0A\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u5247\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u6642\u89F8\u78B0\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801(\u50C5\u8B6F\u6587)/\u986F\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304","fingers.0":"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478",mouseHoldKey:"+ {key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u6377\u9375(\u6253\u958B\u8A2D\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoverHoldKey:"\u9F20\u6A19\u6ED1\u904E\u540C\u6642\u6309\u4E0B X \u9375\u7FFB\u8B6F\u6BB5\u843D","mouse-translate":"\u9F20\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",goAdvancedSettings:"\u524D\u5F80\u9032\u968E\u8A2D\u5B9A\u9801\u9762",goAdvancedInterfaceSettings:"\u524D\u5F80\u81EA\u8A02\u8A2D\u5B9A\u9801\u9762",advanced:"\u9032\u968E\u8A2D\u5B9A",advancedDescription:"\u6B63\u5E38\u60C5\u6CC1\u7121\u9700\u8A2D\u5B9A\uFF0C\u4FDD\u6301\u9810\u8A2D\u5373\u53EF\u3002\u50C5\u91DD\u5C0D\u66F4\u5C08\u696D\u7684\u4F7F\u7528\u8005\uFF0C\u63D0\u4F9B\u66F4\u500B\u4EBA\u5316\u7684\u8A2D\u5B9A\u9805\u76EE\u3002",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00","display both the original text and the translation":"\u540C\u6642\u986F\u793A\u539F\u6587\u548C\u8B6F\u6587","keyboard shortcuts":"\u9375\u76E4\u5FEB\u901F\u9375",modify:"\u8B8A\u66F4\u5FEB\u901F\u9375",reset:"\u91CD\u8A2D",close:"\u95DC\u9589",homepage:"\u9996\u9801",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",changeToOnlyTranslationMode:"\u5207\u63DB\u70BA\u50C5\u986F\u793A\u8B6F\u6587",changeToDualTranslationMode:"\u5207\u63DB\u70BA\u96D9\u8A9E\u7FFB\u8B6F",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:"\u672A\u77E5\u7684\u932F\u8AA4",canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u9078\u9805",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",needActionForOptions:"(\u9700\u8A2D\u5B9A)",translationEngine:"\u5F15\u64CE\u9078\u9805",sourceLanguage:"\u539F\u6587\u8A9E\u8A00",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",forThisSite:"\u7576\u524D\u7DB2\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8B6F {language}",alwaysTranslateSomeSite:"\u7E3D\u662F\u7FFB\u8B6F {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8B6F {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u65B0\u589E",default:"\u9810\u8A2D",forThisLanguage:"\u91DD\u5C0D\u8A72\u8A9E\u8A00\uFF1A","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F","translate other languages into specific language":"\u5C07\u5176\u5B83\u8A9E\u8A00\u7FFB\u8B6F\u70BA\u4F60\u8A2D\u5B9A\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9",language:"\u8A9E\u8A00","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",Error:"\u932F\u8AA4",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",interface:"\u4ECB\u9762\u8A2D\u5B9A",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65",syncToAccount:"\u540C\u6B65\u5230\u8CEC\u6236",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u8CEC\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u8A2D\u5099\u4E4B\u9593\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u8CEC\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u8CEC\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8B6F","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9E\u99AC\u905C\u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8B6F\u9801\u9762\u6A19\u984C","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F",enableUserscriptPagePopup:"\u5728\u9801\u9762\u4E0A\u986F\u793A\u61F8\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528\u5FEB\u901F\u9375/{touch}\u518D\u6B21\u986F\u793A\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5EFA\u8B70\u5C07\u672C\u8A2D\u5B9A\u9801\u9762\u52A0\u5165\u81F3\u6211\u7684\u6700\u611B","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8B6F\u6587\u6A23\u5F0F",currentUrl:"\u76EE\u524D\u7DB2\u5740",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6E96\u3002",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",upload:"\u4E0A\u50B3",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",download:"\u4E0B\u8F09",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",deleteFail:"\u522A\u9664\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",backupToCloudDescription:"\u624B\u52D5\u4E0A\u50B3\u6216\u9084\u539F\u5099\u4EFD\u6A94\u6848\uFF0C\u6700\u591A\u5141\u8A31 3 \u500B\u4E0D\u540C\u7684\u5099\u4EFD",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",updatedAt:"\u66F4\u65B0\u65BC {date}",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u4EEC\u7684<3>Twitter\uFF0C<4>Telegram \u983B\u9053\u4EE5\u53CA\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u90F5\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u983B\u9053",joinTelegramChannel:"\u95DC\u6CE8 Telegram \u983B\u9053\u77AD\u89E3\u66F4\u65B0\u8CC7\u8A0A",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",autoSync:"\u81EA\u52D5\u5B9A\u6642\u540C\u6B65",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6","edit border color":"\u8B8A\u66F4\u908A\u6846\u8272\u5F69",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",enableSubtitle:"\u958B\u555F\u5B57\u5E55\u7FFB\u8B6F",enableSubtitleDescription:"\u91DD\u5C0D youtube \u7B49\u7DB2\u7AD9\u7684\u5B57\u5E55\u5340\u57DF\u958B\u555F\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",enableSearchEnhancement:"\u958B\u555F\u641C\u7D22\u589E\u5F37",enableSearchEnhancementDescription:"\u4E2D\u6587\u641C\u7D22\u8C37\u6B4C\u6703\u5728\u53F3\u908A\u51FA\u73FE\u82F1\u6587\u7248\u8C37\u6B4C\u65B0\u805E",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerMinute":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u5206\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u4EFD\u50B3\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u85A6\uFF09, \u5C07\u6703\u5728\u55AE\u7368\u4F5C\u70BA\u4E00\u6BB5\u767C\u9001\u7D66 OpenAI","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u50B3\u9001\u767C\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",clickToDisableExtension:"\u9EDE\u9078\u505C\u7528\u5957\u4EF6",clickToEnableExtension:"\u9EDE\u9078\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u9F20\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u7F6E\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u5B57\u7B26\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8B58\u5225\u70BA\u89F8\u767C\u5B57\u7B26\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u7981\u7528\u78BA\u8A8D",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",disableTint:"* \u60A8\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u555F\u7528\u3002",searchEnhancementNotes:"\u6211\u5011\u767C\u73FE\uFF0C\u4E2D\u6587\u95DC\u9375\u8A5E\u548C\u82F1\u6587\u95DC\u9375\u8A5E\u7684\u65B0\u805E\u7D50\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u555F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u4FE1\u606F\u589E\u5F37\u529F\u80FD\u5F8C\uFF0C\u6211\u5011\u6703\u5728\u652F\u6301\u7684\u7DB2\u7AD9\uFF08\u8C37\u6B4C\u65B0\u805E\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u95DC\u9375\u8A5E\uFF09\uFF0C\u96EA\u7403\uFF0C\u6771\u65B9\u8CA1\u5BCC\u7DB2\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52D5\u7528\u82F1\u6587\u70BA\u4F60\u641C\u7D22\u540C\u6A23\u7684\u95DC\u9375\u8A5E\u4E26\u5C55\u793A\u5728\u53F3\u5074\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8A72\u529F\u80FD\u7684\u8A71\uFF0C\u53EF\u4EE5\u9078\u64C7\u7981\u7528\u5B83\u3002",option:"\u9078\u9805",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL \u548C OpenAI \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8B6F",currentAccount:"\u7576\u524D\u8CEC\u6236"};var c4={nologin:"Not logged in",login:"Login",manageAccount:"Manage Account",logout:"Logout",curentPlan:"Current Plan",endAt:"Expires",endAuto:"Auto Renew",lineBreakMaxTextCount:"Maximum number of characters allowed per sentence after line break","translate-pdf":"Click to translate PDF","noSupportTranslate-pdf":"The script is not supported, please use a plugin.","translate-firefox-local-pdf":"Click to upload PDF",enableLineBreak:"Whether to turn on automatic line wrapping for long paragraphs",sponsorLabel:"Sponsoring developers from $1 (monthly or one-time)",help:"Help",browserShortcutsNoteForFirefox:`To modify the shortcut key in Firefox browser, you need to open the extension management page 'about: addons', then click "Settings", and then click "Management shortcut key" to set it`,browserShortcutsNoteForChrome:"To modify the shortcut key in Chrome browser, you need to open the extension management page` chrome://extensions/shortcuts `) Settings, click the button below to jump to the shortcut key management page.",browserShortcutsSucks:"Please enter the shortcut key manually in the format:",enableLineBreakDescription:"After opening, a line break will be inserted at the end of each sentence in a long paragraph for easy reading","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate: Web Page&PDF Translation","browser.brandDescription":"Bilingual web page translation, also supports PDF translation, bilingual Epub eBook translation, free to use.","browser.toggleTranslatePage":"Toggle Translate Page","browser.toggleTranslateTheWholePage":"Toggle Translate the Whole Page","browser.toggleOnlyTransation":"Toggle Translate and Hide Original Text","browser.toggleTranslateToThePageEndImmediately":"Toggle Translate to the Bottom of the Page Immediately","browser.toggleTranslateTheMainPage":"Toggle Translate the Main Page","browser.openOptionsPage":"Open Settings Page","browser.toggleTranslationMask":"Toggle translation mask style","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-book","browser.openEbookBuilder":"Make Dual EPUB ebook","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.donateContext":"Sponsor Benefits","browser.translateLocalSubtitleFile":"Translate Subtitle File",confirmResetConfig:"Are you sure you want to reset the settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Create right button menu",toggleBeta:"Enable Beta experimental features",betaDescription:"Enable features that are still experimental, and translation services that are in testing. Join the <1>Telegram group to learn more.",translationLineBreakSettingDescription:"The always line break feature is suitable for layouts with less content, making the layout more neat and tidy. (Use smart line breaks for long paragraphs with more content (more than {count} characters) for saving space)",tempTranslateDomainTitle:"Open the translation time temporarily",tempTranslateDomainDescription:"When a page is translated manually, turn it temporarily on as automatic translation",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",toggleTranslatePageWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide translation display",toggleTranslationMaskWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide the blur effect of the translation",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"Multi-finger touch to show/hide only translation display",addUrlDescription:"The domain name is available and wildcard is supported e.g.: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import configuration from file",export:"Export to file",toggleDebug:"Print debug logs on the console","fingers.0":"Close","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch",mouseHoldKey:"+ {key} translate this paragraph",mouseHoldKeyAuto:"Translate the paragraph directly",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate this paragraph",mouseHoverHoldKey:"Mouse over and press X key to translate paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"All settings reset successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",goAdvancedSettings:"Go to Advanced Settings Page",goAdvancedInterfaceSettings:"Go to Advanced Custom Settings Page",advanced:"Advanced",advancedDescription:"Normally no settings are needed, keep the default. More personalized settings are provided for professional users only.",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"Translate to the bottom of the page immediately after opening the page?",feedback:"Feedback",toggleTranslatePage:"Toggle Translate",translateToThePageEndImmediatelyDescription:"Enabled will translate from the top to the bottom of the page immediately after opening. Disable will translate while reading. (Not recommended to enable)","translate all areas of the page":"Whether to translate all areas of the web page",translationAreaDescription:"When enabled, all areas of the entire web page will be translated. Disabled will use the default smart recognition and translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Directly translate the number of characters in front of the page without waiting to scroll to the visible area","interface language":"Interface language","display both the original text and the translation":"Display both the original text and the translation","keyboard shortcuts":"Keyboard shortcuts",modify:"Edit",reset:"Reset",close:"Close",homepage:"Home Page",more:"More",moreOptions:"Expand more custom settings",translateTheWholePage:"Translate the whole page area",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Dual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"Main areas of intelligent translation","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly implement the interface of the Greasemonkey extension, please use another browser that <1>supports the Greasemonkey extension such as (Firefox Nightly version)",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:"Unknown Error",canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha enabled successfully",disableAlphaSuccess:"Alpha has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(to set up)",goSettings:"to set up",needActionForOptions:"(need to set)",translationEngine:"Engine Options",sourceLanguage:"Original language",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",forThisSite:"Site:",alwaysTranslateSomeLanguage:"Always translate {language}",neverTranslateSomeLanguage:"Never translate {language}",alwaysTranslateSomeSite:"Always translate {hostname}",neverTranslateSomeSite:"Never translate {hostname}",alwaysTranslateSomeSiteOrWildSite:"Always translate this site",alwaysTranslateSomePage:"Always translate this page",add:"Add",default:"Default",forThisLanguage:"For This Language:","add url":"Add URL",edit:"Edit","translate other languages into specific language":"Translate other languages into the language you set","select translation service":"Select a translation service",language:"Language","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",Error:"Error",allowCacheTranslations:"Enable local translation caching (reduce translation requests for duplicate paragraphs)","translation display":"Translation display style","select diplay style":"Please refer to the following examples",interface:"Interface Settings",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dashed underline","translationTheme.dotted":"Dotted Underline","translationTheme.dashedBorder":"Dashed Border","translationTheme.solidBorder":"Dashed Border","translationTheme.underline":"Straight underline","translationTheme.mask":"Blur effect","translationTheme.opacity":"Opacity effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weakening","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dashed underline","translationTheme.nativeDashed":"System Dash Underline","translationTheme.nativeDotted":"System Dotted Underline","translationTheme.nativeUnderline":"System Straight Line Underline","translationTheme.wavy":"Squiggle","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeeplX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"Translate page title","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped",enableUserscriptPagePopup:"Always show Popup windows on the page",enableUserscriptPagePopupDescription:"Three-finger touch to show the Popup.","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",currentUrl:"Current URL",confirm:"Save",cancel:"Cancel",delete:"Delete","languages.auto":"Detect Language",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",authFail:"Authorization Failed",syncTitle:"Please select a file operation",import_hint:"Import",upload:"Upload",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",download:"Download",importSuccess:"Upload Success",importFail:"Import Failed",deleteFail:"Delete Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",backupToCloudDescription:"Upload or restore backup files manually, up to 3 different backups",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",updatedAt:"Updated at {date}",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. You can choose to subscribe to <6>Pro membership to use the out-of-the-box DeepL and OpenAI translation.

You can also follow out <3>Twitter, <4>Telegram Channel, and <5>Email Subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free and we hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. ",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",qqCommunities:"QQ Channel",joinTelegramChannel:"Subscribe to our Telegram channel to get the latest updates",feedbackAndJoin:"Feedback",autoSync:"Auto-Time Sync",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization","edit border color":"Edit border color",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",enableSubtitle:"enableSubtitleTranslation",enableSubtitleDescription:"Enable translations for subtitle areas on sites like youtube",isTranslateTitleDescription:"When enabled, the page title will be translated",enableSearchEnhancement:"Enable Search Enhancement",enableSearchEnhancementDescription:'After enabling, the right sidebar will automatically display "Google News" search results for corresponding English keywords on supported websites (such as Google News, Google Search (partial keywords), Xueqiu, East Money, Futu, Tiger Community).',verifyService:"Verify service",verified:"Successful","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerMinute":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next minute. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"Requests exceed this limit will be queued until the next seconds.","description.prompt":"Send as a user to OpenAI conversation, where {{text}} indicates the text of the paragraph,{{from}} indicates the language of the paragraph,{{to}} indicates the target language, you can omit {{text}}, if so, it'll be sent as a separated message","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"Send the conversation to OpenAI as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the original language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"Default is\uFF1Ageneral. Only set up if there is an API console open domain translation, support fields see <1>Here ","field.scene":"Scene","description.scene":"Default is\uFF1Ageneral. Only set up if there is an API console open Machine Translation Professional, support fields see<1>Here","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please provide a URL with the specific path.",enabledExtension:"Enable extensions",clickToDisableExtension:"Click to disable extension",clickToEnableExtension:"Click to enable the extension",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter customization content",inputOptions:"Writing",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter for translating part of the input box.",inputStartingTriggerKeyDescription:"When you don't need to translate the entire input box, the delimiter allows you to only translate the portion from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means only translating the portion from {startingKey}ja to the end of the input box.",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting is no prefix required, the partial text translation function of the input box cannot be used temporarily.",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Start the translation by quickly pressing 3 times {trailingKey}.",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time (milliseconds) for the input to end the combo trigger",spaceKey:"",noneKey:"Translate the entire text box without prefixes",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement in the following URL",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",clickToSeeQuickDemo:"Click to expand the 30s tutorial video",inputHelperInfo:`Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001". +`,PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",OPTIONS_URL:"https://dash.immersivetranslate.com/",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",MOCK:"0",DEBUG:"0",IMMERSIVE_TRANSLATE_USERSCRIPT:"1",INSTALL_FROM:"official_userscript"}});var wm=pf((Fo,Qr)=>{g();(function(){var e;function t(d){var h,T,b="",C=-1,w;if(d&&d.length)for(w=d.length;(C+=1)>>6&31,128|h&63):h<=65535?b+=String.fromCharCode(224|h>>>12&15,128|h>>>6&63,128|h&63):h<=2097151&&(b+=String.fromCharCode(240|h>>>18&7,128|h>>>12&63,128|h>>>6&63,128|h&63));return b}function n(d){var h,T,b,C,w,I=[],B;if(h=T=b=C=w=0,d&&d.length)for(B=d.length,d+="";h191&&b<224?(C=d.charCodeAt(h+1),I[T]=String.fromCharCode((b&31)<<6|C&63),h+=2):(C=d.charCodeAt(h+1),w=d.charCodeAt(h+2),I[T]=String.fromCharCode((b&15)<<12|(C&63)<<6|w&63),h+=3);return I.join("")}function a(d,h){var T=(d&65535)+(h&65535),b=(d>>16)+(h>>16)+(T>>16);return b<<16|T&65535}function r(d,h){return d<>>32-h}function u(d,h){for(var T=h?"0123456789ABCDEF":"0123456789abcdef",b="",C,w=0,I=d.length;w>>4&15)+T.charAt(C&15);return b}function o(d){var h,T=d.length,b="";for(h=0;h>>8&255);return b}function i(d){var h,T=d.length,b="";for(h=0;h>>8&255,d.charCodeAt(h)&255);return b}function s(d){var h,T=d.length*32,b="";for(h=0;h>5]>>>24-h%32&255);return b}function c(d){var h,T=d.length*32,b="";for(h=0;h>5]>>>h%32&255);return b}function l(d){var h,T=d.length*8,b=Array(d.length>>2),C=b.length;for(h=0;h>5]|=(d.charCodeAt(h/8)&255)<>2),C=b.length;for(h=0;h>5]|=(d.charCodeAt(h/8)&255)<<24-h%32;return b}function f(d,h){var T=h.length,b=Array(),C,w,I,B,y,S,P,M;for(S=Array(Math.ceil(d.length/2)),B=S.length,C=0;C0;){for(y=Array(),I=0,C=0;C0||w>0)&&(y[y.length]=w);b[b.length]=I,S=y}for(P="",C=b.length-1;C>=0;C--)P+=h.charAt(b[C]);for(M=Math.ceil(d.length*8/(Math.log(h.length)/Math.log(2))),C=P.length;Cd.length*8?b+=h:b+=T.charAt(B>>>6*(3-I)&63);return b}e={VERSION:"1.0.6",Base64:function(){var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h="=",T=!1,b=!0;this.encode=function(C){var w,I,B,y="";for(h=h||"=",C=b?t(C):C,len=C.length,w=0;wlen*8?y+=h:y+=d.charAt(B>>>6*(3-I)&63);return y},this.decode=function(C){var w,I,B,y,S,P,M,x,R,F,D="",_=[];if(!C)return C;w=F=0,C=C.replace(new RegExp("\\"+h,"gi"),"");do S=d.indexOf(C.charAt(w++)),P=d.indexOf(C.charAt(w++)),M=d.indexOf(C.charAt(w++)),x=d.indexOf(C.charAt(w++)),R=S<<18|P<<12|M<<6|x,I=R>>16&255,B=R>>8&255,y=R&255,F+=1,M===64?_[F]=String.fromCharCode(I):x===64?_[F]=String.fromCharCode(I,B):_[F]=String.fromCharCode(I,B,y);while(w>>8^T;return(h^-1)>>>0},MD5:function(d){var h=d&&typeof d.uppercase=="boolean"?d.uppercase:!1,T=d&&typeof d.pad=="string"?d.pad:"=",b=d&&typeof d.utf8=="boolean"?d.utf8:!0;this.hex=function(x){return u(C(x,b),h)},this.b64=function(x){return m(C(x),T)},this.any=function(x,R){return f(C(x,b),R)},this.raw=function(x){return C(x,b)},this.hex_hmac=function(x,R){return u(w(x,R),h)},this.b64_hmac=function(x,R){return m(w(x,R),T)},this.any_hmac=function(x,R,F){return f(w(x,R),F)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(x){return typeof x=="boolean"&&(h=x),this},this.setPad=function(x){return T=x||T,this},this.setUTF8=function(x){return typeof x=="boolean"&&(b=x),this};function C(x){return x=b?t(x):x,c(I(l(x),x.length*8))}function w(x,R){var F,D,_,U,j;for(x=b?t(x):x,R=b?t(R):R,F=l(x),F.length>16&&(F=I(F,x.length*8)),D=Array(16),_=Array(16),j=0;j<16;j+=1)D[j]=F[j]^909522486,_[j]=F[j]^1549556828;return U=I(D.concat(l(R)),512+R.length*8),c(I(_.concat(U),512+128))}function I(x,R){var F,D,_,U,j,L=1732584193,E=-271733879,k=-1732584194,O=271733878;for(x[R>>5]|=128<>>9<<4)+14]=R,F=0;F16&&(M=I(M,S.length*8)),x=Array(16),R=Array(16),F=0;F<16;F+=1)x[F]=M[F]^909522486,R[F]=M[F]^1549556828;return D=I(x.concat(p(P)),512+P.length*8),s(I(R.concat(D),512+160))}function I(S,P){var M,x,R,F,D,_,U,j,L=Array(80),E=1732584193,k=-271733879,O=-1732584194,$=271733878,z=-1009589776;for(S[P>>5]|=128<<24-P%32,S[(P+64>>9<<4)+15]=P,M=0;M16&&(z=L(z,E.length*8));$<16;$+=1)Y[$]=z[$]^909522486,q[$]=z[$]^1549556828;return O=L(Y.concat(p(k)),512+k.length*8),s(L(q.concat(O),512+256))}function B(E,k){return E>>>k|E<<32-k}function y(E,k){return E>>>k}function S(E,k,O){return E&k^~E&O}function P(E,k,O){return E&k^E&O^k&O}function M(E){return B(E,2)^B(E,13)^B(E,22)}function x(E){return B(E,6)^B(E,11)^B(E,25)}function R(E){return B(E,7)^B(E,18)^y(E,3)}function F(E){return B(E,17)^B(E,19)^y(E,10)}function D(E){return B(E,28)^B(E,34)^B(E,39)}function _(E){return B(E,14)^B(E,18)^B(E,41)}function U(E){return B(E,1)^B(E,8)^y(E,7)}function j(E){return B(E,19)^B(E,61)^y(E,6)}C=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function L(E,k){var O=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],$=new Array(64),z,Y,q,ae,Q,G,fe,he,re,K,se,me;for(E[k>>5]|=128<<24-k%32,E[(k+64>>9<<4)+15]=k,re=0;re32&&(E=B(E,_.length*8));L<32;L+=1)k[L]=E[L]^909522486,O[L]=E[L]^1549556828;return j=B(k.concat(p(U)),1024+U.length*8),s(B(O.concat(j),1024+512))}function B(_,U){var j,L,E,k=new Array(80),O=new Array(16),$=[new y(1779033703,-205731576),new y(-1150833019,-2067093701),new y(1013904242,-23791573),new y(-1521486534,1595750129),new y(1359893119,-1377402159),new y(-1694144372,725511199),new y(528734635,-79577749),new y(1541459225,327033209)],z=new y(0,0),Y=new y(0,0),q=new y(0,0),ae=new y(0,0),Q=new y(0,0),G=new y(0,0),fe=new y(0,0),he=new y(0,0),re=new y(0,0),K=new y(0,0),se=new y(0,0),me=new y(0,0),ce=new y(0,0),ye=new y(0,0),Ae=new y(0,0),Ee=new y(0,0),Z=new y(0,0);for(C===void 0&&(C=[new y(1116352408,-685199838),new y(1899447441,602891725),new y(-1245643825,-330482897),new y(-373957723,-2121671748),new y(961987163,-213338824),new y(1508970993,-1241133031),new y(-1841331548,-1357295717),new y(-1424204075,-630357736),new y(-670586216,-1560083902),new y(310598401,1164996542),new y(607225278,1323610764),new y(1426881987,-704662302),new y(1925078388,-226784913),new y(-2132889090,991336113),new y(-1680079193,633803317),new y(-1046744716,-815192428),new y(-459576895,-1628353838),new y(-272742522,944711139),new y(264347078,-1953704523),new y(604807628,2007800933),new y(770255983,1495990901),new y(1249150122,1856431235),new y(1555081692,-1119749164),new y(1996064986,-2096016459),new y(-1740746414,-295247957),new y(-1473132947,766784016),new y(-1341970488,-1728372417),new y(-1084653625,-1091629340),new y(-958395405,1034457026),new y(-710438585,-1828018395),new y(113926993,-536640913),new y(338241895,168717936),new y(666307205,1188179964),new y(773529912,1546045734),new y(1294757372,1522805485),new y(1396182291,-1651133473),new y(1695183700,-1951439906),new y(1986661051,1014477480),new y(-2117940946,1206759142),new y(-1838011259,344077627),new y(-1564481375,1290863460),new y(-1474664885,-1136513023),new y(-1035236496,-789014639),new y(-949202525,106217008),new y(-778901479,-688958952),new y(-694614492,1432725776),new y(-200395387,1467031594),new y(275423344,851169720),new y(430227734,-1194143544),new y(506948616,1363258195),new y(659060556,-544281703),new y(883997877,-509917016),new y(958139571,-976659869),new y(1322822218,-482243893),new y(1537002063,2003034995),new y(1747873779,-692930397),new y(1955562222,1575990012),new y(2024104815,1125592928),new y(-2067236844,-1578062990),new y(-1933114872,442776044),new y(-1866530822,593698344),new y(-1538233109,-561857047),new y(-1090935817,-1295615723),new y(-965641998,-479046869),new y(-903397682,-366583396),new y(-779700025,566280711),new y(-354779690,-840897762),new y(-176337025,-294727304),new y(116418474,1914138554),new y(174292421,-1563912026),new y(289380356,-1090974290),new y(460393269,320620315),new y(685471733,587496836),new y(852142971,1086792851),new y(1017036298,365543100),new y(1126000580,-1676669620),new y(1288033470,-885112138),new y(1501505948,-60457430),new y(1607167915,987167468),new y(1816402316,1246189591)]),L=0;L<80;L+=1)k[L]=new y(0,0);for(_[U>>5]|=128<<24-(U&31),_[(U+128>>10<<5)+31]=U,E=_.length,L=0;L>>j|U.h<<32-j,_.h=U.h>>>j|U.l<<32-j}function M(_,U,j){_.l=U.h>>>j|U.l<<32-j,_.h=U.l>>>j|U.h<<32-j}function x(_,U,j){_.l=U.l>>>j|U.h<<32-j,_.h=U.h>>>j}function R(_,U,j){var L=(U.l&65535)+(j.l&65535),E=(U.l>>>16)+(j.l>>>16)+(L>>>16),k=(U.h&65535)+(j.h&65535)+(E>>>16),O=(U.h>>>16)+(j.h>>>16)+(k>>>16);_.l=L&65535|E<<16,_.h=k&65535|O<<16}function F(_,U,j,L,E){var k=(U.l&65535)+(j.l&65535)+(L.l&65535)+(E.l&65535),O=(U.l>>>16)+(j.l>>>16)+(L.l>>>16)+(E.l>>>16)+(k>>>16),$=(U.h&65535)+(j.h&65535)+(L.h&65535)+(E.h&65535)+(O>>>16),z=(U.h>>>16)+(j.h>>>16)+(L.h>>>16)+(E.h>>>16)+($>>>16);_.l=k&65535|O<<16,_.h=$&65535|z<<16}function D(_,U,j,L,E,k){var O=(U.l&65535)+(j.l&65535)+(L.l&65535)+(E.l&65535)+(k.l&65535),$=(U.l>>>16)+(j.l>>>16)+(L.l>>>16)+(E.l>>>16)+(k.l>>>16)+(O>>>16),z=(U.h&65535)+(j.h&65535)+(L.h&65535)+(E.h&65535)+(k.h&65535)+($>>>16),Y=(U.h>>>16)+(j.h>>>16)+(L.h>>>16)+(E.h>>>16)+(k.h>>>16)+(z>>>16);_.l=O&65535|$<<16,_.h=z&65535|Y<<16}},RMD160:function(d){var h=d&&typeof d.uppercase=="boolean"?d.uppercase:!1,T=d&&typeof d.pad=="string"?d.pa:"=",b=d&&typeof d.utf8=="boolean"?d.utf8:!0,C=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],w=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],I=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],B=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(D){return u(y(D,b))},this.b64=function(D){return m(y(D,b),T)},this.any=function(D,_){return f(y(D,b),_)},this.raw=function(D){return y(D,b)},this.hex_hmac=function(D,_){return u(S(D,_))},this.b64_hmac=function(D,_){return m(S(D,_),T)},this.any_hmac=function(D,_,U){return f(S(D,_),U)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(D){return typeof D=="boolean"&&(h=D),this},this.setPad=function(D){return typeof D<"u"&&(T=D),this},this.setUTF8=function(D){return typeof D=="boolean"&&(b=D),this};function y(D){return D=b?t(D):D,P(M(l(D),D.length*8))}function S(D,_){D=b?t(D):D,_=b?t(_):_;var U,j,L=l(D),E=Array(16),k=Array(16);for(L.length>16&&(L=M(L,D.length*8)),U=0;U<16;U+=1)E[U]=L[U]^909522486,k[U]=L[U]^1549556828;return j=M(E.concat(l(_)),512+_.length*8),P(M(k.concat(j),512+160))}function P(D){var _,U="",j=D.length*32;for(_=0;_>5]>>>_%32&255);return U}function M(D,_){var U,j,L,E,k=1732584193,O=4023233417,$=2562383102,z=271733878,Y=3285377520,q,ae,Q,G,fe,he,re,K,se,me;for(D[_>>5]|=128<<_%32,D[(_+64>>>9<<4)+14]=_,E=D.length,L=0;Ln&&(n=u,a=r)}return[a,n]}function _f(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function Bf(e,t,n,a){t=Of(t,n,a);let r=[],u;if(t)for(u in t)Tu.call(t,u)&&r.push([u,Rf(e,t[u])]);return r.length===0?Ri():r.sort(If)}function Rf(e,t){let n=0,a=-1;for(;++at.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharacterso+i.length,0));let u=e.length-a;for(let o of Gf){let i=o[1],s=o[0],c=e.match(i),l=c?c.length:0;l>n&&(n=l,t=s)}return n*2.5/u>.5?t==="zh-CN"?wc(e)?"zh-TW":"zh-CN":t:"auto"}var kc=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],Oi=new Map(kc),Vf=new Map(kc.map(([e,t])=>[t,e]));function vr(e,t,n=["en"]){if(!e)return"auto";let a=n.map(i=>Vf.get(i));!t&&t!==0&&(t=25);let r=wu(e);if(r!=="auto")return r;let u={minLength:t,whitelist:[...Oi.keys()]},o=yc(e,u);if(o&&o.length>0){for(let[l,p]of o)if(a.includes(l)&&p>.5)return Oi.get(l);let[i,s]=o[0],c=Oi.get(i);if(c&&s>.5)return c}return"auto"}g();function Re(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():A}var xe=Re();function pe(){return xe.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function Fn(){return xe.PROD==="1"}function Pn(){return xe.PROD_API==="1"}function Ac(){return xe.HAS_CSP_ERROR=="1"}function Rt(){if(xe.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function vu(){return typeof Deno<"u"}var v5=Re().PROD==="1",Na=Re().PROD!=="1";function ku(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}if(typeof GM>"u"&&typeof GM_info<"u"&&typeof GM_getValue<"u"){let e=null;typeof GM_xmlhttpRequest<"u"?e=GM_xmlhttpRequest:typeof GM_xmlHttpRequest<"u"&&(e=GM_xmlHttpRequest);let t=null;typeof GM_registerMenuCommand<"u"&&(t=GM_registerMenuCommand),globalThis.GM={info:GM_info,getValue:GM_getValue,setValue:GM_setValue,deleteValue:GM_deleteValue,listValues:GM_listValues,xmlHttpRequest:e,registerMenuCommand:t,addStyle:typeof GM_addStyle<"u"?GM_addStyle:null,openInTab:typeof GM_openInTab<"u"?GM_openInTab:null,addElement:typeof GM_addElement<"u"?GM_addElement:null}}typeof GM<"u"&&GM&&GM.info===void 0&&typeof GM_info<"u"&&(GM.info=GM_info);var Sc={get:async e=>{if(e===null){let a=await GM.listValues();Array.isArray(a)||a&&rh(a)&&(a=Object.keys(a));let r={};for(let u of a)r[u]=await GM.getValue(u);return r}let t=[];typeof e=="string"?t=[e]:Array.isArray(e)?t=e:t=Object.keys(e);let n={};for(let a of t)n[a]=await GM.getValue(a);return n},set:async e=>{for(let t in e)await GM.setValue(t,e[t])},remove:async e=>{if(typeof e=="string")await GM.deleteValue(e);else if(Array.isArray(e))for(let t of e)await GM.deleteValue(t)}};function Yf(){if(typeof GM<"u"&&GM&&GM.info&&GM.info.script){let e=GM.info.script||{};return e._isUserscript=!0,e}else return{_isUserscript:!0,version:"0.0.0"}}function fa(e,t=!0){GM&&GM.openInTab?GM.openInTab(e,!1):globalThis.open(e,t?"_blank":"_self")}function Jf(e=!0,t=""){let n=Re();GM&&GM.info&&GM.info.scriptHandler&&GM.info.scriptHandler==="Stay"?e=!1:e=!0;let a=n.OPTIONS_URL;if(a)fa(a+t,e);else throw new Error("options url not found")}function Qf(e=!1){let n=Re().OPTIONS_URL;if(n)fa(n+"#about",e);else throw new Error("options url not found")}function Zf(e=!1){let n=Re().PDF_VIEWER_URL;if(n)fa(n,e);else throw new Error("pdf url not found")}function Xf(e=!1){let n=Re().EBOOK_VIEWER_URL;if(n)fa(n,e);else throw new Error("ebook url not found")}function eh(e=!1){let n=Re().EBOOK_BUILDER_URL;if(n)fa(n,e);else throw new Error("ebook url not found")}function th(e=!1){let n=Re().SUBTITLE_BUILDER_URL;if(n)fa(n,e);else throw new Error("subtitle url not found")}function nh(){return globalThis.navigator.languages||[globalThis.navigator.language||globalThis.navigator.userLanguage]}var ah={storage:{local:Sc,sync:Sc},runtime:{getManifest:Yf,lastError:null,openOptionsPage:Jf},extra:{detectLanguage:vr,openAboutPage:Qf,openEbookViewerPage:Xf,openEbookBuilderPage:eh,openSubtitleBuilderPage:th,openPdfViewerPage:Zf,openInTab:fa},i18n:{getAcceptLanguages:nh,detectLanguage:vr}};function rh(e){return e!==null&&typeof e=="object"}globalThis.immersiveTranslateBrowserAPI=ah;g();(function(){"use strict";var e=window.Bluebird||window.Promise;if(self.GM_fetch)return;let t;if(typeof GM<"u"&&GM.xmlHttpRequest)t=GM.xmlHttpRequest;else if(typeof GM<"u"&&GM_xmlhttpRequest)t=GM_xmlhttpRequest;else if(typeof GM_xmlhttpRequest<"u")t=GM_xmlhttpRequest;else if(typeof GM<"u"&&GM.xmlHttpRequest)t=GM.xmlHttpRequest;else return;function n(m){if(typeof m!="string"&&(m=m.toString()),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(m))throw new TypeError("Invalid character in header field name");return m.toLowerCase()}function a(m){return typeof m!="string"&&(m=m.toString()),m}function r(m){if(m.bodyUsed)return e.reject(new TypeError("Already read"));m.bodyUsed=!0}function u(m){return new e(function(d,h){m.onload=function(){d(m.result)},m.onerror=function(){h(m.error)}})}function o(m){var d=new FileReader;return d.readAsArrayBuffer(m),u(d)}function i(m){var d=new FileReader;return d.readAsText(m),u(d)}var s={blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in self},c=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function l(m){var d=m.toUpperCase();return c.indexOf(d)>-1?d:m}function p(m){var d=new FormData;return m.trim().split("&").forEach(function(h){if(h){var T=h.split("="),b=T.shift().replace(/\+/g," "),C=T.join("=").replace(/\+/g," ");d.append(decodeURIComponent(b),decodeURIComponent(C))}}),d}function f(m){var d=new Headers;if(typeof m=="string"){var h=m.trim().split(` +`);h.forEach(function(b){var C=b.trim().split(":"),w=C.shift().trim(),I=C.join(":").trim();d.append(w,I)})}else if(typeof m=="object")for(var T in m)Array.isArray(m[T])&&m[T].forEach(function(b){d.append(T,b)});return d}self.Headers=Headers,self.Request=Request,self.Response=Response,self.GM_fetch=function(m,d){var h,T;return d||(typeof m=="string"?d={}:m=d.url),Request&&Request.prototype&&Request.prototype.isPrototypeOf&&Request.prototype.isPrototypeOf(d)?h=d:(d.body&&(T=d.body),h=new Request(m,d)),new e(function(b,C){var w={};d&&d.extra&&(w=d.extra);var I;function B(y,S){if(y)return y;if(S.get("X-Request-URL"))return S.get("X-Request-URL")}w.method=h.method||"GET",w.timeout=6e4,h.timeout&&(w.timeout=h.timeout),w.url=h.url,w.synchronous=!1,w.onload=function(y){var S=y.status;if(S<100||S>599){C(new TypeError("Network request failed"));return}var P=y.responseHeaders;I=f(P);var M=B(y.finalUrl||y.responseURL,I);I.set("X-Final-URL",M);var x={status:S,statusText:y.statusText,headers:I,url:M},R=y.responseText;let F=new Response(R,x);b(F)},w.onerror=function(y){C(new TypeError("Network request failed"))},w.ontimeout=function(y){C(new TypeError("Network request timeout"))},w.onabort=function(y){C(new TypeError("Network request abort"))},w.headers={},h.headers.forEach(function(y,S){w.headers[S]=y}),T&&(w.data=T),t(w)})},self.GM_fetch.polyfill=!0})();g();g();g();g();g();g();g();g();g();g();function ja(){let e,t="pending",n=new Promise((a,r)=>{e={async resolve(u){await u,t="fulfilled",a(u)},reject(u){t="rejected",r(u)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}g();var Ii=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function Au(e,t){let n=ja(),a=setTimeout(()=>n.reject(new Ii),t);return Promise.race([e,n]).finally(()=>clearTimeout(a))}g();g();function kr(e,t={}){let{signal:n,persistent:a}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((r,u)=>{let o=()=>{clearTimeout(s),u(new DOMException("Delay was aborted.","AbortError"))},s=setTimeout(()=>{n?.removeEventListener("abort",o),r()},e);if(n?.addEventListener("abort",o,{once:!0}),a===!1)try{Deno.unrefTimer(s)}catch(c){if(!(c instanceof ReferenceError))throw c}})}g();var Dc=class{#e=0;#t=[];#n=[];#a=ja();add(t){++this.#e,this.#r(t[Symbol.asyncIterator]())}async#r(t){try{let{value:n,done:a}=await t.next();a?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#a.resolve()}async*iterate(){for(;this.#e>0;){await this.#a;for(let t=0;tFh,bgBlue:()=>Rh,bgBrightBlack:()=>jh,bgBrightBlue:()=>qh,bgBrightCyan:()=>$h,bgBrightGreen:()=>zh,bgBrightMagenta:()=>Wh,bgBrightRed:()=>Uh,bgBrightWhite:()=>Kh,bgBrightYellow:()=>Hh,bgCyan:()=>Ih,bgGreen:()=>_h,bgMagenta:()=>Oh,bgRed:()=>Ph,bgRgb24:()=>Jh,bgRgb8:()=>Vh,bgWhite:()=>Nh,bgYellow:()=>Bh,black:()=>fh,blue:()=>Eh,bold:()=>sh,brightBlack:()=>Fc,brightBlue:()=>Sh,brightCyan:()=>Lh,brightGreen:()=>kh,brightMagenta:()=>Dh,brightRed:()=>vh,brightWhite:()=>Mh,brightYellow:()=>Ah,cyan:()=>Th,dim:()=>lh,getColorEnabled:()=>oh,gray:()=>wh,green:()=>bh,hidden:()=>gh,inverse:()=>mh,italic:()=>ch,magenta:()=>xh,red:()=>hh,reset:()=>ih,rgb24:()=>Yh,rgb8:()=>Gh,setColorEnabled:()=>uh,strikethrough:()=>ph,stripColor:()=>Zh,underline:()=>dh,white:()=>Ch,yellow:()=>yh});g();var{Deno:Lc}=globalThis,Mc=typeof Lc?.noColor=="boolean"?Lc.noColor:!0,Ni=!Mc;function uh(e){Mc||(Ni=e)}function oh(){return Ni}function Te(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function Ce(e,t){return Ni?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function ih(e){return Ce(e,Te([0],0))}function sh(e){return Ce(e,Te([1],22))}function lh(e){return Ce(e,Te([2],22))}function ch(e){return Ce(e,Te([3],23))}function dh(e){return Ce(e,Te([4],24))}function mh(e){return Ce(e,Te([7],27))}function gh(e){return Ce(e,Te([8],28))}function ph(e){return Ce(e,Te([9],29))}function fh(e){return Ce(e,Te([30],39))}function hh(e){return Ce(e,Te([31],39))}function bh(e){return Ce(e,Te([32],39))}function yh(e){return Ce(e,Te([33],39))}function Eh(e){return Ce(e,Te([34],39))}function xh(e){return Ce(e,Te([35],39))}function Th(e){return Ce(e,Te([36],39))}function Ch(e){return Ce(e,Te([37],39))}function wh(e){return Fc(e)}function Fc(e){return Ce(e,Te([90],39))}function vh(e){return Ce(e,Te([91],39))}function kh(e){return Ce(e,Te([92],39))}function Ah(e){return Ce(e,Te([93],39))}function Sh(e){return Ce(e,Te([94],39))}function Dh(e){return Ce(e,Te([95],39))}function Lh(e){return Ce(e,Te([96],39))}function Mh(e){return Ce(e,Te([97],39))}function Fh(e){return Ce(e,Te([40],49))}function Ph(e){return Ce(e,Te([41],49))}function _h(e){return Ce(e,Te([42],49))}function Bh(e){return Ce(e,Te([43],49))}function Rh(e){return Ce(e,Te([44],49))}function Oh(e){return Ce(e,Te([45],49))}function Ih(e){return Ce(e,Te([46],49))}function Nh(e){return Ce(e,Te([47],49))}function jh(e){return Ce(e,Te([100],49))}function Uh(e){return Ce(e,Te([101],49))}function zh(e){return Ce(e,Te([102],49))}function Hh(e){return Ce(e,Te([103],49))}function qh(e){return Ce(e,Te([104],49))}function Wh(e){return Ce(e,Te([105],49))}function $h(e){return Ce(e,Te([106],49))}function Kh(e){return Ce(e,Te([107],49))}function Hn(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function Gh(e,t){return Ce(e,Te([38,5,Hn(t)],39))}function Vh(e,t){return Ce(e,Te([48,5,Hn(t)],49))}function Yh(e,t){return typeof t=="number"?Ce(e,Te([38,2,t>>16&255,t>>8&255,t&255],39)):Ce(e,Te([38,2,Hn(t.r),Hn(t.g),Hn(t.b)],39))}function Jh(e,t){return typeof t=="number"?Ce(e,Te([48,2,t>>16&255,t>>8&255,t&255],49)):Ce(e,Te([48,2,Hn(t.r),Hn(t.g),Hn(t.b)],49))}var Qh=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function Zh(e){return e.replace(Qh,"")}g();g();var ji=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},Xh={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function Ui(e,t){let n={...Xh,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let a=n.minTimeout,r;for(let u=0;usetTimeout(i,a)),a*=n.multiplier,a=Math.max(a,n.minTimeout),n.maxTimeout>=0&&(a=Math.min(a,n.maxTimeout)),r=o}throw new ji(r,n.maxAttempts)}g();var _n=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function zi(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",a,r=t.length;for(a=2;a>2],n+=_n[(t[a-2]&3)<<4|t[a-1]>>4],n+=_n[(t[a-1]&15)<<2|t[a]>>6],n+=_n[t[a]&63];return a===r+1&&(n+=_n[t[a-2]>>2],n+=_n[(t[a-2]&3)<<4],n+="=="),a===r&&(n+=_n[t[a-2]>>2],n+=_n[(t[a-2]&3)<<4|t[a-1]>>4],n+=_n[(t[a-1]&15)<<2],n+="="),n}g();g();var bE=Number.isNaN||function(e){return typeof e=="number"&&e!==e};g();g();var Su=globalThis||(typeof window<"u"?window:self),t2=Object.create,qi=Object.defineProperty,n2=Object.getOwnPropertyDescriptor,a2=Object.getOwnPropertyNames,r2=Object.getPrototypeOf,u2=Object.prototype.hasOwnProperty,o2=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),i2=(e,t)=>{for(var n in t)qi(e,n,{get:t[n],enumerable:!0})},Hi=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of a2(t))!u2.call(e,r)&&r!==n&&qi(e,r,{get:()=>t[r],enumerable:!(a=n2(t,r))||a.enumerable});return e},s2=(e,t,n)=>(Hi(e,t,"default"),n&&Hi(n,t,"default")),_c=(e,t,n)=>(n=e!=null?t2(r2(e)):{},Hi(t||!e||!e.__esModule?qi(n,"default",{value:e,enumerable:!0}):n,e)),Bc=o2((e,t)=>{var n="Expected a function",a=NaN,r="[object Symbol]",u=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,l=typeof Su=="object"&&Su&&Su.Object===Object&&Su,p=typeof self=="object"&&self&&self.Object===Object&&self,f=l||p||Function("return this")(),m=Object.prototype,d=m.toString,h=Math.max,T=Math.min,b=function(){return f.Date.now()};function C(P,M,x){var R,F,D,_,U,j,L=0,E=!1,k=!1,O=!0;if(typeof P!="function")throw new TypeError(n);M=S(M)||0,I(x)&&(E=!!x.leading,k="maxWait"in x,D=k?h(S(x.maxWait)||0,M):D,O="trailing"in x?!!x.trailing:O);function $(re){var K=R,se=F;return R=F=void 0,L=re,_=P.apply(se,K),_}function z(re){return L=re,U=setTimeout(ae,M),E?$(re):_}function Y(re){var K=re-j,se=re-L,me=M-K;return k?T(me,D-se):me}function q(re){var K=re-j,se=re-L;return j===void 0||K>=M||K<0||k&&se>=D}function ae(){var re=b();if(q(re))return Q(re);U=setTimeout(ae,Y(re))}function Q(re){return U=void 0,O&&R?$(re):(R=F=void 0,_)}function G(){U!==void 0&&clearTimeout(U),L=0,R=j=F=U=void 0}function fe(){return U===void 0?_:Q(b())}function he(){var re=b(),K=q(re);if(R=arguments,F=this,j=re,K){if(U===void 0)return z(j);if(k)return U=setTimeout(ae,M),$(j)}return U===void 0&&(U=setTimeout(ae,M)),_}return he.cancel=G,he.flush=fe,he}function w(P,M,x){var R=!0,F=!0;if(typeof P!="function")throw new TypeError(n);return I(x)&&(R="leading"in x?!!x.leading:R,F="trailing"in x?!!x.trailing:F),C(P,M,{leading:R,maxWait:M,trailing:F})}function I(P){var M=typeof P;return!!P&&(M=="object"||M=="function")}function B(P){return!!P&&typeof P=="object"}function y(P){return typeof P=="symbol"||B(P)&&d.call(P)==r}function S(P){if(typeof P=="number")return P;if(y(P))return a;if(I(P)){var M=typeof P.valueOf=="function"?P.valueOf():P;P=I(M)?M+"":M}if(typeof P!="string")return P===0?P:+P;P=P.replace(u,"");var x=i.test(P);return x||s.test(P)?c(P.slice(2),x?2:8):o.test(P)?a:+P}t.exports=w}),Rc={};i2(Rc,{default:()=>bt});var l2=_c(Bc());s2(Rc,_c(Bc()));var{default:Pc,...c2}=l2,bt=Pc!==void 0?Pc:c2;g();g();var d2=Object.create,$i=Object.defineProperty,m2=Object.getOwnPropertyDescriptor,g2=Object.getOwnPropertyNames,p2=Object.getPrototypeOf,f2=Object.prototype.hasOwnProperty,h2=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),b2=(e,t)=>{for(var n in t)$i(e,n,{get:t[n],enumerable:!0})},Wi=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of g2(t))!f2.call(e,r)&&r!==n&&$i(e,r,{get:()=>t[r],enumerable:!(a=m2(t,r))||a.enumerable});return e},y2=(e,t,n)=>(Wi(e,t,"default"),n&&Wi(n,t,"default")),Ic=(e,t,n)=>(n=e!=null?d2(p2(e)):{},Wi(t||!e||!e.__esModule?$i(n,"default",{value:e,enumerable:!0}):n,e)),Nc=h2((e,t)=>{(function(n,a){typeof e=="object"&&typeof t=="object"?t.exports=a():typeof define=="function"&&define.amd?define([],a):typeof e=="object"?e.notie=a():n.notie=a()})(e,function(){return function(n){function a(u){if(r[u])return r[u].exports;var o=r[u]={i:u,l:!1,exports:{}};return n[u].call(o.exports,o,o.exports,a),o.l=!0,o.exports}var r={};return a.m=n,a.c=r,a.i=function(u){return u},a.d=function(u,o,i){a.o(u,o)||Object.defineProperty(u,o,{configurable:!1,enumerable:!0,get:i})},a.n=function(u){var o=u&&u.__esModule?function(){return u.default}:function(){return u};return a.d(o,"a",o),o},a.o=function(u,o){return Object.prototype.hasOwnProperty.call(u,o)},a.p="",a(a.s=1)}([function(n,a){n.exports=function(r){return r.webpackPolyfill||(r.deprecate=function(){},r.paths=[],r.children||(r.children=[]),Object.defineProperty(r,"loaded",{enumerable:!0,get:function(){return r.l}}),Object.defineProperty(r,"id",{enumerable:!0,get:function(){return r.i}}),r.webpackPolyfill=1),r}},function(n,a,r){"use strict";(function(u){var o,i,s,c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l};(function(l,p){c(a)==="object"&&c(u)==="object"?u.exports=p():(i=[],o=p,s=typeof o=="function"?o.apply(a,i):o,s!==void 0&&(u.exports=s))})(void 0,function(){return function(l){function p(m){if(f[m])return f[m].exports;var d=f[m]={i:m,l:!1,exports:{}};return l[m].call(d.exports,d,d.exports,p),d.l=!0,d.exports}var f={};return p.m=l,p.c=f,p.i=function(m){return m},p.d=function(m,d,h){p.o(m,d)||Object.defineProperty(m,d,{configurable:!1,enumerable:!0,get:h})},p.n=function(m){var d=m&&m.__esModule?function(){return m.default}:function(){return m};return p.d(d,"a",d),d},p.o=function(m,d){return Object.prototype.hasOwnProperty.call(m,d)},p.p="",p(p.s=0)}([function(l,p,f){function m(z,Y){var q={};for(var ae in z)Y.indexOf(ae)>=0||Object.prototype.hasOwnProperty.call(z,ae)&&(q[ae]=z[ae]);return q}Object.defineProperty(p,"__esModule",{value:!0});var d=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(z){return typeof z>"u"?"undefined":c(z)}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z>"u"?"undefined":c(z)},h=Object.assign||function(z){for(var Y=1;Y'+ae+"",se.onclick=function(){return F(me,K)},se.listener=function(ce){(M(ce)||x(ce))&&U()},R(se,K),G&&G<1&&(G=1),!he&&G&&I(G).then(function(){return F(me,K)})},L=p.force=function(z,Y){var q=z.type,ae=q===void 0?5:q,Q=z.text,G=z.buttonText,fe=G===void 0?"OK":G,he=z.callback,re=z.position,K=re===void 0?b.positions.force||K.top:re;B(),U();var se=document.createElement("div"),me=y();se.id=me;var ce=document.createElement("div");ce.classList.add(b.classes.textbox),ce.classList.add(b.classes.backgroundInfo),ce.innerHTML='
'+Q+"
";var ye=document.createElement("div");ye.classList.add(b.classes.button),ye.classList.add(S[ae]),ye.innerHTML=fe,ye.onclick=function(){F(me,K),_(),he?he():Y&&Y()},se.appendChild(ce),se.appendChild(ye),se.listener=function(Ae){M(Ae)&&ye.click()},R(se,K),D()},E=p.confirm=function(z,Y,q){var ae=z.text,Q=z.submitText,G=Q===void 0?"Yes":Q,fe=z.cancelText,he=fe===void 0?"Cancel":fe,re=z.submitCallback,K=z.cancelCallback,se=z.position,me=se===void 0?b.positions.confirm||me.top:se;B(),U();var ce=document.createElement("div"),ye=y();ce.id=ye;var Ae=document.createElement("div");Ae.classList.add(b.classes.textbox),Ae.classList.add(b.classes.backgroundInfo),Ae.innerHTML='
'+ae+"
";var Ee=document.createElement("div");Ee.classList.add(b.classes.button),Ee.classList.add(b.classes.elementHalf),Ee.classList.add(b.classes.backgroundSuccess),Ee.innerHTML=G,Ee.onclick=function(){F(ye,me),_(),re?re():Y&&Y()};var Z=document.createElement("div");Z.classList.add(b.classes.button),Z.classList.add(b.classes.elementHalf),Z.classList.add(b.classes.backgroundError),Z.innerHTML=he,Z.onclick=function(){F(ye,me),_(),K?K():q&&q()},ce.appendChild(Ae),ce.appendChild(Ee),ce.appendChild(Z),ce.listener=function(ke){M(ke)?Ee.click():x(ke)&&Z.click()},R(ce,me),D(ce,me)},k=function(z,Y,q){var ae=z.text,Q=z.submitText,G=Q===void 0?"Submit":Q,fe=z.cancelText,he=fe===void 0?"Cancel":fe,re=z.submitCallback,K=z.cancelCallback,se=z.position,me=se===void 0?b.positions.input||me.top:se,ce=m(z,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);B(),U();var ye=document.createElement("div"),Ae=y();ye.id=Ae;var Ee=document.createElement("div");Ee.classList.add(b.classes.textbox),Ee.classList.add(b.classes.backgroundInfo),Ee.innerHTML='
'+ae+"
";var Z=document.createElement("input");Z.classList.add(b.classes.inputField),Z.setAttribute("autocapitalize",ce.autocapitalize||"none"),Z.setAttribute("autocomplete",ce.autocomplete||"off"),Z.setAttribute("autocorrect",ce.autocorrect||"off"),Z.setAttribute("autofocus",ce.autofocus||"true"),Z.setAttribute("inputmode",ce.inputmode||"verbatim"),Z.setAttribute("max",ce.max||""),Z.setAttribute("maxlength",ce.maxlength||""),Z.setAttribute("min",ce.min||""),Z.setAttribute("minlength",ce.minlength||""),Z.setAttribute("placeholder",ce.placeholder||""),Z.setAttribute("spellcheck",ce.spellcheck||"default"),Z.setAttribute("step",ce.step||"any"),Z.setAttribute("type",ce.type||"text"),Z.value=ce.value||"",ce.allowed&&(Z.oninput=function(){var Oe=void 0;if(Array.isArray(ce.allowed)){for(var je="",st=ce.allowed,Pt=0;Pt'+q+"",K.appendChild(me),fe.forEach(function(ye,Ae){var Ee=ye.type,Z=Ee===void 0?1:Ee,ke=ye.text,Le=ye.handler,Oe=document.createElement("div");Oe.classList.add(S[Z]),Oe.classList.add(b.classes.button),Oe.classList.add(b.classes.selectChoice);var je=fe[Ae+1];je&&!je.type&&(je.type=1),je&&je.type===Z&&Oe.classList.add(b.classes.selectChoiceRepeated),Oe.innerHTML=ke,Oe.onclick=function(){F(se,re),_(),Le()},K.appendChild(Oe)});var ce=document.createElement("div");ce.classList.add(b.classes.backgroundNeutral),ce.classList.add(b.classes.button),ce.innerHTML=Q,ce.onclick=function(){F(se,re),_(),G?G():Y&&Y()},K.appendChild(ce),K.listener=function(ye){x(ye)&&ce.click()},R(K,re),D(K,re)},$=p.date=function(z,Y,q){var ae=z.value,Q=ae===void 0?new Date:ae,G=z.submitText,fe=G===void 0?"OK":G,he=z.cancelText,re=he===void 0?"Cancel":he,K=z.submitCallback,se=z.cancelCallback,me=z.position,ce=me===void 0?b.positions.date||ce.top:me;B(),U();var ye="▾",Ae=document.createElement("div"),Ee=document.createElement("div"),Z=document.createElement("div"),ke=function(ze){Ae.innerHTML=b.dateMonths[ze.getMonth()],Ee.innerHTML=ze.getDate(),Z.innerHTML=ze.getFullYear()},Le=function(ze){var H=new Date(Q.getFullYear(),Q.getMonth()+1,0).getDate(),de=ze.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(de)>H&&(de=H.toString()),ze.target.textContent=de,Number(de)<1&&(de="1"),Q.setDate(Number(de))},Oe=function(ze){var H=ze.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);ze.target.textContent=H,Q.setFullYear(Number(H))},je=function(ze){ke(Q)},st=function(ze){var H=new Date(Q.getFullYear(),Q.getMonth()+ze+1,0).getDate();Q.getDate()>H&&Q.setDate(H),Q.setMonth(Q.getMonth()+ze),ke(Q)},Pt=function(ze){Q.setDate(Q.getDate()+ze),ke(Q)},pa=function(ze){var H=Q.getFullYear()+ze;H<0?Q.setFullYear(0):Q.setFullYear(Q.getFullYear()+ze),ke(Q)},qt=document.createElement("div"),Dn=y();qt.id=Dn;var Un=document.createElement("div");Un.classList.add(b.classes.backgroundInfo);var Ie=document.createElement("div");Ie.classList.add(b.classes.dateSelectorInner);var Wt=document.createElement("div");Wt.classList.add(b.classes.button),Wt.classList.add(b.classes.elementThird),Wt.classList.add(b.classes.dateSelectorUp),Wt.innerHTML=ye;var rt=document.createElement("div");rt.classList.add(b.classes.button),rt.classList.add(b.classes.elementThird),rt.classList.add(b.classes.dateSelectorUp),rt.innerHTML=ye;var qe=document.createElement("div");qe.classList.add(b.classes.button),qe.classList.add(b.classes.elementThird),qe.classList.add(b.classes.dateSelectorUp),qe.innerHTML=ye,Ae.classList.add(b.classes.element),Ae.classList.add(b.classes.elementThird),Ae.innerHTML=b.dateMonths[Q.getMonth()],Ee.classList.add(b.classes.element),Ee.classList.add(b.classes.elementThird),Ee.setAttribute("contentEditable",!0),Ee.addEventListener("input",Le),Ee.addEventListener("blur",je),Ee.innerHTML=Q.getDate(),Z.classList.add(b.classes.element),Z.classList.add(b.classes.elementThird),Z.setAttribute("contentEditable",!0),Z.addEventListener("input",Oe),Z.addEventListener("blur",je),Z.innerHTML=Q.getFullYear();var Jt=document.createElement("div");Jt.classList.add(b.classes.button),Jt.classList.add(b.classes.elementThird),Jt.innerHTML=ye;var _t=document.createElement("div");_t.classList.add(b.classes.button),_t.classList.add(b.classes.elementThird),_t.innerHTML=ye;var zn=document.createElement("div");zn.classList.add(b.classes.button),zn.classList.add(b.classes.elementThird),zn.innerHTML=ye,Wt.onclick=function(){return st(1)},rt.onclick=function(){return Pt(1)},qe.onclick=function(){return pa(1)},Jt.onclick=function(){return st(-1)},_t.onclick=function(){return Pt(-1)},zn.onclick=function(){return pa(-1)};var mt=document.createElement("div");mt.classList.add(b.classes.button),mt.classList.add(b.classes.elementHalf),mt.classList.add(b.classes.backgroundSuccess),mt.innerHTML=fe,mt.onclick=function(){F(Dn,ce),_(),K?K(Q):Y&&Y(Q)};var mn=document.createElement("div");mn.classList.add(b.classes.button),mn.classList.add(b.classes.elementHalf),mn.classList.add(b.classes.backgroundError),mn.innerHTML=re,mn.onclick=function(){F(Dn,ce),_(),se?se(Q):q&&q(Q)},Ie.appendChild(Wt),Ie.appendChild(rt),Ie.appendChild(qe),Ie.appendChild(Ae),Ie.appendChild(Ee),Ie.appendChild(Z),Ie.appendChild(Jt),Ie.appendChild(_t),Ie.appendChild(zn),Un.appendChild(Ie),qt.appendChild(Un),qt.appendChild(mt),qt.appendChild(mn),qt.listener=function(ze){M(ze)?mt.click():x(ze)&&mn.click()},R(qt,ce),D(qt,ce)};p.default={alert:j,force:L,confirm:E,input:k,select:O,date:$,setOptions:C,hideAlerts:U}}])})}).call(a,r(0)(n))}])})}),jc={};b2(jc,{default:()=>Du});var E2=Ic(Nc());y2(jc,Ic(Nc()));var{default:Oc,...x2}=E2,Du=Oc!==void 0?Oc:x2;g();g();var Ki=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Gi(e,t,n,a){e.addEventListener?e.addEventListener(t,n,a):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function Wc(e,t){for(var n=t.slice(0,t.length-1),a=0;a=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function T2(e,t){for(var n=e.length>=t.length?e:t,a=e.length>=t.length?t:e,r=!0,u=0;u=0&&He.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&He.splice(0,He.length),(t===93||t===224)&&(t=91),t in gt){gt[t]=!1;for(var a in vn)vn[a]===t&&(Ye[a]=!1)}}function M2(e){if(typeof e>"u")Object.keys(nt).forEach(function(o){return delete nt[o]});else if(Array.isArray(e))e.forEach(function(o){o.key&&Vi(o)});else if(typeof e=="object")e.key&&Vi(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a1?Wc(vn,s):[];nt[p]=nt[p].filter(function(m){var d=a?m.method===a:!0;return!(d&&m.scope===n&&T2(m.mods,f))})}})};function zc(e,t,n,a){if(t.element===a){var r;if(t.scope===n||t.scope==="all"){r=t.mods.length>0;for(var u in gt)Object.prototype.hasOwnProperty.call(gt,u)&&(!gt[u]&&t.mods.indexOf(+u)>-1||gt[u]&&t.mods.indexOf(+u)===-1)&&(r=!1);(t.mods.length===0&&!gt[16]&&!gt[18]&&!gt[17]&&!gt[91]||r||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function Hc(e,t){var n=nt["*"],a=e.keyCode||e.which||e.charCode;if(Ye.filter.call(this,e)){if((a===93||a===224)&&(a=91),He.indexOf(a)===-1&&a!==229&&He.push(a),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(d){var h=Ji[d];e[d]&&He.indexOf(h)===-1?He.push(h):!e[d]&&He.indexOf(h)>-1?He.splice(He.indexOf(h),1):d==="metaKey"&&e[d]&&He.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(He=He.slice(He.indexOf(h))))}),a in gt){gt[a]=!0;for(var r in vn)vn[r]===a&&(Ye[r]=!0);if(!n)return}for(var u in gt)Object.prototype.hasOwnProperty.call(gt,u)&&(gt[u]=e[Ji[u]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(He.indexOf(17)===-1&&He.push(17),He.indexOf(18)===-1&&He.push(18),gt[17]=!0,gt[18]=!0);var o=Dr();if(n)for(var i=0;i-1}function Ye(e,t,n){He=[];var a=$c(e),r=[],u="all",o=document,i=0,s=!1,c=!0,l="+",p=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(u=t.scope),t.element&&(o=t.element),t.keyup&&(s=t.keyup),t.keydown!==void 0&&(c=t.keydown),t.capture!==void 0&&(p=t.capture),typeof t.splitKey=="string"&&(l=t.splitKey)),typeof t=="string"&&(u=t);i1&&(r=Wc(vn,e)),e=e[e.length-1],e=e==="*"?"*":Mu(e),e in nt||(nt[e]=[]),nt[e].push({keyup:s,keydown:c,scope:u,mods:r,shortcut:a[i],method:n,key:a[i],splitKey:l,element:o});typeof o<"u"&&!F2(o)&&window&&(Gc.push(o),Gi(o,"keydown",function(f){Hc(f,o)},p),Uc||(Uc=!0,Gi(window,"focus",function(){He=[]},p)),Gi(o,"keyup",function(f){Hc(f,o),L2(f)},p))}function P2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(nt).forEach(function(n){var a=nt[n].filter(function(r){return r.scope===t&&r.shortcut===e});a.forEach(function(r){r&&r.method&&r.method()})})}var Yi={getPressedKeyString:k2,setScope:Vc,getScope:Dr,deleteScope:D2,getPressedKeyCodes:v2,isPressed:S2,filter:A2,trigger:P2,unbind:M2,keyMap:Sr,modifier:vn,modifierMap:Ji};for(Lu in Yi)Object.prototype.hasOwnProperty.call(Yi,Lu)&&(Ye[Lu]=Yi[Lu]);var Lu;typeof document<"u"&&(qc=window.hotkeys,Ye.noConflict=function(e){return e&&window.hotkeys===Ye&&(window.hotkeys=qc),Ye},window.hotkeys=Ye);var qc;g();g();var _2={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},Jc={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Xe={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},kt={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},qn={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},W=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let a=W.getVersionPrecision(e),r=W.getVersionPrecision(t),u=Math.max(a,r),o=0,i=W.map([e,t],s=>{let c=u-W.getVersionPrecision(s),l=s+new Array(c+1).join(".0");return W.map(l.split("."),p=>new Array(20-p.length).join("0")+p).reverse()});for(n&&(o=u-Math.min(a,r)),u-=1;u>=o;){if(i[0][u]>i[1][u])return 1;if(i[0][u]===i[1][u]){if(u===o)return 0;u-=1}else if(i[0][u]{n[o]=u[o]})}return e}static getBrowserAlias(e){return _2[e]}static getBrowserTypeByAlias(e){return Jc[e]||""}},Ne=/version\/(\d+(\.?_?\d+)+)/i,B2=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=W.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||W.getFirstMatch(Ne,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=W.getFirstMatch(Ne,e)||W.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=W.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||W.getFirstMatch(Ne,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=W.getFirstMatch(Ne,e)||W.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=W.getFirstMatch(Ne,e)||W.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=W.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(Ne,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=W.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(Ne,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=W.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||W.getFirstMatch(Ne,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=W.getFirstMatch(Ne,e)||W.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=W.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ne,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=W.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ne,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=W.getFirstMatch(Ne,e)||W.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=W.getFirstMatch(Ne,e)||W.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=W.getFirstMatch(Ne,e)||W.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=W.getFirstMatch(Ne,e)||W.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=W.getFirstMatch(Ne,e)||W.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=W.getFirstMatch(Ne,e)||W.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=W.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ne,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=W.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ne,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=W.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=W.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=W.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=W.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=W.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=W.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=W.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=W.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=W.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=W.getFirstMatch(Ne,e)||W.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=W.getFirstMatch(Ne,e)||W.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=W.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=W.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ne,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=W.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ne,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=W.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=W.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=W.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=W.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||W.getFirstMatch(Ne,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=W.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=W.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=W.getFirstMatch(Ne,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=W.getFirstMatch(Ne,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=W.getFirstMatch(Ne,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,a=e.search("\\(")!==-1?n:t;return{name:W.getFirstMatch(a,e),version:W.getSecondMatch(a,e)}}}],R2=B2,O2=[{test:[/Roku\/DVP/],describe(e){let t=W.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:kt.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=W.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:kt.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=W.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=W.getWindowsVersionName(t);return{name:kt.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:kt.iOS},n=W.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=W.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=W.getMacOSVersionName(t),a={name:kt.MacOS,version:t};return n&&(a.versionName=n),a}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=W.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:kt.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=W.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=W.getAndroidVersionName(t),a={name:kt.Android,version:t};return n&&(a.versionName=n),a}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=W.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:kt.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=W.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||W.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||W.getFirstMatch(/\bbb(\d+)/i,e);return{name:kt.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=W.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:kt.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=W.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:kt.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:kt.Linux}}},{test:[/CrOS/],describe(){return{name:kt.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=W.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:kt.PlayStation4,version:t}}}],I2=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=W.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Xe.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Xe.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Xe.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Xe.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Xe.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Xe.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Xe.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=W.getFirstMatch(/(ipod|iphone)/i,e);return{type:Xe.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Xe.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Xe.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Xe.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Xe.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Xe.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Xe.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Xe.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Xe.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Xe.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Xe.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Xe.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Xe.tv}}}],N2=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:qn.Blink};let t=W.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:qn.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:qn.Trident},n=W.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:qn.Presto},n=W.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:qn.Gecko},n=W.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:qn.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:qn.WebKit},n=W.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],j2=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=W.find(R2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=W.find(O2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=W.find(I2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=W.find(N2,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return W.assign({},this.parsedResult)}satisfies(e){let t={},n=0,a={},r=0;if(Object.keys(e).forEach(u=>{let o=e[u];typeof o=="string"?(a[u]=o,r+=1):typeof o=="object"&&(t[u]=o,n+=1)}),n>0){let u=Object.keys(t),o=W.find(u,s=>this.isOS(s));if(o){let s=this.satisfies(t[o]);if(s!==void 0)return s}let i=W.find(u,s=>this.isPlatform(s));if(i){let s=this.satisfies(t[i]);if(s!==void 0)return s}}if(r>0){let u=Object.keys(a),o=W.find(u,i=>this.isBrowser(i,!0));if(o!==void 0)return this.compareVersion(a[o])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),a=e.toLowerCase(),r=W.getBrowserTypeByAlias(a);return t&&r&&(a=r.toLowerCase()),a===n}compareVersion(e){let t=[0],n=e,a=!1,r=this.getBrowserVersion();if(typeof r=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(a=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(a=!0,n=e.substr(1)),t.indexOf(W.compareVersions(r,n,a))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},Yc=j2,U2=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new Yc(e,t)}static parse(e){return new Yc(e).getResult()}static get BROWSER_MAP(){return Jc}static get ENGINE_MAP(){return qn}static get OS_MAP(){return kt}static get PLATFORMS_MAP(){return Xe}},Ua=U2;g();g();var{entries:r4,setPrototypeOf:Qc,isFrozen:z2,getPrototypeOf:H2,getOwnPropertyDescriptor:q2}=Object,{freeze:At,seal:pn,create:W2}=Object,{apply:ns,construct:as}=typeof Reflect<"u"&&Reflect;ns||(ns=function(e,t,n){return e.apply(t,n)});At||(At=function(e){return e});pn||(pn=function(e){return e});as||(as=function(e,t){return new e(...t)});var $2=Xt(Array.prototype.forEach),Zc=Xt(Array.prototype.pop),Lr=Xt(Array.prototype.push),_u=Xt(String.prototype.toLowerCase),Qi=Xt(String.prototype.toString),K2=Xt(String.prototype.match),gn=Xt(String.prototype.replace),G2=Xt(String.prototype.indexOf),V2=Xt(String.prototype.trim),$t=Xt(RegExp.prototype.test),Mr=Y2(TypeError);function Xt(e){return function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r/gm),e1=pn(/\${[\w\W]*}/gm),t1=pn(/^data-[\-\w.\u00B7-\uFFFF]/),n1=pn(/^aria-[\-\w]+$/),u4=pn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),a1=pn(/^(?:\w+script|data):/i),r1=pn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),o4=pn(/^html$/i),a4=Object.freeze({__proto__:null,MUSTACHE_EXPR:Z2,ERB_EXPR:X2,TMPLIT_EXPR:e1,DATA_ATTR:t1,ARIA_ATTR:n1,IS_ALLOWED_URI:u4,IS_SCRIPT_OR_DATA:a1,ATTR_WHITESPACE:r1,DOCTYPE_NAME:o4}),u1=()=>typeof window>"u"?null:window,o1=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,a="data-tt-policy-suffix";t&&t.hasAttribute(a)&&(n=t.getAttribute(a));let r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML(u){return u},createScriptURL(u){return u}})}catch{return null}};function i4(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u1(),t=v=>i4(v);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,a=n.currentScript,{document:r}=e,{DocumentFragment:u,HTMLTemplateElement:o,Node:i,Element:s,NodeFilter:c,NamedNodeMap:l=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:p,DOMParser:f,trustedTypes:m}=e,d=s.prototype,h=Fu(d,"cloneNode"),T=Fu(d,"nextSibling"),b=Fu(d,"childNodes"),C=Fu(d,"parentNode");if(typeof o=="function"){let v=r.createElement("template");v.content&&v.content.ownerDocument&&(r=v.content.ownerDocument)}let w,I="",{implementation:B,createNodeIterator:y,createDocumentFragment:S,getElementsByTagName:P}=r,{importNode:M}=n,x={};t.isSupported=typeof r4=="function"&&typeof C=="function"&&B&&B.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:R,ERB_EXPR:F,TMPLIT_EXPR:D,DATA_ATTR:_,ARIA_ATTR:U,IS_SCRIPT_OR_DATA:j,ATTR_WHITESPACE:L}=a4,{IS_ALLOWED_URI:E}=a4,k=null,O=Se({},[...Xc,...Zi,...Xi,...es,...e4]),$=null,z=Se({},[...t4,...ts,...n4,...Pu]),Y=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),q=null,ae=null,Q=!0,G=!0,fe=!1,he=!0,re=!1,K=!1,se=!1,me=!1,ce=!1,ye=!1,Ae=!1,Ee=!0,Z=!1,ke="user-content-",Le=!0,Oe=!1,je={},st=null,Pt=Se({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),pa=null,qt=Se({},["audio","video","img","source","image","track"]),Dn=null,Un=Se({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ie="http://www.w3.org/1998/Math/MathML",Wt="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml",qe=rt,Jt=!1,_t=null,zn=Se({},[Ie,Wt,rt],Qi),mt,mn=["application/xhtml+xml","text/html"],ze="text/html",H,de=null,Ke=r.createElement("form"),Me=function(v){return v instanceof RegExp||v instanceof Function},Pe=function(v){if(!(de&&de===v)){if((!v||typeof v!="object")&&(v={}),v=za(v),mt=mn.indexOf(v.PARSER_MEDIA_TYPE)===-1?mt=ze:mt=v.PARSER_MEDIA_TYPE,H=mt==="application/xhtml+xml"?Qi:_u,k="ALLOWED_TAGS"in v?Se({},v.ALLOWED_TAGS,H):O,$="ALLOWED_ATTR"in v?Se({},v.ALLOWED_ATTR,H):z,_t="ALLOWED_NAMESPACES"in v?Se({},v.ALLOWED_NAMESPACES,Qi):zn,Dn="ADD_URI_SAFE_ATTR"in v?Se(za(Un),v.ADD_URI_SAFE_ATTR,H):Un,pa="ADD_DATA_URI_TAGS"in v?Se(za(qt),v.ADD_DATA_URI_TAGS,H):qt,st="FORBID_CONTENTS"in v?Se({},v.FORBID_CONTENTS,H):Pt,q="FORBID_TAGS"in v?Se({},v.FORBID_TAGS,H):{},ae="FORBID_ATTR"in v?Se({},v.FORBID_ATTR,H):{},je="USE_PROFILES"in v?v.USE_PROFILES:!1,Q=v.ALLOW_ARIA_ATTR!==!1,G=v.ALLOW_DATA_ATTR!==!1,fe=v.ALLOW_UNKNOWN_PROTOCOLS||!1,he=v.ALLOW_SELF_CLOSE_IN_ATTR!==!1,re=v.SAFE_FOR_TEMPLATES||!1,K=v.WHOLE_DOCUMENT||!1,ce=v.RETURN_DOM||!1,ye=v.RETURN_DOM_FRAGMENT||!1,Ae=v.RETURN_TRUSTED_TYPE||!1,me=v.FORCE_BODY||!1,Ee=v.SANITIZE_DOM!==!1,Z=v.SANITIZE_NAMED_PROPS||!1,Le=v.KEEP_CONTENT!==!1,Oe=v.IN_PLACE||!1,E=v.ALLOWED_URI_REGEXP||u4,qe=v.NAMESPACE||rt,Y=v.CUSTOM_ELEMENT_HANDLING||{},v.CUSTOM_ELEMENT_HANDLING&&Me(v.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Y.tagNameCheck=v.CUSTOM_ELEMENT_HANDLING.tagNameCheck),v.CUSTOM_ELEMENT_HANDLING&&Me(v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Y.attributeNameCheck=v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),v.CUSTOM_ELEMENT_HANDLING&&typeof v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Y.allowCustomizedBuiltInElements=v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),re&&(G=!1),ye&&(ce=!0),je&&(k=Se({},[...e4]),$=[],je.html===!0&&(Se(k,Xc),Se($,t4)),je.svg===!0&&(Se(k,Zi),Se($,ts),Se($,Pu)),je.svgFilters===!0&&(Se(k,Xi),Se($,ts),Se($,Pu)),je.mathMl===!0&&(Se(k,es),Se($,n4),Se($,Pu))),v.ADD_TAGS&&(k===O&&(k=za(k)),Se(k,v.ADD_TAGS,H)),v.ADD_ATTR&&($===z&&($=za($)),Se($,v.ADD_ATTR,H)),v.ADD_URI_SAFE_ATTR&&Se(Dn,v.ADD_URI_SAFE_ATTR,H),v.FORBID_CONTENTS&&(st===Pt&&(st=za(st)),Se(st,v.FORBID_CONTENTS,H)),Le&&(k["#text"]=!0),K&&Se(k,["html","head","body"]),k.table&&(Se(k,["tbody"]),delete q.tbody),v.TRUSTED_TYPES_POLICY){if(typeof v.TRUSTED_TYPES_POLICY.createHTML!="function")throw Mr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof v.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Mr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=v.TRUSTED_TYPES_POLICY,I=w.createHTML("")}else w===void 0&&(w=o1(m,a)),w!==null&&typeof I=="string"&&(I=w.createHTML(""));At&&At(v),de=v}},Ln=Se({},["mi","mo","mn","ms","mtext"]),wn=Se({},["foreignobject","desc","title","annotation-xml"]),Qt=Se({},["title","style","font","a","script"]),Ra=Se({},Zi);Se(Ra,Xi),Se(Ra,J2);let Fi=Se({},es);Se(Fi,Q2);let rf=function(v){let ie=C(v);(!ie||!ie.tagName)&&(ie={namespaceURI:qe,tagName:"template"});let X=_u(v.tagName),Be=_u(ie.tagName);return _t[v.namespaceURI]?v.namespaceURI===Wt?ie.namespaceURI===rt?X==="svg":ie.namespaceURI===Ie?X==="svg"&&(Be==="annotation-xml"||Ln[Be]):!!Ra[X]:v.namespaceURI===Ie?ie.namespaceURI===rt?X==="math":ie.namespaceURI===Wt?X==="math"&&wn[Be]:!!Fi[X]:v.namespaceURI===rt?ie.namespaceURI===Wt&&!wn[Be]||ie.namespaceURI===Ie&&!Ln[Be]?!1:!Fi[X]&&(Qt[X]||!Ra[X]):!!(mt==="application/xhtml+xml"&&_t[v.namespaceURI]):!1},Oa=function(v){Lr(t.removed,{element:v});try{v.parentNode.removeChild(v)}catch{v.remove()}},Pi=function(v,ie){try{Lr(t.removed,{attribute:ie.getAttributeNode(v),from:ie})}catch{Lr(t.removed,{attribute:null,from:ie})}if(ie.removeAttribute(v),v==="is"&&!$[v])if(ce||ye)try{Oa(ie)}catch{}else try{ie.setAttribute(v,"")}catch{}},uc=function(v){let ie,X;if(me)v=""+v;else{let vt=K2(v,/^[\r\n\t ]+/);X=vt&&vt[0]}mt==="application/xhtml+xml"&&qe===rt&&(v=''+v+"");let Be=w?w.createHTML(v):v;if(qe===rt)try{ie=new f().parseFromString(Be,mt)}catch{}if(!ie||!ie.documentElement){ie=B.createDocument(qe,"template",null);try{ie.documentElement.innerHTML=Jt?I:Be}catch{}}let ut=ie.body||ie.documentElement;return v&&X&&ut.insertBefore(r.createTextNode(X),ut.childNodes[0]||null),qe===rt?P.call(ie,K?"html":"body")[0]:K?ie.documentElement:ut},oc=function(v){return y.call(v.ownerDocument||v,v,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},uf=function(v){return v instanceof p&&(typeof v.nodeName!="string"||typeof v.textContent!="string"||typeof v.removeChild!="function"||!(v.attributes instanceof l)||typeof v.removeAttribute!="function"||typeof v.setAttribute!="function"||typeof v.namespaceURI!="string"||typeof v.insertBefore!="function"||typeof v.hasChildNodes!="function")},xu=function(v){return typeof i=="object"?v instanceof i:v&&typeof v=="object"&&typeof v.nodeType=="number"&&typeof v.nodeName=="string"},Mn=function(v,ie,X){x[v]&&$2(x[v],Be=>{Be.call(t,ie,X,de)})},ic=function(v){let ie;if(Mn("beforeSanitizeElements",v,null),uf(v))return Oa(v),!0;let X=H(v.nodeName);if(Mn("uponSanitizeElement",v,{tagName:X,allowedTags:k}),v.hasChildNodes()&&!xu(v.firstElementChild)&&(!xu(v.content)||!xu(v.content.firstElementChild))&&$t(/<[/\w]/g,v.innerHTML)&&$t(/<[/\w]/g,v.textContent))return Oa(v),!0;if(!k[X]||q[X]){if(!q[X]&&lc(X)&&(Y.tagNameCheck instanceof RegExp&&$t(Y.tagNameCheck,X)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(X)))return!1;if(Le&&!st[X]){let Be=C(v)||v.parentNode,ut=b(v)||v.childNodes;if(ut&&Be){let vt=ut.length;for(let Bt=vt-1;Bt>=0;--Bt)Be.insertBefore(h(ut[Bt],!0),T(v))}}return Oa(v),!0}return v instanceof s&&!rf(v)||(X==="noscript"||X==="noembed")&&$t(/<\/no(script|embed)/i,v.innerHTML)?(Oa(v),!0):(re&&v.nodeType===3&&(ie=v.textContent,ie=gn(ie,R," "),ie=gn(ie,F," "),ie=gn(ie,D," "),v.textContent!==ie&&(Lr(t.removed,{element:v.cloneNode()}),v.textContent=ie)),Mn("afterSanitizeElements",v,null),!1)},sc=function(v,ie,X){if(Ee&&(ie==="id"||ie==="name")&&(X in r||X in Ke))return!1;if(!(G&&!ae[ie]&&$t(_,ie))&&!(Q&&$t(U,ie))){if(!$[ie]||ae[ie]){if(!(lc(v)&&(Y.tagNameCheck instanceof RegExp&&$t(Y.tagNameCheck,v)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(v))&&(Y.attributeNameCheck instanceof RegExp&&$t(Y.attributeNameCheck,ie)||Y.attributeNameCheck instanceof Function&&Y.attributeNameCheck(ie))||ie==="is"&&Y.allowCustomizedBuiltInElements&&(Y.tagNameCheck instanceof RegExp&&$t(Y.tagNameCheck,X)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(X))))return!1}else if(!Dn[ie]&&!$t(E,gn(X,L,""))&&!((ie==="src"||ie==="xlink:href"||ie==="href")&&v!=="script"&&G2(X,"data:")===0&&pa[v])&&!(fe&&!$t(j,gn(X,L,"")))&&X)return!1}return!0},lc=function(v){return v.indexOf("-")>0},cc=function(v){let ie,X,Be,ut;Mn("beforeSanitizeAttributes",v,null);let{attributes:vt}=v;if(!vt)return;let Bt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:$};for(ut=vt.length;ut--;){ie=vt[ut];let{name:lt,namespaceURI:Ia}=ie;if(X=lt==="value"?ie.value:V2(ie.value),Be=H(lt),Bt.attrName=Be,Bt.attrValue=X,Bt.keepAttr=!0,Bt.forceKeepAttr=void 0,Mn("uponSanitizeAttribute",v,Bt),X=Bt.attrValue,Bt.forceKeepAttr||(Pi(lt,v),!Bt.keepAttr))continue;if(!he&&$t(/\/>/i,X)){Pi(lt,v);continue}re&&(X=gn(X,R," "),X=gn(X,F," "),X=gn(X,D," "));let dc=H(v.nodeName);if(sc(dc,Be,X)){if(Z&&(Be==="id"||Be==="name")&&(Pi(lt,v),X=ke+X),w&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!Ia)switch(m.getAttributeType(dc,Be)){case"TrustedHTML":{X=w.createHTML(X);break}case"TrustedScriptURL":{X=w.createScriptURL(X);break}}try{Ia?v.setAttributeNS(Ia,lt,X):v.setAttribute(lt,X),Zc(t.removed)}catch{}}}Mn("afterSanitizeAttributes",v,null)},of=function v(ie){let X,Be=oc(ie);for(Mn("beforeSanitizeShadowDOM",ie,null);X=Be.nextNode();)Mn("uponSanitizeShadowNode",X,null),!ic(X)&&(X.content instanceof u&&v(X.content),cc(X));Mn("afterSanitizeShadowDOM",ie,null)};return t.sanitize=function(v){let ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X,Be,ut,vt;if(Jt=!v,Jt&&(v=""),typeof v!="string"&&!xu(v))if(typeof v.toString=="function"){if(v=v.toString(),typeof v!="string")throw Mr("dirty is not a string, aborting")}else throw Mr("toString is not a function");if(!t.isSupported)return v;if(se||Pe(ie),t.removed=[],typeof v=="string"&&(Oe=!1),Oe){if(v.nodeName){let Ia=H(v.nodeName);if(!k[Ia]||q[Ia])throw Mr("root node is forbidden and cannot be sanitized in-place")}}else if(v instanceof i)X=uc(""),Be=X.ownerDocument.importNode(v,!0),Be.nodeType===1&&Be.nodeName==="BODY"||Be.nodeName==="HTML"?X=Be:X.appendChild(Be);else{if(!ce&&!re&&!K&&v.indexOf("<")===-1)return w&&Ae?w.createHTML(v):v;if(X=uc(v),!X)return ce?null:Ae?I:""}X&&me&&Oa(X.firstChild);let Bt=oc(Oe?v:X);for(;ut=Bt.nextNode();)ic(ut)||(ut.content instanceof u&&of(ut.content),cc(ut));if(Oe)return v;if(ce){if(ye)for(vt=S.call(X.ownerDocument);X.firstChild;)vt.appendChild(X.firstChild);else vt=X;return($.shadowroot||$.shadowrootmod)&&(vt=M.call(n,vt,!0)),vt}let lt=K?X.outerHTML:X.innerHTML;return K&&k["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&$t(o4,X.ownerDocument.doctype.name)&&(lt=" +`+lt),re&&(lt=gn(lt,R," "),lt=gn(lt,F," "),lt=gn(lt,D," ")),w&&Ae?w.createHTML(lt):lt},t.setConfig=function(v){Pe(v),se=!0},t.clearConfig=function(){de=null,se=!1},t.isValidAttribute=function(v,ie,X){de||Pe({});let Be=H(v),ut=H(ie);return sc(Be,ut,X)},t.addHook=function(v,ie){typeof ie=="function"&&(x[v]=x[v]||[],Lr(x[v],ie))},t.removeHook=function(v){if(x[v])return Zc(x[v])},t.removeHooks=function(v){x[v]&&(x[v]=[])},t.removeAllHooks=function(){x={}},t}var _e=i4();var i1=Du.alert;g();g();var s4={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",curentPlan:"\u5F53\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52A8\u7EED\u671F",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",sponsorLabel:"$1 \u8D77\u8D5E\u52A9\u5F00\u53D1\u8005",help:"\u5E2E\u52A9",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D\uFF0C\u518D\u70B9\u51FB\u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D\u5373\u53EF\u8BBE\u7F6E",browserShortcutsNoteForChrome:"\u7C7BChrome \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762\uFF0C\u5728`\u7BA1\u7406\u5FEB\u6377\u952E`\u9762\u677F(`chrome://extensions/shortcuts`)\u8BBE\u7F6E\uFF0C\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8DF3\u8F6C\u5230\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E\u683C\u5F0F\u4E3A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1: \u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1 & PDF\u6587\u6863\u7FFB\u8BD1","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7F51\u9875\u53CC\u8BED\u7FFB\u8BD1\u6269\u5C55\uFF0C\u540C\u65F6\u652F\u6301 PDF \u7FFB\u8BD1\uFF0C\u53CC\u8BED Epub \u7535\u5B50\u4E66\u5236\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u817E\u8BAF\u7FFB\u8BD1\u7B49\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\uFF0C\u514D\u8D39\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8BD1\u5E76\u9690\u85CF\u539F\u6587/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.toggleTranslationMask":"\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.donateContext":"\u4E86\u89E3\u8D5E\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5219\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875(\u4EC5\u8BD1\u6587)/\u663E\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7","fingers.0":"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478",mouseHoldKey:"+ {key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoverHoldKey:"\u9F20\u6807\u60AC\u505C\u540C\u65F6\u6309\u4E0B\u5FEB\u6377\u952E\u7FFB\u8BD1\u6BB5\u843D","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u6587\u6863",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",goAdvancedSettings:"\u53BB\u8FDB\u9636\u8BBE\u7F6E\u9875",goAdvancedInterfaceSettings:"\u53BB\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u8BBE\u7F6E\u9875\u9762",advanced:"\u8FDB\u9636\u8BBE\u7F6E",advancedDescription:"\u4E00\u822C\u65E0\u9700\u8BBE\u7F6E\uFF0C\u4FDD\u6301\u9ED8\u8BA4\u5373\u53EF\u3002\u4EC5\u5BF9\u4E8E\u66F4\u4E13\u4E1A\u7684\u7528\u6237\uFF0C\u63D0\u4F9B\u66F4\u4E2A\u6027\u5316\u7684\u8BBE\u7F6E\u9879\u3002",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00","display both the original text and the translation":"\u540C\u65F6\u663E\u793A\u539F\u6587\u548C\u8BD1\u6587","keyboard shortcuts":"\u952E\u76D8\u5FEB\u6377\u952E",modify:"\u4FEE\u6539\u5FEB\u6377\u952E",reset:"\u91CD\u7F6E",close:"\u5173\u95ED",homepage:"\u4E3B\u9875",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",changeToOnlyTranslationMode:"\u5207\u6362\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u5207\u6362\u4E3A\u53CC\u8BED\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",unknownError:"\u672A\u77E5\u9519\u8BEF",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",needActionForOptions:"(\u9700\u8BBE\u7F6E)",translationEngine:"\u5F15\u64CE\u9009\u9879",sourceLanguage:"\u539F\u6587\u8BED\u8A00",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",forThisSite:"\u5F53\u524D\u7F51\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1 {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8BD1 {language}",alwaysTranslateSomeSite:"\u603B\u662F\u7FFB\u8BD1 {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8BD1 {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u6DFB\u52A0",default:"\u9ED8\u8BA4",forThisLanguage:"\u9488\u5BF9\u8BE5\u8BED\u8A00\uFF1A","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91","translate other languages into specific language":"\u5C06\u5176\u4ED6\u8BED\u8A00\u7FFB\u8BD1\u4E3A\u4F60\u8BBE\u7F6E\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1",language:"\u8BED\u8A00","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",Error:"\u9519\u8BEF",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",interface:"\u754C\u9762\u8BBE\u7F6E",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8BD1\u9875\u9762\u6807\u9898","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1",enableUserscriptPagePopup:"\u5728\u9875\u9762\u4E0A\u663E\u793A\u60AC\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528\u5FEB\u6377\u952E/{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8BD1\u6587\u6837\u5F0F",currentUrl:"\u5F53\u524D\u7F51\u5740",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664","languages.auto":"\u81EA\u52A8\u68C0\u6D4B",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",upload:"\u4E0A\u4F20",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",download:"\u4E0B\u8F7D",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",deleteFail:"\u5220\u9664\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",backupToCloudDescription:"\u624B\u52A8\u4E0A\u4F20\u6216\u6062\u590D\u5907\u4EFD\u6587\u4EF6\uFF0C\u6700\u591A\u5141\u8BB83\u4E2A\u4E0D\u540C\u7684\u5907\u4EFD",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",updatedAt:"\u66F4\u65B0\u4E8E {date}",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u9891\u9053",joinTelegramChannel:"\u5173\u6CE8 Telegram \u9891\u9053\u83B7\u53D6\u6700\u65B0\u66F4\u65B0",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",autoSync:"\u81EA\u52A8\u5B9A\u65F6\u540C\u6B65",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863","edit border color":"\u4FEE\u6539\u8FB9\u6846\u989C\u8272",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",enableSubtitle:"\u5F00\u542F\u5B57\u5E55\u7FFB\u8BD1",enableSubtitleDescription:"\u9488\u5BF9 youtube \u7B49\u7F51\u7AD9\u7684\u5B57\u5E55\u533A\u57DF\u5F00\u542F\u7FFB\u8BD1",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",enableSearchEnhancement:"\u542F\u7528\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A",enableSearchEnhancementDescription:"\u5F00\u542F\u540E\uFF0C\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\u793E\u533A\uFF09\u53F3\u8FB9\u680F\u81EA\u52A8\u663E\u793A\u5BF9\u5E94\u82F1\u6587\u5173\u952E\u8BCD\u7684\u201C\u8C37\u6B4C\u65B0\u95FB\u201D\u641C\u7D22\u7ED3\u679C\u3002",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerMinute":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u5206\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u8350\uFF09, \u5C06\u4F1A\u5728\u5355\u72EC\u4F5C\u4E3A\u4E00\u6BB5\u53D1\u9001\u7ED9 OpenAI","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740",enabledExtension:"\u542F\u7528\u6269\u5C55",clickToDisableExtension:"\u70B9\u51FB\u7981\u7528\u6269\u5C55",clickToEnableExtension:"\u70B9\u51FB\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",modifyMouseHoverKey:"\u4FEE\u6539\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u8BBE\u7F6E",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",disableTint:"* \u4F60\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u542F\u7528\u3002",searchEnhancementNotes:"\u6211\u4EEC\u53D1\u73B0\uFF0C\u4E2D\u6587\u5173\u952E\u8BCD\u548C\u82F1\u6587\u5173\u952E\u8BCD\u7684\u65B0\u95FB\u7ED3\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u542F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u529F\u80FD\u540E\uFF0C\u6211\u4EEC\u4F1A\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\u7F51\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52A8\u7528\u82F1\u6587\u4E3A\u4F60\u641C\u7D22\u540C\u6837\u7684\u5173\u952E\u8BCD\u5E76\u5C55\u793A\u5728\u53F3\u4FA7\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8BE5\u529F\u80FD\u7684\u8BDD\uFF0C\u53EF\u4EE5\u9009\u62E9\u7981\u7528\u5B83\u3002",option:"\u8BBE\u7F6E",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",needLoginAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u81EA\u5B9A\u4E49)",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",onetime_7day:"7 \u5929\u4F53\u9A8C\u5305",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradePlan:"\u70B9\u6B64\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL \u548C OpenAI \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8BD1",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u8BBE\u7F6E\u5176\u4ED6\u5FEB\u6377\u952E\u6765\u89E6\u53D1\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1"};var l4={nologin:"\u672A\u767B\u9304",login:"\u767B\u9304",manageAccount:"\u7BA1\u7406\u8CEC\u6236",logout:"\u9000\u51FA",curentPlan:"\u7576\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u671F",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u64CA\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u8AAA\u660E",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u9644\u52A0\u5143\u4EF6\u7BA1\u7406\u9801\u9762 \u300Cabout:addons\u300D\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u5716\u793A\u300D\uFF0C\u518D\u9EDE\u9078\u300C\u7BA1\u7406\u64F4\u5145\u5957\u4EF6\u5FEB\u901F\u9375\u300D\u5373\u53EF\u8A2D\u5B9A",browserShortcutsNoteForChrome:"Chromium \u6838\u5FC3\u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u64F4\u5145\u529F\u80FD\u7BA1\u7406\u9801\u9762\uFF0C\u5728\u300C\u9375\u76E4\u5FEB\u901F\u9375\u300D\u9801\u9762(chrome://extensions/shortcuts)\u8A2D\u5B9A\uFF0C\u9EDE\u9078\u4E0B\u65B9\u6309\u9215\u524D\u5F80\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u901F\u9375\u683C\u5F0F\u70BA\uFF1A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F: \u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F & PDF\u6587\u6A94\u7FFB\u8B6F","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7DB2\u9801\u96D9\u8A9E\u7FFB\u8B6F\u64F4\u5C55\uFF0C\u540C\u6642\u652F\u6301 PDF \u7FFB\u8B6F\uFF0C\u96D9\u8A9E Epub \u96FB\u5B50\u66F8\u88FD\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u9A30\u8A0A\u7FFB\u8B6F\u7B49\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF0C\u514D\u8CBB\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8B6F\u4E26\u96B1\u85CF\u539F\u6587/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.toggleTranslationMask":"\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.donateContext":"\u4E86\u89E3\u8D0A\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u5247\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u6642\u89F8\u78B0\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801(\u50C5\u8B6F\u6587)/\u986F\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304","fingers.0":"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478",mouseHoldKey:"+ {key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u6377\u9375(\u6253\u958B\u8A2D\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoverHoldKey:"\u9F20\u6A19\u6ED1\u904E\u540C\u6642\u6309\u4E0B X \u9375\u7FFB\u8B6F\u6BB5\u843D","mouse-translate":"\u9F20\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",goAdvancedSettings:"\u524D\u5F80\u9032\u968E\u8A2D\u5B9A\u9801\u9762",goAdvancedInterfaceSettings:"\u524D\u5F80\u81EA\u8A02\u8A2D\u5B9A\u9801\u9762",advanced:"\u9032\u968E\u8A2D\u5B9A",advancedDescription:"\u6B63\u5E38\u60C5\u6CC1\u7121\u9700\u8A2D\u5B9A\uFF0C\u4FDD\u6301\u9810\u8A2D\u5373\u53EF\u3002\u50C5\u91DD\u5C0D\u66F4\u5C08\u696D\u7684\u4F7F\u7528\u8005\uFF0C\u63D0\u4F9B\u66F4\u500B\u4EBA\u5316\u7684\u8A2D\u5B9A\u9805\u76EE\u3002",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00","display both the original text and the translation":"\u540C\u6642\u986F\u793A\u539F\u6587\u548C\u8B6F\u6587","keyboard shortcuts":"\u9375\u76E4\u5FEB\u901F\u9375",modify:"\u8B8A\u66F4\u5FEB\u901F\u9375",reset:"\u91CD\u8A2D",close:"\u95DC\u9589",homepage:"\u9996\u9801",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",changeToOnlyTranslationMode:"\u5207\u63DB\u70BA\u50C5\u986F\u793A\u8B6F\u6587",changeToDualTranslationMode:"\u5207\u63DB\u70BA\u96D9\u8A9E\u7FFB\u8B6F",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:"\u672A\u77E5\u7684\u932F\u8AA4",canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u9078\u9805",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",needActionForOptions:"(\u9700\u8A2D\u5B9A)",translationEngine:"\u5F15\u64CE\u9078\u9805",sourceLanguage:"\u539F\u6587\u8A9E\u8A00",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",forThisSite:"\u7576\u524D\u7DB2\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8B6F {language}",alwaysTranslateSomeSite:"\u7E3D\u662F\u7FFB\u8B6F {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8B6F {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u65B0\u589E",default:"\u9810\u8A2D",forThisLanguage:"\u91DD\u5C0D\u8A72\u8A9E\u8A00\uFF1A","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F","translate other languages into specific language":"\u5C07\u5176\u5B83\u8A9E\u8A00\u7FFB\u8B6F\u70BA\u4F60\u8A2D\u5B9A\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9",language:"\u8A9E\u8A00","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",Error:"\u932F\u8AA4",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",interface:"\u4ECB\u9762\u8A2D\u5B9A",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65",syncToAccount:"\u540C\u6B65\u5230\u8CEC\u6236",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u8CEC\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u8A2D\u5099\u4E4B\u9593\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u8CEC\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u8CEC\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8B6F","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9E\u99AC\u905C\u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8B6F\u9801\u9762\u6A19\u984C","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F",enableUserscriptPagePopup:"\u5728\u9801\u9762\u4E0A\u986F\u793A\u61F8\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528\u5FEB\u901F\u9375/{touch}\u518D\u6B21\u986F\u793A\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5EFA\u8B70\u5C07\u672C\u8A2D\u5B9A\u9801\u9762\u52A0\u5165\u81F3\u6211\u7684\u6700\u611B","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8B6F\u6587\u6A23\u5F0F",currentUrl:"\u76EE\u524D\u7DB2\u5740",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6E96\u3002",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",upload:"\u4E0A\u50B3",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",download:"\u4E0B\u8F09",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",deleteFail:"\u522A\u9664\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",backupToCloudDescription:"\u624B\u52D5\u4E0A\u50B3\u6216\u9084\u539F\u5099\u4EFD\u6A94\u6848\uFF0C\u6700\u591A\u5141\u8A31 3 \u500B\u4E0D\u540C\u7684\u5099\u4EFD",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",updatedAt:"\u66F4\u65B0\u65BC {date}",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u4EEC\u7684<3>Twitter\uFF0C<4>Telegram \u983B\u9053\u4EE5\u53CA\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u90F5\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u983B\u9053",joinTelegramChannel:"\u95DC\u6CE8 Telegram \u983B\u9053\u77AD\u89E3\u66F4\u65B0\u8CC7\u8A0A",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",autoSync:"\u81EA\u52D5\u5B9A\u6642\u540C\u6B65",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6","edit border color":"\u8B8A\u66F4\u908A\u6846\u8272\u5F69",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",enableSubtitle:"\u958B\u555F\u5B57\u5E55\u7FFB\u8B6F",enableSubtitleDescription:"\u91DD\u5C0D youtube \u7B49\u7DB2\u7AD9\u7684\u5B57\u5E55\u5340\u57DF\u958B\u555F\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",enableSearchEnhancement:"\u958B\u555F\u641C\u7D22\u589E\u5F37",enableSearchEnhancementDescription:"\u4E2D\u6587\u641C\u7D22\u8C37\u6B4C\u6703\u5728\u53F3\u908A\u51FA\u73FE\u82F1\u6587\u7248\u8C37\u6B4C\u65B0\u805E",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerMinute":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u5206\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u4EFD\u50B3\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u85A6\uFF09, \u5C07\u6703\u5728\u55AE\u7368\u4F5C\u70BA\u4E00\u6BB5\u767C\u9001\u7D66 OpenAI","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u50B3\u9001\u767C\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",clickToDisableExtension:"\u9EDE\u9078\u505C\u7528\u5957\u4EF6",clickToEnableExtension:"\u9EDE\u9078\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u9F20\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u7F6E\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u5B57\u7B26\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8B58\u5225\u70BA\u89F8\u767C\u5B57\u7B26\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u7981\u7528\u78BA\u8A8D",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",disableTint:"* \u60A8\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u555F\u7528\u3002",searchEnhancementNotes:"\u6211\u5011\u767C\u73FE\uFF0C\u4E2D\u6587\u95DC\u9375\u8A5E\u548C\u82F1\u6587\u95DC\u9375\u8A5E\u7684\u65B0\u805E\u7D50\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u555F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u4FE1\u606F\u589E\u5F37\u529F\u80FD\u5F8C\uFF0C\u6211\u5011\u6703\u5728\u652F\u6301\u7684\u7DB2\u7AD9\uFF08\u8C37\u6B4C\u65B0\u805E\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u95DC\u9375\u8A5E\uFF09\uFF0C\u96EA\u7403\uFF0C\u6771\u65B9\u8CA1\u5BCC\u7DB2\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52D5\u7528\u82F1\u6587\u70BA\u4F60\u641C\u7D22\u540C\u6A23\u7684\u95DC\u9375\u8A5E\u4E26\u5C55\u793A\u5728\u53F3\u5074\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8A72\u529F\u80FD\u7684\u8A71\uFF0C\u53EF\u4EE5\u9078\u64C7\u7981\u7528\u5B83\u3002",option:"\u9078\u9805",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL \u548C OpenAI \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8B6F",currentAccount:"\u7576\u524D\u8CEC\u6236"};var c4={nologin:"Not logged in",login:"Login",manageAccount:"Manage Account",logout:"Logout",curentPlan:"Current Plan",endAt:"Expires",endAuto:"Auto Renew",lineBreakMaxTextCount:"Maximum number of characters allowed per sentence after line break","translate-pdf":"Click to translate PDF","noSupportTranslate-pdf":"The script is not supported, please use a plugin.","translate-firefox-local-pdf":"Click to upload PDF",enableLineBreak:"Whether to turn on automatic line wrapping for long paragraphs",sponsorLabel:"Sponsoring developers from $1 (monthly or one-time)",help:"Help",browserShortcutsNoteForFirefox:`To modify the shortcut key in Firefox browser, you need to open the extension management page 'about: addons', then click "Settings", and then click "Management shortcut key" to set it`,browserShortcutsNoteForChrome:"To modify the shortcut key in Chrome browser, you need to open the extension management page` chrome://extensions/shortcuts `) Settings, click the button below to jump to the shortcut key management page.",browserShortcutsSucks:"Please enter the shortcut key manually in the format:",enableLineBreakDescription:"After opening, a line break will be inserted at the end of each sentence in a long paragraph for easy reading","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate: Web Page&PDF Translation","browser.brandDescription":"Bilingual web page translation, also supports PDF translation, bilingual Epub eBook translation, free to use.","browser.toggleTranslatePage":"Toggle Translate Page","browser.toggleTranslateTheWholePage":"Toggle Translate the Whole Page","browser.toggleOnlyTransation":"Toggle Translate and Hide Original Text","browser.toggleTranslateToThePageEndImmediately":"Toggle Translate to the Bottom of the Page Immediately","browser.toggleTranslateTheMainPage":"Toggle Translate the Main Page","browser.openOptionsPage":"Open Settings Page","browser.toggleTranslationMask":"Toggle translation mask style","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-book","browser.openEbookBuilder":"Make Dual EPUB ebook","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.donateContext":"Sponsor Benefits","browser.translateLocalSubtitleFile":"Translate Subtitle File",confirmResetConfig:"Are you sure you want to reset the settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Create right button menu",toggleBeta:"Enable Beta experimental features",betaDescription:"Enable features that are still experimental, and translation services that are in testing. Join the <1>Telegram group to learn more.",translationLineBreakSettingDescription:"The always line break feature is suitable for layouts with less content, making the layout more neat and tidy. (Use smart line breaks for long paragraphs with more content (more than {count} characters) for saving space)",tempTranslateDomainTitle:"Open the translation time temporarily",tempTranslateDomainDescription:"When a page is translated manually, turn it temporarily on as automatic translation",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",toggleTranslatePageWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide translation display",toggleTranslationMaskWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide the blur effect of the translation",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"Multi-finger touch to show/hide only translation display",addUrlDescription:"The domain name is available and wildcard is supported e.g.: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import configuration from file",export:"Export to file",toggleDebug:"Print debug logs on the console","fingers.0":"Close","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch",mouseHoldKey:"+ {key} translate this paragraph",mouseHoldKeyAuto:"Translate the paragraph directly",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate this paragraph",mouseHoverHoldKey:"Mouse over and press X key to translate paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"All settings reset successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",goAdvancedSettings:"Go to Advanced Settings Page",goAdvancedInterfaceSettings:"Go to Advanced Custom Settings Page",advanced:"Advanced",advancedDescription:"Normally no settings are needed, keep the default. More personalized settings are provided for professional users only.",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"Translate to the bottom of the page immediately after opening the page?",feedback:"Feedback",toggleTranslatePage:"Toggle Translate",translateToThePageEndImmediatelyDescription:"Enabled will translate from the top to the bottom of the page immediately after opening. Disable will translate while reading. (Not recommended to enable)","translate all areas of the page":"Whether to translate all areas of the web page",translationAreaDescription:"When enabled, all areas of the entire web page will be translated. Disabled will use the default smart recognition and translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Directly translate the number of characters in front of the page without waiting to scroll to the visible area","interface language":"Interface language","display both the original text and the translation":"Display both the original text and the translation","keyboard shortcuts":"Keyboard shortcuts",modify:"Edit",reset:"Reset",close:"Close",homepage:"Home Page",more:"More",moreOptions:"Expand more custom settings",translateTheWholePage:"Translate the whole page area",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Dual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"Main areas of intelligent translation","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly implement the interface of the Greasemonkey extension, please use another browser that <1>supports the Greasemonkey extension such as (Firefox Nightly version)",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:"Unknown Error",canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha enabled successfully",disableAlphaSuccess:"Alpha has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(to set up)",goSettings:"to set up",needActionForOptions:"(need to set)",translationEngine:"Engine Options",sourceLanguage:"Original language",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",forThisSite:"Site:",alwaysTranslateSomeLanguage:"Always translate {language}",neverTranslateSomeLanguage:"Never translate {language}",alwaysTranslateSomeSite:"Always translate {hostname}",neverTranslateSomeSite:"Never translate {hostname}",alwaysTranslateSomeSiteOrWildSite:"Always translate this site",alwaysTranslateSomePage:"Always translate this page",add:"Add",default:"Default",forThisLanguage:"For This Language:","add url":"Add URL",edit:"Edit","translate other languages into specific language":"Translate other languages into the language you set","select translation service":"Select a translation service",language:"Language","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",Error:"Error",allowCacheTranslations:"Enable local translation caching (reduce translation requests for duplicate paragraphs)","translation display":"Translation display style","select diplay style":"Please refer to the following examples",interface:"Interface Settings",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dashed underline","translationTheme.dotted":"Dotted Underline","translationTheme.dashedBorder":"Dashed Border","translationTheme.solidBorder":"Dashed Border","translationTheme.underline":"Straight underline","translationTheme.mask":"Blur effect","translationTheme.opacity":"Opacity effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weakening","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dashed underline","translationTheme.nativeDashed":"System Dash Underline","translationTheme.nativeDotted":"System Dotted Underline","translationTheme.nativeUnderline":"System Straight Line Underline","translationTheme.wavy":"Squiggle","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeeplX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"Translate page title","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped",enableUserscriptPagePopup:"Always show Popup windows on the page",enableUserscriptPagePopupDescription:"Three-finger touch to show the Popup.","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",currentUrl:"Current URL",confirm:"Save",cancel:"Cancel",delete:"Delete","languages.auto":"Detect Language",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",authFail:"Authorization Failed",syncTitle:"Please select a file operation",import_hint:"Import",upload:"Upload",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",download:"Download",importSuccess:"Upload Success",importFail:"Import Failed",deleteFail:"Delete Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",backupToCloudDescription:"Upload or restore backup files manually, up to 3 different backups",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",updatedAt:"Updated at {date}",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. You can choose to subscribe to <6>Pro membership to use the out-of-the-box DeepL and OpenAI translation.

You can also follow out <3>Twitter, <4>Telegram Channel, and <5>Email Subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free and we hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. ",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",qqCommunities:"QQ Channel",joinTelegramChannel:"Subscribe to our Telegram channel to get the latest updates",feedbackAndJoin:"Feedback",autoSync:"Auto-Time Sync",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization","edit border color":"Edit border color",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",enableSubtitle:"enableSubtitleTranslation",enableSubtitleDescription:"Enable translations for subtitle areas on sites like youtube",isTranslateTitleDescription:"When enabled, the page title will be translated",enableSearchEnhancement:"Enable Search Enhancement",enableSearchEnhancementDescription:'After enabling, the right sidebar will automatically display "Google News" search results for corresponding English keywords on supported websites (such as Google News, Google Search (partial keywords), Xueqiu, East Money, Futu, Tiger Community).',verifyService:"Verify service",verified:"Successful","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerMinute":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next minute. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"Requests exceed this limit will be queued until the next seconds.","description.prompt":"Send as a user to OpenAI conversation, where {{text}} indicates the text of the paragraph,{{from}} indicates the language of the paragraph,{{to}} indicates the target language, you can omit {{text}}, if so, it'll be sent as a separated message","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"Send the conversation to OpenAI as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the original language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"Default is\uFF1Ageneral. Only set up if there is an API console open domain translation, support fields see <1>Here ","field.scene":"Scene","description.scene":"Default is\uFF1Ageneral. Only set up if there is an API console open Machine Translation Professional, support fields see<1>Here","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please provide a URL with the specific path.",enabledExtension:"Enable extensions",clickToDisableExtension:"Click to disable extension",clickToEnableExtension:"Click to enable the extension",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter customization content",inputOptions:"Writing",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter for translating part of the input box.",inputStartingTriggerKeyDescription:"When you don't need to translate the entire input box, the delimiter allows you to only translate the portion from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means only translating the portion from {startingKey}ja to the end of the input box.",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting is no prefix required, the partial text translation function of the input box cannot be used temporarily.",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Start the translation by quickly pressing 3 times {trailingKey}.",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time (milliseconds) for the input to end the combo trigger",spaceKey:"",noneKey:"Translate the entire text box without prefixes",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement in the following URL",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",clickToSeeQuickDemo:"Click to expand the 30s tutorial video",inputHelperInfo:`Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001". -Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.`,reloadCurrentPage:"Please refresh the current page before starting translation",noLocalFilePermissionForPDF:"No permission to read local files. Please click the button above and upload the local file.",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate the current page",retryAllParagraphs:"Retry all paragraphs",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Noops, something went wrong",disableConfirm:"Search Enhancement Settings",disableOnce:"Disable Once",disableGlobal:"Disable Forever",disableTint:"* You can re-enable in {option}.",searchEnhancementNotes:"We have discovered notable disparities in news results between Chinese and English keywords. By activating the immersive translation Bilingual Display Enhancement feature, we will automatically search for equivalent English keywords and display them on the right side of supported websites (e.g., Google News, Google Search (partial keywords), xueqiu, East Money, Futu, Tiger). You can disable this feature if you don't need it.",option:"Settings",saveSettings:"Save",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"Enable quick press 3 times {trailingKey}, directly translate the entire input box to {inputTargetLanguage}.",enableInputTranslationWithoutTriggerKeyDescription:"To specify the target language, please add a language code at the beginning, such as: ja Hello world",mouseHoverShortcutPlaceholder:"e.g. Shift",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",needLoginAction:"(Premium or custom)",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",daily:"Daily Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",profile:"Profile",billing:"Billing",onetime_7day:"7-day Trial Pack",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt} and will not auto-renew",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly pro membership",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"Current plan: {plan}, will expire on {endAt}, will not auto-renew after expiration.
<1>Enable consecutive annual plan",upgradePlan:"Click here to upgrade to Pro membership",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",upgradeToPro:"Upgrade to Pro","popup.openPro":"Enjoy unrestricted access to DeepL and OpenAI translations after upgrading to Pro Membership. Click here to upgrade","popup.openProForPro":"You are a Pro member, you can directly use DeepL and OpenAI translations",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You have just triggered the immersive translate of the input box by quickly tapping the space key 3 times. The content of the input box will be translated into the default target language.

If this was a mistake, don't worry. You can choose to disable it this time or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show again",disableInputTranslationTips:"* You can also set other shortcuts in {option}, {learnMore}.",learnMore:"Learn more",continueEnalbeInputTranslation:"Continue to enable input translation"};var c1=[{code:"zh-CN",messages:s4},{code:"zh-TW",messages:l4},{code:"en",messages:c4}];var Ru="immersiveTranslateBingGlobalState",It={};for(let e of c1)It[e.code]=e.messages;var ha="Immersive Translate",J="immersive-translate";var ge="immersiveTranslate";var m4=ge+"GoogleAccessToken",g4=ge+"AuthFlow";var d1=ge+"AuthState",Iu=ge+"IframeMessage",kx=ge+"WaitForRateLimit",Ou=ge+"DocumentMessageAsk",yt=ge+"DocumentMessageTellThirdParty",Nu=ge+"showError",p4=ge+"DocumentMessageThirdPartyTell",f4=ge+"DocumentMessageEventUpload",ju=ge+"DocumentMessageHandler",m1=`${ge}Container`,h4=`${ge}SpecifiedContainer`,Wn="buildinConfig",Fr="localConfig",rs="openOptionsPage",us="openAboutPage";var os="openEbookViewer",is="openEbookBuilder";var Uu=`${ge}PageTranslatedStatus`,Ax=`${ge}PageUrlChanged`,$n=`${ge}ReceiveCommand`,b4=ge+"LastUseMouseHoverTime",ss=ge+"LastUseInputTime",fn=ge+"LastUseManualTranslatePageTime",Sx=`${ge}PopupReceiveMessage`,g1="immersivetranslate.com",p1="config.immersivetranslate.com",Dx=`https://${g1}/`,Pr=`https://${p1}/default_config.json`,Lx=`${ge}Mark`,_r="immersiveTranslateEffect",Ot=`${ge}Root`,Mx=`data-${J}-effect`,kn=`data-${J}-translation-element-mark`,y4=`${ge}TranslationElementMark`,Fx=`${ge}TranslatedMark`,Px=`${ge}ParagraphId`,E4=`${ge}LoadingId`,ls=`data-${J}-loading-id`,x4=`${ge}ErrorId`,zu=`data-${J}-error-id`,f1=`${ge}AtomicBlockMark`,T4=`${ge}ExcludeMark`,_x=`data-${J}-exclude-mark`,h1=`${ge}StayOriginalMark`,Bx=`${ge}PreWhitespaceMark`,Hu=`${ge}InlineMark`,C4=`${ge}BlockMark`,Rx=`${ge}Left`,Ix=`${ge}Right`,Ox=`${ge}Width`,Nx=`${ge}Height`,jx=`${ge}Top`,Ux=`${ge}FontSize`,Br="lastRunTime",zx=`${ge}GlobalStyleMark`,ba=["@","#"],qu=" --- ",w4=` -`,$t=`${J}-target-wrapper`,Hx=`${J}-pdf-target-container`,v4=`${J}-target-inner`,qx=`${J}-source-wrapper`,cs=`${J}-target-translation-block-wrapper`,Wx=`${J}-root-translation-theme`,za=`${ge}RootTranslationTheme`,k4=`${J}-target-translation-vertical-block-wrapper`,$x=`${J}-target-translation-pdf-block-wrapper`,A4=`${J}-target-translation-pre-whitespace`,ds=`${J}-target-translation-inline-wrapper`;var S4={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]},Xt=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","ru","ar","it","ms","id","vi","af","th","ur","yue","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","nl","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu"],D4={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Detect Language",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese",zu:"Zulu","":"All Languages"},L4={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B\u8BED\u8A00",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00"},M4={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C\u8A9E\u8A00",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00"};var F4=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/"];var Wu="zh-CN";var d4=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],Bn={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},deepl:{name:"DeepL",homepage:"https://www.deepl.com/translator",docUrl:"https://immersivetranslate.com/docs/services/deepL/",providers:[{name:"pro",nameKey:"deepLProName",descriptionKey:"deepLProDescription",descriptionKeyForNormal:"deeplProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"deepLCustomName",descriptionKey:"deepLCustomDescription",descriptionLink1:"https://www.deepl.com/translator",descriptionLink2:"https://immersivetranslate.com/docs/services/deepL/"}],allProps:[{name:"authKey",providers:["custom"],label:"Auth Key",required:!0,type:"password"}]},openai:{name:"Open AI",homepage:"https://openai.com/api/",docUrl:"https://immersivetranslate.com/docs/services/openai/",providers:[{name:"pro",nameKey:"openaiProName",descriptionKey:"openaiProDescription",descriptionKeyForNormal:"openaiProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"openaiCustomName",descriptionKey:"openaiCustomDescription",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password"},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"openai-model-select",default:"gpt-3.5-turbo-0613",options:[{providers:["custom","pro"],label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{providers:["custom","pro"],label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{providers:["custom"],label:"gpt-4",value:"gpt-4"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.limitPerSecond",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.openai.com/v1/chat/completions",descriptionKey:"description.apiUrl",optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"text",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.`,reloadCurrentPage:"Please refresh the current page before starting translation",noLocalFilePermissionForPDF:"No permission to read local files. Please click the button above and upload the local file.",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate the current page",retryAllParagraphs:"Retry all paragraphs",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Noops, something went wrong",disableConfirm:"Search Enhancement Settings",disableOnce:"Disable Once",disableGlobal:"Disable Forever",disableTint:"* You can re-enable in {option}.",searchEnhancementNotes:"We have discovered notable disparities in news results between Chinese and English keywords. By activating the immersive translation Bilingual Display Enhancement feature, we will automatically search for equivalent English keywords and display them on the right side of supported websites (e.g., Google News, Google Search (partial keywords), xueqiu, East Money, Futu, Tiger). You can disable this feature if you don't need it.",option:"Settings",saveSettings:"Save",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"Enable quick press 3 times {trailingKey}, directly translate the entire input box to {inputTargetLanguage}.",enableInputTranslationWithoutTriggerKeyDescription:"To specify the target language, please add a language code at the beginning, such as: ja Hello world",mouseHoverShortcutPlaceholder:"e.g. Shift",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",needLoginAction:"(Premium or custom)",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",daily:"Daily Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",profile:"Profile",billing:"Billing",onetime_7day:"7-day Trial Pack",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt} and will not auto-renew",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly pro membership",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"Current plan: {plan}, will expire on {endAt}, will not auto-renew after expiration.
<1>Enable consecutive annual plan",upgradePlan:"Click here to upgrade to Pro membership",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",upgradeToPro:"Upgrade to Pro","popup.openPro":"Enjoy unrestricted access to DeepL and OpenAI translations after upgrading to Pro Membership. Click here to upgrade","popup.openProForPro":"You are a Pro member, you can directly use DeepL and OpenAI translations",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You have just triggered the immersive translate of the input box by quickly tapping the space key 3 times. The content of the input box will be translated into the default target language.

If this was a mistake, don't worry. You can choose to disable it this time or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show again",disableInputTranslationTips:"* You can also set other shortcuts in {option}, {learnMore}.",learnMore:"Learn more",continueEnalbeInputTranslation:"Continue to enable input translation"};var d1=[{code:"zh-CN",messages:s4},{code:"zh-TW",messages:l4},{code:"en",messages:c4}];var Bu="immersiveTranslateBingGlobalState",Ot={};for(let e of d1)Ot[e.code]=e.messages;var ha="Immersive Translate",J="immersive-translate";var ge="immersiveTranslate";var m4=ge+"GoogleAccessToken",g4=ge+"AuthFlow";var m1=ge+"AuthState",Ru=ge+"IframeMessage",kx=ge+"WaitForRateLimit",Ou=ge+"DocumentMessageAsk",yt=ge+"DocumentMessageTellThirdParty",Iu=ge+"showError",p4=ge+"DocumentMessageThirdPartyTell",f4=ge+"DocumentMessageEventUpload",Nu=ge+"DocumentMessageHandler",g1=`${ge}Container`,h4=`${ge}SpecifiedContainer`,Wn="buildinConfig",Fr="localConfig",rs="openOptionsPage",us="openAboutPage";var os="openEbookViewer",is="openEbookBuilder";var ju=`${ge}PageTranslatedStatus`,Ax=`${ge}PageUrlChanged`,$n=`${ge}ReceiveCommand`,b4=ge+"LastUseMouseHoverTime",ss=ge+"LastUseInputTime",fn=ge+"LastUseManualTranslatePageTime",Sx=`${ge}PopupReceiveMessage`,p1="immersivetranslate.com",f1="config.immersivetranslate.com",Dx=`https://${p1}/`,Pr=`https://${f1}/default_config.json`,Lx=`${ge}Mark`,_r="immersiveTranslateEffect",It=`${ge}Root`,Mx=`data-${J}-effect`,kn=`data-${J}-translation-element-mark`,y4=`${ge}TranslationElementMark`,Fx=`${ge}TranslatedMark`,Px=`${ge}ParagraphId`,E4=`${ge}LoadingId`,ls=`data-${J}-loading-id`,x4=`${ge}ErrorId`,Uu=`data-${J}-error-id`,h1=`${ge}AtomicBlockMark`,T4=`${ge}ExcludeMark`,_x=`data-${J}-exclude-mark`,b1=`${ge}StayOriginalMark`,Bx=`${ge}PreWhitespaceMark`,zu=`${ge}InlineMark`,C4=`${ge}BlockMark`,Rx=`${ge}Left`,Ox=`${ge}Right`,Ix=`${ge}Width`,Nx=`${ge}Height`,jx=`${ge}Top`,Ux=`${ge}FontSize`,Br="lastRunTime",zx=`${ge}GlobalStyleMark`,ba=["@","#"],Hu=" --- ",w4=` +`,Kt=`${J}-target-wrapper`,Hx=`${J}-pdf-target-container`,v4=`${J}-target-inner`,qx=`${J}-source-wrapper`,cs=`${J}-target-translation-block-wrapper`,Wx=`${J}-root-translation-theme`,Ha=`${ge}RootTranslationTheme`,k4=`${J}-target-translation-vertical-block-wrapper`,$x=`${J}-target-translation-pdf-block-wrapper`,A4=`${J}-target-translation-pre-whitespace`,ds=`${J}-target-translation-inline-wrapper`;var S4={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]},en=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","ru","ar","it","ms","id","vi","af","th","ur","yue","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","nl","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu"],D4={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Detect Language",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese",zu:"Zulu","":"All Languages"},L4={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B\u8BED\u8A00",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00"},M4={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C\u8A9E\u8A00",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00"};var F4=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/"];var qu="zh-CN";var d4=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],Bn={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},deepl:{name:"DeepL",homepage:"https://www.deepl.com/translator",docUrl:"https://immersivetranslate.com/docs/services/deepL/",providers:[{name:"pro",nameKey:"deepLProName",descriptionKey:"deepLProDescription",descriptionKeyForNormal:"deeplProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"deepLCustomName",descriptionKey:"deepLCustomDescription",descriptionLink1:"https://www.deepl.com/translator",descriptionLink2:"https://immersivetranslate.com/docs/services/deepL/"}],allProps:[{name:"authKey",providers:["custom"],label:"Auth Key",required:!0,type:"password"}]},openai:{name:"Open AI",homepage:"https://openai.com/api/",docUrl:"https://immersivetranslate.com/docs/services/openai/",providers:[{name:"pro",nameKey:"openaiProName",descriptionKey:"openaiProDescription",descriptionKeyForNormal:"openaiProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"openaiCustomName",descriptionKey:"openaiCustomDescription",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password"},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"openai-model-select",default:"gpt-3.5-turbo-0613",options:[{providers:["custom","pro"],label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{providers:["custom","pro"],label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{providers:["custom"],label:"gpt-4",value:"gpt-4"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.limitPerSecond",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.openai.com/v1/chat/completions",descriptionKey:"description.apiUrl",optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"text",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`,optional:!0}]},transmart:{name:"Transmart",homepage:"https://transmart.qq.com/"},chatgpt:{name:"ChatGPT Web(3.5 mobile)",homepage:"https://chat.openai.com",beta:!0},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:"https://immersivetranslate.com/docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text"},{name:"appSecret",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/",docUrl:"https://immersivetranslate.com/docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text"},{name:"secretKey",required:!0,type:"password"}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:"https://immersivetranslate.com/docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text"},{name:"AccessKeySecret",required:!0,type:"password"},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:"https://immersivetranslate.com/docs/services/azure/",allProps:[{name:"region",required:!0,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password"}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:"https://immersivetranslate.com/docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text"},{name:"key",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:"https://immersivetranslate.com/docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text"},{name:"secretAccessKey",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:"https://immersivetranslate.com/docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password"}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:"https://immersivetranslate.com/docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:ba,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:"https://immersivetranslate.com/docs/services/openL/",allProps:[...d4,{type:"password",name:"apikey",required:!0}],props:d4},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",alpha:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:"https://immersivetranslate.com/docs/services/niu",allProps:[{name:"APIKEY",required:!0,type:"password"}]}},$u={type:ge+"ChildFrameToRootFrameIdentifier"},Ku=["Alt","Ctrl","Shift","Auto","Off","OtherCustom","Other"];var ms="user_from_plugin",en="user_info",gs=Fn()||Pn()?"https://api2.immersivetranslate.com":"https://test-api2.immersivetranslate.com",Kx=Fn()||Pn()?"https://immersivetranslate.com/accounts/login?from=plugin":"https://test.immersivetranslate.com/accounts/login?from=plugin",ps=Fn()||Pn()?"https://immersivetranslate.com/profile":"https://test.immersivetranslate.com/profile",Rr=Fn()||Pn()?"https://immersivetranslate.com/pricing":"https://test.immersivetranslate.com/pricing",P4=Rr+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",fs=Rr+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",_4=Rr+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal";var Ha=console,hs=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),a=Math.round(n-this.#e),r=Qt.green;a>1e4?r=Qt.red:a>1e3&&(r=Qt.yellow),Ha.debug(Qt.dim(ha+" TIMING:"),t,"in",r(a+"ms")),this.#e=n}},Ir=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&Ha.log(Qt.dim(ha+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&Ha.log(Qt.green(ha+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&Ha.warn(Qt.yellow(ha+" WARN:"),...t)}error(...t){this.#e<=3&&Ha.error(Qt.red(ha+" ERROR:"),...t)}fatal(...t){this.#e<=4&&Ha.error(Qt.red(ha+" FATAL:"),...t)}timing(){return this.level===0?new hs:{reset:()=>{},stop:()=>{}}}},N=new Ir;g();g();g();var bs=/iPhone/i,B4=/iPod/i,R4=/iPad/i,I4=/\biOS-universal(?:.+)Mac\b/i,ys=/\bAndroid(?:.+)Mobile\b/i,O4=/Android/i,qa=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,Gu=/Silk/i,Rn=/Windows Phone/i,N4=/\bWindows(?:.+)ARM\b/i,j4=/BlackBerry/i,U4=/BB10/i,z4=/Opera Mini/i,H4=/\b(CriOS|Chrome)(?:.+)Mobile/i,q4=/Mobile(?:.+)Firefox\b/i,W4=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function b1(e){return t=>t.test(e)}function Kn(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,a=n.split("[FBAN");typeof a[1]<"u"&&(n=a[0]),a=n.split("Twitter"),typeof a[1]<"u"&&(n=a[0]);let r=b1(n),u={apple:{phone:r(bs)&&!r(Rn),ipod:r(B4),tablet:!r(bs)&&(r(R4)||W4(t))&&!r(Rn),universal:r(I4),device:(r(bs)||r(B4)||r(R4)||r(I4)||W4(t))&&!r(Rn)},amazon:{phone:r(qa),tablet:!r(qa)&&r(Gu),device:r(qa)||r(Gu)},android:{phone:!r(Rn)&&r(qa)||!r(Rn)&&r(ys),tablet:!r(Rn)&&!r(qa)&&!r(ys)&&(r(Gu)||r(O4)),device:!r(Rn)&&(r(qa)||r(Gu)||r(ys)||r(O4))||r(/\bokhttp\b/i)},windows:{phone:r(Rn),tablet:r(N4),device:r(Rn)||r(N4)},other:{blackberry:r(j4),blackberry10:r(U4),opera:r(z4),firefox:r(q4),chrome:r(H4),device:r(j4)||r(U4)||r(z4)||r(q4)||r(H4)},any:!1,phone:!1,tablet:!1};return u.any=u.apple.device||u.android.device||u.windows.device||u.other.device,u.phone=u.apple.phone||u.android.phone||u.windows.phone,u.tablet=u.apple.tablet||u.android.tablet||u.windows.tablet,u}var Es="DENO",xs="CHROME",Vu="FIREFOX";function y1(e){let t=xs;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=Vu:/deno/i.test(n)&&(t=Es)}catch{}return e===xs&&t===xs||e===Vu&&t===Vu||e===Es&&t===Es}function $4(){return typeof Deno<"u"}function Yu(){return y1(Vu)}function K4(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function Or(){return!!globalThis.matchMedia("(pointer:fine)").matches}g();var G4={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},V4={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:G4,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}}},tabs:{onUpdated:G4,query:()=>{},sendMessage:()=>{}}};var ue;$4()?ue=V4:ue=globalThis.immersiveTranslateBrowserAPI;g();g();function Wa(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t==="zh-hans")return"zh-CN";if(t==="zh-hant"||t==="zh-hk")return"zh-TW";if(t==="iw")return"he";if(t==="jv")return"jw";let n=Xt.map(r=>r.toLowerCase()),a=n.indexOf(t);if(a===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let r=n.indexOf(t);return r===-1?"auto":Xt[r]}else return"auto";else return Xt[a]}function ya(){return Wa(document?.documentElement?.lang||"en")}g();function tn(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function Y4(e){if(e){let t=new Date(e.createTime),n=E1(t),a="free",r="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(a=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?r="stripe":r="admin"),{user_type:a,user_register_day:n,subscription_from:r}}else return null}function E1(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[a,r,u]=n.split("/");return n=`${u}-${a}-${r}`,n}catch{return"unknown"}}g();var J4=ge+"SyncStoreKey_";function St(e,t){let n=J4+e;return ue.storage.sync.get(n).then(a=>a[n]===void 0?t:a[n])}function Ue(e,t){let n=J4+e;return ue.storage.sync.set({[n]:t})}g();var Q4=ge+"StoreKey_";function In(e,t){let n=Q4+e;return ue.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function Z4(e,t){let n=Q4+e;return ue.storage.local.set({[n]:t})}g();var $a=ge+"CacheKey_";function x1(e,t){let n=$a+e;return ue.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function T1(){let e=ue.storage.local.refresh;e&&e()}function Nr(e,t){let n=$a+e;return ue.storage.local.get(n).then(a=>{if(a[n]===void 0)return t;let{value:r,expired:u}=a[n];return u&&ua.startsWith($a));if(n.length>0)return ue.storage.local.remove(n)}}var Nt={get:x1,set:C1,getExpired:Nr,setExpired:jr,remove:Ur,clear:w1,refresh:T1};g();g();g();var ot=class extends Error{details;constructor(t,n,a){super(n),this.name=t,a&&(this.details=a)}};async function Ea(e){let t;if(e&&e.retry&&e.retry>0)try{t=await Ui(X4.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await X4(e);return t}async function X4(e){e.body;let{url:t,responseType:n,...a}=e;n||(n="json"),a={mode:"cors",...a};let r=!0;e.fetchPolyfill&&(r=!1);let u=e.fetchPolyfill||fetch,o=3e5;if(e.timeout&&(o=e.timeout),r){let s=new AbortController,c=s.signal;setTimeout(()=>{s.abort()},o),a.signal=c}let i;try{i=await u(t,a)}catch(s){N.debug("fetch error",t,s);let c=s.message||"";throw s.message="\u7F51\u7EDC\u95EE\u9898\uFF0C\u65E0\u6CD5\u8FDE\u63A5\u5230\u670D\u52A1\uFF0C\u8BF7\u68C0\u67E5\u4F60\u7684\u4EE3\u7406\u6216\u672C\u5730\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u8BD5\u3002 "+c,s}if(i.ok&&i.status>=200&&i.status<400){if(n==="json")return await i.json();if(n==="text")return await i.text();if(n==="raw"){let s=await i.text(),c=Object.fromEntries([...i.headers.entries()]),l=i.url;return l||(i.headers.get("X-Final-URL")?l=i.headers.get("X-Final-URL"):l=t),{body:s,headers:c,status:i.status,statusText:i.statusText,url:l}}else if(n==="stream"){let s="",c;if(i.body&&i.body instanceof ReadableStream)for await(let l of v1(i.body)){let p=new TextDecoder().decode(l);s+=p;let f;for(;(f=s.indexOf(` -`))>=0;){let m=s.slice(0,f).trim();if(s=s.slice(f+1),m.startsWith("event:")||m==="")continue;let d="";if(m.startsWith("data:")&&(d=m.slice(5).trim()),d==="[DONE]")break;let h;try{h=JSON.parse(d??"")}catch(T){N.debug("json error",T);continue}c=h}}return c}}else{let s;try{s=await i.text()}catch(m){N.error("parse response failed",m)}s&&N.error("fail response",s);let c="";s&&(c=s.slice(0,280));let l="\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u4EE3\u7801:"+i.status+": "+(i.statusText||"")+c,f=new URL(t).hostname.endsWith(".immersivetranslate.com");throw i.status===429?f?c.includes("quota exceeded")?l="ProQuota:"+c:l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${c} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`:l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A429\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===403?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A403\uFF0C \u8BF4\u660E\u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ${c}`:i.status===400?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A400\uFF0C \u8BF4\u660E\u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002 ${c}`:i.status===502?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A502\uFF0C \u8BF4\u660E\u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===401&&(l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A401\uFF0C \u8BF4\u660E\u672A\u767B\u5F55\u6216\u767B\u5F55\u6001\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002 ${c}`),new ot("fetchError",l,s)}}async function*v1(e){let t=e.getReader();try{for(;;){let{done:n,value:a}=await t.read();if(n)return;yield a}}finally{t.releaseLock()}}g();var k1=new Map;function Ju(e){let t=A1(64),n=new CustomEvent(Ou,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((a,r)=>{k1.set(t,(u,o)=>{u?r(u):a(o)})})}function A1(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};function nn(){return Qu.version}g();function Je(){try{return globalThis.self!==globalThis.top}catch{return!0}}g();var zr=new Map,Gn=class{fromType;logger;constructor(t,n=!1){this.logger=new Ir,n&&this.logger.setLevel("debug"),this.fromType=t,zr.has(t)||(zr.set(t,new Map),ue.runtime.onMessage.addListener((a,r,u)=>{let o=a.from,i=a.to,s,c,l;r.tab&&r.tab.id&&(s=r.tab.id,o=`${o}:${s}`,c=r.tab.url,l=r.tab.active),this.logger.debug(`${a.to} received message [${a.payload.method}] from ${a.from}`,a.payload.data?a.payload.data:" ");let p=Cs(i),{type:f,name:m}=p;if(f!==t)return!1;let d=Cs(o),T=zr.get(f).get(m);if(!T)return this.logger.debug(`no message handler for ${f}:${i}, but it's ok`),!1;let{messageHandler:b,sync:C}=T,w={type:t,name:d.name,id:s,url:c,active:l};if(C){try{let O=b(a.payload,w);u({ok:!0,data:O})}catch(O){u({ok:!1,errorName:O.name,errorMessage:O.message,errorDetails:O.details})}return!1}else return b(a.payload,w).then(O=>{u({ok:!0,data:O})}).catch(O=>{u({ok:!1,errorName:O.name,errorMessage:O.message,errorDetails:O.details})}),!0}))}getConnection(t,n,a){let r=!1;a&&a.sync&&(r=!0);let u=this.fromType,o=zr.get(u);if(o.has(t))return o.get(t).connectionInstance;{let i=new Ts(`${u}:${t}`,this.logger);return zr.get(u).set(t,{messageHandler:n,sync:r,connectionInstance:i}),i}}},Ts=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let a=Cs(t),{type:r,id:u}=a;if(r!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let i=await ue.runtime.sendMessage(o);return ed(o,i,this.logger)}catch(i){if(r==="popup"){let s=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(s,n,t,i),Promise.resolve({message:s})}else throw i}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let i=await ue.tabs.sendMessage(u,o);return ed(o,i,this.logger)}}};function ed(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new ot(t.errorName||"UnknownError",t.errorMessage||"Unknown error",t.errorDetails)}else throw new ot("noResponse","Unknown error")}function Cs(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let a=parseInt(t[2]);if(!isNaN(a))n.id=a;else throw new Error("tab id not a valid number")}return n}var Zu;function D1(){return Zu||(Zu=new Gn("content_script",!1).getConnection("pure_main",()=>{}),Zu)}var td="G-MKMD9LWFTR";async function Hr(e,t){try{let n=Re();if(n.INSTALL_FROM==="firefox_store")return;let r=fe(),u=Je(),o=n.PROD==="1",i="sitc4WmvShWYwfU0dANM3Q",s=await St("fakeUserId","");s||(s=await In("fakeUserId",""),s&&await Ue("fakeUserId",s));let c=nn(),l=new Date,p=await St("installedAt","");p||(p=await In("installedAt",""),p&&await Ue("installedAt",p)),s?p||(p=new Date(0).toISOString(),await Ue("installedAt",p)):(s=L1(32),await Ue("fakeUserId",s)),p||(p=l.toISOString(),await Ue("installedAt",p));let f=new Date(p),m=nd(f),d=nd(l),h=m===d,T=l.getTime()-f.getTime()<7*24*60*60*1e3,b=`https://www.google-analytics.com/mp/collect?measurement_id=${td}&api_secret=${i}`;o||(b=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${td}&api_secret=${i}`);let C="";typeof navigator<"u"&&(C=window.navigator.userAgent);let w=ja.parse(C),O=t.map(y=>{let A=y.params||{};return w.os&&(A.os_name=w.os.name||"unknown",A.os_version=w.os.version||"unknown",A.os_version_name=w.os.versionName||"unknown"),w.browser&&(A.browser_name=w.browser.name||"unknown",A.browser_version=w.browser.version||"unknown"),w.platform&&(A.platform_type=w.platform.type||"unknown"),w.engine&&(A.engine_name=w.engine.name||"unknown",A.engine_version=w.engine.version||"unknown"),c&&(A.version=c),n.INSTALL_FROM&&(A.install_from=n.INSTALL_FROM),m&&(A.install_day=M1(f)),A.userscript=r.toString(),h?A.is_new_user_today="1":A.is_new_user_today="0",T?A.is_new_user_this_week="1":A.is_new_user_this_week="0",u?A.main_frame=0:A.main_frame=1,{...y,params:A}}),B=await Xu({responseType:"text",url:b,method:"POST",body:JSON.stringify({client_id:s,user_id:s,events:O})})}catch{}}function L1(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r",""]},custom:{placeholderDelimiters:["{","}"]},bing:{maxTextLengthPerRequest:1800,placeholderDelimiters:["","","b"]},deeplx:{limit:3},d:{immediateTranslationTextCount:0},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},openai:{placeholderDelimiters:["{{","}}","b"],immediateTranslationTextCount:3e3,translationDebounce:300,interval:1350,prompt:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +{{text}}`,optional:!0}]},transmart:{name:"Transmart",homepage:"https://transmart.qq.com/"},chatgpt:{name:"ChatGPT Web(3.5 mobile)",homepage:"https://chat.openai.com",beta:!0},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:"https://immersivetranslate.com/docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text"},{name:"appSecret",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/",docUrl:"https://immersivetranslate.com/docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text"},{name:"secretKey",required:!0,type:"password"}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:"https://immersivetranslate.com/docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text"},{name:"AccessKeySecret",required:!0,type:"password"},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:"https://immersivetranslate.com/docs/services/azure/",allProps:[{name:"region",required:!0,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password"}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:"https://immersivetranslate.com/docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text"},{name:"key",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:"https://immersivetranslate.com/docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text"},{name:"secretAccessKey",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:"https://immersivetranslate.com/docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password"}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:"https://immersivetranslate.com/docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:ba,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:"https://immersivetranslate.com/docs/services/openL/",allProps:[...d4,{type:"password",name:"apikey",required:!0}],props:d4},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",alpha:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:"https://immersivetranslate.com/docs/services/niu",allProps:[{name:"APIKEY",required:!0,type:"password"}]}},Wu={type:ge+"ChildFrameToRootFrameIdentifier"},$u=["Alt","Ctrl","Shift","Auto","Off","OtherCustom","Other"];var ms="user_from_plugin",Nt="user_info",gs=Fn()||Pn()?"https://api2.immersivetranslate.com":"https://test-api2.immersivetranslate.com",Kx=Fn()||Pn()?"https://immersivetranslate.com/accounts/login?from=plugin":"https://test.immersivetranslate.com/accounts/login?from=plugin",ps=Fn()||Pn()?"https://immersivetranslate.com/profile":"https://test.immersivetranslate.com/profile",Rr=Fn()||Pn()?"https://immersivetranslate.com/pricing":"https://test.immersivetranslate.com/pricing",P4=Rr+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",fs=Rr+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",_4=Rr+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal";var qa=console,hs=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),a=Math.round(n-this.#e),r=Zt.green;a>1e4?r=Zt.red:a>1e3&&(r=Zt.yellow),qa.debug(Zt.dim(ha+" TIMING:"),t,"in",r(a+"ms")),this.#e=n}},Or=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&qa.log(Zt.dim(ha+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&qa.log(Zt.green(ha+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&qa.warn(Zt.yellow(ha+" WARN:"),...t)}error(...t){this.#e<=3&&qa.error(Zt.red(ha+" ERROR:"),...t)}fatal(...t){this.#e<=4&&qa.error(Zt.red(ha+" FATAL:"),...t)}timing(){return this.level===0?new hs:{reset:()=>{},stop:()=>{}}}},N=new Or;g();g();g();var bs=/iPhone/i,B4=/iPod/i,R4=/iPad/i,O4=/\biOS-universal(?:.+)Mac\b/i,ys=/\bAndroid(?:.+)Mobile\b/i,I4=/Android/i,Wa=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,Ku=/Silk/i,Rn=/Windows Phone/i,N4=/\bWindows(?:.+)ARM\b/i,j4=/BlackBerry/i,U4=/BB10/i,z4=/Opera Mini/i,H4=/\b(CriOS|Chrome)(?:.+)Mobile/i,q4=/Mobile(?:.+)Firefox\b/i,W4=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function y1(e){return t=>t.test(e)}function Kn(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,a=n.split("[FBAN");typeof a[1]<"u"&&(n=a[0]),a=n.split("Twitter"),typeof a[1]<"u"&&(n=a[0]);let r=y1(n),u={apple:{phone:r(bs)&&!r(Rn),ipod:r(B4),tablet:!r(bs)&&(r(R4)||W4(t))&&!r(Rn),universal:r(O4),device:(r(bs)||r(B4)||r(R4)||r(O4)||W4(t))&&!r(Rn)},amazon:{phone:r(Wa),tablet:!r(Wa)&&r(Ku),device:r(Wa)||r(Ku)},android:{phone:!r(Rn)&&r(Wa)||!r(Rn)&&r(ys),tablet:!r(Rn)&&!r(Wa)&&!r(ys)&&(r(Ku)||r(I4)),device:!r(Rn)&&(r(Wa)||r(Ku)||r(ys)||r(I4))||r(/\bokhttp\b/i)},windows:{phone:r(Rn),tablet:r(N4),device:r(Rn)||r(N4)},other:{blackberry:r(j4),blackberry10:r(U4),opera:r(z4),firefox:r(q4),chrome:r(H4),device:r(j4)||r(U4)||r(z4)||r(q4)||r(H4)},any:!1,phone:!1,tablet:!1};return u.any=u.apple.device||u.android.device||u.windows.device||u.other.device,u.phone=u.apple.phone||u.android.phone||u.windows.phone,u.tablet=u.apple.tablet||u.android.tablet||u.windows.tablet,u}var Es="DENO",xs="CHROME",Gu="FIREFOX";function E1(e){let t=xs;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=Gu:/deno/i.test(n)&&(t=Es)}catch{}return e===xs&&t===xs||e===Gu&&t===Gu||e===Es&&t===Es}function $4(){return typeof Deno<"u"}function Vu(){return E1(Gu)}function K4(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function Ir(){return!!globalThis.matchMedia("(pointer:fine)").matches}g();var G4={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},V4={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:G4,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}}},tabs:{onUpdated:G4,query:()=>{},sendMessage:()=>{}}};var ue;$4()?ue=V4:ue=globalThis.immersiveTranslateBrowserAPI;g();g();function $a(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t==="zh-hans")return"zh-CN";if(t==="zh-hant"||t==="zh-hk")return"zh-TW";if(t==="iw")return"he";if(t==="jv")return"jw";let n=en.map(r=>r.toLowerCase()),a=n.indexOf(t);if(a===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let r=n.indexOf(t);return r===-1?"auto":en[r]}else return"auto";else return en[a]}function ya(){return $a(document?.documentElement?.lang||"en")}g();function tn(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function Y4(e){if(e){let t=new Date(e.createTime),n=x1(t),a="free",r="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(a=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?r="stripe":r="admin"),{user_type:a,user_register_day:n,subscription_from:r}}else return null}function x1(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[a,r,u]=n.split("/");return n=`${u}-${a}-${r}`,n}catch{return"unknown"}}g();var J4=ge+"SyncStoreKey_";function St(e,t){let n=J4+e;return ue.storage.sync.get(n).then(a=>a[n]===void 0?t:a[n])}function Ue(e,t){let n=J4+e;return ue.storage.sync.set({[n]:t})}g();var Q4=ge+"StoreKey_";function On(e,t){let n=Q4+e;return ue.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function Z4(e,t){let n=Q4+e;return ue.storage.local.set({[n]:t})}g();var Ea=ge+"CacheKey_";function T1(e,t){let n=Ea+e;return ue.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function C1(){let e=ue.storage.local.refresh;e&&e()}function Nr(e,t){let n=Ea+e;return ue.storage.local.get(n).then(a=>{if(a[n]===void 0)return t;let{value:r,expired:u}=a[n];return u&&ua.startsWith(Ea)).filter(a=>a!==Ea+Nt);if(n.length>0)return ue.storage.local.remove(n)}}var jt={get:T1,set:w1,getExpired:Nr,setExpired:jr,remove:Ur,clear:X4,refresh:C1};g();g();g();var ot=class extends Error{details;constructor(t,n,a){super(n),this.name=t,a&&(this.details=a)}};async function xa(e){let t;if(e&&e.retry&&e.retry>0)try{t=await Ui(ed.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await ed(e);return t}async function ed(e){e.body;let{url:t,responseType:n,...a}=e;n||(n="json"),a={mode:"cors",...a};let r=!0;e.fetchPolyfill&&(r=!1);let u=e.fetchPolyfill||fetch,o=3e5;if(e.timeout&&(o=e.timeout),r){let s=new AbortController,c=s.signal;setTimeout(()=>{s.abort()},o),a.signal=c}let i;try{i=await u(t,a)}catch(s){N.debug("fetch error",t,s);let c=s.message||"";throw s.message="\u7F51\u7EDC\u95EE\u9898\uFF0C\u65E0\u6CD5\u8FDE\u63A5\u5230\u670D\u52A1\uFF0C\u8BF7\u68C0\u67E5\u4F60\u7684\u4EE3\u7406\u6216\u672C\u5730\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u8BD5\u3002 "+c,s}if(i.ok&&i.status>=200&&i.status<400){if(n==="json")return await i.json();if(n==="text")return await i.text();if(n==="raw"){let s=await i.text(),c=Object.fromEntries([...i.headers.entries()]),l=i.url;return l||(i.headers.get("X-Final-URL")?l=i.headers.get("X-Final-URL"):l=t),{body:s,headers:c,status:i.status,statusText:i.statusText,url:l}}else if(n==="stream"){let s="",c;if(i.body&&i.body instanceof ReadableStream)for await(let l of v1(i.body)){let p=new TextDecoder().decode(l);s+=p;let f;for(;(f=s.indexOf(` +`))>=0;){let m=s.slice(0,f).trim();if(s=s.slice(f+1),m.startsWith("event:")||m==="")continue;let d="";if(m.startsWith("data:")&&(d=m.slice(5).trim()),d==="[DONE]")break;let h;try{h=JSON.parse(d??"")}catch(T){N.debug("json error",T);continue}c=h}}return c}}else{let s;try{s=await i.text()}catch(m){N.error("parse response failed",m)}s&&N.error("fail response",s);let c="";s&&(c=s.slice(0,280));let l="\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u4EE3\u7801:"+i.status+": "+(i.statusText||"")+c,f=new URL(t).hostname.endsWith(".immersivetranslate.com");throw i.status===429?f?c.includes("quota exceeded")?l="ProQuota:"+c:l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${c} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`:l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A429\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===403?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A403\uFF0C \u8BF4\u660E\u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ${c}`:i.status===400?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A400\uFF0C \u8BF4\u660E\u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002 ${c}`:i.status===502?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A502\uFF0C \u8BF4\u660E\u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===401&&(l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A401\uFF0C \u8BF4\u660E\u672A\u767B\u5F55\u6216\u767B\u5F55\u6001\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002 ${c}`),new ot("fetchError",l,s)}}async function*v1(e){let t=e.getReader();try{for(;;){let{done:n,value:a}=await t.read();if(n)return;yield a}}finally{t.releaseLock()}}g();var k1=new Map;function Yu(e){let t=A1(64),n=new CustomEvent(Ou,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((a,r)=>{k1.set(t,(u,o)=>{u?r(u):a(o)})})}function A1(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};function nn(){return Ju.version}g();function Je(){try{return globalThis.self!==globalThis.top}catch{return!0}}g();var zr=new Map,Gn=class{fromType;logger;constructor(t,n=!1){this.logger=new Or,n&&this.logger.setLevel("debug"),this.fromType=t,zr.has(t)||(zr.set(t,new Map),ue.runtime.onMessage.addListener((a,r,u)=>{let o=a.from,i=a.to,s,c,l;r.tab&&r.tab.id&&(s=r.tab.id,o=`${o}:${s}`,c=r.tab.url,l=r.tab.active),this.logger.debug(`${a.to} received message [${a.payload.method}] from ${a.from}`,a.payload.data?a.payload.data:" ");let p=Cs(i),{type:f,name:m}=p;if(f!==t)return!1;let d=Cs(o),T=zr.get(f).get(m);if(!T)return this.logger.debug(`no message handler for ${f}:${i}, but it's ok`),!1;let{messageHandler:b,sync:C}=T,w={type:t,name:d.name,id:s,url:c,active:l};if(C){try{let I=b(a.payload,w);u({ok:!0,data:I})}catch(I){u({ok:!1,errorName:I.name,errorMessage:I.message,errorDetails:I.details})}return!1}else return b(a.payload,w).then(I=>{u({ok:!0,data:I})}).catch(I=>{u({ok:!1,errorName:I.name,errorMessage:I.message,errorDetails:I.details})}),!0}))}getConnection(t,n,a){let r=!1;a&&a.sync&&(r=!0);let u=this.fromType,o=zr.get(u);if(o.has(t))return o.get(t).connectionInstance;{let i=new Ts(`${u}:${t}`,this.logger);return zr.get(u).set(t,{messageHandler:n,sync:r,connectionInstance:i}),i}}},Ts=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let a=Cs(t),{type:r,id:u}=a;if(r!=="content_script"){let o={to:t,from:this.from,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");try{let i=await ue.runtime.sendMessage(o);return td(o,i,this.logger)}catch(i){if(r==="popup"){let s=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(s,n,t,i),Promise.resolve({message:s})}else throw i}}else{let o={from:this.from,to:t,payload:n};this.logger.debug(`${o.from} send message [${o.payload.method}] to ${o.to}`,o.payload.data?o.payload.data:" ");let i=await ue.tabs.sendMessage(u,o);return td(o,i,this.logger)}}};function td(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new ot(t.errorName||"UnknownError",t.errorMessage||"Unknown error",t.errorDetails)}else throw new ot("noResponse","Unknown error")}function Cs(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let a=parseInt(t[2]);if(!isNaN(a))n.id=a;else throw new Error("tab id not a valid number")}return n}var Qu;function D1(){return Qu||(Qu=new Gn("content_script",!1).getConnection("pure_main",()=>{}),Qu)}var nd="G-MKMD9LWFTR";async function Hr(e,t){try{let n=Re();if(n.INSTALL_FROM==="firefox_store")return;let r=pe(),u=Je(),o=n.PROD==="1",i="sitc4WmvShWYwfU0dANM3Q",s=await St("fakeUserId","");s||(s=await On("fakeUserId",""),s&&await Ue("fakeUserId",s));let c=nn(),l=new Date,p=await St("installedAt","");p||(p=await On("installedAt",""),p&&await Ue("installedAt",p)),s?p||(p=new Date(0).toISOString(),await Ue("installedAt",p)):(s=L1(32),await Ue("fakeUserId",s)),p||(p=l.toISOString(),await Ue("installedAt",p));let f=new Date(p),m=ad(f),d=ad(l),h=m===d,T=l.getTime()-f.getTime()<7*24*60*60*1e3,b=`https://www.google-analytics.com/mp/collect?measurement_id=${nd}&api_secret=${i}`;o||(b=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${nd}&api_secret=${i}`);let C="";typeof navigator<"u"&&(C=window.navigator.userAgent);let w=Ua.parse(C),I=t.map(y=>{let S=y.params||{};return w.os&&(S.os_name=w.os.name||"unknown",S.os_version=w.os.version||"unknown",S.os_version_name=w.os.versionName||"unknown"),w.browser&&(S.browser_name=w.browser.name||"unknown",S.browser_version=w.browser.version||"unknown"),w.platform&&(S.platform_type=w.platform.type||"unknown"),w.engine&&(S.engine_name=w.engine.name||"unknown",S.engine_version=w.engine.version||"unknown"),c&&(S.version=c),n.INSTALL_FROM&&(S.install_from=n.INSTALL_FROM),m&&(S.install_day=M1(f)),S.userscript=r.toString(),h?S.is_new_user_today="1":S.is_new_user_today="0",T?S.is_new_user_this_week="1":S.is_new_user_this_week="0",u?S.main_frame=0:S.main_frame=1,{...y,params:S}}),B=await Zu({responseType:"text",url:b,method:"POST",body:JSON.stringify({client_id:s,user_id:s,events:I})})}catch{}}function L1(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r",""],limit:5e3},custom:{placeholderDelimiters:["{","}"]},bing:{maxTextLengthPerRequest:1800,placeholderDelimiters:["","","b"]},deeplx:{limit:3},d:{immediateTranslationTextCount:0},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},openai:{placeholderDelimiters:["{{","}}","b"],immediateTranslationTextCount:3e3,translationDebounce:300,interval:1350,prompt:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: {{text}}`,maxTextGroupLengthPerRequest:1,newlinePlaceholderDelimiters:[` @@ -4343,61 +4343,63 @@ Additionally, we support using Chinese aliases of language codes as commands. Fo ?`]}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:""},tempTranslateDomainMinutes:0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","*.twitter.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","github.com","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","www.tumblr.com","*.twitter.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},generalRule:{_comment:"",enableSubtitle:!0,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan"],useIframePostMessage:!0,searchEnhancementConfig:[],injectedCss:[],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!0,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,isTransformPreTagNewLine:!1,urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".MathJax_Preview",".MathJax",".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:4,paragraphMinWordCount:2,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,globalAttributes:{},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{".sr-only":"display:none"},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{translate:"no"},"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:[],additionalExcludeSelectors:[".social-share",".breadcrumbs",".post__footer",".btn",".reference-citations",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","markerow8"],translationClasses:[],atomicBlockSelectors:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","INPUT","BUTTON","BASE","SELECT","OPTION","HR","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","XQDD_HIGHLIGHT_NEW_WORD","NOBR"],additionalInlineTags:[],extraInlineSelectors:[],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,mouseHoverHoldKey:"Off"},rules:[{id:"immersive",matches:["https://immersivetranslate.com","https://onboarding.immersivetranslate.com"],isInjectVersion:!0,isInjectMeta:!0},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"pdf",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],translationMode:"translation",skipEditableCheck:!0,selectors:["p"],wrapperPrefix:"",isInjectVersion:!0,isPdf:!0},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,injectedCss:[".immersive-translate-target-translation-block-wrapper { display: block; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"]},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","https://platform.twitter.com/embed*"],additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']"],extraBlockSelectors:['[data-testid="tweetText"] div.r-6koalj'],extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText']":"-webkit-line-clamp: unset;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]"]},{id:"threads",matches:"www.threads.net",selectors:["p",".x1npkx4u.x1exu5d8",".xw7yly9",".xgkxs2y"],stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x78zum5",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{span:"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],extraBlockSelectors:["span.comment-copy"],excludeSelectors:["a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md",".RichTextJSON-root","div[slot=title]","div[slot=text-body]","p.title > a","[role=main] .md-container"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none"},waitForSelectors:["[data-testid=post_author_link]"]},{id:"reddit",matches:"www.reddit.com",selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","div[slot=title]","div[slot=text-body]","p.title > a","[role=main] .md-container"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none"}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper"],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box"],extraBlockSelectors:[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],detectParagraphLanguage:!0},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"facebook",matches:"www.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]"],atomicBlockSelectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],extraBlockSelectors:["span.x1vvkbs"],excludeSelectors:["[role=button]"],translationClasses:["immersive-translate-text"],detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".caption-window",".caption-visual-line",".yt-spec-button-view-model",".yt-core-attributed-string > span",".title"],"excludeTags.remove":["BUTTON"],condition:{enableSubtitle:{false:{"selectors.remove":[".caption-window",".caption-visual-line"]}}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],extraBlockSelectors:[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,detectParagraphLanguage:!0,excludeSelectors:["[class^='lln-']"],globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","ytd-notification-renderer .message","#message",".caption-window",".caption-visual-line"],extraBlockSelectors:["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],condition:{enableSubtitle:{false:{"selectors.remove":[".caption-window",".caption-visual-line"]}}},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,selectors:["h1","div[class='x9f619 xjbqb8w x78zum5 x168nmei x13lgxp2 x5pf9jr xo71vjh x1uhb9sk x1plvlek xryxfnj x1c4vz4f x2lah0s xdt5ytf xqjyukv x1cy8zhl x1oa3qoh x1nhvcw1'] > span[class='x1lliihq x1plvlek xryxfnj x1n2onr6 x193iq5w xeuugli x1fj9vlw x13faqbe x1vvkbs x1s928wv xhkezso x1gmr53x x1cpjm7i x1fgarty x1943h6x x1i0vuye xvs91rp xo1l8bm x5n08af x10wh9bi x1wdrske x8viiok x18hxmgj']","span[class='x193iq5w xeuugli x1fj9vlw x13faqbe x1vvkbs xt0psk2 x1i0vuye xvs91rp xo1l8bm x5n08af x10wh9bi x1wdrske x8viiok x18hxmgj']"],wrapperPrefix:"
"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:["[style^=top]",".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;"},extraBlockSelectors:[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"]},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page"],excludeMatches:["https://www.inoreader.com/features/"],observeUrlChange:!1,globalStyles:{".article_title_link":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` `,selectors:["h3 a[data-clk]","div.gs_rs","td a.gsc_a_at","td div.gs_gray:last-of-type","div.gsc_oci_value","#gs_opinion"],extraInlineSelectors:["br"],atomicBlockSelectors:["h3 a[data-clk]"]},{id:"googleMail",matches:"mail.google.com",detectParagraphLanguage:!0,selectors:["h2[data-thread-perm-id]","span[data-thread-id]","div[data-message-id] div[class='']",".messageBody","#views"],globalStyles:{".Nk":"height:auto!important;",".kf":"white-space:unset!important;"}},{id:"googleNews",matches:"news.google.com",blockMinTextCount:26,blockMinWordCount:5,globalStyles:{".MCAGUe":"height: auto;",".To2ZZb.DbQnIe":"height: unset;",".cp7Yvc > h2":"display: block;",".oovtQ":"height: auto;",h4:"-webkit-line-clamp: unset;"},excludeSelectors:[".EyERq",".AOl7G.eejsDc","[aria-label='Home']","[aria-label='For you']","[aria-label='Following']","[aria-label='World']","[aria-label='Local']",".gb_Fc",".wBQf7b",".yPI8Rb",".jKHa4e",".u43Gd",".Zgjpyb","[role='button']","[jsname='rymPhb']",".cbz1ld",".VfPpkd-P5QLlc",".XvhY1d"]},{id:"outlook",matches:"outlook.live.com",excludeSelectors:[".jHAG3.XG5Jd",".OZZZK",".lDdSm"]},{id:"producthunt",matches:"www.producthunt.com",excludeMatches:"https://www.producthunt.com/stories/*",selectors:["h2","div[class^='styles_htmlText__']","[class^='styles_tagline']","a[href^='/discussions/'].fontWeight-600","button[class^='styles_textButton'] > div > span","h5 + p","div[data-test=product-item-name] + div",".noOfLines-1,.noOfLines-2,.noOfLines-3",".fontWeight-600","[class*='styles_dropdown']","[class*='styles_aboutText']"],globalStyles:{"h5 + p":"height:unset;",".noOfLines-1,.noOfLines-2,.noOfLines-3":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"]},{id:"codeforces",matches:"https://codeforces.com/*",stayOriginalTags:["[class^='MathJax']"]},{id:"arxivLabs",matches:"*.labs.arxiv.org/*",stayOriginalTags:["math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt"]},{id:"discord",matches:"https://discord.com/channels/*",isTranslateTitle:!1,selectors:["li[id^=chat-messages] div[id^=message-content]","div[class^=headerText]","section[aria-label='Search Results'] div[id^=message-content]"],extraBlockSelectors:["[class^='embedFieldValue']","li[class^='card'] div[class^='message']","[data-list-item-id^='forum-channel-list'] div[class^='headerText']"],globalStyles:{"div[class^=headerText]":"max-height: unset;","div[class^=message]":"max-height: unset;","div[class^=text]":"max-height: unset;","h3[data-text-variant='heading-lg/semibold']":"-webkit-line-clamp: none;"},detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:"",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"telegram",matches:["web.telegram.org/z/*","web.telegram.org/a/*"],isTranslateTitle:!1,selectors:[".text-content",".message",".reply-markup-button-text",".bot-commands-list-element-description"],detectParagraphLanguage:!0},{id:"telegramK",matches:["web.telegram.org/k/*","web.telegram.org/k/"],selectors:[".message",".reply-markup-button-text",".bot-commands-list-element-description"],detectParagraphLanguage:!0},{id:"githubGist",matches:"gist.github.com",selectors:[".markdown-body",".readme"],detectParagraphLanguage:!0},{id:"lobste",matches:"lobste.rs",excludeMatches:["https://lobste.rs/about","https://lobste.rs/chat"],selectors:[".u-repost-of",".comment_text",".story_text"]},{id:"slack",matches:"*.slack.com",selectors:[".p-rich_text_block",".p-message_pane__foreword",".c-alert__message","[data-qa=message_attachment_text]"],additionalStayOriginalSelectors:["[data-qa=emoji]"],detectParagraphLanguage:!0},{id:"artstationArtwork",matches:"www.artstation.com/artwork/*",excludeSelectors:".project-description a",selectors:[".project-description","div.project-comment-text"],detectParagraphLanguage:!0},{id:"artstationLearning",matches:"www.artstation.com/learning/courses/*",additionalSelectors:["footer.learning-course-description.ng-star-inserted > span"],excludeSelectors:[".learning-card-meta"]},{id:"artstationBlog",matches:["https://www.artstation.com/blogs","https://www.artstation.com/blogs/*"],detectParagraphLanguage:!0,additionalSelectors:[".comment-item-body"],atomicBlockSelectors:[".author-headline",".author-location"],excludeSelectors:["blog-card-thumbnail","blog-card-header",".blog-card-author",".blog-card-meta",".blog-view-header",".blog-grid-title",".post-meta-header"]},{id:"figmaCommunity",matches:"www.figma.com/community/*",normalizeBody:"div.ql-editor[contenteditable='false']",excludeSelectors:["div[class*='metadataRight']","div[class*='commentMetaAndOptions']"],globalStyles:{"div[class*='mini_cardBottomRowSizing']":"height: 3em;"},additionalSelectors:["div[class*='mini_cardBottomRow_Metadata']"],stayOriginalSelectors:["[data-tooltip='tooltip-user-info']"]},{id:"googleIndex",matches:["https://www.google.com/","https://www.google.com.hk/"],excludeSelectors:["#gb","#SIvCob"],inputTutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",inputTutorialsSelectors:["textarea#APjFqb"]},{id:"googleSearch",matches:"www.google.*/search*",blockMinTextCount:32,blockMinWordCount:3,wrapperSuffix:"",detectParagraphLanguage:!0,excludeSelectors:["a h3 + div","div#sfooter","a[role=presentation] > div > div:first-child",".b5ZQcf",".CEMjEf",".MgUUmf.NUnG9d","#result-stats","[role=navigation]","div.sCuL3","div.eFM0qc.BCF2pd","div.WZ8Tjf","div.adDDi","#headerSection","#rateChatDiv","[id=bres]",".title-D5Lgyj","[data-attrid='VisualDigestVideoResult']",".search-enhance-WDIEkP h4",".SPZz6b h2",".CtCigf",".VLkRKc",".EbH0bb",".Wr0c6d",".jleFbf","#searchform",".yg51vc",".CbAZb"],extraBlockSelectors:[".MUFPAc"],globalStyles:{".V82bz":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px",".pe7FNb":"-webkit-line-clamp: unset;",".promotion-3PDMAb":"display: none;",".uAKcGb":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px","div[data-content-feature='1'] > div":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:2']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:3']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:4']":"-webkit-line-clamp: unset;max-height: unset;",".Pw4Ldf.RsCEN":"height:unset;",".related-question-pair":"overflow:auto;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,searchEnhancementConfig:[{id:"google",urlMatch:"https://www\\.google\\..+/search",style:{source:"font-size:12px; margin-bottom: 6px;",enTitle:"margin-top:6px;font-size:14px;",searchTitle:"margin-top:6px;position:relative;padding-right:24px;",more:"color:#1a0dab;margin-top:8px;",enTitleClassName:"immersive-translate-search-enhancement-en-title"},keyword:{value:"[0]$1",matches:[{source:"url",matchRegex:"q=(.+?)&"}]},showCount:5}]},{id:"lowendtalk",matches:"lowendtalk.com",selectors:["[role=heading]","h1",".userContent"]},{id:"linkedinJobs",matches:"www.linkedin.com/jobs/*",selectors:["#job-details > span"]},{id:"linkedinFeed",matches:"https://linkedin.com/feed/*",selectors:["h1",".feed-shared-update-v2__description-wrapper"]},{id:"indiehackers",matches:"www.indiehackers.com",selectors:[".content","h1","h3.story__title",".feed-item__title-link",".article-body"]},{id:"libreddit",matches:"libreddit.de",selectors:["h2.post_title",".comment_body > .md"]},{id:"notionSite",matches:["notion.site","*.notion.site"],normalizeBody:"body",selectors:["div[data-block-id]"]},{id:"newyorker",matches:"www.newyorker.com",additionalSelectors:["h1","[data-testid=SummaryItemHed]"],excludeSelectors:["[data-testid=PersistentTop]","[data-testid=StackedNavigationHeader]"],urlChangeDelay:2e3},{id:"startme",matches:"start.me",selectors:[".rss-article__title",".rss-articles-list__article-link",".rss-showcase__title",".rss-showcase__text"]},{id:"scmp",matches:"www.scmp.com",additionalSelectors:[".info__subHeadline",".section-content h2"],globalStyles:{".topic__article-list":"height: unset;",".adverisers__adveriser":"height: unset;",".advertiser__content":"height: unset;",".content-title__link":"display:unset;overflow:unset;-webkit-line-clamp:unset;",".title__text":"max-height:unset; -webkit-line-clamp:unset;",".news-list-item__news-title":"max-height:unset; -webkit-line-clamp:unset;","a[class*='link'] > .link__headline":"max-height:unset; -webkit-line-clamp:unset;"}},{id:"lesswrong",matches:"www.lesswrong.com",extraBlockSelectors:["span.commentOnSelection"]},{id:"mastodon",matches:["mastodon.social","mastodon.online","kolektiva.social","indieweb.social","mastodon.world","infosec.exchange"],isTranslateTitle:!1,selectorMatches:["div#mastodon"],selectors:["div.status__content__text",".about__section__body",".content",".form-container",".account__header__extra"],globalAttributes:{"[class='notranslate app-holder']":{class:"app-holder"}},detectLanguage:!0},{id:"cnbc",matches:"www.cnbc.com",urlChangeDelay:1e3,globalStyles:{"div.Card-titleContainer > div":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"dailyDev",matches:"app.daily.dev",selectors:["h1",".typo-body","article h3","[class^=markdown_markdown]"],globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset"}},{id:"pornhub",matches:["*.pornhub.com","pornhub.com"],excludeMatches:["*.pornhub.com/insights/*","pornhub.com/insights/*"],extraBlockSelectors:[".trendingNow",".searchItem",".tagcloud > a"],detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:` `,globalStyles:{"span.title":"height:unset; max-height:unset;",".detailedInfo":"max-height:unset;",".pcVideoListItem":"max-height:unset;",".wrap":"height:unset;",".entry-header":"height:unset;",".entry-title > a":"height:unset;-webkit-line-clamp:unset;"}},{id:"yourporn",matches:"https://www.youporn.com/*",extraBlockSelectors:[".button"],globalStyles:{".video-box":"max-height:unset;",".video-box-title":"white-space:unset;"}},{id:"modelhub",matches:"https://www.modelhub.com/*",globalStyles:{".videoTitle":"height:unset;",a:"height:unset;"}},{id:"xvideos",matches:"https://www.xvideos.com/*",globalStyles:{".title":"-webkit-line-clamp:unset;max-height:unset;",".mozaique":"display:flex; flex-wrap:wrap;"},excludeSelectors:[".video-hd-mark"]},{id:"missav",matches:"https://missav.com/*",globalStyles:{".truncate":"white-space:unset;",".overflow-y-hidden":"max-height:unset;overflow-y:unset;"}},{id:"javbus",matches:"https://www.javbus.com/*",globalStyles:{".photo-info":"height:unset;"},excludeSelectors:[".item-tag","date"]},{id:"spankbang",matches:"https://spankbang.com/*",globalStyles:{".video-item > a":"white-space:unset;"},excludeSelectors:[".stats",".thumb"],extraBlockSelectors:[".searches > a",".tag > a",".extra > a",".positions > li"]},{id:"javdb",matches:"https://javdb*.com/*",globalStyles:{".video-title":"white-space:unset;"},excludeSelectors:[".video-number",".score",".has-addons"]},{id:"jable",matches:"https://jable.tv/*",globalStyles:{".title":"white-space:unset;max-height:unset;",".img-box > a":"position:relative;"}},{id:"netflav",matches:"https://netflav*.com/*",globalStyles:{".grid_title":"max-height:unset;"},extraBlockSelectors:[".genre_filter_item","button"]},{id:"czechvideo",matches:"https://czechvideo.co/*",globalStyles:{".short-story":"height:unset;",".short-title":"height:unset;"},globalAttributes:{header:{translate:"unset;"}}},{id:"weibo",matches:["weibo.com"],selectors:["div[class^='detail_wbtext']"]},{id:"medium",matches:["medium.com","*.medium.com"],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],urlChangeDelay:20,"additionalExcludeSelectors.remove":["i.fa","i[class^=fa-]",".navmenu-container",".google-symbols","markerow8"],selectors:["h1","h2","article section","[aria-hidden='false'] pre","article p"],excludeSelectors:["[aria-label='Post Preview Reading Time']",".al.b.bl.ag.bp",".al.b.bl.ag.ai"],globalStyles:{h2:"-webkit-line-clamp: unset;max-height:unset;","article p":"-webkit-line-clamp: unset;max-height:unset;"}},{id:"nitter",selectorMatches:["meta[property='og:site_name'][content='Nitter']"],selectors:[".tweet-content",".quote-text"]},{id:"economist",matches:"www.economist.com",extraInlineSelectors:["span[data-caps='initial']"],excludeSelectors:["footer.ds-footer"],injectedCss:["a::before {position:relative!important;}"]},{id:"healthline",matches:"www.healthline.com",excludeSelectors:[".icon-hl-trusted-source-after"]},{id:"ebay",matches:"www.ebay.com",excludeSelectors:["headers","[itemprop=offers]",".dne-itemtile-original-price"],paragraphMinTextCount:4,paragraphMinWordCount:2,globalStyles:{"[itemprop=name]":"-webkit-line-clamp: unset;max-height: unset;",".merch-item-title":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"skinstore",matches:"www.skinstore.com",excludeSelectors:[".responsiveFlyoutMenu_levelOneLink"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"tripadvisor",matches:"www.tripadvisor.com",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"amazon",matches:"www.amazon.com",paragraphMinTextCount:4,paragraphMinWordCount:2,extraBlockSelectors:[".a-size-small.a-link-normal.page-banner-link.a-nowrap"],globalStyles:{".a-carousel-viewport":"height:unset;","[class*='clamp']":"max-height: unset;-webkit-line-clamp: unset;","[data-rows]":"max-height: unset;-webkit-line-clamp: unset;","[data-a-expander-name='review_text_read_more']":" max-height: unset;"},excludeSelectors:["#navFooter","#navbar-main",".s-price-instructions-style","[class*='star']","[data-hook='acr-average-stars-rating-text']",".a-color-price"]},{id:"visualstudioMarketplace",matches:"marketplace.visualstudio.com",additionalExcludeSelectors:[".core-info-second-row",".core-info-third-row",".meta-data-list",".item-title",".breadcrumb",".itemDetails-right",".ux-user-name",".ux-updated-date",".ux-item-second-row-wrapper",".stats-and-offer",".header-container"],atomicBlockSelectors:[".core-info-cell > div.name"],globalStyles:{".item-details-control-root.ux-item-shortdesc":"height: unset; overflow: visible; max-height:unset;"}},{id:"bloomberg",matches:"www.bloomberg.com",urlChangeDelay:2e3,excludeSelectors:[".ticker-bar","nav","[aria-label=Banner]","aside","[data-component=ticker-bar]","footer.bb-global-footer"]},{id:"baiduXueshu",matches:"xueshu.baidu.com",globalStyles:{".abstract_wr":"height: unset; overflow: visible; max-height:unset;"}},{id:"sciencedirect",matches:"www.sciencedirect.com",urlChangeDelay:2e3,stayOriginalSelectors:["span.display","span.math"],extraBlockSelectors:["span.captions","span[id^=cap]"]},{id:"thehighestofthemountains",matches:"www.thehighestofthemountains.com",extraBlockSelectors:"div"},{id:"telegraph1",matches:"te.legra.ph",normalizeBody:"div.ql-editor[contenteditable='false']",urlChangeDelay:500},{id:"telegraph2",matches:["telegra.ph"],normalizeBody:"div.ql-editor[contenteditable='false']",wrapperPrefix:` -`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main > div > div[class*='h-[125]']":"height:auto"},normalizeBody:"body",extraBlockSelectors:["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,normalizeBody:"#mw-content-text",globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"]},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"}},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:"chat.openai.com",excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0}},{id:"newstop",matches:["chat.newstop.asia","chat.waixingyun.cn"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".n-button.n-button--warning-type.n-button--medium-type",messageWrapperSelector:".markdown-body",streamingChange:!1,streamingDeepChild:!0}},{id:"askgpt",matches:["askgpt.cn","chatcat.zhaoyoung.me"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".home_chat-message-status__EsVNi",messageWrapperSelector:".markdown-body",streamingChange:!0,streamingDeepChild:!0}},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__UyYrv *",".MarkdownLink_linkifiedLink__KxC9G"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__UyYrv",streamingChange:!1,streamingDeepChild:!0}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"newthingsunderthesun",matches:"www.newthingsunderthesun.com",additionalSelectors:["[translate=no]"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"https://steamcommunity.com/app/*",globalStyles:{".forum_topic":"height:auto;",".forum_topic_name":"white-space:normal;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampowered",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:"https://www.webofscience.com/*",globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},excludeSelectors:[".summary-left-panel",".authors","app-full-record-keywords mark"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],extraBlockSelectors:["app-summary-authors + div","app-full-record-keywords span span"],observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://www.jetbrains.com/help/*",extraBlockSelectors:["[data-test=prompt]"]},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails p"]},{id:"isEbook",isEbook:!0,isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span"},{id:"isEbookBuilder",isEbookBuilder:!0,isTranslateTitle:!1,targetWrapperTag:"span",selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com",extraBlockSelectors:["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],extraBlockSelectors:"font[face=verdana]"},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"isSubtitleBuilder",isSubtitleBuilder:!0,selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,wrapperPrefix:"",wrapperSuffix:""},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/",extraBlockSelectors:[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"vimeo",matches:"https://player.vimeo.com/video/*",extraBlockSelectors:["span.vp-captions-line","span[class^=CaptionsRenderer_]"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexityAi",matches:"https://www.perplexity.ai/search/*",extraBlockSelectors:[".prose > span"],additionalStayOriginalSelectors:["a.citation"],insertPosition:"afterend"},{id:"perplexity",matches:"https://www.perplexity.ai",globalStyles:{".line-clamp-1":"-webkit-line-clamp: unset !important;",".line-clamp-2":"-webkit-line-clamp: unset !important;"}},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"babelnovel",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*"],urlChangeDelay:0},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0},{globalAttributes:{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"youtrackJetbrains",matches:"youtrack.jetbrains.com/articles/*",selectors:["[role=presentation]","[data-test=article-content]"],excludeSelectors:[".toolbar__ee8"]},{id:"bbc",matches:"www.bbc.com",excludeSelectors:["section.module--languages",".drop-capped"]},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}}},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"openai",matches:"https://platform.openai.com/docs/*",urlChangeDelay:0},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout":"height:unset !important;",".EntrySummary--u4":"-webkit-line-clamp: unset;max-height:unset;",".EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:[".copyable-text > span"],wrapperPrefix:` -`,wrapperSuffix:"
"},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],globalStyles:{"[class*='lineclamp']":"-webkit-line-clamp:unset;"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],extraBlockSelectors:[".SIPGg",".sc-kzMCTH.pSZXj"],globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"]},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*",globalAttributes:{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead"],injectedCss:["a::after {position:relative!important;}"]},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},globalAttributes:{"#app":{class:""}}},{id:"haproxy",matches:["docs.haproxy.org","www.oreilly.com/openbook/opensources/book/*"],excludeTags:[],stayOriginalSelectors:[],stayOriginalTags:[],isTransformPreTagNewLine:!0},{id:"piAi",matches:"pi.ai/talk",excludeSelectors:[".whitespace-pre-wrap > span *"],aiRule:{streamingSelector:"button[class*='fixed'][disabled]",messageWrapperSelector:".whitespace-pre-wrap",streamingChange:!1,streamingDeepChild:!1},globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *"],"excludeTags.remove":["PRE"],injectedCss:"[data-testid='chat-menu-trigger'] br {display:none;}",aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1}},{id:"feishu",matches:"*.feishu.cn","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],excludeSelectors:[".catalogue__list"]},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"bugsWebkit",matches:"bugs.webkit.org",isTransformPreTagNewLine:!0},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",matches:"www.kaggle.com",excludeTags:["i","button"]},{id:"ieee",matches:"spectrum.ieee.org",extraBlockSelectors:["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"www.cnn.com",excludeSelectors:[".ad-slot-header__wrapper"]},{id:"marginalrevolution",matches:"marginalrevolution.com",globalAttributes:{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",condition:{enableSubtitle:{false:{"excludeSelectors.add":[".bpx-player-subtitle-panel-text"]}}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"docs-oracle",matches:"docs.oracle.com",urlChangeDelay:0},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"edstem",matches:"edstem.org","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:"pubmed.ncbi.nlm.nih.gov",urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share"]},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"tldrnewsletter",matches:"actions.tldrnewsletter.com","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"bugzilla",matches:"bugzilla.mozilla.org","excludeTags.remove":["PRE"],isTransformPreTagNewLine:!0},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"excludeSelectors.add":["aside",".DocSearch-Modal"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"mail.qq.com",useIframePostMessage:!1},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]}]};g();g();function xa(e){return Array.isArray(e)?e:e?[e]:[]}function ws(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function Vn(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function to(e,t){let n={...e};return rd(n,t),_1(n,t),n}function ad(e,t,n){let a={...t};return B1(e,a,n),a}function _1(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},a=t.condition.enableSubtitle?.false||{},r=e.enableSubtitle?n:a;rd(e,r)}function B1(e,t,n){try{return Object.keys(t).forEach(a=>{let[r,u]=a.split(".");if(u){let o=t[a];if(Array.isArray(e[r])&&(o=xa(t[a])),u==="add"){t[r]=qr(e[r],o),delete t[a];return}else if(u=="remove"){t[r]=vs(e[r],o),delete t[a];return}}}),Object.keys(n).forEach(a=>{let[r,u]=a.split(".");if(!r||n[a]===void 0)return;let o=n[a],i=t[r];if(Array.isArray(e[r])&&(o=xa(n[a]),i=xa(t[r])),u==="add"){t[r]=qr(i,o);return}else if(u=="remove"){t[r]=vs(i,o);return}Array.isArray(i)&&r.startsWith("additional")?t[r]=qr(i,o):t[r]=o}),t}catch{}}function rd(e,t){return Object.keys(t).forEach(n=>{let[a,r]=n.split(".");if(!a||t[n]===void 0)return;let u=t[n];if(Array.isArray(e[a])&&(u=xa(t[n])),r==="add"){e[a]=qr(e[a],u);return}else if(r=="remove"){e[a]=vs(e[a],u);return}Array.isArray(e[a])&&a.startsWith("additional")?e[a]=qr(e[a],u):e[a]=u}),e}function qr(e,t){let n;if(Array.isArray(e)){let a=xa(t);n=[...e,...a],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"&&(n={...e,...t});return n}function vs(e,t){if(Array.isArray(e)){let n=xa(t);return e=e.filter(a=>!n.includes(a)),Array.from(new Set(e))}else typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(n=>{delete e[n]});return e}function ud(){if(xe.PROD==="1")return{};let e={};if(xe.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&xe.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:xe.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:xe.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(xe.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&xe.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:xe.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:xe.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(xe.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:xe.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(xe.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:xe.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(xe.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&xe.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:xe.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:xe.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(xe.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&xe.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:xe.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:xe.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(xe.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:xe.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(xe.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=xe.DEEPL_PROXY_ENDPOINT),xe.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=xe.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),xe.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:xe.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}xe.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=xe.IMMERSIVE_TRANSLATE_SERVICE);let t={};return xe.DEBUG==="1"&&(t.debug=!0,t.cache=!1),xe.MOCK==="1"&&(t.translationService="mock"),t}async function Yn(){let e=await ue.storage.local.get(Fr);if(e[Fr]){let t=e[Fr],n=t.tempTranslationUrlMatches||[],a=n.filter(o=>o.expiredAt>Date.now()),r=!1;a.length!==n.length&&(n=a,r=!0);let u={...t,tempTranslationUrlMatches:[...n]};return r&&await An(u),u}else return{}}async function An(e){await ue.storage.local.set({[Fr]:e})}async function od(e){await ue.storage.local.set({[Wn]:e})}async function id(){let e=await ue.storage.local.get(Wn),n={...sd(),...eo,buildinConfigUpdatedAt:xe.BUILD_TIME};if(e[Wn]){let a=e[Wn];if(a&&a.buildinConfigUpdatedAt){let r=new Date(a.buildinConfigUpdatedAt),u=new Date(n.buildinConfigUpdatedAt);r>u&&(n=a)}}return n}async function Jn(){let e=await ue.storage.local.get(Wn),t={...eo,buildinConfigUpdatedAt:xe.BUILD_TIME};if(e[Wn]){let L=e[Wn];if(L&&L.buildinConfigUpdatedAt){let E=new Date(L.buildinConfigUpdatedAt),k=new Date(t.buildinConfigUpdatedAt);E>k&&(t=L)}}let n=await Nt.get(en,null),a={};if(!fe()&&ue.commands&&ue.commands.getAll){let L=await ue.commands.getAll();for(let E of L)E.name&&E.shortcut&&(a[E.name]=E.shortcut)}let r=sd(),u=ud(),o=await ks(),i=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},s=await Yn(),c=new Date;if(s&&s.tempTranslationUrlMatches&&s.tempTranslationUrlMatches.length>0){let L=s.tempTranslationUrlMatches.filter(E=>new Date(E.expiredAt)>c);if(L.length>0){let E=o.translationUrlPattern?o.translationUrlPattern?.matches||[]:[],k=Array.isArray(E)?E:[E],I=Array.from(new Set(k.concat(L.map($=>$.match))));o.translationUrlPattern={...o.translationUrlPattern,matches:I}}}let l=Object.assign({},i,u,o);if(!l.interfaceLanguage){let L=await R1();l.interfaceLanguage=L}let p=l.interfaceLanguage==="en",f=l.targetLanguage==="en",m=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,d=["bing","google","transmart","mock"].includes(l.translationService)||!l.translationService;!p&&!f&&!m&&d?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let h=t&&t.enableDefaultAlwaysTranslatedUrls;l.enableDefaultAlwaysTranslatedUrls===!1&&(h=!1);let T=l&&l.isChangedAlwaysTranslatedUrls,b=[];l.translationUrlPattern&&l.translationUrlPattern.matches&&(b=l.translationUrlPattern.matches||[]);let C=!1;T===void 0&&(b.length>0?T=!0:T=!1,l.isChangedAlwaysTranslatedUrls=T,o.isChangedAlwaysTranslatedUrls=T,C=!0);let w=(l?.translationLanguagePattern?.matches?.length||0)>0,O=await St("installedAt",""),B=Number(await In("translage_page_daily",0)),y=Number(await St(fn,0)),A;y>0&&(Date.now()-y0&&(Date.now()-Bz.id&&I[z.id]?ad(t.generalRule,I[z.id],z):z);R[E]=[...$,...R[E]]}if(xe.PROD==="0"&&xe.DEV_RULES){let k=JSON.parse(xe.DEV_RULES);R[E]=[...k,...R[E]]}}else l[E]!==void 0&&(R[E]=l[E])}return R.donateUrl=t.donateUrl,R.minVersion=t.minVersion,R.feedbackUrl=t.feedbackUrl,R}async function ks(){return(await ue.storage.sync.get("userConfig")||{}).userConfig||{}}async function As(e){await ue.storage.sync.set({userConfig:e})}var R1=async()=>{let e=["zh-CN"];try{e=await ue.i18n.getAcceptLanguages()}catch(a){N.warn("get browser language error:",a)}let n=e.map(a=>Wa(a)).find(a=>It[a]);return n||"en"},sd=()=>{let e={...eo,buildinConfigUpdatedAt:xe.BUILD_TIME};return{...e,targetLanguage:Wu,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing"},rules:[]}};function I1(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(a=>!e.includes(a)).length>0}g();g();function Qn(e,t){var n=(e&65535)+(t&65535),a=(e>>16)+(t>>16)+(n>>16);return a<<16|n&65535}function O1(e,t){return e<>>32-t}function ao(e,t,n,a,r,u){return Qn(O1(Qn(Qn(t,e),Qn(a,u)),r),n)}function Et(e,t,n,a,r,u,o){return ao(t&n|~t&a,e,t,r,u,o)}function xt(e,t,n,a,r,u,o){return ao(t&a|n&~a,e,t,r,u,o)}function Tt(e,t,n,a,r,u,o){return ao(t^n^a,e,t,r,u,o)}function Ct(e,t,n,a,r,u,o){return ao(n^(t|~a),e,t,r,u,o)}function no(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,a,r,u,o,i=1732584193,s=-271733879,c=-1732584194,l=271733878;for(n=0;n>5]>>>t%32&255);return n}function Ss(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(a=no(a,e.length*8)),n=0;n<16;n+=1)r[n]=a[n]^909522486,u[n]=a[n]^1549556828;return o=no(r.concat(Ss(t)),512+t.length*8),ld(no(u.concat(o),512+128))}function cd(e){var t="0123456789abcdef",n="",a,r;for(r=0;r>>4&15)+t.charAt(a&15);return n}function Ds(e){return unescape(encodeURIComponent(e))}function dd(e){return N1(Ds(e))}function U1(e){return cd(dd(e))}function md(e,t){return j1(Ds(e),Ds(t))}function z1(e,t){return cd(md(e,t))}function Zn(e,t,n){return t?n?md(t,e):z1(t,e):n?dd(e):U1(e)}g();function gd(e,t,n){let a=H1(e,t),r=[],u={from:e[0].from,fromByClient:e[0].fromByClient,to:e[0].to,tempSentences:[],url:e[0].url};for(let o of a)(u.tempSentences.reduce((s,c)=>s+c.text.length,0)+o.text.length>t||u.tempSentences.length>=n)&&(r.push(u),u={fromByClient:u.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}),(u.from!==o.from||u.to!==o.to)&&(u.tempSentences.length>0?(r.push(u),u={fromByClient:u.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}):(u.from=o.from,u.to=o.to)),u.tempSentences.push(o);return u.tempSentences.length>0&&r.push(u),r}function H1(e,t){let n=[],a=[];for(let r=0;r0?d header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,normalizeBody:"#mw-content-text",globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"]},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"}},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:"chat.openai.com",excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0}},{id:"newstop",matches:["chat.newstop.asia","chat.waixingyun.cn"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".n-button.n-button--warning-type.n-button--medium-type",messageWrapperSelector:".markdown-body",streamingChange:!1,streamingDeepChild:!0}},{id:"askgpt",matches:["askgpt.cn","chatcat.zhaoyoung.me"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".home_chat-message-status__EsVNi",messageWrapperSelector:".markdown-body",streamingChange:!0,streamingDeepChild:!0}},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__UyYrv *",".MarkdownLink_linkifiedLink__KxC9G"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__UyYrv",streamingChange:!1,streamingDeepChild:!0}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"newthingsunderthesun",matches:"www.newthingsunderthesun.com",additionalSelectors:["[translate=no]"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"https://steamcommunity.com/app/*",globalStyles:{".forum_topic":"height:auto;",".forum_topic_name":"white-space:normal;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampowered",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:"https://www.webofscience.com/*",globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},excludeSelectors:[".summary-left-panel",".authors","app-full-record-keywords mark"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],extraBlockSelectors:["app-summary-authors + div","app-full-record-keywords span span"],observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://www.jetbrains.com/help/*",extraBlockSelectors:["[data-test=prompt]"]},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails p"]},{id:"isEbook",isEbook:!0,isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span"},{id:"isEbookBuilder",isEbookBuilder:!0,isTranslateTitle:!1,targetWrapperTag:"span",selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com",extraBlockSelectors:["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],extraBlockSelectors:"font[face=verdana]"},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"isSubtitleBuilder",isSubtitleBuilder:!0,selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,wrapperPrefix:"",wrapperSuffix:""},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/",extraBlockSelectors:[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"vimeo",matches:"https://player.vimeo.com/video/*",extraBlockSelectors:["span.vp-captions-line","span[class^=CaptionsRenderer_]"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexityAi",matches:"https://www.perplexity.ai/search/*",extraBlockSelectors:[".prose > span"],additionalStayOriginalSelectors:["a.citation"],insertPosition:"afterend"},{id:"perplexity",matches:"https://www.perplexity.ai",globalStyles:{".line-clamp-1":"-webkit-line-clamp: unset !important;",".line-clamp-2":"-webkit-line-clamp: unset !important;"}},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"babelnovel",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*"],urlChangeDelay:0},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0},{globalAttributes:{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"youtrackJetbrains",matches:"youtrack.jetbrains.com/articles/*",selectors:["[role=presentation]","[data-test=article-content]"],excludeSelectors:[".toolbar__ee8"]},{id:"bbc",matches:"www.bbc.com",excludeSelectors:["section.module--languages",".drop-capped"]},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}}},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"openai",matches:"https://platform.openai.com/docs/*",urlChangeDelay:0},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout":"height:unset !important;",".EntrySummary--u4":"-webkit-line-clamp: unset;max-height:unset;",".EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:[".copyable-text > span"],wrapperPrefix:` +`,wrapperSuffix:"
"},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],globalStyles:{"[class*='lineclamp']":"-webkit-line-clamp:unset;"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],extraBlockSelectors:[".SIPGg",".sc-kzMCTH.pSZXj"],globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"]},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*",globalAttributes:{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead"],injectedCss:["a::after {position:relative!important;}"]},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},globalAttributes:{"#app":{class:""}}},{id:"haproxy",matches:["docs.haproxy.org","www.oreilly.com/openbook/opensources/book/*"],excludeTags:[],stayOriginalSelectors:[],stayOriginalTags:[],isTransformPreTagNewLine:!0},{id:"piAi",matches:"pi.ai/talk",excludeSelectors:[".whitespace-pre-wrap > span *"],aiRule:{streamingSelector:"button[class*='fixed'][disabled]",messageWrapperSelector:".whitespace-pre-wrap",streamingChange:!1,streamingDeepChild:!1},globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *"],"excludeTags.remove":["PRE"],injectedCss:"[data-testid='chat-menu-trigger'] br {display:none;}",aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1}},{id:"feishu",matches:"*.feishu.cn","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],excludeSelectors:[".catalogue__list"]},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"bugsWebkit",matches:"bugs.webkit.org",isTransformPreTagNewLine:!0},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",matches:"www.kaggle.com",excludeTags:["i","button"]},{id:"ieee",matches:"spectrum.ieee.org",extraBlockSelectors:["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"www.cnn.com",excludeSelectors:[".ad-slot-header__wrapper"]},{id:"marginalrevolution",matches:"marginalrevolution.com",globalAttributes:{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",condition:{enableSubtitle:{false:{"excludeSelectors.add":[".bpx-player-subtitle-panel-text"]}}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"docs-oracle",matches:"docs.oracle.com",urlChangeDelay:0},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"edstem",matches:"edstem.org","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:"pubmed.ncbi.nlm.nih.gov",urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share"]},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"tldrnewsletter",matches:"actions.tldrnewsletter.com","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"bugzilla",matches:"bugzilla.mozilla.org","excludeTags.remove":["PRE"],isTransformPreTagNewLine:!0},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"excludeSelectors.add":["aside",".DocSearch-Modal"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"mail.qq.com",useIframePostMessage:!1},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]}]};g();g();function Ta(e){return Array.isArray(e)?e:e?[e]:[]}function ws(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function Vn(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function eo(e,t){let n={...e};return ud(n,t),_1(n,t),n}function rd(e,t,n){let a={...t};return B1(e,a,n),a}function _1(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},a=t.condition.enableSubtitle?.false||{},r=e.enableSubtitle?n:a;ud(e,r)}function B1(e,t,n){try{return Object.keys(t).forEach(a=>{let[r,u]=a.split(".");if(u){let o=t[a];if(Array.isArray(e[r])&&(o=Ta(t[a])),u==="add"){t[r]=qr(e[r],o),delete t[a];return}else if(u=="remove"){t[r]=vs(e[r],o),delete t[a];return}}}),Object.keys(n).forEach(a=>{let[r,u]=a.split(".");if(!r||n[a]===void 0)return;let o=n[a],i=t[r];if(Array.isArray(e[r])&&(o=Ta(n[a]),i=Ta(t[r])),u==="add"){t[r]=qr(i,o);return}else if(u=="remove"){t[r]=vs(i,o);return}Array.isArray(i)&&r.startsWith("additional")?t[r]=qr(i,o):t[r]=o}),t}catch{}}function ud(e,t){return Object.keys(t).forEach(n=>{let[a,r]=n.split(".");if(!a||t[n]===void 0)return;let u=t[n];if(Array.isArray(e[a])&&(u=Ta(t[n])),r==="add"){e[a]=qr(e[a],u);return}else if(r=="remove"){e[a]=vs(e[a],u);return}Array.isArray(e[a])&&a.startsWith("additional")?e[a]=qr(e[a],u):e[a]=u}),e}function qr(e,t){let n;if(Array.isArray(e)){let a=Ta(t);n=[...e,...a],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"&&(n={...e,...t});return n}function vs(e,t){if(Array.isArray(e)){let n=Ta(t);return e=e.filter(a=>!n.includes(a)),Array.from(new Set(e))}else typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(n=>{delete e[n]});return e}function od(){if(xe.PROD==="1")return{};let e={};if(xe.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&xe.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:xe.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:xe.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(xe.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&xe.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:xe.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:xe.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(xe.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:xe.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(xe.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:xe.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(xe.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&xe.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:xe.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:xe.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(xe.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&xe.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:xe.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:xe.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(xe.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:xe.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(xe.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=xe.DEEPL_PROXY_ENDPOINT),xe.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=xe.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),xe.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:xe.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}xe.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=xe.IMMERSIVE_TRANSLATE_SERVICE);let t={};return xe.DEBUG==="1"&&(t.debug=!0,t.cache=!1),xe.MOCK==="1"&&(t.translationService="mock"),t}async function Yn(){let e=await ue.storage.local.get(Fr);if(e[Fr]){let t=e[Fr],n=t.tempTranslationUrlMatches||[],a=n.filter(o=>o.expiredAt>Date.now()),r=!1;a.length!==n.length&&(n=a,r=!0);let u={...t,tempTranslationUrlMatches:[...n]};return r&&await An(u),u}else return{}}async function An(e){await ue.storage.local.set({[Fr]:e})}async function id(e){await ue.storage.local.set({[Wn]:e})}async function sd(){let e=await ue.storage.local.get(Wn),n={...ld(),...Xu,buildinConfigUpdatedAt:xe.BUILD_TIME};if(e[Wn]){let a=e[Wn];if(a&&a.buildinConfigUpdatedAt){let r=new Date(a.buildinConfigUpdatedAt),u=new Date(n.buildinConfigUpdatedAt);r>u&&(n=a)}}return n}async function Jn(){let e=await ue.storage.local.get(Wn),t={...Xu,buildinConfigUpdatedAt:xe.BUILD_TIME};if(e[Wn]){let L=e[Wn];if(L&&L.buildinConfigUpdatedAt){let E=new Date(L.buildinConfigUpdatedAt),k=new Date(t.buildinConfigUpdatedAt);E>k&&(t=L)}}let n=await jt.get(Nt,null),a={};if(!pe()&&ue.commands&&ue.commands.getAll){let L=await ue.commands.getAll();for(let E of L)E.name&&E.shortcut&&(a[E.name]=E.shortcut)}let r=ld(),u=od(),o=await ks(),i=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},s=await Yn(),c=new Date;if(s&&s.tempTranslationUrlMatches&&s.tempTranslationUrlMatches.length>0){let L=s.tempTranslationUrlMatches.filter(E=>new Date(E.expiredAt)>c);if(L.length>0){let E=o.translationUrlPattern?o.translationUrlPattern?.matches||[]:[],k=Array.isArray(E)?E:[E],O=Array.from(new Set(k.concat(L.map($=>$.match))));o.translationUrlPattern={...o.translationUrlPattern,matches:O}}}let l=Object.assign({},i,u,o);if(!l.interfaceLanguage){let L=await R1();l.interfaceLanguage=L}let p=l.interfaceLanguage==="en",f=l.targetLanguage==="en",m=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,d=["bing","google","transmart","mock"].includes(l.translationService)||!l.translationService;!p&&!f&&!m&&d?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let h=t&&t.enableDefaultAlwaysTranslatedUrls;l.enableDefaultAlwaysTranslatedUrls===!1&&(h=!1);let T=l&&l.isChangedAlwaysTranslatedUrls,b=[];l.translationUrlPattern&&l.translationUrlPattern.matches&&(b=l.translationUrlPattern.matches||[]);let C=!1;T===void 0&&(b.length>0?T=!0:T=!1,l.isChangedAlwaysTranslatedUrls=T,o.isChangedAlwaysTranslatedUrls=T,C=!0);let w=(l?.translationLanguagePattern?.matches?.length||0)>0,I=await St("installedAt",""),B=Number(await On("translage_page_daily",0)),y=Number(await St(fn,0)),S;y>0&&(Date.now()-y0&&(Date.now()-Bz.id&&O[z.id]?rd(t.generalRule,O[z.id],z):z);R[E]=[...$,...R[E]]}if(xe.PROD==="0"&&xe.DEV_RULES){let k=JSON.parse(xe.DEV_RULES);R[E]=[...k,...R[E]]}}else l[E]!==void 0&&(R[E]=l[E])}return R.donateUrl=t.donateUrl,R.minVersion=t.minVersion,R.feedbackUrl=t.feedbackUrl,R}async function ks(){return(await ue.storage.sync.get("userConfig")||{}).userConfig||{}}async function As(e){await ue.storage.sync.set({userConfig:e})}var R1=async()=>{let e=["zh-CN"];try{e=await ue.i18n.getAcceptLanguages()}catch(a){N.warn("get browser language error:",a)}let n=e.map(a=>$a(a)).find(a=>Ot[a]);return n||"en"},ld=()=>{let e={...Xu,buildinConfigUpdatedAt:xe.BUILD_TIME};return{...e,targetLanguage:qu,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing"},rules:[]}};function O1(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(a=>!e.includes(a)).length>0}g();g();function Qn(e,t){var n=(e&65535)+(t&65535),a=(e>>16)+(t>>16)+(n>>16);return a<<16|n&65535}function I1(e,t){return e<>>32-t}function no(e,t,n,a,r,u){return Qn(I1(Qn(Qn(t,e),Qn(a,u)),r),n)}function Et(e,t,n,a,r,u,o){return no(t&n|~t&a,e,t,r,u,o)}function xt(e,t,n,a,r,u,o){return no(t&a|n&~a,e,t,r,u,o)}function Tt(e,t,n,a,r,u,o){return no(t^n^a,e,t,r,u,o)}function Ct(e,t,n,a,r,u,o){return no(n^(t|~a),e,t,r,u,o)}function to(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,a,r,u,o,i=1732584193,s=-271733879,c=-1732584194,l=271733878;for(n=0;n>5]>>>t%32&255);return n}function Ss(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(a=to(a,e.length*8)),n=0;n<16;n+=1)r[n]=a[n]^909522486,u[n]=a[n]^1549556828;return o=to(r.concat(Ss(t)),512+t.length*8),cd(to(u.concat(o),512+128))}function dd(e){var t="0123456789abcdef",n="",a,r;for(r=0;r>>4&15)+t.charAt(a&15);return n}function Ds(e){return unescape(encodeURIComponent(e))}function md(e){return N1(Ds(e))}function U1(e){return dd(md(e))}function gd(e,t){return j1(Ds(e),Ds(t))}function z1(e,t){return dd(gd(e,t))}function Zn(e,t,n){return t?n?gd(t,e):z1(t,e):n?md(e):U1(e)}g();function pd(e,t,n){let a=H1(e,t),r=[],u={from:e[0].from,fromByClient:e[0].fromByClient,to:e[0].to,tempSentences:[],url:e[0].url};for(let o of a)(u.tempSentences.reduce((s,c)=>s+c.text.length,0)+o.text.length>t||u.tempSentences.length>=n)&&(r.push(u),u={fromByClient:u.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}),(u.from!==o.from||u.to!==o.to)&&(u.tempSentences.length>0?(r.push(u),u={fromByClient:u.fromByClient,from:o.from,to:o.to,tempSentences:[],url:o.url}):(u.from=o.from,u.to=o.to)),u.tempSentences.push(o);return u.tempSentences.length>0&&r.push(u),r}function H1(e,t){let n=[],a=[];for(let r=0;r0?dt){let b=[];Ls(h,t,b);for(let C=0;C0&&d{let i=e.lastIndexOf(o,t);return i>u?i:u},-1);if(r===-1){let u=e.slice(0,t);if(u&&!u.trim())return;n.push({text:u,prefix:"",suffix:""}),e.length>t&&Ls(e.slice(t),t,n)}else{let u=e.slice(0,r+1);if(u&&u.trim()==="")return;u.startsWith(" ")?n.push({text:u.slice(1),prefix:" ",suffix:""}):n.push({text:u,prefix:"",suffix:""}),r+10){l.forEach(d=>{c.length>0&&d.providers&&d.providers.length>0&&!d.providers.includes(s)||(d.optional?f.push(d):p.push(d))});let m=f.concat(p).filter(d=>d.required);if(m.length>0){for(let d of m)if(!r[d.name]){i=!1;break}}}return{...a,id:t,selected:n[e]===t,ok:i,currentProvider:s,config:r,providers:a.providers||[],props:a.props||[],allProps:l,optionalProps:f,explicitProps:p}}var pd=(e,t)=>{let{config:n}=e,a=n.alpha,r=n.beta,u=n.canary,o=n.debug,i=e.user,s=tn(i);return Object.keys(Bn).filter(l=>{let p=Bn[l];if(l.startsWith("mock"))return o?!0:l===e.config[t];if(l===e.config[t])return!0;if(l==="openai"&&Rt())return e.config.showOpenaiOnSafari||s?!0:!!(r||a||u||s);let f=!!p.canary,m=!!p.alpha,d=!!p.beta;return l===e[t]||f&&u||m&&(a||u)||d&&(r||a||u)?!0:!m&&!d&&!f}).map(l=>Ms(t,l,e))};function hn(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}var Ka=[];async function ro(e,t){return await new Promise((n,a)=>{let r=e,u=1,o=indexedDB.open(r,u);o.onsuccess=i=>{n(o.result)},o.onerror=i=>{a()},o.onupgradeneeded=i=>{let s=o.result,c=t||"cache";s.createObjectStore(c,{keyPath:"key"})}})}async function fd(e){let t=`${J}-${e.service}@${e.from}->${e.to}`;return await $1(t,e)}async function hd(e){let t=Zn(e.originalText),n=`${J}-${e.service}@${e.from}->${e.to}`;return await W1(n,t)}async function W1(e,t){let n=await ro(e);return await new Promise((a,r)=>{if(!n)return r();let u="cache",i=n.transaction([u],"readonly").objectStore(u).get(t);i.onsuccess=s=>{n.close();let c=i.result;a(c)},i.onerror=s=>{n.close(),r()}})}async function $1(e,t){let n=await ro(e);return(await G1()).includes(e)||await K1(e),await new Promise(r=>{if(!n)return r(!1);let u="cache",i=n.transaction([u],"readwrite").objectStore(u).put(t);i.onsuccess=s=>{n.close(),r(!0)},i.onerror=s=>{n.close(),r(!1)}})}async function K1(e){let t="cache_list",n=await ro(J+"-cacheList",t),r=n.transaction([t],"readwrite").objectStore(t).put({key:e});r.onsuccess=u=>{n.close(),Ka.push(e)},r.onerror=u=>{n.close()}}async function G1(){if(Ka&&Ka.length>0)return Ka;let e=await ro(J+"-cacheList","cache_list");return Ka=await new Promise(t=>{let n="cache_list",r=e.transaction([n],"readonly").objectStore(n).getAllKeys();r.onsuccess=u=>{e.close(),t(r.result)},r.onerror=u=>{e.close(),t([])}}),Ka}g();g();var Fs="Original";function We(){return Fs}function Dt(e){Fs=e,bd(Fs)}g();var Ed="auto",uo="auto",yd="auto";function xd(e){Ed=e}function an(e){uo=e}function pt(){return uo!=="auto"?uo:yd!=="auto"?yd:Ed}function oo(){return uo}var Ga=async function(e,t){let{method:n,data:a}=e,r=await Ad(),u=Date.now();if(N.debug(`content script received message: ${n}`,a||" "),n==="translateTheWholePage")await _s(a),Ue(fn,u);else if(n==="translateTheMainPage")await po(a),Ue(fn,u);else if(n==="translateToThePageEndImmediately")await kd(a),Ue(fn,u);else if(n==="toggleTranslatePage")await co(a),Ue(fn,u);else if(n==="toggleTranslateTheWholePage")await vd(a),Ue(fn,u);else if(n==="toggleTranslateTheMainPage")await Cd(a),Ue(fn,u);else if(n==="toggleOnlyTransation")await fo(a),Ue(fn,u);else if(n==="translatePage")await rn(r,a),Ue(fn,u);else if(n==="toggleTranslationMask")await go(a);else if(n==="restorePage")Ta();else if(n==="setCurrentPageLanguageByClient")an(a);else if(n==="retryFailedParagraphs")mo();else if(n==="switchTranslationMode"){if(r.rule.isPdf)return;a&&a.mode&&wd(a.mode)}},V1=function(e,t){let{method:n,data:a}=e;if(N.debug(`content script received sync message: ${n}`,a||" "),n==="ping")return"pong";if(n==="getPageStatus")return We();if(n==="getCurrentPageLanguage"){let r=pt();return Ps().catch(u=>{N.warn("detectCurrentPageLanguage failed",u)}),r}},io,so;function Td(){let e=lo();Je()||Y1(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function lo(){return io||(io=new Gn("content_script",!1).getConnection("main",Ga),io)}function Y1(){return so||(so=new Gn("content_script",!1).getConnection("main_sync",V1,{sync:!0}),so)}async function Ge(e){return await lo().sendMessage("background:main",e)}function oe(e){return Au()?Ju({method:"request",data:e}):fe()||ku()?(e.fetchPolyfill=globalThis.GM_fetch,Ea(e)):Ge({method:"fetch",data:e})}function Lt(){return fe()?Jn():Ge({method:"getConfig"})}function un(e){return fe()?As(e):Ge({method:"setUserConfig",data:e})}function on(){return fe()?ks():Ge({method:"getUserConfig"})}function Sd(){return fe()?Yn():Ge({method:"getLocalConfig"})}function ho(e){return fe()?An(e):Ge({method:"setLocalConfig",data:e})}function Dd(e){return fe()?od(e):Ge({method:"setBuildinConfig",data:e})}async function Qe(e){if(e.text){let n=vu(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(fe()||Rt()){let n=vr(e.text,e.minLength,e.pageLangs);return Promise.resolve(n)}let t=await Ge({method:"detectLanguage",data:e});return Promise.resolve(t)}function Ld(){return Ge({method:"detectTabLanguage"})}function bd(e){if(fe()){let n=new CustomEvent(Uu,{detail:e});document.dispatchEvent(n);return}lo().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(n=>{})}function Md(e){return fe()?hd(e):Ge({method:"queryParagraphCache",data:e})}async function Fd(e){if(fe()){await fd(e);return}return Ge({method:"setParagraphCache",data:e})}async function Pd(){if(fe())return Promise.resolve();await Ge({method:"mockRequest"})}function Va(e=!1,t=""){return fe()?(ue.runtime.openOptionsPage(e,t),Promise.resolve()):Ge({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function _d(e=""){return fe()||Rt()?Re().OPTIONS_URL:ue.runtime.getURL("options.html")}function Bd(e=""){return ue&&ue.runtime&&ue.runtime.getURL?ue.runtime.getURL("options.html"):""}function bo(e=!1){return fe()?(ue.extra.openAboutPage(e),Promise.resolve()):Ge({method:"openAboutPage"})}function Rd(e=!1){return fe()?(ue.extra.openSearchEnhancement(e),Promise.resolve()):Ge({method:"openSearchEnhancement"})}function yo(e){return fe()?(ue.extra.openInTab(e),Promise.resolve()):Ge({method:"openInTab",data:e})}function Eo(e=!1){return fe()?(ue.extra.openEbookViewerPage(e),Promise.resolve()):Ge({method:"openEbookViewerPage"})}function Id(e=!1){return fe()?Promise.resolve():Ge({method:"openHtmlViewerPage"})}function xo(e=!1){return fe()?(ue.extra.openEbookBuilderPage(e),Promise.resolve()):Ge({method:"openEbookBuilderPage"})}function To(e){Rt()}function Bs(e=!1){return fe()?(ue.extra.openPdfViewerPage(e),Promise.resolve()):Ge({method:"openPdfViewerPage"})}function Od(e=!1){return fe()?(ue.extra.openSubtitleBuilderPage(e),Promise.resolve()):Ge({method:"openSubtitleBuilderPage"})}function Rs(e){return fe()?Promise.resolve():Ge({method:"setBadge",data:{text:e}})}function Nd(){return fe()?(N.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):Ge({method:"autoSyncLatestConfig"})}var jd="G-MKMD9LWFTR";async function $e(e,t,n){try{let a=Re();if(a.INSTALL_FROM==="firefox_store")return;let u=fe(),o=Je(),i=a.PROD==="1",s=`report_${e}`,c=e.endsWith("_daily");if(c){if(o)return;let P=await In(s,0),M=Co(new Date(P)),x=Date.now(),R=Co(new Date(x));if(M===R)return;await Z4(s,x)}else if(!n.config.telemetry)return;let l="sitc4WmvShWYwfU0dANM3Q",p=await St("fakeUserId","");p||(p=await In("fakeUserId",""),p&&await Ue("fakeUserId",p));let f=nn(),m=new Date,d=await St("installedAt","");d||(d=await In("installedAt",""),d&&await Ue("installedAt",d)),p?d||(d=new Date(0).toISOString(),await Ue("installedAt",d)):(p=J1(32),await Ue("fakeUserId",p)),d||(d=m.toISOString(),await Ue("installedAt",d));let h=new Date(d),T=Co(h),b=Co(m),C=T===b,w=m.getTime()-h.getTime()<7*24*60*60*1e3,O=`https://www.google-analytics.com/mp/collect?measurement_id=${jd}&api_secret=${l}`;i||(O=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${jd}&api_secret=${l}`);let B=ja.parse(window.navigator.userAgent),y=t.map(P=>{let M=P.params||{};if(B.os&&(M.os_name=B.os.name||"unknown",M.os_version=B.os.version||"unknown",M.os_version_name=B.os.versionName||"unknown"),B.browser&&(M.browser_name=B.browser.name||"unknown",M.browser_version=B.browser.version||"unknown"),B.platform&&(M.platform_type=B.platform.type||"unknown"),B.engine&&(M.engine_name=B.engine.name||"unknown",M.engine_version=B.engine.version||"unknown"),n.translationService&&(M.translation_service||(M.translation_service=n.translationService),n.config.translationServices&&n.config.translationServices[n.translationService]&&(n.config.translationServices[n.translationService].provider&&(M.translation_service_provider=n.config.translationServices[n.translationService].provider),n.translationService==="openai"&&n.config.translationServices[n.translationService].provider==="custom"&&(n.config.translationServices[n.translationService].apiUrl?n.config.translationServices[n.translationService].apiUrl.startsWith("https://api.openai.com/")?M.openai_is_official="1":M.openai_is_official="0":M.openai_is_official="1"))),n.targetLanguage&&(M.target_language=n.targetLanguage),n.config.interfaceLanguage&&(M.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?M.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":M.enable_default_always_translated_urls="0",f&&(M.version=f),n.config.enableInputTranslation?M.enable_input_translation=n.config.enableInputTranslation?"1":"0":M.enable_input_translation="0",n.config.translationTheme&&(M.translation_theme=n.config.translationTheme),n.config.alpha&&(M.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?M.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):M.always_translate_languages="none",a.INSTALL_FROM&&(M.install_from=a.INSTALL_FROM),n.config.beta&&(M.beta=n.config.alpha.toString()),n.config.translationArea&&(M.translation_area=n.config.translationArea),n.rule&&n.rule.enableSearchEnhancement!==void 0&&(M.enable_search_enhancement=n.rule.enableSearchEnhancement?"1":"0"),T&&(M.install_day=Q1(h)),n.user){let R=Y4(n.user);R&&Object.keys(R).forEach(F=>{M[F]=R[F]})}else M.user_type="anonymous";n.config.translationMode&&(M.translation_mode=n.config.translationMode),M.userscript=u.toString(),C?M.is_new_user_today="1":M.is_new_user_today="0",w?M.is_new_user_this_week="1":M.is_new_user_this_week="0",n.config.tempTranslateDomainMinutes?M.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():M.temp_translate_domain_minutes="0";let x="html";if(n.rule.isEbook?x="ebookReader":n.rule.isPdf?x="pdfReader":n.rule.isEbookBuilder?x="ebookBuilder":n.rule.isSubtitleBuilder&&(x="subtitleBuilder"),M.page_type=x,o?M.main_frame=0:M.main_frame=1,!c){let R=n.url;try{let F=new URL(R);M.site_host=F.hostname}catch{M.site_host="unknown"}n.sourceLanguage&&(M.source_language=n.sourceLanguage)}return{...P,params:M}}),A=await oe({responseType:"text",url:O,method:"POST",body:JSON.stringify({client_id:p,user_id:p,events:y})})}catch{}}function J1(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;rt.removeEventListener("message",n)),e.length=0}function t6(e,t,n,a){return new Promise(r=>{let u=o=>{let i=o.data;X1(t,n,i)&&i.id===a&&(e.removeEventListener("message",u),r(i.response))};e.addEventListener("message",u)})}function n6(e,t,n,a){let r=u=>{let o=u.data;Wd(t,"tell",n,o)&&a(o.body)};return e.addEventListener("message",r),[e,r]}function Ud(e,t,n,a,r,u){let o=async i=>{let s=i.data;if(Wd(n,"ask",a,s)){let c=await u(s.body);t=i.source,t.postMessage(Z1(n,a,s.id,c),i.origin)}};return e.addEventListener("message",o),[e,o]}function a6(e,t,n,a,r){let u=Math.random().toString();return e.postMessage(qd(t,"tell",n,u,a),r)}async function zd(e,t,n,a,r,u,o){let i=Math.random().toString(),s=new Promise(async(c,l)=>{let p=setTimeout(()=>l(new Error(`Failed to get response within ${o}ms`)),o),f=await t6(e,n,a,i);clearTimeout(p),c(f)});return t.postMessage(qd(n,"ask",a,i,r),u),s}var ta=class e{constructor(t,n,a=window,r="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=a;this.targetOrigin=r;Ud(a,n,this.getSystemProtocol("ping"),"ping",r,()=>Promise.resolve({}))}static async connect(t,n=10,a=500){for(let r=0;r<=n;r++)try{return await t.ping({timeout:a}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*a}ms`)}static parent(t,n,a="*",r=window){let u=n.contentWindow;if(ea(u))return new e(t,u,r,a);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:a=window,targetWindow:r=window.parent}={}){return new e(t,r,a,n)}static rootIframe(t,n="*",{thisWindow:a=window}={}){return new e(t,null,a,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await zd(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(n6(this.thisWindow,this.protocol,t,n))}tell(t,n){a6(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(Ud(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,a=1e4){if(this.targetWindow)return zd(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,a);throw new Error("target window is requried")}destroy(){e6(this.listeners)}};var $d;async function Kd(){if(Je()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=ta.iframe($u,"*",{targetWindow:t});$d=n,await ta.connect(n).catch(a=>{N.error("connect with parent frame error",a)})}}function wo(){return $d}g();function Gd(e,t){let n=t.matches||[],a=t.excludeMatches||[];if(a&&!Array.isArray(a)&&(a=[a]),n&&!Array.isArray(n)&&(n=[n]),a.length>0){if(a.includes(e)||a.includes(""))return!1;for(let r of a)if(r.includes("*")&&new RegExp(r).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let r of n)if(r.includes("*")&&new RegExp(r).test(e))return!0}return!1}g();g();g();g();g();var ft=class{options;strictTicks=[];constructor(t){this.options=t,this.setOptions(t)}setOptions(t){t&&(t.interval!==void 0&&(this.options.interval=Number(t.interval)),t.limit!==void 0&&(this.options.limit=Number(t.limit)))}wait(){return new Promise((t,n)=>{setTimeout(t,this.getDelay())})}getDelay(){let t=this.strictTicks,n=this.options.limit,a=this.options.interval,r=Date.now();if(t.length=u?(t.push(r),0):(t.push(u),u-r)}};var r6=new ft({limit:7,interval:1250}),u6={tencent:new ft({limit:3,interval:1350}),baidu:new ft({limit:1,interval:1550}),strict:new ft({limit:1,interval:1050}),d:new ft({limit:1,interval:1050}),youdao:new ft({limit:5,interval:1050}),you:new ft({limit:5,interval:1050}),cai:new ft({limit:5,interval:1050}),google:new ft({limit:10,interval:1050}),deepl:new ft({limit:10,interval:1050}),transmart:new ft({limit:30,interval:1050}),papago:new ft({limit:3,interval:1150}),openai:new ft({limit:10,interval:1300}),chatgpt:new ft({limit:1,interval:1350})};function Wr(e){return u6[e]||r6}async function Vd(e){if(Je()){let n=wo();if(n)try{return(await n.ask("getRateLimitDelay",{key:e})).value}catch(a){return N.error("can not comunicate with root frame, use strict limiter",a),Wr("strict").getDelay()}else return Wr("strict").getDelay()}else return Wr(e).getDelay()}async function Yd(e,t){if(!Je()){let a=Wr(e);t&&a.setOptions(t)}}async function Jd(e){let t=e.key;return{value:Wr(t).getDelay()}}var be=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=200;translationOptions;constructor(t,n,a){this.serviceConfig=t,this.generalConfig=n,this.translationOptions=a}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getDefaultRateLimit(){return null}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,a){if(t.sentences.length===0)return{sentences:[]};let{sentences:r}=t,u=[],o=null,i=new Set;for(let h of r)h.from&&h.from!=="auto"&&i.add(h.from);let s=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(s=this.serviceConfig.maxTextLengthPerRequest);let c=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(c=this.serviceConfig.maxTextGroupLengthPerRequest);try{u=gd(r,s,c)}catch(h){if(a)for(let T=0;Th));let l=[],p=[],f=(h,T,b)=>{let C=T.translatedTexts[0];p[h]||(p[h]=T,p[h].translatedTexts=Array(T.sentenceTotalParts).fill(null)),p[h].translatedTexts[T.partIndex]=C;let w=p[h],O=0;for(let B=0;B{let w=await Vd(this.translationOptions.translationService);await kr(w||0);let O=T.from;if(T.fromByClient&&T.fromByClient!=="auto"&&(O=T.fromByClient),this.isSupportList)return{...await this.translateList({text:T.tempSentences.map(y=>y.text),from:O,to:T.to,url:b,options:n}),sourceTempSentences:T.tempSentences};{let B=w4;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(B=this.serviceConfig.translationTextSeparator);let y=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(y=this.serviceConfig.newlinePlaceholderDelimiters);let A="";y&&y.length>=2?A=T.tempSentences.map((F,D)=>D===T.tempSentences.length-1?F.text:F.text+y[0]+(D+1)+y[1]).join(""):A=T.tempSentences.map(F=>F.text).join(B);let P=await this.translate({text:A,from:O,to:T.to,url:b,options:n}),{text:M}=P,x=[];if(y&&y.length>=2){let F=`${y[0]}\\d+${y[1]}`;y&&y.length>=3&&(F=y[2]);let D=new RegExp(F,"g");x=M.split(D)}else x=M.split(B);let R=[];if(x.length>T.tempSentences.length){for(let F=0;F{let{text:O,sourceTempSentences:B}=w;for(let y=0;y{if(a){for(let O=0;O({...h.sentence,text:h.translatedTexts.join("")}))}}detectLanguageLocally(t){return Qe({text:t,minLength:18,pageLangs:[pt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}};g();g();var Ya="input is invalid type",Is=typeof window=="object",na=Is?window:{};na.JS_SHA256_NO_WINDOW&&(Is=!1);var o6=!Is&&typeof self=="object",i6=!na.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;i6?na=global:o6&&(na=self);var xw=!na.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,Tw=typeof define=="function"&&define.amd,$r=!na.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",le="0123456789abcdef".split(""),s6=[-2147483648,8388608,32768,128],bn=[24,16,8,0],vo=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],ko=["hex","array","digest","arrayBuffer"],ct=[];(na.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});$r&&(na.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var Qd=function(e,t){return function(n){return new dt(t,!0).update(n)[e]()}},Xd=function(e){var t=Qd("hex",e);t.create=function(){return new dt(e)},t.update=function(r){return t.create().update(r)};for(var n=0;n>2]|=e[r]<>2]|=a<>2]|=(192|a>>6)<>2]|=(128|a&63)<=57344?(i[u>>2]|=(224|a>>12)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<>2]|=(240|a>>18)<>2]|=(128|a>>12&63)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<=64?(this.block=i[16],this.start=u-64,this.hash(),this.hashed=!0):this.start=u}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};dt.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=s6[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};dt.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,s=this.blocks,c,l,p,f,m,d,h,T,b,C,w;for(c=16;c<64;++c)m=s[c-15],l=(m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3,m=s[c-2],p=(m>>>17|m<<15)^(m>>>19|m<<13)^m>>>10,s[c]=s[c-16]+l+s[c-7]+p<<0;for(w=t&n,c=0;c<64;c+=4)this.first?(this.is224?(T=300032,m=s[0]-1413257819,i=m-150054599<<0,a=m+24177077<<0):(T=704751109,m=s[0]-210244248,i=m-1521486534<<0,a=m+143694565<<0),this.first=!1):(l=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),p=(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7),T=e&t,f=T^e&n^w,h=r&u^~r&o,m=i+p+h+vo[c]+s[c],d=l+f,i=a+m<<0,a=m+d<<0),l=(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10),p=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),b=a&e,f=b^a&t^T,h=i&r^~i&u,m=o+p+h+vo[c+1]+s[c+1],d=l+f,o=n+m<<0,n=m+d<<0,l=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),p=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),C=n&a,f=C^n&e^b,h=o&i^~o&r,m=u+p+h+vo[c+2]+s[c+2],d=l+f,u=t+m<<0,t=m+d<<0,l=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),p=(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7),w=t&n,f=w^t&a^C,h=u&o^~u&i,m=r+p+h+vo[c+3]+s[c+3],d=l+f,r=e+m<<0,e=m+d<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+a<<0,this.h4=this.h4+r<<0,this.h5=this.h5+u<<0,this.h6=this.h6+o<<0,this.h7=this.h7+i<<0};dt.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,s=le[e>>28&15]+le[e>>24&15]+le[e>>20&15]+le[e>>16&15]+le[e>>12&15]+le[e>>8&15]+le[e>>4&15]+le[e&15]+le[t>>28&15]+le[t>>24&15]+le[t>>20&15]+le[t>>16&15]+le[t>>12&15]+le[t>>8&15]+le[t>>4&15]+le[t&15]+le[n>>28&15]+le[n>>24&15]+le[n>>20&15]+le[n>>16&15]+le[n>>12&15]+le[n>>8&15]+le[n>>4&15]+le[n&15]+le[a>>28&15]+le[a>>24&15]+le[a>>20&15]+le[a>>16&15]+le[a>>12&15]+le[a>>8&15]+le[a>>4&15]+le[a&15]+le[r>>28&15]+le[r>>24&15]+le[r>>20&15]+le[r>>16&15]+le[r>>12&15]+le[r>>8&15]+le[r>>4&15]+le[r&15]+le[u>>28&15]+le[u>>24&15]+le[u>>20&15]+le[u>>16&15]+le[u>>12&15]+le[u>>8&15]+le[u>>4&15]+le[u&15]+le[o>>28&15]+le[o>>24&15]+le[o>>20&15]+le[o>>16&15]+le[o>>12&15]+le[o>>8&15]+le[o>>4&15]+le[o&15];return this.is224||(s+=le[i>>28&15]+le[i>>24&15]+le[i>>20&15]+le[i>>16&15]+le[i>>12&15]+le[i>>8&15]+le[i>>4&15]+le[i&15]),s};dt.prototype.toString=dt.prototype.hex;dt.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,s=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,a>>24&255,a>>16&255,a>>8&255,a&255,r>>24&255,r>>16&255,r>>8&255,r&255,u>>24&255,u>>16&255,u>>8&255,u&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||s.push(i>>24&255,i>>16&255,i>>8&255,i&255),s};dt.prototype.array=dt.prototype.digest;dt.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function Ao(e,t,n){var a,r=typeof e;if(r==="string"){var u=[],o=e.length,i=0,s;for(a=0;a>6,u[i++]=128|s&63):s<55296||s>=57344?(u[i++]=224|s>>12,u[i++]=128|s>>6&63,u[i++]=128|s&63):(s=65536+((s&1023)<<10|e.charCodeAt(++a)&1023),u[i++]=240|s>>18,u[i++]=128|s>>12&63,u[i++]=128|s>>6&63,u[i++]=128|s&63);e=u}else if(r==="object"){if(e===null)throw new Error(Ya);if($r&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!$r||!ArrayBuffer.isView(e)))throw new Error(Ya)}else throw new Error(Ya);e.length>64&&(e=new dt(t,!0).update(e).array());var c=[],l=[];for(a=0;a<64;++a){var p=e[a]||0;c[a]=92^p,l[a]=54^p}dt.call(this,t,n),this.update(l),this.oKeyPad=c,this.inner=!0,this.sharedMemory=n}Ao.prototype=new dt;Ao.prototype.finalize=function(){if(dt.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();dt.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),dt.prototype.finalize.call(this)}};var Ja=Xd();Ja.sha256=Ja;Ja.sha224=Xd(!0);Ja.sha256.hmac=em();Ja.sha224.hmac=em(!0);var tm=Ja;var nm=tm.sha256;function yn(e){return Promise.resolve(nm(e))}function So(e){return Array.from(new Uint8Array(e)).map(a=>a.toString(16).padStart(2,"0")).join("")}function aa(e,t){let n=nm.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function am(e,t){let n=await aa(e,t);return So(n)}async function Do(e,t){let n=l6(t),a=await aa(e,n);return So(a)}function l6(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var rm=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Kr=class e extends be{static langMap=new Map(rm);static langMapReverse=new Map(rm.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),a=`${t.getUTCMonth()+1}`.padStart(2,"0"),r=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${a}-${r}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.secretId||!t.secretKey)throw new Error("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}async translate(t){let{text:n,from:a,to:r}=t,u=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceText:n,Target:e.langMap.get(r)||r}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:u,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||a,to:e.langMapReverse.get(o.Response.Target)||r}}async translateList(t){let{text:n,from:a,to:r}=t,u=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceTextList:n,Target:e.langMap.get(r)||r}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:u,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||a,to:e.langMapReverse.get(o.Response.Target)||r}}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:u,version:o}){let i=`${u}.tencentcloudapi.com`,s=new Date,c=`${new Date().valueOf()}`.slice(0,10),l=["POST","/","","content-type:application/json; charset=utf-8",`host:${i}`,"","content-type;host",await yn(r)].join(` +`;continue}else if(h.length>t){let b=[];Ls(h,t,b);for(let C=0;C0&&d{let i=e.lastIndexOf(o,t);return i>u?i:u},-1);if(r===-1){let u=e.slice(0,t);if(u&&!u.trim())return;n.push({text:u,prefix:"",suffix:""}),e.length>t&&Ls(e.slice(t),t,n)}else{let u=e.slice(0,r+1);if(u&&u.trim()==="")return;u.startsWith(" ")?n.push({text:u.slice(1),prefix:" ",suffix:""}):n.push({text:u,prefix:"",suffix:""}),r+10){l.forEach(d=>{c.length>0&&d.providers&&d.providers.length>0&&!d.providers.includes(s)||(d.optional?f.push(d):p.push(d))});let m=f.concat(p).filter(d=>d.required);if(m.length>0){for(let d of m)if(!r[d.name]){i=!1;break}}}return{...a,id:t,selected:n[e]===t,ok:i,currentProvider:s,config:r,providers:a.providers||[],props:a.props||[],allProps:l,optionalProps:f,explicitProps:p}}var fd=(e,t)=>{let{config:n}=e,a=n.alpha,r=n.beta,u=n.canary,o=n.debug,i=e.user,s=tn(i);return Object.keys(Bn).filter(l=>{let p=Bn[l];if(l.startsWith("mock"))return o?!0:l===e.config[t];if(l===e.config[t])return!0;if(l==="openai"&&Rt())return e.config.showOpenaiOnSafari||s?!0:!!(r||a||u||s);let f=!!p.canary,m=!!p.alpha,d=!!p.beta;return l===e[t]||f&&u||m&&(a||u)||d&&(r||a||u)?!0:!m&&!d&&!f}).map(l=>Ms(t,l,e))};function hn(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}var Ka=[];async function ao(e,t){return await new Promise((n,a)=>{let r=e,u=1,o=indexedDB.open(r,u);o.onsuccess=i=>{n(o.result)},o.onerror=i=>{a()},o.onupgradeneeded=i=>{let s=o.result,c=t||"cache";s.createObjectStore(c,{keyPath:"key"})}})}async function hd(e){let t=`${J}-${e.service}@${e.from}->${e.to}`;return await $1(t,e)}async function bd(e){let t=Zn(e.originalText),n=`${J}-${e.service}@${e.from}->${e.to}`;return await W1(n,t)}async function W1(e,t){let n=await ao(e);return await new Promise((a,r)=>{if(!n)return r();let u="cache",i=n.transaction([u],"readonly").objectStore(u).get(t);i.onsuccess=s=>{n.close();let c=i.result;a(c)},i.onerror=s=>{n.close(),r()}})}async function $1(e,t){let n=await ao(e);return(await G1()).includes(e)||await K1(e),await new Promise(r=>{if(!n)return r(!1);let u="cache",i=n.transaction([u],"readwrite").objectStore(u).put(t);i.onsuccess=s=>{n.close(),r(!0)},i.onerror=s=>{n.close(),r(!1)}})}async function K1(e){let t="cache_list",n=await ao(J+"-cacheList",t),r=n.transaction([t],"readwrite").objectStore(t).put({key:e});r.onsuccess=u=>{n.close(),Ka.push(e)},r.onerror=u=>{n.close()}}async function G1(){if(Ka&&Ka.length>0)return Ka;let e=await ao(J+"-cacheList","cache_list");return Ka=await new Promise(t=>{let n="cache_list",r=e.transaction([n],"readonly").objectStore(n).getAllKeys();r.onsuccess=u=>{e.close(),t(r.result)},r.onerror=u=>{e.close(),t([])}}),Ka}g();g();var Fs="Original";function We(){return Fs}function Dt(e){Fs=e,yd(Fs)}g();var xd="auto",ro="auto",Ed="auto";function Td(e){xd=e}function an(e){ro=e}function pt(){return ro!=="auto"?ro:Ed!=="auto"?Ed:xd}function uo(){return ro}var Ga=async function(e,t){let{method:n,data:a}=e,r=await Sd(),u=Date.now();if(N.debug(`content script received message: ${n}`,a||" "),n==="translateTheWholePage")await _s(a),Ue(fn,u);else if(n==="translateTheMainPage")await go(a),Ue(fn,u);else if(n==="translateToThePageEndImmediately")await Ad(a),Ue(fn,u);else if(n==="toggleTranslatePage")await lo(a),Ue(fn,u);else if(n==="toggleTranslateTheWholePage")await kd(a),Ue(fn,u);else if(n==="toggleTranslateTheMainPage")await wd(a),Ue(fn,u);else if(n==="toggleOnlyTransation")await po(a),Ue(fn,u);else if(n==="translatePage")await rn(r,a),Ue(fn,u);else if(n==="toggleTranslationMask")await mo(a);else if(n==="restorePage")Ca();else if(n==="setCurrentPageLanguageByClient")an(a);else if(n==="retryFailedParagraphs")co();else if(n==="switchTranslationMode"){if(r.rule.isPdf)return;a&&a.mode&&vd(a.mode)}},V1=function(e,t){let{method:n,data:a}=e;if(N.debug(`content script received sync message: ${n}`,a||" "),n==="ping")return"pong";if(n==="getPageStatus")return We();if(n==="getCurrentPageLanguage"){let r=pt();return Ps().catch(u=>{N.warn("detectCurrentPageLanguage failed",u)}),r}},oo,io;function Cd(){let e=so();Je()||Y1(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function so(){return oo||(oo=new Gn("content_script",!1).getConnection("main",Ga),oo)}function Y1(){return io||(io=new Gn("content_script",!1).getConnection("main_sync",V1,{sync:!0}),io)}async function Ge(e){return await so().sendMessage("background:main",e)}function oe(e){return ku()?Yu({method:"request",data:e}):pe()||vu()?(e.fetchPolyfill=globalThis.GM_fetch,xa(e)):Ge({method:"fetch",data:e})}function Lt(){return pe()?Jn():Ge({method:"getConfig"})}function un(e){return pe()?As(e):Ge({method:"setUserConfig",data:e})}function on(){return pe()?ks():Ge({method:"getUserConfig"})}function Dd(){return pe()?Yn():Ge({method:"getLocalConfig"})}function fo(e){return pe()?An(e):Ge({method:"setLocalConfig",data:e})}function Ld(e){return pe()?id(e):Ge({method:"setBuildinConfig",data:e})}async function Qe(e){if(e.text){let n=wu(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(pe()||Rt()){let n=vr(e.text,e.minLength,e.pageLangs);return Promise.resolve(n)}let t=await Ge({method:"detectLanguage",data:e});return Promise.resolve(t)}function Md(){return Ge({method:"detectTabLanguage"})}function yd(e){if(pe()){let n=new CustomEvent(ju,{detail:e});document.dispatchEvent(n);return}so().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(n=>{})}function Fd(e){return pe()?bd(e):Ge({method:"queryParagraphCache",data:e})}async function Pd(e){if(pe()){await hd(e);return}return Ge({method:"setParagraphCache",data:e})}async function _d(){if(pe())return Promise.resolve();await Ge({method:"mockRequest"})}function Va(e=!1,t=""){return pe()?(ue.runtime.openOptionsPage(e,t),Promise.resolve()):Ge({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function Bd(e=""){return pe()||Rt()?Re().OPTIONS_URL:ue.runtime.getURL("options.html")}function Rd(e=""){return ue&&ue.runtime&&ue.runtime.getURL?ue.runtime.getURL("options.html"):""}function ho(e=!1){return pe()?(ue.extra.openAboutPage(e),Promise.resolve()):Ge({method:"openAboutPage"})}function Od(e=!1){return pe()?(ue.extra.openSearchEnhancement(e),Promise.resolve()):Ge({method:"openSearchEnhancement"})}function bo(e){return pe()?(ue.extra.openInTab(e),Promise.resolve()):Ge({method:"openInTab",data:e})}function yo(e=!1){return pe()?(ue.extra.openEbookViewerPage(e),Promise.resolve()):Ge({method:"openEbookViewerPage"})}function Id(e=!1){return pe()?Promise.resolve():Ge({method:"openHtmlViewerPage"})}function Eo(e=!1){return pe()?(ue.extra.openEbookBuilderPage(e),Promise.resolve()):Ge({method:"openEbookBuilderPage"})}function xo(e){Rt()}function Bs(e=!1){return pe()?(ue.extra.openPdfViewerPage(e),Promise.resolve()):Ge({method:"openPdfViewerPage"})}function Nd(e=!1){return pe()?(ue.extra.openSubtitleBuilderPage(e),Promise.resolve()):Ge({method:"openSubtitleBuilderPage"})}function Rs(e){return pe()?Promise.resolve():Ge({method:"setBadge",data:{text:e}})}function jd(){return pe()?(N.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):Ge({method:"autoSyncLatestConfig"})}var Ud="G-MKMD9LWFTR";async function $e(e,t,n){try{let a=Re();if(a.INSTALL_FROM==="firefox_store")return;let u=pe(),o=Je(),i=a.PROD==="1",s=`report_${e}`,c=e.endsWith("_daily");if(c){if(o)return;let P=await On(s,0),M=To(new Date(P)),x=Date.now(),R=To(new Date(x));if(M===R)return;await Z4(s,x)}else if(!n.config.telemetry)return;let l="sitc4WmvShWYwfU0dANM3Q",p=await St("fakeUserId","");p||(p=await On("fakeUserId",""),p&&await Ue("fakeUserId",p));let f=nn(),m=new Date,d=await St("installedAt","");d||(d=await On("installedAt",""),d&&await Ue("installedAt",d)),p?d||(d=new Date(0).toISOString(),await Ue("installedAt",d)):(p=J1(32),await Ue("fakeUserId",p)),d||(d=m.toISOString(),await Ue("installedAt",d));let h=new Date(d),T=To(h),b=To(m),C=T===b,w=m.getTime()-h.getTime()<7*24*60*60*1e3,I=`https://www.google-analytics.com/mp/collect?measurement_id=${Ud}&api_secret=${l}`;i||(I=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${Ud}&api_secret=${l}`);let B=Ua.parse(window.navigator.userAgent),y=t.map(P=>{let M=P.params||{};if(B.os&&(M.os_name=B.os.name||"unknown",M.os_version=B.os.version||"unknown",M.os_version_name=B.os.versionName||"unknown"),B.browser&&(M.browser_name=B.browser.name||"unknown",M.browser_version=B.browser.version||"unknown"),B.platform&&(M.platform_type=B.platform.type||"unknown"),B.engine&&(M.engine_name=B.engine.name||"unknown",M.engine_version=B.engine.version||"unknown"),n.translationService&&(M.translation_service||(M.translation_service=n.translationService),n.config.translationServices&&n.config.translationServices[n.translationService]&&(n.config.translationServices[n.translationService].provider&&(M.translation_service_provider=n.config.translationServices[n.translationService].provider),n.translationService==="openai"&&n.config.translationServices[n.translationService].provider==="custom"&&(n.config.translationServices[n.translationService].apiUrl?n.config.translationServices[n.translationService].apiUrl.startsWith("https://api.openai.com/")?M.openai_is_official="1":M.openai_is_official="0":M.openai_is_official="1"))),n.targetLanguage&&(M.target_language=n.targetLanguage),n.config.interfaceLanguage&&(M.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?M.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":M.enable_default_always_translated_urls="0",f&&(M.version=f),n.config.enableInputTranslation?M.enable_input_translation=n.config.enableInputTranslation?"1":"0":M.enable_input_translation="0",n.config.translationTheme&&(M.translation_theme=n.config.translationTheme),n.config.alpha&&(M.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?M.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):M.always_translate_languages="none",a.INSTALL_FROM&&(M.install_from=a.INSTALL_FROM),n.config.beta&&(M.beta=n.config.alpha.toString()),n.config.translationArea&&(M.translation_area=n.config.translationArea),n.rule&&n.rule.enableSearchEnhancement!==void 0&&(M.enable_search_enhancement=n.rule.enableSearchEnhancement?"1":"0"),T&&(M.install_day=Q1(h)),n.user){let R=Y4(n.user);R&&Object.keys(R).forEach(F=>{M[F]=R[F]})}else M.user_type="anonymous";n.config.translationMode&&(M.translation_mode=n.config.translationMode),M.userscript=u.toString(),C?M.is_new_user_today="1":M.is_new_user_today="0",w?M.is_new_user_this_week="1":M.is_new_user_this_week="0",n.config.tempTranslateDomainMinutes?M.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():M.temp_translate_domain_minutes="0";let x="html";if(n.rule.isEbook?x="ebookReader":n.rule.isPdf?x="pdfReader":n.rule.isEbookBuilder?x="ebookBuilder":n.rule.isSubtitleBuilder&&(x="subtitleBuilder"),M.page_type=x,o?M.main_frame=0:M.main_frame=1,!c){let R=n.url;try{let F=new URL(R);M.site_host=F.hostname}catch{M.site_host="unknown"}n.sourceLanguage&&(M.source_language=n.sourceLanguage)}return{...P,params:M}}),S=await oe({responseType:"text",url:I,method:"POST",body:JSON.stringify({client_id:p,user_id:p,events:y})})}catch{}}function J1(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;rt.removeEventListener("message",n)),e.length=0}function t6(e,t,n,a){return new Promise(r=>{let u=o=>{let i=o.data;X1(t,n,i)&&i.id===a&&(e.removeEventListener("message",u),r(i.response))};e.addEventListener("message",u)})}function n6(e,t,n,a){let r=u=>{let o=u.data;$d(t,"tell",n,o)&&a(o.body)};return e.addEventListener("message",r),[e,r]}function zd(e,t,n,a,r,u){let o=async i=>{let s=i.data;if($d(n,"ask",a,s)){let c=await u(s.body);t=i.source,t.postMessage(Z1(n,a,s.id,c),i.origin)}};return e.addEventListener("message",o),[e,o]}function a6(e,t,n,a,r){let u=Math.random().toString();return e.postMessage(Wd(t,"tell",n,u,a),r)}async function Hd(e,t,n,a,r,u,o){let i=Math.random().toString(),s=new Promise(async(c,l)=>{let p=setTimeout(()=>l(new Error(`Failed to get response within ${o}ms`)),o),f=await t6(e,n,a,i);clearTimeout(p),c(f)});return t.postMessage(Wd(n,"ask",a,i,r),u),s}var ta=class e{constructor(t,n,a=window,r="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=a;this.targetOrigin=r;zd(a,n,this.getSystemProtocol("ping"),"ping",r,()=>Promise.resolve({}))}static async connect(t,n=10,a=500){for(let r=0;r<=n;r++)try{return await t.ping({timeout:a}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*a}ms`)}static parent(t,n,a="*",r=window){let u=n.contentWindow;if(ea(u))return new e(t,u,r,a);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:a=window,targetWindow:r=window.parent}={}){return new e(t,r,a,n)}static rootIframe(t,n="*",{thisWindow:a=window}={}){return new e(t,null,a,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await Hd(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(n6(this.thisWindow,this.protocol,t,n))}tell(t,n){a6(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(zd(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,a=1e4){if(this.targetWindow)return Hd(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,a);throw new Error("target window is requried")}destroy(){e6(this.listeners)}};var Kd;async function Gd(){if(Je()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=ta.iframe(Wu,"*",{targetWindow:t});Kd=n,await ta.connect(n).catch(a=>{N.error("connect with parent frame error",a)})}}function Co(){return Kd}g();function Vd(e,t){let n=t.matches||[],a=t.excludeMatches||[];if(a&&!Array.isArray(a)&&(a=[a]),n&&!Array.isArray(n)&&(n=[n]),a.length>0){if(a.includes(e)||a.includes(""))return!1;for(let r of a)if(r.includes("*")&&new RegExp(r).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let r of n)if(r.includes("*")&&new RegExp(r).test(e))return!0}return!1}g();g();g();g();g();var ft=class{options;strictTicks=[];constructor(t){this.options=t,this.setOptions(t)}setOptions(t){t&&(t.interval!==void 0&&(this.options.interval=Number(t.interval)),t.limit!==void 0&&(this.options.limit=Number(t.limit)))}wait(){return new Promise((t,n)=>{setTimeout(t,this.getDelay())})}getDelay(){let t=this.strictTicks,n=this.options.limit,a=this.options.interval,r=Date.now();if(t.length=u?(t.push(r),0):(t.push(u),u-r)}};var r6=new ft({limit:7,interval:1250}),u6={tencent:new ft({limit:3,interval:1350}),baidu:new ft({limit:1,interval:1550}),strict:new ft({limit:1,interval:1050}),d:new ft({limit:1,interval:1050}),youdao:new ft({limit:5,interval:1050}),you:new ft({limit:5,interval:1050}),cai:new ft({limit:5,interval:1050}),google:new ft({limit:10,interval:1050}),deepl:new ft({limit:10,interval:1050}),transmart:new ft({limit:30,interval:1050}),papago:new ft({limit:3,interval:1150}),openai:new ft({limit:10,interval:1300}),chatgpt:new ft({limit:1,interval:1350})};function Wr(e){return u6[e]||r6}async function Yd(e){if(Je()){let n=Co();if(n)try{return(await n.ask("getRateLimitDelay",{key:e})).value}catch(a){return N.error("can not comunicate with root frame, use strict limiter",a),Wr("strict").getDelay()}else return Wr("strict").getDelay()}else return Wr(e).getDelay()}async function Jd(e,t){if(!Je()){let a=Wr(e);t&&a.setOptions(t)}}async function Qd(e){let t=e.key;return{value:Wr(t).getDelay()}}var be=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=200;translationOptions;constructor(t,n,a){this.serviceConfig=t,this.generalConfig=n,this.translationOptions=a}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getDefaultRateLimit(){return null}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,a){if(t.sentences.length===0)return{sentences:[]};let{sentences:r}=t,u=[],o=null,i=new Set;for(let h of r)h.from&&h.from!=="auto"&&i.add(h.from);let s=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(s=this.serviceConfig.maxTextLengthPerRequest);let c=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(c=this.serviceConfig.maxTextGroupLengthPerRequest);try{u=pd(r,s,c)}catch(h){if(a)for(let T=0;Th));let l=[],p=[],f=(h,T,b)=>{let C=T.translatedTexts[0];p[h]||(p[h]=T,p[h].translatedTexts=Array(T.sentenceTotalParts).fill(null)),p[h].translatedTexts[T.partIndex]=C;let w=p[h],I=0;for(let B=0;B{let w=await Yd(this.translationOptions.translationService);await kr(w||0);let I=T.from;if(T.fromByClient&&T.fromByClient!=="auto"&&(I=T.fromByClient),this.isSupportList)return{...await this.translateList({text:T.tempSentences.map(y=>y.text),from:I,to:T.to,url:b,options:n}),sourceTempSentences:T.tempSentences};{let B=w4;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(B=this.serviceConfig.translationTextSeparator);let y=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(y=this.serviceConfig.newlinePlaceholderDelimiters);let S="";y&&y.length>=2?S=T.tempSentences.map((F,D)=>D===T.tempSentences.length-1?F.text:F.text+y[0]+(D+1)+y[1]).join(""):S=T.tempSentences.map(F=>F.text).join(B);let P=await this.translate({text:S,from:I,to:T.to,url:b,options:n}),{text:M}=P,x=[];if(y&&y.length>=2){let F=`${y[0]}\\d+${y[1]}`;y&&y.length>=3&&(F=y[2]);let D=new RegExp(F,"g");x=M.split(D)}else x=M.split(B);let R=[];if(x.length>T.tempSentences.length){for(let F=0;F{let{text:I,sourceTempSentences:B}=w;for(let y=0;y{if(a){for(let I=0;I({...h.sentence,text:h.translatedTexts.join("")}))}}detectLanguageLocally(t){return Qe({text:t,minLength:18,pageLangs:[pt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}};g();g();var Ya="input is invalid type",Os=typeof window=="object",na=Os?window:{};na.JS_SHA256_NO_WINDOW&&(Os=!1);var o6=!Os&&typeof self=="object",i6=!na.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;i6?na=global:o6&&(na=self);var xw=!na.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,Tw=typeof define=="function"&&define.amd,$r=!na.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",le="0123456789abcdef".split(""),s6=[-2147483648,8388608,32768,128],bn=[24,16,8,0],wo=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],vo=["hex","array","digest","arrayBuffer"],ct=[];(na.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});$r&&(na.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var Zd=function(e,t){return function(n){return new dt(t,!0).update(n)[e]()}},em=function(e){var t=Zd("hex",e);t.create=function(){return new dt(e)},t.update=function(r){return t.create().update(r)};for(var n=0;n>2]|=e[r]<>2]|=a<>2]|=(192|a>>6)<>2]|=(128|a&63)<=57344?(i[u>>2]|=(224|a>>12)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<>2]|=(240|a>>18)<>2]|=(128|a>>12&63)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<=64?(this.block=i[16],this.start=u-64,this.hash(),this.hashed=!0):this.start=u}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};dt.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=s6[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};dt.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,s=this.blocks,c,l,p,f,m,d,h,T,b,C,w;for(c=16;c<64;++c)m=s[c-15],l=(m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3,m=s[c-2],p=(m>>>17|m<<15)^(m>>>19|m<<13)^m>>>10,s[c]=s[c-16]+l+s[c-7]+p<<0;for(w=t&n,c=0;c<64;c+=4)this.first?(this.is224?(T=300032,m=s[0]-1413257819,i=m-150054599<<0,a=m+24177077<<0):(T=704751109,m=s[0]-210244248,i=m-1521486534<<0,a=m+143694565<<0),this.first=!1):(l=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),p=(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7),T=e&t,f=T^e&n^w,h=r&u^~r&o,m=i+p+h+wo[c]+s[c],d=l+f,i=a+m<<0,a=m+d<<0),l=(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10),p=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),b=a&e,f=b^a&t^T,h=i&r^~i&u,m=o+p+h+wo[c+1]+s[c+1],d=l+f,o=n+m<<0,n=m+d<<0,l=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),p=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),C=n&a,f=C^n&e^b,h=o&i^~o&r,m=u+p+h+wo[c+2]+s[c+2],d=l+f,u=t+m<<0,t=m+d<<0,l=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),p=(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7),w=t&n,f=w^t&a^C,h=u&o^~u&i,m=r+p+h+wo[c+3]+s[c+3],d=l+f,r=e+m<<0,e=m+d<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+a<<0,this.h4=this.h4+r<<0,this.h5=this.h5+u<<0,this.h6=this.h6+o<<0,this.h7=this.h7+i<<0};dt.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,s=le[e>>28&15]+le[e>>24&15]+le[e>>20&15]+le[e>>16&15]+le[e>>12&15]+le[e>>8&15]+le[e>>4&15]+le[e&15]+le[t>>28&15]+le[t>>24&15]+le[t>>20&15]+le[t>>16&15]+le[t>>12&15]+le[t>>8&15]+le[t>>4&15]+le[t&15]+le[n>>28&15]+le[n>>24&15]+le[n>>20&15]+le[n>>16&15]+le[n>>12&15]+le[n>>8&15]+le[n>>4&15]+le[n&15]+le[a>>28&15]+le[a>>24&15]+le[a>>20&15]+le[a>>16&15]+le[a>>12&15]+le[a>>8&15]+le[a>>4&15]+le[a&15]+le[r>>28&15]+le[r>>24&15]+le[r>>20&15]+le[r>>16&15]+le[r>>12&15]+le[r>>8&15]+le[r>>4&15]+le[r&15]+le[u>>28&15]+le[u>>24&15]+le[u>>20&15]+le[u>>16&15]+le[u>>12&15]+le[u>>8&15]+le[u>>4&15]+le[u&15]+le[o>>28&15]+le[o>>24&15]+le[o>>20&15]+le[o>>16&15]+le[o>>12&15]+le[o>>8&15]+le[o>>4&15]+le[o&15];return this.is224||(s+=le[i>>28&15]+le[i>>24&15]+le[i>>20&15]+le[i>>16&15]+le[i>>12&15]+le[i>>8&15]+le[i>>4&15]+le[i&15]),s};dt.prototype.toString=dt.prototype.hex;dt.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,u=this.h5,o=this.h6,i=this.h7,s=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,a>>24&255,a>>16&255,a>>8&255,a&255,r>>24&255,r>>16&255,r>>8&255,r&255,u>>24&255,u>>16&255,u>>8&255,u&255,o>>24&255,o>>16&255,o>>8&255,o&255];return this.is224||s.push(i>>24&255,i>>16&255,i>>8&255,i&255),s};dt.prototype.array=dt.prototype.digest;dt.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function ko(e,t,n){var a,r=typeof e;if(r==="string"){var u=[],o=e.length,i=0,s;for(a=0;a>6,u[i++]=128|s&63):s<55296||s>=57344?(u[i++]=224|s>>12,u[i++]=128|s>>6&63,u[i++]=128|s&63):(s=65536+((s&1023)<<10|e.charCodeAt(++a)&1023),u[i++]=240|s>>18,u[i++]=128|s>>12&63,u[i++]=128|s>>6&63,u[i++]=128|s&63);e=u}else if(r==="object"){if(e===null)throw new Error(Ya);if($r&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!$r||!ArrayBuffer.isView(e)))throw new Error(Ya)}else throw new Error(Ya);e.length>64&&(e=new dt(t,!0).update(e).array());var c=[],l=[];for(a=0;a<64;++a){var p=e[a]||0;c[a]=92^p,l[a]=54^p}dt.call(this,t,n),this.update(l),this.oKeyPad=c,this.inner=!0,this.sharedMemory=n}ko.prototype=new dt;ko.prototype.finalize=function(){if(dt.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();dt.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),dt.prototype.finalize.call(this)}};var Ja=em();Ja.sha256=Ja;Ja.sha224=em(!0);Ja.sha256.hmac=tm();Ja.sha224.hmac=tm(!0);var nm=Ja;var am=nm.sha256;function yn(e){return Promise.resolve(am(e))}function Ao(e){return Array.from(new Uint8Array(e)).map(a=>a.toString(16).padStart(2,"0")).join("")}function aa(e,t){let n=am.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function rm(e,t){let n=await aa(e,t);return Ao(n)}async function So(e,t){let n=l6(t),a=await aa(e,n);return Ao(a)}function l6(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}var um=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Kr=class e extends be{static langMap=new Map(um);static langMapReverse=new Map(um.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),a=`${t.getUTCMonth()+1}`.padStart(2,"0"),r=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${a}-${r}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.secretId||!t.secretKey)throw new Error("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}async translate(t){let{text:n,from:a,to:r}=t,u=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceText:n,Target:e.langMap.get(r)||r}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:u,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetText,from:e.langMapReverse.get(o.Response.Source)||a,to:e.langMapReverse.get(o.Response.Target)||r}}async translateList(t){let{text:n,from:a,to:r}=t,u=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceTextList:n,Target:e.langMap.get(r)||r}),o=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:u,service:"tmt",version:"2018-03-21"});return{text:o.Response.TargetTextList,from:e.langMapReverse.get(o.Response.Source)||a,to:e.langMapReverse.get(o.Response.Target)||r}}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:u,version:o}){let i=`${u}.tencentcloudapi.com`,s=new Date,c=`${new Date().valueOf()}`.slice(0,10),l=["POST","/","","content-type:application/json; charset=utf-8",`host:${i}`,"","content-type;host",await yn(r)].join(` `),p=e.getUTCDate(s),f=["TC3-HMAC-SHA256",c,`${p}/${u}/tc3_request`,await yn(l)].join(` -`),m=await am(p,`TC3${n}`),d=await Do(u,m),h=await Do("tc3_request",d),T=await Do(f,h),b=await oe({retry:1,url:`https://${u}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:i,"X-TC-Action":a,"X-TC-Timestamp":c,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${p}/${u}/tc3_request, SignedHeaders=content-type;host, Signature=${T}`},body:r});if(b instanceof Error)throw b;if(b.Response&&b.Response.Error&&b.Response.Error.Message)throw new Error(b.Response.Error.Message);return b}};g();var um=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],c6={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},Gr=class e extends be{static langMap=new Map(um);static langMapReverse=new Map(um.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,a){super(t,n,a)}async translate(t){let{text:n,from:a,to:r}=t,u=new URLSearchParams({source:a,target:r,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await oe({url:`https://wxapp.translator.qq.com/api/translate?${u}`,retry:1,method:"GET",headers:c6});return{text:o.targetText,from:e.langMapReverse.get(o.source)||a,to:e.langMapReverse.get(o.target)||r}}};g();var om=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],Ca=class e extends be{static langMap=new Map(om);static langMapReverse=new Map(om.map(([t,n])=>[n,t]));isSupportList=!1;apiUrl="https://translate.googleapis.com/translate_a/single";constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.apiUrl=jt(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let u=e.langMap.get(a)||"auto",o=e.langMap.get(r)||r,i=await this.fetchWithoutToken(n,u,o);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async translateXml(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let u=e.langMap.get(a)||"auto",o=e.langMap.get(r)||r,i=await this.fetchXmlWithoutToken(n,u,o);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async fetchXmlWithoutToken(t,n,a){let u="https://translate.googleapis.com/translate_a/t?"+new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}).toString();return{data:await oe({retry:2,url:u})}}async fetchWithoutToken(t,n,a){let r=new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}),u=this.apiUrl+"?"+r.toString();return{data:await oe({retry:2,url:u})}}};g();g();g();function d6(e,t){return t?e+(t-e%t):e}function m6(e,t){return e.split(t).length-1}function Os(e){let t=Date.now(),n=1;for(let a of e)n+=m6(a,"i");return d6(t,n)}function g6(e,t){return Math.floor(Math.random()*(t-e+1))+e}function Ns(){return g6(1e6,1e8)}g();g();g();var js="https://www2.deepl.com/jsonrpc",Us="auto",im=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];g();function p6(e=im){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function zs(e){return p6()[e.toLowerCase()]}var f6={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function h6(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function b6(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function y6(e,t,n,a,r,u,o){let i=Ns(),s=b6(a,n),c=[];t.forEach(f=>{c.push({text:f,requestAlternatives:3})}),s.id=i,s.params.texts=c,s.params.timestamp=Os(t);let l=await oe({retry:2,method:"POST",url:e,body:h6(s),headers:f6}),p={from:l.result.lang,to:n,text:[]};return l.result.texts.forEach(f=>{p.text.push(f.text)}),p}async function sm(e,t,n,a=Us,r,u,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:a,to:n}:y6(e,t,zs(n),zs(a)??"auto",r,u,o):{text:[],from:a,to:n}}var lm=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Qa=class e extends be{static langMap=new Map(lm);static langMapReverse=new Map(lm.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=js;constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.API_URL=jt(js,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:a,from:r}=t,u=await sm(this.API_URL,n,e.langMap.get(a)||a,e.langMap.get(r)||"auto");return{text:u.text,from:e.langMapReverse.get(u.from),to:e.langMapReverse.get(u.to)}}};g();var cm=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Hs="https://transmart.qq.com/api/imt",wa=class e extends be{static langMap=new Map(cm);static langMapReverse=new Map(cm.map(([t,n])=>[n,t]));clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,a){super(t,n,a),this.clientKey=e.getClientKey()}static getClientKey(){return btoa("transmart_crx_"+navigator.userAgent).slice(0,100)}async translate(t){let{text:n,to:a}=t,r=await this.detectLanguage(n),u=e.langMap.get(r)||r,o=e.langMap.get(a)||a;if(r===a)return{text:n,from:r,to:a};let i=Re(),s=t.url;i.INSTALL_FROM==="firefox_store"&&(s=dm());let l=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:u,orig_url:s},target:{lang:o}}),p=await oe({url:Hs,body:l,method:"POST",retry:2});if(p.header.ret_code!=="succ")throw new Error(p.message||p.header.ret_code);return{text:p.auto_translation,from:r||"auto",to:a}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:a,to:r}=t,u=Re(),o=t.url;if(u.INSTALL_FROM==="firefox_store"&&(o=dm()),a.length===1){let m=await this.translate({from:n,text:a[0],to:r,url:o,options:t.options});return{text:[m.text],from:m.from,to:m.to}}let s=await this.detectLanguage(a.join(` -`));if(s===r)return{text:a,from:s,to:r};let c=e.langMap.get(s)||s,l=e.langMap.get(r)||r,p=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:a,lang:c,orig_url:o},target:{lang:l},type:"plain"}),f=await oe({url:Hs,body:p,method:"POST"});if(f.header.ret_code!=="succ")throw new Error(f.message||f.header.ret_code);return{text:f.auto_translation,from:s||"auto",to:r}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return e.detectLanguageRemotelyByTransmart(t)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},a=await oe({url:Hs,method:"POST",body:JSON.stringify(n)});if(a.header.ret_code!=="succ")throw new Error(a.message||a.header.ret_code);let r=a.language,u=e.langMapReverse.get(r);return u||r}};function dm(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}g();g();function mm(){return Math.random()>=0}var Za=class extends be{isSupportList=!0;maxTextLength=1200;maxTextGroupLength=25;async translate(t){let{text:n}=t,a=n.match(/^\s*/)[0].length;return{text:n.slice(0,a)+"\u6A21\u62DF\uFF1A"+n.slice(a,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:a,to:r}=t;if(await Pd(),!mm())throw new Error("\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:a,to:r,text:[""]}:{from:a,to:r,text:n.map(u=>{let o=u.match(/^\s*/)[0].length;return u.slice(0,o)+"\u6A21\u62DF\uFF1A"+u.slice(o,-6)})}}};g();var pm=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],qs=new Map(pm),gm=new Map(pm.map(([e,t])=>[t,e])),Ws=class e extends be{static langMap=qs;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,a){if(super(t,n,a),!t||!t.apikey)throw new Error("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:a,to:r}=t,u=await oe({retry:2,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:qs.get(a)||"auto",target_lang:qs.get(r)||r})});if(u.status){let o=u;return o.result&&r=="zh-TW",{text:o.result,from:gm.get(o.source_lang),to:gm.get(o.target_lang)}}else throw new Error(u.msg)}},Lo=Ws;g();var fm=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Vr=new Map(fm),E6=new Map(fm.map(([e,t])=>[t,e])),$s=class extends be{static langMap=Vr;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl="https://deepl.immersivetranslate.com/v2/translate";immersiveTranslateDeeplTokenUrl="https://api.immersivetranslate.com";immersiveTranslateDeeplProApiUrl=Fn()||Pn()?"https://api2.immersivetranslate.com/deepl/translate":"https://test-api2.immersivetranslate.com/deepl/translate";provider="custom";splitor="";apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,a){if(super(t,n,a),t=t||{},this.splitor=t.qualityDelimiterBeta||"",t.provider==="pro")if(this.provider="pro",a.userToken){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=a.userToken,this.apiKeys=this.authKey.split(",").map(r=>r.trim())}else throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey.split(",").map(r=>r.trim()),!this.authKey)throw new Error("authKey are required");if(!this.authKey)throw new Error("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=jt(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=jt(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=jt(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=jt(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=jt(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getDefaultRateLimit(){if(this.provider==="pro"){if(this.serviceConfig&&this.serviceConfig.immersiveTranslateProLimit){let t=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(t)&&(t=15),{limit:t,interval:1050}}return{limit:15,interval:1050}}else return{limit:3,interval:1050}}async translateList(t){let{from:n,to:a,text:r}=t,u={source_lang:Vr.get(n)||"",target_lang:Vr.get(a)||a},o=this.getRandomKey(),i=new URLSearchParams(u);this.splitor?i.append("text",r.join(this.splitor)):r.forEach(d=>{i.append("text",d)});let s=i.toString(),c={text:this.splitor?[r.join(this.splitor)]:r,source_lang:Vr.get(n)||"auto",target_lang:Vr.get(a)||a},l=this.freeApiUrl;o.endsWith(":im")?l=this.immersiveTranslateApiUrl:o.endsWith(":fx")||(l=this.proApiUrl);let p;this.provider==="pro"?p=await oe({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:o,"Content-Type":"application/json"}}):o.startsWith("immersive_")?p=await oe({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:o,"Content-Type":"application/json"}}):p=await oe({retry:2,url:l,method:"POST",body:s,headers:{Authorization:"DeepL-Auth-Key "+o,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}});let{translations:f}=p,m=[];if(this.splitor?m=f[0]?.text.split(this.splitor).map(d=>d):m=f.map(d=>d.text),a==="zh-TW"){let d=this.serviceConfig||{};d&&d.googleApiUrl&&(d.apiUrl=d.googleApiUrl);let T=await new Ca(this.serviceConfig,this.generalConfig,this.translationOptions).translate({from:"zh-CN",to:"zh-TW",text:f.map(b=>b.text).join(` +`),m=await rm(p,`TC3${n}`),d=await So(u,m),h=await So("tc3_request",d),T=await So(f,h),b=await oe({retry:1,url:`https://${u}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:i,"X-TC-Action":a,"X-TC-Timestamp":c,"X-TC-Region":"ap-beijing","X-TC-Version":o,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${p}/${u}/tc3_request, SignedHeaders=content-type;host, Signature=${T}`},body:r});if(b instanceof Error)throw b;if(b.Response&&b.Response.Error&&b.Response.Error.Message)throw new Error(b.Response.Error.Message);return b}};g();var om=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],c6={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},Gr=class e extends be{static langMap=new Map(om);static langMapReverse=new Map(om.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,a){super(t,n,a)}async translate(t){let{text:n,from:a,to:r}=t,u=new URLSearchParams({source:a,target:r,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),o=await oe({url:`https://wxapp.translator.qq.com/api/translate?${u}`,retry:1,method:"GET",headers:c6});return{text:o.targetText,from:e.langMapReverse.get(o.source)||a,to:e.langMapReverse.get(o.target)||r}}};g();var im=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],wa=class e extends be{static langMap=new Map(im);static langMapReverse=new Map(im.map(([t,n])=>[n,t]));isSupportList=!1;apiUrl="https://translate.googleapis.com/translate_a/single";constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.apiUrl=Ut(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let u=e.langMap.get(a)||"auto",o=e.langMap.get(r)||r,i=await this.fetchWithoutToken(n,u,o);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async translateXml(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let u=e.langMap.get(a)||"auto",o=e.langMap.get(r)||r,i=await this.fetchXmlWithoutToken(n,u,o);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async fetchXmlWithoutToken(t,n,a){let u="https://translate.googleapis.com/translate_a/t?"+new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}).toString();return{data:await oe({retry:2,url:u})}}async fetchWithoutToken(t,n,a){let r=new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}),u=this.apiUrl+"?"+r.toString();return{data:await oe({retry:2,url:u})}}};g();g();g();function d6(e,t){return t?e+(t-e%t):e}function m6(e,t){return e.split(t).length-1}function Is(e){let t=Date.now(),n=1;for(let a of e)n+=m6(a,"i");return d6(t,n)}function g6(e,t){return Math.floor(Math.random()*(t-e+1))+e}function Ns(){return g6(1e6,1e8)}g();g();g();var js="https://www2.deepl.com/jsonrpc",Us="auto",sm=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];g();function p6(e=sm){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function zs(e){return p6()[e.toLowerCase()]}var f6={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function h6(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function b6(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function y6(e,t,n,a,r,u,o){let i=Ns(),s=b6(a,n),c=[];t.forEach(f=>{c.push({text:f,requestAlternatives:3})}),s.id=i,s.params.texts=c,s.params.timestamp=Is(t);let l=await oe({retry:2,method:"POST",url:e,body:h6(s),headers:f6}),p={from:l.result.lang,to:n,text:[]};return l.result.texts.forEach(f=>{p.text.push(f.text)}),p}async function lm(e,t,n,a=Us,r,u,o){return t?t&&t.length===1&&t[0]===""?{text:[""],from:a,to:n}:y6(e,t,zs(n),zs(a)??"auto",r,u,o):{text:[],from:a,to:n}}var cm=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Qa=class e extends be{static langMap=new Map(cm);static langMapReverse=new Map(cm.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=js;constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.API_URL=Ut(js,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:a,from:r}=t,u=await lm(this.API_URL,n,e.langMap.get(a)||a,e.langMap.get(r)||"auto");return{text:u.text,from:e.langMapReverse.get(u.from),to:e.langMapReverse.get(u.to)}}};g();var dm=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Hs="https://transmart.qq.com/api/imt",va=class e extends be{static langMap=new Map(dm);static langMapReverse=new Map(dm.map(([t,n])=>[n,t]));clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,a){super(t,n,a),this.clientKey=e.getClientKey()}static getClientKey(){return btoa("transmart_crx_"+navigator.userAgent).slice(0,100)}async translate(t){let{text:n,to:a}=t,r=await this.detectLanguage(n),u=e.langMap.get(r)||r,o=e.langMap.get(a)||a;if(r===a)return{text:n,from:r,to:a};let i=Re(),s=t.url;i.INSTALL_FROM==="firefox_store"&&(s=mm());let l=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:u,orig_url:s},target:{lang:o}}),p=await oe({url:Hs,body:l,method:"POST",retry:2});if(p.header.ret_code!=="succ")throw new Error(p.message||p.header.ret_code);return{text:p.auto_translation,from:r||"auto",to:a}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:a,to:r}=t,u=Re(),o=t.url;if(u.INSTALL_FROM==="firefox_store"&&(o=mm()),a.length===1){let m=await this.translate({from:n,text:a[0],to:r,url:o,options:t.options});return{text:[m.text],from:m.from,to:m.to}}let s=await this.detectLanguage(a.join(` +`));if(s===r)return{text:a,from:s,to:r};let c=e.langMap.get(s)||s,l=e.langMap.get(r)||r,p=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:a,lang:c,orig_url:o},target:{lang:l},type:"plain"}),f=await oe({url:Hs,body:p,method:"POST"});if(f.header.ret_code!=="succ")throw new Error(f.message||f.header.ret_code);return{text:f.auto_translation,from:s||"auto",to:r}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return e.detectLanguageRemotelyByTransmart(t)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},a=await oe({url:Hs,method:"POST",body:JSON.stringify(n)});if(a.header.ret_code!=="succ")throw new Error(a.message||a.header.ret_code);let r=a.language,u=e.langMapReverse.get(r);return u||r}};function mm(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}g();g();function gm(){return Math.random()>=0}var Za=class extends be{isSupportList=!0;maxTextLength=1200;maxTextGroupLength=25;async translate(t){let{text:n}=t,a=n.match(/^\s*/)[0].length;return{text:n.slice(0,a)+"\u6A21\u62DF\uFF1A"+n.slice(a,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:a,to:r}=t;if(await _d(),!gm())throw new Error("\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:a,to:r,text:[""]}:{from:a,to:r,text:n.map(u=>{let o=u.match(/^\s*/)[0].length;return u.slice(0,o)+"\u6A21\u62DF\uFF1A"+u.slice(o,-6)})}}};g();var fm=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],qs=new Map(fm),pm=new Map(fm.map(([e,t])=>[t,e])),Ws=class e extends be{static langMap=qs;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,a){if(super(t,n,a),!t||!t.apikey)throw new Error("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:a,to:r}=t,u=await oe({retry:2,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:qs.get(a)||"auto",target_lang:qs.get(r)||r})});if(u.status){let o=u;return o.result&&r=="zh-TW",{text:o.result,from:pm.get(o.source_lang),to:pm.get(o.target_lang)}}else throw new Error(u.msg)}},Do=Ws;g();var hm=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],Vr=new Map(hm),E6=new Map(hm.map(([e,t])=>[t,e])),$s=class extends be{static langMap=Vr;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl="https://deepl.immersivetranslate.com/v2/translate";immersiveTranslateDeeplTokenUrl="https://api.immersivetranslate.com";immersiveTranslateDeeplProApiUrl=Fn()||Pn()?"https://api2.immersivetranslate.com/deepl/translate":"https://test-api2.immersivetranslate.com/deepl/translate";provider="custom";splitor="";apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,a){if(super(t,n,a),t=t||{},this.splitor=t.qualityDelimiterBeta||"",t.provider==="pro")if(this.provider="pro",a.userToken){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=a.userToken,this.apiKeys=this.authKey.split(",").map(r=>r.trim())}else throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey.split(",").map(r=>r.trim()),!this.authKey)throw new Error("authKey are required");if(!this.authKey)throw new Error("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=Ut(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=Ut(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=Ut(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=Ut(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=Ut(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getDefaultRateLimit(){if(this.provider==="pro"){if(this.serviceConfig&&this.serviceConfig.immersiveTranslateProLimit){let t=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(t)&&(t=15),{limit:t,interval:1050}}return{limit:15,interval:1050}}else return{limit:3,interval:1050}}async translateList(t){let{from:n,to:a,text:r}=t,u={source_lang:Vr.get(n)||"",target_lang:Vr.get(a)||a},o=this.getRandomKey(),i=new URLSearchParams(u);this.splitor?i.append("text",r.join(this.splitor)):r.forEach(d=>{i.append("text",d)});let s=i.toString(),c={text:this.splitor?[r.join(this.splitor)]:r,source_lang:Vr.get(n)||"auto",target_lang:Vr.get(a)||a},l=this.freeApiUrl;o.endsWith(":im")?l=this.immersiveTranslateApiUrl:o.endsWith(":fx")||(l=this.proApiUrl);let p;this.provider==="pro"?p=await oe({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:o,"Content-Type":"application/json"}}):o.startsWith("immersive_")?p=await oe({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:o,"Content-Type":"application/json"}}):p=await oe({retry:2,url:l,method:"POST",body:s,headers:{Authorization:"DeepL-Auth-Key "+o,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}});let{translations:f}=p,m=[];if(this.splitor?m=f[0]?.text.split(this.splitor).map(d=>d):m=f.map(d=>d.text),a==="zh-TW"){let d=this.serviceConfig||{};d&&d.googleApiUrl&&(d.apiUrl=d.googleApiUrl);let T=await new wa(this.serviceConfig,this.generalConfig,this.translationOptions).translate({from:"zh-CN",to:"zh-TW",text:f.map(b=>b.text).join(` `),url:"",options:{}});T&&T.text&&(m=T.text.split(` -`))}return{text:m,from:f[0]&&E6.get(f[0].detected_source_language)||n,to:a}}},hm=$s;g();var x6=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],Ks=new Map(x6),Gs=class extends be{static langMap=Ks;APIKEY="";isSupportList=!1;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:a,to:r}=t,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:2,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:n,from:Ks.get(a)||a,to:Ks.get(r)||r,apikey:this.APIKEY})},i=await oe(o);if(i.tgt_text){let s=i.tgt_text;return s.endsWith(` -`)&&(s=s.slice(0,-1)),{text:s,from:a,to:r}}else throw new Error(JSON.stringify(i))}},bm=Gs;g();var T6=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],Vs=new Map(T6),Ys=class extends be{static langMap=Vs;APIKEY="";region="eastasia";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region)}async translateList(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:[]};let u={"api-version":"3.0",to:Vs.get(r)||r};a!=="auto"&&(u.from=Vs.get(a)||a);let o=new URLSearchParams(u),i=JSON.stringify(n.map(l=>({text:l}))),s={url:"https://api.cognitive.microsofttranslator.com/translate?"+o.toString(),retry:2,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:i},c=await oe(s);if(c.length===0)throw new Error("server response invalid");return{from:a,to:r,text:c.map(l=>l.translations.map(f=>f.text).join(" "))}}},ym=Ys;g();var C6=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],Yr=new Map(C6),Js=class extends be{isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:3,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t,u;if(n.length===0)return{from:a,to:r,text:[]};let o=` +`))}return{text:m,from:f[0]&&E6.get(f[0].detected_source_language)||n,to:a}}},bm=$s;g();var x6=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],Ks=new Map(x6),Gs=class extends be{static langMap=Ks;APIKEY="";isSupportList=!1;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:a,to:r}=t,o={url:"https://api.niutrans.com/NiuTransServer/translation",retry:2,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:n,from:Ks.get(a)||a,to:Ks.get(r)||r,apikey:this.APIKEY})},i=await oe(o);if(i.tgt_text){let s=i.tgt_text;return s.endsWith(` +`)&&(s=s.slice(0,-1)),{text:s,from:a,to:r}}else throw new Error(JSON.stringify(i))}},ym=Gs;g();var T6=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],Vs=new Map(T6),Ys=class extends be{static langMap=Vs;APIKEY="";region="eastasia";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region)}async translateList(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:[]};let u={"api-version":"3.0",to:Vs.get(r)||r};a!=="auto"&&(u.from=Vs.get(a)||a);let o=new URLSearchParams(u),i=JSON.stringify(n.map(l=>({text:l}))),s={url:"https://api.cognitive.microsofttranslator.com/translate?"+o.toString(),retry:2,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:i},c=await oe(s);if(c.length===0)throw new Error("server response invalid");return{from:a,to:r,text:c.map(l=>l.translations.map(f=>f.text).join(" "))}}},Em=Ys;g();var C6=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],Yr=new Map(C6),Js=class extends be{isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:3,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t,u;if(n.length===0)return{from:a,to:r,text:[]};let o=`
-`,i=n.join(o),s={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:2,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:""};a==="auto"||!Yr.get(a)?(u=(await oe({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:i})).langCode,s.body=JSON.stringify({text:i,source:u||Yr.get(a)||a,target:Yr.get(r)||r})):s.body=JSON.stringify({text:i,source:Yr.get(a),target:Yr.get(r)||r});let c=await oe(s);if(c.translatedText==="")throw new Error("server response invalid");let l=c.translatedText.split("
").map(p=>p.trim());return{from:a,to:r,text:l}}},Em=Js;g();var w6=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],Jr=new Map(w6),Qs=class extends be{static langMap=Jr;provider="custom";APIKEY="";apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;systemPrompt="You are a professional translation engine, please translate the text into a colloquial, professional, elegant and fluent content, without the style of machine translation. You must only translate the text content, never interpret it.";prompt=`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +`,i=n.join(o),s={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:2,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:""};a==="auto"||!Yr.get(a)?(u=(await oe({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:i})).langCode,s.body=JSON.stringify({text:i,source:u||Yr.get(a)||a,target:Yr.get(r)||r})):s.body=JSON.stringify({text:i,source:Yr.get(a),target:Yr.get(r)||r});let c=await oe(s);if(c.translatedText==="")throw new Error("server response invalid");let l=c.translatedText.split("
").map(p=>p.trim());return{from:a,to:r,text:l}}},xm=Js;g();var w6=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],Lo=new Map(w6),Qs=class extends be{static langMap=Lo;provider="custom";APIKEY="";apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;systemPrompt="You are a professional translation engine, please translate the text into a colloquial, professional, elegant and fluent content, without the style of machine translation. You must only translate the text content, never interpret it.";prompt=`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`;model="gpt-3.5-turbo-0613";apiUrl="https://api.openai.com/v1/chat/completions";immersiveApiUrl="https://openai-api.immersivetranslate.com/v1/chat/completions";immersiveProApiUrl=Fn()||Pn()?"https://api2.immersivetranslate.com/openai/v1/chat/completions":"https://test-api2.immersivetranslate.com/openai/v1/chat/completions";splitor="
";constructor(t,n,a){if(super(t,n,a),t||(t={}),t.provider&&(this.provider=t.provider),t.APIKEY&&(this.APIKEY=t.APIKEY?.trim(),this.apiKeys=this.APIKEY.split(",").map(r=>r.trim())),this.provider==="pro"){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");if(this.APIKEY=a.userToken||"",this.apiKeys=this.APIKEY.split(",").map(r=>r.trim()),!this.APIKEY)throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002")}t.prompt&&(this.prompt=t.prompt),t.model&&(this.model=t.model),t&&t.apiUrl&&(this.apiUrl=jt(this.apiUrl,t.apiUrl)),t&&t.immersiveApiUrl&&(this.immersiveApiUrl=jt(this.immersiveApiUrl,t.immersiveApiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=jt(this.immersiveProApiUrl,t.immersiveProApiUrl)),t&&t.systemPrompt&&(this.systemPrompt=t.systemPrompt)}getDefaultRateLimit(){return{limit:10,interval:1300}}translate(t){return this.model.includes("003")?(this.maxTextGroupLength=1,this.translate3(t)):this.translate3_5(t)}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate3_5(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let u=Jr.get(a)||a,o=Jr.get(r)||r,i=this.prompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u),s=[];if(this.systemPrompt){let f=this.systemPrompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u);s.push({role:"system",content:f})}this.prompt&&s.push({role:"user",content:i}),this.prompt.indexOf("{{text}}")===-1&&s.push({role:"user",content:n});let c={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:this.model,temperature:0,messages:s})},l=this.getRandomKey();this.provider==="pro"?(c.url=this.immersiveProApiUrl,c.headers.token=l):l&&(c.headers.Authorization="Bearer "+l,c.headers["api-key"]=l,l.startsWith("immersiveopenai_")&&(c.url=this.immersiveProApiUrl,c.headers.token=l,l.endsWith("x")||(c.headers["Immersive-Corpus-Campagin"]="yes"),delete c.headers.Authorization,delete c.headers["api-key"]));let p=await oe(c);if(p&&p.choices&&p.choices.length>0&&p.choices[0].message&&p.choices[0].message.content){let f=p.choices[0].message.content.trim();return(f.includes("\u62B1\u6B49")&&f.includes("\u7FFB\u8BD1")||f.includes("\u8BF7\u5C06\u6587\u672C\u7FFB\u8BD1\u6210")||f.includes("\u4E0D\u8981\u89E3\u91CA\u4EFB\u4F55"))&&(f=n),!n.includes(".")&&(f.endsWith("\u3002")||f.endsWith("."))&&(f=f.slice(0,-1)),{from:a,to:r,text:f}}else throw new Error("server response invalid: "+JSON.stringify(p))}async translate3(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let u=this.prompt.replace(/{{to}}/g,Jr.get(r)||r).replace(/{{text}}/g,n).replace(/{{from}}/g,Jr.get(a)||a),o={url:"https://api.openai.com/v1/completions",method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.APIKEY},body:JSON.stringify({model:this.model,prompt:u,temperature:0})},i=await oe(o);if(i&&i.choices&&i.choices.length>0&&i.choices[0].text){let s=i.choices[0].text.trim();return{from:a,to:r,text:s}}else throw new Error("server response invalid: "+JSON.stringify(i))}},xm=Qs;g();var v6=[["auto","auto"],["zh-CN","zh-Hans"],["zh-TW","zh-Hant"],["en","en"],["yue","\u7CA4\u8BED"],["wyw","\u53E4\u6587"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["de","de"],["es","es"],["it","it"],["ru","ru"],["pt","pt"],["nl","nl"],["pl","pl"],["ar","ar"],["af","af"],["am","am"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["el","el"],["eo","eo"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ku","ku"],["ky","ky"],["la","lo"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["no","no"],["ny","ny"],["pa","pa"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["sr-Cyrl","sr"],["sr-Latn","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],Mo=new Map(v6),Zs="chatgptWebAccessToken";async function Tm(){let e=await Nr(Zs);if(e)return e;let t=await oe({url:"https://chat.openai.com/api/auth/session",method:"get",responseType:"json"});if(!t.accessToken)throw new Error("UNAUTHORIZED");return await jr(Zs,t.accessToken,10*60*1e3),t.accessToken}var Xs=class e{static instance;constructor(){return e.instance||(e.instance=this),this}#e=Promise.resolve();enqueue(t){return this.#e=this.#e.then(()=>t()),this.#e}},e0=new Xs;Object.freeze(e0);var Qr=class extends be{accessToken="";customChatGptWebApiUrl="https://chat.openai.com";customChatGptWebApiPath="/backend-api/conversation";maxTextGroupLength=1;maxTextLength=1200;isStream=!1;isSupportList=!1;prompt=`You are a translation engine, you can only translate text and cannot interpret it, and do not explain.Translate the text below to {{to}}: +{{text}}`;model="gpt-3.5-turbo-0613";apiUrl="https://api.openai.com/v1/chat/completions";immersiveApiUrl="https://openai-api.immersivetranslate.com/v1/chat/completions";immersiveProApiUrl=Fn()||Pn()?"https://api2.immersivetranslate.com/openai/v1/chat/completions":"https://test-api2.immersivetranslate.com/openai/v1/chat/completions";splitor="
";constructor(t,n,a){if(super(t,n,a),t||(t={}),t.provider&&(this.provider=t.provider),t.APIKEY&&(this.APIKEY=t.APIKEY?.trim(),this.apiKeys=this.APIKEY.split(",").map(r=>r.trim())),this.provider==="pro"){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");if(this.APIKEY=a.userToken||"",this.apiKeys=this.APIKEY.split(",").map(r=>r.trim()),!this.APIKEY)throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002")}t.prompt&&(this.prompt=t.prompt),t.model&&(this.model=t.model),t&&t.apiUrl&&(this.apiUrl=Ut(this.apiUrl,t.apiUrl)),t&&t.immersiveApiUrl&&(this.immersiveApiUrl=Ut(this.immersiveApiUrl,t.immersiveApiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=Ut(this.immersiveProApiUrl,t.immersiveProApiUrl)),t&&t.systemPrompt&&(this.systemPrompt=t.systemPrompt)}getDefaultRateLimit(){return{limit:10,interval:1300}}translate(t){return this.model.includes("003")||this.model.includes("gpt-3.5-turbo-instruct")?(this.maxTextGroupLength=1,this.translate3(t)):this.translate3_5(t)}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate3_5(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let u=Lo.get(a)||a,o=Lo.get(r)||r,i=this.prompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u),s=[];if(this.systemPrompt){let f=this.systemPrompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u);s.push({role:"system",content:f})}this.prompt&&s.push({role:"user",content:i}),this.prompt.indexOf("{{text}}")===-1&&s.push({role:"user",content:n});let c={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:this.model,temperature:0,messages:s})},l=this.getRandomKey();this.provider==="pro"?(c.url=this.immersiveProApiUrl,c.headers.token=l):l&&(c.headers.Authorization="Bearer "+l,c.headers["api-key"]=l,l.startsWith("immersiveopenai_")&&(c.url=this.immersiveProApiUrl,c.headers.token=l,l.endsWith("x")||(c.headers["Immersive-Corpus-Campagin"]="yes"),delete c.headers.Authorization,delete c.headers["api-key"]));let p=await oe(c);if(p&&p.choices&&p.choices.length>0&&p.choices[0].message&&p.choices[0].message.content){let f=p.choices[0].message.content.trim();return(f.includes("\u62B1\u6B49")&&f.includes("\u7FFB\u8BD1")||f.includes("\u8BF7\u5C06\u6587\u672C\u7FFB\u8BD1\u6210")||f.includes("\u4E0D\u8981\u89E3\u91CA\u4EFB\u4F55"))&&(f=n),!n.includes(".")&&(f.endsWith("\u3002")||f.endsWith("."))&&(f=f.slice(0,-1)),{from:a,to:r,text:f}}else throw new Error("server response invalid: "+JSON.stringify(p))}async translate3(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let u=`Translate to ${Lo.get(r)||r}: -{{text}}`;constructor(t,n,a){super(t,n,a)}throttleDebounce(t,n,a){let r=0,u;return(...o)=>{let i=Date.now(),s=this,c=()=>{r=i,t.apply(s,o)};i-r>=n?(clearTimeout(u),c()):(clearTimeout(u),u=setTimeout(()=>{c()},a))}}async deleteConversation(t){if(t){let n=await oe({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}/${t}`,method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({is_visible:!1})});return N.debug("delete conversation res:",n),n}}async translate(t){return await e0.enqueue(async()=>{let{text:n,from:a,to:r}=t;if(n.length===0)return Promise.resolve({from:a,to:r,text:""});let u=Mo.get(a)||a,o=Mo.get(r)||r;if(this.accessToken=await Tm(),!this.accessToken||this.accessToken==="")throw new Error("token error");let i="text-davinci-002-render-sha-mobile";if(!i)throw new Error("No available model");let s=this.prompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u);try{let c=await oe({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"stream",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:hn(),role:"user",content:{content_type:"text",parts:[s]}}],model:i,parent_message_id:hn()})});return N.debug("get chatgpt res:",c),await this.deleteConversation(c?.conversation_id),Promise.resolve({from:a,to:r,text:c?.message?.content?.parts?.[0]})}catch(c){throw N.debug("post chatgpt error:",c),await Ur(Zs),c}})}async translateStream(t,n){let{text:a,from:r,to:u}=t;if(a.length===0){n(null,{from:r,to:u,text:""});return}let o=this.throttleDebounce(function(i){let{from:s,to:c,text:l}=i;n(null,{from:s,to:c,text:l})},300,200);await e0.enqueue(async()=>{let i="chatgpt"+hn(),s=ue.runtime.connect({name:i}),c,l;s.onMessage.addListener(h=>{if(!(!h||h==="")){if(h==="[DONE]"){s.disconnect(),this.deleteConversation(c);return}try{l=JSON.parse(h)}catch(T){N.debug("chatgpt json error",T,h);return}c=l?.conversation_id,l?.message?.author?.role==="assistant"&&o({from:r,to:u,text:l?.message?.content?.parts?.[0]})}});let p=Mo.get(r)||r,f=Mo.get(u)||u;if(this.accessToken=await Tm(),!this.accessToken||this.accessToken==="")throw new Error("token error");let m="text-davinci-002-render-sha";if(!m)throw new Error("No available model");let d=this.prompt.replace(/{{to}}/g,f).replace(/{{text}}/g,a).replace(/{{from}}/g,p);oe({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"realStream",extra:{portName:i},headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:hn(),role:"user",content:{content_type:"text",parts:[d]}}],model:m,parent_message_id:hn()})}).catch(h=>{N.debug("chatgpt error",h),s.disconnect(),this.deleteConversation(c),n(h,{from:r,to:u,text:""})})})}};g();var vm=hf(Cm()),wm=[["af","af"],["am","am"],["ar","ar"],["auto","auto"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fil","fil"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["mww","mww"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["otq","otq"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["tn","tn"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tlh","tlh"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["yua","yua"],["yue","yue"],["bo","bo"],["sa","sa"],["zh-CN","zh"],["zh-TW","zh-tw"],["zu","zu"]],Xr=class e extends be{static langMap=new Map(wm);static langMapReverse=new Map(wm.map(([t,n])=>[n,t]));static SHA1=new vm.default.SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,a){if(super(t,n,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new Error("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:a,to:r}=t,u={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:n,TargetLanguage:e.langMap.get(r)||r},o=this.scene=="general"?"TranslateGeneral":"Translate",i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:u,service:"mt",version:"2018-10-12"});return{text:i.Data.Translated,from:i.Data.DetectedLanguage&&e.langMapReverse.get(i.Data.DetectedLanguage)||a||"auto",to:e.langMapReverse.get(r)||r}}async translateList(t){let{text:n,from:a,to:r}=t,u=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:JSON.stringify(n.reduce((c,l,p)=>(c[p]=l,c),{})),TargetLanguage:e.langMap.get(r)||r,ApiType:u},i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),s=i.TranslatedList.length&&i.TranslatedList[0].detectedLanguage;return{text:i.TranslatedList.sort((c,l)=>parseInt(c.index)-parseInt(l.index)).map(c=>c.translated),from:s&&e.langMapReverse.get(s)||a||"auto",to:e.langMapReverse.get(r)||r}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:u,version:o}){let i=new Date().toISOString(),s=Math.random().toString(36).slice(2),c={Action:a,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:s,Timestamp:i,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},p=(h=>{let b=Object.keys(h).sort().map(C=>`${this.encode(C)}=${this.encode(h[C])}`).join("&");return`POST&%2F&${this.encode(b)}`})(Object.assign({},c,r)),f=e.SHA1.b64_hmac(`${n}&`,p),m=new URLSearchParams(Object.assign({},c,{Signature:f})).toString(),d=await oe({retry:1,url:`https://${u}.aliyuncs.com?${m}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(r).toString()});if(d instanceof Error)throw d;if(d.Code!=="200")throw new Error(d.Message);return d}};g();g();var k6=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],et={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},t0=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},n0=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let a=t0(t);if(a)return Array.isArray(n)?`${a}=${n.map(t0).sort().join(`&${a}=`)}`:`${a}=${t0(n)}`}).filter(t=>t).join("&"),Xa=class{request;serviceName;bodySha256;constructor(t,n,a){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,a=a||{},this.bodySha256=a.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(a=>{let r=t[a];return typeof r<"u"&&r!==null}).sort().map(a=>{n[a]=t[a]}),n}async addAuthorization(t,n){let a=this.getDateTime(n);await this.addHeaders(t,a),this.request.headers.Authorization=await this.authorization(t,a)}async authorization(t,n){let a=[],r=this.credentialString(n);return a.push(`${et.algorithm} Credential=${t.accessKeyId}/${r}`),a.push(`SignedHeaders=${this.signedHeaders()}`),a.push(`Signature=${await this.signature(t,n)}`),a.join(", ")}async getSignUrl(t,n){let a=this.getDateTime(n),r={...this.request.params},u=this.request.params,o=this.request.headers;t.sessionToken&&(r[et.tokenHeader]=t.sessionToken),r[et.dateHeader]=a,r[et.notSignBody]="",r[et.credential]=`${t.accessKeyId}/${this.credentialString(a)}`,r[et.algorithmKey]=et.algorithm,r[et.signHeadersKey]="",r[et.signQueriesKey]=void 0,r[et.signatureKey]=void 0,r=this.sortParams(r),this.request.params=r,this.request.headers={};let i=await this.signature(t,a);return this.request.params=u,this.request.headers=o,r[et.signQueriesKey]=Object.keys(r).sort().join(";"),r[et.signatureKey]=i,n0(r)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[et.dateHeader]=n,t.sessionToken&&(this.request.headers[et.tokenHeader]=t.sessionToken),this.request.body){let a=this.request.body;this.request.headers[et.contentSha256Header]=await yn(a)}}async signature(t,n){let a=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return So(await aa(await this.stringToSign(n),a))}async stringToSign(t){let n=[];n.push(et.algorithm),n.push(t),n.push(this.credentialString(t));let a=await this.canonicalString();return n.push(await this.hexEncodedHash(a)),n.join(` +${n} =>`,o=this.getRandomKey(),i={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.APIKEY}},s={model:this.model,prompt:u,temperature:0};this.provider==="pro"?(i.url=this.immersiveProApiUrl,i.headers.token=o):o&&(i.headers.Authorization="Bearer "+o,i.headers["api-key"]=o,o.startsWith("immersiveopenai_")&&(i.url=this.immersiveProApiUrl,i.headers.token=o,o.endsWith("x")||(i.headers["Immersive-Corpus-Campagin"]="yes"),delete i.headers.Authorization,delete i.headers["api-key"])),i.url=i.url.replace("/chat/","/");let c=2048,l=u.length*2.2;l0&&p.choices[0].text){let f=p.choices[0].text.trim();return{from:a,to:r,text:f}}else throw new Error("server response invalid: "+JSON.stringify(p))}},Tm=Qs;g();var v6=[["auto","auto"],["zh-CN","zh-Hans"],["zh-TW","zh-Hant"],["en","en"],["yue","\u7CA4\u8BED"],["wyw","\u53E4\u6587"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["de","de"],["es","es"],["it","it"],["ru","ru"],["pt","pt"],["nl","nl"],["pl","pl"],["ar","ar"],["af","af"],["am","am"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["el","el"],["eo","eo"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ku","ku"],["ky","ky"],["la","lo"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["no","no"],["ny","ny"],["pa","pa"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["sr-Cyrl","sr"],["sr-Latn","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],Mo=new Map(v6),Zs="chatgptWebAccessToken";async function Cm(){let e=await Nr(Zs);if(e)return e;let t=await oe({url:"https://chat.openai.com/api/auth/session",method:"get",responseType:"json"});if(!t.accessToken)throw new Error("UNAUTHORIZED");return await jr(Zs,t.accessToken,10*60*1e3),t.accessToken}var Xs=class e{static instance;constructor(){return e.instance||(e.instance=this),this}#e=Promise.resolve();enqueue(t){return this.#e=this.#e.then(()=>t()),this.#e}},e0=new Xs;Object.freeze(e0);var Jr=class extends be{accessToken="";customChatGptWebApiUrl="https://chat.openai.com";customChatGptWebApiPath="/backend-api/conversation";maxTextGroupLength=1;maxTextLength=1200;isStream=!1;isSupportList=!1;prompt=`You are a translation engine, you can only translate text and cannot interpret it, and do not explain.Translate the text below to {{to}}: + +{{text}}`;constructor(t,n,a){super(t,n,a)}throttleDebounce(t,n,a){let r=0,u;return(...o)=>{let i=Date.now(),s=this,c=()=>{r=i,t.apply(s,o)};i-r>=n?(clearTimeout(u),c()):(clearTimeout(u),u=setTimeout(()=>{c()},a))}}async deleteConversation(t){if(t){let n=await oe({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}/${t}`,method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({is_visible:!1})});return N.debug("delete conversation res:",n),n}}async translate(t){return await e0.enqueue(async()=>{let{text:n,from:a,to:r}=t;if(n.length===0)return Promise.resolve({from:a,to:r,text:""});let u=Mo.get(a)||a,o=Mo.get(r)||r;if(this.accessToken=await Cm(),!this.accessToken||this.accessToken==="")throw new Error("token error");let i="text-davinci-002-render-sha-mobile";if(!i)throw new Error("No available model");let s=this.prompt.replace(/{{to}}/g,o).replace(/{{text}}/g,n).replace(/{{from}}/g,u);try{let c=await oe({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"stream",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:hn(),role:"user",content:{content_type:"text",parts:[s]}}],model:i,parent_message_id:hn()})});return N.debug("get chatgpt res:",c),await this.deleteConversation(c?.conversation_id),Promise.resolve({from:a,to:r,text:c?.message?.content?.parts?.[0]})}catch(c){throw N.debug("post chatgpt error:",c),await Ur(Zs),c}})}async translateStream(t,n){let{text:a,from:r,to:u}=t;if(a.length===0){n(null,{from:r,to:u,text:""});return}let o=this.throttleDebounce(function(i){let{from:s,to:c,text:l}=i;n(null,{from:s,to:c,text:l})},300,200);await e0.enqueue(async()=>{let i="chatgpt"+hn(),s=ue.runtime.connect({name:i}),c,l;s.onMessage.addListener(h=>{if(!(!h||h==="")){if(h==="[DONE]"){s.disconnect(),this.deleteConversation(c);return}try{l=JSON.parse(h)}catch(T){N.debug("chatgpt json error",T,h);return}c=l?.conversation_id,l?.message?.author?.role==="assistant"&&o({from:r,to:u,text:l?.message?.content?.parts?.[0]})}});let p=Mo.get(r)||r,f=Mo.get(u)||u;if(this.accessToken=await Cm(),!this.accessToken||this.accessToken==="")throw new Error("token error");let m="text-davinci-002-render-sha";if(!m)throw new Error("No available model");let d=this.prompt.replace(/{{to}}/g,f).replace(/{{text}}/g,a).replace(/{{from}}/g,p);oe({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"realStream",extra:{portName:i},headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:hn(),role:"user",content:{content_type:"text",parts:[d]}}],model:m,parent_message_id:hn()})}).catch(h=>{N.debug("chatgpt error",h),s.disconnect(),this.deleteConversation(c),n(h,{from:r,to:u,text:""})})})}};g();var km=bf(wm()),vm=[["af","af"],["am","am"],["ar","ar"],["auto","auto"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fil","fil"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["mww","mww"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["otq","otq"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["tn","tn"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tlh","tlh"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["yua","yua"],["yue","yue"],["bo","bo"],["sa","sa"],["zh-CN","zh"],["zh-TW","zh-tw"],["zu","zu"]],Zr=class e extends be{static langMap=new Map(vm);static langMapReverse=new Map(vm.map(([t,n])=>[n,t]));static SHA1=new km.default.SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,a){if(super(t,n,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new Error("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:a,to:r}=t,u={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:n,TargetLanguage:e.langMap.get(r)||r},o=this.scene=="general"?"TranslateGeneral":"Translate",i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:o,payload:u,service:"mt",version:"2018-10-12"});return{text:i.Data.Translated,from:i.Data.DetectedLanguage&&e.langMapReverse.get(i.Data.DetectedLanguage)||a||"auto",to:e.langMapReverse.get(r)||r}}async translateList(t){let{text:n,from:a,to:r}=t,u=this.scene=="general"?"translate_standard":"translate_ecommerce",o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:JSON.stringify(n.reduce((c,l,p)=>(c[p]=l,c),{})),TargetLanguage:e.langMap.get(r)||r,ApiType:u},i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:o,service:"mt",version:"2018-10-12"}),s=i.TranslatedList.length&&i.TranslatedList[0].detectedLanguage;return{text:i.TranslatedList.sort((c,l)=>parseInt(c.index)-parseInt(l.index)).map(c=>c.translated),from:s&&e.langMapReverse.get(s)||a||"auto",to:e.langMapReverse.get(r)||r}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:u,version:o}){let i=new Date().toISOString(),s=Math.random().toString(36).slice(2),c={Action:a,Version:o,Format:"JSON",AccessKeyId:t,SignatureNonce:s,Timestamp:i,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},p=(h=>{let b=Object.keys(h).sort().map(C=>`${this.encode(C)}=${this.encode(h[C])}`).join("&");return`POST&%2F&${this.encode(b)}`})(Object.assign({},c,r)),f=e.SHA1.b64_hmac(`${n}&`,p),m=new URLSearchParams(Object.assign({},c,{Signature:f})).toString(),d=await oe({retry:1,url:`https://${u}.aliyuncs.com?${m}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(r).toString()});if(d instanceof Error)throw d;if(d.Code!=="200")throw new Error(d.Message);return d}};g();g();var k6=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],et={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},t0=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},n0=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let a=t0(t);if(a)return Array.isArray(n)?`${a}=${n.map(t0).sort().join(`&${a}=`)}`:`${a}=${t0(n)}`}).filter(t=>t).join("&"),Xa=class{request;serviceName;bodySha256;constructor(t,n,a){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,a=a||{},this.bodySha256=a.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(a=>{let r=t[a];return typeof r<"u"&&r!==null}).sort().map(a=>{n[a]=t[a]}),n}async addAuthorization(t,n){let a=this.getDateTime(n);await this.addHeaders(t,a),this.request.headers.Authorization=await this.authorization(t,a)}async authorization(t,n){let a=[],r=this.credentialString(n);return a.push(`${et.algorithm} Credential=${t.accessKeyId}/${r}`),a.push(`SignedHeaders=${this.signedHeaders()}`),a.push(`Signature=${await this.signature(t,n)}`),a.join(", ")}async getSignUrl(t,n){let a=this.getDateTime(n),r={...this.request.params},u=this.request.params,o=this.request.headers;t.sessionToken&&(r[et.tokenHeader]=t.sessionToken),r[et.dateHeader]=a,r[et.notSignBody]="",r[et.credential]=`${t.accessKeyId}/${this.credentialString(a)}`,r[et.algorithmKey]=et.algorithm,r[et.signHeadersKey]="",r[et.signQueriesKey]=void 0,r[et.signatureKey]=void 0,r=this.sortParams(r),this.request.params=r,this.request.headers={};let i=await this.signature(t,a);return this.request.params=u,this.request.headers=o,r[et.signQueriesKey]=Object.keys(r).sort().join(";"),r[et.signatureKey]=i,n0(r)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[et.dateHeader]=n,t.sessionToken&&(this.request.headers[et.tokenHeader]=t.sessionToken),this.request.body){let a=this.request.body;this.request.headers[et.contentSha256Header]=await yn(a)}}async signature(t,n){let a=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return Ao(await aa(await this.stringToSign(n),a))}async stringToSign(t){let n=[];n.push(et.algorithm),n.push(t),n.push(this.credentialString(t));let a=await this.canonicalString();return n.push(await this.hexEncodedHash(a)),n.join(` `)}async canonicalString(){let t=[],n=this.request.pathname||"/";t.push(this.request.method.toUpperCase()),t.push(n);let a=n0(this.request.params)||"";return t.push(a),t.push(`${this.canonicalHeaders()} `),t.push(this.signedHeaders()),t.push(await this.hexEncodedBodyHash()),t.join(` `)}canonicalHeaders(){let t=[];Object.keys(this.request.headers).forEach(a=>{t.push([a,this.request.headers[a]])}),t.sort((a,r)=>a[0].toLowerCase(){let r=a[0].toLowerCase();if(this.isSignableHeader(r)){let u=a[1];if(typeof u>"u"||u===null||typeof u.toString!="function")throw new Error(`Header ${r} contains invalid value`);n.push(`${r}:${this.canonicalHeaderValues(u.toString())}`)}}),n.join(` -`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await yn(t)}async hexEncodedBodyHash(){return this.request.headers[et.contentSha256Header]?this.request.headers[et.contentSha256Header]:this.request.body?await this.hexEncodedHash(n0(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return k6.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,a,r){let u=await aa(n,`${et.kDatePrefix}${t.secretKey}`),o=await aa(a,u),i=await aa(r,o);return aa(et.v4Identifier,i)}createScope(t,n,a){return[t.substr(0,8),n,a,et.v4Identifier].join("/")}};var km=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],a0=new Map(km),A6=new Map(km.map(([e,t])=>[t,e])),r0=class extends be{static langMap=a0;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,a){if(super(t,n,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new Error("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let a={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},r=new Xa(a,"translate");await r.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let u=new URLSearchParams(a.params),o=await oe({retry:2,url:"https://open.volcengineapi.com"+a.pathname+"?"+u.toString(),headers:r.request.headers,method:a.method,body:a.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let i=o.ResponseMetadata.Error;throw new ot(i.Code,i.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let i=o.ResponseMetaData.Error;throw new ot(i.Code,i.Message)}else throw new Error("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:a,to:r}=t,u=a0.get(a),o={TargetLanguage:a0.get(r)||r,TextList:n};u?o.SourceLanguage=u:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` -`).slice(0,1e3));let i={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},s=new Xa(i,"translate");await s.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let c=new URLSearchParams(i.params),l=await oe({retry:2,url:"https://open.volcengineapi.com"+i.pathname+"?"+c.toString(),headers:s.request.headers,method:i.method,body:i.body});if(l.TranslationList){let p=l.TranslationList.map(m=>m.Translation),f=a;return l.TranslationList.length>0&&l.TranslationList[0].DetectedSourceLanguage&&(f=A6.get(l.TranslationList[0].DetectedSourceLanguage)||a),{text:p,from:f,to:r}}else if(l.ResponseMetadata&&l.ResponseMetadata.Error){let p=l.ResponseMetadata.Error;throw new ot(p.Code,p.Message)}else if(l.ResponseMetaData&&l.ResponseMetaData.Error){let p=l.ResponseMetaData.Error;throw new ot(p.Code,p.Message)}else throw new Error("response: "+JSON.stringify(l))}},Am=r0;g();var Sm=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],u0=new Map(Sm),S6=new Map(Sm.map(([e,t])=>[t,e])),eu=class extends be{static langMap=u0;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:a,to:r}=t,u=u0.get(a)||"detect",o=u0.get(r)||r,s=await oe({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:u,target_language:o,text:n})});if(s.base_resp&&s.base_resp.status_code===0){let c=s.translation,l=a;return s.detected_language&&(l=S6.get(s.detected_language)||a),{text:c,from:l,to:r}}else{let c=s.base_resp;throw new ot(c.status_code.toString(),c.status_message)}}};g();var D6=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],o0=new Map(D6),tu=class extends be{static langMap=o0;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,a){if(super(t,n,a),!t||!t.url)throw new Error("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(r=>r.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:a,to:r}=t,u=this.getRandomKey(),i=await oe({retry:2,url:u,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({source_lang:o0.get(a)||a,target_lang:o0.get(r)||r,text:n})});if(i.code===200)return{text:i.data,from:a,to:r};throw new Error(i.message||i.message||"API Error")}};g();g();var i0="https://{s}bing.com",Pm=i0+"/translator",L6=i0+"/ttranslatev3",M6=i0+"/tspellcheckv3",Po="bingGlobalConfig",_m=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],Dm=new Map(_m),Lm=new Map(_m.map(([e,t])=>[t,e])),Mm=1e3,En,er;function s0(e,t){return e.replace("{s}",t?t+".":"")}async function F6(){if(!En){let n=await ue.storage.local.get(Po);return n&&(En=n[Po]),!0}let{tokenTs:e,tokenExpiryInterval:t}=En;return Date.now()-e>t}async function Fm(){let e,t,n,a,r,u,o,i,s,c;try{let l=s0(Pm,e),p=await oe({retry:2,url:l,responseType:"raw"}),{body:f,headers:m,url:d}=p;e=d.match(/^https?:\/\/(\w+)\.bing\.com/)[1],c=m["set-cookie"],t=f.match(/IG:"([^"]+)"/)[1],n=f.match(/data-iid="([^"]+)"/)[1],[r,a,u,o,i,s]=JSON.parse(f.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(l){throw l}return En={subdomain:e,IG:t,IID:n,key:r,token:a,tokenTs:r,tokenExpiryInterval:u,isVertical:o,frontDoorBotClassification:i,isSignedInOrCorporateUser:s,cookie:c,count:0},await ue.storage.local.set({[Po]:En}),En}function P6(e){let{IG:t,IID:n,subdomain:a,isVertical:r}=En;return s0(e?M6:L6,a)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+En.count++:"")}function _6(e,t,n,a){let{token:r,key:u}=En,o={fromLang:n,text:t,token:r,key:u};return!e&&a&&(o.to=a),o}async function Bm(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>Mm)throw new Error(`The supported maximum length of text is ${Mm}. Please shorten the text.`);er||(er=Fm()),await er,await F6()&&(er=Fm(),await er),t=t||"auto",n=n||"zh-CN",t=Dm.get(t)||t,n=Dm.get(n)||n;let r=P6(!1),u=_6(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:s0(Pm,En.subdomain),"content-type":"application/x-www-form-urlencoded"},i=new URLSearchParams(u),s=r,c=i.toString(),l=await oe({retry:2,url:s,headers:o,method:"POST",body:c});if(l.ShowCaptcha||l.StatusCode===401||l.statusCode){if(En=null,er=null,await ue.storage.local.remove(Po),l.ShowCaptcha)throw new Error(` +`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await yn(t)}async hexEncodedBodyHash(){return this.request.headers[et.contentSha256Header]?this.request.headers[et.contentSha256Header]:this.request.body?await this.hexEncodedHash(n0(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return k6.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,a,r){let u=await aa(n,`${et.kDatePrefix}${t.secretKey}`),o=await aa(a,u),i=await aa(r,o);return aa(et.v4Identifier,i)}createScope(t,n,a){return[t.substr(0,8),n,a,et.v4Identifier].join("/")}};var Am=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],a0=new Map(Am),A6=new Map(Am.map(([e,t])=>[t,e])),r0=class extends be{static langMap=a0;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,a){if(super(t,n,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new Error("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let a={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},r=new Xa(a,"translate");await r.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let u=new URLSearchParams(a.params),o=await oe({retry:2,url:"https://open.volcengineapi.com"+a.pathname+"?"+u.toString(),headers:r.request.headers,method:a.method,body:a.body});if(o.DetectedLanguageList&&o.DetectedLanguageList.length>0)return o.DetectedLanguageList[0].Language;if(o.ResponseMetadata&&o.ResponseMetadata.Error){let i=o.ResponseMetadata.Error;throw new ot(i.Code,i.Message)}else if(o.ResponseMetaData&&o.ResponseMetaData.Error){let i=o.ResponseMetaData.Error;throw new ot(i.Code,i.Message)}else throw new Error("response: "+JSON.stringify(o))}async translateList(t){let{text:n,from:a,to:r}=t,u=a0.get(a),o={TargetLanguage:a0.get(r)||r,TextList:n};u?o.SourceLanguage=u:o.SourceLanguage=await this.remoteDetectLanguage(n.join(` +`).slice(0,1e3));let i={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(o)},s=new Xa(i,"translate");await s.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let c=new URLSearchParams(i.params),l=await oe({retry:2,url:"https://open.volcengineapi.com"+i.pathname+"?"+c.toString(),headers:s.request.headers,method:i.method,body:i.body});if(l.TranslationList){let p=l.TranslationList.map(m=>m.Translation),f=a;return l.TranslationList.length>0&&l.TranslationList[0].DetectedSourceLanguage&&(f=A6.get(l.TranslationList[0].DetectedSourceLanguage)||a),{text:p,from:f,to:r}}else if(l.ResponseMetadata&&l.ResponseMetadata.Error){let p=l.ResponseMetadata.Error;throw new ot(p.Code,p.Message)}else if(l.ResponseMetaData&&l.ResponseMetaData.Error){let p=l.ResponseMetaData.Error;throw new ot(p.Code,p.Message)}else throw new Error("response: "+JSON.stringify(l))}},Sm=r0;g();var Dm=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],u0=new Map(Dm),S6=new Map(Dm.map(([e,t])=>[t,e])),Xr=class extends be{static langMap=u0;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:a,to:r}=t,u=u0.get(a)||"detect",o=u0.get(r)||r,s=await oe({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:u,target_language:o,text:n})});if(s.base_resp&&s.base_resp.status_code===0){let c=s.translation,l=a;return s.detected_language&&(l=S6.get(s.detected_language)||a),{text:c,from:l,to:r}}else{let c=s.base_resp;throw new ot(c.status_code.toString(),c.status_message)}}};g();var D6=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],o0=new Map(D6),eu=class extends be{static langMap=o0;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,a){if(super(t,n,a),!t||!t.url)throw new Error("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(r=>r.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:a,to:r}=t,u=this.getRandomKey(),i=await oe({retry:2,url:u,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({source_lang:o0.get(a)||a,target_lang:o0.get(r)||r,text:n})});if(i.code===200)return{text:i.data,from:a,to:r};throw new Error(i.message||i.message||"API Error")}};g();g();var i0="https://{s}bing.com",_m=i0+"/translator",L6=i0+"/ttranslatev3",M6=i0+"/tspellcheckv3",Po="bingGlobalConfig",Bm=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],Lm=new Map(Bm),Mm=new Map(Bm.map(([e,t])=>[t,e])),Fm=1e3,En,er;function s0(e,t){return e.replace("{s}",t?t+".":"")}async function F6(){if(!En){let n=await ue.storage.local.get(Po);return n&&(En=n[Po]),!0}let{tokenTs:e,tokenExpiryInterval:t}=En;return Date.now()-e>t}async function Pm(){let e,t,n,a,r,u,o,i,s,c;try{let l=s0(_m,e),p=await oe({retry:2,url:l,responseType:"raw"}),{body:f,headers:m,url:d}=p;e=d.match(/^https?:\/\/(\w+)\.bing\.com/)[1],c=m["set-cookie"],t=f.match(/IG:"([^"]+)"/)[1],n=f.match(/data-iid="([^"]+)"/)[1],[r,a,u,o,i,s]=JSON.parse(f.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(l){throw l}return En={subdomain:e,IG:t,IID:n,key:r,token:a,tokenTs:r,tokenExpiryInterval:u,isVertical:o,frontDoorBotClassification:i,isSignedInOrCorporateUser:s,cookie:c,count:0},await ue.storage.local.set({[Po]:En}),En}function P6(e){let{IG:t,IID:n,subdomain:a,isVertical:r}=En;return s0(e?M6:L6,a)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+En.count++:"")}function _6(e,t,n,a){let{token:r,key:u}=En,o={fromLang:n,text:t,token:r,key:u};return!e&&a&&(o.to=a),o}async function Rm(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>Fm)throw new Error(`The supported maximum length of text is ${Fm}. Please shorten the text.`);er||(er=Pm()),await er,await F6()&&(er=Pm(),await er),t=t||"auto",n=n||"zh-CN",t=Lm.get(t)||t,n=Lm.get(n)||n;let r=P6(!1),u=_6(!1,e,t,n==="auto-detect"?"zh-Hans":n),o={referer:s0(_m,En.subdomain),"content-type":"application/x-www-form-urlencoded"},i=new URLSearchParams(u),s=r,c=i.toString(),l=await oe({retry:2,url:s,headers:o,method:"POST",body:c});if(l.ShowCaptcha||l.StatusCode===401||l.statusCode){if(En=null,er=null,await ue.storage.local.remove(Po),l.ShowCaptcha)throw new Error(` Sorry that bing translator seems to be asking for the captcha, Please take care not to request too frequently. The response code is ${l.StatusCode}. `);if(l.StatusCode===401)throw new Error(` Max count of translation exceeded. Please try it again later. The response code is 401. - `);if(l.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(l)}.`)}let p=l[0].translations[0],f=l[0].detectedLanguage;return{text:p.text,from:Lm.get(f.language),to:Lm.get(p.to)}}g();var _o=new Map;async function l0(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=Zn(e.body)),_o.has(t))return _o.get(t);let n=oe(e);_o.set(t,n);try{return await n}catch(a){throw a}finally{setTimeout(()=>{_o.delete(t)},3e4)}}async function Rm(e){return l0(e)}async function Im(e){if(Je()){let n=wo();if(n)try{return await n.ask("throttleRequest",e)}catch(a){throw N.error("can not comunicate with root frame, use strict limiter",a),a}else return l0(e)}else return l0(e)}g();function Om(e){let t=e.split(".");if(t.length<=1)throw new Error("invlaid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let a=n.replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(globalThis.atob(a).split("").map(function(i){return"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)}).join("")),u=JSON.parse(r),o=new Date(u.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}var va=null,B6=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],c0=new Map(B6),nu=class extends be{static langMap=c0;isSupportList=!0;maxTextLength=1800;static async clearState(){va=null,await Ur(Ru)}async translate(t){let{text:n,from:a,to:r}=t;return n?await Bm(n,a,r):{...t}}async init(){if(!va){va={};let t=await Nr(Ru);t&&(va=t)}await Nm(va)}async translateList(t){let{from:n,to:a,text:r}=t,u=c0.get(n)||"auto",o=c0.get(a)||a;u==="auto"&&(u="");let i=await Nm(va),s=[];for(let f of r)s.push({Text:f});let c=JSON.stringify(s),l=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${u}&to=${o}&api-version=3.0&includeSentenceLength=true`,p=await oe({url:l,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+i.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin"},body:c,method:"POST"});if(p&&p.length>0&&p[0].translations&&p[0].translations.length>0)return{text:p.map(f=>f.translations[0]?.text||""),from:n,to:a};throw new Error("Microsoft translate error "+JSON.stringify(p))}};async function Nm(e){if(e&&e.accessToken&&e.accessTokenExpiresAt){let t=Date.now(),a=new Date(e.accessTokenExpiresAt).getTime();if(a-t>30*1e3)return e;if(a-t>3e3)return jm().catch(r=>{N.error(r)}),e}return jm()}async function jm(){let e=await Im({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET"}),t=Om(e),n=t.accessTokenExpiresAt,r=new Date(n).getTime()-Date.now();return va=t,await jr(Ru,t,r-1e3),{accessToken:e,accessTokenExpiresAt:t.accessTokenExpiresAt}}g();var Um=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],d0=new Map(Um),R6=new Map(Um.map(([e,t])=>[t,e])),m0=class extends be{static langMap=d0;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";appid="";key="";isSupportList=!1;maxTextGroupLength=20;constructor(t,n,a){if(super(t,n,a),!t||!t.appid||!t.key)throw new Error("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim()}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:a}=this,{appid:r,key:u}=this,{text:o,from:i,to:s}=t,c=new URLSearchParams({from:d0.get(i)||"auto",to:d0.get(s)||s,q:o,salt:n,appid:r,sign:Zn(r+o+n+u)}),l=new URL(a);l.search=c.toString();let p=await oe({url:l.toString()});if(p.error_code)throw new ot("API_SERVER_ERROR",p.error_msg);let{trans_result:f,from:m}=p,d=f.map(({dst:T})=>T);return{from:R6.get(m)||m,to:s,text:d.join(` -`)}}},zm=m0;g();g();var ka=class extends be{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,a){super(t,n,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let u=await this.checkLang(a,n);if(!u)return{text:n,from:a,to:r};a=u;let o=this.handleRequest(n,a,r),i=await Xu(o);return{text:this.handleResponseText(i),from:a,to:r}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let u=await this.checkLang(a,n.join(" "));if(!u)return{text:n,from:a,to:r};a=u;let o=this.handleRequest(n,a,r),i=await Xu(o);return{text:this.handleResponseText(i),from:a,to:r}}handleBaseApiServiceConfig(t){let n=t.request.url,a=t.request.headers||{};return a["content-type"]||(a["content-type"]="application/json"),{url:n,retry:t.request.retry||2,method:t.request.method||"POST",headers:a,body:JSON.stringify(t.request.body)}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,a){let r={...this.requestBaseConfig},u=r?.body||"",o=this.apiServiceConfig.keywords||{};r.body=s(u);let i=r.headers||{};return Object.keys(i).forEach(c=>{i[c]=s(i[c])}),r.headers=i,r.url=s(r.url||""),r;function s(c){return c.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",a).replaceAll(/{([a-z:_]+)}/gi,(p,f)=>{let[m,d]=f.split(":"),h=o[m];return d==="random"?I6(h.split(",")):h})}}handleResponseText(t){let n=this.apiServiceConfig.response,a=t,r=n.text.split(".");for(let u of r){if(Array.isArray(a))return a=a.map(o=>o[u]),a;a=a[u]}return a}detectLanguageRemotely(t){return wa.detectLanguageRemotelyByTransmart(t)}};function I6(e){let t=Math.floor(Math.random()*e.length);return e[t]}var g0=class extends ka{constructor(t,n,a){if(!t?.token)throw new Error("token are required");super({...t,isSupportList:!0,langs:[["zh-CN","zh"],["en","en"],["ja","ja"]],keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,a)}},Hm=g0;g();var O6=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],Bo=new Map(O6),p0=class extends be{static langMap=Bo;token="ssdj273ksdiwi923bsd9";constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t;if(!Bo.get(r))throw new Error(`Unsupported language: ${r}`);if(a==="auto")throw new Error("Unsupported language: auto");let o=n;return{text:(await oe({retry:2,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${Bo.get(a)||"auto"}2${Bo.get(r)}`})})).target,from:a,to:r}}},qm=p0;g();var Wm=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],f0=new Map(Wm),N6=new Map(Wm.map(([e,t])=>[t,e]));function j6(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var h0=class extends be{static langMap=f0;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,a){if(super(t,n,a),!t||!t.appId||!t.appSecret)throw new Error("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,u=U6(32),o=Math.round(new Date().getTime()/1e3),i=this.appId+j6(n)+u+o+this.appSecret,s=await yn(i),c={q:n,appKey:this.appId,salt:u.toString(),from:f0.get(a)||"auto",to:f0.get(r)||r,sign:s,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(c.domain=this.domain),this.vocabId&&(c.vocabId=this.vocabId);let l=new URLSearchParams(c),f=await oe({url:"https://openapi.youdao.com/api",method:"POST",body:l.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"}});if(!f.translation)throw new Error(JSON.stringify(f));let m=f.l,[d,h]=m.split("2");return{text:f.translation.join(` -`),from:N6.get(d),to:r}}};function U6(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r[t,e]));var y0=class extends be{static langMap=b0;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,u={q:n,from:b0.get(a)||"auto",to:b0.get(r)||r},o=new URLSearchParams(u),i=await oe({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"}});if(i&&i.translation)return{text:i.translation.join(` -`),from:a,to:r};throw new Error("Youdao translation failed: "+JSON.stringify(i))}},Gm=y0;g();var au=class extends ka{constructor(t,n,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(r=>[r,r]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||ba,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,a)}};var z6={mock:Za,mock2:Za,custom:au,google:Ca,transmart:wa,deepl:hm,volc:Am,volcAlpha:eu,bing:nu,tencent:Kr,tenAlpha:Gr,baidu:zm,caiyun:Hm,cai:qm,openl:Lo,youdao:$m,you:Gm,d:Qa,dpro:Qa,deeplx:tu,niu:bm,azure:ym,openai:xm,chatgpt:Qr,papago:Em,aliyun:Xr},ra={};Object.keys(Bn).forEach(e=>{ra[e]={...Bn[e],class:z6[e]}});function Vm(e,t){let n=Xt;if(ra[e]&&ra[e].class&&ra[e].class.langMap&&ra[e].class.langMap.size>0){let a=ra[e].class.langMap,r=n.filter(u=>a.get(u));return r.includes(t)||r.unshift("placeholder"),r}else return Xt}async function Aa(e,t){if(!e.text)return e;let n=await ua({sentences:[e]},t);if(n.sentences.length>0)return{...e,...n.sentences[0]};throw new ot("translateFailed","translate failed")}async function Ym(e,t){for(let n of e)try{return await Aa({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n}),n}catch{continue}return null}async function E0(e){let{config:t,translationService:n}=e,a=t.translationGeneralConfig,r=t.translationServices,u=n,o=r[u]||{},i=tn(e.user),s=new ra[u].class(o,a,{translationService:u,userToken:e.user?.token,isPro:i}),c=s.getDefaultRateLimit();c&&(o&&!o.limit&&(o.limit=c.limit),o&&!o.interval&&(o.interval=c.interval)),u==="deepl"&&o&&o.provider==="pro"&&(o.limitForImmersiveDeepl?o.limit=o.limitForImmersiveDeepl:c&&(o.limit=c.limit)),await Yd(u,o),await s.init()}async function ua(e,t,n){if(!e.sentences.length)return{...e};let{config:a,translationService:r,state:u}=t,o=a.translationGeneralConfig,i=a.translationServices,s=r,c=i[s]||{};s==="openai"&&(e.sentences=e.sentences.map(C=>({...C,from:"auto"})));let l=[],p={sentences:Array(e.sentences.length)},f=e.sentences.length,m=-1;if(u.cache)for(let C of e.sentences){m++;let w=s;s==="openl"&&(w=s+"-"+c.codename||Lo.DEFAULT_CODENAME);let O=null;try{O=await Su(Md({originalText:C.text,from:C.from,to:C.to,service:w}),200)}catch(B){N.warn("query cache DB error, but it's ok",B)}if(O){let B={...C,text:O.translatedText};p.sentences[m]=B,n&&n(null,B,C)}else l.push(C)}else l.push(...e.sentences);let d=l.length;if(f-d>0&&N.debug(`use ${f-d} sentences from cache`),!l.length)return p;let h,T=tn(t.user);try{h=new ra[s].class(c,o,{translationService:s,userToken:t.user?.token,isPro:T}),await h.init()}catch(C){if(n)for(let w of l)n(C,null,w);throw C}let b=await h.multipleTranslate({sentences:l},c,(C,w,O)=>{if(n&&n(C,w,O),!C&&w&&!s.startsWith("mock")&&u.cache){let B=s;s==="openl"&&(B=s+"-"+c.codename||Lo.DEFAULT_CODENAME),u.cache&&Su(Fd({translatedText:w.text,from:O.from,to:O.to,detectedFrom:w.from,key:Zn(O.text),service:B}),3e3).catch(y=>{N.warn("set cache DB error",y)})}});for(let C of b.sentences){let w=p.sentences.findIndex(O=>!O);if(w===-1)throw new ot("translateFailed","can not match the result");p.sentences[w]=C}return p}g();var Ro=!1,H6=fe();function Jm(e,t){let n=[];for(let a of t){let r=e.querySelectorAll(a);for(let u of r)n.push(u)}return n}function q6(e,t){let n=function(u){return u.nodeType===Node.ELEMENT_NODE||u.nodeType===Node.TEXT_NODE?u.nodeType===Node.ELEMENT_NODE&&Qm(u,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),r=!0;for(;a.nextNode();){let u=a.currentNode;if(u.nodeType===Node.ELEMENT_NODE){if(oa(u,Hu)){if(r===!0)return!0;continue}if(ru(u.nodeName,t.inlineTags))return!0;if(!x0(u,t))return!1}}return!0}function T0(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(ru(e.nodeName,n)||x0(e,t)){if(oa(e,C4)||ru(e.nodeName,["BR"]))return!1;if(oa(e,Hu))return!0;if(x0(e,t)){let a=globalThis.getComputedStyle(e);if(a.display==="block"||a.display==="flex")return!1}return q6(e,t)}else return oa(e,Hu);return!1}function Qm(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&oa(e,T4,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&oa(e,h4))return!1;let{stayOriginalTags:a,excludeTags:r}=t,u=[];return n&&r&&r.length>0?u=r||[]:u=r.filter(o=>!a.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||ru(e.nodeName,u))}function tr(e,t,n){let a=e.trim();return a.length>=t||a.split(" ").filter(o=>o.trim()!=="").length>=n||!Xm(a)&&a.length>=n}function Zm(e,t,n){let a=e.trim();if(a.length<=t)return!0;if(Xm(a)){if(a.split(" ").length<=n)return!0}else if(a.length<=n)return!0;return!1}function Xm(e){for(let t=0;t127)return!1;return!0}function e3(e){if(e&&e.includes("://"))try{return new URL(e),!0}catch{return!1}else return!1}function t3(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function n3(e){return e?/^[-+]?[0-9]*\.?[0-9]+%?$/.test(e):!1}function a3(e){return!!(e&&e.startsWith("#")&&e.indexOf(" ")===-1)}function r3(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function oa(e,t,n=!1){return C0(e,t,"1",n)}function C0(e,t,n,a=!1){return Ro&&!a?e[Ot]?!!(e[Ot]&&e[Ot][t]===n):!1:e.dataset[t]===n}function nr(e){return(e.innerText||e.textContent||"").trim()}function w0(e){let t=e.querySelectorAll("iframe"),n="";for(let a=0;a2e3))break}return n}function Io(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function at(e,t,n,a=!1,r=!1){e.isContentEditable&&!r||(Ro&&!a?(e.dataset[_r]||(e.dataset[_r]="1"),e[Ot]||(e[Ot]={}),e[Ot][t]||(e[Ot][t]=n)):(e.dataset[_r]||(e.dataset[_r]="1"),e.dataset[t]!==n&&(e.dataset[t]=n)))}function Oo(e,t,n=!1){if(Ro&&!n){if(!e[Ot]||!e[Ot][t])return;delete e[Ot][t]}else delete e.dataset[t]}function ar(e,t,n=!1){return Ro&&!n?!e[Ot]||!e[Ot][t]?void 0:e[Ot][t]:e.dataset[t]}function x0(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!ru(e.nodeName,n)}function rr(e){let{config:t}=e,n=ba;return t.translationServices[e.translationService]&&t.translationServices[e.translationService].placeholderDelimiters&&(n=t.translationServices[e.translationService].placeholderDelimiters),n}function Ze(){if(!globalThis||!globalThis.location)return"https://example.com";if(!Je())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let a="";try{a=globalThis.parent.location.href}catch{}return a||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function ia(e,t,n){if(e instanceof ShadowRoot){try{e.appendChild(document.createElement("style")).textContent=t}catch(a){N.warn("injectCSS failed, rootDocument"+a?.message,e)}return}if(e&&e.head&&e.head.appendChild){let a=e.createElement("style");if(n){let r=e.querySelector(`style[data-id="${n}"]`);r&&r.remove(),a.dataset.id=n}a.textContent=t,e.head.appendChild(a)}else if(e){let a=document.createElement("head"),r=document.createElement("style");r.textContent=t,a.appendChild(r),e.appendChild(a)}else N.warn("injectCSS failed, rootDocument does not have head node",e)}function ur(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(H6){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!document.querySelector("meta[name='immersive-translate-ebook-viewer']")||!t.startsWith("blob:http");return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function ru(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function u3(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),a=parseInt(t.substring(2,4),16),r=parseInt(t.substring(4,6),16);return{r:n,g:a,b:r}}function o3(e,t,n,a){if(a.document.caretPositionFromPoint){let r=a.document.caretPositionFromPoint(e,t);if(r){let u=a.document.createRange(),o=r.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||Qm(o,n,!0))return null;try{u.setStart(o,r.offset),u.setEnd(o,r.offset)}catch(i){return N.warn("getRangeFromPoint error",i),null}return u}return null}else return a.document.caretRangeFromPoint?a.document.caretRangeFromPoint(e,t):null}function i3(e,t,n){let a=0,r=(u,o,i,s)=>{if(++a>100||s===u)return u;let c=u.shadowRoot;if(!c||typeof c.elementFromPoint!="function")return u;let l=c.elementFromPoint(o,i);return l?r(l,o,i,u):u};return r(e,t,n)}g();g();var W6=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function xn(e,t){if(t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function v0(e,t,n){let{blockSelectors:a,extraBlockSelectors:r,extraInlineSelectors:u}=t;if(xn(e,u))return!1;if(xn(e,r)||e.nodeName.toLowerCase()==="br")return!0;let s=null;return e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(s=e.parentNode.immersiveTranslateComputedStyle),s&&s.display&&s.display==="inline-flex"?!1:n&&n.display?!!W6.includes(n.display):xn(e,a)}var Mt=xn;function Sa(e){return!!e.shadowRoot}function sa(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function uu(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function No(e){let t=ba;return e&&(t=e),t}function jo(e,t){return Xn(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function $6(e){let{rule:t}=e,n=e.config.loadingTheme;return` <${t.targetWrapperTag} class="${J}-loading-${n} notranslate">`}function ou(e,t){let n=e.rule,a=document.createElement(n.targetWrapperTag);a.classList.add("notranslate",$t),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),at(a,E4,t.toString());let r=$6(e);return a.append(_e.sanitize(r,{RETURN_DOM_FRAGMENT:!0})),a}function or(e,t){return e.querySelector(`[${ls}='${t}']`)}function s3(){document.querySelectorAll(`[${ls}]`).forEach(t=>{t.remove()})}function l3(){document.querySelectorAll(`.${$t}-error`).forEach(t=>{t.remove()})}function c3(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{ur(n)&&t.push(n)}),t}function d3(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:a,delimiters:r,text:u}=e,o=new RegExp(`${r[0]}(\\d+)${r[1]}`,"gi");if(r.length>2){let s=r[2];o=new RegExp(`<${s}(\\d+)>(.*?)`,"gi")}let i=u.trim();return i=i.replace(o,""),i=i.trim(),i===""||i.length===1&&i.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(u)||i.includes("")||i.includes("< styles>")||r3(i)||e3(i)||a3(i)||t3(i)||n3(i)||o.test(i)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(i)?!1:tr(u,n,a)}function Tn(e){return e.nodeType===Node.ELEMENT_NODE}function m3(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}function g3(e){try{let t=Math.floor((new Date-new Date(e))/1e3);return t<60?`${t} \u79D2\u524D`:t<3600?`${Math.floor(t/60)} \u5206\u949F\u524D`:t<86400?`${Math.floor(t/3600)} \u5C0F\u65F6\u524D`:`${Math.floor(t/86400)} \u5929\u524D`}catch{return e}}async function p3(e){let n=Re().INSTALL_FROM,a=nn(),r=await St("installedAt",""),u=await St("fakeUserId","");return{installFrom:n,version:a,installedAt:r,interfaceLang:e,deviceId:u}}var K6=1e5;function la(e){let{onParagraph:t,filterRule:n,id:a}=e;n=G6(n);let{stayOriginalSelectors:r,globalStyles:u,selectors:o,isTransformPreTagNewLine:i,lineBreakMaxTextCount:s,globalAttributes:c,isModifyImage:l,skipEditableCheck:p}=n,f={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},m=!1,d=null;function h(B){let{container:y,onFrame:A,onIgnoreElement:P,id:M}=B,x=document.createTreeWalker(y,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,D=>{let _=F(D);return _==NodeFilter.FILTER_ACCEPT?Ut.mark(D,M,p):_==NodeFilter.FILTER_REJECT,_}),R=y;if(F(R)===NodeFilter.FILTER_REJECT)return;for(Ut.mark(R,M,p);R;){if(o&&o.length>0){let{currentNode:D,isMatchedSelection:_}=T(x,R,o);if(D)R=D;else break;if(!_)continue}if(R.nodeType===Node.ELEMENT_NODE||R.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let D=R;if(D.nodeName==="IFRAME"){A&&A(D),b(),k0(f,!0),R=x.nextNode();continue}D.nodeType===Node.ELEMENT_NODE&&(u&&S0(D,u),c&&L0(D,c));let _=v0(D,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},D.immersiveTranslateComputedStyle||null);if(Mt(D,r)&&!_){C(D);let L=null;for(;!(L=x.nextSibling())&&x.parentNode(););R=L;continue}let U=Sa(D);(!f3(f,D)||_)&&(b(),D.childNodes.length>0&&w(f,D,D.immersiveTranslateComputedStyle||null)),U&&D.shadowRoot?.mode==="open"&&(_?A?.(D.shadowRoot):h({...B,container:D.shadowRoot})),D.nodeType===Node.ELEMENT_NODE&&D.nodeName==="PRE"&&i&&Q6(D)}else if(R.nodeType===Node.TEXT_NODE)C(R);else throw new Error("should not be here");R=x.nextNode(),f.commonAncestorContainer&&R&&R.parentNode===f.commonAncestorContainer&&(f._currentStacks=[]),f.commonAncestorContainer&&R&&R.nodeType===Node.ELEMENT_NODE&&f._currentStacks.push(R)}function F(D){if(D.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Tn(D)){if(c){let L=Object.keys(c);if(L.length>0&&Mt(D,L))for(let k of L){let I=c[k];if(D.matches(k)){let $=c[k],z=Object.keys($);for(let Y of z){let q=$[Y];D.getAttribute(Y)!==q&&(q===null?D.removeAttribute(Y):D.setAttribute(Y,q))}break}}}if(!B.force&&Ut.isMarked(D,M)||m3(D,M)||M0(D,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,stayOriginalSelectors:r})||D.nodeName==="IFRAME"&&!ur(D))return NodeFilter.FILTER_REJECT;let _=D.getBoundingClientRect(),{width:U,height:j}=_;if(D.nodeType===Node.ELEMENT_NODE){let L=window.getComputedStyle(D);if(D.immersiveTranslateComputedStyle={display:L.display,whiteSpace:L.whiteSpace,left:_.left+"px",right:_.right+"px",top:_.top+"px",bottom:_.bottom+"px"},D0(D.immersiveTranslateComputedStyle))return P&&P(D),NodeFilter.FILTER_REJECT;let E=v0(D,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},D.immersiveTranslateComputedStyle||null);if(Mt(D,r)&&E)return NodeFilter.FILTER_REJECT}return D.nodeName==="IMG"&&(U>48&&j>48?D.immersiveTranslateComputedStyle={display:"block"}:U>0&&j>0&&l!==!1&&(D.setAttribute("width",U),D.setAttribute("height",j))),!D.childNodes||D.childNodes&&D.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!f.isPreWhitespace&&(U>0&&U<4||j>0&&j<4)&&(D.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(D.nodeType===Node.TEXT_NODE){let _=D.textContent?.trim();if(!_)return f.isPreWhitespace?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let U=D.parentNode;if(U.getBoundingClientRect){let{width:j,height:L}=U.getBoundingClientRect();if(j>0&&j<4||L>0&&L<4)return NodeFilter.FILTER_REJECT}return s>0&&_.length>=s&&A0(D,s),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}h(e),f&&f.commonAncestorContainer&&f.flatNodes.length>0&&b();function T(B,y,A){let P=y.immersiveTranslateComputedStyle||null;if(d){if(!d.contains(y))if(m=!1,y&&y.nodeType===Node.ELEMENT_NODE)if(Uo(y,A))m=!0,d=y,b(),w(f,d,P);else return m=!1,y=B.nextNode(),{currentNode:y,isMatchedSelection:m};else return m=!1,y=B.nextNode(),{currentNode:y,isMatchedSelection:m}}else if(y&&y.nodeType===Node.ELEMENT_NODE)if(Uo(y,A))m=!0,d=y,b(),w(f,d,P);else return m=!1,y=B.nextNode(),{currentNode:y,isMatchedSelection:m};else return m=!1,y=B.nextNode(),{currentNode:y,isMatchedSelection:m};return{currentNode:y,isMatchedSelection:!0}}function b(){let B=J6(f,a);B&&t&&t(B),k0(f)}function C(B){if(!f3(f,B)){b(),k0(f);let y=B.parentNode;y&&w(f,y,y.computedStyle)}f.flatNodes.push(B)}function w(B,y,A){B.commonAncestorContainer=y;let P=O(A);B.isPreWhitespace=P}function O(B){return B&&B.whiteSpace&&B.whiteSpace.startsWith("pre")||B&&B.whiteSpace==="break-spaces"||!1}}function f3(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Sa(t));let a=Y6(e),r=!0;return!n&&!a&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?r=!0:e.commonAncestorContainer&&(r=!1,e._currentStacks=[])),r}function G6(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let a=n!=="iframe";return t?a&&n!=="pre":a}),e}function V6(e,t,n){if(t){for(let a of t.childNodes)if(a.contains(n))return a}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function S0(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Mt(e,n))for(let r of n){let u=t[r];if(e.matches(r)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+u;break}}}}function Y6(e){return e&&e._currentStacks?e._currentStacks.some(t=>Sa(t)):!1}function J6(e,t){let{flatNodes:n,commonAncestorContainer:a}=e;if(a&&n.length>0){if(!n.map(f=>f.textContent?.trim()||"").join(""))return null;if(n.length===1)return{ctxId:t,stepState:1,commonAncestorContainer:n[0].parentNode,rootNodes:[n[0]],flatNodes:n,isPreWhitespace:e.isPreWhitespace,variables:{}};let u=Z6(n,a);u||(u=a);let o=[];for(let f of n){let m=V6(e,u,f);m&&(o.includes(m)||o.push(m))}if(o.length<1)return null;let i=o[0],s=o[o.length-1],c=[],l=i,p=0;for(;l&&(c.push(l),l!==s);){if(p++,p>K6){N.warn("loop too many times for convert root nodes, break");break}l=l.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:n,commonAncestorContainer:u,variables:{},isPreWhitespace:e.isPreWhitespace}}else return null}function k0(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function D0(e){let t=e.top?parseInt(e.top):0,n=e.left?parseInt(e.left):0,a=e.right?parseInt(e.right):0,r=e.bottom?parseInt(e.bottom):0;return isNaN(t)&&(t=0),isNaN(n)&&(n=0),isNaN(a)&&(a=0),isNaN(r)&&(r=0),e.display==="none"||t<-1e3||n<-1e3||a<-1e3||r<-1e3}var Ut={_marked_key:"immersive_translate_walked",isMarked(e,t){return C0(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Sa(e)))return Oo(e,this._marked_key)},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Sa(e)))return at(e,this._marked_key,t,!1,n)},markWalk(e,t,n){if(!e||e.nodeType!==Node.ELEMENT_NODE||this.isSkipMarkEle(e))return;let a=ar(e,"markWalk")||"";return at(e,"markWalk",a+","+t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Sa(e)):!1}};function Q6(e){let n=e.innerHTML.replace(/\n\n/g,"
");e.innerHTML=_e.sanitize(n)}function Z6(e,t){if(!e.length)return null;let n=e.map(a=>{let r=new Set;for(;(a=a.parentNode)&&(r.add(a),a!==t););return r});for(let a of n[0])if((a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&n.every(r=>r.has(a)))return a;return null}function A0(e,t){let n=e.textContent||"";if(n.trim().length<=t)return;let u=[". ","? ","! ","\u3002","\uFF1F","\uFF01"].reduce((o,i)=>{let s=n.lastIndexOf(i,t);return s>o?s:o},-1);if(u>1){let o=n[u-1]||"",i=n[u-2]||"",s=n[u+1]||"";o==="."||s==="."||s===")"||i==="."&&o==="S"||i.toUpperCase()==="M"&&(o.toUpperCase()==="R"||o.toUpperCase()==="S")?u=-1:isNaN(Number(o))||(u=-1)}if(u===-1)n.length>t+20&&A0(e,t+20);else{let o=n.slice(u+1);u++,o.startsWith(" ")&&u++;let i=e.splitText(u),s=document.createElement("br");i.parentNode?.insertBefore(s,i),u+10)for(let a of n){let r=t[a],u=Object.keys(r),o=Jm(e,[a]);for(let i of o)for(let s of u){let c=r[s];i.getAttribute(s)!==c&&(c===null?i.removeAttribute(s):i.setAttribute(s,c))}}}function b3(e,t,n,a,r,u){let o=Object.keys(t);if(o.length>0)for(let i of o){let s=t[i],c=Object.keys(s),l=e.querySelector(i);if(l)for(let p of c){let f=s[p];if(p==="translate"&&f==="no"){let d=l.innerText||l.textContent||"";if(!d.trim()||X6(l,r,u)||!Zm(d,n,a))continue}l.getAttribute(p)!==f&&(f===null?l.removeAttribute(p):l.setAttribute(p,f))}}}function L0(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Mt(e,n))for(let r of n){let u=t[r];if(e.matches(r)){let o=t[r],i=Object.keys(o);for(let s of i){let c=o[s];e.getAttribute(s)!==c&&(c===null?e.removeAttribute(s):e.setAttribute(s,c))}break}}}}function M0(e,t){return Mt(e,t.excludeSelectors||[])?Mt(e,t.selectors||[])?!1:!Mt(e,t.stayOriginalSelectors||[]):!1}function Uo(e,t){if(t.length===0)return!1;let n=t.filter(a=>!a.endsWith("*")).map(a=>a+" *");return Mt(e,t.concat(n))}function X6(e,t,n){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,r=>NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let r=a.currentNode;if(r.nodeType===Node.TEXT_NODE&&parent){let u=r.textContent||"";if(u.includes("Copyright"))continue;if(tr(u,t,n))return!0}}return!1}g();g();var y3=["*://*/*","*","*://*"],x3="immersive-translate-wildcard-placeholder.com";function F0(e,t){let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(o=>y3.includes(o)))return e;let a=new URL(e);a.hash="",a.search="";let r=a.href,u=a.hostname;if(n&&n.length>0){let o=n.find(i=>{let s=i;if(i===u)return!0;if(y3.includes(i))return!0;if(!i.includes("*")&&i.includes("://")){try{let c=new URL(i);return c.pathname==="/"&&!i.endsWith("/")?c.hostname===u:t9(r,i)}catch{}return!1}else{let c,l=i;if(i.includes("://")){let T=i.split("://");c=T[0],c==="*"&&T.length>1&&(c="*",i="https://"+T[1])}else c="*",i="https://"+i;let p=i.replace(/\*/g,x3),f;try{f=new URL(p)}catch{return N.debug("invalid match pattern",p,"raw match value:",l),!1}let m=f.hostname,d=f.pathname;d==="/"&&(l.replace("://","").includes("/")||(d="/*"));let h=e9(c+":",E3(m),E3(d));if(h){let T=new URL(r);return T.port="",h.test(T.href)}else return!1}});if(o)return o}return null}function E3(e){return e.replaceAll(x3,"*")}function e9(e,t,n){let a="^";return e==="*:"?a+="(http:|https:|file:)":a+=e,a+="//",t&&(e==="file:"||(t==="*"?a+="[^/]+?":(t.match(/^\*\./)&&(a+="[^/]*?",t=t.substring(2)),a+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?a+="(/.*)?":n.includes("*")?(a+=n.replace(/\*/g,".*?"),a+="/?"):a+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):a+="/?",a+="$",new RegExp(a)}function sn(e,t){return F0(e,t)!==null}function t9(e,t){let n=new URL(e),a=new URL(t);return n.hostname===a.hostname&&n.pathname===a.pathname&&n.protocol===a.protocol&&n.port===a.port}async function ln(e){let{url:t,config:n,state:a}=e,r=new URL(t),u="auto",{translationParagraphLanguagePattern:o,translationService:i,translationServices:s,translationTheme:c,translationThemePatterns:l,translationUrlPattern:p,targetLanguage:f,sourceLanguageUrlPattern:m,immediateTranslationPattern:d}=n,h=ir(t,o),T=ir(t,d),b=i,C=Object.keys(s);for(let K of C){let se=s[K];if(ir(t,se)){b=K;break}}let w=c,O=Object.keys(l);for(let K of O){let se=l[K];if(se&&ir(t,se)){w=K;break}}let B=ir(t,p),y=T3(t,p);y||(y=sn(t,F4)),y||(y=sn(t,n.blockUrls));let A=T3(t,n.inputTranslationUrlPattern);A||(A=sn(t,n.inputTranslationBlockUrls));let P=sn(t,n.mutationBlockUrls),M=Object.keys(m),x={};for(let K of M){let se=m[K];if(se&&se.matches)for(let me of se.matches)x[me]=K}let R=Object.keys(x),F=F0(t,R);F&&(u=x[F]??"auto",x[F]&&x[F]!=="auto"&&an(x[F]));let D=f||"zh-CN",_=r.hostname,U=await yn(_),j=r.pathname+r.search+r.hash,L=await yn(j),E=`https://${U}.com/${L}`,k=await Yn(),I=await id(),$=n.translationStartMode;$==="dynamic"&&T&&($="immediate");let z=b;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(z=n.inputTranslationService);let Y=b;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(Y=n.mouseHoverTranslationService);let q={targetLanguage:D,config:n,translationService:b,inputTranslationService:z,mouseHoverTranslationService:Y,isTranslateUrl:B,sourceLanguage:u,mainFrame:document.body,isTranslateExcludeUrl:y,isMutationTranslationExcludeUrl:P,isInputTranslationExcludeUrl:A,rule:n.generalRule,url:t,encryptedUrl:E,state:a?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:$,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:h,cache:n.cache,translationTheme:w},a):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:$,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:h,cache:n.cache,translationTheme:w},localConfig:k},ae=await Nt.get(en,null);ae&&(q.user=ae),q.state.translationArea==="body"&&(q.config.generalRule.excludeTags=q.config.generalRule.excludeTags.filter(K=>!q.config.generalRule.bodyTranslateTags.includes(K)),q.config.generalRule.additionalExcludeSelectors=q.config.generalRule.additionalExcludeSelectors.filter(K=>K!==".btn"));let Q=n.translationServices[q.translationService]||{};Q.immediateTranslationTextCount!==void 0&&n9(Q.immediateTranslationTextCount)&&Q.immediateTranslationTextCount>=0&&(q.state.immediateTranslationTextCount=Q.immediateTranslationTextCount),q.translationService==="deepl"&&(Q&&Q.authKey&&Q.authKey.startsWith("immersive_")||Q&&Q.provider==="pro"&&q.user?.token)&&Q.immediateTranslationTextCountForImmersiveDeepl!==void 0&&Q.immediateTranslationTextCountForImmersiveDeepl>=0&&(q.state.immediateTranslationTextCount=Q.immediateTranslationTextCountForImmersiveDeepl),Q&&Q.translationDebounce&&typeof Q.translationDebounce=="number"&&(q.state.translationDebounce=Q.translationDebounce);let G=I.immediateTranslationTextCount;n.immediateTranslationTextCount!==G&&(q.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let pe=n.rules,he;globalThis.PDFViewerApplication?he=pe.find(K=>K.isPdf):globalThis.immersiveTranslateEbookViewer?he=pe.find(K=>K.isEbook):globalThis.immersiveTranslateEbookBuilder?he=pe.find(K=>K.isEbookBuilder):he=pe.find(K=>ir(t,K)),q.state.translationArea==="body"&&(q.rule.paragraphMinTextCount=1,q.rule.paragraphMinWordCount=1),he&&he.isEbookBuilder&&(q.state.translationStartMode="immediate");let re=n.generalRule;if(he&&(q.rule=to(re,he)),q.rule.selectors.length>0&&(q.rule.paragraphMinTextCount=2,q.rule.paragraphMinWordCount=1),q.state.translationArea==="body"&&q.rule.excludeTags&&(q.rule.excludeTags=q.rule.excludeTags.filter(K=>!q.rule.bodyTranslateTags.includes(K)&&!q.rule.forceTranslateTags.includes(K))),q.rule.mainFrameSelector){let K=document.querySelector(q.rule.mainFrameSelector);K&&(q.mainFrame=K)}return q}function ir(e,t){if(!t)return!1;let{matches:n,excludeMatches:a,selectorMatches:r,excludeSelectorMatches:u}=t;return a&&a.length>0&&sn(e,a)?!1:n&&n.length>0&&sn(e,n)?!0:u&&u.length>0&&Io(u)?!1:!!(r&&r.length>0&&Io(r))}function T3(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:a}=t;return!!(n&&n.length>0&&sn(e,n)||a&&a.length>0&&Io(a))}function n9(e){return typeof e=="number"}g();g();g();function C3(e,t,n,a){let r=t,u=S4[r]||[],o="";e&&u&&u.length>0&&u.forEach(c=>{let{name:l}=c;if(e&&n&&n[l]){let p=n[l];if(["borderRadius"].includes(l)&&(p+="px"),o+=`--immersive-translate-theme-${r}-${l}: ${p}; -`,t==="marker"&&l==="backgroundColor"&&typeof p=="string"){let{r:f,g:m,b:d}=u3(p);o+=`--immersive-translate-theme-${r}-${l}-rgb: ${f}, ${m}, ${d}; + `);if(l.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(l)}.`)}let p=l[0].translations[0],f=l[0].detectedLanguage;return{text:p.text,from:Mm.get(f.language),to:Mm.get(p.to)}}g();var _o=new Map;async function l0(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=Zn(e.body)),_o.has(t))return _o.get(t);let n=oe(e);_o.set(t,n);try{return await n}catch(a){throw a}finally{setTimeout(()=>{_o.delete(t)},3e4)}}async function Om(e){return l0(e)}async function Im(e){if(Je()){let n=Co();if(n)try{return await n.ask("throttleRequest",e)}catch(a){throw N.error("can not comunicate with root frame, use strict limiter",a),a}else return l0(e)}else return l0(e)}g();function Nm(e){let t=e.split(".");if(t.length<=1)throw new Error("invlaid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let a=n.replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(globalThis.atob(a).split("").map(function(i){return"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)}).join("")),u=JSON.parse(r),o=new Date(u.exp*1e3);return{accessToken:e,accessTokenExpiresAt:o.toISOString()}}var ka=null,B6=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],c0=new Map(B6),tu=class extends be{static langMap=c0;isSupportList=!0;maxTextLength=1800;static async clearState(){ka=null,await Ur(Bu)}async translate(t){let{text:n,from:a,to:r}=t;return n?await Rm(n,a,r):{...t}}async init(){if(!ka){ka={};let t=await Nr(Bu);t&&(ka=t)}await jm(ka)}async translateList(t){let{from:n,to:a,text:r}=t,u=c0.get(n)||"auto",o=c0.get(a)||a;u==="auto"&&(u="");let i=await jm(ka),s=[];for(let f of r)s.push({Text:f});let c=JSON.stringify(s),l=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${u}&to=${o}&api-version=3.0&includeSentenceLength=true`,p=await oe({url:l,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+i.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin"},body:c,method:"POST"});if(p&&p.length>0&&p[0].translations&&p[0].translations.length>0)return{text:p.map(f=>f.translations[0]?.text||""),from:n,to:a};throw new Error("Microsoft translate error "+JSON.stringify(p))}};async function jm(e){if(e&&e.accessToken&&e.accessTokenExpiresAt){let t=Date.now(),a=new Date(e.accessTokenExpiresAt).getTime();if(a-t>30*1e3)return e;if(a-t>3e3)return Um().catch(r=>{N.error(r)}),e}return Um()}async function Um(){let e=await Im({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET"}),t=Nm(e),n=t.accessTokenExpiresAt,r=new Date(n).getTime()-Date.now();return ka=t,await jr(Bu,t,r-1e3),{accessToken:e,accessTokenExpiresAt:t.accessTokenExpiresAt}}g();var zm=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],d0=new Map(zm),R6=new Map(zm.map(([e,t])=>[t,e])),m0=class extends be{static langMap=d0;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";appid="";key="";isSupportList=!1;maxTextGroupLength=20;constructor(t,n,a){if(super(t,n,a),!t||!t.appid||!t.key)throw new Error("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim()}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:a}=this,{appid:r,key:u}=this,{text:o,from:i,to:s}=t,c=new URLSearchParams({from:d0.get(i)||"auto",to:d0.get(s)||s,q:o,salt:n,appid:r,sign:Zn(r+o+n+u)}),l=new URL(a);l.search=c.toString();let p=await oe({url:l.toString()});if(p.error_code)throw new ot("API_SERVER_ERROR",p.error_msg);let{trans_result:f,from:m}=p,d=f.map(({dst:T})=>T);return{from:R6.get(m)||m,to:s,text:d.join(` +`)}}},Hm=m0;g();g();var Aa=class extends be{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,a){super(t,n,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let u=await this.checkLang(a,n);if(!u)return{text:n,from:a,to:r};a=u;let o=this.handleRequest(n,a,r),i=await Zu(o);return{text:this.handleResponseText(i),from:a,to:r}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let u=await this.checkLang(a,n.join(" "));if(!u)return{text:n,from:a,to:r};a=u;let o=this.handleRequest(n,a,r),i=await Zu(o);return{text:this.handleResponseText(i),from:a,to:r}}handleBaseApiServiceConfig(t){let n=t.request.url,a=t.request.headers||{};return a["content-type"]||(a["content-type"]="application/json"),{url:n,retry:t.request.retry||2,method:t.request.method||"POST",headers:a,body:JSON.stringify(t.request.body)}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,a){let r={...this.requestBaseConfig},u=r?.body||"",o=this.apiServiceConfig.keywords||{};r.body=s(u);let i=r.headers||{};return Object.keys(i).forEach(c=>{i[c]=s(i[c])}),r.headers=i,r.url=s(r.url||""),r;function s(c){return c.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",a).replaceAll(/{([a-z:_]+)}/gi,(p,f)=>{let[m,d]=f.split(":"),h=o[m];return d==="random"?O6(h.split(",")):h})}}handleResponseText(t){let n=this.apiServiceConfig.response,a=t,r=n.text.split(".");for(let u of r){if(Array.isArray(a))return a=a.map(o=>o[u]),a;a=a[u]}return a}detectLanguageRemotely(t){return va.detectLanguageRemotelyByTransmart(t)}};function O6(e){let t=Math.floor(Math.random()*e.length);return e[t]}var g0=class extends Aa{constructor(t,n,a){if(!t?.token)throw new Error("token are required");super({...t,isSupportList:!0,langs:[["zh-CN","zh"],["en","en"],["ja","ja"]],keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,a)}},qm=g0;g();var I6=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],Bo=new Map(I6),p0=class extends be{static langMap=Bo;token="ssdj273ksdiwi923bsd9";constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t;if(!Bo.get(r))throw new Error(`Unsupported language: ${r}`);if(a==="auto")throw new Error("Unsupported language: auto");let o=n;return{text:(await oe({retry:2,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:o,trans_type:`${Bo.get(a)||"auto"}2${Bo.get(r)}`})})).target,from:a,to:r}}},Wm=p0;g();var $m=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],f0=new Map($m),N6=new Map($m.map(([e,t])=>[t,e]));function j6(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var h0=class extends be{static langMap=f0;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,a){if(super(t,n,a),!t||!t.appId||!t.appSecret)throw new Error("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,u=U6(32),o=Math.round(new Date().getTime()/1e3),i=this.appId+j6(n)+u+o+this.appSecret,s=await yn(i),c={q:n,appKey:this.appId,salt:u.toString(),from:f0.get(a)||"auto",to:f0.get(r)||r,sign:s,signType:"v3",curtime:o.toString()};this.domain&&this.domain!=="general"&&(c.domain=this.domain),this.vocabId&&(c.vocabId=this.vocabId);let l=new URLSearchParams(c),f=await oe({url:"https://openapi.youdao.com/api",method:"POST",body:l.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"}});if(!f.translation)throw new Error(JSON.stringify(f));let m=f.l,[d,h]=m.split("2");return{text:f.translation.join(` +`),from:N6.get(d),to:r}}};function U6(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r[t,e]));var y0=class extends be{static langMap=b0;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,u={q:n,from:b0.get(a)||"auto",to:b0.get(r)||r},o=new URLSearchParams(u),i=await oe({url:"https://aidemo.youdao.com/trans",method:"POST",body:o.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"}});if(i&&i.translation)return{text:i.translation.join(` +`),from:a,to:r};throw new Error("Youdao translation failed: "+JSON.stringify(i))}},Vm=y0;g();var nu=class extends Aa{constructor(t,n,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(r=>[r,r]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||ba,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,a)}};var z6={mock:Za,mock2:Za,custom:nu,google:wa,transmart:va,deepl:bm,volc:Sm,volcAlpha:Xr,bing:tu,tencent:Kr,tenAlpha:Gr,baidu:Hm,caiyun:qm,cai:Wm,openl:Do,youdao:Km,you:Vm,d:Qa,dpro:Qa,deeplx:eu,niu:ym,azure:Em,openai:Tm,chatgpt:Jr,papago:xm,aliyun:Zr},ra={};Object.keys(Bn).forEach(e=>{ra[e]={...Bn[e],class:z6[e]}});function Ym(e,t){let n=en;if(ra[e]&&ra[e].class&&ra[e].class.langMap&&ra[e].class.langMap.size>0){let a=ra[e].class.langMap,r=n.filter(u=>a.get(u));return r.includes(t)||r.unshift("placeholder"),r}else return en}async function Sa(e,t){if(!e.text)return e;let n=await ua({sentences:[e]},t);if(n.sentences.length>0)return{...e,...n.sentences[0]};throw new ot("translateFailed","translate failed")}async function Jm(e,t){for(let n of e)try{return await Sa({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n}),n}catch{continue}return null}async function E0(e){let{config:t,translationService:n}=e,a=t.translationGeneralConfig,r=t.translationServices,u=n,o=r[u]||{},i=tn(e.user),s=new ra[u].class(o,a,{translationService:u,userToken:e.user?.token,isPro:i}),c=s.getDefaultRateLimit();c&&(o&&!o.limit&&(o.limit=c.limit),o&&!o.interval&&(o.interval=c.interval)),u==="deepl"&&o&&o.provider==="pro"&&(o.limitForImmersiveDeepl?o.limit=o.limitForImmersiveDeepl:c&&(o.limit=c.limit)),await Jd(u,o),await s.init()}async function ua(e,t,n){if(!e.sentences.length)return{...e};let{config:a,translationService:r,state:u}=t,o=a.translationGeneralConfig,i=a.translationServices,s=r,c=i[s]||{};s==="openai"&&(e.sentences=e.sentences.map(C=>({...C,from:"auto"})));let l=[],p={sentences:Array(e.sentences.length)},f=e.sentences.length,m=-1;if(u.cache)for(let C of e.sentences){m++;let w=s;s==="openl"&&(w=s+"-"+c.codename||Do.DEFAULT_CODENAME);let I=null;try{I=await Au(Fd({originalText:C.text,from:C.from,to:C.to,service:w}),200)}catch(B){N.warn("query cache DB error, but it's ok",B)}if(I){let B={...C,text:I.translatedText};p.sentences[m]=B,n&&n(null,B,C)}else l.push(C)}else l.push(...e.sentences);let d=l.length;if(f-d>0&&N.debug(`use ${f-d} sentences from cache`),!l.length)return p;let h,T=tn(t.user);try{h=new ra[s].class(c,o,{translationService:s,userToken:t.user?.token,isPro:T}),await h.init()}catch(C){if(n)for(let w of l)n(C,null,w);throw C}let b=await h.multipleTranslate({sentences:l},c,(C,w,I)=>{if(n&&n(C,w,I),!C&&w&&!s.startsWith("mock")&&u.cache){let B=s;s==="openl"&&(B=s+"-"+c.codename||Do.DEFAULT_CODENAME),u.cache&&Au(Pd({translatedText:w.text,from:I.from,to:I.to,detectedFrom:w.from,key:Zn(I.text),service:B}),3e3).catch(y=>{N.warn("set cache DB error",y)})}});for(let C of b.sentences){let w=p.sentences.findIndex(I=>!I);if(w===-1)throw new ot("translateFailed","can not match the result");p.sentences[w]=C}return p}g();var Ro=!1,H6=pe();function Qm(e,t){let n=[];for(let a of t){let r=e.querySelectorAll(a);for(let u of r)n.push(u)}return n}function q6(e,t){let n=function(u){return u.nodeType===Node.ELEMENT_NODE||u.nodeType===Node.TEXT_NODE?u.nodeType===Node.ELEMENT_NODE&&Zm(u,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),r=!0;for(;a.nextNode();){let u=a.currentNode;if(u.nodeType===Node.ELEMENT_NODE){if(oa(u,zu)){if(r===!0)return!0;continue}if(au(u.nodeName,t.inlineTags))return!0;if(!x0(u,t))return!1}}return!0}function T0(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(au(e.nodeName,n)||x0(e,t)){if(oa(e,C4)||au(e.nodeName,["BR"]))return!1;if(oa(e,zu))return!0;if(x0(e,t)){let a=globalThis.getComputedStyle(e);if(a.display==="block"||a.display==="flex")return!1}return q6(e,t)}else return oa(e,zu);return!1}function Zm(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&oa(e,T4,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&oa(e,h4))return!1;let{stayOriginalTags:a,excludeTags:r}=t,u=[];return n&&r&&r.length>0?u=r||[]:u=r.filter(o=>!a.includes(o)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||au(e.nodeName,u))}function tr(e,t,n){let a=e.trim();return a.length>=t||a.split(" ").filter(o=>o.trim()!=="").length>=n||!e3(a)&&a.length>=n}function Xm(e,t,n){let a=e.trim();if(a.length<=t)return!0;if(e3(a)){if(a.split(" ").length<=n)return!0}else if(a.length<=n)return!0;return!1}function e3(e){for(let t=0;t127)return!1;return!0}function t3(e){if(e&&e.includes("://"))try{return new URL(e),!0}catch{return!1}else return!1}function n3(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function a3(e){return e?/^[-+]?[0-9]*\.?[0-9]+%?$/.test(e):!1}function r3(e){return!!(e&&e.startsWith("#")&&e.indexOf(" ")===-1)}function u3(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function oa(e,t,n=!1){return C0(e,t,"1",n)}function C0(e,t,n,a=!1){return Ro&&!a?e[It]?!!(e[It]&&e[It][t]===n):!1:e.dataset[t]===n}function nr(e){return(e.innerText||e.textContent||"").trim()}function w0(e){let t=e.querySelectorAll("iframe"),n="";for(let a=0;a2e3))break}return n}function Oo(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function at(e,t,n,a=!1,r=!1){e.isContentEditable&&!r||(Ro&&!a?(e.dataset[_r]||(e.dataset[_r]="1"),e[It]||(e[It]={}),e[It][t]||(e[It][t]=n)):(e.dataset[_r]||(e.dataset[_r]="1"),e.dataset[t]!==n&&(e.dataset[t]=n)))}function Io(e,t,n=!1){if(Ro&&!n){if(!e[It]||!e[It][t])return;delete e[It][t]}else delete e.dataset[t]}function ar(e,t,n=!1){return Ro&&!n?!e[It]||!e[It][t]?void 0:e[It][t]:e.dataset[t]}function x0(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!au(e.nodeName,n)}function rr(e){let{config:t}=e,n=ba;return t.translationServices[e.translationService]&&t.translationServices[e.translationService].placeholderDelimiters&&(n=t.translationServices[e.translationService].placeholderDelimiters),n}function Ze(){if(!globalThis||!globalThis.location)return"https://example.com";if(!Je())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let a="";try{a=globalThis.parent.location.href}catch{}return a||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function ia(e,t,n){if(e instanceof ShadowRoot){try{e.appendChild(document.createElement("style")).textContent=t}catch(a){N.warn("injectCSS failed, rootDocument"+a?.message,e)}return}if(e&&e.head&&e.head.appendChild){let a=e.createElement("style");if(n){let r=e.querySelector(`style[data-id="${n}"]`);r&&r.remove(),a.dataset.id=n}a.textContent=t,e.head.appendChild(a)}else if(e){let a=document.createElement("head"),r=document.createElement("style");r.textContent=t,a.appendChild(r),e.appendChild(a)}else N.warn("injectCSS failed, rootDocument does not have head node",e)}function ur(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(H6){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!document.querySelector("meta[name='immersive-translate-ebook-viewer']")||!t.startsWith("blob:http");return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function au(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function o3(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),a=parseInt(t.substring(2,4),16),r=parseInt(t.substring(4,6),16);return{r:n,g:a,b:r}}function i3(e,t,n,a){if(a.document.caretPositionFromPoint){let r=a.document.caretPositionFromPoint(e,t);if(r){let u=a.document.createRange(),o=r.offsetNode;if(!o||o.nodeType!==Node.TEXT_NODE||Zm(o,n,!0))return null;try{u.setStart(o,r.offset),u.setEnd(o,r.offset)}catch(i){return N.warn("getRangeFromPoint error",i),null}return u}return null}else return a.document.caretRangeFromPoint?a.document.caretRangeFromPoint(e,t):null}function s3(e,t,n){let a=0,r=(u,o,i,s)=>{if(++a>100||s===u)return u;let c=u.shadowRoot;if(!c||typeof c.elementFromPoint!="function")return u;let l=c.elementFromPoint(o,i);return l?r(l,o,i,u):u};return r(e,t,n)}g();g();var W6=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function xn(e,t){if(t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function v0(e,t,n){let{blockSelectors:a,extraBlockSelectors:r,extraInlineSelectors:u}=t;if(xn(e,u))return!1;if(xn(e,r)||e.nodeName.toLowerCase()==="br")return!0;let s=null;return e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(s=e.parentNode.immersiveTranslateComputedStyle),s&&s.display&&s.display==="inline-flex"?!1:n&&n.display?!!W6.includes(n.display):xn(e,a)}var Mt=xn;function Da(e){return!!e.shadowRoot}function sa(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function ru(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function No(e){let t=ba;return e&&(t=e),t}function jo(e,t){return Xn(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function $6(e){let{rule:t}=e,n=e.config.loadingTheme;return` <${t.targetWrapperTag} class="${J}-loading-${n} notranslate">`}function uu(e,t){let n=e.rule,a=document.createElement(n.targetWrapperTag);a.classList.add("notranslate",Kt),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),at(a,E4,t.toString());let r=$6(e);return a.append(_e.sanitize(r,{RETURN_DOM_FRAGMENT:!0})),a}function or(e,t){return e.querySelector(`[${ls}='${t}']`)}function l3(){document.querySelectorAll(`[${ls}]`).forEach(t=>{t.remove()})}function c3(){document.querySelectorAll(`.${Kt}-error`).forEach(t=>{t.remove()})}function d3(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{ur(n)&&t.push(n)}),t}function m3(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:a,delimiters:r,text:u}=e,o=new RegExp(`${r[0]}(\\d+)${r[1]}`,"gi");if(r.length>2){let s=r[2];o=new RegExp(`<${s}(\\d+)>(.*?)`,"gi")}let i=u.trim();return i=i.replace(o,""),i=i.trim(),i===""||i.length===1&&i.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(u)||i.includes("")||i.includes("< styles>")||u3(i)||t3(i)||r3(i)||n3(i)||a3(i)||o.test(i)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(i)?!1:tr(u,n,a)}function Tn(e){return e.nodeType===Node.ELEMENT_NODE}function g3(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}function p3(e){try{let t=Math.floor((new Date-new Date(e))/1e3);return t<60?`${t} \u79D2\u524D`:t<3600?`${Math.floor(t/60)} \u5206\u949F\u524D`:t<86400?`${Math.floor(t/3600)} \u5C0F\u65F6\u524D`:`${Math.floor(t/86400)} \u5929\u524D`}catch{return e}}async function f3(e){let n=Re().INSTALL_FROM,a=nn(),r=await St("installedAt",""),u=await St("fakeUserId","");return{installFrom:n,version:a,installedAt:r,interfaceLang:e,deviceId:u}}var K6=1e5;function la(e){let{onParagraph:t,filterRule:n,id:a}=e;n=G6(n);let{stayOriginalSelectors:r,globalStyles:u,selectors:o,isTransformPreTagNewLine:i,lineBreakMaxTextCount:s,globalAttributes:c,isModifyImage:l,skipEditableCheck:p}=n,f={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},m=!1,d=null;function h(B){let{container:y,onFrame:S,onIgnoreElement:P,id:M}=B,x=document.createTreeWalker(y,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,D=>{let _=F(D);return _==NodeFilter.FILTER_ACCEPT?zt.mark(D,M,p):_==NodeFilter.FILTER_REJECT,_}),R=y;if(F(R)===NodeFilter.FILTER_REJECT)return;for(zt.mark(R,M,p);R;){if(o&&o.length>0){let{currentNode:D,isMatchedSelection:_}=T(x,R,o);if(D)R=D;else break;if(!_)continue}if(R.nodeType===Node.ELEMENT_NODE||R.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let D=R;if(D.nodeName==="IFRAME"){S&&S(D),b(),k0(f,!0),R=x.nextNode();continue}D.nodeType===Node.ELEMENT_NODE&&(u&&S0(D,u),c&&L0(D,c));let _=v0(D,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},D.immersiveTranslateComputedStyle||null);if(Mt(D,r)&&!_){C(D);let L=null;for(;!(L=x.nextSibling())&&x.parentNode(););R=L;continue}let U=Da(D);(!h3(f,D)||_)&&(b(),D.childNodes.length>0&&w(f,D,D.immersiveTranslateComputedStyle||null)),U&&D.shadowRoot?.mode==="open"&&(_?S?.(D.shadowRoot):h({...B,container:D.shadowRoot})),D.nodeType===Node.ELEMENT_NODE&&D.nodeName==="PRE"&&i&&Q6(D)}else if(R.nodeType===Node.TEXT_NODE)C(R);else throw new Error("should not be here");R=x.nextNode(),f.commonAncestorContainer&&R&&R.parentNode===f.commonAncestorContainer&&(f._currentStacks=[]),f.commonAncestorContainer&&R&&R.nodeType===Node.ELEMENT_NODE&&f._currentStacks.push(R)}function F(D){if(D.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Tn(D)){if(c){let L=Object.keys(c);if(L.length>0&&Mt(D,L))for(let k of L){let O=c[k];if(D.matches(k)){let $=c[k],z=Object.keys($);for(let Y of z){let q=$[Y];D.getAttribute(Y)!==q&&(q===null?D.removeAttribute(Y):D.setAttribute(Y,q))}break}}}if(!B.force&&zt.isMarked(D,M)||g3(D,M)||M0(D,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,stayOriginalSelectors:r})||D.nodeName==="IFRAME"&&!ur(D))return NodeFilter.FILTER_REJECT;let _=D.getBoundingClientRect(),{width:U,height:j}=_;if(D.nodeType===Node.ELEMENT_NODE){let L=window.getComputedStyle(D);if(D.immersiveTranslateComputedStyle={display:L.display,whiteSpace:L.whiteSpace,left:_.left+"px",right:_.right+"px",top:_.top+"px",bottom:_.bottom+"px"},D0(D.immersiveTranslateComputedStyle))return P&&P(D),NodeFilter.FILTER_REJECT;let E=v0(D,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},D.immersiveTranslateComputedStyle||null);if(Mt(D,r)&&E)return NodeFilter.FILTER_REJECT}return D.nodeName==="IMG"&&(U>48&&j>48?D.immersiveTranslateComputedStyle={display:"block"}:U>0&&j>0&&l!==!1&&(D.setAttribute("width",U),D.setAttribute("height",j))),!D.childNodes||D.childNodes&&D.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!f.isPreWhitespace&&(U>0&&U<4||j>0&&j<4)&&(D.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(D.nodeType===Node.TEXT_NODE){let _=D.textContent?.trim();if(!_)return f.isPreWhitespace?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let U=D.parentNode;if(U.getBoundingClientRect){let{width:j,height:L}=U.getBoundingClientRect();if(j>0&&j<4||L>0&&L<4)return NodeFilter.FILTER_REJECT}return s>0&&_.length>=s&&A0(D,s),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}h(e),f&&f.commonAncestorContainer&&f.flatNodes.length>0&&b();function T(B,y,S){let P=y.immersiveTranslateComputedStyle||null;if(d){if(!d.contains(y))if(m=!1,y&&y.nodeType===Node.ELEMENT_NODE)if(Uo(y,S))m=!0,d=y,b(),w(f,d,P);else return m=!1,y=B.nextNode(),{currentNode:y,isMatchedSelection:m};else return m=!1,y=B.nextNode(),{currentNode:y,isMatchedSelection:m}}else if(y&&y.nodeType===Node.ELEMENT_NODE)if(Uo(y,S))m=!0,d=y,b(),w(f,d,P);else return m=!1,y=B.nextNode(),{currentNode:y,isMatchedSelection:m};else return m=!1,y=B.nextNode(),{currentNode:y,isMatchedSelection:m};return{currentNode:y,isMatchedSelection:!0}}function b(){let B=J6(f,a);B&&t&&t(B),k0(f)}function C(B){if(!h3(f,B)){b(),k0(f);let y=B.parentNode;y&&w(f,y,y.computedStyle)}f.flatNodes.push(B)}function w(B,y,S){B.commonAncestorContainer=y;let P=I(S);B.isPreWhitespace=P}function I(B){return B&&B.whiteSpace&&B.whiteSpace.startsWith("pre")||B&&B.whiteSpace==="break-spaces"||!1}}function h3(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Da(t));let a=Y6(e),r=!0;return!n&&!a&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?r=!0:e.commonAncestorContainer&&(r=!1,e._currentStacks=[])),r}function G6(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let a=n!=="iframe";return t?a&&n!=="pre":a}),e}function V6(e,t,n){if(t){for(let a of t.childNodes)if(a.contains(n))return a}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function S0(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Mt(e,n))for(let r of n){let u=t[r];if(e.matches(r)){let o=e.style.cssText||"";o&&(o=o.trim()),o&&!o.endsWith(";")&&(o+=";"),e.style.cssText=o+u;break}}}}function Y6(e){return e&&e._currentStacks?e._currentStacks.some(t=>Da(t)):!1}function J6(e,t){let{flatNodes:n,commonAncestorContainer:a}=e;if(a&&n.length>0){if(!n.map(f=>f.textContent?.trim()||"").join(""))return null;if(n.length===1)return{ctxId:t,stepState:1,commonAncestorContainer:n[0].parentNode,rootNodes:[n[0]],flatNodes:n,isPreWhitespace:e.isPreWhitespace,variables:{}};let u=Z6(n,a);u||(u=a);let o=[];for(let f of n){let m=V6(e,u,f);m&&(o.includes(m)||o.push(m))}if(o.length<1)return null;let i=o[0],s=o[o.length-1],c=[],l=i,p=0;for(;l&&(c.push(l),l!==s);){if(p++,p>K6){N.warn("loop too many times for convert root nodes, break");break}l=l.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:n,commonAncestorContainer:u,variables:{},isPreWhitespace:e.isPreWhitespace}}else return null}function k0(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function D0(e){let t=e.top?parseInt(e.top):0,n=e.left?parseInt(e.left):0,a=e.right?parseInt(e.right):0,r=e.bottom?parseInt(e.bottom):0;return isNaN(t)&&(t=0),isNaN(n)&&(n=0),isNaN(a)&&(a=0),isNaN(r)&&(r=0),e.display==="none"||t<-1e3||n<-1e3||a<-1e3||r<-1e3}var zt={_marked_key:"immersive_translate_walked",isMarked(e,t){return C0(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Da(e)))return Io(e,this._marked_key)},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Da(e)))return at(e,this._marked_key,t,!1,n)},markWalk(e,t,n){if(!e||e.nodeType!==Node.ELEMENT_NODE||this.isSkipMarkEle(e))return;let a=ar(e,"markWalk")||"";return at(e,"markWalk",a+","+t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Da(e)):!1}};function Q6(e){let n=e.innerHTML.replace(/\n\n/g,"
");e.innerHTML=_e.sanitize(n)}function Z6(e,t){if(!e.length)return null;let n=e.map(a=>{let r=new Set;for(;(a=a.parentNode)&&(r.add(a),a!==t););return r});for(let a of n[0])if((a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&n.every(r=>r.has(a)))return a;return null}function A0(e,t){let n=e.textContent||"";if(n.trim().length<=t)return;let u=[". ","? ","! ","\u3002","\uFF1F","\uFF01"].reduce((o,i)=>{let s=n.lastIndexOf(i,t);return s>o?s:o},-1);if(u>1){let o=n[u-1]||"",i=n[u-2]||"",s=n[u+1]||"";o==="."||s==="."||s===")"||i==="."&&o==="S"||i.toUpperCase()==="M"&&(o.toUpperCase()==="R"||o.toUpperCase()==="S")?u=-1:isNaN(Number(o))||(u=-1)}if(u===-1)n.length>t+20&&A0(e,t+20);else{let o=n.slice(u+1);u++,o.startsWith(" ")&&u++;let i=e.splitText(u),s=document.createElement("br");i.parentNode?.insertBefore(s,i),u+10)for(let a of n){let r=t[a],u=Object.keys(r),o=Qm(e,[a]);for(let i of o)for(let s of u){let c=r[s];i.getAttribute(s)!==c&&(c===null?i.removeAttribute(s):i.setAttribute(s,c))}}}function y3(e,t,n,a,r,u){let o=Object.keys(t);if(o.length>0)for(let i of o){let s=t[i],c=Object.keys(s),l=e.querySelector(i);if(l)for(let p of c){let f=s[p];if(p==="translate"&&f==="no"){let d=l.innerText||l.textContent||"";if(!d.trim()||X6(l,r,u)||!Xm(d,n,a))continue}l.getAttribute(p)!==f&&(f===null?l.removeAttribute(p):l.setAttribute(p,f))}}}function L0(e,t){if(t){let n=Object.keys(t);if(n.length>0&&Mt(e,n))for(let r of n){let u=t[r];if(e.matches(r)){let o=t[r],i=Object.keys(o);for(let s of i){let c=o[s];e.getAttribute(s)!==c&&(c===null?e.removeAttribute(s):e.setAttribute(s,c))}break}}}}function M0(e,t){return Mt(e,t.excludeSelectors||[])?Mt(e,t.selectors||[])?!1:!Mt(e,t.stayOriginalSelectors||[]):!1}function Uo(e,t){if(t.length===0)return!1;let n=t.filter(a=>!a.endsWith("*")).map(a=>a+" *");return Mt(e,t.concat(n))}function X6(e,t,n){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,r=>NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let r=a.currentNode;if(r.nodeType===Node.TEXT_NODE&&parent){let u=r.textContent||"";if(u.includes("Copyright"))continue;if(tr(u,t,n))return!0}}return!1}g();g();var E3=["*://*/*","*","*://*"],T3="immersive-translate-wildcard-placeholder.com";function F0(e,t){let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(o=>E3.includes(o)))return e;let a=new URL(e);a.hash="",a.search="";let r=a.href,u=a.hostname;if(n&&n.length>0){let o=n.find(i=>{let s=i;if(i===u)return!0;if(E3.includes(i))return!0;if(!i.includes("*")&&i.includes("://")){try{let c=new URL(i);return c.pathname==="/"&&!i.endsWith("/")?c.hostname===u:t9(r,i)}catch{}return!1}else{let c,l=i;if(i.includes("://")){let T=i.split("://");c=T[0],c==="*"&&T.length>1&&(c="*",i="https://"+T[1])}else c="*",i="https://"+i;let p=i.replace(/\*/g,T3),f;try{f=new URL(p)}catch{return N.debug("invalid match pattern",p,"raw match value:",l),!1}let m=f.hostname,d=f.pathname;d==="/"&&(l.replace("://","").includes("/")||(d="/*"));let h=e9(c+":",x3(m),x3(d));if(h){let T=new URL(r);return T.port="",h.test(T.href)}else return!1}});if(o)return o}return null}function x3(e){return e.replaceAll(T3,"*")}function e9(e,t,n){let a="^";return e==="*:"?a+="(http:|https:|file:)":a+=e,a+="//",t&&(e==="file:"||(t==="*"?a+="[^/]+?":(t.match(/^\*\./)&&(a+="[^/]*?",t=t.substring(2)),a+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?a+="(/.*)?":n.includes("*")?(a+=n.replace(/\*/g,".*?"),a+="/?"):a+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):a+="/?",a+="$",new RegExp(a)}function sn(e,t){return F0(e,t)!==null}function t9(e,t){let n=new URL(e),a=new URL(t);return n.hostname===a.hostname&&n.pathname===a.pathname&&n.protocol===a.protocol&&n.port===a.port}async function ln(e){let{url:t,config:n,state:a}=e,r=new URL(t),u="auto",{translationParagraphLanguagePattern:o,translationService:i,translationServices:s,translationTheme:c,translationThemePatterns:l,translationUrlPattern:p,targetLanguage:f,sourceLanguageUrlPattern:m,immediateTranslationPattern:d}=n,h=ir(t,o),T=ir(t,d),b=i,C=Object.keys(s);for(let K of C){let se=s[K];if(ir(t,se)){b=K;break}}let w=c,I=Object.keys(l);for(let K of I){let se=l[K];if(se&&ir(t,se)){w=K;break}}let B=ir(t,p),y=C3(t,p);y||(y=sn(t,F4)),y||(y=sn(t,n.blockUrls));let S=C3(t,n.inputTranslationUrlPattern);S||(S=sn(t,n.inputTranslationBlockUrls));let P=sn(t,n.mutationBlockUrls),M=Object.keys(m),x={};for(let K of M){let se=m[K];if(se&&se.matches)for(let me of se.matches)x[me]=K}let R=Object.keys(x),F=F0(t,R);F&&(u=x[F]??"auto",x[F]&&x[F]!=="auto"&&an(x[F]));let D=f||"zh-CN",_=r.hostname,U=await yn(_),j=r.pathname+r.search+r.hash,L=await yn(j),E=`https://${U}.com/${L}`,k=await Yn(),O=await sd(),$=n.translationStartMode;$==="dynamic"&&T&&($="immediate");let z=b;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(z=n.inputTranslationService);let Y=b;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(Y=n.mouseHoverTranslationService);let q={targetLanguage:D,config:n,translationService:b,inputTranslationService:z,mouseHoverTranslationService:Y,isTranslateUrl:B,sourceLanguage:u,mainFrame:document.body,isTranslateExcludeUrl:y,isMutationTranslationExcludeUrl:P,isInputTranslationExcludeUrl:S,rule:n.generalRule,url:t,encryptedUrl:E,state:a?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:$,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:h,cache:n.cache,translationTheme:w},a):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:$,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:h,cache:n.cache,translationTheme:w},localConfig:k},ae=await jt.get(Nt,null);ae&&(q.user=ae),q.state.translationArea==="body"&&(q.config.generalRule.excludeTags=q.config.generalRule.excludeTags.filter(K=>!q.config.generalRule.bodyTranslateTags.includes(K)),q.config.generalRule.additionalExcludeSelectors=q.config.generalRule.additionalExcludeSelectors.filter(K=>K!==".btn"));let Q=n.translationServices[q.translationService]||{};Q.immediateTranslationTextCount!==void 0&&n9(Q.immediateTranslationTextCount)&&Q.immediateTranslationTextCount>=0&&(q.state.immediateTranslationTextCount=Q.immediateTranslationTextCount),q.translationService==="deepl"&&(Q&&Q.authKey&&Q.authKey.startsWith("immersive_")||Q&&Q.provider==="pro"&&q.user?.token)&&Q.immediateTranslationTextCountForImmersiveDeepl!==void 0&&Q.immediateTranslationTextCountForImmersiveDeepl>=0&&(q.state.immediateTranslationTextCount=Q.immediateTranslationTextCountForImmersiveDeepl),Q&&Q.translationDebounce&&typeof Q.translationDebounce=="number"&&(q.state.translationDebounce=Q.translationDebounce);let G=O.immediateTranslationTextCount;n.immediateTranslationTextCount!==G&&(q.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let fe=n.rules,he;globalThis.PDFViewerApplication?he=fe.find(K=>K.isPdf):globalThis.immersiveTranslateEbookViewer?he=fe.find(K=>K.isEbook):globalThis.immersiveTranslateEbookBuilder?he=fe.find(K=>K.isEbookBuilder):he=fe.find(K=>ir(t,K)),q.state.translationArea==="body"&&(q.rule.paragraphMinTextCount=1,q.rule.paragraphMinWordCount=1),he&&he.isEbookBuilder&&(q.state.translationStartMode="immediate");let re=n.generalRule;if(he&&(q.rule=eo(re,he)),q.rule.selectors.length>0&&(q.rule.paragraphMinTextCount=2,q.rule.paragraphMinWordCount=1),q.state.translationArea==="body"&&q.rule.excludeTags&&(q.rule.excludeTags=q.rule.excludeTags.filter(K=>!q.rule.bodyTranslateTags.includes(K)&&!q.rule.forceTranslateTags.includes(K))),q.rule.mainFrameSelector){let K=document.querySelector(q.rule.mainFrameSelector);K&&(q.mainFrame=K)}return q}function ir(e,t){if(!t)return!1;let{matches:n,excludeMatches:a,selectorMatches:r,excludeSelectorMatches:u}=t;return a&&a.length>0&&sn(e,a)?!1:n&&n.length>0&&sn(e,n)?!0:u&&u.length>0&&Oo(u)?!1:!!(r&&r.length>0&&Oo(r))}function C3(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:a}=t;return!!(n&&n.length>0&&sn(e,n)||a&&a.length>0&&Oo(a))}function n9(e){return typeof e=="number"}g();g();g();function w3(e,t,n,a){let r=t,u=S4[r]||[],o="";e&&u&&u.length>0&&u.forEach(c=>{let{name:l}=c;if(e&&n&&n[l]){let p=n[l];if(["borderRadius"].includes(l)&&(p+="px"),o+=`--immersive-translate-theme-${r}-${l}: ${p}; +`,t==="marker"&&l==="backgroundColor"&&typeof p=="string"){let{r:f,g:m,b:d}=o3(p);o+=`--immersive-translate-theme-${r}-${l}-rgb: ${f}, ${m}, ${d}; `}}});let i="";if(n&&n.textColor){let c=n.textColor;i+=` .immersive-translate-target-translation-theme-${r}-inner{color: ${c};} `}if(n&&n.zoom){let c=n.zoom;i+=` .immersive-translate-target-translation-theme-${r}-inner{font-size: max(13px, ${c}%);} `}let s="";o&&(s=`:root { ${o}} -`),i&&(s+=i),s?ia(e,s,"immersive-translate-user-custom-style"):a&&ia(e,"","immersive-translate-user-custom-style")}function sr(e,t){let a=Re().IMMERSIVE_TRANSLATE_INJECTED_CSS;ia(e,a,"immersive-translate-default-injected-css");let r=t.config.translationThemePatterns||{},u=t.state.translationTheme,o=r[u]||{};C3(e,u,o);let i="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?i+=t.rule.injectedCss.join(` +`),i&&(s+=i),s?ia(e,s,"immersive-translate-user-custom-style"):a&&ia(e,"","immersive-translate-user-custom-style")}function sr(e,t){let a=Re().IMMERSIVE_TRANSLATE_INJECTED_CSS;ia(e,a,"immersive-translate-default-injected-css");let r=t.config.translationThemePatterns||{},u=t.state.translationTheme,o=r[u]||{};w3(e,u,o);let i="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?i+=t.rule.injectedCss.join(` `):t.rule.injectedCss&&(i+=t.rule.injectedCss),t.rule.additionalInjectedCss&&Array.isArray(t.rule.additionalInjectedCss)&&t.rule.additionalInjectedCss.length>0?i+=` `+t.rule.additionalInjectedCss.join(` `):t.rule.additionalInjectedCss&&(i+=` -`+t.rule.additionalInjectedCss)),i&&ia(e,i,"immersive-translate-dynamic-injected-css")}g();async function w3(){let e="auto",t=[ya(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await Qe({text:nr(document.body),pageLangs:t})),e}g();g();function v3(e,t){return[e,!e||e.endsWith("/")?"":"/",t,".json"].join("")}function P0(e,t){let n=e;return t&&Object.keys(t).forEach(a=>{let r=t[a];if(r===void 0)return;let u=a9(a);if(typeof r=="object"||u){let o=r;u&&typeof o=="string"&&(o={tag:"a",href:o});let i=`<${a}>`,s=n.indexOf(i);if(s!==-1){let c=o.tag||"a",l=n.indexOf(``);if(l!==-1){let p=n.substring(s+i.length,l),f=Object.keys(o).filter(m=>m!=="tag").map(m=>`${m}="${o[m]}"`).join(" ");n=n.replace(`${i}${p}`,`<${c} ${f}>${p}`)}}}else if(r){let o=new RegExp("{"+a+"}","gm");n=n.replace(o,r.toString())}}),n}function iu(e,t,n){let a=e[t];if(!a)return n;let r=n.split("."),u="";do{u+=r.shift();let o=a[u];o!==void 0&&(typeof o=="object"||!r.length)?(a=o,u=""):r.length?u+=".":a=n}while(r.length);return a}function On(e,t,n,a,r){if(!e.hasOwnProperty(n))return t;let u=iu(e,n,t);return u===t&&n!==a&&(u=iu(e,a,t)),P0(u,r)}function a9(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}g();g();function _0(e,t,n=[],a){let r=["notranslate"];return a&&r.push(A4),e&&(r.push(`${J}-target-translation-theme-${e}`),t?r.push(`${ds}-theme-${e}`):r.push(`${cs}-theme-${e}`)),n.length>0&&r.push(...n),t?r.push(ds):r.push(cs),r}function B0(e){let t=["notranslate",v4];return e&&t.push(`${J}-target-translation-theme-${e}-inner`),t}function k3(e,t,n){let{rule:a,state:r}=n,{translationTheme:u}=r,{variables:o,isVertical:i}=e;o=o||[];let{text:s}=t,{wrapperPrefix:c,wrapperSuffix:l}=a,p=rr(n),f="afterend",m=p[0],d=p[1],h=`${m}(\\d+)${d}`,T=new RegExp(h,"g"),b=_e.sanitize(s);o.length>0&&(b=b.replace(T,B=>{let y=b.indexOf(B),A=b[y-1]===" ",P=b[y+B.length]===" ",M=B.slice(p[0].length,-p[1].length),x=Number(M);if(isNaN(x))return B;let R=o[Number(x)];if(R&&R.type==="element"){let F=R.value.outerHTML;return A||(F=" "+F),P||(F=F+" "),F}else N.error("variable type not supported",R,B);return B}));let C=_0(u,e.inline,a.translationClasses||[],e.preWhitespace);i&&C.push(k4);let w=B0(u),O="";return a.translationBlockStyle&&(O=`style="${a.translationBlockStyle}"`),b=`<${n.rule.targetWrapperTag} ${O} class="${C.join(" ")}" ${kn}="1"><${a.targetWrapperTag} class="${w.join(" ")}" ${kn}="1">${b}`,e.inline||(c==="smart"?b=`
${b}`:b=`${c}${b}`),e.inline&&(c!=="smart"?b=`${c}${b}`:b=`<${a.targetWrapperTag} class="notranslate" ${kn}="1"> ${b}`),l==="smart"?b=`${b}`:b=`${b}${l}`,{html:b,position:f}}function zo(e,t){let n=null,{stayOriginalSelectors:a,delimiters:r,isPreWhitespace:u}=t,o=[],i={};for(let s=0;s2&&(T=`<${r[2]}${h}>`),i[h]=c,o.push({text:T,type:"variable"})}else o.push({text:c.textContent||"",type:"text"});else{let d=c.textContent||"";p&&(d=sa(R0(c))),o.push({text:d,type:"text"})}else if(c.nodeType===Node.ELEMENT_NODE)if(c&&Mt(c,a)){let h=Object.keys(i).length,T=`${r[0]}${h}${r[1]}`;r.length>2&&(T=`<${r[2]}${h}>`),i[h]=c;let b=I0(o).endsWith(" ")?" ":"",C=sa(c.innerText||c.textContent),w=sa(c.nextSibling).startsWith(" ")?" ":"",O=uu(b+C+w),B=O[0]+T+O[1];if(b===" ")B=B.trimStart();else if(!B.startsWith(" ")){let y=uu(c.previousSibling)[1];y===""&&(y=" "),B=y+B}o.push({text:B,type:"variable"})}else{let d=I0(o).endsWith(" ")?" ":"",h=sa(c.innerText||c.textContent);p&&(h=sa(R0(c)));let T=sa(c.nextSibling).startsWith(" ")?" ":"",b=uu(d+h+T),C=b[0]+(c.innerText?.trim()||c.textContent?.trim()||"")+b[1];if(d===" ")C=C.trimStart();else{let w=uu(c.previousSibling)[1];w===""&&(c.nodeName==="A"||c.nodeName==="CODE")&&(w=" "),C=w+C}o.push({text:C,type:"text"})}else{let d=I0(o).endsWith(" ")?" ":"",h="";c.textContent&&(h=sa(R0(c))),d===" "&&(h=h.trimStart()),o.push({text:h,type:"text"})}}if(o&&o.length>0){let s="";for(let c=0;c0&&(p=o[c-1].text),c2){let l=c[2];return r9({delimiterTag:l,targetText:e.targetText,inline:r,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:a}).html}else{let l=k3(s,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return l.html}}function R0(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function r9(e){let{delimiterTag:t,inline:n,translationClasses:a,targetWrapperTag:r,wrapperPrefix:u,variables:o,preWhitespace:i,wrapperSuffix:s,translationTheme:c,translationBlockStyle:l}=e;o=o||[];let p=e.targetText;p=_e.sanitize(p);let f=p,m=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),d=new RegExp(`<${t}(\\d+)>`);o.length>0&&(f=f.replace(m,C=>{let w=f.indexOf(C),O=f[w-1]===" ",B=f[w+C.length]===" ",y=C.match(d);if(!y)return C;let A=y[1],P=Number(A);if(isNaN(P))return C;let M=o[Number(P)];if(M&&M.type==="element"){let x=M.value.outerHTML;return O||(x=" "+x),B||(x=x+" "),x}else if(M&&M.type==="text"){let x=M.value;return O||(x=" "+x),B||(x=x+" "),x}else N.error("variable type not supported",M,C);return C}));let h=_0(c,n,a||[],i),T=B0(c),b="";return l&&(b=`style="${l}"`),f=`<${r} ${b} class="${h.join(" ")}" ${kn}="1"><${r} class="${T.join(" ")}" ${kn}="1">${f}`,n||(u==="smart"?f=`
${f}`:f=`${u}${f}`),n&&(u!=="smart"?f=`${u}${f}`:f=`<${r} class="notranslate" ${kn}="1"> ${f}`),s==="smart"?f=`${f}`:f=`${f}${s}`,{html:f,position:"afterend"}}function I0(e){let t=e[e.length-1];return t?t.text:""}function cn(e){let t=e.rule.selectors,n=e.rule.excludeTags,a=e.rule.additionalExcludeTags,r=e.rule.excludeSelectors,u=e.rule.additionalExcludeSelectors;return e.state.translationArea==="body"&&(t=[],r=[]),{globalStyles:e.rule.globalStyles,globalAttributes:e.rule.globalAttributes,selectors:t,skipEditableCheck:e.rule.skipEditableCheck,lineBreakMaxTextCount:e.rule.lineBreakMaxTextCount,isTransformPreTagNewLine:e.rule.isTransformPreTagNewLine,excludeSelectors:n.concat(a).map(i=>i.toLowerCase()).filter(i=>i!=="code"&&i!=="img").concat(r).concat(u),blockSelectors:e.rule.allBlockTags.map(i=>i.toLowerCase()).concat(e.rule.extraBlockSelectors),extraBlockSelectors:e.rule.extraBlockSelectors,extraInlineSelectors:e.rule.extraInlineSelectors.concat(e.rule.additionalInlineSelectors),stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(i=>i.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)}}var u9={sanitize:e=>e};function qo(e,t){e.interruptEffectDOM||(e.walkContainer({id:e.id,container:t,filterRule:cn(e.ctx),onParagraph:su.bind(null,e),onFrame:n=>{N0(e,n,!0)},onIgnoreElement:n=>{e.ignoreResizeObserver?.observe(n)}}),Oa&&at(t,"consumeContainer",e.id))}function N0(e,t,n){try{if(e.injectCssToDocument(t,e.ctx),t instanceof HTMLIFrameElement){if(!ur(t))return;N.debug("onFrame fragment",t);let a=t.contentWindow?.document.body;a&&(cr(a,e,n),e.dynamicContainerObserver?.observe(a,{childList:!0,subtree:!0}))}else N.debug("onFrame shadowRoot",t.host),cr(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0})}catch{}}function cr(e,t,n=!0){let{globalStyles:a,globalAttributes:r}=cn(t.ctx),u=0;if(s(t,e,n))return;if(Tn(e)&&i(e)){o(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,l=>(Tn(l)&&(a&&S0(l,a),r&&L0(l,r)),s(t,l,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(Ut.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode();){Ut.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let l=c.currentNode;if(i(l))for(o(l);;){if(c.nextSibling()){let p=c.currentNode;if(Ut.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),i(p)){o(p);continue}else break}if(!c.parentNode())return}}}catch{}if(u==0&&e instanceof HTMLElement){o(e);return}return t.observeContainers;function o(c){Ut.clearMark(c),u++,t.immediateTranslateCapacity>=0?qo(t,c):(Oa&&at(c,"observeContainer",t.id),t.containerVisibleObserver?.observe(c))}function i(c){let l=c.nodeName.toLowerCase();if(c.shadowRoot)return N0(t,c.shadowRoot,n),!1;if(l==="iframe")return N0(t,c,n),!1;if(["script","#document-fragment","img"].includes(l))return!1;let p=t.containerRule;if(p.selectors&&p.selectors?.length>0)return Uo(c,p.selectors);if(p.pageHeight){let f=c.scrollHeight;if(f>0&&f0)return!0}return!1}function s(c,l,p){if(l.nodeName.toLowerCase()=="script")return l.childNodes.length==0||l.childNodes.length==1&&l.childNodes[0].nodeType==Node.TEXT_NODE;if(l.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(l.nodeType!==Node.ELEMENT_NODE||p&&Ut.isMarked(l,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&l.nodeName==="PRE")return!1;let m=cn(c.ctx);return!!M0(l,{excludeSelectors:m.excludeSelectors,selectors:m.selectors,stayOriginalSelectors:m.stayOriginalSelectors})}}function j0(e,t){if(!e.targetNodes)return;let n=e.state||"original",a=e.commonAncestorContainer;if(!Ut.isMarked(a,e.ctxId))return;let r=a.contains(e.rootNodes[0]),u=a.contains(e.targetNodes[0]);if(r&&u)n="dual";else if(r)n="original";else if(u)n="translation";else return;if(t!=n){e.state=t;try{if(n=="dual"&&t=="translation"&&(Ho(e.rootNodes),D3(e.commonAncestorContainer)),n=="original"&&t=="translation"){let o=O0(e.rootNodes);if(Ho(e.rootNodes),S3(o))return;lr(o,a,e.targetNodes||[]),D3(e.commonAncestorContainer)}if(n=="translation"&&t=="dual"){let o=e.targetNodes[0];lr(o,a,e.rootNodes||[]),L3(e.commonAncestorContainer)}if(n=="original"&&t=="dual"){let o=O0(e.rootNodes);if(S3(o))return;lr(o,a,e.targetNodes||[]),L3(e.commonAncestorContainer)}if(n=="translation"&&t=="original"){let o=O0(e.targetNodes);Ho(e.targetNodes),lr(o,a,e.rootNodes||[])}n=="dual"&&t=="original"&&Ho(e.targetNodes)}catch(o){N.error(o)}}}function S3(e){return!e||!Tn(e)?!1:e.classList.contains($t)}function D3(e){if(!Tn(e))return;e.querySelectorAll("font[class*=immersive-translate-target-translation]").forEach(a=>{at(a,"immersiveTranslateClassBak",a.className),a.className="notranslate immersive-translate-target-dual"});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.add("immersive-translate-state-dual")}function L3(e){if(!Tn(e))return;e.querySelectorAll("font[class*=immersive-translate-target-dual]").forEach(a=>{let r=ar(a,"immersiveTranslateClassBak");Oo(a,"immersiveTranslateClassBak"),a.className=r});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.remove("immersive-translate-state-dual")}function O0(e){return e?e[e.length-1].nextSibling:null}function Ho(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function lr(e,t,n){let a=e;t&&(a?n.forEach(r=>{a.parentNode?.insertBefore(r,a)}):n.forEach(r=>{t.appendChild(r)}))}var o9=bt(z0,300);async function su(e,t,n=!1){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||i9(t.rootNodes)||t.stepState>=2)return;t.stepState=2,Oa&&at(a,"onParseParagraph",e.id);let{ctx:r}=e,{rule:u}=r,o=rr(r),i=zo(t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:o,stayOriginalSelectors:r.rule.stayOriginalTags.concat(r.rule.stayOriginalTags).map(c=>c.toLowerCase()).concat(r.rule.stayOriginalSelectors).concat(r.rule.additionalStayOriginalSelectors)});if(!i)return;t.variables=i?.variables||{},t.text=i?.text;let s=await H0(t,{excludeLanguages:r?.config?.translationLanguagePattern?.excludeMatches||[],targetLanguage:r.targetLanguage,noTranslateRegexp:r.rule.noTranslateRegexp,delimiters:No(r.config.translationServices[r.translationService]?.placeholderDelimiters),minTextCount:n||r.state.translationArea==="body"?2:u.paragraphMinTextCount,minWordCount:n||r.state.translationArea==="body"?1:u.paragraphMinWordCount,isDetectParagraphLanguage:r.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:r.rule.ignoreZhCNandZhTW});if(s){if(N.debug("on paragraph",s.text,s),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(s))return;a.paragraphs.push(s),e.immediateTranslateCapacity>0||n?(s9(e,t.text),U0(e,t)):(Oa&&at(a,"observeParagraph",e.id),e.observeParagraphs.push(s),e.paragraphVisibleObserver?.observe(a))}return s}function i9(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Tn(t)&&t.classList.contains($t):!1}function s9(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function U0(e,t){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let n=e.autoIncreaseParagraphId++;t.id=n.toString(),e.paragraphEntities[n]=t,e.paragraphQueue.push(n.toString()),Oa&&at(t.commonAncestorContainer,"consumeParagraph",e.id),o9.call(e,e.ctx)}async function z0(e){if(this.interruptEffectDOM)return;let t=this.paragraphQueue;this.paragraphQueue=[];let n=[];for(let a=0;a0)try{await ua(a,t,(r,u,o)=>{let i=o.id,s=l9(e,i.toString());s&&c9.call(null,r,u,o,s,t,n)})}catch(r){N.error("translateCurrentQueue error",r);return}}function l9(e,t){return e.find(n=>n.id===t)}function c9(e,t,n,a,r,u){let o=!1,i=a;if(or(i.commonAncestorContainer,n.id)?.remove(),i&&(e||!t)){e||(N.error("translate error",n,e,t),e=new Error("no response from server"));let{rule:s}=r,c=n.id,l=document.createElement(s.targetWrapperTag);at(l,x4,c.toString()),l.classList.add("notranslate",$t,$t+"-error"),l.setAttribute("translate","no"),l.setAttribute("lang",r.targetLanguage);let p=a.rootNodes[a.rootNodes.length-1].nextSibling;lr(p,a.commonAncestorContainer,[l]),d9(r,e);let f=e.message.replaceAll(` -`,"");if(f=f.replaceAll('"',"""),i&&(i.error=new Error(f)),l){let m=On(It,"retryAllParagraphs",r.config.interfaceLanguage,"zh-CN"),d=On(It,"errorTooltipTitle",r.config.interfaceLanguage,"zh-CN"),h=`<${s.targetWrapperTag} class="${J}-error notranslate"><${s.targetWrapperTag} class="${J}-error-wrapper">\u{1F504}  \u2753`;l.innerHTML=_e.sanitize(h)}}else if(a){if(i.error=void 0,a.targetText=t?.text||"",!(a.text?.toLocaleLowerCase()==a.targetText?.toLocaleLowerCase())){let c=A3(a,r),l=document.createElement(r.rule.targetWrapperTag);l.classList.add("notranslate",$t),l.setAttribute("lang",r.targetLanguage),l.setAttribute(kn,"1");let p=u9.sanitize(c);l.innerHTML=p,a.targetNodes=[l],j0(a,u)}o=!0}else N.error("paragraph not found",n.id);document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}))}async function H0(e,t){let{text:n}=e,a=await Qe({text:n||"",minLength:15,pageLangs:[pt(),"en"]}),{targetLanguage:r}=t;if(!d3({text:n||"",delimiters:t.delimiters,minWordCount:t.minWordCount,minTextCount:t.minTextCount,noTranslateRegexp:t.noTranslateRegexp}))return null;let o=t.excludeLanguages||[],i=oo();t.isDetectParagraphLanguage&&(i="auto");let s=pt(),c=a;c==="auto"&&!t.isDetectParagraphLanguage&&(c=s),e.languageByLocal=c,e.languageByClient=i;let l=i!=="auto"?i:c;return Xn(l,r,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW})||o.length>0&&o.some(m=>Xn(l,m,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW}))?null:e}function d9(e,t){if(t.message.startsWith("ProQuota:")){t.message=t.message.replace("ProQuota:","");let n=t.message;try{n=JSON.parse(t.message).error}catch(u){N.error(u)}t.message=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${t.message} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`;let a=e.translationService,r=a=="deepl"?"OpenAI":"Deepl";e.translationService=="openai"?a="OpenAI":e.translationService=="deepl"&&(a="Deepl"),document.dispatchEvent(new CustomEvent(Nu,{detail:{type:"ProQuotaExceeded",subscriptionType:e.user?.subscription?.subscriptionType,translationService:a,anotherService:r,message:n}}))}}g();var m9=[];function M3(e){m9.push(e)}g();function F3(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(a){a.length>0&&(a[0].target.text.includes(qu)||q0(e).catch(u=>{N.error("translateTitle error:",u.name,u.message,u.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var $o="";async function q0(e){let t=document.title;if(!t||t.includes(qu))return;$o!==t&&($o=t);let n=await Qe({text:t,pageLangs:[pt(),"en"]});if(!jo(e,n))try{let a=await Aa({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n},e);a&&a.text&&(document.title=$o+qu+a.text)}catch(a){throw a}}function P3(e){e.rule.isTranslateTitle&&(document.title=$o)}g();var W0;function _3(e){let t=e.ctx.rule.aiRule;if(N.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=cn(e.ctx),a=n.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);n.excludeSelectors.splice(a,1);let r,u;document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(f=>{f.translated=!0,lu(e,f,n)});let o=t.streamingDelayTime||100;W0=new MutationObserver(f=>{f.forEach(function(m){if(Tn(m.target)&&!s(m)&&(l(m.target),m.addedNodes&&m.addedNodes.length&&m.addedNodes.forEach(d=>{l(d)}),!c(m)&&i())){let d=m.target===u;if(t.streamingDeepChild&&!d&&(d=m.target.parentNode===u),!d)return;m.addedNodes.forEach(h=>{let T=h.previousSibling;!T||T.translated||(T.translated=!0,setTimeout(()=>{T.childNodes[0]?.translated||(N.debug("\u7FFB\u8BD1\u4E0A\u4E00\u4E2A\u6BB5\u843D",T),lu(e,T,n))},o))})}})}),W0.observe(document.body,{attributes:!0,childList:!0,subtree:!0});function i(){return!!(t.streamingChange&&t.streamingSelector&&r||t.streamingChange&&t.messageContainerSelector&&t.messageStreamEndSelector&&u&&!u.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector))}function s(f){return t.streamingSelector&&f.target===r&&f.type==="attributes"&&!xn(f.target,[t.streamingSelector])?(p(),!0):t.streamingSelector&&f.removedNodes.length>0&&u&&u!=r?(f.removedNodes?.forEach(m=>{m===r&&p()}),!0):t.messageContainerSelector&&t.messageStreamEndSelector&&u&&u.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector)?(p(),!0):!1}function c(f){if(t.streamingSelector&&f.target.querySelector(t.messageWrapperSelector||"")&&!r){let m=f.target;return m.translated||(m.translated=!0,setTimeout(()=>{r||m.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(d=>{d.translated||(d.translated=!0,lu(e,d,n))})},o)),!0}else if(t.messageContainerSelector&&f.target.querySelector(t.messageContainerSelector||"")){let m=f.target;if(m.translated)return!0;m.translated=!0,setTimeout(()=>{m.querySelectorAll(t.messageContainerSelector).forEach(d=>{t.messageStreamEndSelector&&!d.querySelector(t.messageStreamEndSelector)||d.translated||(d.translated=!0,lu(e,d,n))})},o)}return!1}function l(f){t.streamingSelector&&xn(f,[t.streamingSelector])&&(r=f,N.debug("streamingNode",r)),xn(f,[t.messageWrapperSelector])&&(u=f,N.debug("markdownNode",u))}function p(){u&&setTimeout(()=>{u.childNodes.forEach(f=>f.translated=!1),N.debug("\u7ED3\u675F\u7FFB\u8BD1\u5168\u90E8",u),lu(e,u,n),r=void 0,u=null},o)}}function lu(e,t,n){la({id:e.id,container:t,filterRule:n,force:!0,onParagraph:a=>{su(e,a,!0)},onFrame:()=>{},onIgnoreElement:()=>{}})}function B3(){W0?.disconnect()}var ne=null;function Go(){return ne||null}function dr(e){g9(e),x9(e),b9(e),E9(e),sr(document,e),Dt("Translated"),y9(ne),h9(ne),M3(Nn),p9(ne)}function g9(e){e.state.translationArea==="main"&&e.rule.initialSelectorGlobalAttributes&&b3(document.body,e.rule.initialSelectorGlobalAttributes,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph)}function p9(e){_3(e)}function f9(){B3()}function h9(e){e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0});let t=[];e.ctx.rule.mainFrameSelector&&(t=[...document.querySelectorAll(e.ctx.rule.mainFrameSelector||"")]),t.length<=0&&(t=[document.body]),t.forEach(n=>{cr(n,e)})}async function b9(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=Date.now(),a=new URL(e.url).hostname,r=e.localConfig.tempTranslationUrlMatches||[],u=r.findIndex(i=>i.match===a&&i.expiredAt>t),o=!1;u>-1||(r.push({match:a,expiredAt:t+e.config.tempTranslateDomainMinutes*60*1e3}),o=!0),o&&await An({...e.localConfig,tempTranslationUrlMatches:[...r]})}}function y9(e){e.ctx.rule.isTranslateTitle&&(q0(e.ctx),e.titleDynamicObserver=F3(e.ctx))}function E9(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function x9(e){let t=hn();ne&&(t=ne.id);let n=cn(e);ne=ne||{},ne.ctx=e,ne.id=t,ne.paragraphQueue=ne.paragraphQueue||[],ne.rule={excludeSelectors:n.excludeSelectors||[],selectors:n.selectors||[]},ne.currentUrl=window.location.href,ne.containerRule={pageHeight:screen.availHeight,selectors:n.selectors},ne.translationService=e.translationService,ne.paragraphEntities=ne.paragraphEntities||{},ne.autoIncreaseParagraphId=ne.autoIncreaseParagraphId||1,ne.interruptEffectDOM=!1,ne.urlChangeDelay=e.rule.urlChangeDelay,ne.immediateTranslateCapacity=e.state.immediateTranslationTextCount,ne.observeContainers=ne.observeContainers||[],ne.observeParagraphs=ne.observeParagraphs||[],ne.dynamicContainerObserver=ne.dynamicContainerObserver||k9(ne),ne.ignoreResizeObserver=ne.ignoreResizeObserver||A9(ne),ne.containerVisibleObserver=ne.containerVisibleObserver||C9(ne),ne.paragraphVisibleObserver=ne.paragraphVisibleObserver||w9(ne),ne.injectCssToDocument=Ko,ne.walkContainer=la,ne.translateState=e.state.translationMode||e.config.translationMode||"dual",ne.allInlineWindows=[window],window.onerror=T9(ne,e),window.immersiveTranslateSwitchTranslateState=K0.bind(ne)}function I3(e,t){t.getRootNode()instanceof ShadowRoot?Ko(t.getRootNode(),e):Ko(t.ownerDocument,e),$0(e)}function $0(e){if(ne)return;ne={},ne.ctx=e,ne.id=hn(),ne.paragraphQueue=[],ne.injectCssToDocument=Ko;let t=cn(e);ne.rule={excludeSelectors:t.excludeSelectors,selectors:t.selectors||[]},ne.translationService=e.mouseHoverTranslationService,ne.currentUrl=window.location.href,ne.paragraphEntities={},ne.autoIncreaseParagraphId=1,ne.interruptEffectDOM=!1,ne.urlChangeDelay=e.rule.urlChangeDelay,ne.translateState=e.config.translationMode||"dual",ne.observeContainers=[],ne.observeParagraphs=[],ne.allInlineWindows=[window],window.switchTranslateState=K0.bind(ne)}function Nn(e=!0){ne&&(Dt("Original"),f9(),ne.interruptEffectDOM=!0,ne.ignoreResizeObserver?.disconnect(),ne.dynamicContainerObserver?.disconnect(),ne.containerVisibleObserver?.disconnect(),ne.paragraphVisibleObserver?.disconnect(),ne.titleDynamicObserver?.disconnect(),P3(ne.ctx),s3(),l3(),e&&K0.call(ne,"original"),Object.values(ne.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),ne=null)}function T9(e,t){e.interruptEffectDOM=!1;let n;return function(a){let r=a.message,u=!1;return r?.indexOf("Minified React error")>=0&&(u=!0),u&&(clearTimeout(n),Nn(),n=setTimeout(()=>{dr(t)},e.urlChangeDelay||2e3)),!0}}function C9(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{a.intersectionRatio>0&&(qo(e,a.target),n.unobserve(a.target))})})}function w9(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{if(a.intersectionRatio>0){let r=a.target;(r.paragraphs||[]).forEach(o=>{U0(e,o)}),n.unobserve(r)}})})}var R3;function v9(e){if(e.urlChangeDelay<=0)return!1;let n=(window.location.href||"").split("#")[0];return e.currentUrl.split("#")[0]!=n?(clearTimeout(R3),e.translateState=="original"?!1:(Nn(e.urlChangeDelay>20),R3=setTimeout(()=>{let r=e.ctx;dr(r)},e.urlChangeDelay),!0)):!1}function k9(e){return new MutationObserver(t=>{if(!v9(e)&&!e.interruptEffectDOM)for(let n of t){let a=e.ctx.rule.mutationObserverLimitTargetSelectors;if(a.length>0&&!xn(n.target,a))return;if((n.addedNodes||[]).length<=0||n.target.nodeType!==Node.ELEMENT_NODE||!Ut.isSkipMarkEle(n.target)&&!Ut.isMarked(n.target,e.id))continue;let u=(n.target?.paragraphs||[]).reduce((o,i)=>{let s=i.rootNodes||[],c=i.targetNodes||[];return[...o,...s,...c]},[]);if(n.addedNodes.length>0&&n.addedNodes.length===n.target.childNodes.length&&xn(n.target,e.ctx.rule.mutationObserverContainerSelectors)){Ut.clearMark(n.target),n.target.paragraphs=void 0,qo(e,n.target);return}n.addedNodes.forEach((o,i)=>{o.nodeType===Node.ELEMENT_NODE&&(u.includes(o)||Mt(o,e.ctx.rule.mutationExcludeSelectors)||cr(o,e))})}})}function A9(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let a of t){if(a.target.nodeType!==Node.ELEMENT_NODE)return;let r=a.target,u=globalThis.getComputedStyle(r);D0(u)||(n.unobserve(a.target),cr(r,e))}})}function K0(e){this.translateState=e,Object.values(this.paragraphEntities).forEach(t=>{j0(t,e)}),e=="original"&&document.querySelectorAll(`.${$t}`).forEach(t=>t.remove())}function Ko(e,t){if(e instanceof HTMLIFrameElement){sr(e.contentDocument,t);return}sr(e,t)}async function O3(e){let t=Je(),n="auto";if(fe()){let a="";e.rule.isEbook||e.rule.isEbookBuilder?(a=w0(e.mainFrame),n=await Qe({text:a,pageLangs:["en"]})):(a=nr(e.mainFrame).slice(0,1e3),n=await Qe({text:a,pageLangs:[ya(),"en"]}))}else if(t)n=await Qe({text:nr(e.mainFrame).slice(0,1e3),pageLangs:[ya(),"en"]});else if(e.rule.isEbook||e.rule.isEbookBuilder){let a="";a=w0(e.mainFrame),n=await Qe({text:a,pageLangs:["en"]})}else n=await Ld();return n==="auto"&&(n=await w3()),xd(n),n}async function N3(){if(!ne)return;document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=ne.paragraphEntities,t=Object.keys(e);for(let n of t){let a=e[n];if(a.error){ne.paragraphQueue.push(n);let u=a.commonAncestorContainer.querySelector(`[${zu}='${n}']`);u&&u.remove()}}z0.call(ne,ne.ctx)}g();g();var j3={"zh-CN":{"languages.en":"\u82F1\u8BED","languages.ja":"\u65E5\u8BED","languages.ko":"\u97E9\u8BED","languages.es":"\u897F\u73ED\u7259\u8BED","languages.fr":"\u6CD5\u8BED","languages.de":"\u5FB7\u8BED","languages.it":"\u610F\u5927\u5229\u8BED","languages.pt":"\u8461\u8404\u7259\u8BED","languages.ru":"\u4FC4\u8BED","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"},"zh-TW":{"languages.en":"\u82F1\u8A9E","languages.ja":"\u65E5\u8A9E","languages.ko":"\u97D3\u8A9E","languages.es":"\u897F\u73ED\u7259\u8A9E","languages.fr":"\u6CD5\u8A9E","languages.de":"\u5FB7\u8A9E","languages.it":"\u610F\u5927\u5229\u8A9E","languages.pt":"\u8461\u8404\u7259\u8A9E","languages.ru":"\u4FC4\u8A9E","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"}},U3={...It,"zh-CN":{...j3["zh-CN"],...It["zh-CN"]},"zh-TW":{...j3["zh-TW"],...It["zh-TW"]}},z3=U3;function mr(e,t,n){return On(U3,e,t,Wu,n)}var Vo=(e,t,n,a)=>{let r=D4[e]||e,u=L4[e],o=M4[e],i={"zh-CN":u,"zh-TW":o,en:r};if(n)return i[e]?i[e]:r;if(i[t]){let s=i[t];return a||e==="auto"||e==="placeholder"?s:`${s} (${r})`}else return r};g();g();function gr(e){Ga(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(a=>{N.error("send content message request failed",e,a)}),document.querySelectorAll("iframe").forEach(a=>{a.contentWindow&&a.contentWindow.postMessage({author:Iu,payload:e},"*")});let n=new CustomEvent($n,{detail:e});globalThis.document.dispatchEvent(n)}function G0(e){let t=e.shortcuts||{},a=Object.keys(t).reduce((u,o)=>(u[t[o]]=o,u),{}),r=Object.keys(a);for(let u of r){let o=u.replace(/MacCtrl/ig,"Ctrl");o&&Ye(o,i=>{i.preventDefault(),gr({method:a[u],data:{trigger:"shortcut"}})})}}g();g();g();g();g();var ei,ve,K3,S9,cu,H3,G3,Qo={},V3=[],D9=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ca(e,t){for(var n in t)e[n]=t[n];return e}function Y3(e){var t=e.parentNode;t&&t.removeChild(e)}function Y0(e,t,n){var a,r,u,o={};for(u in t)u=="key"?a=t[u]:u=="ref"?r=t[u]:o[u]=t[u];if(arguments.length>2&&(o.children=arguments.length>3?ei.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(u in e.defaultProps)o[u]===void 0&&(o[u]=e.defaultProps[u]);return Yo(e,o,a,r,null)}function Yo(e,t,n,a,r){var u={type:e,props:t,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++K3};return r==null&&ve.vnode!=null&&ve.vnode(u),u}function Kt(e){return e.children}function Jo(e,t){this.props=e,this.context=t}function pr(e,t){if(t==null)return e.__?pr(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?Yo(m.type,m.props,m.key,m.ref?m.ref:null,m.__v):m)!=null){if(m.__=n,m.__b=n.__b+1,(f=b[l])===null||f&&m.key==f.key&&m.type===f.type)b[l]=void 0;else for(p=0;p=n.__.length&&n.__.push({__V:ni}),n.__[e]}function De(e){return mu=1,P9(mg,e)}function P9(e,t,n){var a=ri(gu++,2);if(a.t=e,!a.__c&&(a.__=[n?n(t):mg(void 0,t),function(u){var o=a.__N?a.__N[0]:a.__[0],i=a.t(o,u);o!==i&&(a.__N=[i,a.__[1]],a.__c.setState({}))}],a.__c=tt,!tt.u)){tt.u=!0;var r=tt.shouldComponentUpdate;tt.shouldComponentUpdate=function(u,o,i){if(!a.__c.__H)return!0;var s=a.__c.__H.__.filter(function(l){return l.__c});if(s.every(function(l){return!l.__N}))return!r||r.call(this,u,o,i);var c=!1;return s.forEach(function(l){if(l.__N){var p=l.__[0];l.__=l.__N,l.__N=void 0,p!==l.__[0]&&(c=!0)}}),!!c&&(!r||r.call(this,u,o,i))}}return a.__N||a.__}function Ve(e,t){var n=ri(gu++,3);!ve.__s&&dg(n.__H,t)&&(n.__=e,n.i=t,tt.__H.__h.push(n))}function ui(e){return mu=5,X0(function(){return{current:e}},[])}function X0(e,t){var n=ri(gu++,7);return dg(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function da(e,t){return mu=8,X0(function(){return e},t)}function oi(e){var t=tt.context[e.__c],n=ri(gu++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(tt)),t.props.value):e.__}function _9(){for(var e;e=cg.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ai),e.__H.__h.forEach(Z0),e.__H.__h=[]}catch(t){e.__H.__h=[],ve.__e(t,e.__v)}}ve.__b=function(e){typeof e.type!="function"||e.o||e.type===Kt?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),tt=null,rg&&rg(e)},ve.__r=function(e){ug&&ug(e),gu=0;var t=(tt=e.__c).__H;t&&(Q0===tt?(t.__h=[],tt.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=ni,n.__N=n.i=void 0})):(t.__h.forEach(ai),t.__h.forEach(Z0),t.__h=[])),Q0=tt},ve.diffed=function(e){og&&og(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(cg.push(t)!==1&&ag===ve.requestAnimationFrame||((ag=ve.requestAnimationFrame)||B9)(_9)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==ni&&(n.__=n.__V),n.i=void 0,n.__V=ni})),Q0=tt=null},ve.__c=function(e,t){t.some(function(n){try{n.__h.forEach(ai),n.__h=n.__h.filter(function(a){return!a.__||Z0(a)})}catch(a){t.some(function(r){r.__h&&(r.__h=[])}),t=[],ve.__e(a,n.__v)}}),ig&&ig(e,t)},ve.unmount=function(e){sg&&sg(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(a){try{ai(a)}catch(r){t=r}}),n.__H=void 0,t&&ve.__e(t,n.__v))};var lg=typeof requestAnimationFrame=="function";function B9(e){var t,n=function(){clearTimeout(a),lg&&cancelAnimationFrame(t),setTimeout(e)},a=setTimeout(n,100);lg&&(t=requestAnimationFrame(n))}function ai(e){var t=tt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),tt=t}function Z0(e){var t=tt;e.__c=e.__(),tt=t}function dg(e,t){return!e||e.length!==t.length||t.some(function(n,a){return n!==e[a]})}function mg(e,t){return typeof t=="function"?t(e):t}g();g();var fr={},R9={root:"",lang:"en",fallbackLang:"en"};function el(e,t){let n=Object.assign({},R9,e);fr=t||fr;let[a,r]=De(n.lang),[u,o]=De(fr),[i,s]=De(!1),c=p=>{if(u.hasOwnProperty(p))return;s(!1);let f=v3(n.root||"",p);n.getUrl&&(f=n.getUrl(n.root||"",p),fetch(f).then(m=>m.json()).then(m=>{fr[p]=m,o({...fr}),s(!0)}).catch(m=>{o({...fr}),s(!0)}))};return Ve(()=>{c(n.fallbackLang||"en"),c(a)},[a]),{lang:a,setLang:r,t:(p,f)=>{if(!u.hasOwnProperty(a))return p;let m=iu(u,a,p);return m===p&&a!==n.fallbackLang&&(m=iu(u,n.fallbackLang,p)),P0(m,f)},isReady:i}}g();g();var I9=0;function V(e,t,n,a,r){var u,o,i={};for(o in t)o=="ref"?u=t[o]:i[o]=t[o];var s={type:e,props:i,key:n,ref:u,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--I9,__source:r,__self:a};if(typeof e=="function"&&(u=e.defaultProps))for(o in u)i[o]===void 0&&(i[o]=u[o]);return ve.vnode&&ve.vnode(s),s}var nl=ti(null),tl={root:"assets",lang:"en",fallbackLang:"en"},gg=e=>{let{t,setLang:n,lang:a,isReady:r}=el({root:e.root||tl.root,lang:e.lang||tl.lang,fallbackLang:e.fallbackLang||tl.fallbackLang,getUrl:e.getUrl},e.translations);return V(nl.Provider,{value:{t,setLang:n,lang:a,isReady:r},children:e.children})};g();g();function pg(e,t,n){let a=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),a=t!=="auto"?n[t].matches:[];let r={},u=Object.keys(n);for(let c of u){let p=n[c].matches;for(let f of p)r[f]||(r[f]=[]),r[f].push(c)}let o=r[e];if(o&&o.length>0)for(let c of o)n[c].matches.indexOf(e)>-1&&(n[c]={...n[c],matches:n[c].matches.filter(p=>p!==e)});let i=new Set(a);if(t==="auto")return{...n};i.add(e);let s=Array.from(i);return{...n,[t]:{...n[t],matches:s}}}g();g();function al(){return V("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[V("path",{d:"M10.3873 2.29166C10.6319 2.29193 10.8664 2.38929 11.0392 2.56234C11.2121 2.73539 11.3092 2.96998 11.3092 3.21457V4.07811L12.1175 4.38332C12.7273 4.61277 13.2952 4.94074 13.7988 5.35416L14.4675 5.90207L15.2165 5.46978L15.2394 5.45624C15.3787 5.37479 15.5373 5.332 15.6988 5.33228C15.861 5.3325 16.0203 5.37522 16.1608 5.45618C16.3014 5.53715 16.4182 5.65353 16.4998 5.79374L16.8925 6.47395C17.0145 6.68593 17.0475 6.93764 16.9843 7.17391C16.921 7.41019 16.7666 7.61173 16.555 7.73436L16.5321 7.74791L15.7842 8.17916L15.9227 9.0302C16.031 9.67953 16.031 10.3423 15.9227 10.9917L15.781 11.8458L16.531 12.2781L16.5467 12.2875C16.758 12.4101 16.9122 12.6115 16.9754 12.8475C17.0387 13.0835 17.0059 13.335 16.8842 13.5469L16.5154 14.1844C16.3932 14.3961 16.1919 14.5507 15.9558 14.6141C15.7196 14.6776 15.468 14.6448 15.256 14.5229L15.2415 14.5135L14.4904 14.0802L13.8206 14.6323C13.3125 15.0519 12.7384 15.3845 12.1217 15.6167L11.3133 15.9219V16.7864C11.3132 16.9078 11.2891 17.028 11.2425 17.14C11.1958 17.2521 11.1276 17.3539 11.0415 17.4395C10.9555 17.5251 10.8535 17.5929 10.7412 17.6391C10.6289 17.6852 10.5087 17.7087 10.3873 17.7083H9.61229C9.3677 17.708 9.13322 17.6107 8.96037 17.4376C8.78751 17.2646 8.69042 17.03 8.69042 16.7854V15.9219L7.88209 15.6167C7.27233 15.3872 6.70437 15.0592 6.20084 14.6458L5.53209 14.0979L4.78313 14.5302L4.76021 14.5437C4.62084 14.6252 4.46226 14.668 4.30084 14.6677C4.13864 14.6675 3.97932 14.6248 3.83877 14.5438C3.69823 14.4628 3.58135 14.3464 3.49979 14.2062L3.10709 13.526C2.98505 13.3141 2.95205 13.0623 3.01532 12.8261C3.07858 12.5898 3.23296 12.3882 3.44459 12.2656L3.4675 12.2521L4.21542 11.8208L4.07688 10.9698C3.96856 10.3204 3.96856 9.65766 4.07688 9.00832L4.21854 8.1552L3.46959 7.72186L3.45709 7.70832C3.24914 7.58489 3.09787 7.38486 3.03575 7.15116C2.97362 6.91746 3.00559 6.66872 3.12479 6.45832L3.49354 5.82082C3.57469 5.68049 3.69133 5.56397 3.83175 5.48297C3.97217 5.40197 4.13144 5.35934 4.29354 5.35936C4.45497 5.35908 4.61355 5.40187 4.75292 5.48332L4.7675 5.49166L5.51854 5.92499L6.18834 5.37291C6.69646 4.95329 7.27054 4.62067 7.88729 4.38853L8.69563 4.08332V3.21874C8.69452 2.97433 8.79041 2.73945 8.96226 2.56565C9.13411 2.39185 9.36788 2.29331 9.61229 2.29166H10.3873ZM10.3873 1.04166H9.61229C9.03636 1.04193 8.4841 1.27084 8.07685 1.67809C7.66961 2.08533 7.4407 2.6376 7.44042 3.21353C6.69518 3.49423 6.00146 3.89618 5.38729 4.40312L5.37271 4.39478C4.87362 4.10685 4.2806 4.02894 3.72407 4.17818C3.16753 4.32742 2.69307 4.6916 2.405 5.19062L2.03729 5.83332C1.74928 6.33229 1.67121 6.92522 1.82025 7.48173C1.96929 8.03825 2.33324 8.51279 2.83209 8.80103L2.84771 8.80936C2.78023 9.20444 2.74539 9.6044 2.74354 10.0052C2.74367 10.3971 2.77572 10.7883 2.83938 11.175L2.81646 11.1885C2.56927 11.3311 2.35259 11.5209 2.1788 11.7472C2.00501 11.9735 1.87752 12.2319 1.80361 12.5075C1.7297 12.7831 1.71083 13.0706 1.74807 13.3535C1.7853 13.6364 1.87792 13.9091 2.02063 14.1562L2.41334 14.8364C2.55638 15.0837 2.74681 15.3003 2.97371 15.4738C3.20061 15.6473 3.45953 15.7743 3.73561 15.8475C4.01169 15.9208 4.29952 15.9388 4.58259 15.9007C4.86566 15.8625 5.13841 15.7688 5.38521 15.625L5.40813 15.6114C6.01714 16.1105 6.70362 16.5067 7.44042 16.7844C7.44028 17.0697 7.49635 17.3523 7.60542 17.616C7.7145 17.8797 7.87444 18.1193 8.07612 18.3212C8.27779 18.523 8.51726 18.6832 8.78084 18.7925C9.04441 18.9018 9.32694 18.9582 9.61229 18.9583H10.3873C10.9632 18.958 11.5155 18.7291 11.9227 18.3219C12.33 17.9146 12.5589 17.3624 12.5592 16.7864C13.3043 16.5061 13.9981 16.1045 14.6123 15.5979L14.6269 15.6062C15.126 15.8942 15.719 15.9721 16.2755 15.8228C16.8321 15.6736 17.3065 15.3094 17.5946 14.8104L17.9623 14.1729C18.2503 13.6739 18.3284 13.081 18.1793 12.5245C18.0303 11.968 17.6663 11.4934 17.1675 11.2052L17.1519 11.1969C17.2194 10.8018 17.2542 10.4018 17.256 10.001C17.2559 9.60915 17.2239 9.21792 17.1602 8.83124L17.1831 8.8177C17.4303 8.67516 17.647 8.48531 17.8208 8.259C17.9946 8.03269 18.1221 7.77435 18.196 7.49875C18.2699 7.22314 18.2888 6.93568 18.2515 6.65278C18.2143 6.36987 18.1217 6.09708 17.979 5.84999L17.5863 5.16978C17.4437 4.92202 17.2537 4.70485 17.027 4.53072C16.8003 4.3566 16.5415 4.22895 16.2654 4.1551C15.9893 4.08126 15.7013 4.06267 15.418 4.1004C15.1346 4.13814 14.8616 4.23145 14.6144 4.37499L14.5915 4.38853C13.9824 3.88946 13.296 3.49327 12.5592 3.21561C12.5593 2.93026 12.5032 2.64768 12.3942 2.384C12.2851 2.12031 12.1252 1.8807 11.9235 1.67883C11.7218 1.47695 11.4823 1.31678 11.2188 1.20746C10.9552 1.09813 10.6726 1.04179 10.3873 1.04166Z",fill:"#666666"}),V("path",{d:"M10.0003 7.91666C10.4124 7.91666 10.8152 8.03884 11.1578 8.26776C11.5004 8.49668 11.7674 8.82205 11.9251 9.20273C12.0828 9.58341 12.124 10.0023 12.0436 10.4064C11.9632 10.8106 11.7648 11.1818 11.4735 11.4731C11.1821 11.7645 10.8109 11.9629 10.4068 12.0433C10.0026 12.1237 9.58375 12.0824 9.20307 11.9247C8.82239 11.7671 8.49702 11.5 8.2681 11.1574C8.03918 10.8148 7.91699 10.412 7.91699 9.99999C7.91699 9.44745 8.13649 8.91755 8.52719 8.52685C8.91789 8.13615 9.44779 7.91666 10.0003 7.91666ZM10.0003 6.66666C9.34106 6.66666 8.69659 6.86215 8.14843 7.22842C7.60026 7.5947 7.17302 8.11529 6.92073 8.72438C6.66844 9.33346 6.60243 10.0037 6.73104 10.6503C6.85966 11.2969 7.17713 11.8908 7.6433 12.357C8.10948 12.8232 8.70342 13.1407 9.35003 13.2693C9.99663 13.3979 10.6669 13.3319 11.2759 13.0796C11.885 12.8273 12.4056 12.4001 12.7719 11.8519C13.1382 11.3037 13.3337 10.6593 13.3337 9.99999C13.3337 9.11593 12.9825 8.26809 12.3573 7.64297C11.7322 7.01785 10.8844 6.66666 10.0003 6.66666Z",fill:"#666666"})]})}g();function fg(e,t=2e3){return n=>{let a,r=0;return u=>{++r==e&&(n(u),r=0),clearTimeout(a),a=setTimeout(()=>r=0,t)}}}g();function hg(e){let t;try{t=new URL(e)}catch{return!1}let n=Bd(),a="";try{a=new URL(n).hostname}catch{}return a&&t.hostname===a?!0:!(O9(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function O9(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}g();function bg(e){let t=e.split(".");return t.length>2?(t[0]="*",t.join(".")):null}g();function yg(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}g();g();function zt(){return oi(nl)}function jn(e){let{items:t,maxWidth:n,className:a}=e,{lang:r}=zt();return n=n||(r==="en"?144:160),V("select",{autoComplete:"off",class:a||"min-select",style:{maxWidth:`${n}px`},value:t.find(u=>u.selected)?.value,onChange:u=>{let o=u.target.value,i=t.find(s=>s.value===o);i&&i.onSelected(i)},children:t.map((u,o)=>V("option",{value:u.value,selected:u.selected,children:u.label},"selectlink"+o))})}g();var ii="DROP_DOWN_DEFAULT_VALUE";function rl(e){let{showArrow:t,onSelected:n,className:a,menus:r,maxWidth:u}=e;a=a||"",t=t??!0,u=u||80;let o=ui(null);return V("select",{ref:o,autoComplete:"off",class:`text-label min-select ${t?"":"min-select-no-arrow"} ${a||""}`,value:ii,style:{maxWidth:`${u}px`},onChange:i=>{i.preventDefault();let s=i.target.value;if(o.current&&s!==ii){o.current.value=ii,o.current?.dispatchEvent(new Event("change"));let c=r.find(l=>l.value===s);c&&n(c)}},children:[{value:ii,label:e.label}].concat(r).map((i,s)=>V("option",{value:i.value,children:i.label},"option-"+s))})}g();function ul(e){let{field:t,onChange:n,value:a}=e;a=a||t.default||"";let{t:r}=zt(),u=t.name;return t.label&&(u=t.label),t.labelKey&&(u=r(t.labelKey)),t.type==="select"?V("div",{class:"flex justify-between items-center mb-2",children:[V("label",{class:"inline-block",children:[u,"\uFF1A"]}),V(jn,{items:t.options.map(o=>({label:`${o.label?r(o.label):o.value}`,value:o.value,selected:a===o.value,onSelected:()=>{n(o.value)}}))})]}):null}g();g();function pu(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var N9=({date:e})=>{let{t}=zt(),[n,a]=De(!1);return Ve(()=>{setTimeout(()=>{a(!0)},5e3)},[]),n?null:V("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},j9=({minVersion:e})=>{let{t}=zt();return V("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},U9=()=>{let{t:e}=zt();return V("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:"https://immersivetranslate.com/docs/installation/"})}})},z9=({message:e,handleSyncing:t,date:n})=>{let{t:a}=zt();return V("p",{class:"text-sm",children:[a("failToSyncRules")," ",V("a",{onClick:t,children:a("retry")}),V("br",{}),a("failedReason"),"\uFF1A",e,V("br",{}),a("currentRuleVersion"),"\uFF1A",n]})};function ol(e){let{isShowError:t,request:n}=e,[a,r]=De(null),{t:u}=zt(),[o,i]=De(null),[s,c]=De(null),[l,p]=De(""),[f,m]=De(!1),[d,h]=De(!1),[T,b]=De(!1),[C,w]=De(null),[O,B]=De(null),y=nn(),A=async()=>{p("");let P=o;if(o===null)try{let M=await n({url:Pr});M?(i(M),P=M,m(!0)):(p(u("unknownError")),c(null))}catch(M){c(null),p(M.message);return}P!==null?(e.setStorageBuildinConfig(P),c(!1),r(P.buildinConfigUpdatedAt)):(p(u("canNotFetchRemoteRule")),c(null))};return Ve(()=>{Jn().then(P=>{let M=P.buildinConfigUpdatedAt;w(P);let x=new Date(M);if(r(M),y==="0.0.0"){b(!0);return}n({url:Pr}).then(R=>{let F=R,D=F.minVersion,_=y;i(F);let U=F.latestVersion;if(U&&(pu(_,U)?B(!0):B(!1)),pu(_,D)){let j=F.buildinConfigUpdatedAt;new Date(j)>x?(c(!0),A()):c(!1)}else h(!0),c(null)}).catch(R=>{c(null),p(R.message)})})},[]),Ve(()=>{Jn().then(P=>{w(P)})},[a]),C?V("div",{class:"text-sm mt-2",style:{maxWidth:218},children:T?V(U9,{}):l?t===!1?null:V(z9,{handleSyncing:A,message:l,date:a||""}):d?t===!1?null:V(j9,{minVersion:o.minVersion}):s===null||s===!0?null:f?V(N9,{date:a}):null}):null}g();var si='',il="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMTEuNjIzLS4zMTguODQ1Yy0uMjA4LjIyMi0uNTI3LjMzMy0uOTI4LjMzM2gtMS4zM1Y5LjI0MmgxLjMzWm05Ljg0NiAxLjc4OGMuMzg4IDAgLjY2NS4xNTIuODQ1LjQ1Ny4xNTIuMjY0LjIzNS41ODIuMjYzLjk4NHYuMzE5YzAgLjQ5OS0uMDgzLjg4Ny0uMjYzIDEuMTkyLS4xOC4zMDQtLjQ1Ny40NTctLjgzLjQ1Ny0uMzg5IDAtLjY2Ni0uMTUzLS44NDYtLjQ0NC0uMTUyLS4yNjMtLjIzNS0uNTk1LS4yNjMtMS4wMTF2LS4yOTFjMC0uNDg1LjA4My0uODczLjI2My0xLjE3OC4xOC0uMzA1LjQ0My0uNDg1LjgzMS0uNDg1Wm0tMy40MDctMS4xMzZhMS4xNyAxLjE3IDAgMCAwLS43MDYuMjM1IDEuNDgyIDEuNDgyIDAgMCAwLS40MTUuNWwtLjA4My4xNjUtLjA3LS44MDNoLTEuMzU3djUuNDMyaDEuNDU0di0zLjY1OWEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiA4LjEySDQuMTE0djcuMzE3aDEuNDY4VjEyLjc5aDEuMzNjLjg0NCAwIDEuNDk1LS4yMDggMS45OC0uNjM4LjQ4NS0uNDMuNzItLjk4My43Mi0xLjY5cy0uMjM1LTEuMjYxLS43Mi0xLjY5Yy0uNDQzLS4zODktMS4wMzktLjYxLTEuNzczLS42MzhsLS4yMjEtLjAxNFptOS44NDcgMS43NzRjLS44MDMgMC0xLjQyNi4yNjMtMS44ODMuNzc2LS40MTYuNDctLjYzNyAxLjA2Ny0uNjc5IDEuNzczdi4zMzNjMCAuODE4LjIyMiAxLjQ4My42NzkgMS45OTUuNDU3LjUxMyAxLjA4Ljc3NiAxLjg4My43NzYuODA0IDAgMS40MjctLjI2MyAxLjg4NC0uNzc2LjQxNS0uNDcuNjM3LTEuMDUzLjY3OC0xLjc3M3YtLjMzM2MwLS44MTctLjIyMS0xLjQ4Mi0uNjc4LTEuOTk1LS40NTctLjUxMy0xLjA4LS43NzYtMS44ODQtLjc3NlpNMTguMDAzIDZhNiA2IDAgMCAxIDAgMTJIMFY5LjQyM0EzLjQyIDMuNDIgMCAwIDEgMy40MiA2aDE0LjU4M1oiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSI3LjUiIHgyPSIyMiIgeTE9IjE5IiB5Mj0iNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMyMjIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM2OTY5NjkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=",sl="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzk5OSIgZD0iTTYuODk3IDMuMjQyYy40MTUgMCAuNzIuMTExLjkyOC4zNDcuMjA3LjIzNS4zMTguNTI2LjMxOC44NzMgMCAuMzQ2LS4xMS42MjMtLjMxOC44NDUtLjIwOC4yMjItLjUyNy4zMzMtLjkyOC4zMzNoLTEuMzNWMy4yNDJoMS4zM1ptOS44NDYgMS43ODhjLjM4OCAwIC42NjUuMTUyLjg0NS40NTcuMTUyLjI2NC4yMzUuNTgyLjI2My45ODR2LjMxOWMwIC40OTktLjA4My44ODctLjI2MyAxLjE5Mi0uMTguMzA0LS40NTcuNDU3LS44My40NTctLjM4OSAwLS42NjYtLjE1My0uODQ2LS40NDQtLjE1Mi0uMjYzLS4yMzUtLjU5NS0uMjYzLTEuMDExdi0uMjkxYzAtLjQ4NS4wODMtLjg3My4yNjMtMS4xNzguMTgtLjMwNS40NDMtLjQ4NS44MzEtLjQ4NVptLTMuNDA3LTEuMTM2YTEuMTcgMS4xNyAwIDAgMC0uNzA2LjIzNSAxLjQ4MiAxLjQ4MiAwIDAgMC0uNDE1LjVsLS4wODMuMTY1LS4wNy0uODAzaC0xLjM1N3Y1LjQzMmgxLjQ1NFY1Ljc2NGEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiAyLjEySDQuMTE0djcuMzE3aDEuNDY4VjYuNzloMS4zM2MuODQ0IDAgMS40OTUtLjIwOCAxLjk4LS42MzguNDg1LS40My43Mi0uOTgzLjcyLTEuNjlzLS4yMzUtMS4yNjEtLjcyLTEuNjljLS40NDMtLjM4OS0xLjAzOS0uNjEtMS43NzMtLjYzOGwtLjIyMS0uMDE0Wm05Ljg0NyAxLjc3NGMtLjgwMyAwLTEuNDI2LjI2My0xLjg4My43NzYtLjQxNi40Ny0uNjM3IDEuMDY3LS42NzkgMS43NzN2LjMzM2MwIC44MTguMjIyIDEuNDgzLjY3OSAxLjk5NS40NTcuNTEzIDEuMDguNzc2IDEuODgzLjc3Ni44MDQgMCAxLjQyNy0uMjYzIDEuODg0LS43NzYuNDE1LS40Ny42MzctMS4wNTMuNjc4LTEuNzczdi0uMzMzYzAtLjgxNy0uMjIxLTEuNDgzLS42NzgtMS45OTUtLjQ1Ny0uNTEzLTEuMDgtLjc3Ni0xLjg4NC0uNzc2Wk0xOC4wMDMgMGE2IDYgMCAwIDEgMCAxMkgwVjMuNDIzQTMuNDIgMy40MiAwIDAgMSAzLjQyIDBoMTQuNTgzWiIvPjwvc3ZnPg==";function ll(e){let t=nn(),{onTranslateTheMainPage:n,onUserConfigChange:a,request:r,onTranslateLocalHtmlFile:u,onSwitchTranslationMode:o,onTranslateLocalSubtitleFile:i,onSetBuildinConfig:s,pageStatus:c,openEbookBuilderPage:l,openPricingPage:p,openEbookViewerPage:f,config:m,openAboutPage:d,onTranslateTheWholePage:h,onToggleEnabled:T,openOptionsPage:b,ontranslateToThePageEndImmediately:C,onSetPageLanguage:w,onToggleTranslate:O,onTranslateLocalPdfFile:B,onTranslatePdf:y,onRestorePage:A,ctx:P,currentUrl:M,currentLang:x,onClose:R,onTranslatePage:F,onSetLocalConfig:D,onMouseTriggerChanged:_,errorMsg:U,disabledButton:j,noPermissionPDF:L}=e,E=a,[k,I]=De(""),[$,z]=De(U),[Y,q]=De(null),[ae,Q]=De(null),{t:G,lang:pe}=zt(),he=70;pe.startsWith("zh")||(he=75);let re=null,K=null,se=null,me=null,ce=null,ye=null,Ae=null,Ee=null,Z=null,ke=null,Le=null,Ie=null;Ve(()=>{Nt.get(en,null).then(H=>{H?(q(H),Q(tn(H))):Q(!1)}).catch(H=>{Q(!1)})},[]);let je=!0,st=Rt();if(m){st&&m&&(je=m.generalRule.showSponsorOnSafari);let{translationService:H,translationServices:de,translationUrlPattern:Ke}=m;Bn[H]&&(Ee=Ms("translationService",H,P)),de&&de[H]?Ie=de[H]||{}:Ie={};try{Z=new URL(M||"")}catch{}if(M&&hg(M)){ke=bg(Z.hostname),Le=yg(M);let{matches:Me,excludeMatches:Pe}=Ke;K=Me.includes(ke),re=Me.includes(Z.hostname),me=Pe.includes(ke),se=Pe.includes(Z.hostname),ye=Me.includes(Le),Ae=Pe.includes(Le)}}if(m&&x&&x!=="auto"){let{translationLanguagePattern:H}=m,{matches:de}=H;de.includes(x)?ce=!0:ce=!1}let Pt=H=>{H.preventDefault(),b()},pa=H=>{E(de=>(de.alpha?I("Success disable alpha!"):I("Success enable alpha!"),{...de,alpha:!de.alpha}))},Ht=H=>{E(de=>({...de,translationMode:H})),o(H)},Dn=()=>{E(H=>({...H,translationArea:"body"})),h()},Un=()=>{E(H=>({...H,translationArea:"main"})),n()},Oe=(H,de,Ke,Me)=>{if(H==="default"){E(wn=>{let Jt={...wn.translationUrlPattern};return{...wn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...wn.translationUrlPattern,matches:Vn([Z?.hostname,ke,M],Jt.matches),excludeMatches:Vn([Z?.hostname,ke,M],Jt.excludeMatches)}}});return}let Pe=H,Ln=Pe==="matches"?"excludeMatches":"matches";Z&&E(wn=>{let Jt={...wn.translationUrlPattern};return Jt[Pe]=ws(de,Jt[Pe]),Me.length>0&&(Jt[Pe]=Vn(Me,Jt[Pe])),Jt[Ln]=Vn(Ke,Jt[Ln]),{...wn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...wn.translationUrlPattern,...Jt}}}),Pe==="matches"&&c==="Original"?setTimeout(()=>{F(),R()},100):Pe==="excludeMatches"&&c==="Translated"&&setTimeout(()=>{A(),R()},100)},qt=H=>{if(!H){E(Me=>{let Pe={...Me.translationLanguagePattern};return{...Me,translationLanguagePattern:{...Me.translationLanguagePattern,matches:Vn(x,Pe.matches),excludeMatches:Vn(x,Pe.excludeMatches)}}});return}let de=H,Ke=de==="matches"?"excludeMatches":"matches";x&&E(Me=>{let Pe={...Me.translationLanguagePattern};return Pe[de]=ws(x,Pe[de]),Pe[Ke]=Vn(x,Pe[Ke]),{...Me,translationLanguagePattern:{...Me.translationLanguagePattern,...Pe}}}),de==="matches"&&c==="Original"&&setTimeout(()=>{F(),R()},100)},rt=Z?.pathname.toLowerCase().endsWith(".pdf"),qe=G("translate");c==="Translated"||c==="Error"?qe=G("show-original"):c==="Original"?rt?Yu()&&Z.protocol==="file:"||L?qe=G("translate-firefox-local-pdf"):fe()?qe=G("noSupportTranslate-pdf"):qe=G("translate-pdf"):qe=G("translate"):qe=G(c);let Yt=G("translateToThePageEndImmediately");(c==="Original"||c==="Translated")&&(m.shortcuts.toggleTranslatePage&&(K4()&&P.rule.fingerCountToToggleTranslagePageWhenTouching>=2?qe+=` (${G(`fingers.${P.rule.fingerCountToToggleTranslagePageWhenTouching}`)})`:qe+=` (${m.shortcuts.toggleTranslatePage})`),m.shortcuts.toggleTranslateToThePageEndImmediately&&(Yt+=` (${m.shortcuts.toggleTranslateToThePageEndImmediately})`));let _t=[];P&&(_t=pd(P,"translationService"));let zn=H=>{H.preventDefault(),R()},mt=Vm(P.config.translationService,P.config.targetLanguage),mn=ye||re||K,ze=()=>ye?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!ye,onChange:H=>{let de=H.target.checked;Oe(de?"matches":"default",Le,[Le],[])}}),G("alwaysTranslateSomePage")]}):re?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!re,onChange:H=>{let de=H.target.checked;Oe(de?"matches":"default",Z.hostname,[Z.hostname,ke,Le],[ke])}}),G("alwaysTranslateSomeSiteOrWildSite")]}):K?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!K,onChange:H=>{let de=H.target.checked;Oe(de?"matches":"default",ke,[Le,Z.hostname,ke],[Z.hostname])}}),G("alwaysTranslateSomeSiteOrWildSite")]}):null;return V("div",{children:[V("div",{class:"popup-container px-6 pt-6 max-content",children:[V("div",{class:"text-sm",children:[V("div",{class:"flex justify-between mb-3 items-center",children:[V("label",{class:"inline-block text-label",children:[G("popupSourceLanguage"),"\uFF1A"]}),V(jn,{maxWidth:186,items:Xt.map(H=>({label:Vo(H,m.interfaceLanguage),value:H,selected:H===P.sourceLanguage,onSelected:de=>{w(de.value)}}))})]}),m&&m.targetLanguage&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[G("popupTarget"),"\uFF1A"]}),V(jn,{maxWidth:186,items:mt.filter(H=>H!=="auto").map(H=>({label:Vo(H,m.interfaceLanguage),value:H,selected:H===m.targetLanguage,onSelected:de=>{E(Ke=>({...Ke,targetLanguage:de.value}))}}))})]}),Ee&&_t.length>0&&V(Kt,{children:[V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[G("popupService"),"\uFF1A"]}),V(jn,{maxWidth:186,items:_t.map(H=>({label:`${G("translationServices."+H.id)}${H.ok?"":" "+(" "+(!ae&&!st&&H.providers&&H.providers.length>0?G("goLoginOrAction"):G("needAction")))}`,value:H.id,selected:H.selected,onSelected:de=>{let Ke=_t.find(Me=>Me.id===de.value);if(Ke.ok){if(E(Me=>({...Me,translationService:Ke.id})),c!="Translated")return;Ke.props.length===0?setTimeout(()=>{F()},1):setTimeout(()=>{A()},1)}else E(Me=>({...Me,translationService:Ke.id})),setTimeout(()=>{b()},100)}}))})]}),Ie&&Ee.props.length>0&&Ee.props.map((H,de)=>V("div",{class:"pl-4 text-sm",children:V(ul,{field:H,value:Ie[H.name],onChange:Ke=>{E(Me=>{let Pe=Me.translationServices||{},Ln=Pe[Ee.id]||{};return setTimeout(()=>{A()},1),{...Me,translationServices:{...Pe,[Ee.id]:{...Ln,[H.name]:Ke}}}})}},"field-"+de)},"service"+de))]}),Z&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:G("forThisSite")}),V(jn,{maxWidth:186,items:[{label:G("default"),value:"default",selected:re===!1&&se===!1&&!K&&!me&&!ye&&!Ae,onSelected:()=>{Oe("default",Z.hostname,[],[]);let H=Z.hostname,de=P.localConfig.tempTranslationUrlMatches||[],Ke=de.filter(Pe=>Pe.match!==H),Me=!1;Ke.length!==de.length&&(Me=!0),Me&&D({...P.localConfig,tempTranslationUrlMatches:[...Ke]})}},Le&&{label:G("alwaysTranslateSomeSite",{hostname:G("currentUrl")}),value:"matchesUrl",selected:ye,onSelected:()=>{Oe("matches",Le,[Le],[])}},{label:G("alwaysTranslateSomeSite",{hostname:Z.hostname}),value:"matches",selected:re,onSelected:H=>{Oe(H.value,Z.hostname,[Z.hostname,ke,Le],[ke])}},ke&&{label:G("alwaysTranslateSomeSite",{hostname:ke}),value:"matchesWild",selected:K,onSelected:()=>{Oe("matches",ke,[Le,Z.hostname,ke],[Z.hostname])}},Le&&{label:G("neverTranslateSomeSite",{hostname:G("currentUrl")}),value:"excludeMatchesUrl",selected:Ae,onSelected:()=>{Oe("excludeMatches",Le,[Le],[])}},{label:G("neverTranslateSomeSite",{hostname:Z.hostname}),value:"excludeMatches",selected:se,onSelected:H=>{Oe(H.value,Z.hostname,[Z.hostname,ke,Le],[ke])}},ke&&{label:G("neverTranslateSomeSite",{hostname:ke}),value:"excludeMatchesWild",selected:me,onSelected:()=>{Oe("excludeMatches",ke,[Z.hostname,Le,ke],[Z.hostname])}}].filter(Boolean)})]}),_&&Or()&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[G("mouse-translate"),"\uFF1A"]}),V(jn,{maxWidth:186,items:Ku.filter(H=>!(Ku.includes(m.generalRule.mouseHoverHoldKey)&&H==="OtherCustom")).map(H=>{let de=G("mouseHoldKey",{key:H}),Ke=Ku.includes(m.generalRule.mouseHoverHoldKey),Me=H===m.generalRule.mouseHoverHoldKey;return H==="Auto"?de=G("mouseHoldKeyAuto"):H==="Off"?de=G("mouseHoldKeyOff"):H==="OtherCustom"?de=Ke?G("mouseHoldKeyOther"):G("mouseHoldKeyCustomKey",{key:m.generalRule.mouseHoverHoldKey}):H==="Other"&&(de=G("mouseHoldKeyOther")),Ke||H==="OtherCustom"&&(Me=!0),{label:de,value:H,selected:Me,onSelected:Pe=>{Pe.value==="Other"?b("#interface"):_(Pe.value)}}})})]})]}),V("div",{class:"",children:V("button",{class:"py-2 mt-1 mb-5 main-button ",onClick:()=>{rt?y&&y():O()},"aria-busy":c==="Translating",disabled:j||c==="Translating",children:qe})}),V("div",{class:"text-sm",children:k}),V("div",{class:`pb-2 text-sm ${$?"":"display-none"}`,children:$}),V("div",{class:"flex items-center justify-between flex-wrap",children:[mn?V(ze,{}):x&&x!=="auto"?V("label",{for:"alwaysTranslateThisLanugage",class:"text-sm text-label text-overflow-ellipsis max-w-20",children:[V("input",{type:"checkbox",id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",checked:!!ce,onChange:H=>{let de=H.target.checked;qt(de?"matches":void 0)}}),G("alwaysTranslateSomeLanguage",{language:Vo(x,m.interfaceLanguage,!1,!0)})]}):V("span",{}),V("div",{class:`flex flex-end flex-grow ${$?"display-none":""}`,children:V("span",{class:"immersive-translate-no-select muted text-sm",onClick:fg(7)(pa),children:["V",t,m.enabled?null:V("a",{href:"#",onClick:T,children:[" ","(",G("hasBeenDisabled"),")"]})]})})]})]}),V("footer",{children:[V("div",{class:"px-6 text-label",children:V(ol,{isShowError:!1,request:r,setStorageBuildinConfig:s})}),V("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer text-label",children:[V("div",{class:"flex flex-row items-center justify-center secondary clickable",style:{width:70},onClick:Pt,children:[V(al,{}),V("span",{class:"ml-1",children:G("options")})]}),je?V("a",{title:G(ae?"popup.openProForPro":"popup.openPro"),target:"_blank",href:ae?ps:fs,children:V("img",{src:ae?il:sl})}):ae&&V("a",{title:G(ae?"popup.openProForPro":"popup.openPro"),target:"_blank",href:ae?ps:fs,children:V("img",{src:ae?il:sl})}),V(rl,{label:G("more"),showArrow:!0,maxWidth:he,onSelected:H=>{H.value==="openPremium"?(globalThis.open(Rr),R()):H.value==="changeToOnlyTranslationMode"?Ht("translation"):H.value==="changeToDualTranslationMode"?Ht("dual"):H.value==="translateTheWholePage"?h():H.value==="translateToThePageEndImmediately"?C():H.value==="translateTheMainPage"?n():H.value==="showTranslationOnly"||(H.value==="translateLocalPdfFile"?B&&B():H.value==="translateLocalHtmlFile"?u&&u():H.value==="translateLocalSubtitleFile"?i&&i():H.value==="donate"?(globalThis.open(m.donateUrl),R()):H.value==="feedback"?(globalThis.open(m.feedbackUrl),R()):H.value==="options"?(b(),R()):H.value==="changeToTranslateTheWholePage"?Dn():H.value==="changeToTranslateTheMainPage"?Un():H.value==="about"?d():H.value==="toggleEnabled"?T():H.value==="openEbookViewer"?f():H.value==="openEbookBuilder"?l():H.value==="goPro"&&p())},menus:[m.translationMode==="dual"&&{label:"\u{1F524} "+G("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},m.translationMode==="translation"&&{label:"\u{1F521} "+G("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},m.translationArea==="main"&&{label:"\u{1F480} "+G("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},m.translationArea==="body"&&{label:"\u{1F4D6} "+G("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},{label:"\u26A1 "+Yt,value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+G("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+G("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+G("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},!fe()&&{label:"\u{1F310} "+G("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+G("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},ae===!1&&je&&{label:"\u{1F451} "+G("upgradeToPro"),value:"goPro"},{label:"\u2764\uFE0F "+G(je?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})]})]})}g();g();g();g();var cl={get:(e,t,n)=>{let a=t===void 0?e:{[e]:t};return ue.storage[n].get(a)},set:(e,t,n)=>ue.storage[n].set({[e]:t})};function li(e,t,n){let[a]=De(()=>typeof t=="function"?t():t),[r]=De(n),[u,o]=De(a),[i,s]=De(!1),[c,l]=De("");Ve(()=>{cl.get(e,a,r).then(f=>{f[e]&&o(f[e]),s(!0),l("")}).catch(f=>{s(!1),l(f)})},[e,a,r]);let p=da(f=>{let m=typeof f=="function"?f(u):f;N.debug("new settings",m),cl.set(e,m,r).then(()=>{o(m),s(!0),l("")}).catch(d=>{o(m),s(!1),l(d)})},[r,e,u]);return[u,p,i,c]}g();function dl(e,t,n){let a=[];return function(){let[u,o,i,s]=li(e,t,n),c=da(l=>{for(let p of a)p(l)},[]);return Ve(()=>(a.push(o),()=>{a.splice(a.indexOf(o),1)}),[o]),[u,c,i,s]}}function Eg(e,t){return dl(e,t,"sync")}var H9="userConfig",q9=null,W9=Eg(H9,q9);function ci(e){let[t,n,a,r]=W9(),u=da(o=>{let i=typeof o=="function"?o(t):o;i&&(i.updatedAt=new Date().toISOString()),n(i),e&&e(i)},[t]);return[t,u,a,r,n]}g();g();async function di(e){try{let t=new Date;N.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await ue.storage.local.set({[Br]:t.toISOString()}),await $9(),fe()||await Nd()}catch(t){N.error("run cron task failed",t)}}async function xg(){let t=(await Lt()).interval;if(t){let n=await ue.storage.local.get(Br);if(n&&n[Br]){let a=n[Br];if(Date.now()-new Date(a).getTime()a?(await ue.storage.local.set({buildinConfig:t}),N.info(`sync remote rules success, latest: ${new Date(r).toLocaleString()}`)):N.debug(`no need to sync rules, latest: ${a}`):N.info(`local version is too old, please update to ${o} or later`)}catch(e){N.error("sync rules error: ",e)}}g();g();g();g();g();var ml;function Cl(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function Lg(e,t=","){return e.map(Cl).join(t)}var Mg=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function gi(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function pi(e,t="@media "){return t+Gt(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(a=>`(${a}-width:${n[a]})`).join(" and "))).join(",")}function Gt(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function K9(){}var ht={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function Fg(e){return e.match(/[-=:;]/g)?.length||0}function yl(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(Fg(e),15)<<18}var G9=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function wl({n:e,i:t,v:n=[]},a,r,u){e&&(e=Cl({n:e,i:t,v:n})),u=[...Gt(u)];for(let i of n){let s=a.theme("screens",i);for(let c of Gt(s&&pi(s)||a.v(i))){var o;u.push(c),r|=s?67108864|yl(c):i=="dark"?1073741824:c[0]=="@"?yl(c):(o=c,1<<~(/:([a-z-]+)/.test(o)&&~G9.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:r,r:u,i:t}}var vl=new Map;function Tg(e){if(e.d){let t=[],n=gl(e.r.reduce((a,r)=>r[0]=="@"?(t.push(r),a):r?gl(a,u=>gl(r,o=>{let i=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(i){let s=u.indexOf(i[1]);return~s?u.slice(0,s)+i[0]+u.slice(s+i[1].length):pl(u,o)}return pl(o,u)})):a,"&"),a=>pl(a,e.n?"."+Mg(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((a,r)=>r+"{"+a+"}",e.d)}}function gl(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,a,r)=>t(a)+r)}function pl(e,t){return e.replace(/&/g,t)}var Cg=new Intl.Collator("en",{numeric:!0});function V9(e,t){for(var n=0,a=e.length;n>1;0>=Pg(e[r],t)?n=r+1:a=r}return a}function Pg(e,t){let n=e.p&ht.o;return n==(t.p&ht.o)&&(n==ht.b||n==ht.o)?0:e.p-t.p||e.o-t.o||Cg.compare(wg(e.n),wg(t.n))||Cg.compare(vg(e.n),vg(t.n))}function wg(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function vg(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function fl(e,t){return Math.round(parseInt(e,16)*t)}function ma(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:a}=t,r=a?`var(${a})`:n;if(e.includes(""))return e.replace("",r);if(e[0]=="#"&&(e.length==4||e.length==7)){let u=(e.length-1)/3,o=[17,1,.062272][u-1];return`rgba(${[fl(e.substr(1,u),o),fl(e.substr(1+u,u),o),fl(e.substr(1+2*u,u),o),r]})`}return r=="1"?e:r=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${r})`)}function _g(e,t,n,a,r=[]){return function u(o,{n:i,p:s,r:c=[],i:l},p){let f=[],m="",d=0,h=0;for(let C in o||{}){var T,b;let w=o[C];if(C[0]=="@"){if(!w)continue;if(C[1]=="a"){f.push(...Rg(i,s,Al(""+w),p,s,c,l,!0));continue}if(C[1]=="l"){for(let O of Gt(w))f.push(...u(O,{n:i,p:(T=ht[C[7]],s&~ht.o|T),r:C[7]=="d"?[]:c,i:l},p));continue}if(C[1]=="i"){f.push(...Gt(w).map(O=>({p:-1,o:0,r:[],d:C+" "+O})));continue}if(C[1]=="k"){f.push({p:ht.d,o:0,r:[C],d:u(w,{p:ht.d},p).map(Tg).join("")});continue}if(C[1]=="f"){f.push(...Gt(w).map(O=>({p:ht.d,o:0,r:[C],d:u(O,{p:ht.d},p).map(Tg).join("")})));continue}}if(typeof w!="object"||Array.isArray(w))C=="label"&&w?i=w+gi(JSON.stringify([s,l,o])):(w||w===0)&&(C=C.replace(/[A-Z]/g,O=>"-"+O.toLowerCase()),h+=1,d=Math.max(d,(b=C)[0]=="-"?0:Fg(b)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(b)?+!!RegExp.$1||-!!RegExp.$2:0)+1),m+=(m?";":"")+Gt(w).map(O=>p.s(C,Bg(""+O,p.theme)+(l?" !important":""))).join(";"));else if(C[0]=="@"||C.includes("&")){let O=s;C[0]=="@"&&(C=C.replace(/\bscreen\(([^)]+)\)/g,(B,y)=>{let A=p.theme("screens",y);return A?(O|=67108864,pi(A,"")):B}),O|=yl(C)),f.push(...u(w,{n:i,p:O,r:[...c,C],i:l},p))}else f.push(...u(w,{p:s,r:[...c,C]},p))}return f.unshift({n:i,p:s,o:Math.max(0,15-h)+1.5*Math.min(d||15,15),r:c,d:m}),f.sort(Pg)}(e,wl(t,n,a,r),n)}function Bg(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,a,r,u,o="")=>{let i=t(r,o);return typeof i=="function"&&/color|fill|stroke/i.test(r)?ma(i):""+Gt(i).filter(s=>Object(s)!==s)})}function kl(e,t){let n,a=[];for(let r of e)r.d&&r.n?n?.p==r.p&&""+n.r==""+r.r?(n.c=[n.c,r.c].filter(Boolean).join(" "),n.d=n.d+";"+r.d):a.push(n={...r,n:r.n&&t}):a.push({...r,n:r.n&&t});return a}function El(e,t,n=ht.u,a,r){let u=[];for(let o of e)for(let i of function(s,c,l,p,f){s={...s,i:s.i||f};let m=function(d,h){let T=vl.get(d.n);return T?T(d,h):h.r(d.n,d.v[0]=="dark")}(s,c);return m?typeof m=="string"?({r:p,p:l}=wl(s,c,l,p),kl(El(Al(m),c,l,p,s.i),s.n)):Array.isArray(m)?m.map(d=>{var h,T;return{o:0,...d,r:[...Gt(p),...Gt(d.r)],p:(h=l,T=d.p??l,h&~ht.o|T)}}):_g(m,s,c,l,p):[{c:Cl(s),p:0,o:0,r:[]}]}(o,t,n,a,r))u.splice(V9(u,i),0,i);return u}function Rg(e,t,n,a,r,u,o,i){return kl((i?n.flatMap(s=>El([s],a,r,u,o)):El(n,a,r,u,o)).map(s=>s.p&ht.o&&(s.n||t==ht.b)?{...s,p:s.p&~ht.o|t,o:0}:s),e)}function Y9(e,t,n,a){var r;return r=(u,o)=>{let{n:i,p:s,r:c,i:l}=wl(u,o,t);return n&&Rg(i,t,n,o,s,c,l,a)},vl.set(e,r),e}function hl(e,t,n){if(e[e.length-1]!="("){let a=[],r=!1,u=!1,o="";for(let i of e)if(!(i=="("||/[~@]$/.test(i))){if(i[0]=="!"&&(i=i.slice(1),r=!r),i.endsWith(":")){a[i=="dark:"?"unshift":"push"](i.slice(0,-1));continue}i[0]=="-"&&(i=i.slice(1),u=!u),i.endsWith("-")&&(i=i.slice(0,-1)),i&&i!="&"&&(o+=(o&&"-")+i)}o&&(u&&(o="-"+o),t[0].push({n:o,v:a.filter(J9),i:r}))}}function J9(e,t,n){return n.indexOf(e)==t}var kg=new Map;function Al(e){let t=kg.get(e);if(!t){let n=[],a=[[]],r=0,u=0,o=null,i=0,s=(c,l=0)=>{r!=i&&(n.push(e.slice(r,i+l)),c&&hl(n,a)),r=i+1};for(;i1?p.slice(0,-1)+gi(JSON.stringify([p,f])):p+"("+Lg(f)+")",ht.a,f,/@$/.test(p))],a)}l=n.lastIndexOf("(",l-1)}n.length=l+1}else/[~@]/.test(c)&&e[i+1]=="("&&a.unshift([])}s(!0),kg.set(e,t=a[0])}return t}function Ig(e,t,n){return t.reduce((a,r,u)=>a+n(r)+e[u+1],e[0])}function Og(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?Ig(e,t,n=>bl(n).trim()):t.filter(Boolean).reduce((n,a)=>n+bl(a),e?bl(e):"")}function bl(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=Og(e[0],e.slice(1)))&&(n+=" "+t);else for(let a in e)e[a]&&(n+=" "+a);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var ZF=Ng("@"),XF=Ng("~");function Ng(e){return new Proxy(function(n,...a){return t("",n,a)},{get(n,a){return a in n?n[a]:function(r,...u){return t(a,r,u)}}});function t(n,a,r){return Lg(Al(n+e+"("+Og(a,r)+")"))}}function xl(e,t){return Array.isArray(e)?Ag(Ig(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?Ag(e):[e]}var Q9=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function Ag(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],a=[n[0]],r=[];for(;t=Q9.exec(e);)t[4]&&(n.shift(),r.shift()),t[3]?(r.unshift(t[3]),n.unshift({}),a.push(r.reduce((u,o)=>({[o]:u}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),a.push(r.reduce((u,o)=>({[o]:u}),n[0]))),n[0][t[1]]=t[2]);return a}function jg(e,...t){var n;let a=xl(e,t),r=(a.find(u=>u.label)?.label||"css")+gi(JSON.stringify(a));return n=(u,o)=>kl(a.flatMap(i=>_g(i,u,o,ht.o)),r),vl.set(r,n),r}var eP=new Proxy(function(e,t){return Sg("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,a){return Sg(t,n,a)}}});function Sg(e,t,n){return{toString(){return jg({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function ee(e,t,n){return[e,Z9(t,n)]}function Z9(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,a)=>({[e]:t?t(n,a):Tl(n,1)}):n=>e||{[n[1]]:Tl(n,2)}}function Tl(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function te(e,t,n,a){return[e,X9(t,n,a)]}function X9(e,t,n){let a=typeof t=="string"?(r,u)=>({[t]:n?n(r,u):r._}):t||(({1:r,_:u},o,i)=>({[r||i]:u}));return(r,u)=>{let o=Ug(e||r[1]),i=u.theme(o,r.$$)??hr(r.$$,o,u);if(i!=null)return r._=Tl(r,0,i),a(r,u,o)}}function it(e,t={},n){return[e,eb(t,n)]}function eb(e={},t){return(n,a)=>{let{section:r=Ug(n[0]).replace("-","")+"Color"}=e,[u,o]=tb(n.$$);if(!u)return;let i=a.theme(r,u)||hr(u,r,a);if(!i||typeof i=="object")return;let{opacityVariable:s=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:c=r.replace("Color","Opacity"),property:l=r,selector:p}=e,f=a.theme(c,o||"DEFAULT")||o&&hr(o,c,a),m=t||(({_:h})=>{let T=fu(l,h);return p?{[p]:T}:T});n._={value:ma(i,{opacityVariable:s||void 0,opacityValue:f||void 0}),color:h=>ma(i,h),opacityVariable:s||void 0,opacityValue:f||void 0};let d=m(n,a);if(!n.dark){let h=a.d(r,u,i);h&&h!==i&&(n._={value:ma(h,{opacityVariable:s||void 0,opacityValue:f||"1"}),color:T=>ma(h,T),opacityVariable:s||void 0,opacityValue:f||void 0},d={"&":d,[a.v("dark")]:m(n,a)})}return d}}function tb(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function fu(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function hr(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=mi(Bg(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function Ug(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function mi(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",a,r="")=>mi(n)+a+mi(r)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var tP=Symbol();var zg=new Proxy(K9,{apply(e,t,n){return ml(n[0])},get(e,t){let n=ml[t];return typeof n=="function"?function(){return n.apply(ml,arguments)}:n}});var nP=function e(t){return new Proxy(function(n,...a){return Dg(t,"",n,a)},{get(n,a){return a==="bind"?e:a in n?n[a]:function(r,...u){return Dg(t,a,r,u)}}})}();function Dg(e,t,n,a){return{toString(){let r=xl(n,a),u=Mg(t+gi(JSON.stringify([t,r])));return(typeof e=="function"?e:zg)(jg({[`@keyframes ${u}`]:xl(n,a)})),u}}}g();g();g();g();g();var Hg={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...Vt(4,"rem",4,.5,.5),...Vt(12,"rem",4,5),14:"3.5rem",...Vt(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Fe("blur"),backdropBrightness:Fe("brightness"),backdropContrast:Fe("contrast"),backdropGrayscale:Fe("grayscale"),backdropHueRotate:Fe("hueRotate"),backdropInvert:Fe("invert"),backdropOpacity:Fe("opacity"),backdropSaturate:Fe("saturate"),backdropSepia:Fe("sepia"),backgroundColor:Fe("colors"),backgroundImage:{none:"none"},backgroundOpacity:Fe("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...Vt(200,"",100,0,50),...Vt(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Fe("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Fe("spacing"),borderWidth:{DEFAULT:"1px",...dn(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Fe("colors"),caretColor:Fe("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...Vt(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Fe("borderColor"),divideOpacity:Fe("borderOpacity"),divideWidth:Fe("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...hu(2,6),...hu(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Fe("spacing"),gradientColorStops:Fe("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...hu(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...hu(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...Vt(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...Vt(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Fe("spacing"),placeholderColor:Fe("colors"),placeholderOpacity:Fe("opacity"),outlineColor:Fe("colors"),outlineOffset:dn(8,"px"),outlineWidth:dn(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Fe("colors"),ringOffsetWidth:dn(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...dn(8,"px")},rotate:{...dn(2,"deg"),...dn(12,"deg",3),...dn(180,"deg",45)},saturate:Vt(200,"",100,0,50),scale:{...Vt(150,"",100,0,50),...Vt(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Fe("spacing"),scrollPadding:Fe("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...dn(2,"deg"),...dn(12,"deg",3)},space:Fe("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:Vt(2),textColor:Fe("colors"),textDecorationColor:Fe("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...dn(8,"px")},textUnderlineOffset:{auto:"auto",...dn(8,"px")},textIndent:Fe("spacing"),textOpacity:Fe("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Fe("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...hu(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...Vt(50,"",1,0,10),auto:"auto"}};function hu(e,t){let n={};do for(var a=1;at(e)}var xP={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${Hg.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${Hg.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},CP=[ee("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:hr(`[${t}]`,"",n)}}})),ee("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),te("aspect-","aspectRatio"),ee("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:a,padding:r}=t("container"),u={width:"100%",marginRight:a&&"auto",marginLeft:a&&"auto",...o("xs")};for(let i in n){let s=n[i];typeof s=="string"&&(u[pi(s)]={"&":{maxWidth:s,...o(i)}})}return u;function o(i){let s=r&&(typeof r=="string"?r:r[i]||r.DEFAULT);if(s)return{paddingRight:s,paddingLeft:s}}}),te("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),ee("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),ee("box-(border|content)","boxSizing",({1:e})=>e+"-box"),ee("hidden",{display:"none"}),ee("table-(auto|fixed)","tableLayout"),ee(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",ee("isolate","isolation"),ee("object-(contain|cover|fill|none|scale-down)","objectFit"),te("object-","objectPosition"),ee("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",fi),ee("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),ee("(static|fixed|absolute|relative|sticky)","position"),te("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),te("-?(top|bottom|left|right)(?:$|-)","inset"),ee("(visible|collapse)","visibility"),ee("invisible",{visibility:"hidden"}),te("-?z-","zIndex"),ee("flex-((row|col)(-reverse)?)","flexDirection",qg),ee("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),te("(flex-(?:grow|shrink))(?:$|-)"),te("(flex)-"),te("grow(?:$|-)","flexGrow"),te("shrink(?:$|-)","flexShrink"),te("basis-","flexBasis"),te("-?(order)-"),"-?(order)-(\\d+)",te("grid-cols-","gridTemplateColumns"),ee("grid-cols-(\\d+)","gridTemplateColumns",Gg),te("col-","gridColumn"),ee("col-(span)-(\\d+)","gridColumn",Kg),te("col-start-","gridColumnStart"),ee("col-start-(auto|\\d+)","gridColumnStart"),te("col-end-","gridColumnEnd"),ee("col-end-(auto|\\d+)","gridColumnEnd"),te("grid-rows-","gridTemplateRows"),ee("grid-rows-(\\d+)","gridTemplateRows",Gg),te("row-","gridRow"),ee("row-(span)-(\\d+)","gridRow",Kg),te("row-start-","gridRowStart"),ee("row-start-(auto|\\d+)","gridRowStart"),te("row-end-","gridRowEnd"),ee("row-end-(auto|\\d+)","gridRowEnd"),ee("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>fi(qg(e))),ee("grid-flow-(dense)","gridAutoFlow"),te("auto-cols-","gridAutoColumns"),te("auto-rows-","gridAutoRows"),te("gap-x(?:$|-)","gap","columnGap"),te("gap-y(?:$|-)","gap","rowGap"),te("gap(?:$|-)","gap"),"(justify-(?:items|self))-",ee("justify-","justifyContent",Wg),ee("(content|items|self)-",e=>({["align-"+e[1]]:Wg(e)})),ee("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),te("p([xytrbl])?(?:$|-)","padding",br("padding")),te("-?m([xytrbl])?(?:$|-)","margin",br("margin")),te("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),ee("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),te("w-","width"),te("min-w-","minWidth"),te("max-w-","maxWidth"),te("h-","height"),te("min-h-","minHeight"),te("max-h-","maxHeight"),te("font-","fontWeight"),te("font-","fontFamily",({_:e})=>typeof(e=Gt(e))[1]=="string"?{fontFamily:Cn(e)}:{fontFamily:Cn(e[0]),...e[1]}),ee("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),ee("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),ee("italic","fontStyle"),ee("not-italic",{fontStyle:"normal"}),ee("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...ga({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),te("tracking-","letterSpacing"),te("leading-","lineHeight"),ee("list-(inside|outside)","listStylePosition"),te("list-","listStyleType"),ee("list-","listStyleType"),te("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),it("placeholder-",{property:"color",selector:"&::placeholder"}),ee("text-(left|center|right|justify|start|end)","textAlign"),ee("text-(ellipsis|clip)","textOverflow"),te("text-opacity-","textOpacity","--tw-text-opacity"),it("text-",{property:"color"}),te("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),te("indent-","textIndent"),ee("(overline|underline|line-through)","textDecorationLine"),ee("no-underline",{textDecorationLine:"none"}),te("underline-offset-","textUnderlineOffset"),it("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),te("decoration-","textDecorationThickness"),ee("decoration-","textDecorationStyle"),ee("(uppercase|lowercase|capitalize)","textTransform"),ee("normal-case",{textTransform:"none"}),ee("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),ee("align-","verticalAlign"),ee("whitespace-","whiteSpace"),ee("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),ee("break-words",{overflowWrap:"break-word"}),ee("break-all",{wordBreak:"break-all"}),ee("break-keep",{wordBreak:"keep-all"}),it("caret-",{opacityVariable:!1,opacitySection:"opacity"}),it("accent-",{opacityVariable:!1,opacitySection:"opacity"}),ee("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${Da(e," ")},var(--tw-gradient-stops))`),it("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),it("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),it("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),ee("bg-(fixed|local|scroll)","backgroundAttachment"),ee("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),ee(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),ee("bg-blend-","backgroundBlendMode"),ee("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),te("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),it("bg-",{section:"backgroundColor"}),te("bg-","backgroundImage"),te("bg-","backgroundPosition"),ee("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",fi),te("bg-","backgroundSize"),te("rounded(?:$|-)","borderRadius"),te("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${Da(n[0])}-radius`]:t,[`border-${Da(n[1])}-radius`]:t}}),ee("border-(collapse|separate)","borderCollapse"),te("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),ee("border-(solid|dashed|dotted|double|none)","borderStyle"),te("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...ga({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),it("border-([xytrbl])-",{section:"borderColor"},br("border","Color")),it("border-"),te("border-([xytrbl])(?:$|-)","borderWidth",br("border","Width")),te("border(?:$|-)","borderWidth"),te("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),ee("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),ee("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),te("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${Da(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${Da(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),it("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),te("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),it("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),te("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),ee("ring-inset",{"--tw-ring-inset":"inset"}),it("ring-",{property:"--tw-ring-color"}),te("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...ga({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":ma(t("ringOffsetColor","","#fff")),"--tw-ring-color":ma(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),it("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),te("shadow(?:$|-)","boxShadow",({_:e})=>({...ga({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Cn(e),"--tw-shadow-colored":Cn(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),te("(opacity)-"),ee("mix-blend-","mixBlendMode"),...$g(),...$g("backdrop-"),te("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Cn(e),transitionTimingFunction:e._=="none"?void 0:Cn(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:Cn(t("transitionDuration",""))})),te("duration(?:$|-)","transitionDuration","transitionDuration",Cn),te("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Cn),te("delay(?:$|-)","transitionDelay","transitionDelay",Cn),te("animate(?:$|-)","animation",(e,{theme:t,h:n,e:a})=>{let r=Cn(e),u=r.split(" "),o=t("keyframes",u[0]);return o?{["@keyframes "+(u[0]=a(n(u[0])))]:o,animation:u.join(" ")}:{animation:r}}),"(transform)-(none)",ee("transform",Dl),ee("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":Vg(e=="gpu")})),te("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...Dl()})),te("-?(rotate)-","rotate",Sl),te("-?(translate-[xy])-","translate",Sl),te("-?(skew-[xy])-","skew",Sl),ee("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",fi),"(appearance)-",te("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",te("(cursor)-"),"(cursor)-",ee("snap-(none)","scroll-snap-type"),ee("snap-(x|y|both)",({1:e})=>({...ga({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),ee("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),ee("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),ee("snap-(normal|always)","scroll-snap-stop"),ee("scroll-(auto|smooth)","scroll-behavior"),te("scroll-p([xytrbl])?(?:$|-)","padding",br("scroll-padding")),te("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",br("scroll-margin")),ee("touch-(auto|none|manipulation)","touch-action"),ee("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...ga({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),ee("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),ee("outline",{outlineStyle:"solid"}),ee("outline-(dashed|dotted|double)","outlineStyle"),te("-?(outline-offset)-"),it("outline-",{opacityVariable:!1,opacitySection:"opacity"}),te("outline-","outlineWidth"),"(pointer-events)-",te("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],ee("select-(none|text|all|auto)","userSelect"),it("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),it("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),te("stroke-","strokeWidth"),ee("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),ee("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function fi(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function qg(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function Da(e,t="-"){let n=[];for(let a of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[a]);return n.join(t)}function Cn(e){return e&&""+(e._||e)}function Wg({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function br(e,t=""){return({1:n,_:a})=>{let r={x:"lr",y:"tb"}[n]||n+n;return r?{...fu(e+"-"+Da(r[0])+t,a),...fu(e+"-"+Da(r[1])+t,a)}:fu(e+t,a)}}function $g(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let a of t)n[`--tw-${e}${a}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...ga(n),[`${e}filter`]:t.map(a=>`var(--tw-${e}${a})`).join(" ")},[`(${e}filter)-(none)`,ee(`${e}filter`,n),...t.map(a=>te(`${a[0]=="h"?"-?":""}(${e}${a})(?:$|-)`,a,({1:r,_:u})=>({[`--tw-${r}`]:Gt(u).map(o=>`${a}(${o})`).join(" "),...n})))]}function Sl({1:e,_:t}){return{["--tw-"+e]:t,...Dl()}}function Dl(){return{...ga({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":Vg()}),transform:"var(--tw-transform)"}}function Vg(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function Kg({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function Gg({1:e}){return`repeat(${e},minmax(0,1fr))`}function ga(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}g();g();var hi=globalThis||(typeof window<"u"?window:self),rb=Object.create,Ml=Object.defineProperty,ub=Object.getOwnPropertyDescriptor,ob=Object.getOwnPropertyNames,ib=Object.getPrototypeOf,sb=Object.prototype.hasOwnProperty,lb=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),cb=(e,t)=>{for(var n in t)Ml(e,n,{get:t[n],enumerable:!0})},Ll=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ob(t))!sb.call(e,r)&&r!==n&&Ml(e,r,{get:()=>t[r],enumerable:!(a=ub(t,r))||a.enumerable});return e},db=(e,t,n)=>(Ll(e,t,"default"),n&&Ll(n,t,"default")),Jg=(e,t,n)=>(n=e!=null?rb(ib(e)):{},Ll(t||!e||!e.__esModule?Ml(n,"default",{value:e,enumerable:!0}):n,e)),Qg=lb((e,t)=>{(function(n,a){typeof define=="function"&&define.amd?define([],a):typeof e<"u"?a():(a(),n.FileSaver={})})(e,function(){"use strict";function n(c,l){return typeof l>"u"?l={autoBom:!1}:typeof l!="object"&&(l={autoBom:!l}),l.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function a(c,l,p){var f=new XMLHttpRequest;f.open("GET",c),f.responseType="blob",f.onload=function(){s(f.response,l,p)},f.onerror=function(){},f.send()}function r(c){var l=new XMLHttpRequest;l.open("HEAD",c,!1);try{l.send()}catch{}return 200<=l.status&&299>=l.status}function u(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var l=document.createEvent("MouseEvents");l.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(l)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof hi=="object"&&hi.global===hi?hi:void 0,i=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(c,l,p){var f=o.URL||o.webkitURL,m=document.createElement("a");l=l||c.name||"download",m.download=l,m.rel="noopener",typeof c=="string"?(m.href=c,m.origin===location.origin?u(m):r(m.href)?a(c,l,p):u(m,m.target="_blank")):(m.href=f.createObjectURL(c),setTimeout(function(){f.revokeObjectURL(m.href)},4e4),setTimeout(function(){u(m)},0))}:"msSaveOrOpenBlob"in navigator?function(c,l,p){if(l=l||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(n(c,p),l);else if(r(c))a(c,l,p);else{var f=document.createElement("a");f.href=c,f.target="_blank",setTimeout(function(){u(f)})}}:function(c,l,p,f){if(f=f||open("","_blank"),f&&(f.document.title=f.document.body.innerText="downloading..."),typeof c=="string")return a(c,l,p);var m=c.type==="application/octet-stream",d=/constructor/i.test(o.HTMLElement)||o.safari,h=/CriOS\/[\d]+/.test(navigator.userAgent);if((h||m&&d||i)&&typeof FileReader<"u"){var T=new FileReader;T.onloadend=function(){var w=T.result;w=h?w:w.replace(/^data:[^;]*;/,"data:attachment/file;"),f?f.location.href=w:location=w,f=null},T.readAsDataURL(c)}else{var b=o.URL||o.webkitURL,C=b.createObjectURL(c);f?f.location=C:location.href=C,f=null,setTimeout(function(){b.revokeObjectURL(C)},4e4)}});o.saveAs=s.saveAs=s,typeof t<"u"&&(t.exports=s)})}),Zg={};cb(Zg,{default:()=>bi});var mb=Jg(Qg());db(Zg,Jg(Qg()));var{default:Yg,...gb}=mb,bi=Yg!==void 0?Yg:gb;g();g();g();g();g();g();var s_=Re().REDIRECT_URL;function Tb(){let[e,t]=De(null);return Ve(()=>{Yn().then(a=>{t(a)})},[]),[e,a=>{t(a),An(a)}]}async function Cb(e,t,n){try{if(t===null)return"noupdate";let a=await kb(e),r=await Yn();r.accountLastSyncedAt=Date.now(),N.debug("settings",t),N.debug("local settings.updatedAt",t.updatedAt),N.debug("remote settings.updatedAt",a.updatedAt),N.debug("last synced at",r.accountLastSyncedAt);let u=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(u=!0),!u&&t.updatedAt>a.updatedAt&&(u=!0),N.debug("isUpload",u),u)return await Ab(e,t),await An(r),"upload";let o=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(o=!0),!o&&t.updatedAt0&&Nt.remove(en),a}}function tp(e,t){let n=vb(),[a,r]=Tb();Ve(()=>{!n||!n.token||a&&a.proAutoSync===!1||wb(n)&&Cb(n.token,e,t)},[e,n])}function wb(e){return tn(e)?!0:new Date(e.createTime){Nt.get(en,null).then(n=>{t(n)})},[t]),e}function kb(e){return(location.href?.indexOf("popup.html")>0?Ea:oe)({responseType:"json",url:gs+"/v1/user/settings",method:"get",headers:{token:e}}).then(n=>n.data)}function Ab(e,t){return(location.href?.indexOf("popup.html")>0?Ea:oe)({responseType:"json",url:gs+"/v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(a=>a.data)}function Fl(e){let{onClose:t}=e,[n,a]=De("Original"),[r,u,o,i]=ci(()=>{setTimeout(()=>{w("updateGlobalContext",!1)()},250)});tp(r,u);let[s,c]=De(null),[l,p]=De(globalThis.location.href),[f,m]=De("auto"),[d,h]=De(null),T=j=>{a(j.detail)},b=j=>{m(j);let L=pg(l,j,s.sourceLanguageUrlPattern);u(E=>({...E,sourceLanguageUrlPattern:L})),an(j)},C=()=>{p(globalThis.location.href)};Ve(()=>(document.addEventListener(Uu,T,!1),Lt().then(j=>{c(j);let L=pt();m(L);let E=We();a(E),di(j.interval)}),document.addEventListener("urlChange",C),()=>{document.removeEventListener("pageTranslatedStatus",T),document.removeEventListener("urlChange",C)}),[]),Ve(()=>{Lt().then(j=>{c(j)})},[r]),Ve(()=>{l&&s&&ln({url:l,config:s}).then(j=>{h(j)})},[l,s]);let w=(j,L,E={})=>()=>{gr({method:j,data:E||{}}),L&&t()},O=()=>{t()},B=()=>{u(j=>({...j,enabled:!j.enabled})),setTimeout(()=>{O()},50)},y=()=>{Bs(),setTimeout(()=>{O()},50)},A=()=>{Bs(),setTimeout(()=>{O()},50)},P=(j="")=>{Va(!0,j),setTimeout(()=>{t()},50)},M=()=>{yo(P4),setTimeout(()=>{globalThis.close()},50)},x=()=>{bo(),setTimeout(()=>{t()},50)},R=()=>{Eo(),setTimeout(()=>{t()},50)},F=()=>{Id(),setTimeout(()=>{t()},50)},D=()=>{xo(),setTimeout(()=>{t()},50)},_=()=>{Od(),setTimeout(()=>{t()},50)},U=j=>{u(L=>({...L,generalRule:{...L.generalRule,mouseHoverHoldKey:j}}))};return!s||!d?null:V(ll,{openEbookViewerPage:R,openEbookBuilderPage:D,onSwitchTranslationMode:j=>{w("switchTranslationMode",!0,{mode:j})()},onTranslateLocalHtmlFile:F,onTranslateLocalSubtitleFile:_,request:oe,onClose:O,onToggleEnabled:B,onTranslateTheWholePage:w("translateTheWholePage",!0),openOptionsPage:P,openPricingPage:M,onToggleTranslate:w("toggleTranslatePage",!0),onTranslateTheMainPage:w("translateTheMainPage",!0),ontranslateToThePageEndImmediately:w("translateToThePageEndImmediately",!0),onTranslatePage:w("translatePage",!0),onRestorePage:w("restorePage",!1),onTranslatePdf:y,openAboutPage:x,onTranslateLocalPdfFile:A,onSetPageLanguage:b,onUserConfigChange:u,config:s,pageStatus:n,ctx:d,currentUrl:l,currentLang:f,onSetLocalConfig:ho,onSetBuildinConfig:Dd,onMouseTriggerChanged:U})}function Sb(e,t){for(let n of t){if(fe()&&!Yu()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}var Pl={position:"right",right:0,top:335},Ft={...Pl},xi=!1,La=null,Sn=null,Ti=null,_l=null,yr=null,Bl=null,np=6,yi,Ei,rp=null,up=null;async function Il(){let e=Re();Bl=await Sd(),Ft=Bl.pagePopupConfig||Ft;let t=document.createElement("div");t.id="immersive-translate-popup",t.setAttribute("style","all: initial"),document.documentElement.appendChild(t);let n=t.attachShadow({mode:"open"});_l=n;let a=[e.IMMERSIVE_TRANSLATE_PICO_CSS,e.IMMERSIVE_TRANSLATE_COMMON_CSS,e.IMMERSIVE_TRANSLATE_POPUP_CSS,e.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);Sb(n,[a]);let r=document.createElement("div");r.innerHTML=e.IMMERSIVE_TRANSLATE_POPUP_HTML,n.appendChild(r),La=n.querySelector("#immersive-translate-popup-container");let o=n.querySelector("#immersive-translate-popup-btn");Sn=o,Ti=n.querySelector("#mount"),La.setAttribute("style",Rl(Ft)),Ul(),o.addEventListener("mousedown",op),o.addEventListener("touchstart",Mb),globalThis.addEventListener("resize",s=>{La.setAttribute("style",Rl(Ft))})}function Db(){du(null,Ti),Ti.style.display="none",Sn.style.display="block",yr=setTimeout(()=>{Ul(!0)},2e3)}function ap(e){let t=e.querySelector("#mount"),n=()=>{Db()},a=r=>{r&&r.target&&r.target.id==="immersive-translate-popup-overlay"&&n()};(async()=>{let r=await Lt();du(V(gg,{lang:r.interfaceLanguage,fallbackLang:"zh-CN",translations:z3,children:V("div",{onClick:a,id:"immersive-translate-popup-overlay",class:"immersive-translate-popup-overlay",children:V("div",{class:"immersive-translate-popup-wrapper",style:Lb(),children:V(Fl,{onClose:n})})})}),t)})().then(()=>{Sn.style.display="none",Ti.style.display="block"})}function Lb(){let e=Ol(),t=e.height,{position:n,top:a,left:r}=Ft,u={position:"fixed"},o=300,i=300,s=100;return Ac()&&(n=Pl.position,a=Pl.top),n==="right"||n==="left"?(u.top=a-s,u.top+o>=t?(u.bottom=30,delete u.top):u.top<=10&&(u.top=10),n==="right"?u.right=0:n==="left"&&(u.left=0)):(n==="top"||n==="bottom")&&(u.left=r-s,u.left+i>=e.width?(u.right=0,delete u.left):u.left<=10&&(u.left=0),n==="top"?u.top=0:n==="bottom"&&(u.bottom=0)),u}function Ol(){return{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}function op(e){up=La.getAttribute("style"),yi=e.pageX,Ei=e.pageY,yr&&clearTimeout(yr),xi=!1,Sn.style.opacity="1",Sn.style.transform="none",rp=Sn.getAttribute("style"),globalThis.addEventListener("mousemove",Nl),globalThis.addEventListener("mouseup",jl),globalThis.addEventListener("touchmove",ip),globalThis.addEventListener("touchend",Ci),globalThis.addEventListener("touchcancel",Ci)}function Mb(e){e.preventDefault&&e.preventDefault(),op(e.changedTouches[0])}function ip(e){Nl(e.changedTouches[0])}function Ci(e){e.preventDefault&&e.preventDefault(),jl(e.changedTouches[0])}function Nl(e){e.preventDefault&&e.preventDefault(),xi=!0,La.setAttribute("style",`left:${e.clientX}px;top:${e.clientY}px;transform:scale(1.6);`)}function jl(e){e.preventDefault&&e.preventDefault(),Pb(),yr&&clearTimeout(yr),yi=yi||0,Ei=Ei||0;let t=Math.abs(e.pageX-yi),n=Math.abs(e.pageY-Ei);t{Ul(!0)},2e3)}function Ul(e=!1){Sn.style.opacity="0.4";let t="";Ft.position==="left"?t="translateX(-40%)":Ft.position==="right"?t="translateX(40%)":Ft.position==="top"?t="translateY(-40%)":Ft.position==="bottom"&&(t="translateY(40%)"),Sn.style.transform=t,e&&(Sn.style.transition="transform 0.2s ease-in-out, opacity 0.2s ease-in-out")}function Pb(){globalThis.removeEventListener("mousemove",Nl),globalThis.removeEventListener("mouseup",jl),globalThis.removeEventListener("touchmove",ip),globalThis.removeEventListener("touchend",Ci),globalThis.removeEventListener("touchcancel",Ci)}function Rl(e){let t=_b(e);return Object.keys(t).map(n=>typeof t[n]=="number"?`${n}:${t[n]}px;`:"").join("")}function _b(e){let{position:t,...n}=e,a=Ol(),r={};return t==="left"?(r.left=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="right"?(r.right=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="top"?(r.top=0,n.left>a.width?r.left=a.width-100:r.left=n.left):t==="bottom"&&(r.bottom=0,n.left>a.width?r.left=a.width-100:r.left=n.left),r}var wi=!1;async function sp(e){if(!e){let t=await Lt(),n={url:globalThis.location.href,config:t};e=await ln(n)}e.config.debug&&N.setLevel("debug"),e.isTranslateExcludeUrl?N.debug("detect exclude url, do not inject anything."):(Kn().any||fe())&&e.rule.isShowUserscriptPagePopup&&(wi||(wi=!0,Il().catch(t=>{N.error("init popup error",t)})))}async function lp(){wi||(wi=!0,Il().catch(e=>{N.error("init popup error",e)}))}var cp=!1,pp=[()=>{Ye.unbind()}],Hl=[...pp],Bb=bt(async()=>{await Va()},50),Rb=bt(async()=>{await bo()},50),Ib=bt(async()=>{await xo()},50),Ob=bt(async()=>{await Eo()},50),fp=bt(e=>{gr({method:e,data:{trigger:"userscript_menu"}})},50),Nb=bt(()=>{co();let e=new CustomEvent($n,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},200),jb=bt(()=>{fo();let e=new CustomEvent($n,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},200),Ub=bt(()=>{go();let e=new CustomEvent($n,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},200);function zb(e,t){let n=e.document;if(cp)return;if(cp=!0,fe()||Td(),n.addEventListener("securitypolicyviolation",Xb),document.addEventListener(ge+"DocumentMessageUser",yp),document.addEventListener(ge+"DocumentMessageUpdateUser",Ep),document.addEventListener(ge+"ChangeSuccessService",xp.bind(null,t)),document.addEventListener(Nu,Jb.bind(null,t)),n.addEventListener(ge+"EbookLoaded",Zb),n.addEventListener(p4,Qb),n.addEventListener(f4,ey.bind(null,t)),n.addEventListener("click",r=>{$b(r,t)}),fe()&&(globalThis.top!=globalThis.self?e.addEventListener("message",qb,!1):n.addEventListener($n,Hb)),globalThis.top===globalThis.self){let r=ta.rootIframe($u);r.handleAsk("getRateLimitDelay",Jd),r.handleAsk("throttleRequest",Rm)}}function bu(e,t){ty(),zb(t,e);let n=t.document,a=Wb.bind(null,e);e.rule.fingerCountToToggleTranslagePageWhenTouching>=2&&n.addEventListener("touchstart",a),Hl.push(()=>{n.removeEventListener("touchstart",a)}),fe()&&globalThis.top===globalThis.self&&(G0(e.config),ny(e.config)),Rt()&&G0(e.config)}function Hb(e){lp()}function qb(e){let t=e;t&&t.data&&t.data.payload&&t.data.author===Iu&&Ga(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})}function Wb(e,t){let n=t;n.touches.length==e.rule.fingerCountToToggleTranslagePageWhenTouching?Nb():n.touches.length===e.rule.fingerCountToToggleTranslationMaskWhenTouching?Ub():n.touches.length===e.rule.fingerCountToToggleTranslagePageOnlyTranslationWhenTouching&&jb()}function $b(e,t){let n=e.target;if(!n||!n.getAttribute){zl(n);return}let a=n.getAttribute("data-immersive-translate-event");a&&$e(a,[{name:a}],{...t,sourceLanguage:"none"});let r=n.getAttribute(`data-${J}-action`);if(r)if(r==="retry"){e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),mo(),zl(n,!0);return}else if(r=="toast-error"){let u=n.getAttribute(`data-${J}-tooltip-text`);ql(bp.bind(null,t,u||""))}else r=="close-search"&&(e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),ql(Vb.bind(null,t)));zl(n)}async function dp(e=!1){let t=document.querySelector(`.${J}-search-recomend`);if(!t||(t.remove(),!e))return;let n=await on();n.generalRule||(n.generalRule={}),n.generalRule.enableSearchEnhancement=!1,await un(n)}async function Kb(){let e=await on(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,a=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(a=e.translationUrlPattern.matches||[]),!n&&a.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await un(e)}async function Gb(){let e=await on(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await un(e)}var mp=0;function ql(e){let t=Date.now();if(t-mp<2e3)return;mp=t;let n=`${J}-modal`,a=document.querySelector(`.${n}`);if(a?.style.display=="block")return;let r=`${J}-modal-title`,u=`${J}-modal-body`,o=`${J}-modal-footer`;if(a){let i=a.querySelector(`.${r}`),s=a.querySelector(`.${o}`),c=a.querySelector(`.${u}`);e(a,i,c,s)}else{a=document.createElement("div"),a.className=n+" notranslate",a.id=n;let i=document.createElement("div");i.className=J+"-modal-content notranslate",a.appendChild(i);let s=document.createElement("span");s.textContent="\xD7",s.className=J+"-close",i.appendChild(s);let c=document.createElement("div");c.className=r+" notranslate",i.appendChild(c);let l=document.createElement("div");l.className=u+" notranslate",i.appendChild(l);let p=document.createElement("div");p.className=o,i.appendChild(p),document.body.appendChild(a),s.onclick=function(){a.style.display="none"},window.onclick=function(f){f.target==a&&(a.style.display="none")},e(a,c,l,p)}setTimeout(()=>{Yb()},100)}function Vb(e,t,n,a,r){let u=hp.bind(null,e);n.innerHTML=`
${si} ${u("disableConfirm")}
`,a.innerHTML="";let o=document.querySelector(`div[data-${J}-cancel-desc]`),i=document.createElement("p");i.innerHTML=o?_e.sanitize(o.textContent||""):_e.sanitize(u("searchEnhancementNotes")),i.style.cssText="margin-bottom:12px",a.appendChild(i);let s=[{id:"enable-search-enhancement",value:"enable",text:u("enableSearchEnhancement")},{id:"disable-once",value:"once",text:u("disableOnce")},{id:"disable-global",value:"global",text:u("disableGlobal")}];for(let m=0;m${u("option")}`})),a.appendChild(c);let l=a.querySelector(`.${J}-open-enhancement`);l&&(l.onclick=function(){Rd(!0)});let p=document.createElement("button");p.innerText=u("closeModal"),p.className=`${J}-btn ${J}-cancel-btn`;let f=document.createElement("button");f.className=`${J}-btn`,f.innerText=u("saveSettings"),r.innerHTML="",r.appendChild(p),r.appendChild(f),p.onclick=function(){t.style.display="none"},f.onclick=function(){let m=a.getElementsByTagName("input"),d="";for(let h=0;h
1. \u5207\u6362\u5230 ${u} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458`:i+=`

\u5982\u679C\u60A8\u6709\u7591\u95EE\uFF0C\u8BF7\u8054\u7CFB support@immersivetranslate.com`,ql(bp.bind(null,e,i))}catch(a){N.warn("parse message error",a)}}function Qb(e){let t=e;if(N.debug("receive third party message",t),t&&t.detail)try{let n=JSON.parse(t.detail);n&&n.type&&(n.type==="retryFailedParagraphs"?ay({method:"retryFailedParagraphs"}):n.type==="updateCommands"?To(n.data):n.type==="toggleEnableDefaultAlwaysTranslatedUrls"?Kb():n.type==="toggleEnableInputTranslation"?Gb():fp(n.type))}catch(n){N.warn("parse message error",n)}}function Zb(e){setTimeout(()=>{vi()},10)}function Xb(e){xe.HAS_CSP_ERROR="1"}function ey(e,t){let n=event.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&$e(n.name,[{name:n.name}],{...e})}function ty(){Hl.forEach(e=>{e()}),Hl=pp}function ny(e){if(fe()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=Qu.commands,r=[...Object.keys(t).filter(u=>u==="toggleTranslatePage").map(u=>{let o=t[u].description,i=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(i=mr(`browser.${o.slice(6,-2)}`,e.interfaceLanguage)),{id:u,title:i}}),{id:os,title:mr("browser.openEbookViewer",e.interfaceLanguage),key:"e"},{id:is,title:mr("browser.openEbookBuilder",e.interfaceLanguage),key:"m"},{id:rs,title:mr("browser.openOptionsPage",e.interfaceLanguage),key:"o"},{id:us,title:mr("browser.openAboutPage",e.interfaceLanguage),key:"a"}];for(let u of r)GM.registerMenuCommand(u.title,()=>{u.id===rs?Bb():u.id===us?Rb():u.id===is?Ib():u.id===os?Ob():fp(u.id)},u.key)}}function ay(e){Ga(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{N.error("send content message request failed",e,n)});let t=new CustomEvent($n,{detail:e});globalThis.document.dispatchEvent(t)}g();var Ma={};async function Wl(){let t=[...document.querySelectorAll(".source-text")].map(a=>a.textContent).join(""),n=await Qe({text:t,minLength:200,pageLangs:[ya(),"en"]});return an(n),n}async function Tp(e){Dt("Translating");let t=pt(),n=oo(),a=[...document.querySelectorAll(".source-text")];if(jo(e,t))return;let r=a.filter(u=>u.innerText?.trim()).map((u,o)=>{let i=u.parentElement?.parentElement?.querySelector(".target-text");return at(u,"id",o+""),i&&(or(i,o)?.remove(),i.appendChild(ou(e,o))),{text:u.innerText||"",id:o,from:t,to:e.targetLanguage,url:"https://google.com",fromByClient:n}});document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await ua({sentences:r},e,(u,o,i)=>{let s=i.id,c=or(document.body,s);if(!c)return;let l=c.parentElement;l&&(c.remove(),u?(l.innerHTML=_e.sanitize(`${u.message}`),Ma[s]={ok:!1,sentence:i}):o&&(l.innerHTML=_e.sanitize(o.text),Ma[s]={ok:!0,sentence:i}),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!u}})})))})}catch(u){throw u}finally{Dt("Translated")}}async function Cp(e){Dt("Translating"),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(Ma),n=[],a=[];for(let r of t){let u=Ma[r];if(!u.ok){let i=document.querySelector(`#error-id-${r}`);if(i){let s=i.parentElement;i.remove(),s&&(delete Ma[r],s.appendChild(ou(e,r)),a.push(u.sentence))}}}try{await ua({sentences:a},e,(r,u,o)=>{let i=o.id,s=or(document.body,i);if(!s)return;let c=s.parentElement;c&&(s.remove(),r?(c.innerHTML=_e.sanitize(`${r.message}`),Ma[i]={ok:!1,sentence:o}):u&&(c.innerHTML=_e.sanitize(u.text),Ma[i]={ok:!0,sentence:o}),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!r}})})))})}catch(r){throw r}finally{Dt("Translated")}}function $l(){Dt("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}g();var Kl={};async function wp(){let e=[...document.querySelectorAll("iframe")],t="";for(let a of e){let r=a.contentDocument;if(!r)continue;let u=r.body;if(u&&(t=t+u.innerText||"",t.length>1e3))break}let n=await Qe({text:t,pageLangs:["en"]});return an(n),n}async function vp(e){Dt("Translating"),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(Kl),n=[];for(let a of t){let r=Kl[a];if(r.error){let o=r.commonAncestorContainer.querySelector(`[${zu}='${a}']`);o&&o.remove(),n.push(r)}}try{await Wo(n,e,e.config.translationMode)}catch{}finally{Dt("Translated")}}function kp(){let e=[...document.querySelectorAll("iframe")];for(let t of e){let n=t.contentDocument;if(!n)continue;let a=n.querySelectorAll("."+$t);for(let r of a)r.remove()}Dt("Original")}async function Ap(e){Dt("Translating");let t=hn(),n=[...document.querySelectorAll("iframe")],a=[],r=[];for(let i of n){let s=i.contentDocument;if(!s)continue;sr(s,e);let c=s.body;if(!c)continue;let l=cn(e);l.isModifyImage=!1,la({id:t,container:c,filterRule:l,onParagraph:p=>{a.push(p)}})}let u=No(e.config.translationServices[e.translationService]?.placeholderDelimiters),o=1;for(let i of a){let s=zo(i.flatNodes,{isPreWhitespace:i.isPreWhitespace||!1,delimiters:u,stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(l=>l.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)});if(!s)continue;i.variables=s?.variables||{},i.text=s?.text,i.id=(o++).toString();let c=await H0(i,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:u,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});c&&(r.push(c),Kl[c.id]=c)}a=[],document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await Wo(r,e,e.config.translationMode)}catch{}finally{Dt("Translated")}}g();var ry=new AbortController,{signal:uy}=ry,Ql=0,Zl=0,Gl=!1,Vl=0,yu=!1,Fa,Sp=0,Pa=[];function ki(e,t){oy();let n=e,a=n.config,r=a.generalRule.mouseHoverHoldKey==="Off",u=a.generalRule.mouseHoverHoldKey==="Auto",o=bt(l=>{if(Gl==!1&&Math.abs(l.clientX-Ql)+Math.abs(l.clientY-Zl)>3&&(Vl<2?Vl+=1:Gl=!0),Ql=l.clientX,Zl=l.clientY,u||yu&&!Fa){let p=Pp(n.rule,t);if(p){if(Xl(p))return;Lp(n,p)}}},u?700:300),i=l=>{let p=l.target;Xl(p)||Lp(n)},s=l=>{let p=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",f=Ye.getPressedKeyCodes();if(f.length>1&&Ye[p]&&(Sp=Date.now(),yu=!1),f.length===1&&Ye[p]){let m=Date.now();yu=!0,Fa&&clearTimeout(Fa),Fa=setTimeout(()=>{let d=Sp-m;d>0&&d<=150?yu=!1:i(l),Fa=void 0},150)}};if(Pa.push(()=>{Fa&&clearTimeout(Fa)}),r)return;Yl("mousemove",o,t),Pa.push(()=>{t.removeEventListener("mousemove",o)});function c(){Gl=!1,Vl=0,o.cancel()}if(u)Yl("blur",c,t),Pa.push(()=>{t.removeEventListener("blur",c)});else{let l=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=["ctrl","alt","shift","cmd","command","option","control"];Yl("keyup",Dp,t),Pa.push(()=>{t.removeEventListener("keyup",Dp)}),p.includes(l)?Ye("*","mouseHover",s):Ye(a.generalRule.mouseHoverHoldKey,"mouseHover",i),Ye.setScope("mouseHover"),Pa.push(()=>{Ye.deleteScope("mouseHover")})}}function oy(){Pa.forEach(e=>e()),Pa=[]}function Dp(e){yu=!1}function Yl(e,t,n=window){return n.addEventListener(e,t,{signal:uy})}function Lp(e,t,n=window){if(t=t||Pp(e.rule,n),!t){N.debug("can not find selection part!");return}if(Xl(t)){N.debug("exclude dom");return}I3(e,t);let a=Go();a?.currentUrl!==window.location.href&&(Nn(),$0(e)),a&&(a.setupMouseHoverListener=ki);let r=cn(e);r.excludeSelectors=[],r.selectors=[];let u=!1;la({id:a.id,container:t,filterRule:r,force:!0,onParagraph:o=>{su(a,o,!0).then(i=>{if(i&&!u){u=!0;let s=Date.now();Ue(b4,s),$e("mouse_hover_translate",[{name:"mouse_hover_translate"}],{...e,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function Pp(e,t){return iy(Ql,Zl,e,t)}function iy(e,t,n,a){let r=o3(e,t,n,a);if(r==null)return;let u=()=>{let s=a.document.elementFromPoint(e,t);if(!s)return;let c=i3(s,e,t);return c===s?s.nodeName==="BUTTON"?s:void 0:Fp(c,n)},o=()=>{try{r.setStartBefore(r.startContainer),r.setEndAfter(r.startContainer)}catch(c){N.debug("get mouse over word fail",c)}let s=r.getBoundingClientRect();if(!(s.left>e||s.rightt||s.bottomn[l]=[l,...n[l]||[]]);let a=t.inputStartingTriggerKeyAlias[t.inputStartingTriggerKey]||[];a.includes(t.inputStartingTriggerKey)||a.unshift(t.inputStartingTriggerKey),n[t.inputTargetLanguage]=[...a,...n[t.inputTargetLanguage]];let r=t.inputTrailingTriggerKeyTimeout;Kn().any&&(r=t.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:t.inputTrailingTriggerKeyRepeatTimes,triggerKey:t.inputTrailingTriggerKey,triggerTimeout:r,codePrefix:t.inputStartingTriggerKey,codeAlias:n,flatAlias:Object.values(n).flat(),codePrefixAlias:t.inputStartingTriggerKeyAlias},o=0,i=Date.now();Ai&&self.removeEventListener("keydown",Ai),Ai=s,self.addEventListener("keydown",Ai);function s(l){if(Er||Si===!1)return;let p=l,f=p.target||p.srcElement,m=f?.tagName;(f?.isContentEditable||m=="INPUT"||m=="SELECT"||m=="TEXTAREA")&&(ky(l,u.triggerKey,u.codePrefixAlias)?c(l):o=0)}async function c(l){Date.now()-i=u.triggerTimes&&my()&&(o=0,dy(l,e,u))}Ay(e)}function sy({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let a=[],r=n[e]||[];r.includes(e)||r.unshift(e);for(let u of r){let o=t.map(i=>{let s=u+i;return r.includes(i)||(s+=" "),s});a.push(...o)}return new RegExp(a.join("|"))}function Bp(e,t){for(let[n,a]of Object.entries(t))if(a.includes(e))return n;return""}var xr;function ly(e){let t=e.parentElement;if(!t)return;xr=document.createElement("div"),xr.className=J+"-input",xr.innerHTML=`
`,t.appendChild(xr);let n=t,a=!1;do{let r=getComputedStyle(n).position;if(["fixed","absolute","relative"].includes(r)){a=!0;break}n=n.parentElement}while(n);if(n=t,!a)do{if(getComputedStyle(n).position==="static"){n.style.position="relative";break}n=n?.parentElement||null}while(n)}function cy(){xr&&xr.remove()}async function dy(e,t,n){if(!Er)try{let f=function(){i=t.config.inputTargetLanguage;let d=o.split(" ")[0];d&&d[0]&&(d=d[0].toLowerCase()+d.slice(1)),d.trim()&&n.flatAlias.includes(d)?(i=Bp(d,n.codeAlias),u=o.slice(d.length+1)):u=o},m=function(){i="";let d=sy(n),h=o.split(d);if(h.length<2)return;if(u=h[h.length-1],r=h[0],h.length>2){let b=o.lastIndexOf(u),C=o.slice(0,b).lastIndexOf(h[h.length-2]);r=o.slice(0,C+h[h.length-2].length)}if(r.endsWith(n.codePrefix))return;let T=o.slice(r.length+1,o.indexOf(u)).trim();if(i=Bp(T,n.codeAlias),!i){N.warn("not found alias",T);return}},a=document.activeElement;Er=!0;let r="",u="",o=Tr(a)||"",i=t.config.inputTargetLanguage;n.codePrefix==="none"?f():(m(),!i&&t.config.enableInputTranslationWithoutTriggerKey&&f());let s=py(u,n),c=await Qe({text:s,pageLangs:["en"]});N.debug("translateContent",s,c);let l={text:s||"",id:0,from:c,to:i,url:"https://google.com",fromByClient:c};if(!l.text)return;if(t.config.isShowInputTranslationConsent&&!_p){_p=!0;let d=await Sy(t);if(e.target&&e.target.focus(),d==="open_settings"){Va(!0,"#input");return}else if(d==="open_learn_more"){yo("https://immersivetranslate.com/docs/input/");return}else if(d==="disable_once"||d==="disable_forever"){if(Si=!1,d==="disable_forever"){let h=await on();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await un(h)}else if(d==="disable_once"){let h=await on();h.isShowInputTranslationConsent=!1,await un(h)}return}else if(d==="close_disable_once"||d==="close_disable_forever"){if(Si=!1,d==="close_disable_forever"){let h=await on();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await un(h)}return}else if(d==="enable"){let h=await on();h.enableInputTranslation=!0,h.isShowInputTranslationConsent=!1,await un(h)}else if(d==="close_enable"){let h=await on();h.enableInputTranslation=!0,await un(h)}}ly(a),Ue(ss,Date.now());let p=await Aa(l,{...t,translationService:t.inputTranslationService});vy(t),wy(a,r+p.text),Er=!1}catch(a){throw Er=!1,a}finally{Er=!1,cy()}}function my(){let e=document.activeElement;if(!e)return!1;if(Di(e)){let t=e.selectionStart||0,n=e.value.length,r=e.value.split(` -`).reverse()[0].trim(),u=n<=t;return N.debug("cursorPosition",t,"textLength",n),N.debug("input isTail",u,"tailHasText",r),u&&!!r}else{let t=window.getSelection();if(!t)return N.debug("No active selection found."),!1;if(t.rangeCount>0){let n=t.getRangeAt(0),a=n.startContainer;if(a.nodeType===Node.TEXT_NODE){let r=gy(a,e);N.debug("Current text node:",a.textContent),N.debug("Cursor position within text node:",n.startOffset);let u=a.textContent?.length===n.startOffset&&r,o=a.textContent?.trim();return N.debug("editdiv isTail",u,"tailHasText",o),u&&!!o}else N.debug("Cursor is not within a text node.")}}return!1}function gy(e,t){let n;function a(r){if(r.nodeType===Node.TEXT_NODE)n=r;else for(let u of r.childNodes)a(u)}return a(t),n==e}function py(e,t){let{triggerTimes:n,triggerKey:a}=t,r=0,u=" ";a.length==1?(r=n,u=a):a.toLowerCase()=="space"&&(r=n);let o=e.length;for(let i=e.length-1;i>=e.length-r;i--){if([10,8629].includes(e[i].charCodeAt(0))){o--;continue}if(![...t.codePrefixAlias[a]||[],u].includes(e[i]))break;o--}return e.length-o<3&&[".","\u3002"].includes(e[o-1])&&o--,e.slice(0,o)}function fy(e,t){let n=t.innerHTML,a=Tr(t);return{html:n.replace(a,e),text:e}}function Rp(e,t,n=!1){let a=Tr(t);return n?a.trim().endsWith(e.text.trim()):a.trim()==e.text.trim()}function Tr(e){return e.value||e.innerText||e.textContent}async function _a(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function hy(e,t,n){await _a(10);let a=new DataTransfer;e.forEach(r=>{r==="plain"&&a.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:a,bubbles:!0,cancelable:!0})),a.clearData(),await _a(10)}async function by(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await _a(10))}async function yy(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await _a(20),(t.value||t.value==="")&&(t.value=e.text)}async function Ey(e,t){Di(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await _a(20))}var xy=[hy.bind(null,["plain"])];function Ty(e){let t;Di(e)?t=new InputEvent("beforeinput",{bubbles:!0,cancelable:!0,inputType:"deleteContent"}):t=new KeyboardEvent("keydown",{bubbles:!0,cancelable:!0,keyCode:8,which:8,location:0,key:"Backspace"}),e.dispatchEvent(t)}function Di(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function Cy(e){if(Di(e))return;e.focus();let t=window.getSelection();if(!t)return;let n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}async function wy(e,t){await Cy(e),await _a(50);let n=fy(t,e);Ty(e),N.debug("clearContent",Tr(e)),await _a(50);for(let a of[...xy,yy,Ey,by])if(await a(n,e),N.debug("setContent",a.name,Rp(n,e),Tr(e),n),Rp(n,e))break}function vy(e){$e("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage}}],e)}function ky(e,t,n){let a="";e&&e.code&&(a=e.code.toLowerCase());let r="";e&&e.key&&(r=e.key.toLowerCase());let u=e.keyCode,o=n[t]||[];return u===229&&t!=="space"?!1:!!(o.includes(a)||o.includes(r)||a===t||r===t)}async function Ay(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await St(t,"")||Number(await St(ss,0))>0)return;let r=e.rule.inputTutorialsSelectors,u=e.rule.inputTutorialsText;if((r?.length||0)>0&&u)for(let o=0;o{Ly()},100),new Promise(c=>{let l=c;if(u){let A=u.querySelector(`.${n}`),P=u.querySelector(`.${r}`),M=u.querySelector(`.${a}`)}else{u=document.createElement("div"),u.className=t+" notranslate",u.id=t;let A=document.createElement("div");A.className=J+"-modal-content notranslate",u.appendChild(A);let P=document.createElement("span");P.textContent="\xD7",P.className=J+"-close",A.appendChild(P),o=document.createElement("div"),o.className=n+" notranslate",A.appendChild(o),s=document.createElement("div"),s.className=a+" notranslate",A.appendChild(s),i=document.createElement("div"),i.className=r,A.appendChild(i),document.body.appendChild(u),P.onclick=function(){w(),c("close")},window.onclick=function(M){M.target==u&&(u.style.display="none",c("close"))}}document.addEventListener("keydown",y);let p=Dy.bind(null,e);o.innerHTML=`
${si} ${p("modalEnableInputTranslationTitle")}
`,s.innerHTML="";let f=document.createElement("p");f.innerHTML=p("modalEnableInputTranslationDesc",{1:"https://immersivetranslate.com/docs/input/"}),f.style.cssText="margin-bottom:12px",s.appendChild(f);let m=document.createElement("div");m.style.cssText="margin-bottom: 12px;",m.innerHTML=_e.sanitize(p("disableInputTranslationTips",{option:`${p("option")}`,learnMore:`${p("learnMore")}`})),s.appendChild(m);let d=[{id:"enable-search-enhancement",value:"enable",text:p("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:p("disableOnce")},{id:"disable-global",value:"global",text:p("disableGlobal")}];for(let A=0;A{ua({sentences:r},{...e,translationService:"google"},(s,c,l)=>{if(s)return o([]);let p=c?.id||0,f=n[p];f&&f.className==J+"-search-title-wrapper"&&(f.innerHTML+=_e.sanitize(`
${c?.text}
`,{ADD_ATTR:["target"]}))})})}function Li(e,t,n){t&&$e(t.key,[{name:t.key}],{...e,sourceLanguage:t.sourceLanguage||n})}function tc(e,t,n,a){let r=n.querySelectorAll('[translate="true"]');return My(e,t,[...r],a),n}async function nc(e,t){let a=(await oe({url:Fy(e),method:"GET",responseType:"raw",headers:{"cache-control":"no-cache","content-type":"application/xml","Sec-Fetch-Site":"none",accept:"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}})).body,u=new DOMParser().parseFromString(a,"text/xml"),o=[],i=u.querySelectorAll("item");for(let s=0;s${e.cancelDescription}
`:""} +`+t.rule.additionalInjectedCss)),i&&ia(e,i,"immersive-translate-dynamic-injected-css")}g();async function v3(){let e="auto",t=[ya(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await Qe({text:nr(document.body),pageLangs:t})),e}g();g();function k3(e,t){return[e,!e||e.endsWith("/")?"":"/",t,".json"].join("")}function P0(e,t){let n=e;return t&&Object.keys(t).forEach(a=>{let r=t[a];if(r===void 0)return;let u=a9(a);if(typeof r=="object"||u){let o=r;u&&typeof o=="string"&&(o={tag:"a",href:o});let i=`<${a}>`,s=n.indexOf(i);if(s!==-1){let c=o.tag||"a",l=n.indexOf(``);if(l!==-1){let p=n.substring(s+i.length,l),f=Object.keys(o).filter(m=>m!=="tag").map(m=>`${m}="${o[m]}"`).join(" ");n=n.replace(`${i}${p}`,`<${c} ${f}>${p}`)}}}else if(r){let o=new RegExp("{"+a+"}","gm");n=n.replace(o,r.toString())}}),n}function ou(e,t,n){let a=e[t];if(!a)return n;let r=n.split("."),u="";do{u+=r.shift();let o=a[u];o!==void 0&&(typeof o=="object"||!r.length)?(a=o,u=""):r.length?u+=".":a=n}while(r.length);return a}function In(e,t,n,a,r){if(!e.hasOwnProperty(n))return t;let u=ou(e,n,t);return u===t&&n!==a&&(u=ou(e,a,t)),P0(u,r)}function a9(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}g();g();function _0(e,t,n=[],a){let r=["notranslate"];return a&&r.push(A4),e&&(r.push(`${J}-target-translation-theme-${e}`),t?r.push(`${ds}-theme-${e}`):r.push(`${cs}-theme-${e}`)),n.length>0&&r.push(...n),t?r.push(ds):r.push(cs),r}function B0(e){let t=["notranslate",v4];return e&&t.push(`${J}-target-translation-theme-${e}-inner`),t}function A3(e,t,n){let{rule:a,state:r}=n,{translationTheme:u}=r,{variables:o,isVertical:i}=e;o=o||[];let{text:s}=t,{wrapperPrefix:c,wrapperSuffix:l}=a,p=rr(n),f="afterend",m=p[0],d=p[1],h=`${m}(\\d+)${d}`,T=new RegExp(h,"g"),b=_e.sanitize(s);o.length>0&&(b=b.replace(T,B=>{let y=b.indexOf(B),S=b[y-1]===" ",P=b[y+B.length]===" ",M=B.slice(p[0].length,-p[1].length),x=Number(M);if(isNaN(x))return B;let R=o[Number(x)];if(R&&R.type==="element"){let F=R.value.outerHTML;return S||(F=" "+F),P||(F=F+" "),F}else N.error("variable type not supported",R,B);return B}));let C=_0(u,e.inline,a.translationClasses||[],e.preWhitespace);i&&C.push(k4);let w=B0(u),I="";return a.translationBlockStyle&&(I=`style="${a.translationBlockStyle}"`),b=`<${n.rule.targetWrapperTag} ${I} class="${C.join(" ")}" ${kn}="1"><${a.targetWrapperTag} class="${w.join(" ")}" ${kn}="1">${b}`,e.inline||(c==="smart"?b=`
${b}`:b=`${c}${b}`),e.inline&&(c!=="smart"?b=`${c}${b}`:b=`<${a.targetWrapperTag} class="notranslate" ${kn}="1"> ${b}`),l==="smart"?b=`${b}`:b=`${b}${l}`,{html:b,position:f}}function zo(e,t){let n=null,{stayOriginalSelectors:a,delimiters:r,isPreWhitespace:u}=t,o=[],i={};for(let s=0;s2&&(T=`<${r[2]}${h}>`),i[h]=c,o.push({text:T,type:"variable"})}else o.push({text:c.textContent||"",type:"text"});else{let d=c.textContent||"";p&&(d=sa(R0(c))),o.push({text:d,type:"text"})}else if(c.nodeType===Node.ELEMENT_NODE)if(c&&Mt(c,a)){let h=Object.keys(i).length,T=`${r[0]}${h}${r[1]}`;r.length>2&&(T=`<${r[2]}${h}>`),i[h]=c;let b=O0(o).endsWith(" ")?" ":"",C=sa(c.innerText||c.textContent),w=sa(c.nextSibling).startsWith(" ")?" ":"",I=ru(b+C+w),B=I[0]+T+I[1];if(b===" ")B=B.trimStart();else if(!B.startsWith(" ")){let y=ru(c.previousSibling)[1];y===""&&(y=" "),B=y+B}o.push({text:B,type:"variable"})}else{let d=O0(o).endsWith(" ")?" ":"",h=sa(c.innerText||c.textContent);p&&(h=sa(R0(c)));let T=sa(c.nextSibling).startsWith(" ")?" ":"",b=ru(d+h+T),C=b[0]+(c.innerText?.trim()||c.textContent?.trim()||"")+b[1];if(d===" ")C=C.trimStart();else{let w=ru(c.previousSibling)[1];w===""&&(c.nodeName==="A"||c.nodeName==="CODE")&&(w=" "),C=w+C}o.push({text:C,type:"text"})}else{let d=O0(o).endsWith(" ")?" ":"",h="";c.textContent&&(h=sa(R0(c))),d===" "&&(h=h.trimStart()),o.push({text:h,type:"text"})}}if(o&&o.length>0){let s="";for(let c=0;c0&&(p=o[c-1].text),c2){let l=c[2];return r9({delimiterTag:l,targetText:e.targetText,inline:r,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:a}).html}else{let l=A3(s,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return l.html}}function R0(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function r9(e){let{delimiterTag:t,inline:n,translationClasses:a,targetWrapperTag:r,wrapperPrefix:u,variables:o,preWhitespace:i,wrapperSuffix:s,translationTheme:c,translationBlockStyle:l}=e;o=o||[];let p=e.targetText;p=_e.sanitize(p);let f=p,m=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),d=new RegExp(`<${t}(\\d+)>`);o.length>0&&(f=f.replace(m,C=>{let w=f.indexOf(C),I=f[w-1]===" ",B=f[w+C.length]===" ",y=C.match(d);if(!y)return C;let S=y[1],P=Number(S);if(isNaN(P))return C;let M=o[Number(P)];if(M&&M.type==="element"){let x=M.value.outerHTML;return I||(x=" "+x),B||(x=x+" "),x}else if(M&&M.type==="text"){let x=M.value;return I||(x=" "+x),B||(x=x+" "),x}else N.error("variable type not supported",M,C);return C}));let h=_0(c,n,a||[],i),T=B0(c),b="";return l&&(b=`style="${l}"`),f=`<${r} ${b} class="${h.join(" ")}" ${kn}="1"><${r} class="${T.join(" ")}" ${kn}="1">${f}`,n||(u==="smart"?f=`
${f}`:f=`${u}${f}`),n&&(u!=="smart"?f=`${u}${f}`:f=`<${r} class="notranslate" ${kn}="1"> ${f}`),s==="smart"?f=`${f}`:f=`${f}${s}`,{html:f,position:"afterend"}}function O0(e){let t=e[e.length-1];return t?t.text:""}function cn(e){let t=e.rule.selectors,n=e.rule.excludeTags,a=e.rule.additionalExcludeTags,r=e.rule.excludeSelectors,u=e.rule.additionalExcludeSelectors;return e.state.translationArea==="body"&&(t=[],r=[]),{globalStyles:e.rule.globalStyles,globalAttributes:e.rule.globalAttributes,selectors:t,skipEditableCheck:e.rule.skipEditableCheck,lineBreakMaxTextCount:e.rule.lineBreakMaxTextCount,isTransformPreTagNewLine:e.rule.isTransformPreTagNewLine,excludeSelectors:n.concat(a).map(i=>i.toLowerCase()).filter(i=>i!=="code"&&i!=="img").concat(r).concat(u),blockSelectors:e.rule.allBlockTags.map(i=>i.toLowerCase()).concat(e.rule.extraBlockSelectors),extraBlockSelectors:e.rule.extraBlockSelectors,extraInlineSelectors:e.rule.extraInlineSelectors.concat(e.rule.additionalInlineSelectors),stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(i=>i.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)}}var u9={sanitize:e=>e};function qo(e,t){e.interruptEffectDOM||(e.walkContainer({id:e.id,container:t,filterRule:cn(e.ctx),onParagraph:iu.bind(null,e),onFrame:n=>{N0(e,n,!0)},onIgnoreElement:n=>{e.ignoreResizeObserver?.observe(n)}}),Na&&at(t,"consumeContainer",e.id))}function N0(e,t,n){try{if(e.injectCssToDocument(t,e.ctx),t instanceof HTMLIFrameElement){if(!ur(t))return;N.debug("onFrame fragment",t);let a=t.contentWindow?.document.body;a&&(cr(a,e,n),e.dynamicContainerObserver?.observe(a,{childList:!0,subtree:!0}))}else N.debug("onFrame shadowRoot",t.host),cr(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0})}catch{}}function cr(e,t,n=!0){let{globalStyles:a,globalAttributes:r}=cn(t.ctx),u=0;if(s(t,e,n))return;if(Tn(e)&&i(e)){o(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,l=>(Tn(l)&&(a&&S0(l,a),r&&L0(l,r)),s(t,l,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(zt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode();){zt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let l=c.currentNode;if(i(l))for(o(l);;){if(c.nextSibling()){let p=c.currentNode;if(zt.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),i(p)){o(p);continue}else break}if(!c.parentNode())return}}}catch{}if(u==0&&e instanceof HTMLElement){o(e);return}return t.observeContainers;function o(c){zt.clearMark(c),u++,t.immediateTranslateCapacity>=0?qo(t,c):(Na&&at(c,"observeContainer",t.id),t.containerVisibleObserver?.observe(c))}function i(c){let l=c.nodeName.toLowerCase();if(c.shadowRoot)return N0(t,c.shadowRoot,n),!1;if(l==="iframe")return N0(t,c,n),!1;if(["script","#document-fragment","img"].includes(l))return!1;let p=t.containerRule;if(p.selectors&&p.selectors?.length>0)return Uo(c,p.selectors);if(p.pageHeight){let f=c.scrollHeight;if(f>0&&f0)return!0}return!1}function s(c,l,p){if(l.nodeName.toLowerCase()=="script")return l.childNodes.length==0||l.childNodes.length==1&&l.childNodes[0].nodeType==Node.TEXT_NODE;if(l.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(l.nodeType!==Node.ELEMENT_NODE||p&&zt.isMarked(l,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&l.nodeName==="PRE")return!1;let m=cn(c.ctx);return!!M0(l,{excludeSelectors:m.excludeSelectors,selectors:m.selectors,stayOriginalSelectors:m.stayOriginalSelectors})}}function j0(e,t){if(!e.targetNodes)return;let n=e.state||"original",a=e.commonAncestorContainer;if(!zt.isMarked(a,e.ctxId))return;let r=a.contains(e.rootNodes[0]),u=a.contains(e.targetNodes[0]);if(r&&u)n="dual";else if(r)n="original";else if(u)n="translation";else return;if(t!=n){e.state=t;try{if(n=="dual"&&t=="translation"&&(Ho(e.rootNodes),L3(e.commonAncestorContainer)),n=="original"&&t=="translation"){let o=I0(e.rootNodes);if(Ho(e.rootNodes),D3(o))return;lr(o,a,e.targetNodes||[]),L3(e.commonAncestorContainer)}if(n=="translation"&&t=="dual"){let o=e.targetNodes[0];lr(o,a,e.rootNodes||[]),M3(e.commonAncestorContainer)}if(n=="original"&&t=="dual"){let o=I0(e.rootNodes);if(D3(o))return;lr(o,a,e.targetNodes||[]),M3(e.commonAncestorContainer)}if(n=="translation"&&t=="original"){let o=I0(e.targetNodes);Ho(e.targetNodes),lr(o,a,e.rootNodes||[])}n=="dual"&&t=="original"&&Ho(e.targetNodes)}catch(o){N.error(o)}}}function D3(e){return!e||!Tn(e)?!1:e.classList.contains(Kt)}function L3(e){if(!Tn(e))return;e.querySelectorAll("font[class*=immersive-translate-target-translation]").forEach(a=>{at(a,"immersiveTranslateClassBak",a.className),a.className="notranslate immersive-translate-target-dual"});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.add("immersive-translate-state-dual")}function M3(e){if(!Tn(e))return;e.querySelectorAll("font[class*=immersive-translate-target-dual]").forEach(a=>{let r=ar(a,"immersiveTranslateClassBak");Io(a,"immersiveTranslateClassBak"),a.className=r});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.remove("immersive-translate-state-dual")}function I0(e){return e?e[e.length-1].nextSibling:null}function Ho(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function lr(e,t,n){let a=e;t&&(a?n.forEach(r=>{a.parentNode?.insertBefore(r,a)}):n.forEach(r=>{t.appendChild(r)}))}var o9=bt(z0,300);async function iu(e,t,n=!1){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||i9(t.rootNodes)||t.stepState>=2)return;t.stepState=2,Na&&at(a,"onParseParagraph",e.id);let{ctx:r}=e,{rule:u}=r,o=rr(r),i=zo(t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:o,stayOriginalSelectors:r.rule.stayOriginalTags.concat(r.rule.stayOriginalTags).map(c=>c.toLowerCase()).concat(r.rule.stayOriginalSelectors).concat(r.rule.additionalStayOriginalSelectors)});if(!i)return;t.variables=i?.variables||{},t.text=i?.text;let s=await H0(t,{excludeLanguages:r?.config?.translationLanguagePattern?.excludeMatches||[],targetLanguage:r.targetLanguage,noTranslateRegexp:r.rule.noTranslateRegexp,delimiters:No(r.config.translationServices[r.translationService]?.placeholderDelimiters),minTextCount:n||r.state.translationArea==="body"?2:u.paragraphMinTextCount,minWordCount:n||r.state.translationArea==="body"?1:u.paragraphMinWordCount,isDetectParagraphLanguage:r.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:r.rule.ignoreZhCNandZhTW});if(s){if(N.debug("on paragraph",s.text,s),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(s))return;a.paragraphs.push(s),e.immediateTranslateCapacity>0||n?(s9(e,t.text),U0(e,t)):(Na&&at(a,"observeParagraph",e.id),e.observeParagraphs.push(s),e.paragraphVisibleObserver?.observe(a))}return s}function i9(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Tn(t)&&t.classList.contains(Kt):!1}function s9(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function U0(e,t){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let n=e.autoIncreaseParagraphId++;t.id=n.toString(),e.paragraphEntities[n]=t,e.paragraphQueue.push(n.toString()),Na&&at(t.commonAncestorContainer,"consumeParagraph",e.id),o9.call(e,e.ctx)}async function z0(e){if(this.interruptEffectDOM)return;let t=this.paragraphQueue;this.paragraphQueue=[];let n=[];for(let a=0;a0)try{await ua(a,t,(r,u,o)=>{let i=o.id,s=l9(e,i.toString());s&&c9.call(null,r,u,o,s,t,n)})}catch(r){N.error("translateCurrentQueue error",r);return}}function l9(e,t){return e.find(n=>n.id===t)}function c9(e,t,n,a,r,u){let o=!1,i=a;if(or(i.commonAncestorContainer,n.id)?.remove(),i&&(e||!t)){e||(N.error("translate error",n,e,t),e=new Error("no response from server"));let{rule:s}=r,c=n.id,l=document.createElement(s.targetWrapperTag);at(l,x4,c.toString()),l.classList.add("notranslate",Kt,Kt+"-error"),l.setAttribute("translate","no"),l.setAttribute("lang",r.targetLanguage);let p=a.rootNodes[a.rootNodes.length-1].nextSibling;lr(p,a.commonAncestorContainer,[l]),d9(r,e);let f=e.message.replaceAll(` +`,"");if(f=f.replaceAll('"',"""),i&&(i.error=new Error(f)),l){let m=In(Ot,"retryAllParagraphs",r.config.interfaceLanguage,"zh-CN"),d=In(Ot,"errorTooltipTitle",r.config.interfaceLanguage,"zh-CN"),h=`<${s.targetWrapperTag} class="${J}-error notranslate"><${s.targetWrapperTag} class="${J}-error-wrapper">\u{1F504}  \u2753`;l.innerHTML=_e.sanitize(h)}}else if(a){if(i.error=void 0,a.targetText=t?.text||"",!(a.text?.toLocaleLowerCase()==a.targetText?.toLocaleLowerCase())){let c=S3(a,r),l=document.createElement(r.rule.targetWrapperTag);l.classList.add("notranslate",Kt),l.setAttribute("lang",r.targetLanguage),l.setAttribute(kn,"1");let p=u9.sanitize(c);l.innerHTML=p,a.targetNodes=[l],j0(a,u)}o=!0}else N.error("paragraph not found",n.id);document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:o}})}))}async function H0(e,t){let{text:n}=e,a=await Qe({text:n||"",minLength:15,pageLangs:[pt(),"en"]}),{targetLanguage:r}=t;if(!m3({text:n||"",delimiters:t.delimiters,minWordCount:t.minWordCount,minTextCount:t.minTextCount,noTranslateRegexp:t.noTranslateRegexp}))return null;let o=t.excludeLanguages||[],i=uo();t.isDetectParagraphLanguage&&(i="auto");let s=pt(),c=a;c==="auto"&&!t.isDetectParagraphLanguage&&(c=s),e.languageByLocal=c,e.languageByClient=i;let l=i!=="auto"?i:c;return Xn(l,r,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW})||o.length>0&&o.some(m=>Xn(l,m,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW}))?null:e}function d9(e,t){if(t.message.startsWith("ProQuota:")){t.message=t.message.replace("ProQuota:","");let n=t.message;try{n=JSON.parse(t.message).error}catch(u){N.error(u)}t.message=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${t.message} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`;let a=e.translationService,r=a=="deepl"?"OpenAI":"Deepl";e.translationService=="openai"?a="OpenAI":e.translationService=="deepl"&&(a="Deepl"),document.dispatchEvent(new CustomEvent(Iu,{detail:{type:"ProQuotaExceeded",subscriptionType:e.user?.subscription?.subscriptionType,translationService:a,anotherService:r,message:n}}))}}g();var m9=[];function F3(e){m9.push(e)}g();function P3(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(a){a.length>0&&(a[0].target.text.includes(Hu)||q0(e).catch(u=>{N.error("translateTitle error:",u.name,u.message,u.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var $o="";async function q0(e){let t=document.title;if(!t||t.includes(Hu))return;$o!==t&&($o=t);let n=await Qe({text:t,pageLangs:[pt(),"en"]});if(!jo(e,n))try{let a=await Sa({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n},e);a&&a.text&&(document.title=$o+Hu+a.text)}catch(a){throw a}}function _3(e){e.rule.isTranslateTitle&&(document.title=$o)}g();var W0;function B3(e){let t=e.ctx.rule.aiRule;if(N.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=cn(e.ctx),a=n.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);n.excludeSelectors.splice(a,1);let r,u;document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(f=>{f.translated=!0,su(e,f,n)});let o=t.streamingDelayTime||100;W0=new MutationObserver(f=>{f.forEach(function(m){if(Tn(m.target)&&!s(m)&&(l(m.target),m.addedNodes&&m.addedNodes.length&&m.addedNodes.forEach(d=>{l(d)}),!c(m)&&i())){let d=m.target===u;if(t.streamingDeepChild&&!d&&(d=m.target.parentNode===u),!d)return;m.addedNodes.forEach(h=>{let T=h.previousSibling;!T||T.translated||(T.translated=!0,setTimeout(()=>{T.childNodes[0]?.translated||(N.debug("\u7FFB\u8BD1\u4E0A\u4E00\u4E2A\u6BB5\u843D",T),su(e,T,n))},o))})}})}),W0.observe(document.body,{attributes:!0,childList:!0,subtree:!0});function i(){return!!(t.streamingChange&&t.streamingSelector&&r||t.streamingChange&&t.messageContainerSelector&&t.messageStreamEndSelector&&u&&!u.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector))}function s(f){return t.streamingSelector&&f.target===r&&f.type==="attributes"&&!xn(f.target,[t.streamingSelector])?(p(),!0):t.streamingSelector&&f.removedNodes.length>0&&u&&u!=r?(f.removedNodes?.forEach(m=>{m===r&&p()}),!0):t.messageContainerSelector&&t.messageStreamEndSelector&&u&&u.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector)?(p(),!0):!1}function c(f){if(t.streamingSelector&&f.target.querySelector(t.messageWrapperSelector||"")&&!r){let m=f.target;return m.translated||(m.translated=!0,setTimeout(()=>{r||m.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(d=>{d.translated||(d.translated=!0,su(e,d,n))})},o)),!0}else if(t.messageContainerSelector&&f.target.querySelector(t.messageContainerSelector||"")){let m=f.target;if(m.translated)return!0;m.translated=!0,setTimeout(()=>{m.querySelectorAll(t.messageContainerSelector).forEach(d=>{t.messageStreamEndSelector&&!d.querySelector(t.messageStreamEndSelector)||d.translated||(d.translated=!0,su(e,d,n))})},o)}return!1}function l(f){t.streamingSelector&&xn(f,[t.streamingSelector])&&(r=f,N.debug("streamingNode",r)),xn(f,[t.messageWrapperSelector])&&(u=f,N.debug("markdownNode",u))}function p(){u&&setTimeout(()=>{u.childNodes.forEach(f=>f.translated=!1),N.debug("\u7ED3\u675F\u7FFB\u8BD1\u5168\u90E8",u),su(e,u,n),r=void 0,u=null},o)}}function su(e,t,n){la({id:e.id,container:t,filterRule:n,force:!0,onParagraph:a=>{iu(e,a,!0)},onFrame:()=>{},onIgnoreElement:()=>{}})}function R3(){W0?.disconnect()}var ne=null;function Go(){return ne||null}function dr(e){g9(e),x9(e),b9(e),E9(e),sr(document,e),Dt("Translated"),y9(ne),h9(ne),F3(Nn),p9(ne)}function g9(e){e.state.translationArea==="main"&&e.rule.initialSelectorGlobalAttributes&&y3(document.body,e.rule.initialSelectorGlobalAttributes,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph)}function p9(e){B3(e)}function f9(){R3()}function h9(e){e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0});let t=[];e.ctx.rule.mainFrameSelector&&(t=[...document.querySelectorAll(e.ctx.rule.mainFrameSelector||"")]),t.length<=0&&(t=[document.body]),t.forEach(n=>{cr(n,e)})}async function b9(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=Date.now(),a=new URL(e.url).hostname,r=e.localConfig.tempTranslationUrlMatches||[],u=r.findIndex(i=>i.match===a&&i.expiredAt>t),o=!1;u>-1||(r.push({match:a,expiredAt:t+e.config.tempTranslateDomainMinutes*60*1e3}),o=!0),o&&await An({...e.localConfig,tempTranslationUrlMatches:[...r]})}}function y9(e){e.ctx.rule.isTranslateTitle&&(q0(e.ctx),e.titleDynamicObserver=P3(e.ctx))}function E9(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function x9(e){let t=hn();ne&&(t=ne.id);let n=cn(e);ne=ne||{},ne.ctx=e,ne.id=t,ne.paragraphQueue=ne.paragraphQueue||[],ne.rule={excludeSelectors:n.excludeSelectors||[],selectors:n.selectors||[]},ne.currentUrl=window.location.href,ne.containerRule={pageHeight:screen.availHeight,selectors:n.selectors},ne.translationService=e.translationService,ne.paragraphEntities=ne.paragraphEntities||{},ne.autoIncreaseParagraphId=ne.autoIncreaseParagraphId||1,ne.interruptEffectDOM=!1,ne.urlChangeDelay=e.rule.urlChangeDelay,ne.immediateTranslateCapacity=e.state.immediateTranslationTextCount,ne.observeContainers=ne.observeContainers||[],ne.observeParagraphs=ne.observeParagraphs||[],ne.dynamicContainerObserver=ne.dynamicContainerObserver||k9(ne),ne.ignoreResizeObserver=ne.ignoreResizeObserver||A9(ne),ne.containerVisibleObserver=ne.containerVisibleObserver||C9(ne),ne.paragraphVisibleObserver=ne.paragraphVisibleObserver||w9(ne),ne.injectCssToDocument=Ko,ne.walkContainer=la,ne.translateState=e.state.translationMode||e.config.translationMode||"dual",ne.allInlineWindows=[window],window.onerror=T9(ne,e),window.immersiveTranslateSwitchTranslateState=K0.bind(ne)}function I3(e,t){t.getRootNode()instanceof ShadowRoot?Ko(t.getRootNode(),e):Ko(t.ownerDocument,e),$0(e)}function $0(e){if(ne)return;ne={},ne.ctx=e,ne.id=hn(),ne.paragraphQueue=[],ne.injectCssToDocument=Ko;let t=cn(e);ne.rule={excludeSelectors:t.excludeSelectors,selectors:t.selectors||[]},ne.translationService=e.mouseHoverTranslationService,ne.currentUrl=window.location.href,ne.paragraphEntities={},ne.autoIncreaseParagraphId=1,ne.interruptEffectDOM=!1,ne.urlChangeDelay=e.rule.urlChangeDelay,ne.translateState=e.config.translationMode||"dual",ne.observeContainers=[],ne.observeParagraphs=[],ne.allInlineWindows=[window],window.switchTranslateState=K0.bind(ne)}function Nn(e=!0){ne&&(Dt("Original"),f9(),ne.interruptEffectDOM=!0,ne.ignoreResizeObserver?.disconnect(),ne.dynamicContainerObserver?.disconnect(),ne.containerVisibleObserver?.disconnect(),ne.paragraphVisibleObserver?.disconnect(),ne.titleDynamicObserver?.disconnect(),_3(ne.ctx),l3(),c3(),e&&K0.call(ne,"original"),Object.values(ne.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),ne=null)}function T9(e,t){e.interruptEffectDOM=!1;let n;return function(a){let r=a.message,u=!1;return r?.indexOf("Minified React error")>=0&&(u=!0),u&&(clearTimeout(n),Nn(),n=setTimeout(()=>{dr(t)},e.urlChangeDelay||2e3)),!0}}function C9(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{a.intersectionRatio>0&&(qo(e,a.target),n.unobserve(a.target))})})}function w9(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{if(a.intersectionRatio>0){let r=a.target;(r.paragraphs||[]).forEach(o=>{U0(e,o)}),n.unobserve(r)}})})}var O3;function v9(e){if(e.urlChangeDelay<=0)return!1;let n=(window.location.href||"").split("#")[0];return e.currentUrl.split("#")[0]!=n?(clearTimeout(O3),e.translateState=="original"?!1:(Nn(e.urlChangeDelay>20),O3=setTimeout(()=>{let r=e.ctx;dr(r)},e.urlChangeDelay),!0)):!1}function k9(e){return new MutationObserver(t=>{if(!v9(e)&&!e.interruptEffectDOM)for(let n of t){let a=e.ctx.rule.mutationObserverLimitTargetSelectors;if(a.length>0&&!xn(n.target,a))return;if((n.addedNodes||[]).length<=0||n.target.nodeType!==Node.ELEMENT_NODE||!zt.isSkipMarkEle(n.target)&&!zt.isMarked(n.target,e.id))continue;let u=(n.target?.paragraphs||[]).reduce((o,i)=>{let s=i.rootNodes||[],c=i.targetNodes||[];return[...o,...s,...c]},[]);if(n.addedNodes.length>0&&n.addedNodes.length===n.target.childNodes.length&&xn(n.target,e.ctx.rule.mutationObserverContainerSelectors)){zt.clearMark(n.target),n.target.paragraphs=void 0,qo(e,n.target);return}n.addedNodes.forEach((o,i)=>{o.nodeType===Node.ELEMENT_NODE&&(u.includes(o)||Mt(o,e.ctx.rule.mutationExcludeSelectors)||cr(o,e))})}})}function A9(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let a of t){if(a.target.nodeType!==Node.ELEMENT_NODE)return;let r=a.target,u=globalThis.getComputedStyle(r);D0(u)||(n.unobserve(a.target),cr(r,e))}})}function K0(e){this.translateState=e,Object.values(this.paragraphEntities).forEach(t=>{j0(t,e)}),e=="original"&&document.querySelectorAll(`.${Kt}`).forEach(t=>t.remove())}function Ko(e,t){if(e instanceof HTMLIFrameElement){sr(e.contentDocument,t);return}sr(e,t)}async function N3(e){let t=Je(),n="auto";if(pe()){let a="";e.rule.isEbook||e.rule.isEbookBuilder?(a=w0(e.mainFrame),n=await Qe({text:a,pageLangs:["en"]})):(a=nr(e.mainFrame).slice(0,1e3),n=await Qe({text:a,pageLangs:[ya(),"en"]}))}else if(t)n=await Qe({text:nr(e.mainFrame).slice(0,1e3),pageLangs:[ya(),"en"]});else if(e.rule.isEbook||e.rule.isEbookBuilder){let a="";a=w0(e.mainFrame),n=await Qe({text:a,pageLangs:["en"]})}else n=await Md();return n==="auto"&&(n=await v3()),Td(n),n}async function j3(){if(!ne)return;document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=ne.paragraphEntities,t=Object.keys(e);for(let n of t){let a=e[n];if(a.error){ne.paragraphQueue.push(n);let u=a.commonAncestorContainer.querySelector(`[${Uu}='${n}']`);u&&u.remove()}}z0.call(ne,ne.ctx)}g();g();var U3={"zh-CN":{"languages.en":"\u82F1\u8BED","languages.ja":"\u65E5\u8BED","languages.ko":"\u97E9\u8BED","languages.es":"\u897F\u73ED\u7259\u8BED","languages.fr":"\u6CD5\u8BED","languages.de":"\u5FB7\u8BED","languages.it":"\u610F\u5927\u5229\u8BED","languages.pt":"\u8461\u8404\u7259\u8BED","languages.ru":"\u4FC4\u8BED","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"},"zh-TW":{"languages.en":"\u82F1\u8A9E","languages.ja":"\u65E5\u8A9E","languages.ko":"\u97D3\u8A9E","languages.es":"\u897F\u73ED\u7259\u8A9E","languages.fr":"\u6CD5\u8A9E","languages.de":"\u5FB7\u8A9E","languages.it":"\u610F\u5927\u5229\u8A9E","languages.pt":"\u8461\u8404\u7259\u8A9E","languages.ru":"\u4FC4\u8A9E","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"}},z3={...Ot,"zh-CN":{...U3["zh-CN"],...Ot["zh-CN"]},"zh-TW":{...U3["zh-TW"],...Ot["zh-TW"]}},H3=z3;function mr(e,t,n){return In(z3,e,t,qu,n)}var Vo=(e,t,n,a)=>{let r=D4[e]||e,u=L4[e],o=M4[e],i={"zh-CN":u,"zh-TW":o,en:r};if(n)return i[e]?i[e]:r;if(i[t]){let s=i[t];return a||e==="auto"||e==="placeholder"?s:`${s} (${r})`}else return r};g();g();function gr(e){Ga(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(a=>{N.error("send content message request failed",e,a)}),document.querySelectorAll("iframe").forEach(a=>{a.contentWindow&&a.contentWindow.postMessage({author:Ru,payload:e},"*")});let n=new CustomEvent($n,{detail:e});globalThis.document.dispatchEvent(n)}function G0(e){let t=e.shortcuts||{},a=Object.keys(t).reduce((u,o)=>(u[t[o]]=o,u),{}),r=Object.keys(a);for(let u of r){let o=u.replace(/MacCtrl/ig,"Ctrl");o&&Ye(o,i=>{i.preventDefault(),gr({method:a[u],data:{trigger:"shortcut"}})})}}g();g();g();g();g();var ei,ve,G3,S9,lu,q3,V3,Qo={},Y3=[],D9=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ca(e,t){for(var n in t)e[n]=t[n];return e}function J3(e){var t=e.parentNode;t&&t.removeChild(e)}function Y0(e,t,n){var a,r,u,o={};for(u in t)u=="key"?a=t[u]:u=="ref"?r=t[u]:o[u]=t[u];if(arguments.length>2&&(o.children=arguments.length>3?ei.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(u in e.defaultProps)o[u]===void 0&&(o[u]=e.defaultProps[u]);return Yo(e,o,a,r,null)}function Yo(e,t,n,a,r){var u={type:e,props:t,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++G3};return r==null&&ve.vnode!=null&&ve.vnode(u),u}function Gt(e){return e.children}function Jo(e,t){this.props=e,this.context=t}function pr(e,t){if(t==null)return e.__?pr(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?Yo(m.type,m.props,m.key,m.ref?m.ref:null,m.__v):m)!=null){if(m.__=n,m.__b=n.__b+1,(f=b[l])===null||f&&m.key==f.key&&m.type===f.type)b[l]=void 0;else for(p=0;p=n.__.length&&n.__.push({__V:ni}),n.__[e]}function De(e){return du=1,P9(gg,e)}function P9(e,t,n){var a=ri(mu++,2);if(a.t=e,!a.__c&&(a.__=[n?n(t):gg(void 0,t),function(u){var o=a.__N?a.__N[0]:a.__[0],i=a.t(o,u);o!==i&&(a.__N=[i,a.__[1]],a.__c.setState({}))}],a.__c=tt,!tt.u)){tt.u=!0;var r=tt.shouldComponentUpdate;tt.shouldComponentUpdate=function(u,o,i){if(!a.__c.__H)return!0;var s=a.__c.__H.__.filter(function(l){return l.__c});if(s.every(function(l){return!l.__N}))return!r||r.call(this,u,o,i);var c=!1;return s.forEach(function(l){if(l.__N){var p=l.__[0];l.__=l.__N,l.__N=void 0,p!==l.__[0]&&(c=!0)}}),!!c&&(!r||r.call(this,u,o,i))}}return a.__N||a.__}function Ve(e,t){var n=ri(mu++,3);!ve.__s&&mg(n.__H,t)&&(n.__=e,n.i=t,tt.__H.__h.push(n))}function ui(e){return du=5,X0(function(){return{current:e}},[])}function X0(e,t){var n=ri(mu++,7);return mg(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function da(e,t){return du=8,X0(function(){return e},t)}function oi(e){var t=tt.context[e.__c],n=ri(mu++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(tt)),t.props.value):e.__}function _9(){for(var e;e=dg.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ai),e.__H.__h.forEach(Z0),e.__H.__h=[]}catch(t){e.__H.__h=[],ve.__e(t,e.__v)}}ve.__b=function(e){typeof e.type!="function"||e.o||e.type===Gt?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),tt=null,ug&&ug(e)},ve.__r=function(e){og&&og(e),mu=0;var t=(tt=e.__c).__H;t&&(Q0===tt?(t.__h=[],tt.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=ni,n.__N=n.i=void 0})):(t.__h.forEach(ai),t.__h.forEach(Z0),t.__h=[])),Q0=tt},ve.diffed=function(e){ig&&ig(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(dg.push(t)!==1&&rg===ve.requestAnimationFrame||((rg=ve.requestAnimationFrame)||B9)(_9)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==ni&&(n.__=n.__V),n.i=void 0,n.__V=ni})),Q0=tt=null},ve.__c=function(e,t){t.some(function(n){try{n.__h.forEach(ai),n.__h=n.__h.filter(function(a){return!a.__||Z0(a)})}catch(a){t.some(function(r){r.__h&&(r.__h=[])}),t=[],ve.__e(a,n.__v)}}),sg&&sg(e,t)},ve.unmount=function(e){lg&&lg(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(a){try{ai(a)}catch(r){t=r}}),n.__H=void 0,t&&ve.__e(t,n.__v))};var cg=typeof requestAnimationFrame=="function";function B9(e){var t,n=function(){clearTimeout(a),cg&&cancelAnimationFrame(t),setTimeout(e)},a=setTimeout(n,100);cg&&(t=requestAnimationFrame(n))}function ai(e){var t=tt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),tt=t}function Z0(e){var t=tt;e.__c=e.__(),tt=t}function mg(e,t){return!e||e.length!==t.length||t.some(function(n,a){return n!==e[a]})}function gg(e,t){return typeof t=="function"?t(e):t}g();g();var fr={},R9={root:"",lang:"en",fallbackLang:"en"};function el(e,t){let n=Object.assign({},R9,e);fr=t||fr;let[a,r]=De(n.lang),[u,o]=De(fr),[i,s]=De(!1),c=p=>{if(u.hasOwnProperty(p))return;s(!1);let f=k3(n.root||"",p);n.getUrl&&(f=n.getUrl(n.root||"",p),fetch(f).then(m=>m.json()).then(m=>{fr[p]=m,o({...fr}),s(!0)}).catch(m=>{o({...fr}),s(!0)}))};return Ve(()=>{c(n.fallbackLang||"en"),c(a)},[a]),{lang:a,setLang:r,t:(p,f)=>{if(!u.hasOwnProperty(a))return p;let m=ou(u,a,p);return m===p&&a!==n.fallbackLang&&(m=ou(u,n.fallbackLang,p)),P0(m,f)},isReady:i}}g();g();var O9=0;function V(e,t,n,a,r){var u,o,i={};for(o in t)o=="ref"?u=t[o]:i[o]=t[o];var s={type:e,props:i,key:n,ref:u,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--O9,__source:r,__self:a};if(typeof e=="function"&&(u=e.defaultProps))for(o in u)i[o]===void 0&&(i[o]=u[o]);return ve.vnode&&ve.vnode(s),s}var nl=ti(null),tl={root:"assets",lang:"en",fallbackLang:"en"},pg=e=>{let{t,setLang:n,lang:a,isReady:r}=el({root:e.root||tl.root,lang:e.lang||tl.lang,fallbackLang:e.fallbackLang||tl.fallbackLang,getUrl:e.getUrl},e.translations);return V(nl.Provider,{value:{t,setLang:n,lang:a,isReady:r},children:e.children})};g();g();function fg(e,t,n){let a=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),a=t!=="auto"?n[t].matches:[];let r={},u=Object.keys(n);for(let c of u){let p=n[c].matches;for(let f of p)r[f]||(r[f]=[]),r[f].push(c)}let o=r[e];if(o&&o.length>0)for(let c of o)n[c].matches.indexOf(e)>-1&&(n[c]={...n[c],matches:n[c].matches.filter(p=>p!==e)});let i=new Set(a);if(t==="auto")return{...n};i.add(e);let s=Array.from(i);return{...n,[t]:{...n[t],matches:s}}}g();g();function al(){return V("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[V("path",{d:"M10.3873 2.29166C10.6319 2.29193 10.8664 2.38929 11.0392 2.56234C11.2121 2.73539 11.3092 2.96998 11.3092 3.21457V4.07811L12.1175 4.38332C12.7273 4.61277 13.2952 4.94074 13.7988 5.35416L14.4675 5.90207L15.2165 5.46978L15.2394 5.45624C15.3787 5.37479 15.5373 5.332 15.6988 5.33228C15.861 5.3325 16.0203 5.37522 16.1608 5.45618C16.3014 5.53715 16.4182 5.65353 16.4998 5.79374L16.8925 6.47395C17.0145 6.68593 17.0475 6.93764 16.9843 7.17391C16.921 7.41019 16.7666 7.61173 16.555 7.73436L16.5321 7.74791L15.7842 8.17916L15.9227 9.0302C16.031 9.67953 16.031 10.3423 15.9227 10.9917L15.781 11.8458L16.531 12.2781L16.5467 12.2875C16.758 12.4101 16.9122 12.6115 16.9754 12.8475C17.0387 13.0835 17.0059 13.335 16.8842 13.5469L16.5154 14.1844C16.3932 14.3961 16.1919 14.5507 15.9558 14.6141C15.7196 14.6776 15.468 14.6448 15.256 14.5229L15.2415 14.5135L14.4904 14.0802L13.8206 14.6323C13.3125 15.0519 12.7384 15.3845 12.1217 15.6167L11.3133 15.9219V16.7864C11.3132 16.9078 11.2891 17.028 11.2425 17.14C11.1958 17.2521 11.1276 17.3539 11.0415 17.4395C10.9555 17.5251 10.8535 17.5929 10.7412 17.6391C10.6289 17.6852 10.5087 17.7087 10.3873 17.7083H9.61229C9.3677 17.708 9.13322 17.6107 8.96037 17.4376C8.78751 17.2646 8.69042 17.03 8.69042 16.7854V15.9219L7.88209 15.6167C7.27233 15.3872 6.70437 15.0592 6.20084 14.6458L5.53209 14.0979L4.78313 14.5302L4.76021 14.5437C4.62084 14.6252 4.46226 14.668 4.30084 14.6677C4.13864 14.6675 3.97932 14.6248 3.83877 14.5438C3.69823 14.4628 3.58135 14.3464 3.49979 14.2062L3.10709 13.526C2.98505 13.3141 2.95205 13.0623 3.01532 12.8261C3.07858 12.5898 3.23296 12.3882 3.44459 12.2656L3.4675 12.2521L4.21542 11.8208L4.07688 10.9698C3.96856 10.3204 3.96856 9.65766 4.07688 9.00832L4.21854 8.1552L3.46959 7.72186L3.45709 7.70832C3.24914 7.58489 3.09787 7.38486 3.03575 7.15116C2.97362 6.91746 3.00559 6.66872 3.12479 6.45832L3.49354 5.82082C3.57469 5.68049 3.69133 5.56397 3.83175 5.48297C3.97217 5.40197 4.13144 5.35934 4.29354 5.35936C4.45497 5.35908 4.61355 5.40187 4.75292 5.48332L4.7675 5.49166L5.51854 5.92499L6.18834 5.37291C6.69646 4.95329 7.27054 4.62067 7.88729 4.38853L8.69563 4.08332V3.21874C8.69452 2.97433 8.79041 2.73945 8.96226 2.56565C9.13411 2.39185 9.36788 2.29331 9.61229 2.29166H10.3873ZM10.3873 1.04166H9.61229C9.03636 1.04193 8.4841 1.27084 8.07685 1.67809C7.66961 2.08533 7.4407 2.6376 7.44042 3.21353C6.69518 3.49423 6.00146 3.89618 5.38729 4.40312L5.37271 4.39478C4.87362 4.10685 4.2806 4.02894 3.72407 4.17818C3.16753 4.32742 2.69307 4.6916 2.405 5.19062L2.03729 5.83332C1.74928 6.33229 1.67121 6.92522 1.82025 7.48173C1.96929 8.03825 2.33324 8.51279 2.83209 8.80103L2.84771 8.80936C2.78023 9.20444 2.74539 9.6044 2.74354 10.0052C2.74367 10.3971 2.77572 10.7883 2.83938 11.175L2.81646 11.1885C2.56927 11.3311 2.35259 11.5209 2.1788 11.7472C2.00501 11.9735 1.87752 12.2319 1.80361 12.5075C1.7297 12.7831 1.71083 13.0706 1.74807 13.3535C1.7853 13.6364 1.87792 13.9091 2.02063 14.1562L2.41334 14.8364C2.55638 15.0837 2.74681 15.3003 2.97371 15.4738C3.20061 15.6473 3.45953 15.7743 3.73561 15.8475C4.01169 15.9208 4.29952 15.9388 4.58259 15.9007C4.86566 15.8625 5.13841 15.7688 5.38521 15.625L5.40813 15.6114C6.01714 16.1105 6.70362 16.5067 7.44042 16.7844C7.44028 17.0697 7.49635 17.3523 7.60542 17.616C7.7145 17.8797 7.87444 18.1193 8.07612 18.3212C8.27779 18.523 8.51726 18.6832 8.78084 18.7925C9.04441 18.9018 9.32694 18.9582 9.61229 18.9583H10.3873C10.9632 18.958 11.5155 18.7291 11.9227 18.3219C12.33 17.9146 12.5589 17.3624 12.5592 16.7864C13.3043 16.5061 13.9981 16.1045 14.6123 15.5979L14.6269 15.6062C15.126 15.8942 15.719 15.9721 16.2755 15.8228C16.8321 15.6736 17.3065 15.3094 17.5946 14.8104L17.9623 14.1729C18.2503 13.6739 18.3284 13.081 18.1793 12.5245C18.0303 11.968 17.6663 11.4934 17.1675 11.2052L17.1519 11.1969C17.2194 10.8018 17.2542 10.4018 17.256 10.001C17.2559 9.60915 17.2239 9.21792 17.1602 8.83124L17.1831 8.8177C17.4303 8.67516 17.647 8.48531 17.8208 8.259C17.9946 8.03269 18.1221 7.77435 18.196 7.49875C18.2699 7.22314 18.2888 6.93568 18.2515 6.65278C18.2143 6.36987 18.1217 6.09708 17.979 5.84999L17.5863 5.16978C17.4437 4.92202 17.2537 4.70485 17.027 4.53072C16.8003 4.3566 16.5415 4.22895 16.2654 4.1551C15.9893 4.08126 15.7013 4.06267 15.418 4.1004C15.1346 4.13814 14.8616 4.23145 14.6144 4.37499L14.5915 4.38853C13.9824 3.88946 13.296 3.49327 12.5592 3.21561C12.5593 2.93026 12.5032 2.64768 12.3942 2.384C12.2851 2.12031 12.1252 1.8807 11.9235 1.67883C11.7218 1.47695 11.4823 1.31678 11.2188 1.20746C10.9552 1.09813 10.6726 1.04179 10.3873 1.04166Z",fill:"#666666"}),V("path",{d:"M10.0003 7.91666C10.4124 7.91666 10.8152 8.03884 11.1578 8.26776C11.5004 8.49668 11.7674 8.82205 11.9251 9.20273C12.0828 9.58341 12.124 10.0023 12.0436 10.4064C11.9632 10.8106 11.7648 11.1818 11.4735 11.4731C11.1821 11.7645 10.8109 11.9629 10.4068 12.0433C10.0026 12.1237 9.58375 12.0824 9.20307 11.9247C8.82239 11.7671 8.49702 11.5 8.2681 11.1574C8.03918 10.8148 7.91699 10.412 7.91699 9.99999C7.91699 9.44745 8.13649 8.91755 8.52719 8.52685C8.91789 8.13615 9.44779 7.91666 10.0003 7.91666ZM10.0003 6.66666C9.34106 6.66666 8.69659 6.86215 8.14843 7.22842C7.60026 7.5947 7.17302 8.11529 6.92073 8.72438C6.66844 9.33346 6.60243 10.0037 6.73104 10.6503C6.85966 11.2969 7.17713 11.8908 7.6433 12.357C8.10948 12.8232 8.70342 13.1407 9.35003 13.2693C9.99663 13.3979 10.6669 13.3319 11.2759 13.0796C11.885 12.8273 12.4056 12.4001 12.7719 11.8519C13.1382 11.3037 13.3337 10.6593 13.3337 9.99999C13.3337 9.11593 12.9825 8.26809 12.3573 7.64297C11.7322 7.01785 10.8844 6.66666 10.0003 6.66666Z",fill:"#666666"})]})}g();function hg(e,t=2e3){return n=>{let a,r=0;return u=>{++r==e&&(n(u),r=0),clearTimeout(a),a=setTimeout(()=>r=0,t)}}}g();function bg(e){let t;try{t=new URL(e)}catch{return!1}let n=Rd(),a="";try{a=new URL(n).hostname}catch{}return a&&t.hostname===a?!0:!(I9(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function I9(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}g();function yg(e){let t=e.split(".");return t.length>2?(t[0]="*",t.join(".")):null}g();function Eg(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}g();g();function Ht(){return oi(nl)}function jn(e){let{items:t,maxWidth:n,className:a}=e,{lang:r}=Ht();return n=n||(r==="en"?144:160),V("select",{autoComplete:"off",class:a||"min-select",style:{maxWidth:`${n}px`},value:t.find(u=>u.selected)?.value,onChange:u=>{let o=u.target.value,i=t.find(s=>s.value===o);i&&i.onSelected(i)},children:t.map((u,o)=>V("option",{value:u.value,selected:u.selected,children:u.label},"selectlink"+o))})}g();var ii="DROP_DOWN_DEFAULT_VALUE";function rl(e){let{showArrow:t,onSelected:n,className:a,menus:r,maxWidth:u}=e;a=a||"",t=t??!0,u=u||80;let o=ui(null);return V("select",{ref:o,autoComplete:"off",class:`text-label min-select ${t?"":"min-select-no-arrow"} ${a||""}`,value:ii,style:{maxWidth:`${u}px`},onChange:i=>{i.preventDefault();let s=i.target.value;if(o.current&&s!==ii){o.current.value=ii,o.current?.dispatchEvent(new Event("change"));let c=r.find(l=>l.value===s);c&&n(c)}},children:[{value:ii,label:e.label}].concat(r).map((i,s)=>V("option",{value:i.value,children:i.label},"option-"+s))})}g();function ul(e){let{field:t,onChange:n,value:a}=e;a=a||t.default||"";let{t:r}=Ht(),u=t.name;return t.label&&(u=t.label),t.labelKey&&(u=r(t.labelKey)),t.type==="select"?V("div",{class:"flex justify-between items-center mb-2",children:[V("label",{class:"inline-block",children:[u,"\uFF1A"]}),V(jn,{items:t.options.map(o=>({label:`${o.label?r(o.label):o.value}`,value:o.value,selected:a===o.value,onSelected:()=>{n(o.value)}}))})]}):null}g();g();function gu(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var N9=({date:e})=>{let{t}=Ht(),[n,a]=De(!1);return Ve(()=>{setTimeout(()=>{a(!0)},5e3)},[]),n?null:V("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},j9=({minVersion:e})=>{let{t}=Ht();return V("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},U9=()=>{let{t:e}=Ht();return V("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:"https://immersivetranslate.com/docs/installation/"})}})},z9=({message:e,handleSyncing:t,date:n})=>{let{t:a}=Ht();return V("p",{class:"text-sm",children:[a("failToSyncRules")," ",V("a",{onClick:t,children:a("retry")}),V("br",{}),a("failedReason"),"\uFF1A",e,V("br",{}),a("currentRuleVersion"),"\uFF1A",n]})};function ol(e){let{isShowError:t,request:n}=e,[a,r]=De(null),{t:u}=Ht(),[o,i]=De(null),[s,c]=De(null),[l,p]=De(""),[f,m]=De(!1),[d,h]=De(!1),[T,b]=De(!1),[C,w]=De(null),[I,B]=De(null),y=nn(),S=async()=>{p("");let P=o;if(o===null)try{let M=await n({url:Pr});M?(i(M),P=M,m(!0)):(p(u("unknownError")),c(null))}catch(M){c(null),p(M.message);return}P!==null?(e.setStorageBuildinConfig(P),c(!1),r(P.buildinConfigUpdatedAt)):(p(u("canNotFetchRemoteRule")),c(null))};return Ve(()=>{Jn().then(P=>{let M=P.buildinConfigUpdatedAt;w(P);let x=new Date(M);if(r(M),y==="0.0.0"){b(!0);return}n({url:Pr}).then(R=>{let F=R,D=F.minVersion,_=y;i(F);let U=F.latestVersion;if(U&&(gu(_,U)?B(!0):B(!1)),gu(_,D)){let j=F.buildinConfigUpdatedAt;new Date(j)>x?(c(!0),S()):c(!1)}else h(!0),c(null)}).catch(R=>{c(null),p(R.message)})})},[]),Ve(()=>{Jn().then(P=>{w(P)})},[a]),C?V("div",{class:"text-sm mt-2",style:{maxWidth:218},children:T?V(U9,{}):l?t===!1?null:V(z9,{handleSyncing:S,message:l,date:a||""}):d?t===!1?null:V(j9,{minVersion:o.minVersion}):s===null||s===!0?null:f?V(N9,{date:a}):null}):null}g();var si='',il="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMTEuNjIzLS4zMTguODQ1Yy0uMjA4LjIyMi0uNTI3LjMzMy0uOTI4LjMzM2gtMS4zM1Y5LjI0MmgxLjMzWm05Ljg0NiAxLjc4OGMuMzg4IDAgLjY2NS4xNTIuODQ1LjQ1Ny4xNTIuMjY0LjIzNS41ODIuMjYzLjk4NHYuMzE5YzAgLjQ5OS0uMDgzLjg4Ny0uMjYzIDEuMTkyLS4xOC4zMDQtLjQ1Ny40NTctLjgzLjQ1Ny0uMzg5IDAtLjY2Ni0uMTUzLS44NDYtLjQ0NC0uMTUyLS4yNjMtLjIzNS0uNTk1LS4yNjMtMS4wMTF2LS4yOTFjMC0uNDg1LjA4My0uODczLjI2My0xLjE3OC4xOC0uMzA1LjQ0My0uNDg1LjgzMS0uNDg1Wm0tMy40MDctMS4xMzZhMS4xNyAxLjE3IDAgMCAwLS43MDYuMjM1IDEuNDgyIDEuNDgyIDAgMCAwLS40MTUuNWwtLjA4My4xNjUtLjA3LS44MDNoLTEuMzU3djUuNDMyaDEuNDU0di0zLjY1OWEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiA4LjEySDQuMTE0djcuMzE3aDEuNDY4VjEyLjc5aDEuMzNjLjg0NCAwIDEuNDk1LS4yMDggMS45OC0uNjM4LjQ4NS0uNDMuNzItLjk4My43Mi0xLjY5cy0uMjM1LTEuMjYxLS43Mi0xLjY5Yy0uNDQzLS4zODktMS4wMzktLjYxLTEuNzczLS42MzhsLS4yMjEtLjAxNFptOS44NDcgMS43NzRjLS44MDMgMC0xLjQyNi4yNjMtMS44ODMuNzc2LS40MTYuNDctLjYzNyAxLjA2Ny0uNjc5IDEuNzczdi4zMzNjMCAuODE4LjIyMiAxLjQ4My42NzkgMS45OTUuNDU3LjUxMyAxLjA4Ljc3NiAxLjg4My43NzYuODA0IDAgMS40MjctLjI2MyAxLjg4NC0uNzc2LjQxNS0uNDcuNjM3LTEuMDUzLjY3OC0xLjc3M3YtLjMzM2MwLS44MTctLjIyMS0xLjQ4Mi0uNjc4LTEuOTk1LS40NTctLjUxMy0xLjA4LS43NzYtMS44ODQtLjc3NlpNMTguMDAzIDZhNiA2IDAgMCAxIDAgMTJIMFY5LjQyM0EzLjQyIDMuNDIgMCAwIDEgMy40MiA2aDE0LjU4M1oiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSI3LjUiIHgyPSIyMiIgeTE9IjE5IiB5Mj0iNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMyMjIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM2OTY5NjkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=",sl="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzk5OSIgZD0iTTYuODk3IDMuMjQyYy40MTUgMCAuNzIuMTExLjkyOC4zNDcuMjA3LjIzNS4zMTguNTI2LjMxOC44NzMgMCAuMzQ2LS4xMS42MjMtLjMxOC44NDUtLjIwOC4yMjItLjUyNy4zMzMtLjkyOC4zMzNoLTEuMzNWMy4yNDJoMS4zM1ptOS44NDYgMS43ODhjLjM4OCAwIC42NjUuMTUyLjg0NS40NTcuMTUyLjI2NC4yMzUuNTgyLjI2My45ODR2LjMxOWMwIC40OTktLjA4My44ODctLjI2MyAxLjE5Mi0uMTguMzA0LS40NTcuNDU3LS44My40NTctLjM4OSAwLS42NjYtLjE1My0uODQ2LS40NDQtLjE1Mi0uMjYzLS4yMzUtLjU5NS0uMjYzLTEuMDExdi0uMjkxYzAtLjQ4NS4wODMtLjg3My4yNjMtMS4xNzguMTgtLjMwNS40NDMtLjQ4NS44MzEtLjQ4NVptLTMuNDA3LTEuMTM2YTEuMTcgMS4xNyAwIDAgMC0uNzA2LjIzNSAxLjQ4MiAxLjQ4MiAwIDAgMC0uNDE1LjVsLS4wODMuMTY1LS4wNy0uODAzaC0xLjM1N3Y1LjQzMmgxLjQ1NFY1Ljc2NGEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiAyLjEySDQuMTE0djcuMzE3aDEuNDY4VjYuNzloMS4zM2MuODQ0IDAgMS40OTUtLjIwOCAxLjk4LS42MzguNDg1LS40My43Mi0uOTgzLjcyLTEuNjlzLS4yMzUtMS4yNjEtLjcyLTEuNjljLS40NDMtLjM4OS0xLjAzOS0uNjEtMS43NzMtLjYzOGwtLjIyMS0uMDE0Wm05Ljg0NyAxLjc3NGMtLjgwMyAwLTEuNDI2LjI2My0xLjg4My43NzYtLjQxNi40Ny0uNjM3IDEuMDY3LS42NzkgMS43NzN2LjMzM2MwIC44MTguMjIyIDEuNDgzLjY3OSAxLjk5NS40NTcuNTEzIDEuMDguNzc2IDEuODgzLjc3Ni44MDQgMCAxLjQyNy0uMjYzIDEuODg0LS43NzYuNDE1LS40Ny42MzctMS4wNTMuNjc4LTEuNzczdi0uMzMzYzAtLjgxNy0uMjIxLTEuNDgzLS42NzgtMS45OTUtLjQ1Ny0uNTEzLTEuMDgtLjc3Ni0xLjg4NC0uNzc2Wk0xOC4wMDMgMGE2IDYgMCAwIDEgMCAxMkgwVjMuNDIzQTMuNDIgMy40MiAwIDAgMSAzLjQyIDBoMTQuNTgzWiIvPjwvc3ZnPg==";function ll(e){let t=nn(),{onTranslateTheMainPage:n,onUserConfigChange:a,request:r,onTranslateLocalHtmlFile:u,onSwitchTranslationMode:o,onTranslateLocalSubtitleFile:i,onSetBuildinConfig:s,pageStatus:c,openEbookBuilderPage:l,openPricingPage:p,openEbookViewerPage:f,config:m,openAboutPage:d,onTranslateTheWholePage:h,onToggleEnabled:T,openOptionsPage:b,ontranslateToThePageEndImmediately:C,onSetPageLanguage:w,onToggleTranslate:I,onTranslateLocalPdfFile:B,onTranslatePdf:y,onRestorePage:S,ctx:P,currentUrl:M,currentLang:x,onClose:R,onTranslatePage:F,onSetLocalConfig:D,onMouseTriggerChanged:_,errorMsg:U,disabledButton:j,noPermissionPDF:L}=e,E=a,[k,O]=De(""),[$,z]=De(U),[Y,q]=De(null),[ae,Q]=De(null),{t:G,lang:fe}=Ht(),he=70;fe.startsWith("zh")||(he=75);let re=null,K=null,se=null,me=null,ce=null,ye=null,Ae=null,Ee=null,Z=null,ke=null,Le=null,Oe=null;Ve(()=>{jt.get(Nt,null).then(H=>{H?(q(H),Q(tn(H))):Q(!1)}).catch(H=>{Q(!1)})},[]);let je=!0,st=Rt();if(m){st&&m&&(je=m.generalRule.showSponsorOnSafari);let{translationService:H,translationServices:de,translationUrlPattern:Ke}=m;Bn[H]&&(Ee=Ms("translationService",H,P)),de&&de[H]?Oe=de[H]||{}:Oe={};try{Z=new URL(M||"")}catch{}if(M&&bg(M)){ke=yg(Z.hostname),Le=Eg(M);let{matches:Me,excludeMatches:Pe}=Ke;K=Me.includes(ke),re=Me.includes(Z.hostname),me=Pe.includes(ke),se=Pe.includes(Z.hostname),ye=Me.includes(Le),Ae=Pe.includes(Le)}}if(m&&x&&x!=="auto"){let{translationLanguagePattern:H}=m,{matches:de}=H;de.includes(x)?ce=!0:ce=!1}let Pt=H=>{H.preventDefault(),b()},pa=H=>{E(de=>(de.alpha?O("Success disable alpha!"):O("Success enable alpha!"),{...de,alpha:!de.alpha}))},qt=H=>{E(de=>({...de,translationMode:H})),o(H)},Dn=()=>{E(H=>({...H,translationArea:"body"})),h()},Un=()=>{E(H=>({...H,translationArea:"main"})),n()},Ie=(H,de,Ke,Me)=>{if(H==="default"){E(wn=>{let Qt={...wn.translationUrlPattern};return{...wn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...wn.translationUrlPattern,matches:Vn([Z?.hostname,ke,M],Qt.matches),excludeMatches:Vn([Z?.hostname,ke,M],Qt.excludeMatches)}}});return}let Pe=H,Ln=Pe==="matches"?"excludeMatches":"matches";Z&&E(wn=>{let Qt={...wn.translationUrlPattern};return Qt[Pe]=ws(de,Qt[Pe]),Me.length>0&&(Qt[Pe]=Vn(Me,Qt[Pe])),Qt[Ln]=Vn(Ke,Qt[Ln]),{...wn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...wn.translationUrlPattern,...Qt}}}),Pe==="matches"&&c==="Original"?setTimeout(()=>{F(),R()},100):Pe==="excludeMatches"&&c==="Translated"&&setTimeout(()=>{S(),R()},100)},Wt=H=>{if(!H){E(Me=>{let Pe={...Me.translationLanguagePattern};return{...Me,translationLanguagePattern:{...Me.translationLanguagePattern,matches:Vn(x,Pe.matches),excludeMatches:Vn(x,Pe.excludeMatches)}}});return}let de=H,Ke=de==="matches"?"excludeMatches":"matches";x&&E(Me=>{let Pe={...Me.translationLanguagePattern};return Pe[de]=ws(x,Pe[de]),Pe[Ke]=Vn(x,Pe[Ke]),{...Me,translationLanguagePattern:{...Me.translationLanguagePattern,...Pe}}}),de==="matches"&&c==="Original"&&setTimeout(()=>{F(),R()},100)},rt=Z?.pathname.toLowerCase().endsWith(".pdf"),qe=G("translate");c==="Translated"||c==="Error"?qe=G("show-original"):c==="Original"?rt?Vu()&&Z.protocol==="file:"||L?qe=G("translate-firefox-local-pdf"):pe()?qe=G("noSupportTranslate-pdf"):qe=G("translate-pdf"):qe=G("translate"):qe=G(c);let Jt=G("translateToThePageEndImmediately");(c==="Original"||c==="Translated")&&(m.shortcuts.toggleTranslatePage&&(K4()&&P.rule.fingerCountToToggleTranslagePageWhenTouching>=2?qe+=` (${G(`fingers.${P.rule.fingerCountToToggleTranslagePageWhenTouching}`)})`:qe+=` (${m.shortcuts.toggleTranslatePage})`),m.shortcuts.toggleTranslateToThePageEndImmediately&&(Jt+=` (${m.shortcuts.toggleTranslateToThePageEndImmediately})`));let _t=[];P&&(_t=fd(P,"translationService"));let zn=H=>{H.preventDefault(),R()},mt=Ym(P.config.translationService,P.config.targetLanguage),mn=ye||re||K,ze=()=>ye?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!ye,onChange:H=>{let de=H.target.checked;Ie(de?"matches":"default",Le,[Le],[])}}),G("alwaysTranslateSomePage")]}):re?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!re,onChange:H=>{let de=H.target.checked;Ie(de?"matches":"default",Z.hostname,[Z.hostname,ke,Le],[ke])}}),G("alwaysTranslateSomeSiteOrWildSite")]}):K?V("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[V("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!K,onChange:H=>{let de=H.target.checked;Ie(de?"matches":"default",ke,[Le,Z.hostname,ke],[Z.hostname])}}),G("alwaysTranslateSomeSiteOrWildSite")]}):null;return V("div",{children:[V("div",{class:"popup-container px-6 pt-6 max-content",children:[V("div",{class:"text-sm",children:[V("div",{class:"flex justify-between mb-3 items-center",children:[V("label",{class:"inline-block text-label",children:[G("popupSourceLanguage"),"\uFF1A"]}),V(jn,{maxWidth:186,items:en.map(H=>({label:Vo(H,m.interfaceLanguage),value:H,selected:H===P.sourceLanguage,onSelected:de=>{w(de.value)}}))})]}),m&&m.targetLanguage&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[G("popupTarget"),"\uFF1A"]}),V(jn,{maxWidth:186,items:mt.filter(H=>H!=="auto").map(H=>({label:Vo(H,m.interfaceLanguage),value:H,selected:H===m.targetLanguage,onSelected:de=>{E(Ke=>({...Ke,targetLanguage:de.value}))}}))})]}),Ee&&_t.length>0&&V(Gt,{children:[V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[G("popupService"),"\uFF1A"]}),V(jn,{maxWidth:186,items:_t.map(H=>({label:`${G("translationServices."+H.id)}${H.ok?"":" "+(" "+(!ae&&!st&&H.providers&&H.providers.length>0?G("goLoginOrAction"):G("needAction")))}`,value:H.id,selected:H.selected,onSelected:de=>{let Ke=_t.find(Me=>Me.id===de.value);if(Ke.ok){if(E(Me=>({...Me,translationService:Ke.id})),c!="Translated")return;Ke.props.length===0?setTimeout(()=>{F()},1):setTimeout(()=>{S()},1)}else E(Me=>({...Me,translationService:Ke.id})),setTimeout(()=>{b()},100)}}))})]}),Oe&&Ee.props.length>0&&Ee.props.map((H,de)=>V("div",{class:"pl-4 text-sm",children:V(ul,{field:H,value:Oe[H.name],onChange:Ke=>{E(Me=>{let Pe=Me.translationServices||{},Ln=Pe[Ee.id]||{};return setTimeout(()=>{S()},1),{...Me,translationServices:{...Pe,[Ee.id]:{...Ln,[H.name]:Ke}}}})}},"field-"+de)},"service"+de))]}),Z&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:G("forThisSite")}),V(jn,{maxWidth:186,items:[{label:G("default"),value:"default",selected:re===!1&&se===!1&&!K&&!me&&!ye&&!Ae,onSelected:()=>{Ie("default",Z.hostname,[],[]);let H=Z.hostname,de=P.localConfig.tempTranslationUrlMatches||[],Ke=de.filter(Pe=>Pe.match!==H),Me=!1;Ke.length!==de.length&&(Me=!0),Me&&D({...P.localConfig,tempTranslationUrlMatches:[...Ke]})}},Le&&{label:G("alwaysTranslateSomeSite",{hostname:G("currentUrl")}),value:"matchesUrl",selected:ye,onSelected:()=>{Ie("matches",Le,[Le],[])}},{label:G("alwaysTranslateSomeSite",{hostname:Z.hostname}),value:"matches",selected:re,onSelected:H=>{Ie(H.value,Z.hostname,[Z.hostname,ke,Le],[ke])}},ke&&{label:G("alwaysTranslateSomeSite",{hostname:ke}),value:"matchesWild",selected:K,onSelected:()=>{Ie("matches",ke,[Le,Z.hostname,ke],[Z.hostname])}},Le&&{label:G("neverTranslateSomeSite",{hostname:G("currentUrl")}),value:"excludeMatchesUrl",selected:Ae,onSelected:()=>{Ie("excludeMatches",Le,[Le],[])}},{label:G("neverTranslateSomeSite",{hostname:Z.hostname}),value:"excludeMatches",selected:se,onSelected:H=>{Ie(H.value,Z.hostname,[Z.hostname,ke,Le],[ke])}},ke&&{label:G("neverTranslateSomeSite",{hostname:ke}),value:"excludeMatchesWild",selected:me,onSelected:()=>{Ie("excludeMatches",ke,[Z.hostname,Le,ke],[Z.hostname])}}].filter(Boolean)})]}),_&&Ir()&&V("div",{class:"flex items-center justify-between mb-3",children:[V("label",{class:"inline-block text-label",children:[G("mouse-translate"),"\uFF1A"]}),V(jn,{maxWidth:186,items:$u.filter(H=>!($u.includes(m.generalRule.mouseHoverHoldKey)&&H==="OtherCustom")).map(H=>{let de=G("mouseHoldKey",{key:H}),Ke=$u.includes(m.generalRule.mouseHoverHoldKey),Me=H===m.generalRule.mouseHoverHoldKey;return H==="Auto"?de=G("mouseHoldKeyAuto"):H==="Off"?de=G("mouseHoldKeyOff"):H==="OtherCustom"?de=Ke?G("mouseHoldKeyOther"):G("mouseHoldKeyCustomKey",{key:m.generalRule.mouseHoverHoldKey}):H==="Other"&&(de=G("mouseHoldKeyOther")),Ke||H==="OtherCustom"&&(Me=!0),{label:de,value:H,selected:Me,onSelected:Pe=>{Pe.value==="Other"?b("#interface"):_(Pe.value)}}})})]})]}),V("div",{class:"",children:V("button",{class:"py-2 mt-1 mb-5 main-button ",onClick:()=>{rt?y&&y():I()},"aria-busy":c==="Translating",disabled:j||c==="Translating",children:qe})}),V("div",{class:"text-sm",children:k}),V("div",{class:`pb-2 text-sm ${$?"":"display-none"}`,children:$}),V("div",{class:"flex items-center justify-between flex-wrap",children:[mn?V(ze,{}):x&&x!=="auto"?V("label",{for:"alwaysTranslateThisLanugage",class:"text-sm text-label text-overflow-ellipsis max-w-20",children:[V("input",{type:"checkbox",id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",checked:!!ce,onChange:H=>{let de=H.target.checked;Wt(de?"matches":void 0)}}),G("alwaysTranslateSomeLanguage",{language:Vo(x,m.interfaceLanguage,!1,!0)})]}):V("span",{}),V("div",{class:`flex flex-end flex-grow ${$?"display-none":""}`,children:V("span",{class:"immersive-translate-no-select muted text-sm",onClick:hg(7)(pa),children:["V",t,m.enabled?null:V("a",{href:"#",onClick:T,children:[" ","(",G("hasBeenDisabled"),")"]})]})})]})]}),V("footer",{children:[V("div",{class:"px-6 text-label",children:V(ol,{isShowError:!1,request:r,setStorageBuildinConfig:s})}),V("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer text-label",children:[V("div",{class:"flex flex-row items-center justify-center secondary clickable",style:{width:70},onClick:Pt,children:[V(al,{}),V("span",{class:"ml-1",children:G("options")})]}),je?V("a",{title:G(ae?"popup.openProForPro":"popup.openPro"),target:"_blank",href:ae?ps:fs,children:V("img",{src:ae?il:sl})}):ae&&V("a",{title:G(ae?"popup.openProForPro":"popup.openPro"),target:"_blank",href:ae?ps:fs,children:V("img",{src:ae?il:sl})}),V(rl,{label:G("more"),showArrow:!0,maxWidth:he,onSelected:H=>{H.value==="openPremium"?(globalThis.open(Rr),R()):H.value==="changeToOnlyTranslationMode"?qt("translation"):H.value==="changeToDualTranslationMode"?qt("dual"):H.value==="translateTheWholePage"?h():H.value==="translateToThePageEndImmediately"?C():H.value==="translateTheMainPage"?n():H.value==="showTranslationOnly"||(H.value==="translateLocalPdfFile"?B&&B():H.value==="translateLocalHtmlFile"?u&&u():H.value==="translateLocalSubtitleFile"?i&&i():H.value==="donate"?(globalThis.open(m.donateUrl),R()):H.value==="feedback"?(globalThis.open(m.feedbackUrl),R()):H.value==="options"?(b(),R()):H.value==="changeToTranslateTheWholePage"?Dn():H.value==="changeToTranslateTheMainPage"?Un():H.value==="about"?d():H.value==="toggleEnabled"?T():H.value==="openEbookViewer"?f():H.value==="openEbookBuilder"?l():H.value==="goPro"&&p())},menus:[m.translationMode==="dual"&&{label:"\u{1F524} "+G("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},m.translationMode==="translation"&&{label:"\u{1F521} "+G("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},m.translationArea==="main"&&{label:"\u{1F480} "+G("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},m.translationArea==="body"&&{label:"\u{1F4D6} "+G("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},{label:"\u26A1 "+Jt,value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+G("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+G("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+G("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},!pe()&&{label:"\u{1F310} "+G("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+G("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},ae===!1&&je&&{label:"\u{1F451} "+G("upgradeToPro"),value:"goPro"},{label:"\u2764\uFE0F "+G(je?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})]})]})}g();g();g();g();var cl={get:(e,t,n)=>{let a=t===void 0?e:{[e]:t};return ue.storage[n].get(a)},set:(e,t,n)=>ue.storage[n].set({[e]:t})};function li(e,t,n){let[a]=De(()=>typeof t=="function"?t():t),[r]=De(n),[u,o]=De(a),[i,s]=De(!1),[c,l]=De("");Ve(()=>{cl.get(e,a,r).then(f=>{f[e]&&o(f[e]),s(!0),l("")}).catch(f=>{s(!1),l(f)})},[e,a,r]);let p=da(f=>{let m=typeof f=="function"?f(u):f;N.debug("new settings",m),cl.set(e,m,r).then(()=>{o(m),s(!0),l("")}).catch(d=>{o(m),s(!1),l(d)})},[r,e,u]);return[u,p,i,c]}g();function dl(e,t,n){let a=[];return function(){let[u,o,i,s]=li(e,t,n),c=da(l=>{for(let p of a)p(l)},[]);return Ve(()=>(a.push(o),()=>{a.splice(a.indexOf(o),1)}),[o]),[u,c,i,s]}}function xg(e,t){return dl(e,t,"sync")}var H9="userConfig",q9=null,W9=xg(H9,q9);function ci(e){let[t,n,a,r]=W9(),u=da(o=>{let i=typeof o=="function"?o(t):o;i&&(i.updatedAt=new Date().toISOString()),n(i),e&&e(i)},[t]);return[t,u,a,r,n]}g();g();async function di(e){try{let t=new Date;N.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await ue.storage.local.set({[Br]:t.toISOString()}),await $9(),pe()||await jd()}catch(t){N.error("run cron task failed",t)}}async function Tg(){let t=(await Lt()).interval;if(t){let n=await ue.storage.local.get(Br);if(n&&n[Br]){let a=n[Br];if(Date.now()-new Date(a).getTime()a?(await ue.storage.local.set({buildinConfig:t}),N.info(`sync remote rules success, latest: ${new Date(r).toLocaleString()}`)):N.debug(`no need to sync rules, latest: ${a}`):N.info(`local version is too old, please update to ${o} or later`)}catch(e){N.error("sync rules error: ",e)}}g();g();g();g();g();g();var ml;function Cl(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function Mg(e,t=","){return e.map(Cl).join(t)}var Fg=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function gi(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function pi(e,t="@media "){return t+Vt(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(a=>`(${a}-width:${n[a]})`).join(" and "))).join(",")}function Vt(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function K9(){}var ht={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function Pg(e){return e.match(/[-=:;]/g)?.length||0}function yl(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(Pg(e),15)<<18}var G9=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function wl({n:e,i:t,v:n=[]},a,r,u){e&&(e=Cl({n:e,i:t,v:n})),u=[...Vt(u)];for(let i of n){let s=a.theme("screens",i);for(let c of Vt(s&&pi(s)||a.v(i))){var o;u.push(c),r|=s?67108864|yl(c):i=="dark"?1073741824:c[0]=="@"?yl(c):(o=c,1<<~(/:([a-z-]+)/.test(o)&&~G9.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:r,r:u,i:t}}var vl=new Map;function Cg(e){if(e.d){let t=[],n=gl(e.r.reduce((a,r)=>r[0]=="@"?(t.push(r),a):r?gl(a,u=>gl(r,o=>{let i=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(i){let s=u.indexOf(i[1]);return~s?u.slice(0,s)+i[0]+u.slice(s+i[1].length):pl(u,o)}return pl(o,u)})):a,"&"),a=>pl(a,e.n?"."+Fg(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((a,r)=>r+"{"+a+"}",e.d)}}function gl(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,a,r)=>t(a)+r)}function pl(e,t){return e.replace(/&/g,t)}var wg=new Intl.Collator("en",{numeric:!0});function V9(e,t){for(var n=0,a=e.length;n>1;0>=_g(e[r],t)?n=r+1:a=r}return a}function _g(e,t){let n=e.p&ht.o;return n==(t.p&ht.o)&&(n==ht.b||n==ht.o)?0:e.p-t.p||e.o-t.o||wg.compare(vg(e.n),vg(t.n))||wg.compare(kg(e.n),kg(t.n))}function vg(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function kg(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function fl(e,t){return Math.round(parseInt(e,16)*t)}function ma(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:a}=t,r=a?`var(${a})`:n;if(e.includes(""))return e.replace("",r);if(e[0]=="#"&&(e.length==4||e.length==7)){let u=(e.length-1)/3,o=[17,1,.062272][u-1];return`rgba(${[fl(e.substr(1,u),o),fl(e.substr(1+u,u),o),fl(e.substr(1+2*u,u),o),r]})`}return r=="1"?e:r=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${r})`)}function Bg(e,t,n,a,r=[]){return function u(o,{n:i,p:s,r:c=[],i:l},p){let f=[],m="",d=0,h=0;for(let C in o||{}){var T,b;let w=o[C];if(C[0]=="@"){if(!w)continue;if(C[1]=="a"){f.push(...Og(i,s,Al(""+w),p,s,c,l,!0));continue}if(C[1]=="l"){for(let I of Vt(w))f.push(...u(I,{n:i,p:(T=ht[C[7]],s&~ht.o|T),r:C[7]=="d"?[]:c,i:l},p));continue}if(C[1]=="i"){f.push(...Vt(w).map(I=>({p:-1,o:0,r:[],d:C+" "+I})));continue}if(C[1]=="k"){f.push({p:ht.d,o:0,r:[C],d:u(w,{p:ht.d},p).map(Cg).join("")});continue}if(C[1]=="f"){f.push(...Vt(w).map(I=>({p:ht.d,o:0,r:[C],d:u(I,{p:ht.d},p).map(Cg).join("")})));continue}}if(typeof w!="object"||Array.isArray(w))C=="label"&&w?i=w+gi(JSON.stringify([s,l,o])):(w||w===0)&&(C=C.replace(/[A-Z]/g,I=>"-"+I.toLowerCase()),h+=1,d=Math.max(d,(b=C)[0]=="-"?0:Pg(b)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(b)?+!!RegExp.$1||-!!RegExp.$2:0)+1),m+=(m?";":"")+Vt(w).map(I=>p.s(C,Rg(""+I,p.theme)+(l?" !important":""))).join(";"));else if(C[0]=="@"||C.includes("&")){let I=s;C[0]=="@"&&(C=C.replace(/\bscreen\(([^)]+)\)/g,(B,y)=>{let S=p.theme("screens",y);return S?(I|=67108864,pi(S,"")):B}),I|=yl(C)),f.push(...u(w,{n:i,p:I,r:[...c,C],i:l},p))}else f.push(...u(w,{p:s,r:[...c,C]},p))}return f.unshift({n:i,p:s,o:Math.max(0,15-h)+1.5*Math.min(d||15,15),r:c,d:m}),f.sort(_g)}(e,wl(t,n,a,r),n)}function Rg(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,a,r,u,o="")=>{let i=t(r,o);return typeof i=="function"&&/color|fill|stroke/i.test(r)?ma(i):""+Vt(i).filter(s=>Object(s)!==s)})}function kl(e,t){let n,a=[];for(let r of e)r.d&&r.n?n?.p==r.p&&""+n.r==""+r.r?(n.c=[n.c,r.c].filter(Boolean).join(" "),n.d=n.d+";"+r.d):a.push(n={...r,n:r.n&&t}):a.push({...r,n:r.n&&t});return a}function El(e,t,n=ht.u,a,r){let u=[];for(let o of e)for(let i of function(s,c,l,p,f){s={...s,i:s.i||f};let m=function(d,h){let T=vl.get(d.n);return T?T(d,h):h.r(d.n,d.v[0]=="dark")}(s,c);return m?typeof m=="string"?({r:p,p:l}=wl(s,c,l,p),kl(El(Al(m),c,l,p,s.i),s.n)):Array.isArray(m)?m.map(d=>{var h,T;return{o:0,...d,r:[...Vt(p),...Vt(d.r)],p:(h=l,T=d.p??l,h&~ht.o|T)}}):Bg(m,s,c,l,p):[{c:Cl(s),p:0,o:0,r:[]}]}(o,t,n,a,r))u.splice(V9(u,i),0,i);return u}function Og(e,t,n,a,r,u,o,i){return kl((i?n.flatMap(s=>El([s],a,r,u,o)):El(n,a,r,u,o)).map(s=>s.p&ht.o&&(s.n||t==ht.b)?{...s,p:s.p&~ht.o|t,o:0}:s),e)}function Y9(e,t,n,a){var r;return r=(u,o)=>{let{n:i,p:s,r:c,i:l}=wl(u,o,t);return n&&Og(i,t,n,o,s,c,l,a)},vl.set(e,r),e}function hl(e,t,n){if(e[e.length-1]!="("){let a=[],r=!1,u=!1,o="";for(let i of e)if(!(i=="("||/[~@]$/.test(i))){if(i[0]=="!"&&(i=i.slice(1),r=!r),i.endsWith(":")){a[i=="dark:"?"unshift":"push"](i.slice(0,-1));continue}i[0]=="-"&&(i=i.slice(1),u=!u),i.endsWith("-")&&(i=i.slice(0,-1)),i&&i!="&"&&(o+=(o&&"-")+i)}o&&(u&&(o="-"+o),t[0].push({n:o,v:a.filter(J9),i:r}))}}function J9(e,t,n){return n.indexOf(e)==t}var Ag=new Map;function Al(e){let t=Ag.get(e);if(!t){let n=[],a=[[]],r=0,u=0,o=null,i=0,s=(c,l=0)=>{r!=i&&(n.push(e.slice(r,i+l)),c&&hl(n,a)),r=i+1};for(;i1?p.slice(0,-1)+gi(JSON.stringify([p,f])):p+"("+Mg(f)+")",ht.a,f,/@$/.test(p))],a)}l=n.lastIndexOf("(",l-1)}n.length=l+1}else/[~@]/.test(c)&&e[i+1]=="("&&a.unshift([])}s(!0),Ag.set(e,t=a[0])}return t}function Ig(e,t,n){return t.reduce((a,r,u)=>a+n(r)+e[u+1],e[0])}function Ng(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?Ig(e,t,n=>bl(n).trim()):t.filter(Boolean).reduce((n,a)=>n+bl(a),e?bl(e):"")}function bl(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=Ng(e[0],e.slice(1)))&&(n+=" "+t);else for(let a in e)e[a]&&(n+=" "+a);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var sP=jg("@"),lP=jg("~");function jg(e){return new Proxy(function(n,...a){return t("",n,a)},{get(n,a){return a in n?n[a]:function(r,...u){return t(a,r,u)}}});function t(n,a,r){return Mg(Al(n+e+"("+Ng(a,r)+")"))}}function xl(e,t){return Array.isArray(e)?Sg(Ig(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?Sg(e):[e]}var Q9=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function Sg(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],a=[n[0]],r=[];for(;t=Q9.exec(e);)t[4]&&(n.shift(),r.shift()),t[3]?(r.unshift(t[3]),n.unshift({}),a.push(r.reduce((u,o)=>({[o]:u}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),a.push(r.reduce((u,o)=>({[o]:u}),n[0]))),n[0][t[1]]=t[2]);return a}function Ug(e,...t){var n;let a=xl(e,t),r=(a.find(u=>u.label)?.label||"css")+gi(JSON.stringify(a));return n=(u,o)=>kl(a.flatMap(i=>Bg(i,u,o,ht.o)),r),vl.set(r,n),r}var cP=new Proxy(function(e,t){return Dg("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,a){return Dg(t,n,a)}}});function Dg(e,t,n){return{toString(){return Ug({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function ee(e,t,n){return[e,Z9(t,n)]}function Z9(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,a)=>({[e]:t?t(n,a):Tl(n,1)}):n=>e||{[n[1]]:Tl(n,2)}}function Tl(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function te(e,t,n,a){return[e,X9(t,n,a)]}function X9(e,t,n){let a=typeof t=="string"?(r,u)=>({[t]:n?n(r,u):r._}):t||(({1:r,_:u},o,i)=>({[r||i]:u}));return(r,u)=>{let o=zg(e||r[1]),i=u.theme(o,r.$$)??hr(r.$$,o,u);if(i!=null)return r._=Tl(r,0,i),a(r,u,o)}}function it(e,t={},n){return[e,eb(t,n)]}function eb(e={},t){return(n,a)=>{let{section:r=zg(n[0]).replace("-","")+"Color"}=e,[u,o]=tb(n.$$);if(!u)return;let i=a.theme(r,u)||hr(u,r,a);if(!i||typeof i=="object")return;let{opacityVariable:s=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:c=r.replace("Color","Opacity"),property:l=r,selector:p}=e,f=a.theme(c,o||"DEFAULT")||o&&hr(o,c,a),m=t||(({_:h})=>{let T=pu(l,h);return p?{[p]:T}:T});n._={value:ma(i,{opacityVariable:s||void 0,opacityValue:f||void 0}),color:h=>ma(i,h),opacityVariable:s||void 0,opacityValue:f||void 0};let d=m(n,a);if(!n.dark){let h=a.d(r,u,i);h&&h!==i&&(n._={value:ma(h,{opacityVariable:s||void 0,opacityValue:f||"1"}),color:T=>ma(h,T),opacityVariable:s||void 0,opacityValue:f||void 0},d={"&":d,[a.v("dark")]:m(n,a)})}return d}}function tb(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function pu(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function hr(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=mi(Rg(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function zg(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function mi(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",a,r="")=>mi(n)+a+mi(r)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var dP=Symbol();var Hg=new Proxy(K9,{apply(e,t,n){return ml(n[0])},get(e,t){let n=ml[t];return typeof n=="function"?function(){return n.apply(ml,arguments)}:n}});var mP=function e(t){return new Proxy(function(n,...a){return Lg(t,"",n,a)},{get(n,a){return a==="bind"?e:a in n?n[a]:function(r,...u){return Lg(t,a,r,u)}}})}();function Lg(e,t,n,a){return{toString(){let r=xl(n,a),u=Fg(t+gi(JSON.stringify([t,r])));return(typeof e=="function"?e:Hg)(Ug({[`@keyframes ${u}`]:xl(n,a)})),u}}}g();g();g();g();g();var qg={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...Yt(4,"rem",4,.5,.5),...Yt(12,"rem",4,5),14:"3.5rem",...Yt(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Fe("blur"),backdropBrightness:Fe("brightness"),backdropContrast:Fe("contrast"),backdropGrayscale:Fe("grayscale"),backdropHueRotate:Fe("hueRotate"),backdropInvert:Fe("invert"),backdropOpacity:Fe("opacity"),backdropSaturate:Fe("saturate"),backdropSepia:Fe("sepia"),backgroundColor:Fe("colors"),backgroundImage:{none:"none"},backgroundOpacity:Fe("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...Yt(200,"",100,0,50),...Yt(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Fe("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Fe("spacing"),borderWidth:{DEFAULT:"1px",...dn(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Fe("colors"),caretColor:Fe("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...Yt(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Fe("borderColor"),divideOpacity:Fe("borderOpacity"),divideWidth:Fe("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...fu(2,6),...fu(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Fe("spacing"),gradientColorStops:Fe("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...fu(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...fu(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...Yt(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...Yt(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Fe("spacing"),placeholderColor:Fe("colors"),placeholderOpacity:Fe("opacity"),outlineColor:Fe("colors"),outlineOffset:dn(8,"px"),outlineWidth:dn(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Fe("colors"),ringOffsetWidth:dn(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...dn(8,"px")},rotate:{...dn(2,"deg"),...dn(12,"deg",3),...dn(180,"deg",45)},saturate:Yt(200,"",100,0,50),scale:{...Yt(150,"",100,0,50),...Yt(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Fe("spacing"),scrollPadding:Fe("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...dn(2,"deg"),...dn(12,"deg",3)},space:Fe("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:Yt(2),textColor:Fe("colors"),textDecorationColor:Fe("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...dn(8,"px")},textUnderlineOffset:{auto:"auto",...dn(8,"px")},textIndent:Fe("spacing"),textOpacity:Fe("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Fe("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...fu(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...Yt(50,"",1,0,10),auto:"auto"}};function fu(e,t){let n={};do for(var a=1;at(e)}var MP={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${qg.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${qg.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},PP=[ee("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:hr(`[${t}]`,"",n)}}})),ee("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),te("aspect-","aspectRatio"),ee("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:a,padding:r}=t("container"),u={width:"100%",marginRight:a&&"auto",marginLeft:a&&"auto",...o("xs")};for(let i in n){let s=n[i];typeof s=="string"&&(u[pi(s)]={"&":{maxWidth:s,...o(i)}})}return u;function o(i){let s=r&&(typeof r=="string"?r:r[i]||r.DEFAULT);if(s)return{paddingRight:s,paddingLeft:s}}}),te("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),ee("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),ee("box-(border|content)","boxSizing",({1:e})=>e+"-box"),ee("hidden",{display:"none"}),ee("table-(auto|fixed)","tableLayout"),ee(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",ee("isolate","isolation"),ee("object-(contain|cover|fill|none|scale-down)","objectFit"),te("object-","objectPosition"),ee("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",fi),ee("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),ee("(static|fixed|absolute|relative|sticky)","position"),te("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),te("-?(top|bottom|left|right)(?:$|-)","inset"),ee("(visible|collapse)","visibility"),ee("invisible",{visibility:"hidden"}),te("-?z-","zIndex"),ee("flex-((row|col)(-reverse)?)","flexDirection",Wg),ee("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),te("(flex-(?:grow|shrink))(?:$|-)"),te("(flex)-"),te("grow(?:$|-)","flexGrow"),te("shrink(?:$|-)","flexShrink"),te("basis-","flexBasis"),te("-?(order)-"),"-?(order)-(\\d+)",te("grid-cols-","gridTemplateColumns"),ee("grid-cols-(\\d+)","gridTemplateColumns",Vg),te("col-","gridColumn"),ee("col-(span)-(\\d+)","gridColumn",Gg),te("col-start-","gridColumnStart"),ee("col-start-(auto|\\d+)","gridColumnStart"),te("col-end-","gridColumnEnd"),ee("col-end-(auto|\\d+)","gridColumnEnd"),te("grid-rows-","gridTemplateRows"),ee("grid-rows-(\\d+)","gridTemplateRows",Vg),te("row-","gridRow"),ee("row-(span)-(\\d+)","gridRow",Gg),te("row-start-","gridRowStart"),ee("row-start-(auto|\\d+)","gridRowStart"),te("row-end-","gridRowEnd"),ee("row-end-(auto|\\d+)","gridRowEnd"),ee("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>fi(Wg(e))),ee("grid-flow-(dense)","gridAutoFlow"),te("auto-cols-","gridAutoColumns"),te("auto-rows-","gridAutoRows"),te("gap-x(?:$|-)","gap","columnGap"),te("gap-y(?:$|-)","gap","rowGap"),te("gap(?:$|-)","gap"),"(justify-(?:items|self))-",ee("justify-","justifyContent",$g),ee("(content|items|self)-",e=>({["align-"+e[1]]:$g(e)})),ee("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),te("p([xytrbl])?(?:$|-)","padding",br("padding")),te("-?m([xytrbl])?(?:$|-)","margin",br("margin")),te("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),ee("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),te("w-","width"),te("min-w-","minWidth"),te("max-w-","maxWidth"),te("h-","height"),te("min-h-","minHeight"),te("max-h-","maxHeight"),te("font-","fontWeight"),te("font-","fontFamily",({_:e})=>typeof(e=Vt(e))[1]=="string"?{fontFamily:Cn(e)}:{fontFamily:Cn(e[0]),...e[1]}),ee("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),ee("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),ee("italic","fontStyle"),ee("not-italic",{fontStyle:"normal"}),ee("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...ga({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),te("tracking-","letterSpacing"),te("leading-","lineHeight"),ee("list-(inside|outside)","listStylePosition"),te("list-","listStyleType"),ee("list-","listStyleType"),te("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),it("placeholder-",{property:"color",selector:"&::placeholder"}),ee("text-(left|center|right|justify|start|end)","textAlign"),ee("text-(ellipsis|clip)","textOverflow"),te("text-opacity-","textOpacity","--tw-text-opacity"),it("text-",{property:"color"}),te("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),te("indent-","textIndent"),ee("(overline|underline|line-through)","textDecorationLine"),ee("no-underline",{textDecorationLine:"none"}),te("underline-offset-","textUnderlineOffset"),it("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),te("decoration-","textDecorationThickness"),ee("decoration-","textDecorationStyle"),ee("(uppercase|lowercase|capitalize)","textTransform"),ee("normal-case",{textTransform:"none"}),ee("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),ee("align-","verticalAlign"),ee("whitespace-","whiteSpace"),ee("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),ee("break-words",{overflowWrap:"break-word"}),ee("break-all",{wordBreak:"break-all"}),ee("break-keep",{wordBreak:"keep-all"}),it("caret-",{opacityVariable:!1,opacitySection:"opacity"}),it("accent-",{opacityVariable:!1,opacitySection:"opacity"}),ee("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${La(e," ")},var(--tw-gradient-stops))`),it("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),it("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),it("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),ee("bg-(fixed|local|scroll)","backgroundAttachment"),ee("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),ee(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),ee("bg-blend-","backgroundBlendMode"),ee("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),te("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),it("bg-",{section:"backgroundColor"}),te("bg-","backgroundImage"),te("bg-","backgroundPosition"),ee("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",fi),te("bg-","backgroundSize"),te("rounded(?:$|-)","borderRadius"),te("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${La(n[0])}-radius`]:t,[`border-${La(n[1])}-radius`]:t}}),ee("border-(collapse|separate)","borderCollapse"),te("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),ee("border-(solid|dashed|dotted|double|none)","borderStyle"),te("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...ga({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),it("border-([xytrbl])-",{section:"borderColor"},br("border","Color")),it("border-"),te("border-([xytrbl])(?:$|-)","borderWidth",br("border","Width")),te("border(?:$|-)","borderWidth"),te("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),ee("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),ee("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),te("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${La(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${La(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),it("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),te("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),it("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),te("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),ee("ring-inset",{"--tw-ring-inset":"inset"}),it("ring-",{property:"--tw-ring-color"}),te("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...ga({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":ma(t("ringOffsetColor","","#fff")),"--tw-ring-color":ma(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),it("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),te("shadow(?:$|-)","boxShadow",({_:e})=>({...ga({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Cn(e),"--tw-shadow-colored":Cn(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),te("(opacity)-"),ee("mix-blend-","mixBlendMode"),...Kg(),...Kg("backdrop-"),te("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Cn(e),transitionTimingFunction:e._=="none"?void 0:Cn(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:Cn(t("transitionDuration",""))})),te("duration(?:$|-)","transitionDuration","transitionDuration",Cn),te("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Cn),te("delay(?:$|-)","transitionDelay","transitionDelay",Cn),te("animate(?:$|-)","animation",(e,{theme:t,h:n,e:a})=>{let r=Cn(e),u=r.split(" "),o=t("keyframes",u[0]);return o?{["@keyframes "+(u[0]=a(n(u[0])))]:o,animation:u.join(" ")}:{animation:r}}),"(transform)-(none)",ee("transform",Dl),ee("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":Yg(e=="gpu")})),te("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...Dl()})),te("-?(rotate)-","rotate",Sl),te("-?(translate-[xy])-","translate",Sl),te("-?(skew-[xy])-","skew",Sl),ee("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",fi),"(appearance)-",te("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",te("(cursor)-"),"(cursor)-",ee("snap-(none)","scroll-snap-type"),ee("snap-(x|y|both)",({1:e})=>({...ga({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),ee("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),ee("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),ee("snap-(normal|always)","scroll-snap-stop"),ee("scroll-(auto|smooth)","scroll-behavior"),te("scroll-p([xytrbl])?(?:$|-)","padding",br("scroll-padding")),te("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",br("scroll-margin")),ee("touch-(auto|none|manipulation)","touch-action"),ee("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...ga({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),ee("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),ee("outline",{outlineStyle:"solid"}),ee("outline-(dashed|dotted|double)","outlineStyle"),te("-?(outline-offset)-"),it("outline-",{opacityVariable:!1,opacitySection:"opacity"}),te("outline-","outlineWidth"),"(pointer-events)-",te("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],ee("select-(none|text|all|auto)","userSelect"),it("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),it("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),te("stroke-","strokeWidth"),ee("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),ee("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function fi(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function Wg(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function La(e,t="-"){let n=[];for(let a of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[a]);return n.join(t)}function Cn(e){return e&&""+(e._||e)}function $g({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function br(e,t=""){return({1:n,_:a})=>{let r={x:"lr",y:"tb"}[n]||n+n;return r?{...pu(e+"-"+La(r[0])+t,a),...pu(e+"-"+La(r[1])+t,a)}:pu(e+t,a)}}function Kg(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let a of t)n[`--tw-${e}${a}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...ga(n),[`${e}filter`]:t.map(a=>`var(--tw-${e}${a})`).join(" ")},[`(${e}filter)-(none)`,ee(`${e}filter`,n),...t.map(a=>te(`${a[0]=="h"?"-?":""}(${e}${a})(?:$|-)`,a,({1:r,_:u})=>({[`--tw-${r}`]:Vt(u).map(o=>`${a}(${o})`).join(" "),...n})))]}function Sl({1:e,_:t}){return{["--tw-"+e]:t,...Dl()}}function Dl(){return{...ga({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":Yg()}),transform:"var(--tw-transform)"}}function Yg(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function Gg({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function Vg({1:e}){return`repeat(${e},minmax(0,1fr))`}function ga(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}g();g();var hi=globalThis||(typeof window<"u"?window:self),rb=Object.create,Ml=Object.defineProperty,ub=Object.getOwnPropertyDescriptor,ob=Object.getOwnPropertyNames,ib=Object.getPrototypeOf,sb=Object.prototype.hasOwnProperty,lb=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),cb=(e,t)=>{for(var n in t)Ml(e,n,{get:t[n],enumerable:!0})},Ll=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ob(t))!sb.call(e,r)&&r!==n&&Ml(e,r,{get:()=>t[r],enumerable:!(a=ub(t,r))||a.enumerable});return e},db=(e,t,n)=>(Ll(e,t,"default"),n&&Ll(n,t,"default")),Qg=(e,t,n)=>(n=e!=null?rb(ib(e)):{},Ll(t||!e||!e.__esModule?Ml(n,"default",{value:e,enumerable:!0}):n,e)),Zg=lb((e,t)=>{(function(n,a){typeof define=="function"&&define.amd?define([],a):typeof e<"u"?a():(a(),n.FileSaver={})})(e,function(){"use strict";function n(c,l){return typeof l>"u"?l={autoBom:!1}:typeof l!="object"&&(l={autoBom:!l}),l.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function a(c,l,p){var f=new XMLHttpRequest;f.open("GET",c),f.responseType="blob",f.onload=function(){s(f.response,l,p)},f.onerror=function(){},f.send()}function r(c){var l=new XMLHttpRequest;l.open("HEAD",c,!1);try{l.send()}catch{}return 200<=l.status&&299>=l.status}function u(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var l=document.createEvent("MouseEvents");l.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(l)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof hi=="object"&&hi.global===hi?hi:void 0,i=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(c,l,p){var f=o.URL||o.webkitURL,m=document.createElement("a");l=l||c.name||"download",m.download=l,m.rel="noopener",typeof c=="string"?(m.href=c,m.origin===location.origin?u(m):r(m.href)?a(c,l,p):u(m,m.target="_blank")):(m.href=f.createObjectURL(c),setTimeout(function(){f.revokeObjectURL(m.href)},4e4),setTimeout(function(){u(m)},0))}:"msSaveOrOpenBlob"in navigator?function(c,l,p){if(l=l||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(n(c,p),l);else if(r(c))a(c,l,p);else{var f=document.createElement("a");f.href=c,f.target="_blank",setTimeout(function(){u(f)})}}:function(c,l,p,f){if(f=f||open("","_blank"),f&&(f.document.title=f.document.body.innerText="downloading..."),typeof c=="string")return a(c,l,p);var m=c.type==="application/octet-stream",d=/constructor/i.test(o.HTMLElement)||o.safari,h=/CriOS\/[\d]+/.test(navigator.userAgent);if((h||m&&d||i)&&typeof FileReader<"u"){var T=new FileReader;T.onloadend=function(){var w=T.result;w=h?w:w.replace(/^data:[^;]*;/,"data:attachment/file;"),f?f.location.href=w:location=w,f=null},T.readAsDataURL(c)}else{var b=o.URL||o.webkitURL,C=b.createObjectURL(c);f?f.location=C:location.href=C,f=null,setTimeout(function(){b.revokeObjectURL(C)},4e4)}});o.saveAs=s.saveAs=s,typeof t<"u"&&(t.exports=s)})}),Xg={};cb(Xg,{default:()=>bi});var mb=Qg(Zg());db(Xg,Qg(Zg()));var{default:Jg,...gb}=mb,bi=Jg!==void 0?Jg:gb;g();g();g();g();g();g();var y_=Re().REDIRECT_URL;function Tb(){let[e,t]=De(null);return Ve(()=>{Yn().then(a=>{t(a)})},[]),[e,a=>{t(a),An(a)}]}async function Cb(e,t,n){try{if(t===null)return"noupdate";let a=await kb(e),r=await Yn();r.accountLastSyncedAt=Date.now(),N.debug("settings",t),N.debug("local settings.updatedAt",t.updatedAt),N.debug("remote settings.updatedAt",a.updatedAt),N.debug("last synced at",r.accountLastSyncedAt);let u=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(u=!0),!u&&t.updatedAt>a.updatedAt&&(u=!0),N.debug("isUpload",u),u)return await Ab(e,t),await An(r),"upload";let o=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(o=!0),!o&&t.updatedAt0&&jt.remove(Nt),a}}function np(e,t){let n=vb(),[a,r]=Tb();Ve(()=>{!n||!n.token||a&&a.proAutoSync===!1||wb(n)&&Cb(n.token,e,t)},[e,n])}function wb(e){return tn(e)?!0:new Date(e.createTime){jt.get(Nt,null).then(n=>{t(n)})},[t]),e}function kb(e){return(location.href?.indexOf("popup.html")>0?xa:oe)({responseType:"json",url:gs+"/v1/user/settings",method:"get",headers:{token:e}}).then(n=>n.data)}function Ab(e,t){return(location.href?.indexOf("popup.html")>0?xa:oe)({responseType:"json",url:gs+"/v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(a=>a.data)}function Fl(e){let{onClose:t}=e,[n,a]=De("Original"),[r,u,o,i]=ci(()=>{setTimeout(()=>{w("updateGlobalContext",!1)()},250)});np(r,u);let[s,c]=De(null),[l,p]=De(globalThis.location.href),[f,m]=De("auto"),[d,h]=De(null),T=j=>{a(j.detail)},b=j=>{m(j);let L=fg(l,j,s.sourceLanguageUrlPattern);u(E=>({...E,sourceLanguageUrlPattern:L})),an(j)},C=()=>{p(globalThis.location.href)};Ve(()=>(document.addEventListener(ju,T,!1),Lt().then(j=>{c(j);let L=pt();m(L);let E=We();a(E),di(j.interval)}),document.addEventListener("urlChange",C),()=>{document.removeEventListener("pageTranslatedStatus",T),document.removeEventListener("urlChange",C)}),[]),Ve(()=>{Lt().then(j=>{c(j)})},[r]),Ve(()=>{l&&s&&ln({url:l,config:s}).then(j=>{h(j)})},[l,s]);let w=(j,L,E={})=>()=>{gr({method:j,data:E||{}}),L&&t()},I=()=>{t()},B=()=>{u(j=>({...j,enabled:!j.enabled})),setTimeout(()=>{I()},50)},y=()=>{Bs(),setTimeout(()=>{I()},50)},S=()=>{Bs(),setTimeout(()=>{I()},50)},P=(j="")=>{Va(!0,j),setTimeout(()=>{t()},50)},M=()=>{bo(P4),setTimeout(()=>{globalThis.close()},50)},x=()=>{ho(),setTimeout(()=>{t()},50)},R=()=>{yo(),setTimeout(()=>{t()},50)},F=()=>{Id(),setTimeout(()=>{t()},50)},D=()=>{Eo(),setTimeout(()=>{t()},50)},_=()=>{Nd(),setTimeout(()=>{t()},50)},U=j=>{u(L=>({...L,generalRule:{...L.generalRule,mouseHoverHoldKey:j}}))};return!s||!d?null:V(ll,{openEbookViewerPage:R,openEbookBuilderPage:D,onSwitchTranslationMode:j=>{w("switchTranslationMode",!0,{mode:j})()},onTranslateLocalHtmlFile:F,onTranslateLocalSubtitleFile:_,request:oe,onClose:I,onToggleEnabled:B,onTranslateTheWholePage:w("translateTheWholePage",!0),openOptionsPage:P,openPricingPage:M,onToggleTranslate:w("toggleTranslatePage",!0),onTranslateTheMainPage:w("translateTheMainPage",!0),ontranslateToThePageEndImmediately:w("translateToThePageEndImmediately",!0),onTranslatePage:w("translatePage",!0),onRestorePage:w("restorePage",!1),onTranslatePdf:y,openAboutPage:x,onTranslateLocalPdfFile:S,onSetPageLanguage:b,onUserConfigChange:u,config:s,pageStatus:n,ctx:d,currentUrl:l,currentLang:f,onSetLocalConfig:fo,onSetBuildinConfig:Ld,onMouseTriggerChanged:U})}function Sb(e,t){for(let n of t){if(pe()&&!Vu()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}var Pl={position:"right",right:0,top:335},Ft={...Pl},xi=!1,Ma=null,Sn=null,Ti=null,_l=null,yr=null,Bl=null,ap=6,yi,Ei,up=null,op=null;async function Ol(){let e=Re();Bl=await Dd(),Ft=Bl.pagePopupConfig||Ft;let t=document.createElement("div");t.id="immersive-translate-popup",t.setAttribute("style","all: initial"),document.documentElement.appendChild(t);let n=t.attachShadow({mode:"open"});_l=n;let a=[e.IMMERSIVE_TRANSLATE_PICO_CSS,e.IMMERSIVE_TRANSLATE_COMMON_CSS,e.IMMERSIVE_TRANSLATE_POPUP_CSS,e.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);Sb(n,[a]);let r=document.createElement("div");r.innerHTML=e.IMMERSIVE_TRANSLATE_POPUP_HTML,n.appendChild(r),Ma=n.querySelector("#immersive-translate-popup-container");let o=n.querySelector("#immersive-translate-popup-btn");Sn=o,Ti=n.querySelector("#mount"),Ma.setAttribute("style",Rl(Ft)),Ul(),o.addEventListener("mousedown",ip),o.addEventListener("touchstart",Mb),globalThis.addEventListener("resize",s=>{Ma.setAttribute("style",Rl(Ft))})}function Db(){cu(null,Ti),Ti.style.display="none",Sn.style.display="block",yr=setTimeout(()=>{Ul(!0)},2e3)}function rp(e){let t=e.querySelector("#mount"),n=()=>{Db()},a=r=>{r&&r.target&&r.target.id==="immersive-translate-popup-overlay"&&n()};(async()=>{let r=await Lt();cu(V(pg,{lang:r.interfaceLanguage,fallbackLang:"zh-CN",translations:H3,children:V("div",{onClick:a,id:"immersive-translate-popup-overlay",class:"immersive-translate-popup-overlay",children:V("div",{class:"immersive-translate-popup-wrapper",style:Lb(),children:V(Fl,{onClose:n})})})}),t)})().then(()=>{Sn.style.display="none",Ti.style.display="block"})}function Lb(){let e=Il(),t=e.height,{position:n,top:a,left:r}=Ft,u={position:"fixed"},o=300,i=300,s=100;return Ac()&&(n=Pl.position,a=Pl.top),n==="right"||n==="left"?(u.top=a-s,u.top+o>=t?(u.bottom=30,delete u.top):u.top<=10&&(u.top=10),n==="right"?u.right=0:n==="left"&&(u.left=0)):(n==="top"||n==="bottom")&&(u.left=r-s,u.left+i>=e.width?(u.right=0,delete u.left):u.left<=10&&(u.left=0),n==="top"?u.top=0:n==="bottom"&&(u.bottom=0)),u}function Il(){return{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}function ip(e){op=Ma.getAttribute("style"),yi=e.pageX,Ei=e.pageY,yr&&clearTimeout(yr),xi=!1,Sn.style.opacity="1",Sn.style.transform="none",up=Sn.getAttribute("style"),globalThis.addEventListener("mousemove",Nl),globalThis.addEventListener("mouseup",jl),globalThis.addEventListener("touchmove",sp),globalThis.addEventListener("touchend",Ci),globalThis.addEventListener("touchcancel",Ci)}function Mb(e){e.preventDefault&&e.preventDefault(),ip(e.changedTouches[0])}function sp(e){Nl(e.changedTouches[0])}function Ci(e){e.preventDefault&&e.preventDefault(),jl(e.changedTouches[0])}function Nl(e){e.preventDefault&&e.preventDefault(),xi=!0,Ma.setAttribute("style",`left:${e.clientX}px;top:${e.clientY}px;transform:scale(1.6);`)}function jl(e){e.preventDefault&&e.preventDefault(),Pb(),yr&&clearTimeout(yr),yi=yi||0,Ei=Ei||0;let t=Math.abs(e.pageX-yi),n=Math.abs(e.pageY-Ei);t{Ul(!0)},2e3)}function Ul(e=!1){Sn.style.opacity="0.4";let t="";Ft.position==="left"?t="translateX(-40%)":Ft.position==="right"?t="translateX(40%)":Ft.position==="top"?t="translateY(-40%)":Ft.position==="bottom"&&(t="translateY(40%)"),Sn.style.transform=t,e&&(Sn.style.transition="transform 0.2s ease-in-out, opacity 0.2s ease-in-out")}function Pb(){globalThis.removeEventListener("mousemove",Nl),globalThis.removeEventListener("mouseup",jl),globalThis.removeEventListener("touchmove",sp),globalThis.removeEventListener("touchend",Ci),globalThis.removeEventListener("touchcancel",Ci)}function Rl(e){let t=_b(e);return Object.keys(t).map(n=>typeof t[n]=="number"?`${n}:${t[n]}px;`:"").join("")}function _b(e){let{position:t,...n}=e,a=Il(),r={};return t==="left"?(r.left=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="right"?(r.right=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="top"?(r.top=0,n.left>a.width?r.left=a.width-100:r.left=n.left):t==="bottom"&&(r.bottom=0,n.left>a.width?r.left=a.width-100:r.left=n.left),r}var wi=!1;async function lp(e){if(!e){let t=await Lt(),n={url:globalThis.location.href,config:t};e=await ln(n)}e.config.debug&&N.setLevel("debug"),e.isTranslateExcludeUrl?N.debug("detect exclude url, do not inject anything."):(Kn().any||pe())&&e.rule.isShowUserscriptPagePopup&&(wi||(wi=!0,Ol().catch(t=>{N.error("init popup error",t)})))}async function cp(){wi||(wi=!0,Ol().catch(e=>{N.error("init popup error",e)}))}var dp=!1,fp=[()=>{Ye.unbind()}],Hl=[...fp],Bb=bt(async()=>{await Va()},50),Rb=bt(async()=>{await ho()},50),Ob=bt(async()=>{await Eo()},50),Ib=bt(async()=>{await yo()},50),hp=bt(e=>{gr({method:e,data:{trigger:"userscript_menu"}})},50),Nb=bt(()=>{lo();let e=new CustomEvent($n,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},200),jb=bt(()=>{po();let e=new CustomEvent($n,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},200),Ub=bt(()=>{mo();let e=new CustomEvent($n,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},200);function zb(e,t){let n=e.document;if(dp)return;if(dp=!0,pe()||Cd(),n.addEventListener("securitypolicyviolation",Xb),document.addEventListener(ge+"DocumentMessageUser",Ep),document.addEventListener(ge+"DocumentMessageUpdateUser",xp),document.addEventListener(ge+"ChangeSuccessService",Tp.bind(null,t)),document.addEventListener(Iu,Jb.bind(null,t)),n.addEventListener(ge+"EbookLoaded",Zb),n.addEventListener(p4,Qb),n.addEventListener(f4,ey.bind(null,t)),n.addEventListener("click",r=>{$b(r,t)}),pe()&&(globalThis.top!=globalThis.self?e.addEventListener("message",qb,!1):n.addEventListener($n,Hb)),globalThis.top===globalThis.self){let r=ta.rootIframe(Wu);r.handleAsk("getRateLimitDelay",Qd),r.handleAsk("throttleRequest",Om)}}function hu(e,t){ty(),zb(t,e);let n=t.document,a=Wb.bind(null,e);e.rule.fingerCountToToggleTranslagePageWhenTouching>=2&&n.addEventListener("touchstart",a),Hl.push(()=>{n.removeEventListener("touchstart",a)}),pe()&&globalThis.top===globalThis.self&&(G0(e.config),ny(e.config)),Rt()&&G0(e.config)}function Hb(e){cp()}function qb(e){let t=e;t&&t.data&&t.data.payload&&t.data.author===Ru&&Ga(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})}function Wb(e,t){let n=t;n.touches.length==e.rule.fingerCountToToggleTranslagePageWhenTouching?Nb():n.touches.length===e.rule.fingerCountToToggleTranslationMaskWhenTouching?Ub():n.touches.length===e.rule.fingerCountToToggleTranslagePageOnlyTranslationWhenTouching&&jb()}function $b(e,t){let n=e.target;if(!n||!n.getAttribute){zl(n);return}let a=n.getAttribute("data-immersive-translate-event");a&&$e(a,[{name:a}],{...t,sourceLanguage:"none"});let r=n.getAttribute(`data-${J}-action`);if(r)if(r==="retry"){e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),co(),zl(n,!0);return}else if(r=="toast-error"){let u=n.getAttribute(`data-${J}-tooltip-text`);ql(yp.bind(null,t,u||""))}else r=="close-search"&&(e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),ql(Vb.bind(null,t)));zl(n)}async function mp(e=!1){let t=document.querySelector(`.${J}-search-recomend`);if(!t||(t.remove(),!e))return;let n=await on();n.generalRule||(n.generalRule={}),n.generalRule.enableSearchEnhancement=!1,await un(n)}async function Kb(){let e=await on(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,a=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(a=e.translationUrlPattern.matches||[]),!n&&a.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await un(e)}async function Gb(){let e=await on(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await un(e)}var gp=0;function ql(e){let t=Date.now();if(t-gp<2e3)return;gp=t;let n=`${J}-modal`,a=document.querySelector(`.${n}`);if(a?.style.display=="block")return;let r=`${J}-modal-title`,u=`${J}-modal-body`,o=`${J}-modal-footer`;if(a){let i=a.querySelector(`.${r}`),s=a.querySelector(`.${o}`),c=a.querySelector(`.${u}`);e(a,i,c,s)}else{a=document.createElement("div"),a.className=n+" notranslate",a.id=n;let i=document.createElement("div");i.className=J+"-modal-content notranslate",a.appendChild(i);let s=document.createElement("span");s.textContent="\xD7",s.className=J+"-close",i.appendChild(s);let c=document.createElement("div");c.className=r+" notranslate",i.appendChild(c);let l=document.createElement("div");l.className=u+" notranslate",i.appendChild(l);let p=document.createElement("div");p.className=o,i.appendChild(p),document.body.appendChild(a),s.onclick=function(){a.style.display="none"},window.onclick=function(f){f.target==a&&(a.style.display="none")},e(a,c,l,p)}setTimeout(()=>{Yb()},100)}function Vb(e,t,n,a,r){let u=bp.bind(null,e);n.innerHTML=`
${si} ${u("disableConfirm")}
`,a.innerHTML="";let o=document.querySelector(`div[data-${J}-cancel-desc]`),i=document.createElement("p");i.innerHTML=o?_e.sanitize(o.textContent||""):_e.sanitize(u("searchEnhancementNotes")),i.style.cssText="margin-bottom:12px",a.appendChild(i);let s=[{id:"enable-search-enhancement",value:"enable",text:u("enableSearchEnhancement")},{id:"disable-once",value:"once",text:u("disableOnce")},{id:"disable-global",value:"global",text:u("disableGlobal")}];for(let m=0;m${u("option")}`})),a.appendChild(c);let l=a.querySelector(`.${J}-open-enhancement`);l&&(l.onclick=function(){Od(!0)});let p=document.createElement("button");p.innerText=u("closeModal"),p.className=`${J}-btn ${J}-cancel-btn`;let f=document.createElement("button");f.className=`${J}-btn`,f.innerText=u("saveSettings"),r.innerHTML="",r.appendChild(p),r.appendChild(f),p.onclick=function(){t.style.display="none"},f.onclick=function(){let m=a.getElementsByTagName("input"),d="";for(let h=0;h
1. \u5207\u6362\u5230 ${u} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458`:i+=`

\u5982\u679C\u60A8\u6709\u7591\u95EE\uFF0C\u8BF7\u8054\u7CFB support@immersivetranslate.com`,ql(yp.bind(null,e,i))}catch(a){N.warn("parse message error",a)}}function Qb(e){let t=e;if(N.debug("receive third party message",t),t&&t.detail)try{let n=JSON.parse(t.detail);n&&n.type&&(n.type==="retryFailedParagraphs"?ay({method:"retryFailedParagraphs"}):n.type==="updateCommands"?xo(n.data):n.type==="toggleEnableDefaultAlwaysTranslatedUrls"?Kb():n.type==="toggleEnableInputTranslation"?Gb():hp(n.type))}catch(n){N.warn("parse message error",n)}}function Zb(e){setTimeout(()=>{vi()},10)}function Xb(e){xe.HAS_CSP_ERROR="1"}function ey(e,t){let n=event.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&$e(n.name,[{name:n.name}],{...e})}function ty(){Hl.forEach(e=>{e()}),Hl=fp}function ny(e){if(pe()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=Ju.commands,r=[...Object.keys(t).filter(u=>u==="toggleTranslatePage").map(u=>{let o=t[u].description,i=o;return o.startsWith("__MSG_")&&o.endsWith("__")&&(i=mr(`browser.${o.slice(6,-2)}`,e.interfaceLanguage)),{id:u,title:i}}),{id:os,title:mr("browser.openEbookViewer",e.interfaceLanguage),key:"e"},{id:is,title:mr("browser.openEbookBuilder",e.interfaceLanguage),key:"m"},{id:rs,title:mr("browser.openOptionsPage",e.interfaceLanguage),key:"o"},{id:us,title:mr("browser.openAboutPage",e.interfaceLanguage),key:"a"}];for(let u of r)GM.registerMenuCommand(u.title,()=>{u.id===rs?Bb():u.id===us?Rb():u.id===is?Ob():u.id===os?Ib():hp(u.id)},u.key)}}function ay(e){Ga(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{N.error("send content message request failed",e,n)});let t=new CustomEvent($n,{detail:e});globalThis.document.dispatchEvent(t)}g();var Fa={};async function Wl(){let t=[...document.querySelectorAll(".source-text")].map(a=>a.textContent).join(""),n=await Qe({text:t,minLength:200,pageLangs:[ya(),"en"]});return an(n),n}async function Cp(e){Dt("Translating");let t=pt(),n=uo(),a=[...document.querySelectorAll(".source-text")];if(jo(e,t))return;let r=a.filter(u=>u.innerText?.trim()).map((u,o)=>{let i=u.parentElement?.parentElement?.querySelector(".target-text");return at(u,"id",o+""),i&&(or(i,o)?.remove(),i.appendChild(uu(e,o))),{text:u.innerText||"",id:o,from:t,to:e.targetLanguage,url:"https://google.com",fromByClient:n}});document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await ua({sentences:r},e,(u,o,i)=>{let s=i.id,c=or(document.body,s);if(!c)return;let l=c.parentElement;l&&(c.remove(),u?(l.innerHTML=_e.sanitize(`${u.message}`),Fa[s]={ok:!1,sentence:i}):o&&(l.innerHTML=_e.sanitize(o.text),Fa[s]={ok:!0,sentence:i}),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!u}})})))})}catch(u){throw u}finally{Dt("Translated")}}async function wp(e){Dt("Translating"),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(Fa),n=[],a=[];for(let r of t){let u=Fa[r];if(!u.ok){let i=document.querySelector(`#error-id-${r}`);if(i){let s=i.parentElement;i.remove(),s&&(delete Fa[r],s.appendChild(uu(e,r)),a.push(u.sentence))}}}try{await ua({sentences:a},e,(r,u,o)=>{let i=o.id,s=or(document.body,i);if(!s)return;let c=s.parentElement;c&&(s.remove(),r?(c.innerHTML=_e.sanitize(`${r.message}`),Fa[i]={ok:!1,sentence:o}):u&&(c.innerHTML=_e.sanitize(u.text),Fa[i]={ok:!0,sentence:o}),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!r}})})))})}catch(r){throw r}finally{Dt("Translated")}}function $l(){Dt("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}g();var Kl={};async function vp(){let e=[...document.querySelectorAll("iframe")],t="";for(let a of e){let r=a.contentDocument;if(!r)continue;let u=r.body;if(u&&(t=t+u.innerText||"",t.length>1e3))break}let n=await Qe({text:t,pageLangs:["en"]});return an(n),n}async function kp(e){Dt("Translating"),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(Kl),n=[];for(let a of t){let r=Kl[a];if(r.error){let o=r.commonAncestorContainer.querySelector(`[${Uu}='${a}']`);o&&o.remove(),n.push(r)}}try{await Wo(n,e,e.config.translationMode)}catch{}finally{Dt("Translated")}}function Ap(){let e=[...document.querySelectorAll("iframe")];for(let t of e){let n=t.contentDocument;if(!n)continue;let a=n.querySelectorAll("."+Kt);for(let r of a)r.remove()}Dt("Original")}async function Sp(e){Dt("Translating");let t=hn(),n=[...document.querySelectorAll("iframe")],a=[],r=[];for(let i of n){let s=i.contentDocument;if(!s)continue;sr(s,e);let c=s.body;if(!c)continue;let l=cn(e);l.isModifyImage=!1,la({id:t,container:c,filterRule:l,onParagraph:p=>{a.push(p)}})}let u=No(e.config.translationServices[e.translationService]?.placeholderDelimiters),o=1;for(let i of a){let s=zo(i.flatNodes,{isPreWhitespace:i.isPreWhitespace||!1,delimiters:u,stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(l=>l.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)});if(!s)continue;i.variables=s?.variables||{},i.text=s?.text,i.id=(o++).toString();let c=await H0(i,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:u,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});c&&(r.push(c),Kl[c.id]=c)}a=[],document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await Wo(r,e,e.config.translationMode)}catch{}finally{Dt("Translated")}}g();var ry=new AbortController,{signal:uy}=ry,Ql=0,Zl=0,Gl=!1,Vl=0,bu=!1,Pa,Dp=0,_a=[];function ki(e,t){oy();let n=e,a=n.config,r=a.generalRule.mouseHoverHoldKey==="Off",u=a.generalRule.mouseHoverHoldKey==="Auto",o=bt(l=>{if(Gl==!1&&Math.abs(l.clientX-Ql)+Math.abs(l.clientY-Zl)>3&&(Vl<2?Vl+=1:Gl=!0),Ql=l.clientX,Zl=l.clientY,u||bu&&!Pa){let p=_p(n.rule,t);if(p){if(Xl(p))return;Mp(n,p)}}},u?700:300),i=l=>{let p=l.target;Xl(p)||Mp(n)},s=l=>{let p=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",f=Ye.getPressedKeyCodes();if(f.length>1&&Ye[p]&&(Dp=Date.now(),bu=!1),f.length===1&&Ye[p]){let m=Date.now();bu=!0,Pa&&clearTimeout(Pa),Pa=setTimeout(()=>{let d=Dp-m;d>0&&d<=150?bu=!1:i(l),Pa=void 0},150)}};if(_a.push(()=>{Pa&&clearTimeout(Pa)}),r)return;Yl("mousemove",o,t),_a.push(()=>{t.removeEventListener("mousemove",o)});function c(){Gl=!1,Vl=0,o.cancel()}if(u)Yl("blur",c,t),_a.push(()=>{t.removeEventListener("blur",c)});else{let l=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=["ctrl","alt","shift","cmd","command","option","control"];Yl("keyup",Lp,t),_a.push(()=>{t.removeEventListener("keyup",Lp)}),p.includes(l)?Ye("*","mouseHover",s):Ye(a.generalRule.mouseHoverHoldKey,"mouseHover",i),Ye.setScope("mouseHover"),_a.push(()=>{Ye.deleteScope("mouseHover")})}}function oy(){_a.forEach(e=>e()),_a=[]}function Lp(e){bu=!1}function Yl(e,t,n=window){return n.addEventListener(e,t,{signal:uy})}function Mp(e,t,n=window){if(t=t||_p(e.rule,n),!t){N.debug("can not find selection part!");return}if(Xl(t)){N.debug("exclude dom");return}I3(e,t);let a=Go();a?.currentUrl!==window.location.href&&(Nn(),$0(e)),a&&(a.setupMouseHoverListener=ki);let r=cn(e);r.excludeSelectors=[],r.selectors=[];let u=!1;la({id:a.id,container:t,filterRule:r,force:!0,onParagraph:o=>{iu(a,o,!0).then(i=>{if(i&&!u){u=!0;let s=Date.now();Ue(b4,s),$e("mouse_hover_translate",[{name:"mouse_hover_translate"}],{...e,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function _p(e,t){return iy(Ql,Zl,e,t)}function iy(e,t,n,a){let r=i3(e,t,n,a);if(r==null)return;let u=()=>{let s=a.document.elementFromPoint(e,t);if(!s)return;let c=s3(s,e,t);return c===s?s.nodeName==="BUTTON"?s:void 0:Pp(c,n)},o=()=>{try{r.setStartBefore(r.startContainer),r.setEndAfter(r.startContainer)}catch(c){N.debug("get mouse over word fail",c)}let s=r.getBoundingClientRect();if(!(s.left>e||s.rightt||s.bottomn[l]=[l,...n[l]||[]]);let a=t.inputStartingTriggerKeyAlias[t.inputStartingTriggerKey]||[];a.includes(t.inputStartingTriggerKey)||a.unshift(t.inputStartingTriggerKey),n[t.inputTargetLanguage]=[...a,...n[t.inputTargetLanguage]];let r=t.inputTrailingTriggerKeyTimeout;Kn().any&&(r=t.inputTrailingMobileTriggerKeyTimeout);let u={triggerTimes:t.inputTrailingTriggerKeyRepeatTimes,triggerKey:t.inputTrailingTriggerKey,triggerTimeout:r,codePrefix:t.inputStartingTriggerKey,codeAlias:n,flatAlias:Object.values(n).flat(),codePrefixAlias:t.inputStartingTriggerKeyAlias},o=0,i=Date.now();Ai&&self.removeEventListener("keydown",Ai),Ai=s,self.addEventListener("keydown",Ai);function s(l){if(Er||Si===!1)return;let p=l,f=p.target||p.srcElement,m=f?.tagName;(f?.isContentEditable||m=="INPUT"||m=="SELECT"||m=="TEXTAREA")&&(ky(l,u.triggerKey,u.codePrefixAlias)?c(l):o=0)}async function c(l){Date.now()-i=u.triggerTimes&&my()&&(o=0,dy(l,e,u))}Ay(e)}function sy({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let a=[],r=n[e]||[];r.includes(e)||r.unshift(e);for(let u of r){let o=t.map(i=>{let s=u+i;return r.includes(i)||(s+=" "),s});a.push(...o)}return new RegExp(a.join("|"))}function Rp(e,t){for(let[n,a]of Object.entries(t))if(a.includes(e))return n;return""}var xr;function ly(e){let t=e.parentElement;if(!t)return;xr=document.createElement("div"),xr.className=J+"-input",xr.innerHTML=`
`,t.appendChild(xr);let n=t,a=!1;do{let r=getComputedStyle(n).position;if(["fixed","absolute","relative"].includes(r)){a=!0;break}n=n.parentElement}while(n);if(n=t,!a)do{if(getComputedStyle(n).position==="static"){n.style.position="relative";break}n=n?.parentElement||null}while(n)}function cy(){xr&&xr.remove()}async function dy(e,t,n){if(!Er)try{let f=function(){i=t.config.inputTargetLanguage;let d=o.split(" ")[0];d&&d[0]&&(d=d[0].toLowerCase()+d.slice(1)),d.trim()&&n.flatAlias.includes(d)?(i=Rp(d,n.codeAlias),u=o.slice(d.length+1)):u=o},m=function(){i="";let d=sy(n),h=o.split(d);if(h.length<2)return;if(u=h[h.length-1],r=h[0],h.length>2){let b=o.lastIndexOf(u),C=o.slice(0,b).lastIndexOf(h[h.length-2]);r=o.slice(0,C+h[h.length-2].length)}if(r.endsWith(n.codePrefix))return;let T=o.slice(r.length+1,o.indexOf(u)).trim();if(i=Rp(T,n.codeAlias),!i){N.warn("not found alias",T);return}},a=document.activeElement;Er=!0;let r="",u="",o=Tr(a)||"",i=t.config.inputTargetLanguage;n.codePrefix==="none"?f():(m(),!i&&t.config.enableInputTranslationWithoutTriggerKey&&f());let s=py(u,n),c=await Qe({text:s,pageLangs:["en"]});N.debug("translateContent",s,c);let l={text:s||"",id:0,from:c,to:i,url:"https://google.com",fromByClient:c};if(!l.text)return;if(t.config.isShowInputTranslationConsent&&!Bp){Bp=!0;let d=await Sy(t);if(e.target&&e.target.focus(),d==="open_settings"){Va(!0,"#input");return}else if(d==="open_learn_more"){bo("https://immersivetranslate.com/docs/input/");return}else if(d==="disable_once"||d==="disable_forever"){if(Si=!1,d==="disable_forever"){let h=await on();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await un(h)}else if(d==="disable_once"){let h=await on();h.isShowInputTranslationConsent=!1,await un(h)}return}else if(d==="close_disable_once"||d==="close_disable_forever"){if(Si=!1,d==="close_disable_forever"){let h=await on();h.enableInputTranslation=!1,h.isShowInputTranslationConsent=!1,await un(h)}return}else if(d==="enable"){let h=await on();h.enableInputTranslation=!0,h.isShowInputTranslationConsent=!1,await un(h)}else if(d==="close_enable"){let h=await on();h.enableInputTranslation=!0,await un(h)}}ly(a),Ue(ss,Date.now());let p=await Sa(l,{...t,translationService:t.inputTranslationService});vy(t),wy(a,r+p.text),Er=!1}catch(a){throw Er=!1,a}finally{Er=!1,cy()}}function my(){let e=document.activeElement;if(!e)return!1;if(Di(e)){let t=e.selectionStart||0,n=e.value.length,r=e.value.split(` +`).reverse()[0].trim(),u=n<=t;return N.debug("cursorPosition",t,"textLength",n),N.debug("input isTail",u,"tailHasText",r),u&&!!r}else{let t=window.getSelection();if(!t)return N.debug("No active selection found."),!1;if(t.rangeCount>0){let n=t.getRangeAt(0),a=n.startContainer;if(a.nodeType===Node.TEXT_NODE){let r=gy(a,e);N.debug("Current text node:",a.textContent),N.debug("Cursor position within text node:",n.startOffset);let u=a.textContent?.length===n.startOffset&&r,o=a.textContent?.trim();return N.debug("editdiv isTail",u,"tailHasText",o),u&&!!o}else N.debug("Cursor is not within a text node.")}}return!1}function gy(e,t){let n;function a(r){if(r.nodeType===Node.TEXT_NODE)n=r;else for(let u of r.childNodes)a(u)}return a(t),n==e}function py(e,t){let{triggerTimes:n,triggerKey:a}=t,r=0,u=" ";a.length==1?(r=n,u=a):a.toLowerCase()=="space"&&(r=n);let o=e.length;for(let i=e.length-1;i>=e.length-r;i--){if([10,8629].includes(e[i].charCodeAt(0))){o--;continue}if(![...t.codePrefixAlias[a]||[],u].includes(e[i]))break;o--}return e.length-o<3&&[".","\u3002"].includes(e[o-1])&&o--,e.slice(0,o)}function fy(e,t){let n=t.innerHTML,a=Tr(t);return{html:n.replace(a,e),text:e}}function Op(e,t,n=!1){let a=Tr(t);return n?a.trim().endsWith(e.text.trim()):a.trim()==e.text.trim()}function Tr(e){return e.value||e.innerText||e.textContent}async function Ba(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function hy(e,t,n){await Ba(10);let a=new DataTransfer;e.forEach(r=>{r==="plain"&&a.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:a,bubbles:!0,cancelable:!0})),a.clearData(),await Ba(10)}async function by(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await Ba(10))}async function yy(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await Ba(20),(t.value||t.value==="")&&(t.value=e.text)}async function Ey(e,t){Di(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await Ba(20))}var xy=[hy.bind(null,["plain"])];function Ty(e){let t;Di(e)?t=new InputEvent("beforeinput",{bubbles:!0,cancelable:!0,inputType:"deleteContent"}):t=new KeyboardEvent("keydown",{bubbles:!0,cancelable:!0,keyCode:8,which:8,location:0,key:"Backspace"}),e.dispatchEvent(t)}function Di(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function Cy(e){if(Di(e))return;e.focus();let t=window.getSelection();if(!t)return;let n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}async function wy(e,t){await Cy(e),await Ba(50);let n=fy(t,e);Ty(e),N.debug("clearContent",Tr(e)),await Ba(50);for(let a of[...xy,yy,Ey,by])if(await a(n,e),N.debug("setContent",a.name,Op(n,e),Tr(e),n),Op(n,e))break}function vy(e){$e("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage}}],e)}function ky(e,t,n){let a="";e&&e.code&&(a=e.code.toLowerCase());let r="";e&&e.key&&(r=e.key.toLowerCase());let u=e.keyCode,o=n[t]||[];return u===229&&t!=="space"?!1:!!(o.includes(a)||o.includes(r)||a===t||r===t)}async function Ay(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await St(t,"")||Number(await St(ss,0))>0)return;let r=e.rule.inputTutorialsSelectors,u=e.rule.inputTutorialsText;if((r?.length||0)>0&&u)for(let o=0;o{Ly()},100),new Promise(c=>{let l=c;if(u){let S=u.querySelector(`.${n}`),P=u.querySelector(`.${r}`),M=u.querySelector(`.${a}`)}else{u=document.createElement("div"),u.className=t+" notranslate",u.id=t;let S=document.createElement("div");S.className=J+"-modal-content notranslate",u.appendChild(S);let P=document.createElement("span");P.textContent="\xD7",P.className=J+"-close",S.appendChild(P),o=document.createElement("div"),o.className=n+" notranslate",S.appendChild(o),s=document.createElement("div"),s.className=a+" notranslate",S.appendChild(s),i=document.createElement("div"),i.className=r,S.appendChild(i),document.body.appendChild(u),P.onclick=function(){w(),c("close")},window.onclick=function(M){M.target==u&&(u.style.display="none",c("close"))}}document.addEventListener("keydown",y);let p=Dy.bind(null,e);o.innerHTML=`
${si} ${p("modalEnableInputTranslationTitle")}
`,s.innerHTML="";let f=document.createElement("p");f.innerHTML=p("modalEnableInputTranslationDesc",{1:"https://immersivetranslate.com/docs/input/"}),f.style.cssText="margin-bottom:12px",s.appendChild(f);let m=document.createElement("div");m.style.cssText="margin-bottom: 12px;",m.innerHTML=_e.sanitize(p("disableInputTranslationTips",{option:`${p("option")}`,learnMore:`${p("learnMore")}`})),s.appendChild(m);let d=[{id:"enable-search-enhancement",value:"enable",text:p("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:p("disableOnce")},{id:"disable-global",value:"global",text:p("disableGlobal")}];for(let S=0;S{ua({sentences:r},{...e,translationService:"google"},(s,c,l)=>{if(s)return o([]);let p=c?.id||0,f=n[p];f&&f.className==J+"-search-title-wrapper"&&(f.innerHTML+=_e.sanitize(`
${c?.text}
`,{ADD_ATTR:["target"]}))})})}function Li(e,t,n){t&&$e(t.key,[{name:t.key}],{...e,sourceLanguage:t.sourceLanguage||n})}function tc(e,t,n,a){let r=n.querySelectorAll('[translate="true"]');return My(e,t,[...r],a),n}async function nc(e,t){let a=(await oe({url:Fy(e),method:"GET",responseType:"raw",headers:{"cache-control":"no-cache","content-type":"application/xml","Sec-Fetch-Site":"none",accept:"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}})).body,u=new DOMParser().parseFromString(a,"text/xml"),o=[],i=u.querySelectorAll("item");for(let s=0;s${e.cancelDescription}
`:""}

\u82F1\u6587\u641C\u7D22 ${n} \u7684\u76F8\u5173\u65B0\u95FB:

${o}
`.replaceAll(` -`,""),{ADD_ATTR:["target"]});let c=r.querySelector(`.${J}-search-more`);return c&&(c.onclick=()=>{let l=r.querySelector(`.${J}-expand-items`);l.style.display=="none"?(l.style.display="block",c.innerText="\u66F4\u591A\u76F8\u5173\u65B0\u95FB"):window.open(Ip(n))}),r}function Op(e,t){let n=e.style;return t.map((a,r)=>{let u=a.title||"",o=a.source||"",i=u.split("-");return i.length>1&&(o=i[i.length-1].trim(),i=i.slice(0,i.length-1)),u=i.join("-"),u=u.trim(),`
${o}
+`,""),{ADD_ATTR:["target"]});let c=r.querySelector(`.${J}-search-more`);return c&&(c.onclick=()=>{let l=r.querySelector(`.${J}-expand-items`);l.style.display=="none"?(l.style.display="block",c.innerText="\u66F4\u591A\u76F8\u5173\u65B0\u95FB"):window.open(Ip(n))}),r}function Np(e,t){let n=e.style;return t.map((a,r)=>{let u=a.title||"",o=a.source||"",i=u.split("-");return i.length>1&&(o=i[i.length-1].trim(),i=i.slice(0,i.length-1)),u=i.join("-"),u=u.trim(),`
${o}
-
${g3(a.pubDate||"")}
+
${p3(a.pubDate||"")}
`}).join(` -`)}function jp(e,t){if(!e.keyword)return;let n=e.keyword.value||"";for(let a=0;anew RegExp(a.urlMatch).test(t))}async function zp(e){if(Kn().any)return;if(!e.rule.enableSearchEnhancement){N.debug("enable is false");return}let t=Py(e.rule.searchEnhancementConfig||[],e.url);if(!t){N.debug("not found siteConfig",e.url);return}let n=jp(t,e.url);if(!n){N.debug("not found keyword",e.url);return}t.id=="google"?By(e,t,n):_y(e,t,n)}async function _y(e,t,n){let a=await Qe({text:document.title,pageLangs:[pt(),"en"]});t.selector&&setTimeout(async()=>{let r=document.querySelector(t.selector);if(!r){N.debug("selector node not found",t.selector);return}let u=await nc(n,t.showCount);if(u&&u.length<=0){N.debug("list not found");return}let o=await ac(t,u,n,t.showCount);if(!o){N.debug("getInseredNode none");return}o.style.cssText=t.style.container||"";let i=t.selectorAction||"appendChild";i=="insertBefore"?r.parentElement?.insertBefore(o,r):i=="appendChild"?r.appendChild(o):i=="replace"&&r?.replaceWith(o),tc(e,t,o,a),Li(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a)},t.delayTime||0)}async function By(e,t,n){let a=await Qe({text:n,pageLangs:["en"]});if(Li(e,{key:"detect_search_action"},a),!["zh-CN","zh-TW"].includes(a))return;N.debug("use dual search");let r=!1;if(new URL(e.url).searchParams.get("tbm")==="nws")r=!0;else if(!Up(document.body))return;let o=document.querySelector("#rhs");if(!o){let i=document.querySelector("#rcnt");if(!i)return;let s=i.children;if(s&&s.length>1)o=s[1];else{let c=s[0];o=document.createElement("div"),o.id="rhs",o.style.maxWidth="372px",o.style.marginLeft="50px",i.insertBefore(o,c.nextSibling)}}if(r||Up(document.body)){N.debug("find story");let i=await Np(e,n,a);N.debug("enKeyword",i);let s=await nc(i,t.showCount);if(N.debug("news list",s),s&&s.length<=0)return;let c=await ac(t,s,i,t.showCount);if(!c)return;Li(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a),tc(e,t,c,a),o.insertBefore(c,o?.firstChild)}}function Up(e){let t=e.querySelectorAll("[aria-level='2'][role=heading]");if(!t)return!1;for(let n of t){let a=(n?.textContent||"").trim();if(a.indexOf("\u7126\u70B9\u65B0\u95FB")>=0||a.indexOf("\u7126\u9EDE\u65B0\u805E")>=0||a.indexOf("Top stories")>=0)return!0}return!1}g();function Hp(e){e.state.translationMode="translation",dr(e)}var we=null,Mi={},Cr,qp=!1;async function co(e){if(We()==="Original"){let t={translationMode:void 0};Cr&&(t.translationTheme=Cr),we&&(t={...we.state,...t}),await wt(Ze(),t),await rn(we,e)}else(We()==="Translated"||We()==="Error")&&Ta()}async function mo(){if(we=await wt(Ze(),{}),we.rule.isEbookBuilder)return vp(we);if(we.rule.isSubtitleBuilder)return Cp(we);N3()}async function go(e){if(We()==="Original")we=await wt(Ze(),{}),Cr||(Cr=we.state.translationTheme),we=await wt(Ze(),{translationTheme:"mask"}),await rn(we,e);else if(We()==="Translated"){let t=c3().filter(r=>r.contentDocument?.body).map(r=>r.contentDocument.body),n=[we.mainFrame,...t],a=we?.state.translationTheme;for(let r of n){let u=ar(r,za,!0);a==="mask"?u!=="none"?at(r,za,"none",!0):at(r,za,"mask",!0):u!=="mask"?at(r,za,"mask",!0):at(r,za,"none",!0)}}}async function Ps(){let e=await wt(Ze(),{});return e.rule.isSubtitleBuilder?Wl():O3(e)}function Ry(e){We()==="Original"?Hp(e):Nn()}function Iy(e){We()==="Original"?Tp(e):$l()}function Oy(e){We()==="Original"?dr(e):Nn()}async function Ta(){Rs("");let e=await wt(Ze(),{});if(e.rule.isSubtitleBuilder){$l();return}else e.rule.isEbookBuilder&&kp();Nn()}async function rn(e,t){We()!=="Original"&&await Ta(),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"translateStart",payload:{}})})),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"targetLanguage",payload:{targetLanguage:e.targetLanguage}})})),Mi[e.translationService]||(Mi[e.translationService]=!0,Je()||E0(e).catch(a=>{N.warn("init translation engine error",a)}));let n={};if(t&&t.trigger&&(n.trigger=t.trigger),$e("translage_page_daily",[{name:"translage_page_daily",params:n}],e),$e("translate_page",[{name:"translate_page",params:n}],{...e,sourceLanguage:pt()}),e.rule.isSubtitleBuilder)return Iy(e);if(e.rule.isEbookBuilder)return Ap(e);if(e.rule.isPdf)return Ry(e);Oy(e),Rs("yes")}async function Cd(e){We()==="Original"?await po(e):(We()==="Translated"||We()==="Error")&&(we=await wt(Ze(),{}),we.state.translationArea!=="main"?await po(e):Ta())}async function po(e){we=await wt(Ze(),{translationArea:"main"}),await rn(we,e)}async function _s(e){we=await wt(Ze(),{translationArea:"body"}),await rn(we,e)}async function fo(e){if(We()==="Original"){let t=await wt(Ze(),{translationMode:"translation"});await rn(t,e)}else(We()==="Translated"||We()==="Error")&&await Ta()}async function wd(e){if(we=await wt(Ze(),{translationMode:void 0}),$e("switch_translation_mode",[{name:"switch_translation_mode",params:{mode:e}}],{...we,sourceLanguage:"unknown"}),We()==="Original"){rn(we);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(e)}async function vd(e){if(We()==="Original")await _s(e);else if(We()==="Translated"||We()==="Error"){let t={};we&&we.state&&(t=we.state),we=await wt(Ze(),t),we.state.translationArea!=="body"?(we.state.translationArea="body",we=await wt(Ze(),we.state),await rn(we,e)):Ta()}}async function kd(e){we=await wt(Ze(),{translationStartMode:"immediate"}),await rn(we,e)}async function Wp(){let e=await wt(Ze(),{});if(!sn(e.url,e.config.inputStyleBlockUrls)){let n=Re().IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS;ia(document,n,"immersive-translate-input-injected-css")}e.rule.isPdf||e.rule.isSubtitleBuilder||e.rule.isEbookBuilder||e.rule.isEbook||e.config.enableInputTranslation&&ec(e)}async function vi(){let e=await wt(Ze(),{});if(N.debug("init page ctx",e),e.rule.isSubtitleBuilder){Wl();return}if(e.rule.isEbookBuilder){wp();return}if(zp(e),Cr||(Cr=e.state.translationTheme),e.rule.urlChangeDelay&&await kr(e.rule.urlChangeDelay),e.rule.waitForSelectors&&e.rule.waitForSelectors.length>0&&await Ny(e.rule.waitForSelectors,e.rule.waitForSelectorsTimeout),e.rule.isInjectOptionsUrl){let a=_d(),r=document.createElement("meta");r.name="immersive-translate-options-url",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(u){N.warn("inject options url failed",u)}}if(e.rule.isInjectVersion){let a=nn(),r=document.createElement("meta");r.name="immersive-translate-version",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(u){N.warn("inject version failed",u)}}if(e.rule.globalMeta&&Object.keys(e.rule.globalMeta).forEach(r=>{let u=document.createElement("meta");u.name=r,u.content=e.rule.globalMeta[r],document.head.appendChild(u)}),e.rule.initialGlobalAttributes&&h3(document.body,e.rule.initialGlobalAttributes),e.rule.isPdf){rn(e);return}if(e.rule.isOnBoardingPage){document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"currentConfig",payload:{enableDefaultAlwaysTranslatedUrls:!!e.config.enableDefaultAlwaysTranslatedUrls}})}));let a=document.querySelector("#immersiveTranslateEnableDefaultAlwaysTranslatedUrlsValue");a&&(a.value="helloworld",a.value=String(!!e.config.enableDefaultAlwaysTranslatedUrls),a.dispatchEvent(new Event("change")))}qp||(qp=!0,globalThis.top!==globalThis.self&&e.rule.useIframePostMessage&&await Kd());let t=e.sourceLanguage;if(t==="auto"?t=await Ps():an(t),e.rule.isInjectMeta)try{let a=await p3(t),r=document.createElement("meta");r.name="immersive-translate-meta",r.content=zi(JSON.stringify(a)),document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(a){N.warn("inject meta failed",a)}let n=e.state.isAutoTranslate||e.isTranslateUrl||e.rule.isPdf;if(!n&&!e.isTranslateExcludeUrl&&(N.debug(`detect page language: ${e.url} ${t}`),Xn(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto"||Gd(t,e.config.translationLanguagePattern)&&(n=!0,N.debug(`match language pattern ${t}, auto translate`))),e.rule.isEbookBuilder&&(n=!1),!e.rule.isPdf&&Or()&&ki(e,window),n)we.state.isAutoTranslate=!0,rn(we);else if(N.debug("do not auto translate",e),e.rule.initTranslationServiceAsSoonAsPossible&&e.translationService==="deepl"){if(Xn(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto")return;e.config&&e.config.translationServices&&e.config.translationServices.deepl&&e.config.translationServices.deepl.authKey&&typeof e.config.translationServices.deepl.authKey=="string"&&e.config.translationServices.deepl.authKey.startsWith("immersive_")&&(Mi[e.translationService]||(Mi[e.translationService]=!0,Je()||E0(e).catch(a=>{N.warn("init translation engine error",a)})))}}async function wt(e,t){let n=Object.keys(t);if(we){let a={url:e,config:we.config,state:{...we.state,...t}};we=await ln(a)}else{let a=await Lt(),r=t;n.length===0&&(r=void 0),we=await ln({url:e,config:a,state:r})}return we}async function Ad(){let e=await Lt(),t;we&&we.state&&(t=we.state);let n={url:Ze(),config:e,state:t},a=await ln(n);we=a;let r=Go(),u=[];return r?u=r.allInlineWindows||[window]:u=[window],u.forEach(o=>{bu(a,o),Or()&&ki(a,o),ec(a)}),a}function Ny(e,t=3e3){return new Promise((n,a)=>{let r=t?setTimeout(()=>{n(new Error("timeout"))},t):void 0,u=setInterval(()=>{e.every(i=>document.querySelector(i)!==null)&&(clearInterval(u),r&&clearTimeout(r),n(null))},50)})}async function yp(e){let t=e.detail;Nt.set(en,t);let n=await Nt.get(ms,!1);Nt.set(ms,!1),document.dispatchEvent(new CustomEvent("immersiveTranslateDocumentMessageUserResult",{detail:n?"close":"success"}))}function Ep(e){N.debug("update user info",e);let t=e.detail;Nt.set(en,t)}async function xp(e){let t=await on();if(t.translationService)return;let n=e.config.translationService,a=["bing","transmart","google"];a.sort((u,o)=>u===n?-1:o===n?1:0);let r=await Ym(a,e);if(!r){Hr("no_avaliable_translation_service",[{name:"no_avaliable_translation_service"}]);return}e.translationService!==r&&(t.translationService=r,un(t),e.translationService=r,Hr("change_default_translation_service",[{name:"change_default_translation_service",params:{translation_service:r}}]))}async function $p(e){if(!e){let n=await Lt();e=await ln({config:n,url:Ze()})}e.config.debug?N.setLevel("debug"):N.setLevel("info"),globalThis.top!=globalThis.self||await sp().catch(n=>{N.error(`init popup page error: ${n}`)}),e.isTranslateExcludeUrl||(e.rule.isEbook||e.rule.isEbookBuilder||await vi(),globalThis.top===globalThis.self&&xg()),await Wp()}g();var Eu={capture:!0,once:!0,passive:!0},Vp=()=>document.readyState==="interactive"||document.readyState==="complete",jy=e=>document.readyState===e,xu=(e,t)=>jy(e)||Vp()?(t(e),!0):!1,Uy=()=>new Promise(e=>{xu("loading",e)||document.addEventListener("readystatechange",()=>{document.readyState==="loading"&&e("loading")},Eu)}),zy=()=>new Promise(e=>{xu("interactive",e)||document.addEventListener("readystatechange",()=>{document.readyState==="interactive"&&e("interactive")},Eu)}),Hy=()=>new Promise(e=>{xu("complete",e)||document.addEventListener("readystatechange",()=>{document.readyState==="complete"&&e("complete")},Eu)}),Kp=()=>new Promise(e=>{xu("domready",e)||document.addEventListener("DOMContentLoaded",()=>{e("domready")},Eu)}),Gp=()=>new Promise(e=>{xu("load",e)||window.addEventListener("load",()=>{e("load")},Eu)}),Yp={};Object.defineProperties(Yp,{state:{get:function(){return document.readyState}},loading:{get:function(){return Uy()}},interactive:{get:function(){return zy()}},complete:{get:function(){return Hy()}},window:{get:function(){return Gp()}},load:{get:function(){return Gp()}},domready:{get:function(){return Kp()}},dom:{get:function(){return Kp()}},ready:{get:function(){return Vp()}}});var Jp=Yp;g();g();var Qp={NOT_FUNCTION:"Your executor is not a function. functions and promises are valid.",FAILED_TO_WAIT:"Failed to wait"};function qy(e){return()=>Promise.resolve().then(()=>e()).catch(t=>{throw t})}function Wy(e){if(typeof e!="function")throw new Error(Qp.NOT_FUNCTION)}var rc=class{_interval;_timeout;_stopOnFailure;_backoffFactor;_backoffMaxInterval;_Console;originalStacktraceError;_userMessage;_verbose;_isWaiting;_isResolved;_executeFn;start;promise;resolve;reject;_lastError;constructor({interval:t=100,timeout:n=1e3,stopOnFailure:a=!1,verbose:r=!1,backoffFactor:u=1,backoffMaxInterval:o,message:i=""}={}){this._interval=t,this._timeout=n,this._stopOnFailure=a,this._isWaiting=!1,this._isResolved=!1,this._verbose=r,this._userMessage=i,this.originalStacktraceError=new Error,this._Console=console,this._backoffFactor=u,this._backoffMaxInterval=o||n,this.start=+Date.now()}tryEvery(t){return this._interval=t,this}stopAfter(t){return this._timeout=t,this}execute(t){return this._applyPromiseHandlers(),Wy(t),this._executeFn=qy(t),this.start=Date.now(),this._isWaiting=!0,this._log("starting to execute"),this._runFunction(),this.promise}getPromise(){return this.promise}isResolved(){return this._isResolved}isWaiting(){return this._isWaiting}stopOnFailure(t){return this._stopOnFailure=t,this}_applyPromiseHandlers(){this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}_timeFromStart(){return Date.now()-this.start}_shouldStopTrying(){return this._timeFromStart()>this._timeout}_executeAgain(){this._log("executing again");let t=this._interval,n=t*this._backoffFactor;this._interval=n>this._backoffMaxInterval?this._backoffMaxInterval:n,setTimeout(this._runFunction.bind(this),t)}_failedToWait(){let t=`${Qp.FAILED_TO_WAIT} after ${this._timeFromStart()}ms`;if(this._userMessage&&(t=`${t}: ${this._userMessage}`),this._lastError){this._lastError.message=`${t} +`)}function Up(e,t){if(!e.keyword)return;let n=e.keyword.value||"";for(let a=0;anew RegExp(a.urlMatch).test(t))}async function Hp(e){if(Kn().any)return;if(!e.rule.enableSearchEnhancement){N.debug("enable is false");return}let t=Py(e.rule.searchEnhancementConfig||[],e.url);if(!t){N.debug("not found siteConfig",e.url);return}let n=Up(t,e.url);if(!n){N.debug("not found keyword",e.url);return}t.id=="google"?By(e,t,n):_y(e,t,n)}async function _y(e,t,n){let a=await Qe({text:document.title,pageLangs:[pt(),"en"]});t.selector&&setTimeout(async()=>{let r=document.querySelector(t.selector);if(!r){N.debug("selector node not found",t.selector);return}let u=await nc(n,t.showCount);if(u&&u.length<=0){N.debug("list not found");return}let o=await ac(t,u,n,t.showCount);if(!o){N.debug("getInseredNode none");return}o.style.cssText=t.style.container||"";let i=t.selectorAction||"appendChild";i=="insertBefore"?r.parentElement?.insertBefore(o,r):i=="appendChild"?r.appendChild(o):i=="replace"&&r?.replaceWith(o),tc(e,t,o,a),Li(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a)},t.delayTime||0)}async function By(e,t,n){let a=await Qe({text:n,pageLangs:["en"]});if(Li(e,{key:"detect_search_action"},a),!["zh-CN","zh-TW"].includes(a))return;N.debug("use dual search");let r=!1;if(new URL(e.url).searchParams.get("tbm")==="nws")r=!0;else if(!zp(document.body))return;let o=document.querySelector("#rhs");if(!o){let i=document.querySelector("#rcnt");if(!i)return;let s=i.children;if(s&&s.length>1)o=s[1];else{let c=s[0];o=document.createElement("div"),o.id="rhs",o.style.maxWidth="372px",o.style.marginLeft="50px",i.insertBefore(o,c.nextSibling)}}if(r||zp(document.body)){N.debug("find story");let i=await jp(e,n,a);N.debug("enKeyword",i);let s=await nc(i,t.showCount);if(N.debug("news list",s),s&&s.length<=0)return;let c=await ac(t,s,i,t.showCount);if(!c)return;Li(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a),tc(e,t,c,a),o.insertBefore(c,o?.firstChild)}}function zp(e){let t=e.querySelectorAll("[aria-level='2'][role=heading]");if(!t)return!1;for(let n of t){let a=(n?.textContent||"").trim();if(a.indexOf("\u7126\u70B9\u65B0\u95FB")>=0||a.indexOf("\u7126\u9EDE\u65B0\u805E")>=0||a.indexOf("Top stories")>=0)return!0}return!1}g();function qp(e){e.state.translationMode="translation",dr(e)}var we=null,Mi={},Cr,Wp=!1;async function lo(e){if(We()==="Original"){let t={translationMode:void 0};Cr&&(t.translationTheme=Cr),we&&(t={...we.state,...t}),await wt(Ze(),t),await rn(we,e)}else(We()==="Translated"||We()==="Error")&&Ca()}async function co(){if(we=await wt(Ze(),{}),we.rule.isEbookBuilder)return kp(we);if(we.rule.isSubtitleBuilder)return wp(we);j3()}async function mo(e){if(We()==="Original")we=await wt(Ze(),{}),Cr||(Cr=we.state.translationTheme),we=await wt(Ze(),{translationTheme:"mask"}),await rn(we,e);else if(We()==="Translated"){let t=d3().filter(r=>r.contentDocument?.body).map(r=>r.contentDocument.body),n=[we.mainFrame,...t],a=we?.state.translationTheme;for(let r of n){let u=ar(r,Ha,!0);a==="mask"?u!=="none"?at(r,Ha,"none",!0):at(r,Ha,"mask",!0):u!=="mask"?at(r,Ha,"mask",!0):at(r,Ha,"none",!0)}}}async function Ps(){let e=await wt(Ze(),{});return e.rule.isSubtitleBuilder?Wl():N3(e)}function Ry(e){We()==="Original"?qp(e):Nn()}function Oy(e){We()==="Original"?Cp(e):$l()}function Iy(e){We()==="Original"?dr(e):Nn()}async function Ca(){Rs("");let e=await wt(Ze(),{});if(e.rule.isSubtitleBuilder){$l();return}else e.rule.isEbookBuilder&&Ap();Nn()}async function rn(e,t){We()!=="Original"&&await Ca(),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"translateStart",payload:{}})})),document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"targetLanguage",payload:{targetLanguage:e.targetLanguage}})})),Mi[e.translationService]||(Mi[e.translationService]=!0,Je()||E0(e).catch(a=>{N.warn("init translation engine error",a)}));let n={};if(t&&t.trigger&&(n.trigger=t.trigger),$e("translage_page_daily",[{name:"translage_page_daily",params:n}],e),$e("translate_page",[{name:"translate_page",params:n}],{...e,sourceLanguage:pt()}),e.rule.isSubtitleBuilder)return Oy(e);if(e.rule.isEbookBuilder)return Sp(e);if(e.rule.isPdf)return Ry(e);Iy(e),Rs("yes")}async function wd(e){We()==="Original"?await go(e):(We()==="Translated"||We()==="Error")&&(we=await wt(Ze(),{}),we.state.translationArea!=="main"?await go(e):Ca())}async function go(e){we=await wt(Ze(),{translationArea:"main"}),await rn(we,e)}async function _s(e){we=await wt(Ze(),{translationArea:"body"}),await rn(we,e)}async function po(e){if(We()==="Original"){let t=await wt(Ze(),{translationMode:"translation"});await rn(t,e)}else(We()==="Translated"||We()==="Error")&&await Ca()}async function vd(e){if(we=await wt(Ze(),{translationMode:void 0}),$e("switch_translation_mode",[{name:"switch_translation_mode",params:{mode:e}}],{...we,sourceLanguage:"unknown"}),We()==="Original"){rn(we);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(e)}async function kd(e){if(We()==="Original")await _s(e);else if(We()==="Translated"||We()==="Error"){let t={};we&&we.state&&(t=we.state),we=await wt(Ze(),t),we.state.translationArea!=="body"?(we.state.translationArea="body",we=await wt(Ze(),we.state),await rn(we,e)):Ca()}}async function Ad(e){we=await wt(Ze(),{translationStartMode:"immediate"}),await rn(we,e)}async function $p(){let e=await wt(Ze(),{});if(!sn(e.url,e.config.inputStyleBlockUrls)){let n=Re().IMMERSIVE_TRANSLATE_INPUT_INJECTED_CSS;ia(document,n,"immersive-translate-input-injected-css")}e.rule.isPdf||e.rule.isSubtitleBuilder||e.rule.isEbookBuilder||e.rule.isEbook||e.config.enableInputTranslation&&ec(e)}async function vi(){let e=await wt(Ze(),{});if(N.debug("init page ctx",e),e.rule.isSubtitleBuilder){Wl();return}if(e.rule.isEbookBuilder){vp();return}if(Hp(e),Cr||(Cr=e.state.translationTheme),e.rule.urlChangeDelay&&await kr(e.rule.urlChangeDelay),e.rule.waitForSelectors&&e.rule.waitForSelectors.length>0&&await Ny(e.rule.waitForSelectors,e.rule.waitForSelectorsTimeout),e.rule.isInjectOptionsUrl){let a=Bd(),r=document.createElement("meta");r.name="immersive-translate-options-url",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(u){N.warn("inject options url failed",u)}}if(e.rule.isInjectVersion){let a=nn(),r=document.createElement("meta");r.name="immersive-translate-version",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(u){N.warn("inject version failed",u)}}if(e.rule.globalMeta&&Object.keys(e.rule.globalMeta).forEach(r=>{let u=document.createElement("meta");u.name=r,u.content=e.rule.globalMeta[r],document.head.appendChild(u)}),e.rule.initialGlobalAttributes&&b3(document.body,e.rule.initialGlobalAttributes),e.rule.isPdf){rn(e);return}if(e.rule.isOnBoardingPage){document.dispatchEvent(new CustomEvent(yt,{detail:JSON.stringify({type:"currentConfig",payload:{enableDefaultAlwaysTranslatedUrls:!!e.config.enableDefaultAlwaysTranslatedUrls}})}));let a=document.querySelector("#immersiveTranslateEnableDefaultAlwaysTranslatedUrlsValue");a&&(a.value="helloworld",a.value=String(!!e.config.enableDefaultAlwaysTranslatedUrls),a.dispatchEvent(new Event("change")))}Wp||(Wp=!0,globalThis.top!==globalThis.self&&e.rule.useIframePostMessage&&await Gd());let t=e.sourceLanguage;if(t==="auto"?t=await Ps():an(t),e.rule.isInjectMeta)try{let a=await f3(t),r=document.createElement("meta");r.name="immersive-translate-meta",r.content=zi(JSON.stringify(a)),document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(a){N.warn("inject meta failed",a)}let n=e.state.isAutoTranslate||e.isTranslateUrl||e.rule.isPdf;if(!n&&!e.isTranslateExcludeUrl&&(N.debug(`detect page language: ${e.url} ${t}`),Xn(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto"||Vd(t,e.config.translationLanguagePattern)&&(n=!0,N.debug(`match language pattern ${t}, auto translate`))),e.rule.isEbookBuilder&&(n=!1),!e.rule.isPdf&&Ir()&&ki(e,window),n)we.state.isAutoTranslate=!0,rn(we);else if(N.debug("do not auto translate",e),e.rule.initTranslationServiceAsSoonAsPossible&&e.translationService==="deepl"){if(Xn(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto")return;e.config&&e.config.translationServices&&e.config.translationServices.deepl&&e.config.translationServices.deepl.authKey&&typeof e.config.translationServices.deepl.authKey=="string"&&e.config.translationServices.deepl.authKey.startsWith("immersive_")&&(Mi[e.translationService]||(Mi[e.translationService]=!0,Je()||E0(e).catch(a=>{N.warn("init translation engine error",a)})))}}async function wt(e,t){let n=Object.keys(t);if(we){let a={url:e,config:we.config,state:{...we.state,...t}};we=await ln(a)}else{let a=await Lt(),r=t;n.length===0&&(r=void 0),we=await ln({url:e,config:a,state:r})}return we}async function Sd(){let e=await Lt(),t;we&&we.state&&(t=we.state);let n={url:Ze(),config:e,state:t},a=await ln(n);we=a;let r=Go(),u=[];return r?u=r.allInlineWindows||[window]:u=[window],u.forEach(o=>{hu(a,o),Ir()&&ki(a,o),ec(a)}),a}function Ny(e,t=3e3){return new Promise((n,a)=>{let r=t?setTimeout(()=>{n(new Error("timeout"))},t):void 0,u=setInterval(()=>{e.every(i=>document.querySelector(i)!==null)&&(clearInterval(u),r&&clearTimeout(r),n(null))},50)})}async function Ep(e){let t=e.detail;jt.set(Nt,t);let n=await jt.get(ms,!1);jt.set(ms,!1),document.dispatchEvent(new CustomEvent("immersiveTranslateDocumentMessageUserResult",{detail:n?"close":"success"}))}function xp(e){N.debug("update user info",e);let t=e.detail;jt.set(Nt,t)}async function Tp(e){let t=await on();if(t.translationService)return;let n=e.config.translationService,a=["bing","transmart","google"];a.sort((u,o)=>u===n?-1:o===n?1:0);let r=await Jm(a,e);if(!r){Hr("no_avaliable_translation_service",[{name:"no_avaliable_translation_service"}]);return}e.translationService!==r&&(t.translationService=r,un(t),e.translationService=r,Hr("change_default_translation_service",[{name:"change_default_translation_service",params:{translation_service:r}}]))}async function Kp(e){if(!e){let n=await Lt();e=await ln({config:n,url:Ze()})}e.config.debug?N.setLevel("debug"):N.setLevel("info"),globalThis.top!=globalThis.self||await lp().catch(n=>{N.error(`init popup page error: ${n}`)}),e.isTranslateExcludeUrl||(e.rule.isEbook||e.rule.isEbookBuilder||await vi(),globalThis.top===globalThis.self&&Tg()),await $p()}g();var yu={capture:!0,once:!0,passive:!0},Yp=()=>document.readyState==="interactive"||document.readyState==="complete",jy=e=>document.readyState===e,Eu=(e,t)=>jy(e)||Yp()?(t(e),!0):!1,Uy=()=>new Promise(e=>{Eu("loading",e)||document.addEventListener("readystatechange",()=>{document.readyState==="loading"&&e("loading")},yu)}),zy=()=>new Promise(e=>{Eu("interactive",e)||document.addEventListener("readystatechange",()=>{document.readyState==="interactive"&&e("interactive")},yu)}),Hy=()=>new Promise(e=>{Eu("complete",e)||document.addEventListener("readystatechange",()=>{document.readyState==="complete"&&e("complete")},yu)}),Gp=()=>new Promise(e=>{Eu("domready",e)||document.addEventListener("DOMContentLoaded",()=>{e("domready")},yu)}),Vp=()=>new Promise(e=>{Eu("load",e)||window.addEventListener("load",()=>{e("load")},yu)}),Jp={};Object.defineProperties(Jp,{state:{get:function(){return document.readyState}},loading:{get:function(){return Uy()}},interactive:{get:function(){return zy()}},complete:{get:function(){return Hy()}},window:{get:function(){return Vp()}},load:{get:function(){return Vp()}},domready:{get:function(){return Gp()}},dom:{get:function(){return Gp()}},ready:{get:function(){return Yp()}}});var Qp=Jp;g();g();var Zp={NOT_FUNCTION:"Your executor is not a function. functions and promises are valid.",FAILED_TO_WAIT:"Failed to wait"};function qy(e){return()=>Promise.resolve().then(()=>e()).catch(t=>{throw t})}function Wy(e){if(typeof e!="function")throw new Error(Zp.NOT_FUNCTION)}var rc=class{_interval;_timeout;_stopOnFailure;_backoffFactor;_backoffMaxInterval;_Console;originalStacktraceError;_userMessage;_verbose;_isWaiting;_isResolved;_executeFn;start;promise;resolve;reject;_lastError;constructor({interval:t=100,timeout:n=1e3,stopOnFailure:a=!1,verbose:r=!1,backoffFactor:u=1,backoffMaxInterval:o,message:i=""}={}){this._interval=t,this._timeout=n,this._stopOnFailure=a,this._isWaiting=!1,this._isResolved=!1,this._verbose=r,this._userMessage=i,this.originalStacktraceError=new Error,this._Console=console,this._backoffFactor=u,this._backoffMaxInterval=o||n,this.start=+Date.now()}tryEvery(t){return this._interval=t,this}stopAfter(t){return this._timeout=t,this}execute(t){return this._applyPromiseHandlers(),Wy(t),this._executeFn=qy(t),this.start=Date.now(),this._isWaiting=!0,this._log("starting to execute"),this._runFunction(),this.promise}getPromise(){return this.promise}isResolved(){return this._isResolved}isWaiting(){return this._isWaiting}stopOnFailure(t){return this._stopOnFailure=t,this}_applyPromiseHandlers(){this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}_timeFromStart(){return Date.now()-this.start}_shouldStopTrying(){return this._timeFromStart()>this._timeout}_executeAgain(){this._log("executing again");let t=this._interval,n=t*this._backoffFactor;this._interval=n>this._backoffMaxInterval?this._backoffMaxInterval:n,setTimeout(this._runFunction.bind(this),t)}_failedToWait(){let t=`${Zp.FAILED_TO_WAIT} after ${this._timeFromStart()}ms`;if(this._userMessage&&(t=`${t}: ${this._userMessage}`),this._lastError){this._lastError.message=`${t} ${this._lastError.message}`;let n=this.originalStacktraceError.stack;n&&(this._lastError.stack+=n.substring(n.indexOf(` -`)+1))}else this._lastError=this.originalStacktraceError,this._lastError.message=t;return this._log(this._lastError),this._lastError}_runFunction(){if(this._shouldStopTrying()){this._isWaiting=!1,this.reject?.(this._failedToWait());return}this._executeFn().then(t=>{if(t===!1){this._log(`then execute again with result: ${t}`),this._executeAgain();return}this.resolve?.(t),this._isWaiting=!1,this._isResolved=!0,this._log(`then done waiting with result: ${t}`)}).catch(t=>this._stopOnFailure?(this._log(`stopped on failure with err: ${t}`),this.reject?.(t)):(this._lastError=t,this._log(`catch with err: ${t}`),this._executeAgain()))}_log(t){this._verbose&&this._Console&&this._Console.log&&this._Console.log(t)}},Zp=(e,t)=>new rc(t).execute(e);async function Xp(e){try{return await Zp(()=>{let n=e.mainFrame.innerText||"";if(tr(n,e.rule.mainFrameMinTextCount,e.rule.mainFrameMinWordCount))return!0;throw new Error("there is no main text")},{timeout:5e3}),!0}catch(t){if(Je())throw t;return N.error("check dom element ready failed:",t,e),!0}}g();function ef(){let e=document.querySelector("meta[name=immersive-translate-options]");return!!(e&&e.getAttribute("content")==="true")}g();async function nf(){if(!document.getElementById("immersive-translate-status")){N.error("Could not find status element");return}await tf("local"),await tf("sync"),Ky();let t=document.getElementById("immersive-translate-page-ready");t&&setTimeout(()=>{t.value="true",t.dispatchEvent(new Event("change"))},100)}async function $y(e,t){let n;try{n=JSON.parse(e.detail)}catch(r){N.error("parse detail failed",r);return}let a=n.id||"default";try{let r=n.data||{},u=await t(r),o={id:a,ok:!0,data:u};document.dispatchEvent(new CustomEvent(ju,{detail:JSON.stringify({...o,type:"answer"})}))}catch(r){let u={ok:!1,errorName:r.name,errorMessage:r.message,errorDetails:r.details||r.detail};document.dispatchEvent(new CustomEvent(ju,{detail:JSON.stringify({...u,id:a,type:"answer"})}))}}function Ky(){document.addEventListener(Ou,a=>{let r=a;if(N.debug("document message",r),r&&r.detail){let u;try{u=JSON.parse(r.detail)}catch(o){N.error("parse detail failed",o);return}u.type==="ask"?u.method==="request"&&$y(r,oe):u.type==="tell"&&u.method==="updateCommands"&&To(u.data)}});let e=document.getElementById("immersive-translate-manifest");if(!e){N.error("Could not find manifest element");return}let t=ue.runtime.getManifest();Rt()&&(t._isSafari=!0),e.value=JSON.stringify(t),e.dispatchEvent(new Event("change")),document.getElementById("immersive-translate-message").addEventListener("change",a=>{try{let r=JSON.parse(a.target.value);r&&r.method==="removeStorageKey"&&r.data&&r.data.area&&r.data.keys&&ue.storage[r.data.area].remove(r.data.keys)}catch(r){N.error("parse message error",r)}})}async function tf(e){let t=document.getElementById("immersive-translate-status"),n=document.getElementById(`immersive-translate-${e}-storage`);if(n){N.debug("init storage");let a=await ue.storage[e].get(null);n.value=JSON.stringify(a),n.dispatchEvent(new Event("change")),n.addEventListener("change",r=>{try{let u=JSON.parse(r.target.value);ue.storage[e].set(u)}catch(u){N.error("save to storage error",u)}}),n.addEventListener("refresh-"+e,async r=>{let u=await ue.storage[e].get(null);n.value=JSON.stringify(u),N.debug("refresh ",e,"storage")})}else{N.error(`Could not find storage ${e} element`),t.innerText="Could not find storage local input element";return}}var Gy=["textarea","input","button","select","option","iframe"];async function Vy(){_e.addHook("beforeSanitizeElements",function(a,r,u){let o=(a.nodeName||"").toLowerCase();if(Gy.includes(o)){let s=`<${o}>${a.textContent||""}`,c=document.createTextNode(s);return a.replaceWith(c),a}return a}),_e.addHook("uponSanitizeElement",function(a,r){let u=a.nodeName||"";/\d+$/.test(u)&&(r.allowedTags[r.tagName]=!0)});let e=await Jn(),t=Ze(),n=await ln({config:e,url:t});$e("init_page_daily",[{name:"init_page_daily"}],n),Jp.domready.then(()=>{if(n.isTranslateExcludeUrl&&ef())N.debug("detect web options page"),bu(n,window),nf();else{if(!n.config.enabled||sn(n.url,n.config.blockUrls))return;bu(n,window),Xp(n).then(()=>{$p(n).catch(r=>{r&&N.error("translate page error",r.name,r.message,r.details||"",r)})}).catch(r=>{N.debug("can not detect a valid body: ",r)})}}).catch(a=>{a&&N.error("translate dom ready detect error",a)})}Vy().catch(e=>{N.error("init error",e)});})(); +`)+1))}else this._lastError=this.originalStacktraceError,this._lastError.message=t;return this._log(this._lastError),this._lastError}_runFunction(){if(this._shouldStopTrying()){this._isWaiting=!1,this.reject?.(this._failedToWait());return}this._executeFn().then(t=>{if(t===!1){this._log(`then execute again with result: ${t}`),this._executeAgain();return}this.resolve?.(t),this._isWaiting=!1,this._isResolved=!0,this._log(`then done waiting with result: ${t}`)}).catch(t=>this._stopOnFailure?(this._log(`stopped on failure with err: ${t}`),this.reject?.(t)):(this._lastError=t,this._log(`catch with err: ${t}`),this._executeAgain()))}_log(t){this._verbose&&this._Console&&this._Console.log&&this._Console.log(t)}},Xp=(e,t)=>new rc(t).execute(e);async function ef(e){try{return await Xp(()=>{let n=e.mainFrame.innerText||"";if(tr(n,e.rule.mainFrameMinTextCount,e.rule.mainFrameMinWordCount))return!0;throw new Error("there is no main text")},{timeout:5e3}),!0}catch(t){if(Je())throw t;return N.error("check dom element ready failed:",t,e),!0}}g();function tf(){let e=document.querySelector("meta[name=immersive-translate-options]");return!!(e&&e.getAttribute("content")==="true")}g();async function af(){if(!document.getElementById("immersive-translate-status")){N.error("Could not find status element");return}await nf("local"),await nf("sync"),Ky();let t=document.getElementById("immersive-translate-page-ready");t&&setTimeout(()=>{t.value="true",t.dispatchEvent(new Event("change"))},100)}async function $y(e,t){let n;try{n=JSON.parse(e.detail)}catch(r){N.error("parse detail failed",r);return}let a=n.id||"default";try{let r=n.data||{},u=await t(r),o={id:a,ok:!0,data:u};document.dispatchEvent(new CustomEvent(Nu,{detail:JSON.stringify({...o,type:"answer"})}))}catch(r){let u={ok:!1,errorName:r.name,errorMessage:r.message,errorDetails:r.details||r.detail};document.dispatchEvent(new CustomEvent(Nu,{detail:JSON.stringify({...u,id:a,type:"answer"})}))}}function Ky(){document.addEventListener(Ou,a=>{let r=a;if(N.debug("document message",r),r&&r.detail){let u;try{u=JSON.parse(r.detail)}catch(o){N.error("parse detail failed",o);return}u.type==="ask"?u.method==="request"&&$y(r,oe):u.type==="tell"&&u.method==="updateCommands"&&xo(u.data)}});let e=document.getElementById("immersive-translate-manifest");if(!e){N.error("Could not find manifest element");return}let t=ue.runtime.getManifest();Rt()&&(t._isSafari=!0),e.value=JSON.stringify(t),e.dispatchEvent(new Event("change")),document.getElementById("immersive-translate-message").addEventListener("change",a=>{try{let r=JSON.parse(a.target.value);r&&r.method==="removeStorageKey"&&r.data&&r.data.area&&r.data.keys&&ue.storage[r.data.area].remove(r.data.keys)}catch(r){N.error("parse message error",r)}})}async function nf(e){let t=document.getElementById("immersive-translate-status"),n=document.getElementById(`immersive-translate-${e}-storage`);if(n){N.debug("init storage");let a=await ue.storage[e].get(null);n.value=JSON.stringify(a),n.dispatchEvent(new Event("change")),n.addEventListener("change",r=>{try{let u=JSON.parse(r.target.value);ue.storage[e].set(u)}catch(u){N.error("save to storage error",u)}}),n.addEventListener("refresh-"+e,async r=>{let u=await ue.storage[e].get(null);n.value=JSON.stringify(u),N.debug("refresh ",e,"storage")})}else{N.error(`Could not find storage ${e} element`),t.innerText="Could not find storage local input element";return}}var Gy=["textarea","input","button","select","option","iframe"];async function Vy(){_e.addHook("beforeSanitizeElements",function(a,r,u){let o=(a.nodeName||"").toLowerCase();if(Gy.includes(o)){let s=`<${o}>${a.textContent||""}`,c=document.createTextNode(s);return a.replaceWith(c),a}return a}),_e.addHook("uponSanitizeElement",function(a,r){let u=a.nodeName||"";/\d+$/.test(u)&&(r.allowedTags[r.tagName]=!0)});let e=await Jn(),t=Ze(),n=await ln({config:e,url:t});$e("init_page_daily",[{name:"init_page_daily"}],n),Qp.domready.then(()=>{if(n.isTranslateExcludeUrl&&tf())N.debug("detect web options page"),hu(n,window),af();else{if(!n.config.enabled||sn(n.url,n.config.blockUrls))return;hu(n,window),ef(n).then(()=>{Kp(n).catch(r=>{r&&N.error("translate page error",r.name,r.message,r.details||"",r)})}).catch(r=>{N.debug("can not detect a valid body: ",r)})}}).catch(a=>{a&&N.error("translate dom ready detect error",a)})}Vy().catch(e=>{N.error("init error",e)});})(); /*! Bundled license information: bowser/src/bowser.js: diff --git a/docs/options/options.js b/docs/options/options.js index 7055218..6f2aa7b 100644 --- a/docs/options/options.js +++ b/docs/options/options.js @@ -1,4 +1,4 @@ -(()=>{var zh=Object.create;var Bs=Object.defineProperty;var Hh=Object.getOwnPropertyDescriptor;var qh=Object.getOwnPropertyNames;var Wh=Object.getPrototypeOf,Kh=Object.prototype.hasOwnProperty;var $h=(e,t)=>()=>(e&&(t=e(e=0)),t);var Gh=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Vh=(e,t)=>{for(var n in t)Bs(e,n,{get:t[n],enumerable:!0})},Yh=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of qh(t))!Kh.call(e,r)&&r!==n&&Bs(e,r,{get:()=>t[r],enumerable:!(a=Hh(t,r))||a.enumerable});return e};var Jh=(e,t,n)=>(n=e!=null?zh(Wh(e)):{},Yh(t||!e||!e.__esModule?Bs(n,"default",{value:e,enumerable:!0}):n,e));var P,h=$h(()=>{P={BUILD_TIME:"2023-09-17T09:32:32.000Z",VERSION:"0.9.5",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"0",BETA:"0",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { +(()=>{var Hh=Object.create;var Bs=Object.defineProperty;var qh=Object.getOwnPropertyDescriptor;var Wh=Object.getOwnPropertyNames;var Kh=Object.getPrototypeOf,$h=Object.prototype.hasOwnProperty;var Gh=(e,t)=>()=>(e&&(t=e(e=0)),t);var Vh=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Yh=(e,t)=>{for(var n in t)Bs(e,n,{get:t[n],enumerable:!0})},Jh=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Wh(t))!$h.call(e,r)&&r!==n&&Bs(e,r,{get:()=>t[r],enumerable:!(a=qh(t,r))||a.enumerable});return e};var Qh=(e,t,n)=>(n=e!=null?Hh(Kh(e)):{},Jh(t||!e||!e.__esModule?Bs(n,"default",{value:e,enumerable:!0}):n,e));var P,h=Gh(()=>{P={BUILD_TIME:"2023-09-19T07:46:36.000Z",VERSION:"0.9.6",PROD:"1",REDIRECT_URL:"https://dash.immersivetranslate.com/auth-done/",PROD_API:"0",BETA:"0",IMMERSIVE_TRANSLATE_INJECTED_CSS:`:root { --immersive-translate-theme-underline-borderColor: #72ece9; --immersive-translate-theme-nativeUnderline-borderColor: #72ece9; --immersive-translate-theme-nativeDashed-borderColor: #72ece9; @@ -4234,26 +4234,26 @@ select.text-label {
-`,PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",OPTIONS_URL:"https://dash.immersivetranslate.com/",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",MOCK:"0",DEBUG:"0",IMMERSIVE_TRANSLATE_USERSCRIPT:"1",INSTALL_FROM:"official_userscript"}});var ah=Gh((ws,du)=>{h();(function(){var e;function t(g){var y,v,b="",S=-1,A;if(g&&g.length)for(A=g.length;(S+=1)>>6&31,128|y&63):y<=65535?b+=String.fromCharCode(224|y>>>12&15,128|y>>>6&63,128|y&63):y<=2097151&&(b+=String.fromCharCode(240|y>>>18&7,128|y>>>12&63,128|y>>>6&63,128|y&63));return b}function n(g){var y,v,b,S,A,N=[],_;if(y=v=b=S=A=0,g&&g.length)for(_=g.length,g+="";y<_;)b=g.charCodeAt(y),v+=1,b<128?(N[v]=String.fromCharCode(b),y+=1):b>191&&b<224?(S=g.charCodeAt(y+1),N[v]=String.fromCharCode((b&31)<<6|S&63),y+=2):(S=g.charCodeAt(y+1),A=g.charCodeAt(y+2),N[v]=String.fromCharCode((b&15)<<12|(S&63)<<6|A&63),y+=3);return N.join("")}function a(g,y){var v=(g&65535)+(y&65535),b=(g>>16)+(y>>16)+(v>>16);return b<<16|v&65535}function r(g,y){return g<>>32-y}function o(g,y){for(var v=y?"0123456789ABCDEF":"0123456789abcdef",b="",S,A=0,N=g.length;A>>4&15)+v.charAt(S&15);return b}function u(g){var y,v=g.length,b="";for(y=0;y>>8&255);return b}function i(g){var y,v=g.length,b="";for(y=0;y>>8&255,g.charCodeAt(y)&255);return b}function s(g){var y,v=g.length*32,b="";for(y=0;y>5]>>>24-y%32&255);return b}function c(g){var y,v=g.length*32,b="";for(y=0;y>5]>>>y%32&255);return b}function l(g){var y,v=g.length*8,b=Array(g.length>>2),S=b.length;for(y=0;y>5]|=(g.charCodeAt(y/8)&255)<>2),S=b.length;for(y=0;y>5]|=(g.charCodeAt(y/8)&255)<<24-y%32;return b}function p(g,y){var v=y.length,b=Array(),S,A,N,_,x,E,T,w;for(E=Array(Math.ceil(g.length/2)),_=E.length,S=0;S<_;S+=1)E[S]=g.charCodeAt(S*2)<<8|g.charCodeAt(S*2+1);for(;E.length>0;){for(x=Array(),N=0,S=0;S0||A>0)&&(x[x.length]=A);b[b.length]=N,E=x}for(T="",S=b.length-1;S>=0;S--)T+=y.charAt(b[S]);for(w=Math.ceil(g.length*8/(Math.log(y.length)/Math.log(2))),S=T.length;Sg.length*8?b+=y:b+=v.charAt(_>>>6*(3-N)&63);return b}e={VERSION:"1.0.6",Base64:function(){var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y="=",v=!1,b=!0;this.encode=function(S){var A,N,_,x="";for(y=y||"=",S=b?t(S):S,len=S.length,A=0;Alen*8?x+=y:x+=g.charAt(_>>>6*(3-N)&63);return x},this.decode=function(S){var A,N,_,x,E,T,w,C,I,M,D="",F=[];if(!S)return S;A=M=0,S=S.replace(new RegExp("\\"+y,"gi"),"");do E=g.indexOf(S.charAt(A++)),T=g.indexOf(S.charAt(A++)),w=g.indexOf(S.charAt(A++)),C=g.indexOf(S.charAt(A++)),I=E<<18|T<<12|w<<6|C,N=I>>16&255,_=I>>8&255,x=I&255,M+=1,w===64?F[M]=String.fromCharCode(N):C===64?F[M]=String.fromCharCode(N,_):F[M]=String.fromCharCode(N,_,x);while(A>>8^v;return(y^-1)>>>0},MD5:function(g){var y=g&&typeof g.uppercase=="boolean"?g.uppercase:!1,v=g&&typeof g.pad=="string"?g.pad:"=",b=g&&typeof g.utf8=="boolean"?g.utf8:!0;this.hex=function(C){return o(S(C,b),y)},this.b64=function(C){return f(S(C),v)},this.any=function(C,I){return p(S(C,b),I)},this.raw=function(C){return S(C,b)},this.hex_hmac=function(C,I){return o(A(C,I),y)},this.b64_hmac=function(C,I){return f(A(C,I),v)},this.any_hmac=function(C,I,M){return p(A(C,I),M)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(C){return typeof C=="boolean"&&(y=C),this},this.setPad=function(C){return v=C||v,this},this.setUTF8=function(C){return typeof C=="boolean"&&(b=C),this};function S(C){return C=b?t(C):C,c(N(l(C),C.length*8))}function A(C,I){var M,D,F,U,z;for(C=b?t(C):C,I=b?t(I):I,M=l(C),M.length>16&&(M=N(M,C.length*8)),D=Array(16),F=Array(16),z=0;z<16;z+=1)D[z]=M[z]^909522486,F[z]=M[z]^1549556828;return U=N(D.concat(l(I)),512+I.length*8),c(N(F.concat(U),512+128))}function N(C,I){var M,D,F,U,z,B=1732584193,k=-271733879,L=-1732584194,O=271733878;for(C[I>>5]|=128<>>9<<4)+14]=I,M=0;M16&&(w=N(w,E.length*8)),C=Array(16),I=Array(16),M=0;M<16;M+=1)C[M]=w[M]^909522486,I[M]=w[M]^1549556828;return D=N(C.concat(m(T)),512+T.length*8),s(N(I.concat(D),512+160))}function N(E,T){var w,C,I,M,D,F,U,z,B=Array(80),k=1732584193,L=-271733879,O=-1732584194,K=271733878,H=-1009589776;for(E[T>>5]|=128<<24-T%32,E[(T+64>>9<<4)+15]=T,w=0;w16&&(H=B(H,k.length*8));K<16;K+=1)V[K]=H[K]^909522486,q[K]=H[K]^1549556828;return O=B(V.concat(m(L)),512+L.length*8),s(B(q.concat(O),512+256))}function _(k,L){return k>>>L|k<<32-L}function x(k,L){return k>>>L}function E(k,L,O){return k&L^~k&O}function T(k,L,O){return k&L^k&O^L&O}function w(k){return _(k,2)^_(k,13)^_(k,22)}function C(k){return _(k,6)^_(k,11)^_(k,25)}function I(k){return _(k,7)^_(k,18)^x(k,3)}function M(k){return _(k,17)^_(k,19)^x(k,10)}function D(k){return _(k,28)^_(k,34)^_(k,39)}function F(k){return _(k,14)^_(k,18)^_(k,41)}function U(k){return _(k,1)^_(k,8)^x(k,7)}function z(k){return _(k,19)^_(k,61)^x(k,6)}S=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function B(k,L){var O=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],K=new Array(64),H,V,q,oe,Z,J,ye,Te,ie,Y,ce,fe;for(k[L>>5]|=128<<24-L%32,k[(L+64>>9<<4)+15]=L,ie=0;ie32&&(k=_(k,F.length*8));B<32;B+=1)L[B]=k[B]^909522486,O[B]=k[B]^1549556828;return z=_(L.concat(m(U)),1024+U.length*8),s(_(O.concat(z),1024+512))}function _(F,U){var z,B,k,L=new Array(80),O=new Array(16),K=[new x(1779033703,-205731576),new x(-1150833019,-2067093701),new x(1013904242,-23791573),new x(-1521486534,1595750129),new x(1359893119,-1377402159),new x(-1694144372,725511199),new x(528734635,-79577749),new x(1541459225,327033209)],H=new x(0,0),V=new x(0,0),q=new x(0,0),oe=new x(0,0),Z=new x(0,0),J=new x(0,0),ye=new x(0,0),Te=new x(0,0),ie=new x(0,0),Y=new x(0,0),ce=new x(0,0),fe=new x(0,0),ge=new x(0,0),Ee=new x(0,0),Le=new x(0,0),ve=new x(0,0),ee=new x(0,0);for(S===void 0&&(S=[new x(1116352408,-685199838),new x(1899447441,602891725),new x(-1245643825,-330482897),new x(-373957723,-2121671748),new x(961987163,-213338824),new x(1508970993,-1241133031),new x(-1841331548,-1357295717),new x(-1424204075,-630357736),new x(-670586216,-1560083902),new x(310598401,1164996542),new x(607225278,1323610764),new x(1426881987,-704662302),new x(1925078388,-226784913),new x(-2132889090,991336113),new x(-1680079193,633803317),new x(-1046744716,-815192428),new x(-459576895,-1628353838),new x(-272742522,944711139),new x(264347078,-1953704523),new x(604807628,2007800933),new x(770255983,1495990901),new x(1249150122,1856431235),new x(1555081692,-1119749164),new x(1996064986,-2096016459),new x(-1740746414,-295247957),new x(-1473132947,766784016),new x(-1341970488,-1728372417),new x(-1084653625,-1091629340),new x(-958395405,1034457026),new x(-710438585,-1828018395),new x(113926993,-536640913),new x(338241895,168717936),new x(666307205,1188179964),new x(773529912,1546045734),new x(1294757372,1522805485),new x(1396182291,-1651133473),new x(1695183700,-1951439906),new x(1986661051,1014477480),new x(-2117940946,1206759142),new x(-1838011259,344077627),new x(-1564481375,1290863460),new x(-1474664885,-1136513023),new x(-1035236496,-789014639),new x(-949202525,106217008),new x(-778901479,-688958952),new x(-694614492,1432725776),new x(-200395387,1467031594),new x(275423344,851169720),new x(430227734,-1194143544),new x(506948616,1363258195),new x(659060556,-544281703),new x(883997877,-509917016),new x(958139571,-976659869),new x(1322822218,-482243893),new x(1537002063,2003034995),new x(1747873779,-692930397),new x(1955562222,1575990012),new x(2024104815,1125592928),new x(-2067236844,-1578062990),new x(-1933114872,442776044),new x(-1866530822,593698344),new x(-1538233109,-561857047),new x(-1090935817,-1295615723),new x(-965641998,-479046869),new x(-903397682,-366583396),new x(-779700025,566280711),new x(-354779690,-840897762),new x(-176337025,-294727304),new x(116418474,1914138554),new x(174292421,-1563912026),new x(289380356,-1090974290),new x(460393269,320620315),new x(685471733,587496836),new x(852142971,1086792851),new x(1017036298,365543100),new x(1126000580,-1676669620),new x(1288033470,-885112138),new x(1501505948,-60457430),new x(1607167915,987167468),new x(1816402316,1246189591)]),B=0;B<80;B+=1)L[B]=new x(0,0);for(F[U>>5]|=128<<24-(U&31),F[(U+128>>10<<5)+31]=U,k=F.length,B=0;B>>z|U.h<<32-z,F.h=U.h>>>z|U.l<<32-z}function w(F,U,z){F.l=U.h>>>z|U.l<<32-z,F.h=U.l>>>z|U.h<<32-z}function C(F,U,z){F.l=U.l>>>z|U.h<<32-z,F.h=U.h>>>z}function I(F,U,z){var B=(U.l&65535)+(z.l&65535),k=(U.l>>>16)+(z.l>>>16)+(B>>>16),L=(U.h&65535)+(z.h&65535)+(k>>>16),O=(U.h>>>16)+(z.h>>>16)+(L>>>16);F.l=B&65535|k<<16,F.h=L&65535|O<<16}function M(F,U,z,B,k){var L=(U.l&65535)+(z.l&65535)+(B.l&65535)+(k.l&65535),O=(U.l>>>16)+(z.l>>>16)+(B.l>>>16)+(k.l>>>16)+(L>>>16),K=(U.h&65535)+(z.h&65535)+(B.h&65535)+(k.h&65535)+(O>>>16),H=(U.h>>>16)+(z.h>>>16)+(B.h>>>16)+(k.h>>>16)+(K>>>16);F.l=L&65535|O<<16,F.h=K&65535|H<<16}function D(F,U,z,B,k,L){var O=(U.l&65535)+(z.l&65535)+(B.l&65535)+(k.l&65535)+(L.l&65535),K=(U.l>>>16)+(z.l>>>16)+(B.l>>>16)+(k.l>>>16)+(L.l>>>16)+(O>>>16),H=(U.h&65535)+(z.h&65535)+(B.h&65535)+(k.h&65535)+(L.h&65535)+(K>>>16),V=(U.h>>>16)+(z.h>>>16)+(B.h>>>16)+(k.h>>>16)+(L.h>>>16)+(H>>>16);F.l=O&65535|K<<16,F.h=H&65535|V<<16}},RMD160:function(g){var y=g&&typeof g.uppercase=="boolean"?g.uppercase:!1,v=g&&typeof g.pad=="string"?g.pa:"=",b=g&&typeof g.utf8=="boolean"?g.utf8:!0,S=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],A=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],N=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],_=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(D){return o(x(D,b))},this.b64=function(D){return f(x(D,b),v)},this.any=function(D,F){return p(x(D,b),F)},this.raw=function(D){return x(D,b)},this.hex_hmac=function(D,F){return o(E(D,F))},this.b64_hmac=function(D,F){return f(E(D,F),v)},this.any_hmac=function(D,F,U){return p(E(D,F),U)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(D){return typeof D=="boolean"&&(y=D),this},this.setPad=function(D){return typeof D<"u"&&(v=D),this},this.setUTF8=function(D){return typeof D=="boolean"&&(b=D),this};function x(D){return D=b?t(D):D,T(w(l(D),D.length*8))}function E(D,F){D=b?t(D):D,F=b?t(F):F;var U,z,B=l(D),k=Array(16),L=Array(16);for(B.length>16&&(B=w(B,D.length*8)),U=0;U<16;U+=1)k[U]=B[U]^909522486,L[U]=B[U]^1549556828;return z=w(k.concat(l(F)),512+F.length*8),T(w(L.concat(z),512+160))}function T(D){var F,U="",z=D.length*32;for(F=0;F>5]>>>F%32&255);return U}function w(D,F){var U,z,B,k,L=1732584193,O=4023233417,K=2562383102,H=271733878,V=3285377520,q,oe,Z,J,ye,Te,ie,Y,ce,fe;for(D[F>>5]|=128<>>9<<4)+14]=F,k=D.length,B=0;Bt(u),get:s=>{if(s===null)return Promise.resolve(e(u));let c=[],l=e(u);typeof s=="string"?c=[s]:Array.isArray(s)?c=s:c=Object.keys(s);let m={};for(let p of c)m[p]=l[p];return Promise.resolve(m)},set:s=>{let c=a(),l=e(u);for(let f in s)l[f]=s[f];let m=document.getElementById("immersive-translate-sync-storage"),p=document.getElementById("immersive-translate-local-storage");if(!m||!p)throw new Error("Storage element not found");if(u==="sync"||c._isUserscript){m.value=JSON.stringify(l);let f=new Event("change");m.dispatchEvent(f)}return(u==="local"||c._isUserscript)&&(p.value=JSON.stringify(l),p.dispatchEvent(new Event("change"))),Promise.resolve()},remove:s=>{let c=a(),l=document.getElementById("immersive-translate-message");if(!l)throw new Error("Message element not found");let m={method:"removeStorageKey",data:{area:u,keys:s}};return new Promise((p,f)=>{l.value=JSON.stringify(m);let g=new Event("change");l.dispatchEvent(g),c._isUserscript?setTimeout(()=>{l.value=JSON.stringify({...m,data:{...m.data,area:m.data.area==="sync"?"local":"sync"}}),l.dispatchEvent(new Event("change")),p(null)},10):p(null)})}}}function a(){let u=document.getElementById("immersive-translate-manifest");if(!u)throw new Error("Manifest element not found");let i=u.value,s={};if(i){try{s=JSON.parse(i)}catch(c){throw c}return s}else return{}}function r(){return globalThis.navigator.languages||[globalThis.navigator.language||globalThis.navigator.userLanguage]}let o={storage:{local:n("local"),sync:n("sync")},runtime:{getManifest:a,lastError:null,getURL:u=>u},contextMenus:{update:()=>{}},i18n:{getAcceptLanguages:r}};globalThis.immersiveTranslateBrowserAPI=o})();h();h();h();h();var ku,Ae,I4,Zh,co,F4,O4,Cu={},N4=[],Xh=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function fa(e,t){for(var n in t)e[n]=t[n];return e}function U4(e){var t=e.parentNode;t&&t.removeChild(e)}function Is(e,t,n){var a,r,o,u={};for(o in t)o=="key"?a=t[o]:o=="ref"?r=t[o]:u[o]=t[o];if(arguments.length>2&&(u.children=arguments.length>3?ku.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)u[o]===void 0&&(u[o]=e.defaultProps[o]);return xu(e,u,a,r,null)}function xu(e,t,n,a,r){var o={type:e,props:t,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++I4};return r==null&&Ae.vnode!=null&&Ae.vnode(o),o}function Fe(e){return e.children}function Eu(e,t){this.props=e,this.context=t}function pr(e,t){if(t==null)return e.__?pr(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?xu(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=n,f.__b=n.__b+1,(p=b[l])===null||p&&f.key==p.key&&f.type===p.type)b[l]=void 0;else for(m=0;m=n.__.length&&n.__.push({__V:Su}),n.__[e]}function $(e){return go=1,a2(nd,e)}function a2(e,t,n){var a=Du(mo++,2);if(a.t=e,!a.__c&&(a.__=[n?n(t):nd(void 0,t),function(o){var u=a.__N?a.__N[0]:a.__[0],i=a.t(u,o);u!==i&&(a.__N=[i,a.__[1]],a.__c.setState({}))}],a.__c=st,!st.u)){st.u=!0;var r=st.shouldComponentUpdate;st.shouldComponentUpdate=function(o,u,i){if(!a.__c.__H)return!0;var s=a.__c.__H.__.filter(function(l){return l.__c});if(s.every(function(l){return!l.__N}))return!r||r.call(this,o,u,i);var c=!1;return s.forEach(function(l){if(l.__N){var m=l.__[0];l.__=l.__N,l.__N=void 0,m!==l.__[0]&&(c=!0)}}),!!c&&(!r||r.call(this,o,u,i))}}return a.__N||a.__}function he(e,t){var n=Du(mo++,3);!Ae.__s&&td(n.__H,t)&&(n.__=e,n.i=t,st.__H.__h.push(n))}function zn(e){return go=5,ha(function(){return{current:e}},[])}function ha(e,t){var n=Du(mo++,7);return td(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function dn(e,t){return go=8,ha(function(){return e},t)}function Ye(e){var t=st.context[e.__c],n=Du(mo++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(st)),t.props.value):e.__}function r2(){for(var e;e=ed.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Au),e.__H.__h.forEach(Us),e.__H.__h=[]}catch(t){e.__H.__h=[],Ae.__e(t,e.__v)}}Ae.__b=function(e){typeof e.type!="function"||e.o||e.type===Fe?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),st=null,V4&&V4(e)},Ae.__r=function(e){Y4&&Y4(e),mo=0;var t=(st=e.__c).__H;t&&(Ns===st?(t.__h=[],st.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Su,n.__N=n.i=void 0})):(t.__h.forEach(Au),t.__h.forEach(Us),t.__h=[])),Ns=st},Ae.diffed=function(e){J4&&J4(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ed.push(t)!==1&&G4===Ae.requestAnimationFrame||((G4=Ae.requestAnimationFrame)||o2)(r2)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Su&&(n.__=n.__V),n.i=void 0,n.__V=Su})),Ns=st=null},Ae.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Au),n.__h=n.__h.filter(function(a){return!a.__||Us(a)})}catch(a){t.some(function(r){r.__h&&(r.__h=[])}),t=[],Ae.__e(a,n.__v)}}),Q4&&Q4(e,t)},Ae.unmount=function(e){Z4&&Z4(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(a){try{Au(a)}catch(r){t=r}}),n.__H=void 0,t&&Ae.__e(t,n.__v))};var X4=typeof requestAnimationFrame=="function";function o2(e){var t,n=function(){clearTimeout(a),X4&&cancelAnimationFrame(t),setTimeout(e)},a=setTimeout(n,100);X4&&(t=requestAnimationFrame(n))}function Au(e){var t=st,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),st=t}function Us(e){var t=st;e.__c=e.__(),st=t}function td(e,t){return!e||e.length!==t.length||t.some(function(n,a){return n!==e[a]})}function nd(e,t){return typeof t=="function"?t(e):t}h();h();h();var po;function Qs(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function gd(e,t=","){return e.map(Qs).join(t)}var Zs=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function hr(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function Mu(e,t="@media "){return t+He(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(a=>`(${a}-width:${n[a]})`).join(" and "))).join(",")}function He(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function ad(e){return e}function ho(){}var dt={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function md(e){return e.match(/[-=:;]/g)?.length||0}function Ks(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(md(e),15)<<18}var u2=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function Xs({n:e,i:t,v:n=[]},a,r,o){e&&(e=Qs({n:e,i:t,v:n})),o=[...He(o)];for(let i of n){let s=a.theme("screens",i);for(let c of He(s&&Mu(s)||a.v(i))){var u;o.push(c),r|=s?67108864|Ks(c):i=="dark"?1073741824:c[0]=="@"?Ks(c):(u=c,1<<~(/:([a-z-]+)/.test(u)&&~u2.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:r,r:o,i:t}}var e0=new Map;function $s(e){if(e.d){let t=[],n=js(e.r.reduce((a,r)=>r[0]=="@"?(t.push(r),a):r?js(a,o=>js(r,u=>{let i=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(u);if(i){let s=o.indexOf(i[1]);return~s?o.slice(0,s)+i[0]+o.slice(s+i[1].length):zs(o,u)}return zs(u,o)})):a,"&"),a=>zs(a,e.n?"."+Zs(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((a,r)=>r+"{"+a+"}",e.d)}}function js(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,a,r)=>t(a)+r)}function zs(e,t){return e.replace(/&/g,t)}var rd=new Intl.Collator("en",{numeric:!0});function pd(e,t){for(var n=0,a=e.length;n>1;0>=fd(e[r],t)?n=r+1:a=r}return a}function fd(e,t){let n=e.p&dt.o;return n==(t.p&dt.o)&&(n==dt.b||n==dt.o)?0:e.p-t.p||e.o-t.o||rd.compare(od(e.n),od(t.n))||rd.compare(ud(e.n),ud(t.n))}function od(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function ud(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function Hs(e,t){return Math.round(parseInt(e,16)*t)}function ea(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:a}=t,r=a?`var(${a})`:n;if(e.includes(""))return e.replace("",r);if(e[0]=="#"&&(e.length==4||e.length==7)){let o=(e.length-1)/3,u=[17,1,.062272][o-1];return`rgba(${[Hs(e.substr(1,o),u),Hs(e.substr(1+o,o),u),Hs(e.substr(1+2*o,o),u),r]})`}return r=="1"?e:r=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${r})`)}function t0(e,t,n,a,r=[]){return function o(u,{n:i,p:s,r:c=[],i:l},m){let p=[],f="",g=0,y=0;for(let S in u||{}){var v,b;let A=u[S];if(S[0]=="@"){if(!A)continue;if(S[1]=="a"){p.push(...r0(i,s,fo(""+A),m,s,c,l,!0));continue}if(S[1]=="l"){for(let N of He(A))p.push(...o(N,{n:i,p:(v=dt[S[7]],s&~dt.o|v),r:S[7]=="d"?[]:c,i:l},m));continue}if(S[1]=="i"){p.push(...He(A).map(N=>({p:-1,o:0,r:[],d:S+" "+N})));continue}if(S[1]=="k"){p.push({p:dt.d,o:0,r:[S],d:o(A,{p:dt.d},m).map($s).join("")});continue}if(S[1]=="f"){p.push(...He(A).map(N=>({p:dt.d,o:0,r:[S],d:o(N,{p:dt.d},m).map($s).join("")})));continue}}if(typeof A!="object"||Array.isArray(A))S=="label"&&A?i=A+hr(JSON.stringify([s,l,u])):(A||A===0)&&(S=S.replace(/[A-Z]/g,N=>"-"+N.toLowerCase()),y+=1,g=Math.max(g,(b=S)[0]=="-"?0:md(b)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(b)?+!!RegExp.$1||-!!RegExp.$2:0)+1),f+=(f?";":"")+He(A).map(N=>m.s(S,n0(""+N,m.theme)+(l?" !important":""))).join(";"));else if(S[0]=="@"||S.includes("&")){let N=s;S[0]=="@"&&(S=S.replace(/\bscreen\(([^)]+)\)/g,(_,x)=>{let E=m.theme("screens",x);return E?(N|=67108864,Mu(E,"")):_}),N|=Ks(S)),p.push(...o(A,{n:i,p:N,r:[...c,S],i:l},m))}else p.push(...o(A,{p:s,r:[...c,S]},m))}return p.unshift({n:i,p:s,o:Math.max(0,15-y)+1.5*Math.min(g||15,15),r:c,d:f}),p.sort(fd)}(e,Xs(t,n,a,r),n)}function n0(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,a,r,o,u="")=>{let i=t(r,u);return typeof i=="function"&&/color|fill|stroke/i.test(r)?ea(i):""+He(i).filter(s=>Object(s)!==s)})}function a0(e,t){let n,a=[];for(let r of e)r.d&&r.n?n?.p==r.p&&""+n.r==""+r.r?(n.c=[n.c,r.c].filter(Boolean).join(" "),n.d=n.d+";"+r.d):a.push(n={...r,n:r.n&&t}):a.push({...r,n:r.n&&t});return a}function Lu(e,t,n=dt.u,a,r){let o=[];for(let u of e)for(let i of function(s,c,l,m,p){s={...s,i:s.i||p};let f=function(g,y){let v=e0.get(g.n);return v?v(g,y):y.r(g.n,g.v[0]=="dark")}(s,c);return f?typeof f=="string"?({r:m,p:l}=Xs(s,c,l,m),a0(Lu(fo(f),c,l,m,s.i),s.n)):Array.isArray(f)?f.map(g=>{var y,v;return{o:0,...g,r:[...He(m),...He(g.r)],p:(y=l,v=g.p??l,y&~dt.o|v)}}):t0(f,s,c,l,m):[{c:Qs(s),p:0,o:0,r:[]}]}(u,t,n,a,r))o.splice(pd(o,i),0,i);return o}function r0(e,t,n,a,r,o,u,i){return a0((i?n.flatMap(s=>Lu([s],a,r,o,u)):Lu(n,a,r,o,u)).map(s=>s.p&dt.o&&(s.n||t==dt.b)?{...s,p:s.p&~dt.o|t,o:0}:s),e)}function i2(e,t,n,a){var r;return r=(o,u)=>{let{n:i,p:s,r:c,i:l}=Xs(o,u,t);return n&&r0(i,t,n,u,s,c,l,a)},e0.set(e,r),e}function qs(e,t,n){if(e[e.length-1]!="("){let a=[],r=!1,o=!1,u="";for(let i of e)if(!(i=="("||/[~@]$/.test(i))){if(i[0]=="!"&&(i=i.slice(1),r=!r),i.endsWith(":")){a[i=="dark:"?"unshift":"push"](i.slice(0,-1));continue}i[0]=="-"&&(i=i.slice(1),o=!o),i.endsWith("-")&&(i=i.slice(0,-1)),i&&i!="&"&&(u+=(u&&"-")+i)}u&&(o&&(u="-"+u),t[0].push({n:u,v:a.filter(s2),i:r}))}}function s2(e,t,n){return n.indexOf(e)==t}var id=new Map;function fo(e){let t=id.get(e);if(!t){let n=[],a=[[]],r=0,o=0,u=null,i=0,s=(c,l=0)=>{r!=i&&(n.push(e.slice(r,i+l)),c&&qs(n,a)),r=i+1};for(;i1?m.slice(0,-1)+hr(JSON.stringify([m,p])):m+"("+gd(p)+")",dt.a,p,/@$/.test(m))],a)}l=n.lastIndexOf("(",l-1)}n.length=l+1}else/[~@]/.test(c)&&e[i+1]=="("&&a.unshift([])}s(!0),id.set(e,t=a[0])}return t}function hd(e,t,n){return t.reduce((a,r,o)=>a+n(r)+e[o+1],e[0])}function bd(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?hd(e,t,n=>Ws(n).trim()):t.filter(Boolean).reduce((n,a)=>n+Ws(a),e?Ws(e):"")}function Ws(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=bd(e[0],e.slice(1)))&&(n+=" "+t);else for(let a in e)e[a]&&(n+=" "+a);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var UE=yd("@"),jE=yd("~");function yd(e){return new Proxy(function(n,...a){return t("",n,a)},{get(n,a){return a in n?n[a]:function(r,...o){return t(a,r,o)}}});function t(n,a,r){return gd(fo(n+e+"("+bd(a,r)+")"))}}function Gs(e,t){return Array.isArray(e)?sd(hd(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?sd(e):[e]}var l2=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function sd(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],a=[n[0]],r=[];for(;t=l2.exec(e);)t[4]&&(n.shift(),r.shift()),t[3]?(r.unshift(t[3]),n.unshift({}),a.push(r.reduce((o,u)=>({[u]:o}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),a.push(r.reduce((o,u)=>({[u]:o}),n[0]))),n[0][t[1]]=t[2]);return a}function Td(e,...t){var n;let a=Gs(e,t),r=(a.find(o=>o.label)?.label||"css")+hr(JSON.stringify(a));return n=(o,u)=>a0(a.flatMap(i=>t0(i,o,u,dt.o)),r),e0.set(r,n),r}var zE=new Proxy(function(e,t){return ld("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,a){return ld(t,n,a)}}});function ld(e,t,n){return{toString(){return Td({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function ne(e,t,n){return[e,Vs(t,n)]}function Vs(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,a)=>({[e]:t?t(n,a):Ys(n,1)}):n=>e||{[n[1]]:Ys(n,2)}}function Ys(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function ae(e,t,n,a){return[e,c2(t,n,a)]}function c2(e,t,n){let a=typeof t=="string"?(r,o)=>({[t]:n?n(r,o):r._}):t||(({1:r,_:o},u,i)=>({[r||i]:o}));return(r,o)=>{let u=xd(e||r[1]),i=o.theme(u,r.$$)??Hn(r.$$,u,o);if(i!=null)return r._=Ys(r,0,i),a(r,o,u)}}function yt(e,t={},n){return[e,d2(t,n)]}function d2(e={},t){return(n,a)=>{let{section:r=xd(n[0]).replace("-","")+"Color"}=e,[o,u]=g2(n.$$);if(!o)return;let i=a.theme(r,o)||Hn(o,r,a);if(!i||typeof i=="object")return;let{opacityVariable:s=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:c=r.replace("Color","Opacity"),property:l=r,selector:m}=e,p=a.theme(c,u||"DEFAULT")||u&&Hn(u,c,a),f=t||(({_:y})=>{let v=bo(l,y);return m?{[m]:v}:v});n._={value:ea(i,{opacityVariable:s||void 0,opacityValue:p||void 0}),color:y=>ea(i,y),opacityVariable:s||void 0,opacityValue:p||void 0};let g=f(n,a);if(!n.dark){let y=a.d(r,o,i);y&&y!==i&&(n._={value:ea(y,{opacityVariable:s||void 0,opacityValue:p||"1"}),color:v=>ea(y,v),opacityVariable:s||void 0,opacityValue:p||void 0},g={"&":g,[a.v("dark")]:f(n,a)})}return g}}function g2(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function bo(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function Hn(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=br(n0(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function xd(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function br(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",a,r="")=>br(n)+a+br(r)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var HE=Symbol();function yo({presets:e=[],...t}){let n={darkMode:void 0,darkColor:void 0,preflight:t.preflight!==!1&&[],theme:{},variants:He(t.variants),rules:He(t.rules),ignorelist:He(t.ignorelist),hash:void 0,stringify:(a,r)=>a+":"+r,finalize:[]};for(let a of He([...e,{darkMode:t.darkMode,darkColor:t.darkColor,preflight:t.preflight!==!1&&He(t.preflight),theme:t.theme,hash:t.hash,stringify:t.stringify,finalize:t.finalize}])){let{preflight:r,darkMode:o=n.darkMode,darkColor:u=n.darkColor,theme:i,variants:s,rules:c,ignorelist:l,hash:m=n.hash,stringify:p=n.stringify,finalize:f}=typeof a=="function"?a(n):a;n={preflight:n.preflight!==!1&&r!==!1&&[...n.preflight,...He(r)],darkMode:o,darkColor:u,theme:{...n.theme,...i,extend:{...n.theme.extend,...i?.extend}},variants:[...n.variants,...He(s)],rules:[...n.rules,...He(c)],ignorelist:[...n.ignorelist,...He(l)],hash:m,stringify:p,finalize:[...n.finalize,...He(f)]}}return n}function cd(e,t,n,a,r,o){for(let u of t){let i=n.get(u);i||n.set(u,i=a(u));let s=i(e,r,o);if(s)return s}}function m2(e){var t;return Js(e[0],typeof(t=e[1])=="function"?t:()=>t)}function p2(e){var t,n;return Array.isArray(e)?Js(e[0],Vs(e[1],e[2])):Js(e,Vs(t,n))}function Js(e,t){return Ed(e,(n,a,r,o)=>{let u=a.exec(n);if(u)return u.$$=n.slice(u[0].length),u.dark=o,t(u,r)})}function Ed(e,t){let n=He(e).map(f2);return(a,r,o)=>{for(let u of n){let i=t(a,u,r,o);if(i)return i}}}function f2(e){return typeof e=="string"?RegExp("^"+e+(e.includes("$")||e.slice(-1)=="-"?"":"$")):e}function h2(e,t){let n=yo(e),a=function({theme:s,darkMode:c,darkColor:l=ho,variants:m,rules:p,hash:f,stringify:g,ignorelist:y,finalize:v}){let b=new Map,S=new Map,A=new Map,N=new Map,_=Ed(y,(T,w)=>w.test(T));m.push(["dark",Array.isArray(c)||c=="class"?`${He(c)[1]||".dark"} &`:typeof c=="string"&&c!="media"?c:"@media (prefers-color-scheme:dark)"]);let x=typeof f=="function"?T=>f(T,hr):f?hr:ad;x!==ad&&v.push(T=>({...T,n:T.n&&x(T.n),d:T.d?.replace(/--(tw(?:-[\w-]+)?)\b/g,(w,C)=>"--"+x(C).replace("#",""))}));let E={theme:function({extend:T={},...w}){let C={},I={get colors(){return M("colors")},theme:M,negative(){return{}},breakpoints(F){let U={};for(let z in F)typeof F[z]=="string"&&(U["screen-"+z]=F[z]);return U}};return M;function M(F,U,z,B){if(F){if({1:F,2:B}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(F)||[,F],/[.[]/.test(F)){let K=[];F.replace(/\[([^\]]+)\]|([^.[]+)/g,(H,V,q=V)=>K.push(q)),F=K.shift(),z=U,U=K.join("-")}let L=C[F]||Object.assign(Object.assign(C[F]={},D(w,F)),D(T,F));if(U==null)return L;U||="DEFAULT";let O=L[U]??U.split("-").reduce((K,H)=>K?.[H],L)??z;return B?ea(O,{opacityValue:n0(B,M)}):O}let k={};for(let L of[...Object.keys(w),...Object.keys(T)])k[L]=M(L);return k}function D(F,U){let z=F[U];return typeof z=="function"&&(z=z(I)),z&&/color|fill|stroke/i.test(U)?function B(k,L=[]){let O={};for(let K in k){let H=k[K],V=[...L,K];O[V.join("-")]=H,K=="DEFAULT"&&(V=L,O[L.join("-")]=H),typeof H=="object"&&Object.assign(O,B(H,V))}return O}(z):z}}(s),e:Zs,h:x,s(T,w){return g(T,w,E)},d(T,w,C){return l(T,w,E,C)},v(T){return b.has(T)||b.set(T,cd(T,m,S,m2,E)||"&:"+T),b.get(T)},r(T,w){let C=JSON.stringify([T,w]);return A.has(C)||A.set(C,!_(T,E)&&cd(T,p,N,p2,E,w)),A.get(C)},f(T){return v.reduce((w,C)=>C(w,E),T)}};return E}(n),r=new Map,o=[],u=new Set;t.resume(s=>r.set(s,s),(s,c)=>{t.insert(s,o.length,c),o.push(c),u.add(s)});function i(s){let c=a.f(s),l=$s(c);if(l&&!u.has(l)){u.add(l);let m=pd(o,s);t.insert(l,m,s),o.splice(m,0,s)}return c.n}return Object.defineProperties(function(s){if(!r.size)for(let l of He(n.preflight))typeof l=="function"&&(l=l(a)),l&&(typeof l=="string"?r0("",dt.b,fo(l),a,dt.b,[],!1,!0):t0(l,{},a,dt.b)).forEach(i);s=""+s;let c=r.get(s);if(!c){let l=new Set;for(let m of Lu(fo(s),a))l.add(m.c).add(i(m));c=[...l].filter(Boolean).join(" "),r.set(s,c).set(c,c)}return c},Object.getOwnPropertyDescriptors({get target(){return t.target},theme:a.theme,config:n,snapshot(){let s=t.snapshot(),c=new Set(u),l=new Map(r),m=[...o];return()=>{s(),u=c,r=l,o=m}},clear(){t.clear(),u=new Set,r=new Map,o=[]},destroy(){this.clear(),t.destroy()}}))}function b2(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function y2(e){let t=new MutationObserver(n);return{observe(r){t.observe(r,{attributeFilter:["class"],subtree:!0,childList:!0}),a(r),n([{target:r,type:""}])},disconnect(){t.disconnect()}};function n(r){for(let{type:o,target:u}of r)if(o[0]=="a")a(u);else for(let i of u.querySelectorAll("[class]"))a(i);t.takeRecords()}function a(r){let o,u=r.getAttribute?.("class");u&&b2(u,o=e(u))&&r.setAttribute("class",o)}}function T2(e=o0,t=typeof document<"u"&&document.documentElement){if(t){let n=y2(e);n.observe(t);let{destroy:a}=e;e.destroy=()=>{n.disconnect(),a.call(e)}}return e}function Cd(e){let t=document.querySelector(e||'style[data-twind=""]');return(!t||t.tagName!="STYLE")&&(t=document.createElement("style"),document.head.prepend(t)),t.dataset.twind="claimed",t}function x2(e){let t=e?.cssRules?e:(e&&typeof e!="string"?e:Cd(e)).sheet;return{target:t,snapshot(){let n=Array.from(t.cssRules,a=>a.cssText);return()=>{this.clear(),n.forEach(this.insert)}},clear(){for(let n=t.cssRules.length;n--;)t.deleteRule(n)},destroy(){t.ownerNode?.remove()},insert(n,a){try{t.insertRule(n,a)}catch{t.insertRule(":root{}",a)}},resume:ho}}function E2(e){let t=e&&typeof e!="string"?e:Cd(e);return{target:t,snapshot(){let n=Array.from(t.childNodes,a=>a.textContent);return()=>{this.clear(),n.forEach(this.insert)}},clear(){t.textContent=""},destroy(){t.remove()},insert(n,a){t.insertBefore(document.createTextNode(n),t.childNodes[a]||null)},resume:ho}}function C2(e){let t=[];return{target:t,snapshot(){let n=[...t];return()=>{t.splice(0,t.length,...n)}},clear(){t.length=0},destroy(){this.clear()},insert(n,a,r){t.splice(a,0,e?`/*!${r.p.toString(36)},${(2*r.o).toString(36)}${r.n?","+r.n:""}*/${n}`:n)},resume:ho}}function vd(e,t){let n=typeof document>"u"?C2(!t):e?E2():x2();return t||(n.resume=w2),n}function v2(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,t=>t.cssText):He(e)).join("")}function w2(e,t){let n=v2(this.target),a=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(a.test(n)){var r;let o;if(a.lastIndex=0,this.clear(),typeof document<"u")for(let u of document.querySelectorAll("[class]"))e(u.getAttribute("class"));for(;r=a.exec(n),o&&t(n.slice(o.index+o[0].length,r?.index),{p:parseInt(o[1],36),o:parseInt(o[2],36)/2,n:o[3]}),o=r;);}}var o0=new Proxy(ho,{apply(e,t,n){return po(n[0])},get(e,t){let n=po[t];return typeof n=="function"?function(){return n.apply(po,arguments)}:n}});function wd(e={},t=vd,n){return po?.destroy(),po=T2(h2(e,typeof t=="function"?t():t),n)}function u0(e,t=!0){let n=yo(e);return wd({...n,hash:n.hash??t},()=>vd(!t))}var qE=function e(t){return new Proxy(function(n,...a){return dd(t,"",n,a)},{get(n,a){return a==="bind"?e:a in n?n[a]:function(r,...o){return dd(t,a,r,o)}}})}();function dd(e,t,n,a){return{toString(){let r=Gs(n,a),o=Zs(t+hr(JSON.stringify([t,r])));return(typeof e=="function"?e:o0)(Td({[`@keyframes ${o}`]:Gs(n,a)})),o}}}h();h();h();var k2=new Map([["align-self","-ms-grid-row-align"],["color-adjust","-webkit-print-color-adjust"],["column-gap","grid-column-gap"],["forced-color-adjust","-ms-high-contrast-adjust"],["gap","grid-gap"],["grid-template-columns","-ms-grid-columns"],["grid-template-rows","-ms-grid-rows"],["justify-self","-ms-grid-column-align"],["margin-inline-end","-webkit-margin-end"],["margin-inline-start","-webkit-margin-start"],["mask-border","-webkit-mask-box-image"],["mask-border-outset","-webkit-mask-box-image-outset"],["mask-border-slice","-webkit-mask-box-image-slice"],["mask-border-source","-webkit-mask-box-image-source"],["mask-border-repeat","-webkit-mask-box-image-repeat"],["mask-border-width","-webkit-mask-box-image-width"],["overflow-wrap","word-wrap"],["padding-inline-end","-webkit-padding-end"],["padding-inline-start","-webkit-padding-start"],["print-color-adjust","color-adjust"],["row-gap","grid-row-gap"],["scroll-margin-bottom","scroll-snap-margin-bottom"],["scroll-margin-left","scroll-snap-margin-left"],["scroll-margin-right","scroll-snap-margin-right"],["scroll-margin-top","scroll-snap-margin-top"],["scroll-margin","scroll-snap-margin"],["text-combine-upright","-ms-text-combine-horizontal"]]);function kd(e){return k2.get(e)}function Sd(e){var t=/^(?:(text-(?:decoration$|e|or|si)|back(?:ground-cl|d|f)|box-d|mask(?:$|-[ispro]|-cl)|pr|hyphena|flex-d)|(tab-|column(?!-s)|text-align-l)|(ap)|u|hy)/i.exec(e);return t?t[1]?1:t[2]?2:t[3]?3:5:0}function Ad(e,t){var n=/^(?:(pos)|(cli)|(background-i)|(flex(?:$|-b)|(?:max-|min-)?(?:block-s|inl|he|widt))|dis)/i.exec(e);return n?n[1]?/^sti/i.test(t)?1:0:n[2]?/^pat/i.test(t)?1:0:n[3]?/^image-/i.test(t)?1:0:n[4]?t[3]==="-"?2:0:/^(?:inline-)?grid$/i.test(t)?4:0:0}var S2=[["-webkit-",1],["-moz-",2],["-ms-",4]];function Pu(){return({stringify:e})=>({stringify(t,n,a){let r="",o=kd(t);o&&(r+=e(o,n,a)+";");let u=Sd(t),i=Ad(t,n);for(let s of S2)u&s[1]&&(r+=e(s[0]+t,n,a)+";"),i&s[1]&&(r+=e(t,s[0]+n,a)+";");return r+e(t,n,a)}})}h();h();var s0={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...rn(4,"rem",4,.5,.5),...rn(12,"rem",4,5),14:"3.5rem",...rn(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Re("blur"),backdropBrightness:Re("brightness"),backdropContrast:Re("contrast"),backdropGrayscale:Re("grayscale"),backdropHueRotate:Re("hueRotate"),backdropInvert:Re("invert"),backdropOpacity:Re("opacity"),backdropSaturate:Re("saturate"),backdropSepia:Re("sepia"),backgroundColor:Re("colors"),backgroundImage:{none:"none"},backgroundOpacity:Re("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...rn(200,"",100,0,50),...rn(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Re("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Re("spacing"),borderWidth:{DEFAULT:"1px",...gn(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Re("colors"),caretColor:Re("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...rn(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Re("borderColor"),divideOpacity:Re("borderOpacity"),divideWidth:Re("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...To(2,6),...To(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Re("spacing"),gradientColorStops:Re("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...To(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...To(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...rn(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...rn(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Re("spacing"),placeholderColor:Re("colors"),placeholderOpacity:Re("opacity"),outlineColor:Re("colors"),outlineOffset:gn(8,"px"),outlineWidth:gn(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Re("colors"),ringOffsetWidth:gn(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...gn(8,"px")},rotate:{...gn(2,"deg"),...gn(12,"deg",3),...gn(180,"deg",45)},saturate:rn(200,"",100,0,50),scale:{...rn(150,"",100,0,50),...rn(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Re("spacing"),scrollPadding:Re("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...gn(2,"deg"),...gn(12,"deg",3)},space:Re("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:rn(2),textColor:Re("colors"),textDecorationColor:Re("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...gn(8,"px")},textUnderlineOffset:{auto:"auto",...gn(8,"px")},textIndent:Re("spacing"),textOpacity:Re("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Re("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...To(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...rn(50,"",1,0,10),auto:"auto"}};function To(e,t){let n={};do for(var a=1;at(e)}var A2={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${s0.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${s0.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},D2=[ne("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:Hn(`[${t}]`,"",n)}}})),ne("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),ae("aspect-","aspectRatio"),ne("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:a,padding:r}=t("container"),o={width:"100%",marginRight:a&&"auto",marginLeft:a&&"auto",...u("xs")};for(let i in n){let s=n[i];typeof s=="string"&&(o[Mu(s)]={"&":{maxWidth:s,...u(i)}})}return o;function u(i){let s=r&&(typeof r=="string"?r:r[i]||r.DEFAULT);if(s)return{paddingRight:s,paddingLeft:s}}}),ae("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),ne("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),ne("box-(border|content)","boxSizing",({1:e})=>e+"-box"),ne("hidden",{display:"none"}),ne("table-(auto|fixed)","tableLayout"),ne(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",ne("isolate","isolation"),ne("object-(contain|cover|fill|none|scale-down)","objectFit"),ae("object-","objectPosition"),ne("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",Fu),ne("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),ne("(static|fixed|absolute|relative|sticky)","position"),ae("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),ae("-?(top|bottom|left|right)(?:$|-)","inset"),ne("(visible|collapse)","visibility"),ne("invisible",{visibility:"hidden"}),ae("-?z-","zIndex"),ne("flex-((row|col)(-reverse)?)","flexDirection",Dd),ne("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),ae("(flex-(?:grow|shrink))(?:$|-)"),ae("(flex)-"),ae("grow(?:$|-)","flexGrow"),ae("shrink(?:$|-)","flexShrink"),ae("basis-","flexBasis"),ae("-?(order)-"),"-?(order)-(\\d+)",ae("grid-cols-","gridTemplateColumns"),ne("grid-cols-(\\d+)","gridTemplateColumns",Fd),ae("col-","gridColumn"),ne("col-(span)-(\\d+)","gridColumn",Pd),ae("col-start-","gridColumnStart"),ne("col-start-(auto|\\d+)","gridColumnStart"),ae("col-end-","gridColumnEnd"),ne("col-end-(auto|\\d+)","gridColumnEnd"),ae("grid-rows-","gridTemplateRows"),ne("grid-rows-(\\d+)","gridTemplateRows",Fd),ae("row-","gridRow"),ne("row-(span)-(\\d+)","gridRow",Pd),ae("row-start-","gridRowStart"),ne("row-start-(auto|\\d+)","gridRowStart"),ae("row-end-","gridRowEnd"),ne("row-end-(auto|\\d+)","gridRowEnd"),ne("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>Fu(Dd(e))),ne("grid-flow-(dense)","gridAutoFlow"),ae("auto-cols-","gridAutoColumns"),ae("auto-rows-","gridAutoRows"),ae("gap-x(?:$|-)","gap","columnGap"),ae("gap-y(?:$|-)","gap","rowGap"),ae("gap(?:$|-)","gap"),"(justify-(?:items|self))-",ne("justify-","justifyContent",Ld),ne("(content|items|self)-",e=>({["align-"+e[1]]:Ld(e)})),ne("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),ae("p([xytrbl])?(?:$|-)","padding",yr("padding")),ae("-?m([xytrbl])?(?:$|-)","margin",yr("margin")),ae("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),ne("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),ae("w-","width"),ae("min-w-","minWidth"),ae("max-w-","maxWidth"),ae("h-","height"),ae("min-h-","minHeight"),ae("max-h-","maxHeight"),ae("font-","fontWeight"),ae("font-","fontFamily",({_:e})=>typeof(e=He(e))[1]=="string"?{fontFamily:Sn(e)}:{fontFamily:Sn(e[0]),...e[1]}),ne("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),ne("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),ne("italic","fontStyle"),ne("not-italic",{fontStyle:"normal"}),ne("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...ba({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),ae("tracking-","letterSpacing"),ae("leading-","lineHeight"),ne("list-(inside|outside)","listStylePosition"),ae("list-","listStyleType"),ne("list-","listStyleType"),ae("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),yt("placeholder-",{property:"color",selector:"&::placeholder"}),ne("text-(left|center|right|justify|start|end)","textAlign"),ne("text-(ellipsis|clip)","textOverflow"),ae("text-opacity-","textOpacity","--tw-text-opacity"),yt("text-",{property:"color"}),ae("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),ae("indent-","textIndent"),ne("(overline|underline|line-through)","textDecorationLine"),ne("no-underline",{textDecorationLine:"none"}),ae("underline-offset-","textUnderlineOffset"),yt("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),ae("decoration-","textDecorationThickness"),ne("decoration-","textDecorationStyle"),ne("(uppercase|lowercase|capitalize)","textTransform"),ne("normal-case",{textTransform:"none"}),ne("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),ne("align-","verticalAlign"),ne("whitespace-","whiteSpace"),ne("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),ne("break-words",{overflowWrap:"break-word"}),ne("break-all",{wordBreak:"break-all"}),ne("break-keep",{wordBreak:"keep-all"}),yt("caret-",{opacityVariable:!1,opacitySection:"opacity"}),yt("accent-",{opacityVariable:!1,opacitySection:"opacity"}),ne("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${qa(e," ")},var(--tw-gradient-stops))`),yt("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),yt("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),yt("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),ne("bg-(fixed|local|scroll)","backgroundAttachment"),ne("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),ne(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),ne("bg-blend-","backgroundBlendMode"),ne("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),ae("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),yt("bg-",{section:"backgroundColor"}),ae("bg-","backgroundImage"),ae("bg-","backgroundPosition"),ne("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",Fu),ae("bg-","backgroundSize"),ae("rounded(?:$|-)","borderRadius"),ae("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${qa(n[0])}-radius`]:t,[`border-${qa(n[1])}-radius`]:t}}),ne("border-(collapse|separate)","borderCollapse"),ae("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),ne("border-(solid|dashed|dotted|double|none)","borderStyle"),ae("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...ba({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),yt("border-([xytrbl])-",{section:"borderColor"},yr("border","Color")),yt("border-"),ae("border-([xytrbl])(?:$|-)","borderWidth",yr("border","Width")),ae("border(?:$|-)","borderWidth"),ae("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),ne("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),ne("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),ae("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${qa(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${qa(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),yt("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),ae("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),yt("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),ae("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),ne("ring-inset",{"--tw-ring-inset":"inset"}),yt("ring-",{property:"--tw-ring-color"}),ae("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...ba({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":ea(t("ringOffsetColor","","#fff")),"--tw-ring-color":ea(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),yt("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),ae("shadow(?:$|-)","boxShadow",({_:e})=>({...ba({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Sn(e),"--tw-shadow-colored":Sn(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),ae("(opacity)-"),ne("mix-blend-","mixBlendMode"),...Md(),...Md("backdrop-"),ae("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Sn(e),transitionTimingFunction:e._=="none"?void 0:Sn(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:Sn(t("transitionDuration",""))})),ae("duration(?:$|-)","transitionDuration","transitionDuration",Sn),ae("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Sn),ae("delay(?:$|-)","transitionDelay","transitionDelay",Sn),ae("animate(?:$|-)","animation",(e,{theme:t,h:n,e:a})=>{let r=Sn(e),o=r.split(" "),u=t("keyframes",o[0]);return u?{["@keyframes "+(o[0]=a(n(o[0])))]:u,animation:o.join(" ")}:{animation:r}}),"(transform)-(none)",ne("transform",l0),ne("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":_d(e=="gpu")})),ae("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...l0()})),ae("-?(rotate)-","rotate",i0),ae("-?(translate-[xy])-","translate",i0),ae("-?(skew-[xy])-","skew",i0),ne("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",Fu),"(appearance)-",ae("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",ae("(cursor)-"),"(cursor)-",ne("snap-(none)","scroll-snap-type"),ne("snap-(x|y|both)",({1:e})=>({...ba({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),ne("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),ne("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),ne("snap-(normal|always)","scroll-snap-stop"),ne("scroll-(auto|smooth)","scroll-behavior"),ae("scroll-p([xytrbl])?(?:$|-)","padding",yr("scroll-padding")),ae("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",yr("scroll-margin")),ne("touch-(auto|none|manipulation)","touch-action"),ne("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...ba({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),ne("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),ne("outline",{outlineStyle:"solid"}),ne("outline-(dashed|dotted|double)","outlineStyle"),ae("-?(outline-offset)-"),yt("outline-",{opacityVariable:!1,opacitySection:"opacity"}),ae("outline-","outlineWidth"),"(pointer-events)-",ae("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],ne("select-(none|text|all|auto)","userSelect"),yt("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),yt("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),ae("stroke-","strokeWidth"),ne("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),ne("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function Fu(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function Dd(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function qa(e,t="-"){let n=[];for(let a of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[a]);return n.join(t)}function Sn(e){return e&&""+(e._||e)}function Ld({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function yr(e,t=""){return({1:n,_:a})=>{let r={x:"lr",y:"tb"}[n]||n+n;return r?{...bo(e+"-"+qa(r[0])+t,a),...bo(e+"-"+qa(r[1])+t,a)}:bo(e+t,a)}}function Md(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let a of t)n[`--tw-${e}${a}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...ba(n),[`${e}filter`]:t.map(a=>`var(--tw-${e}${a})`).join(" ")},[`(${e}filter)-(none)`,ne(`${e}filter`,n),...t.map(a=>ae(`${a[0]=="h"?"-?":""}(${e}${a})(?:$|-)`,a,({1:r,_:o})=>({[`--tw-${r}`]:He(o).map(u=>`${a}(${u})`).join(" "),...n})))]}function i0({1:e,_:t}){return{["--tw-"+e]:t,...l0()}}function l0(){return{...ba({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":_d()}),transform:"var(--tw-transform)"}}function _d(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function Pd({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function Fd({1:e}){return`repeat(${e},minmax(0,1fr))`}function ba(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}var L2=[["sticky","@supports ((position: -webkit-sticky) or (position:sticky))"],["motion-reduce","@media (prefers-reduced-motion:reduce)"],["motion-safe","@media (prefers-reduced-motion:no-preference)"],["print","@media print"],["(portrait|landscape)",({1:e})=>`@media (orientation:${e})`],["contrast-(more|less)",({1:e})=>`@media (prefers-contrast:${e})`],["(first-(letter|line)|placeholder|backdrop|before|after)",({1:e})=>`&::${e}`],["(marker|selection)",({1:e})=>`& *::${e},&::${e}`],["file","&::file-selector-button"],["(first|last|only)",({1:e})=>`&:${e}-child`],["even","&:nth-child(2n)"],["odd","&:nth-child(odd)"],["open","&[open]"],["(aria|data)-",({1:e,$$:t},n)=>t&&`&[${e}-${n.theme(e,t)||Hn(t,"",n)||`${t}="true"`}]`],["((group|peer)(~[^-[]+)?)(-\\[(.+)]|[-[].+?)(\\/.+)?",({2:e,3:t="",4:n,5:a="",6:r=t},{e:o,h:u,v:i})=>{let s=br(a)||(n[0]=="["?n:i(n.slice(1)));return`${(s.includes("&")?s:"&"+s).replace(/&/g,`:merge(.${o(u(e+r))})`)}${e[0]=="p"?"~":" "}&`}],["(ltr|rtl)",({1:e})=>`[dir="${e}"] &`],["supports-",({$$:e},t)=>{if(e&&=t.theme("supports",e)||Hn(e,"",t),e)return e.includes(":")||(e+=":var(--tw)"),/^\w*\s*\(/.test(e)||(e=`(${e})`),`@supports ${e.replace(/\b(and|or|not)\b/g," $1 ").trim()}`}],["max-",({$$:e},t)=>{if(e&&=t.theme("screens",e)||Hn(e,"",t),typeof e=="string")return`@media not all and (min-width:${e})`}],["min-",({$$:e},t)=>(e&&=Hn(e,"",t))&&`@media (min-width:${e})`],[/^\[(.+)]$/,({1:e})=>/[&@]/.test(e)&&br(e).replace(/[}]+$/,"").split("{")]];function M2({colors:e,disablePreflight:t}={}){return{preflight:t?void 0:A2,theme:{...s0,colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",...e}},variants:L2,rules:D2,finalize(n){return n.n&&n.d&&n.r.some(a=>/^&::(before|after)$/.test(a))&&!/(^|;)content:/.test(n.d)?{...n,d:"content:var(--tw-content);"+n.d}:n}}}var P2={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},F2={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},_2={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},B2={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},R2={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},I2={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},O2={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},N2={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},U2={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},j2={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},z2={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},H2={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},q2={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},W2={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},K2={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},$2={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},G2={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},V2={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},Y2={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},J2={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},Q2={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},Z2={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},X2={__proto__:null,slate:P2,gray:F2,zinc:_2,neutral:B2,stone:R2,red:I2,orange:O2,amber:N2,yellow:U2,lime:j2,green:z2,emerald:H2,teal:q2,cyan:W2,sky:K2,blue:$2,indigo:G2,violet:V2,purple:Y2,fuchsia:J2,pink:Q2,rose:Z2};function _u({disablePreflight:e}={}){return M2({colors:X2,disablePreflight:e})}h();h();var Bu=globalThis||(typeof window<"u"?window:self),e1=Object.create,d0=Object.defineProperty,t1=Object.getOwnPropertyDescriptor,n1=Object.getOwnPropertyNames,a1=Object.getPrototypeOf,r1=Object.prototype.hasOwnProperty,o1=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),u1=(e,t)=>{for(var n in t)d0(e,n,{get:t[n],enumerable:!0})},c0=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of n1(t))!r1.call(e,r)&&r!==n&&d0(e,r,{get:()=>t[r],enumerable:!(a=t1(t,r))||a.enumerable});return e},i1=(e,t,n)=>(c0(e,t,"default"),n&&c0(n,t,"default")),Rd=(e,t,n)=>(n=e!=null?e1(a1(e)):{},c0(t||!e||!e.__esModule?d0(n,"default",{value:e,enumerable:!0}):n,e)),Id=o1((e,t)=>{(function(n,a){typeof define=="function"&&define.amd?define([],a):typeof e<"u"?a():(a(),n.FileSaver={})})(e,function(){"use strict";function n(c,l){return typeof l>"u"?l={autoBom:!1}:typeof l!="object"&&(l={autoBom:!l}),l.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function a(c,l,m){var p=new XMLHttpRequest;p.open("GET",c),p.responseType="blob",p.onload=function(){s(p.response,l,m)},p.onerror=function(){},p.send()}function r(c){var l=new XMLHttpRequest;l.open("HEAD",c,!1);try{l.send()}catch{}return 200<=l.status&&299>=l.status}function o(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var l=document.createEvent("MouseEvents");l.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(l)}}var u=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Bu=="object"&&Bu.global===Bu?Bu:void 0,i=u.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=u.saveAs||(typeof window!="object"||window!==u?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(c,l,m){var p=u.URL||u.webkitURL,f=document.createElement("a");l=l||c.name||"download",f.download=l,f.rel="noopener",typeof c=="string"?(f.href=c,f.origin===location.origin?o(f):r(f.href)?a(c,l,m):o(f,f.target="_blank")):(f.href=p.createObjectURL(c),setTimeout(function(){p.revokeObjectURL(f.href)},4e4),setTimeout(function(){o(f)},0))}:"msSaveOrOpenBlob"in navigator?function(c,l,m){if(l=l||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(n(c,m),l);else if(r(c))a(c,l,m);else{var p=document.createElement("a");p.href=c,p.target="_blank",setTimeout(function(){o(p)})}}:function(c,l,m,p){if(p=p||open("","_blank"),p&&(p.document.title=p.document.body.innerText="downloading..."),typeof c=="string")return a(c,l,m);var f=c.type==="application/octet-stream",g=/constructor/i.test(u.HTMLElement)||u.safari,y=/CriOS\/[\d]+/.test(navigator.userAgent);if((y||f&&g||i)&&typeof FileReader<"u"){var v=new FileReader;v.onloadend=function(){var A=v.result;A=y?A:A.replace(/^data:[^;]*;/,"data:attachment/file;"),p?p.location.href=A:location=A,p=null},v.readAsDataURL(c)}else{var b=u.URL||u.webkitURL,S=b.createObjectURL(c);p?p.location=S:location.href=S,p=null,setTimeout(function(){b.revokeObjectURL(S)},4e4)}});u.saveAs=s.saveAs=s,typeof t<"u"&&(t.exports=s)})}),Od={};u1(Od,{default:()=>xo});var s1=Rd(Id());i1(Od,Rd(Id()));var{default:Bd,...l1}=s1,xo=Bd!==void 0?Bd:l1;h();h();h();h();h();h();h();function Tr(){let e,t="pending",n=new Promise((a,r)=>{e={async resolve(o){await o,t="fulfilled",a(o)},reject(o){t="rejected",r(o)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}h();var g0=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function Ru(e,t){let n=Tr(),a=setTimeout(()=>n.reject(new g0),t);return Promise.race([e,n]).finally(()=>clearTimeout(a))}h();h();function qn(e,t={}){let{signal:n,persistent:a}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((r,o)=>{let u=()=>{clearTimeout(s),o(new DOMException("Delay was aborted.","AbortError"))},s=setTimeout(()=>{n?.removeEventListener("abort",u),r()},e);if(n?.addEventListener("abort",u,{once:!0}),a===!1)try{Deno.unrefTimer(s)}catch(c){if(!(c instanceof ReferenceError))throw c}})}h();var Nd=class{#e=0;#t=[];#n=[];#a=Tr();add(t){++this.#e,this.#r(t[Symbol.asyncIterator]())}async#r(t){try{let{value:n,done:a}=await t.next();a?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#a.resolve()}async*iterate(){for(;this.#e>0;){await this.#a;for(let t=0;tI1,bgBlue:()=>j1,bgBrightBlack:()=>W1,bgBrightBlue:()=>V1,bgBrightCyan:()=>J1,bgBrightGreen:()=>$1,bgBrightMagenta:()=>Y1,bgBrightRed:()=>K1,bgBrightWhite:()=>Q1,bgBrightYellow:()=>G1,bgCyan:()=>H1,bgGreen:()=>N1,bgMagenta:()=>z1,bgRed:()=>O1,bgRgb24:()=>t6,bgRgb8:()=>X1,bgWhite:()=>q1,bgYellow:()=>U1,black:()=>x1,blue:()=>w1,bold:()=>m1,brightBlack:()=>zd,brightBlue:()=>F1,brightCyan:()=>B1,brightGreen:()=>M1,brightMagenta:()=>_1,brightRed:()=>L1,brightWhite:()=>R1,brightYellow:()=>P1,cyan:()=>S1,dim:()=>p1,getColorEnabled:()=>d1,gray:()=>D1,green:()=>C1,hidden:()=>y1,inverse:()=>b1,italic:()=>f1,magenta:()=>k1,red:()=>E1,reset:()=>g1,rgb24:()=>e6,rgb8:()=>Z1,setColorEnabled:()=>c1,strikethrough:()=>T1,stripColor:()=>a6,underline:()=>h1,white:()=>A1,yellow:()=>v1});h();var{Deno:Ud}=globalThis,jd=typeof Ud?.noColor=="boolean"?Ud.noColor:!0,m0=!jd;function c1(e){jd||(m0=e)}function d1(){return m0}function we(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function ke(e,t){return m0?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function g1(e){return ke(e,we([0],0))}function m1(e){return ke(e,we([1],22))}function p1(e){return ke(e,we([2],22))}function f1(e){return ke(e,we([3],23))}function h1(e){return ke(e,we([4],24))}function b1(e){return ke(e,we([7],27))}function y1(e){return ke(e,we([8],28))}function T1(e){return ke(e,we([9],29))}function x1(e){return ke(e,we([30],39))}function E1(e){return ke(e,we([31],39))}function C1(e){return ke(e,we([32],39))}function v1(e){return ke(e,we([33],39))}function w1(e){return ke(e,we([34],39))}function k1(e){return ke(e,we([35],39))}function S1(e){return ke(e,we([36],39))}function A1(e){return ke(e,we([37],39))}function D1(e){return zd(e)}function zd(e){return ke(e,we([90],39))}function L1(e){return ke(e,we([91],39))}function M1(e){return ke(e,we([92],39))}function P1(e){return ke(e,we([93],39))}function F1(e){return ke(e,we([94],39))}function _1(e){return ke(e,we([95],39))}function B1(e){return ke(e,we([96],39))}function R1(e){return ke(e,we([97],39))}function I1(e){return ke(e,we([40],49))}function O1(e){return ke(e,we([41],49))}function N1(e){return ke(e,we([42],49))}function U1(e){return ke(e,we([43],49))}function j1(e){return ke(e,we([44],49))}function z1(e){return ke(e,we([45],49))}function H1(e){return ke(e,we([46],49))}function q1(e){return ke(e,we([47],49))}function W1(e){return ke(e,we([100],49))}function K1(e){return ke(e,we([101],49))}function $1(e){return ke(e,we([102],49))}function G1(e){return ke(e,we([103],49))}function V1(e){return ke(e,we([104],49))}function Y1(e){return ke(e,we([105],49))}function J1(e){return ke(e,we([106],49))}function Q1(e){return ke(e,we([107],49))}function ya(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function Z1(e,t){return ke(e,we([38,5,ya(t)],39))}function X1(e,t){return ke(e,we([48,5,ya(t)],49))}function e6(e,t){return typeof t=="number"?ke(e,we([38,2,t>>16&255,t>>8&255,t&255],39)):ke(e,we([38,2,ya(t.r),ya(t.g),ya(t.b)],39))}function t6(e,t){return typeof t=="number"?ke(e,we([48,2,t>>16&255,t>>8&255,t&255],49)):ke(e,we([48,2,ya(t.r),ya(t.g),ya(t.b)],49))}var n6=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function a6(e){return e.replace(n6,"")}h();h();var p0=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},r6={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function f0(e,t){let n={...r6,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let a=n.minTimeout,r;for(let o=0;osetTimeout(i,a)),a*=n.multiplier,a=Math.max(a,n.minTimeout),n.maxTimeout>=0&&(a=Math.min(a,n.maxTimeout)),r=u}throw new p0(r,n.maxAttempts)}h();var ta=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function h0(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",a,r=t.length;for(a=2;a>2],n+=ta[(t[a-2]&3)<<4|t[a-1]>>4],n+=ta[(t[a-1]&15)<<2|t[a]>>6],n+=ta[t[a]&63];return a===r+1&&(n+=ta[t[a-2]>>2],n+=ta[(t[a-2]&3)<<4],n+="=="),a===r&&(n+=ta[t[a-2]>>2],n+=ta[(t[a-2]&3)<<4|t[a-1]>>4],n+=ta[(t[a-1]&15)<<2],n+="="),n}h();h();var mC=Number.isNaN||function(e){return typeof e=="number"&&e!==e};h();h();var Iu=globalThis||(typeof window<"u"?window:self),u6=Object.create,y0=Object.defineProperty,i6=Object.getOwnPropertyDescriptor,s6=Object.getOwnPropertyNames,l6=Object.getPrototypeOf,c6=Object.prototype.hasOwnProperty,d6=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),g6=(e,t)=>{for(var n in t)y0(e,n,{get:t[n],enumerable:!0})},b0=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of s6(t))!c6.call(e,r)&&r!==n&&y0(e,r,{get:()=>t[r],enumerable:!(a=i6(t,r))||a.enumerable});return e},m6=(e,t,n)=>(b0(e,t,"default"),n&&b0(n,t,"default")),qd=(e,t,n)=>(n=e!=null?u6(l6(e)):{},b0(t||!e||!e.__esModule?y0(n,"default",{value:e,enumerable:!0}):n,e)),Wd=d6((e,t)=>{var n="Expected a function",a=NaN,r="[object Symbol]",o=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,l=typeof Iu=="object"&&Iu&&Iu.Object===Object&&Iu,m=typeof self=="object"&&self&&self.Object===Object&&self,p=l||m||Function("return this")(),f=Object.prototype,g=f.toString,y=Math.max,v=Math.min,b=function(){return p.Date.now()};function S(T,w,C){var I,M,D,F,U,z,B=0,k=!1,L=!1,O=!0;if(typeof T!="function")throw new TypeError(n);w=E(w)||0,N(C)&&(k=!!C.leading,L="maxWait"in C,D=L?y(E(C.maxWait)||0,w):D,O="trailing"in C?!!C.trailing:O);function K(ie){var Y=I,ce=M;return I=M=void 0,B=ie,F=T.apply(ce,Y),F}function H(ie){return B=ie,U=setTimeout(oe,w),k?K(ie):F}function V(ie){var Y=ie-z,ce=ie-B,fe=w-Y;return L?v(fe,D-ce):fe}function q(ie){var Y=ie-z,ce=ie-B;return z===void 0||Y>=w||Y<0||L&&ce>=D}function oe(){var ie=b();if(q(ie))return Z(ie);U=setTimeout(oe,V(ie))}function Z(ie){return U=void 0,O&&I?K(ie):(I=M=void 0,F)}function J(){U!==void 0&&clearTimeout(U),B=0,I=z=M=U=void 0}function ye(){return U===void 0?F:Z(b())}function Te(){var ie=b(),Y=q(ie);if(I=arguments,M=this,z=ie,Y){if(U===void 0)return H(z);if(L)return U=setTimeout(oe,w),K(z)}return U===void 0&&(U=setTimeout(oe,w)),F}return Te.cancel=J,Te.flush=ye,Te}function A(T,w,C){var I=!0,M=!0;if(typeof T!="function")throw new TypeError(n);return N(C)&&(I="leading"in C?!!C.leading:I,M="trailing"in C?!!C.trailing:M),S(T,w,{leading:I,maxWait:w,trailing:M})}function N(T){var w=typeof T;return!!T&&(w=="object"||w=="function")}function _(T){return!!T&&typeof T=="object"}function x(T){return typeof T=="symbol"||_(T)&&g.call(T)==r}function E(T){if(typeof T=="number")return T;if(x(T))return a;if(N(T)){var w=typeof T.valueOf=="function"?T.valueOf():T;T=N(w)?w+"":w}if(typeof T!="string")return T===0?T:+T;T=T.replace(o,"");var C=i.test(T);return C||s.test(T)?c(T.slice(2),C?2:8):u.test(T)?a:+T}t.exports=A}),Kd={};g6(Kd,{default:()=>Ft});var p6=qd(Wd());m6(Kd,qd(Wd()));var{default:Hd,...f6}=p6,Ft=Hd!==void 0?Hd:f6;h();h();var h6=Object.create,x0=Object.defineProperty,b6=Object.getOwnPropertyDescriptor,y6=Object.getOwnPropertyNames,T6=Object.getPrototypeOf,x6=Object.prototype.hasOwnProperty,E6=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),C6=(e,t)=>{for(var n in t)x0(e,n,{get:t[n],enumerable:!0})},T0=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of y6(t))!x6.call(e,r)&&r!==n&&x0(e,r,{get:()=>t[r],enumerable:!(a=b6(t,r))||a.enumerable});return e},v6=(e,t,n)=>(T0(e,t,"default"),n&&T0(n,t,"default")),Gd=(e,t,n)=>(n=e!=null?h6(T6(e)):{},T0(t||!e||!e.__esModule?x0(n,"default",{value:e,enumerable:!0}):n,e)),Vd=E6((e,t)=>{(function(n,a){typeof e=="object"&&typeof t=="object"?t.exports=a():typeof define=="function"&&define.amd?define([],a):typeof e=="object"?e.notie=a():n.notie=a()})(e,function(){return function(n){function a(o){if(r[o])return r[o].exports;var u=r[o]={i:o,l:!1,exports:{}};return n[o].call(u.exports,u,u.exports,a),u.l=!0,u.exports}var r={};return a.m=n,a.c=r,a.i=function(o){return o},a.d=function(o,u,i){a.o(o,u)||Object.defineProperty(o,u,{configurable:!1,enumerable:!0,get:i})},a.n=function(o){var u=o&&o.__esModule?function(){return o.default}:function(){return o};return a.d(u,"a",u),u},a.o=function(o,u){return Object.prototype.hasOwnProperty.call(o,u)},a.p="",a(a.s=1)}([function(n,a){n.exports=function(r){return r.webpackPolyfill||(r.deprecate=function(){},r.paths=[],r.children||(r.children=[]),Object.defineProperty(r,"loaded",{enumerable:!0,get:function(){return r.l}}),Object.defineProperty(r,"id",{enumerable:!0,get:function(){return r.i}}),r.webpackPolyfill=1),r}},function(n,a,r){"use strict";(function(o){var u,i,s,c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l};(function(l,m){c(a)==="object"&&c(o)==="object"?o.exports=m():(i=[],u=m,s=typeof u=="function"?u.apply(a,i):u,s!==void 0&&(o.exports=s))})(void 0,function(){return function(l){function m(f){if(p[f])return p[f].exports;var g=p[f]={i:f,l:!1,exports:{}};return l[f].call(g.exports,g,g.exports,m),g.l=!0,g.exports}var p={};return m.m=l,m.c=p,m.i=function(f){return f},m.d=function(f,g,y){m.o(f,g)||Object.defineProperty(f,g,{configurable:!1,enumerable:!0,get:y})},m.n=function(f){var g=f&&f.__esModule?function(){return f.default}:function(){return f};return m.d(g,"a",g),g},m.o=function(f,g){return Object.prototype.hasOwnProperty.call(f,g)},m.p="",m(m.s=0)}([function(l,m,p){function f(H,V){var q={};for(var oe in H)V.indexOf(oe)>=0||Object.prototype.hasOwnProperty.call(H,oe)&&(q[oe]=H[oe]);return q}Object.defineProperty(m,"__esModule",{value:!0});var g=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(H){return typeof H>"u"?"undefined":c(H)}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H>"u"?"undefined":c(H)},y=Object.assign||function(H){for(var V=1;V'+oe+"",ce.onclick=function(){return M(fe,Y)},ce.listener=function(ge){(w(ge)||C(ge))&&U()},I(ce,Y),J&&J<1&&(J=1),!Te&&J&&N(J).then(function(){return M(fe,Y)})},B=m.force=function(H,V){var q=H.type,oe=q===void 0?5:q,Z=H.text,J=H.buttonText,ye=J===void 0?"OK":J,Te=H.callback,ie=H.position,Y=ie===void 0?b.positions.force||Y.top:ie;_(),U();var ce=document.createElement("div"),fe=x();ce.id=fe;var ge=document.createElement("div");ge.classList.add(b.classes.textbox),ge.classList.add(b.classes.backgroundInfo),ge.innerHTML='
'+Z+"
";var Ee=document.createElement("div");Ee.classList.add(b.classes.button),Ee.classList.add(E[oe]),Ee.innerHTML=ye,Ee.onclick=function(){M(fe,Y),F(),Te?Te():V&&V()},ce.appendChild(ge),ce.appendChild(Ee),ce.listener=function(Le){w(Le)&&Ee.click()},I(ce,Y),D()},k=m.confirm=function(H,V,q){var oe=H.text,Z=H.submitText,J=Z===void 0?"Yes":Z,ye=H.cancelText,Te=ye===void 0?"Cancel":ye,ie=H.submitCallback,Y=H.cancelCallback,ce=H.position,fe=ce===void 0?b.positions.confirm||fe.top:ce;_(),U();var ge=document.createElement("div"),Ee=x();ge.id=Ee;var Le=document.createElement("div");Le.classList.add(b.classes.textbox),Le.classList.add(b.classes.backgroundInfo),Le.innerHTML='
'+oe+"
";var ve=document.createElement("div");ve.classList.add(b.classes.button),ve.classList.add(b.classes.elementHalf),ve.classList.add(b.classes.backgroundSuccess),ve.innerHTML=J,ve.onclick=function(){M(Ee,fe),F(),ie?ie():V&&V()};var ee=document.createElement("div");ee.classList.add(b.classes.button),ee.classList.add(b.classes.elementHalf),ee.classList.add(b.classes.backgroundError),ee.innerHTML=Te,ee.onclick=function(){M(Ee,fe),F(),Y?Y():q&&q()},ge.appendChild(Le),ge.appendChild(ve),ge.appendChild(ee),ge.listener=function(De){w(De)?ve.click():C(De)&&ee.click()},I(ge,fe),D(ge,fe)},L=function(H,V,q){var oe=H.text,Z=H.submitText,J=Z===void 0?"Submit":Z,ye=H.cancelText,Te=ye===void 0?"Cancel":ye,ie=H.submitCallback,Y=H.cancelCallback,ce=H.position,fe=ce===void 0?b.positions.input||fe.top:ce,ge=f(H,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);_(),U();var Ee=document.createElement("div"),Le=x();Ee.id=Le;var ve=document.createElement("div");ve.classList.add(b.classes.textbox),ve.classList.add(b.classes.backgroundInfo),ve.innerHTML='
'+oe+"
";var ee=document.createElement("input");ee.classList.add(b.classes.inputField),ee.setAttribute("autocapitalize",ge.autocapitalize||"none"),ee.setAttribute("autocomplete",ge.autocomplete||"off"),ee.setAttribute("autocorrect",ge.autocorrect||"off"),ee.setAttribute("autofocus",ge.autofocus||"true"),ee.setAttribute("inputmode",ge.inputmode||"verbatim"),ee.setAttribute("max",ge.max||""),ee.setAttribute("maxlength",ge.maxlength||""),ee.setAttribute("min",ge.min||""),ee.setAttribute("minlength",ge.minlength||""),ee.setAttribute("placeholder",ge.placeholder||""),ee.setAttribute("spellcheck",ge.spellcheck||"default"),ee.setAttribute("step",ge.step||"any"),ee.setAttribute("type",ge.type||"text"),ee.value=ge.value||"",ge.allowed&&(ee.oninput=function(){var je=void 0;if(Array.isArray(ge.allowed)){for(var We="",Et=ge.allowed,Vt=0;Vt'+q+"",Y.appendChild(fe),ye.forEach(function(Ee,Le){var ve=Ee.type,ee=ve===void 0?1:ve,De=Ee.text,_e=Ee.handler,je=document.createElement("div");je.classList.add(E[ee]),je.classList.add(b.classes.button),je.classList.add(b.classes.selectChoice);var We=ye[Le+1];We&&!We.type&&(We.type=1),We&&We.type===ee&&je.classList.add(b.classes.selectChoiceRepeated),je.innerHTML=De,je.onclick=function(){M(ce,ie),F(),_e()},Y.appendChild(je)});var ge=document.createElement("div");ge.classList.add(b.classes.backgroundNeutral),ge.classList.add(b.classes.button),ge.innerHTML=Z,ge.onclick=function(){M(ce,ie),F(),J?J():V&&V()},Y.appendChild(ge),Y.listener=function(Ee){C(Ee)&&ge.click()},I(Y,ie),D(Y,ie)},K=m.date=function(H,V,q){var oe=H.value,Z=oe===void 0?new Date:oe,J=H.submitText,ye=J===void 0?"OK":J,Te=H.cancelText,ie=Te===void 0?"Cancel":Te,Y=H.submitCallback,ce=H.cancelCallback,fe=H.position,ge=fe===void 0?b.positions.date||ge.top:fe;_(),U();var Ee="▾",Le=document.createElement("div"),ve=document.createElement("div"),ee=document.createElement("div"),De=function(Ve){Le.innerHTML=b.dateMonths[Ve.getMonth()],ve.innerHTML=Ve.getDate(),ee.innerHTML=Ve.getFullYear()},_e=function(Ve){var W=new Date(Z.getFullYear(),Z.getMonth()+1,0).getDate(),pe=Ve.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(pe)>W&&(pe=W.toString()),Ve.target.textContent=pe,Number(pe)<1&&(pe="1"),Z.setDate(Number(pe))},je=function(Ve){var W=Ve.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);Ve.target.textContent=W,Z.setFullYear(Number(W))},We=function(Ve){De(Z)},Et=function(Ve){var W=new Date(Z.getFullYear(),Z.getMonth()+Ve+1,0).getDate();Z.getDate()>W&&Z.setDate(W),Z.setMonth(Z.getMonth()+Ve),De(Z)},Vt=function(Ve){Z.setDate(Z.getDate()+Ve),De(Z)},za=function(Ve){var W=Z.getFullYear()+Ve;W<0?Z.setFullYear(0):Z.setFullYear(Z.getFullYear()+Ve),De(Z)},nn=document.createElement("div"),Qn=x();nn.id=Qn;var ma=document.createElement("div");ma.classList.add(b.classes.backgroundInfo);var ze=document.createElement("div");ze.classList.add(b.classes.dateSelectorInner);var an=document.createElement("div");an.classList.add(b.classes.button),an.classList.add(b.classes.elementThird),an.classList.add(b.classes.dateSelectorUp),an.innerHTML=Ee;var ht=document.createElement("div");ht.classList.add(b.classes.button),ht.classList.add(b.classes.elementThird),ht.classList.add(b.classes.dateSelectorUp),ht.innerHTML=Ee;var Ze=document.createElement("div");Ze.classList.add(b.classes.button),Ze.classList.add(b.classes.elementThird),Ze.classList.add(b.classes.dateSelectorUp),Ze.innerHTML=Ee,Le.classList.add(b.classes.element),Le.classList.add(b.classes.elementThird),Le.innerHTML=b.dateMonths[Z.getMonth()],ve.classList.add(b.classes.element),ve.classList.add(b.classes.elementThird),ve.setAttribute("contentEditable",!0),ve.addEventListener("input",_e),ve.addEventListener("blur",We),ve.innerHTML=Z.getDate(),ee.classList.add(b.classes.element),ee.classList.add(b.classes.elementThird),ee.setAttribute("contentEditable",!0),ee.addEventListener("input",je),ee.addEventListener("blur",We),ee.innerHTML=Z.getFullYear();var ln=document.createElement("div");ln.classList.add(b.classes.button),ln.classList.add(b.classes.elementThird),ln.innerHTML=Ee;var Yt=document.createElement("div");Yt.classList.add(b.classes.button),Yt.classList.add(b.classes.elementThird),Yt.innerHTML=Ee;var pa=document.createElement("div");pa.classList.add(b.classes.button),pa.classList.add(b.classes.elementThird),pa.innerHTML=Ee,an.onclick=function(){return Et(1)},ht.onclick=function(){return Vt(1)},Ze.onclick=function(){return za(1)},ln.onclick=function(){return Et(-1)},Yt.onclick=function(){return Vt(-1)},pa.onclick=function(){return za(-1)};var kt=document.createElement("div");kt.classList.add(b.classes.button),kt.classList.add(b.classes.elementHalf),kt.classList.add(b.classes.backgroundSuccess),kt.innerHTML=ye,kt.onclick=function(){M(Qn,ge),F(),Y?Y(Z):V&&V(Z)};var kn=document.createElement("div");kn.classList.add(b.classes.button),kn.classList.add(b.classes.elementHalf),kn.classList.add(b.classes.backgroundError),kn.innerHTML=ie,kn.onclick=function(){M(Qn,ge),F(),ce?ce(Z):q&&q(Z)},ze.appendChild(an),ze.appendChild(ht),ze.appendChild(Ze),ze.appendChild(Le),ze.appendChild(ve),ze.appendChild(ee),ze.appendChild(ln),ze.appendChild(Yt),ze.appendChild(pa),ma.appendChild(ze),nn.appendChild(ma),nn.appendChild(kt),nn.appendChild(kn),nn.listener=function(Ve){w(Ve)?kt.click():C(Ve)&&kn.click()},I(nn,ge),D(nn,ge)};m.default={alert:z,force:B,confirm:k,input:L,select:O,date:K,setOptions:S,hideAlerts:U}}])})}).call(a,r(0)(n))}])})}),Yd={};C6(Yd,{default:()=>Ou});var w6=Gd(Vd());v6(Yd,Gd(Vd()));var{default:$d,...k6}=w6,Ou=$d!==void 0?$d:k6;h();h();var E0=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function C0(e,t,n,a){e.addEventListener?e.addEventListener(t,n,a):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function eg(e,t){for(var n=t.slice(0,t.length-1),a=0;a=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function S6(e,t){for(var n=e.length>=t.length?e:t,a=e.length>=t.length?t:e,r=!0,o=0;o=0&&Je.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Je.splice(0,Je.length),(t===93||t===224)&&(t=91),t in St){St[t]=!1;for(var a in Wn)Wn[a]===t&&(Ue[a]=!1)}}function R6(e){if(typeof e>"u")Object.keys(gt).forEach(function(u){return delete gt[u]});else if(Array.isArray(e))e.forEach(function(u){u.key&&v0(u)});else if(typeof e=="object")e.key&&v0(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a1?eg(Wn,s):[];gt[m]=gt[m].filter(function(f){var g=a?f.method===a:!0;return!(g&&f.scope===n&&S6(f.mods,p))})}})};function Qd(e,t,n,a){if(t.element===a){var r;if(t.scope===n||t.scope==="all"){r=t.mods.length>0;for(var o in St)Object.prototype.hasOwnProperty.call(St,o)&&(!St[o]&&t.mods.indexOf(+o)>-1||St[o]&&t.mods.indexOf(+o)===-1)&&(r=!1);(t.mods.length===0&&!St[16]&&!St[18]&&!St[17]&&!St[91]||r||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function Zd(e,t){var n=gt["*"],a=e.keyCode||e.which||e.charCode;if(Ue.filter.call(this,e)){if((a===93||a===224)&&(a=91),Je.indexOf(a)===-1&&a!==229&&Je.push(a),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(g){var y=k0[g];e[g]&&Je.indexOf(y)===-1?Je.push(y):!e[g]&&Je.indexOf(y)>-1?Je.splice(Je.indexOf(y),1):g==="metaKey"&&e[g]&&Je.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Je=Je.slice(Je.indexOf(y))))}),a in St){St[a]=!0;for(var r in Wn)Wn[r]===a&&(Ue[r]=!0);if(!n)return}for(var o in St)Object.prototype.hasOwnProperty.call(St,o)&&(St[o]=e[k0[o]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Je.indexOf(17)===-1&&Je.push(17),Je.indexOf(18)===-1&&Je.push(18),St[17]=!0,St[18]=!0);var u=vo();if(n)for(var i=0;i-1}function Ue(e,t,n){Je=[];var a=tg(e),r=[],o="all",u=document,i=0,s=!1,c=!0,l="+",m=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(o=t.scope),t.element&&(u=t.element),t.keyup&&(s=t.keyup),t.keydown!==void 0&&(c=t.keydown),t.capture!==void 0&&(m=t.capture),typeof t.splitKey=="string"&&(l=t.splitKey)),typeof t=="string"&&(o=t);i1&&(r=eg(Wn,e)),e=e[e.length-1],e=e==="*"?"*":Uu(e),e in gt||(gt[e]=[]),gt[e].push({keyup:s,keydown:c,scope:o,mods:r,shortcut:a[i],method:n,key:a[i],splitKey:l,element:u});typeof u<"u"&&!I6(u)&&window&&(ag.push(u),C0(u,"keydown",function(p){Zd(p,u)},m),Jd||(Jd=!0,C0(window,"focus",function(){Je=[]},m)),C0(u,"keyup",function(p){Zd(p,u),B6(p)},m))}function O6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(gt).forEach(function(n){var a=gt[n].filter(function(r){return r.scope===t&&r.shortcut===e});a.forEach(function(r){r&&r.method&&r.method()})})}var w0={getPressedKeyString:M6,setScope:rg,getScope:vo,deleteScope:_6,getPressedKeyCodes:L6,isPressed:F6,filter:P6,trigger:O6,unbind:R6,keyMap:Co,modifier:Wn,modifierMap:k0};for(Nu in w0)Object.prototype.hasOwnProperty.call(w0,Nu)&&(Ue[Nu]=w0[Nu]);var Nu;typeof document<"u"&&(Xd=window.hotkeys,Ue.noConflict=function(e){return e&&window.hotkeys===Ue&&(window.hotkeys=Xd),Ue},window.hotkeys=Ue);var Xd;h();h();var N6={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},ug={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},lt={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},jt={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Ta={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},G=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let a=G.getVersionPrecision(e),r=G.getVersionPrecision(t),o=Math.max(a,r),u=0,i=G.map([e,t],s=>{let c=o-G.getVersionPrecision(s),l=s+new Array(c+1).join(".0");return G.map(l.split("."),m=>new Array(20-m.length).join("0")+m).reverse()});for(n&&(u=o-Math.min(a,r)),o-=1;o>=u;){if(i[0][o]>i[1][o])return 1;if(i[0][o]===i[1][o]){if(o===u)return 0;o-=1}else if(i[0][o]{n[u]=o[u]})}return e}static getBrowserAlias(e){return N6[e]}static getBrowserTypeByAlias(e){return ug[e]||""}},qe=/version\/(\d+(\.?_?\d+)+)/i,U6=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=G.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=G.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=G.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=G.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=G.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=G.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=G.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=G.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=G.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=G.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=G.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=G.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=G.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=G.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=G.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=G.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=G.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=G.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=G.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=G.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=G.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=G.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=G.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=G.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=G.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=G.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=G.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,a=e.search("\\(")!==-1?n:t;return{name:G.getFirstMatch(a,e),version:G.getSecondMatch(a,e)}}}],j6=U6,z6=[{test:[/Roku\/DVP/],describe(e){let t=G.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:jt.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=G.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:jt.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=G.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=G.getWindowsVersionName(t);return{name:jt.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:jt.iOS},n=G.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=G.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=G.getMacOSVersionName(t),a={name:jt.MacOS,version:t};return n&&(a.versionName=n),a}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=G.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:jt.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=G.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=G.getAndroidVersionName(t),a={name:jt.Android,version:t};return n&&(a.versionName=n),a}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=G.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:jt.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=G.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||G.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||G.getFirstMatch(/\bbb(\d+)/i,e);return{name:jt.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=G.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:jt.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=G.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:jt.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:jt.Linux}}},{test:[/CrOS/],describe(){return{name:jt.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=G.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:jt.PlayStation4,version:t}}}],H6=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=G.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:lt.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:lt.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:lt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:lt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:lt.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:lt.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:lt.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=G.getFirstMatch(/(ipod|iphone)/i,e);return{type:lt.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:lt.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:lt.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:lt.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:lt.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:lt.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:lt.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:lt.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:lt.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:lt.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:lt.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:lt.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:lt.tv}}}],q6=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Ta.Blink};let t=G.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Ta.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:Ta.Trident},n=G.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:Ta.Presto},n=G.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:Ta.Gecko},n=G.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Ta.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:Ta.WebKit},n=G.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],W6=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=G.find(j6,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=G.find(z6,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=G.find(H6,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=G.find(q6,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return G.assign({},this.parsedResult)}satisfies(e){let t={},n=0,a={},r=0;if(Object.keys(e).forEach(o=>{let u=e[o];typeof u=="string"?(a[o]=u,r+=1):typeof u=="object"&&(t[o]=u,n+=1)}),n>0){let o=Object.keys(t),u=G.find(o,s=>this.isOS(s));if(u){let s=this.satisfies(t[u]);if(s!==void 0)return s}let i=G.find(o,s=>this.isPlatform(s));if(i){let s=this.satisfies(t[i]);if(s!==void 0)return s}}if(r>0){let o=Object.keys(a),u=G.find(o,i=>this.isBrowser(i,!0));if(u!==void 0)return this.compareVersion(a[u])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),a=e.toLowerCase(),r=G.getBrowserTypeByAlias(a);return t&&r&&(a=r.toLowerCase()),a===n}compareVersion(e){let t=[0],n=e,a=!1,r=this.getBrowserVersion();if(typeof r=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(a=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(a=!0,n=e.substr(1)),t.indexOf(G.compareVersions(r,n,a))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},og=W6,K6=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new og(e,t)}static parse(e){return new og(e).getResult()}static get BROWSER_MAP(){return ug}static get ENGINE_MAP(){return Ta}static get OS_MAP(){return jt}static get PLATFORMS_MAP(){return lt}},xr=K6;h();h();var{entries:pg,setPrototypeOf:ig,isFrozen:$6,getPrototypeOf:G6,getOwnPropertyDescriptor:V6}=Object,{freeze:zt,seal:Dn,create:Y6}=Object,{apply:P0,construct:F0}=typeof Reflect<"u"&&Reflect;P0||(P0=function(e,t,n){return e.apply(t,n)});zt||(zt=function(e){return e});Dn||(Dn=function(e){return e});F0||(F0=function(e,t){return new e(...t)});var J6=pn(Array.prototype.forEach),sg=pn(Array.prototype.pop),wo=pn(Array.prototype.push),Hu=pn(String.prototype.toLowerCase),S0=pn(String.prototype.toString),Q6=pn(String.prototype.match),An=pn(String.prototype.replace),Z6=pn(String.prototype.indexOf),X6=pn(String.prototype.trim),on=pn(RegExp.prototype.test),ko=e9(TypeError);function pn(e){return function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r/gm),o9=Dn(/\${[\w\W]*}/gm),u9=Dn(/^data-[\-\w.\u00B7-\uFFFF]/),i9=Dn(/^aria-[\-\w]+$/),fg=Dn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),s9=Dn(/^(?:\w+script|data):/i),l9=Dn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),hg=Dn(/^html$/i),mg=Object.freeze({__proto__:null,MUSTACHE_EXPR:a9,ERB_EXPR:r9,TMPLIT_EXPR:o9,DATA_ATTR:u9,ARIA_ATTR:i9,IS_ALLOWED_URI:fg,IS_SCRIPT_OR_DATA:s9,ATTR_WHITESPACE:l9,DOCTYPE_NAME:hg}),c9=()=>typeof window>"u"?null:window,d9=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,a="data-tt-policy-suffix";t&&t.hasAttribute(a)&&(n=t.getAttribute(a));let r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return null}};function bg(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c9(),t=R=>bg(R);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,a=n.currentScript,{document:r}=e,{DocumentFragment:o,HTMLTemplateElement:u,Node:i,Element:s,NodeFilter:c,NamedNodeMap:l=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:m,DOMParser:p,trustedTypes:f}=e,g=s.prototype,y=ju(g,"cloneNode"),v=ju(g,"nextSibling"),b=ju(g,"childNodes"),S=ju(g,"parentNode");if(typeof u=="function"){let R=r.createElement("template");R.content&&R.content.ownerDocument&&(r=R.content.ownerDocument)}let A,N="",{implementation:_,createNodeIterator:x,createDocumentFragment:E,getElementsByTagName:T}=r,{importNode:w}=n,C={};t.isSupported=typeof pg=="function"&&typeof S=="function"&&_&&_.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:I,ERB_EXPR:M,TMPLIT_EXPR:D,DATA_ATTR:F,ARIA_ATTR:U,IS_SCRIPT_OR_DATA:z,ATTR_WHITESPACE:B}=mg,{IS_ALLOWED_URI:k}=mg,L=null,O=Me({},[...lg,...A0,...D0,...L0,...cg]),K=null,H=Me({},[...dg,...M0,...gg,...zu]),V=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),q=null,oe=null,Z=!0,J=!0,ye=!1,Te=!0,ie=!1,Y=!1,ce=!1,fe=!1,ge=!1,Ee=!1,Le=!1,ve=!0,ee=!1,De="user-content-",_e=!0,je=!1,We={},Et=null,Vt=Me({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),za=null,nn=Me({},["audio","video","img","source","image","track"]),Qn=null,ma=Me({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ze="http://www.w3.org/1998/Math/MathML",an="http://www.w3.org/2000/svg",ht="http://www.w3.org/1999/xhtml",Ze=ht,ln=!1,Yt=null,pa=Me({},[ze,an,ht],S0),kt,kn=["application/xhtml+xml","text/html"],Ve="text/html",W,pe=null,nt=r.createElement("form"),Be=function(R){return R instanceof RegExp||R instanceof Function},Ie=function(R){if(!(pe&&pe===R)){if((!R||typeof R!="object")&&(R={}),R=Er(R),kt=kn.indexOf(R.PARSER_MEDIA_TYPE)===-1?kt=Ve:kt=R.PARSER_MEDIA_TYPE,W=kt==="application/xhtml+xml"?S0:Hu,L="ALLOWED_TAGS"in R?Me({},R.ALLOWED_TAGS,W):O,K="ALLOWED_ATTR"in R?Me({},R.ALLOWED_ATTR,W):H,Yt="ALLOWED_NAMESPACES"in R?Me({},R.ALLOWED_NAMESPACES,S0):pa,Qn="ADD_URI_SAFE_ATTR"in R?Me(Er(ma),R.ADD_URI_SAFE_ATTR,W):ma,za="ADD_DATA_URI_TAGS"in R?Me(Er(nn),R.ADD_DATA_URI_TAGS,W):nn,Et="FORBID_CONTENTS"in R?Me({},R.FORBID_CONTENTS,W):Vt,q="FORBID_TAGS"in R?Me({},R.FORBID_TAGS,W):{},oe="FORBID_ATTR"in R?Me({},R.FORBID_ATTR,W):{},We="USE_PROFILES"in R?R.USE_PROFILES:!1,Z=R.ALLOW_ARIA_ATTR!==!1,J=R.ALLOW_DATA_ATTR!==!1,ye=R.ALLOW_UNKNOWN_PROTOCOLS||!1,Te=R.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ie=R.SAFE_FOR_TEMPLATES||!1,Y=R.WHOLE_DOCUMENT||!1,ge=R.RETURN_DOM||!1,Ee=R.RETURN_DOM_FRAGMENT||!1,Le=R.RETURN_TRUSTED_TYPE||!1,fe=R.FORCE_BODY||!1,ve=R.SANITIZE_DOM!==!1,ee=R.SANITIZE_NAMED_PROPS||!1,_e=R.KEEP_CONTENT!==!1,je=R.IN_PLACE||!1,k=R.ALLOWED_URI_REGEXP||fg,Ze=R.NAMESPACE||ht,V=R.CUSTOM_ELEMENT_HANDLING||{},R.CUSTOM_ELEMENT_HANDLING&&Be(R.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(V.tagNameCheck=R.CUSTOM_ELEMENT_HANDLING.tagNameCheck),R.CUSTOM_ELEMENT_HANDLING&&Be(R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(V.attributeNameCheck=R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),R.CUSTOM_ELEMENT_HANDLING&&typeof R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(V.allowCustomizedBuiltInElements=R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ie&&(J=!1),Ee&&(ge=!0),We&&(L=Me({},[...cg]),K=[],We.html===!0&&(Me(L,lg),Me(K,dg)),We.svg===!0&&(Me(L,A0),Me(K,M0),Me(K,zu)),We.svgFilters===!0&&(Me(L,D0),Me(K,M0),Me(K,zu)),We.mathMl===!0&&(Me(L,L0),Me(K,gg),Me(K,zu))),R.ADD_TAGS&&(L===O&&(L=Er(L)),Me(L,R.ADD_TAGS,W)),R.ADD_ATTR&&(K===H&&(K=Er(K)),Me(K,R.ADD_ATTR,W)),R.ADD_URI_SAFE_ATTR&&Me(Qn,R.ADD_URI_SAFE_ATTR,W),R.FORBID_CONTENTS&&(Et===Vt&&(Et=Er(Et)),Me(Et,R.FORBID_CONTENTS,W)),_e&&(L["#text"]=!0),Y&&Me(L,["html","head","body"]),L.table&&(Me(L,["tbody"]),delete q.tbody),R.TRUSTED_TYPES_POLICY){if(typeof R.TRUSTED_TYPES_POLICY.createHTML!="function")throw ko('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof R.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ko('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');A=R.TRUSTED_TYPES_POLICY,N=A.createHTML("")}else A===void 0&&(A=d9(f,a)),A!==null&&typeof N=="string"&&(N=A.createHTML(""));zt&&zt(R),pe=R}},Zn=Me({},["mi","mo","mn","ms","mtext"]),jn=Me({},["foreignobject","desc","title","annotation-xml"]),cn=Me({},["title","style","font","a","script"]),dr=Me({},A0);Me(dr,D0),Me(dr,t9);let Fs=Me({},L0);Me(Fs,n9);let Nh=function(R){let le=S(R);(!le||!le.tagName)&&(le={namespaceURI:Ze,tagName:"template"});let te=Hu(R.tagName),Oe=Hu(le.tagName);return Yt[R.namespaceURI]?R.namespaceURI===an?le.namespaceURI===ht?te==="svg":le.namespaceURI===ze?te==="svg"&&(Oe==="annotation-xml"||Zn[Oe]):!!dr[te]:R.namespaceURI===ze?le.namespaceURI===ht?te==="math":le.namespaceURI===an?te==="math"&&jn[Oe]:!!Fs[te]:R.namespaceURI===ht?le.namespaceURI===an&&!jn[Oe]||le.namespaceURI===ze&&!Zn[Oe]?!1:!Fs[te]&&(cn[te]||!dr[te]):!!(kt==="application/xhtml+xml"&&Yt[R.namespaceURI]):!1},gr=function(R){wo(t.removed,{element:R});try{R.parentNode.removeChild(R)}catch{R.remove()}},_s=function(R,le){try{wo(t.removed,{attribute:le.getAttributeNode(R),from:le})}catch{wo(t.removed,{attribute:null,from:le})}if(le.removeAttribute(R),R==="is"&&!K[R])if(ge||Ee)try{gr(le)}catch{}else try{le.setAttribute(R,"")}catch{}},k4=function(R){let le,te;if(fe)R=""+R;else{let Ut=Q6(R,/^[\r\n\t ]+/);te=Ut&&Ut[0]}kt==="application/xhtml+xml"&&Ze===ht&&(R=''+R+"");let Oe=A?A.createHTML(R):R;if(Ze===ht)try{le=new p().parseFromString(Oe,kt)}catch{}if(!le||!le.documentElement){le=_.createDocument(Ze,"template",null);try{le.documentElement.innerHTML=ln?N:Oe}catch{}}let bt=le.body||le.documentElement;return R&&te&&bt.insertBefore(r.createTextNode(te),bt.childNodes[0]||null),Ze===ht?T.call(le,Y?"html":"body")[0]:Y?le.documentElement:bt},S4=function(R){return x.call(R.ownerDocument||R,R,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},Uh=function(R){return R instanceof m&&(typeof R.nodeName!="string"||typeof R.textContent!="string"||typeof R.removeChild!="function"||!(R.attributes instanceof l)||typeof R.removeAttribute!="function"||typeof R.setAttribute!="function"||typeof R.namespaceURI!="string"||typeof R.insertBefore!="function"||typeof R.hasChildNodes!="function")},Tu=function(R){return typeof i=="object"?R instanceof i:R&&typeof R=="object"&&typeof R.nodeType=="number"&&typeof R.nodeName=="string"},Xn=function(R,le,te){C[R]&&J6(C[R],Oe=>{Oe.call(t,le,te,pe)})},A4=function(R){let le;if(Xn("beforeSanitizeElements",R,null),Uh(R))return gr(R),!0;let te=W(R.nodeName);if(Xn("uponSanitizeElement",R,{tagName:te,allowedTags:L}),R.hasChildNodes()&&!Tu(R.firstElementChild)&&(!Tu(R.content)||!Tu(R.content.firstElementChild))&&on(/<[/\w]/g,R.innerHTML)&&on(/<[/\w]/g,R.textContent))return gr(R),!0;if(!L[te]||q[te]){if(!q[te]&&L4(te)&&(V.tagNameCheck instanceof RegExp&&on(V.tagNameCheck,te)||V.tagNameCheck instanceof Function&&V.tagNameCheck(te)))return!1;if(_e&&!Et[te]){let Oe=S(R)||R.parentNode,bt=b(R)||R.childNodes;if(bt&&Oe){let Ut=bt.length;for(let Jt=Ut-1;Jt>=0;--Jt)Oe.insertBefore(y(bt[Jt],!0),v(R))}}return gr(R),!0}return R instanceof s&&!Nh(R)||(te==="noscript"||te==="noembed")&&on(/<\/no(script|embed)/i,R.innerHTML)?(gr(R),!0):(ie&&R.nodeType===3&&(le=R.textContent,le=An(le,I," "),le=An(le,M," "),le=An(le,D," "),R.textContent!==le&&(wo(t.removed,{element:R.cloneNode()}),R.textContent=le)),Xn("afterSanitizeElements",R,null),!1)},D4=function(R,le,te){if(ve&&(le==="id"||le==="name")&&(te in r||te in nt))return!1;if(!(J&&!oe[le]&&on(F,le))&&!(Z&&on(U,le))){if(!K[le]||oe[le]){if(!(L4(R)&&(V.tagNameCheck instanceof RegExp&&on(V.tagNameCheck,R)||V.tagNameCheck instanceof Function&&V.tagNameCheck(R))&&(V.attributeNameCheck instanceof RegExp&&on(V.attributeNameCheck,le)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(le))||le==="is"&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&on(V.tagNameCheck,te)||V.tagNameCheck instanceof Function&&V.tagNameCheck(te))))return!1}else if(!Qn[le]&&!on(k,An(te,B,""))&&!((le==="src"||le==="xlink:href"||le==="href")&&R!=="script"&&Z6(te,"data:")===0&&za[R])&&!(ye&&!on(z,An(te,B,"")))&&te)return!1}return!0},L4=function(R){return R.indexOf("-")>0},M4=function(R){let le,te,Oe,bt;Xn("beforeSanitizeAttributes",R,null);let{attributes:Ut}=R;if(!Ut)return;let Jt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:K};for(bt=Ut.length;bt--;){le=Ut[bt];let{name:Ct,namespaceURI:mr}=le;if(te=Ct==="value"?le.value:X6(le.value),Oe=W(Ct),Jt.attrName=Oe,Jt.attrValue=te,Jt.keepAttr=!0,Jt.forceKeepAttr=void 0,Xn("uponSanitizeAttribute",R,Jt),te=Jt.attrValue,Jt.forceKeepAttr||(_s(Ct,R),!Jt.keepAttr))continue;if(!Te&&on(/\/>/i,te)){_s(Ct,R);continue}ie&&(te=An(te,I," "),te=An(te,M," "),te=An(te,D," "));let P4=W(R.nodeName);if(D4(P4,Oe,te)){if(ee&&(Oe==="id"||Oe==="name")&&(_s(Ct,R),te=De+te),A&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!mr)switch(f.getAttributeType(P4,Oe)){case"TrustedHTML":{te=A.createHTML(te);break}case"TrustedScriptURL":{te=A.createScriptURL(te);break}}try{mr?R.setAttributeNS(mr,Ct,te):R.setAttribute(Ct,te),sg(t.removed)}catch{}}}Xn("afterSanitizeAttributes",R,null)},jh=function R(le){let te,Oe=S4(le);for(Xn("beforeSanitizeShadowDOM",le,null);te=Oe.nextNode();)Xn("uponSanitizeShadowNode",te,null),!A4(te)&&(te.content instanceof o&&R(te.content),M4(te));Xn("afterSanitizeShadowDOM",le,null)};return t.sanitize=function(R){let le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te,Oe,bt,Ut;if(ln=!R,ln&&(R=""),typeof R!="string"&&!Tu(R))if(typeof R.toString=="function"){if(R=R.toString(),typeof R!="string")throw ko("dirty is not a string, aborting")}else throw ko("toString is not a function");if(!t.isSupported)return R;if(ce||Ie(le),t.removed=[],typeof R=="string"&&(je=!1),je){if(R.nodeName){let mr=W(R.nodeName);if(!L[mr]||q[mr])throw ko("root node is forbidden and cannot be sanitized in-place")}}else if(R instanceof i)te=k4(""),Oe=te.ownerDocument.importNode(R,!0),Oe.nodeType===1&&Oe.nodeName==="BODY"||Oe.nodeName==="HTML"?te=Oe:te.appendChild(Oe);else{if(!ge&&!ie&&!Y&&R.indexOf("<")===-1)return A&&Le?A.createHTML(R):R;if(te=k4(R),!te)return ge?null:Le?N:""}te&&fe&&gr(te.firstChild);let Jt=S4(je?R:te);for(;bt=Jt.nextNode();)A4(bt)||(bt.content instanceof o&&jh(bt.content),M4(bt));if(je)return R;if(ge){if(Ee)for(Ut=E.call(te.ownerDocument);te.firstChild;)Ut.appendChild(te.firstChild);else Ut=te;return(K.shadowroot||K.shadowrootmod)&&(Ut=w.call(n,Ut,!0)),Ut}let Ct=Y?te.outerHTML:te.innerHTML;return Y&&L["!doctype"]&&te.ownerDocument&&te.ownerDocument.doctype&&te.ownerDocument.doctype.name&&on(hg,te.ownerDocument.doctype.name)&&(Ct=" -`+Ct),ie&&(Ct=An(Ct,I," "),Ct=An(Ct,M," "),Ct=An(Ct,D," ")),A&&Le?A.createHTML(Ct):Ct},t.setConfig=function(R){Ie(R),ce=!0},t.clearConfig=function(){pe=null,ce=!1},t.isValidAttribute=function(R,le,te){pe||Ie({});let Oe=W(R),bt=W(le);return D4(Oe,bt,te)},t.addHook=function(R,le){typeof le=="function"&&(C[R]=C[R]||[],wo(C[R],le))},t.removeHook=function(R){if(C[R])return sg(C[R])},t.removeHooks=function(R){C[R]&&(C[R]=[])},t.removeAllHooks=function(){C={}},t}var Ne=bg();var _0=Ou.alert;h();h();h();function Ke(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():P}var Ce=Ke();function me(){return Ce.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function yg(){return Ce.BETA==="1"}function na(){return Ce.PROD==="1"}function aa(){return Ce.PROD_API==="1"}function Tg(){return Ce.HAS_CSP_ERROR=="1"}function ot(){if(Ce.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function qu(){return typeof Deno<"u"}var p8=Ke().PROD==="1",Cr=Ke().PROD!=="1";function Wu(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}function So(){if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let e=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(e&&(e._isUserscript||e._isSafari))}else return!1}var xg={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",curentPlan:"\u5F53\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52A8\u7EED\u671F",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",sponsorLabel:"$1 \u8D77\u8D5E\u52A9\u5F00\u53D1\u8005",help:"\u5E2E\u52A9",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D\uFF0C\u518D\u70B9\u51FB\u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D\u5373\u53EF\u8BBE\u7F6E",browserShortcutsNoteForChrome:"\u7C7BChrome \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762\uFF0C\u5728`\u7BA1\u7406\u5FEB\u6377\u952E`\u9762\u677F(`chrome://extensions/shortcuts`)\u8BBE\u7F6E\uFF0C\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8DF3\u8F6C\u5230\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E\u683C\u5F0F\u4E3A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1: \u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1 & PDF\u6587\u6863\u7FFB\u8BD1","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7F51\u9875\u53CC\u8BED\u7FFB\u8BD1\u6269\u5C55\uFF0C\u540C\u65F6\u652F\u6301 PDF \u7FFB\u8BD1\uFF0C\u53CC\u8BED Epub \u7535\u5B50\u4E66\u5236\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u817E\u8BAF\u7FFB\u8BD1\u7B49\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\uFF0C\u514D\u8D39\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8BD1\u5E76\u9690\u85CF\u539F\u6587/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.toggleTranslationMask":"\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.donateContext":"\u4E86\u89E3\u8D5E\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5219\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875(\u4EC5\u8BD1\u6587)/\u663E\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7","fingers.0":"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478",mouseHoldKey:"+ {key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoverHoldKey:"\u9F20\u6807\u60AC\u505C\u540C\u65F6\u6309\u4E0B\u5FEB\u6377\u952E\u7FFB\u8BD1\u6BB5\u843D","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u6587\u6863",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",goAdvancedSettings:"\u53BB\u8FDB\u9636\u8BBE\u7F6E\u9875",goAdvancedInterfaceSettings:"\u53BB\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u8BBE\u7F6E\u9875\u9762",advanced:"\u8FDB\u9636\u8BBE\u7F6E",advancedDescription:"\u4E00\u822C\u65E0\u9700\u8BBE\u7F6E\uFF0C\u4FDD\u6301\u9ED8\u8BA4\u5373\u53EF\u3002\u4EC5\u5BF9\u4E8E\u66F4\u4E13\u4E1A\u7684\u7528\u6237\uFF0C\u63D0\u4F9B\u66F4\u4E2A\u6027\u5316\u7684\u8BBE\u7F6E\u9879\u3002",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00","display both the original text and the translation":"\u540C\u65F6\u663E\u793A\u539F\u6587\u548C\u8BD1\u6587","keyboard shortcuts":"\u952E\u76D8\u5FEB\u6377\u952E",modify:"\u4FEE\u6539\u5FEB\u6377\u952E",reset:"\u91CD\u7F6E",close:"\u5173\u95ED",homepage:"\u4E3B\u9875",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",changeToOnlyTranslationMode:"\u5207\u6362\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u5207\u6362\u4E3A\u53CC\u8BED\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",unknownError:"\u672A\u77E5\u9519\u8BEF",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",needActionForOptions:"(\u9700\u8BBE\u7F6E)",translationEngine:"\u5F15\u64CE\u9009\u9879",sourceLanguage:"\u539F\u6587\u8BED\u8A00",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",forThisSite:"\u5F53\u524D\u7F51\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1 {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8BD1 {language}",alwaysTranslateSomeSite:"\u603B\u662F\u7FFB\u8BD1 {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8BD1 {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u6DFB\u52A0",default:"\u9ED8\u8BA4",forThisLanguage:"\u9488\u5BF9\u8BE5\u8BED\u8A00\uFF1A","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91","translate other languages into specific language":"\u5C06\u5176\u4ED6\u8BED\u8A00\u7FFB\u8BD1\u4E3A\u4F60\u8BBE\u7F6E\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1",language:"\u8BED\u8A00","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",Error:"\u9519\u8BEF",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",interface:"\u754C\u9762\u8BBE\u7F6E",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8BD1\u9875\u9762\u6807\u9898","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1",enableUserscriptPagePopup:"\u5728\u9875\u9762\u4E0A\u663E\u793A\u60AC\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528\u5FEB\u6377\u952E/{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8BD1\u6587\u6837\u5F0F",currentUrl:"\u5F53\u524D\u7F51\u5740",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664","languages.auto":"\u81EA\u52A8\u68C0\u6D4B",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",upload:"\u4E0A\u4F20",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",download:"\u4E0B\u8F7D",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",deleteFail:"\u5220\u9664\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",backupToCloudDescription:"\u624B\u52A8\u4E0A\u4F20\u6216\u6062\u590D\u5907\u4EFD\u6587\u4EF6\uFF0C\u6700\u591A\u5141\u8BB83\u4E2A\u4E0D\u540C\u7684\u5907\u4EFD",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",updatedAt:"\u66F4\u65B0\u4E8E {date}",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u9891\u9053",joinTelegramChannel:"\u5173\u6CE8 Telegram \u9891\u9053\u83B7\u53D6\u6700\u65B0\u66F4\u65B0",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",autoSync:"\u81EA\u52A8\u5B9A\u65F6\u540C\u6B65",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863","edit border color":"\u4FEE\u6539\u8FB9\u6846\u989C\u8272",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",enableSubtitle:"\u5F00\u542F\u5B57\u5E55\u7FFB\u8BD1",enableSubtitleDescription:"\u9488\u5BF9 youtube \u7B49\u7F51\u7AD9\u7684\u5B57\u5E55\u533A\u57DF\u5F00\u542F\u7FFB\u8BD1",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",enableSearchEnhancement:"\u542F\u7528\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A",enableSearchEnhancementDescription:"\u5F00\u542F\u540E\uFF0C\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\u793E\u533A\uFF09\u53F3\u8FB9\u680F\u81EA\u52A8\u663E\u793A\u5BF9\u5E94\u82F1\u6587\u5173\u952E\u8BCD\u7684\u201C\u8C37\u6B4C\u65B0\u95FB\u201D\u641C\u7D22\u7ED3\u679C\u3002",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerMinute":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u5206\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u8350\uFF09, \u5C06\u4F1A\u5728\u5355\u72EC\u4F5C\u4E3A\u4E00\u6BB5\u53D1\u9001\u7ED9 OpenAI","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740",enabledExtension:"\u542F\u7528\u6269\u5C55",clickToDisableExtension:"\u70B9\u51FB\u7981\u7528\u6269\u5C55",clickToEnableExtension:"\u70B9\u51FB\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",modifyMouseHoverKey:"\u4FEE\u6539\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u8BBE\u7F6E",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",disableTint:"* \u4F60\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u542F\u7528\u3002",searchEnhancementNotes:"\u6211\u4EEC\u53D1\u73B0\uFF0C\u4E2D\u6587\u5173\u952E\u8BCD\u548C\u82F1\u6587\u5173\u952E\u8BCD\u7684\u65B0\u95FB\u7ED3\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u542F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u529F\u80FD\u540E\uFF0C\u6211\u4EEC\u4F1A\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\u7F51\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52A8\u7528\u82F1\u6587\u4E3A\u4F60\u641C\u7D22\u540C\u6837\u7684\u5173\u952E\u8BCD\u5E76\u5C55\u793A\u5728\u53F3\u4FA7\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8BE5\u529F\u80FD\u7684\u8BDD\uFF0C\u53EF\u4EE5\u9009\u62E9\u7981\u7528\u5B83\u3002",option:"\u8BBE\u7F6E",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",needLoginAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u81EA\u5B9A\u4E49)",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",onetime_7day:"7 \u5929\u4F53\u9A8C\u5305",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradePlan:"\u70B9\u6B64\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL \u548C OpenAI \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8BD1",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u8BBE\u7F6E\u5176\u4ED6\u5FEB\u6377\u952E\u6765\u89E6\u53D1\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1"};var Eg={nologin:"\u672A\u767B\u9304",login:"\u767B\u9304",manageAccount:"\u7BA1\u7406\u8CEC\u6236",logout:"\u9000\u51FA",curentPlan:"\u7576\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u671F",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u64CA\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u8AAA\u660E",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u9644\u52A0\u5143\u4EF6\u7BA1\u7406\u9801\u9762 \u300Cabout:addons\u300D\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u5716\u793A\u300D\uFF0C\u518D\u9EDE\u9078\u300C\u7BA1\u7406\u64F4\u5145\u5957\u4EF6\u5FEB\u901F\u9375\u300D\u5373\u53EF\u8A2D\u5B9A",browserShortcutsNoteForChrome:"Chromium \u6838\u5FC3\u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u64F4\u5145\u529F\u80FD\u7BA1\u7406\u9801\u9762\uFF0C\u5728\u300C\u9375\u76E4\u5FEB\u901F\u9375\u300D\u9801\u9762(chrome://extensions/shortcuts)\u8A2D\u5B9A\uFF0C\u9EDE\u9078\u4E0B\u65B9\u6309\u9215\u524D\u5F80\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u901F\u9375\u683C\u5F0F\u70BA\uFF1A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F: \u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F & PDF\u6587\u6A94\u7FFB\u8B6F","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7DB2\u9801\u96D9\u8A9E\u7FFB\u8B6F\u64F4\u5C55\uFF0C\u540C\u6642\u652F\u6301 PDF \u7FFB\u8B6F\uFF0C\u96D9\u8A9E Epub \u96FB\u5B50\u66F8\u88FD\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u9A30\u8A0A\u7FFB\u8B6F\u7B49\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF0C\u514D\u8CBB\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8B6F\u4E26\u96B1\u85CF\u539F\u6587/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.toggleTranslationMask":"\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.donateContext":"\u4E86\u89E3\u8D0A\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u5247\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u6642\u89F8\u78B0\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801(\u50C5\u8B6F\u6587)/\u986F\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304","fingers.0":"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478",mouseHoldKey:"+ {key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u6377\u9375(\u6253\u958B\u8A2D\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoverHoldKey:"\u9F20\u6A19\u6ED1\u904E\u540C\u6642\u6309\u4E0B X \u9375\u7FFB\u8B6F\u6BB5\u843D","mouse-translate":"\u9F20\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",goAdvancedSettings:"\u524D\u5F80\u9032\u968E\u8A2D\u5B9A\u9801\u9762",goAdvancedInterfaceSettings:"\u524D\u5F80\u81EA\u8A02\u8A2D\u5B9A\u9801\u9762",advanced:"\u9032\u968E\u8A2D\u5B9A",advancedDescription:"\u6B63\u5E38\u60C5\u6CC1\u7121\u9700\u8A2D\u5B9A\uFF0C\u4FDD\u6301\u9810\u8A2D\u5373\u53EF\u3002\u50C5\u91DD\u5C0D\u66F4\u5C08\u696D\u7684\u4F7F\u7528\u8005\uFF0C\u63D0\u4F9B\u66F4\u500B\u4EBA\u5316\u7684\u8A2D\u5B9A\u9805\u76EE\u3002",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00","display both the original text and the translation":"\u540C\u6642\u986F\u793A\u539F\u6587\u548C\u8B6F\u6587","keyboard shortcuts":"\u9375\u76E4\u5FEB\u901F\u9375",modify:"\u8B8A\u66F4\u5FEB\u901F\u9375",reset:"\u91CD\u8A2D",close:"\u95DC\u9589",homepage:"\u9996\u9801",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",changeToOnlyTranslationMode:"\u5207\u63DB\u70BA\u50C5\u986F\u793A\u8B6F\u6587",changeToDualTranslationMode:"\u5207\u63DB\u70BA\u96D9\u8A9E\u7FFB\u8B6F",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:"\u672A\u77E5\u7684\u932F\u8AA4",canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u9078\u9805",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",needActionForOptions:"(\u9700\u8A2D\u5B9A)",translationEngine:"\u5F15\u64CE\u9078\u9805",sourceLanguage:"\u539F\u6587\u8A9E\u8A00",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",forThisSite:"\u7576\u524D\u7DB2\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8B6F {language}",alwaysTranslateSomeSite:"\u7E3D\u662F\u7FFB\u8B6F {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8B6F {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u65B0\u589E",default:"\u9810\u8A2D",forThisLanguage:"\u91DD\u5C0D\u8A72\u8A9E\u8A00\uFF1A","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F","translate other languages into specific language":"\u5C07\u5176\u5B83\u8A9E\u8A00\u7FFB\u8B6F\u70BA\u4F60\u8A2D\u5B9A\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9",language:"\u8A9E\u8A00","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",Error:"\u932F\u8AA4",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",interface:"\u4ECB\u9762\u8A2D\u5B9A",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65",syncToAccount:"\u540C\u6B65\u5230\u8CEC\u6236",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u8CEC\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u8A2D\u5099\u4E4B\u9593\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u8CEC\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u8CEC\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8B6F","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9E\u99AC\u905C\u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8B6F\u9801\u9762\u6A19\u984C","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F",enableUserscriptPagePopup:"\u5728\u9801\u9762\u4E0A\u986F\u793A\u61F8\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528\u5FEB\u901F\u9375/{touch}\u518D\u6B21\u986F\u793A\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5EFA\u8B70\u5C07\u672C\u8A2D\u5B9A\u9801\u9762\u52A0\u5165\u81F3\u6211\u7684\u6700\u611B","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8B6F\u6587\u6A23\u5F0F",currentUrl:"\u76EE\u524D\u7DB2\u5740",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6E96\u3002",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",upload:"\u4E0A\u50B3",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",download:"\u4E0B\u8F09",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",deleteFail:"\u522A\u9664\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",backupToCloudDescription:"\u624B\u52D5\u4E0A\u50B3\u6216\u9084\u539F\u5099\u4EFD\u6A94\u6848\uFF0C\u6700\u591A\u5141\u8A31 3 \u500B\u4E0D\u540C\u7684\u5099\u4EFD",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",updatedAt:"\u66F4\u65B0\u65BC {date}",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u4EEC\u7684<3>Twitter\uFF0C<4>Telegram \u983B\u9053\u4EE5\u53CA\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u90F5\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u983B\u9053",joinTelegramChannel:"\u95DC\u6CE8 Telegram \u983B\u9053\u77AD\u89E3\u66F4\u65B0\u8CC7\u8A0A",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",autoSync:"\u81EA\u52D5\u5B9A\u6642\u540C\u6B65",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6","edit border color":"\u8B8A\u66F4\u908A\u6846\u8272\u5F69",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",enableSubtitle:"\u958B\u555F\u5B57\u5E55\u7FFB\u8B6F",enableSubtitleDescription:"\u91DD\u5C0D youtube \u7B49\u7DB2\u7AD9\u7684\u5B57\u5E55\u5340\u57DF\u958B\u555F\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",enableSearchEnhancement:"\u958B\u555F\u641C\u7D22\u589E\u5F37",enableSearchEnhancementDescription:"\u4E2D\u6587\u641C\u7D22\u8C37\u6B4C\u6703\u5728\u53F3\u908A\u51FA\u73FE\u82F1\u6587\u7248\u8C37\u6B4C\u65B0\u805E",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerMinute":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u5206\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u4EFD\u50B3\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u85A6\uFF09, \u5C07\u6703\u5728\u55AE\u7368\u4F5C\u70BA\u4E00\u6BB5\u767C\u9001\u7D66 OpenAI","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u50B3\u9001\u767C\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",clickToDisableExtension:"\u9EDE\u9078\u505C\u7528\u5957\u4EF6",clickToEnableExtension:"\u9EDE\u9078\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u9F20\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u7F6E\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u5B57\u7B26\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8B58\u5225\u70BA\u89F8\u767C\u5B57\u7B26\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u7981\u7528\u78BA\u8A8D",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",disableTint:"* \u60A8\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u555F\u7528\u3002",searchEnhancementNotes:"\u6211\u5011\u767C\u73FE\uFF0C\u4E2D\u6587\u95DC\u9375\u8A5E\u548C\u82F1\u6587\u95DC\u9375\u8A5E\u7684\u65B0\u805E\u7D50\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u555F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u4FE1\u606F\u589E\u5F37\u529F\u80FD\u5F8C\uFF0C\u6211\u5011\u6703\u5728\u652F\u6301\u7684\u7DB2\u7AD9\uFF08\u8C37\u6B4C\u65B0\u805E\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u95DC\u9375\u8A5E\uFF09\uFF0C\u96EA\u7403\uFF0C\u6771\u65B9\u8CA1\u5BCC\u7DB2\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52D5\u7528\u82F1\u6587\u70BA\u4F60\u641C\u7D22\u540C\u6A23\u7684\u95DC\u9375\u8A5E\u4E26\u5C55\u793A\u5728\u53F3\u5074\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8A72\u529F\u80FD\u7684\u8A71\uFF0C\u53EF\u4EE5\u9078\u64C7\u7981\u7528\u5B83\u3002",option:"\u9078\u9805",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL \u548C OpenAI \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8B6F",currentAccount:"\u7576\u524D\u8CEC\u6236"};var Cg={nologin:"Not logged in",login:"Login",manageAccount:"Manage Account",logout:"Logout",curentPlan:"Current Plan",endAt:"Expires",endAuto:"Auto Renew",lineBreakMaxTextCount:"Maximum number of characters allowed per sentence after line break","translate-pdf":"Click to translate PDF","noSupportTranslate-pdf":"The script is not supported, please use a plugin.","translate-firefox-local-pdf":"Click to upload PDF",enableLineBreak:"Whether to turn on automatic line wrapping for long paragraphs",sponsorLabel:"Sponsoring developers from $1 (monthly or one-time)",help:"Help",browserShortcutsNoteForFirefox:`To modify the shortcut key in Firefox browser, you need to open the extension management page 'about: addons', then click "Settings", and then click "Management shortcut key" to set it`,browserShortcutsNoteForChrome:"To modify the shortcut key in Chrome browser, you need to open the extension management page` chrome://extensions/shortcuts `) Settings, click the button below to jump to the shortcut key management page.",browserShortcutsSucks:"Please enter the shortcut key manually in the format:",enableLineBreakDescription:"After opening, a line break will be inserted at the end of each sentence in a long paragraph for easy reading","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate: Web Page&PDF Translation","browser.brandDescription":"Bilingual web page translation, also supports PDF translation, bilingual Epub eBook translation, free to use.","browser.toggleTranslatePage":"Toggle Translate Page","browser.toggleTranslateTheWholePage":"Toggle Translate the Whole Page","browser.toggleOnlyTransation":"Toggle Translate and Hide Original Text","browser.toggleTranslateToThePageEndImmediately":"Toggle Translate to the Bottom of the Page Immediately","browser.toggleTranslateTheMainPage":"Toggle Translate the Main Page","browser.openOptionsPage":"Open Settings Page","browser.toggleTranslationMask":"Toggle translation mask style","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-book","browser.openEbookBuilder":"Make Dual EPUB ebook","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.donateContext":"Sponsor Benefits","browser.translateLocalSubtitleFile":"Translate Subtitle File",confirmResetConfig:"Are you sure you want to reset the settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Create right button menu",toggleBeta:"Enable Beta experimental features",betaDescription:"Enable features that are still experimental, and translation services that are in testing. Join the <1>Telegram group to learn more.",translationLineBreakSettingDescription:"The always line break feature is suitable for layouts with less content, making the layout more neat and tidy. (Use smart line breaks for long paragraphs with more content (more than {count} characters) for saving space)",tempTranslateDomainTitle:"Open the translation time temporarily",tempTranslateDomainDescription:"When a page is translated manually, turn it temporarily on as automatic translation",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",toggleTranslatePageWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide translation display",toggleTranslationMaskWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide the blur effect of the translation",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"Multi-finger touch to show/hide only translation display",addUrlDescription:"The domain name is available and wildcard is supported e.g.: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import configuration from file",export:"Export to file",toggleDebug:"Print debug logs on the console","fingers.0":"Close","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch",mouseHoldKey:"+ {key} translate this paragraph",mouseHoldKeyAuto:"Translate the paragraph directly",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate this paragraph",mouseHoverHoldKey:"Mouse over and press X key to translate paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"All settings reset successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",goAdvancedSettings:"Go to Advanced Settings Page",goAdvancedInterfaceSettings:"Go to Advanced Custom Settings Page",advanced:"Advanced",advancedDescription:"Normally no settings are needed, keep the default. More personalized settings are provided for professional users only.",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"Translate to the bottom of the page immediately after opening the page?",feedback:"Feedback",toggleTranslatePage:"Toggle Translate",translateToThePageEndImmediatelyDescription:"Enabled will translate from the top to the bottom of the page immediately after opening. Disable will translate while reading. (Not recommended to enable)","translate all areas of the page":"Whether to translate all areas of the web page",translationAreaDescription:"When enabled, all areas of the entire web page will be translated. Disabled will use the default smart recognition and translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Directly translate the number of characters in front of the page without waiting to scroll to the visible area","interface language":"Interface language","display both the original text and the translation":"Display both the original text and the translation","keyboard shortcuts":"Keyboard shortcuts",modify:"Edit",reset:"Reset",close:"Close",homepage:"Home Page",more:"More",moreOptions:"Expand more custom settings",translateTheWholePage:"Translate the whole page area",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Dual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"Main areas of intelligent translation","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly implement the interface of the Greasemonkey extension, please use another browser that <1>supports the Greasemonkey extension such as (Firefox Nightly version)",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:"Unknown Error",canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha enabled successfully",disableAlphaSuccess:"Alpha has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(to set up)",goSettings:"to set up",needActionForOptions:"(need to set)",translationEngine:"Engine Options",sourceLanguage:"Original language",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",forThisSite:"Site:",alwaysTranslateSomeLanguage:"Always translate {language}",neverTranslateSomeLanguage:"Never translate {language}",alwaysTranslateSomeSite:"Always translate {hostname}",neverTranslateSomeSite:"Never translate {hostname}",alwaysTranslateSomeSiteOrWildSite:"Always translate this site",alwaysTranslateSomePage:"Always translate this page",add:"Add",default:"Default",forThisLanguage:"For This Language:","add url":"Add URL",edit:"Edit","translate other languages into specific language":"Translate other languages into the language you set","select translation service":"Select a translation service",language:"Language","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",Error:"Error",allowCacheTranslations:"Enable local translation caching (reduce translation requests for duplicate paragraphs)","translation display":"Translation display style","select diplay style":"Please refer to the following examples",interface:"Interface Settings",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dashed underline","translationTheme.dotted":"Dotted Underline","translationTheme.dashedBorder":"Dashed Border","translationTheme.solidBorder":"Dashed Border","translationTheme.underline":"Straight underline","translationTheme.mask":"Blur effect","translationTheme.opacity":"Opacity effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weakening","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dashed underline","translationTheme.nativeDashed":"System Dash Underline","translationTheme.nativeDotted":"System Dotted Underline","translationTheme.nativeUnderline":"System Straight Line Underline","translationTheme.wavy":"Squiggle","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeeplX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"Translate page title","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped",enableUserscriptPagePopup:"Always show Popup windows on the page",enableUserscriptPagePopupDescription:"Three-finger touch to show the Popup.","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",currentUrl:"Current URL",confirm:"Save",cancel:"Cancel",delete:"Delete","languages.auto":"Detect Language",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",authFail:"Authorization Failed",syncTitle:"Please select a file operation",import_hint:"Import",upload:"Upload",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",download:"Download",importSuccess:"Upload Success",importFail:"Import Failed",deleteFail:"Delete Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",backupToCloudDescription:"Upload or restore backup files manually, up to 3 different backups",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",updatedAt:"Updated at {date}",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. You can choose to subscribe to <6>Pro membership to use the out-of-the-box DeepL and OpenAI translation.

You can also follow out <3>Twitter, <4>Telegram Channel, and <5>Email Subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free and we hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. ",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",qqCommunities:"QQ Channel",joinTelegramChannel:"Subscribe to our Telegram channel to get the latest updates",feedbackAndJoin:"Feedback",autoSync:"Auto-Time Sync",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization","edit border color":"Edit border color",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",enableSubtitle:"enableSubtitleTranslation",enableSubtitleDescription:"Enable translations for subtitle areas on sites like youtube",isTranslateTitleDescription:"When enabled, the page title will be translated",enableSearchEnhancement:"Enable Search Enhancement",enableSearchEnhancementDescription:'After enabling, the right sidebar will automatically display "Google News" search results for corresponding English keywords on supported websites (such as Google News, Google Search (partial keywords), Xueqiu, East Money, Futu, Tiger Community).',verifyService:"Verify service",verified:"Successful","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerMinute":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next minute. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"Requests exceed this limit will be queued until the next seconds.","description.prompt":"Send as a user to OpenAI conversation, where {{text}} indicates the text of the paragraph,{{from}} indicates the language of the paragraph,{{to}} indicates the target language, you can omit {{text}}, if so, it'll be sent as a separated message","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"Send the conversation to OpenAI as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the original language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"Default is\uFF1Ageneral. Only set up if there is an API console open domain translation, support fields see <1>Here ","field.scene":"Scene","description.scene":"Default is\uFF1Ageneral. Only set up if there is an API console open Machine Translation Professional, support fields see<1>Here","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please provide a URL with the specific path.",enabledExtension:"Enable extensions",clickToDisableExtension:"Click to disable extension",clickToEnableExtension:"Click to enable the extension",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter customization content",inputOptions:"Writing",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter for translating part of the input box.",inputStartingTriggerKeyDescription:"When you don't need to translate the entire input box, the delimiter allows you to only translate the portion from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means only translating the portion from {startingKey}ja to the end of the input box.",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting is no prefix required, the partial text translation function of the input box cannot be used temporarily.",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Start the translation by quickly pressing 3 times {trailingKey}.",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time (milliseconds) for the input to end the combo trigger",spaceKey:"",noneKey:"Translate the entire text box without prefixes",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement in the following URL",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",clickToSeeQuickDemo:"Click to expand the 30s tutorial video",inputHelperInfo:`Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001". +`,PDF_VIEWER_URL:"https://app.immersivetranslate.com/pdf/",OPTIONS_URL:"https://dash.immersivetranslate.com/",EBOOK_VIEWER_URL:"https://app.immersivetranslate.com/ebook/",EBOOK_BUILDER_URL:"https://app.immersivetranslate.com/ebook/make/",SUBTITLE_BUILDER_URL:"https://app.immersivetranslate.com/subtitle/",HTML_VIEWER_URL:"https://app.immersivetranslate.com/html/",MOCK:"0",DEBUG:"0",IMMERSIVE_TRANSLATE_USERSCRIPT:"1",INSTALL_FROM:"official_userscript"}});var oh=Vh((ws,cu)=>{h();(function(){var e;function t(m){var y,v,b="",S=-1,A;if(m&&m.length)for(A=m.length;(S+=1)>>6&31,128|y&63):y<=65535?b+=String.fromCharCode(224|y>>>12&15,128|y>>>6&63,128|y&63):y<=2097151&&(b+=String.fromCharCode(240|y>>>18&7,128|y>>>12&63,128|y>>>6&63,128|y&63));return b}function n(m){var y,v,b,S,A,N=[],_;if(y=v=b=S=A=0,m&&m.length)for(_=m.length,m+="";y<_;)b=m.charCodeAt(y),v+=1,b<128?(N[v]=String.fromCharCode(b),y+=1):b>191&&b<224?(S=m.charCodeAt(y+1),N[v]=String.fromCharCode((b&31)<<6|S&63),y+=2):(S=m.charCodeAt(y+1),A=m.charCodeAt(y+2),N[v]=String.fromCharCode((b&15)<<12|(S&63)<<6|A&63),y+=3);return N.join("")}function a(m,y){var v=(m&65535)+(y&65535),b=(m>>16)+(y>>16)+(v>>16);return b<<16|v&65535}function r(m,y){return m<>>32-y}function o(m,y){for(var v=y?"0123456789ABCDEF":"0123456789abcdef",b="",S,A=0,N=m.length;A>>4&15)+v.charAt(S&15);return b}function u(m){var y,v=m.length,b="";for(y=0;y>>8&255);return b}function i(m){var y,v=m.length,b="";for(y=0;y>>8&255,m.charCodeAt(y)&255);return b}function s(m){var y,v=m.length*32,b="";for(y=0;y>5]>>>24-y%32&255);return b}function c(m){var y,v=m.length*32,b="";for(y=0;y>5]>>>y%32&255);return b}function l(m){var y,v=m.length*8,b=Array(m.length>>2),S=b.length;for(y=0;y>5]|=(m.charCodeAt(y/8)&255)<>2),S=b.length;for(y=0;y>5]|=(m.charCodeAt(y/8)&255)<<24-y%32;return b}function p(m,y){var v=y.length,b=Array(),S,A,N,_,x,E,T,w;for(E=Array(Math.ceil(m.length/2)),_=E.length,S=0;S<_;S+=1)E[S]=m.charCodeAt(S*2)<<8|m.charCodeAt(S*2+1);for(;E.length>0;){for(x=Array(),N=0,S=0;S0||A>0)&&(x[x.length]=A);b[b.length]=N,E=x}for(T="",S=b.length-1;S>=0;S--)T+=y.charAt(b[S]);for(w=Math.ceil(m.length*8/(Math.log(y.length)/Math.log(2))),S=T.length;Sm.length*8?b+=y:b+=v.charAt(_>>>6*(3-N)&63);return b}e={VERSION:"1.0.6",Base64:function(){var m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y="=",v=!1,b=!0;this.encode=function(S){var A,N,_,x="";for(y=y||"=",S=b?t(S):S,len=S.length,A=0;Alen*8?x+=y:x+=m.charAt(_>>>6*(3-N)&63);return x},this.decode=function(S){var A,N,_,x,E,T,w,C,I,M,D="",F=[];if(!S)return S;A=M=0,S=S.replace(new RegExp("\\"+y,"gi"),"");do E=m.indexOf(S.charAt(A++)),T=m.indexOf(S.charAt(A++)),w=m.indexOf(S.charAt(A++)),C=m.indexOf(S.charAt(A++)),I=E<<18|T<<12|w<<6|C,N=I>>16&255,_=I>>8&255,x=I&255,M+=1,w===64?F[M]=String.fromCharCode(N):C===64?F[M]=String.fromCharCode(N,_):F[M]=String.fromCharCode(N,_,x);while(A>>8^v;return(y^-1)>>>0},MD5:function(m){var y=m&&typeof m.uppercase=="boolean"?m.uppercase:!1,v=m&&typeof m.pad=="string"?m.pad:"=",b=m&&typeof m.utf8=="boolean"?m.utf8:!0;this.hex=function(C){return o(S(C,b),y)},this.b64=function(C){return f(S(C),v)},this.any=function(C,I){return p(S(C,b),I)},this.raw=function(C){return S(C,b)},this.hex_hmac=function(C,I){return o(A(C,I),y)},this.b64_hmac=function(C,I){return f(A(C,I),v)},this.any_hmac=function(C,I,M){return p(A(C,I),M)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(C){return typeof C=="boolean"&&(y=C),this},this.setPad=function(C){return v=C||v,this},this.setUTF8=function(C){return typeof C=="boolean"&&(b=C),this};function S(C){return C=b?t(C):C,c(N(l(C),C.length*8))}function A(C,I){var M,D,F,U,z;for(C=b?t(C):C,I=b?t(I):I,M=l(C),M.length>16&&(M=N(M,C.length*8)),D=Array(16),F=Array(16),z=0;z<16;z+=1)D[z]=M[z]^909522486,F[z]=M[z]^1549556828;return U=N(D.concat(l(I)),512+I.length*8),c(N(F.concat(U),512+128))}function N(C,I){var M,D,F,U,z,B=1732584193,k=-271733879,L=-1732584194,O=271733878;for(C[I>>5]|=128<>>9<<4)+14]=I,M=0;M16&&(w=N(w,E.length*8)),C=Array(16),I=Array(16),M=0;M<16;M+=1)C[M]=w[M]^909522486,I[M]=w[M]^1549556828;return D=N(C.concat(g(T)),512+T.length*8),s(N(I.concat(D),512+160))}function N(E,T){var w,C,I,M,D,F,U,z,B=Array(80),k=1732584193,L=-271733879,O=-1732584194,K=271733878,H=-1009589776;for(E[T>>5]|=128<<24-T%32,E[(T+64>>9<<4)+15]=T,w=0;w16&&(H=B(H,k.length*8));K<16;K+=1)V[K]=H[K]^909522486,q[K]=H[K]^1549556828;return O=B(V.concat(g(L)),512+L.length*8),s(B(q.concat(O),512+256))}function _(k,L){return k>>>L|k<<32-L}function x(k,L){return k>>>L}function E(k,L,O){return k&L^~k&O}function T(k,L,O){return k&L^k&O^L&O}function w(k){return _(k,2)^_(k,13)^_(k,22)}function C(k){return _(k,6)^_(k,11)^_(k,25)}function I(k){return _(k,7)^_(k,18)^x(k,3)}function M(k){return _(k,17)^_(k,19)^x(k,10)}function D(k){return _(k,28)^_(k,34)^_(k,39)}function F(k){return _(k,14)^_(k,18)^_(k,41)}function U(k){return _(k,1)^_(k,8)^x(k,7)}function z(k){return _(k,19)^_(k,61)^x(k,6)}S=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];function B(k,L){var O=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],K=new Array(64),H,V,q,oe,Q,J,ye,Te,ie,Y,ce,fe;for(k[L>>5]|=128<<24-L%32,k[(L+64>>9<<4)+15]=L,ie=0;ie32&&(k=_(k,F.length*8));B<32;B+=1)L[B]=k[B]^909522486,O[B]=k[B]^1549556828;return z=_(L.concat(g(U)),1024+U.length*8),s(_(O.concat(z),1024+512))}function _(F,U){var z,B,k,L=new Array(80),O=new Array(16),K=[new x(1779033703,-205731576),new x(-1150833019,-2067093701),new x(1013904242,-23791573),new x(-1521486534,1595750129),new x(1359893119,-1377402159),new x(-1694144372,725511199),new x(528734635,-79577749),new x(1541459225,327033209)],H=new x(0,0),V=new x(0,0),q=new x(0,0),oe=new x(0,0),Q=new x(0,0),J=new x(0,0),ye=new x(0,0),Te=new x(0,0),ie=new x(0,0),Y=new x(0,0),ce=new x(0,0),fe=new x(0,0),ge=new x(0,0),Ee=new x(0,0),Le=new x(0,0),ve=new x(0,0),ee=new x(0,0);for(S===void 0&&(S=[new x(1116352408,-685199838),new x(1899447441,602891725),new x(-1245643825,-330482897),new x(-373957723,-2121671748),new x(961987163,-213338824),new x(1508970993,-1241133031),new x(-1841331548,-1357295717),new x(-1424204075,-630357736),new x(-670586216,-1560083902),new x(310598401,1164996542),new x(607225278,1323610764),new x(1426881987,-704662302),new x(1925078388,-226784913),new x(-2132889090,991336113),new x(-1680079193,633803317),new x(-1046744716,-815192428),new x(-459576895,-1628353838),new x(-272742522,944711139),new x(264347078,-1953704523),new x(604807628,2007800933),new x(770255983,1495990901),new x(1249150122,1856431235),new x(1555081692,-1119749164),new x(1996064986,-2096016459),new x(-1740746414,-295247957),new x(-1473132947,766784016),new x(-1341970488,-1728372417),new x(-1084653625,-1091629340),new x(-958395405,1034457026),new x(-710438585,-1828018395),new x(113926993,-536640913),new x(338241895,168717936),new x(666307205,1188179964),new x(773529912,1546045734),new x(1294757372,1522805485),new x(1396182291,-1651133473),new x(1695183700,-1951439906),new x(1986661051,1014477480),new x(-2117940946,1206759142),new x(-1838011259,344077627),new x(-1564481375,1290863460),new x(-1474664885,-1136513023),new x(-1035236496,-789014639),new x(-949202525,106217008),new x(-778901479,-688958952),new x(-694614492,1432725776),new x(-200395387,1467031594),new x(275423344,851169720),new x(430227734,-1194143544),new x(506948616,1363258195),new x(659060556,-544281703),new x(883997877,-509917016),new x(958139571,-976659869),new x(1322822218,-482243893),new x(1537002063,2003034995),new x(1747873779,-692930397),new x(1955562222,1575990012),new x(2024104815,1125592928),new x(-2067236844,-1578062990),new x(-1933114872,442776044),new x(-1866530822,593698344),new x(-1538233109,-561857047),new x(-1090935817,-1295615723),new x(-965641998,-479046869),new x(-903397682,-366583396),new x(-779700025,566280711),new x(-354779690,-840897762),new x(-176337025,-294727304),new x(116418474,1914138554),new x(174292421,-1563912026),new x(289380356,-1090974290),new x(460393269,320620315),new x(685471733,587496836),new x(852142971,1086792851),new x(1017036298,365543100),new x(1126000580,-1676669620),new x(1288033470,-885112138),new x(1501505948,-60457430),new x(1607167915,987167468),new x(1816402316,1246189591)]),B=0;B<80;B+=1)L[B]=new x(0,0);for(F[U>>5]|=128<<24-(U&31),F[(U+128>>10<<5)+31]=U,k=F.length,B=0;B>>z|U.h<<32-z,F.h=U.h>>>z|U.l<<32-z}function w(F,U,z){F.l=U.h>>>z|U.l<<32-z,F.h=U.l>>>z|U.h<<32-z}function C(F,U,z){F.l=U.l>>>z|U.h<<32-z,F.h=U.h>>>z}function I(F,U,z){var B=(U.l&65535)+(z.l&65535),k=(U.l>>>16)+(z.l>>>16)+(B>>>16),L=(U.h&65535)+(z.h&65535)+(k>>>16),O=(U.h>>>16)+(z.h>>>16)+(L>>>16);F.l=B&65535|k<<16,F.h=L&65535|O<<16}function M(F,U,z,B,k){var L=(U.l&65535)+(z.l&65535)+(B.l&65535)+(k.l&65535),O=(U.l>>>16)+(z.l>>>16)+(B.l>>>16)+(k.l>>>16)+(L>>>16),K=(U.h&65535)+(z.h&65535)+(B.h&65535)+(k.h&65535)+(O>>>16),H=(U.h>>>16)+(z.h>>>16)+(B.h>>>16)+(k.h>>>16)+(K>>>16);F.l=L&65535|O<<16,F.h=K&65535|H<<16}function D(F,U,z,B,k,L){var O=(U.l&65535)+(z.l&65535)+(B.l&65535)+(k.l&65535)+(L.l&65535),K=(U.l>>>16)+(z.l>>>16)+(B.l>>>16)+(k.l>>>16)+(L.l>>>16)+(O>>>16),H=(U.h&65535)+(z.h&65535)+(B.h&65535)+(k.h&65535)+(L.h&65535)+(K>>>16),V=(U.h>>>16)+(z.h>>>16)+(B.h>>>16)+(k.h>>>16)+(L.h>>>16)+(H>>>16);F.l=O&65535|K<<16,F.h=H&65535|V<<16}},RMD160:function(m){var y=m&&typeof m.uppercase=="boolean"?m.uppercase:!1,v=m&&typeof m.pad=="string"?m.pa:"=",b=m&&typeof m.utf8=="boolean"?m.utf8:!0,S=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],A=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],N=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],_=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];this.hex=function(D){return o(x(D,b))},this.b64=function(D){return f(x(D,b),v)},this.any=function(D,F){return p(x(D,b),F)},this.raw=function(D){return x(D,b)},this.hex_hmac=function(D,F){return o(E(D,F))},this.b64_hmac=function(D,F){return f(E(D,F),v)},this.any_hmac=function(D,F,U){return p(E(D,F),U)},this.vm_test=function(){return hex("abc").toLowerCase()==="900150983cd24fb0d6963f7d28e17f72"},this.setUpperCase=function(D){return typeof D=="boolean"&&(y=D),this},this.setPad=function(D){return typeof D<"u"&&(v=D),this},this.setUTF8=function(D){return typeof D=="boolean"&&(b=D),this};function x(D){return D=b?t(D):D,T(w(l(D),D.length*8))}function E(D,F){D=b?t(D):D,F=b?t(F):F;var U,z,B=l(D),k=Array(16),L=Array(16);for(B.length>16&&(B=w(B,D.length*8)),U=0;U<16;U+=1)k[U]=B[U]^909522486,L[U]=B[U]^1549556828;return z=w(k.concat(l(F)),512+F.length*8),T(w(L.concat(z),512+160))}function T(D){var F,U="",z=D.length*32;for(F=0;F>5]>>>F%32&255);return U}function w(D,F){var U,z,B,k,L=1732584193,O=4023233417,K=2562383102,H=271733878,V=3285377520,q,oe,Q,J,ye,Te,ie,Y,ce,fe;for(D[F>>5]|=128<>>9<<4)+14]=F,k=D.length,B=0;Bt(u),get:s=>{if(s===null)return Promise.resolve(e(u));let c=[],l=e(u);typeof s=="string"?c=[s]:Array.isArray(s)?c=s:c=Object.keys(s);let g={};for(let p of c)g[p]=l[p];return Promise.resolve(g)},set:s=>{let c=a(),l=e(u);for(let f in s)l[f]=s[f];let g=document.getElementById("immersive-translate-sync-storage"),p=document.getElementById("immersive-translate-local-storage");if(!g||!p)throw new Error("Storage element not found");if(u==="sync"||c._isUserscript){g.value=JSON.stringify(l);let f=new Event("change");g.dispatchEvent(f)}return(u==="local"||c._isUserscript)&&(p.value=JSON.stringify(l),p.dispatchEvent(new Event("change"))),Promise.resolve()},remove:s=>{let c=a(),l=document.getElementById("immersive-translate-message");if(!l)throw new Error("Message element not found");let g={method:"removeStorageKey",data:{area:u,keys:s}};return new Promise((p,f)=>{l.value=JSON.stringify(g);let m=new Event("change");l.dispatchEvent(m),c._isUserscript?setTimeout(()=>{l.value=JSON.stringify({...g,data:{...g.data,area:g.data.area==="sync"?"local":"sync"}}),l.dispatchEvent(new Event("change")),p(null)},10):p(null)})}}}function a(){let u=document.getElementById("immersive-translate-manifest");if(!u)throw new Error("Manifest element not found");let i=u.value,s={};if(i){try{s=JSON.parse(i)}catch(c){throw c}return s}else return{}}function r(){return globalThis.navigator.languages||[globalThis.navigator.language||globalThis.navigator.userLanguage]}let o={storage:{local:n("local"),sync:n("sync")},runtime:{getManifest:a,lastError:null,getURL:u=>u},contextMenus:{update:()=>{}},i18n:{getAcceptLanguages:r}};globalThis.immersiveTranslateBrowserAPI=o})();h();h();h();h();var wu,Ae,O4,Xh,co,_4,N4,Eu={},U4=[],e2=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function pa(e,t){for(var n in t)e[n]=t[n];return e}function j4(e){var t=e.parentNode;t&&t.removeChild(e)}function Is(e,t,n){var a,r,o,u={};for(o in t)o=="key"?a=t[o]:o=="ref"?r=t[o]:u[o]=t[o];if(arguments.length>2&&(u.children=arguments.length>3?wu.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)u[o]===void 0&&(u[o]=e.defaultProps[o]);return Tu(e,u,a,r,null)}function Tu(e,t,n,a,r){var o={type:e,props:t,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++O4};return r==null&&Ae.vnode!=null&&Ae.vnode(o),o}function Fe(e){return e.children}function xu(e,t){this.props=e,this.context=t}function br(e,t){if(t==null)return e.__?br(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?Tu(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=n,f.__b=n.__b+1,(p=b[l])===null||p&&f.key==p.key&&f.type===p.type)b[l]=void 0;else for(g=0;g=n.__.length&&n.__.push({__V:ku}),n.__[e]}function $(e){return go=1,r2(ad,e)}function r2(e,t,n){var a=Au(mo++,2);if(a.t=e,!a.__c&&(a.__=[n?n(t):ad(void 0,t),function(o){var u=a.__N?a.__N[0]:a.__[0],i=a.t(u,o);u!==i&&(a.__N=[i,a.__[1]],a.__c.setState({}))}],a.__c=st,!st.u)){st.u=!0;var r=st.shouldComponentUpdate;st.shouldComponentUpdate=function(o,u,i){if(!a.__c.__H)return!0;var s=a.__c.__H.__.filter(function(l){return l.__c});if(s.every(function(l){return!l.__N}))return!r||r.call(this,o,u,i);var c=!1;return s.forEach(function(l){if(l.__N){var g=l.__[0];l.__=l.__N,l.__N=void 0,g!==l.__[0]&&(c=!0)}}),!!c&&(!r||r.call(this,o,u,i))}}return a.__N||a.__}function he(e,t){var n=Au(mo++,3);!Ae.__s&&nd(n.__H,t)&&(n.__=e,n.i=t,st.__H.__h.push(n))}function zn(e){return go=5,fa(function(){return{current:e}},[])}function fa(e,t){var n=Au(mo++,7);return nd(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function dn(e,t){return go=8,fa(function(){return e},t)}function Ye(e){var t=st.context[e.__c],n=Au(mo++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(st)),t.props.value):e.__}function o2(){for(var e;e=td.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Su),e.__H.__h.forEach(Us),e.__H.__h=[]}catch(t){e.__H.__h=[],Ae.__e(t,e.__v)}}Ae.__b=function(e){typeof e.type!="function"||e.o||e.type===Fe?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),st=null,Y4&&Y4(e)},Ae.__r=function(e){J4&&J4(e),mo=0;var t=(st=e.__c).__H;t&&(Ns===st?(t.__h=[],st.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=ku,n.__N=n.i=void 0})):(t.__h.forEach(Su),t.__h.forEach(Us),t.__h=[])),Ns=st},Ae.diffed=function(e){Q4&&Q4(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(td.push(t)!==1&&V4===Ae.requestAnimationFrame||((V4=Ae.requestAnimationFrame)||u2)(o2)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==ku&&(n.__=n.__V),n.i=void 0,n.__V=ku})),Ns=st=null},Ae.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Su),n.__h=n.__h.filter(function(a){return!a.__||Us(a)})}catch(a){t.some(function(r){r.__h&&(r.__h=[])}),t=[],Ae.__e(a,n.__v)}}),Z4&&Z4(e,t)},Ae.unmount=function(e){X4&&X4(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(a){try{Su(a)}catch(r){t=r}}),n.__H=void 0,t&&Ae.__e(t,n.__v))};var ed=typeof requestAnimationFrame=="function";function u2(e){var t,n=function(){clearTimeout(a),ed&&cancelAnimationFrame(t),setTimeout(e)},a=setTimeout(n,100);ed&&(t=requestAnimationFrame(n))}function Su(e){var t=st,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),st=t}function Us(e){var t=st;e.__c=e.__(),st=t}function nd(e,t){return!e||e.length!==t.length||t.some(function(n,a){return n!==e[a]})}function ad(e,t){return typeof t=="function"?t(e):t}h();h();h();var po;function Qs(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function md(e,t=","){return e.map(Qs).join(t)}var Zs=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function Tr(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function Lu(e,t="@media "){return t+He(e).map(n=>(typeof n=="string"&&(n={min:n}),n.raw||Object.keys(n).map(a=>`(${a}-width:${n[a]})`).join(" and "))).join(",")}function He(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function rd(e){return e}function ho(){}var gt={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function pd(e){return e.match(/[-=:;]/g)?.length||0}function Ks(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(pd(e),15)<<18}var i2=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function Xs({n:e,i:t,v:n=[]},a,r,o){e&&(e=Qs({n:e,i:t,v:n})),o=[...He(o)];for(let i of n){let s=a.theme("screens",i);for(let c of He(s&&Lu(s)||a.v(i))){var u;o.push(c),r|=s?67108864|Ks(c):i=="dark"?1073741824:c[0]=="@"?Ks(c):(u=c,1<<~(/:([a-z-]+)/.test(u)&&~i2.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:r,r:o,i:t}}var e0=new Map;function $s(e){if(e.d){let t=[],n=js(e.r.reduce((a,r)=>r[0]=="@"?(t.push(r),a):r?js(a,o=>js(r,u=>{let i=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(u);if(i){let s=o.indexOf(i[1]);return~s?o.slice(0,s)+i[0]+o.slice(s+i[1].length):zs(o,u)}return zs(u,o)})):a,"&"),a=>zs(a,e.n?"."+Zs(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((a,r)=>r+"{"+a+"}",e.d)}}function js(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(n,a,r)=>t(a)+r)}function zs(e,t){return e.replace(/&/g,t)}var od=new Intl.Collator("en",{numeric:!0});function fd(e,t){for(var n=0,a=e.length;n>1;0>=hd(e[r],t)?n=r+1:a=r}return a}function hd(e,t){let n=e.p>.o;return n==(t.p>.o)&&(n==gt.b||n==gt.o)?0:e.p-t.p||e.o-t.o||od.compare(ud(e.n),ud(t.n))||od.compare(id(e.n),id(t.n))}function ud(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function id(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function Hs(e,t){return Math.round(parseInt(e,16)*t)}function Xn(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:n="1",opacityVariable:a}=t,r=a?`var(${a})`:n;if(e.includes(""))return e.replace("",r);if(e[0]=="#"&&(e.length==4||e.length==7)){let o=(e.length-1)/3,u=[17,1,.062272][o-1];return`rgba(${[Hs(e.substr(1,o),u),Hs(e.substr(1+o,o),u),Hs(e.substr(1+2*o,o),u),r]})`}return r=="1"?e:r=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${r})`)}function t0(e,t,n,a,r=[]){return function o(u,{n:i,p:s,r:c=[],i:l},g){let p=[],f="",m=0,y=0;for(let S in u||{}){var v,b;let A=u[S];if(S[0]=="@"){if(!A)continue;if(S[1]=="a"){p.push(...r0(i,s,fo(""+A),g,s,c,l,!0));continue}if(S[1]=="l"){for(let N of He(A))p.push(...o(N,{n:i,p:(v=gt[S[7]],s&~gt.o|v),r:S[7]=="d"?[]:c,i:l},g));continue}if(S[1]=="i"){p.push(...He(A).map(N=>({p:-1,o:0,r:[],d:S+" "+N})));continue}if(S[1]=="k"){p.push({p:gt.d,o:0,r:[S],d:o(A,{p:gt.d},g).map($s).join("")});continue}if(S[1]=="f"){p.push(...He(A).map(N=>({p:gt.d,o:0,r:[S],d:o(N,{p:gt.d},g).map($s).join("")})));continue}}if(typeof A!="object"||Array.isArray(A))S=="label"&&A?i=A+Tr(JSON.stringify([s,l,u])):(A||A===0)&&(S=S.replace(/[A-Z]/g,N=>"-"+N.toLowerCase()),y+=1,m=Math.max(m,(b=S)[0]=="-"?0:pd(b)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(b)?+!!RegExp.$1||-!!RegExp.$2:0)+1),f+=(f?";":"")+He(A).map(N=>g.s(S,n0(""+N,g.theme)+(l?" !important":""))).join(";"));else if(S[0]=="@"||S.includes("&")){let N=s;S[0]=="@"&&(S=S.replace(/\bscreen\(([^)]+)\)/g,(_,x)=>{let E=g.theme("screens",x);return E?(N|=67108864,Lu(E,"")):_}),N|=Ks(S)),p.push(...o(A,{n:i,p:N,r:[...c,S],i:l},g))}else p.push(...o(A,{p:s,r:[...c,S]},g))}return p.unshift({n:i,p:s,o:Math.max(0,15-y)+1.5*Math.min(m||15,15),r:c,d:f}),p.sort(hd)}(e,Xs(t,n,a,r),n)}function n0(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(n,a,r,o,u="")=>{let i=t(r,u);return typeof i=="function"&&/color|fill|stroke/i.test(r)?Xn(i):""+He(i).filter(s=>Object(s)!==s)})}function a0(e,t){let n,a=[];for(let r of e)r.d&&r.n?n?.p==r.p&&""+n.r==""+r.r?(n.c=[n.c,r.c].filter(Boolean).join(" "),n.d=n.d+";"+r.d):a.push(n={...r,n:r.n&&t}):a.push({...r,n:r.n&&t});return a}function Du(e,t,n=gt.u,a,r){let o=[];for(let u of e)for(let i of function(s,c,l,g,p){s={...s,i:s.i||p};let f=function(m,y){let v=e0.get(m.n);return v?v(m,y):y.r(m.n,m.v[0]=="dark")}(s,c);return f?typeof f=="string"?({r:g,p:l}=Xs(s,c,l,g),a0(Du(fo(f),c,l,g,s.i),s.n)):Array.isArray(f)?f.map(m=>{var y,v;return{o:0,...m,r:[...He(g),...He(m.r)],p:(y=l,v=m.p??l,y&~gt.o|v)}}):t0(f,s,c,l,g):[{c:Qs(s),p:0,o:0,r:[]}]}(u,t,n,a,r))o.splice(fd(o,i),0,i);return o}function r0(e,t,n,a,r,o,u,i){return a0((i?n.flatMap(s=>Du([s],a,r,o,u)):Du(n,a,r,o,u)).map(s=>s.p>.o&&(s.n||t==gt.b)?{...s,p:s.p&~gt.o|t,o:0}:s),e)}function s2(e,t,n,a){var r;return r=(o,u)=>{let{n:i,p:s,r:c,i:l}=Xs(o,u,t);return n&&r0(i,t,n,u,s,c,l,a)},e0.set(e,r),e}function qs(e,t,n){if(e[e.length-1]!="("){let a=[],r=!1,o=!1,u="";for(let i of e)if(!(i=="("||/[~@]$/.test(i))){if(i[0]=="!"&&(i=i.slice(1),r=!r),i.endsWith(":")){a[i=="dark:"?"unshift":"push"](i.slice(0,-1));continue}i[0]=="-"&&(i=i.slice(1),o=!o),i.endsWith("-")&&(i=i.slice(0,-1)),i&&i!="&"&&(u+=(u&&"-")+i)}u&&(o&&(u="-"+u),t[0].push({n:u,v:a.filter(l2),i:r}))}}function l2(e,t,n){return n.indexOf(e)==t}var sd=new Map;function fo(e){let t=sd.get(e);if(!t){let n=[],a=[[]],r=0,o=0,u=null,i=0,s=(c,l=0)=>{r!=i&&(n.push(e.slice(r,i+l)),c&&qs(n,a)),r=i+1};for(;i1?g.slice(0,-1)+Tr(JSON.stringify([g,p])):g+"("+md(p)+")",gt.a,p,/@$/.test(g))],a)}l=n.lastIndexOf("(",l-1)}n.length=l+1}else/[~@]/.test(c)&&e[i+1]=="("&&a.unshift([])}s(!0),sd.set(e,t=a[0])}return t}function bd(e,t,n){return t.reduce((a,r,o)=>a+n(r)+e[o+1],e[0])}function yd(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?bd(e,t,n=>Ws(n).trim()):t.filter(Boolean).reduce((n,a)=>n+Ws(a),e?Ws(e):"")}function Ws(e){let t,n="";if(e&&typeof e=="object")if(Array.isArray(e))(t=yd(e[0],e.slice(1)))&&(n+=" "+t);else for(let a in e)e[a]&&(n+=" "+a);else e!=null&&typeof e!="boolean"&&(n+=" "+e);return n}var jE=Td("@"),zE=Td("~");function Td(e){return new Proxy(function(n,...a){return t("",n,a)},{get(n,a){return a in n?n[a]:function(r,...o){return t(a,r,o)}}});function t(n,a,r){return md(fo(n+e+"("+yd(a,r)+")"))}}function Gs(e,t){return Array.isArray(e)?ld(bd(e,t,n=>n!=null&&typeof n!="boolean"?n:"")):typeof e=="string"?ld(e):[e]}var c2=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function ld(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],a=[n[0]],r=[];for(;t=c2.exec(e);)t[4]&&(n.shift(),r.shift()),t[3]?(r.unshift(t[3]),n.unshift({}),a.push(r.reduce((o,u)=>({[u]:o}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),a.push(r.reduce((o,u)=>({[u]:o}),n[0]))),n[0][t[1]]=t[2]);return a}function xd(e,...t){var n;let a=Gs(e,t),r=(a.find(o=>o.label)?.label||"css")+Tr(JSON.stringify(a));return n=(o,u)=>a0(a.flatMap(i=>t0(i,o,u,gt.o)),r),e0.set(r,n),r}var HE=new Proxy(function(e,t){return cd("animation",e,t)},{get(e,t){return t in e?e[t]:function(n,a){return cd(t,n,a)}}});function cd(e,t,n){return{toString(){return xd({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+n}})}}}function ne(e,t,n){return[e,Vs(t,n)]}function Vs(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(n,a)=>({[e]:t?t(n,a):Ys(n,1)}):n=>e||{[n[1]]:Ys(n,2)}}function Ys(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${n} * -1)`:n}function ae(e,t,n,a){return[e,d2(t,n,a)]}function d2(e,t,n){let a=typeof t=="string"?(r,o)=>({[t]:n?n(r,o):r._}):t||(({1:r,_:o},u,i)=>({[r||i]:o}));return(r,o)=>{let u=Ed(e||r[1]),i=o.theme(u,r.$$)??Hn(r.$$,u,o);if(i!=null)return r._=Ys(r,0,i),a(r,o,u)}}function Tt(e,t={},n){return[e,g2(t,n)]}function g2(e={},t){return(n,a)=>{let{section:r=Ed(n[0]).replace("-","")+"Color"}=e,[o,u]=m2(n.$$);if(!o)return;let i=a.theme(r,o)||Hn(o,r,a);if(!i||typeof i=="object")return;let{opacityVariable:s=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:c=r.replace("Color","Opacity"),property:l=r,selector:g}=e,p=a.theme(c,u||"DEFAULT")||u&&Hn(u,c,a),f=t||(({_:y})=>{let v=bo(l,y);return g?{[g]:v}:v});n._={value:Xn(i,{opacityVariable:s||void 0,opacityValue:p||void 0}),color:y=>Xn(i,y),opacityVariable:s||void 0,opacityValue:p||void 0};let m=f(n,a);if(!n.dark){let y=a.d(r,o,i);y&&y!==i&&(n._={value:Xn(y,{opacityVariable:s||void 0,opacityValue:p||"1"}),color:v=>Xn(y,v),opacityVariable:s||void 0,opacityValue:p||void 0},m={"&":m,[a.v("dark")]:f(n,a)})}return m}}function m2(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function bo(e,t){let n={};return typeof t=="string"?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function Hn(e,t,n){if(e[0]=="["&&e.slice(-1)=="]"){if(e=xr(n0(e.slice(1,-1),n.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function Ed(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function xr(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,n="",a,r="")=>xr(n)+a+xr(r)):e.replace(/(^|[^\\])_+/g,(t,n)=>n+" ".repeat(t.length-n.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var qE=Symbol();function yo({presets:e=[],...t}){let n={darkMode:void 0,darkColor:void 0,preflight:t.preflight!==!1&&[],theme:{},variants:He(t.variants),rules:He(t.rules),ignorelist:He(t.ignorelist),hash:void 0,stringify:(a,r)=>a+":"+r,finalize:[]};for(let a of He([...e,{darkMode:t.darkMode,darkColor:t.darkColor,preflight:t.preflight!==!1&&He(t.preflight),theme:t.theme,hash:t.hash,stringify:t.stringify,finalize:t.finalize}])){let{preflight:r,darkMode:o=n.darkMode,darkColor:u=n.darkColor,theme:i,variants:s,rules:c,ignorelist:l,hash:g=n.hash,stringify:p=n.stringify,finalize:f}=typeof a=="function"?a(n):a;n={preflight:n.preflight!==!1&&r!==!1&&[...n.preflight,...He(r)],darkMode:o,darkColor:u,theme:{...n.theme,...i,extend:{...n.theme.extend,...i?.extend}},variants:[...n.variants,...He(s)],rules:[...n.rules,...He(c)],ignorelist:[...n.ignorelist,...He(l)],hash:g,stringify:p,finalize:[...n.finalize,...He(f)]}}return n}function dd(e,t,n,a,r,o){for(let u of t){let i=n.get(u);i||n.set(u,i=a(u));let s=i(e,r,o);if(s)return s}}function p2(e){var t;return Js(e[0],typeof(t=e[1])=="function"?t:()=>t)}function f2(e){var t,n;return Array.isArray(e)?Js(e[0],Vs(e[1],e[2])):Js(e,Vs(t,n))}function Js(e,t){return Cd(e,(n,a,r,o)=>{let u=a.exec(n);if(u)return u.$$=n.slice(u[0].length),u.dark=o,t(u,r)})}function Cd(e,t){let n=He(e).map(h2);return(a,r,o)=>{for(let u of n){let i=t(a,u,r,o);if(i)return i}}}function h2(e){return typeof e=="string"?RegExp("^"+e+(e.includes("$")||e.slice(-1)=="-"?"":"$")):e}function b2(e,t){let n=yo(e),a=function({theme:s,darkMode:c,darkColor:l=ho,variants:g,rules:p,hash:f,stringify:m,ignorelist:y,finalize:v}){let b=new Map,S=new Map,A=new Map,N=new Map,_=Cd(y,(T,w)=>w.test(T));g.push(["dark",Array.isArray(c)||c=="class"?`${He(c)[1]||".dark"} &`:typeof c=="string"&&c!="media"?c:"@media (prefers-color-scheme:dark)"]);let x=typeof f=="function"?T=>f(T,Tr):f?Tr:rd;x!==rd&&v.push(T=>({...T,n:T.n&&x(T.n),d:T.d?.replace(/--(tw(?:-[\w-]+)?)\b/g,(w,C)=>"--"+x(C).replace("#",""))}));let E={theme:function({extend:T={},...w}){let C={},I={get colors(){return M("colors")},theme:M,negative(){return{}},breakpoints(F){let U={};for(let z in F)typeof F[z]=="string"&&(U["screen-"+z]=F[z]);return U}};return M;function M(F,U,z,B){if(F){if({1:F,2:B}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(F)||[,F],/[.[]/.test(F)){let K=[];F.replace(/\[([^\]]+)\]|([^.[]+)/g,(H,V,q=V)=>K.push(q)),F=K.shift(),z=U,U=K.join("-")}let L=C[F]||Object.assign(Object.assign(C[F]={},D(w,F)),D(T,F));if(U==null)return L;U||="DEFAULT";let O=L[U]??U.split("-").reduce((K,H)=>K?.[H],L)??z;return B?Xn(O,{opacityValue:n0(B,M)}):O}let k={};for(let L of[...Object.keys(w),...Object.keys(T)])k[L]=M(L);return k}function D(F,U){let z=F[U];return typeof z=="function"&&(z=z(I)),z&&/color|fill|stroke/i.test(U)?function B(k,L=[]){let O={};for(let K in k){let H=k[K],V=[...L,K];O[V.join("-")]=H,K=="DEFAULT"&&(V=L,O[L.join("-")]=H),typeof H=="object"&&Object.assign(O,B(H,V))}return O}(z):z}}(s),e:Zs,h:x,s(T,w){return m(T,w,E)},d(T,w,C){return l(T,w,E,C)},v(T){return b.has(T)||b.set(T,dd(T,g,S,p2,E)||"&:"+T),b.get(T)},r(T,w){let C=JSON.stringify([T,w]);return A.has(C)||A.set(C,!_(T,E)&&dd(T,p,N,f2,E,w)),A.get(C)},f(T){return v.reduce((w,C)=>C(w,E),T)}};return E}(n),r=new Map,o=[],u=new Set;t.resume(s=>r.set(s,s),(s,c)=>{t.insert(s,o.length,c),o.push(c),u.add(s)});function i(s){let c=a.f(s),l=$s(c);if(l&&!u.has(l)){u.add(l);let g=fd(o,s);t.insert(l,g,s),o.splice(g,0,s)}return c.n}return Object.defineProperties(function(s){if(!r.size)for(let l of He(n.preflight))typeof l=="function"&&(l=l(a)),l&&(typeof l=="string"?r0("",gt.b,fo(l),a,gt.b,[],!1,!0):t0(l,{},a,gt.b)).forEach(i);s=""+s;let c=r.get(s);if(!c){let l=new Set;for(let g of Du(fo(s),a))l.add(g.c).add(i(g));c=[...l].filter(Boolean).join(" "),r.set(s,c).set(c,c)}return c},Object.getOwnPropertyDescriptors({get target(){return t.target},theme:a.theme,config:n,snapshot(){let s=t.snapshot(),c=new Set(u),l=new Map(r),g=[...o];return()=>{s(),u=c,r=l,o=g}},clear(){t.clear(),u=new Set,r=new Map,o=[]},destroy(){this.clear(),t.destroy()}}))}function y2(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function T2(e){let t=new MutationObserver(n);return{observe(r){t.observe(r,{attributeFilter:["class"],subtree:!0,childList:!0}),a(r),n([{target:r,type:""}])},disconnect(){t.disconnect()}};function n(r){for(let{type:o,target:u}of r)if(o[0]=="a")a(u);else for(let i of u.querySelectorAll("[class]"))a(i);t.takeRecords()}function a(r){let o,u=r.getAttribute?.("class");u&&y2(u,o=e(u))&&r.setAttribute("class",o)}}function x2(e=o0,t=typeof document<"u"&&document.documentElement){if(t){let n=T2(e);n.observe(t);let{destroy:a}=e;e.destroy=()=>{n.disconnect(),a.call(e)}}return e}function vd(e){let t=document.querySelector(e||'style[data-twind=""]');return(!t||t.tagName!="STYLE")&&(t=document.createElement("style"),document.head.prepend(t)),t.dataset.twind="claimed",t}function E2(e){let t=e?.cssRules?e:(e&&typeof e!="string"?e:vd(e)).sheet;return{target:t,snapshot(){let n=Array.from(t.cssRules,a=>a.cssText);return()=>{this.clear(),n.forEach(this.insert)}},clear(){for(let n=t.cssRules.length;n--;)t.deleteRule(n)},destroy(){t.ownerNode?.remove()},insert(n,a){try{t.insertRule(n,a)}catch{t.insertRule(":root{}",a)}},resume:ho}}function C2(e){let t=e&&typeof e!="string"?e:vd(e);return{target:t,snapshot(){let n=Array.from(t.childNodes,a=>a.textContent);return()=>{this.clear(),n.forEach(this.insert)}},clear(){t.textContent=""},destroy(){t.remove()},insert(n,a){t.insertBefore(document.createTextNode(n),t.childNodes[a]||null)},resume:ho}}function v2(e){let t=[];return{target:t,snapshot(){let n=[...t];return()=>{t.splice(0,t.length,...n)}},clear(){t.length=0},destroy(){this.clear()},insert(n,a,r){t.splice(a,0,e?`/*!${r.p.toString(36)},${(2*r.o).toString(36)}${r.n?","+r.n:""}*/${n}`:n)},resume:ho}}function wd(e,t){let n=typeof document>"u"?v2(!t):e?C2():E2();return t||(n.resume=k2),n}function w2(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,t=>t.cssText):He(e)).join("")}function k2(e,t){let n=w2(this.target),a=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(a.test(n)){var r;let o;if(a.lastIndex=0,this.clear(),typeof document<"u")for(let u of document.querySelectorAll("[class]"))e(u.getAttribute("class"));for(;r=a.exec(n),o&&t(n.slice(o.index+o[0].length,r?.index),{p:parseInt(o[1],36),o:parseInt(o[2],36)/2,n:o[3]}),o=r;);}}var o0=new Proxy(ho,{apply(e,t,n){return po(n[0])},get(e,t){let n=po[t];return typeof n=="function"?function(){return n.apply(po,arguments)}:n}});function kd(e={},t=wd,n){return po?.destroy(),po=x2(b2(e,typeof t=="function"?t():t),n)}function u0(e,t=!0){let n=yo(e);return kd({...n,hash:n.hash??t},()=>wd(!t))}var WE=function e(t){return new Proxy(function(n,...a){return gd(t,"",n,a)},{get(n,a){return a==="bind"?e:a in n?n[a]:function(r,...o){return gd(t,a,r,o)}}})}();function gd(e,t,n,a){return{toString(){let r=Gs(n,a),o=Zs(t+Tr(JSON.stringify([t,r])));return(typeof e=="function"?e:o0)(xd({[`@keyframes ${o}`]:Gs(n,a)})),o}}}h();h();h();var S2=new Map([["align-self","-ms-grid-row-align"],["color-adjust","-webkit-print-color-adjust"],["column-gap","grid-column-gap"],["forced-color-adjust","-ms-high-contrast-adjust"],["gap","grid-gap"],["grid-template-columns","-ms-grid-columns"],["grid-template-rows","-ms-grid-rows"],["justify-self","-ms-grid-column-align"],["margin-inline-end","-webkit-margin-end"],["margin-inline-start","-webkit-margin-start"],["mask-border","-webkit-mask-box-image"],["mask-border-outset","-webkit-mask-box-image-outset"],["mask-border-slice","-webkit-mask-box-image-slice"],["mask-border-source","-webkit-mask-box-image-source"],["mask-border-repeat","-webkit-mask-box-image-repeat"],["mask-border-width","-webkit-mask-box-image-width"],["overflow-wrap","word-wrap"],["padding-inline-end","-webkit-padding-end"],["padding-inline-start","-webkit-padding-start"],["print-color-adjust","color-adjust"],["row-gap","grid-row-gap"],["scroll-margin-bottom","scroll-snap-margin-bottom"],["scroll-margin-left","scroll-snap-margin-left"],["scroll-margin-right","scroll-snap-margin-right"],["scroll-margin-top","scroll-snap-margin-top"],["scroll-margin","scroll-snap-margin"],["text-combine-upright","-ms-text-combine-horizontal"]]);function Sd(e){return S2.get(e)}function Ad(e){var t=/^(?:(text-(?:decoration$|e|or|si)|back(?:ground-cl|d|f)|box-d|mask(?:$|-[ispro]|-cl)|pr|hyphena|flex-d)|(tab-|column(?!-s)|text-align-l)|(ap)|u|hy)/i.exec(e);return t?t[1]?1:t[2]?2:t[3]?3:5:0}function Dd(e,t){var n=/^(?:(pos)|(cli)|(background-i)|(flex(?:$|-b)|(?:max-|min-)?(?:block-s|inl|he|widt))|dis)/i.exec(e);return n?n[1]?/^sti/i.test(t)?1:0:n[2]?/^pat/i.test(t)?1:0:n[3]?/^image-/i.test(t)?1:0:n[4]?t[3]==="-"?2:0:/^(?:inline-)?grid$/i.test(t)?4:0:0}var A2=[["-webkit-",1],["-moz-",2],["-ms-",4]];function Mu(){return({stringify:e})=>({stringify(t,n,a){let r="",o=Sd(t);o&&(r+=e(o,n,a)+";");let u=Ad(t),i=Dd(t,n);for(let s of A2)u&s[1]&&(r+=e(s[0]+t,n,a)+";"),i&s[1]&&(r+=e(t,s[0]+n,a)+";");return r+e(t,n,a)}})}h();h();var s0={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...rn(4,"rem",4,.5,.5),...rn(12,"rem",4,5),14:"3.5rem",...rn(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:Re("blur"),backdropBrightness:Re("brightness"),backdropContrast:Re("contrast"),backdropGrayscale:Re("grayscale"),backdropHueRotate:Re("hueRotate"),backdropInvert:Re("invert"),backdropOpacity:Re("opacity"),backdropSaturate:Re("saturate"),backdropSepia:Re("sepia"),backgroundColor:Re("colors"),backgroundImage:{none:"none"},backgroundOpacity:Re("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...rn(200,"",100,0,50),...rn(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:Re("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:Re("spacing"),borderWidth:{DEFAULT:"1px",...gn(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Re("colors"),caretColor:Re("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...rn(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:Re("borderColor"),divideOpacity:Re("borderOpacity"),divideWidth:Re("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...To(2,6),...To(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:Re("spacing"),gradientColorStops:Re("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...To(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...To(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...rn(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...rn(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:Re("spacing"),placeholderColor:Re("colors"),placeholderOpacity:Re("opacity"),outlineColor:Re("colors"),outlineOffset:gn(8,"px"),outlineWidth:gn(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:Re("colors"),ringOffsetWidth:gn(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...gn(8,"px")},rotate:{...gn(2,"deg"),...gn(12,"deg",3),...gn(180,"deg",45)},saturate:rn(200,"",100,0,50),scale:{...rn(150,"",100,0,50),...rn(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:Re("spacing"),scrollPadding:Re("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...gn(2,"deg"),...gn(12,"deg",3)},space:Re("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:rn(2),textColor:Re("colors"),textDecorationColor:Re("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...gn(8,"px")},textUnderlineOffset:{auto:"auto",...gn(8,"px")},textIndent:Re("spacing"),textOpacity:Re("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:Re("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...To(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...rn(50,"",1,0,10),auto:"auto"}};function To(e,t){let n={};do for(var a=1;at(e)}var D2={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${s0.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${s0.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},L2=[ne("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:Hn(`[${t}]`,"",n)}}})),ne("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),ae("aspect-","aspectRatio"),ne("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:a,padding:r}=t("container"),o={width:"100%",marginRight:a&&"auto",marginLeft:a&&"auto",...u("xs")};for(let i in n){let s=n[i];typeof s=="string"&&(o[Lu(s)]={"&":{maxWidth:s,...u(i)}})}return o;function u(i){let s=r&&(typeof r=="string"?r:r[i]||r.DEFAULT);if(s)return{paddingRight:s,paddingLeft:s}}}),ae("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),ne("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),ne("box-(border|content)","boxSizing",({1:e})=>e+"-box"),ne("hidden",{display:"none"}),ne("table-(auto|fixed)","tableLayout"),ne(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",ne("isolate","isolation"),ne("object-(contain|cover|fill|none|scale-down)","objectFit"),ae("object-","objectPosition"),ne("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",Pu),ne("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),ne("(static|fixed|absolute|relative|sticky)","position"),ae("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),ae("-?(top|bottom|left|right)(?:$|-)","inset"),ne("(visible|collapse)","visibility"),ne("invisible",{visibility:"hidden"}),ae("-?z-","zIndex"),ne("flex-((row|col)(-reverse)?)","flexDirection",Ld),ne("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),ae("(flex-(?:grow|shrink))(?:$|-)"),ae("(flex)-"),ae("grow(?:$|-)","flexGrow"),ae("shrink(?:$|-)","flexShrink"),ae("basis-","flexBasis"),ae("-?(order)-"),"-?(order)-(\\d+)",ae("grid-cols-","gridTemplateColumns"),ne("grid-cols-(\\d+)","gridTemplateColumns",_d),ae("col-","gridColumn"),ne("col-(span)-(\\d+)","gridColumn",Fd),ae("col-start-","gridColumnStart"),ne("col-start-(auto|\\d+)","gridColumnStart"),ae("col-end-","gridColumnEnd"),ne("col-end-(auto|\\d+)","gridColumnEnd"),ae("grid-rows-","gridTemplateRows"),ne("grid-rows-(\\d+)","gridTemplateRows",_d),ae("row-","gridRow"),ne("row-(span)-(\\d+)","gridRow",Fd),ae("row-start-","gridRowStart"),ne("row-start-(auto|\\d+)","gridRowStart"),ae("row-end-","gridRowEnd"),ne("row-end-(auto|\\d+)","gridRowEnd"),ne("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>Pu(Ld(e))),ne("grid-flow-(dense)","gridAutoFlow"),ae("auto-cols-","gridAutoColumns"),ae("auto-rows-","gridAutoRows"),ae("gap-x(?:$|-)","gap","columnGap"),ae("gap-y(?:$|-)","gap","rowGap"),ae("gap(?:$|-)","gap"),"(justify-(?:items|self))-",ne("justify-","justifyContent",Md),ne("(content|items|self)-",e=>({["align-"+e[1]]:Md(e)})),ne("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),ae("p([xytrbl])?(?:$|-)","padding",Er("padding")),ae("-?m([xytrbl])?(?:$|-)","margin",Er("margin")),ae("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),ne("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),ae("w-","width"),ae("min-w-","minWidth"),ae("max-w-","maxWidth"),ae("h-","height"),ae("min-h-","minHeight"),ae("max-h-","maxHeight"),ae("font-","fontWeight"),ae("font-","fontFamily",({_:e})=>typeof(e=He(e))[1]=="string"?{fontFamily:Sn(e)}:{fontFamily:Sn(e[0]),...e[1]}),ne("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),ne("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),ne("italic","fontStyle"),ne("not-italic",{fontStyle:"normal"}),ne("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...ha({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),ae("tracking-","letterSpacing"),ae("leading-","lineHeight"),ne("list-(inside|outside)","listStylePosition"),ae("list-","listStyleType"),ne("list-","listStyleType"),ae("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),Tt("placeholder-",{property:"color",selector:"&::placeholder"}),ne("text-(left|center|right|justify|start|end)","textAlign"),ne("text-(ellipsis|clip)","textOverflow"),ae("text-opacity-","textOpacity","--tw-text-opacity"),Tt("text-",{property:"color"}),ae("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),ae("indent-","textIndent"),ne("(overline|underline|line-through)","textDecorationLine"),ne("no-underline",{textDecorationLine:"none"}),ae("underline-offset-","textUnderlineOffset"),Tt("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),ae("decoration-","textDecorationThickness"),ne("decoration-","textDecorationStyle"),ne("(uppercase|lowercase|capitalize)","textTransform"),ne("normal-case",{textTransform:"none"}),ne("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),ne("align-","verticalAlign"),ne("whitespace-","whiteSpace"),ne("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),ne("break-words",{overflowWrap:"break-word"}),ne("break-all",{wordBreak:"break-all"}),ne("break-keep",{wordBreak:"keep-all"}),Tt("caret-",{opacityVariable:!1,opacitySection:"opacity"}),Tt("accent-",{opacityVariable:!1,opacitySection:"opacity"}),ne("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${Ka(e," ")},var(--tw-gradient-stops))`),Tt("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),Tt("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),Tt("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),ne("bg-(fixed|local|scroll)","backgroundAttachment"),ne("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),ne(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),ne("bg-blend-","backgroundBlendMode"),ne("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),ae("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),Tt("bg-",{section:"backgroundColor"}),ae("bg-","backgroundImage"),ae("bg-","backgroundPosition"),ne("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",Pu),ae("bg-","backgroundSize"),ae("rounded(?:$|-)","borderRadius"),ae("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${Ka(n[0])}-radius`]:t,[`border-${Ka(n[1])}-radius`]:t}}),ne("border-(collapse|separate)","borderCollapse"),ae("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),ne("border-(solid|dashed|dotted|double|none)","borderStyle"),ae("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...ha({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),Tt("border-([xytrbl])-",{section:"borderColor"},Er("border","Color")),Tt("border-"),ae("border-([xytrbl])(?:$|-)","borderWidth",Er("border","Width")),ae("border(?:$|-)","borderWidth"),ae("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),ne("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),ne("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),ae("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${Ka(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${Ka(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),Tt("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),ae("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),Tt("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),ae("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),ne("ring-inset",{"--tw-ring-inset":"inset"}),Tt("ring-",{property:"--tw-ring-color"}),ae("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...ha({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":Xn(t("ringOffsetColor","","#fff")),"--tw-ring-color":Xn(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),Tt("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),ae("shadow(?:$|-)","boxShadow",({_:e})=>({...ha({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Sn(e),"--tw-shadow-colored":Sn(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),ae("(opacity)-"),ne("mix-blend-","mixBlendMode"),...Pd(),...Pd("backdrop-"),ae("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Sn(e),transitionTimingFunction:e._=="none"?void 0:Sn(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:Sn(t("transitionDuration",""))})),ae("duration(?:$|-)","transitionDuration","transitionDuration",Sn),ae("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Sn),ae("delay(?:$|-)","transitionDelay","transitionDelay",Sn),ae("animate(?:$|-)","animation",(e,{theme:t,h:n,e:a})=>{let r=Sn(e),o=r.split(" "),u=t("keyframes",o[0]);return u?{["@keyframes "+(o[0]=a(n(o[0])))]:u,animation:o.join(" ")}:{animation:r}}),"(transform)-(none)",ne("transform",l0),ne("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":Bd(e=="gpu")})),ae("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...l0()})),ae("-?(rotate)-","rotate",i0),ae("-?(translate-[xy])-","translate",i0),ae("-?(skew-[xy])-","skew",i0),ne("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",Pu),"(appearance)-",ae("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",ae("(cursor)-"),"(cursor)-",ne("snap-(none)","scroll-snap-type"),ne("snap-(x|y|both)",({1:e})=>({...ha({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),ne("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),ne("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),ne("snap-(normal|always)","scroll-snap-stop"),ne("scroll-(auto|smooth)","scroll-behavior"),ae("scroll-p([xytrbl])?(?:$|-)","padding",Er("scroll-padding")),ae("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",Er("scroll-margin")),ne("touch-(auto|none|manipulation)","touch-action"),ne("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...ha({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),ne("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),ne("outline",{outlineStyle:"solid"}),ne("outline-(dashed|dotted|double)","outlineStyle"),ae("-?(outline-offset)-"),Tt("outline-",{opacityVariable:!1,opacitySection:"opacity"}),ae("outline-","outlineWidth"),"(pointer-events)-",ae("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],ne("select-(none|text|all|auto)","userSelect"),Tt("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),Tt("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),ae("stroke-","strokeWidth"),ne("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),ne("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function Pu(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function Ld(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function Ka(e,t="-"){let n=[];for(let a of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[a]);return n.join(t)}function Sn(e){return e&&""+(e._||e)}function Md({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function Er(e,t=""){return({1:n,_:a})=>{let r={x:"lr",y:"tb"}[n]||n+n;return r?{...bo(e+"-"+Ka(r[0])+t,a),...bo(e+"-"+Ka(r[1])+t,a)}:bo(e+t,a)}}function Pd(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let a of t)n[`--tw-${e}${a}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...ha(n),[`${e}filter`]:t.map(a=>`var(--tw-${e}${a})`).join(" ")},[`(${e}filter)-(none)`,ne(`${e}filter`,n),...t.map(a=>ae(`${a[0]=="h"?"-?":""}(${e}${a})(?:$|-)`,a,({1:r,_:o})=>({[`--tw-${r}`]:He(o).map(u=>`${a}(${u})`).join(" "),...n})))]}function i0({1:e,_:t}){return{["--tw-"+e]:t,...l0()}}function l0(){return{...ha({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":Bd()}),transform:"var(--tw-transform)"}}function Bd(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function Fd({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function _d({1:e}){return`repeat(${e},minmax(0,1fr))`}function ha(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}var M2=[["sticky","@supports ((position: -webkit-sticky) or (position:sticky))"],["motion-reduce","@media (prefers-reduced-motion:reduce)"],["motion-safe","@media (prefers-reduced-motion:no-preference)"],["print","@media print"],["(portrait|landscape)",({1:e})=>`@media (orientation:${e})`],["contrast-(more|less)",({1:e})=>`@media (prefers-contrast:${e})`],["(first-(letter|line)|placeholder|backdrop|before|after)",({1:e})=>`&::${e}`],["(marker|selection)",({1:e})=>`& *::${e},&::${e}`],["file","&::file-selector-button"],["(first|last|only)",({1:e})=>`&:${e}-child`],["even","&:nth-child(2n)"],["odd","&:nth-child(odd)"],["open","&[open]"],["(aria|data)-",({1:e,$$:t},n)=>t&&`&[${e}-${n.theme(e,t)||Hn(t,"",n)||`${t}="true"`}]`],["((group|peer)(~[^-[]+)?)(-\\[(.+)]|[-[].+?)(\\/.+)?",({2:e,3:t="",4:n,5:a="",6:r=t},{e:o,h:u,v:i})=>{let s=xr(a)||(n[0]=="["?n:i(n.slice(1)));return`${(s.includes("&")?s:"&"+s).replace(/&/g,`:merge(.${o(u(e+r))})`)}${e[0]=="p"?"~":" "}&`}],["(ltr|rtl)",({1:e})=>`[dir="${e}"] &`],["supports-",({$$:e},t)=>{if(e&&=t.theme("supports",e)||Hn(e,"",t),e)return e.includes(":")||(e+=":var(--tw)"),/^\w*\s*\(/.test(e)||(e=`(${e})`),`@supports ${e.replace(/\b(and|or|not)\b/g," $1 ").trim()}`}],["max-",({$$:e},t)=>{if(e&&=t.theme("screens",e)||Hn(e,"",t),typeof e=="string")return`@media not all and (min-width:${e})`}],["min-",({$$:e},t)=>(e&&=Hn(e,"",t))&&`@media (min-width:${e})`],[/^\[(.+)]$/,({1:e})=>/[&@]/.test(e)&&xr(e).replace(/[}]+$/,"").split("{")]];function P2({colors:e,disablePreflight:t}={}){return{preflight:t?void 0:D2,theme:{...s0,colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",...e}},variants:M2,rules:L2,finalize(n){return n.n&&n.d&&n.r.some(a=>/^&::(before|after)$/.test(a))&&!/(^|;)content:/.test(n.d)?{...n,d:"content:var(--tw-content);"+n.d}:n}}}var F2={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},_2={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},B2={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},R2={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},I2={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},O2={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},N2={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},U2={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},j2={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},z2={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},H2={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},q2={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},W2={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},K2={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},$2={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},G2={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},V2={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},Y2={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},J2={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},Q2={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},Z2={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},X2={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},e1={__proto__:null,slate:F2,gray:_2,zinc:B2,neutral:R2,stone:I2,red:O2,orange:N2,amber:U2,yellow:j2,lime:z2,green:H2,emerald:q2,teal:W2,cyan:K2,sky:$2,blue:G2,indigo:V2,violet:Y2,purple:J2,fuchsia:Q2,pink:Z2,rose:X2};function Fu({disablePreflight:e}={}){return P2({colors:e1,disablePreflight:e})}h();h();var _u=globalThis||(typeof window<"u"?window:self),t1=Object.create,d0=Object.defineProperty,n1=Object.getOwnPropertyDescriptor,a1=Object.getOwnPropertyNames,r1=Object.getPrototypeOf,o1=Object.prototype.hasOwnProperty,u1=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),i1=(e,t)=>{for(var n in t)d0(e,n,{get:t[n],enumerable:!0})},c0=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of a1(t))!o1.call(e,r)&&r!==n&&d0(e,r,{get:()=>t[r],enumerable:!(a=n1(t,r))||a.enumerable});return e},s1=(e,t,n)=>(c0(e,t,"default"),n&&c0(n,t,"default")),Id=(e,t,n)=>(n=e!=null?t1(r1(e)):{},c0(t||!e||!e.__esModule?d0(n,"default",{value:e,enumerable:!0}):n,e)),Od=u1((e,t)=>{(function(n,a){typeof define=="function"&&define.amd?define([],a):typeof e<"u"?a():(a(),n.FileSaver={})})(e,function(){"use strict";function n(c,l){return typeof l>"u"?l={autoBom:!1}:typeof l!="object"&&(l={autoBom:!l}),l.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function a(c,l,g){var p=new XMLHttpRequest;p.open("GET",c),p.responseType="blob",p.onload=function(){s(p.response,l,g)},p.onerror=function(){},p.send()}function r(c){var l=new XMLHttpRequest;l.open("HEAD",c,!1);try{l.send()}catch{}return 200<=l.status&&299>=l.status}function o(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var l=document.createEvent("MouseEvents");l.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(l)}}var u=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof _u=="object"&&_u.global===_u?_u:void 0,i=u.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=u.saveAs||(typeof window!="object"||window!==u?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(c,l,g){var p=u.URL||u.webkitURL,f=document.createElement("a");l=l||c.name||"download",f.download=l,f.rel="noopener",typeof c=="string"?(f.href=c,f.origin===location.origin?o(f):r(f.href)?a(c,l,g):o(f,f.target="_blank")):(f.href=p.createObjectURL(c),setTimeout(function(){p.revokeObjectURL(f.href)},4e4),setTimeout(function(){o(f)},0))}:"msSaveOrOpenBlob"in navigator?function(c,l,g){if(l=l||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(n(c,g),l);else if(r(c))a(c,l,g);else{var p=document.createElement("a");p.href=c,p.target="_blank",setTimeout(function(){o(p)})}}:function(c,l,g,p){if(p=p||open("","_blank"),p&&(p.document.title=p.document.body.innerText="downloading..."),typeof c=="string")return a(c,l,g);var f=c.type==="application/octet-stream",m=/constructor/i.test(u.HTMLElement)||u.safari,y=/CriOS\/[\d]+/.test(navigator.userAgent);if((y||f&&m||i)&&typeof FileReader<"u"){var v=new FileReader;v.onloadend=function(){var A=v.result;A=y?A:A.replace(/^data:[^;]*;/,"data:attachment/file;"),p?p.location.href=A:location=A,p=null},v.readAsDataURL(c)}else{var b=u.URL||u.webkitURL,S=b.createObjectURL(c);p?p.location=S:location.href=S,p=null,setTimeout(function(){b.revokeObjectURL(S)},4e4)}});u.saveAs=s.saveAs=s,typeof t<"u"&&(t.exports=s)})}),Nd={};i1(Nd,{default:()=>xo});var l1=Id(Od());s1(Nd,Id(Od()));var{default:Rd,...c1}=l1,xo=Rd!==void 0?Rd:c1;h();h();h();h();h();h();h();function Cr(){let e,t="pending",n=new Promise((a,r)=>{e={async resolve(o){await o,t="fulfilled",a(o)},reject(o){t="rejected",r(o)}}});return Object.defineProperty(n,"state",{get:()=>t}),Object.assign(n,e)}h();var g0=class extends Error{constructor(){super("Deadline"),this.name="DeadlineError"}};function Bu(e,t){let n=Cr(),a=setTimeout(()=>n.reject(new g0),t);return Promise.race([e,n]).finally(()=>clearTimeout(a))}h();h();function qn(e,t={}){let{signal:n,persistent:a}=t;return n?.aborted?Promise.reject(new DOMException("Delay was aborted.","AbortError")):new Promise((r,o)=>{let u=()=>{clearTimeout(s),o(new DOMException("Delay was aborted.","AbortError"))},s=setTimeout(()=>{n?.removeEventListener("abort",u),r()},e);if(n?.addEventListener("abort",u,{once:!0}),a===!1)try{Deno.unrefTimer(s)}catch(c){if(!(c instanceof ReferenceError))throw c}})}h();var Ud=class{#e=0;#t=[];#n=[];#a=Cr();add(t){++this.#e,this.#r(t[Symbol.asyncIterator]())}async#r(t){try{let{value:n,done:a}=await t.next();a?--this.#e:this.#t.push({iterator:t,value:n})}catch(n){this.#n.push(n)}this.#a.resolve()}async*iterate(){for(;this.#e>0;){await this.#a;for(let t=0;tO1,bgBlue:()=>z1,bgBrightBlack:()=>K1,bgBrightBlue:()=>Y1,bgBrightCyan:()=>Q1,bgBrightGreen:()=>G1,bgBrightMagenta:()=>J1,bgBrightRed:()=>$1,bgBrightWhite:()=>Z1,bgBrightYellow:()=>V1,bgCyan:()=>q1,bgGreen:()=>U1,bgMagenta:()=>H1,bgRed:()=>N1,bgRgb24:()=>n6,bgRgb8:()=>e6,bgWhite:()=>W1,bgYellow:()=>j1,black:()=>E1,blue:()=>k1,bold:()=>p1,brightBlack:()=>Hd,brightBlue:()=>_1,brightCyan:()=>R1,brightGreen:()=>P1,brightMagenta:()=>B1,brightRed:()=>M1,brightWhite:()=>I1,brightYellow:()=>F1,cyan:()=>A1,dim:()=>f1,getColorEnabled:()=>g1,gray:()=>L1,green:()=>v1,hidden:()=>T1,inverse:()=>y1,italic:()=>h1,magenta:()=>S1,red:()=>C1,reset:()=>m1,rgb24:()=>t6,rgb8:()=>X1,setColorEnabled:()=>d1,strikethrough:()=>x1,stripColor:()=>r6,underline:()=>b1,white:()=>D1,yellow:()=>w1});h();var{Deno:jd}=globalThis,zd=typeof jd?.noColor=="boolean"?jd.noColor:!0,m0=!zd;function d1(e){zd||(m0=e)}function g1(){return m0}function we(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}function ke(e,t){return m0?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}function m1(e){return ke(e,we([0],0))}function p1(e){return ke(e,we([1],22))}function f1(e){return ke(e,we([2],22))}function h1(e){return ke(e,we([3],23))}function b1(e){return ke(e,we([4],24))}function y1(e){return ke(e,we([7],27))}function T1(e){return ke(e,we([8],28))}function x1(e){return ke(e,we([9],29))}function E1(e){return ke(e,we([30],39))}function C1(e){return ke(e,we([31],39))}function v1(e){return ke(e,we([32],39))}function w1(e){return ke(e,we([33],39))}function k1(e){return ke(e,we([34],39))}function S1(e){return ke(e,we([35],39))}function A1(e){return ke(e,we([36],39))}function D1(e){return ke(e,we([37],39))}function L1(e){return Hd(e)}function Hd(e){return ke(e,we([90],39))}function M1(e){return ke(e,we([91],39))}function P1(e){return ke(e,we([92],39))}function F1(e){return ke(e,we([93],39))}function _1(e){return ke(e,we([94],39))}function B1(e){return ke(e,we([95],39))}function R1(e){return ke(e,we([96],39))}function I1(e){return ke(e,we([97],39))}function O1(e){return ke(e,we([40],49))}function N1(e){return ke(e,we([41],49))}function U1(e){return ke(e,we([42],49))}function j1(e){return ke(e,we([43],49))}function z1(e){return ke(e,we([44],49))}function H1(e){return ke(e,we([45],49))}function q1(e){return ke(e,we([46],49))}function W1(e){return ke(e,we([47],49))}function K1(e){return ke(e,we([100],49))}function $1(e){return ke(e,we([101],49))}function G1(e){return ke(e,we([102],49))}function V1(e){return ke(e,we([103],49))}function Y1(e){return ke(e,we([104],49))}function J1(e){return ke(e,we([105],49))}function Q1(e){return ke(e,we([106],49))}function Z1(e){return ke(e,we([107],49))}function ba(e,t=255,n=0){return Math.trunc(Math.max(Math.min(e,t),n))}function X1(e,t){return ke(e,we([38,5,ba(t)],39))}function e6(e,t){return ke(e,we([48,5,ba(t)],49))}function t6(e,t){return typeof t=="number"?ke(e,we([38,2,t>>16&255,t>>8&255,t&255],39)):ke(e,we([38,2,ba(t.r),ba(t.g),ba(t.b)],39))}function n6(e,t){return typeof t=="number"?ke(e,we([48,2,t>>16&255,t>>8&255,t&255],49)):ke(e,we([48,2,ba(t.r),ba(t.g),ba(t.b)],49))}var a6=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),"g");function r6(e){return e.replace(a6,"")}h();h();var p0=class extends Error{constructor(t,n){super(`Exceeded max retry count (${n})`),this.name="RetryError",this.cause=t}},o6={multiplier:2,maxTimeout:6e4,maxAttempts:5,minTimeout:1e3};async function f0(e,t){let n={...o6,...t};if(n.maxTimeout>=0&&n.minTimeout>n.maxTimeout)throw new RangeError("minTimeout is greater than maxTimeout");let a=n.minTimeout,r;for(let o=0;osetTimeout(i,a)),a*=n.multiplier,a=Math.max(a,n.minTimeout),n.maxTimeout>=0&&(a=Math.min(a,n.maxTimeout)),r=u}throw new p0(r,n.maxAttempts)}h();var ea=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function h0(e){let t=typeof e=="string"?new TextEncoder().encode(e):e instanceof Uint8Array?e:new Uint8Array(e),n="",a,r=t.length;for(a=2;a>2],n+=ea[(t[a-2]&3)<<4|t[a-1]>>4],n+=ea[(t[a-1]&15)<<2|t[a]>>6],n+=ea[t[a]&63];return a===r+1&&(n+=ea[t[a-2]>>2],n+=ea[(t[a-2]&3)<<4],n+="=="),a===r&&(n+=ea[t[a-2]>>2],n+=ea[(t[a-2]&3)<<4|t[a-1]>>4],n+=ea[(t[a-1]&15)<<2],n+="="),n}h();h();var pC=Number.isNaN||function(e){return typeof e=="number"&&e!==e};h();h();var Ru=globalThis||(typeof window<"u"?window:self),i6=Object.create,y0=Object.defineProperty,s6=Object.getOwnPropertyDescriptor,l6=Object.getOwnPropertyNames,c6=Object.getPrototypeOf,d6=Object.prototype.hasOwnProperty,g6=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),m6=(e,t)=>{for(var n in t)y0(e,n,{get:t[n],enumerable:!0})},b0=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of l6(t))!d6.call(e,r)&&r!==n&&y0(e,r,{get:()=>t[r],enumerable:!(a=s6(t,r))||a.enumerable});return e},p6=(e,t,n)=>(b0(e,t,"default"),n&&b0(n,t,"default")),Wd=(e,t,n)=>(n=e!=null?i6(c6(e)):{},b0(t||!e||!e.__esModule?y0(n,"default",{value:e,enumerable:!0}):n,e)),Kd=g6((e,t)=>{var n="Expected a function",a=NaN,r="[object Symbol]",o=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,l=typeof Ru=="object"&&Ru&&Ru.Object===Object&&Ru,g=typeof self=="object"&&self&&self.Object===Object&&self,p=l||g||Function("return this")(),f=Object.prototype,m=f.toString,y=Math.max,v=Math.min,b=function(){return p.Date.now()};function S(T,w,C){var I,M,D,F,U,z,B=0,k=!1,L=!1,O=!0;if(typeof T!="function")throw new TypeError(n);w=E(w)||0,N(C)&&(k=!!C.leading,L="maxWait"in C,D=L?y(E(C.maxWait)||0,w):D,O="trailing"in C?!!C.trailing:O);function K(ie){var Y=I,ce=M;return I=M=void 0,B=ie,F=T.apply(ce,Y),F}function H(ie){return B=ie,U=setTimeout(oe,w),k?K(ie):F}function V(ie){var Y=ie-z,ce=ie-B,fe=w-Y;return L?v(fe,D-ce):fe}function q(ie){var Y=ie-z,ce=ie-B;return z===void 0||Y>=w||Y<0||L&&ce>=D}function oe(){var ie=b();if(q(ie))return Q(ie);U=setTimeout(oe,V(ie))}function Q(ie){return U=void 0,O&&I?K(ie):(I=M=void 0,F)}function J(){U!==void 0&&clearTimeout(U),B=0,I=z=M=U=void 0}function ye(){return U===void 0?F:Q(b())}function Te(){var ie=b(),Y=q(ie);if(I=arguments,M=this,z=ie,Y){if(U===void 0)return H(z);if(L)return U=setTimeout(oe,w),K(z)}return U===void 0&&(U=setTimeout(oe,w)),F}return Te.cancel=J,Te.flush=ye,Te}function A(T,w,C){var I=!0,M=!0;if(typeof T!="function")throw new TypeError(n);return N(C)&&(I="leading"in C?!!C.leading:I,M="trailing"in C?!!C.trailing:M),S(T,w,{leading:I,maxWait:w,trailing:M})}function N(T){var w=typeof T;return!!T&&(w=="object"||w=="function")}function _(T){return!!T&&typeof T=="object"}function x(T){return typeof T=="symbol"||_(T)&&m.call(T)==r}function E(T){if(typeof T=="number")return T;if(x(T))return a;if(N(T)){var w=typeof T.valueOf=="function"?T.valueOf():T;T=N(w)?w+"":w}if(typeof T!="string")return T===0?T:+T;T=T.replace(o,"");var C=i.test(T);return C||s.test(T)?c(T.slice(2),C?2:8):u.test(T)?a:+T}t.exports=A}),$d={};m6($d,{default:()=>Ft});var f6=Wd(Kd());p6($d,Wd(Kd()));var{default:qd,...h6}=f6,Ft=qd!==void 0?qd:h6;h();h();var b6=Object.create,x0=Object.defineProperty,y6=Object.getOwnPropertyDescriptor,T6=Object.getOwnPropertyNames,x6=Object.getPrototypeOf,E6=Object.prototype.hasOwnProperty,C6=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),v6=(e,t)=>{for(var n in t)x0(e,n,{get:t[n],enumerable:!0})},T0=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of T6(t))!E6.call(e,r)&&r!==n&&x0(e,r,{get:()=>t[r],enumerable:!(a=y6(t,r))||a.enumerable});return e},w6=(e,t,n)=>(T0(e,t,"default"),n&&T0(n,t,"default")),Vd=(e,t,n)=>(n=e!=null?b6(x6(e)):{},T0(t||!e||!e.__esModule?x0(n,"default",{value:e,enumerable:!0}):n,e)),Yd=C6((e,t)=>{(function(n,a){typeof e=="object"&&typeof t=="object"?t.exports=a():typeof define=="function"&&define.amd?define([],a):typeof e=="object"?e.notie=a():n.notie=a()})(e,function(){return function(n){function a(o){if(r[o])return r[o].exports;var u=r[o]={i:o,l:!1,exports:{}};return n[o].call(u.exports,u,u.exports,a),u.l=!0,u.exports}var r={};return a.m=n,a.c=r,a.i=function(o){return o},a.d=function(o,u,i){a.o(o,u)||Object.defineProperty(o,u,{configurable:!1,enumerable:!0,get:i})},a.n=function(o){var u=o&&o.__esModule?function(){return o.default}:function(){return o};return a.d(u,"a",u),u},a.o=function(o,u){return Object.prototype.hasOwnProperty.call(o,u)},a.p="",a(a.s=1)}([function(n,a){n.exports=function(r){return r.webpackPolyfill||(r.deprecate=function(){},r.paths=[],r.children||(r.children=[]),Object.defineProperty(r,"loaded",{enumerable:!0,get:function(){return r.l}}),Object.defineProperty(r,"id",{enumerable:!0,get:function(){return r.i}}),r.webpackPolyfill=1),r}},function(n,a,r){"use strict";(function(o){var u,i,s,c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l};(function(l,g){c(a)==="object"&&c(o)==="object"?o.exports=g():(i=[],u=g,s=typeof u=="function"?u.apply(a,i):u,s!==void 0&&(o.exports=s))})(void 0,function(){return function(l){function g(f){if(p[f])return p[f].exports;var m=p[f]={i:f,l:!1,exports:{}};return l[f].call(m.exports,m,m.exports,g),m.l=!0,m.exports}var p={};return g.m=l,g.c=p,g.i=function(f){return f},g.d=function(f,m,y){g.o(f,m)||Object.defineProperty(f,m,{configurable:!1,enumerable:!0,get:y})},g.n=function(f){var m=f&&f.__esModule?function(){return f.default}:function(){return f};return g.d(m,"a",m),m},g.o=function(f,m){return Object.prototype.hasOwnProperty.call(f,m)},g.p="",g(g.s=0)}([function(l,g,p){function f(H,V){var q={};for(var oe in H)V.indexOf(oe)>=0||Object.prototype.hasOwnProperty.call(H,oe)&&(q[oe]=H[oe]);return q}Object.defineProperty(g,"__esModule",{value:!0});var m=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(H){return typeof H>"u"?"undefined":c(H)}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H>"u"?"undefined":c(H)},y=Object.assign||function(H){for(var V=1;V'+oe+"",ce.onclick=function(){return M(fe,Y)},ce.listener=function(ge){(w(ge)||C(ge))&&U()},I(ce,Y),J&&J<1&&(J=1),!Te&&J&&N(J).then(function(){return M(fe,Y)})},B=g.force=function(H,V){var q=H.type,oe=q===void 0?5:q,Q=H.text,J=H.buttonText,ye=J===void 0?"OK":J,Te=H.callback,ie=H.position,Y=ie===void 0?b.positions.force||Y.top:ie;_(),U();var ce=document.createElement("div"),fe=x();ce.id=fe;var ge=document.createElement("div");ge.classList.add(b.classes.textbox),ge.classList.add(b.classes.backgroundInfo),ge.innerHTML='
'+Q+"
";var Ee=document.createElement("div");Ee.classList.add(b.classes.button),Ee.classList.add(E[oe]),Ee.innerHTML=ye,Ee.onclick=function(){M(fe,Y),F(),Te?Te():V&&V()},ce.appendChild(ge),ce.appendChild(Ee),ce.listener=function(Le){w(Le)&&Ee.click()},I(ce,Y),D()},k=g.confirm=function(H,V,q){var oe=H.text,Q=H.submitText,J=Q===void 0?"Yes":Q,ye=H.cancelText,Te=ye===void 0?"Cancel":ye,ie=H.submitCallback,Y=H.cancelCallback,ce=H.position,fe=ce===void 0?b.positions.confirm||fe.top:ce;_(),U();var ge=document.createElement("div"),Ee=x();ge.id=Ee;var Le=document.createElement("div");Le.classList.add(b.classes.textbox),Le.classList.add(b.classes.backgroundInfo),Le.innerHTML='
'+oe+"
";var ve=document.createElement("div");ve.classList.add(b.classes.button),ve.classList.add(b.classes.elementHalf),ve.classList.add(b.classes.backgroundSuccess),ve.innerHTML=J,ve.onclick=function(){M(Ee,fe),F(),ie?ie():V&&V()};var ee=document.createElement("div");ee.classList.add(b.classes.button),ee.classList.add(b.classes.elementHalf),ee.classList.add(b.classes.backgroundError),ee.innerHTML=Te,ee.onclick=function(){M(Ee,fe),F(),Y?Y():q&&q()},ge.appendChild(Le),ge.appendChild(ve),ge.appendChild(ee),ge.listener=function(De){w(De)?ve.click():C(De)&&ee.click()},I(ge,fe),D(ge,fe)},L=function(H,V,q){var oe=H.text,Q=H.submitText,J=Q===void 0?"Submit":Q,ye=H.cancelText,Te=ye===void 0?"Cancel":ye,ie=H.submitCallback,Y=H.cancelCallback,ce=H.position,fe=ce===void 0?b.positions.input||fe.top:ce,ge=f(H,["text","submitText","cancelText","submitCallback","cancelCallback","position"]);_(),U();var Ee=document.createElement("div"),Le=x();Ee.id=Le;var ve=document.createElement("div");ve.classList.add(b.classes.textbox),ve.classList.add(b.classes.backgroundInfo),ve.innerHTML='
'+oe+"
";var ee=document.createElement("input");ee.classList.add(b.classes.inputField),ee.setAttribute("autocapitalize",ge.autocapitalize||"none"),ee.setAttribute("autocomplete",ge.autocomplete||"off"),ee.setAttribute("autocorrect",ge.autocorrect||"off"),ee.setAttribute("autofocus",ge.autofocus||"true"),ee.setAttribute("inputmode",ge.inputmode||"verbatim"),ee.setAttribute("max",ge.max||""),ee.setAttribute("maxlength",ge.maxlength||""),ee.setAttribute("min",ge.min||""),ee.setAttribute("minlength",ge.minlength||""),ee.setAttribute("placeholder",ge.placeholder||""),ee.setAttribute("spellcheck",ge.spellcheck||"default"),ee.setAttribute("step",ge.step||"any"),ee.setAttribute("type",ge.type||"text"),ee.value=ge.value||"",ge.allowed&&(ee.oninput=function(){var je=void 0;if(Array.isArray(ge.allowed)){for(var We="",Et=ge.allowed,Vt=0;Vt'+q+"",Y.appendChild(fe),ye.forEach(function(Ee,Le){var ve=Ee.type,ee=ve===void 0?1:ve,De=Ee.text,_e=Ee.handler,je=document.createElement("div");je.classList.add(E[ee]),je.classList.add(b.classes.button),je.classList.add(b.classes.selectChoice);var We=ye[Le+1];We&&!We.type&&(We.type=1),We&&We.type===ee&&je.classList.add(b.classes.selectChoiceRepeated),je.innerHTML=De,je.onclick=function(){M(ce,ie),F(),_e()},Y.appendChild(je)});var ge=document.createElement("div");ge.classList.add(b.classes.backgroundNeutral),ge.classList.add(b.classes.button),ge.innerHTML=Q,ge.onclick=function(){M(ce,ie),F(),J?J():V&&V()},Y.appendChild(ge),Y.listener=function(Ee){C(Ee)&&ge.click()},I(Y,ie),D(Y,ie)},K=g.date=function(H,V,q){var oe=H.value,Q=oe===void 0?new Date:oe,J=H.submitText,ye=J===void 0?"OK":J,Te=H.cancelText,ie=Te===void 0?"Cancel":Te,Y=H.submitCallback,ce=H.cancelCallback,fe=H.position,ge=fe===void 0?b.positions.date||ge.top:fe;_(),U();var Ee="▾",Le=document.createElement("div"),ve=document.createElement("div"),ee=document.createElement("div"),De=function(Ve){Le.innerHTML=b.dateMonths[Ve.getMonth()],ve.innerHTML=Ve.getDate(),ee.innerHTML=Ve.getFullYear()},_e=function(Ve){var W=new Date(Q.getFullYear(),Q.getMonth()+1,0).getDate(),pe=Ve.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,2);Number(pe)>W&&(pe=W.toString()),Ve.target.textContent=pe,Number(pe)<1&&(pe="1"),Q.setDate(Number(pe))},je=function(Ve){var W=Ve.target.textContent.replace(/^0+/,"").replace(/[^\d]/g,"").slice(0,4);Ve.target.textContent=W,Q.setFullYear(Number(W))},We=function(Ve){De(Q)},Et=function(Ve){var W=new Date(Q.getFullYear(),Q.getMonth()+Ve+1,0).getDate();Q.getDate()>W&&Q.setDate(W),Q.setMonth(Q.getMonth()+Ve),De(Q)},Vt=function(Ve){Q.setDate(Q.getDate()+Ve),De(Q)},qa=function(Ve){var W=Q.getFullYear()+Ve;W<0?Q.setFullYear(0):Q.setFullYear(Q.getFullYear()+Ve),De(Q)},nn=document.createElement("div"),Jn=x();nn.id=Jn;var ga=document.createElement("div");ga.classList.add(b.classes.backgroundInfo);var ze=document.createElement("div");ze.classList.add(b.classes.dateSelectorInner);var an=document.createElement("div");an.classList.add(b.classes.button),an.classList.add(b.classes.elementThird),an.classList.add(b.classes.dateSelectorUp),an.innerHTML=Ee;var bt=document.createElement("div");bt.classList.add(b.classes.button),bt.classList.add(b.classes.elementThird),bt.classList.add(b.classes.dateSelectorUp),bt.innerHTML=Ee;var Ze=document.createElement("div");Ze.classList.add(b.classes.button),Ze.classList.add(b.classes.elementThird),Ze.classList.add(b.classes.dateSelectorUp),Ze.innerHTML=Ee,Le.classList.add(b.classes.element),Le.classList.add(b.classes.elementThird),Le.innerHTML=b.dateMonths[Q.getMonth()],ve.classList.add(b.classes.element),ve.classList.add(b.classes.elementThird),ve.setAttribute("contentEditable",!0),ve.addEventListener("input",_e),ve.addEventListener("blur",We),ve.innerHTML=Q.getDate(),ee.classList.add(b.classes.element),ee.classList.add(b.classes.elementThird),ee.setAttribute("contentEditable",!0),ee.addEventListener("input",je),ee.addEventListener("blur",We),ee.innerHTML=Q.getFullYear();var ln=document.createElement("div");ln.classList.add(b.classes.button),ln.classList.add(b.classes.elementThird),ln.innerHTML=Ee;var Yt=document.createElement("div");Yt.classList.add(b.classes.button),Yt.classList.add(b.classes.elementThird),Yt.innerHTML=Ee;var ma=document.createElement("div");ma.classList.add(b.classes.button),ma.classList.add(b.classes.elementThird),ma.innerHTML=Ee,an.onclick=function(){return Et(1)},bt.onclick=function(){return Vt(1)},Ze.onclick=function(){return qa(1)},ln.onclick=function(){return Et(-1)},Yt.onclick=function(){return Vt(-1)},ma.onclick=function(){return qa(-1)};var kt=document.createElement("div");kt.classList.add(b.classes.button),kt.classList.add(b.classes.elementHalf),kt.classList.add(b.classes.backgroundSuccess),kt.innerHTML=ye,kt.onclick=function(){M(Jn,ge),F(),Y?Y(Q):V&&V(Q)};var kn=document.createElement("div");kn.classList.add(b.classes.button),kn.classList.add(b.classes.elementHalf),kn.classList.add(b.classes.backgroundError),kn.innerHTML=ie,kn.onclick=function(){M(Jn,ge),F(),ce?ce(Q):q&&q(Q)},ze.appendChild(an),ze.appendChild(bt),ze.appendChild(Ze),ze.appendChild(Le),ze.appendChild(ve),ze.appendChild(ee),ze.appendChild(ln),ze.appendChild(Yt),ze.appendChild(ma),ga.appendChild(ze),nn.appendChild(ga),nn.appendChild(kt),nn.appendChild(kn),nn.listener=function(Ve){w(Ve)?kt.click():C(Ve)&&kn.click()},I(nn,ge),D(nn,ge)};g.default={alert:z,force:B,confirm:k,input:L,select:O,date:K,setOptions:S,hideAlerts:U}}])})}).call(a,r(0)(n))}])})}),Jd={};v6(Jd,{default:()=>Iu});var k6=Vd(Yd());w6(Jd,Vd(Yd()));var{default:Gd,...S6}=k6,Iu=Gd!==void 0?Gd:S6;h();h();var E0=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function C0(e,t,n,a){e.addEventListener?e.addEventListener(t,n,a):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function tg(e,t){for(var n=t.slice(0,t.length-1),a=0;a=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function A6(e,t){for(var n=e.length>=t.length?e:t,a=e.length>=t.length?t:e,r=!0,o=0;o=0&&Je.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Je.splice(0,Je.length),(t===93||t===224)&&(t=91),t in St){St[t]=!1;for(var a in Wn)Wn[a]===t&&(Ue[a]=!1)}}function I6(e){if(typeof e>"u")Object.keys(mt).forEach(function(u){return delete mt[u]});else if(Array.isArray(e))e.forEach(function(u){u.key&&v0(u)});else if(typeof e=="object")e.key&&v0(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a1?tg(Wn,s):[];mt[g]=mt[g].filter(function(f){var m=a?f.method===a:!0;return!(m&&f.scope===n&&A6(f.mods,p))})}})};function Zd(e,t,n,a){if(t.element===a){var r;if(t.scope===n||t.scope==="all"){r=t.mods.length>0;for(var o in St)Object.prototype.hasOwnProperty.call(St,o)&&(!St[o]&&t.mods.indexOf(+o)>-1||St[o]&&t.mods.indexOf(+o)===-1)&&(r=!1);(t.mods.length===0&&!St[16]&&!St[18]&&!St[17]&&!St[91]||r||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function Xd(e,t){var n=mt["*"],a=e.keyCode||e.which||e.charCode;if(Ue.filter.call(this,e)){if((a===93||a===224)&&(a=91),Je.indexOf(a)===-1&&a!==229&&Je.push(a),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(m){var y=k0[m];e[m]&&Je.indexOf(y)===-1?Je.push(y):!e[m]&&Je.indexOf(y)>-1?Je.splice(Je.indexOf(y),1):m==="metaKey"&&e[m]&&Je.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Je=Je.slice(Je.indexOf(y))))}),a in St){St[a]=!0;for(var r in Wn)Wn[r]===a&&(Ue[r]=!0);if(!n)return}for(var o in St)Object.prototype.hasOwnProperty.call(St,o)&&(St[o]=e[k0[o]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Je.indexOf(17)===-1&&Je.push(17),Je.indexOf(18)===-1&&Je.push(18),St[17]=!0,St[18]=!0);var u=vo();if(n)for(var i=0;i-1}function Ue(e,t,n){Je=[];var a=ng(e),r=[],o="all",u=document,i=0,s=!1,c=!0,l="+",g=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(o=t.scope),t.element&&(u=t.element),t.keyup&&(s=t.keyup),t.keydown!==void 0&&(c=t.keydown),t.capture!==void 0&&(g=t.capture),typeof t.splitKey=="string"&&(l=t.splitKey)),typeof t=="string"&&(o=t);i1&&(r=tg(Wn,e)),e=e[e.length-1],e=e==="*"?"*":Nu(e),e in mt||(mt[e]=[]),mt[e].push({keyup:s,keydown:c,scope:o,mods:r,shortcut:a[i],method:n,key:a[i],splitKey:l,element:u});typeof u<"u"&&!O6(u)&&window&&(rg.push(u),C0(u,"keydown",function(p){Xd(p,u)},g),Qd||(Qd=!0,C0(window,"focus",function(){Je=[]},g)),C0(u,"keyup",function(p){Xd(p,u),R6(p)},g))}function N6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(mt).forEach(function(n){var a=mt[n].filter(function(r){return r.scope===t&&r.shortcut===e});a.forEach(function(r){r&&r.method&&r.method()})})}var w0={getPressedKeyString:P6,setScope:og,getScope:vo,deleteScope:B6,getPressedKeyCodes:M6,isPressed:_6,filter:F6,trigger:N6,unbind:I6,keyMap:Co,modifier:Wn,modifierMap:k0};for(Ou in w0)Object.prototype.hasOwnProperty.call(w0,Ou)&&(Ue[Ou]=w0[Ou]);var Ou;typeof document<"u"&&(eg=window.hotkeys,Ue.noConflict=function(e){return e&&window.hotkeys===Ue&&(window.hotkeys=eg),Ue},window.hotkeys=Ue);var eg;h();h();var U6={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},ig={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},lt={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},jt={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},ya={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},G=class{static getFirstMatch(e,t){let n=t.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,t){let n=t.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,t,n){if(e.test(t))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),t[0]===10)switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,n=!1){let a=G.getVersionPrecision(e),r=G.getVersionPrecision(t),o=Math.max(a,r),u=0,i=G.map([e,t],s=>{let c=o-G.getVersionPrecision(s),l=s+new Array(c+1).join(".0");return G.map(l.split("."),g=>new Array(20-g.length).join("0")+g).reverse()});for(n&&(u=o-Math.min(a,r)),o-=1;o>=u;){if(i[0][o]>i[1][o])return 1;if(i[0][o]===i[1][o]){if(o===u)return 0;o-=1}else if(i[0][o]{n[u]=o[u]})}return e}static getBrowserAlias(e){return U6[e]}static getBrowserTypeByAlias(e){return ig[e]||""}},qe=/version\/(\d+(\.?_?\d+)+)/i,j6=[{test:[/googlebot/i],describe(e){let t={name:"Googlebot"},n=G.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){let t={name:"Opera"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){let t={name:"Opera"},n=G.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){let t={name:"Samsung Internet for Android"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){let t={name:"NAVER Whale Browser"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){let t={name:"MZ Browser"},n=G.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){let t={name:"Focus"},n=G.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){let t={name:"Swing"},n=G.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){let t={name:"Opera Coast"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){let t={name:"Opera Touch"},n=G.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){let t={name:"Yandex Browser"},n=G.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){let t={name:"UC Browser"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){let t={name:"Maxthon"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){let t={name:"Epiphany"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){let t={name:"Puffin"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){let t={name:"Sleipnir"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){let t={name:"K-Meleon"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){let t={name:"WeChat"},n=G.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){let t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=G.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){let t={name:"Internet Explorer"},n=G.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){let t={name:"Microsoft Edge"},n=G.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){let t={name:"Microsoft Edge"},n=G.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){let t={name:"Vivaldi"},n=G.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){let t={name:"SeaMonkey"},n=G.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){let t={name:"Sailfish"},n=G.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){let t={name:"Amazon Silk"},n=G.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){let t={name:"PhantomJS"},n=G.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){let t={name:"SlimerJS"},n=G.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t={name:"BlackBerry"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){let t={name:"WebOS Browser"},n=G.getFirstMatch(qe,e)||G.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){let t={name:"Bada"},n=G.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){let t={name:"Tizen"},n=G.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){let t={name:"QupZilla"},n=G.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){let t={name:"Firefox"},n=G.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){let t={name:"Electron"},n=G.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){let t={name:"Miui"},n=G.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){let t={name:"Chromium"},n=G.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){let t={name:"Chrome"},n=G.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){let t={name:"Google Search"},n=G.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t={name:"Android Browser"},n=G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){let t={name:"PlayStation 4"},n=G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){let t={name:"Safari"},n=G.getFirstMatch(qe,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){let t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,a=e.search("\\(")!==-1?n:t;return{name:G.getFirstMatch(a,e),version:G.getSecondMatch(a,e)}}}],z6=j6,H6=[{test:[/Roku\/DVP/],describe(e){let t=G.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:jt.Roku,version:t}}},{test:[/windows phone/i],describe(e){let t=G.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:jt.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){let t=G.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=G.getWindowsVersionName(t);return{name:jt.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){let t={name:jt.iOS},n=G.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){let t=G.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=G.getMacOSVersionName(t),a={name:jt.MacOS,version:t};return n&&(a.versionName=n),a}},{test:[/(ipod|iphone|ipad)/i],describe(e){let t=G.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:jt.iOS,version:t}}},{test(e){let t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){let t=G.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=G.getAndroidVersionName(t),a={name:jt.Android,version:t};return n&&(a.versionName=n),a}},{test:[/(web|hpw)[o0]s/i],describe(e){let t=G.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:jt.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){let t=G.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||G.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||G.getFirstMatch(/\bbb(\d+)/i,e);return{name:jt.BlackBerry,version:t}}},{test:[/bada/i],describe(e){let t=G.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:jt.Bada,version:t}}},{test:[/tizen/i],describe(e){let t=G.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:jt.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:jt.Linux}}},{test:[/CrOS/],describe(){return{name:jt.ChromeOS}}},{test:[/PlayStation 4/],describe(e){let t=G.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:jt.PlayStation4,version:t}}}],q6=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){let t=G.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:lt.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:lt.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:lt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:lt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:lt.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:lt.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:lt.tablet}}},{test(e){let t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){let t=G.getFirstMatch(/(ipod|iphone)/i,e);return{type:lt.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:lt.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:lt.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:lt.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:lt.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:lt.mobile,vendor:"Microsoft"}}},{test(e){let t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:lt.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:lt.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:lt.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:lt.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:lt.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:lt.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:lt.tv}}}],W6=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:ya.Blink};let t=G.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:ya.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){let t={name:ya.Trident},n=G.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){let t={name:ya.Presto},n=G.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){let t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){let t={name:ya.Gecko},n=G.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:ya.Blink}}},{test:[/(apple)?webkit/i],describe(e){let t={name:ya.WebKit},n=G.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],K6=class{constructor(e,t=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},t!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=G.find(z6,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=G.find(H6,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=G.find(q6,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=G.find(W6,t=>{if(typeof t.test=="function")return t.test(this);if(t.test instanceof Array)return t.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return G.assign({},this.parsedResult)}satisfies(e){let t={},n=0,a={},r=0;if(Object.keys(e).forEach(o=>{let u=e[o];typeof u=="string"?(a[o]=u,r+=1):typeof u=="object"&&(t[o]=u,n+=1)}),n>0){let o=Object.keys(t),u=G.find(o,s=>this.isOS(s));if(u){let s=this.satisfies(t[u]);if(s!==void 0)return s}let i=G.find(o,s=>this.isPlatform(s));if(i){let s=this.satisfies(t[i]);if(s!==void 0)return s}}if(r>0){let o=Object.keys(a),u=G.find(o,i=>this.isBrowser(i,!0));if(u!==void 0)return this.compareVersion(a[u])}}isBrowser(e,t=!1){let n=this.getBrowserName().toLowerCase(),a=e.toLowerCase(),r=G.getBrowserTypeByAlias(a);return t&&r&&(a=r.toLowerCase()),a===n}compareVersion(e){let t=[0],n=e,a=!1,r=this.getBrowserVersion();if(typeof r=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(a=!0,n=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(a=!0,n=e.substr(1)),t.indexOf(G.compareVersions(r,n,a))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},ug=K6,$6=class{static getParser(e,t=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new ug(e,t)}static parse(e){return new ug(e).getResult()}static get BROWSER_MAP(){return ig}static get ENGINE_MAP(){return ya}static get OS_MAP(){return jt}static get PLATFORMS_MAP(){return lt}},vr=$6;h();h();var{entries:fg,setPrototypeOf:sg,isFrozen:G6,getPrototypeOf:V6,getOwnPropertyDescriptor:Y6}=Object,{freeze:zt,seal:Dn,create:J6}=Object,{apply:P0,construct:F0}=typeof Reflect<"u"&&Reflect;P0||(P0=function(e,t,n){return e.apply(t,n)});zt||(zt=function(e){return e});Dn||(Dn=function(e){return e});F0||(F0=function(e,t){return new e(...t)});var Q6=pn(Array.prototype.forEach),lg=pn(Array.prototype.pop),wo=pn(Array.prototype.push),zu=pn(String.prototype.toLowerCase),S0=pn(String.prototype.toString),Z6=pn(String.prototype.match),An=pn(String.prototype.replace),X6=pn(String.prototype.indexOf),e9=pn(String.prototype.trim),on=pn(RegExp.prototype.test),ko=t9(TypeError);function pn(e){return function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r/gm),u9=Dn(/\${[\w\W]*}/gm),i9=Dn(/^data-[\-\w.\u00B7-\uFFFF]/),s9=Dn(/^aria-[\-\w]+$/),hg=Dn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),l9=Dn(/^(?:\w+script|data):/i),c9=Dn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),bg=Dn(/^html$/i),pg=Object.freeze({__proto__:null,MUSTACHE_EXPR:r9,ERB_EXPR:o9,TMPLIT_EXPR:u9,DATA_ATTR:i9,ARIA_ATTR:s9,IS_ALLOWED_URI:hg,IS_SCRIPT_OR_DATA:l9,ATTR_WHITESPACE:c9,DOCTYPE_NAME:bg}),d9=()=>typeof window>"u"?null:window,g9=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null,a="data-tt-policy-suffix";t&&t.hasAttribute(a)&&(n=t.getAttribute(a));let r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return null}};function yg(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d9(),t=R=>yg(R);if(t.version="3.0.3",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let n=e.document,a=n.currentScript,{document:r}=e,{DocumentFragment:o,HTMLTemplateElement:u,Node:i,Element:s,NodeFilter:c,NamedNodeMap:l=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:g,DOMParser:p,trustedTypes:f}=e,m=s.prototype,y=Uu(m,"cloneNode"),v=Uu(m,"nextSibling"),b=Uu(m,"childNodes"),S=Uu(m,"parentNode");if(typeof u=="function"){let R=r.createElement("template");R.content&&R.content.ownerDocument&&(r=R.content.ownerDocument)}let A,N="",{implementation:_,createNodeIterator:x,createDocumentFragment:E,getElementsByTagName:T}=r,{importNode:w}=n,C={};t.isSupported=typeof fg=="function"&&typeof S=="function"&&_&&_.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:I,ERB_EXPR:M,TMPLIT_EXPR:D,DATA_ATTR:F,ARIA_ATTR:U,IS_SCRIPT_OR_DATA:z,ATTR_WHITESPACE:B}=pg,{IS_ALLOWED_URI:k}=pg,L=null,O=Me({},[...cg,...A0,...D0,...L0,...dg]),K=null,H=Me({},[...gg,...M0,...mg,...ju]),V=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),q=null,oe=null,Q=!0,J=!0,ye=!1,Te=!0,ie=!1,Y=!1,ce=!1,fe=!1,ge=!1,Ee=!1,Le=!1,ve=!0,ee=!1,De="user-content-",_e=!0,je=!1,We={},Et=null,Vt=Me({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),qa=null,nn=Me({},["audio","video","img","source","image","track"]),Jn=null,ga=Me({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ze="http://www.w3.org/1998/Math/MathML",an="http://www.w3.org/2000/svg",bt="http://www.w3.org/1999/xhtml",Ze=bt,ln=!1,Yt=null,ma=Me({},[ze,an,bt],S0),kt,kn=["application/xhtml+xml","text/html"],Ve="text/html",W,pe=null,nt=r.createElement("form"),Be=function(R){return R instanceof RegExp||R instanceof Function},Ie=function(R){if(!(pe&&pe===R)){if((!R||typeof R!="object")&&(R={}),R=wr(R),kt=kn.indexOf(R.PARSER_MEDIA_TYPE)===-1?kt=Ve:kt=R.PARSER_MEDIA_TYPE,W=kt==="application/xhtml+xml"?S0:zu,L="ALLOWED_TAGS"in R?Me({},R.ALLOWED_TAGS,W):O,K="ALLOWED_ATTR"in R?Me({},R.ALLOWED_ATTR,W):H,Yt="ALLOWED_NAMESPACES"in R?Me({},R.ALLOWED_NAMESPACES,S0):ma,Jn="ADD_URI_SAFE_ATTR"in R?Me(wr(ga),R.ADD_URI_SAFE_ATTR,W):ga,qa="ADD_DATA_URI_TAGS"in R?Me(wr(nn),R.ADD_DATA_URI_TAGS,W):nn,Et="FORBID_CONTENTS"in R?Me({},R.FORBID_CONTENTS,W):Vt,q="FORBID_TAGS"in R?Me({},R.FORBID_TAGS,W):{},oe="FORBID_ATTR"in R?Me({},R.FORBID_ATTR,W):{},We="USE_PROFILES"in R?R.USE_PROFILES:!1,Q=R.ALLOW_ARIA_ATTR!==!1,J=R.ALLOW_DATA_ATTR!==!1,ye=R.ALLOW_UNKNOWN_PROTOCOLS||!1,Te=R.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ie=R.SAFE_FOR_TEMPLATES||!1,Y=R.WHOLE_DOCUMENT||!1,ge=R.RETURN_DOM||!1,Ee=R.RETURN_DOM_FRAGMENT||!1,Le=R.RETURN_TRUSTED_TYPE||!1,fe=R.FORCE_BODY||!1,ve=R.SANITIZE_DOM!==!1,ee=R.SANITIZE_NAMED_PROPS||!1,_e=R.KEEP_CONTENT!==!1,je=R.IN_PLACE||!1,k=R.ALLOWED_URI_REGEXP||hg,Ze=R.NAMESPACE||bt,V=R.CUSTOM_ELEMENT_HANDLING||{},R.CUSTOM_ELEMENT_HANDLING&&Be(R.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(V.tagNameCheck=R.CUSTOM_ELEMENT_HANDLING.tagNameCheck),R.CUSTOM_ELEMENT_HANDLING&&Be(R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(V.attributeNameCheck=R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),R.CUSTOM_ELEMENT_HANDLING&&typeof R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(V.allowCustomizedBuiltInElements=R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ie&&(J=!1),Ee&&(ge=!0),We&&(L=Me({},[...dg]),K=[],We.html===!0&&(Me(L,cg),Me(K,gg)),We.svg===!0&&(Me(L,A0),Me(K,M0),Me(K,ju)),We.svgFilters===!0&&(Me(L,D0),Me(K,M0),Me(K,ju)),We.mathMl===!0&&(Me(L,L0),Me(K,mg),Me(K,ju))),R.ADD_TAGS&&(L===O&&(L=wr(L)),Me(L,R.ADD_TAGS,W)),R.ADD_ATTR&&(K===H&&(K=wr(K)),Me(K,R.ADD_ATTR,W)),R.ADD_URI_SAFE_ATTR&&Me(Jn,R.ADD_URI_SAFE_ATTR,W),R.FORBID_CONTENTS&&(Et===Vt&&(Et=wr(Et)),Me(Et,R.FORBID_CONTENTS,W)),_e&&(L["#text"]=!0),Y&&Me(L,["html","head","body"]),L.table&&(Me(L,["tbody"]),delete q.tbody),R.TRUSTED_TYPES_POLICY){if(typeof R.TRUSTED_TYPES_POLICY.createHTML!="function")throw ko('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof R.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ko('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');A=R.TRUSTED_TYPES_POLICY,N=A.createHTML("")}else A===void 0&&(A=g9(f,a)),A!==null&&typeof N=="string"&&(N=A.createHTML(""));zt&&zt(R),pe=R}},Qn=Me({},["mi","mo","mn","ms","mtext"]),jn=Me({},["foreignobject","desc","title","annotation-xml"]),cn=Me({},["title","style","font","a","script"]),pr=Me({},A0);Me(pr,D0),Me(pr,n9);let Fs=Me({},L0);Me(Fs,a9);let Uh=function(R){let le=S(R);(!le||!le.tagName)&&(le={namespaceURI:Ze,tagName:"template"});let te=zu(R.tagName),Oe=zu(le.tagName);return Yt[R.namespaceURI]?R.namespaceURI===an?le.namespaceURI===bt?te==="svg":le.namespaceURI===ze?te==="svg"&&(Oe==="annotation-xml"||Qn[Oe]):!!pr[te]:R.namespaceURI===ze?le.namespaceURI===bt?te==="math":le.namespaceURI===an?te==="math"&&jn[Oe]:!!Fs[te]:R.namespaceURI===bt?le.namespaceURI===an&&!jn[Oe]||le.namespaceURI===ze&&!Qn[Oe]?!1:!Fs[te]&&(cn[te]||!pr[te]):!!(kt==="application/xhtml+xml"&&Yt[R.namespaceURI]):!1},fr=function(R){wo(t.removed,{element:R});try{R.parentNode.removeChild(R)}catch{R.remove()}},_s=function(R,le){try{wo(t.removed,{attribute:le.getAttributeNode(R),from:le})}catch{wo(t.removed,{attribute:null,from:le})}if(le.removeAttribute(R),R==="is"&&!K[R])if(ge||Ee)try{fr(le)}catch{}else try{le.setAttribute(R,"")}catch{}},S4=function(R){let le,te;if(fe)R=""+R;else{let Ut=Z6(R,/^[\r\n\t ]+/);te=Ut&&Ut[0]}kt==="application/xhtml+xml"&&Ze===bt&&(R=''+R+"");let Oe=A?A.createHTML(R):R;if(Ze===bt)try{le=new p().parseFromString(Oe,kt)}catch{}if(!le||!le.documentElement){le=_.createDocument(Ze,"template",null);try{le.documentElement.innerHTML=ln?N:Oe}catch{}}let yt=le.body||le.documentElement;return R&&te&&yt.insertBefore(r.createTextNode(te),yt.childNodes[0]||null),Ze===bt?T.call(le,Y?"html":"body")[0]:Y?le.documentElement:yt},A4=function(R){return x.call(R.ownerDocument||R,R,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},jh=function(R){return R instanceof g&&(typeof R.nodeName!="string"||typeof R.textContent!="string"||typeof R.removeChild!="function"||!(R.attributes instanceof l)||typeof R.removeAttribute!="function"||typeof R.setAttribute!="function"||typeof R.namespaceURI!="string"||typeof R.insertBefore!="function"||typeof R.hasChildNodes!="function")},yu=function(R){return typeof i=="object"?R instanceof i:R&&typeof R=="object"&&typeof R.nodeType=="number"&&typeof R.nodeName=="string"},Zn=function(R,le,te){C[R]&&Q6(C[R],Oe=>{Oe.call(t,le,te,pe)})},D4=function(R){let le;if(Zn("beforeSanitizeElements",R,null),jh(R))return fr(R),!0;let te=W(R.nodeName);if(Zn("uponSanitizeElement",R,{tagName:te,allowedTags:L}),R.hasChildNodes()&&!yu(R.firstElementChild)&&(!yu(R.content)||!yu(R.content.firstElementChild))&&on(/<[/\w]/g,R.innerHTML)&&on(/<[/\w]/g,R.textContent))return fr(R),!0;if(!L[te]||q[te]){if(!q[te]&&M4(te)&&(V.tagNameCheck instanceof RegExp&&on(V.tagNameCheck,te)||V.tagNameCheck instanceof Function&&V.tagNameCheck(te)))return!1;if(_e&&!Et[te]){let Oe=S(R)||R.parentNode,yt=b(R)||R.childNodes;if(yt&&Oe){let Ut=yt.length;for(let Jt=Ut-1;Jt>=0;--Jt)Oe.insertBefore(y(yt[Jt],!0),v(R))}}return fr(R),!0}return R instanceof s&&!Uh(R)||(te==="noscript"||te==="noembed")&&on(/<\/no(script|embed)/i,R.innerHTML)?(fr(R),!0):(ie&&R.nodeType===3&&(le=R.textContent,le=An(le,I," "),le=An(le,M," "),le=An(le,D," "),R.textContent!==le&&(wo(t.removed,{element:R.cloneNode()}),R.textContent=le)),Zn("afterSanitizeElements",R,null),!1)},L4=function(R,le,te){if(ve&&(le==="id"||le==="name")&&(te in r||te in nt))return!1;if(!(J&&!oe[le]&&on(F,le))&&!(Q&&on(U,le))){if(!K[le]||oe[le]){if(!(M4(R)&&(V.tagNameCheck instanceof RegExp&&on(V.tagNameCheck,R)||V.tagNameCheck instanceof Function&&V.tagNameCheck(R))&&(V.attributeNameCheck instanceof RegExp&&on(V.attributeNameCheck,le)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(le))||le==="is"&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&on(V.tagNameCheck,te)||V.tagNameCheck instanceof Function&&V.tagNameCheck(te))))return!1}else if(!Jn[le]&&!on(k,An(te,B,""))&&!((le==="src"||le==="xlink:href"||le==="href")&&R!=="script"&&X6(te,"data:")===0&&qa[R])&&!(ye&&!on(z,An(te,B,"")))&&te)return!1}return!0},M4=function(R){return R.indexOf("-")>0},P4=function(R){let le,te,Oe,yt;Zn("beforeSanitizeAttributes",R,null);let{attributes:Ut}=R;if(!Ut)return;let Jt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:K};for(yt=Ut.length;yt--;){le=Ut[yt];let{name:Ct,namespaceURI:hr}=le;if(te=Ct==="value"?le.value:e9(le.value),Oe=W(Ct),Jt.attrName=Oe,Jt.attrValue=te,Jt.keepAttr=!0,Jt.forceKeepAttr=void 0,Zn("uponSanitizeAttribute",R,Jt),te=Jt.attrValue,Jt.forceKeepAttr||(_s(Ct,R),!Jt.keepAttr))continue;if(!Te&&on(/\/>/i,te)){_s(Ct,R);continue}ie&&(te=An(te,I," "),te=An(te,M," "),te=An(te,D," "));let F4=W(R.nodeName);if(L4(F4,Oe,te)){if(ee&&(Oe==="id"||Oe==="name")&&(_s(Ct,R),te=De+te),A&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!hr)switch(f.getAttributeType(F4,Oe)){case"TrustedHTML":{te=A.createHTML(te);break}case"TrustedScriptURL":{te=A.createScriptURL(te);break}}try{hr?R.setAttributeNS(hr,Ct,te):R.setAttribute(Ct,te),lg(t.removed)}catch{}}}Zn("afterSanitizeAttributes",R,null)},zh=function R(le){let te,Oe=A4(le);for(Zn("beforeSanitizeShadowDOM",le,null);te=Oe.nextNode();)Zn("uponSanitizeShadowNode",te,null),!D4(te)&&(te.content instanceof o&&R(te.content),P4(te));Zn("afterSanitizeShadowDOM",le,null)};return t.sanitize=function(R){let le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te,Oe,yt,Ut;if(ln=!R,ln&&(R=""),typeof R!="string"&&!yu(R))if(typeof R.toString=="function"){if(R=R.toString(),typeof R!="string")throw ko("dirty is not a string, aborting")}else throw ko("toString is not a function");if(!t.isSupported)return R;if(ce||Ie(le),t.removed=[],typeof R=="string"&&(je=!1),je){if(R.nodeName){let hr=W(R.nodeName);if(!L[hr]||q[hr])throw ko("root node is forbidden and cannot be sanitized in-place")}}else if(R instanceof i)te=S4(""),Oe=te.ownerDocument.importNode(R,!0),Oe.nodeType===1&&Oe.nodeName==="BODY"||Oe.nodeName==="HTML"?te=Oe:te.appendChild(Oe);else{if(!ge&&!ie&&!Y&&R.indexOf("<")===-1)return A&&Le?A.createHTML(R):R;if(te=S4(R),!te)return ge?null:Le?N:""}te&&fe&&fr(te.firstChild);let Jt=A4(je?R:te);for(;yt=Jt.nextNode();)D4(yt)||(yt.content instanceof o&&zh(yt.content),P4(yt));if(je)return R;if(ge){if(Ee)for(Ut=E.call(te.ownerDocument);te.firstChild;)Ut.appendChild(te.firstChild);else Ut=te;return(K.shadowroot||K.shadowrootmod)&&(Ut=w.call(n,Ut,!0)),Ut}let Ct=Y?te.outerHTML:te.innerHTML;return Y&&L["!doctype"]&&te.ownerDocument&&te.ownerDocument.doctype&&te.ownerDocument.doctype.name&&on(bg,te.ownerDocument.doctype.name)&&(Ct=" +`+Ct),ie&&(Ct=An(Ct,I," "),Ct=An(Ct,M," "),Ct=An(Ct,D," ")),A&&Le?A.createHTML(Ct):Ct},t.setConfig=function(R){Ie(R),ce=!0},t.clearConfig=function(){pe=null,ce=!1},t.isValidAttribute=function(R,le,te){pe||Ie({});let Oe=W(R),yt=W(le);return L4(Oe,yt,te)},t.addHook=function(R,le){typeof le=="function"&&(C[R]=C[R]||[],wo(C[R],le))},t.removeHook=function(R){if(C[R])return lg(C[R])},t.removeHooks=function(R){C[R]&&(C[R]=[])},t.removeAllHooks=function(){C={}},t}var Ne=yg();var _0=Iu.alert;h();h();h();function Ke(){return typeof process>"u"&&typeof Deno<"u"?Deno.env.toObject():P}var Ce=Ke();function me(){return Ce.IMMERSIVE_TRANSLATE_USERSCRIPT==="1"}function Tg(){return Ce.BETA==="1"}function ta(){return Ce.PROD==="1"}function na(){return Ce.PROD_API==="1"}function xg(){return Ce.HAS_CSP_ERROR=="1"}function ot(){if(Ce.IMMERSIVE_TRANSLATE_SAFARI==="1")return!0;if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let t=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(t&&t._isSafari)}else return!1}function Hu(){return typeof Deno<"u"}var f8=Ke().PROD==="1",kr=Ke().PROD!=="1";function qu(){return typeof globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__<"u"}function So(){if(typeof globalThis.immersiveTranslateBrowserAPI<"u"&&globalThis.immersiveTranslateBrowserAPI.runtime&&globalThis.immersiveTranslateBrowserAPI.runtime.getManifest){let e=globalThis.immersiveTranslateBrowserAPI.runtime.getManifest();return!!(e&&(e._isUserscript||e._isSafari))}else return!1}var Eg={nologin:"\u672A\u767B\u5F55",loginForSafari:"\u767B\u5F55\u6216\u6CE8\u518C",login:"\u767B\u5F55\u540E\u53EF\u5F00\u901A\u4F1A\u5458",manageAccount:"\u7BA1\u7406\u8D26\u6237",openPremium:"\u5F00\u901A\u4F1A\u5458",logout:"\u9000\u51FA",curentPlan:"\u5F53\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52A8\u7EED\u671F",lineBreakMaxTextCount:"\u6362\u884C\u540E\uFF0C\u6BCF\u53E5\u8BDD\u5141\u8BB8\u7684\u6700\u5927\u5B57\u7B26\u6570\u91CF","translate-pdf":"\u70B9\u51FB\u7FFB\u8BD1 PDF","noSupportTranslate-pdf":"\u811A\u672C\u4E0D\u652F\u6301\u8BF7\u4F7F\u7528\u63D2\u4EF6","translate-firefox-local-pdf":"\u70B9\u51FB\u53BB\u5BFC\u5165PDF",enableLineBreak:"\u5F00\u542F\u957F\u6BB5\u843D\u81EA\u52A8\u6362\u884C",sponsorLabel:"$1 \u8D77\u8D5E\u52A9\u5F00\u53D1\u8005",help:"\u5E2E\u52A9",browserShortcutsNoteForFirefox:"Firefox \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762 `about:addons`\uFF0C\u7136\u540E\u70B9\u51FB\u300C\u8BBE\u7F6E\u300D\uFF0C\u518D\u70B9\u51FB\u300C\u7BA1\u7406\u5FEB\u6377\u952E\u300D\u5373\u53EF\u8BBE\u7F6E",browserShortcutsNoteForChrome:"\u7C7BChrome \u6D4F\u89C8\u5668\u4FEE\u6539\u5FEB\u6377\u952E\u9700\u8981\u6253\u5F00\u6269\u5C55\u7BA1\u7406\u9875\u9762\uFF0C\u5728`\u7BA1\u7406\u5FEB\u6377\u952E`\u9762\u677F(`chrome://extensions/shortcuts`)\u8BBE\u7F6E\uFF0C\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u8DF3\u8F6C\u5230\u5FEB\u6377\u952E\u7BA1\u7406\u9875\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E\u683C\u5F0F\u4E3A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u5F00\u542F\u540E\uFF0C\u5C06\u4F1A\u5728\u957F\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8BDD\u7ED3\u675F\u63D2\u5165\u6362\u884C\u7B26\uFF0C\u4EE5\u4FBF\u4E8E\u9605\u8BFB","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8BD1: \u53CC\u8BED\u5BF9\u7167\u7F51\u9875\u7FFB\u8BD1 & PDF\u6587\u6863\u7FFB\u8BD1","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7F51\u9875\u53CC\u8BED\u7FFB\u8BD1\u6269\u5C55\uFF0C\u540C\u65F6\u652F\u6301 PDF \u7FFB\u8BD1\uFF0C\u53CC\u8BED Epub \u7535\u5B50\u4E66\u5236\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u817E\u8BAF\u7FFB\u8BD1\u7B49\u591A\u4E2A\u7FFB\u8BD1\u670D\u52A1\uFF0C\u514D\u8D39\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8BD1\u5E76\u9690\u85CF\u539F\u6587/\u663E\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8/\u663E\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8BD1\u9875\u9762\u4E3B\u8981\u533A\u57DF/\u663E\u793A\u539F\u6587","browser.openOptionsPage":"\u6253\u5F00\u8BBE\u7F6E\u9875","browser.toggleTranslationMask":"\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8BD1\u672C\u5730 PDF \u6587\u4EF6","browser.openEbookViewer":"\u9605\u8BFB\u672C\u5730\u7535\u5B50\u4E66","browser.openEbookBuilder":"\u5236\u4F5C\u53CC\u8BED EPUB \u7535\u5B50\u4E66","browser.translateLocalHtmlFile":"\u7FFB\u8BD1 HTML/txt \u6587\u4EF6","browser.donateContext":"\u4E86\u89E3\u8D5E\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8BD1\u672C\u5730\u5B57\u5E55\u6587\u4EF6",confirmResetConfig:"\u4F60\u786E\u5B9A\u8981\u91CD\u7F6E\u8BBE\u7F6E\u5417\uFF1F",translationLineBreakSettingTitle:"\u8BD1\u6587\u6362\u884C\u8BBE\u7F6E",smartLineBreak:"\u667A\u80FD\u6362\u884C",alwaysLineBreak:"\u603B\u662F\u6362\u884C",isShowContextMenu:"\u5C06\u7FFB\u8BD1\u7F51\u9875\u52A0\u5165\u53F3\u952E\u83DC\u5355\u9879",toggleBeta:"\u5F00\u542F Beta \u6D4B\u8BD5\u7279\u6027",betaDescription:"\u542F\u7528\u4ECD\u5728\u5B9E\u9A8C\u6027\u7684\u529F\u80FD\uFF0C\u4EE5\u53CA\u6D4B\u8BD5\u4E2D\u7684\u7FFB\u8BD1\u670D\u52A1\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7EC4\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u603B\u662F\u6362\u884C\u9002\u7528\u4E8E\u8F83\u5C11\u5185\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F50\u3002\uFF08\u5728\u5185\u5BB9\u8F83\u591A\u7684\u957F\u6BB5\u843D(\u8D85\u8FC7{count}\u4E2A\u5B57\u7B26) \u4F7F\u7528\u667A\u80FD\u6362\u884C\uFF0C\u66F4\u7701\u7A7A\u95F4\uFF09",tempTranslateDomainTitle:"\u4E34\u65F6\u5F00\u542F\u7F51\u7AD9\u7FFB\u8BD1\u7684\u65F6\u957F",tempTranslateDomainDescription:"\u5F53\u624B\u52A8\u7FFB\u8BD1\u67D0\u4E2A\u7F51\u9875\u7684\u65F6\u5019\uFF0C\u4E34\u65F6\u5F00\u542F\u8BE5\u7F51\u7AD9\u4E3A\u81EA\u52A8\u7FFB\u8BD1\uFF0C\u53EF\u8BBE\u7F6E\u4E34\u65F6\u65F6\u957F",xMinutes:"{count} \u5206\u949F",disabled:"\u7981\u7528",changelog:"\u66F4\u65B0\u65E5\u5FD7",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5219\u663E\u793A/\u9690\u85CF\u8BD1\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u65F6\u89E6\u6478\u5C4F\u5E55\u5219\u7FFB\u8BD1\u7F51\u9875(\u4EC5\u8BD1\u6587)/\u663E\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u4E3A\u57DF\u540D\uFF0C\u540C\u65F6\u652F\u6301\u901A\u914D\u7B26\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8BBE\u7F6E",clickToExpandConfig:"\u5C55\u5F00\u5F53\u524D\u914D\u7F6E",import:"\u4ECE\u6587\u4EF6\u5BFC\u5165",export:"\u5BFC\u51FA\u5230\u6587\u4EF6",toggleDebug:"\u5728\u63A7\u5236\u53F0\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7","fingers.0":"\u5173\u95ED","fingers.2":"\u53CC\u6307\u89E6\u6478","fingers.3":"\u4E09\u6307\u89E6\u6478","fingers.4":"\u56DB\u6307\u89E6\u6478","fingers.5":"\u4E94\u6307\u89E6\u6478",mouseHoldKey:"+ {key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8BD1\u8BE5\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u4E49\u5FEB\u6377\u952E(\u6253\u5F00\u8BBE\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8BD1\u8BE5\u6BB5",mouseHoverHoldKey:"\u9F20\u6807\u60AC\u505C\u540C\u65F6\u6309\u4E0B\u5FEB\u6377\u952E\u7FFB\u8BD1\u6BB5\u843D","mouse-translate":"\u9F20\u6807\u60AC\u505C",document:"\u6587\u6863",resetSuccess:"\u91CD\u7F6E\u6240\u6709\u8BBE\u7F6E\u6210\u529F",resetThisSuccess:"\u91CD\u7F6E\u6210\u529F",saved:"\u4FDD\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u5BFC\u5165\u914D\u7F6E",goAdvancedSettings:"\u53BB\u8FDB\u9636\u8BBE\u7F6E\u9875",goAdvancedInterfaceSettings:"\u53BB\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u8BBE\u7F6E\u9875\u9762",advanced:"\u8FDB\u9636\u8BBE\u7F6E",advancedDescription:"\u4E00\u822C\u65E0\u9700\u8BBE\u7F6E\uFF0C\u4FDD\u6301\u9ED8\u8BA4\u5373\u53EF\u3002\u4EC5\u5BF9\u4E8E\u66F4\u4E13\u4E1A\u7684\u7528\u6237\uFF0C\u63D0\u4F9B\u66F4\u4E2A\u6027\u5316\u7684\u8BBE\u7F6E\u9879\u3002",developer:"\u5F00\u53D1\u8005\u8BBE\u7F6E",donateCafe:"\u4EF7\u683C","translate to the bottom of the page":"\u8FDB\u5165\u7F51\u9875\u540E\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8\uFF1F",feedback:"\u95EE\u9898\u53CD\u9988",toggleTranslatePage:"\u7FFB\u8BD1\u7F51\u9875/\u663E\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u5F00\u542F\u540E\uFF0C\u8FDB\u5165\u7F51\u9875\u5C06\u7ACB\u5373\u7FFB\u8BD1\u4ECE\u9876\u90E8\u5230\u5E95\u90E8\u7684\u5185\u5BB9\u3002\u5173\u95ED\u5219\u8FB9\u770B\u8FB9\u8BD1\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8BD1\u7F51\u9875\u6240\u6709\u533A\u57DF",translationAreaDescription:"\u5F00\u542F\u540E\uFF0C\u6574\u4E2A\u7F51\u9875\u7684\u6240\u6709\u533A\u57DF\u90FD\u4F1A\u88AB\u7FFB\u8BD1\u3002\u5173\u95ED\u5219\u4F7F\u7528\u9ED8\u8BA4\u7684\u667A\u80FD\u8BC6\u522B\uFF0C\u4EC5\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF\u3002\uFF08\u4E0D\u63A8\u8350\u5F00\u542F\uFF09","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8BD1\u9875\u9762\u524D\u591A\u5C11\u4E2A\u5B57\u7B26\uFF0C\u800C\u65E0\u9700\u7B49\u5F85\u6EDA\u52A8\u5230\u53EF\u89C6\u533A\u57DF","interface language":"\u754C\u9762\u8BED\u8A00","display both the original text and the translation":"\u540C\u65F6\u663E\u793A\u539F\u6587\u548C\u8BD1\u6587","keyboard shortcuts":"\u952E\u76D8\u5FEB\u6377\u952E",modify:"\u4FEE\u6539\u5FEB\u6377\u952E",reset:"\u91CD\u7F6E",close:"\u5173\u95ED",homepage:"\u4E3B\u9875",more:"\u66F4\u591A",moreOptions:"\u5C55\u5F00\u66F4\u591A\u81EA\u5B9A\u4E49\u9009\u9879",translateTheWholePage:"\u7FFB\u8BD1\u9875\u9762\u5168\u90E8\u533A\u57DF\uFF08\u533A\u522B\u4E8E\u667A\u80FD\u8BC6\u522B\u4E3B\u8981\u533A\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u6240\u6709\u533A\u57DF",changeToTranslateTheMainPage:"\u5207\u6362\u4E3A\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF",changeToOnlyTranslationMode:"\u5207\u6362\u4E3A\u4EC5\u663E\u793A\u8BD1\u6587",changeToDualTranslationMode:"\u5207\u6362\u4E3A\u53CC\u8BED\u7FFB\u8BD1",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8BD1\u5230\u9875\u9762\u5E95\u90E8",translateTheMainPage:"\u667A\u80FD\u7FFB\u8BD1\u4E3B\u8981\u533A\u57DF","The local rules are up to date":"\u672C\u5730\u9002\u914D\u89C4\u5219\u5DF2\u662F\u6700\u65B0:","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u9002\u914D\u89C4\u5219:","Checking for updates":"\u6B63\u5728\u68C0\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u9002\u914D\u89C4\u5219",localVersionIsTooOld:"\u672C\u5730\u6269\u5C55\u7248\u672C\u8FC7\u65E7\uFF0C\u8BF7\u5347\u7EA7\u6269\u5C55\u5230 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5C1D\u8BD5\u540C\u6B65",badUserscriptBrowser:"\u5F53\u524D\u6D4F\u89C8\u5668\u6CA1\u6709\u6B63\u786E\u5B9E\u73B0\u6CB9\u7334\u6269\u5C55\u7684\u63A5\u53E3\uFF08\u6BD4\u5982\u83B7\u53D6\u6CB9\u7334\u811A\u672C\u81EA\u8EAB\u7684\u7248\u672C\u53F7\u4FE1\u606F\uFF09\uFF0C\u8BF7\u4F7F\u7528\u5176\u4ED6<1>\u652F\u6301\u6CB9\u7334\u6269\u5C55\u7684\u6D4F\u89C8\u5668\u5982 Firefox",foundNewVersion:"\u53D1\u73B0\u65B0\u7248\u672C",theLocalExtensionIsUpToUpdate:"\u5F53\u524D\u6269\u5C55\u5DF2\u662F\u6700\u65B0\u7248\u672C\u3002",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u9002\u914D\u89C4\u5219\u5931\u8D25",retry:"\u70B9\u6B64\u91CD\u8BD5",failedReason:"\u5931\u8D25\u539F\u56E0",currentRuleVersion:"\u5F53\u524D\u89C4\u5219\u7248\u672C",calculating:"\u8BA1\u7B97\u4E2D",unknownError:"\u672A\u77E5\u9519\u8BEF",canNotFetchRemoteRule:"\u65E0\u6CD5\u83B7\u53D6\u8FDC\u7A0B\u89C4\u5219",enableAlphaSuccess:"\u5DF2\u5F00\u542FAlpha\u529F\u80FD",disableAlphaSuccess:"\u5DF2\u5173\u95EDAlpha\u529F\u80FD",cacheSize:"\u7F13\u5B58\u5927\u5C0F\uFF1A",cleaning:"\u6E05\u7406\u4E2D",cleanCache:"\u6E05\u9664\u7F13\u5B58",options:"\u8BBE\u7F6E",about:"\u5173\u4E8E",service:"\u7FFB\u8BD1\u670D\u52A1",needAction:"(\u53BB\u8BBE\u7F6E)",goSettings:"\u53BB\u8BBE\u7F6E",needActionForOptions:"(\u9700\u8BBE\u7F6E)",translationEngine:"\u5F15\u64CE\u9009\u9879",sourceLanguage:"\u539F\u6587\u8BED\u8A00",target:"\u76EE\u6807\u8BED\u8A00",popupSourceLanguage:"\u539F\u6587\u8BED\u8A00",popupTarget:"\u76EE\u6807\u8BED\u8A00",popupService:"\u7FFB\u8BD1\u670D\u52A1",forThisSite:"\u5F53\u524D\u7F51\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u603B\u662F\u7FFB\u8BD1 {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8BD1 {language}",alwaysTranslateSomeSite:"\u603B\u662F\u7FFB\u8BD1 {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8BD1 {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u6DFB\u52A0",default:"\u9ED8\u8BA4",forThisLanguage:"\u9488\u5BF9\u8BE5\u8BED\u8A00\uFF1A","add url":"\u8F93\u5165URL",edit:"\u7F16\u8F91","translate other languages into specific language":"\u5C06\u5176\u4ED6\u8BED\u8A00\u7FFB\u8BD1\u4E3A\u4F60\u8BBE\u7F6E\u7684\u8BED\u8A00","select translation service":"\u9009\u62E9\u4E00\u9879\u7FFB\u8BD1\u670D\u52A1",language:"\u8BED\u8A00","show-original":"\u663E\u793A\u539F\u6587",translate:"\u7FFB\u8BD1",Translated:"\u5DF2\u7FFB\u8BD1",Translating:"\u7FFB\u8BD1\u4E2D",Error:"\u9519\u8BEF",allowCacheTranslations:"\u5F00\u542F\u672C\u5730\u7FFB\u8BD1\u7F13\u5B58\uFF08\u51CF\u5C11\u91CD\u590D\u6BB5\u843D\u7684\u7FFB\u8BD1\u8BF7\u6C42\uFF09","translation display":"\u8BD1\u6587\u663E\u793A\u6837\u5F0F","select diplay style":"\u533A\u5206\u8BD1\u6587\u7684\u6837\u5F0F\uFF0C\u5177\u4F53\u53EF\u53C2\u8003\u4E0B\u5217\u793A\u4F8B",interface:"\u754C\u9762\u8BBE\u7F6E",import_export:"\u5BFC\u5165/\u5BFC\u51FA",import_export_title:"\u5BFC\u5165/\u5BFC\u51FA\u914D\u7F6E",syncToGoogleDrive:"\u7ACB\u5373\u4E0E Google Drive \u540C\u6B65",previewAllThemes:"\u9884\u89C8\u5168\u90E8\u6837\u5F0F","translationTheme.none":"\u65E0","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.dotted":"\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.dashedBorder":"\u865A\u7EBF\u8FB9\u6846","translationTheme.solidBorder":"\u5B9E\u7EBF\u8FB9\u6846","translationTheme.underline":"\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B66\u4E60\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7EB8\u9634\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u5272\u7EBF","translationTheme.highlight":"\u9AD8\u4EAE","translationTheme.marker":"\u9A6C\u514B\u7B14","translationTheme.marker2":"\u9A6C\u514B\u7B142","translationTheme.blockquote":"\u5F15\u7528\u6837\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u4F53","translationTheme.bold":"\u52A0\u7C97","translationTheme.thinDashed":"\u7EC6\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDashed":"\u7CFB\u7EDF\u81EA\u5E26\u865A\u7EBF\u4E0B\u5212\u7EBF","translationTheme.nativeDotted":"\u7CFB\u7EDF\u81EA\u5E26\u70B9\u72B6\u4E0B\u5212\u7EBF","translationTheme.nativeUnderline":"\u7CFB\u7EDF\u81EA\u5E26\u76F4\u7EBF\u4E0B\u5212\u7EBF","translationTheme.wavy":"\u6CE2\u6D6A\u7EBF","translationServices.custom":"\u81EA\u5B9A\u4E49API","translationServices.tencent":"\u817E\u8BAF\u7FFB\u8BD1\u541B","translationServices.tenAlpha":"\u817E\u8BAF\u7FFB\u8BD1\u541B(Alpha)","translationServices.google":"\u8C37\u6B4C\u7FFB\u8BD1","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8BD1","translationServices.aliyun":"\u963F\u91CC\u4E91\u7FFB\u8BD1","translationServices.volc":"\u706B\u5C71\u7FFB\u8BD1","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8BD1","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8BD1","translationServices.azure":"Azure \u7FFB\u8BD1","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9A\u9A6C\u900A\u7FFB\u8BD1","translationServices.mock":"\u6A21\u62DF\u7FFB\u8BD1","translationServices.mock2":"\u6A21\u62DF\u7FFB\u8BD12","translationServices.caiyun":"\u5F69\u4E91\u5C0F\u8BD1","translationServices.cai":"\u5F69\u4E91\u5C0F\u8BD1 (Alpha)","translationServices.volcAlpha":"\u706B\u5C71 (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8BD1","translationServices.you":"\u6709\u9053\u7FFB\u8BD1 (Alpha)","translationServices.transmart":"\u817E\u8BAF\u4EA4\u4E92\u7FFB\u8BD1","translationServices.niu":"\u5C0F\u725B\u7FFB\u8BD1","translationServices.papago":"Papago \u7FFB\u8BD1","translationServices.d":"D (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8BD1\u9875\u9762\u6807\u9898","always languages":"\u603B\u662F\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u8BED\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u5F53\u9875\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u5C06\u8DF3\u8FC7\u7FFB\u8BD1",enableUserscriptPagePopup:"\u5728\u9875\u9762\u4E0A\u663E\u793A\u60AC\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u5173\u95ED\u60AC\u6D6E\u7403\u540E\uFF0C\u53EF\u4EE5\u7528\u5FEB\u6377\u952E/{touch}\u5524\u8D77\u3002\u4E3A\u9632\u6B62\u4E0D\u614E\u5173\u95ED\u8BE5\u9009\u9879\u540E\u627E\u4E0D\u5230\u60AC\u6D6E\u7403\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u6536\u85CF\u672C\u8BBE\u7F6E\u9875","always translate the following languages":"\u5F53\u9875\u9762\u8BED\u8A00\u4E3A\u4E0B\u5217\u8BED\u8A00\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","always sites":"\u603B\u662F\u7FFB\u8BD1\u7684\u7F51\u5740","always translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u4F1A\u81EA\u52A8\u7FFB\u8BD1\u4E3A\u76EE\u6807\u8BED\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8BD1\u7684\u7F51\u5740","never translate the following sites":"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u7FFB\u8BD1","please refer to":"\u9700\u8981\u586B\u5199\u5BC6\u94A5\u540E\u624D\u53EF\u7528\uFF0C\u8BE6\u60C5\u53C2\u8003",KeyAndConfigurationTutorial:"\u300A\u5BC6\u94A5\u7533\u8BF7\u548C\u914D\u7F6E\u6559\u7A0B\u300B",useAboveStyleForTheseSites:"\u5F53\u7F51\u7AD9\u4E3A\u4E0B\u5217\u57DF\u540D\u65F6\uFF0C\u603B\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8BD1\u6587\u6837\u5F0F",currentUrl:"\u5F53\u524D\u7F51\u5740",confirm:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",delete:"\u5220\u9664","languages.auto":"\u81EA\u52A8\u68C0\u6D4B",syncToCloud:"\u540C\u6B65\u5230 Google Drive",syncToCloudDescription:"\u4E0A\u4F20\u5230\u4E91\u7AEF\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u6D4F\u89C8\u5668/\u6CB9\u7334\u811A\u672C\u4E4B\u95F4\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",syncToAccount:"\u540C\u6B65\u5230\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u4E91\u7AEF",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u5728\u4E0D\u540C\u7684\u8BBE\u5907\u4E4B\u95F4\u81EA\u52A8\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u540E\u4FEE\u6539\u65F6\u95F4\u4E3A\u51C6\u3002",successSyncConfigInAccount:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u4E91\u7AEF",syncConfigNoUpdate:"\u5DF2\u7ECF\u662F\u6700\u65B0\u7684\u4E86",authFail:"\u6388\u6743\u5931\u8D25",syncTitle:"\u624B\u52A8\u5907\u4EFD\u7BA1\u7406",import_hint:"\u5BFC\u5165",upload:"\u4E0A\u4F20",revokeAuth:"\u64A4\u9500\u6388\u6743",uploadFail:"\u4E0A\u4F20\u5931\u8D25",download:"\u4E0B\u8F7D",importSuccess:"\u5BFC\u5165\u6210\u529F",importFail:"\u5BFC\u5165\u5931\u8D25",deleteFail:"\u5220\u9664\u5931\u8D25",backupToCloud:"\u624B\u52A8\u7BA1\u7406\u5907\u4EFD\u6587\u4EF6",create_new_backup:"\u65B0\u589E\u5907\u4EFD\u8282\u70B9",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5907\u4EFD{count}\u4E2A\u4E0D\u540C\u7684\u8282\u70B9, \u8BF7\u5220\u9664\u4E0D\u9700\u8981\u7684\u8282\u70B9",backupToCloudDescription:"\u624B\u52A8\u4E0A\u4F20\u6216\u6062\u590D\u5907\u4EFD\u6587\u4EF6\uFF0C\u6700\u591A\u5141\u8BB83\u4E2A\u4E0D\u540C\u7684\u5907\u4EFD",successSyncConfig:"\u6210\u529F\u4E0E\u4E91\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u8D25",updatedAt:"\u66F4\u65B0\u4E8E {date}",lastSyncedAt:"\u4E0A\u6B21\u68C0\u67E5\u4E8E {date}",downloadFail:"\u4E0B\u8F7D\u5931\u8D25",clickToDownload:"\u70B9\u51FB\u4E0B\u8F7D",aboutLabel:"\u5173\u4E8E - \u53CD\u9988","browser.openAboutPage":"\u5173\u4E8E/\u53CD\u9988",aboutLabelWithoutSponsor:"\u5173\u4E8E - \u53CD\u9988",aboutIntro:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F \u4F60\u53EF\u9009\u62E9\u5F00\u901A <6>Pro\u4F1A\u5458 \u6765\u4F7F\u7528\u5F00\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8BD1\u3002

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002
<7>Pro \u4F1A\u5458 \u53EF\u4EE5\u901A\u8FC7\u5FEB\u901F\u5BA2\u670D\u90AE\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u4EEC\u53D6\u5F97\u8054\u7CFB\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u4EEC\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u60A6\u5730\u83B7\u53D6\u4E92\u8054\u7F51\u4E0A\u5DE8\u5927\u7684\u5916\u8BED\u4FE1\u606F \u2764\uFE0F

\u4F60\u53EF\u4EE5\u5173\u6CE8\u6211\u4EEC\u7684<3>\u63A8\u7279\uFF0C<4>Telegram \u9891\u9053\uFF0C\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF0C\u5FAE\u4FE1\u4EA4\u6D41\u7FA4\uFF0C\u6216\u8005\u4E0B\u65B9\u7684<5>\u90AE\u4EF6\u8BA2\u9605\u8FFD\u8E2A\u66F4\u65B0\u3002",projectHomepage:"\u9879\u76EE\u4E3B\u9875",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u53C2\u4E0E\u529F\u80FD\u8BA8\u8BBA",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u4F17\u53F7",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u9891\u9053",joinTelegramChannel:"\u5173\u6CE8 Telegram \u9891\u9053\u83B7\u53D6\u6700\u65B0\u66F4\u65B0",feedbackAndJoin:"\u95EE\u9898\u53CD\u9988/\u52A0\u7FA4",autoSync:"\u81EA\u52A8\u5B9A\u65F6\u540C\u6B65",loadingThemeTitle:"Loading \u6837\u5F0F",loadingThemeDescription:"\u8BBE\u7F6E\u7B49\u5F85\u8BD1\u6587\u52A0\u8F7D\u65F6\u7684\u6837\u5F0F","loadingTheme.spinner":"\u8F6C\u5708\u52A8\u753B","loadingTheme.text":"\u9759\u6001\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u663E\u793A",developerDescription:"\u53EF\u4EE5\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u9AD8\u7EA7\u81EA\u5B9A\u4E49\u76F8\u5173\u7684\u6587\u6863","edit border color":"\u4FEE\u6539\u8FB9\u6846\u989C\u8272",successSyncButNoChange:"\u5F53\u524D\u914D\u7F6E\u4E0E\u4E91\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u5B9A\u4E49\u989C\u8272\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u8FB9\u6846\u989C\u8272","customThemeLabel.borderRadius":"\u8FB9\u6846\u5706\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u989C\u8272","customThemeLabel.backgroundColor":"\u80CC\u666F\u989C\u8272","customThemeLabel.zoom":"\u5B57\u4F53\u7F29\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u989C\u8272",resetToDefaultSettings:"\u6062\u590D\u4E3A\u9ED8\u8BA4\u8BBE\u7F6E",isTranslateTitle:"\u5F00\u542F\u7FFB\u8BD1\u7F51\u9875\u6807\u9898",enableSubtitle:"\u5F00\u542F\u5B57\u5E55\u7FFB\u8BD1",enableSubtitleDescription:"\u9488\u5BF9 youtube \u7B49\u7F51\u7AD9\u7684\u5B57\u5E55\u533A\u57DF\u5F00\u542F\u7FFB\u8BD1",isTranslateTitleDescription:"\u5F00\u542F\u540E\uFF0C\u7F51\u9875\u6807\u9898\u4F1A\u88AB\u7FFB\u8BD1",enableSearchEnhancement:"\u542F\u7528\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A",enableSearchEnhancementDescription:"\u5F00\u542F\u540E\uFF0C\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\u793E\u533A\uFF09\u53F3\u8FB9\u680F\u81EA\u52A8\u663E\u793A\u5BF9\u5E94\u82F1\u6587\u5173\u952E\u8BCD\u7684\u201C\u8C37\u6B4C\u65B0\u95FB\u201D\u641C\u7D22\u7ED3\u679C\u3002",verifyService:"\u70B9\u6B64\u6D4B\u8BD5\u670D\u52A1",verified:"\u9A8C\u8BC1\u6210\u529F","field.langs":"\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8BD1\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u949F\u6700\u5927\u8BF7\u6C42\u6570","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8BF7\u6C42\u6570","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6587\u672C\u957F\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u6BB5\u843D\u6570","field.apiUrl":"\u81EA\u5B9A\u4E49 API \u63A5\u53E3\u5730\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u5360\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u4E49\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C2\u8003\u6587\u6863","description.limitPerMinute":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u5206\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u7528\u6237\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u8350\uFF09, \u5C06\u4F1A\u5728\u5355\u72EC\u4F5C\u4E3A\u4E00\u6BB5\u53D1\u9001\u7ED9 OpenAI","description.maxTextLengthPerRequest":"\u6BCF\u6B21\u8BF7\u6C42\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u592A\u5927\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5C1D\u8BD5\u8C03\u6574\u8BE5\u9009\u9879\u6765\u4F18\u5316\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7EDF\u8EAB\u4EFD\u53D1\u9001\u7ED9 OpenAI \u7684\u5BF9\u8BDD\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u672C\u5185\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8BED\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6807\u8BED\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u5F00\u901A\u9886\u57DF\u5316\u7FFB\u8BD1\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u9886\u57DF\u89C1<1>\u8FD9\u91CC","field.scene":"\u573A\u666F","description.scene":"\u9ED8\u8BA4\u4E3A\uFF1Ageneral\u3002\u4EC5\u5728\u963F\u91CC\u4E91API\u63A7\u5236\u53F0\u5F00\u901A\u673A\u5668\u7FFB\u8BD1\u4E13\u4E1A\u7248\u7684\u60C5\u51B5\u4E0B\u53EF\u8BBE\u7F6E\uFF0C\u652F\u6301\u573A\u666F\u89C1<1>\u8FD9\u91CC","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u4E3A gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u53D1\u9001\u7ED9\u7FFB\u8BD1\u670D\u52A1\u7684\u6BB5\u843D\u6570\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6570\u91CF\u8FC7\u591A\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u63A5\u53E3\u7684\u54CD\u5E94\u53D8\u6162","description.apiUrl":"\u8BF7\u6DFB\u52A0\u5177\u4F53\u5E26\u6709\u8DEF\u5F84\u7684\u7F51\u5740",enabledExtension:"\u542F\u7528\u6269\u5C55",clickToDisableExtension:"\u70B9\u51FB\u7981\u7528\u6269\u5C55",clickToEnableExtension:"\u70B9\u51FB\u542F\u7528\u6269\u5C55",hasBeenDisabled:"\u5DF2\u7981\u7528","show password":"\u663E\u793A\u5BC6\u7801",customContent:"\u8F93\u5165\u81EA\u5B9A\u4E49\u6A21\u578B\u540D\u79F0",inputOptions:"\u8F93\u5165\u6846\u589E\u5F3A",mouseHoverOptions:"\u9F20\u6807\u60AC\u505C",modifyMouseHoverKey:"\u4FEE\u6539\u9F20\u6807\u60AC\u505C\u5FEB\u6377\u952E",enableInputTranslation:"\u662F\u5426\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4",inputTrailingTriggerKeyTimeoutDescription:"\u8BBE\u7F6E\u8F93\u5165\u7ED3\u675F\u8FDE\u51FB\u89E6\u53D1\u7684\u95F4\u9694\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u952E>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8BF4\u660E\uFF1A\u6211\u4EEC\u7279\u522B\u9488\u5BF9\u5728\u4E2D\u6587\u8F93\u5165\u6CD5\u4E0B\u90E8\u5206\u89E6\u53D1\u5B57\u7B26\u4F1A\u53D8\u6210\u4E2D\u6587\u6807\u70B9\u7B26\u53F7\u8FD9\u4EF6\u4E8B\u505A\u4E86\u4F18\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F93\u5165\u6CD5\u4E0B / \u4F1A\u53D8\u6210\u987F\u53F7 \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u652F\u6301\u6240\u6709\u89E6\u53D1\u7B26\u5BF9\u5E94\u7684\u4E2D\u6587\u7B26\u53F7\uFF0C\u4E5F\u5C31\u662F\u8BF4 // \u3001\u3001 \u90FD\u4F1A\u88AB\u8BC6\u522B\u4E3A\u89E6\u53D1\u5B57\u7B26\u3002

\u540C\u65F6\u6211\u4EEC\u4E5F\u652F\u6301\u8BED\u8A00\u4EE3\u7801\u7684\u4E2D\u6587\u522B\u540D\u4F5C\u4E3A\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u4F1A\u88AB\u7FFB\u8BD1\u4E3A\u65E5\u6587\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6240\u6709\u652F\u6301\u7684\u8BED\u8A00\u4EE3\u7801\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u8BBE\u7F6E",disableOnce:"\u672C\u6B21\u7981\u7528",disableGlobal:"\u6C38\u4E45\u7981\u7528",disableTint:"* \u4F60\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u542F\u7528\u3002",searchEnhancementNotes:"\u6211\u4EEC\u53D1\u73B0\uFF0C\u4E2D\u6587\u5173\u952E\u8BCD\u548C\u82F1\u6587\u5173\u952E\u8BCD\u7684\u65B0\u95FB\u7ED3\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u542F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u53CC\u8BED\u4FE1\u606F\u589E\u5F3A\u529F\u80FD\u540E\uFF0C\u6211\u4EEC\u4F1A\u5728\u652F\u6301\u7684\u7F51\u7AD9\uFF08\u8C37\u6B4C\u65B0\u95FB\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u5173\u952E\u8BCD\uFF09\uFF0C\u96EA\u7403\uFF0C\u4E1C\u65B9\u8D22\u5BCC\u7F51\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52A8\u7528\u82F1\u6587\u4E3A\u4F60\u641C\u7D22\u540C\u6837\u7684\u5173\u952E\u8BCD\u5E76\u5C55\u793A\u5728\u53F3\u4FA7\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8BE5\u529F\u80FD\u7684\u8BDD\uFF0C\u53EF\u4EE5\u9009\u62E9\u7981\u7528\u5B83\u3002",option:"\u8BBE\u7F6E",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u5173\u95ED\u7A97\u53E3",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",deepLProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",deepLProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",deeplProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",deepLCustomDescription:"\u9700\u8981\u56FD\u5916\u4FE1\u7528\u5361\uFF0C\u5728 <1>DeepL \u5B98\u65B9\u5F00\u901A\uFF0C\u70B9\u51FB\u67E5\u770B<2>\u6587\u6863",deepLCustomName:"\u81EA\u5B9A\u4E49 Auth Key",chooseProviderLabel:"\u9009\u62E9\u4E00\u4E2A\u670D\u52A1\u63D0\u4F9B\u5546",openaiProName:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1 Pro \u4F1A\u5458 (\u63A8\u8350)",openaiProDescription:"\u5F53\u524D\u5957\u9910\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528",openaiProDescriptionForNormal:"\u65E0\u9700\u4EFB\u4F55\u8BBE\u7F6E\uFF0C\u4F1A\u5458\u767B\u5F55\u540E\u5373\u53EF\u4F7F\u7528\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u4F1A\u5458",openaiCustomDescription:"\u53EF\u5728 OpenAI, Azure OpenAI, \u6216\u5176\u4ED6\u7B2C\u4E09\u65B9\u670D\u52A1\u83B7\u53D6\uFF0C<1>\u70B9\u6B64\u67E5\u770B\u6587\u6863",openaiCustomName:"\u81EA\u5B9A\u4E49 API Key",needLoginAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u81EA\u5B9A\u4E49)",goLoginOrAction:"(\u5F00\u901A\u4F1A\u5458\u6216\u53BB\u8BBE\u7F6E)",yearly:"\u8FDE\u7EED\u5305\u5E74",quarterly:"\u8FDE\u7EED\u5305\u5B63",monthly:"\u8FDE\u7EED\u5305\u6708",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u8FDE\u7EED\u5305\u65E5",year:"\u8FDE\u7EED\u5305\u5E74",quarter:"\u8FDE\u7EED\u5305\u5B63",month:"\u8FDE\u7EED\u5305\u6708",day:"\u8FDE\u7EED\u5305\u65E5",onetime_7day:"7 \u5929\u4F53\u9A8C\u5305",currentPlanDescriptionForFree:"\u5F53\u524D\u5957\u9910\uFF1A\u514D\u8D39",currentPlanDescriptionForContinuous:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u81EA\u52A8\u7EED\u8D39",currentPlanDescriptionForAutoRenewCaceling:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u7BA1\u7406\u7EED\u8D39\u65B9\u6848",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C\u5230\u671F\u540E\u5C06\u4E0D\u4F1A\u81EA\u52A8\u7EED\u671F\u3002
<1>\u70B9\u6B64\u542F\u7528\u8FDE\u7EED\u5305\u5E74",currentPlanDescriptionForOneTime:"\u5F53\u524D\u5957\u9910\uFF1A{plan}\uFF0C\u5C06\u4E8E {endAt} \u5230\u671F\uFF0C<1>\u70B9\u6B64\u5347\u7EA7\u4E3A\u5E74\u8D39\u6216<2>\u6708\u8D39\u4F1A\u5458",upgradePlan:"\u70B9\u6B64\u5347\u7EA7\u4E3A Pro \u4F1A\u5458",upgradeToPro:"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458","popup.openPro":"\u5347\u7EA7\u4E3A Pro \u4F1A\u5458\u540E\u53EF\u4EE5\u7545\u4EAB DeepL \u548C OpenAI \u7FFB\u8BD1\uFF0C\u70B9\u6B64\u5347\u7EA7","popup.openProForPro":"\u60A8\u662F Pro \u4F1A\u5458\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8BD1",currentAccount:"\u5F53\u524D\u8D26\u6237",enableAutoSyncUserSettings:"\u542F\u7528\u591A\u8BBE\u5907\u81EA\u52A8\u4E91\u540C\u6B65",modalEnableInputTranslationTitle:"\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8F93\u5165\u6846\u7FFB\u8BD1\u63D0\u793A",modalEnableInputTranslationDesc:"\u60A8\u521A\u521A\u901A\u8FC7\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u89E6\u53D1\u4E86\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u8F93\u5165\u6846\u7FFB\u8BD1\uFF0C\u8F93\u5165\u6846\u7684\u5185\u5BB9\u5C06\u88AB\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u7684\u76EE\u6807\u8BED\u8A00\u3002\u901A\u8FC7 Ctrl+Z \u53EF\u4EE5\u64A4\u9500\u7FFB\u8BD1\u3002

\u5982\u679C\u8FD9\u662F\u4E00\u4E2A\u5931\u8BEF\uFF0C\u4E0D\u7528\u62C5\u5FC3\uFF0C\u60A8\u53EF\u4EE5\u9009\u62E9\u672C\u6B21\u7981\u7528\uFF0C\u6216\u8005\u6C38\u4E45\u7981\u7528\u8F93\u5165\u6846\u7FFB\u8BD1\u3002",saveAndNotShowAgain:"\u4FDD\u5B58\u4E14\u4E0D\u518D\u63D0\u793A",disableInputTranslationTips:"* \u4F60\u4E5F\u53EF\u4EE5\u5728 {option} \u4E2D\u8BBE\u7F6E\u5176\u4ED6\u5FEB\u6377\u952E\u6765\u89E6\u53D1\uFF0C{learnMore}\u3002",learnMore:"\u70B9\u6B64\u4E86\u89E3\u66F4\u591A",continueEnalbeInputTranslation:"\u7EE7\u7EED\u542F\u7528\u8F93\u5165\u6846\u7FFB\u8BD1"};var Cg={nologin:"\u672A\u767B\u9304",login:"\u767B\u9304",manageAccount:"\u7BA1\u7406\u8CEC\u6236",logout:"\u9000\u51FA",curentPlan:"\u7576\u524D\u5957\u9910",endAt:"\u5230\u671F",endAuto:"\u81EA\u52D5\u7E8C\u671F",lineBreakMaxTextCount:"\u63DB\u884C\u5F8C\uFF0C\u6BCF\u53E5\u8A71\u5141\u8A31\u7684\u6700\u5927\u5B57\u5143\u6578\u91CF","translate-pdf":"\u9EDE\u9078\u7FFB\u8B6F PDF","noSupportTranslate-pdf":"\u8173\u672C\u4E0D\u652F\u63F4\uFF0C\u8ACB\u4F7F\u7528\u64F4\u5145\u5957\u4EF6","translate-firefox-local-pdf":"\u9EDE\u64CA\u53BB\u5C0E\u5165PDF",enableLineBreak:"\u958B\u555F\u9577\u6BB5\u843D\u81EA\u52D5\u63DB\u884C",sponsorLabel:"$1 \u8D77\u8D0A\u52A9\u958B\u767C\u8005 (\u6708\u4ED8\u6216\u50C5\u8D0A\u52A9\u4E00\u6B21\u5747\u53EF)",help:"\u8AAA\u660E",browserShortcutsNoteForFirefox:"Firefox \u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u9644\u52A0\u5143\u4EF6\u7BA1\u7406\u9801\u9762 \u300Cabout:addons\u300D\uFF0C\u7136\u5F8C\u9EDE\u9078\u300C\u8A2D\u5B9A\u5716\u793A\u300D\uFF0C\u518D\u9EDE\u9078\u300C\u7BA1\u7406\u64F4\u5145\u5957\u4EF6\u5FEB\u901F\u9375\u300D\u5373\u53EF\u8A2D\u5B9A",browserShortcutsNoteForChrome:"Chromium \u6838\u5FC3\u700F\u89BD\u5668\u8B8A\u66F4\u5FEB\u901F\u9375\u9700\u8981\u958B\u555F\u64F4\u5145\u529F\u80FD\u7BA1\u7406\u9801\u9762\uFF0C\u5728\u300C\u9375\u76E4\u5FEB\u901F\u9375\u300D\u9801\u9762(chrome://extensions/shortcuts)\u8A2D\u5B9A\uFF0C\u9EDE\u9078\u4E0B\u65B9\u6309\u9215\u524D\u5F80\u5FEB\u901F\u9375\u7BA1\u7406\u9801\u9762\u3002",browserShortcutsSucks:"\u81EA\u5B9A\u4E49\u5FEB\u901F\u9375\u683C\u5F0F\u70BA\uFF1A (\u6CA1\u6709\u505A\u81EA\u52A8\u8BC6\u522B\uFF0C\u8BF7\u76F4\u63A5\u8F93\u5165)\uFF1A",enableLineBreakDescription:"\u555F\u7528\u5F8C\uFF0C\u5C07\u6703\u5728\u9577\u6BB5\u843D\u4E2D\u6BCF\u53E5\u8A71\u7D50\u675F\u63D2\u5165\u63DB\u884C\u5B57\u5143\uFF0C\u4EE5\u4FBF\u65BC\u95B1\u8B80","browser.shortBrandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F","browser.brandName":"\u6C89\u6D78\u5F0F\u7FFB\u8B6F: \u96D9\u8A9E\u5C0D\u7167\u7DB2\u9801\u7FFB\u8B6F & PDF\u6587\u6A94\u7FFB\u8B6F","browser.brandDescription":"\u6C89\u6D78\u5F0F\u7DB2\u9801\u96D9\u8A9E\u7FFB\u8B6F\u64F4\u5C55\uFF0C\u540C\u6642\u652F\u6301 PDF \u7FFB\u8B6F\uFF0C\u96D9\u8A9E Epub \u96FB\u5B50\u66F8\u88FD\u4F5C\uFF0C\u652F\u6301 Deepl/Google/\u6709\u9053/\u9A30\u8A0A\u7FFB\u8B6F\u7B49\u591A\u500B\u7FFB\u8B6F\u670D\u52D9\uFF0C\u514D\u8CBB\u4F7F\u7528\u3002","browser.toggleTranslatePage":"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheWholePage":"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.toggleOnlyTransation":"\u7FFB\u8B6F\u4E26\u96B1\u85CF\u539F\u6587/\u986F\u793A\u539F\u6587","browser.toggleTranslateToThePageEndImmediately":"\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8/\u986F\u793A\u539F\u6587","browser.toggleTranslateTheMainPage":"\u7FFB\u8B6F\u9801\u9762\u4E3B\u8981\u5340\u57DF/\u986F\u793A\u539F\u6587","browser.openOptionsPage":"\u958B\u555F\u8A2D\u5B9A\u9801\u9762","browser.toggleTranslationMask":"\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C","browser.translateLocalPdfFile":"\u7FFB\u8B6F\u672C\u6A5F PDF \u6A94\u6848","browser.openEbookViewer":"\u95B1\u8B80\u672C\u6A5F\u96FB\u5B50\u66F8","browser.openEbookBuilder":"\u88FD\u4F5C\u96D9\u8A9E EPUB \u96FB\u5B50\u66F8","browser.translateLocalHtmlFile":"\u7FFB\u8B6F HTML/txt \u6A94\u6848","browser.donateContext":"\u4E86\u89E3\u8D0A\u52A9\u798F\u5229","browser.translateLocalSubtitleFile":"\u7FFB\u8B6F\u5B57\u5E55\u6A94\u6848",confirmResetConfig:"\u4F60\u78BA\u5B9A\u8981\u91CD\u8A2D\u8A2D\u5B9A\u55CE\uFF1F",translationLineBreakSettingTitle:"\u8B6F\u6587\u63DB\u884C\u8A2D\u5B9A",smartLineBreak:"\u667A\u6167\u63DB\u884C",alwaysLineBreak:"\u7E3D\u662F\u63DB\u884C",isShowContextMenu:"\u5C07\u7DB2\u9801\u7FFB\u8B6F\u529F\u80FD\u52A0\u5165\u53F3\u9375\u9078\u55AE",toggleBeta:"\u958B\u555F Beta \u6E2C\u8A66\u529F\u80FD",betaDescription:"\u555F\u7528\u4ECD\u5728\u5BE6\u9A57\u7684\u529F\u80FD\u4EE5\u53CA\u6E2C\u8A66\u4E2D\u7684\u7FFB\u8B6F\u670D\u52D9\u3002\u52A0\u5165 <1>Telegram \u7FA4\u7D44\u4E86\u89E3\u66F4\u591A\u3002",translationLineBreakSettingDescription:"\u7E3D\u662F\u63DB\u884C\u9069\u7528\u65BC\u8F03\u5C11\u5167\u5BB9\u7684\u7248\u9762\uFF0C\u66F4\u6574\u9F4A\u3002(\u5728\u5167\u5BB9\u8F03\u591A\u7684\u9577\u6BB5\u843D(\u8D85\u904E {count} \u500B\u5B57\u5143) \u4F7F\u7528\u667A\u6167\u63DB\u884C\u6703\u66F4\u7701\u7A7A\u9593)",tempTranslateDomainTitle:"\u81E8\u6642\u958B\u555F\u7DB2\u7AD9\u7FFB\u8B6F\u7684\u6642\u9577",tempTranslateDomainDescription:"\u7576\u624B\u52D5\u7FFB\u8B6F\u67D0\u500B\u7DB2\u9801\u7684\u6642\u5019\uFF0C\u81E8\u6642\u958B\u555F\u8A72\u7DB2\u7AD9\u70BA\u81EA\u52D5\u7FFB\u8B6F",xMinutes:"{count} \u5206\u9418",disabled:"\u505C\u7528",changelog:"\u66F4\u65B0\u8A18\u9304",toggleTranslatePageWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",toggleTranslationMaskWhenThreeFingersOnTheScreen:"\u591A\u6307\u540C\u6642\u89F8\u6478\u5247\u986F\u793A/\u96B1\u85CF\u8B6F\u6587\u6A21\u7CCA\u6548\u679C",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"\u591A\u6307\u540C\u6642\u89F8\u78B0\u87A2\u5E55\u5247\u7FFB\u8B6F\u7DB2\u9801(\u50C5\u8B6F\u6587)/\u986F\u793A\u539F\u6587",addUrlDescription:"\u53EF\u4EE5\u70BA\u7DB2\u57DF\u540D\u7A31\uFF0C\u540C\u6642\u652F\u63F4\u842C\u7528\u5B57\u5143\uFF0C\u5982\uFF1A*.google.com, google.com/mail/*, https://www.google.com/*",general:"\u57FA\u672C\u8A2D\u5B9A",clickToExpandConfig:"\u5C55\u958B\u76EE\u524D\u8A2D\u5B9A",import:"\u5F9E\u6A94\u6848\u532F\u5165",export:"\u532F\u51FA\u70BA\u6A94\u6848",toggleDebug:"\u5728\u4E3B\u63A7\u53F0\u986F\u793A\u5075\u932F\u8A18\u9304","fingers.0":"\u95DC\u9589","fingers.2":"\u96D9\u6307\u89F8\u6478","fingers.3":"\u4E09\u6307\u89F8\u6478","fingers.4":"\u56DB\u6307\u89F8\u6478","fingers.5":"\u4E94\u6307\u89F8\u6478",mouseHoldKey:"+ {key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyAuto:"\u76F4\u63A5\u7FFB\u8B6F\u8A72\u6BB5",mouseHoldKeyOff:"\u4E0D\u505A\u4EFB\u4F55\u4E8B\u60C5",mouseHoldKeyOther:"\u81EA\u5B9A\u7FA9\u5FEB\u6377\u9375(\u6253\u958B\u8A2D\u7F6E)",mouseHoldKeyCustomKey:"{key} \u7FFB\u8B6F\u8A72\u6BB5",mouseHoverHoldKey:"\u9F20\u6A19\u6ED1\u904E\u540C\u6642\u6309\u4E0B X \u9375\u7FFB\u8B6F\u6BB5\u843D","mouse-translate":"\u9F20\u6A19\u6ED1\u904E",document:"\u8AAA\u660E\u6587\u4EF6",resetSuccess:"\u91CD\u8A2D\u6240\u6709\u8A2D\u5B9A\u6210\u529F",resetThisSuccess:"\u91CD\u8A2D\u6210\u529F",saved:"\u5132\u5B58\u6210\u529F",successImportConfig:"\u6210\u529F\u532F\u5165\u8A2D\u5B9A",goAdvancedSettings:"\u524D\u5F80\u9032\u968E\u8A2D\u5B9A\u9801\u9762",goAdvancedInterfaceSettings:"\u524D\u5F80\u81EA\u8A02\u8A2D\u5B9A\u9801\u9762",advanced:"\u9032\u968E\u8A2D\u5B9A",advancedDescription:"\u6B63\u5E38\u60C5\u6CC1\u7121\u9700\u8A2D\u5B9A\uFF0C\u4FDD\u6301\u9810\u8A2D\u5373\u53EF\u3002\u50C5\u91DD\u5C0D\u66F4\u5C08\u696D\u7684\u4F7F\u7528\u8005\uFF0C\u63D0\u4F9B\u66F4\u500B\u4EBA\u5316\u7684\u8A2D\u5B9A\u9805\u76EE\u3002",developer:"\u958B\u767C\u8005\u8A2D\u5B9A",donateCafe:"\u50F9\u683C","translate to the bottom of the page":"\u9032\u5165\u7DB2\u9801\u5F8C\uFF0C\u662F\u5426\u7ACB\u5373\u7FFB\u8B6F\u5230\u9801\u9762\u5E95\u90E8\uFF1F",feedback:"\u554F\u984C\u56DE\u5831",toggleTranslatePage:"\u7FFB\u8B6F\u7DB2\u9801/\u986F\u793A\u539F\u6587",translateToThePageEndImmediatelyDescription:"\u555F\u7528\u5F8C\uFF0C\u9032\u5165\u7DB2\u9801\u5C07\u7ACB\u5373\u7FFB\u8B6F\u5F9E\u9802\u90E8\u5230\u5E95\u90E8\u7684\u5167\u5BB9\u3002\u95DC\u9589\u5247\u908A\u770B\u908A\u8B6F\u3002\uFF08\u4E0D\u63A8\u85A6\u958B\u555F\uFF09","translate all areas of the page":"\u662F\u5426\u7FFB\u8B6F\u7DB2\u9801\u6240\u6709\u5340\u57DF",translationAreaDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6240\u6709\u5340\u57DF\u90FD\u6703\u88AB\u7FFB\u8B6F\u3002\u95DC\u9589\u5247\u4F7F\u7528\u9810\u8A2D\u7684\u667A\u6167\u8FA8\u8B58\uFF0C\u50C5\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\u3002(\u4E0D\u63A8\u85A6\u958B\u555F)","the number of characters to be translated first":"\u76F4\u63A5\u7FFB\u8B6F\u9801\u9762\u524D\u591A\u5C11\u500B\u5B57\u5143\uFF0C\u800C\u7121\u9700\u7B49\u5F85\u6372\u52D5\u81F3\u53EF\u898B\u5340\u57DF","interface language":"\u4ECB\u9762\u8A9E\u8A00","display both the original text and the translation":"\u540C\u6642\u986F\u793A\u539F\u6587\u548C\u8B6F\u6587","keyboard shortcuts":"\u9375\u76E4\u5FEB\u901F\u9375",modify:"\u8B8A\u66F4\u5FEB\u901F\u9375",reset:"\u91CD\u8A2D",close:"\u95DC\u9589",homepage:"\u9996\u9801",more:"\u66F4\u591A",moreOptions:"\u5C55\u958B\u66F4\u591A\u81EA\u8A02\u9078\u9805",translateTheWholePage:"\u7FFB\u8B6F\u9801\u9762\u5168\u90E8\u5340\u57DF\uFF08\u5340\u5206\u65BC\u53EA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF\uFF09",changeToTranslateTheWholePage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u6240\u6709\u5340\u57DF",changeToTranslateTheMainPage:"\u5207\u63DB\u70BA\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF",changeToOnlyTranslationMode:"\u5207\u63DB\u70BA\u50C5\u986F\u793A\u8B6F\u6587",changeToDualTranslationMode:"\u5207\u63DB\u70BA\u96D9\u8A9E\u7FFB\u8B6F",translateToThePageEndImmediately:"\u7ACB\u5373\u7FFB\u8B6F\u5230\u5E95\u90E8\uFF08\u5340\u5206\u65BC\u770B\u54EA\u8B6F\u54EA\uFF09",translateTheMainPage:"\u667A\u6167\u7FFB\u8B6F\u4E3B\u8981\u5340\u57DF","The local rules are up to date":"\u672C\u6A5F\u898F\u5247\u5DF2\u70BA\u6700\u65B0\uFF1A","Successfully synchronized with the latest official rules:":"\u6210\u529F\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\uFF1A","Checking for updates":"\u6B63\u5728\u6AA2\u67E5\u66F4\u65B0","Rules are being synchronized":"\u6B63\u5728\u540C\u6B65\u5B98\u65B9\u898F\u5247",localVersionIsTooOld:"\u672C\u6A5F\u5957\u4EF6\u7248\u672C\u904E\u820A\uFF0C\u8ACB\u5347\u7D1A\u5957\u4EF6\u81F3 {minVersion} \u6216\u66F4\u65B0\u7684\u7248\u672C\u518D\u5617\u8A66\u540C\u6B65",badUserscriptBrowser:"\u76EE\u524D\u700F\u89BD\u5668\u7121\u6CD5\u6B63\u78BA\u5BE6\u73FE\u6CB9\u7334\u5957\u4EF6\u7684\u4ECB\u9762\uFF0C\u8ACB\u4F7F\u7528\u5176\u4ED6<1>\u652F\u63F4\u6CB9\u7334\u5957\u4EF6\u7684\u700F\u89BD\u5668\u5982(Firefox Nightly \u7248\u672C)",foundNewVersion:"\u6709\u65B0\u7248\u672C\u53EF\u7528",theLocalExtensionIsUpToUpdate:"\u76EE\u524D\u5957\u4EF6\u5DF2\u662F\u6700\u65B0\u7248\u672C",failToSyncRules:"\u540C\u6B65\u6700\u65B0\u5B98\u65B9\u898F\u5247\u5931\u6557",retry:"\u9EDE\u6B64\u91CD\u8A66",failedReason:"\u5931\u6557\u539F\u56E0",currentRuleVersion:"\u76EE\u524D\u898F\u5247\u7248\u672C",calculating:"\u6B63\u5728\u8A08\u7B97",unknownError:"\u672A\u77E5\u7684\u932F\u8AA4",canNotFetchRemoteRule:"\u7121\u6CD5\u53D6\u5F97\u9060\u7AEF\u898F\u5247",enableAlphaSuccess:"\u5DF2\u555F\u7528 Alpha \u529F\u80FD",disableAlphaSuccess:"\u5DF2\u505C\u7528 Alpha \u529F\u80FD",cacheSize:"\u5FEB\u53D6\u5927\u5C0F\uFF1A",cleaning:"\u6B63\u5728\u6E05\u7406",cleanCache:"\u6E05\u9664\u5FEB\u53D6",options:"\u9078\u9805",about:"\u95DC\u65BC",service:"\u7FFB\u8B6F\u670D\u52D9",needAction:"(\u524D\u5F80\u8A2D\u5B9A)",goSettings:"\u524D\u5F80\u8A2D\u5B9A",needActionForOptions:"(\u9700\u8A2D\u5B9A)",translationEngine:"\u5F15\u64CE\u9078\u9805",sourceLanguage:"\u539F\u6587\u8A9E\u8A00",target:"\u76EE\u6A19\u8A9E\u8A00",popupSourceLanguage:"\u539F\u6587\u8A9E\u8A00",popupTarget:"\u76EE\u6A19\u8A9E\u8A00",popupService:"\u7FFB\u8B6F\u670D\u52D9",forThisSite:"\u7576\u524D\u7DB2\u7AD9\uFF1A",alwaysTranslateSomeLanguage:"\u7E3D\u662F\u7FFB\u8B6F {language}",neverTranslateSomeLanguage:"\u6C38\u4E0D\u7FFB\u8B6F {language}",alwaysTranslateSomeSite:"\u7E3D\u662F\u7FFB\u8B6F {hostname}",neverTranslateSomeSite:"\u6C38\u4E0D\u7FFB\u8B6F {hostname}",alwaysTranslateSomeSiteOrWildSite:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u7AD9",alwaysTranslateSomePage:"\u603B\u662F\u7FFB\u8BD1\u8BE5\u7F51\u9875",add:"\u65B0\u589E",default:"\u9810\u8A2D",forThisLanguage:"\u91DD\u5C0D\u8A72\u8A9E\u8A00\uFF1A","add url":"\u8F38\u5165 URL",edit:"\u7DE8\u8F2F","translate other languages into specific language":"\u5C07\u5176\u5B83\u8A9E\u8A00\u7FFB\u8B6F\u70BA\u4F60\u8A2D\u5B9A\u7684\u8A9E\u8A00","select translation service":"\u9078\u64C7\u4F60\u60F3\u7528\u7684\u7FFB\u8B6F\u670D\u52D9",language:"\u8A9E\u8A00","show-original":"\u986F\u793A\u539F\u6587",translate:"\u7FFB\u8B6F",Translated:"\u5DF2\u7FFB\u8B6F",Translating:"\u6B63\u5728\u7FFB\u8B6F",Error:"\u932F\u8AA4",allowCacheTranslations:"\u555F\u7528\u672C\u6A5F\u7FFB\u8B6F\u5FEB\u53D6\uFF08\u6E1B\u5C11\u91CD\u8907\u6BB5\u843D\u7684\u7FFB\u8B6F\u8981\u6C42\uFF09","translation display":"\u8B6F\u6587\u986F\u793A\u6A23\u5F0F","select diplay style":"\u5340\u5206\u8B6F\u6587\u7684\u6A23\u5F0F\uFF0C\u5177\u9AD4\u53EF\u53C3\u8003\u4E0B\u5217\u7BC4\u4F8B",interface:"\u4ECB\u9762\u8A2D\u5B9A",import_export:"\u532F\u5165/\u532F\u51FA",import_export_title:"\u532F\u5165/\u532F\u51FA\u8A2D\u5B9A",syncToGoogleDrive:"\u7ACB\u5373\u8207 Google Drive \u540C\u6B65",syncToAccount:"\u540C\u6B65\u5230\u8CEC\u6236",syncToAccountButton:"\u7ACB\u5373\u4E0E\u4E91\u7AEF\u540C\u6B65",syncToAccountDescription:"\u4E0A\u50B3\u5230\u5DF2\u767B\u9304\u8CEC\u6236\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u8A2D\u5099\u4E4B\u9593\u540C\u6B65\u914D\u7F6E\uFF0C\u4EE5\u6700\u5F8C\u4FEE\u6539\u6642\u9593\u70BA\u6E96\u3002",successSyncConfigInAccount:"\u6210\u529F\u8207\u8CEC\u6236\u4FDD\u6301\u540C\u6B65",successSyncConfigToAccount:"\u6210\u529F\u540C\u6B65\u5230\u8CEC\u6236",syncConfigNoUpdate:"\u5DF2\u7D93\u662F\u6700\u65B0\u7684\u4E86",previewAllThemes:"\u9810\u89BD\u5168\u90E8\u6A23\u5F0F","translationTheme.none":"\u7121","translationTheme.grey":"\u9ED1\u7070\u8272","translationTheme.dashed":"\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.dotted":"\u9EDE\u72C0\u5E95\u7DDA","translationTheme.dashedBorder":"\u865B\u7DDA\u6846\u7DDA","translationTheme.solidBorder":"\u5BE6\u7DDA\u6846\u7DDA","translationTheme.underline":"\u76F4\u7DDA\u5E95\u7DDA","translationTheme.mask":"\u6A21\u7CCA\u6548\u679C\uFF08\u5B78\u7FD2\u6A21\u5F0F\uFF09","translationTheme.opacity":"\u900F\u660E\u6548\u679C","translationTheme.paper":"\u767D\u7D19\u9670\u5F71\u6548\u679C","translationTheme.dividingLine":"\u5206\u9694\u7DDA","translationTheme.highlight":"\u9192\u76EE\u63D0\u793A","translationTheme.marker":"\u99AC\u514B\u7B46","translationTheme.marker2":"\u99AC\u514B\u7B462","translationTheme.blockquote":"\u5F15\u7528\u6A23\u5F0F","translationTheme.weakening":"\u5F31\u5316","translationTheme.italic":"\u659C\u9AD4","translationTheme.bold":"\u7C97\u9AD4","translationTheme.thinDashed":"\u7D30\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDashed":"\u7CFB\u7D71\u5167\u5EFA\u7834\u6298\u865F\u5E95\u7DDA","translationTheme.nativeDotted":"\u7CFB\u7D71\u5167\u5EFA\u9EDE\u72C0\u5E95\u7DDA","translationTheme.nativeUnderline":"\u7CFB\u7D71\u5167\u5EFA\u76F4\u7DDA\u5E95\u7DDA","translationTheme.wavy":"\u6CE2\u5F62\u66F2\u7DDA","translationServices.custom":"\u81EA\u5B9A\u7FA9API","translationServices.tencent":"\u9A30\u8A0A\u7FFB\u8B6F\u541B","translationServices.tenAlpha":"\u9A30\u8A0A\u7FFB\u8B6F\u541B(Alpha)","translationServices.google":"Google \u7FFB\u8B6F","translationServices.bai":"\u767E\u5EA6(Alpha)","translationServices.baidu":"\u767E\u5EA6\u7FFB\u8B6F","translationServices.aliyun":"\u963F\u91CC\u96F2\u7FFB\u8B6F","translationServices.volc":"\u706B\u5C71\u7FFB\u8B6F","translationServices.deeplx":"DeeplX(Beta)","translationServices.bing":"\u5FAE\u8F6F\u7FFB\u8B6F","translationServices.deepl":"Deepl","translationServices.wechat":"\u5FAE\u4FE1\u7FFB\u8B6F","translationServices.azure":"Azure \u7FFB\u8B6F","translationServices.ibm":"IBM Watson","translationServices.aws":"\u4E9E\u99AC\u905C\u7FFB\u8B6F","translationServices.mock":"\u6A21\u64EC\u7FFB\u8B6F","translationServices.mock2":"\u6A21\u64EC\u7FFB\u8B6F2","translationServices.caiyun":"\u5F69\u96F2\u5C0F\u8B6F","translationServices.cai":"\u5F69\u96F2\u5C0F\u8B6F (Alpha)","translationServices.volcAlpha":"\u706B\u5C71\u7FFB\u8B6F(Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"\u6709\u9053\u7FFB\u8B6F","translationServices.you":"\u6709\u9053\u7FFB\u8B6F (Alpha)","translationServices.transmart":"\u9A30\u8A0A\u4EA4\u4E92\u7FFB\u8B6F","translationServices.niu":"\u5C0F\u725B\u7FFB\u8B6F","translationServices.papago":"Papago \u7FFB\u8B6F","translationServices.d":"Deepl(Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"\u7FFB\u8B6F\u9801\u9762\u6A19\u984C","always languages":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateLanguagesLabel:"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u8A9E\u8A00",neverTranslateTheFollowingLanguagesDescription:"\u7576\u9801\u9762\u4E2D\u67D0\u4E00\u6BB5\u843D\u7684\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u5C07\u8DF3\u904E\u7FFB\u8B6F",enableUserscriptPagePopup:"\u5728\u9801\u9762\u4E0A\u986F\u793A\u61F8\u6D6E\u7403",enableUserscriptPagePopupDescription:"\u95DC\u9589\u61F8\u6D6E\u7403\u5F8C\uFF0C\u53EF\u4EE5\u7528\u5FEB\u901F\u9375/{touch}\u518D\u6B21\u986F\u793A\u3002\u70BA\u9632\u6B62\u4E0D\u614E\u95DC\u9589\u8A72\u9078\u9805\u5F8C\u627E\u4E0D\u5230\u61F8\u6D6E\u7403\uFF0C\u5EFA\u8B70\u5C07\u672C\u8A2D\u5B9A\u9801\u9762\u52A0\u5165\u81F3\u6211\u7684\u6700\u611B","always translate the following languages":"\u7576\u9801\u9762\u8A9E\u8A00\u70BA\u4E0B\u5217\u8A9E\u8A00\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","always sites":"\u7E3D\u662F\u7FFB\u8B6F\u7684\u7DB2\u5740","always translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u6703\u81EA\u52D5\u7FFB\u8B6F\u70BA\u76EE\u6A19\u8A9E\u8A00","never sites":"\u6C38\u4E0D\u7FFB\u8B6F\u7684\u7DB2\u5740","never translate the following sites":"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u5C07\u4E0D\u6703\u9032\u884C\u7FFB\u8B6F","please refer to":"\u9700\u8981\u586B\u5BEB\u91D1\u9470\u5F8C\u624D\u53EF\u4F7F\u7528\uFF0C\u8A73\u7D30\u8CC7\u8A0A\u8ACB\u53C3\u8003",KeyAndConfigurationTutorial:"\u300A\u91D1\u9470\u7533\u8ACB\u548C\u8A2D\u5B9A\u6559\u5B78\u300B",useAboveStyleForTheseSites:"\u7576\u7DB2\u7AD9\u70BA\u4E0B\u5217\u7DB2\u57DF\u540D\u7A31\u6642\uFF0C\u7E3D\u662F\u4F7F\u7528 \u2308{theme}\u230B \u8B6F\u6587\u6A23\u5F0F",currentUrl:"\u76EE\u524D\u7DB2\u5740",confirm:"\u5132\u5B58",cancel:"\u53D6\u6D88",delete:"\u522A\u9664","languages.auto":"\u81EA\u52D5\u5075\u6E2C",syncToCloud:"\u540C\u6B65\u81F3\u96F2\u7AEF",syncToCloudDescription:"\u4E0A\u50B3\u81F3\u96F2\u7AEF\u5F8C\uFF0C\u53EF\u4EE5\u5728\u4E0D\u540C\u7684\u700F\u89BD\u5668/\u6CB9\u7334\u8173\u672C\u4E4B\u9593\u540C\u6B65\u8A2D\u5B9A\uFF0C\u4EE5\u6700\u5F8C\u8B8A\u66F4\u6642\u9593\u70BA\u6E96\u3002",authFail:"\u6388\u6B0A\u5931\u6557",syncTitle:"\u624B\u52D5\u5099\u4EFD\u7BA1\u7406",import_hint:"\u532F\u5165",upload:"\u4E0A\u50B3",revokeAuth:"\u64A4\u92B7\u6388\u6B0A",uploadFail:"\u4E0A\u50B3\u5931\u6557",download:"\u4E0B\u8F09",importSuccess:"\u532F\u5165\u6210\u529F",importFail:"\u532F\u5165\u5931\u6557",deleteFail:"\u522A\u9664\u5931\u6557",backupToCloud:"\u624B\u52D5\u7BA1\u7406\u5099\u4EFD\u6A94\u6848",create_new_backup:"\u65B0\u589E\u5099\u4EFD\u7BC0\u9EDE",maxBackupFiles:"\u6700\u591A\u53EF\u4EE5\u5099\u4EFD{count}\u500B\u4E0D\u540C\u7684\u7BC0\u9EDE\uFF0C\u8ACB\u522A\u9664\u4E0D\u9700\u8981\u7684\u7BC0\u9EDE",backupToCloudDescription:"\u624B\u52D5\u4E0A\u50B3\u6216\u9084\u539F\u5099\u4EFD\u6A94\u6848\uFF0C\u6700\u591A\u5141\u8A31 3 \u500B\u4E0D\u540C\u7684\u5099\u4EFD",successSyncConfig:"\u6210\u529F\u8207\u96F2\u7AEF\u4FDD\u6301\u540C\u6B65",syncFail:"\u540C\u6B65\u5931\u6557",updatedAt:"\u66F4\u65B0\u65BC {date}",lastSyncedAt:"\u4E0A\u6B21\u6AA2\u67E5\u65BC {date}",downloadFail:"\u4E0B\u8F09\u5931\u6557",clickToDownload:"\u9EDE\u9078\u4E0B\u8F09",aboutLabel:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831","browser.openAboutPage":"\u95DC\u65BC/\u554F\u984C\u56DE\u5831",aboutLabelWithoutSponsor:"\u95DC\u65BC - \u554F\u984C\u56DE\u5831",aboutIntro:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F \u4F60\u53EF\u4EE5\u9078\u64C7\u958B\u901A <6>Pro\u6703\u54E1 \u4F86\u4F7F\u7528\u958B\u7BB1\u5373\u7528\u7684 DeepL \u548C OpenAI \u7FFB\u8B6F\u3002

\u4F60\u53EF\u4EE5\u95DC\u6CE8\u6211\u4EEC\u7684<3>Twitter\uFF0C<4>Telegram \u983B\u9053\u4EE5\u53CA\u4E0B\u65B9\u7684<5>\u90F5\u4EF6\u8A02\u95B1\u8FFD\u8E64\u66F4\u65B0\u3002
<7>Pro \u6703\u54E1 \u53EF\u4EE5\u901A\u904E\u5FEB\u901F\u5BA2\u670D\u90F5\u7BB1 <8>support@immersivetranslate.com \u548C\u6211\u5011\u53D6\u5F97\u806F\u7E6B\u3002",aboutIntroWithoutSponsor:"\u5E0C\u671B\u6211\u5011\u90FD\u80FD\u66F4\u52A0\u5BB9\u6613\u4E14\u6109\u6085\u5730\u7372\u53D6\u7DB2\u969B\u7DB2\u8DEF\u4E0A\u66F4\u591A\u7684\u5916\u8A9E\u8CC7\u8A0A \u2764\uFE0F ",projectHomepage:"\u5C08\u6848\u9996\u9801",joinTelegramGroup:"\u52A0\u5165\u7528\u6237\u4EA4\u6D41\u7FA4\u7D44\u53C3\u8207\u529F\u80FD\u8A0E\u8AD6",wechatPublicAccount:"\u5FAE\u4FE1\u516C\u773E\u865F",wechatCommunities:"\u5FAE\u4FE1\u4EA4\u6D41\u7FA4",qqCommunities:"QQ \u4EA4\u6D41\u983B\u9053",joinTelegramChannel:"\u95DC\u6CE8 Telegram \u983B\u9053\u77AD\u89E3\u66F4\u65B0\u8CC7\u8A0A",feedbackAndJoin:"\u554F\u984C\u56DE\u5831/\u52A0\u5165\u7FA4\u7D44",autoSync:"\u81EA\u52D5\u5B9A\u6642\u540C\u6B65",loadingThemeTitle:"Loading \u6A23\u5F0F",loadingThemeDescription:"\u8A2D\u5B9A\u7B49\u5F85\u8B6F\u6587\u8F09\u5165\u6642\u7684\u6A23\u5F0F","loadingTheme.spinner":"\u8F49\u5708\u52D5\u756B","loadingTheme.text":"\u975C\u614B\u6587\u5B57 ... ","loadingTheme.none":"\u4E0D\u986F\u793A",developerDescription:"\u53EF\u4EE5\u9EDE\u9078<1>\u6B64\u8655\u6AA2\u8996\u9032\u968E\u81EA\u8A02\u529F\u80FD\u76F8\u95DC\u7684\u8AAA\u660E\u6587\u4EF6","edit border color":"\u8B8A\u66F4\u908A\u6846\u8272\u5F69",successSyncButNoChange:"\u76EE\u524D\u8A2D\u5B9A\u8207\u96F2\u7AEF\u4E00\u81F4",customTheme:"\u81EA\u8A02\u8272\u5F69\u548C\u5927\u5C0F","customThemeLabel.borderColor":"\u908A\u6846\u8272\u5F69","customThemeLabel.borderRadius":"\u908A\u6846\u5713\u89D2","customThemeLabel.textColor":"\u6587\u5B57\u8272\u5F69","customThemeLabel.backgroundColor":"\u80CC\u666F\u8272\u5F69","customThemeLabel.zoom":"\u5B57\u578B\u7E2E\u653E\u6BD4\u4F8B (%)","customThemeLabel.opacity":"\u6587\u5B57\u4E0D\u900F\u660E\u5EA6 (%)",resetToDefaultColor:"\u9084\u539F\u70BA\u9810\u8A2D\u8272\u5F69",resetToDefaultSettings:"\u9084\u539F\u70BA\u9810\u8A2D\u8A2D\u5B9A",isTranslateTitle:"\u555F\u7528\u7DB2\u9801\u6A19\u984C\u7FFB\u8B6F",enableSubtitle:"\u958B\u555F\u5B57\u5E55\u7FFB\u8B6F",enableSubtitleDescription:"\u91DD\u5C0D youtube \u7B49\u7DB2\u7AD9\u7684\u5B57\u5E55\u5340\u57DF\u958B\u555F\u7FFB\u8B6F",isTranslateTitleDescription:"\u555F\u7528\u5F8C\uFF0C\u7DB2\u9801\u7684\u6A19\u984C\u6703\u88AB\u7FFB\u8B6F",enableSearchEnhancement:"\u958B\u555F\u641C\u7D22\u589E\u5F37",enableSearchEnhancementDescription:"\u4E2D\u6587\u641C\u7D22\u8C37\u6B4C\u6703\u5728\u53F3\u908A\u51FA\u73FE\u82F1\u6587\u7248\u8C37\u6B4C\u65B0\u805E",verifyService:"\u9EDE\u6B64\u6E2C\u8A66\u670D\u52D9",verified:"\u9A57\u8B49\u6210\u529F","field.model":"\u6A21\u578B","field.translationEngine":"\u7FFB\u8B6F\u5F15\u64CE","field.limitPerMinute":"\u6BCF\u5206\u9418\u6700\u5927\u8981\u6C42\u6578","field.limitPerSecond":"\u6BCF\u79D2\u6700\u5927\u8981\u6C42\u6578","field.maxTextLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u7684\u6700\u5927\u6587\u5B57\u9577\u5EA6","field.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u8981\u6C42\u6700\u5927\u6BB5\u843D\u6578","field.apiUrl":"\u81EA\u8A02 API \u4F4D\u5740","field.placeholderDelimiters":"\u4FDD\u7559\u7684\u4F54\u4F4D\u7B26","description.custom":"\u81EA\u5B9A\u7FA9\u63A5\u53E3\u63A5\u5165 \u9700\u8981\u53C3\u8003\u6587\u6A94","description.limitPerMinute":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u5206\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.limitPerSecond":"\u8981\u6C42\u6578\u8D85\u904E\u8A72\u9650\u5236\u6642\u6703\u88AB\u66AB\u6642\u505C\u7528\uFF0C\u76F4\u81F3\u4E0B\u4E00\u79D2\u9418\u958B\u59CB\u3002\u7531\u4E8EOpenAI\u76EE\u524D\u670D\u52A1\u7684\u5404\u79CD\u9650\u5236\uFF0C\u8BF7\u70B9\u51FB<1>\u8FD9\u91CC\u67E5\u770B\u6700\u65B0\u5EFA\u8BAE\u7684\u6570\u503C","description.generalLimitPerSecond":"\u8BF7\u6C42\u6570\u8D85\u8FC7\u8BE5\u9650\u5236\u65F6\u4F1A\u8FDB\u5165\u6392\u961F\u72B6\u6001\uFF0C\u76F4\u5230\u4E0B\u4E00\u79D2\u949F\u5F00\u59CB\u3002","description.prompt":"\u4EE5\u4F7F\u7528\u8005\u8EAB\u4EFD\u50B3\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00,\u53EF\u4EE5\u7701\u7565 {{text}} \uFF08\u63A8\u85A6\uFF09, \u5C07\u6703\u5728\u55AE\u7368\u4F5C\u70BA\u4E00\u6BB5\u767C\u9001\u7D66 OpenAI","description.maxTextLengthPerRequest":"\u9810\u8A2D\u6703\u5408\u4F75\u591A\u500B\u6BB5\u843D\uFF0C\u4EE5\u6E1B\u5C11\u8ACB\u8981\u6C42\u6578\uFF0C\u4F46\u662F\u5982\u679C\u6BB5\u843D\u7E3D\u9577\u5EA6\u904E\u9577\uFF0C\u4E5F\u53EF\u80FD\u6703\u5C0E\u81F4 API \u7684\u56DE\u61C9\u6642\u9593\u589E\u52A0\uFF0C\u56E0\u6B64\u53EF\u4EE5\u5617\u8A66\u8ABF\u6574\u8A72\u9078\u9805\u4F86\u63D0\u5347\u901F\u5EA6","description.systemPrompt":"\u4EE5\u7CFB\u7D71\u50B3\u9001\u767C\u9001\u7D66 OpenAI \u7684\u5C0D\u8A71\uFF0C\u5176\u4E2D {{text}} \u8868\u793A\u6BB5\u843D\u7684\u6587\u5B57\u5167\u5BB9\uFF0C{{from}} \u8868\u793A\u6BB5\u843D\u7684\u8A9E\u8A00\uFF0C{{to}} \u8868\u793A\u76EE\u6A19\u8A9E\u8A00","field.domain":"\u9886\u57DF","description.domain":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u6709\u9053API\u63A7\u5236\u53F0\u958B\u901A\u9818\u57DF\u5316\u7FFB\u8B6F\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u9818\u57DF\u898B<1>\u9019\u88E1","field.scene":"\u5834\u666F","description.scene":"\u9ED8\u8A8D\u70BA\uFF1Ageneral\u3002\u50C5\u5728\u963F\u91CC\u96F2API\u63A7\u5236\u53F0\u958B\u901A\u6A5F\u5668\u7FFB\u8B6F\u5C08\u696D\u7248\u7684\u60C5\u6CC1\u4E0B\u53EF\u8A2D\u7F6E\uFF0C\u652F\u6301\u5834\u666F\u898B<1>\u9019\u88E1","field.vocabId":"\u7528\u6237\u8BCD\u5178 ID","description.vocabId":"\u6307\u5B9A\u7684\u8BCD\u5178 out_id\uFF0C\u76EE\u524D\u652F\u6301\u82F1\u8BD1\u4E2D","description.model":"OpenAI \u7684\u6A21\u578B\uFF0C\u53EF\u4EE5\u70BA gpt-3.5-turbo, gpt-4 \u7B49","description.maxTextGroupLengthPerRequest":"\u6BCF\u6B21\u50B3\u9001\u7D66\u7FFB\u8B6F\u670D\u52D9\u7684\u6BB5\u843D\u6578\u91CF\uFF0C\u5982\u679C\u6BB5\u843D\u6578\u91CF\u904E\u591A\uFF0C\u53EF\u80FD\u6703\u5C0E\u81F4\u56DE\u61C9\u901F\u5EA6\u8B8A\u6162","description.apiUrl":"\u8ACB\u52A0\u5165\u5177\u9AD4\u5305\u542B\u8DEF\u5F91\u7684\u7DB2\u5740",enabledExtension:"\u555F\u7528\u5957\u4EF6",clickToDisableExtension:"\u9EDE\u9078\u505C\u7528\u5957\u4EF6",clickToEnableExtension:"\u9EDE\u9078\u555F\u7528\u5957\u4EF6",hasBeenDisabled:"\u5DF2\u505C\u7528","show password":"\u986F\u793A\u5BC6\u78BC",customContent:"\u8F38\u5165\u81EA\u5B9A\u7FA9\u6A21\u578B",inputOptions:"\u8F38\u5165\u6846\u589E\u5F37",mouseHoverOptions:"\u9F20\u6A19\u6ED1\u904E",enableInputTranslation:"\u662F\u5426\u555F\u7528\u8F38\u5165\u6846\u589E\u5F37",enableInputTranslationDescription:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165 {startingKey}{startingKey} \u4F60\u597D\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:"\u542F\u7528\u540E\uFF0C\u5728\u8F93\u5165\u6846\u76F4\u63A5\u8F93\u5165\uFF1A\u4F60\u597D\u4E16\u754C\uFF0C\u7136\u540E\u5FEB\u901F\u8FDE\u51FB{inputTrailingTriggerKeyRepeatTimes}\u6B21{trailingKey}\uFF0C\u5373\u53EF\u7FFB\u8BD1\u4E3A\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguage:"\u8BBE\u7F6E\u8F93\u5165\u6846\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputTargetLanguageDescription:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00\uFF0C\u4E5F\u5C31\u662F {startingKey}{startingKey} \u4F5C\u4E3A\u89E6\u53D1\u8BCD\u7684\u9ED8\u8BA4\u8BED\u8A00",inputTargetLanguageDescriptionForNoneKey:"\u8F93\u5165\u6846\u7FFB\u8BD1\u7684\u9ED8\u8BA4\u76EE\u6807\u8BED\u8A00",inputStartingTriggerKeyTitle:"\u8BBE\u7F6E\u8F93\u5165\u6846\u90E8\u5206\u7FFB\u8BD1\u7684\u5206\u5272\u5B57\u7B26",inputStartingTriggerKeyDescription:"\u5F53\u4F60\u4E0D\u9700\u8981\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u7684\u65F6\u5019\uFF0C\u5206\u5272\u7B26\u5141\u8BB8\u4F60\u53EA\u7FFB\u8BD1 {startingKey}{startingKey} \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206\uFF0C\u4E5F\u53EF\u4EE5\u6307\u5B9A\u8BED\u8A00\u4EE3\u7801\uFF0C\u6BD4\u5982\uFF1A{startingKey}ja \u8868\u793A\u53EA\u7FFB\u8BD1 {startingKey}ja \u5230\u8F93\u5165\u6846\u672B\u5C3E\u7684\u90E8\u5206",inputStartingTriggerKeyDescriptionForNoneKey:"\u5F53\u524D\u8BBE\u7F6E\u4E3A\u65E0\u9700\u524D\u7F00\uFF0C\u6682\u65E0\u6CD5\u4F7F\u7528\u8F93\u5165\u6846\u7684\u90E8\u5206\u6587\u672C\u7FFB\u8BD1\u529F\u80FD",inputTrailingTriggerKeyTitle:"\u9009\u62E9\u4E00\u4E2A\u8F93\u5165\u7ED3\u675F\u7684\u89E6\u53D1\u5B57\u7B26",inputTrailingTriggerKeyDescription:"\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey} \u5C06\u4F1A\u5F00\u59CB\u7FFB\u8BD1",inputTrailingTriggerKeyTimeout:"\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593",inputTrailingTriggerKeyTimeoutDescription:"\u8A2D\u7F6E\u8F38\u5165\u7D50\u675F\u9023\u64CA\u89F8\u767C\u7684\u9593\u9694\u6642\u9593\uFF08\u6BEB\u79D2\uFF09",spaceKey:"<\u7A7A\u683C\u9375>",noneKey:"\u65E0\u9700\u524D\u7F00\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u6587\u672C\u6846",inputTranslationBlockUrlsTitle:"\u5207\u52FF\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\u542F\u7528\u8F93\u5165\u6846\u589E\u5F3A",inputTranslationBlockUrlsDescription:"\u5728\u4EE5\u4E0B\u7F51\u5740\u4E2D\uFF0C\u8F93\u5165\u6846\u589E\u5F3A\u5C06\u4E0D\u4F1A\u751F\u6548",clickToSeeQuickDemo:"\u70B9\u51FB\u5C55\u5F00 30 \u79D2\u5FEB\u901F\u6559\u5B66\u89C6\u9891",inputHelperInfo:"\u8AAA\u660E\uFF1A\u6211\u5011\u7279\u5225\u91DD\u5C0D\u5728\u4E2D\u6587\u8F38\u5165\u6CD5\u4E0B\u90E8\u5206\u89F8\u767C\u5B57\u7B26\u6703\u8B8A\u6210\u4E2D\u6587\u6A19\u9EDE\u7B26\u865F\u9019\u4EF6\u4E8B\u505A\u4E86\u512A\u5316\uFF0C\u6BD4\u5982\u641C\u72D7\u8F38\u5165\u6CD5\u4E0B / \u6703\u8B8A\u6210\u9813\u865F \u3001\uFF0C\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u652F\u6301\u6240\u6709\u89F8\u767C\u7B26\u5C0D\u61C9\u7684\u4E2D\u6587\u7B26\u865F\uFF0C\u4E5F\u5C31\u662F\u8AAA // \u3001\u3001 \u90FD\u6703\u88AB\u8B58\u5225\u70BA\u89F8\u767C\u5B57\u7B26\u3002

\u540C\u6642\u6211\u5011\u4E5F\u652F\u6301\u8A9E\u8A00\u4EE3\u78BC\u7684\u4E2D\u6587\u5225\u540D\u4F5C\u70BA\u547D\u4EE4\uFF0C\u6BD4\u5982 /\u65E5\u6587 \u4F60\u597D\u4E16\u754C \u6703\u88AB\u7FFB\u8B6F\u70BA\u65E5\u6587\uFF0C<1>\u9EDE\u6B64\u67E5\u770B\u6240\u6709\u652F\u63F4\u7684\u8A9E\u8A00\u4EE3\u78BC\u3002",reloadCurrentPage:"\u8BF7\u5148\u5237\u65B0\u5F53\u524D\u9875\u9762\uFF0C\u518D\u5F00\u59CB\u7FFB\u8BD1",noLocalFilePermissionForPDF:"\u6682\u65E0\u6743\u9650\u8BFB\u53D6\u672C\u5730\u6587\u4EF6\uFF0C\u8BF7\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\uFF0C\u7136\u540E\u5BFC\u5165\u672C\u5730\u6587\u4EF6",noPermissionForThisPage:"\u26A0\uFE0F \u6682\u65E0\u6743\u9650\u7FFB\u8BD1\u5F53\u524D\u9875\u9762",retryAllParagraphs:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",retryAllButton:"\u91CD\u8BD5\u5168\u90E8\u9519\u8BEF\u6BB5\u843D",errorTooltipTitle:"\u70B9\u51FB\u67E5\u770B\u9519\u8BEF\u539F\u56E0",errorModalTitle:"\u7FFB\u8BD1\u670D\u52A1\u6216\u7F51\u7EDC\u4F3C\u4E4E\u51FA\u4E86\u70B9\u95EE\u9898...",disableConfirm:"\u7981\u7528\u78BA\u8A8D",disableOnce:"\u7981\u7528\u4E00\u6B21",disableGlobal:"\u5168\u5C40\u7981\u7528",disableTint:"* \u60A8\u53EF\u4EE5\u5728 {option} \u4E2D\u91CD\u65B0\u555F\u7528\u3002",searchEnhancementNotes:"\u6211\u5011\u767C\u73FE\uFF0C\u4E2D\u6587\u95DC\u9375\u8A5E\u548C\u82F1\u6587\u95DC\u9375\u8A5E\u7684\u65B0\u805E\u7D50\u679C\u6709\u975E\u5E38\u5927\u7684\u4E0D\u540C\uFF0C\u5728\u555F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8B6F\u96D9\u8A9E\u4FE1\u606F\u589E\u5F37\u529F\u80FD\u5F8C\uFF0C\u6211\u5011\u6703\u5728\u652F\u6301\u7684\u7DB2\u7AD9\uFF08\u8C37\u6B4C\u65B0\u805E\uFF0C\u8C37\u6B4C\u641C\u7D22\uFF08\u90E8\u5206\u95DC\u9375\u8A5E\uFF09\uFF0C\u96EA\u7403\uFF0C\u6771\u65B9\u8CA1\u5BCC\u7DB2\uFF0C\u5BCC\u9014\uFF0C\u8001\u864E\uFF09\u81EA\u52D5\u7528\u82F1\u6587\u70BA\u4F60\u641C\u7D22\u540C\u6A23\u7684\u95DC\u9375\u8A5E\u4E26\u5C55\u793A\u5728\u53F3\u5074\u3002\u5982\u679C\u4F60\u4E0D\u9700\u8981\u8A72\u529F\u80FD\u7684\u8A71\uFF0C\u53EF\u4EE5\u9078\u64C7\u7981\u7528\u5B83\u3002",option:"\u9078\u9805",saveSettings:"\u4FDD\u5B58\u8BBE\u7F6E",closeModal:"\u95DC\u9589\u8996\u7A97",enableInputTranslationWithoutTriggerKeyTitle:"\u542F\u7528\u5FEB\u901F\u8FDE\u51FB 3 \u6B21{trailingKey}\uFF0C\u76F4\u63A5\u7FFB\u8BD1\u6574\u4E2A\u8F93\u5165\u6846\u4E3A{inputTargetLanguage}",enableInputTranslationWithoutTriggerKeyDescription:"\u5982\u9700\u6307\u5B9A\u76EE\u6807\u8BED\u8A00\uFF0C\u8BF7\u5728\u524D\u9762\u52A0\u4E0A\u8BED\u8A00\u4EE3\u7801\uFF0C\u5982\uFF1Aja \u4F60\u597D\u4E16\u754C",mouseHoverShortcutPlaceholder:"\u5982\uFF1AShift",yearly:"\u5E74\u5EA6\u7E8C\u8A02",quarterly:"\u5B63\u5EA6\u7E8C\u8A02",monthly:"\u6BCF\u6708\u7E8C\u8A02",yearlyForOnce:"\u4E00\u6B21\u6027\u5E74\u5EA6\u5957\u9910",monthlyForOnce:"\u4E00\u6B21\u6027\u6708\u5EA6\u5957\u9910",daily:"\u6BCF\u65E5\u7E8C\u8A02",year:"\u5E74\u5EA6\u7E8C\u8A02",quarter:"\u5B63\u5EA6\u7E8C\u8A02",month:"\u6BCF\u6708\u7E8C\u8A02",day:"\u6BCF\u65E5\u7E8C\u8A02",upgradeToPro:"\u5347\u7D1A\u70BA Pro \u6703\u54E1","popup.openPro":"\u5347\u7D1A\u70BA Pro \u6703\u54E1\u5F8C\u53EF\u4EE5\u66A2\u4EAB DeepL \u548C OpenAI \u7FFB\u8B6F\uFF0C\u9EDE\u6B64\u5347\u7D1A","popup.openProForPro":"\u60A8\u662F Pro \u6703\u54E1\uFF0C\u53EF\u76F4\u63A5\u4F7F\u7528 DeepL \u548C OpenAI \u7FFB\u8B6F",currentAccount:"\u7576\u524D\u8CEC\u6236"};var vg={nologin:"Not logged in",login:"Login",manageAccount:"Manage Account",logout:"Logout",curentPlan:"Current Plan",endAt:"Expires",endAuto:"Auto Renew",lineBreakMaxTextCount:"Maximum number of characters allowed per sentence after line break","translate-pdf":"Click to translate PDF","noSupportTranslate-pdf":"The script is not supported, please use a plugin.","translate-firefox-local-pdf":"Click to upload PDF",enableLineBreak:"Whether to turn on automatic line wrapping for long paragraphs",sponsorLabel:"Sponsoring developers from $1 (monthly or one-time)",help:"Help",browserShortcutsNoteForFirefox:`To modify the shortcut key in Firefox browser, you need to open the extension management page 'about: addons', then click "Settings", and then click "Management shortcut key" to set it`,browserShortcutsNoteForChrome:"To modify the shortcut key in Chrome browser, you need to open the extension management page` chrome://extensions/shortcuts `) Settings, click the button below to jump to the shortcut key management page.",browserShortcutsSucks:"Please enter the shortcut key manually in the format:",enableLineBreakDescription:"After opening, a line break will be inserted at the end of each sentence in a long paragraph for easy reading","browser.shortBrandName":"Immersive Translate","browser.brandName":"Immersive Translate: Web Page&PDF Translation","browser.brandDescription":"Bilingual web page translation, also supports PDF translation, bilingual Epub eBook translation, free to use.","browser.toggleTranslatePage":"Toggle Translate Page","browser.toggleTranslateTheWholePage":"Toggle Translate the Whole Page","browser.toggleOnlyTransation":"Toggle Translate and Hide Original Text","browser.toggleTranslateToThePageEndImmediately":"Toggle Translate to the Bottom of the Page Immediately","browser.toggleTranslateTheMainPage":"Toggle Translate the Main Page","browser.openOptionsPage":"Open Settings Page","browser.toggleTranslationMask":"Toggle translation mask style","browser.translateLocalPdfFile":"Translate local PDF File","browser.openEbookViewer":"Read local e-book","browser.openEbookBuilder":"Make Dual EPUB ebook","browser.translateLocalHtmlFile":"Translate HTML/txt File","browser.donateContext":"Sponsor Benefits","browser.translateLocalSubtitleFile":"Translate Subtitle File",confirmResetConfig:"Are you sure you want to reset the settings?",translationLineBreakSettingTitle:"Line break setting",smartLineBreak:"Smart Wrap",alwaysLineBreak:"Always Wrap",isShowContextMenu:"Create right button menu",toggleBeta:"Enable Beta experimental features",betaDescription:"Enable features that are still experimental, and translation services that are in testing. Join the <1>Telegram group to learn more.",translationLineBreakSettingDescription:"The always line break feature is suitable for layouts with less content, making the layout more neat and tidy. (Use smart line breaks for long paragraphs with more content (more than {count} characters) for saving space)",tempTranslateDomainTitle:"Open the translation time temporarily",tempTranslateDomainDescription:"When a page is translated manually, turn it temporarily on as automatic translation",xMinutes:"{count} minutes",disabled:"Disable",changelog:"Change Log",toggleTranslatePageWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide translation display",toggleTranslationMaskWhenThreeFingersOnTheScreen:"Multi-finger touch to show/hide the blur effect of the translation",fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:"Multi-finger touch to show/hide only translation display",addUrlDescription:"The domain name is available and wildcard is supported e.g.: *.google.com, google.com/mail/*, https://www.google.com/*",general:"General",clickToExpandConfig:"Expand current configuration",import:"Import configuration from file",export:"Export to file",toggleDebug:"Print debug logs on the console","fingers.0":"Close","fingers.2":"Two-finger touch","fingers.3":"Three-finger touch","fingers.4":"Four-finger touch","fingers.5":"Five-finger touch",mouseHoldKey:"+ {key} translate this paragraph",mouseHoldKeyAuto:"Translate the paragraph directly",mouseHoldKeyOff:"Do nothing",mouseHoldKeyOther:"Custom shortcut key (open settings)",mouseHoldKeyCustomKey:"{key} translate this paragraph",mouseHoverHoldKey:"Mouse over and press X key to translate paragraph","mouse-translate":"Hover",document:"Document",resetSuccess:"All settings reset successful",resetThisSuccess:"Reset successful",saved:"Saved successfully",successImportConfig:"Configuration imported successfully",goAdvancedSettings:"Go to Advanced Settings Page",goAdvancedInterfaceSettings:"Go to Advanced Custom Settings Page",advanced:"Advanced",advancedDescription:"Normally no settings are needed, keep the default. More personalized settings are provided for professional users only.",developer:"Developer settings",donateCafe:"Pricing","translate to the bottom of the page":"Translate to the bottom of the page immediately after opening the page?",feedback:"Feedback",toggleTranslatePage:"Toggle Translate",translateToThePageEndImmediatelyDescription:"Enabled will translate from the top to the bottom of the page immediately after opening. Disable will translate while reading. (Not recommended to enable)","translate all areas of the page":"Whether to translate all areas of the web page",translationAreaDescription:"When enabled, all areas of the entire web page will be translated. Disabled will use the default smart recognition and translate only the main areas. (Not recommended to enable)","the number of characters to be translated first":"Directly translate the number of characters in front of the page without waiting to scroll to the visible area","interface language":"Interface language","display both the original text and the translation":"Display both the original text and the translation","keyboard shortcuts":"Keyboard shortcuts",modify:"Edit",reset:"Reset",close:"Close",homepage:"Home Page",more:"More",moreOptions:"Expand more custom settings",translateTheWholePage:"Translate the whole page area",changeToTranslateTheWholePage:"Translate the Whole Page",changeToTranslateTheMainPage:"Translate the Main Content",changeToOnlyTranslationMode:"Show Translation only",changeToDualTranslationMode:"Show Dual Translation",translateToThePageEndImmediately:"Immediately translate to the bottom ",translateTheMainPage:"Main areas of intelligent translation","The local rules are up to date":"Local rules are up to date:","Successfully synchronized with the latest official rules:":"Successfully synced latest official rules:","Checking for updates":"Checking for update","Rules are being synchronized":"Syncing official rules",localVersionIsTooOld:"The local extension version is too old, please upgrade the extension to {minVersion} or a newer version and try to sync again.",badUserscriptBrowser:"The current browser does not correctly implement the interface of the Greasemonkey extension, please use another browser that <1>supports the Greasemonkey extension such as (Firefox Nightly version)",foundNewVersion:"New version available",theLocalExtensionIsUpToUpdate:"The current extension version is up to date.",failToSyncRules:"Failed to sync latest adaptive rules",retry:"Retry",failedReason:"Failure reason",currentRuleVersion:"Current Rule Version",calculating:"Calculating",unknownError:"Unknown Error",canNotFetchRemoteRule:"Unable to fetch remote rule",enableAlphaSuccess:"Alpha enabled successfully",disableAlphaSuccess:"Alpha has been disabled",cacheSize:"Cache size:",cleaning:"Cleaning",cleanCache:"Clear cache",options:"Options",about:"About",service:"Translation Service",needAction:"(to set up)",goSettings:"to set up",needActionForOptions:"(need to set)",translationEngine:"Engine Options",sourceLanguage:"Original language",target:"Target Language",popupSourceLanguage:"Source",popupTarget:"Target",popupService:"Service",forThisSite:"Site:",alwaysTranslateSomeLanguage:"Always translate {language}",neverTranslateSomeLanguage:"Never translate {language}",alwaysTranslateSomeSite:"Always translate {hostname}",neverTranslateSomeSite:"Never translate {hostname}",alwaysTranslateSomeSiteOrWildSite:"Always translate this site",alwaysTranslateSomePage:"Always translate this page",add:"Add",default:"Default",forThisLanguage:"For This Language:","add url":"Add URL",edit:"Edit","translate other languages into specific language":"Translate other languages into the language you set","select translation service":"Select a translation service",language:"Language","show-original":"Show Original",translate:"Translate",Translated:"Translated",Translating:"Translating",Error:"Error",allowCacheTranslations:"Enable local translation caching (reduce translation requests for duplicate paragraphs)","translation display":"Translation display style","select diplay style":"Please refer to the following examples",interface:"Interface Settings",import_export:"Import/Export",import_export_title:"Import/Export Configuration",syncToGoogleDrive:"Sync Now with Google Drive",syncToAccount:"Sync to account",syncToAccountButton:"Sync to account now",syncToAccountDescription:"Uploaded to the logged-in account, the configuration can be synchronized between different devices, and the last modification time shall prevail.",successSyncConfigInAccount:"Successfully synced with account",successSyncConfigToAccount:"Successfully synchronized to account",syncConfigNoUpdate:"Already up to date",previewAllThemes:"Preview all themes","translationTheme.none":"None","translationTheme.grey":"Black Gray","translationTheme.dashed":"Dashed underline","translationTheme.dotted":"Dotted Underline","translationTheme.dashedBorder":"Dashed Border","translationTheme.solidBorder":"Dashed Border","translationTheme.underline":"Straight underline","translationTheme.mask":"Blur effect","translationTheme.opacity":"Opacity effect","translationTheme.paper":"White paper shadow effect","translationTheme.dividingLine":"Dividing line","translationTheme.highlight":"Highlight","translationTheme.marker":"Marker","translationTheme.marker2":"Maker2","translationTheme.blockquote":"quote style","translationTheme.weakening":"Weakening","translationTheme.italic":"Italic","translationTheme.bold":"Bold","translationTheme.thinDashed":"Thin dashed underline","translationTheme.nativeDashed":"System Dash Underline","translationTheme.nativeDotted":"System Dotted Underline","translationTheme.nativeUnderline":"System Straight Line Underline","translationTheme.wavy":"Squiggle","translationServices.custom":"Custom API","translationServices.tencent":"Tencent Translator","translationServices.tenAlpha":"Tencent Translator (Alpha)","translationServices.google":"Google Translate","translationServices.bai":"Baidu (Alpha)","translationServices.baidu":"Baidu translation","translationServices.aliyun":"Aliyun Translator","translationServices.volc":"Volcano Translation","translationServices.deeplx":"DeeplX (Alpha)","translationServices.bing":"Microsoft Translator","translationServices.deepl":"DeepL","translationServices.wechat":"Wechat translation","translationServices.azure":"Azure Translator","translationServices.ibm":"IBM Watson","translationServices.aws":"Amazon Translate","translationServices.mock":"Mock translation","translationServices.mock2":"Mock Translation2","translationServices.caiyun":"Caiyun Translation","translationServices.cai":"Caiyun Translation (Alpha)","translationServices.volcAlpha":"Volcano Translation (Alpha)","translationServices.openl":"OpenL","translationServices.youdao":"Youdao Translation","translationServices.you":"Youdao Translation (Alpha)","translationServices.transmart":"Tencent Smart Translation","translationServices.niu":"Niu Translation","translationServices.papago":"Papago Translation","translationServices.d":"DeeplX (Alpha)","translationServices.dpro":"D Pro (Canary)","translationServices.openai":"OpenAI","translationServices.chatgpt":"ChatGPT Web(3.5 mobile)","translate title":"Translate page title","always languages":"Always translate the following languages",neverTranslateLanguagesLabel:"Never Translated Languages",neverTranslateTheFollowingLanguagesDescription:"When a paragraph on a page is in one of the following languages, the translation will be skipped",enableUserscriptPagePopup:"Always show Popup windows on the page",enableUserscriptPagePopupDescription:"Three-finger touch to show the Popup.","always translate the following languages":"The following languages will always be translated","always sites":"Always translate the following sites","always translate the following sites":"The following sites will always be translated","never sites":"Never translate the following sites","never translate the following sites":"The following sites will never be translated","please refer to":"It can only be used after filling in the key. For details, please refer to",KeyAndConfigurationTutorial:"Key Application and Configuration Tutorial",useAboveStyleForTheseSites:"Sites that always use the {theme} translation style",currentUrl:"Current URL",confirm:"Save",cancel:"Cancel",delete:"Delete","languages.auto":"Detect Language",syncToCloud:"Sync to cloud",syncToCloudDescription:"Upload the configuration to the cloud server, and you can synchronize the configuration between different browsers or Tampermonkey scripts, based on the last modification time.",authFail:"Authorization Failed",syncTitle:"Please select a file operation",import_hint:"Import",upload:"Upload",revokeAuth:"Revoke Authorization",uploadFail:"Upload Failed",download:"Download",importSuccess:"Upload Success",importFail:"Import Failed",deleteFail:"Delete Failed",backupToCloud:"Manage backup files manually",create_new_backup:"Add backup node",maxBackupFiles:"Up to{count}different nodes can be backed up. Please delete unneeded nodes",backupToCloudDescription:"Upload or restore backup files manually, up to 3 different backups",successSyncConfig:"Successfully synced with cloud",syncFail:"Synchronization failed",updatedAt:"Updated at {date}",lastSyncedAt:"Last checked at {date}",downloadFail:"Download failed",clickToDownload:"Click to download",aboutLabel:"About - Feedback ","browser.openAboutPage":"About / Feedback/Sponsor",aboutLabelWithoutSponsor:"About - Feedback",aboutIntro:"We hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. You can choose to subscribe to <6>Pro membership to use the out-of-the-box DeepL and OpenAI translation.

You can also follow out <3>Twitter, <4>Telegram Channel, and <5>Email Subscription below to track updates.
<7>Pro members can contact us through the fast customer service email <8>support@immersivetranslate.com.",aboutIntroWithoutSponsor:"The extension is completely free and we hope that users will all have more accessible and more enjoyable access to the enormous amount of foreign language information available on the Internet \u2764\uFE0F. ",projectHomepage:"Project Homepage",joinTelegramGroup:"Join our communities for feature discussion",wechatPublicAccount:"Wechat Official Account",wechatCommunities:"Wechat Group",qqCommunities:"QQ Channel",joinTelegramChannel:"Subscribe to our Telegram channel to get the latest updates",feedbackAndJoin:"Feedback",autoSync:"Auto-Time Sync",loadingThemeTitle:"Loading Style",loadingThemeDescription:"Set the style of waiting for the translation to load","loadingTheme.spinner":"Spinning icon","loadingTheme.text":"Static Text... ","loadingTheme.none":"Disabled",developerDescription:"You can click <1>here to see the documentation related to advanced customization","edit border color":"Edit border color",successSyncButNoChange:"The current configuration is consistent with that in the cloud server",customTheme:"Customize colors and sizes","customThemeLabel.borderColor":"Border color","customThemeLabel.borderRadius":"Border Round Corner","customThemeLabel.textColor":"Text color","customThemeLabel.backgroundColor":"Background color","customThemeLabel.zoom":"Font scale (%)","customThemeLabel.opacity":"Text opacity (%)",resetToDefaultColor:"Reset to default colors",resetToDefaultSettings:"Reset to default settings",isTranslateTitle:"Enable translate page title",enableSubtitle:"enableSubtitleTranslation",enableSubtitleDescription:"Enable translations for subtitle areas on sites like youtube",isTranslateTitleDescription:"When enabled, the page title will be translated",enableSearchEnhancement:"Enable Search Enhancement",enableSearchEnhancementDescription:'After enabling, the right sidebar will automatically display "Google News" search results for corresponding English keywords on supported websites (such as Google News, Google Search (partial keywords), Xueqiu, East Money, Futu, Tiger Community).',verifyService:"Verify service",verified:"Successful","field.model":"Model","field.translationEngine":"Translation engine","field.limitPerMinute":"Max requests per minute","field.limitPerSecond":"Max requests per second","field.maxTextLengthPerRequest":"Maximum text length per request","field.maxTextGroupLengthPerRequest":"Maximum number of paragraphs per request","field.apiUrl":"Custom API interface address","field.placeholderDelimiters":"Reserved placeholders","description.custom":"Custom interface access requires reference documents","description.limitPerMinute":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next minute. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.limitPerSecond":"When the number of requests exceeds this limit, it will be temporarily suspended until the beginning of the next second. Due to various limitations of OpenAI's current services, please click <1>here to view the latest suggested values","description.generalLimitPerSecond":"Requests exceed this limit will be queued until the next seconds.","description.prompt":"Send as a user to OpenAI conversation, where {{text}} indicates the text of the paragraph,{{from}} indicates the language of the paragraph,{{to}} indicates the target language, you can omit {{text}}, if so, it'll be sent as a separated message","description.maxTextLengthPerRequest":"By default multiple paragraphs will be merged to reduce the number of requests, but if the total length of the paragraphs is too long, it may also cause the interface to respond slowly, so you can try to adjust this option to optimize speed","description.systemPrompt":"Send the conversation to OpenAI as a system, where {{text}} represents the text content of the paragraph, {{from}} represents the original language of the paragraph, and {{to}} represents the target language.","field.domain":"Domain","description.domain":"Default is\uFF1Ageneral. Only set up if there is an API console open domain translation, support fields see <1>Here ","field.scene":"Scene","description.scene":"Default is\uFF1Ageneral. Only set up if there is an API console open Machine Translation Professional, support fields see<1>Here","field.vocabId":"User dictionary ID","description.vocabId":"Specified dictionary out_id, currently supported in English translation","description.model":"OpenAI's models, such as gpt-3.5-turbo, gpt-4, etc","description.maxTextGroupLengthPerRequest":"The number of paragraphs sent to translation service each time. Sending too many paragraphs to OpenAI at once can slow down the interface.","description.apiUrl":"Please provide a URL with the specific path.",enabledExtension:"Enable extensions",clickToDisableExtension:"Click to disable extension",clickToEnableExtension:"Click to enable the extension",hasBeenDisabled:"Disabled","show password":"Show password",customContent:"Enter customization content",inputOptions:"Writing",mouseHoverOptions:"Mouse Hover",enableInputTranslation:"enhanced input box?",enableInputTranslationDescription:"When enabled, enter {startingKey}{startingKey} direct in the input box and hit{inputTrailingTriggerKeyRepeatTimes}times{trailingKey}, translated into {inputTargetLanguage}",enableInputTranslationDescriptionForNoneKey:'When enabled, simply enter "Hello World" in the input box, then quickly press {inputTrailingTriggerKeyRepeatTimes} times on {trailingKey}, and it will be translated into the default target language.',inputTargetLanguage:"Set the default target language for the input box",inputTargetLanguageDescription:"The default target language for the translation input box, which is {startingKey}{startingKey} as the default language for triggering words.",inputTargetLanguageDescriptionForNoneKey:"Default target language for translation input box",inputStartingTriggerKeyTitle:"Set the delimiter for translating part of the input box.",inputStartingTriggerKeyDescription:"When you don't need to translate the entire input box, the delimiter allows you to only translate the portion from {startingKey}{startingKey} to the end of the input box. You can also specify a language code, for example: {startingKey}ja means only translating the portion from {startingKey}ja to the end of the input box.",inputStartingTriggerKeyDescriptionForNoneKey:"The current setting is no prefix required, the partial text translation function of the input box cannot be used temporarily.",inputTrailingTriggerKeyTitle:"Select a trigger character to indicate the end of input.",inputTrailingTriggerKeyDescription:"Start the translation by quickly pressing 3 times {trailingKey}.",inputTrailingTriggerKeyTimeout:"Enter the interval time to end the trailing trigger",inputTrailingTriggerKeyTimeoutDescription:"Set the interval time (milliseconds) for the input to end the combo trigger",spaceKey:"",noneKey:"Translate the entire text box without prefixes",inputTranslationBlockUrlsTitle:"Do not enable input box enhancement in the following URL",inputTranslationBlockUrlsDescription:"The input box enhancement will not work in the following URL",clickToSeeQuickDemo:"Click to expand the 30s tutorial video",inputHelperInfo:`Note: We have optimized the system to address an issue where certain characters in Chinese input methods were being converted into Chinese punctuation marks. For instance, when using Sogou Input Method, "/" would be changed to "\u3001". We now recognizes all corresponding Chinese symbols as triggering characters, including "//" and "\u3001\u3001". -Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.`,reloadCurrentPage:"Please refresh the current page before starting translation",noLocalFilePermissionForPDF:"No permission to read local files. Please click the button above and upload the local file.",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate the current page",retryAllParagraphs:"Retry all paragraphs",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Noops, something went wrong",disableConfirm:"Search Enhancement Settings",disableOnce:"Disable Once",disableGlobal:"Disable Forever",disableTint:"* You can re-enable in {option}.",searchEnhancementNotes:"We have discovered notable disparities in news results between Chinese and English keywords. By activating the immersive translation Bilingual Display Enhancement feature, we will automatically search for equivalent English keywords and display them on the right side of supported websites (e.g., Google News, Google Search (partial keywords), xueqiu, East Money, Futu, Tiger). You can disable this feature if you don't need it.",option:"Settings",saveSettings:"Save",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"Enable quick press 3 times {trailingKey}, directly translate the entire input box to {inputTargetLanguage}.",enableInputTranslationWithoutTriggerKeyDescription:"To specify the target language, please add a language code at the beginning, such as: ja Hello world",mouseHoverShortcutPlaceholder:"e.g. Shift",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",needLoginAction:"(Premium or custom)",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",daily:"Daily Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",profile:"Profile",billing:"Billing",onetime_7day:"7-day Trial Pack",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt} and will not auto-renew",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly pro membership",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"Current plan: {plan}, will expire on {endAt}, will not auto-renew after expiration.
<1>Enable consecutive annual plan",upgradePlan:"Click here to upgrade to Pro membership",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",upgradeToPro:"Upgrade to Pro","popup.openPro":"Enjoy unrestricted access to DeepL and OpenAI translations after upgrading to Pro Membership. Click here to upgrade","popup.openProForPro":"You are a Pro member, you can directly use DeepL and OpenAI translations",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You have just triggered the immersive translate of the input box by quickly tapping the space key 3 times. The content of the input box will be translated into the default target language.

If this was a mistake, don't worry. You can choose to disable it this time or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show again",disableInputTranslationTips:"* You can also set other shortcuts in {option}, {learnMore}.",learnMore:"Learn more",continueEnalbeInputTranslation:"Continue to enable input translation"};var f9=[{code:"zh-CN",messages:xg},{code:"zh-TW",messages:Eg},{code:"en",messages:Cg}],wg="immersiveTranslateDeeplGlobalState",Ku="immersiveTranslateBingGlobalState",Qt={};for(let e of f9)Qt[e.code]=e.messages;var Wa="Immersive Translate",X="immersive-translate";var be="immersiveTranslate",$u="759003177173-mfm15s5nd77vfmo6e7lanof1emnanf0e.apps.googleusercontent.com",Kn=be+"GoogleAccessToken",Ao=be+"AuthFlow",Gu="immersive-translate-config-latest.json",B0=be+"AuthState",Vu=be+"IframeMessage",w8=be+"WaitForRateLimit",kg=be+"DocumentMessageAsk",_t=be+"DocumentMessageTellThirdParty",Yu=be+"showError",Sg=be+"DocumentMessageThirdPartyTell",Ag=be+"DocumentMessageEventUpload",Dg=be+"DocumentMessageHandler",h9=`${be}Container`,Lg=`${be}SpecifiedContainer`,ra="buildinConfig",vr="localConfig",Do="openOptionsPage",R0="openAboutPage",Mg="translateLocalPdfFile";var Lo="openEbookViewer",Mo="openEbookBuilder";var Ju=`${be}PageTranslatedStatus`,k8=`${be}PageUrlChanged`,xa=`${be}ReceiveCommand`,Pg=be+"LastUseMouseHoverTime",I0=be+"LastUseInputTime",Ln=be+"LastUseManualTranslatePageTime",S8=`${be}PopupReceiveMessage`,b9="immersivetranslate.com",y9="config.immersivetranslate.com",A8=`https://${b9}/`,Ea=`https://${y9}/default_config.json`,D8=`${be}Mark`,Po="immersiveTranslateEffect",Zt=`${be}Root`,L8=`data-${X}-effect`,$n=`data-${X}-translation-element-mark`,Fg=`${be}TranslationElementMark`,M8=`${be}TranslatedMark`,P8=`${be}ParagraphId`,_g=`${be}LoadingId`,O0=`data-${X}-loading-id`,Bg=`${be}ErrorId`,Qu=`data-${X}-error-id`,T9=`${be}AtomicBlockMark`,Rg=`${be}ExcludeMark`,F8=`data-${X}-exclude-mark`,x9=`${be}StayOriginalMark`,_8=`${be}PreWhitespaceMark`,Zu=`${be}InlineMark`,Ig=`${be}BlockMark`,B8=`${be}Left`,R8=`${be}Right`,I8=`${be}Width`,O8=`${be}Height`,N8=`${be}Top`,U8=`${be}FontSize`,Og="lastRunTime",j8=`${be}GlobalStyleMark`,Ka=["@","#"],Xu=" --- ",Ng=` -`,un=`${X}-target-wrapper`,z8=`${X}-pdf-target-container`,Ug=`${X}-target-inner`,H8=`${X}-source-wrapper`,N0=`${X}-target-translation-block-wrapper`,q8=`${X}-root-translation-theme`,wr=`${be}RootTranslationTheme`,jg=`${X}-target-translation-vertical-block-wrapper`,W8=`${X}-target-translation-pdf-block-wrapper`,zg=`${X}-target-translation-pre-whitespace`,U0=`${X}-target-translation-inline-wrapper`,j0=["none","dashed","underline","dashedBorder","solidBorder","mask","opacity","dotted","dividingLine","highlight","marker","marker2","blockquote","weakening","grey","paper","italic","bold","thinDashed","wavy","nativeDotted","nativeDashed","nativeUnderline"],Fo={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]},sn=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","ru","ar","it","ms","id","vi","af","th","ur","yue","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","nl","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu"],Hg={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Detect Language",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese",zu:"Zulu","":"All Languages"},qg={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B\u8BED\u8A00",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00"},Wg={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C\u8A9E\u8A00",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00"};var Kg=["toggleTranslatePage","toggleTranslateTheWholePage","toggleOnlyTransation","toggleTranslateToThePageEndImmediately","toggleTranslateTheMainPage","toggleTranslationMask"],$g=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/"],Gg="Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post.",z0="\u957F\u591C\u5C06\u81F3\uFF0C\u6211\u4ECE\u4ECA\u5F00\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002\u6211\u5C06\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002\u6211\u5C06\u4E0D\u6234\u5B9D\u51A0\uFF0C\u4E0D\u4E89\u8363\u5BA0\u3002\u6211\u5C06\u5C3D\u5FE0\u804C\u5B88\uFF0C\u751F\u6B7B\u4E8E\u65AF\u3002",ei="zh-CN",ti="https://immersivetranslate.com/docs/communities/",vg=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],Mn={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},deepl:{name:"DeepL",homepage:"https://www.deepl.com/translator",docUrl:"https://immersivetranslate.com/docs/services/deepL/",providers:[{name:"pro",nameKey:"deepLProName",descriptionKey:"deepLProDescription",descriptionKeyForNormal:"deeplProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"deepLCustomName",descriptionKey:"deepLCustomDescription",descriptionLink1:"https://www.deepl.com/translator",descriptionLink2:"https://immersivetranslate.com/docs/services/deepL/"}],allProps:[{name:"authKey",providers:["custom"],label:"Auth Key",required:!0,type:"password"}]},openai:{name:"Open AI",homepage:"https://openai.com/api/",docUrl:"https://immersivetranslate.com/docs/services/openai/",providers:[{name:"pro",nameKey:"openaiProName",descriptionKey:"openaiProDescription",descriptionKeyForNormal:"openaiProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"openaiCustomName",descriptionKey:"openaiCustomDescription",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password"},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"openai-model-select",default:"gpt-3.5-turbo-0613",options:[{providers:["custom","pro"],label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{providers:["custom","pro"],label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{providers:["custom"],label:"gpt-4",value:"gpt-4"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.limitPerSecond",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.openai.com/v1/chat/completions",descriptionKey:"description.apiUrl",optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"text",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +Additionally, we support using Chinese aliases of language codes as commands. For example, entering "/Japanense Hello World" will translate the text into Japanese. You can click here to see a list of all supported language codes.`,reloadCurrentPage:"Please refresh the current page before starting translation",noLocalFilePermissionForPDF:"No permission to read local files. Please click the button above and upload the local file.",noPermissionForThisPage:"\u26A0\uFE0F No permission to translate the current page",retryAllParagraphs:"Retry all paragraphs",retryAllButton:"Retry All",errorTooltipTitle:"Click to get the error details",errorModalTitle:"Noops, something went wrong",disableConfirm:"Search Enhancement Settings",disableOnce:"Disable Once",disableGlobal:"Disable Forever",disableTint:"* You can re-enable in {option}.",searchEnhancementNotes:"We have discovered notable disparities in news results between Chinese and English keywords. By activating the immersive translation Bilingual Display Enhancement feature, we will automatically search for equivalent English keywords and display them on the right side of supported websites (e.g., Google News, Google Search (partial keywords), xueqiu, East Money, Futu, Tiger). You can disable this feature if you don't need it.",option:"Settings",saveSettings:"Save",closeModal:"Close",enableInputTranslationWithoutTriggerKeyTitle:"Enable quick press 3 times {trailingKey}, directly translate the entire input box to {inputTargetLanguage}.",enableInputTranslationWithoutTriggerKeyDescription:"To specify the target language, please add a language code at the beginning, such as: ja Hello world",mouseHoverShortcutPlaceholder:"e.g. Shift",deepLProName:"Premium Membership (Recommended)",deepLProDescription:"You can directly use this service",deeplProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",deepLCustomDescription:"Requires an international credit card, activate at <1>DeepL official site, click to see <2>documentation",deepLCustomName:"Custom Auth Key",chooseProviderLabel:"Choose a service provider",openaiProName:"Premium Membership (Recommended)",openaiProDescription:"The current plan can be used directly",openaiProDescriptionForNormal:"No setup required, available for premium members after login, <1>Upgrade",openaiCustomDescription:"Can be obtained from OpenAI, Azure OpenAI, or other third-party services, <1>Click here to view documentation",openaiCustomName:"Custom API Key",needLoginAction:"(Premium or custom)",goLoginOrAction:"(Premium or go to setting)",yearly:"Annual Renewal",quarterly:"Quarterly Renewal",monthly:"Monthly Renewal",daily:"Daily Renewal",yearlyForOnce:"One-time Annual",monthlyForOnce:"One-time Monthly",profile:"Profile",billing:"Billing",onetime_7day:"7-day Trial Pack",currentPlanDescriptionForFree:"Current plan: Free",currentPlanDescriptionForContinuous:"Current plan: {plan}, will auto-renew on {endAt}",currentPlanDescriptionForAutoRenewCaceling:"Current plan: {plan}, will expire on {endAt} and will not auto-renew",currentPlanDescriptionForOneTime:"Current plan: {plan}, expiring on {endAt}. <1>Upgrade to annual or <2>monthly pro membership",currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser:"Current plan: {plan}, will expire on {endAt}, will not be auto-renewed after expiration
<1>Manage the renewal plan",currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin:"Current plan: {plan}, will expire on {endAt}, will not auto-renew after expiration.
<1>Enable consecutive annual plan",upgradePlan:"Click here to upgrade to Pro membership",year:"Annual Renewal",quarter:"Quarterly Renewal",month:"Monthly Renewal",day:"Daily Renewal",upgradeToPro:"Upgrade to Pro","popup.openPro":"Enjoy unrestricted access to DeepL and OpenAI translations after upgrading to Pro Membership. Click here to upgrade","popup.openProForPro":"You are a Pro member, you can directly use DeepL and OpenAI translations",currentAccount:"Account",enableAutoSyncUserSettings:"Enable auto-sync user settings",modalEnableInputTranslationTitle:"Writing Settings",modalEnableInputTranslationDesc:"You have just triggered the immersive translate of the input box by quickly tapping the space key 3 times. The content of the input box will be translated into the default target language.

If this was a mistake, don't worry. You can choose to disable it this time or permanently disable input box translation.",saveAndNotShowAgain:"Save and don't show again",disableInputTranslationTips:"* You can also set other shortcuts in {option}, {learnMore}.",learnMore:"Learn more",continueEnalbeInputTranslation:"Continue to enable input translation"};var h9=[{code:"zh-CN",messages:Eg},{code:"zh-TW",messages:Cg},{code:"en",messages:vg}],kg="immersiveTranslateDeeplGlobalState",Wu="immersiveTranslateBingGlobalState",Qt={};for(let e of h9)Qt[e.code]=e.messages;var $a="Immersive Translate",Z="immersive-translate";var be="immersiveTranslate",Ku="759003177173-mfm15s5nd77vfmo6e7lanof1emnanf0e.apps.googleusercontent.com",Ta=be+"GoogleAccessToken",Ao=be+"AuthFlow",$u="immersive-translate-config-latest.json",B0=be+"AuthState",Gu=be+"IframeMessage",k8=be+"WaitForRateLimit",Sg=be+"DocumentMessageAsk",_t=be+"DocumentMessageTellThirdParty",Vu=be+"showError",Ag=be+"DocumentMessageThirdPartyTell",Dg=be+"DocumentMessageEventUpload",Lg=be+"DocumentMessageHandler",b9=`${be}Container`,Mg=`${be}SpecifiedContainer`,aa="buildinConfig",Sr="localConfig",Do="openOptionsPage",R0="openAboutPage",Pg="translateLocalPdfFile";var Lo="openEbookViewer",Mo="openEbookBuilder";var Yu=`${be}PageTranslatedStatus`,S8=`${be}PageUrlChanged`,xa=`${be}ReceiveCommand`,Fg=be+"LastUseMouseHoverTime",I0=be+"LastUseInputTime",Ln=be+"LastUseManualTranslatePageTime",A8=`${be}PopupReceiveMessage`,y9="immersivetranslate.com",T9="config.immersivetranslate.com",D8=`https://${y9}/`,Ea=`https://${T9}/default_config.json`,L8=`${be}Mark`,Po="immersiveTranslateEffect",Zt=`${be}Root`,M8=`data-${Z}-effect`,Kn=`data-${Z}-translation-element-mark`,_g=`${be}TranslationElementMark`,P8=`${be}TranslatedMark`,F8=`${be}ParagraphId`,Bg=`${be}LoadingId`,O0=`data-${Z}-loading-id`,Rg=`${be}ErrorId`,Ju=`data-${Z}-error-id`,x9=`${be}AtomicBlockMark`,Ig=`${be}ExcludeMark`,_8=`data-${Z}-exclude-mark`,E9=`${be}StayOriginalMark`,B8=`${be}PreWhitespaceMark`,Qu=`${be}InlineMark`,Og=`${be}BlockMark`,R8=`${be}Left`,I8=`${be}Right`,O8=`${be}Width`,N8=`${be}Height`,U8=`${be}Top`,j8=`${be}FontSize`,Ng="lastRunTime",z8=`${be}GlobalStyleMark`,Ga=["@","#"],Zu=" --- ",Ug=` +`,un=`${Z}-target-wrapper`,H8=`${Z}-pdf-target-container`,jg=`${Z}-target-inner`,q8=`${Z}-source-wrapper`,N0=`${Z}-target-translation-block-wrapper`,W8=`${Z}-root-translation-theme`,Ar=`${be}RootTranslationTheme`,zg=`${Z}-target-translation-vertical-block-wrapper`,K8=`${Z}-target-translation-pdf-block-wrapper`,Hg=`${Z}-target-translation-pre-whitespace`,U0=`${Z}-target-translation-inline-wrapper`,j0=["none","dashed","underline","dashedBorder","solidBorder","mask","opacity","dotted","dividingLine","highlight","marker","marker2","blockquote","weakening","grey","paper","italic","bold","thinDashed","wavy","nativeDotted","nativeDashed","nativeUnderline"],Fo={underline:[{name:"borderColor",required:!1,type:"color"}],nativeUnderline:[{name:"borderColor",required:!1,type:"color"}],nativeDashed:[{name:"borderColor",required:!1,type:"color"}],nativeDotted:[{name:"borderColor",required:!1,type:"color"}],dotted:[{name:"borderColor",required:!1,type:"color"}],dividingLine:[{name:"borderColor",required:!1,type:"color"}],highlight:[{name:"backgroundColor",required:!1,type:"color"}],marker:[{name:"backgroundColor",required:!1,type:"color"}],dashed:[{name:"borderColor",required:!1,type:"color"}],blockquote:[{name:"borderColor",required:!1,type:"color"}],thinDashed:[{name:"borderColor",required:!1,type:"color"}],dashedBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],solidBorder:[{name:"borderRadius",required:!1,type:"number",default:"0"},{name:"borderColor",required:!1,type:"color"}],marker2:[{name:"backgroundColor",required:!1,type:"color"}],wavy:[{name:"borderColor",required:!1,type:"color"}],opacity:[{name:"opacity",required:!1,type:"number",default:10}]},sn=["auto","zh-CN","zh-TW","en","ja","ko","es","de","fr","pt","ru","ar","it","ms","id","vi","af","th","ur","yue","bo","wyw","am","az","be","bg","bn","bs","ca","ceb","co","cs","cy","da","el","eo","et","eu","fa","fi","fil","fj","fy","ga","gd","gl","gu","ha","haw","he","hi","hmn","hr","ht","hu","hy","ig","is","jw","ka","kk","km","kn","ku","ky","la","lb","lo","lt","lv","mg","mi","mk","ml","mn","mr","mt","mww","my","ne","nl","no","ny","otq","pa","pl","ps","ro","sa","sd","si","sk","sl","sm","sn","so","sq","sr","sr-Cyrl","sr-Latn","st","su","sv","sw","ta","te","tg","tlh","tlh-Qaak","to","tr","ty","ug","uk","uz","xh","yi","yo","yua","zu"],qg={af:"Afrikaans",am:"Amharic",ar:"Arabic",auto:"Detect Language",az:"Azerbaijani",be:"Belarusian",bg:"Bulgarian",tn:"Zana",bn:"Bengali",bs:"Bosnian",bo:"Tibetan",ca:"Catalan",ceb:"Cebuano",co:"Corsican",cs:"Czech",cy:"Welsh",da:"Danish",de:"German",el:"Greek",en:"English",eo:"Esperanto",es:"Spanish",et:"Estonian",eu:"Basque",sa:"Sanskrit",fa:"Persian",fi:"Finnish",fil:"Filipino",fj:"Fijian",fr:"French",fy:"Frisian",ga:"Irish",gd:"Scottish Gaelic",gl:"Galician",gu:"Gujarati",ha:"Hausa",haw:"Hawaiian",he:"Hebrew",hi:"Hindi",hmn:"Hmong",hr:"Croatian",ht:"Haitian Creole",hu:"Hungarian",hy:"Armenian",id:"Indonesian",ig:"Igbo",is:"Icelandic",it:"Italian",ja:"Japanese",jw:"Javanese",ka:"Georgian",kk:"Kazakh",km:"Khmer",kn:"Kannada",ko:"Korean",ku:"Kurdish",ky:"Kyrgyz",la:"Latin",lb:"Luxembourgish",lo:"Lao",lt:"Lithuanian",lv:"Latvian",mg:"Malagasy",mi:"Maori",mk:"Macedonian",ml:"Malayalam",mn:"Mongolian",mr:"Marathi",ms:"Malay",mt:"Maltese",mww:"Hmong Daw",my:"Burmese",ne:"Nepali",nl:"Dutch",no:"Norwegian",ny:"Chichewa",otq:"Quer\xE9taro Otomi",pa:"Punjabi",pl:"Polish",ps:"Pashto",pt:"Portuguese",ro:"Romanian",ru:"Russian",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",sm:"Samoan",sn:"Shona",so:"Somali",sq:"Albanian",sr:"Serbian","sr-Cyrl":"Serbian (Cyrillic)","sr-Latn":"Serbian (Latin)",st:"Sesotho",su:"Sundanese",sv:"Swedish",sw:"Swahili",ta:"Tamil",te:"Telugu",tg:"Tajik",th:"Thai",tlh:"Klingon","tlh-Qaak":"Klingon (piqaD)",to:"Tongan",tr:"Turkish",ty:"Tahitian",ug:"Uyghur",uk:"Ukrainian",ur:"Urdu",uz:"Uzbek",vi:"Vietnamese",wyw:"Classical Chinese",xh:"Xhosa",placeholder:"Please Select",yi:"Yiddish",yo:"Yoruba",yua:"Yucatec Maya",yue:"Cantonese (Traditional)","zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese",zu:"Zulu","":"All Languages"},Wg={placeholder:"\u8BF7\u9009\u62E9",af:"\u5357\u975E\u8377\u5170\u8BED",am:"\u963F\u59C6\u54C8\u62C9\u8BED",ar:"\u963F\u62C9\u4F2F\u8BED",auto:"\u81EA\u52A8\u68C0\u6D4B\u8BED\u8A00",az:"\u963F\u585E\u62DC\u7586\u8BED",be:"\u767D\u4FC4\u7F57\u65AF\u8BED",bg:"\u4FDD\u52A0\u5229\u4E9A\u8BED",tn:"\u8D5E\u7EB3\u8BED",bn:"\u5B5F\u52A0\u62C9\u8BED",bs:"\u6CE2\u65AF\u5C3C\u4E9A\u8BED",bo:"\u85CF\u8BED",ca:"\u52A0\u6CF0\u7F57\u5C3C\u4E9A\u8BED",ceb:"\u5BBF\u52A1\u8BED",co:"\u79D1\u897F\u5609\u8BED",cs:"\u6377\u514B\u8BED",cy:"\u5A01\u5C14\u58EB\u8BED",da:"\u4E39\u9EA6\u8BED",de:"\u5FB7\u8BED",el:"\u5E0C\u814A\u8BED",en:"\u82F1\u8BED",eo:"\u4E16\u754C\u8BED",es:"\u897F\u73ED\u7259\u8BED",et:"\u7231\u6C99\u5C3C\u4E9A\u8BED",eu:"\u5DF4\u65AF\u514B\u8BED",sa:"\u68B5\u8BED",fa:"\u6CE2\u65AF\u8BED",fi:"\u82AC\u5170\u8BED",fil:"\u83F2\u5F8B\u5BBE\u8BED",fj:"\u6590\u6D4E\u8BED",fr:"\u6CD5\u8BED",fy:"\u5F17\u91CC\u65AF\u5170\u8BED",ga:"\u7231\u5C14\u5170\u8BED",gd:"\u82CF\u683C\u5170\u76D6\u5C14\u8BED",gl:"\u52A0\u5229\u897F\u4E9A\u8BED",gu:"\u53E4\u5409\u62C9\u7279\u8BED",ha:"\u8C6A\u8428\u8BED",haw:"\u590F\u5A01\u5937\u8BED",he:"\u5E0C\u4F2F\u6765\u8BED",hi:"\u5370\u5730\u8BED",hmn:"\u82D7\u8BED",hr:"\u514B\u7F57\u5730\u4E9A\u8BED",ht:"\u6D77\u5730\u514B\u91CC\u5965\u5C14\u8BED",hu:"\u5308\u7259\u5229\u8BED",hy:"\u4E9A\u7F8E\u5C3C\u4E9A\u8BED",id:"\u5370\u5EA6\u5C3C\u897F\u4E9A\u8BED",ig:"\u4F0A\u535A\u8BED",is:"\u51B0\u5C9B\u8BED",it:"\u610F\u5927\u5229\u8BED",ja:"\u65E5\u672C\u8BED",jw:"\u722A\u54C7\u8BED",ka:"\u683C\u9C81\u5409\u4E9A\u8BED",kk:"\u54C8\u8428\u514B\u8BED",km:"\u9AD8\u68C9\u8BED",kn:"\u5361\u7EB3\u8FBE\u8BED",ko:"\u97E9\u8BED",ku:"\u5E93\u5C14\u5FB7\u8BED",ky:"\u5409\u5C14\u5409\u65AF\u8BED",la:"\u62C9\u4E01\u8BED",lb:"\u5362\u68EE\u5821\u8BED",lo:"\u8001\u631D\u8BED",lt:"\u7ACB\u9676\u5B9B\u8BED",lv:"\u62C9\u8131\u7EF4\u4E9A\u8BED",mg:"\u9A6C\u62C9\u52A0\u65AF\u8BED",mi:"\u6BDB\u5229\u8BED",mk:"\u9A6C\u5176\u987F\u8BED",ml:"\u9A6C\u62C9\u96C5\u62C9\u59C6\u8BED",mn:"\u8499\u53E4\u8BED",mr:"\u9A6C\u62C9\u5730\u8BED",ms:"\u9A6C\u6765\u8BED",mt:"\u9A6C\u8033\u4ED6\u8BED",mww:"\u767D\u82D7\u8BED",my:"\u7F05\u7538\u8BED",ne:"\u5C3C\u6CCA\u5C14\u8BED",nl:"\u8377\u5170\u8BED",no:"\u632A\u5A01\u8BED",ny:"\u9F50\u5207\u74E6\u8BED\uFF08\u5C3C\u626C\u8D3E\u8BED\uFF09",otq:"\u514B\u96F7\u5854\u7F57\u5965\u6258\u7C73\u8BED",pa:"\u65C1\u906E\u666E\u8BED",pl:"\u6CE2\u5170\u8BED",ps:"\u666E\u4EC0\u56FE\u8BED",pt:"\u8461\u8404\u7259\u8BED",ro:"\u7F57\u9A6C\u5C3C\u4E9A\u8BED",ru:"\u4FC4\u8BED",sd:"\u4FE1\u5FB7\u8BED",si:"\u50E7\u4F3D\u7F57\u8BED",sk:"\u65AF\u6D1B\u4F10\u514B\u8BED",sl:"\u65AF\u6D1B\u6587\u5C3C\u4E9A\u8BED",sm:"\u8428\u6469\u4E9A\u8BED",sn:"\u4FEE\u7EB3\u8BED",so:"\u7D22\u9A6C\u91CC\u8BED",sq:"\u963F\u5C14\u5DF4\u5C3C\u4E9A\u8BED",sr:"\u585E\u5C14\u7EF4\u4E9A\u8BED","sr-Cyrl":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u897F\u91CC\u5C14\u6587\uFF09","sr-Latn":"\u585E\u5C14\u7EF4\u4E9A\u8BED\uFF08\u62C9\u4E01\u6587\uFF09",st:"\u585E\u7D22\u6258\u8BED",su:"\u5DFD\u4ED6\u8BED",sv:"\u745E\u5178\u8BED",sw:"\u65AF\u74E6\u5E0C\u91CC\u8BED",ta:"\u6CF0\u7C73\u5C14\u8BED",te:"\u6CF0\u5362\u56FA\u8BED",tg:"\u5854\u5409\u514B\u8BED",th:"\u6CF0\u8BED",tlh:"\u514B\u6797\u8D21\u8BED","tlh-Qaak":"\u514B\u6797\u8D21\u8BED\uFF08piqaD\uFF09",to:"\u6C64\u52A0\u8BED",tr:"\u571F\u8033\u5176\u8BED",ty:"\u5854\u5E0C\u63D0\u8BED",ug:"\u7EF4\u543E\u5C14\u8BED",uk:"\u4E4C\u514B\u5170\u8BED",ur:"\u4E4C\u5C14\u90FD\u8BED",uz:"\u4E4C\u5179\u522B\u514B\u8BED",vi:"\u8D8A\u5357\u8BED",wyw:"\u6587\u8A00\u6587",xh:"\u73ED\u56FE\u8BED",yi:"\u610F\u7B2C\u7EEA\u8BED",yo:"\u7EA6\u9C81\u5DF4\u8BED",yua:"\u5C24\u5361\u5766\u739B\u96C5\u8BED",yue:"\u7CA4\u8BED","zh-CN":"\u7B80\u4F53\u4E2D\u6587","zh-TW":"\u7E41\u4F53\u4E2D\u6587",zu:"\u7956\u9C81\u8BED","":"\u6240\u6709\u8BED\u8A00"},Kg={placeholder:"\u8ACB\u9078\u64C7",af:"\u963F\u975E\u5229\u5361\u8A9E",am:"\u963F\u59C6\u54C8\u62C9\u8A9E",ar:"\u963F\u62C9\u4F2F\u8A9E",auto:"\u81EA\u52D5\u6AA2\u6E2C\u8A9E\u8A00",az:"\u963F\u585E\u62DC\u7586\u8A9E",be:"\u767D\u4FC4\u7F85\u65AF\u8A9E",bg:"\u4FDD\u52A0\u5229\u4E9E\u8A9E",tn:"\u8D0A\u7D0D\u8A9E",bn:"\u5B5F\u52A0\u62C9\u8A9E",bs:"\u6CE2\u65AF\u5C3C\u4E9E\u8A9E",bo:"\u85CF\u8A9E",ca:"\u52A0\u6CF0\u862D\u8A9E",ceb:"\u5BBF\u9727\u8A9E",co:"\u79D1\u897F\u5609\u8A9E",cs:"\u6377\u514B\u8A9E",cy:"\u5A01\u723E\u65AF\u8A9E",da:"\u4E39\u9EA5\u8A9E",de:"\u5FB7\u8A9E",el:"\u5E0C\u81D8\u8A9E",en:"\u82F1\u8A9E",eo:"\u4E16\u754C\u8A9E",es:"\u897F\u73ED\u7259\u8A9E",et:"\u611B\u6C99\u5C3C\u4E9E\u8A9E",eu:"\u5DF4\u65AF\u514B\u8A9E",sa:"\u68B5\u8A9E",fa:"\u6CE2\u65AF\u8A9E",fi:"\u82AC\u862D\u8A9E",fil:"\u83F2\u5F8B\u8CD3\u8A9E",fj:"\u6590\u6FDF\u8A9E",fr:"\u6CD5\u8A9E",fy:"\u5F17\u91CC\u897F\u8A9E",ga:"\u611B\u723E\u862D\u8A9E",gd:"\u8607\u683C\u862D\u84CB\u723E\u8A9E",gl:"\u52A0\u5229\u897F\u4E9E\u8A9E",gu:"\u53E4\u5409\u62C9\u7279\u8A9E",ha:"\u8C6A\u6492\u8A9E",haw:"\u590F\u5A01\u5937\u8A9E",he:"\u5E0C\u4F2F\u4F86\u8A9E",hi:"\u5370\u5730\u8A9E",hmn:"\u82D7\u8A9E",hr:"\u514B\u7F85\u5730\u4E9E\u8A9E",ht:"\u6D77\u5730\u514B\u91CC\u5967\u723E\u8A9E",hu:"\u5308\u7259\u5229\u8A9E",hy:"\u4E9E\u7F8E\u5C3C\u4E9E\u8A9E",id:"\u5370\u5C3C\u8A9E",ig:"\u4F0A\u535A\u8A9E",is:"\u51B0\u5CF6\u8A9E",it:"\u610F\u5927\u5229\u8A9E",ja:"\u65E5\u8A9E",jw:"\u722A\u54C7\u8A9E",ka:"\u55AC\u6CBB\u4E9E\u8A9E",kk:"\u54C8\u85A9\u514B\u8A9E",km:"\u9AD8\u68C9\u8A9E",kn:"\u574E\u7D0D\u9054\u8A9E",ko:"\u97D3\u8A9E",ku:"\u5EAB\u723E\u5FB7\u8A9E",ky:"\u5409\u723E\u5409\u65AF\u8A9E",la:"\u62C9\u4E01\u8A9E",lb:"\u76E7\u68EE\u5821\u8A9E",lo:"\u8001\u64BE\u8A9E",lt:"\u7ACB\u9676\u5B9B\u8A9E",lv:"\u62C9\u812B\u7DAD\u4E9E\u8A9E",mg:"\u99AC\u62C9\u52A0\u65AF\u8A9E",mi:"\u6BDB\u5229\u8A9E",mk:"\u99AC\u5176\u9813\u8A9E",ml:"\u99AC\u62C9\u96C5\u62C9\u59C6\u8A9E",mn:"\u8499\u53E4\u8A9E",mr:"\u99AC\u62C9\u5730\u8A9E",ms:"\u99AC\u4F86\u8A9E",mt:"\u99AC\u723E\u4ED6\u8A9E",mww:"\u767D\u82D7\u8A9E",my:"\u7DEC\u7538\u8A9E",ne:"\u5C3C\u6CCA\u723E\u8A9E",nl:"\u8377\u862D\u8A9E",no:"\u632A\u5A01\u8A9E",ny:"\u9F4A\u5207\u74E6\u8A9E",otq:"\u594E\u96F7\u5854\u7F85\u5967\u6258\u7C73\u8A9E",pa:"\u65C1\u906E\u666E\u8A9E",pl:"\u6CE2\u862D\u8A9E",ps:"\u666E\u4EC0\u5716\u8A9E",pt:"\u8461\u8404\u7259\u8A9E",ro:"\u7F85\u99AC\u5C3C\u4E9E\u8A9E",ru:"\u4FC4\u8A9E",sd:"\u4FE1\u5FB7\u8A9E",si:"\u50E7\u4F3D\u7F85\u8A9E",sk:"\u65AF\u6D1B\u4F10\u514B\u8A9E",sl:"\u65AF\u6D1B\u7DAD\u5C3C\u4E9E\u8A9E",sm:"\u85A9\u6469\u4E9E\u8A9E",sn:"\u7D39\u7D0D\u8A9E",so:"\u7D22\u99AC\u91CC\u8A9E",sq:"\u963F\u723E\u5DF4\u5C3C\u4E9E\u8A9E",sr:"\u585E\u723E\u7DAD\u4E9E\u8A9E","sr-Cyrl":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u897F\u91CC\u723E\u6587)","sr-Latn":"\u585E\u723E\u7DAD\u4E9E\u8A9E (\u62C9\u4E01\u6587)",st:"\u585E\u7D22\u6258\u8A9E",su:"\u5DFD\u4ED6\u8A9E",sv:"\u745E\u5178\u8A9E",sw:"\u65AF\u74E6\u5E0C\u91CC\u8A9E",ta:"\u6CF0\u7C73\u723E\u8A9E",te:"\u6CF0\u76E7\u56FA\u8A9E",tg:"\u5854\u5409\u514B\u8A9E",th:"\u6CF0\u8A9E",tlh:"\u514B\u6797\u8CA2\u8A9E","tlh-Qaak":"\u514B\u6797\u8CA2\u8A9E (piqaD)",to:"\u6771\u52A0\u8A9E",tr:"\u571F\u8033\u5176\u8A9E",ty:"\u5854\u5E0C\u63D0\u8A9E",ug:"\u7DAD\u543E\u723E\u8A9E",uk:"\u70CF\u514B\u862D\u8A9E",ur:"\u70CF\u723E\u90FD\u8A9E",uz:"\u70CF\u8332\u5225\u514B\u8A9E",vi:"\u8D8A\u5357\u8A9E",wyw:"\u6587\u8A00\u6587",xh:"\u79D1\u85A9\u8A9E",yi:"\u610F\u7B2C\u7DD2\u8A9E",yo:"\u7D04\u9B6F\u5DF4\u8A9E",yua:"\u5C24\u52A0\u6566\u99AC\u96C5\u8A9E",yue:"\u5EE3\u6771\u8A71 (\u50B3\u7D71)","zh-CN":"\u7C21\u9AD4\u4E2D\u6587","zh-TW":"\u7E41\u9AD4\u4E2D\u6587",zu:"\u7956\u9B6F\u8A9E","":"\u6240\u6709\u8A9E\u8A00"};var $g=["toggleTranslatePage","toggleTranslateTheWholePage","toggleOnlyTransation","toggleTranslateToThePageEndImmediately","toggleTranslateTheMainPage","toggleTranslationMask"],Gg=["https://immersive-translate.owenyoung.com/options/","https://immersive-translate.owenyoung.com/auth-done/","https://dash.immersivetranslate.com/","https://dash.immersivetranslate.com/auth-done/","http://localhost:8000/dist/userscript/options/","http://localhost:8000/auth-done/","http://192.168.50.9:8000/dist/userscript/options/","http://192.168.31.51:8000/dist/userscript/options/","https://www.deepl.com/translator","translate.google.com","http://localhost:8000/options/","http://192.168.50.9:8000/options/","http://192.168.31.51:8000/options/"],Vg="Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post.",z0="\u957F\u591C\u5C06\u81F3\uFF0C\u6211\u4ECE\u4ECA\u5F00\u59CB\u5B88\u671B\uFF0C\u81F3\u6B7B\u65B9\u4F11\u3002\u6211\u5C06\u4E0D\u5A36\u59BB\u3001\u4E0D\u5C01\u5730\u3001\u4E0D\u751F\u5B50\u3002\u6211\u5C06\u4E0D\u6234\u5B9D\u51A0\uFF0C\u4E0D\u4E89\u8363\u5BA0\u3002\u6211\u5C06\u5C3D\u5FE0\u804C\u5B88\uFF0C\u751F\u6B7B\u4E8E\u65AF\u3002",Xu="zh-CN",ei="https://immersivetranslate.com/docs/communities/",wg=[{type:"select",name:"codename",labelKey:"field.translationEngine",default:"youdao",required:!1,options:[{label:"translationServices.google",value:"google"},{label:"translationServices.deepl",value:"deepl"},{label:"translationServices.youdao",value:"youdao"},{label:"translationServices.tencent",value:"tencent"},{label:"translationServices.aliyun",value:"aliyun"},{label:"translationServices.baidu",value:"baidu"},{label:"translationServices.caiyun",value:"caiyun"},{label:"translationServices.wechat",value:"wechat"},{label:"translationServices.ibm",value:"ibm"},{label:"translationServices.azure",value:"azure"},{label:"translationServices.aws",value:"aws"}]}],Mn={bing:{name:"\u5FAE\u8F6F\u7FFB\u8BD1",homepage:"https://www.bing.com/translator"},google:{name:"Google",homepage:"https://translate.google.com/"},deepl:{name:"DeepL",homepage:"https://www.deepl.com/translator",docUrl:"https://immersivetranslate.com/docs/services/deepL/",providers:[{name:"pro",nameKey:"deepLProName",descriptionKey:"deepLProDescription",descriptionKeyForNormal:"deeplProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"deepLCustomName",descriptionKey:"deepLCustomDescription",descriptionLink1:"https://www.deepl.com/translator",descriptionLink2:"https://immersivetranslate.com/docs/services/deepL/"}],allProps:[{name:"authKey",providers:["custom"],label:"Auth Key",required:!0,type:"password"}]},openai:{name:"Open AI",homepage:"https://openai.com/api/",docUrl:"https://immersivetranslate.com/docs/services/openai/",providers:[{name:"pro",nameKey:"openaiProName",descriptionKey:"openaiProDescription",descriptionKeyForNormal:"openaiProDescriptionForNormal",descriptionLink1:"https://immersivetranslate.com/pricing"},{name:"custom",nameKey:"openaiCustomName",descriptionKey:"openaiCustomDescription",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/"}],allProps:[{name:"APIKEY",providers:["custom"],required:!0,type:"password"},{name:"model",labelKey:"field.model",descriptionKey:"description.model",required:!1,type:"openai-model-select",default:"gpt-3.5-turbo-0613",options:[{providers:["custom","pro"],label:"gpt-3.5-turbo",value:"gpt-3.5-turbo"},{providers:["custom","pro"],label:"gpt-3.5-turbo-0613",value:"gpt-3.5-turbo-0613"},{providers:["custom"],label:"gpt-4",value:"gpt-4"}]},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.limitPerSecond",descriptionLink1:"https://immersivetranslate.com/docs/services/openai/",type:"number",default:10},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0},{name:"apiUrl",labelKey:"field.apiUrl",required:!1,type:"text",default:"https://api.openai.com/v1/chat/completions",descriptionKey:"description.apiUrl",optional:!0},{name:"systemPrompt",label:"System Prompt",required:!1,descriptionKey:"description.systemPrompt",type:"text",optional:!0,default:"You are a translation engine, you can only translate text and cannot interpret it, and do not explain."},{name:"prompt",label:"Prompt",required:!1,descriptionKey:"description.prompt",type:"textarea",default:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`,optional:!0}]},transmart:{name:"Transmart",homepage:"https://transmart.qq.com/"},chatgpt:{name:"ChatGPT Web(3.5 mobile)",homepage:"https://chat.openai.com",beta:!0},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:"https://immersivetranslate.com/docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text"},{name:"appSecret",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/",docUrl:"https://immersivetranslate.com/docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text"},{name:"secretKey",required:!0,type:"password"}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:"https://immersivetranslate.com/docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text"},{name:"AccessKeySecret",required:!0,type:"password"},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:"https://immersivetranslate.com/docs/services/azure/",allProps:[{name:"region",required:!0,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password"}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:"https://immersivetranslate.com/docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text"},{name:"key",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:"https://immersivetranslate.com/docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text"},{name:"secretAccessKey",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:"https://immersivetranslate.com/docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password"}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:"https://immersivetranslate.com/docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:Ka,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:"https://immersivetranslate.com/docs/services/openL/",allProps:[...vg,{type:"password",name:"apikey",required:!0}],props:vg},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",alpha:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:"https://immersivetranslate.com/docs/services/niu",allProps:[{name:"APIKEY",required:!0,type:"password"}]}},ni={type:be+"ChildFrameToRootFrameIdentifier"},Ca=["Alt","Ctrl","Shift","Auto","Off","OtherCustom","Other"],ai=[{key:"/"},{key:"="},{key:";"},{key:","},{key:"."},{key:":"},{key:"space",labelKey:"spaceKey",skipForStarting:!0},{key:"none",labelKey:"noneKey",skipForTrailing:!0}],_o="user_from_plugin",Tt="user_info",Bo=na()||aa()?"https://api2.immersivetranslate.com":"https://test-api2.immersivetranslate.com",Vg=na()||aa()?"https://immersivetranslate.com/accounts/login?from=plugin":"https://test.immersivetranslate.com/accounts/login?from=plugin",kr=na()||aa()?"https://immersivetranslate.com/profile":"https://test.immersivetranslate.com/profile",$a=na()||aa()?"https://immersivetranslate.com/pricing":"https://test.immersivetranslate.com/pricing",Yg=$a+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",H0=$a+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",Jg=$a+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal";var Sr=console,q0=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),a=Math.round(n-this.#e),r=mn.green;a>1e4?r=mn.red:a>1e3&&(r=mn.yellow),Sr.debug(mn.dim(Wa+" TIMING:"),t,"in",r(a+"ms")),this.#e=n}},Ro=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&Sr.log(mn.dim(Wa+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&Sr.log(mn.green(Wa+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&Sr.warn(mn.yellow(Wa+" WARN:"),...t)}error(...t){this.#e<=3&&Sr.error(mn.red(Wa+" ERROR:"),...t)}fatal(...t){this.#e<=4&&Sr.error(mn.red(Wa+" FATAL:"),...t)}timing(){return this.level===0?new q0:{reset:()=>{},stop:()=>{}}}},j=new Ro;h();function mt(){try{return globalThis.self!==globalThis.top}catch{return!0}}var ri=!1,E9=me();function Qg(e,t){let n=[];for(let a of t){let r=e.querySelectorAll(a);for(let o of r)n.push(o)}return n}function C9(e,t){let n=function(o){return o.nodeType===Node.ELEMENT_NODE||o.nodeType===Node.TEXT_NODE?o.nodeType===Node.ELEMENT_NODE&&Zg(o,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),r=!0;for(;a.nextNode();){let o=a.currentNode;if(o.nodeType===Node.ELEMENT_NODE){if(va(o,Zu)){if(r===!0)return!0;continue}if(Io(o.nodeName,t.inlineTags))return!0;if(!W0(o,t))return!1}}return!0}function K0(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(Io(e.nodeName,n)||W0(e,t)){if(va(e,Ig)||Io(e.nodeName,["BR"]))return!1;if(va(e,Zu))return!0;if(W0(e,t)){let a=globalThis.getComputedStyle(e);if(a.display==="block"||a.display==="flex")return!1}return C9(e,t)}else return va(e,Zu);return!1}function Zg(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&va(e,Rg,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&va(e,Lg))return!1;let{stayOriginalTags:a,excludeTags:r}=t,o=[];return n&&r&&r.length>0?o=r||[]:o=r.filter(u=>!a.includes(u)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||Io(e.nodeName,o))}function oi(e,t,n){let a=e.trim();return a.length>=t||a.split(" ").filter(u=>u.trim()!=="").length>=n||!em(a)&&a.length>=n}function Xg(e,t,n){let a=e.trim();if(a.length<=t)return!0;if(em(a)){if(a.split(" ").length<=n)return!0}else if(a.length<=n)return!0;return!1}function em(e){for(let t=0;t127)return!1;return!0}function tm(e){if(e&&e.includes("://"))try{return new URL(e),!0}catch{return!1}else return!1}function nm(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function am(e){return e?/^[-+]?[0-9]*\.?[0-9]+%?$/.test(e):!1}function rm(e){return!!(e&&e.startsWith("#")&&e.indexOf(" ")===-1)}function om(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function va(e,t,n=!1){return $0(e,t,"1",n)}function $0(e,t,n,a=!1){return ri&&!a?e[Zt]?!!(e[Zt]&&e[Zt][t]===n):!1:e.dataset[t]===n}function Ar(e){return(e.innerText||e.textContent||"").trim()}function G0(e){let t=e.querySelectorAll("iframe"),n="";for(let a=0;a2e3))break}return n}function ui(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function pt(e,t,n,a=!1,r=!1){e.isContentEditable&&!r||(ri&&!a?(e.dataset[Po]||(e.dataset[Po]="1"),e[Zt]||(e[Zt]={}),e[Zt][t]||(e[Zt][t]=n)):(e.dataset[Po]||(e.dataset[Po]="1"),e.dataset[t]!==n&&(e.dataset[t]=n)))}function ii(e,t,n=!1){if(ri&&!n){if(!e[Zt]||!e[Zt][t])return;delete e[Zt][t]}else delete e.dataset[t]}function Dr(e,t,n=!1){return ri&&!n?!e[Zt]||!e[Zt][t]?void 0:e[Zt][t]:e.dataset[t]}function W0(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!Io(e.nodeName,n)}function Lr(e){let{config:t}=e,n=Ka;return t.translationServices[e.translationService]&&t.translationServices[e.translationService].placeholderDelimiters&&(n=t.translationServices[e.translationService].placeholderDelimiters),n}function At(){if(!globalThis||!globalThis.location)return"https://example.com";if(!mt())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let a="";try{a=globalThis.parent.location.href}catch{}return a||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function Ga(e,t,n){if(e instanceof ShadowRoot){try{e.appendChild(document.createElement("style")).textContent=t}catch(a){j.warn("injectCSS failed, rootDocument"+a?.message,e)}return}if(e&&e.head&&e.head.appendChild){let a=e.createElement("style");if(n){let r=e.querySelector(`style[data-id="${n}"]`);r&&r.remove(),a.dataset.id=n}a.textContent=t,e.head.appendChild(a)}else if(e){let a=document.createElement("head"),r=document.createElement("style");r.textContent=t,a.appendChild(r),e.appendChild(a)}else j.warn("injectCSS failed, rootDocument does not have head node",e)}function Mr(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(E9){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!document.querySelector("meta[name='immersive-translate-ebook-viewer']")||!t.startsWith("blob:http");return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function Io(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function um(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),a=parseInt(t.substring(2,4),16),r=parseInt(t.substring(4,6),16);return{r:n,g:a,b:r}}function im(e,t,n,a){if(a.document.caretPositionFromPoint){let r=a.document.caretPositionFromPoint(e,t);if(r){let o=a.document.createRange(),u=r.offsetNode;if(!u||u.nodeType!==Node.TEXT_NODE||Zg(u,n,!0))return null;try{o.setStart(u,r.offset),o.setEnd(u,r.offset)}catch(i){return j.warn("getRangeFromPoint error",i),null}return o}return null}else return a.document.caretRangeFromPoint?a.document.caretRangeFromPoint(e,t):null}function sm(e,t,n){let a=0,r=(o,u,i,s)=>{if(++a>100||s===o)return o;let c=o.shadowRoot;if(!c||typeof c.elementFromPoint!="function")return o;let l=c.elementFromPoint(u,i);return l?r(l,u,i,o):o};return r(e,t,n)}h();function Pr(e,t,n,a){let r=t,o=Fo[r]||[],u="";e&&o&&o.length>0&&o.forEach(c=>{let{name:l}=c;if(e&&n&&n[l]){let m=n[l];if(["borderRadius"].includes(l)&&(m+="px"),u+=`--immersive-translate-theme-${r}-${l}: ${m}; -`,t==="marker"&&l==="backgroundColor"&&typeof m=="string"){let{r:p,g:f,b:g}=um(m);u+=`--immersive-translate-theme-${r}-${l}-rgb: ${p}, ${f}, ${g}; +{{text}}`,optional:!0}]},transmart:{name:"Transmart",homepage:"https://transmart.qq.com/"},chatgpt:{name:"ChatGPT Web(3.5 mobile)",homepage:"https://chat.openai.com",beta:!0},youdao:{name:"Youdao",homepage:"https://youdao.com/",docUrl:"https://immersivetranslate.com/docs/services/youdao/",allProps:[{name:"appId",required:!0,type:"text"},{name:"appSecret",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:200,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0},{name:"vocabId",required:!1,labelKey:"field.vocabId",descriptionKey:"description.vocabId",type:"text",default:"",optional:!0}]},tencent:{name:"Tencent",homepage:"https://fanyi.qq.com/",docUrl:"https://immersivetranslate.com/docs/services/tencent/",allProps:[{name:"secretId",required:!0,type:"text"},{name:"secretKey",required:!0,type:"password"}]},aliyun:{name:"Aliyun",homepage:"https://translate.alibaba.com/",docUrl:"https://immersivetranslate.com/docs/services/aliyun/",allProps:[{name:"AccessKeyID",required:!0,type:"text"},{name:"AccessKeySecret",required:!0,type:"password"},{name:"scene",labelKey:"field.scene",descriptionKey:"description.scene",descriptionLink1:"https://help.aliyun.com/document_detail/158267.html",required:!1,optional:!0,type:"text",default:"general"}]},azure:{name:"azure",homepage:"https://learn.microsoft.com/en-us/azure/cognitive-services/translator/text-translation-overview",docUrl:"https://immersivetranslate.com/docs/services/azure/",allProps:[{name:"region",required:!0,default:"eastasia",type:"text"},{name:"APIKEY",required:!0,type:"password"}]},papago:{name:"Papago",homepage:"https://translate.google.com/",canary:!0},baidu:{name:"Baidu",homepage:"https://fanyi.baidu.com/",docUrl:"https://immersivetranslate.com/docs/services/baidu/",allProps:[{name:"appid",required:!0,type:"text"},{name:"key",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:1,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0},{name:"domain",required:!1,labelKey:"field.domain",descriptionKey:"description.domain",descriptionLink1:"https://fanyi.youdao.com/openapi/",type:"text",default:"general",optional:!0}]},volc:{name:"Volc",homepage:"https://www.volcengine.com/",docUrl:"https://immersivetranslate.com/docs/services/volcano/",allProps:[{name:"accessKeyId",required:!0,type:"text"},{name:"secretAccessKey",required:!0,type:"password"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1800,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:8,optional:!0}]},caiyun:{name:"Caiyun",homepage:"https://fanyi.caiyunapp.com/",docUrl:"https://immersivetranslate.com/docs/services/caiyun/",allProps:[{name:"token",required:!0,type:"password"}]},cai:{name:"Cai",homepage:"https://fanyi.caiyunapp.com/",alpha:!0},custom:{name:"Custom",beta:!0,homepage:"https://immersivetranslate.com/docs/services/custom/",titleKey:"description.custom",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"langs",required:!1,labelKey:"field.langs",type:"textarea",default:"zh-CN,en",optional:!0},{name:"placeholderDelimiters",required:!1,labelKey:"field.placeholderDelimiters",type:"text",default:Ga,optional:!0},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},mock:{name:"Mock",homepage:"https://www.google.com"},mock2:{name:"Mock2",homepage:"https://www.google.com"},tenAlpha:{name:"TenAlpha",homepage:"https://fanyi.qq.com/",alpha:!0},you:{name:"You",alpha:!0,homepage:"https://youdao.com/"},openl:{name:"Openl",homepage:"https://openl.club/",docUrl:"https://immersivetranslate.com/docs/services/openL/",allProps:[...wg,{type:"password",name:"apikey",required:!0}],props:wg},volcAlpha:{name:"Volc Alpha",alpha:!0,homepage:"https://www.volcengine.com/"},d:{name:"D () ",alpha:!0,homepage:"https://www.deepl.com/translator"},dpro:{name:"DPro (Canary) ",canary:!0,homepage:"https://www.deepl.com/translator"},deeplx:{name:"DeepLX (Beta)",beta:!0,homepage:"https://www.deepl.com/translator",allProps:[{name:"url",label:"API URL",required:!0,type:"text"},{name:"limit",required:!1,labelKey:"field.limitPerSecond",descriptionKey:"description.generalLimitPerSecond",type:"number",default:5,optional:!0},{name:"maxTextLengthPerRequest",required:!1,labelKey:"field.maxTextLengthPerRequest",descriptionKey:"description.maxTextLengthPerRequest",type:"number",default:1200,optional:!0},{name:"maxTextGroupLengthPerRequest",required:!1,labelKey:"field.maxTextGroupLengthPerRequest",descriptionKey:"description.maxTextGroupLengthPerRequest",type:"number",default:1,optional:!0}]},niu:{name:"niutrans",homepage:"https://niutrans.com/",docUrl:"https://immersivetranslate.com/docs/services/niu",allProps:[{name:"APIKEY",required:!0,type:"password"}]}},ti={type:be+"ChildFrameToRootFrameIdentifier"},Ca=["Alt","Ctrl","Shift","Auto","Off","OtherCustom","Other"],ni=[{key:"/"},{key:"="},{key:";"},{key:","},{key:"."},{key:":"},{key:"space",labelKey:"spaceKey",skipForStarting:!0},{key:"none",labelKey:"noneKey",skipForTrailing:!0}],_o="user_from_plugin",ct="user_info",Bo=ta()||na()?"https://api2.immersivetranslate.com":"https://test-api2.immersivetranslate.com",Yg=ta()||na()?"https://immersivetranslate.com/accounts/login?from=plugin":"https://test.immersivetranslate.com/accounts/login?from=plugin",Dr=ta()||na()?"https://immersivetranslate.com/profile":"https://test.immersivetranslate.com/profile",Va=ta()||na()?"https://immersivetranslate.com/pricing":"https://test.immersivetranslate.com/pricing",Jg=Va+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_more",H0=Va+"?utm_source=extension&utm_medium=extension&utm_campaign=popup_footer",Qg=Va+"?utm_source=extension&utm_medium=extension&utm_campaign=error_modal";var Lr=console,q0=class{#e=performance.now();reset(){this.#e=performance.now()}stop(t){let n=performance.now(),a=Math.round(n-this.#e),r=mn.green;a>1e4?r=mn.red:a>1e3&&(r=mn.yellow),Lr.debug(mn.dim($a+" TIMING:"),t,"in",r(a+"ms")),this.#e=n}},Ro=class{#e=1;get level(){return this.#e}setLevel(t){switch(t){case"debug":this.#e=0;break;case"info":this.#e=1;break;case"warn":this.#e=2;break;case"error":this.#e=3;break;case"fatal":this.#e=4;break}}debug(...t){this.#e<=0&&Lr.log(mn.dim($a+" DEBUG:"),...t)}v(...t){this.#e<=0}info(...t){this.#e<=1&&Lr.log(mn.green($a+" INFO:"),...t)}l(...t){this.#e<=1}warn(...t){this.#e<=2&&Lr.warn(mn.yellow($a+" WARN:"),...t)}error(...t){this.#e<=3&&Lr.error(mn.red($a+" ERROR:"),...t)}fatal(...t){this.#e<=4&&Lr.error(mn.red($a+" FATAL:"),...t)}timing(){return this.level===0?new q0:{reset:()=>{},stop:()=>{}}}},j=new Ro;h();function pt(){try{return globalThis.self!==globalThis.top}catch{return!0}}var ai=!1,C9=me();function Zg(e,t){let n=[];for(let a of t){let r=e.querySelectorAll(a);for(let o of r)n.push(o)}return n}function v9(e,t){let n=function(o){return o.nodeType===Node.ELEMENT_NODE||o.nodeType===Node.TEXT_NODE?o.nodeType===Node.ELEMENT_NODE&&Xg(o,t,!0)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n),r=!0;for(;a.nextNode();){let o=a.currentNode;if(o.nodeType===Node.ELEMENT_NODE){if(va(o,Qu)){if(r===!0)return!0;continue}if(Io(o.nodeName,t.inlineTags))return!0;if(!W0(o,t))return!1}}return!0}function K0(e,t){let n=t.inlineTags;if(e.nodeType===Node.ELEMENT_NODE)if(Io(e.nodeName,n)||W0(e,t)){if(va(e,Og)||Io(e.nodeName,["BR"]))return!1;if(va(e,Qu))return!0;if(W0(e,t)){let a=globalThis.getComputedStyle(e);if(a.display==="block"||a.display==="flex")return!1}return v9(e,t)}else return va(e,Qu);return!1}function Xg(e,t,n){if(!(e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE)||e.nodeType===Node.ELEMENT_NODE&&va(e,Ig,!0))return!0;if(e.nodeType===Node.ELEMENT_NODE&&va(e,Mg))return!1;let{stayOriginalTags:a,excludeTags:r}=t,o=[];return n&&r&&r.length>0?o=r||[]:o=r.filter(u=>!a.includes(u)),!!(e.nodeType===Node.ELEMENT_NODE&&(e.getAttribute("translate")==="no"||e.classList.contains("notranslate"))||Io(e.nodeName,o))}function ri(e,t,n){let a=e.trim();return a.length>=t||a.split(" ").filter(u=>u.trim()!=="").length>=n||!tm(a)&&a.length>=n}function em(e,t,n){let a=e.trim();if(a.length<=t)return!0;if(tm(a)){if(a.split(" ").length<=n)return!0}else if(a.length<=n)return!0;return!1}function tm(e){for(let t=0;t127)return!1;return!0}function nm(e){if(e&&e.includes("://"))try{return new URL(e),!0}catch{return!1}else return!1}function am(e){return e?/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(e):!1}function rm(e){return e?/^[-+]?[0-9]*\.?[0-9]+%?$/.test(e):!1}function om(e){return!!(e&&e.startsWith("#")&&e.indexOf(" ")===-1)}function um(e){return!!(e&&e.startsWith("@")&&e.indexOf(" ")===-1)}function va(e,t,n=!1){return $0(e,t,"1",n)}function $0(e,t,n,a=!1){return ai&&!a?e[Zt]?!!(e[Zt]&&e[Zt][t]===n):!1:e.dataset[t]===n}function Mr(e){return(e.innerText||e.textContent||"").trim()}function G0(e){let t=e.querySelectorAll("iframe"),n="";for(let a=0;a2e3))break}return n}function oi(e){return e?typeof e=="string"?document.querySelector(e)!==null:e.some(t=>document.querySelector(t)):!1}function ft(e,t,n,a=!1,r=!1){e.isContentEditable&&!r||(ai&&!a?(e.dataset[Po]||(e.dataset[Po]="1"),e[Zt]||(e[Zt]={}),e[Zt][t]||(e[Zt][t]=n)):(e.dataset[Po]||(e.dataset[Po]="1"),e.dataset[t]!==n&&(e.dataset[t]=n)))}function ui(e,t,n=!1){if(ai&&!n){if(!e[Zt]||!e[Zt][t])return;delete e[Zt][t]}else delete e.dataset[t]}function Pr(e,t,n=!1){return ai&&!n?!e[Zt]||!e[Zt][t]?void 0:e[Zt][t]:e.dataset[t]}function W0(e,t){let n=t.allBlockTags.concat(t.inlineTags).concat(t.excludeTags);return!Io(e.nodeName,n)}function Fr(e){let{config:t}=e,n=Ga;return t.translationServices[e.translationService]&&t.translationServices[e.translationService].placeholderDelimiters&&(n=t.translationServices[e.translationService].placeholderDelimiters),n}function At(){if(!globalThis||!globalThis.location)return"https://example.com";if(!pt())return globalThis.location.href;try{let t=globalThis.location.href,n=new URL(t);if(n.protocol==="about:"||n.protocol==="blob:"){if(globalThis.location.ancestorOrigins&&globalThis.location.ancestorOrigins.length>0)return globalThis.location.ancestorOrigins[0];let a="";try{a=globalThis.parent.location.href}catch{}return a||(globalThis.location!=globalThis.parent.location?document.referrer:document.location.href)}else return t}catch{}return globalThis.location.href}function Ya(e,t,n){if(e instanceof ShadowRoot){try{e.appendChild(document.createElement("style")).textContent=t}catch(a){j.warn("injectCSS failed, rootDocument"+a?.message,e)}return}if(e&&e.head&&e.head.appendChild){let a=e.createElement("style");if(n){let r=e.querySelector(`style[data-id="${n}"]`);r&&r.remove(),a.dataset.id=n}a.textContent=t,e.head.appendChild(a)}else if(e){let a=document.createElement("head"),r=document.createElement("style");r.textContent=t,a.appendChild(r),e.appendChild(a)}else j.warn("injectCSS failed, rootDocument does not have head node",e)}function _r(e){let t=e.getAttribute("src");if(t){if(t==="about:blank")return!0;if(C9){if(t.startsWith("blob:"))return!0}else if(t.startsWith("blob:"))return!!document.querySelector("meta[name='immersive-translate-ebook-viewer']")||!t.startsWith("blob:http");return!1}try{if(e.contentDocument&&e.contentDocument.body)return!0}catch{}return!1}function Io(e,t){if(!e||!t)return!1;Array.isArray(t)||(t=[t]),e=e.toUpperCase();for(let n of t)if(e===n)return!0;return!1}function im(e){let t=e.replace("#",""),n=parseInt(t.substring(0,2),16),a=parseInt(t.substring(2,4),16),r=parseInt(t.substring(4,6),16);return{r:n,g:a,b:r}}function sm(e,t,n,a){if(a.document.caretPositionFromPoint){let r=a.document.caretPositionFromPoint(e,t);if(r){let o=a.document.createRange(),u=r.offsetNode;if(!u||u.nodeType!==Node.TEXT_NODE||Xg(u,n,!0))return null;try{o.setStart(u,r.offset),o.setEnd(u,r.offset)}catch(i){return j.warn("getRangeFromPoint error",i),null}return o}return null}else return a.document.caretRangeFromPoint?a.document.caretRangeFromPoint(e,t):null}function lm(e,t,n){let a=0,r=(o,u,i,s)=>{if(++a>100||s===o)return o;let c=o.shadowRoot;if(!c||typeof c.elementFromPoint!="function")return o;let l=c.elementFromPoint(u,i);return l?r(l,u,i,o):o};return r(e,t,n)}h();function Br(e,t,n,a){let r=t,o=Fo[r]||[],u="";e&&o&&o.length>0&&o.forEach(c=>{let{name:l}=c;if(e&&n&&n[l]){let g=n[l];if(["borderRadius"].includes(l)&&(g+="px"),u+=`--immersive-translate-theme-${r}-${l}: ${g}; +`,t==="marker"&&l==="backgroundColor"&&typeof g=="string"){let{r:p,g:f,b:m}=im(g);u+=`--immersive-translate-theme-${r}-${l}-rgb: ${p}, ${f}, ${m}; `}}});let i="";if(n&&n.textColor){let c=n.textColor;i+=` .immersive-translate-target-translation-theme-${r}-inner{color: ${c};} `}if(n&&n.zoom){let c=n.zoom;i+=` .immersive-translate-target-translation-theme-${r}-inner{font-size: max(13px, ${c}%);} `}let s="";u&&(s=`:root { ${u}} -`),i&&(s+=i),s?Ga(e,s,"immersive-translate-user-custom-style"):a&&Ga(e,"","immersive-translate-user-custom-style")}function wa(e,t){let a=Ke().IMMERSIVE_TRANSLATE_INJECTED_CSS;Ga(e,a,"immersive-translate-default-injected-css");let r=t.config.translationThemePatterns||{},o=t.state.translationTheme,u=r[o]||{};Pr(e,o,u);let i="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?i+=t.rule.injectedCss.join(` +`),i&&(s+=i),s?Ya(e,s,"immersive-translate-user-custom-style"):a&&Ya(e,"","immersive-translate-user-custom-style")}function wa(e,t){let a=Ke().IMMERSIVE_TRANSLATE_INJECTED_CSS;Ya(e,a,"immersive-translate-default-injected-css");let r=t.config.translationThemePatterns||{},o=t.state.translationTheme,u=r[o]||{};Br(e,o,u);let i="";(t.rule.injectedCss||t.rule.additionalInjectedCss)&&(t.rule.injectedCss&&Array.isArray(t.rule.injectedCss)&&t.rule.injectedCss.length>0?i+=t.rule.injectedCss.join(` `):t.rule.injectedCss&&(i+=t.rule.injectedCss),t.rule.additionalInjectedCss&&Array.isArray(t.rule.additionalInjectedCss)&&t.rule.additionalInjectedCss.length>0?i+=` `+t.rule.additionalInjectedCss.join(` `):t.rule.additionalInjectedCss&&(i+=` -`+t.rule.additionalInjectedCss)),i&&Ga(e,i,"immersive-translate-dynamic-injected-css")}h();h();h();var v9=0;function d(e,t,n,a,r){var o,u,i={};for(u in t)u=="ref"?o=t[u]:i[u]=t[u];var s={type:e,props:i,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--v9,__source:r,__self:a};if(typeof e=="function"&&(o=e.defaultProps))for(u in o)i[u]===void 0&&(i[u]=o[u]);return Ae.vnode&&Ae.vnode(s),s}function V0({value:e,defaultCase:t=null,cases:n}){return e==null?null:d(Fe,{children:n[e]!=null?n[e]:t})}h();function Y0(){let[e,t]=$(location.hash);return he(()=>{let n=()=>t(location.hash);return globalThis.addEventListener("hashchange",n,!1),()=>{globalThis.removeEventListener("hashchange",n)}},[]),e}h();h();function ut(e){_0({type:"success",text:e})}function Bt(e){_0({type:"error",text:e})}h();function Xt(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function lm(e){if(e){let t="unknown";if(e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?t="stripe":t="admin"),t==="stripe")return!0}return!1}function cm(e){if(e){let t=new Date(e.createTime),n=w9(t),a="free",r="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(a=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?r="stripe":r="admin"),{user_type:a,user_register_day:n,subscription_from:r}}else return null}function w9(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[a,r,o]=n.split("/");return n=`${o}-${a}-${r}`,n}catch{return"unknown"}}h();h();h();h();h();function dm(e,t){return[e,!e||e.endsWith("/")?"":"/",t,".json"].join("")}function J0(e,t){let n=e;return t&&Object.keys(t).forEach(a=>{let r=t[a];if(r===void 0)return;let o=k9(a);if(typeof r=="object"||o){let u=r;o&&typeof u=="string"&&(u={tag:"a",href:u});let i=`<${a}>`,s=n.indexOf(i);if(s!==-1){let c=u.tag||"a",l=n.indexOf(``);if(l!==-1){let m=n.substring(s+i.length,l),p=Object.keys(u).filter(f=>f!=="tag").map(f=>`${f}="${u[f]}"`).join(" ");n=n.replace(`${i}${m}`,`<${c} ${p}>${m}`)}}}else if(r){let u=new RegExp("{"+a+"}","gm");n=n.replace(u,r.toString())}}),n}function No(e,t,n){let a=e[t];if(!a)return n;let r=n.split("."),o="";do{o+=r.shift();let u=a[o];u!==void 0&&(typeof u=="object"||!r.length)?(a=u,o=""):r.length?o+=".":a=n}while(r.length);return a}function oa(e,t,n,a,r){if(!e.hasOwnProperty(n))return t;let o=No(e,n,t);return o===t&&n!==a&&(o=No(e,a,t)),J0(o,r)}function k9(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}var Fr={},S9={root:"",lang:"en",fallbackLang:"en"};function Q0(e,t){let n=Object.assign({},S9,e);Fr=t||Fr;let[a,r]=$(n.lang),[o,u]=$(Fr),[i,s]=$(!1),c=m=>{if(o.hasOwnProperty(m))return;s(!1);let p=dm(n.root||"",m);n.getUrl&&(p=n.getUrl(n.root||"",m),fetch(p).then(f=>f.json()).then(f=>{Fr[m]=f,u({...Fr}),s(!0)}).catch(f=>{u({...Fr}),s(!0)}))};return he(()=>{c(n.fallbackLang||"en"),c(a)},[a]),{lang:a,setLang:r,t:(m,p)=>{if(!o.hasOwnProperty(a))return m;let f=No(o,a,m);return f===m&&a!==n.fallbackLang&&(f=No(o,n.fallbackLang,m)),J0(f,p)},isReady:i}}var X0=fr(null),Z0={root:"assets",lang:"en",fallbackLang:"en"},si=e=>{let{t,setLang:n,lang:a,isReady:r}=Q0({root:e.root||Z0.root,lang:e.lang||Z0.lang,fallbackLang:e.fallbackLang||Z0.fallbackLang,getUrl:e.getUrl},e.translations);return d(X0.Provider,{value:{t,setLang:n,lang:a,isReady:r},children:e.children})};function ue(){return Ye(X0)}function el(e){let{t}=ue(),{isProUser:n,currentProvider:a,provider:r,onChange:o}=e,u=t(r.descriptionKey,{1:r.descriptionLink1,2:r.descriptionLink2});return!n&&r.descriptionKeyForNormal&&(u=t(r.descriptionKeyForNormal,{1:r.descriptionLink1,2:r.descriptionLink2})),d("label",{class:"pro-radio-label",for:r.name,children:[d("div",{class:"pro-input-radio",children:d("input",{type:"radio",id:r.name,name:r.name,value:r.name,onClick:o,checked:r.name===a})}),d("div",{class:"pl-4",children:[d("div",{class:"pro-radio-title",children:t(r.nameKey)}),d("small",{class:"pro-radio-desc muted",dangerouslySetInnerHTML:{__html:u}})]})]})}h();h();h();h();h();h();h();var tl=/iPhone/i,gm=/iPod/i,mm=/iPad/i,pm=/\biOS-universal(?:.+)Mac\b/i,nl=/\bAndroid(?:.+)Mobile\b/i,fm=/Android/i,_r=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,li=/Silk/i,ua=/Windows Phone/i,hm=/\bWindows(?:.+)ARM\b/i,bm=/BlackBerry/i,ym=/BB10/i,Tm=/Opera Mini/i,xm=/\b(CriOS|Chrome)(?:.+)Mobile/i,Em=/Mobile(?:.+)Firefox\b/i,Cm=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function A9(e){return t=>t.test(e)}function fn(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,a=n.split("[FBAN");typeof a[1]<"u"&&(n=a[0]),a=n.split("Twitter"),typeof a[1]<"u"&&(n=a[0]);let r=A9(n),o={apple:{phone:r(tl)&&!r(ua),ipod:r(gm),tablet:!r(tl)&&(r(mm)||Cm(t))&&!r(ua),universal:r(pm),device:(r(tl)||r(gm)||r(mm)||r(pm)||Cm(t))&&!r(ua)},amazon:{phone:r(_r),tablet:!r(_r)&&r(li),device:r(_r)||r(li)},android:{phone:!r(ua)&&r(_r)||!r(ua)&&r(nl),tablet:!r(ua)&&!r(_r)&&!r(nl)&&(r(li)||r(fm)),device:!r(ua)&&(r(_r)||r(li)||r(nl)||r(fm))||r(/\bokhttp\b/i)},windows:{phone:r(ua),tablet:r(hm),device:r(ua)||r(hm)},other:{blackberry:r(bm),blackberry10:r(ym),opera:r(Tm),firefox:r(Em),chrome:r(xm),device:r(bm)||r(ym)||r(Tm)||r(Em)||r(xm)},any:!1,phone:!1,tablet:!1};return o.any=o.apple.device||o.android.device||o.windows.device||o.other.device,o.phone=o.apple.phone||o.android.phone||o.windows.phone,o.tablet=o.apple.tablet||o.android.tablet||o.windows.tablet,o}var al="DENO",ci="CHROME",di="FIREFOX";function vm(e){let t=ci;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=di:/deno/i.test(n)&&(t=al)}catch{}return e===ci&&t===ci||e===di&&t===di||e===al&&t===al}function wm(){return vm(ci)}function km(){return typeof Deno<"u"}function Va(){return vm(di)}function Br(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function ia(){return!!globalThis.matchMedia("(pointer:fine)").matches}h();var Sm={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},Am={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:Sm,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}}},tabs:{onUpdated:Sm,query:()=>{},sendMessage:()=>{}}};var Q;km()?Q=Am:Q=globalThis.immersiveTranslateBrowserAPI;var rl={get:(e,t,n)=>{let a=t===void 0?e:{[e]:t};return Q.storage[n].get(a)},set:(e,t,n)=>Q.storage[n].set({[e]:t})};function gi(e,t,n){let[a]=$(()=>typeof t=="function"?t():t),[r]=$(n),[o,u]=$(a),[i,s]=$(!1),[c,l]=$("");he(()=>{rl.get(e,a,r).then(p=>{p[e]&&u(p[e]),s(!0),l("")}).catch(p=>{s(!1),l(p)})},[e,a,r]);let m=dn(p=>{let f=typeof p=="function"?p(o):p;j.debug("new settings",f),rl.set(e,f,r).then(()=>{u(f),s(!0),l("")}).catch(g=>{u(f),s(!1),l(g)})},[r,e,o]);return[o,m,i,c]}h();function mi(e,t,n){let a=[];return function(){let[o,u,i,s]=gi(e,t,n),c=dn(l=>{for(let m of a)m(l)},[]);return he(()=>(a.push(u),()=>{a.splice(a.indexOf(u),1)}),[u]),[o,c,i,s]}}function Dm(e,t){return mi(e,t,"local")}function Lm(e,t){return mi(e,t,"sync")}var D9="userConfig",L9=null,M9=Lm(D9,L9);function ft(e){let[t,n,a,r]=M9(),o=dn(u=>{let i=typeof u=="function"?u(t):u;i&&(i.updatedAt=new Date().toISOString()),n(i),e&&e(i)},[t]);return[t,o,a,r,n]}h();h();function Ya(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t==="zh-hans")return"zh-CN";if(t==="zh-hant"||t==="zh-hk")return"zh-TW";if(t==="iw")return"he";if(t==="jv")return"jw";let n=sn.map(r=>r.toLowerCase()),a=n.indexOf(t);if(a===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let r=n.indexOf(t);return r===-1?"auto":sn[r]}else return"auto";else return sn[a]}function Ja(){return Ya(document?.documentElement?.lang||"en")}h();var Mm=be+"SyncStoreKey_";function Ht(e,t){let n=Mm+e;return Q.storage.sync.get(n).then(a=>a[n]===void 0?t:a[n])}function $e(e,t){let n=Mm+e;return Q.storage.sync.set({[n]:t})}h();var Pm=be+"StoreKey_";function sa(e,t){let n=Pm+e;return Q.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function Fm(e,t){let n=Pm+e;return Q.storage.local.set({[n]:t})}h();var Rr=be+"CacheKey_";function P9(e,t){let n=Rr+e;return Q.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function F9(){let e=Q.storage.local.refresh;e&&e()}function Uo(e,t){let n=Rr+e;return Q.storage.local.get(n).then(a=>{if(a[n]===void 0)return t;let{value:r,expired:o}=a[n];return o&&oa.startsWith(Rr));if(n.length>0)return Q.storage.local.remove(n)}}var Xe={get:P9,set:_9,getExpired:Uo,setExpired:jo,remove:zo,clear:ol,refresh:F9};h();h();h();var xt=class extends Error{details;constructor(t,n,a){super(n),this.name=t,a&&(this.details=a)}};async function Pn(e){let t;if(e&&e.retry&&e.retry>0)try{t=await f0(_m.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await _m(e);return t}async function _m(e){e.body;let{url:t,responseType:n,...a}=e;n||(n="json"),a={mode:"cors",...a};let r=!0;e.fetchPolyfill&&(r=!1);let o=e.fetchPolyfill||fetch,u=3e5;if(e.timeout&&(u=e.timeout),r){let s=new AbortController,c=s.signal;setTimeout(()=>{s.abort()},u),a.signal=c}let i;try{i=await o(t,a)}catch(s){j.debug("fetch error",t,s);let c=s.message||"";throw s.message="\u7F51\u7EDC\u95EE\u9898\uFF0C\u65E0\u6CD5\u8FDE\u63A5\u5230\u670D\u52A1\uFF0C\u8BF7\u68C0\u67E5\u4F60\u7684\u4EE3\u7406\u6216\u672C\u5730\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u8BD5\u3002 "+c,s}if(i.ok&&i.status>=200&&i.status<400){if(n==="json")return await i.json();if(n==="text")return await i.text();if(n==="raw"){let s=await i.text(),c=Object.fromEntries([...i.headers.entries()]),l=i.url;return l||(i.headers.get("X-Final-URL")?l=i.headers.get("X-Final-URL"):l=t),{body:s,headers:c,status:i.status,statusText:i.statusText,url:l}}else if(n==="stream"){let s="",c;if(i.body&&i.body instanceof ReadableStream)for await(let l of B9(i.body)){let m=new TextDecoder().decode(l);s+=m;let p;for(;(p=s.indexOf(` -`))>=0;){let f=s.slice(0,p).trim();if(s=s.slice(p+1),f.startsWith("event:")||f==="")continue;let g="";if(f.startsWith("data:")&&(g=f.slice(5).trim()),g==="[DONE]")break;let y;try{y=JSON.parse(g??"")}catch(v){j.debug("json error",v);continue}c=y}}return c}}else{let s;try{s=await i.text()}catch(f){j.error("parse response failed",f)}s&&j.error("fail response",s);let c="";s&&(c=s.slice(0,280));let l="\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u4EE3\u7801:"+i.status+": "+(i.statusText||"")+c,p=new URL(t).hostname.endsWith(".immersivetranslate.com");throw i.status===429?p?c.includes("quota exceeded")?l="ProQuota:"+c:l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${c} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`:l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A429\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===403?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A403\uFF0C \u8BF4\u660E\u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ${c}`:i.status===400?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A400\uFF0C \u8BF4\u660E\u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002 ${c}`:i.status===502?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A502\uFF0C \u8BF4\u660E\u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===401&&(l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A401\uFF0C \u8BF4\u660E\u672A\u767B\u5F55\u6216\u767B\u5F55\u6001\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002 ${c}`),new xt("fetchError",l,s)}}async function*B9(e){let t=e.getReader();try{for(;;){let{done:n,value:a}=await t.read();if(n)return;yield a}}finally{t.releaseLock()}}h();var Ho=new Map;function Bm(){document.addEventListener(Dg,e=>{let t=e;if(t&&t.detail){let n;try{n=JSON.parse(t.detail),Ho.has(n.id)&&(n.ok?Ho.get(n.id)(null,n.data):Ho.get(n.id)(new Error(n.errorMessage),null),Ho.delete(n.id))}catch{}}})}function pi(e){let t=R9(64),n=new CustomEvent(kg,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((a,r)=>{Ho.set(t,(o,u)=>{o?r(o):a(u)})})}function R9(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};function hn(){return fi.version}function hi(){return Q.runtime.getManifest().version}h();var qo=new Map,la=class{fromType;logger;constructor(t,n=!1){this.logger=new Ro,n&&this.logger.setLevel("debug"),this.fromType=t,qo.has(t)||(qo.set(t,new Map),Q.runtime.onMessage.addListener((a,r,o)=>{let u=a.from,i=a.to,s,c,l;r.tab&&r.tab.id&&(s=r.tab.id,u=`${u}:${s}`,c=r.tab.url,l=r.tab.active),this.logger.debug(`${a.to} received message [${a.payload.method}] from ${a.from}`,a.payload.data?a.payload.data:" ");let m=il(i),{type:p,name:f}=m;if(p!==t)return!1;let g=il(u),v=qo.get(p).get(f);if(!v)return this.logger.debug(`no message handler for ${p}:${i}, but it's ok`),!1;let{messageHandler:b,sync:S}=v,A={type:t,name:g.name,id:s,url:c,active:l};if(S){try{let N=b(a.payload,A);o({ok:!0,data:N})}catch(N){o({ok:!1,errorName:N.name,errorMessage:N.message,errorDetails:N.details})}return!1}else return b(a.payload,A).then(N=>{o({ok:!0,data:N})}).catch(N=>{o({ok:!1,errorName:N.name,errorMessage:N.message,errorDetails:N.details})}),!0}))}getConnection(t,n,a){let r=!1;a&&a.sync&&(r=!0);let o=this.fromType,u=qo.get(o);if(u.has(t))return u.get(t).connectionInstance;{let i=new ul(`${o}:${t}`,this.logger);return qo.get(o).set(t,{messageHandler:n,sync:r,connectionInstance:i}),i}}},ul=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let a=il(t),{type:r,id:o}=a;if(r!=="content_script"){let u={to:t,from:this.from,payload:n};this.logger.debug(`${u.from} send message [${u.payload.method}] to ${u.to}`,u.payload.data?u.payload.data:" ");try{let i=await Q.runtime.sendMessage(u);return Rm(u,i,this.logger)}catch(i){if(r==="popup"){let s=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(s,n,t,i),Promise.resolve({message:s})}else throw i}}else{let u={from:this.from,to:t,payload:n};this.logger.debug(`${u.from} send message [${u.payload.method}] to ${u.to}`,u.payload.data?u.payload.data:" ");let i=await Q.tabs.sendMessage(o,u);return Rm(u,i,this.logger)}}};function Rm(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new xt(t.errorName||"UnknownError",t.errorMessage||"Unknown error",t.errorDetails)}else throw new xt("noResponse","Unknown error")}function il(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let a=parseInt(t[2]);if(!isNaN(a))n.id=a;else throw new Error("tab id not a valid number")}return n}var bi;function O9(){return bi||(bi=new la("content_script",!1).getConnection("pure_main",()=>{}),bi)}var Im="G-MKMD9LWFTR";async function Wo(e,t){try{let n=Ke();if(n.INSTALL_FROM==="firefox_store")return;let r=me(),o=mt(),u=n.PROD==="1",i="sitc4WmvShWYwfU0dANM3Q",s=await Ht("fakeUserId","");s||(s=await sa("fakeUserId",""),s&&await $e("fakeUserId",s));let c=hn(),l=new Date,m=await Ht("installedAt","");m||(m=await sa("installedAt",""),m&&await $e("installedAt",m)),s?m||(m=new Date(0).toISOString(),await $e("installedAt",m)):(s=N9(32),await $e("fakeUserId",s)),m||(m=l.toISOString(),await $e("installedAt",m));let p=new Date(m),f=Om(p),g=Om(l),y=f===g,v=l.getTime()-p.getTime()<7*24*60*60*1e3,b=`https://www.google-analytics.com/mp/collect?measurement_id=${Im}&api_secret=${i}`;u||(b=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${Im}&api_secret=${i}`);let S="";typeof navigator<"u"&&(S=window.navigator.userAgent);let A=xr.parse(S),N=t.map(x=>{let E=x.params||{};return A.os&&(E.os_name=A.os.name||"unknown",E.os_version=A.os.version||"unknown",E.os_version_name=A.os.versionName||"unknown"),A.browser&&(E.browser_name=A.browser.name||"unknown",E.browser_version=A.browser.version||"unknown"),A.platform&&(E.platform_type=A.platform.type||"unknown"),A.engine&&(E.engine_name=A.engine.name||"unknown",E.engine_version=A.engine.version||"unknown"),c&&(E.version=c),n.INSTALL_FROM&&(E.install_from=n.INSTALL_FROM),f&&(E.install_day=U9(p)),E.userscript=r.toString(),y?E.is_new_user_today="1":E.is_new_user_today="0",v?E.is_new_user_this_week="1":E.is_new_user_this_week="0",o?E.main_frame=0:E.main_frame=1,{...x,params:E}}),_=await yi({responseType:"text",url:b,method:"POST",body:JSON.stringify({client_id:s,user_id:s,events:N})})}catch{}}function N9(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r",""]},custom:{placeholderDelimiters:["{","}"]},bing:{maxTextLengthPerRequest:1800,placeholderDelimiters:["","","b"]},deeplx:{limit:3},d:{immediateTranslationTextCount:0},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},openai:{placeholderDelimiters:["{{","}}","b"],immediateTranslationTextCount:3e3,translationDebounce:300,interval:1350,prompt:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +`+t.rule.additionalInjectedCss)),i&&Ya(e,i,"immersive-translate-dynamic-injected-css")}h();h();h();var w9=0;function d(e,t,n,a,r){var o,u,i={};for(u in t)u=="ref"?o=t[u]:i[u]=t[u];var s={type:e,props:i,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--w9,__source:r,__self:a};if(typeof e=="function"&&(o=e.defaultProps))for(u in o)i[u]===void 0&&(i[u]=o[u]);return Ae.vnode&&Ae.vnode(s),s}function V0({value:e,defaultCase:t=null,cases:n}){return e==null?null:d(Fe,{children:n[e]!=null?n[e]:t})}h();function Y0(){let[e,t]=$(location.hash);return he(()=>{let n=()=>t(location.hash);return globalThis.addEventListener("hashchange",n,!1),()=>{globalThis.removeEventListener("hashchange",n)}},[]),e}h();h();function ut(e){_0({type:"success",text:e})}function Bt(e){_0({type:"error",text:e})}h();function Xt(e){return!!(e&&e.subscription&&e.subscription.subscriptionStatus==="active")}function cm(e){if(e){let t="unknown";if(e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?t="stripe":t="admin"),t==="stripe")return!0}return!1}function dm(e){if(e){let t=new Date(e.createTime),n=k9(t),a="free",r="unknown";return e.subscription&&e.subscription.subscriptionStatus==="active"&&(a=e.subscription.subscriptionType),e.subscription&&e.subscription.subscriptionId&&(e.subscription.subscriptionId.startsWith("sub_")?r="stripe":r="admin"),{user_type:a,user_register_day:n,subscription_from:r}}else return null}function k9(e){try{let n=e.toLocaleString("en-US",{timeZone:"Asia/Shanghai"}).split(" ")[0];n.endsWith(",")&&(n=n.slice(0,-1));let[a,r,o]=n.split("/");return n=`${o}-${a}-${r}`,n}catch{return"unknown"}}h();h();h();h();h();function gm(e,t){return[e,!e||e.endsWith("/")?"":"/",t,".json"].join("")}function J0(e,t){let n=e;return t&&Object.keys(t).forEach(a=>{let r=t[a];if(r===void 0)return;let o=S9(a);if(typeof r=="object"||o){let u=r;o&&typeof u=="string"&&(u={tag:"a",href:u});let i=`<${a}>`,s=n.indexOf(i);if(s!==-1){let c=u.tag||"a",l=n.indexOf(``);if(l!==-1){let g=n.substring(s+i.length,l),p=Object.keys(u).filter(f=>f!=="tag").map(f=>`${f}="${u[f]}"`).join(" ");n=n.replace(`${i}${g}`,`<${c} ${p}>${g}`)}}}else if(r){let u=new RegExp("{"+a+"}","gm");n=n.replace(u,r.toString())}}),n}function No(e,t,n){let a=e[t];if(!a)return n;let r=n.split("."),o="";do{o+=r.shift();let u=a[o];u!==void 0&&(typeof u=="object"||!r.length)?(a=u,o=""):r.length?o+=".":a=n}while(r.length);return a}function ra(e,t,n,a,r){if(!e.hasOwnProperty(n))return t;let o=No(e,n,t);return o===t&&n!==a&&(o=No(e,a,t)),J0(o,r)}function S9(e){if(typeof e=="number")return!0;if(e){let t=parseInt(e);return!isNaN(t)}else return!1}var Rr={},A9={root:"",lang:"en",fallbackLang:"en"};function Q0(e,t){let n=Object.assign({},A9,e);Rr=t||Rr;let[a,r]=$(n.lang),[o,u]=$(Rr),[i,s]=$(!1),c=g=>{if(o.hasOwnProperty(g))return;s(!1);let p=gm(n.root||"",g);n.getUrl&&(p=n.getUrl(n.root||"",g),fetch(p).then(f=>f.json()).then(f=>{Rr[g]=f,u({...Rr}),s(!0)}).catch(f=>{u({...Rr}),s(!0)}))};return he(()=>{c(n.fallbackLang||"en"),c(a)},[a]),{lang:a,setLang:r,t:(g,p)=>{if(!o.hasOwnProperty(a))return g;let f=No(o,a,g);return f===g&&a!==n.fallbackLang&&(f=No(o,n.fallbackLang,g)),J0(f,p)},isReady:i}}var X0=yr(null),Z0={root:"assets",lang:"en",fallbackLang:"en"},ii=e=>{let{t,setLang:n,lang:a,isReady:r}=Q0({root:e.root||Z0.root,lang:e.lang||Z0.lang,fallbackLang:e.fallbackLang||Z0.fallbackLang,getUrl:e.getUrl},e.translations);return d(X0.Provider,{value:{t,setLang:n,lang:a,isReady:r},children:e.children})};function ue(){return Ye(X0)}function el(e){let{t}=ue(),{isProUser:n,currentProvider:a,provider:r,onChange:o}=e,u=t(r.descriptionKey,{1:r.descriptionLink1,2:r.descriptionLink2});return!n&&r.descriptionKeyForNormal&&(u=t(r.descriptionKeyForNormal,{1:r.descriptionLink1,2:r.descriptionLink2})),d("label",{class:"pro-radio-label",for:r.name,children:[d("div",{class:"pro-input-radio",children:d("input",{type:"radio",id:r.name,name:r.name,value:r.name,onClick:o,checked:r.name===a})}),d("div",{class:"pl-4",children:[d("div",{class:"pro-radio-title",children:t(r.nameKey)}),d("small",{class:"pro-radio-desc muted",dangerouslySetInnerHTML:{__html:u}})]})]})}h();h();h();h();h();h();h();var tl=/iPhone/i,mm=/iPod/i,pm=/iPad/i,fm=/\biOS-universal(?:.+)Mac\b/i,nl=/\bAndroid(?:.+)Mobile\b/i,hm=/Android/i,Ir=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,si=/Silk/i,oa=/Windows Phone/i,bm=/\bWindows(?:.+)ARM\b/i,ym=/BlackBerry/i,Tm=/BB10/i,xm=/Opera Mini/i,Em=/\b(CriOS|Chrome)(?:.+)Mobile/i,Cm=/Mobile(?:.+)Firefox\b/i,vm=e=>typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof globalThis.MSStream>"u";function D9(e){return t=>t.test(e)}function fn(e){let t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});let n=t.userAgent,a=n.split("[FBAN");typeof a[1]<"u"&&(n=a[0]),a=n.split("Twitter"),typeof a[1]<"u"&&(n=a[0]);let r=D9(n),o={apple:{phone:r(tl)&&!r(oa),ipod:r(mm),tablet:!r(tl)&&(r(pm)||vm(t))&&!r(oa),universal:r(fm),device:(r(tl)||r(mm)||r(pm)||r(fm)||vm(t))&&!r(oa)},amazon:{phone:r(Ir),tablet:!r(Ir)&&r(si),device:r(Ir)||r(si)},android:{phone:!r(oa)&&r(Ir)||!r(oa)&&r(nl),tablet:!r(oa)&&!r(Ir)&&!r(nl)&&(r(si)||r(hm)),device:!r(oa)&&(r(Ir)||r(si)||r(nl)||r(hm))||r(/\bokhttp\b/i)},windows:{phone:r(oa),tablet:r(bm),device:r(oa)||r(bm)},other:{blackberry:r(ym),blackberry10:r(Tm),opera:r(xm),firefox:r(Cm),chrome:r(Em),device:r(ym)||r(Tm)||r(xm)||r(Cm)||r(Em)},any:!1,phone:!1,tablet:!1};return o.any=o.apple.device||o.android.device||o.windows.device||o.other.device,o.phone=o.apple.phone||o.android.phone||o.windows.phone,o.tablet=o.apple.tablet||o.android.tablet||o.windows.tablet,o}var al="DENO",li="CHROME",ci="FIREFOX";function wm(e){let t=li;try{let n=navigator?.userAgent||"";/firefox/i.test(n)||typeof InstallTrigger<"u"?t=ci:/deno/i.test(n)&&(t=al)}catch{}return e===li&&t===li||e===ci&&t===ci||e===al&&t===al}function km(){return wm(li)}function Sm(){return typeof Deno<"u"}function Ja(){return wm(ci)}function Or(){return!!navigator.maxTouchPoints||"ontouchstart"in document.documentElement}function ua(){return!!globalThis.matchMedia("(pointer:fine)").matches}h();var Am={addListener:()=>{},removeListener:()=>{},hasListener:()=>{}},Dm={permissions:{contains:()=>{},request:()=>{}},runtime:{onMessage:Am,openOptionsPage:()=>{},lastError:{message:""}},storage:{sync:{get:()=>{},set:()=>{}}},tabs:{onUpdated:Am,query:()=>{},sendMessage:()=>{}}};var X;Sm()?X=Dm:X=globalThis.immersiveTranslateBrowserAPI;var rl={get:(e,t,n)=>{let a=t===void 0?e:{[e]:t};return X.storage[n].get(a)},set:(e,t,n)=>X.storage[n].set({[e]:t})};function di(e,t,n){let[a]=$(()=>typeof t=="function"?t():t),[r]=$(n),[o,u]=$(a),[i,s]=$(!1),[c,l]=$("");he(()=>{rl.get(e,a,r).then(p=>{p[e]&&u(p[e]),s(!0),l("")}).catch(p=>{s(!1),l(p)})},[e,a,r]);let g=dn(p=>{let f=typeof p=="function"?p(o):p;j.debug("new settings",f),rl.set(e,f,r).then(()=>{u(f),s(!0),l("")}).catch(m=>{u(f),s(!1),l(m)})},[r,e,o]);return[o,g,i,c]}h();function gi(e,t,n){let a=[];return function(){let[o,u,i,s]=di(e,t,n),c=dn(l=>{for(let g of a)g(l)},[]);return he(()=>(a.push(u),()=>{a.splice(a.indexOf(u),1)}),[u]),[o,c,i,s]}}function Lm(e,t){return gi(e,t,"local")}function Mm(e,t){return gi(e,t,"sync")}var L9="userConfig",M9=null,P9=Mm(L9,M9);function ht(e){let[t,n,a,r]=P9(),o=dn(u=>{let i=typeof u=="function"?u(t):u;i&&(i.updatedAt=new Date().toISOString()),n(i),e&&e(i)},[t]);return[t,o,a,r,n]}h();h();function Qa(e){if(typeof e!="string")return"auto";let t=e.toLowerCase();if(t==="und")return"auto";if(t==="zh"||t==="zh-hans")return"zh-CN";if(t==="zh-hant"||t==="zh-hk")return"zh-TW";if(t==="iw")return"he";if(t==="jv")return"jw";let n=sn.map(r=>r.toLowerCase()),a=n.indexOf(t);if(a===-1)if(t.indexOf("-")>=0){t=t.split("-")[0];let r=n.indexOf(t);return r===-1?"auto":sn[r]}else return"auto";else return sn[a]}function Za(){return Qa(document?.documentElement?.lang||"en")}h();var Pm=be+"SyncStoreKey_";function Ht(e,t){let n=Pm+e;return X.storage.sync.get(n).then(a=>a[n]===void 0?t:a[n])}function $e(e,t){let n=Pm+e;return X.storage.sync.set({[n]:t})}h();var Fm=be+"StoreKey_";function ia(e,t){let n=Fm+e;return X.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function _m(e,t){let n=Fm+e;return X.storage.local.set({[n]:t})}h();var Xa=be+"CacheKey_";function F9(e,t){let n=Xa+e;return X.storage.local.get(n).then(a=>a[n]===void 0?t:a[n])}function _9(){let e=X.storage.local.refresh;e&&e()}function Uo(e,t){let n=Xa+e;return X.storage.local.get(n).then(a=>{if(a[n]===void 0)return t;let{value:r,expired:o}=a[n];return o&&oa.startsWith(Xa)).filter(a=>a!==Xa+ct);if(n.length>0)return X.storage.local.remove(n)}}var Xe={get:F9,set:B9,getExpired:Uo,setExpired:jo,remove:zo,clear:ol,refresh:_9};h();h();h();var xt=class extends Error{details;constructor(t,n,a){super(n),this.name=t,a&&(this.details=a)}};async function Pn(e){let t;if(e&&e.retry&&e.retry>0)try{t=await f0(Bm.bind(null,e),{multiplier:2,maxAttempts:e.retry})}catch(n){throw n&&n.name==="RetryError"&&n.cause?n.cause:n}else t=await Bm(e);return t}async function Bm(e){e.body;let{url:t,responseType:n,...a}=e;n||(n="json"),a={mode:"cors",...a};let r=!0;e.fetchPolyfill&&(r=!1);let o=e.fetchPolyfill||fetch,u=3e5;if(e.timeout&&(u=e.timeout),r){let s=new AbortController,c=s.signal;setTimeout(()=>{s.abort()},u),a.signal=c}let i;try{i=await o(t,a)}catch(s){j.debug("fetch error",t,s);let c=s.message||"";throw s.message="\u7F51\u7EDC\u95EE\u9898\uFF0C\u65E0\u6CD5\u8FDE\u63A5\u5230\u670D\u52A1\uFF0C\u8BF7\u68C0\u67E5\u4F60\u7684\u4EE3\u7406\u6216\u672C\u5730\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u8BD5\u3002 "+c,s}if(i.ok&&i.status>=200&&i.status<400){if(n==="json")return await i.json();if(n==="text")return await i.text();if(n==="raw"){let s=await i.text(),c=Object.fromEntries([...i.headers.entries()]),l=i.url;return l||(i.headers.get("X-Final-URL")?l=i.headers.get("X-Final-URL"):l=t),{body:s,headers:c,status:i.status,statusText:i.statusText,url:l}}else if(n==="stream"){let s="",c;if(i.body&&i.body instanceof ReadableStream)for await(let l of R9(i.body)){let g=new TextDecoder().decode(l);s+=g;let p;for(;(p=s.indexOf(` +`))>=0;){let f=s.slice(0,p).trim();if(s=s.slice(p+1),f.startsWith("event:")||f==="")continue;let m="";if(f.startsWith("data:")&&(m=f.slice(5).trim()),m==="[DONE]")break;let y;try{y=JSON.parse(m??"")}catch(v){j.debug("json error",v);continue}c=y}}return c}}else{let s;try{s=await i.text()}catch(f){j.error("parse response failed",f)}s&&j.error("fail response",s);let c="";s&&(c=s.slice(0,280));let l="\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF0C\u4EE3\u7801:"+i.status+": "+(i.statusText||"")+c,p=new URL(t).hostname.endsWith(".immersivetranslate.com");throw i.status===429?p?c.includes("quota exceeded")?l="ProQuota:"+c:l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${c} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`:l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A429\uFF0C\u8BF4\u660E\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41\u6216\u8D85\u51FA\u989D\u5EA6\u9650\u5236\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===403?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A403\uFF0C \u8BF4\u660E\u6682\u65F6\u6CA1\u6709\u6743\u9650\u8BBF\u95EE\u8BE5\u670D\u52A1\u3002 ${c}`:i.status===400?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A400\uFF0C \u8BF4\u660E\u8BF7\u6C42\u53C2\u6570\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u76F8\u5E94\u914D\u7F6E\u3002 ${c}`:i.status===502?l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A502\uFF0C \u8BF4\u660E\u670D\u52A1\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002 ${c}`:i.status===401&&(l=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\uFF1A401\uFF0C \u8BF4\u660E\u672A\u767B\u5F55\u6216\u767B\u5F55\u6001\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002 ${c}`),new xt("fetchError",l,s)}}async function*R9(e){let t=e.getReader();try{for(;;){let{done:n,value:a}=await t.read();if(n)return;yield a}}finally{t.releaseLock()}}h();var Ho=new Map;function Rm(){document.addEventListener(Lg,e=>{let t=e;if(t&&t.detail){let n;try{n=JSON.parse(t.detail),Ho.has(n.id)&&(n.ok?Ho.get(n.id)(null,n.data):Ho.get(n.id)(new Error(n.errorMessage),null),Ho.delete(n.id))}catch{}}})}function mi(e){let t=I9(64),n=new CustomEvent(Sg,{detail:JSON.stringify({...e,type:"ask",id:t})});return document.dispatchEvent(n),new Promise((a,r)=>{Ho.set(t,(o,u)=>{o?r(o):a(u)})})}function I9(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r","file:///*","*://*/*"],js:["content_script.js"],run_at:"document_end",all_frames:!0}],commands:{toggleTranslatePage:{suggested_key:{default:"Alt+A"},description:"__MSG_toggleTranslatePage__"},toggleTranslateTheWholePage:{suggested_key:{default:"Alt+W"},description:"__MSG_toggleTranslateTheWholePage__"},toggleOnlyTransation:{description:"__MSG_toggleOnlyTransation__"},toggleTranslateToThePageEndImmediately:{description:"__MSG_toggleTranslateToThePageEndImmediately__"},toggleTranslateTheMainPage:{description:"__MSG_toggleTranslateTheMainPage__"},toggleTranslationMask:{description:"__MSG_toggleTranslationMask__"}},options_page:"options.html",options_ui:{page:"options.html",open_in_tab:!0,browser_style:!1},permissions:["storage","activeTab","contextMenus","webRequest","webRequestBlocking","declarativeNetRequestWithHostAccess","declarativeNetRequestFeedback","declarativeNetRequest"],host_permissions:[""],declarative_net_request:{rule_resources:[{id:"ruleset_1",enabled:!0,path:"rules/request_modifier_rule.json"}]},action:{default_popup:"popup.html",default_icon:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"}},browser_action:{default_icon:"icons/32.png",default_popup:"popup.html",theme_icons:[{dark:"icons/32.png",light:"icons/dark-32.png",size:32},{dark:"icons/48.png",light:"icons/dark-48.png",size:48},{dark:"icons/64.png",light:"icons/dark-64.png",size:64},{dark:"icons/128.png",light:"icons/dark-128.png",size:128},{dark:"icons/256.png",light:"icons/dark-256.png",size:256}]},icons:{"32":"icons/32.png","48":"icons/48.png","64":"icons/64.png","128":"icons/128.png","256":"icons/256.png"},browser_specific_settings:{gecko:{id:"{5efceaa7-f3a2-4e59-a54b-85319448e305}",strict_min_version:"63.0"}},key:"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7JPn78UfqI3xIIOPPLPS74UTzLfJL1gQM8hlk/deKWvFP/WqUBnPJPdhQeF45sFpI1OjO70nFqdATT4/RwYAiZK7G/E6m27MDVnhHjszfzReOuoAEn9J3RnE2xEx5pFhRFcelhnwTTLrrn90aaPcaMtNsgXtZA1Ggz/SnX9I4ZygqpJYjx3Ql2t6SyNK222oRQiKMT93Rrjgyc8RFA7FKXsWglG0TvseRjbmG5Jk5gDx+2/YTcWGqCDotQnWnkPj/dBO23UAX7IpyJK3FGYdkvWFih6OVClHIIWY8mfCjjwSGbXNQNesaa9F2hrzBZ5MRTj4m7yj76mGxuPHPIE8mwIDAQAB"};function hn(){return pi.version}function fi(){return X.runtime.getManifest().version}h();var qo=new Map,sa=class{fromType;logger;constructor(t,n=!1){this.logger=new Ro,n&&this.logger.setLevel("debug"),this.fromType=t,qo.has(t)||(qo.set(t,new Map),X.runtime.onMessage.addListener((a,r,o)=>{let u=a.from,i=a.to,s,c,l;r.tab&&r.tab.id&&(s=r.tab.id,u=`${u}:${s}`,c=r.tab.url,l=r.tab.active),this.logger.debug(`${a.to} received message [${a.payload.method}] from ${a.from}`,a.payload.data?a.payload.data:" ");let g=il(i),{type:p,name:f}=g;if(p!==t)return!1;let m=il(u),v=qo.get(p).get(f);if(!v)return this.logger.debug(`no message handler for ${p}:${i}, but it's ok`),!1;let{messageHandler:b,sync:S}=v,A={type:t,name:m.name,id:s,url:c,active:l};if(S){try{let N=b(a.payload,A);o({ok:!0,data:N})}catch(N){o({ok:!1,errorName:N.name,errorMessage:N.message,errorDetails:N.details})}return!1}else return b(a.payload,A).then(N=>{o({ok:!0,data:N})}).catch(N=>{o({ok:!1,errorName:N.name,errorMessage:N.message,errorDetails:N.details})}),!0}))}getConnection(t,n,a){let r=!1;a&&a.sync&&(r=!0);let o=this.fromType,u=qo.get(o);if(u.has(t))return u.get(t).connectionInstance;{let i=new ul(`${o}:${t}`,this.logger);return qo.get(o).set(t,{messageHandler:n,sync:r,connectionInstance:i}),i}}},ul=class{from;logger;constructor(t,n){this.from=t,this.logger=n}async sendMessage(t,n){let a=il(t),{type:r,id:o}=a;if(r!=="content_script"){let u={to:t,from:this.from,payload:n};this.logger.debug(`${u.from} send message [${u.payload.method}] to ${u.to}`,u.payload.data?u.payload.data:" ");try{let i=await X.runtime.sendMessage(u);return Im(u,i,this.logger)}catch(i){if(r==="popup"){let s=`popup ${t} is not active, so the message does not send, ignore this error, ${JSON.stringify(n)}`;return this.logger.debug(s,n,t,i),Promise.resolve({message:s})}else throw i}}else{let u={from:this.from,to:t,payload:n};this.logger.debug(`${u.from} send message [${u.payload.method}] to ${u.to}`,u.payload.data?u.payload.data:" ");let i=await X.tabs.sendMessage(o,u);return Im(u,i,this.logger)}}};function Im(e,t,n){if(t){if(t.ok)return n.debug(`${e.from} received response from ${e.to}:`,t.data?t.data:" "),t.data;throw new xt(t.errorName||"UnknownError",t.errorMessage||"Unknown error",t.errorDetails)}else throw new xt("noResponse","Unknown error")}function il(e){let t=e.split(":");if(t.length<2)throw new Error("not a valid to string");let n={type:t[0],name:t[1]};if(t[0]==="content_script"){let a=parseInt(t[2]);if(!isNaN(a))n.id=a;else throw new Error("tab id not a valid number")}return n}var hi;function N9(){return hi||(hi=new sa("content_script",!1).getConnection("pure_main",()=>{}),hi)}var Om="G-MKMD9LWFTR";async function Wo(e,t){try{let n=Ke();if(n.INSTALL_FROM==="firefox_store")return;let r=me(),o=pt(),u=n.PROD==="1",i="sitc4WmvShWYwfU0dANM3Q",s=await Ht("fakeUserId","");s||(s=await ia("fakeUserId",""),s&&await $e("fakeUserId",s));let c=hn(),l=new Date,g=await Ht("installedAt","");g||(g=await ia("installedAt",""),g&&await $e("installedAt",g)),s?g||(g=new Date(0).toISOString(),await $e("installedAt",g)):(s=U9(32),await $e("fakeUserId",s)),g||(g=l.toISOString(),await $e("installedAt",g));let p=new Date(g),f=Nm(p),m=Nm(l),y=f===m,v=l.getTime()-p.getTime()<7*24*60*60*1e3,b=`https://www.google-analytics.com/mp/collect?measurement_id=${Om}&api_secret=${i}`;u||(b=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${Om}&api_secret=${i}`);let S="";typeof navigator<"u"&&(S=window.navigator.userAgent);let A=vr.parse(S),N=t.map(x=>{let E=x.params||{};return A.os&&(E.os_name=A.os.name||"unknown",E.os_version=A.os.version||"unknown",E.os_version_name=A.os.versionName||"unknown"),A.browser&&(E.browser_name=A.browser.name||"unknown",E.browser_version=A.browser.version||"unknown"),A.platform&&(E.platform_type=A.platform.type||"unknown"),A.engine&&(E.engine_name=A.engine.name||"unknown",E.engine_version=A.engine.version||"unknown"),c&&(E.version=c),n.INSTALL_FROM&&(E.install_from=n.INSTALL_FROM),f&&(E.install_day=j9(p)),E.userscript=r.toString(),y?E.is_new_user_today="1":E.is_new_user_today="0",v?E.is_new_user_this_week="1":E.is_new_user_this_week="0",o?E.main_frame=0:E.main_frame=1,{...x,params:E}}),_=await bi({responseType:"text",url:b,method:"POST",body:JSON.stringify({client_id:s,user_id:s,events:N})})}catch{}}function U9(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r",""],limit:5e3},custom:{placeholderDelimiters:["{","}"]},bing:{maxTextLengthPerRequest:1800,placeholderDelimiters:["","","b"]},deeplx:{limit:3},d:{immediateTranslationTextCount:0},papago:{placeholderDelimiters:["{","}"]},dpro:{apiUrl:"https://api.deepl.com/jsonrpc"},openai:{placeholderDelimiters:["{{","}}","b"],immediateTranslationTextCount:3e3,translationDebounce:300,interval:1350,prompt:`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: {{text}}`,maxTextGroupLengthPerRequest:1,newlinePlaceholderDelimiters:[` @@ -4276,72 +4276,74 @@ ${u}} ?`]}},shortcuts:{toggleTranslatePage:"Alt+A",toggleTranslateTheWholePage:"Alt+W",toggleOnlyTransation:"",toggleTranslateToThePageEndImmediately:"",toggleTranslationMask:""},tempTranslateDomainMinutes:0,immediateTranslationPattern:{matches:["www.tumblr.com","twitter.com","*.twitter.com","medium.com","*.medium.com","www.facebook.com","www.youtube.com","m.youtube.com","mail.google.com","discord.com","google.com","facebook.com","*.facebook.com","web.telegram.org","github.com","*.instagram.com","instagram.com","*.slack.com","https://old.reddit.com/","https://www.reddit.com/r/popular/","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/","https://www.reddit.com/.compact","https://app.immersivetranslate.com/pdf*"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},translationParagraphLanguagePattern:{matches:["onboarding.immersivetranslate.com","www.reddit.com","old.reddit.com","twitter.com","www.tumblr.com","*.twitter.com","medium.com","*.medium.com","github.com","gist.github.com","www.facebook.com","www.youtube.com","m.youtube.com","read.readwise.io","www.inoreader.com","mail.google.com","google.com","discord.com","*.instagram.com","instagram.com","web.telegram.org","web.whatsapp.com","*.slack.com","*.indeed.com","outlook.live.com"],excludeMatches:[],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],selectorExcludeMatches:[]},sourceLanguageUrlPattern:{},generalRule:{_comment:"",enableSubtitle:!0,skipEditableCheck:!1,mutationObserverLimitTargetSelectors:[],condition:{},normalizeBody:"",mutationExcludeSelectors:["span.highlighter--highlighted","span.highlighter-ext","mark","msreadoutspan"],useIframePostMessage:!0,searchEnhancementConfig:[],injectedCss:[],isOnBoardingPage:!1,isEbook:!1,isEbookBuilder:!1,ignoreZhCNandZhTW:!1,showSponsorOnSafari:!1,noTranslateRegexp:["^\\d+.+ago$","^\\d+\\s+MIN\\s+READ$"],waitForSelectors:[],isInjectOptionsUrl:!1,isInjectVersion:!1,isInjectMeta:!1,waitForSelectorsTimeout:3e3,pairs:{},aiRule:{},isSubtitleBuilder:!1,minZIndex:0,initTranslationServiceAsSoonAsPossible:!0,targetWrapperTag:"font",additionalInjectedCss:[],isTranslateTitle:!0,enableSearchEnhancement:!0,searchEnhancementSelector:"#rhs",languageDetectMinTextCount:50,wrapperPrefix:"smart",wrapperSuffix:"smart",isPdf:!1,isTransformPreTagNewLine:!1,urlChangeDelay:50,mutationChangeDelay:10,mainFrameMinTextCount:50,mainFrameMinWordCount:5,visibleDelay:0,additionalStayOriginalSelectors:["span.katex","span.notranslate",".MathJax_Preview",".MathJax",".mwe-math-element","span[translate=no]","em[translate=no]","code[translate=no]","span.math.inline","span.math.display",".ltx_Math",".mathjax-block",".MathJax_CHTML","kbd","span.pretex-inline"],translationBlockStyle:"",isShowUserscriptPagePopup:!0,observeUrlChange:!1,paragraphMinTextCount:4,paragraphMinWordCount:2,shadowRootSelectors:[],blockMinTextCount:24,blockMinWordCount:4,asideMaxTextCount:1e3,asideMaxWordCount:200,asideMaxTextCountPerParagraph:67,asideMaxWordCountPerParagraph:12,lineBreakMaxTextCount:0,globalAttributes:{},inputTutorialsText:"",inputTutorialsSelectors:[],globalMeta:{},globalStyles:{".sr-only":"display:none"},initialGlobalAttributes:{},initialSelectorGlobalAttributes:{header:{translate:"no"},"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},selectors:[],preWhitespaceDetectedTags:["DIV","SPAN"],stayOriginalSelectors:[],additionalSelectors:["h1","section h2","section h3","section h4","main h2","main h3","main h4",".article-title",".article-subtitle",".article_title",".article_subtitle",".article__title",".articleTitle",".Article__content",".titleLink",".summary",".headline",".page-content","aside.note","aside.article-comments","aside.onebox"],atomicBlockTags:[],excludeSelectors:[],additionalExcludeSelectors:[".social-share",".breadcrumbs",".post__footer",".btn",".reference-citations",".share-nav",".o-share","[data-toolbar=share]","rp","rt",".prism-code","[role=code]","#omni-extension",".omni-item","div[data-paste-markdown-skip]","table.highlight","div[class^=codeBlockContent]","div[class^=codeBlockLines]","div[class^=token-line]","#liuchan-window > .liuchan-container > *",".material-icons","i.fa","i[class^=fa-]",".notranslate","[translate=no]",".navmenu-container",".google-symbols","markerow8"],translationClasses:[],atomicBlockSelectors:[],excludeTags:["TITLE","LINK","SCRIPT","STYLE","TEXTAREA","SVG","svg","G","NOSCRIPT","INPUT","BUTTON","BASE","SELECT","OPTION","HR","PRE","KBD","WBR","RT","RP","META","MATH","TTS-SENTENCE","AIO-CODE"],bodyTranslateTags:["FOOTER","ASIDE","BUTTON","NAV"],forceTranslateTags:[],metaTags:["META","SCRIPT","STYLE","NOSCRIPT"],additionalExcludeTags:[],stayOriginalTags:["CODE","TT","IMG","SUP","SUB","SAMP"],additionalStayOriginalTags:[],inlineTags:["A","ABBR","FONT","ACRONYM","B","INS","DEL","RUBY","RP","RB","BDO","MARK","BIG","RT","NOBR","CITE","DFN","EM","I","LABEL","Q","S","SMALL","SPAN","STRONG","SUB","SUP","U","KBD","TT","VAR","IMG","CODE","SCRIPT","STYLE","LINK","TIME","META","WBR","RELIN-HC","RELIN-HIGHLIGHT","RELIN-ORIGIN","RELIN-TARGET","XQDD_HIGHLIGHT_NEW_WORD","NOBR"],additionalInlineTags:[],extraInlineSelectors:[],additionalInlineSelectors:[".MathJax_Preview",".MathJax",".highlighter--highlighted"],extraBlockSelectors:["turbo-frame","readme-toc","#hs_cos_wrapper_post_body","#hs_cos_wrapper_post_body"],allBlockTags:["BODY","HGROUP","CONTENT","ADDRESS","ARTICLE","ASIDE","DETAILS","BLOCKQUOTE","CANVAS","DD","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","HEADER","FORM","HR","MAIN","SUMMARY","NAV","NOSCRIPT","PRE","SECTION","TABLE","TFOOT","UL","VIDEO","P","DIV","H1","H2","H3","H4","H5","H6","UL","LI","OL","BR","PICTURE","TBODY","TR","TD","TH","SOURCE","C-WIZ","BUTTON","TURBO-FRAME","README-TOC"],mutationObserverContainerSelectors:[],pdfNewParagraphLineHeight:2.4,pdfNewParagraphIndent:1.2,pdfNewParagraphIndentRightIndentPx:130,fingerCountToToggleTranslagePageWhenTouching:4,fingerCountToToggleTranslationMaskWhenTouching:0,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:0,mouseHoverHoldKey:"Off"},rules:[{id:"immersive",matches:["https://immersivetranslate.com","https://onboarding.immersivetranslate.com"],isInjectVersion:!0,isInjectMeta:!0},{id:"simpread",selectorMatches:"div.simpread-read-root.simpread-read-root-show > sr-read",mainFrameSelector:"div.simpread-read-root.simpread-read-root-show > sr-read"},{id:"pdf",selectorMatches:["meta[name='immersive-translate-pdf-viewer'][content='true']"],translationMode:"translation",skipEditableCheck:!0,selectors:["p"],wrapperPrefix:"",isInjectVersion:!0,isPdf:!0},{id:"txt",matches:["*://*/*.txt","file://*/*.txt"],selectorMatches:["body > pre"],isTransformPreTagNewLine:!0,"excludeTags.remove":["PRE"]},{id:"hangejp",matches:["arad.hange.jp","arad.nexon.co.jp","oapi.dingtalk.com","login.dingtalk.com"],useIframePostMessage:!1},{id:"preSites",matches:["mail.jabber.org","antirez.com"],isTransformPreTagNewLine:!0},{id:"wikipedia",matches:"*.wikipedia.org",paragraphMinWordCount:2,paragraphMinTextCount:4,injectedCss:[".immersive-translate-target-translation-block-wrapper { display: block; }"],excludeSelectors:[".mw-editsection",".mw-cite-backlink","#p-lang-btn","#right-navigation","#p-associated-pages",".vector-header"],stayOriginalSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"],extraInlineSelectors:[".chemf",".mwe-math-element","[role=math]",".nowrap"]},{id:"twitter",matches:["twitter.com","mobile.twitter.com","tweetdeck.twitter.com","https://platform.twitter.com/embed*"],additionalStayOriginalSelectors:['[data-testid="tweetText"] a',"[data-testid='UserDescription'] a","[data-testid='HoverCard'] a","[data-testid='UserCell'] a","[data-testid='birdwatch-pivot'] a"],blockMinTextCount:0,blockMinWordCount:0,excludeSelectors:["[aria-describedby][role=button]","header","[data-testid='radioGroupplayback_rate'] div","[data-testid='userFollowIndicator']","[class='css-901oao r-14j79pv r-37j5jr r-n6v787 r-16dba41 r-1cwl3u0 r-bcqeeo r-qvutc0']"],extraBlockSelectors:['[data-testid="tweetText"] div.r-6koalj'],extraInlineSelectors:['[data-testid="tweetText"] div.r-xoduu5','[data-testid="tweetText"] span','[data-testid="UserDescription"] div',"[data-testid='HoverCard'] div[dir=auto] div","[data-testid='HoverCard'] span[dir=auto] div"],globalStyles:{"[data-testid='card.layoutLarge.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)":"-webkit-line-clamp: unset;","[data-testid='tweetText']":"-webkit-line-clamp: unset;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,useIframePostMessage:!1,observeUrlChange:!1,paragraphMinTextCount:2,paragraphMinWordCount:1,selectors:['[data-testid="tweetText"]',".tweet-text",".js-quoted-tweet-text","[data-testid='card.layoutSmall.detail'] > div:nth-child(2)","[data-testid='developerBuiltCardContainer'] > div:nth-child(2)","[data-testid='card.layoutLarge.detail'] > div:nth-child(2)","[data-testid='cellInnerDiv'] div[data-testid='UserCell'] > div> div:nth-child(2)","[data-testid='UserDescription']","[data-testid='HoverCard'] div[dir=auto]","[data-testid='HoverCard'] span[dir=auto]","[data-testid='HoverCard'] [role='dialog'] div[dir=ltr]","[data-testid='birdwatch-pivot'] div[dir=ltr]"]},{id:"threads",matches:"www.threads.net",selectors:["p",".x1npkx4u.x1exu5d8",".xw7yly9",".xgkxs2y"],stayOriginalSelectors:[".x1rg5ohu",".xat24cr.xdj266r a"],"excludeSelectors.add":[".x6s0dn4.x78zum5",".xpvyfi4.x1npkx4u.x1ms6mhf"],globalStyles:{span:"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"stackoverflow",matches:["stackoverflow.com","*.stackexchange.com","superuser.com","askubuntu.com","serverfault.com"],extraBlockSelectors:["span.comment-copy"],excludeSelectors:["a.comment-user","span.comment-date","div.s-prose.js-post-body + div",".bottom-notice","div[data-campaign-name=stk]"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"appleDeveloper",matches:"developer.apple.com/documentation/*",selectors:[".container","h3.title","div.content"]},{id:"hackerNews",matches:"news.ycombinator.com",selectors:[".titleline > a",".comment > .commtext",".toptext","a.hn-item-title",".hn-comment-text",".hn-story-title"],excludeSelectors:[".reply"]},{id:"quora",matches:["*.quora.com","quora.com"],excludeSelectors:[".dom_annotate_multifeed_bundle_AskQuestionPromptBundle",".dom_annotate_feed_switcher","[class='q-box qu-py--small qu-color--gray_light']","[class='q-box spacing_log_answer_header']","[class='q-box qu-flex--auto']","[class='q-text qu-dynamicFontSize--small qu-mt--small qu-color--gray_light qu-passColorToLinks']",".AnswerFooter___StyledFlex-sc-2xbo88-0","[class='q-box qu-mb--small']"],globalStyles:{".qu-truncateLines--3":"-webkit-line-clamp: unset;"}},{id:"oldReddit",matches:["old.reddit.com/*/.compact","old.reddit.com/.compact","www.reddit.com/*/.compact","www.reddit.com/.compact"],selectors:[".title > a",".usertext-body"],detectParagraphLanguage:!0},{id:"otherOldReddit",matches:"old.reddit.com",selectors:["p.title > a","[role=main] .md-container"],detectParagraphLanguage:!0},{id:"redditList",matches:["https://www.reddit.com/r/*/comments/*/*","https://www.reddit.com/","https://www.reddit.com/hot/","https://www.reddit.com/new/","https://www.reddit.com/top/"],excludeMatches:["https://www.reddit.com/r/*/wiki/*"],observeUrlChange:!0,selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md",".RichTextJSON-root","div[slot=title]","div[slot=text-body]","p.title > a","[role=main] .md-container"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none"},waitForSelectors:["[data-testid=post_author_link]"]},{id:"reddit",matches:"www.reddit.com",selectors:["h1",".PostHeader__post-title-line","[data-click-id=body] h3","[data-click-id=background] h3","[data-testid=comment]","[data-adclicklocation='title'] h3","[data-adclicklocation=media]",".PostContent",".post-content",".Comment__body","faceplate-batch .md","div[slot=title]","div[slot=text-body]","p.title > a","[role=main] .md-container"],paragraphMinTextCount:5,paragraphMinWordCount:2,excludeMatches:["https://www.reddit.com/r/*/wiki/*","https://www.reddit.com/settings/*"],detectParagraphLanguage:!0,globalStyles:{"div.XPromoBottomBar":"display:none"}},{id:"reuters",matches:"www.reuters.com",excludeSelectors:["[promotext]","[data-testid=Leaderboard]","[data-testid=HomeTickerV2]","[data-testid=SiteFooter]"]},{id:"npmjs",matches:"https://www.npmjs.com/package/*",selectors:["#tabpanel-readme > div:first-child"]},{id:"github",matches:"github.com",useIframePostMessage:!1,excludeMatches:["https://github.com/*/*/settings","https://github.com/settings/*","https://github.com/sponsors/*","https://github.com/readme/*","https://github.com/readme/"],selectors:["h1","[aria-label=Issues] .markdown-title","[aria-labelledby=discussions-list] .markdown-title","h3 .markdown-title",".markdown-body",".Layout-sidebar p","div > span.search-match","li.repo-list-item p","#responsive-meta-container p","article p","div.repo-description p","[itemprop=description]",".integrations-auth-wrapper"],atomicBlockSelectors:["[itemprop=description]"],excludeSelectors:[".css-truncate","[data-test-selector='commit-tease-commit-message']","[data-test-selector='create-branch.developmentForm']","div.Box-header.position-relative","div.blob-wrapper-embedded","div.Box.Box--condensed.my-2","div.jp-CodeCell",'[aria-label="Account"] .markdown-title',".js-repos-container .markdown-title","a.anchor","div.file-navigation + div.Box"],extraBlockSelectors:[],extraInlineSelectors:["g-emoji","a.anchor"],stayOriginalTags:["CODE","TT","G-EMOJI","IMG","SUP","SUB"],detectParagraphLanguage:!0},{id:"githubNotebook",matches:"notebooks.githubusercontent.com",useIframePostMessage:!1,excludeSelectors:["div.jp-CodeCell"]},{id:"facebook",matches:"www.facebook.com",excludeMatches:["https://www.facebook.com/business/*","https://www.facebook.com/help*"],selectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]"],atomicBlockSelectors:["div[dir=auto][style]","div[dir=auto][class]","span[lang]"],insertPosition:"afterend",preWhitespaceDetectedTags:["DIV","SPAN"],extraBlockSelectors:["span.x1vvkbs"],excludeSelectors:["[role=button]"],translationClasses:["immersive-translate-text"],detectParagraphLanguage:!0},{id:"youtubeMobile",matches:"m.youtube.com",selectors:[".comment-text","#content-text",".media-item-headline",".slim-video-information-title",".caption-window",".caption-visual-line",".yt-spec-button-view-model",".yt-core-attributed-string > span",".title"],"excludeTags.remove":["BUTTON"],condition:{enableSubtitle:{false:{"selectors.remove":[".caption-window",".caption-visual-line"]}}},wrapperPrefix:"",wrapperSuffix:"",observeUrlChange:!0,atomicBlockSelectors:[".comment-text"],globalStyles:{".comment-text":"max-height:unset;",".media-item-headline":"max-height:unset;-webkit-line-clamp:unset;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }"],extraBlockSelectors:[".caption-visual-line"]},{id:"youtube",matches:"www.youtube.com",blockMinTextCount:0,blockMinWordCount:0,detectParagraphLanguage:!0,excludeSelectors:["[class^='lln-']"],globalStyles:{"#video-title":"-webkit-line-clamp: unset;max-height: unset;","h1.ytd-watch-metadata":"-webkit-line-clamp: unset;max-height: unset;","yt-formatted-string#video-title":"-webkit-line-clamp: unset;max-height: unset;","ytd-expander.ytd-comment-renderer":"--ytd-expander-max-lines: 1000;"},injectedCss:[".immersive-translate-target-wrapper img { width: 16px; height: 16px }",".metadata-snippet-container {max-height: unset !important;}"],isTranslateTitle:!1,observeUrlChange:!0,selectors:["yt-formatted-string[slot=content].ytd-comment-renderer","yt-formatted-string.ytd-video-renderer","yt-formatted-string#content-text","h1","yt-formatted-string#video-title","span#video-title","a#video-title","yt-formatted-string.ytd-transcript-segment-renderer","#description-inline-expander > yt-attributed-string > span","ytd-notification-renderer .message","#message",".caption-window",".caption-visual-line"],extraBlockSelectors:["yt-formatted-string.ytd-transcript-segment-renderer",".caption-visual-line"],condition:{enableSubtitle:{false:{"selectors.remove":[".caption-window",".caption-visual-line"]}}},urlChangeDelay:2e3,wrapperPrefix:"
",wrapperSuffix:""},{id:"instagramPost",matches:["https://www.instagram.com/p/*","https://www.instagram.com/reels/*"],blockMinTextCount:1,paragraphMinTextCount:2,selectors:["h1","div[class='x9f619 xjbqb8w x78zum5 x168nmei x13lgxp2 x5pf9jr xo71vjh x1uhb9sk x1plvlek xryxfnj x1c4vz4f x2lah0s xdt5ytf xqjyukv x1cy8zhl x1oa3qoh x1nhvcw1'] > span[class='x1lliihq x1plvlek xryxfnj x1n2onr6 x193iq5w xeuugli x1fj9vlw x13faqbe x1vvkbs x1s928wv xhkezso x1gmr53x x1cpjm7i x1fgarty x1943h6x x1i0vuye xvs91rp xo1l8bm x5n08af x10wh9bi x1wdrske x8viiok x18hxmgj']","span[class='x193iq5w xeuugli x1fj9vlw x13faqbe x1vvkbs xt0psk2 x1i0vuye xvs91rp xo1l8bm x5n08af x10wh9bi x1wdrske x8viiok x18hxmgj']"],wrapperPrefix:"
"},{id:"otherInstagram",blockMinWordCount:1,matches:"https://www.instagram.com/*",paragraphMinTextCount:2,selectors:["h1","article span[dir=auto] > span[dir=auto]","._ab1y"],wrapperSuffix:""},{id:"1paragraph",matches:"1paragraph.app",selectors:["#book"]},{id:"poeditor",matches:"https://poeditor.com/projects/*",selectors:[".comment-body",".reference_language .source-string"]},{id:"substack",matches:["*.substack.com","newsletter.rootsofprogress.org"],selectorMatches:["link[href^='https://substackcdn.com/bundle/'][rel=preload]"],excludeSelectors:["[style^=top]",".publication-footer",".subscribe-footer",".main-menu",".navbar-title-link","[data-testid='navbar']",".navbar-title",".captioned-button-wrap",".subscription-widget-wrap",".tweet-header",".tweet-link-bottom",".expanded-link",".meta-subheader",".comment-meta",".comment-actions"],globalStyles:{".reader2-clamp-lines":"max-height: unset; -webkit-line-clamp: unset;","[class*='clamp-']":"max-height: unset; -webkit-line-clamp:unset;",".blurb-text":"max-height: unset;",".comment-body":"max-height: unset;"},extraBlockSelectors:[".reader2-post-title",".tweet-link-top",".tweet-link-bottom",".expanded-link"]},{id:"seekingalpha",matches:["seekingalpha.com/article/*","seekingalpha.com/news/*"],selectors:["[data-test-id=card-container]","[data-test-id=comments-section]"],excludeSelectors:["[data-test-id=post-page-meta]","header > div:first-child"]},{id:"hnAlgolia",matches:"hn.algolia.com",selectors:[".Story_title > a:first-child",".Story_comment > span"]},{id:"readwise",matches:"read.readwise.io",selectors:["div[class^='_titleRow_']","#document-text-content"],detectParagraphLanguage:!0},{id:"inoreader",matches:["www.inoreader.com","*.inoreader.com"],selectors:[".article_header_title",".article_title_link",".article_content",".article_magazine_title_link",".blog-post-page"],excludeMatches:["https://www.inoreader.com/features/"],observeUrlChange:!1,globalStyles:{".article_title_link":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"aha",matches:"*.ideas.aha.io",excludeSelectors:[".comment-header",".vote-status",".idea-meta",".filters-title",".ideas-showing-count",".my-ideas-filters-wrapper",".statuses-filters-wrapper",".categories-filters-wrapper","[class^='attachment']","span[class^='attachment-name']"]},{id:"googleScholar",matches:["scholar.google.*/*","scholar.google.com.*/*","scholar.google.co.*/*"],wrapperPrefix:` `,selectors:["h3 a[data-clk]","div.gs_rs","td a.gsc_a_at","td div.gs_gray:last-of-type","div.gsc_oci_value","#gs_opinion"],extraInlineSelectors:["br"],atomicBlockSelectors:["h3 a[data-clk]"]},{id:"googleMail",matches:"mail.google.com",detectParagraphLanguage:!0,selectors:["h2[data-thread-perm-id]","span[data-thread-id]","div[data-message-id] div[class='']",".messageBody","#views"],globalStyles:{".Nk":"height:auto!important;",".kf":"white-space:unset!important;"}},{id:"googleNews",matches:"news.google.com",blockMinTextCount:26,blockMinWordCount:5,globalStyles:{".MCAGUe":"height: auto;",".To2ZZb.DbQnIe":"height: unset;",".cp7Yvc > h2":"display: block;",".oovtQ":"height: auto;",h4:"-webkit-line-clamp: unset;"},excludeSelectors:[".EyERq",".AOl7G.eejsDc","[aria-label='Home']","[aria-label='For you']","[aria-label='Following']","[aria-label='World']","[aria-label='Local']",".gb_Fc",".wBQf7b",".yPI8Rb",".jKHa4e",".u43Gd",".Zgjpyb","[role='button']","[jsname='rymPhb']",".cbz1ld",".VfPpkd-P5QLlc",".XvhY1d"]},{id:"outlook",matches:"outlook.live.com",excludeSelectors:[".jHAG3.XG5Jd",".OZZZK",".lDdSm"]},{id:"producthunt",matches:"www.producthunt.com",excludeMatches:"https://www.producthunt.com/stories/*",selectors:["h2","div[class^='styles_htmlText__']","[class^='styles_tagline']","a[href^='/discussions/'].fontWeight-600","button[class^='styles_textButton'] > div > span","h5 + p","div[data-test=product-item-name] + div",".noOfLines-1,.noOfLines-2,.noOfLines-3",".fontWeight-600","[class*='styles_dropdown']","[class*='styles_aboutText']"],globalStyles:{"h5 + p":"height:unset;",".noOfLines-1,.noOfLines-2,.noOfLines-3":"-webkit-line-clamp:unset;"},"excludeTags.remove":["PRE"]},{id:"codeforces",matches:"https://codeforces.com/*",stayOriginalTags:["[class^='MathJax']"]},{id:"arxivLabs",matches:"*.labs.arxiv.org/*",stayOriginalTags:["math","semantics","mrow","mo","mfrac","msup","mi","mn","msqrt"]},{id:"discord",matches:"https://discord.com/channels/*",isTranslateTitle:!1,selectors:["li[id^=chat-messages] div[id^=message-content]","div[class^=headerText]","section[aria-label='Search Results'] div[id^=message-content]"],extraBlockSelectors:["[class^='embedFieldValue']","li[class^='card'] div[class^='message']","[data-list-item-id^='forum-channel-list'] div[class^='headerText']"],globalStyles:{"div[class^=headerText]":"max-height: unset;","div[class^=message]":"max-height: unset;","div[class^=text]":"max-height: unset;","h3[data-text-variant='heading-lg/semibold']":"-webkit-line-clamp: none;"},detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:"",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"telegram",matches:["web.telegram.org/z/*","web.telegram.org/a/*"],isTranslateTitle:!1,selectors:[".text-content",".message",".reply-markup-button-text",".bot-commands-list-element-description"],detectParagraphLanguage:!0},{id:"telegramK",matches:["web.telegram.org/k/*","web.telegram.org/k/"],selectors:[".message",".reply-markup-button-text",".bot-commands-list-element-description"],detectParagraphLanguage:!0},{id:"githubGist",matches:"gist.github.com",selectors:[".markdown-body",".readme"],detectParagraphLanguage:!0},{id:"lobste",matches:"lobste.rs",excludeMatches:["https://lobste.rs/about","https://lobste.rs/chat"],selectors:[".u-repost-of",".comment_text",".story_text"]},{id:"slack",matches:"*.slack.com",selectors:[".p-rich_text_block",".p-message_pane__foreword",".c-alert__message","[data-qa=message_attachment_text]"],additionalStayOriginalSelectors:["[data-qa=emoji]"],detectParagraphLanguage:!0},{id:"artstationArtwork",matches:"www.artstation.com/artwork/*",excludeSelectors:".project-description a",selectors:[".project-description","div.project-comment-text"],detectParagraphLanguage:!0},{id:"artstationLearning",matches:"www.artstation.com/learning/courses/*",additionalSelectors:["footer.learning-course-description.ng-star-inserted > span"],excludeSelectors:[".learning-card-meta"]},{id:"artstationBlog",matches:["https://www.artstation.com/blogs","https://www.artstation.com/blogs/*"],detectParagraphLanguage:!0,additionalSelectors:[".comment-item-body"],atomicBlockSelectors:[".author-headline",".author-location"],excludeSelectors:["blog-card-thumbnail","blog-card-header",".blog-card-author",".blog-card-meta",".blog-view-header",".blog-grid-title",".post-meta-header"]},{id:"figmaCommunity",matches:"www.figma.com/community/*",normalizeBody:"div.ql-editor[contenteditable='false']",excludeSelectors:["div[class*='metadataRight']","div[class*='commentMetaAndOptions']"],globalStyles:{"div[class*='mini_cardBottomRowSizing']":"height: 3em;"},additionalSelectors:["div[class*='mini_cardBottomRow_Metadata']"],stayOriginalSelectors:["[data-tooltip='tooltip-user-info']"]},{id:"googleIndex",matches:["https://www.google.com/","https://www.google.com.hk/"],excludeSelectors:["#gb","#SIvCob"],inputTutorialsText:"\u8BD5\u8BD5\u8F93\u5165\u4E2D\u6587\u540E\u5FEB\u901F\u8FDE\u51FB 3 \u6B21\u7A7A\u683C\u952E\u7FFB\u8BD1\uFF08\u4EC5\u63D0\u793A\u4E00\u6B21\uFF09",inputTutorialsSelectors:["textarea#APjFqb"]},{id:"googleSearch",matches:"www.google.*/search*",blockMinTextCount:32,blockMinWordCount:3,wrapperSuffix:"",detectParagraphLanguage:!0,excludeSelectors:["a h3 + div","div#sfooter","a[role=presentation] > div > div:first-child",".b5ZQcf",".CEMjEf",".MgUUmf.NUnG9d","#result-stats","[role=navigation]","div.sCuL3","div.eFM0qc.BCF2pd","div.WZ8Tjf","div.adDDi","#headerSection","#rateChatDiv","[id=bres]",".title-D5Lgyj","[data-attrid='VisualDigestVideoResult']",".search-enhance-WDIEkP h4",".SPZz6b h2",".CtCigf",".VLkRKc",".EbH0bb",".Wr0c6d",".jleFbf","#searchform",".yg51vc",".CbAZb"],extraBlockSelectors:[".MUFPAc"],globalStyles:{".V82bz":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px",".pe7FNb":"-webkit-line-clamp: unset;",".promotion-3PDMAb":"display: none;",".uAKcGb":"-webkit-line-clamp: unset;max-height: unset;margin-bottom:30px","div[data-content-feature='1'] > div":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:2']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:3']":"-webkit-line-clamp: unset;max-height: unset;","div[style='-webkit-line-clamp:4']":"-webkit-line-clamp: unset;max-height: unset;",".Pw4Ldf.RsCEN":"height:unset;",".related-question-pair":"overflow:auto;"},ignoreZhCNandZhTW:!0,isTranslateTitle:!1,searchEnhancementConfig:[{id:"google",urlMatch:"https://www\\.google\\..+/search",style:{source:"font-size:12px; margin-bottom: 6px;",enTitle:"margin-top:6px;font-size:14px;",searchTitle:"margin-top:6px;position:relative;padding-right:24px;",more:"color:#1a0dab;margin-top:8px;",enTitleClassName:"immersive-translate-search-enhancement-en-title"},keyword:{value:"[0]$1",matches:[{source:"url",matchRegex:"q=(.+?)&"}]},showCount:5}]},{id:"lowendtalk",matches:"lowendtalk.com",selectors:["[role=heading]","h1",".userContent"]},{id:"linkedinJobs",matches:"www.linkedin.com/jobs/*",selectors:["#job-details > span"]},{id:"linkedinFeed",matches:"https://linkedin.com/feed/*",selectors:["h1",".feed-shared-update-v2__description-wrapper"]},{id:"indiehackers",matches:"www.indiehackers.com",selectors:[".content","h1","h3.story__title",".feed-item__title-link",".article-body"]},{id:"libreddit",matches:"libreddit.de",selectors:["h2.post_title",".comment_body > .md"]},{id:"notionSite",matches:["notion.site","*.notion.site"],normalizeBody:"body",selectors:["div[data-block-id]"]},{id:"newyorker",matches:"www.newyorker.com",additionalSelectors:["h1","[data-testid=SummaryItemHed]"],excludeSelectors:["[data-testid=PersistentTop]","[data-testid=StackedNavigationHeader]"],urlChangeDelay:2e3},{id:"startme",matches:"start.me",selectors:[".rss-article__title",".rss-articles-list__article-link",".rss-showcase__title",".rss-showcase__text"]},{id:"scmp",matches:"www.scmp.com",additionalSelectors:[".info__subHeadline",".section-content h2"],globalStyles:{".topic__article-list":"height: unset;",".adverisers__adveriser":"height: unset;",".advertiser__content":"height: unset;",".content-title__link":"display:unset;overflow:unset;-webkit-line-clamp:unset;",".title__text":"max-height:unset; -webkit-line-clamp:unset;",".news-list-item__news-title":"max-height:unset; -webkit-line-clamp:unset;","a[class*='link'] > .link__headline":"max-height:unset; -webkit-line-clamp:unset;"}},{id:"lesswrong",matches:"www.lesswrong.com",extraBlockSelectors:["span.commentOnSelection"]},{id:"mastodon",matches:["mastodon.social","mastodon.online","kolektiva.social","indieweb.social","mastodon.world","infosec.exchange"],isTranslateTitle:!1,selectorMatches:["div#mastodon"],selectors:["div.status__content__text",".about__section__body",".content",".form-container",".account__header__extra"],globalAttributes:{"[class='notranslate app-holder']":{class:"app-holder"}},detectLanguage:!0},{id:"cnbc",matches:"www.cnbc.com",urlChangeDelay:1e3,globalStyles:{"div.Card-titleContainer > div":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"dailyDev",matches:"app.daily.dev",selectors:["h1",".typo-body","article h3","[class^=markdown_markdown]"],globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset"}},{id:"pornhub",matches:["*.pornhub.com","pornhub.com"],excludeMatches:["*.pornhub.com/insights/*","pornhub.com/insights/*"],extraBlockSelectors:[".trendingNow",".searchItem",".tagcloud > a"],detectParagraphLanguage:!0,wrapperPrefix:"
",wrapperSuffix:` `,globalStyles:{"span.title":"height:unset; max-height:unset;",".detailedInfo":"max-height:unset;",".pcVideoListItem":"max-height:unset;",".wrap":"height:unset;",".entry-header":"height:unset;",".entry-title > a":"height:unset;-webkit-line-clamp:unset;"}},{id:"yourporn",matches:"https://www.youporn.com/*",extraBlockSelectors:[".button"],globalStyles:{".video-box":"max-height:unset;",".video-box-title":"white-space:unset;"}},{id:"modelhub",matches:"https://www.modelhub.com/*",globalStyles:{".videoTitle":"height:unset;",a:"height:unset;"}},{id:"xvideos",matches:"https://www.xvideos.com/*",globalStyles:{".title":"-webkit-line-clamp:unset;max-height:unset;",".mozaique":"display:flex; flex-wrap:wrap;"},excludeSelectors:[".video-hd-mark"]},{id:"missav",matches:"https://missav.com/*",globalStyles:{".truncate":"white-space:unset;",".overflow-y-hidden":"max-height:unset;overflow-y:unset;"}},{id:"javbus",matches:"https://www.javbus.com/*",globalStyles:{".photo-info":"height:unset;"},excludeSelectors:[".item-tag","date"]},{id:"spankbang",matches:"https://spankbang.com/*",globalStyles:{".video-item > a":"white-space:unset;"},excludeSelectors:[".stats",".thumb"],extraBlockSelectors:[".searches > a",".tag > a",".extra > a",".positions > li"]},{id:"javdb",matches:"https://javdb*.com/*",globalStyles:{".video-title":"white-space:unset;"},excludeSelectors:[".video-number",".score",".has-addons"]},{id:"jable",matches:"https://jable.tv/*",globalStyles:{".title":"white-space:unset;max-height:unset;",".img-box > a":"position:relative;"}},{id:"netflav",matches:"https://netflav*.com/*",globalStyles:{".grid_title":"max-height:unset;"},extraBlockSelectors:[".genre_filter_item","button"]},{id:"czechvideo",matches:"https://czechvideo.co/*",globalStyles:{".short-story":"height:unset;",".short-title":"height:unset;"},globalAttributes:{header:{translate:"unset;"}}},{id:"weibo",matches:["weibo.com"],selectors:["div[class^='detail_wbtext']"]},{id:"medium",matches:["medium.com","*.medium.com"],selectorMatches:["meta[property='al:ios:url'][content^='medium://']"],urlChangeDelay:20,"additionalExcludeSelectors.remove":["i.fa","i[class^=fa-]",".navmenu-container",".google-symbols","markerow8"],selectors:["h1","h2","article section","[aria-hidden='false'] pre","article p"],excludeSelectors:["[aria-label='Post Preview Reading Time']",".al.b.bl.ag.bp",".al.b.bl.ag.ai"],globalStyles:{h2:"-webkit-line-clamp: unset;max-height:unset;","article p":"-webkit-line-clamp: unset;max-height:unset;"}},{id:"nitter",selectorMatches:["meta[property='og:site_name'][content='Nitter']"],selectors:[".tweet-content",".quote-text"]},{id:"economist",matches:"www.economist.com",extraInlineSelectors:["span[data-caps='initial']"],excludeSelectors:["footer.ds-footer"],injectedCss:["a::before {position:relative!important;}"]},{id:"healthline",matches:"www.healthline.com",excludeSelectors:[".icon-hl-trusted-source-after"]},{id:"ebay",matches:"www.ebay.com",excludeSelectors:["headers","[itemprop=offers]",".dne-itemtile-original-price"],paragraphMinTextCount:4,paragraphMinWordCount:2,globalStyles:{"[itemprop=name]":"-webkit-line-clamp: unset;max-height: unset;",".merch-item-title":"-webkit-line-clamp: unset;max-height: unset;"}},{id:"skinstore",matches:"www.skinstore.com",excludeSelectors:[".responsiveFlyoutMenu_levelOneLink"],paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"tripadvisor",matches:"www.tripadvisor.com",paragraphMinTextCount:4,paragraphMinWordCount:2},{id:"amazon",matches:"www.amazon.com",paragraphMinTextCount:4,paragraphMinWordCount:2,extraBlockSelectors:[".a-size-small.a-link-normal.page-banner-link.a-nowrap"],globalStyles:{".a-carousel-viewport":"height:unset;","[class*='clamp']":"max-height: unset;-webkit-line-clamp: unset;","[data-rows]":"max-height: unset;-webkit-line-clamp: unset;","[data-a-expander-name='review_text_read_more']":" max-height: unset;"},excludeSelectors:["#navFooter","#navbar-main",".s-price-instructions-style","[class*='star']","[data-hook='acr-average-stars-rating-text']",".a-color-price"]},{id:"visualstudioMarketplace",matches:"marketplace.visualstudio.com",additionalExcludeSelectors:[".core-info-second-row",".core-info-third-row",".meta-data-list",".item-title",".breadcrumb",".itemDetails-right",".ux-user-name",".ux-updated-date",".ux-item-second-row-wrapper",".stats-and-offer",".header-container"],atomicBlockSelectors:[".core-info-cell > div.name"],globalStyles:{".item-details-control-root.ux-item-shortdesc":"height: unset; overflow: visible; max-height:unset;"}},{id:"bloomberg",matches:"www.bloomberg.com",urlChangeDelay:2e3,excludeSelectors:[".ticker-bar","nav","[aria-label=Banner]","aside","[data-component=ticker-bar]","footer.bb-global-footer"]},{id:"baiduXueshu",matches:"xueshu.baidu.com",globalStyles:{".abstract_wr":"height: unset; overflow: visible; max-height:unset;"}},{id:"sciencedirect",matches:"www.sciencedirect.com",urlChangeDelay:2e3,stayOriginalSelectors:["span.display","span.math"],extraBlockSelectors:["span.captions","span[id^=cap]"]},{id:"thehighestofthemountains",matches:"www.thehighestofthemountains.com",extraBlockSelectors:"div"},{id:"telegraph1",matches:"te.legra.ph",normalizeBody:"div.ql-editor[contenteditable='false']",urlChangeDelay:500},{id:"telegraph2",matches:["telegra.ph"],normalizeBody:"div.ql-editor[contenteditable='false']",wrapperPrefix:` -`},{id:"annasArchive",matches:["*.annas-archive.org","annas-archive.org"],selectors:[],globalStyles:{"div[id^='link-index-']":"height: unset; max-height: unset;","main > div > div[class*='h-[125]']":"height:auto"},normalizeBody:"body",extraBlockSelectors:["a.custom-a"]},{id:"explainshell",matches:["explainshell.com"],selectors:["[class='help-box']"]},{id:"apnews",matches:["apnews.com"],urlChangeDelay:2e3},{id:"googlePlay",matches:"play.google.com",excludeSelectors:[".vlGucd",".ubGTjb"],globalStyles:{".Epkrse":"-webkit-line-clamp:unset;"}},{id:"tumblr",matches:["www.tumblr.com"],selectors:["article h1","article > header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,normalizeBody:"#mw-content-text",globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"]},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"}},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:"chat.openai.com",excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0}},{id:"newstop",matches:["chat.newstop.asia","chat.waixingyun.cn"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".n-button.n-button--warning-type.n-button--medium-type",messageWrapperSelector:".markdown-body",streamingChange:!1,streamingDeepChild:!0}},{id:"askgpt",matches:["askgpt.cn","chatcat.zhaoyoung.me"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".home_chat-message-status__EsVNi",messageWrapperSelector:".markdown-body",streamingChange:!0,streamingDeepChild:!0}},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__UyYrv *",".MarkdownLink_linkifiedLink__KxC9G"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__UyYrv",streamingChange:!1,streamingDeepChild:!0}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"newthingsunderthesun",matches:"www.newthingsunderthesun.com",additionalSelectors:["[translate=no]"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"https://steamcommunity.com/app/*",globalStyles:{".forum_topic":"height:auto;",".forum_topic_name":"white-space:normal;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampowered",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:"https://www.webofscience.com/*",globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},excludeSelectors:[".summary-left-panel",".authors","app-full-record-keywords mark"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],extraBlockSelectors:["app-summary-authors + div","app-full-record-keywords span span"],observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://www.jetbrains.com/help/*",extraBlockSelectors:["[data-test=prompt]"]},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails p"]},{id:"isEbook",isEbook:!0,isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span"},{id:"isEbookBuilder",isEbookBuilder:!0,isTranslateTitle:!1,targetWrapperTag:"span",selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com",extraBlockSelectors:["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],extraBlockSelectors:"font[face=verdana]"},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"isSubtitleBuilder",isSubtitleBuilder:!0,selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,wrapperPrefix:"",wrapperSuffix:""},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/",extraBlockSelectors:[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"vimeo",matches:"https://player.vimeo.com/video/*",extraBlockSelectors:["span.vp-captions-line","span[class^=CaptionsRenderer_]"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexityAi",matches:"https://www.perplexity.ai/search/*",extraBlockSelectors:[".prose > span"],additionalStayOriginalSelectors:["a.citation"],insertPosition:"afterend"},{id:"perplexity",matches:"https://www.perplexity.ai",globalStyles:{".line-clamp-1":"-webkit-line-clamp: unset !important;",".line-clamp-2":"-webkit-line-clamp: unset !important;"}},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"babelnovel",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*"],urlChangeDelay:0},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0},{globalAttributes:{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"youtrackJetbrains",matches:"youtrack.jetbrains.com/articles/*",selectors:["[role=presentation]","[data-test=article-content]"],excludeSelectors:[".toolbar__ee8"]},{id:"bbc",matches:"www.bbc.com",excludeSelectors:["section.module--languages",".drop-capped"]},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}}},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"openai",matches:"https://platform.openai.com/docs/*",urlChangeDelay:0},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout":"height:unset !important;",".EntrySummary--u4":"-webkit-line-clamp: unset;max-height:unset;",".EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:[".copyable-text > span"],wrapperPrefix:` -`,wrapperSuffix:"
"},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],globalStyles:{"[class*='lineclamp']":"-webkit-line-clamp:unset;"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],extraBlockSelectors:[".SIPGg",".sc-kzMCTH.pSZXj"],globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"]},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*",globalAttributes:{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead"],injectedCss:["a::after {position:relative!important;}"]},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},globalAttributes:{"#app":{class:""}}},{id:"haproxy",matches:["docs.haproxy.org","www.oreilly.com/openbook/opensources/book/*"],excludeTags:[],stayOriginalSelectors:[],stayOriginalTags:[],isTransformPreTagNewLine:!0},{id:"piAi",matches:"pi.ai/talk",excludeSelectors:[".whitespace-pre-wrap > span *"],aiRule:{streamingSelector:"button[class*='fixed'][disabled]",messageWrapperSelector:".whitespace-pre-wrap",streamingChange:!1,streamingDeepChild:!1},globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *"],"excludeTags.remove":["PRE"],injectedCss:"[data-testid='chat-menu-trigger'] br {display:none;}",aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1}},{id:"feishu",matches:"*.feishu.cn","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],excludeSelectors:[".catalogue__list"]},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"bugsWebkit",matches:"bugs.webkit.org",isTransformPreTagNewLine:!0},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",matches:"www.kaggle.com",excludeTags:["i","button"]},{id:"ieee",matches:"spectrum.ieee.org",extraBlockSelectors:["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"www.cnn.com",excludeSelectors:[".ad-slot-header__wrapper"]},{id:"marginalrevolution",matches:"marginalrevolution.com",globalAttributes:{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",condition:{enableSubtitle:{false:{"excludeSelectors.add":[".bpx-player-subtitle-panel-text"]}}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"docs-oracle",matches:"docs.oracle.com",urlChangeDelay:0},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"edstem",matches:"edstem.org","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:"pubmed.ncbi.nlm.nih.gov",urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share"]},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"tldrnewsletter",matches:"actions.tldrnewsletter.com","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"bugzilla",matches:"bugzilla.mozilla.org","excludeTags.remove":["PRE"],isTransformPreTagNewLine:!0},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"excludeSelectors.add":["aside",".DocSearch-Modal"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"mail.qq.com",useIframePostMessage:!1},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]}]};h();h();function Qa(e){return Array.isArray(e)?e:e?[e]:[]}function bn(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function at(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function xi(e,t){let n={...e};return Um(n,t),H9(n,t),n}function Nm(e,t,n){let a={...t};return q9(e,a,n),a}function H9(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},a=t.condition.enableSubtitle?.false||{},r=e.enableSubtitle?n:a;Um(e,r)}function q9(e,t,n){try{return Object.keys(t).forEach(a=>{let[r,o]=a.split(".");if(o){let u=t[a];if(Array.isArray(e[r])&&(u=Qa(t[a])),o==="add"){t[r]=Ko(e[r],u),delete t[a];return}else if(o=="remove"){t[r]=sl(e[r],u),delete t[a];return}}}),Object.keys(n).forEach(a=>{let[r,o]=a.split(".");if(!r||n[a]===void 0)return;let u=n[a],i=t[r];if(Array.isArray(e[r])&&(u=Qa(n[a]),i=Qa(t[r])),o==="add"){t[r]=Ko(i,u);return}else if(o=="remove"){t[r]=sl(i,u);return}Array.isArray(i)&&r.startsWith("additional")?t[r]=Ko(i,u):t[r]=u}),t}catch{}}function Um(e,t){return Object.keys(t).forEach(n=>{let[a,r]=n.split(".");if(!a||t[n]===void 0)return;let o=t[n];if(Array.isArray(e[a])&&(o=Qa(t[n])),r==="add"){e[a]=Ko(e[a],o);return}else if(r=="remove"){e[a]=sl(e[a],o);return}Array.isArray(e[a])&&a.startsWith("additional")?e[a]=Ko(e[a],o):e[a]=o}),e}function Ko(e,t){let n;if(Array.isArray(e)){let a=Qa(t);n=[...e,...a],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"&&(n={...e,...t});return n}function sl(e,t){if(Array.isArray(e)){let n=Qa(t);return e=e.filter(a=>!n.includes(a)),Array.from(new Set(e))}else typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(n=>{delete e[n]});return e}function Za(){if(Ce.PROD==="1")return{};let e={};if(Ce.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&Ce.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:Ce.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:Ce.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&Ce.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:Ce.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:Ce.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:Ce.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:Ce.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&Ce.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:Ce.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:Ce.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&Ce.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:Ce.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:Ce.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:Ce.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(Ce.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=Ce.DEEPL_PROXY_ENDPOINT),Ce.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=Ce.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),Ce.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:Ce.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}Ce.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=Ce.IMMERSIVE_TRANSLATE_SERVICE);let t={};return Ce.DEBUG==="1"&&(t.debug=!0,t.cache=!1),Ce.MOCK==="1"&&(t.translationService="mock"),t}async function Gn(){let e=await Q.storage.local.get(vr);if(e[vr]){let t=e[vr],n=t.tempTranslationUrlMatches||[],a=n.filter(u=>u.expiredAt>Date.now()),r=!1;a.length!==n.length&&(n=a,r=!0);let o={...t,tempTranslationUrlMatches:[...n]};return r&&await yn(o),o}else return{}}async function yn(e){await Q.storage.local.set({[vr]:e})}async function jm(e){await Q.storage.local.set({[ra]:e})}async function Ir(){await Q.storage.local.set({[ra]:{}})}async function ka(){await Q.storage.local.set({[vr]:{}})}async function zm(){let e=await Q.storage.local.get(ra),n={...Ei(),...Ti,buildinConfigUpdatedAt:Ce.BUILD_TIME};if(e[ra]){let a=e[ra];if(a&&a.buildinConfigUpdatedAt){let r=new Date(a.buildinConfigUpdatedAt),o=new Date(n.buildinConfigUpdatedAt);r>o&&(n=a)}}return n}async function Ge(){let e=await Q.storage.local.get(ra),t={...Ti,buildinConfigUpdatedAt:Ce.BUILD_TIME};if(e[ra]){let B=e[ra];if(B&&B.buildinConfigUpdatedAt){let k=new Date(B.buildinConfigUpdatedAt),L=new Date(t.buildinConfigUpdatedAt);k>L&&(t=B)}}let n=await Xe.get(Tt,null),a={};if(!me()&&Q.commands&&Q.commands.getAll){let B=await Q.commands.getAll();for(let k of B)k.name&&k.shortcut&&(a[k.name]=k.shortcut)}let r=Ei(),o=Za(),u=await $o(),i=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},s=await Gn(),c=new Date;if(s&&s.tempTranslationUrlMatches&&s.tempTranslationUrlMatches.length>0){let B=s.tempTranslationUrlMatches.filter(k=>new Date(k.expiredAt)>c);if(B.length>0){let k=u.translationUrlPattern?u.translationUrlPattern?.matches||[]:[],L=Array.isArray(k)?k:[k],O=Array.from(new Set(L.concat(B.map(K=>K.match))));u.translationUrlPattern={...u.translationUrlPattern,matches:O}}}let l=Object.assign({},i,o,u);if(!l.interfaceLanguage){let B=await W9();l.interfaceLanguage=B}let m=l.interfaceLanguage==="en",p=l.targetLanguage==="en",f=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,g=["bing","google","transmart","mock"].includes(l.translationService)||!l.translationService;!m&&!p&&!f&&g?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let y=t&&t.enableDefaultAlwaysTranslatedUrls;l.enableDefaultAlwaysTranslatedUrls===!1&&(y=!1);let v=l&&l.isChangedAlwaysTranslatedUrls,b=[];l.translationUrlPattern&&l.translationUrlPattern.matches&&(b=l.translationUrlPattern.matches||[]);let S=!1;v===void 0&&(b.length>0?v=!0:v=!1,l.isChangedAlwaysTranslatedUrls=v,u.isChangedAlwaysTranslatedUrls=v,S=!0);let A=(l?.translationLanguagePattern?.matches?.length||0)>0,N=await Ht("installedAt",""),_=Number(await sa("translage_page_daily",0)),x=Number(await Ht(Ln,0)),E;x>0&&(Date.now()-x0&&(Date.now()-_H.id&&O[H.id]?Nm(t.generalRule,O[H.id],H):H);I[k]=[...K,...I[k]]}if(Ce.PROD==="0"&&Ce.DEV_RULES){let L=JSON.parse(Ce.DEV_RULES);I[k]=[...L,...I[k]]}}else l[k]!==void 0&&(I[k]=l[k])}return I.donateUrl=t.donateUrl,I.minVersion=t.minVersion,I.feedbackUrl=t.feedbackUrl,I}async function $o(){return(await Q.storage.sync.get("userConfig")||{}).userConfig||{}}async function Go(e){await Q.storage.sync.set({userConfig:e})}var W9=async()=>{let e=["zh-CN"];try{e=await Q.i18n.getAcceptLanguages()}catch(a){j.warn("get browser language error:",a)}let n=e.map(a=>Ya(a)).find(a=>Qt[a]);return n||"en"},Ei=()=>{let e={...Ti,buildinConfigUpdatedAt:Ce.BUILD_TIME};return{...e,targetLanguage:ei,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing"},rules:[]}};function K9(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(a=>!e.includes(a)).length>0}h();function Vo(e){if(Math.abs(e)<1024)return e+" Byte";let n=["KB","MB","GB","TB","PB","EB","ZB","YB"],a=-1;do e/=1024,++a;while(Math.abs(e)>=1024&&as+c.text.length,0)+u.text.length>t||o.tempSentences.length>=n)&&(r.push(o),o={fromByClient:o.fromByClient,from:u.from,to:u.to,tempSentences:[],url:u.url}),(o.from!==u.from||o.to!==u.to)&&(o.tempSentences.length>0?(r.push(o),o={fromByClient:o.fromByClient,from:u.from,to:u.to,tempSentences:[],url:u.url}):(o.from=u.from,o.to=u.to)),o.tempSentences.push(u);return o.tempSentences.length>0&&r.push(o),r}function $9(e,t){let n=[],a=[];for(let r=0;r0?g header + div","[data-testid=notes-root] p","div.k31gt","p","article ul","article h2","article h3","article h4","article h5","article h6","article blockquote","article ol"],excludeSelectors:["div.fAAi8","div.wvu3V"],preWhitespaceDetectedTags:["DIV","SPAN","P"]},{id:"tinytask",matches:"https://www.tinytask.net",globalStyles:{"table > tbody > tr > td > center > table > tbody > tr > td > ul > li":"height: 100%"}},{id:"foxnews",matches:"www.foxnews.com",shadowRootSelectors:["[data-spot-im-module-default-area='conversation'] > div"],"excludeTags.add":["TEXT","IMG","SUB","SUP","CODE","TT","ASIDE"],excludeSelectors:[".site-footer",".components-MessageDetails-index__message-details-wrapper","div[class^=SlideDown__container]",".components-MessageActions-index__messageActionsWrapper","span[data-openweb-allow-amp]","div.spcv_typing-users"]},{id:"afreecatv",matches:"www.afreecatv.com",globalStyles:{"a.title":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"opennet",matches:"opennet.ru","excludeTags.add":["LABEL","IMG","SUB","SUP","CODE","TT"],"excludeTags.remove":["LINK","G","MATH","TTS-SENTENCE","AIO-CODE"]},{id:"construct",matches:["www.construct.net"],excludeMatches:["preview.construct.net","editor.construct.net"],additionalSelectors:["aside","div.manualContent"],atomicBlockSelectors:[],stayOriginalSelectors:["a.usernameReference"],additionalInlineSelectors:["a.forumLink"],additionalExcludeSelectors:["div.topNav","div.usernameLink","ul.authorDetails","ul.tagViewer","ul.breadCrumbNav","ul.subForumForums","ul.postTools","li.comment ul.controls","div.forumTopNavWrap","div.downloadWrap","div.articleLeftMenu","div.usernameTextWrap","div.favouriteWrap","div.bannerWrapper","div.viewAddonRightMenu","div.extendedMenu.addonsSubMenu","#BottomLinks.bottomLinks","div#LeftSide.leftSide","div#BottomWrap.bottomWrap","div.courseListWrap div.overview","div.conversationControls","div.contentWrapper h1","div.conversationControls","td.location a#LocationLink","#TopLevelComments .topBar","#TopLevelComments .controls",".tagViewWrap",".changeCount",".otherStats",".FilterMenu",".mobileTopicStats",".forumControlsWrapper",".forumsBottomNavWrap",".breadCrumbNav",".favouriteWrap",".usernameLink",".followWrapper",".blogPostStats",".manualContent dl dt"],globalStyles:{"td.location a#LocationLink":"padding-top: 4px;","div.articleMain .tutCourseWrap":"align-items: flex-start;"}},{id:"getpocket",matches:"getpocket.com",selectors:["h2","div.excerpt p","article","h1"],globalStyles:{"h2.title":"max-height:unset;-webkit-line-clamp:unset;","div.excerpt p":"max-height:unset;-webkit-line-clamp:unset;"}},{id:"fandom",matches:"*.fandom.com",urlChangeDelay:800,normalizeBody:"#mw-content-text",globalStyles:{"#mw-content-text > div > div:nth-child(1)":"height:100%;"},additionalExcludeSelectors:["header.fandom-community-header","div.ph-registration-buttons"]},{id:"huggingface",matches:"huggingface.co",globalStyles:{".line-clamp-2":"-webkit-line-clamp:unset;max-height:unset;"}},{id:"statista",matches:"www.statista.com",globalStyles:{".itemContent__text":"height:unset;max-height:unset;",".itemContent__subline":"height:unset;max-height:unset;"}},{id:"epubReader",matches:"epub-reader.online",globalStyles:{"span.slide-contents-item-label":"overflow:visible;max-height:unset;white-space:normal;"},atomicBlockSelectors:["div.slide-contents-item"]},{id:"you",matches:"https://you.com/search",globalStyles:{h3:"max-height:unset;-webkit-line-clamp:unset;",".caKYaC":"max-height:unset;-webkit-line-clamp:unset;",".dDwDsu":"max-height:unset;-webkit-line-clamp:unset;"},excludeSelectors:["div.hpIWZO"]},{id:"auth0Openai",matches:"auth0.openai.com",excludeSelectors:["form","header > h1"]},{id:"chatOpenai",matches:"chat.openai.com",excludeSelectors:["div.absolute.bottom-0.left-0.w-full","h1","div#headlessui-portal-root","nav","ul[aria-multiselectable]",".markdown *","div[class='flex flex-col items-start']","div[class='flex items-center justify-center gap-1 border-b border-black/10 bg-gray-50 p-3 text-gray-500 dark:border-gray-900/50 dark:bg-gray-700 dark:text-gray-300']"],"excludeTags.remove":["BUTTON"],isTranslateTitle:!1,wrapperPrefix:"",globalStyles:{"[class*='line-clamp']":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},aiRule:{streamingSelector:".result-streaming.markdown",messageWrapperSelector:".markdown",streamingChange:!0,streamingDeepChild:!0}},{id:"newstop",matches:["chat.newstop.asia","chat.waixingyun.cn"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".n-button.n-button--warning-type.n-button--medium-type",messageWrapperSelector:".markdown-body",streamingChange:!1,streamingDeepChild:!0}},{id:"askgpt",matches:["askgpt.cn","chatcat.zhaoyoung.me"],excludeSelectors:[".markdown-body *"],aiRule:{streamingSelector:".home_chat-message-status__EsVNi",messageWrapperSelector:".markdown-body",streamingChange:!0,streamingDeepChild:!0}},{id:"poe",matches:["https://poe.com/*"],excludeSelectors:[".Markdown_markdownContainer__UyYrv *",".MarkdownLink_linkifiedLink__KxC9G"],aiRule:{streamingSelector:".ChatStopMessageButton_stopButton__LWNj6",messageWrapperSelector:".Markdown_markdownContainer__UyYrv",streamingChange:!1,streamingDeepChild:!0}},{id:"glasp",matches:"glasp.co",excludeSelectors:[".home_overview_list_content_wrapper"]},{id:"developerChrome",matches:"developer.chrome.com",excludeSelectors:["web-tabs","ul.code-sections--summary"]},{id:"android",matches:["developer.android.google.cn","developer.android.com"],observeUrlChange:!0,additionalSelectors:["aside","google-codelab-step"]},{id:"ft",matches:"www.ft.com",excludeSelectors:["header","[aria-labelledby=cookie-banner-aria-label]","footer","[aria-label='Primary navigation']"]},{id:"microsoft",matches:"https://apps.microsoft.com/store/detail/*",additionalSelectors:["pre"],globalStyles:{".line-clamp":"-webkit-line-clamp:unset;max-height:unset;"},isTransformPreTagNewLine:!0},{id:"gitlab",matches:"gitlab.com",excludeSelectors:[".tree-content-holder","nav",".home-panel-metadata","div[data-testid=project_topic_list]",".commit"]},{id:"newthingsunderthesun",matches:"www.newthingsunderthesun.com",additionalSelectors:["[translate=no]"]},{id:"tiktok",matches:"https://www.tiktok.com/*/video/*",selectors:["[data-e2e^=comment-level]","[data-e2e=browse-video-desc] > span"]},{id:"rfcEditor",matches:["www.rfc-editor.org","docs.haproxy.org"],isTransformPreTagNewLine:!0,"excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK","G","PRE","TTS-SENTENCE","AIO-CODE"]},{id:"steamcommunity",matches:"https://steamcommunity.com/app/*",globalStyles:{".forum_topic":"height:auto;",".forum_topic_name":"white-space:normal;"},excludeSelectors:[".forum_paging",".forum_topic_reply_count",".forum_topic_lastpost",".forum_topic_award_count",".discussion_search_pagingcontrols"]},{id:"steampowered",matches:"store.steampowered.com/app/*",selectors:[".game_description_snippet",".game_area_description","#earlyAccessHeader","[id^='ReviewContent'] .content"],excludeSelectors:["#global_actions","#store_controls","#foryou_tab","[class*=persona]","[class*=game_title_area]","a.btn_medium",".persona_name",".hours.ellipsis",".checkcol",".postedDate",".dev_row .summary",".already_in_library",".game_header_image_ctn .grid_content",".ds_flag.ds_wishlist_flag",".early_access_review.tooltip",".communitylink_achievement_images",".user_reviews_summary_row.summary",".review_award_ctn",".add_to_wishlist_area",".next_in_queue_content",".glance_tags.popular_tags",".game_purchase_action",".vote_button_ctn","#VoteUpDownBtnCtn","#footer","#ViewAllReviewssummary"],atomicBlockSelectors:[".game_area_sys_req_leftCol",".game_area_sys_req_rightCol"],extraInlineSelectors:[".pulldown"],additionalSelectors:[".game_page_autocollapse_ctn iframe"],globalStyles:{".game_description_snippet":"max-height:unset; overflow: scroll;",".game_purchase_area_friends_want":"height: auto; padding-bottom: 6px;",".div.early_access_banner":"height: 84px",".franchise_notice > *":"height: 84px"},detectParagraphLanguage:!0},{id:"nature",matches:"https://www.nature.com/articles/*",excludeSelectors:[".c-header",".c-recommendations-header",".c-recommendations-list-container",".c-article-references__links",".c-article-identifiers",".c-article-author-list",".c-article-metrics-bar__wrapper",".c-article__pill-button","#author-information-content","#article-info-section"]},{id:"webofscience",matches:"https://www.webofscience.com/*",globalStyles:{".abstract":"height:auto !important;",".show-more-lines":"height:unset !important;"},excludeSelectors:[".summary-left-panel",".authors","app-full-record-keywords mark"],mutationObserverContainerSelectors:["[data-ta='summary-record-title-link']","#FullRTa-fullRecordtitle-0"],extraBlockSelectors:["app-summary-authors + div","app-full-record-keywords span span"],observeUrlChange:!0,urlChangeDelay:600,mutationChangeDelay:600},{id:"appleinsider",matches:["appleinsider.com"],excludeSelectors:["#topic-nav"]},{id:"jetbrains",matches:"https://www.jetbrains.com/help/*",extraBlockSelectors:["[data-test=prompt]"]},{id:"crates",matches:["https://crates.io/search*"],selectors:["div[class^=_description-box] div[class^=_description]"]},{id:"theverge",matches:"www.theverge.com",shadowRootSelectors:["div#coral_thread > div"]},{id:"simp",matches:"https://beta.simp.red/trans*",mainFrameSelector:".simpread-read-root"},{id:"lookintobitcoin",matches:"https://www.lookintobitcoin.com/charts/*",excludeSelectors:["svg"]},{id:"openaiAccount",matches:"https://platform.openai.com/account/api-keys*",urlChangeDelay:1500},{id:"pkgStd",matches:"https://pkg.go.dev/std",selectors:["td.UnitDirectories-desktopSynopsis"]},{id:"pkg",matches:"https://pkg.go.dev/*",selectors:["div.UnitDetails p"]},{id:"isEbook",isEbook:!0,isTranslateTitle:!1,urlChangeDelay:200,selectorMatches:["meta[name='immersive-translate-ebook-viewer'][content='true']"],excludeSelectors:["#drop-target","#drop-target h1","#side-bar","h1#side-bar-title"],extraInlineSelectors:["span.dropcaps"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
",targetWrapperTag:"span"},{id:"isEbookBuilder",isEbookBuilder:!0,isTranslateTitle:!1,targetWrapperTag:"span",selectorMatches:["meta[name='immersive-translate-ebook-builder'][content='true']"],globalMeta:{},excludeSelectors:["h1.notranslate","#drop-target","#drop-target h1","#side-bar","h1#side-bar-title","#tool",".Code"],paragraphMinTextCount:4,paragraphMinWordCount:2,blockMinTextCount:1,blockMinWordCount:1,containerMinTextCount:1,wrapperPrefix:"
"},{id:"explainpaper",matches:["https://www.explainpaper.com/reader*"],isTranslateTitle:!1,selectors:[".leading-relaxed",".chat-messages p",".text-sm"]},{id:"colab",matches:"https://colab.research.google.com/*",excludeSelectors:["code","view-line"]},{id:"gatesnotes",matches:"www.gatesnotes.com",minZIndex:-1},{id:"kakao",matches:"page.kakao.com",shadowRootSelectors:["div[style^='visibility: visible'"]},{id:"coinmarketcap",matches:"coinmarketcap.com",extraBlockSelectors:["div[class='sc-3502f6cd-0 JxHqg']"]},{id:"wandb",matches:"wandb.ai",additionalSelectors:[".report-page-top"],additionalStayOriginalSelectors:["span[data-slate-inline=true]"],extraInlineSelectors:[]},{id:"paulgraham",matches:"paulgraham.com",additionalSelectors:["font[face=verdana]"],extraBlockSelectors:"font[face=verdana]"},{id:"zendesk",matches:"https://*.zendesk.com/agent/*",selectors:["[data-test-id*=subject]",".zd-comment",".title"]},{id:"migadu",matches:"webmail.migadu.com",selectors:[".bodyText"]},{id:"thehackernews",matches:"thehackernews.com",excludeSelectors:["span#blog-pager-older-link","span.h-datetime"],additionalSelectors:[".pop-title"]},{id:"isSubtitleBuilder",isSubtitleBuilder:!0,selectorMatches:["meta[name='immersive-translate-subtitle-builder'][content='true']"],pairs:{".source-text":".target-text"},paragraphMinTextCount:4,paragraphMinWordCount:2,isTranslateTitle:!1,wrapperPrefix:"",wrapperSuffix:""},{id:"brown",matches:"cs.brown.edu",excludeSelectors:[".SCodeFlow"]},{id:"tass",matches:"tass.ru",globalStyles:{"#__next":"font-size: 19px;line-height:28px;"}},{id:"chatGoogle",matches:"chat.google.com",selectors:["[jsname=bgckF]"]},{id:"fiverr",matches:"https://www.fiverr.com/inbox/*",selectors:[".message-body"]},{id:"fiverr-main",matches:"*.fiverr.com",globalStyles:{"h3 > a":"-webkit-line-clamp:unset;overflow:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",h5:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;",".YLycza2.u9KHmsf":"height:unset;max-height:unset;"},excludeSelectors:[".popular"]},{id:"jira",matches:["jira.*.com/browse/*","jira.*.com/projects/*"],selectors:["[id=descriptionmodule]","[id=summary-val]","div.action-body","td.stsummary"]},{id:"ahaIo",matches:["*.aha.io"],selectors:["[tabindex='0']","div.user-content","div.comments__body","span.name"]},{id:"thehill",matches:"thehill.com",injectedCss:[".most-popular-item { max-height: unset !important; }",".most-popular-item__link { -webkit-line-clamp: unset !important; }"],excludeSelectors:["div.featured-cards__byline","div.list-item__meta",".tags__item","div.extended-scroll__header",".submitted-by",".site-header--has-alert-banner",".homepage__container__opinion__item__byline",".homepage__container__header",".archive__item__meta"]},{id:"ubuntu",matches:"manpages.ubuntu.com",selectors:["pre"],atomicBlockTags:["pre"]},{id:"spiedigitallibrary",matches:"www.spiedigitallibrary.org","excludeTags.add":["IMG","SUB","SUP","CODE","TT","ASIDE","FOOTER"],"excludeTags.remove":["LINK"]},{id:"promptingguide",matches:"www.promptingguide.ai",selectors:["article","li"]},{id:"ground",matches:"ground.news",globalStyles:{".line-clamp-3":"-webkit-line-clamp: unset !important;"}},{id:"ietf",matches:"*.ietf.org/doc/html/*",additionalSelectors:["pre"],isTransformPreTagNewLine:!0,preWhitespaceDetectedTags:["DIV","SPAN","PRE"]},{id:"newsminimalist",matches:"https://www.newsminimalist.com/",extraBlockSelectors:[".inline-flex"],"excludeTags.remove":["BUTTON"]},{id:"vimeo",matches:"https://player.vimeo.com/video/*",extraBlockSelectors:["span.vp-captions-line","span[class^=CaptionsRenderer_]"]},{id:"yandexIndex",matches:"https://yandex.com/",selectors:[".tabs__item-text"]},{id:"yandexSearch",matches:"https://yandex.com/search/*",excludeSelectors:[".KeyValue-Row",".EntityFeedbackFooter",".Organic-Subtitle",".SerpFooter-Content",".serp-user",".Pager"],globalStyles:{".ExtendedText-Toggle":"white-space:normal;"}},{id:"yandex",matches:"https://yandex.com/video/*",selectors:[".serp-item__title",".serp-item__text",".Keypoints-ItemTitle",".bes-epmjnzm-idtktyj",".OrganicTitle-LinkText","h1.VideoTitle"],globalStyles:{".serp-item__title":"-webkit-line-clamp: unset;max-height:unset;",".serp-item__text":"-webkit-line-clamp: unset;max-height:unset;",".OrganicTitle-LinkText":"-webkit-line-clamp: unset;max-height:unset;","h1.VideoTitle":"-webkit-line-clamp: unset;max-height:unset;",".link .serp-item__keypoints":"bottom:2px;",".OrganicTitle":"max-height:unset;"}},{id:"perplexityAi",matches:"https://www.perplexity.ai/search/*",extraBlockSelectors:[".prose > span"],additionalStayOriginalSelectors:["a.citation"],insertPosition:"afterend"},{id:"perplexity",matches:"https://www.perplexity.ai",globalStyles:{".line-clamp-1":"-webkit-line-clamp: unset !important;",".line-clamp-2":"-webkit-line-clamp: unset !important;"}},{id:"allmyfaves",matches:"https://allmyfaves.com/",selectors:["p"],paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"man7",matches:"man7.org",isTransformPreTagNewLine:!0,globalStyles:{pre:"white-space: inherit;"}},{id:"kadaza",matches:"https://www.kadaza.com/",selectors:[".header span.title",".custom-content-footer"],containerMinTextCount:2,containerMinWordCount:1,paragraphMinTextCount:2,paragraphMinWordCount:1},{id:"babelnovel",matches:["https://babelnovel.com/books/*","https://www.webnovel.com/book/*"],urlChangeDelay:0},{id:"genuine",matches:"blog.genuine.com",excludeSelectors:["div.enlighter"]},{id:"chinadaily",matches:"www.chinadaily.com.cn",injectedCss:["a { height: unset !important; }","li { height: unset !important; }","div { height: unset !important; }",".immersive-translate-target-inner {color:black;}"],excludeSelectors:[".topNav",".topNav2_art > span",".topNav_art2 > .dropdown",".dibu-three",".topBar"]},{id:"braynzarsoft",matches:"www.braynzarsoft.net",selectors:["div#view-question-desc"]},{id:"immersiveTranslateIosOnBoarding",selectorMatches:["meta[name=immersiveTranslateIosOnBoarding]"],initialGlobalAttributes:{"input#immersiveTranslateDetectedSlot":{value:"true"}},isInjectOptionsUrl:!0,isInjectVersion:!0},{id:"immersiveTranslateIosOnBoardingStep1",selectorMatches:["meta[name=immersiveTranslateIosOnBoardingStep1]"],isOnBoardingPage:!0,isInjectOptionsUrl:!0,isInjectVersion:!0},{globalAttributes:{"#stimulus":{translate:"off",class:"stimulus"},"#stem":{translate:"off",class:"stem"}},id:"lawhub",matches:"https://lawhub.lsac.org/question/*"},{id:"yuque",matches:"https://www.yuque.com/*",excludeSelectors:[".lark-virtual-tree"]},{id:"bearblog",matches:"https://bearblog.dev/discover/*",excludeTags:["small"]},{id:"researchgate",matches:"www.researchgate.net",excludeSelectors:[".nova-legacy-v-publication-item__meta-data",".nova-legacy-v-publication-item__person-list",".js-authors-list"]},{id:"theatlantic",matches:["www.theatlantic.com","https://mashable.com/*"],initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}}},{id:"youtrackJetbrains",matches:"youtrack.jetbrains.com/articles/*",selectors:["[role=presentation]","[data-test=article-content]"],excludeSelectors:[".toolbar__ee8"]},{id:"bbc",matches:"www.bbc.com",excludeSelectors:["section.module--languages",".drop-capped"]},{id:"dw",matches:"www.dw.com",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},"nav:last-of-type":{translate:"no"},nav:{translate:"no"}},excludeSelectors:[".focus-menu-shown"]},{id:"sentry",matches:"docs.sentry.io",initialSelectorGlobalAttributes:{"footer:last-of-type":{translate:"no"},".navbar":{translate:"no"}}},{id:"openai-blog",matches:"https://openai.com/blog/*","stayOriginalTags.remove":["CODE"]},{id:"openai",matches:"https://platform.openai.com/docs/*",urlChangeDelay:0},{id:"urlComment",selectorMatches:["meta[name='generator'][content^='Discourse']"],urlChangeDelay:0,_comment:"\u89E3\u51B3url\u53D8\u5316\u4F46\u662F\u9875\u9762\u4E0D\u53D8\u7684\u95EE\u9898"},{id:"feedly",matches:"feedly.com",globalStyles:{".TitleOnlyLayout":"height:unset !important;",".EntrySummary--u4":"-webkit-line-clamp: unset;max-height:unset;",".EntrySummary--u5":"-webkit-line-clamp: unset;max-height:unset;"},excludeSelectors:[".Leftnav"]},{id:"bardGoogle",matches:"bard.google.com",excludeSelectors:["mat-sidenav","div.capabilities-disclaimer","#cdk-overlay-6","message-actions button",".mdc-button__label .ng-star-inserted",".mdc-list-item__primary-text"],isTranslateTitle:!1,"excludeTags.add":["mat-tooltip-component"],"excludeTags.remove":["BUTTON"]},{id:"whatsapp",matches:"web.whatsapp.com",selectors:[".copyable-text > span"],wrapperPrefix:` +`,wrapperSuffix:"
"},{id:"bing",matches:"https://*.bing.com/search*",extraInlineSelectors:["a","i"],globalStyles:{"[class*='lineclamp']":"-webkit-line-clamp:unset;"}},{id:"yahoo",matches:"*.yahoo.*",excludeSelectors:["._ys_jiqava","#ybar-inner-wrap","#Col2-5-Rmp-Proxy"],extraBlockSelectors:[".SIPGg",".sc-kzMCTH.pSZXj"],globalStyles:{"#atomic .Mt\\(20px\\)":"margin-top: 100px;","[class*='LineClamp']":"-webkit-line-clamp:unset;max-height:unset;","a[class*='js-content-viewer']> div[class*='Td\\(n\\)']":"overflow: scroll;","[class*='_ys_24482e']":"-webkit-line-clamp:unset;","#Aside > :first-child":"overflow:scroll;"}},{id:"wsj",matches:"www.wsj.com",excludeSelectors:["header","footer","nav","[aria-label='Markets summary']"]},{id:"businessinsider",matches:"www.businessinsider.com",excludeSelectors:["header","nav","section.live-updates-module "]},{id:"goodreads",matches:"www.goodreads.com",excludeSelectors:[".badgeYear",".gr-mediaBox__desc",".bookVotedRow",".minirating","div[itemprop='aggregateRating']",".wtrButtonContainer",".RatingsHistogram__labelTitle",".FollowButton",".siteHeader__topLevelLink","#books > thead","td[class*='rating']","td[class*='shelves']","td[class*='date_read']","td[class*='date_added']","td[class*='actions']"]},{id:"feeder",matches:"https://feeder.co/*",globalStyles:{".item-summary":"-webkit-line-clamp:unset;"}},{id:"elektrotechnik",matches:"https://www.elektrotechnik.rwth-aachen.de/*",globalAttributes:{"[class='notranslate']":{class:""}}},{id:"nytimes",matches:"www.nytimes.com",excludeSelectors:["#app > div > div > header","#app > div > div > div > div > header","#in-story-masthead"],injectedCss:["a::after {position:relative!important;}"]},{id:"bugsKde",matches:"bugs.kde.org","excludeTags.remove":["svg","PRE"],additionalExcludeSelectors:[".bz_first_comment_head",".bz_comment_head",".related_actions"]},{id:"eastmoney",matches:"guba.eastmoney.com",searchEnhancementConfig:[{id:"eastmoney",urlMatch:"guba.eastmoney.com/news,us\\w+,\\w+.html",delayTime:0,selector:".moneyFlowContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"guba.eastmoney.com/news,us(\\w+?),\\S+.html"}]},showCount:8},{id:"eastmoney",urlMatch:"guba.eastmoney.com/list,us\\w+.*.html",delayTime:0,selector:".qualityContentContainer",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#294688",title:"font-size:14px;color:#294688;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin:0px 0 16px;",more:"color:#294688;margin-top:8px;"},keyword:{value:"[0]$1:[0]$2",matches:[{source:{type:"selector",attribute:"href"},matchRegex:"code=(\\w+)_(\\w+)",match:"a[href*='rank/stock?code=']"}]},showCount:8}]},{id:"xueqiu",matches:"xueqiu.com",searchEnhancementConfig:[{id:"xueqiu",urlMatch:"xueqiu.com/S/[a-zA-Z]+/?$",delayTime:0,selector:".container-side-sm.float-right.stock__side",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;padding:0;",source:"font-size:12px; margin-bottom: 0px;",keyword:"color:#06c",title:"font-size:14px;color:#06c;",enTitle:"margin-top:4px;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;font-weight: bold;",time:"margin:0px 0 16px;",more:"color:#06c;margin-top:8px;"},showCount:8,keyword:{value:"[0]$1",matches:[{source:{type:"selector",attribute:"text"},matchRegex:"\\((.+)\\)",match:".stock-name"}]}}]},{id:"laohu8",matches:"www.laohu8.com",searchEnhancementConfig:[{id:"laohu8",urlMatch:"www.laohu8.com/stock/[a-zA-Z]+/?$",delayTime:0,selector:".hot-stocks-root",selectorAction:"insertBefore",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 0px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 0px 0 16px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)"}]},showCount:8}]},{id:"futunn",matches:"www.futunn.com",searchEnhancementConfig:[{id:"futunn",urlMatch:"www.futunn.com/stock/\\w+-US",delayTime:0,selector:".right",selectorAction:"appendChild",style:{container:"background:white;border:none;border-radius: 4px;box-shadow: 0 2px 4px hsla(216,5%,62%,.14);",source:"font-size:12px; margin-bottom: 4px;",title:"font-size:14px;color: #007bff;",enTitle:"margin-top:4px;color: #4d5156;font-size:12px;",searchTitle:"margin:4px 0 16px;position:relative;padding-right:24px;font-size: 16px;",time:"margin: 4px 0 20px;"},keyword:{value:"[0]$1 stock",matches:[{source:"url",matchRegex:"stock/([a-zA-Z]+)-US"}]},showCount:8}]},{id:"bmvrMarseille",matches:"www.bmvr.marseille.fr",globalStyles:{"a > div":"display:block;","[style*='358px;']":"width: 33.3333%; height: auto; padding: 0px; position: relative; margin: 0px;"},globalAttributes:{"#app":{class:""}}},{id:"haproxy",matches:["docs.haproxy.org","www.oreilly.com/openbook/opensources/book/*"],excludeTags:[],stayOriginalSelectors:[],stayOriginalTags:[],isTransformPreTagNewLine:!0},{id:"piAi",matches:"pi.ai/talk",excludeSelectors:[".whitespace-pre-wrap > span *"],aiRule:{streamingSelector:"button[class*='fixed'][disabled]",messageWrapperSelector:".whitespace-pre-wrap",streamingChange:!1,streamingDeepChild:!1},globalStyles:{"[class*='text-brand-green']":"flex-direction:column;"}},{id:"claudeAi",matches:"claude.ai",excludeSelectors:[".contents *"],"excludeTags.remove":["PRE"],injectedCss:"[data-testid='chat-menu-trigger'] br {display:none;}",aiRule:{messageWrapperSelector:".contents",messageContainerSelector:".ReactMarkdown",messageStreamEndSelector:".contents > button",streamingChange:!0,streamingDeepChild:!1}},{id:"feishu",matches:"*.feishu.cn","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],mutationObserverLimitTargetSelectors:[".maindocbody","div[class*='render']","div[class*='block']"],excludeSelectors:[".catalogue__list"]},{id:"gitbook",selectorMatches:[".gitbook-root"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"],"additionalExcludeSelectors.add":["[spellcheck='false']"]},{id:"bugsWebkit",matches:"bugs.webkit.org",isTransformPreTagNewLine:!0},{id:"mitre",matches:"cwe.mitre.org",globalStyles:{"span.list_entry":"height: unset;"}},{id:"kaggle",matches:"www.kaggle.com",excludeTags:["i","button"]},{id:"ieee",matches:"spectrum.ieee.org",extraBlockSelectors:["small"]},{id:"ieeexplore",matches:"ieeexplore.ieee.org",stayOriginalSelectors:["a[ref-type]",".inline-formula",".display-formula"]},{id:"cnn",matches:"www.cnn.com",excludeSelectors:[".ad-slot-header__wrapper"]},{id:"marginalrevolution",matches:"marginalrevolution.com",globalAttributes:{header:{translate:"unset;"}}},{id:"highfrequencyelectronics",matches:"www.highfrequencyelectronics.com",globalStyles:{"#main-content":"overflow:unset;"}},{id:"githubBlog",matches:"github.blog",globalStyles:{".font-mktg":"word-break:normal;"}},{id:"semanticscholar",matches:"www.semanticscholar.org",selectors:[".cl-paper-title",".cl-paper-abstract",".tldr-abstract-replacement",".text-truncator",".paper-detail-title"]},{id:"uni-trier",matches:"dblp.uni-trier.de",selectors:["h1","h2",".title",".external","dd p"],excludeSelectors:[".side-column"]},{id:"bilibili",condition:{enableSubtitle:{false:{"excludeSelectors.add":[".bpx-player-subtitle-panel-text"]}}}},{id:"time",matches:"time.com",excludeSelectors:[".date-and-duration"],globalStyles:{".headline":"-webkit-line-clamp:unset;overflow:unset;height:unset;",h3:"-webkit-line-clamp:unset;overflow:unset;",p:"-webkit-line-clamp:unset;overflow:unset;"}},{id:"docs-swift",matches:"docs.swift.org",selectors:[".content","#menu"]},{id:"docs-oracle",matches:"docs.oracle.com",urlChangeDelay:0},{id:"uzh",matches:"www.uzh.ch",injectedCss:[".TextImage--inner {overflow:auto !important;}"]},{id:"mail-yandex",matches:"mail.yandex.com",selectors:["article",".Text_color_primary",".mail-MessageSnippet-Item_subject"],globalStyles:{".mail-MessageSnippet":"height: unset; line-height:unset;",".immersive-translate-target-translation-block-wrapper":"margin:unset;"}},{id:"edstem",matches:"edstem.org","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"forums.zotero",matches:"forums.zotero.org",selectors:[".page-sidebar",".page-content"]},{id:"pubmed.ncbi.nlm.nih.gov",matches:"pubmed.ncbi.nlm.nih.gov",urlChangeDelay:0,excludeSelectors:[".docsum-journal-citation",".citation-part",".docsum-authors",".top-wrapper",".article-source",".citation-doi",".identifiers",".cite",".share"]},{id:"chosun",matches:"www.chosun.com",injectedCss:"body {word-break: unset!important;}"},{id:"yna",matches:"*.yna*",injectedCss:["font > br {display:none}"],globalStyles:{"a,strong":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;","div,p,li,.item-box01,.news-con":"height:unset;max-height:unset;-webkit-line-clamp:unset;"},"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"cnet",matches:"www.cnet.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"dolmods",matches:"dolmods.net",globalStyles:{"[class*='max-h']":"max-height:unset!important;"}},{id:"digitimes",matches:"www.digitimes.com",globalStyles:{"a,.title,.abstract,.display-5,.top":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeSelectors.add":[".main-nav-frame",".sub-header-wrapper",".footer",".date"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"vdi-nachrichten",matches:"www.vdi-nachrichten.com","excludeSelectors.add":[".header-menu__item > a",".linkbar__item",".header__button-group"]},{id:"tldrnewsletter",matches:"actions.tldrnewsletter.com","additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"htdp",matches:"htdp.org",excludeTags:["blockquote"],stayOriginalSelectors:[".RktIn"]},{id:"bugzilla",matches:"bugzilla.mozilla.org","excludeTags.remove":["PRE"],isTransformPreTagNewLine:!0},{id:"newsletterss",matches:"newsletterss.com",initialGlobalAttributes:{iframe:{scrolling:"auto"}}},{id:"docusaurus",selectorMatches:["#__docusaurus"],"excludeSelectors.add":["aside",".DocSearch-Modal"]},{id:"mercari",matches:"*.mercari.com","excludeTags.remove":["PRE"]},{id:"qqMail",matches:"mail.qq.com",useIframePostMessage:!1},{id:"nikkei",matches:"www.nikkei.com",globalStyles:{"h3,div,span,p":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"}},{id:"pubs.rsc.org",matches:"pubs.rsc.org",excludeSelectors:[".eqn"]},{id:"indeed",matches:"*.indeed.com",globalStyles:{"span,.css-19rjr9w.e1wnkr790":"max-height:unset;-webkit-line-clamp:unset;height:unset;white-space:unset;"},"excludeTags.remove":["BUTTON"]},{id:"brutalist",matches:"brutalist.report",selectors:["li > a:first-child","aside","nav > a","h1 > a","h3 > a","h2 >a"],"additionalExcludeSelectors.remove":[".notranslate","[translate=no]"]},{id:"maxroll",matches:["maxroll.gg"],extraInlineSelectors:[".d4t-sprite-icon",".d4t-icon"]},{id:"microsoftTeams",matches:["teams.live.com"],"stayOriginalSelectors.add":["span[title][style='min-width: 20px; height: 20px;']"]},{id:"gradioappdocs",matches:"www.gradio.app/docs/*",selectors:["div.obj"],excludeSelectors:["div#examples"]}]};h();h();function er(e){return Array.isArray(e)?e:e?[e]:[]}function bn(e,t){return t?(Array.isArray(t)||(t=[t]),Array.from(new Set([...t,e]))):[e]}function at(e,t){return t?(Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),t.filter(n=>!e.includes(n))):[]}function Ti(e,t){let n={...e};return jm(n,t),q9(n,t),n}function Um(e,t,n){let a={...t};return W9(e,a,n),a}function q9(e,t){if(!t.condition)return;let n=t.condition.enableSubtitle?.true||{},a=t.condition.enableSubtitle?.false||{},r=e.enableSubtitle?n:a;jm(e,r)}function W9(e,t,n){try{return Object.keys(t).forEach(a=>{let[r,o]=a.split(".");if(o){let u=t[a];if(Array.isArray(e[r])&&(u=er(t[a])),o==="add"){t[r]=Ko(e[r],u),delete t[a];return}else if(o=="remove"){t[r]=sl(e[r],u),delete t[a];return}}}),Object.keys(n).forEach(a=>{let[r,o]=a.split(".");if(!r||n[a]===void 0)return;let u=n[a],i=t[r];if(Array.isArray(e[r])&&(u=er(n[a]),i=er(t[r])),o==="add"){t[r]=Ko(i,u);return}else if(o=="remove"){t[r]=sl(i,u);return}Array.isArray(i)&&r.startsWith("additional")?t[r]=Ko(i,u):t[r]=u}),t}catch{}}function jm(e,t){return Object.keys(t).forEach(n=>{let[a,r]=n.split(".");if(!a||t[n]===void 0)return;let o=t[n];if(Array.isArray(e[a])&&(o=er(t[n])),r==="add"){e[a]=Ko(e[a],o);return}else if(r=="remove"){e[a]=sl(e[a],o);return}Array.isArray(e[a])&&a.startsWith("additional")?e[a]=Ko(e[a],o):e[a]=o}),e}function Ko(e,t){let n;if(Array.isArray(e)){let a=er(t);n=[...e,...a],n=Array.from(new Set(n))}else typeof e=="object"&&typeof t=="object"&&(n={...e,...t});return n}function sl(e,t){if(Array.isArray(e)){let n=er(t);return e=e.filter(a=>!n.includes(a)),Array.from(new Set(e))}else typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(n=>{delete e[n]});return e}function tr(){if(Ce.PROD==="1")return{};let e={};if(Ce.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID&&Ce.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY){let n={secretId:Ce.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_ID,secretKey:Ce.IMMERSIVE_TRANSLATE_SECRET_TENCENT_SECRET_KEY};e.translationServices={},e.translationServices.tencent=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID&&Ce.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY){let n={appid:Ce.IMMERSIVE_TRANSLATE_SECRET_BAIDU_APPID,key:Ce.IMMERSIVE_TRANSLATE_SECRET_BAIDU_KEY};e.translationServices||(e.translationServices={}),e.translationServices.baidu=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN){let n={token:Ce.IMMERSIVE_TRANSLATE_SECRET_CAIYUN_TOKEN};e.translationServices||(e.translationServices={}),e.translationServices.caiyun=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY){let n={apikey:Ce.IMMERSIVE_TRANSLATE_SECRET_OPENL_APIKEY};e.translationServices||(e.translationServices={}),e.translationServices.openl=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID&&Ce.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET){let n={appId:Ce.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_ID,appSecret:Ce.IMMERSIVE_TRANSLATE_SECRET_YOUDAO_APP_SECRET};e.translationServices||(e.translationServices={}),e.translationServices.youdao=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID&&Ce.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY){let n={accessKeyId:Ce.IMMERSIVE_TRANSLATE_SECRET_VOLC_ACCESS_KEY_ID,secretAccessKey:Ce.IMMERSIVE_TRANSLATE_SECRET_VOLC_SECRET_ACCESS_KEY};e.translationServices||(e.translationServices={}),e.translationServices.volc=n}if(Ce.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY){let n={authKey:Ce.IMMERSIVE_TRANSLATE_SECRET_DEEPL_AUTH_KEY};e.translationServices||(e.translationServices={}),e.translationServices.deepl=n}if(Ce.DEEPL_PROXY_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateApiUrl=Ce.DEEPL_PROXY_ENDPOINT),Ce.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT&&(e.translationServices||(e.translationServices={}),e.translationServices.deepl||(e.translationServices.deepl={}),e.translationServices.deepl.immersiveTranslateDeeplTokenUrl=Ce.IMMERSIVE_TRANSLATE_DEEPL_ENDPOINT),Ce.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY){let n={APIKEY:Ce.IMMERSIVE_TRANSLATE_SECRET_OPENAI_API_KEY};e.translationServices||(e.translationServices={}),e.translationServices.openai=n}Ce.IMMERSIVE_TRANSLATE_SERVICE&&(e.translationService=Ce.IMMERSIVE_TRANSLATE_SERVICE);let t={};return Ce.DEBUG==="1"&&(t.debug=!0,t.cache=!1),Ce.MOCK==="1"&&(t.translationService="mock"),t}async function $n(){let e=await X.storage.local.get(Sr);if(e[Sr]){let t=e[Sr],n=t.tempTranslationUrlMatches||[],a=n.filter(u=>u.expiredAt>Date.now()),r=!1;a.length!==n.length&&(n=a,r=!0);let o={...t,tempTranslationUrlMatches:[...n]};return r&&await yn(o),o}else return{}}async function yn(e){await X.storage.local.set({[Sr]:e})}async function zm(e){await X.storage.local.set({[aa]:e})}async function ka(){await X.storage.local.set({[aa]:{}})}async function Sa(){await X.storage.local.set({[Sr]:{}})}async function Hm(){let e=await X.storage.local.get(aa),n={...xi(),...yi,buildinConfigUpdatedAt:Ce.BUILD_TIME};if(e[aa]){let a=e[aa];if(a&&a.buildinConfigUpdatedAt){let r=new Date(a.buildinConfigUpdatedAt),o=new Date(n.buildinConfigUpdatedAt);r>o&&(n=a)}}return n}async function Ge(){let e=await X.storage.local.get(aa),t={...yi,buildinConfigUpdatedAt:Ce.BUILD_TIME};if(e[aa]){let B=e[aa];if(B&&B.buildinConfigUpdatedAt){let k=new Date(B.buildinConfigUpdatedAt),L=new Date(t.buildinConfigUpdatedAt);k>L&&(t=B)}}let n=await Xe.get(ct,null),a={};if(!me()&&X.commands&&X.commands.getAll){let B=await X.commands.getAll();for(let k of B)k.name&&k.shortcut&&(a[k.name]=k.shortcut)}let r=xi(),o=tr(),u=await $o(),i=globalThis.IMMERSIVE_TRANSLATE_CONFIG||{},s=await $n(),c=new Date;if(s&&s.tempTranslationUrlMatches&&s.tempTranslationUrlMatches.length>0){let B=s.tempTranslationUrlMatches.filter(k=>new Date(k.expiredAt)>c);if(B.length>0){let k=u.translationUrlPattern?u.translationUrlPattern?.matches||[]:[],L=Array.isArray(k)?k:[k],O=Array.from(new Set(L.concat(B.map(K=>K.match))));u.translationUrlPattern={...u.translationUrlPattern,matches:O}}}let l=Object.assign({},i,o,u);if(!l.interfaceLanguage){let B=await K9();l.interfaceLanguage=B}let g=l.interfaceLanguage==="en",p=l.targetLanguage==="en",f=t&&t.translationLanguagePattern&&t.translationLanguagePattern.matches&&t.translationLanguagePattern.matches.length===0,m=["bing","google","transmart","mock"].includes(l.translationService)||!l.translationService;!g&&!p&&!f&&m?t.translationLanguagePattern||(t.translationLanguagePattern={matches:["en"],excludeMatches:[]}):t.translationLanguagePattern={matches:[],excludeMatches:[]};let y=t&&t.enableDefaultAlwaysTranslatedUrls;l.enableDefaultAlwaysTranslatedUrls===!1&&(y=!1);let v=l&&l.isChangedAlwaysTranslatedUrls,b=[];l.translationUrlPattern&&l.translationUrlPattern.matches&&(b=l.translationUrlPattern.matches||[]);let S=!1;v===void 0&&(b.length>0?v=!0:v=!1,l.isChangedAlwaysTranslatedUrls=v,u.isChangedAlwaysTranslatedUrls=v,S=!0);let A=(l?.translationLanguagePattern?.matches?.length||0)>0,N=await Ht("installedAt",""),_=Number(await ia("translage_page_daily",0)),x=Number(await Ht(Ln,0)),E;x>0&&(Date.now()-x0&&(Date.now()-_H.id&&O[H.id]?Um(t.generalRule,O[H.id],H):H);I[k]=[...K,...I[k]]}if(Ce.PROD==="0"&&Ce.DEV_RULES){let L=JSON.parse(Ce.DEV_RULES);I[k]=[...L,...I[k]]}}else l[k]!==void 0&&(I[k]=l[k])}return I.donateUrl=t.donateUrl,I.minVersion=t.minVersion,I.feedbackUrl=t.feedbackUrl,I}async function $o(){return(await X.storage.sync.get("userConfig")||{}).userConfig||{}}async function Go(e){await X.storage.sync.set({userConfig:e})}var K9=async()=>{let e=["zh-CN"];try{e=await X.i18n.getAcceptLanguages()}catch(a){j.warn("get browser language error:",a)}let n=e.map(a=>Qa(a)).find(a=>Qt[a]);return n||"en"},xi=()=>{let e={...yi,buildinConfigUpdatedAt:Ce.BUILD_TIME};return{...e,targetLanguage:Xu,interfaceLanguage:"en",translationMode:"dual",debug:!1,alpha:!1,translationUrlPattern:{matches:[],excludeMatches:[]},translationLanguagePattern:{matches:[],excludeMatches:[]},translationThemePatterns:{},translationParagraphLanguagePattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationBodyAreaPattern:{matches:[],excludeMatches:[],selectorMatches:[],excludeSelectorMatches:[]},translationTheme:"none",translationService:"bing",inputTranslationService:"inherit",mouseHoverTranslationService:"inherit",translationArea:"main",translationStartMode:"dynamic",translationServices:{},generalRule:{...e.generalRule},translationGeneralConfig:{engine:"bing"},rules:[]}};function $9(e,t){return e=e||[],t=t||[],e.length!==t.length?!0:t.filter(a=>!e.includes(a)).length>0}h();function Vo(e){if(Math.abs(e)<1024)return e+" Byte";let n=["KB","MB","GB","TB","PB","EB","ZB","YB"],a=-1;do e/=1024,++a;while(Math.abs(e)>=1024&&as+c.text.length,0)+u.text.length>t||o.tempSentences.length>=n)&&(r.push(o),o={fromByClient:o.fromByClient,from:u.from,to:u.to,tempSentences:[],url:u.url}),(o.from!==u.from||o.to!==u.to)&&(o.tempSentences.length>0?(r.push(o),o={fromByClient:o.fromByClient,from:u.from,to:u.to,tempSentences:[],url:u.url}):(o.from=u.from,o.to=u.to)),o.tempSentences.push(u);return o.tempSentences.length>0&&r.push(o),r}function G9(e,t){let n=[],a=[];for(let r=0;r0?mt){let b=[];ll(y,t,b);for(let S=0;S0&&g{let i=e.lastIndexOf(u,t);return i>o?i:o},-1);if(r===-1){let o=e.slice(0,t);if(o&&!o.trim())return;n.push({text:o,prefix:"",suffix:""}),e.length>t&&ll(e.slice(t),t,n)}else{let o=e.slice(0,r+1);if(o&&o.trim()==="")return;o.startsWith(" ")?n.push({text:o.slice(1),prefix:" ",suffix:""}):n.push({text:o,prefix:"",suffix:""}),r+10){l.forEach(g=>{c.length>0&&g.providers&&g.providers.length>0&&!g.providers.includes(s)||(g.optional?p.push(g):m.push(g))});let f=p.concat(m).filter(g=>g.required);if(f.length>0){for(let g of f)if(!r[g.name]){i=!1;break}}}return{...a,id:t,selected:n[e]===t,ok:i,currentProvider:s,config:r,providers:a.providers||[],props:a.props||[],allProps:l,optionalProps:p,explicitProps:m}}var Ci=(e,t)=>{let{config:n}=e,a=n.alpha,r=n.beta,o=n.canary,u=n.debug,i=e.user,s=Xt(i);return Object.keys(Mn).filter(l=>{let m=Mn[l];if(l.startsWith("mock"))return u?!0:l===e.config[t];if(l===e.config[t])return!0;if(l==="openai"&&ot())return e.config.showOpenaiOnSafari||s?!0:!!(r||a||o||s);let p=!!m.canary,f=!!m.alpha,g=!!m.beta;return l===e[t]||p&&o||f&&(a||o)||g&&(r||a||o)?!0:!f&&!g&&!p}).map(l=>cl(t,l,e))};function Fn(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}h();h();h();h();h();h();h();h();h();var ok=Wm(2),qm=Wm(3);function Wm(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let a=[];if(n==null)return a;let r=typeof n.slice=="function"?n:String(n),o=r.length-e+1;if(o<1)return a;for(;o--;)a[o]=r.slice(o,o+e);return a}}h();var G9=/\s+/g,V9=/[\t\n\v\f\r ]+/g;function Km(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?Y9:J9;return String(e).replace(t.style==="html"?V9:G9,t.trim?Q9(n):n)}function Y9(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function J9(){return" "}function Q9(e){return t;function t(n,a,r){return a===0||a+n.length===r.length?"":e(n)}}var $m={}.hasOwnProperty;function Z9(e){return e==null?"":Km(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function X9(e){return qm(" "+Z9(e)+" ")}function eb(e){let t=X9(e),n={},a=-1;for(;++an&&(n=o,a=r)}return[a,n]}function ib(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function sb(e,t,n,a){t=cb(t,n,a);let r=[],o;if(t)for(o in t)vi.call(t,o)&&r.push([o,lb(e,t[o])]);return r.length===0?gl():r.sort(db)}function lb(e,t){let n=0,a=-1;for(;++at.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharactersu+i.length,0));let o=e.length-a;for(let u of Eb){let i=u[1],s=u[0],c=e.match(i),l=c?c.length:0;l>n&&(n=l,t=s)}return n*2.5/o>.5?t==="zh-CN"?ep(e)?"zh-TW":"zh-CN":t:"auto"}var np=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],ml=new Map(np),Cb=new Map(np.map(([e,t])=>[t,e]));function ap(e,t,n=["en"]){if(!e)return"auto";let a=n.map(i=>Cb.get(i));!t&&t!==0&&(t=25);let r=ki(e);if(r!=="auto")return r;let o={minLength:t,whitelist:[...ml.keys()]},u=Ym(e,o);if(u&&u.length>0){for(let[l,m]of u)if(a.includes(l)&&m>.5)return ml.get(l);let[i,s]=u[0],c=ml.get(i);if(c&&s>.5)return c}return"auto"}h();h();function Aa(e,t){var n=(e&65535)+(t&65535),a=(e>>16)+(t>>16)+(n>>16);return a<<16|n&65535}function vb(e,t){return e<>>32-t}function Ai(e,t,n,a,r,o){return Aa(vb(Aa(Aa(t,e),Aa(a,o)),r),n)}function Rt(e,t,n,a,r,o,u){return Ai(t&n|~t&a,e,t,r,o,u)}function It(e,t,n,a,r,o,u){return Ai(t&a|n&~a,e,t,r,o,u)}function Ot(e,t,n,a,r,o,u){return Ai(t^n^a,e,t,r,o,u)}function Nt(e,t,n,a,r,o,u){return Ai(n^(t|~a),e,t,r,o,u)}function Si(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,a,r,o,u,i=1732584193,s=-271733879,c=-1732584194,l=271733878;for(n=0;n>5]>>>t%32&255);return n}function pl(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(a=Si(a,e.length*8)),n=0;n<16;n+=1)r[n]=a[n]^909522486,o[n]=a[n]^1549556828;return u=Si(r.concat(pl(t)),512+t.length*8),rp(Si(o.concat(u),512+128))}function op(e){var t="0123456789abcdef",n="",a,r;for(r=0;r>>4&15)+t.charAt(a&15);return n}function fl(e){return unescape(encodeURIComponent(e))}function up(e){return wb(fl(e))}function Sb(e){return op(up(e))}function ip(e,t){return kb(fl(e),fl(t))}function Ab(e,t){return op(ip(e,t))}function Da(e,t,n){return t?n?ip(t,e):Ab(t,e):n?up(e):Sb(e)}var Or=[];async function Jo(e,t){return await new Promise((n,a)=>{let r=e,o=1,u=indexedDB.open(r,o);u.onsuccess=i=>{n(u.result)},u.onerror=i=>{a()},u.onupgradeneeded=i=>{let s=u.result,c=t||"cache";s.createObjectStore(c,{keyPath:"key"})}})}async function hl(e){let t=`${X}-${e.service}@${e.from}->${e.to}`;return await Lb(t,e)}async function bl(e){let t=Da(e.originalText),n=`${X}-${e.service}@${e.from}->${e.to}`;return await Db(n,t)}async function Db(e,t){let n=await Jo(e);return await new Promise((a,r)=>{if(!n)return r();let o="cache",i=n.transaction([o],"readonly").objectStore(o).get(t);i.onsuccess=s=>{n.close();let c=i.result;a(c)},i.onerror=s=>{n.close(),r()}})}async function Lb(e,t){let n=await Jo(e);return(await yl()).includes(e)||await Mb(e),await new Promise(r=>{if(!n)return r(!1);let o="cache",i=n.transaction([o],"readwrite").objectStore(o).put(t);i.onsuccess=s=>{n.close(),r(!0)},i.onerror=s=>{n.close(),r(!1)}})}async function Mb(e){let t="cache_list",n=await Jo(X+"-cacheList",t),r=n.transaction([t],"readwrite").objectStore(t).put({key:e});r.onsuccess=o=>{n.close(),Or.push(e)},r.onerror=o=>{n.close()}}async function yl(){if(Or&&Or.length>0)return Or;let e=await Jo(X+"-cacheList","cache_list");return Or=await new Promise(t=>{let n="cache_list",r=e.transaction([n],"readonly").objectStore(n).getAllKeys();r.onsuccess=o=>{e.close(),t(r.result)},r.onerror=o=>{e.close(),t([])}}),Or}async function Tl(){try{let e=[];(await yl()).forEach(a=>{e.push(Pb(a))});let n=await Promise.all(e);return Vo(n.reduce((a,r)=>a+r,0))}catch{return Vo(0)}}async function Pb(e){let t=await Jo(e),a=[...t.objectStoreNames].reduce((u,i)=>{let s=Fb(t,i);return u.push(s),u},[]),r=await Promise.all(a);return t.close(),r.reduce((u,i)=>u+i,0)}async function Fb(e,t){return await new Promise((n,a)=>{if(e==null)return a();let r=0,o=e.transaction([t]).objectStore(t).openCursor();o.onsuccess=u=>{let i=o.result;if(i){let s=i.value,c=JSON.stringify(s);r+=c.length,i.continue()}else n(r)},o.onerror=u=>a("error in "+t+": "+u)})}async function sp(){try{let t=(await yl()).map(a=>_b(a));return!!(await Promise.all(t)).every(a=>a)}catch{return!1}}async function _b(e){return await new Promise(t=>{let n=indexedDB.deleteDatabase(e);n.onsuccess=()=>{t(!0)},n.onerror=a=>{t(!1)}})}h();h();h();var lp="G-MKMD9LWFTR";async function et(e,t,n){try{let a=Ke();if(a.INSTALL_FROM==="firefox_store")return;let o=me(),u=mt(),i=a.PROD==="1",s=`report_${e}`,c=e.endsWith("_daily");if(c){if(u)return;let T=await sa(s,0),w=Di(new Date(T)),C=Date.now(),I=Di(new Date(C));if(w===I)return;await Fm(s,C)}else if(!n.config.telemetry)return;let l="sitc4WmvShWYwfU0dANM3Q",m=await Ht("fakeUserId","");m||(m=await sa("fakeUserId",""),m&&await $e("fakeUserId",m));let p=hn(),f=new Date,g=await Ht("installedAt","");g||(g=await sa("installedAt",""),g&&await $e("installedAt",g)),m?g||(g=new Date(0).toISOString(),await $e("installedAt",g)):(m=Bb(32),await $e("fakeUserId",m)),g||(g=f.toISOString(),await $e("installedAt",g));let y=new Date(g),v=Di(y),b=Di(f),S=v===b,A=f.getTime()-y.getTime()<7*24*60*60*1e3,N=`https://www.google-analytics.com/mp/collect?measurement_id=${lp}&api_secret=${l}`;i||(N=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${lp}&api_secret=${l}`);let _=xr.parse(window.navigator.userAgent),x=t.map(T=>{let w=T.params||{};if(_.os&&(w.os_name=_.os.name||"unknown",w.os_version=_.os.version||"unknown",w.os_version_name=_.os.versionName||"unknown"),_.browser&&(w.browser_name=_.browser.name||"unknown",w.browser_version=_.browser.version||"unknown"),_.platform&&(w.platform_type=_.platform.type||"unknown"),_.engine&&(w.engine_name=_.engine.name||"unknown",w.engine_version=_.engine.version||"unknown"),n.translationService&&(w.translation_service||(w.translation_service=n.translationService),n.config.translationServices&&n.config.translationServices[n.translationService]&&(n.config.translationServices[n.translationService].provider&&(w.translation_service_provider=n.config.translationServices[n.translationService].provider),n.translationService==="openai"&&n.config.translationServices[n.translationService].provider==="custom"&&(n.config.translationServices[n.translationService].apiUrl?n.config.translationServices[n.translationService].apiUrl.startsWith("https://api.openai.com/")?w.openai_is_official="1":w.openai_is_official="0":w.openai_is_official="1"))),n.targetLanguage&&(w.target_language=n.targetLanguage),n.config.interfaceLanguage&&(w.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?w.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":w.enable_default_always_translated_urls="0",p&&(w.version=p),n.config.enableInputTranslation?w.enable_input_translation=n.config.enableInputTranslation?"1":"0":w.enable_input_translation="0",n.config.translationTheme&&(w.translation_theme=n.config.translationTheme),n.config.alpha&&(w.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?w.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):w.always_translate_languages="none",a.INSTALL_FROM&&(w.install_from=a.INSTALL_FROM),n.config.beta&&(w.beta=n.config.alpha.toString()),n.config.translationArea&&(w.translation_area=n.config.translationArea),n.rule&&n.rule.enableSearchEnhancement!==void 0&&(w.enable_search_enhancement=n.rule.enableSearchEnhancement?"1":"0"),v&&(w.install_day=Rb(y)),n.user){let I=cm(n.user);I&&Object.keys(I).forEach(M=>{w[M]=I[M]})}else w.user_type="anonymous";n.config.translationMode&&(w.translation_mode=n.config.translationMode),w.userscript=o.toString(),S?w.is_new_user_today="1":w.is_new_user_today="0",A?w.is_new_user_this_week="1":w.is_new_user_this_week="0",n.config.tempTranslateDomainMinutes?w.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():w.temp_translate_domain_minutes="0";let C="html";if(n.rule.isEbook?C="ebookReader":n.rule.isPdf?C="pdfReader":n.rule.isEbookBuilder?C="ebookBuilder":n.rule.isSubtitleBuilder&&(C="subtitleBuilder"),w.page_type=C,u?w.main_frame=0:w.main_frame=1,!c){let I=n.url;try{let M=new URL(I);w.site_host=M.hostname}catch{w.site_host="unknown"}n.sourceLanguage&&(w.source_language=n.sourceLanguage)}return{...T,params:w}}),E=await se({responseType:"text",url:N,method:"POST",body:JSON.stringify({client_id:m,user_id:m,events:x})})}catch{}}function Bb(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;rt.removeEventListener("message",n)),e.length=0}function Ub(e,t,n,a){return new Promise(r=>{let o=u=>{let i=u.data;Ob(t,n,i)&&i.id===a&&(e.removeEventListener("message",o),r(i.response))};e.addEventListener("message",o)})}function jb(e,t,n,a){let r=o=>{let u=o.data;pp(t,"tell",n,u)&&a(u.body)};return e.addEventListener("message",r),[e,r]}function cp(e,t,n,a,r,o){let u=async i=>{let s=i.data;if(pp(n,"ask",a,s)){let c=await o(s.body);t=i.source,t.postMessage(Ib(n,a,s.id,c),i.origin)}};return e.addEventListener("message",u),[e,u]}function zb(e,t,n,a,r){let o=Math.random().toString();return e.postMessage(mp(t,"tell",n,o,a),r)}async function dp(e,t,n,a,r,o,u){let i=Math.random().toString(),s=new Promise(async(c,l)=>{let m=setTimeout(()=>l(new Error(`Failed to get response within ${u}ms`)),u),p=await Ub(e,n,a,i);clearTimeout(m),c(p)});return t.postMessage(mp(n,"ask",a,i,r),o),s}var Ma=class e{constructor(t,n,a=window,r="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=a;this.targetOrigin=r;cp(a,n,this.getSystemProtocol("ping"),"ping",r,()=>Promise.resolve({}))}static async connect(t,n=10,a=500){for(let r=0;r<=n;r++)try{return await t.ping({timeout:a}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*a}ms`)}static parent(t,n,a="*",r=window){let o=n.contentWindow;if(La(o))return new e(t,o,r,a);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:a=window,targetWindow:r=window.parent}={}){return new e(t,r,a,n)}static rootIframe(t,n="*",{thisWindow:a=window}={}){return new e(t,null,a,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await dp(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(jb(this.thisWindow,this.protocol,t,n))}tell(t,n){zb(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(cp(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,a=1e4){if(this.targetWindow)return dp(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,a);throw new Error("target window is requried")}destroy(){Nb(this.listeners)}};var fp;async function hp(){if(mt()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=Ma.iframe(ni,"*",{targetWindow:t});fp=n,await Ma.connect(n).catch(a=>{j.error("connect with parent frame error",a)})}}function Li(){return fp}h();function bp(e,t){let n=t.matches||[],a=t.excludeMatches||[];if(a&&!Array.isArray(a)&&(a=[a]),n&&!Array.isArray(n)&&(n=[n]),a.length>0){if(a.includes(e)||a.includes(""))return!1;for(let r of a)if(r.includes("*")&&new RegExp(r).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let r of n)if(r.includes("*")&&new RegExp(r).test(e))return!0}return!1}h();h();var Hb=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function _n(e,t){if(t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function xl(e,t,n){let{blockSelectors:a,extraBlockSelectors:r,extraInlineSelectors:o}=t;if(_n(e,o))return!1;if(_n(e,r)||e.nodeName.toLowerCase()==="br")return!0;let s=null;return e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(s=e.parentNode.immersiveTranslateComputedStyle),s&&s.display&&s.display==="inline-flex"?!1:n&&n.display?!!Hb.includes(n.display):_n(e,a)}var qt=_n;function Xa(e){return!!e.shadowRoot}function Pa(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function Qo(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Mi(e){let t=Ka;return e&&(t=e),t}function Pi(e,t){return Sa(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function qb(e){let{rule:t}=e,n=e.config.loadingTheme;return` <${t.targetWrapperTag} class="${X}-loading-${n} notranslate">`}function Zo(e,t){let n=e.rule,a=document.createElement(n.targetWrapperTag);a.classList.add("notranslate",un),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),pt(a,_g,t.toString());let r=qb(e);return a.append(Ne.sanitize(r,{RETURN_DOM_FRAGMENT:!0})),a}function Nr(e,t){return e.querySelector(`[${O0}='${t}']`)}function yp(){document.querySelectorAll(`[${O0}]`).forEach(t=>{t.remove()})}function Tp(){document.querySelectorAll(`.${un}-error`).forEach(t=>{t.remove()})}function xp(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{Mr(n)&&t.push(n)}),t}function Ep(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:a,delimiters:r,text:o}=e,u=new RegExp(`${r[0]}(\\d+)${r[1]}`,"gi");if(r.length>2){let s=r[2];u=new RegExp(`<${s}(\\d+)>(.*?)`,"gi")}let i=o.trim();return i=i.replace(u,""),i=i.trim(),i===""||i.length===1&&i.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(o)||i.includes("")||i.includes("< styles>")||om(i)||tm(i)||rm(i)||nm(i)||am(i)||u.test(i)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(i)?!1:oi(o,n,a)}function Bn(e){return e.nodeType===Node.ELEMENT_NODE}function Cp(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}function vp(e){try{let t=Math.floor((new Date-new Date(e))/1e3);return t<60?`${t} \u79D2\u524D`:t<3600?`${Math.floor(t/60)} \u5206\u949F\u524D`:t<86400?`${Math.floor(t/3600)} \u5C0F\u65F6\u524D`:`${Math.floor(t/86400)} \u5929\u524D`}catch{return e}}function wp(e){let t=new Date(e),n=t.getFullYear(),a=t.getMonth()+1,r=t.getDate(),o=t.getHours(),u=t.getMinutes(),i=t.getSeconds();return`${n}/${a}/${r} ${o}:${u}:${i}`}async function kp(e){let n=Ke().INSTALL_FROM,a=hn(),r=await Ht("installedAt",""),o=await Ht("fakeUserId","");return{installFrom:n,version:a,installedAt:r,interfaceLang:e,deviceId:o}}var Wb=1e5;function Fa(e){let{onParagraph:t,filterRule:n,id:a}=e;n=Kb(n);let{stayOriginalSelectors:r,globalStyles:o,selectors:u,isTransformPreTagNewLine:i,lineBreakMaxTextCount:s,globalAttributes:c,isModifyImage:l,skipEditableCheck:m}=n,p={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},f=!1,g=null;function y(_){let{container:x,onFrame:E,onIgnoreElement:T,id:w}=_,C=document.createTreeWalker(x,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,D=>{let F=M(D);return F==NodeFilter.FILTER_ACCEPT?tn.mark(D,w,m):F==NodeFilter.FILTER_REJECT,F}),I=x;if(M(I)===NodeFilter.FILTER_REJECT)return;for(tn.mark(I,w,m);I;){if(u&&u.length>0){let{currentNode:D,isMatchedSelection:F}=v(C,I,u);if(D)I=D;else break;if(!F)continue}if(I.nodeType===Node.ELEMENT_NODE||I.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let D=I;if(D.nodeName==="IFRAME"){E&&E(D),b(),El(p,!0),I=C.nextNode();continue}D.nodeType===Node.ELEMENT_NODE&&(o&&vl(D,o),c&&kl(D,c));let F=xl(D,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},D.immersiveTranslateComputedStyle||null);if(qt(D,r)&&!F){S(D);let B=null;for(;!(B=C.nextSibling())&&C.parentNode(););I=B;continue}let U=Xa(D);(!Sp(p,D)||F)&&(b(),D.childNodes.length>0&&A(p,D,D.immersiveTranslateComputedStyle||null)),U&&D.shadowRoot?.mode==="open"&&(F?E?.(D.shadowRoot):y({..._,container:D.shadowRoot})),D.nodeType===Node.ELEMENT_NODE&&D.nodeName==="PRE"&&i&&Yb(D)}else if(I.nodeType===Node.TEXT_NODE)S(I);else throw new Error("should not be here");I=C.nextNode(),p.commonAncestorContainer&&I&&I.parentNode===p.commonAncestorContainer&&(p._currentStacks=[]),p.commonAncestorContainer&&I&&I.nodeType===Node.ELEMENT_NODE&&p._currentStacks.push(I)}function M(D){if(D.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Bn(D)){if(c){let B=Object.keys(c);if(B.length>0&&qt(D,B))for(let L of B){let O=c[L];if(D.matches(L)){let K=c[L],H=Object.keys(K);for(let V of H){let q=K[V];D.getAttribute(V)!==q&&(q===null?D.removeAttribute(V):D.setAttribute(V,q))}break}}}if(!_.force&&tn.isMarked(D,w)||Cp(D,w)||Sl(D,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,stayOriginalSelectors:r})||D.nodeName==="IFRAME"&&!Mr(D))return NodeFilter.FILTER_REJECT;let F=D.getBoundingClientRect(),{width:U,height:z}=F;if(D.nodeType===Node.ELEMENT_NODE){let B=window.getComputedStyle(D);if(D.immersiveTranslateComputedStyle={display:B.display,whiteSpace:B.whiteSpace,left:F.left+"px",right:F.right+"px",top:F.top+"px",bottom:F.bottom+"px"},wl(D.immersiveTranslateComputedStyle))return T&&T(D),NodeFilter.FILTER_REJECT;let k=xl(D,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},D.immersiveTranslateComputedStyle||null);if(qt(D,r)&&k)return NodeFilter.FILTER_REJECT}return D.nodeName==="IMG"&&(U>48&&z>48?D.immersiveTranslateComputedStyle={display:"block"}:U>0&&z>0&&l!==!1&&(D.setAttribute("width",U),D.setAttribute("height",z))),!D.childNodes||D.childNodes&&D.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!p.isPreWhitespace&&(U>0&&U<4||z>0&&z<4)&&(D.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(D.nodeType===Node.TEXT_NODE){let F=D.textContent?.trim();if(!F)return p.isPreWhitespace?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let U=D.parentNode;if(U.getBoundingClientRect){let{width:z,height:B}=U.getBoundingClientRect();if(z>0&&z<4||B>0&&B<4)return NodeFilter.FILTER_REJECT}return s>0&&F.length>=s&&Cl(D,s),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}y(e),p&&p.commonAncestorContainer&&p.flatNodes.length>0&&b();function v(_,x,E){let T=x.immersiveTranslateComputedStyle||null;if(g){if(!g.contains(x))if(f=!1,x&&x.nodeType===Node.ELEMENT_NODE)if(Fi(x,E))f=!0,g=x,b(),A(p,g,T);else return f=!1,x=_.nextNode(),{currentNode:x,isMatchedSelection:f};else return f=!1,x=_.nextNode(),{currentNode:x,isMatchedSelection:f}}else if(x&&x.nodeType===Node.ELEMENT_NODE)if(Fi(x,E))f=!0,g=x,b(),A(p,g,T);else return f=!1,x=_.nextNode(),{currentNode:x,isMatchedSelection:f};else return f=!1,x=_.nextNode(),{currentNode:x,isMatchedSelection:f};return{currentNode:x,isMatchedSelection:!0}}function b(){let _=Vb(p,a);_&&t&&t(_),El(p)}function S(_){if(!Sp(p,_)){b(),El(p);let x=_.parentNode;x&&A(p,x,x.computedStyle)}p.flatNodes.push(_)}function A(_,x,E){_.commonAncestorContainer=x;let T=N(E);_.isPreWhitespace=T}function N(_){return _&&_.whiteSpace&&_.whiteSpace.startsWith("pre")||_&&_.whiteSpace==="break-spaces"||!1}}function Sp(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=Xa(t));let a=Gb(e),r=!0;return!n&&!a&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?r=!0:e.commonAncestorContainer&&(r=!1,e._currentStacks=[])),r}function Kb(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let a=n!=="iframe";return t?a&&n!=="pre":a}),e}function $b(e,t,n){if(t){for(let a of t.childNodes)if(a.contains(n))return a}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function vl(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let r of n){let o=t[r];if(e.matches(r)){let u=e.style.cssText||"";u&&(u=u.trim()),u&&!u.endsWith(";")&&(u+=";"),e.style.cssText=u+o;break}}}}function Gb(e){return e&&e._currentStacks?e._currentStacks.some(t=>Xa(t)):!1}function Vb(e,t){let{flatNodes:n,commonAncestorContainer:a}=e;if(a&&n.length>0){if(!n.map(p=>p.textContent?.trim()||"").join(""))return null;if(n.length===1)return{ctxId:t,stepState:1,commonAncestorContainer:n[0].parentNode,rootNodes:[n[0]],flatNodes:n,isPreWhitespace:e.isPreWhitespace,variables:{}};let o=Jb(n,a);o||(o=a);let u=[];for(let p of n){let f=$b(e,o,p);f&&(u.includes(f)||u.push(f))}if(u.length<1)return null;let i=u[0],s=u[u.length-1],c=[],l=i,m=0;for(;l&&(c.push(l),l!==s);){if(m++,m>Wb){j.warn("loop too many times for convert root nodes, break");break}l=l.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:n,commonAncestorContainer:o,variables:{},isPreWhitespace:e.isPreWhitespace}}else return null}function El(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function wl(e){let t=e.top?parseInt(e.top):0,n=e.left?parseInt(e.left):0,a=e.right?parseInt(e.right):0,r=e.bottom?parseInt(e.bottom):0;return isNaN(t)&&(t=0),isNaN(n)&&(n=0),isNaN(a)&&(a=0),isNaN(r)&&(r=0),e.display==="none"||t<-1e3||n<-1e3||a<-1e3||r<-1e3}var tn={_marked_key:"immersive_translate_walked",isMarked(e,t){return $0(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Xa(e)))return ii(e,this._marked_key)},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||Xa(e)))return pt(e,this._marked_key,t,!1,n)},markWalk(e,t,n){if(!e||e.nodeType!==Node.ELEMENT_NODE||this.isSkipMarkEle(e))return;let a=Dr(e,"markWalk")||"";return pt(e,"markWalk",a+","+t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||Xa(e)):!1}};function Yb(e){let n=e.innerHTML.replace(/\n\n/g,"
");e.innerHTML=Ne.sanitize(n)}function Jb(e,t){if(!e.length)return null;let n=e.map(a=>{let r=new Set;for(;(a=a.parentNode)&&(r.add(a),a!==t););return r});for(let a of n[0])if((a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&n.every(r=>r.has(a)))return a;return null}function Cl(e,t){let n=e.textContent||"";if(n.trim().length<=t)return;let o=[". ","? ","! ","\u3002","\uFF1F","\uFF01"].reduce((u,i)=>{let s=n.lastIndexOf(i,t);return s>u?s:u},-1);if(o>1){let u=n[o-1]||"",i=n[o-2]||"",s=n[o+1]||"";u==="."||s==="."||s===")"||i==="."&&u==="S"||i.toUpperCase()==="M"&&(u.toUpperCase()==="R"||u.toUpperCase()==="S")?o=-1:isNaN(Number(u))||(o=-1)}if(o===-1)n.length>t+20&&Cl(e,t+20);else{let u=n.slice(o+1);o++,u.startsWith(" ")&&o++;let i=e.splitText(o),s=document.createElement("br");i.parentNode?.insertBefore(s,i),o+10)for(let a of n){let r=t[a],o=Object.keys(r),u=Qg(e,[a]);for(let i of u)for(let s of o){let c=r[s];i.getAttribute(s)!==c&&(c===null?i.removeAttribute(s):i.setAttribute(s,c))}}}function Dp(e,t,n,a,r,o){let u=Object.keys(t);if(u.length>0)for(let i of u){let s=t[i],c=Object.keys(s),l=e.querySelector(i);if(l)for(let m of c){let p=s[m];if(m==="translate"&&p==="no"){let g=l.innerText||l.textContent||"";if(!g.trim()||Qb(l,r,o)||!Xg(g,n,a))continue}l.getAttribute(m)!==p&&(p===null?l.removeAttribute(m):l.setAttribute(m,p))}}}function kl(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let r of n){let o=t[r];if(e.matches(r)){let u=t[r],i=Object.keys(u);for(let s of i){let c=u[s];e.getAttribute(s)!==c&&(c===null?e.removeAttribute(s):e.setAttribute(s,c))}break}}}}function Sl(e,t){return qt(e,t.excludeSelectors||[])?qt(e,t.selectors||[])?!1:!qt(e,t.stayOriginalSelectors||[]):!1}function Fi(e,t){if(t.length===0)return!1;let n=t.filter(a=>!a.endsWith("*")).map(a=>a+" *");return qt(e,t.concat(n))}function Qb(e,t,n){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,r=>NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let r=a.currentNode;if(r.nodeType===Node.TEXT_NODE&&parent){let o=r.textContent||"";if(o.includes("Copyright"))continue;if(oi(o,t,n))return!0}}return!1}h();h();var Lp=["*://*/*","*","*://*"],Pp="immersive-translate-wildcard-placeholder.com";function Al(e,t){let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(u=>Lp.includes(u)))return e;let a=new URL(e);a.hash="",a.search="";let r=a.href,o=a.hostname;if(n&&n.length>0){let u=n.find(i=>{let s=i;if(i===o)return!0;if(Lp.includes(i))return!0;if(!i.includes("*")&&i.includes("://")){try{let c=new URL(i);return c.pathname==="/"&&!i.endsWith("/")?c.hostname===o:Xb(r,i)}catch{}return!1}else{let c,l=i;if(i.includes("://")){let v=i.split("://");c=v[0],c==="*"&&v.length>1&&(c="*",i="https://"+v[1])}else c="*",i="https://"+i;let m=i.replace(/\*/g,Pp),p;try{p=new URL(m)}catch{return j.debug("invalid match pattern",m,"raw match value:",l),!1}let f=p.hostname,g=p.pathname;g==="/"&&(l.replace("://","").includes("/")||(g="/*"));let y=Zb(c+":",Mp(f),Mp(g));if(y){let v=new URL(r);return v.port="",y.test(v.href)}else return!1}});if(u)return u}return null}function Mp(e){return e.replaceAll(Pp,"*")}function Zb(e,t,n){let a="^";return e==="*:"?a+="(http:|https:|file:)":a+=e,a+="//",t&&(e==="file:"||(t==="*"?a+="[^/]+?":(t.match(/^\*\./)&&(a+="[^/]*?",t=t.substring(2)),a+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?a+="(/.*)?":n.includes("*")?(a+=n.replace(/\*/g,".*?"),a+="/?"):a+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):a+="/?",a+="$",new RegExp(a)}function Vn(e,t){return Al(e,t)!==null}function Xb(e,t){let n=new URL(e),a=new URL(t);return n.hostname===a.hostname&&n.pathname===a.pathname&&n.protocol===a.protocol&&n.port===a.port}h();h();var Ur="input is invalid type",Dl=typeof window=="object",_a=Dl?window:{};_a.JS_SHA256_NO_WINDOW&&(Dl=!1);var ey=!Dl&&typeof self=="object",ty=!_a.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;ty?_a=global:ey&&(_a=self);var _S=!_a.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,BS=typeof define=="function"&&define.amd,Xo=!_a.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",de="0123456789abcdef".split(""),ny=[-2147483648,8388608,32768,128],Rn=[24,16,8,0],_i=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],Bi=["hex","array","digest","arrayBuffer"],vt=[];(_a.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});Xo&&(_a.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var Fp=function(e,t){return function(n){return new wt(t,!0).update(n)[e]()}},Bp=function(e){var t=Fp("hex",e);t.create=function(){return new wt(e)},t.update=function(r){return t.create().update(r)};for(var n=0;n>2]|=e[r]<>2]|=a<>2]|=(192|a>>6)<>2]|=(128|a&63)<=57344?(i[o>>2]|=(224|a>>12)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<>2]|=(240|a>>18)<>2]|=(128|a>>12&63)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<=64?(this.block=i[16],this.start=o-64,this.hash(),this.hashed=!0):this.start=o}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};wt.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=ny[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};wt.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,o=this.h5,u=this.h6,i=this.h7,s=this.blocks,c,l,m,p,f,g,y,v,b,S,A;for(c=16;c<64;++c)f=s[c-15],l=(f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3,f=s[c-2],m=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10,s[c]=s[c-16]+l+s[c-7]+m<<0;for(A=t&n,c=0;c<64;c+=4)this.first?(this.is224?(v=300032,f=s[0]-1413257819,i=f-150054599<<0,a=f+24177077<<0):(v=704751109,f=s[0]-210244248,i=f-1521486534<<0,a=f+143694565<<0),this.first=!1):(l=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),m=(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7),v=e&t,p=v^e&n^A,y=r&o^~r&u,f=i+m+y+_i[c]+s[c],g=l+p,i=a+f<<0,a=f+g<<0),l=(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10),m=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),b=a&e,p=b^a&t^v,y=i&r^~i&o,f=u+m+y+_i[c+1]+s[c+1],g=l+p,u=n+f<<0,n=f+g<<0,l=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),m=(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7),S=n&a,p=S^n&e^b,y=u&i^~u&r,f=o+m+y+_i[c+2]+s[c+2],g=l+p,o=t+f<<0,t=f+g<<0,l=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),m=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),A=t&n,p=A^t&a^S,y=o&u^~o&i,f=r+m+y+_i[c+3]+s[c+3],g=l+p,r=e+f<<0,e=f+g<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+a<<0,this.h4=this.h4+r<<0,this.h5=this.h5+o<<0,this.h6=this.h6+u<<0,this.h7=this.h7+i<<0};wt.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,o=this.h5,u=this.h6,i=this.h7,s=de[e>>28&15]+de[e>>24&15]+de[e>>20&15]+de[e>>16&15]+de[e>>12&15]+de[e>>8&15]+de[e>>4&15]+de[e&15]+de[t>>28&15]+de[t>>24&15]+de[t>>20&15]+de[t>>16&15]+de[t>>12&15]+de[t>>8&15]+de[t>>4&15]+de[t&15]+de[n>>28&15]+de[n>>24&15]+de[n>>20&15]+de[n>>16&15]+de[n>>12&15]+de[n>>8&15]+de[n>>4&15]+de[n&15]+de[a>>28&15]+de[a>>24&15]+de[a>>20&15]+de[a>>16&15]+de[a>>12&15]+de[a>>8&15]+de[a>>4&15]+de[a&15]+de[r>>28&15]+de[r>>24&15]+de[r>>20&15]+de[r>>16&15]+de[r>>12&15]+de[r>>8&15]+de[r>>4&15]+de[r&15]+de[o>>28&15]+de[o>>24&15]+de[o>>20&15]+de[o>>16&15]+de[o>>12&15]+de[o>>8&15]+de[o>>4&15]+de[o&15]+de[u>>28&15]+de[u>>24&15]+de[u>>20&15]+de[u>>16&15]+de[u>>12&15]+de[u>>8&15]+de[u>>4&15]+de[u&15];return this.is224||(s+=de[i>>28&15]+de[i>>24&15]+de[i>>20&15]+de[i>>16&15]+de[i>>12&15]+de[i>>8&15]+de[i>>4&15]+de[i&15]),s};wt.prototype.toString=wt.prototype.hex;wt.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,o=this.h5,u=this.h6,i=this.h7,s=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,a>>24&255,a>>16&255,a>>8&255,a&255,r>>24&255,r>>16&255,r>>8&255,r&255,o>>24&255,o>>16&255,o>>8&255,o&255,u>>24&255,u>>16&255,u>>8&255,u&255];return this.is224||s.push(i>>24&255,i>>16&255,i>>8&255,i&255),s};wt.prototype.array=wt.prototype.digest;wt.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function Ri(e,t,n){var a,r=typeof e;if(r==="string"){var o=[],u=e.length,i=0,s;for(a=0;a>6,o[i++]=128|s&63):s<55296||s>=57344?(o[i++]=224|s>>12,o[i++]=128|s>>6&63,o[i++]=128|s&63):(s=65536+((s&1023)<<10|e.charCodeAt(++a)&1023),o[i++]=240|s>>18,o[i++]=128|s>>12&63,o[i++]=128|s>>6&63,o[i++]=128|s&63);e=o}else if(r==="object"){if(e===null)throw new Error(Ur);if(Xo&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!Xo||!ArrayBuffer.isView(e)))throw new Error(Ur)}else throw new Error(Ur);e.length>64&&(e=new wt(t,!0).update(e).array());var c=[],l=[];for(a=0;a<64;++a){var m=e[a]||0;c[a]=92^m,l[a]=54^m}wt.call(this,t,n),this.update(l),this.oKeyPad=c,this.inner=!0,this.sharedMemory=n}Ri.prototype=new wt;Ri.prototype.finalize=function(){if(wt.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();wt.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),wt.prototype.finalize.call(this)}};var jr=Bp();jr.sha256=jr;jr.sha224=Bp(!0);jr.sha256.hmac=Rp();jr.sha224.hmac=Rp(!0);var Ip=jr;var Op=Ip.sha256;function In(e){return Promise.resolve(Op(e))}function Ii(e){return Array.from(new Uint8Array(e)).map(a=>a.toString(16).padStart(2,"0")).join("")}function Ba(e,t){let n=Op.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function Np(e,t){let n=await Ba(e,t);return Ii(n)}async function Oi(e,t){let n=ay(t),a=await Ba(e,n);return Ii(a)}function ay(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}h();var jp="auto",Ni="auto",Up="auto";function zp(e){jp=e}function Tn(e){Ni=e}function Dt(){return Ni!=="auto"?Ni:Up!=="auto"?Up:jp}function Ui(){return Ni}async function Lt(e){let{url:t,config:n,state:a}=e,r=new URL(t),o="auto",{translationParagraphLanguagePattern:u,translationService:i,translationServices:s,translationTheme:c,translationThemePatterns:l,translationUrlPattern:m,targetLanguage:p,sourceLanguageUrlPattern:f,immediateTranslationPattern:g}=n,y=zr(t,u),v=zr(t,g),b=i,S=Object.keys(s);for(let Y of S){let ce=s[Y];if(zr(t,ce)){b=Y;break}}let A=c,N=Object.keys(l);for(let Y of N){let ce=l[Y];if(ce&&zr(t,ce)){A=Y;break}}let _=zr(t,m),x=Hp(t,m);x||(x=Vn(t,$g)),x||(x=Vn(t,n.blockUrls));let E=Hp(t,n.inputTranslationUrlPattern);E||(E=Vn(t,n.inputTranslationBlockUrls));let T=Vn(t,n.mutationBlockUrls),w=Object.keys(f),C={};for(let Y of w){let ce=f[Y];if(ce&&ce.matches)for(let fe of ce.matches)C[fe]=Y}let I=Object.keys(C),M=Al(t,I);M&&(o=C[M]??"auto",C[M]&&C[M]!=="auto"&&Tn(C[M]));let D=p||"zh-CN",F=r.hostname,U=await In(F),z=r.pathname+r.search+r.hash,B=await In(z),k=`https://${U}.com/${B}`,L=await Gn(),O=await zm(),K=n.translationStartMode;K==="dynamic"&&v&&(K="immediate");let H=b;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(H=n.inputTranslationService);let V=b;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(V=n.mouseHoverTranslationService);let q={targetLanguage:D,config:n,translationService:b,inputTranslationService:H,mouseHoverTranslationService:V,isTranslateUrl:_,sourceLanguage:o,mainFrame:document.body,isTranslateExcludeUrl:x,isMutationTranslationExcludeUrl:T,isInputTranslationExcludeUrl:E,rule:n.generalRule,url:t,encryptedUrl:k,state:a?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:K,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:y,cache:n.cache,translationTheme:A},a):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:K,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:y,cache:n.cache,translationTheme:A},localConfig:L},oe=await Xe.get(Tt,null);oe&&(q.user=oe),q.state.translationArea==="body"&&(q.config.generalRule.excludeTags=q.config.generalRule.excludeTags.filter(Y=>!q.config.generalRule.bodyTranslateTags.includes(Y)),q.config.generalRule.additionalExcludeSelectors=q.config.generalRule.additionalExcludeSelectors.filter(Y=>Y!==".btn"));let Z=n.translationServices[q.translationService]||{};Z.immediateTranslationTextCount!==void 0&&ry(Z.immediateTranslationTextCount)&&Z.immediateTranslationTextCount>=0&&(q.state.immediateTranslationTextCount=Z.immediateTranslationTextCount),q.translationService==="deepl"&&(Z&&Z.authKey&&Z.authKey.startsWith("immersive_")||Z&&Z.provider==="pro"&&q.user?.token)&&Z.immediateTranslationTextCountForImmersiveDeepl!==void 0&&Z.immediateTranslationTextCountForImmersiveDeepl>=0&&(q.state.immediateTranslationTextCount=Z.immediateTranslationTextCountForImmersiveDeepl),Z&&Z.translationDebounce&&typeof Z.translationDebounce=="number"&&(q.state.translationDebounce=Z.translationDebounce);let J=O.immediateTranslationTextCount;n.immediateTranslationTextCount!==J&&(q.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let ye=n.rules,Te;globalThis.PDFViewerApplication?Te=ye.find(Y=>Y.isPdf):globalThis.immersiveTranslateEbookViewer?Te=ye.find(Y=>Y.isEbook):globalThis.immersiveTranslateEbookBuilder?Te=ye.find(Y=>Y.isEbookBuilder):Te=ye.find(Y=>zr(t,Y)),q.state.translationArea==="body"&&(q.rule.paragraphMinTextCount=1,q.rule.paragraphMinWordCount=1),Te&&Te.isEbookBuilder&&(q.state.translationStartMode="immediate");let ie=n.generalRule;if(Te&&(q.rule=xi(ie,Te)),q.rule.selectors.length>0&&(q.rule.paragraphMinTextCount=2,q.rule.paragraphMinWordCount=1),q.state.translationArea==="body"&&q.rule.excludeTags&&(q.rule.excludeTags=q.rule.excludeTags.filter(Y=>!q.rule.bodyTranslateTags.includes(Y)&&!q.rule.forceTranslateTags.includes(Y))),q.rule.mainFrameSelector){let Y=document.querySelector(q.rule.mainFrameSelector);Y&&(q.mainFrame=Y)}return q}function zr(e,t){if(!t)return!1;let{matches:n,excludeMatches:a,selectorMatches:r,excludeSelectorMatches:o}=t;return a&&a.length>0&&Vn(e,a)?!1:n&&n.length>0&&Vn(e,n)?!0:o&&o.length>0&&ui(o)?!1:!!(r&&r.length>0&&ui(r))}function Hp(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:a}=t;return!!(n&&n.length>0&&Vn(e,n)||a&&a.length>0&&ui(a))}function ry(e){return typeof e=="number"}h();h();async function qp(){let e="auto",t=[Ja(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await it({text:Ar(document.body),pageLangs:t})),e}h();h();h();function Hr(e,t,n=[],a){let r=["notranslate"];return a&&r.push(zg),e&&(r.push(`${X}-target-translation-theme-${e}`),t?r.push(`${U0}-theme-${e}`):r.push(`${N0}-theme-${e}`)),n.length>0&&r.push(...n),t?r.push(U0):r.push(N0),r}function qr(e){let t=["notranslate",Ug];return e&&t.push(`${X}-target-translation-theme-${e}-inner`),t}function Wp(e,t,n){let{rule:a,state:r}=n,{translationTheme:o}=r,{variables:u,isVertical:i}=e;u=u||[];let{text:s}=t,{wrapperPrefix:c,wrapperSuffix:l}=a,m=Lr(n),p="afterend",f=m[0],g=m[1],y=`${f}(\\d+)${g}`,v=new RegExp(y,"g"),b=Ne.sanitize(s);u.length>0&&(b=b.replace(v,_=>{let x=b.indexOf(_),E=b[x-1]===" ",T=b[x+_.length]===" ",w=_.slice(m[0].length,-m[1].length),C=Number(w);if(isNaN(C))return _;let I=u[Number(C)];if(I&&I.type==="element"){let M=I.value.outerHTML;return E||(M=" "+M),T||(M=M+" "),M}else j.error("variable type not supported",I,_);return _}));let S=Hr(o,e.inline,a.translationClasses||[],e.preWhitespace);i&&S.push(jg);let A=qr(o),N="";return a.translationBlockStyle&&(N=`style="${a.translationBlockStyle}"`),b=`<${n.rule.targetWrapperTag} ${N} class="${S.join(" ")}" ${$n}="1"><${a.targetWrapperTag} class="${A.join(" ")}" ${$n}="1">${b}`,e.inline||(c==="smart"?b=`
${b}`:b=`${c}${b}`),e.inline&&(c!=="smart"?b=`${c}${b}`:b=`<${a.targetWrapperTag} class="notranslate" ${$n}="1"> ${b}`),l==="smart"?b=`${b}`:b=`${b}${l}`,{html:b,position:p}}function ji(e,t){let n=null,{stayOriginalSelectors:a,delimiters:r,isPreWhitespace:o}=t,u=[],i={};for(let s=0;s2&&(v=`<${r[2]}${y}>`),i[y]=c,u.push({text:v,type:"variable"})}else u.push({text:c.textContent||"",type:"text"});else{let g=c.textContent||"";m&&(g=Pa(Ll(c))),u.push({text:g,type:"text"})}else if(c.nodeType===Node.ELEMENT_NODE)if(c&&qt(c,a)){let y=Object.keys(i).length,v=`${r[0]}${y}${r[1]}`;r.length>2&&(v=`<${r[2]}${y}>`),i[y]=c;let b=Ml(u).endsWith(" ")?" ":"",S=Pa(c.innerText||c.textContent),A=Pa(c.nextSibling).startsWith(" ")?" ":"",N=Qo(b+S+A),_=N[0]+v+N[1];if(b===" ")_=_.trimStart();else if(!_.startsWith(" ")){let x=Qo(c.previousSibling)[1];x===""&&(x=" "),_=x+_}u.push({text:_,type:"variable"})}else{let g=Ml(u).endsWith(" ")?" ":"",y=Pa(c.innerText||c.textContent);m&&(y=Pa(Ll(c)));let v=Pa(c.nextSibling).startsWith(" ")?" ":"",b=Qo(g+y+v),S=b[0]+(c.innerText?.trim()||c.textContent?.trim()||"")+b[1];if(g===" ")S=S.trimStart();else{let A=Qo(c.previousSibling)[1];A===""&&(c.nodeName==="A"||c.nodeName==="CODE")&&(A=" "),S=A+S}u.push({text:S,type:"text"})}else{let g=Ml(u).endsWith(" ")?" ":"",y="";c.textContent&&(y=Pa(Ll(c))),g===" "&&(y=y.trimStart()),u.push({text:y,type:"text"})}}if(u&&u.length>0){let s="";for(let c=0;c0&&(m=u[c-1].text),c2){let l=c[2];return oy({delimiterTag:l,targetText:e.targetText,inline:r,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:a}).html}else{let l=Wp(s,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return l.html}}function Ll(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function oy(e){let{delimiterTag:t,inline:n,translationClasses:a,targetWrapperTag:r,wrapperPrefix:o,variables:u,preWhitespace:i,wrapperSuffix:s,translationTheme:c,translationBlockStyle:l}=e;u=u||[];let m=e.targetText;m=Ne.sanitize(m);let p=m,f=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),g=new RegExp(`<${t}(\\d+)>`);u.length>0&&(p=p.replace(f,S=>{let A=p.indexOf(S),N=p[A-1]===" ",_=p[A+S.length]===" ",x=S.match(g);if(!x)return S;let E=x[1],T=Number(E);if(isNaN(T))return S;let w=u[Number(T)];if(w&&w.type==="element"){let C=w.value.outerHTML;return N||(C=" "+C),_||(C=C+" "),C}else if(w&&w.type==="text"){let C=w.value;return N||(C=" "+C),_||(C=C+" "),C}else j.error("variable type not supported",w,S);return S}));let y=Hr(c,n,a||[],i),v=qr(c),b="";return l&&(b=`style="${l}"`),p=`<${r} ${b} class="${y.join(" ")}" ${$n}="1"><${r} class="${v.join(" ")}" ${$n}="1">${p}`,n||(o==="smart"?p=`
${p}`:p=`${o}${p}`),n&&(o!=="smart"?p=`${o}${p}`:p=`<${r} class="notranslate" ${$n}="1"> ${p}`),s==="smart"?p=`${p}`:p=`${p}${s}`,{html:p,position:"afterend"}}function Ml(e){let t=e[e.length-1];return t?t.text:""}function xn(e){let t=e.rule.selectors,n=e.rule.excludeTags,a=e.rule.additionalExcludeTags,r=e.rule.excludeSelectors,o=e.rule.additionalExcludeSelectors;return e.state.translationArea==="body"&&(t=[],r=[]),{globalStyles:e.rule.globalStyles,globalAttributes:e.rule.globalAttributes,selectors:t,skipEditableCheck:e.rule.skipEditableCheck,lineBreakMaxTextCount:e.rule.lineBreakMaxTextCount,isTransformPreTagNewLine:e.rule.isTransformPreTagNewLine,excludeSelectors:n.concat(a).map(i=>i.toLowerCase()).filter(i=>i!=="code"&&i!=="img").concat(r).concat(o),blockSelectors:e.rule.allBlockTags.map(i=>i.toLowerCase()).concat(e.rule.extraBlockSelectors),extraBlockSelectors:e.rule.extraBlockSelectors,extraInlineSelectors:e.rule.extraInlineSelectors.concat(e.rule.additionalInlineSelectors),stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(i=>i.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)}}var uy={sanitize:e=>e};function Hi(e,t){e.interruptEffectDOM||(e.walkContainer({id:e.id,container:t,filterRule:xn(e.ctx),onParagraph:eu.bind(null,e),onFrame:n=>{Fl(e,n,!0)},onIgnoreElement:n=>{e.ignoreResizeObserver?.observe(n)}}),Cr&&pt(t,"consumeContainer",e.id))}function Fl(e,t,n){try{if(e.injectCssToDocument(t,e.ctx),t instanceof HTMLIFrameElement){if(!Mr(t))return;j.debug("onFrame fragment",t);let a=t.contentWindow?.document.body;a&&(Kr(a,e,n),e.dynamicContainerObserver?.observe(a,{childList:!0,subtree:!0}))}else j.debug("onFrame shadowRoot",t.host),Kr(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0})}catch{}}function Kr(e,t,n=!0){let{globalStyles:a,globalAttributes:r}=xn(t.ctx),o=0;if(s(t,e,n))return;if(Bn(e)&&i(e)){u(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,l=>(Bn(l)&&(a&&vl(l,a),r&&kl(l,r)),s(t,l,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(tn.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode();){tn.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let l=c.currentNode;if(i(l))for(u(l);;){if(c.nextSibling()){let m=c.currentNode;if(tn.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),i(m)){u(m);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){u(e);return}return t.observeContainers;function u(c){tn.clearMark(c),o++,t.immediateTranslateCapacity>=0?Hi(t,c):(Cr&&pt(c,"observeContainer",t.id),t.containerVisibleObserver?.observe(c))}function i(c){let l=c.nodeName.toLowerCase();if(c.shadowRoot)return Fl(t,c.shadowRoot,n),!1;if(l==="iframe")return Fl(t,c,n),!1;if(["script","#document-fragment","img"].includes(l))return!1;let m=t.containerRule;if(m.selectors&&m.selectors?.length>0)return Fi(c,m.selectors);if(m.pageHeight){let p=c.scrollHeight;if(p>0&&p0)return!0}return!1}function s(c,l,m){if(l.nodeName.toLowerCase()=="script")return l.childNodes.length==0||l.childNodes.length==1&&l.childNodes[0].nodeType==Node.TEXT_NODE;if(l.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(l.nodeType!==Node.ELEMENT_NODE||m&&tn.isMarked(l,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&l.nodeName==="PRE")return!1;let f=xn(c.ctx);return!!Sl(l,{excludeSelectors:f.excludeSelectors,selectors:f.selectors,stayOriginalSelectors:f.stayOriginalSelectors})}}function _l(e,t){if(!e.targetNodes)return;let n=e.state||"original",a=e.commonAncestorContainer;if(!tn.isMarked(a,e.ctxId))return;let r=a.contains(e.rootNodes[0]),o=a.contains(e.targetNodes[0]);if(r&&o)n="dual";else if(r)n="original";else if(o)n="translation";else return;if(t!=n){e.state=t;try{if(n=="dual"&&t=="translation"&&(zi(e.rootNodes),Gp(e.commonAncestorContainer)),n=="original"&&t=="translation"){let u=Pl(e.rootNodes);if(zi(e.rootNodes),$p(u))return;Wr(u,a,e.targetNodes||[]),Gp(e.commonAncestorContainer)}if(n=="translation"&&t=="dual"){let u=e.targetNodes[0];Wr(u,a,e.rootNodes||[]),Vp(e.commonAncestorContainer)}if(n=="original"&&t=="dual"){let u=Pl(e.rootNodes);if($p(u))return;Wr(u,a,e.targetNodes||[]),Vp(e.commonAncestorContainer)}if(n=="translation"&&t=="original"){let u=Pl(e.targetNodes);zi(e.targetNodes),Wr(u,a,e.rootNodes||[])}n=="dual"&&t=="original"&&zi(e.targetNodes)}catch(u){j.error(u)}}}function $p(e){return!e||!Bn(e)?!1:e.classList.contains(un)}function Gp(e){if(!Bn(e))return;e.querySelectorAll("font[class*=immersive-translate-target-translation]").forEach(a=>{pt(a,"immersiveTranslateClassBak",a.className),a.className="notranslate immersive-translate-target-dual"});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.add("immersive-translate-state-dual")}function Vp(e){if(!Bn(e))return;e.querySelectorAll("font[class*=immersive-translate-target-dual]").forEach(a=>{let r=Dr(a,"immersiveTranslateClassBak");ii(a,"immersiveTranslateClassBak"),a.className=r});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.remove("immersive-translate-state-dual")}function Pl(e){return e?e[e.length-1].nextSibling:null}function zi(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function Wr(e,t,n){let a=e;t&&(a?n.forEach(r=>{a.parentNode?.insertBefore(r,a)}):n.forEach(r=>{t.appendChild(r)}))}var iy=Ft(Rl,300);async function eu(e,t,n=!1){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||sy(t.rootNodes)||t.stepState>=2)return;t.stepState=2,Cr&&pt(a,"onParseParagraph",e.id);let{ctx:r}=e,{rule:o}=r,u=Lr(r),i=ji(t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:u,stayOriginalSelectors:r.rule.stayOriginalTags.concat(r.rule.stayOriginalTags).map(c=>c.toLowerCase()).concat(r.rule.stayOriginalSelectors).concat(r.rule.additionalStayOriginalSelectors)});if(!i)return;t.variables=i?.variables||{},t.text=i?.text;let s=await Il(t,{excludeLanguages:r?.config?.translationLanguagePattern?.excludeMatches||[],targetLanguage:r.targetLanguage,noTranslateRegexp:r.rule.noTranslateRegexp,delimiters:Mi(r.config.translationServices[r.translationService]?.placeholderDelimiters),minTextCount:n||r.state.translationArea==="body"?2:o.paragraphMinTextCount,minWordCount:n||r.state.translationArea==="body"?1:o.paragraphMinWordCount,isDetectParagraphLanguage:r.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:r.rule.ignoreZhCNandZhTW});if(s){if(j.debug("on paragraph",s.text,s),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(s))return;a.paragraphs.push(s),e.immediateTranslateCapacity>0||n?(ly(e,t.text),Bl(e,t)):(Cr&&pt(a,"observeParagraph",e.id),e.observeParagraphs.push(s),e.paragraphVisibleObserver?.observe(a))}return s}function sy(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Bn(t)&&t.classList.contains(un):!1}function ly(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function Bl(e,t){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let n=e.autoIncreaseParagraphId++;t.id=n.toString(),e.paragraphEntities[n]=t,e.paragraphQueue.push(n.toString()),Cr&&pt(t.commonAncestorContainer,"consumeParagraph",e.id),iy.call(e,e.ctx)}async function Rl(e){if(this.interruptEffectDOM)return;let t=this.paragraphQueue;this.paragraphQueue=[];let n=[];for(let a=0;a0)try{await Ra(a,t,(r,o,u)=>{let i=u.id,s=cy(e,i.toString());s&&dy.call(null,r,o,u,s,t,n)})}catch(r){j.error("translateCurrentQueue error",r);return}}function cy(e,t){return e.find(n=>n.id===t)}function dy(e,t,n,a,r,o){let u=!1,i=a;if(Nr(i.commonAncestorContainer,n.id)?.remove(),i&&(e||!t)){e||(j.error("translate error",n,e,t),e=new Error("no response from server"));let{rule:s}=r,c=n.id,l=document.createElement(s.targetWrapperTag);pt(l,Bg,c.toString()),l.classList.add("notranslate",un,un+"-error"),l.setAttribute("translate","no"),l.setAttribute("lang",r.targetLanguage);let m=a.rootNodes[a.rootNodes.length-1].nextSibling;Wr(m,a.commonAncestorContainer,[l]),gy(r,e);let p=e.message.replaceAll(` -`,"");if(p=p.replaceAll('"',"""),i&&(i.error=new Error(p)),l){let f=oa(Qt,"retryAllParagraphs",r.config.interfaceLanguage,"zh-CN"),g=oa(Qt,"errorTooltipTitle",r.config.interfaceLanguage,"zh-CN"),y=`<${s.targetWrapperTag} class="${X}-error notranslate"><${s.targetWrapperTag} class="${X}-error-wrapper">\u{1F504}  \u2753`;l.innerHTML=Ne.sanitize(y)}}else if(a){if(i.error=void 0,a.targetText=t?.text||"",!(a.text?.toLocaleLowerCase()==a.targetText?.toLocaleLowerCase())){let c=Kp(a,r),l=document.createElement(r.rule.targetWrapperTag);l.classList.add("notranslate",un),l.setAttribute("lang",r.targetLanguage),l.setAttribute($n,"1");let m=uy.sanitize(c);l.innerHTML=m,a.targetNodes=[l],_l(a,o)}u=!0}else j.error("paragraph not found",n.id);document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:u}})}))}async function Il(e,t){let{text:n}=e,a=await it({text:n||"",minLength:15,pageLangs:[Dt(),"en"]}),{targetLanguage:r}=t;if(!Ep({text:n||"",delimiters:t.delimiters,minWordCount:t.minWordCount,minTextCount:t.minTextCount,noTranslateRegexp:t.noTranslateRegexp}))return null;let u=t.excludeLanguages||[],i=Ui();t.isDetectParagraphLanguage&&(i="auto");let s=Dt(),c=a;c==="auto"&&!t.isDetectParagraphLanguage&&(c=s),e.languageByLocal=c,e.languageByClient=i;let l=i!=="auto"?i:c;return Sa(l,r,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW})||u.length>0&&u.some(f=>Sa(l,f,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW}))?null:e}function gy(e,t){if(t.message.startsWith("ProQuota:")){t.message=t.message.replace("ProQuota:","");let n=t.message;try{n=JSON.parse(t.message).error}catch(o){j.error(o)}t.message=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${t.message} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`;let a=e.translationService,r=a=="deepl"?"OpenAI":"Deepl";e.translationService=="openai"?a="OpenAI":e.translationService=="deepl"&&(a="Deepl"),document.dispatchEvent(new CustomEvent(Yu,{detail:{type:"ProQuotaExceeded",subscriptionType:e.user?.subscription?.subscriptionType,translationService:a,anotherService:r,message:n}}))}}h();var my=[];function Yp(e){my.push(e)}h();function Jp(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(a){a.length>0&&(a[0].target.text.includes(Xu)||Ol(e).catch(o=>{j.error("translateTitle error:",o.name,o.message,o.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var Wi="";async function Ol(e){let t=document.title;if(!t||t.includes(Xu))return;Wi!==t&&(Wi=t);let n=await it({text:t,pageLangs:[Dt(),"en"]});if(!Pi(e,n))try{let a=await ca({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n},e);a&&a.text&&(document.title=Wi+Xu+a.text)}catch(a){throw a}}function Qp(e){e.rule.isTranslateTitle&&(document.title=Wi)}h();var Nl="Original";function tt(){return Nl}function Wt(e){Nl=e,Zp(Nl)}h();var Ul;function Xp(e){let t=e.ctx.rule.aiRule;if(j.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=xn(e.ctx),a=n.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);n.excludeSelectors.splice(a,1);let r,o;document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(p=>{p.translated=!0,tu(e,p,n)});let u=t.streamingDelayTime||100;Ul=new MutationObserver(p=>{p.forEach(function(f){if(Bn(f.target)&&!s(f)&&(l(f.target),f.addedNodes&&f.addedNodes.length&&f.addedNodes.forEach(g=>{l(g)}),!c(f)&&i())){let g=f.target===o;if(t.streamingDeepChild&&!g&&(g=f.target.parentNode===o),!g)return;f.addedNodes.forEach(y=>{let v=y.previousSibling;!v||v.translated||(v.translated=!0,setTimeout(()=>{v.childNodes[0]?.translated||(j.debug("\u7FFB\u8BD1\u4E0A\u4E00\u4E2A\u6BB5\u843D",v),tu(e,v,n))},u))})}})}),Ul.observe(document.body,{attributes:!0,childList:!0,subtree:!0});function i(){return!!(t.streamingChange&&t.streamingSelector&&r||t.streamingChange&&t.messageContainerSelector&&t.messageStreamEndSelector&&o&&!o.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector))}function s(p){return t.streamingSelector&&p.target===r&&p.type==="attributes"&&!_n(p.target,[t.streamingSelector])?(m(),!0):t.streamingSelector&&p.removedNodes.length>0&&o&&o!=r?(p.removedNodes?.forEach(f=>{f===r&&m()}),!0):t.messageContainerSelector&&t.messageStreamEndSelector&&o&&o.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector)?(m(),!0):!1}function c(p){if(t.streamingSelector&&p.target.querySelector(t.messageWrapperSelector||"")&&!r){let f=p.target;return f.translated||(f.translated=!0,setTimeout(()=>{r||f.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(g=>{g.translated||(g.translated=!0,tu(e,g,n))})},u)),!0}else if(t.messageContainerSelector&&p.target.querySelector(t.messageContainerSelector||"")){let f=p.target;if(f.translated)return!0;f.translated=!0,setTimeout(()=>{f.querySelectorAll(t.messageContainerSelector).forEach(g=>{t.messageStreamEndSelector&&!g.querySelector(t.messageStreamEndSelector)||g.translated||(g.translated=!0,tu(e,g,n))})},u)}return!1}function l(p){t.streamingSelector&&_n(p,[t.streamingSelector])&&(r=p,j.debug("streamingNode",r)),_n(p,[t.messageWrapperSelector])&&(o=p,j.debug("markdownNode",o))}function m(){o&&setTimeout(()=>{o.childNodes.forEach(p=>p.translated=!1),j.debug("\u7ED3\u675F\u7FFB\u8BD1\u5168\u90E8",o),tu(e,o,n),r=void 0,o=null},u)}}function tu(e,t,n){Fa({id:e.id,container:t,filterRule:n,force:!0,onParagraph:a=>{eu(e,a,!0)},onFrame:()=>{},onIgnoreElement:()=>{}})}function e3(){Ul?.disconnect()}var re=null;function $i(){return re||null}function $r(e){py(e),Ey(e),yy(e),xy(e),wa(document,e),Wt("Translated"),Ty(re),by(re),Yp(da),fy(re)}function py(e){e.state.translationArea==="main"&&e.rule.initialSelectorGlobalAttributes&&Dp(document.body,e.rule.initialSelectorGlobalAttributes,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph)}function fy(e){Xp(e)}function hy(){e3()}function by(e){e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0});let t=[];e.ctx.rule.mainFrameSelector&&(t=[...document.querySelectorAll(e.ctx.rule.mainFrameSelector||"")]),t.length<=0&&(t=[document.body]),t.forEach(n=>{Kr(n,e)})}async function yy(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=Date.now(),a=new URL(e.url).hostname,r=e.localConfig.tempTranslationUrlMatches||[],o=r.findIndex(i=>i.match===a&&i.expiredAt>t),u=!1;o>-1||(r.push({match:a,expiredAt:t+e.config.tempTranslateDomainMinutes*60*1e3}),u=!0),u&&await yn({...e.localConfig,tempTranslationUrlMatches:[...r]})}}function Ty(e){e.ctx.rule.isTranslateTitle&&(Ol(e.ctx),e.titleDynamicObserver=Jp(e.ctx))}function xy(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function Ey(e){let t=Fn();re&&(t=re.id);let n=xn(e);re=re||{},re.ctx=e,re.id=t,re.paragraphQueue=re.paragraphQueue||[],re.rule={excludeSelectors:n.excludeSelectors||[],selectors:n.selectors||[]},re.currentUrl=window.location.href,re.containerRule={pageHeight:screen.availHeight,selectors:n.selectors},re.translationService=e.translationService,re.paragraphEntities=re.paragraphEntities||{},re.autoIncreaseParagraphId=re.autoIncreaseParagraphId||1,re.interruptEffectDOM=!1,re.urlChangeDelay=e.rule.urlChangeDelay,re.immediateTranslateCapacity=e.state.immediateTranslationTextCount,re.observeContainers=re.observeContainers||[],re.observeParagraphs=re.observeParagraphs||[],re.dynamicContainerObserver=re.dynamicContainerObserver||Sy(re),re.ignoreResizeObserver=re.ignoreResizeObserver||Ay(re),re.containerVisibleObserver=re.containerVisibleObserver||vy(re),re.paragraphVisibleObserver=re.paragraphVisibleObserver||wy(re),re.injectCssToDocument=Ki,re.walkContainer=Fa,re.translateState=e.state.translationMode||e.config.translationMode||"dual",re.allInlineWindows=[window],window.onerror=Cy(re,e),window.immersiveTranslateSwitchTranslateState=zl.bind(re)}function n3(e,t){t.getRootNode()instanceof ShadowRoot?Ki(t.getRootNode(),e):Ki(t.ownerDocument,e),jl(e)}function jl(e){if(re)return;re={},re.ctx=e,re.id=Fn(),re.paragraphQueue=[],re.injectCssToDocument=Ki;let t=xn(e);re.rule={excludeSelectors:t.excludeSelectors,selectors:t.selectors||[]},re.translationService=e.mouseHoverTranslationService,re.currentUrl=window.location.href,re.paragraphEntities={},re.autoIncreaseParagraphId=1,re.interruptEffectDOM=!1,re.urlChangeDelay=e.rule.urlChangeDelay,re.translateState=e.config.translationMode||"dual",re.observeContainers=[],re.observeParagraphs=[],re.allInlineWindows=[window],window.switchTranslateState=zl.bind(re)}function da(e=!0){re&&(Wt("Original"),hy(),re.interruptEffectDOM=!0,re.ignoreResizeObserver?.disconnect(),re.dynamicContainerObserver?.disconnect(),re.containerVisibleObserver?.disconnect(),re.paragraphVisibleObserver?.disconnect(),re.titleDynamicObserver?.disconnect(),Qp(re.ctx),yp(),Tp(),e&&zl.call(re,"original"),Object.values(re.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),re=null)}function Cy(e,t){e.interruptEffectDOM=!1;let n;return function(a){let r=a.message,o=!1;return r?.indexOf("Minified React error")>=0&&(o=!0),o&&(clearTimeout(n),da(),n=setTimeout(()=>{$r(t)},e.urlChangeDelay||2e3)),!0}}function vy(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{a.intersectionRatio>0&&(Hi(e,a.target),n.unobserve(a.target))})})}function wy(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{if(a.intersectionRatio>0){let r=a.target;(r.paragraphs||[]).forEach(u=>{Bl(e,u)}),n.unobserve(r)}})})}var t3;function ky(e){if(e.urlChangeDelay<=0)return!1;let n=(window.location.href||"").split("#")[0];return e.currentUrl.split("#")[0]!=n?(clearTimeout(t3),e.translateState=="original"?!1:(da(e.urlChangeDelay>20),t3=setTimeout(()=>{let r=e.ctx;$r(r)},e.urlChangeDelay),!0)):!1}function Sy(e){return new MutationObserver(t=>{if(!ky(e)&&!e.interruptEffectDOM)for(let n of t){let a=e.ctx.rule.mutationObserverLimitTargetSelectors;if(a.length>0&&!_n(n.target,a))return;if((n.addedNodes||[]).length<=0||n.target.nodeType!==Node.ELEMENT_NODE||!tn.isSkipMarkEle(n.target)&&!tn.isMarked(n.target,e.id))continue;let o=(n.target?.paragraphs||[]).reduce((u,i)=>{let s=i.rootNodes||[],c=i.targetNodes||[];return[...u,...s,...c]},[]);if(n.addedNodes.length>0&&n.addedNodes.length===n.target.childNodes.length&&_n(n.target,e.ctx.rule.mutationObserverContainerSelectors)){tn.clearMark(n.target),n.target.paragraphs=void 0,Hi(e,n.target);return}n.addedNodes.forEach((u,i)=>{u.nodeType===Node.ELEMENT_NODE&&(o.includes(u)||qt(u,e.ctx.rule.mutationExcludeSelectors)||Kr(u,e))})}})}function Ay(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let a of t){if(a.target.nodeType!==Node.ELEMENT_NODE)return;let r=a.target,o=globalThis.getComputedStyle(r);wl(o)||(n.unobserve(a.target),Kr(r,e))}})}function zl(e){this.translateState=e,Object.values(this.paragraphEntities).forEach(t=>{_l(t,e)}),e=="original"&&document.querySelectorAll(`.${un}`).forEach(t=>t.remove())}function Ki(e,t){if(e instanceof HTMLIFrameElement){wa(e.contentDocument,t);return}wa(e,t)}async function a3(e){let t=mt(),n="auto";if(me()){let a="";e.rule.isEbook||e.rule.isEbookBuilder?(a=G0(e.mainFrame),n=await it({text:a,pageLangs:["en"]})):(a=Ar(e.mainFrame).slice(0,1e3),n=await it({text:a,pageLangs:[Ja(),"en"]}))}else if(t)n=await it({text:Ar(e.mainFrame).slice(0,1e3),pageLangs:[Ja(),"en"]});else if(e.rule.isEbook||e.rule.isEbookBuilder){let a="";a=G0(e.mainFrame),n=await it({text:a,pageLangs:["en"]})}else n=await o3();return n==="auto"&&(n=await qp()),zp(n),n}async function r3(){if(!re)return;document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=re.paragraphEntities,t=Object.keys(e);for(let n of t){let a=e[n];if(a.error){re.paragraphQueue.push(n);let o=a.commonAncestorContainer.querySelector(`[${Qu}='${n}']`);o&&o.remove()}}Rl.call(re,re.ctx)}h();h();var u3={"zh-CN":{"languages.en":"\u82F1\u8BED","languages.ja":"\u65E5\u8BED","languages.ko":"\u97E9\u8BED","languages.es":"\u897F\u73ED\u7259\u8BED","languages.fr":"\u6CD5\u8BED","languages.de":"\u5FB7\u8BED","languages.it":"\u610F\u5927\u5229\u8BED","languages.pt":"\u8461\u8404\u7259\u8BED","languages.ru":"\u4FC4\u8BED","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"},"zh-TW":{"languages.en":"\u82F1\u8A9E","languages.ja":"\u65E5\u8A9E","languages.ko":"\u97D3\u8A9E","languages.es":"\u897F\u73ED\u7259\u8A9E","languages.fr":"\u6CD5\u8A9E","languages.de":"\u5FB7\u8A9E","languages.it":"\u610F\u5927\u5229\u8A9E","languages.pt":"\u8461\u8404\u7259\u8A9E","languages.ru":"\u4FC4\u8A9E","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"}},i3={...Qt,"zh-CN":{...u3["zh-CN"],...Qt["zh-CN"]},"zh-TW":{...u3["zh-TW"],...Qt["zh-TW"]}},Gr=i3;function Ia(e,t,n){return oa(i3,e,t,ei,n)}var s3=()=>sn.filter(e=>e!=="auto"),Mt=(e,t,n,a)=>{let r=Hg[e]||e,o=qg[e],u=Wg[e],i={"zh-CN":o,"zh-TW":u,en:r};if(n)return i[e]?i[e]:r;if(i[t]){let s=i[t];return a||e==="auto"||e==="placeholder"?s:`${s} (${r})`}else return r};h();h();function Vr(e){Yr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(a=>{j.error("send content message request failed",e,a)}),document.querySelectorAll("iframe").forEach(a=>{a.contentWindow&&a.contentWindow.postMessage({author:Vu,payload:e},"*")});let n=new CustomEvent(xa,{detail:e});globalThis.document.dispatchEvent(n)}function Hl(e){let t=e.shortcuts||{},a=Object.keys(t).reduce((o,u)=>(o[t[u]]=u,o),{}),r=Object.keys(a);for(let o of r){let u=o.replace(/MacCtrl/ig,"Ctrl");u&&Ue(u,i=>{i.preventDefault(),Vr({method:a[o],data:{trigger:"shortcut"}})})}}h();h();var Pt=class{options;strictTicks=[];constructor(t){this.options=t,this.setOptions(t)}setOptions(t){t&&(t.interval!==void 0&&(this.options.interval=Number(t.interval)),t.limit!==void 0&&(this.options.limit=Number(t.limit)))}wait(){return new Promise((t,n)=>{setTimeout(t,this.getDelay())})}getDelay(){let t=this.strictTicks,n=this.options.limit,a=this.options.interval,r=Date.now();if(t.length=o?(t.push(r),0):(t.push(o),o-r)}};var Dy=new Pt({limit:7,interval:1250}),Ly={tencent:new Pt({limit:3,interval:1350}),baidu:new Pt({limit:1,interval:1550}),strict:new Pt({limit:1,interval:1050}),d:new Pt({limit:1,interval:1050}),youdao:new Pt({limit:5,interval:1050}),you:new Pt({limit:5,interval:1050}),cai:new Pt({limit:5,interval:1050}),google:new Pt({limit:10,interval:1050}),deepl:new Pt({limit:10,interval:1050}),transmart:new Pt({limit:30,interval:1050}),papago:new Pt({limit:3,interval:1150}),openai:new Pt({limit:10,interval:1300}),chatgpt:new Pt({limit:1,interval:1350})};function nu(e){return Ly[e]||Dy}async function l3(e){if(mt()){let n=Li();if(n)try{return(await n.ask("getRateLimitDelay",{key:e})).value}catch(a){return j.error("can not comunicate with root frame, use strict limiter",a),nu("strict").getDelay()}else return nu("strict").getDelay()}else return nu(e).getDelay()}async function c3(e,t){if(!mt()){let a=nu(e);t&&a.setOptions(t)}}async function d3(e){let t=e.key;return{value:nu(t).getDelay()}}h();var Gi=new Map;async function ql(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=Da(e.body)),Gi.has(t))return Gi.get(t);let n=se(e);Gi.set(t,n);try{return await n}catch(a){throw a}finally{setTimeout(()=>{Gi.delete(t)},3e4)}}async function g3(e){return ql(e)}async function m3(e){if(mt()){let n=Li();if(n)try{return await n.ask("throttleRequest",e)}catch(a){throw j.error("can not comunicate with root frame, use strict limiter",a),a}else return ql(e)}else return ql(e)}h();h();h();h();function p3(e,t,n){let a=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),a=t!=="auto"?n[t].matches:[];let r={},o=Object.keys(n);for(let c of o){let m=n[c].matches;for(let p of m)r[p]||(r[p]=[]),r[p].push(c)}let u=r[e];if(u&&u.length>0)for(let c of u)n[c].matches.indexOf(e)>-1&&(n[c]={...n[c],matches:n[c].matches.filter(m=>m!==e)});let i=new Set(a);if(t==="auto")return{...n};i.add(e);let s=Array.from(i);return{...n,[t]:{...n[t],matches:s}}}h();h();function Wl(){return d("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M10.3873 2.29166C10.6319 2.29193 10.8664 2.38929 11.0392 2.56234C11.2121 2.73539 11.3092 2.96998 11.3092 3.21457V4.07811L12.1175 4.38332C12.7273 4.61277 13.2952 4.94074 13.7988 5.35416L14.4675 5.90207L15.2165 5.46978L15.2394 5.45624C15.3787 5.37479 15.5373 5.332 15.6988 5.33228C15.861 5.3325 16.0203 5.37522 16.1608 5.45618C16.3014 5.53715 16.4182 5.65353 16.4998 5.79374L16.8925 6.47395C17.0145 6.68593 17.0475 6.93764 16.9843 7.17391C16.921 7.41019 16.7666 7.61173 16.555 7.73436L16.5321 7.74791L15.7842 8.17916L15.9227 9.0302C16.031 9.67953 16.031 10.3423 15.9227 10.9917L15.781 11.8458L16.531 12.2781L16.5467 12.2875C16.758 12.4101 16.9122 12.6115 16.9754 12.8475C17.0387 13.0835 17.0059 13.335 16.8842 13.5469L16.5154 14.1844C16.3932 14.3961 16.1919 14.5507 15.9558 14.6141C15.7196 14.6776 15.468 14.6448 15.256 14.5229L15.2415 14.5135L14.4904 14.0802L13.8206 14.6323C13.3125 15.0519 12.7384 15.3845 12.1217 15.6167L11.3133 15.9219V16.7864C11.3132 16.9078 11.2891 17.028 11.2425 17.14C11.1958 17.2521 11.1276 17.3539 11.0415 17.4395C10.9555 17.5251 10.8535 17.5929 10.7412 17.6391C10.6289 17.6852 10.5087 17.7087 10.3873 17.7083H9.61229C9.3677 17.708 9.13322 17.6107 8.96037 17.4376C8.78751 17.2646 8.69042 17.03 8.69042 16.7854V15.9219L7.88209 15.6167C7.27233 15.3872 6.70437 15.0592 6.20084 14.6458L5.53209 14.0979L4.78313 14.5302L4.76021 14.5437C4.62084 14.6252 4.46226 14.668 4.30084 14.6677C4.13864 14.6675 3.97932 14.6248 3.83877 14.5438C3.69823 14.4628 3.58135 14.3464 3.49979 14.2062L3.10709 13.526C2.98505 13.3141 2.95205 13.0623 3.01532 12.8261C3.07858 12.5898 3.23296 12.3882 3.44459 12.2656L3.4675 12.2521L4.21542 11.8208L4.07688 10.9698C3.96856 10.3204 3.96856 9.65766 4.07688 9.00832L4.21854 8.1552L3.46959 7.72186L3.45709 7.70832C3.24914 7.58489 3.09787 7.38486 3.03575 7.15116C2.97362 6.91746 3.00559 6.66872 3.12479 6.45832L3.49354 5.82082C3.57469 5.68049 3.69133 5.56397 3.83175 5.48297C3.97217 5.40197 4.13144 5.35934 4.29354 5.35936C4.45497 5.35908 4.61355 5.40187 4.75292 5.48332L4.7675 5.49166L5.51854 5.92499L6.18834 5.37291C6.69646 4.95329 7.27054 4.62067 7.88729 4.38853L8.69563 4.08332V3.21874C8.69452 2.97433 8.79041 2.73945 8.96226 2.56565C9.13411 2.39185 9.36788 2.29331 9.61229 2.29166H10.3873ZM10.3873 1.04166H9.61229C9.03636 1.04193 8.4841 1.27084 8.07685 1.67809C7.66961 2.08533 7.4407 2.6376 7.44042 3.21353C6.69518 3.49423 6.00146 3.89618 5.38729 4.40312L5.37271 4.39478C4.87362 4.10685 4.2806 4.02894 3.72407 4.17818C3.16753 4.32742 2.69307 4.6916 2.405 5.19062L2.03729 5.83332C1.74928 6.33229 1.67121 6.92522 1.82025 7.48173C1.96929 8.03825 2.33324 8.51279 2.83209 8.80103L2.84771 8.80936C2.78023 9.20444 2.74539 9.6044 2.74354 10.0052C2.74367 10.3971 2.77572 10.7883 2.83938 11.175L2.81646 11.1885C2.56927 11.3311 2.35259 11.5209 2.1788 11.7472C2.00501 11.9735 1.87752 12.2319 1.80361 12.5075C1.7297 12.7831 1.71083 13.0706 1.74807 13.3535C1.7853 13.6364 1.87792 13.9091 2.02063 14.1562L2.41334 14.8364C2.55638 15.0837 2.74681 15.3003 2.97371 15.4738C3.20061 15.6473 3.45953 15.7743 3.73561 15.8475C4.01169 15.9208 4.29952 15.9388 4.58259 15.9007C4.86566 15.8625 5.13841 15.7688 5.38521 15.625L5.40813 15.6114C6.01714 16.1105 6.70362 16.5067 7.44042 16.7844C7.44028 17.0697 7.49635 17.3523 7.60542 17.616C7.7145 17.8797 7.87444 18.1193 8.07612 18.3212C8.27779 18.523 8.51726 18.6832 8.78084 18.7925C9.04441 18.9018 9.32694 18.9582 9.61229 18.9583H10.3873C10.9632 18.958 11.5155 18.7291 11.9227 18.3219C12.33 17.9146 12.5589 17.3624 12.5592 16.7864C13.3043 16.5061 13.9981 16.1045 14.6123 15.5979L14.6269 15.6062C15.126 15.8942 15.719 15.9721 16.2755 15.8228C16.8321 15.6736 17.3065 15.3094 17.5946 14.8104L17.9623 14.1729C18.2503 13.6739 18.3284 13.081 18.1793 12.5245C18.0303 11.968 17.6663 11.4934 17.1675 11.2052L17.1519 11.1969C17.2194 10.8018 17.2542 10.4018 17.256 10.001C17.2559 9.60915 17.2239 9.21792 17.1602 8.83124L17.1831 8.8177C17.4303 8.67516 17.647 8.48531 17.8208 8.259C17.9946 8.03269 18.1221 7.77435 18.196 7.49875C18.2699 7.22314 18.2888 6.93568 18.2515 6.65278C18.2143 6.36987 18.1217 6.09708 17.979 5.84999L17.5863 5.16978C17.4437 4.92202 17.2537 4.70485 17.027 4.53072C16.8003 4.3566 16.5415 4.22895 16.2654 4.1551C15.9893 4.08126 15.7013 4.06267 15.418 4.1004C15.1346 4.13814 14.8616 4.23145 14.6144 4.37499L14.5915 4.38853C13.9824 3.88946 13.296 3.49327 12.5592 3.21561C12.5593 2.93026 12.5032 2.64768 12.3942 2.384C12.2851 2.12031 12.1252 1.8807 11.9235 1.67883C11.7218 1.47695 11.4823 1.31678 11.2188 1.20746C10.9552 1.09813 10.6726 1.04179 10.3873 1.04166Z",fill:"#666666"}),d("path",{d:"M10.0003 7.91666C10.4124 7.91666 10.8152 8.03884 11.1578 8.26776C11.5004 8.49668 11.7674 8.82205 11.9251 9.20273C12.0828 9.58341 12.124 10.0023 12.0436 10.4064C11.9632 10.8106 11.7648 11.1818 11.4735 11.4731C11.1821 11.7645 10.8109 11.9629 10.4068 12.0433C10.0026 12.1237 9.58375 12.0824 9.20307 11.9247C8.82239 11.7671 8.49702 11.5 8.2681 11.1574C8.03918 10.8148 7.91699 10.412 7.91699 9.99999C7.91699 9.44745 8.13649 8.91755 8.52719 8.52685C8.91789 8.13615 9.44779 7.91666 10.0003 7.91666ZM10.0003 6.66666C9.34106 6.66666 8.69659 6.86215 8.14843 7.22842C7.60026 7.5947 7.17302 8.11529 6.92073 8.72438C6.66844 9.33346 6.60243 10.0037 6.73104 10.6503C6.85966 11.2969 7.17713 11.8908 7.6433 12.357C8.10948 12.8232 8.70342 13.1407 9.35003 13.2693C9.99663 13.3979 10.6669 13.3319 11.2759 13.0796C11.885 12.8273 12.4056 12.4001 12.7719 11.8519C13.1382 11.3037 13.3337 10.6593 13.3337 9.99999C13.3337 9.11593 12.9825 8.26809 12.3573 7.64297C11.7322 7.01785 10.8844 6.66666 10.0003 6.66666Z",fill:"#666666"})]})}h();function au(e,t=2e3){return n=>{let a,r=0;return o=>{++r==e&&(n(o),r=0),clearTimeout(a),a=setTimeout(()=>r=0,t)}}}h();function f3(e){let t;try{t=new URL(e)}catch{return!1}let n=h3(),a="";try{a=new URL(n).hostname}catch{}return a&&t.hostname===a?!0:!(My(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function My(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}h();function b3(e){let t=e.split(".");return t.length>2?(t[0]="*",t.join(".")):null}h();function y3(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}h();function On(e){let{items:t,maxWidth:n,className:a}=e,{lang:r}=ue();return n=n||(r==="en"?144:160),d("select",{autoComplete:"off",class:a||"min-select",style:{maxWidth:`${n}px`},value:t.find(o=>o.selected)?.value,onChange:o=>{let u=o.target.value,i=t.find(s=>s.value===u);i&&i.onSelected(i)},children:t.map((o,u)=>d("option",{value:o.value,selected:o.selected,children:o.label},"selectlink"+u))})}function Kl(e){let{items:t,maxWidth:n,isInput:a,value:r}=e;return n=n||128,a?d("input",{value:r,onChange:o=>{e.onChange(o.target.value)}}):d("select",{autoComplete:"off",style:{maxWidth:`${n}px`},value:t.find(o=>o.selected)?.value,onChange:o=>{let u=o.target.value,i=t.find(s=>s.value===u);i&&i.onSelected(i)},children:t.map((o,u)=>d("option",{value:o.value,selected:o.selected,children:o.label},"selectlink"+u))})}h();var Vi="DROP_DOWN_DEFAULT_VALUE";function $l(e){let{showArrow:t,onSelected:n,className:a,menus:r,maxWidth:o}=e;a=a||"",t=t??!0,o=o||80;let u=zn(null);return d("select",{ref:u,autoComplete:"off",class:`text-label min-select ${t?"":"min-select-no-arrow"} ${a||""}`,value:Vi,style:{maxWidth:`${o}px`},onChange:i=>{i.preventDefault();let s=i.target.value;if(u.current&&s!==Vi){u.current.value=Vi,u.current?.dispatchEvent(new Event("change"));let c=r.find(l=>l.value===s);c&&n(c)}},children:[{value:Vi,label:e.label}].concat(r).map((i,s)=>d("option",{value:i.value,children:i.label},"option-"+s))})}h();function Gl(e){let{field:t,onChange:n,value:a}=e;a=a||t.default||"";let{t:r}=ue(),o=t.name;return t.label&&(o=t.label),t.labelKey&&(o=r(t.labelKey)),t.type==="select"?d("div",{class:"flex justify-between items-center mb-2",children:[d("label",{class:"inline-block",children:[o,"\uFF1A"]}),d(On,{items:t.options.map(u=>({label:`${u.label?r(u.label):u.value}`,value:u.value,selected:a===u.value,onSelected:()=>{n(u.value)}}))})]}):null}h();h();function Oa(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var Py=({date:e})=>{let{t}=ue(),[n,a]=$(!1);return he(()=>{setTimeout(()=>{a(!0)},5e3)},[]),n?null:d("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},Fy=({minVersion:e})=>{let{t}=ue();return d("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},_y=()=>{let{t:e}=ue();return d("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:"https://immersivetranslate.com/docs/installation/"})}})},By=({message:e,handleSyncing:t,date:n})=>{let{t:a}=ue();return d("p",{class:"text-sm",children:[a("failToSyncRules")," ",d("a",{onClick:t,children:a("retry")}),d("br",{}),a("failedReason"),"\uFF1A",e,d("br",{}),a("currentRuleVersion"),"\uFF1A",n]})};function Vl(e){let{isShowError:t,request:n}=e,[a,r]=$(null),{t:o}=ue(),[u,i]=$(null),[s,c]=$(null),[l,m]=$(""),[p,f]=$(!1),[g,y]=$(!1),[v,b]=$(!1),[S,A]=$(null),[N,_]=$(null),x=hn(),E=async()=>{m("");let T=u;if(u===null)try{let w=await n({url:Ea});w?(i(w),T=w,f(!0)):(m(o("unknownError")),c(null))}catch(w){c(null),m(w.message);return}T!==null?(e.setStorageBuildinConfig(T),c(!1),r(T.buildinConfigUpdatedAt)):(m(o("canNotFetchRemoteRule")),c(null))};return he(()=>{Ge().then(T=>{let w=T.buildinConfigUpdatedAt;A(T);let C=new Date(w);if(r(w),x==="0.0.0"){b(!0);return}n({url:Ea}).then(I=>{let M=I,D=M.minVersion,F=x;i(M);let U=M.latestVersion;if(U&&(Oa(F,U)?_(!0):_(!1)),Oa(F,D)){let z=M.buildinConfigUpdatedAt;new Date(z)>C?(c(!0),E()):c(!1)}else y(!0),c(null)}).catch(I=>{c(null),m(I.message)})})},[]),he(()=>{Ge().then(T=>{A(T)})},[a]),S?d("div",{class:"text-sm mt-2",style:{maxWidth:218},children:v?d(_y,{}):l?t===!1?null:d(By,{handleSyncing:E,message:l,date:a||""}):g?t===!1?null:d(Fy,{minVersion:u.minVersion}):s===null||s===!0?null:p?d(Py,{date:a}):null}):null}h();var Yi='',Jr="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMTEuNjIzLS4zMTguODQ1Yy0uMjA4LjIyMi0uNTI3LjMzMy0uOTI4LjMzM2gtMS4zM1Y5LjI0MmgxLjMzWm05Ljg0NiAxLjc4OGMuMzg4IDAgLjY2NS4xNTIuODQ1LjQ1Ny4xNTIuMjY0LjIzNS41ODIuMjYzLjk4NHYuMzE5YzAgLjQ5OS0uMDgzLjg4Ny0uMjYzIDEuMTkyLS4xOC4zMDQtLjQ1Ny40NTctLjgzLjQ1Ny0uMzg5IDAtLjY2Ni0uMTUzLS44NDYtLjQ0NC0uMTUyLS4yNjMtLjIzNS0uNTk1LS4yNjMtMS4wMTF2LS4yOTFjMC0uNDg1LjA4My0uODczLjI2My0xLjE3OC4xOC0uMzA1LjQ0My0uNDg1LjgzMS0uNDg1Wm0tMy40MDctMS4xMzZhMS4xNyAxLjE3IDAgMCAwLS43MDYuMjM1IDEuNDgyIDEuNDgyIDAgMCAwLS40MTUuNWwtLjA4My4xNjUtLjA3LS44MDNoLTEuMzU3djUuNDMyaDEuNDU0di0zLjY1OWEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiA4LjEySDQuMTE0djcuMzE3aDEuNDY4VjEyLjc5aDEuMzNjLjg0NCAwIDEuNDk1LS4yMDggMS45OC0uNjM4LjQ4NS0uNDMuNzItLjk4My43Mi0xLjY5cy0uMjM1LTEuMjYxLS43Mi0xLjY5Yy0uNDQzLS4zODktMS4wMzktLjYxLTEuNzczLS42MzhsLS4yMjEtLjAxNFptOS44NDcgMS43NzRjLS44MDMgMC0xLjQyNi4yNjMtMS44ODMuNzc2LS40MTYuNDctLjYzNyAxLjA2Ny0uNjc5IDEuNzczdi4zMzNjMCAuODE4LjIyMiAxLjQ4My42NzkgMS45OTUuNDU3LjUxMyAxLjA4Ljc3NiAxLjg4My43NzYuODA0IDAgMS40MjctLjI2MyAxLjg4NC0uNzc2LjQxNS0uNDcuNjM3LTEuMDUzLjY3OC0xLjc3M3YtLjMzM2MwLS44MTctLjIyMS0xLjQ4Mi0uNjc4LTEuOTk1LS40NTctLjUxMy0xLjA4LS43NzYtMS44ODQtLjc3NlpNMTguMDAzIDZhNiA2IDAgMCAxIDAgMTJIMFY5LjQyM0EzLjQyIDMuNDIgMCAwIDEgMy40MiA2aDE0LjU4M1oiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSI3LjUiIHgyPSIyMiIgeTE9IjE5IiB5Mj0iNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMyMjIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM2OTY5NjkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=",Yl="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzk5OSIgZD0iTTYuODk3IDMuMjQyYy40MTUgMCAuNzIuMTExLjkyOC4zNDcuMjA3LjIzNS4zMTguNTI2LjMxOC44NzMgMCAuMzQ2LS4xMS42MjMtLjMxOC44NDUtLjIwOC4yMjItLjUyNy4zMzMtLjkyOC4zMzNoLTEuMzNWMy4yNDJoMS4zM1ptOS44NDYgMS43ODhjLjM4OCAwIC42NjUuMTUyLjg0NS40NTcuMTUyLjI2NC4yMzUuNTgyLjI2My45ODR2LjMxOWMwIC40OTktLjA4My44ODctLjI2MyAxLjE5Mi0uMTguMzA0LS40NTcuNDU3LS44My40NTctLjM4OSAwLS42NjYtLjE1My0uODQ2LS40NDQtLjE1Mi0uMjYzLS4yMzUtLjU5NS0uMjYzLTEuMDExdi0uMjkxYzAtLjQ4NS4wODMtLjg3My4yNjMtMS4xNzguMTgtLjMwNS40NDMtLjQ4NS44MzEtLjQ4NVptLTMuNDA3LTEuMTM2YTEuMTcgMS4xNyAwIDAgMC0uNzA2LjIzNSAxLjQ4MiAxLjQ4MiAwIDAgMC0uNDE1LjVsLS4wODMuMTY1LS4wNy0uODAzaC0xLjM1N3Y1LjQzMmgxLjQ1NFY1Ljc2NGEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiAyLjEySDQuMTE0djcuMzE3aDEuNDY4VjYuNzloMS4zM2MuODQ0IDAgMS40OTUtLjIwOCAxLjk4LS42MzguNDg1LS40My43Mi0uOTgzLjcyLTEuNjlzLS4yMzUtMS4yNjEtLjcyLTEuNjljLS40NDMtLjM4OS0xLjAzOS0uNjEtMS43NzMtLjYzOGwtLjIyMS0uMDE0Wm05Ljg0NyAxLjc3NGMtLjgwMyAwLTEuNDI2LjI2My0xLjg4My43NzYtLjQxNi40Ny0uNjM3IDEuMDY3LS42NzkgMS43NzN2LjMzM2MwIC44MTguMjIyIDEuNDgzLjY3OSAxLjk5NS40NTcuNTEzIDEuMDguNzc2IDEuODgzLjc3Ni44MDQgMCAxLjQyNy0uMjYzIDEuODg0LS43NzYuNDE1LS40Ny42MzctMS4wNTMuNjc4LTEuNzczdi0uMzMzYzAtLjgxNy0uMjIxLTEuNDgzLS42NzgtMS45OTUtLjQ1Ny0uNTEzLTEuMDgtLjc3Ni0xLjg4NC0uNzc2Wk0xOC4wMDMgMGE2IDYgMCAwIDEgMCAxMkgwVjMuNDIzQTMuNDIgMy40MiAwIDAgMSAzLjQyIDBoMTQuNTgzWiIvPjwvc3ZnPg==",T3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAABC1BMVEUAAADt7vHt7vHn5+/v7+/u7vLs7O/Y2urv7+/I0uTu7/Ls7e/r6+/r7e/J1OTE0OGdrMHu7/Hu7/Lt7vHHz9/I0+Ps7O/V3eju7/GXp72YqL7s7u/I0uPH0+Pv7/OWpr3H0uLH0+OXp7vl6e67xtmquszi5u3W3ejAzd66x9jJ0+O5xdimtcmYprzI0+Ps7e+Yp73t7vHI0+OXp7309vnCzt/N1+Xd4+ucrMHp7PLa4evR2uff5O3F0OHo6+/j5+6uu82jssedrMKaqr/Y3+nP2ObR2OOpt8rm6e/k5+68yNq6xdW2w9XT3OivvdCmtcnu8fa/ytezwNKhsMTL09/c4+zZ3+m/y9zGz9seNO0nAAAAMXRSTlMA3+8gEJ9gECDfv3BAgO/v78+vkCCQUO/f37ewoIB/cGBAQO/v79/f39/Pz8/Pv6CfPHl8AQAAAyVJREFUSMedluda4kAUQAcUkGJB0bXturq9b3JTaUkITQOiYHv/JzEzmZYYIp/nhyYz93hnbqaI0ijVqoX6oRJyWNmt1tBqlIqVvBIjv1tcQfvALZlcYe0tGmEvQz3gWmrW4rJ0BeUVCutp3lpOeZXc2ts8YWZ72abw3mKWqOdMp+3U8OaWanSpKVeI1rOrdnTVuHyhOaq6/V1tsdoKr0ib+roF/khvJry++mMHwFPZ+8GLCbZGENJ7nI7b/amBaX0zP7W2fgOmM2Zrlw12T6EYC8D4HTXGFyBc8Tls0oQKQ/UBs7MdF3eo+FWJpyzIovAEuiUyyinFJzQ8APC4J0yPzJGIImVREeIEvF8k9Op61uuB3/PcQMfvEws8dSwi8UbZ5W9dlsD1QcKbkMaOKn2mSijmuWcQreNCkp6uEkx5rDX+0ooGaUEK15HZ5cE1VGWPbdI1gXRGpLfFxaqYIhloAJBp8sIWUEVOqPuwlHksZR3l5BnOIANdnmUO0QebFAayGMUKy0QHt44yNLr2+0nRxKK1VCI9QRgySIpN/Olxr7kAN3Dpn7h1hmSnPdkWLY/BxZwQdRyjmWBrmmbeuVjUNHsOELY80VVg8OLUk6J2o0XYw+AO/w7ADRsti4gDvlj/ic/YIeJLhk74wzFhLn3IE7bkuqw4OF8qJjxKVa3yRY7FazwdEuTaLN6eOzRvT15zNbSel8rqA5g4yIVbJt6CS8WJVJs8Qmyx2iQlFWdCDGAWPfTlhXMiHR0POOUChjjozuJDdWbD6GGAE3bF0YHHKlLq1lBLp4m72/wrYjbp2yUxzQzvQexGJKVUSKfhpGg3ZNMN8kzcQDQlN0m/nfTuo3b5PGYpxR4hIWNpGdjTqPEdj8pt8H9T5KOVutP7dkiTjJF48dM4cV85JC4dgx3ke0iwXqc3aCb9LrvKBRvhthwbGRJNKiYozLa6Aib3hFleRSyn/GvVSJhXo95iNom3/WygFEr7sbuUX1SCfbSEj2X59k6a5XO0lMa+8BLm1vsSyqJxWk4e6V6mJg/4b+KS/Hx6jlbk4uz4+Ag7R3/+n12khjwDw+rmuecPQ74AAAAASUVORK5CYII=";function Jl(e){let t=hn(),{onTranslateTheMainPage:n,onUserConfigChange:a,request:r,onTranslateLocalHtmlFile:o,onSwitchTranslationMode:u,onTranslateLocalSubtitleFile:i,onSetBuildinConfig:s,pageStatus:c,openEbookBuilderPage:l,openPricingPage:m,openEbookViewerPage:p,config:f,openAboutPage:g,onTranslateTheWholePage:y,onToggleEnabled:v,openOptionsPage:b,ontranslateToThePageEndImmediately:S,onSetPageLanguage:A,onToggleTranslate:N,onTranslateLocalPdfFile:_,onTranslatePdf:x,onRestorePage:E,ctx:T,currentUrl:w,currentLang:C,onClose:I,onTranslatePage:M,onSetLocalConfig:D,onMouseTriggerChanged:F,errorMsg:U,disabledButton:z,noPermissionPDF:B}=e,k=a,[L,O]=$(""),[K,H]=$(U),[V,q]=$(null),[oe,Z]=$(null),{t:J,lang:ye}=ue(),Te=70;ye.startsWith("zh")||(Te=75);let ie=null,Y=null,ce=null,fe=null,ge=null,Ee=null,Le=null,ve=null,ee=null,De=null,_e=null,je=null;he(()=>{Xe.get(Tt,null).then(W=>{W?(q(W),Z(Xt(W))):Z(!1)}).catch(W=>{Z(!1)})},[]);let We=!0,Et=ot();if(f){Et&&f&&(We=f.generalRule.showSponsorOnSafari);let{translationService:W,translationServices:pe,translationUrlPattern:nt}=f;Mn[W]&&(ve=cl("translationService",W,T)),pe&&pe[W]?je=pe[W]||{}:je={};try{ee=new URL(w||"")}catch{}if(w&&f3(w)){De=b3(ee.hostname),_e=y3(w);let{matches:Be,excludeMatches:Ie}=nt;Y=Be.includes(De),ie=Be.includes(ee.hostname),fe=Ie.includes(De),ce=Ie.includes(ee.hostname),Ee=Be.includes(_e),Le=Ie.includes(_e)}}if(f&&C&&C!=="auto"){let{translationLanguagePattern:W}=f,{matches:pe}=W;pe.includes(C)?ge=!0:ge=!1}let Vt=W=>{W.preventDefault(),b()},za=W=>{k(pe=>(pe.alpha?O("Success disable alpha!"):O("Success enable alpha!"),{...pe,alpha:!pe.alpha}))},nn=W=>{k(pe=>({...pe,translationMode:W})),u(W)},Qn=()=>{k(W=>({...W,translationArea:"body"})),y()},ma=()=>{k(W=>({...W,translationArea:"main"})),n()},ze=(W,pe,nt,Be)=>{if(W==="default"){k(jn=>{let cn={...jn.translationUrlPattern};return{...jn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...jn.translationUrlPattern,matches:at([ee?.hostname,De,w],cn.matches),excludeMatches:at([ee?.hostname,De,w],cn.excludeMatches)}}});return}let Ie=W,Zn=Ie==="matches"?"excludeMatches":"matches";ee&&k(jn=>{let cn={...jn.translationUrlPattern};return cn[Ie]=bn(pe,cn[Ie]),Be.length>0&&(cn[Ie]=at(Be,cn[Ie])),cn[Zn]=at(nt,cn[Zn]),{...jn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...jn.translationUrlPattern,...cn}}}),Ie==="matches"&&c==="Original"?setTimeout(()=>{M(),I()},100):Ie==="excludeMatches"&&c==="Translated"&&setTimeout(()=>{E(),I()},100)},an=W=>{if(!W){k(Be=>{let Ie={...Be.translationLanguagePattern};return{...Be,translationLanguagePattern:{...Be.translationLanguagePattern,matches:at(C,Ie.matches),excludeMatches:at(C,Ie.excludeMatches)}}});return}let pe=W,nt=pe==="matches"?"excludeMatches":"matches";C&&k(Be=>{let Ie={...Be.translationLanguagePattern};return Ie[pe]=bn(C,Ie[pe]),Ie[nt]=at(C,Ie[nt]),{...Be,translationLanguagePattern:{...Be.translationLanguagePattern,...Ie}}}),pe==="matches"&&c==="Original"&&setTimeout(()=>{M(),I()},100)},ht=ee?.pathname.toLowerCase().endsWith(".pdf"),Ze=J("translate");c==="Translated"||c==="Error"?Ze=J("show-original"):c==="Original"?ht?Va()&&ee.protocol==="file:"||B?Ze=J("translate-firefox-local-pdf"):me()?Ze=J("noSupportTranslate-pdf"):Ze=J("translate-pdf"):Ze=J("translate"):Ze=J(c);let ln=J("translateToThePageEndImmediately");(c==="Original"||c==="Translated")&&(f.shortcuts.toggleTranslatePage&&(Br()&&T.rule.fingerCountToToggleTranslagePageWhenTouching>=2?Ze+=` (${J(`fingers.${T.rule.fingerCountToToggleTranslagePageWhenTouching}`)})`:Ze+=` (${f.shortcuts.toggleTranslatePage})`),f.shortcuts.toggleTranslateToThePageEndImmediately&&(ln+=` (${f.shortcuts.toggleTranslateToThePageEndImmediately})`));let Yt=[];T&&(Yt=Ci(T,"translationService"));let pa=W=>{W.preventDefault(),I()},kt=Qr(T.config.translationService,T.config.targetLanguage),kn=Ee||ie||Y,Ve=()=>Ee?d("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[d("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!Ee,onChange:W=>{let pe=W.target.checked;ze(pe?"matches":"default",_e,[_e],[])}}),J("alwaysTranslateSomePage")]}):ie?d("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[d("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!ie,onChange:W=>{let pe=W.target.checked;ze(pe?"matches":"default",ee.hostname,[ee.hostname,De,_e],[De])}}),J("alwaysTranslateSomeSiteOrWildSite")]}):Y?d("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[d("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!Y,onChange:W=>{let pe=W.target.checked;ze(pe?"matches":"default",De,[_e,ee.hostname,De],[ee.hostname])}}),J("alwaysTranslateSomeSiteOrWildSite")]}):null;return d("div",{children:[d("div",{class:"popup-container px-6 pt-6 max-content",children:[d("div",{class:"text-sm",children:[d("div",{class:"flex justify-between mb-3 items-center",children:[d("label",{class:"inline-block text-label",children:[J("popupSourceLanguage"),"\uFF1A"]}),d(On,{maxWidth:186,items:sn.map(W=>({label:Mt(W,f.interfaceLanguage),value:W,selected:W===T.sourceLanguage,onSelected:pe=>{A(pe.value)}}))})]}),f&&f.targetLanguage&&d("div",{class:"flex items-center justify-between mb-3",children:[d("label",{class:"inline-block text-label",children:[J("popupTarget"),"\uFF1A"]}),d(On,{maxWidth:186,items:kt.filter(W=>W!=="auto").map(W=>({label:Mt(W,f.interfaceLanguage),value:W,selected:W===f.targetLanguage,onSelected:pe=>{k(nt=>({...nt,targetLanguage:pe.value}))}}))})]}),ve&&Yt.length>0&&d(Fe,{children:[d("div",{class:"flex items-center justify-between mb-3",children:[d("label",{class:"inline-block text-label",children:[J("popupService"),"\uFF1A"]}),d(On,{maxWidth:186,items:Yt.map(W=>({label:`${J("translationServices."+W.id)}${W.ok?"":" "+(" "+(!oe&&!Et&&W.providers&&W.providers.length>0?J("goLoginOrAction"):J("needAction")))}`,value:W.id,selected:W.selected,onSelected:pe=>{let nt=Yt.find(Be=>Be.id===pe.value);if(nt.ok){if(k(Be=>({...Be,translationService:nt.id})),c!="Translated")return;nt.props.length===0?setTimeout(()=>{M()},1):setTimeout(()=>{E()},1)}else k(Be=>({...Be,translationService:nt.id})),setTimeout(()=>{b()},100)}}))})]}),je&&ve.props.length>0&&ve.props.map((W,pe)=>d("div",{class:"pl-4 text-sm",children:d(Gl,{field:W,value:je[W.name],onChange:nt=>{k(Be=>{let Ie=Be.translationServices||{},Zn=Ie[ve.id]||{};return setTimeout(()=>{E()},1),{...Be,translationServices:{...Ie,[ve.id]:{...Zn,[W.name]:nt}}}})}},"field-"+pe)},"service"+pe))]}),ee&&d("div",{class:"flex items-center justify-between mb-3",children:[d("label",{class:"inline-block text-label",children:J("forThisSite")}),d(On,{maxWidth:186,items:[{label:J("default"),value:"default",selected:ie===!1&&ce===!1&&!Y&&!fe&&!Ee&&!Le,onSelected:()=>{ze("default",ee.hostname,[],[]);let W=ee.hostname,pe=T.localConfig.tempTranslationUrlMatches||[],nt=pe.filter(Ie=>Ie.match!==W),Be=!1;nt.length!==pe.length&&(Be=!0),Be&&D({...T.localConfig,tempTranslationUrlMatches:[...nt]})}},_e&&{label:J("alwaysTranslateSomeSite",{hostname:J("currentUrl")}),value:"matchesUrl",selected:Ee,onSelected:()=>{ze("matches",_e,[_e],[])}},{label:J("alwaysTranslateSomeSite",{hostname:ee.hostname}),value:"matches",selected:ie,onSelected:W=>{ze(W.value,ee.hostname,[ee.hostname,De,_e],[De])}},De&&{label:J("alwaysTranslateSomeSite",{hostname:De}),value:"matchesWild",selected:Y,onSelected:()=>{ze("matches",De,[_e,ee.hostname,De],[ee.hostname])}},_e&&{label:J("neverTranslateSomeSite",{hostname:J("currentUrl")}),value:"excludeMatchesUrl",selected:Le,onSelected:()=>{ze("excludeMatches",_e,[_e],[])}},{label:J("neverTranslateSomeSite",{hostname:ee.hostname}),value:"excludeMatches",selected:ce,onSelected:W=>{ze(W.value,ee.hostname,[ee.hostname,De,_e],[De])}},De&&{label:J("neverTranslateSomeSite",{hostname:De}),value:"excludeMatchesWild",selected:fe,onSelected:()=>{ze("excludeMatches",De,[ee.hostname,_e,De],[ee.hostname])}}].filter(Boolean)})]}),F&&ia()&&d("div",{class:"flex items-center justify-between mb-3",children:[d("label",{class:"inline-block text-label",children:[J("mouse-translate"),"\uFF1A"]}),d(On,{maxWidth:186,items:Ca.filter(W=>!(Ca.includes(f.generalRule.mouseHoverHoldKey)&&W==="OtherCustom")).map(W=>{let pe=J("mouseHoldKey",{key:W}),nt=Ca.includes(f.generalRule.mouseHoverHoldKey),Be=W===f.generalRule.mouseHoverHoldKey;return W==="Auto"?pe=J("mouseHoldKeyAuto"):W==="Off"?pe=J("mouseHoldKeyOff"):W==="OtherCustom"?pe=nt?J("mouseHoldKeyOther"):J("mouseHoldKeyCustomKey",{key:f.generalRule.mouseHoverHoldKey}):W==="Other"&&(pe=J("mouseHoldKeyOther")),nt||W==="OtherCustom"&&(Be=!0),{label:pe,value:W,selected:Be,onSelected:Ie=>{Ie.value==="Other"?b("#interface"):F(Ie.value)}}})})]})]}),d("div",{class:"",children:d("button",{class:"py-2 mt-1 mb-5 main-button ",onClick:()=>{ht?x&&x():N()},"aria-busy":c==="Translating",disabled:z||c==="Translating",children:Ze})}),d("div",{class:"text-sm",children:L}),d("div",{class:`pb-2 text-sm ${K?"":"display-none"}`,children:K}),d("div",{class:"flex items-center justify-between flex-wrap",children:[kn?d(Ve,{}):C&&C!=="auto"?d("label",{for:"alwaysTranslateThisLanugage",class:"text-sm text-label text-overflow-ellipsis max-w-20",children:[d("input",{type:"checkbox",id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",checked:!!ge,onChange:W=>{let pe=W.target.checked;an(pe?"matches":void 0)}}),J("alwaysTranslateSomeLanguage",{language:Mt(C,f.interfaceLanguage,!1,!0)})]}):d("span",{}),d("div",{class:`flex flex-end flex-grow ${K?"display-none":""}`,children:d("span",{class:"immersive-translate-no-select muted text-sm",onClick:au(7)(za),children:["V",t,f.enabled?null:d("a",{href:"#",onClick:v,children:[" ","(",J("hasBeenDisabled"),")"]})]})})]})]}),d("footer",{children:[d("div",{class:"px-6 text-label",children:d(Vl,{isShowError:!1,request:r,setStorageBuildinConfig:s})}),d("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer text-label",children:[d("div",{class:"flex flex-row items-center justify-center secondary clickable",style:{width:70},onClick:Vt,children:[d(Wl,{}),d("span",{class:"ml-1",children:J("options")})]}),We?d("a",{title:J(oe?"popup.openProForPro":"popup.openPro"),target:"_blank",href:oe?kr:H0,children:d("img",{src:oe?Jr:Yl})}):oe&&d("a",{title:J(oe?"popup.openProForPro":"popup.openPro"),target:"_blank",href:oe?kr:H0,children:d("img",{src:oe?Jr:Yl})}),d($l,{label:J("more"),showArrow:!0,maxWidth:Te,onSelected:W=>{W.value==="openPremium"?(globalThis.open($a),I()):W.value==="changeToOnlyTranslationMode"?nn("translation"):W.value==="changeToDualTranslationMode"?nn("dual"):W.value==="translateTheWholePage"?y():W.value==="translateToThePageEndImmediately"?S():W.value==="translateTheMainPage"?n():W.value==="showTranslationOnly"||(W.value==="translateLocalPdfFile"?_&&_():W.value==="translateLocalHtmlFile"?o&&o():W.value==="translateLocalSubtitleFile"?i&&i():W.value==="donate"?(globalThis.open(f.donateUrl),I()):W.value==="feedback"?(globalThis.open(f.feedbackUrl),I()):W.value==="options"?(b(),I()):W.value==="changeToTranslateTheWholePage"?Qn():W.value==="changeToTranslateTheMainPage"?ma():W.value==="about"?g():W.value==="toggleEnabled"?v():W.value==="openEbookViewer"?p():W.value==="openEbookBuilder"?l():W.value==="goPro"&&m())},menus:[f.translationMode==="dual"&&{label:"\u{1F524} "+J("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},f.translationMode==="translation"&&{label:"\u{1F521} "+J("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},f.translationArea==="main"&&{label:"\u{1F480} "+J("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},f.translationArea==="body"&&{label:"\u{1F4D6} "+J("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},{label:"\u26A1 "+ln,value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+J("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+J("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+J("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},!me()&&{label:"\u{1F310} "+J("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+J("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},oe===!1&&We&&{label:"\u{1F451} "+J("upgradeToPro"),value:"goPro"},{label:"\u2764\uFE0F "+J(We?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})]})]})}h();h();async function x3(e){try{let t=new Date;j.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await Q.storage.local.set({[Og]:t.toISOString()}),await Ry(),me()||await E3()}catch(t){j.error("run cron task failed",t)}}async function Ry(){try{let e=await Nn(),t=await se({url:Ea}),n=e.buildinConfigUpdatedAt,a=new Date(n),r=t.buildinConfigUpdatedAt,o=new Date(r),u=t.minVersion,i=Q.runtime.getManifest().version;Oa(i,u)?o>a?(await Q.storage.local.set({buildinConfig:t}),j.info(`sync remote rules success, latest: ${new Date(r).toLocaleString()}`)):j.debug(`no need to sync rules, latest: ${a}`):j.info(`local version is too old, please update to ${u} or later`)}catch(e){j.error("sync rules error: ",e)}}h();h();function Ji(){let e=new Date;return`${e.getFullYear()}-${e.getMonth()+1}-${e.getDate()}_${e.getHours()}-${e.getMinutes()}-${e.getSeconds()}`}h();h();var Yn=class{accessToken;constructor(t){this.accessToken=t}async listAll(){let t=[],n="";do{let{nextPageToken:a,files:r}=await this.list(n).catch(o=>{throw o});t.push(...r),n=a||""}while(n);return t}async getConfig(t){try{return await(await fetch(`https://www.googleapis.com/drive/v3/files/${t}?alt=media`,{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(n){return j.error("get config error, use default",n),{}}}async delete(t){await fetch(`https://www.googleapis.com/drive/v3/files/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${this.accessToken}`}})}findByName(t){return this.list(void 0,`name = '${t}'`)}uploadConfig(t,n=Gu){let a=new Blob([JSON.stringify(t,null,2)],{type:"application/json"});return this.upload({name:n,parents:["appDataFolder"],mimeType:"application/json"},a)}updateConfig(t,n){let a=new Blob([JSON.stringify(n,null,2)],{type:"application/json"});return this.updateContent(t,a)}async upload(t,n){let a=new FormData;a.append("metadata",new Blob([JSON.stringify(t)],{type:"application/json; charset=UTF-8"})),a.append("file",n);let r=await fetch("https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart",{method:"POST",headers:{Authorization:`Bearer ${this.accessToken}`},body:a});return r.ok?await r.json():Promise.reject(r.text())}async list(t,n){let a=new URL("https://www.googleapis.com/drive/v3/files");t&&a.searchParams.append("pageToken",t),n&&a.searchParams.append("q",n),a.searchParams.append("spaces","appDataFolder"),a.searchParams.append("fields","files(id,name,createdTime,modifiedTime,size)"),a.searchParams.append("pageSize","100"),a.searchParams.append("orderBy","createdTime desc");try{return j.debug("list api:",a.toString(),this.accessToken),await(await fetch(a.toString(),{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(r){throw j.error("fetch google ip error",r),r}}async updateContent(t,n){return await(await fetch(`https://www.googleapis.com/upload/drive/v3/files/${t}?uploadType=media`,{method:"PATCH",headers:{Authorization:`Bearer ${this.accessToken}`},body:n})).text()}};h();h();function C3(e,t){let n=["https://www.googleapis.com/auth/drive.appdata"];return`https://accounts.google.com/o/oauth2/v2/auth?client_id=${$u}&response_type=token&redirect_uri=${encodeURIComponent(t)}&scope=${encodeURIComponent(n.join(" "))}&state=${encodeURIComponent(JSON.stringify(e))}`}function v3(e){let t=e.match(/[#?](.*)/);return!t||t.length<1?null:{access_token:new URLSearchParams(t[1].split("#")[0]).get("access_token")}}async function Ql(e,t,n,a,r,o,u){if(j.debug(`autoSyncStrategy accessToken: ${e}`),t===null){j.debug("autoSyncStrategy settings is null");return}let i=new Yn(e);try{let s=(await i.findByName(Gu)).files;j.debug("files",s);let c=s[0]?.id,l=null;if(c&&(l=await i.getConfig(c).then(m=>({fileId:c,config:m}))),l){let{config:m,fileId:p}=l,f=m.updatedAt?new Date(m.updatedAt):new Date(0),g=t.updatedAt?new Date(t.updatedAt):new Date(0);if(j.debug("remoteUpdatedAt",f,"localUpdatedAt",g),f>g)j.debug("remote is newer, update local config",m),n(m),o&&o(!0);else if(f.getTime()===g.getTime())j.debug("remote and local are the same, do nothing"),o&&o(!1);else if(f{r.status!=200&&u("Token validation error"),r.json().then(i=>{i.aud&&i.aud===Oy?o(e):u("Token validation error")})})}return fetch(n).then(a)}function k3(e,t=!1){let n=Ny;if(typeof window<"u"&&window.location.protocol.startsWith("http")){let r=window.location.hostname,o=window.location.port;n=`${window.location.protocol}//${r}${o?`:${o}`:""}/auth-done/`}return new Na(e,n).auth(t)}function Zl(e,t=!1){return k3(e,t).then(n=>n.access_token||null)}var Uy="https://oauth2.googleapis.com/revoke",Na=class e{CLASSNAME="GoogleAuth";_state;_redirectUrl;constructor(t,n){this._state=t,this._redirectUrl=n}static revoke(t){let n=`${Uy}?token=${t}`;return fetch(n,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then(async a=>(await e.removeAuthInfo(),So()&&globalThis.location.reload(),a))}static async getAuthInfo(){let t=await Q.storage.local.get(Kn);if(t[Kn])return t[Kn]}static async removeAuthInfo(){return await Q.storage.local.remove(Kn)}static setAuthInfo(t){return Q.storage.local.set({[Kn]:t})}async auth(t=!1){let n=await e.getAuthInfo();if(j.debug(this.CLASSNAME,"token from cache:",n),n&&n.access_token&&await w3(n.access_token).then(o=>!0).catch(o=>!1))return Promise.resolve(n);let a=C3(this._state,this._redirectUrl);return j.debug(this.CLASSNAME,"auth url: "+a),So()?this.userscriptAuthWorkflow(a,t):this.extensionAuthWorkflow(a).then(r=>(e.setAuthInfo(r),r))}async userscriptAuthWorkflow(t,n){return n&&await Q.storage.local.set({[Ao]:!0}),globalThis.open(t,"_self"),Promise.resolve({})}extensionAuthWorkflow(t){let n,a=!1;return new Promise((r,o)=>{let u=()=>{Q.tabs.onUpdated.removeListener(i),Q.tabs.onRemoved.removeListener(s)},i=(p,f,g)=>{if(j.debug(this.CLASSNAME,"create tab onUpdated: "+g.url),n===p){let y=new URL(g.url||""),v=v3(g.url);y.pathname.startsWith("/auth-done")&&v?.access_token&&(j.debug(this.CLASSNAME,"auth done: "+g.url),r({access_token:v.access_token}),a=!0,Q.tabs.remove(p),u())}},s=(p,f)=>{j.debug(this.CLASSNAME,"create tab onRemoved: "+p),(p===n||!a)&&(u(),o(new Error("auth failed")))},c=Math.min(500,screen.availWidth),l=Math.min(650,screen.availHeight),m;Q.windows===void 0?m=Q.tabs.create({url:t}).then(p=>{n=p.id}):m=Q.windows.create({url:t,type:"popup",width:c,height:l,left:Math.round((screen.width-c)/2),top:Math.round((screen.height-l)/2)}).then(p=>{n=p.tabs[0].id}),m.then(()=>{Q.tabs.onUpdated.addListener(i),Q.tabs.onRemoved.addListener(s)}).catch(p=>{j.debug(this.CLASSNAME,"create tab failed: "+p),o(p)})})}};function jy(e){let{t}=ue(),{accessToken:n,id:a,listAllFiles:r}=e,[o,u]=$(!1);function i(s,c){s.preventDefault(),u(!0),new Yn(n).delete(c).catch(l=>{Bt(t("delete"))}).then(()=>r()).finally(()=>u(!1))}return d("a",{href:"#",className:"secondary margin-left text-sm",onClick:s=>i(s,a),"aria-busy":o,children:t("delete")})}function Xl(e){let{onClose:t,accessToken:n,authExpire:a}=e,{t:r}=ue(),[o,u,i,s]=ft(),[c,l]=$([]),[m,p]=$(!0),[f,g]=$(!1),[y,v]=$({});he(()=>{n&&S().then(()=>p(!1))},[n]);let b=E=>{E.target&&E.target.id==="immersive-translate-overlay"&&t()};function S(){return new Yn(n).listAll().then(T=>{l(T)}).catch(T=>a())}function A(E){if(E.preventDefault(),c.length>=10)return Bt(r("maxBackupFiles",{count:10}));g(!0);let T="immersive-translate-config-"+Ji()+".json";new Yn(n).uploadConfig(o,T).catch(w=>{Bt(r("uploadFail"))}).then(()=>S()).finally(()=>g(!1))}function N(E,T,w){E.preventDefault(),v({[w]:!0}),new Yn(n).getConfig(T).then(C=>{u(()=>({...C})),ut(r("importSuccess"))}).catch(C=>{j.error(C),Bt(r("importFail"))}).finally(()=>v({}))}function _(E,T){new Yn(n).getConfig(E).then(w=>{let C=document.createElement("a");C.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(JSON.stringify(w,null,2))),C.setAttribute("download",T),C.style.display="none",document.body.appendChild(C),C.click(),document.body.removeChild(C)}).catch(w=>{j.error("download google config file failed",w),Bt(r("downloadFail")+": "+w.message)})}function x(E){E.preventDefault(),u({...o,autoSync:!1}),Na.revoke(n).then(()=>t())}return d("dialog",{id:"immersive-translate-overlay",onClick:b,open:!0,children:d("article",{class:"md:w-[32rem] px-4",children:[d("a",{href:"#",title:r("clickToDownload"),"aria-label":"Close",className:"close","data-target":"modal-example",onClick:E=>{E.preventDefault(),t()}}),d("h4",{children:r("syncTitle")}),d("div",{className:"mb-4",children:c.map((E,T)=>d("div",{class:"flex flex-wrap justify-between",children:[d("div",{class:"mr-2 mb-2",children:[d("div",{children:d("a",{href:"#",onClick:w=>{w.preventDefault(),_(E.id,E.name)},class:"block truncate w-40 sm:w-auto",children:E.name.replace("immersive-translate-","")})}),d("div",{class:"text-xs text-gray-500",children:[new Date(E.modifiedTime).toLocaleString(),",\xA0",Vo(parseInt(E.size))]})]}),d("div",{children:[d("a",{href:"#",role:"button",className:"margin-right secondary","aria-busy":y[T],disabled:y[T],onClick:w=>N(w,E.id,T),children:r("import_hint")}),d(jy,{accessToken:n,id:E.id,listAllFiles:S})]})]},"file"+T))}),d("div",{className:"flex items-center",children:[d("a",{href:"#",role:"button",className:"mr-4","data-target":"modal-example","aria-busy":f,onClick:A,disabled:m,children:r("create_new_backup")}),d("a",{href:"#",className:"secondary text-sm","data-target":"modal-example",onClick:x,disabled:m,children:r("revokeAuth")})]})]})})}function zy(){let[e,t]=$(null);return he(()=>{Ge().then(n=>{t(n)})},[]),e}function A3(){let[e,t]=$(null);return he(()=>{Gn().then(a=>{t(a)})},[]),[e,a=>{t(a),yn(a)}]}function ec(){let[e,t,n,a,r]=ft(),o=zy(),{t:u,setLang:i}=ue(),[s,c]=A3();if(!o)return null;return d("div",{class:"pb-4",children:[d(l,{}),d(m,{}),d(p,{}),d(f,{config:o})]});function l(){let g=b=>{b.preventDefault(),confirm(u("confirmResetConfig"))&&(r(Za()),ut(u("resetSuccess")),setTimeout(()=>{Q.storage.local.remove(Kn),ka().catch(S=>{j.error("clean local config error",S)})},500))},y=b=>{t(()=>({...b}))},v=b=>{b.preventDefault();let S=document.createElement("input");S.setAttribute("type","file"),S.setAttribute("accept","text/plain"),S.style.display="none",document.body.appendChild(S),S.oninput=A=>{let N=A.target,_=new FileReader;_.onload=function(){try{let x=JSON.parse(_.result);y(x),ut(u("successImportConfig"))}catch(x){Bt(`Invalid JSON ${x.message}`)}},_.readAsText(N.files[0])},S.click(),document.body.removeChild(S)};return d(Fe,{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("import_export_title")})}),d("div",{class:"pb-2",children:[d("a",{class:"mr-2 secondary mb-2 !text-sm",onClick:v,href:"#",role:"button",children:[Ky,u("import")]}),d("a",{href:"#",class:"secondary mr-2 mb-2 !text-sm",onClick:b=>{b.preventDefault();let S=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});xo.saveAs(S,"immersive-translate-config-"+Ji()+".txt")},role:"button",children:[$y,u("export")]}),d("a",{href:"#",onClick:g,class:"secondary text-sm",children:u("reset")})]})]})}function m(){return d("details",{class:"mt-4 mb-6",children:[d("summary",{children:u("clickToExpandConfig")}),d("pre",{children:d("code",{children:JSON.stringify(e,null,2)})})]})}function p(){let[g,y]=$(!1),[v,b]=$(!1),[S,A]=$(!1),[N,_]=$("");he(()=>{if(So()&&n){let D=localStorage.getItem(Ao);if(localStorage.removeItem(Ao),D){let F=globalThis.localStorage.getItem(B0);j.debug("import_export","rawAuthInfoStr",F);let U={},z={},B="";if(F){globalThis.localStorage.removeItem(B0);try{U=JSON.parse(F),z=U.state||{},B=U.access_token||""}catch(k){j.error("parse state error",k)}}if(B&&z&&(Na.setAuthInfo({access_token:B}),j.debug("import_export","Google OAuth:",U),U)){let k=U.state;j.debug("state",k),k?.mode==="auto"?(b(!0),I(B)):(A(!0),w(B))}}}},[n]);function x(){b(!0),Zl({source:globalThis.location.href,mode:"auto"},!0).then(D=>{j.debug("import_export","Google OAuth:"+D),D!==null&&I(D)}).catch(D=>{D&&D.message==="tokenValidateErrorRedirectToAuthUrl"?j.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):C(D)})}function E(){A(!0),y(!1),Zl({source:globalThis.location.href,mode:"manual"},!0).then(D=>{j.debug("import_export","Google OAuth:"+D),D!==null&&w(D)}).catch(D=>{D&&D.message==="tokenValidateErrorRedirectToAuthUrl"?j.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):C(D)})}function T(){_(""),x()}function w(D){_(D),A(!1),y(!0)}function C(D){b(!1),A(!1),y(!1),t({...e,autoSync:!1}),j.error("import_export","Google OAuth error:"+D),Bt(u("authFail"))}function I(D){b(!0),j.debug("sync latest with drive",D,e),_(D),Ql(D,e,F=>{F.interfaceLanguage&&i(F.interfaceLanguage),r(F)},F=>c({...s,lastSyncedAt:F}),F=>t({...e,updatedAt:F}),F=>{F?ut(u("successSyncConfig")):ut(u("successSyncButNoChange"))},F=>Bt(u("syncFail")+F)).finally(()=>{b(!1)})}function M(D){t({...e,autoSync:D.checked}),D.checked&&x()}return d(Fe,{children:[d("hgroup",{class:"my-2",children:[d("h5",{children:u("syncToCloud")}),d("h6",{class:"!text-sm",children:u("syncToCloudDescription")})]}),d("div",{children:[d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:D=>{D.preventDefault(),x()},"aria-busy":v,href:"#",role:"button",children:[v?d(Fe,{}):S3,u("syncToGoogleDrive")]}),d("a",{href:"#","aria-busy":S,onClick:D=>{D.preventDefault(),E()},class:"secondary text-sm",children:u("backupToCloud")})]}),d("div",{class:"text-xs text-gray-500",children:s?.lastSyncedAt&&u("lastSyncedAt",{date:new Date(s.lastSyncedAt).toLocaleString()})}),s?.lastSyncErrorMessage&&d("p",{class:"mt-2 text-xs text-red-500"}),g?d(Xl,{onClose:()=>y(!1),authExpire:T,accessToken:N}):null]})}function f({config:g}){let y=D3(),[v,b]=$(!1),[S,A]=$(""),[N,_]=$(""),[x,E]=$(null),{t:T}=ue();if(!y||!y.token)return null;async function w(){try{if(v)return;b(!0),_("");let M=await Qi(y?.token,e,r),D="";switch(M){case"upload":{D=T("successSyncConfigToAccount");break}case"override":{D=T("successSyncConfigInAccount");break}default:D=T("syncConfigNoUpdate")}A(D)}catch(M){A(""),_(M.message)}finally{b(!1)}}let C=M=>{c({...s,proAutoSync:M})},I=s&&s.proAutoSync!==void 0?s.proAutoSync:!0;return d(Fe,{children:[d("hgroup",{class:"my-2 mt-4",children:[d("h5",{children:T("syncToAccount")}),d("h6",{class:"!text-sm",children:T("syncToAccountDescription")})]}),d("fieldset",{class:"my-4",children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onChange:()=>{C(!I)},checked:I}),T("enableAutoSyncUserSettings")]})}),d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:M=>{M.preventDefault(),w()},"aria-busy":v,href:"#",role:"button",children:[S3," ",T("syncToAccountButton")]}),N?d("p",{class:"text-xs text-red-500",children:N}):d("p",{class:"text-xs text-gray-500",children:S||s?.accountLastSyncedAt&&T("lastSyncedAt",{date:wp(s.accountLastSyncedAt)})})]})}}async function Qi(e,t,n){try{if(t===null)return"noupdate";let a=await qy(e),r=await Gn();r.accountLastSyncedAt=Date.now(),j.debug("settings",t),j.debug("local settings.updatedAt",t.updatedAt),j.debug("remote settings.updatedAt",a.updatedAt),j.debug("last synced at",r.accountLastSyncedAt);let o=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(o=!0),!o&&t.updatedAt>a.updatedAt&&(o=!0),j.debug("isUpload",o),o)return await Wy(e,t),await yn(r),"upload";let u=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(u=!0),!u&&t.updatedAt0&&Xe.remove(Tt),a}}function En(e,t){let n=D3(),[a,r]=A3();he(()=>{!n||!n.token||a&&a.proAutoSync===!1||Hy(n)&&Qi(n.token,e,t)},[e,n])}function Hy(e){return Xt(e)?!0:new Date(e.createTime){Xe.get(Tt,null).then(n=>{t(n)})},[t]),e}function qy(e){return(location.href?.indexOf("popup.html")>0?Pn:se)({responseType:"json",url:Bo+"/v1/user/settings",method:"get",headers:{token:e}}).then(n=>n.data)}function Wy(e,t){return(location.href?.indexOf("popup.html")>0?Pn:se)({responseType:"json",url:Bo+"/v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(a=>a.data)}var S3=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",children:d("path",{fill:"currentColor",d:"M15.375 19.25q-.525.25-.95-.038q-.425-.287-.425-.937q0-.25.163-.487q.162-.238.412-.363q1.575-.75 2.5-2.225T18 11.95q0-1.125-.425-2.188Q17.15 8.7 16.25 7.8L16 7.55V9q0 .425-.287.712Q15.425 10 15 10t-.712-.288Q14 9.425 14 9V5q0-.425.288-.713Q14.575 4 15 4h4q.425 0 .712.287Q20 4.575 20 5t-.288.713Q19.425 6 19 6h-1.75l.4.35q1.225 1.225 1.788 2.662Q20 10.45 20 11.95q0 2.4-1.25 4.362q-1.25 1.963-3.375 2.938ZM5 20q-.425 0-.713-.288Q4 19.425 4 19t.287-.712Q4.575 18 5 18h1.75l-.4-.35q-1.225-1.225-1.788-2.662Q4 13.55 4 12.05q0-2.4 1.25-4.363Q6.5 5.725 8.625 4.75q.525-.25.95.037q.425.288.425.938q0 .25-.162.487q-.163.238-.413.363q-1.575.75-2.5 2.225T6 12.05q0 1.125.425 2.187Q6.85 15.3 7.75 16.2l.25.25V15q0-.425.288-.713Q8.575 14 9 14t.713.287Q10 14.575 10 15v4q0 .425-.287.712Q9.425 20 9 20Z"})}),Ky=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zm10-5.828L19.071 7.1l1.414 1.414L12 17 3.515 8.515 4.929 7.1 11 13.17V2h2v11.172z"})]}),$y=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zM13 5.828V17h-2V5.828L4.929 11.9l-1.414-1.414L12 2l8.485 8.485-1.414 1.414L13 5.83z"})]});function nc(e){let{onClose:t}=e,[n,a]=$("Original"),[r,o,u,i]=ft(()=>{setTimeout(()=>{A("updateGlobalContext",!1)()},250)});En(r,o);let[s,c]=$(null),[l,m]=$(globalThis.location.href),[p,f]=$("auto"),[g,y]=$(null),v=z=>{a(z.detail)},b=z=>{f(z);let B=p3(l,z,s.sourceLanguageUrlPattern);o(k=>({...k,sourceLanguageUrlPattern:B})),Tn(z)},S=()=>{m(globalThis.location.href)};he(()=>(document.addEventListener(Ju,v,!1),Nn().then(z=>{c(z);let B=Dt();f(B);let k=tt();a(k),x3(z.interval)}),document.addEventListener("urlChange",S),()=>{document.removeEventListener("pageTranslatedStatus",v),document.removeEventListener("urlChange",S)}),[]),he(()=>{Nn().then(z=>{c(z)})},[r]),he(()=>{l&&s&&Lt({url:l,config:s}).then(z=>{y(z)})},[l,s]);let A=(z,B,k={})=>()=>{Vr({method:z,data:k||{}}),B&&t()},N=()=>{t()},_=()=>{o(z=>({...z,enabled:!z.enabled})),setTimeout(()=>{N()},50)},x=()=>{tc(),setTimeout(()=>{N()},50)},E=()=>{tc(),setTimeout(()=>{N()},50)},T=(z="")=>{Zr(!0,z),setTimeout(()=>{t()},50)},w=()=>{es(Yg),setTimeout(()=>{globalThis.close()},50)},C=()=>{Xi(),setTimeout(()=>{t()},50)},I=()=>{ts(),setTimeout(()=>{t()},50)},M=()=>{M3(),setTimeout(()=>{t()},50)},D=()=>{ns(),setTimeout(()=>{t()},50)},F=()=>{P3(),setTimeout(()=>{t()},50)},U=z=>{o(B=>({...B,generalRule:{...B.generalRule,mouseHoverHoldKey:z}}))};return!s||!g?null:d(Jl,{openEbookViewerPage:I,openEbookBuilderPage:D,onSwitchTranslationMode:z=>{A("switchTranslationMode",!0,{mode:z})()},onTranslateLocalHtmlFile:M,onTranslateLocalSubtitleFile:F,request:se,onClose:N,onToggleEnabled:_,onTranslateTheWholePage:A("translateTheWholePage",!0),openOptionsPage:T,openPricingPage:w,onToggleTranslate:A("toggleTranslatePage",!0),onTranslateTheMainPage:A("translateTheMainPage",!0),ontranslateToThePageEndImmediately:A("translateToThePageEndImmediately",!0),onTranslatePage:A("translatePage",!0),onRestorePage:A("restorePage",!1),onTranslatePdf:x,openAboutPage:C,onTranslateLocalPdfFile:E,onSetPageLanguage:b,onUserConfigChange:o,config:s,pageStatus:n,ctx:g,currentUrl:l,currentLang:p,onSetLocalConfig:Zi,onSetBuildinConfig:L3,onMouseTriggerChanged:U})}function Gy(e,t){for(let n of t){if(me()&&!Va()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}var ac={position:"right",right:0,top:335},Kt={...ac},os=!1,er=null,Jn=null,us=null,rc=null,Xr=null,oc=null,F3=6,as,rs,B3=null,R3=null;async function I3(){let e=Ke();oc=await U3(),Kt=oc.pagePopupConfig||Kt;let t=document.createElement("div");t.id="immersive-translate-popup",t.setAttribute("style","all: initial"),document.documentElement.appendChild(t);let n=t.attachShadow({mode:"open"});rc=n;let a=[e.IMMERSIVE_TRANSLATE_PICO_CSS,e.IMMERSIVE_TRANSLATE_COMMON_CSS,e.IMMERSIVE_TRANSLATE_POPUP_CSS,e.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` -`);Gy(n,[a]);let r=document.createElement("div");r.innerHTML=e.IMMERSIVE_TRANSLATE_POPUP_HTML,n.appendChild(r),er=n.querySelector("#immersive-translate-popup-container");let u=n.querySelector("#immersive-translate-popup-btn");Jn=u,us=n.querySelector("#mount"),er.setAttribute("style",uc(Kt)),cc(),u.addEventListener("mousedown",O3),u.addEventListener("touchstart",Jy),globalThis.addEventListener("resize",s=>{er.setAttribute("style",uc(Kt))})}function Vy(){Ha(null,us),us.style.display="none",Jn.style.display="block",Xr=setTimeout(()=>{cc(!0)},2e3)}function _3(e){let t=e.querySelector("#mount"),n=()=>{Vy()},a=r=>{r&&r.target&&r.target.id==="immersive-translate-popup-overlay"&&n()};(async()=>{let r=await Nn();Ha(d(si,{lang:r.interfaceLanguage,fallbackLang:"zh-CN",translations:Gr,children:d("div",{onClick:a,id:"immersive-translate-popup-overlay",class:"immersive-translate-popup-overlay",children:d("div",{class:"immersive-translate-popup-wrapper",style:Yy(),children:d(nc,{onClose:n})})})}),t)})().then(()=>{Jn.style.display="none",us.style.display="block"})}function Yy(){let e=ic(),t=e.height,{position:n,top:a,left:r}=Kt,o={position:"fixed"},u=300,i=300,s=100;return Tg()&&(n=ac.position,a=ac.top),n==="right"||n==="left"?(o.top=a-s,o.top+u>=t?(o.bottom=30,delete o.top):o.top<=10&&(o.top=10),n==="right"?o.right=0:n==="left"&&(o.left=0)):(n==="top"||n==="bottom")&&(o.left=r-s,o.left+i>=e.width?(o.right=0,delete o.left):o.left<=10&&(o.left=0),n==="top"?o.top=0:n==="bottom"&&(o.bottom=0)),o}function ic(){return{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}function O3(e){R3=er.getAttribute("style"),as=e.pageX,rs=e.pageY,Xr&&clearTimeout(Xr),os=!1,Jn.style.opacity="1",Jn.style.transform="none",B3=Jn.getAttribute("style"),globalThis.addEventListener("mousemove",sc),globalThis.addEventListener("mouseup",lc),globalThis.addEventListener("touchmove",N3),globalThis.addEventListener("touchend",is),globalThis.addEventListener("touchcancel",is)}function Jy(e){e.preventDefault&&e.preventDefault(),O3(e.changedTouches[0])}function N3(e){sc(e.changedTouches[0])}function is(e){e.preventDefault&&e.preventDefault(),lc(e.changedTouches[0])}function sc(e){e.preventDefault&&e.preventDefault(),os=!0,er.setAttribute("style",`left:${e.clientX}px;top:${e.clientY}px;transform:scale(1.6);`)}function lc(e){e.preventDefault&&e.preventDefault(),Zy(),Xr&&clearTimeout(Xr),as=as||0,rs=rs||0;let t=Math.abs(e.pageX-as),n=Math.abs(e.pageY-rs);t{cc(!0)},2e3)}function cc(e=!1){Jn.style.opacity="0.4";let t="";Kt.position==="left"?t="translateX(-40%)":Kt.position==="right"?t="translateX(40%)":Kt.position==="top"?t="translateY(-40%)":Kt.position==="bottom"&&(t="translateY(40%)"),Jn.style.transform=t,e&&(Jn.style.transition="transform 0.2s ease-in-out, opacity 0.2s ease-in-out")}function Zy(){globalThis.removeEventListener("mousemove",sc),globalThis.removeEventListener("mouseup",lc),globalThis.removeEventListener("touchmove",N3),globalThis.removeEventListener("touchend",is),globalThis.removeEventListener("touchcancel",is)}function uc(e){let t=Xy(e);return Object.keys(t).map(n=>typeof t[n]=="number"?`${n}:${t[n]}px;`:"").join("")}function Xy(e){let{position:t,...n}=e,a=ic(),r={};return t==="left"?(r.left=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="right"?(r.right=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="top"?(r.top=0,n.left>a.width?r.left=a.width-100:r.left=n.left):t==="bottom"&&(r.bottom=0,n.left>a.width?r.left=a.width-100:r.left=n.left),r}var j3=!1;async function z3(){j3||(j3=!0,I3().catch(e=>{j.error("init popup error",e)}))}var H3=!1,$3=[()=>{Ue.unbind()}],gc=[...$3],eT=Ft(async()=>{await Zr()},50),tT=Ft(async()=>{await Xi()},50),nT=Ft(async()=>{await ns()},50),aT=Ft(async()=>{await ts()},50),G3=Ft(e=>{Vr({method:e,data:{trigger:"userscript_menu"}})},50),rT=Ft(()=>{ss();let e=new CustomEvent(xa,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},200),oT=Ft(()=>{ds();let e=new CustomEvent(xa,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},200),uT=Ft(()=>{cs();let e=new CustomEvent(xa,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},200);function iT(e,t){let n=e.document;if(H3)return;if(H3=!0,me()||tf(),n.addEventListener("securitypolicyviolation",TT),document.addEventListener(be+"DocumentMessageUser",Z3),document.addEventListener(be+"DocumentMessageUpdateUser",X3),document.addEventListener(be+"ChangeSuccessService",ef.bind(null,t)),document.addEventListener(Yu,hT.bind(null,t)),n.addEventListener(be+"EbookLoaded",yT),n.addEventListener(Sg,bT),n.addEventListener(Ag,xT.bind(null,t)),n.addEventListener("click",r=>{dT(r,t)}),me()&&(globalThis.top!=globalThis.self?e.addEventListener("message",lT,!1):n.addEventListener(xa,sT)),globalThis.top===globalThis.self){let r=Ma.rootIframe(ni);r.handleAsk("getRateLimitDelay",d3),r.handleAsk("throttleRequest",g3)}}function V3(e,t){ET(),iT(t,e);let n=t.document,a=cT.bind(null,e);e.rule.fingerCountToToggleTranslagePageWhenTouching>=2&&n.addEventListener("touchstart",a),gc.push(()=>{n.removeEventListener("touchstart",a)}),me()&&globalThis.top===globalThis.self&&(Hl(e.config),CT(e.config)),ot()&&Hl(e.config)}function sT(e){z3()}function lT(e){let t=e;t&&t.data&&t.data.payload&&t.data.author===Vu&&Yr(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})}function cT(e,t){let n=t;n.touches.length==e.rule.fingerCountToToggleTranslagePageWhenTouching?rT():n.touches.length===e.rule.fingerCountToToggleTranslationMaskWhenTouching?uT():n.touches.length===e.rule.fingerCountToToggleTranslagePageOnlyTranslationWhenTouching&&oT()}function dT(e,t){let n=e.target;if(!n||!n.getAttribute){dc(n);return}let a=n.getAttribute("data-immersive-translate-event");a&&et(a,[{name:a}],{...t,sourceLanguage:"none"});let r=n.getAttribute(`data-${X}-action`);if(r)if(r==="retry"){e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),ls(),dc(n,!0);return}else if(r=="toast-error"){let o=n.getAttribute(`data-${X}-tooltip-text`);mc(J3.bind(null,t,o||""))}else r=="close-search"&&(e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),mc(pT.bind(null,t)));dc(n)}async function q3(e=!1){let t=document.querySelector(`.${X}-search-recomend`);if(!t||(t.remove(),!e))return;let n=await vn();n.generalRule||(n.generalRule={}),n.generalRule.enableSearchEnhancement=!1,await Cn(n)}async function gT(){let e=await vn(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,a=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(a=e.translationUrlPattern.matches||[]),!n&&a.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await Cn(e)}async function mT(){let e=await vn(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await Cn(e)}var W3=0;function mc(e){let t=Date.now();if(t-W3<2e3)return;W3=t;let n=`${X}-modal`,a=document.querySelector(`.${n}`);if(a?.style.display=="block")return;let r=`${X}-modal-title`,o=`${X}-modal-body`,u=`${X}-modal-footer`;if(a){let i=a.querySelector(`.${r}`),s=a.querySelector(`.${u}`),c=a.querySelector(`.${o}`);e(a,i,c,s)}else{a=document.createElement("div"),a.className=n+" notranslate",a.id=n;let i=document.createElement("div");i.className=X+"-modal-content notranslate",a.appendChild(i);let s=document.createElement("span");s.textContent="\xD7",s.className=X+"-close",i.appendChild(s);let c=document.createElement("div");c.className=r+" notranslate",i.appendChild(c);let l=document.createElement("div");l.className=o+" notranslate",i.appendChild(l);let m=document.createElement("div");m.className=u,i.appendChild(m),document.body.appendChild(a),s.onclick=function(){a.style.display="none"},window.onclick=function(p){p.target==a&&(a.style.display="none")},e(a,c,l,m)}setTimeout(()=>{fT()},100)}function pT(e,t,n,a,r){let o=Y3.bind(null,e);n.innerHTML=`
${Yi} ${o("disableConfirm")}
`,a.innerHTML="";let u=document.querySelector(`div[data-${X}-cancel-desc]`),i=document.createElement("p");i.innerHTML=u?Ne.sanitize(u.textContent||""):Ne.sanitize(o("searchEnhancementNotes")),i.style.cssText="margin-bottom:12px",a.appendChild(i);let s=[{id:"enable-search-enhancement",value:"enable",text:o("enableSearchEnhancement")},{id:"disable-once",value:"once",text:o("disableOnce")},{id:"disable-global",value:"global",text:o("disableGlobal")}];for(let f=0;f${o("option")}`})),a.appendChild(c);let l=a.querySelector(`.${X}-open-enhancement`);l&&(l.onclick=function(){nf(!0)});let m=document.createElement("button");m.innerText=o("closeModal"),m.className=`${X}-btn ${X}-cancel-btn`;let p=document.createElement("button");p.className=`${X}-btn`,p.innerText=o("saveSettings"),r.innerHTML="",r.appendChild(m),r.appendChild(p),m.onclick=function(){t.style.display="none"},p.onclick=function(){let f=a.getElementsByTagName("input"),g="";for(let y=0;y
1. \u5207\u6362\u5230 ${o} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458`:i+=`

\u5982\u679C\u60A8\u6709\u7591\u95EE\uFF0C\u8BF7\u8054\u7CFB support@immersivetranslate.com`,mc(J3.bind(null,e,i))}catch(a){j.warn("parse message error",a)}}function bT(e){let t=e;if(j.debug("receive third party message",t),t&&t.detail)try{let n=JSON.parse(t.detail);n&&n.type&&(n.type==="retryFailedParagraphs"?vT({method:"retryFailedParagraphs"}):n.type==="updateCommands"?af(n.data):n.type==="toggleEnableDefaultAlwaysTranslatedUrls"?gT():n.type==="toggleEnableInputTranslation"?mT():G3(n.type))}catch(n){j.warn("parse message error",n)}}function yT(e){setTimeout(()=>{Q3()},10)}function TT(e){Ce.HAS_CSP_ERROR="1"}function xT(e,t){let n=event.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&et(n.name,[{name:n.name}],{...e})}function ET(){gc.forEach(e=>{e()}),gc=$3}function CT(e){if(me()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=fi.commands,r=[...Object.keys(t).filter(o=>o==="toggleTranslatePage").map(o=>{let u=t[o].description,i=u;return u.startsWith("__MSG_")&&u.endsWith("__")&&(i=Ia(`browser.${u.slice(6,-2)}`,e.interfaceLanguage)),{id:o,title:i}}),{id:Lo,title:Ia("browser.openEbookViewer",e.interfaceLanguage),key:"e"},{id:Mo,title:Ia("browser.openEbookBuilder",e.interfaceLanguage),key:"m"},{id:Do,title:Ia("browser.openOptionsPage",e.interfaceLanguage),key:"o"},{id:R0,title:Ia("browser.openAboutPage",e.interfaceLanguage),key:"a"}];for(let o of r)GM.registerMenuCommand(o.title,()=>{o.id===Do?eT():o.id===R0?tT():o.id===Mo?nT():o.id===Lo?aT():G3(o.id)},o.key)}}function vT(e){Yr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{j.error("send content message request failed",e,n)});let t=new CustomEvent(xa,{detail:e});globalThis.document.dispatchEvent(t)}h();var tr={};async function pc(){let t=[...document.querySelectorAll(".source-text")].map(a=>a.textContent).join(""),n=await it({text:t,minLength:200,pageLangs:[Ja(),"en"]});return Tn(n),n}async function rf(e){Wt("Translating");let t=Dt(),n=Ui(),a=[...document.querySelectorAll(".source-text")];if(Pi(e,t))return;let r=a.filter(o=>o.innerText?.trim()).map((o,u)=>{let i=o.parentElement?.parentElement?.querySelector(".target-text");return pt(o,"id",u+""),i&&(Nr(i,u)?.remove(),i.appendChild(Zo(e,u))),{text:o.innerText||"",id:u,from:t,to:e.targetLanguage,url:"https://google.com",fromByClient:n}});document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await Ra({sentences:r},e,(o,u,i)=>{let s=i.id,c=Nr(document.body,s);if(!c)return;let l=c.parentElement;l&&(c.remove(),o?(l.innerHTML=Ne.sanitize(`${o.message}`),tr[s]={ok:!1,sentence:i}):u&&(l.innerHTML=Ne.sanitize(u.text),tr[s]={ok:!0,sentence:i}),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!o}})})))})}catch(o){throw o}finally{Wt("Translated")}}async function of(e){Wt("Translating"),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(tr),n=[],a=[];for(let r of t){let o=tr[r];if(!o.ok){let i=document.querySelector(`#error-id-${r}`);if(i){let s=i.parentElement;i.remove(),s&&(delete tr[r],s.appendChild(Zo(e,r)),a.push(o.sentence))}}}try{await Ra({sentences:a},e,(r,o,u)=>{let i=u.id,s=Nr(document.body,i);if(!s)return;let c=s.parentElement;c&&(s.remove(),r?(c.innerHTML=Ne.sanitize(`${r.message}`),tr[i]={ok:!1,sentence:u}):o&&(c.innerHTML=Ne.sanitize(o.text),tr[i]={ok:!0,sentence:u}),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!r}})})))})}catch(r){throw r}finally{Wt("Translated")}}function fc(){Wt("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}h();var hc={};async function uf(){let e=[...document.querySelectorAll("iframe")],t="";for(let a of e){let r=a.contentDocument;if(!r)continue;let o=r.body;if(o&&(t=t+o.innerText||"",t.length>1e3))break}let n=await it({text:t,pageLangs:["en"]});return Tn(n),n}async function sf(e){Wt("Translating"),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(hc),n=[];for(let a of t){let r=hc[a];if(r.error){let u=r.commonAncestorContainer.querySelector(`[${Qu}='${a}']`);u&&u.remove(),n.push(r)}}try{await qi(n,e,e.config.translationMode)}catch{}finally{Wt("Translated")}}function lf(){let e=[...document.querySelectorAll("iframe")];for(let t of e){let n=t.contentDocument;if(!n)continue;let a=n.querySelectorAll("."+un);for(let r of a)r.remove()}Wt("Original")}async function cf(e){Wt("Translating");let t=Fn(),n=[...document.querySelectorAll("iframe")],a=[],r=[];for(let i of n){let s=i.contentDocument;if(!s)continue;wa(s,e);let c=s.body;if(!c)continue;let l=xn(e);l.isModifyImage=!1,Fa({id:t,container:c,filterRule:l,onParagraph:m=>{a.push(m)}})}let o=Mi(e.config.translationServices[e.translationService]?.placeholderDelimiters),u=1;for(let i of a){let s=ji(i.flatNodes,{isPreWhitespace:i.isPreWhitespace||!1,delimiters:o,stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(l=>l.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)});if(!s)continue;i.variables=s?.variables||{},i.text=s?.text,i.id=(u++).toString();let c=await Il(i,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:o,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});c&&(r.push(c),hc[c.id]=c)}a=[],document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await qi(r,e,e.config.translationMode)}catch{}finally{Wt("Translated")}}h();var wT=new AbortController,{signal:kT}=wT,Ec=0,Cc=0,bc=!1,yc=0,ru=!1,nr,df=0,ar=[];function gs(e,t){ST();let n=e,a=n.config,r=a.generalRule.mouseHoverHoldKey==="Off",o=a.generalRule.mouseHoverHoldKey==="Auto",u=Ft(l=>{if(bc==!1&&Math.abs(l.clientX-Ec)+Math.abs(l.clientY-Cc)>3&&(yc<2?yc+=1:bc=!0),Ec=l.clientX,Cc=l.clientY,o||ru&&!nr){let m=hf(n.rule,t);if(m){if(vc(m))return;mf(n,m)}}},o?700:300),i=l=>{let m=l.target;vc(m)||mf(n)},s=l=>{let m=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=Ue.getPressedKeyCodes();if(p.length>1&&Ue[m]&&(df=Date.now(),ru=!1),p.length===1&&Ue[m]){let f=Date.now();ru=!0,nr&&clearTimeout(nr),nr=setTimeout(()=>{let g=df-f;g>0&&g<=150?ru=!1:i(l),nr=void 0},150)}};if(ar.push(()=>{nr&&clearTimeout(nr)}),r)return;Tc("mousemove",u,t),ar.push(()=>{t.removeEventListener("mousemove",u)});function c(){bc=!1,yc=0,u.cancel()}if(o)Tc("blur",c,t),ar.push(()=>{t.removeEventListener("blur",c)});else{let l=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",m=["ctrl","alt","shift","cmd","command","option","control"];Tc("keyup",gf,t),ar.push(()=>{t.removeEventListener("keyup",gf)}),m.includes(l)?Ue("*","mouseHover",s):Ue(a.generalRule.mouseHoverHoldKey,"mouseHover",i),Ue.setScope("mouseHover"),ar.push(()=>{Ue.deleteScope("mouseHover")})}}function ST(){ar.forEach(e=>e()),ar=[]}function gf(e){ru=!1}function Tc(e,t,n=window){return n.addEventListener(e,t,{signal:kT})}function mf(e,t,n=window){if(t=t||hf(e.rule,n),!t){j.debug("can not find selection part!");return}if(vc(t)){j.debug("exclude dom");return}n3(e,t);let a=$i();a?.currentUrl!==window.location.href&&(da(),jl(e)),a&&(a.setupMouseHoverListener=gs);let r=xn(e);r.excludeSelectors=[],r.selectors=[];let o=!1;Fa({id:a.id,container:t,filterRule:r,force:!0,onParagraph:u=>{eu(a,u,!0).then(i=>{if(i&&!o){o=!0;let s=Date.now();$e(Pg,s),et("mouse_hover_translate",[{name:"mouse_hover_translate"}],{...e,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function hf(e,t){return AT(Ec,Cc,e,t)}function AT(e,t,n,a){let r=im(e,t,n,a);if(r==null)return;let o=()=>{let s=a.document.elementFromPoint(e,t);if(!s)return;let c=sm(s,e,t);return c===s?s.nodeName==="BUTTON"?s:void 0:ff(c,n)},u=()=>{try{r.setStartBefore(r.startContainer),r.setEndAfter(r.startContainer)}catch(c){j.debug("get mouse over word fail",c)}let s=r.getBoundingClientRect();if(!(s.left>e||s.rightt||s.bottomn[l]=[l,...n[l]||[]]);let a=t.inputStartingTriggerKeyAlias[t.inputStartingTriggerKey]||[];a.includes(t.inputStartingTriggerKey)||a.unshift(t.inputStartingTriggerKey),n[t.inputTargetLanguage]=[...a,...n[t.inputTargetLanguage]];let r=t.inputTrailingTriggerKeyTimeout;fn().any&&(r=t.inputTrailingMobileTriggerKeyTimeout);let o={triggerTimes:t.inputTrailingTriggerKeyRepeatTimes,triggerKey:t.inputTrailingTriggerKey,triggerTimeout:r,codePrefix:t.inputStartingTriggerKey,codeAlias:n,flatAlias:Object.values(n).flat(),codePrefixAlias:t.inputStartingTriggerKeyAlias},u=0,i=Date.now();ms&&self.removeEventListener("keydown",ms),ms=s,self.addEventListener("keydown",ms);function s(l){if(eo||ps===!1)return;let m=l,p=m.target||m.srcElement,f=p?.tagName;(p?.isContentEditable||f=="INPUT"||f=="SELECT"||f=="TEXTAREA")&&(KT(l,o.triggerKey,o.codePrefixAlias)?c(l):u=0)}async function c(l){Date.now()-i=o.triggerTimes&&FT()&&(u=0,PT(l,e,o))}$T(e)}function DT({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let a=[],r=n[e]||[];r.includes(e)||r.unshift(e);for(let o of r){let u=t.map(i=>{let s=o+i;return r.includes(i)||(s+=" "),s});a.push(...u)}return new RegExp(a.join("|"))}function yf(e,t){for(let[n,a]of Object.entries(t))if(a.includes(e))return n;return""}var to;function LT(e){let t=e.parentElement;if(!t)return;to=document.createElement("div"),to.className=X+"-input",to.innerHTML=`
`,t.appendChild(to);let n=t,a=!1;do{let r=getComputedStyle(n).position;if(["fixed","absolute","relative"].includes(r)){a=!0;break}n=n.parentElement}while(n);if(n=t,!a)do{if(getComputedStyle(n).position==="static"){n.style.position="relative";break}n=n?.parentElement||null}while(n)}function MT(){to&&to.remove()}async function PT(e,t,n){if(!eo)try{let p=function(){i=t.config.inputTargetLanguage;let g=u.split(" ")[0];g&&g[0]&&(g=g[0].toLowerCase()+g.slice(1)),g.trim()&&n.flatAlias.includes(g)?(i=yf(g,n.codeAlias),o=u.slice(g.length+1)):o=u},f=function(){i="";let g=DT(n),y=u.split(g);if(y.length<2)return;if(o=y[y.length-1],r=y[0],y.length>2){let b=u.lastIndexOf(o),S=u.slice(0,b).lastIndexOf(y[y.length-2]);r=u.slice(0,S+y[y.length-2].length)}if(r.endsWith(n.codePrefix))return;let v=u.slice(r.length+1,u.indexOf(o)).trim();if(i=yf(v,n.codeAlias),!i){j.warn("not found alias",v);return}},a=document.activeElement;eo=!0;let r="",o="",u=no(a)||"",i=t.config.inputTargetLanguage;n.codePrefix==="none"?p():(f(),!i&&t.config.enableInputTranslationWithoutTriggerKey&&p());let s=BT(o,n),c=await it({text:s,pageLangs:["en"]});j.debug("translateContent",s,c);let l={text:s||"",id:0,from:c,to:i,url:"https://google.com",fromByClient:c};if(!l.text)return;if(t.config.isShowInputTranslationConsent&&!bf){bf=!0;let g=await GT(t);if(e.target&&e.target.focus(),g==="open_settings"){Zr(!0,"#input");return}else if(g==="open_learn_more"){es("https://immersivetranslate.com/docs/input/");return}else if(g==="disable_once"||g==="disable_forever"){if(ps=!1,g==="disable_forever"){let y=await vn();y.enableInputTranslation=!1,y.isShowInputTranslationConsent=!1,await Cn(y)}else if(g==="disable_once"){let y=await vn();y.isShowInputTranslationConsent=!1,await Cn(y)}return}else if(g==="close_disable_once"||g==="close_disable_forever"){if(ps=!1,g==="close_disable_forever"){let y=await vn();y.enableInputTranslation=!1,y.isShowInputTranslationConsent=!1,await Cn(y)}return}else if(g==="enable"){let y=await vn();y.enableInputTranslation=!0,y.isShowInputTranslationConsent=!1,await Cn(y)}else if(g==="close_enable"){let y=await vn();y.enableInputTranslation=!0,await Cn(y)}}LT(a),$e(I0,Date.now());let m=await ca(l,{...t,translationService:t.inputTranslationService});WT(t),qT(a,r+m.text),eo=!1}catch(a){throw eo=!1,a}finally{eo=!1,MT()}}function FT(){let e=document.activeElement;if(!e)return!1;if(fs(e)){let t=e.selectionStart||0,n=e.value.length,r=e.value.split(` -`).reverse()[0].trim(),o=n<=t;return j.debug("cursorPosition",t,"textLength",n),j.debug("input isTail",o,"tailHasText",r),o&&!!r}else{let t=window.getSelection();if(!t)return j.debug("No active selection found."),!1;if(t.rangeCount>0){let n=t.getRangeAt(0),a=n.startContainer;if(a.nodeType===Node.TEXT_NODE){let r=_T(a,e);j.debug("Current text node:",a.textContent),j.debug("Cursor position within text node:",n.startOffset);let o=a.textContent?.length===n.startOffset&&r,u=a.textContent?.trim();return j.debug("editdiv isTail",o,"tailHasText",u),o&&!!u}else j.debug("Cursor is not within a text node.")}}return!1}function _T(e,t){let n;function a(r){if(r.nodeType===Node.TEXT_NODE)n=r;else for(let o of r.childNodes)a(o)}return a(t),n==e}function BT(e,t){let{triggerTimes:n,triggerKey:a}=t,r=0,o=" ";a.length==1?(r=n,o=a):a.toLowerCase()=="space"&&(r=n);let u=e.length;for(let i=e.length-1;i>=e.length-r;i--){if([10,8629].includes(e[i].charCodeAt(0))){u--;continue}if(![...t.codePrefixAlias[a]||[],o].includes(e[i]))break;u--}return e.length-u<3&&[".","\u3002"].includes(e[u-1])&&u--,e.slice(0,u)}function RT(e,t){let n=t.innerHTML,a=no(t);return{html:n.replace(a,e),text:e}}function Tf(e,t,n=!1){let a=no(t);return n?a.trim().endsWith(e.text.trim()):a.trim()==e.text.trim()}function no(e){return e.value||e.innerText||e.textContent}async function rr(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function IT(e,t,n){await rr(10);let a=new DataTransfer;e.forEach(r=>{r==="plain"&&a.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:a,bubbles:!0,cancelable:!0})),a.clearData(),await rr(10)}async function OT(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await rr(10))}async function NT(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await rr(20),(t.value||t.value==="")&&(t.value=e.text)}async function UT(e,t){fs(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await rr(20))}var jT=[IT.bind(null,["plain"])];function zT(e){let t;fs(e)?t=new InputEvent("beforeinput",{bubbles:!0,cancelable:!0,inputType:"deleteContent"}):t=new KeyboardEvent("keydown",{bubbles:!0,cancelable:!0,keyCode:8,which:8,location:0,key:"Backspace"}),e.dispatchEvent(t)}function fs(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function HT(e){if(fs(e))return;e.focus();let t=window.getSelection();if(!t)return;let n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}async function qT(e,t){await HT(e),await rr(50);let n=RT(t,e);zT(e),j.debug("clearContent",no(e)),await rr(50);for(let a of[...jT,NT,UT,OT])if(await a(n,e),j.debug("setContent",a.name,Tf(n,e),no(e),n),Tf(n,e))break}function WT(e){et("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage}}],e)}function KT(e,t,n){let a="";e&&e.code&&(a=e.code.toLowerCase());let r="";e&&e.key&&(r=e.key.toLowerCase());let o=e.keyCode,u=n[t]||[];return o===229&&t!=="space"?!1:!!(u.includes(a)||u.includes(r)||a===t||r===t)}async function $T(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await Ht(t,"")||Number(await Ht(I0,0))>0)return;let r=e.rule.inputTutorialsSelectors,o=e.rule.inputTutorialsText;if((r?.length||0)>0&&o)for(let u=0;u{YT()},100),new Promise(c=>{let l=c;if(o){let E=o.querySelector(`.${n}`),T=o.querySelector(`.${r}`),w=o.querySelector(`.${a}`)}else{o=document.createElement("div"),o.className=t+" notranslate",o.id=t;let E=document.createElement("div");E.className=X+"-modal-content notranslate",o.appendChild(E);let T=document.createElement("span");T.textContent="\xD7",T.className=X+"-close",E.appendChild(T),u=document.createElement("div"),u.className=n+" notranslate",E.appendChild(u),s=document.createElement("div"),s.className=a+" notranslate",E.appendChild(s),i=document.createElement("div"),i.className=r,E.appendChild(i),document.body.appendChild(o),T.onclick=function(){A(),c("close")},window.onclick=function(w){w.target==o&&(o.style.display="none",c("close"))}}document.addEventListener("keydown",x);let m=VT.bind(null,e);u.innerHTML=`
${Yi} ${m("modalEnableInputTranslationTitle")}
`,s.innerHTML="";let p=document.createElement("p");p.innerHTML=m("modalEnableInputTranslationDesc",{1:"https://immersivetranslate.com/docs/input/"}),p.style.cssText="margin-bottom:12px",s.appendChild(p);let f=document.createElement("div");f.style.cssText="margin-bottom: 12px;",f.innerHTML=Ne.sanitize(m("disableInputTranslationTips",{option:`${m("option")}`,learnMore:`${m("learnMore")}`})),s.appendChild(f);let g=[{id:"enable-search-enhancement",value:"enable",text:m("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:m("disableOnce")},{id:"disable-global",value:"global",text:m("disableGlobal")}];for(let E=0;E{Ra({sentences:r},{...e,translationService:"google"},(s,c,l)=>{if(s)return u([]);let m=c?.id||0,p=n[m];p&&p.className==X+"-search-title-wrapper"&&(p.innerHTML+=Ne.sanitize(`
${c?.text}
`,{ADD_ATTR:["target"]}))})})}function hs(e,t,n){t&&et(t.key,[{name:t.key}],{...e,sourceLanguage:t.sourceLanguage||n})}function wc(e,t,n,a){let r=n.querySelectorAll('[translate="true"]');return JT(e,t,[...r],a),n}async function kc(e,t){let a=(await se({url:QT(e),method:"GET",responseType:"raw",headers:{"cache-control":"no-cache","content-type":"application/xml","Sec-Fetch-Site":"none",accept:"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}})).body,o=new DOMParser().parseFromString(a,"text/xml"),u=[],i=o.querySelectorAll("item");for(let s=0;s${e.cancelDescription}
`:""} +`;continue}else if(y.length>t){let b=[];ll(y,t,b);for(let S=0;S0&&m{let i=e.lastIndexOf(u,t);return i>o?i:o},-1);if(r===-1){let o=e.slice(0,t);if(o&&!o.trim())return;n.push({text:o,prefix:"",suffix:""}),e.length>t&&ll(e.slice(t),t,n)}else{let o=e.slice(0,r+1);if(o&&o.trim()==="")return;o.startsWith(" ")?n.push({text:o.slice(1),prefix:" ",suffix:""}):n.push({text:o,prefix:"",suffix:""}),r+10){l.forEach(m=>{c.length>0&&m.providers&&m.providers.length>0&&!m.providers.includes(s)||(m.optional?p.push(m):g.push(m))});let f=p.concat(g).filter(m=>m.required);if(f.length>0){for(let m of f)if(!r[m.name]){i=!1;break}}}return{...a,id:t,selected:n[e]===t,ok:i,currentProvider:s,config:r,providers:a.providers||[],props:a.props||[],allProps:l,optionalProps:p,explicitProps:g}}var Ei=(e,t)=>{let{config:n}=e,a=n.alpha,r=n.beta,o=n.canary,u=n.debug,i=e.user,s=Xt(i);return Object.keys(Mn).filter(l=>{let g=Mn[l];if(l.startsWith("mock"))return u?!0:l===e.config[t];if(l===e.config[t])return!0;if(l==="openai"&&ot())return e.config.showOpenaiOnSafari||s?!0:!!(r||a||o||s);let p=!!g.canary,f=!!g.alpha,m=!!g.beta;return l===e[t]||p&&o||f&&(a||o)||m&&(r||a||o)?!0:!f&&!m&&!p}).map(l=>cl(t,l,e))};function Fn(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}h();h();h();h();h();h();h();h();h();var uk=Km(2),Wm=Km(3);function Km(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return t;function t(n){let a=[];if(n==null)return a;let r=typeof n.slice=="function"?n:String(n),o=r.length-e+1;if(o<1)return a;for(;o--;)a[o]=r.slice(o,o+e);return a}}h();var V9=/\s+/g,Y9=/[\t\n\v\f\r ]+/g;function $m(e,t){t?typeof t=="string"&&(t={style:t}):t={};let n=t.preserveLineEndings?J9:Q9;return String(e).replace(t.style==="html"?Y9:V9,t.trim?Z9(n):n)}function J9(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function Q9(){return" "}function Z9(e){return t;function t(n,a,r){return a===0||a+n.length===r.length?"":e(n)}}var Gm={}.hasOwnProperty;function X9(e){return e==null?"":$m(String(e).replace(/[\u0021-\u0040]+/g," ")).trim().toLowerCase()}function eb(e){return Wm(" "+X9(e)+" ")}function tb(e){let t=eb(e),n={},a=-1;for(;++an&&(n=o,a=r)}return[a,n]}function sb(e,t){let n=e.match(t);return(n?n.length:0)/e.length||0}function lb(e,t,n,a){t=db(t,n,a);let r=[],o;if(t)for(o in t)Ci.call(t,o)&&r.push([o,cb(e,t[o])]);return r.length===0?gl():r.sort(gb)}function cb(e,t){let n=0,a=-1;for(;++at.traditionalCharacters?(t.detectedCharacters="simplified",t.detectionRate=t.simplifiedCharacters/t.traditionalCharacters|1):t.simplifiedCharactersu+i.length,0));let o=e.length-a;for(let u of Cb){let i=u[1],s=u[0],c=e.match(i),l=c?c.length:0;l>n&&(n=l,t=s)}return n*2.5/o>.5?t==="zh-CN"?tp(e)?"zh-TW":"zh-CN":t:"auto"}var ap=[["afr","af"],["amh","am"],["arb","ar"],["azj","az"],["bel","be"],["bul","bg"],["ben","bn"],["bos","bs"],["cat","ca"],["ceb","ceb"],["ces","cs"],["dan","da"],["deu","de"],["ell","el"],["eng","en"],["epo","eo"],["spa","es"],["est","et"],["fas","fa"],["fin","fi"],["fra","fr"],["gax","ga"],["glg","gl"],["guj","gu"],["hau","ha"],["heb","he"],["hin","hi"],["hrv","hr"],["hun","hu"],["hye","hy"],["ind","id"],["ibo","ig"],["ita","it"],["jpn","ja"],["jav","jw"],["kat","ka"],["kaz","kk"],["khm","km"],["kan","kn"],["kor","ko"],["ckb","ku"],["lao","lo"],["lit","lt"],["lav","lv"],["min","mi"],["mkd","mk"],["mal","ml"],["mar","mr"],["mya","my"],["nep","ne"],["nld","nl"],["nob","no"],["nya","ny"],["pan","pa"],["pol","pl"],["pbu","ps"],["por","pt"],["ron","ro"],["rus","ru"],["sin","si"],["slk","sk"],["slv","sl"],["sna","sn"],["som","so"],["als","sq"],["srp","sr"],["sun","su"],["swe","sv"],["swh","sw"],["tam","ta"],["tel","te"],["tgk","tg"],["tha","th"],["toi","to"],["tur","tr"],["ukr","uk"],["urd","ur"],["uzn","uz"],["vie","vi"],["xho","xh"],["ydd","yi"],["yor","yo"],["cmn","zh-CN"],["zul","zu"]],ml=new Map(ap),vb=new Map(ap.map(([e,t])=>[t,e]));function rp(e,t,n=["en"]){if(!e)return"auto";let a=n.map(i=>vb.get(i));!t&&t!==0&&(t=25);let r=wi(e);if(r!=="auto")return r;let o={minLength:t,whitelist:[...ml.keys()]},u=Jm(e,o);if(u&&u.length>0){for(let[l,g]of u)if(a.includes(l)&&g>.5)return ml.get(l);let[i,s]=u[0],c=ml.get(i);if(c&&s>.5)return c}return"auto"}h();h();function Da(e,t){var n=(e&65535)+(t&65535),a=(e>>16)+(t>>16)+(n>>16);return a<<16|n&65535}function wb(e,t){return e<>>32-t}function Si(e,t,n,a,r,o){return Da(wb(Da(Da(t,e),Da(a,o)),r),n)}function Rt(e,t,n,a,r,o,u){return Si(t&n|~t&a,e,t,r,o,u)}function It(e,t,n,a,r,o,u){return Si(t&a|n&~a,e,t,r,o,u)}function Ot(e,t,n,a,r,o,u){return Si(t^n^a,e,t,r,o,u)}function Nt(e,t,n,a,r,o,u){return Si(n^(t|~a),e,t,r,o,u)}function ki(e,t){e[t>>5]|=128<>>9<<4)+14]=t;var n,a,r,o,u,i=1732584193,s=-271733879,c=-1732584194,l=271733878;for(n=0;n>5]>>>t%32&255);return n}function pl(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(e.charCodeAt(t/8)&255)<16&&(a=ki(a,e.length*8)),n=0;n<16;n+=1)r[n]=a[n]^909522486,o[n]=a[n]^1549556828;return u=ki(r.concat(pl(t)),512+t.length*8),op(ki(o.concat(u),512+128))}function up(e){var t="0123456789abcdef",n="",a,r;for(r=0;r>>4&15)+t.charAt(a&15);return n}function fl(e){return unescape(encodeURIComponent(e))}function ip(e){return kb(fl(e))}function Ab(e){return up(ip(e))}function sp(e,t){return Sb(fl(e),fl(t))}function Db(e,t){return up(sp(e,t))}function La(e,t,n){return t?n?sp(t,e):Db(t,e):n?ip(e):Ab(e)}var Nr=[];async function Jo(e,t){return await new Promise((n,a)=>{let r=e,o=1,u=indexedDB.open(r,o);u.onsuccess=i=>{n(u.result)},u.onerror=i=>{a()},u.onupgradeneeded=i=>{let s=u.result,c=t||"cache";s.createObjectStore(c,{keyPath:"key"})}})}async function hl(e){let t=`${Z}-${e.service}@${e.from}->${e.to}`;return await Mb(t,e)}async function bl(e){let t=La(e.originalText),n=`${Z}-${e.service}@${e.from}->${e.to}`;return await Lb(n,t)}async function Lb(e,t){let n=await Jo(e);return await new Promise((a,r)=>{if(!n)return r();let o="cache",i=n.transaction([o],"readonly").objectStore(o).get(t);i.onsuccess=s=>{n.close();let c=i.result;a(c)},i.onerror=s=>{n.close(),r()}})}async function Mb(e,t){let n=await Jo(e);return(await yl()).includes(e)||await Pb(e),await new Promise(r=>{if(!n)return r(!1);let o="cache",i=n.transaction([o],"readwrite").objectStore(o).put(t);i.onsuccess=s=>{n.close(),r(!0)},i.onerror=s=>{n.close(),r(!1)}})}async function Pb(e){let t="cache_list",n=await Jo(Z+"-cacheList",t),r=n.transaction([t],"readwrite").objectStore(t).put({key:e});r.onsuccess=o=>{n.close(),Nr.push(e)},r.onerror=o=>{n.close()}}async function yl(){if(Nr&&Nr.length>0)return Nr;let e=await Jo(Z+"-cacheList","cache_list");return Nr=await new Promise(t=>{let n="cache_list",r=e.transaction([n],"readonly").objectStore(n).getAllKeys();r.onsuccess=o=>{e.close(),t(r.result)},r.onerror=o=>{e.close(),t([])}}),Nr}async function Tl(){try{let e=[];(await yl()).forEach(a=>{e.push(Fb(a))});let n=await Promise.all(e);return Vo(n.reduce((a,r)=>a+r,0))}catch{return Vo(0)}}async function Fb(e){let t=await Jo(e),a=[...t.objectStoreNames].reduce((u,i)=>{let s=_b(t,i);return u.push(s),u},[]),r=await Promise.all(a);return t.close(),r.reduce((u,i)=>u+i,0)}async function _b(e,t){return await new Promise((n,a)=>{if(e==null)return a();let r=0,o=e.transaction([t]).objectStore(t).openCursor();o.onsuccess=u=>{let i=o.result;if(i){let s=i.value,c=JSON.stringify(s);r+=c.length,i.continue()}else n(r)},o.onerror=u=>a("error in "+t+": "+u)})}async function lp(){try{let t=(await yl()).map(a=>Bb(a));return!!(await Promise.all(t)).every(a=>a)}catch{return!1}}async function Bb(e){return await new Promise(t=>{let n=indexedDB.deleteDatabase(e);n.onsuccess=()=>{t(!0)},n.onerror=a=>{t(!1)}})}h();h();h();var cp="G-MKMD9LWFTR";async function et(e,t,n){try{let a=Ke();if(a.INSTALL_FROM==="firefox_store")return;let o=me(),u=pt(),i=a.PROD==="1",s=`report_${e}`,c=e.endsWith("_daily");if(c){if(u)return;let T=await ia(s,0),w=Ai(new Date(T)),C=Date.now(),I=Ai(new Date(C));if(w===I)return;await _m(s,C)}else if(!n.config.telemetry)return;let l="sitc4WmvShWYwfU0dANM3Q",g=await Ht("fakeUserId","");g||(g=await ia("fakeUserId",""),g&&await $e("fakeUserId",g));let p=hn(),f=new Date,m=await Ht("installedAt","");m||(m=await ia("installedAt",""),m&&await $e("installedAt",m)),g?m||(m=new Date(0).toISOString(),await $e("installedAt",m)):(g=Rb(32),await $e("fakeUserId",g)),m||(m=f.toISOString(),await $e("installedAt",m));let y=new Date(m),v=Ai(y),b=Ai(f),S=v===b,A=f.getTime()-y.getTime()<7*24*60*60*1e3,N=`https://www.google-analytics.com/mp/collect?measurement_id=${cp}&api_secret=${l}`;i||(N=`https://www.google-analytics.com/debug/mp/collect?measurement_id=${cp}&api_secret=${l}`);let _=vr.parse(window.navigator.userAgent),x=t.map(T=>{let w=T.params||{};if(_.os&&(w.os_name=_.os.name||"unknown",w.os_version=_.os.version||"unknown",w.os_version_name=_.os.versionName||"unknown"),_.browser&&(w.browser_name=_.browser.name||"unknown",w.browser_version=_.browser.version||"unknown"),_.platform&&(w.platform_type=_.platform.type||"unknown"),_.engine&&(w.engine_name=_.engine.name||"unknown",w.engine_version=_.engine.version||"unknown"),n.translationService&&(w.translation_service||(w.translation_service=n.translationService),n.config.translationServices&&n.config.translationServices[n.translationService]&&(n.config.translationServices[n.translationService].provider&&(w.translation_service_provider=n.config.translationServices[n.translationService].provider),n.translationService==="openai"&&n.config.translationServices[n.translationService].provider==="custom"&&(n.config.translationServices[n.translationService].apiUrl?n.config.translationServices[n.translationService].apiUrl.startsWith("https://api.openai.com/")?w.openai_is_official="1":w.openai_is_official="0":w.openai_is_official="1"))),n.targetLanguage&&(w.target_language=n.targetLanguage),n.config.interfaceLanguage&&(w.interface_language=n.config.interfaceLanguage),n.config.enableDefaultAlwaysTranslatedUrls?w.enable_default_always_translated_urls=n.config.enableDefaultAlwaysTranslatedUrls?"1":"0":w.enable_default_always_translated_urls="0",p&&(w.version=p),n.config.enableInputTranslation?w.enable_input_translation=n.config.enableInputTranslation?"1":"0":w.enable_input_translation="0",n.config.translationTheme&&(w.translation_theme=n.config.translationTheme),n.config.alpha&&(w.alpha=n.config.alpha.toString()),n.config.translationLanguagePattern&&n.config.translationLanguagePattern.matches?.length>0?w.always_translate_languages=n.config.translationLanguagePattern.matches.join(","):w.always_translate_languages="none",a.INSTALL_FROM&&(w.install_from=a.INSTALL_FROM),n.config.beta&&(w.beta=n.config.alpha.toString()),n.config.translationArea&&(w.translation_area=n.config.translationArea),n.rule&&n.rule.enableSearchEnhancement!==void 0&&(w.enable_search_enhancement=n.rule.enableSearchEnhancement?"1":"0"),v&&(w.install_day=Ib(y)),n.user){let I=dm(n.user);I&&Object.keys(I).forEach(M=>{w[M]=I[M]})}else w.user_type="anonymous";n.config.translationMode&&(w.translation_mode=n.config.translationMode),w.userscript=o.toString(),S?w.is_new_user_today="1":w.is_new_user_today="0",A?w.is_new_user_this_week="1":w.is_new_user_this_week="0",n.config.tempTranslateDomainMinutes?w.temp_translate_domain_minutes=n.config.tempTranslateDomainMinutes.toString():w.temp_translate_domain_minutes="0";let C="html";if(n.rule.isEbook?C="ebookReader":n.rule.isPdf?C="pdfReader":n.rule.isEbookBuilder?C="ebookBuilder":n.rule.isSubtitleBuilder&&(C="subtitleBuilder"),w.page_type=C,u?w.main_frame=0:w.main_frame=1,!c){let I=n.url;try{let M=new URL(I);w.site_host=M.hostname}catch{w.site_host="unknown"}n.sourceLanguage&&(w.source_language=n.sourceLanguage)}return{...T,params:w}}),E=await se({responseType:"text",url:N,method:"POST",body:JSON.stringify({client_id:g,user_id:g,events:x})})}catch{}}function Rb(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;rt.removeEventListener("message",n)),e.length=0}function jb(e,t,n,a){return new Promise(r=>{let o=u=>{let i=u.data;Nb(t,n,i)&&i.id===a&&(e.removeEventListener("message",o),r(i.response))};e.addEventListener("message",o)})}function zb(e,t,n,a){let r=o=>{let u=o.data;fp(t,"tell",n,u)&&a(u.body)};return e.addEventListener("message",r),[e,r]}function dp(e,t,n,a,r,o){let u=async i=>{let s=i.data;if(fp(n,"ask",a,s)){let c=await o(s.body);t=i.source,t.postMessage(Ob(n,a,s.id,c),i.origin)}};return e.addEventListener("message",u),[e,u]}function Hb(e,t,n,a,r){let o=Math.random().toString();return e.postMessage(pp(t,"tell",n,o,a),r)}async function gp(e,t,n,a,r,o,u){let i=Math.random().toString(),s=new Promise(async(c,l)=>{let g=setTimeout(()=>l(new Error(`Failed to get response within ${u}ms`)),u),p=await jb(e,n,a,i);clearTimeout(g),c(p)});return t.postMessage(pp(n,"ask",a,i,r),o),s}var Pa=class e{constructor(t,n,a=window,r="*"){this.protocol=t;this.targetWindow=n;this.thisWindow=a;this.targetOrigin=r;dp(a,n,this.getSystemProtocol("ping"),"ping",r,()=>Promise.resolve({}))}static async connect(t,n=10,a=500){for(let r=0;r<=n;r++)try{return await t.ping({timeout:a}),t}catch{continue}throw new Error(`Could not connect on protocol ${t.protocol.type} after ${n*a}ms`)}static parent(t,n,a="*",r=window){let o=n.contentWindow;if(Ma(o))return new e(t,o,r,a);throw new Error("iframe.contentWindow was null")}static iframe(t,n="*",{thisWindow:a=window,targetWindow:r=window.parent}={}){return new e(t,r,a,n)}static rootIframe(t,n="*",{thisWindow:a=window}={}){return new e(t,null,a,n)}getSystemProtocol(t){return{type:`system|${t}`}}listeners=[];async ping({timeout:t=1e4}){await gp(this.thisWindow,this.targetWindow,this.getSystemProtocol("ping"),"ping",{data:{},payload:{}},this.targetOrigin,t)}handleTell(t,n){this.listeners.push(zb(this.thisWindow,this.protocol,t,n))}tell(t,n){Hb(this.targetWindow,this.protocol,t,n,this.targetOrigin)}handleAsk(t,n){this.listeners.push(dp(this.thisWindow,this.targetWindow,this.protocol,t,this.targetOrigin,n))}ask(t,n,a=1e4){if(this.targetWindow)return gp(this.thisWindow,this.targetWindow,this.protocol,t,n,this.targetOrigin,a);throw new Error("target window is requried")}destroy(){Ub(this.listeners)}};var hp;async function bp(){if(pt()){let t=globalThis;for(;t.top!=t.self;)t=t.top;let n=Pa.iframe(ti,"*",{targetWindow:t});hp=n,await Pa.connect(n).catch(a=>{j.error("connect with parent frame error",a)})}}function Di(){return hp}h();function yp(e,t){let n=t.matches||[],a=t.excludeMatches||[];if(a&&!Array.isArray(a)&&(a=[a]),n&&!Array.isArray(n)&&(n=[n]),a.length>0){if(a.includes(e)||a.includes(""))return!1;for(let r of a)if(r.includes("*")&&new RegExp(r).test(e))return!1}if(n.length===0)return!1;if(n.length>0){if(n.includes(e)||n.includes(""))return!0;for(let r of n)if(r.includes("*")&&new RegExp(r).test(e))return!0}return!1}h();h();var qb=["block","grid","flex","table","table-row","table-cell","list-item","-webkit-box","box","contents"];function _n(e,t){if(t.length===0)return!1;let n=t.join(",");return e.matches&&e.matches(n)||!1}function xl(e,t,n){let{blockSelectors:a,extraBlockSelectors:r,extraInlineSelectors:o}=t;if(_n(e,o))return!1;if(_n(e,r)||e.nodeName.toLowerCase()==="br")return!0;let s=null;return e.parentNode&&e.parentNode.immersiveTranslateComputedStyle&&(s=e.parentNode.immersiveTranslateComputedStyle),s&&s.display&&s.display==="inline-flex"?!1:n&&n.display?!!qb.includes(n.display):_n(e,a)}var qt=_n;function nr(e){return!!e.shadowRoot}function Fa(e){if(!e||typeof e!="string"&&(e=e.textContent,!e))return"";let t="";return e!==e.trimStart()&&(t+=" "),t+=e.trim(),t===" "||e!==e.trimEnd()&&(t+=" "),t}function Qo(e){if(!e)return["",""];if(typeof e!="string"&&(e=e.textContent,!e))return["",""];let t=[];return e!==e.trimStart()?t.push(" "):t.push(""),!e.trim()&&t.length===1?[" ",""]:(e!==e.trimEnd()?t.push(" "):t.push(""),t)}function Li(e){let t=Ga;return e&&(t=e),t}function Mi(e,t){return Aa(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})}function Wb(e){let{rule:t}=e,n=e.config.loadingTheme;return` <${t.targetWrapperTag} class="${Z}-loading-${n} notranslate">`}function Zo(e,t){let n=e.rule,a=document.createElement(n.targetWrapperTag);a.classList.add("notranslate",un),a.setAttribute("translate","no"),a.setAttribute("lang",e.targetLanguage),ft(a,Bg,t.toString());let r=Wb(e);return a.append(Ne.sanitize(r,{RETURN_DOM_FRAGMENT:!0})),a}function Ur(e,t){return e.querySelector(`[${O0}='${t}']`)}function Tp(){document.querySelectorAll(`[${O0}]`).forEach(t=>{t.remove()})}function xp(){document.querySelectorAll(`.${un}-error`).forEach(t=>{t.remove()})}function Ep(){let e=document.querySelectorAll("iframe"),t=[];return e.forEach(n=>{_r(n)&&t.push(n)}),t}function Cp(e){let{noTranslateRegexp:t,minTextCount:n,minWordCount:a,delimiters:r,text:o}=e,u=new RegExp(`${r[0]}(\\d+)${r[1]}`,"gi");if(r.length>2){let s=r[2];u=new RegExp(`<${s}(\\d+)>(.*?)`,"gi")}let i=o.trim();return i=i.replace(u,""),i=i.trim(),i===""||i.length===1&&i.charCodeAt(0)===8203||/^[0-9.,\/#!$%\^&\*;:{}=\-_`~()\s]+$/.test(o)||i.includes("")||i.includes("< styles>")||um(i)||nm(i)||om(i)||am(i)||rm(i)||u.test(i)||t&&t.length>0&&new RegExp(t.join("|"),"gi").test(i)?!1:ri(o,n,a)}function Bn(e){return e.nodeType===Node.ELEMENT_NODE}function vp(e,t){return e.paragraphs?e.paragraphs[0]?.ctxId!==t?(e.paragraphs=[],!1):!0:!1}function wp(e){try{let t=Math.floor((new Date-new Date(e))/1e3);return t<60?`${t} \u79D2\u524D`:t<3600?`${Math.floor(t/60)} \u5206\u949F\u524D`:t<86400?`${Math.floor(t/3600)} \u5C0F\u65F6\u524D`:`${Math.floor(t/86400)} \u5929\u524D`}catch{return e}}function kp(e){let t=new Date(e),n=t.getFullYear(),a=t.getMonth()+1,r=t.getDate(),o=t.getHours(),u=t.getMinutes(),i=t.getSeconds();return`${n}/${a}/${r} ${o}:${u}:${i}`}async function Sp(e){let n=Ke().INSTALL_FROM,a=hn(),r=await Ht("installedAt",""),o=await Ht("fakeUserId","");return{installFrom:n,version:a,installedAt:r,interfaceLang:e,deviceId:o}}var Kb=1e5;function _a(e){let{onParagraph:t,filterRule:n,id:a}=e;n=$b(n);let{stayOriginalSelectors:r,globalStyles:o,selectors:u,isTransformPreTagNewLine:i,lineBreakMaxTextCount:s,globalAttributes:c,isModifyImage:l,skipEditableCheck:g}=n,p={commonAncestorContainer:e.container,rootNodes:[],flatNodes:[],_currentStacks:[],isPreWhitespace:!1},f=!1,m=null;function y(_){let{container:x,onFrame:E,onIgnoreElement:T,id:w}=_,C=document.createTreeWalker(x,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,D=>{let F=M(D);return F==NodeFilter.FILTER_ACCEPT?tn.mark(D,w,g):F==NodeFilter.FILTER_REJECT,F}),I=x;if(M(I)===NodeFilter.FILTER_REJECT)return;for(tn.mark(I,w,g);I;){if(u&&u.length>0){let{currentNode:D,isMatchedSelection:F}=v(C,I,u);if(D)I=D;else break;if(!F)continue}if(I.nodeType===Node.ELEMENT_NODE||I.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let D=I;if(D.nodeName==="IFRAME"){E&&E(D),b(),El(p,!0),I=C.nextNode();continue}D.nodeType===Node.ELEMENT_NODE&&(o&&vl(D,o),c&&kl(D,c));let F=xl(D,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},D.immersiveTranslateComputedStyle||null);if(qt(D,r)&&!F){S(D);let B=null;for(;!(B=C.nextSibling())&&C.parentNode(););I=B;continue}let U=nr(D);(!Ap(p,D)||F)&&(b(),D.childNodes.length>0&&A(p,D,D.immersiveTranslateComputedStyle||null)),U&&D.shadowRoot?.mode==="open"&&(F?E?.(D.shadowRoot):y({..._,container:D.shadowRoot})),D.nodeType===Node.ELEMENT_NODE&&D.nodeName==="PRE"&&i&&Jb(D)}else if(I.nodeType===Node.TEXT_NODE)S(I);else throw new Error("should not be here");I=C.nextNode(),p.commonAncestorContainer&&I&&I.parentNode===p.commonAncestorContainer&&(p._currentStacks=[]),p.commonAncestorContainer&&I&&I.nodeType===Node.ELEMENT_NODE&&p._currentStacks.push(I)}function M(D){if(D.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return NodeFilter.FILTER_ACCEPT;if(Bn(D)){if(c){let B=Object.keys(c);if(B.length>0&&qt(D,B))for(let L of B){let O=c[L];if(D.matches(L)){let K=c[L],H=Object.keys(K);for(let V of H){let q=K[V];D.getAttribute(V)!==q&&(q===null?D.removeAttribute(V):D.setAttribute(V,q))}break}}}if(!_.force&&tn.isMarked(D,w)||vp(D,w)||Sl(D,{excludeSelectors:n.excludeSelectors,selectors:n.selectors,stayOriginalSelectors:r})||D.nodeName==="IFRAME"&&!_r(D))return NodeFilter.FILTER_REJECT;let F=D.getBoundingClientRect(),{width:U,height:z}=F;if(D.nodeType===Node.ELEMENT_NODE){let B=window.getComputedStyle(D);if(D.immersiveTranslateComputedStyle={display:B.display,whiteSpace:B.whiteSpace,left:F.left+"px",right:F.right+"px",top:F.top+"px",bottom:F.bottom+"px"},wl(D.immersiveTranslateComputedStyle))return T&&T(D),NodeFilter.FILTER_REJECT;let k=xl(D,{blockSelectors:n.blockSelectors,extraInlineSelectors:n.extraInlineSelectors,extraBlockSelectors:n.extraBlockSelectors},D.immersiveTranslateComputedStyle||null);if(qt(D,r)&&k)return NodeFilter.FILTER_REJECT}return D.nodeName==="IMG"&&(U>48&&z>48?D.immersiveTranslateComputedStyle={display:"block"}:U>0&&z>0&&l!==!1&&(D.setAttribute("width",U),D.setAttribute("height",z))),!D.childNodes||D.childNodes&&D.childNodes.length===0?NodeFilter.FILTER_ACCEPT:!p.isPreWhitespace&&(U>0&&U<4||z>0&&z<4)&&(D.textContent?.trim().length||0)<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}else if(D.nodeType===Node.TEXT_NODE){let F=D.textContent?.trim();if(!F)return p.isPreWhitespace?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;let U=D.parentNode;if(U.getBoundingClientRect){let{width:z,height:B}=U.getBoundingClientRect();if(z>0&&z<4||B>0&&B<4)return NodeFilter.FILTER_REJECT}return s>0&&F.length>=s&&Cl(D,s),NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_REJECT}}y(e),p&&p.commonAncestorContainer&&p.flatNodes.length>0&&b();function v(_,x,E){let T=x.immersiveTranslateComputedStyle||null;if(m){if(!m.contains(x))if(f=!1,x&&x.nodeType===Node.ELEMENT_NODE)if(Pi(x,E))f=!0,m=x,b(),A(p,m,T);else return f=!1,x=_.nextNode(),{currentNode:x,isMatchedSelection:f};else return f=!1,x=_.nextNode(),{currentNode:x,isMatchedSelection:f}}else if(x&&x.nodeType===Node.ELEMENT_NODE)if(Pi(x,E))f=!0,m=x,b(),A(p,m,T);else return f=!1,x=_.nextNode(),{currentNode:x,isMatchedSelection:f};else return f=!1,x=_.nextNode(),{currentNode:x,isMatchedSelection:f};return{currentNode:x,isMatchedSelection:!0}}function b(){let _=Yb(p,a);_&&t&&t(_),El(p)}function S(_){if(!Ap(p,_)){b(),El(p);let x=_.parentNode;x&&A(p,x,x.computedStyle)}p.flatNodes.push(_)}function A(_,x,E){_.commonAncestorContainer=x;let T=N(E);_.isPreWhitespace=T}function N(_){return _&&_.whiteSpace&&_.whiteSpace.startsWith("pre")||_&&_.whiteSpace==="break-spaces"||!1}}function Ap(e,t){let n=!1;(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&(n=nr(t));let a=Vb(e),r=!0;return!n&&!a&&(e.commonAncestorContainer&&e.commonAncestorContainer.contains(t)?r=!0:e.commonAncestorContainer&&(r=!1,e._currentStacks=[])),r}function $b(e){let{isTransformPreTagNewLine:t}=e;return e.excludeSelectors=e.excludeSelectors.filter(n=>{let a=n!=="iframe";return t?a&&n!=="pre":a}),e}function Gb(e,t,n){if(t){for(let a of t.childNodes)if(a.contains(n))return a}return e._currentStacks.length>0?(e.commonAncestorContainer||(e.commonAncestorContainer=e._currentStacks[0]),e._currentStacks[0]):null}function vl(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let r of n){let o=t[r];if(e.matches(r)){let u=e.style.cssText||"";u&&(u=u.trim()),u&&!u.endsWith(";")&&(u+=";"),e.style.cssText=u+o;break}}}}function Vb(e){return e&&e._currentStacks?e._currentStacks.some(t=>nr(t)):!1}function Yb(e,t){let{flatNodes:n,commonAncestorContainer:a}=e;if(a&&n.length>0){if(!n.map(p=>p.textContent?.trim()||"").join(""))return null;if(n.length===1)return{ctxId:t,stepState:1,commonAncestorContainer:n[0].parentNode,rootNodes:[n[0]],flatNodes:n,isPreWhitespace:e.isPreWhitespace,variables:{}};let o=Qb(n,a);o||(o=a);let u=[];for(let p of n){let f=Gb(e,o,p);f&&(u.includes(f)||u.push(f))}if(u.length<1)return null;let i=u[0],s=u[u.length-1],c=[],l=i,g=0;for(;l&&(c.push(l),l!==s);){if(g++,g>Kb){j.warn("loop too many times for convert root nodes, break");break}l=l.nextSibling}return{ctxId:t,rootNodes:c,stepState:1,flatNodes:n,commonAncestorContainer:o,variables:{},isPreWhitespace:e.isPreWhitespace}}else return null}function El(e,t=!1){e.rootNodes=[],e.flatNodes=[],e._currentStacks=[],t&&(e.commonAncestorContainer=null)}function wl(e){let t=e.top?parseInt(e.top):0,n=e.left?parseInt(e.left):0,a=e.right?parseInt(e.right):0,r=e.bottom?parseInt(e.bottom):0;return isNaN(t)&&(t=0),isNaN(n)&&(n=0),isNaN(a)&&(a=0),isNaN(r)&&(r=0),e.display==="none"||t<-1e3||n<-1e3||a<-1e3||r<-1e3}var tn={_marked_key:"immersive_translate_walked",isMarked(e,t){return $0(e,this._marked_key,t)},clearMark(e){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||nr(e)))return ui(e,this._marked_key)},mark(e,t,n){if(!(!e||e.nodeType!==Node.ELEMENT_NODE)&&!(e instanceof HTMLIFrameElement||nr(e)))return ft(e,this._marked_key,t,!1,n)},markWalk(e,t,n){if(!e||e.nodeType!==Node.ELEMENT_NODE||this.isSkipMarkEle(e))return;let a=Pr(e,"markWalk")||"";return ft(e,"markWalk",a+","+t,!1,n)},isSkipMarkEle(e){return e?!!(e instanceof HTMLIFrameElement||nr(e)):!1}};function Jb(e){let n=e.innerHTML.replace(/\n\n/g,"
");e.innerHTML=Ne.sanitize(n)}function Qb(e,t){if(!e.length)return null;let n=e.map(a=>{let r=new Set;for(;(a=a.parentNode)&&(r.add(a),a!==t););return r});for(let a of n[0])if((a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE)&&n.every(r=>r.has(a)))return a;return null}function Cl(e,t){let n=e.textContent||"";if(n.trim().length<=t)return;let o=[". ","? ","! ","\u3002","\uFF1F","\uFF01"].reduce((u,i)=>{let s=n.lastIndexOf(i,t);return s>u?s:u},-1);if(o>1){let u=n[o-1]||"",i=n[o-2]||"",s=n[o+1]||"";u==="."||s==="."||s===")"||i==="."&&u==="S"||i.toUpperCase()==="M"&&(u.toUpperCase()==="R"||u.toUpperCase()==="S")?o=-1:isNaN(Number(u))||(o=-1)}if(o===-1)n.length>t+20&&Cl(e,t+20);else{let u=n.slice(o+1);o++,u.startsWith(" ")&&o++;let i=e.splitText(o),s=document.createElement("br");i.parentNode?.insertBefore(s,i),o+10)for(let a of n){let r=t[a],o=Object.keys(r),u=Zg(e,[a]);for(let i of u)for(let s of o){let c=r[s];i.getAttribute(s)!==c&&(c===null?i.removeAttribute(s):i.setAttribute(s,c))}}}function Lp(e,t,n,a,r,o){let u=Object.keys(t);if(u.length>0)for(let i of u){let s=t[i],c=Object.keys(s),l=e.querySelector(i);if(l)for(let g of c){let p=s[g];if(g==="translate"&&p==="no"){let m=l.innerText||l.textContent||"";if(!m.trim()||Zb(l,r,o)||!em(m,n,a))continue}l.getAttribute(g)!==p&&(p===null?l.removeAttribute(g):l.setAttribute(g,p))}}}function kl(e,t){if(t){let n=Object.keys(t);if(n.length>0&&qt(e,n))for(let r of n){let o=t[r];if(e.matches(r)){let u=t[r],i=Object.keys(u);for(let s of i){let c=u[s];e.getAttribute(s)!==c&&(c===null?e.removeAttribute(s):e.setAttribute(s,c))}break}}}}function Sl(e,t){return qt(e,t.excludeSelectors||[])?qt(e,t.selectors||[])?!1:!qt(e,t.stayOriginalSelectors||[]):!1}function Pi(e,t){if(t.length===0)return!1;let n=t.filter(a=>!a.endsWith("*")).map(a=>a+" *");return qt(e,t.concat(n))}function Zb(e,t,n){let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,r=>NodeFilter.FILTER_ACCEPT);for(;a.nextNode();){let r=a.currentNode;if(r.nodeType===Node.TEXT_NODE&&parent){let o=r.textContent||"";if(o.includes("Copyright"))continue;if(ri(o,t,n))return!0}}return!1}h();h();var Mp=["*://*/*","*","*://*"],Fp="immersive-translate-wildcard-placeholder.com";function Al(e,t){let n=[];if(!t||(t&&!Array.isArray(t)?n=[t]:n=t,n.length===0))return null;if(n.some(u=>Mp.includes(u)))return e;let a=new URL(e);a.hash="",a.search="";let r=a.href,o=a.hostname;if(n&&n.length>0){let u=n.find(i=>{let s=i;if(i===o)return!0;if(Mp.includes(i))return!0;if(!i.includes("*")&&i.includes("://")){try{let c=new URL(i);return c.pathname==="/"&&!i.endsWith("/")?c.hostname===o:ey(r,i)}catch{}return!1}else{let c,l=i;if(i.includes("://")){let v=i.split("://");c=v[0],c==="*"&&v.length>1&&(c="*",i="https://"+v[1])}else c="*",i="https://"+i;let g=i.replace(/\*/g,Fp),p;try{p=new URL(g)}catch{return j.debug("invalid match pattern",g,"raw match value:",l),!1}let f=p.hostname,m=p.pathname;m==="/"&&(l.replace("://","").includes("/")||(m="/*"));let y=Xb(c+":",Pp(f),Pp(m));if(y){let v=new URL(r);return v.port="",y.test(v.href)}else return!1}});if(u)return u}return null}function Pp(e){return e.replaceAll(Fp,"*")}function Xb(e,t,n){let a="^";return e==="*:"?a+="(http:|https:|file:)":a+=e,a+="//",t&&(e==="file:"||(t==="*"?a+="[^/]+?":(t.match(/^\*\./)&&(a+="[^/]*?",t=t.substring(2)),a+=t.replace(/\./g,"\\.").replace(/\*/g,"[^/]*")))),n?n==="*"||n==="/*"?a+="(/.*)?":n.includes("*")?(a+=n.replace(/\*/g,".*?"),a+="/?"):a+=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):a+="/?",a+="$",new RegExp(a)}function Gn(e,t){return Al(e,t)!==null}function ey(e,t){let n=new URL(e),a=new URL(t);return n.hostname===a.hostname&&n.pathname===a.pathname&&n.protocol===a.protocol&&n.port===a.port}h();h();var jr="input is invalid type",Dl=typeof window=="object",Ba=Dl?window:{};Ba.JS_SHA256_NO_WINDOW&&(Dl=!1);var ty=!Dl&&typeof self=="object",ny=!Ba.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;ny?Ba=global:ty&&(Ba=self);var BS=!Ba.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,RS=typeof define=="function"&&define.amd,Xo=!Ba.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",de="0123456789abcdef".split(""),ay=[-2147483648,8388608,32768,128],Rn=[24,16,8,0],Fi=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],_i=["hex","array","digest","arrayBuffer"],vt=[];(Ba.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"});Xo&&(Ba.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var _p=function(e,t){return function(n){return new wt(t,!0).update(n)[e]()}},Rp=function(e){var t=_p("hex",e);t.create=function(){return new wt(e)},t.update=function(r){return t.create().update(r)};for(var n=0;n<_i.length;++n){var a=_i[n];t[a]=_p(a,e)}return t},Bp=function(e,t){return function(n,a){return new Bi(n,t,!0).update(a)[e]()}},Ip=function(e){var t=Bp("hex",e);t.create=function(r){return new Bi(r,e)},t.update=function(r,o){return t.create(r).update(o)};for(var n=0;n<_i.length;++n){var a=_i[n];t[a]=Bp(a,e)}return t};function wt(e,t){t?(vt[0]=vt[16]=vt[1]=vt[2]=vt[3]=vt[4]=vt[5]=vt[6]=vt[7]=vt[8]=vt[9]=vt[10]=vt[11]=vt[12]=vt[13]=vt[14]=vt[15]=0,this.blocks=vt):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=e}wt.prototype.update=function(e){if(!this.finalized){var t,n=typeof e;if(n!=="string"){if(n==="object"){if(e===null)throw new Error(jr);if(Xo&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!Xo||!ArrayBuffer.isView(e)))throw new Error(jr)}else throw new Error(jr);t=!0}for(var a,r=0,o,u=e.length,i=this.blocks;r>2]|=e[r]<>2]|=a<>2]|=(192|a>>6)<>2]|=(128|a&63)<=57344?(i[o>>2]|=(224|a>>12)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<>2]|=(240|a>>18)<>2]|=(128|a>>12&63)<>2]|=(128|a>>6&63)<>2]|=(128|a&63)<=64?(this.block=i[16],this.start=o-64,this.hash(),this.hashed=!0):this.start=o}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}};wt.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=ay[t&3],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}};wt.prototype.hash=function(){var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,o=this.h5,u=this.h6,i=this.h7,s=this.blocks,c,l,g,p,f,m,y,v,b,S,A;for(c=16;c<64;++c)f=s[c-15],l=(f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3,f=s[c-2],g=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10,s[c]=s[c-16]+l+s[c-7]+g<<0;for(A=t&n,c=0;c<64;c+=4)this.first?(this.is224?(v=300032,f=s[0]-1413257819,i=f-150054599<<0,a=f+24177077<<0):(v=704751109,f=s[0]-210244248,i=f-1521486534<<0,a=f+143694565<<0),this.first=!1):(l=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),g=(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7),v=e&t,p=v^e&n^A,y=r&o^~r&u,f=i+g+y+Fi[c]+s[c],m=l+p,i=a+f<<0,a=f+m<<0),l=(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10),g=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),b=a&e,p=b^a&t^v,y=i&r^~i&o,f=u+g+y+Fi[c+1]+s[c+1],m=l+p,u=n+f<<0,n=f+m<<0,l=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),g=(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7),S=n&a,p=S^n&e^b,y=u&i^~u&r,f=o+g+y+Fi[c+2]+s[c+2],m=l+p,o=t+f<<0,t=f+m<<0,l=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),g=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),A=t&n,p=A^t&a^S,y=o&u^~o&i,f=r+g+y+Fi[c+3]+s[c+3],m=l+p,r=e+f<<0,e=f+m<<0;this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+a<<0,this.h4=this.h4+r<<0,this.h5=this.h5+o<<0,this.h6=this.h6+u<<0,this.h7=this.h7+i<<0};wt.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,o=this.h5,u=this.h6,i=this.h7,s=de[e>>28&15]+de[e>>24&15]+de[e>>20&15]+de[e>>16&15]+de[e>>12&15]+de[e>>8&15]+de[e>>4&15]+de[e&15]+de[t>>28&15]+de[t>>24&15]+de[t>>20&15]+de[t>>16&15]+de[t>>12&15]+de[t>>8&15]+de[t>>4&15]+de[t&15]+de[n>>28&15]+de[n>>24&15]+de[n>>20&15]+de[n>>16&15]+de[n>>12&15]+de[n>>8&15]+de[n>>4&15]+de[n&15]+de[a>>28&15]+de[a>>24&15]+de[a>>20&15]+de[a>>16&15]+de[a>>12&15]+de[a>>8&15]+de[a>>4&15]+de[a&15]+de[r>>28&15]+de[r>>24&15]+de[r>>20&15]+de[r>>16&15]+de[r>>12&15]+de[r>>8&15]+de[r>>4&15]+de[r&15]+de[o>>28&15]+de[o>>24&15]+de[o>>20&15]+de[o>>16&15]+de[o>>12&15]+de[o>>8&15]+de[o>>4&15]+de[o&15]+de[u>>28&15]+de[u>>24&15]+de[u>>20&15]+de[u>>16&15]+de[u>>12&15]+de[u>>8&15]+de[u>>4&15]+de[u&15];return this.is224||(s+=de[i>>28&15]+de[i>>24&15]+de[i>>20&15]+de[i>>16&15]+de[i>>12&15]+de[i>>8&15]+de[i>>4&15]+de[i&15]),s};wt.prototype.toString=wt.prototype.hex;wt.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,a=this.h3,r=this.h4,o=this.h5,u=this.h6,i=this.h7,s=[e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,n>>24&255,n>>16&255,n>>8&255,n&255,a>>24&255,a>>16&255,a>>8&255,a&255,r>>24&255,r>>16&255,r>>8&255,r&255,o>>24&255,o>>16&255,o>>8&255,o&255,u>>24&255,u>>16&255,u>>8&255,u&255];return this.is224||s.push(i>>24&255,i>>16&255,i>>8&255,i&255),s};wt.prototype.array=wt.prototype.digest;wt.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e};function Bi(e,t,n){var a,r=typeof e;if(r==="string"){var o=[],u=e.length,i=0,s;for(a=0;a>6,o[i++]=128|s&63):s<55296||s>=57344?(o[i++]=224|s>>12,o[i++]=128|s>>6&63,o[i++]=128|s&63):(s=65536+((s&1023)<<10|e.charCodeAt(++a)&1023),o[i++]=240|s>>18,o[i++]=128|s>>12&63,o[i++]=128|s>>6&63,o[i++]=128|s&63);e=o}else if(r==="object"){if(e===null)throw new Error(jr);if(Xo&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!Xo||!ArrayBuffer.isView(e)))throw new Error(jr)}else throw new Error(jr);e.length>64&&(e=new wt(t,!0).update(e).array());var c=[],l=[];for(a=0;a<64;++a){var g=e[a]||0;c[a]=92^g,l[a]=54^g}wt.call(this,t,n),this.update(l),this.oKeyPad=c,this.inner=!0,this.sharedMemory=n}Bi.prototype=new wt;Bi.prototype.finalize=function(){if(wt.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();wt.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),wt.prototype.finalize.call(this)}};var zr=Rp();zr.sha256=zr;zr.sha224=Rp(!0);zr.sha256.hmac=Ip();zr.sha224.hmac=Ip(!0);var Op=zr;var Np=Op.sha256;function In(e){return Promise.resolve(Np(e))}function Ri(e){return Array.from(new Uint8Array(e)).map(a=>a.toString(16).padStart(2,"0")).join("")}function Ra(e,t){let n=Np.hmac.create(t);return n.update(e),Promise.resolve(n.array())}async function Up(e,t){let n=await Ra(e,t);return Ri(n)}async function Ii(e,t){let n=ry(t),a=await Ra(e,n);return Ri(a)}function ry(e){let t=[];return e.replace(/../g,function(n){return t.push(parseInt(n,16)),""}),new Uint8Array(t).buffer}h();var zp="auto",Oi="auto",jp="auto";function Hp(e){zp=e}function Tn(e){Oi=e}function Dt(){return Oi!=="auto"?Oi:jp!=="auto"?jp:zp}function Ni(){return Oi}async function Lt(e){let{url:t,config:n,state:a}=e,r=new URL(t),o="auto",{translationParagraphLanguagePattern:u,translationService:i,translationServices:s,translationTheme:c,translationThemePatterns:l,translationUrlPattern:g,targetLanguage:p,sourceLanguageUrlPattern:f,immediateTranslationPattern:m}=n,y=Hr(t,u),v=Hr(t,m),b=i,S=Object.keys(s);for(let Y of S){let ce=s[Y];if(Hr(t,ce)){b=Y;break}}let A=c,N=Object.keys(l);for(let Y of N){let ce=l[Y];if(ce&&Hr(t,ce)){A=Y;break}}let _=Hr(t,g),x=qp(t,g);x||(x=Gn(t,Gg)),x||(x=Gn(t,n.blockUrls));let E=qp(t,n.inputTranslationUrlPattern);E||(E=Gn(t,n.inputTranslationBlockUrls));let T=Gn(t,n.mutationBlockUrls),w=Object.keys(f),C={};for(let Y of w){let ce=f[Y];if(ce&&ce.matches)for(let fe of ce.matches)C[fe]=Y}let I=Object.keys(C),M=Al(t,I);M&&(o=C[M]??"auto",C[M]&&C[M]!=="auto"&&Tn(C[M]));let D=p||"zh-CN",F=r.hostname,U=await In(F),z=r.pathname+r.search+r.hash,B=await In(z),k=`https://${U}.com/${B}`,L=await $n(),O=await Hm(),K=n.translationStartMode;K==="dynamic"&&v&&(K="immediate");let H=b;n.inputTranslationService&&n.inputTranslationService!=="inherit"&&(H=n.inputTranslationService);let V=b;n.mouseHoverTranslationService&&n.mouseHoverTranslationService!=="inherit"&&(V=n.mouseHoverTranslationService);let q={targetLanguage:D,config:n,translationService:b,inputTranslationService:H,mouseHoverTranslationService:V,isTranslateUrl:_,sourceLanguage:o,mainFrame:document.body,isTranslateExcludeUrl:x,isMutationTranslationExcludeUrl:T,isInputTranslationExcludeUrl:E,rule:n.generalRule,url:t,encryptedUrl:k,state:a?Object.assign({translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:K,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:y,cache:n.cache,translationTheme:A},a):{translationMode:n.translationMode,translationArea:n.translationArea,translationStartMode:K,immediateTranslationTextCount:n.immediateTranslationTextCount,isAutoTranslate:!1,translationDebounce:300,isNeedClean:!1,isDetectParagraphLanguage:y,cache:n.cache,translationTheme:A},localConfig:L},oe=await Xe.get(ct,null);oe&&(q.user=oe),q.state.translationArea==="body"&&(q.config.generalRule.excludeTags=q.config.generalRule.excludeTags.filter(Y=>!q.config.generalRule.bodyTranslateTags.includes(Y)),q.config.generalRule.additionalExcludeSelectors=q.config.generalRule.additionalExcludeSelectors.filter(Y=>Y!==".btn"));let Q=n.translationServices[q.translationService]||{};Q.immediateTranslationTextCount!==void 0&&oy(Q.immediateTranslationTextCount)&&Q.immediateTranslationTextCount>=0&&(q.state.immediateTranslationTextCount=Q.immediateTranslationTextCount),q.translationService==="deepl"&&(Q&&Q.authKey&&Q.authKey.startsWith("immersive_")||Q&&Q.provider==="pro"&&q.user?.token)&&Q.immediateTranslationTextCountForImmersiveDeepl!==void 0&&Q.immediateTranslationTextCountForImmersiveDeepl>=0&&(q.state.immediateTranslationTextCount=Q.immediateTranslationTextCountForImmersiveDeepl),Q&&Q.translationDebounce&&typeof Q.translationDebounce=="number"&&(q.state.translationDebounce=Q.translationDebounce);let J=O.immediateTranslationTextCount;n.immediateTranslationTextCount!==J&&(q.state.immediateTranslationTextCount=n.immediateTranslationTextCount);let ye=n.rules,Te;globalThis.PDFViewerApplication?Te=ye.find(Y=>Y.isPdf):globalThis.immersiveTranslateEbookViewer?Te=ye.find(Y=>Y.isEbook):globalThis.immersiveTranslateEbookBuilder?Te=ye.find(Y=>Y.isEbookBuilder):Te=ye.find(Y=>Hr(t,Y)),q.state.translationArea==="body"&&(q.rule.paragraphMinTextCount=1,q.rule.paragraphMinWordCount=1),Te&&Te.isEbookBuilder&&(q.state.translationStartMode="immediate");let ie=n.generalRule;if(Te&&(q.rule=Ti(ie,Te)),q.rule.selectors.length>0&&(q.rule.paragraphMinTextCount=2,q.rule.paragraphMinWordCount=1),q.state.translationArea==="body"&&q.rule.excludeTags&&(q.rule.excludeTags=q.rule.excludeTags.filter(Y=>!q.rule.bodyTranslateTags.includes(Y)&&!q.rule.forceTranslateTags.includes(Y))),q.rule.mainFrameSelector){let Y=document.querySelector(q.rule.mainFrameSelector);Y&&(q.mainFrame=Y)}return q}function Hr(e,t){if(!t)return!1;let{matches:n,excludeMatches:a,selectorMatches:r,excludeSelectorMatches:o}=t;return a&&a.length>0&&Gn(e,a)?!1:n&&n.length>0&&Gn(e,n)?!0:o&&o.length>0&&oi(o)?!1:!!(r&&r.length>0&&oi(r))}function qp(e,t){if(!t)return!1;let{excludeMatches:n,excludeSelectorMatches:a}=t;return!!(n&&n.length>0&&Gn(e,n)||a&&a.length>0&&oi(a))}function oy(e){return typeof e=="number"}h();h();async function Wp(){let e="auto",t=[Za(),"en"];return document.body&&document.body.textContent&&document.body.textContent.trim()&&(e=await it({text:Mr(document.body),pageLangs:t})),e}h();h();h();function qr(e,t,n=[],a){let r=["notranslate"];return a&&r.push(Hg),e&&(r.push(`${Z}-target-translation-theme-${e}`),t?r.push(`${U0}-theme-${e}`):r.push(`${N0}-theme-${e}`)),n.length>0&&r.push(...n),t?r.push(U0):r.push(N0),r}function Wr(e){let t=["notranslate",jg];return e&&t.push(`${Z}-target-translation-theme-${e}-inner`),t}function Kp(e,t,n){let{rule:a,state:r}=n,{translationTheme:o}=r,{variables:u,isVertical:i}=e;u=u||[];let{text:s}=t,{wrapperPrefix:c,wrapperSuffix:l}=a,g=Fr(n),p="afterend",f=g[0],m=g[1],y=`${f}(\\d+)${m}`,v=new RegExp(y,"g"),b=Ne.sanitize(s);u.length>0&&(b=b.replace(v,_=>{let x=b.indexOf(_),E=b[x-1]===" ",T=b[x+_.length]===" ",w=_.slice(g[0].length,-g[1].length),C=Number(w);if(isNaN(C))return _;let I=u[Number(C)];if(I&&I.type==="element"){let M=I.value.outerHTML;return E||(M=" "+M),T||(M=M+" "),M}else j.error("variable type not supported",I,_);return _}));let S=qr(o,e.inline,a.translationClasses||[],e.preWhitespace);i&&S.push(zg);let A=Wr(o),N="";return a.translationBlockStyle&&(N=`style="${a.translationBlockStyle}"`),b=`<${n.rule.targetWrapperTag} ${N} class="${S.join(" ")}" ${Kn}="1"><${a.targetWrapperTag} class="${A.join(" ")}" ${Kn}="1">${b}`,e.inline||(c==="smart"?b=`
${b}`:b=`${c}${b}`),e.inline&&(c!=="smart"?b=`${c}${b}`:b=`<${a.targetWrapperTag} class="notranslate" ${Kn}="1"> ${b}`),l==="smart"?b=`${b}`:b=`${b}${l}`,{html:b,position:p}}function Ui(e,t){let n=null,{stayOriginalSelectors:a,delimiters:r,isPreWhitespace:o}=t,u=[],i={};for(let s=0;s2&&(v=`<${r[2]}${y}>`),i[y]=c,u.push({text:v,type:"variable"})}else u.push({text:c.textContent||"",type:"text"});else{let m=c.textContent||"";g&&(m=Fa(Ll(c))),u.push({text:m,type:"text"})}else if(c.nodeType===Node.ELEMENT_NODE)if(c&&qt(c,a)){let y=Object.keys(i).length,v=`${r[0]}${y}${r[1]}`;r.length>2&&(v=`<${r[2]}${y}>`),i[y]=c;let b=Ml(u).endsWith(" ")?" ":"",S=Fa(c.innerText||c.textContent),A=Fa(c.nextSibling).startsWith(" ")?" ":"",N=Qo(b+S+A),_=N[0]+v+N[1];if(b===" ")_=_.trimStart();else if(!_.startsWith(" ")){let x=Qo(c.previousSibling)[1];x===""&&(x=" "),_=x+_}u.push({text:_,type:"variable"})}else{let m=Ml(u).endsWith(" ")?" ":"",y=Fa(c.innerText||c.textContent);g&&(y=Fa(Ll(c)));let v=Fa(c.nextSibling).startsWith(" ")?" ":"",b=Qo(m+y+v),S=b[0]+(c.innerText?.trim()||c.textContent?.trim()||"")+b[1];if(m===" ")S=S.trimStart();else{let A=Qo(c.previousSibling)[1];A===""&&(c.nodeName==="A"||c.nodeName==="CODE")&&(A=" "),S=A+S}u.push({text:S,type:"text"})}else{let m=Ml(u).endsWith(" ")?" ":"",y="";c.textContent&&(y=Fa(Ll(c))),m===" "&&(y=y.trimStart()),u.push({text:y,type:"text"})}}if(u&&u.length>0){let s="";for(let c=0;c0&&(g=u[c-1].text),c2){let l=c[2];return uy({delimiterTag:l,targetText:e.targetText,inline:r,preWhitespace:e.isPreWhitespace||!1,wrapperPrefix:t.rule.wrapperPrefix,wrapperSuffix:t.rule.wrapperSuffix,targetWrapperTag:t.rule.targetWrapperTag,translationTheme:t.state.translationTheme,translationBlockStyle:t.rule.translationBlockStyle,translationClasses:t.rule.translationClasses,variables:a}).html}else{let l=Kp(s,{id:Number(e.id),url:"https://google.com",text:e.targetText,from:"auto",to:"auto",fromByClient:"auto"},t);return l.html}}function Ll(e){return(e?.innerText||e.textContent||"").replace(/\s+/g," ")||""}function uy(e){let{delimiterTag:t,inline:n,translationClasses:a,targetWrapperTag:r,wrapperPrefix:o,variables:u,preWhitespace:i,wrapperSuffix:s,translationTheme:c,translationBlockStyle:l}=e;u=u||[];let g=e.targetText;g=Ne.sanitize(g);let p=g,f=new RegExp(`<${t}(\\d+)>(.*?)`,"g"),m=new RegExp(`<${t}(\\d+)>`);u.length>0&&(p=p.replace(f,S=>{let A=p.indexOf(S),N=p[A-1]===" ",_=p[A+S.length]===" ",x=S.match(m);if(!x)return S;let E=x[1],T=Number(E);if(isNaN(T))return S;let w=u[Number(T)];if(w&&w.type==="element"){let C=w.value.outerHTML;return N||(C=" "+C),_||(C=C+" "),C}else if(w&&w.type==="text"){let C=w.value;return N||(C=" "+C),_||(C=C+" "),C}else j.error("variable type not supported",w,S);return S}));let y=qr(c,n,a||[],i),v=Wr(c),b="";return l&&(b=`style="${l}"`),p=`<${r} ${b} class="${y.join(" ")}" ${Kn}="1"><${r} class="${v.join(" ")}" ${Kn}="1">${p}`,n||(o==="smart"?p=`
${p}`:p=`${o}${p}`),n&&(o!=="smart"?p=`${o}${p}`:p=`<${r} class="notranslate" ${Kn}="1"> ${p}`),s==="smart"?p=`${p}`:p=`${p}${s}`,{html:p,position:"afterend"}}function Ml(e){let t=e[e.length-1];return t?t.text:""}function xn(e){let t=e.rule.selectors,n=e.rule.excludeTags,a=e.rule.additionalExcludeTags,r=e.rule.excludeSelectors,o=e.rule.additionalExcludeSelectors;return e.state.translationArea==="body"&&(t=[],r=[]),{globalStyles:e.rule.globalStyles,globalAttributes:e.rule.globalAttributes,selectors:t,skipEditableCheck:e.rule.skipEditableCheck,lineBreakMaxTextCount:e.rule.lineBreakMaxTextCount,isTransformPreTagNewLine:e.rule.isTransformPreTagNewLine,excludeSelectors:n.concat(a).map(i=>i.toLowerCase()).filter(i=>i!=="code"&&i!=="img").concat(r).concat(o),blockSelectors:e.rule.allBlockTags.map(i=>i.toLowerCase()).concat(e.rule.extraBlockSelectors),extraBlockSelectors:e.rule.extraBlockSelectors,extraInlineSelectors:e.rule.extraInlineSelectors.concat(e.rule.additionalInlineSelectors),stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(i=>i.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)}}var iy={sanitize:e=>e};function zi(e,t){e.interruptEffectDOM||(e.walkContainer({id:e.id,container:t,filterRule:xn(e.ctx),onParagraph:eu.bind(null,e),onFrame:n=>{Fl(e,n,!0)},onIgnoreElement:n=>{e.ignoreResizeObserver?.observe(n)}}),kr&&ft(t,"consumeContainer",e.id))}function Fl(e,t,n){try{if(e.injectCssToDocument(t,e.ctx),t instanceof HTMLIFrameElement){if(!_r(t))return;j.debug("onFrame fragment",t);let a=t.contentWindow?.document.body;a&&($r(a,e,n),e.dynamicContainerObserver?.observe(a,{childList:!0,subtree:!0}))}else j.debug("onFrame shadowRoot",t.host),$r(t,e,n),e.dynamicContainerObserver?.observe(t,{childList:!0,subtree:!0})}catch{}}function $r(e,t,n=!0){let{globalStyles:a,globalAttributes:r}=xn(t.ctx),o=0;if(s(t,e,n))return;if(Bn(e)&&i(e)){u(e);return}try{let c=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,l=>(Bn(l)&&(a&&vl(l,a),r&&kl(l,r)),s(t,l,n)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT));for(tn.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);c.nextNode();){tn.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck);let l=c.currentNode;if(i(l))for(u(l);;){if(c.nextSibling()){let g=c.currentNode;if(tn.mark(c.currentNode,t.id,t.ctx.rule.skipEditableCheck),i(g)){u(g);continue}else break}if(!c.parentNode())return}}}catch{}if(o==0&&e instanceof HTMLElement){u(e);return}return t.observeContainers;function u(c){tn.clearMark(c),o++,t.immediateTranslateCapacity>=0?zi(t,c):(kr&&ft(c,"observeContainer",t.id),t.containerVisibleObserver?.observe(c))}function i(c){let l=c.nodeName.toLowerCase();if(c.shadowRoot)return Fl(t,c.shadowRoot,n),!1;if(l==="iframe")return Fl(t,c,n),!1;if(["script","#document-fragment","img"].includes(l))return!1;let g=t.containerRule;if(g.selectors&&g.selectors?.length>0)return Pi(c,g.selectors);if(g.pageHeight){let p=c.scrollHeight;if(p>0&&p0)return!0}return!1}function s(c,l,g){if(l.nodeName.toLowerCase()=="script")return l.childNodes.length==0||l.childNodes.length==1&&l.childNodes[0].nodeType==Node.TEXT_NODE;if(l.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!1;if(l.nodeType!==Node.ELEMENT_NODE||g&&tn.isMarked(l,c.id))return!0;if(c.ctx.rule.isTransformPreTagNewLine&&l.nodeName==="PRE")return!1;let f=xn(c.ctx);return!!Sl(l,{excludeSelectors:f.excludeSelectors,selectors:f.selectors,stayOriginalSelectors:f.stayOriginalSelectors})}}function _l(e,t){if(!e.targetNodes)return;let n=e.state||"original",a=e.commonAncestorContainer;if(!tn.isMarked(a,e.ctxId))return;let r=a.contains(e.rootNodes[0]),o=a.contains(e.targetNodes[0]);if(r&&o)n="dual";else if(r)n="original";else if(o)n="translation";else return;if(t!=n){e.state=t;try{if(n=="dual"&&t=="translation"&&(ji(e.rootNodes),Vp(e.commonAncestorContainer)),n=="original"&&t=="translation"){let u=Pl(e.rootNodes);if(ji(e.rootNodes),Gp(u))return;Kr(u,a,e.targetNodes||[]),Vp(e.commonAncestorContainer)}if(n=="translation"&&t=="dual"){let u=e.targetNodes[0];Kr(u,a,e.rootNodes||[]),Yp(e.commonAncestorContainer)}if(n=="original"&&t=="dual"){let u=Pl(e.rootNodes);if(Gp(u))return;Kr(u,a,e.targetNodes||[]),Yp(e.commonAncestorContainer)}if(n=="translation"&&t=="original"){let u=Pl(e.targetNodes);ji(e.targetNodes),Kr(u,a,e.rootNodes||[])}n=="dual"&&t=="original"&&ji(e.targetNodes)}catch(u){j.error(u)}}}function Gp(e){return!e||!Bn(e)?!1:e.classList.contains(un)}function Vp(e){if(!Bn(e))return;e.querySelectorAll("font[class*=immersive-translate-target-translation]").forEach(a=>{ft(a,"immersiveTranslateClassBak",a.className),a.className="notranslate immersive-translate-target-dual"});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.add("immersive-translate-state-dual")}function Yp(e){if(!Bn(e))return;e.querySelectorAll("font[class*=immersive-translate-target-dual]").forEach(a=>{let r=Pr(a,"immersiveTranslateClassBak");ui(a,"immersiveTranslateClassBak"),a.className=r});let n=e.querySelector(".immersive-translate-target-wrapper");n&&n.classList.remove("immersive-translate-state-dual")}function Pl(e){return e?e[e.length-1].nextSibling:null}function ji(e){(e||[]).forEach(t=>t.parentNode?.removeChild(t))}function Kr(e,t,n){let a=e;t&&(a?n.forEach(r=>{a.parentNode?.insertBefore(r,a)}):n.forEach(r=>{t.appendChild(r)}))}var sy=Ft(Rl,300);async function eu(e,t,n=!1){if(e.interruptEffectDOM)return;let a=t.commonAncestorContainer;if(a instanceof ShadowRoot||ly(t.rootNodes)||t.stepState>=2)return;t.stepState=2,kr&&ft(a,"onParseParagraph",e.id);let{ctx:r}=e,{rule:o}=r,u=Fr(r),i=Ui(t.flatNodes,{isPreWhitespace:t.isPreWhitespace||!1,delimiters:u,stayOriginalSelectors:r.rule.stayOriginalTags.concat(r.rule.stayOriginalTags).map(c=>c.toLowerCase()).concat(r.rule.stayOriginalSelectors).concat(r.rule.additionalStayOriginalSelectors)});if(!i)return;t.variables=i?.variables||{},t.text=i?.text;let s=await Il(t,{excludeLanguages:r?.config?.translationLanguagePattern?.excludeMatches||[],targetLanguage:r.targetLanguage,noTranslateRegexp:r.rule.noTranslateRegexp,delimiters:Li(r.config.translationServices[r.translationService]?.placeholderDelimiters),minTextCount:n||r.state.translationArea==="body"?2:o.paragraphMinTextCount,minWordCount:n||r.state.translationArea==="body"?1:o.paragraphMinWordCount,isDetectParagraphLanguage:r.state.isDetectParagraphLanguage,ignoreZhCNandZhTW:r.rule.ignoreZhCNandZhTW});if(s){if(j.debug("on paragraph",s.text,s),a.paragraphs=a.paragraphs||[],a.paragraphs.includes(s))return;a.paragraphs.push(s),e.immediateTranslateCapacity>0||n?(cy(e,t.text),Bl(e,t)):(kr&&ft(a,"observeParagraph",e.id),e.observeParagraphs.push(s),e.paragraphVisibleObserver?.observe(a))}return s}function ly(e){if(!e)return!1;let t=e[e.length-1].nextSibling;return t?Bn(t)&&t.classList.contains(un):!1}function cy(e,t){e.ctx.state.translationStartMode!=="immediate"&&(e.immediateTranslateCapacity-=t?.length||0)}function Bl(e,t){if(e.interruptEffectDOM||t.stepState>=3)return;t.stepState=3;let n=e.autoIncreaseParagraphId++;t.id=n.toString(),e.paragraphEntities[n]=t,e.paragraphQueue.push(n.toString()),kr&&ft(t.commonAncestorContainer,"consumeParagraph",e.id),sy.call(e,e.ctx)}async function Rl(e){if(this.interruptEffectDOM)return;let t=this.paragraphQueue;this.paragraphQueue=[];let n=[];for(let a=0;a0)try{await Ia(a,t,(r,o,u)=>{let i=u.id,s=dy(e,i.toString());s&&gy.call(null,r,o,u,s,t,n)})}catch(r){j.error("translateCurrentQueue error",r);return}}function dy(e,t){return e.find(n=>n.id===t)}function gy(e,t,n,a,r,o){let u=!1,i=a;if(Ur(i.commonAncestorContainer,n.id)?.remove(),i&&(e||!t)){e||(j.error("translate error",n,e,t),e=new Error("no response from server"));let{rule:s}=r,c=n.id,l=document.createElement(s.targetWrapperTag);ft(l,Rg,c.toString()),l.classList.add("notranslate",un,un+"-error"),l.setAttribute("translate","no"),l.setAttribute("lang",r.targetLanguage);let g=a.rootNodes[a.rootNodes.length-1].nextSibling;Kr(g,a.commonAncestorContainer,[l]),my(r,e);let p=e.message.replaceAll(` +`,"");if(p=p.replaceAll('"',"""),i&&(i.error=new Error(p)),l){let f=ra(Qt,"retryAllParagraphs",r.config.interfaceLanguage,"zh-CN"),m=ra(Qt,"errorTooltipTitle",r.config.interfaceLanguage,"zh-CN"),y=`<${s.targetWrapperTag} class="${Z}-error notranslate"><${s.targetWrapperTag} class="${Z}-error-wrapper">\u{1F504}  \u2753`;l.innerHTML=Ne.sanitize(y)}}else if(a){if(i.error=void 0,a.targetText=t?.text||"",!(a.text?.toLocaleLowerCase()==a.targetText?.toLocaleLowerCase())){let c=$p(a,r),l=document.createElement(r.rule.targetWrapperTag);l.classList.add("notranslate",un),l.setAttribute("lang",r.targetLanguage),l.setAttribute(Kn,"1");let g=iy.sanitize(c);l.innerHTML=g,a.targetNodes=[l],_l(a,o)}u=!0}else j.error("paragraph not found",n.id);document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:u}})}))}async function Il(e,t){let{text:n}=e,a=await it({text:n||"",minLength:15,pageLangs:[Dt(),"en"]}),{targetLanguage:r}=t;if(!Cp({text:n||"",delimiters:t.delimiters,minWordCount:t.minWordCount,minTextCount:t.minTextCount,noTranslateRegexp:t.noTranslateRegexp}))return null;let u=t.excludeLanguages||[],i=Ni();t.isDetectParagraphLanguage&&(i="auto");let s=Dt(),c=a;c==="auto"&&!t.isDetectParagraphLanguage&&(c=s),e.languageByLocal=c,e.languageByClient=i;let l=i!=="auto"?i:c;return Aa(l,r,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW})||u.length>0&&u.some(f=>Aa(l,f,{ignoreZhCNandZhTW:t.ignoreZhCNandZhTW}))?null:e}function my(e,t){if(t.message.startsWith("ProQuota:")){t.message=t.message.replace("ProQuota:","");let n=t.message;try{n=JSON.parse(t.message).error}catch(o){j.error(o)}t.message=`\u670D\u52A1\u8FD4\u56DE\u9519\u8BEF\u7801\uFF1A429\uFF0C\u5177\u4F53\u539F\u56E0\uFF1A ${t.message} \u8BF7\u7A0D\u540E\u518D\u8BD5\u3002`;let a=e.translationService,r=a=="deepl"?"OpenAI":"Deepl";e.translationService=="openai"?a="OpenAI":e.translationService=="deepl"&&(a="Deepl"),document.dispatchEvent(new CustomEvent(Vu,{detail:{type:"ProQuotaExceeded",subscriptionType:e.user?.subscription?.subscriptionType,translationService:a,anotherService:r,message:n}}))}}h();var py=[];function Jp(e){py.push(e)}h();function Qp(e){let t=document.querySelector("title"),n;return t&&(n=new MutationObserver(function(a){a.length>0&&(a[0].target.text.includes(Zu)||Ol(e).catch(o=>{j.error("translateTitle error:",o.name,o.message,o.details||"")}))}),n.observe(t,{subtree:!0,characterData:!0,childList:!0})),n}var qi="";async function Ol(e){let t=document.title;if(!t||t.includes(Zu))return;qi!==t&&(qi=t);let n=await it({text:t,pageLangs:[Dt(),"en"]});if(!Mi(e,n))try{let a=await la({id:0,url:e.url,text:t,from:n,to:e.targetLanguage,fromByClient:n},e);a&&a.text&&(document.title=qi+Zu+a.text)}catch(a){throw a}}function Zp(e){e.rule.isTranslateTitle&&(document.title=qi)}h();var Nl="Original";function tt(){return Nl}function Wt(e){Nl=e,Xp(Nl)}h();var Ul;function e3(e){let t=e.ctx.rule.aiRule;if(j.debug("aiRule",t),!t||!t.messageWrapperSelector)return;let n=xn(e.ctx),a=n.excludeSelectors.indexOf(`${t.messageWrapperSelector} *`);n.excludeSelectors.splice(a,1);let r,o;document.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(p=>{p.translated=!0,tu(e,p,n)});let u=t.streamingDelayTime||100;Ul=new MutationObserver(p=>{p.forEach(function(f){if(Bn(f.target)&&!s(f)&&(l(f.target),f.addedNodes&&f.addedNodes.length&&f.addedNodes.forEach(m=>{l(m)}),!c(f)&&i())){let m=f.target===o;if(t.streamingDeepChild&&!m&&(m=f.target.parentNode===o),!m)return;f.addedNodes.forEach(y=>{let v=y.previousSibling;!v||v.translated||(v.translated=!0,setTimeout(()=>{v.childNodes[0]?.translated||(j.debug("\u7FFB\u8BD1\u4E0A\u4E00\u4E2A\u6BB5\u843D",v),tu(e,v,n))},u))})}})}),Ul.observe(document.body,{attributes:!0,childList:!0,subtree:!0});function i(){return!!(t.streamingChange&&t.streamingSelector&&r||t.streamingChange&&t.messageContainerSelector&&t.messageStreamEndSelector&&o&&!o.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector))}function s(p){return t.streamingSelector&&p.target===r&&p.type==="attributes"&&!_n(p.target,[t.streamingSelector])?(g(),!0):t.streamingSelector&&p.removedNodes.length>0&&o&&o!=r?(p.removedNodes?.forEach(f=>{f===r&&g()}),!0):t.messageContainerSelector&&t.messageStreamEndSelector&&o&&o.closest(t.messageContainerSelector)?.querySelector(t.messageStreamEndSelector)?(g(),!0):!1}function c(p){if(t.streamingSelector&&p.target.querySelector(t.messageWrapperSelector||"")&&!r){let f=p.target;return f.translated||(f.translated=!0,setTimeout(()=>{r||f.querySelectorAll(`${t.messageWrapperSelector} > *`).forEach(m=>{m.translated||(m.translated=!0,tu(e,m,n))})},u)),!0}else if(t.messageContainerSelector&&p.target.querySelector(t.messageContainerSelector||"")){let f=p.target;if(f.translated)return!0;f.translated=!0,setTimeout(()=>{f.querySelectorAll(t.messageContainerSelector).forEach(m=>{t.messageStreamEndSelector&&!m.querySelector(t.messageStreamEndSelector)||m.translated||(m.translated=!0,tu(e,m,n))})},u)}return!1}function l(p){t.streamingSelector&&_n(p,[t.streamingSelector])&&(r=p,j.debug("streamingNode",r)),_n(p,[t.messageWrapperSelector])&&(o=p,j.debug("markdownNode",o))}function g(){o&&setTimeout(()=>{o.childNodes.forEach(p=>p.translated=!1),j.debug("\u7ED3\u675F\u7FFB\u8BD1\u5168\u90E8",o),tu(e,o,n),r=void 0,o=null},u)}}function tu(e,t,n){_a({id:e.id,container:t,filterRule:n,force:!0,onParagraph:a=>{eu(e,a,!0)},onFrame:()=>{},onIgnoreElement:()=>{}})}function t3(){Ul?.disconnect()}var re=null;function Ki(){return re||null}function Gr(e){fy(e),Cy(e),Ty(e),Ey(e),wa(document,e),Wt("Translated"),xy(re),yy(re),Jp(ca),hy(re)}function fy(e){e.state.translationArea==="main"&&e.rule.initialSelectorGlobalAttributes&&Lp(document.body,e.rule.initialSelectorGlobalAttributes,e.rule.asideMaxTextCount,e.rule.asideMaxWordCount,e.rule.asideMaxTextCountPerParagraph,e.rule.asideMaxWordCountPerParagraph)}function hy(e){e3(e)}function by(){t3()}function yy(e){e.ctx.isMutationTranslationExcludeUrl||e.dynamicContainerObserver?.observe(document.body,{subtree:!0,childList:!0});let t=[];e.ctx.rule.mainFrameSelector&&(t=[...document.querySelectorAll(e.ctx.rule.mainFrameSelector||"")]),t.length<=0&&(t=[document.body]),t.forEach(n=>{$r(n,e)})}async function Ty(e){if(!e.state.isAutoTranslate&&e.config.tempTranslateDomainMinutes>0){let t=Date.now(),a=new URL(e.url).hostname,r=e.localConfig.tempTranslationUrlMatches||[],o=r.findIndex(i=>i.match===a&&i.expiredAt>t),u=!1;o>-1||(r.push({match:a,expiredAt:t+e.config.tempTranslateDomainMinutes*60*1e3}),u=!0),u&&await yn({...e.localConfig,tempTranslationUrlMatches:[...r]})}}function xy(e){e.ctx.rule.isTranslateTitle&&(Ol(e.ctx),e.titleDynamicObserver=Qp(e.ctx))}function Ey(e){if(e.rule.normalizeBody&&document.querySelector(e.rule.normalizeBody)){let n=document.body.innerHTML;document.body.innerHTML="",document.body.innerHTML=n}}function Cy(e){let t=Fn();re&&(t=re.id);let n=xn(e);re=re||{},re.ctx=e,re.id=t,re.paragraphQueue=re.paragraphQueue||[],re.rule={excludeSelectors:n.excludeSelectors||[],selectors:n.selectors||[]},re.currentUrl=window.location.href,re.containerRule={pageHeight:screen.availHeight,selectors:n.selectors},re.translationService=e.translationService,re.paragraphEntities=re.paragraphEntities||{},re.autoIncreaseParagraphId=re.autoIncreaseParagraphId||1,re.interruptEffectDOM=!1,re.urlChangeDelay=e.rule.urlChangeDelay,re.immediateTranslateCapacity=e.state.immediateTranslationTextCount,re.observeContainers=re.observeContainers||[],re.observeParagraphs=re.observeParagraphs||[],re.dynamicContainerObserver=re.dynamicContainerObserver||Ay(re),re.ignoreResizeObserver=re.ignoreResizeObserver||Dy(re),re.containerVisibleObserver=re.containerVisibleObserver||wy(re),re.paragraphVisibleObserver=re.paragraphVisibleObserver||ky(re),re.injectCssToDocument=Wi,re.walkContainer=_a,re.translateState=e.state.translationMode||e.config.translationMode||"dual",re.allInlineWindows=[window],window.onerror=vy(re,e),window.immersiveTranslateSwitchTranslateState=zl.bind(re)}function a3(e,t){t.getRootNode()instanceof ShadowRoot?Wi(t.getRootNode(),e):Wi(t.ownerDocument,e),jl(e)}function jl(e){if(re)return;re={},re.ctx=e,re.id=Fn(),re.paragraphQueue=[],re.injectCssToDocument=Wi;let t=xn(e);re.rule={excludeSelectors:t.excludeSelectors,selectors:t.selectors||[]},re.translationService=e.mouseHoverTranslationService,re.currentUrl=window.location.href,re.paragraphEntities={},re.autoIncreaseParagraphId=1,re.interruptEffectDOM=!1,re.urlChangeDelay=e.rule.urlChangeDelay,re.translateState=e.config.translationMode||"dual",re.observeContainers=[],re.observeParagraphs=[],re.allInlineWindows=[window],window.switchTranslateState=zl.bind(re)}function ca(e=!0){re&&(Wt("Original"),by(),re.interruptEffectDOM=!0,re.ignoreResizeObserver?.disconnect(),re.dynamicContainerObserver?.disconnect(),re.containerVisibleObserver?.disconnect(),re.paragraphVisibleObserver?.disconnect(),re.titleDynamicObserver?.disconnect(),Zp(re.ctx),Tp(),xp(),e&&zl.call(re,"original"),Object.values(re.paragraphEntities).forEach(t=>{t.commonAncestorContainer.paragraphs=null}),re=null)}function vy(e,t){e.interruptEffectDOM=!1;let n;return function(a){let r=a.message,o=!1;return r?.indexOf("Minified React error")>=0&&(o=!0),o&&(clearTimeout(n),ca(),n=setTimeout(()=>{Gr(t)},e.urlChangeDelay||2e3)),!0}}function wy(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{a.intersectionRatio>0&&(zi(e,a.target),n.unobserve(a.target))})})}function ky(e){return new IntersectionObserver((t,n)=>{e.interruptEffectDOM||t.forEach(a=>{if(a.intersectionRatio>0){let r=a.target;(r.paragraphs||[]).forEach(u=>{Bl(e,u)}),n.unobserve(r)}})})}var n3;function Sy(e){if(e.urlChangeDelay<=0)return!1;let n=(window.location.href||"").split("#")[0];return e.currentUrl.split("#")[0]!=n?(clearTimeout(n3),e.translateState=="original"?!1:(ca(e.urlChangeDelay>20),n3=setTimeout(()=>{let r=e.ctx;Gr(r)},e.urlChangeDelay),!0)):!1}function Ay(e){return new MutationObserver(t=>{if(!Sy(e)&&!e.interruptEffectDOM)for(let n of t){let a=e.ctx.rule.mutationObserverLimitTargetSelectors;if(a.length>0&&!_n(n.target,a))return;if((n.addedNodes||[]).length<=0||n.target.nodeType!==Node.ELEMENT_NODE||!tn.isSkipMarkEle(n.target)&&!tn.isMarked(n.target,e.id))continue;let o=(n.target?.paragraphs||[]).reduce((u,i)=>{let s=i.rootNodes||[],c=i.targetNodes||[];return[...u,...s,...c]},[]);if(n.addedNodes.length>0&&n.addedNodes.length===n.target.childNodes.length&&_n(n.target,e.ctx.rule.mutationObserverContainerSelectors)){tn.clearMark(n.target),n.target.paragraphs=void 0,zi(e,n.target);return}n.addedNodes.forEach((u,i)=>{u.nodeType===Node.ELEMENT_NODE&&(o.includes(u)||qt(u,e.ctx.rule.mutationExcludeSelectors)||$r(u,e))})}})}function Dy(e){return new ResizeObserver((t,n)=>{if(!e.interruptEffectDOM)for(let a of t){if(a.target.nodeType!==Node.ELEMENT_NODE)return;let r=a.target,o=globalThis.getComputedStyle(r);wl(o)||(n.unobserve(a.target),$r(r,e))}})}function zl(e){this.translateState=e,Object.values(this.paragraphEntities).forEach(t=>{_l(t,e)}),e=="original"&&document.querySelectorAll(`.${un}`).forEach(t=>t.remove())}function Wi(e,t){if(e instanceof HTMLIFrameElement){wa(e.contentDocument,t);return}wa(e,t)}async function r3(e){let t=pt(),n="auto";if(me()){let a="";e.rule.isEbook||e.rule.isEbookBuilder?(a=G0(e.mainFrame),n=await it({text:a,pageLangs:["en"]})):(a=Mr(e.mainFrame).slice(0,1e3),n=await it({text:a,pageLangs:[Za(),"en"]}))}else if(t)n=await it({text:Mr(e.mainFrame).slice(0,1e3),pageLangs:[Za(),"en"]});else if(e.rule.isEbook||e.rule.isEbookBuilder){let a="";a=G0(e.mainFrame),n=await it({text:a,pageLangs:["en"]})}else n=await u3();return n==="auto"&&(n=await Wp()),Hp(n),n}async function o3(){if(!re)return;document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let e=re.paragraphEntities,t=Object.keys(e);for(let n of t){let a=e[n];if(a.error){re.paragraphQueue.push(n);let o=a.commonAncestorContainer.querySelector(`[${Ju}='${n}']`);o&&o.remove()}}Rl.call(re,re.ctx)}h();h();var i3={"zh-CN":{"languages.en":"\u82F1\u8BED","languages.ja":"\u65E5\u8BED","languages.ko":"\u97E9\u8BED","languages.es":"\u897F\u73ED\u7259\u8BED","languages.fr":"\u6CD5\u8BED","languages.de":"\u5FB7\u8BED","languages.it":"\u610F\u5927\u5229\u8BED","languages.pt":"\u8461\u8404\u7259\u8BED","languages.ru":"\u4FC4\u8BED","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"},"zh-TW":{"languages.en":"\u82F1\u8A9E","languages.ja":"\u65E5\u8A9E","languages.ko":"\u97D3\u8A9E","languages.es":"\u897F\u73ED\u7259\u8A9E","languages.fr":"\u6CD5\u8A9E","languages.de":"\u5FB7\u8A9E","languages.it":"\u610F\u5927\u5229\u8A9E","languages.pt":"\u8461\u8404\u7259\u8A9E","languages.ru":"\u4FC4\u8A9E","languages.wyw":"\u6587\u8A00\u6587","languages.":"\u5168\u90E8"}},s3={...Qt,"zh-CN":{...i3["zh-CN"],...Qt["zh-CN"]},"zh-TW":{...i3["zh-TW"],...Qt["zh-TW"]}},Vr=s3;function Oa(e,t,n){return ra(s3,e,t,Xu,n)}var l3=()=>sn.filter(e=>e!=="auto"),Mt=(e,t,n,a)=>{let r=qg[e]||e,o=Wg[e],u=Kg[e],i={"zh-CN":o,"zh-TW":u,en:r};if(n)return i[e]?i[e]:r;if(i[t]){let s=i[t];return a||e==="auto"||e==="placeholder"?s:`${s} (${r})`}else return r};h();h();function Yr(e){Jr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(a=>{j.error("send content message request failed",e,a)}),document.querySelectorAll("iframe").forEach(a=>{a.contentWindow&&a.contentWindow.postMessage({author:Gu,payload:e},"*")});let n=new CustomEvent(xa,{detail:e});globalThis.document.dispatchEvent(n)}function Hl(e){let t=e.shortcuts||{},a=Object.keys(t).reduce((o,u)=>(o[t[u]]=u,o),{}),r=Object.keys(a);for(let o of r){let u=o.replace(/MacCtrl/ig,"Ctrl");u&&Ue(u,i=>{i.preventDefault(),Yr({method:a[o],data:{trigger:"shortcut"}})})}}h();h();var Pt=class{options;strictTicks=[];constructor(t){this.options=t,this.setOptions(t)}setOptions(t){t&&(t.interval!==void 0&&(this.options.interval=Number(t.interval)),t.limit!==void 0&&(this.options.limit=Number(t.limit)))}wait(){return new Promise((t,n)=>{setTimeout(t,this.getDelay())})}getDelay(){let t=this.strictTicks,n=this.options.limit,a=this.options.interval,r=Date.now();if(t.length=o?(t.push(r),0):(t.push(o),o-r)}};var Ly=new Pt({limit:7,interval:1250}),My={tencent:new Pt({limit:3,interval:1350}),baidu:new Pt({limit:1,interval:1550}),strict:new Pt({limit:1,interval:1050}),d:new Pt({limit:1,interval:1050}),youdao:new Pt({limit:5,interval:1050}),you:new Pt({limit:5,interval:1050}),cai:new Pt({limit:5,interval:1050}),google:new Pt({limit:10,interval:1050}),deepl:new Pt({limit:10,interval:1050}),transmart:new Pt({limit:30,interval:1050}),papago:new Pt({limit:3,interval:1150}),openai:new Pt({limit:10,interval:1300}),chatgpt:new Pt({limit:1,interval:1350})};function nu(e){return My[e]||Ly}async function c3(e){if(pt()){let n=Di();if(n)try{return(await n.ask("getRateLimitDelay",{key:e})).value}catch(a){return j.error("can not comunicate with root frame, use strict limiter",a),nu("strict").getDelay()}else return nu("strict").getDelay()}else return nu(e).getDelay()}async function d3(e,t){if(!pt()){let a=nu(e);t&&a.setOptions(t)}}async function g3(e){let t=e.key;return{value:nu(t).getDelay()}}h();var $i=new Map;async function ql(e){let t=e.url;if(e.method&&(t+=e.method),e.body&&(t+=La(e.body)),$i.has(t))return $i.get(t);let n=se(e);$i.set(t,n);try{return await n}catch(a){throw a}finally{setTimeout(()=>{$i.delete(t)},3e4)}}async function m3(e){return ql(e)}async function p3(e){if(pt()){let n=Di();if(n)try{return await n.ask("throttleRequest",e)}catch(a){throw j.error("can not comunicate with root frame, use strict limiter",a),a}else return ql(e)}else return ql(e)}h();h();h();h();function f3(e,t,n){let a=[];n||(n={}),t!=="auto"&&!n[t]&&(n[t]={matches:[],excludeMatches:[]}),a=t!=="auto"?n[t].matches:[];let r={},o=Object.keys(n);for(let c of o){let g=n[c].matches;for(let p of g)r[p]||(r[p]=[]),r[p].push(c)}let u=r[e];if(u&&u.length>0)for(let c of u)n[c].matches.indexOf(e)>-1&&(n[c]={...n[c],matches:n[c].matches.filter(g=>g!==e)});let i=new Set(a);if(t==="auto")return{...n};i.add(e);let s=Array.from(i);return{...n,[t]:{...n[t],matches:s}}}h();h();function Wl(){return d("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M10.3873 2.29166C10.6319 2.29193 10.8664 2.38929 11.0392 2.56234C11.2121 2.73539 11.3092 2.96998 11.3092 3.21457V4.07811L12.1175 4.38332C12.7273 4.61277 13.2952 4.94074 13.7988 5.35416L14.4675 5.90207L15.2165 5.46978L15.2394 5.45624C15.3787 5.37479 15.5373 5.332 15.6988 5.33228C15.861 5.3325 16.0203 5.37522 16.1608 5.45618C16.3014 5.53715 16.4182 5.65353 16.4998 5.79374L16.8925 6.47395C17.0145 6.68593 17.0475 6.93764 16.9843 7.17391C16.921 7.41019 16.7666 7.61173 16.555 7.73436L16.5321 7.74791L15.7842 8.17916L15.9227 9.0302C16.031 9.67953 16.031 10.3423 15.9227 10.9917L15.781 11.8458L16.531 12.2781L16.5467 12.2875C16.758 12.4101 16.9122 12.6115 16.9754 12.8475C17.0387 13.0835 17.0059 13.335 16.8842 13.5469L16.5154 14.1844C16.3932 14.3961 16.1919 14.5507 15.9558 14.6141C15.7196 14.6776 15.468 14.6448 15.256 14.5229L15.2415 14.5135L14.4904 14.0802L13.8206 14.6323C13.3125 15.0519 12.7384 15.3845 12.1217 15.6167L11.3133 15.9219V16.7864C11.3132 16.9078 11.2891 17.028 11.2425 17.14C11.1958 17.2521 11.1276 17.3539 11.0415 17.4395C10.9555 17.5251 10.8535 17.5929 10.7412 17.6391C10.6289 17.6852 10.5087 17.7087 10.3873 17.7083H9.61229C9.3677 17.708 9.13322 17.6107 8.96037 17.4376C8.78751 17.2646 8.69042 17.03 8.69042 16.7854V15.9219L7.88209 15.6167C7.27233 15.3872 6.70437 15.0592 6.20084 14.6458L5.53209 14.0979L4.78313 14.5302L4.76021 14.5437C4.62084 14.6252 4.46226 14.668 4.30084 14.6677C4.13864 14.6675 3.97932 14.6248 3.83877 14.5438C3.69823 14.4628 3.58135 14.3464 3.49979 14.2062L3.10709 13.526C2.98505 13.3141 2.95205 13.0623 3.01532 12.8261C3.07858 12.5898 3.23296 12.3882 3.44459 12.2656L3.4675 12.2521L4.21542 11.8208L4.07688 10.9698C3.96856 10.3204 3.96856 9.65766 4.07688 9.00832L4.21854 8.1552L3.46959 7.72186L3.45709 7.70832C3.24914 7.58489 3.09787 7.38486 3.03575 7.15116C2.97362 6.91746 3.00559 6.66872 3.12479 6.45832L3.49354 5.82082C3.57469 5.68049 3.69133 5.56397 3.83175 5.48297C3.97217 5.40197 4.13144 5.35934 4.29354 5.35936C4.45497 5.35908 4.61355 5.40187 4.75292 5.48332L4.7675 5.49166L5.51854 5.92499L6.18834 5.37291C6.69646 4.95329 7.27054 4.62067 7.88729 4.38853L8.69563 4.08332V3.21874C8.69452 2.97433 8.79041 2.73945 8.96226 2.56565C9.13411 2.39185 9.36788 2.29331 9.61229 2.29166H10.3873ZM10.3873 1.04166H9.61229C9.03636 1.04193 8.4841 1.27084 8.07685 1.67809C7.66961 2.08533 7.4407 2.6376 7.44042 3.21353C6.69518 3.49423 6.00146 3.89618 5.38729 4.40312L5.37271 4.39478C4.87362 4.10685 4.2806 4.02894 3.72407 4.17818C3.16753 4.32742 2.69307 4.6916 2.405 5.19062L2.03729 5.83332C1.74928 6.33229 1.67121 6.92522 1.82025 7.48173C1.96929 8.03825 2.33324 8.51279 2.83209 8.80103L2.84771 8.80936C2.78023 9.20444 2.74539 9.6044 2.74354 10.0052C2.74367 10.3971 2.77572 10.7883 2.83938 11.175L2.81646 11.1885C2.56927 11.3311 2.35259 11.5209 2.1788 11.7472C2.00501 11.9735 1.87752 12.2319 1.80361 12.5075C1.7297 12.7831 1.71083 13.0706 1.74807 13.3535C1.7853 13.6364 1.87792 13.9091 2.02063 14.1562L2.41334 14.8364C2.55638 15.0837 2.74681 15.3003 2.97371 15.4738C3.20061 15.6473 3.45953 15.7743 3.73561 15.8475C4.01169 15.9208 4.29952 15.9388 4.58259 15.9007C4.86566 15.8625 5.13841 15.7688 5.38521 15.625L5.40813 15.6114C6.01714 16.1105 6.70362 16.5067 7.44042 16.7844C7.44028 17.0697 7.49635 17.3523 7.60542 17.616C7.7145 17.8797 7.87444 18.1193 8.07612 18.3212C8.27779 18.523 8.51726 18.6832 8.78084 18.7925C9.04441 18.9018 9.32694 18.9582 9.61229 18.9583H10.3873C10.9632 18.958 11.5155 18.7291 11.9227 18.3219C12.33 17.9146 12.5589 17.3624 12.5592 16.7864C13.3043 16.5061 13.9981 16.1045 14.6123 15.5979L14.6269 15.6062C15.126 15.8942 15.719 15.9721 16.2755 15.8228C16.8321 15.6736 17.3065 15.3094 17.5946 14.8104L17.9623 14.1729C18.2503 13.6739 18.3284 13.081 18.1793 12.5245C18.0303 11.968 17.6663 11.4934 17.1675 11.2052L17.1519 11.1969C17.2194 10.8018 17.2542 10.4018 17.256 10.001C17.2559 9.60915 17.2239 9.21792 17.1602 8.83124L17.1831 8.8177C17.4303 8.67516 17.647 8.48531 17.8208 8.259C17.9946 8.03269 18.1221 7.77435 18.196 7.49875C18.2699 7.22314 18.2888 6.93568 18.2515 6.65278C18.2143 6.36987 18.1217 6.09708 17.979 5.84999L17.5863 5.16978C17.4437 4.92202 17.2537 4.70485 17.027 4.53072C16.8003 4.3566 16.5415 4.22895 16.2654 4.1551C15.9893 4.08126 15.7013 4.06267 15.418 4.1004C15.1346 4.13814 14.8616 4.23145 14.6144 4.37499L14.5915 4.38853C13.9824 3.88946 13.296 3.49327 12.5592 3.21561C12.5593 2.93026 12.5032 2.64768 12.3942 2.384C12.2851 2.12031 12.1252 1.8807 11.9235 1.67883C11.7218 1.47695 11.4823 1.31678 11.2188 1.20746C10.9552 1.09813 10.6726 1.04179 10.3873 1.04166Z",fill:"#666666"}),d("path",{d:"M10.0003 7.91666C10.4124 7.91666 10.8152 8.03884 11.1578 8.26776C11.5004 8.49668 11.7674 8.82205 11.9251 9.20273C12.0828 9.58341 12.124 10.0023 12.0436 10.4064C11.9632 10.8106 11.7648 11.1818 11.4735 11.4731C11.1821 11.7645 10.8109 11.9629 10.4068 12.0433C10.0026 12.1237 9.58375 12.0824 9.20307 11.9247C8.82239 11.7671 8.49702 11.5 8.2681 11.1574C8.03918 10.8148 7.91699 10.412 7.91699 9.99999C7.91699 9.44745 8.13649 8.91755 8.52719 8.52685C8.91789 8.13615 9.44779 7.91666 10.0003 7.91666ZM10.0003 6.66666C9.34106 6.66666 8.69659 6.86215 8.14843 7.22842C7.60026 7.5947 7.17302 8.11529 6.92073 8.72438C6.66844 9.33346 6.60243 10.0037 6.73104 10.6503C6.85966 11.2969 7.17713 11.8908 7.6433 12.357C8.10948 12.8232 8.70342 13.1407 9.35003 13.2693C9.99663 13.3979 10.6669 13.3319 11.2759 13.0796C11.885 12.8273 12.4056 12.4001 12.7719 11.8519C13.1382 11.3037 13.3337 10.6593 13.3337 9.99999C13.3337 9.11593 12.9825 8.26809 12.3573 7.64297C11.7322 7.01785 10.8844 6.66666 10.0003 6.66666Z",fill:"#666666"})]})}h();function au(e,t=2e3){return n=>{let a,r=0;return o=>{++r==e&&(n(o),r=0),clearTimeout(a),a=setTimeout(()=>r=0,t)}}}h();function h3(e){let t;try{t=new URL(e)}catch{return!1}let n=b3(),a="";try{a=new URL(n).hostname}catch{}return a&&t.hostname===a?!0:!(Py(e)||t.protocol!=="http:"&&t.protocol!=="https:"&&t.protocol!=="file:"&&t.protocol!=="data:")}function Py(e){try{return new URL(e)?.pathname.toLowerCase().endsWith(".pdf")}catch{return!1}}h();function y3(e){let t=e.split(".");return t.length>2?(t[0]="*",t.join(".")):null}h();function T3(e){let t=e.indexOf("#");return t===-1?e:e.slice(0,t)}h();function On(e){let{items:t,maxWidth:n,className:a}=e,{lang:r}=ue();return n=n||(r==="en"?144:160),d("select",{autoComplete:"off",class:a||"min-select",style:{maxWidth:`${n}px`},value:t.find(o=>o.selected)?.value,onChange:o=>{let u=o.target.value,i=t.find(s=>s.value===u);i&&i.onSelected(i)},children:t.map((o,u)=>d("option",{value:o.value,selected:o.selected,children:o.label},"selectlink"+u))})}function Kl(e){let{items:t,maxWidth:n,isInput:a,value:r}=e;return n=n||128,a?d("input",{value:r,onChange:o=>{e.onChange(o.target.value)}}):d("select",{autoComplete:"off",style:{maxWidth:`${n}px`},value:t.find(o=>o.selected)?.value,onChange:o=>{let u=o.target.value,i=t.find(s=>s.value===u);i&&i.onSelected(i)},children:t.map((o,u)=>d("option",{value:o.value,selected:o.selected,children:o.label},"selectlink"+u))})}h();var Gi="DROP_DOWN_DEFAULT_VALUE";function $l(e){let{showArrow:t,onSelected:n,className:a,menus:r,maxWidth:o}=e;a=a||"",t=t??!0,o=o||80;let u=zn(null);return d("select",{ref:u,autoComplete:"off",class:`text-label min-select ${t?"":"min-select-no-arrow"} ${a||""}`,value:Gi,style:{maxWidth:`${o}px`},onChange:i=>{i.preventDefault();let s=i.target.value;if(u.current&&s!==Gi){u.current.value=Gi,u.current?.dispatchEvent(new Event("change"));let c=r.find(l=>l.value===s);c&&n(c)}},children:[{value:Gi,label:e.label}].concat(r).map((i,s)=>d("option",{value:i.value,children:i.label},"option-"+s))})}h();function Gl(e){let{field:t,onChange:n,value:a}=e;a=a||t.default||"";let{t:r}=ue(),o=t.name;return t.label&&(o=t.label),t.labelKey&&(o=r(t.labelKey)),t.type==="select"?d("div",{class:"flex justify-between items-center mb-2",children:[d("label",{class:"inline-block",children:[o,"\uFF1A"]}),d(On,{items:t.options.map(u=>({label:`${u.label?r(u.label):u.value}`,value:u.value,selected:a===u.value,onSelected:()=>{n(u.value)}}))})]}):null}h();h();function Na(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})>=0}var Fy=({date:e})=>{let{t}=ue(),[n,a]=$(!1);return he(()=>{setTimeout(()=>{a(!0)},5e3)},[]),n?null:d("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},_y=({minVersion:e})=>{let{t}=ue();return d("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},By=()=>{let{t:e}=ue();return d("p",{class:"text-sm",dangerouslySetInnerHTML:{__html:e("badUserscriptBrowser",{1:"https://immersivetranslate.com/docs/installation/"})}})},Ry=({message:e,handleSyncing:t,date:n})=>{let{t:a}=ue();return d("p",{class:"text-sm",children:[a("failToSyncRules")," ",d("a",{onClick:t,children:a("retry")}),d("br",{}),a("failedReason"),"\uFF1A",e,d("br",{}),a("currentRuleVersion"),"\uFF1A",n]})};function Vl(e){let{isShowError:t,request:n}=e,[a,r]=$(null),{t:o}=ue(),[u,i]=$(null),[s,c]=$(null),[l,g]=$(""),[p,f]=$(!1),[m,y]=$(!1),[v,b]=$(!1),[S,A]=$(null),[N,_]=$(null),x=hn(),E=async()=>{g("");let T=u;if(u===null)try{let w=await n({url:Ea});w?(i(w),T=w,f(!0)):(g(o("unknownError")),c(null))}catch(w){c(null),g(w.message);return}T!==null?(e.setStorageBuildinConfig(T),c(!1),r(T.buildinConfigUpdatedAt)):(g(o("canNotFetchRemoteRule")),c(null))};return he(()=>{Ge().then(T=>{let w=T.buildinConfigUpdatedAt;A(T);let C=new Date(w);if(r(w),x==="0.0.0"){b(!0);return}n({url:Ea}).then(I=>{let M=I,D=M.minVersion,F=x;i(M);let U=M.latestVersion;if(U&&(Na(F,U)?_(!0):_(!1)),Na(F,D)){let z=M.buildinConfigUpdatedAt;new Date(z)>C?(c(!0),E()):c(!1)}else y(!0),c(null)}).catch(I=>{c(null),g(I.message)})})},[]),he(()=>{Ge().then(T=>{A(T)})},[a]),S?d("div",{class:"text-sm mt-2",style:{maxWidth:218},children:v?d(By,{}):l?t===!1?null:d(Ry,{handleSyncing:E,message:l,date:a||""}):m?t===!1?null:d(_y,{minVersion:u.minVersion}):s===null||s===!0?null:p?d(Fy,{date:a}):null}):null}h();var Vi='',Qr="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGQzczNiIgZD0iTTMgN2gxN3YxMEgzeiIvPjxwYXRoIGZpbGw9InVybCgjYSkiIGQ9Ik02Ljg5NyA5LjI0MmMuNDE1IDAgLjcyLjExMS45MjguMzQ3LjIwNy4yMzUuMzE4LjUyNy4zMTguODczcy0uMTEuNjIzLS4zMTguODQ1Yy0uMjA4LjIyMi0uNTI3LjMzMy0uOTI4LjMzM2gtMS4zM1Y5LjI0MmgxLjMzWm05Ljg0NiAxLjc4OGMuMzg4IDAgLjY2NS4xNTIuODQ1LjQ1Ny4xNTIuMjY0LjIzNS41ODIuMjYzLjk4NHYuMzE5YzAgLjQ5OS0uMDgzLjg4Ny0uMjYzIDEuMTkyLS4xOC4zMDQtLjQ1Ny40NTctLjgzLjQ1Ny0uMzg5IDAtLjY2Ni0uMTUzLS44NDYtLjQ0NC0uMTUyLS4yNjMtLjIzNS0uNTk1LS4yNjMtMS4wMTF2LS4yOTFjMC0uNDg1LjA4My0uODczLjI2My0xLjE3OC4xOC0uMzA1LjQ0My0uNDg1LjgzMS0uNDg1Wm0tMy40MDctMS4xMzZhMS4xNyAxLjE3IDAgMCAwLS43MDYuMjM1IDEuNDgyIDEuNDgyIDAgMCAwLS40MTUuNWwtLjA4My4xNjUtLjA3LS44MDNoLTEuMzU3djUuNDMyaDEuNDU0di0zLjY1OWEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiA4LjEySDQuMTE0djcuMzE3aDEuNDY4VjEyLjc5aDEuMzNjLjg0NCAwIDEuNDk1LS4yMDggMS45OC0uNjM4LjQ4NS0uNDMuNzItLjk4My43Mi0xLjY5cy0uMjM1LTEuMjYxLS43Mi0xLjY5Yy0uNDQzLS4zODktMS4wMzktLjYxLTEuNzczLS42MzhsLS4yMjEtLjAxNFptOS44NDcgMS43NzRjLS44MDMgMC0xLjQyNi4yNjMtMS44ODMuNzc2LS40MTYuNDctLjYzNyAxLjA2Ny0uNjc5IDEuNzczdi4zMzNjMCAuODE4LjIyMiAxLjQ4My42NzkgMS45OTUuNDU3LjUxMyAxLjA4Ljc3NiAxLjg4My43NzYuODA0IDAgMS40MjctLjI2MyAxLjg4NC0uNzc2LjQxNS0uNDcuNjM3LTEuMDUzLjY3OC0xLjc3M3YtLjMzM2MwLS44MTctLjIyMS0xLjQ4Mi0uNjc4LTEuOTk1LS40NTctLjUxMy0xLjA4LS43NzYtMS44ODQtLjc3NlpNMTguMDAzIDZhNiA2IDAgMCAxIDAgMTJIMFY5LjQyM0EzLjQyIDMuNDIgMCAwIDEgMy40MiA2aDE0LjU4M1oiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSI3LjUiIHgyPSIyMiIgeTE9IjE5IiB5Mj0iNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMyMjIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM2OTY5NjkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=",Yl="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzk5OSIgZD0iTTYuODk3IDMuMjQyYy40MTUgMCAuNzIuMTExLjkyOC4zNDcuMjA3LjIzNS4zMTguNTI2LjMxOC44NzMgMCAuMzQ2LS4xMS42MjMtLjMxOC44NDUtLjIwOC4yMjItLjUyNy4zMzMtLjkyOC4zMzNoLTEuMzNWMy4yNDJoMS4zM1ptOS44NDYgMS43ODhjLjM4OCAwIC42NjUuMTUyLjg0NS40NTcuMTUyLjI2NC4yMzUuNTgyLjI2My45ODR2LjMxOWMwIC40OTktLjA4My44ODctLjI2MyAxLjE5Mi0uMTguMzA0LS40NTcuNDU3LS44My40NTctLjM4OSAwLS42NjYtLjE1My0uODQ2LS40NDQtLjE1Mi0uMjYzLS4yMzUtLjU5NS0uMjYzLTEuMDExdi0uMjkxYzAtLjQ4NS4wODMtLjg3My4yNjMtMS4xNzguMTgtLjMwNS40NDMtLjQ4NS44MzEtLjQ4NVptLTMuNDA3LTEuMTM2YTEuMTcgMS4xNyAwIDAgMC0uNzA2LjIzNSAxLjQ4MiAxLjQ4MiAwIDAgMC0uNDE1LjVsLS4wODMuMTY1LS4wNy0uODAzaC0xLjM1N3Y1LjQzMmgxLjQ1NFY1Ljc2NGEuODguODggMCAwIDEgLjMxOS0uMzg4Yy4xMS0uMDY5LjI1LS4xMS40MTUtLjEyNGguMTI1bC41NC4wMTQuMTY2LTEuMzE3Yy0uMDctLjAxNC0uMTI0LS4wMjgtLjE5NC0uMDQxLS4wNTUtLjAxNC0uMTI0LS4wMTQtLjE5NC0uMDE0Wk02Ljg5NiAyLjEySDQuMTE0djcuMzE3aDEuNDY4VjYuNzloMS4zM2MuODQ0IDAgMS40OTUtLjIwOCAxLjk4LS42MzguNDg1LS40My43Mi0uOTgzLjcyLTEuNjlzLS4yMzUtMS4yNjEtLjcyLTEuNjljLS40NDMtLjM4OS0xLjAzOS0uNjEtMS43NzMtLjYzOGwtLjIyMS0uMDE0Wm05Ljg0NyAxLjc3NGMtLjgwMyAwLTEuNDI2LjI2My0xLjg4My43NzYtLjQxNi40Ny0uNjM3IDEuMDY3LS42NzkgMS43NzN2LjMzM2MwIC44MTguMjIyIDEuNDgzLjY3OSAxLjk5NS40NTcuNTEzIDEuMDguNzc2IDEuODgzLjc3Ni44MDQgMCAxLjQyNy0uMjYzIDEuODg0LS43NzYuNDE1LS40Ny42MzctMS4wNTMuNjc4LTEuNzczdi0uMzMzYzAtLjgxNy0uMjIxLTEuNDgzLS42NzgtMS45OTUtLjQ1Ny0uNTEzLTEuMDgtLjc3Ni0xLjg4NC0uNzc2Wk0xOC4wMDMgMGE2IDYgMCAwIDEgMCAxMkgwVjMuNDIzQTMuNDIgMy40MiAwIDAgMSAzLjQyIDBoMTQuNTgzWiIvPjwvc3ZnPg==",x3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAABC1BMVEUAAADt7vHt7vHn5+/v7+/u7vLs7O/Y2urv7+/I0uTu7/Ls7e/r6+/r7e/J1OTE0OGdrMHu7/Hu7/Lt7vHHz9/I0+Ps7O/V3eju7/GXp72YqL7s7u/I0uPH0+Pv7/OWpr3H0uLH0+OXp7vl6e67xtmquszi5u3W3ejAzd66x9jJ0+O5xdimtcmYprzI0+Ps7e+Yp73t7vHI0+OXp7309vnCzt/N1+Xd4+ucrMHp7PLa4evR2uff5O3F0OHo6+/j5+6uu82jssedrMKaqr/Y3+nP2ObR2OOpt8rm6e/k5+68yNq6xdW2w9XT3OivvdCmtcnu8fa/ytezwNKhsMTL09/c4+zZ3+m/y9zGz9seNO0nAAAAMXRSTlMA3+8gEJ9gECDfv3BAgO/v78+vkCCQUO/f37ewoIB/cGBAQO/v79/f39/Pz8/Pv6CfPHl8AQAAAyVJREFUSMedluda4kAUQAcUkGJB0bXturq9b3JTaUkITQOiYHv/JzEzmZYYIp/nhyYz93hnbqaI0ijVqoX6oRJyWNmt1tBqlIqVvBIjv1tcQfvALZlcYe0tGmEvQz3gWmrW4rJ0BeUVCutp3lpOeZXc2ts8YWZ72abw3mKWqOdMp+3U8OaWanSpKVeI1rOrdnTVuHyhOaq6/V1tsdoKr0ib+roF/khvJry++mMHwFPZ+8GLCbZGENJ7nI7b/amBaX0zP7W2fgOmM2Zrlw12T6EYC8D4HTXGFyBc8Tls0oQKQ/UBs7MdF3eo+FWJpyzIovAEuiUyyinFJzQ8APC4J0yPzJGIImVREeIEvF8k9Op61uuB3/PcQMfvEws8dSwi8UbZ5W9dlsD1QcKbkMaOKn2mSijmuWcQreNCkp6uEkx5rDX+0ooGaUEK15HZ5cE1VGWPbdI1gXRGpLfFxaqYIhloAJBp8sIWUEVOqPuwlHksZR3l5BnOIANdnmUO0QebFAayGMUKy0QHt44yNLr2+0nRxKK1VCI9QRgySIpN/Olxr7kAN3Dpn7h1hmSnPdkWLY/BxZwQdRyjmWBrmmbeuVjUNHsOELY80VVg8OLUk6J2o0XYw+AO/w7ADRsti4gDvlj/ic/YIeJLhk74wzFhLn3IE7bkuqw4OF8qJjxKVa3yRY7FazwdEuTaLN6eOzRvT15zNbSel8rqA5g4yIVbJt6CS8WJVJs8Qmyx2iQlFWdCDGAWPfTlhXMiHR0POOUChjjozuJDdWbD6GGAE3bF0YHHKlLq1lBLp4m72/wrYjbp2yUxzQzvQexGJKVUSKfhpGg3ZNMN8kzcQDQlN0m/nfTuo3b5PGYpxR4hIWNpGdjTqPEdj8pt8H9T5KOVutP7dkiTjJF48dM4cV85JC4dgx3ke0iwXqc3aCb9LrvKBRvhthwbGRJNKiYozLa6Aib3hFleRSyn/GvVSJhXo95iNom3/WygFEr7sbuUX1SCfbSEj2X59k6a5XO0lMa+8BLm1vsSyqJxWk4e6V6mJg/4b+KS/Hx6jlbk4uz4+Ag7R3/+n12khjwDw+rmuecPQ74AAAAASUVORK5CYII=";function Jl(e){let t=hn(),{onTranslateTheMainPage:n,onUserConfigChange:a,request:r,onTranslateLocalHtmlFile:o,onSwitchTranslationMode:u,onTranslateLocalSubtitleFile:i,onSetBuildinConfig:s,pageStatus:c,openEbookBuilderPage:l,openPricingPage:g,openEbookViewerPage:p,config:f,openAboutPage:m,onTranslateTheWholePage:y,onToggleEnabled:v,openOptionsPage:b,ontranslateToThePageEndImmediately:S,onSetPageLanguage:A,onToggleTranslate:N,onTranslateLocalPdfFile:_,onTranslatePdf:x,onRestorePage:E,ctx:T,currentUrl:w,currentLang:C,onClose:I,onTranslatePage:M,onSetLocalConfig:D,onMouseTriggerChanged:F,errorMsg:U,disabledButton:z,noPermissionPDF:B}=e,k=a,[L,O]=$(""),[K,H]=$(U),[V,q]=$(null),[oe,Q]=$(null),{t:J,lang:ye}=ue(),Te=70;ye.startsWith("zh")||(Te=75);let ie=null,Y=null,ce=null,fe=null,ge=null,Ee=null,Le=null,ve=null,ee=null,De=null,_e=null,je=null;he(()=>{Xe.get(ct,null).then(W=>{W?(q(W),Q(Xt(W))):Q(!1)}).catch(W=>{Q(!1)})},[]);let We=!0,Et=ot();if(f){Et&&f&&(We=f.generalRule.showSponsorOnSafari);let{translationService:W,translationServices:pe,translationUrlPattern:nt}=f;Mn[W]&&(ve=cl("translationService",W,T)),pe&&pe[W]?je=pe[W]||{}:je={};try{ee=new URL(w||"")}catch{}if(w&&h3(w)){De=y3(ee.hostname),_e=T3(w);let{matches:Be,excludeMatches:Ie}=nt;Y=Be.includes(De),ie=Be.includes(ee.hostname),fe=Ie.includes(De),ce=Ie.includes(ee.hostname),Ee=Be.includes(_e),Le=Ie.includes(_e)}}if(f&&C&&C!=="auto"){let{translationLanguagePattern:W}=f,{matches:pe}=W;pe.includes(C)?ge=!0:ge=!1}let Vt=W=>{W.preventDefault(),b()},qa=W=>{k(pe=>(pe.alpha?O("Success disable alpha!"):O("Success enable alpha!"),{...pe,alpha:!pe.alpha}))},nn=W=>{k(pe=>({...pe,translationMode:W})),u(W)},Jn=()=>{k(W=>({...W,translationArea:"body"})),y()},ga=()=>{k(W=>({...W,translationArea:"main"})),n()},ze=(W,pe,nt,Be)=>{if(W==="default"){k(jn=>{let cn={...jn.translationUrlPattern};return{...jn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...jn.translationUrlPattern,matches:at([ee?.hostname,De,w],cn.matches),excludeMatches:at([ee?.hostname,De,w],cn.excludeMatches)}}});return}let Ie=W,Qn=Ie==="matches"?"excludeMatches":"matches";ee&&k(jn=>{let cn={...jn.translationUrlPattern};return cn[Ie]=bn(pe,cn[Ie]),Be.length>0&&(cn[Ie]=at(Be,cn[Ie])),cn[Qn]=at(nt,cn[Qn]),{...jn,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...jn.translationUrlPattern,...cn}}}),Ie==="matches"&&c==="Original"?setTimeout(()=>{M(),I()},100):Ie==="excludeMatches"&&c==="Translated"&&setTimeout(()=>{E(),I()},100)},an=W=>{if(!W){k(Be=>{let Ie={...Be.translationLanguagePattern};return{...Be,translationLanguagePattern:{...Be.translationLanguagePattern,matches:at(C,Ie.matches),excludeMatches:at(C,Ie.excludeMatches)}}});return}let pe=W,nt=pe==="matches"?"excludeMatches":"matches";C&&k(Be=>{let Ie={...Be.translationLanguagePattern};return Ie[pe]=bn(C,Ie[pe]),Ie[nt]=at(C,Ie[nt]),{...Be,translationLanguagePattern:{...Be.translationLanguagePattern,...Ie}}}),pe==="matches"&&c==="Original"&&setTimeout(()=>{M(),I()},100)},bt=ee?.pathname.toLowerCase().endsWith(".pdf"),Ze=J("translate");c==="Translated"||c==="Error"?Ze=J("show-original"):c==="Original"?bt?Ja()&&ee.protocol==="file:"||B?Ze=J("translate-firefox-local-pdf"):me()?Ze=J("noSupportTranslate-pdf"):Ze=J("translate-pdf"):Ze=J("translate"):Ze=J(c);let ln=J("translateToThePageEndImmediately");(c==="Original"||c==="Translated")&&(f.shortcuts.toggleTranslatePage&&(Or()&&T.rule.fingerCountToToggleTranslagePageWhenTouching>=2?Ze+=` (${J(`fingers.${T.rule.fingerCountToToggleTranslagePageWhenTouching}`)})`:Ze+=` (${f.shortcuts.toggleTranslatePage})`),f.shortcuts.toggleTranslateToThePageEndImmediately&&(ln+=` (${f.shortcuts.toggleTranslateToThePageEndImmediately})`));let Yt=[];T&&(Yt=Ei(T,"translationService"));let ma=W=>{W.preventDefault(),I()},kt=Zr(T.config.translationService,T.config.targetLanguage),kn=Ee||ie||Y,Ve=()=>Ee?d("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[d("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!Ee,onChange:W=>{let pe=W.target.checked;ze(pe?"matches":"default",_e,[_e],[])}}),J("alwaysTranslateSomePage")]}):ie?d("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[d("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!ie,onChange:W=>{let pe=W.target.checked;ze(pe?"matches":"default",ee.hostname,[ee.hostname,De,_e],[De])}}),J("alwaysTranslateSomeSiteOrWildSite")]}):Y?d("label",{for:"alwaysTranslateWithUrl",class:"text-sm",children:[d("input",{type:"checkbox",id:"alwaysTranslateWithUrl",name:"alwaysTranslateWithUrl",checked:!!Y,onChange:W=>{let pe=W.target.checked;ze(pe?"matches":"default",De,[_e,ee.hostname,De],[ee.hostname])}}),J("alwaysTranslateSomeSiteOrWildSite")]}):null;return d("div",{children:[d("div",{class:"popup-container px-6 pt-6 max-content",children:[d("div",{class:"text-sm",children:[d("div",{class:"flex justify-between mb-3 items-center",children:[d("label",{class:"inline-block text-label",children:[J("popupSourceLanguage"),"\uFF1A"]}),d(On,{maxWidth:186,items:sn.map(W=>({label:Mt(W,f.interfaceLanguage),value:W,selected:W===T.sourceLanguage,onSelected:pe=>{A(pe.value)}}))})]}),f&&f.targetLanguage&&d("div",{class:"flex items-center justify-between mb-3",children:[d("label",{class:"inline-block text-label",children:[J("popupTarget"),"\uFF1A"]}),d(On,{maxWidth:186,items:kt.filter(W=>W!=="auto").map(W=>({label:Mt(W,f.interfaceLanguage),value:W,selected:W===f.targetLanguage,onSelected:pe=>{k(nt=>({...nt,targetLanguage:pe.value}))}}))})]}),ve&&Yt.length>0&&d(Fe,{children:[d("div",{class:"flex items-center justify-between mb-3",children:[d("label",{class:"inline-block text-label",children:[J("popupService"),"\uFF1A"]}),d(On,{maxWidth:186,items:Yt.map(W=>({label:`${J("translationServices."+W.id)}${W.ok?"":" "+(" "+(!oe&&!Et&&W.providers&&W.providers.length>0?J("goLoginOrAction"):J("needAction")))}`,value:W.id,selected:W.selected,onSelected:pe=>{let nt=Yt.find(Be=>Be.id===pe.value);if(nt.ok){if(k(Be=>({...Be,translationService:nt.id})),c!="Translated")return;nt.props.length===0?setTimeout(()=>{M()},1):setTimeout(()=>{E()},1)}else k(Be=>({...Be,translationService:nt.id})),setTimeout(()=>{b()},100)}}))})]}),je&&ve.props.length>0&&ve.props.map((W,pe)=>d("div",{class:"pl-4 text-sm",children:d(Gl,{field:W,value:je[W.name],onChange:nt=>{k(Be=>{let Ie=Be.translationServices||{},Qn=Ie[ve.id]||{};return setTimeout(()=>{E()},1),{...Be,translationServices:{...Ie,[ve.id]:{...Qn,[W.name]:nt}}}})}},"field-"+pe)},"service"+pe))]}),ee&&d("div",{class:"flex items-center justify-between mb-3",children:[d("label",{class:"inline-block text-label",children:J("forThisSite")}),d(On,{maxWidth:186,items:[{label:J("default"),value:"default",selected:ie===!1&&ce===!1&&!Y&&!fe&&!Ee&&!Le,onSelected:()=>{ze("default",ee.hostname,[],[]);let W=ee.hostname,pe=T.localConfig.tempTranslationUrlMatches||[],nt=pe.filter(Ie=>Ie.match!==W),Be=!1;nt.length!==pe.length&&(Be=!0),Be&&D({...T.localConfig,tempTranslationUrlMatches:[...nt]})}},_e&&{label:J("alwaysTranslateSomeSite",{hostname:J("currentUrl")}),value:"matchesUrl",selected:Ee,onSelected:()=>{ze("matches",_e,[_e],[])}},{label:J("alwaysTranslateSomeSite",{hostname:ee.hostname}),value:"matches",selected:ie,onSelected:W=>{ze(W.value,ee.hostname,[ee.hostname,De,_e],[De])}},De&&{label:J("alwaysTranslateSomeSite",{hostname:De}),value:"matchesWild",selected:Y,onSelected:()=>{ze("matches",De,[_e,ee.hostname,De],[ee.hostname])}},_e&&{label:J("neverTranslateSomeSite",{hostname:J("currentUrl")}),value:"excludeMatchesUrl",selected:Le,onSelected:()=>{ze("excludeMatches",_e,[_e],[])}},{label:J("neverTranslateSomeSite",{hostname:ee.hostname}),value:"excludeMatches",selected:ce,onSelected:W=>{ze(W.value,ee.hostname,[ee.hostname,De,_e],[De])}},De&&{label:J("neverTranslateSomeSite",{hostname:De}),value:"excludeMatchesWild",selected:fe,onSelected:()=>{ze("excludeMatches",De,[ee.hostname,_e,De],[ee.hostname])}}].filter(Boolean)})]}),F&&ua()&&d("div",{class:"flex items-center justify-between mb-3",children:[d("label",{class:"inline-block text-label",children:[J("mouse-translate"),"\uFF1A"]}),d(On,{maxWidth:186,items:Ca.filter(W=>!(Ca.includes(f.generalRule.mouseHoverHoldKey)&&W==="OtherCustom")).map(W=>{let pe=J("mouseHoldKey",{key:W}),nt=Ca.includes(f.generalRule.mouseHoverHoldKey),Be=W===f.generalRule.mouseHoverHoldKey;return W==="Auto"?pe=J("mouseHoldKeyAuto"):W==="Off"?pe=J("mouseHoldKeyOff"):W==="OtherCustom"?pe=nt?J("mouseHoldKeyOther"):J("mouseHoldKeyCustomKey",{key:f.generalRule.mouseHoverHoldKey}):W==="Other"&&(pe=J("mouseHoldKeyOther")),nt||W==="OtherCustom"&&(Be=!0),{label:pe,value:W,selected:Be,onSelected:Ie=>{Ie.value==="Other"?b("#interface"):F(Ie.value)}}})})]})]}),d("div",{class:"",children:d("button",{class:"py-2 mt-1 mb-5 main-button ",onClick:()=>{bt?x&&x():N()},"aria-busy":c==="Translating",disabled:z||c==="Translating",children:Ze})}),d("div",{class:"text-sm",children:L}),d("div",{class:`pb-2 text-sm ${K?"":"display-none"}`,children:K}),d("div",{class:"flex items-center justify-between flex-wrap",children:[kn?d(Ve,{}):C&&C!=="auto"?d("label",{for:"alwaysTranslateThisLanugage",class:"text-sm text-label text-overflow-ellipsis max-w-20",children:[d("input",{type:"checkbox",id:"alwaysTranslateThisLanugage",name:"alwaysTranslateThisLanugage",checked:!!ge,onChange:W=>{let pe=W.target.checked;an(pe?"matches":void 0)}}),J("alwaysTranslateSomeLanguage",{language:Mt(C,f.interfaceLanguage,!1,!0)})]}):d("span",{}),d("div",{class:`flex flex-end flex-grow ${K?"display-none":""}`,children:d("span",{class:"immersive-translate-no-select muted text-sm",onClick:au(7)(qa),children:["V",t,f.enabled?null:d("a",{href:"#",onClick:v,children:[" ","(",J("hasBeenDisabled"),")"]})]})})]})]}),d("footer",{children:[d("div",{class:"px-6 text-label",children:d(Vl,{isShowError:!1,request:r,setStorageBuildinConfig:s})}),d("div",{class:"px-3 py-2-5 text-sm flex items-center justify-between popup-footer text-label",children:[d("div",{class:"flex flex-row items-center justify-center secondary clickable",style:{width:70},onClick:Vt,children:[d(Wl,{}),d("span",{class:"ml-1",children:J("options")})]}),We?d("a",{title:J(oe?"popup.openProForPro":"popup.openPro"),target:"_blank",href:oe?Dr:H0,children:d("img",{src:oe?Qr:Yl})}):oe&&d("a",{title:J(oe?"popup.openProForPro":"popup.openPro"),target:"_blank",href:oe?Dr:H0,children:d("img",{src:oe?Qr:Yl})}),d($l,{label:J("more"),showArrow:!0,maxWidth:Te,onSelected:W=>{W.value==="openPremium"?(globalThis.open(Va),I()):W.value==="changeToOnlyTranslationMode"?nn("translation"):W.value==="changeToDualTranslationMode"?nn("dual"):W.value==="translateTheWholePage"?y():W.value==="translateToThePageEndImmediately"?S():W.value==="translateTheMainPage"?n():W.value==="showTranslationOnly"||(W.value==="translateLocalPdfFile"?_&&_():W.value==="translateLocalHtmlFile"?o&&o():W.value==="translateLocalSubtitleFile"?i&&i():W.value==="donate"?(globalThis.open(f.donateUrl),I()):W.value==="feedback"?(globalThis.open(f.feedbackUrl),I()):W.value==="options"?(b(),I()):W.value==="changeToTranslateTheWholePage"?Jn():W.value==="changeToTranslateTheMainPage"?ga():W.value==="about"?m():W.value==="toggleEnabled"?v():W.value==="openEbookViewer"?p():W.value==="openEbookBuilder"?l():W.value==="goPro"&&g())},menus:[f.translationMode==="dual"&&{label:"\u{1F524} "+J("changeToOnlyTranslationMode"),value:"changeToOnlyTranslationMode"},f.translationMode==="translation"&&{label:"\u{1F521} "+J("changeToDualTranslationMode"),value:"changeToDualTranslationMode"},f.translationArea==="main"&&{label:"\u{1F480} "+J("changeToTranslateTheWholePage"),value:"changeToTranslateTheWholePage"},f.translationArea==="body"&&{label:"\u{1F4D6} "+J("changeToTranslateTheMainPage"),value:"changeToTranslateTheMainPage"},{label:"\u26A1 "+ln,value:"translateToThePageEndImmediately"},{label:"\u{1F4D8} "+J("browser.openEbookViewer"),value:"openEbookViewer"},{label:"\u{1F4DA} "+J("browser.openEbookBuilder"),value:"openEbookBuilder"},{label:"\u{1F4C1} "+J("browser.translateLocalPdfFile"),value:"translateLocalPdfFile"},!me()&&{label:"\u{1F310} "+J("browser.translateLocalHtmlFile"),value:"translateLocalHtmlFile"},{label:"\u{1F4FA} "+J("browser.translateLocalSubtitleFile"),value:"translateLocalSubtitleFile"},oe===!1&&We&&{label:"\u{1F451} "+J("upgradeToPro"),value:"goPro"},{label:"\u2764\uFE0F "+J(We?"aboutLabel":"aboutLabelWithoutSponsor"),value:"about"}].filter(Boolean)})]})]})]})}h();h();async function E3(e){try{let t=new Date;j.debug("cron task start, next will run at",new Date(t.getTime()+e).toLocaleString()),await X.storage.local.set({[Ng]:t.toISOString()}),await Iy(),me()||await C3()}catch(t){j.error("run cron task failed",t)}}async function Iy(){try{let e=await Nn(),t=await se({url:Ea}),n=e.buildinConfigUpdatedAt,a=new Date(n),r=t.buildinConfigUpdatedAt,o=new Date(r),u=t.minVersion,i=X.runtime.getManifest().version;Na(i,u)?o>a?(await X.storage.local.set({buildinConfig:t}),j.info(`sync remote rules success, latest: ${new Date(r).toLocaleString()}`)):j.debug(`no need to sync rules, latest: ${a}`):j.info(`local version is too old, please update to ${u} or later`)}catch(e){j.error("sync rules error: ",e)}}h();h();function Yi(){let e=new Date;return`${e.getFullYear()}-${e.getMonth()+1}-${e.getDate()}_${e.getHours()}-${e.getMinutes()}-${e.getSeconds()}`}h();async function Ua(){let e=["bingGlobalConfig","baiduGlobalConfig",kg,Ta];for(let t of e)await X.storage.local.remove(t);me()||await lp(),await ol()}function v3(){return me()?Promise.resolve("0 B"):Tl()}h();h();var Vn=class{accessToken;constructor(t){this.accessToken=t}async listAll(){let t=[],n="";do{let{nextPageToken:a,files:r}=await this.list(n).catch(o=>{throw o});t.push(...r),n=a||""}while(n);return t}async getConfig(t){try{return await(await fetch(`https://www.googleapis.com/drive/v3/files/${t}?alt=media`,{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(n){return j.error("get config error, use default",n),{}}}async delete(t){await fetch(`https://www.googleapis.com/drive/v3/files/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${this.accessToken}`}})}findByName(t){return this.list(void 0,`name = '${t}'`)}uploadConfig(t,n=$u){let a=new Blob([JSON.stringify(t,null,2)],{type:"application/json"});return this.upload({name:n,parents:["appDataFolder"],mimeType:"application/json"},a)}updateConfig(t,n){let a=new Blob([JSON.stringify(n,null,2)],{type:"application/json"});return this.updateContent(t,a)}async upload(t,n){let a=new FormData;a.append("metadata",new Blob([JSON.stringify(t)],{type:"application/json; charset=UTF-8"})),a.append("file",n);let r=await fetch("https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart",{method:"POST",headers:{Authorization:`Bearer ${this.accessToken}`},body:a});return r.ok?await r.json():Promise.reject(r.text())}async list(t,n){let a=new URL("https://www.googleapis.com/drive/v3/files");t&&a.searchParams.append("pageToken",t),n&&a.searchParams.append("q",n),a.searchParams.append("spaces","appDataFolder"),a.searchParams.append("fields","files(id,name,createdTime,modifiedTime,size)"),a.searchParams.append("pageSize","100"),a.searchParams.append("orderBy","createdTime desc");try{return j.debug("list api:",a.toString(),this.accessToken),await(await fetch(a.toString(),{headers:{Authorization:`Bearer ${this.accessToken}`}})).json()}catch(r){throw j.error("fetch google ip error",r),r}}async updateContent(t,n){return await(await fetch(`https://www.googleapis.com/upload/drive/v3/files/${t}?uploadType=media`,{method:"PATCH",headers:{Authorization:`Bearer ${this.accessToken}`},body:n})).text()}};h();h();function w3(e,t){let n=["https://www.googleapis.com/auth/drive.appdata"];return`https://accounts.google.com/o/oauth2/v2/auth?client_id=${Ku}&response_type=token&redirect_uri=${encodeURIComponent(t)}&scope=${encodeURIComponent(n.join(" "))}&state=${encodeURIComponent(JSON.stringify(e))}`}function k3(e){let t=e.match(/[#?](.*)/);return!t||t.length<1?null:{access_token:new URLSearchParams(t[1].split("#")[0]).get("access_token")}}async function Ql(e,t,n,a,r,o,u){if(j.debug(`autoSyncStrategy accessToken: ${e}`),t===null){j.debug("autoSyncStrategy settings is null");return}let i=new Vn(e);try{let s=(await i.findByName($u)).files;j.debug("files",s);let c=s[0]?.id,l=null;if(c&&(l=await i.getConfig(c).then(g=>({fileId:c,config:g}))),l){let{config:g,fileId:p}=l,f=g.updatedAt?new Date(g.updatedAt):new Date(0),m=t.updatedAt?new Date(t.updatedAt):new Date(0);if(j.debug("remoteUpdatedAt",f,"localUpdatedAt",m),f>m)j.debug("remote is newer, update local config",g),n(g),o&&o(!0);else if(f.getTime()===m.getTime())j.debug("remote and local are the same, do nothing"),o&&o(!1);else if(f{r.status!=200&&u("Token validation error"),r.json().then(i=>{i.aud&&i.aud===Ny?o(e):u("Token validation error")})})}return fetch(n).then(a)}function A3(e,t=!1){let n=Uy;if(typeof window<"u"&&window.location.protocol.startsWith("http")){let r=window.location.hostname,o=window.location.port;n=`${window.location.protocol}//${r}${o?`:${o}`:""}/auth-done/`}return new ja(e,n).auth(t)}function Zl(e,t=!1){return A3(e,t).then(n=>n.access_token||null)}var jy="https://oauth2.googleapis.com/revoke",ja=class e{CLASSNAME="GoogleAuth";_state;_redirectUrl;constructor(t,n){this._state=t,this._redirectUrl=n}static revoke(t){let n=`${jy}?token=${t}`;return fetch(n,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then(async a=>(await e.removeAuthInfo(),So()&&globalThis.location.reload(),a))}static async getAuthInfo(){let t=await X.storage.local.get(Ta);if(t[Ta])return t[Ta]}static async removeAuthInfo(){return await X.storage.local.remove(Ta)}static setAuthInfo(t){return X.storage.local.set({[Ta]:t})}async auth(t=!1){let n=await e.getAuthInfo();if(j.debug(this.CLASSNAME,"token from cache:",n),n&&n.access_token&&await S3(n.access_token).then(o=>!0).catch(o=>!1))return Promise.resolve(n);let a=w3(this._state,this._redirectUrl);return j.debug(this.CLASSNAME,"auth url: "+a),So()?this.userscriptAuthWorkflow(a,t):this.extensionAuthWorkflow(a).then(r=>(e.setAuthInfo(r),r))}async userscriptAuthWorkflow(t,n){return n&&await X.storage.local.set({[Ao]:!0}),globalThis.open(t,"_self"),Promise.resolve({})}extensionAuthWorkflow(t){let n,a=!1;return new Promise((r,o)=>{let u=()=>{X.tabs.onUpdated.removeListener(i),X.tabs.onRemoved.removeListener(s)},i=(p,f,m)=>{if(j.debug(this.CLASSNAME,"create tab onUpdated: "+m.url),n===p){let y=new URL(m.url||""),v=k3(m.url);y.pathname.startsWith("/auth-done")&&v?.access_token&&(j.debug(this.CLASSNAME,"auth done: "+m.url),r({access_token:v.access_token}),a=!0,X.tabs.remove(p),u())}},s=(p,f)=>{j.debug(this.CLASSNAME,"create tab onRemoved: "+p),(p===n||!a)&&(u(),o(new Error("auth failed")))},c=Math.min(500,screen.availWidth),l=Math.min(650,screen.availHeight),g;X.windows===void 0?g=X.tabs.create({url:t}).then(p=>{n=p.id}):g=X.windows.create({url:t,type:"popup",width:c,height:l,left:Math.round((screen.width-c)/2),top:Math.round((screen.height-l)/2)}).then(p=>{n=p.tabs[0].id}),g.then(()=>{X.tabs.onUpdated.addListener(i),X.tabs.onRemoved.addListener(s)}).catch(p=>{j.debug(this.CLASSNAME,"create tab failed: "+p),o(p)})})}};function zy(e){let{t}=ue(),{accessToken:n,id:a,listAllFiles:r}=e,[o,u]=$(!1);function i(s,c){s.preventDefault(),u(!0),new Vn(n).delete(c).catch(l=>{Bt(t("delete"))}).then(()=>r()).finally(()=>u(!1))}return d("a",{href:"#",className:"secondary margin-left text-sm",onClick:s=>i(s,a),"aria-busy":o,children:t("delete")})}function Xl(e){let{onClose:t,accessToken:n,authExpire:a}=e,{t:r}=ue(),[o,u,i,s]=ht(),[c,l]=$([]),[g,p]=$(!0),[f,m]=$(!1),[y,v]=$({});he(()=>{n&&S().then(()=>p(!1))},[n]);let b=E=>{E.target&&E.target.id==="immersive-translate-overlay"&&t()};function S(){return new Vn(n).listAll().then(T=>{l(T)}).catch(T=>a())}function A(E){if(E.preventDefault(),c.length>=10)return Bt(r("maxBackupFiles",{count:10}));m(!0);let T="immersive-translate-config-"+Yi()+".json";new Vn(n).uploadConfig(o,T).catch(w=>{Bt(r("uploadFail"))}).then(()=>S()).finally(()=>m(!1))}function N(E,T,w){E.preventDefault(),v({[w]:!0}),new Vn(n).getConfig(T).then(C=>{u(()=>({...C})),ut(r("importSuccess"))}).catch(C=>{j.error(C),Bt(r("importFail"))}).finally(()=>v({}))}function _(E,T){new Vn(n).getConfig(E).then(w=>{let C=document.createElement("a");C.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(JSON.stringify(w,null,2))),C.setAttribute("download",T),C.style.display="none",document.body.appendChild(C),C.click(),document.body.removeChild(C)}).catch(w=>{j.error("download google config file failed",w),Bt(r("downloadFail")+": "+w.message)})}function x(E){E.preventDefault(),u({...o,autoSync:!1}),ja.revoke(n).then(()=>t())}return d("dialog",{id:"immersive-translate-overlay",onClick:b,open:!0,children:d("article",{class:"md:w-[32rem] px-4",children:[d("a",{href:"#",title:r("clickToDownload"),"aria-label":"Close",className:"close","data-target":"modal-example",onClick:E=>{E.preventDefault(),t()}}),d("h4",{children:r("syncTitle")}),d("div",{className:"mb-4",children:c.map((E,T)=>d("div",{class:"flex flex-wrap justify-between",children:[d("div",{class:"mr-2 mb-2",children:[d("div",{children:d("a",{href:"#",onClick:w=>{w.preventDefault(),_(E.id,E.name)},class:"block truncate w-40 sm:w-auto",children:E.name.replace("immersive-translate-","")})}),d("div",{class:"text-xs text-gray-500",children:[new Date(E.modifiedTime).toLocaleString(),",\xA0",Vo(parseInt(E.size))]})]}),d("div",{children:[d("a",{href:"#",role:"button",className:"margin-right secondary","aria-busy":y[T],disabled:y[T],onClick:w=>N(w,E.id,T),children:r("import_hint")}),d(zy,{accessToken:n,id:E.id,listAllFiles:S})]})]},"file"+T))}),d("div",{className:"flex items-center",children:[d("a",{href:"#",role:"button",className:"mr-4","data-target":"modal-example","aria-busy":f,onClick:A,disabled:g,children:r("create_new_backup")}),d("a",{href:"#",className:"secondary text-sm","data-target":"modal-example",onClick:x,disabled:g,children:r("revokeAuth")})]})]})})}var ec=j;function Hy(){let[e,t]=$(null);return he(()=>{Ge().then(n=>{t(n)})},[]),e}function L3(){let[e,t]=$(null);return he(()=>{$n().then(a=>{t(a)})},[]),[e,a=>{t(a),yn(a)}]}function tc(){let[e,t,n,a,r]=ht(),o=Hy(),{t:u,setLang:i}=ue(),[s,c]=L3();if(!o)return null;return d("div",{class:"pb-4",children:[d(l,{}),d(g,{}),d(p,{}),d(f,{config:o})]});function l(){let m=b=>{b.preventDefault(),confirm(u("confirmResetConfig"))&&(r({...tr(),updatedAt:new Date().toISOString()}),Sa().catch(S=>{ec.error("clean local config error",S)}),ka().catch(S=>{ec.error("clean buildin config error",S)}),Ua().catch(S=>{ec.error("clean cache error",S)}),ut(u("resetSuccess")),setTimeout(()=>{window.location.reload()},500))},y=b=>{t(()=>({...b}))},v=b=>{b.preventDefault();let S=document.createElement("input");S.setAttribute("type","file"),S.setAttribute("accept","text/plain"),S.style.display="none",document.body.appendChild(S),S.oninput=A=>{let N=A.target,_=new FileReader;_.onload=function(){try{let x=JSON.parse(_.result);y(x),ut(u("successImportConfig"))}catch(x){Bt(`Invalid JSON ${x.message}`)}},_.readAsText(N.files[0])},S.click(),document.body.removeChild(S)};return d(Fe,{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("import_export_title")})}),d("div",{class:"pb-2",children:[d("a",{class:"mr-2 secondary mb-2 !text-sm",onClick:v,href:"#",role:"button",children:[$y,u("import")]}),d("a",{href:"#",class:"secondary mr-2 mb-2 !text-sm",onClick:b=>{b.preventDefault();let S=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});xo.saveAs(S,"immersive-translate-config-"+Yi()+".txt")},role:"button",children:[Gy,u("export")]}),d("a",{href:"#",onClick:m,class:"secondary text-sm",children:u("reset")})]})]})}function g(){return d("details",{class:"mt-4 mb-6",children:[d("summary",{children:u("clickToExpandConfig")}),d("pre",{children:d("code",{children:JSON.stringify(e,null,2)})})]})}function p(){let[m,y]=$(!1),[v,b]=$(!1),[S,A]=$(!1),[N,_]=$("");he(()=>{if(So()&&n){let D=localStorage.getItem(Ao);if(localStorage.removeItem(Ao),D){let F=globalThis.localStorage.getItem(B0);j.debug("import_export","rawAuthInfoStr",F);let U={},z={},B="";if(F){globalThis.localStorage.removeItem(B0);try{U=JSON.parse(F),z=U.state||{},B=U.access_token||""}catch(k){j.error("parse state error",k)}}if(B&&z&&(ja.setAuthInfo({access_token:B}),j.debug("import_export","Google OAuth:",U),U)){let k=U.state;j.debug("state",k),k?.mode==="auto"?(b(!0),I(B)):(A(!0),w(B))}}}},[n]);function x(){b(!0),Zl({source:globalThis.location.href,mode:"auto"},!0).then(D=>{j.debug("import_export","Google OAuth:"+D),D!==null&&I(D)}).catch(D=>{D&&D.message==="tokenValidateErrorRedirectToAuthUrl"?j.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):C(D)})}function E(){A(!0),y(!1),Zl({source:globalThis.location.href,mode:"manual"},!0).then(D=>{j.debug("import_export","Google OAuth:"+D),D!==null&&w(D)}).catch(D=>{D&&D.message==="tokenValidateErrorRedirectToAuthUrl"?j.debug("tokenValidateErrorRedirectToAuthUrl, ignore"):C(D)})}function T(){_(""),x()}function w(D){_(D),A(!1),y(!0)}function C(D){b(!1),A(!1),y(!1),t({...e,autoSync:!1}),j.error("import_export","Google OAuth error:"+D),Bt(u("authFail"))}function I(D){b(!0),j.debug("sync latest with drive",D,e),_(D),Ql(D,e,F=>{F.interfaceLanguage&&i(F.interfaceLanguage),r(F)},F=>c({...s,lastSyncedAt:F}),F=>t({...e,updatedAt:F}),F=>{F?ut(u("successSyncConfig")):ut(u("successSyncButNoChange"))},F=>Bt(u("syncFail")+F)).finally(()=>{b(!1)})}function M(D){t({...e,autoSync:D.checked}),D.checked&&x()}return d(Fe,{children:[d("hgroup",{class:"my-2",children:[d("h5",{children:u("syncToCloud")}),d("h6",{class:"!text-sm",children:u("syncToCloudDescription")})]}),d("div",{children:[d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:D=>{D.preventDefault(),x()},"aria-busy":v,href:"#",role:"button",children:[v?d(Fe,{}):D3,u("syncToGoogleDrive")]}),d("a",{href:"#","aria-busy":S,onClick:D=>{D.preventDefault(),E()},class:"secondary text-sm",children:u("backupToCloud")})]}),d("div",{class:"text-xs text-gray-500",children:s?.lastSyncedAt&&u("lastSyncedAt",{date:new Date(s.lastSyncedAt).toLocaleString()})}),s?.lastSyncErrorMessage&&d("p",{class:"mt-2 text-xs text-red-500"}),m?d(Xl,{onClose:()=>y(!1),authExpire:T,accessToken:N}):null]})}function f({config:m}){let y=M3(),[v,b]=$(!1),[S,A]=$(""),[N,_]=$(""),[x,E]=$(null),{t:T}=ue();if(!y||!y.token)return null;async function w(){try{if(v)return;b(!0),_("");let M=await Ji(y?.token,e,r),D="";switch(M){case"upload":{D=T("successSyncConfigToAccount");break}case"override":{D=T("successSyncConfigInAccount");break}default:D=T("syncConfigNoUpdate")}A(D)}catch(M){A(""),_(M.message)}finally{b(!1)}}let C=M=>{c({...s,proAutoSync:M})},I=s&&s.proAutoSync!==void 0?s.proAutoSync:!0;return d(Fe,{children:[d("hgroup",{class:"my-2 mt-4",children:[d("h5",{children:T("syncToAccount")}),d("h6",{class:"!text-sm",children:T("syncToAccountDescription")})]}),d("fieldset",{class:"my-4",children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onChange:()=>{C(!I)},checked:I}),T("enableAutoSyncUserSettings")]})}),d("a",{className:"mr-4 secondary mb-2 !text-sm ",onClick:M=>{M.preventDefault(),w()},"aria-busy":v,href:"#",role:"button",children:[D3," ",T("syncToAccountButton")]}),N?d("p",{class:"text-xs text-red-500",children:N}):d("p",{class:"text-xs text-gray-500",children:S||s?.accountLastSyncedAt&&T("lastSyncedAt",{date:kp(s.accountLastSyncedAt)})})]})}}async function Ji(e,t,n){try{if(t===null)return"noupdate";let a=await Wy(e),r=await $n();r.accountLastSyncedAt=Date.now(),j.debug("settings",t),j.debug("local settings.updatedAt",t.updatedAt),j.debug("remote settings.updatedAt",a.updatedAt),j.debug("last synced at",r.accountLastSyncedAt);let o=!1;if(t.updatedAt&&(!a||!a.updatedAt)&&(o=!0),!o&&t.updatedAt>a.updatedAt&&(o=!0),j.debug("isUpload",o),o)return await Ky(e,t),await yn(r),"upload";let u=!1;return a.updatedAt&&(!t||!t.updatedAt)&&(u=!0),!u&&t.updatedAt0&&Xe.remove(ct),a}}function En(e,t){let n=M3(),[a,r]=L3();he(()=>{!n||!n.token||a&&a.proAutoSync===!1||qy(n)&&Ji(n.token,e,t)},[e,n])}function qy(e){return Xt(e)?!0:new Date(e.createTime){Xe.get(ct,null).then(n=>{t(n)})},[t]),e}function Wy(e){return(location.href?.indexOf("popup.html")>0?Pn:se)({responseType:"json",url:Bo+"/v1/user/settings",method:"get",headers:{token:e}}).then(n=>n.data)}function Ky(e,t){return(location.href?.indexOf("popup.html")>0?Pn:se)({responseType:"json",url:Bo+"/v1/user/settings",method:"post",headers:{token:e,"content-type":"application/json"},body:JSON.stringify(t)}).then(a=>a.data)}var D3=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",children:d("path",{fill:"currentColor",d:"M15.375 19.25q-.525.25-.95-.038q-.425-.287-.425-.937q0-.25.163-.487q.162-.238.412-.363q1.575-.75 2.5-2.225T18 11.95q0-1.125-.425-2.188Q17.15 8.7 16.25 7.8L16 7.55V9q0 .425-.287.712Q15.425 10 15 10t-.712-.288Q14 9.425 14 9V5q0-.425.288-.713Q14.575 4 15 4h4q.425 0 .712.287Q20 4.575 20 5t-.288.713Q19.425 6 19 6h-1.75l.4.35q1.225 1.225 1.788 2.662Q20 10.45 20 11.95q0 2.4-1.25 4.362q-1.25 1.963-3.375 2.938ZM5 20q-.425 0-.713-.288Q4 19.425 4 19t.287-.712Q4.575 18 5 18h1.75l-.4-.35q-1.225-1.225-1.788-2.662Q4 13.55 4 12.05q0-2.4 1.25-4.363Q6.5 5.725 8.625 4.75q.525-.25.95.037q.425.288.425.938q0 .25-.162.487q-.163.238-.413.363q-1.575.75-2.5 2.225T6 12.05q0 1.125.425 2.187Q6.85 15.3 7.75 16.2l.25.25V15q0-.425.288-.713Q8.575 14 9 14t.713.287Q10 14.575 10 15v4q0 .425-.287.712Q9.425 20 9 20Z"})}),$y=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zm10-5.828L19.071 7.1l1.414 1.414L12 17 3.515 8.515 4.929 7.1 11 13.17V2h2v11.172z"})]}),Gy=d("svg",{class:"inline mr-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[d("path",{fill:"none",d:"M0 0h24v24H0z"}),d("path",{d:"M3 19h18v2H3v-2zM13 5.828V17h-2V5.828L4.929 11.9l-1.414-1.414L12 2l8.485 8.485-1.414 1.414L13 5.83z"})]});function ac(e){let{onClose:t}=e,[n,a]=$("Original"),[r,o,u,i]=ht(()=>{setTimeout(()=>{A("updateGlobalContext",!1)()},250)});En(r,o);let[s,c]=$(null),[l,g]=$(globalThis.location.href),[p,f]=$("auto"),[m,y]=$(null),v=z=>{a(z.detail)},b=z=>{f(z);let B=f3(l,z,s.sourceLanguageUrlPattern);o(k=>({...k,sourceLanguageUrlPattern:B})),Tn(z)},S=()=>{g(globalThis.location.href)};he(()=>(document.addEventListener(Yu,v,!1),Nn().then(z=>{c(z);let B=Dt();f(B);let k=tt();a(k),E3(z.interval)}),document.addEventListener("urlChange",S),()=>{document.removeEventListener("pageTranslatedStatus",v),document.removeEventListener("urlChange",S)}),[]),he(()=>{Nn().then(z=>{c(z)})},[r]),he(()=>{l&&s&&Lt({url:l,config:s}).then(z=>{y(z)})},[l,s]);let A=(z,B,k={})=>()=>{Yr({method:z,data:k||{}}),B&&t()},N=()=>{t()},_=()=>{o(z=>({...z,enabled:!z.enabled})),setTimeout(()=>{N()},50)},x=()=>{nc(),setTimeout(()=>{N()},50)},E=()=>{nc(),setTimeout(()=>{N()},50)},T=(z="")=>{Xr(!0,z),setTimeout(()=>{t()},50)},w=()=>{Xi(Jg),setTimeout(()=>{globalThis.close()},50)},C=()=>{Zi(),setTimeout(()=>{t()},50)},I=()=>{es(),setTimeout(()=>{t()},50)},M=()=>{F3(),setTimeout(()=>{t()},50)},D=()=>{ts(),setTimeout(()=>{t()},50)},F=()=>{_3(),setTimeout(()=>{t()},50)},U=z=>{o(B=>({...B,generalRule:{...B.generalRule,mouseHoverHoldKey:z}}))};return!s||!m?null:d(Jl,{openEbookViewerPage:I,openEbookBuilderPage:D,onSwitchTranslationMode:z=>{A("switchTranslationMode",!0,{mode:z})()},onTranslateLocalHtmlFile:M,onTranslateLocalSubtitleFile:F,request:se,onClose:N,onToggleEnabled:_,onTranslateTheWholePage:A("translateTheWholePage",!0),openOptionsPage:T,openPricingPage:w,onToggleTranslate:A("toggleTranslatePage",!0),onTranslateTheMainPage:A("translateTheMainPage",!0),ontranslateToThePageEndImmediately:A("translateToThePageEndImmediately",!0),onTranslatePage:A("translatePage",!0),onRestorePage:A("restorePage",!1),onTranslatePdf:x,openAboutPage:C,onTranslateLocalPdfFile:E,onSetPageLanguage:b,onUserConfigChange:o,config:s,pageStatus:n,ctx:m,currentUrl:l,currentLang:p,onSetLocalConfig:Qi,onSetBuildinConfig:P3,onMouseTriggerChanged:U})}function Vy(e,t){for(let n of t){if(me()&&!Ja()&&typeof GM!==void 0&&GM.addElement){GM.addElement(e,"style",{textContent:n});continue}e.appendChild(document.createElement("style")).textContent=n}}var rc={position:"right",right:0,top:335},Kt={...rc},rs=!1,ar=null,Yn=null,os=null,oc=null,eo=null,uc=null,B3=6,ns,as,I3=null,O3=null;async function N3(){let e=Ke();uc=await z3(),Kt=uc.pagePopupConfig||Kt;let t=document.createElement("div");t.id="immersive-translate-popup",t.setAttribute("style","all: initial"),document.documentElement.appendChild(t);let n=t.attachShadow({mode:"open"});oc=n;let a=[e.IMMERSIVE_TRANSLATE_PICO_CSS,e.IMMERSIVE_TRANSLATE_COMMON_CSS,e.IMMERSIVE_TRANSLATE_POPUP_CSS,e.IMMERSIVE_TRANSLATE_PAGE_POPUP_CSS].join(` +`);Vy(n,[a]);let r=document.createElement("div");r.innerHTML=e.IMMERSIVE_TRANSLATE_POPUP_HTML,n.appendChild(r),ar=n.querySelector("#immersive-translate-popup-container");let u=n.querySelector("#immersive-translate-popup-btn");Yn=u,os=n.querySelector("#mount"),ar.setAttribute("style",ic(Kt)),dc(),u.addEventListener("mousedown",U3),u.addEventListener("touchstart",Qy),globalThis.addEventListener("resize",s=>{ar.setAttribute("style",ic(Kt))})}function Yy(){Wa(null,os),os.style.display="none",Yn.style.display="block",eo=setTimeout(()=>{dc(!0)},2e3)}function R3(e){let t=e.querySelector("#mount"),n=()=>{Yy()},a=r=>{r&&r.target&&r.target.id==="immersive-translate-popup-overlay"&&n()};(async()=>{let r=await Nn();Wa(d(ii,{lang:r.interfaceLanguage,fallbackLang:"zh-CN",translations:Vr,children:d("div",{onClick:a,id:"immersive-translate-popup-overlay",class:"immersive-translate-popup-overlay",children:d("div",{class:"immersive-translate-popup-wrapper",style:Jy(),children:d(ac,{onClose:n})})})}),t)})().then(()=>{Yn.style.display="none",os.style.display="block"})}function Jy(){let e=sc(),t=e.height,{position:n,top:a,left:r}=Kt,o={position:"fixed"},u=300,i=300,s=100;return xg()&&(n=rc.position,a=rc.top),n==="right"||n==="left"?(o.top=a-s,o.top+u>=t?(o.bottom=30,delete o.top):o.top<=10&&(o.top=10),n==="right"?o.right=0:n==="left"&&(o.left=0)):(n==="top"||n==="bottom")&&(o.left=r-s,o.left+i>=e.width?(o.right=0,delete o.left):o.left<=10&&(o.left=0),n==="top"?o.top=0:n==="bottom"&&(o.bottom=0)),o}function sc(){return{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}function U3(e){O3=ar.getAttribute("style"),ns=e.pageX,as=e.pageY,eo&&clearTimeout(eo),rs=!1,Yn.style.opacity="1",Yn.style.transform="none",I3=Yn.getAttribute("style"),globalThis.addEventListener("mousemove",lc),globalThis.addEventListener("mouseup",cc),globalThis.addEventListener("touchmove",j3),globalThis.addEventListener("touchend",us),globalThis.addEventListener("touchcancel",us)}function Qy(e){e.preventDefault&&e.preventDefault(),U3(e.changedTouches[0])}function j3(e){lc(e.changedTouches[0])}function us(e){e.preventDefault&&e.preventDefault(),cc(e.changedTouches[0])}function lc(e){e.preventDefault&&e.preventDefault(),rs=!0,ar.setAttribute("style",`left:${e.clientX}px;top:${e.clientY}px;transform:scale(1.6);`)}function cc(e){e.preventDefault&&e.preventDefault(),Xy(),eo&&clearTimeout(eo),ns=ns||0,as=as||0;let t=Math.abs(e.pageX-ns),n=Math.abs(e.pageY-as);t{dc(!0)},2e3)}function dc(e=!1){Yn.style.opacity="0.4";let t="";Kt.position==="left"?t="translateX(-40%)":Kt.position==="right"?t="translateX(40%)":Kt.position==="top"?t="translateY(-40%)":Kt.position==="bottom"&&(t="translateY(40%)"),Yn.style.transform=t,e&&(Yn.style.transition="transform 0.2s ease-in-out, opacity 0.2s ease-in-out")}function Xy(){globalThis.removeEventListener("mousemove",lc),globalThis.removeEventListener("mouseup",cc),globalThis.removeEventListener("touchmove",j3),globalThis.removeEventListener("touchend",us),globalThis.removeEventListener("touchcancel",us)}function ic(e){let t=eT(e);return Object.keys(t).map(n=>typeof t[n]=="number"?`${n}:${t[n]}px;`:"").join("")}function eT(e){let{position:t,...n}=e,a=sc(),r={};return t==="left"?(r.left=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="right"?(r.right=0,n.top>a.height?r.top=a.height-100:r.top=n.top):t==="top"?(r.top=0,n.left>a.width?r.left=a.width-100:r.left=n.left):t==="bottom"&&(r.bottom=0,n.left>a.width?r.left=a.width-100:r.left=n.left),r}var H3=!1;async function q3(){H3||(H3=!0,N3().catch(e=>{j.error("init popup error",e)}))}var W3=!1,V3=[()=>{Ue.unbind()}],mc=[...V3],tT=Ft(async()=>{await Xr()},50),nT=Ft(async()=>{await Zi()},50),aT=Ft(async()=>{await ts()},50),rT=Ft(async()=>{await es()},50),Y3=Ft(e=>{Yr({method:e,data:{trigger:"userscript_menu"}})},50),oT=Ft(()=>{is();let e=new CustomEvent(xa,{detail:{method:"toggleTranslatePage"}});globalThis.document.dispatchEvent(e)},200),uT=Ft(()=>{cs();let e=new CustomEvent(xa,{detail:{method:"toggleOnlyTranslation"}});globalThis.document.dispatchEvent(e)},200),iT=Ft(()=>{ls();let e=new CustomEvent(xa,{detail:{method:"toggleTranslationMask"}});globalThis.document.dispatchEvent(e)},200);function sT(e,t){let n=e.document;if(W3)return;if(W3=!0,me()||af(),n.addEventListener("securitypolicyviolation",xT),document.addEventListener(be+"DocumentMessageUser",ef),document.addEventListener(be+"DocumentMessageUpdateUser",tf),document.addEventListener(be+"ChangeSuccessService",nf.bind(null,t)),document.addEventListener(Vu,bT.bind(null,t)),n.addEventListener(be+"EbookLoaded",TT),n.addEventListener(Ag,yT),n.addEventListener(Dg,ET.bind(null,t)),n.addEventListener("click",r=>{gT(r,t)}),me()&&(globalThis.top!=globalThis.self?e.addEventListener("message",cT,!1):n.addEventListener(xa,lT)),globalThis.top===globalThis.self){let r=Pa.rootIframe(ti);r.handleAsk("getRateLimitDelay",g3),r.handleAsk("throttleRequest",m3)}}function J3(e,t){CT(),sT(t,e);let n=t.document,a=dT.bind(null,e);e.rule.fingerCountToToggleTranslagePageWhenTouching>=2&&n.addEventListener("touchstart",a),mc.push(()=>{n.removeEventListener("touchstart",a)}),me()&&globalThis.top===globalThis.self&&(Hl(e.config),vT(e.config)),ot()&&Hl(e.config)}function lT(e){q3()}function cT(e){let t=e;t&&t.data&&t.data.payload&&t.data.author===Gu&&Jr(t.data.payload,{tab:{id:1,url:"https://www.fake-iframe.com",active:!0}})}function dT(e,t){let n=t;n.touches.length==e.rule.fingerCountToToggleTranslagePageWhenTouching?oT():n.touches.length===e.rule.fingerCountToToggleTranslationMaskWhenTouching?iT():n.touches.length===e.rule.fingerCountToToggleTranslagePageOnlyTranslationWhenTouching&&uT()}function gT(e,t){let n=e.target;if(!n||!n.getAttribute){gc(n);return}let a=n.getAttribute("data-immersive-translate-event");a&&et(a,[{name:a}],{...t,sourceLanguage:"none"});let r=n.getAttribute(`data-${Z}-action`);if(r)if(r==="retry"){e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),ss(),gc(n,!0);return}else if(r=="toast-error"){let o=n.getAttribute(`data-${Z}-tooltip-text`);pc(Z3.bind(null,t,o||""))}else r=="close-search"&&(e.preventDefault(),typeof e.stopPropagation=="function"&&e.stopPropagation(),pc(fT.bind(null,t)));gc(n)}async function K3(e=!1){let t=document.querySelector(`.${Z}-search-recomend`);if(!t||(t.remove(),!e))return;let n=await vn();n.generalRule||(n.generalRule={}),n.generalRule.enableSearchEnhancement=!1,await Cn(n)}async function mT(){let e=await vn(),t=e.enableDefaultAlwaysTranslatedUrls===void 0?!0:e.enableDefaultAlwaysTranslatedUrls;if(e.enableDefaultAlwaysTranslatedUrls=!t,!e.enableDefaultAlwaysTranslatedUrls){let n=e&&e.isChangedAlwaysTranslatedUrls,a=[];e.translationUrlPattern&&e.translationUrlPattern.matches&&(a=e.translationUrlPattern.matches||[]),!n&&a.length>0&&(e.translationUrlPattern={matches:[],excludeMatches:[]})}await Cn(e)}async function pT(){let e=await vn(),t=e.enableInputTranslation;e.enableInputTranslation=!t,await Cn(e)}var $3=0;function pc(e){let t=Date.now();if(t-$3<2e3)return;$3=t;let n=`${Z}-modal`,a=document.querySelector(`.${n}`);if(a?.style.display=="block")return;let r=`${Z}-modal-title`,o=`${Z}-modal-body`,u=`${Z}-modal-footer`;if(a){let i=a.querySelector(`.${r}`),s=a.querySelector(`.${u}`),c=a.querySelector(`.${o}`);e(a,i,c,s)}else{a=document.createElement("div"),a.className=n+" notranslate",a.id=n;let i=document.createElement("div");i.className=Z+"-modal-content notranslate",a.appendChild(i);let s=document.createElement("span");s.textContent="\xD7",s.className=Z+"-close",i.appendChild(s);let c=document.createElement("div");c.className=r+" notranslate",i.appendChild(c);let l=document.createElement("div");l.className=o+" notranslate",i.appendChild(l);let g=document.createElement("div");g.className=u,i.appendChild(g),document.body.appendChild(a),s.onclick=function(){a.style.display="none"},window.onclick=function(p){p.target==a&&(a.style.display="none")},e(a,c,l,g)}setTimeout(()=>{hT()},100)}function fT(e,t,n,a,r){let o=Q3.bind(null,e);n.innerHTML=`
${Vi} ${o("disableConfirm")}
`,a.innerHTML="";let u=document.querySelector(`div[data-${Z}-cancel-desc]`),i=document.createElement("p");i.innerHTML=u?Ne.sanitize(u.textContent||""):Ne.sanitize(o("searchEnhancementNotes")),i.style.cssText="margin-bottom:12px",a.appendChild(i);let s=[{id:"enable-search-enhancement",value:"enable",text:o("enableSearchEnhancement")},{id:"disable-once",value:"once",text:o("disableOnce")},{id:"disable-global",value:"global",text:o("disableGlobal")}];for(let f=0;f${o("option")}`})),a.appendChild(c);let l=a.querySelector(`.${Z}-open-enhancement`);l&&(l.onclick=function(){rf(!0)});let g=document.createElement("button");g.innerText=o("closeModal"),g.className=`${Z}-btn ${Z}-cancel-btn`;let p=document.createElement("button");p.className=`${Z}-btn`,p.innerText=o("saveSettings"),r.innerHTML="",r.appendChild(g),r.appendChild(p),g.onclick=function(){t.style.display="none"},p.onclick=function(){let f=a.getElementsByTagName("input"),m="";for(let y=0;y
1. \u5207\u6362\u5230 ${o} \u6216\u5176\u4ED6\u7FFB\u8BD1\u670D\u52A1
2. \u5347\u7EA7\u4E3A\u6708\u5EA6/\u5E74\u5EA6\u4F1A\u5458`:i+=`

\u5982\u679C\u60A8\u6709\u7591\u95EE\uFF0C\u8BF7\u8054\u7CFB support@immersivetranslate.com`,pc(Z3.bind(null,e,i))}catch(a){j.warn("parse message error",a)}}function yT(e){let t=e;if(j.debug("receive third party message",t),t&&t.detail)try{let n=JSON.parse(t.detail);n&&n.type&&(n.type==="retryFailedParagraphs"?wT({method:"retryFailedParagraphs"}):n.type==="updateCommands"?of(n.data):n.type==="toggleEnableDefaultAlwaysTranslatedUrls"?mT():n.type==="toggleEnableInputTranslation"?pT():Y3(n.type))}catch(n){j.warn("parse message error",n)}}function TT(e){setTimeout(()=>{X3()},10)}function xT(e){Ce.HAS_CSP_ERROR="1"}function ET(e,t){let n=event.detail;(n.name=="open_pdf_page"||n.name==="open_html_page")&&et(n.name,[{name:n.name}],{...e})}function CT(){mc.forEach(e=>{e()}),mc=V3}function vT(e){if(me()&&typeof GM<"u"&&GM&&GM.registerMenuCommand){let t=pi.commands,r=[...Object.keys(t).filter(o=>o==="toggleTranslatePage").map(o=>{let u=t[o].description,i=u;return u.startsWith("__MSG_")&&u.endsWith("__")&&(i=Oa(`browser.${u.slice(6,-2)}`,e.interfaceLanguage)),{id:o,title:i}}),{id:Lo,title:Oa("browser.openEbookViewer",e.interfaceLanguage),key:"e"},{id:Mo,title:Oa("browser.openEbookBuilder",e.interfaceLanguage),key:"m"},{id:Do,title:Oa("browser.openOptionsPage",e.interfaceLanguage),key:"o"},{id:R0,title:Oa("browser.openAboutPage",e.interfaceLanguage),key:"a"}];for(let o of r)GM.registerMenuCommand(o.title,()=>{o.id===Do?tT():o.id===R0?nT():o.id===Mo?aT():o.id===Lo?rT():Y3(o.id)},o.key)}}function wT(e){Jr(e,{tab:{id:1,url:"https://www.fake.com",active:!0}}).catch(n=>{j.error("send content message request failed",e,n)});let t=new CustomEvent(xa,{detail:e});globalThis.document.dispatchEvent(t)}h();var rr={};async function fc(){let t=[...document.querySelectorAll(".source-text")].map(a=>a.textContent).join(""),n=await it({text:t,minLength:200,pageLangs:[Za(),"en"]});return Tn(n),n}async function uf(e){Wt("Translating");let t=Dt(),n=Ni(),a=[...document.querySelectorAll(".source-text")];if(Mi(e,t))return;let r=a.filter(o=>o.innerText?.trim()).map((o,u)=>{let i=o.parentElement?.parentElement?.querySelector(".target-text");return ft(o,"id",u+""),i&&(Ur(i,u)?.remove(),i.appendChild(Zo(e,u))),{text:o.innerText||"",id:u,from:t,to:e.targetLanguage,url:"https://google.com",fromByClient:n}});document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await Ia({sentences:r},e,(o,u,i)=>{let s=i.id,c=Ur(document.body,s);if(!c)return;let l=c.parentElement;l&&(c.remove(),o?(l.innerHTML=Ne.sanitize(`${o.message}`),rr[s]={ok:!1,sentence:i}):u&&(l.innerHTML=Ne.sanitize(u.text),rr[s]={ok:!0,sentence:i}),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!o}})})))})}catch(o){throw o}finally{Wt("Translated")}}async function sf(e){Wt("Translating"),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(rr),n=[],a=[];for(let r of t){let o=rr[r];if(!o.ok){let i=document.querySelector(`#error-id-${r}`);if(i){let s=i.parentElement;i.remove(),s&&(delete rr[r],s.appendChild(Zo(e,r)),a.push(o.sentence))}}}try{await Ia({sentences:a},e,(r,o,u)=>{let i=u.id,s=Ur(document.body,i);if(!s)return;let c=s.parentElement;c&&(s.remove(),r?(c.innerHTML=Ne.sanitize(`${r.message}`),rr[i]={ok:!1,sentence:u}):o&&(c.innerHTML=Ne.sanitize(o.text),rr[i]={ok:!0,sentence:u}),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"paragraphTranslated",payload:{ok:!r}})})))})}catch(r){throw r}finally{Wt("Translated")}}function hc(){Wt("Original"),document.querySelectorAll(".target-text").forEach(e=>{e.innerHTML=""})}h();var bc={};async function lf(){let e=[...document.querySelectorAll("iframe")],t="";for(let a of e){let r=a.contentDocument;if(!r)continue;let o=r.body;if(o&&(t=t+o.innerText||"",t.length>1e3))break}let n=await it({text:t,pageLangs:["en"]});return Tn(n),n}async function cf(e){Wt("Translating"),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"retryFailedParagraphsStart",payload:{}})}));let t=Object.keys(bc),n=[];for(let a of t){let r=bc[a];if(r.error){let u=r.commonAncestorContainer.querySelector(`[${Ju}='${a}']`);u&&u.remove(),n.push(r)}}try{await Hi(n,e,e.config.translationMode)}catch{}finally{Wt("Translated")}}function df(){let e=[...document.querySelectorAll("iframe")];for(let t of e){let n=t.contentDocument;if(!n)continue;let a=n.querySelectorAll("."+un);for(let r of a)r.remove()}Wt("Original")}async function gf(e){Wt("Translating");let t=Fn(),n=[...document.querySelectorAll("iframe")],a=[],r=[];for(let i of n){let s=i.contentDocument;if(!s)continue;wa(s,e);let c=s.body;if(!c)continue;let l=xn(e);l.isModifyImage=!1,_a({id:t,container:c,filterRule:l,onParagraph:g=>{a.push(g)}})}let o=Li(e.config.translationServices[e.translationService]?.placeholderDelimiters),u=1;for(let i of a){let s=Ui(i.flatNodes,{isPreWhitespace:i.isPreWhitespace||!1,delimiters:o,stayOriginalSelectors:e.rule.stayOriginalTags.concat(e.rule.stayOriginalTags).map(l=>l.toLowerCase()).concat(e.rule.stayOriginalSelectors).concat(e.rule.additionalStayOriginalSelectors)});if(!s)continue;i.variables=s?.variables||{},i.text=s?.text,i.id=(u++).toString();let c=await Il(i,{excludeLanguages:e?.config?.translationLanguagePattern?.excludeMatches||[],isDetectParagraphLanguage:e.state.isDetectParagraphLanguage,targetLanguage:e.targetLanguage,delimiters:o,noTranslateRegexp:e.rule.noTranslateRegexp,minTextCount:2,minWordCount:1,ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW});c&&(r.push(c),bc[c.id]=c)}a=[],document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"totalParagraphsCount",payload:{totalParagraphsCount:r.length}})}));try{await Hi(r,e,e.config.translationMode)}catch{}finally{Wt("Translated")}}h();var kT=new AbortController,{signal:ST}=kT,Cc=0,vc=0,yc=!1,Tc=0,ru=!1,or,mf=0,ur=[];function ds(e,t){AT();let n=e,a=n.config,r=a.generalRule.mouseHoverHoldKey==="Off",o=a.generalRule.mouseHoverHoldKey==="Auto",u=Ft(l=>{if(yc==!1&&Math.abs(l.clientX-Cc)+Math.abs(l.clientY-vc)>3&&(Tc<2?Tc+=1:yc=!0),Cc=l.clientX,vc=l.clientY,o||ru&&!or){let g=yf(n.rule,t);if(g){if(wc(g))return;ff(n,g)}}},o?700:300),i=l=>{let g=l.target;wc(g)||ff(n)},s=l=>{let g=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",p=Ue.getPressedKeyCodes();if(p.length>1&&Ue[g]&&(mf=Date.now(),ru=!1),p.length===1&&Ue[g]){let f=Date.now();ru=!0,or&&clearTimeout(or),or=setTimeout(()=>{let m=mf-f;m>0&&m<=150?ru=!1:i(l),or=void 0},150)}};if(ur.push(()=>{or&&clearTimeout(or)}),r)return;xc("mousemove",u,t),ur.push(()=>{t.removeEventListener("mousemove",u)});function c(){yc=!1,Tc=0,u.cancel()}if(o)xc("blur",c,t),ur.push(()=>{t.removeEventListener("blur",c)});else{let l=a?.generalRule?.mouseHoverHoldKey?.toLowerCase()||"alt",g=["ctrl","alt","shift","cmd","command","option","control"];xc("keyup",pf,t),ur.push(()=>{t.removeEventListener("keyup",pf)}),g.includes(l)?Ue("*","mouseHover",s):Ue(a.generalRule.mouseHoverHoldKey,"mouseHover",i),Ue.setScope("mouseHover"),ur.push(()=>{Ue.deleteScope("mouseHover")})}}function AT(){ur.forEach(e=>e()),ur=[]}function pf(e){ru=!1}function xc(e,t,n=window){return n.addEventListener(e,t,{signal:ST})}function ff(e,t,n=window){if(t=t||yf(e.rule,n),!t){j.debug("can not find selection part!");return}if(wc(t)){j.debug("exclude dom");return}a3(e,t);let a=Ki();a?.currentUrl!==window.location.href&&(ca(),jl(e)),a&&(a.setupMouseHoverListener=ds);let r=xn(e);r.excludeSelectors=[],r.selectors=[];let o=!1;_a({id:a.id,container:t,filterRule:r,force:!0,onParagraph:u=>{eu(a,u,!0).then(i=>{if(i&&!o){o=!0;let s=Date.now();$e(Fg,s),et("mouse_hover_translate",[{name:"mouse_hover_translate"}],{...e,sourceLanguage:"mouseHover"})}})},onFrame:()=>{},onIgnoreElement:()=>{}})}function yf(e,t){return DT(Cc,vc,e,t)}function DT(e,t,n,a){let r=sm(e,t,n,a);if(r==null)return;let o=()=>{let s=a.document.elementFromPoint(e,t);if(!s)return;let c=lm(s,e,t);return c===s?s.nodeName==="BUTTON"?s:void 0:bf(c,n)},u=()=>{try{r.setStartBefore(r.startContainer),r.setEndAfter(r.startContainer)}catch(c){j.debug("get mouse over word fail",c)}let s=r.getBoundingClientRect();if(!(s.left>e||s.rightt||s.bottomn[l]=[l,...n[l]||[]]);let a=t.inputStartingTriggerKeyAlias[t.inputStartingTriggerKey]||[];a.includes(t.inputStartingTriggerKey)||a.unshift(t.inputStartingTriggerKey),n[t.inputTargetLanguage]=[...a,...n[t.inputTargetLanguage]];let r=t.inputTrailingTriggerKeyTimeout;fn().any&&(r=t.inputTrailingMobileTriggerKeyTimeout);let o={triggerTimes:t.inputTrailingTriggerKeyRepeatTimes,triggerKey:t.inputTrailingTriggerKey,triggerTimeout:r,codePrefix:t.inputStartingTriggerKey,codeAlias:n,flatAlias:Object.values(n).flat(),codePrefixAlias:t.inputStartingTriggerKeyAlias},u=0,i=Date.now();gs&&self.removeEventListener("keydown",gs),gs=s,self.addEventListener("keydown",gs);function s(l){if(to||ms===!1)return;let g=l,p=g.target||g.srcElement,f=p?.tagName;(p?.isContentEditable||f=="INPUT"||f=="SELECT"||f=="TEXTAREA")&&($T(l,o.triggerKey,o.codePrefixAlias)?c(l):u=0)}async function c(l){Date.now()-i=o.triggerTimes&&_T()&&(u=0,FT(l,e,o))}GT(e)}function LT({codePrefix:e,flatAlias:t,codePrefixAlias:n}){let a=[],r=n[e]||[];r.includes(e)||r.unshift(e);for(let o of r){let u=t.map(i=>{let s=o+i;return r.includes(i)||(s+=" "),s});a.push(...u)}return new RegExp(a.join("|"))}function xf(e,t){for(let[n,a]of Object.entries(t))if(a.includes(e))return n;return""}var no;function MT(e){let t=e.parentElement;if(!t)return;no=document.createElement("div"),no.className=Z+"-input",no.innerHTML=`
`,t.appendChild(no);let n=t,a=!1;do{let r=getComputedStyle(n).position;if(["fixed","absolute","relative"].includes(r)){a=!0;break}n=n.parentElement}while(n);if(n=t,!a)do{if(getComputedStyle(n).position==="static"){n.style.position="relative";break}n=n?.parentElement||null}while(n)}function PT(){no&&no.remove()}async function FT(e,t,n){if(!to)try{let p=function(){i=t.config.inputTargetLanguage;let m=u.split(" ")[0];m&&m[0]&&(m=m[0].toLowerCase()+m.slice(1)),m.trim()&&n.flatAlias.includes(m)?(i=xf(m,n.codeAlias),o=u.slice(m.length+1)):o=u},f=function(){i="";let m=LT(n),y=u.split(m);if(y.length<2)return;if(o=y[y.length-1],r=y[0],y.length>2){let b=u.lastIndexOf(o),S=u.slice(0,b).lastIndexOf(y[y.length-2]);r=u.slice(0,S+y[y.length-2].length)}if(r.endsWith(n.codePrefix))return;let v=u.slice(r.length+1,u.indexOf(o)).trim();if(i=xf(v,n.codeAlias),!i){j.warn("not found alias",v);return}},a=document.activeElement;to=!0;let r="",o="",u=ao(a)||"",i=t.config.inputTargetLanguage;n.codePrefix==="none"?p():(f(),!i&&t.config.enableInputTranslationWithoutTriggerKey&&p());let s=RT(o,n),c=await it({text:s,pageLangs:["en"]});j.debug("translateContent",s,c);let l={text:s||"",id:0,from:c,to:i,url:"https://google.com",fromByClient:c};if(!l.text)return;if(t.config.isShowInputTranslationConsent&&!Tf){Tf=!0;let m=await VT(t);if(e.target&&e.target.focus(),m==="open_settings"){Xr(!0,"#input");return}else if(m==="open_learn_more"){Xi("https://immersivetranslate.com/docs/input/");return}else if(m==="disable_once"||m==="disable_forever"){if(ms=!1,m==="disable_forever"){let y=await vn();y.enableInputTranslation=!1,y.isShowInputTranslationConsent=!1,await Cn(y)}else if(m==="disable_once"){let y=await vn();y.isShowInputTranslationConsent=!1,await Cn(y)}return}else if(m==="close_disable_once"||m==="close_disable_forever"){if(ms=!1,m==="close_disable_forever"){let y=await vn();y.enableInputTranslation=!1,y.isShowInputTranslationConsent=!1,await Cn(y)}return}else if(m==="enable"){let y=await vn();y.enableInputTranslation=!0,y.isShowInputTranslationConsent=!1,await Cn(y)}else if(m==="close_enable"){let y=await vn();y.enableInputTranslation=!0,await Cn(y)}}MT(a),$e(I0,Date.now());let g=await la(l,{...t,translationService:t.inputTranslationService});KT(t),WT(a,r+g.text),to=!1}catch(a){throw to=!1,a}finally{to=!1,PT()}}function _T(){let e=document.activeElement;if(!e)return!1;if(ps(e)){let t=e.selectionStart||0,n=e.value.length,r=e.value.split(` +`).reverse()[0].trim(),o=n<=t;return j.debug("cursorPosition",t,"textLength",n),j.debug("input isTail",o,"tailHasText",r),o&&!!r}else{let t=window.getSelection();if(!t)return j.debug("No active selection found."),!1;if(t.rangeCount>0){let n=t.getRangeAt(0),a=n.startContainer;if(a.nodeType===Node.TEXT_NODE){let r=BT(a,e);j.debug("Current text node:",a.textContent),j.debug("Cursor position within text node:",n.startOffset);let o=a.textContent?.length===n.startOffset&&r,u=a.textContent?.trim();return j.debug("editdiv isTail",o,"tailHasText",u),o&&!!u}else j.debug("Cursor is not within a text node.")}}return!1}function BT(e,t){let n;function a(r){if(r.nodeType===Node.TEXT_NODE)n=r;else for(let o of r.childNodes)a(o)}return a(t),n==e}function RT(e,t){let{triggerTimes:n,triggerKey:a}=t,r=0,o=" ";a.length==1?(r=n,o=a):a.toLowerCase()=="space"&&(r=n);let u=e.length;for(let i=e.length-1;i>=e.length-r;i--){if([10,8629].includes(e[i].charCodeAt(0))){u--;continue}if(![...t.codePrefixAlias[a]||[],o].includes(e[i]))break;u--}return e.length-u<3&&[".","\u3002"].includes(e[u-1])&&u--,e.slice(0,u)}function IT(e,t){let n=t.innerHTML,a=ao(t);return{html:n.replace(a,e),text:e}}function Ef(e,t,n=!1){let a=ao(t);return n?a.trim().endsWith(e.text.trim()):a.trim()==e.text.trim()}function ao(e){return e.value||e.innerText||e.textContent}async function ir(e){await new Promise((t,n)=>{setTimeout(()=>{t("")},e)})}async function OT(e,t,n){await ir(10);let a=new DataTransfer;e.forEach(r=>{r==="plain"&&a.setData("text/plain",t.text)}),n.dispatchEvent(new ClipboardEvent("paste",{clipboardData:a,bubbles:!0,cancelable:!0})),a.clearData(),await ir(10)}async function NT(e,t){let n=document.createEvent("TextEvent");n.initTextEvent&&(n.initTextEvent("textInput",!0,!0,window,e.text),t.dispatchEvent(n),await ir(10))}async function UT(e,t){t.value&&t.select(),document.execCommand("insertText",!1,e.text.replace(/\n/g,"\r")),await ir(20),(t.value||t.value==="")&&(t.value=e.text)}async function jT(e,t){ps(t)&&(t.value=e.text,t.dispatchEvent(new Event("input",{bubbles:!0})),await ir(20))}var zT=[OT.bind(null,["plain"])];function HT(e){let t;ps(e)?t=new InputEvent("beforeinput",{bubbles:!0,cancelable:!0,inputType:"deleteContent"}):t=new KeyboardEvent("keydown",{bubbles:!0,cancelable:!0,keyCode:8,which:8,location:0,key:"Backspace"}),e.dispatchEvent(t)}function ps(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}function qT(e){if(ps(e))return;e.focus();let t=window.getSelection();if(!t)return;let n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}async function WT(e,t){await qT(e),await ir(50);let n=IT(t,e);HT(e),j.debug("clearContent",ao(e)),await ir(50);for(let a of[...zT,UT,jT,NT])if(await a(n,e),j.debug("setContent",a.name,Ef(n,e),ao(e),n),Ef(n,e))break}function KT(e){et("translate_input",[{name:"translate_input",params:{input_trailing_trigger_key:e.config.inputTrailingTriggerKey,input_starting_trigger_key:e.config.inputStartingTriggerKey,input_target_language:e.config.inputTargetLanguage}}],e)}function $T(e,t,n){let a="";e&&e.code&&(a=e.code.toLowerCase());let r="";e&&e.key&&(r=e.key.toLowerCase());let o=e.keyCode,u=n[t]||[];return o===229&&t!=="space"?!1:!!(u.includes(a)||u.includes(r)||a===t||r===t)}async function GT(e){if(e.config.interfaceLanguage!=="zh-CN"||e.config.targetLanguage!=="zh-CN")return;let t="inputTutorialsShowedAt";if(await Ht(t,"")||Number(await Ht(I0,0))>0)return;let r=e.rule.inputTutorialsSelectors,o=e.rule.inputTutorialsText;if((r?.length||0)>0&&o)for(let u=0;u{JT()},100),new Promise(c=>{let l=c;if(o){let E=o.querySelector(`.${n}`),T=o.querySelector(`.${r}`),w=o.querySelector(`.${a}`)}else{o=document.createElement("div"),o.className=t+" notranslate",o.id=t;let E=document.createElement("div");E.className=Z+"-modal-content notranslate",o.appendChild(E);let T=document.createElement("span");T.textContent="\xD7",T.className=Z+"-close",E.appendChild(T),u=document.createElement("div"),u.className=n+" notranslate",E.appendChild(u),s=document.createElement("div"),s.className=a+" notranslate",E.appendChild(s),i=document.createElement("div"),i.className=r,E.appendChild(i),document.body.appendChild(o),T.onclick=function(){A(),c("close")},window.onclick=function(w){w.target==o&&(o.style.display="none",c("close"))}}document.addEventListener("keydown",x);let g=YT.bind(null,e);u.innerHTML=`
${Vi} ${g("modalEnableInputTranslationTitle")}
`,s.innerHTML="";let p=document.createElement("p");p.innerHTML=g("modalEnableInputTranslationDesc",{1:"https://immersivetranslate.com/docs/input/"}),p.style.cssText="margin-bottom:12px",s.appendChild(p);let f=document.createElement("div");f.style.cssText="margin-bottom: 12px;",f.innerHTML=Ne.sanitize(g("disableInputTranslationTips",{option:`${g("option")}`,learnMore:`${g("learnMore")}`})),s.appendChild(f);let m=[{id:"enable-search-enhancement",value:"enable",text:g("continueEnalbeInputTranslation")},{id:"disable-once",value:"once",text:g("disableOnce")},{id:"disable-global",value:"global",text:g("disableGlobal")}];for(let E=0;E{Ia({sentences:r},{...e,translationService:"google"},(s,c,l)=>{if(s)return u([]);let g=c?.id||0,p=n[g];p&&p.className==Z+"-search-title-wrapper"&&(p.innerHTML+=Ne.sanitize(`
${c?.text}
`,{ADD_ATTR:["target"]}))})})}function fs(e,t,n){t&&et(t.key,[{name:t.key}],{...e,sourceLanguage:t.sourceLanguage||n})}function kc(e,t,n,a){let r=n.querySelectorAll('[translate="true"]');return QT(e,t,[...r],a),n}async function Sc(e,t){let a=(await se({url:ZT(e),method:"GET",responseType:"raw",headers:{"cache-control":"no-cache","content-type":"application/xml","Sec-Fetch-Site":"none",accept:"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}})).body,o=new DOMParser().parseFromString(a,"text/xml"),u=[],i=o.querySelectorAll("item");for(let s=0;s${e.cancelDescription}
`:""}

\u82F1\u6587\u641C\u7D22 - ${n} \u7684\u76F8\u5173\u65B0\u95FB:
+ ${n} \u7684\u76F8\u5173\u65B0\u95FB:

${u}
- - `.replaceAll(` -`,""),{ADD_ATTR:["target"]});let c=r.querySelector(`.${X}-search-more`);return c&&(c.onclick=()=>{let l=r.querySelector(`.${X}-expand-items`);l.style.display=="none"?(l.style.display="block",c.innerText="\u66F4\u591A\u76F8\u5173\u65B0\u95FB"):window.open(Ef(n))}),r}function Cf(e,t){let n=e.style;return t.map((a,r)=>{let o=a.title||"",u=a.source||"",i=o.split("-");return i.length>1&&(u=i[i.length-1].trim(),i=i.slice(0,i.length-1)),o=i.join("-"),o=o.trim(),`
${u}
-
+ + `.replaceAll(` +`,""),{ADD_ATTR:["target"]});let c=r.querySelector(`.${Z}-search-more`);return c&&(c.onclick=()=>{let l=r.querySelector(`.${Z}-expand-items`);l.style.display=="none"?(l.style.display="block",c.innerText="\u66F4\u591A\u76F8\u5173\u65B0\u95FB"):window.open(vf(n))}),r}function wf(e,t){let n=e.style;return t.map((a,r)=>{let o=a.title||"",u=a.source||"",i=o.split("-");return i.length>1&&(u=i[i.length-1].trim(),i=i.slice(0,i.length-1)),o=i.join("-"),o=o.trim(),`
${u}
+ -
${vp(a.pubDate||"")}
+
${wp(a.pubDate||"")}
`}).join(` -`)}function wf(e,t){if(!e.keyword)return;let n=e.keyword.value||"";for(let a=0;anew RegExp(a.urlMatch).test(t))}async function Sf(e){if(fn().any)return;if(!e.rule.enableSearchEnhancement){j.debug("enable is false");return}let t=ZT(e.rule.searchEnhancementConfig||[],e.url);if(!t){j.debug("not found siteConfig",e.url);return}let n=wf(t,e.url);if(!n){j.debug("not found keyword",e.url);return}t.id=="google"?ex(e,t,n):XT(e,t,n)}async function XT(e,t,n){let a=await it({text:document.title,pageLangs:[Dt(),"en"]});t.selector&&setTimeout(async()=>{let r=document.querySelector(t.selector);if(!r){j.debug("selector node not found",t.selector);return}let o=await kc(n,t.showCount);if(o&&o.length<=0){j.debug("list not found");return}let u=await Sc(t,o,n,t.showCount);if(!u){j.debug("getInseredNode none");return}u.style.cssText=t.style.container||"";let i=t.selectorAction||"appendChild";i=="insertBefore"?r.parentElement?.insertBefore(u,r):i=="appendChild"?r.appendChild(u):i=="replace"&&r?.replaceWith(u),wc(e,t,u,a),hs(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a)},t.delayTime||0)}async function ex(e,t,n){let a=await it({text:n,pageLangs:["en"]});if(hs(e,{key:"detect_search_action"},a),!["zh-CN","zh-TW"].includes(a))return;j.debug("use dual search");let r=!1;if(new URL(e.url).searchParams.get("tbm")==="nws")r=!0;else if(!kf(document.body))return;let u=document.querySelector("#rhs");if(!u){let i=document.querySelector("#rcnt");if(!i)return;let s=i.children;if(s&&s.length>1)u=s[1];else{let c=s[0];u=document.createElement("div"),u.id="rhs",u.style.maxWidth="372px",u.style.marginLeft="50px",i.insertBefore(u,c.nextSibling)}}if(r||kf(document.body)){j.debug("find story");let i=await vf(e,n,a);j.debug("enKeyword",i);let s=await kc(i,t.showCount);if(j.debug("news list",s),s&&s.length<=0)return;let c=await Sc(t,s,i,t.showCount);if(!c)return;hs(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a),wc(e,t,c,a),u.insertBefore(c,u?.firstChild)}}function kf(e){let t=e.querySelectorAll("[aria-level='2'][role=heading]");if(!t)return!1;for(let n of t){let a=(n?.textContent||"").trim();if(a.indexOf("\u7126\u70B9\u65B0\u95FB")>=0||a.indexOf("\u7126\u9EDE\u65B0\u805E")>=0||a.indexOf("Top stories")>=0)return!0}return!1}h();function Af(e){e.state.translationMode="translation",$r(e)}var Se=null,bs={},ao,Df=!1;async function ss(e){if(tt()==="Original"){let t={translationMode:void 0};ao&&(t.translationTheme=ao),Se&&(t={...Se.state,...t}),await $t(At(),t),await wn(Se,e)}else(tt()==="Translated"||tt()==="Error")&&or()}async function ls(){if(Se=await $t(At(),{}),Se.rule.isEbookBuilder)return sf(Se);if(Se.rule.isSubtitleBuilder)return of(Se);r3()}async function cs(e){if(tt()==="Original")Se=await $t(At(),{}),ao||(ao=Se.state.translationTheme),Se=await $t(At(),{translationTheme:"mask"}),await wn(Se,e);else if(tt()==="Translated"){let t=xp().filter(r=>r.contentDocument?.body).map(r=>r.contentDocument.body),n=[Se.mainFrame,...t],a=Se?.state.translationTheme;for(let r of n){let o=Dr(r,wr,!0);a==="mask"?o!=="none"?pt(r,wr,"none",!0):pt(r,wr,"mask",!0):o!=="mask"?pt(r,wr,"mask",!0):pt(r,wr,"none",!0)}}}async function Ac(){let e=await $t(At(),{});return e.rule.isSubtitleBuilder?pc():a3(e)}function tx(e){tt()==="Original"?Af(e):da()}function nx(e){tt()==="Original"?rf(e):fc()}function ax(e){tt()==="Original"?$r(e):da()}async function or(){Lc("");let e=await $t(At(),{});if(e.rule.isSubtitleBuilder){fc();return}else e.rule.isEbookBuilder&&lf();da()}async function wn(e,t){tt()!=="Original"&&await or(),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"translateStart",payload:{}})})),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"targetLanguage",payload:{targetLanguage:e.targetLanguage}})})),bs[e.translationService]||(bs[e.translationService]=!0,mt()||Mc(e).catch(a=>{j.warn("init translation engine error",a)}));let n={};if(t&&t.trigger&&(n.trigger=t.trigger),et("translage_page_daily",[{name:"translage_page_daily",params:n}],e),et("translate_page",[{name:"translate_page",params:n}],{...e,sourceLanguage:Dt()}),e.rule.isSubtitleBuilder)return nx(e);if(e.rule.isEbookBuilder)return cf(e);if(e.rule.isPdf)return tx(e);ax(e),Lc("yes")}async function Lf(e){tt()==="Original"?await ys(e):(tt()==="Translated"||tt()==="Error")&&(Se=await $t(At(),{}),Se.state.translationArea!=="main"?await ys(e):or())}async function ys(e){Se=await $t(At(),{translationArea:"main"}),await wn(Se,e)}async function Dc(e){Se=await $t(At(),{translationArea:"body"}),await wn(Se,e)}async function ds(e){if(tt()==="Original"){let t=await $t(At(),{translationMode:"translation"});await wn(t,e)}else(tt()==="Translated"||tt()==="Error")&&await or()}async function Mf(e){if(Se=await $t(At(),{translationMode:void 0}),et("switch_translation_mode",[{name:"switch_translation_mode",params:{mode:e}}],{...Se,sourceLanguage:"unknown"}),tt()==="Original"){wn(Se);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(e)}async function Pf(e){if(tt()==="Original")await Dc(e);else if(tt()==="Translated"||tt()==="Error"){let t={};Se&&Se.state&&(t=Se.state),Se=await $t(At(),t),Se.state.translationArea!=="body"?(Se.state.translationArea="body",Se=await $t(At(),Se.state),await wn(Se,e)):or()}}async function Ff(e){Se=await $t(At(),{translationStartMode:"immediate"}),await wn(Se,e)}async function Q3(){let e=await $t(At(),{});if(j.debug("init page ctx",e),e.rule.isSubtitleBuilder){pc();return}if(e.rule.isEbookBuilder){uf();return}if(Sf(e),ao||(ao=e.state.translationTheme),e.rule.urlChangeDelay&&await qn(e.rule.urlChangeDelay),e.rule.waitForSelectors&&e.rule.waitForSelectors.length>0&&await rx(e.rule.waitForSelectors,e.rule.waitForSelectorsTimeout),e.rule.isInjectOptionsUrl){let a=Bf(),r=document.createElement("meta");r.name="immersive-translate-options-url",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(o){j.warn("inject options url failed",o)}}if(e.rule.isInjectVersion){let a=hn(),r=document.createElement("meta");r.name="immersive-translate-version",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(o){j.warn("inject version failed",o)}}if(e.rule.globalMeta&&Object.keys(e.rule.globalMeta).forEach(r=>{let o=document.createElement("meta");o.name=r,o.content=e.rule.globalMeta[r],document.head.appendChild(o)}),e.rule.initialGlobalAttributes&&Ap(document.body,e.rule.initialGlobalAttributes),e.rule.isPdf){wn(e);return}if(e.rule.isOnBoardingPage){document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"currentConfig",payload:{enableDefaultAlwaysTranslatedUrls:!!e.config.enableDefaultAlwaysTranslatedUrls}})}));let a=document.querySelector("#immersiveTranslateEnableDefaultAlwaysTranslatedUrlsValue");a&&(a.value="helloworld",a.value=String(!!e.config.enableDefaultAlwaysTranslatedUrls),a.dispatchEvent(new Event("change")))}Df||(Df=!0,globalThis.top!==globalThis.self&&e.rule.useIframePostMessage&&await hp());let t=e.sourceLanguage;if(t==="auto"?t=await Ac():Tn(t),e.rule.isInjectMeta)try{let a=await kp(t),r=document.createElement("meta");r.name="immersive-translate-meta",r.content=h0(JSON.stringify(a)),document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(a){j.warn("inject meta failed",a)}let n=e.state.isAutoTranslate||e.isTranslateUrl||e.rule.isPdf;if(!n&&!e.isTranslateExcludeUrl&&(j.debug(`detect page language: ${e.url} ${t}`),Sa(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto"||bp(t,e.config.translationLanguagePattern)&&(n=!0,j.debug(`match language pattern ${t}, auto translate`))),e.rule.isEbookBuilder&&(n=!1),!e.rule.isPdf&&ia()&&gs(e,window),n)Se.state.isAutoTranslate=!0,wn(Se);else if(j.debug("do not auto translate",e),e.rule.initTranslationServiceAsSoonAsPossible&&e.translationService==="deepl"){if(Sa(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto")return;e.config&&e.config.translationServices&&e.config.translationServices.deepl&&e.config.translationServices.deepl.authKey&&typeof e.config.translationServices.deepl.authKey=="string"&&e.config.translationServices.deepl.authKey.startsWith("immersive_")&&(bs[e.translationService]||(bs[e.translationService]=!0,mt()||Mc(e).catch(a=>{j.warn("init translation engine error",a)})))}}async function $t(e,t){let n=Object.keys(t);if(Se){let a={url:e,config:Se.config,state:{...Se.state,...t}};Se=await Lt(a)}else{let a=await Nn(),r=t;n.length===0&&(r=void 0),Se=await Lt({url:e,config:a,state:r})}return Se}async function _f(){let e=await Nn(),t;Se&&Se.state&&(t=Se.state);let n={url:At(),config:e,state:t},a=await Lt(n);Se=a;let r=$i(),o=[];return r?o=r.allInlineWindows||[window]:o=[window],o.forEach(u=>{V3(a,u),ia()&&gs(a,u),xf(a)}),a}function rx(e,t=3e3){return new Promise((n,a)=>{let r=t?setTimeout(()=>{n(new Error("timeout"))},t):void 0,o=setInterval(()=>{e.every(i=>document.querySelector(i)!==null)&&(clearInterval(o),r&&clearTimeout(r),n(null))},50)})}async function Z3(e){let t=e.detail;Xe.set(Tt,t);let n=await Xe.get(_o,!1);Xe.set(_o,!1),document.dispatchEvent(new CustomEvent("immersiveTranslateDocumentMessageUserResult",{detail:n?"close":"success"}))}function X3(e){j.debug("update user info",e);let t=e.detail;Xe.set(Tt,t)}async function ef(e){let t=await vn();if(t.translationService)return;let n=e.config.translationService,a=["bing","transmart","google"];a.sort((o,u)=>o===n?-1:u===n?1:0);let r=await Rf(a,e);if(!r){Wo("no_avaliable_translation_service",[{name:"no_avaliable_translation_service"}]);return}e.translationService!==r&&(t.translationService=r,Cn(t),e.translationService=r,Wo("change_default_translation_service",[{name:"change_default_translation_service",params:{translation_service:r}}]))}var Yr=async function(e,t){let{method:n,data:a}=e,r=await _f(),o=Date.now();if(j.debug(`content script received message: ${n}`,a||" "),n==="translateTheWholePage")await Dc(a),$e(Ln,o);else if(n==="translateTheMainPage")await ys(a),$e(Ln,o);else if(n==="translateToThePageEndImmediately")await Ff(a),$e(Ln,o);else if(n==="toggleTranslatePage")await ss(a),$e(Ln,o);else if(n==="toggleTranslateTheWholePage")await Pf(a),$e(Ln,o);else if(n==="toggleTranslateTheMainPage")await Lf(a),$e(Ln,o);else if(n==="toggleOnlyTransation")await ds(a),$e(Ln,o);else if(n==="translatePage")await wn(r,a),$e(Ln,o);else if(n==="toggleTranslationMask")await cs(a);else if(n==="restorePage")or();else if(n==="setCurrentPageLanguageByClient")Tn(a);else if(n==="retryFailedParagraphs")ls();else if(n==="switchTranslationMode"){if(r.rule.isPdf)return;a&&a.mode&&Mf(a.mode)}},ox=function(e,t){let{method:n,data:a}=e;if(j.debug(`content script received sync message: ${n}`,a||" "),n==="ping")return"pong";if(n==="getPageStatus")return tt();if(n==="getCurrentPageLanguage"){let r=Dt();return Ac().catch(o=>{j.warn("detectCurrentPageLanguage failed",o)}),r}},Ts,xs;function tf(){let e=Es();mt()||ux(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function Es(){return Ts||(Ts=new la("content_script",!1).getConnection("main",Yr),Ts)}function ux(){return xs||(xs=new la("content_script",!1).getConnection("main_sync",ox,{sync:!0}),xs)}async function rt(e){return await Es().sendMessage("background:main",e)}function se(e){return Wu()?pi({method:"request",data:e}):me()||qu()?(e.fetchPolyfill=globalThis.GM_fetch,Pn(e)):rt({method:"fetch",data:e})}function Nn(){return me()?Ge():rt({method:"getConfig"})}function Cn(e){return me()?Go(e):rt({method:"setUserConfig",data:e})}function vn(){return me()?$o():rt({method:"getUserConfig"})}function U3(){return me()?Gn():rt({method:"getLocalConfig"})}function Zi(e){return me()?yn(e):rt({method:"setLocalConfig",data:e})}function L3(e){return me()?jm(e):rt({method:"setBuildinConfig",data:e})}async function it(e){if(e.text){let n=ki(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(me()||ot()){let n=ap(e.text,e.minLength,e.pageLangs);return Promise.resolve(n)}let t=await rt({method:"detectLanguage",data:e});return Promise.resolve(t)}function o3(){return rt({method:"detectTabLanguage"})}function Zp(e){if(me()){let n=new CustomEvent(Ju,{detail:e});document.dispatchEvent(n);return}Es().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(n=>{})}function If(e){return me()?bl(e):rt({method:"queryParagraphCache",data:e})}async function Of(e){if(me()){await hl(e);return}return rt({method:"setParagraphCache",data:e})}async function Nf(){if(me())return Promise.resolve();await rt({method:"mockRequest"})}function Zr(e=!1,t=""){return me()?(Q.runtime.openOptionsPage(e,t),Promise.resolve()):rt({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function Bf(e=""){return me()||ot()?Ke().OPTIONS_URL:Q.runtime.getURL("options.html")}function h3(e=""){return Q&&Q.runtime&&Q.runtime.getURL?Q.runtime.getURL("options.html"):""}function Xi(e=!1){return me()?(Q.extra.openAboutPage(e),Promise.resolve()):rt({method:"openAboutPage"})}function nf(e=!1){return me()?(Q.extra.openSearchEnhancement(e),Promise.resolve()):rt({method:"openSearchEnhancement"})}function es(e){return me()?(Q.extra.openInTab(e),Promise.resolve()):rt({method:"openInTab",data:e})}function ts(e=!1){return me()?(Q.extra.openEbookViewerPage(e),Promise.resolve()):rt({method:"openEbookViewerPage"})}function M3(e=!1){return me()?Promise.resolve():rt({method:"openHtmlViewerPage"})}function ns(e=!1){return me()?(Q.extra.openEbookBuilderPage(e),Promise.resolve()):rt({method:"openEbookBuilderPage"})}function af(e){ot()}function tc(e=!1){return me()?(Q.extra.openPdfViewerPage(e),Promise.resolve()):rt({method:"openPdfViewerPage"})}function P3(e=!1){return me()?(Q.extra.openSubtitleBuilderPage(e),Promise.resolve()):rt({method:"openSubtitleBuilderPage"})}function Lc(e){return me()?Promise.resolve():rt({method:"setBadge",data:{text:e}})}function E3(){return me()?(j.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):rt({method:"autoSyncLatestConfig"})}var xe=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=200;translationOptions;constructor(t,n,a){this.serviceConfig=t,this.generalConfig=n,this.translationOptions=a}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getDefaultRateLimit(){return null}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,a){if(t.sentences.length===0)return{sentences:[]};let{sentences:r}=t,o=[],u=null,i=new Set;for(let y of r)y.from&&y.from!=="auto"&&i.add(y.from);let s=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(s=this.serviceConfig.maxTextLengthPerRequest);let c=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(c=this.serviceConfig.maxTextGroupLengthPerRequest);try{o=Hm(r,s,c)}catch(y){if(a)for(let v=0;vy));let l=[],m=[],p=(y,v,b)=>{let S=v.translatedTexts[0];m[y]||(m[y]=v,m[y].translatedTexts=Array(v.sentenceTotalParts).fill(null)),m[y].translatedTexts[v.partIndex]=S;let A=m[y],N=0;for(let _=0;_{let A=await l3(this.translationOptions.translationService);await qn(A||0);let N=v.from;if(v.fromByClient&&v.fromByClient!=="auto"&&(N=v.fromByClient),this.isSupportList)return{...await this.translateList({text:v.tempSentences.map(x=>x.text),from:N,to:v.to,url:b,options:n}),sourceTempSentences:v.tempSentences};{let _=Ng;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(_=this.serviceConfig.translationTextSeparator);let x=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(x=this.serviceConfig.newlinePlaceholderDelimiters);let E="";x&&x.length>=2?E=v.tempSentences.map((M,D)=>D===v.tempSentences.length-1?M.text:M.text+x[0]+(D+1)+x[1]).join(""):E=v.tempSentences.map(M=>M.text).join(_);let T=await this.translate({text:E,from:N,to:v.to,url:b,options:n}),{text:w}=T,C=[];if(x&&x.length>=2){let M=`${x[0]}\\d+${x[1]}`;x&&x.length>=3&&(M=x[2]);let D=new RegExp(M,"g");C=w.split(D)}else C=w.split(_);let I=[];if(C.length>v.tempSentences.length){for(let M=0;M{let{text:N,sourceTempSentences:_}=A;for(let x=0;x{if(a){for(let N=0;N({...y.sentence,text:y.translatedTexts.join("")}))}}detectLanguageLocally(t){return it({text:t,minLength:18,pageLangs:[Dt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}};var Uf=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],ou=class e extends xe{static langMap=new Map(Uf);static langMapReverse=new Map(Uf.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),a=`${t.getUTCMonth()+1}`.padStart(2,"0"),r=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${a}-${r}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.secretId||!t.secretKey)throw new Error("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}async translate(t){let{text:n,from:a,to:r}=t,o=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceText:n,Target:e.langMap.get(r)||r}),u=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:o,service:"tmt",version:"2018-03-21"});return{text:u.Response.TargetText,from:e.langMapReverse.get(u.Response.Source)||a,to:e.langMapReverse.get(u.Response.Target)||r}}async translateList(t){let{text:n,from:a,to:r}=t,o=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceTextList:n,Target:e.langMap.get(r)||r}),u=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:o,service:"tmt",version:"2018-03-21"});return{text:u.Response.TargetTextList,from:e.langMapReverse.get(u.Response.Source)||a,to:e.langMapReverse.get(u.Response.Target)||r}}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:o,version:u}){let i=`${o}.tencentcloudapi.com`,s=new Date,c=`${new Date().valueOf()}`.slice(0,10),l=["POST","/","","content-type:application/json; charset=utf-8",`host:${i}`,"","content-type;host",await In(r)].join(` -`),m=e.getUTCDate(s),p=["TC3-HMAC-SHA256",c,`${m}/${o}/tc3_request`,await In(l)].join(` -`),f=await Np(m,`TC3${n}`),g=await Oi(o,f),y=await Oi("tc3_request",g),v=await Oi(p,y),b=await se({retry:1,url:`https://${o}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:i,"X-TC-Action":a,"X-TC-Timestamp":c,"X-TC-Region":"ap-beijing","X-TC-Version":u,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${m}/${o}/tc3_request, SignedHeaders=content-type;host, Signature=${v}`},body:r});if(b instanceof Error)throw b;if(b.Response&&b.Response.Error&&b.Response.Error.Message)throw new Error(b.Response.Error.Message);return b}};h();var jf=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],ix={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},uu=class e extends xe{static langMap=new Map(jf);static langMapReverse=new Map(jf.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,a){super(t,n,a)}async translate(t){let{text:n,from:a,to:r}=t,o=new URLSearchParams({source:a,target:r,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),u=await se({url:`https://wxapp.translator.qq.com/api/translate?${o}`,retry:1,method:"GET",headers:ix});return{text:u.targetText,from:e.langMapReverse.get(u.source)||a,to:e.langMapReverse.get(u.target)||r}}};h();var zf=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],ur=class e extends xe{static langMap=new Map(zf);static langMapReverse=new Map(zf.map(([t,n])=>[n,t]));isSupportList=!1;apiUrl="https://translate.googleapis.com/translate_a/single";constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.apiUrl=en(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let o=e.langMap.get(a)||"auto",u=e.langMap.get(r)||r,i=await this.fetchWithoutToken(n,o,u);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async translateXml(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let o=e.langMap.get(a)||"auto",u=e.langMap.get(r)||r,i=await this.fetchXmlWithoutToken(n,o,u);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async fetchXmlWithoutToken(t,n,a){let o="https://translate.googleapis.com/translate_a/t?"+new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}).toString();return{data:await se({retry:2,url:o})}}async fetchWithoutToken(t,n,a){let r=new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}),o=this.apiUrl+"?"+r.toString();return{data:await se({retry:2,url:o})}}};h();h();h();function sx(e,t){return t?e+(t-e%t):e}function lx(e,t){return e.split(t).length-1}function Pc(e){let t=Date.now(),n=1;for(let a of e)n+=lx(a,"i");return sx(t,n)}function cx(e,t){return Math.floor(Math.random()*(t-e+1))+e}function Fc(){return cx(1e6,1e8)}h();h();h();var _c="https://www2.deepl.com/jsonrpc",Bc="auto",Hf=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];h();function dx(e=Hf){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function Rc(e){return dx()[e.toLowerCase()]}var gx={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function mx(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function px(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function fx(e,t,n,a,r,o,u){let i=Fc(),s=px(a,n),c=[];t.forEach(p=>{c.push({text:p,requestAlternatives:3})}),s.id=i,s.params.texts=c,s.params.timestamp=Pc(t);let l=await se({retry:2,method:"POST",url:e,body:mx(s),headers:gx}),m={from:l.result.lang,to:n,text:[]};return l.result.texts.forEach(p=>{m.text.push(p.text)}),m}async function qf(e,t,n,a=Bc,r,o,u){return t?t&&t.length===1&&t[0]===""?{text:[""],from:a,to:n}:fx(e,t,Rc(n),Rc(a)??"auto",r,o,u):{text:[],from:a,to:n}}var Wf=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],ro=class e extends xe{static langMap=new Map(Wf);static langMapReverse=new Map(Wf.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=_c;constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.API_URL=en(_c,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:a,from:r}=t,o=await qf(this.API_URL,n,e.langMap.get(a)||a,e.langMap.get(r)||"auto");return{text:o.text,from:e.langMapReverse.get(o.from),to:e.langMapReverse.get(o.to)}}};h();var Kf=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Ic="https://transmart.qq.com/api/imt",ir=class e extends xe{static langMap=new Map(Kf);static langMapReverse=new Map(Kf.map(([t,n])=>[n,t]));clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,a){super(t,n,a),this.clientKey=e.getClientKey()}static getClientKey(){return btoa("transmart_crx_"+navigator.userAgent).slice(0,100)}async translate(t){let{text:n,to:a}=t,r=await this.detectLanguage(n),o=e.langMap.get(r)||r,u=e.langMap.get(a)||a;if(r===a)return{text:n,from:r,to:a};let i=Ke(),s=t.url;i.INSTALL_FROM==="firefox_store"&&(s=$f());let l=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:o,orig_url:s},target:{lang:u}}),m=await se({url:Ic,body:l,method:"POST",retry:2});if(m.header.ret_code!=="succ")throw new Error(m.message||m.header.ret_code);return{text:m.auto_translation,from:r||"auto",to:a}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:a,to:r}=t,o=Ke(),u=t.url;if(o.INSTALL_FROM==="firefox_store"&&(u=$f()),a.length===1){let f=await this.translate({from:n,text:a[0],to:r,url:u,options:t.options});return{text:[f.text],from:f.from,to:f.to}}let s=await this.detectLanguage(a.join(` -`));if(s===r)return{text:a,from:s,to:r};let c=e.langMap.get(s)||s,l=e.langMap.get(r)||r,m=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:a,lang:c,orig_url:u},target:{lang:l},type:"plain"}),p=await se({url:Ic,body:m,method:"POST"});if(p.header.ret_code!=="succ")throw new Error(p.message||p.header.ret_code);return{text:p.auto_translation,from:s||"auto",to:r}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return e.detectLanguageRemotelyByTransmart(t)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},a=await se({url:Ic,method:"POST",body:JSON.stringify(n)});if(a.header.ret_code!=="succ")throw new Error(a.message||a.header.ret_code);let r=a.language,o=e.langMapReverse.get(r);return o||r}};function $f(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}h();h();function Gf(){return Math.random()>=0}var oo=class extends xe{isSupportList=!0;maxTextLength=1200;maxTextGroupLength=25;async translate(t){let{text:n}=t,a=n.match(/^\s*/)[0].length;return{text:n.slice(0,a)+"\u6A21\u62DF\uFF1A"+n.slice(a,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:a,to:r}=t;if(await Nf(),!Gf())throw new Error("\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:a,to:r,text:[""]}:{from:a,to:r,text:n.map(o=>{let u=o.match(/^\s*/)[0].length;return o.slice(0,u)+"\u6A21\u62DF\uFF1A"+o.slice(u,-6)})}}};h();var Yf=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],Oc=new Map(Yf),Vf=new Map(Yf.map(([e,t])=>[t,e])),Nc=class e extends xe{static langMap=Oc;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,a){if(super(t,n,a),!t||!t.apikey)throw new Error("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:a,to:r}=t,o=await se({retry:2,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:Oc.get(a)||"auto",target_lang:Oc.get(r)||r})});if(o.status){let u=o;return u.result&&r=="zh-TW",{text:u.result,from:Vf.get(u.source_lang),to:Vf.get(u.target_lang)}}else throw new Error(o.msg)}},Cs=Nc;h();var Jf=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],iu=new Map(Jf),hx=new Map(Jf.map(([e,t])=>[t,e])),Uc=class extends xe{static langMap=iu;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl="https://deepl.immersivetranslate.com/v2/translate";immersiveTranslateDeeplTokenUrl="https://api.immersivetranslate.com";immersiveTranslateDeeplProApiUrl=na()||aa()?"https://api2.immersivetranslate.com/deepl/translate":"https://test-api2.immersivetranslate.com/deepl/translate";provider="custom";splitor="";apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,a){if(super(t,n,a),t=t||{},this.splitor=t.qualityDelimiterBeta||"",t.provider==="pro")if(this.provider="pro",a.userToken){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=a.userToken,this.apiKeys=this.authKey.split(",").map(r=>r.trim())}else throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey.split(",").map(r=>r.trim()),!this.authKey)throw new Error("authKey are required");if(!this.authKey)throw new Error("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=en(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=en(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=en(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=en(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=en(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getDefaultRateLimit(){if(this.provider==="pro"){if(this.serviceConfig&&this.serviceConfig.immersiveTranslateProLimit){let t=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(t)&&(t=15),{limit:t,interval:1050}}return{limit:15,interval:1050}}else return{limit:3,interval:1050}}async translateList(t){let{from:n,to:a,text:r}=t,o={source_lang:iu.get(n)||"",target_lang:iu.get(a)||a},u=this.getRandomKey(),i=new URLSearchParams(o);this.splitor?i.append("text",r.join(this.splitor)):r.forEach(g=>{i.append("text",g)});let s=i.toString(),c={text:this.splitor?[r.join(this.splitor)]:r,source_lang:iu.get(n)||"auto",target_lang:iu.get(a)||a},l=this.freeApiUrl;u.endsWith(":im")?l=this.immersiveTranslateApiUrl:u.endsWith(":fx")||(l=this.proApiUrl);let m;this.provider==="pro"?m=await se({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:u,"Content-Type":"application/json"}}):u.startsWith("immersive_")?m=await se({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:u,"Content-Type":"application/json"}}):m=await se({retry:2,url:l,method:"POST",body:s,headers:{Authorization:"DeepL-Auth-Key "+u,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}});let{translations:p}=m,f=[];if(this.splitor?f=p[0]?.text.split(this.splitor).map(g=>g):f=p.map(g=>g.text),a==="zh-TW"){let g=this.serviceConfig||{};g&&g.googleApiUrl&&(g.apiUrl=g.googleApiUrl);let v=await new ur(this.serviceConfig,this.generalConfig,this.translationOptions).translate({from:"zh-CN",to:"zh-TW",text:p.map(b=>b.text).join(` +`)}function Sf(e,t){if(!e.keyword)return;let n=e.keyword.value||"";for(let a=0;anew RegExp(a.urlMatch).test(t))}async function Df(e){if(fn().any)return;if(!e.rule.enableSearchEnhancement){j.debug("enable is false");return}let t=XT(e.rule.searchEnhancementConfig||[],e.url);if(!t){j.debug("not found siteConfig",e.url);return}let n=Sf(t,e.url);if(!n){j.debug("not found keyword",e.url);return}t.id=="google"?tx(e,t,n):ex(e,t,n)}async function ex(e,t,n){let a=await it({text:document.title,pageLangs:[Dt(),"en"]});t.selector&&setTimeout(async()=>{let r=document.querySelector(t.selector);if(!r){j.debug("selector node not found",t.selector);return}let o=await Sc(n,t.showCount);if(o&&o.length<=0){j.debug("list not found");return}let u=await Ac(t,o,n,t.showCount);if(!u){j.debug("getInseredNode none");return}u.style.cssText=t.style.container||"";let i=t.selectorAction||"appendChild";i=="insertBefore"?r.parentElement?.insertBefore(u,r):i=="appendChild"?r.appendChild(u):i=="replace"&&r?.replaceWith(u),kc(e,t,u,a),fs(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a)},t.delayTime||0)}async function tx(e,t,n){let a=await it({text:n,pageLangs:["en"]});if(fs(e,{key:"detect_search_action"},a),!["zh-CN","zh-TW"].includes(a))return;j.debug("use dual search");let r=!1;if(new URL(e.url).searchParams.get("tbm")==="nws")r=!0;else if(!Af(document.body))return;let u=document.querySelector("#rhs");if(!u){let i=document.querySelector("#rcnt");if(!i)return;let s=i.children;if(s&&s.length>1)u=s[1];else{let c=s[0];u=document.createElement("div"),u.id="rhs",u.style.maxWidth="372px",u.style.marginLeft="50px",i.insertBefore(u,c.nextSibling)}}if(r||Af(document.body)){j.debug("find story");let i=await kf(e,n,a);j.debug("enKeyword",i);let s=await Sc(i,t.showCount);if(j.debug("news list",s),s&&s.length<=0)return;let c=await Ac(t,s,i,t.showCount);if(!c)return;fs(e,{key:"show_search_enhancement",sourceLanguage:"search_enhancement"},a),kc(e,t,c,a),u.insertBefore(c,u?.firstChild)}}function Af(e){let t=e.querySelectorAll("[aria-level='2'][role=heading]");if(!t)return!1;for(let n of t){let a=(n?.textContent||"").trim();if(a.indexOf("\u7126\u70B9\u65B0\u95FB")>=0||a.indexOf("\u7126\u9EDE\u65B0\u805E")>=0||a.indexOf("Top stories")>=0)return!0}return!1}h();function Lf(e){e.state.translationMode="translation",Gr(e)}var Se=null,hs={},ro,Mf=!1;async function is(e){if(tt()==="Original"){let t={translationMode:void 0};ro&&(t.translationTheme=ro),Se&&(t={...Se.state,...t}),await $t(At(),t),await wn(Se,e)}else(tt()==="Translated"||tt()==="Error")&&sr()}async function ss(){if(Se=await $t(At(),{}),Se.rule.isEbookBuilder)return cf(Se);if(Se.rule.isSubtitleBuilder)return sf(Se);o3()}async function ls(e){if(tt()==="Original")Se=await $t(At(),{}),ro||(ro=Se.state.translationTheme),Se=await $t(At(),{translationTheme:"mask"}),await wn(Se,e);else if(tt()==="Translated"){let t=Ep().filter(r=>r.contentDocument?.body).map(r=>r.contentDocument.body),n=[Se.mainFrame,...t],a=Se?.state.translationTheme;for(let r of n){let o=Pr(r,Ar,!0);a==="mask"?o!=="none"?ft(r,Ar,"none",!0):ft(r,Ar,"mask",!0):o!=="mask"?ft(r,Ar,"mask",!0):ft(r,Ar,"none",!0)}}}async function Dc(){let e=await $t(At(),{});return e.rule.isSubtitleBuilder?fc():r3(e)}function nx(e){tt()==="Original"?Lf(e):ca()}function ax(e){tt()==="Original"?uf(e):hc()}function rx(e){tt()==="Original"?Gr(e):ca()}async function sr(){Mc("");let e=await $t(At(),{});if(e.rule.isSubtitleBuilder){hc();return}else e.rule.isEbookBuilder&&df();ca()}async function wn(e,t){tt()!=="Original"&&await sr(),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"translateStart",payload:{}})})),document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"targetLanguage",payload:{targetLanguage:e.targetLanguage}})})),hs[e.translationService]||(hs[e.translationService]=!0,pt()||Pc(e).catch(a=>{j.warn("init translation engine error",a)}));let n={};if(t&&t.trigger&&(n.trigger=t.trigger),et("translage_page_daily",[{name:"translage_page_daily",params:n}],e),et("translate_page",[{name:"translate_page",params:n}],{...e,sourceLanguage:Dt()}),e.rule.isSubtitleBuilder)return ax(e);if(e.rule.isEbookBuilder)return gf(e);if(e.rule.isPdf)return nx(e);rx(e),Mc("yes")}async function Pf(e){tt()==="Original"?await bs(e):(tt()==="Translated"||tt()==="Error")&&(Se=await $t(At(),{}),Se.state.translationArea!=="main"?await bs(e):sr())}async function bs(e){Se=await $t(At(),{translationArea:"main"}),await wn(Se,e)}async function Lc(e){Se=await $t(At(),{translationArea:"body"}),await wn(Se,e)}async function cs(e){if(tt()==="Original"){let t=await $t(At(),{translationMode:"translation"});await wn(t,e)}else(tt()==="Translated"||tt()==="Error")&&await sr()}async function Ff(e){if(Se=await $t(At(),{translationMode:void 0}),et("switch_translation_mode",[{name:"switch_translation_mode",params:{mode:e}}],{...Se,sourceLanguage:"unknown"}),tt()==="Original"){wn(Se);return}window.immersiveTranslateSwitchTranslateState&&window.immersiveTranslateSwitchTranslateState(e)}async function _f(e){if(tt()==="Original")await Lc(e);else if(tt()==="Translated"||tt()==="Error"){let t={};Se&&Se.state&&(t=Se.state),Se=await $t(At(),t),Se.state.translationArea!=="body"?(Se.state.translationArea="body",Se=await $t(At(),Se.state),await wn(Se,e)):sr()}}async function Bf(e){Se=await $t(At(),{translationStartMode:"immediate"}),await wn(Se,e)}async function X3(){let e=await $t(At(),{});if(j.debug("init page ctx",e),e.rule.isSubtitleBuilder){fc();return}if(e.rule.isEbookBuilder){lf();return}if(Df(e),ro||(ro=e.state.translationTheme),e.rule.urlChangeDelay&&await qn(e.rule.urlChangeDelay),e.rule.waitForSelectors&&e.rule.waitForSelectors.length>0&&await ox(e.rule.waitForSelectors,e.rule.waitForSelectorsTimeout),e.rule.isInjectOptionsUrl){let a=If(),r=document.createElement("meta");r.name="immersive-translate-options-url",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(o){j.warn("inject options url failed",o)}}if(e.rule.isInjectVersion){let a=hn(),r=document.createElement("meta");r.name="immersive-translate-version",r.content=a;try{document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(o){j.warn("inject version failed",o)}}if(e.rule.globalMeta&&Object.keys(e.rule.globalMeta).forEach(r=>{let o=document.createElement("meta");o.name=r,o.content=e.rule.globalMeta[r],document.head.appendChild(o)}),e.rule.initialGlobalAttributes&&Dp(document.body,e.rule.initialGlobalAttributes),e.rule.isPdf){wn(e);return}if(e.rule.isOnBoardingPage){document.dispatchEvent(new CustomEvent(_t,{detail:JSON.stringify({type:"currentConfig",payload:{enableDefaultAlwaysTranslatedUrls:!!e.config.enableDefaultAlwaysTranslatedUrls}})}));let a=document.querySelector("#immersiveTranslateEnableDefaultAlwaysTranslatedUrlsValue");a&&(a.value="helloworld",a.value=String(!!e.config.enableDefaultAlwaysTranslatedUrls),a.dispatchEvent(new Event("change")))}Mf||(Mf=!0,globalThis.top!==globalThis.self&&e.rule.useIframePostMessage&&await bp());let t=e.sourceLanguage;if(t==="auto"?t=await Dc():Tn(t),e.rule.isInjectMeta)try{let a=await Sp(t),r=document.createElement("meta");r.name="immersive-translate-meta",r.content=h0(JSON.stringify(a)),document.head&&document.head.appendChild&&document.head.appendChild(r)}catch(a){j.warn("inject meta failed",a)}let n=e.state.isAutoTranslate||e.isTranslateUrl||e.rule.isPdf;if(!n&&!e.isTranslateExcludeUrl&&(j.debug(`detect page language: ${e.url} ${t}`),Aa(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto"||yp(t,e.config.translationLanguagePattern)&&(n=!0,j.debug(`match language pattern ${t}, auto translate`))),e.rule.isEbookBuilder&&(n=!1),!e.rule.isPdf&&ua()&&ds(e,window),n)Se.state.isAutoTranslate=!0,wn(Se);else if(j.debug("do not auto translate",e),e.rule.initTranslationServiceAsSoonAsPossible&&e.translationService==="deepl"){if(Aa(t,e.targetLanguage,{ignoreZhCNandZhTW:e.rule.ignoreZhCNandZhTW})||t==="auto")return;e.config&&e.config.translationServices&&e.config.translationServices.deepl&&e.config.translationServices.deepl.authKey&&typeof e.config.translationServices.deepl.authKey=="string"&&e.config.translationServices.deepl.authKey.startsWith("immersive_")&&(hs[e.translationService]||(hs[e.translationService]=!0,pt()||Pc(e).catch(a=>{j.warn("init translation engine error",a)})))}}async function $t(e,t){let n=Object.keys(t);if(Se){let a={url:e,config:Se.config,state:{...Se.state,...t}};Se=await Lt(a)}else{let a=await Nn(),r=t;n.length===0&&(r=void 0),Se=await Lt({url:e,config:a,state:r})}return Se}async function Rf(){let e=await Nn(),t;Se&&Se.state&&(t=Se.state);let n={url:At(),config:e,state:t},a=await Lt(n);Se=a;let r=Ki(),o=[];return r?o=r.allInlineWindows||[window]:o=[window],o.forEach(u=>{J3(a,u),ua()&&ds(a,u),Cf(a)}),a}function ox(e,t=3e3){return new Promise((n,a)=>{let r=t?setTimeout(()=>{n(new Error("timeout"))},t):void 0,o=setInterval(()=>{e.every(i=>document.querySelector(i)!==null)&&(clearInterval(o),r&&clearTimeout(r),n(null))},50)})}async function ef(e){let t=e.detail;Xe.set(ct,t);let n=await Xe.get(_o,!1);Xe.set(_o,!1),document.dispatchEvent(new CustomEvent("immersiveTranslateDocumentMessageUserResult",{detail:n?"close":"success"}))}function tf(e){j.debug("update user info",e);let t=e.detail;Xe.set(ct,t)}async function nf(e){let t=await vn();if(t.translationService)return;let n=e.config.translationService,a=["bing","transmart","google"];a.sort((o,u)=>o===n?-1:u===n?1:0);let r=await Of(a,e);if(!r){Wo("no_avaliable_translation_service",[{name:"no_avaliable_translation_service"}]);return}e.translationService!==r&&(t.translationService=r,Cn(t),e.translationService=r,Wo("change_default_translation_service",[{name:"change_default_translation_service",params:{translation_service:r}}]))}var Jr=async function(e,t){let{method:n,data:a}=e,r=await Rf(),o=Date.now();if(j.debug(`content script received message: ${n}`,a||" "),n==="translateTheWholePage")await Lc(a),$e(Ln,o);else if(n==="translateTheMainPage")await bs(a),$e(Ln,o);else if(n==="translateToThePageEndImmediately")await Bf(a),$e(Ln,o);else if(n==="toggleTranslatePage")await is(a),$e(Ln,o);else if(n==="toggleTranslateTheWholePage")await _f(a),$e(Ln,o);else if(n==="toggleTranslateTheMainPage")await Pf(a),$e(Ln,o);else if(n==="toggleOnlyTransation")await cs(a),$e(Ln,o);else if(n==="translatePage")await wn(r,a),$e(Ln,o);else if(n==="toggleTranslationMask")await ls(a);else if(n==="restorePage")sr();else if(n==="setCurrentPageLanguageByClient")Tn(a);else if(n==="retryFailedParagraphs")ss();else if(n==="switchTranslationMode"){if(r.rule.isPdf)return;a&&a.mode&&Ff(a.mode)}},ux=function(e,t){let{method:n,data:a}=e;if(j.debug(`content script received sync message: ${n}`,a||" "),n==="ping")return"pong";if(n==="getPageStatus")return tt();if(n==="getCurrentPageLanguage"){let r=Dt();return Dc().catch(o=>{j.warn("detectCurrentPageLanguage failed",o)}),r}},ys,Ts;function af(){let e=xs();pt()||ix(),e.sendMessage("popup:main_sync",{method:"ready"}).catch(n=>{})}function xs(){return ys||(ys=new sa("content_script",!1).getConnection("main",Jr),ys)}function ix(){return Ts||(Ts=new sa("content_script",!1).getConnection("main_sync",ux,{sync:!0}),Ts)}async function rt(e){return await xs().sendMessage("background:main",e)}function se(e){return qu()?mi({method:"request",data:e}):me()||Hu()?(e.fetchPolyfill=globalThis.GM_fetch,Pn(e)):rt({method:"fetch",data:e})}function Nn(){return me()?Ge():rt({method:"getConfig"})}function Cn(e){return me()?Go(e):rt({method:"setUserConfig",data:e})}function vn(){return me()?$o():rt({method:"getUserConfig"})}function z3(){return me()?$n():rt({method:"getLocalConfig"})}function Qi(e){return me()?yn(e):rt({method:"setLocalConfig",data:e})}function P3(e){return me()?zm(e):rt({method:"setBuildinConfig",data:e})}async function it(e){if(e.text){let n=wi(e.text);if(n!=="auto")return Promise.resolve(n)}else return"auto";if(me()||ot()){let n=rp(e.text,e.minLength,e.pageLangs);return Promise.resolve(n)}let t=await rt({method:"detectLanguage",data:e});return Promise.resolve(t)}function u3(){return rt({method:"detectTabLanguage"})}function Xp(e){if(me()){let n=new CustomEvent(Yu,{detail:e});document.dispatchEvent(n);return}xs().sendMessage("popup:main_sync",{method:"setPageStatus",data:e}).catch(n=>{})}function Nf(e){return me()?bl(e):rt({method:"queryParagraphCache",data:e})}async function Uf(e){if(me()){await hl(e);return}return rt({method:"setParagraphCache",data:e})}async function jf(){if(me())return Promise.resolve();await rt({method:"mockRequest"})}function Xr(e=!1,t=""){return me()?(X.runtime.openOptionsPage(e,t),Promise.resolve()):rt({method:"openOptionsPage",data:{newTab:e,pageRoute:t}})}function If(e=""){return me()||ot()?Ke().OPTIONS_URL:X.runtime.getURL("options.html")}function b3(e=""){return X&&X.runtime&&X.runtime.getURL?X.runtime.getURL("options.html"):""}function Zi(e=!1){return me()?(X.extra.openAboutPage(e),Promise.resolve()):rt({method:"openAboutPage"})}function rf(e=!1){return me()?(X.extra.openSearchEnhancement(e),Promise.resolve()):rt({method:"openSearchEnhancement"})}function Xi(e){return me()?(X.extra.openInTab(e),Promise.resolve()):rt({method:"openInTab",data:e})}function es(e=!1){return me()?(X.extra.openEbookViewerPage(e),Promise.resolve()):rt({method:"openEbookViewerPage"})}function F3(e=!1){return me()?Promise.resolve():rt({method:"openHtmlViewerPage"})}function ts(e=!1){return me()?(X.extra.openEbookBuilderPage(e),Promise.resolve()):rt({method:"openEbookBuilderPage"})}function of(e){ot()}function nc(e=!1){return me()?(X.extra.openPdfViewerPage(e),Promise.resolve()):rt({method:"openPdfViewerPage"})}function _3(e=!1){return me()?(X.extra.openSubtitleBuilderPage(e),Promise.resolve()):rt({method:"openSubtitleBuilderPage"})}function Mc(e){return me()?Promise.resolve():rt({method:"setBadge",data:{text:e}})}function C3(){return me()?(j.warn("autoSyncLatestConfig is not support in monkey"),Promise.resolve()):rt({method:"autoSyncLatestConfig"})}var xe=class{static langMap=new Map;serviceConfig;generalConfig;maxTextLength=1800;isSupportList=!0;maxTextGroupLength=200;translationOptions;constructor(t,n,a){this.serviceConfig=t,this.generalConfig=n,this.translationOptions=a}async init(){}getMaxTextGroupLength(){return this.maxTextGroupLength}getDefaultRateLimit(){return null}translate(t){throw new Error("Not implemented")}translateList(t){throw new Error("Not implemented")}async multipleTranslate(t,n,a){if(t.sentences.length===0)return{sentences:[]};let{sentences:r}=t,o=[],u=null,i=new Set;for(let y of r)y.from&&y.from!=="auto"&&i.add(y.from);let s=this.maxTextLength;this.serviceConfig&&this.serviceConfig.maxTextLengthPerRequest&&(s=this.serviceConfig.maxTextLengthPerRequest);let c=this.maxTextGroupLength;this.serviceConfig&&this.serviceConfig.maxTextGroupLengthPerRequest&&(c=this.serviceConfig.maxTextGroupLengthPerRequest);try{o=qm(r,s,c)}catch(y){if(a)for(let v=0;vy));let l=[],g=[],p=(y,v,b)=>{let S=v.translatedTexts[0];g[y]||(g[y]=v,g[y].translatedTexts=Array(v.sentenceTotalParts).fill(null)),g[y].translatedTexts[v.partIndex]=S;let A=g[y],N=0;for(let _=0;_{let A=await c3(this.translationOptions.translationService);await qn(A||0);let N=v.from;if(v.fromByClient&&v.fromByClient!=="auto"&&(N=v.fromByClient),this.isSupportList)return{...await this.translateList({text:v.tempSentences.map(x=>x.text),from:N,to:v.to,url:b,options:n}),sourceTempSentences:v.tempSentences};{let _=Ug;this.serviceConfig&&this.serviceConfig.translationTextSeparator&&(_=this.serviceConfig.translationTextSeparator);let x=null;this.serviceConfig&&this.serviceConfig.newlinePlaceholderDelimiters&&(x=this.serviceConfig.newlinePlaceholderDelimiters);let E="";x&&x.length>=2?E=v.tempSentences.map((M,D)=>D===v.tempSentences.length-1?M.text:M.text+x[0]+(D+1)+x[1]).join(""):E=v.tempSentences.map(M=>M.text).join(_);let T=await this.translate({text:E,from:N,to:v.to,url:b,options:n}),{text:w}=T,C=[];if(x&&x.length>=2){let M=`${x[0]}\\d+${x[1]}`;x&&x.length>=3&&(M=x[2]);let D=new RegExp(M,"g");C=w.split(D)}else C=w.split(_);let I=[];if(C.length>v.tempSentences.length){for(let M=0;M{let{text:N,sourceTempSentences:_}=A;for(let x=0;x{if(a){for(let N=0;N({...y.sentence,text:y.translatedTexts.join("")}))}}detectLanguageLocally(t){return it({text:t,minLength:18,pageLangs:[Dt(),"en"]})}detectLanguageRemotely(t){return Promise.resolve("auto")}detectLanguage(t){return t.length>=50?this.detectLanguageLocally(t):this.detectLanguageRemotely(t)}};var zf=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],ou=class e extends xe{static langMap=new Map(zf);static langMapReverse=new Map(zf.map(([t,n])=>[n,t]));static getUTCDate(t){let n=t.getUTCFullYear(),a=`${t.getUTCMonth()+1}`.padStart(2,"0"),r=`${t.getUTCDate()}`.padStart(2,"0");return`${n}-${a}-${r}`}secretId="";secretKey="";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.secretId||!t.secretKey)throw new Error("secretId and secretKey are required");this.secretId=t.secretId?.trim(),this.secretKey=t.secretKey?.trim()}async translate(t){let{text:n,from:a,to:r}=t,o=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceText:n,Target:e.langMap.get(r)||r}),u=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslate",payload:o,service:"tmt",version:"2018-03-21"});return{text:u.Response.TargetText,from:e.langMapReverse.get(u.Response.Source)||a,to:e.langMapReverse.get(u.Response.Target)||r}}async translateList(t){let{text:n,from:a,to:r}=t,o=JSON.stringify({ProjectId:0,Source:e.langMap.get(a)||"auto",SourceTextList:n,Target:e.langMap.get(r)||r}),u=await this.signedRequest({secretId:this.secretId,secretKey:this.secretKey,action:"TextTranslateBatch",payload:o,service:"tmt",version:"2018-03-21"});return{text:u.Response.TargetTextList,from:e.langMapReverse.get(u.Response.Source)||a,to:e.langMapReverse.get(u.Response.Target)||r}}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:o,version:u}){let i=`${o}.tencentcloudapi.com`,s=new Date,c=`${new Date().valueOf()}`.slice(0,10),l=["POST","/","","content-type:application/json; charset=utf-8",`host:${i}`,"","content-type;host",await In(r)].join(` +`),g=e.getUTCDate(s),p=["TC3-HMAC-SHA256",c,`${g}/${o}/tc3_request`,await In(l)].join(` +`),f=await Up(g,`TC3${n}`),m=await Ii(o,f),y=await Ii("tc3_request",m),v=await Ii(p,y),b=await se({retry:1,url:`https://${o}.tencentcloudapi.com`,method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Host:i,"X-TC-Action":a,"X-TC-Timestamp":c,"X-TC-Region":"ap-beijing","X-TC-Version":u,Authorization:`TC3-HMAC-SHA256 Credential=${t}/${g}/${o}/tc3_request, SignedHeaders=content-type;host, Signature=${v}`},body:r});if(b instanceof Error)throw b;if(b.Response&&b.Response.Error&&b.Response.Error.Message)throw new Error(b.Response.Error.Message);return b}};h();var Hf=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","jp"],["ko","kr"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],sx={"content-type":"application/json",Host:"wxapp.translator.qq.com","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.32(0x18002035) NetType/WIFI Language/zh_TW",Referer:"https://servicewechat.com/wxb1070eabc6f9107e/117/page-frame.html"},uu=class e extends xe{static langMap=new Map(Hf);static langMapReverse=new Map(Hf.map(([t,n])=>[n,t]));isSupportList=!1;constructor(t,n,a){super(t,n,a)}async translate(t){let{text:n,from:a,to:r}=t,o=new URLSearchParams({source:a,target:r,sourceText:n,platform:"WeChat_APP",candidateLangs:"en|zh",guid:"oqdgX0SIwhvM0TmqzTHghWBvfk22"}).toString(),u=await se({url:`https://wxapp.translator.qq.com/api/translate?${o}`,retry:1,method:"GET",headers:sx});return{text:u.targetText,from:e.langMapReverse.get(u.source)||a,to:e.langMapReverse.get(u.target)||r}}};h();var qf=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["sa","sa"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["fil","tl"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],lr=class e extends xe{static langMap=new Map(qf);static langMapReverse=new Map(qf.map(([t,n])=>[n,t]));isSupportList=!1;apiUrl="https://translate.googleapis.com/translate_a/single";constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.apiUrl=en(this.apiUrl,t.apiUrl))}getDefaultRateLimit(){return{limit:10,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let o=e.langMap.get(a)||"auto",u=e.langMap.get(r)||r,i=await this.fetchWithoutToken(n,o,u);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async translateXml(t){let{text:n,from:a,to:r}=t;if(!n)return{...t};let o=e.langMap.get(a)||"auto",u=e.langMap.get(r)||r,i=await this.fetchXmlWithoutToken(n,o,u);if(!i)throw new Error("google translate NETWORK_ERROR");if(!i.data[0]||i.data[0].length<=0)throw new Error("google translate API_SERVER_ERROR");return{text:i.data[0].map(c=>c[0]).filter(Boolean).join(""),from:e.langMapReverse.get(i.data[2])||"auto",to:r}}async fetchXmlWithoutToken(t,n,a){let o="https://translate.googleapis.com/translate_a/t?"+new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}).toString();return{data:await se({retry:2,url:o})}}async fetchWithoutToken(t,n,a){let r=new URLSearchParams({client:"gtx",dt:"t",sl:n,tl:a,q:t}),o=this.apiUrl+"?"+r.toString();return{data:await se({retry:2,url:o})}}};h();h();h();function lx(e,t){return t?e+(t-e%t):e}function cx(e,t){return e.split(t).length-1}function Fc(e){let t=Date.now(),n=1;for(let a of e)n+=cx(a,"i");return lx(t,n)}function dx(e,t){return Math.floor(Math.random()*(t-e+1))+e}function _c(){return dx(1e6,1e8)}h();h();h();var Bc="https://www2.deepl.com/jsonrpc",Rc="auto",Wf=[{code:"BG",language:"Bulgarian"},{code:"ZH",language:"Chinese"},{code:"CS",language:"Czech"},{code:"DA",language:"Danish"},{code:"NL",language:"Dutch"},{code:"EN",language:"English"},{code:"ET",language:"Estonian"},{code:"FI",language:"Finnish"},{code:"FR",language:"French"},{code:"DE",language:"German"},{code:"EL",language:"Greek"},{code:"HU",language:"Hungarian"},{code:"IT",language:"Italian"},{code:"JA",language:"Japanese"},{code:"LV",language:"Latvian"},{code:"LT",language:"Lithuanian"},{code:"PL",language:"Polish"},{code:"PT",language:"Portuguese"},{code:"RO",language:"Romanian"},{code:"RU",language:"Russian"},{code:"SK",language:"Slovak"},{code:"SL",language:"Slovenian"},{code:"ES",language:"Spanish"},{code:"SV",language:"Swedish"}];h();function gx(e=Wf){return e.reduce((t,n)=>(t[n.code.toLowerCase()]=n.code,t[n.language.toLowerCase()]=n.code,t),{})}function Ic(e){return gx()[e.toLowerCase()]}var mx={Accept:"*/*","Accept-Language":"en-US;q=0.8,en;q=0.7","Content-Type":"application/json",Origin:"https://www.deepl.com",Referer:"https://www.deepl.com/translator","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-site"};function px(e){return JSON.stringify(e).replace('"method":"',()=>{let t=e;return(t.id+3)%13===0||(t.id+5)%29===0?'"method" : "':'"method": "'})}function fx(e,t){return{id:1,jsonrpc:"2.0",method:"LMT_handle_texts",params:{timestamp:0,texts:[{text:"",requestAlternatives:3}],splitting:"newlines",lang:{source_lang_user_selected:e,target_lang:t}}}}async function hx(e,t,n,a,r,o,u){let i=_c(),s=fx(a,n),c=[];t.forEach(p=>{c.push({text:p,requestAlternatives:3})}),s.id=i,s.params.texts=c,s.params.timestamp=Fc(t);let l=await se({retry:2,method:"POST",url:e,body:px(s),headers:mx}),g={from:l.result.lang,to:n,text:[]};return l.result.texts.forEach(p=>{g.text.push(p.text)}),g}async function Kf(e,t,n,a=Rc,r,o,u){return t?t&&t.length===1&&t[0]===""?{text:[""],from:a,to:n}:hx(e,t,Ic(n),Ic(a)??"auto",r,o,u):{text:[],from:a,to:n}}var $f=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],oo=class e extends xe{static langMap=new Map($f);static langMapReverse=new Map($f.map(([t,n])=>[n,t]));maxTextGroupLength=3;maxTextLength=800;isSupportList=!0;API_URL=Bc;constructor(t,n,a){super(t,n,a),t&&t.apiUrl&&(this.API_URL=en(Bc,t.apiUrl))}getDefaultRateLimit(){return{limit:1,interval:1050}}async translateList(t){let{text:n,to:a,from:r}=t,o=await Kf(this.API_URL,n,e.langMap.get(a)||a,e.langMap.get(r)||"auto");return{text:o.text,from:e.langMapReverse.get(o.from),to:e.langMapReverse.get(o.to)}}};h();var Gf=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh-TW"],["de","de"],["en","en"],["es","es"],["fr","fr"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["ms","ms"],["pt","pt"],["ru","ru"],["th","th"],["tr","tr"],["vi","vi"]],Oc="https://transmart.qq.com/api/imt",cr=class e extends xe{static langMap=new Map(Gf);static langMapReverse=new Map(Gf.map(([t,n])=>[n,t]));clientKey;maxTextGroupLength=25;maxTextLength=1e3;isSupportList=!1;constructor(t,n,a){super(t,n,a),this.clientKey=e.getClientKey()}static getClientKey(){return btoa("transmart_crx_"+navigator.userAgent).slice(0,100)}async translate(t){let{text:n,to:a}=t,r=await this.detectLanguage(n),o=e.langMap.get(r)||r,u=e.langMap.get(a)||a;if(r===a)return{text:n,from:r,to:a};let i=Ke(),s=t.url;i.INSTALL_FROM==="firefox_store"&&(s=Vf());let l=JSON.stringify({header:{fn:"auto_translation_block",client_key:this.clientKey},source:{text_block:n,lang:o,orig_url:s},target:{lang:u}}),g=await se({url:Oc,body:l,method:"POST",retry:2});if(g.header.ret_code!=="succ")throw new Error(g.message||g.header.ret_code);return{text:g.auto_translation,from:r||"auto",to:a}}getDefaultRateLimit(){return{limit:30,interval:1050}}async translateList(t){let{from:n,text:a,to:r}=t,o=Ke(),u=t.url;if(o.INSTALL_FROM==="firefox_store"&&(u=Vf()),a.length===1){let f=await this.translate({from:n,text:a[0],to:r,url:u,options:t.options});return{text:[f.text],from:f.from,to:f.to}}let s=await this.detectLanguage(a.join(` +`));if(s===r)return{text:a,from:s,to:r};let c=e.langMap.get(s)||s,l=e.langMap.get(r)||r,g=JSON.stringify({header:{fn:"auto_translation",client_key:this.clientKey},source:{text_list:a,lang:c,orig_url:u},target:{lang:l},type:"plain"}),p=await se({url:Oc,body:g,method:"POST"});if(p.header.ret_code!=="succ")throw new Error(p.message||p.header.ret_code);return{text:p.auto_translation,from:s||"auto",to:r}}detectLanguageLocally(t){return this.detectLanguageRemotely(t)}detectLanguageRemotely(t){return e.detectLanguageRemotelyByTransmart(t)}static async detectLanguageRemotelyByTransmart(t){let n={header:{fn:"text_analysis",client_key:e.getClientKey()},text:t.slice(0,280)},a=await se({url:Oc,method:"POST",body:JSON.stringify(n)});if(a.header.ret_code!=="succ")throw new Error(a.message||a.header.ret_code);let r=a.language,o=e.langMapReverse.get(r);return o||r}};function Vf(){let e=new Date;return e.setMinutes(e.getMinutes()-e.getMinutes()%5),e.setSeconds(0),e.setMilliseconds(0),`https://google.com/search?q=google&_t=${e.getTime()/1e3}`}h();h();function Yf(){return Math.random()>=0}var uo=class extends xe{isSupportList=!0;maxTextLength=1200;maxTextGroupLength=25;async translate(t){let{text:n}=t,a=n.match(/^\s*/)[0].length;return{text:n.slice(0,a)+"\u6A21\u62DF\uFF1A"+n.slice(a,-6),from:t.from,to:t.to}}async translateList(t){let{text:n,from:a,to:r}=t;if(await jf(),!Yf())throw new Error("\u6A21\u62DF\u9519\u8BEF");return n.length===0?{from:a,to:r,text:[""]}:{from:a,to:r,text:n.map(o=>{let u=o.match(/^\s*/)[0].length;return o.slice(0,u)+"\u6A21\u62DF\uFF1A"+o.slice(u,-6)})}}};h();var Qf=[["auto","auto"],["zh-CN","zh"],["zh-TW","zh"],["en","en"],["ja","ja"],["de","de"],["fr","fr"],["it","it"],["es","es"],["nl","nl"],["pl","pl"],["pt","pt"],["ru","ru"]],Nc=new Map(Qf),Jf=new Map(Qf.map(([e,t])=>[t,e])),Uc=class e extends xe{static langMap=Nc;static DEFAULT_CODENAME="deepl";apikey="";codename=e.DEFAULT_CODENAME;isSupportList=!1;maxTextGroupLength=1;constructor(t,n,a){if(super(t,n,a),!t||!t.apikey)throw new Error("apikey are required");this.apikey=t.apikey?.trim(),t.codename&&(this.codename=t.codename)}async translate(t){let{text:n,from:a,to:r}=t,o=await se({retry:2,url:`https://api.openl.club/services/${this.codename}/translate`,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({apikey:this.apikey,text:n,source_lang:Nc.get(a)||"auto",target_lang:Nc.get(r)||r})});if(o.status){let u=o;return u.result&&r=="zh-TW",{text:u.result,from:Jf.get(u.source_lang),to:Jf.get(u.target_lang)}}else throw new Error(o.msg)}},Es=Uc;h();var Zf=[["auto",""],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],iu=new Map(Zf),bx=new Map(Zf.map(([e,t])=>[t,e])),jc=class extends xe{static langMap=iu;authKey="";maxTextLength=1800;freeApiUrl="https://api-free.deepl.com/v2/translate";proApiUrl="https://api.deepl.com/v2/translate";immersiveTranslateApiUrl="https://deepl.immersivetranslate.com/v2/translate";immersiveTranslateDeeplTokenUrl="https://api.immersivetranslate.com";immersiveTranslateDeeplProApiUrl=ta()||na()?"https://api2.immersivetranslate.com/deepl/translate":"https://test-api2.immersivetranslate.com/deepl/translate";provider="custom";splitor="";apiKeys=[];static async clearState(){}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}constructor(t,n,a){if(super(t,n,a),t=t||{},this.splitor=t.qualityDelimiterBeta||"",t.provider==="pro")if(this.provider="pro",a.userToken){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");this.authKey=a.userToken,this.apiKeys=this.authKey.split(",").map(r=>r.trim())}else throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002");else if(this.authKey=t.authKey?.trim(),this.apiKeys=this.authKey.split(",").map(r=>r.trim()),!this.authKey)throw new Error("authKey are required");if(!this.authKey)throw new Error("authKey are required");t&&t.freeApiUrl&&(this.freeApiUrl=en(this.freeApiUrl,t.freeApiUrl)),t&&t.proApiUrl&&(this.proApiUrl=en(this.proApiUrl,t.proApiUrl)),t&&t.immersiveTranslateApiUrl&&(this.immersiveTranslateApiUrl=en(this.immersiveTranslateApiUrl,t.immersiveTranslateApiUrl)),t&&t.immersiveTranslateDeeplTokenUrl&&(this.immersiveTranslateDeeplTokenUrl=en(this.immersiveTranslateDeeplTokenUrl,t.immersiveTranslateDeeplTokenUrl)),t&&t.immersiveTranslateDeeplProApiUrl&&(this.immersiveTranslateDeeplProApiUrl=en(this.immersiveTranslateDeeplProApiUrl,t.immersiveTranslateDeeplProApiUrl))}async init(){}getDefaultRateLimit(){if(this.provider==="pro"){if(this.serviceConfig&&this.serviceConfig.immersiveTranslateProLimit){let t=Number(this.serviceConfig.immersiveTranslateProLimit);return isNaN(t)&&(t=15),{limit:t,interval:1050}}return{limit:15,interval:1050}}else return{limit:3,interval:1050}}async translateList(t){let{from:n,to:a,text:r}=t,o={source_lang:iu.get(n)||"",target_lang:iu.get(a)||a},u=this.getRandomKey(),i=new URLSearchParams(o);this.splitor?i.append("text",r.join(this.splitor)):r.forEach(m=>{i.append("text",m)});let s=i.toString(),c={text:this.splitor?[r.join(this.splitor)]:r,source_lang:iu.get(n)||"auto",target_lang:iu.get(a)||a},l=this.freeApiUrl;u.endsWith(":im")?l=this.immersiveTranslateApiUrl:u.endsWith(":fx")||(l=this.proApiUrl);let g;this.provider==="pro"?g=await se({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:u,"Content-Type":"application/json"}}):u.startsWith("immersive_")?g=await se({retry:2,url:this.immersiveTranslateDeeplProApiUrl,method:"POST",body:JSON.stringify(c),headers:{token:u,"Content-Type":"application/json"}}):g=await se({retry:2,url:l,method:"POST",body:s,headers:{Authorization:"DeepL-Auth-Key "+u,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},extra:{overrideMimeType:"application/json; charset=utf-8"}});let{translations:p}=g,f=[];if(this.splitor?f=p[0]?.text.split(this.splitor).map(m=>m):f=p.map(m=>m.text),a==="zh-TW"){let m=this.serviceConfig||{};m&&m.googleApiUrl&&(m.apiUrl=m.googleApiUrl);let v=await new lr(this.serviceConfig,this.generalConfig,this.translationOptions).translate({from:"zh-CN",to:"zh-TW",text:p.map(b=>b.text).join(` `),url:"",options:{}});v&&v.text&&(f=v.text.split(` -`))}return{text:f,from:p[0]&&hx.get(p[0].detected_source_language)||n,to:a}}},Qf=Uc;h();var bx=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],jc=new Map(bx),zc=class extends xe{static langMap=jc;APIKEY="";isSupportList=!1;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:a,to:r}=t,u={url:"https://api.niutrans.com/NiuTransServer/translation",retry:2,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:n,from:jc.get(a)||a,to:jc.get(r)||r,apikey:this.APIKEY})},i=await se(u);if(i.tgt_text){let s=i.tgt_text;return s.endsWith(` -`)&&(s=s.slice(0,-1)),{text:s,from:a,to:r}}else throw new Error(JSON.stringify(i))}},Zf=zc;h();var yx=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],Hc=new Map(yx),qc=class extends xe{static langMap=Hc;APIKEY="";region="eastasia";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region)}async translateList(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:[]};let o={"api-version":"3.0",to:Hc.get(r)||r};a!=="auto"&&(o.from=Hc.get(a)||a);let u=new URLSearchParams(o),i=JSON.stringify(n.map(l=>({text:l}))),s={url:"https://api.cognitive.microsofttranslator.com/translate?"+u.toString(),retry:2,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:i},c=await se(s);if(c.length===0)throw new Error("server response invalid");return{from:a,to:r,text:c.map(l=>l.translations.map(p=>p.text).join(" "))}}},Xf=qc;h();var Tx=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],su=new Map(Tx),Wc=class extends xe{isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:3,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t,o;if(n.length===0)return{from:a,to:r,text:[]};let u=` +`))}return{text:f,from:p[0]&&bx.get(p[0].detected_source_language)||n,to:a}}},Xf=jc;h();var yx=[["auto","auto"],["zh-CN","zh"],["zh-TW","cht"],["en","en"],["ja","ja"],["ko","ko"],["es","es"],["de","de"],["fr","fra"],["pt","pt"],["ru","ru"],["ar","ara"],["it","it"],["ms","ms"],["id","id"],["vi","vie"],["th","th"],["ur","ur"],["yue","yue"],["bo","bo"],["wyw","wyw"],["be","be"],["bg","bul"],["bn","bn"],["ca","ca"],["cs","cs"],["da","da"],["el","el"],["et","et"],["fa","fa"],["fi","fi"],["gu","gu"],["he","he"],["hi","hi"],["hr","hr"],["hu","hu"],["hy","hye"],["is","is"],["ka","ka"],["km","km"],["kn","kn"],["lt","lt"],["lv","lv"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["pa","pa"],["pl","pl"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sq","sq"],["sr","sr"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["tr","tr"],["ug","ug"],["uk","uk"],["uz","uz"]],zc=new Map(yx),Hc=class extends xe{static langMap=zc;APIKEY="";isSupportList=!1;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim()}async translate(t){let{text:n,from:a,to:r}=t,u={url:"https://api.niutrans.com/NiuTransServer/translation",retry:2,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({src_text:n,from:zc.get(a)||a,to:zc.get(r)||r,apikey:this.APIKEY})},i=await se(u);if(i.tgt_text){let s=i.tgt_text;return s.endsWith(` +`)&&(s=s.slice(0,-1)),{text:s,from:a,to:r}}else throw new Error(JSON.stringify(i))}},eh=Hc;h();var Tx=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],qc=new Map(Tx),Wc=class extends xe{static langMap=qc;APIKEY="";region="eastasia";isSupportList=!0;constructor(t,n,a){if(super(t,n,a),!t||!t.APIKEY)throw new Error("APIKEY are required");this.APIKEY=t.APIKEY?.trim(),t.region&&(this.region=t.region)}async translateList(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:[]};let o={"api-version":"3.0",to:qc.get(r)||r};a!=="auto"&&(o.from=qc.get(a)||a);let u=new URLSearchParams(o),i=JSON.stringify(n.map(l=>({text:l}))),s={url:"https://api.cognitive.microsofttranslator.com/translate?"+u.toString(),retry:2,method:"POST",headers:{"Ocp-Apim-Subscription-Key":this.APIKEY,"Ocp-Apim-Subscription-Region":this.region,"content-type":"application/json"},body:i},c=await se(s);if(c.length===0)throw new Error("server response invalid");return{from:a,to:r,text:c.map(l=>l.translations.map(p=>p.text).join(" "))}}},th=Wc;h();var xx=[["auto","auto"],["zh-CN","zh-CN"],["zh-TW","zh-TW"],["en","en"],["ja","ja"],["ru","ru"],["es","es"],["de","de"],["ko","ko"],["fr","fr"],["th","th"],["vi","vi"],["id","id"]],su=new Map(xx),Kc=class extends xe{isSupportList=!0;maxTextGroupLength=25;maxTextLength=1200;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:3,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t,o;if(n.length===0)return{from:a,to:r,text:[]};let u=`
-`,i=n.join(u),s={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:2,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:""};a==="auto"||!su.get(a)?(o=(await se({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:i})).langCode,s.body=JSON.stringify({text:i,source:o||su.get(a)||a,target:su.get(r)||r})):s.body=JSON.stringify({text:i,source:su.get(a),target:su.get(r)||r});let c=await se(s);if(c.translatedText==="")throw new Error("server response invalid");let l=c.translatedText.split("
").map(m=>m.trim());return{from:a,to:r,text:l}}},eh=Wc;h();var xx=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],lu=new Map(xx),Kc=class extends xe{static langMap=lu;provider="custom";APIKEY="";apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;systemPrompt="You are a professional translation engine, please translate the text into a colloquial, professional, elegant and fluent content, without the style of machine translation. You must only translate the text content, never interpret it.";prompt=`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: +`,i=n.join(u),s={url:"https://api.papago-chrome.com/v2/translate/openapi",retry:2,method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:""};a==="auto"||!su.get(a)?(o=(await se({url:"https://api.papago-chrome.com/v2/translate/detect",method:"POST",headers:{authority:"api.papago-chrome.com","content-type":"application/json"},body:i})).langCode,s.body=JSON.stringify({text:i,source:o||su.get(a)||a,target:su.get(r)||r})):s.body=JSON.stringify({text:i,source:su.get(a),target:su.get(r)||r});let c=await se(s);if(c.translatedText==="")throw new Error("server response invalid");let l=c.translatedText.split("
").map(g=>g.trim());return{from:a,to:r,text:l}}},nh=Kc;h();var Ex=[["auto","auto"],["zh-CN","Simplified Chinese"],["zh-TW","Traditional Chinese"],["en","English"],["yue","Cantonese"],["bo","\u85CF\u8BED"],["wyw","Classical Chinese"],["ja","Japanese"],["ko","Korean"],["fr","French"],["de","German"],["es","Spanish"],["it","Italian"],["ru","Russian"],["pt","Portuguese"],["nl","Dutch"],["pl","Polish"],["ar","Arabic"],["af","Afrikaans"],["am","Amharic"],["az","Azerbaijani"],["be","Belarusian"],["bg","Bulgarian"],["bn","Bengali"],["bs","Bosnian"],["ca","Catalan"],["ceb","Cebuano"],["co","Corsican"],["cs","Czech"],["cy","Welsh"],["da","Danish"],["el","Greek"],["eo","Esperanto"],["et","Estonian"],["eu","Basque"],["fa","Persian"],["fi","Finnish"],["fj","Fijian"],["fy","Western Frisian"],["ga","Irish"],["gd","Scottish Gaelic"],["gl","Galician"],["gu","Gujarati"],["ha","Hausa"],["haw","Hawaiian"],["he","Hebrew"],["hi","Hindi"],["hmn","Hmong"],["hr","Croatian"],["ht","Haitian Creole"],["hu","Hungarian"],["hy","Armenian"],["id","Indonesian"],["ig","Igbo"],["is","Icelandic"],["jw","Javanese"],["ka","Georgian"],["kk","Kazakh"],["km","Khmer"],["kn","Kannada"],["ku","Kurdish"],["ky","Kyrgyz"],["la","Lao"],["lb","Luxembourgish"],["lo","Lao"],["lt","Lithuanian"],["lv","Latvian"],["mg","Malagasy"],["mi","Maori"],["mk","Macedonian"],["ml","Malayalam"],["mn","Mongolian"],["mr","Marathi"],["ms","Malay"],["mt","Maltese"],["my","Burmese"],["pa","Punjabi"],["ps","Pashto"],["ro","Romanian"],["si","Sinhala"],["sk","Slovak"],["sl","Slovene"],["sa","Sanskrit"],["sm","Samoan"],["sn","Shona"],["so","Somali"],["sq","Albanian"],["sr","Serbian"],["sr-Cyrl","Serbian (Cyrillic)"],["sr-Latn","Serbian (Latin)"],["st","Southern Sotho"],["su","Sundanese"],["sv","Swedish"],["sw","Swahili"],["ta","Tamil"],["te","Telugu"],["tg","Tajik"],["th","Thai"],["tr","Turkish"],["ug","Uyghur"],["uk","Ukrainian"],["ur","Urdu"],["uz","Uzbek"],["vi","Vietnamese"],["xh","Xhosa"],["yi","Yiddish"],["yo","Yoruba"],["zu","Zulu"]],Cs=new Map(Ex),$c=class extends xe{static langMap=Cs;provider="custom";APIKEY="";apiKeys=[];isSupportList=!1;maxTextLength=1200;maxTextGroupLength=1;systemPrompt="You are a professional translation engine, please translate the text into a colloquial, professional, elegant and fluent content, without the style of machine translation. You must only translate the text content, never interpret it.";prompt=`Translate the text to {{to}}, please do not explain any sentences, just translate or leave them as they are.: -{{text}}`;model="gpt-3.5-turbo-0613";apiUrl="https://api.openai.com/v1/chat/completions";immersiveApiUrl="https://openai-api.immersivetranslate.com/v1/chat/completions";immersiveProApiUrl=na()||aa()?"https://api2.immersivetranslate.com/openai/v1/chat/completions":"https://test-api2.immersivetranslate.com/openai/v1/chat/completions";splitor="
";constructor(t,n,a){if(super(t,n,a),t||(t={}),t.provider&&(this.provider=t.provider),t.APIKEY&&(this.APIKEY=t.APIKEY?.trim(),this.apiKeys=this.APIKEY.split(",").map(r=>r.trim())),this.provider==="pro"){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");if(this.APIKEY=a.userToken||"",this.apiKeys=this.APIKEY.split(",").map(r=>r.trim()),!this.APIKEY)throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002")}t.prompt&&(this.prompt=t.prompt),t.model&&(this.model=t.model),t&&t.apiUrl&&(this.apiUrl=en(this.apiUrl,t.apiUrl)),t&&t.immersiveApiUrl&&(this.immersiveApiUrl=en(this.immersiveApiUrl,t.immersiveApiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=en(this.immersiveProApiUrl,t.immersiveProApiUrl)),t&&t.systemPrompt&&(this.systemPrompt=t.systemPrompt)}getDefaultRateLimit(){return{limit:10,interval:1300}}translate(t){return this.model.includes("003")?(this.maxTextGroupLength=1,this.translate3(t)):this.translate3_5(t)}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate3_5(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let o=lu.get(a)||a,u=lu.get(r)||r,i=this.prompt.replace(/{{to}}/g,u).replace(/{{text}}/g,n).replace(/{{from}}/g,o),s=[];if(this.systemPrompt){let p=this.systemPrompt.replace(/{{to}}/g,u).replace(/{{text}}/g,n).replace(/{{from}}/g,o);s.push({role:"system",content:p})}this.prompt&&s.push({role:"user",content:i}),this.prompt.indexOf("{{text}}")===-1&&s.push({role:"user",content:n});let c={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:this.model,temperature:0,messages:s})},l=this.getRandomKey();this.provider==="pro"?(c.url=this.immersiveProApiUrl,c.headers.token=l):l&&(c.headers.Authorization="Bearer "+l,c.headers["api-key"]=l,l.startsWith("immersiveopenai_")&&(c.url=this.immersiveProApiUrl,c.headers.token=l,l.endsWith("x")||(c.headers["Immersive-Corpus-Campagin"]="yes"),delete c.headers.Authorization,delete c.headers["api-key"]));let m=await se(c);if(m&&m.choices&&m.choices.length>0&&m.choices[0].message&&m.choices[0].message.content){let p=m.choices[0].message.content.trim();return(p.includes("\u62B1\u6B49")&&p.includes("\u7FFB\u8BD1")||p.includes("\u8BF7\u5C06\u6587\u672C\u7FFB\u8BD1\u6210")||p.includes("\u4E0D\u8981\u89E3\u91CA\u4EFB\u4F55"))&&(p=n),!n.includes(".")&&(p.endsWith("\u3002")||p.endsWith("."))&&(p=p.slice(0,-1)),{from:a,to:r,text:p}}else throw new Error("server response invalid: "+JSON.stringify(m))}async translate3(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let o=this.prompt.replace(/{{to}}/g,lu.get(r)||r).replace(/{{text}}/g,n).replace(/{{from}}/g,lu.get(a)||a),u={url:"https://api.openai.com/v1/completions",method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.APIKEY},body:JSON.stringify({model:this.model,prompt:o,temperature:0})},i=await se(u);if(i&&i.choices&&i.choices.length>0&&i.choices[0].text){let s=i.choices[0].text.trim();return{from:a,to:r,text:s}}else throw new Error("server response invalid: "+JSON.stringify(i))}},th=Kc;h();var Ex=[["auto","auto"],["zh-CN","zh-Hans"],["zh-TW","zh-Hant"],["en","en"],["yue","\u7CA4\u8BED"],["wyw","\u53E4\u6587"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["de","de"],["es","es"],["it","it"],["ru","ru"],["pt","pt"],["nl","nl"],["pl","pl"],["ar","ar"],["af","af"],["am","am"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["el","el"],["eo","eo"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ku","ku"],["ky","ky"],["la","lo"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["no","no"],["ny","ny"],["pa","pa"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["sr-Cyrl","sr"],["sr-Latn","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],vs=new Map(Ex),$c="chatgptWebAccessToken";async function nh(){let e=await Uo($c);if(e)return e;let t=await se({url:"https://chat.openai.com/api/auth/session",method:"get",responseType:"json"});if(!t.accessToken)throw new Error("UNAUTHORIZED");return await jo($c,t.accessToken,10*60*1e3),t.accessToken}var Gc=class e{static instance;constructor(){return e.instance||(e.instance=this),this}#e=Promise.resolve();enqueue(t){return this.#e=this.#e.then(()=>t()),this.#e}},Vc=new Gc;Object.freeze(Vc);var cu=class extends xe{accessToken="";customChatGptWebApiUrl="https://chat.openai.com";customChatGptWebApiPath="/backend-api/conversation";maxTextGroupLength=1;maxTextLength=1200;isStream=!1;isSupportList=!1;prompt=`You are a translation engine, you can only translate text and cannot interpret it, and do not explain.Translate the text below to {{to}}: +{{text}}`;model="gpt-3.5-turbo-0613";apiUrl="https://api.openai.com/v1/chat/completions";immersiveApiUrl="https://openai-api.immersivetranslate.com/v1/chat/completions";immersiveProApiUrl=ta()||na()?"https://api2.immersivetranslate.com/openai/v1/chat/completions":"https://test-api2.immersivetranslate.com/openai/v1/chat/completions";splitor="
";constructor(t,n,a){if(super(t,n,a),t||(t={}),t.provider&&(this.provider=t.provider),t.APIKEY&&(this.APIKEY=t.APIKEY?.trim(),this.apiKeys=this.APIKEY.split(",").map(r=>r.trim())),this.provider==="pro"){if(!a.isPro)throw new Error("Please activate Pro membership first, \u8BF7\u5148\u5F00\u901A Pro \u4F1A\u5458\u3002");if(this.APIKEY=a.userToken||"",this.apiKeys=this.APIKEY.split(",").map(r=>r.trim()),!this.APIKEY)throw new Error("Login required, \u767B\u5F55\u540E\u624D\u53EF\u4EE5\u4F7F\u7528\u3002")}t.prompt&&(this.prompt=t.prompt),t.model&&(this.model=t.model),t&&t.apiUrl&&(this.apiUrl=en(this.apiUrl,t.apiUrl)),t&&t.immersiveApiUrl&&(this.immersiveApiUrl=en(this.immersiveApiUrl,t.immersiveApiUrl)),t&&t.immersiveProApiUrl&&(this.immersiveProApiUrl=en(this.immersiveProApiUrl,t.immersiveProApiUrl)),t&&t.systemPrompt&&(this.systemPrompt=t.systemPrompt)}getDefaultRateLimit(){return{limit:10,interval:1300}}translate(t){return this.model.includes("003")||this.model.includes("gpt-3.5-turbo-instruct")?(this.maxTextGroupLength=1,this.translate3(t)):this.translate3_5(t)}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate3_5(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let o=Cs.get(a)||a,u=Cs.get(r)||r,i=this.prompt.replace(/{{to}}/g,u).replace(/{{text}}/g,n).replace(/{{from}}/g,o),s=[];if(this.systemPrompt){let p=this.systemPrompt.replace(/{{to}}/g,u).replace(/{{text}}/g,n).replace(/{{from}}/g,o);s.push({role:"system",content:p})}this.prompt&&s.push({role:"user",content:i}),this.prompt.indexOf("{{text}}")===-1&&s.push({role:"user",content:n});let c={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:this.model,temperature:0,messages:s})},l=this.getRandomKey();this.provider==="pro"?(c.url=this.immersiveProApiUrl,c.headers.token=l):l&&(c.headers.Authorization="Bearer "+l,c.headers["api-key"]=l,l.startsWith("immersiveopenai_")&&(c.url=this.immersiveProApiUrl,c.headers.token=l,l.endsWith("x")||(c.headers["Immersive-Corpus-Campagin"]="yes"),delete c.headers.Authorization,delete c.headers["api-key"]));let g=await se(c);if(g&&g.choices&&g.choices.length>0&&g.choices[0].message&&g.choices[0].message.content){let p=g.choices[0].message.content.trim();return(p.includes("\u62B1\u6B49")&&p.includes("\u7FFB\u8BD1")||p.includes("\u8BF7\u5C06\u6587\u672C\u7FFB\u8BD1\u6210")||p.includes("\u4E0D\u8981\u89E3\u91CA\u4EFB\u4F55"))&&(p=n),!n.includes(".")&&(p.endsWith("\u3002")||p.endsWith("."))&&(p=p.slice(0,-1)),{from:a,to:r,text:p}}else throw new Error("server response invalid: "+JSON.stringify(g))}async translate3(t){let{text:n,from:a,to:r}=t;if(n.length===0)return{from:a,to:r,text:""};let o=`Translate to ${Cs.get(r)||r}: -{{text}}`;constructor(t,n,a){super(t,n,a)}throttleDebounce(t,n,a){let r=0,o;return(...u)=>{let i=Date.now(),s=this,c=()=>{r=i,t.apply(s,u)};i-r>=n?(clearTimeout(o),c()):(clearTimeout(o),o=setTimeout(()=>{c()},a))}}async deleteConversation(t){if(t){let n=await se({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}/${t}`,method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({is_visible:!1})});return j.debug("delete conversation res:",n),n}}async translate(t){return await Vc.enqueue(async()=>{let{text:n,from:a,to:r}=t;if(n.length===0)return Promise.resolve({from:a,to:r,text:""});let o=vs.get(a)||a,u=vs.get(r)||r;if(this.accessToken=await nh(),!this.accessToken||this.accessToken==="")throw new Error("token error");let i="text-davinci-002-render-sha-mobile";if(!i)throw new Error("No available model");let s=this.prompt.replace(/{{to}}/g,u).replace(/{{text}}/g,n).replace(/{{from}}/g,o);try{let c=await se({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"stream",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:Fn(),role:"user",content:{content_type:"text",parts:[s]}}],model:i,parent_message_id:Fn()})});return j.debug("get chatgpt res:",c),await this.deleteConversation(c?.conversation_id),Promise.resolve({from:a,to:r,text:c?.message?.content?.parts?.[0]})}catch(c){throw j.debug("post chatgpt error:",c),await zo($c),c}})}async translateStream(t,n){let{text:a,from:r,to:o}=t;if(a.length===0){n(null,{from:r,to:o,text:""});return}let u=this.throttleDebounce(function(i){let{from:s,to:c,text:l}=i;n(null,{from:s,to:c,text:l})},300,200);await Vc.enqueue(async()=>{let i="chatgpt"+Fn(),s=Q.runtime.connect({name:i}),c,l;s.onMessage.addListener(y=>{if(!(!y||y==="")){if(y==="[DONE]"){s.disconnect(),this.deleteConversation(c);return}try{l=JSON.parse(y)}catch(v){j.debug("chatgpt json error",v,y);return}c=l?.conversation_id,l?.message?.author?.role==="assistant"&&u({from:r,to:o,text:l?.message?.content?.parts?.[0]})}});let m=vs.get(r)||r,p=vs.get(o)||o;if(this.accessToken=await nh(),!this.accessToken||this.accessToken==="")throw new Error("token error");let f="text-davinci-002-render-sha";if(!f)throw new Error("No available model");let g=this.prompt.replace(/{{to}}/g,p).replace(/{{text}}/g,a).replace(/{{from}}/g,m);se({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"realStream",extra:{portName:i},headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:Fn(),role:"user",content:{content_type:"text",parts:[g]}}],model:f,parent_message_id:Fn()})}).catch(y=>{j.debug("chatgpt error",y),s.disconnect(),this.deleteConversation(c),n(y,{from:r,to:o,text:""})})})}};h();var oh=Jh(ah()),rh=[["af","af"],["am","am"],["ar","ar"],["auto","auto"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fil","fil"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["mww","mww"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["otq","otq"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["tn","tn"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tlh","tlh"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["yua","yua"],["yue","yue"],["bo","bo"],["sa","sa"],["zh-CN","zh"],["zh-TW","zh-tw"],["zu","zu"]],gu=class e extends xe{static langMap=new Map(rh);static langMapReverse=new Map(rh.map(([t,n])=>[n,t]));static SHA1=new oh.default.SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,a){if(super(t,n,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new Error("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:a,to:r}=t,o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:n,TargetLanguage:e.langMap.get(r)||r},u=this.scene=="general"?"TranslateGeneral":"Translate",i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:u,payload:o,service:"mt",version:"2018-10-12"});return{text:i.Data.Translated,from:i.Data.DetectedLanguage&&e.langMapReverse.get(i.Data.DetectedLanguage)||a||"auto",to:e.langMapReverse.get(r)||r}}async translateList(t){let{text:n,from:a,to:r}=t,o=this.scene=="general"?"translate_standard":"translate_ecommerce",u={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:JSON.stringify(n.reduce((c,l,m)=>(c[m]=l,c),{})),TargetLanguage:e.langMap.get(r)||r,ApiType:o},i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:u,service:"mt",version:"2018-10-12"}),s=i.TranslatedList.length&&i.TranslatedList[0].detectedLanguage;return{text:i.TranslatedList.sort((c,l)=>parseInt(c.index)-parseInt(l.index)).map(c=>c.translated),from:s&&e.langMapReverse.get(s)||a||"auto",to:e.langMapReverse.get(r)||r}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:o,version:u}){let i=new Date().toISOString(),s=Math.random().toString(36).slice(2),c={Action:a,Version:u,Format:"JSON",AccessKeyId:t,SignatureNonce:s,Timestamp:i,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},m=(y=>{let b=Object.keys(y).sort().map(S=>`${this.encode(S)}=${this.encode(y[S])}`).join("&");return`POST&%2F&${this.encode(b)}`})(Object.assign({},c,r)),p=e.SHA1.b64_hmac(`${n}&`,m),f=new URLSearchParams(Object.assign({},c,{Signature:p})).toString(),g=await se({retry:1,url:`https://${o}.aliyuncs.com?${f}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(r).toString()});if(g instanceof Error)throw g;if(g.Code!=="200")throw new Error(g.Message);return g}};h();h();var Cx=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],ct={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},Yc=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},Jc=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let a=Yc(t);if(a)return Array.isArray(n)?`${a}=${n.map(Yc).sort().join(`&${a}=`)}`:`${a}=${Yc(n)}`}).filter(t=>t).join("&"),uo=class{request;serviceName;bodySha256;constructor(t,n,a){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,a=a||{},this.bodySha256=a.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(a=>{let r=t[a];return typeof r<"u"&&r!==null}).sort().map(a=>{n[a]=t[a]}),n}async addAuthorization(t,n){let a=this.getDateTime(n);await this.addHeaders(t,a),this.request.headers.Authorization=await this.authorization(t,a)}async authorization(t,n){let a=[],r=this.credentialString(n);return a.push(`${ct.algorithm} Credential=${t.accessKeyId}/${r}`),a.push(`SignedHeaders=${this.signedHeaders()}`),a.push(`Signature=${await this.signature(t,n)}`),a.join(", ")}async getSignUrl(t,n){let a=this.getDateTime(n),r={...this.request.params},o=this.request.params,u=this.request.headers;t.sessionToken&&(r[ct.tokenHeader]=t.sessionToken),r[ct.dateHeader]=a,r[ct.notSignBody]="",r[ct.credential]=`${t.accessKeyId}/${this.credentialString(a)}`,r[ct.algorithmKey]=ct.algorithm,r[ct.signHeadersKey]="",r[ct.signQueriesKey]=void 0,r[ct.signatureKey]=void 0,r=this.sortParams(r),this.request.params=r,this.request.headers={};let i=await this.signature(t,a);return this.request.params=o,this.request.headers=u,r[ct.signQueriesKey]=Object.keys(r).sort().join(";"),r[ct.signatureKey]=i,Jc(r)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[ct.dateHeader]=n,t.sessionToken&&(this.request.headers[ct.tokenHeader]=t.sessionToken),this.request.body){let a=this.request.body;this.request.headers[ct.contentSha256Header]=await In(a)}}async signature(t,n){let a=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return Ii(await Ba(await this.stringToSign(n),a))}async stringToSign(t){let n=[];n.push(ct.algorithm),n.push(t),n.push(this.credentialString(t));let a=await this.canonicalString();return n.push(await this.hexEncodedHash(a)),n.join(` -`)}async canonicalString(){let t=[],n=this.request.pathname||"/";t.push(this.request.method.toUpperCase()),t.push(n);let a=Jc(this.request.params)||"";return t.push(a),t.push(`${this.canonicalHeaders()} +${n} =>`,u=this.getRandomKey(),i={url:this.apiUrl,method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.APIKEY}},s={model:this.model,prompt:o,temperature:0};this.provider==="pro"?(i.url=this.immersiveProApiUrl,i.headers.token=u):u&&(i.headers.Authorization="Bearer "+u,i.headers["api-key"]=u,u.startsWith("immersiveopenai_")&&(i.url=this.immersiveProApiUrl,i.headers.token=u,u.endsWith("x")||(i.headers["Immersive-Corpus-Campagin"]="yes"),delete i.headers.Authorization,delete i.headers["api-key"])),i.url=i.url.replace("/chat/","/");let c=2048,l=o.length*2.2;l0&&g.choices[0].text){let p=g.choices[0].text.trim();return{from:a,to:r,text:p}}else throw new Error("server response invalid: "+JSON.stringify(g))}},ah=$c;h();var Cx=[["auto","auto"],["zh-CN","zh-Hans"],["zh-TW","zh-Hant"],["en","en"],["yue","\u7CA4\u8BED"],["wyw","\u53E4\u6587"],["en","en"],["ja","ja"],["ko","ko"],["fr","fr"],["de","de"],["es","es"],["it","it"],["ru","ru"],["pt","pt"],["nl","nl"],["pl","pl"],["ar","ar"],["af","af"],["am","am"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["el","el"],["eo","eo"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ku","ku"],["ky","ky"],["la","lo"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["no","no"],["ny","ny"],["pa","pa"],["ps","ps"],["ro","ro"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["sr-Cyrl","sr"],["sr-Latn","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tr","tr"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zu","zu"]],vs=new Map(Cx),Gc="chatgptWebAccessToken";async function rh(){let e=await Uo(Gc);if(e)return e;let t=await se({url:"https://chat.openai.com/api/auth/session",method:"get",responseType:"json"});if(!t.accessToken)throw new Error("UNAUTHORIZED");return await jo(Gc,t.accessToken,10*60*1e3),t.accessToken}var Vc=class e{static instance;constructor(){return e.instance||(e.instance=this),this}#e=Promise.resolve();enqueue(t){return this.#e=this.#e.then(()=>t()),this.#e}},Yc=new Vc;Object.freeze(Yc);var lu=class extends xe{accessToken="";customChatGptWebApiUrl="https://chat.openai.com";customChatGptWebApiPath="/backend-api/conversation";maxTextGroupLength=1;maxTextLength=1200;isStream=!1;isSupportList=!1;prompt=`You are a translation engine, you can only translate text and cannot interpret it, and do not explain.Translate the text below to {{to}}: + +{{text}}`;constructor(t,n,a){super(t,n,a)}throttleDebounce(t,n,a){let r=0,o;return(...u)=>{let i=Date.now(),s=this,c=()=>{r=i,t.apply(s,u)};i-r>=n?(clearTimeout(o),c()):(clearTimeout(o),o=setTimeout(()=>{c()},a))}}async deleteConversation(t){if(t){let n=await se({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}/${t}`,method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({is_visible:!1})});return j.debug("delete conversation res:",n),n}}async translate(t){return await Yc.enqueue(async()=>{let{text:n,from:a,to:r}=t;if(n.length===0)return Promise.resolve({from:a,to:r,text:""});let o=vs.get(a)||a,u=vs.get(r)||r;if(this.accessToken=await rh(),!this.accessToken||this.accessToken==="")throw new Error("token error");let i="text-davinci-002-render-sha-mobile";if(!i)throw new Error("No available model");let s=this.prompt.replace(/{{to}}/g,u).replace(/{{text}}/g,n).replace(/{{from}}/g,o);try{let c=await se({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"stream",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:Fn(),role:"user",content:{content_type:"text",parts:[s]}}],model:i,parent_message_id:Fn()})});return j.debug("get chatgpt res:",c),await this.deleteConversation(c?.conversation_id),Promise.resolve({from:a,to:r,text:c?.message?.content?.parts?.[0]})}catch(c){throw j.debug("post chatgpt error:",c),await zo(Gc),c}})}async translateStream(t,n){let{text:a,from:r,to:o}=t;if(a.length===0){n(null,{from:r,to:o,text:""});return}let u=this.throttleDebounce(function(i){let{from:s,to:c,text:l}=i;n(null,{from:s,to:c,text:l})},300,200);await Yc.enqueue(async()=>{let i="chatgpt"+Fn(),s=X.runtime.connect({name:i}),c,l;s.onMessage.addListener(y=>{if(!(!y||y==="")){if(y==="[DONE]"){s.disconnect(),this.deleteConversation(c);return}try{l=JSON.parse(y)}catch(v){j.debug("chatgpt json error",v,y);return}c=l?.conversation_id,l?.message?.author?.role==="assistant"&&u({from:r,to:o,text:l?.message?.content?.parts?.[0]})}});let g=vs.get(r)||r,p=vs.get(o)||o;if(this.accessToken=await rh(),!this.accessToken||this.accessToken==="")throw new Error("token error");let f="text-davinci-002-render-sha";if(!f)throw new Error("No available model");let m=this.prompt.replace(/{{to}}/g,p).replace(/{{text}}/g,a).replace(/{{from}}/g,g);se({url:`${this.customChatGptWebApiUrl}${this.customChatGptWebApiPath}`,method:"POST",responseType:"realStream",extra:{portName:i},headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.accessToken}`},body:JSON.stringify({action:"next",messages:[{id:Fn(),role:"user",content:{content_type:"text",parts:[m]}}],model:f,parent_message_id:Fn()})}).catch(y=>{j.debug("chatgpt error",y),s.disconnect(),this.deleteConversation(c),n(y,{from:r,to:o,text:""})})})}};h();var ih=Qh(oh()),uh=[["af","af"],["am","am"],["ar","ar"],["auto","auto"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["ceb","ceb"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fil","fil"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["haw","haw"],["he","he"],["hi","hi"],["hmn","hmn"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["jw","jw"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["mww","mww"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["otq","otq"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["tn","tn"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tlh","tlh"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["yua","yua"],["yue","yue"],["bo","bo"],["sa","sa"],["zh-CN","zh"],["zh-TW","zh-tw"],["zu","zu"]],du=class e extends xe{static langMap=new Map(uh);static langMapReverse=new Map(uh.map(([t,n])=>[n,t]));static SHA1=new ih.default.SHA1;AccessKeyID="";AccessKeySecret="";isSupportList=!0;scene="general";maxTextGroupLength=50;maxTextLength=1e3;constructor(t,n,a){if(super(t,n,a),!t||!t.AccessKeyID||!t.AccessKeySecret)throw new Error("AccessKeyID and AccessKeySecret are required");this.AccessKeyID=t.AccessKeyID?.trim(),this.AccessKeySecret=t.AccessKeySecret?.trim(),t.scene&&(this.scene=t.scene)}async translate(t){let{text:n,from:a,to:r}=t,o={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:n,TargetLanguage:e.langMap.get(r)||r},u=this.scene=="general"?"TranslateGeneral":"Translate",i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:u,payload:o,service:"mt",version:"2018-10-12"});return{text:i.Data.Translated,from:i.Data.DetectedLanguage&&e.langMapReverse.get(i.Data.DetectedLanguage)||a||"auto",to:e.langMapReverse.get(r)||r}}async translateList(t){let{text:n,from:a,to:r}=t,o=this.scene=="general"?"translate_standard":"translate_ecommerce",u={FormatType:"text",Scene:this.scene,SourceLanguage:e.langMap.get(a)||"auto",SourceText:JSON.stringify(n.reduce((c,l,g)=>(c[g]=l,c),{})),TargetLanguage:e.langMap.get(r)||r,ApiType:o},i=await this.signedRequest({secretId:this.AccessKeyID,secretKey:this.AccessKeySecret,action:"GetBatchTranslate",payload:u,service:"mt",version:"2018-10-12"}),s=i.TranslatedList.length&&i.TranslatedList[0].detectedLanguage;return{text:i.TranslatedList.sort((c,l)=>parseInt(c.index)-parseInt(l.index)).map(c=>c.translated),from:s&&e.langMapReverse.get(s)||a||"auto",to:e.langMapReverse.get(r)||r}}encode(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}async signedRequest({secretId:t,secretKey:n,action:a,payload:r,service:o,version:u}){let i=new Date().toISOString(),s=Math.random().toString(36).slice(2),c={Action:a,Version:u,Format:"JSON",AccessKeyId:t,SignatureNonce:s,Timestamp:i,SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0"},g=(y=>{let b=Object.keys(y).sort().map(S=>`${this.encode(S)}=${this.encode(y[S])}`).join("&");return`POST&%2F&${this.encode(b)}`})(Object.assign({},c,r)),p=e.SHA1.b64_hmac(`${n}&`,g),f=new URLSearchParams(Object.assign({},c,{Signature:p})).toString(),m=await se({retry:1,url:`https://${o}.aliyuncs.com?${f}`,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams(r).toString()});if(m instanceof Error)throw m;if(m.Code!=="200")throw new Error(m.Message);return m}};h();h();var vx=["authorization","content-type","content-length","user-agent","presigned-expires","expect"],dt={algorithm:"HMAC-SHA256",v4Identifier:"request",dateHeader:"X-Date",tokenHeader:"X-Security-Token",contentSha256Header:"X-Content-Sha256",notSignBody:"X-NotSignBody",kDatePrefix:"",credential:"X-Credential",algorithmKey:"X-Algorithm",signHeadersKey:"X-SignedHeaders",signQueriesKey:"X-SignedQueries",signatureKey:"X-Signature"},Jc=e=>{try{return encodeURIComponent(e).replace(/[^A-Za-z0-9_.~\-%]+/g,escape).replace(/[*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}catch{return""}},Qc=e=>Object.keys(e).map(t=>{let n=e[t];if(typeof n>"u"||n===null)return;let a=Jc(t);if(a)return Array.isArray(n)?`${a}=${n.map(Jc).sort().join(`&${a}=`)}`:`${a}=${Jc(n)}`}).filter(t=>t).join("&"),io=class{request;serviceName;bodySha256;constructor(t,n,a){this.request=t,this.request.headers=t.headers||{},this.serviceName=n,a=a||{},this.bodySha256=a.bodySha256,this.request.params=this.sortParams(this.request.params)}sortParams(t){let n={};return t&&Object.keys(t).filter(a=>{let r=t[a];return typeof r<"u"&&r!==null}).sort().map(a=>{n[a]=t[a]}),n}async addAuthorization(t,n){let a=this.getDateTime(n);await this.addHeaders(t,a),this.request.headers.Authorization=await this.authorization(t,a)}async authorization(t,n){let a=[],r=this.credentialString(n);return a.push(`${dt.algorithm} Credential=${t.accessKeyId}/${r}`),a.push(`SignedHeaders=${this.signedHeaders()}`),a.push(`Signature=${await this.signature(t,n)}`),a.join(", ")}async getSignUrl(t,n){let a=this.getDateTime(n),r={...this.request.params},o=this.request.params,u=this.request.headers;t.sessionToken&&(r[dt.tokenHeader]=t.sessionToken),r[dt.dateHeader]=a,r[dt.notSignBody]="",r[dt.credential]=`${t.accessKeyId}/${this.credentialString(a)}`,r[dt.algorithmKey]=dt.algorithm,r[dt.signHeadersKey]="",r[dt.signQueriesKey]=void 0,r[dt.signatureKey]=void 0,r=this.sortParams(r),this.request.params=r,this.request.headers={};let i=await this.signature(t,a);return this.request.params=o,this.request.headers=u,r[dt.signQueriesKey]=Object.keys(r).sort().join(";"),r[dt.signatureKey]=i,Qc(r)}getDateTime(t){return this.iso8601(t).replace(/[:\-]|\.\d{3}/g,"")}async addHeaders(t,n){if(this.request.headers[dt.dateHeader]=n,t.sessionToken&&(this.request.headers[dt.tokenHeader]=t.sessionToken),this.request.body){let a=this.request.body;this.request.headers[dt.contentSha256Header]=await In(a)}}async signature(t,n){let a=await this.getSigningKey(t,n.substr(0,8),this.request.region,this.serviceName);return Ri(await Ra(await this.stringToSign(n),a))}async stringToSign(t){let n=[];n.push(dt.algorithm),n.push(t),n.push(this.credentialString(t));let a=await this.canonicalString();return n.push(await this.hexEncodedHash(a)),n.join(` +`)}async canonicalString(){let t=[],n=this.request.pathname||"/";t.push(this.request.method.toUpperCase()),t.push(n);let a=Qc(this.request.params)||"";return t.push(a),t.push(`${this.canonicalHeaders()} `),t.push(this.signedHeaders()),t.push(await this.hexEncodedBodyHash()),t.join(` `)}canonicalHeaders(){let t=[];Object.keys(this.request.headers).forEach(a=>{t.push([a,this.request.headers[a]])}),t.sort((a,r)=>a[0].toLowerCase(){let r=a[0].toLowerCase();if(this.isSignableHeader(r)){let o=a[1];if(typeof o>"u"||o===null||typeof o.toString!="function")throw new Error(`Header ${r} contains invalid value`);n.push(`${r}:${this.canonicalHeaderValues(o.toString())}`)}}),n.join(` -`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await In(t)}async hexEncodedBodyHash(){return this.request.headers[ct.contentSha256Header]?this.request.headers[ct.contentSha256Header]:this.request.body?await this.hexEncodedHash(Jc(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return Cx.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,a,r){let o=await Ba(n,`${ct.kDatePrefix}${t.secretKey}`),u=await Ba(a,o),i=await Ba(r,u);return Ba(ct.v4Identifier,i)}createScope(t,n,a){return[t.substr(0,8),n,a,ct.v4Identifier].join("/")}};var uh=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Qc=new Map(uh),vx=new Map(uh.map(([e,t])=>[t,e])),Zc=class extends xe{static langMap=Qc;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,a){if(super(t,n,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new Error("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let a={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},r=new uo(a,"translate");await r.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let o=new URLSearchParams(a.params),u=await se({retry:2,url:"https://open.volcengineapi.com"+a.pathname+"?"+o.toString(),headers:r.request.headers,method:a.method,body:a.body});if(u.DetectedLanguageList&&u.DetectedLanguageList.length>0)return u.DetectedLanguageList[0].Language;if(u.ResponseMetadata&&u.ResponseMetadata.Error){let i=u.ResponseMetadata.Error;throw new xt(i.Code,i.Message)}else if(u.ResponseMetaData&&u.ResponseMetaData.Error){let i=u.ResponseMetaData.Error;throw new xt(i.Code,i.Message)}else throw new Error("response: "+JSON.stringify(u))}async translateList(t){let{text:n,from:a,to:r}=t,o=Qc.get(a),u={TargetLanguage:Qc.get(r)||r,TextList:n};o?u.SourceLanguage=o:u.SourceLanguage=await this.remoteDetectLanguage(n.join(` -`).slice(0,1e3));let i={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(u)},s=new uo(i,"translate");await s.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let c=new URLSearchParams(i.params),l=await se({retry:2,url:"https://open.volcengineapi.com"+i.pathname+"?"+c.toString(),headers:s.request.headers,method:i.method,body:i.body});if(l.TranslationList){let m=l.TranslationList.map(f=>f.Translation),p=a;return l.TranslationList.length>0&&l.TranslationList[0].DetectedSourceLanguage&&(p=vx.get(l.TranslationList[0].DetectedSourceLanguage)||a),{text:m,from:p,to:r}}else if(l.ResponseMetadata&&l.ResponseMetadata.Error){let m=l.ResponseMetadata.Error;throw new xt(m.Code,m.Message)}else if(l.ResponseMetaData&&l.ResponseMetaData.Error){let m=l.ResponseMetaData.Error;throw new xt(m.Code,m.Message)}else throw new Error("response: "+JSON.stringify(l))}},ih=Zc;h();var sh=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Xc=new Map(sh),wx=new Map(sh.map(([e,t])=>[t,e])),mu=class extends xe{static langMap=Xc;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:a,to:r}=t,o=Xc.get(a)||"detect",u=Xc.get(r)||r,s=await se({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:o,target_language:u,text:n})});if(s.base_resp&&s.base_resp.status_code===0){let c=s.translation,l=a;return s.detected_language&&(l=wx.get(s.detected_language)||a),{text:c,from:l,to:r}}else{let c=s.base_resp;throw new xt(c.status_code.toString(),c.status_message)}}};h();var kx=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],e4=new Map(kx),pu=class extends xe{static langMap=e4;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,a){if(super(t,n,a),!t||!t.url)throw new Error("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(r=>r.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:a,to:r}=t,o=this.getRandomKey(),i=await se({retry:2,url:o,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({source_lang:e4.get(a)||a,target_lang:e4.get(r)||r,text:n})});if(i.code===200)return{text:i.data,from:a,to:r};throw new Error(i.message||i.message||"API Error")}};h();h();var t4="https://{s}bing.com",mh=t4+"/translator",Sx=t4+"/ttranslatev3",Ax=t4+"/tspellcheckv3",ks="bingGlobalConfig",ph=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],lh=new Map(ph),ch=new Map(ph.map(([e,t])=>[t,e])),dh=1e3,Un,io;function n4(e,t){return e.replace("{s}",t?t+".":"")}async function Dx(){if(!Un){let n=await Q.storage.local.get(ks);return n&&(Un=n[ks]),!0}let{tokenTs:e,tokenExpiryInterval:t}=Un;return Date.now()-e>t}async function gh(){let e,t,n,a,r,o,u,i,s,c;try{let l=n4(mh,e),m=await se({retry:2,url:l,responseType:"raw"}),{body:p,headers:f,url:g}=m;e=g.match(/^https?:\/\/(\w+)\.bing\.com/)[1],c=f["set-cookie"],t=p.match(/IG:"([^"]+)"/)[1],n=p.match(/data-iid="([^"]+)"/)[1],[r,a,o,u,i,s]=JSON.parse(p.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(l){throw l}return Un={subdomain:e,IG:t,IID:n,key:r,token:a,tokenTs:r,tokenExpiryInterval:o,isVertical:u,frontDoorBotClassification:i,isSignedInOrCorporateUser:s,cookie:c,count:0},await Q.storage.local.set({[ks]:Un}),Un}function Lx(e){let{IG:t,IID:n,subdomain:a,isVertical:r}=Un;return n4(e?Ax:Sx,a)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+Un.count++:"")}function Mx(e,t,n,a){let{token:r,key:o}=Un,u={fromLang:n,text:t,token:r,key:o};return!e&&a&&(u.to=a),u}async function fh(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>dh)throw new Error(`The supported maximum length of text is ${dh}. Please shorten the text.`);io||(io=gh()),await io,await Dx()&&(io=gh(),await io),t=t||"auto",n=n||"zh-CN",t=lh.get(t)||t,n=lh.get(n)||n;let r=Lx(!1),o=Mx(!1,e,t,n==="auto-detect"?"zh-Hans":n),u={referer:n4(mh,Un.subdomain),"content-type":"application/x-www-form-urlencoded"},i=new URLSearchParams(o),s=r,c=i.toString(),l=await se({retry:2,url:s,headers:u,method:"POST",body:c});if(l.ShowCaptcha||l.StatusCode===401||l.statusCode){if(Un=null,io=null,await Q.storage.local.remove(ks),l.ShowCaptcha)throw new Error(` +`)}canonicalHeaderValues(t){return t.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")}signedHeaders(){let t=[];return Object.keys(this.request.headers).forEach(n=>{n=n.toLowerCase(),this.isSignableHeader(n)&&t.push(n)}),t.sort().join(";")}signedQueries(){return Object.keys(this.request.params).join(";")}credentialString(t){return this.createScope(t.substr(0,8),this.request.region,this.serviceName)}async hexEncodedHash(t){return await In(t)}async hexEncodedBodyHash(){return this.request.headers[dt.contentSha256Header]?this.request.headers[dt.contentSha256Header]:this.request.body?await this.hexEncodedHash(Qc(this.request.body)):await this.hexEncodedHash("")}isSignableHeader(t){return vx.indexOf(t)<0}iso8601(t){return t===void 0&&(t=new Date),t.toISOString().replace(/\.\d{3}Z$/,"Z")}async getSigningKey(t,n,a,r){let o=await Ra(n,`${dt.kDatePrefix}${t.secretKey}`),u=await Ra(a,o),i=await Ra(r,u);return Ra(dt.v4Identifier,i)}createScope(t,n,a){return[t.substr(0,8),n,a,dt.v4Identifier].join("/")}};var sh=[["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],Zc=new Map(sh),wx=new Map(sh.map(([e,t])=>[t,e])),Xc=class extends xe{static langMap=Zc;accessKeyId="";secretAccessKey="";maxTextGroupLength=8;constructor(t,n,a){if(super(t,n,a),!t||!t.accessKeyId||!t.secretAccessKey)throw new Error("accessKeyId and secretAccessKey are required");this.accessKeyId=t.accessKeyId?.trim(),this.secretAccessKey=t.secretAccessKey?.trim()}async remoteDetectLanguage(t){let a={region:"cn-north-1",method:"POST",params:{Action:"LangDetect",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify({TextList:[t]})},r=new io(a,"translate");await r.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let o=new URLSearchParams(a.params),u=await se({retry:2,url:"https://open.volcengineapi.com"+a.pathname+"?"+o.toString(),headers:r.request.headers,method:a.method,body:a.body});if(u.DetectedLanguageList&&u.DetectedLanguageList.length>0)return u.DetectedLanguageList[0].Language;if(u.ResponseMetadata&&u.ResponseMetadata.Error){let i=u.ResponseMetadata.Error;throw new xt(i.Code,i.Message)}else if(u.ResponseMetaData&&u.ResponseMetaData.Error){let i=u.ResponseMetaData.Error;throw new xt(i.Code,i.Message)}else throw new Error("response: "+JSON.stringify(u))}async translateList(t){let{text:n,from:a,to:r}=t,o=Zc.get(a),u={TargetLanguage:Zc.get(r)||r,TextList:n};o?u.SourceLanguage=o:u.SourceLanguage=await this.remoteDetectLanguage(n.join(` +`).slice(0,1e3));let i={region:"cn-north-1",method:"POST",params:{Action:"TranslateText",Version:"2020-06-01"},pathname:"/",headers:{"Content-Type":"application/json",host:"open.volcengineapi.com"},body:JSON.stringify(u)},s=new io(i,"translate");await s.addAuthorization({accessKeyId:this.accessKeyId,secretKey:this.secretAccessKey});let c=new URLSearchParams(i.params),l=await se({retry:2,url:"https://open.volcengineapi.com"+i.pathname+"?"+c.toString(),headers:s.request.headers,method:i.method,body:i.body});if(l.TranslationList){let g=l.TranslationList.map(f=>f.Translation),p=a;return l.TranslationList.length>0&&l.TranslationList[0].DetectedSourceLanguage&&(p=wx.get(l.TranslationList[0].DetectedSourceLanguage)||a),{text:g,from:p,to:r}}else if(l.ResponseMetadata&&l.ResponseMetadata.Error){let g=l.ResponseMetadata.Error;throw new xt(g.Code,g.Message)}else if(l.ResponseMetaData&&l.ResponseMetaData.Error){let g=l.ResponseMetaData.Error;throw new xt(g.Code,g.Message)}else throw new Error("response: "+JSON.stringify(l))}},lh=Xc;h();var ch=[["auto","detect"],["af","af"],["am","am"],["ar","ar"],["az","az"],["be","be"],["bg","bg"],["bn","bn"],["bs","bs"],["ca","ca"],["co","co"],["cs","cs"],["cy","cy"],["da","da"],["de","de"],["el","el"],["en","en"],["eo","eo"],["es","es"],["et","et"],["eu","eu"],["fa","fa"],["fi","fi"],["fj","fj"],["fr","fr"],["fy","fy"],["ga","ga"],["gd","gd"],["gl","gl"],["gu","gu"],["ha","ha"],["he","he"],["hi","hi"],["hr","hr"],["ht","ht"],["hu","hu"],["hy","hy"],["id","id"],["ig","ig"],["is","is"],["it","it"],["ja","ja"],["ka","ka"],["kk","kk"],["km","km"],["kn","kn"],["ko","ko"],["ku","ku"],["ky","ky"],["la","la"],["lb","lb"],["lo","lo"],["lt","lt"],["lv","lv"],["mg","mg"],["mi","mi"],["mk","mk"],["ml","ml"],["mn","mn"],["mr","mr"],["ms","ms"],["mt","mt"],["my","my"],["ne","ne"],["nl","nl"],["no","no"],["ny","ny"],["pa","pa"],["pl","pl"],["ps","ps"],["pt","pt"],["ro","ro"],["ru","ru"],["sd","sd"],["si","si"],["sk","sk"],["sl","sl"],["sm","sm"],["sn","sn"],["so","so"],["sq","sq"],["sr","sr"],["st","st"],["su","su"],["sv","sv"],["sw","sw"],["ta","ta"],["te","te"],["tg","tg"],["th","th"],["tn","tn"],["to","to"],["tr","tr"],["ty","ty"],["ug","ug"],["uk","uk"],["ur","ur"],["uz","uz"],["vi","vi"],["xh","xh"],["yi","yi"],["yo","yo"],["zh-CN","zh"],["zh-TW","zh-Hans"],["zu","zu"]],e4=new Map(ch),kx=new Map(ch.map(([e,t])=>[t,e])),gu=class extends xe{static langMap=e4;maxTextGroupLength=50;isSupportList=!1;async translate(t){let{text:n,from:a,to:r}=t,o=e4.get(a)||"detect",u=e4.get(r)||r,s=await se({url:"https://translate.volcengine.com/crx/translate/v1/",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source_language:o,target_language:u,text:n})});if(s.base_resp&&s.base_resp.status_code===0){let c=s.translation,l=a;return s.detected_language&&(l=kx.get(s.detected_language)||a),{text:c,from:l,to:r}}else{let c=s.base_resp;throw new xt(c.status_code.toString(),c.status_message)}}};h();var Sx=[["auto","auto"],["en","EN"],["ja","JA"],["pl","PL"],["zh-CN","ZH"],["zh-TW","ZH"],["ja","JA"],["ko","KO"],["es","ES"],["de","DE"],["fr","FR"],["pt","PT"],["ru","RU"],["it","IT"],["id","ID"],["nl","NL"],["pl","PL"],["bg","BG"],["cs","CS"],["da","DA"],["el","EL"],["et","ET"],["fi","FI"],["hu","HU"],["lt","LT"],["lv","LV"],["ro","RO"],["sk","SK"],["sl","SL"],["sv","SV"],["tr","TR"],["uk","UK"]],t4=new Map(Sx),mu=class extends xe{static langMap=t4;url="";isSupportList=!1;maxTextGroupLength=1;apiKeys=[];constructor(t,n,a){if(super(t,n,a),!t||!t.url)throw new Error("deeplx custom url are required, please check your settings.");this.url=t.url,this.apiKeys=this.url.split(",").map(r=>r.trim())}getRandomKey(){let t=Math.floor(Math.random()*this.apiKeys.length);return this.apiKeys[t]}async translate(t){let{text:n,from:a,to:r}=t,o=this.getRandomKey(),i=await se({retry:2,url:o,headers:{"content-type":"application/json"},method:"POST",body:JSON.stringify({source_lang:t4.get(a)||a,target_lang:t4.get(r)||r,text:n})});if(i.code===200)return{text:i.data,from:a,to:r};throw new Error(i.message||i.message||"API Error")}};h();h();var n4="https://{s}bing.com",fh=n4+"/translator",Ax=n4+"/ttranslatev3",Dx=n4+"/tspellcheckv3",ks="bingGlobalConfig",hh=[["auto","auto-detect"],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["yue","yua"],["vi","vi"],["ku","ku"],["km","kmr"]],dh=new Map(hh),gh=new Map(hh.map(([e,t])=>[t,e])),mh=1e3,Un,so;function a4(e,t){return e.replace("{s}",t?t+".":"")}async function Lx(){if(!Un){let n=await X.storage.local.get(ks);return n&&(Un=n[ks]),!0}let{tokenTs:e,tokenExpiryInterval:t}=Un;return Date.now()-e>t}async function ph(){let e,t,n,a,r,o,u,i,s,c;try{let l=a4(fh,e),g=await se({retry:2,url:l,responseType:"raw"}),{body:p,headers:f,url:m}=g;e=m.match(/^https?:\/\/(\w+)\.bing\.com/)[1],c=f["set-cookie"],t=p.match(/IG:"([^"]+)"/)[1],n=p.match(/data-iid="([^"]+)"/)[1],[r,a,o,u,i,s]=JSON.parse(p.match(/params_AbusePreventionHelper\s?=\s?([^\]]+\])/)[1])}catch(l){throw l}return Un={subdomain:e,IG:t,IID:n,key:r,token:a,tokenTs:r,tokenExpiryInterval:o,isVertical:u,frontDoorBotClassification:i,isSignedInOrCorporateUser:s,cookie:c,count:0},await X.storage.local.set({[ks]:Un}),Un}function Mx(e){let{IG:t,IID:n,subdomain:a,isVertical:r}=Un;return a4(e?Dx:Ax,a)+"?isVertical=1"+(t&&t.length?"&IG="+t:"")+(n&&n.length?"&IID="+n+"."+Un.count++:"")}function Px(e,t,n,a){let{token:r,key:o}=Un,u={fromLang:n,text:t,token:r,key:o};return!e&&a&&(u.to=a),u}async function bh(e,t,n){if(!e||!(e=e.trim()))return;if(e.length>mh)throw new Error(`The supported maximum length of text is ${mh}. Please shorten the text.`);so||(so=ph()),await so,await Lx()&&(so=ph(),await so),t=t||"auto",n=n||"zh-CN",t=dh.get(t)||t,n=dh.get(n)||n;let r=Mx(!1),o=Px(!1,e,t,n==="auto-detect"?"zh-Hans":n),u={referer:a4(fh,Un.subdomain),"content-type":"application/x-www-form-urlencoded"},i=new URLSearchParams(o),s=r,c=i.toString(),l=await se({retry:2,url:s,headers:u,method:"POST",body:c});if(l.ShowCaptcha||l.StatusCode===401||l.statusCode){if(Un=null,so=null,await X.storage.local.remove(ks),l.ShowCaptcha)throw new Error(` Sorry that bing translator seems to be asking for the captcha, Please take care not to request too frequently. The response code is ${l.StatusCode}. `);if(l.StatusCode===401)throw new Error(` Max count of translation exceeded. Please try it again later. The response code is 401. - `);if(l.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(l)}.`)}let m=l[0].translations[0],p=l[0].detectedLanguage;return{text:m.text,from:ch.get(p.language),to:ch.get(m.to)}}h();function hh(e){let t=e.split(".");if(t.length<=1)throw new Error("invlaid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let a=n.replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(globalThis.atob(a).split("").map(function(i){return"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)}).join("")),o=JSON.parse(r),u=new Date(o.exp*1e3);return{accessToken:e,accessTokenExpiresAt:u.toISOString()}}var sr=null,Px=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],a4=new Map(Px),fu=class extends xe{static langMap=a4;isSupportList=!0;maxTextLength=1800;static async clearState(){sr=null,await zo(Ku)}async translate(t){let{text:n,from:a,to:r}=t;return n?await fh(n,a,r):{...t}}async init(){if(!sr){sr={};let t=await Uo(Ku);t&&(sr=t)}await bh(sr)}async translateList(t){let{from:n,to:a,text:r}=t,o=a4.get(n)||"auto",u=a4.get(a)||a;o==="auto"&&(o="");let i=await bh(sr),s=[];for(let p of r)s.push({Text:p});let c=JSON.stringify(s),l=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${o}&to=${u}&api-version=3.0&includeSentenceLength=true`,m=await se({url:l,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+i.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin"},body:c,method:"POST"});if(m&&m.length>0&&m[0].translations&&m[0].translations.length>0)return{text:m.map(p=>p.translations[0]?.text||""),from:n,to:a};throw new Error("Microsoft translate error "+JSON.stringify(m))}};async function bh(e){if(e&&e.accessToken&&e.accessTokenExpiresAt){let t=Date.now(),a=new Date(e.accessTokenExpiresAt).getTime();if(a-t>30*1e3)return e;if(a-t>3e3)return yh().catch(r=>{j.error(r)}),e}return yh()}async function yh(){let e=await m3({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET"}),t=hh(e),n=t.accessTokenExpiresAt,r=new Date(n).getTime()-Date.now();return sr=t,await jo(Ku,t,r-1e3),{accessToken:e,accessTokenExpiresAt:t.accessTokenExpiresAt}}h();var Th=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],r4=new Map(Th),Fx=new Map(Th.map(([e,t])=>[t,e])),o4=class extends xe{static langMap=r4;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";appid="";key="";isSupportList=!1;maxTextGroupLength=20;constructor(t,n,a){if(super(t,n,a),!t||!t.appid||!t.key)throw new Error("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim()}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:a}=this,{appid:r,key:o}=this,{text:u,from:i,to:s}=t,c=new URLSearchParams({from:r4.get(i)||"auto",to:r4.get(s)||s,q:u,salt:n,appid:r,sign:Da(r+u+n+o)}),l=new URL(a);l.search=c.toString();let m=await se({url:l.toString()});if(m.error_code)throw new xt("API_SERVER_ERROR",m.error_msg);let{trans_result:p,from:f}=m,g=p.map(({dst:v})=>v);return{from:Fx.get(f)||f,to:s,text:g.join(` -`)}}},xh=o4;h();h();var lr=class extends xe{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,a){super(t,n,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let o=await this.checkLang(a,n);if(!o)return{text:n,from:a,to:r};a=o;let u=this.handleRequest(n,a,r),i=await yi(u);return{text:this.handleResponseText(i),from:a,to:r}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let o=await this.checkLang(a,n.join(" "));if(!o)return{text:n,from:a,to:r};a=o;let u=this.handleRequest(n,a,r),i=await yi(u);return{text:this.handleResponseText(i),from:a,to:r}}handleBaseApiServiceConfig(t){let n=t.request.url,a=t.request.headers||{};return a["content-type"]||(a["content-type"]="application/json"),{url:n,retry:t.request.retry||2,method:t.request.method||"POST",headers:a,body:JSON.stringify(t.request.body)}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,a){let r={...this.requestBaseConfig},o=r?.body||"",u=this.apiServiceConfig.keywords||{};r.body=s(o);let i=r.headers||{};return Object.keys(i).forEach(c=>{i[c]=s(i[c])}),r.headers=i,r.url=s(r.url||""),r;function s(c){return c.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",a).replaceAll(/{([a-z:_]+)}/gi,(m,p)=>{let[f,g]=p.split(":"),y=u[f];return g==="random"?_x(y.split(",")):y})}}handleResponseText(t){let n=this.apiServiceConfig.response,a=t,r=n.text.split(".");for(let o of r){if(Array.isArray(a))return a=a.map(u=>u[o]),a;a=a[o]}return a}detectLanguageRemotely(t){return ir.detectLanguageRemotelyByTransmart(t)}};function _x(e){let t=Math.floor(Math.random()*e.length);return e[t]}var u4=class extends lr{constructor(t,n,a){if(!t?.token)throw new Error("token are required");super({...t,isSupportList:!0,langs:[["zh-CN","zh"],["en","en"],["ja","ja"]],keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,a)}},Eh=u4;h();var Bx=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],Ss=new Map(Bx),i4=class extends xe{static langMap=Ss;token="ssdj273ksdiwi923bsd9";constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t;if(!Ss.get(r))throw new Error(`Unsupported language: ${r}`);if(a==="auto")throw new Error("Unsupported language: auto");let u=n;return{text:(await se({retry:2,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:u,trans_type:`${Ss.get(a)||"auto"}2${Ss.get(r)}`})})).target,from:a,to:r}}},Ch=i4;h();var vh=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],s4=new Map(vh),Rx=new Map(vh.map(([e,t])=>[t,e]));function Ix(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var l4=class extends xe{static langMap=s4;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,a){if(super(t,n,a),!t||!t.appId||!t.appSecret)throw new Error("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,o=Ox(32),u=Math.round(new Date().getTime()/1e3),i=this.appId+Ix(n)+o+u+this.appSecret,s=await In(i),c={q:n,appKey:this.appId,salt:o.toString(),from:s4.get(a)||"auto",to:s4.get(r)||r,sign:s,signType:"v3",curtime:u.toString()};this.domain&&this.domain!=="general"&&(c.domain=this.domain),this.vocabId&&(c.vocabId=this.vocabId);let l=new URLSearchParams(c),p=await se({url:"https://openapi.youdao.com/api",method:"POST",body:l.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"}});if(!p.translation)throw new Error(JSON.stringify(p));let f=p.l,[g,y]=f.split("2");return{text:p.translation.join(` -`),from:Rx.get(g),to:r}}};function Ox(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r[t,e]));var d4=class extends xe{static langMap=c4;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,o={q:n,from:c4.get(a)||"auto",to:c4.get(r)||r},u=new URLSearchParams(o),i=await se({url:"https://aidemo.youdao.com/trans",method:"POST",body:u.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"}});if(i&&i.translation)return{text:i.translation.join(` -`),from:a,to:r};throw new Error("Youdao translation failed: "+JSON.stringify(i))}},Sh=d4;h();var hu=class extends lr{constructor(t,n,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(r=>[r,r]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||Ka,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,a)}};var Nx={mock:oo,mock2:oo,custom:hu,google:ur,transmart:ir,deepl:Qf,volc:ih,volcAlpha:mu,bing:fu,tencent:ou,tenAlpha:uu,baidu:xh,caiyun:Eh,cai:Ch,openl:Cs,youdao:wh,you:Sh,d:ro,dpro:ro,deeplx:pu,niu:Zf,azure:Xf,openai:th,chatgpt:cu,papago:eh,aliyun:gu},ga={};Object.keys(Mn).forEach(e=>{ga[e]={...Mn[e],class:Nx[e]}});function Qr(e,t){let n=sn;if(ga[e]&&ga[e].class&&ga[e].class.langMap&&ga[e].class.langMap.size>0){let a=ga[e].class.langMap,r=n.filter(o=>a.get(o));return r.includes(t)||r.unshift("placeholder"),r}else return sn}function Ah(e,t,n){let a=ga[t],r=n.config.translationServices[t]||{},o=r.provider||"",u=!0,i=[...a.allProps||[]],s=a.providers||[],c=[],l=[];if(i.length>0){i.forEach((p,f)=>{let g=p;if(s.length>0){if(p.providers&&p.providers.length>0&&!p.providers.includes(o))return;p.type=="select"&&(g={...p},g.options=p.options?.filter(y=>y.providers?.includes(o)))}p.optional?l.push(g):c.push(g)});let m=l.concat(c).filter(p=>p.required);if(m.length>0){for(let p of m)if(!r[p.name]){u=!1;break}}}return{...a,id:t,selected:n[e]===t,ok:u,currentProvider:o,providers:s,config:r,props:a.props||[],allProps:i,explicitProps:c||[],optionalProps:l||[]}}async function ca(e,t){if(!e.text)return e;let n=await Ra({sentences:[e]},t);if(n.sentences.length>0)return{...e,...n.sentences[0]};throw new xt("translateFailed","translate failed")}async function Rf(e,t){for(let n of e)try{return await ca({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n}),n}catch{continue}return null}async function Mc(e){let{config:t,translationService:n}=e,a=t.translationGeneralConfig,r=t.translationServices,o=n,u=r[o]||{},i=Xt(e.user),s=new ga[o].class(u,a,{translationService:o,userToken:e.user?.token,isPro:i}),c=s.getDefaultRateLimit();c&&(u&&!u.limit&&(u.limit=c.limit),u&&!u.interval&&(u.interval=c.interval)),o==="deepl"&&u&&u.provider==="pro"&&(u.limitForImmersiveDeepl?u.limit=u.limitForImmersiveDeepl:c&&(u.limit=c.limit)),await c3(o,u),await s.init()}async function Ra(e,t,n){if(!e.sentences.length)return{...e};let{config:a,translationService:r,state:o}=t,u=a.translationGeneralConfig,i=a.translationServices,s=r,c=i[s]||{};s==="openai"&&(e.sentences=e.sentences.map(S=>({...S,from:"auto"})));let l=[],m={sentences:Array(e.sentences.length)},p=e.sentences.length,f=-1;if(o.cache)for(let S of e.sentences){f++;let A=s;s==="openl"&&(A=s+"-"+c.codename||Cs.DEFAULT_CODENAME);let N=null;try{N=await Ru(If({originalText:S.text,from:S.from,to:S.to,service:A}),200)}catch(_){j.warn("query cache DB error, but it's ok",_)}if(N){let _={...S,text:N.translatedText};m.sentences[f]=_,n&&n(null,_,S)}else l.push(S)}else l.push(...e.sentences);let g=l.length;if(p-g>0&&j.debug(`use ${p-g} sentences from cache`),!l.length)return m;let y,v=Xt(t.user);try{y=new ga[s].class(c,u,{translationService:s,userToken:t.user?.token,isPro:v}),await y.init()}catch(S){if(n)for(let A of l)n(S,null,A);throw S}let b=await y.multipleTranslate({sentences:l},c,(S,A,N)=>{if(n&&n(S,A,N),!S&&A&&!s.startsWith("mock")&&o.cache){let _=s;s==="openl"&&(_=s+"-"+c.codename||Cs.DEFAULT_CODENAME),o.cache&&Ru(Of({translatedText:A.text,from:N.from,to:N.to,detectedFrom:A.from,key:Da(N.text),service:_}),3e3).catch(x=>{j.warn("set cache DB error",x)})}});for(let S of b.sentences){let A=m.sentences.findIndex(N=>!N);if(A===-1)throw new xt("translateFailed","can not match the result");m.sentences[A]=S}return m}h();function Pe(e){return d("div",{class:"nav-left",children:[d("div",{class:"title",children:e.title}),d("div",{class:"description",children:e.description})]})}h();h();function cr(e){let{t}=ue(),n={};e.width&&(n={width:`${e.width}px`});let[a,r]=$(e.value),{field:o,onFinish:u}=e,i=o.name;o.label&&(i=o.label),o.labelKey&&(i=t(o.labelKey));let s={};return o.descriptionLink1&&(s[1]=o.descriptionLink1),d("div",{class:"mt-3",children:[d("label",{for:e.field.name,class:"mb-[var(--spacing)]",children:[i,"\uFF1A"]}),e.field.type==="textarea"?d(Fe,{children:[d("textarea",{style:n,autoComplete:"off",required:e.field.required,placeholder:e.field.placeholder||e.field.name,class:"input",rows:e.rows,value:Array.isArray(a)?a.join(","):a,type:e.type,onInput:c=>{let l=c.target.value,m=Array.isArray(a)?l.split(","):l;r(m),e.onChange(m)},onChange:()=>{u&&u()}}),e.field.descriptionKey?d("small",{dangerouslySetInnerHTML:{__html:t(e.field.descriptionKey,s)}}):null]}):d(Fe,{children:[d("input",{style:n,required:e.field.required,placeholder:e.field.placeholder||e.field.name,value:a,type:e.type,disabled:e.field.disabled||!1,name:e.field.name,autoComplete:"off",onInput:c=>{r(c.target.value),e.onChange(c.target.value)},onChange:()=>{(e.type==="text"||e.type==="password")&&u&&u()}}),e.field.descriptionKey?d("small",{dangerouslySetInnerHTML:{__html:t(e.field.descriptionKey,s)}}):null]})]})}function so(e){let{t}=ue(),[n,a]=$(!0),[r,o]=$(!1),{currentProvider:u,onFinish:i,field:s,onChange:c,value:l,isProUser:m}=e;l=l??(s.default||""),he(()=>{s.options&&(s.options.some(g=>g.value===l)||o(!0))},[]);let p=s.name;if(s.label&&(p=s.label),s.labelKey&&(p=t(s.labelKey)),s.type==="select")return d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[p,"\uFF1A"]}),d(Kl,{maxWidth:200,items:s.options.map(f=>({label:`${f.label?t(f.label):f.value}`,value:f.value,selected:l===f.value,onSelected:()=>{c(f.value)}})),onChange:c,isInput:r,value:l})]});if(s.type==="openai-model-select")return d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[p,"\uFF1A"]}),d(Kl,{maxWidth:200,items:s.options.map(f=>({label:`${f.label?t(f.label):f.value}`,value:f.value,selected:l===f.value,onSelected:()=>{c(f.value)}})),onChange:c,isInput:r,value:l}),u!=="pro"&&d("label",{for:"customContent",class:"text-sm",onClick:()=>{o(!r)},children:[d("input",{type:"checkbox",id:"customContent",name:"customContent",checked:r}),t("customContent")]})]});if(s.type==="text")return d("div",{children:d(cr,{field:s,value:l,type:s.type,onChange:c,onFinish:i})});if(s.type==="textarea")return d("div",{children:d(cr,{field:s,value:l,type:s.type,onChange:c,onFinish:i})});if(s.type==="jsonarea")return d("div",{children:d(cr,{field:{...s,type:"textarea"},value:l,rows:5,type:s.type,onChange:c,onFinish:i})});if(s.type==="number")return d("div",{children:d(cr,{field:s,value:l,type:s.type,width:196,onChange:c})});if(s.type==="password")return d("div",{children:[d(cr,{field:s,value:l,type:n?s.type:"text",onChange:c,onFinish:i}),d("label",{for:"translate",onClick:()=>{a(!n)},children:[d("input",{type:"checkbox",id:"translate",name:"translate"}),t("show password")]})]});if(s.type==="color"){let f=l,g="";return f||(f="#FFFFFF",g="#FFFFFF"),d("div",{children:d("label",{class:"flex items-center",for:s.name,children:[d("span",{class:"mr-2",children:s.label||s.name}),d("input",{type:"text",id:s.name,class:"border-color-text mr-2",placeholder:g||"",value:l,onInput:y=>{c(y.target.value)}}),d("input",{id:s.name,type:"color",name:s.name,value:f,onInput:y=>{c(y.target.value)}})]})})}else return null}h();function As(e){let{t,lang:n}=ue();return d("details",{role:"list",class:"nav-right",children:[d("summary",{"aria-haspopup":"listbox",children:t("edit")}),d("ul",{role:"listbox",class:"option-list",children:e.options.map((a,r)=>{let o=Mt(a.value,n);return d("li",{children:d("label",{children:[d("input",{type:"checkbox",onChange:()=>{e.onToggleAlwaysLangs(!a.checked,a.value)},value:a.value,checked:a.checked}),o]})},"language-"+r)})})]})}h();function Ua(e){let{t}=ue(),[n,a]=$([]),[r,o]=$(!1);function u(){e.onDeleteUrl(n,e.type),a([]),o(!1)}return e.urls.length?d("div",{children:[e.urls.length>1?d("div",{style:"display:flex;flex-direction:row;align-items:center;padding: 0 24px;margin-bottom:12px;",children:[d("input",{type:"checkbox",id:"checkAll",checked:r,onChange:i=>{if(i.target.checked){let s=e.urls;a(s)}else a([]);o(i.target.checked)}}),d("label",{htmlFor:"checkAll",children:"\u5168\u9009"}),d("div",{style:"flex:1;"}),d("a",{style:{cursor:"pointer"},onClick:u,children:t("delete")})]}):null,d("div",{class:"url-list-item",children:e.urls.map((i,s)=>d("div",{className:"url-list",style:"padding:6px 24px;",children:d("div",{className:"url-left",style:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%"},children:[d("input",{type:"checkbox",checked:n.includes(i),style:"margin-right:12px;",onChange:c=>{c.target.checked?a([...n,i]):a(n.filter(l=>l!==i))}}),d("div",{className:"url-name height-tight",children:i}),d("div",{style:{flex:1}}),d("a",{style:{marginRight:"12px",cursor:"pointer"},onClick:c=>{e.onEditUrl(i,e.type,s)},children:t("edit")}),d("a",{style:{cursor:"pointer"},onClick:c=>{e.onDeleteUrl([i],e.type)},children:t("delete")})]})},"menu"+s))})]}):null}h();function ja(e){let{t}=ue(),n=zn(null),{toggleModal:a}=e;return d("dialog",{id:"immersive-translate-overlay",onClick:o=>{o.target&&o.target.id==="immersive-translate-overlay"&&a(o)},open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:e.toggleModal}),d("div",{class:"add-text",children:t("add url")}),d("input",{placeholder:"URL",ref:n,value:e.urlValue}),d("blockquote",{children:d("p",{class:"text-sm",children:t("addUrlDescription")})}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"#cancel",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:e.toggleModal,children:t("cancel")})}),d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:o=>{if(o.preventDefault(),n.current&&n.current.value){if(e.onSubmitAddUrl){if(e.urlValue!==""){e.onSubmitAddUrl(n.current.value,e.index,e.type,"edit");return}e.onSubmitAddUrl(n.current.value,e.index,e.type);return}else if(e.onAddInterfaceUrl){if(e.urlValue!==""){e.onAddInterfaceUrl(n.current.value,"edit");return}e.onAddInterfaceUrl(n.current.value)}}},children:t("confirm")})})]})]})})}h();async function lo(){let e=["bingGlobalConfig","baiduGlobalConfig",wg,Kn];for(let t of e)await Q.storage.local.remove(t);me()||await sp(),await ol()}function Dh(){return me()?Promise.resolve("0 B"):Tl()}h();var Qe=fr([]);function Ds(e){let[t,n]=$(null);return he(()=>{Ge().then(a=>{n(a),j.debug("current config",a)})},[]),he(()=>{Ge().then(a=>{n(a)})},[e]),t}function Ls(e){let[t,n]=$(null);return he(()=>{e&&Lt({url:"http://localhost",config:e,state:{cache:!1}}).then(a=>n(a))},[e]),t}var Mh=s3();function Ms(){let e=ft(),[t,n,a,r,o]=e,u=Ds(t),i=Ls(u);return En(t,n),he(()=>()=>{Ue.unbind("esc")},[]),u?d(Qe.Provider,{value:e,children:[d(Ux,{}),d(Kx,{config:u}),d(jx,{config:u}),d(bu,{config:u,ctx:i,serviceType:"translationService"}),d(zx,{config:u,ctx:i}),d(Hx,{config:u,ctx:i}),d(qx,{config:u}),d(Wx,{config:u})]}):d("div",{children:"loading"})}function Ux(){let[e,t,n,a,r]=Ye(Qe),{t:o}=ue(),u=i=>{i.preventDefault(),confirm(o("confirmResetConfig"))&&(r(Za()),ka().catch(s=>{j.error("clean local config error",s)}),Ir().catch(s=>{j.error("clean buildin config error",s)}),lo().catch(s=>{j.error("clean cache error",s)}),ut(o("resetSuccess")))};return d("div",{class:"nav",children:[d("strong",{class:"text-lg",children:o("general")}),d("a",{class:"text-sm",href:"#",onClick:u,children:o("reset")})]})}function jx({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue();if(!e)return null;let i=c=>{n(l=>({...l,targetLanguage:c}))},s=Qr(e.translationService,e.targetLanguage);return d("div",{class:"nav",children:[d(Pe,{title:u("target"),description:u("translate other languages into specific language")}),d("select",{class:"select",onChange:c=>{c.preventDefault(),i(c.target.value)},children:s.filter(c=>c!=="auto").map((c,l)=>d("option",{value:c,selected:c===e?.targetLanguage,children:Mt(c,e?.interfaceLanguage)},"language"+l))})]})}function bu({config:e,ctx:t,serviceType:n}){let{t:a}=ue(),r=ot(),[o,u]=$(!1),[i,s]=$(""),[c,l]=$(""),[m,p]=$(null),[f,g]=$(null),[y,v,b,S,A]=Ye(Qe),N=T=>{v(w=>({...w,[n]:T}))},_=t&&Ci(t,n)||[],x=ha(()=>{if(e&&t){let{translationServices:T}=e,w=t[n],C=T?.[w];return C?{...C}:{}}return null},[e,t]),E=ha(()=>{if(e&&t){let T=t[n];if(Mn[T])return Ah(n,T,t)}return null},[e,t]);return he(()=>{Xe.get(Tt,null).then(T=>{T?(p(T),g(Xt(T))):g(!1)}).catch(T=>{g(!1)})},[]),f===null?null:d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:a("service"),description:a("select translation service")}),d("select",{class:"select",onChange:T=>{T.preventDefault(),s(""),l(""),N(T.target.value)},children:_.map((T,w)=>d("option",{value:T.id,selected:T.id===t?.[n],children:`${a("translationServices."+T.id)}${T.ok?"":" "+(!f&&!r&&T.providers&&T.providers.length>0?a("needLoginAction"):a("needActionForOptions"))}`},"service-item="+w))})]}),x&&E&&d("div",{class:"text-right text-sm",children:[c&&d("span",{class:"verified text-green-500 mr-2",children:a("verified")}),i&&d("span",{class:"verified text-red-500 mr-2",children:i}),d("a",{"aria-busy":o,href:"#",class:"secondary",onClick:async T=>{T.preventDefault();try{s(""),l(""),u(!0),await qn(500);let w=E.class;w&&w.clearState&&await w.clearState(),await ca({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:E.id}),l("verified")}catch(w){s(w.message)}finally{u(!1)}},children:a("verifyService")})]}),E?.providers?.length||E?.explicitProps?.length||E?.optionalProps?.length?d("article",{children:[E&&E.providers&&E.providers.length>0&&d("fieldset",{children:[d("legend",{class:"mb-4",children:a("chooseProviderLabel")}),E.providers.map((T,w)=>d(el,{isProUser:f,provider:T,currentProvider:E.currentProvider,onChange:C=>{C.preventDefault();let M=C.target.value;M&&v(D=>{let F=D.translationServices||{},U=F[E.id]||{};return{...D,translationServices:{...F,[E.id]:{...U,provider:M}}}})}}))]}),E?.titleKey?d("div",{class:"description pb-1",dangerouslySetInnerHTML:{__html:Ne.sanitize(a(E?.titleKey),{ALLOWED_ATTR:["href","target"]})}}):null,E?.docUrl&&(!E.providers||E.providers.length===0)?d("div",{children:[d("a",{target:"_blank",class:"pb-1 docUrl",href:E.homepage,children:a(`translationServices.${E.id}`)}),"\xA0",d("span",{class:"description pb-1",children:a("please refer to")}),"\xA0",d("a",{target:"_blank",class:"pb-1 docUrl",href:E.docUrl,children:a("KeyAndConfigurationTutorial")})]}):null,x&&(E?.explicitProps||[]).map((T,w)=>d("div",{class:"mt-2",children:d(so,{isProUser:f,currentProvider:E.currentProvider,field:T,value:x[T.name],onChange:C=>{v(I=>{let M=I.translationServices||{},D=M[E.id]||{};return{...I,translationServices:{...M,[E.id]:{...D,[T.name]:C}}}})},onFinish:()=>{ut(a("saved"))}},T.name+w)},"service-item-prop-"+T.name+w)),x&&E&&E.optionalProps&&E.optionalProps.length>0&&d("details",{class:"pt-2 border-none",children:[d("summary",{style:{lineHeight:"1rem"},children:[a("moreOptions"),"\xA0\u{1F449}"]}),d("div",{children:E.optionalProps.map((T,w)=>{let C=x[T.name];return T.name==="apiUrl"&&E?.id==="openai"&&x?.APIKEY?.startsWith("immersiveopenai_")&&(T={...T,disabled:!0},C="https://openai-api.immersivetranslate.com/v1/chat/completions"),T.name=="placeholderDelimiters"&&(T.default=x.placeholderDelimiters||T.default),d("div",{class:"mt-2",children:d(so,{field:T,value:C,onChange:I=>{v(M=>{let D=M.translationServices||{},F=D[E.id]||{};return{...M,translationServices:{...D,[E.id]:{...F,[T.name]:I}}}})},onFinish:()=>{ut(a("saved"))}},T.name+w)},"service-item-optional-prop-"+T.name+w)})}),d("a",{href:"#",class:"secondary",onClick:T=>{T.preventDefault(),v(w=>{let C=w.translationServices||{};return{...w,translationServices:{...C,[E.id]:{}}}}),setTimeout(()=>{window.location.reload()},100)},children:a("resetToDefaultSettings")})]})]}):null]})}function zx({config:e,ctx:t}){let{t:n}=ue(),[a,r,o,u,i]=Ye(Qe),s=e?.translationLanguagePattern?.matches||[],{handleTranslationLanguagePatternSelected:c}=Ph(r),l=(p,f)=>{c(p?"matches":void 0,f)},m=ha(()=>!e||!t?[]:Mh.concat("").map(p=>({checked:e.translationLanguagePattern?.matches?.includes(p),value:p})),[e,t]);return d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:n("always languages"),description:n("always translate the following languages")}),d(As,{options:m,onToggleAlwaysLangs:l})]}),d("div",{class:"langs-list",children:s.map((p,f)=>d("div",{class:"lang-card",children:[d("div",{id:`${p}`,children:Mt(p,e?.interfaceLanguage)}),d("a",{href:"#close",class:"close",target:"_blank","aria-label":"Close","data-target":`${p}`,onClick:g=>{g.preventDefault(),l(!1,s[f])}})]},"lang-"+f))})]})}function Hx({config:e,ctx:t}){let{t:n}=ue(),[a,r,o,u,i]=Ye(Qe),s=e?.translationLanguagePattern.excludeMatches||[],{handleTranslationLanguagePatternSelected:c}=Ph(r),l=(p,f)=>{c(p?"excludeMatches":void 0,f)},m=ha(()=>!e||!t?[]:Mh.map(p=>({checked:e?.translationLanguagePattern?.excludeMatches?.includes(p),value:p})),[e,t]);return d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:n("neverTranslateLanguagesLabel"),description:n("neverTranslateTheFollowingLanguagesDescription")}),d(As,{options:m,onToggleAlwaysLangs:l})]}),d("div",{class:"langs-list",children:s.map((p,f)=>d("div",{class:"lang-card",children:[d("div",{id:`${p}`,children:Mt(p,e?.interfaceLanguage)}),d("a",{href:"#close",class:"close",target:"_blank","aria-label":"Close","data-target":`${p}`,onClick:g=>{g.preventDefault(),l(!1,s[f])}})]},"never-lang-"+f))})]})}function qx({config:e}){let{t}=ue(),[n,a,r,o,u]=Ye(Qe),[i,s]=$(""),[c,l]=$(0),[m,p]=$(!1);he(()=>{Ue("esc",()=>{p(!1)})},[]);let f=(v,b,S,A)=>{p(!m),a(N=>{let _=N.translationUrlPattern,x=[],E=[];_&&_.matches&&_.excludeMatches&&(x=_.matches,E=_.excludeMatches);let T=[...x],w=[...E];return A==="edit"&&(T[b]=v),T=bn(v,T),w=at(v,E),{...N,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...N.translationUrlPattern,matches:T,excludeMatches:w}}})},g=(v,b)=>{a(S=>{let A=S.translationUrlPattern,N=[];A&&A.matches&&(N=A.matches);let _=[...N];return v.forEach(x=>{_=at(x,_)}),{...S,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...S.translationUrlPattern,[b]:_}}})},y=(v,b,S)=>{p(!m),s(v),l(S)};return d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:t("always sites"),description:t("always translate the following sites")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:v=>{v.preventDefault(),p(!m)},children:t("add")})}),m?d(ja,{toggleModal:v=>{v.preventDefault(),p(!m)},onSubmitAddUrl:f,urlValue:i,index:c}):null]}),d(Ua,{urls:e?.translationUrlPattern.matches||[],type:"matches",onDeleteUrl:g,onEditUrl:y})]})}function Wx({config:e}){let{t}=ue(),[n,a,r,o,u]=Ye(Qe),[i,s]=$(!1),[c,l]=$(""),[m,p]=$(0);he(()=>{Ue("esc",()=>{s(!1)})},[]);let f=()=>{s(!i)},g=(b,S,A,N)=>{f(),a(_=>{let x=_.translationUrlPattern,E=[],T=[];x&&x.matches&&x.excludeMatches&&(E=x.matches,T=x.excludeMatches);let w=[...E],C=[...T];return N==="edit"&&(C[S]=b),w=at(b,E),C=bn(b,C),{..._,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{..._.translationUrlPattern,matches:w,excludeMatches:C}}})},y=(b,S)=>{a(A=>{let N=A.translationUrlPattern,_=[];N&&N.excludeMatches&&(_=N.excludeMatches);let x=[..._];return b.forEach(E=>{x=at(E,x)}),{...A,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...A.translationUrlPattern,[S]:x}}})},v=(b,S,A)=>{s(!i),l(b),p(A)};return d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:t("never sites"),description:t("never translate the following sites")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:b=>{b.preventDefault(),f()},children:t("add")})}),i?d(ja,{toggleModal:b=>{b.preventDefault(),f()},onSubmitAddUrl:g,type:"excludeMatches",urlValue:c,index:m}):null]}),d(Ua,{urls:e?.translationUrlPattern.excludeMatches||[],type:"excludeMatches",onDeleteUrl:y,onEditUrl:v})]})}function Ph(e){return{handleTranslationLanguagePatternSelected:dn((n,a)=>{if(!n){e(u=>{let i={...u.translationLanguagePattern};return{...u,translationLanguagePattern:{...u.translationLanguagePattern,matches:at(a,i.matches),excludeMatches:at(a,i.excludeMatches)}}});return}let r=n,o=r==="matches"?"excludeMatches":"matches";a&&e(u=>{let i={...u.translationLanguagePattern};return i[r]=bn(a,i[r]),i[o]=at(a,i[o]),{...u,translationLanguagePattern:{...u.translationLanguagePattern,...i}}})},[e])}}var g4=0,m4;async function Fh(e){if(g4>60*10)return null;g4++,Xe.refresh(),await qn(300);let t=await Xe.get(Tt,null);j.debug("loopCheckUser",g4,t),t?(clearTimeout(m4),e(t)):m4=setTimeout(Fh.bind(null,e),1500)}function Lh(e){let{user:t}=e,n=ot(),a=t&&t.email==="test@immersivetranslate.com",{t:r}=ue();if(t&&t.subscription&&t.subscription.subscriptionStatus=="active"){let o=t,u=o.subscription,i=Yx(u.subscriptionTo),s=u.subscriptionType,c=s.startsWith("onetime_"),l=!c&&u.cancelAtPeriodEnd!="true",m="";return l?m=r("currentPlanDescriptionForContinuous",{plan:`${r(s)}`,endAt:i}):c?m=r("currentPlanDescriptionForOneTime",{plan:r(s),endAt:i,1:"https://immersivetranslate.com/accounts/upgrade?type=year",2:"https://immersivetranslate.com/accounts/upgrade?type=month"}):s==="yearly"||s==="year"?lm(o)?m=r("currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser",{plan:r(s+"ForOnce"),endAt:i,1:"https://immersivetranslate.com/billing"}):m=r("currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin",{plan:r(s+"ForOnce"),endAt:i,1:"https://immersivetranslate.com/accounts/upgrade?type=year"}):m=r("currentPlanDescriptionForAutoRenewCaceling",{plan:r(s+"ForOnce"),endAt:i}),d("span",{class:"info-subtitle",dangerouslySetInnerHTML:{__html:m}})}else return d("span",{class:"info-subtitle",children:n||a?"":r("currentPlanDescriptionForFree")})}function Kx({config:e}){let{t}=ue(),n=ot(),[a,r]=$(null),o=!!e.showSponsorOnSafari,[u,i,s,c,l]=Ye(Qe);he(()=>(Xe.get(Tt,null).then(g=>{g&&(r(g),$x(g.token).then(y=>{let v=y.data;v.token=g.token,Xe.set(Tt,v),r(v)}).catch(y=>{Xe.remove(Tt),r(null)}))}),()=>{clearTimeout(m4)}),[]);let m=dn(g=>{g&&g.preventDefault&&g.preventDefault(),a?.token&&Gx(a.token).finally(async()=>{await Xe.remove(Tt),await qn(200),await Xe.refresh(),r(null)})},[a]),p=dn(async g=>{g&&g.preventDefault&&g.preventDefault(),await Xe.set(_o,!0),Vx(Vg),Fh(y=>{Qi(y.token,u,i),r(y),p4?.close(),window.location.reload()})},[r]),f=a?.avatar||T3;return a?!a.subscription||a.subscription.subscriptionStatus!="active"?d("div",{children:[d("div",{class:"title",children:t("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("span",{class:"info-title",title:a.email,children:a.email}),d(Lh,{user:a})]}),d("div",{class:"ops",children:[d("a",{class:n&&o===!1?"!hidden":"",style:{display:"flex",flexDirection:"row",alignItems:"center",marginRight:"24px"},href:`${$a}?from=${n?"safari":"extension"}`,children:[t("openPremium"),d("img",{width:24,height:24,style:{width:"24px",height:"24px"},src:Jr})]}),d("div",{class:"",children:d("a",{href:`${kr}?from=${n?"safari":"extension"}`,children:t("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:m,children:t("logout")})})]})]})]}):d("div",{class:"",children:[d("div",{class:"title",children:t("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("div",{className:"flex",children:[d("span",{class:"info-title info-primary",children:a.userName}),d("img",{width:24,height:24,style:{width:"24px",height:"24px",marginLeft:"4px"},src:Jr})]}),d(Lh,{user:a})]}),d("div",{class:"",children:d("a",{href:kr,children:t("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:m,children:t("logout")})})]})]}):d("div",{class:"header nav",children:[d("img",{src:f}),d("div",{class:"info",children:d("span",{class:"info-subtitle",children:t("nologin")})}),d("a",{class:"py-4",href:"#",onClick:p,children:t(n?"loginForSafari":"login")})]})}var _h=Bo;function $x(e){return se({responseType:"json",url:_h+"/v1/user",method:"get",headers:{token:e}})}function Gx(e){return se({responseType:"json",url:_h+"/v1/user/logout",method:"delete",headers:{token:e}})}var p4=null;function Vx(e){let a=screen.width/2-230,r=screen.height/2-640/2;return p4=window.open(e,"loginWindow",`toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no,left=${a},top=${r},width=460,height=640,chrome=yes,centerscreen=yes`),p4}function Yx(e){let t=new Date(e),n=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),r=String(t.getDate()).padStart(2,"0");return`${n}-${a}-${r}`}h();var Gt={};ai.forEach(e=>{e.labelKey&&(Gt[e.key]=e.labelKey)});function f4(){let e=ft(),[t,n,a,r,o]=e,[u,i]=$(null),{t:s}=ue();if(he(()=>{Ge().then(l=>{Lt({config:l,url:globalThis.location.href}).then(m=>{i(m)})})},[t]),!u)return d("div",{children:"loading"});let c=u.config;return d(Qe.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:s("inputOptions")})}),d(Jx,{config:c}),d(Qx,{config:c}),d(Zx,{config:c}),d(bu,{config:c,ctx:u,serviceType:"inputTranslationService"}),d(Xx,{config:c}),d(eE,{config:c}),d(nE,{config:c}),d(tE,{config:c})]})}function Jx({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue();return e?d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:u("enableInputTranslation"),description:e.enableInputTranslationWithoutTriggerKey?u("enableInputTranslationDescriptionForNoneKey",{inputTargetLanguage:Mt(e.inputTargetLanguage,e.interfaceLanguage),trailingKey:Gt[e.inputTrailingTriggerKey]?u(Gt[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes}):u("enableInputTranslationDescription",{inputTargetLanguage:Mt(e.inputTargetLanguage,e.interfaceLanguage),startingKey:Gt[e.inputStartingTriggerKey]?u(Gt[e.inputStartingTriggerKey]):e.inputStartingTriggerKey,trailingKey:Gt[e.inputTrailingTriggerKey]?u(Gt[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes})}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:i=>{let s=i.target.checked;n(c=>({...c,enableInputTranslation:!!s}))},checked:e.enableInputTranslation})})]}),d("details",{class:"mt-3",children:[d("summary",{children:[u("clickToSeeQuickDemo")," \u{1F447}\u{1F447}"]}),d("video",{controls:!0,src:"https://s.immersivetranslate.com/videos/immpersive-translate-input-translation-demo-202307044.mp4"})]})]}):null}function Qx({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue(),i=c=>{n(l=>({...l,inputTargetLanguage:c}))};if(!e)return null;let s=Qr(e.translationService,e.targetLanguage);return d("div",{class:"nav",children:[d(Pe,{title:u("inputTargetLanguage"),description:e.enableInputTranslationWithoutTriggerKey?u("inputTargetLanguageDescriptionForNoneKey"):u("inputTargetLanguageDescription",{startingKey:Gt[e.inputStartingTriggerKey]?u(Gt[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:c=>{c.preventDefault(),i(c.target.value)},children:s.filter(c=>c!=="auto").map((c,l)=>d("option",{value:c,selected:c===e.inputTargetLanguage,children:Mt(c,e.interfaceLanguage)},"language"+l))})]})}function Zx({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue();return e?d("div",{class:"nav",children:[d(Pe,{title:u("enableInputTranslationWithoutTriggerKeyTitle",{trailingKey:Gt[e.inputTrailingTriggerKey]?u(Gt[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTargetLanguage:Mt(e.inputTargetLanguage,e.interfaceLanguage)}),description:""}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:i=>{let s=i.target.checked;n(c=>({...c,enableInputTranslationWithoutTriggerKey:!!s}))},checked:e.enableInputTranslationWithoutTriggerKey})})]}):null}function Xx({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue(),i=s=>{n(c=>({...c,inputStartingTriggerKey:s}))};return e?d("div",{class:"nav",children:[d(Pe,{title:u("inputStartingTriggerKeyTitle"),description:e.inputStartingTriggerKey==="none"?u("inputStartingTriggerKeyDescriptionForNoneKey"):u("inputStartingTriggerKeyDescription",{startingKey:Gt[e.inputStartingTriggerKey]?u(Gt[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:s=>{s.preventDefault(),i(s.target.value)},children:ai.filter(s=>s.skipForStarting!==!0).map((s,c)=>d("option",{value:s.key,selected:s.key===e.inputStartingTriggerKey,children:s.labelKey?u(s.labelKey):s.key},"startingkey-"+c))})]}):null}function eE({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue(),i=s=>{n(c=>({...c,inputTrailingTriggerKey:s}))};return e?d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:u("inputTrailingTriggerKeyTitle"),description:u("inputTrailingTriggerKeyDescription",{trailingKey:Gt[e.inputTrailingTriggerKey]?u(Gt[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey})}),d("select",{class:"select",onChange:s=>{s.preventDefault(),i(s.target.value)},children:ai.filter(s=>s.skipForTrailing!==!0).map((s,c)=>d("option",{value:s.key,selected:s.key===e.inputTrailingTriggerKey,children:s.labelKey?u(s.labelKey):s.key},"startingkey-"+c))})]}),d("blockquote",{class:"text-sm",dangerouslySetInnerHTML:{__html:u("inputHelperInfo",{1:"https://immersivetranslate.com/docs/input/"})}})]}):null}function tE({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue(),[i,s]=$(!1),c=b=>{s(!i)},[l,m]=$(0),[p,f]=$(""),g=(b,S,A,N)=>{c(A),n(_=>{let x=_.inputTranslationUrlPattern,E=[],T=[];x&&x.matches&&x.excludeMatches&&(E=x.matches,T=x.excludeMatches);let w=[...E],C=[...T];return N==="edit"&&(A==="matches"?w[S]=b:C[S]=b),A==="matches"?(w=bn(b,w),C=at(b,T)):(w=at(b,E),C=bn(b,C)),{..._,inputTranslationUrlPattern:{..._.inputTranslationUrlPattern,matches:w,excludeMatches:C}}})},y=(b,S)=>{n(A=>{let N=A.inputTranslationUrlPattern,_=[];S==="matches"?N&&N.matches&&(_=N.matches):N&&N.excludeMatches&&(_=N.excludeMatches);let x=[..._];return b.forEach(E=>{x=at(E,x)}),{...A,inputTranslationUrlPattern:{...A.inputTranslationUrlPattern,[S]:x}}})},v=(b,S,A)=>{c(S),f(b),m(A)};return e?d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:u("inputTranslationBlockUrlsTitle"),description:u("inputTranslationBlockUrlsDescription")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:b=>{b.preventDefault(),c("excludeMatches")},children:u("add")})}),i?d(ja,{toggleModal:b=>{b.preventDefault(),c("excludeMatches")},onSubmitAddUrl:g,type:"excludeMatches",urlValue:p,index:l}):null]}),d(Ua,{urls:e.inputTranslationUrlPattern.excludeMatches,type:"excludeMatches",onDeleteUrl:y,onEditUrl:v})]}):null}function nE({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue();if(!e)return null;let i=()=>fn().any?e.inputTrailingMobileTriggerKeyTimeout:e.inputTrailingTriggerKeyTimeout,s=c=>{n(l=>fn().any?{...l,inputTrailingMobileTriggerKeyTimeout:c}:{...l,inputTrailingTriggerKeyTimeout:c})};return d("nav",{children:[d(Pe,{title:u("inputTrailingTriggerKeyTimeout"),description:u("inputTrailingTriggerKeyTimeoutDescription")}),d("div",{class:"option-input",children:d("input",{type:"number",value:i(),onChange:c=>{c.target&&s(Number(c.target.value))}})})]})}h();h();function h4(e){let{t}=ue(),{corfirmText:n,fingerCountToToggleTranslagePageWhenTouching:a,fingerCountToToggleTranslationMaskWhenTouching:r,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:o,onChange:u,onClose:i,shortcuts:s,mouseHoverHoldKey:c}=e,l={mouseHoverHoldKey:zn(null)},m=zn(null);for(let f=0;f{f.target&&f.target.id==="immersive-translate-overlay"&&i()};return he(()=>{},[]),d("dialog",{id:"immersive-translate-overlay",onClick:p,open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:f=>{f.preventDefault(),i()}}),s.map((f,g)=>{let{name:y,description:v,shortcut:b}=f;return d("div",{class:"flex justify-between items-center",children:[d("label",{class:"mb-2 text-sm",for:y,children:[v,":"]}),d("input",{type:"text",class:"!w-36",ref:l[y],disabled:f.disabled,id:y,name:y,value:b})]},`key-${g}`)}),ia()&&d("div",{class:"flex justify-between items-center",children:[d("label",{for:"switch",class:"text-sm mb-2",children:t("mouseHoverHoldKey")}),d("input",{type:"text",class:"!w-36",placeholder:t("mouseHoverShortcutPlaceholder"),ref:l.mouseHoverHoldKey,id:"mouseHoverHoldKey",name:"mouseHoverHoldKey",value:c})]}),Br()&&d("div",{class:"flex justify-between items-center",children:[d("label",{for:"switch",class:"text-sm mb-2",children:t("toggleTranslatePageWhenThreeFingersOnTheScreen")}),d("select",{class:"select !w-36",ref:m,onChange:f=>{f.preventDefault();let g=f.target.value,y={fingerCountToToggleTranslagePageWhenTouching:parseInt(g)};u(y)},children:[0,2,3,4,5].map((f,g)=>d("option",{value:f,selected:f===a,children:`${t("fingers."+f)}`},"finger-"+g))})]}),Br()&&d("div",{class:"mt-2 flex justify-between items-center",children:[d("label",{for:"switch",class:"text-sm mb-2",children:t("fingerCountToToggleTranslagePageOnlyTranslationWhenTouching")}),d("select",{class:"select !w-36",onChange:f=>{f.preventDefault();let g=f.target.value,y={fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:parseInt(g)};u(y)},children:[0,2,3,4,5].map((f,g)=>d("option",{value:f,selected:f===o,children:`${t("fingers."+f)}`},"finger-"+g))})]}),Br()&&d("div",{class:"mt-2 flex justify-between items-center",children:[d("label",{for:"switch",class:"text-sm mb-2",children:t("toggleTranslationMaskWhenThreeFingersOnTheScreen")}),d("select",{class:"select !w-36",onChange:f=>{f.preventDefault();let g=f.target.value,y={fingerCountToToggleTranslationMaskWhenTouching:parseInt(g)};u(y)},children:[0,2,3,4,5].map((f,g)=>d("option",{value:f,selected:f===r,children:`${t("fingers."+f)}`},"finger-"+g))})]}),e.note&&d(e.note,{}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"#cancel",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:f=>{f.preventDefault(),i()},children:t("cancel")})}),n&&d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:f=>{f.preventDefault();let g=[];for(let v=0;v{let t=e.translationTheme;return!e.translationThemePatterns[t]||!e.translationThemePatterns[t].matches?[]:[...e.translationThemePatterns[t].matches]};function b4(e){let t=[];return Fo[e]&&(t=t.concat(Fo[e])),t.push({name:"textColor",type:"color",required:!1}),t.push({name:"zoom",type:"number",default:100,required:!1}),t}function y4(){let e=ft(),[t,n,a,r,o]=e;En(t,n);let[u,i]=$(!1),[s,c]=$(!1),[l,m]=$(0),[p,f]=$(null),{t:g,setLang:y}=ue(),[v,b]=$("");he(()=>(Ue("esc",()=>{i(!1),c(!1)}),()=>{Ue.unbind("esc")}),[]),he(()=>{Ge().then(T=>{Lt({config:T,url:globalThis.location.href}).then(w=>{f(w)})})},[t]);let S=T=>{n(w=>{let C={matches:[],excludeMatches:[]};return w&&w.translationThemePatterns&&w.translationThemePatterns[T]&&(C=w.translationThemePatterns[T]),Pr(document,T,C),{...w,translationTheme:T}})},A=T=>{n(w=>({...w,interfaceLanguage:T}))},N=(T,w,C)=>{i(!u),n(I=>{let M=I.translationThemePatterns||{},D=M[w]||{},F=D.matches||[],U=[...F];return C==="edit"&&(U=at(v,F)),U=bn(T,U),{...I,translationThemePatterns:{...M,[w]:{...D,matches:U}}}})},_=(T,w)=>{n(C=>{let I=C.translationThemePatterns||{},M=I[w]||{},F=[...M.matches||[]];return T.forEach(U=>{F=at(U,F)}),{...C,translationThemePatterns:{...I,[w]:{...M,matches:F}}}})},x=(T,w,C)=>{i(!u),b(T),m(C)};if(!p)return d("div",{children:"loading"});let E=p.config;return d(Qe.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:g("interface")})}),d("div",{class:"nav",children:[d(Pe,{title:g("interface language")}),d("select",{class:"select",onChange:T=>{y(T.target.value),A(T.target.value),me()||setTimeout(()=>{Ps()},200)},children:rE.map((T,w)=>d("option",{value:T,selected:T===E.interfaceLanguage,children:Mt(T,E.interfaceLanguage,!0)},"locale"+w))})]}),d("div",{class:"nav",children:[d(Pe,{title:g("keyboard shortcuts")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:T=>{T.preventDefault(),c(!s)},children:g("modify")})})]}),d("div",{class:"nav",children:[d(Pe,{title:g("enableLineBreak"),description:g("enableLineBreakDescription")}),d("label",{for:"switch",children:d("input",{type:"checkbox",onChange:T=>{let w=T.target.checked;n(C=>{let I=C.generalRule||{};return{...C,generalRule:{...I,lineBreakMaxTextCount:w?280:0}}})},checked:p.rule.lineBreakMaxTextCount>0,id:"switch",name:"switch",role:"switch"})})]}),p.rule.lineBreakMaxTextCount>0&&d("div",{class:"nav",children:[d(Pe,{title:g("lineBreakMaxTextCount")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:T=>{let w=T.target.value;n(C=>{let I=C.generalRule||{};return{...C,generalRule:{...I,lineBreakMaxTextCount:parseInt(w)}}})},name:"count",value:p.rule.lineBreakMaxTextCount,placeholder:"Text Length",required:!0})})]}),(fn().any||me())&&d("div",{class:"nav",children:[d(Pe,{title:g("enableUserscriptPagePopup"),description:g("enableUserscriptPagePopupDescription",{touch:g("fingers."+E.generalRule.fingerCountToToggleTranslagePageWhenTouching)})}),d("label",{for:"switch",children:d("input",{type:"checkbox",onChange:T=>{let w=T.target.checked;n(C=>{let I=C.generalRule||{};return{...C,generalRule:{...I,isShowUserscriptPagePopup:w}}})},checked:p.rule.isShowUserscriptPagePopup,id:"switch",name:"switch",role:"switch"})})]}),d("div",{class:"nav",children:[d(Pe,{title:g("translation display"),description:g("select diplay style")}),d("select",{class:"select",onChange:T=>{S(T.target.value)},children:j0.map((T,w)=>d("option",{value:T,selected:T===E.translationTheme,children:g(`translationTheme.${T}`)},"theme"+w))})]}),d("div",{class:"pt-2 text-sm",children:d("p",{children:[Gg,d("div",{class:"pt-2"}),d("font",{class:Hr(E.translationTheme,!1,[],!1).join(" "),children:d("font",{class:qr(E.translationTheme).join(" "),children:z0})}),E.translationTheme&&b4(E.translationTheme).length>0?d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:g("customTheme")}),d("div",{class:"flex flex-col items-end",children:[b4(E.translationTheme).map((T,w)=>{T.label=g(`customThemeLabel.${T.name}`);let C=E.translationThemePatterns||{},I=E.translationTheme,M=C[I]||{},D=`theme-${I}-${T.name}`,F=Bh(D)||void 0,U=M[T.name]||F;return d(so,{field:T,value:U,onChange:z=>{n(B=>{let k=B.translationThemePatterns||{},O={...k[E.translationTheme]||{},[T.name]:z},K={...B,translationThemePatterns:{...k,[E.translationTheme]:O}};return Pr(document,E.translationTheme,O),K})}},"theme-prop"+w)}),d("a",{href:"#",class:"text-sm secondary",onClick:T=>{T.preventDefault(),n(w=>{let C=w.translationThemePatterns||{},I={...C[E.translationTheme]};b4(E.translationTheme).forEach(D=>{delete I[D.name]});let M={...w,translationThemePatterns:{...C,[E.translationTheme]:I}};return Pr(document,E.translationTheme,{matches:[],excludeMatches:[]},!0),M})},children:g("resetToDefaultColor")})]})]}):null,d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:g("previewAllThemes")}),j0.map((T,w)=>d("div",{class:"pt-2",children:d("label",{children:[d("div",{class:"flex justify-between",children:d("div",{children:[d("input",{type:"radio",name:"theme",value:T,checked:T===E.translationTheme,onChange:C=>{S(C.target.value)}}),g(`translationTheme.${T}`)]})}),d("p",{children:d("font",{class:Hr(T,!1,[],!1).join(" "),children:d("font",{class:qr(T).join(" "),children:z0})})})]})},"theme-index-"+w))]})]})}),d("div",{class:"nav",children:[d(Pe,{title:"",description:g("useAboveStyleForTheseSites",{theme:g(`translationTheme.${E.translationTheme}`)})}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:T=>{T.preventDefault(),i(!u)},children:g("add")})})]}),u?d(ja,{toggleModal:T=>{T.preventDefault(),i(!u)},onAddInterfaceUrl:(T,w)=>{N(T,E.translationTheme,w)},urlValue:v,index:l}):null,d(Ua,{urls:oE(E),type:"matches",onDeleteUrl:T=>{_(T,E.translationTheme)},onEditUrl:x}),d(T4,{config:E,visible:s,onClose:()=>c(!1)})]})}function T4({config:e,visible:t,onClose:n}){let{t:a}=ue(),[r,o,u,i,s]=Ye(Qe);if(!t||!e)return null;let c=a("confirm"),l=()=>d("blockquote",{class:"text-sm",children:[a("browserShortcutsSucks")," ",d("kbd",{children:"Ctrl+A"}),"\xA0",d("kbd",{children:"Alt+B"}),"\xA0",d("kbd",{children:"Command+C"}),"\xA0 ",d("kbd",{children:"Ctrl+Shift+D"})," "]});return me()||(Va()?(l=()=>d("blockquote",{class:"text-sm",children:[a("browserShortcutsNoteForFirefox")," ",d("a",{target:"_blank",href:"https://support.mozilla.org/zh-CN/kb/%E7%AE%A1%E7%90%86Firefox%E7%9A%84%E6%89%A9%E5%B1%95%E5%BF%AB%E6%8D%B7%E6%96%B9%E5%BC%8F",children:[a("help"),"?"]}),d("br",{}),d("br",{}),a("browserShortcutsSucks")," ",d("kbd",{children:"Ctrl+A"}),"\xA0",d("kbd",{children:"Alt+B"}),"\xA0",d("kbd",{children:"Cmd+C"}),"\xA0 ",d("kbd",{children:"Ctrl"}),"\xA0",d("kbd",{children:"D"})," "]}),c=a("confirm")):(l=()=>d("blockquote",{class:"text-sm",children:[a("browserShortcutsNoteForChrome"),"\xA0",d("a",{href:"#",onClick:m=>{m.preventDefault(),Q.tabs.create({url:"chrome://extensions/shortcuts"})},children:a("goSettings")})]}),c=a("confirm"))),d(h4,{note:l,corfirmText:c,fingerCountToToggleTranslagePageWhenTouching:e.generalRule.fingerCountToToggleTranslagePageWhenTouching,fingerCountToToggleTranslationMaskWhenTouching:e.generalRule.fingerCountToToggleTranslationMaskWhenTouching,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:e.generalRule.fingerCountToToggleTranslagePageOnlyTranslationWhenTouching,mouseHoverHoldKey:e.generalRule.mouseHoverHoldKey,shortcuts:Kg.map(m=>({name:m,shortcut:e.shortcuts[m],description:a(`browser.${m}`),disabled:!me()})),onChange:m=>{if(m){let{shortcuts:p,fingerCountToToggleTranslagePageWhenTouching:f,fingerCountToToggleTranslationMaskWhenTouching:g,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:y,mouseHoverHoldKey:v}=m;me()?o(b=>{p=p||[];let S=p.reduce((N,_)=>(N[_.name]=_.shortcut,N),{...b.shortcuts}),A={...b,shortcuts:S};return f!==void 0&&(A.generalRule={...A.generalRule,fingerCountToToggleTranslagePageWhenTouching:f}),g!==void 0&&(A.generalRule={...A.generalRule,fingerCountToToggleTranslationMaskWhenTouching:g}),y!==void 0&&(A.generalRule={...A.generalRule,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:y}),v&&(A.generalRule={...A.generalRule,mouseHoverHoldKey:v}),A}):(f!==void 0||g!==void 0||v||y!==void 0)&&o(b=>{let S={...b};return f!==void 0&&(S.generalRule={...S.generalRule,fingerCountToToggleTranslagePageWhenTouching:f}),g!==void 0&&(S.generalRule={...S.generalRule,fingerCountToToggleTranslationMaskWhenTouching:g}),y!==void 0&&(S.generalRule={...S.generalRule,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:y}),v&&(S.generalRule={...S.generalRule,mouseHoverHoldKey:v}),S}),m&&m.isClose&&n()}else n(),Q.tabs.create({url:"chrome://extensions/shortcuts"})},onClose:n})}h();function x4(){let[e,t,n,a]=ft();En(e,t);let[r,o]=$(null),{t:u}=ue(),[i,s]=$({}),[c,l]=$({});he(()=>{Ge().then(x=>{o(x)}),Q.storage.sync.get(null).then(x=>{s(x),Q.storage.local.get(null).then(E=>{l(E)})})},[e]);let m=x=>{t(E=>({...E,debug:x}))},p=x=>{t(E=>({...E,beta:x}))},f=x=>{t(()=>({...x}))},g=x=>{try{let E=x.target.value,T={...e};if(!E)delete T.rules;else{let w=JSON.parse(E);if(!Array.isArray(w)){Bt("Invalid rules, rules must be an array");return}T.rules=w}f(T),ut(u("saved"))}catch(E){Bt(`Invalid JSON ${E.message}`)}},y=x=>{let E={...e};E.generalRule||(E.generalRule={}),E.generalRule={...E.generalRule,injectedCss:x.target.value||""},f(E),ut(u("saved"))},v=x=>{try{let E=JSON.parse(x.target.value);f(E),ut(u("saved"))}catch(E){Bt(`Invalid JSON ${E.message}`)}},b=x=>{x.preventDefault()},S=x=>{x.preventDefault(),confirm(u("confirmResetConfig"))&&(f(Za()),ka().catch(E=>{j.error("clean local config error",E)}),Ir().catch(E=>{j.error("clean buildin config error",E)}),lo().catch(E=>{j.error("clean cache error",E)}),ut(u("resetSuccess")))},A=x=>{if(x.preventDefault(),confirm(u("confirmResetConfig"))){let E={...e};delete E.rules,f(E),ut(u("resetThisSuccess"))}},N=x=>{if(x.preventDefault(),confirm(u("confirmResetConfig"))){let E={...e};E.generalRule||(E.generalRule={}),E.generalRule={...E.generalRule},delete E.generalRule.injectedCss,f(E),ut(u("resetThisSuccess"))}},_=`[{ + `);if(l.statusCode)throw new Error(`Something went wrong! The response is ${JSON.stringify(l)}.`)}let g=l[0].translations[0],p=l[0].detectedLanguage;return{text:g.text,from:gh.get(p.language),to:gh.get(g.to)}}h();function yh(e){let t=e.split(".");if(t.length<=1)throw new Error("invlaid token");let n=t[1];if(!n)throw new Error("invalid base64 url token");let a=n.replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(globalThis.atob(a).split("").map(function(i){return"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)}).join("")),o=JSON.parse(r),u=new Date(o.exp*1e3);return{accessToken:e,accessTokenExpiresAt:u.toISOString()}}var dr=null,Fx=[["auto",""],["ar","ar"],["ga","ga"],["et","et"],["bg","bg"],["is","is"],["pl","pl"],["bs","bs-Latn"],["fa","fa"],["da","da"],["de","de"],["ru","ru"],["fr","fr"],["zh-TW","zh-Hant"],["fil","fil"],["fj","fj"],["fi","fi"],["gu","gu"],["kk","kk"],["ht","ht"],["ko","ko"],["nl","nl"],["ca","ca"],["zh-CN","zh-Hans"],["cs","cs"],["kn","kn"],["otq","otq"],["tlh","tlh"],["hr","hr"],["lv","lv"],["lt","lt"],["ro","ro"],["mg","mg"],["mt","mt"],["mr","mr"],["ml","ml"],["ms","ms"],["mi","mi"],["bn","bn-BD"],["hmn","mww"],["af","af"],["pa","pa"],["pt","pt"],["ps","ps"],["ja","ja"],["sv","sv"],["sm","sm"],["sr-Latn","sr-Latn"],["sr-Cyrl","sr-Cyrl"],["no","nb"],["sk","sk"],["sl","sl"],["sw","sw"],["ty","ty"],["te","te"],["ta","ta"],["th","th"],["to","to"],["tr","tr"],["cy","cy"],["ur","ur"],["uk","uk"],["es","es"],["he","iw"],["el","el"],["hu","hu"],["it","it"],["hi","hi"],["id","id"],["en","en"],["yua","yua"],["bo","bo"]],r4=new Map(Fx),pu=class extends xe{static langMap=r4;isSupportList=!0;maxTextLength=1800;static async clearState(){dr=null,await zo(Wu)}async translate(t){let{text:n,from:a,to:r}=t;return n?await bh(n,a,r):{...t}}async init(){if(!dr){dr={};let t=await Uo(Wu);t&&(dr=t)}await Th(dr)}async translateList(t){let{from:n,to:a,text:r}=t,o=r4.get(n)||"auto",u=r4.get(a)||a;o==="auto"&&(o="");let i=await Th(dr),s=[];for(let p of r)s.push({Text:p});let c=JSON.stringify(s),l=`https://api-edge.cognitive.microsofttranslator.com/translate?from=${o}&to=${u}&api-version=3.0&includeSentenceLength=true`,g=await se({url:l,headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5",authorization:"Bearer "+i.accessToken,"cache-control":"no-cache","content-type":"application/json",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","Referrer-Policy":"strict-origin-when-cross-origin"},body:c,method:"POST"});if(g&&g.length>0&&g[0].translations&&g[0].translations.length>0)return{text:g.map(p=>p.translations[0]?.text||""),from:n,to:a};throw new Error("Microsoft translate error "+JSON.stringify(g))}};async function Th(e){if(e&&e.accessToken&&e.accessTokenExpiresAt){let t=Date.now(),a=new Date(e.accessTokenExpiresAt).getTime();if(a-t>30*1e3)return e;if(a-t>3e3)return xh().catch(r=>{j.error(r)}),e}return xh()}async function xh(){let e=await p3({responseType:"text",url:"https://edge.microsoft.com/translate/auth",headers:{accept:"*/*","accept-language":"zh-TW,zh;q=0.9,ja;q=0.8,zh-CN;q=0.7,en-US;q=0.6,en;q=0.5","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site","sec-mesh-client-arch":"x86_64","sec-mesh-client-edge-channel":"beta","sec-mesh-client-edge-version":"113.0.1774.23","sec-mesh-client-os":"Windows","sec-mesh-client-os-version":"10.0.19044","sec-mesh-client-webview":"0",Referer:"https://appsumo.com/","Referrer-Policy":"strict-origin-when-cross-origin"},body:null,method:"GET"}),t=yh(e),n=t.accessTokenExpiresAt,r=new Date(n).getTime()-Date.now();return dr=t,await jo(Wu,t,r-1e3),{accessToken:e,accessTokenExpiresAt:t.accessTokenExpiresAt}}h();var Eh=[["auto","auto"],["zh-CN","zh"],["en","en"],["yue","yue"],["wyw","wyw"],["ja","jp"],["ko","kor"],["fr","fra"],["es","spa"],["th","th"],["ar","ara"],["ru","ru"],["pt","pt"],["de","de"],["it","it"],["el","el"],["nl","nl"],["pl","pl"],["bg","bul"],["et","est"],["da","dan"],["fi","fin"],["cs","cs"],["ro","rom"],["sl","slo"],["sv","swe"],["hu","hu"],["zh-TW","cht"],["vi","vie"]],o4=new Map(Eh),_x=new Map(Eh.map(([e,t])=>[t,e])),u4=class extends xe{static langMap=o4;endpoint="https://api.fanyi.baidu.com/api/trans/vip/translate";appid="";key="";isSupportList=!1;maxTextGroupLength=20;constructor(t,n,a){if(super(t,n,a),!t||!t.appid||!t.key)throw new Error("appid and key are required");this.appid=t.appid?.trim(),this.key=t.key?.trim()}getDefaultRateLimit(){return{limit:1,interval:1550}}async translate(t){let n=Date.now().toString(),{endpoint:a}=this,{appid:r,key:o}=this,{text:u,from:i,to:s}=t,c=new URLSearchParams({from:o4.get(i)||"auto",to:o4.get(s)||s,q:u,salt:n,appid:r,sign:La(r+u+n+o)}),l=new URL(a);l.search=c.toString();let g=await se({url:l.toString()});if(g.error_code)throw new xt("API_SERVER_ERROR",g.error_msg);let{trans_result:p,from:f}=g,m=p.map(({dst:v})=>v);return{from:_x.get(f)||f,to:s,text:m.join(` +`)}}},Ch=u4;h();h();var gr=class extends xe{langMap;requestBaseConfig;apiServiceConfig;constructor(t,n,a){super(t,n,a),this.apiServiceConfig=this.serviceConfig,this.isSupportList=this.apiServiceConfig.isSupportList,this.langMap=new Map(this.apiServiceConfig.langs),this.requestBaseConfig=this.handleBaseApiServiceConfig(this.apiServiceConfig)}async translate(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let o=await this.checkLang(a,n);if(!o)return{text:n,from:a,to:r};a=o;let u=this.handleRequest(n,a,r),i=await bi(u);return{text:this.handleResponseText(i),from:a,to:r}}async translateList(t){if(!Object.keys(this.apiServiceConfig).length)throw"serivce id not found config";let{text:n,from:a,to:r}=t;if(!this.langMap.has(r))throw new Error(`Unsupported language: ${r}`);r=this.langMap.get(r);let o=await this.checkLang(a,n.join(" "));if(!o)return{text:n,from:a,to:r};a=o;let u=this.handleRequest(n,a,r),i=await bi(u);return{text:this.handleResponseText(i),from:a,to:r}}handleBaseApiServiceConfig(t){let n=t.request.url,a=t.request.headers||{};return a["content-type"]||(a["content-type"]="application/json"),{url:n,retry:t.request.retry||2,method:t.request.method||"POST",headers:a,body:JSON.stringify(t.request.body)}}async checkLang(t,n){if(t=="auto"){if(this.langMap.has("auto"))return"auto";t=await this.detectLanguageRemotely(n.slice(0,this.apiServiceConfig.checkLangLenth||10))}return this.langMap.has(t)?this.langMap.get(t):null}handleRequest(t,n,a){let r={...this.requestBaseConfig},o=r?.body||"",u=this.apiServiceConfig.keywords||{};r.body=s(o);let i=r.headers||{};return Object.keys(i).forEach(c=>{i[c]=s(i[c])}),r.headers=i,r.url=s(r.url||""),r;function s(c){return c.replaceAll('"{text}"',()=>Array.isArray(t)?JSON.stringify(t):`"${t}"`).replaceAll("{from}",n).replaceAll("{to}",a).replaceAll(/{([a-z:_]+)}/gi,(g,p)=>{let[f,m]=p.split(":"),y=u[f];return m==="random"?Bx(y.split(",")):y})}}handleResponseText(t){let n=this.apiServiceConfig.response,a=t,r=n.text.split(".");for(let o of r){if(Array.isArray(a))return a=a.map(u=>u[o]),a;a=a[o]}return a}detectLanguageRemotely(t){return cr.detectLanguageRemotelyByTransmart(t)}};function Bx(e){let t=Math.floor(Math.random()*e.length);return e[t]}var i4=class extends gr{constructor(t,n,a){if(!t?.token)throw new Error("token are required");super({...t,isSupportList:!0,langs:[["zh-CN","zh"],["en","en"],["ja","ja"]],keywords:{token:t.token?.trim()},request:{headers:{"content-type":"application/json","x-authorization":"token {token:random}"},url:"https://api.interpreter.caiyunai.com/v1/translator",retry:2,body:{source:"{text}",trans_type:"{from}2{to}"}},response:{text:"target"}},n,a)}},vh=i4;h();var Rx=[["auto","auto"],["zh-CN","zh"],["en","en"],["ja","ja"]],Ss=new Map(Rx),s4=class extends xe{static langMap=Ss;token="ssdj273ksdiwi923bsd9";constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translateList(t){let{text:n,from:a,to:r}=t;if(!Ss.get(r))throw new Error(`Unsupported language: ${r}`);if(a==="auto")throw new Error("Unsupported language: auto");let u=n;return{text:(await se({retry:2,url:"https://api.interpreter.caiyunai.com/v1/translator",headers:{"content-type":"application/json","x-authorization":"token "+this.token},method:"POST",body:JSON.stringify({source:u,trans_type:`${Ss.get(a)||"auto"}2${Ss.get(r)}`})})).target,from:a,to:r}}},wh=s4;h();var kh=[["auto","auto"],["en","en"],["ru","ru"],["pt","pt"],["es","es"],["zh-CN","zh-CHS"],["ja","ja"],["ko","ko"],["fr","fr"],["ar","ar"],["id","id"],["vi","vi"],["it","it"]],l4=new Map(kh),Ix=new Map(kh.map(([e,t])=>[t,e]));function Ox(e){let t=e.length;return t<=20?e:e.substring(0,10)+t+e.substring(t-10,t)}var c4=class extends xe{static langMap=l4;isSupportList=!1;appId="";appSecret="";throttleLimit=5;domain="general";vocabId="";constructor(t,n,a){if(super(t,n,a),!t||!t.appId||!t.appSecret)throw new Error("appId and appSecret are required");this.appId=t.appId?.trim(),this.appSecret=t.appSecret?.trim(),t.domain&&(this.domain=t.domain),t&&t.vocabId&&(this.vocabId=t.vocabId)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,o=Nx(32),u=Math.round(new Date().getTime()/1e3),i=this.appId+Ox(n)+o+u+this.appSecret,s=await In(i),c={q:n,appKey:this.appId,salt:o.toString(),from:l4.get(a)||"auto",to:l4.get(r)||r,sign:s,signType:"v3",curtime:u.toString()};this.domain&&this.domain!=="general"&&(c.domain=this.domain),this.vocabId&&(c.vocabId=this.vocabId);let l=new URLSearchParams(c),p=await se({url:"https://openapi.youdao.com/api",method:"POST",body:l.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded"}});if(!p.translation)throw new Error(JSON.stringify(p));let f=p.l,[m,y]=f.split("2");return{text:p.translation.join(` +`),from:Ix.get(m),to:r}}};function Nx(e){let t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length,r=0;for(;r[t,e]));var g4=class extends xe{static langMap=d4;isSupportList=!1;appId="";appSecret="";maxTextLength=800;constructor(t,n,a){super(t,n,a)}getDefaultRateLimit(){return{limit:5,interval:1050}}async translate(t){let{text:n,from:a,to:r}=t,o={q:n,from:d4.get(a)||"auto",to:d4.get(r)||r},u=new URLSearchParams(o),i=await se({url:"https://aidemo.youdao.com/trans",method:"POST",body:u.toString(),headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"}});if(i&&i.translation)return{text:i.translation.join(` +`),from:a,to:r};throw new Error("Youdao translation failed: "+JSON.stringify(i))}},Dh=g4;h();var fu=class extends gr{constructor(t,n,a){super({...t,isSupportList:!0,langs:(t.langs||"zh-CN,en").split(",").map(r=>[r,r]),limitPerSecond:t.limitPerSecond||5,maxTextLengthPerRequest:t.maxTextLengthPerRequest||1200,maxTextGroupLengthPerRequest:t.maxTextGroupLengthPerRequest||1,placeholderDelimiters:t.placeholderDelimiters||Ga,request:{url:t.url,retry:2,body:{text_list:"{text}",source_lang:"{from}",target_lang:"{to}"}},response:{text:"translations.text"}},n,a)}};var Ux={mock:uo,mock2:uo,custom:fu,google:lr,transmart:cr,deepl:Xf,volc:lh,volcAlpha:gu,bing:pu,tencent:ou,tenAlpha:uu,baidu:Ch,caiyun:vh,cai:wh,openl:Es,youdao:Sh,you:Dh,d:oo,dpro:oo,deeplx:mu,niu:eh,azure:th,openai:ah,chatgpt:lu,papago:nh,aliyun:du},da={};Object.keys(Mn).forEach(e=>{da[e]={...Mn[e],class:Ux[e]}});function Zr(e,t){let n=sn;if(da[e]&&da[e].class&&da[e].class.langMap&&da[e].class.langMap.size>0){let a=da[e].class.langMap,r=n.filter(o=>a.get(o));return r.includes(t)||r.unshift("placeholder"),r}else return sn}function Lh(e,t,n){let a=da[t],r=n.config.translationServices[t]||{},o=r.provider||"",u=!0,i=[...a.allProps||[]],s=a.providers||[],c=[],l=[];if(i.length>0){i.forEach((p,f)=>{let m=p;if(s.length>0){if(p.providers&&p.providers.length>0&&!p.providers.includes(o))return;p.type=="select"&&(m={...p},m.options=p.options?.filter(y=>y.providers?.includes(o)))}p.optional?l.push(m):c.push(m)});let g=l.concat(c).filter(p=>p.required);if(g.length>0){for(let p of g)if(!r[p.name]){u=!1;break}}}return{...a,id:t,selected:n[e]===t,ok:u,currentProvider:o,providers:s,config:r,props:a.props||[],allProps:i,explicitProps:c||[],optionalProps:l||[]}}async function la(e,t){if(!e.text)return e;let n=await Ia({sentences:[e]},t);if(n.sentences.length>0)return{...e,...n.sentences[0]};throw new xt("translateFailed","translate failed")}async function Of(e,t){for(let n of e)try{return await la({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:n}),n}catch{continue}return null}async function Pc(e){let{config:t,translationService:n}=e,a=t.translationGeneralConfig,r=t.translationServices,o=n,u=r[o]||{},i=Xt(e.user),s=new da[o].class(u,a,{translationService:o,userToken:e.user?.token,isPro:i}),c=s.getDefaultRateLimit();c&&(u&&!u.limit&&(u.limit=c.limit),u&&!u.interval&&(u.interval=c.interval)),o==="deepl"&&u&&u.provider==="pro"&&(u.limitForImmersiveDeepl?u.limit=u.limitForImmersiveDeepl:c&&(u.limit=c.limit)),await d3(o,u),await s.init()}async function Ia(e,t,n){if(!e.sentences.length)return{...e};let{config:a,translationService:r,state:o}=t,u=a.translationGeneralConfig,i=a.translationServices,s=r,c=i[s]||{};s==="openai"&&(e.sentences=e.sentences.map(S=>({...S,from:"auto"})));let l=[],g={sentences:Array(e.sentences.length)},p=e.sentences.length,f=-1;if(o.cache)for(let S of e.sentences){f++;let A=s;s==="openl"&&(A=s+"-"+c.codename||Es.DEFAULT_CODENAME);let N=null;try{N=await Bu(Nf({originalText:S.text,from:S.from,to:S.to,service:A}),200)}catch(_){j.warn("query cache DB error, but it's ok",_)}if(N){let _={...S,text:N.translatedText};g.sentences[f]=_,n&&n(null,_,S)}else l.push(S)}else l.push(...e.sentences);let m=l.length;if(p-m>0&&j.debug(`use ${p-m} sentences from cache`),!l.length)return g;let y,v=Xt(t.user);try{y=new da[s].class(c,u,{translationService:s,userToken:t.user?.token,isPro:v}),await y.init()}catch(S){if(n)for(let A of l)n(S,null,A);throw S}let b=await y.multipleTranslate({sentences:l},c,(S,A,N)=>{if(n&&n(S,A,N),!S&&A&&!s.startsWith("mock")&&o.cache){let _=s;s==="openl"&&(_=s+"-"+c.codename||Es.DEFAULT_CODENAME),o.cache&&Bu(Uf({translatedText:A.text,from:N.from,to:N.to,detectedFrom:A.from,key:La(N.text),service:_}),3e3).catch(x=>{j.warn("set cache DB error",x)})}});for(let S of b.sentences){let A=g.sentences.findIndex(N=>!N);if(A===-1)throw new xt("translateFailed","can not match the result");g.sentences[A]=S}return g}h();function Pe(e){return d("div",{class:"nav-left",children:[d("div",{class:"title",children:e.title}),d("div",{class:"description",children:e.description})]})}h();h();function mr(e){let{t}=ue(),n={};e.width&&(n={width:`${e.width}px`});let[a,r]=$(e.value),{field:o,onFinish:u}=e,i=o.name;o.label&&(i=o.label),o.labelKey&&(i=t(o.labelKey));let s={};return o.descriptionLink1&&(s[1]=o.descriptionLink1),d("div",{class:"mt-3",children:[d("label",{for:e.field.name,class:"mb-[var(--spacing)]",children:[i,"\uFF1A"]}),e.field.type==="textarea"?d(Fe,{children:[d("textarea",{style:n,autoComplete:"off",required:e.field.required,placeholder:e.field.placeholder||e.field.name,class:"input",rows:e.rows,value:Array.isArray(a)?a.join(","):a,type:e.type,onInput:c=>{let l=c.target.value,g=Array.isArray(a)?l.split(","):l;r(g),e.onChange(g)},onChange:()=>{u&&u()}}),e.field.descriptionKey?d("small",{dangerouslySetInnerHTML:{__html:t(e.field.descriptionKey,s)}}):null]}):d(Fe,{children:[d("input",{style:n,required:e.field.required,placeholder:e.field.placeholder||e.field.name,value:a,type:e.type,disabled:e.field.disabled||!1,name:e.field.name,autoComplete:"off",onInput:c=>{r(c.target.value),e.onChange(c.target.value)},onChange:()=>{(e.type==="text"||e.type==="password")&&u&&u()}}),e.field.descriptionKey?d("small",{dangerouslySetInnerHTML:{__html:t(e.field.descriptionKey,s)}}):null]})]})}function lo(e){let{t}=ue(),[n,a]=$(!0),[r,o]=$(!1),{config:u,currentProvider:i,onFinish:s,field:c,onChange:l,value:g,isProUser:p}=e;g=g??(c.default||""),he(()=>{c.options&&(c.options.some(y=>y.value===g)||o(!0))},[]);let f=c.name;if(c.label&&(f=c.label),c.labelKey&&(f=t(c.labelKey)),c.type==="select")return d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[f,"\uFF1A"]}),d(Kl,{maxWidth:200,items:c.options.map(m=>({label:`${m.label?t(m.label):m.value}`,value:m.value,selected:g===m.value,onSelected:()=>{l(m.value)}})),onChange:l,isInput:r,value:g})]});if(c.type==="openai-model-select"){let m=[];return u.proOpenaiModels.includes(g)?m=u.proOpenaiModels:m=u.proOpenaiModels.concat(g),d("div",{class:"flex flex-col mt-5 mb-6",children:[d("label",{class:"text-16 mb-2",children:[f,"\uFF1A"]}),d(Kl,{maxWidth:250,items:m.map(y=>({label:y,value:y,selected:g===y,onSelected:()=>{l(y)}})),onChange:l,isInput:i!=="pro"?r:!1,value:g}),i!=="pro"&&d("label",{for:"customContent",class:"text-sm",onClick:()=>{o(!r)},children:[d("input",{type:"checkbox",id:"customContent",name:"customContent",checked:r}),t("customContent")]})]})}else{if(c.type==="text")return d("div",{children:d(mr,{field:c,value:g,type:c.type,onChange:l,onFinish:s})});if(c.type==="textarea")return d("div",{children:d(mr,{field:c,value:g,type:c.type,onChange:l,onFinish:s})});if(c.type==="jsonarea")return d("div",{children:d(mr,{field:{...c,type:"textarea"},value:g,rows:5,type:c.type,onChange:l,onFinish:s})});if(c.type==="number")return d("div",{children:d(mr,{field:c,value:g,type:c.type,width:196,onChange:l})});if(c.type==="password")return d("div",{children:[d(mr,{field:c,value:g,type:n?c.type:"text",onChange:l,onFinish:s}),d("label",{for:"translate",onClick:()=>{a(!n)},children:[d("input",{type:"checkbox",id:"translate",name:"translate"}),t("show password")]})]});if(c.type==="color"){let m=g,y="";return m||(m="#FFFFFF",y="#FFFFFF"),d("div",{children:d("label",{class:"flex items-center",for:c.name,children:[d("span",{class:"mr-2",children:c.label||c.name}),d("input",{type:"text",id:c.name,class:"border-color-text mr-2",placeholder:y||"",value:g,onInput:v=>{l(v.target.value)}}),d("input",{id:c.name,type:"color",name:c.name,value:m,onInput:v=>{l(v.target.value)}})]})})}else return null}}h();function As(e){let{t,lang:n}=ue();return d("details",{role:"list",class:"nav-right",children:[d("summary",{"aria-haspopup":"listbox",children:t("edit")}),d("ul",{role:"listbox",class:"option-list",children:e.options.map((a,r)=>{let o=Mt(a.value,n);return d("li",{children:d("label",{children:[d("input",{type:"checkbox",onChange:()=>{e.onToggleAlwaysLangs(!a.checked,a.value)},value:a.value,checked:a.checked}),o]})},"language-"+r)})})]})}h();function za(e){let{t}=ue(),[n,a]=$([]),[r,o]=$(!1);function u(){e.onDeleteUrl(n,e.type),a([]),o(!1)}return e.urls.length?d("div",{children:[e.urls.length>1?d("div",{style:"display:flex;flex-direction:row;align-items:center;padding: 0 24px;margin-bottom:12px;",children:[d("input",{type:"checkbox",id:"checkAll",checked:r,onChange:i=>{if(i.target.checked){let s=e.urls;a(s)}else a([]);o(i.target.checked)}}),d("label",{htmlFor:"checkAll",children:"\u5168\u9009"}),d("div",{style:"flex:1;"}),d("a",{style:{cursor:"pointer"},onClick:u,children:t("delete")})]}):null,d("div",{class:"url-list-item",children:e.urls.map((i,s)=>d("div",{className:"url-list",style:"padding:6px 24px;",children:d("div",{className:"url-left",style:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%"},children:[d("input",{type:"checkbox",checked:n.includes(i),style:"margin-right:12px;",onChange:c=>{c.target.checked?a([...n,i]):a(n.filter(l=>l!==i))}}),d("div",{className:"url-name height-tight",children:i}),d("div",{style:{flex:1}}),d("a",{style:{marginRight:"12px",cursor:"pointer"},onClick:c=>{e.onEditUrl(i,e.type,s)},children:t("edit")}),d("a",{style:{cursor:"pointer"},onClick:c=>{e.onDeleteUrl([i],e.type)},children:t("delete")})]})},"menu"+s))})]}):null}h();function Ha(e){let{t}=ue(),n=zn(null),{toggleModal:a}=e;return d("dialog",{id:"immersive-translate-overlay",onClick:o=>{o.target&&o.target.id==="immersive-translate-overlay"&&a(o)},open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:e.toggleModal}),d("div",{class:"add-text",children:t("add url")}),d("input",{placeholder:"URL",ref:n,value:e.urlValue}),d("blockquote",{children:d("p",{class:"text-sm",children:t("addUrlDescription")})}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"#cancel",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:e.toggleModal,children:t("cancel")})}),d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:o=>{if(o.preventDefault(),n.current&&n.current.value){if(e.onSubmitAddUrl){if(e.urlValue!==""){e.onSubmitAddUrl(n.current.value,e.index,e.type,"edit");return}e.onSubmitAddUrl(n.current.value,e.index,e.type);return}else if(e.onAddInterfaceUrl){if(e.urlValue!==""){e.onAddInterfaceUrl(n.current.value,"edit");return}e.onAddInterfaceUrl(n.current.value)}}},children:t("confirm")})})]})]})})}h();var Qe=yr([]);function Ds(e){let[t,n]=$(null);return he(()=>{Ge().then(a=>{n(a),j.debug("current config",a)})},[]),he(()=>{Ge().then(a=>{n(a)})},[e]),t}function Ls(e){let[t,n]=$(null);return he(()=>{e&&Lt({url:"http://localhost",config:e,state:{cache:!1}}).then(a=>n(a))},[e]),t}var Ph=l3();function Ms(){let e=ht(),[t,n,a,r,o]=e,u=Ds(t),i=Ls(u);return En(t,n),he(()=>()=>{Ue.unbind("esc")},[]),u?d(Qe.Provider,{value:e,children:[d(jx,{}),d($x,{config:u}),d(zx,{config:u}),d(hu,{config:u,ctx:i,serviceType:"translationService"}),d(Hx,{config:u,ctx:i}),d(qx,{config:u,ctx:i}),d(Wx,{config:u}),d(Kx,{config:u})]}):d("div",{children:"loading"})}function jx(){let[e,t,n,a,r]=Ye(Qe),{t:o}=ue(),u=i=>{i.preventDefault(),confirm(o("confirmResetConfig"))&&(r({...tr(),updatedAt:new Date().toISOString()}),Sa().catch(s=>{j.error("clean local config error",s)}),ka().catch(s=>{j.error("clean buildin config error",s)}),Ua().catch(s=>{j.error("clean cache error",s)}),ut(o("resetSuccess")),setTimeout(()=>{window.location.reload()},500))};return d("div",{class:"nav",children:[d("strong",{class:"text-lg",children:o("general")}),d("a",{class:"text-sm",href:"#",onClick:u,children:o("reset")})]})}function zx({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue();if(!e)return null;let i=c=>{n(l=>({...l,targetLanguage:c}))},s=Zr(e.translationService,e.targetLanguage);return d("div",{class:"nav",children:[d(Pe,{title:u("target"),description:u("translate other languages into specific language")}),d("select",{class:"select",onChange:c=>{c.preventDefault(),i(c.target.value)},children:s.filter(c=>c!=="auto").map((c,l)=>d("option",{value:c,selected:c===e?.targetLanguage,children:Mt(c,e?.interfaceLanguage)},"language"+l))})]})}function hu({config:e,ctx:t,serviceType:n}){let{t:a}=ue(),r=ot(),[o,u]=$(!1),[i,s]=$(""),[c,l]=$(""),[g,p]=$(null),[f,m]=$(null),[y,v,b,S,A]=Ye(Qe),N=T=>{v(w=>({...w,[n]:T}))},_=t&&Ei(t,n)||[],x=fa(()=>{if(e&&t){let{translationServices:T}=e,w=t[n],C=T?.[w];return C?{...C}:{}}return null},[e,t]),E=fa(()=>{if(e&&t){let T=t[n];if(Mn[T])return Lh(n,T,t)}return null},[e,t]);return he(()=>{Xe.get(ct,null).then(T=>{T?(p(T),m(Xt(T))):m(!1)}).catch(T=>{m(!1)})},[]),f===null?null:d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:a("service"),description:a("select translation service")}),d("select",{class:"select",onChange:T=>{T.preventDefault(),s(""),l(""),N(T.target.value)},children:_.map((T,w)=>d("option",{value:T.id,selected:T.id===t?.[n],children:`${a("translationServices."+T.id)}${T.ok?"":" "+(!f&&!r&&T.providers&&T.providers.length>0?a("needLoginAction"):a("needActionForOptions"))}`},"service-item="+w))})]}),x&&E&&d("div",{class:"text-right text-sm",children:[c&&d("span",{class:"verified text-green-500 mr-2",children:a("verified")}),i&&d("span",{class:"verified text-red-500 mr-2",children:i}),d("a",{"aria-busy":o,href:"#",class:"secondary",onClick:async T=>{T.preventDefault();try{s(""),l(""),u(!0),await qn(500);let w=E.class;w&&w.clearState&&await w.clearState(),await la({id:1e6,text:"Hello world",from:"en",to:"zh-CN",url:"https://google.com",fromByClient:"auto"},{...t,translationService:E.id}),l("verified")}catch(w){s(w.message)}finally{u(!1)}},children:a("verifyService")})]}),E?.providers?.length||E?.explicitProps?.length||E?.optionalProps?.length?d("article",{children:[E&&E.providers&&E.providers.length>0&&d("fieldset",{children:[d("legend",{class:"mb-4",children:a("chooseProviderLabel")}),E.providers.map((T,w)=>d(el,{isProUser:f,provider:T,currentProvider:E.currentProvider,onChange:C=>{C.preventDefault();let M=C.target.value;M&&v(D=>{let F=D.translationServices||{},U=F[E.id]||{};return{...D,translationServices:{...F,[E.id]:{...U,provider:M}}}})}}))]}),E?.titleKey?d("div",{class:"description pb-1",dangerouslySetInnerHTML:{__html:Ne.sanitize(a(E?.titleKey),{ALLOWED_ATTR:["href","target"]})}}):null,E?.docUrl&&(!E.providers||E.providers.length===0)?d("div",{children:[d("a",{target:"_blank",class:"pb-1 docUrl",href:E.homepage,children:a(`translationServices.${E.id}`)}),"\xA0",d("span",{class:"description pb-1",children:a("please refer to")}),"\xA0",d("a",{target:"_blank",class:"pb-1 docUrl",href:E.docUrl,children:a("KeyAndConfigurationTutorial")})]}):null,x&&e&&(E?.explicitProps||[]).map((T,w)=>d("div",{class:"mt-2",children:d(lo,{config:e,isProUser:f,currentProvider:E.currentProvider,field:T,value:x[T.name],onChange:C=>{v(I=>{let M=I.translationServices||{},D=M[E.id]||{};return{...I,translationServices:{...M,[E.id]:{...D,[T.name]:C}}}})},onFinish:()=>{ut(a("saved"))}},T.name+w)},"service-item-prop-"+T.name+w)),x&&e&&E&&E.optionalProps&&E.optionalProps.length>0&&d("details",{class:"pt-2 border-none",children:[d("summary",{style:{lineHeight:"1rem"},children:[a("moreOptions"),"\xA0\u{1F449}"]}),d("div",{children:E.optionalProps.map((T,w)=>{let C=x[T.name];return T.name==="apiUrl"&&E?.id==="openai"&&x?.APIKEY?.startsWith("immersiveopenai_")&&(T={...T,disabled:!0},C="https://openai-api.immersivetranslate.com/v1/chat/completions"),T.name=="placeholderDelimiters"&&(T.default=x.placeholderDelimiters||T.default),d("div",{class:"mt-2",children:d(lo,{config:e,field:T,value:C,onChange:I=>{v(M=>{let D=M.translationServices||{},F=D[E.id]||{};return{...M,translationServices:{...D,[E.id]:{...F,[T.name]:I}}}})},onFinish:()=>{ut(a("saved"))}},T.name+w)},"service-item-optional-prop-"+T.name+w)})}),d("a",{href:"#",class:"secondary",onClick:T=>{T.preventDefault(),v(w=>{let C=w.translationServices||{};return{...w,translationServices:{...C,[E.id]:{}}}}),setTimeout(()=>{window.location.reload()},100)},children:a("resetToDefaultSettings")})]})]}):null]})}function Hx({config:e,ctx:t}){let{t:n}=ue(),[a,r,o,u,i]=Ye(Qe),s=e?.translationLanguagePattern?.matches||[],{handleTranslationLanguagePatternSelected:c}=Fh(r),l=(p,f)=>{c(p?"matches":void 0,f)},g=fa(()=>!e||!t?[]:Ph.concat("").map(p=>({checked:e.translationLanguagePattern?.matches?.includes(p),value:p})),[e,t]);return d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:n("always languages"),description:n("always translate the following languages")}),d(As,{options:g,onToggleAlwaysLangs:l})]}),d("div",{class:"langs-list",children:s.map((p,f)=>d("div",{class:"lang-card",children:[d("div",{id:`${p}`,children:Mt(p,e?.interfaceLanguage)}),d("a",{href:"#close",class:"close",target:"_blank","aria-label":"Close","data-target":`${p}`,onClick:m=>{m.preventDefault(),l(!1,s[f])}})]},"lang-"+f))})]})}function qx({config:e,ctx:t}){let{t:n}=ue(),[a,r,o,u,i]=Ye(Qe),s=e?.translationLanguagePattern.excludeMatches||[],{handleTranslationLanguagePatternSelected:c}=Fh(r),l=(p,f)=>{c(p?"excludeMatches":void 0,f)},g=fa(()=>!e||!t?[]:Ph.map(p=>({checked:e?.translationLanguagePattern?.excludeMatches?.includes(p),value:p})),[e,t]);return d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:n("neverTranslateLanguagesLabel"),description:n("neverTranslateTheFollowingLanguagesDescription")}),d(As,{options:g,onToggleAlwaysLangs:l})]}),d("div",{class:"langs-list",children:s.map((p,f)=>d("div",{class:"lang-card",children:[d("div",{id:`${p}`,children:Mt(p,e?.interfaceLanguage)}),d("a",{href:"#close",class:"close",target:"_blank","aria-label":"Close","data-target":`${p}`,onClick:m=>{m.preventDefault(),l(!1,s[f])}})]},"never-lang-"+f))})]})}function Wx({config:e}){let{t}=ue(),[n,a,r,o,u]=Ye(Qe),[i,s]=$(""),[c,l]=$(0),[g,p]=$(!1);he(()=>{Ue("esc",()=>{p(!1)})},[]);let f=(v,b,S,A)=>{p(!g),a(N=>{let _=N.translationUrlPattern,x=[],E=[];_&&_.matches&&_.excludeMatches&&(x=_.matches,E=_.excludeMatches);let T=[...x],w=[...E];return A==="edit"&&(T[b]=v),T=bn(v,T),w=at(v,E),{...N,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...N.translationUrlPattern,matches:T,excludeMatches:w}}})},m=(v,b)=>{a(S=>{let A=S.translationUrlPattern,N=[];A&&A.matches&&(N=A.matches);let _=[...N];return v.forEach(x=>{_=at(x,_)}),{...S,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...S.translationUrlPattern,[b]:_}}})},y=(v,b,S)=>{p(!g),s(v),l(S)};return d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:t("always sites"),description:t("always translate the following sites")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:v=>{v.preventDefault(),p(!g)},children:t("add")})}),g?d(Ha,{toggleModal:v=>{v.preventDefault(),p(!g)},onSubmitAddUrl:f,urlValue:i,index:c}):null]}),d(za,{urls:e?.translationUrlPattern.matches||[],type:"matches",onDeleteUrl:m,onEditUrl:y})]})}function Kx({config:e}){let{t}=ue(),[n,a,r,o,u]=Ye(Qe),[i,s]=$(!1),[c,l]=$(""),[g,p]=$(0);he(()=>{Ue("esc",()=>{s(!1)})},[]);let f=()=>{s(!i)},m=(b,S,A,N)=>{f(),a(_=>{let x=_.translationUrlPattern,E=[],T=[];x&&x.matches&&x.excludeMatches&&(E=x.matches,T=x.excludeMatches);let w=[...E],C=[...T];return N==="edit"&&(C[S]=b),w=at(b,E),C=bn(b,C),{..._,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{..._.translationUrlPattern,matches:w,excludeMatches:C}}})},y=(b,S)=>{a(A=>{let N=A.translationUrlPattern,_=[];N&&N.excludeMatches&&(_=N.excludeMatches);let x=[..._];return b.forEach(E=>{x=at(E,x)}),{...A,isChangedAlwaysTranslatedUrls:!0,translationUrlPattern:{...A.translationUrlPattern,[S]:x}}})},v=(b,S,A)=>{s(!i),l(b),p(A)};return d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:t("never sites"),description:t("never translate the following sites")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:b=>{b.preventDefault(),f()},children:t("add")})}),i?d(Ha,{toggleModal:b=>{b.preventDefault(),f()},onSubmitAddUrl:m,type:"excludeMatches",urlValue:c,index:g}):null]}),d(za,{urls:e?.translationUrlPattern.excludeMatches||[],type:"excludeMatches",onDeleteUrl:y,onEditUrl:v})]})}function Fh(e){return{handleTranslationLanguagePatternSelected:dn((n,a)=>{if(!n){e(u=>{let i={...u.translationLanguagePattern};return{...u,translationLanguagePattern:{...u.translationLanguagePattern,matches:at(a,i.matches),excludeMatches:at(a,i.excludeMatches)}}});return}let r=n,o=r==="matches"?"excludeMatches":"matches";a&&e(u=>{let i={...u.translationLanguagePattern};return i[r]=bn(a,i[r]),i[o]=at(a,i[o]),{...u,translationLanguagePattern:{...u.translationLanguagePattern,...i}}})},[e])}}var m4=0,p4;async function _h(e){if(m4>60*10)return null;m4++,Xe.refresh(),await qn(300);let t=await Xe.get(ct,null);j.debug("loopCheckUser",m4,t),t?(clearTimeout(p4),e(t)):p4=setTimeout(_h.bind(null,e),1500)}function Mh(e){let{user:t}=e,n=ot(),a=t&&t.email==="test@immersivetranslate.com",{t:r}=ue();if(t&&t.subscription&&t.subscription.subscriptionStatus=="active"){let o=t,u=o.subscription,i=Jx(u.subscriptionTo),s=u.subscriptionType,c=s.startsWith("onetime_"),l=!c&&u.cancelAtPeriodEnd!="true",g="";return l?g=r("currentPlanDescriptionForContinuous",{plan:`${r(s)}`,endAt:i}):c?g=r("currentPlanDescriptionForOneTime",{plan:r(s),endAt:i,1:"https://immersivetranslate.com/accounts/upgrade?type=year",2:"https://immersivetranslate.com/accounts/upgrade?type=month"}):s==="yearly"||s==="year"?cm(o)?g=r("currentYearlyPlanDescriptionForAutoRenewCacelingWithRealPaiedUser",{plan:r(s+"ForOnce"),endAt:i,1:"https://immersivetranslate.com/billing"}):g=r("currentYearlyPlanDescriptionForAutoRenewCacelingWithAdmin",{plan:r(s+"ForOnce"),endAt:i,1:"https://immersivetranslate.com/accounts/upgrade?type=year"}):g=r("currentPlanDescriptionForAutoRenewCaceling",{plan:r(s+"ForOnce"),endAt:i}),d("span",{class:"info-subtitle",dangerouslySetInnerHTML:{__html:g}})}else return d("span",{class:"info-subtitle",children:n||a?"":r("currentPlanDescriptionForFree")})}function $x({config:e}){let{t}=ue(),n=ot(),[a,r]=$(null),o=!!e.showSponsorOnSafari,[u,i,s,c,l]=Ye(Qe);he(()=>(Xe.get(ct,null).then(m=>{m&&(r(m),Gx(m.token).then(y=>{let v=y.data;v.token=m.token,Xe.set(ct,v),r(v)}).catch(y=>{Xe.remove(ct),r(null)}))}),()=>{clearTimeout(p4)}),[]);let g=dn(m=>{m&&m.preventDefault&&m.preventDefault(),a?.token&&Vx(a.token).finally(async()=>{await Xe.remove(ct),await qn(200),await Xe.refresh(),r(null)})},[a]),p=dn(async m=>{m&&m.preventDefault&&m.preventDefault(),await Xe.set(_o,!0),Yx(Yg),_h(y=>{Ji(y.token,u,i),r(y),f4?.close(),window.location.reload()})},[r]),f=a?.avatar||x3;return a?!a.subscription||a.subscription.subscriptionStatus!="active"?d("div",{children:[d("div",{class:"title",children:t("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("span",{class:"info-title",title:a.email,children:a.email}),d(Mh,{user:a})]}),d("div",{class:"ops",children:[d("a",{class:n&&o===!1?"!hidden":"",style:{display:"flex",flexDirection:"row",alignItems:"center",marginRight:"24px"},href:`${Va}?from=${n?"safari":"extension"}`,children:[t("openPremium"),d("img",{width:24,height:24,style:{width:"24px",height:"24px"},src:Qr})]}),d("div",{class:"",children:d("a",{href:`${Dr}?from=${n?"safari":"extension"}`,children:t("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:g,children:t("logout")})})]})]})]}):d("div",{class:"",children:[d("div",{class:"title",children:t("currentAccount")}),d("article",{class:"header nav",style:"padding:16px 16px",children:[d("div",{class:"info",style:"margin-left:0",children:[d("div",{className:"flex",children:[d("span",{class:"info-title info-primary",children:a.userName}),d("img",{width:24,height:24,style:{width:"24px",height:"24px",marginLeft:"4px"},src:Qr})]}),d(Mh,{user:a})]}),d("div",{class:"",children:d("a",{href:Dr,children:t("manageAccount")})}),d("div",{class:"",children:d("a",{href:"#",onClick:g,children:t("logout")})})]})]}):d("div",{class:"header nav",children:[d("img",{src:f}),d("div",{class:"info",children:d("span",{class:"info-subtitle",children:t("nologin")})}),d("a",{class:"py-4",href:"#",onClick:p,children:t(n?"loginForSafari":"login")})]})}var Bh=Bo;function Gx(e){return se({responseType:"json",url:Bh+"/v1/user",method:"get",headers:{token:e}})}function Vx(e){return se({responseType:"json",url:Bh+"/v1/user/logout",method:"delete",headers:{token:e}})}var f4=null;function Yx(e){let a=screen.width/2-230,r=screen.height/2-640/2;return f4=window.open(e,"loginWindow",`toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no,left=${a},top=${r},width=460,height=640,chrome=yes,centerscreen=yes`),f4}function Jx(e){let t=new Date(e),n=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),r=String(t.getDate()).padStart(2,"0");return`${n}-${a}-${r}`}h();var Gt={};ni.forEach(e=>{e.labelKey&&(Gt[e.key]=e.labelKey)});function h4(){let e=ht(),[t,n,a,r,o]=e,[u,i]=$(null),{t:s}=ue();if(he(()=>{Ge().then(l=>{Lt({config:l,url:globalThis.location.href}).then(g=>{i(g)})})},[t]),!u)return d("div",{children:"loading"});let c=u.config;return d(Qe.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:s("inputOptions")})}),d(Qx,{config:c}),d(Zx,{config:c}),d(Xx,{config:c}),d(hu,{config:c,ctx:u,serviceType:"inputTranslationService"}),d(eE,{config:c}),d(tE,{config:c}),d(aE,{config:c}),d(nE,{config:c})]})}function Qx({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue();return e?d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:u("enableInputTranslation"),description:e.enableInputTranslationWithoutTriggerKey?u("enableInputTranslationDescriptionForNoneKey",{inputTargetLanguage:Mt(e.inputTargetLanguage,e.interfaceLanguage),trailingKey:Gt[e.inputTrailingTriggerKey]?u(Gt[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes}):u("enableInputTranslationDescription",{inputTargetLanguage:Mt(e.inputTargetLanguage,e.interfaceLanguage),startingKey:Gt[e.inputStartingTriggerKey]?u(Gt[e.inputStartingTriggerKey]):e.inputStartingTriggerKey,trailingKey:Gt[e.inputTrailingTriggerKey]?u(Gt[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTrailingTriggerKeyRepeatTimes:e.inputTrailingTriggerKeyRepeatTimes})}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:i=>{let s=i.target.checked;n(c=>({...c,enableInputTranslation:!!s}))},checked:e.enableInputTranslation})})]}),d("details",{class:"mt-3",children:[d("summary",{children:[u("clickToSeeQuickDemo")," \u{1F447}\u{1F447}"]}),d("video",{controls:!0,src:"https://s.immersivetranslate.com/videos/immpersive-translate-input-translation-demo-202307044.mp4"})]})]}):null}function Zx({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue(),i=c=>{n(l=>({...l,inputTargetLanguage:c}))};if(!e)return null;let s=Zr(e.translationService,e.targetLanguage);return d("div",{class:"nav",children:[d(Pe,{title:u("inputTargetLanguage"),description:e.enableInputTranslationWithoutTriggerKey?u("inputTargetLanguageDescriptionForNoneKey"):u("inputTargetLanguageDescription",{startingKey:Gt[e.inputStartingTriggerKey]?u(Gt[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:c=>{c.preventDefault(),i(c.target.value)},children:s.filter(c=>c!=="auto").map((c,l)=>d("option",{value:c,selected:c===e.inputTargetLanguage,children:Mt(c,e.interfaceLanguage)},"language"+l))})]})}function Xx({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue();return e?d("div",{class:"nav",children:[d(Pe,{title:u("enableInputTranslationWithoutTriggerKeyTitle",{trailingKey:Gt[e.inputTrailingTriggerKey]?u(Gt[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey,inputTargetLanguage:Mt(e.inputTargetLanguage,e.interfaceLanguage)}),description:""}),d("label",{for:"enableInputTranslation",children:d("input",{type:"checkbox",id:"enableInputTranslation",name:"switch",role:"switch",onChange:i=>{let s=i.target.checked;n(c=>({...c,enableInputTranslationWithoutTriggerKey:!!s}))},checked:e.enableInputTranslationWithoutTriggerKey})})]}):null}function eE({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue(),i=s=>{n(c=>({...c,inputStartingTriggerKey:s}))};return e?d("div",{class:"nav",children:[d(Pe,{title:u("inputStartingTriggerKeyTitle"),description:e.inputStartingTriggerKey==="none"?u("inputStartingTriggerKeyDescriptionForNoneKey"):u("inputStartingTriggerKeyDescription",{startingKey:Gt[e.inputStartingTriggerKey]?u(Gt[e.inputStartingTriggerKey]):e.inputStartingTriggerKey})}),d("select",{class:"select",onChange:s=>{s.preventDefault(),i(s.target.value)},children:ni.filter(s=>s.skipForStarting!==!0).map((s,c)=>d("option",{value:s.key,selected:s.key===e.inputStartingTriggerKey,children:s.labelKey?u(s.labelKey):s.key},"startingkey-"+c))})]}):null}function tE({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue(),i=s=>{n(c=>({...c,inputTrailingTriggerKey:s}))};return e?d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:u("inputTrailingTriggerKeyTitle"),description:u("inputTrailingTriggerKeyDescription",{trailingKey:Gt[e.inputTrailingTriggerKey]?u(Gt[e.inputTrailingTriggerKey]):e.inputTrailingTriggerKey})}),d("select",{class:"select",onChange:s=>{s.preventDefault(),i(s.target.value)},children:ni.filter(s=>s.skipForTrailing!==!0).map((s,c)=>d("option",{value:s.key,selected:s.key===e.inputTrailingTriggerKey,children:s.labelKey?u(s.labelKey):s.key},"startingkey-"+c))})]}),d("blockquote",{class:"text-sm",dangerouslySetInnerHTML:{__html:u("inputHelperInfo",{1:"https://immersivetranslate.com/docs/input/"})}})]}):null}function nE({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue(),[i,s]=$(!1),c=b=>{s(!i)},[l,g]=$(0),[p,f]=$(""),m=(b,S,A,N)=>{c(A),n(_=>{let x=_.inputTranslationUrlPattern,E=[],T=[];x&&x.matches&&x.excludeMatches&&(E=x.matches,T=x.excludeMatches);let w=[...E],C=[...T];return N==="edit"&&(A==="matches"?w[S]=b:C[S]=b),A==="matches"?(w=bn(b,w),C=at(b,T)):(w=at(b,E),C=bn(b,C)),{..._,inputTranslationUrlPattern:{..._.inputTranslationUrlPattern,matches:w,excludeMatches:C}}})},y=(b,S)=>{n(A=>{let N=A.inputTranslationUrlPattern,_=[];S==="matches"?N&&N.matches&&(_=N.matches):N&&N.excludeMatches&&(_=N.excludeMatches);let x=[..._];return b.forEach(E=>{x=at(E,x)}),{...A,inputTranslationUrlPattern:{...A.inputTranslationUrlPattern,[S]:x}}})},v=(b,S,A)=>{c(S),f(b),g(A)};return e?d(Fe,{children:[d("div",{class:"nav",children:[d(Pe,{title:u("inputTranslationBlockUrlsTitle"),description:u("inputTranslationBlockUrlsDescription")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:b=>{b.preventDefault(),c("excludeMatches")},children:u("add")})}),i?d(Ha,{toggleModal:b=>{b.preventDefault(),c("excludeMatches")},onSubmitAddUrl:m,type:"excludeMatches",urlValue:p,index:l}):null]}),d(za,{urls:e.inputTranslationUrlPattern.excludeMatches,type:"excludeMatches",onDeleteUrl:y,onEditUrl:v})]}):null}function aE({config:e}){let[t,n,a,r,o]=Ye(Qe),{t:u}=ue();if(!e)return null;let i=()=>fn().any?e.inputTrailingMobileTriggerKeyTimeout:e.inputTrailingTriggerKeyTimeout,s=c=>{n(l=>fn().any?{...l,inputTrailingMobileTriggerKeyTimeout:c}:{...l,inputTrailingTriggerKeyTimeout:c})};return d("nav",{children:[d(Pe,{title:u("inputTrailingTriggerKeyTimeout"),description:u("inputTrailingTriggerKeyTimeoutDescription")}),d("div",{class:"option-input",children:d("input",{type:"number",value:i(),onChange:c=>{c.target&&s(Number(c.target.value))}})})]})}h();h();function b4(e){let{t}=ue(),{corfirmText:n,fingerCountToToggleTranslagePageWhenTouching:a,fingerCountToToggleTranslationMaskWhenTouching:r,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:o,onChange:u,onClose:i,shortcuts:s,mouseHoverHoldKey:c}=e,l={mouseHoverHoldKey:zn(null)},g=zn(null);for(let f=0;f{f.target&&f.target.id==="immersive-translate-overlay"&&i()};return he(()=>{},[]),d("dialog",{id:"immersive-translate-overlay",onClick:p,open:!0,children:d("article",{class:"add-modal",children:[d("a",{href:"#close","aria-label":"Close",class:"close","data-target":"modal-example",onClick:f=>{f.preventDefault(),i()}}),s.map((f,m)=>{let{name:y,description:v,shortcut:b}=f;return d("div",{class:"flex justify-between items-center",children:[d("label",{class:"mb-2 text-sm",for:y,children:[v,":"]}),d("input",{type:"text",class:"!w-36",ref:l[y],disabled:f.disabled,id:y,name:y,value:b})]},`key-${m}`)}),ua()&&d("div",{class:"flex justify-between items-center",children:[d("label",{for:"switch",class:"text-sm mb-2",children:t("mouseHoverHoldKey")}),d("input",{type:"text",class:"!w-36",placeholder:t("mouseHoverShortcutPlaceholder"),ref:l.mouseHoverHoldKey,id:"mouseHoverHoldKey",name:"mouseHoverHoldKey",value:c})]}),Or()&&d("div",{class:"flex justify-between items-center",children:[d("label",{for:"switch",class:"text-sm mb-2",children:t("toggleTranslatePageWhenThreeFingersOnTheScreen")}),d("select",{class:"select !w-36",ref:g,onChange:f=>{f.preventDefault();let m=f.target.value,y={fingerCountToToggleTranslagePageWhenTouching:parseInt(m)};u(y)},children:[0,2,3,4,5].map((f,m)=>d("option",{value:f,selected:f===a,children:`${t("fingers."+f)}`},"finger-"+m))})]}),Or()&&d("div",{class:"mt-2 flex justify-between items-center",children:[d("label",{for:"switch",class:"text-sm mb-2",children:t("fingerCountToToggleTranslagePageOnlyTranslationWhenTouching")}),d("select",{class:"select !w-36",onChange:f=>{f.preventDefault();let m=f.target.value,y={fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:parseInt(m)};u(y)},children:[0,2,3,4,5].map((f,m)=>d("option",{value:f,selected:f===o,children:`${t("fingers."+f)}`},"finger-"+m))})]}),Or()&&d("div",{class:"mt-2 flex justify-between items-center",children:[d("label",{for:"switch",class:"text-sm mb-2",children:t("toggleTranslationMaskWhenThreeFingersOnTheScreen")}),d("select",{class:"select !w-36",onChange:f=>{f.preventDefault();let m=f.target.value,y={fingerCountToToggleTranslationMaskWhenTouching:parseInt(m)};u(y)},children:[0,2,3,4,5].map((f,m)=>d("option",{value:f,selected:f===r,children:`${t("fingers."+f)}`},"finger-"+m))})]}),e.note&&d(e.note,{}),d("div",{class:"flex",children:[d("div",{class:"footer-button",children:d("a",{href:"#cancel",role:"button",class:"full-button secondary margin-right","data-target":"modal-example",onClick:f=>{f.preventDefault(),i()},children:t("cancel")})}),n&&d("div",{class:"footer-button",children:d("a",{href:"#confirm",role:"button",class:"full-button margin-left","data-target":"modal-example",onClick:f=>{f.preventDefault();let m=[];for(let v=0;v{let t=e.translationTheme;return!e.translationThemePatterns[t]||!e.translationThemePatterns[t].matches?[]:[...e.translationThemePatterns[t].matches]};function y4(e){let t=[];return Fo[e]&&(t=t.concat(Fo[e])),t.push({name:"textColor",type:"color",required:!1}),t.push({name:"zoom",type:"number",default:100,required:!1}),t}function T4(){let e=ht(),[t,n,a,r,o]=e;En(t,n);let[u,i]=$(!1),[s,c]=$(!1),[l,g]=$(0),[p,f]=$(null),{t:m,setLang:y}=ue(),[v,b]=$("");he(()=>(Ue("esc",()=>{i(!1),c(!1)}),()=>{Ue.unbind("esc")}),[]),he(()=>{Ge().then(T=>{Lt({config:T,url:globalThis.location.href}).then(w=>{f(w)})})},[t]);let S=T=>{n(w=>{let C={matches:[],excludeMatches:[]};return w&&w.translationThemePatterns&&w.translationThemePatterns[T]&&(C=w.translationThemePatterns[T]),Br(document,T,C),{...w,translationTheme:T}})},A=T=>{n(w=>({...w,interfaceLanguage:T}))},N=(T,w,C)=>{i(!u),n(I=>{let M=I.translationThemePatterns||{},D=M[w]||{},F=D.matches||[],U=[...F];return C==="edit"&&(U=at(v,F)),U=bn(T,U),{...I,translationThemePatterns:{...M,[w]:{...D,matches:U}}}})},_=(T,w)=>{n(C=>{let I=C.translationThemePatterns||{},M=I[w]||{},F=[...M.matches||[]];return T.forEach(U=>{F=at(U,F)}),{...C,translationThemePatterns:{...I,[w]:{...M,matches:F}}}})},x=(T,w,C)=>{i(!u),b(T),g(C)};if(!p)return d("div",{children:"loading"});let E=p.config;return d(Qe.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:m("interface")})}),d("div",{class:"nav",children:[d(Pe,{title:m("interface language")}),d("select",{class:"select",onChange:T=>{y(T.target.value),A(T.target.value),me()||setTimeout(()=>{Ps()},200)},children:oE.map((T,w)=>d("option",{value:T,selected:T===E.interfaceLanguage,children:Mt(T,E.interfaceLanguage,!0)},"locale"+w))})]}),d("div",{class:"nav",children:[d(Pe,{title:m("keyboard shortcuts")}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:T=>{T.preventDefault(),c(!s)},children:m("modify")})})]}),d("div",{class:"nav",children:[d(Pe,{title:m("enableLineBreak"),description:m("enableLineBreakDescription")}),d("label",{for:"switch",children:d("input",{type:"checkbox",onChange:T=>{let w=T.target.checked;n(C=>{let I=C.generalRule||{};return{...C,generalRule:{...I,lineBreakMaxTextCount:w?280:0}}})},checked:p.rule.lineBreakMaxTextCount>0,id:"switch",name:"switch",role:"switch"})})]}),p.rule.lineBreakMaxTextCount>0&&d("div",{class:"nav",children:[d(Pe,{title:m("lineBreakMaxTextCount")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:T=>{let w=T.target.value;n(C=>{let I=C.generalRule||{};return{...C,generalRule:{...I,lineBreakMaxTextCount:parseInt(w)}}})},name:"count",value:p.rule.lineBreakMaxTextCount,placeholder:"Text Length",required:!0})})]}),(fn().any||me())&&d("div",{class:"nav",children:[d(Pe,{title:m("enableUserscriptPagePopup"),description:m("enableUserscriptPagePopupDescription",{touch:m("fingers."+E.generalRule.fingerCountToToggleTranslagePageWhenTouching)})}),d("label",{for:"switch",children:d("input",{type:"checkbox",onChange:T=>{let w=T.target.checked;n(C=>{let I=C.generalRule||{};return{...C,generalRule:{...I,isShowUserscriptPagePopup:w}}})},checked:p.rule.isShowUserscriptPagePopup,id:"switch",name:"switch",role:"switch"})})]}),d("div",{class:"nav",children:[d(Pe,{title:m("translation display"),description:m("select diplay style")}),d("select",{class:"select",onChange:T=>{S(T.target.value)},children:j0.map((T,w)=>d("option",{value:T,selected:T===E.translationTheme,children:m(`translationTheme.${T}`)},"theme"+w))})]}),d("div",{class:"pt-2 text-sm",children:d("p",{children:[Vg,d("div",{class:"pt-2"}),d("font",{class:qr(E.translationTheme,!1,[],!1).join(" "),children:d("font",{class:Wr(E.translationTheme).join(" "),children:z0})}),E.translationTheme&&y4(E.translationTheme).length>0?d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:m("customTheme")}),d("div",{class:"flex flex-col items-end",children:[y4(E.translationTheme).map((T,w)=>{T.label=m(`customThemeLabel.${T.name}`);let C=E.translationThemePatterns||{},I=E.translationTheme,M=C[I]||{},D=`theme-${I}-${T.name}`,F=Rh(D)||void 0,U=M[T.name]||F;return d(lo,{config:E,field:T,value:U,onChange:z=>{n(B=>{let k=B.translationThemePatterns||{},O={...k[E.translationTheme]||{},[T.name]:z},K={...B,translationThemePatterns:{...k,[E.translationTheme]:O}};return Br(document,E.translationTheme,O),K})}},"theme-prop"+w)}),d("a",{href:"#",class:"text-sm secondary",onClick:T=>{T.preventDefault(),n(w=>{let C=w.translationThemePatterns||{},I={...C[E.translationTheme]};y4(E.translationTheme).forEach(D=>{delete I[D.name]});let M={...w,translationThemePatterns:{...C,[E.translationTheme]:I}};return Br(document,E.translationTheme,{matches:[],excludeMatches:[]},!0),M})},children:m("resetToDefaultColor")})]})]}):null,d("details",{class:"pt-2 border-none",children:[d("summary",{class:"text-sm",style:{textAlign:"right",lineHeight:"1rem"},children:m("previewAllThemes")}),j0.map((T,w)=>d("div",{class:"pt-2",children:d("label",{children:[d("div",{class:"flex justify-between",children:d("div",{children:[d("input",{type:"radio",name:"theme",value:T,checked:T===E.translationTheme,onChange:C=>{S(C.target.value)}}),m(`translationTheme.${T}`)]})}),d("p",{children:d("font",{class:qr(T,!1,[],!1).join(" "),children:d("font",{class:Wr(T).join(" "),children:z0})})})]})},"theme-index-"+w))]})]})}),d("div",{class:"nav",children:[d(Pe,{title:"",description:m("useAboveStyleForTheseSites",{theme:m(`translationTheme.${E.translationTheme}`)})}),d("div",{class:"nav-right",children:d("a",{href:"#",role:"button",class:"add-button secondary outline",onClick:T=>{T.preventDefault(),i(!u)},children:m("add")})})]}),u?d(Ha,{toggleModal:T=>{T.preventDefault(),i(!u)},onAddInterfaceUrl:(T,w)=>{N(T,E.translationTheme,w)},urlValue:v,index:l}):null,d(za,{urls:uE(E),type:"matches",onDeleteUrl:T=>{_(T,E.translationTheme)},onEditUrl:x}),d(x4,{config:E,visible:s,onClose:()=>c(!1)})]})}function x4({config:e,visible:t,onClose:n}){let{t:a}=ue(),[r,o,u,i,s]=Ye(Qe);if(!t||!e)return null;let c=a("confirm"),l=()=>d("blockquote",{class:"text-sm",children:[a("browserShortcutsSucks")," ",d("kbd",{children:"Ctrl+A"}),"\xA0",d("kbd",{children:"Alt+B"}),"\xA0",d("kbd",{children:"Command+C"}),"\xA0 ",d("kbd",{children:"Ctrl+Shift+D"})," "]});return me()||(Ja()?(l=()=>d("blockquote",{class:"text-sm",children:[a("browserShortcutsNoteForFirefox")," ",d("a",{target:"_blank",href:"https://support.mozilla.org/zh-CN/kb/%E7%AE%A1%E7%90%86Firefox%E7%9A%84%E6%89%A9%E5%B1%95%E5%BF%AB%E6%8D%B7%E6%96%B9%E5%BC%8F",children:[a("help"),"?"]}),d("br",{}),d("br",{}),a("browserShortcutsSucks")," ",d("kbd",{children:"Ctrl+A"}),"\xA0",d("kbd",{children:"Alt+B"}),"\xA0",d("kbd",{children:"Cmd+C"}),"\xA0 ",d("kbd",{children:"Ctrl"}),"\xA0",d("kbd",{children:"D"})," "]}),c=a("confirm")):(l=()=>d("blockquote",{class:"text-sm",children:[a("browserShortcutsNoteForChrome"),"\xA0",d("a",{href:"#",onClick:g=>{g.preventDefault(),X.tabs.create({url:"chrome://extensions/shortcuts"})},children:a("goSettings")})]}),c=a("confirm"))),d(b4,{note:l,corfirmText:c,fingerCountToToggleTranslagePageWhenTouching:e.generalRule.fingerCountToToggleTranslagePageWhenTouching,fingerCountToToggleTranslationMaskWhenTouching:e.generalRule.fingerCountToToggleTranslationMaskWhenTouching,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:e.generalRule.fingerCountToToggleTranslagePageOnlyTranslationWhenTouching,mouseHoverHoldKey:e.generalRule.mouseHoverHoldKey,shortcuts:$g.map(g=>({name:g,shortcut:e.shortcuts[g],description:a(`browser.${g}`),disabled:!me()})),onChange:g=>{if(g){let{shortcuts:p,fingerCountToToggleTranslagePageWhenTouching:f,fingerCountToToggleTranslationMaskWhenTouching:m,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:y,mouseHoverHoldKey:v}=g;me()?o(b=>{p=p||[];let S=p.reduce((N,_)=>(N[_.name]=_.shortcut,N),{...b.shortcuts}),A={...b,shortcuts:S};return f!==void 0&&(A.generalRule={...A.generalRule,fingerCountToToggleTranslagePageWhenTouching:f}),m!==void 0&&(A.generalRule={...A.generalRule,fingerCountToToggleTranslationMaskWhenTouching:m}),y!==void 0&&(A.generalRule={...A.generalRule,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:y}),v&&(A.generalRule={...A.generalRule,mouseHoverHoldKey:v}),A}):(f!==void 0||m!==void 0||v||y!==void 0)&&o(b=>{let S={...b};return f!==void 0&&(S.generalRule={...S.generalRule,fingerCountToToggleTranslagePageWhenTouching:f}),m!==void 0&&(S.generalRule={...S.generalRule,fingerCountToToggleTranslationMaskWhenTouching:m}),y!==void 0&&(S.generalRule={...S.generalRule,fingerCountToToggleTranslagePageOnlyTranslationWhenTouching:y}),v&&(S.generalRule={...S.generalRule,mouseHoverHoldKey:v}),S}),g&&g.isClose&&n()}else n(),X.tabs.create({url:"chrome://extensions/shortcuts"})},onClose:n})}h();function E4(){let[e,t,n,a]=ht();En(e,t);let[r,o]=$(null),{t:u}=ue(),[i,s]=$({}),[c,l]=$({});he(()=>{Ge().then(x=>{o(x)}),X.storage.sync.get(null).then(x=>{s(x),X.storage.local.get(null).then(E=>{l(E)})})},[e]);let g=x=>{t(E=>({...E,debug:x}))},p=x=>{t(E=>({...E,beta:x}))},f=x=>{t(()=>({...x}))},m=x=>{try{let E=x.target.value,T={...e};if(!E)delete T.rules;else{let w=JSON.parse(E);if(!Array.isArray(w)){Bt("Invalid rules, rules must be an array");return}T.rules=w}f(T),ut(u("saved"))}catch(E){Bt(`Invalid JSON ${E.message}`)}},y=x=>{let E={...e};E.generalRule||(E.generalRule={}),E.generalRule={...E.generalRule,injectedCss:x.target.value||""},f(E),ut(u("saved"))},v=x=>{try{let E=JSON.parse(x.target.value);f(E),ut(u("saved"))}catch(E){Bt(`Invalid JSON ${E.message}`)}},b=x=>{x.preventDefault()},S=x=>{x.preventDefault(),confirm(u("confirmResetConfig"))&&(f(tr()),Sa().catch(E=>{j.error("clean local config error",E)}),ka().catch(E=>{j.error("clean buildin config error",E)}),Ua().catch(E=>{j.error("clean cache error",E)}),ut(u("resetSuccess")))},A=x=>{if(x.preventDefault(),confirm(u("confirmResetConfig"))){let E={...e};delete E.rules,f(E),ut(u("resetThisSuccess"))}},N=x=>{if(x.preventDefault(),confirm(u("confirmResetConfig"))){let E={...e};E.generalRule||(E.generalRule={}),E.generalRule={...E.generalRule},delete E.generalRule.injectedCss,f(E),ut(u("resetThisSuccess"))}},_=`[{ "matches": "www.google.com", "selectors": [".title"] }, { "matches": "*.twitter.com", "selectors": [".text"], "excludeSelectors": ["footer"] -}]`;return!r||!e?d("div",{children:"loading"}):d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("developer")})}),d("div",{dangerouslySetInnerHTML:{__html:u("developerDescription",{1:"https://immersivetranslate.com/docs/advanced/"})},class:"secondary text-xs text-gray-500 mb-4"}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"cache",name:"cache",role:"switch",onChange:()=>{m(!r.debug)},checked:r.debug}),u("toggleDebug")]})}),d("fieldset",{class:"mt-2",children:[d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"beta",name:"beta",role:"switch",onChange:()=>{p(!r.beta)},checked:!!r.beta}),u("toggleBeta")]}),d("small",{class:"text-gray-500",dangerouslySetInnerHTML:{__html:u("betaDescription",{1:ti})}})]}),d("details",{class:"py-2",children:[d("summary",{children:"Edit User Rules"}),d("textarea",{class:"user-rule",rows:10,onChange:g,placeholder:_,spellcheck:!1,value:e.rules?JSON.stringify(e.rules||[],null,2):""}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:b,role:"button",children:u("save")}),d("a",{target:"_blank",class:"secondary text-sm mr-3",href:"https://immersivetranslate.com/docs/advanced/",children:[u("help"),"?"]}),d("a",{href:"#",onClick:A,class:"text-sm secondary mr-2",children:u("reset")})]})]}),d("details",{class:"py-2",children:[d("summary",{children:"Edit Injected CSS"}),d("textarea",{rows:10,onChange:y,spellcheck:!1,placeholder:".title { color: red }",value:e.generalRule&&e.generalRule.injectedCss?e.generalRule.injectedCss:""}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:b,role:"button",children:u("save")}),d("a",{class:"secondary text-sm mr-3",target:"_blank",href:"https://immersivetranslate.com/docs/advanced/",children:[u("help"),"?"]}),d("a",{href:"#",onClick:N,class:"text-sm secondary mr-2",children:u("reset")})]})]}),d("details",{class:"py-2",children:[d("summary",{children:"Edit Full User Config"}),d("textarea",{rows:10,onChange:v,spellcheck:!1,value:JSON.stringify(e,null,2)}),d("div",{children:[d("a",{href:"#",class:"mr-3 !py-2",onClick:b,role:"button",children:u("save")}),d("a",{class:"secondary text-sm mr-3",target:"_blank",href:"https://immersivetranslate.com/docs/advanced/",children:[u("help"),"?"]}),d("a",{href:"#",onClick:S,class:"text-sm secondary mr-2",children:u("reset")})]})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the final config"}),d("pre",{children:d("code",{children:JSON.stringify(r,null,2)})})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the sync storage object"}),d("pre",{children:d("code",{children:JSON.stringify(i,null,2)})})]}),d("details",{class:"py-2",children:[d("summary",{children:"Click to expand the local storage object"}),d("pre",{children:d("code",{children:JSON.stringify(c,null,2)})})]})]})}h();h();var uE="buildinConfig",iE={},Rh=Dm(uE,iE);var sE=({date:e})=>{let{t}=ue();return d("p",{class:"text-sm",children:[t("The local rules are up to date")," ",new Date(e).toLocaleString()]})},lE=({date:e})=>{let{t}=ue();return d("p",{class:"text-sm",children:[t("Successfully synchronized with the latest official rules:")," ",new Date(e).toLocaleString()]})},cE=()=>{let{t:e}=ue();return d("p",{class:"text-sm","aria-busy":!0,children:[e("Checking for updates"),"..."]})},dE=()=>{let{t:e}=ue();return d("p",{class:"text-sm",children:[e("Rules are being synchronized"),"..."]})},gE=({minVersion:e})=>{let{t}=ue();return d("p",{class:"text-sm",children:t("localVersionIsTooOld",{minVersion:e})})},mE=({latestVersion:e})=>{let{t}=ue();return d("p",{class:"text-sm",children:[t("foundNewVersion"),":"," ",d("a",{href:"https://github.com/immersive-translate/immersive-translate/releases",children:e})]})},pE=()=>{let{t:e}=ue();return d("p",{class:"text-sm",children:e("theLocalExtensionIsUpToUpdate")})},fE=({message:e,handleSyncing:t,date:n})=>{let{t:a}=ue();return d("p",{class:"text-sm",children:[a("failToSyncRules")," ",d("a",{onClick:t,children:a("retry")}),d("br",{}),a("failedReason"),"\uFF1A",e,d("br",{}),a("currentRuleVersion"),"\uFF1A",n]})};function E4(){let[e,t]=$(null),{t:n}=ue(),[a,r]=$(n("calculating")+"..."),[o,u]=$(null),[i,s]=Rh(),[c,l]=$(null),[m,p]=$(""),[f,g]=$(!1),[y,v]=$(!1),[b,S]=$(null),[A,N]=$(null),[_,x,E,T]=ft();En(_,x);let[w,C]=$(!1),I=hi(),M=!0;ot()&&b&&(M=b.generalRule.showSponsorOnSafari);let D=async()=>{p("");let L=o;if(o===null)try{let O=await Pn({url:Ea});O?(u(O),L=O,g(!0)):(p(n("unknownError")),l(null))}catch(O){l(null),p(O.message);return}L!==null?(s(L),l(!1),t(L.buildinConfigUpdatedAt)):(p(n("canNotFetchRemoteRule")),l(null))};he(()=>{Ge().then(L=>{let O=L.buildinConfigUpdatedAt;S(L);let K=new Date(O);t(O),Pn({url:Ea}).then(H=>{let V=H.minVersion,q=I;u(H);let oe=H.latestVersion;if(oe&&(Oa(q,oe)?N(!0):N(!1)),Oa(q,V)){let Z=H.buildinConfigUpdatedAt;new Date(Z)>K?(l(!0),D()):l(!1)}else v(!0),l(null)}).catch(H=>{l(null),p(H.message)})}),Dh().then(L=>{r(L)})},[]),he(()=>{Ge().then(L=>{S(L)})},[_,e]);let F=L=>{x(O=>{let K=!O.alpha;return K?ut(n("enableAlphaSuccess")):ut(n("disableAlphaSuccess")),{...O,alpha:K}})},U=L=>{L.preventDefault(),L.stopPropagation(),C(!0),Ir().catch(O=>{j.error("clear build config failed:",O)}),ka().catch(O=>{j.error("clear local config failed:",O)}),lo().then(()=>{C(!1),ut("\u6E05\u7406\u6210\u529F"),r("0 B")}).catch(O=>{C(!1),Bt(O.message)})},z=L=>{x(O=>({...O,cache:L}))},B=L=>{x(O=>({...O,enabled:L}))},k="aboutIntro";return M||(k="aboutIntroWithoutSponsor"),b?d("div",{class:"text-sm",children:[d("div",{class:"nav",children:d("strong",{onClick:au(7)(F),class:"text-lg immersive-translate-no-select",children:n("about")})}),d("p",{onClick:au(7)(F),class:"mb-2 immersive-translate-no-select",children:["V",I,yg()?"(Beta)":""]}),A===!1&&d(mE,{latestVersion:o?.latestVersion}),A===!0&&d(pE,{}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"enabled",name:"enabled",role:"switch",onChange:()=>{B(!b.enabled)},checked:b.enabled}),n("enabledExtension")]})}),d("fieldset",{children:d("label",{for:"switch",children:[d("input",{type:"checkbox",id:"cache",name:"cache",role:"switch",onChange:()=>{z(!b.cache)},checked:b.cache}),n("allowCacheTranslations")]})}),!me()&&a&&d("p",{class:"text-sm",children:[n("cacheSize"),"\xA0",a," \xA0 ",w?d("span",{children:[n("cleaning"),"..."]}):d("a",{class:"text-sm",href:"#",onClick:U,children:n("cleanCache")})]}),m?d(fE,{handleSyncing:D,message:m,date:e||""}):y?d(gE,{minVersion:o.minVersion}):c===null?d(cE,{}):c===!0?d(dE,{}):f?d(lE,{date:e}):d(sE,{date:e}),d("blockquote",{class:"text-sm",dangerouslySetInnerHTML:{__html:n(k,{1:"https://immersivetranslate.com/docs/thanks/",2:"https://immersivetranslate.com/docs/donate/",3:"twitter.com/immersivetran",4:"https://t.me/immersivetranslate",5:"https://immersivetranslate.substack.com",6:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=about_page",7:"https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=about_page",8:"mailto:support@immersivetranslate.com"})}}),d("div",{class:"flex items-center justify-center",children:[d("div",{class:"flex flex-col items-center",children:[d("img",{width:"120",src:"https://immersivetranslate.com/assets/wechat-qrcode.jpg",alt:"wechat contact"}),d("div",{class:"text-sm",children:n("wechatPublicAccount")})]}),d("div",{class:"w-16"}),d("div",{class:"flex flex-col items-center",children:[d("img",{width:"125",src:"https://immersivetranslate.com/assets/wechat-contact.png",alt:"qq channel contact"}),d("div",{class:"text-sm text-center",children:n("wechatCommunities")})]})]}),d("ul",{class:"text-sm ml-4",children:[d("li",{children:d("a",{class:"secondary",href:"https://github.com/immersive-translate/immersive-translate/issues",children:n("feedback")})}),d("li",{children:d("a",{class:"secondary",href:ti,children:n("joinTelegramGroup")})}),d("li",{children:d("a",{class:"secondary",href:"https://immersivetranslate.com/docs/CHANGELOG/",children:n("changelog")})}),d("li",{children:d("a",{class:"secondary",href:"https://immersivetranslate.com/",children:n("projectHomepage")})}),d("li",{children:d("a",{class:"secondary",href:"https://github.com/immersive-translate/immersive-translate/",children:n("Github")})}),M&&!1]}),d("div",{class:"flex justify-center",children:d("iframe",{src:"https://immersivetranslate.substack.com/embed",width:"480",height:"320",style:"border:1px solid #EEE; background:white;",frameBorder:0,scrolling:"no"})})]}):null}h();function C4(){let e=Ei(),[t,n,a,r]=ft(),[o,u]=$(null);En(t,n);let{t:i}=ue();he(()=>{Ge().then(m=>{Lt({config:m,url:globalThis.location.href}).then(p=>{u(p)})})},[t]);let s=m=>{n(p=>({...p,translationTheme:m}))},c=m=>{n(p=>({...p,interfaceLanguage:m}))};if(!o)return d("div",{children:"loading"});let l=o.config;return d("div",{children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:i("advanced")})}),d("div",{class:"nav",children:[d(Pe,{title:i("translate all areas of the page"),description:i("translationAreaDescription")}),d("label",{for:"translationAreaDescription",children:d("input",{type:"checkbox",id:"translationAreaDescription",name:"switch",role:"switch",onChange:m=>{let p=m.target.checked;n(f=>({...f,translationArea:p?"body":"main"}))},checked:l.translationArea==="body"})})]}),d("div",{class:"nav",children:[d(Pe,{title:i("translate to the bottom of the page"),description:i("translateToThePageEndImmediatelyDescription")}),d("label",{for:"translateToThePageEndImmediatelyDescription",children:d("input",{type:"checkbox",onChange:m=>{let p=m.target.checked;n(f=>({...f,translationStartMode:p?"immediate":"dynamic"}))},checked:l.translationStartMode==="immediate",id:"translateToThePageEndImmediatelyDescription",name:"switch",role:"switch"})})]}),!me()&&d("div",{class:"nav",children:[d(Pe,{title:i("isShowContextMenu")}),d("label",{for:"isShowContextMenu",children:d("input",{type:"checkbox",onChange:m=>{let p=m.target.checked;Ps({...o.config,isShowContextMenu:p}),n(f=>({...f,isShowContextMenu:p}))},checked:o.config.isShowContextMenu===!0,id:"isShowContextMenu",name:"switch",role:"switch"})})]}),d("div",{class:"nav",children:[d(Pe,{title:i("isTranslateTitle"),description:i("isTranslateTitleDescription")}),d("label",{for:"isTranslateTitle",children:d("input",{type:"checkbox",id:"isTranslateTitle",name:"isTranslateTitle",role:"switch",onChange:m=>{let p=m.target.checked;n(f=>({...f,generalRule:{...f.generalRule,isTranslateTitle:p}}))},checked:l.generalRule.isTranslateTitle})})]}),d("div",{class:"nav",children:[d(Pe,{title:i("enableSubtitle"),description:i("enableSubtitleDescription")}),d("label",{for:"enableSubtitle",children:d("input",{type:"checkbox",id:"enableSubtitle",name:"enableSubtitle",role:"switch",onChange:m=>{let p=m.target.checked;n(f=>({...f,generalRule:{...f.generalRule,enableSubtitle:p}}))},checked:l.generalRule.enableSubtitle})})]}),d("div",{class:"nav",children:[d(Pe,{title:i("enableSearchEnhancement"),description:i("enableSearchEnhancementDescription")}),d("label",{for:"enableSearchEnhancement",children:d("input",{type:"checkbox",id:"enableSearchEnhancement",name:"enableSearchEnhancement",role:"switch",onChange:m=>{let p=m.target.checked;n(f=>({...f,generalRule:{...f.generalRule,enableSearchEnhancement:p}}))},checked:l.generalRule.enableSearchEnhancement})})]}),d("div",{class:"nav",children:[d(Pe,{title:i("loadingThemeTitle"),description:i("loadingThemeDescription")}),d("select",{class:"select",onChange:m=>{n(p=>({...p,loadingTheme:m.target.value}))},children:[d("option",{value:"spinner",selected:l.loadingTheme==="spinner",children:i("loadingTheme.spinner")}),d("option",{value:"text",selected:l.loadingTheme==="text",children:i("loadingTheme.text")}),d("option",{value:"none",selected:l.loadingTheme==="none",children:i("loadingTheme.none")})]})]}),d("div",{class:"nav",children:[d(Pe,{title:i("translationLineBreakSettingTitle"),description:i("translationLineBreakSettingDescription",{count:e.generalRule.blockMinTextCount})}),d("select",{class:"select",onChange:m=>{n(p=>{let f=p.generalRule||{};return parseInt(m.target.value)===0?f={...f,blockMinTextCount:0,blockMinWordCount:0}:f={...f,blockMinTextCount:e.generalRule.blockMinTextCount,blockMinWordCount:e.generalRule.blockMinWordCount},{...p,generalRule:f}})},children:[d("option",{value:32,selected:l.generalRule.blockMinTextCount>0,children:i("smartLineBreak")}),d("option",{value:0,selected:l.generalRule.blockMinTextCount===0,children:i("alwaysLineBreak")})]})]}),d("div",{class:"nav",children:[d(Pe,{title:i("tempTranslateDomainTitle"),description:i("tempTranslateDomainDescription")}),d("select",{class:"select",onChange:m=>{n(p=>({...p,tempTranslateDomainMinutes:parseInt(m.target.value)}))},children:[d("option",{value:0,selected:l.tempTranslateDomainMinutes===0,children:i("disabled")}),d("option",{value:5,selected:l.tempTranslateDomainMinutes===5,children:i("xMinutes",{count:5})}),d("option",{value:10,selected:l.tempTranslateDomainMinutes===10,children:i("xMinutes",{count:10})}),d("option",{value:15,selected:l.tempTranslateDomainMinutes===15,children:i("xMinutes",{count:15})}),d("option",{value:30,selected:l.tempTranslateDomainMinutes===30,children:i("xMinutes",{count:30})}),d("option",{value:60,selected:l.tempTranslateDomainMinutes===60,children:i("xMinutes",{count:60})})]})]}),d("div",{class:"nav",children:[d(Pe,{title:i("the number of characters to be translated first")}),d("label",{for:"count",children:d("input",{type:"number",id:"count",onChange:m=>{let p=m.target.value;n(f=>({...f,immediateTranslationTextCount:parseInt(p)}))},name:"count",value:l.immediateTranslationTextCount,placeholder:"Text Length",required:!0})})]})]})}h();var Ih=yo({presets:[Pu(),_u()]});h();function v4(){let e=ft(),[t,n,a,r,o]=e,{t:u}=ue(),i=Ds(t),s=Ls(i);return d(Qe.Provider,{value:e,children:[d("div",{class:"nav",children:d("strong",{class:"text-lg",children:u("mouseHoverOptions")})}),d(bu,{config:i,ctx:s,serviceType:"mouseHoverTranslationService"}),d(hE,{config:i})]})}function hE({config:e}){let[t,n,a,r,o]=Ye(Qe),[u,i]=$(!1),{t:s}=ue();return ia()?d("div",{class:"flex justify-between items-center nav",children:[d(Pe,{title:s("modifyMouseHoverKey"),description:s("mouseHoverHoldKey")}),d(bE,{config:e,setSettings:n,className:"select",clickOther:()=>i(!0)}),d(T4,{config:e,visible:u,onClose:()=>i(!1)})]}):null}function bE({config:e,setSettings:t,className:n,clickOther:a}){let{t:r}=ue();return e?d(On,{className:n,items:Ca.filter(o=>!(Ca.includes(e.generalRule.mouseHoverHoldKey)&&o==="OtherCustom")).map(o=>{let u=r("mouseHoldKey",{key:o}),i=Ca.includes(e.generalRule.mouseHoverHoldKey),s=o===e.generalRule.mouseHoverHoldKey;return o==="Auto"?u=r("mouseHoldKeyAuto"):o==="Off"?u=r("mouseHoldKeyOff"):o==="OtherCustom"?u=i?r("mouseHoldKeyOther"):r("mouseHoldKeyCustomKey",{key:e.generalRule.mouseHoverHoldKey}):o==="Other"&&(u=r("mouseHoldKeyOther")),i||o==="OtherCustom"&&(s=!0),{label:u,value:o,selected:s,onSelected:c=>{c.value==="Other"?a():t(l=>({...l,generalRule:{...l.generalRule,mouseHoverHoldKey:c.value}}))}}})}):null}function Oh(){let e=document.getElementById("mount");e&&(async()=>{u0(Ih);let t=await Ge();t.debug&&j.setLevel("debug"),globalThis.location.hash||(globalThis.location.hash="#general");let n=await Lt({url:"http://localhost",config:t});et("options_page_view",[{name:"options_page_view"}],{...n,sourceLanguage:globalThis.location.hash}),wa(document,n),Ha(d(si,{lang:t.interfaceLanguage,fallbackLang:"zh-CN",translations:Gr,children:d(yE,{donateUrl:t.donateUrl,config:t})}),e)})()}function yE(e){let t=Y0(),{t:n}=ue(),a=hi(),{config:r}=e,o=[{name:n("general"),props:{href:"#general",className:"secondary"}},{name:n("interface"),props:{href:"#interface",className:"secondary"}},{name:n("mouseHoverOptions"),props:{href:"#mouse_hover",className:"secondary"}},{name:n("inputOptions"),props:{href:"#input",className:"secondary"}},{name:n("advanced"),props:{href:"#advanced",className:"secondary"}},{name:n("import_export"),props:{href:"#import_export",className:"secondary"}},{name:n("about"),props:{href:"#about",className:"secondary"}}];o.forEach(i=>{t===i.props.href&&(i.props.className="primary",i.props["aria-current"]="page")});let u=!0;return ot()&&(u=r.generalRule.showSponsorOnSafari),d(Fe,{children:d("main",{class:"container-fluid",children:[d("aside",{children:d("nav",{class:"flex flex-col h-full justify-between",children:[d("div",{children:[d("hgroup",{class:"mb-2",children:[d("h4",{class:"cursor-pointer p-0 m-0",onClick:()=>{globalThis.location.hash="#general"},children:n("browser.shortBrandName")}),d("h6",{class:"!text-sm",children:a})]}),d("ul",{class:"flex flex-wrap justify-between md:block text-sm md:text-base",children:o.map((i,s)=>d("li",{class:"li",children:d("a",{...i.props,children:i.name})},`nav-${s}`))})]}),d("div",{class:"m-0 p-0 flex flex-col",children:[u&&d("a",{class:"py-3 text-xs no-focus secondary",href:e.donateUrl,children:n("donateCafe")}),d("a",{class:"py-3 text-xs no-focus secondary",href:"https://immersivetranslate.com/docs/communities/",children:n("feedbackAndJoin")}),d("a",{class:"py-3 text-xs no-focus secondary",href:"https://immersivetranslate.com/docs/",children:n("document")}),d("a",{class:"py-3 text-xs no-focus secondary",href:"#developer",children:n("developer")})]})]})}),d("div",{role:"main",children:d(V0,{value:t,defaultCase:d(Ms,{}),cases:{"#general":d(Ms,{}),"#mouse_hover":d(v4,{}),"#input":d(f4,{}),"#interface":d(y4,{}),"#import_export":d(ec,{}),"#about":d(E4,{}),"#advanced":d(C4,{}),"#developer":d(x4,{})}})})]})})}globalThis.__IS_IMMERSIVE_TRANSLATE_WEB_OPTIONS_PAGE__=!0;var w4=!1;function TE(){if(w4)return;if(Bm(),!document.querySelector("meta[name=immersive-translate-options]"))throw new Error("Options meta element not found");let t=document.getElementById("immersive-translate-status");if(!t)throw new Error("Status element not found");let n=document.getElementById("immersive-translate-page-ready");if(!n)throw new Error("Page ready input element not found");function a(r){let o=r.target.value;o==="true"?(w4=!0,t.innerText="",n.removeEventListener("change",a),Oh()):t.innerText="Page Status: "+o}n.addEventListener("change",a),setTimeout(()=>{w4||(t.innerHTML=`\u65E0\u6CD5\u68C0\u6D4B\u5230 \u6C89\u6D78\u5F0F\u7FFB\u8BD1 \u6269\u5C55. \u8BF7\u786E\u8BA4\u5DF2\u5B89\u88C5\u5E76\u542F\u7528\u6C89\u6D78\u5F0F\u6269\u5C55\uFF0C\u5E76\u6388\u6743\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u8BBF\u95EE\u6240\u6709\u7F51\u7AD9\u7684\u6743\u9650\u3002

\u5982\u679C\u4F60\u4F7F\u7528\u7684\u662FiOS Safari \u6D4F\u89C8\u5668\u6269\u5C55\uFF0C\u53EF\u4EE5\u53C2\u8003\u4EE5\u4E0B\u89C6\u9891\u542F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u6269\u5C55\uFF1A
`)},5e3)}xE();})(); /*! Bundled license information: bowser/src/bowser.js: